members.ts 2.4 KB

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