@rippling/rippling-sdk 0.2.0-alpha.22 → 0.2.0-alpha.24

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 (226) hide show
  1. package/client.d.mts +7 -4
  2. package/client.d.mts.map +1 -1
  3. package/client.d.ts +7 -4
  4. package/client.d.ts.map +1 -1
  5. package/client.js +4 -0
  6. package/client.js.map +1 -1
  7. package/client.mjs +4 -0
  8. package/client.mjs.map +1 -1
  9. package/internal/to-file.d.mts +1 -1
  10. package/internal/to-file.d.ts +1 -1
  11. package/internal/to-file.js +1 -1
  12. package/internal/to-file.mjs +1 -1
  13. package/package.json +1 -1
  14. package/resources/business-partner-groups.d.mts +1 -0
  15. package/resources/business-partner-groups.d.mts.map +1 -1
  16. package/resources/business-partner-groups.d.ts +1 -0
  17. package/resources/business-partner-groups.d.ts.map +1 -1
  18. package/resources/business-partners.d.mts +1 -0
  19. package/resources/business-partners.d.mts.map +1 -1
  20. package/resources/business-partners.d.ts +1 -0
  21. package/resources/business-partners.d.ts.map +1 -1
  22. package/resources/candidate-applications.d.mts +1 -0
  23. package/resources/candidate-applications.d.mts.map +1 -1
  24. package/resources/candidate-applications.d.ts +1 -0
  25. package/resources/candidate-applications.d.ts.map +1 -1
  26. package/resources/candidates.d.mts +1 -0
  27. package/resources/candidates.d.mts.map +1 -1
  28. package/resources/candidates.d.ts +1 -0
  29. package/resources/candidates.d.ts.map +1 -1
  30. package/resources/companies.d.mts +1 -0
  31. package/resources/companies.d.mts.map +1 -1
  32. package/resources/companies.d.ts +1 -0
  33. package/resources/companies.d.ts.map +1 -1
  34. package/resources/compensations.d.mts +1 -0
  35. package/resources/compensations.d.mts.map +1 -1
  36. package/resources/compensations.d.ts +1 -0
  37. package/resources/compensations.d.ts.map +1 -1
  38. package/resources/custom-fields.d.mts +1 -0
  39. package/resources/custom-fields.d.mts.map +1 -1
  40. package/resources/custom-fields.d.ts +1 -0
  41. package/resources/custom-fields.d.ts.map +1 -1
  42. package/resources/departments.d.mts +1 -0
  43. package/resources/departments.d.mts.map +1 -1
  44. package/resources/departments.d.ts +1 -0
  45. package/resources/departments.d.ts.map +1 -1
  46. package/resources/draft-hires.d.mts +4 -16
  47. package/resources/draft-hires.d.mts.map +1 -1
  48. package/resources/draft-hires.d.ts +4 -16
  49. package/resources/draft-hires.d.ts.map +1 -1
  50. package/resources/employment-types.d.mts +1 -0
  51. package/resources/employment-types.d.mts.map +1 -1
  52. package/resources/employment-types.d.ts +1 -0
  53. package/resources/employment-types.d.ts.map +1 -1
  54. package/resources/headcount-positions.d.mts +1 -0
  55. package/resources/headcount-positions.d.mts.map +1 -1
  56. package/resources/headcount-positions.d.ts +1 -0
  57. package/resources/headcount-positions.d.ts.map +1 -1
  58. package/resources/headcount-priorities.d.mts +1 -0
  59. package/resources/headcount-priorities.d.mts.map +1 -1
  60. package/resources/headcount-priorities.d.ts +1 -0
  61. package/resources/headcount-priorities.d.ts.map +1 -1
  62. package/resources/index.d.mts +3 -2
  63. package/resources/index.d.mts.map +1 -1
  64. package/resources/index.d.ts +3 -2
  65. package/resources/index.d.ts.map +1 -1
  66. package/resources/index.js +3 -1
  67. package/resources/index.js.map +1 -1
  68. package/resources/index.mjs +1 -0
  69. package/resources/index.mjs.map +1 -1
  70. package/resources/job-assignments.d.mts +2 -0
  71. package/resources/job-assignments.d.mts.map +1 -1
  72. package/resources/job-assignments.d.ts +2 -0
  73. package/resources/job-assignments.d.ts.map +1 -1
  74. package/resources/job-codes.d.mts +2 -0
  75. package/resources/job-codes.d.mts.map +1 -1
  76. package/resources/job-codes.d.ts +2 -0
  77. package/resources/job-codes.d.ts.map +1 -1
  78. package/resources/job-dimensions.d.mts +1 -0
  79. package/resources/job-dimensions.d.mts.map +1 -1
  80. package/resources/job-dimensions.d.ts +1 -0
  81. package/resources/job-dimensions.d.ts.map +1 -1
  82. package/resources/job-functions.d.mts +1 -0
  83. package/resources/job-functions.d.mts.map +1 -1
  84. package/resources/job-functions.d.ts +1 -0
  85. package/resources/job-functions.d.ts.map +1 -1
  86. package/resources/job-pay-rate-exceptions.d.mts +2 -0
  87. package/resources/job-pay-rate-exceptions.d.mts.map +1 -1
  88. package/resources/job-pay-rate-exceptions.d.ts +2 -0
  89. package/resources/job-pay-rate-exceptions.d.ts.map +1 -1
  90. package/resources/job-requisitions.d.mts +1 -0
  91. package/resources/job-requisitions.d.mts.map +1 -1
  92. package/resources/job-requisitions.d.ts +1 -0
  93. package/resources/job-requisitions.d.ts.map +1 -1
  94. package/resources/kiosk-badges.d.mts +1 -0
  95. package/resources/kiosk-badges.d.mts.map +1 -1
  96. package/resources/kiosk-badges.d.ts +1 -0
  97. package/resources/kiosk-badges.d.ts.map +1 -1
  98. package/resources/leave-balances.d.mts +1 -0
  99. package/resources/leave-balances.d.mts.map +1 -1
  100. package/resources/leave-balances.d.ts +1 -0
  101. package/resources/leave-balances.d.ts.map +1 -1
  102. package/resources/leave-requests.d.mts +1 -0
  103. package/resources/leave-requests.d.mts.map +1 -1
  104. package/resources/leave-requests.d.ts +1 -0
  105. package/resources/leave-requests.d.ts.map +1 -1
  106. package/resources/leave-types.d.mts +1 -0
  107. package/resources/leave-types.d.mts.map +1 -1
  108. package/resources/leave-types.d.ts +1 -0
  109. package/resources/leave-types.d.ts.map +1 -1
  110. package/resources/legal-entities.d.mts +1 -0
  111. package/resources/legal-entities.d.mts.map +1 -1
  112. package/resources/legal-entities.d.ts +1 -0
  113. package/resources/legal-entities.d.ts.map +1 -1
  114. package/resources/levels.d.mts +1 -0
  115. package/resources/levels.d.mts.map +1 -1
  116. package/resources/levels.d.ts +1 -0
  117. package/resources/levels.d.ts.map +1 -1
  118. package/resources/location-factors.d.mts +1 -0
  119. package/resources/location-factors.d.mts.map +1 -1
  120. package/resources/location-factors.d.ts +1 -0
  121. package/resources/location-factors.d.ts.map +1 -1
  122. package/resources/schedules.d.mts +252 -1
  123. package/resources/schedules.d.mts.map +1 -1
  124. package/resources/schedules.d.ts +252 -1
  125. package/resources/schedules.d.ts.map +1 -1
  126. package/resources/schedules.js +12 -0
  127. package/resources/schedules.js.map +1 -1
  128. package/resources/schedules.mjs +12 -0
  129. package/resources/schedules.mjs.map +1 -1
  130. package/resources/shift-inputs.d.mts +1 -0
  131. package/resources/shift-inputs.d.mts.map +1 -1
  132. package/resources/shift-inputs.d.ts +1 -0
  133. package/resources/shift-inputs.d.ts.map +1 -1
  134. package/resources/shiftassignments.d.mts +874 -153
  135. package/resources/shiftassignments.d.mts.map +1 -1
  136. package/resources/shiftassignments.d.ts +874 -153
  137. package/resources/shiftassignments.d.ts.map +1 -1
  138. package/resources/shiftassignments.js +12 -0
  139. package/resources/shiftassignments.js.map +1 -1
  140. package/resources/shiftassignments.mjs +12 -0
  141. package/resources/shiftassignments.mjs.map +1 -1
  142. package/resources/sso-me.d.mts +1 -0
  143. package/resources/sso-me.d.mts.map +1 -1
  144. package/resources/sso-me.d.ts +1 -0
  145. package/resources/sso-me.d.ts.map +1 -1
  146. package/resources/teams.d.mts +1 -0
  147. package/resources/teams.d.mts.map +1 -1
  148. package/resources/teams.d.ts +1 -0
  149. package/resources/teams.d.ts.map +1 -1
  150. package/resources/time-cards.d.mts +1 -0
  151. package/resources/time-cards.d.mts.map +1 -1
  152. package/resources/time-cards.d.ts +1 -0
  153. package/resources/time-cards.d.ts.map +1 -1
  154. package/resources/time-entries.d.mts +1 -0
  155. package/resources/time-entries.d.mts.map +1 -1
  156. package/resources/time-entries.d.ts +1 -0
  157. package/resources/time-entries.d.ts.map +1 -1
  158. package/resources/tracks.d.mts +1 -0
  159. package/resources/tracks.d.mts.map +1 -1
  160. package/resources/tracks.d.ts +1 -0
  161. package/resources/tracks.d.ts.map +1 -1
  162. package/resources/unassignedshifts.d.mts +535 -0
  163. package/resources/unassignedshifts.d.mts.map +1 -0
  164. package/resources/unassignedshifts.d.ts +535 -0
  165. package/resources/unassignedshifts.d.ts.map +1 -0
  166. package/resources/unassignedshifts.js +32 -0
  167. package/resources/unassignedshifts.js.map +1 -0
  168. package/resources/unassignedshifts.mjs +28 -0
  169. package/resources/unassignedshifts.mjs.map +1 -0
  170. package/resources/users.d.mts +1 -0
  171. package/resources/users.d.mts.map +1 -1
  172. package/resources/users.d.ts +1 -0
  173. package/resources/users.d.ts.map +1 -1
  174. package/resources/work-locations.d.mts +1 -0
  175. package/resources/work-locations.d.mts.map +1 -1
  176. package/resources/work-locations.d.ts +1 -0
  177. package/resources/work-locations.d.ts.map +1 -1
  178. package/resources/workers.d.mts +2 -1
  179. package/resources/workers.d.mts.map +1 -1
  180. package/resources/workers.d.ts +2 -1
  181. package/resources/workers.d.ts.map +1 -1
  182. package/src/client.ts +36 -0
  183. package/src/internal/to-file.ts +1 -1
  184. package/src/resources/business-partner-groups.ts +2 -0
  185. package/src/resources/business-partners.ts +2 -0
  186. package/src/resources/candidate-applications.ts +2 -0
  187. package/src/resources/candidates.ts +2 -0
  188. package/src/resources/companies.ts +2 -0
  189. package/src/resources/compensations.ts +2 -0
  190. package/src/resources/custom-fields.ts +2 -0
  191. package/src/resources/departments.ts +2 -0
  192. package/src/resources/draft-hires.ts +5 -20
  193. package/src/resources/employment-types.ts +2 -0
  194. package/src/resources/headcount-positions.ts +2 -0
  195. package/src/resources/headcount-priorities.ts +2 -0
  196. package/src/resources/index.ts +16 -0
  197. package/src/resources/job-assignments.ts +4 -0
  198. package/src/resources/job-codes.ts +4 -0
  199. package/src/resources/job-dimensions.ts +2 -0
  200. package/src/resources/job-functions.ts +2 -0
  201. package/src/resources/job-pay-rate-exceptions.ts +4 -0
  202. package/src/resources/job-requisitions.ts +2 -0
  203. package/src/resources/kiosk-badges.ts +2 -0
  204. package/src/resources/leave-balances.ts +2 -0
  205. package/src/resources/leave-requests.ts +2 -0
  206. package/src/resources/leave-types.ts +2 -0
  207. package/src/resources/legal-entities.ts +2 -0
  208. package/src/resources/levels.ts +2 -0
  209. package/src/resources/location-factors.ts +2 -0
  210. package/src/resources/schedules.ts +311 -0
  211. package/src/resources/shift-inputs.ts +2 -0
  212. package/src/resources/shiftassignments.ts +1037 -162
  213. package/src/resources/sso-me.ts +2 -0
  214. package/src/resources/teams.ts +2 -0
  215. package/src/resources/time-cards.ts +2 -0
  216. package/src/resources/time-entries.ts +2 -0
  217. package/src/resources/tracks.ts +2 -0
  218. package/src/resources/unassignedshifts.ts +664 -0
  219. package/src/resources/users.ts +2 -0
  220. package/src/resources/work-locations.ts +2 -0
  221. package/src/resources/workers.ts +3 -0
  222. package/src/version.ts +1 -1
  223. package/version.d.mts +1 -1
  224. package/version.d.ts +1 -1
  225. package/version.js +1 -1
  226. package/version.mjs +1 -1
