members.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. teamRoles: [],
  11. role: 'member',
  12. roleName: 'Member',
  13. pending: true,
  14. flags: {
  15. 'sso:linked': false,
  16. 'idp:provisioned': false,
  17. 'idp:role-restricted': false,
  18. },
  19. user: null,
  20. },
  21. {
  22. id: '3',
  23. name: 'Sentry 3 Name',
  24. email: 'sentry3@test.com',
  25. orgRole: 'owner',
  26. teamRoles: [],
  27. role: 'owner',
  28. roleName: 'Owner',
  29. pending: false,
  30. flags: {
  31. 'sso:linked': true,
  32. 'idp:provisioned': false,
  33. 'idp:role-restricted': false,
  34. },
  35. user: {
  36. id: '3',
  37. has2fa: true,
  38. name: 'Sentry 3 Name',
  39. email: 'sentry3@test.com',
  40. username: 'Sentry 3 Username',
  41. },
  42. },
  43. {
  44. id: '4',
  45. name: 'Sentry 4 Name',
  46. email: 'sentry4@test.com',
  47. orgRole: 'owner',
  48. teamRoles: [],
  49. role: 'owner',
  50. roleName: 'Owner',
  51. pending: false,
  52. flags: {
  53. 'sso:linked': true,
  54. 'idp:provisioned': false,
  55. 'idp:role-restricted': false,
  56. },
  57. user: {
  58. id: '4',
  59. has2fa: true,
  60. name: 'Sentry 4 Name',
  61. email: 'sentry4@test.com',
  62. username: 'Sentry 4 Username',
  63. },
  64. },
  65. ...params,
  66. ];
  67. }