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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (226) hide show
  1. package/client.d.mts +7 -4
  2. package/client.d.mts.map +1 -1
  3. package/client.d.ts +7 -4
  4. package/client.d.ts.map +1 -1
  5. package/client.js +4 -0
  6. package/client.js.map +1 -1
  7. package/client.mjs +4 -0
  8. package/client.mjs.map +1 -1
  9. package/internal/to-file.d.mts +1 -1
  10. package/internal/to-file.d.ts +1 -1
  11. package/internal/to-file.js +1 -1
  12. package/internal/to-file.mjs +1 -1
  13. package/package.json +1 -1
  14. package/resources/business-partner-groups.d.mts +1 -0
  15. package/resources/business-partner-groups.d.mts.map +1 -1
  16. package/resources/business-partner-groups.d.ts +1 -0
  17. package/resources/business-partner-groups.d.ts.map +1 -1
  18. package/resources/business-partners.d.mts +1 -0
  19. package/resources/business-partners.d.mts.map +1 -1
  20. package/resources/business-partners.d.ts +1 -0
  21. package/resources/business-partners.d.ts.map +1 -1
  22. package/resources/candidate-applications.d.mts +1 -0
  23. package/resources/candidate-applications.d.mts.map +1 -1
  24. package/resources/candidate-applications.d.ts +1 -0
  25. package/resources/candidate-applications.d.ts.map +1 -1
  26. package/resources/candidates.d.mts +1 -0
  27. package/resources/candidates.d.mts.map +1 -1
  28. package/resources/candidates.d.ts +1 -0
  29. package/resources/candidates.d.ts.map +1 -1
  30. package/resources/companies.d.mts +1 -0
  31. package/resources/companies.d.mts.map +1 -1
  32. package/resources/companies.d.ts +1 -0
  33. package/resources/companies.d.ts.map +1 -1
  34. package/resources/compensations.d.mts +1 -0
  35. package/resources/compensations.d.mts.map +1 -1
  36. package/resources/compensations.d.ts +1 -0
  37. package/resources/compensations.d.ts.map +1 -1
  38. package/resources/custom-fields.d.mts +1 -0
  39. package/resources/custom-fields.d.mts.map +1 -1
  40. package/resources/custom-fields.d.ts +1 -0
  41. package/resources/custom-fields.d.ts.map +1 -1
  42. package/resources/departments.d.mts +1 -0
  43. package/resources/departments.d.mts.map +1 -1
  44. package/resources/departments.d.ts +1 -0
  45. package/resources/departments.d.ts.map +1 -1
  46. package/resources/draft-hires.d.mts +4 -16
  47. package/resources/draft-hires.d.mts.map +1 -1
  48. package/resources/draft-hires.d.ts +4 -16
  49. package/resources/draft-hires.d.ts.map +1 -1
  50. package/resources/employment-types.d.mts +1 -0
  51. package/resources/employment-types.d.mts.map +1 -1
  52. package/resources/employment-types.d.ts +1 -0
  53. package/resources/employment-types.d.ts.map +1 -1
  54. package/resources/headcount-positions.d.mts +1 -0
  55. package/resources/headcount-positions.d.mts.map +1 -1
  56. package/resources/headcount-positions.d.ts +1 -0
  57. package/resources/headcount-positions.d.ts.map +1 -1
  58. package/resources/headcount-priorities.d.mts +1 -0
  59. package/resources/headcount-priorities.d.mts.map +1 -1
  60. package/resources/headcount-priorities.d.ts +1 -0
  61. package/resources/headcount-priorities.d.ts.map +1 -1
  62. package/resources/index.d.mts +3 -2
  63. package/resources/index.d.mts.map +1 -1
  64. package/resources/index.d.ts +3 -2
  65. package/resources/index.d.ts.map +1 -1
  66. package/resources/index.js +3 -1
  67. package/resources/index.js.map +1 -1
  68. package/resources/index.mjs +1 -0
  69. package/resources/index.mjs.map +1 -1
  70. package/resources/job-assignments.d.mts +2 -0
  71. package/resources/job-assignments.d.mts.map +1 -1
  72. package/resources/job-assignments.d.ts +2 -0
  73. package/resources/job-assignments.d.ts.map +1 -1
  74. package/resources/job-codes.d.mts +2 -0
  75. package/resources/job-codes.d.mts.map +1 -1
  76. package/resources/job-codes.d.ts +2 -0
  77. package/resources/job-codes.d.ts.map +1 -1
  78. package/resources/job-dimensions.d.mts +1 -0
  79. package/resources/job-dimensions.d.mts.map +1 -1
  80. package/resources/job-dimensions.d.ts +1 -0
  81. package/resources/job-dimensions.d.ts.map +1 -1
  82. package/resources/job-functions.d.mts +1 -0
  83. package/resources/job-functions.d.mts.map +1 -1
  84. package/resources/job-functions.d.ts +1 -0
  85. package/resources/job-functions.d.ts.map +1 -1
  86. package/resources/job-pay-rate-exceptions.d.mts +2 -0
  87. package/resources/job-pay-rate-exceptions.d.mts.map +1 -1
  88. package/resources/job-pay-rate-exceptions.d.ts +2 -0
  89. package/resources/job-pay-rate-exceptions.d.ts.map +1 -1
  90. package/resources/job-requisitions.d.mts +1 -0
  91. package/resources/job-requisitions.d.mts.map +1 -1
  92. package/resources/job-requisitions.d.ts +1 -0
  93. package/resources/job-requisitions.d.ts.map +1 -1
  94. package/resources/kiosk-badges.d.mts +1 -0
  95. package/resources/kiosk-badges.d.mts.map +1 -1
  96. package/resources/kiosk-badges.d.ts +1 -0
  97. package/resources/kiosk-badges.d.ts.map +1 -1
  98. package/resources/leave-balances.d.mts +1 -0
  99. package/resources/leave-balances.d.mts.map +1 -1
  100. package/resources/leave-balances.d.ts +1 -0
  101. package/resources/leave-balances.d.ts.map +1 -1
  102. package/resources/leave-requests.d.mts +1 -0
  103. package/resources/leave-requests.d.mts.map +1 -1
  104. package/resources/leave-requests.d.ts +1 -0
  105. package/resources/leave-requests.d.ts.map +1 -1
  106. package/resources/leave-types.d.mts +1 -0
  107. package/resources/leave-types.d.mts.map +1 -1
  108. package/resources/leave-types.d.ts +1 -0
  109. package/resources/leave-types.d.ts.map +1 -1
  110. package/resources/legal-entities.d.mts +1 -0
  111. package/resources/legal-entities.d.mts.map +1 -1
  112. package/resources/legal-entities.d.ts +1 -0
  113. package/resources/legal-entities.d.ts.map +1 -1
  114. package/resources/levels.d.mts +1 -0
  115. package/resources/levels.d.mts.map +1 -1
  116. package/resources/levels.d.ts +1 -0
  117. package/resources/levels.d.ts.map +1 -1
  118. package/resources/location-factors.d.mts +1 -0
  119. package/resources/location-factors.d.mts.map +1 -1
  120. package/resources/location-factors.d.ts +1 -0
  121. package/resources/location-factors.d.ts.map +1 -1
  122. package/resources/schedules.d.mts +252 -1
  123. package/resources/schedules.d.mts.map +1 -1
  124. package/resources/schedules.d.ts +252 -1
  125. package/resources/schedules.d.ts.map +1 -1
  126. package/resources/schedules.js +12 -0
  127. package/resources/schedules.js.map +1 -1
  128. package/resources/schedules.mjs +12 -0
  129. package/resources/schedules.mjs.map +1 -1
  130. package/resources/shift-inputs.d.mts +1 -0
  131. package/resources/shift-inputs.d.mts.map +1 -1
  132. package/resources/shift-inputs.d.ts +1 -0
  133. package/resources/shift-inputs.d.ts.map +1 -1
  134. package/resources/shiftassignments.d.mts +874 -153
  135. package/resources/shiftassignments.d.mts.map +1 -1
  136. package/resources/shiftassignments.d.ts +874 -153
  137. package/resources/shiftassignments.d.ts.map +1 -1
  138. package/resources/shiftassignments.js +12 -0
  139. package/resources/shiftassignments.js.map +1 -1
  140. package/resources/shiftassignments.mjs +12 -0
  141. package/resources/shiftassignments.mjs.map +1 -1
  142. package/resources/sso-me.d.mts +1 -0
  143. package/resources/sso-me.d.mts.map +1 -1
  144. package/resources/sso-me.d.ts +1 -0
  145. package/resources/sso-me.d.ts.map +1 -1
  146. package/resources/teams.d.mts +1 -0
  147. package/resources/teams.d.mts.map +1 -1
  148. package/resources/teams.d.ts +1 -0
  149. package/resources/teams.d.ts.map +1 -1
  150. package/resources/time-cards.d.mts +1 -0
  151. package/resources/time-cards.d.mts.map +1 -1
  152. package/resources/time-cards.d.ts +1 -0
  153. package/resources/time-cards.d.ts.map +1 -1
  154. package/resources/time-entries.d.mts +1 -0
  155. package/resources/time-entries.d.mts.map +1 -1
  156. package/resources/time-entries.d.ts +1 -0
  157. package/resources/time-entries.d.ts.map +1 -1
  158. package/resources/tracks.d.mts +1 -0
  159. package/resources/tracks.d.mts.map +1 -1
  160. package/resources/tracks.d.ts +1 -0
  161. package/resources/tracks.d.ts.map +1 -1
  162. package/resources/unassignedshifts.d.mts +535 -0
  163. package/resources/unassignedshifts.d.mts.map +1 -0
  164. package/resources/unassignedshifts.d.ts +535 -0
  165. package/resources/unassignedshifts.d.ts.map +1 -0
  166. package/resources/unassignedshifts.js +32 -0
  167. package/resources/unassignedshifts.js.map +1 -0
  168. package/resources/unassignedshifts.mjs +28 -0
  169. package/resources/unassignedshifts.mjs.map +1 -0
  170. package/resources/users.d.mts +1 -0
  171. package/resources/users.d.mts.map +1 -1
  172. package/resources/users.d.ts +1 -0
  173. package/resources/users.d.ts.map +1 -1
  174. package/resources/work-locations.d.mts +1 -0
  175. package/resources/work-locations.d.mts.map +1 -1
  176. package/resources/work-locations.d.ts +1 -0
  177. package/resources/work-locations.d.ts.map +1 -1
  178. package/resources/workers.d.mts +2 -1
  179. package/resources/workers.d.mts.map +1 -1
  180. package/resources/workers.d.ts +2 -1
  181. package/resources/workers.d.ts.map +1 -1
  182. package/src/client.ts +36 -0
  183. package/src/internal/to-file.ts +1 -1
  184. package/src/resources/business-partner-groups.ts +2 -0
  185. package/src/resources/business-partners.ts +2 -0
  186. package/src/resources/candidate-applications.ts +2 -0
  187. package/src/resources/candidates.ts +2 -0
  188. package/src/resources/companies.ts +2 -0
  189. package/src/resources/compensations.ts +2 -0
  190. package/src/resources/custom-fields.ts +2 -0
  191. package/src/resources/departments.ts +2 -0
  192. package/src/resources/draft-hires.ts +5 -20
  193. package/src/resources/employment-types.ts +2 -0
  194. package/src/resources/headcount-positions.ts +2 -0
  195. package/src/resources/headcount-priorities.ts +2 -0
  196. package/src/resources/index.ts +16 -0
  197. package/src/resources/job-assignments.ts +4 -0
  198. package/src/resources/job-codes.ts +4 -0
  199. package/src/resources/job-dimensions.ts +2 -0
  200. package/src/resources/job-functions.ts +2 -0
  201. package/src/resources/job-pay-rate-exceptions.ts +4 -0
  202. package/src/resources/job-requisitions.ts +2 -0
  203. package/src/resources/kiosk-badges.ts +2 -0
  204. package/src/resources/leave-balances.ts +2 -0
  205. package/src/resources/leave-requests.ts +2 -0
  206. package/src/resources/leave-types.ts +2 -0
  207. package/src/resources/legal-entities.ts +2 -0
  208. package/src/resources/levels.ts +2 -0
  209. package/src/resources/location-factors.ts +2 -0
  210. package/src/resources/schedules.ts +311 -0
  211. package/src/resources/shift-inputs.ts +2 -0
  212. package/src/resources/shiftassignments.ts +1037 -162
  213. package/src/resources/sso-me.ts +2 -0
  214. package/src/resources/teams.ts +2 -0
  215. package/src/resources/time-cards.ts +2 -0
  216. package/src/resources/time-entries.ts +2 -0
  217. package/src/resources/tracks.ts +2 -0
  218. package/src/resources/unassignedshifts.ts +664 -0
  219. package/src/resources/users.ts +2 -0
  220. package/src/resources/work-locations.ts +2 -0
  221. package/src/resources/workers.ts +3 -0
  222. package/src/version.ts +1 -1
  223. package/version.d.mts +1 -1
  224. package/version.d.ts +1 -1
  225. package/version.js +1 -1
  226. package/version.mjs +1 -1
