member.tsx 861 B

12345678910111213141516171819202122232425262728293031323334353637
  1. import {User} from 'sentry-fixture/user';
  2. import type {Member as MemberType} from 'sentry/types';
  3. export function Member(params: Partial<MemberType> = {}): MemberType {
  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. },
  31. user: User(),
  32. inviteStatus: 'approved',
  33. ...params,
  34. };
  35. }