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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (223) hide show
  1. package/LICENSE +1 -1
  2. package/client.d.mts +33 -11
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +33 -11
  5. package/client.d.ts.map +1 -1
  6. package/client.js +21 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +21 -0
  9. package/client.mjs.map +1 -1
  10. package/functions.d.mts +4 -0
  11. package/functions.d.mts.map +1 -1
  12. package/functions.d.ts +4 -0
  13. package/functions.d.ts.map +1 -1
  14. package/functions.js +13 -1
  15. package/functions.js.map +1 -1
  16. package/functions.mjs +11 -0
  17. package/functions.mjs.map +1 -1
  18. package/package.json +1 -1
  19. package/resources/compensation-bands-details.d.mts +95 -0
  20. package/resources/compensation-bands-details.d.mts.map +1 -0
  21. package/resources/compensation-bands-details.d.ts +95 -0
  22. package/resources/compensation-bands-details.d.ts.map +1 -0
  23. package/resources/compensation-bands-details.js +29 -0
  24. package/resources/compensation-bands-details.js.map +1 -0
  25. package/resources/compensation-bands-details.mjs +25 -0
  26. package/resources/compensation-bands-details.mjs.map +1 -0
  27. package/resources/custom-settings.d.mts +270 -0
  28. package/resources/custom-settings.d.mts.map +1 -0
  29. package/resources/custom-settings.d.ts +270 -0
  30. package/resources/custom-settings.d.ts.map +1 -0
  31. package/resources/custom-settings.js +51 -0
  32. package/resources/custom-settings.js.map +1 -0
  33. package/resources/custom-settings.mjs +47 -0
  34. package/resources/custom-settings.mjs.map +1 -0
  35. package/resources/departments.d.mts +37 -1
  36. package/resources/departments.d.mts.map +1 -1
  37. package/resources/departments.d.ts +37 -1
  38. package/resources/departments.d.ts.map +1 -1
  39. package/resources/departments.js +12 -0
  40. package/resources/departments.js.map +1 -1
  41. package/resources/departments.mjs +12 -0
  42. package/resources/departments.mjs.map +1 -1
  43. package/resources/draft-hires.d.mts +27 -0
  44. package/resources/draft-hires.d.mts.map +1 -1
  45. package/resources/draft-hires.d.ts +27 -0
  46. package/resources/draft-hires.d.ts.map +1 -1
  47. package/resources/functions/executions.d.mts +6 -82
  48. package/resources/functions/executions.d.mts.map +1 -1
  49. package/resources/functions/executions.d.ts +6 -82
  50. package/resources/functions/executions.d.ts.map +1 -1
  51. package/resources/functions/executions.js.map +1 -1
  52. package/resources/functions/executions.mjs.map +1 -1
  53. package/resources/functions/functions.d.mts +2 -2
  54. package/resources/functions/functions.d.mts.map +1 -1
  55. package/resources/functions/functions.d.ts +2 -2
  56. package/resources/functions/functions.d.ts.map +1 -1
  57. package/resources/functions/functions.js.map +1 -1
  58. package/resources/functions/functions.mjs.map +1 -1
  59. package/resources/functions/index.d.mts +1 -1
  60. package/resources/functions/index.d.mts.map +1 -1
  61. package/resources/functions/index.d.ts +1 -1
  62. package/resources/functions/index.d.ts.map +1 -1
  63. package/resources/functions/index.js.map +1 -1
  64. package/resources/functions/index.mjs.map +1 -1
  65. package/resources/index.d.mts +12 -5
  66. package/resources/index.d.mts.map +1 -1
  67. package/resources/index.d.ts +12 -5
  68. package/resources/index.d.ts.map +1 -1
  69. package/resources/index.js +15 -1
  70. package/resources/index.js.map +1 -1
  71. package/resources/index.mjs +7 -0
  72. package/resources/index.mjs.map +1 -1
  73. package/resources/job-assignments.d.mts +70 -6
  74. package/resources/job-assignments.d.mts.map +1 -1
  75. package/resources/job-assignments.d.ts +70 -6
  76. package/resources/job-assignments.d.ts.map +1 -1
  77. package/resources/job-assignments.js +22 -0
  78. package/resources/job-assignments.js.map +1 -1
  79. package/resources/job-assignments.mjs +22 -0
  80. package/resources/job-assignments.mjs.map +1 -1
  81. package/resources/job-codes.d.mts +47 -1
  82. package/resources/job-codes.d.mts.map +1 -1
  83. package/resources/job-codes.d.ts +47 -1
  84. package/resources/job-codes.d.ts.map +1 -1
  85. package/resources/job-dimensions.d.mts +20 -0
  86. package/resources/job-dimensions.d.mts.map +1 -1
  87. package/resources/job-dimensions.d.ts +20 -0
  88. package/resources/job-dimensions.d.ts.map +1 -1
  89. package/resources/job-requisitions-write.d.mts +257 -0
  90. package/resources/job-requisitions-write.d.mts.map +1 -0
  91. package/resources/job-requisitions-write.d.ts +257 -0
  92. package/resources/job-requisitions-write.d.ts.map +1 -0
  93. package/resources/job-requisitions-write.js +15 -0
  94. package/resources/job-requisitions-write.js.map +1 -0
  95. package/resources/job-requisitions-write.mjs +11 -0
  96. package/resources/job-requisitions-write.mjs.map +1 -0
  97. package/resources/leave-accruals.d.mts +112 -6
  98. package/resources/leave-accruals.d.mts.map +1 -1
  99. package/resources/leave-accruals.d.ts +112 -6
  100. package/resources/leave-accruals.d.ts.map +1 -1
  101. package/resources/leave-accruals.js +19 -3
  102. package/resources/leave-accruals.js.map +1 -1
  103. package/resources/leave-accruals.mjs +19 -3
  104. package/resources/leave-accruals.mjs.map +1 -1
  105. package/resources/report-runs.d.mts +149 -0
  106. package/resources/report-runs.d.mts.map +1 -0
  107. package/resources/report-runs.d.ts +149 -0
  108. package/resources/report-runs.d.ts.map +1 -0
  109. package/resources/report-runs.js +22 -0
  110. package/resources/report-runs.js.map +1 -0
  111. package/resources/report-runs.mjs +18 -0
  112. package/resources/report-runs.mjs.map +1 -0
  113. package/resources/shared.d.mts +35 -0
  114. package/resources/shared.d.mts.map +1 -1
  115. package/resources/shared.d.ts +35 -0
  116. package/resources/shared.d.ts.map +1 -1
  117. package/resources/shift-assignments.d.mts +296 -0
  118. package/resources/shift-assignments.d.mts.map +1 -0
  119. package/resources/shift-assignments.d.ts +296 -0
  120. package/resources/shift-assignments.d.ts.map +1 -0
  121. package/resources/shift-assignments.js +25 -0
  122. package/resources/shift-assignments.js.map +1 -0
  123. package/resources/shift-assignments.mjs +21 -0
  124. package/resources/shift-assignments.mjs.map +1 -0
  125. package/resources/shiftassignments.d.mts +56 -4
  126. package/resources/shiftassignments.d.mts.map +1 -1
  127. package/resources/shiftassignments.d.ts +56 -4
  128. package/resources/shiftassignments.d.ts.map +1 -1
  129. package/resources/supergroups/exclusion-members.d.mts +3 -3
  130. package/resources/supergroups/exclusion-members.d.mts.map +1 -1
  131. package/resources/supergroups/exclusion-members.d.ts +3 -3
  132. package/resources/supergroups/exclusion-members.d.ts.map +1 -1
  133. package/resources/supergroups/exclusion-members.js.map +1 -1
  134. package/resources/supergroups/exclusion-members.mjs.map +1 -1
  135. package/resources/supergroups/inclusion-members.d.mts +3 -3
  136. package/resources/supergroups/inclusion-members.d.mts.map +1 -1
  137. package/resources/supergroups/inclusion-members.d.ts +3 -3
  138. package/resources/supergroups/inclusion-members.d.ts.map +1 -1
  139. package/resources/supergroups/inclusion-members.js.map +1 -1
  140. package/resources/supergroups/inclusion-members.mjs.map +1 -1
  141. package/resources/supergroups/index.d.mts +1 -1
  142. package/resources/supergroups/index.d.mts.map +1 -1
  143. package/resources/supergroups/index.d.ts +1 -1
  144. package/resources/supergroups/index.d.ts.map +1 -1
  145. package/resources/supergroups/index.js.map +1 -1
  146. package/resources/supergroups/index.mjs.map +1 -1
  147. package/resources/supergroups/members.d.mts +6 -37
  148. package/resources/supergroups/members.d.mts.map +1 -1
  149. package/resources/supergroups/members.d.ts +6 -37
  150. package/resources/supergroups/members.d.ts.map +1 -1
  151. package/resources/supergroups/members.js.map +1 -1
  152. package/resources/supergroups/members.mjs.map +1 -1
  153. package/resources/supergroups/supergroups.d.mts +2 -2
  154. package/resources/supergroups/supergroups.d.mts.map +1 -1
  155. package/resources/supergroups/supergroups.d.ts +2 -2
  156. package/resources/supergroups/supergroups.d.ts.map +1 -1
  157. package/resources/supergroups/supergroups.js.map +1 -1
  158. package/resources/supergroups/supergroups.mjs.map +1 -1
  159. package/resources/titles.d.mts +126 -0
  160. package/resources/titles.d.mts.map +1 -0
  161. package/resources/titles.d.ts +126 -0
  162. package/resources/titles.d.ts.map +1 -0
  163. package/resources/titles.js +48 -0
  164. package/resources/titles.js.map +1 -0
  165. package/resources/titles.mjs +44 -0
  166. package/resources/titles.mjs.map +1 -0
  167. package/resources/unassigned-shifts.d.mts +334 -0
  168. package/resources/unassigned-shifts.d.mts.map +1 -0
  169. package/resources/unassigned-shifts.d.ts +334 -0
  170. package/resources/unassigned-shifts.d.ts.map +1 -0
  171. package/resources/unassigned-shifts.js +42 -0
  172. package/resources/unassigned-shifts.js.map +1 -0
  173. package/resources/unassigned-shifts.mjs +38 -0
  174. package/resources/unassigned-shifts.mjs.map +1 -0
  175. package/resources/unassignedshifts.d.mts +382 -1
  176. package/resources/unassignedshifts.d.mts.map +1 -1
  177. package/resources/unassignedshifts.d.ts +382 -1
  178. package/resources/unassignedshifts.d.ts.map +1 -1
  179. package/resources/unassignedshifts.js +6 -0
  180. package/resources/unassignedshifts.js.map +1 -1
  181. package/resources/unassignedshifts.mjs +6 -0
  182. package/resources/unassignedshifts.mjs.map +1 -1
  183. package/resources/work-locations.d.mts +95 -1
  184. package/resources/work-locations.d.mts.map +1 -1
  185. package/resources/work-locations.d.ts +95 -1
  186. package/resources/work-locations.d.ts.map +1 -1
  187. package/resources/work-locations.js +12 -0
  188. package/resources/work-locations.js.map +1 -1
  189. package/resources/work-locations.mjs +12 -0
  190. package/resources/work-locations.mjs.map +1 -1
  191. package/src/client.ts +153 -3
  192. package/src/functions.ts +14 -0
  193. package/src/resources/compensation-bands-details.ts +140 -0
  194. package/src/resources/custom-settings.ts +371 -0
  195. package/src/resources/departments.ts +50 -0
  196. package/src/resources/draft-hires.ts +32 -0
  197. package/src/resources/functions/executions.ts +8 -104
  198. package/src/resources/functions/functions.ts +4 -8
  199. package/src/resources/functions/index.ts +2 -4
  200. package/src/resources/index.ts +66 -2
  201. package/src/resources/job-assignments.ts +95 -6
  202. package/src/resources/job-codes.ts +56 -1
  203. package/src/resources/job-dimensions.ts +24 -0
  204. package/src/resources/job-requisitions-write.ts +327 -0
  205. package/src/resources/leave-accruals.ts +229 -12
  206. package/src/resources/report-runs.ts +186 -0
  207. package/src/resources/shared.ts +44 -0
  208. package/src/resources/shift-assignments.ts +362 -0
  209. package/src/resources/shiftassignments.ts +70 -5
  210. package/src/resources/supergroups/exclusion-members.ts +4 -4
  211. package/src/resources/supergroups/inclusion-members.ts +4 -4
  212. package/src/resources/supergroups/index.ts +1 -1
  213. package/src/resources/supergroups/members.ts +7 -49
  214. package/src/resources/supergroups/supergroups.ts +2 -7
  215. package/src/resources/titles.ts +181 -0
  216. package/src/resources/unassigned-shifts.ts +415 -0
  217. package/src/resources/unassignedshifts.ts +467 -0
  218. package/src/resources/work-locations.ts +118 -0
  219. package/src/version.ts +1 -1
  220. package/version.d.mts +1 -1
  221. package/version.d.ts +1 -1
  222. package/version.js +1 -1
  223. package/version.mjs +1 -1
