@incident-io/sdk 2.8.0 → 2.10.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.
Files changed (89) hide show
  1. package/dist/cjs/apis/IncidentFormsV3Api.d.ts +131 -0
  2. package/dist/cjs/apis/IncidentFormsV3Api.js +279 -0
  3. package/dist/cjs/apis/StatusPageComponentsV2Api.d.ts +129 -0
  4. package/dist/cjs/apis/StatusPageComponentsV2Api.js +273 -0
  5. package/dist/cjs/apis/index.d.ts +2 -0
  6. package/dist/cjs/apis/index.js +2 -0
  7. package/dist/cjs/models/IncidentFormLifecycleElementConfigV3.d.ts +30 -0
  8. package/dist/cjs/models/IncidentFormLifecycleElementConfigV3.js +48 -0
  9. package/dist/cjs/models/IncidentFormLifecycleElementPayloadV3.d.ts +115 -0
  10. package/dist/cjs/models/IncidentFormLifecycleElementPayloadV3.js +110 -0
  11. package/dist/cjs/models/IncidentFormLifecycleElementV3.d.ts +115 -0
  12. package/dist/cjs/models/IncidentFormLifecycleElementV3.js +110 -0
  13. package/dist/cjs/models/IncidentFormV3.d.ts +68 -0
  14. package/dist/cjs/models/IncidentFormV3.js +85 -0
  15. package/dist/cjs/models/IncidentFormsCreatePayloadV3.d.ts +56 -0
  16. package/dist/cjs/models/IncidentFormsCreatePayloadV3.js +72 -0
  17. package/dist/cjs/models/IncidentFormsCreateResultV3.d.ts +31 -0
  18. package/dist/cjs/models/IncidentFormsCreateResultV3.js +51 -0
  19. package/dist/cjs/models/IncidentFormsListResultV3.d.ts +36 -0
  20. package/dist/cjs/models/IncidentFormsListResultV3.js +56 -0
  21. package/dist/cjs/models/IncidentFormsShowResultV3.d.ts +31 -0
  22. package/dist/cjs/models/IncidentFormsShowResultV3.js +51 -0
  23. package/dist/cjs/models/IncidentFormsUpdatePayloadV3.d.ts +56 -0
  24. package/dist/cjs/models/IncidentFormsUpdatePayloadV3.js +72 -0
  25. package/dist/cjs/models/IncidentFormsUpdateResultV3.d.ts +31 -0
  26. package/dist/cjs/models/IncidentFormsUpdateResultV3.js +51 -0
  27. package/dist/cjs/models/StatusPageComponentV2.d.ts +46 -0
  28. package/dist/cjs/models/StatusPageComponentV2.js +61 -0
  29. package/dist/cjs/models/StatusPageComponentsCreatePayloadV2.d.ts +34 -0
  30. package/dist/cjs/models/StatusPageComponentsCreatePayloadV2.js +52 -0
  31. package/dist/cjs/models/StatusPageComponentsCreateResultV2.d.ts +31 -0
  32. package/dist/cjs/models/StatusPageComponentsCreateResultV2.js +51 -0
  33. package/dist/cjs/models/StatusPageComponentsListResultV2.d.ts +31 -0
  34. package/dist/cjs/models/StatusPageComponentsListResultV2.js +51 -0
  35. package/dist/cjs/models/StatusPageComponentsShowResultV2.d.ts +31 -0
  36. package/dist/cjs/models/StatusPageComponentsShowResultV2.js +51 -0
  37. package/dist/cjs/models/StatusPageComponentsUpdatePayloadV2.d.ts +34 -0
  38. package/dist/cjs/models/StatusPageComponentsUpdatePayloadV2.js +52 -0
  39. package/dist/cjs/models/StatusPageComponentsUpdateResultV2.d.ts +31 -0
  40. package/dist/cjs/models/StatusPageComponentsUpdateResultV2.js +51 -0
  41. package/dist/cjs/models/index.d.ts +17 -0
  42. package/dist/cjs/models/index.js +17 -0
  43. package/dist/cjs/version.d.ts +1 -1
  44. package/dist/cjs/version.js +1 -1
  45. package/dist/esm/apis/IncidentFormsV3Api.d.ts +131 -0
  46. package/dist/esm/apis/IncidentFormsV3Api.js +242 -0
  47. package/dist/esm/apis/StatusPageComponentsV2Api.d.ts +129 -0
  48. package/dist/esm/apis/StatusPageComponentsV2Api.js +236 -0
  49. package/dist/esm/apis/index.d.ts +2 -0
  50. package/dist/esm/apis/index.js +2 -0
  51. package/dist/esm/models/IncidentFormLifecycleElementConfigV3.d.ts +30 -0
  52. package/dist/esm/models/IncidentFormLifecycleElementConfigV3.js +41 -0
  53. package/dist/esm/models/IncidentFormLifecycleElementPayloadV3.d.ts +115 -0
  54. package/dist/esm/models/IncidentFormLifecycleElementPayloadV3.js +102 -0
  55. package/dist/esm/models/IncidentFormLifecycleElementV3.d.ts +115 -0
  56. package/dist/esm/models/IncidentFormLifecycleElementV3.js +102 -0
  57. package/dist/esm/models/IncidentFormV3.d.ts +68 -0
  58. package/dist/esm/models/IncidentFormV3.js +77 -0
  59. package/dist/esm/models/IncidentFormsCreatePayloadV3.d.ts +56 -0
  60. package/dist/esm/models/IncidentFormsCreatePayloadV3.js +64 -0
  61. package/dist/esm/models/IncidentFormsCreateResultV3.d.ts +31 -0
  62. package/dist/esm/models/IncidentFormsCreateResultV3.js +44 -0
  63. package/dist/esm/models/IncidentFormsListResultV3.d.ts +36 -0
  64. package/dist/esm/models/IncidentFormsListResultV3.js +49 -0
  65. package/dist/esm/models/IncidentFormsShowResultV3.d.ts +31 -0
  66. package/dist/esm/models/IncidentFormsShowResultV3.js +44 -0
  67. package/dist/esm/models/IncidentFormsUpdatePayloadV3.d.ts +56 -0
  68. package/dist/esm/models/IncidentFormsUpdatePayloadV3.js +64 -0
  69. package/dist/esm/models/IncidentFormsUpdateResultV3.d.ts +31 -0
  70. package/dist/esm/models/IncidentFormsUpdateResultV3.js +44 -0
  71. package/dist/esm/models/StatusPageComponentV2.d.ts +46 -0
  72. package/dist/esm/models/StatusPageComponentV2.js +54 -0
  73. package/dist/esm/models/StatusPageComponentsCreatePayloadV2.d.ts +34 -0
  74. package/dist/esm/models/StatusPageComponentsCreatePayloadV2.js +45 -0
  75. package/dist/esm/models/StatusPageComponentsCreateResultV2.d.ts +31 -0
  76. package/dist/esm/models/StatusPageComponentsCreateResultV2.js +44 -0
  77. package/dist/esm/models/StatusPageComponentsListResultV2.d.ts +31 -0
  78. package/dist/esm/models/StatusPageComponentsListResultV2.js +44 -0
  79. package/dist/esm/models/StatusPageComponentsShowResultV2.d.ts +31 -0
  80. package/dist/esm/models/StatusPageComponentsShowResultV2.js +44 -0
  81. package/dist/esm/models/StatusPageComponentsUpdatePayloadV2.d.ts +34 -0
  82. package/dist/esm/models/StatusPageComponentsUpdatePayloadV2.js +45 -0
  83. package/dist/esm/models/StatusPageComponentsUpdateResultV2.d.ts +31 -0
  84. package/dist/esm/models/StatusPageComponentsUpdateResultV2.js +44 -0
  85. package/dist/esm/models/index.d.ts +17 -0
  86. package/dist/esm/models/index.js +17 -0
  87. package/dist/esm/version.d.ts +1 -1
  88. package/dist/esm/version.js +1 -1
  89. package/package.json +1 -1
