@rippling/rippling-sdk 0.2.0-alpha.24 → 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 +7 -0
- package/functions.d.mts.map +1 -1
- package/functions.d.ts +7 -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 +68 -10
- package/resources/shiftassignments.d.mts.map +1 -1
- package/resources/shiftassignments.d.ts +68 -10
- package/resources/shiftassignments.d.ts.map +1 -1
- package/resources/supergroups/exclusion-members.d.mts +5 -3
- package/resources/supergroups/exclusion-members.d.mts.map +1 -1
- package/resources/supergroups/exclusion-members.d.ts +5 -3
- package/resources/supergroups/exclusion-members.d.ts.map +1 -1
- package/resources/supergroups/exclusion-members.js +1 -0
- package/resources/supergroups/exclusion-members.js.map +1 -1
- package/resources/supergroups/exclusion-members.mjs +1 -0
- package/resources/supergroups/exclusion-members.mjs.map +1 -1
- package/resources/supergroups/inclusion-members.d.mts +5 -3
- package/resources/supergroups/inclusion-members.d.mts.map +1 -1
- package/resources/supergroups/inclusion-members.d.ts +5 -3
- package/resources/supergroups/inclusion-members.d.ts.map +1 -1
- package/resources/supergroups/inclusion-members.js +1 -0
- package/resources/supergroups/inclusion-members.js.map +1 -1
- package/resources/supergroups/inclusion-members.mjs +1 -0
- 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 +8 -26
- package/resources/supergroups/members.d.mts.map +1 -1
- package/resources/supergroups/members.d.ts +8 -26
- package/resources/supergroups/members.d.ts.map +1 -1
- package/resources/supergroups/members.js +1 -0
- package/resources/supergroups/members.js.map +1 -1
- package/resources/supergroups/members.mjs +1 -0
- 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 +744 -32
- package/resources/unassignedshifts.d.mts.map +1 -1
- package/resources/unassignedshifts.d.ts +744 -32
- package/resources/unassignedshifts.d.ts.map +1 -1
- package/resources/unassignedshifts.js +12 -0
- package/resources/unassignedshifts.js.map +1 -1
- package/resources/unassignedshifts.mjs +12 -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 +157 -3
- package/src/functions.ts +20 -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 +68 -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 +82 -11
- package/src/resources/supergroups/exclusion-members.ts +7 -4
- package/src/resources/supergroups/inclusion-members.ts +7 -4
- package/src/resources/supergroups/index.ts +1 -1
- package/src/resources/supergroups/members.ts +10 -36
- 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 +905 -35
- 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,296 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import * as BusinessPartnersAPI from "./business-partners.mjs";
|
|
3
|
+
import * as WorkersAPI from "./workers.mjs";
|
|
4
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
5
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
6
|
+
export declare class ShiftAssignments extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Update custom fields for a shift assignment. The request body should contain a
|
|
9
|
+
* dictionary mapping custom field names to their values.
|
|
10
|
+
*
|
|
11
|
+
* - Requires: `API Tier 2`
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const response =
|
|
16
|
+
* await client.shiftAssignments.updateCustomfields('id');
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
updateCustomfields(id: string, body: ShiftAssignmentUpdateCustomfieldsParams, options?: RequestOptions): APIPromise<ShiftAssignmentUpdateCustomfieldsResponse>;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Meta information for the response.
|
|
23
|
+
*/
|
|
24
|
+
export interface ShiftAssignmentUpdateCustomfieldsResponse extends BusinessPartnersAPI.Meta {
|
|
25
|
+
/**
|
|
26
|
+
* Identifier field
|
|
27
|
+
*/
|
|
28
|
+
id: string;
|
|
29
|
+
/**
|
|
30
|
+
* Record creation date
|
|
31
|
+
*/
|
|
32
|
+
created_at: string;
|
|
33
|
+
/**
|
|
34
|
+
* Whether the shift assignment is published. If true, the published_version will
|
|
35
|
+
* be the same as the shift_data
|
|
36
|
+
*/
|
|
37
|
+
is_published: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* The ID of the schedule
|
|
40
|
+
*/
|
|
41
|
+
schedule_id: string;
|
|
42
|
+
/**
|
|
43
|
+
* The data of the shift
|
|
44
|
+
*/
|
|
45
|
+
shift_data: ShiftAssignmentUpdateCustomfieldsResponse.ShiftData;
|
|
46
|
+
/**
|
|
47
|
+
* Record update date
|
|
48
|
+
*/
|
|
49
|
+
updated_at: string;
|
|
50
|
+
/**
|
|
51
|
+
* The ID of the worker. Empty string '' to unassign if shift is from an open/empty
|
|
52
|
+
* shift.
|
|
53
|
+
*/
|
|
54
|
+
worker_id: string;
|
|
55
|
+
/**
|
|
56
|
+
* Whether the shift assignment can be edited
|
|
57
|
+
*/
|
|
58
|
+
can_edit?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Custom fields for the shift assignment
|
|
61
|
+
*/
|
|
62
|
+
custom_fields?: Array<unknown>;
|
|
63
|
+
/**
|
|
64
|
+
* The published version of the shift assignment, if it exists. If filled but
|
|
65
|
+
* is_published is false, the shift_data is the latest version.
|
|
66
|
+
*/
|
|
67
|
+
published_version?: ShiftAssignmentUpdateCustomfieldsResponse.PublishedVersion;
|
|
68
|
+
/**
|
|
69
|
+
* The schedule
|
|
70
|
+
*
|
|
71
|
+
* Expandable field
|
|
72
|
+
*/
|
|
73
|
+
schedule?: ShiftAssignmentUpdateCustomfieldsResponse.Schedule;
|
|
74
|
+
/**
|
|
75
|
+
* The worker
|
|
76
|
+
*
|
|
77
|
+
* Expandable field
|
|
78
|
+
*/
|
|
79
|
+
worker?: WorkersAPI.Worker;
|
|
80
|
+
}
|
|
81
|
+
export declare namespace ShiftAssignmentUpdateCustomfieldsResponse {
|
|
82
|
+
/**
|
|
83
|
+
* The data of the shift
|
|
84
|
+
*/
|
|
85
|
+
interface ShiftData {
|
|
86
|
+
/**
|
|
87
|
+
* The end time of the shift
|
|
88
|
+
*/
|
|
89
|
+
end_time: string;
|
|
90
|
+
/**
|
|
91
|
+
* The start time of the shift
|
|
92
|
+
*/
|
|
93
|
+
start_time: string;
|
|
94
|
+
/**
|
|
95
|
+
* Notes for the shift, max length 256 characters
|
|
96
|
+
*/
|
|
97
|
+
notes?: string;
|
|
98
|
+
/**
|
|
99
|
+
* The breaks of the shift
|
|
100
|
+
*/
|
|
101
|
+
shift_breaks?: Array<ShiftData.ShiftBreak>;
|
|
102
|
+
/**
|
|
103
|
+
* The segments of the shift
|
|
104
|
+
*/
|
|
105
|
+
shift_segments?: Array<ShiftData.ShiftSegment>;
|
|
106
|
+
}
|
|
107
|
+
namespace ShiftData {
|
|
108
|
+
interface ShiftBreak {
|
|
109
|
+
/**
|
|
110
|
+
* The duration of the shift break in minutes (input only for creation)
|
|
111
|
+
*/
|
|
112
|
+
duration_minutes: number;
|
|
113
|
+
/**
|
|
114
|
+
* The start time of the shift break
|
|
115
|
+
*/
|
|
116
|
+
start_time: string;
|
|
117
|
+
/**
|
|
118
|
+
* The type of the shift break
|
|
119
|
+
*/
|
|
120
|
+
type: 'MEAL' | 'REST';
|
|
121
|
+
/**
|
|
122
|
+
* The end time of the shift break (calculated from start_time + duration_minutes)
|
|
123
|
+
*/
|
|
124
|
+
end_time?: string;
|
|
125
|
+
}
|
|
126
|
+
interface ShiftSegment {
|
|
127
|
+
/**
|
|
128
|
+
* The duration of the shift segment in minutes (input only for creation)
|
|
129
|
+
*/
|
|
130
|
+
duration_minutes: number;
|
|
131
|
+
/**
|
|
132
|
+
* The start time of the shift segment
|
|
133
|
+
*/
|
|
134
|
+
start_time: string;
|
|
135
|
+
/**
|
|
136
|
+
* The end time of the shift segment (calculated from start_time +
|
|
137
|
+
* duration_minutes)
|
|
138
|
+
*/
|
|
139
|
+
end_time?: string;
|
|
140
|
+
/**
|
|
141
|
+
* The IDs of the job codes associated with the shift segment
|
|
142
|
+
*/
|
|
143
|
+
job_codes_id?: Array<string>;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* The published version of the shift assignment, if it exists. If filled but
|
|
148
|
+
* is_published is false, the shift_data is the latest version.
|
|
149
|
+
*/
|
|
150
|
+
interface PublishedVersion {
|
|
151
|
+
/**
|
|
152
|
+
* The end time of the shift
|
|
153
|
+
*/
|
|
154
|
+
end_time: string;
|
|
155
|
+
/**
|
|
156
|
+
* The start time of the shift
|
|
157
|
+
*/
|
|
158
|
+
start_time: string;
|
|
159
|
+
/**
|
|
160
|
+
* Notes for the shift, max length 256 characters
|
|
161
|
+
*/
|
|
162
|
+
notes?: string;
|
|
163
|
+
/**
|
|
164
|
+
* The breaks of the shift
|
|
165
|
+
*/
|
|
166
|
+
shift_breaks?: Array<PublishedVersion.ShiftBreak>;
|
|
167
|
+
/**
|
|
168
|
+
* The segments of the shift
|
|
169
|
+
*/
|
|
170
|
+
shift_segments?: Array<PublishedVersion.ShiftSegment>;
|
|
171
|
+
}
|
|
172
|
+
namespace PublishedVersion {
|
|
173
|
+
interface ShiftBreak {
|
|
174
|
+
/**
|
|
175
|
+
* The duration of the shift break in minutes (input only for creation)
|
|
176
|
+
*/
|
|
177
|
+
duration_minutes: number;
|
|
178
|
+
/**
|
|
179
|
+
* The start time of the shift break
|
|
180
|
+
*/
|
|
181
|
+
start_time: string;
|
|
182
|
+
/**
|
|
183
|
+
* The type of the shift break
|
|
184
|
+
*/
|
|
185
|
+
type: 'MEAL' | 'REST';
|
|
186
|
+
/**
|
|
187
|
+
* The end time of the shift break (calculated from start_time + duration_minutes)
|
|
188
|
+
*/
|
|
189
|
+
end_time?: string;
|
|
190
|
+
}
|
|
191
|
+
interface ShiftSegment {
|
|
192
|
+
/**
|
|
193
|
+
* The duration of the shift segment in minutes (input only for creation)
|
|
194
|
+
*/
|
|
195
|
+
duration_minutes: number;
|
|
196
|
+
/**
|
|
197
|
+
* The start time of the shift segment
|
|
198
|
+
*/
|
|
199
|
+
start_time: string;
|
|
200
|
+
/**
|
|
201
|
+
* The end time of the shift segment (calculated from start_time +
|
|
202
|
+
* duration_minutes)
|
|
203
|
+
*/
|
|
204
|
+
end_time?: string;
|
|
205
|
+
/**
|
|
206
|
+
* The IDs of the job codes associated with the shift segment
|
|
207
|
+
*/
|
|
208
|
+
job_codes_id?: Array<string>;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* The schedule
|
|
213
|
+
*
|
|
214
|
+
* Expandable field
|
|
215
|
+
*/
|
|
216
|
+
interface Schedule {
|
|
217
|
+
/**
|
|
218
|
+
* Identifier field
|
|
219
|
+
*/
|
|
220
|
+
id: string;
|
|
221
|
+
/**
|
|
222
|
+
* Record creation date
|
|
223
|
+
*/
|
|
224
|
+
created_at: string;
|
|
225
|
+
/**
|
|
226
|
+
* Record update date
|
|
227
|
+
*/
|
|
228
|
+
updated_at: string;
|
|
229
|
+
/**
|
|
230
|
+
* Whether the requesting role can edit the schedule.
|
|
231
|
+
*/
|
|
232
|
+
can_edit?: boolean;
|
|
233
|
+
/**
|
|
234
|
+
* The managers of the schedule.
|
|
235
|
+
*
|
|
236
|
+
* Expandable field
|
|
237
|
+
*/
|
|
238
|
+
managers?: Array<WorkersAPI.Worker>;
|
|
239
|
+
/**
|
|
240
|
+
* The IDs of the managers of the schedule.
|
|
241
|
+
*/
|
|
242
|
+
managers_id?: Array<string>;
|
|
243
|
+
/**
|
|
244
|
+
* The members of the schedule.
|
|
245
|
+
*
|
|
246
|
+
* Expandable field
|
|
247
|
+
*/
|
|
248
|
+
members?: Array<WorkersAPI.Worker>;
|
|
249
|
+
/**
|
|
250
|
+
* The IDs of the members of the schedule.
|
|
251
|
+
*/
|
|
252
|
+
members_id?: Array<string>;
|
|
253
|
+
/**
|
|
254
|
+
* The name of the schedule.
|
|
255
|
+
*/
|
|
256
|
+
name?: string;
|
|
257
|
+
/**
|
|
258
|
+
* The observers of the schedule.
|
|
259
|
+
*
|
|
260
|
+
* Expandable field
|
|
261
|
+
*/
|
|
262
|
+
observers?: Array<WorkersAPI.Worker>;
|
|
263
|
+
/**
|
|
264
|
+
* The IDs of the observers of the schedule.
|
|
265
|
+
*/
|
|
266
|
+
observers_id?: Array<string>;
|
|
267
|
+
/**
|
|
268
|
+
* The settings of the schedule.
|
|
269
|
+
*/
|
|
270
|
+
settings?: Schedule.Settings;
|
|
271
|
+
}
|
|
272
|
+
namespace Schedule {
|
|
273
|
+
/**
|
|
274
|
+
* The settings of the schedule.
|
|
275
|
+
*/
|
|
276
|
+
interface Settings {
|
|
277
|
+
/**
|
|
278
|
+
* The IANA timezone identifier for the schedule (e.g., 'America/New_York').
|
|
279
|
+
* Accepted values are defined by the tz database, listed here:
|
|
280
|
+
* https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
|
281
|
+
*/
|
|
282
|
+
timezone?: string;
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
export interface ShiftAssignmentUpdateCustomfieldsParams {
|
|
287
|
+
/**
|
|
288
|
+
* Example custom field name. Replace with your actual custom field names.
|
|
289
|
+
*/
|
|
290
|
+
FieldName1?: string;
|
|
291
|
+
[k: string]: unknown;
|
|
292
|
+
}
|
|
293
|
+
export declare namespace ShiftAssignments {
|
|
294
|
+
export { type ShiftAssignmentUpdateCustomfieldsResponse as ShiftAssignmentUpdateCustomfieldsResponse, type ShiftAssignmentUpdateCustomfieldsParams as ShiftAssignmentUpdateCustomfieldsParams, };
|
|
295
|
+
}
|
|
296
|
+
//# sourceMappingURL=shift-assignments.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shift-assignments.d.mts","sourceRoot":"","sources":["../src/resources/shift-assignments.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,mBAAmB;OACxB,KAAK,UAAU;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C;;;;;;;;;;;OAWG;IACH,kBAAkB,CAChB,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,uCAAuC,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,yCAAyC,CAAC;CAGzD;AAED;;GAEG;AACH,MAAM,WAAW,yCAA0C,SAAQ,mBAAmB,CAAC,IAAI;IACzF;;OAEG;IACH,EAAE,EAAE,MAAM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AE,OAAO,CAAC;QAEnB;;;;WAIG;QACH,QAAQ,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;QAEpC;;WAEG;QACH,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAE5B;;;;WAIG;QACH,OAAO,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;QAEnC;;WAEG;QACH,UAAU,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAE3B;;WAEG;QACH,IAAI,CAAC,EAAE,MAAM,CAAC;QAEd;;;;WAIG;QACH,SAAS,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;QAErC;;WAEG;QACH,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAE7B;;WAEG;QACH,QAAQ,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC;KAC9B;IAED,UAAiB,QAAQ,CAAC;QACxB;;WAEG;QACH,UAAiB,QAAQ;YACvB;;;;eAIG;YACH,QAAQ,CAAC,EAAE,MAAM,CAAC;SACnB;KACF;CACF;AAED,MAAM,WAAW,uCAAuC;IACtD;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,gBAAgB,CAAC;IACxC,OAAO,EACL,KAAK,yCAAyC,IAAI,yCAAyC,EAC3F,KAAK,uCAAuC,IAAI,uCAAuC,GACxF,CAAC;CACH"}
|
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import * as BusinessPartnersAPI from "./business-partners.js";
|
|
3
|
+
import * as WorkersAPI from "./workers.js";
|
|
4
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
5
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
6
|
+
export declare class ShiftAssignments extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Update custom fields for a shift assignment. The request body should contain a
|
|
9
|
+
* dictionary mapping custom field names to their values.
|
|
10
|
+
*
|
|
11
|
+
* - Requires: `API Tier 2`
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const response =
|
|
16
|
+
* await client.shiftAssignments.updateCustomfields('id');
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
updateCustomfields(id: string, body: ShiftAssignmentUpdateCustomfieldsParams, options?: RequestOptions): APIPromise<ShiftAssignmentUpdateCustomfieldsResponse>;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Meta information for the response.
|
|
23
|
+
*/
|
|
24
|
+
export interface ShiftAssignmentUpdateCustomfieldsResponse extends BusinessPartnersAPI.Meta {
|
|
25
|
+
/**
|
|
26
|
+
* Identifier field
|
|
27
|
+
*/
|
|
28
|
+
id: string;
|
|
29
|
+
/**
|
|
30
|
+
* Record creation date
|
|
31
|
+
*/
|
|
32
|
+
created_at: string;
|
|
33
|
+
/**
|
|
34
|
+
* Whether the shift assignment is published. If true, the published_version will
|
|
35
|
+
* be the same as the shift_data
|
|
36
|
+
*/
|
|
37
|
+
is_published: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* The ID of the schedule
|
|
40
|
+
*/
|
|
41
|
+
schedule_id: string;
|
|
42
|
+
/**
|
|
43
|
+
* The data of the shift
|
|
44
|
+
*/
|
|
45
|
+
shift_data: ShiftAssignmentUpdateCustomfieldsResponse.ShiftData;
|
|
46
|
+
/**
|
|
47
|
+
* Record update date
|
|
48
|
+
*/
|
|
49
|
+
updated_at: string;
|
|
50
|
+
/**
|
|
51
|
+
* The ID of the worker. Empty string '' to unassign if shift is from an open/empty
|
|
52
|
+
* shift.
|
|
53
|
+
*/
|
|
54
|
+
worker_id: string;
|
|
55
|
+
/**
|
|
56
|
+
* Whether the shift assignment can be edited
|
|
57
|
+
*/
|
|
58
|
+
can_edit?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Custom fields for the shift assignment
|
|
61
|
+
*/
|
|
62
|
+
custom_fields?: Array<unknown>;
|
|
63
|
+
/**
|
|
64
|
+
* The published version of the shift assignment, if it exists. If filled but
|
|
65
|
+
* is_published is false, the shift_data is the latest version.
|
|
66
|
+
*/
|
|
67
|
+
published_version?: ShiftAssignmentUpdateCustomfieldsResponse.PublishedVersion;
|
|
68
|
+
/**
|
|
69
|
+
* The schedule
|
|
70
|
+
*
|
|
71
|
+
* Expandable field
|
|
72
|
+
*/
|
|
73
|
+
schedule?: ShiftAssignmentUpdateCustomfieldsResponse.Schedule;
|
|
74
|
+
/**
|
|
75
|
+
* The worker
|
|
76
|
+
*
|
|
77
|
+
* Expandable field
|
|
78
|
+
*/
|
|
79
|
+
worker?: WorkersAPI.Worker;
|
|
80
|
+
}
|
|
81
|
+
export declare namespace ShiftAssignmentUpdateCustomfieldsResponse {
|
|
82
|
+
/**
|
|
83
|
+
* The data of the shift
|
|
84
|
+
*/
|
|
85
|
+
interface ShiftData {
|
|
86
|
+
/**
|
|
87
|
+
* The end time of the shift
|
|
88
|
+
*/
|
|
89
|
+
end_time: string;
|
|
90
|
+
/**
|
|
91
|
+
* The start time of the shift
|
|
92
|
+
*/
|
|
93
|
+
start_time: string;
|
|
94
|
+
/**
|
|
95
|
+
* Notes for the shift, max length 256 characters
|
|
96
|
+
*/
|
|
97
|
+
notes?: string;
|
|
98
|
+
/**
|
|
99
|
+
* The breaks of the shift
|
|
100
|
+
*/
|
|
101
|
+
shift_breaks?: Array<ShiftData.ShiftBreak>;
|
|
102
|
+
/**
|
|
103
|
+
* The segments of the shift
|
|
104
|
+
*/
|
|
105
|
+
shift_segments?: Array<ShiftData.ShiftSegment>;
|
|
106
|
+
}
|
|
107
|
+
namespace ShiftData {
|
|
108
|
+
interface ShiftBreak {
|
|
109
|
+
/**
|
|
110
|
+
* The duration of the shift break in minutes (input only for creation)
|
|
111
|
+
*/
|
|
112
|
+
duration_minutes: number;
|
|
113
|
+
/**
|
|
114
|
+
* The start time of the shift break
|
|
115
|
+
*/
|
|
116
|
+
start_time: string;
|
|
117
|
+
/**
|
|
118
|
+
* The type of the shift break
|
|
119
|
+
*/
|
|
120
|
+
type: 'MEAL' | 'REST';
|
|
121
|
+
/**
|
|
122
|
+
* The end time of the shift break (calculated from start_time + duration_minutes)
|
|
123
|
+
*/
|
|
124
|
+
end_time?: string;
|
|
125
|
+
}
|
|
126
|
+
interface ShiftSegment {
|
|
127
|
+
/**
|
|
128
|
+
* The duration of the shift segment in minutes (input only for creation)
|
|
129
|
+
*/
|
|
130
|
+
duration_minutes: number;
|
|
131
|
+
/**
|
|
132
|
+
* The start time of the shift segment
|
|
133
|
+
*/
|
|
134
|
+
start_time: string;
|
|
135
|
+
/**
|
|
136
|
+
* The end time of the shift segment (calculated from start_time +
|
|
137
|
+
* duration_minutes)
|
|
138
|
+
*/
|
|
139
|
+
end_time?: string;
|
|
140
|
+
/**
|
|
141
|
+
* The IDs of the job codes associated with the shift segment
|
|
142
|
+
*/
|
|
143
|
+
job_codes_id?: Array<string>;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* The published version of the shift assignment, if it exists. If filled but
|
|
148
|
+
* is_published is false, the shift_data is the latest version.
|
|
149
|
+
*/
|
|
150
|
+
interface PublishedVersion {
|
|
151
|
+
/**
|
|
152
|
+
* The end time of the shift
|
|
153
|
+
*/
|
|
154
|
+
end_time: string;
|
|
155
|
+
/**
|
|
156
|
+
* The start time of the shift
|
|
157
|
+
*/
|
|
158
|
+
start_time: string;
|
|
159
|
+
/**
|
|
160
|
+
* Notes for the shift, max length 256 characters
|
|
161
|
+
*/
|
|
162
|
+
notes?: string;
|
|
163
|
+
/**
|
|
164
|
+
* The breaks of the shift
|
|
165
|
+
*/
|
|
166
|
+
shift_breaks?: Array<PublishedVersion.ShiftBreak>;
|
|
167
|
+
/**
|
|
168
|
+
* The segments of the shift
|
|
169
|
+
*/
|
|
170
|
+
shift_segments?: Array<PublishedVersion.ShiftSegment>;
|
|
171
|
+
}
|
|
172
|
+
namespace PublishedVersion {
|
|
173
|
+
interface ShiftBreak {
|
|
174
|
+
/**
|
|
175
|
+
* The duration of the shift break in minutes (input only for creation)
|
|
176
|
+
*/
|
|
177
|
+
duration_minutes: number;
|
|
178
|
+
/**
|
|
179
|
+
* The start time of the shift break
|
|
180
|
+
*/
|
|
181
|
+
start_time: string;
|
|
182
|
+
/**
|
|
183
|
+
* The type of the shift break
|
|
184
|
+
*/
|
|
185
|
+
type: 'MEAL' | 'REST';
|
|
186
|
+
/**
|
|
187
|
+
* The end time of the shift break (calculated from start_time + duration_minutes)
|
|
188
|
+
*/
|
|
189
|
+
end_time?: string;
|
|
190
|
+
}
|
|
191
|
+
interface ShiftSegment {
|
|
192
|
+
/**
|
|
193
|
+
* The duration of the shift segment in minutes (input only for creation)
|
|
194
|
+
*/
|
|
195
|
+
duration_minutes: number;
|
|
196
|
+
/**
|
|
197
|
+
* The start time of the shift segment
|
|
198
|
+
*/
|
|
199
|
+
start_time: string;
|
|
200
|
+
/**
|
|
201
|
+
* The end time of the shift segment (calculated from start_time +
|
|
202
|
+
* duration_minutes)
|
|
203
|
+
*/
|
|
204
|
+
end_time?: string;
|
|
205
|
+
/**
|
|
206
|
+
* The IDs of the job codes associated with the shift segment
|
|
207
|
+
*/
|
|
208
|
+
job_codes_id?: Array<string>;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* The schedule
|
|
213
|
+
*
|
|
214
|
+
* Expandable field
|
|
215
|
+
*/
|
|
216
|
+
interface Schedule {
|
|
217
|
+
/**
|
|
218
|
+
* Identifier field
|
|
219
|
+
*/
|
|
220
|
+
id: string;
|
|
221
|
+
/**
|
|
222
|
+
* Record creation date
|
|
223
|
+
*/
|
|
224
|
+
created_at: string;
|
|
225
|
+
/**
|
|
226
|
+
* Record update date
|
|
227
|
+
*/
|
|
228
|
+
updated_at: string;
|
|
229
|
+
/**
|
|
230
|
+
* Whether the requesting role can edit the schedule.
|
|
231
|
+
*/
|
|
232
|
+
can_edit?: boolean;
|
|
233
|
+
/**
|
|
234
|
+
* The managers of the schedule.
|
|
235
|
+
*
|
|
236
|
+
* Expandable field
|
|
237
|
+
*/
|
|
238
|
+
managers?: Array<WorkersAPI.Worker>;
|
|
239
|
+
/**
|
|
240
|
+
* The IDs of the managers of the schedule.
|
|
241
|
+
*/
|
|
242
|
+
managers_id?: Array<string>;
|
|
243
|
+
/**
|
|
244
|
+
* The members of the schedule.
|
|
245
|
+
*
|
|
246
|
+
* Expandable field
|
|
247
|
+
*/
|
|
248
|
+
members?: Array<WorkersAPI.Worker>;
|
|
249
|
+
/**
|
|
250
|
+
* The IDs of the members of the schedule.
|
|
251
|
+
*/
|
|
252
|
+
members_id?: Array<string>;
|
|
253
|
+
/**
|
|
254
|
+
* The name of the schedule.
|
|
255
|
+
*/
|
|
256
|
+
name?: string;
|
|
257
|
+
/**
|
|
258
|
+
* The observers of the schedule.
|
|
259
|
+
*
|
|
260
|
+
* Expandable field
|
|
261
|
+
*/
|
|
262
|
+
observers?: Array<WorkersAPI.Worker>;
|
|
263
|
+
/**
|
|
264
|
+
* The IDs of the observers of the schedule.
|
|
265
|
+
*/
|
|
266
|
+
observers_id?: Array<string>;
|
|
267
|
+
/**
|
|
268
|
+
* The settings of the schedule.
|
|
269
|
+
*/
|
|
270
|
+
settings?: Schedule.Settings;
|
|
271
|
+
}
|
|
272
|
+
namespace Schedule {
|
|
273
|
+
/**
|
|
274
|
+
* The settings of the schedule.
|
|
275
|
+
*/
|
|
276
|
+
interface Settings {
|
|
277
|
+
/**
|
|
278
|
+
* The IANA timezone identifier for the schedule (e.g., 'America/New_York').
|
|
279
|
+
* Accepted values are defined by the tz database, listed here:
|
|
280
|
+
* https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
|
281
|
+
*/
|
|
282
|
+
timezone?: string;
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
export interface ShiftAssignmentUpdateCustomfieldsParams {
|
|
287
|
+
/**
|
|
288
|
+
* Example custom field name. Replace with your actual custom field names.
|
|
289
|
+
*/
|
|
290
|
+
FieldName1?: string;
|
|
291
|
+
[k: string]: unknown;
|
|
292
|
+
}
|
|
293
|
+
export declare namespace ShiftAssignments {
|
|
294
|
+
export { type ShiftAssignmentUpdateCustomfieldsResponse as ShiftAssignmentUpdateCustomfieldsResponse, type ShiftAssignmentUpdateCustomfieldsParams as ShiftAssignmentUpdateCustomfieldsParams, };
|
|
295
|
+
}
|
|
296
|
+
//# sourceMappingURL=shift-assignments.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shift-assignments.d.ts","sourceRoot":"","sources":["../src/resources/shift-assignments.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,mBAAmB;OACxB,KAAK,UAAU;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C;;;;;;;;;;;OAWG;IACH,kBAAkB,CAChB,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,uCAAuC,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,yCAAyC,CAAC;CAGzD;AAED;;GAEG;AACH,MAAM,WAAW,yCAA0C,SAAQ,mBAAmB,CAAC,IAAI;IACzF;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,YAAY,EAAE,OAAO,CAAC;IAEtB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,UAAU,EAAE,yCAAyC,CAAC,SAAS,CAAC;IAEhE;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,QA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CAAC,CAAC;QAE3B;;WAEG;QACH,IAAI,CAAC,EAAE,MAAM,CAAC;QAEd;;;;WAIG;QACH,SAAS,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;QAErC;;WAEG;QACH,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAE7B;;WAEG;QACH,QAAQ,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC;KAC9B;IAED,UAAiB,QAAQ,CAAC;QACxB;;WAEG;QACH,UAAiB,QAAQ;YACvB;;;;eAIG;YACH,QAAQ,CAAC,EAAE,MAAM,CAAC;SACnB;KACF;CACF;AAED,MAAM,WAAW,uCAAuC;IACtD;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,gBAAgB,CAAC;IACxC,OAAO,EACL,KAAK,yCAAyC,IAAI,yCAAyC,EAC3F,KAAK,uCAAuC,IAAI,uCAAuC,GACxF,CAAC;CACH"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.ShiftAssignments = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const path_1 = require("../internal/utils/path.js");
|
|
7
|
+
class ShiftAssignments extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Update custom fields for a shift assignment. The request body should contain a
|
|
10
|
+
* dictionary mapping custom field names to their values.
|
|
11
|
+
*
|
|
12
|
+
* - Requires: `API Tier 2`
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const response =
|
|
17
|
+
* await client.shiftAssignments.updateCustomfields('id');
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
updateCustomfields(id, body, options) {
|
|
21
|
+
return this._client.patch((0, path_1.path) `/shiftassignments/${id}/customfields`, { body, ...options });
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.ShiftAssignments = ShiftAssignments;
|
|
25
|
+
//# sourceMappingURL=shift-assignments.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shift-assignments.js","sourceRoot":"","sources":["../src/resources/shift-assignments.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAK/C,oDAA8C;AAE9C,MAAa,gBAAiB,SAAQ,sBAAW;IAC/C;;;;;;;;;;;OAWG;IACH,kBAAkB,CAChB,EAAU,EACV,IAA6C,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,qBAAqB,EAAE,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9F,CAAC;CACF;AApBD,4CAoBC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { path } from "../internal/utils/path.mjs";
|
|
4
|
+
export class ShiftAssignments extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Update custom fields for a shift assignment. The request body should contain a
|
|
7
|
+
* dictionary mapping custom field names to their values.
|
|
8
|
+
*
|
|
9
|
+
* - Requires: `API Tier 2`
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const response =
|
|
14
|
+
* await client.shiftAssignments.updateCustomfields('id');
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
updateCustomfields(id, body, options) {
|
|
18
|
+
return this._client.patch(path `/shiftassignments/${id}/customfields`, { body, ...options });
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=shift-assignments.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shift-assignments.mjs","sourceRoot":"","sources":["../src/resources/shift-assignments.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAKf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAC/C;;;;;;;;;;;OAWG;IACH,kBAAkB,CAChB,EAAU,EACV,IAA6C,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,qBAAqB,EAAE,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9F,CAAC;CACF"}
|