@@ -0,0 +1,186 @@
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 { APIPromise } from '../core/api-promise';
6
+ import { RequestOptions } from '../internal/request-options';
7
+ import { path } from '../internal/utils/path';
8
+
9
+ export class ReportRuns extends APIResource {
10
+ /**
11
+ * Trigger a new report run
12
+ */
13
+ create(body: ReportRunCreateParams, options?: RequestOptions): APIPromise<ReportRunCreateResponse> {
14
+ return this._client.post('/report-runs', { body, ...options });
15
+ }
16
+
17
+ /**
18
+ * Retrieve the status and data for a specific report run
19
+ */
20
+ retrieve(runID: string, options?: RequestOptions): APIPromise<ReportRunRetrieveResponse> {
21
+ return this._client.get(path`/report-runs/${runID}`, options);
22
+ }
23
+ }
24
+
25
+ export interface ReportRunCreateResponse {
26
+ /**
27
+ * The ID of this run
28
+ */
29
+ id: string;
30
+
31
+ /**
32
+ * The ID of the report associated with this run
33
+ */
34
+ report_id: string;
35
+
36
+ /**
37
+ * Report run status
38
+ */
39
+ status: 'IN_PROGRESS' | 'SUCCESS' | 'FAILURE';
40
+
41
+ /**
42
+ * Report data, available once the run is complete
43
+ */
44
+ result?: ReportRunCreateResponse.Result;
45
+ }
46
+
47
+ export namespace ReportRunCreateResponse {
48
+ /**
49
+ * Report data, available once the run is complete
50
+ */
51
+ export interface Result {
52
+ /**
53
+ * The expiry time of the execution
54
+ */
55
+ expires_at: string;
56
+
57
+ /**
58
+ * The presigned file url
59
+ */
60
+ file_url: string;
61
+
62
+ /**
63
+ * The type of the output file
64
+ */
65
+ output_type: 'JSON' | 'CSV';
66
+ }
67
+ }
68
+
69
+ /**
70
+ * Meta information for the response.
71
+ */
72
+ export interface ReportRunRetrieveResponse extends BusinessPartnersAPI.Meta {
73
+ /**
74
+ * The ID of this run
75
+ */
76
+ id: string;
77
+
78
+ /**
79
+ * The ID of the report associated with this run
80
+ */
81
+ report_id: string;
82
+
83
+ /**
84
+ * Report run status
85
+ */
86
+ status: 'IN_PROGRESS' | 'SUCCESS' | 'FAILURE';
87
+
88
+ /**
89
+ * Report data, available once the run is complete
90
+ */
91
+ result?: ReportRunRetrieveResponse.Result;
92
+ }
93
+
94
+ export namespace ReportRunRetrieveResponse {
95
+ /**
96
+ * Report data, available once the run is complete
97
+ */
98
+ export interface Result {
99
+ /**
100
+ * The expiry time of the execution
101
+ */
102
+ expires_at: string;
103
+
104
+ /**
105
+ * The presigned file url
106
+ */
107
+ file_url: string;
108
+
109
+ /**
110
+ * The type of the output file
111
+ */
112
+ output_type: 'JSON' | 'CSV';
113
+ }
114
+ }
115
+
116
+ export interface ReportRunCreateParams {
117
+ /**
118
+ * Whether to include object IDs in the report output
119
+ */
120
+ include_object_ids: boolean;
121
+
122
+ /**
123
+ * Whether to include total row count in the report output
124
+ */
125
+ include_total_rows: boolean;
126
+
127
+ /**
128
+ * Output format for the report data
129
+ */
130
+ output_type: 'JSON' | 'CSV';
131
+
132
+ /**
133
+ * The ID of the report to run
134
+ */
135
+ report_id: string;
136
+
137
+ /**
138
+ * Formatting options for currency fields
139
+ */
140
+ format_currency_fields?: ReportRunCreateParams.FormatCurrencyFields | null;
141
+
142
+ /**
143
+ * Formatting options for date fields
144
+ */
145
+ format_date_fields?: ReportRunCreateParams.FormatDateFields | null;
146
+ }
147
+
148
+ export namespace ReportRunCreateParams {
149
+ /**
150
+ * Formatting options for currency fields
151
+ */
152
+ export interface FormatCurrencyFields {
153
+ /**
154
+ * Currency column format for currency fields
155
+ */
156
+ columns: 'TYPE_AND_AMOUNT' | 'VALUE_ONLY';
157
+
158
+ /**
159
+ * Currency type (e.g., 'USD')
160
+ */
161
+ currency_type?: string | null;
162
+ }
163
+
164
+ /**
165
+ * Formatting options for date fields
166
+ */
167
+ export interface FormatDateFields {
168
+ /**
169
+ * Date format for date fields in the report output
170
+ */
171
+ date_format: 'ISO_8601' | 'APPLY_VISUALIZATION_SETTINGS';
172
+
173
+ /**
174
+ * Timezone for datetime fields (e.g., 'America/Los_Angeles')
175
+ */
176
+ datetime_timezone?: string | null;
177
+ }
178
+ }
179
+
180
+ export declare namespace ReportRuns {
181
+ export {
182
+ type ReportRunCreateResponse as ReportRunCreateResponse,
183
+ type ReportRunRetrieveResponse as ReportRunRetrieveResponse,
184
+ type ReportRunCreateParams as ReportRunCreateParams,
185
+ };
186
+ }
@@ -1,5 +1,8 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
+ import * as WorkersAPI from './workers';
4
+ import { PageCursorURL } from '../core/pagination';
5
+
3
6
  export interface Address {
4
7
  /**
5
8
  * The country component, pursuant to SCIM RFC 7643 4.1.2.
@@ -292,6 +295,45 @@ export type CountryCode =
292
295
  | 'ZM'
293
296
  | 'ZW';
294
297
 
298
+ export interface GroupMember {
299
+ /**
300
+ * Identifier field
301
+ */
302
+ id: string;
303
+
304
+ /**
305
+ * Record creation date
306
+ */
307
+ created_at: string;
308
+
309
+ /**
310
+ * Record update date
311
+ */
312
+ updated_at: string;
313
+
314
+ /**
315
+ * The group member's full name.
316
+ */
317
+ full_name?: string;
318
+
319
+ /**
320
+ * The group member's associated work email address.
321
+ */
322
+ work_email?: string;
323
+
324
+ /**
325
+ * The worker associated with this group member.
326
+ *
327
+ * Expandable field
328
+ */
329
+ worker?: WorkersAPI.Worker;
330
+
331
+ /**
332
+ * The worker's identifier associated with this group member.
333
+ */
334
+ worker_id?: string;
335
+ }
336
+
295
337
  /**
296
338
  * A list of redacted fields.
297
339
  */
