@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,51 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * incident.io
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfIncidentFormsCreateResultV3 = instanceOfIncidentFormsCreateResultV3;
17
+ exports.IncidentFormsCreateResultV3FromJSON = IncidentFormsCreateResultV3FromJSON;
18
+ exports.IncidentFormsCreateResultV3FromJSONTyped = IncidentFormsCreateResultV3FromJSONTyped;
19
+ exports.IncidentFormsCreateResultV3ToJSON = IncidentFormsCreateResultV3ToJSON;
20
+ exports.IncidentFormsCreateResultV3ToJSONTyped = IncidentFormsCreateResultV3ToJSONTyped;
21
+ const IncidentFormV3_js_1 = require("./IncidentFormV3.js");
22
+ /**
23
+ * Check if a given object implements the IncidentFormsCreateResultV3 interface.
24
+ */
25
+ function instanceOfIncidentFormsCreateResultV3(value) {
26
+ if (!('incident_form' in value) || value['incident_form'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function IncidentFormsCreateResultV3FromJSON(json) {
31
+ return IncidentFormsCreateResultV3FromJSONTyped(json, false);
32
+ }
33
+ function IncidentFormsCreateResultV3FromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'incident_form': (0, IncidentFormV3_js_1.IncidentFormV3FromJSON)(json['incident_form']),
39
+ };
40
+ }
41
+ function IncidentFormsCreateResultV3ToJSON(json) {
42
+ return IncidentFormsCreateResultV3ToJSONTyped(json, false);
43
+ }
44
+ function IncidentFormsCreateResultV3ToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'incident_form': (0, IncidentFormV3_js_1.IncidentFormV3ToJSON)(value['incident_form']),
50
+ };
51
+ }
@@ -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,56 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * incident.io
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfIncidentFormsListResultV3 = instanceOfIncidentFormsListResultV3;
17
+ exports.IncidentFormsListResultV3FromJSON = IncidentFormsListResultV3FromJSON;
18
+ exports.IncidentFormsListResultV3FromJSONTyped = IncidentFormsListResultV3FromJSONTyped;
19
+ exports.IncidentFormsListResultV3ToJSON = IncidentFormsListResultV3ToJSON;
20
+ exports.IncidentFormsListResultV3ToJSONTyped = IncidentFormsListResultV3ToJSONTyped;
21
+ const IncidentFormV3_js_1 = require("./IncidentFormV3.js");
22
+ const PaginationMetaResultV3_js_1 = require("./PaginationMetaResultV3.js");
23
+ /**
24
+ * Check if a given object implements the IncidentFormsListResultV3 interface.
25
+ */
26
+ function instanceOfIncidentFormsListResultV3(value) {
27
+ if (!('incident_forms' in value) || value['incident_forms'] === undefined)
28
+ return false;
29
+ if (!('pagination_meta' in value) || value['pagination_meta'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function IncidentFormsListResultV3FromJSON(json) {
34
+ return IncidentFormsListResultV3FromJSONTyped(json, false);
35
+ }
36
+ function IncidentFormsListResultV3FromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'incident_forms': (json['incident_forms'].map(IncidentFormV3_js_1.IncidentFormV3FromJSON)),
42
+ 'pagination_meta': (0, PaginationMetaResultV3_js_1.PaginationMetaResultV3FromJSON)(json['pagination_meta']),
43
+ };
44
+ }
45
+ function IncidentFormsListResultV3ToJSON(json) {
46
+ return IncidentFormsListResultV3ToJSONTyped(json, false);
47
+ }
48
+ function IncidentFormsListResultV3ToJSONTyped(value, ignoreDiscriminator = false) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'incident_forms': (value['incident_forms'].map(IncidentFormV3_js_1.IncidentFormV3ToJSON)),
54
+ 'pagination_meta': (0, PaginationMetaResultV3_js_1.PaginationMetaResultV3ToJSON)(value['pagination_meta']),
55
+ };
56
+ }
@@ -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,51 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * incident.io
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfIncidentFormsShowResultV3 = instanceOfIncidentFormsShowResultV3;
17
+ exports.IncidentFormsShowResultV3FromJSON = IncidentFormsShowResultV3FromJSON;
18
+ exports.IncidentFormsShowResultV3FromJSONTyped = IncidentFormsShowResultV3FromJSONTyped;
19
+ exports.IncidentFormsShowResultV3ToJSON = IncidentFormsShowResultV3ToJSON;
20
+ exports.IncidentFormsShowResultV3ToJSONTyped = IncidentFormsShowResultV3ToJSONTyped;
21
+ const IncidentFormV3_js_1 = require("./IncidentFormV3.js");
22
+ /**
23
+ * Check if a given object implements the IncidentFormsShowResultV3 interface.
24
+ */
25
+ function instanceOfIncidentFormsShowResultV3(value) {
26
+ if (!('incident_form' in value) || value['incident_form'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function IncidentFormsShowResultV3FromJSON(json) {
31
+ return IncidentFormsShowResultV3FromJSONTyped(json, false);
32
+ }
33
+ function IncidentFormsShowResultV3FromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'incident_form': (0, IncidentFormV3_js_1.IncidentFormV3FromJSON)(json['incident_form']),
39
+ };
40
+ }
41
+ function IncidentFormsShowResultV3ToJSON(json) {
42
+ return IncidentFormsShowResultV3ToJSONTyped(json, false);
43
+ }
44
+ function IncidentFormsShowResultV3ToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'incident_form': (0, IncidentFormV3_js_1.IncidentFormV3ToJSON)(value['incident_form']),
50
+ };
51
+ }
@@ -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,72 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * incident.io
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.IncidentFormsUpdatePayloadV3FormTypeEnum = void 0;
17
+ exports.instanceOfIncidentFormsUpdatePayloadV3 = instanceOfIncidentFormsUpdatePayloadV3;
18
+ exports.IncidentFormsUpdatePayloadV3FromJSON = IncidentFormsUpdatePayloadV3FromJSON;
19
+ exports.IncidentFormsUpdatePayloadV3FromJSONTyped = IncidentFormsUpdatePayloadV3FromJSONTyped;
20
+ exports.IncidentFormsUpdatePayloadV3ToJSON = IncidentFormsUpdatePayloadV3ToJSON;
21
+ exports.IncidentFormsUpdatePayloadV3ToJSONTyped = IncidentFormsUpdatePayloadV3ToJSONTyped;
22
+ const ExpressionPayloadV3_js_1 = require("./ExpressionPayloadV3.js");
23
+ const IncidentFormLifecycleElementPayloadV3_js_1 = require("./IncidentFormLifecycleElementPayloadV3.js");
24
+ /**
25
+ * @export
26
+ */
27
+ exports.IncidentFormsUpdatePayloadV3FormTypeEnum = {
28
+ Declare: 'declare',
29
+ Accept: 'accept',
30
+ Update: 'update',
31
+ Resolve: 'resolve',
32
+ Retrospective: 'retrospective',
33
+ CustomFields: 'custom-fields',
34
+ };
35
+ /**
36
+ * Check if a given object implements the IncidentFormsUpdatePayloadV3 interface.
37
+ */
38
+ function instanceOfIncidentFormsUpdatePayloadV3(value) {
39
+ if (!('expressions' in value) || value['expressions'] === undefined)
40
+ return false;
41
+ if (!('form_type' in value) || value['form_type'] === undefined)
42
+ return false;
43
+ return true;
44
+ }
45
+ function IncidentFormsUpdatePayloadV3FromJSON(json) {
46
+ return IncidentFormsUpdatePayloadV3FromJSONTyped(json, false);
47
+ }
48
+ function IncidentFormsUpdatePayloadV3FromJSONTyped(json, ignoreDiscriminator) {
49
+ if (json == null) {
50
+ return json;
51
+ }
52
+ return {
53
+ 'expressions': (json['expressions'].map(ExpressionPayloadV3_js_1.ExpressionPayloadV3FromJSON)),
54
+ 'form_type': json['form_type'],
55
+ 'incident_type_id': json['incident_type_id'] == null ? undefined : json['incident_type_id'],
56
+ 'lifecycle_elements': json['lifecycle_elements'] == null ? undefined : (json['lifecycle_elements'].map(IncidentFormLifecycleElementPayloadV3_js_1.IncidentFormLifecycleElementPayloadV3FromJSON)),
57
+ };
58
+ }
59
+ function IncidentFormsUpdatePayloadV3ToJSON(json) {
60
+ return IncidentFormsUpdatePayloadV3ToJSONTyped(json, false);
61
+ }
62
+ function IncidentFormsUpdatePayloadV3ToJSONTyped(value, ignoreDiscriminator = false) {
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+ return {
67
+ 'expressions': (value['expressions'].map(ExpressionPayloadV3_js_1.ExpressionPayloadV3ToJSON)),
68
+ 'form_type': value['form_type'],
69
+ 'incident_type_id': value['incident_type_id'],
70
+ 'lifecycle_elements': value['lifecycle_elements'] == null ? undefined : (value['lifecycle_elements'].map(IncidentFormLifecycleElementPayloadV3_js_1.IncidentFormLifecycleElementPayloadV3ToJSON)),
71
+ };
72
+ }
@@ -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,51 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * incident.io
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfIncidentFormsUpdateResultV3 = instanceOfIncidentFormsUpdateResultV3;
17
+ exports.IncidentFormsUpdateResultV3FromJSON = IncidentFormsUpdateResultV3FromJSON;
18
+ exports.IncidentFormsUpdateResultV3FromJSONTyped = IncidentFormsUpdateResultV3FromJSONTyped;
19
+ exports.IncidentFormsUpdateResultV3ToJSON = IncidentFormsUpdateResultV3ToJSON;
20
+ exports.IncidentFormsUpdateResultV3ToJSONTyped = IncidentFormsUpdateResultV3ToJSONTyped;
21
+ const IncidentFormV3_js_1 = require("./IncidentFormV3.js");
22
+ /**
23
+ * Check if a given object implements the IncidentFormsUpdateResultV3 interface.
24
+ */
25
+ function instanceOfIncidentFormsUpdateResultV3(value) {
26
+ if (!('incident_form' in value) || value['incident_form'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function IncidentFormsUpdateResultV3FromJSON(json) {
31
+ return IncidentFormsUpdateResultV3FromJSONTyped(json, false);
32
+ }
33
+ function IncidentFormsUpdateResultV3FromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'incident_form': (0, IncidentFormV3_js_1.IncidentFormV3FromJSON)(json['incident_form']),
39
+ };
40
+ }
41
+ function IncidentFormsUpdateResultV3ToJSON(json) {
42
+ return IncidentFormsUpdateResultV3ToJSONTyped(json, false);
43
+ }
44
+ function IncidentFormsUpdateResultV3ToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'incident_form': (0, IncidentFormV3_js_1.IncidentFormV3ToJSON)(value['incident_form']),
50
+ };
51
+ }
@@ -754,6 +754,16 @@ export * from './IncidentDebriefV2.js';
754
754
  export * from './IncidentDurationMetricV2.js';