@@ -23,6 +23,16 @@ export class Schedules extends APIResource {
23
23
  return this._client.getAPIList('/schedules', PageCursorURL<ScheduleListResponse>, { query, ...options });
24
24
  }
25
25
 
26
+ /**
27
+ * Create a new schedule
28
+ */
29
+ create(
30
+ body: ScheduleCreateParams | null | undefined = {},
31
+ options?: RequestOptions,
32
+ ): APIPromise<ScheduleCreateResponse> {
33
+ return this._client.post('/schedules', { body, ...options });
34
+ }
35
+
26
36
  /**
27
37
  * Retrieve a specific schedule
28
38
  */
@@ -33,6 +43,17 @@ export class Schedules extends APIResource {
33
43
  ): APIPromise<ScheduleRetrieveResponse> {
34
44
  return this._client.get(path`/schedules/${id}`, { query, ...options });
35
45
  }
46
+
47
+ /**
48
+ * Updated a specific schedule
49
+ */
50
+ update(
51
+ id: string,
52
+ body: ScheduleUpdateParams | null | undefined = {},
53
+ options?: RequestOptions,
54
+ ): APIPromise<ScheduleUpdateResponse> {
55
+ return this._client.patch(path`/schedules/${id}`, { body, ...options });
56
+ }
36
57
  }