@@ -312,3 +354,5 @@ export namespace RedactedFields {
312
354
  reason?: string;
313
355
  }
314
356
  }
357
+
358
+ export type GroupMembersPageCursorURL = PageCursorURL<GroupMember>;
@@ -0,0 +1,362 @@
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 { RequestOptions } from '../internal/request-options';
8
+ import { path } from '../internal/utils/path';
9
+
10
+ export class ShiftAssignments extends APIResource {
11
+ /**
12
+ * Update custom fields for a shift assignment. The request body should contain a
13
+ * dictionary mapping custom field names to their values.
14
+ *
15
+ * - Requires: `API Tier 2`
16
+ *
17
+ * @example
18
+ * ```ts
19
+ * const response =
20
+ * await client.shiftAssignments.updateCustomfields('id');
21
+ * ```
22
+ */
23
+ updateCustomfields(
24
+ id: string,
25
+ body: ShiftAssignmentUpdateCustomfieldsParams,
26
+ options?: RequestOptions,
27
+ ): APIPromise<ShiftAssignmentUpdateCustomfieldsResponse> {
28
+ return this._client.patch(path`/shiftassignments/${id}/customfields`, { body, ...options });
29
+ }
30
+ }
31
+
32
+ /**
33
+ * Meta information for the response.
34
+ */
35
+ export interface ShiftAssignmentUpdateCustomfieldsResponse extends BusinessPartnersAPI.Meta {
36
+ /**
37
+ * Identifier field
38
+ */
39
+ id: string;
40
+
41
+ /**
42
+ * Record creation date
43
+ */
44
+ created_at: string;
45
+
46
+ /**
47
+ * Whether the shift assignment is published. If true, the published_version will
48
+ * be the same as the shift_data
49
+ */
50
+ is_published: boolean;
51
+
52
+ /**
53
+ * The ID of the schedule
54
+ */
55
+ schedule_id: string;
56
+
57
+ /**
58
+ * The data of the shift
59
+ */
60
+ shift_data: ShiftAssignmentUpdateCustomfieldsResponse.ShiftData;
61
+
62
+ /**
63
+ * Record update date
64
+ */
65
+ updated_at: string;
66
+
67
+ /**
68
+ * The ID of the worker. Empty string '' to unassign if shift is from an open/empty
69
+ * shift.
70
+ */
71
+ worker_id: string;
72
+
73
+ /**
74
+ * Whether the shift assignment can be edited
75
+ */
76
+ can_edit?: boolean;
77
+
78
+ /**
79
+ * Custom fields for the shift assignment
80
+ */
81
+ custom_fields?: Array<unknown>;
82
+
83
+ /**
84
+ * The published version of the shift assignment, if it exists. If filled but
85
+ * is_published is false, the shift_data is the latest version.
86
+ */
87
+ published_version?: ShiftAssignmentUpdateCustomfieldsResponse.PublishedVersion;
88
+
89
+ /**
90
+ * The schedule
91
+ *
92
+ * Expandable field
93
+ */
94
+ schedule?: ShiftAssignmentUpdateCustomfieldsResponse.Schedule;
95
+
96
+ /**
97
+ * The worker
98
+ *
99
+ * Expandable field
100
+ */
101
+ worker?: WorkersAPI.Worker;
102
+ }
103
+
104
+ export namespace ShiftAssignmentUpdateCustomfieldsResponse {
105
+ /**
106
+ * The data of the shift
107
+ */
108
+ export interface ShiftData {
109
+ /**
110
+ * The end time of the shift
111
+ */
112
+ end_time: string;
113
+
114
+ /**
115
+ * The start time of the shift
116
+ */
117
+ start_time: string;
118
+
119
+ /**
120
+ * Notes for the shift, max length 256 characters
121
+ */
122
+ notes?: 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 assignment, if it exists. If filled but
184
+ * is_published is false, the shift_data is the latest version.
185
+ */
186
+ export interface PublishedVersion {
187
+ /**
188
+ * The end time of the shift
189
+ */
190
+ end_time: string;
191
+
192
+ /**
193
+ * The start time of the shift
194
+ */
195
+ start_time: string;
196
+
197
+ /**
198
+ * Notes for the shift, max length 256 characters
199
+ */
200
+ notes?: string;
201
+
202
+ /**
203
+ * The breaks of the shift
204
+ */
205
+ shift_breaks?: Array<PublishedVersion.ShiftBreak>;
206
+
207
+ /**
208
+ * The segments of the shift
209
+ */
210
+ shift_segments?: Array<PublishedVersion.ShiftSegment>;
211
+ }
212
+
213
+ export namespace PublishedVersion {
214
+ export interface ShiftBreak {
215
+ /**
216
+ * The duration of the shift break in minutes (input only for creation)
217
+ */
218
+ duration_minutes: number;
219
+
220
+ /**
221
+ * The start time of the shift break
222
+ */
223
+ start_time: string;
224
+
225
+ /**
226
+ * The type of the shift break
227
+ */
228
+ type: 'MEAL' | 'REST';
229
+
230
+ /**
231
+ * The end time of the shift break (calculated from start_time + duration_minutes)
232
+ */
233
+ end_time?: string;
234
+ }
235
+
236
+ export interface ShiftSegment {
237
+ /**
238
+ * The duration of the shift segment in minutes (input only for creation)
239
+ */
240
+ duration_minutes: number;
241
+
242
+ /**
243
+ * The start time of the shift segment
244
+ */
245
+ start_time: string;
246
+
247
+ /**
248
+ * The end time of the shift segment (calculated from start_time +
249
+ * duration_minutes)
250
+ */
251
+ end_time?: string;
252
+
253
+ /**
254
+ * The IDs of the job codes associated with the shift segment
255
+ */
256
+ job_codes_id?: Array<string>;
257
+ }
258
+ }
259
+
260
+ /**
261
+ * The schedule
262
+ *
263
+ * Expandable field
264
+ */
265
+ export interface Schedule {
266
+ /**
267
+ * Identifier field
268
+ */
269
+ id: string;
270
+
271
+ /**
272
+ * Record creation date
273
+ */
274
+ created_at: string;
275
+
276
+ /**
277
+ * Record update date
278
+ */
279
+ updated_at: string;
280
+
281
+ /**
282
+ * Whether the requesting role can edit the schedule.
283
+ */
284
+ can_edit?: boolean;
285
+
286
+ /**
287
+ * The managers of the schedule.
288
+ *
289
+ * Expandable field
290
+ */
291
+ managers?: Array<WorkersAPI.Worker>;
292
+
293
+ /**
294
+ * The IDs of the managers of the schedule.
295
+ */
296
+ managers_id?: Array<string>;
297
+
298
+ /**
299
+ * The members of the schedule.
300
+ *
301
+ * Expandable field
302
+ */
303
+ members?: Array<WorkersAPI.Worker>;
304
+
305
+ /**
306
+ * The IDs of the members of the schedule.
307
+ */
308
+ members_id?: Array<string>;
309
+
310
+ /**
311
+ * The name of the schedule.
312
+ */
313
+ name?: string;
314
+
315
+ /**
316
+ * The observers of the schedule.
317
+ *
318
+ * Expandable field
319
+ */
320
+ observers?: Array<WorkersAPI.Worker>;
321
+
322
+ /**
323
+ * The IDs of the observers of the schedule.
324
+ */
325
+ observers_id?: Array<string>;
326
+
327
+ /**
328
+ * The settings of the schedule.
329
+ */
330
+ settings?: Schedule.Settings;
331
+ }
332
+
333
+ export namespace Schedule {
334
+ /**
335
+ * The settings of the schedule.
336
+ */
337
+ export interface Settings {
338
+ /**
339
+ * The IANA timezone identifier for the schedule (e.g., 'America/New_York').
340
+ * Accepted values are defined by the tz database, listed here:
341
+ * https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
342
+ */
343
+ timezone?: string;
344
+ }
345
+ }
346
+ }
347
+
348
+ export interface ShiftAssignmentUpdateCustomfieldsParams {
349
+ /**
350
+ * Example custom field name. Replace with your actual custom field names.
351
+ */
352
+ FieldName1?: string;
353
+
354
+ [k: string]: unknown;
355
+ }
356
+
357
+ export declare namespace ShiftAssignments {
358
+ export {
359
+ type ShiftAssignmentUpdateCustomfieldsResponse as ShiftAssignmentUpdateCustomfieldsResponse,
360
+ type ShiftAssignmentUpdateCustomfieldsParams as ShiftAssignmentUpdateCustomfieldsParams,
361
+ };
362
+ }