Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/clients/src/api/cockpit/v1/marshalling.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down Expand Up @@ -459,7 +459,7 @@ export const marshalRegionalApiCreateContactPointRequest = (
defaults: DefaultValues,
): Record<string, unknown> => ({
project_id: request.projectId ?? defaults.defaultProjectId,
receive_resolved_notifications: request.receiveResolvedNotifications,
send_resolved_notifications: request.sendResolvedNotifications,
...resolveOneOf([
{
param: 'email',
Expand Down Expand Up @@ -547,7 +547,7 @@ export const marshalRegionalApiUpdateContactPointRequest = (
defaults: DefaultValues,
): Record<string, unknown> => ({
project_id: request.projectId ?? defaults.defaultProjectId,
receive_resolved_notifications: request.receiveResolvedNotifications,
send_resolved_notifications: request.sendResolvedNotifications,
...resolveOneOf([
{
param: 'email',
Expand Down
6 changes: 3 additions & 3 deletions packages/clients/src/api/cockpit/v1/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down Expand Up @@ -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. */
Expand Down Expand Up @@ -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. */
Expand Down
Loading