@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,54 @@
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.instanceOfIncidentTeamV1 = instanceOfIncidentTeamV1;
17
+ exports.IncidentTeamV1FromJSON = IncidentTeamV1FromJSON;
18
+ exports.IncidentTeamV1FromJSONTyped = IncidentTeamV1FromJSONTyped;
19
+ exports.IncidentTeamV1ToJSON = IncidentTeamV1ToJSON;
20
+ exports.IncidentTeamV1ToJSONTyped = IncidentTeamV1ToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the IncidentTeamV1 interface.
23
+ */
24
+ function instanceOfIncidentTeamV1(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('name' in value) || value['name'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function IncidentTeamV1FromJSON(json) {
32
+ return IncidentTeamV1FromJSONTyped(json, false);
33
+ }
34
+ function IncidentTeamV1FromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'id': json['id'],
40
+ 'name': json['name'],
41
+ };
42
+ }
43
+ function IncidentTeamV1ToJSON(json) {
44
+ return IncidentTeamV1ToJSONTyped(json, false);
45
+ }
46
+ function IncidentTeamV1ToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'id': value['id'],
52
+ 'name': value['name'],
53
+ };
54
+ }
@@ -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']),
@@ -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';
@@ -809,6 +809,11 @@ __exportStar(require("./IncidentStatusesListResultV1.js"), exports);
809
809
  __exportStar(require("./IncidentStatusesShowResultV1.js"), exports);
810
810
  __exportStar(require("./IncidentStatusesUpdatePayloadV1.js"), exports);
811
811
  __exportStar(require("./IncidentStatusesUpdateResultV1.js"), exports);
812
+ __exportStar(require("./IncidentTeamMembershipV1.js"), exports);
813
+ __exportStar(require("./IncidentTeamMembershipsCreatePayloadV1.js"), exports);
814
+ __exportStar(require("./IncidentTeamMembershipsCreateResultV1.js"), exports);
815
+ __exportStar(require("./IncidentTeamMembershipsRevokePayloadV1.js"), exports);
816
+ __exportStar(require("./IncidentTeamV1.js"), exports);
812
817
  __exportStar(require("./IncidentTemplateAutoGeneratedBindingPayloadV1.js"), exports);
813
818
  __exportStar(require("./IncidentTemplateAutoGeneratedBindingV1.js"), exports);
814
819
  __exportStar(require("./IncidentTemplateBindingPayloadV1.js"), exports);
@@ -946,6 +951,8 @@ __exportStar(require("./PolicyFindingPostMortemV2.js"), exports);
946
951
  __exportStar(require("./PolicyFindingReadinessRuleV2.js"), exports);
947
952
  __exportStar(require("./PolicyFindingScheduleImpactedUserV2.js"), exports);
948
953
  __exportStar(require("./PolicyFindingScheduleV2.js"), exports);
954
+ __exportStar(require("./PolicyFindingShiftConflictShiftV2.js"), exports);
955
+ __exportStar(require("./PolicyFindingShiftConflictV2.js"), exports);
949
956
  __exportStar(require("./PolicyFindingV2.js"), exports);
950
957
  __exportStar(require("./PolicyFindingVacationConflictV2.js"), exports);
951
958
  __exportStar(require("./PolicyFindingsDismissPayloadV2.js"), exports);
