@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.
Files changed (73) 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/WorkflowSlimV2.d.ts +12 -0
  26. package/dist/cjs/models/WorkflowSlimV2.js +12 -1
  27. package/dist/cjs/models/WorkflowV2.d.ts +13 -1
  28. package/dist/cjs/models/WorkflowV2.js +12 -1
  29. package/dist/cjs/models/WorkflowsCreateWorkflowPayloadV2.d.ts +13 -1
  30. package/dist/cjs/models/WorkflowsCreateWorkflowPayloadV2.js +10 -1
  31. package/dist/cjs/models/WorkflowsUpdateWorkflowPayloadV2.d.ts +13 -1
  32. package/dist/cjs/models/WorkflowsUpdateWorkflowPayloadV2.js +10 -1
  33. package/dist/cjs/models/index.d.ts +10 -0
  34. package/dist/cjs/models/index.js +10 -0
  35. package/dist/cjs/version.d.ts +1 -1
  36. package/dist/cjs/version.js +1 -1
  37. package/dist/esm/apis/IncidentFormsV3Api.d.ts +131 -0
  38. package/dist/esm/apis/IncidentFormsV3Api.js +242 -0
  39. package/dist/esm/apis/index.d.ts +1 -0
  40. package/dist/esm/apis/index.js +1 -0
  41. package/dist/esm/models/IncidentFormLifecycleElementConfigV3.d.ts +30 -0
  42. package/dist/esm/models/IncidentFormLifecycleElementConfigV3.js +41 -0
  43. package/dist/esm/models/IncidentFormLifecycleElementPayloadV3.d.ts +115 -0
  44. package/dist/esm/models/IncidentFormLifecycleElementPayloadV3.js +102 -0
  45. package/dist/esm/models/IncidentFormLifecycleElementV3.d.ts +115 -0
  46. package/dist/esm/models/IncidentFormLifecycleElementV3.js +102 -0
  47. package/dist/esm/models/IncidentFormV3.d.ts +68 -0
  48. package/dist/esm/models/IncidentFormV3.js +77 -0
  49. package/dist/esm/models/IncidentFormsCreatePayloadV3.d.ts +56 -0
  50. package/dist/esm/models/IncidentFormsCreatePayloadV3.js +64 -0
  51. package/dist/esm/models/IncidentFormsCreateResultV3.d.ts +31 -0
  52. package/dist/esm/models/IncidentFormsCreateResultV3.js +44 -0
  53. package/dist/esm/models/IncidentFormsListResultV3.d.ts +36 -0
  54. package/dist/esm/models/IncidentFormsListResultV3.js +49 -0
  55. package/dist/esm/models/IncidentFormsShowResultV3.d.ts +31 -0
  56. package/dist/esm/models/IncidentFormsShowResultV3.js +44 -0
  57. package/dist/esm/models/IncidentFormsUpdatePayloadV3.d.ts +56 -0
  58. package/dist/esm/models/IncidentFormsUpdatePayloadV3.js +64 -0
  59. package/dist/esm/models/IncidentFormsUpdateResultV3.d.ts +31 -0
  60. package/dist/esm/models/IncidentFormsUpdateResultV3.js +44 -0
  61. package/dist/esm/models/WorkflowSlimV2.d.ts +12 -0
  62. package/dist/esm/models/WorkflowSlimV2.js +11 -0
  63. package/dist/esm/models/WorkflowV2.d.ts +13 -1
  64. package/dist/esm/models/WorkflowV2.js +11 -0
  65. package/dist/esm/models/WorkflowsCreateWorkflowPayloadV2.d.ts +13 -1
  66. package/dist/esm/models/WorkflowsCreateWorkflowPayloadV2.js +9 -0
  67. package/dist/esm/models/WorkflowsUpdateWorkflowPayloadV2.d.ts +13 -1
  68. package/dist/esm/models/WorkflowsUpdateWorkflowPayloadV2.js +9 -0
  69. package/dist/esm/models/index.d.ts +10 -0
  70. package/dist/esm/models/index.js +10 -0
  71. package/dist/esm/version.d.ts +1 -1
  72. package/dist/esm/version.js +1 -1
  73. package/package.json +1 -1
@@ -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;
@@ -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;