@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.
Files changed (229) 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 +7 -0
  11. package/functions.d.mts.map +1 -1
  12. package/functions.d.ts +7 -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 +68 -10
  126. package/resources/shiftassignments.d.mts.map +1 -1
  127. package/resources/shiftassignments.d.ts +68 -10
  128. package/resources/shiftassignments.d.ts.map +1 -1
  129. package/resources/supergroups/exclusion-members.d.mts +5 -3
  130. package/resources/supergroups/exclusion-members.d.mts.map +1 -1
  131. package/resources/supergroups/exclusion-members.d.ts +5 -3
  132. package/resources/supergroups/exclusion-members.d.ts.map +1 -1
  133. package/resources/supergroups/exclusion-members.js +1 -0
  134. package/resources/supergroups/exclusion-members.js.map +1 -1
  135. package/resources/supergroups/exclusion-members.mjs +1 -0
  136. package/resources/supergroups/exclusion-members.mjs.map +1 -1
  137. package/resources/supergroups/inclusion-members.d.mts +5 -3
  138. package/resources/supergroups/inclusion-members.d.mts.map +1 -1
  139. package/resources/supergroups/inclusion-members.d.ts +5 -3
  140. package/resources/supergroups/inclusion-members.d.ts.map +1 -1
  141. package/resources/supergroups/inclusion-members.js +1 -0
  142. package/resources/supergroups/inclusion-members.js.map +1 -1
  143. package/resources/supergroups/inclusion-members.mjs +1 -0
  144. package/resources/supergroups/inclusion-members.mjs.map +1 -1
  145. package/resources/supergroups/index.d.mts +1 -1
  146. package/resources/supergroups/index.d.mts.map +1 -1
  147. package/resources/supergroups/index.d.ts +1 -1
  148. package/resources/supergroups/index.d.ts.map +1 -1
  149. package/resources/supergroups/index.js.map +1 -1
  150. package/resources/supergroups/index.mjs.map +1 -1
  151. package/resources/supergroups/members.d.mts +8 -26
  152. package/resources/supergroups/members.d.mts.map +1 -1
  153. package/resources/supergroups/members.d.ts +8 -26
  154. package/resources/supergroups/members.d.ts.map +1 -1
  155. package/resources/supergroups/members.js +1 -0
  156. package/resources/supergroups/members.js.map +1 -1
  157. package/resources/supergroups/members.mjs +1 -0
  158. package/resources/supergroups/members.mjs.map +1 -1
  159. package/resources/supergroups/supergroups.d.mts +2 -2
  160. package/resources/supergroups/supergroups.d.mts.map +1 -1
  161. package/resources/supergroups/supergroups.d.ts +2 -2
  162. package/resources/supergroups/supergroups.d.ts.map +1 -1
  163. package/resources/supergroups/supergroups.js.map +1 -1
  164. package/resources/supergroups/supergroups.mjs.map +1 -1
  165. package/resources/titles.d.mts +126 -0
  166. package/resources/titles.d.mts.map +1 -0
  167. package/resources/titles.d.ts +126 -0
  168. package/resources/titles.d.ts.map +1 -0
  169. package/resources/titles.js +48 -0
  170. package/resources/titles.js.map +1 -0
  171. package/resources/titles.mjs +44 -0
  172. package/resources/titles.mjs.map +1 -0
  173. package/resources/unassigned-shifts.d.mts +334 -0
  174. package/resources/unassigned-shifts.d.mts.map +1 -0
  175. package/resources/unassigned-shifts.d.ts +334 -0
  176. package/resources/unassigned-shifts.d.ts.map +1 -0
  177. package/resources/unassigned-shifts.js +42 -0
  178. package/resources/unassigned-shifts.js.map +1 -0
  179. package/resources/unassigned-shifts.mjs +38 -0
  180. package/resources/unassigned-shifts.mjs.map +1 -0
  181. package/resources/unassignedshifts.d.mts +744 -32
  182. package/resources/unassignedshifts.d.mts.map +1 -1
  183. package/resources/unassignedshifts.d.ts +744 -32
  184. package/resources/unassignedshifts.d.ts.map +1 -1
  185. package/resources/unassignedshifts.js +12 -0
  186. package/resources/unassignedshifts.js.map +1 -1
  187. package/resources/unassignedshifts.mjs +12 -0
  188. package/resources/unassignedshifts.mjs.map +1 -1
  189. package/resources/work-locations.d.mts +95 -1
  190. package/resources/work-locations.d.mts.map +1 -1
  191. package/resources/work-locations.d.ts +95 -1
  192. package/resources/work-locations.d.ts.map +1 -1
  193. package/resources/work-locations.js +12 -0
  194. package/resources/work-locations.js.map +1 -1
  195. package/resources/work-locations.mjs +12 -0
  196. package/resources/work-locations.mjs.map +1 -1
  197. package/src/client.ts +157 -3
  198. package/src/functions.ts +20 -0
  199. package/src/resources/compensation-bands-details.ts +140 -0
  200. package/src/resources/custom-settings.ts +371 -0
  201. package/src/resources/departments.ts +50 -0
  202. package/src/resources/draft-hires.ts +32 -0
  203. package/src/resources/functions/executions.ts +8 -104
  204. package/src/resources/functions/functions.ts +4 -8
  205. package/src/resources/functions/index.ts +2 -4
  206. package/src/resources/index.ts +68 -2
  207. package/src/resources/job-assignments.ts +95 -6
  208. package/src/resources/job-codes.ts +56 -1
  209. package/src/resources/job-dimensions.ts +24 -0
  210. package/src/resources/job-requisitions-write.ts +327 -0
  211. package/src/resources/leave-accruals.ts +229 -12
  212. package/src/resources/report-runs.ts +186 -0
  213. package/src/resources/shared.ts +44 -0
  214. package/src/resources/shift-assignments.ts +362 -0
  215. package/src/resources/shiftassignments.ts +82 -11
  216. package/src/resources/supergroups/exclusion-members.ts +7 -4
  217. package/src/resources/supergroups/inclusion-members.ts +7 -4
  218. package/src/resources/supergroups/index.ts +1 -1
  219. package/src/resources/supergroups/members.ts +10 -36
  220. package/src/resources/supergroups/supergroups.ts +2 -7
  221. package/src/resources/titles.ts +181 -0
  222. package/src/resources/unassigned-shifts.ts +415 -0
  223. package/src/resources/unassignedshifts.ts +905 -35
  224. package/src/resources/work-locations.ts +118 -0
  225. package/src/version.ts +1 -1
  226. package/version.d.mts +1 -1
  227. package/version.d.ts +1 -1
  228. package/version.js +1 -1
  229. package/version.mjs +1 -1
