@incident-io/sdk 2.9.0 → 2.11.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/WorkflowSlimV2.d.ts +12 -0
- package/dist/cjs/models/WorkflowSlimV2.js +12 -1
- package/dist/cjs/models/WorkflowV2.d.ts +13 -1
- package/dist/cjs/models/WorkflowV2.js +12 -1
- package/dist/cjs/models/WorkflowsCreateWorkflowPayloadV2.d.ts +13 -1
- package/dist/cjs/models/WorkflowsCreateWorkflowPayloadV2.js +10 -1
- package/dist/cjs/models/WorkflowsUpdateWorkflowPayloadV2.d.ts +13 -1
- package/dist/cjs/models/WorkflowsUpdateWorkflowPayloadV2.js +10 -1
- 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/WorkflowSlimV2.d.ts +12 -0
- package/dist/esm/models/WorkflowSlimV2.js +11 -0
- package/dist/esm/models/WorkflowV2.d.ts +13 -1
- package/dist/esm/models/WorkflowV2.js +11 -0
- package/dist/esm/models/WorkflowsCreateWorkflowPayloadV2.d.ts +13 -1
- package/dist/esm/models/WorkflowsCreateWorkflowPayloadV2.js +9 -0
- package/dist/esm/models/WorkflowsUpdateWorkflowPayloadV2.d.ts +13 -1
- package/dist/esm/models/WorkflowsUpdateWorkflowPayloadV2.js +9 -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,64 @@
|
|
|
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 { ExpressionPayloadV3FromJSON, ExpressionPayloadV3ToJSON, } from './ExpressionPayloadV3.js';
|
|
15
|
+
import { IncidentFormLifecycleElementPayloadV3FromJSON, IncidentFormLifecycleElementPayloadV3ToJSON, } from './IncidentFormLifecycleElementPayloadV3.js';
|
|
16
|
+
/**
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export const IncidentFormsCreatePayloadV3FormTypeEnum = {
|
|
20
|
+
Declare: 'declare',
|
|
21
|
+
Accept: 'accept',
|
|
22
|
+
Update: 'update',
|
|
23
|
+
Resolve: 'resolve',
|
|
24
|
+
Retrospective: 'retrospective',
|
|
25
|
+
CustomFields: 'custom-fields',
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Check if a given object implements the IncidentFormsCreatePayloadV3 interface.
|
|
29
|
+
*/
|
|
30
|
+
export function instanceOfIncidentFormsCreatePayloadV3(value) {
|
|
31
|
+
if (!('expressions' in value) || value['expressions'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('form_type' in value) || value['form_type'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
export function IncidentFormsCreatePayloadV3FromJSON(json) {
|
|
38
|
+
return IncidentFormsCreatePayloadV3FromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function IncidentFormsCreatePayloadV3FromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'expressions': (json['expressions'].map(ExpressionPayloadV3FromJSON)),
|
|
46
|
+
'form_type': json['form_type'],
|
|
47
|
+
'incident_type_id': json['incident_type_id'] == null ? undefined : json['incident_type_id'],
|
|
48
|
+
'lifecycle_elements': json['lifecycle_elements'] == null ? undefined : (json['lifecycle_elements'].map(IncidentFormLifecycleElementPayloadV3FromJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
export function IncidentFormsCreatePayloadV3ToJSON(json) {
|
|
52
|
+
return IncidentFormsCreatePayloadV3ToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
export function IncidentFormsCreatePayloadV3ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'expressions': (value['expressions'].map(ExpressionPayloadV3ToJSON)),
|
|
60
|
+
'form_type': value['form_type'],
|
|
61
|
+
'incident_type_id': value['incident_type_id'],
|
|
62
|
+
'lifecycle_elements': value['lifecycle_elements'] == null ? undefined : (value['lifecycle_elements'].map(IncidentFormLifecycleElementPayloadV3ToJSON)),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -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 { IncidentFormV3 } from './IncidentFormV3.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface IncidentFormsCreateResultV3
|
|
17
|
+
*/
|
|
18
|
+
export interface IncidentFormsCreateResultV3 {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
incident_form: IncidentFormV3;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the IncidentFormsCreateResultV3 interface.
|
|
26
|
+
*/
|
|
27
|
+
export declare function instanceOfIncidentFormsCreateResultV3(value: object): value is IncidentFormsCreateResultV3;
|
|
28
|
+
export declare function IncidentFormsCreateResultV3FromJSON(json: any): IncidentFormsCreateResultV3;
|
|
29
|
+
export declare function IncidentFormsCreateResultV3FromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentFormsCreateResultV3;
|
|
30
|
+
export declare function IncidentFormsCreateResultV3ToJSON(json: any): IncidentFormsCreateResultV3;
|
|
31
|
+
export declare function IncidentFormsCreateResultV3ToJSONTyped(value?: IncidentFormsCreateResultV3 | 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 { IncidentFormV3FromJSON, IncidentFormV3ToJSON, } from './IncidentFormV3.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the IncidentFormsCreateResultV3 interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfIncidentFormsCreateResultV3(value) {
|
|
19
|
+
if (!('incident_form' in value) || value['incident_form'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
export function IncidentFormsCreateResultV3FromJSON(json) {
|
|
24
|
+
return IncidentFormsCreateResultV3FromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function IncidentFormsCreateResultV3FromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json == null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'incident_form': IncidentFormV3FromJSON(json['incident_form']),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function IncidentFormsCreateResultV3ToJSON(json) {
|
|
35
|
+
return IncidentFormsCreateResultV3ToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function IncidentFormsCreateResultV3ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'incident_form': IncidentFormV3ToJSON(value['incident_form']),
|
|
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 { IncidentFormV3 } from './IncidentFormV3.js';
|
|
13
|
+
import type { PaginationMetaResultV3 } from './PaginationMetaResultV3.js';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface IncidentFormsListResultV3
|
|
18
|
+
*/
|
|
19
|
+
export interface IncidentFormsListResultV3 {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
incident_forms: Array<IncidentFormV3>;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
pagination_meta: PaginationMetaResultV3;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the IncidentFormsListResultV3 interface.
|
|
31
|
+
*/
|
|
32
|
+
export declare function instanceOfIncidentFormsListResultV3(value: object): value is IncidentFormsListResultV3;
|
|
33
|
+
export declare function IncidentFormsListResultV3FromJSON(json: any): IncidentFormsListResultV3;
|
|
34
|
+
export declare function IncidentFormsListResultV3FromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentFormsListResultV3;
|
|
35
|
+
export declare function IncidentFormsListResultV3ToJSON(json: any): IncidentFormsListResultV3;
|
|
36
|
+
export declare function IncidentFormsListResultV3ToJSONTyped(value?: IncidentFormsListResultV3 | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
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 { IncidentFormV3FromJSON, IncidentFormV3ToJSON, } from './IncidentFormV3.js';
|
|
15
|
+
import { PaginationMetaResultV3FromJSON, PaginationMetaResultV3ToJSON, } from './PaginationMetaResultV3.js';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the IncidentFormsListResultV3 interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfIncidentFormsListResultV3(value) {
|
|
20
|
+
if (!('incident_forms' in value) || value['incident_forms'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('pagination_meta' in value) || value['pagination_meta'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function IncidentFormsListResultV3FromJSON(json) {
|
|
27
|
+
return IncidentFormsListResultV3FromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function IncidentFormsListResultV3FromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'incident_forms': (json['incident_forms'].map(IncidentFormV3FromJSON)),
|
|
35
|
+
'pagination_meta': PaginationMetaResultV3FromJSON(json['pagination_meta']),
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export function IncidentFormsListResultV3ToJSON(json) {
|
|
39
|
+
return IncidentFormsListResultV3ToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
export function IncidentFormsListResultV3ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'incident_forms': (value['incident_forms'].map(IncidentFormV3ToJSON)),
|
|
47
|
+
'pagination_meta': PaginationMetaResultV3ToJSON(value['pagination_meta']),
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -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 { IncidentFormV3 } from './IncidentFormV3.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface IncidentFormsShowResultV3
|
|
17
|
+
*/
|
|
18
|
+
export interface IncidentFormsShowResultV3 {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
incident_form: IncidentFormV3;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the IncidentFormsShowResultV3 interface.
|
|
26
|
+
*/
|
|
27
|
+
export declare function instanceOfIncidentFormsShowResultV3(value: object): value is IncidentFormsShowResultV3;
|
|
28
|
+
export declare function IncidentFormsShowResultV3FromJSON(json: any): IncidentFormsShowResultV3;
|
|
29
|
+
export declare function IncidentFormsShowResultV3FromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentFormsShowResultV3;
|
|
30
|
+
export declare function IncidentFormsShowResultV3ToJSON(json: any): IncidentFormsShowResultV3;
|
|
31
|
+
export declare function IncidentFormsShowResultV3ToJSONTyped(value?: IncidentFormsShowResultV3 | 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 { IncidentFormV3FromJSON, IncidentFormV3ToJSON, } from './IncidentFormV3.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the IncidentFormsShowResultV3 interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfIncidentFormsShowResultV3(value) {
|
|
19
|
+
if (!('incident_form' in value) || value['incident_form'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
export function IncidentFormsShowResultV3FromJSON(json) {
|
|
24
|
+
return IncidentFormsShowResultV3FromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function IncidentFormsShowResultV3FromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json == null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'incident_form': IncidentFormV3FromJSON(json['incident_form']),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function IncidentFormsShowResultV3ToJSON(json) {
|
|
35
|
+
return IncidentFormsShowResultV3ToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function IncidentFormsShowResultV3ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'incident_form': IncidentFormV3ToJSON(value['incident_form']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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 { ExpressionPayloadV3 } from './ExpressionPayloadV3.js';
|
|
13
|
+
import type { IncidentFormLifecycleElementPayloadV3 } from './IncidentFormLifecycleElementPayloadV3.js';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface IncidentFormsUpdatePayloadV3
|
|
18
|
+
*/
|
|
19
|
+
export interface IncidentFormsUpdatePayloadV3 {
|
|
20
|
+
/**
|
|
21
|
+
* Expressions available to every element's conditions and defaults. Referenced by reference, not by ID.
|
|
22
|
+
*/
|
|
23
|
+
expressions: Array<ExpressionPayloadV3>;
|
|
24
|
+
/**
|
|
25
|
+
* Which form this is. Escalate forms are not part of this API.
|
|
26
|
+
*/
|
|
27
|
+
form_type: IncidentFormsUpdatePayloadV3FormTypeEnum;
|
|
28
|
+
/**
|
|
29
|
+
* The incident type this form belongs to. Leave unset for the organisation's default form of this type.
|
|
30
|
+
*/
|
|
31
|
+
incident_type_id?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Elements on this form, in display order. List position is the order: there is no separate rank.
|
|
34
|
+
*/
|
|
35
|
+
lifecycle_elements?: Array<IncidentFormLifecycleElementPayloadV3>;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const IncidentFormsUpdatePayloadV3FormTypeEnum: {
|
|
41
|
+
readonly Declare: "declare";
|
|
42
|
+
readonly Accept: "accept";
|
|
43
|
+
readonly Update: "update";
|
|
44
|
+
readonly Resolve: "resolve";
|
|
45
|
+
readonly Retrospective: "retrospective";
|
|
46
|
+
readonly CustomFields: "custom-fields";
|
|
47
|
+
};
|
|
48
|
+
export type IncidentFormsUpdatePayloadV3FormTypeEnum = typeof IncidentFormsUpdatePayloadV3FormTypeEnum[keyof typeof IncidentFormsUpdatePayloadV3FormTypeEnum];
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the IncidentFormsUpdatePayloadV3 interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfIncidentFormsUpdatePayloadV3(value: object): value is IncidentFormsUpdatePayloadV3;
|
|
53
|
+
export declare function IncidentFormsUpdatePayloadV3FromJSON(json: any): IncidentFormsUpdatePayloadV3;
|
|
54
|
+
export declare function IncidentFormsUpdatePayloadV3FromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentFormsUpdatePayloadV3;
|
|
55
|
+
export declare function IncidentFormsUpdatePayloadV3ToJSON(json: any): IncidentFormsUpdatePayloadV3;
|
|
56
|
+
export declare function IncidentFormsUpdatePayloadV3ToJSONTyped(value?: IncidentFormsUpdatePayloadV3 | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,64 @@
|
|
|
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 { ExpressionPayloadV3FromJSON, ExpressionPayloadV3ToJSON, } from './ExpressionPayloadV3.js';
|
|
15
|
+
import { IncidentFormLifecycleElementPayloadV3FromJSON, IncidentFormLifecycleElementPayloadV3ToJSON, } from './IncidentFormLifecycleElementPayloadV3.js';
|
|
16
|
+
/**
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export const IncidentFormsUpdatePayloadV3FormTypeEnum = {
|
|
20
|
+
Declare: 'declare',
|
|
21
|
+
Accept: 'accept',
|
|
22
|
+
Update: 'update',
|
|
23
|
+
Resolve: 'resolve',
|
|
24
|
+
Retrospective: 'retrospective',
|
|
25
|
+
CustomFields: 'custom-fields',
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Check if a given object implements the IncidentFormsUpdatePayloadV3 interface.
|
|
29
|
+
*/
|
|
30
|
+
export function instanceOfIncidentFormsUpdatePayloadV3(value) {
|
|
31
|
+
if (!('expressions' in value) || value['expressions'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('form_type' in value) || value['form_type'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
export function IncidentFormsUpdatePayloadV3FromJSON(json) {
|
|
38
|
+
return IncidentFormsUpdatePayloadV3FromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function IncidentFormsUpdatePayloadV3FromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'expressions': (json['expressions'].map(ExpressionPayloadV3FromJSON)),
|
|
46
|
+
'form_type': json['form_type'],
|
|
47
|
+
'incident_type_id': json['incident_type_id'] == null ? undefined : json['incident_type_id'],
|
|
48
|
+
'lifecycle_elements': json['lifecycle_elements'] == null ? undefined : (json['lifecycle_elements'].map(IncidentFormLifecycleElementPayloadV3FromJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
export function IncidentFormsUpdatePayloadV3ToJSON(json) {
|
|
52
|
+
return IncidentFormsUpdatePayloadV3ToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
export function IncidentFormsUpdatePayloadV3ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'expressions': (value['expressions'].map(ExpressionPayloadV3ToJSON)),
|
|
60
|
+
'form_type': value['form_type'],
|
|
61
|
+
'incident_type_id': value['incident_type_id'],
|
|
62
|
+
'lifecycle_elements': value['lifecycle_elements'] == null ? undefined : (value['lifecycle_elements'].map(IncidentFormLifecycleElementPayloadV3ToJSON)),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -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 { IncidentFormV3 } from './IncidentFormV3.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface IncidentFormsUpdateResultV3
|
|
17
|
+
*/
|
|
18
|
+
export interface IncidentFormsUpdateResultV3 {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
incident_form: IncidentFormV3;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the IncidentFormsUpdateResultV3 interface.
|
|
26
|
+
*/
|
|
27
|
+
export declare function instanceOfIncidentFormsUpdateResultV3(value: object): value is IncidentFormsUpdateResultV3;
|
|
28
|
+
export declare function IncidentFormsUpdateResultV3FromJSON(json: any): IncidentFormsUpdateResultV3;
|
|
29
|
+
export declare function IncidentFormsUpdateResultV3FromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentFormsUpdateResultV3;
|
|
30
|
+
export declare function IncidentFormsUpdateResultV3ToJSON(json: any): IncidentFormsUpdateResultV3;
|
|
31
|
+
export declare function IncidentFormsUpdateResultV3ToJSONTyped(value?: IncidentFormsUpdateResultV3 | 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 { IncidentFormV3FromJSON, IncidentFormV3ToJSON, } from './IncidentFormV3.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the IncidentFormsUpdateResultV3 interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfIncidentFormsUpdateResultV3(value) {
|
|
19
|
+
if (!('incident_form' in value) || value['incident_form'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
export function IncidentFormsUpdateResultV3FromJSON(json) {
|
|
24
|
+
return IncidentFormsUpdateResultV3FromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function IncidentFormsUpdateResultV3FromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json == null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'incident_form': IncidentFormV3FromJSON(json['incident_form']),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function IncidentFormsUpdateResultV3ToJSON(json) {
|
|
35
|
+
return IncidentFormsUpdateResultV3ToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function IncidentFormsUpdateResultV3ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'incident_form': IncidentFormV3ToJSON(value['incident_form']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -21,6 +21,10 @@ import type { TriggerSlimV2 } from './TriggerSlimV2.js';
|
|
|
21
21
|
* @interface WorkflowSlimV2
|
|
22
22
|
*/
|
|
23
23
|
export interface WorkflowSlimV2 {
|
|
24
|
+
/**
|
|
25
|
+
* Whether the workflow is configured to run immediately or ask for confirmation in the incident channel
|
|
26
|
+
*/
|
|
27
|
+
auto_run_mode: WorkflowSlimV2AutoRunModeEnum;
|
|
24
28
|
/**
|
|
25
29
|
* Conditions that apply to the workflow trigger
|
|
26
30
|
*/
|
|
@@ -102,6 +106,14 @@ export interface WorkflowSlimV2 {
|
|
|
102
106
|
*/
|
|
103
107
|
version: number;
|
|
104
108
|
}
|
|
109
|
+
/**
|
|
110
|
+
* @export
|
|
111
|
+
*/
|
|
112
|
+
export declare const WorkflowSlimV2AutoRunModeEnum: {
|
|
113
|
+
readonly RunAutomatically: "run_automatically";
|
|
114
|
+
readonly ConfirmBeforeRunning: "confirm_before_running";
|
|
115
|
+
};
|
|
116
|
+
export type WorkflowSlimV2AutoRunModeEnum = typeof WorkflowSlimV2AutoRunModeEnum[keyof typeof WorkflowSlimV2AutoRunModeEnum];
|
|
105
117
|
/**
|
|
106
118
|
* @export
|
|
107
119
|
*/
|
|
@@ -18,6 +18,13 @@ import { WorkflowDelayV2FromJSON, WorkflowDelayV2ToJSON, } from './WorkflowDelay
|
|
|
18
18
|
import { ConditionGroupV2FromJSON, ConditionGroupV2ToJSON, } from './ConditionGroupV2.js';
|
|
19
19
|
import { EngineReferenceV2FromJSON, EngineReferenceV2ToJSON, } from './EngineReferenceV2.js';
|
|
20
20
|
import { TriggerSlimV2FromJSON, TriggerSlimV2ToJSON, } from './TriggerSlimV2.js';
|
|
21
|
+
/**
|
|
22
|
+
* @export
|
|
23
|
+
*/
|
|
24
|
+
export const WorkflowSlimV2AutoRunModeEnum = {
|
|
25
|
+
RunAutomatically: 'run_automatically',
|
|
26
|
+
ConfirmBeforeRunning: 'confirm_before_running',
|
|
27
|
+
};
|
|
21
28
|
/**
|
|
22
29
|
* @export
|
|
23
30
|
*/
|
|
@@ -54,6 +61,8 @@ export const WorkflowSlimV2StateEnum = {
|
|
|
54
61
|
* Check if a given object implements the WorkflowSlimV2 interface.
|
|
55
62
|
*/
|
|
56
63
|
export function instanceOfWorkflowSlimV2(value) {
|
|
64
|
+
if (!('auto_run_mode' in value) || value['auto_run_mode'] === undefined)
|
|
65
|
+
return false;
|
|
57
66
|
if (!('condition_groups' in value) || value['condition_groups'] === undefined)
|
|
58
67
|
return false;
|
|
59
68
|
if (!('continue_on_step_error' in value) || value['continue_on_step_error'] === undefined)
|
|
@@ -94,6 +103,7 @@ export function WorkflowSlimV2FromJSONTyped(json, ignoreDiscriminator) {
|
|
|
94
103
|
return json;
|
|
95
104
|
}
|
|
96
105
|
return {
|
|
106
|
+
'auto_run_mode': json['auto_run_mode'],
|
|
97
107
|
'condition_groups': (json['condition_groups'].map(ConditionGroupV2FromJSON)),
|
|
98
108
|
'continue_on_step_error': json['continue_on_step_error'],
|
|
99
109
|
'delay': json['delay'] == null ? undefined : WorkflowDelayV2FromJSON(json['delay']),
|
|
@@ -124,6 +134,7 @@ export function WorkflowSlimV2ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
124
134
|
return value;
|
|
125
135
|
}
|
|
126
136
|
return {
|
|
137
|
+
'auto_run_mode': value['auto_run_mode'],
|
|
127
138
|
'condition_groups': (value['condition_groups'].map(ConditionGroupV2ToJSON)),
|
|
128
139
|
'continue_on_step_error': value['continue_on_step_error'],
|
|
129
140
|
'delay': WorkflowDelayV2ToJSON(value['delay']),
|
|
@@ -22,6 +22,10 @@ import type { TriggerSlimV2 } from './TriggerSlimV2.js';
|
|
|
22
22
|
* @interface WorkflowV2
|
|
23
23
|
*/
|
|
24
24
|
export interface WorkflowV2 {
|
|
25
|
+
/**
|
|
26
|
+
* Whether the workflow is configured to run immediately or ask for confirmation in the incident channel
|
|
27
|
+
*/
|
|
28
|
+
auto_run_mode: WorkflowV2AutoRunModeEnum;
|
|
25
29
|
/**
|
|
26
30
|
* Conditions that apply to the workflow trigger
|
|
27
31
|
*/
|
|
@@ -43,7 +47,7 @@ export interface WorkflowV2 {
|
|
|
43
47
|
*/
|
|
44
48
|
folder?: string;
|
|
45
49
|
/**
|
|
46
|
-
* User-configured form fields available in the workflow scope
|
|
50
|
+
* User-configured form fields available in the workflow scope. Allowed on manually-triggered workflows, and on workflows with an `auto_run_mode` of `confirm_before_running`.
|
|
47
51
|
*/
|
|
48
52
|
form_fields?: Array<WorkflowFormFieldV2>;
|
|
49
53
|
/**
|
|
@@ -107,6 +111,14 @@ export interface WorkflowV2 {
|
|
|
107
111
|
*/
|
|
108
112
|
version: number;
|
|
109
113
|
}
|
|
114
|
+
/**
|
|
115
|
+
* @export
|
|
116
|
+
*/
|
|
117
|
+
export declare const WorkflowV2AutoRunModeEnum: {
|
|
118
|
+
readonly RunAutomatically: "run_automatically";
|
|
119
|
+
readonly ConfirmBeforeRunning: "confirm_before_running";
|
|
120
|
+
};
|
|
121
|
+
export type WorkflowV2AutoRunModeEnum = typeof WorkflowV2AutoRunModeEnum[keyof typeof WorkflowV2AutoRunModeEnum];
|
|
110
122
|
/**
|
|
111
123
|
* @export
|
|
112
124
|
*/
|
|
@@ -19,6 +19,13 @@ import { WorkflowDelayV2FromJSON, WorkflowDelayV2ToJSON, } from './WorkflowDelay
|
|
|
19
19
|
import { ConditionGroupV2FromJSON, ConditionGroupV2ToJSON, } from './ConditionGroupV2.js';
|
|
20
20
|
import { EngineReferenceV2FromJSON, EngineReferenceV2ToJSON, } from './EngineReferenceV2.js';
|
|
21
21
|
import { TriggerSlimV2FromJSON, TriggerSlimV2ToJSON, } from './TriggerSlimV2.js';
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
export const WorkflowV2AutoRunModeEnum = {
|
|
26
|
+
RunAutomatically: 'run_automatically',
|
|
27
|
+
ConfirmBeforeRunning: 'confirm_before_running',
|
|
28
|
+
};
|
|
22
29
|
/**
|
|
23
30
|
* @export
|
|
24
31
|
*/
|
|
@@ -55,6 +62,8 @@ export const WorkflowV2StateEnum = {
|
|
|
55
62
|
* Check if a given object implements the WorkflowV2 interface.
|
|
56
63
|
*/
|
|
57
64
|
export function instanceOfWorkflowV2(value) {
|
|
65
|
+
if (!('auto_run_mode' in value) || value['auto_run_mode'] === undefined)
|
|
66
|
+
return false;
|
|
58
67
|
if (!('condition_groups' in value) || value['condition_groups'] === undefined)
|
|
59
68
|
return false;
|
|
60
69
|
if (!('continue_on_step_error' in value) || value['continue_on_step_error'] === undefined)
|
|
@@ -95,6 +104,7 @@ export function WorkflowV2FromJSONTyped(json, ignoreDiscriminator) {
|
|
|
95
104
|
return json;
|
|
96
105
|
}
|
|
97
106
|
return {
|
|
107
|
+
'auto_run_mode': json['auto_run_mode'],
|
|
98
108
|
'condition_groups': (json['condition_groups'].map(ConditionGroupV2FromJSON)),
|
|
99
109
|
'continue_on_step_error': json['continue_on_step_error'],
|
|
100
110
|
'delay': json['delay'] == null ? undefined : WorkflowDelayV2FromJSON(json['delay']),
|
|
@@ -126,6 +136,7 @@ export function WorkflowV2ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
126
136
|
return value;
|
|
127
137
|
}
|
|
128
138
|
return {
|
|
139
|
+
'auto_run_mode': value['auto_run_mode'],
|
|
129
140
|
'condition_groups': (value['condition_groups'].map(ConditionGroupV2ToJSON)),
|
|
130
141
|
'continue_on_step_error': value['continue_on_step_error'],
|
|
131
142
|
'delay': WorkflowDelayV2ToJSON(value['delay']),
|