@incident-io/sdk 1.0.0 → 1.2.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/AnnouncementRulesV2Api.d.ts +131 -0
- package/dist/cjs/apis/AnnouncementRulesV2Api.js +279 -0
- package/dist/cjs/apis/AnnouncementTemplatesV2Api.d.ts +129 -0
- package/dist/cjs/apis/AnnouncementTemplatesV2Api.js +273 -0
- package/dist/cjs/apis/StatusPagesV2Api.d.ts +21 -0
- package/dist/cjs/apis/StatusPagesV2Api.js +43 -0
- package/dist/cjs/apis/index.d.ts +2 -0
- package/dist/cjs/apis/index.js +2 -0
- package/dist/cjs/models/AnnouncementRuleV2.d.ts +116 -0
- package/dist/cjs/models/AnnouncementRuleV2.js +130 -0
- package/dist/cjs/models/AnnouncementRulesCreatePayloadV2.d.ts +104 -0
- package/dist/cjs/models/AnnouncementRulesCreatePayloadV2.js +109 -0
- package/dist/cjs/models/AnnouncementRulesCreateResultV2.d.ts +31 -0
- package/dist/cjs/models/AnnouncementRulesCreateResultV2.js +51 -0
- package/dist/cjs/models/AnnouncementRulesListResultV2.d.ts +36 -0
- package/dist/cjs/models/AnnouncementRulesListResultV2.js +56 -0
- package/dist/cjs/models/AnnouncementRulesShowResultV2.d.ts +31 -0
- package/dist/cjs/models/AnnouncementRulesShowResultV2.js +51 -0
- package/dist/cjs/models/AnnouncementRulesUpdatePayloadV2.d.ts +104 -0
- package/dist/cjs/models/AnnouncementRulesUpdatePayloadV2.js +109 -0
- package/dist/cjs/models/AnnouncementRulesUpdateResultV2.d.ts +31 -0
- package/dist/cjs/models/AnnouncementRulesUpdateResultV2.js +51 -0
- package/dist/cjs/models/AnnouncementTemplateActionPayloadV2.d.ts +58 -0
- package/dist/cjs/models/AnnouncementTemplateActionPayloadV2.js +76 -0
- package/dist/cjs/models/AnnouncementTemplateActionV2.d.ts +62 -0
- package/dist/cjs/models/AnnouncementTemplateActionV2.js +80 -0
- package/dist/cjs/models/AnnouncementTemplateFieldPayloadV2.d.ts +71 -0
- package/dist/cjs/models/AnnouncementTemplateFieldPayloadV2.js +81 -0
- package/dist/cjs/models/AnnouncementTemplateFieldV2.d.ts +75 -0
- package/dist/cjs/models/AnnouncementTemplateFieldV2.js +85 -0
- package/dist/cjs/models/AnnouncementTemplateRichTextV2.d.ts +41 -0
- package/dist/cjs/models/AnnouncementTemplateRichTextV2.js +63 -0
- package/dist/cjs/models/AnnouncementTemplateV2.d.ts +52 -0
- package/dist/cjs/models/AnnouncementTemplateV2.js +72 -0
- package/dist/cjs/models/AnnouncementTemplatesCreatePayloadV2.d.ts +44 -0
- package/dist/cjs/models/AnnouncementTemplatesCreatePayloadV2.js +58 -0
- package/dist/cjs/models/AnnouncementTemplatesCreateResultV2.d.ts +31 -0
- package/dist/cjs/models/AnnouncementTemplatesCreateResultV2.js +51 -0
- package/dist/cjs/models/AnnouncementTemplatesListResultV2.d.ts +31 -0
- package/dist/cjs/models/AnnouncementTemplatesListResultV2.js +51 -0
- package/dist/cjs/models/AnnouncementTemplatesShowResultV2.d.ts +31 -0
- package/dist/cjs/models/AnnouncementTemplatesShowResultV2.js +51 -0
- package/dist/cjs/models/AnnouncementTemplatesUpdatePayloadV2.d.ts +44 -0
- package/dist/cjs/models/AnnouncementTemplatesUpdatePayloadV2.js +62 -0
- package/dist/cjs/models/AnnouncementTemplatesUpdateResultV2.d.ts +31 -0
- package/dist/cjs/models/AnnouncementTemplatesUpdateResultV2.js +51 -0
- package/dist/cjs/models/AuditLogOnCallNotificationPauseMetadataV2.d.ts +50 -0
- package/dist/cjs/models/AuditLogOnCallNotificationPauseMetadataV2.js +64 -0
- package/dist/cjs/models/AuditLogTargetV2.d.ts +2 -0
- package/dist/cjs/models/AuditLogTargetV2.js +2 -0
- package/dist/cjs/models/AuditLogsOnCallNotificationPauseCreatedV1.d.ts +53 -0
- package/dist/cjs/models/AuditLogsOnCallNotificationPauseCreatedV1.js +74 -0
- package/dist/cjs/models/AuditLogsOnCallNotificationPauseCreatedV2.d.ts +58 -0
- package/dist/cjs/models/AuditLogsOnCallNotificationPauseCreatedV2.js +79 -0
- package/dist/cjs/models/AuditLogsOnCallNotificationPauseDeletedV1.d.ts +53 -0
- package/dist/cjs/models/AuditLogsOnCallNotificationPauseDeletedV1.js +74 -0
- package/dist/cjs/models/AuditLogsOnCallNotificationPauseDeletedV2.d.ts +58 -0
- package/dist/cjs/models/AuditLogsOnCallNotificationPauseDeletedV2.js +79 -0
- package/dist/cjs/models/AuditLogsOnCallNotificationPauseUpdatedV1.d.ts +53 -0
- package/dist/cjs/models/AuditLogsOnCallNotificationPauseUpdatedV1.js +74 -0
- package/dist/cjs/models/AuditLogsOnCallNotificationPauseUpdatedV2.d.ts +58 -0
- package/dist/cjs/models/AuditLogsOnCallNotificationPauseUpdatedV2.js +79 -0
- package/dist/cjs/models/AuditLogsUserAPIKeyCreatedV1.d.ts +53 -0
- package/dist/cjs/models/AuditLogsUserAPIKeyCreatedV1.js +74 -0
- package/dist/cjs/models/AuditLogsUserAPIKeyDeletedV1.d.ts +53 -0
- package/dist/cjs/models/AuditLogsUserAPIKeyDeletedV1.js +74 -0
- package/dist/cjs/models/PolicyFindingScheduleImpactedUserV2.d.ts +1 -0
- package/dist/cjs/models/PolicyFindingScheduleImpactedUserV2.js +1 -0
- package/dist/cjs/models/PolicyFindingScheduleV2.d.ts +1 -0
- package/dist/cjs/models/PolicyFindingScheduleV2.js +1 -0
- package/dist/cjs/models/StatusPagesShowStatusPageResultV2.d.ts +31 -0
- package/dist/cjs/models/StatusPagesShowStatusPageResultV2.js +51 -0
- package/dist/cjs/models/index.d.ts +29 -0
- package/dist/cjs/models/index.js +29 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/apis/AnnouncementRulesV2Api.d.ts +131 -0
- package/dist/esm/apis/AnnouncementRulesV2Api.js +242 -0
- package/dist/esm/apis/AnnouncementTemplatesV2Api.d.ts +129 -0
- package/dist/esm/apis/AnnouncementTemplatesV2Api.js +236 -0
- package/dist/esm/apis/StatusPagesV2Api.d.ts +21 -0
- package/dist/esm/apis/StatusPagesV2Api.js +43 -0
- package/dist/esm/apis/index.d.ts +2 -0
- package/dist/esm/apis/index.js +2 -0
- package/dist/esm/models/AnnouncementRuleV2.d.ts +116 -0
- package/dist/esm/models/AnnouncementRuleV2.js +122 -0
- package/dist/esm/models/AnnouncementRulesCreatePayloadV2.d.ts +104 -0
- package/dist/esm/models/AnnouncementRulesCreatePayloadV2.js +101 -0
- package/dist/esm/models/AnnouncementRulesCreateResultV2.d.ts +31 -0
- package/dist/esm/models/AnnouncementRulesCreateResultV2.js +44 -0
- package/dist/esm/models/AnnouncementRulesListResultV2.d.ts +36 -0
- package/dist/esm/models/AnnouncementRulesListResultV2.js +49 -0
- package/dist/esm/models/AnnouncementRulesShowResultV2.d.ts +31 -0
- package/dist/esm/models/AnnouncementRulesShowResultV2.js +44 -0
- package/dist/esm/models/AnnouncementRulesUpdatePayloadV2.d.ts +104 -0
- package/dist/esm/models/AnnouncementRulesUpdatePayloadV2.js +101 -0
- package/dist/esm/models/AnnouncementRulesUpdateResultV2.d.ts +31 -0
- package/dist/esm/models/AnnouncementRulesUpdateResultV2.js +44 -0
- package/dist/esm/models/AnnouncementTemplateActionPayloadV2.d.ts +58 -0
- package/dist/esm/models/AnnouncementTemplateActionPayloadV2.js +68 -0
- package/dist/esm/models/AnnouncementTemplateActionV2.d.ts +62 -0
- package/dist/esm/models/AnnouncementTemplateActionV2.js +72 -0
- package/dist/esm/models/AnnouncementTemplateFieldPayloadV2.d.ts +71 -0
- package/dist/esm/models/AnnouncementTemplateFieldPayloadV2.js +73 -0
- package/dist/esm/models/AnnouncementTemplateFieldV2.d.ts +75 -0
- package/dist/esm/models/AnnouncementTemplateFieldV2.js +77 -0
- package/dist/esm/models/AnnouncementTemplateRichTextV2.d.ts +41 -0
- package/dist/esm/models/AnnouncementTemplateRichTextV2.js +55 -0
- package/dist/esm/models/AnnouncementTemplateV2.d.ts +52 -0
- package/dist/esm/models/AnnouncementTemplateV2.js +65 -0
- package/dist/esm/models/AnnouncementTemplatesCreatePayloadV2.d.ts +44 -0
- package/dist/esm/models/AnnouncementTemplatesCreatePayloadV2.js +51 -0
- package/dist/esm/models/AnnouncementTemplatesCreateResultV2.d.ts +31 -0
- package/dist/esm/models/AnnouncementTemplatesCreateResultV2.js +44 -0
- package/dist/esm/models/AnnouncementTemplatesListResultV2.d.ts +31 -0
- package/dist/esm/models/AnnouncementTemplatesListResultV2.js +44 -0
- package/dist/esm/models/AnnouncementTemplatesShowResultV2.d.ts +31 -0
- package/dist/esm/models/AnnouncementTemplatesShowResultV2.js +44 -0
- package/dist/esm/models/AnnouncementTemplatesUpdatePayloadV2.d.ts +44 -0
- package/dist/esm/models/AnnouncementTemplatesUpdatePayloadV2.js +55 -0
- package/dist/esm/models/AnnouncementTemplatesUpdateResultV2.d.ts +31 -0
- package/dist/esm/models/AnnouncementTemplatesUpdateResultV2.js +44 -0
- package/dist/esm/models/AuditLogOnCallNotificationPauseMetadataV2.d.ts +50 -0
- package/dist/esm/models/AuditLogOnCallNotificationPauseMetadataV2.js +57 -0
- package/dist/esm/models/AuditLogTargetV2.d.ts +2 -0
- package/dist/esm/models/AuditLogTargetV2.js +2 -0
- package/dist/esm/models/AuditLogsOnCallNotificationPauseCreatedV1.d.ts +53 -0
- package/dist/esm/models/AuditLogsOnCallNotificationPauseCreatedV1.js +67 -0
- package/dist/esm/models/AuditLogsOnCallNotificationPauseCreatedV2.d.ts +58 -0
- package/dist/esm/models/AuditLogsOnCallNotificationPauseCreatedV2.js +72 -0
- package/dist/esm/models/AuditLogsOnCallNotificationPauseDeletedV1.d.ts +53 -0
- package/dist/esm/models/AuditLogsOnCallNotificationPauseDeletedV1.js +67 -0
- package/dist/esm/models/AuditLogsOnCallNotificationPauseDeletedV2.d.ts +58 -0
- package/dist/esm/models/AuditLogsOnCallNotificationPauseDeletedV2.js +72 -0
- package/dist/esm/models/AuditLogsOnCallNotificationPauseUpdatedV1.d.ts +53 -0
- package/dist/esm/models/AuditLogsOnCallNotificationPauseUpdatedV1.js +67 -0
- package/dist/esm/models/AuditLogsOnCallNotificationPauseUpdatedV2.d.ts +58 -0
- package/dist/esm/models/AuditLogsOnCallNotificationPauseUpdatedV2.js +72 -0
- package/dist/esm/models/AuditLogsUserAPIKeyCreatedV1.d.ts +53 -0
- package/dist/esm/models/AuditLogsUserAPIKeyCreatedV1.js +67 -0
- package/dist/esm/models/AuditLogsUserAPIKeyDeletedV1.d.ts +53 -0
- package/dist/esm/models/AuditLogsUserAPIKeyDeletedV1.js +67 -0
- package/dist/esm/models/PolicyFindingScheduleImpactedUserV2.d.ts +1 -0
- package/dist/esm/models/PolicyFindingScheduleImpactedUserV2.js +1 -0
- package/dist/esm/models/PolicyFindingScheduleV2.d.ts +1 -0
- package/dist/esm/models/PolicyFindingScheduleV2.js +1 -0
- package/dist/esm/models/StatusPagesShowStatusPageResultV2.d.ts +31 -0
- package/dist/esm/models/StatusPagesShowStatusPageResultV2.js +44 -0
- package/dist/esm/models/index.d.ts +29 -0
- package/dist/esm/models/index.js +29 -0
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +1 -1
|
@@ -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 { AnnouncementTemplateV2 } from './AnnouncementTemplateV2.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AnnouncementTemplatesShowResultV2
|
|
17
|
+
*/
|
|
18
|
+
export interface AnnouncementTemplatesShowResultV2 {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
announcement_template: AnnouncementTemplateV2;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the AnnouncementTemplatesShowResultV2 interface.
|
|
26
|
+
*/
|
|
27
|
+
export declare function instanceOfAnnouncementTemplatesShowResultV2(value: object): value is AnnouncementTemplatesShowResultV2;
|
|
28
|
+
export declare function AnnouncementTemplatesShowResultV2FromJSON(json: any): AnnouncementTemplatesShowResultV2;
|
|
29
|
+
export declare function AnnouncementTemplatesShowResultV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): AnnouncementTemplatesShowResultV2;
|
|
30
|
+
export declare function AnnouncementTemplatesShowResultV2ToJSON(json: any): AnnouncementTemplatesShowResultV2;
|
|
31
|
+
export declare function AnnouncementTemplatesShowResultV2ToJSONTyped(value?: AnnouncementTemplatesShowResultV2 | 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.instanceOfAnnouncementTemplatesShowResultV2 = instanceOfAnnouncementTemplatesShowResultV2;
|
|
17
|
+
exports.AnnouncementTemplatesShowResultV2FromJSON = AnnouncementTemplatesShowResultV2FromJSON;
|
|
18
|
+
exports.AnnouncementTemplatesShowResultV2FromJSONTyped = AnnouncementTemplatesShowResultV2FromJSONTyped;
|
|
19
|
+
exports.AnnouncementTemplatesShowResultV2ToJSON = AnnouncementTemplatesShowResultV2ToJSON;
|
|
20
|
+
exports.AnnouncementTemplatesShowResultV2ToJSONTyped = AnnouncementTemplatesShowResultV2ToJSONTyped;
|
|
21
|
+
const AnnouncementTemplateV2_js_1 = require("./AnnouncementTemplateV2.js");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AnnouncementTemplatesShowResultV2 interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAnnouncementTemplatesShowResultV2(value) {
|
|
26
|
+
if (!('announcement_template' in value) || value['announcement_template'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function AnnouncementTemplatesShowResultV2FromJSON(json) {
|
|
31
|
+
return AnnouncementTemplatesShowResultV2FromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function AnnouncementTemplatesShowResultV2FromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'announcement_template': (0, AnnouncementTemplateV2_js_1.AnnouncementTemplateV2FromJSON)(json['announcement_template']),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function AnnouncementTemplatesShowResultV2ToJSON(json) {
|
|
42
|
+
return AnnouncementTemplatesShowResultV2ToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function AnnouncementTemplatesShowResultV2ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'announcement_template': (0, AnnouncementTemplateV2_js_1.AnnouncementTemplateV2ToJSON)(value['announcement_template']),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 { AnnouncementTemplateActionPayloadV2 } from './AnnouncementTemplateActionPayloadV2.js';
|
|
13
|
+
import type { AnnouncementTemplateFieldPayloadV2 } from './AnnouncementTemplateFieldPayloadV2.js';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface AnnouncementTemplatesUpdatePayloadV2
|
|
18
|
+
*/
|
|
19
|
+
export interface AnnouncementTemplatesUpdatePayloadV2 {
|
|
20
|
+
/**
|
|
21
|
+
* Actions shown on the announcement post. Send an empty array to remove them all.
|
|
22
|
+
*/
|
|
23
|
+
actions: Array<AnnouncementTemplateActionPayloadV2>;
|
|
24
|
+
/**
|
|
25
|
+
* Fields shown on the announcement post. Send an empty array to remove them all.
|
|
26
|
+
*/
|
|
27
|
+
fields: Array<AnnouncementTemplateFieldPayloadV2>;
|
|
28
|
+
/**
|
|
29
|
+
* Name of this announcement template, unique within the organisation
|
|
30
|
+
*/
|
|
31
|
+
name: string;
|
|
32
|
+
/**
|
|
33
|
+
* IDs of the teams that own this template. The existing owning teams are kept when omitted.
|
|
34
|
+
*/
|
|
35
|
+
owning_team_ids?: Array<string>;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the AnnouncementTemplatesUpdatePayloadV2 interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfAnnouncementTemplatesUpdatePayloadV2(value: object): value is AnnouncementTemplatesUpdatePayloadV2;
|
|
41
|
+
export declare function AnnouncementTemplatesUpdatePayloadV2FromJSON(json: any): AnnouncementTemplatesUpdatePayloadV2;
|
|
42
|
+
export declare function AnnouncementTemplatesUpdatePayloadV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): AnnouncementTemplatesUpdatePayloadV2;
|
|
43
|
+
export declare function AnnouncementTemplatesUpdatePayloadV2ToJSON(json: any): AnnouncementTemplatesUpdatePayloadV2;
|
|
44
|
+
export declare function AnnouncementTemplatesUpdatePayloadV2ToJSONTyped(value?: AnnouncementTemplatesUpdatePayloadV2 | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
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.instanceOfAnnouncementTemplatesUpdatePayloadV2 = instanceOfAnnouncementTemplatesUpdatePayloadV2;
|
|
17
|
+
exports.AnnouncementTemplatesUpdatePayloadV2FromJSON = AnnouncementTemplatesUpdatePayloadV2FromJSON;
|
|
18
|
+
exports.AnnouncementTemplatesUpdatePayloadV2FromJSONTyped = AnnouncementTemplatesUpdatePayloadV2FromJSONTyped;
|
|
19
|
+
exports.AnnouncementTemplatesUpdatePayloadV2ToJSON = AnnouncementTemplatesUpdatePayloadV2ToJSON;
|
|
20
|
+
exports.AnnouncementTemplatesUpdatePayloadV2ToJSONTyped = AnnouncementTemplatesUpdatePayloadV2ToJSONTyped;
|
|
21
|
+
const AnnouncementTemplateActionPayloadV2_js_1 = require("./AnnouncementTemplateActionPayloadV2.js");
|
|
22
|
+
const AnnouncementTemplateFieldPayloadV2_js_1 = require("./AnnouncementTemplateFieldPayloadV2.js");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the AnnouncementTemplatesUpdatePayloadV2 interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfAnnouncementTemplatesUpdatePayloadV2(value) {
|
|
27
|
+
if (!('actions' in value) || value['actions'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('fields' in value) || value['fields'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function AnnouncementTemplatesUpdatePayloadV2FromJSON(json) {
|
|
36
|
+
return AnnouncementTemplatesUpdatePayloadV2FromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function AnnouncementTemplatesUpdatePayloadV2FromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'actions': (json['actions'].map(AnnouncementTemplateActionPayloadV2_js_1.AnnouncementTemplateActionPayloadV2FromJSON)),
|
|
44
|
+
'fields': (json['fields'].map(AnnouncementTemplateFieldPayloadV2_js_1.AnnouncementTemplateFieldPayloadV2FromJSON)),
|
|
45
|
+
'name': json['name'],
|
|
46
|
+
'owning_team_ids': json['owning_team_ids'] == null ? undefined : json['owning_team_ids'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function AnnouncementTemplatesUpdatePayloadV2ToJSON(json) {
|
|
50
|
+
return AnnouncementTemplatesUpdatePayloadV2ToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function AnnouncementTemplatesUpdatePayloadV2ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'actions': (value['actions'].map(AnnouncementTemplateActionPayloadV2_js_1.AnnouncementTemplateActionPayloadV2ToJSON)),
|
|
58
|
+
'fields': (value['fields'].map(AnnouncementTemplateFieldPayloadV2_js_1.AnnouncementTemplateFieldPayloadV2ToJSON)),
|
|
59
|
+
'name': value['name'],
|
|
60
|
+
'owning_team_ids': value['owning_team_ids'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -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 { AnnouncementTemplateV2 } from './AnnouncementTemplateV2.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AnnouncementTemplatesUpdateResultV2
|
|
17
|
+
*/
|
|
18
|
+
export interface AnnouncementTemplatesUpdateResultV2 {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
announcement_template: AnnouncementTemplateV2;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the AnnouncementTemplatesUpdateResultV2 interface.
|
|
26
|
+
*/
|
|
27
|
+
export declare function instanceOfAnnouncementTemplatesUpdateResultV2(value: object): value is AnnouncementTemplatesUpdateResultV2;
|
|
28
|
+
export declare function AnnouncementTemplatesUpdateResultV2FromJSON(json: any): AnnouncementTemplatesUpdateResultV2;
|
|
29
|
+
export declare function AnnouncementTemplatesUpdateResultV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): AnnouncementTemplatesUpdateResultV2;
|
|
30
|
+
export declare function AnnouncementTemplatesUpdateResultV2ToJSON(json: any): AnnouncementTemplatesUpdateResultV2;
|
|
31
|
+
export declare function AnnouncementTemplatesUpdateResultV2ToJSONTyped(value?: AnnouncementTemplatesUpdateResultV2 | 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.instanceOfAnnouncementTemplatesUpdateResultV2 = instanceOfAnnouncementTemplatesUpdateResultV2;
|
|
17
|
+
exports.AnnouncementTemplatesUpdateResultV2FromJSON = AnnouncementTemplatesUpdateResultV2FromJSON;
|
|
18
|
+
exports.AnnouncementTemplatesUpdateResultV2FromJSONTyped = AnnouncementTemplatesUpdateResultV2FromJSONTyped;
|
|
19
|
+
exports.AnnouncementTemplatesUpdateResultV2ToJSON = AnnouncementTemplatesUpdateResultV2ToJSON;
|
|
20
|
+
exports.AnnouncementTemplatesUpdateResultV2ToJSONTyped = AnnouncementTemplatesUpdateResultV2ToJSONTyped;
|
|
21
|
+
const AnnouncementTemplateV2_js_1 = require("./AnnouncementTemplateV2.js");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AnnouncementTemplatesUpdateResultV2 interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAnnouncementTemplatesUpdateResultV2(value) {
|
|
26
|
+
if (!('announcement_template' in value) || value['announcement_template'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function AnnouncementTemplatesUpdateResultV2FromJSON(json) {
|
|
31
|
+
return AnnouncementTemplatesUpdateResultV2FromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function AnnouncementTemplatesUpdateResultV2FromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'announcement_template': (0, AnnouncementTemplateV2_js_1.AnnouncementTemplateV2FromJSON)(json['announcement_template']),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function AnnouncementTemplatesUpdateResultV2ToJSON(json) {
|
|
42
|
+
return AnnouncementTemplatesUpdateResultV2ToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function AnnouncementTemplatesUpdateResultV2ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'announcement_template': (0, AnnouncementTemplateV2_js_1.AnnouncementTemplateV2ToJSON)(value['announcement_template']),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AuditLogOnCallNotificationPauseMetadataV2
|
|
16
|
+
*/
|
|
17
|
+
export interface AuditLogOnCallNotificationPauseMetadataV2 {
|
|
18
|
+
/**
|
|
19
|
+
* When the pause ended before this update. Set on update entries only
|
|
20
|
+
*/
|
|
21
|
+
before_ends_at?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Why notifications were paused before this update. Set on update entries only. Empty when no reason was given
|
|
24
|
+
*/
|
|
25
|
+
before_reason?: string;
|
|
26
|
+
/**
|
|
27
|
+
* When the pause started before this update. Set on update entries only
|
|
28
|
+
*/
|
|
29
|
+
before_starts_at?: string;
|
|
30
|
+
/**
|
|
31
|
+
* When the notification pause ends
|
|
32
|
+
*/
|
|
33
|
+
ends_at: string;
|
|
34
|
+
/**
|
|
35
|
+
* Why notifications are paused. Empty when no reason was given
|
|
36
|
+
*/
|
|
37
|
+
reason: string;
|
|
38
|
+
/**
|
|
39
|
+
* When the notification pause starts
|
|
40
|
+
*/
|
|
41
|
+
starts_at: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the AuditLogOnCallNotificationPauseMetadataV2 interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfAuditLogOnCallNotificationPauseMetadataV2(value: object): value is AuditLogOnCallNotificationPauseMetadataV2;
|
|
47
|
+
export declare function AuditLogOnCallNotificationPauseMetadataV2FromJSON(json: any): AuditLogOnCallNotificationPauseMetadataV2;
|
|
48
|
+
export declare function AuditLogOnCallNotificationPauseMetadataV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogOnCallNotificationPauseMetadataV2;
|
|
49
|
+
export declare function AuditLogOnCallNotificationPauseMetadataV2ToJSON(json: any): AuditLogOnCallNotificationPauseMetadataV2;
|
|
50
|
+
export declare function AuditLogOnCallNotificationPauseMetadataV2ToJSONTyped(value?: AuditLogOnCallNotificationPauseMetadataV2 | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,64 @@
|
|
|
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.instanceOfAuditLogOnCallNotificationPauseMetadataV2 = instanceOfAuditLogOnCallNotificationPauseMetadataV2;
|
|
17
|
+
exports.AuditLogOnCallNotificationPauseMetadataV2FromJSON = AuditLogOnCallNotificationPauseMetadataV2FromJSON;
|
|
18
|
+
exports.AuditLogOnCallNotificationPauseMetadataV2FromJSONTyped = AuditLogOnCallNotificationPauseMetadataV2FromJSONTyped;
|
|
19
|
+
exports.AuditLogOnCallNotificationPauseMetadataV2ToJSON = AuditLogOnCallNotificationPauseMetadataV2ToJSON;
|
|
20
|
+
exports.AuditLogOnCallNotificationPauseMetadataV2ToJSONTyped = AuditLogOnCallNotificationPauseMetadataV2ToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AuditLogOnCallNotificationPauseMetadataV2 interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAuditLogOnCallNotificationPauseMetadataV2(value) {
|
|
25
|
+
if (!('ends_at' in value) || value['ends_at'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('reason' in value) || value['reason'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('starts_at' in value) || value['starts_at'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function AuditLogOnCallNotificationPauseMetadataV2FromJSON(json) {
|
|
34
|
+
return AuditLogOnCallNotificationPauseMetadataV2FromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function AuditLogOnCallNotificationPauseMetadataV2FromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'before_ends_at': json['before_ends_at'] == null ? undefined : json['before_ends_at'],
|
|
42
|
+
'before_reason': json['before_reason'] == null ? undefined : json['before_reason'],
|
|
43
|
+
'before_starts_at': json['before_starts_at'] == null ? undefined : json['before_starts_at'],
|
|
44
|
+
'ends_at': json['ends_at'],
|
|
45
|
+
'reason': json['reason'],
|
|
46
|
+
'starts_at': json['starts_at'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function AuditLogOnCallNotificationPauseMetadataV2ToJSON(json) {
|
|
50
|
+
return AuditLogOnCallNotificationPauseMetadataV2ToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function AuditLogOnCallNotificationPauseMetadataV2ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'before_ends_at': value['before_ends_at'],
|
|
58
|
+
'before_reason': value['before_reason'],
|
|
59
|
+
'before_starts_at': value['before_starts_at'],
|
|
60
|
+
'ends_at': value['ends_at'],
|
|
61
|
+
'reason': value['reason'],
|
|
62
|
+
'starts_at': value['starts_at'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -72,6 +72,7 @@ export declare const AuditLogTargetV2TypeEnum: {
|
|
|
72
72
|
readonly IpAllowlist: "ip_allowlist";
|
|
73
73
|
readonly Nudge: "nudge";
|
|
74
74
|
readonly OnCallNotificationMethod: "on_call_notification_method";
|
|
75
|
+
readonly OnCallNotificationPause: "on_call_notification_pause";
|
|
75
76
|
readonly Organisation: "organisation";
|
|
76
77
|
readonly OrganisationSettings: "organisation_settings";
|
|
77
78
|
readonly ScheduleOverride: "schedule_override";
|
|
@@ -96,6 +97,7 @@ export declare const AuditLogTargetV2TypeEnum: {
|
|
|
96
97
|
readonly TelemetryDataSource: "telemetry_data_source";
|
|
97
98
|
readonly TwilioConnection: "twilio_connection";
|
|
98
99
|
readonly User: "user";
|
|
100
|
+
readonly UserApiKey: "user_api_key";
|
|
99
101
|
readonly Workflow: "workflow";
|
|
100
102
|
readonly ActivityLog: "activity_log";
|
|
101
103
|
readonly TimelineItem: "timeline_item";
|
|
@@ -63,6 +63,7 @@ exports.AuditLogTargetV2TypeEnum = {
|
|
|
63
63
|
IpAllowlist: 'ip_allowlist',
|
|
64
64
|
Nudge: 'nudge',
|
|
65
65
|
OnCallNotificationMethod: 'on_call_notification_method',
|
|
66
|
+
OnCallNotificationPause: 'on_call_notification_pause',
|
|
66
67
|
Organisation: 'organisation',
|
|
67
68
|
OrganisationSettings: 'organisation_settings',
|
|
68
69
|
ScheduleOverride: 'schedule_override',
|
|
@@ -87,6 +88,7 @@ exports.AuditLogTargetV2TypeEnum = {
|
|
|
87
88
|
TelemetryDataSource: 'telemetry_data_source',
|
|
88
89
|
TwilioConnection: 'twilio_connection',
|
|
89
90
|
User: 'user',
|
|
91
|
+
UserApiKey: 'user_api_key',
|
|
90
92
|
Workflow: 'workflow',
|
|
91
93
|
ActivityLog: 'activity_log',
|
|
92
94
|
TimelineItem: 'timeline_item',
|
|
@@ -0,0 +1,53 @@
|
|
|
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 { AuditLogActorV2 } from './AuditLogActorV2.js';
|
|
13
|
+
import type { AuditLogEntryContextV2 } from './AuditLogEntryContextV2.js';
|
|
14
|
+
import type { AuditLogTargetV2 } from './AuditLogTargetV2.js';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface AuditLogsOnCallNotificationPauseCreatedV1
|
|
19
|
+
*/
|
|
20
|
+
export interface AuditLogsOnCallNotificationPauseCreatedV1 {
|
|
21
|
+
/**
|
|
22
|
+
* The type of log entry that this is
|
|
23
|
+
*/
|
|
24
|
+
action: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
actor: AuditLogActorV2;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
*/
|
|
32
|
+
context: AuditLogEntryContextV2;
|
|
33
|
+
/**
|
|
34
|
+
* When the entry occurred
|
|
35
|
+
*/
|
|
36
|
+
occurred_at: Date;
|
|
37
|
+
/**
|
|
38
|
+
* The custom field that was created
|
|
39
|
+
*/
|
|
40
|
+
targets: Array<AuditLogTargetV2>;
|
|
41
|
+
/**
|
|
42
|
+
* Which version the event is
|
|
43
|
+
*/
|
|
44
|
+
version: number;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the AuditLogsOnCallNotificationPauseCreatedV1 interface.
|
|
48
|
+
*/
|
|
49
|
+
export declare function instanceOfAuditLogsOnCallNotificationPauseCreatedV1(value: object): value is AuditLogsOnCallNotificationPauseCreatedV1;
|
|
50
|
+
export declare function AuditLogsOnCallNotificationPauseCreatedV1FromJSON(json: any): AuditLogsOnCallNotificationPauseCreatedV1;
|
|
51
|
+
export declare function AuditLogsOnCallNotificationPauseCreatedV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogsOnCallNotificationPauseCreatedV1;
|
|
52
|
+
export declare function AuditLogsOnCallNotificationPauseCreatedV1ToJSON(json: any): AuditLogsOnCallNotificationPauseCreatedV1;
|
|
53
|
+
export declare function AuditLogsOnCallNotificationPauseCreatedV1ToJSONTyped(value?: AuditLogsOnCallNotificationPauseCreatedV1 | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,74 @@
|
|
|
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.instanceOfAuditLogsOnCallNotificationPauseCreatedV1 = instanceOfAuditLogsOnCallNotificationPauseCreatedV1;
|
|
17
|
+
exports.AuditLogsOnCallNotificationPauseCreatedV1FromJSON = AuditLogsOnCallNotificationPauseCreatedV1FromJSON;
|
|
18
|
+
exports.AuditLogsOnCallNotificationPauseCreatedV1FromJSONTyped = AuditLogsOnCallNotificationPauseCreatedV1FromJSONTyped;
|
|
19
|
+
exports.AuditLogsOnCallNotificationPauseCreatedV1ToJSON = AuditLogsOnCallNotificationPauseCreatedV1ToJSON;
|
|
20
|
+
exports.AuditLogsOnCallNotificationPauseCreatedV1ToJSONTyped = AuditLogsOnCallNotificationPauseCreatedV1ToJSONTyped;
|
|
21
|
+
const runtime_js_1 = require("../runtime.js");
|
|
22
|
+
const AuditLogActorV2_js_1 = require("./AuditLogActorV2.js");
|
|
23
|
+
const AuditLogEntryContextV2_js_1 = require("./AuditLogEntryContextV2.js");
|
|
24
|
+
const AuditLogTargetV2_js_1 = require("./AuditLogTargetV2.js");
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the AuditLogsOnCallNotificationPauseCreatedV1 interface.
|
|
27
|
+
*/
|
|
28
|
+
function instanceOfAuditLogsOnCallNotificationPauseCreatedV1(value) {
|
|
29
|
+
if (!('action' in value) || value['action'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('actor' in value) || value['actor'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('context' in value) || value['context'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('occurred_at' in value) || value['occurred_at'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('targets' in value) || value['targets'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('version' in value) || value['version'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
function AuditLogsOnCallNotificationPauseCreatedV1FromJSON(json) {
|
|
44
|
+
return AuditLogsOnCallNotificationPauseCreatedV1FromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function AuditLogsOnCallNotificationPauseCreatedV1FromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
if (json == null) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'action': json['action'],
|
|
52
|
+
'actor': (0, AuditLogActorV2_js_1.AuditLogActorV2FromJSON)(json['actor']),
|
|
53
|
+
'context': (0, AuditLogEntryContextV2_js_1.AuditLogEntryContextV2FromJSON)(json['context']),
|
|
54
|
+
'occurred_at': (json['occurred_at'] == null ? json['occurred_at'] : (0, runtime_js_1.parseDateTime)(json['occurred_at'])),
|
|
55
|
+
'targets': (json['targets'].map(AuditLogTargetV2_js_1.AuditLogTargetV2FromJSON)),
|
|
56
|
+
'version': json['version'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function AuditLogsOnCallNotificationPauseCreatedV1ToJSON(json) {
|
|
60
|
+
return AuditLogsOnCallNotificationPauseCreatedV1ToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
function AuditLogsOnCallNotificationPauseCreatedV1ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
'action': value['action'],
|
|
68
|
+
'actor': (0, AuditLogActorV2_js_1.AuditLogActorV2ToJSON)(value['actor']),
|
|
69
|
+
'context': (0, AuditLogEntryContextV2_js_1.AuditLogEntryContextV2ToJSON)(value['context']),
|
|
70
|
+
'occurred_at': value['occurred_at'] == null ? value['occurred_at'] : (0, runtime_js_1.serializeDateTime)(value['occurred_at']),
|
|
71
|
+
'targets': (value['targets'].map(AuditLogTargetV2_js_1.AuditLogTargetV2ToJSON)),
|
|
72
|
+
'version': value['version'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
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 { AuditLogActorV2 } from './AuditLogActorV2.js';
|
|
13
|
+
import type { AuditLogOnCallNotificationPauseMetadataV2 } from './AuditLogOnCallNotificationPauseMetadataV2.js';
|
|
14
|
+
import type { AuditLogEntryContextV2 } from './AuditLogEntryContextV2.js';
|
|
15
|
+
import type { AuditLogTargetV2 } from './AuditLogTargetV2.js';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface AuditLogsOnCallNotificationPauseCreatedV2
|
|
20
|
+
*/
|
|
21
|
+
export interface AuditLogsOnCallNotificationPauseCreatedV2 {
|
|
22
|
+
/**
|
|
23
|
+
* The type of log entry that this is
|
|
24
|
+
*/
|
|
25
|
+
action: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
actor: AuditLogActorV2;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
context: AuditLogEntryContextV2;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
metadata: AuditLogOnCallNotificationPauseMetadataV2;
|
|
38
|
+
/**
|
|
39
|
+
* When the entry occurred
|
|
40
|
+
*/
|
|
41
|
+
occurred_at: Date;
|
|
42
|
+
/**
|
|
43
|
+
* The custom field that was created
|
|
44
|
+
*/
|
|
45
|
+
targets: Array<AuditLogTargetV2>;
|
|
46
|
+
/**
|
|
47
|
+
* Which version the event is
|
|
48
|
+
*/
|
|
49
|
+
version: number;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the AuditLogsOnCallNotificationPauseCreatedV2 interface.
|
|
53
|
+
*/
|
|
54
|
+
export declare function instanceOfAuditLogsOnCallNotificationPauseCreatedV2(value: object): value is AuditLogsOnCallNotificationPauseCreatedV2;
|
|
55
|
+
export declare function AuditLogsOnCallNotificationPauseCreatedV2FromJSON(json: any): AuditLogsOnCallNotificationPauseCreatedV2;
|
|
56
|
+
export declare function AuditLogsOnCallNotificationPauseCreatedV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogsOnCallNotificationPauseCreatedV2;
|
|
57
|
+
export declare function AuditLogsOnCallNotificationPauseCreatedV2ToJSON(json: any): AuditLogsOnCallNotificationPauseCreatedV2;
|
|
58
|
+
export declare function AuditLogsOnCallNotificationPauseCreatedV2ToJSONTyped(value?: AuditLogsOnCallNotificationPauseCreatedV2 | null, ignoreDiscriminator?: boolean): any;
|