@incident-io/sdk 1.2.0 → 2.1.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.
- package/dist/cjs/apis/IncidentTeamMembershipsV1Api.d.ts +60 -0
- package/dist/cjs/apis/IncidentTeamMembershipsV1Api.js +144 -0
- package/dist/cjs/apis/SchedulesV2Api.d.ts +2 -2
- package/dist/cjs/apis/SchedulesV2Api.js +2 -2
- package/dist/cjs/apis/index.d.ts +1 -0
- package/dist/cjs/apis/index.js +1 -0
- package/dist/cjs/models/AuditLogsOnCallNotificationPauseResumedV1.d.ts +58 -0
- package/dist/cjs/models/AuditLogsOnCallNotificationPauseResumedV1.js +79 -0
- package/dist/cjs/models/IncidentTeamMembershipV1.d.ts +47 -0
- package/dist/cjs/models/IncidentTeamMembershipV1.js +68 -0
- package/dist/cjs/models/IncidentTeamMembershipsCreatePayloadV1.d.ts +34 -0
- package/dist/cjs/models/IncidentTeamMembershipsCreatePayloadV1.js +54 -0
- package/dist/cjs/models/IncidentTeamMembershipsCreateResultV1.d.ts +31 -0
- package/dist/cjs/models/IncidentTeamMembershipsCreateResultV1.js +51 -0
- package/dist/cjs/models/IncidentTeamMembershipsRevokePayloadV1.d.ts +34 -0
- package/dist/cjs/models/IncidentTeamMembershipsRevokePayloadV1.js +54 -0
- package/dist/cjs/models/IncidentTeamV1.d.ts +34 -0
- package/dist/cjs/models/IncidentTeamV1.js +54 -0
- package/dist/cjs/models/ScheduleEntryV2.d.ts +4 -9
- package/dist/cjs/models/ScheduleEntryV2.js +0 -2
- package/dist/cjs/models/index.d.ts +6 -0
- package/dist/cjs/models/index.js +6 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/apis/IncidentTeamMembershipsV1Api.d.ts +60 -0
- package/dist/esm/apis/IncidentTeamMembershipsV1Api.js +107 -0
- package/dist/esm/apis/SchedulesV2Api.d.ts +2 -2
- package/dist/esm/apis/SchedulesV2Api.js +2 -2
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/AuditLogsOnCallNotificationPauseResumedV1.d.ts +58 -0
- package/dist/esm/models/AuditLogsOnCallNotificationPauseResumedV1.js +72 -0
- package/dist/esm/models/IncidentTeamMembershipV1.d.ts +47 -0
- package/dist/esm/models/IncidentTeamMembershipV1.js +61 -0
- package/dist/esm/models/IncidentTeamMembershipsCreatePayloadV1.d.ts +34 -0
- package/dist/esm/models/IncidentTeamMembershipsCreatePayloadV1.js +47 -0
- package/dist/esm/models/IncidentTeamMembershipsCreateResultV1.d.ts +31 -0
- package/dist/esm/models/IncidentTeamMembershipsCreateResultV1.js +44 -0
- package/dist/esm/models/IncidentTeamMembershipsRevokePayloadV1.d.ts +34 -0
- package/dist/esm/models/IncidentTeamMembershipsRevokePayloadV1.js +47 -0
- package/dist/esm/models/IncidentTeamV1.d.ts +34 -0
- package/dist/esm/models/IncidentTeamV1.js +47 -0
- package/dist/esm/models/ScheduleEntryV2.d.ts +4 -9
- package/dist/esm/models/ScheduleEntryV2.js +0 -2
- package/dist/esm/models/index.d.ts +6 -0
- package/dist/esm/models/index.js +6 -0
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +1 -1
|
@@ -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,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* incident.io
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfIncidentTeamMembershipsCreateResultV1 = instanceOfIncidentTeamMembershipsCreateResultV1;
|
|
17
|
+
exports.IncidentTeamMembershipsCreateResultV1FromJSON = IncidentTeamMembershipsCreateResultV1FromJSON;
|
|
18
|
+
exports.IncidentTeamMembershipsCreateResultV1FromJSONTyped = IncidentTeamMembershipsCreateResultV1FromJSONTyped;
|
|
19
|
+
exports.IncidentTeamMembershipsCreateResultV1ToJSON = IncidentTeamMembershipsCreateResultV1ToJSON;
|
|
20
|
+
exports.IncidentTeamMembershipsCreateResultV1ToJSONTyped = IncidentTeamMembershipsCreateResultV1ToJSONTyped;
|
|
21
|
+
const IncidentTeamMembershipV1_js_1 = require("./IncidentTeamMembershipV1.js");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the IncidentTeamMembershipsCreateResultV1 interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfIncidentTeamMembershipsCreateResultV1(value) {
|
|
26
|
+
if (!('incident_team_membership' in value) || value['incident_team_membership'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function IncidentTeamMembershipsCreateResultV1FromJSON(json) {
|
|
31
|
+
return IncidentTeamMembershipsCreateResultV1FromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function IncidentTeamMembershipsCreateResultV1FromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'incident_team_membership': (0, IncidentTeamMembershipV1_js_1.IncidentTeamMembershipV1FromJSON)(json['incident_team_membership']),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function IncidentTeamMembershipsCreateResultV1ToJSON(json) {
|
|
42
|
+
return IncidentTeamMembershipsCreateResultV1ToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function IncidentTeamMembershipsCreateResultV1ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'incident_team_membership': (0, IncidentTeamMembershipV1_js_1.IncidentTeamMembershipV1ToJSON)(value['incident_team_membership']),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -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,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.instanceOfIncidentTeamMembershipsRevokePayloadV1 = instanceOfIncidentTeamMembershipsRevokePayloadV1;
|
|
17
|
+
exports.IncidentTeamMembershipsRevokePayloadV1FromJSON = IncidentTeamMembershipsRevokePayloadV1FromJSON;
|
|
18
|
+
exports.IncidentTeamMembershipsRevokePayloadV1FromJSONTyped = IncidentTeamMembershipsRevokePayloadV1FromJSONTyped;
|
|
19
|
+
exports.IncidentTeamMembershipsRevokePayloadV1ToJSON = IncidentTeamMembershipsRevokePayloadV1ToJSON;
|
|
20
|
+
exports.IncidentTeamMembershipsRevokePayloadV1ToJSONTyped = IncidentTeamMembershipsRevokePayloadV1ToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the IncidentTeamMembershipsRevokePayloadV1 interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfIncidentTeamMembershipsRevokePayloadV1(value) {
|
|
25
|
+
if (!('incident_id' in value) || value['incident_id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('team_id' in value) || value['team_id'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function IncidentTeamMembershipsRevokePayloadV1FromJSON(json) {
|
|
32
|
+
return IncidentTeamMembershipsRevokePayloadV1FromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function IncidentTeamMembershipsRevokePayloadV1FromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'incident_id': json['incident_id'],
|
|
40
|
+
'team_id': json['team_id'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function IncidentTeamMembershipsRevokePayloadV1ToJSON(json) {
|
|
44
|
+
return IncidentTeamMembershipsRevokePayloadV1ToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function IncidentTeamMembershipsRevokePayloadV1ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'incident_id': value['incident_id'],
|
|
52
|
+
'team_id': value['team_id'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -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,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
|
+
}
|
|
@@ -12,11 +12,10 @@
|
|
|
12
12
|
import type { UserV2 } from './UserV2.js';
|
|
13
13
|
/**
|
|
14
14
|
* A single shift on a schedule, representing who is on-call between a start
|
|
15
|
-
* and end time. When present, `rotation_id`
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* returned for every rotation and layer on the schedule.
|
|
15
|
+
* and end time. When present, `rotation_id` tells you which rotation the
|
|
16
|
+
* entry belongs to. A schedule may have multiple rotations (for example, a
|
|
17
|
+
* primary and a secondary rotation) and each rotation can be made up of several
|
|
18
|
+
* layers — entries are returned for every rotation and layer on the schedule.
|
|
20
19
|
*
|
|
21
20
|
* Entries come from two places: they are either generated from a schedule's
|
|
22
21
|
* rotation configuration (the regular pattern of who is on-call) or created by
|
|
@@ -46,10 +45,6 @@ export interface ScheduleEntryV2 {
|
|
|
46
45
|
* A unique identifier for this entry, used to determine a unique shift
|
|
47
46
|
*/
|
|
48
47
|
fingerprint?: string;
|
|
49
|
-
/**
|
|
50
|
-
* If present, the layer this entry applies to on the rotation
|
|
51
|
-
*/
|
|
52
|
-
layer_id?: string;
|
|
53
48
|
/**
|
|
54
49
|
* If present, the rotation this entry applies to on the schedule
|
|
55
50
|
*/
|
|
@@ -41,7 +41,6 @@ function ScheduleEntryV2FromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
41
|
'end_at': (json['end_at'] == null ? json['end_at'] : (0, runtime_js_1.parseDateTime)(json['end_at'])),
|
|
42
42
|
'entry_id': json['entry_id'] == null ? undefined : json['entry_id'],
|
|
43
43
|
'fingerprint': json['fingerprint'] == null ? undefined : json['fingerprint'],
|
|
44
|
-
'layer_id': json['layer_id'] == null ? undefined : json['layer_id'],
|
|
45
44
|
'rotation_id': json['rotation_id'] == null ? undefined : json['rotation_id'],
|
|
46
45
|
'start_at': (json['start_at'] == null ? json['start_at'] : (0, runtime_js_1.parseDateTime)(json['start_at'])),
|
|
47
46
|
'user': json['user'] == null ? undefined : (0, UserV2_js_1.UserV2FromJSON)(json['user']),
|
|
@@ -58,7 +57,6 @@ function ScheduleEntryV2ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
58
57
|
'end_at': value['end_at'] == null ? value['end_at'] : (0, runtime_js_1.serializeDateTime)(value['end_at']),
|
|
59
58
|
'entry_id': value['entry_id'],
|
|
60
59
|
'fingerprint': value['fingerprint'],
|
|
61
|
-
'layer_id': value['layer_id'],
|
|
62
60
|
'rotation_id': value['rotation_id'],
|
|
63
61
|
'start_at': value['start_at'] == null ? value['start_at'] : (0, runtime_js_1.serializeDateTime)(value['start_at']),
|
|
64
62
|
'user': (0, UserV2_js_1.UserV2ToJSON)(value['user']),
|
|
@@ -351,6 +351,7 @@ export * from './AuditLogsOnCallNotificationPauseCreatedV1.js';
|
|
|
351
351
|
export * from './AuditLogsOnCallNotificationPauseCreatedV2.js';
|
|
352
352
|
export * from './AuditLogsOnCallNotificationPauseDeletedV1.js';
|
|
353
353
|
export * from './AuditLogsOnCallNotificationPauseDeletedV2.js';
|
|
354
|
+
export * from './AuditLogsOnCallNotificationPauseResumedV1.js';
|
|
354
355
|
export * from './AuditLogsOnCallNotificationPauseUpdatedV1.js';
|
|
355
356
|
export * from './AuditLogsOnCallNotificationPauseUpdatedV2.js';
|
|
356
357
|
export * from './AuditLogsOnCallUpsellRequestedV1.js';
|
|
@@ -790,6 +791,11 @@ export * from './IncidentStatusesListResultV1.js';
|
|
|
790
791
|
export * from './IncidentStatusesShowResultV1.js';
|
|
791
792
|
export * from './IncidentStatusesUpdatePayloadV1.js';
|
|
792
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';
|
|
793
799
|
export * from './IncidentTemplateAutoGeneratedBindingPayloadV1.js';
|
|
794
800
|
export * from './IncidentTemplateAutoGeneratedBindingV1.js';
|
|
795
801
|
export * from './IncidentTemplateBindingPayloadV1.js';
|
package/dist/cjs/models/index.js
CHANGED
|
@@ -369,6 +369,7 @@ __exportStar(require("./AuditLogsOnCallNotificationPauseCreatedV1.js"), exports)
|
|
|
369
369
|
__exportStar(require("./AuditLogsOnCallNotificationPauseCreatedV2.js"), exports);
|
|
370
370
|
__exportStar(require("./AuditLogsOnCallNotificationPauseDeletedV1.js"), exports);
|
|
371
371
|
__exportStar(require("./AuditLogsOnCallNotificationPauseDeletedV2.js"), exports);
|
|
372
|
+
__exportStar(require("./AuditLogsOnCallNotificationPauseResumedV1.js"), exports);
|
|
372
373
|
__exportStar(require("./AuditLogsOnCallNotificationPauseUpdatedV1.js"), exports);
|
|
373
374
|
__exportStar(require("./AuditLogsOnCallNotificationPauseUpdatedV2.js"), exports);
|
|
374
375
|
__exportStar(require("./AuditLogsOnCallUpsellRequestedV1.js"), exports);
|
|
@@ -808,6 +809,11 @@ __exportStar(require("./IncidentStatusesListResultV1.js"), exports);
|
|
|
808
809
|
__exportStar(require("./IncidentStatusesShowResultV1.js"), exports);
|
|
809
810
|
__exportStar(require("./IncidentStatusesUpdatePayloadV1.js"), exports);
|
|
810
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);
|
|
811
817
|
__exportStar(require("./IncidentTemplateAutoGeneratedBindingPayloadV1.js"), exports);
|
|
812
818
|
__exportStar(require("./IncidentTemplateAutoGeneratedBindingV1.js"), exports);
|
|
813
819
|
__exportStar(require("./IncidentTemplateBindingPayloadV1.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "2.1.0";
|
package/dist/cjs/version.js
CHANGED
|
@@ -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
|
+
}
|
|
@@ -390,12 +390,12 @@ export declare class SchedulesV2Api extends runtime.BaseAPI {
|
|
|
390
390
|
*/
|
|
391
391
|
schedulesV2ListScheduleEntriesRequestOpts(requestParameters: SchedulesV2ListScheduleEntriesRequest): Promise<runtime.RequestOpts>;
|
|
392
392
|
/**
|
|
393
|
-
* List the schedule entries for a schedule over a window of time. Use this endpoint to find out who is on-call for a schedule, either right now or at any point in the future. Common uses include: - Building a calendar or timeline view of who is on-call. - Looking up who was on-call at a particular moment (for example, when an incident fired). - Exporting upcoming shifts into another system, such as a payroll or scheduling tool. The response groups entries into three lists: `scheduled` (the entries the rotation rules produce, before any overrides), `overrides` (any one-off overrides that apply in the window) and `final` (the effective schedule after overrides have been merged in — this is normally the list you want). Each entry includes the `rotation_id`
|
|
393
|
+
* List the schedule entries for a schedule over a window of time. Use this endpoint to find out who is on-call for a schedule, either right now or at any point in the future. Common uses include: - Building a calendar or timeline view of who is on-call. - Looking up who was on-call at a particular moment (for example, when an incident fired). - Exporting upcoming shifts into another system, such as a payroll or scheduling tool. The response groups entries into three lists: `scheduled` (the entries the rotation rules produce, before any overrides), `overrides` (any one-off overrides that apply in the window) and `final` (the effective schedule after overrides have been merged in — this is normally the list you want). Each entry includes the `rotation_id` it belongs to. Schedules can be made up of multiple rotations (for example, a primary and a secondary rotation) and each rotation can have several layers, and we return entries for every rotation and layer on the schedule. The endpoint returns all entries that overlap with the given window. If no window is provided we default to a sensible range starting from now. ## Pagination Responses are paginated. When more entries are available than fit on a single page, the response includes a `pagination_meta` block with two fields: - `after_url` — a fully-formed URL for the next page. The simplest way to paginate is to keep following this URL until it is no longer present. - `after` — an opaque cursor token. To fetch the next page manually, re-issue the request with `entry_window_start` set to this value and `entry_window_end` left unchanged from the original request. Treat the token as opaque — do not parse or modify it. Keep paginating until `pagination_meta` is absent from the response, at which point you have received every entry in the window.
|
|
394
394
|
* ListScheduleEntries Schedules V2
|
|
395
395
|
*/
|
|
396
396
|
schedulesV2ListScheduleEntriesRaw(requestParameters: SchedulesV2ListScheduleEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SchedulesListScheduleEntriesResultV2>>;
|
|
397
397
|
/**
|
|
398
|
-
* List the schedule entries for a schedule over a window of time. Use this endpoint to find out who is on-call for a schedule, either right now or at any point in the future. Common uses include: - Building a calendar or timeline view of who is on-call. - Looking up who was on-call at a particular moment (for example, when an incident fired). - Exporting upcoming shifts into another system, such as a payroll or scheduling tool. The response groups entries into three lists: `scheduled` (the entries the rotation rules produce, before any overrides), `overrides` (any one-off overrides that apply in the window) and `final` (the effective schedule after overrides have been merged in — this is normally the list you want). Each entry includes the `rotation_id`
|
|
398
|
+
* List the schedule entries for a schedule over a window of time. Use this endpoint to find out who is on-call for a schedule, either right now or at any point in the future. Common uses include: - Building a calendar or timeline view of who is on-call. - Looking up who was on-call at a particular moment (for example, when an incident fired). - Exporting upcoming shifts into another system, such as a payroll or scheduling tool. The response groups entries into three lists: `scheduled` (the entries the rotation rules produce, before any overrides), `overrides` (any one-off overrides that apply in the window) and `final` (the effective schedule after overrides have been merged in — this is normally the list you want). Each entry includes the `rotation_id` it belongs to. Schedules can be made up of multiple rotations (for example, a primary and a secondary rotation) and each rotation can have several layers, and we return entries for every rotation and layer on the schedule. The endpoint returns all entries that overlap with the given window. If no window is provided we default to a sensible range starting from now. ## Pagination Responses are paginated. When more entries are available than fit on a single page, the response includes a `pagination_meta` block with two fields: - `after_url` — a fully-formed URL for the next page. The simplest way to paginate is to keep following this URL until it is no longer present. - `after` — an opaque cursor token. To fetch the next page manually, re-issue the request with `entry_window_start` set to this value and `entry_window_end` left unchanged from the original request. Treat the token as opaque — do not parse or modify it. Keep paginating until `pagination_meta` is absent from the response, at which point you have received every entry in the window.
|
|
399
399
|
* ListScheduleEntries Schedules V2
|
|
400
400
|
*/
|
|
401
401
|
schedulesV2ListScheduleEntries(requestParameters: SchedulesV2ListScheduleEntriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SchedulesListScheduleEntriesResultV2>;
|
|
@@ -527,7 +527,7 @@ export class SchedulesV2Api extends runtime.BaseAPI {
|
|
|
527
527
|
};
|
|
528
528
|
}
|
|
529
529
|
/**
|
|
530
|
-
* List the schedule entries for a schedule over a window of time. Use this endpoint to find out who is on-call for a schedule, either right now or at any point in the future. Common uses include: - Building a calendar or timeline view of who is on-call. - Looking up who was on-call at a particular moment (for example, when an incident fired). - Exporting upcoming shifts into another system, such as a payroll or scheduling tool. The response groups entries into three lists: `scheduled` (the entries the rotation rules produce, before any overrides), `overrides` (any one-off overrides that apply in the window) and `final` (the effective schedule after overrides have been merged in — this is normally the list you want). Each entry includes the `rotation_id`
|
|
530
|
+
* List the schedule entries for a schedule over a window of time. Use this endpoint to find out who is on-call for a schedule, either right now or at any point in the future. Common uses include: - Building a calendar or timeline view of who is on-call. - Looking up who was on-call at a particular moment (for example, when an incident fired). - Exporting upcoming shifts into another system, such as a payroll or scheduling tool. The response groups entries into three lists: `scheduled` (the entries the rotation rules produce, before any overrides), `overrides` (any one-off overrides that apply in the window) and `final` (the effective schedule after overrides have been merged in — this is normally the list you want). Each entry includes the `rotation_id` it belongs to. Schedules can be made up of multiple rotations (for example, a primary and a secondary rotation) and each rotation can have several layers, and we return entries for every rotation and layer on the schedule. The endpoint returns all entries that overlap with the given window. If no window is provided we default to a sensible range starting from now. ## Pagination Responses are paginated. When more entries are available than fit on a single page, the response includes a `pagination_meta` block with two fields: - `after_url` — a fully-formed URL for the next page. The simplest way to paginate is to keep following this URL until it is no longer present. - `after` — an opaque cursor token. To fetch the next page manually, re-issue the request with `entry_window_start` set to this value and `entry_window_end` left unchanged from the original request. Treat the token as opaque — do not parse or modify it. Keep paginating until `pagination_meta` is absent from the response, at which point you have received every entry in the window.
|
|
531
531
|
* ListScheduleEntries Schedules V2
|
|
532
532
|
*/
|
|
533
533
|
async schedulesV2ListScheduleEntriesRaw(requestParameters, initOverrides) {
|
|
@@ -536,7 +536,7 @@ export class SchedulesV2Api extends runtime.BaseAPI {
|
|
|
536
536
|
return new runtime.JSONApiResponse(response, (jsonValue) => SchedulesListScheduleEntriesResultV2FromJSON(jsonValue));
|
|
537
537
|
}
|
|
538
538
|
/**
|
|
539
|
-
* List the schedule entries for a schedule over a window of time. Use this endpoint to find out who is on-call for a schedule, either right now or at any point in the future. Common uses include: - Building a calendar or timeline view of who is on-call. - Looking up who was on-call at a particular moment (for example, when an incident fired). - Exporting upcoming shifts into another system, such as a payroll or scheduling tool. The response groups entries into three lists: `scheduled` (the entries the rotation rules produce, before any overrides), `overrides` (any one-off overrides that apply in the window) and `final` (the effective schedule after overrides have been merged in — this is normally the list you want). Each entry includes the `rotation_id`
|
|
539
|
+
* List the schedule entries for a schedule over a window of time. Use this endpoint to find out who is on-call for a schedule, either right now or at any point in the future. Common uses include: - Building a calendar or timeline view of who is on-call. - Looking up who was on-call at a particular moment (for example, when an incident fired). - Exporting upcoming shifts into another system, such as a payroll or scheduling tool. The response groups entries into three lists: `scheduled` (the entries the rotation rules produce, before any overrides), `overrides` (any one-off overrides that apply in the window) and `final` (the effective schedule after overrides have been merged in — this is normally the list you want). Each entry includes the `rotation_id` it belongs to. Schedules can be made up of multiple rotations (for example, a primary and a secondary rotation) and each rotation can have several layers, and we return entries for every rotation and layer on the schedule. The endpoint returns all entries that overlap with the given window. If no window is provided we default to a sensible range starting from now. ## Pagination Responses are paginated. When more entries are available than fit on a single page, the response includes a `pagination_meta` block with two fields: - `after_url` — a fully-formed URL for the next page. The simplest way to paginate is to keep following this URL until it is no longer present. - `after` — an opaque cursor token. To fetch the next page manually, re-issue the request with `entry_window_start` set to this value and `entry_window_end` left unchanged from the original request. Treat the token as opaque — do not parse or modify it. Keep paginating until `pagination_meta` is absent from the response, at which point you have received every entry in the window.
|
|
540
540
|
* ListScheduleEntries Schedules V2
|
|
541
541
|
*/
|
|
542
542
|
async schedulesV2ListScheduleEntries(requestParameters, initOverrides) {
|
package/dist/esm/apis/index.d.ts
CHANGED
|
@@ -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';
|
package/dist/esm/apis/index.js
CHANGED
|
@@ -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';
|