@rippling/rippling-sdk 0.2.0-alpha.23 → 0.2.0-alpha.25

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 (250) 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/functions.d.mts +3 -0
  10. package/functions.d.mts.map +1 -1
  11. package/functions.d.ts +3 -0
  12. package/functions.d.ts.map +1 -1
  13. package/functions.js.map +1 -1
  14. package/functions.mjs.map +1 -1
  15. package/package.json +1 -1
  16. package/resources/business-partner-groups.d.mts +1 -0
  17. package/resources/business-partner-groups.d.mts.map +1 -1
  18. package/resources/business-partner-groups.d.ts +1 -0
  19. package/resources/business-partner-groups.d.ts.map +1 -1
  20. package/resources/business-partners.d.mts +1 -0
  21. package/resources/business-partners.d.mts.map +1 -1
  22. package/resources/business-partners.d.ts +1 -0
  23. package/resources/business-partners.d.ts.map +1 -1
  24. package/resources/candidate-applications.d.mts +1 -0
  25. package/resources/candidate-applications.d.mts.map +1 -1
  26. package/resources/candidate-applications.d.ts +1 -0
  27. package/resources/candidate-applications.d.ts.map +1 -1
  28. package/resources/candidates.d.mts +1 -0
  29. package/resources/candidates.d.mts.map +1 -1
  30. package/resources/candidates.d.ts +1 -0
  31. package/resources/candidates.d.ts.map +1 -1
  32. package/resources/companies.d.mts +1 -0
  33. package/resources/companies.d.mts.map +1 -1
  34. package/resources/companies.d.ts +1 -0
  35. package/resources/companies.d.ts.map +1 -1
  36. package/resources/compensations.d.mts +1 -0
  37. package/resources/compensations.d.mts.map +1 -1
  38. package/resources/compensations.d.ts +1 -0
  39. package/resources/compensations.d.ts.map +1 -1
  40. package/resources/custom-fields.d.mts +1 -0
  41. package/resources/custom-fields.d.mts.map +1 -1
  42. package/resources/custom-fields.d.ts +1 -0
  43. package/resources/custom-fields.d.ts.map +1 -1
  44. package/resources/departments.d.mts +1 -0
  45. package/resources/departments.d.mts.map +1 -1
  46. package/resources/departments.d.ts +1 -0
  47. package/resources/departments.d.ts.map +1 -1
  48. package/resources/employment-types.d.mts +1 -0
  49. package/resources/employment-types.d.mts.map +1 -1
  50. package/resources/employment-types.d.ts +1 -0
  51. package/resources/employment-types.d.ts.map +1 -1
  52. package/resources/headcount-positions.d.mts +1 -0
  53. package/resources/headcount-positions.d.mts.map +1 -1
  54. package/resources/headcount-positions.d.ts +1 -0
  55. package/resources/headcount-positions.d.ts.map +1 -1
  56. package/resources/headcount-priorities.d.mts +1 -0
  57. package/resources/headcount-priorities.d.mts.map +1 -1
  58. package/resources/headcount-priorities.d.ts +1 -0
  59. package/resources/headcount-priorities.d.ts.map +1 -1
  60. package/resources/index.d.mts +3 -2
  61. package/resources/index.d.mts.map +1 -1
  62. package/resources/index.d.ts +3 -2
  63. package/resources/index.d.ts.map +1 -1
  64. package/resources/index.js +3 -1
  65. package/resources/index.js.map +1 -1
  66. package/resources/index.mjs +1 -0
  67. package/resources/index.mjs.map +1 -1
  68. package/resources/job-assignments.d.mts +2 -0
  69. package/resources/job-assignments.d.mts.map +1 -1
  70. package/resources/job-assignments.d.ts +2 -0
  71. package/resources/job-assignments.d.ts.map +1 -1
  72. package/resources/job-codes.d.mts +2 -0
  73. package/resources/job-codes.d.mts.map +1 -1
  74. package/resources/job-codes.d.ts +2 -0
  75. package/resources/job-codes.d.ts.map +1 -1
  76. package/resources/job-dimensions.d.mts +1 -0
  77. package/resources/job-dimensions.d.mts.map +1 -1
  78. package/resources/job-dimensions.d.ts +1 -0
  79. package/resources/job-dimensions.d.ts.map +1 -1
  80. package/resources/job-functions.d.mts +1 -0
  81. package/resources/job-functions.d.mts.map +1 -1
  82. package/resources/job-functions.d.ts +1 -0
  83. package/resources/job-functions.d.ts.map +1 -1
  84. package/resources/job-pay-rate-exceptions.d.mts +2 -0
  85. package/resources/job-pay-rate-exceptions.d.mts.map +1 -1
  86. package/resources/job-pay-rate-exceptions.d.ts +2 -0
  87. package/resources/job-pay-rate-exceptions.d.ts.map +1 -1
  88. package/resources/job-requisitions.d.mts +1 -0
  89. package/resources/job-requisitions.d.mts.map +1 -1
  90. package/resources/job-requisitions.d.ts +1 -0
  91. package/resources/job-requisitions.d.ts.map +1 -1
  92. package/resources/kiosk-badges.d.mts +1 -0
  93. package/resources/kiosk-badges.d.mts.map +1 -1
  94. package/resources/kiosk-badges.d.ts +1 -0
  95. package/resources/kiosk-badges.d.ts.map +1 -1
  96. package/resources/leave-balances.d.mts +1 -0
  97. package/resources/leave-balances.d.mts.map +1 -1
  98. package/resources/leave-balances.d.ts +1 -0
  99. package/resources/leave-balances.d.ts.map +1 -1
  100. package/resources/leave-requests.d.mts +1 -0
  101. package/resources/leave-requests.d.mts.map +1 -1
  102. package/resources/leave-requests.d.ts +1 -0
  103. package/resources/leave-requests.d.ts.map +1 -1
  104. package/resources/leave-types.d.mts +1 -0
  105. package/resources/leave-types.d.mts.map +1 -1
  106. package/resources/leave-types.d.ts +1 -0
  107. package/resources/leave-types.d.ts.map +1 -1
  108. package/resources/legal-entities.d.mts +1 -0
  109. package/resources/legal-entities.d.mts.map +1 -1
  110. package/resources/legal-entities.d.ts +1 -0
  111. package/resources/legal-entities.d.ts.map +1 -1
  112. package/resources/levels.d.mts +1 -0
  113. package/resources/levels.d.mts.map +1 -1
  114. package/resources/levels.d.ts +1 -0
  115. package/resources/levels.d.ts.map +1 -1
  116. package/resources/location-factors.d.mts +1 -0
  117. package/resources/location-factors.d.mts.map +1 -1
  118. package/resources/location-factors.d.ts +1 -0
  119. package/resources/location-factors.d.ts.map +1 -1
  120. package/resources/schedules.d.mts +110 -1
  121. package/resources/schedules.d.mts.map +1 -1
  122. package/resources/schedules.d.ts +110 -1
  123. package/resources/schedules.d.ts.map +1 -1
  124. package/resources/schedules.js +6 -0
  125. package/resources/schedules.js.map +1 -1
  126. package/resources/schedules.mjs +6 -0
  127. package/resources/schedules.mjs.map +1 -1
  128. package/resources/shift-inputs.d.mts +1 -0
  129. package/resources/shift-inputs.d.mts.map +1 -1
  130. package/resources/shift-inputs.d.ts +1 -0
  131. package/resources/shift-inputs.d.ts.map +1 -1
  132. package/resources/shiftassignments.d.mts +836 -143
  133. package/resources/shiftassignments.d.mts.map +1 -1
  134. package/resources/shiftassignments.d.ts +836 -143
  135. package/resources/shiftassignments.d.ts.map +1 -1
  136. package/resources/shiftassignments.js +12 -0
  137. package/resources/shiftassignments.js.map +1 -1
  138. package/resources/shiftassignments.mjs +12 -0
  139. package/resources/shiftassignments.mjs.map +1 -1
  140. package/resources/sso-me.d.mts +1 -0
  141. package/resources/sso-me.d.mts.map +1 -1
  142. package/resources/sso-me.d.ts +1 -0
  143. package/resources/sso-me.d.ts.map +1 -1
  144. package/resources/supergroups/exclusion-members.d.mts +2 -0
  145. package/resources/supergroups/exclusion-members.d.mts.map +1 -1
  146. package/resources/supergroups/exclusion-members.d.ts +2 -0
  147. package/resources/supergroups/exclusion-members.d.ts.map +1 -1
  148. package/resources/supergroups/exclusion-members.js +1 -0
  149. package/resources/supergroups/exclusion-members.js.map +1 -1
  150. package/resources/supergroups/exclusion-members.mjs +1 -0
  151. package/resources/supergroups/exclusion-members.mjs.map +1 -1
  152. package/resources/supergroups/inclusion-members.d.mts +2 -0
  153. package/resources/supergroups/inclusion-members.d.mts.map +1 -1
  154. package/resources/supergroups/inclusion-members.d.ts +2 -0
  155. package/resources/supergroups/inclusion-members.d.ts.map +1 -1
  156. package/resources/supergroups/inclusion-members.js +1 -0
  157. package/resources/supergroups/inclusion-members.js.map +1 -1
  158. package/resources/supergroups/inclusion-members.mjs +1 -0
  159. package/resources/supergroups/inclusion-members.mjs.map +1 -1
  160. package/resources/supergroups/members.d.mts +13 -0
  161. package/resources/supergroups/members.d.mts.map +1 -1
  162. package/resources/supergroups/members.d.ts +13 -0
  163. package/resources/supergroups/members.d.ts.map +1 -1
  164. package/resources/supergroups/members.js +1 -0
  165. package/resources/supergroups/members.js.map +1 -1
  166. package/resources/supergroups/members.mjs +1 -0
  167. package/resources/supergroups/members.mjs.map +1 -1
  168. package/resources/teams.d.mts +1 -0
  169. package/resources/teams.d.mts.map +1 -1
  170. package/resources/teams.d.ts +1 -0
  171. package/resources/teams.d.ts.map +1 -1
  172. package/resources/time-cards.d.mts +1 -0
  173. package/resources/time-cards.d.mts.map +1 -1
  174. package/resources/time-cards.d.ts +1 -0
  175. package/resources/time-cards.d.ts.map +1 -1
  176. package/resources/time-entries.d.mts +1 -0
  177. package/resources/time-entries.d.mts.map +1 -1
  178. package/resources/time-entries.d.ts +1 -0
  179. package/resources/time-entries.d.ts.map +1 -1
  180. package/resources/tracks.d.mts +1 -0
  181. package/resources/tracks.d.mts.map +1 -1
  182. package/resources/tracks.d.ts +1 -0
  183. package/resources/tracks.d.ts.map +1 -1
  184. package/resources/unassignedshifts.d.mts +866 -0
  185. package/resources/unassignedshifts.d.mts.map +1 -0
  186. package/resources/unassignedshifts.d.ts +866 -0
  187. package/resources/unassignedshifts.d.ts.map +1 -0
  188. package/resources/unassignedshifts.js +38 -0
  189. package/resources/unassignedshifts.js.map +1 -0
  190. package/resources/unassignedshifts.mjs +34 -0
  191. package/resources/unassignedshifts.mjs.map +1 -0
  192. package/resources/users.d.mts +1 -0
  193. package/resources/users.d.mts.map +1 -1
  194. package/resources/users.d.ts +1 -0
  195. package/resources/users.d.ts.map +1 -1
  196. package/resources/work-locations.d.mts +1 -0
  197. package/resources/work-locations.d.mts.map +1 -1
  198. package/resources/work-locations.d.ts +1 -0
  199. package/resources/work-locations.d.ts.map +1 -1
  200. package/resources/workers.d.mts +1 -0
  201. package/resources/workers.d.mts.map +1 -1
  202. package/resources/workers.d.ts +1 -0
  203. package/resources/workers.d.ts.map +1 -1
  204. package/src/client.ts +36 -0
  205. package/src/functions.ts +6 -0
  206. package/src/resources/business-partner-groups.ts +2 -0
  207. package/src/resources/business-partners.ts +2 -0
  208. package/src/resources/candidate-applications.ts +2 -0
  209. package/src/resources/candidates.ts +2 -0
  210. package/src/resources/companies.ts +2 -0
  211. package/src/resources/compensations.ts +2 -0
  212. package/src/resources/custom-fields.ts +2 -0
  213. package/src/resources/departments.ts +2 -0
  214. package/src/resources/employment-types.ts +2 -0
  215. package/src/resources/headcount-positions.ts +2 -0
  216. package/src/resources/headcount-priorities.ts +2 -0
  217. package/src/resources/index.ts +16 -0
  218. package/src/resources/job-assignments.ts +4 -0
  219. package/src/resources/job-codes.ts +4 -0
  220. package/src/resources/job-dimensions.ts +2 -0
  221. package/src/resources/job-functions.ts +2 -0
  222. package/src/resources/job-pay-rate-exceptions.ts +4 -0
  223. package/src/resources/job-requisitions.ts +2 -0
  224. package/src/resources/kiosk-badges.ts +2 -0
  225. package/src/resources/leave-balances.ts +2 -0
  226. package/src/resources/leave-requests.ts +2 -0
  227. package/src/resources/leave-types.ts +2 -0
  228. package/src/resources/legal-entities.ts +2 -0
  229. package/src/resources/levels.ts +2 -0
  230. package/src/resources/location-factors.ts +2 -0
  231. package/src/resources/schedules.ts +138 -0
  232. package/src/resources/shift-inputs.ts +2 -0
  233. package/src/resources/shiftassignments.ts +1010 -167
  234. package/src/resources/sso-me.ts +2 -0
  235. package/src/resources/supergroups/exclusion-members.ts +3 -0
  236. package/src/resources/supergroups/inclusion-members.ts +3 -0
  237. package/src/resources/supergroups/members.ts +16 -0
  238. package/src/resources/teams.ts +2 -0
  239. package/src/resources/time-cards.ts +2 -0
  240. package/src/resources/time-entries.ts +2 -0
  241. package/src/resources/tracks.ts +2 -0
  242. package/src/resources/unassignedshifts.ts +1067 -0
  243. package/src/resources/users.ts +2 -0
  244. package/src/resources/work-locations.ts +2 -0
  245. package/src/resources/workers.ts +2 -0
  246. package/src/version.ts +1 -1
  247. package/version.d.mts +1 -1
  248. package/version.d.ts +1 -1
  249. package/version.js +1 -1
  250. package/version.mjs +1 -1
