@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.
Files changed (57) 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/index.d.ts +1 -0
  4. package/dist/cjs/apis/index.js +1 -0
  5. package/dist/cjs/models/IncidentFormLifecycleElementConfigV3.d.ts +30 -0
  6. package/dist/cjs/models/IncidentFormLifecycleElementConfigV3.js +48 -0
  7. package/dist/cjs/models/IncidentFormLifecycleElementPayloadV3.d.ts +115 -0
  8. package/dist/cjs/models/IncidentFormLifecycleElementPayloadV3.js +110 -0
  9. package/dist/cjs/models/IncidentFormLifecycleElementV3.d.ts +115 -0
  10. package/dist/cjs/models/IncidentFormLifecycleElementV3.js +110 -0
  11. package/dist/cjs/models/IncidentFormV3.d.ts +68 -0
  12. package/dist/cjs/models/IncidentFormV3.js +85 -0
  13. package/dist/cjs/models/IncidentFormsCreatePayloadV3.d.ts +56 -0
  14. package/dist/cjs/models/IncidentFormsCreatePayloadV3.js +72 -0
  15. package/dist/cjs/models/IncidentFormsCreateResultV3.d.ts +31 -0
  16. package/dist/cjs/models/IncidentFormsCreateResultV3.js +51 -0
  17. package/dist/cjs/models/IncidentFormsListResultV3.d.ts +36 -0
  18. package/dist/cjs/models/IncidentFormsListResultV3.js +56 -0
  19. package/dist/cjs/models/IncidentFormsShowResultV3.d.ts +31 -0
  20. package/dist/cjs/models/IncidentFormsShowResultV3.js +51 -0
  21. package/dist/cjs/models/IncidentFormsUpdatePayloadV3.d.ts +56 -0
  22. package/dist/cjs/models/IncidentFormsUpdatePayloadV3.js +72 -0
  23. package/dist/cjs/models/IncidentFormsUpdateResultV3.d.ts +31 -0
  24. package/dist/cjs/models/IncidentFormsUpdateResultV3.js +51 -0
  25. package/dist/cjs/models/index.d.ts +10 -0
  26. package/dist/cjs/models/index.js +10 -0
  27. package/dist/cjs/version.d.ts +1 -1
  28. package/dist/cjs/version.js +1 -1
  29. package/dist/esm/apis/IncidentFormsV3Api.d.ts +131 -0
  30. package/dist/esm/apis/IncidentFormsV3Api.js +242 -0
  31. package/dist/esm/apis/index.d.ts +1 -0
  32. package/dist/esm/apis/index.js +1 -0
  33. package/dist/esm/models/IncidentFormLifecycleElementConfigV3.d.ts +30 -0
  34. package/dist/esm/models/IncidentFormLifecycleElementConfigV3.js +41 -0
  35. package/dist/esm/models/IncidentFormLifecycleElementPayloadV3.d.ts +115 -0
  36. package/dist/esm/models/IncidentFormLifecycleElementPayloadV3.js +102 -0
  37. package/dist/esm/models/IncidentFormLifecycleElementV3.d.ts +115 -0
  38. package/dist/esm/models/IncidentFormLifecycleElementV3.js +102 -0
  39. package/dist/esm/models/IncidentFormV3.d.ts +68 -0
  40. package/dist/esm/models/IncidentFormV3.js +77 -0
  41. package/dist/esm/models/IncidentFormsCreatePayloadV3.d.ts +56 -0
  42. package/dist/esm/models/IncidentFormsCreatePayloadV3.js +64 -0
  43. package/dist/esm/models/IncidentFormsCreateResultV3.d.ts +31 -0
  44. package/dist/esm/models/IncidentFormsCreateResultV3.js +44 -0
  45. package/dist/esm/models/IncidentFormsListResultV3.d.ts +36 -0
  46. package/dist/esm/models/IncidentFormsListResultV3.js +49 -0
  47. package/dist/esm/models/IncidentFormsShowResultV3.d.ts +31 -0
  48. package/dist/esm/models/IncidentFormsShowResultV3.js +44 -0
  49. package/dist/esm/models/IncidentFormsUpdatePayloadV3.d.ts +56 -0
  50. package/dist/esm/models/IncidentFormsUpdatePayloadV3.js +64 -0
  51. package/dist/esm/models/IncidentFormsUpdateResultV3.d.ts +31 -0
  52. package/dist/esm/models/IncidentFormsUpdateResultV3.js +44 -0
  53. package/dist/esm/models/index.d.ts +10 -0
  54. package/dist/esm/models/index.js +10 -0
  55. package/dist/esm/version.d.ts +1 -1
  56. package/dist/esm/version.js +1 -1
  57. package/package.json +1 -1