37
58
 
38
59
  export type ScheduleListResponsesPageCursorURL = PageCursorURL<ScheduleListResponse>;
@@ -98,6 +119,107 @@ export interface ScheduleListResponse {
98
119
  * The IDs of the observers of the schedule.
99
120
  */
100
121
  observers_id?: Array<string>;
122
+
123
+ /**
124
+ * The settings of the schedule.
125
+ */
126
+ settings?: ScheduleListResponse.Settings;
127
+ }
128
+
129
+ export namespace ScheduleListResponse {
130
+ /**
131
+ * The settings of the schedule.
132
+ */
133
+ export interface Settings {
134
+ /**
135
+ * The IANA timezone identifier for the schedule (e.g., 'America/New_York').
136
+ * Accepted values are defined by the tz database, listed here:
137
+ * https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
138
+ */
139
+ timezone?: string;
140
+ }
141
+ }
142
+
143
+ export interface ScheduleCreateResponse {
144
+ /**
145
+ * Identifier field
146
+ */
147
+ id: string;
148
+
149
+ /**
150
+ * Record creation date
151
+ */
152
+ created_at: string;
153
+
154
+ /**
155
+ * Record update date
156
+ */
157
+ updated_at: string;
158
+
159
+ /**
160
+ * Whether the requesting role can edit the schedule.
161
+ */
162
+ can_edit?: boolean;
163
+
164
+ /**
165
+ * The managers of the schedule.
166
+ *
167
+ * Expandable field
168
+ */
169
+ managers?: Array<WorkersAPI.Worker>;
170
+
171
+ /**
172
+ * The IDs of the managers of the schedule.
173
+ */
174
+ managers_id?: Array<string>;
175
+
176
+ /**
177
+ * The members of the schedule.
178
+ *
179
+ * Expandable field
180
+ */
181
+ members?: Array<WorkersAPI.Worker>;
182
+
183
+ /**
184
+ * The IDs of the members of the schedule.
185
+ */
186
+ members_id?: Array<string>;
187
+
188
+ /**
189
+ * The name of the schedule.
190
+ */
191
+ name?: string;
192
+
193
+ /**
194
+ * The observers of the schedule.
195
+ *
196
+ * Expandable field
197
+ */
198
+ observers?: Array<WorkersAPI.Worker>;
199
+
200
+ /**
201
+ * The IDs of the observers of the schedule.
202
+ */
203
+ observers_id?: Array<string>;
204
+
205
+ /**
206
+ * The settings of the schedule.
207
+ */
208
+ settings?: ScheduleCreateResponse.Settings;
209
+ }
210
+
211
+ export namespace ScheduleCreateResponse {
212
+ /**
213
+ * The settings of the schedule.
214
+ */
215
+ export interface Settings {
216
+ /**
217
+ * The IANA timezone identifier for the schedule (e.g., 'America/New_York').
218
+ * Accepted values are defined by the tz database, listed here:
219
+ * https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
220
+ */
221
+ timezone?: string;
222
+ }
101
223
  }
