organization.js 866 B

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