@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.
- package/LICENSE +1 -1
- package/client.d.mts +33 -11
- package/client.d.mts.map +1 -1
- package/client.d.ts +33 -11
- package/client.d.ts.map +1 -1
- package/client.js +21 -0
- package/client.js.map +1 -1
- package/client.mjs +21 -0
- package/client.mjs.map +1 -1
- package/functions.d.mts +4 -0
- package/functions.d.mts.map +1 -1
- package/functions.d.ts +4 -0
- package/functions.d.ts.map +1 -1
- package/functions.js +13 -1
- package/functions.js.map +1 -1
- package/functions.mjs +11 -0
- package/functions.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/compensation-bands-details.d.mts +95 -0
- package/resources/compensation-bands-details.d.mts.map +1 -0
- package/resources/compensation-bands-details.d.ts +95 -0
- package/resources/compensation-bands-details.d.ts.map +1 -0
- package/resources/compensation-bands-details.js +29 -0
- package/resources/compensation-bands-details.js.map +1 -0
- package/resources/compensation-bands-details.mjs +25 -0
- package/resources/compensation-bands-details.mjs.map +1 -0
- package/resources/custom-settings.d.mts +270 -0
- package/resources/custom-settings.d.mts.map +1 -0
- package/resources/custom-settings.d.ts +270 -0
- package/resources/custom-settings.d.ts.map +1 -0
- package/resources/custom-settings.js +51 -0
- package/resources/custom-settings.js.map +1 -0
- package/resources/custom-settings.mjs +47 -0
- package/resources/custom-settings.mjs.map +1 -0
- package/resources/departments.d.mts +37 -1
- package/resources/departments.d.mts.map +1 -1
- package/resources/departments.d.ts +37 -1
- package/resources/departments.d.ts.map +1 -1
- package/resources/departments.js +12 -0
- package/resources/departments.js.map +1 -1
- package/resources/departments.mjs +12 -0
- package/resources/departments.mjs.map +1 -1
- package/resources/draft-hires.d.mts +27 -0
- package/resources/draft-hires.d.mts.map +1 -1
- package/resources/draft-hires.d.ts +27 -0
- package/resources/draft-hires.d.ts.map +1 -1
- package/resources/functions/executions.d.mts +6 -82
- package/resources/functions/executions.d.mts.map +1 -1
- package/resources/functions/executions.d.ts +6 -82
- package/resources/functions/executions.d.ts.map +1 -1
- package/resources/functions/executions.js.map +1 -1
- package/resources/functions/executions.mjs.map +1 -1
- package/resources/functions/functions.d.mts +2 -2
- package/resources/functions/functions.d.mts.map +1 -1
- package/resources/functions/functions.d.ts +2 -2
- package/resources/functions/functions.d.ts.map +1 -1
- package/resources/functions/functions.js.map +1 -1
- package/resources/functions/functions.mjs.map +1 -1
- package/resources/functions/index.d.mts +1 -1
- package/resources/functions/index.d.mts.map +1 -1
- package/resources/functions/index.d.ts +1 -1
- package/resources/functions/index.d.ts.map +1 -1
- package/resources/functions/index.js.map +1 -1
- package/resources/functions/index.mjs.map +1 -1
- package/resources/index.d.mts +12 -5
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +12 -5
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +15 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +7 -0
- package/resources/index.mjs.map +1 -1
- package/resources/job-assignments.d.mts +70 -6
- package/resources/job-assignments.d.mts.map +1 -1
- package/resources/job-assignments.d.ts +70 -6
- package/resources/job-assignments.d.ts.map +1 -1
- package/resources/job-assignments.js +22 -0
- package/resources/job-assignments.js.map +1 -1
- package/resources/job-assignments.mjs +22 -0
- package/resources/job-assignments.mjs.map +1 -1
- package/resources/job-codes.d.mts +47 -1
- package/resources/job-codes.d.mts.map +1 -1
- package/resources/job-codes.d.ts +47 -1
- package/resources/job-codes.d.ts.map +1 -1
- package/resources/job-dimensions.d.mts +20 -0
- package/resources/job-dimensions.d.mts.map +1 -1
- package/resources/job-dimensions.d.ts +20 -0
- package/resources/job-dimensions.d.ts.map +1 -1
- package/resources/job-requisitions-write.d.mts +257 -0
- package/resources/job-requisitions-write.d.mts.map +1 -0
- package/resources/job-requisitions-write.d.ts +257 -0
- package/resources/job-requisitions-write.d.ts.map +1 -0
- package/resources/job-requisitions-write.js +15 -0
- package/resources/job-requisitions-write.js.map +1 -0
- package/resources/job-requisitions-write.mjs +11 -0
- package/resources/job-requisitions-write.mjs.map +1 -0
- package/resources/leave-accruals.d.mts +112 -6
- package/resources/leave-accruals.d.mts.map +1 -1
- package/resources/leave-accruals.d.ts +112 -6
- package/resources/leave-accruals.d.ts.map +1 -1
- package/resources/leave-accruals.js +19 -3
- package/resources/leave-accruals.js.map +1 -1
- package/resources/leave-accruals.mjs +19 -3
- package/resources/leave-accruals.mjs.map +1 -1
- package/resources/report-runs.d.mts +149 -0
- package/resources/report-runs.d.mts.map +1 -0
- package/resources/report-runs.d.ts +149 -0
- package/resources/report-runs.d.ts.map +1 -0
- package/resources/report-runs.js +22 -0
- package/resources/report-runs.js.map +1 -0
- package/resources/report-runs.mjs +18 -0
- package/resources/report-runs.mjs.map +1 -0
- package/resources/shared.d.mts +35 -0
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +35 -0
- package/resources/shared.d.ts.map +1 -1
- package/resources/shift-assignments.d.mts +296 -0
- package/resources/shift-assignments.d.mts.map +1 -0
- package/resources/shift-assignments.d.ts +296 -0
- package/resources/shift-assignments.d.ts.map +1 -0
- package/resources/shift-assignments.js +25 -0
- package/resources/shift-assignments.js.map +1 -0
- package/resources/shift-assignments.mjs +21 -0
- package/resources/shift-assignments.mjs.map +1 -0
- package/resources/shiftassignments.d.mts +56 -4
- package/resources/shiftassignments.d.mts.map +1 -1
- package/resources/shiftassignments.d.ts +56 -4
- package/resources/shiftassignments.d.ts.map +1 -1
- package/resources/supergroups/exclusion-members.d.mts +3 -3
- package/resources/supergroups/exclusion-members.d.mts.map +1 -1
- package/resources/supergroups/exclusion-members.d.ts +3 -3
- package/resources/supergroups/exclusion-members.d.ts.map +1 -1
- package/resources/supergroups/exclusion-members.js.map +1 -1
- package/resources/supergroups/exclusion-members.mjs.map +1 -1
- package/resources/supergroups/inclusion-members.d.mts +3 -3
- package/resources/supergroups/inclusion-members.d.mts.map +1 -1
- package/resources/supergroups/inclusion-members.d.ts +3 -3
- package/resources/supergroups/inclusion-members.d.ts.map +1 -1
- package/resources/supergroups/inclusion-members.js.map +1 -1
- package/resources/supergroups/inclusion-members.mjs.map +1 -1
- package/resources/supergroups/index.d.mts +1 -1
- package/resources/supergroups/index.d.mts.map +1 -1
- package/resources/supergroups/index.d.ts +1 -1
- package/resources/supergroups/index.d.ts.map +1 -1
- package/resources/supergroups/index.js.map +1 -1
- package/resources/supergroups/index.mjs.map +1 -1
- package/resources/supergroups/members.d.mts +6 -37
- package/resources/supergroups/members.d.mts.map +1 -1
- package/resources/supergroups/members.d.ts +6 -37
- package/resources/supergroups/members.d.ts.map +1 -1
- package/resources/supergroups/members.js.map +1 -1
- package/resources/supergroups/members.mjs.map +1 -1
- package/resources/supergroups/supergroups.d.mts +2 -2
- package/resources/supergroups/supergroups.d.mts.map +1 -1
- package/resources/supergroups/supergroups.d.ts +2 -2
- package/resources/supergroups/supergroups.d.ts.map +1 -1
- package/resources/supergroups/supergroups.js.map +1 -1
- package/resources/supergroups/supergroups.mjs.map +1 -1
- package/resources/titles.d.mts +126 -0
- package/resources/titles.d.mts.map +1 -0
- package/resources/titles.d.ts +126 -0
- package/resources/titles.d.ts.map +1 -0
- package/resources/titles.js +48 -0
- package/resources/titles.js.map +1 -0
- package/resources/titles.mjs +44 -0
- package/resources/titles.mjs.map +1 -0
- package/resources/unassigned-shifts.d.mts +334 -0
- package/resources/unassigned-shifts.d.mts.map +1 -0
- package/resources/unassigned-shifts.d.ts +334 -0
- package/resources/unassigned-shifts.d.ts.map +1 -0
- package/resources/unassigned-shifts.js +42 -0
- package/resources/unassigned-shifts.js.map +1 -0
- package/resources/unassigned-shifts.mjs +38 -0
- package/resources/unassigned-shifts.mjs.map +1 -0
- package/resources/unassignedshifts.d.mts +382 -1
- package/resources/unassignedshifts.d.mts.map +1 -1
- package/resources/unassignedshifts.d.ts +382 -1
- package/resources/unassignedshifts.d.ts.map +1 -1
- package/resources/unassignedshifts.js +6 -0
- package/resources/unassignedshifts.js.map +1 -1
- package/resources/unassignedshifts.mjs +6 -0
- package/resources/unassignedshifts.mjs.map +1 -1
- package/resources/work-locations.d.mts +95 -1
- package/resources/work-locations.d.mts.map +1 -1
- package/resources/work-locations.d.ts +95 -1
- package/resources/work-locations.d.ts.map +1 -1
- package/resources/work-locations.js +12 -0
- package/resources/work-locations.js.map +1 -1
- package/resources/work-locations.mjs +12 -0
- package/resources/work-locations.mjs.map +1 -1
- package/src/client.ts +153 -3
- package/src/functions.ts +14 -0
- package/src/resources/compensation-bands-details.ts +140 -0
- package/src/resources/custom-settings.ts +371 -0
- package/src/resources/departments.ts +50 -0
- package/src/resources/draft-hires.ts +32 -0
- package/src/resources/functions/executions.ts +8 -104
- package/src/resources/functions/functions.ts +4 -8
- package/src/resources/functions/index.ts +2 -4
- package/src/resources/index.ts +66 -2
- package/src/resources/job-assignments.ts +95 -6
- package/src/resources/job-codes.ts +56 -1
- package/src/resources/job-dimensions.ts +24 -0
- package/src/resources/job-requisitions-write.ts +327 -0
- package/src/resources/leave-accruals.ts +229 -12
- package/src/resources/report-runs.ts +186 -0
- package/src/resources/shared.ts +44 -0
- package/src/resources/shift-assignments.ts +362 -0
- package/src/resources/shiftassignments.ts +70 -5
- package/src/resources/supergroups/exclusion-members.ts +4 -4
- package/src/resources/supergroups/inclusion-members.ts +4 -4
- package/src/resources/supergroups/index.ts +1 -1
- package/src/resources/supergroups/members.ts +7 -49
- package/src/resources/supergroups/supergroups.ts +2 -7
- package/src/resources/titles.ts +181 -0
- package/src/resources/unassigned-shifts.ts +415 -0
- package/src/resources/unassignedshifts.ts +467 -0
- package/src/resources/work-locations.ts +118 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
4
|
+
export declare class JobRequisitionsWrite extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Create a new job requisition
|
|
7
|
+
*/
|
|
8
|
+
create(body: JobRequisitionsWriteCreateParams, options?: RequestOptions): APIPromise<JobRequisitionsWriteCreateResponse>;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* DTO for creating JobRequisitions via the Platform API.
|
|
12
|
+
* Maps to the existing ATS JobRequisitionDTO for use with create_from_DTO service.
|
|
13
|
+
*/
|
|
14
|
+
export interface JobRequisitionsWriteCreateResponse {
|
|
15
|
+
/**
|
|
16
|
+
* Identifier field
|
|
17
|
+
*/
|
|
18
|
+
id: string;
|
|
19
|
+
/**
|
|
20
|
+
* Record creation date
|
|
21
|
+
*/
|
|
22
|
+
created_at: string;
|
|
23
|
+
/**
|
|
24
|
+
* Title/name of the job requisition
|
|
25
|
+
*/
|
|
26
|
+
name: string;
|
|
27
|
+
/**
|
|
28
|
+
* Record update date
|
|
29
|
+
*/
|
|
30
|
+
updated_at: string;
|
|
31
|
+
/**
|
|
32
|
+
* Whether this requisition is confidential
|
|
33
|
+
*/
|
|
34
|
+
confidential?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* List of role IDs allowed to view confidential requisition
|
|
37
|
+
*/
|
|
38
|
+
confidential_whitelist?: Array<string>;
|
|
39
|
+
/**
|
|
40
|
+
* Coordinator role ID
|
|
41
|
+
*/
|
|
42
|
+
coordinator_id?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Whether to default to private invites
|
|
45
|
+
*/
|
|
46
|
+
default_private_invites?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* List of department IDs
|
|
49
|
+
*/
|
|
50
|
+
departments?: Array<string>;
|
|
51
|
+
/**
|
|
52
|
+
* Job description
|
|
53
|
+
*/
|
|
54
|
+
description?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Company employment type ID
|
|
57
|
+
*/
|
|
58
|
+
employment_type_id?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Hiring manager role ID
|
|
61
|
+
*/
|
|
62
|
+
hiring_manager_id?: string;
|
|
63
|
+
/**
|
|
64
|
+
* Whether this is an evergreen requisition
|
|
65
|
+
*/
|
|
66
|
+
is_evergreen?: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* List of level IDs
|
|
69
|
+
*/
|
|
70
|
+
levels?: Array<string>;
|
|
71
|
+
/**
|
|
72
|
+
* Pipeline plan ID to use for this requisition
|
|
73
|
+
*/
|
|
74
|
+
pipeline_plan_id?: string;
|
|
75
|
+
/**
|
|
76
|
+
* Primary recruiter role ID
|
|
77
|
+
*/
|
|
78
|
+
recruiter_id?: string;
|
|
79
|
+
/**
|
|
80
|
+
* Customer-defined requisition ID. Auto-generated if not provided.
|
|
81
|
+
*/
|
|
82
|
+
requisition_id?: string;
|
|
83
|
+
/**
|
|
84
|
+
* Salary currency code
|
|
85
|
+
*/
|
|
86
|
+
salary_currency?: string;
|
|
87
|
+
/**
|
|
88
|
+
* Salary amount per unit
|
|
89
|
+
*/
|
|
90
|
+
salary_per_unit?: number;
|
|
91
|
+
/**
|
|
92
|
+
* Salary range upper bound
|
|
93
|
+
*/
|
|
94
|
+
salary_per_unit_high?: number;
|
|
95
|
+
/**
|
|
96
|
+
* Salary range lower bound
|
|
97
|
+
*/
|
|
98
|
+
salary_per_unit_low?: number;
|
|
99
|
+
/**
|
|
100
|
+
* Salary type
|
|
101
|
+
*/
|
|
102
|
+
salary_type?: string;
|
|
103
|
+
/**
|
|
104
|
+
* Salary unit (HOUR, DAY, WEEK, MONTH, YEAR, PAY_PERIOD)
|
|
105
|
+
*/
|
|
106
|
+
salary_unit?: string;
|
|
107
|
+
/**
|
|
108
|
+
* List of secondary recruiter role IDs
|
|
109
|
+
*/
|
|
110
|
+
secondary_recruiters?: Array<string>;
|
|
111
|
+
/**
|
|
112
|
+
* Sourcer role ID
|
|
113
|
+
*/
|
|
114
|
+
sourcer_id?: string;
|
|
115
|
+
/**
|
|
116
|
+
* Job requisition status (e.g., DRAFT, OPEN, CLOSED)
|
|
117
|
+
*/
|
|
118
|
+
status?: string;
|
|
119
|
+
/**
|
|
120
|
+
* Target close date
|
|
121
|
+
*/
|
|
122
|
+
target_close?: string;
|
|
123
|
+
/**
|
|
124
|
+
* Target employee start date
|
|
125
|
+
*/
|
|
126
|
+
target_employee_start_date?: string;
|
|
127
|
+
/**
|
|
128
|
+
* List of team IDs
|
|
129
|
+
*/
|
|
130
|
+
teams?: Array<string>;
|
|
131
|
+
/**
|
|
132
|
+
* Internal employee title
|
|
133
|
+
*/
|
|
134
|
+
title?: string;
|
|
135
|
+
/**
|
|
136
|
+
* List of work location IDs
|
|
137
|
+
*/
|
|
138
|
+
work_locations?: Array<string>;
|
|
139
|
+
}
|
|
140
|
+
export interface JobRequisitionsWriteCreateParams {
|
|
141
|
+
/**
|
|
142
|
+
* Title/name of the job requisition
|
|
143
|
+
*/
|
|
144
|
+
name: string;
|
|
145
|
+
/**
|
|
146
|
+
* Whether this requisition is confidential
|
|
147
|
+
*/
|
|
148
|
+
confidential?: boolean;
|
|
149
|
+
/**
|
|
150
|
+
* List of role IDs allowed to view confidential requisition
|
|
151
|
+
*/
|
|
152
|
+
confidential_whitelist?: Array<string>;
|
|
153
|
+
/**
|
|
154
|
+
* Coordinator role ID
|
|
155
|
+
*/
|
|
156
|
+
coordinator_id?: string;
|
|
157
|
+
/**
|
|
158
|
+
* Whether to default to private invites
|
|
159
|
+
*/
|
|
160
|
+
default_private_invites?: boolean;
|
|
161
|
+
/**
|
|
162
|
+
* List of department IDs
|
|
163
|
+
*/
|
|
164
|
+
departments?: Array<string>;
|
|
165
|
+
/**
|
|
166
|
+
* Job description
|
|
167
|
+
*/
|
|
168
|
+
description?: string;
|
|
169
|
+
/**
|
|
170
|
+
* Company employment type ID
|
|
171
|
+
*/
|
|
172
|
+
employment_type_id?: string;
|
|
173
|
+
/**
|
|
174
|
+
* Hiring manager role ID
|
|
175
|
+
*/
|
|
176
|
+
hiring_manager_id?: string;
|
|
177
|
+
/**
|
|
178
|
+
* Whether this is an evergreen requisition
|
|
179
|
+
*/
|
|
180
|
+
is_evergreen?: boolean;
|
|
181
|
+
/**
|
|
182
|
+
* List of level IDs
|
|
183
|
+
*/
|
|
184
|
+
levels?: Array<string>;
|
|
185
|
+
/**
|
|
186
|
+
* Pipeline plan ID to use for this requisition
|
|
187
|
+
*/
|
|
188
|
+
pipeline_plan_id?: string;
|
|
189
|
+
/**
|
|
190
|
+
* Primary recruiter role ID
|
|
191
|
+
*/
|
|
192
|
+
recruiter_id?: string;
|
|
193
|
+
/**
|
|
194
|
+
* Customer-defined requisition ID. Auto-generated if not provided.
|
|
195
|
+
*/
|
|
196
|
+
requisition_id?: string;
|
|
197
|
+
/**
|
|
198
|
+
* Salary currency code
|
|
199
|
+
*/
|
|
200
|
+
salary_currency?: string;
|
|
201
|
+
/**
|
|
202
|
+
* Salary amount per unit
|
|
203
|
+
*/
|
|
204
|
+
salary_per_unit?: number;
|
|
205
|
+
/**
|
|
206
|
+
* Salary range upper bound
|
|
207
|
+
*/
|
|
208
|
+
salary_per_unit_high?: number;
|
|
209
|
+
/**
|
|
210
|
+
* Salary range lower bound
|
|
211
|
+
*/
|
|
212
|
+
salary_per_unit_low?: number;
|
|
213
|
+
/**
|
|
214
|
+
* Salary type
|
|
215
|
+
*/
|
|
216
|
+
salary_type?: string;
|
|
217
|
+
/**
|
|
218
|
+
* Salary unit (HOUR, DAY, WEEK, MONTH, YEAR, PAY_PERIOD)
|
|
219
|
+
*/
|
|
220
|
+
salary_unit?: string;
|
|
221
|
+
/**
|
|
222
|
+
* List of secondary recruiter role IDs
|
|
223
|
+
*/
|
|
224
|
+
secondary_recruiters?: Array<string>;
|
|
225
|
+
/**
|
|
226
|
+
* Sourcer role ID
|
|
227
|
+
*/
|
|
228
|
+
sourcer_id?: string;
|
|
229
|
+
/**
|
|
230
|
+
* Job requisition status (e.g., DRAFT, OPEN, CLOSED)
|
|
231
|
+
*/
|
|
232
|
+
status?: string;
|
|
233
|
+
/**
|
|
234
|
+
* Target close date
|
|
235
|
+
*/
|
|
236
|
+
target_close?: string;
|
|
237
|
+
/**
|
|
238
|
+
* Target employee start date
|
|
239
|
+
*/
|
|
240
|
+
target_employee_start_date?: string;
|
|
241
|
+
/**
|
|
242
|
+
* List of team IDs
|
|
243
|
+
*/
|
|
244
|
+
teams?: Array<string>;
|
|
245
|
+
/**
|
|
246
|
+
* Internal employee title
|
|
247
|
+
*/
|
|
248
|
+
title?: string;
|
|
249
|
+
/**
|
|
250
|
+
* List of work location IDs
|
|
251
|
+
*/
|
|
252
|
+
work_locations?: Array<string>;
|
|
253
|
+
}
|
|
254
|
+
export declare namespace JobRequisitionsWrite {
|
|
255
|
+
export { type JobRequisitionsWriteCreateResponse as JobRequisitionsWriteCreateResponse, type JobRequisitionsWriteCreateParams as JobRequisitionsWriteCreateParams, };
|
|
256
|
+
}
|
|
257
|
+
//# sourceMappingURL=job-requisitions-write.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"job-requisitions-write.d.ts","sourceRoot":"","sources":["../src/resources/job-requisitions-write.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,oBAAqB,SAAQ,WAAW;IACnD;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,gCAAgC,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kCAAkC,CAAC;CAGlD;AAED;;;GAGG;AACH,MAAM,WAAW,kCAAkC;IACjD;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;OAEG;IACH,sBAAsB,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IACH,oBAAoB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAErC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,0BAA0B,CAAC,EAAE,MAAM,CAAC;IAEpC;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEtB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAChC;AAED,MAAM,CAAC,OAAO,WAAW,oBAAoB,CAAC;IAC5C,OAAO,EACL,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,gCAAgC,IAAI,gCAAgC,GAC1E,CAAC;CACH"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.JobRequisitionsWrite = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
class JobRequisitionsWrite extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Create a new job requisition
|
|
9
|
+
*/
|
|
10
|
+
create(body, options) {
|
|
11
|
+
return this._client.post('/job-requisitions-write', { body, ...options });
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.JobRequisitionsWrite = JobRequisitionsWrite;
|
|
15
|
+
//# sourceMappingURL=job-requisitions-write.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"job-requisitions-write.js","sourceRoot":"","sources":["../src/resources/job-requisitions-write.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,oBAAqB,SAAQ,sBAAW;IACnD;;OAEG;IACH,MAAM,CACJ,IAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;CACF;AAVD,oDAUC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
export class JobRequisitionsWrite extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Create a new job requisition
|
|
6
|
+
*/
|
|
7
|
+
create(body, options) {
|
|
8
|
+
return this._client.post('/job-requisitions-write', { body, ...options });
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=job-requisitions-write.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"job-requisitions-write.mjs","sourceRoot":"","sources":["../src/resources/job-requisitions-write.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,oBAAqB,SAAQ,WAAW;IACnD;;OAEG;IACH,MAAM,CACJ,IAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;CACF"}
|
|
@@ -2,21 +2,36 @@ import { APIResource } from "../core/resource.mjs";
|
|
|
2
2
|
import * as BusinessPartnersAPI from "./business-partners.mjs";
|
|
3
3
|
import * as WorkersAPI from "./workers.mjs";
|
|
4
4
|
import { APIPromise } from "../core/api-promise.mjs";
|
|
5
|
+
import { PageCursorURL, PagePromise } from "../core/pagination.mjs";
|
|
5
6
|
import { RequestOptions } from "../internal/request-options.mjs";
|
|
6
7
|
export declare class LeaveAccruals extends APIResource {
|
|
7
8
|
/**
|
|
8
|
-
*
|
|
9
|
+
* A List of leave accruals
|
|
10
|
+
*
|
|
11
|
+
* - Requires: `API Tier 2`
|
|
12
|
+
* - Filterable fields: `worker_id`, `leave_type_id`, `accrual_date`
|
|
13
|
+
* - Expandable fields: `worker`, `grantor`
|
|
14
|
+
* - Sortable fields: `id`, `created_at`, `updated_at`, `accrual_date`,
|
|
15
|
+
* `expiration_date`
|
|
9
16
|
*/
|
|
10
|
-
|
|
17
|
+
list(query?: LeaveAccrualListParams | null | undefined, options?: RequestOptions): PagePromise<LeaveAccrualListResponsesPageCursorURL, LeaveAccrualListResponse>;
|
|
11
18
|
/**
|
|
12
19
|
* Create a new leave accrual
|
|
13
20
|
*/
|
|
14
21
|
create(body: LeaveAccrualCreateParams, options?: RequestOptions): APIPromise<LeaveAccrualCreateResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Retrieve a specific leave accrual
|
|
24
|
+
*/
|
|
25
|
+
retrieve(id: string, query?: LeaveAccrualRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<LeaveAccrualRetrieveResponse>;
|
|
15
26
|
}
|
|
27
|
+
export type LeaveAccrualListResponsesPageCursorURL = PageCursorURL<LeaveAccrualListResponse>;
|
|
16
28
|
/**
|
|
17
|
-
*
|
|
29
|
+
* Leave accrual resource representing time off credits granted to employees.
|
|
30
|
+
*
|
|
31
|
+
* Leave accruals track the allocation of paid time off (vacation, sick days, etc.)
|
|
32
|
+
* to employees based on company policies, manual grants, or other accrual sources.
|
|
18
33
|
*/
|
|
19
|
-
export interface
|
|
34
|
+
export interface LeaveAccrualListResponse {
|
|
20
35
|
/**
|
|
21
36
|
* Identifier field
|
|
22
37
|
*/
|
|
@@ -46,6 +61,10 @@ export interface LeaveAccrualRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
|
46
61
|
* The ID of the worker for whom the accrual is for
|
|
47
62
|
*/
|
|
48
63
|
worker_id: string;
|
|
64
|
+
/**
|
|
65
|
+
* The type of accrual
|
|
66
|
+
*/
|
|
67
|
+
accrual_type?: 'AUTO' | 'CARRYOVER_PENALTY' | 'RESET_PENALTY' | 'RESET_NEGATIVE_PENALTY' | 'BALANCE_PENALTY' | 'LEAVE_GRANT' | 'BALANCE_CORRECTION_ADJUSTMENT' | 'PAID_OUT' | 'SUB_BALANCE_EXPIRATION' | 'TANDA_ACCRUAL_BONUS' | 'TILT_ADJUSTMENT' | 'WORKFLOW_ACTION' | 'EXPIRATION_DEDUCTION' | 'EXPIRATION_PAYOUT' | 'MANUAL_BALANCE_PAYOUT' | 'CARRYOVER_PENALTY_PAYOUT' | 'RESET_PENALTY_PAYOUT' | 'HOLIDAY_ADJUSTMENT' | 'HOURS_WORKED_TANDA';
|
|
49
68
|
/**
|
|
50
69
|
* The comment for this accrual. This is required if the leave policy requires a
|
|
51
70
|
* comment on accruals.
|
|
@@ -118,6 +137,10 @@ export interface LeaveAccrualCreateResponse {
|
|
|
118
137
|
* The ID of the worker for whom the accrual is for
|
|
119
138
|
*/
|
|
120
139
|
worker_id: string;
|
|
140
|
+
/**
|
|
141
|
+
* The type of accrual
|
|
142
|
+
*/
|
|
143
|
+
accrual_type?: 'AUTO' | 'CARRYOVER_PENALTY' | 'RESET_PENALTY' | 'RESET_NEGATIVE_PENALTY' | 'BALANCE_PENALTY' | 'LEAVE_GRANT' | 'BALANCE_CORRECTION_ADJUSTMENT' | 'PAID_OUT' | 'SUB_BALANCE_EXPIRATION' | 'TANDA_ACCRUAL_BONUS' | 'TILT_ADJUSTMENT' | 'WORKFLOW_ACTION' | 'EXPIRATION_DEDUCTION' | 'EXPIRATION_PAYOUT' | 'MANUAL_BALANCE_PAYOUT' | 'CARRYOVER_PENALTY_PAYOUT' | 'RESET_PENALTY_PAYOUT' | 'HOLIDAY_ADJUSTMENT' | 'HOURS_WORKED_TANDA';
|
|
121
144
|
/**
|
|
122
145
|
* The comment for this accrual. This is required if the leave policy requires a
|
|
123
146
|
* comment on accruals.
|
|
@@ -154,8 +177,84 @@ export interface LeaveAccrualCreateResponse {
|
|
|
154
177
|
*/
|
|
155
178
|
worker?: WorkersAPI.Worker;
|
|
156
179
|
}
|
|
157
|
-
|
|
180
|
+
/**
|
|
181
|
+
* Meta information for the response.
|
|
182
|
+
*/
|
|
183
|
+
export interface LeaveAccrualRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
184
|
+
/**
|
|
185
|
+
* Identifier field
|
|
186
|
+
*/
|
|
187
|
+
id: string;
|
|
188
|
+
/**
|
|
189
|
+
* The date when this accrual becomes effective
|
|
190
|
+
*/
|
|
191
|
+
accrual_date: string;
|
|
192
|
+
/**
|
|
193
|
+
* Record creation date
|
|
194
|
+
*/
|
|
195
|
+
created_at: string;
|
|
196
|
+
/**
|
|
197
|
+
* The ID of the worker who granted this accrual. This is typically the Time Off
|
|
198
|
+
* admin.
|
|
199
|
+
*/
|
|
200
|
+
grantor_id: string;
|
|
201
|
+
/**
|
|
202
|
+
* The company leave type ID associated with this accrual
|
|
203
|
+
*/
|
|
204
|
+
leave_type_id: string;
|
|
205
|
+
/**
|
|
206
|
+
* Record update date
|
|
207
|
+
*/
|
|
208
|
+
updated_at: string;
|
|
209
|
+
/**
|
|
210
|
+
* The ID of the worker for whom the accrual is for
|
|
211
|
+
*/
|
|
212
|
+
worker_id: string;
|
|
213
|
+
/**
|
|
214
|
+
* The type of accrual
|
|
215
|
+
*/
|
|
216
|
+
accrual_type?: 'AUTO' | 'CARRYOVER_PENALTY' | 'RESET_PENALTY' | 'RESET_NEGATIVE_PENALTY' | 'BALANCE_PENALTY' | 'LEAVE_GRANT' | 'BALANCE_CORRECTION_ADJUSTMENT' | 'PAID_OUT' | 'SUB_BALANCE_EXPIRATION' | 'TANDA_ACCRUAL_BONUS' | 'TILT_ADJUSTMENT' | 'WORKFLOW_ACTION' | 'EXPIRATION_DEDUCTION' | 'EXPIRATION_PAYOUT' | 'MANUAL_BALANCE_PAYOUT' | 'CARRYOVER_PENALTY_PAYOUT' | 'RESET_PENALTY_PAYOUT' | 'HOLIDAY_ADJUSTMENT' | 'HOURS_WORKED_TANDA';
|
|
217
|
+
/**
|
|
218
|
+
* The comment for this accrual. This is required if the leave policy requires a
|
|
219
|
+
* comment on accruals.
|
|
220
|
+
*/
|
|
221
|
+
comment?: string;
|
|
222
|
+
/**
|
|
223
|
+
* The date when this accrual expires (if applicable)
|
|
224
|
+
*/
|
|
225
|
+
expiration_date?: string;
|
|
226
|
+
/**
|
|
227
|
+
* The worker who granted this accrual. This is typically the Time Off admin.
|
|
228
|
+
*
|
|
229
|
+
* Expandable field
|
|
230
|
+
*/
|
|
231
|
+
grantor?: WorkersAPI.Worker;
|
|
232
|
+
/**
|
|
233
|
+
* The monetary value of this accrual (for policies with monetary tracking)
|
|
234
|
+
*/
|
|
235
|
+
monetary_amount_accrued?: number;
|
|
236
|
+
/**
|
|
237
|
+
* The number of days accrued. It can be negative for deductions. This is
|
|
238
|
+
* applicable if the policy tracks in days.
|
|
239
|
+
*/
|
|
240
|
+
num_days?: number;
|
|
241
|
+
/**
|
|
242
|
+
* The number of hours accrued. It can be negative for deductions. This is
|
|
243
|
+
* applicable if the policy tracks in hours.
|
|
244
|
+
*/
|
|
245
|
+
num_hours?: number;
|
|
246
|
+
/**
|
|
247
|
+
* The worker for whom the accrual is for
|
|
248
|
+
*
|
|
249
|
+
* Expandable field
|
|
250
|
+
*/
|
|
251
|
+
worker?: WorkersAPI.Worker;
|
|
252
|
+
}
|
|
253
|
+
export interface LeaveAccrualListParams {
|
|
254
|
+
cursor?: string;
|
|
158
255
|
expand?: string;
|
|
256
|
+
filter?: string;
|
|
257
|
+
order_by?: string;
|
|
159
258
|
}
|
|
160
259
|
export interface LeaveAccrualCreateParams {
|
|
161
260
|
/**
|
|
@@ -175,6 +274,10 @@ export interface LeaveAccrualCreateParams {
|
|
|
175
274
|
* The ID of the worker for whom the accrual is for
|
|
176
275
|
*/
|
|
177
276
|
worker_id: string;
|
|
277
|
+
/**
|
|
278
|
+
* The type of accrual
|
|
279
|
+
*/
|
|
280
|
+
accrual_type?: 'AUTO' | 'CARRYOVER_PENALTY' | 'RESET_PENALTY' | 'RESET_NEGATIVE_PENALTY' | 'BALANCE_PENALTY' | 'LEAVE_GRANT' | 'BALANCE_CORRECTION_ADJUSTMENT' | 'PAID_OUT' | 'SUB_BALANCE_EXPIRATION' | 'TANDA_ACCRUAL_BONUS' | 'TILT_ADJUSTMENT' | 'WORKFLOW_ACTION' | 'EXPIRATION_DEDUCTION' | 'EXPIRATION_PAYOUT' | 'MANUAL_BALANCE_PAYOUT' | 'CARRYOVER_PENALTY_PAYOUT' | 'RESET_PENALTY_PAYOUT' | 'HOLIDAY_ADJUSTMENT' | 'HOURS_WORKED_TANDA';
|
|
178
281
|
/**
|
|
179
282
|
* The comment for this accrual. This is required if the leave policy requires a
|
|
180
283
|
* comment on accruals.
|
|
@@ -199,7 +302,10 @@ export interface LeaveAccrualCreateParams {
|
|
|
199
302
|
*/
|
|
200
303
|
num_hours?: number;
|
|
201
304
|
}
|
|
305
|
+
export interface LeaveAccrualRetrieveParams {
|
|
306
|
+
expand?: string;
|
|
307
|
+
}
|
|
202
308
|
export declare namespace LeaveAccruals {
|
|
203
|
-
export { type
|
|
309
|
+
export { type LeaveAccrualListResponse as LeaveAccrualListResponse, type LeaveAccrualCreateResponse as LeaveAccrualCreateResponse, type LeaveAccrualRetrieveResponse as LeaveAccrualRetrieveResponse, type LeaveAccrualListResponsesPageCursorURL as LeaveAccrualListResponsesPageCursorURL, type LeaveAccrualListParams as LeaveAccrualListParams, type LeaveAccrualCreateParams as LeaveAccrualCreateParams, type LeaveAccrualRetrieveParams as LeaveAccrualRetrieveParams, };
|
|
204
310
|
}
|
|
205
311
|
//# sourceMappingURL=leave-accruals.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leave-accruals.d.mts","sourceRoot":"","sources":["../src/resources/leave-accruals.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAA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B;;OAEG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;IAEjC;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,0BAA0B;IACzC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,sCAAsC,IAAI,sCAAsC,EACrF,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -2,21 +2,36 @@ import { APIResource } from "../core/resource.js";
|
|
|
2
2
|
import * as BusinessPartnersAPI from "./business-partners.js";
|
|
3
3
|
import * as WorkersAPI from "./workers.js";
|
|
4
4
|
import { APIPromise } from "../core/api-promise.js";
|
|
5
|
+
import { PageCursorURL, PagePromise } from "../core/pagination.js";
|
|
5
6
|
import { RequestOptions } from "../internal/request-options.js";
|
|
6
7
|
export declare class LeaveAccruals extends APIResource {
|
|
7
8
|
/**
|
|
8
|
-
*
|
|
9
|
+
* A List of leave accruals
|
|
10
|
+
*
|
|
11
|
+
* - Requires: `API Tier 2`
|
|
12
|
+
* - Filterable fields: `worker_id`, `leave_type_id`, `accrual_date`
|
|
13
|
+
* - Expandable fields: `worker`, `grantor`
|
|
14
|
+
* - Sortable fields: `id`, `created_at`, `updated_at`, `accrual_date`,
|
|
15
|
+
* `expiration_date`
|
|
9
16
|
*/
|
|
10
|
-
|
|
17
|
+
list(query?: LeaveAccrualListParams | null | undefined, options?: RequestOptions): PagePromise<LeaveAccrualListResponsesPageCursorURL, LeaveAccrualListResponse>;
|
|
11
18
|
/**
|
|
12
19
|
* Create a new leave accrual
|
|
13
20
|
*/
|
|
14
21
|
create(body: LeaveAccrualCreateParams, options?: RequestOptions): APIPromise<LeaveAccrualCreateResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Retrieve a specific leave accrual
|
|
24
|
+
*/
|
|
25
|
+
retrieve(id: string, query?: LeaveAccrualRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<LeaveAccrualRetrieveResponse>;
|
|
15
26
|
}
|
|
27
|
+
export type LeaveAccrualListResponsesPageCursorURL = PageCursorURL<LeaveAccrualListResponse>;
|
|
16
28
|
/**
|
|
17
|
-
*
|
|
29
|
+
* Leave accrual resource representing time off credits granted to employees.
|
|
30
|
+
*
|
|
31
|
+
* Leave accruals track the allocation of paid time off (vacation, sick days, etc.)
|
|
32
|
+
* to employees based on company policies, manual grants, or other accrual sources.
|
|
18
33
|
*/
|
|
19
|
-
export interface
|
|
34
|
+
export interface LeaveAccrualListResponse {
|
|
20
35
|
/**
|
|
21
36
|
* Identifier field
|
|
22
37
|
*/
|
|
@@ -46,6 +61,10 @@ export interface LeaveAccrualRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
|
46
61
|
* The ID of the worker for whom the accrual is for
|
|
47
62
|
*/
|
|
48
63
|
worker_id: string;
|
|
64
|
+
/**
|
|
65
|
+
* The type of accrual
|
|
66
|
+
*/
|
|
67
|
+
accrual_type?: 'AUTO' | 'CARRYOVER_PENALTY' | 'RESET_PENALTY' | 'RESET_NEGATIVE_PENALTY' | 'BALANCE_PENALTY' | 'LEAVE_GRANT' | 'BALANCE_CORRECTION_ADJUSTMENT' | 'PAID_OUT' | 'SUB_BALANCE_EXPIRATION' | 'TANDA_ACCRUAL_BONUS' | 'TILT_ADJUSTMENT' | 'WORKFLOW_ACTION' | 'EXPIRATION_DEDUCTION' | 'EXPIRATION_PAYOUT' | 'MANUAL_BALANCE_PAYOUT' | 'CARRYOVER_PENALTY_PAYOUT' | 'RESET_PENALTY_PAYOUT' | 'HOLIDAY_ADJUSTMENT' | 'HOURS_WORKED_TANDA';
|
|
49
68
|
/**
|
|
50
69
|
* The comment for this accrual. This is required if the leave policy requires a
|
|
51
70
|
* comment on accruals.
|
|
@@ -118,6 +137,10 @@ export interface LeaveAccrualCreateResponse {
|
|
|
118
137
|
* The ID of the worker for whom the accrual is for
|
|
119
138
|
*/
|
|
120
139
|
worker_id: string;
|
|
140
|
+
/**
|
|
141
|
+
* The type of accrual
|
|
142
|
+
*/
|
|
143
|
+
accrual_type?: 'AUTO' | 'CARRYOVER_PENALTY' | 'RESET_PENALTY' | 'RESET_NEGATIVE_PENALTY' | 'BALANCE_PENALTY' | 'LEAVE_GRANT' | 'BALANCE_CORRECTION_ADJUSTMENT' | 'PAID_OUT' | 'SUB_BALANCE_EXPIRATION' | 'TANDA_ACCRUAL_BONUS' | 'TILT_ADJUSTMENT' | 'WORKFLOW_ACTION' | 'EXPIRATION_DEDUCTION' | 'EXPIRATION_PAYOUT' | 'MANUAL_BALANCE_PAYOUT' | 'CARRYOVER_PENALTY_PAYOUT' | 'RESET_PENALTY_PAYOUT' | 'HOLIDAY_ADJUSTMENT' | 'HOURS_WORKED_TANDA';
|
|
121
144
|
/**
|
|
122
145
|
* The comment for this accrual. This is required if the leave policy requires a
|
|
123
146
|
* comment on accruals.
|
|
@@ -154,8 +177,84 @@ export interface LeaveAccrualCreateResponse {
|
|
|
154
177
|
*/
|
|
155
178
|
worker?: WorkersAPI.Worker;
|
|
156
179
|
}
|
|
157
|
-
|
|
180
|
+
/**
|
|
181
|
+
* Meta information for the response.
|
|
182
|
+
*/
|
|
183
|
+
export interface LeaveAccrualRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
184
|
+
/**
|
|
185
|
+
* Identifier field
|
|
186
|
+
*/
|
|
187
|
+
id: string;
|
|
188
|
+
/**
|
|
189
|
+
* The date when this accrual becomes effective
|
|
190
|
+
*/
|
|
191
|
+
accrual_date: string;
|
|
192
|
+
/**
|
|
193
|
+
* Record creation date
|
|
194
|
+
*/
|
|
195
|
+
created_at: string;
|
|
196
|
+
/**
|
|
197
|
+
* The ID of the worker who granted this accrual. This is typically the Time Off
|
|
198
|
+
* admin.
|
|
199
|
+
*/
|
|
200
|
+
grantor_id: string;
|
|
201
|
+
/**
|
|
202
|
+
* The company leave type ID associated with this accrual
|
|
203
|
+
*/
|
|
204
|
+
leave_type_id: string;
|
|
205
|
+
/**
|
|
206
|
+
* Record update date
|
|
207
|
+
*/
|
|
208
|
+
updated_at: string;
|
|
209
|
+
/**
|
|
210
|
+
* The ID of the worker for whom the accrual is for
|
|
211
|
+
*/
|
|
212
|
+
worker_id: string;
|
|
213
|
+
/**
|
|
214
|
+
* The type of accrual
|
|
215
|
+
*/
|
|
216
|
+
accrual_type?: 'AUTO' | 'CARRYOVER_PENALTY' | 'RESET_PENALTY' | 'RESET_NEGATIVE_PENALTY' | 'BALANCE_PENALTY' | 'LEAVE_GRANT' | 'BALANCE_CORRECTION_ADJUSTMENT' | 'PAID_OUT' | 'SUB_BALANCE_EXPIRATION' | 'TANDA_ACCRUAL_BONUS' | 'TILT_ADJUSTMENT' | 'WORKFLOW_ACTION' | 'EXPIRATION_DEDUCTION' | 'EXPIRATION_PAYOUT' | 'MANUAL_BALANCE_PAYOUT' | 'CARRYOVER_PENALTY_PAYOUT' | 'RESET_PENALTY_PAYOUT' | 'HOLIDAY_ADJUSTMENT' | 'HOURS_WORKED_TANDA';
|
|
217
|
+
/**
|
|
218
|
+
* The comment for this accrual. This is required if the leave policy requires a
|
|
219
|
+
* comment on accruals.
|
|
220
|
+
*/
|
|
221
|
+
comment?: string;
|
|
222
|
+
/**
|
|
223
|
+
* The date when this accrual expires (if applicable)
|
|
224
|
+
*/
|
|
225
|
+
expiration_date?: string;
|
|
226
|
+
/**
|
|
227
|
+
* The worker who granted this accrual. This is typically the Time Off admin.
|
|
228
|
+
*
|
|
229
|
+
* Expandable field
|
|
230
|
+
*/
|
|
231
|
+
grantor?: WorkersAPI.Worker;
|
|
232
|
+
/**
|
|
233
|
+
* The monetary value of this accrual (for policies with monetary tracking)
|
|
234
|
+
*/
|
|
235
|
+
monetary_amount_accrued?: number;
|
|
236
|
+
/**
|
|
237
|
+
* The number of days accrued. It can be negative for deductions. This is
|
|
238
|
+
* applicable if the policy tracks in days.
|
|
239
|
+
*/
|
|
240
|
+
num_days?: number;
|
|
241
|
+
/**
|
|
242
|
+
* The number of hours accrued. It can be negative for deductions. This is
|
|
243
|
+
* applicable if the policy tracks in hours.
|
|
244
|
+
*/
|
|
245
|
+
num_hours?: number;
|
|
246
|
+
/**
|
|
247
|
+
* The worker for whom the accrual is for
|
|
248
|
+
*
|
|
249
|
+
* Expandable field
|
|
250
|
+
*/
|
|
251
|
+
worker?: WorkersAPI.Worker;
|
|
252
|
+
}
|
|
253
|
+
export interface LeaveAccrualListParams {
|
|
254
|
+
cursor?: string;
|
|
158
255
|
expand?: string;
|
|
256
|
+
filter?: string;
|
|
257
|
+
order_by?: string;
|
|
159
258
|
}
|
|
160
259
|
export interface LeaveAccrualCreateParams {
|
|
161
260
|
/**
|
|
@@ -175,6 +274,10 @@ export interface LeaveAccrualCreateParams {
|
|
|
175
274
|
* The ID of the worker for whom the accrual is for
|
|
176
275
|
*/
|
|
177
276
|
worker_id: string;
|
|
277
|
+
/**
|
|
278
|
+
* The type of accrual
|
|
279
|
+
*/
|
|
280
|
+
accrual_type?: 'AUTO' | 'CARRYOVER_PENALTY' | 'RESET_PENALTY' | 'RESET_NEGATIVE_PENALTY' | 'BALANCE_PENALTY' | 'LEAVE_GRANT' | 'BALANCE_CORRECTION_ADJUSTMENT' | 'PAID_OUT' | 'SUB_BALANCE_EXPIRATION' | 'TANDA_ACCRUAL_BONUS' | 'TILT_ADJUSTMENT' | 'WORKFLOW_ACTION' | 'EXPIRATION_DEDUCTION' | 'EXPIRATION_PAYOUT' | 'MANUAL_BALANCE_PAYOUT' | 'CARRYOVER_PENALTY_PAYOUT' | 'RESET_PENALTY_PAYOUT' | 'HOLIDAY_ADJUSTMENT' | 'HOURS_WORKED_TANDA';
|
|
178
281
|
/**
|
|
179
282
|
* The comment for this accrual. This is required if the leave policy requires a
|
|
180
283
|
* comment on accruals.
|
|
@@ -199,7 +302,10 @@ export interface LeaveAccrualCreateParams {
|
|
|
199
302
|
*/
|
|
200
303
|
num_hours?: number;
|
|
201
304
|
}
|
|
305
|
+
export interface LeaveAccrualRetrieveParams {
|
|
306
|
+
expand?: string;
|
|
307
|
+
}
|
|
202
308
|
export declare namespace LeaveAccruals {
|
|
203
|
-
export { type
|
|
309
|
+
export { type LeaveAccrualListResponse as LeaveAccrualListResponse, type LeaveAccrualCreateResponse as LeaveAccrualCreateResponse, type LeaveAccrualRetrieveResponse as LeaveAccrualRetrieveResponse, type LeaveAccrualListResponsesPageCursorURL as LeaveAccrualListResponsesPageCursorURL, type LeaveAccrualListParams as LeaveAccrualListParams, type LeaveAccrualCreateParams as LeaveAccrualCreateParams, type LeaveAccrualRetrieveParams as LeaveAccrualRetrieveParams, };
|
|
204
310
|
}
|
|
205
311
|
//# sourceMappingURL=leave-accruals.d.ts.map
|