team.tsx 547 B

123456789101112131415161718192021222324
  1. import {uuid4} from '@sentry/utils';
  2. import type {DetailedTeam} from 'sentry/types';
  3. export function TeamFixture(params: Partial<DetailedTeam> = {}): DetailedTeam {
  4. return {
  5. id: '1',
  6. slug: 'team-slug',
  7. name: 'Team Name',
  8. access: ['team:read'],
  9. teamRole: null,
  10. isMember: true,
  11. memberCount: 0,
  12. avatar: {avatarType: 'letter_avatar', avatarUuid: uuid4()},
  13. flags: {
  14. 'idp:provisioned': false,
  15. },
  16. externalTeams: [],
  17. projects: [],
  18. hasAccess: false,
  19. isPending: false,
  20. ...params,
  21. };
  22. }