123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 |
- import type {PlatformKey} from 'sentry/data/platformCategories';
- import type {TimeseriesValue} from './core';
- import type {SDKUpdatesSuggestion} from './event';
- import type {Plugin} from './integrations';
- import type {Organization, Team} from './organization';
- import type {Deploy, Release} from './release';
- import type {SamplingRule} from './sampling';
- // Minimal project representation for use with avatars.
- export type AvatarProject = {
- slug: string;
- id?: string | number;
- platform?: PlatformKey;
- };
- export type Project = {
- dateCreated: string;
- digestsMaxDelay: number;
- digestsMinDelay: number;
- // XXX: These are part of the DetailedProject serializer
- dynamicSampling: {
- next_id: number;
- rules: SamplingRule[];
- } | null;
- environments: string[];
- eventProcessing: {
- symbolicationDegraded: boolean;
- };
- features: string[];
- firstEvent: 'string' | null;
- firstTransactionEvent: boolean;
- groupingAutoUpdate: boolean;
- groupingConfig: string;
- hasAccess: boolean;
- hasSessions: boolean;
- id: string;
- isBookmarked: boolean;
- isInternal: boolean;
- isMember: boolean;
- organization: Organization;
- plugins: Plugin[];
- processingIssues: number;
- relayPiiConfig: string;
- subjectTemplate: string;
- teams: Team[];
- builtinSymbolSources?: string[];
- hasUserReports?: boolean;
- latestDeploys?: Record<string, Pick<Deploy, 'dateFinished' | 'version'>> | null;
- latestRelease?: Release;
- name?: string;
- options?: Record<string, boolean | string>;
- sessionStats?: {
- currentCrashFreeRate: number | null;
- hasHealthData: boolean;
- previousCrashFreeRate: number | null;
- };
- stats?: TimeseriesValue[];
- symbolSources?: string;
- transactionStats?: TimeseriesValue[];
- } & AvatarProject;
- export type MinimalProject = Pick<Project, 'id' | 'slug' | 'platform'>;
- // Response from project_keys endpoints.
- export type ProjectKey = {
- browserSdk: {
- choices: [key: string, value: string][];
- };
- browserSdkVersion: string;
- dateCreated: string;
- dsn: {
- cdn: string;
- csp: string;
- minidump: string;
- public: string;
- secret: string;
- security: string;
- unreal: string;
- };
- id: string;
- isActive: boolean;
- label: string;
- name: string;
- projectId: string;
- public: string;
- rateLimit: {
- count: number;
- window: string;
- } | null;
- secret: string;
- };
- export type ProjectSdkUpdates = {
- projectId: string;
- sdkName: string;
- sdkVersion: string;
- suggestions: SDKUpdatesSuggestion[];
- };
- export type Environment = {
- displayName: string;
- id: string;
- name: string;
- // XXX: Provided by the backend but unused due to `getUrlRoutingName()`
- // urlRoutingName: string;
- };
- export type TeamWithProjects = Team & {projects: Project[]};
- export type PlatformIntegration = {
- id: PlatformKey;
- language: string;
- link: string | null;
- name: string;
- type: string;
- };
|