@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
@@ -15,10 +15,18 @@ export declare class Unassignedshifts extends APIResource {
15
15
  * - Sortable fields: `id`, `created_at`, `updated_at`
16
16
  */
17
17
  list(query?: UnassignedshiftListParams | null | undefined, options?: RequestOptions): PagePromise<UnassignedshiftListResponsesPageCursorURL, UnassignedshiftListResponse>;
18
+ /**
19
+ * Create a new unassigned shift
20
+ */
21
+ create(body: UnassignedshiftCreateParams, options?: RequestOptions): APIPromise<UnassignedshiftCreateResponse>;
18
22
  /**
19
23
  * Retrieve a specific unassigned shift
20
24
  */
21
25
  retrieve(id: string, query?: UnassignedshiftRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<UnassignedshiftRetrieveResponse>;
26
+ /**
27
+ * Updated a specific unassigned shift
28
+ */
29
+ update(id: string, body: UnassignedshiftUpdateParams, options?: RequestOptions): APIPromise<UnassignedshiftUpdateResponse>;
22
30
  }
23
31
  export type UnassignedshiftListResponsesPageCursorURL = PageCursorURL<UnassignedshiftListResponse>;
24
32
  export interface UnassignedshiftListResponse {
@@ -26,18 +34,10 @@ export interface UnassignedshiftListResponse {
26
34
  * Identifier field
27
35
  */
28
36
  id: string;
29
- /**
30
- * The number of assigned shifts
31
- */
32
- assigned_count: number;
33
37
  /**
34
38
  * Record creation date
35
39
  */
36
40
  created_at: string;
37
- /**
38
- * Whether the shift is open or empty
39
- */
40
- is_open: boolean;
41
41
  /**
42
42
  * Whether the shift is published
43
43
  */
@@ -58,10 +58,23 @@ export interface UnassignedshiftListResponse {
58
58
  * Record update date
59
59
  */
60
60
  updated_at: string;
61
+ /**
62
+ * The number of assigned shifts
63
+ */
64
+ assigned_count?: number;
61
65
  /**
62
66
  * The IDs of the assigned shifts that are part of this unassigned shift
63
67
  */
64
68
  assigned_shift_ids?: Array<string>;
69
+ /**
70
+ * Custom fields for the unassigned shift
71
+ */
72
+ custom_fields?: Array<unknown>;
73
+ /**
74
+ * Configuration for an open shift. If present, this is an open shift (workers can
75
+ * sign up). If absent/None, this is an empty shift (placeholder).
76
+ */
77
+ open_shift_config?: unknown;
65
78
  /**
66
79
  * The published version of the shift
67
80
  */
@@ -86,6 +99,10 @@ export declare namespace UnassignedshiftListResponse {
86
99
  * The start time of the shift
87
100
  */
88
101
  start_time: string;
102
+ /**
103
+ * Notes for the shift, max length 256 characters
104
+ */
105
+ notes?: string;
89
106
  /**
90
107
  * The breaks of the shift
91
108
  */
@@ -146,6 +163,10 @@ export declare namespace UnassignedshiftListResponse {
146
163
  * The start time of the shift
147
164
  */
148
165
  start_time: string;
166
+ /**
167
+ * Notes for the shift, max length 256 characters
168
+ */
169
+ notes?: string;
149
170
  /**
150
171
  * The breaks of the shift
151
172
  */
@@ -269,26 +290,15 @@ export declare namespace UnassignedshiftListResponse {
269
290
  }
270
291
  }
271
292
  }
272
- /**
273
- * Meta information for the response.
274
- */
275
- export interface UnassignedshiftRetrieveResponse extends BusinessPartnersAPI.Meta {
293
+ export interface UnassignedshiftCreateResponse {
276
294
  /**
277
295
  * Identifier field
278
296
  */
279
297
  id: string;
280
- /**
281
- * The number of assigned shifts
282
- */
283
- assigned_count: number;
284
298
  /**
285
299
  * Record creation date
286
300
  */
287
301
  created_at: string;
288
- /**
289
- * Whether the shift is open or empty
290
- */
291
- is_open: boolean;
292
302
  /**
293
303
  * Whether the shift is published
294
304
  */
@@ -300,7 +310,7 @@ export interface UnassignedshiftRetrieveResponse extends BusinessPartnersAPI.Met
300
310
  /**
301
311
  * The data of the shift
302
312
  */
303
- shift_data: UnassignedshiftRetrieveResponse.ShiftData;
313
+ shift_data: UnassignedshiftCreateResponse.ShiftData;
304
314
  /**
305
315
  * The target count of the shift
306
316
  */
@@ -309,22 +319,35 @@ export interface UnassignedshiftRetrieveResponse extends BusinessPartnersAPI.Met
309
319
  * Record update date
310
320
  */
311
321
  updated_at: string;
322
+ /**
323
+ * The number of assigned shifts
324
+ */
325
+ assigned_count?: number;
312
326
  /**
313
327
  * The IDs of the assigned shifts that are part of this unassigned shift
314
328
  */
315
329
  assigned_shift_ids?: Array<string>;
330
+ /**
331
+ * Custom fields for the unassigned shift
332
+ */
333
+ custom_fields?: Array<unknown>;
334
+ /**
335
+ * Configuration for an open shift. If present, this is an open shift (workers can
336
+ * sign up). If absent/None, this is an empty shift (placeholder).
337
+ */
338
+ open_shift_config?: unknown;
316
339
  /**
317
340
  * The published version of the shift
318
341
  */
319
- published_version?: UnassignedshiftRetrieveResponse.PublishedVersion;
342
+ published_version?: UnassignedshiftCreateResponse.PublishedVersion;
320
343
  /**
321
344
  * The schedule
322
345
  *
323
346
  * Expandable field
324
347
  */
325
- schedule?: UnassignedshiftRetrieveResponse.Schedule;
348
+ schedule?: UnassignedshiftCreateResponse.Schedule;
326
349
  }
327
- export declare namespace UnassignedshiftRetrieveResponse {
350
+ export declare namespace UnassignedshiftCreateResponse {
328
351
  /**
329
352
  * The data of the shift
330
353
  */
@@ -337,6 +360,10 @@ export declare namespace UnassignedshiftRetrieveResponse {
337
360
  * The start time of the shift
338
361
  */
339
362
  start_time: string;
363
+ /**
364
+ * Notes for the shift, max length 256 characters
365
+ */
366
+ notes?: string;
340
367
  /**
341
368
  * The breaks of the shift
342
369
  */
@@ -397,6 +424,10 @@ export declare namespace UnassignedshiftRetrieveResponse {
397
424
  * The start time of the shift
398
425
  */
399
426
  start_time: string;
427
+ /**
428
+ * Notes for the shift, max length 256 characters
429
+ */
430
+ notes?: string;
400
431
  /**
401
432
  * The breaks of the shift
402
433
  */
@@ -520,16 +551,697 @@ export declare namespace UnassignedshiftRetrieveResponse {
520
551
  }
521
552
  }
522
553
  }
523
- export interface UnassignedshiftListParams {
524
- cursor?: string;
525
- expand?: string;
526
- filter?: string;
527
- order_by?: string;
554
+ /**
555
+ * Meta information for the response.
556
+ */
557
+ export interface UnassignedshiftRetrieveResponse extends BusinessPartnersAPI.Meta {
558
+ /**
559
+ * Identifier field
560
+ */
561
+ id: string;
562
+ /**
563
+ * Record creation date
564
+ */
565
+ created_at: string;
566
+ /**
567
+ * Whether the shift is published
568
+ */
569
+ is_published: boolean;
570
+ /**
571
+ * The ID of the schedule
572
+ */
573
+ schedule_id: string;
574
+ /**
575
+ * The data of the shift
576
+ */
577
+ shift_data: UnassignedshiftRetrieveResponse.ShiftData;
578
+ /**
579
+ * The target count of the shift
580
+ */
581
+ target_count: number;
582
+ /**
583
+ * Record update date
584
+ */
585
+ updated_at: string;
586
+ /**
587
+ * The number of assigned shifts
588
+ */
589
+ assigned_count?: number;
590
+ /**
591
+ * The IDs of the assigned shifts that are part of this unassigned shift
592
+ */
593
+ assigned_shift_ids?: Array<string>;
594
+ /**
595
+ * Custom fields for the unassigned shift
596
+ */
597
+ custom_fields?: Array<unknown>;
598
+ /**
599
+ * Configuration for an open shift. If present, this is an open shift (workers can
600
+ * sign up). If absent/None, this is an empty shift (placeholder).
601
+ */
602
+ open_shift_config?: unknown;
603
+ /**
604
+ * The published version of the shift
605
+ */
606
+ published_version?: UnassignedshiftRetrieveResponse.PublishedVersion;
607
+ /**
608
+ * The schedule
609
+ *
610
+ * Expandable field
611
+ */
612
+ schedule?: UnassignedshiftRetrieveResponse.Schedule;
528
613
  }
529
- export interface UnassignedshiftRetrieveParams {
530
- expand?: string;
614
+ export declare namespace UnassignedshiftRetrieveResponse {
615
+ /**
616
+ * The data of the shift
617
+ */
618
+ interface ShiftData {
619
+ /**
620
+ * The end time of the shift
621
+ */
622
+ end_time: string;
623
+ /**
624
+ * The start time of the shift
625
+ */
626
+ start_time: string;
627
+ /**
628
+ * Notes for the shift, max length 256 characters
629
+ */
630
+ notes?: string;
631
+ /**
632
+ * The breaks of the shift
633
+ */
634
+ shift_breaks?: Array<ShiftData.ShiftBreak>;
635
+ /**
636
+ * The segments of the shift
637
+ */
638
+ shift_segments?: Array<ShiftData.ShiftSegment>;
639
+ }
640
+ namespace ShiftData {
641
+ interface ShiftBreak {
642
+ /**
643
+ * The duration of the shift break in minutes (input only for creation)
644
+ */
645
+ duration_minutes: number;
646
+ /**
647
+ * The start time of the shift break
648
+ */
649
+ start_time: string;
650
+ /**
651
+ * The type of the shift break
652
+ */
653
+ type: 'MEAL' | 'REST';
654
+ /**
655
+ * The end time of the shift break (calculated from start_time + duration_minutes)
656
+ */
657
+ end_time?: string;
658
+ }
659
+ interface ShiftSegment {
660
+ /**
661
+ * The duration of the shift segment in minutes (input only for creation)
662
+ */
663
+ duration_minutes: number;
664
+ /**
665
+ * The start time of the shift segment
666
+ */
667
+ start_time: string;
668
+ /**
669
+ * The end time of the shift segment (calculated from start_time +
670
+ * duration_minutes)
671
+ */
672
+ end_time?: string;
673
+ /**
674
+ * The IDs of the job codes associated with the shift segment
675
+ */
676
+ job_codes_id?: Array<string>;
677
+ }
678
+ }
679
+ /**
680
+ * The published version of the shift
681
+ */
682
+ interface PublishedVersion {
683
+ /**
684
+ * The end time of the shift
685
+ */
686
+ end_time: string;
687
+ /**
688
+ * The start time of the shift
689
+ */
690
+ start_time: string;
691
+ /**
692
+ * Notes for the shift, max length 256 characters
693
+ */
694
+ notes?: string;
695
+ /**
696
+ * The breaks of the shift
697
+ */
698
+ shift_breaks?: Array<PublishedVersion.ShiftBreak>;
699
+ /**
700
+ * The segments of the shift
701
+ */
702
+ shift_segments?: Array<PublishedVersion.ShiftSegment>;
703
+ }
704
+ namespace PublishedVersion {
705
+ interface ShiftBreak {
706
+ /**
707
+ * The duration of the shift break in minutes (input only for creation)
708
+ */
709
+ duration_minutes: number;
710
+ /**
711
+ * The start time of the shift break
712
+ */
713
+ start_time: string;
714
+ /**
715
+ * The type of the shift break
716
+ */
717
+ type: 'MEAL' | 'REST';
718
+ /**
719
+ * The end time of the shift break (calculated from start_time + duration_minutes)
720
+ */
721
+ end_time?: string;
722
+ }
723
+ interface ShiftSegment {
724
+ /**
725
+ * The duration of the shift segment in minutes (input only for creation)
726
+ */
727
+ duration_minutes: number;
728
+ /**
729
+ * The start time of the shift segment
730
+ */
731
+ start_time: string;
732
+ /**
733
+ * The end time of the shift segment (calculated from start_time +
734
+ * duration_minutes)
735
+ */
736
+ end_time?: string;
737
+ /**
738
+ * The IDs of the job codes associated with the shift segment
739
+ */
740
+ job_codes_id?: Array<string>;
741
+ }
742
+ }
743
+ /**
744
+ * The schedule
745
+ *
746
+ * Expandable field
747
+ */
748
+ interface Schedule {
749
+ /**
750
+ * Identifier field
751
+ */
752
+ id: string;
753
+ /**
754
+ * Record creation date
755
+ */
756
+ created_at: string;
757
+ /**
758
+ * Record update date
759
+ */
760
+ updated_at: string;
761
+ /**
762
+ * Whether the requesting role can edit the schedule.
763
+ */
764
+ can_edit?: boolean;
765
+ /**
766
+ * The managers of the schedule.
767
+ *
768
+ * Expandable field
769
+ */
770
+ managers?: Array<WorkersAPI.Worker>;
771
+ /**
772
+ * The IDs of the managers of the schedule.
773
+ */
774
+ managers_id?: Array<string>;
775
+ /**
776
+ * The members of the schedule.
777
+ *
778
+ * Expandable field
779
+ */
780
+ members?: Array<WorkersAPI.Worker>;
781
+ /**
782
+ * The IDs of the members of the schedule.
783
+ */
784
+ members_id?: Array<string>;
785
+ /**
786
+ * The name of the schedule.
787
+ */
788
+ name?: string;
789
+ /**
790
+ * The observers of the schedule.
791
+ *
792
+ * Expandable field
793
+ */
794
+ observers?: Array<WorkersAPI.Worker>;
795
+ /**
796
+ * The IDs of the observers of the schedule.
797
+ */
798
+ observers_id?: Array<string>;
799
+ /**
800
+ * The settings of the schedule.
801
+ */
802
+ settings?: Schedule.Settings;
803
+ }
804
+ namespace Schedule {
805
+ /**
806
+ * The settings of the schedule.
807
+ */
808
+ interface Settings {
809
+ /**
810
+ * The IANA timezone identifier for the schedule (e.g., 'America/New_York').
811
+ * Accepted values are defined by the tz database, listed here:
812
+ * https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
813
+ */
814
+ timezone?: string;
815
+ }
816
+ }
817
+ }
818
+ export interface UnassignedshiftUpdateResponse {
819
+ /**
820
+ * Identifier field
821
+ */
822
+ id: string;
823
+ /**
824
+ * Record creation date
825
+ */
826
+ created_at: string;
827
+ /**
828
+ * Whether the shift is published
829
+ */
830
+ is_published: boolean;
831
+ /**
832
+ * The ID of the schedule
833
+ */
834
+ schedule_id: string;
835
+ /**
836
+ * The data of the shift
837
+ */
838
+ shift_data: UnassignedshiftUpdateResponse.ShiftData;
839
+ /**
840
+ * The target count of the shift
841
+ */
842
+ target_count: number;
843
+ /**
844
+ * Record update date
845
+ */
846
+ updated_at: string;
847
+ /**
848
+ * The number of assigned shifts
849
+ */
850
+ assigned_count?: number;
851
+ /**
852
+ * The IDs of the assigned shifts that are part of this unassigned shift
853
+ */
854
+ assigned_shift_ids?: Array<string>;
855
+ /**
856
+ * Custom fields for the unassigned shift
857
+ */
858
+ custom_fields?: Array<unknown>;
859
+ /**
860
+ * Configuration for an open shift. If present, this is an open shift (workers can
861
+ * sign up). If absent/None, this is an empty shift (placeholder).
862
+ */
863
+ open_shift_config?: unknown;
864
+ /**
865
+ * The published version of the shift
866
+ */
867
+ published_version?: UnassignedshiftUpdateResponse.PublishedVersion;
868
+ /**
869
+ * The schedule
870
+ *
871
+ * Expandable field
872
+ */
873
+ schedule?: UnassignedshiftUpdateResponse.Schedule;
874
+ }
875
+ export declare namespace UnassignedshiftUpdateResponse {
876
+ /**
877
+ * The data of the shift
878
+ */
879
+ interface ShiftData {
880
+ /**
881
+ * The end time of the shift
882
+ */
883
+ end_time: string;
884
+ /**
885
+ * The start time of the shift
886
+ */
887
+ start_time: string;
888
+ /**
889
+ * Notes for the shift, max length 256 characters
890
+ */
891
+ notes?: string;
892
+ /**
893
+ * The breaks of the shift
894
+ */
895
+ shift_breaks?: Array<ShiftData.ShiftBreak>;
896
+ /**
897
+ * The segments of the shift
898
+ */
899
+ shift_segments?: Array<ShiftData.ShiftSegment>;
900
+ }
901
+ namespace ShiftData {
902
+ interface ShiftBreak {
903
+ /**
904
+ * The duration of the shift break in minutes (input only for creation)
905
+ */
906
+ duration_minutes: number;
907
+ /**
908
+ * The start time of the shift break
909
+ */
910
+ start_time: string;
911
+ /**
912
+ * The type of the shift break
913
+ */
914
+ type: 'MEAL' | 'REST';
915
+ /**
916
+ * The end time of the shift break (calculated from start_time + duration_minutes)
917
+ */
918
+ end_time?: string;
919
+ }
920
+ interface ShiftSegment {
921
+ /**
922
+ * The duration of the shift segment in minutes (input only for creation)
923
+ */
924
+ duration_minutes: number;
925
+ /**
926
+ * The start time of the shift segment
927
+ */
928
+ start_time: string;
929
+ /**
930
+ * The end time of the shift segment (calculated from start_time +
931
+ * duration_minutes)
932
+ */
933
+ end_time?: string;
934
+ /**
935
+ * The IDs of the job codes associated with the shift segment
936
+ */
937
+ job_codes_id?: Array<string>;
938
+ }
939
+ }
940
+ /**
941
+ * The published version of the shift
942
+ */
943
+ interface PublishedVersion {
944
+ /**
945
+ * The end time of the shift
946
+ */
947
+ end_time: string;
948
+ /**
949
+ * The start time of the shift
950
+ */
951
+ start_time: string;
952
+ /**
953
+ * Notes for the shift, max length 256 characters
954
+ */
955
+ notes?: string;
956
+ /**
957
+ * The breaks of the shift
958
+ */
959
+ shift_breaks?: Array<PublishedVersion.ShiftBreak>;
960
+ /**
961
+ * The segments of the shift
962
+ */
963
+ shift_segments?: Array<PublishedVersion.ShiftSegment>;
964
+ }
965
+ namespace PublishedVersion {
966
+ interface ShiftBreak {
967
+ /**
968
+ * The duration of the shift break in minutes (input only for creation)
969
+ */
970
+ duration_minutes: number;
971
+ /**
972
+ * The start time of the shift break
973
+ */
974
+ start_time: string;
975
+ /**
976
+ * The type of the shift break
977
+ */
978
+ type: 'MEAL' | 'REST';
979
+ /**
980
+ * The end time of the shift break (calculated from start_time + duration_minutes)
981
+ */
982
+ end_time?: string;
983
+ }
984
+ interface ShiftSegment {
985
+ /**
986
+ * The duration of the shift segment in minutes (input only for creation)
987
+ */
988
+ duration_minutes: number;
989
+ /**
990
+ * The start time of the shift segment
991
+ */
992
+ start_time: string;
993
+ /**
994
+ * The end time of the shift segment (calculated from start_time +
995
+ * duration_minutes)
996
+ */
997
+ end_time?: string;
998
+ /**
999
+ * The IDs of the job codes associated with the shift segment
1000
+ */
1001
+ job_codes_id?: Array<string>;
1002
+ }
1003
+ }
1004
+ /**
1005
+ * The schedule
1006
+ *
1007
+ * Expandable field
1008
+ */
1009
+ interface Schedule {
1010
+ /**
1011
+ * Identifier field
1012
+ */
1013
+ id: string;
1014
+ /**
1015
+ * Record creation date
1016
+ */
1017
+ created_at: string;
1018
+ /**
1019
+ * Record update date
1020
+ */
1021
+ updated_at: string;
1022
+ /**
1023
+ * Whether the requesting role can edit the schedule.
1024
+ */
1025
+ can_edit?: boolean;
1026
+ /**
1027
+ * The managers of the schedule.
1028
+ *
1029
+ * Expandable field
1030
+ */
1031
+ managers?: Array<WorkersAPI.Worker>;
1032
+ /**
1033
+ * The IDs of the managers of the schedule.
1034
+ */
1035
+ managers_id?: Array<string>;
1036
+ /**
1037
+ * The members of the schedule.
1038
+ *
1039
+ * Expandable field
1040
+ */
1041
+ members?: Array<WorkersAPI.Worker>;
1042
+ /**
1043
+ * The IDs of the members of the schedule.
1044
+ */
1045
+ members_id?: Array<string>;
1046
+ /**
1047
+ * The name of the schedule.
1048
+ */
1049
+ name?: string;
1050
+ /**
1051
+ * The observers of the schedule.
1052
+ *
1053
+ * Expandable field
1054
+ */
1055
+ observers?: Array<WorkersAPI.Worker>;
1056
+ /**
1057
+ * The IDs of the observers of the schedule.
1058
+ */
1059
+ observers_id?: Array<string>;
1060
+ /**
1061
+ * The settings of the schedule.
1062
+ */
1063
+ settings?: Schedule.Settings;
1064
+ }
1065
+ namespace Schedule {
1066
+ /**
1067
+ * The settings of the schedule.
1068
+ */
1069
+ interface Settings {
1070
+ /**
1071
+ * The IANA timezone identifier for the schedule (e.g., 'America/New_York').
1072
+ * Accepted values are defined by the tz database, listed here:
1073
+ * https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
1074
+ */
1075
+ timezone?: string;
1076
+ }
1077
+ }
1078
+ }
1079
+ export interface UnassignedshiftListParams {
1080
+ cursor?: string;
1081
+ expand?: string;
1082
+ filter?: string;
1083
+ order_by?: string;
1084
+ }
1085
+ export interface UnassignedshiftCreateParams {
1086
+ /**
1087
+ * Whether the shift is published
1088
+ */
1089
+ is_published: boolean;
1090
+ /**
1091
+ * The ID of the schedule
1092
+ */
1093
+ schedule_id: string;
1094
+ /**
1095
+ * The data of the shift
1096
+ */
1097
+ shift_data: UnassignedshiftCreateParams.ShiftData;
1098
+ /**
1099
+ * The target count of the shift
1100
+ */
1101
+ target_count: number;
1102
+ /**
1103
+ * Configuration for an open shift. If present, this is an open shift (workers can
1104
+ * sign up). If absent/None, this is an empty shift (placeholder).
1105
+ */
1106
+ open_shift_config?: unknown;
1107
+ }
1108
+ export declare namespace UnassignedshiftCreateParams {
1109
+ /**
1110
+ * The data of the shift
1111
+ */
1112
+ interface ShiftData {
1113
+ /**
1114
+ * The end time of the shift
1115
+ */
1116
+ end_time: string;
1117
+ /**
1118
+ * The start time of the shift
1119
+ */
1120
+ start_time: string;
1121
+ /**
1122
+ * Notes for the shift, max length 256 characters
1123
+ */
1124
+ notes?: string;
1125
+ /**
1126
+ * The breaks of the shift
1127
+ */
1128
+ shift_breaks?: Array<ShiftData.ShiftBreak>;
1129
+ /**
1130
+ * The segments of the shift
1131
+ */
1132
+ shift_segments?: Array<ShiftData.ShiftSegment>;
1133
+ }
1134
+ namespace ShiftData {
1135
+ interface ShiftBreak {
1136
+ /**
1137
+ * The duration of the shift break in minutes (input only for creation)
1138
+ */
1139
+ duration_minutes: number;
1140
+ /**
1141
+ * The start time of the shift break
1142
+ */
1143
+ start_time: string;
1144
+ /**
1145
+ * The type of the shift break
1146
+ */
1147
+ type: 'MEAL' | 'REST';
1148
+ }
1149
+ interface ShiftSegment {
1150
+ /**
1151
+ * The duration of the shift segment in minutes (input only for creation)
1152
+ */
1153
+ duration_minutes: number;
1154
+ /**
1155
+ * The start time of the shift segment
1156
+ */
1157
+ start_time: string;
1158
+ /**
1159
+ * The IDs of the job codes associated with the shift segment
1160
+ */
1161
+ job_codes_id?: Array<string>;
1162
+ }
1163
+ }
1164
+ }
1165
+ export interface UnassignedshiftRetrieveParams {
1166
+ expand?: string;
1167
+ }
1168
+ export interface UnassignedshiftUpdateParams {
1169
+ /**
1170
+ * Whether the shift is published
1171
+ */
1172
+ is_published: boolean;
1173
+ /**
1174
+ * The data of the shift
1175
+ */
1176
+ shift_data: UnassignedshiftUpdateParams.ShiftData;
1177
+ /**
1178
+ * The target count of the shift
1179
+ */
1180
+ target_count: number;
1181
+ /**
1182
+ * Configuration for an open shift. If present, this is an open shift (workers can
1183
+ * sign up). If absent/None, this is an empty shift (placeholder).
1184
+ */
1185
+ open_shift_config?: unknown;
1186
+ }
1187
+ export declare namespace UnassignedshiftUpdateParams {
1188
+ /**
1189
+ * The data of the shift
1190
+ */
1191
+ interface ShiftData {
1192
+ /**
1193
+ * The end time of the shift
1194
+ */
1195
+ end_time: string;
1196
+ /**
1197
+ * The start time of the shift
1198
+ */
1199
+ start_time: string;
1200
+ /**
1201
+ * Notes for the shift, max length 256 characters
1202
+ */
1203
+ notes?: string;
1204
+ /**
1205
+ * The breaks of the shift
1206
+ */
1207
+ shift_breaks?: Array<ShiftData.ShiftBreak>;
1208
+ /**
1209
+ * The segments of the shift
1210
+ */
1211
+ shift_segments?: Array<ShiftData.ShiftSegment>;
1212
+ }
1213
+ namespace ShiftData {
1214
+ interface ShiftBreak {
1215
+ /**
1216
+ * The duration of the shift break in minutes (input only for creation)
1217
+ */
1218
+ duration_minutes: number;
1219
+ /**
1220
+ * The start time of the shift break
1221
+ */
1222
+ start_time: string;
1223
+ /**
1224
+ * The type of the shift break
1225
+ */
1226
+ type: 'MEAL' | 'REST';
1227
+ }
1228
+ interface ShiftSegment {
1229
+ /**
1230
+ * The duration of the shift segment in minutes (input only for creation)
1231
+ */
1232
+ duration_minutes: number;
1233
+ /**
1234
+ * The start time of the shift segment
1235
+ */
1236
+ start_time: string;
1237
+ /**
1238
+ * The IDs of the job codes associated with the shift segment
1239
+ */
1240
+ job_codes_id?: Array<string>;
1241
+ }
1242
+ }
531
1243
  }
532
1244
  export declare namespace Unassignedshifts {
533
- export { type UnassignedshiftListResponse as UnassignedshiftListResponse, type UnassignedshiftRetrieveResponse as UnassignedshiftRetrieveResponse, type UnassignedshiftListResponsesPageCursorURL as UnassignedshiftListResponsesPageCursorURL, type UnassignedshiftListParams as UnassignedshiftListParams, type UnassignedshiftRetrieveParams as UnassignedshiftRetrieveParams, };
1245
+ export { type UnassignedshiftListResponse as UnassignedshiftListResponse, type UnassignedshiftCreateResponse as UnassignedshiftCreateResponse, type UnassignedshiftRetrieveResponse as UnassignedshiftRetrieveResponse, type UnassignedshiftUpdateResponse as UnassignedshiftUpdateResponse, type UnassignedshiftListResponsesPageCursorURL as UnassignedshiftListResponsesPageCursorURL, type UnassignedshiftListParams as UnassignedshiftListParams, type UnassignedshiftCreateParams as UnassignedshiftCreateParams, type UnassignedshiftRetrieveParams as UnassignedshiftRetrieveParams, type UnassignedshiftUpdateParams as UnassignedshiftUpdateParams, };
534
1246
  }
535
1247
  //# sourceMappingURL=unassignedshifts.d.ts.map