@incident-io/sdk 2.1.0 → 2.2.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.
@@ -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
+ /**
13
+ *
14
+ * @export
15
+ * @interface PolicyFindingShiftConflictShiftV2
16
+ */
17
+ export interface PolicyFindingShiftConflictShiftV2 {
18
+ /**
19
+ * When this shift ends, which can be after the conflict does
20
+ */
21
+ end_at: Date;
22
+ /**
23
+ * The layer this shift belongs to
24
+ */
25
+ layer_id?: string;
26
+ /**
27
+ * The rotation this shift belongs to
28
+ */
29
+ rotation_id?: string;
30
+ /**
31
+ * The schedule this shift belongs to
32
+ */
33
+ schedule_id: string;
34
+ /**
35
+ * When this shift starts, which can be before the conflict does
36
+ */
37
+ start_at: Date;
38
+ }
39
+ /**
40
+ * Check if a given object implements the PolicyFindingShiftConflictShiftV2 interface.
41
+ */
42
+ export declare function instanceOfPolicyFindingShiftConflictShiftV2(value: object): value is PolicyFindingShiftConflictShiftV2;
43
+ export declare function PolicyFindingShiftConflictShiftV2FromJSON(json: any): PolicyFindingShiftConflictShiftV2;
44
+ export declare function PolicyFindingShiftConflictShiftV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): PolicyFindingShiftConflictShiftV2;
45
+ export declare function PolicyFindingShiftConflictShiftV2ToJSON(json: any): PolicyFindingShiftConflictShiftV2;
46
+ export declare function PolicyFindingShiftConflictShiftV2ToJSONTyped(value?: PolicyFindingShiftConflictShiftV2 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,63 @@
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.instanceOfPolicyFindingShiftConflictShiftV2 = instanceOfPolicyFindingShiftConflictShiftV2;
17
+ exports.PolicyFindingShiftConflictShiftV2FromJSON = PolicyFindingShiftConflictShiftV2FromJSON;
18
+ exports.PolicyFindingShiftConflictShiftV2FromJSONTyped = PolicyFindingShiftConflictShiftV2FromJSONTyped;
19
+ exports.PolicyFindingShiftConflictShiftV2ToJSON = PolicyFindingShiftConflictShiftV2ToJSON;
20
+ exports.PolicyFindingShiftConflictShiftV2ToJSONTyped = PolicyFindingShiftConflictShiftV2ToJSONTyped;
21
+ const runtime_js_1 = require("../runtime.js");
22
+ /**
23
+ * Check if a given object implements the PolicyFindingShiftConflictShiftV2 interface.
24
+ */
25
+ function instanceOfPolicyFindingShiftConflictShiftV2(value) {
26
+ if (!('end_at' in value) || value['end_at'] === undefined)
27
+ return false;
28
+ if (!('schedule_id' in value) || value['schedule_id'] === undefined)
29
+ return false;
30
+ if (!('start_at' in value) || value['start_at'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ function PolicyFindingShiftConflictShiftV2FromJSON(json) {
35
+ return PolicyFindingShiftConflictShiftV2FromJSONTyped(json, false);
36
+ }
37
+ function PolicyFindingShiftConflictShiftV2FromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'end_at': (json['end_at'] == null ? json['end_at'] : (0, runtime_js_1.parseDateTime)(json['end_at'])),
43
+ 'layer_id': json['layer_id'] == null ? undefined : json['layer_id'],
44
+ 'rotation_id': json['rotation_id'] == null ? undefined : json['rotation_id'],
45
+ 'schedule_id': json['schedule_id'],
46
+ 'start_at': (json['start_at'] == null ? json['start_at'] : (0, runtime_js_1.parseDateTime)(json['start_at'])),
47
+ };
48
+ }
49
+ function PolicyFindingShiftConflictShiftV2ToJSON(json) {
50
+ return PolicyFindingShiftConflictShiftV2ToJSONTyped(json, false);
51
+ }
52
+ function PolicyFindingShiftConflictShiftV2ToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'end_at': value['end_at'] == null ? value['end_at'] : (0, runtime_js_1.serializeDateTime)(value['end_at']),
58
+ 'layer_id': value['layer_id'],
59
+ 'rotation_id': value['rotation_id'],
60
+ 'schedule_id': value['schedule_id'],
61
+ 'start_at': value['start_at'] == null ? value['start_at'] : (0, runtime_js_1.serializeDateTime)(value['start_at']),
62
+ };
63
+ }
@@ -0,0 +1,43 @@
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 { PolicyFindingShiftConflictShiftV2 } from './PolicyFindingShiftConflictShiftV2.js';
13
+ /**
14
+ * Set when policy_type is shift_conflict. Someone is on call in two or more places at once.
15
+ * @export
16
+ * @interface PolicyFindingShiftConflictV2
17
+ */
18
+ export interface PolicyFindingShiftConflictV2 {
19
+ /**
20
+ * When the conflict ends
21
+ */
22
+ end_at: Date;
23
+ /**
24
+ * Every shift that overlaps the conflict
25
+ */
26
+ shifts: Array<PolicyFindingShiftConflictShiftV2>;
27
+ /**
28
+ * When the conflict starts
29
+ */
30
+ start_at: Date;
31
+ /**
32
+ * The user with overlapping shifts
33
+ */
34
+ user_id: string;
35
+ }
36
+ /**
37
+ * Check if a given object implements the PolicyFindingShiftConflictV2 interface.
38
+ */
39
+ export declare function instanceOfPolicyFindingShiftConflictV2(value: object): value is PolicyFindingShiftConflictV2;
40
+ export declare function PolicyFindingShiftConflictV2FromJSON(json: any): PolicyFindingShiftConflictV2;
41
+ export declare function PolicyFindingShiftConflictV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): PolicyFindingShiftConflictV2;
42
+ export declare function PolicyFindingShiftConflictV2ToJSON(json: any): PolicyFindingShiftConflictV2;
43
+ export declare function PolicyFindingShiftConflictV2ToJSONTyped(value?: PolicyFindingShiftConflictV2 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,64 @@
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.instanceOfPolicyFindingShiftConflictV2 = instanceOfPolicyFindingShiftConflictV2;
17
+ exports.PolicyFindingShiftConflictV2FromJSON = PolicyFindingShiftConflictV2FromJSON;
18
+ exports.PolicyFindingShiftConflictV2FromJSONTyped = PolicyFindingShiftConflictV2FromJSONTyped;
19
+ exports.PolicyFindingShiftConflictV2ToJSON = PolicyFindingShiftConflictV2ToJSON;
20
+ exports.PolicyFindingShiftConflictV2ToJSONTyped = PolicyFindingShiftConflictV2ToJSONTyped;
21
+ const runtime_js_1 = require("../runtime.js");
22
+ const PolicyFindingShiftConflictShiftV2_js_1 = require("./PolicyFindingShiftConflictShiftV2.js");
23
+ /**
24
+ * Check if a given object implements the PolicyFindingShiftConflictV2 interface.
25
+ */
26
+ function instanceOfPolicyFindingShiftConflictV2(value) {
27
+ if (!('end_at' in value) || value['end_at'] === undefined)
28
+ return false;
29
+ if (!('shifts' in value) || value['shifts'] === undefined)
30
+ return false;
31
+ if (!('start_at' in value) || value['start_at'] === undefined)
32
+ return false;
33
+ if (!('user_id' in value) || value['user_id'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ function PolicyFindingShiftConflictV2FromJSON(json) {
38
+ return PolicyFindingShiftConflictV2FromJSONTyped(json, false);
39
+ }
40
+ function PolicyFindingShiftConflictV2FromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'end_at': (json['end_at'] == null ? json['end_at'] : (0, runtime_js_1.parseDateTime)(json['end_at'])),
46
+ 'shifts': (json['shifts'].map(PolicyFindingShiftConflictShiftV2_js_1.PolicyFindingShiftConflictShiftV2FromJSON)),
47
+ 'start_at': (json['start_at'] == null ? json['start_at'] : (0, runtime_js_1.parseDateTime)(json['start_at'])),
48
+ 'user_id': json['user_id'],
49
+ };
50
+ }
51
+ function PolicyFindingShiftConflictV2ToJSON(json) {
52
+ return PolicyFindingShiftConflictV2ToJSONTyped(json, false);
53
+ }
54
+ function PolicyFindingShiftConflictV2ToJSONTyped(value, ignoreDiscriminator = false) {
55
+ if (value == null) {
56
+ return value;
57
+ }
58
+ return {
59
+ 'end_at': value['end_at'] == null ? value['end_at'] : (0, runtime_js_1.serializeDateTime)(value['end_at']),
60
+ 'shifts': (value['shifts'].map(PolicyFindingShiftConflictShiftV2_js_1.PolicyFindingShiftConflictShiftV2ToJSON)),
61
+ 'start_at': value['start_at'] == null ? value['start_at'] : (0, runtime_js_1.serializeDateTime)(value['start_at']),
62
+ 'user_id': value['user_id'],
63
+ };
64
+ }
@@ -14,6 +14,7 @@ import type { PolicyFindingDebriefV2 } from './PolicyFindingDebriefV2.js';
14
14
  import type { PolicyFindingDismissalV2 } from './PolicyFindingDismissalV2.js';
15
15
  import type { UserV2 } from './UserV2.js';
16
16
  import type { PolicyFindingOnCallReadinessV2 } from './PolicyFindingOnCallReadinessV2.js';
17
+ import type { PolicyFindingShiftConflictV2 } from './PolicyFindingShiftConflictV2.js';
17
18
  import type { PolicyFindingScheduleV2 } from './PolicyFindingScheduleV2.js';
18
19
  import type { PolicyFindingFollowUpV2 } from './PolicyFindingFollowUpV2.js';
19
20
  import type { PolicyFindingVacationConflictV2 } from './PolicyFindingVacationConflictV2.js';
@@ -79,6 +80,10 @@ export interface PolicyFindingV2 {
79
80
  *
80
81
  */
81
82
  schedule?: PolicyFindingScheduleV2;
83
+ /**
84
+ *
85
+ */
86
+ shift_conflict?: PolicyFindingShiftConflictV2;
82
87
  /**
83
88
  * Where this finding is in its lifecycle
84
89
  */
@@ -25,6 +25,7 @@ const PolicyFindingDebriefV2_js_1 = require("./PolicyFindingDebriefV2.js");
25
25
  const PolicyFindingDismissalV2_js_1 = require("./PolicyFindingDismissalV2.js");
26
26
  const UserV2_js_1 = require("./UserV2.js");
27
27
  const PolicyFindingOnCallReadinessV2_js_1 = require("./PolicyFindingOnCallReadinessV2.js");
28
+ const PolicyFindingShiftConflictV2_js_1 = require("./PolicyFindingShiftConflictV2.js");
28
29
  const PolicyFindingScheduleV2_js_1 = require("./PolicyFindingScheduleV2.js");
29
30
  const PolicyFindingFollowUpV2_js_1 = require("./PolicyFindingFollowUpV2.js");
30
31
  const PolicyFindingVacationConflictV2_js_1 = require("./PolicyFindingVacationConflictV2.js");
@@ -94,6 +95,7 @@ function PolicyFindingV2FromJSONTyped(json, ignoreDiscriminator) {
94
95
  'post_mortem': json['post_mortem'] == null ? undefined : (0, PolicyFindingPostMortemV2_js_1.PolicyFindingPostMortemV2FromJSON)(json['post_mortem']),
95
96
  'responsible_users': (json['responsible_users'].map(UserV2_js_1.UserV2FromJSON)),
96
97
  'schedule': json['schedule'] == null ? undefined : (0, PolicyFindingScheduleV2_js_1.PolicyFindingScheduleV2FromJSON)(json['schedule']),
98
+ 'shift_conflict': json['shift_conflict'] == null ? undefined : (0, PolicyFindingShiftConflictV2_js_1.PolicyFindingShiftConflictV2FromJSON)(json['shift_conflict']),
97
99
  'state': json['state'],
98
100
  'updated_at': (json['updated_at'] == null ? json['updated_at'] : (0, runtime_js_1.parseDateTime)(json['updated_at'])),
99
101
  'vacation_conflict': json['vacation_conflict'] == null ? undefined : (0, PolicyFindingVacationConflictV2_js_1.PolicyFindingVacationConflictV2FromJSON)(json['vacation_conflict']),
@@ -121,6 +123,7 @@ function PolicyFindingV2ToJSONTyped(value, ignoreDiscriminator = false) {
121
123
  'post_mortem': (0, PolicyFindingPostMortemV2_js_1.PolicyFindingPostMortemV2ToJSON)(value['post_mortem']),
122
124
  'responsible_users': (value['responsible_users'].map(UserV2_js_1.UserV2ToJSON)),
123
125
  'schedule': (0, PolicyFindingScheduleV2_js_1.PolicyFindingScheduleV2ToJSON)(value['schedule']),
126
+ 'shift_conflict': (0, PolicyFindingShiftConflictV2_js_1.PolicyFindingShiftConflictV2ToJSON)(value['shift_conflict']),
124
127
  'state': value['state'],
125
128
  'updated_at': value['updated_at'] == null ? value['updated_at'] : (0, runtime_js_1.serializeDateTime)(value['updated_at']),
126
129
  'vacation_conflict': (0, PolicyFindingVacationConflictV2_js_1.PolicyFindingVacationConflictV2ToJSON)(value['vacation_conflict']),
@@ -933,6 +933,8 @@ export * from './PolicyFindingPostMortemV2.js';
933
933
  export * from './PolicyFindingReadinessRuleV2.js';
934
934
  export * from './PolicyFindingScheduleImpactedUserV2.js';
935
935
  export * from './PolicyFindingScheduleV2.js';
936
+ export * from './PolicyFindingShiftConflictShiftV2.js';
937
+ export * from './PolicyFindingShiftConflictV2.js';
936
938
  export * from './PolicyFindingV2.js';
937
939
  export * from './PolicyFindingVacationConflictV2.js';
938
940
  export * from './PolicyFindingsDismissPayloadV2.js';
@@ -951,6 +951,8 @@ __exportStar(require("./PolicyFindingPostMortemV2.js"), exports);
951
951
  __exportStar(require("./PolicyFindingReadinessRuleV2.js"), exports);
952
952
  __exportStar(require("./PolicyFindingScheduleImpactedUserV2.js"), exports);
953
953
  __exportStar(require("./PolicyFindingScheduleV2.js"), exports);
954
+ __exportStar(require("./PolicyFindingShiftConflictShiftV2.js"), exports);
955
+ __exportStar(require("./PolicyFindingShiftConflictV2.js"), exports);
954
956
  __exportStar(require("./PolicyFindingV2.js"), exports);
955
957
  __exportStar(require("./PolicyFindingVacationConflictV2.js"), exports);
956
958
  __exportStar(require("./PolicyFindingsDismissPayloadV2.js"), exports);
@@ -1 +1 @@
1
- export declare const VERSION = "2.1.0";
1
+ export declare const VERSION = "2.2.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.1.0";
5
+ exports.VERSION = "2.2.0";
@@ -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
+ /**
13
+ *
14
+ * @export
15
+ * @interface PolicyFindingShiftConflictShiftV2
16
+ */
17
+ export interface PolicyFindingShiftConflictShiftV2 {
18
+ /**
19
+ * When this shift ends, which can be after the conflict does
20
+ */
21
+ end_at: Date;
22
+ /**
23
+ * The layer this shift belongs to
24
+ */
25
+ layer_id?: string;
26
+ /**
27
+ * The rotation this shift belongs to
28
+ */
29
+ rotation_id?: string;
30
+ /**
31
+ * The schedule this shift belongs to
32
+ */
33
+ schedule_id: string;
34
+ /**
35
+ * When this shift starts, which can be before the conflict does
36
+ */
37
+ start_at: Date;
38
+ }
39
+ /**
40
+ * Check if a given object implements the PolicyFindingShiftConflictShiftV2 interface.
41
+ */
42
+ export declare function instanceOfPolicyFindingShiftConflictShiftV2(value: object): value is PolicyFindingShiftConflictShiftV2;
43
+ export declare function PolicyFindingShiftConflictShiftV2FromJSON(json: any): PolicyFindingShiftConflictShiftV2;
44
+ export declare function PolicyFindingShiftConflictShiftV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): PolicyFindingShiftConflictShiftV2;
45
+ export declare function PolicyFindingShiftConflictShiftV2ToJSON(json: any): PolicyFindingShiftConflictShiftV2;
46
+ export declare function PolicyFindingShiftConflictShiftV2ToJSONTyped(value?: PolicyFindingShiftConflictShiftV2 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,56 @@
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
+ /**
16
+ * Check if a given object implements the PolicyFindingShiftConflictShiftV2 interface.
17
+ */
18
+ export function instanceOfPolicyFindingShiftConflictShiftV2(value) {
19
+ if (!('end_at' in value) || value['end_at'] === undefined)
20
+ return false;
21
+ if (!('schedule_id' in value) || value['schedule_id'] === undefined)
22
+ return false;
23
+ if (!('start_at' in value) || value['start_at'] === undefined)
24
+ return false;
25
+ return true;
26
+ }
27
+ export function PolicyFindingShiftConflictShiftV2FromJSON(json) {
28
+ return PolicyFindingShiftConflictShiftV2FromJSONTyped(json, false);
29
+ }
30
+ export function PolicyFindingShiftConflictShiftV2FromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'end_at': (json['end_at'] == null ? json['end_at'] : parseDateTime(json['end_at'])),
36
+ 'layer_id': json['layer_id'] == null ? undefined : json['layer_id'],
37
+ 'rotation_id': json['rotation_id'] == null ? undefined : json['rotation_id'],
38
+ 'schedule_id': json['schedule_id'],
39
+ 'start_at': (json['start_at'] == null ? json['start_at'] : parseDateTime(json['start_at'])),
40
+ };
41
+ }
42
+ export function PolicyFindingShiftConflictShiftV2ToJSON(json) {
43
+ return PolicyFindingShiftConflictShiftV2ToJSONTyped(json, false);
44
+ }
45
+ export function PolicyFindingShiftConflictShiftV2ToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'end_at': value['end_at'] == null ? value['end_at'] : serializeDateTime(value['end_at']),
51
+ 'layer_id': value['layer_id'],
52
+ 'rotation_id': value['rotation_id'],
53
+ 'schedule_id': value['schedule_id'],
54
+ 'start_at': value['start_at'] == null ? value['start_at'] : serializeDateTime(value['start_at']),
55
+ };
56
+ }
@@ -0,0 +1,43 @@
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 { PolicyFindingShiftConflictShiftV2 } from './PolicyFindingShiftConflictShiftV2.js';
13
+ /**
14
+ * Set when policy_type is shift_conflict. Someone is on call in two or more places at once.
15
+ * @export
16
+ * @interface PolicyFindingShiftConflictV2
17
+ */
18
+ export interface PolicyFindingShiftConflictV2 {
19
+ /**
20
+ * When the conflict ends
21
+ */
22
+ end_at: Date;
23
+ /**
24
+ * Every shift that overlaps the conflict
25
+ */
26
+ shifts: Array<PolicyFindingShiftConflictShiftV2>;
27
+ /**
28
+ * When the conflict starts
29
+ */
30
+ start_at: Date;
31
+ /**
32
+ * The user with overlapping shifts
33
+ */
34
+ user_id: string;
35
+ }
36
+ /**
37
+ * Check if a given object implements the PolicyFindingShiftConflictV2 interface.
38
+ */
39
+ export declare function instanceOfPolicyFindingShiftConflictV2(value: object): value is PolicyFindingShiftConflictV2;
40
+ export declare function PolicyFindingShiftConflictV2FromJSON(json: any): PolicyFindingShiftConflictV2;
41
+ export declare function PolicyFindingShiftConflictV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): PolicyFindingShiftConflictV2;
42
+ export declare function PolicyFindingShiftConflictV2ToJSON(json: any): PolicyFindingShiftConflictV2;
43
+ export declare function PolicyFindingShiftConflictV2ToJSONTyped(value?: PolicyFindingShiftConflictV2 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,57 @@
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 { PolicyFindingShiftConflictShiftV2FromJSON, PolicyFindingShiftConflictShiftV2ToJSON, } from './PolicyFindingShiftConflictShiftV2.js';
16
+ /**
17
+ * Check if a given object implements the PolicyFindingShiftConflictV2 interface.
18
+ */
19
+ export function instanceOfPolicyFindingShiftConflictV2(value) {
20
+ if (!('end_at' in value) || value['end_at'] === undefined)
21
+ return false;
22
+ if (!('shifts' in value) || value['shifts'] === undefined)
23
+ return false;
24
+ if (!('start_at' in value) || value['start_at'] === undefined)
25
+ return false;
26
+ if (!('user_id' in value) || value['user_id'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ export function PolicyFindingShiftConflictV2FromJSON(json) {
31
+ return PolicyFindingShiftConflictV2FromJSONTyped(json, false);
32
+ }
33
+ export function PolicyFindingShiftConflictV2FromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'end_at': (json['end_at'] == null ? json['end_at'] : parseDateTime(json['end_at'])),
39
+ 'shifts': (json['shifts'].map(PolicyFindingShiftConflictShiftV2FromJSON)),
40
+ 'start_at': (json['start_at'] == null ? json['start_at'] : parseDateTime(json['start_at'])),
41
+ 'user_id': json['user_id'],
42
+ };
43
+ }
44
+ export function PolicyFindingShiftConflictV2ToJSON(json) {
45
+ return PolicyFindingShiftConflictV2ToJSONTyped(json, false);
46
+ }
47
+ export function PolicyFindingShiftConflictV2ToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'end_at': value['end_at'] == null ? value['end_at'] : serializeDateTime(value['end_at']),
53
+ 'shifts': (value['shifts'].map(PolicyFindingShiftConflictShiftV2ToJSON)),
54
+ 'start_at': value['start_at'] == null ? value['start_at'] : serializeDateTime(value['start_at']),
55
+ 'user_id': value['user_id'],
56
+ };
57
+ }
@@ -14,6 +14,7 @@ import type { PolicyFindingDebriefV2 } from './PolicyFindingDebriefV2.js';
14
14
  import type { PolicyFindingDismissalV2 } from './PolicyFindingDismissalV2.js';