@@ -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 { ConditionGroupV3FromJSON, ConditionGroupV3ToJSON, } from './ConditionGroupV3.js';
16
+ import { EngineParamBindingV3FromJSON, EngineParamBindingV3ToJSON, } from './EngineParamBindingV3.js';
17
+ /**
18
+ * @export
19
+ */
20
+ export const IncidentFormLifecycleElementV3ElementTypeEnum = {
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 IncidentFormLifecycleElementV3RequiredIfEnum = {
45
+ CheckEngineConfig: 'check_engine_config',
46
+ AlwaysRequire: 'always_require',
47
+ NeverRequire: 'never_require',
48
+ };
49
+ /**
50
+ * Check if a given object implements the IncidentFormLifecycleElementV3 interface.
51
+ */
52
+ export function instanceOfIncidentFormLifecycleElementV3(value) {
53
+ if (!('element_type' in value) || value['element_type'] === undefined)
54
+ return false;
55
+ return true;
56
+ }
57
+ export function IncidentFormLifecycleElementV3FromJSON(json) {
58
+ return IncidentFormLifecycleElementV3FromJSONTyped(json, false);
59
+ }
60
+ export function IncidentFormLifecycleElementV3FromJSONTyped(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 : EngineParamBindingV3FromJSON(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(ConditionGroupV3FromJSON)),
77
+ 'show_if_condition_groups': json['show_if_condition_groups'] == null ? undefined : (json['show_if_condition_groups'].map(ConditionGroupV3FromJSON)),
78
+ };
79
+ }
80
+ export function IncidentFormLifecycleElementV3ToJSON(json) {
81
+ return IncidentFormLifecycleElementV3ToJSONTyped(json, false);
82
+ }
83
+ export function IncidentFormLifecycleElementV3ToJSONTyped(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': EngineParamBindingV3ToJSON(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(ConditionGroupV3ToJSON)),
100
+ 'show_if_condition_groups': value['show_if_condition_groups'] == null ? undefined : (value['show_if_condition_groups'].map(ConditionGroupV3ToJSON)),
101
+ };
102
+ }
@@ -0,0 +1,68 @@
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 { ExpressionV3 } from './ExpressionV3.js';
13
+ import type { IncidentFormLifecycleElementV3 } from './IncidentFormLifecycleElementV3.js';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface IncidentFormV3
18
+ */
19
+ export interface IncidentFormV3 {
20
+ /**
21
+ * When this incident form was created
22
+ */
23
+ created_at: Date;
24
+ /**
25
+ * Expressions available to every element's conditions and defaults. Referenced by reference, not by ID.
26
+ */
27
+ expressions: Array<ExpressionV3>;
28
+ /**
29
+ * Which form this is. Escalate forms are not part of this API.
30
+ */
31
+ form_type: IncidentFormV3FormTypeEnum;
32
+ /**
33
+ * Unique identifier for this incident form
34
+ */
35
+ id: string;
36
+ /**
37
+ * The incident type this form belongs to. Unset for the organisation's default form of this type.
38
+ */
39
+ incident_type_id?: string;
40
+ /**
41
+ * Elements on this form, in display order. List position is the order: there is no separate rank.
42
+ */
43
+ lifecycle_elements?: Array<IncidentFormLifecycleElementV3>;
44
+ /**
45
+ * When this incident form was last updated
46
+ */
47
+ updated_at: Date;
48
+ }
49
+ /**
50
+ * @export
51
+ */
52
+ export declare const IncidentFormV3FormTypeEnum: {
53
+ readonly Declare: "declare";
54
+ readonly Accept: "accept";
55
+ readonly Update: "update";
56
+ readonly Resolve: "resolve";
57
+ readonly Retrospective: "retrospective";
58
+ readonly CustomFields: "custom-fields";
59
+ };
60
+ export type IncidentFormV3FormTypeEnum = typeof IncidentFormV3FormTypeEnum[keyof typeof IncidentFormV3FormTypeEnum];
61
+ /**
62
+ * Check if a given object implements the IncidentFormV3 interface.
63
+ */
64
+ export declare function instanceOfIncidentFormV3(value: object): value is IncidentFormV3;
65
+ export declare function IncidentFormV3FromJSON(json: any): IncidentFormV3;
66
+ export declare function IncidentFormV3FromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentFormV3;
67
+ export declare function IncidentFormV3ToJSON(json: any): IncidentFormV3;
68
+ export declare function IncidentFormV3ToJSONTyped(value?: IncidentFormV3 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,77 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * incident.io
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { parseDateTime, serializeDateTime } from '../runtime.js';
15
+ import { ExpressionV3FromJSON, ExpressionV3ToJSON, } from './ExpressionV3.js';
16
+ import { IncidentFormLifecycleElementV3FromJSON, IncidentFormLifecycleElementV3ToJSON, } from './IncidentFormLifecycleElementV3.js';
17
+ /**
18
+ * @export
19
+ */
20
+ export const IncidentFormV3FormTypeEnum = {
21
+ Declare: 'declare',
22
+ Accept: 'accept',
23
+ Update: 'update',
24
+ Resolve: 'resolve',
25
+ Retrospective: 'retrospective',
26
+ CustomFields: 'custom-fields',
27
+ };
28
+ /**
29
+ * Check if a given object implements the IncidentFormV3 interface.
30
+ */
31
+ export function instanceOfIncidentFormV3(value) {
32
+ if (!('created_at' in value) || value['created_at'] === undefined)
33
+ return false;
34
+ if (!('expressions' in value) || value['expressions'] === undefined)
35
+ return false;
36
+ if (!('form_type' in value) || value['form_type'] === undefined)
37
+ return false;
38
+ if (!('id' in value) || value['id'] === undefined)
39
+ return false;
40
+ if (!('updated_at' in value) || value['updated_at'] === undefined)
41
+ return false;
42
+ return true;
43
+ }
44
+ export function IncidentFormV3FromJSON(json) {
45
+ return IncidentFormV3FromJSONTyped(json, false);
46
+ }
47
+ export function IncidentFormV3FromJSONTyped(json, ignoreDiscriminator) {
48
+ if (json == null) {
49
+ return json;
50
+ }
51
+ return {
52
+ 'created_at': (json['created_at'] == null ? json['created_at'] : parseDateTime(json['created_at'])),
53
+ 'expressions': (json['expressions'].map(ExpressionV3FromJSON)),
54
+ 'form_type': json['form_type'],
55
+ 'id': json['id'],
56
+ 'incident_type_id': json['incident_type_id'] == null ? undefined : json['incident_type_id'],
57
+ 'lifecycle_elements': json['lifecycle_elements'] == null ? undefined : (json['lifecycle_elements'].map(IncidentFormLifecycleElementV3FromJSON)),
58
+ 'updated_at': (json['updated_at'] == null ? json['updated_at'] : parseDateTime(json['updated_at'])),
59
+ };
60
+ }
61
+ export function IncidentFormV3ToJSON(json) {
62
+ return IncidentFormV3ToJSONTyped(json, false);
63
+ }
64
+ export function IncidentFormV3ToJSONTyped(value, ignoreDiscriminator = false) {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+ return {
69
+ 'created_at': value['created_at'] == null ? value['created_at'] : serializeDateTime(value['created_at']),
70
+ 'expressions': (value['expressions'].map(ExpressionV3ToJSON)),
71
+ 'form_type': value['form_type'],
72
+ 'id': value['id'],
73
+ 'incident_type_id': value['incident_type_id'],
74
+ 'lifecycle_elements': value['lifecycle_elements'] == null ? undefined : (value['lifecycle_elements'].map(IncidentFormLifecycleElementV3ToJSON)),
75
+ 'updated_at': value['updated_at'] == null ? value['updated_at'] : serializeDateTime(value['updated_at']),
76
+ };
77
+ }
@@ -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 IncidentFormsCreatePayloadV3
18
+ */
19
+ export interface IncidentFormsCreatePayloadV3 {
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: IncidentFormsCreatePayloadV3FormTypeEnum;
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 IncidentFormsCreatePayloadV3FormTypeEnum: {
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 IncidentFormsCreatePayloadV3FormTypeEnum = typeof IncidentFormsCreatePayloadV3FormTypeEnum[keyof typeof IncidentFormsCreatePayloadV3FormTypeEnum];
49
+ /**
50
+ * Check if a given object implements the IncidentFormsCreatePayloadV3 interface.
51
+ */
52
+ export declare function instanceOfIncidentFormsCreatePayloadV3(value: object): value is IncidentFormsCreatePayloadV3;
53
+ export declare function IncidentFormsCreatePayloadV3FromJSON(json: any): IncidentFormsCreatePayloadV3;
54
+ export declare function IncidentFormsCreatePayloadV3FromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentFormsCreatePayloadV3;
55
+ export declare function IncidentFormsCreatePayloadV3ToJSON(json: any): IncidentFormsCreatePayloadV3;
56
+ export declare function IncidentFormsCreatePayloadV3ToJSONTyped(value?: IncidentFormsCreatePayloadV3 | 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 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;