members.tsx 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. import type {Member as MemberType} from 'sentry/types';
  2. import {Member} from './member';
  3. import {User} from './user';
  4. export function Members(params: MemberType[] = []): MemberType[] {
  5. return [
  6. Member(),
  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. },
  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. groupOrgRoles: [],
  43. teamRoles: [],
  44. role: 'owner',
  45. dateCreated: '',
  46. expired: false,
  47. inviteStatus: 'approved',
  48. invite_link: '',
  49. inviterName: '',
  50. roleName: 'Owner',
  51. isOnlyOwner: false,
  52. orgRoleList: [],
  53. projects: [],
  54. roles: [],
  55. teamRoleList: [],
  56. teams: [],
  57. pending: false,
  58. flags: {
  59. 'sso:linked': true,
  60. 'sso:invalid': false,
  61. 'idp:provisioned': false,
  62. 'idp:role-restricted': false,
  63. 'member-limit:restricted': false,
  64. },
  65. user: User(),
  66. },
  67. {
  68. id: '4',
  69. name: 'Sentry 4 Name',
  70. email: 'sentry4@test.com',
  71. orgRole: 'owner',
  72. groupOrgRoles: [],
  73. teamRoles: [],
  74. dateCreated: '',
  75. role: 'owner',
  76. roleName: 'Owner',
  77. pending: false,
  78. flags: {
  79. 'sso:linked': true,
  80. 'sso:invalid': false,
  81. 'idp:provisioned': false,
  82. 'idp:role-restricted': false,
  83. 'member-limit: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. }