team.tsx 599 B

12345678910111213141516171819202122232425
  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. orgRole: undefined, // TODO(cathy): Rename this
  10. teamRole: null,
  11. isMember: true,
  12. memberCount: 0,
  13. avatar: {avatarType: 'letter_avatar', avatarUuid: uuid4()},
  14. flags: {
  15. 'idp:provisioned': false,
  16. },
  17. externalTeams: [],
  18. projects: [],
  19. hasAccess: false,
  20. isPending: false,
  21. ...params,
  22. };
  23. }