102
224
 
103
225
  /**
@@ -164,24 +286,213 @@ export interface ScheduleRetrieveResponse extends BusinessPartnersAPI.Meta {
164
286
  * The IDs of the observers of the schedule.
165
287
  */
166
288
  observers_id?: Array<string>;
289
+
290
+ /**
291
+ * The settings of the schedule.
292
+ */
293
+ settings?: ScheduleRetrieveResponse.Settings;
294
+ }
295
+
296
+ export namespace ScheduleRetrieveResponse {
297
+ /**
298
+ * The settings of the schedule.
299
+ */
300
+ export interface Settings {
301
+ /**
302
+ * The IANA timezone identifier for the schedule (e.g., 'America/New_York').
303
+ * Accepted values are defined by the tz database, listed here:
304
+ * https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
305
+ */
306
+ timezone?: string;
307
+ }
308
+ }
309
+
310
+ export interface ScheduleUpdateResponse {
311
+ /**
312
+ * Identifier field
313
+ */
314
+ id: string;
315
+
316
+ /**
317
+ * Record creation date
318
+ */
319
+ created_at: string;
320
+
321
+ /**
322
+ * Record update date
323
+ */
324
+ updated_at: string;
325
+
326
+ /**
327
+ * Whether the requesting role can edit the schedule.
328
+ */
329
+ can_edit?: boolean;
330
+
331
+ /**
332
+ * The managers of the schedule.
333
+ *
334
+ * Expandable field
335
+ */
336
+ managers?: Array<WorkersAPI.Worker>;
337
+
338
+ /**
339
+ * The IDs of the managers of the schedule.
340
+ */
341
+ managers_id?: Array<string>;
342
+
343
+ /**
344
+ * The members of the schedule.
345
+ *
346
+ * Expandable field
347
+ */
348
+ members?: Array<WorkersAPI.Worker>;
349
+
350
+ /**
351
+ * The IDs of the members of the schedule.
352
+ */
353
+ members_id?: Array<string>;
354
+
355
+ /**
356
+ * The name of the schedule.
357
+ */
358
+ name?: string;
359
+
360
+ /**
361
+ * The observers of the schedule.
362
+ *
363
+ * Expandable field
364
+ */
365
+ observers?: Array<WorkersAPI.Worker>;
366
+
367
+ /**
368
+ * The IDs of the observers of the schedule.
369
+ */
370
+ observers_id?: Array<string>;
371
+
372
+ /**
373
+ * The settings of the schedule.
374
+ */
375
+ settings?: ScheduleUpdateResponse.Settings;
376
+ }
377
+
378
+ export namespace ScheduleUpdateResponse {
379
+ /**
380
+ * The settings of the schedule.
381
+ */
382
+ export interface Settings {
383
+ /**
384
+ * The IANA timezone identifier for the schedule (e.g., 'America/New_York').
385
+ * Accepted values are defined by the tz database, listed here:
386
+ * https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
387
+ */
388
+ timezone?: string;
389
+ }
167
390
  }
