@incident-io/sdk 2.8.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 (89) 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/StatusPageComponentsV2Api.d.ts +129 -0
  4. package/dist/cjs/apis/StatusPageComponentsV2Api.js +273 -0
  5. package/dist/cjs/apis/index.d.ts +2 -0
  6. package/dist/cjs/apis/index.js +2 -0
  7. package/dist/cjs/models/IncidentFormLifecycleElementConfigV3.d.ts +30 -0
  8. package/dist/cjs/models/IncidentFormLifecycleElementConfigV3.js +48 -0
  9. package/dist/cjs/models/IncidentFormLifecycleElementPayloadV3.d.ts +115 -0
  10. package/dist/cjs/models/IncidentFormLifecycleElementPayloadV3.js +110 -0
  11. package/dist/cjs/models/IncidentFormLifecycleElementV3.d.ts +115 -0
  12. package/dist/cjs/models/IncidentFormLifecycleElementV3.js +110 -0
  13. package/dist/cjs/models/IncidentFormV3.d.ts +68 -0
  14. package/dist/cjs/models/IncidentFormV3.js +85 -0
  15. package/dist/cjs/models/IncidentFormsCreatePayloadV3.d.ts +56 -0
  16. package/dist/cjs/models/IncidentFormsCreatePayloadV3.js +72 -0
  17. package/dist/cjs/models/IncidentFormsCreateResultV3.d.ts +31 -0
  18. package/dist/cjs/models/IncidentFormsCreateResultV3.js +51 -0
  19. package/dist/cjs/models/IncidentFormsListResultV3.d.ts +36 -0
  20. package/dist/cjs/models/IncidentFormsListResultV3.js +56 -0
  21. package/dist/cjs/models/IncidentFormsShowResultV3.d.ts +31 -0
  22. package/dist/cjs/models/IncidentFormsShowResultV3.js +51 -0
  23. package/dist/cjs/models/IncidentFormsUpdatePayloadV3.d.ts +56 -0
  24. package/dist/cjs/models/IncidentFormsUpdatePayloadV3.js +72 -0
  25. package/dist/cjs/models/IncidentFormsUpdateResultV3.d.ts +31 -0
  26. package/dist/cjs/models/IncidentFormsUpdateResultV3.js +51 -0
  27. package/dist/cjs/models/StatusPageComponentV2.d.ts +46 -0
  28. package/dist/cjs/models/StatusPageComponentV2.js +61 -0
  29. package/dist/cjs/models/StatusPageComponentsCreatePayloadV2.d.ts +34 -0
  30. package/dist/cjs/models/StatusPageComponentsCreatePayloadV2.js +52 -0
  31. package/dist/cjs/models/StatusPageComponentsCreateResultV2.d.ts +31 -0
  32. package/dist/cjs/models/StatusPageComponentsCreateResultV2.js +51 -0
  33. package/dist/cjs/models/StatusPageComponentsListResultV2.d.ts +31 -0
  34. package/dist/cjs/models/StatusPageComponentsListResultV2.js +51 -0
  35. package/dist/cjs/models/StatusPageComponentsShowResultV2.d.ts +31 -0
  36. package/dist/cjs/models/StatusPageComponentsShowResultV2.js +51 -0
  37. package/dist/cjs/models/StatusPageComponentsUpdatePayloadV2.d.ts +34 -0
  38. package/dist/cjs/models/StatusPageComponentsUpdatePayloadV2.js +52 -0
  39. package/dist/cjs/models/StatusPageComponentsUpdateResultV2.d.ts +31 -0
  40. package/dist/cjs/models/StatusPageComponentsUpdateResultV2.js +51 -0
  41. package/dist/cjs/models/index.d.ts +17 -0
  42. package/dist/cjs/models/index.js +17 -0
  43. package/dist/cjs/version.d.ts +1 -1
  44. package/dist/cjs/version.js +1 -1
  45. package/dist/esm/apis/IncidentFormsV3Api.d.ts +131 -0
  46. package/dist/esm/apis/IncidentFormsV3Api.js +242 -0
  47. package/dist/esm/apis/StatusPageComponentsV2Api.d.ts +129 -0
  48. package/dist/esm/apis/StatusPageComponentsV2Api.js +236 -0
  49. package/dist/esm/apis/index.d.ts +2 -0
  50. package/dist/esm/apis/index.js +2 -0
  51. package/dist/esm/models/IncidentFormLifecycleElementConfigV3.d.ts +30 -0
  52. package/dist/esm/models/IncidentFormLifecycleElementConfigV3.js +41 -0
  53. package/dist/esm/models/IncidentFormLifecycleElementPayloadV3.d.ts +115 -0
  54. package/dist/esm/models/IncidentFormLifecycleElementPayloadV3.js +102 -0
  55. package/dist/esm/models/IncidentFormLifecycleElementV3.d.ts +115 -0
  56. package/dist/esm/models/IncidentFormLifecycleElementV3.js +102 -0
  57. package/dist/esm/models/IncidentFormV3.d.ts +68 -0
  58. package/dist/esm/models/IncidentFormV3.js +77 -0
  59. package/dist/esm/models/IncidentFormsCreatePayloadV3.d.ts +56 -0
  60. package/dist/esm/models/IncidentFormsCreatePayloadV3.js +64 -0
  61. package/dist/esm/models/IncidentFormsCreateResultV3.d.ts +31 -0
  62. package/dist/esm/models/IncidentFormsCreateResultV3.js +44 -0
  63. package/dist/esm/models/IncidentFormsListResultV3.d.ts +36 -0
  64. package/dist/esm/models/IncidentFormsListResultV3.js +49 -0
  65. package/dist/esm/models/IncidentFormsShowResultV3.d.ts +31 -0
  66. package/dist/esm/models/IncidentFormsShowResultV3.js +44 -0
  67. package/dist/esm/models/IncidentFormsUpdatePayloadV3.d.ts +56 -0
  68. package/dist/esm/models/IncidentFormsUpdatePayloadV3.js +64 -0
  69. package/dist/esm/models/IncidentFormsUpdateResultV3.d.ts +31 -0
  70. package/dist/esm/models/IncidentFormsUpdateResultV3.js +44 -0
  71. package/dist/esm/models/StatusPageComponentV2.d.ts +46 -0
  72. package/dist/esm/models/StatusPageComponentV2.js +54 -0
  73. package/dist/esm/models/StatusPageComponentsCreatePayloadV2.d.ts +34 -0
  74. package/dist/esm/models/StatusPageComponentsCreatePayloadV2.js +45 -0
  75. package/dist/esm/models/StatusPageComponentsCreateResultV2.d.ts +31 -0
  76. package/dist/esm/models/StatusPageComponentsCreateResultV2.js +44 -0
  77. package/dist/esm/models/StatusPageComponentsListResultV2.d.ts +31 -0
  78. package/dist/esm/models/StatusPageComponentsListResultV2.js +44 -0
  79. package/dist/esm/models/StatusPageComponentsShowResultV2.d.ts +31 -0
  80. package/dist/esm/models/StatusPageComponentsShowResultV2.js +44 -0
  81. package/dist/esm/models/StatusPageComponentsUpdatePayloadV2.d.ts +34 -0
  82. package/dist/esm/models/StatusPageComponentsUpdatePayloadV2.js +45 -0
  83. package/dist/esm/models/StatusPageComponentsUpdateResultV2.d.ts +31 -0
  84. package/dist/esm/models/StatusPageComponentsUpdateResultV2.js +44 -0
  85. package/dist/esm/models/index.d.ts +17 -0
  86. package/dist/esm/models/index.js +17 -0
  87. package/dist/esm/version.d.ts +1 -1
  88. package/dist/esm/version.js +1 -1
  89. package/package.json +1 -1
