1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- import {OrgRoleList, TeamRoleList} from './roleList';
- export function Organization(params = {}) {
- const slug = params.slug ?? 'org-slug';
- return {
- id: '3',
- slug,
- name: 'Organization Name',
- links: {
- organizationUrl: `https://${slug}.sentry.io`,
- regionUrl: 'https://us.sentry.io',
- },
- access: [
- 'org:read',
- 'org:write',
- 'org:admin',
- 'org:integrations',
- 'project:read',
- 'project:write',
- 'project:releases',
- 'project:admin',
- 'team:read',
- 'team:write',
- 'team:admin',
- 'alerts:read',
- 'alerts:write',
- ],
- status: {
- id: 'active',
- name: 'active',
- },
- experiments: {},
- scrapeJavaScript: true,
- features: [],
- onboardingTasks: [],
- teams: [],
- projects: [],
- isDynamicallySampled: true,
- ...params,
- orgRoleList: OrgRoleList(),
- teamRoleList: TeamRoleList(),
- };
- }
|