@incident-io/sdk 2.0.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.
Files changed (49) hide show
  1. package/dist/cjs/apis/IncidentTeamMembershipsV1Api.d.ts +60 -0
  2. package/dist/cjs/apis/IncidentTeamMembershipsV1Api.js +144 -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/IncidentTeamMembershipV1.d.ts +47 -0
  6. package/dist/cjs/models/IncidentTeamMembershipV1.js +68 -0
  7. package/dist/cjs/models/IncidentTeamMembershipsCreatePayloadV1.d.ts +34 -0
  8. package/dist/cjs/models/IncidentTeamMembershipsCreatePayloadV1.js +54 -0
  9. package/dist/cjs/models/IncidentTeamMembershipsCreateResultV1.d.ts +31 -0
  10. package/dist/cjs/models/IncidentTeamMembershipsCreateResultV1.js +51 -0
  11. package/dist/cjs/models/IncidentTeamMembershipsRevokePayloadV1.d.ts +34 -0
  12. package/dist/cjs/models/IncidentTeamMembershipsRevokePayloadV1.js +54 -0
  13. package/dist/cjs/models/IncidentTeamV1.d.ts +34 -0
  14. package/dist/cjs/models/IncidentTeamV1.js +54 -0
  15. package/dist/cjs/models/PolicyFindingShiftConflictShiftV2.d.ts +46 -0
  16. package/dist/cjs/models/PolicyFindingShiftConflictShiftV2.js +63 -0
  17. package/dist/cjs/models/PolicyFindingShiftConflictV2.d.ts +43 -0
  18. package/dist/cjs/models/PolicyFindingShiftConflictV2.js +64 -0
  19. package/dist/cjs/models/PolicyFindingV2.d.ts +5 -0
  20. package/dist/cjs/models/PolicyFindingV2.js +3 -0
  21. package/dist/cjs/models/index.d.ts +7 -0
  22. package/dist/cjs/models/index.js +7 -0
  23. package/dist/cjs/version.d.ts +1 -1
  24. package/dist/cjs/version.js +1 -1
  25. package/dist/esm/apis/IncidentTeamMembershipsV1Api.d.ts +60 -0
  26. package/dist/esm/apis/IncidentTeamMembershipsV1Api.js +107 -0
  27. package/dist/esm/apis/index.d.ts +1 -0
  28. package/dist/esm/apis/index.js +1 -0
  29. package/dist/esm/models/IncidentTeamMembershipV1.d.ts +47 -0
  30. package/dist/esm/models/IncidentTeamMembershipV1.js +61 -0
  31. package/dist/esm/models/IncidentTeamMembershipsCreatePayloadV1.d.ts +34 -0
  32. package/dist/esm/models/IncidentTeamMembershipsCreatePayloadV1.js +47 -0
  33. package/dist/esm/models/IncidentTeamMembershipsCreateResultV1.d.ts +31 -0
  34. package/dist/esm/models/IncidentTeamMembershipsCreateResultV1.js +44 -0
  35. package/dist/esm/models/IncidentTeamMembershipsRevokePayloadV1.d.ts +34 -0
  36. package/dist/esm/models/IncidentTeamMembershipsRevokePayloadV1.js +47 -0
  37. package/dist/esm/models/IncidentTeamV1.d.ts +34 -0
  38. package/dist/esm/models/IncidentTeamV1.js +47 -0
  39. package/dist/esm/models/PolicyFindingShiftConflictShiftV2.d.ts +46 -0
  40. package/dist/esm/models/PolicyFindingShiftConflictShiftV2.js +56 -0
  41. package/dist/esm/models/PolicyFindingShiftConflictV2.d.ts +43 -0
  42. package/dist/esm/models/PolicyFindingShiftConflictV2.js +57 -0
  43. package/dist/esm/models/PolicyFindingV2.d.ts +5 -0
  44. package/dist/esm/models/PolicyFindingV2.js +3 -0
  45. package/dist/esm/models/index.d.ts +7 -0
  46. package/dist/esm/models/index.js +7 -0
  47. package/dist/esm/version.d.ts +1 -1
  48. package/dist/esm/version.js +1 -1
  49. package/package.json +1 -1
