blob: f29f58884846cb72ad2545bd7dd6b22391c50507 [file] [log] [blame]
Adrià Vilanova Martínezf19ea432024-01-23 20:20:52 +01001// Copyright 2019 The Chromium Authors
Copybara854996b2021-09-07 19:36:02 +00002// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5import 'shared/typedef.js';
6
7export const NAME = 'users/1234';
8
9export const DISPLAY_NAME = 'example@example.com';
10
11export const ID = 1234;
12
13/** @type {UserRef} */
14export const USER_REF = Object.freeze({
15 userId: ID,
16 displayName: DISPLAY_NAME,
17});
18
19/** @type {User} */
20export const USER = Object.freeze({
21 name: NAME,
22 displayName: DISPLAY_NAME,
23});
24
25export const NAME_2 = 'users/5678';
26
27export const DISPLAY_NAME_2 = 'other_user@example.com';
28
29/** @type {User} */
30export const USER_2 = Object.freeze({
31 name: NAME_2,
32 displayName: DISPLAY_NAME_2,
33});
34
35/** @type {Object<string, User>} */
36export const BY_NAME = Object.freeze({[NAME]: USER, [NAME_2]: USER_2});
37
38/** @type {ProjectMember} */
39export const PROJECT_MEMBER = Object.freeze({
40 name: 'projects/proj/members/1234',
41 role: 'CONTRIBUTOR',
42});