123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- import {Member} from 'sentry-fixture/member';
- import {User} from 'sentry-fixture/user';
- import type {Member as MemberType} from 'sentry/types';
- export function Members(params: MemberType[] = []): MemberType[] {
- return [
- Member(),
- {
- id: '2',
- name: 'Sentry 2 Name',
- email: 'sentry2@test.com',
- orgRole: 'member',
- groupOrgRoles: [],
- teamRoles: [],
- dateCreated: '',
- role: 'member',
- roleName: 'Member',
- pending: true,
- flags: {
- 'sso:linked': false,
- 'sso:invalid': false,
- 'idp:provisioned': false,
- 'idp:role-restricted': false,
- 'member-limit:restricted': false,
- },
- user: null,
- expired: false,
- inviteStatus: 'approved',
- invite_link: '',
- inviterName: '',
- isOnlyOwner: false,
- orgRoleList: [],
- projects: [],
- roles: [],
- teamRoleList: [],
- teams: [],
- },
- {
- id: '3',
- name: 'Sentry 3 Name',
- email: 'sentry3@test.com',
- orgRole: 'owner',
- groupOrgRoles: [],
- teamRoles: [],
- role: 'owner',
- dateCreated: '',
- expired: false,
- inviteStatus: 'approved',
- invite_link: '',
- inviterName: '',
- roleName: 'Owner',
- isOnlyOwner: false,
- orgRoleList: [],
- projects: [],
- roles: [],
- teamRoleList: [],
- teams: [],
- pending: false,
- flags: {
- 'sso:linked': true,
- 'sso:invalid': false,
- 'idp:provisioned': false,
- 'idp:role-restricted': false,
- 'member-limit:restricted': false,
- },
- user: User(),
- },
- {
- id: '4',
- name: 'Sentry 4 Name',
- email: 'sentry4@test.com',
- orgRole: 'owner',
- groupOrgRoles: [],
- teamRoles: [],
- dateCreated: '',
- role: 'owner',
- roleName: 'Owner',
- pending: false,
- flags: {
- 'sso:linked': true,
- 'sso:invalid': false,
- 'idp:provisioned': false,
- 'idp:role-restricted': false,
- 'member-limit:restricted': false,
- },
- user: null,
- expired: false,
- inviteStatus: 'approved',
- invite_link: '',
- inviterName: '',
- isOnlyOwner: false,
- orgRoleList: [],
- projects: [],
- roles: [],
- teamRoleList: [],
- teams: [],
- },
- ...params,
- ];
- }
|