@@ -52,6 +52,8 @@ export interface SSOMe {
52
52
  }
53
53
 
54
54
  export interface SSOMeRetrieveParams {
55
+ cursor?: string;
56
+
55
57
  expand?: string;
56
58
  }
57
59
 
@@ -76,6 +76,8 @@ export interface Team {
76
76
  export interface TeamRetrieveResponse extends BusinessPartnersAPI.Meta, Team {}
77
77
 
78
78
  export interface TeamListParams {
79
+ cursor?: string;
80
+
79
81
  expand?: string;
80
82
 
81
83
  order_by?: string;
@@ -186,6 +186,8 @@ export namespace TimeCard {
186
186
  export interface TimeCardRetrieveResponse extends BusinessPartnersAPI.Meta, TimeCard {}
187
187
 
188
188
  export interface TimeCardListParams {
189
+ cursor?: string;
190
+
189
191
  expand?: string;
190
192
 
191
193
  filter?: string;
@@ -1493,6 +1493,8 @@ export namespace TimeEntryUpdateResponse {
1493
1493
  }
1494
1494
 
1495
1495
  export interface TimeEntryListParams {
1496
+ cursor?: string;
1497
+
1496
1498
  expand?: string;
1497
1499
 
1498
1500
  filter?: string;
@@ -59,6 +59,8 @@ export interface Track {
59
59
  export interface TrackRetrieveResponse extends BusinessPartnersAPI.Meta, Track {}
60
60
 
61
61
  export interface TrackListParams {
62
+ cursor?: string;
63
+
62
64
  order_by?: string;
63
65
  }
64
66
 
@@ -0,0 +1,664 @@
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
+ * Retrieve a specific unassigned shift
33
+ */
34
+ retrieve(
35
+ id: string,
36
+ query: UnassignedshiftRetrieveParams | null | undefined = {},
37
+ options?: RequestOptions,
38
+ ): APIPromise<UnassignedshiftRetrieveResponse> {
39
+ return this._client.get(path`/unassignedshifts/${id}`, { query, ...options });
40
+ }
41
+ }
42
+
43
+ export type UnassignedshiftListResponsesPageCursorURL = PageCursorURL<UnassignedshiftListResponse>;
44
+
45
+ export interface UnassignedshiftListResponse {
46
+ /**
47
+ * Identifier field
48
+ */
49
+ id: string;
50
+
51
+ /**
52
+ * The number of assigned shifts
53
+ */
54
+ assigned_count: number;
55
+
56
+ /**
57
+ * Record creation date
58
+ */
59
+ created_at: string;
60
+
61
+ /**
62
+ * Whether the shift is open or empty
63
+ */
64
+ is_open: boolean;
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 IDs of the assigned shifts that are part of this unassigned shift
93
+ */
94
+ assigned_shift_ids?: Array<string>;
95
+
96
+ /**
97
+ * The published version of the shift
98
+ */
99
+ published_version?: UnassignedshiftListResponse.PublishedVersion;
100
+
101
+ /**
102
+ * The schedule
103
+ *
104
+ * Expandable field
105
+ */
106
+ schedule?: UnassignedshiftListResponse.Schedule;
107
+ }
108
+
109
+ export namespace UnassignedshiftListResponse {
110
+ /**
111
+ * The data of the shift
112
+ */
113
+ export interface ShiftData {
114
+ /**
115
+ * The end time of the shift
116
+ */
117
+ end_time: string;
118
+
119
+ /**
120
+ * The start time of the shift
121
+ */
122
+ start_time: string;
123
+
124
+ /**
125
+ * The breaks of the shift
126
+ */
127
+ shift_breaks?: Array<ShiftData.ShiftBreak>;
128
+
129
+ /**
130
+ * The segments of the shift
131
+ */
132
+ shift_segments?: Array<ShiftData.ShiftSegment>;
133
+ }
134
+
135
+ export namespace ShiftData {
136
+ export interface ShiftBreak {
137
+ /**
138
+ * The duration of the shift break in minutes (input only for creation)
139
+ */
140
+ duration_minutes: number;
141
+
142
+ /**
143
+ * The start time of the shift break
144
+ */
145
+ start_time: string;
146
+
147
+ /**
148
+ * The type of the shift break
149
+ */
150
+ type: 'MEAL' | 'REST';
151
+
152
+ /**
153
+ * The end time of the shift break (calculated from start_time + duration_minutes)
154
+ */
155
+ end_time?: string;
156
+ }
157
+
158
+ export interface ShiftSegment {
159
+ /**
160
+ * The duration of the shift segment in minutes (input only for creation)
161
+ */
162
+ duration_minutes: number;
163
+
164
+ /**
165
+ * The start time of the shift segment
166
+ */
167
+ start_time: string;
168
+
169
+ /**
170
+ * The end time of the shift segment (calculated from start_time +
171
+ * duration_minutes)
172
+ */
173
+ end_time?: string;
174
+
175
+ /**
176
+ * The IDs of the job codes associated with the shift segment
177
+ */
178
+ job_codes_id?: Array<string>;
179
+ }
180
+ }
181
+
182
+ /**
183
+ * The published version of the shift
184
+ */
185
+ export interface PublishedVersion {
186
+ /**
187
+ * The end time of the shift
188
+ */
189
+ end_time: string;
190
+
191
+ /**
192
+ * The start time of the shift
193
+ */
194
+ start_time: string;
195
+
196
+ /**
197
+ * The breaks of the shift
198
+ */
199
+ shift_breaks?: Array<PublishedVersion.ShiftBreak>;
200
+
201
+ /**
202
+ * The segments of the shift
203
+ */
204
+ shift_segments?: Array<PublishedVersion.ShiftSegment>;
205
+ }
206
+
207
+ export namespace PublishedVersion {
208
+ export interface ShiftBreak {
209
+ /**
210
+ * The duration of the shift break in minutes (input only for creation)
211
+ */
212
+ duration_minutes: number;
213
+
214
+ /**
215
+ * The start time of the shift break
216
+ */
217
+ start_time: string;
218
+
219
+ /**
220
+ * The type of the shift break
221
+ */
222
+ type: 'MEAL' | 'REST';
223
+
224
+ /**
225
+ * The end time of the shift break (calculated from start_time + duration_minutes)
226
+ */
227
+ end_time?: string;
228
+ }
229
+
230
+ export interface ShiftSegment {
231
+ /**
232
+ * The duration of the shift segment in minutes (input only for creation)
233
+ */
234
+ duration_minutes: number;
235
+
236
+ /**
237
+ * The start time of the shift segment
238
+ */
239
+ start_time: string;
240
+
241
+ /**
242
+ * The end time of the shift segment (calculated from start_time +
243
+ * duration_minutes)
244
+ */
245
+ end_time?: string;
246
+
247
+ /**
248
+ * The IDs of the job codes associated with the shift segment
249
+ */
250
+ job_codes_id?: Array<string>;
251
+ }
252
+ }
253
+
254
+ /**
255
+ * The schedule
256
+ *
257
+ * Expandable field
258
+ */
259
+ export interface Schedule {
260
+ /**
261
+ * Identifier field
262
+ */
263
+ id: string;
264
+
265
+ /**
266
+ * Record creation date
267
+ */
268
+ created_at: string;
269
+
270
+ /**
271
+ * Record update date
272
+ */
273
+ updated_at: string;
274
+
275
+ /**
276
+ * Whether the requesting role can edit the schedule.
277
+ */
278
+ can_edit?: boolean;
279
+
280
+ /**
281
+ * The managers of the schedule.
282
+ *
283
+ * Expandable field
284
+ */
285
+ managers?: Array<WorkersAPI.Worker>;
286
+
287
+ /**
288
+ * The IDs of the managers of the schedule.
289
+ */
290
+ managers_id?: Array<string>;
291
+
292
+ /**
293
+ * The members of the schedule.
294
+ *
295
+ * Expandable field
296
+ */
297
+ members?: Array<WorkersAPI.Worker>;
298
+
299
+ /**
300
+ * The IDs of the members of the schedule.
301
+ */
302
+ members_id?: Array<string>;
303
+
304
+ /**
305
+ * The name of the schedule.
306
+ */
307
+ name?: string;
308
+
309
+ /**
310
+ * The observers of the schedule.
311
+ *
312
+ * Expandable field
313
+ */
314
+ observers?: Array<WorkersAPI.Worker>;
315
+
316
+ /**
317
+ * The IDs of the observers of the schedule.
318
+ */
319
+ observers_id?: Array<string>;
320
+
321
+ /**
322
+ * The settings of the schedule.
323
+ */
324
+ settings?: Schedule.Settings;
325
+ }
326
+
327
+ export namespace Schedule {
328
+ /**
329
+ * The settings of the schedule.
330
+ */
331
+ export interface Settings {
332
+ /**
333
+ * The IANA timezone identifier for the schedule (e.g., 'America/New_York').
334
+ * Accepted values are defined by the tz database, listed here:
335
+ * https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
336
+ */
337
+ timezone?: string;
338
+ }
339
+ }
340
+ }
341
+
342
+ /**
343
+ * Meta information for the response.
344
+ */
345
+ export interface UnassignedshiftRetrieveResponse extends BusinessPartnersAPI.Meta {
346
+ /**
347
+ * Identifier field
348
+ */
349
+ id: string;
350
+
351
+ /**
352
+ * The number of assigned shifts
353
+ */
354
+ assigned_count: number;
355
+
356
+ /**
357
+ * Record creation date
358
+ */
359
+ created_at: string;
360
+
361
+ /**
362
+ * Whether the shift is open or empty
363
+ */
364
+ is_open: boolean;
365
+
366
+ /**
367
+ * Whether the shift is published
368
+ */
369
+ is_published: boolean;
370
+
371
+ /**
372
+ * The ID of the schedule
373
+ */
374
+ schedule_id: string;
375
+
376
+ /**
377
+ * The data of the shift
378
+ */
379
+ shift_data: UnassignedshiftRetrieveResponse.ShiftData;
380
+
381
+ /**
382
+ * The target count of the shift
383
+ */
384
+ target_count: number;
385
+
386
+ /**
387
+ * Record update date
388
+ */
389
+ updated_at: string;
390
+
391
+ /**
392
+ * The IDs of the assigned shifts that are part of this unassigned shift
393
+ */
394
+ assigned_shift_ids?: Array<string>;
395
+
396
+ /**
397
+ * The published version of the shift
398
+ */
399
+ published_version?: UnassignedshiftRetrieveResponse.PublishedVersion;
400
+
401
+ /**
402
+ * The schedule
403
+ *
404
+ * Expandable field
405
+ */
406
+ schedule?: UnassignedshiftRetrieveResponse.Schedule;
407
+ }
408
+
409
+ export namespace UnassignedshiftRetrieveResponse {
410
+ /**
411
+ * The data of the shift
412
+ */
413
+ export interface ShiftData {
414
+ /**
415
+ * The end time of the shift
416
+ */
417
+ end_time: string;
418
+
419
+ /**
420
+ * The start time of the shift
421
+ */
422
+ start_time: string;
423
+
424
+ /**
425
+ * The breaks of the shift
426
+ */
427
+ shift_breaks?: Array<ShiftData.ShiftBreak>;
428
+
429
+ /**
430
+ * The segments of the shift
431
+ */
432
+ shift_segments?: Array<ShiftData.ShiftSegment>;
433
+ }
434
+
435
+ export namespace ShiftData {
436
+ export interface ShiftBreak {
437
+ /**
438
+ * The duration of the shift break in minutes (input only for creation)
439
+ */
440
+ duration_minutes: number;
441
+
442
+ /**
443
+ * The start time of the shift break
444
+ */
445
+ start_time: string;
446
+
447
+ /**
448
+ * The type of the shift break
449
+ */
450
+ type: 'MEAL' | 'REST';
451
+
452
+ /**
453
+ * The end time of the shift break (calculated from start_time + duration_minutes)
454
+ */
455
+ end_time?: string;
456
+ }
457
+
458
+ export interface ShiftSegment {
459
+ /**
460
+ * The duration of the shift segment in minutes (input only for creation)
461
+ */
462
+ duration_minutes: number;
463
+
464
+ /**
465
+ * The start time of the shift segment
466
+ */
467
+ start_time: string;
468
+
469
+ /**
470
+ * The end time of the shift segment (calculated from start_time +
471
+ * duration_minutes)
472
+ */
473
+ end_time?: string;
474
+
475
+ /**
476
+ * The IDs of the job codes associated with the shift segment
477
+ */
478
+ job_codes_id?: Array<string>;
479
+ }
480
+ }
481
+
482
+ /**
483
+ * The published version of the shift
484
+ */
485
+ export interface PublishedVersion {
486
+ /**
487
+ * The end time of the shift
488
+ */
489
+ end_time: string;
490
+
491
+ /**
492
+ * The start time of the shift
493
+ */
494
+ start_time: string;
495
+
496
+ /**
497
+ * The breaks of the shift
498
+ */
499
+ shift_breaks?: Array<PublishedVersion.ShiftBreak>;
500
+
501
+ /**
502
+ * The segments of the shift
503
+ */
504
+ shift_segments?: Array<PublishedVersion.ShiftSegment>;
505
+ }
506
+
507
+ export namespace PublishedVersion {
508
+ export interface ShiftBreak {
509
+ /**
510
+ * The duration of the shift break in minutes (input only for creation)
511
+ */
512
+ duration_minutes: number;
513
+
514
+ /**
515
+ * The start time of the shift break
516
+ */
517
+ start_time: string;
518
+
519
+ /**
520
+ * The type of the shift break
521
+ */
522
+ type: 'MEAL' | 'REST';
523
+
524
+ /**
525
+ * The end time of the shift break (calculated from start_time + duration_minutes)
526
+ */
527
+ end_time?: string;
528
+ }
529
+
530
+ export interface ShiftSegment {
531
+ /**
532
+ * The duration of the shift segment in minutes (input only for creation)
533
+ */
534
+ duration_minutes: number;
535
+
536
+ /**
537
+ * The start time of the shift segment
538
+ */
539
+ start_time: string;
540
+
541
+ /**
542
+ * The end time of the shift segment (calculated from start_time +
543
+ * duration_minutes)
544
+ */
545
+ end_time?: string;
546
+
547
+ /**
548
+ * The IDs of the job codes associated with the shift segment
549
+ */
550
+ job_codes_id?: Array<string>;
551
+ }
552
+ }
553
+
554
+ /**
555
+ * The schedule
556
+ *
557
+ * Expandable field
558
+ */
559
+ export interface Schedule {
560
+ /**
561
+ * Identifier field
562
+ */
563
+ id: string;
564
+
565
+ /**
566
+ * Record creation date
567
+ */
568
+ created_at: string;
569
+
570
+ /**
571
+ * Record update date
572
+ */
573
+ updated_at: string;
574
+
575
+ /**
576
+ * Whether the requesting role can edit the schedule.
577
+ */
578
+ can_edit?: boolean;
579
+
580
+ /**
581
+ * The managers of the schedule.
582
+ *
583
+ * Expandable field
584
+ */
585
+ managers?: Array<WorkersAPI.Worker>;
586
+
587
+ /**
588
+ * The IDs of the managers of the schedule.
589
+ */
590
+ managers_id?: Array<string>;
591
+
592
+ /**
593
+ * The members of the schedule.
594
+ *
595
+ * Expandable field
596
+ */
597
+ members?: Array<WorkersAPI.Worker>;
598
+
599
+ /**
600
+ * The IDs of the members of the schedule.
601
+ */
602
+ members_id?: Array<string>;
603
+
604
+ /**
605
+ * The name of the schedule.
606
+ */
607
+ name?: string;
608
+
609
+ /**
610
+ * The observers of the schedule.
611
+ *
612
+ * Expandable field
613
+ */
614
+ observers?: Array<WorkersAPI.Worker>;
615
+
616
+ /**
617
+ * The IDs of the observers of the schedule.
618
+ */
619
+ observers_id?: Array<string>;
620
+
621
+ /**
622
+ * The settings of the schedule.
623
+ */
624
+ settings?: Schedule.Settings;
625
+ }
626
+
627
+ export namespace Schedule {
628
+ /**
629
+ * The settings of the schedule.
630
+ */
631
+ export interface Settings {
632
+ /**
633
+ * The IANA timezone identifier for the schedule (e.g., 'America/New_York').
634
+ * Accepted values are defined by the tz database, listed here:
635
+ * https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
636
+ */
637
+ timezone?: string;
638
+ }
639
+ }
640
+ }
641
+
642
+ export interface UnassignedshiftListParams {
643
+ cursor?: string;
644
+
645
+ expand?: string;
646
+
647
+ filter?: string;
648
+
649
+ order_by?: string;
650
+ }
651
+
652
+ export interface UnassignedshiftRetrieveParams {
653
+ expand?: string;
654
+ }
655
+
656
+ export declare namespace Unassignedshifts {
657
+ export {
658
+ type UnassignedshiftListResponse as UnassignedshiftListResponse,
659
+ type UnassignedshiftRetrieveResponse as UnassignedshiftRetrieveResponse,
660
+ type UnassignedshiftListResponsesPageCursorURL as UnassignedshiftListResponsesPageCursorURL,
661
+ type UnassignedshiftListParams as UnassignedshiftListParams,
662
+ type UnassignedshiftRetrieveParams as UnassignedshiftRetrieveParams,
663
+ };
664
+ }
@@ -242,6 +242,8 @@ export namespace User {
242
242
  export interface UserRetrieveResponse extends BusinessPartnersAPI.Meta, User {}
243
243
 
244
244
  export interface UserListParams {
245
+ cursor?: string;
246
+
245
247
  order_by?: string;
246
248
  }
247
249
 
@@ -65,6 +65,8 @@ export interface WorkLocation {
65
65
  export interface WorkLocationRetrieveResponse extends BusinessPartnersAPI.Meta, WorkLocation {}
66
66
 
67
67
  export interface WorkLocationListParams {
68
+ cursor?: string;
69
+
68
70
  order_by?: string;
69
71
  }
70
72