team.tsx 565 B

123456789101112131415161718192021222324
  1. import {uuid4} from '@sentry/utils';
  2. import type {Team as TeamType} from 'sentry/types';
  3. export function Team(params: Partial<TeamType> = {}): TeamType {
  4. return {
  5. id: '1',
  6. slug: 'team-slug',
  7. name: 'Team Name',
  8. access: ['team:read'],
  9. orgRole: null, // 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. hasAccess: false,
  19. isPending: false,
  20. ...params,
  21. };
  22. }