@incident-io/sdk 2.14.0 → 2.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/apis/OnCallNotificationPausesV2Api.d.ts +71 -0
- package/dist/cjs/apis/OnCallNotificationPausesV2Api.js +150 -0
- package/dist/cjs/apis/index.d.ts +1 -0
- package/dist/cjs/apis/index.js +1 -0
- package/dist/cjs/models/OnCallNotificationPauseV2.d.ts +54 -0
- package/dist/cjs/models/OnCallNotificationPauseV2.js +73 -0
- package/dist/cjs/models/OnCallNotificationPausesListResultV2.d.ts +36 -0
- package/dist/cjs/models/OnCallNotificationPausesListResultV2.js +56 -0
- package/dist/cjs/models/OnCallNotificationPausesShowResultV2.d.ts +31 -0
- package/dist/cjs/models/OnCallNotificationPausesShowResultV2.js +51 -0
- package/dist/cjs/models/StepProgressSlimV2.d.ts +1 -0
- package/dist/cjs/models/StepProgressSlimV2.js +1 -0
- package/dist/cjs/models/StepProgressV2.d.ts +1 -0
- package/dist/cjs/models/StepProgressV2.js +1 -0
- package/dist/cjs/models/index.d.ts +3 -0
- package/dist/cjs/models/index.js +3 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/apis/OnCallNotificationPausesV2Api.d.ts +71 -0
- package/dist/esm/apis/OnCallNotificationPausesV2Api.js +113 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/OnCallNotificationPauseV2.d.ts +54 -0
- package/dist/esm/models/OnCallNotificationPauseV2.js +66 -0
- package/dist/esm/models/OnCallNotificationPausesListResultV2.d.ts +36 -0
- package/dist/esm/models/OnCallNotificationPausesListResultV2.js +49 -0
- package/dist/esm/models/OnCallNotificationPausesShowResultV2.d.ts +31 -0
- package/dist/esm/models/OnCallNotificationPausesShowResultV2.js +44 -0
- package/dist/esm/models/StepProgressSlimV2.d.ts +1 -0
- package/dist/esm/models/StepProgressSlimV2.js +1 -0
- package/dist/esm/models/StepProgressV2.d.ts +1 -0
- package/dist/esm/models/StepProgressV2.js +1 -0
- package/dist/esm/models/index.d.ts +3 -0
- package/dist/esm/models/index.js +3 -0
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* incident.io
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime.js';
|
|
13
|
+
import { type OnCallNotificationPausesListResultV2 } from '../models/OnCallNotificationPausesListResultV2.js';
|
|
14
|
+
import { type OnCallNotificationPausesShowResultV2 } from '../models/OnCallNotificationPausesShowResultV2.js';
|
|
15
|
+
export interface OnCallNotificationPausesV2ListRequest {
|
|
16
|
+
/**
|
|
17
|
+
* Only return pauses that end after this time. Defaults to now, so by default only active and upcoming pauses are returned.
|
|
18
|
+
*/
|
|
19
|
+
from?: Date;
|
|
20
|
+
/**
|
|
21
|
+
* Only return pauses that start before this time
|
|
22
|
+
*/
|
|
23
|
+
to?: Date;
|
|
24
|
+
/**
|
|
25
|
+
* Integer number of records to return
|
|
26
|
+
*/
|
|
27
|
+
page_size?: number;
|
|
28
|
+
/**
|
|
29
|
+
* A pause's ID. This endpoint will return a list of pauses after this ID in relation to the API response order.
|
|
30
|
+
*/
|
|
31
|
+
after?: string;
|
|
32
|
+
}
|
|
33
|
+
export interface OnCallNotificationPausesV2ShowRequest {
|
|
34
|
+
/**
|
|
35
|
+
* The pause's ID
|
|
36
|
+
*/
|
|
37
|
+
id: string;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
*/
|
|
42
|
+
export declare class OnCallNotificationPausesV2Api extends runtime.BaseAPI {
|
|
43
|
+
/**
|
|
44
|
+
* Creates request options for onCallNotificationPausesV2List without sending the request
|
|
45
|
+
*/
|
|
46
|
+
onCallNotificationPausesV2ListRequestOpts(requestParameters: OnCallNotificationPausesV2ListRequest): Promise<runtime.RequestOpts>;
|
|
47
|
+
/**
|
|
48
|
+
* List on-call notification pauses across the organisation. By default this returns pauses that are active now or scheduled for the future. Cancelled pauses are never returned, and pauses that were resumed early have ends_at set to when they were resumed.
|
|
49
|
+
* List On-call Notification Pauses V2
|
|
50
|
+
*/
|
|
51
|
+
onCallNotificationPausesV2ListRaw(requestParameters: OnCallNotificationPausesV2ListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OnCallNotificationPausesListResultV2>>;
|
|
52
|
+
/**
|
|
53
|
+
* List on-call notification pauses across the organisation. By default this returns pauses that are active now or scheduled for the future. Cancelled pauses are never returned, and pauses that were resumed early have ends_at set to when they were resumed.
|
|
54
|
+
* List On-call Notification Pauses V2
|
|
55
|
+
*/
|
|
56
|
+
onCallNotificationPausesV2List(requestParameters?: OnCallNotificationPausesV2ListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OnCallNotificationPausesListResultV2>;
|
|
57
|
+
/**
|
|
58
|
+
* Creates request options for onCallNotificationPausesV2Show without sending the request
|
|
59
|
+
*/
|
|
60
|
+
onCallNotificationPausesV2ShowRequestOpts(requestParameters: OnCallNotificationPausesV2ShowRequest): Promise<runtime.RequestOpts>;
|
|
61
|
+
/**
|
|
62
|
+
* Show a single on-call notification pause. Cancelled pauses are not found.
|
|
63
|
+
* Show On-call Notification Pauses V2
|
|
64
|
+
*/
|
|
65
|
+
onCallNotificationPausesV2ShowRaw(requestParameters: OnCallNotificationPausesV2ShowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OnCallNotificationPausesShowResultV2>>;
|
|
66
|
+
/**
|
|
67
|
+
* Show a single on-call notification pause. Cancelled pauses are not found.
|
|
68
|
+
* Show On-call Notification Pauses V2
|
|
69
|
+
*/
|
|
70
|
+
onCallNotificationPausesV2Show(requestParameters: OnCallNotificationPausesV2ShowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OnCallNotificationPausesShowResultV2>;
|
|
71
|
+
}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* incident.io
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
20
|
+
}
|
|
21
|
+
Object.defineProperty(o, k2, desc);
|
|
22
|
+
}) : (function(o, m, k, k2) {
|
|
23
|
+
if (k2 === undefined) k2 = k;
|
|
24
|
+
o[k2] = m[k];
|
|
25
|
+
}));
|
|
26
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
27
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
28
|
+
}) : function(o, v) {
|
|
29
|
+
o["default"] = v;
|
|
30
|
+
});
|
|
31
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
32
|
+
var ownKeys = function(o) {
|
|
33
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
34
|
+
var ar = [];
|
|
35
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
36
|
+
return ar;
|
|
37
|
+
};
|
|
38
|
+
return ownKeys(o);
|
|
39
|
+
};
|
|
40
|
+
return function (mod) {
|
|
41
|
+
if (mod && mod.__esModule) return mod;
|
|
42
|
+
var result = {};
|
|
43
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
44
|
+
__setModuleDefault(result, mod);
|
|
45
|
+
return result;
|
|
46
|
+
};
|
|
47
|
+
})();
|
|
48
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
+
exports.OnCallNotificationPausesV2Api = void 0;
|
|
50
|
+
const runtime = __importStar(require("../runtime.js"));
|
|
51
|
+
const OnCallNotificationPausesListResultV2_js_1 = require("../models/OnCallNotificationPausesListResultV2.js");
|
|
52
|
+
const OnCallNotificationPausesShowResultV2_js_1 = require("../models/OnCallNotificationPausesShowResultV2.js");
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
*/
|
|
56
|
+
class OnCallNotificationPausesV2Api extends runtime.BaseAPI {
|
|
57
|
+
/**
|
|
58
|
+
* Creates request options for onCallNotificationPausesV2List without sending the request
|
|
59
|
+
*/
|
|
60
|
+
async onCallNotificationPausesV2ListRequestOpts(requestParameters) {
|
|
61
|
+
const queryParameters = {};
|
|
62
|
+
if (requestParameters['from'] != null) {
|
|
63
|
+
queryParameters['from'] = runtime.serializeDateTime(requestParameters['from']);
|
|
64
|
+
}
|
|
65
|
+
if (requestParameters['to'] != null) {
|
|
66
|
+
queryParameters['to'] = runtime.serializeDateTime(requestParameters['to']);
|
|
67
|
+
}
|
|
68
|
+
if (requestParameters['page_size'] != null) {
|
|
69
|
+
queryParameters['page_size'] = requestParameters['page_size'];
|
|
70
|
+
}
|
|
71
|
+
if (requestParameters['after'] != null) {
|
|
72
|
+
queryParameters['after'] = requestParameters['after'];
|
|
73
|
+
}
|
|
74
|
+
const headerParameters = {};
|
|
75
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
76
|
+
const token = this.configuration.accessToken;
|
|
77
|
+
const tokenString = await token("BearerAuth", []);
|
|
78
|
+
if (tokenString) {
|
|
79
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
let urlPath = `/v2/on_call_notification_pauses`;
|
|
83
|
+
return {
|
|
84
|
+
path: urlPath,
|
|
85
|
+
method: 'GET',
|
|
86
|
+
headers: headerParameters,
|
|
87
|
+
query: queryParameters,
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* List on-call notification pauses across the organisation. By default this returns pauses that are active now or scheduled for the future. Cancelled pauses are never returned, and pauses that were resumed early have ends_at set to when they were resumed.
|
|
92
|
+
* List On-call Notification Pauses V2
|
|
93
|
+
*/
|
|
94
|
+
async onCallNotificationPausesV2ListRaw(requestParameters, initOverrides) {
|
|
95
|
+
const requestOptions = await this.onCallNotificationPausesV2ListRequestOpts(requestParameters);
|
|
96
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
97
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, OnCallNotificationPausesListResultV2_js_1.OnCallNotificationPausesListResultV2FromJSON)(jsonValue));
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* List on-call notification pauses across the organisation. By default this returns pauses that are active now or scheduled for the future. Cancelled pauses are never returned, and pauses that were resumed early have ends_at set to when they were resumed.
|
|
101
|
+
* List On-call Notification Pauses V2
|
|
102
|
+
*/
|
|
103
|
+
async onCallNotificationPausesV2List(requestParameters = {}, initOverrides) {
|
|
104
|
+
const response = await this.onCallNotificationPausesV2ListRaw(requestParameters, initOverrides);
|
|
105
|
+
return await response.value();
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Creates request options for onCallNotificationPausesV2Show without sending the request
|
|
109
|
+
*/
|
|
110
|
+
async onCallNotificationPausesV2ShowRequestOpts(requestParameters) {
|
|
111
|
+
if (requestParameters['id'] == null) {
|
|
112
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling onCallNotificationPausesV2Show().');
|
|
113
|
+
}
|
|
114
|
+
const queryParameters = {};
|
|
115
|
+
const headerParameters = {};
|
|
116
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
117
|
+
const token = this.configuration.accessToken;
|
|
118
|
+
const tokenString = await token("BearerAuth", []);
|
|
119
|
+
if (tokenString) {
|
|
120
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
let urlPath = `/v2/on_call_notification_pauses/{id}`;
|
|
124
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
125
|
+
return {
|
|
126
|
+
path: urlPath,
|
|
127
|
+
method: 'GET',
|
|
128
|
+
headers: headerParameters,
|
|
129
|
+
query: queryParameters,
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Show a single on-call notification pause. Cancelled pauses are not found.
|
|
134
|
+
* Show On-call Notification Pauses V2
|
|
135
|
+
*/
|
|
136
|
+
async onCallNotificationPausesV2ShowRaw(requestParameters, initOverrides) {
|
|
137
|
+
const requestOptions = await this.onCallNotificationPausesV2ShowRequestOpts(requestParameters);
|
|
138
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
139
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, OnCallNotificationPausesShowResultV2_js_1.OnCallNotificationPausesShowResultV2FromJSON)(jsonValue));
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Show a single on-call notification pause. Cancelled pauses are not found.
|
|
143
|
+
* Show On-call Notification Pauses V2
|
|
144
|
+
*/
|
|
145
|
+
async onCallNotificationPausesV2Show(requestParameters, initOverrides) {
|
|
146
|
+
const response = await this.onCallNotificationPausesV2ShowRaw(requestParameters, initOverrides);
|
|
147
|
+
return await response.value();
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
exports.OnCallNotificationPausesV2Api = OnCallNotificationPausesV2Api;
|
package/dist/cjs/apis/index.d.ts
CHANGED
|
@@ -44,6 +44,7 @@ export * from './IncidentUpdatesV2Api.js';
|
|
|
44
44
|
export * from './IncidentsV1Api.js';
|
|
45
45
|
export * from './IncidentsV2Api.js';
|
|
46
46
|
export * from './MaintenanceWindowsV1Api.js';
|
|
47
|
+
export * from './OnCallNotificationPausesV2Api.js';
|
|
47
48
|
export * from './PayConfigsV2Api.js';
|
|
48
49
|
export * from './PayReportsV2Api.js';
|
|
49
50
|
export * from './PoliciesV2Api.js';
|
package/dist/cjs/apis/index.js
CHANGED
|
@@ -62,6 +62,7 @@ __exportStar(require("./IncidentUpdatesV2Api.js"), exports);
|
|
|
62
62
|
__exportStar(require("./IncidentsV1Api.js"), exports);
|
|
63
63
|
__exportStar(require("./IncidentsV2Api.js"), exports);
|
|
64
64
|
__exportStar(require("./MaintenanceWindowsV1Api.js"), exports);
|
|
65
|
+
__exportStar(require("./OnCallNotificationPausesV2Api.js"), exports);
|
|
65
66
|
__exportStar(require("./PayConfigsV2Api.js"), exports);
|
|
66
67
|
__exportStar(require("./PayReportsV2Api.js"), exports);
|
|
67
68
|
__exportStar(require("./PoliciesV2Api.js"), exports);
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* incident.io
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* A window in which a user's on-call notifications are paused: while it's active, escalations skip the user instead of paging them.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface OnCallNotificationPauseV2
|
|
16
|
+
*/
|
|
17
|
+
export interface OnCallNotificationPauseV2 {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
created_at: Date;
|
|
22
|
+
/**
|
|
23
|
+
* When notifications resume
|
|
24
|
+
*/
|
|
25
|
+
ends_at: Date;
|
|
26
|
+
/**
|
|
27
|
+
* Unique identifier for this notification pause
|
|
28
|
+
*/
|
|
29
|
+
id: string;
|
|
30
|
+
/**
|
|
31
|
+
* Free text reason for why notifications are paused, shown to teammates
|
|
32
|
+
*/
|
|
33
|
+
reason?: string;
|
|
34
|
+
/**
|
|
35
|
+
* When notifications stop being sent to the user
|
|
36
|
+
*/
|
|
37
|
+
starts_at: Date;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
updated_at: Date;
|
|
42
|
+
/**
|
|
43
|
+
* The user whose on-call notifications are paused in this time window
|
|
44
|
+
*/
|
|
45
|
+
user_id: string;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Check if a given object implements the OnCallNotificationPauseV2 interface.
|
|
49
|
+
*/
|
|
50
|
+
export declare function instanceOfOnCallNotificationPauseV2(value: object): value is OnCallNotificationPauseV2;
|
|
51
|
+
export declare function OnCallNotificationPauseV2FromJSON(json: any): OnCallNotificationPauseV2;
|
|
52
|
+
export declare function OnCallNotificationPauseV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): OnCallNotificationPauseV2;
|
|
53
|
+
export declare function OnCallNotificationPauseV2ToJSON(json: any): OnCallNotificationPauseV2;
|
|
54
|
+
export declare function OnCallNotificationPauseV2ToJSONTyped(value?: OnCallNotificationPauseV2 | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* incident.io
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfOnCallNotificationPauseV2 = instanceOfOnCallNotificationPauseV2;
|
|
17
|
+
exports.OnCallNotificationPauseV2FromJSON = OnCallNotificationPauseV2FromJSON;
|
|
18
|
+
exports.OnCallNotificationPauseV2FromJSONTyped = OnCallNotificationPauseV2FromJSONTyped;
|
|
19
|
+
exports.OnCallNotificationPauseV2ToJSON = OnCallNotificationPauseV2ToJSON;
|
|
20
|
+
exports.OnCallNotificationPauseV2ToJSONTyped = OnCallNotificationPauseV2ToJSONTyped;
|
|
21
|
+
const runtime_js_1 = require("../runtime.js");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the OnCallNotificationPauseV2 interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfOnCallNotificationPauseV2(value) {
|
|
26
|
+
if (!('created_at' in value) || value['created_at'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('ends_at' in value) || value['ends_at'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('starts_at' in value) || value['starts_at'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('updated_at' in value) || value['updated_at'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('user_id' in value) || value['user_id'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
function OnCallNotificationPauseV2FromJSON(json) {
|
|
41
|
+
return OnCallNotificationPauseV2FromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function OnCallNotificationPauseV2FromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
if (json == null) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'created_at': (json['created_at'] == null ? json['created_at'] : (0, runtime_js_1.parseDateTime)(json['created_at'])),
|
|
49
|
+
'ends_at': (json['ends_at'] == null ? json['ends_at'] : (0, runtime_js_1.parseDateTime)(json['ends_at'])),
|
|
50
|
+
'id': json['id'],
|
|
51
|
+
'reason': json['reason'] == null ? undefined : json['reason'],
|
|
52
|
+
'starts_at': (json['starts_at'] == null ? json['starts_at'] : (0, runtime_js_1.parseDateTime)(json['starts_at'])),
|
|
53
|
+
'updated_at': (json['updated_at'] == null ? json['updated_at'] : (0, runtime_js_1.parseDateTime)(json['updated_at'])),
|
|
54
|
+
'user_id': json['user_id'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function OnCallNotificationPauseV2ToJSON(json) {
|
|
58
|
+
return OnCallNotificationPauseV2ToJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
function OnCallNotificationPauseV2ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
'created_at': value['created_at'] == null ? value['created_at'] : (0, runtime_js_1.serializeDateTime)(value['created_at']),
|
|
66
|
+
'ends_at': value['ends_at'] == null ? value['ends_at'] : (0, runtime_js_1.serializeDateTime)(value['ends_at']),
|
|
67
|
+
'id': value['id'],
|
|
68
|
+
'reason': value['reason'],
|
|
69
|
+
'starts_at': value['starts_at'] == null ? value['starts_at'] : (0, runtime_js_1.serializeDateTime)(value['starts_at']),
|
|
70
|
+
'updated_at': value['updated_at'] == null ? value['updated_at'] : (0, runtime_js_1.serializeDateTime)(value['updated_at']),
|
|
71
|
+
'user_id': value['user_id'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* incident.io
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { OnCallNotificationPauseV2 } from './OnCallNotificationPauseV2.js';
|
|
13
|
+
import type { PaginationMetaResultV2 } from './PaginationMetaResultV2.js';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface OnCallNotificationPausesListResultV2
|
|
18
|
+
*/
|
|
19
|
+
export interface OnCallNotificationPausesListResultV2 {
|
|
20
|
+
/**
|
|
21
|
+
* Pauses ordered by when they start
|
|
22
|
+
*/
|
|
23
|
+
on_call_notification_pauses: Array<OnCallNotificationPauseV2>;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
pagination_meta: PaginationMetaResultV2;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the OnCallNotificationPausesListResultV2 interface.
|
|
31
|
+
*/
|
|
32
|
+
export declare function instanceOfOnCallNotificationPausesListResultV2(value: object): value is OnCallNotificationPausesListResultV2;
|
|
33
|
+
export declare function OnCallNotificationPausesListResultV2FromJSON(json: any): OnCallNotificationPausesListResultV2;
|
|
34
|
+
export declare function OnCallNotificationPausesListResultV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): OnCallNotificationPausesListResultV2;
|
|
35
|
+
export declare function OnCallNotificationPausesListResultV2ToJSON(json: any): OnCallNotificationPausesListResultV2;
|
|
36
|
+
export declare function OnCallNotificationPausesListResultV2ToJSONTyped(value?: OnCallNotificationPausesListResultV2 | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* incident.io
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfOnCallNotificationPausesListResultV2 = instanceOfOnCallNotificationPausesListResultV2;
|
|
17
|
+
exports.OnCallNotificationPausesListResultV2FromJSON = OnCallNotificationPausesListResultV2FromJSON;
|
|
18
|
+
exports.OnCallNotificationPausesListResultV2FromJSONTyped = OnCallNotificationPausesListResultV2FromJSONTyped;
|
|
19
|
+
exports.OnCallNotificationPausesListResultV2ToJSON = OnCallNotificationPausesListResultV2ToJSON;
|
|
20
|
+
exports.OnCallNotificationPausesListResultV2ToJSONTyped = OnCallNotificationPausesListResultV2ToJSONTyped;
|
|
21
|
+
const OnCallNotificationPauseV2_js_1 = require("./OnCallNotificationPauseV2.js");
|
|
22
|
+
const PaginationMetaResultV2_js_1 = require("./PaginationMetaResultV2.js");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the OnCallNotificationPausesListResultV2 interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfOnCallNotificationPausesListResultV2(value) {
|
|
27
|
+
if (!('on_call_notification_pauses' in value) || value['on_call_notification_pauses'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('pagination_meta' in value) || value['pagination_meta'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function OnCallNotificationPausesListResultV2FromJSON(json) {
|
|
34
|
+
return OnCallNotificationPausesListResultV2FromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function OnCallNotificationPausesListResultV2FromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'on_call_notification_pauses': (json['on_call_notification_pauses'].map(OnCallNotificationPauseV2_js_1.OnCallNotificationPauseV2FromJSON)),
|
|
42
|
+
'pagination_meta': (0, PaginationMetaResultV2_js_1.PaginationMetaResultV2FromJSON)(json['pagination_meta']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function OnCallNotificationPausesListResultV2ToJSON(json) {
|
|
46
|
+
return OnCallNotificationPausesListResultV2ToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function OnCallNotificationPausesListResultV2ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'on_call_notification_pauses': (value['on_call_notification_pauses'].map(OnCallNotificationPauseV2_js_1.OnCallNotificationPauseV2ToJSON)),
|
|
54
|
+
'pagination_meta': (0, PaginationMetaResultV2_js_1.PaginationMetaResultV2ToJSON)(value['pagination_meta']),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* incident.io
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { OnCallNotificationPauseV2 } from './OnCallNotificationPauseV2.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface OnCallNotificationPausesShowResultV2
|
|
17
|
+
*/
|
|
18
|
+
export interface OnCallNotificationPausesShowResultV2 {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
on_call_notification_pause: OnCallNotificationPauseV2;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the OnCallNotificationPausesShowResultV2 interface.
|
|
26
|
+
*/
|
|
27
|
+
export declare function instanceOfOnCallNotificationPausesShowResultV2(value: object): value is OnCallNotificationPausesShowResultV2;
|
|
28
|
+
export declare function OnCallNotificationPausesShowResultV2FromJSON(json: any): OnCallNotificationPausesShowResultV2;
|
|
29
|
+
export declare function OnCallNotificationPausesShowResultV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): OnCallNotificationPausesShowResultV2;
|
|
30
|
+
export declare function OnCallNotificationPausesShowResultV2ToJSON(json: any): OnCallNotificationPausesShowResultV2;
|
|
31
|
+
export declare function OnCallNotificationPausesShowResultV2ToJSONTyped(value?: OnCallNotificationPausesShowResultV2 | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* incident.io
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfOnCallNotificationPausesShowResultV2 = instanceOfOnCallNotificationPausesShowResultV2;
|
|
17
|
+
exports.OnCallNotificationPausesShowResultV2FromJSON = OnCallNotificationPausesShowResultV2FromJSON;
|
|
18
|
+
exports.OnCallNotificationPausesShowResultV2FromJSONTyped = OnCallNotificationPausesShowResultV2FromJSONTyped;
|
|
19
|
+
exports.OnCallNotificationPausesShowResultV2ToJSON = OnCallNotificationPausesShowResultV2ToJSON;
|
|
20
|
+
exports.OnCallNotificationPausesShowResultV2ToJSONTyped = OnCallNotificationPausesShowResultV2ToJSONTyped;
|
|
21
|
+
const OnCallNotificationPauseV2_js_1 = require("./OnCallNotificationPauseV2.js");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the OnCallNotificationPausesShowResultV2 interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfOnCallNotificationPausesShowResultV2(value) {
|
|
26
|
+
if (!('on_call_notification_pause' in value) || value['on_call_notification_pause'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function OnCallNotificationPausesShowResultV2FromJSON(json) {
|
|
31
|
+
return OnCallNotificationPausesShowResultV2FromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function OnCallNotificationPausesShowResultV2FromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'on_call_notification_pause': (0, OnCallNotificationPauseV2_js_1.OnCallNotificationPauseV2FromJSON)(json['on_call_notification_pause']),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function OnCallNotificationPausesShowResultV2ToJSON(json) {
|
|
42
|
+
return OnCallNotificationPausesShowResultV2ToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function OnCallNotificationPausesShowResultV2ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'on_call_notification_pause': (0, OnCallNotificationPauseV2_js_1.OnCallNotificationPauseV2ToJSON)(value['on_call_notification_pause']),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -56,6 +56,7 @@ export declare const StepProgressSlimV2StatusEnum: {
|
|
|
56
56
|
readonly Complete: "complete";
|
|
57
57
|
readonly Pending: "pending";
|
|
58
58
|
readonly Error: "error";
|
|
59
|
+
readonly Suspended: "suspended";
|
|
59
60
|
};
|
|
60
61
|
export type StepProgressSlimV2StatusEnum = typeof StepProgressSlimV2StatusEnum[keyof typeof StepProgressSlimV2StatusEnum];
|
|
61
62
|
/**
|
|
@@ -56,6 +56,7 @@ export declare const StepProgressV2StatusEnum: {
|
|
|
56
56
|
readonly Complete: "complete";
|
|
57
57
|
readonly Pending: "pending";
|
|
58
58
|
readonly Error: "error";
|
|
59
|
+
readonly Suspended: "suspended";
|
|
59
60
|
};
|
|
60
61
|
export type StepProgressV2StatusEnum = typeof StepProgressV2StatusEnum[keyof typeof StepProgressV2StatusEnum];
|
|
61
62
|
/**
|
|
@@ -892,6 +892,9 @@ export * from './ManagementMetaV2.js';
|
|
|
892
892
|
export * from './NewSlackUserGroupPayloadV2.js';
|
|
893
893
|
export * from './OnCallNotificationMethodPhoneDetailsPublicV2.js';
|
|
894
894
|
export * from './OnCallNotificationMethodPublicV2.js';
|
|
895
|
+
export * from './OnCallNotificationPauseV2.js';
|
|
896
|
+
export * from './OnCallNotificationPausesListResultV2.js';
|
|
897
|
+
export * from './OnCallNotificationPausesShowResultV2.js';
|
|
895
898
|
export * from './OnCallNotificationRuleAppDetailsPublicV2.js';
|
|
896
899
|
export * from './OnCallNotificationRuleMethodTargetPublicV2.js';
|
|
897
900
|
export * from './OnCallNotificationRuleMethodTargetSpecificPublicV2.js';
|
package/dist/cjs/models/index.js
CHANGED
|
@@ -910,6 +910,9 @@ __exportStar(require("./ManagementMetaV2.js"), exports);
|
|
|
910
910
|
__exportStar(require("./NewSlackUserGroupPayloadV2.js"), exports);
|
|
911
911
|
__exportStar(require("./OnCallNotificationMethodPhoneDetailsPublicV2.js"), exports);
|
|
912
912
|
__exportStar(require("./OnCallNotificationMethodPublicV2.js"), exports);
|
|
913
|
+
__exportStar(require("./OnCallNotificationPauseV2.js"), exports);
|
|
914
|
+
__exportStar(require("./OnCallNotificationPausesListResultV2.js"), exports);
|
|
915
|
+
__exportStar(require("./OnCallNotificationPausesShowResultV2.js"), exports);
|
|
913
916
|
__exportStar(require("./OnCallNotificationRuleAppDetailsPublicV2.js"), exports);
|
|
914
917
|
__exportStar(require("./OnCallNotificationRuleMethodTargetPublicV2.js"), exports);
|
|
915
918
|
__exportStar(require("./OnCallNotificationRuleMethodTargetSpecificPublicV2.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "2.
|
|
1
|
+
export declare const VERSION = "2.16.0";
|
package/dist/cjs/version.js
CHANGED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* incident.io
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime.js';
|
|
13
|
+
import { type OnCallNotificationPausesListResultV2 } from '../models/OnCallNotificationPausesListResultV2.js';
|
|
14
|
+
import { type OnCallNotificationPausesShowResultV2 } from '../models/OnCallNotificationPausesShowResultV2.js';
|
|
15
|
+
export interface OnCallNotificationPausesV2ListRequest {
|
|
16
|
+
/**
|
|
17
|
+
* Only return pauses that end after this time. Defaults to now, so by default only active and upcoming pauses are returned.
|
|
18
|
+
*/
|
|
19
|
+
from?: Date;
|
|
20
|
+
/**
|
|
21
|
+
* Only return pauses that start before this time
|
|
22
|
+
*/
|
|
23
|
+
to?: Date;
|
|
24
|
+
/**
|
|
25
|
+
* Integer number of records to return
|
|
26
|
+
*/
|
|
27
|
+
page_size?: number;
|
|
28
|
+
/**
|
|
29
|
+
* A pause's ID. This endpoint will return a list of pauses after this ID in relation to the API response order.
|
|
30
|
+
*/
|
|
31
|
+
after?: string;
|
|
32
|
+
}
|
|
33
|
+
export interface OnCallNotificationPausesV2ShowRequest {
|
|
34
|
+
/**
|
|
35
|
+
* The pause's ID
|
|
36
|
+
*/
|
|
37
|
+
id: string;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
*/
|
|
42
|
+
export declare class OnCallNotificationPausesV2Api extends runtime.BaseAPI {
|
|
43
|
+
/**
|
|
44
|
+
* Creates request options for onCallNotificationPausesV2List without sending the request
|
|
45
|
+
*/
|
|
46
|
+
onCallNotificationPausesV2ListRequestOpts(requestParameters: OnCallNotificationPausesV2ListRequest): Promise<runtime.RequestOpts>;
|
|
47
|
+
/**
|
|
48
|
+
* List on-call notification pauses across the organisation. By default this returns pauses that are active now or scheduled for the future. Cancelled pauses are never returned, and pauses that were resumed early have ends_at set to when they were resumed.
|
|
49
|
+
* List On-call Notification Pauses V2
|
|
50
|
+
*/
|
|
51
|
+
onCallNotificationPausesV2ListRaw(requestParameters: OnCallNotificationPausesV2ListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OnCallNotificationPausesListResultV2>>;
|
|
52
|
+
/**
|
|
53
|
+
* List on-call notification pauses across the organisation. By default this returns pauses that are active now or scheduled for the future. Cancelled pauses are never returned, and pauses that were resumed early have ends_at set to when they were resumed.
|
|
54
|
+
* List On-call Notification Pauses V2
|
|
55
|
+
*/
|
|
56
|
+
onCallNotificationPausesV2List(requestParameters?: OnCallNotificationPausesV2ListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OnCallNotificationPausesListResultV2>;
|
|
57
|
+
/**
|
|
58
|
+
* Creates request options for onCallNotificationPausesV2Show without sending the request
|
|
59
|
+
*/
|
|
60
|
+
onCallNotificationPausesV2ShowRequestOpts(requestParameters: OnCallNotificationPausesV2ShowRequest): Promise<runtime.RequestOpts>;
|
|
61
|
+
/**
|
|
62
|
+
* Show a single on-call notification pause. Cancelled pauses are not found.
|
|
63
|
+
* Show On-call Notification Pauses V2
|
|
64
|
+
*/
|
|
65
|
+
onCallNotificationPausesV2ShowRaw(requestParameters: OnCallNotificationPausesV2ShowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OnCallNotificationPausesShowResultV2>>;
|
|
66
|
+
/**
|
|
67
|
+
* Show a single on-call notification pause. Cancelled pauses are not found.
|
|
68
|
+
* Show On-call Notification Pauses V2
|
|
69
|
+
*/
|
|
70
|
+
onCallNotificationPausesV2Show(requestParameters: OnCallNotificationPausesV2ShowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OnCallNotificationPausesShowResultV2>;
|
|
71
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* incident.io
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import * as runtime from '../runtime.js';
|
|
15
|
+
import { OnCallNotificationPausesListResultV2FromJSON, } from '../models/OnCallNotificationPausesListResultV2.js';
|
|
16
|
+
import { OnCallNotificationPausesShowResultV2FromJSON, } from '../models/OnCallNotificationPausesShowResultV2.js';
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
export class OnCallNotificationPausesV2Api extends runtime.BaseAPI {
|
|
21
|
+
/**
|
|
22
|
+
* Creates request options for onCallNotificationPausesV2List without sending the request
|
|
23
|
+
*/
|
|
24
|
+
async onCallNotificationPausesV2ListRequestOpts(requestParameters) {
|
|
25
|
+
const queryParameters = {};
|
|
26
|
+
if (requestParameters['from'] != null) {
|
|
27
|
+
queryParameters['from'] = runtime.serializeDateTime(requestParameters['from']);
|
|
28
|
+
}
|
|
29
|
+
if (requestParameters['to'] != null) {
|
|
30
|
+
queryParameters['to'] = runtime.serializeDateTime(requestParameters['to']);
|
|
31
|
+
}
|
|
32
|
+
if (requestParameters['page_size'] != null) {
|
|
33
|
+
queryParameters['page_size'] = requestParameters['page_size'];
|
|
34
|
+
}
|
|
35
|
+
if (requestParameters['after'] != null) {
|
|
36
|
+
queryParameters['after'] = requestParameters['after'];
|
|
37
|
+
}
|
|
38
|
+
const headerParameters = {};
|
|
39
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
40
|
+
const token = this.configuration.accessToken;
|
|
41
|
+
const tokenString = await token("BearerAuth", []);
|
|
42
|
+
if (tokenString) {
|
|
43
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
let urlPath = `/v2/on_call_notification_pauses`;
|
|
47
|
+
return {
|
|
48
|
+
path: urlPath,
|
|
49
|
+
method: 'GET',
|
|
50
|
+
headers: headerParameters,
|
|
51
|
+
query: queryParameters,
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* List on-call notification pauses across the organisation. By default this returns pauses that are active now or scheduled for the future. Cancelled pauses are never returned, and pauses that were resumed early have ends_at set to when they were resumed.
|
|
56
|
+
* List On-call Notification Pauses V2
|
|
57
|
+
*/
|
|
58
|
+
async onCallNotificationPausesV2ListRaw(requestParameters, initOverrides) {
|
|
59
|
+
const requestOptions = await this.onCallNotificationPausesV2ListRequestOpts(requestParameters);
|
|
60
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
61
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => OnCallNotificationPausesListResultV2FromJSON(jsonValue));
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* List on-call notification pauses across the organisation. By default this returns pauses that are active now or scheduled for the future. Cancelled pauses are never returned, and pauses that were resumed early have ends_at set to when they were resumed.
|
|
65
|
+
* List On-call Notification Pauses V2
|
|
66
|
+
*/
|
|
67
|
+
async onCallNotificationPausesV2List(requestParameters = {}, initOverrides) {
|
|
68
|
+
const response = await this.onCallNotificationPausesV2ListRaw(requestParameters, initOverrides);
|
|
69
|
+
return await response.value();
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Creates request options for onCallNotificationPausesV2Show without sending the request
|
|
73
|
+
*/
|
|
74
|
+
async onCallNotificationPausesV2ShowRequestOpts(requestParameters) {
|
|
75
|
+
if (requestParameters['id'] == null) {
|
|
76
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling onCallNotificationPausesV2Show().');
|
|
77
|
+
}
|
|
78
|
+
const queryParameters = {};
|
|
79
|
+
const headerParameters = {};
|
|
80
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
81
|
+
const token = this.configuration.accessToken;
|
|
82
|
+
const tokenString = await token("BearerAuth", []);
|
|
83
|
+
if (tokenString) {
|
|
84
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
let urlPath = `/v2/on_call_notification_pauses/{id}`;
|
|
88
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
89
|
+
return {
|
|
90
|
+
path: urlPath,
|
|
91
|
+
method: 'GET',
|
|
92
|
+
headers: headerParameters,
|
|
93
|
+
query: queryParameters,
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Show a single on-call notification pause. Cancelled pauses are not found.
|
|
98
|
+
* Show On-call Notification Pauses V2
|
|
99
|
+
*/
|
|
100
|
+
async onCallNotificationPausesV2ShowRaw(requestParameters, initOverrides) {
|
|
101
|
+
const requestOptions = await this.onCallNotificationPausesV2ShowRequestOpts(requestParameters);
|
|
102
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
103
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => OnCallNotificationPausesShowResultV2FromJSON(jsonValue));
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Show a single on-call notification pause. Cancelled pauses are not found.
|
|
107
|
+
* Show On-call Notification Pauses V2
|
|
108
|
+
*/
|
|
109
|
+
async onCallNotificationPausesV2Show(requestParameters, initOverrides) {
|
|
110
|
+
const response = await this.onCallNotificationPausesV2ShowRaw(requestParameters, initOverrides);
|
|
111
|
+
return await response.value();
|
|
112
|
+
}
|
|
113
|
+
}
|
package/dist/esm/apis/index.d.ts
CHANGED
|
@@ -44,6 +44,7 @@ export * from './IncidentUpdatesV2Api.js';
|
|
|
44
44
|
export * from './IncidentsV1Api.js';
|
|
45
45
|
export * from './IncidentsV2Api.js';
|
|
46
46
|
export * from './MaintenanceWindowsV1Api.js';
|
|
47
|
+
export * from './OnCallNotificationPausesV2Api.js';
|
|
47
48
|
export * from './PayConfigsV2Api.js';
|
|
48
49
|
export * from './PayReportsV2Api.js';
|
|
49
50
|
export * from './PoliciesV2Api.js';
|
package/dist/esm/apis/index.js
CHANGED
|
@@ -46,6 +46,7 @@ export * from './IncidentUpdatesV2Api.js';
|
|
|
46
46
|
export * from './IncidentsV1Api.js';
|
|
47
47
|
export * from './IncidentsV2Api.js';
|
|
48
48
|
export * from './MaintenanceWindowsV1Api.js';
|
|
49
|
+
export * from './OnCallNotificationPausesV2Api.js';
|
|
49
50
|
export * from './PayConfigsV2Api.js';
|
|
50
51
|
export * from './PayReportsV2Api.js';
|
|
51
52
|
export * from './PoliciesV2Api.js';
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* incident.io
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* A window in which a user's on-call notifications are paused: while it's active, escalations skip the user instead of paging them.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface OnCallNotificationPauseV2
|
|
16
|
+
*/
|
|
17
|
+
export interface OnCallNotificationPauseV2 {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
created_at: Date;
|
|
22
|
+
/**
|
|
23
|
+
* When notifications resume
|
|
24
|
+
*/
|
|
25
|
+
ends_at: Date;
|
|
26
|
+
/**
|
|
27
|
+
* Unique identifier for this notification pause
|
|
28
|
+
*/
|
|
29
|
+
id: string;
|
|
30
|
+
/**
|
|
31
|
+
* Free text reason for why notifications are paused, shown to teammates
|
|
32
|
+
*/
|
|
33
|
+
reason?: string;
|
|
34
|
+
/**
|
|
35
|
+
* When notifications stop being sent to the user
|
|
36
|
+
*/
|
|
37
|
+
starts_at: Date;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
updated_at: Date;
|
|
42
|
+
/**
|
|
43
|
+
* The user whose on-call notifications are paused in this time window
|
|
44
|
+
*/
|
|
45
|
+
user_id: string;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Check if a given object implements the OnCallNotificationPauseV2 interface.
|
|
49
|
+
*/
|
|
50
|
+
export declare function instanceOfOnCallNotificationPauseV2(value: object): value is OnCallNotificationPauseV2;
|
|
51
|
+
export declare function OnCallNotificationPauseV2FromJSON(json: any): OnCallNotificationPauseV2;
|
|
52
|
+
export declare function OnCallNotificationPauseV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): OnCallNotificationPauseV2;
|
|
53
|
+
export declare function OnCallNotificationPauseV2ToJSON(json: any): OnCallNotificationPauseV2;
|
|
54
|
+
export declare function OnCallNotificationPauseV2ToJSONTyped(value?: OnCallNotificationPauseV2 | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* incident.io
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { parseDateTime, serializeDateTime } from '../runtime.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the OnCallNotificationPauseV2 interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfOnCallNotificationPauseV2(value) {
|
|
19
|
+
if (!('created_at' in value) || value['created_at'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('ends_at' in value) || value['ends_at'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('starts_at' in value) || value['starts_at'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('updated_at' in value) || value['updated_at'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('user_id' in value) || value['user_id'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
export function OnCallNotificationPauseV2FromJSON(json) {
|
|
34
|
+
return OnCallNotificationPauseV2FromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function OnCallNotificationPauseV2FromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'created_at': (json['created_at'] == null ? json['created_at'] : parseDateTime(json['created_at'])),
|
|
42
|
+
'ends_at': (json['ends_at'] == null ? json['ends_at'] : parseDateTime(json['ends_at'])),
|
|
43
|
+
'id': json['id'],
|
|
44
|
+
'reason': json['reason'] == null ? undefined : json['reason'],
|
|
45
|
+
'starts_at': (json['starts_at'] == null ? json['starts_at'] : parseDateTime(json['starts_at'])),
|
|
46
|
+
'updated_at': (json['updated_at'] == null ? json['updated_at'] : parseDateTime(json['updated_at'])),
|
|
47
|
+
'user_id': json['user_id'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
export function OnCallNotificationPauseV2ToJSON(json) {
|
|
51
|
+
return OnCallNotificationPauseV2ToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
export function OnCallNotificationPauseV2ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'created_at': value['created_at'] == null ? value['created_at'] : serializeDateTime(value['created_at']),
|
|
59
|
+
'ends_at': value['ends_at'] == null ? value['ends_at'] : serializeDateTime(value['ends_at']),
|
|
60
|
+
'id': value['id'],
|
|
61
|
+
'reason': value['reason'],
|
|
62
|
+
'starts_at': value['starts_at'] == null ? value['starts_at'] : serializeDateTime(value['starts_at']),
|
|
63
|
+
'updated_at': value['updated_at'] == null ? value['updated_at'] : serializeDateTime(value['updated_at']),
|
|
64
|
+
'user_id': value['user_id'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* incident.io
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { OnCallNotificationPauseV2 } from './OnCallNotificationPauseV2.js';
|
|
13
|
+
import type { PaginationMetaResultV2 } from './PaginationMetaResultV2.js';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface OnCallNotificationPausesListResultV2
|
|
18
|
+
*/
|
|
19
|
+
export interface OnCallNotificationPausesListResultV2 {
|
|
20
|
+
/**
|
|
21
|
+
* Pauses ordered by when they start
|
|
22
|
+
*/
|
|
23
|
+
on_call_notification_pauses: Array<OnCallNotificationPauseV2>;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
pagination_meta: PaginationMetaResultV2;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the OnCallNotificationPausesListResultV2 interface.
|
|
31
|
+
*/
|
|
32
|
+
export declare function instanceOfOnCallNotificationPausesListResultV2(value: object): value is OnCallNotificationPausesListResultV2;
|
|
33
|
+
export declare function OnCallNotificationPausesListResultV2FromJSON(json: any): OnCallNotificationPausesListResultV2;
|
|
34
|
+
export declare function OnCallNotificationPausesListResultV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): OnCallNotificationPausesListResultV2;
|
|
35
|
+
export declare function OnCallNotificationPausesListResultV2ToJSON(json: any): OnCallNotificationPausesListResultV2;
|
|
36
|
+
export declare function OnCallNotificationPausesListResultV2ToJSONTyped(value?: OnCallNotificationPausesListResultV2 | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* incident.io
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { OnCallNotificationPauseV2FromJSON, OnCallNotificationPauseV2ToJSON, } from './OnCallNotificationPauseV2.js';
|
|
15
|
+
import { PaginationMetaResultV2FromJSON, PaginationMetaResultV2ToJSON, } from './PaginationMetaResultV2.js';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the OnCallNotificationPausesListResultV2 interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfOnCallNotificationPausesListResultV2(value) {
|
|
20
|
+
if (!('on_call_notification_pauses' in value) || value['on_call_notification_pauses'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('pagination_meta' in value) || value['pagination_meta'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function OnCallNotificationPausesListResultV2FromJSON(json) {
|
|
27
|
+
return OnCallNotificationPausesListResultV2FromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function OnCallNotificationPausesListResultV2FromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'on_call_notification_pauses': (json['on_call_notification_pauses'].map(OnCallNotificationPauseV2FromJSON)),
|
|
35
|
+
'pagination_meta': PaginationMetaResultV2FromJSON(json['pagination_meta']),
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export function OnCallNotificationPausesListResultV2ToJSON(json) {
|
|
39
|
+
return OnCallNotificationPausesListResultV2ToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
export function OnCallNotificationPausesListResultV2ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'on_call_notification_pauses': (value['on_call_notification_pauses'].map(OnCallNotificationPauseV2ToJSON)),
|
|
47
|
+
'pagination_meta': PaginationMetaResultV2ToJSON(value['pagination_meta']),
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* incident.io
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { OnCallNotificationPauseV2 } from './OnCallNotificationPauseV2.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface OnCallNotificationPausesShowResultV2
|
|
17
|
+
*/
|
|
18
|
+
export interface OnCallNotificationPausesShowResultV2 {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
on_call_notification_pause: OnCallNotificationPauseV2;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the OnCallNotificationPausesShowResultV2 interface.
|
|
26
|
+
*/
|
|
27
|
+
export declare function instanceOfOnCallNotificationPausesShowResultV2(value: object): value is OnCallNotificationPausesShowResultV2;
|
|
28
|
+
export declare function OnCallNotificationPausesShowResultV2FromJSON(json: any): OnCallNotificationPausesShowResultV2;
|
|
29
|
+
export declare function OnCallNotificationPausesShowResultV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): OnCallNotificationPausesShowResultV2;
|
|
30
|
+
export declare function OnCallNotificationPausesShowResultV2ToJSON(json: any): OnCallNotificationPausesShowResultV2;
|
|
31
|
+
export declare function OnCallNotificationPausesShowResultV2ToJSONTyped(value?: OnCallNotificationPausesShowResultV2 | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* incident.io
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { OnCallNotificationPauseV2FromJSON, OnCallNotificationPauseV2ToJSON, } from './OnCallNotificationPauseV2.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the OnCallNotificationPausesShowResultV2 interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfOnCallNotificationPausesShowResultV2(value) {
|
|
19
|
+
if (!('on_call_notification_pause' in value) || value['on_call_notification_pause'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
export function OnCallNotificationPausesShowResultV2FromJSON(json) {
|
|
24
|
+
return OnCallNotificationPausesShowResultV2FromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function OnCallNotificationPausesShowResultV2FromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json == null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'on_call_notification_pause': OnCallNotificationPauseV2FromJSON(json['on_call_notification_pause']),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function OnCallNotificationPausesShowResultV2ToJSON(json) {
|
|
35
|
+
return OnCallNotificationPausesShowResultV2ToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function OnCallNotificationPausesShowResultV2ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'on_call_notification_pause': OnCallNotificationPauseV2ToJSON(value['on_call_notification_pause']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -56,6 +56,7 @@ export declare const StepProgressSlimV2StatusEnum: {
|
|
|
56
56
|
readonly Complete: "complete";
|
|
57
57
|
readonly Pending: "pending";
|
|
58
58
|
readonly Error: "error";
|
|
59
|
+
readonly Suspended: "suspended";
|
|
59
60
|
};
|
|
60
61
|
export type StepProgressSlimV2StatusEnum = typeof StepProgressSlimV2StatusEnum[keyof typeof StepProgressSlimV2StatusEnum];
|
|
61
62
|
/**
|
|
@@ -56,6 +56,7 @@ export declare const StepProgressV2StatusEnum: {
|
|
|
56
56
|
readonly Complete: "complete";
|
|
57
57
|
readonly Pending: "pending";
|
|
58
58
|
readonly Error: "error";
|
|
59
|
+
readonly Suspended: "suspended";
|
|
59
60
|
};
|
|
60
61
|
export type StepProgressV2StatusEnum = typeof StepProgressV2StatusEnum[keyof typeof StepProgressV2StatusEnum];
|
|
61
62
|
/**
|
|
@@ -892,6 +892,9 @@ export * from './ManagementMetaV2.js';
|
|
|
892
892
|
export * from './NewSlackUserGroupPayloadV2.js';
|
|
893
893
|
export * from './OnCallNotificationMethodPhoneDetailsPublicV2.js';
|
|
894
894
|
export * from './OnCallNotificationMethodPublicV2.js';
|
|
895
|
+
export * from './OnCallNotificationPauseV2.js';
|
|
896
|
+
export * from './OnCallNotificationPausesListResultV2.js';
|
|
897
|
+
export * from './OnCallNotificationPausesShowResultV2.js';
|
|
895
898
|
export * from './OnCallNotificationRuleAppDetailsPublicV2.js';
|
|
896
899
|
export * from './OnCallNotificationRuleMethodTargetPublicV2.js';
|
|
897
900
|
export * from './OnCallNotificationRuleMethodTargetSpecificPublicV2.js';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -894,6 +894,9 @@ export * from './ManagementMetaV2.js';
|
|
|
894
894
|
export * from './NewSlackUserGroupPayloadV2.js';
|
|
895
895
|
export * from './OnCallNotificationMethodPhoneDetailsPublicV2.js';
|
|
896
896
|
export * from './OnCallNotificationMethodPublicV2.js';
|
|
897
|
+
export * from './OnCallNotificationPauseV2.js';
|
|
898
|
+
export * from './OnCallNotificationPausesListResultV2.js';
|
|
899
|
+
export * from './OnCallNotificationPausesShowResultV2.js';
|
|
897
900
|
export * from './OnCallNotificationRuleAppDetailsPublicV2.js';
|
|
898
901
|
export * from './OnCallNotificationRuleMethodTargetPublicV2.js';
|
|
899
902
|
export * from './OnCallNotificationRuleMethodTargetSpecificPublicV2.js';
|
package/dist/esm/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "2.
|
|
1
|
+
export declare const VERSION = "2.16.0";
|
package/dist/esm/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Written by `make build` from package.json. Do not edit.
|
|
2
|
-
export const VERSION = "2.
|
|
2
|
+
export const VERSION = "2.16.0";
|