Regenerated types for service now + removed ts-ignore (#4120)
# What this PR does - regenerate types - removed ts-ignore on the `status_options` API call
This commit is contained in:
parent
59c3420c3d
commit
8ae962cec1
2 changed files with 14 additions and 14 deletions
|
|
@ -37,7 +37,7 @@ export class AlertReceiveChannelStore {
|
|||
alertReceiveChannelOptions: Array<ApiSchemas['AlertReceiveChannelIntegrationOptions']> = [];
|
||||
templates: { [id: string]: AlertTemplatesDTO[] } = {};
|
||||
connectedContactPoints: { [id: string]: ContactPoint[] } = {};
|
||||
serviceNowStatusList: Array<[string, string]>;
|
||||
serviceNowStatusList: string[][];
|
||||
|
||||
constructor(rootStore: RootBaseStore) {
|
||||
makeAutoObservable(this, undefined, { autoBind: true });
|
||||
|
|
@ -117,7 +117,6 @@ export class AlertReceiveChannelStore {
|
|||
});
|
||||
|
||||
runInAction(() => {
|
||||
// @ts-ignore // looks like wrong schema
|
||||
this.serviceNowStatusList = statusList.data;
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -271,7 +271,7 @@ export interface paths {
|
|||
cookie?: never;
|
||||
};
|
||||
/** @description Internal API endpoints for alert receive channels (integrations). */
|
||||
get: operations['alert_receive_channels_status_options_list'];
|
||||
get: operations['alert_receive_channels_status_options_retrieve'];
|
||||
put?: never;
|
||||
post?: never;
|
||||
delete?: never;
|
||||
|
|
@ -1313,6 +1313,11 @@ export interface components {
|
|||
team: string | null;
|
||||
grafana_incident_id?: string | null;
|
||||
readonly labels: components['schemas']['AlertGroupLabel'][];
|
||||
readonly permalinks: {
|
||||
slack: string | null;
|
||||
telegram: string | null;
|
||||
web: string;
|
||||
};
|
||||
readonly alerts: components['schemas']['Alert'][];
|
||||
readonly render_after_resolve_report_json: {
|
||||
time: string;
|
||||
|
|
@ -1329,11 +1334,6 @@ export interface components {
|
|||
};
|
||||
}[];
|
||||
readonly slack_permalink: string | null;
|
||||
readonly permalinks: {
|
||||
slack: string | null;
|
||||
telegram: string | null;
|
||||
web: string;
|
||||
};
|
||||
/** Format: date-time */
|
||||
readonly last_alert_at: string;
|
||||
readonly paged_users: {
|
||||
|
|
@ -1418,6 +1418,11 @@ export interface components {
|
|||
team: string | null;
|
||||
grafana_incident_id?: string | null;
|
||||
readonly labels: components['schemas']['AlertGroupLabel'][];
|
||||
readonly permalinks: {
|
||||
slack: string | null;
|
||||
telegram: string | null;
|
||||
web: string;
|
||||
};
|
||||
};
|
||||
AlertGroupResolve: {
|
||||
resolution_note?: string | null;
|
||||
|
|
@ -1517,10 +1522,6 @@ export interface components {
|
|||
readonly alertmanager_v2_migrated_at: string | null;
|
||||
additional_settings?: components['schemas']['AdditionalSettingsField'] | null;
|
||||
};
|
||||
AlertReceiveChannelBacksyncStatusOptions: {
|
||||
value: string;
|
||||
display_name: string;
|
||||
};
|
||||
AlertReceiveChannelConnectContactPoint: {
|
||||
datasource_uid: string;
|
||||
contact_point_name: string;
|
||||
|
|
@ -2918,7 +2919,7 @@ export interface operations {
|
|||
};
|
||||
};
|
||||
};
|
||||
alert_receive_channels_status_options_list: {
|
||||
alert_receive_channels_status_options_retrieve: {
|
||||
parameters: {
|
||||
query?: never;
|
||||
header?: never;
|
||||
|
|
@ -2935,7 +2936,7 @@ export interface operations {
|
|||
[name: string]: unknown;
|
||||
};
|
||||
content: {
|
||||
'application/json': components['schemas']['AlertReceiveChannelBacksyncStatusOptions'][];
|
||||
'application/json': string[][];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue