organization.js 895 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import {OrgRoleList, TeamRoleList} from './roleList';
  2. export function Organization(params = {}) {
  3. const slug = params.slug ?? 'org-slug';
  4. return {
  5. id: '3',
  6. slug,
  7. name: 'Organization Name',
  8. links: {
  9. organizationUrl: `https://${slug}.sentry.io`,
  10. regionUrl: 'https://us.sentry.io',
  11. },
  12. access: [
  13. 'org:read',
  14. 'org:write',
  15. 'org:admin',
  16. 'org:integrations',
  17. 'project:read',
  18. 'project:write',
  19. 'project:releases',
  20. 'project:admin',
  21. 'team:read',
  22. 'team:write',
  23. 'team:admin',
  24. 'alerts:read',
  25. 'alerts:write',
  26. ],
  27. status: {
  28. id: 'active',
  29. name: 'active',
  30. },
  31. experiments: {},
  32. scrapeJavaScript: true,
  33. features: [],
  34. onboardingTasks: [],
  35. teams: [],
  36. projects: [],
  37. ...params,
  38. orgRoleList: OrgRoleList(),
  39. teamRoleList: TeamRoleList(),
  40. };
  41. }