File tree Expand file tree Collapse file tree 7 files changed +159
-79
lines changed Expand file tree Collapse file tree 7 files changed +159
-79
lines changed Original file line number Diff line number Diff 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' ,
Original file line number Diff line number Diff 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. */
Original file line number Diff line number Diff line change @@ -277,8 +277,8 @@ export class API extends ParentAPI {
277277 'page_size' ,
278278 request . pageSize ?? this . client . settings . defaultPageSize ,
279279 ] ,
280- [ 'status' , request . status ] ,
281280 [ 'tag' , request . tag ] ,
281+ [ 'type' , request . type ] ,
282282 [ 'user_ids' , request . userIds ] ,
283283 ) ,
284284 } ,
You can’t perform that action at this time.
0 commit comments