168
391
 
169
392
  export interface ScheduleListParams {
393
+ cursor?: string;
394
+
170
395
  expand?: string;
171
396
 
172
397
  order_by?: string;
173
398
  }
174
399
 
400
+ export interface ScheduleCreateParams {
401
+ /**
402
+ * The IDs of the managers of the schedule.
403
+ */
404
+ managers_id?: Array<string>;
405
+
406
+ /**
407
+ * The IDs of the members of the schedule.
408
+ */
409
+ members_id?: Array<string>;
410
+
411
+ /**
412
+ * The name of the schedule.
413
+ */
414
+ name?: string;
415
+
416
+ /**
417
+ * The IDs of the observers of the schedule.
418
+ */
419
+ observers_id?: Array<string>;
420
+
421
+ /**
422
+ * The settings of the schedule.
423
+ */
424
+ settings?: ScheduleCreateParams.Settings;
425
+ }
426
+
427
+ export namespace ScheduleCreateParams {
428
+ /**
429
+ * The settings of the schedule.
430
+ */
431
+ export interface Settings {
432
+ /**
433
+ * The IANA timezone identifier for the schedule (e.g., 'America/New_York').
434
+ * Accepted values are defined by the tz database, listed here:
435
+ * https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
436
+ */
437
+ timezone?: string;
438
+ }
439
+ }
440
+
175
441
  export interface ScheduleRetrieveParams {
176
442
  expand?: string;
177
443
  }
