diff --git a/packages/clients/src/api/cockpit/v1/marshalling.gen.ts b/packages/clients/src/api/cockpit/v1/marshalling.gen.ts index ae9ec94d7..e006efe79 100644 --- a/packages/clients/src/api/cockpit/v1/marshalling.gen.ts +++ b/packages/clients/src/api/cockpit/v1/marshalling.gen.ts @@ -67,8 +67,8 @@ export const unmarshalContactPoint = (data: unknown): ContactPoint => { return { email: data.email ? unmarshalContactPointEmail(data.email) : undefined, - receiveResolvedNotifications: data.receive_resolved_notifications, region: data.region, + sendResolvedNotifications: data.send_resolved_notifications, } as ContactPoint } @@ -459,7 +459,7 @@ export const marshalRegionalApiCreateContactPointRequest = ( defaults: DefaultValues, ): Record => ({ project_id: request.projectId ?? defaults.defaultProjectId, - receive_resolved_notifications: request.receiveResolvedNotifications, + send_resolved_notifications: request.sendResolvedNotifications, ...resolveOneOf([ { param: 'email', @@ -547,7 +547,7 @@ export const marshalRegionalApiUpdateContactPointRequest = ( defaults: DefaultValues, ): Record => ({ project_id: request.projectId ?? defaults.defaultProjectId, - receive_resolved_notifications: request.receiveResolvedNotifications, + send_resolved_notifications: request.sendResolvedNotifications, ...resolveOneOf([ { param: 'email', diff --git a/packages/clients/src/api/cockpit/v1/types.gen.ts b/packages/clients/src/api/cockpit/v1/types.gen.ts index b499c9ec1..9e71aa9d5 100644 --- a/packages/clients/src/api/cockpit/v1/types.gen.ts +++ b/packages/clients/src/api/cockpit/v1/types.gen.ts @@ -84,7 +84,7 @@ export interface ContactPoint { /** Region. */ region: ScwRegion /** Send an email notification when an alert is marked as resolved. */ - receiveResolvedNotifications: boolean + sendResolvedNotifications: boolean } /** Data source. */ @@ -412,7 +412,7 @@ export type RegionalApiCreateContactPointRequest = { */ email?: ContactPointEmail /** Send an email notification when an alert is marked as resolved. */ - receiveResolvedNotifications?: boolean + sendResolvedNotifications?: boolean } /** Create a data source. */ @@ -701,7 +701,7 @@ export type RegionalApiUpdateContactPointRequest = { */ email?: ContactPointEmail /** Enable or disable notifications when alert is resolved. */ - receiveResolvedNotifications?: boolean + sendResolvedNotifications?: boolean } /** Update a data source name. */