organization.js 927 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. isDynamicallySampled: true,
  38. ...params,
  39. orgRoleList: OrgRoleList(),
  40. teamRoleList: TeamRoleList(),
  41. };
  42. }