755
755
  export * from './IncidentDurationMetricWithValueV2.js';
756
756
  export * from './IncidentEditPayloadV2.js';
757
+ export * from './IncidentFormLifecycleElementConfigV3.js';
758
+ export * from './IncidentFormLifecycleElementPayloadV3.js';
759
+ export * from './IncidentFormLifecycleElementV3.js';
760
+ export * from './IncidentFormV3.js';
761
+ export * from './IncidentFormsCreatePayloadV3.js';
762
+ export * from './IncidentFormsCreateResultV3.js';
763
+ export * from './IncidentFormsListResultV3.js';
764
+ export * from './IncidentFormsShowResultV3.js';
765
+ export * from './IncidentFormsUpdatePayloadV3.js';
766
+ export * from './IncidentFormsUpdateResultV3.js';
757
767
  export * from './IncidentMembershipV1.js';
758
768
  export * from './IncidentMembershipsCreatePayloadV1.js';
759
769
  export * from './IncidentMembershipsCreateResultV1.js';
@@ -772,6 +772,16 @@ __exportStar(require("./IncidentDebriefV2.js"), exports);
772
772
  __exportStar(require("./IncidentDurationMetricV2.js"), exports);
773
773
  __exportStar(require("./IncidentDurationMetricWithValueV2.js"), exports);
