member.tsx 899 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. import {UserFixture} from 'sentry-fixture/user';
  2. import type {Member} from 'sentry/types';
  3. export function MemberFixture(params: Partial<Member> = {}): Member {
  4. return {
  5. id: '1',
  6. email: 'sentry1@test.com',
  7. name: 'Sentry 1 Name',
  8. orgRole: 'member',
  9. groupOrgRoles: [],
  10. teamRoles: [],
  11. role: 'member',
  12. roleName: 'Member',
  13. pending: false,
  14. expired: false,
  15. dateCreated: '2020-01-01T00:00:00.000Z',
  16. invite_link: null,
  17. inviterName: null,
  18. isOnlyOwner: false,
  19. orgRoleList: [],
  20. projects: [],
  21. roles: [],
  22. teamRoleList: [],
  23. teams: [],
  24. flags: {
  25. 'sso:linked': false,
  26. 'idp:provisioned': false,
  27. 'idp:role-restricted': false,
  28. 'member-limit:restricted': false,
  29. 'sso:invalid': false,
  30. 'partnership:restricted': false,
  31. },
  32. user: UserFixture(),
  33. inviteStatus: 'approved',
  34. ...params,
  35. };
  36. }