@@ -0,0 +1,273 @@
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
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
16
+ if (k2 === undefined) k2 = k;
17
+ var desc = Object.getOwnPropertyDescriptor(m, k);
18
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
19
+ desc = { enumerable: true, get: function() { return m[k]; } };
20
+ }
21
+ Object.defineProperty(o, k2, desc);
22
+ }) : (function(o, m, k, k2) {
23
+ if (k2 === undefined) k2 = k;
24
+ o[k2] = m[k];
25
+ }));
26
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
27
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
28
+ }) : function(o, v) {
29
+ o["default"] = v;
30
+ });
31
+ var __importStar = (this && this.__importStar) || (function () {
32
+ var ownKeys = function(o) {
33
+ ownKeys = Object.getOwnPropertyNames || function (o) {
34
+ var ar = [];
35
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
36
+ return ar;
37
+ };
38
+ return ownKeys(o);
39
+ };
40
+ return function (mod) {
41
+ if (mod && mod.__esModule) return mod;
42
+ var result = {};
43
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
44
+ __setModuleDefault(result, mod);
45
+ return result;
46
+ };
47
+ })();
48
+ Object.defineProperty(exports, "__esModule", { value: true });
49
+ exports.StatusPageComponentsV2Api = void 0;
50
+ const runtime = __importStar(require("../runtime.js"));
51
+ const StatusPageComponentsCreatePayloadV2_js_1 = require("../models/StatusPageComponentsCreatePayloadV2.js");
52
+ const StatusPageComponentsCreateResultV2_js_1 = require("../models/StatusPageComponentsCreateResultV2.js");
53
+ const StatusPageComponentsListResultV2_js_1 = require("../models/StatusPageComponentsListResultV2.js");
54
+ const StatusPageComponentsShowResultV2_js_1 = require("../models/StatusPageComponentsShowResultV2.js");
55
+ const StatusPageComponentsUpdatePayloadV2_js_1 = require("../models/StatusPageComponentsUpdatePayloadV2.js");
56
+ const StatusPageComponentsUpdateResultV2_js_1 = require("../models/StatusPageComponentsUpdateResultV2.js");
57
+ /**
58
+ *
59
+ */
60
+ class StatusPageComponentsV2Api extends runtime.BaseAPI {
61
+ /**
62
+ * Creates request options for statusPageComponentsV2Create without sending the request
63
+ */
64
+ async statusPageComponentsV2CreateRequestOpts(requestParameters) {
65
+ if (requestParameters['body'] == null) {
66
+ throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling statusPageComponentsV2Create().');
67
+ }
68
+ const queryParameters = {};
69
+ const headerParameters = {};
70
+ headerParameters['Content-Type'] = 'application/json';
71
+ if (this.configuration && this.configuration.accessToken) {
72
+ const token = this.configuration.accessToken;
73
+ const tokenString = await token("BearerAuth", []);
74
+ if (tokenString) {
75
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
76
+ }
77
+ }
78
+ let urlPath = `/v2/status_page_components`;
79
+ return {
80
+ path: urlPath,
81
+ method: 'POST',
82
+ headers: headerParameters,
83
+ query: queryParameters,
84
+ body: (0, StatusPageComponentsCreatePayloadV2_js_1.StatusPageComponentsCreatePayloadV2ToJSON)(requestParameters['body']),
85
+ };
86
+ }
87
+ /**
88
+ * Create a status page component. Placement on a page is controlled separately via status page structures.
89
+ * Create Status Page Components V2
90
+ */
91
+ async statusPageComponentsV2CreateRaw(requestParameters, initOverrides) {
92
+ const requestOptions = await this.statusPageComponentsV2CreateRequestOpts(requestParameters);
93
+ const response = await this.request(requestOptions, initOverrides);
94
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, StatusPageComponentsCreateResultV2_js_1.StatusPageComponentsCreateResultV2FromJSON)(jsonValue));
95
+ }
96
+ /**
97
+ * Create a status page component. Placement on a page is controlled separately via status page structures.
98
+ * Create Status Page Components V2
99
+ */
100
+ async statusPageComponentsV2Create(requestParameters, initOverrides) {
101
+ const response = await this.statusPageComponentsV2CreateRaw(requestParameters, initOverrides);
102
+ return await response.value();
103
+ }
104
+ /**
105
+ * Creates request options for statusPageComponentsV2Destroy without sending the request
106
+ */
107
+ async statusPageComponentsV2DestroyRequestOpts(requestParameters) {
108
+ if (requestParameters['id'] == null) {
109
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling statusPageComponentsV2Destroy().');
110
+ }
111
+ const queryParameters = {};
112
+ const headerParameters = {};
113
+ if (this.configuration && this.configuration.accessToken) {
114
+ const token = this.configuration.accessToken;
115
+ const tokenString = await token("BearerAuth", []);
116
+ if (tokenString) {
117
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
118
+ }
119
+ }
120
+ let urlPath = `/v2/status_page_components/{id}`;
121
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
122
+ return {
123
+ path: urlPath,
124
+ method: 'DELETE',
125
+ headers: headerParameters,
126
+ query: queryParameters,
127
+ };
128
+ }
129
+ /**
130
+ * Archive a status page component.
131
+ * Destroy Status Page Components V2
132
+ */
133
+ async statusPageComponentsV2DestroyRaw(requestParameters, initOverrides) {
134
+ const requestOptions = await this.statusPageComponentsV2DestroyRequestOpts(requestParameters);
135
+ const response = await this.request(requestOptions, initOverrides);
136
+ return new runtime.VoidApiResponse(response);
137
+ }
138
+ /**
139
+ * Archive a status page component.
140
+ * Destroy Status Page Components V2
141
+ */
142
+ async statusPageComponentsV2Destroy(requestParameters, initOverrides) {
143
+ await this.statusPageComponentsV2DestroyRaw(requestParameters, initOverrides);
144
+ }
145
+ /**
146
+ * Creates request options for statusPageComponentsV2List without sending the request
147
+ */
148
+ async statusPageComponentsV2ListRequestOpts(requestParameters) {
149
+ const queryParameters = {};
150
+ const headerParameters = {};
151
+ if (this.configuration && this.configuration.accessToken) {
152
+ const token = this.configuration.accessToken;
153
+ const tokenString = await token("BearerAuth", []);
154
+ if (tokenString) {
155
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
156
+ }
157
+ }
158
+ let urlPath = `/v2/status_page_components`;
159
+ return {
160
+ path: urlPath,
161
+ method: 'GET',
162
+ headers: headerParameters,
163
+ query: queryParameters,
164
+ };
165
+ }
166
+ /**
167
+ * List all status page components for an organisation.
168
+ * List Status Page Components V2
169
+ */
170
+ async statusPageComponentsV2ListRaw(requestParameters, initOverrides) {
171
+ const requestOptions = await this.statusPageComponentsV2ListRequestOpts(requestParameters);
172
+ const response = await this.request(requestOptions, initOverrides);
173
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, StatusPageComponentsListResultV2_js_1.StatusPageComponentsListResultV2FromJSON)(jsonValue));
174
+ }
175
+ /**
176
+ * List all status page components for an organisation.
177
+ * List Status Page Components V2
178
+ */
179
+ async statusPageComponentsV2List(requestParameters = {}, initOverrides) {
180
+ const response = await this.statusPageComponentsV2ListRaw(requestParameters, initOverrides);
181
+ return await response.value();
182
+ }
183
+ /**
184
+ * Creates request options for statusPageComponentsV2Show without sending the request
185
+ */
186
+ async statusPageComponentsV2ShowRequestOpts(requestParameters) {
187
+ if (requestParameters['id'] == null) {
188
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling statusPageComponentsV2Show().');
189
+ }
190
+ const queryParameters = {};
191
+ const headerParameters = {};
192
+ if (this.configuration && this.configuration.accessToken) {
193
+ const token = this.configuration.accessToken;
194
+ const tokenString = await token("BearerAuth", []);
195
+ if (tokenString) {
196
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
197
+ }
198
+ }
199
+ let urlPath = `/v2/status_page_components/{id}`;
200
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
201
+ return {
202
+ path: urlPath,
203
+ method: 'GET',
204
+ headers: headerParameters,
205
+ query: queryParameters,
206
+ };
207
+ }
208
+ /**
209
+ * Show a single status page component.
210
+ * Show Status Page Components V2
211
+ */
212
+ async statusPageComponentsV2ShowRaw(requestParameters, initOverrides) {
213
+ const requestOptions = await this.statusPageComponentsV2ShowRequestOpts(requestParameters);
214
+ const response = await this.request(requestOptions, initOverrides);
215
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, StatusPageComponentsShowResultV2_js_1.StatusPageComponentsShowResultV2FromJSON)(jsonValue));
216
+ }
217
+ /**
218
+ * Show a single status page component.
219
+ * Show Status Page Components V2
220
+ */
221
+ async statusPageComponentsV2Show(requestParameters, initOverrides) {
222
+ const response = await this.statusPageComponentsV2ShowRaw(requestParameters, initOverrides);
223
+ return await response.value();
224
+ }
225
+ /**
226
+ * Creates request options for statusPageComponentsV2Update without sending the request
227
+ */
228
+ async statusPageComponentsV2UpdateRequestOpts(requestParameters) {
229
+ if (requestParameters['id'] == null) {
230
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling statusPageComponentsV2Update().');
231
+ }
232
+ if (requestParameters['body'] == null) {
233
+ throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling statusPageComponentsV2Update().');
234
+ }
235
+ const queryParameters = {};
236
+ const headerParameters = {};
237
+ headerParameters['Content-Type'] = 'application/json';
238
+ if (this.configuration && this.configuration.accessToken) {
239
+ const token = this.configuration.accessToken;
240
+ const tokenString = await token("BearerAuth", []);
241
+ if (tokenString) {
242
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
243
+ }
244
+ }
245
+ let urlPath = `/v2/status_page_components/{id}`;
246
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
247
+ return {
248
+ path: urlPath,
249
+ method: 'PUT',
250
+ headers: headerParameters,
251
+ query: queryParameters,
252
+ body: (0, StatusPageComponentsUpdatePayloadV2_js_1.StatusPageComponentsUpdatePayloadV2ToJSON)(requestParameters['body']),
253
+ };
254
+ }
255
+ /**
256
+ * Update a status page component\'s name and description.
257
+ * Update Status Page Components V2
258
+ */
259
+ async statusPageComponentsV2UpdateRaw(requestParameters, initOverrides) {
260
+ const requestOptions = await this.statusPageComponentsV2UpdateRequestOpts(requestParameters);
261
+ const response = await this.request(requestOptions, initOverrides);
262
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, StatusPageComponentsUpdateResultV2_js_1.StatusPageComponentsUpdateResultV2FromJSON)(jsonValue));
263
+ }
264
+ /**
265
+ * Update a status page component\'s name and description.
266
+ * Update Status Page Components V2
267
+ */
268
+ async statusPageComponentsV2Update(requestParameters, initOverrides) {
269
+ const response = await this.statusPageComponentsV2UpdateRaw(requestParameters, initOverrides);
270
+ return await response.value();
271
+ }
272
+ }
273
+ exports.StatusPageComponentsV2Api = StatusPageComponentsV2Api;
@@ -27,6 +27,7 @@ export * from './HeartbeatV2Api.js';
27
27
  export * from './IPAllowlistsV1Api.js';