@@ -1 +1 @@
1
- export declare const VERSION = "2.0.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.0.0";
5
+ exports.VERSION = "2.2.0";
@@ -0,0 +1,60 @@
1
+ /**
2
+ * incident.io
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import * as runtime from '../runtime.js';
13
+ import { type IncidentTeamMembershipsCreatePayloadV1 } from '../models/IncidentTeamMembershipsCreatePayloadV1.js';
14
+ import { type IncidentTeamMembershipsCreateResultV1 } from '../models/IncidentTeamMembershipsCreateResultV1.js';
15
+ import { type IncidentTeamMembershipsRevokePayloadV1 } from '../models/IncidentTeamMembershipsRevokePayloadV1.js';
16
+ export interface IncidentTeamMembershipsV1CreateRequest {
17
+ /**
18
+ *
19
+ */
20
+ body: IncidentTeamMembershipsCreatePayloadV1;
21
+ }
22
+ export interface IncidentTeamMembershipsV1RevokeRequest {
23
+ /**
24
+ *
25
+ */
26
+ body: IncidentTeamMembershipsRevokePayloadV1;
27
+ }
28
+ /**
29
+ *
30
+ */
31
+ export declare class IncidentTeamMembershipsV1Api extends runtime.BaseAPI {
32
+ /**
33
+ * Creates request options for incidentTeamMembershipsV1Create without sending the request
34
+ */
35
+ incidentTeamMembershipsV1CreateRequestOpts(requestParameters: IncidentTeamMembershipsV1CreateRequest): Promise<runtime.RequestOpts>;
36
+ /**
37
+ * Grants a team access to a private incident
38
+ * Create Incident Team Memberships V1
39
+ */
40
+ incidentTeamMembershipsV1CreateRaw(requestParameters: IncidentTeamMembershipsV1CreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IncidentTeamMembershipsCreateResultV1>>;
41
+ /**
42
+ * Grants a team access to a private incident
43
+ * Create Incident Team Memberships V1
44
+ */
45
+ incidentTeamMembershipsV1Create(requestParameters: IncidentTeamMembershipsV1CreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IncidentTeamMembershipsCreateResultV1>;
46
+ /**
47
+ * Creates request options for incidentTeamMembershipsV1Revoke without sending the request
48
+ */
49
+ incidentTeamMembershipsV1RevokeRequestOpts(requestParameters: IncidentTeamMembershipsV1RevokeRequest): Promise<runtime.RequestOpts>;
50
+ /**
51
+ * Revoke a team\'s access to a private incident. Members who only had access through this team lose it too; directly-added members and members still covered by another team keep theirs.
52
+ * Revoke Incident Team Memberships V1
53
+ */
54
+ incidentTeamMembershipsV1RevokeRaw(requestParameters: IncidentTeamMembershipsV1RevokeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
55
+ /**
56
+ * Revoke a team\'s access to a private incident. Members who only had access through this team lose it too; directly-added members and members still covered by another team keep theirs.
57
+ * Revoke Incident Team Memberships V1
58
+ */
59
+ incidentTeamMembershipsV1Revoke(requestParameters: IncidentTeamMembershipsV1RevokeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
60
+ }
@@ -0,0 +1,107 @@
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 * as runtime from '../runtime.js';
15
+ import { IncidentTeamMembershipsCreatePayloadV1ToJSON, } from '../models/IncidentTeamMembershipsCreatePayloadV1.js';
16
+ import { IncidentTeamMembershipsCreateResultV1FromJSON, } from '../models/IncidentTeamMembershipsCreateResultV1.js';
17
+ import { IncidentTeamMembershipsRevokePayloadV1ToJSON, } from '../models/IncidentTeamMembershipsRevokePayloadV1.js';
18
+ /**
19
+ *
20
+ */
21
+ export class IncidentTeamMembershipsV1Api extends runtime.BaseAPI {
22
+ /**
23
+ * Creates request options for incidentTeamMembershipsV1Create without sending the request
24
+ */
25
+ async incidentTeamMembershipsV1CreateRequestOpts(requestParameters) {
26
+ if (requestParameters['body'] == null) {
27
+ throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling incidentTeamMembershipsV1Create().');
28
+ }
29
+ const queryParameters = {};
30
+ const headerParameters = {};
31
+ headerParameters['Content-Type'] = 'application/json';
32
+ if (this.configuration && this.configuration.accessToken) {
33
+ const token = this.configuration.accessToken;
34
+ const tokenString = await token("BearerAuth", []);
35
+ if (tokenString) {
36
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
37
+ }
38
+ }
39
+ let urlPath = `/v1/incident_team_memberships`;
40
+ return {
41
+ path: urlPath,
42
+ method: 'POST',
43
+ headers: headerParameters,
44
+ query: queryParameters,
45
+ body: IncidentTeamMembershipsCreatePayloadV1ToJSON(requestParameters['body']),
46
+ };
47
+ }
48
+ /**
49
+ * Grants a team access to a private incident
50
+ * Create Incident Team Memberships V1
51
+ */
52
+ async incidentTeamMembershipsV1CreateRaw(requestParameters, initOverrides) {
53
+ const requestOptions = await this.incidentTeamMembershipsV1CreateRequestOpts(requestParameters);
54
+ const response = await this.request(requestOptions, initOverrides);
55
+ return new runtime.JSONApiResponse(response, (jsonValue) => IncidentTeamMembershipsCreateResultV1FromJSON(jsonValue));
56
+ }
57
+ /**
58
+ * Grants a team access to a private incident
59
+ * Create Incident Team Memberships V1
60
+ */
61
+ async incidentTeamMembershipsV1Create(requestParameters, initOverrides) {
62
+ const response = await this.incidentTeamMembershipsV1CreateRaw(requestParameters, initOverrides);
63
+ return await response.value();
64
+ }
65
+ /**
66
+ * Creates request options for incidentTeamMembershipsV1Revoke without sending the request
67
+ */
68
+ async incidentTeamMembershipsV1RevokeRequestOpts(requestParameters) {
69
+ if (requestParameters['body'] == null) {
70
+ throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling incidentTeamMembershipsV1Revoke().');
71
+ }
72
+ const queryParameters = {};
73
+ const headerParameters = {};
74
+ headerParameters['Content-Type'] = 'application/json';
75
+ if (this.configuration && this.configuration.accessToken) {
76
+ const token = this.configuration.accessToken;
77
+ const tokenString = await token("BearerAuth", []);
78
+ if (tokenString) {
79
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
80
+ }
81
+ }
82
+ let urlPath = `/v1/incident_team_memberships/actions/revoke`;
83
+ return {
84
+ path: urlPath,
85
+ method: 'POST',
86
+ headers: headerParameters,
87
+ query: queryParameters,
88
+ body: IncidentTeamMembershipsRevokePayloadV1ToJSON(requestParameters['body']),
89
+ };
90
+ }
91
+ /**
92
+ * Revoke a team\'s access to a private incident. Members who only had access through this team lose it too; directly-added members and members still covered by another team keep theirs.
93
+ * Revoke Incident Team Memberships V1
94
+ */
95
+ async incidentTeamMembershipsV1RevokeRaw(requestParameters, initOverrides) {
96
+ const requestOptions = await this.incidentTeamMembershipsV1RevokeRequestOpts(requestParameters);
97
+ const response = await this.request(requestOptions, initOverrides);
98
+ return new runtime.VoidApiResponse(response);
99
+ }
100
+ /**
101
+ * Revoke a team\'s access to a private incident. Members who only had access through this team lose it too; directly-added members and members still covered by another team keep theirs.
102
+ * Revoke Incident Team Memberships V1
103
+ */
104
+ async incidentTeamMembershipsV1Revoke(requestParameters, initOverrides) {
105
+ await this.incidentTeamMembershipsV1RevokeRaw(requestParameters, initOverrides);
106
+ }
107
+ }
@@ -34,6 +34,7 @@ export * from './IncidentRelationshipsV1Api.js';
34
34
  export * from './IncidentRolesV1Api.js';
35
35
  export * from './IncidentRolesV2Api.js';
36
36
  export * from './IncidentStatusesV1Api.js';
37
+ export * from './IncidentTeamMembershipsV1Api.js';
37
38
  export * from './IncidentTemplatesV1Api.js';
38
39
  export * from './IncidentTimelineItemsV2Api.js';
39
40
  export * from './IncidentTimestampsV2Api.js';
@@ -36,6 +36,7 @@ export * from './IncidentRelationshipsV1Api.js';
36
36
  export * from './IncidentRolesV1Api.js';
37
37
  export * from './IncidentRolesV2Api.js';
38
38
  export * from './IncidentStatusesV1Api.js';
39
+ export * from './IncidentTeamMembershipsV1Api.js';
39
40
  export * from './IncidentTemplatesV1Api.js';
40
41
  export * from './IncidentTimelineItemsV2Api.js';
41
42
  export * from './IncidentTimestampsV2Api.js';
@@ -0,0 +1,47 @@
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 { IncidentTeamV1 } from './IncidentTeamV1.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface IncidentTeamMembershipV1
17
+ */
18
+ export interface IncidentTeamMembershipV1 {
19
+ /**
20
+ * When the team membership was created
21
+ */
22
+ created_at: Date;
23
+ /**
24
+ * Unique identifier of this incident team membership
25
+ */
26
+ id: string;
27
+ /**
28
+ * Unique identifier of the incident
29
+ */
30
+ incident_id: string;
31
+ /**
32
+ *
33
+ */
34
+ team: IncidentTeamV1;
35
+ /**
36
+ * When the team membership was last updated
37
+ */
38
+ updated_at: Date;
39
+ }
40
+ /**
41
+ * Check if a given object implements the IncidentTeamMembershipV1 interface.
42
+ */
43
+ export declare function instanceOfIncidentTeamMembershipV1(value: object): value is IncidentTeamMembershipV1;
44
+ export declare function IncidentTeamMembershipV1FromJSON(json: any): IncidentTeamMembershipV1;
45
+ export declare function IncidentTeamMembershipV1FromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentTeamMembershipV1;
46
+ export declare function IncidentTeamMembershipV1ToJSON(json: any): IncidentTeamMembershipV1;
47
+ export declare function IncidentTeamMembershipV1ToJSONTyped(value?: IncidentTeamMembershipV1 | null, ignoreDiscriminator?: boolean): any;