Skip to content

Commit 817a294

Browse files
committed
feat: update generated APIs
1 parent db74be4 commit 817a294

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/clients/src/api/cockpit/v1/marshalling.gen.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ export const unmarshalContactPoint = (data: unknown): ContactPoint => {
6767

6868
return {
6969
email: data.email ? unmarshalContactPointEmail(data.email) : undefined,
70-
receiveResolvedNotifications: data.receive_resolved_notifications,
7170
region: data.region,
71+
sendResolvedNotifications: data.send_resolved_notifications,
7272
} as ContactPoint
7373
}
7474

@@ -459,7 +459,7 @@ export const marshalRegionalApiCreateContactPointRequest = (
459459
defaults: DefaultValues,
460460
): Record<string, unknown> => ({
461461
project_id: request.projectId ?? defaults.defaultProjectId,
462-
receive_resolved_notifications: request.receiveResolvedNotifications,
462+
send_resolved_notifications: request.sendResolvedNotifications,
463463
...resolveOneOf([
464464
{
465465
param: 'email',
@@ -547,7 +547,7 @@ export const marshalRegionalApiUpdateContactPointRequest = (
547547
defaults: DefaultValues,
548548
): Record<string, unknown> => ({
549549
project_id: request.projectId ?? defaults.defaultProjectId,
550-
receive_resolved_notifications: request.receiveResolvedNotifications,
550+
send_resolved_notifications: request.sendResolvedNotifications,
551551
...resolveOneOf([
552552
{
553553
param: 'email',

packages/clients/src/api/cockpit/v1/types.gen.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export interface ContactPoint {
8484
/** Region. */
8585
region: ScwRegion
8686
/** Send an email notification when an alert is marked as resolved. */
87-
receiveResolvedNotifications: boolean
87+
sendResolvedNotifications: boolean
8888
}
8989

9090
/** Data source. */
@@ -412,7 +412,7 @@ export type RegionalApiCreateContactPointRequest = {
412412
*/
413413
email?: ContactPointEmail
414414
/** Send an email notification when an alert is marked as resolved. */
415-
receiveResolvedNotifications?: boolean
415+
sendResolvedNotifications?: boolean
416416
}
417417

418418
/** Create a data source. */
@@ -701,7 +701,7 @@ export type RegionalApiUpdateContactPointRequest = {
701701
*/
702702
email?: ContactPointEmail
703703
/** Enable or disable notifications when alert is resolved. */
704-
receiveResolvedNotifications?: boolean
704+
sendResolvedNotifications?: boolean
705705
}
706706

707707
/** Update a data source name. */

0 commit comments

Comments
 (0)