@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.
Files changed (223) hide show
  1. package/LICENSE +1 -1
  2. package/client.d.mts +33 -11
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +33 -11
  5. package/client.d.ts.map +1 -1
  6. package/client.js +21 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +21 -0
  9. package/client.mjs.map +1 -1
  10. package/functions.d.mts +4 -0
  11. package/functions.d.mts.map +1 -1
  12. package/functions.d.ts +4 -0
  13. package/functions.d.ts.map +1 -1
  14. package/functions.js +13 -1
  15. package/functions.js.map +1 -1
  16. package/functions.mjs +11 -0
  17. package/functions.mjs.map +1 -1
  18. package/package.json +1 -1
  19. package/resources/compensation-bands-details.d.mts +95 -0
  20. package/resources/compensation-bands-details.d.mts.map +1 -0
  21. package/resources/compensation-bands-details.d.ts +95 -0
  22. package/resources/compensation-bands-details.d.ts.map +1 -0
  23. package/resources/compensation-bands-details.js +29 -0
  24. package/resources/compensation-bands-details.js.map +1 -0
  25. package/resources/compensation-bands-details.mjs +25 -0
  26. package/resources/compensation-bands-details.mjs.map +1 -0
  27. package/resources/custom-settings.d.mts +270 -0
  28. package/resources/custom-settings.d.mts.map +1 -0
  29. package/resources/custom-settings.d.ts +270 -0
  30. package/resources/custom-settings.d.ts.map +1 -0
  31. package/resources/custom-settings.js +51 -0
  32. package/resources/custom-settings.js.map +1 -0
  33. package/resources/custom-settings.mjs +47 -0
  34. package/resources/custom-settings.mjs.map +1 -0
  35. package/resources/departments.d.mts +37 -1
  36. package/resources/departments.d.mts.map +1 -1
  37. package/resources/departments.d.ts +37 -1
  38. package/resources/departments.d.ts.map +1 -1
  39. package/resources/departments.js +12 -0
  40. package/resources/departments.js.map +1 -1
  41. package/resources/departments.mjs +12 -0
  42. package/resources/departments.mjs.map +1 -1
  43. package/resources/draft-hires.d.mts +27 -0
  44. package/resources/draft-hires.d.mts.map +1 -1
  45. package/resources/draft-hires.d.ts +27 -0
  46. package/resources/draft-hires.d.ts.map +1 -1
  47. package/resources/functions/executions.d.mts +6 -82
  48. package/resources/functions/executions.d.mts.map +1 -1
  49. package/resources/functions/executions.d.ts +6 -82
  50. package/resources/functions/executions.d.ts.map +1 -1
  51. package/resources/functions/executions.js.map +1 -1
  52. package/resources/functions/executions.mjs.map +1 -1
  53. package/resources/functions/functions.d.mts +2 -2
  54. package/resources/functions/functions.d.mts.map +1 -1
  55. package/resources/functions/functions.d.ts +2 -2
  56. package/resources/functions/functions.d.ts.map +1 -1
  57. package/resources/functions/functions.js.map +1 -1
  58. package/resources/functions/functions.mjs.map +1 -1
  59. package/resources/functions/index.d.mts +1 -1
  60. package/resources/functions/index.d.mts.map +1 -1
  61. package/resources/functions/index.d.ts +1 -1
  62. package/resources/functions/index.d.ts.map +1 -1
  63. package/resources/functions/index.js.map +1 -1
  64. package/resources/functions/index.mjs.map +1 -1
  65. package/resources/index.d.mts +12 -5
  66. package/resources/index.d.mts.map +1 -1
  67. package/resources/index.d.ts +12 -5
  68. package/resources/index.d.ts.map +1 -1
  69. package/resources/index.js +15 -1
  70. package/resources/index.js.map +1 -1
  71. package/resources/index.mjs +7 -0
  72. package/resources/index.mjs.map +1 -1
  73. package/resources/job-assignments.d.mts +70 -6
  74. package/resources/job-assignments.d.mts.map +1 -1
  75. package/resources/job-assignments.d.ts +70 -6
  76. package/resources/job-assignments.d.ts.map +1 -1
  77. package/resources/job-assignments.js +22 -0
  78. package/resources/job-assignments.js.map +1 -1
  79. package/resources/job-assignments.mjs +22 -0
  80. package/resources/job-assignments.mjs.map +1 -1
  81. package/resources/job-codes.d.mts +47 -1
  82. package/resources/job-codes.d.mts.map +1 -1
  83. package/resources/job-codes.d.ts +47 -1
  84. package/resources/job-codes.d.ts.map +1 -1
  85. package/resources/job-dimensions.d.mts +20 -0
  86. package/resources/job-dimensions.d.mts.map +1 -1
  87. package/resources/job-dimensions.d.ts +20 -0
  88. package/resources/job-dimensions.d.ts.map +1 -1
  89. package/resources/job-requisitions-write.d.mts +257 -0
  90. package/resources/job-requisitions-write.d.mts.map +1 -0
  91. package/resources/job-requisitions-write.d.ts +257 -0
  92. package/resources/job-requisitions-write.d.ts.map +1 -0
  93. package/resources/job-requisitions-write.js +15 -0
  94. package/resources/job-requisitions-write.js.map +1 -0
  95. package/resources/job-requisitions-write.mjs +11 -0
  96. package/resources/job-requisitions-write.mjs.map +1 -0
  97. package/resources/leave-accruals.d.mts +112 -6
  98. package/resources/leave-accruals.d.mts.map +1 -1
  99. package/resources/leave-accruals.d.ts +112 -6
  100. package/resources/leave-accruals.d.ts.map +1 -1
  101. package/resources/leave-accruals.js +19 -3
  102. package/resources/leave-accruals.js.map +1 -1
  103. package/resources/leave-accruals.mjs +19 -3
  104. package/resources/leave-accruals.mjs.map +1 -1
  105. package/resources/report-runs.d.mts +149 -0
  106. package/resources/report-runs.d.mts.map +1 -0
  107. package/resources/report-runs.d.ts +149 -0
  108. package/resources/report-runs.d.ts.map +1 -0
  109. package/resources/report-runs.js +22 -0
  110. package/resources/report-runs.js.map +1 -0
  111. package/resources/report-runs.mjs +18 -0
  112. package/resources/report-runs.mjs.map +1 -0
  113. package/resources/shared.d.mts +35 -0
  114. package/resources/shared.d.mts.map +1 -1
  115. package/resources/shared.d.ts +35 -0
  116. package/resources/shared.d.ts.map +1 -1
  117. package/resources/shift-assignments.d.mts +296 -0
  118. package/resources/shift-assignments.d.mts.map +1 -0
  119. package/resources/shift-assignments.d.ts +296 -0
  120. package/resources/shift-assignments.d.ts.map +1 -0
  121. package/resources/shift-assignments.js +25 -0
  122. package/resources/shift-assignments.js.map +1 -0
  123. package/resources/shift-assignments.mjs +21 -0
  124. package/resources/shift-assignments.mjs.map +1 -0
  125. package/resources/shiftassignments.d.mts +56 -4
  126. package/resources/shiftassignments.d.mts.map +1 -1
  127. package/resources/shiftassignments.d.ts +56 -4
  128. package/resources/shiftassignments.d.ts.map +1 -1
  129. package/resources/supergroups/exclusion-members.d.mts +3 -3
  130. package/resources/supergroups/exclusion-members.d.mts.map +1 -1
  131. package/resources/supergroups/exclusion-members.d.ts +3 -3
  132. package/resources/supergroups/exclusion-members.d.ts.map +1 -1
  133. package/resources/supergroups/exclusion-members.js.map +1 -1
  134. package/resources/supergroups/exclusion-members.mjs.map +1 -1
  135. package/resources/supergroups/inclusion-members.d.mts +3 -3
  136. package/resources/supergroups/inclusion-members.d.mts.map +1 -1
  137. package/resources/supergroups/inclusion-members.d.ts +3 -3
  138. package/resources/supergroups/inclusion-members.d.ts.map +1 -1
  139. package/resources/supergroups/inclusion-members.js.map +1 -1
  140. package/resources/supergroups/inclusion-members.mjs.map +1 -1
  141. package/resources/supergroups/index.d.mts +1 -1
  142. package/resources/supergroups/index.d.mts.map +1 -1
  143. package/resources/supergroups/index.d.ts +1 -1
  144. package/resources/supergroups/index.d.ts.map +1 -1
  145. package/resources/supergroups/index.js.map +1 -1
  146. package/resources/supergroups/index.mjs.map +1 -1
  147. package/resources/supergroups/members.d.mts +6 -37
  148. package/resources/supergroups/members.d.mts.map +1 -1
  149. package/resources/supergroups/members.d.ts +6 -37
  150. package/resources/supergroups/members.d.ts.map +1 -1
  151. package/resources/supergroups/members.js.map +1 -1
  152. package/resources/supergroups/members.mjs.map +1 -1
  153. package/resources/supergroups/supergroups.d.mts +2 -2
  154. package/resources/supergroups/supergroups.d.mts.map +1 -1
  155. package/resources/supergroups/supergroups.d.ts +2 -2
  156. package/resources/supergroups/supergroups.d.ts.map +1 -1
  157. package/resources/supergroups/supergroups.js.map +1 -1
  158. package/resources/supergroups/supergroups.mjs.map +1 -1
  159. package/resources/titles.d.mts +126 -0
  160. package/resources/titles.d.mts.map +1 -0
  161. package/resources/titles.d.ts +126 -0
  162. package/resources/titles.d.ts.map +1 -0
  163. package/resources/titles.js +48 -0
  164. package/resources/titles.js.map +1 -0
  165. package/resources/titles.mjs +44 -0
  166. package/resources/titles.mjs.map +1 -0
  167. package/resources/unassigned-shifts.d.mts +334 -0
  168. package/resources/unassigned-shifts.d.mts.map +1 -0
  169. package/resources/unassigned-shifts.d.ts +334 -0
  170. package/resources/unassigned-shifts.d.ts.map +1 -0
  171. package/resources/unassigned-shifts.js +42 -0
  172. package/resources/unassigned-shifts.js.map +1 -0
  173. package/resources/unassigned-shifts.mjs +38 -0
  174. package/resources/unassigned-shifts.mjs.map +1 -0
  175. package/resources/unassignedshifts.d.mts +382 -1
  176. package/resources/unassignedshifts.d.mts.map +1 -1
  177. package/resources/unassignedshifts.d.ts +382 -1
  178. package/resources/unassignedshifts.d.ts.map +1 -1
  179. package/resources/unassignedshifts.js +6 -0
  180. package/resources/unassignedshifts.js.map +1 -1
  181. package/resources/unassignedshifts.mjs +6 -0
  182. package/resources/unassignedshifts.mjs.map +1 -1
  183. package/resources/work-locations.d.mts +95 -1
  184. package/resources/work-locations.d.mts.map +1 -1
  185. package/resources/work-locations.d.ts +95 -1
  186. package/resources/work-locations.d.ts.map +1 -1
  187. package/resources/work-locations.js +12 -0
  188. package/resources/work-locations.js.map +1 -1
  189. package/resources/work-locations.mjs +12 -0
  190. package/resources/work-locations.mjs.map +1 -1
  191. package/src/client.ts +153 -3
  192. package/src/functions.ts +14 -0
  193. package/src/resources/compensation-bands-details.ts +140 -0
  194. package/src/resources/custom-settings.ts +371 -0
  195. package/src/resources/departments.ts +50 -0
  196. package/src/resources/draft-hires.ts +32 -0
  197. package/src/resources/functions/executions.ts +8 -104
  198. package/src/resources/functions/functions.ts +4 -8
  199. package/src/resources/functions/index.ts +2 -4
  200. package/src/resources/index.ts +66 -2
  201. package/src/resources/job-assignments.ts +95 -6
  202. package/src/resources/job-codes.ts +56 -1
  203. package/src/resources/job-dimensions.ts +24 -0
  204. package/src/resources/job-requisitions-write.ts +327 -0
  205. package/src/resources/leave-accruals.ts +229 -12
  206. package/src/resources/report-runs.ts +186 -0
  207. package/src/resources/shared.ts +44 -0
  208. package/src/resources/shift-assignments.ts +362 -0
  209. package/src/resources/shiftassignments.ts +70 -5
  210. package/src/resources/supergroups/exclusion-members.ts +4 -4
  211. package/src/resources/supergroups/inclusion-members.ts +4 -4
  212. package/src/resources/supergroups/index.ts +1 -1
  213. package/src/resources/supergroups/members.ts +7 -49
  214. package/src/resources/supergroups/supergroups.ts +2 -7
  215. package/src/resources/titles.ts +181 -0
  216. package/src/resources/unassigned-shifts.ts +415 -0
  217. package/src/resources/unassignedshifts.ts +467 -0
  218. package/src/resources/work-locations.ts +118 -0
  219. package/src/version.ts +1 -1
  220. package/version.d.mts +1 -1
  221. package/version.d.ts +1 -1
  222. package/version.js +1 -1
  223. 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,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,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IAE/B;;;OAGG;IACH,iBAAiB,CAAC,EAAE,yCAAyC,CAAC,gBAAgB,CAAC;IAE/E;;;;OAIG;IACH,QAAQ,CAAC,EAAE,yCAAyC,CAAC,QAAQ,CAAC;IAE9D;;;;OAIG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC,MAAM,CAAC;CAC5B;AAED,yBAAi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G;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,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IAE/B;;;OAGG;IACH,iBAAiB,CAAC,EAAE,yCAAyC,CAAC,gBAAgB,CAAC;IAE/E;;;;OAIG;IACH,QAAQ,CAAC,EAAE,yCAAyC,CAAC,QAAQ,CAAC;IAE9D;;;;OAIG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC,MAAM,CAAC;CAC5B;AAED,yBAAiB,yCAAyC,CAAC;IACzD;;OAEG;IACH,UAAiB,SAAS;QACxB;;WAEG;QACH,Q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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"}