member.tsx 889 B

12345678910111213141516171819202122232425262728293031323334353637
  1. import {UserFixture} from 'sentry-fixture/user';
  2. import type {Member} from 'sentry/types/organization';
  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. teamRoles: [],
  10. role: 'member',
  11. roleName: 'Member',
  12. pending: false,
  13. expired: false,
  14. dateCreated: '2020-01-01T00:00:00.000Z',
  15. invite_link: null,
  16. inviterName: null,
  17. isOnlyOwner: false,
  18. orgRoleList: [],
  19. projects: [],
  20. roles: [],
  21. teamRoleList: [],
  22. teams: [],
  23. flags: {
  24. 'sso:linked': false,
  25. 'idp:provisioned': false,
  26. 'idp:role-restricted': false,
  27. 'member-limit:restricted': false,
  28. 'sso:invalid': false,
  29. 'partnership:restricted': false,
  30. },
  31. user: UserFixture(),
  32. inviteStatus: 'approved',
  33. ...params,
  34. };
  35. }