@@ -28,6 +28,16 @@ export class Unassignedshifts extends APIResource {
28
28
  });
29
29
  }
30
30
 
31
+ /**
32
+ * Create a new unassigned shift
33
+ */
34
+ create(
35
+ body: UnassignedshiftCreateParams,
36
+ options?: RequestOptions,
37
+ ): APIPromise<UnassignedshiftCreateResponse> {
38
+ return this._client.post('/unassignedshifts', { body, ...options });
39
+ }
40
+
31
41
  /**
32
42
  * Retrieve a specific unassigned shift
33
43
  */
@@ -38,6 +48,17 @@ export class Unassignedshifts extends APIResource {
38
48
  ): APIPromise<UnassignedshiftRetrieveResponse> {
39
49
  return this._client.get(path`/unassignedshifts/${id}`, { query, ...options });
40
50
  }
51
+
52
+ /**
53
+ * Updated a specific unassigned shift
54
+ */
55
+ update(
56
+ id: string,
57
+ body: UnassignedshiftUpdateParams,
58
+ options?: RequestOptions,
59
+ ): APIPromise<UnassignedshiftUpdateResponse> {
60
+ return this._client.patch(path`/unassignedshifts/${id}`, { body, ...options });
61
+ }
41
62
  }
42
63
 
43
64
  export type UnassignedshiftListResponsesPageCursorURL = PageCursorURL<UnassignedshiftListResponse>;
