@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,1067 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../core/resource';
4
+ import * as BusinessPartnersAPI from './business-partners';
5
+ import * as WorkersAPI from './workers';
6
+ import { APIPromise } from '../core/api-promise';
7
+ import { PageCursorURL, PagePromise } from '../core/pagination';
8
+ import { RequestOptions } from '../internal/request-options';
9
+ import { path } from '../internal/utils/path';
10
+
11
+ export class Unassignedshifts extends APIResource {
12
+ /**
13
+ * A List of unassigned shifts
14
+ *
15
+ * - Requires: `API Tier 2`
16
+ * - Filterable fields: `schedule_id`, `shift_data.start_time`,
17
+ * `shift_data.end_time`
18
+ * - Expandable fields: `schedule`
19
+ * - Sortable fields: `id`, `created_at`, `updated_at`
20
+ */
21
+ list(
22
+ query: UnassignedshiftListParams | null | undefined = {},
23
+ options?: RequestOptions,
24
+ ): PagePromise<UnassignedshiftListResponsesPageCursorURL, UnassignedshiftListResponse> {
25
+ return this._client.getAPIList('/unassignedshifts', PageCursorURL<UnassignedshiftListResponse>, {
26
+ query,
27
+ ...options,
28
+ });
29
+ }
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
+
41
+ /**
42
+ * Retrieve a specific unassigned shift
43
+ */
44
+ retrieve(
45
+ id: string,
46
+ query: UnassignedshiftRetrieveParams | null | undefined = {},
47
+ options?: RequestOptions,
48
+ ): APIPromise<UnassignedshiftRetrieveResponse> {
49
+ return this._client.get(path`/unassignedshifts/${id}`, { query, ...options });
50
+ }
51
+ }
52
+
53
+ export type UnassignedshiftListResponsesPageCursorURL = PageCursorURL<UnassignedshiftListResponse>;
54
+
55
+ export interface UnassignedshiftListResponse {
56
+ /**
57
+ * Identifier field
58
+ */
59
+ id: string;
60
+
61
+ /**
62
+ * Record creation date
63
+ */
64
+ created_at: string;
65
+
66
+ /**
67
+ * Whether the shift is published
68
+ */
69
+ is_published: boolean;
70
+
71
+ /**
72
+ * The ID of the schedule
73
+ */
74
+ schedule_id: string;
75
+
76
+ /**
77
+ * The data of the shift
78
+ */
79
+ shift_data: UnassignedshiftListResponse.ShiftData;
80
+
81
+ /**
82
+ * The target count of the shift
83
+ */
84
+ target_count: number;
85
+
86
+ /**
87
+ * Record update date
88
+ */
89
+ updated_at: string;
90
+
91
+ /**
92
+ * The number of assigned shifts
93
+ */
94
+ assigned_count?: number;
95
+
96
+ /**
97
+ * The IDs of the assigned shifts that are part of this unassigned shift
98
+ */
99
+ assigned_shift_ids?: Array<string>;
100
+
101
+ /**
102
+ * Configuration for an open shift. If present, this is an open shift (workers can
103
+ * sign up). If absent/None, this is an empty shift (placeholder).
104
+ */
105
+ open_shift_config?: unknown;
106
+
107
+ /**
108
+ * The published version of the shift
109
+ */
110
+ published_version?: UnassignedshiftListResponse.PublishedVersion;
111
+
112
+ /**
113
+ * The schedule
114
+ *
115
+ * Expandable field
116
+ */
117
+ schedule?: UnassignedshiftListResponse.Schedule;
118
+ }
119
+
120
+ export namespace UnassignedshiftListResponse {
121
+ /**
122
+ * The data of the shift
123
+ */
124
+ export interface ShiftData {
125
+ /**
126
+ * The end time of the shift
127
+ */
128
+ end_time: string;
129
+
130
+ /**
131
+ * The start time of the shift
132
+ */
133
+ start_time: string;
134
+
135
+ /**
136
+ * The breaks of the shift
137
+ */
138
+ shift_breaks?: Array<ShiftData.ShiftBreak>;
139
+
140
+ /**
141
+ * The segments of the shift
142
+ */
143
+ shift_segments?: Array<ShiftData.ShiftSegment>;
144
+ }
145
+
146
+ export namespace ShiftData {
147
+ export interface ShiftBreak {
148
+ /**
149
+ * The duration of the shift break in minutes (input only for creation)
150
+ */
151
+ duration_minutes: number;
152
+
153
+ /**
154
+ * The start time of the shift break
155
+ */
156
+ start_time: string;
157
+
158
+ /**
159
+ * The type of the shift break
160
+ */
161
+ type: 'MEAL' | 'REST';
162
+
163
+ /**
164
+ * The end time of the shift break (calculated from start_time + duration_minutes)
165
+ */
166
+ end_time?: string;
167
+ }
168
+
169
+ export interface ShiftSegment {
170
+ /**
171
+ * The duration of the shift segment in minutes (input only for creation)
172
+ */
173
+ duration_minutes: number;
174
+
175
+ /**
176
+ * The start time of the shift segment
177
+ */
178
+ start_time: string;
179
+
180
+ /**
181
+ * The end time of the shift segment (calculated from start_time +
182
+ * duration_minutes)
183
+ */
184
+ end_time?: string;
185
+
186
+ /**
187
+ * The IDs of the job codes associated with the shift segment
188
+ */
189
+ job_codes_id?: Array<string>;
190
+ }
191
+ }
192
+
193
+ /**
194
+ * The published version of the shift
195
+ */
196
+ export interface PublishedVersion {
197
+ /**
198
+ * The end time of the shift
199
+ */
200
+ end_time: string;
201
+
202
+ /**
203
+ * The start time of the shift
204
+ */
205
+ start_time: string;
206
+
207
+ /**
208
+ * The breaks of the shift
209
+ */
210
+ shift_breaks?: Array<PublishedVersion.ShiftBreak>;
211
+
212
+ /**
213
+ * The segments of the shift
214
+ */
215
+ shift_segments?: Array<PublishedVersion.ShiftSegment>;
216
+ }
217
+
218
+ export namespace PublishedVersion {
219
+ export interface ShiftBreak {
220
+ /**
221
+ * The duration of the shift break in minutes (input only for creation)
222
+ */
223
+ duration_minutes: number;
224
+
225
+ /**
226
+ * The start time of the shift break
227
+ */
228
+ start_time: string;
229
+
230
+ /**
231
+ * The type of the shift break
232
+ */
233
+ type: 'MEAL' | 'REST';
234
+
235
+ /**
236
+ * The end time of the shift break (calculated from start_time + duration_minutes)
237
+ */
238
+ end_time?: string;
239
+ }
240
+
241
+ export interface ShiftSegment {
242
+ /**
243
+ * The duration of the shift segment in minutes (input only for creation)
244
+ */
245
+ duration_minutes: number;
246
+
247
+ /**
248
+ * The start time of the shift segment
249
+ */
250
+ start_time: string;
251
+
252
+ /**
253
+ * The end time of the shift segment (calculated from start_time +
254
+ * duration_minutes)
255
+ */
256
+ end_time?: string;
257
+
258
+ /**
259
+ * The IDs of the job codes associated with the shift segment
260
+ */
261
+ job_codes_id?: Array<string>;
262
+ }
263
+ }
264
+
265
+ /**
266
+ * The schedule
267
+ *
268
+ * Expandable field
269
+ */
270
+ export interface Schedule {
271
+ /**
272
+ * Identifier field
273
+ */
274
+ id: string;
275
+
276
+ /**
277
+ * Record creation date
278
+ */
279
+ created_at: string;
280
+
281
+ /**
282
+ * Record update date
283
+ */
284
+ updated_at: string;
285
+
286
+ /**
287
+ * Whether the requesting role can edit the schedule.
288
+ */
289
+ can_edit?: boolean;
290
+
291
+ /**
292
+ * The managers of the schedule.
293
+ *
294
+ * Expandable field
295
+ */
296
+ managers?: Array<WorkersAPI.Worker>;
297
+
298
+ /**
299
+ * The IDs of the managers of the schedule.
300
+ */
301
+ managers_id?: Array<string>;
302
+
303
+ /**
304
+ * The members of the schedule.
305
+ *
306
+ * Expandable field
307
+ */
308
+ members?: Array<WorkersAPI.Worker>;
309
+
310
+ /**
311
+ * The IDs of the members of the schedule.
312
+ */
313
+ members_id?: Array<string>;
314
+
315
+ /**
316
+ * The name of the schedule.
317
+ */
318
+ name?: string;
319
+
320
+ /**
321
+ * The observers of the schedule.
322
+ *
323
+ * Expandable field
324
+ */
325
+ observers?: Array<WorkersAPI.Worker>;
326
+
327
+ /**
328
+ * The IDs of the observers of the schedule.
329
+ */
330
+ observers_id?: Array<string>;
331
+
332
+ /**
333
+ * The settings of the schedule.
334
+ */
335
+ settings?: Schedule.Settings;
336
+ }
337
+
338
+ export namespace Schedule {
339
+ /**
340
+ * The settings of the schedule.
341
+ */
342
+ export interface Settings {
343
+ /**
344
+ * The IANA timezone identifier for the schedule (e.g., 'America/New_York').
345
+ * Accepted values are defined by the tz database, listed here:
346
+ * https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
347
+ */
348
+ timezone?: string;
349
+ }
350
+ }
351
+ }
352
+
353
+ export interface UnassignedshiftCreateResponse {
354
+ /**
355
+ * Identifier field
356
+ */
357
+ id: string;
358
+
359
+ /**
360
+ * Record creation date
361
+ */
362
+ created_at: string;
363
+
364
+ /**
365
+ * Whether the shift is published
366
+ */
367
+ is_published: boolean;
368
+
369
+ /**
370
+ * The ID of the schedule
371
+ */
372
+ schedule_id: string;
373
+
374
+ /**
375
+ * The data of the shift
376
+ */
377
+ shift_data: UnassignedshiftCreateResponse.ShiftData;
378
+
379
+ /**
380
+ * The target count of the shift
381
+ */
382
+ target_count: number;
383
+
384
+ /**
385
+ * Record update date
386
+ */
387
+ updated_at: string;
388
+
389
+ /**
390
+ * The number of assigned shifts
391
+ */
392
+ assigned_count?: number;
393
+
394
+ /**
395
+ * The IDs of the assigned shifts that are part of this unassigned shift
396
+ */
397
+ assigned_shift_ids?: Array<string>;
398
+
399
+ /**
400
+ * Configuration for an open shift. If present, this is an open shift (workers can
401
+ * sign up). If absent/None, this is an empty shift (placeholder).
402
+ */
403
+ open_shift_config?: unknown;
404
+
405
+ /**
406
+ * The published version of the shift
407
+ */
408
+ published_version?: UnassignedshiftCreateResponse.PublishedVersion;
409
+
410
+ /**
411
+ * The schedule
412
+ *
413
+ * Expandable field
414
+ */
415
+ schedule?: UnassignedshiftCreateResponse.Schedule;
416
+ }
417
+
418
+ export namespace UnassignedshiftCreateResponse {
419
+ /**
420
+ * The data of the shift
421
+ */
422
+ export interface ShiftData {
423
+ /**
424
+ * The end time of the shift
425
+ */
426
+ end_time: string;
427
+
428
+ /**
429
+ * The start time of the shift
430
+ */
431
+ start_time: string;
432
+
433
+ /**
434
+ * The breaks of the shift
435
+ */
436
+ shift_breaks?: Array<ShiftData.ShiftBreak>;
437
+
438
+ /**
439
+ * The segments of the shift
440
+ */
441
+ shift_segments?: Array<ShiftData.ShiftSegment>;
442
+ }
443
+
444
+ export namespace ShiftData {
445
+ export interface ShiftBreak {
446
+ /**
447
+ * The duration of the shift break in minutes (input only for creation)
448
+ */
449
+ duration_minutes: number;
450
+
451
+ /**
452
+ * The start time of the shift break
453
+ */
454
+ start_time: string;
455
+
456
+ /**
457
+ * The type of the shift break
458
+ */
459
+ type: 'MEAL' | 'REST';
460
+
461
+ /**
462
+ * The end time of the shift break (calculated from start_time + duration_minutes)
463
+ */
464
+ end_time?: string;
465
+ }
466
+
467
+ export interface ShiftSegment {
468
+ /**
469
+ * The duration of the shift segment in minutes (input only for creation)
470
+ */
471
+ duration_minutes: number;
472
+
473
+ /**
474
+ * The start time of the shift segment
475
+ */
476
+ start_time: string;
477
+
478
+ /**
479
+ * The end time of the shift segment (calculated from start_time +
480
+ * duration_minutes)
481
+ */
482
+ end_time?: string;
483
+
484
+ /**
485
+ * The IDs of the job codes associated with the shift segment
486
+ */
487
+ job_codes_id?: Array<string>;
488
+ }
489
+ }
490
+
491
+ /**
492
+ * The published version of the shift
493
+ */
494
+ export interface PublishedVersion {
495
+ /**
496
+ * The end time of the shift
497
+ */
498
+ end_time: string;
499
+
500
+ /**
501
+ * The start time of the shift
502
+ */
503
+ start_time: string;
504
+
505
+ /**
506
+ * The breaks of the shift
507
+ */
508
+ shift_breaks?: Array<PublishedVersion.ShiftBreak>;
509
+
510
+ /**
511
+ * The segments of the shift
512
+ */
513
+ shift_segments?: Array<PublishedVersion.ShiftSegment>;
514
+ }
515
+
516
+ export namespace PublishedVersion {
517
+ export interface ShiftBreak {
518
+ /**
519
+ * The duration of the shift break in minutes (input only for creation)
520
+ */
521
+ duration_minutes: number;
522
+
523
+ /**
524
+ * The start time of the shift break
525
+ */
526
+ start_time: string;
527
+
528
+ /**
529
+ * The type of the shift break
530
+ */
531
+ type: 'MEAL' | 'REST';
532
+
533
+ /**
534
+ * The end time of the shift break (calculated from start_time + duration_minutes)
535
+ */
536
+ end_time?: string;
537
+ }
538
+
539
+ export interface ShiftSegment {
540
+ /**
541
+ * The duration of the shift segment in minutes (input only for creation)
542
+ */
543
+ duration_minutes: number;
544
+
545
+ /**
546
+ * The start time of the shift segment
547
+ */
548
+ start_time: string;
549
+
550
+ /**
551
+ * The end time of the shift segment (calculated from start_time +
552
+ * duration_minutes)
553
+ */
554
+ end_time?: string;
555
+
556
+ /**
557
+ * The IDs of the job codes associated with the shift segment
558
+ */
559
+ job_codes_id?: Array<string>;
560
+ }
561
+ }
562
+
563
+ /**
564
+ * The schedule
565
+ *
566
+ * Expandable field
567
+ */
568
+ export interface Schedule {
569
+ /**
570
+ * Identifier field
571
+ */
572
+ id: string;
573
+
574
+ /**
575
+ * Record creation date
576
+ */
577
+ created_at: string;
578
+
579
+ /**
580
+ * Record update date
581
+ */
582
+ updated_at: string;
583
+
584
+ /**
585
+ * Whether the requesting role can edit the schedule.
586
+ */
587
+ can_edit?: boolean;
588
+
589
+ /**
590
+ * The managers of the schedule.
591
+ *
592
+ * Expandable field
593
+ */
594
+ managers?: Array<WorkersAPI.Worker>;
595
+
596
+ /**
597
+ * The IDs of the managers of the schedule.
598
+ */
599
+ managers_id?: Array<string>;
600
+
601
+ /**
602
+ * The members of the schedule.
603
+ *
604
+ * Expandable field
605
+ */
606
+ members?: Array<WorkersAPI.Worker>;
607
+
608
+ /**
609
+ * The IDs of the members of the schedule.
610
+ */
611
+ members_id?: Array<string>;
612
+
613
+ /**
614
+ * The name of the schedule.
615
+ */
616
+ name?: string;
617
+
618
+ /**
619
+ * The observers of the schedule.
620
+ *
621
+ * Expandable field
622
+ */
623
+ observers?: Array<WorkersAPI.Worker>;
624
+
625
+ /**
626
+ * The IDs of the observers of the schedule.
627
+ */
628
+ observers_id?: Array<string>;
629
+
630
+ /**
631
+ * The settings of the schedule.
632
+ */
633
+ settings?: Schedule.Settings;
634
+ }
635
+
636
+ export namespace Schedule {
637
+ /**
638
+ * The settings of the schedule.
639
+ */
640
+ export interface Settings {
641
+ /**
642
+ * The IANA timezone identifier for the schedule (e.g., 'America/New_York').
643
+ * Accepted values are defined by the tz database, listed here:
644
+ * https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
645
+ */
646
+ timezone?: string;
647
+ }
648
+ }
649
+ }
650
+
651
+ /**
652
+ * Meta information for the response.
653
+ */
654
+ export interface UnassignedshiftRetrieveResponse extends BusinessPartnersAPI.Meta {
655
+ /**
656
+ * Identifier field
657
+ */
658
+ id: string;
659
+
660
+ /**
661
+ * Record creation date
662
+ */
663
+ created_at: string;
664
+
665
+ /**
666
+ * Whether the shift is published
667
+ */
668
+ is_published: boolean;
669
+
670
+ /**
671
+ * The ID of the schedule
672
+ */
673
+ schedule_id: string;
674
+
675
+ /**
676
+ * The data of the shift
677
+ */
678
+ shift_data: UnassignedshiftRetrieveResponse.ShiftData;
679
+
680
+ /**
681
+ * The target count of the shift
682
+ */
683
+ target_count: number;
684
+
685
+ /**
686
+ * Record update date
687
+ */
688
+ updated_at: string;
689
+
690
+ /**
691
+ * The number of assigned shifts
692
+ */
693
+ assigned_count?: number;
694
+
695
+ /**
696
+ * The IDs of the assigned shifts that are part of this unassigned shift
697
+ */
698
+ assigned_shift_ids?: Array<string>;
699
+
700
+ /**
701
+ * Configuration for an open shift. If present, this is an open shift (workers can
702
+ * sign up). If absent/None, this is an empty shift (placeholder).
703
+ */
704
+ open_shift_config?: unknown;
705
+
706
+ /**
707
+ * The published version of the shift
708
+ */
709
+ published_version?: UnassignedshiftRetrieveResponse.PublishedVersion;
710
+
711
+ /**
712
+ * The schedule
713
+ *
714
+ * Expandable field
715
+ */
716
+ schedule?: UnassignedshiftRetrieveResponse.Schedule;
717
+ }
718
+
719
+ export namespace UnassignedshiftRetrieveResponse {
720
+ /**
721
+ * The data of the shift
722
+ */
723
+ export interface ShiftData {
724
+ /**
725
+ * The end time of the shift
726
+ */
727
+ end_time: string;
728
+
729
+ /**
730
+ * The start time of the shift
731
+ */
732
+ start_time: string;
733
+
734
+ /**
735
+ * The breaks of the shift
736
+ */
737
+ shift_breaks?: Array<ShiftData.ShiftBreak>;
738
+
739
+ /**
740
+ * The segments of the shift
741
+ */
742
+ shift_segments?: Array<ShiftData.ShiftSegment>;
743
+ }
744
+
745
+ export namespace ShiftData {
746
+ export interface ShiftBreak {
747
+ /**
748
+ * The duration of the shift break in minutes (input only for creation)
749
+ */
750
+ duration_minutes: number;
751
+
752
+ /**
753
+ * The start time of the shift break
754
+ */
755
+ start_time: string;
756
+
757
+ /**
758
+ * The type of the shift break
759
+ */
760
+ type: 'MEAL' | 'REST';
761
+
762
+ /**
763
+ * The end time of the shift break (calculated from start_time + duration_minutes)
764
+ */
765
+ end_time?: string;
766
+ }
767
+
768
+ export interface ShiftSegment {
769
+ /**
770
+ * The duration of the shift segment in minutes (input only for creation)
771
+ */
772
+ duration_minutes: number;
773
+
774
+ /**
775
+ * The start time of the shift segment
776
+ */
777
+ start_time: string;
778
+
779
+ /**
780
+ * The end time of the shift segment (calculated from start_time +
781
+ * duration_minutes)
782
+ */
783
+ end_time?: string;
784
+
785
+ /**
786
+ * The IDs of the job codes associated with the shift segment
787
+ */
788
+ job_codes_id?: Array<string>;
789
+ }
790
+ }
791
+
792
+ /**
793
+ * The published version of the shift
794
+ */
795
+ export interface PublishedVersion {
796
+ /**
797
+ * The end time of the shift
798
+ */
799
+ end_time: string;
800
+
801
+ /**
802
+ * The start time of the shift
803
+ */
804
+ start_time: string;
805
+
806
+ /**
807
+ * The breaks of the shift
808
+ */
809
+ shift_breaks?: Array<PublishedVersion.ShiftBreak>;
810
+
811
+ /**
812
+ * The segments of the shift
813
+ */
814
+ shift_segments?: Array<PublishedVersion.ShiftSegment>;
815
+ }
816
+
817
+ export namespace PublishedVersion {
818
+ export interface ShiftBreak {
819
+ /**
820
+ * The duration of the shift break in minutes (input only for creation)
821
+ */
822
+ duration_minutes: number;
823
+
824
+ /**
825
+ * The start time of the shift break
826
+ */
827
+ start_time: string;
828
+
829
+ /**
830
+ * The type of the shift break
831
+ */
832
+ type: 'MEAL' | 'REST';
833
+
834
+ /**
835
+ * The end time of the shift break (calculated from start_time + duration_minutes)
836
+ */
837
+ end_time?: string;
838
+ }
839
+
840
+ export interface ShiftSegment {
841
+ /**
842
+ * The duration of the shift segment in minutes (input only for creation)
843
+ */
844
+ duration_minutes: number;
845
+
846
+ /**
847
+ * The start time of the shift segment
848
+ */
849
+ start_time: string;
850
+
851
+ /**
852
+ * The end time of the shift segment (calculated from start_time +
853
+ * duration_minutes)
854
+ */
855
+ end_time?: string;
856
+
857
+ /**
858
+ * The IDs of the job codes associated with the shift segment
859
+ */
860
+ job_codes_id?: Array<string>;
861
+ }
862
+ }
863
+
864
+ /**
865
+ * The schedule
866
+ *
867
+ * Expandable field
868
+ */
869
+ export interface Schedule {
870
+ /**
871
+ * Identifier field
872
+ */
873
+ id: string;
874
+
875
+ /**
876
+ * Record creation date
877
+ */
878
+ created_at: string;
879
+
880
+ /**
881
+ * Record update date
882
+ */
883
+ updated_at: string;
884
+
885
+ /**
886
+ * Whether the requesting role can edit the schedule.
887
+ */
888
+ can_edit?: boolean;
889
+
890
+ /**
891
+ * The managers of the schedule.
892
+ *
893
+ * Expandable field
894
+ */
895
+ managers?: Array<WorkersAPI.Worker>;
896
+
897
+ /**
898
+ * The IDs of the managers of the schedule.
899
+ */
900
+ managers_id?: Array<string>;
901
+
902
+ /**
903
+ * The members of the schedule.
904
+ *
905
+ * Expandable field
906
+ */
907
+ members?: Array<WorkersAPI.Worker>;
908
+
909
+ /**
910
+ * The IDs of the members of the schedule.
911
+ */
912
+ members_id?: Array<string>;
913
+
914
+ /**
915
+ * The name of the schedule.
916
+ */
917
+ name?: string;
918
+
919
+ /**
920
+ * The observers of the schedule.
921
+ *
922
+ * Expandable field
923
+ */
924
+ observers?: Array<WorkersAPI.Worker>;
925
+
926
+ /**
927
+ * The IDs of the observers of the schedule.
928
+ */
929
+ observers_id?: Array<string>;
930
+
931
+ /**
932
+ * The settings of the schedule.
933
+ */
934
+ settings?: Schedule.Settings;
935
+ }
936
+
937
+ export namespace Schedule {
938
+ /**
939
+ * The settings of the schedule.
940
+ */
941
+ export interface Settings {
942
+ /**
943
+ * The IANA timezone identifier for the schedule (e.g., 'America/New_York').
944
+ * Accepted values are defined by the tz database, listed here:
945
+ * https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
946
+ */
947
+ timezone?: string;
948
+ }
949
+ }
950
+ }
951
+
952
+ export interface UnassignedshiftListParams {
953
+ cursor?: string;
954
+
955
+ expand?: string;
956
+
957
+ filter?: string;
958
+
959
+ order_by?: string;
960
+ }
961
+
962
+ export interface UnassignedshiftCreateParams {
963
+ /**
964
+ * Whether the shift is published
965
+ */
966
+ is_published: boolean;
967
+
968
+ /**
969
+ * The ID of the schedule
970
+ */
971
+ schedule_id: string;
972
+
973
+ /**
974
+ * The data of the shift
975
+ */
976
+ shift_data: UnassignedshiftCreateParams.ShiftData;
977
+
978
+ /**
979
+ * The target count of the shift
980
+ */
981
+ target_count: number;
982
+
983
+ /**
984
+ * Configuration for an open shift. If present, this is an open shift (workers can
985
+ * sign up). If absent/None, this is an empty shift (placeholder).
986
+ */
987
+ open_shift_config?: unknown;
988
+ }
989
+
990
+ export namespace UnassignedshiftCreateParams {
991
+ /**
992
+ * The data of the shift
993
+ */
994
+ export interface ShiftData {
995
+ /**
996
+ * The end time of the shift
997
+ */
998
+ end_time: string;
999
+
1000
+ /**
1001
+ * The start time of the shift
1002
+ */
1003
+ start_time: string;
1004
+
1005
+ /**
1006
+ * The breaks of the shift
1007
+ */
1008
+ shift_breaks?: Array<ShiftData.ShiftBreak>;
1009
+
1010
+ /**
1011
+ * The segments of the shift
1012
+ */
1013
+ shift_segments?: Array<ShiftData.ShiftSegment>;
1014
+ }
1015
+
1016
+ export namespace ShiftData {
1017
+ export interface ShiftBreak {
1018
+ /**
1019
+ * The duration of the shift break in minutes (input only for creation)
1020
+ */
1021
+ duration_minutes: number;
1022
+
1023
+ /**
1024
+ * The start time of the shift break
1025
+ */
1026
+ start_time: string;
1027
+
1028
+ /**
1029
+ * The type of the shift break
1030
+ */
1031
+ type: 'MEAL' | 'REST';
1032
+ }
1033
+
1034
+ export interface ShiftSegment {
1035
+ /**
1036
+ * The duration of the shift segment in minutes (input only for creation)
1037
+ */
1038
+ duration_minutes: number;
1039
+
1040
+ /**
1041
+ * The start time of the shift segment
1042
+ */
1043
+ start_time: string;
1044
+
1045
+ /**
1046
+ * The IDs of the job codes associated with the shift segment
1047
+ */
1048
+ job_codes_id?: Array<string>;
1049
+ }
1050
+ }
1051
+ }
1052
+
1053
+ export interface UnassignedshiftRetrieveParams {
1054
+ expand?: string;
1055
+ }
1056
+
1057
+ export declare namespace Unassignedshifts {
1058
+ export {
1059
+ type UnassignedshiftListResponse as UnassignedshiftListResponse,
1060
+ type UnassignedshiftCreateResponse as UnassignedshiftCreateResponse,
1061
+ type UnassignedshiftRetrieveResponse as UnassignedshiftRetrieveResponse,
1062
+ type UnassignedshiftListResponsesPageCursorURL as UnassignedshiftListResponsesPageCursorURL,
1063
+ type UnassignedshiftListParams as UnassignedshiftListParams,
1064
+ type UnassignedshiftCreateParams as UnassignedshiftCreateParams,
1065
+ type UnassignedshiftRetrieveParams as UnassignedshiftRetrieveParams,
1066
+ };
1067
+ }