organization.js 806 B

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