774
774
  __exportStar(require("./IncidentEditPayloadV2.js"), exports);
775
+ __exportStar(require("./IncidentFormLifecycleElementConfigV3.js"), exports);
776
+ __exportStar(require("./IncidentFormLifecycleElementPayloadV3.js"), exports);
777
+ __exportStar(require("./IncidentFormLifecycleElementV3.js"), exports);
778
+ __exportStar(require("./IncidentFormV3.js"), exports);
779
+ __exportStar(require("./IncidentFormsCreatePayloadV3.js"), exports);
780
+ __exportStar(require("./IncidentFormsCreateResultV3.js"), exports);
781
+ __exportStar(require("./IncidentFormsListResultV3.js"), exports);
782
+ __exportStar(require("./IncidentFormsShowResultV3.js"), exports);
783
+ __exportStar(require("./IncidentFormsUpdatePayloadV3.js"), exports);
784
+ __exportStar(require("./IncidentFormsUpdateResultV3.js"), exports);
775
785
  __exportStar(require("./IncidentMembershipV1.js"), exports);
776
786
  __exportStar(require("./IncidentMembershipsCreatePayloadV1.js"), exports);
777
787
  __exportStar(require("./IncidentMembershipsCreateResultV1.js"), exports);
@@ -1 +1 @@
1
- export declare const VERSION = "2.9.0";
1
+ export declare const VERSION = "2.10.0";
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
4
  // Written by `make build` from package.json. Do not edit.
