members.js 1.2 KB

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