members.tsx 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. import {MemberFixture} from 'sentry-fixture/member';
  2. import {UserFixture} from 'sentry-fixture/user';
  3. import type {Member} from 'sentry/types';
  4. export function MembersFixture(params: Member[] = []): Member[] {
  5. return [
  6. MemberFixture(),
  7. {
  8. id: '2',
  9. name: 'Sentry 2 Name',
  10. email: 'sentry2@test.com',
  11. orgRole: 'member',
  12. groupOrgRoles: [],
  13. teamRoles: [],
  14. dateCreated: '',
  15. role: 'member',
  16. roleName: 'Member',
  17. pending: true,
  18. flags: {
  19. 'sso:linked': false,
  20. 'sso:invalid': false,
  21. 'idp:provisioned': false,
  22. 'idp:role-restricted': false,
  23. 'member-limit:restricted': false,
  24. 'partnership:restricted': false,
  25. },
  26. user: null,
  27. expired: false,
  28. inviteStatus: 'approved',
  29. invite_link: '',
  30. inviterName: '',
  31. isOnlyOwner: false,
  32. orgRoleList: [],
  33. projects: [],
  34. roles: [],
  35. teamRoleList: [],
  36. teams: [],
  37. },
  38. {
  39. id: '3',
  40. name: 'Sentry 3 Name',
  41. email: 'sentry3@test.com',
  42. orgRole: 'owner',
  43. groupOrgRoles: [],
  44. teamRoles: [],
  45. role: 'owner',
  46. dateCreated: '',
  47. expired: false,
  48. inviteStatus: 'approved',
  49. invite_link: '',
  50. inviterName: '',
  51. roleName: 'Owner',
  52. isOnlyOwner: false,
  53. orgRoleList: [],
  54. projects: [],
  55. roles: [],
  56. teamRoleList: [],
  57. teams: [],
  58. pending: false,
  59. flags: {
  60. 'sso:linked': true,
  61. 'sso:invalid': false,
  62. 'idp:provisioned': false,
  63. 'idp:role-restricted': false,
  64. 'member-limit:restricted': false,
  65. 'partnership:restricted': false,
  66. },
  67. user: UserFixture(),
  68. },
  69. {
  70. id: '4',
  71. name: 'Sentry 4 Name',
  72. email: 'sentry4@test.com',
  73. orgRole: 'owner',
  74. groupOrgRoles: [],
  75. teamRoles: [],
  76. dateCreated: '',
  77. role: 'owner',
  78. roleName: 'Owner',
  79. pending: false,
  80. flags: {
  81. 'sso:linked': true,
  82. 'sso:invalid': false,
  83. 'idp:provisioned': false,
  84. 'idp:role-restricted': false,
  85. 'member-limit:restricted': false,
  86. 'partnership:restricted': false,
  87. },
  88. user: null,
  89. expired: false,
  90. inviteStatus: 'approved',
  91. invite_link: '',
  92. inviterName: '',
  93. isOnlyOwner: false,
  94. orgRoleList: [],
  95. projects: [],
  96. roles: [],
  97. teamRoleList: [],
  98. teams: [],
  99. },
  100. ...params,
  101. ];
  102. }