@@ -0,0 +1,866 @@
1
+ import { APIResource } from "../core/resource.js";
2
+ import * as BusinessPartnersAPI from "./business-partners.js";
3
+ import * as WorkersAPI from "./workers.js";
4
+ import { APIPromise } from "../core/api-promise.js";
5
+ import { PageCursorURL, PagePromise } from "../core/pagination.js";
6
+ import { RequestOptions } from "../internal/request-options.js";
7
+ export declare class Unassignedshifts extends APIResource {
8
+ /**
9
+ * A List of unassigned shifts
10
+ *
11
+ * - Requires: `API Tier 2`
12
+ * - Filterable fields: `schedule_id`, `shift_data.start_time`,
13
+ * `shift_data.end_time`
14
+ * - Expandable fields: `schedule`
15
+ * - Sortable fields: `id`, `created_at`, `updated_at`
16
+ */
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>;
22
+ /**
23
+ * Retrieve a specific unassigned shift
24
+ */
25
+ retrieve(id: string, query?: UnassignedshiftRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<UnassignedshiftRetrieveResponse>;
26
+ }
27
+ export type UnassignedshiftListResponsesPageCursorURL = PageCursorURL<UnassignedshiftListResponse>;
28
+ export interface UnassignedshiftListResponse {
29
+ /**
30
+ * Identifier field
31
+ */
32
+ id: string;
33
+ /**
34
+ * Record creation date
35
+ */
36
+ created_at: string;
37
+ /**
38
+ * Whether the shift is published
39
+ */
40
+ is_published: boolean;
41
+ /**
42
+ * The ID of the schedule
43
+ */
44
+ schedule_id: string;
45
+ /**
46
+ * The data of the shift
47
+ */
48
+ shift_data: UnassignedshiftListResponse.ShiftData;
49
+ /**
50
+ * The target count of the shift
51
+ */
52
+ target_count: number;
53
+ /**
54
+ * Record update date
55
+ */
56
+ updated_at: string;
57
+ /**
58
+ * The number of assigned shifts
59
+ */
60
+ assigned_count?: number;
61
+ /**
62
+ * The IDs of the assigned shifts that are part of this unassigned shift
63
+ */
64
+ assigned_shift_ids?: Array<string>;
65
+ /**
66
+ * Configuration for an open shift. If present, this is an open shift (workers can
67
+ * sign up). If absent/None, this is an empty shift (placeholder).
68
+ */
69
+ open_shift_config?: unknown;
70
+ /**
71
+ * The published version of the shift
72
+ */
73
+ published_version?: UnassignedshiftListResponse.PublishedVersion;
74
+ /**
75
+ * The schedule
76
+ *
77
+ * Expandable field
78
+ */
79
+ schedule?: UnassignedshiftListResponse.Schedule;
80
+ }
81
+ export declare namespace UnassignedshiftListResponse {
82
+ /**
83
+ * The data of the shift
84
+ */
85
+ interface ShiftData {
86
+ /**
87
+ * The end time of the shift
88
+ */
89
+ end_time: string;
90
+ /**
91
+ * The start time of the shift
92
+ */
93
+ start_time: string;
94
+ /**
95
+ * The breaks of the shift
96
+ */
97
+ shift_breaks?: Array<ShiftData.ShiftBreak>;
98
+ /**
99
+ * The segments of the shift
100
+ */
101
+ shift_segments?: Array<ShiftData.ShiftSegment>;
102
+ }
103
+ namespace ShiftData {
104
+ interface ShiftBreak {
105
+ /**
106
+ * The duration of the shift break in minutes (input only for creation)
107
+ */
108
+ duration_minutes: number;
109
+ /**
110
+ * The start time of the shift break
111
+ */
112
+ start_time: string;
113
+ /**
114
+ * The type of the shift break
115
+ */
116
+ type: 'MEAL' | 'REST';
117
+ /**
118
+ * The end time of the shift break (calculated from start_time + duration_minutes)
119
+ */
120
+ end_time?: string;
121
+ }
122
+ interface ShiftSegment {
123
+ /**
124
+ * The duration of the shift segment in minutes (input only for creation)
125
+ */
126
+ duration_minutes: number;
127
+ /**
128
+ * The start time of the shift segment
129
+ */
130
+ start_time: string;
131
+ /**
132
+ * The end time of the shift segment (calculated from start_time +
133
+ * duration_minutes)
134
+ */
135
+ end_time?: string;
136
+ /**
137
+ * The IDs of the job codes associated with the shift segment
138
+ */
139
+ job_codes_id?: Array<string>;
140
+ }
141
+ }
142
+ /**
143
+ * The published version of the shift
144
+ */
145
+ interface PublishedVersion {
146
+ /**
147
+ * The end time of the shift
148
+ */
149
+ end_time: string;
150
+ /**
151
+ * The start time of the shift
152
+ */
153
+ start_time: string;
154
+ /**
155
+ * The breaks of the shift
156
+ */
157
+ shift_breaks?: Array<PublishedVersion.ShiftBreak>;
158
+ /**
159
+ * The segments of the shift
160
+ */
161
+ shift_segments?: Array<PublishedVersion.ShiftSegment>;
162
+ }
163
+ namespace PublishedVersion {
164
+ interface ShiftBreak {
165
+ /**
166
+ * The duration of the shift break in minutes (input only for creation)
167
+ */
168
+ duration_minutes: number;
169
+ /**
170
+ * The start time of the shift break
171
+ */
172
+ start_time: string;
173
+ /**
174
+ * The type of the shift break
175
+ */
176
+ type: 'MEAL' | 'REST';
177
+ /**
178
+ * The end time of the shift break (calculated from start_time + duration_minutes)
179
+ */
180
+ end_time?: string;
181
+ }
182
+ interface ShiftSegment {
183
+ /**
184
+ * The duration of the shift segment in minutes (input only for creation)
185
+ */
186
+ duration_minutes: number;
187
+ /**
188
+ * The start time of the shift segment
189
+ */
190
+ start_time: string;
191
+ /**
192
+ * The end time of the shift segment (calculated from start_time +
193
+ * duration_minutes)
194
+ */
195
+ end_time?: string;
196
+ /**
197
+ * The IDs of the job codes associated with the shift segment
198
+ */
199
+ job_codes_id?: Array<string>;
200
+ }
201
+ }
202
+ /**
203
+ * The schedule
204
+ *
205
+ * Expandable field
206
+ */
207
+ interface Schedule {
208
+ /**
209
+ * Identifier field
210
+ */
211
+ id: string;
212
+ /**
213
+ * Record creation date
214
+ */
215
+ created_at: string;
216
+ /**
217
+ * Record update date
218
+ */
219
+ updated_at: string;
220
+ /**
221
+ * Whether the requesting role can edit the schedule.
222
+ */
223
+ can_edit?: boolean;
224
+ /**
225
+ * The managers of the schedule.
226
+ *
227
+ * Expandable field
228
+ */
229
+ managers?: Array<WorkersAPI.Worker>;
230
+ /**
231
+ * The IDs of the managers of the schedule.
232
+ */
233
+ managers_id?: Array<string>;
234
+ /**
235
+ * The members of the schedule.
236
+ *
237
+ * Expandable field
238
+ */
239
+ members?: Array<WorkersAPI.Worker>;
240
+ /**
241
+ * The IDs of the members of the schedule.
242
+ */
243
+ members_id?: Array<string>;
244
+ /**
245
+ * The name of the schedule.
246
+ */
247
+ name?: string;
248
+ /**
249
+ * The observers of the schedule.
250
+ *
251
+ * Expandable field
252
+ */
253
+ observers?: Array<WorkersAPI.Worker>;
254
+ /**
255
+ * The IDs of the observers of the schedule.
256
+ */
257
+ observers_id?: Array<string>;
258
+ /**
259
+ * The settings of the schedule.
260
+ */
261
+ settings?: Schedule.Settings;
262
+ }
263
+ namespace Schedule {
264
+ /**
265
+ * The settings of the schedule.
266
+ */
267
+ interface Settings {
268
+ /**
269
+ * The IANA timezone identifier for the schedule (e.g., 'America/New_York').
270
+ * Accepted values are defined by the tz database, listed here:
271
+ * https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
272
+ */
273
+ timezone?: string;
274
+ }
275
+ }
276
+ }
277
+ export interface UnassignedshiftCreateResponse {
278
+ /**
279
+ * Identifier field
280
+ */
281
+ id: string;
282
+ /**
283
+ * Record creation date
284
+ */
285
+ created_at: string;
286
+ /**
287
+ * Whether the shift is published
288
+ */
289
+ is_published: boolean;
290
+ /**
291
+ * The ID of the schedule
292
+ */
293
+ schedule_id: string;
294
+ /**
295
+ * The data of the shift
296
+ */
297
+ shift_data: UnassignedshiftCreateResponse.ShiftData;
298
+ /**
299
+ * The target count of the shift
300
+ */
301
+ target_count: number;
302
+ /**
303
+ * Record update date
304
+ */
305
+ updated_at: string;
306
+ /**
307
+ * The number of assigned shifts
308
+ */
309
+ assigned_count?: number;
310
+ /**
311
+ * The IDs of the assigned shifts that are part of this unassigned shift
312
+ */
313
+ assigned_shift_ids?: Array<string>;
314
+ /**
315
+ * Configuration for an open shift. If present, this is an open shift (workers can
316
+ * sign up). If absent/None, this is an empty shift (placeholder).
317
+ */
318
+ open_shift_config?: unknown;
319
+ /**
320
+ * The published version of the shift
321
+ */
322
+ published_version?: UnassignedshiftCreateResponse.PublishedVersion;
323
+ /**
324
+ * The schedule
325
+ *
326
+ * Expandable field
327
+ */
328
+ schedule?: UnassignedshiftCreateResponse.Schedule;
329
+ }
330
+ export declare namespace UnassignedshiftCreateResponse {
331
+ /**
332
+ * The data of the shift
333
+ */
334
+ interface ShiftData {
335
+ /**
336
+ * The end time of the shift
337
+ */
338
+ end_time: string;
339
+ /**
340
+ * The start time of the shift
341
+ */
342
+ start_time: string;
343
+ /**
344
+ * The breaks of the shift
345
+ */
346
+ shift_breaks?: Array<ShiftData.ShiftBreak>;
347
+ /**
348
+ * The segments of the shift
349
+ */
350
+ shift_segments?: Array<ShiftData.ShiftSegment>;
351
+ }
352
+ namespace ShiftData {
353
+ interface ShiftBreak {
354
+ /**
355
+ * The duration of the shift break in minutes (input only for creation)
356
+ */
357
+ duration_minutes: number;
358
+ /**
359
+ * The start time of the shift break
360
+ */
361
+ start_time: string;
362
+ /**
363
+ * The type of the shift break
364
+ */
365
+ type: 'MEAL' | 'REST';
366
+ /**
367
+ * The end time of the shift break (calculated from start_time + duration_minutes)
368
+ */
369
+ end_time?: string;
370
+ }
371
+ interface ShiftSegment {
372
+ /**
373
+ * The duration of the shift segment in minutes (input only for creation)
374
+ */
375
+ duration_minutes: number;
376
+ /**
377
+ * The start time of the shift segment
378
+ */
379
+ start_time: string;
380
+ /**
381
+ * The end time of the shift segment (calculated from start_time +
382
+ * duration_minutes)
383
+ */
384
+ end_time?: string;
385
+ /**
386
+ * The IDs of the job codes associated with the shift segment
387
+ */
388
+ job_codes_id?: Array<string>;
389
+ }
390
+ }
391
+ /**
392
+ * The published version of the shift
393
+ */
394
+ interface PublishedVersion {
395
+ /**
396
+ * The end time of the shift
397
+ */
398
+ end_time: string;
399
+ /**
400
+ * The start time of the shift
401
+ */
402
+ start_time: string;
403
+ /**
404
+ * The breaks of the shift
405
+ */
406
+ shift_breaks?: Array<PublishedVersion.ShiftBreak>;
407
+ /**
408
+ * The segments of the shift
409
+ */
410
+ shift_segments?: Array<PublishedVersion.ShiftSegment>;
411
+ }
412
+ namespace PublishedVersion {
413
+ interface ShiftBreak {
414
+ /**
415
+ * The duration of the shift break in minutes (input only for creation)
416
+ */
417
+ duration_minutes: number;
418
+ /**
419
+ * The start time of the shift break
420
+ */
421
+ start_time: string;
422
+ /**
423
+ * The type of the shift break
424
+ */
425
+ type: 'MEAL' | 'REST';
426
+ /**
427
+ * The end time of the shift break (calculated from start_time + duration_minutes)
428
+ */
429
+ end_time?: string;
430
+ }
431
+ interface ShiftSegment {
432
+ /**
433
+ * The duration of the shift segment in minutes (input only for creation)
434
+ */
435
+ duration_minutes: number;
436
+ /**
437
+ * The start time of the shift segment
438
+ */
439
+ start_time: string;
440
+ /**
441
+ * The end time of the shift segment (calculated from start_time +
442
+ * duration_minutes)
443
+ */
444
+ end_time?: string;
445
+ /**
446
+ * The IDs of the job codes associated with the shift segment
447
+ */
448
+ job_codes_id?: Array<string>;
449
+ }
450
+ }
451
+ /**
452
+ * The schedule
453
+ *
454
+ * Expandable field
455
+ */
456
+ interface Schedule {
457
+ /**
458
+ * Identifier field
459
+ */
460
+ id: string;
461
+ /**
462
+ * Record creation date
463
+ */
464
+ created_at: string;
465
+ /**
466
+ * Record update date
467
+ */
468
+ updated_at: string;
469
+ /**
470
+ * Whether the requesting role can edit the schedule.
471
+ */
472
+ can_edit?: boolean;
473
+ /**
474
+ * The managers of the schedule.
475
+ *
476
+ * Expandable field
477
+ */
478
+ managers?: Array<WorkersAPI.Worker>;
479
+ /**
480
+ * The IDs of the managers of the schedule.
481
+ */
482
+ managers_id?: Array<string>;
483
+ /**
484
+ * The members of the schedule.
485
+ *
486
+ * Expandable field
487
+ */
488
+ members?: Array<WorkersAPI.Worker>;
489
+ /**
490
+ * The IDs of the members of the schedule.
491
+ */
492
+ members_id?: Array<string>;
493
+ /**
494
+ * The name of the schedule.
495
+ */
496
+ name?: string;
497
+ /**
498
+ * The observers of the schedule.
499
+ *
500
+ * Expandable field
501
+ */
502
+ observers?: Array<WorkersAPI.Worker>;
503
+ /**
504
+ * The IDs of the observers of the schedule.
505
+ */
506
+ observers_id?: Array<string>;
507
+ /**
508
+ * The settings of the schedule.
509
+ */
510
+ settings?: Schedule.Settings;
511
+ }
512
+ namespace Schedule {
513
+ /**
514
+ * The settings of the schedule.
515
+ */
516
+ interface Settings {
517
+ /**
518
+ * The IANA timezone identifier for the schedule (e.g., 'America/New_York').
519
+ * Accepted values are defined by the tz database, listed here:
520
+ * https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
521
+ */
522
+ timezone?: string;
523
+ }
524
+ }
525
+ }
526
+ /**
527
+ * Meta information for the response.
528
+ */
529
+ export interface UnassignedshiftRetrieveResponse extends BusinessPartnersAPI.Meta {
530
+ /**
531
+ * Identifier field
532
+ */
533
+ id: string;
534
+ /**
535
+ * Record creation date
536
+ */
537
+ created_at: string;
538
+ /**
539
+ * Whether the shift is published
540
+ */
541
+ is_published: boolean;
542
+ /**
543
+ * The ID of the schedule
544
+ */
545
+ schedule_id: string;
546
+ /**
547
+ * The data of the shift
548
+ */
549
+ shift_data: UnassignedshiftRetrieveResponse.ShiftData;
550
+ /**
551
+ * The target count of the shift
552
+ */
553
+ target_count: number;
554
+ /**
555
+ * Record update date
556
+ */
557
+ updated_at: string;
558
+ /**
559
+ * The number of assigned shifts
560
+ */
561
+ assigned_count?: number;
562
+ /**
563
+ * The IDs of the assigned shifts that are part of this unassigned shift
564
+ */
565
+ assigned_shift_ids?: Array<string>;
566
+ /**
567
+ * Configuration for an open shift. If present, this is an open shift (workers can
568
+ * sign up). If absent/None, this is an empty shift (placeholder).
569
+ */
570
+ open_shift_config?: unknown;
571
+ /**
572
+ * The published version of the shift
573
+ */
574
+ published_version?: UnassignedshiftRetrieveResponse.PublishedVersion;
575
+ /**
576
+ * The schedule
577
+ *
578
+ * Expandable field
579
+ */
580
+ schedule?: UnassignedshiftRetrieveResponse.Schedule;
581
+ }
582
+ export declare namespace UnassignedshiftRetrieveResponse {
583
+ /**
584
+ * The data of the shift
585
+ */
586
+ interface ShiftData {
587
+ /**
588
+ * The end time of the shift
589
+ */
590
+ end_time: string;
591
+ /**
592
+ * The start time of the shift
593
+ */
594
+ start_time: string;
595
+ /**
596
+ * The breaks of the shift
597
+ */
598
+ shift_breaks?: Array<ShiftData.ShiftBreak>;
599
+ /**
600
+ * The segments of the shift
601
+ */
602
+ shift_segments?: Array<ShiftData.ShiftSegment>;
603
+ }
604
+ namespace ShiftData {
605
+ interface ShiftBreak {
606
+ /**
607
+ * The duration of the shift break in minutes (input only for creation)
608
+ */
609
+ duration_minutes: number;
610
+ /**
611
+ * The start time of the shift break
612
+ */
613
+ start_time: string;
614
+ /**
615
+ * The type of the shift break
616
+ */
617
+ type: 'MEAL' | 'REST';
618
+ /**
619
+ * The end time of the shift break (calculated from start_time + duration_minutes)
620
+ */
621
+ end_time?: string;
622
+ }
623
+ interface ShiftSegment {
624
+ /**
625
+ * The duration of the shift segment in minutes (input only for creation)
626
+ */
627
+ duration_minutes: number;
628
+ /**
629
+ * The start time of the shift segment
630
+ */
631
+ start_time: string;
632
+ /**
633
+ * The end time of the shift segment (calculated from start_time +
634
+ * duration_minutes)
635
+ */
636
+ end_time?: string;
637
+ /**
638
+ * The IDs of the job codes associated with the shift segment
639
+ */
640
+ job_codes_id?: Array<string>;
641
+ }
642
+ }
643
+ /**
644
+ * The published version of the shift
645
+ */
646
+ interface PublishedVersion {
647
+ /**
648
+ * The end time of the shift
649
+ */
650
+ end_time: string;
651
+ /**
652
+ * The start time of the shift
653
+ */
654
+ start_time: string;
655
+ /**
656
+ * The breaks of the shift
657
+ */
658
+ shift_breaks?: Array<PublishedVersion.ShiftBreak>;
659
+ /**
660
+ * The segments of the shift
661
+ */
662
+ shift_segments?: Array<PublishedVersion.ShiftSegment>;
663
+ }
664
+ namespace PublishedVersion {
665
+ interface ShiftBreak {
666
+ /**
667
+ * The duration of the shift break in minutes (input only for creation)
668
+ */
669
+ duration_minutes: number;
670
+ /**
671
+ * The start time of the shift break
672
+ */
673
+ start_time: string;
674
+ /**
675
+ * The type of the shift break
676
+ */
677
+ type: 'MEAL' | 'REST';
678
+ /**
679
+ * The end time of the shift break (calculated from start_time + duration_minutes)
680
+ */
681
+ end_time?: string;
682
+ }
683
+ interface ShiftSegment {
684
+ /**
685
+ * The duration of the shift segment in minutes (input only for creation)
686
+ */
687
+ duration_minutes: number;
688
+ /**
689
+ * The start time of the shift segment
690
+ */
691
+ start_time: string;
692
+ /**
693
+ * The end time of the shift segment (calculated from start_time +
694
+ * duration_minutes)
695
+ */
696
+ end_time?: string;
697
+ /**
698
+ * The IDs of the job codes associated with the shift segment
699
+ */
700
+ job_codes_id?: Array<string>;
701
+ }
702
+ }
703
+ /**
704
+ * The schedule
705
+ *
706
+ * Expandable field
707
+ */
708
+ interface Schedule {
709
+ /**
710
+ * Identifier field
711
+ */
712
+ id: string;
713
+ /**
714
+ * Record creation date
715
+ */
716
+ created_at: string;
717
+ /**
718
+ * Record update date
719
+ */
720
+ updated_at: string;
721
+ /**
722
+ * Whether the requesting role can edit the schedule.
723
+ */
724
+ can_edit?: boolean;
725
+ /**
726
+ * The managers of the schedule.
727
+ *
728
+ * Expandable field
729
+ */
730
+ managers?: Array<WorkersAPI.Worker>;
731
+ /**
732
+ * The IDs of the managers of the schedule.
733
+ */
734
+ managers_id?: Array<string>;
735
+ /**
736
+ * The members of the schedule.
737
+ *
738
+ * Expandable field
739
+ */
740
+ members?: Array<WorkersAPI.Worker>;
741
+ /**
742
+ * The IDs of the members of the schedule.
743
+ */
744
+ members_id?: Array<string>;
745
+ /**
746
+ * The name of the schedule.
747
+ */
748
+ name?: string;
749
+ /**
750
+ * The observers of the schedule.
751
+ *
752
+ * Expandable field
753
+ */
754
+ observers?: Array<WorkersAPI.Worker>;
755
+ /**
756
+ * The IDs of the observers of the schedule.
757
+ */
758
+ observers_id?: Array<string>;
759
+ /**
760
+ * The settings of the schedule.
761
+ */
762
+ settings?: Schedule.Settings;
763
+ }
764
+ namespace Schedule {
765
+ /**
766
+ * The settings of the schedule.
767
+ */
768
+ interface Settings {
769
+ /**
770
+ * The IANA timezone identifier for the schedule (e.g., 'America/New_York').
771
+ * Accepted values are defined by the tz database, listed here:
772
+ * https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
773
+ */
774
+ timezone?: string;
775
+ }
776
+ }
777
+ }
778
+ export interface UnassignedshiftListParams {
779
+ cursor?: string;
780
+ expand?: string;
781
+ filter?: string;
782
+ order_by?: string;
783
+ }
784
+ export interface UnassignedshiftCreateParams {
785
+ /**
786
+ * Whether the shift is published
787
+ */
788
+ is_published: boolean;
789
+ /**
790
+ * The ID of the schedule
791
+ */
792
+ schedule_id: string;
793
+ /**
794
+ * The data of the shift
795
+ */
796
+ shift_data: UnassignedshiftCreateParams.ShiftData;
797
+ /**
798
+ * The target count of the shift
799
+ */
800
+ target_count: number;
801
+ /**
802
+ * Configuration for an open shift. If present, this is an open shift (workers can
803
+ * sign up). If absent/None, this is an empty shift (placeholder).
804
+ */
805
+ open_shift_config?: unknown;
806
+ }
807
+ export declare namespace UnassignedshiftCreateParams {
808
+ /**
809
+ * The data of the shift
810
+ */
811
+ interface ShiftData {
812
+ /**
813
+ * The end time of the shift
814
+ */
815
+ end_time: string;
816
+ /**
817
+ * The start time of the shift
818
+ */
819
+ start_time: string;
820
+ /**
821
+ * The breaks of the shift
822
+ */
823
+ shift_breaks?: Array<ShiftData.ShiftBreak>;
824
+ /**
825
+ * The segments of the shift
826
+ */
827
+ shift_segments?: Array<ShiftData.ShiftSegment>;
828
+ }
829
+ namespace ShiftData {
830
+ interface ShiftBreak {
831
+ /**
832
+ * The duration of the shift break in minutes (input only for creation)
833
+ */
834
+ duration_minutes: number;
835
+ /**
836
+ * The start time of the shift break
837
+ */
838
+ start_time: string;
839
+ /**
840
+ * The type of the shift break
841
+ */
842
+ type: 'MEAL' | 'REST';
843
+ }
844
+ interface ShiftSegment {
845
+ /**
846
+ * The duration of the shift segment in minutes (input only for creation)
847
+ */
848
+ duration_minutes: number;
849
+ /**
850
+ * The start time of the shift segment
851
+ */
852
+ start_time: string;
853
+ /**
854
+ * The IDs of the job codes associated with the shift segment
855
+ */
856
+ job_codes_id?: Array<string>;
857
+ }
858
+ }
859
+ }
860
+ export interface UnassignedshiftRetrieveParams {
861
+ expand?: string;
862
+ }
863
+ export declare namespace Unassignedshifts {
864
+ export { type UnassignedshiftListResponse as UnassignedshiftListResponse, type UnassignedshiftCreateResponse as UnassignedshiftCreateResponse, type UnassignedshiftRetrieveResponse as UnassignedshiftRetrieveResponse, type UnassignedshiftListResponsesPageCursorURL as UnassignedshiftListResponsesPageCursorURL, type UnassignedshiftListParams as UnassignedshiftListParams, type UnassignedshiftCreateParams as UnassignedshiftCreateParams, type UnassignedshiftRetrieveParams as UnassignedshiftRetrieveParams, };
865
+ }
866
+ //# sourceMappingURL=unassignedshifts.d.ts.map