Skip to content

Commit

Permalink
More type changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Pickysaurus committed Feb 3, 2025
1 parent 51cbceb commit 172bd5a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/types/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,11 @@ export interface IBadFileRule {

export type StatusPageResponse<T extends boolean> = T extends true ? IStatusPageFullResponse : IStatusPageQuickResponse;

type StatusPageComponentStatus = 'operational' | 'partial_outage' | string;
type StatusPageIncidentStatus = 'identified' | 'investigating' | 'scheduled' | 'in_progress' | string;
type StatusPageImpact = 'major' | 'critical' | 'minor' | 'none' | string;
type StatusPageIndicator = 'minor' | string;

interface IStatusPageQuickResponse {
page: {
id: string;
Expand All @@ -204,7 +209,7 @@ interface IStatusPageQuickResponse {
updated_at: string;
}
status: {
indicator: string;
indicator: StatusPageIndicator;
description: string;
}
}
Expand All @@ -215,10 +220,6 @@ export interface IStatusPageFullResponse extends IStatusPageQuickResponse {
scheduled_maintenances: IStatusPageIncident[];
}

type StatusPageComponentStatus = 'operational' | 'partial_outage' | string;
type StatusPageIncidentStatus = 'identified' | 'investigating' | 'scheduled' | 'in_progress' | string;
type StatusPageImpact = 'major' | 'critical' | 'minor' | 'none' | string;

interface IStatusPageComponent {
id: string;
name: string;
Expand Down

0 comments on commit 172bd5a

Please sign in to comment.