@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,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;
|
|
@@ -0,0 +1,72 @@
|
|
|
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 { AuditLogOnCallNotificationPauseMetadataV2FromJSON, AuditLogOnCallNotificationPauseMetadataV2ToJSON, } from './AuditLogOnCallNotificationPauseMetadataV2.js';
|
|
17
|
+
import { AuditLogEntryContextV2FromJSON, AuditLogEntryContextV2ToJSON, } from './AuditLogEntryContextV2.js';
|
|
18
|
+
import { AuditLogTargetV2FromJSON, AuditLogTargetV2ToJSON, } from './AuditLogTargetV2.js';
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the AuditLogsOnCallNotificationPauseCreatedV2 interface.
|
|
21
|
+
*/
|
|
22
|
+
export function instanceOfAuditLogsOnCallNotificationPauseCreatedV2(value) {
|
|
23
|
+
if (!('action' in value) || value['action'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('actor' in value) || value['actor'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('context' in value) || value['context'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('metadata' in value) || value['metadata'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('occurred_at' in value) || value['occurred_at'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('targets' in value) || value['targets'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('version' in value) || value['version'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
export function AuditLogsOnCallNotificationPauseCreatedV2FromJSON(json) {
|
|
40
|
+
return AuditLogsOnCallNotificationPauseCreatedV2FromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function AuditLogsOnCallNotificationPauseCreatedV2FromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'action': json['action'],
|
|
48
|
+
'actor': AuditLogActorV2FromJSON(json['actor']),
|
|
49
|
+
'context': AuditLogEntryContextV2FromJSON(json['context']),
|
|
50
|
+
'metadata': AuditLogOnCallNotificationPauseMetadataV2FromJSON(json['metadata']),
|
|
51
|
+
'occurred_at': (json['occurred_at'] == null ? json['occurred_at'] : parseDateTime(json['occurred_at'])),
|
|
52
|
+
'targets': (json['targets'].map(AuditLogTargetV2FromJSON)),
|
|
53
|
+
'version': json['version'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
export function AuditLogsOnCallNotificationPauseCreatedV2ToJSON(json) {
|
|
57
|
+
return AuditLogsOnCallNotificationPauseCreatedV2ToJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
export function AuditLogsOnCallNotificationPauseCreatedV2ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'action': value['action'],
|
|
65
|
+
'actor': AuditLogActorV2ToJSON(value['actor']),
|
|
66
|
+
'context': AuditLogEntryContextV2ToJSON(value['context']),
|
|
67
|
+
'metadata': AuditLogOnCallNotificationPauseMetadataV2ToJSON(value['metadata']),
|
|
68
|
+
'occurred_at': value['occurred_at'] == null ? value['occurred_at'] : serializeDateTime(value['occurred_at']),
|
|
69
|
+
'targets': (value['targets'].map(AuditLogTargetV2ToJSON)),
|
|
70
|
+
'version': value['version'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
@@ -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 AuditLogsOnCallNotificationPauseDeletedV1
|
|
19
|
+
*/
|
|
20
|
+
export interface AuditLogsOnCallNotificationPauseDeletedV1 {
|
|
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 AuditLogsOnCallNotificationPauseDeletedV1 interface.
|
|
48
|
+
*/
|
|
49
|
+
export declare function instanceOfAuditLogsOnCallNotificationPauseDeletedV1(value: object): value is AuditLogsOnCallNotificationPauseDeletedV1;
|
|
50
|
+
export declare function AuditLogsOnCallNotificationPauseDeletedV1FromJSON(json: any): AuditLogsOnCallNotificationPauseDeletedV1;
|
|
51
|
+
export declare function AuditLogsOnCallNotificationPauseDeletedV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogsOnCallNotificationPauseDeletedV1;
|
|
52
|
+
export declare function AuditLogsOnCallNotificationPauseDeletedV1ToJSON(json: any): AuditLogsOnCallNotificationPauseDeletedV1;
|
|
53
|
+
export declare function AuditLogsOnCallNotificationPauseDeletedV1ToJSONTyped(value?: AuditLogsOnCallNotificationPauseDeletedV1 | 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 AuditLogsOnCallNotificationPauseDeletedV1 interface.
|
|
20
|
+
*/
|
|
21
|
+
export function instanceOfAuditLogsOnCallNotificationPauseDeletedV1(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 AuditLogsOnCallNotificationPauseDeletedV1FromJSON(json) {
|
|
37
|
+
return AuditLogsOnCallNotificationPauseDeletedV1FromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function AuditLogsOnCallNotificationPauseDeletedV1FromJSONTyped(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 AuditLogsOnCallNotificationPauseDeletedV1ToJSON(json) {
|
|
53
|
+
return AuditLogsOnCallNotificationPauseDeletedV1ToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
export function AuditLogsOnCallNotificationPauseDeletedV1ToJSONTyped(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
|
+
}
|
|
@@ -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 AuditLogsOnCallNotificationPauseDeletedV2
|
|
20
|
+
*/
|
|
21
|
+
export interface AuditLogsOnCallNotificationPauseDeletedV2 {
|
|
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 AuditLogsOnCallNotificationPauseDeletedV2 interface.
|
|
53
|
+
*/
|
|
54
|
+
export declare function instanceOfAuditLogsOnCallNotificationPauseDeletedV2(value: object): value is AuditLogsOnCallNotificationPauseDeletedV2;
|
|
55
|
+
export declare function AuditLogsOnCallNotificationPauseDeletedV2FromJSON(json: any): AuditLogsOnCallNotificationPauseDeletedV2;
|
|
56
|
+
export declare function AuditLogsOnCallNotificationPauseDeletedV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogsOnCallNotificationPauseDeletedV2;
|
|
57
|
+
export declare function AuditLogsOnCallNotificationPauseDeletedV2ToJSON(json: any): AuditLogsOnCallNotificationPauseDeletedV2;
|
|
58
|
+
export declare function AuditLogsOnCallNotificationPauseDeletedV2ToJSONTyped(value?: AuditLogsOnCallNotificationPauseDeletedV2 | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,72 @@
|
|
|
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 { AuditLogOnCallNotificationPauseMetadataV2FromJSON, AuditLogOnCallNotificationPauseMetadataV2ToJSON, } from './AuditLogOnCallNotificationPauseMetadataV2.js';
|
|
17
|
+
import { AuditLogEntryContextV2FromJSON, AuditLogEntryContextV2ToJSON, } from './AuditLogEntryContextV2.js';
|
|
18
|
+
import { AuditLogTargetV2FromJSON, AuditLogTargetV2ToJSON, } from './AuditLogTargetV2.js';
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the AuditLogsOnCallNotificationPauseDeletedV2 interface.
|
|
21
|
+
*/
|
|
22
|
+
export function instanceOfAuditLogsOnCallNotificationPauseDeletedV2(value) {
|
|
23
|
+
if (!('action' in value) || value['action'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('actor' in value) || value['actor'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('context' in value) || value['context'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('metadata' in value) || value['metadata'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('occurred_at' in value) || value['occurred_at'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('targets' in value) || value['targets'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('version' in value) || value['version'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
export function AuditLogsOnCallNotificationPauseDeletedV2FromJSON(json) {
|
|
40
|
+
return AuditLogsOnCallNotificationPauseDeletedV2FromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function AuditLogsOnCallNotificationPauseDeletedV2FromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'action': json['action'],
|
|
48
|
+
'actor': AuditLogActorV2FromJSON(json['actor']),
|
|
49
|
+
'context': AuditLogEntryContextV2FromJSON(json['context']),
|
|
50
|
+
'metadata': AuditLogOnCallNotificationPauseMetadataV2FromJSON(json['metadata']),
|
|
51
|
+
'occurred_at': (json['occurred_at'] == null ? json['occurred_at'] : parseDateTime(json['occurred_at'])),
|
|
52
|
+
'targets': (json['targets'].map(AuditLogTargetV2FromJSON)),
|
|
53
|
+
'version': json['version'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
export function AuditLogsOnCallNotificationPauseDeletedV2ToJSON(json) {
|
|
57
|
+
return AuditLogsOnCallNotificationPauseDeletedV2ToJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
export function AuditLogsOnCallNotificationPauseDeletedV2ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'action': value['action'],
|
|
65
|
+
'actor': AuditLogActorV2ToJSON(value['actor']),
|
|
66
|
+
'context': AuditLogEntryContextV2ToJSON(value['context']),
|
|
67
|
+
'metadata': AuditLogOnCallNotificationPauseMetadataV2ToJSON(value['metadata']),
|
|
68
|
+
'occurred_at': value['occurred_at'] == null ? value['occurred_at'] : serializeDateTime(value['occurred_at']),
|
|
69
|
+
'targets': (value['targets'].map(AuditLogTargetV2ToJSON)),
|
|
70
|
+
'version': value['version'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
@@ -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 AuditLogsOnCallNotificationPauseUpdatedV1
|
|
19
|
+
*/
|
|
20
|
+
export interface AuditLogsOnCallNotificationPauseUpdatedV1 {
|
|
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 AuditLogsOnCallNotificationPauseUpdatedV1 interface.
|
|
48
|
+
*/
|
|
49
|
+
export declare function instanceOfAuditLogsOnCallNotificationPauseUpdatedV1(value: object): value is AuditLogsOnCallNotificationPauseUpdatedV1;
|
|
50
|
+
export declare function AuditLogsOnCallNotificationPauseUpdatedV1FromJSON(json: any): AuditLogsOnCallNotificationPauseUpdatedV1;
|
|
51
|
+
export declare function AuditLogsOnCallNotificationPauseUpdatedV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogsOnCallNotificationPauseUpdatedV1;
|
|
52
|
+
export declare function AuditLogsOnCallNotificationPauseUpdatedV1ToJSON(json: any): AuditLogsOnCallNotificationPauseUpdatedV1;
|
|
53
|
+
export declare function AuditLogsOnCallNotificationPauseUpdatedV1ToJSONTyped(value?: AuditLogsOnCallNotificationPauseUpdatedV1 | 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 AuditLogsOnCallNotificationPauseUpdatedV1 interface.
|
|
20
|
+
*/
|
|
21
|
+
export function instanceOfAuditLogsOnCallNotificationPauseUpdatedV1(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 AuditLogsOnCallNotificationPauseUpdatedV1FromJSON(json) {
|
|
37
|
+
return AuditLogsOnCallNotificationPauseUpdatedV1FromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function AuditLogsOnCallNotificationPauseUpdatedV1FromJSONTyped(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 AuditLogsOnCallNotificationPauseUpdatedV1ToJSON(json) {
|
|
53
|
+
return AuditLogsOnCallNotificationPauseUpdatedV1ToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
export function AuditLogsOnCallNotificationPauseUpdatedV1ToJSONTyped(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
|
+
}
|
|
@@ -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 AuditLogsOnCallNotificationPauseUpdatedV2
|
|
20
|
+
*/
|
|
21
|
+
export interface AuditLogsOnCallNotificationPauseUpdatedV2 {
|
|
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 AuditLogsOnCallNotificationPauseUpdatedV2 interface.
|
|
53
|
+
*/
|
|
54
|
+
export declare function instanceOfAuditLogsOnCallNotificationPauseUpdatedV2(value: object): value is AuditLogsOnCallNotificationPauseUpdatedV2;
|
|
55
|
+
export declare function AuditLogsOnCallNotificationPauseUpdatedV2FromJSON(json: any): AuditLogsOnCallNotificationPauseUpdatedV2;
|
|
56
|
+
export declare function AuditLogsOnCallNotificationPauseUpdatedV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogsOnCallNotificationPauseUpdatedV2;
|
|
57
|
+
export declare function AuditLogsOnCallNotificationPauseUpdatedV2ToJSON(json: any): AuditLogsOnCallNotificationPauseUpdatedV2;
|
|
58
|
+
export declare function AuditLogsOnCallNotificationPauseUpdatedV2ToJSONTyped(value?: AuditLogsOnCallNotificationPauseUpdatedV2 | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,72 @@
|
|
|
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 { AuditLogOnCallNotificationPauseMetadataV2FromJSON, AuditLogOnCallNotificationPauseMetadataV2ToJSON, } from './AuditLogOnCallNotificationPauseMetadataV2.js';
|
|
17
|
+
import { AuditLogEntryContextV2FromJSON, AuditLogEntryContextV2ToJSON, } from './AuditLogEntryContextV2.js';
|
|
18
|
+
import { AuditLogTargetV2FromJSON, AuditLogTargetV2ToJSON, } from './AuditLogTargetV2.js';
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the AuditLogsOnCallNotificationPauseUpdatedV2 interface.
|
|
21
|
+
*/
|
|
22
|
+
export function instanceOfAuditLogsOnCallNotificationPauseUpdatedV2(value) {
|
|
23
|
+
if (!('action' in value) || value['action'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('actor' in value) || value['actor'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('context' in value) || value['context'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('metadata' in value) || value['metadata'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('occurred_at' in value) || value['occurred_at'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('targets' in value) || value['targets'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('version' in value) || value['version'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
export function AuditLogsOnCallNotificationPauseUpdatedV2FromJSON(json) {
|
|
40
|
+
return AuditLogsOnCallNotificationPauseUpdatedV2FromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function AuditLogsOnCallNotificationPauseUpdatedV2FromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'action': json['action'],
|
|
48
|
+
'actor': AuditLogActorV2FromJSON(json['actor']),
|
|
49
|
+
'context': AuditLogEntryContextV2FromJSON(json['context']),
|
|
50
|
+
'metadata': AuditLogOnCallNotificationPauseMetadataV2FromJSON(json['metadata']),
|
|
51
|
+
'occurred_at': (json['occurred_at'] == null ? json['occurred_at'] : parseDateTime(json['occurred_at'])),
|
|
52
|
+
'targets': (json['targets'].map(AuditLogTargetV2FromJSON)),
|
|
53
|
+
'version': json['version'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
export function AuditLogsOnCallNotificationPauseUpdatedV2ToJSON(json) {
|
|
57
|
+
return AuditLogsOnCallNotificationPauseUpdatedV2ToJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
export function AuditLogsOnCallNotificationPauseUpdatedV2ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'action': value['action'],
|
|
65
|
+
'actor': AuditLogActorV2ToJSON(value['actor']),
|
|
66
|
+
'context': AuditLogEntryContextV2ToJSON(value['context']),
|
|
67
|
+
'metadata': AuditLogOnCallNotificationPauseMetadataV2ToJSON(value['metadata']),
|
|
68
|
+
'occurred_at': value['occurred_at'] == null ? value['occurred_at'] : serializeDateTime(value['occurred_at']),
|
|
69
|
+
'targets': (value['targets'].map(AuditLogTargetV2ToJSON)),
|
|
70
|
+
'version': value['version'],
|
|
71
|
+
};
|
|
72
|
+
}
|