@@ -0,0 +1,61 @@
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 { IncidentTeamV1FromJSON, IncidentTeamV1ToJSON, } from './IncidentTeamV1.js';
16
+ /**
17
+ * Check if a given object implements the IncidentTeamMembershipV1 interface.
18
+ */
19
+ export function instanceOfIncidentTeamMembershipV1(value) {
20
+ if (!('created_at' in value) || value['created_at'] === undefined)
21
+ return false;
22
+ if (!('id' in value) || value['id'] === undefined)
23
+ return false;
24
+ if (!('incident_id' in value) || value['incident_id'] === undefined)
25
+ return false;
26
+ if (!('team' in value) || value['team'] === undefined)
27
+ return false;
28
+ if (!('updated_at' in value) || value['updated_at'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ export function IncidentTeamMembershipV1FromJSON(json) {
33
+ return IncidentTeamMembershipV1FromJSONTyped(json, false);
34
+ }
35
+ export function IncidentTeamMembershipV1FromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'created_at': (json['created_at'] == null ? json['created_at'] : parseDateTime(json['created_at'])),
41
+ 'id': json['id'],
42
+ 'incident_id': json['incident_id'],
43
+ 'team': IncidentTeamV1FromJSON(json['team']),
44
+ 'updated_at': (json['updated_at'] == null ? json['updated_at'] : parseDateTime(json['updated_at'])),
45
+ };
46
+ }
47
+ export function IncidentTeamMembershipV1ToJSON(json) {
48
+ return IncidentTeamMembershipV1ToJSONTyped(json, false);
49
+ }
50
+ export function IncidentTeamMembershipV1ToJSONTyped(value, ignoreDiscriminator = false) {
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'created_at': value['created_at'] == null ? value['created_at'] : serializeDateTime(value['created_at']),
56
+ 'id': value['id'],
57
+ 'incident_id': value['incident_id'],
58
+ 'team': IncidentTeamV1ToJSON(value['team']),
59
+ 'updated_at': value['updated_at'] == null ? value['updated_at'] : serializeDateTime(value['updated_at']),
60
+ };
61
+ }
@@ -0,0 +1,34 @@
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 IncidentTeamMembershipsCreatePayloadV1
16
+ */
17
+ export interface IncidentTeamMembershipsCreatePayloadV1 {
18
+ /**
19
+ *
20
+ */
21
+ incident_id: string;
22
+ /**
23
+ *
24
+ */
25
+ team_id: string;
26
+ }
27
+ /**
28
+ * Check if a given object implements the IncidentTeamMembershipsCreatePayloadV1 interface.
29
+ */
30
+ export declare function instanceOfIncidentTeamMembershipsCreatePayloadV1(value: object): value is IncidentTeamMembershipsCreatePayloadV1;
31
+ export declare function IncidentTeamMembershipsCreatePayloadV1FromJSON(json: any): IncidentTeamMembershipsCreatePayloadV1;
32
+ export declare function IncidentTeamMembershipsCreatePayloadV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentTeamMembershipsCreatePayloadV1;
33
+ export declare function IncidentTeamMembershipsCreatePayloadV1ToJSON(json: any): IncidentTeamMembershipsCreatePayloadV1;
34
+ export declare function IncidentTeamMembershipsCreatePayloadV1ToJSONTyped(value?: IncidentTeamMembershipsCreatePayloadV1 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,47 @@
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
+ /**
15
+ * Check if a given object implements the IncidentTeamMembershipsCreatePayloadV1 interface.
16
+ */
17
+ export function instanceOfIncidentTeamMembershipsCreatePayloadV1(value) {
18
+ if (!('incident_id' in value) || value['incident_id'] === undefined)
19
+ return false;
20
+ if (!('team_id' in value) || value['team_id'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function IncidentTeamMembershipsCreatePayloadV1FromJSON(json) {
25
+ return IncidentTeamMembershipsCreatePayloadV1FromJSONTyped(json, false);
26
+ }
27
+ export function IncidentTeamMembershipsCreatePayloadV1FromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'incident_id': json['incident_id'],
33
+ 'team_id': json['team_id'],
34
+ };
35
+ }
36
+ export function IncidentTeamMembershipsCreatePayloadV1ToJSON(json) {
37
+ return IncidentTeamMembershipsCreatePayloadV1ToJSONTyped(json, false);
38
+ }
39
+ export function IncidentTeamMembershipsCreatePayloadV1ToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'incident_id': value['incident_id'],
45
+ 'team_id': value['team_id'],
46
+ };
47
+ }
@@ -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 { IncidentTeamMembershipV1 } from './IncidentTeamMembershipV1.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface IncidentTeamMembershipsCreateResultV1
17
+ */
18
+ export interface IncidentTeamMembershipsCreateResultV1 {
19
+ /**
20
+ *
21
+ */
22
+ incident_team_membership: IncidentTeamMembershipV1;
23
+ }
24
+ /**
25
+ * Check if a given object implements the IncidentTeamMembershipsCreateResultV1 interface.
26
+ */
27
+ export declare function instanceOfIncidentTeamMembershipsCreateResultV1(value: object): value is IncidentTeamMembershipsCreateResultV1;
28
+ export declare function IncidentTeamMembershipsCreateResultV1FromJSON(json: any): IncidentTeamMembershipsCreateResultV1;
29
+ export declare function IncidentTeamMembershipsCreateResultV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentTeamMembershipsCreateResultV1;
30
+ export declare function IncidentTeamMembershipsCreateResultV1ToJSON(json: any): IncidentTeamMembershipsCreateResultV1;
31
+ export declare function IncidentTeamMembershipsCreateResultV1ToJSONTyped(value?: IncidentTeamMembershipsCreateResultV1 | 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 { IncidentTeamMembershipV1FromJSON, IncidentTeamMembershipV1ToJSON, } from './IncidentTeamMembershipV1.js';
15
+ /**
16
+ * Check if a given object implements the IncidentTeamMembershipsCreateResultV1 interface.
17
+ */
18
+ export function instanceOfIncidentTeamMembershipsCreateResultV1(value) {
19
+ if (!('incident_team_membership' in value) || value['incident_team_membership'] === undefined)
20
+ return false;
21
+ return true;
22
+ }
23
+ export function IncidentTeamMembershipsCreateResultV1FromJSON(json) {
24
+ return IncidentTeamMembershipsCreateResultV1FromJSONTyped(json, false);
25
+ }
26
+ export function IncidentTeamMembershipsCreateResultV1FromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'incident_team_membership': IncidentTeamMembershipV1FromJSON(json['incident_team_membership']),
32
+ };
33
+ }
34
+ export function IncidentTeamMembershipsCreateResultV1ToJSON(json) {
35
+ return IncidentTeamMembershipsCreateResultV1ToJSONTyped(json, false);
36
+ }
37
+ export function IncidentTeamMembershipsCreateResultV1ToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'incident_team_membership': IncidentTeamMembershipV1ToJSON(value['incident_team_membership']),
43
+ };
44
+ }
@@ -0,0 +1,34 @@
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 IncidentTeamMembershipsRevokePayloadV1
16
+ */
17
+ export interface IncidentTeamMembershipsRevokePayloadV1 {
18
+ /**
19
+ * Revoke team access to this incident
20
+ */
21
+ incident_id: string;
22
+ /**
23
+ *
24
+ */
25
+ team_id: string;
26
+ }
27
+ /**
28
+ * Check if a given object implements the IncidentTeamMembershipsRevokePayloadV1 interface.
29
+ */
30
+ export declare function instanceOfIncidentTeamMembershipsRevokePayloadV1(value: object): value is IncidentTeamMembershipsRevokePayloadV1;
31
+ export declare function IncidentTeamMembershipsRevokePayloadV1FromJSON(json: any): IncidentTeamMembershipsRevokePayloadV1;
32
+ export declare function IncidentTeamMembershipsRevokePayloadV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentTeamMembershipsRevokePayloadV1;
33
+ export declare function IncidentTeamMembershipsRevokePayloadV1ToJSON(json: any): IncidentTeamMembershipsRevokePayloadV1;
34
+ export declare function IncidentTeamMembershipsRevokePayloadV1ToJSONTyped(value?: IncidentTeamMembershipsRevokePayloadV1 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,47 @@
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
+ /**
15
+ * Check if a given object implements the IncidentTeamMembershipsRevokePayloadV1 interface.
16
+ */
17
+ export function instanceOfIncidentTeamMembershipsRevokePayloadV1(value) {
18
+ if (!('incident_id' in value) || value['incident_id'] === undefined)
19
+ return false;
20
+ if (!('team_id' in value) || value['team_id'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function IncidentTeamMembershipsRevokePayloadV1FromJSON(json) {
25
+ return IncidentTeamMembershipsRevokePayloadV1FromJSONTyped(json, false);
26
+ }
27
+ export function IncidentTeamMembershipsRevokePayloadV1FromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'incident_id': json['incident_id'],
33
+ 'team_id': json['team_id'],
34
+ };
35
+ }
36
+ export function IncidentTeamMembershipsRevokePayloadV1ToJSON(json) {
37
+ return IncidentTeamMembershipsRevokePayloadV1ToJSONTyped(json, false);
38
+ }
39
+ export function IncidentTeamMembershipsRevokePayloadV1ToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'incident_id': value['incident_id'],
45
+ 'team_id': value['team_id'],
46
+ };
47
+ }
@@ -0,0 +1,34 @@
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 IncidentTeamV1
16
+ */
17
+ export interface IncidentTeamV1 {
18
+ /**
19
+ * Unique identifier of the team
20
+ */
21
+ id: string;
22
+ /**
23
+ * Human readable name of the team
24
+ */
25
+ name: string;
26
+ }
27
+ /**
28
+ * Check if a given object implements the IncidentTeamV1 interface.
29
+ */
30
+ export declare function instanceOfIncidentTeamV1(value: object): value is IncidentTeamV1;
31
+ export declare function IncidentTeamV1FromJSON(json: any): IncidentTeamV1;
32
+ export declare function IncidentTeamV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentTeamV1;
33
+ export declare function IncidentTeamV1ToJSON(json: any): IncidentTeamV1;
34
+ export declare function IncidentTeamV1ToJSONTyped(value?: IncidentTeamV1 | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,47 @@
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
+ /**
15
+ * Check if a given object implements the IncidentTeamV1 interface.
16
+ */
17
+ export function instanceOfIncidentTeamV1(value) {
18
+ if (!('id' in value) || value['id'] === undefined)
19
+ return false;
20
+ if (!('name' in value) || value['name'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function IncidentTeamV1FromJSON(json) {
25
+ return IncidentTeamV1FromJSONTyped(json, false);
26
+ }
27
+ export function IncidentTeamV1FromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'id': json['id'],
33
+ 'name': json['name'],
34
+ };
35
+ }
36
+ export function IncidentTeamV1ToJSON(json) {
37
+ return IncidentTeamV1ToJSONTyped(json, false);
38
+ }
39
+ export function IncidentTeamV1ToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'id': value['id'],
45
+ 'name': value['name'],
46
+ };
47
+ }
@@ -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']),
@@ -791,6 +791,11 @@ export * from './IncidentStatusesListResultV1.js';
791
791
  export * from './IncidentStatusesShowResultV1.js';