28
28
  export * from './IncidentActivityLogEntriesV2Api.js';
29
29
  export * from './IncidentAttachmentsV1Api.js';
30
+ export * from './IncidentFormsV3Api.js';
30
31
  export * from './IncidentMembershipsV1Api.js';
31
32
  export * from './IncidentParticipantWorkloadsV2Api.js';
32
33
  export * from './IncidentParticipantsV2Api.js';
@@ -52,6 +53,7 @@ export * from './ScheduleSyncTargetsV2Api.js';
52
53
  export * from './SchedulesV2Api.js';
53
54
  export * from './SecretsV2Api.js';
54
55
  export * from './SeveritiesV1Api.js';
56
+ export * from './StatusPageComponentsV2Api.js';
55
57
  export * from './StatusPagesV1Api.js';
56
58
  export * from './StatusPagesV2Api.js';
57
59
  export * from './TeamsV3Api.js';
@@ -45,6 +45,7 @@ __exportStar(require("./HeartbeatV2Api.js"), exports);
45
45
  __exportStar(require("./IPAllowlistsV1Api.js"), exports);
46
46
  __exportStar(require("./IncidentActivityLogEntriesV2Api.js"), exports);
47
47
  __exportStar(require("./IncidentAttachmentsV1Api.js"), exports);
