@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,104 @@
|
|
|
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 { ConditionGroupPayloadV2 } from './ConditionGroupPayloadV2.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AnnouncementRulesCreatePayloadV2
|
|
17
|
+
*/
|
|
18
|
+
export interface AnnouncementRulesCreatePayloadV2 {
|
|
19
|
+
/**
|
|
20
|
+
* Incidents are announced when they match any of these condition groups
|
|
21
|
+
*/
|
|
22
|
+
condition_groups: Array<ConditionGroupPayloadV2>;
|
|
23
|
+
/**
|
|
24
|
+
* Whether to remove announcement posts when the incident no longer matches this rule's conditions. Defaults to leaving them in place.
|
|
25
|
+
*/
|
|
26
|
+
conditions_no_longer_apply_behaviour?: AnnouncementRulesCreatePayloadV2ConditionsNoLongerApplyBehaviourEnum;
|
|
27
|
+
/**
|
|
28
|
+
* Microsoft Teams channels to post announcements into, as team_id/channel_id. Required when the organisation uses Microsoft Teams.
|
|
29
|
+
*/
|
|
30
|
+
microsoft_teams_channel_ids?: Array<string>;
|
|
31
|
+
/**
|
|
32
|
+
* Which incidents are announced: live incidents only, or triage incidents too
|
|
33
|
+
*/
|
|
34
|
+
mode: AnnouncementRulesCreatePayloadV2ModeEnum;
|
|
35
|
+
/**
|
|
36
|
+
* Human readable name for the rule
|
|
37
|
+
*/
|
|
38
|
+
name: string;
|
|
39
|
+
/**
|
|
40
|
+
* IDs of the teams that own this rule
|
|
41
|
+
*/
|
|
42
|
+
owning_team_ids?: Array<string>;
|
|
43
|
+
/**
|
|
44
|
+
* Which private incidents this rule announces: every private incident (all), those an owning team can see (owning_teams), or none. Defaults to none on create, and is left unchanged on update when omitted.
|
|
45
|
+
*/
|
|
46
|
+
private_incident_scope?: AnnouncementRulesCreatePayloadV2PrivateIncidentScopeEnum;
|
|
47
|
+
/**
|
|
48
|
+
* IDs of the Slack channels to post announcements into. Required when the organisation uses Slack.
|
|
49
|
+
*/
|
|
50
|
+
slack_channel_ids?: Array<string>;
|
|
51
|
+
/**
|
|
52
|
+
* ID of the announcement template used to render this rule's posts. Defaults to the organisation's default template when omitted.
|
|
53
|
+
*/
|
|
54
|
+
template_id?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Where incident updates are shared once the incident is announced
|
|
57
|
+
*/
|
|
58
|
+
update_sharing_mode: AnnouncementRulesCreatePayloadV2UpdateSharingModeEnum;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* @export
|
|
62
|
+
*/
|
|
63
|
+
export declare const AnnouncementRulesCreatePayloadV2ConditionsNoLongerApplyBehaviourEnum: {
|
|
64
|
+
readonly LeaveInPlace: "leave_in_place";
|
|
65
|
+
readonly Remove: "remove";
|
|
66
|
+
};
|
|
67
|
+
export type AnnouncementRulesCreatePayloadV2ConditionsNoLongerApplyBehaviourEnum = typeof AnnouncementRulesCreatePayloadV2ConditionsNoLongerApplyBehaviourEnum[keyof typeof AnnouncementRulesCreatePayloadV2ConditionsNoLongerApplyBehaviourEnum];
|
|
68
|
+
/**
|
|
69
|
+
* @export
|
|
70
|
+
*/
|
|
71
|
+
export declare const AnnouncementRulesCreatePayloadV2ModeEnum: {
|
|
72
|
+
readonly LiveAndClosed: "live_and_closed";
|
|
73
|
+
readonly IncludeTriage: "include_triage";
|
|
74
|
+
readonly IncludeTriageAndMerged: "include_triage_and_merged";
|
|
75
|
+
readonly IncludeDeclinedAndMerged: "include_declined_and_merged";
|
|
76
|
+
readonly IncludeAll: "include_all";
|
|
77
|
+
};
|
|
78
|
+
export type AnnouncementRulesCreatePayloadV2ModeEnum = typeof AnnouncementRulesCreatePayloadV2ModeEnum[keyof typeof AnnouncementRulesCreatePayloadV2ModeEnum];
|
|
79
|
+
/**
|
|
80
|
+
* @export
|
|
81
|
+
*/
|
|
82
|
+
export declare const AnnouncementRulesCreatePayloadV2PrivateIncidentScopeEnum: {
|
|
83
|
+
readonly All: "all";
|
|
84
|
+
readonly OwningTeams: "owning_teams";
|
|
85
|
+
readonly None: "none";
|
|
86
|
+
};
|
|
87
|
+
export type AnnouncementRulesCreatePayloadV2PrivateIncidentScopeEnum = typeof AnnouncementRulesCreatePayloadV2PrivateIncidentScopeEnum[keyof typeof AnnouncementRulesCreatePayloadV2PrivateIncidentScopeEnum];
|
|
88
|
+
/**
|
|
89
|
+
* @export
|
|
90
|
+
*/
|
|
91
|
+
export declare const AnnouncementRulesCreatePayloadV2UpdateSharingModeEnum: {
|
|
92
|
+
readonly None: "none";
|
|
93
|
+
readonly Thread: "thread";
|
|
94
|
+
readonly ThreadAndChannel: "thread_and_channel";
|
|
95
|
+
};
|
|
96
|
+
export type AnnouncementRulesCreatePayloadV2UpdateSharingModeEnum = typeof AnnouncementRulesCreatePayloadV2UpdateSharingModeEnum[keyof typeof AnnouncementRulesCreatePayloadV2UpdateSharingModeEnum];
|
|
97
|
+
/**
|
|
98
|
+
* Check if a given object implements the AnnouncementRulesCreatePayloadV2 interface.
|
|
99
|
+
*/
|
|
100
|
+
export declare function instanceOfAnnouncementRulesCreatePayloadV2(value: object): value is AnnouncementRulesCreatePayloadV2;
|
|
101
|
+
export declare function AnnouncementRulesCreatePayloadV2FromJSON(json: any): AnnouncementRulesCreatePayloadV2;
|
|
102
|
+
export declare function AnnouncementRulesCreatePayloadV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): AnnouncementRulesCreatePayloadV2;
|
|
103
|
+
export declare function AnnouncementRulesCreatePayloadV2ToJSON(json: any): AnnouncementRulesCreatePayloadV2;
|
|
104
|
+
export declare function AnnouncementRulesCreatePayloadV2ToJSONTyped(value?: AnnouncementRulesCreatePayloadV2 | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,109 @@
|
|
|
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.AnnouncementRulesCreatePayloadV2UpdateSharingModeEnum = exports.AnnouncementRulesCreatePayloadV2PrivateIncidentScopeEnum = exports.AnnouncementRulesCreatePayloadV2ModeEnum = exports.AnnouncementRulesCreatePayloadV2ConditionsNoLongerApplyBehaviourEnum = void 0;
|
|
17
|
+
exports.instanceOfAnnouncementRulesCreatePayloadV2 = instanceOfAnnouncementRulesCreatePayloadV2;
|
|
18
|
+
exports.AnnouncementRulesCreatePayloadV2FromJSON = AnnouncementRulesCreatePayloadV2FromJSON;
|
|
19
|
+
exports.AnnouncementRulesCreatePayloadV2FromJSONTyped = AnnouncementRulesCreatePayloadV2FromJSONTyped;
|
|
20
|
+
exports.AnnouncementRulesCreatePayloadV2ToJSON = AnnouncementRulesCreatePayloadV2ToJSON;
|
|
21
|
+
exports.AnnouncementRulesCreatePayloadV2ToJSONTyped = AnnouncementRulesCreatePayloadV2ToJSONTyped;
|
|
22
|
+
const ConditionGroupPayloadV2_js_1 = require("./ConditionGroupPayloadV2.js");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.AnnouncementRulesCreatePayloadV2ConditionsNoLongerApplyBehaviourEnum = {
|
|
27
|
+
LeaveInPlace: 'leave_in_place',
|
|
28
|
+
Remove: 'remove',
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
exports.AnnouncementRulesCreatePayloadV2ModeEnum = {
|
|
34
|
+
LiveAndClosed: 'live_and_closed',
|
|
35
|
+
IncludeTriage: 'include_triage',
|
|
36
|
+
IncludeTriageAndMerged: 'include_triage_and_merged',
|
|
37
|
+
IncludeDeclinedAndMerged: 'include_declined_and_merged',
|
|
38
|
+
IncludeAll: 'include_all',
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* @export
|
|
42
|
+
*/
|
|
43
|
+
exports.AnnouncementRulesCreatePayloadV2PrivateIncidentScopeEnum = {
|
|
44
|
+
All: 'all',
|
|
45
|
+
OwningTeams: 'owning_teams',
|
|
46
|
+
None: 'none',
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* @export
|
|
50
|
+
*/
|
|
51
|
+
exports.AnnouncementRulesCreatePayloadV2UpdateSharingModeEnum = {
|
|
52
|
+
None: 'none',
|
|
53
|
+
Thread: 'thread',
|
|
54
|
+
ThreadAndChannel: 'thread_and_channel',
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the AnnouncementRulesCreatePayloadV2 interface.
|
|
58
|
+
*/
|
|
59
|
+
function instanceOfAnnouncementRulesCreatePayloadV2(value) {
|
|
60
|
+
if (!('condition_groups' in value) || value['condition_groups'] === undefined)
|
|
61
|
+
return false;
|
|
62
|
+
if (!('mode' in value) || value['mode'] === undefined)
|
|
63
|
+
return false;
|
|
64
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
65
|
+
return false;
|
|
66
|
+
if (!('update_sharing_mode' in value) || value['update_sharing_mode'] === undefined)
|
|
67
|
+
return false;
|
|
68
|
+
return true;
|
|
69
|
+
}
|
|
70
|
+
function AnnouncementRulesCreatePayloadV2FromJSON(json) {
|
|
71
|
+
return AnnouncementRulesCreatePayloadV2FromJSONTyped(json, false);
|
|
72
|
+
}
|
|
73
|
+
function AnnouncementRulesCreatePayloadV2FromJSONTyped(json, ignoreDiscriminator) {
|
|
74
|
+
if (json == null) {
|
|
75
|
+
return json;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
'condition_groups': (json['condition_groups'].map(ConditionGroupPayloadV2_js_1.ConditionGroupPayloadV2FromJSON)),
|
|
79
|
+
'conditions_no_longer_apply_behaviour': json['conditions_no_longer_apply_behaviour'] == null ? undefined : json['conditions_no_longer_apply_behaviour'],
|
|
80
|
+
'microsoft_teams_channel_ids': json['microsoft_teams_channel_ids'] == null ? undefined : json['microsoft_teams_channel_ids'],
|
|
81
|
+
'mode': json['mode'],
|
|
82
|
+
'name': json['name'],
|
|
83
|
+
'owning_team_ids': json['owning_team_ids'] == null ? undefined : json['owning_team_ids'],
|
|
84
|
+
'private_incident_scope': json['private_incident_scope'] == null ? undefined : json['private_incident_scope'],
|
|
85
|
+
'slack_channel_ids': json['slack_channel_ids'] == null ? undefined : json['slack_channel_ids'],
|
|
86
|
+
'template_id': json['template_id'] == null ? undefined : json['template_id'],
|
|
87
|
+
'update_sharing_mode': json['update_sharing_mode'],
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
function AnnouncementRulesCreatePayloadV2ToJSON(json) {
|
|
91
|
+
return AnnouncementRulesCreatePayloadV2ToJSONTyped(json, false);
|
|
92
|
+
}
|
|
93
|
+
function AnnouncementRulesCreatePayloadV2ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
94
|
+
if (value == null) {
|
|
95
|
+
return value;
|
|
96
|
+
}
|
|
97
|
+
return {
|
|
98
|
+
'condition_groups': (value['condition_groups'].map(ConditionGroupPayloadV2_js_1.ConditionGroupPayloadV2ToJSON)),
|
|
99
|
+
'conditions_no_longer_apply_behaviour': value['conditions_no_longer_apply_behaviour'],
|
|
100
|
+
'microsoft_teams_channel_ids': value['microsoft_teams_channel_ids'],
|
|
101
|
+
'mode': value['mode'],
|
|
102
|
+
'name': value['name'],
|
|
103
|
+
'owning_team_ids': value['owning_team_ids'],
|
|
104
|
+
'private_incident_scope': value['private_incident_scope'],
|
|
105
|
+
'slack_channel_ids': value['slack_channel_ids'],
|
|
106
|
+
'template_id': value['template_id'],
|
|
107
|
+
'update_sharing_mode': value['update_sharing_mode'],
|
|
108
|
+
};
|
|
109
|
+
}
|
|
@@ -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 { AnnouncementRuleV2 } from './AnnouncementRuleV2.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AnnouncementRulesCreateResultV2
|
|
17
|
+
*/
|
|
18
|
+
export interface AnnouncementRulesCreateResultV2 {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
announcement_rule: AnnouncementRuleV2;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the AnnouncementRulesCreateResultV2 interface.
|
|
26
|
+
*/
|
|
27
|
+
export declare function instanceOfAnnouncementRulesCreateResultV2(value: object): value is AnnouncementRulesCreateResultV2;
|
|
28
|
+
export declare function AnnouncementRulesCreateResultV2FromJSON(json: any): AnnouncementRulesCreateResultV2;
|
|
29
|
+
export declare function AnnouncementRulesCreateResultV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): AnnouncementRulesCreateResultV2;
|
|
30
|
+
export declare function AnnouncementRulesCreateResultV2ToJSON(json: any): AnnouncementRulesCreateResultV2;
|
|
31
|
+
export declare function AnnouncementRulesCreateResultV2ToJSONTyped(value?: AnnouncementRulesCreateResultV2 | 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.instanceOfAnnouncementRulesCreateResultV2 = instanceOfAnnouncementRulesCreateResultV2;
|
|
17
|
+
exports.AnnouncementRulesCreateResultV2FromJSON = AnnouncementRulesCreateResultV2FromJSON;
|
|
18
|
+
exports.AnnouncementRulesCreateResultV2FromJSONTyped = AnnouncementRulesCreateResultV2FromJSONTyped;
|
|
19
|
+
exports.AnnouncementRulesCreateResultV2ToJSON = AnnouncementRulesCreateResultV2ToJSON;
|
|
20
|
+
exports.AnnouncementRulesCreateResultV2ToJSONTyped = AnnouncementRulesCreateResultV2ToJSONTyped;
|
|
21
|
+
const AnnouncementRuleV2_js_1 = require("./AnnouncementRuleV2.js");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AnnouncementRulesCreateResultV2 interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAnnouncementRulesCreateResultV2(value) {
|
|
26
|
+
if (!('announcement_rule' in value) || value['announcement_rule'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function AnnouncementRulesCreateResultV2FromJSON(json) {
|
|
31
|
+
return AnnouncementRulesCreateResultV2FromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function AnnouncementRulesCreateResultV2FromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'announcement_rule': (0, AnnouncementRuleV2_js_1.AnnouncementRuleV2FromJSON)(json['announcement_rule']),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function AnnouncementRulesCreateResultV2ToJSON(json) {
|
|
42
|
+
return AnnouncementRulesCreateResultV2ToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function AnnouncementRulesCreateResultV2ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'announcement_rule': (0, AnnouncementRuleV2_js_1.AnnouncementRuleV2ToJSON)(value['announcement_rule']),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* incident.io
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { AnnouncementRuleV2 } from './AnnouncementRuleV2.js';
|
|
13
|
+
import type { PaginationMetaResultV2 } from './PaginationMetaResultV2.js';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface AnnouncementRulesListResultV2
|
|
18
|
+
*/
|
|
19
|
+
export interface AnnouncementRulesListResultV2 {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
announcement_rules: Array<AnnouncementRuleV2>;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
pagination_meta: PaginationMetaResultV2;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the AnnouncementRulesListResultV2 interface.
|
|
31
|
+
*/
|
|
32
|
+
export declare function instanceOfAnnouncementRulesListResultV2(value: object): value is AnnouncementRulesListResultV2;
|
|
33
|
+
export declare function AnnouncementRulesListResultV2FromJSON(json: any): AnnouncementRulesListResultV2;
|
|
34
|
+
export declare function AnnouncementRulesListResultV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): AnnouncementRulesListResultV2;
|
|
35
|
+
export declare function AnnouncementRulesListResultV2ToJSON(json: any): AnnouncementRulesListResultV2;
|
|
36
|
+
export declare function AnnouncementRulesListResultV2ToJSONTyped(value?: AnnouncementRulesListResultV2 | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* incident.io
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfAnnouncementRulesListResultV2 = instanceOfAnnouncementRulesListResultV2;
|
|
17
|
+
exports.AnnouncementRulesListResultV2FromJSON = AnnouncementRulesListResultV2FromJSON;
|
|
18
|
+
exports.AnnouncementRulesListResultV2FromJSONTyped = AnnouncementRulesListResultV2FromJSONTyped;
|
|
19
|
+
exports.AnnouncementRulesListResultV2ToJSON = AnnouncementRulesListResultV2ToJSON;
|
|
20
|
+
exports.AnnouncementRulesListResultV2ToJSONTyped = AnnouncementRulesListResultV2ToJSONTyped;
|
|
21
|
+
const AnnouncementRuleV2_js_1 = require("./AnnouncementRuleV2.js");
|
|
22
|
+
const PaginationMetaResultV2_js_1 = require("./PaginationMetaResultV2.js");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the AnnouncementRulesListResultV2 interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfAnnouncementRulesListResultV2(value) {
|
|
27
|
+
if (!('announcement_rules' in value) || value['announcement_rules'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('pagination_meta' in value) || value['pagination_meta'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function AnnouncementRulesListResultV2FromJSON(json) {
|
|
34
|
+
return AnnouncementRulesListResultV2FromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function AnnouncementRulesListResultV2FromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'announcement_rules': (json['announcement_rules'].map(AnnouncementRuleV2_js_1.AnnouncementRuleV2FromJSON)),
|
|
42
|
+
'pagination_meta': (0, PaginationMetaResultV2_js_1.PaginationMetaResultV2FromJSON)(json['pagination_meta']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function AnnouncementRulesListResultV2ToJSON(json) {
|
|
46
|
+
return AnnouncementRulesListResultV2ToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function AnnouncementRulesListResultV2ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'announcement_rules': (value['announcement_rules'].map(AnnouncementRuleV2_js_1.AnnouncementRuleV2ToJSON)),
|
|
54
|
+
'pagination_meta': (0, PaginationMetaResultV2_js_1.PaginationMetaResultV2ToJSON)(value['pagination_meta']),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* incident.io
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { AnnouncementRuleV2 } from './AnnouncementRuleV2.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AnnouncementRulesShowResultV2
|
|
17
|
+
*/
|
|
18
|
+
export interface AnnouncementRulesShowResultV2 {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
announcement_rule: AnnouncementRuleV2;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the AnnouncementRulesShowResultV2 interface.
|
|
26
|
+
*/
|
|
27
|
+
export declare function instanceOfAnnouncementRulesShowResultV2(value: object): value is AnnouncementRulesShowResultV2;
|
|
28
|
+
export declare function AnnouncementRulesShowResultV2FromJSON(json: any): AnnouncementRulesShowResultV2;
|
|
29
|
+
export declare function AnnouncementRulesShowResultV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): AnnouncementRulesShowResultV2;
|
|
30
|
+
export declare function AnnouncementRulesShowResultV2ToJSON(json: any): AnnouncementRulesShowResultV2;
|
|
31
|
+
export declare function AnnouncementRulesShowResultV2ToJSONTyped(value?: AnnouncementRulesShowResultV2 | 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.instanceOfAnnouncementRulesShowResultV2 = instanceOfAnnouncementRulesShowResultV2;
|
|
17
|
+
exports.AnnouncementRulesShowResultV2FromJSON = AnnouncementRulesShowResultV2FromJSON;
|
|
18
|
+
exports.AnnouncementRulesShowResultV2FromJSONTyped = AnnouncementRulesShowResultV2FromJSONTyped;
|
|
19
|
+
exports.AnnouncementRulesShowResultV2ToJSON = AnnouncementRulesShowResultV2ToJSON;
|
|
20
|
+
exports.AnnouncementRulesShowResultV2ToJSONTyped = AnnouncementRulesShowResultV2ToJSONTyped;
|
|
21
|
+
const AnnouncementRuleV2_js_1 = require("./AnnouncementRuleV2.js");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AnnouncementRulesShowResultV2 interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAnnouncementRulesShowResultV2(value) {
|
|
26
|
+
if (!('announcement_rule' in value) || value['announcement_rule'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function AnnouncementRulesShowResultV2FromJSON(json) {
|
|
31
|
+
return AnnouncementRulesShowResultV2FromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function AnnouncementRulesShowResultV2FromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'announcement_rule': (0, AnnouncementRuleV2_js_1.AnnouncementRuleV2FromJSON)(json['announcement_rule']),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function AnnouncementRulesShowResultV2ToJSON(json) {
|
|
42
|
+
return AnnouncementRulesShowResultV2ToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function AnnouncementRulesShowResultV2ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'announcement_rule': (0, AnnouncementRuleV2_js_1.AnnouncementRuleV2ToJSON)(value['announcement_rule']),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
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 { ConditionGroupPayloadV2 } from './ConditionGroupPayloadV2.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AnnouncementRulesUpdatePayloadV2
|
|
17
|
+
*/
|
|
18
|
+
export interface AnnouncementRulesUpdatePayloadV2 {
|
|
19
|
+
/**
|
|
20
|
+
* Incidents are announced when they match any of these condition groups
|
|
21
|
+
*/
|
|
22
|
+
condition_groups: Array<ConditionGroupPayloadV2>;
|
|
23
|
+
/**
|
|
24
|
+
* Whether to remove announcement posts when the incident no longer matches this rule's conditions. Defaults to leaving them in place.
|
|
25
|
+
*/
|
|
26
|
+
conditions_no_longer_apply_behaviour?: AnnouncementRulesUpdatePayloadV2ConditionsNoLongerApplyBehaviourEnum;
|
|
27
|
+
/**
|
|
28
|
+
* Microsoft Teams channels to post announcements into, as team_id/channel_id. Required when the organisation uses Microsoft Teams.
|
|
29
|
+
*/
|
|
30
|
+
microsoft_teams_channel_ids?: Array<string>;
|
|
31
|
+
/**
|
|
32
|
+
* Which incidents are announced: live incidents only, or triage incidents too
|
|
33
|
+
*/
|
|
34
|
+
mode: AnnouncementRulesUpdatePayloadV2ModeEnum;
|
|
35
|
+
/**
|
|
36
|
+
* Human readable name for the rule
|
|
37
|
+
*/
|
|
38
|
+
name: string;
|
|
39
|
+
/**
|
|
40
|
+
* IDs of the teams that own this rule. The existing owning teams are kept when omitted.
|
|
41
|
+
*/
|
|
42
|
+
owning_team_ids?: Array<string>;
|
|
43
|
+
/**
|
|
44
|
+
* Which private incidents this rule announces: every private incident (all), those an owning team can see (owning_teams), or none. Defaults to none on create, and is left unchanged on update when omitted.
|
|
45
|
+
*/
|
|
46
|
+
private_incident_scope?: AnnouncementRulesUpdatePayloadV2PrivateIncidentScopeEnum;
|
|
47
|
+
/**
|
|
48
|
+
* IDs of the Slack channels to post announcements into. Required when the organisation uses Slack.
|
|
49
|
+
*/
|
|
50
|
+
slack_channel_ids?: Array<string>;
|
|
51
|
+
/**
|
|
52
|
+
* ID of the announcement template used to render this rule's posts. The existing template is kept when omitted.
|
|
53
|
+
*/
|
|
54
|
+
template_id?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Where incident updates are shared once the incident is announced
|
|
57
|
+
*/
|
|
58
|
+
update_sharing_mode: AnnouncementRulesUpdatePayloadV2UpdateSharingModeEnum;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* @export
|
|
62
|
+
*/
|
|
63
|
+
export declare const AnnouncementRulesUpdatePayloadV2ConditionsNoLongerApplyBehaviourEnum: {
|
|
64
|
+
readonly LeaveInPlace: "leave_in_place";
|
|
65
|
+
readonly Remove: "remove";
|
|
66
|
+
};
|
|
67
|
+
export type AnnouncementRulesUpdatePayloadV2ConditionsNoLongerApplyBehaviourEnum = typeof AnnouncementRulesUpdatePayloadV2ConditionsNoLongerApplyBehaviourEnum[keyof typeof AnnouncementRulesUpdatePayloadV2ConditionsNoLongerApplyBehaviourEnum];
|
|
68
|
+
/**
|
|
69
|
+
* @export
|
|
70
|
+
*/
|
|
71
|
+
export declare const AnnouncementRulesUpdatePayloadV2ModeEnum: {
|
|
72
|
+
readonly LiveAndClosed: "live_and_closed";
|
|
73
|
+
readonly IncludeTriage: "include_triage";
|
|
74
|
+
readonly IncludeTriageAndMerged: "include_triage_and_merged";
|
|
75
|
+
readonly IncludeDeclinedAndMerged: "include_declined_and_merged";
|
|
76
|
+
readonly IncludeAll: "include_all";
|
|
77
|
+
};
|
|
78
|
+
export type AnnouncementRulesUpdatePayloadV2ModeEnum = typeof AnnouncementRulesUpdatePayloadV2ModeEnum[keyof typeof AnnouncementRulesUpdatePayloadV2ModeEnum];
|
|
79
|
+
/**
|
|
80
|
+
* @export
|
|
81
|
+
*/
|
|
82
|
+
export declare const AnnouncementRulesUpdatePayloadV2PrivateIncidentScopeEnum: {
|
|
83
|
+
readonly All: "all";
|
|
84
|
+
readonly OwningTeams: "owning_teams";
|
|
85
|
+
readonly None: "none";
|
|
86
|
+
};
|
|
87
|
+
export type AnnouncementRulesUpdatePayloadV2PrivateIncidentScopeEnum = typeof AnnouncementRulesUpdatePayloadV2PrivateIncidentScopeEnum[keyof typeof AnnouncementRulesUpdatePayloadV2PrivateIncidentScopeEnum];
|
|
88
|
+
/**
|
|
89
|
+
* @export
|
|
90
|
+
*/
|
|
91
|
+
export declare const AnnouncementRulesUpdatePayloadV2UpdateSharingModeEnum: {
|
|
92
|
+
readonly None: "none";
|
|
93
|
+
readonly Thread: "thread";
|
|
94
|
+
readonly ThreadAndChannel: "thread_and_channel";
|
|
95
|
+
};
|
|
96
|
+
export type AnnouncementRulesUpdatePayloadV2UpdateSharingModeEnum = typeof AnnouncementRulesUpdatePayloadV2UpdateSharingModeEnum[keyof typeof AnnouncementRulesUpdatePayloadV2UpdateSharingModeEnum];
|
|
97
|
+
/**
|
|
98
|
+
* Check if a given object implements the AnnouncementRulesUpdatePayloadV2 interface.
|
|
99
|
+
*/
|
|
100
|
+
export declare function instanceOfAnnouncementRulesUpdatePayloadV2(value: object): value is AnnouncementRulesUpdatePayloadV2;
|
|
101
|
+
export declare function AnnouncementRulesUpdatePayloadV2FromJSON(json: any): AnnouncementRulesUpdatePayloadV2;
|
|
102
|
+
export declare function AnnouncementRulesUpdatePayloadV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): AnnouncementRulesUpdatePayloadV2;
|
|
103
|
+
export declare function AnnouncementRulesUpdatePayloadV2ToJSON(json: any): AnnouncementRulesUpdatePayloadV2;
|
|
104
|
+
export declare function AnnouncementRulesUpdatePayloadV2ToJSONTyped(value?: AnnouncementRulesUpdatePayloadV2 | null, ignoreDiscriminator?: boolean): any;
|