@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
|
@@ -28,6 +28,7 @@ import { StatusPagesListStatusPagesResultV2FromJSON, } from '../models/StatusPag
|
|
|
28
28
|
import { StatusPagesShowStatusPageComponentAvailabilityResultV2FromJSON, } from '../models/StatusPagesShowStatusPageComponentAvailabilityResultV2.js';
|
|
29
29
|
import { StatusPagesShowStatusPageIncidentResultV2FromJSON, } from '../models/StatusPagesShowStatusPageIncidentResultV2.js';
|
|
30
30
|
import { StatusPagesShowStatusPageMaintenanceResultV2FromJSON, } from '../models/StatusPagesShowStatusPageMaintenanceResultV2.js';
|
|
31
|
+
import { StatusPagesShowStatusPageResultV2FromJSON, } from '../models/StatusPagesShowStatusPageResultV2.js';
|
|
31
32
|
import { StatusPagesShowStatusPageStructureResultV2FromJSON, } from '../models/StatusPagesShowStatusPageStructureResultV2.js';
|
|
32
33
|
import { StatusPagesUpdateStatusPageIncidentPayloadV2ToJSON, } from '../models/StatusPagesUpdateStatusPageIncidentPayloadV2.js';
|
|
33
34
|
import { StatusPagesUpdateStatusPageIncidentResultV2FromJSON, } from '../models/StatusPagesUpdateStatusPageIncidentResultV2.js';
|
|
@@ -467,6 +468,48 @@ export class StatusPagesV2Api extends runtime.BaseAPI {
|
|
|
467
468
|
const response = await this.statusPagesV2ListStatusPagesRaw(requestParameters, initOverrides);
|
|
468
469
|
return await response.value();
|
|
469
470
|
}
|
|
471
|
+
/**
|
|
472
|
+
* Creates request options for statusPagesV2ShowStatusPage without sending the request
|
|
473
|
+
*/
|
|
474
|
+
async statusPagesV2ShowStatusPageRequestOpts(requestParameters) {
|
|
475
|
+
if (requestParameters['status_page_id'] == null) {
|
|
476
|
+
throw new runtime.RequiredError('status_page_id', 'Required parameter "status_page_id" was null or undefined when calling statusPagesV2ShowStatusPage().');
|
|
477
|
+
}
|
|
478
|
+
const queryParameters = {};
|
|
479
|
+
const headerParameters = {};
|
|
480
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
481
|
+
const token = this.configuration.accessToken;
|
|
482
|
+
const tokenString = await token("BearerAuth", []);
|
|
483
|
+
if (tokenString) {
|
|
484
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
let urlPath = `/v2/status_pages/{status_page_id}`;
|
|
488
|
+
urlPath = urlPath.replace('{status_page_id}', encodeURIComponent(String(requestParameters['status_page_id'])));
|
|
489
|
+
return {
|
|
490
|
+
path: urlPath,
|
|
491
|
+
method: 'GET',
|
|
492
|
+
headers: headerParameters,
|
|
493
|
+
query: queryParameters,
|
|
494
|
+
};
|
|
495
|
+
}
|
|
496
|
+
/**
|
|
497
|
+
* Show a single status page. This endpoint requires a valid API key but no specific scopes. Use ShowStatusPageStructure to see the components and groups configured on the page.
|
|
498
|
+
* ShowStatusPage Status Pages V2
|
|
499
|
+
*/
|
|
500
|
+
async statusPagesV2ShowStatusPageRaw(requestParameters, initOverrides) {
|
|
501
|
+
const requestOptions = await this.statusPagesV2ShowStatusPageRequestOpts(requestParameters);
|
|
502
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
503
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => StatusPagesShowStatusPageResultV2FromJSON(jsonValue));
|
|
504
|
+
}
|
|
505
|
+
/**
|
|
506
|
+
* Show a single status page. This endpoint requires a valid API key but no specific scopes. Use ShowStatusPageStructure to see the components and groups configured on the page.
|
|
507
|
+
* ShowStatusPage Status Pages V2
|
|
508
|
+
*/
|
|
509
|
+
async statusPagesV2ShowStatusPage(requestParameters, initOverrides) {
|
|
510
|
+
const response = await this.statusPagesV2ShowStatusPageRaw(requestParameters, initOverrides);
|
|
511
|
+
return await response.value();
|
|
512
|
+
}
|
|
470
513
|
/**
|
|
471
514
|
* Creates request options for statusPagesV2ShowStatusPageComponentAvailability without sending the request
|
|
472
515
|
*/
|
package/dist/esm/apis/index.d.ts
CHANGED
|
@@ -9,6 +9,8 @@ export * from './AlertRoutesV2Api.js';
|
|
|
9
9
|
export * from './AlertRoutesV3Api.js';
|
|
10
10
|
export * from './AlertSourcesV2Api.js';
|
|
11
11
|
export * from './AlertsV2Api.js';
|
|
12
|
+
export * from './AnnouncementRulesV2Api.js';
|
|
13
|
+
export * from './AnnouncementTemplatesV2Api.js';
|
|
12
14
|
export * from './CallRoutesV2Api.js';
|
|
13
15
|
export * from './CallSessionsV2Api.js';
|
|
14
16
|
export * from './CallTranscriptEntriesV2Api.js';
|
package/dist/esm/apis/index.js
CHANGED
|
@@ -11,6 +11,8 @@ export * from './AlertRoutesV2Api.js';
|
|
|
11
11
|
export * from './AlertRoutesV3Api.js';
|
|
12
12
|
export * from './AlertSourcesV2Api.js';
|
|
13
13
|
export * from './AlertsV2Api.js';
|
|
14
|
+
export * from './AnnouncementRulesV2Api.js';
|
|
15
|
+
export * from './AnnouncementTemplatesV2Api.js';
|
|
14
16
|
export * from './CallRoutesV2Api.js';
|
|
15
17
|
export * from './CallSessionsV2Api.js';
|
|
16
18
|
export * from './CallTranscriptEntriesV2Api.js';
|
|
@@ -0,0 +1,116 @@
|
|
|
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 { ConditionGroupV2 } from './ConditionGroupV2.js';
|
|
13
|
+
/**
|
|
14
|
+
* An announcement rule posts an announcement of matching incidents into one or more channels.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AnnouncementRuleV2
|
|
17
|
+
*/
|
|
18
|
+
export interface AnnouncementRuleV2 {
|
|
19
|
+
/**
|
|
20
|
+
* Incidents are announced when they match any of these condition groups
|
|
21
|
+
*/
|
|
22
|
+
condition_groups: Array<ConditionGroupV2>;
|
|
23
|
+
/**
|
|
24
|
+
* Whether to remove announcement posts when the incident no longer matches this rule's conditions
|
|
25
|
+
*/
|
|
26
|
+
conditions_no_longer_apply_behaviour: AnnouncementRuleV2ConditionsNoLongerApplyBehaviourEnum;
|
|
27
|
+
/**
|
|
28
|
+
* When the rule was created
|
|
29
|
+
*/
|
|
30
|
+
created_at: Date;
|
|
31
|
+
/**
|
|
32
|
+
* Unique identifier for this announcement rule
|
|
33
|
+
*/
|
|
34
|
+
id: string;
|
|
35
|
+
/**
|
|
36
|
+
* Microsoft Teams channels to post announcements into, as team_id/channel_id, when the organisation uses Microsoft Teams
|
|
37
|
+
*/
|
|
38
|
+
microsoft_teams_channel_ids: Array<string>;
|
|
39
|
+
/**
|
|
40
|
+
* Which incidents are announced: live incidents only, or triage incidents too
|
|
41
|
+
*/
|
|
42
|
+
mode: AnnouncementRuleV2ModeEnum;
|
|
43
|
+
/**
|
|
44
|
+
* Human readable name for the rule
|
|
45
|
+
*/
|
|
46
|
+
name: string;
|
|
47
|
+
/**
|
|
48
|
+
* IDs of the teams that own this rule
|
|
49
|
+
*/
|
|
50
|
+
owning_team_ids: Array<string>;
|
|
51
|
+
/**
|
|
52
|
+
* Which private incidents this rule announces: every private incident (all), those an owning team can see (owning_teams), or none
|
|
53
|
+
*/
|
|
54
|
+
private_incident_scope?: AnnouncementRuleV2PrivateIncidentScopeEnum;
|
|
55
|
+
/**
|
|
56
|
+
* IDs of the Slack channels to post announcements into, when the organisation uses Slack
|
|
57
|
+
*/
|
|
58
|
+
slack_channel_ids: Array<string>;
|
|
59
|
+
/**
|
|
60
|
+
* ID of the announcement template used to render this rule's posts
|
|
61
|
+
*/
|
|
62
|
+
template_id?: string;
|
|
63
|
+
/**
|
|
64
|
+
* Where incident updates are shared once the incident is announced
|
|
65
|
+
*/
|
|
66
|
+
update_sharing_mode: AnnouncementRuleV2UpdateSharingModeEnum;
|
|
67
|
+
/**
|
|
68
|
+
* When the rule was last updated
|
|
69
|
+
*/
|
|
70
|
+
updated_at: Date;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* @export
|
|
74
|
+
*/
|
|
75
|
+
export declare const AnnouncementRuleV2ConditionsNoLongerApplyBehaviourEnum: {
|
|
76
|
+
readonly LeaveInPlace: "leave_in_place";
|
|
77
|
+
readonly Remove: "remove";
|
|
78
|
+
};
|
|
79
|
+
export type AnnouncementRuleV2ConditionsNoLongerApplyBehaviourEnum = typeof AnnouncementRuleV2ConditionsNoLongerApplyBehaviourEnum[keyof typeof AnnouncementRuleV2ConditionsNoLongerApplyBehaviourEnum];
|
|
80
|
+
/**
|
|
81
|
+
* @export
|
|
82
|
+
*/
|
|
83
|
+
export declare const AnnouncementRuleV2ModeEnum: {
|
|
84
|
+
readonly LiveAndClosed: "live_and_closed";
|
|
85
|
+
readonly IncludeTriage: "include_triage";
|
|
86
|
+
readonly IncludeTriageAndMerged: "include_triage_and_merged";
|
|
87
|
+
readonly IncludeDeclinedAndMerged: "include_declined_and_merged";
|
|
88
|
+
readonly IncludeAll: "include_all";
|
|
89
|
+
};
|
|
90
|
+
export type AnnouncementRuleV2ModeEnum = typeof AnnouncementRuleV2ModeEnum[keyof typeof AnnouncementRuleV2ModeEnum];
|
|
91
|
+
/**
|
|
92
|
+
* @export
|
|
93
|
+
*/
|
|
94
|
+
export declare const AnnouncementRuleV2PrivateIncidentScopeEnum: {
|
|
95
|
+
readonly All: "all";
|
|
96
|
+
readonly OwningTeams: "owning_teams";
|
|
97
|
+
readonly None: "none";
|
|
98
|
+
};
|
|
99
|
+
export type AnnouncementRuleV2PrivateIncidentScopeEnum = typeof AnnouncementRuleV2PrivateIncidentScopeEnum[keyof typeof AnnouncementRuleV2PrivateIncidentScopeEnum];
|
|
100
|
+
/**
|
|
101
|
+
* @export
|
|
102
|
+
*/
|
|
103
|
+
export declare const AnnouncementRuleV2UpdateSharingModeEnum: {
|
|
104
|
+
readonly None: "none";
|
|
105
|
+
readonly Thread: "thread";
|
|
106
|
+
readonly ThreadAndChannel: "thread_and_channel";
|
|
107
|
+
};
|
|
108
|
+
export type AnnouncementRuleV2UpdateSharingModeEnum = typeof AnnouncementRuleV2UpdateSharingModeEnum[keyof typeof AnnouncementRuleV2UpdateSharingModeEnum];
|
|
109
|
+
/**
|
|
110
|
+
* Check if a given object implements the AnnouncementRuleV2 interface.
|
|
111
|
+
*/
|
|
112
|
+
export declare function instanceOfAnnouncementRuleV2(value: object): value is AnnouncementRuleV2;
|
|
113
|
+
export declare function AnnouncementRuleV2FromJSON(json: any): AnnouncementRuleV2;
|
|
114
|
+
export declare function AnnouncementRuleV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): AnnouncementRuleV2;
|
|
115
|
+
export declare function AnnouncementRuleV2ToJSON(json: any): AnnouncementRuleV2;
|
|
116
|
+
export declare function AnnouncementRuleV2ToJSONTyped(value?: AnnouncementRuleV2 | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,122 @@
|
|
|
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 { ConditionGroupV2FromJSON, ConditionGroupV2ToJSON, } from './ConditionGroupV2.js';
|
|
16
|
+
/**
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export const AnnouncementRuleV2ConditionsNoLongerApplyBehaviourEnum = {
|
|
20
|
+
LeaveInPlace: 'leave_in_place',
|
|
21
|
+
Remove: 'remove',
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
export const AnnouncementRuleV2ModeEnum = {
|
|
27
|
+
LiveAndClosed: 'live_and_closed',
|
|
28
|
+
IncludeTriage: 'include_triage',
|
|
29
|
+
IncludeTriageAndMerged: 'include_triage_and_merged',
|
|
30
|
+
IncludeDeclinedAndMerged: 'include_declined_and_merged',
|
|
31
|
+
IncludeAll: 'include_all',
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* @export
|
|
35
|
+
*/
|
|
36
|
+
export const AnnouncementRuleV2PrivateIncidentScopeEnum = {
|
|
37
|
+
All: 'all',
|
|
38
|
+
OwningTeams: 'owning_teams',
|
|
39
|
+
None: 'none',
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* @export
|
|
43
|
+
*/
|
|
44
|
+
export const AnnouncementRuleV2UpdateSharingModeEnum = {
|
|
45
|
+
None: 'none',
|
|
46
|
+
Thread: 'thread',
|
|
47
|
+
ThreadAndChannel: 'thread_and_channel',
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the AnnouncementRuleV2 interface.
|
|
51
|
+
*/
|
|
52
|
+
export function instanceOfAnnouncementRuleV2(value) {
|
|
53
|
+
if (!('condition_groups' in value) || value['condition_groups'] === undefined)
|
|
54
|
+
return false;
|
|
55
|
+
if (!('conditions_no_longer_apply_behaviour' in value) || value['conditions_no_longer_apply_behaviour'] === undefined)
|
|
56
|
+
return false;
|
|
57
|
+
if (!('created_at' in value) || value['created_at'] === undefined)
|
|
58
|
+
return false;
|
|
59
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
60
|
+
return false;
|
|
61
|
+
if (!('microsoft_teams_channel_ids' in value) || value['microsoft_teams_channel_ids'] === undefined)
|
|
62
|
+
return false;
|
|
63
|
+
if (!('mode' in value) || value['mode'] === undefined)
|
|
64
|
+
return false;
|
|
65
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
66
|
+
return false;
|
|
67
|
+
if (!('owning_team_ids' in value) || value['owning_team_ids'] === undefined)
|
|
68
|
+
return false;
|
|
69
|
+
if (!('slack_channel_ids' in value) || value['slack_channel_ids'] === undefined)
|
|
70
|
+
return false;
|
|
71
|
+
if (!('update_sharing_mode' in value) || value['update_sharing_mode'] === undefined)
|
|
72
|
+
return false;
|
|
73
|
+
if (!('updated_at' in value) || value['updated_at'] === undefined)
|
|
74
|
+
return false;
|
|
75
|
+
return true;
|
|
76
|
+
}
|
|
77
|
+
export function AnnouncementRuleV2FromJSON(json) {
|
|
78
|
+
return AnnouncementRuleV2FromJSONTyped(json, false);
|
|
79
|
+
}
|
|
80
|
+
export function AnnouncementRuleV2FromJSONTyped(json, ignoreDiscriminator) {
|
|
81
|
+
if (json == null) {
|
|
82
|
+
return json;
|
|
83
|
+
}
|
|
84
|
+
return {
|
|
85
|
+
'condition_groups': (json['condition_groups'].map(ConditionGroupV2FromJSON)),
|
|
86
|
+
'conditions_no_longer_apply_behaviour': json['conditions_no_longer_apply_behaviour'],
|
|
87
|
+
'created_at': (json['created_at'] == null ? json['created_at'] : parseDateTime(json['created_at'])),
|
|
88
|
+
'id': json['id'],
|
|
89
|
+
'microsoft_teams_channel_ids': json['microsoft_teams_channel_ids'],
|
|
90
|
+
'mode': json['mode'],
|
|
91
|
+
'name': json['name'],
|
|
92
|
+
'owning_team_ids': json['owning_team_ids'],
|
|
93
|
+
'private_incident_scope': json['private_incident_scope'] == null ? undefined : json['private_incident_scope'],
|
|
94
|
+
'slack_channel_ids': json['slack_channel_ids'],
|
|
95
|
+
'template_id': json['template_id'] == null ? undefined : json['template_id'],
|
|
96
|
+
'update_sharing_mode': json['update_sharing_mode'],
|
|
97
|
+
'updated_at': (json['updated_at'] == null ? json['updated_at'] : parseDateTime(json['updated_at'])),
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
export function AnnouncementRuleV2ToJSON(json) {
|
|
101
|
+
return AnnouncementRuleV2ToJSONTyped(json, false);
|
|
102
|
+
}
|
|
103
|
+
export function AnnouncementRuleV2ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
104
|
+
if (value == null) {
|
|
105
|
+
return value;
|
|
106
|
+
}
|
|
107
|
+
return {
|
|
108
|
+
'condition_groups': (value['condition_groups'].map(ConditionGroupV2ToJSON)),
|
|
109
|
+
'conditions_no_longer_apply_behaviour': value['conditions_no_longer_apply_behaviour'],
|
|
110
|
+
'created_at': value['created_at'] == null ? value['created_at'] : serializeDateTime(value['created_at']),
|
|
111
|
+
'id': value['id'],
|
|
112
|
+
'microsoft_teams_channel_ids': value['microsoft_teams_channel_ids'],
|
|
113
|
+
'mode': value['mode'],
|
|
114
|
+
'name': value['name'],
|
|
115
|
+
'owning_team_ids': value['owning_team_ids'],
|
|
116
|
+
'private_incident_scope': value['private_incident_scope'],
|
|
117
|
+
'slack_channel_ids': value['slack_channel_ids'],
|
|
118
|
+
'template_id': value['template_id'],
|
|
119
|
+
'update_sharing_mode': value['update_sharing_mode'],
|
|
120
|
+
'updated_at': value['updated_at'] == null ? value['updated_at'] : serializeDateTime(value['updated_at']),
|
|
121
|
+
};
|
|
122
|
+
}
|
|
@@ -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,101 @@
|
|
|
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 { ConditionGroupPayloadV2FromJSON, ConditionGroupPayloadV2ToJSON, } from './ConditionGroupPayloadV2.js';
|
|
15
|
+
/**
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const AnnouncementRulesCreatePayloadV2ConditionsNoLongerApplyBehaviourEnum = {
|
|
19
|
+
LeaveInPlace: 'leave_in_place',
|
|
20
|
+
Remove: 'remove',
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
export const AnnouncementRulesCreatePayloadV2ModeEnum = {
|
|
26
|
+
LiveAndClosed: 'live_and_closed',
|
|
27
|
+
IncludeTriage: 'include_triage',
|
|
28
|
+
IncludeTriageAndMerged: 'include_triage_and_merged',
|
|
29
|
+
IncludeDeclinedAndMerged: 'include_declined_and_merged',
|
|
30
|
+
IncludeAll: 'include_all',
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export const AnnouncementRulesCreatePayloadV2PrivateIncidentScopeEnum = {
|
|
36
|
+
All: 'all',
|
|
37
|
+
OwningTeams: 'owning_teams',
|
|
38
|
+
None: 'none',
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* @export
|
|
42
|
+
*/
|
|
43
|
+
export const AnnouncementRulesCreatePayloadV2UpdateSharingModeEnum = {
|
|
44
|
+
None: 'none',
|
|
45
|
+
Thread: 'thread',
|
|
46
|
+
ThreadAndChannel: 'thread_and_channel',
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the AnnouncementRulesCreatePayloadV2 interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfAnnouncementRulesCreatePayloadV2(value) {
|
|
52
|
+
if (!('condition_groups' in value) || value['condition_groups'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
if (!('mode' in value) || value['mode'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
57
|
+
return false;
|
|
58
|
+
if (!('update_sharing_mode' in value) || value['update_sharing_mode'] === undefined)
|
|
59
|
+
return false;
|
|
60
|
+
return true;
|
|
61
|
+
}
|
|
62
|
+
export function AnnouncementRulesCreatePayloadV2FromJSON(json) {
|
|
63
|
+
return AnnouncementRulesCreatePayloadV2FromJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
export function AnnouncementRulesCreatePayloadV2FromJSONTyped(json, ignoreDiscriminator) {
|
|
66
|
+
if (json == null) {
|
|
67
|
+
return json;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
'condition_groups': (json['condition_groups'].map(ConditionGroupPayloadV2FromJSON)),
|
|
71
|
+
'conditions_no_longer_apply_behaviour': json['conditions_no_longer_apply_behaviour'] == null ? undefined : json['conditions_no_longer_apply_behaviour'],
|
|
72
|
+
'microsoft_teams_channel_ids': json['microsoft_teams_channel_ids'] == null ? undefined : json['microsoft_teams_channel_ids'],
|
|
73
|
+
'mode': json['mode'],
|
|
74
|
+
'name': json['name'],
|
|
75
|
+
'owning_team_ids': json['owning_team_ids'] == null ? undefined : json['owning_team_ids'],
|
|
76
|
+
'private_incident_scope': json['private_incident_scope'] == null ? undefined : json['private_incident_scope'],
|
|
77
|
+
'slack_channel_ids': json['slack_channel_ids'] == null ? undefined : json['slack_channel_ids'],
|
|
78
|
+
'template_id': json['template_id'] == null ? undefined : json['template_id'],
|
|
79
|
+
'update_sharing_mode': json['update_sharing_mode'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
export function AnnouncementRulesCreatePayloadV2ToJSON(json) {
|
|
83
|
+
return AnnouncementRulesCreatePayloadV2ToJSONTyped(json, false);
|
|
84
|
+
}
|
|
85
|
+
export function AnnouncementRulesCreatePayloadV2ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
86
|
+
if (value == null) {
|
|
87
|
+
return value;
|
|
88
|
+
}
|
|
89
|
+
return {
|
|
90
|
+
'condition_groups': (value['condition_groups'].map(ConditionGroupPayloadV2ToJSON)),
|
|
91
|
+
'conditions_no_longer_apply_behaviour': value['conditions_no_longer_apply_behaviour'],
|
|
92
|
+
'microsoft_teams_channel_ids': value['microsoft_teams_channel_ids'],
|
|
93
|
+
'mode': value['mode'],
|
|
94
|
+
'name': value['name'],
|
|
95
|
+
'owning_team_ids': value['owning_team_ids'],
|
|
96
|
+
'private_incident_scope': value['private_incident_scope'],
|
|
97
|
+
'slack_channel_ids': value['slack_channel_ids'],
|
|
98
|
+
'template_id': value['template_id'],
|
|
99
|
+
'update_sharing_mode': value['update_sharing_mode'],
|
|
100
|
+
};
|
|
101
|
+
}
|
|
@@ -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,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 { AnnouncementRuleV2FromJSON, AnnouncementRuleV2ToJSON, } from './AnnouncementRuleV2.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the AnnouncementRulesCreateResultV2 interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfAnnouncementRulesCreateResultV2(value) {
|
|
19
|
+
if (!('announcement_rule' in value) || value['announcement_rule'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
export function AnnouncementRulesCreateResultV2FromJSON(json) {
|
|
24
|
+
return AnnouncementRulesCreateResultV2FromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function AnnouncementRulesCreateResultV2FromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json == null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'announcement_rule': AnnouncementRuleV2FromJSON(json['announcement_rule']),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function AnnouncementRulesCreateResultV2ToJSON(json) {
|
|
35
|
+
return AnnouncementRulesCreateResultV2ToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function AnnouncementRulesCreateResultV2ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'announcement_rule': AnnouncementRuleV2ToJSON(value['announcement_rule']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -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;
|