import type {OrgRole, TeamRole} from 'sentry/types/organization'; export function OrgRoleListFixture(params: OrgRole[] = []): OrgRole[] { return [ { id: 'billing', name: 'Billing', desc: 'Can manage subscription and billing details.', isAllowed: false, isRetired: false, is_global: false, isGlobal: false, minimumTeamRole: 'contributor', isTeamRolesAllowed: false, }, { id: 'member', name: 'Member', desc: 'Members can view and act on events, as well as view most other data within the organization.', isAllowed: false, is_global: false, isGlobal: false, isRetired: false, minimumTeamRole: 'contributor', isTeamRolesAllowed: true, }, { id: 'admin', name: 'Admin', desc: "Admin privileges on any teams of which they're a member. They can create new teams and projects, as well as remove teams and projects on which they already hold membership (or all teams, if open membership is enabled). Additionally, they can manage memberships of teams that they are members of. They cannot invite members to the organization.", isAllowed: false, is_global: false, isGlobal: false, isRetired: true, minimumTeamRole: 'admin', isTeamRolesAllowed: true, }, { id: 'manager', name: 'Manager', desc: 'Gains admin access on all teams as well as the ability to add and remove members.', isAllowed: false, is_global: true, isGlobal: true, isRetired: false, minimumTeamRole: 'admin', isTeamRolesAllowed: true, }, { id: 'owner', name: 'Owner', desc: 'Gains full permission across the organization. Can manage members as well as perform catastrophic operations such as removing the organization.', isAllowed: false, is_global: true, isGlobal: true, isRetired: false, minimumTeamRole: 'admin', isTeamRolesAllowed: true, }, ...params, ]; } export function TeamRoleListFixture(params: TeamRole[] = []): TeamRole[] { return [ { id: 'contributor', name: 'Contributor', desc: '...', isRetired: false, isMinimumRoleFor: '', }, { id: 'admin', name: 'Team Admin', desc: '...', isRetired: false, isMinimumRoleFor: '', }, ...params, ]; }