members.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. import {Member} from './member';
  2. export function Members(params = []) {
  3. return [
  4. Member(),
  5. {
  6. id: '2',
  7. name: 'Sentry 2 Name',
  8. email: 'sentry2@test.com',
  9. orgRole: 'member',
  10. groupOrgRoles: [],
  11. teamRoles: [],
  12. role: 'member',
  13. roleName: 'Member',
  14. pending: true,
  15. flags: {
  16. 'sso:linked': false,
  17. 'idp:provisioned': false,
  18. 'idp:role-restricted': false,
  19. },
  20. user: null,
  21. },
  22. {
  23. id: '3',
  24. name: 'Sentry 3 Name',
  25. email: 'sentry3@test.com',
  26. orgRole: 'owner',
  27. groupOrgRoles: [],
  28. teamRoles: [],
  29. role: 'owner',
  30. roleName: 'Owner',
  31. pending: false,
  32. flags: {
  33. 'sso:linked': true,
  34. 'idp:provisioned': false,
  35. 'idp:role-restricted': false,
  36. },
  37. user: {
  38. id: '3',
  39. has2fa: true,
  40. name: 'Sentry 3 Name',
  41. email: 'sentry3@test.com',
  42. username: 'Sentry 3 Username',
  43. },
  44. },
  45. {
  46. id: '4',
  47. name: 'Sentry 4 Name',
  48. email: 'sentry4@test.com',
  49. orgRole: 'owner',
  50. groupOrgRoles: [],
  51. teamRoles: [],
  52. role: 'owner',
  53. roleName: 'Owner',
  54. pending: false,
  55. flags: {
  56. 'sso:linked': true,
  57. 'idp:provisioned': false,
  58. 'idp:role-restricted': false,
  59. },
  60. user: {
  61. id: '4',
  62. has2fa: true,
  63. name: 'Sentry 4 Name',
  64. email: 'sentry4@test.com',
  65. username: 'Sentry 4 Username',
  66. },
  67. },
  68. ...params,
  69. ];
  70. }