48
+ __exportStar(require("./IncidentFormsV3Api.js"), exports);
48
49
  __exportStar(require("./IncidentMembershipsV1Api.js"), exports);
49
50
  __exportStar(require("./IncidentParticipantWorkloadsV2Api.js"), exports);
50
51
  __exportStar(require("./IncidentParticipantsV2Api.js"), exports);
@@ -70,6 +71,7 @@ __exportStar(require("./ScheduleSyncTargetsV2Api.js"), exports);
70
71
  __exportStar(require("./SchedulesV2Api.js"), exports);
71
72
  __exportStar(require("./SecretsV2Api.js"), exports);
72
73
  __exportStar(require("./SeveritiesV1Api.js"), exports);
74
+ __exportStar(require("./StatusPageComponentsV2Api.js"), exports);
73
75
  __exportStar(require("./StatusPagesV1Api.js"), exports);
74
76
  __exportStar(require("./StatusPagesV2Api.js"), exports);
75
77
  __exportStar(require("./TeamsV3Api.js"), exports);
@@ -0,0 +1,30 @@
1
+ /**
2
+ * incident.io
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface IncidentFormLifecycleElementConfigV3
16
+ */
17
+ export interface IncidentFormLifecycleElementConfigV3 {
18
+ /**
19
+ * Whether the free-text comment must be filled in, for anyone giving investigation feedback
20
+ */
21
+ require_comment?: boolean;
22
+ }
23
+ /**
24
+ * Check if a given object implements the IncidentFormLifecycleElementConfigV3 interface.
25
+ */
26
+ export declare function instanceOfIncidentFormLifecycleElementConfigV3(value: object): value is IncidentFormLifecycleElementConfigV3;
27
+ export declare function IncidentFormLifecycleElementConfigV3FromJSON(json: any): IncidentFormLifecycleElementConfigV3;
28
+ export declare function IncidentFormLifecycleElementConfigV3FromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentFormLifecycleElementConfigV3;
29
+ export declare function IncidentFormLifecycleElementConfigV3ToJSON(json: any): IncidentFormLifecycleElementConfigV3;
30
+ export declare function IncidentFormLifecycleElementConfigV3ToJSONTyped(value?: IncidentFormLifecycleElementConfigV3 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,48 @@
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.instanceOfIncidentFormLifecycleElementConfigV3 = instanceOfIncidentFormLifecycleElementConfigV3;
17
+ exports.IncidentFormLifecycleElementConfigV3FromJSON = IncidentFormLifecycleElementConfigV3FromJSON;
18
+ exports.IncidentFormLifecycleElementConfigV3FromJSONTyped = IncidentFormLifecycleElementConfigV3FromJSONTyped;
19
+ exports.IncidentFormLifecycleElementConfigV3ToJSON = IncidentFormLifecycleElementConfigV3ToJSON;
20
+ exports.IncidentFormLifecycleElementConfigV3ToJSONTyped = IncidentFormLifecycleElementConfigV3ToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the IncidentFormLifecycleElementConfigV3 interface.
23
+ */
24
+ function instanceOfIncidentFormLifecycleElementConfigV3(value) {
25
+ return true;
26
+ }
27
+ function IncidentFormLifecycleElementConfigV3FromJSON(json) {
28
+ return IncidentFormLifecycleElementConfigV3FromJSONTyped(json, false);
29
+ }
30
+ function IncidentFormLifecycleElementConfigV3FromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'require_comment': json['require_comment'] == null ? undefined : json['require_comment'],
36
+ };
37
+ }
38
+ function IncidentFormLifecycleElementConfigV3ToJSON(json) {
39
+ return IncidentFormLifecycleElementConfigV3ToJSONTyped(json, false);
40
+ }
41
+ function IncidentFormLifecycleElementConfigV3ToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ return {
46
+ 'require_comment': value['require_comment'],
47
+ };
48
+ }
@@ -0,0 +1,115 @@
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 { IncidentFormLifecycleElementConfigV3 } from './IncidentFormLifecycleElementConfigV3.js';
13
+ import type { EngineParamBindingPayloadV3 } from './EngineParamBindingPayloadV3.js';
14
+ import type { ConditionGroupPayloadV3 } from './ConditionGroupPayloadV3.js';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface IncidentFormLifecycleElementPayloadV3
19
+ */
20
+ export interface IncidentFormLifecycleElementPayloadV3 {
21
+ /**
22
+ * Whether the user can explicitly choose no value. Only meaningful for custom field elements.
23
+ */
24
+ can_select_no_value?: boolean;
25
+ /**
26
+ *
27
+ */
28
+ config?: IncidentFormLifecycleElementConfigV3;
29
+ /**
30
+ * The custom field this element edits. Set only when element_type is custom_field.
31
+ */
32
+ custom_field_id?: string;
33
+ /**
34
+ *
35
+ */
36
+ default_value?: EngineParamBindingPayloadV3;
37
+ /**
38
+ * Description shown beside this element, as markdown
39
+ */
40
+ description?: string;
41
+ /**
42
+ * What this element captures
43
+ */
44
+ element_type: IncidentFormLifecycleElementPayloadV3ElementTypeEnum;
45
+ /**
46
+ * Identifier of an existing divider or text element. Omit when adding an element.
47
+ */
48
+ id?: string;
49
+ /**
50
+ * The incident role this element assigns. Set only when element_type is incident_role.
51
+ */
52
+ incident_role_id?: string;
53
+ /**
54
+ * The incident timestamp this element sets. Set only when element_type is timestamp.
55
+ */
56
+ incident_timestamp_id?: string;
57
+ /**
58
+ * Placeholder text shown in the empty field
59
+ */
60
+ placeholder?: string;
61
+ /**
62
+ * When this element must be filled in
63
+ */
64
+ required_if?: IncidentFormLifecycleElementPayloadV3RequiredIfEnum;
65
+ /**
66
+ * Condition groups that make this element required. Used when required_if is check_engine_config.
67
+ */
68
+ required_if_condition_groups?: Array<ConditionGroupPayloadV3>;
69
+ /**
70
+ * The element is shown when any of these condition groups match. Unset means it is always shown.
71
+ */
72
+ show_if_condition_groups?: Array<ConditionGroupPayloadV3>;
73
+ }
74
+ /**
75
+ * @export
76
+ */
77
+ export declare const IncidentFormLifecycleElementPayloadV3ElementTypeEnum: {
78
+ readonly Name: "name";
79
+ readonly Status: "status";
80
+ readonly Severity: "severity";
81
+ readonly IncidentRole: "incident_role";
82
+ readonly IncidentType: "incident_type";
83
+ readonly Summary: "summary";
84
+ readonly CustomField: "custom_field";
85
+ readonly Timestamp: "timestamp";
86
+ readonly UpdateMessage: "update_message";
87
+ readonly NextUpdateIn: "next_update_in";
88
+ readonly Triage: "triage";
89
+ readonly Visibility: "visibility";
90
+ readonly Divider: "divider";
91
+ readonly Text: "text";
92
+ readonly IncidentAttachments: "incident_attachments";
93
+ readonly SlackChannel: "slack_channel";
94
+ readonly AnnounceRetroIncident: "announce_retro_incident";
95
+ readonly EnterPostIncidentFlow: "enter_post_incident_flow";
96
+ readonly InvestigationFeedback: "investigation_feedback";
97
+ };
98
+ export type IncidentFormLifecycleElementPayloadV3ElementTypeEnum = typeof IncidentFormLifecycleElementPayloadV3ElementTypeEnum[keyof typeof IncidentFormLifecycleElementPayloadV3ElementTypeEnum];
99
+ /**
100
+ * @export
101
+ */
102
+ export declare const IncidentFormLifecycleElementPayloadV3RequiredIfEnum: {
103
+ readonly CheckEngineConfig: "check_engine_config";
104
+ readonly AlwaysRequire: "always_require";
105
+ readonly NeverRequire: "never_require";
106
+ };
107
+ export type IncidentFormLifecycleElementPayloadV3RequiredIfEnum = typeof IncidentFormLifecycleElementPayloadV3RequiredIfEnum[keyof typeof IncidentFormLifecycleElementPayloadV3RequiredIfEnum];
108
+ /**
109
+ * Check if a given object implements the IncidentFormLifecycleElementPayloadV3 interface.
110
+ */
111
+ export declare function instanceOfIncidentFormLifecycleElementPayloadV3(value: object): value is IncidentFormLifecycleElementPayloadV3;
112
+ export declare function IncidentFormLifecycleElementPayloadV3FromJSON(json: any): IncidentFormLifecycleElementPayloadV3;
113
+ export declare function IncidentFormLifecycleElementPayloadV3FromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentFormLifecycleElementPayloadV3;
114
+ export declare function IncidentFormLifecycleElementPayloadV3ToJSON(json: any): IncidentFormLifecycleElementPayloadV3;
115
+ export declare function IncidentFormLifecycleElementPayloadV3ToJSONTyped(value?: IncidentFormLifecycleElementPayloadV3 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,110 @@
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.IncidentFormLifecycleElementPayloadV3RequiredIfEnum = exports.IncidentFormLifecycleElementPayloadV3ElementTypeEnum = void 0;
17
+ exports.instanceOfIncidentFormLifecycleElementPayloadV3 = instanceOfIncidentFormLifecycleElementPayloadV3;
18
+ exports.IncidentFormLifecycleElementPayloadV3FromJSON = IncidentFormLifecycleElementPayloadV3FromJSON;
19
+ exports.IncidentFormLifecycleElementPayloadV3FromJSONTyped = IncidentFormLifecycleElementPayloadV3FromJSONTyped;
20
+ exports.IncidentFormLifecycleElementPayloadV3ToJSON = IncidentFormLifecycleElementPayloadV3ToJSON;
21
+ exports.IncidentFormLifecycleElementPayloadV3ToJSONTyped = IncidentFormLifecycleElementPayloadV3ToJSONTyped;
22
+ const IncidentFormLifecycleElementConfigV3_js_1 = require("./IncidentFormLifecycleElementConfigV3.js");
23
+ const EngineParamBindingPayloadV3_js_1 = require("./EngineParamBindingPayloadV3.js");
24
+ const ConditionGroupPayloadV3_js_1 = require("./ConditionGroupPayloadV3.js");
25
+ /**
26
+ * @export
27
+ */
28
+ exports.IncidentFormLifecycleElementPayloadV3ElementTypeEnum = {
29
+ Name: 'name',
30
+ Status: 'status',
31
+ Severity: 'severity',
32
+ IncidentRole: 'incident_role',
33
+ IncidentType: 'incident_type',
34
+ Summary: 'summary',
35
+ CustomField: 'custom_field',
36
+ Timestamp: 'timestamp',
37
+ UpdateMessage: 'update_message',
38
+ NextUpdateIn: 'next_update_in',
39
+ Triage: 'triage',
40
+ Visibility: 'visibility',
41
+ Divider: 'divider',
42
+ Text: 'text',
43
+ IncidentAttachments: 'incident_attachments',
44
+ SlackChannel: 'slack_channel',
45
+ AnnounceRetroIncident: 'announce_retro_incident',
46
+ EnterPostIncidentFlow: 'enter_post_incident_flow',
47
+ InvestigationFeedback: 'investigation_feedback',
48
+ };
49
+ /**
50
+ * @export
51
+ */
52
+ exports.IncidentFormLifecycleElementPayloadV3RequiredIfEnum = {
53
+ CheckEngineConfig: 'check_engine_config',
54
+ AlwaysRequire: 'always_require',
55
+ NeverRequire: 'never_require',
56
+ };
57
+ /**
58
+ * Check if a given object implements the IncidentFormLifecycleElementPayloadV3 interface.
59
+ */
60
+ function instanceOfIncidentFormLifecycleElementPayloadV3(value) {
61
+ if (!('element_type' in value) || value['element_type'] === undefined)
62
+ return false;
63
+ return true;
64
+ }
65
+ function IncidentFormLifecycleElementPayloadV3FromJSON(json) {
66
+ return IncidentFormLifecycleElementPayloadV3FromJSONTyped(json, false);
67
+ }
68
+ function IncidentFormLifecycleElementPayloadV3FromJSONTyped(json, ignoreDiscriminator) {
69
+ if (json == null) {
70
+ return json;
71
+ }
72
+ return {
73
+ 'can_select_no_value': json['can_select_no_value'] == null ? undefined : json['can_select_no_value'],
74
+ 'config': json['config'] == null ? undefined : (0, IncidentFormLifecycleElementConfigV3_js_1.IncidentFormLifecycleElementConfigV3FromJSON)(json['config']),
75
+ 'custom_field_id': json['custom_field_id'] == null ? undefined : json['custom_field_id'],
76
+ 'default_value': json['default_value'] == null ? undefined : (0, EngineParamBindingPayloadV3_js_1.EngineParamBindingPayloadV3FromJSON)(json['default_value']),
77
+ 'description': json['description'] == null ? undefined : json['description'],
78
+ 'element_type': json['element_type'],
79
+ 'id': json['id'] == null ? undefined : json['id'],
80
+ 'incident_role_id': json['incident_role_id'] == null ? undefined : json['incident_role_id'],
81
+ 'incident_timestamp_id': json['incident_timestamp_id'] == null ? undefined : json['incident_timestamp_id'],
82
+ 'placeholder': json['placeholder'] == null ? undefined : json['placeholder'],
83
+ 'required_if': json['required_if'] == null ? undefined : json['required_if'],
84
+ 'required_if_condition_groups': json['required_if_condition_groups'] == null ? undefined : (json['required_if_condition_groups'].map(ConditionGroupPayloadV3_js_1.ConditionGroupPayloadV3FromJSON)),
85
+ 'show_if_condition_groups': json['show_if_condition_groups'] == null ? undefined : (json['show_if_condition_groups'].map(ConditionGroupPayloadV3_js_1.ConditionGroupPayloadV3FromJSON)),
86
+ };
87
+ }
88
+ function IncidentFormLifecycleElementPayloadV3ToJSON(json) {
89
+ return IncidentFormLifecycleElementPayloadV3ToJSONTyped(json, false);
90
+ }
91
+ function IncidentFormLifecycleElementPayloadV3ToJSONTyped(value, ignoreDiscriminator = false) {
92
+ if (value == null) {
93
+ return value;
94
+ }
95
+ return {
96
+ 'can_select_no_value': value['can_select_no_value'],
97
+ 'config': (0, IncidentFormLifecycleElementConfigV3_js_1.IncidentFormLifecycleElementConfigV3ToJSON)(value['config']),
98
+ 'custom_field_id': value['custom_field_id'],
99
+ 'default_value': (0, EngineParamBindingPayloadV3_js_1.EngineParamBindingPayloadV3ToJSON)(value['default_value']),
100
+ 'description': value['description'],
101
+ 'element_type': value['element_type'],
102
+ 'id': value['id'],
103
+ 'incident_role_id': value['incident_role_id'],
104
+ 'incident_timestamp_id': value['incident_timestamp_id'],
105
+ 'placeholder': value['placeholder'],
106
+ 'required_if': value['required_if'],
107
+ 'required_if_condition_groups': value['required_if_condition_groups'] == null ? undefined : (value['required_if_condition_groups'].map(ConditionGroupPayloadV3_js_1.ConditionGroupPayloadV3ToJSON)),
108
+ 'show_if_condition_groups': value['show_if_condition_groups'] == null ? undefined : (value['show_if_condition_groups'].map(ConditionGroupPayloadV3_js_1.ConditionGroupPayloadV3ToJSON)),
109
+ };
110
+ }