@@ -48,21 +69,11 @@ export interface UnassignedshiftListResponse {
48
69
  */
49
70
  id: string;
50
71
 
51
- /**
52
- * The number of assigned shifts
53
- */
54
- assigned_count: number;
55
-
56
72
  /**
57
73
  * Record creation date
58
74
  */
59
75
  created_at: string;
60
76
 
61
- /**
62
- * Whether the shift is open or empty
63
- */
64
- is_open: boolean;
65
-
66
77
  /**
67
78
  * Whether the shift is published
68
79
  */
@@ -88,11 +99,27 @@ export interface UnassignedshiftListResponse {
88
99
  */
89
100
  updated_at: string;
90
101
 
102
+ /**
103
+ * The number of assigned shifts
104
+ */
105
+ assigned_count?: number;
106
+
91
107
  /**
92
108
  * The IDs of the assigned shifts that are part of this unassigned shift
93
109
  */
94
110
  assigned_shift_ids?: Array<string>;
95
111
 
112
+ /**
113
+ * Custom fields for the unassigned shift
114
+ */
115
+ custom_fields?: Array<unknown>;
116
+
117
+ /**
118
+ * Configuration for an open shift. If present, this is an open shift (workers can
119
+ * sign up). If absent/None, this is an empty shift (placeholder).
120
+ */
121
+ open_shift_config?: unknown;
122
+
96
123
  /**
97
124
  * The published version of the shift
98
125
  */
@@ -121,6 +148,11 @@ export namespace UnassignedshiftListResponse {
121
148
  */
122
149
  start_time: string;
123
150
 
151
+ /**
152
+ * Notes for the shift, max length 256 characters
153
+ */
154
+ notes?: string;
155
+
124
156
  /**
125
157
  * The breaks of the shift
126
158
  */
@@ -193,6 +225,11 @@ export namespace UnassignedshiftListResponse {
193
225
  */
194
226
  start_time: string;
195
227
 
228
+ /**
229
+ * Notes for the shift, max length 256 characters
230
+ */
231
+ notes?: string;
232
+
196
233
  /**
197
234
  * The breaks of the shift
198
235
  */
@@ -339,30 +376,17 @@ export namespace UnassignedshiftListResponse {
339
376
  }
340
377
  }
341
378
 
342
- /**
343
- * Meta information for the response.
344
- */
345
- export interface UnassignedshiftRetrieveResponse extends BusinessPartnersAPI.Meta {
379
+ export interface UnassignedshiftCreateResponse {
346
380
  /**
347
381
  * Identifier field
348
382
  */
349
383
  id: string;
350
384
 
351
- /**
352
- * The number of assigned shifts
353
- */
354
- assigned_count: number;
355
-
356
385
  /**
357
386
  * Record creation date
358
387
  */
359
388
  created_at: string;
360
389
 
361
- /**
362
- * Whether the shift is open or empty
363
- */
364
- is_open: boolean;
365
-
366
390
  /**
367
391
  * Whether the shift is published
368
392
  */
@@ -376,7 +400,7 @@ export interface UnassignedshiftRetrieveResponse extends BusinessPartnersAPI.Met
376
400
  /**
377
401
  * The data of the shift
378
402
  */
379
- shift_data: UnassignedshiftRetrieveResponse.ShiftData;
403
+ shift_data: UnassignedshiftCreateResponse.ShiftData;
380
404
 
381
405
  /**
382
406
  * The target count of the shift
@@ -388,25 +412,41 @@ export interface UnassignedshiftRetrieveResponse extends BusinessPartnersAPI.Met
388
412
  */
389
413
  updated_at: string;
390
414
 
415
+ /**
416
+ * The number of assigned shifts
417
+ */
418
+ assigned_count?: number;
419
+
391
420
  /**
392
421
  * The IDs of the assigned shifts that are part of this unassigned shift
393
422
  */
394
423
  assigned_shift_ids?: Array<string>;
395
424
 
425
+ /**
426
+ * Custom fields for the unassigned shift
427
+ */
428
+ custom_fields?: Array<unknown>;
429
+
430
+ /**
431
+ * Configuration for an open shift. If present, this is an open shift (workers can
432
+ * sign up). If absent/None, this is an empty shift (placeholder).
433
+ */
434
+ open_shift_config?: unknown;
435
+
396
436
  /**
397
437
  * The published version of the shift
398
438
  */
399
- published_version?: UnassignedshiftRetrieveResponse.PublishedVersion;
439
+ published_version?: UnassignedshiftCreateResponse.PublishedVersion;
400
440
 
401
441
  /**
402
442
  * The schedule
403
443
  *
404
444
  * Expandable field
405
445
  */
406
- schedule?: UnassignedshiftRetrieveResponse.Schedule;
446
+ schedule?: UnassignedshiftCreateResponse.Schedule;
407
447
  }
408
448
 
409
- export namespace UnassignedshiftRetrieveResponse {
449
+ export namespace UnassignedshiftCreateResponse {
410
450
  /**
411
451
  * The data of the shift
412
452
  */
@@ -421,6 +461,11 @@ export namespace UnassignedshiftRetrieveResponse {
421
461
  */
422
462
  start_time: string;
423
463
 
464
+ /**
465
+ * Notes for the shift, max length 256 characters
466
+ */
467
+ notes?: string;
468
+
424
469
  /**
425
470
  * The breaks of the shift
426
471
  */
@@ -493,6 +538,11 @@ export namespace UnassignedshiftRetrieveResponse {
493
538
  */
494
539
  start_time: string;
495
540
 
541
+ /**
542
+ * Notes for the shift, max length 256 characters
543
+ */
544
+ notes?: string;
545
+
496
546
  /**
497
547
  * The breaks of the shift
498
548
  */
@@ -639,26 +689,846 @@ export namespace UnassignedshiftRetrieveResponse {
639
689
  }
640
690
  }
641
691
 
642
- export interface UnassignedshiftListParams {
643
- cursor?: string;
692
+ /**
693
+ * Meta information for the response.
694
+ */
695
+ export interface UnassignedshiftRetrieveResponse extends BusinessPartnersAPI.Meta {
696
+ /**
697
+ * Identifier field
698
+ */
699
+ id: string;
644
700
 
645
- expand?: string;
701
+ /**
702
+ * Record creation date
703
+ */
704
+ created_at: string;
646
705
 
647
- filter?: string;
706
+ /**
707
+ * Whether the shift is published
708
+ */
709
+ is_published: boolean;
648
710
 
649
- order_by?: string;
711
+ /**
712
+ * The ID of the schedule
713
+ */
714
+ schedule_id: string;
715
+
716
+ /**
717
+ * The data of the shift
718
+ */
719
+ shift_data: UnassignedshiftRetrieveResponse.ShiftData;
720
+
721
+ /**
722
+ * The target count of the shift
723
+ */
724
+ target_count: number;
725
+
726
+ /**
727
+ * Record update date
728
+ */
729
+ updated_at: string;
730
+
731
+ /**
732
+ * The number of assigned shifts
733
+ */
734
+ assigned_count?: number;
735
+
736
+ /**
737
+ * The IDs of the assigned shifts that are part of this unassigned shift
738
+ */
739
+ assigned_shift_ids?: Array<string>;
740
+
741
+ /**
742
+ * Custom fields for the unassigned shift
743
+ */
744
+ custom_fields?: Array<unknown>;
745
+
746
+ /**
747
+ * Configuration for an open shift. If present, this is an open shift (workers can
748
+ * sign up). If absent/None, this is an empty shift (placeholder).
749
+ */
750
+ open_shift_config?: unknown;
751
+
752
+ /**
753
+ * The published version of the shift
754
+ */
755
+ published_version?: UnassignedshiftRetrieveResponse.PublishedVersion;
756
+
757
+ /**
758
+ * The schedule
759
+ *
760
+ * Expandable field
761
+ */
762
+ schedule?: UnassignedshiftRetrieveResponse.Schedule;
650
763
  }
651
764
 
652
- export interface UnassignedshiftRetrieveParams {
653
- expand?: string;
765
+ export namespace UnassignedshiftRetrieveResponse {
766
+ /**
767
+ * The data of the shift
768
+ */
769
+ export interface ShiftData {
770
+ /**
771
+ * The end time of the shift
772
+ */
773
+ end_time: string;
774
+
775
+ /**
776
+ * The start time of the shift
777
+ */
778
+ start_time: string;
779
+
780
+ /**
781
+ * Notes for the shift, max length 256 characters
782
+ */
783
+ notes?: string;
784
+
785
+ /**
786
+ * The breaks of the shift
787
+ */
788
+ shift_breaks?: Array<ShiftData.ShiftBreak>;
789
+
790
+ /**
791
+ * The segments of the shift
792
+ */
793
+ shift_segments?: Array<ShiftData.ShiftSegment>;
794
+ }
795
+
796
+ export namespace ShiftData {
797
+ export interface ShiftBreak {
798
+ /**
799
+ * The duration of the shift break in minutes (input only for creation)
800
+ */
801
+ duration_minutes: number;
802
+
803
+ /**
804
+ * The start time of the shift break
805
+ */
806
+ start_time: string;
807
+
808
+ /**
809
+ * The type of the shift break
810
+ */
811
+ type: 'MEAL' | 'REST';
812
+
813
+ /**
814
+ * The end time of the shift break (calculated from start_time + duration_minutes)
815
+ */
816
+ end_time?: string;
817
+ }
818
+
819
+ export interface ShiftSegment {
820
+ /**
821
+ * The duration of the shift segment in minutes (input only for creation)
822
+ */
823
+ duration_minutes: number;
824
+
825
+ /**
826
+ * The start time of the shift segment
827
+ */
828
+ start_time: string;
829
+
830
+ /**
831
+ * The end time of the shift segment (calculated from start_time +
832
+ * duration_minutes)
833
+ */
834
+ end_time?: string;
835
+
836
+ /**
837
+ * The IDs of the job codes associated with the shift segment
838
+ */
839
+ job_codes_id?: Array<string>;
840
+ }
841
+ }
842
+
843
+ /**
844
+ * The published version of the shift
845
+ */
846
+ export interface PublishedVersion {
847
+ /**
848
+ * The end time of the shift
849
+ */
850
+ end_time: string;
851
+
852
+ /**
853
+ * The start time of the shift
854
+ */
855
+ start_time: string;
856
+
857
+ /**
858
+ * Notes for the shift, max length 256 characters
859
+ */
860
+ notes?: string;
861
+
862
+ /**
863
+ * The breaks of the shift
864
+ */
865
+ shift_breaks?: Array<PublishedVersion.ShiftBreak>;
866
+
867
+ /**
868
+ * The segments of the shift
869
+ */
870
+ shift_segments?: Array<PublishedVersion.ShiftSegment>;
871
+ }
872
+
873
+ export namespace PublishedVersion {
874
+ export interface ShiftBreak {
875
+ /**
876
+ * The duration of the shift break in minutes (input only for creation)
877
+ */
878
+ duration_minutes: number;
879
+
880
+ /**
881
+ * The start time of the shift break
882
+ */
883
+ start_time: string;
884
+
885
+ /**
886
+ * The type of the shift break
887
+ */
888
+ type: 'MEAL' | 'REST';
889
+
890
+ /**
891
+ * The end time of the shift break (calculated from start_time + duration_minutes)
892
+ */
893
+ end_time?: string;
894
+ }
895
+
896
+ export interface ShiftSegment {
897
+ /**
898
+ * The duration of the shift segment in minutes (input only for creation)
899
+ */
900
+ duration_minutes: number;
901
+
902
+ /**
903
+ * The start time of the shift segment
904
+ */
905
+ start_time: string;
906
+
907
+ /**
908
+ * The end time of the shift segment (calculated from start_time +
909
+ * duration_minutes)
910
+ */
911
+ end_time?: string;
912
+
913
+ /**
914
+ * The IDs of the job codes associated with the shift segment
915
+ */
916
+ job_codes_id?: Array<string>;
917
+ }
918
+ }
919
+
920
+ /**
921
+ * The schedule
922
+ *
923
+ * Expandable field
924
+ */
925
+ export interface Schedule {
926
+ /**
927
+ * Identifier field
928
+ */
929
+ id: string;
930
+
931
+ /**
932
+ * Record creation date
933
+ */
934
+ created_at: string;
935
+
936
+ /**
937
+ * Record update date
938
+ */
939
+ updated_at: string;
940
+
941
+ /**
942
+ * Whether the requesting role can edit the schedule.
943
+ */
944
+ can_edit?: boolean;
945
+
946
+ /**
947
+ * The managers of the schedule.
948
+ *
949
+ * Expandable field
950
+ */
951
+ managers?: Array<WorkersAPI.Worker>;
952
+
953
+ /**
954
+ * The IDs of the managers of the schedule.
955
+ */
956
+ managers_id?: Array<string>;
957
+
958
+ /**
959
+ * The members of the schedule.
960
+ *
961
+ * Expandable field
962
+ */
963
+ members?: Array<WorkersAPI.Worker>;
964
+
965
+ /**
966
+ * The IDs of the members of the schedule.
967
+ */
968
+ members_id?: Array<string>;
969
+
970
+ /**
971
+ * The name of the schedule.
972
+ */
973
+ name?: string;
974
+
975
+ /**
976
+ * The observers of the schedule.
977
+ *
978
+ * Expandable field
979
+ */
980
+ observers?: Array<WorkersAPI.Worker>;
981
+
982
+ /**
983
+ * The IDs of the observers of the schedule.
984
+ */
985
+ observers_id?: Array<string>;
986
+
987
+ /**
988
+ * The settings of the schedule.
989
+ */
990
+ settings?: Schedule.Settings;
991
+ }
992
+
993
+ export namespace Schedule {
994
+ /**
995
+ * The settings of the schedule.
996
+ */
997
+ export interface Settings {
998
+ /**
999
+ * The IANA timezone identifier for the schedule (e.g., 'America/New_York').
1000
+ * Accepted values are defined by the tz database, listed here:
1001
+ * https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
1002
+ */
1003
+ timezone?: string;
1004
+ }
1005
+ }
1006
+ }
1007
+
1008
+ export interface UnassignedshiftUpdateResponse {
1009
+ /**
1010
+ * Identifier field
1011
+ */
1012
+ id: string;
1013
+
1014
+ /**
1015
+ * Record creation date
1016
+ */
1017
+ created_at: string;
1018
+
1019
+ /**
1020
+ * Whether the shift is published
1021
+ */
1022
+ is_published: boolean;
1023
+
1024
+ /**
1025
+ * The ID of the schedule
1026
+ */
1027
+ schedule_id: string;
1028
+
1029
+ /**
1030
+ * The data of the shift
1031
+ */
1032
+ shift_data: UnassignedshiftUpdateResponse.ShiftData;
1033
+
1034
+ /**
1035
+ * The target count of the shift
1036
+ */
1037
+ target_count: number;
1038
+
1039
+ /**
1040
+ * Record update date
1041
+ */
1042
+ updated_at: string;
1043
+
1044
+ /**
1045
+ * The number of assigned shifts
1046
+ */
1047
+ assigned_count?: number;
1048
+
1049
+ /**
1050
+ * The IDs of the assigned shifts that are part of this unassigned shift
1051
+ */
1052
+ assigned_shift_ids?: Array<string>;
1053
+
1054
+ /**
1055
+ * Custom fields for the unassigned shift
1056
+ */
1057
+ custom_fields?: Array<unknown>;
1058
+
1059
+ /**
1060
+ * Configuration for an open shift. If present, this is an open shift (workers can
1061
+ * sign up). If absent/None, this is an empty shift (placeholder).
1062
+ */
1063
+ open_shift_config?: unknown;
1064
+
1065
+ /**
1066
+ * The published version of the shift
1067
+ */
1068
+ published_version?: UnassignedshiftUpdateResponse.PublishedVersion;
1069
+
1070
+ /**
1071
+ * The schedule
1072
+ *
1073
+ * Expandable field
1074
+ */
1075
+ schedule?: UnassignedshiftUpdateResponse.Schedule;
1076
+ }
1077
+
1078
+ export namespace UnassignedshiftUpdateResponse {
1079
+ /**
1080
+ * The data of the shift
1081
+ */
1082
+ export interface ShiftData {
1083
+ /**
1084
+ * The end time of the shift
1085
+ */
1086
+ end_time: string;
1087
+
1088
+ /**
1089
+ * The start time of the shift
1090
+ */
1091
+ start_time: string;
1092
+
1093
+ /**
1094
+ * Notes for the shift, max length 256 characters
1095
+ */
1096
+ notes?: string;
1097
+
1098
+ /**
1099
+ * The breaks of the shift
1100
+ */
1101
+ shift_breaks?: Array<ShiftData.ShiftBreak>;
1102
+
1103
+ /**
1104
+ * The segments of the shift
1105
+ */
1106
+ shift_segments?: Array<ShiftData.ShiftSegment>;
1107
+ }
1108
+
1109
+ export namespace ShiftData {
1110
+ export interface ShiftBreak {
1111
+ /**
1112
+ * The duration of the shift break in minutes (input only for creation)
1113
+ */
1114
+ duration_minutes: number;
1115
+
1116
+ /**
1117
+ * The start time of the shift break
1118
+ */
1119
+ start_time: string;
1120
+
1121
+ /**
1122
+ * The type of the shift break
1123
+ */
1124
+ type: 'MEAL' | 'REST';
1125
+
1126
+ /**
1127
+ * The end time of the shift break (calculated from start_time + duration_minutes)
1128
+ */
1129
+ end_time?: string;
1130
+ }
1131
+
1132
+ export interface ShiftSegment {
1133
+ /**
1134
+ * The duration of the shift segment in minutes (input only for creation)
1135
+ */
1136
+ duration_minutes: number;
1137
+
1138
+ /**
1139
+ * The start time of the shift segment
1140
+ */
1141
+ start_time: string;
1142
+
1143
+ /**
1144
+ * The end time of the shift segment (calculated from start_time +
1145
+ * duration_minutes)
1146
+ */
1147
+ end_time?: string;
1148
+
1149
+ /**
1150
+ * The IDs of the job codes associated with the shift segment
1151
+ */
1152
+ job_codes_id?: Array<string>;
1153
+ }
1154
+ }
1155
+
1156
+ /**
1157
+ * The published version of the shift
1158
+ */
1159
+ export interface PublishedVersion {
1160
+ /**
1161
+ * The end time of the shift
1162
+ */
1163
+ end_time: string;
1164
+
1165
+ /**
1166
+ * The start time of the shift
1167
+ */
1168
+ start_time: string;
1169
+
1170
+ /**
1171
+ * Notes for the shift, max length 256 characters
1172
+ */
1173
+ notes?: string;
1174
+
1175
+ /**
1176
+ * The breaks of the shift
1177
+ */
1178
+ shift_breaks?: Array<PublishedVersion.ShiftBreak>;
1179
+
1180
+ /**
1181
+ * The segments of the shift
1182
+ */
1183
+ shift_segments?: Array<PublishedVersion.ShiftSegment>;
1184
+ }
1185
+
1186
+ export namespace PublishedVersion {
1187
+ export interface ShiftBreak {
1188
+ /**
1189
+ * The duration of the shift break in minutes (input only for creation)
1190
+ */
1191
+ duration_minutes: number;
1192
+
1193
+ /**
1194
+ * The start time of the shift break
1195
+ */
1196
+ start_time: string;
1197
+
1198
+ /**
1199
+ * The type of the shift break
1200
+ */
1201
+ type: 'MEAL' | 'REST';
1202
+
1203
+ /**
1204
+ * The end time of the shift break (calculated from start_time + duration_minutes)
1205
+ */
1206
+ end_time?: string;
1207
+ }
1208
+
1209
+ export interface ShiftSegment {
1210
+ /**
1211
+ * The duration of the shift segment in minutes (input only for creation)
1212
+ */
1213
+ duration_minutes: number;
1214
+
1215
+ /**
1216
+ * The start time of the shift segment
1217
+ */
1218
+ start_time: string;
1219
+
1220
+ /**
1221
+ * The end time of the shift segment (calculated from start_time +
1222
+ * duration_minutes)
1223
+ */
1224
+ end_time?: string;
1225
+
1226
+ /**
1227
+ * The IDs of the job codes associated with the shift segment
1228
+ */
1229
+ job_codes_id?: Array<string>;
1230
+ }
1231
+ }
1232
+
1233
+ /**
1234
+ * The schedule
1235
+ *
1236
+ * Expandable field
1237
+ */
1238
+ export interface Schedule {
1239
+ /**
1240
+ * Identifier field
1241
+ */
1242
+ id: string;
1243
+
1244
+ /**
1245
+ * Record creation date
1246
+ */
1247
+ created_at: string;
1248
+
1249
+ /**
1250
+ * Record update date
1251
+ */
1252
+ updated_at: string;
1253
+
1254
+ /**
1255
+ * Whether the requesting role can edit the schedule.
1256
+ */
1257
+ can_edit?: boolean;
1258
+
1259
+ /**
1260
+ * The managers of the schedule.
1261
+ *
1262
+ * Expandable field
1263
+ */
1264
+ managers?: Array<WorkersAPI.Worker>;
1265
+
1266
+ /**
1267
+ * The IDs of the managers of the schedule.
1268
+ */
1269
+ managers_id?: Array<string>;
1270
+
1271
+ /**
1272
+ * The members of the schedule.
1273
+ *
1274
+ * Expandable field
1275
+ */
1276
+ members?: Array<WorkersAPI.Worker>;
1277
+
1278
+ /**
1279
+ * The IDs of the members of the schedule.
1280
+ */
1281
+ members_id?: Array<string>;
1282
+
1283
+ /**
1284
+ * The name of the schedule.
1285
+ */
1286
+ name?: string;
1287
+
1288
+ /**
1289
+ * The observers of the schedule.
1290
+ *
1291
+ * Expandable field
1292
+ */
1293
+ observers?: Array<WorkersAPI.Worker>;
1294
+
1295
+ /**
1296
+ * The IDs of the observers of the schedule.
1297
+ */
1298
+ observers_id?: Array<string>;
1299
+
1300
+ /**
1301
+ * The settings of the schedule.
1302
+ */
1303
+ settings?: Schedule.Settings;
1304
+ }
1305
+
1306
+ export namespace Schedule {
1307
+ /**
1308
+ * The settings of the schedule.
1309
+ */
1310
+ export interface Settings {
1311
+ /**
1312
+ * The IANA timezone identifier for the schedule (e.g., 'America/New_York').
1313
+ * Accepted values are defined by the tz database, listed here:
1314
+ * https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
1315
+ */
1316
+ timezone?: string;
1317
+ }
1318
+ }
1319
+ }
1320
+
1321
+ export interface UnassignedshiftListParams {
1322
+ cursor?: string;
1323
+
1324
+ expand?: string;
1325
+
1326
+ filter?: string;
1327
+
1328
+ order_by?: string;
1329
+ }
1330
+
1331
+ export interface UnassignedshiftCreateParams {
1332
+ /**
1333
+ * Whether the shift is published
1334
+ */
1335
+ is_published: boolean;
1336
+
1337
+ /**
1338
+ * The ID of the schedule
1339
+ */
1340
+ schedule_id: string;
1341
+
1342
+ /**
1343
+ * The data of the shift
1344
+ */
1345
+ shift_data: UnassignedshiftCreateParams.ShiftData;
1346
+
1347
+ /**
1348
+ * The target count of the shift
1349
+ */
1350
+ target_count: number;
1351
+
1352
+ /**
1353
+ * Configuration for an open shift. If present, this is an open shift (workers can
1354
+ * sign up). If absent/None, this is an empty shift (placeholder).
1355
+ */
1356
+ open_shift_config?: unknown;
1357
+ }
1358
+
1359
+ export namespace UnassignedshiftCreateParams {
1360
+ /**
1361
+ * The data of the shift
1362
+ */
1363
+ export interface ShiftData {
1364
+ /**
1365
+ * The end time of the shift
1366
+ */
1367
+ end_time: string;
1368
+
1369
+ /**
1370
+ * The start time of the shift
1371
+ */
1372
+ start_time: string;
1373
+
1374
+ /**
1375
+ * Notes for the shift, max length 256 characters
1376
+ */
1377
+ notes?: string;
1378
+
1379
+ /**
1380
+ * The breaks of the shift
1381
+ */
1382
+ shift_breaks?: Array<ShiftData.ShiftBreak>;
1383
+
1384
+ /**
1385
+ * The segments of the shift
1386
+ */
1387
+ shift_segments?: Array<ShiftData.ShiftSegment>;
1388
+ }
1389
+
1390
+ export namespace ShiftData {
1391
+ export interface ShiftBreak {
1392
+ /**
1393
+ * The duration of the shift break in minutes (input only for creation)
1394
+ */
1395
+ duration_minutes: number;
1396
+
1397
+ /**
1398
+ * The start time of the shift break
1399
+ */
1400
+ start_time: string;
1401
+
1402
+ /**
1403
+ * The type of the shift break
1404
+ */
1405
+ type: 'MEAL' | 'REST';
1406
+ }
1407
+
1408
+ export interface ShiftSegment {
1409
+ /**
1410
+ * The duration of the shift segment in minutes (input only for creation)
1411
+ */
1412
+ duration_minutes: number;
1413
+
1414
+ /**
1415
+ * The start time of the shift segment
1416
+ */
1417
+ start_time: string;
1418
+
1419
+ /**
1420
+ * The IDs of the job codes associated with the shift segment
1421
+ */
1422
+ job_codes_id?: Array<string>;
1423
+ }
1424
+ }
1425
+ }
1426
+
1427
+ export interface UnassignedshiftRetrieveParams {
1428
+ expand?: string;
1429
+ }
1430
+
1431
+ export interface UnassignedshiftUpdateParams {
1432
+ /**
1433
+ * Whether the shift is published
1434
+ */
1435
+ is_published: boolean;
1436
+
1437
+ /**
1438
+ * The data of the shift
1439
+ */
1440
+ shift_data: UnassignedshiftUpdateParams.ShiftData;
1441
+
1442
+ /**
1443
+ * The target count of the shift
1444
+ */
1445
+ target_count: number;
1446
+
1447
+ /**
1448
+ * Configuration for an open shift. If present, this is an open shift (workers can
1449
+ * sign up). If absent/None, this is an empty shift (placeholder).
1450
+ */
1451
+ open_shift_config?: unknown;
1452
+ }
1453
+
1454
+ export namespace UnassignedshiftUpdateParams {
1455
+ /**
1456
+ * The data of the shift
1457
+ */
1458
+ export interface ShiftData {
1459
+ /**
1460
+ * The end time of the shift
1461
+ */
1462
+ end_time: string;
1463
+
1464
+ /**
1465
+ * The start time of the shift
1466
+ */
1467
+ start_time: string;
1468
+
1469
+ /**
1470
+ * Notes for the shift, max length 256 characters
1471
+ */
1472
+ notes?: string;
1473
+
1474
+ /**
1475
+ * The breaks of the shift
1476
+ */
1477
+ shift_breaks?: Array<ShiftData.ShiftBreak>;
1478
+
1479
+ /**
1480
+ * The segments of the shift
1481
+ */
1482
+ shift_segments?: Array<ShiftData.ShiftSegment>;
1483
+ }
1484
+
1485
+ export namespace ShiftData {
1486
+ export interface ShiftBreak {
1487
+ /**
1488
+ * The duration of the shift break in minutes (input only for creation)
1489
+ */
1490
+ duration_minutes: number;
1491
+
1492
+ /**
1493
+ * The start time of the shift break
1494
+ */
1495
+ start_time: string;
1496
+
1497
+ /**
1498
+ * The type of the shift break
1499
+ */
1500
+ type: 'MEAL' | 'REST';
1501
+ }
1502
+
1503
+ export interface ShiftSegment {
1504
+ /**
1505
+ * The duration of the shift segment in minutes (input only for creation)
1506
+ */
1507
+ duration_minutes: number;
1508
+
1509
+ /**
1510
+ * The start time of the shift segment
1511
+ */
1512
+ start_time: string;
1513
+
1514
+ /**
1515
+ * The IDs of the job codes associated with the shift segment
1516
+ */
1517
+ job_codes_id?: Array<string>;
1518
+ }
1519
+ }
654
1520
  }
655
1521
 
656
1522
  export declare namespace Unassignedshifts {
657
1523
  export {
658
1524
  type UnassignedshiftListResponse as UnassignedshiftListResponse,
1525
+ type UnassignedshiftCreateResponse as UnassignedshiftCreateResponse,
659
1526
  type UnassignedshiftRetrieveResponse as UnassignedshiftRetrieveResponse,
1527
+ type UnassignedshiftUpdateResponse as UnassignedshiftUpdateResponse,
660
1528
  type UnassignedshiftListResponsesPageCursorURL as UnassignedshiftListResponsesPageCursorURL,
661
1529
  type UnassignedshiftListParams as UnassignedshiftListParams,
1530
+ type UnassignedshiftCreateParams as UnassignedshiftCreateParams,
662
1531
  type UnassignedshiftRetrieveParams as UnassignedshiftRetrieveParams,
1532
+ type UnassignedshiftUpdateParams as UnassignedshiftUpdateParams,
663
1533
  };
664
1534
  }