5
- exports.VERSION = "2.9.0";
5
+ exports.VERSION = "2.10.0";
@@ -0,0 +1,131 @@
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 * as runtime from '../runtime.js';
13
+ import { type IncidentFormsCreatePayloadV3 } from '../models/IncidentFormsCreatePayloadV3.js';
14
+ import { type IncidentFormsCreateResultV3 } from '../models/IncidentFormsCreateResultV3.js';
15
+ import { type IncidentFormsListResultV3 } from '../models/IncidentFormsListResultV3.js';
16
+ import { type IncidentFormsShowResultV3 } from '../models/IncidentFormsShowResultV3.js';
17
+ import { type IncidentFormsUpdatePayloadV3 } from '../models/IncidentFormsUpdatePayloadV3.js';
18
+ import { type IncidentFormsUpdateResultV3 } from '../models/IncidentFormsUpdateResultV3.js';
19
+ export interface IncidentFormsV3CreateRequest {
20
+ /**
21
+ *
22
+ */
23
+ body: IncidentFormsCreatePayloadV3;
24
+ }
25
+ export interface IncidentFormsV3DeleteRequest {
26
+ /**
27
+ * Unique identifier for this incident form
28
+ */
29
+ id: string;
30
+ }
31
+ export interface IncidentFormsV3ListRequest {
32
+ /**
33
+ * Integer number of records to return
34
+ */
35
+ page_size?: number;
36
+ /**
37
+ * An incident form's ID. This endpoint will return a list of forms after this ID in relation to the API response order.
38
+ */
39
+ after?: string;
40
+ }
41
+ export interface IncidentFormsV3ShowRequest {
42
+ /**
43
+ * Unique identifier for this incident form
44
+ */
45
+ id: string;
46
+ }
47
+ export interface IncidentFormsV3UpdateRequest {
48
+ /**
49
+ * Unique identifier of the incident form
50
+ */
51
+ id: string;
52
+ /**
53
+ *
54
+ */
55
+ body: IncidentFormsUpdatePayloadV3;
56
+ }
57
+ /**
58
+ *
59
+ */
60
+ export declare class IncidentFormsV3Api extends runtime.BaseAPI {
61
+ /**
62
+ * Creates request options for incidentFormsV3Create without sending the request
63
+ */
64
+ incidentFormsV3CreateRequestOpts(requestParameters: IncidentFormsV3CreateRequest): Promise<runtime.RequestOpts>;
65
+ /**
66
+ * Create an incident form for an incident type. A form that already exists for that form type and incident type is rejected.
67
+ * Create Incident Forms V3
68
+ */
69
+ incidentFormsV3CreateRaw(requestParameters: IncidentFormsV3CreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IncidentFormsCreateResultV3>>;
70
+ /**
71
+ * Create an incident form for an incident type. A form that already exists for that form type and incident type is rejected.
72
+ * Create Incident Forms V3
73
+ */
74
+ incidentFormsV3Create(requestParameters: IncidentFormsV3CreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IncidentFormsCreateResultV3>;
75
+ /**
76
+ * Creates request options for incidentFormsV3Delete without sending the request
77
+ */
78
+ incidentFormsV3DeleteRequestOpts(requestParameters: IncidentFormsV3DeleteRequest): Promise<runtime.RequestOpts>;
79
+ /**
80
+ * Archive an incident form. The organisation\'s default form of a type cannot be archived.
81
+ * Delete Incident Forms V3
82
+ */
83
+ incidentFormsV3DeleteRaw(requestParameters: IncidentFormsV3DeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
84
+ /**
85
+ * Archive an incident form. The organisation\'s default form of a type cannot be archived.
86
+ * Delete Incident Forms V3
87
+ */
88
+ incidentFormsV3Delete(requestParameters: IncidentFormsV3DeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
89
+ /**
90
+ * Creates request options for incidentFormsV3List without sending the request
91
+ */
92
+ incidentFormsV3ListRequestOpts(requestParameters: IncidentFormsV3ListRequest): Promise<runtime.RequestOpts>;
93
+ /**
94
+ * List incident forms for your account, including their elements and expressions.
95
+ * List Incident Forms V3
96
+ */
97
+ incidentFormsV3ListRaw(requestParameters: IncidentFormsV3ListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IncidentFormsListResultV3>>;
98
+ /**
99
+ * List incident forms for your account, including their elements and expressions.
100
+ * List Incident Forms V3
101
+ */
102
+ incidentFormsV3List(requestParameters?: IncidentFormsV3ListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IncidentFormsListResultV3>;
103
+ /**
104
+ * Creates request options for incidentFormsV3Show without sending the request
105
+ */
106
+ incidentFormsV3ShowRequestOpts(requestParameters: IncidentFormsV3ShowRequest): Promise<runtime.RequestOpts>;
107
+ /**
108
+ * Get a single incident form, including its elements and expressions.
109
+ * Show Incident Forms V3
110
+ */
111
+ incidentFormsV3ShowRaw(requestParameters: IncidentFormsV3ShowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IncidentFormsShowResultV3>>;
112
+ /**
113
+ * Get a single incident form, including its elements and expressions.
114
+ * Show Incident Forms V3
115
+ */
116
+ incidentFormsV3Show(requestParameters: IncidentFormsV3ShowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IncidentFormsShowResultV3>;
117
+ /**
118
+ * Creates request options for incidentFormsV3Update without sending the request
119
+ */
120
+ incidentFormsV3UpdateRequestOpts(requestParameters: IncidentFormsV3UpdateRequest): Promise<runtime.RequestOpts>;
121
+ /**
122
+ * Replace an incident form, including its elements and expressions.
123
+ * Update Incident Forms V3
124
+ */
125
+ incidentFormsV3UpdateRaw(requestParameters: IncidentFormsV3UpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IncidentFormsUpdateResultV3>>;
126
+ /**
127
+ * Replace an incident form, including its elements and expressions.
128
+ * Update Incident Forms V3
129
+ */
130
+ incidentFormsV3Update(requestParameters: IncidentFormsV3UpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IncidentFormsUpdateResultV3>;
131
+ }