178
444
 
445
+ export interface ScheduleUpdateParams {
446
+ /**
447
+ * The IDs of the managers of the schedule.
448
+ */
449
+ managers_id?: Array<string>;
450
+
451
+ /**
452
+ * The IDs of the members of the schedule.
453
+ */
454
+ members_id?: Array<string>;
455
+
456
+ /**
457
+ * The name of the schedule.
458
+ */
459
+ name?: string;
460
+
461
+ /**
462
+ * The IDs of the observers of the schedule.
463
+ */
464
+ observers_id?: Array<string>;
465
+
466
+ /**
467
+ * The settings of the schedule.
468
+ */
469
+ settings?: ScheduleUpdateParams.Settings;
470
+ }
471
+
472
+ export namespace ScheduleUpdateParams {
473
+ /**
474
+ * The settings of the schedule.
475
+ */
476
+ export interface Settings {
477
+ /**
478
+ * The IANA timezone identifier for the schedule (e.g., 'America/New_York').
479
+ * Accepted values are defined by the tz database, listed here:
480
+ * https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
481
+ */
482
+ timezone?: string;
483
+ }
484
+ }
485
+
179
486
  export declare namespace Schedules {
180
487
  export {
181
488
  type ScheduleListResponse as ScheduleListResponse,
489
+ type ScheduleCreateResponse as ScheduleCreateResponse,
182
490
  type ScheduleRetrieveResponse as ScheduleRetrieveResponse,
491
+ type ScheduleUpdateResponse as ScheduleUpdateResponse,
183
492
  type ScheduleListResponsesPageCursorURL as ScheduleListResponsesPageCursorURL,
184
493
  type ScheduleListParams as ScheduleListParams,
494
+ type ScheduleCreateParams as ScheduleCreateParams,
185
495
  type ScheduleRetrieveParams as ScheduleRetrieveParams,
496
+ type ScheduleUpdateParams as ScheduleUpdateParams,
186
497
  };
187
498
  }
@@ -317,6 +317,8 @@ export interface ShiftInputUpdateResponse {
317
317
  }
318
318
 
319
319
  export interface ShiftInputListParams {
320
+ cursor?: string;
321
+
320
322
  expand?: string;
321
323
 
322
324
  filter?: string;