@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,327 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../core/resource';
4
+ import { APIPromise } from '../core/api-promise';
5
+ import { RequestOptions } from '../internal/request-options';
6
+
7
+ export class JobRequisitionsWrite extends APIResource {
8
+ /**
9
+ * Create a new job requisition
10
+ */
11
+ create(
12
+ body: JobRequisitionsWriteCreateParams,
13
+ options?: RequestOptions,
14
+ ): APIPromise<JobRequisitionsWriteCreateResponse> {
15
+ return this._client.post('/job-requisitions-write', { body, ...options });
16
+ }
17
+ }
18
+
19
+ /**
20
+ * DTO for creating JobRequisitions via the Platform API.
21
+ * Maps to the existing ATS JobRequisitionDTO for use with create_from_DTO service.
22
+ */
23
+ export interface JobRequisitionsWriteCreateResponse {
24
+ /**
25
+ * Identifier field
26
+ */
27
+ id: string;
28
+
29
+ /**
30
+ * Record creation date
31
+ */
32
+ created_at: string;
33
+
34
+ /**
35
+ * Title/name of the job requisition
36
+ */
37
+ name: string;
38
+
39
+ /**
40
+ * Record update date
41
+ */
42
+ updated_at: string;
43
+
44
+ /**
45
+ * Whether this requisition is confidential
46
+ */
47
+ confidential?: boolean;
48
+
49
+ /**
50
+ * List of role IDs allowed to view confidential requisition
51
+ */
52
+ confidential_whitelist?: Array<string>;
53
+
54
+ /**
55
+ * Coordinator role ID
56
+ */
57
+ coordinator_id?: string;
58
+
59
+ /**
60
+ * Whether to default to private invites
61
+ */
62
+ default_private_invites?: boolean;
63
+
64
+ /**
65
+ * List of department IDs
66
+ */
67
+ departments?: Array<string>;
68
+
69
+ /**
70
+ * Job description
71
+ */
72
+ description?: string;
73
+
74
+ /**
75
+ * Company employment type ID
76
+ */
77
+ employment_type_id?: string;
78
+
79
+ /**
80
+ * Hiring manager role ID
81
+ */
82
+ hiring_manager_id?: string;
83
+
84
+ /**
85
+ * Whether this is an evergreen requisition
86
+ */
87
+ is_evergreen?: boolean;
88
+
89
+ /**
90
+ * List of level IDs
91
+ */
92
+ levels?: Array<string>;
93
+
94
+ /**
95
+ * Pipeline plan ID to use for this requisition
96
+ */
97
+ pipeline_plan_id?: string;
98
+
99
+ /**
100
+ * Primary recruiter role ID
101
+ */
102
+ recruiter_id?: string;
103
+
104
+ /**
105
+ * Customer-defined requisition ID. Auto-generated if not provided.
106
+ */
107
+ requisition_id?: string;
108
+
109
+ /**
110
+ * Salary currency code
111
+ */
112
+ salary_currency?: string;
113
+
114
+ /**
115
+ * Salary amount per unit
116
+ */
117
+ salary_per_unit?: number;
118
+
119
+ /**
120
+ * Salary range upper bound
121
+ */
122
+ salary_per_unit_high?: number;
123
+
124
+ /**
125
+ * Salary range lower bound
126
+ */
127
+ salary_per_unit_low?: number;
128
+
129
+ /**
130
+ * Salary type
131
+ */
132
+ salary_type?: string;
133
+
134
+ /**
135
+ * Salary unit (HOUR, DAY, WEEK, MONTH, YEAR, PAY_PERIOD)
136
+ */
137
+ salary_unit?: string;
138
+
139
+ /**
140
+ * List of secondary recruiter role IDs
141
+ */
142
+ secondary_recruiters?: Array<string>;
143
+
144
+ /**
145
+ * Sourcer role ID
146
+ */
147
+ sourcer_id?: string;
148
+
149
+ /**
150
+ * Job requisition status (e.g., DRAFT, OPEN, CLOSED)
151
+ */
152
+ status?: string;
153
+
154
+ /**
155
+ * Target close date
156
+ */
157
+ target_close?: string;
158
+
159
+ /**
160
+ * Target employee start date
161
+ */
162
+ target_employee_start_date?: string;
163
+
164
+ /**
165
+ * List of team IDs
166
+ */
167
+ teams?: Array<string>;
168
+
169
+ /**
170
+ * Internal employee title
171
+ */
172
+ title?: string;
173
+
174
+ /**
175
+ * List of work location IDs
176
+ */
177
+ work_locations?: Array<string>;
178
+ }
179
+
180
+ export interface JobRequisitionsWriteCreateParams {
181
+ /**
182
+ * Title/name of the job requisition
183
+ */
184
+ name: string;
185
+
186
+ /**
187
+ * Whether this requisition is confidential
188
+ */
189
+ confidential?: boolean;
190
+
191
+ /**
192
+ * List of role IDs allowed to view confidential requisition
193
+ */
194
+ confidential_whitelist?: Array<string>;
195
+
196
+ /**
197
+ * Coordinator role ID
198
+ */
199
+ coordinator_id?: string;
200
+
201
+ /**
202
+ * Whether to default to private invites
203
+ */
204
+ default_private_invites?: boolean;
205
+
206
+ /**
207
+ * List of department IDs
208
+ */
209
+ departments?: Array<string>;
210
+
211
+ /**
212
+ * Job description
213
+ */
214
+ description?: string;
215
+
216
+ /**
217
+ * Company employment type ID
218
+ */
219
+ employment_type_id?: string;
220
+
221
+ /**
222
+ * Hiring manager role ID
223
+ */
224
+ hiring_manager_id?: string;
225
+
226
+ /**
227
+ * Whether this is an evergreen requisition
228
+ */
229
+ is_evergreen?: boolean;
230
+
231
+ /**
232
+ * List of level IDs
233
+ */
234
+ levels?: Array<string>;
235
+
236
+ /**
237
+ * Pipeline plan ID to use for this requisition
238
+ */
239
+ pipeline_plan_id?: string;
240
+
241
+ /**
242
+ * Primary recruiter role ID
243
+ */
244
+ recruiter_id?: string;
245
+
246
+ /**
247
+ * Customer-defined requisition ID. Auto-generated if not provided.
248
+ */
249
+ requisition_id?: string;
250
+
251
+ /**
252
+ * Salary currency code
253
+ */
254
+ salary_currency?: string;
255
+
256
+ /**
257
+ * Salary amount per unit
258
+ */
259
+ salary_per_unit?: number;
260
+
261
+ /**
262
+ * Salary range upper bound
263
+ */
264
+ salary_per_unit_high?: number;
265
+
266
+ /**
267
+ * Salary range lower bound
268
+ */
269
+ salary_per_unit_low?: number;
270
+
271
+ /**
272
+ * Salary type
273
+ */
274
+ salary_type?: string;
275
+
276
+ /**
277
+ * Salary unit (HOUR, DAY, WEEK, MONTH, YEAR, PAY_PERIOD)
278
+ */
279
+ salary_unit?: string;
280
+
281
+ /**
282
+ * List of secondary recruiter role IDs
283
+ */
284
+ secondary_recruiters?: Array<string>;
285
+
286
+ /**
287
+ * Sourcer role ID
288
+ */
289
+ sourcer_id?: string;
290
+
291
+ /**
292
+ * Job requisition status (e.g., DRAFT, OPEN, CLOSED)
293
+ */
294
+ status?: string;
295
+
296
+ /**
297
+ * Target close date
298
+ */
299
+ target_close?: string;
300
+
301
+ /**
302
+ * Target employee start date
303
+ */
304
+ target_employee_start_date?: string;
305
+
306
+ /**
307
+ * List of team IDs
308
+ */
309
+ teams?: Array<string>;
310
+
311
+ /**
312
+ * Internal employee title
313
+ */
314
+ title?: string;
315
+
316
+ /**
317
+ * List of work location IDs
318
+ */
319
+ work_locations?: Array<string>;
320
+ }
321
+
322
+ export declare namespace JobRequisitionsWrite {
323
+ export {
324
+ type JobRequisitionsWriteCreateResponse as JobRequisitionsWriteCreateResponse,
325
+ type JobRequisitionsWriteCreateParams as JobRequisitionsWriteCreateParams,
326
+ };
327
+ }
@@ -4,19 +4,28 @@ import { APIResource } from '../core/resource';
4
4
  import * as BusinessPartnersAPI from './business-partners';
