@rippling/rippling-sdk 0.2.0-alpha.25 → 0.2.0-alpha.26
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/LICENSE +1 -1
- package/client.d.mts +33 -11
- package/client.d.mts.map +1 -1
- package/client.d.ts +33 -11
- package/client.d.ts.map +1 -1
- package/client.js +21 -0
- package/client.js.map +1 -1
- package/client.mjs +21 -0
- package/client.mjs.map +1 -1
- package/functions.d.mts +4 -0
- package/functions.d.mts.map +1 -1
- package/functions.d.ts +4 -0
- package/functions.d.ts.map +1 -1
- package/functions.js +13 -1
- package/functions.js.map +1 -1
- package/functions.mjs +11 -0
- package/functions.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/compensation-bands-details.d.mts +95 -0
- package/resources/compensation-bands-details.d.mts.map +1 -0
- package/resources/compensation-bands-details.d.ts +95 -0
- package/resources/compensation-bands-details.d.ts.map +1 -0
- package/resources/compensation-bands-details.js +29 -0
- package/resources/compensation-bands-details.js.map +1 -0
- package/resources/compensation-bands-details.mjs +25 -0
- package/resources/compensation-bands-details.mjs.map +1 -0
- package/resources/custom-settings.d.mts +270 -0
- package/resources/custom-settings.d.mts.map +1 -0
- package/resources/custom-settings.d.ts +270 -0
- package/resources/custom-settings.d.ts.map +1 -0
- package/resources/custom-settings.js +51 -0
- package/resources/custom-settings.js.map +1 -0
- package/resources/custom-settings.mjs +47 -0
- package/resources/custom-settings.mjs.map +1 -0
- package/resources/departments.d.mts +37 -1
- package/resources/departments.d.mts.map +1 -1
- package/resources/departments.d.ts +37 -1
- package/resources/departments.d.ts.map +1 -1
- package/resources/departments.js +12 -0
- package/resources/departments.js.map +1 -1
- package/resources/departments.mjs +12 -0
- package/resources/departments.mjs.map +1 -1
- package/resources/draft-hires.d.mts +27 -0
- package/resources/draft-hires.d.mts.map +1 -1
- package/resources/draft-hires.d.ts +27 -0
- package/resources/draft-hires.d.ts.map +1 -1
- package/resources/functions/executions.d.mts +6 -82
- package/resources/functions/executions.d.mts.map +1 -1
- package/resources/functions/executions.d.ts +6 -82
- package/resources/functions/executions.d.ts.map +1 -1
- package/resources/functions/executions.js.map +1 -1
- package/resources/functions/executions.mjs.map +1 -1
- package/resources/functions/functions.d.mts +2 -2
- package/resources/functions/functions.d.mts.map +1 -1
- package/resources/functions/functions.d.ts +2 -2
- package/resources/functions/functions.d.ts.map +1 -1
- package/resources/functions/functions.js.map +1 -1
- package/resources/functions/functions.mjs.map +1 -1
- package/resources/functions/index.d.mts +1 -1
- package/resources/functions/index.d.mts.map +1 -1
- package/resources/functions/index.d.ts +1 -1
- package/resources/functions/index.d.ts.map +1 -1
- package/resources/functions/index.js.map +1 -1
- package/resources/functions/index.mjs.map +1 -1
- package/resources/index.d.mts +12 -5
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +12 -5
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +15 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +7 -0
- package/resources/index.mjs.map +1 -1
- package/resources/job-assignments.d.mts +70 -6
- package/resources/job-assignments.d.mts.map +1 -1
- package/resources/job-assignments.d.ts +70 -6
- package/resources/job-assignments.d.ts.map +1 -1
- package/resources/job-assignments.js +22 -0
- package/resources/job-assignments.js.map +1 -1
- package/resources/job-assignments.mjs +22 -0
- package/resources/job-assignments.mjs.map +1 -1
- package/resources/job-codes.d.mts +47 -1
- package/resources/job-codes.d.mts.map +1 -1
- package/resources/job-codes.d.ts +47 -1
- package/resources/job-codes.d.ts.map +1 -1
- package/resources/job-dimensions.d.mts +20 -0
- package/resources/job-dimensions.d.mts.map +1 -1
- package/resources/job-dimensions.d.ts +20 -0
- package/resources/job-dimensions.d.ts.map +1 -1
- package/resources/job-requisitions-write.d.mts +257 -0
- package/resources/job-requisitions-write.d.mts.map +1 -0
- package/resources/job-requisitions-write.d.ts +257 -0
- package/resources/job-requisitions-write.d.ts.map +1 -0
- package/resources/job-requisitions-write.js +15 -0
- package/resources/job-requisitions-write.js.map +1 -0
- package/resources/job-requisitions-write.mjs +11 -0
- package/resources/job-requisitions-write.mjs.map +1 -0
- package/resources/leave-accruals.d.mts +112 -6
- package/resources/leave-accruals.d.mts.map +1 -1
- package/resources/leave-accruals.d.ts +112 -6
- package/resources/leave-accruals.d.ts.map +1 -1
- package/resources/leave-accruals.js +19 -3
- package/resources/leave-accruals.js.map +1 -1
- package/resources/leave-accruals.mjs +19 -3
- package/resources/leave-accruals.mjs.map +1 -1
- package/resources/report-runs.d.mts +149 -0
- package/resources/report-runs.d.mts.map +1 -0
- package/resources/report-runs.d.ts +149 -0
- package/resources/report-runs.d.ts.map +1 -0
- package/resources/report-runs.js +22 -0
- package/resources/report-runs.js.map +1 -0
- package/resources/report-runs.mjs +18 -0
- package/resources/report-runs.mjs.map +1 -0
- package/resources/shared.d.mts +35 -0
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +35 -0
- package/resources/shared.d.ts.map +1 -1
- package/resources/shift-assignments.d.mts +296 -0
- package/resources/shift-assignments.d.mts.map +1 -0
- package/resources/shift-assignments.d.ts +296 -0
- package/resources/shift-assignments.d.ts.map +1 -0
- package/resources/shift-assignments.js +25 -0
- package/resources/shift-assignments.js.map +1 -0
- package/resources/shift-assignments.mjs +21 -0
- package/resources/shift-assignments.mjs.map +1 -0
- package/resources/shiftassignments.d.mts +56 -4
- package/resources/shiftassignments.d.mts.map +1 -1
- package/resources/shiftassignments.d.ts +56 -4
- package/resources/shiftassignments.d.ts.map +1 -1
- package/resources/supergroups/exclusion-members.d.mts +3 -3
- package/resources/supergroups/exclusion-members.d.mts.map +1 -1
- package/resources/supergroups/exclusion-members.d.ts +3 -3
- package/resources/supergroups/exclusion-members.d.ts.map +1 -1
- package/resources/supergroups/exclusion-members.js.map +1 -1
- package/resources/supergroups/exclusion-members.mjs.map +1 -1
- package/resources/supergroups/inclusion-members.d.mts +3 -3
- package/resources/supergroups/inclusion-members.d.mts.map +1 -1
- package/resources/supergroups/inclusion-members.d.ts +3 -3
- package/resources/supergroups/inclusion-members.d.ts.map +1 -1
- package/resources/supergroups/inclusion-members.js.map +1 -1
- package/resources/supergroups/inclusion-members.mjs.map +1 -1
- package/resources/supergroups/index.d.mts +1 -1
- package/resources/supergroups/index.d.mts.map +1 -1
- package/resources/supergroups/index.d.ts +1 -1
- package/resources/supergroups/index.d.ts.map +1 -1
- package/resources/supergroups/index.js.map +1 -1
- package/resources/supergroups/index.mjs.map +1 -1
- package/resources/supergroups/members.d.mts +6 -37
- package/resources/supergroups/members.d.mts.map +1 -1
- package/resources/supergroups/members.d.ts +6 -37
- package/resources/supergroups/members.d.ts.map +1 -1
- package/resources/supergroups/members.js.map +1 -1
- package/resources/supergroups/members.mjs.map +1 -1
- package/resources/supergroups/supergroups.d.mts +2 -2
- package/resources/supergroups/supergroups.d.mts.map +1 -1
- package/resources/supergroups/supergroups.d.ts +2 -2
- package/resources/supergroups/supergroups.d.ts.map +1 -1
- package/resources/supergroups/supergroups.js.map +1 -1
- package/resources/supergroups/supergroups.mjs.map +1 -1
- package/resources/titles.d.mts +126 -0
- package/resources/titles.d.mts.map +1 -0
- package/resources/titles.d.ts +126 -0
- package/resources/titles.d.ts.map +1 -0
- package/resources/titles.js +48 -0
- package/resources/titles.js.map +1 -0
- package/resources/titles.mjs +44 -0
- package/resources/titles.mjs.map +1 -0
- package/resources/unassigned-shifts.d.mts +334 -0
- package/resources/unassigned-shifts.d.mts.map +1 -0
- package/resources/unassigned-shifts.d.ts +334 -0
- package/resources/unassigned-shifts.d.ts.map +1 -0
- package/resources/unassigned-shifts.js +42 -0
- package/resources/unassigned-shifts.js.map +1 -0
- package/resources/unassigned-shifts.mjs +38 -0
- package/resources/unassigned-shifts.mjs.map +1 -0
- package/resources/unassignedshifts.d.mts +382 -1
- package/resources/unassignedshifts.d.mts.map +1 -1
- package/resources/unassignedshifts.d.ts +382 -1
- package/resources/unassignedshifts.d.ts.map +1 -1
- package/resources/unassignedshifts.js +6 -0
- package/resources/unassignedshifts.js.map +1 -1
- package/resources/unassignedshifts.mjs +6 -0
- package/resources/unassignedshifts.mjs.map +1 -1
- package/resources/work-locations.d.mts +95 -1
- package/resources/work-locations.d.mts.map +1 -1
- package/resources/work-locations.d.ts +95 -1
- package/resources/work-locations.d.ts.map +1 -1
- package/resources/work-locations.js +12 -0
- package/resources/work-locations.js.map +1 -1
- package/resources/work-locations.mjs +12 -0
- package/resources/work-locations.mjs.map +1 -1
- package/src/client.ts +153 -3
- package/src/functions.ts +14 -0
- package/src/resources/compensation-bands-details.ts +140 -0
- package/src/resources/custom-settings.ts +371 -0
- package/src/resources/departments.ts +50 -0
- package/src/resources/draft-hires.ts +32 -0
- package/src/resources/functions/executions.ts +8 -104
- package/src/resources/functions/functions.ts +4 -8
- package/src/resources/functions/index.ts +2 -4
- package/src/resources/index.ts +66 -2
- package/src/resources/job-assignments.ts +95 -6
- package/src/resources/job-codes.ts +56 -1
- package/src/resources/job-dimensions.ts +24 -0
- package/src/resources/job-requisitions-write.ts +327 -0
- package/src/resources/leave-accruals.ts +229 -12
- package/src/resources/report-runs.ts +186 -0
- package/src/resources/shared.ts +44 -0
- package/src/resources/shift-assignments.ts +362 -0
- package/src/resources/shiftassignments.ts +70 -5
- package/src/resources/supergroups/exclusion-members.ts +4 -4
- package/src/resources/supergroups/inclusion-members.ts +4 -4
- package/src/resources/supergroups/index.ts +1 -1
- package/src/resources/supergroups/members.ts +7 -49
- package/src/resources/supergroups/supergroups.ts +2 -7
- package/src/resources/titles.ts +181 -0
- package/src/resources/unassigned-shifts.ts +415 -0
- package/src/resources/unassignedshifts.ts +467 -0
- package/src/resources/work-locations.ts +118 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,415 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import * as BusinessPartnersAPI from './business-partners';
|
|
5
|
+
import * as WorkersAPI from './workers';
|
|
6
|
+
import { APIPromise } from '../core/api-promise';
|
|
7
|
+
import { RequestOptions } from '../internal/request-options';
|
|
8
|
+
import { path } from '../internal/utils/path';
|
|
9
|
+
|
|
10
|
+
export class UnassignedShifts extends APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Update custom fields for a unassigned shift. The request body should contain a
|
|
13
|
+
* dictionary mapping custom field names to their values.
|
|
14
|
+
*
|
|
15
|
+
* - Requires: `API Tier 2`
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* const response =
|
|
20
|
+
* await client.unassignedShifts.updateCustomfields('id');
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
updateCustomfields(
|
|
24
|
+
id: string,
|
|
25
|
+
body: UnassignedShiftUpdateCustomfieldsParams,
|
|
26
|
+
options?: RequestOptions,
|
|
27
|
+
): APIPromise<UnassignedShiftUpdateCustomfieldsResponse> {
|
|
28
|
+
return this._client.patch(path`/unassignedshifts/${id}/customfields`, { body, ...options });
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Assign a worker to an unassigned shift (open shift). The shift must be an open
|
|
33
|
+
* shift and not at capacity.
|
|
34
|
+
*
|
|
35
|
+
* - Requires: `API Tier 2`
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* const response = await client.unassignedShifts.assign(
|
|
40
|
+
* 'id',
|
|
41
|
+
* { worker_id: 'worker_id' },
|
|
42
|
+
* );
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
assign(
|
|
46
|
+
id: string,
|
|
47
|
+
body: UnassignedShiftAssignParams,
|
|
48
|
+
options?: RequestOptions,
|
|
49
|
+
): APIPromise<UnassignedShiftAssignResponse> {
|
|
50
|
+
return this._client.post(path`/unassignedshifts/${id}/assign`, { body, ...options });
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Meta information for the response.
|
|
56
|
+
*/
|
|
57
|
+
export interface UnassignedShiftUpdateCustomfieldsResponse extends BusinessPartnersAPI.Meta {
|
|
58
|
+
/**
|
|
59
|
+
* Identifier field
|
|
60
|
+
*/
|
|
61
|
+
id: string;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Record creation date
|
|
65
|
+
*/
|
|
66
|
+
created_at: string;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Whether the shift is published
|
|
70
|
+
*/
|
|
71
|
+
is_published: boolean;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* The ID of the schedule
|
|
75
|
+
*/
|
|
76
|
+
schedule_id: string;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* The data of the shift
|
|
80
|
+
*/
|
|
81
|
+
shift_data: UnassignedShiftUpdateCustomfieldsResponse.ShiftData;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* The target count of the shift
|
|
85
|
+
*/
|
|
86
|
+
target_count: number;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Record update date
|
|
90
|
+
*/
|
|
91
|
+
updated_at: string;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* The number of assigned shifts
|
|
95
|
+
*/
|
|
96
|
+
assigned_count?: number;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* The IDs of the assigned shifts that are part of this unassigned shift
|
|
100
|
+
*/
|
|
101
|
+
assigned_shift_ids?: Array<string>;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Custom fields for the unassigned shift
|
|
105
|
+
*/
|
|
106
|
+
custom_fields?: Array<unknown>;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Configuration for an open shift. If present, this is an open shift (workers can
|
|
110
|
+
* sign up). If absent/None, this is an empty shift (placeholder).
|
|
111
|
+
*/
|
|
112
|
+
open_shift_config?: unknown;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* The published version of the shift
|
|
116
|
+
*/
|
|
117
|
+
published_version?: UnassignedShiftUpdateCustomfieldsResponse.PublishedVersion;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* The schedule
|
|
121
|
+
*
|
|
122
|
+
* Expandable field
|
|
123
|
+
*/
|
|
124
|
+
schedule?: UnassignedShiftUpdateCustomfieldsResponse.Schedule;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export namespace UnassignedShiftUpdateCustomfieldsResponse {
|
|
128
|
+
/**
|
|
129
|
+
* The data of the shift
|
|
130
|
+
*/
|
|
131
|
+
export interface ShiftData {
|
|
132
|
+
/**
|
|
133
|
+
* The end time of the shift
|
|
134
|
+
*/
|
|
135
|
+
end_time: string;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* The start time of the shift
|
|
139
|
+
*/
|
|
140
|
+
start_time: string;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Notes for the shift, max length 256 characters
|
|
144
|
+
*/
|
|
145
|
+
notes?: string;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* The breaks of the shift
|
|
149
|
+
*/
|
|
150
|
+
shift_breaks?: Array<ShiftData.ShiftBreak>;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* The segments of the shift
|
|
154
|
+
*/
|
|
155
|
+
shift_segments?: Array<ShiftData.ShiftSegment>;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export namespace ShiftData {
|
|
159
|
+
export interface ShiftBreak {
|
|
160
|
+
/**
|
|
161
|
+
* The duration of the shift break in minutes (input only for creation)
|
|
162
|
+
*/
|
|
163
|
+
duration_minutes: number;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* The start time of the shift break
|
|
167
|
+
*/
|
|
168
|
+
start_time: string;
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* The type of the shift break
|
|
172
|
+
*/
|
|
173
|
+
type: 'MEAL' | 'REST';
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* The end time of the shift break (calculated from start_time + duration_minutes)
|
|
177
|
+
*/
|
|
178
|
+
end_time?: string;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export interface ShiftSegment {
|
|
182
|
+
/**
|
|
183
|
+
* The duration of the shift segment in minutes (input only for creation)
|
|
184
|
+
*/
|
|
185
|
+
duration_minutes: number;
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* The start time of the shift segment
|
|
189
|
+
*/
|
|
190
|
+
start_time: string;
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* The end time of the shift segment (calculated from start_time +
|
|
194
|
+
* duration_minutes)
|
|
195
|
+
*/
|
|
196
|
+
end_time?: string;
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* The IDs of the job codes associated with the shift segment
|
|
200
|
+
*/
|
|
201
|
+
job_codes_id?: Array<string>;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* The published version of the shift
|
|
207
|
+
*/
|
|
208
|
+
export interface PublishedVersion {
|
|
209
|
+
/**
|
|
210
|
+
* The end time of the shift
|
|
211
|
+
*/
|
|
212
|
+
end_time: string;
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* The start time of the shift
|
|
216
|
+
*/
|
|
217
|
+
start_time: string;
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* Notes for the shift, max length 256 characters
|
|
221
|
+
*/
|
|
222
|
+
notes?: string;
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* The breaks of the shift
|
|
226
|
+
*/
|
|
227
|
+
shift_breaks?: Array<PublishedVersion.ShiftBreak>;
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* The segments of the shift
|
|
231
|
+
*/
|
|
232
|
+
shift_segments?: Array<PublishedVersion.ShiftSegment>;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
export namespace PublishedVersion {
|
|
236
|
+
export interface ShiftBreak {
|
|
237
|
+
/**
|
|
238
|
+
* The duration of the shift break in minutes (input only for creation)
|
|
239
|
+
*/
|
|
240
|
+
duration_minutes: number;
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* The start time of the shift break
|
|
244
|
+
*/
|
|
245
|
+
start_time: string;
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* The type of the shift break
|
|
249
|
+
*/
|
|
250
|
+
type: 'MEAL' | 'REST';
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* The end time of the shift break (calculated from start_time + duration_minutes)
|
|
254
|
+
*/
|
|
255
|
+
end_time?: string;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
export interface ShiftSegment {
|
|
259
|
+
/**
|
|
260
|
+
* The duration of the shift segment in minutes (input only for creation)
|
|
261
|
+
*/
|
|
262
|
+
duration_minutes: number;
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* The start time of the shift segment
|
|
266
|
+
*/
|
|
267
|
+
start_time: string;
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* The end time of the shift segment (calculated from start_time +
|
|
271
|
+
* duration_minutes)
|
|
272
|
+
*/
|
|
273
|
+
end_time?: string;
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* The IDs of the job codes associated with the shift segment
|
|
277
|
+
*/
|
|
278
|
+
job_codes_id?: Array<string>;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* The schedule
|
|
284
|
+
*
|
|
285
|
+
* Expandable field
|
|
286
|
+
*/
|
|
287
|
+
export interface Schedule {
|
|
288
|
+
/**
|
|
289
|
+
* Identifier field
|
|
290
|
+
*/
|
|
291
|
+
id: string;
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
* Record creation date
|
|
295
|
+
*/
|
|
296
|
+
created_at: string;
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* Record update date
|
|
300
|
+
*/
|
|
301
|
+
updated_at: string;
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* Whether the requesting role can edit the schedule.
|
|
305
|
+
*/
|
|
306
|
+
can_edit?: boolean;
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* The managers of the schedule.
|
|
310
|
+
*
|
|
311
|
+
* Expandable field
|
|
312
|
+
*/
|
|
313
|
+
managers?: Array<WorkersAPI.Worker>;
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* The IDs of the managers of the schedule.
|
|
317
|
+
*/
|
|
318
|
+
managers_id?: Array<string>;
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* The members of the schedule.
|
|
322
|
+
*
|
|
323
|
+
* Expandable field
|
|
324
|
+
*/
|
|
325
|
+
members?: Array<WorkersAPI.Worker>;
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* The IDs of the members of the schedule.
|
|
329
|
+
*/
|
|
330
|
+
members_id?: Array<string>;
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* The name of the schedule.
|
|
334
|
+
*/
|
|
335
|
+
name?: string;
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* The observers of the schedule.
|
|
339
|
+
*
|
|
340
|
+
* Expandable field
|
|
341
|
+
*/
|
|
342
|
+
observers?: Array<WorkersAPI.Worker>;
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* The IDs of the observers of the schedule.
|
|
346
|
+
*/
|
|
347
|
+
observers_id?: Array<string>;
|
|
348
|
+
|
|
349
|
+
/**
|
|
350
|
+
* The settings of the schedule.
|
|
351
|
+
*/
|
|
352
|
+
settings?: Schedule.Settings;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
export namespace Schedule {
|
|
356
|
+
/**
|
|
357
|
+
* The settings of the schedule.
|
|
358
|
+
*/
|
|
359
|
+
export interface Settings {
|
|
360
|
+
/**
|
|
361
|
+
* The IANA timezone identifier for the schedule (e.g., 'America/New_York').
|
|
362
|
+
* Accepted values are defined by the tz database, listed here:
|
|
363
|
+
* https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
|
364
|
+
*/
|
|
365
|
+
timezone?: string;
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
export interface UnassignedShiftAssignResponse {
|
|
371
|
+
/**
|
|
372
|
+
* The current number of assigned workers for this shift
|
|
373
|
+
*/
|
|
374
|
+
assigned_count?: number;
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* List of shift assignment IDs for this shift
|
|
378
|
+
*/
|
|
379
|
+
assigned_shift_ids?: Array<string>;
|
|
380
|
+
|
|
381
|
+
/**
|
|
382
|
+
* The ID of the newly created shift assignment
|
|
383
|
+
*/
|
|
384
|
+
assignment_id?: string;
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* The target number of workers for this shift
|
|
388
|
+
*/
|
|
389
|
+
target_count?: number;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
export interface UnassignedShiftUpdateCustomfieldsParams {
|
|
393
|
+
/**
|
|
394
|
+
* Example custom field name. Replace with your actual custom field names.
|
|
395
|
+
*/
|
|
396
|
+
FieldName1?: string;
|
|
397
|
+
|
|
398
|
+
[k: string]: unknown;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
export interface UnassignedShiftAssignParams {
|
|
402
|
+
/**
|
|
403
|
+
* The ID of the worker (role) to assign to the shift
|
|
404
|
+
*/
|
|
405
|
+
worker_id: string;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
export declare namespace UnassignedShifts {
|
|
409
|
+
export {
|
|
410
|
+
type UnassignedShiftUpdateCustomfieldsResponse as UnassignedShiftUpdateCustomfieldsResponse,
|
|
411
|
+
type UnassignedShiftAssignResponse as UnassignedShiftAssignResponse,
|
|
412
|
+
type UnassignedShiftUpdateCustomfieldsParams as UnassignedShiftUpdateCustomfieldsParams,
|
|
413
|
+
type UnassignedShiftAssignParams as UnassignedShiftAssignParams,
|
|
414
|
+
};
|
|
415
|
+
}
|