15
15
  import type { UserV2 } from './UserV2.js';
16
16
  import type { PolicyFindingOnCallReadinessV2 } from './PolicyFindingOnCallReadinessV2.js';
17
+ import type { PolicyFindingShiftConflictV2 } from './PolicyFindingShiftConflictV2.js';
17
18
  import type { PolicyFindingScheduleV2 } from './PolicyFindingScheduleV2.js';
18
19
  import type { PolicyFindingFollowUpV2 } from './PolicyFindingFollowUpV2.js';
19
20
  import type { PolicyFindingVacationConflictV2 } from './PolicyFindingVacationConflictV2.js';
@@ -79,6 +80,10 @@ export interface PolicyFindingV2 {
79
80
  *
80
81
  */
81
82
  schedule?: PolicyFindingScheduleV2;
83
+ /**
84
+ *
85
+ */
86
+ shift_conflict?: PolicyFindingShiftConflictV2;
82
87
  /**
83
88
  * Where this finding is in its lifecycle
84
89
  */
@@ -17,6 +17,7 @@ import { PolicyFindingDebriefV2FromJSON, PolicyFindingDebriefV2ToJSON, } from '.
17
17
  import { PolicyFindingDismissalV2FromJSON, PolicyFindingDismissalV2ToJSON, } from './PolicyFindingDismissalV2.js';
18
18
  import { UserV2FromJSON, UserV2ToJSON, } from './UserV2.js';
19
19
  import { PolicyFindingOnCallReadinessV2FromJSON, PolicyFindingOnCallReadinessV2ToJSON, } from './PolicyFindingOnCallReadinessV2.js';
20
+ import { PolicyFindingShiftConflictV2FromJSON, PolicyFindingShiftConflictV2ToJSON, } from './PolicyFindingShiftConflictV2.js';
20
21
  import { PolicyFindingScheduleV2FromJSON, PolicyFindingScheduleV2ToJSON, } from './PolicyFindingScheduleV2.js';
21
22
  import { PolicyFindingFollowUpV2FromJSON, PolicyFindingFollowUpV2ToJSON, } from './PolicyFindingFollowUpV2.js';
22
23
  import { PolicyFindingVacationConflictV2FromJSON, PolicyFindingVacationConflictV2ToJSON, } from './PolicyFindingVacationConflictV2.js';
@@ -86,6 +87,7 @@ export function PolicyFindingV2FromJSONTyped(json, ignoreDiscriminator) {
86
87
  'post_mortem': json['post_mortem'] == null ? undefined : PolicyFindingPostMortemV2FromJSON(json['post_mortem']),
87
88
  'responsible_users': (json['responsible_users'].map(UserV2FromJSON)),
88
89
  'schedule': json['schedule'] == null ? undefined : PolicyFindingScheduleV2FromJSON(json['schedule']),
90
+ 'shift_conflict': json['shift_conflict'] == null ? undefined : PolicyFindingShiftConflictV2FromJSON(json['shift_conflict']),
89
91
  'state': json['state'],
90
92
  'updated_at': (json['updated_at'] == null ? json['updated_at'] : parseDateTime(json['updated_at'])),
91
93
  'vacation_conflict': json['vacation_conflict'] == null ? undefined : PolicyFindingVacationConflictV2FromJSON(json['vacation_conflict']),
@@ -113,6 +115,7 @@ export function PolicyFindingV2ToJSONTyped(value, ignoreDiscriminator = false) {
113
115
  'post_mortem': PolicyFindingPostMortemV2ToJSON(value['post_mortem']),
114
116
  'responsible_users': (value['responsible_users'].map(UserV2ToJSON)),
115
117
  'schedule': PolicyFindingScheduleV2ToJSON(value['schedule']),
118
+ 'shift_conflict': PolicyFindingShiftConflictV2ToJSON(value['shift_conflict']),
116
119
  'state': value['state'],
117
120
  'updated_at': value['updated_at'] == null ? value['updated_at'] : serializeDateTime(value['updated_at']),
118
121
  'vacation_conflict': PolicyFindingVacationConflictV2ToJSON(value['vacation_conflict']),
@@ -933,6 +933,8 @@ export * from './PolicyFindingPostMortemV2.js';
933
933
  export * from './PolicyFindingReadinessRuleV2.js';
934
934
  export * from './PolicyFindingScheduleImpactedUserV2.js';
935
935
  export * from './PolicyFindingScheduleV2.js';
936
+ export * from './PolicyFindingShiftConflictShiftV2.js';
937
+ export * from './PolicyFindingShiftConflictV2.js';
936
938
  export * from './PolicyFindingV2.js';
937
939
  export * from './PolicyFindingVacationConflictV2.js';
938
940
  export * from './PolicyFindingsDismissPayloadV2.js';
@@ -935,6 +935,8 @@ export * from './PolicyFindingPostMortemV2.js';
935
935
  export * from './PolicyFindingReadinessRuleV2.js';
936
936
  export * from './PolicyFindingScheduleImpactedUserV2.js';
937
937
  export * from './PolicyFindingScheduleV2.js';
938
+ export * from './PolicyFindingShiftConflictShiftV2.js';
939
+ export * from './PolicyFindingShiftConflictV2.js';
938
940
  export * from './PolicyFindingV2.js';
939
941
  export * from './PolicyFindingVacationConflictV2.js';
940
942
  export * from './PolicyFindingsDismissPayloadV2.js';
@@ -1 +1 @@
1
- export declare const VERSION = "2.1.0";
1
+ export declare const VERSION = "2.2.0";
@@ -1,2 +1,2 @@
1
1
  // Written by `make build` from package.json. Do not edit.
2
- export const VERSION = "2.1.0";
2
+ export const VERSION = "2.2.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incident-io/sdk",
3
- "version": "2.1.0",
3
+ "version": "2.2.0",
4
4
  "description": "TypeScript SDK for the incident.io API",
5
5
  "license": "MIT",
6
6
  "author": "incident.io <support@incident.io>",