@rippling/rippling-sdk 0.2.0-alpha.53 → 0.2.0-alpha.54
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 +24 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +24 -0
- package/client.d.ts.map +1 -1
- package/client.js +24 -0
- package/client.js.map +1 -1
- package/client.mjs +24 -0
- package/client.mjs.map +1 -1
- package/examples/manifest/custom-object-creation-workflow/custom-object-creation-workflow.ts +85 -0
- package/lib/manifest/index.d.mts +1 -0
- package/lib/manifest/index.d.mts.map +1 -1
- package/lib/manifest/index.d.ts +1 -0
- package/lib/manifest/index.d.ts.map +1 -1
- package/lib/manifest/index.js +3 -1
- package/lib/manifest/index.js.map +1 -1
- package/lib/manifest/index.mjs +1 -0
- package/lib/manifest/index.mjs.map +1 -1
- package/lib/manifest/manifest-builder.d.mts +1 -1
- package/lib/manifest/manifest-builder.d.mts.map +1 -1
- package/lib/manifest/manifest-builder.d.ts +1 -1
- package/lib/manifest/manifest-builder.d.ts.map +1 -1
- package/lib/manifest/manifest-builder.js.map +1 -1
- package/lib/manifest/manifest-builder.mjs.map +1 -1
- package/lib/manifest/workflow.d.mts +155 -0
- package/lib/manifest/workflow.d.mts.map +1 -0
- package/lib/manifest/workflow.d.ts +155 -0
- package/lib/manifest/workflow.d.ts.map +1 -0
- package/lib/manifest/workflow.js +51 -0
- package/lib/manifest/workflow.js.map +1 -0
- package/lib/manifest/workflow.mjs +47 -0
- package/lib/manifest/workflow.mjs.map +1 -0
- package/package.json +1 -1
- package/resources/break-types.d.mts +85 -0
- package/resources/break-types.d.mts.map +1 -0
- package/resources/break-types.d.ts +85 -0
- package/resources/break-types.d.ts.map +1 -0
- package/resources/break-types.js +32 -0
- package/resources/break-types.js.map +1 -0
- package/resources/break-types.mjs +28 -0
- package/resources/break-types.mjs.map +1 -0
- package/resources/earnings-inputs.d.mts +33 -0
- package/resources/earnings-inputs.d.mts.map +1 -1
- package/resources/earnings-inputs.d.ts +33 -0
- package/resources/earnings-inputs.d.ts.map +1 -1
- package/resources/index.d.mts +4 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +10 -2
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +4 -0
- package/resources/index.mjs.map +1 -1
- package/resources/scheduled-job-assignments.d.mts +156 -0
- package/resources/scheduled-job-assignments.d.mts.map +1 -0
- package/resources/scheduled-job-assignments.d.ts +156 -0
- package/resources/scheduled-job-assignments.d.ts.map +1 -0
- package/resources/scheduled-job-assignments.js +39 -0
- package/resources/scheduled-job-assignments.js.map +1 -0
- package/resources/scheduled-job-assignments.mjs +35 -0
- package/resources/scheduled-job-assignments.mjs.map +1 -0
- package/resources/software-deployments.d.mts +468 -0
- package/resources/software-deployments.d.mts.map +1 -0
- package/resources/software-deployments.d.ts +468 -0
- package/resources/software-deployments.d.ts.map +1 -0
- package/resources/software-deployments.js +56 -0
- package/resources/software-deployments.js.map +1 -0
- package/resources/software-deployments.mjs +52 -0
- package/resources/software-deployments.mjs.map +1 -0
- package/resources/worker-time-splits.d.mts +371 -0
- package/resources/worker-time-splits.d.mts.map +1 -0
- package/resources/worker-time-splits.d.ts +371 -0
- package/resources/worker-time-splits.d.ts.map +1 -0
- package/resources/worker-time-splits.js +56 -0
- package/resources/worker-time-splits.js.map +1 -0
- package/resources/worker-time-splits.mjs +52 -0
- package/resources/worker-time-splits.mjs.map +1 -0
- package/resources/workers.d.mts +1 -1
- package/resources/workers.d.ts +1 -1
- package/resources/workers.js +1 -1
- package/resources/workers.mjs +1 -1
- package/resources/workflow-action-executions.d.mts +84 -0
- package/resources/workflow-action-executions.d.mts.map +1 -1
- package/resources/workflow-action-executions.d.ts +84 -0
- package/resources/workflow-action-executions.d.ts.map +1 -1
- package/src/client.ts +100 -0
- package/src/lib/manifest/index.ts +26 -0
- package/src/lib/manifest/manifest-builder.ts +2 -1
- package/src/lib/manifest/workflow.ts +244 -0
- package/src/resources/break-types.ts +120 -0
- package/src/resources/earnings-inputs.ts +39 -0
- package/src/resources/index.ts +38 -0
- package/src/resources/scheduled-job-assignments.ts +216 -0
- package/src/resources/software-deployments.ts +607 -0
- package/src/resources/worker-time-splits.ts +480 -0
- package/src/resources/workers.ts +1 -1
- package/src/resources/workflow-action-executions.ts +98 -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
- package/examples/manifest/dental-practice-management/manifest.json +0 -1912
- package/examples/manifest/gym-membership-management/manifest.json +0 -1991
- package/examples/manifest/simple-todo-app/manifest.json +0 -429
|
@@ -0,0 +1,480 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import * as BusinessPartnersAPI from './business-partners';
|
|
5
|
+
import * as JobCodesAPI from './job-codes';
|
|
6
|
+
import * as WorkersAPI from './workers';
|
|
7
|
+
import { APIPromise } from '../core/api-promise';
|
|
8
|
+
import { PageCursorURL, PagePromise } from '../core/pagination';
|
|
9
|
+
import { buildHeaders } from '../internal/headers';
|
|
10
|
+
import { RequestOptions } from '../internal/request-options';
|
|
11
|
+
import { path } from '../internal/utils/path';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Job related information for the company
|
|
15
|
+
*/
|
|
16
|
+
export class WorkerTimeSplits extends APIResource {
|
|
17
|
+
/**
|
|
18
|
+
* A list of worker time splits.
|
|
19
|
+
*
|
|
20
|
+
* - Requires: `API Tier 2`
|
|
21
|
+
* - Filterable fields: `worker_id`, `is_enabled`, `updated_at`
|
|
22
|
+
* - Expandable fields: `worker`, `job_codes`
|
|
23
|
+
* - Sortable fields: `id`, `created_at`, `updated_at`
|
|
24
|
+
*/
|
|
25
|
+
list(
|
|
26
|
+
query: WorkerTimeSplitListParams | null | undefined = {},
|
|
27
|
+
options?: RequestOptions,
|
|
28
|
+
): PagePromise<WorkerTimeSplitListResponsesPageCursorURL, WorkerTimeSplitListResponse> {
|
|
29
|
+
return this._client.getAPIList('/worker-time-splits/', PageCursorURL<WorkerTimeSplitListResponse>, {
|
|
30
|
+
query,
|
|
31
|
+
...options,
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Create a new worker time split
|
|
37
|
+
*/
|
|
38
|
+
create(
|
|
39
|
+
body: WorkerTimeSplitCreateParams,
|
|
40
|
+
options?: RequestOptions,
|
|
41
|
+
): APIPromise<WorkerTimeSplitCreateResponse> {
|
|
42
|
+
return this._client.post('/worker-time-splits/', { body, ...options });
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Retrieve a specific worker time split
|
|
47
|
+
*/
|
|
48
|
+
retrieve(
|
|
49
|
+
id: string,
|
|
50
|
+
query: WorkerTimeSplitRetrieveParams | null | undefined = {},
|
|
51
|
+
options?: RequestOptions,
|
|
52
|
+
): APIPromise<WorkerTimeSplitRetrieveResponse> {
|
|
53
|
+
return this._client.get(path`/worker-time-splits/${id}/`, { query, ...options });
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Update a specific worker time split.
|
|
58
|
+
*/
|
|
59
|
+
update(
|
|
60
|
+
id: string,
|
|
61
|
+
body: WorkerTimeSplitUpdateParams,
|
|
62
|
+
options?: RequestOptions,
|
|
63
|
+
): APIPromise<WorkerTimeSplitUpdateResponse> {
|
|
64
|
+
return this._client.patch(path`/worker-time-splits/${id}/`, { body, ...options });
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Delete a worker time split
|
|
69
|
+
*/
|
|
70
|
+
delete(id: string, options?: RequestOptions): APIPromise<void> {
|
|
71
|
+
return this._client.delete(path`/worker-time-splits/${id}/`, {
|
|
72
|
+
...options,
|
|
73
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export type WorkerTimeSplitListResponsesPageCursorURL = PageCursorURL<WorkerTimeSplitListResponse>;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Worker time split configuration resource.
|
|
82
|
+
*/
|
|
83
|
+
export interface WorkerTimeSplitListResponse {
|
|
84
|
+
/**
|
|
85
|
+
* Identifier field
|
|
86
|
+
*/
|
|
87
|
+
id: string;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Record creation date
|
|
91
|
+
*/
|
|
92
|
+
created_at: string;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Record update date
|
|
96
|
+
*/
|
|
97
|
+
updated_at: string;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Identifier of the worker whose time split configuration this represents.
|
|
101
|
+
*/
|
|
102
|
+
worker_id: string;
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Whether hard-coded time splits are active for this worker.
|
|
106
|
+
*/
|
|
107
|
+
is_enabled?: boolean;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* The job codes referenced in this time split configuration. Use ?expand=job_codes
|
|
111
|
+
* to populate.
|
|
112
|
+
*
|
|
113
|
+
* Expandable field
|
|
114
|
+
*/
|
|
115
|
+
job_codes?: Array<JobCodesAPI.JobCode>;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* IDs of all unique job codes referenced across all split rows.
|
|
119
|
+
*/
|
|
120
|
+
job_codes_id?: Array<string>;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* The split rows defining time allocation percentages across job codes. Empty when
|
|
124
|
+
* is_enabled is false.
|
|
125
|
+
*/
|
|
126
|
+
splits?: Array<WorkerTimeSplitListResponse.Split>;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* The worker associated with this time split configuration.
|
|
130
|
+
*
|
|
131
|
+
* Expandable field
|
|
132
|
+
*/
|
|
133
|
+
worker?: WorkersAPI.Worker;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export namespace WorkerTimeSplitListResponse {
|
|
137
|
+
/**
|
|
138
|
+
* A single split row representing a percentage allocation across one or more job
|
|
139
|
+
* codes.
|
|
140
|
+
*/
|
|
141
|
+
export interface Split {
|
|
142
|
+
/**
|
|
143
|
+
* IDs of canonical /job-codes/ resources in this split row.
|
|
144
|
+
*/
|
|
145
|
+
job_code_ids?: Array<string>;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Percentage allocated to this split row. Decimal string with precision 2; must be
|
|
149
|
+
* greater than zero per row. All rows must sum to 100.00 when is_enabled is true.
|
|
150
|
+
*/
|
|
151
|
+
split_percentage?: string;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Worker time split configuration resource.
|
|
157
|
+
*/
|
|
158
|
+
export interface WorkerTimeSplitCreateResponse {
|
|
159
|
+
/**
|
|
160
|
+
* Identifier field
|
|
161
|
+
*/
|
|
162
|
+
id: string;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Record creation date
|
|
166
|
+
*/
|
|
167
|
+
created_at: string;
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Record update date
|
|
171
|
+
*/
|
|
172
|
+
updated_at: string;
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Identifier of the worker whose time split configuration this represents.
|
|
176
|
+
*/
|
|
177
|
+
worker_id: string;
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Whether hard-coded time splits are active for this worker.
|
|
181
|
+
*/
|
|
182
|
+
is_enabled?: boolean;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* The job codes referenced in this time split configuration. Use ?expand=job_codes
|
|
186
|
+
* to populate.
|
|
187
|
+
*
|
|
188
|
+
* Expandable field
|
|
189
|
+
*/
|
|
190
|
+
job_codes?: Array<JobCodesAPI.JobCode>;
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* IDs of all unique job codes referenced across all split rows.
|
|
194
|
+
*/
|
|
195
|
+
job_codes_id?: Array<string>;
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* The split rows defining time allocation percentages across job codes. Empty when
|
|
199
|
+
* is_enabled is false.
|
|
200
|
+
*/
|
|
201
|
+
splits?: Array<WorkerTimeSplitCreateResponse.Split>;
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* The worker associated with this time split configuration.
|
|
205
|
+
*
|
|
206
|
+
* Expandable field
|
|
207
|
+
*/
|
|
208
|
+
worker?: WorkersAPI.Worker;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
export namespace WorkerTimeSplitCreateResponse {
|
|
212
|
+
/**
|
|
213
|
+
* A single split row representing a percentage allocation across one or more job
|
|
214
|
+
* codes.
|
|
215
|
+
*/
|
|
216
|
+
export interface Split {
|
|
217
|
+
/**
|
|
218
|
+
* IDs of canonical /job-codes/ resources in this split row.
|
|
219
|
+
*/
|
|
220
|
+
job_code_ids?: Array<string>;
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* Percentage allocated to this split row. Decimal string with precision 2; must be
|
|
224
|
+
* greater than zero per row. All rows must sum to 100.00 when is_enabled is true.
|
|
225
|
+
*/
|
|
226
|
+
split_percentage?: string;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* Meta information for the response.
|
|
232
|
+
*/
|
|
233
|
+
export interface WorkerTimeSplitRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
234
|
+
/**
|
|
235
|
+
* Identifier field
|
|
236
|
+
*/
|
|
237
|
+
id: string;
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* Record creation date
|
|
241
|
+
*/
|
|
242
|
+
created_at: string;
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* Record update date
|
|
246
|
+
*/
|
|
247
|
+
updated_at: string;
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* Identifier of the worker whose time split configuration this represents.
|
|
251
|
+
*/
|
|
252
|
+
worker_id: string;
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* Whether hard-coded time splits are active for this worker.
|
|
256
|
+
*/
|
|
257
|
+
is_enabled?: boolean;
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* The job codes referenced in this time split configuration. Use ?expand=job_codes
|
|
261
|
+
* to populate.
|
|
262
|
+
*
|
|
263
|
+
* Expandable field
|
|
264
|
+
*/
|
|
265
|
+
job_codes?: Array<JobCodesAPI.JobCode>;
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* IDs of all unique job codes referenced across all split rows.
|
|
269
|
+
*/
|
|
270
|
+
job_codes_id?: Array<string>;
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* The split rows defining time allocation percentages across job codes. Empty when
|
|
274
|
+
* is_enabled is false.
|
|
275
|
+
*/
|
|
276
|
+
splits?: Array<WorkerTimeSplitRetrieveResponse.Split>;
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* The worker associated with this time split configuration.
|
|
280
|
+
*
|
|
281
|
+
* Expandable field
|
|
282
|
+
*/
|
|
283
|
+
worker?: WorkersAPI.Worker;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
export namespace WorkerTimeSplitRetrieveResponse {
|
|
287
|
+
/**
|
|
288
|
+
* A single split row representing a percentage allocation across one or more job
|
|
289
|
+
* codes.
|
|
290
|
+
*/
|
|
291
|
+
export interface Split {
|
|
292
|
+
/**
|
|
293
|
+
* IDs of canonical /job-codes/ resources in this split row.
|
|
294
|
+
*/
|
|
295
|
+
job_code_ids?: Array<string>;
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* Percentage allocated to this split row. Decimal string with precision 2; must be
|
|
299
|
+
* greater than zero per row. All rows must sum to 100.00 when is_enabled is true.
|
|
300
|
+
*/
|
|
301
|
+
split_percentage?: string;
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* Worker time split configuration resource.
|
|
307
|
+
*/
|
|
308
|
+
export interface WorkerTimeSplitUpdateResponse {
|
|
309
|
+
/**
|
|
310
|
+
* Identifier field
|
|
311
|
+
*/
|
|
312
|
+
id: string;
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* Record creation date
|
|
316
|
+
*/
|
|
317
|
+
created_at: string;
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* Record update date
|
|
321
|
+
*/
|
|
322
|
+
updated_at: string;
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* Identifier of the worker whose time split configuration this represents.
|
|
326
|
+
*/
|
|
327
|
+
worker_id: string;
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* Whether hard-coded time splits are active for this worker.
|
|
331
|
+
*/
|
|
332
|
+
is_enabled?: boolean;
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* The job codes referenced in this time split configuration. Use ?expand=job_codes
|
|
336
|
+
* to populate.
|
|
337
|
+
*
|
|
338
|
+
* Expandable field
|
|
339
|
+
*/
|
|
340
|
+
job_codes?: Array<JobCodesAPI.JobCode>;
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* IDs of all unique job codes referenced across all split rows.
|
|
344
|
+
*/
|
|
345
|
+
job_codes_id?: Array<string>;
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* The split rows defining time allocation percentages across job codes. Empty when
|
|
349
|
+
* is_enabled is false.
|
|
350
|
+
*/
|
|
351
|
+
splits?: Array<WorkerTimeSplitUpdateResponse.Split>;
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* The worker associated with this time split configuration.
|
|
355
|
+
*
|
|
356
|
+
* Expandable field
|
|
357
|
+
*/
|
|
358
|
+
worker?: WorkersAPI.Worker;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
export namespace WorkerTimeSplitUpdateResponse {
|
|
362
|
+
/**
|
|
363
|
+
* A single split row representing a percentage allocation across one or more job
|
|
364
|
+
* codes.
|
|
365
|
+
*/
|
|
366
|
+
export interface Split {
|
|
367
|
+
/**
|
|
368
|
+
* IDs of canonical /job-codes/ resources in this split row.
|
|
369
|
+
*/
|
|
370
|
+
job_code_ids?: Array<string>;
|
|
371
|
+
|
|
372
|
+
/**
|
|
373
|
+
* Percentage allocated to this split row. Decimal string with precision 2; must be
|
|
374
|
+
* greater than zero per row. All rows must sum to 100.00 when is_enabled is true.
|
|
375
|
+
*/
|
|
376
|
+
split_percentage?: string;
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
export interface WorkerTimeSplitListParams {
|
|
381
|
+
cursor?: string;
|
|
382
|
+
|
|
383
|
+
expand?: string;
|
|
384
|
+
|
|
385
|
+
filter?: string;
|
|
386
|
+
|
|
387
|
+
order_by?: string;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
export interface WorkerTimeSplitCreateParams {
|
|
391
|
+
/**
|
|
392
|
+
* Identifier of the worker whose time split configuration this represents.
|
|
393
|
+
*/
|
|
394
|
+
worker_id: string;
|
|
395
|
+
|
|
396
|
+
/**
|
|
397
|
+
* Whether hard-coded time splits are active for this worker.
|
|
398
|
+
*/
|
|
399
|
+
is_enabled?: boolean;
|
|
400
|
+
|
|
401
|
+
/**
|
|
402
|
+
* The split rows defining time allocation percentages across job codes. Empty when
|
|
403
|
+
* is_enabled is false.
|
|
404
|
+
*/
|
|
405
|
+
splits?: Array<WorkerTimeSplitCreateParams.Split>;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
export namespace WorkerTimeSplitCreateParams {
|
|
409
|
+
/**
|
|
410
|
+
* A single split row representing a percentage allocation across one or more job
|
|
411
|
+
* codes.
|
|
412
|
+
*/
|
|
413
|
+
export interface Split {
|
|
414
|
+
/**
|
|
415
|
+
* IDs of canonical /job-codes/ resources in this split row.
|
|
416
|
+
*/
|
|
417
|
+
job_code_ids?: Array<string>;
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* Percentage allocated to this split row. Decimal string with precision 2; must be
|
|
421
|
+
* greater than zero per row. All rows must sum to 100.00 when is_enabled is true.
|
|
422
|
+
*/
|
|
423
|
+
split_percentage?: string;
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
export interface WorkerTimeSplitRetrieveParams {
|
|
428
|
+
expand?: string;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
export interface WorkerTimeSplitUpdateParams {
|
|
432
|
+
/**
|
|
433
|
+
* Identifier of the worker whose time split configuration this represents.
|
|
434
|
+
*/
|
|
435
|
+
worker_id: string;
|
|
436
|
+
|
|
437
|
+
/**
|
|
438
|
+
* Whether hard-coded time splits are active for this worker.
|
|
439
|
+
*/
|
|
440
|
+
is_enabled?: boolean;
|
|
441
|
+
|
|
442
|
+
/**
|
|
443
|
+
* The split rows defining time allocation percentages across job codes. Empty when
|
|
444
|
+
* is_enabled is false.
|
|
445
|
+
*/
|
|
446
|
+
splits?: Array<WorkerTimeSplitUpdateParams.Split>;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
export namespace WorkerTimeSplitUpdateParams {
|
|
450
|
+
/**
|
|
451
|
+
* A single split row representing a percentage allocation across one or more job
|
|
452
|
+
* codes.
|
|
453
|
+
*/
|
|
454
|
+
export interface Split {
|
|
455
|
+
/**
|
|
456
|
+
* IDs of canonical /job-codes/ resources in this split row.
|
|
457
|
+
*/
|
|
458
|
+
job_code_ids?: Array<string>;
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* Percentage allocated to this split row. Decimal string with precision 2; must be
|
|
462
|
+
* greater than zero per row. All rows must sum to 100.00 when is_enabled is true.
|
|
463
|
+
*/
|
|
464
|
+
split_percentage?: string;
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
export declare namespace WorkerTimeSplits {
|
|
469
|
+
export {
|
|
470
|
+
type WorkerTimeSplitListResponse as WorkerTimeSplitListResponse,
|
|
471
|
+
type WorkerTimeSplitCreateResponse as WorkerTimeSplitCreateResponse,
|
|
472
|
+
type WorkerTimeSplitRetrieveResponse as WorkerTimeSplitRetrieveResponse,
|
|
473
|
+
type WorkerTimeSplitUpdateResponse as WorkerTimeSplitUpdateResponse,
|
|
474
|
+
type WorkerTimeSplitListResponsesPageCursorURL as WorkerTimeSplitListResponsesPageCursorURL,
|
|
475
|
+
type WorkerTimeSplitListParams as WorkerTimeSplitListParams,
|
|
476
|
+
type WorkerTimeSplitCreateParams as WorkerTimeSplitCreateParams,
|
|
477
|
+
type WorkerTimeSplitRetrieveParams as WorkerTimeSplitRetrieveParams,
|
|
478
|
+
type WorkerTimeSplitUpdateParams as WorkerTimeSplitUpdateParams,
|
|
479
|
+
};
|
|
480
|
+
}
|
package/src/resources/workers.ts
CHANGED
|
@@ -23,7 +23,7 @@ export class Workers extends APIResource {
|
|
|
23
23
|
*
|
|
24
24
|
* - Requires: `API Tier 1`
|
|
25
25
|
* - Filterable fields: `status`, `work_email`, `user_id`, `created_at`,
|
|
26
|
-
* `updated_at
|
|
26
|
+
* `updated_at`
|
|
27
27
|
* - Expandable fields: `user`, `manager`, `legal_entity`, `employment_type`,
|
|
28
28
|
* `compensation`, `department`, `teams`, `level`, `custom_fields`,
|
|
29
29
|
* `business_partners`
|
|
@@ -1097,6 +1097,13 @@ export namespace WorkflowActionExecutionCreateParams {
|
|
|
1097
1097
|
|
|
1098
1098
|
message: string;
|
|
1099
1099
|
|
|
1100
|
+
/**
|
|
1101
|
+
* Functions Service run_id. When provided, the request returns 202 and completion
|
|
1102
|
+
* is delivered back to the run via SendRunEvent. When omitted, the action falls
|
|
1103
|
+
* back to synchronous execution.
|
|
1104
|
+
*/
|
|
1105
|
+
run_id?: string | null;
|
|
1106
|
+
|
|
1100
1107
|
team_id?: string | null;
|
|
1101
1108
|
}
|
|
1102
1109
|
|
|
@@ -1111,6 +1118,13 @@ export namespace WorkflowActionExecutionCreateParams {
|
|
|
1111
1118
|
message: string;
|
|
1112
1119
|
|
|
1113
1120
|
recipients?: Array<string> | null;
|
|
1121
|
+
|
|
1122
|
+
/**
|
|
1123
|
+
* Functions Service run_id. When provided, the request returns 202 and completion
|
|
1124
|
+
* is delivered back to the run via SendRunEvent. When omitted, the action falls
|
|
1125
|
+
* back to synchronous execution.
|
|
1126
|
+
*/
|
|
1127
|
+
run_id?: string | null;
|
|
1114
1128
|
}
|
|
1115
1129
|
|
|
1116
1130
|
/**
|
|
@@ -1129,6 +1143,13 @@ export namespace WorkflowActionExecutionCreateParams {
|
|
|
1129
1143
|
* Maximum reviewees: 500
|
|
1130
1144
|
*/
|
|
1131
1145
|
reviewers: Array<string>;
|
|
1146
|
+
|
|
1147
|
+
/**
|
|
1148
|
+
* Functions Service run_id. When provided, the request returns 202 and completion
|
|
1149
|
+
* is delivered back to the run via SendRunEvent. When omitted, the action falls
|
|
1150
|
+
* back to synchronous execution.
|
|
1151
|
+
*/
|
|
1152
|
+
run_id?: string | null;
|
|
1132
1153
|
}
|
|
1133
1154
|
|
|
1134
1155
|
/**
|
|
@@ -1147,6 +1168,13 @@ export namespace WorkflowActionExecutionCreateParams {
|
|
|
1147
1168
|
* Maximum reviewees: 500
|
|
1148
1169
|
*/
|
|
1149
1170
|
reviewers: Array<string>;
|
|
1171
|
+
|
|
1172
|
+
/**
|
|
1173
|
+
* Functions Service run_id. When provided, the request returns 202 and completion
|
|
1174
|
+
* is delivered back to the run via SendRunEvent. When omitted, the action falls
|
|
1175
|
+
* back to synchronous execution.
|
|
1176
|
+
*/
|
|
1177
|
+
run_id?: string | null;
|
|
1150
1178
|
}
|
|
1151
1179
|
|
|
1152
1180
|
/**
|
|
@@ -1210,6 +1238,13 @@ export namespace WorkflowActionExecutionCreateParams {
|
|
|
1210
1238
|
|
|
1211
1239
|
port?: number | null;
|
|
1212
1240
|
|
|
1241
|
+
/**
|
|
1242
|
+
* Functions Service run_id. When provided, the request returns 202 and completion
|
|
1243
|
+
* is delivered back to the run via SendRunEvent. When omitted, the action falls
|
|
1244
|
+
* back to synchronous execution.
|
|
1245
|
+
*/
|
|
1246
|
+
run_id?: string | null;
|
|
1247
|
+
|
|
1213
1248
|
show_sub_totals?: boolean | null;
|
|
1214
1249
|
|
|
1215
1250
|
/**
|
|
@@ -1284,6 +1319,13 @@ export namespace WorkflowActionExecutionCreateParams {
|
|
|
1284
1319
|
|
|
1285
1320
|
port?: number | null;
|
|
1286
1321
|
|
|
1322
|
+
/**
|
|
1323
|
+
* Functions Service run_id. When provided, the request returns 202 and completion
|
|
1324
|
+
* is delivered back to the run via SendRunEvent. When omitted, the action falls
|
|
1325
|
+
* back to synchronous execution.
|
|
1326
|
+
*/
|
|
1327
|
+
run_id?: string | null;
|
|
1328
|
+
|
|
1287
1329
|
show_sub_totals?: boolean | null;
|
|
1288
1330
|
|
|
1289
1331
|
/**
|
|
@@ -1353,6 +1395,13 @@ export namespace WorkflowActionExecutionCreateParams {
|
|
|
1353
1395
|
|
|
1354
1396
|
port?: number | null;
|
|
1355
1397
|
|
|
1398
|
+
/**
|
|
1399
|
+
* Functions Service run_id. When provided, the request returns 202 and completion
|
|
1400
|
+
* is delivered back to the run via SendRunEvent. When omitted, the action falls
|
|
1401
|
+
* back to synchronous execution.
|
|
1402
|
+
*/
|
|
1403
|
+
run_id?: string | null;
|
|
1404
|
+
|
|
1356
1405
|
show_sub_totals?: boolean | null;
|
|
1357
1406
|
|
|
1358
1407
|
/**
|
|
@@ -1427,6 +1476,13 @@ export namespace WorkflowActionExecutionCreateParams {
|
|
|
1427
1476
|
|
|
1428
1477
|
port?: number | null;
|
|
1429
1478
|
|
|
1479
|
+
/**
|
|
1480
|
+
* Functions Service run_id. When provided, the request returns 202 and completion
|
|
1481
|
+
* is delivered back to the run via SendRunEvent. When omitted, the action falls
|
|
1482
|
+
* back to synchronous execution.
|
|
1483
|
+
*/
|
|
1484
|
+
run_id?: string | null;
|
|
1485
|
+
|
|
1430
1486
|
show_sub_totals?: boolean | null;
|
|
1431
1487
|
|
|
1432
1488
|
/**
|
|
@@ -1687,6 +1743,13 @@ export namespace WorkflowActionExecutionCreateParams {
|
|
|
1687
1743
|
*/
|
|
1688
1744
|
date_and_time_formatting?: 'ISO_FORMAT' | 'LOCALE_FORMAT' | null;
|
|
1689
1745
|
|
|
1746
|
+
/**
|
|
1747
|
+
* Functions Service run_id. When provided, the request returns 202 and completion
|
|
1748
|
+
* is delivered back to the run via SendRunEvent. When omitted, the action falls
|
|
1749
|
+
* back to synchronous execution.
|
|
1750
|
+
*/
|
|
1751
|
+
run_id?: string | null;
|
|
1752
|
+
|
|
1690
1753
|
show_sub_totals?: boolean | null;
|
|
1691
1754
|
|
|
1692
1755
|
/**
|
|
@@ -1846,6 +1909,13 @@ export namespace WorkflowActionExecutionCreateParams {
|
|
|
1846
1909
|
*/
|
|
1847
1910
|
date_and_time_formatting?: 'ISO_FORMAT' | 'LOCALE_FORMAT' | null;
|
|
1848
1911
|
|
|
1912
|
+
/**
|
|
1913
|
+
* Functions Service run_id. When provided, the request returns 202 and completion
|
|
1914
|
+
* is delivered back to the run via SendRunEvent. When omitted, the action falls
|
|
1915
|
+
* back to synchronous execution.
|
|
1916
|
+
*/
|
|
1917
|
+
run_id?: string | null;
|
|
1918
|
+
|
|
1849
1919
|
show_sub_totals?: boolean | null;
|
|
1850
1920
|
|
|
1851
1921
|
/**
|
|
@@ -1974,6 +2044,13 @@ export namespace WorkflowActionExecutionCreateParams {
|
|
|
1974
2044
|
* Maximum recipients: 500
|
|
1975
2045
|
*/
|
|
1976
2046
|
recipients: Array<string>;
|
|
2047
|
+
|
|
2048
|
+
/**
|
|
2049
|
+
* Functions Service run_id. When provided, the request returns 202 and completion
|
|
2050
|
+
* is delivered back to the run via SendRunEvent. When omitted, the action falls
|
|
2051
|
+
* back to synchronous execution.
|
|
2052
|
+
*/
|
|
2053
|
+
run_id?: string | null;
|
|
1977
2054
|
}
|
|
1978
2055
|
|
|
1979
2056
|
/**
|
|
@@ -1999,6 +2076,13 @@ export namespace WorkflowActionExecutionCreateParams {
|
|
|
1999
2076
|
pto_type: 'LEAVE_POLICY';
|
|
2000
2077
|
|
|
2001
2078
|
recipients: Array<string>;
|
|
2079
|
+
|
|
2080
|
+
/**
|
|
2081
|
+
* Functions Service run_id. When provided, the request returns 202 and completion
|
|
2082
|
+
* is delivered back to the run via SendRunEvent. When omitted, the action falls
|
|
2083
|
+
* back to synchronous execution.
|
|
2084
|
+
*/
|
|
2085
|
+
run_id?: string | null;
|
|
2002
2086
|
}
|
|
2003
2087
|
|
|
2004
2088
|
/**
|
|
@@ -2024,6 +2108,13 @@ export namespace WorkflowActionExecutionCreateParams {
|
|
|
2024
2108
|
pto_type: 'COMPANY_LEAVE_TYPE';
|
|
2025
2109
|
|
|
2026
2110
|
recipients: Array<string>;
|
|
2111
|
+
|
|
2112
|
+
/**
|
|
2113
|
+
* Functions Service run_id. When provided, the request returns 202 and completion
|
|
2114
|
+
* is delivered back to the run via SendRunEvent. When omitted, the action falls
|
|
2115
|
+
* back to synchronous execution.
|
|
2116
|
+
*/
|
|
2117
|
+
run_id?: string | null;
|
|
2027
2118
|
}
|
|
2028
2119
|
|
|
2029
2120
|
/**
|
|
@@ -2043,6 +2134,13 @@ export namespace WorkflowActionExecutionCreateParams {
|
|
|
2043
2134
|
payment_amount: number;
|
|
2044
2135
|
|
|
2045
2136
|
recipients: Array<string>;
|
|
2137
|
+
|
|
2138
|
+
/**
|
|
2139
|
+
* Functions Service run_id. When provided, the request returns 202 and completion
|
|
2140
|
+
* is delivered back to the run via SendRunEvent. When omitted, the action falls
|
|
2141
|
+
* back to synchronous execution.
|
|
2142
|
+
*/
|
|
2143
|
+
run_id?: string | null;
|
|
2046
2144
|
}
|
|
2047
2145
|
|
|
2048
2146
|
export interface RunQueryPayload {
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.2.0-alpha.
|
|
1
|
+
export const VERSION = '0.2.0-alpha.54'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.2.0-alpha.
|
|
1
|
+
export declare const VERSION = "0.2.0-alpha.54";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.2.0-alpha.
|
|
1
|
+
export declare const VERSION = "0.2.0-alpha.54";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VERSION = void 0;
|
|
4
|
-
exports.VERSION = '0.2.0-alpha.
|
|
4
|
+
exports.VERSION = '0.2.0-alpha.54'; // x-release-please-version
|
|
5
5
|
//# sourceMappingURL=version.js.map
|
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.2.0-alpha.
|
|
1
|
+
export const VERSION = '0.2.0-alpha.54'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|