@incident-io/sdk 2.9.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.
- package/dist/cjs/apis/IncidentFormsV3Api.d.ts +131 -0
- package/dist/cjs/apis/IncidentFormsV3Api.js +279 -0
- package/dist/cjs/apis/index.d.ts +1 -0
- package/dist/cjs/apis/index.js +1 -0
- package/dist/cjs/models/IncidentFormLifecycleElementConfigV3.d.ts +30 -0
- package/dist/cjs/models/IncidentFormLifecycleElementConfigV3.js +48 -0
- package/dist/cjs/models/IncidentFormLifecycleElementPayloadV3.d.ts +115 -0
- package/dist/cjs/models/IncidentFormLifecycleElementPayloadV3.js +110 -0
- package/dist/cjs/models/IncidentFormLifecycleElementV3.d.ts +115 -0
- package/dist/cjs/models/IncidentFormLifecycleElementV3.js +110 -0
- package/dist/cjs/models/IncidentFormV3.d.ts +68 -0
- package/dist/cjs/models/IncidentFormV3.js +85 -0
- package/dist/cjs/models/IncidentFormsCreatePayloadV3.d.ts +56 -0
- package/dist/cjs/models/IncidentFormsCreatePayloadV3.js +72 -0
- package/dist/cjs/models/IncidentFormsCreateResultV3.d.ts +31 -0
- package/dist/cjs/models/IncidentFormsCreateResultV3.js +51 -0
- package/dist/cjs/models/IncidentFormsListResultV3.d.ts +36 -0
- package/dist/cjs/models/IncidentFormsListResultV3.js +56 -0
- package/dist/cjs/models/IncidentFormsShowResultV3.d.ts +31 -0
- package/dist/cjs/models/IncidentFormsShowResultV3.js +51 -0
- package/dist/cjs/models/IncidentFormsUpdatePayloadV3.d.ts +56 -0
- package/dist/cjs/models/IncidentFormsUpdatePayloadV3.js +72 -0
- package/dist/cjs/models/IncidentFormsUpdateResultV3.d.ts +31 -0
- package/dist/cjs/models/IncidentFormsUpdateResultV3.js +51 -0
- package/dist/cjs/models/index.d.ts +10 -0
- package/dist/cjs/models/index.js +10 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/apis/IncidentFormsV3Api.d.ts +131 -0
- package/dist/esm/apis/IncidentFormsV3Api.js +242 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/IncidentFormLifecycleElementConfigV3.d.ts +30 -0
- package/dist/esm/models/IncidentFormLifecycleElementConfigV3.js +41 -0
- package/dist/esm/models/IncidentFormLifecycleElementPayloadV3.d.ts +115 -0
- package/dist/esm/models/IncidentFormLifecycleElementPayloadV3.js +102 -0
- package/dist/esm/models/IncidentFormLifecycleElementV3.d.ts +115 -0
- package/dist/esm/models/IncidentFormLifecycleElementV3.js +102 -0
- package/dist/esm/models/IncidentFormV3.d.ts +68 -0
- package/dist/esm/models/IncidentFormV3.js +77 -0
- package/dist/esm/models/IncidentFormsCreatePayloadV3.d.ts +56 -0
- package/dist/esm/models/IncidentFormsCreatePayloadV3.js +64 -0
- package/dist/esm/models/IncidentFormsCreateResultV3.d.ts +31 -0
- package/dist/esm/models/IncidentFormsCreateResultV3.js +44 -0
- package/dist/esm/models/IncidentFormsListResultV3.d.ts +36 -0
- package/dist/esm/models/IncidentFormsListResultV3.js +49 -0
- package/dist/esm/models/IncidentFormsShowResultV3.d.ts +31 -0
- package/dist/esm/models/IncidentFormsShowResultV3.js +44 -0
- package/dist/esm/models/IncidentFormsUpdatePayloadV3.d.ts +56 -0
- package/dist/esm/models/IncidentFormsUpdatePayloadV3.js +64 -0
- package/dist/esm/models/IncidentFormsUpdateResultV3.d.ts +31 -0
- package/dist/esm/models/IncidentFormsUpdateResultV3.js +44 -0
- package/dist/esm/models/index.d.ts +10 -0
- package/dist/esm/models/index.js +10 -0
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,242 @@
|
|
|
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 * as runtime from '../runtime.js';
|
|
15
|
+
import { IncidentFormsCreatePayloadV3ToJSON, } from '../models/IncidentFormsCreatePayloadV3.js';
|
|
16
|
+
import { IncidentFormsCreateResultV3FromJSON, } from '../models/IncidentFormsCreateResultV3.js';
|
|
17
|
+
import { IncidentFormsListResultV3FromJSON, } from '../models/IncidentFormsListResultV3.js';
|
|
18
|
+
import { IncidentFormsShowResultV3FromJSON, } from '../models/IncidentFormsShowResultV3.js';
|
|
19
|
+
import { IncidentFormsUpdatePayloadV3ToJSON, } from '../models/IncidentFormsUpdatePayloadV3.js';
|
|
20
|
+
import { IncidentFormsUpdateResultV3FromJSON, } from '../models/IncidentFormsUpdateResultV3.js';
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
export class IncidentFormsV3Api extends runtime.BaseAPI {
|
|
25
|
+
/**
|
|
26
|
+
* Creates request options for incidentFormsV3Create without sending the request
|
|
27
|
+
*/
|
|
28
|
+
async incidentFormsV3CreateRequestOpts(requestParameters) {
|
|
29
|
+
if (requestParameters['body'] == null) {
|
|
30
|
+
throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling incidentFormsV3Create().');
|
|
31
|
+
}
|
|
32
|
+
const queryParameters = {};
|
|
33
|
+
const headerParameters = {};
|
|
34
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
35
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
36
|
+
const token = this.configuration.accessToken;
|
|
37
|
+
const tokenString = await token("BearerAuth", []);
|
|
38
|
+
if (tokenString) {
|
|
39
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
let urlPath = `/v3/incident_forms`;
|
|
43
|
+
return {
|
|
44
|
+
path: urlPath,
|
|
45
|
+
method: 'POST',
|
|
46
|
+
headers: headerParameters,
|
|
47
|
+
query: queryParameters,
|
|
48
|
+
body: IncidentFormsCreatePayloadV3ToJSON(requestParameters['body']),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Create an incident form for an incident type. A form that already exists for that form type and incident type is rejected.
|
|
53
|
+
* Create Incident Forms V3
|
|
54
|
+
*/
|
|
55
|
+
async incidentFormsV3CreateRaw(requestParameters, initOverrides) {
|
|
56
|
+
const requestOptions = await this.incidentFormsV3CreateRequestOpts(requestParameters);
|
|
57
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
58
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => IncidentFormsCreateResultV3FromJSON(jsonValue));
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Create an incident form for an incident type. A form that already exists for that form type and incident type is rejected.
|
|
62
|
+
* Create Incident Forms V3
|
|
63
|
+
*/
|
|
64
|
+
async incidentFormsV3Create(requestParameters, initOverrides) {
|
|
65
|
+
const response = await this.incidentFormsV3CreateRaw(requestParameters, initOverrides);
|
|
66
|
+
return await response.value();
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Creates request options for incidentFormsV3Delete without sending the request
|
|
70
|
+
*/
|
|
71
|
+
async incidentFormsV3DeleteRequestOpts(requestParameters) {
|
|
72
|
+
if (requestParameters['id'] == null) {
|
|
73
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling incidentFormsV3Delete().');
|
|
74
|
+
}
|
|
75
|
+
const queryParameters = {};
|
|
76
|
+
const headerParameters = {};
|
|
77
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
78
|
+
const token = this.configuration.accessToken;
|
|
79
|
+
const tokenString = await token("BearerAuth", []);
|
|
80
|
+
if (tokenString) {
|
|
81
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
let urlPath = `/v3/incident_forms/{id}`;
|
|
85
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
86
|
+
return {
|
|
87
|
+
path: urlPath,
|
|
88
|
+
method: 'DELETE',
|
|
89
|
+
headers: headerParameters,
|
|
90
|
+
query: queryParameters,
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Archive an incident form. The organisation\'s default form of a type cannot be archived.
|
|
95
|
+
* Delete Incident Forms V3
|
|
96
|
+
*/
|
|
97
|
+
async incidentFormsV3DeleteRaw(requestParameters, initOverrides) {
|
|
98
|
+
const requestOptions = await this.incidentFormsV3DeleteRequestOpts(requestParameters);
|
|
99
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
100
|
+
return new runtime.VoidApiResponse(response);
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Archive an incident form. The organisation\'s default form of a type cannot be archived.
|
|
104
|
+
* Delete Incident Forms V3
|
|
105
|
+
*/
|
|
106
|
+
async incidentFormsV3Delete(requestParameters, initOverrides) {
|
|
107
|
+
await this.incidentFormsV3DeleteRaw(requestParameters, initOverrides);
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Creates request options for incidentFormsV3List without sending the request
|
|
111
|
+
*/
|
|
112
|
+
async incidentFormsV3ListRequestOpts(requestParameters) {
|
|
113
|
+
const queryParameters = {};
|
|
114
|
+
if (requestParameters['page_size'] != null) {
|
|
115
|
+
queryParameters['page_size'] = requestParameters['page_size'];
|
|
116
|
+
}
|
|
117
|
+
if (requestParameters['after'] != null) {
|
|
118
|
+
queryParameters['after'] = requestParameters['after'];
|
|
119
|
+
}
|
|
120
|
+
const headerParameters = {};
|
|
121
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
122
|
+
const token = this.configuration.accessToken;
|
|
123
|
+
const tokenString = await token("BearerAuth", []);
|
|
124
|
+
if (tokenString) {
|
|
125
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
let urlPath = `/v3/incident_forms`;
|
|
129
|
+
return {
|
|
130
|
+
path: urlPath,
|
|
131
|
+
method: 'GET',
|
|
132
|
+
headers: headerParameters,
|
|
133
|
+
query: queryParameters,
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* List incident forms for your account, including their elements and expressions.
|
|
138
|
+
* List Incident Forms V3
|
|
139
|
+
*/
|
|
140
|
+
async incidentFormsV3ListRaw(requestParameters, initOverrides) {
|
|
141
|
+
const requestOptions = await this.incidentFormsV3ListRequestOpts(requestParameters);
|
|
142
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
143
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => IncidentFormsListResultV3FromJSON(jsonValue));
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* List incident forms for your account, including their elements and expressions.
|
|
147
|
+
* List Incident Forms V3
|
|
148
|
+
*/
|
|
149
|
+
async incidentFormsV3List(requestParameters = {}, initOverrides) {
|
|
150
|
+
const response = await this.incidentFormsV3ListRaw(requestParameters, initOverrides);
|
|
151
|
+
return await response.value();
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Creates request options for incidentFormsV3Show without sending the request
|
|
155
|
+
*/
|
|
156
|
+
async incidentFormsV3ShowRequestOpts(requestParameters) {
|
|
157
|
+
if (requestParameters['id'] == null) {
|
|
158
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling incidentFormsV3Show().');
|
|
159
|
+
}
|
|
160
|
+
const queryParameters = {};
|
|
161
|
+
const headerParameters = {};
|
|
162
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
163
|
+
const token = this.configuration.accessToken;
|
|
164
|
+
const tokenString = await token("BearerAuth", []);
|
|
165
|
+
if (tokenString) {
|
|
166
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
let urlPath = `/v3/incident_forms/{id}`;
|
|
170
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
171
|
+
return {
|
|
172
|
+
path: urlPath,
|
|
173
|
+
method: 'GET',
|
|
174
|
+
headers: headerParameters,
|
|
175
|
+
query: queryParameters,
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Get a single incident form, including its elements and expressions.
|
|
180
|
+
* Show Incident Forms V3
|
|
181
|
+
*/
|
|
182
|
+
async incidentFormsV3ShowRaw(requestParameters, initOverrides) {
|
|
183
|
+
const requestOptions = await this.incidentFormsV3ShowRequestOpts(requestParameters);
|
|
184
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
185
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => IncidentFormsShowResultV3FromJSON(jsonValue));
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Get a single incident form, including its elements and expressions.
|
|
189
|
+
* Show Incident Forms V3
|
|
190
|
+
*/
|
|
191
|
+
async incidentFormsV3Show(requestParameters, initOverrides) {
|
|
192
|
+
const response = await this.incidentFormsV3ShowRaw(requestParameters, initOverrides);
|
|
193
|
+
return await response.value();
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Creates request options for incidentFormsV3Update without sending the request
|
|
197
|
+
*/
|
|
198
|
+
async incidentFormsV3UpdateRequestOpts(requestParameters) {
|
|
199
|
+
if (requestParameters['id'] == null) {
|
|
200
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling incidentFormsV3Update().');
|
|
201
|
+
}
|
|
202
|
+
if (requestParameters['body'] == null) {
|
|
203
|
+
throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling incidentFormsV3Update().');
|
|
204
|
+
}
|
|
205
|
+
const queryParameters = {};
|
|
206
|
+
const headerParameters = {};
|
|
207
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
208
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
209
|
+
const token = this.configuration.accessToken;
|
|
210
|
+
const tokenString = await token("BearerAuth", []);
|
|
211
|
+
if (tokenString) {
|
|
212
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
let urlPath = `/v3/incident_forms/{id}`;
|
|
216
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
217
|
+
return {
|
|
218
|
+
path: urlPath,
|
|
219
|
+
method: 'PUT',
|
|
220
|
+
headers: headerParameters,
|
|
221
|
+
query: queryParameters,
|
|
222
|
+
body: IncidentFormsUpdatePayloadV3ToJSON(requestParameters['body']),
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* Replace an incident form, including its elements and expressions.
|
|
227
|
+
* Update Incident Forms V3
|
|
228
|
+
*/
|
|
229
|
+
async incidentFormsV3UpdateRaw(requestParameters, initOverrides) {
|
|
230
|
+
const requestOptions = await this.incidentFormsV3UpdateRequestOpts(requestParameters);
|
|
231
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
232
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => IncidentFormsUpdateResultV3FromJSON(jsonValue));
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* Replace an incident form, including its elements and expressions.
|
|
236
|
+
* Update Incident Forms V3
|
|
237
|
+
*/
|
|
238
|
+
async incidentFormsV3Update(requestParameters, initOverrides) {
|
|
239
|
+
const response = await this.incidentFormsV3UpdateRaw(requestParameters, initOverrides);
|
|
240
|
+
return await response.value();
|
|
241
|
+
}
|
|
242
|
+
}
|
package/dist/esm/apis/index.d.ts
CHANGED
|
@@ -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';
|
package/dist/esm/apis/index.js
CHANGED
|
@@ -29,6 +29,7 @@ export * from './HeartbeatV2Api.js';
|
|
|
29
29
|
export * from './IPAllowlistsV1Api.js';
|
|
30
30
|
export * from './IncidentActivityLogEntriesV2Api.js';
|
|
31
31
|
export * from './IncidentAttachmentsV1Api.js';
|
|
32
|
+
export * from './IncidentFormsV3Api.js';
|
|
32
33
|
export * from './IncidentMembershipsV1Api.js';
|
|
33
34
|
export * from './IncidentParticipantWorkloadsV2Api.js';
|
|
34
35
|
export * from './IncidentParticipantsV2Api.js';
|
|
@@ -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,41 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* incident.io
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the IncidentFormLifecycleElementConfigV3 interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfIncidentFormLifecycleElementConfigV3(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function IncidentFormLifecycleElementConfigV3FromJSON(json) {
|
|
21
|
+
return IncidentFormLifecycleElementConfigV3FromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function IncidentFormLifecycleElementConfigV3FromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'require_comment': json['require_comment'] == null ? undefined : json['require_comment'],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export function IncidentFormLifecycleElementConfigV3ToJSON(json) {
|
|
32
|
+
return IncidentFormLifecycleElementConfigV3ToJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function IncidentFormLifecycleElementConfigV3ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
35
|
+
if (value == null) {
|
|
36
|
+
return value;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'require_comment': value['require_comment'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
@@ -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,102 @@
|
|
|
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 { IncidentFormLifecycleElementConfigV3FromJSON, IncidentFormLifecycleElementConfigV3ToJSON, } from './IncidentFormLifecycleElementConfigV3.js';
|
|
15
|
+
import { EngineParamBindingPayloadV3FromJSON, EngineParamBindingPayloadV3ToJSON, } from './EngineParamBindingPayloadV3.js';
|
|
16
|
+
import { ConditionGroupPayloadV3FromJSON, ConditionGroupPayloadV3ToJSON, } from './ConditionGroupPayloadV3.js';
|
|
17
|
+
/**
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const IncidentFormLifecycleElementPayloadV3ElementTypeEnum = {
|
|
21
|
+
Name: 'name',
|
|
22
|
+
Status: 'status',
|
|
23
|
+
Severity: 'severity',
|
|
24
|
+
IncidentRole: 'incident_role',
|
|
25
|
+
IncidentType: 'incident_type',
|
|
26
|
+
Summary: 'summary',
|
|
27
|
+
CustomField: 'custom_field',
|
|
28
|
+
Timestamp: 'timestamp',
|
|
29
|
+
UpdateMessage: 'update_message',
|
|
30
|
+
NextUpdateIn: 'next_update_in',
|
|
31
|
+
Triage: 'triage',
|
|
32
|
+
Visibility: 'visibility',
|
|
33
|
+
Divider: 'divider',
|
|
34
|
+
Text: 'text',
|
|
35
|
+
IncidentAttachments: 'incident_attachments',
|
|
36
|
+
SlackChannel: 'slack_channel',
|
|
37
|
+
AnnounceRetroIncident: 'announce_retro_incident',
|
|
38
|
+
EnterPostIncidentFlow: 'enter_post_incident_flow',
|
|
39
|
+
InvestigationFeedback: 'investigation_feedback',
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* @export
|
|
43
|
+
*/
|
|
44
|
+
export const IncidentFormLifecycleElementPayloadV3RequiredIfEnum = {
|
|
45
|
+
CheckEngineConfig: 'check_engine_config',
|
|
46
|
+
AlwaysRequire: 'always_require',
|
|
47
|
+
NeverRequire: 'never_require',
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the IncidentFormLifecycleElementPayloadV3 interface.
|
|
51
|
+
*/
|
|
52
|
+
export function instanceOfIncidentFormLifecycleElementPayloadV3(value) {
|
|
53
|
+
if (!('element_type' in value) || value['element_type'] === undefined)
|
|
54
|
+
return false;
|
|
55
|
+
return true;
|
|
56
|
+
}
|
|
57
|
+
export function IncidentFormLifecycleElementPayloadV3FromJSON(json) {
|
|
58
|
+
return IncidentFormLifecycleElementPayloadV3FromJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
export function IncidentFormLifecycleElementPayloadV3FromJSONTyped(json, ignoreDiscriminator) {
|
|
61
|
+
if (json == null) {
|
|
62
|
+
return json;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
'can_select_no_value': json['can_select_no_value'] == null ? undefined : json['can_select_no_value'],
|
|
66
|
+
'config': json['config'] == null ? undefined : IncidentFormLifecycleElementConfigV3FromJSON(json['config']),
|
|
67
|
+
'custom_field_id': json['custom_field_id'] == null ? undefined : json['custom_field_id'],
|
|
68
|
+
'default_value': json['default_value'] == null ? undefined : EngineParamBindingPayloadV3FromJSON(json['default_value']),
|
|
69
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
70
|
+
'element_type': json['element_type'],
|
|
71
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
72
|
+
'incident_role_id': json['incident_role_id'] == null ? undefined : json['incident_role_id'],
|
|
73
|
+
'incident_timestamp_id': json['incident_timestamp_id'] == null ? undefined : json['incident_timestamp_id'],
|
|
74
|
+
'placeholder': json['placeholder'] == null ? undefined : json['placeholder'],
|
|
75
|
+
'required_if': json['required_if'] == null ? undefined : json['required_if'],
|
|
76
|
+
'required_if_condition_groups': json['required_if_condition_groups'] == null ? undefined : (json['required_if_condition_groups'].map(ConditionGroupPayloadV3FromJSON)),
|
|
77
|
+
'show_if_condition_groups': json['show_if_condition_groups'] == null ? undefined : (json['show_if_condition_groups'].map(ConditionGroupPayloadV3FromJSON)),
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
export function IncidentFormLifecycleElementPayloadV3ToJSON(json) {
|
|
81
|
+
return IncidentFormLifecycleElementPayloadV3ToJSONTyped(json, false);
|
|
82
|
+
}
|
|
83
|
+
export function IncidentFormLifecycleElementPayloadV3ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
84
|
+
if (value == null) {
|
|
85
|
+
return value;
|
|
86
|
+
}
|
|
87
|
+
return {
|
|
88
|
+
'can_select_no_value': value['can_select_no_value'],
|
|
89
|
+
'config': IncidentFormLifecycleElementConfigV3ToJSON(value['config']),
|
|
90
|
+
'custom_field_id': value['custom_field_id'],
|
|
91
|
+
'default_value': EngineParamBindingPayloadV3ToJSON(value['default_value']),
|
|
92
|
+
'description': value['description'],
|
|
93
|
+
'element_type': value['element_type'],
|
|
94
|
+
'id': value['id'],
|
|
95
|
+
'incident_role_id': value['incident_role_id'],
|
|
96
|
+
'incident_timestamp_id': value['incident_timestamp_id'],
|
|
97
|
+
'placeholder': value['placeholder'],
|
|
98
|
+
'required_if': value['required_if'],
|
|
99
|
+
'required_if_condition_groups': value['required_if_condition_groups'] == null ? undefined : (value['required_if_condition_groups'].map(ConditionGroupPayloadV3ToJSON)),
|
|
100
|
+
'show_if_condition_groups': value['show_if_condition_groups'] == null ? undefined : (value['show_if_condition_groups'].map(ConditionGroupPayloadV3ToJSON)),
|
|
101
|
+
};
|
|
102
|
+
}
|
|
@@ -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 { ConditionGroupV3 } from './ConditionGroupV3.js';
|
|
14
|
+
import type { EngineParamBindingV3 } from './EngineParamBindingV3.js';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface IncidentFormLifecycleElementV3
|
|
19
|
+
*/
|
|
20
|
+
export interface IncidentFormLifecycleElementV3 {
|
|
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?: EngineParamBindingV3;
|
|
37
|
+
/**
|
|
38
|
+
* Description shown beside this element, as markdown
|
|
39
|
+
*/
|
|
40
|
+
description?: string;
|
|
41
|
+
/**
|
|
42
|
+
* What this element captures
|
|
43
|
+
*/
|
|
44
|
+
element_type: IncidentFormLifecycleElementV3ElementTypeEnum;
|
|
45
|
+
/**
|
|
46
|
+
* Unique identifier for this element. divider and text elements are matched on this, because they have no natural key.
|
|
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?: IncidentFormLifecycleElementV3RequiredIfEnum;
|
|
65
|
+
/**
|
|
66
|
+
* Condition groups that make this element required. Used when required_if is check_engine_config.
|
|
67
|
+
*/
|
|
68
|
+
required_if_condition_groups?: Array<ConditionGroupV3>;
|
|
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<ConditionGroupV3>;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* @export
|
|
76
|
+
*/
|
|
77
|
+
export declare const IncidentFormLifecycleElementV3ElementTypeEnum: {
|
|
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 IncidentFormLifecycleElementV3ElementTypeEnum = typeof IncidentFormLifecycleElementV3ElementTypeEnum[keyof typeof IncidentFormLifecycleElementV3ElementTypeEnum];
|
|
99
|
+
/**
|
|
100
|
+
* @export
|
|
101
|
+
*/
|
|
102
|
+
export declare const IncidentFormLifecycleElementV3RequiredIfEnum: {
|
|
103
|
+
readonly CheckEngineConfig: "check_engine_config";
|
|
104
|
+
readonly AlwaysRequire: "always_require";
|
|
105
|
+
readonly NeverRequire: "never_require";
|
|
106
|
+
};
|
|
107
|
+
export type IncidentFormLifecycleElementV3RequiredIfEnum = typeof IncidentFormLifecycleElementV3RequiredIfEnum[keyof typeof IncidentFormLifecycleElementV3RequiredIfEnum];
|
|
108
|
+
/**
|
|
109
|
+
* Check if a given object implements the IncidentFormLifecycleElementV3 interface.
|
|
110
|
+
*/
|
|
111
|
+
export declare function instanceOfIncidentFormLifecycleElementV3(value: object): value is IncidentFormLifecycleElementV3;
|
|
112
|
+
export declare function IncidentFormLifecycleElementV3FromJSON(json: any): IncidentFormLifecycleElementV3;
|
|
113
|
+
export declare function IncidentFormLifecycleElementV3FromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentFormLifecycleElementV3;
|
|
114
|
+
export declare function IncidentFormLifecycleElementV3ToJSON(json: any): IncidentFormLifecycleElementV3;
|
|
115
|
+
export declare function IncidentFormLifecycleElementV3ToJSONTyped(value?: IncidentFormLifecycleElementV3 | null, ignoreDiscriminator?: boolean): any;
|