@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,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 { AnnouncementTemplateV2FromJSON, AnnouncementTemplateV2ToJSON, } from './AnnouncementTemplateV2.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the AnnouncementTemplatesCreateResultV2 interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfAnnouncementTemplatesCreateResultV2(value) {
|
|
19
|
+
if (!('announcement_template' in value) || value['announcement_template'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
export function AnnouncementTemplatesCreateResultV2FromJSON(json) {
|
|
24
|
+
return AnnouncementTemplatesCreateResultV2FromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function AnnouncementTemplatesCreateResultV2FromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json == null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'announcement_template': AnnouncementTemplateV2FromJSON(json['announcement_template']),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function AnnouncementTemplatesCreateResultV2ToJSON(json) {
|
|
35
|
+
return AnnouncementTemplatesCreateResultV2ToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function AnnouncementTemplatesCreateResultV2ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'announcement_template': AnnouncementTemplateV2ToJSON(value['announcement_template']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -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 AnnouncementTemplatesListResultV2
|
|
17
|
+
*/
|
|
18
|
+
export interface AnnouncementTemplatesListResultV2 {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
announcement_templates: Array<AnnouncementTemplateV2>;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the AnnouncementTemplatesListResultV2 interface.
|
|
26
|
+
*/
|
|
27
|
+
export declare function instanceOfAnnouncementTemplatesListResultV2(value: object): value is AnnouncementTemplatesListResultV2;
|
|
28
|
+
export declare function AnnouncementTemplatesListResultV2FromJSON(json: any): AnnouncementTemplatesListResultV2;
|
|
29
|
+
export declare function AnnouncementTemplatesListResultV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): AnnouncementTemplatesListResultV2;
|
|
30
|
+
export declare function AnnouncementTemplatesListResultV2ToJSON(json: any): AnnouncementTemplatesListResultV2;
|
|
31
|
+
export declare function AnnouncementTemplatesListResultV2ToJSONTyped(value?: AnnouncementTemplatesListResultV2 | 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 { AnnouncementTemplateV2FromJSON, AnnouncementTemplateV2ToJSON, } from './AnnouncementTemplateV2.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the AnnouncementTemplatesListResultV2 interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfAnnouncementTemplatesListResultV2(value) {
|
|
19
|
+
if (!('announcement_templates' in value) || value['announcement_templates'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
export function AnnouncementTemplatesListResultV2FromJSON(json) {
|
|
24
|
+
return AnnouncementTemplatesListResultV2FromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function AnnouncementTemplatesListResultV2FromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json == null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'announcement_templates': (json['announcement_templates'].map(AnnouncementTemplateV2FromJSON)),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function AnnouncementTemplatesListResultV2ToJSON(json) {
|
|
35
|
+
return AnnouncementTemplatesListResultV2ToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function AnnouncementTemplatesListResultV2ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'announcement_templates': (value['announcement_templates'].map(AnnouncementTemplateV2ToJSON)),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -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,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 { AnnouncementTemplateV2FromJSON, AnnouncementTemplateV2ToJSON, } from './AnnouncementTemplateV2.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the AnnouncementTemplatesShowResultV2 interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfAnnouncementTemplatesShowResultV2(value) {
|
|
19
|
+
if (!('announcement_template' in value) || value['announcement_template'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
export function AnnouncementTemplatesShowResultV2FromJSON(json) {
|
|
24
|
+
return AnnouncementTemplatesShowResultV2FromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function AnnouncementTemplatesShowResultV2FromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json == null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'announcement_template': AnnouncementTemplateV2FromJSON(json['announcement_template']),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function AnnouncementTemplatesShowResultV2ToJSON(json) {
|
|
35
|
+
return AnnouncementTemplatesShowResultV2ToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function AnnouncementTemplatesShowResultV2ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'announcement_template': AnnouncementTemplateV2ToJSON(value['announcement_template']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -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,55 @@
|
|
|
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 { AnnouncementTemplateActionPayloadV2FromJSON, AnnouncementTemplateActionPayloadV2ToJSON, } from './AnnouncementTemplateActionPayloadV2.js';
|
|
15
|
+
import { AnnouncementTemplateFieldPayloadV2FromJSON, AnnouncementTemplateFieldPayloadV2ToJSON, } from './AnnouncementTemplateFieldPayloadV2.js';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the AnnouncementTemplatesUpdatePayloadV2 interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfAnnouncementTemplatesUpdatePayloadV2(value) {
|
|
20
|
+
if (!('actions' in value) || value['actions'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('fields' in value) || value['fields'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
export function AnnouncementTemplatesUpdatePayloadV2FromJSON(json) {
|
|
29
|
+
return AnnouncementTemplatesUpdatePayloadV2FromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
export function AnnouncementTemplatesUpdatePayloadV2FromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'actions': (json['actions'].map(AnnouncementTemplateActionPayloadV2FromJSON)),
|
|
37
|
+
'fields': (json['fields'].map(AnnouncementTemplateFieldPayloadV2FromJSON)),
|
|
38
|
+
'name': json['name'],
|
|
39
|
+
'owning_team_ids': json['owning_team_ids'] == null ? undefined : json['owning_team_ids'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export function AnnouncementTemplatesUpdatePayloadV2ToJSON(json) {
|
|
43
|
+
return AnnouncementTemplatesUpdatePayloadV2ToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function AnnouncementTemplatesUpdatePayloadV2ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'actions': (value['actions'].map(AnnouncementTemplateActionPayloadV2ToJSON)),
|
|
51
|
+
'fields': (value['fields'].map(AnnouncementTemplateFieldPayloadV2ToJSON)),
|
|
52
|
+
'name': value['name'],
|
|
53
|
+
'owning_team_ids': value['owning_team_ids'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -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,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 { AnnouncementTemplateV2FromJSON, AnnouncementTemplateV2ToJSON, } from './AnnouncementTemplateV2.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the AnnouncementTemplatesUpdateResultV2 interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfAnnouncementTemplatesUpdateResultV2(value) {
|
|
19
|
+
if (!('announcement_template' in value) || value['announcement_template'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
export function AnnouncementTemplatesUpdateResultV2FromJSON(json) {
|
|
24
|
+
return AnnouncementTemplatesUpdateResultV2FromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function AnnouncementTemplatesUpdateResultV2FromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json == null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'announcement_template': AnnouncementTemplateV2FromJSON(json['announcement_template']),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function AnnouncementTemplatesUpdateResultV2ToJSON(json) {
|
|
35
|
+
return AnnouncementTemplatesUpdateResultV2ToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function AnnouncementTemplatesUpdateResultV2ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'announcement_template': AnnouncementTemplateV2ToJSON(value['announcement_template']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -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,57 @@
|
|
|
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
|
+
/**
|
|
15
|
+
* Check if a given object implements the AuditLogOnCallNotificationPauseMetadataV2 interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfAuditLogOnCallNotificationPauseMetadataV2(value) {
|
|
18
|
+
if (!('ends_at' in value) || value['ends_at'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('reason' in value) || value['reason'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('starts_at' in value) || value['starts_at'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function AuditLogOnCallNotificationPauseMetadataV2FromJSON(json) {
|
|
27
|
+
return AuditLogOnCallNotificationPauseMetadataV2FromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function AuditLogOnCallNotificationPauseMetadataV2FromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'before_ends_at': json['before_ends_at'] == null ? undefined : json['before_ends_at'],
|
|
35
|
+
'before_reason': json['before_reason'] == null ? undefined : json['before_reason'],
|
|
36
|
+
'before_starts_at': json['before_starts_at'] == null ? undefined : json['before_starts_at'],
|
|
37
|
+
'ends_at': json['ends_at'],
|
|
38
|
+
'reason': json['reason'],
|
|
39
|
+
'starts_at': json['starts_at'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export function AuditLogOnCallNotificationPauseMetadataV2ToJSON(json) {
|
|
43
|
+
return AuditLogOnCallNotificationPauseMetadataV2ToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function AuditLogOnCallNotificationPauseMetadataV2ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'before_ends_at': value['before_ends_at'],
|
|
51
|
+
'before_reason': value['before_reason'],
|
|
52
|
+
'before_starts_at': value['before_starts_at'],
|
|
53
|
+
'ends_at': value['ends_at'],
|
|
54
|
+
'reason': value['reason'],
|
|
55
|
+
'starts_at': value['starts_at'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -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";
|
|
@@ -55,6 +55,7 @@ export const AuditLogTargetV2TypeEnum = {
|
|
|
55
55
|
IpAllowlist: 'ip_allowlist',
|
|
56
56
|
Nudge: 'nudge',
|
|
57
57
|
OnCallNotificationMethod: 'on_call_notification_method',
|
|
58
|
+
OnCallNotificationPause: 'on_call_notification_pause',
|
|
58
59
|
Organisation: 'organisation',
|
|
59
60
|
OrganisationSettings: 'organisation_settings',
|
|
60
61
|
ScheduleOverride: 'schedule_override',
|
|
@@ -79,6 +80,7 @@ export const AuditLogTargetV2TypeEnum = {
|
|
|
79
80
|
TelemetryDataSource: 'telemetry_data_source',
|
|
80
81
|
TwilioConnection: 'twilio_connection',
|
|
81
82
|
User: 'user',
|
|
83
|
+
UserApiKey: 'user_api_key',
|
|
82
84
|
Workflow: 'workflow',
|
|
83
85
|
ActivityLog: 'activity_log',
|
|
84
86
|
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,67 @@
|
|
|
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
|
+
import { AuditLogActorV2FromJSON, AuditLogActorV2ToJSON, } from './AuditLogActorV2.js';
|
|
16
|
+
import { AuditLogEntryContextV2FromJSON, AuditLogEntryContextV2ToJSON, } from './AuditLogEntryContextV2.js';
|
|
17
|
+
import { AuditLogTargetV2FromJSON, AuditLogTargetV2ToJSON, } from './AuditLogTargetV2.js';
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the AuditLogsOnCallNotificationPauseCreatedV1 interface.
|
|
20
|
+
*/
|
|
21
|
+
export function instanceOfAuditLogsOnCallNotificationPauseCreatedV1(value) {
|
|
22
|
+
if (!('action' in value) || value['action'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('actor' in value) || value['actor'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('context' in value) || value['context'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('occurred_at' in value) || value['occurred_at'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('targets' in value) || value['targets'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('version' in value) || value['version'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
export function AuditLogsOnCallNotificationPauseCreatedV1FromJSON(json) {
|
|
37
|
+
return AuditLogsOnCallNotificationPauseCreatedV1FromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function AuditLogsOnCallNotificationPauseCreatedV1FromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'action': json['action'],
|
|
45
|
+
'actor': AuditLogActorV2FromJSON(json['actor']),
|
|
46
|
+
'context': AuditLogEntryContextV2FromJSON(json['context']),
|
|
47
|
+
'occurred_at': (json['occurred_at'] == null ? json['occurred_at'] : parseDateTime(json['occurred_at'])),
|
|
48
|
+
'targets': (json['targets'].map(AuditLogTargetV2FromJSON)),
|
|
49
|
+
'version': json['version'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export function AuditLogsOnCallNotificationPauseCreatedV1ToJSON(json) {
|
|
53
|
+
return AuditLogsOnCallNotificationPauseCreatedV1ToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
export function AuditLogsOnCallNotificationPauseCreatedV1ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'action': value['action'],
|
|
61
|
+
'actor': AuditLogActorV2ToJSON(value['actor']),
|
|
62
|
+
'context': AuditLogEntryContextV2ToJSON(value['context']),
|
|
63
|
+
'occurred_at': value['occurred_at'] == null ? value['occurred_at'] : serializeDateTime(value['occurred_at']),
|
|
64
|
+
'targets': (value['targets'].map(AuditLogTargetV2ToJSON)),
|
|
65
|
+
'version': value['version'],
|
|
66
|
+
};
|
|
67
|
+
}
|