@rippling/rippling-sdk 0.2.0-alpha.97 → 0.2.0-alpha.99
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/client.d.mts +25 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +25 -4
- package/client.d.ts.map +1 -1
- package/client.js +21 -0
- package/client.js.map +1 -1
- package/client.mjs +22 -1
- package/client.mjs.map +1 -1
- package/lib/manifest/acp-agent-source-files.d.mts +1 -1
- package/lib/manifest/acp-agent-source-files.d.ts +1 -1
- package/lib/manifest/acp-agent-source-files.js +3 -10
- package/lib/manifest/acp-agent-source-files.js.map +1 -1
- package/lib/manifest/acp-agent-source-files.mjs +3 -10
- package/lib/manifest/acp-agent-source-files.mjs.map +1 -1
- package/package.json +2 -1
- package/resources/index.d.mts +5 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +5 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +4 -1
- package/resources/index.mjs.map +1 -1
- package/resources/metadata/index.d.mts +1 -1
- package/resources/metadata/index.d.mts.map +1 -1
- package/resources/metadata/index.d.ts +1 -1
- package/resources/metadata/index.d.ts.map +1 -1
- package/resources/metadata/index.js.map +1 -1
- package/resources/metadata/index.mjs +1 -1
- package/resources/metadata/index.mjs.map +1 -1
- package/resources/metadata/metadata.d.mts +47 -1
- package/resources/metadata/metadata.d.mts.map +1 -1
- package/resources/metadata/metadata.d.ts +47 -1
- package/resources/metadata/metadata.d.ts.map +1 -1
- package/resources/metadata/metadata.js +15 -0
- package/resources/metadata/metadata.js.map +1 -1
- package/resources/metadata/metadata.mjs +15 -0
- package/resources/metadata/metadata.mjs.map +1 -1
- package/resources/sandboxes.d.mts +224 -1
- package/resources/sandboxes.d.mts.map +1 -1
- package/resources/sandboxes.d.ts +224 -1
- package/resources/sandboxes.d.ts.map +1 -1
- package/resources/sandboxes.js +6 -0
- package/resources/sandboxes.js.map +1 -1
- package/resources/sandboxes.mjs +6 -0
- package/resources/sandboxes.mjs.map +1 -1
- package/resources/sites.d.mts +3 -0
- package/resources/sites.d.mts.map +1 -1
- package/resources/sites.d.ts +3 -0
- package/resources/sites.d.ts.map +1 -1
- package/resources/sites.js +3 -0
- package/resources/sites.js.map +1 -1
- package/resources/sites.mjs +3 -0
- package/resources/sites.mjs.map +1 -1
- package/resources/variable-compensation-payout-labels.d.mts +155 -0
- package/resources/variable-compensation-payout-labels.d.mts.map +1 -0
- package/resources/variable-compensation-payout-labels.d.ts +155 -0
- package/resources/variable-compensation-payout-labels.d.ts.map +1 -0
- package/resources/variable-compensation-payout-labels.js +41 -0
- package/resources/variable-compensation-payout-labels.js.map +1 -0
- package/resources/variable-compensation-payout-labels.mjs +37 -0
- package/resources/variable-compensation-payout-labels.mjs.map +1 -0
- package/resources/variable-compensation-payout-types.d.mts +334 -0
- package/resources/variable-compensation-payout-types.d.mts.map +1 -0
- package/resources/variable-compensation-payout-types.d.ts +334 -0
- package/resources/variable-compensation-payout-types.d.ts.map +1 -0
- package/resources/variable-compensation-payout-types.js +52 -0
- package/resources/variable-compensation-payout-types.js.map +1 -0
- package/resources/variable-compensation-payout-types.mjs +48 -0
- package/resources/variable-compensation-payout-types.mjs.map +1 -0
- package/resources/variable-compensation-payout-writes.d.mts +6 -17
- package/resources/variable-compensation-payout-writes.d.mts.map +1 -1
- package/resources/variable-compensation-payout-writes.d.ts +6 -17
- package/resources/variable-compensation-payout-writes.d.ts.map +1 -1
- package/resources/variable-compensation-payout-writes.js +2 -1
- package/resources/variable-compensation-payout-writes.js.map +1 -1
- package/resources/variable-compensation-payout-writes.mjs +2 -1
- package/resources/variable-compensation-payout-writes.mjs.map +1 -1
- package/resources/variable-compensation-payouts.d.mts +501 -0
- package/resources/variable-compensation-payouts.d.mts.map +1 -0
- package/resources/variable-compensation-payouts.d.ts +501 -0
- package/resources/variable-compensation-payouts.d.ts.map +1 -0
- package/resources/variable-compensation-payouts.js +41 -0
- package/resources/variable-compensation-payouts.js.map +1 -0
- package/resources/variable-compensation-payouts.mjs +37 -0
- package/resources/variable-compensation-payouts.mjs.map +1 -0
- package/src/client.ts +94 -1
- package/src/lib/manifest/acp-agent-source-files.ts +3 -13
- package/src/resources/index.ts +38 -1
- package/src/resources/metadata/index.ts +7 -1
- package/src/resources/metadata/metadata.ts +54 -0
- package/src/resources/sandboxes.ts +265 -0
- package/src/resources/sites.ts +3 -0
- package/src/resources/variable-compensation-payout-labels.ts +227 -0
- package/src/resources/variable-compensation-payout-types.ts +440 -0
- package/src/resources/variable-compensation-payout-writes.ts +6 -20
- package/src/resources/variable-compensation-payouts.ts +702 -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,501 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import * as BusinessPartnersAPI from "./business-partners.js";
|
|
3
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
4
|
+
import { PageCursorURL, PagePromise } from "../core/pagination.js";
|
|
5
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
6
|
+
/**
|
|
7
|
+
* Compensation associated with workers
|
|
8
|
+
*/
|
|
9
|
+
export declare class VariableCompensationPayouts extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* A list of variable compensation payouts.
|
|
12
|
+
*
|
|
13
|
+
* - Requires: `API Tier 1`
|
|
14
|
+
*/
|
|
15
|
+
list(query?: VariableCompensationPayoutListParams | null | undefined, options?: RequestOptions): PagePromise<VariableCompensationPayoutListResponsesPageCursorURL, VariableCompensationPayoutListResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* Create or update one payout. Identity is (client, external_id), not id. Same key
|
|
18
|
+
* and same body replays with 200. Same key and a different body overwrites a
|
|
19
|
+
* SCHEDULED row when the caller can edit scheduled payouts; otherwise 403.
|
|
20
|
+
* RELEASED rows return 409. New identities return 201. This writes ledger rows;
|
|
21
|
+
* POST /variable-compensation-payout-writes/ submits a payout into payroll.
|
|
22
|
+
* Payroll-sync side effects (paystub_id, outbox) — VC PM / Payroll PM ack required
|
|
23
|
+
* before GA beyond private scopes.
|
|
24
|
+
*/
|
|
25
|
+
create(body: VariableCompensationPayoutCreateParams, options?: RequestOptions): APIPromise<VariableCompensationPayoutCreateResponse>;
|
|
26
|
+
/**
|
|
27
|
+
* Retrieve a specific variable compensation payout. Uses the company admin payout
|
|
28
|
+
* rowset; callers without admin payout visibility receive NotFound.
|
|
29
|
+
*/
|
|
30
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<VariableCompensationPayoutRetrieveResponse>;
|
|
31
|
+
}
|
|
32
|
+
export type VariableCompensationPayoutListResponsesPageCursorURL = PageCursorURL<VariableCompensationPayoutListResponse>;
|
|
33
|
+
export interface VariableCompensationPayoutListResponse {
|
|
34
|
+
/**
|
|
35
|
+
* Unique identifier of the payout.
|
|
36
|
+
*/
|
|
37
|
+
id: string;
|
|
38
|
+
/**
|
|
39
|
+
* Payout amount in the worker's base currency.
|
|
40
|
+
*/
|
|
41
|
+
amount_base: VariableCompensationPayoutListResponse.AmountBase;
|
|
42
|
+
/**
|
|
43
|
+
* Payout amount converted to USD.
|
|
44
|
+
*/
|
|
45
|
+
amount_usd: VariableCompensationPayoutListResponse.AmountUsd;
|
|
46
|
+
/**
|
|
47
|
+
* Client system that created the payout.
|
|
48
|
+
*/
|
|
49
|
+
client: 'VC_PLAN_CYCLE' | 'VC_EVENT_DRIVEN_PLAN' | 'CUSTOM' | 'MANUAL_PAYOUT' | 'HRIS_SIGN_ON' | 'OFFLINE_RECOMMENDATION';
|
|
50
|
+
/**
|
|
51
|
+
* When the payout was created.
|
|
52
|
+
*/
|
|
53
|
+
created_at: string;
|
|
54
|
+
/**
|
|
55
|
+
* End date of the covered pay period.
|
|
56
|
+
*/
|
|
57
|
+
effective_end_date: string;
|
|
58
|
+
/**
|
|
59
|
+
* Start date of the covered pay period.
|
|
60
|
+
*/
|
|
61
|
+
effective_start_date: string;
|
|
62
|
+
/**
|
|
63
|
+
* External identifier unique per company and client.
|
|
64
|
+
*/
|
|
65
|
+
external_id: string;
|
|
66
|
+
/**
|
|
67
|
+
* ID of the worker who receives this payout. Expandable payee (Worker DTO +
|
|
68
|
+
* workers.read) is deferred from v1; use GET /workers/{id}/ when needed.
|
|
69
|
+
*/
|
|
70
|
+
payee_id: string;
|
|
71
|
+
/**
|
|
72
|
+
* Key of the company payout type used for this payout. Expand is deferred from v1;
|
|
73
|
+
* enumerate valid keys via GET /variable-compensation-payout-types/.
|
|
74
|
+
*/
|
|
75
|
+
payout_type: string;
|
|
76
|
+
/**
|
|
77
|
+
* Date on which the payout is scheduled.
|
|
78
|
+
*/
|
|
79
|
+
scheduled_date: string;
|
|
80
|
+
/**
|
|
81
|
+
* Current payout status.
|
|
82
|
+
*/
|
|
83
|
+
status: 'DRAFT' | 'STAGING' | 'PENDING_APPROVAL' | 'APPROVAL_REJECTED' | 'SCHEDULED' | 'RELEASED' | 'PAID' | 'FORFEITED' | 'EVALUATION_FAILED' | 'CANCELLED';
|
|
84
|
+
/**
|
|
85
|
+
* When the payout was last updated.
|
|
86
|
+
*/
|
|
87
|
+
updated_at: string;
|
|
88
|
+
/**
|
|
89
|
+
* Reason provided when the payout was cancelled.
|
|
90
|
+
*/
|
|
91
|
+
cancel_reason?: string;
|
|
92
|
+
/**
|
|
93
|
+
* Optional payout description.
|
|
94
|
+
*/
|
|
95
|
+
description?: string;
|
|
96
|
+
/**
|
|
97
|
+
* Group label identifier attached to the payout. Expand is deferred from v1; use
|
|
98
|
+
* GET /variable-compensation-payout-labels/{id}/ when needed.
|
|
99
|
+
*/
|
|
100
|
+
group_label_id?: string;
|
|
101
|
+
/**
|
|
102
|
+
* Optional payout name.
|
|
103
|
+
*/
|
|
104
|
+
name?: string;
|
|
105
|
+
/**
|
|
106
|
+
* Payroll earning code resolved from the payout type.
|
|
107
|
+
*/
|
|
108
|
+
pay_classification?: string;
|
|
109
|
+
/**
|
|
110
|
+
* Paystub identifier when the payout has been synced to payroll.
|
|
111
|
+
*/
|
|
112
|
+
paystub_id?: string;
|
|
113
|
+
/**
|
|
114
|
+
* Source label identifier attached to the payout. Expand is deferred from v1; use
|
|
115
|
+
* GET /variable-compensation-payout-labels/{id}/ when needed.
|
|
116
|
+
*/
|
|
117
|
+
source_label_id?: string;
|
|
118
|
+
}
|
|
119
|
+
export declare namespace VariableCompensationPayoutListResponse {
|
|
120
|
+
/**
|
|
121
|
+
* Payout amount in the worker's base currency.
|
|
122
|
+
*/
|
|
123
|
+
interface AmountBase {
|
|
124
|
+
/**
|
|
125
|
+
* Three-letter currency code.
|
|
126
|
+
*/
|
|
127
|
+
currency_type: string;
|
|
128
|
+
/**
|
|
129
|
+
* Decimal amount encoded as a string.
|
|
130
|
+
*/
|
|
131
|
+
value: string;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Payout amount converted to USD.
|
|
135
|
+
*/
|
|
136
|
+
interface AmountUsd {
|
|
137
|
+
/**
|
|
138
|
+
* Three-letter currency code.
|
|
139
|
+
*/
|
|
140
|
+
currency_type: string;
|
|
141
|
+
/**
|
|
142
|
+
* Decimal amount encoded as a string.
|
|
143
|
+
*/
|
|
144
|
+
value: string;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
export interface VariableCompensationPayoutCreateResponse {
|
|
148
|
+
/**
|
|
149
|
+
* Unique identifier of the payout.
|
|
150
|
+
*/
|
|
151
|
+
id: string;
|
|
152
|
+
/**
|
|
153
|
+
* Payout amount in the worker's base currency.
|
|
154
|
+
*/
|
|
155
|
+
amount_base: VariableCompensationPayoutCreateResponse.AmountBase;
|
|
156
|
+
/**
|
|
157
|
+
* Payout amount converted to USD.
|
|
158
|
+
*/
|
|
159
|
+
amount_usd: VariableCompensationPayoutCreateResponse.AmountUsd;
|
|
160
|
+
/**
|
|
161
|
+
* Client system that created the payout.
|
|
162
|
+
*/
|
|
163
|
+
client: 'VC_PLAN_CYCLE' | 'VC_EVENT_DRIVEN_PLAN' | 'CUSTOM' | 'MANUAL_PAYOUT' | 'HRIS_SIGN_ON' | 'OFFLINE_RECOMMENDATION';
|
|
164
|
+
/**
|
|
165
|
+
* When the payout was created.
|
|
166
|
+
*/
|
|
167
|
+
created_at: string;
|
|
168
|
+
/**
|
|
169
|
+
* End date of the covered pay period.
|
|
170
|
+
*/
|
|
171
|
+
effective_end_date: string;
|
|
172
|
+
/**
|
|
173
|
+
* Start date of the covered pay period.
|
|
174
|
+
*/
|
|
175
|
+
effective_start_date: string;
|
|
176
|
+
/**
|
|
177
|
+
* External identifier unique per company and client.
|
|
178
|
+
*/
|
|
179
|
+
external_id: string;
|
|
180
|
+
/**
|
|
181
|
+
* ID of the worker who receives this payout. Expandable payee (Worker DTO +
|
|
182
|
+
* workers.read) is deferred from v1; use GET /workers/{id}/ when needed.
|
|
183
|
+
*/
|
|
184
|
+
payee_id: string;
|
|
185
|
+
/**
|
|
186
|
+
* Key of the company payout type used for this payout. Expand is deferred from v1;
|
|
187
|
+
* enumerate valid keys via GET /variable-compensation-payout-types/.
|
|
188
|
+
*/
|
|
189
|
+
payout_type: string;
|
|
190
|
+
/**
|
|
191
|
+
* Date on which the payout is scheduled.
|
|
192
|
+
*/
|
|
193
|
+
scheduled_date: string;
|
|
194
|
+
/**
|
|
195
|
+
* Current payout status.
|
|
196
|
+
*/
|
|
197
|
+
status: 'DRAFT' | 'STAGING' | 'PENDING_APPROVAL' | 'APPROVAL_REJECTED' | 'SCHEDULED' | 'RELEASED' | 'PAID' | 'FORFEITED' | 'EVALUATION_FAILED' | 'CANCELLED';
|
|
198
|
+
/**
|
|
199
|
+
* When the payout was last updated.
|
|
200
|
+
*/
|
|
201
|
+
updated_at: string;
|
|
202
|
+
/**
|
|
203
|
+
* Reason provided when the payout was cancelled.
|
|
204
|
+
*/
|
|
205
|
+
cancel_reason?: string;
|
|
206
|
+
/**
|
|
207
|
+
* Optional payout description.
|
|
208
|
+
*/
|
|
209
|
+
description?: string;
|
|
210
|
+
/**
|
|
211
|
+
* Group label identifier attached to the payout. Expand is deferred from v1; use
|
|
212
|
+
* GET /variable-compensation-payout-labels/{id}/ when needed.
|
|
213
|
+
*/
|
|
214
|
+
group_label_id?: string;
|
|
215
|
+
/**
|
|
216
|
+
* Optional payout name.
|
|
217
|
+
*/
|
|
218
|
+
name?: string;
|
|
219
|
+
/**
|
|
220
|
+
* Payroll earning code resolved from the payout type.
|
|
221
|
+
*/
|
|
222
|
+
pay_classification?: string;
|
|
223
|
+
/**
|
|
224
|
+
* Paystub identifier when the payout has been synced to payroll.
|
|
225
|
+
*/
|
|
226
|
+
paystub_id?: string;
|
|
227
|
+
/**
|
|
228
|
+
* Source label identifier attached to the payout. Expand is deferred from v1; use
|
|
229
|
+
* GET /variable-compensation-payout-labels/{id}/ when needed.
|
|
230
|
+
*/
|
|
231
|
+
source_label_id?: string;
|
|
232
|
+
}
|
|
233
|
+
export declare namespace VariableCompensationPayoutCreateResponse {
|
|
234
|
+
/**
|
|
235
|
+
* Payout amount in the worker's base currency.
|
|
236
|
+
*/
|
|
237
|
+
interface AmountBase {
|
|
238
|
+
/**
|
|
239
|
+
* Three-letter currency code.
|
|
240
|
+
*/
|
|
241
|
+
currency_type: string;
|
|
242
|
+
/**
|
|
243
|
+
* Decimal amount encoded as a string.
|
|
244
|
+
*/
|
|
245
|
+
value: string;
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* Payout amount converted to USD.
|
|
249
|
+
*/
|
|
250
|
+
interface AmountUsd {
|
|
251
|
+
/**
|
|
252
|
+
* Three-letter currency code.
|
|
253
|
+
*/
|
|
254
|
+
currency_type: string;
|
|
255
|
+
/**
|
|
256
|
+
* Decimal amount encoded as a string.
|
|
257
|
+
*/
|
|
258
|
+
value: string;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* Meta information for the response.
|
|
263
|
+
*/
|
|
264
|
+
export interface VariableCompensationPayoutRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
265
|
+
/**
|
|
266
|
+
* Unique identifier of the payout.
|
|
267
|
+
*/
|
|
268
|
+
id: string;
|
|
269
|
+
/**
|
|
270
|
+
* Payout amount in the worker's base currency.
|
|
271
|
+
*/
|
|
272
|
+
amount_base: VariableCompensationPayoutRetrieveResponse.AmountBase;
|
|
273
|
+
/**
|
|
274
|
+
* Payout amount converted to USD.
|
|
275
|
+
*/
|
|
276
|
+
amount_usd: VariableCompensationPayoutRetrieveResponse.AmountUsd;
|
|
277
|
+
/**
|
|
278
|
+
* Client system that created the payout.
|
|
279
|
+
*/
|
|
280
|
+
client: 'VC_PLAN_CYCLE' | 'VC_EVENT_DRIVEN_PLAN' | 'CUSTOM' | 'MANUAL_PAYOUT' | 'HRIS_SIGN_ON' | 'OFFLINE_RECOMMENDATION';
|
|
281
|
+
/**
|
|
282
|
+
* When the payout was created.
|
|
283
|
+
*/
|
|
284
|
+
created_at: string;
|
|
285
|
+
/**
|
|
286
|
+
* End date of the covered pay period.
|
|
287
|
+
*/
|
|
288
|
+
effective_end_date: string;
|
|
289
|
+
/**
|
|
290
|
+
* Start date of the covered pay period.
|
|
291
|
+
*/
|
|
292
|
+
effective_start_date: string;
|
|
293
|
+
/**
|
|
294
|
+
* External identifier unique per company and client.
|
|
295
|
+
*/
|
|
296
|
+
external_id: string;
|
|
297
|
+
/**
|
|
298
|
+
* ID of the worker who receives this payout. Expandable payee (Worker DTO +
|
|
299
|
+
* workers.read) is deferred from v1; use GET /workers/{id}/ when needed.
|
|
300
|
+
*/
|
|
301
|
+
payee_id: string;
|
|
302
|
+
/**
|
|
303
|
+
* Key of the company payout type used for this payout. Expand is deferred from v1;
|
|
304
|
+
* enumerate valid keys via GET /variable-compensation-payout-types/.
|
|
305
|
+
*/
|
|
306
|
+
payout_type: string;
|
|
307
|
+
/**
|
|
308
|
+
* Date on which the payout is scheduled.
|
|
309
|
+
*/
|
|
310
|
+
scheduled_date: string;
|
|
311
|
+
/**
|
|
312
|
+
* Current payout status.
|
|
313
|
+
*/
|
|
314
|
+
status: 'DRAFT' | 'STAGING' | 'PENDING_APPROVAL' | 'APPROVAL_REJECTED' | 'SCHEDULED' | 'RELEASED' | 'PAID' | 'FORFEITED' | 'EVALUATION_FAILED' | 'CANCELLED';
|
|
315
|
+
/**
|
|
316
|
+
* When the payout was last updated.
|
|
317
|
+
*/
|
|
318
|
+
updated_at: string;
|
|
319
|
+
/**
|
|
320
|
+
* Reason provided when the payout was cancelled.
|
|
321
|
+
*/
|
|
322
|
+
cancel_reason?: string;
|
|
323
|
+
/**
|
|
324
|
+
* Optional payout description.
|
|
325
|
+
*/
|
|
326
|
+
description?: string;
|
|
327
|
+
/**
|
|
328
|
+
* Group label identifier attached to the payout. Expand is deferred from v1; use
|
|
329
|
+
* GET /variable-compensation-payout-labels/{id}/ when needed.
|
|
330
|
+
*/
|
|
331
|
+
group_label_id?: string;
|
|
332
|
+
/**
|
|
333
|
+
* Optional payout name.
|
|
334
|
+
*/
|
|
335
|
+
name?: string;
|
|
336
|
+
/**
|
|
337
|
+
* Payroll earning code resolved from the payout type.
|
|
338
|
+
*/
|
|
339
|
+
pay_classification?: string;
|
|
340
|
+
/**
|
|
341
|
+
* Paystub identifier when the payout has been synced to payroll.
|
|
342
|
+
*/
|
|
343
|
+
paystub_id?: string;
|
|
344
|
+
/**
|
|
345
|
+
* Source label identifier attached to the payout. Expand is deferred from v1; use
|
|
346
|
+
* GET /variable-compensation-payout-labels/{id}/ when needed.
|
|
347
|
+
*/
|
|
348
|
+
source_label_id?: string;
|
|
349
|
+
}
|
|
350
|
+
export declare namespace VariableCompensationPayoutRetrieveResponse {
|
|
351
|
+
/**
|
|
352
|
+
* Payout amount in the worker's base currency.
|
|
353
|
+
*/
|
|
354
|
+
interface AmountBase {
|
|
355
|
+
/**
|
|
356
|
+
* Three-letter currency code.
|
|
357
|
+
*/
|
|
358
|
+
currency_type: string;
|
|
359
|
+
/**
|
|
360
|
+
* Decimal amount encoded as a string.
|
|
361
|
+
*/
|
|
362
|
+
value: string;
|
|
363
|
+
}
|
|
364
|
+
/**
|
|
365
|
+
* Payout amount converted to USD.
|
|
366
|
+
*/
|
|
367
|
+
interface AmountUsd {
|
|
368
|
+
/**
|
|
369
|
+
* Three-letter currency code.
|
|
370
|
+
*/
|
|
371
|
+
currency_type: string;
|
|
372
|
+
/**
|
|
373
|
+
* Decimal amount encoded as a string.
|
|
374
|
+
*/
|
|
375
|
+
value: string;
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
export interface VariableCompensationPayoutListParams {
|
|
379
|
+
/**
|
|
380
|
+
* Client system that created the payout.
|
|
381
|
+
*/
|
|
382
|
+
client?: 'VC_PLAN_CYCLE' | 'VC_EVENT_DRIVEN_PLAN' | 'CUSTOM' | 'MANUAL_PAYOUT' | 'HRIS_SIGN_ON' | 'OFFLINE_RECOMMENDATION';
|
|
383
|
+
/**
|
|
384
|
+
* Opaque pagination cursor from the previous page's next_link.
|
|
385
|
+
*/
|
|
386
|
+
cursor?: string;
|
|
387
|
+
/**
|
|
388
|
+
* External identifier unique per company and client.
|
|
389
|
+
*/
|
|
390
|
+
external_id?: string;
|
|
391
|
+
/**
|
|
392
|
+
* Group label identifier attached to the payout.
|
|
393
|
+
*/
|
|
394
|
+
group_label_id?: string;
|
|
395
|
+
/**
|
|
396
|
+
* Page size. Defaults to 50. Maximum 100.
|
|
397
|
+
*/
|
|
398
|
+
limit?: number;
|
|
399
|
+
/**
|
|
400
|
+
* ID of the worker who receives this payout.
|
|
401
|
+
*/
|
|
402
|
+
payee_id?: string;
|
|
403
|
+
/**
|
|
404
|
+
* Source label identifier attached to the payout.
|
|
405
|
+
*/
|
|
406
|
+
source_label_id?: string;
|
|
407
|
+
/**
|
|
408
|
+
* Current payout status.
|
|
409
|
+
*/
|
|
410
|
+
status?: 'DRAFT' | 'STAGING' | 'PENDING_APPROVAL' | 'APPROVAL_REJECTED' | 'SCHEDULED' | 'RELEASED' | 'PAID' | 'FORFEITED' | 'EVALUATION_FAILED' | 'CANCELLED';
|
|
411
|
+
}
|
|
412
|
+
export interface VariableCompensationPayoutCreateParams {
|
|
413
|
+
/**
|
|
414
|
+
* Payout amount in the worker's base currency.
|
|
415
|
+
*/
|
|
416
|
+
amount_base: VariableCompensationPayoutCreateParams.AmountBase;
|
|
417
|
+
/**
|
|
418
|
+
* Payout amount converted to USD.
|
|
419
|
+
*/
|
|
420
|
+
amount_usd: VariableCompensationPayoutCreateParams.AmountUsd;
|
|
421
|
+
/**
|
|
422
|
+
* Client system that created the payout.
|
|
423
|
+
*/
|
|
424
|
+
client: 'VC_PLAN_CYCLE' | 'VC_EVENT_DRIVEN_PLAN' | 'CUSTOM' | 'MANUAL_PAYOUT' | 'HRIS_SIGN_ON' | 'OFFLINE_RECOMMENDATION';
|
|
425
|
+
/**
|
|
426
|
+
* End date of the covered pay period.
|
|
427
|
+
*/
|
|
428
|
+
effective_end_date: string;
|
|
429
|
+
/**
|
|
430
|
+
* Start date of the covered pay period.
|
|
431
|
+
*/
|
|
432
|
+
effective_start_date: string;
|
|
433
|
+
/**
|
|
434
|
+
* External identifier unique per company and client.
|
|
435
|
+
*/
|
|
436
|
+
external_id: string;
|
|
437
|
+
/**
|
|
438
|
+
* ID of the worker who receives this payout. Expandable payee (Worker DTO +
|
|
439
|
+
* workers.read) is deferred from v1; use GET /workers/{id}/ when needed.
|
|
440
|
+
*/
|
|
441
|
+
payee_id: string;
|
|
442
|
+
/**
|
|
443
|
+
* Key of the company payout type used for this payout. Expand is deferred from v1;
|
|
444
|
+
* enumerate valid keys via GET /variable-compensation-payout-types/.
|
|
445
|
+
*/
|
|
446
|
+
payout_type: string;
|
|
447
|
+
/**
|
|
448
|
+
* Date on which the payout is scheduled.
|
|
449
|
+
*/
|
|
450
|
+
scheduled_date: string;
|
|
451
|
+
/**
|
|
452
|
+
* Optional payout description.
|
|
453
|
+
*/
|
|
454
|
+
description?: string;
|
|
455
|
+
/**
|
|
456
|
+
* Group label identifier attached to the payout. Expand is deferred from v1; use
|
|
457
|
+
* GET /variable-compensation-payout-labels/{id}/ when needed.
|
|
458
|
+
*/
|
|
459
|
+
group_label_id?: string;
|
|
460
|
+
/**
|
|
461
|
+
* Optional payout name.
|
|
462
|
+
*/
|
|
463
|
+
name?: string;
|
|
464
|
+
/**
|
|
465
|
+
* Source label identifier attached to the payout. Expand is deferred from v1; use
|
|
466
|
+
* GET /variable-compensation-payout-labels/{id}/ when needed.
|
|
467
|
+
*/
|
|
468
|
+
source_label_id?: string;
|
|
469
|
+
}
|
|
470
|
+
export declare namespace VariableCompensationPayoutCreateParams {
|
|
471
|
+
/**
|
|
472
|
+
* Payout amount in the worker's base currency.
|
|
473
|
+
*/
|
|
474
|
+
interface AmountBase {
|
|
475
|
+
/**
|
|
476
|
+
* Three-letter currency code.
|
|
477
|
+
*/
|
|
478
|
+
currency_type: string;
|
|
479
|
+
/**
|
|
480
|
+
* Decimal amount encoded as a string.
|
|
481
|
+
*/
|
|
482
|
+
value: string;
|
|
483
|
+
}
|
|
484
|
+
/**
|
|
485
|
+
* Payout amount converted to USD.
|
|
486
|
+
*/
|
|
487
|
+
interface AmountUsd {
|
|
488
|
+
/**
|
|
489
|
+
* Three-letter currency code.
|
|
490
|
+
*/
|
|
491
|
+
currency_type: string;
|
|
492
|
+
/**
|
|
493
|
+
* Decimal amount encoded as a string.
|
|
494
|
+
*/
|
|
495
|
+
value: string;
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
export declare namespace VariableCompensationPayouts {
|
|
499
|
+
export { type VariableCompensationPayoutListResponse as VariableCompensationPayoutListResponse, type VariableCompensationPayoutCreateResponse as VariableCompensationPayoutCreateResponse, type VariableCompensationPayoutRetrieveResponse as VariableCompensationPayoutRetrieveResponse, type VariableCompensationPayoutListResponsesPageCursorURL as VariableCompensationPayoutListResponsesPageCursorURL, type VariableCompensationPayoutListParams as VariableCompensationPayoutListParams, type VariableCompensationPayoutCreateParams as VariableCompensationPayoutCreateParams, };
|
|
500
|
+
}
|
|
501
|
+
//# sourceMappingURL=variable-compensation-payouts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"variable-compensation-payouts.d.ts","sourceRoot":"","sources":["../src/resources/variable-compensation-payouts.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,KAAK,mBAAmB,+BAA4B;AAC3D,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,8BAA2B;AAChE,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D;;GAEG;AACH,qBAAa,2BAA4B,SAAQ,WAAW;IAC1D;;;;OAIG;IACH,IAAI,CACF,KAAK,GAAE,oCAAoC,GAAG,IAAI,GAAG,SAAc,EACnE,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CACZ,oDAAoD,EACpD,sCAAsC,CACvC;IAQD;;;;;;;;OAQG;IACH,MAAM,CACJ,IAAI,EAAE,sCAAsC,EAC5C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wCAAwC,CAAC;IAIvD;;;OAGG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0CAA0C,CAAC;CAGvG;AAED,MAAM,MAAM,oDAAoD,GAC9D,aAAa,CAAC,sCAAsC,CAAC,CAAC;AAExD,MAAM,WAAW,sCAAsC;IACrD;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,WAAW,EAAE,sCAAsC,CAAC,UAAU,CAAC;IAE/D;;OAEG;IACH,UAAU,EAAE,sCAAsC,CAAC,SAAS,CAAC;IAE7D;;OAEG;IACH,MAAM,EACF,eAAe,GACf,sBAAsB,GACtB,QAAQ,GACR,eAAe,GACf,cAAc,GACd,wBAAwB,CAAC;IAE7B;;OAEG;IACH,UAAU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H,WAAW,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,yBAAiB,sCAAsC,CAAC;IACtD;;OAEG;IACH,UAAiB,UAAU;QACzB;;WAEG;QACH,aAAa,EAAE,MAAM,CAAC;QAEtB;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;KACf;IAED;;OAEG;IACH,UAAiB,SAAS;QACxB;;WAEG;QACH,aAAa,EAAE,MAAM,CAAC;QAEtB;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;KACf;CACF;AAED,MAAM,CAAC,OAAO,WAAW,2BAA2B,CAAC;IACnD,OAAO,EACL,KAAK,sCAAsC,IAAI,sCAAsC,EACrF,KAAK,wCAAwC,IAAI,wCAAwC,EACzF,KAAK,0CAA0C,IAAI,0CAA0C,EAC7F,KAAK,oDAAoD,IAAI,oDAAoD,EACjH,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,sCAAsC,IAAI,sCAAsC,GACtF,CAAC;CACH"}
|
|
@@ -0,0 +1,41 @@
|
|
|
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.VariableCompensationPayouts = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../core/pagination.js");
|
|
7
|
+
const path_1 = require("../internal/utils/path.js");
|
|
8
|
+
/**
|
|
9
|
+
* Compensation associated with workers
|
|
10
|
+
*/
|
|
11
|
+
class VariableCompensationPayouts extends resource_1.APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* A list of variable compensation payouts.
|
|
14
|
+
*
|
|
15
|
+
* - Requires: `API Tier 1`
|
|
16
|
+
*/
|
|
17
|
+
list(query = {}, options) {
|
|
18
|
+
return this._client.getAPIList('/variable-compensation-payouts/', (pagination_1.PageCursorURL), { query, ...options });
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Create or update one payout. Identity is (client, external_id), not id. Same key
|
|
22
|
+
* and same body replays with 200. Same key and a different body overwrites a
|
|
23
|
+
* SCHEDULED row when the caller can edit scheduled payouts; otherwise 403.
|
|
24
|
+
* RELEASED rows return 409. New identities return 201. This writes ledger rows;
|
|
25
|
+
* POST /variable-compensation-payout-writes/ submits a payout into payroll.
|
|
26
|
+
* Payroll-sync side effects (paystub_id, outbox) — VC PM / Payroll PM ack required
|
|
27
|
+
* before GA beyond private scopes.
|
|
28
|
+
*/
|
|
29
|
+
create(body, options) {
|
|
30
|
+
return this._client.post('/variable-compensation-payouts/', { body, ...options });
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Retrieve a specific variable compensation payout. Uses the company admin payout
|
|
34
|
+
* rowset; callers without admin payout visibility receive NotFound.
|
|
35
|
+
*/
|
|
36
|
+
retrieve(id, options) {
|
|
37
|
+
return this._client.get((0, path_1.path) `/variable-compensation-payouts/${id}/`, options);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
exports.VariableCompensationPayouts = VariableCompensationPayouts;
|
|
41
|
+
//# sourceMappingURL=variable-compensation-payouts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"variable-compensation-payouts.js","sourceRoot":"","sources":["../src/resources/variable-compensation-payouts.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,sDAAgE;AAEhE,oDAA8C;AAE9C;;GAEG;AACH,MAAa,2BAA4B,SAAQ,sBAAW;IAC1D;;;;OAIG;IACH,IAAI,CACF,QAAiE,EAAE,EACnE,OAAwB;QAKxB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,iCAAiC,EACjC,CAAA,0BAAqD,CAAA,EACrD,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;;;;;;OAQG;IACH,MAAM,CACJ,IAA4C,EAC5C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,iCAAiC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;IAED;;;OAGG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,kCAAkC,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC;IAChF,CAAC;CACF;AA3CD,kEA2CC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { PageCursorURL } from "../core/pagination.mjs";
|
|
4
|
+
import { path } from "../internal/utils/path.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* Compensation associated with workers
|
|
7
|
+
*/
|
|
8
|
+
export class VariableCompensationPayouts extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* A list of variable compensation payouts.
|
|
11
|
+
*
|
|
12
|
+
* - Requires: `API Tier 1`
|
|
13
|
+
*/
|
|
14
|
+
list(query = {}, options) {
|
|
15
|
+
return this._client.getAPIList('/variable-compensation-payouts/', (PageCursorURL), { query, ...options });
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Create or update one payout. Identity is (client, external_id), not id. Same key
|
|
19
|
+
* and same body replays with 200. Same key and a different body overwrites a
|
|
20
|
+
* SCHEDULED row when the caller can edit scheduled payouts; otherwise 403.
|
|
21
|
+
* RELEASED rows return 409. New identities return 201. This writes ledger rows;
|
|
22
|
+
* POST /variable-compensation-payout-writes/ submits a payout into payroll.
|
|
23
|
+
* Payroll-sync side effects (paystub_id, outbox) — VC PM / Payroll PM ack required
|
|
24
|
+
* before GA beyond private scopes.
|
|
25
|
+
*/
|
|
26
|
+
create(body, options) {
|
|
27
|
+
return this._client.post('/variable-compensation-payouts/', { body, ...options });
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Retrieve a specific variable compensation payout. Uses the company admin payout
|
|
31
|
+
* rowset; callers without admin payout visibility receive NotFound.
|
|
32
|
+
*/
|
|
33
|
+
retrieve(id, options) {
|
|
34
|
+
return this._client.get(path `/variable-compensation-payouts/${id}/`, options);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=variable-compensation-payouts.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"variable-compensation-payouts.mjs","sourceRoot":"","sources":["../src/resources/variable-compensation-payouts.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAG/C,OAAO,EAAE,aAAa,EAAe,+BAA2B;AAEhE,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C;;GAEG;AACH,MAAM,OAAO,2BAA4B,SAAQ,WAAW;IAC1D;;;;OAIG;IACH,IAAI,CACF,QAAiE,EAAE,EACnE,OAAwB;QAKxB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,iCAAiC,EACjC,CAAA,aAAqD,CAAA,EACrD,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;;;;;;OAQG;IACH,MAAM,CACJ,IAA4C,EAC5C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,iCAAiC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;IAED;;;OAGG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,kCAAkC,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC;IAChF,CAAC;CACF"}
|