792
792
  export * from './IncidentStatusesUpdatePayloadV1.js';
793
793
  export * from './IncidentStatusesUpdateResultV1.js';
794
+ export * from './IncidentTeamMembershipV1.js';
795
+ export * from './IncidentTeamMembershipsCreatePayloadV1.js';
796
+ export * from './IncidentTeamMembershipsCreateResultV1.js';
797
+ export * from './IncidentTeamMembershipsRevokePayloadV1.js';
798
+ export * from './IncidentTeamV1.js';
794
799
  export * from './IncidentTemplateAutoGeneratedBindingPayloadV1.js';
795
800
  export * from './IncidentTemplateAutoGeneratedBindingV1.js';
796
801
  export * from './IncidentTemplateBindingPayloadV1.js';
@@ -928,6 +933,8 @@ export * from './PolicyFindingPostMortemV2.js';
928
933
  export * from './PolicyFindingReadinessRuleV2.js';
929
934
  export * from './PolicyFindingScheduleImpactedUserV2.js';
930
935
  export * from './PolicyFindingScheduleV2.js';
936
+ export * from './PolicyFindingShiftConflictShiftV2.js';
937
+ export * from './PolicyFindingShiftConflictV2.js';
931
938
  export * from './PolicyFindingV2.js';
932
939
  export * from './PolicyFindingVacationConflictV2.js';
933
940
  export * from './PolicyFindingsDismissPayloadV2.js';