@@ -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;
@@ -0,0 +1,64 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * incident.io
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { ExpressionPayloadV3FromJSON, ExpressionPayloadV3ToJSON, } from './ExpressionPayloadV3.js';
15
+ import { IncidentFormLifecycleElementPayloadV3FromJSON, IncidentFormLifecycleElementPayloadV3ToJSON, } from './IncidentFormLifecycleElementPayloadV3.js';
16
+ /**
17
+ * @export
18
+ */
19
+ export const IncidentFormsUpdatePayloadV3FormTypeEnum = {
20
+ Declare: 'declare',
21
+ Accept: 'accept',
22
+ Update: 'update',
23
+ Resolve: 'resolve',
24
+ Retrospective: 'retrospective',
25
+ CustomFields: 'custom-fields',
26
+ };
27
+ /**
28
+ * Check if a given object implements the IncidentFormsUpdatePayloadV3 interface.
29
+ */
30
+ export function instanceOfIncidentFormsUpdatePayloadV3(value) {
31
+ if (!('expressions' in value) || value['expressions'] === undefined)
32
+ return false;
33
+ if (!('form_type' in value) || value['form_type'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ export function IncidentFormsUpdatePayloadV3FromJSON(json) {
38
+ return IncidentFormsUpdatePayloadV3FromJSONTyped(json, false);
39
+ }
40
+ export function IncidentFormsUpdatePayloadV3FromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'expressions': (json['expressions'].map(ExpressionPayloadV3FromJSON)),
46
+ 'form_type': json['form_type'],
47
+ 'incident_type_id': json['incident_type_id'] == null ? undefined : json['incident_type_id'],
48
+ 'lifecycle_elements': json['lifecycle_elements'] == null ? undefined : (json['lifecycle_elements'].map(IncidentFormLifecycleElementPayloadV3FromJSON)),
49
+ };
50
+ }
51
+ export function IncidentFormsUpdatePayloadV3ToJSON(json) {
52
+ return IncidentFormsUpdatePayloadV3ToJSONTyped(json, false);
53
+ }
54
+ export function IncidentFormsUpdatePayloadV3ToJSONTyped(value, ignoreDiscriminator = false) {
55
+ if (value == null) {
56
+ return value;
57
+ }
58
+ return {
59
+ 'expressions': (value['expressions'].map(ExpressionPayloadV3ToJSON)),
60
+ 'form_type': value['form_type'],
61
+ 'incident_type_id': value['incident_type_id'],
62
+ 'lifecycle_elements': value['lifecycle_elements'] == null ? undefined : (value['lifecycle_elements'].map(IncidentFormLifecycleElementPayloadV3ToJSON)),
63
+ };
64
+ }
@@ -0,0 +1,31 @@
1
+ /**
2
+ * incident.io
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { IncidentFormV3 } from './IncidentFormV3.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface IncidentFormsUpdateResultV3
17
+ */
18
+ export interface IncidentFormsUpdateResultV3 {
19
+ /**
20
+ *
21
+ */
22
+ incident_form: IncidentFormV3;
23
+ }
24
+ /**
25
+ * Check if a given object implements the IncidentFormsUpdateResultV3 interface.
26
+ */
27
+ export declare function instanceOfIncidentFormsUpdateResultV3(value: object): value is IncidentFormsUpdateResultV3;
28
+ export declare function IncidentFormsUpdateResultV3FromJSON(json: any): IncidentFormsUpdateResultV3;
29
+ export declare function IncidentFormsUpdateResultV3FromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentFormsUpdateResultV3;
30
+ export declare function IncidentFormsUpdateResultV3ToJSON(json: any): IncidentFormsUpdateResultV3;
31
+ export declare function IncidentFormsUpdateResultV3ToJSONTyped(value?: IncidentFormsUpdateResultV3 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,44 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * incident.io
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { IncidentFormV3FromJSON, IncidentFormV3ToJSON, } from './IncidentFormV3.js';
15
+ /**
16
+ * Check if a given object implements the IncidentFormsUpdateResultV3 interface.
17
+ */
18
+ export function instanceOfIncidentFormsUpdateResultV3(value) {
19
+ if (!('incident_form' in value) || value['incident_form'] === undefined)
20
+ return false;
21
+ return true;
22
+ }
23
+ export function IncidentFormsUpdateResultV3FromJSON(json) {
24
+ return IncidentFormsUpdateResultV3FromJSONTyped(json, false);
25
+ }
26
+ export function IncidentFormsUpdateResultV3FromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'incident_form': IncidentFormV3FromJSON(json['incident_form']),
32
+ };
33
+ }
34
+ export function IncidentFormsUpdateResultV3ToJSON(json) {
35
+ return IncidentFormsUpdateResultV3ToJSONTyped(json, false);
36
+ }
37
+ export function IncidentFormsUpdateResultV3ToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'incident_form': IncidentFormV3ToJSON(value['incident_form']),
43
+ };
44
+ }
@@ -0,0 +1,46 @@
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 { ManagementMetaV2 } from './ManagementMetaV2.js';
13
+ /**
14
+ * A status page component that can appear on one or more status pages.
15
+ *
16
+ * Components are organisation-scoped. Placement on a page is controlled by that
17
+ * page's structure, not by ownership of the component.
18
+ * @export
19
+ * @interface StatusPageComponentV2
20
+ */
21
+ export interface StatusPageComponentV2 {
22
+ /**
23
+ * Optional short description of this component
24
+ */
25
+ description?: string;
26
+ /**
27
+ * Unique identifier for this component
28
+ */
29
+ id: string;
30
+ /**
31
+ *
32
+ */
33
+ management_meta: ManagementMetaV2;
34
+ /**
35
+ * Human-readable name for the component
36
+ */
37
+ name: string;
38
+ }
39
+ /**
40
+ * Check if a given object implements the StatusPageComponentV2 interface.
41
+ */
42
+ export declare function instanceOfStatusPageComponentV2(value: object): value is StatusPageComponentV2;
43
+ export declare function StatusPageComponentV2FromJSON(json: any): StatusPageComponentV2;
44
+ export declare function StatusPageComponentV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): StatusPageComponentV2;
45
+ export declare function StatusPageComponentV2ToJSON(json: any): StatusPageComponentV2;
46
+ export declare function StatusPageComponentV2ToJSONTyped(value?: StatusPageComponentV2 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
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 { ManagementMetaV2FromJSON, ManagementMetaV2ToJSON, } from './ManagementMetaV2.js';
15
+ /**
16
+ * Check if a given object implements the StatusPageComponentV2 interface.
17
+ */
18
+ export function instanceOfStatusPageComponentV2(value) {
19
+ if (!('id' in value) || value['id'] === undefined)
20
+ return false;
21
+ if (!('management_meta' in value) || value['management_meta'] === undefined)
22
+ return false;
23
+ if (!('name' in value) || value['name'] === undefined)
24
+ return false;
25
+ return true;
26
+ }
27
+ export function StatusPageComponentV2FromJSON(json) {
28
+ return StatusPageComponentV2FromJSONTyped(json, false);
29
+ }
30
+ export function StatusPageComponentV2FromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'description': json['description'] == null ? undefined : json['description'],
36
+ 'id': json['id'],
37
+ 'management_meta': ManagementMetaV2FromJSON(json['management_meta']),
38
+ 'name': json['name'],
39
+ };
40
+ }
41
+ export function StatusPageComponentV2ToJSON(json) {
42
+ return StatusPageComponentV2ToJSONTyped(json, false);
43
+ }
44
+ export function StatusPageComponentV2ToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'description': value['description'],
50
+ 'id': value['id'],
51
+ 'management_meta': ManagementMetaV2ToJSON(value['management_meta']),
52
+ 'name': value['name'],
53
+ };
54
+ }