5
5
  import * as WorkersAPI from './workers';
6
6
  import { APIPromise } from '../core/api-promise';
7
+ import { PageCursorURL, PagePromise } from '../core/pagination';
7
8
  import { RequestOptions } from '../internal/request-options';
8
9
  import { path } from '../internal/utils/path';
9
10
 
10
11
  export class LeaveAccruals extends APIResource {
11
12
  /**
12
- * Retrieve a specific leave accrual
13
- */
14
- retrieve(
15
- id: string,
16
- query: LeaveAccrualRetrieveParams | null | undefined = {},
13
+ * A List of leave accruals
14
+ *
15
+ * - Requires: `API Tier 2`
16
+ * - Filterable fields: `worker_id`, `leave_type_id`, `accrual_date`
17
+ * - Expandable fields: `worker`, `grantor`
18
+ * - Sortable fields: `id`, `created_at`, `updated_at`, `accrual_date`,
19
+ * `expiration_date`
20
+ */
21
+ list(
22
+ query: LeaveAccrualListParams | null | undefined = {},
17
23
  options?: RequestOptions,
18
- ): APIPromise<LeaveAccrualRetrieveResponse> {
19
- return this._client.get(path`/leave-accruals/${id}`, { query, ...options });
24
+ ): PagePromise<LeaveAccrualListResponsesPageCursorURL, LeaveAccrualListResponse> {
25
+ return this._client.getAPIList('/leave-accruals', PageCursorURL<LeaveAccrualListResponse>, {
26
+ query,
27
+ ...options,
28
+ });
20
29
  }
21
30
 
22
31
  /**
@@ -25,12 +34,28 @@ export class LeaveAccruals extends APIResource {
25
34
  create(body: LeaveAccrualCreateParams, options?: RequestOptions): APIPromise<LeaveAccrualCreateResponse> {
26
35
  return this._client.post('/leave-accruals', { body, ...options });
27
36
  }
37
+
38
+ /**
39
+ * Retrieve a specific leave accrual
40
+ */
41
+ retrieve(
42
+ id: string,
43
+ query: LeaveAccrualRetrieveParams | null | undefined = {},
44
+ options?: RequestOptions,
45
+ ): APIPromise<LeaveAccrualRetrieveResponse> {
46
+ return this._client.get(path`/leave-accruals/${id}`, { query, ...options });
47
+ }
28
48
  }
29
49
 
50
+ export type LeaveAccrualListResponsesPageCursorURL = PageCursorURL<LeaveAccrualListResponse>;
51
+
30
52
  /**
31
- * Meta information for the response.
53
+ * Leave accrual resource representing time off credits granted to employees.
54
+ *
55
+ * Leave accruals track the allocation of paid time off (vacation, sick days, etc.)
56
+ * to employees based on company policies, manual grants, or other accrual sources.
32
57
  */
33
- export interface LeaveAccrualRetrieveResponse extends BusinessPartnersAPI.Meta {
58
+ export interface LeaveAccrualListResponse {
34
59
  /**
35
60
  * Identifier field
36
61
  */
@@ -67,6 +92,30 @@ export interface LeaveAccrualRetrieveResponse extends BusinessPartnersAPI.Meta {
67
92
  */
68
93
  worker_id: string;
69
94
 
95
+ /**
96
+ * The type of accrual
97
+ */
98
+ accrual_type?:
99
+ | 'AUTO'
100
+ | 'CARRYOVER_PENALTY'
101
+ | 'RESET_PENALTY'
102
+ | 'RESET_NEGATIVE_PENALTY'
103
+ | 'BALANCE_PENALTY'
104
+ | 'LEAVE_GRANT'
105
+ | 'BALANCE_CORRECTION_ADJUSTMENT'
106
+ | 'PAID_OUT'
107
+ | 'SUB_BALANCE_EXPIRATION'
108
+ | 'TANDA_ACCRUAL_BONUS'
109
+ | 'TILT_ADJUSTMENT'
110
+ | 'WORKFLOW_ACTION'
111
+ | 'EXPIRATION_DEDUCTION'
112
+ | 'EXPIRATION_PAYOUT'
113
+ | 'MANUAL_BALANCE_PAYOUT'
114
+ | 'CARRYOVER_PENALTY_PAYOUT'
115
+ | 'RESET_PENALTY_PAYOUT'
116
+ | 'HOLIDAY_ADJUSTMENT'
117
+ | 'HOURS_WORKED_TANDA';
118
+
70
119
  /**
71
120
  * The comment for this accrual. This is required if the leave policy requires a
72
121
  * comment on accruals.
@@ -153,6 +202,30 @@ export interface LeaveAccrualCreateResponse {
153
202
  */
154
203
  worker_id: string;
155
204
 
205
+ /**
206
+ * The type of accrual
207
+ */
208
+ accrual_type?:
209
+ | 'AUTO'
210
+ | 'CARRYOVER_PENALTY'
211
+ | 'RESET_PENALTY'
212
+ | 'RESET_NEGATIVE_PENALTY'
213
+ | 'BALANCE_PENALTY'
214
+ | 'LEAVE_GRANT'
215
+ | 'BALANCE_CORRECTION_ADJUSTMENT'
216
+ | 'PAID_OUT'
217
+ | 'SUB_BALANCE_EXPIRATION'
218
+ | 'TANDA_ACCRUAL_BONUS'
219
+ | 'TILT_ADJUSTMENT'
220
+ | 'WORKFLOW_ACTION'
221
+ | 'EXPIRATION_DEDUCTION'
222
+ | 'EXPIRATION_PAYOUT'
223
+ | 'MANUAL_BALANCE_PAYOUT'
224
+ | 'CARRYOVER_PENALTY_PAYOUT'
225
+ | 'RESET_PENALTY_PAYOUT'
226
+ | 'HOLIDAY_ADJUSTMENT'
227
+ | 'HOURS_WORKED_TANDA';
228
+
156
229
  /**
157
230
  * The comment for this accrual. This is required if the leave policy requires a
158
231
  * comment on accruals.
@@ -196,8 +269,121 @@ export interface LeaveAccrualCreateResponse {
196
269
  worker?: WorkersAPI.Worker;
197
270
  }
198
271
 
199
- export interface LeaveAccrualRetrieveParams {
272
+ /**
273
+ * Meta information for the response.
274
+ */
275
+ export interface LeaveAccrualRetrieveResponse extends BusinessPartnersAPI.Meta {
276
+ /**
277
+ * Identifier field
278
+ */
279
+ id: string;
280
+
281
+ /**
282
+ * The date when this accrual becomes effective
283
+ */
284
+ accrual_date: string;
285
+
286
+ /**
287
+ * Record creation date
288
+ */
289
+ created_at: string;
290
+
291
+ /**
292
+ * The ID of the worker who granted this accrual. This is typically the Time Off
293
+ * admin.
294
+ */
295
+ grantor_id: string;
296
+
297
+ /**
298
+ * The company leave type ID associated with this accrual
299
+ */
300
+ leave_type_id: string;
301
+
302
+ /**
303
+ * Record update date
304
+ */
305
+ updated_at: string;
306
+
307
+ /**
308
+ * The ID of the worker for whom the accrual is for
309
+ */
310
+ worker_id: string;
311
+
312
+ /**
313
+ * The type of accrual
314
+ */
315
+ accrual_type?:
316
+ | 'AUTO'
317
+ | 'CARRYOVER_PENALTY'
318
+ | 'RESET_PENALTY'
319
+ | 'RESET_NEGATIVE_PENALTY'
320
+ | 'BALANCE_PENALTY'
321
+ | 'LEAVE_GRANT'
322
+ | 'BALANCE_CORRECTION_ADJUSTMENT'
323
+ | 'PAID_OUT'
324
+ | 'SUB_BALANCE_EXPIRATION'
325
+ | 'TANDA_ACCRUAL_BONUS'
326
+ | 'TILT_ADJUSTMENT'
327
+ | 'WORKFLOW_ACTION'
328
+ | 'EXPIRATION_DEDUCTION'
329
+ | 'EXPIRATION_PAYOUT'
330
+ | 'MANUAL_BALANCE_PAYOUT'
331
+ | 'CARRYOVER_PENALTY_PAYOUT'
332
+ | 'RESET_PENALTY_PAYOUT'
333
+ | 'HOLIDAY_ADJUSTMENT'
334
+ | 'HOURS_WORKED_TANDA';
335
+
336
+ /**
337
+ * The comment for this accrual. This is required if the leave policy requires a
338
+ * comment on accruals.
339
+ */
340
+ comment?: string;
341
+
342
+ /**
343
+ * The date when this accrual expires (if applicable)
344
+ */
345
+ expiration_date?: string;
346
+
347
+ /**
348
+ * The worker who granted this accrual. This is typically the Time Off admin.
349
+ *
350
+ * Expandable field
351
+ */
352
+ grantor?: WorkersAPI.Worker;
353
+
354
+ /**
355
+ * The monetary value of this accrual (for policies with monetary tracking)
356
+ */
357
+ monetary_amount_accrued?: number;
358
+
359
+ /**
360
+ * The number of days accrued. It can be negative for deductions. This is
361
+ * applicable if the policy tracks in days.
362
+ */
363
+ num_days?: number;
364
+
365
+ /**
366
+ * The number of hours accrued. It can be negative for deductions. This is
367
+ * applicable if the policy tracks in hours.
368
+ */
369
+ num_hours?: number;
370
+
371
+ /**
372
+ * The worker for whom the accrual is for
373
+ *
374
+ * Expandable field
375
+ */
376
+ worker?: WorkersAPI.Worker;
377
+ }
378
+
379
+ export interface LeaveAccrualListParams {
380
+ cursor?: string;
381
+
200
382
  expand?: string;
383
+
384
+ filter?: string;
385
+
386
+ order_by?: string;
201
387
  }
202
388
 
203
389
  export interface LeaveAccrualCreateParams {
@@ -222,6 +408,30 @@ export interface LeaveAccrualCreateParams {
222
408
  */
223
409
  worker_id: string;
224
410
 
411
+ /**
412
+ * The type of accrual
413
+ */
414
+ accrual_type?:
415
+ | 'AUTO'
416
+ | 'CARRYOVER_PENALTY'
417
+ | 'RESET_PENALTY'
418
+ | 'RESET_NEGATIVE_PENALTY'
419
+ | 'BALANCE_PENALTY'
420
+ | 'LEAVE_GRANT'
421
+ | 'BALANCE_CORRECTION_ADJUSTMENT'
422
+ | 'PAID_OUT'
423
+ | 'SUB_BALANCE_EXPIRATION'
424
+ | 'TANDA_ACCRUAL_BONUS'
425
+ | 'TILT_ADJUSTMENT'
426
+ | 'WORKFLOW_ACTION'
427
+ | 'EXPIRATION_DEDUCTION'
428
+ | 'EXPIRATION_PAYOUT'
429
+ | 'MANUAL_BALANCE_PAYOUT'
430
+ | 'CARRYOVER_PENALTY_PAYOUT'
431
+ | 'RESET_PENALTY_PAYOUT'
432
+ | 'HOLIDAY_ADJUSTMENT'
433
+ | 'HOURS_WORKED_TANDA';
434
+
225
435
  /**
226
436
  * The comment for this accrual. This is required if the leave policy requires a
227
437
  * comment on accruals.
@@ -251,11 +461,18 @@ export interface LeaveAccrualCreateParams {
251
461
  num_hours?: number;
252
462
  }
253
463
 
464
+ export interface LeaveAccrualRetrieveParams {
465
+ expand?: string;
466
+ }
467
+
254
468
  export declare namespace LeaveAccruals {
255
469
  export {
256
- type LeaveAccrualRetrieveResponse as LeaveAccrualRetrieveResponse,
470
+ type LeaveAccrualListResponse as LeaveAccrualListResponse,
257
471
  type LeaveAccrualCreateResponse as LeaveAccrualCreateResponse,
258
- type LeaveAccrualRetrieveParams as LeaveAccrualRetrieveParams,
472
+ type LeaveAccrualRetrieveResponse as LeaveAccrualRetrieveResponse,
473
+ type LeaveAccrualListResponsesPageCursorURL as LeaveAccrualListResponsesPageCursorURL,
474
+ type LeaveAccrualListParams as LeaveAccrualListParams,
259
475
  type LeaveAccrualCreateParams as LeaveAccrualCreateParams,
476
+ type LeaveAccrualRetrieveParams as LeaveAccrualRetrieveParams,
260
477
  };
261
478
  }