1234567891011121314151617181920212223242526272829303132333435363738 |
- import {UserFixture} from 'sentry-fixture/user';
- import type {Member} from 'sentry/types';
- export function MemberFixture(params: Partial<Member> = {}): Member {
- return {
- id: '1',
- email: 'sentry1@test.com',
- name: 'Sentry 1 Name',
- orgRole: 'member',
- groupOrgRoles: [],
- teamRoles: [],
- role: 'member',
- roleName: 'Member',
- pending: false,
- expired: false,
- dateCreated: '2020-01-01T00:00:00.000Z',
- invite_link: null,
- inviterName: null,
- isOnlyOwner: false,
- orgRoleList: [],
- projects: [],
- roles: [],
- teamRoleList: [],
- teams: [],
- flags: {
- 'sso:linked': false,
- 'idp:provisioned': false,
- 'idp:role-restricted': false,
- 'member-limit:restricted': false,
- 'sso:invalid': false,
- 'partnership:restricted': false,
- },
- user: UserFixture(),
- inviteStatus: 'approved',
- ...params,
- };
- }
|