diff --git a/grafana-plugin/src/models/alert_receive_channel/alert_receive_channel.ts b/grafana-plugin/src/models/alert_receive_channel/alert_receive_channel.ts index 2c79c5f2..e8564212 100644 --- a/grafana-plugin/src/models/alert_receive_channel/alert_receive_channel.ts +++ b/grafana-plugin/src/models/alert_receive_channel/alert_receive_channel.ts @@ -37,7 +37,7 @@ export class AlertReceiveChannelStore { alertReceiveChannelOptions: Array = []; 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; }); } diff --git a/grafana-plugin/src/network/oncall-api/autogenerated-api.types.d.ts b/grafana-plugin/src/network/oncall-api/autogenerated-api.types.d.ts index 93df5a6d..8eb916a5 100644 --- a/grafana-plugin/src/network/oncall-api/autogenerated-api.types.d.ts +++ b/grafana-plugin/src/network/oncall-api/autogenerated-api.types.d.ts @@ -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[][]; }; }; };