@rippling/rippling-sdk 0.2.0-alpha.102 → 0.2.0-alpha.104
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/examples/manifest/workflow-creation/workflow-creation.ts +142 -0
- package/lib/manifest/index.d.mts +2 -1
- package/lib/manifest/index.d.mts.map +1 -1
- package/lib/manifest/index.d.ts +2 -1
- package/lib/manifest/index.d.ts.map +1 -1
- package/lib/manifest/index.js +5 -2
- package/lib/manifest/index.js.map +1 -1
- package/lib/manifest/index.mjs +2 -1
- package/lib/manifest/index.mjs.map +1 -1
- package/lib/manifest/workflow/actions/index.d.mts +365 -0
- package/lib/manifest/workflow/actions/index.d.mts.map +1 -0
- package/lib/manifest/workflow/actions/index.d.ts +365 -0
- package/lib/manifest/workflow/actions/index.d.ts.map +1 -0
- package/lib/manifest/workflow/actions/index.js +47 -0
- package/lib/manifest/workflow/actions/index.js.map +1 -0
- package/lib/manifest/workflow/actions/index.mjs +44 -0
- package/lib/manifest/workflow/actions/index.mjs.map +1 -0
- package/lib/manifest/workflow/index.d.mts +384 -0
- package/lib/manifest/workflow/index.d.mts.map +1 -0
- package/lib/manifest/workflow/index.d.ts +384 -0
- package/lib/manifest/workflow/index.d.ts.map +1 -0
- package/lib/manifest/workflow/index.js +447 -0
- package/lib/manifest/workflow/index.js.map +1 -0
- package/lib/manifest/workflow/index.mjs +442 -0
- package/lib/manifest/workflow/index.mjs.map +1 -0
- package/package.json +1 -1
- package/resources/departments.d.mts +3 -5
- package/resources/departments.d.mts.map +1 -1
- package/resources/departments.d.ts +3 -5
- package/resources/departments.d.ts.map +1 -1
- package/resources/departments.js +2 -4
- package/resources/departments.js.map +1 -1
- package/resources/departments.mjs +2 -4
- package/resources/departments.mjs.map +1 -1
- package/resources/hires.d.mts +4 -8
- package/resources/hires.d.mts.map +1 -1
- package/resources/hires.d.ts +4 -8
- package/resources/hires.d.ts.map +1 -1
- package/resources/hires.js +4 -4
- package/resources/hires.mjs +4 -4
- package/resources/job-assignments.d.mts +10 -13
- package/resources/job-assignments.d.mts.map +1 -1
- package/resources/job-assignments.d.ts +10 -13
- package/resources/job-assignments.d.ts.map +1 -1
- package/resources/job-assignments.js +2 -5
- package/resources/job-assignments.js.map +1 -1
- package/resources/job-assignments.mjs +2 -5
- package/resources/job-assignments.mjs.map +1 -1
- package/resources/job-codes.d.mts +10 -13
- package/resources/job-codes.d.mts.map +1 -1
- package/resources/job-codes.d.ts +10 -13
- package/resources/job-codes.d.ts.map +1 -1
- package/resources/job-codes.js +2 -5
- package/resources/job-codes.js.map +1 -1
- package/resources/job-codes.mjs +2 -5
- package/resources/job-codes.mjs.map +1 -1
- package/resources/job-dimensions.d.mts +6 -8
- package/resources/job-dimensions.d.mts.map +1 -1
- package/resources/job-dimensions.d.ts +6 -8
- package/resources/job-dimensions.d.ts.map +1 -1
- package/resources/job-dimensions.js +2 -4
- package/resources/job-dimensions.js.map +1 -1
- package/resources/job-dimensions.mjs +2 -4
- package/resources/job-dimensions.mjs.map +1 -1
- package/resources/kiosk-badges.d.mts +3 -5
- package/resources/kiosk-badges.d.mts.map +1 -1
- package/resources/kiosk-badges.d.ts +3 -5
- package/resources/kiosk-badges.d.ts.map +1 -1
- package/resources/kiosk-badges.js +2 -4
- package/resources/kiosk-badges.js.map +1 -1
- package/resources/kiosk-badges.mjs +2 -4
- package/resources/kiosk-badges.mjs.map +1 -1
- package/resources/leave-accruals.d.mts +4 -4
- package/resources/leave-accruals.d.mts.map +1 -1
- package/resources/leave-accruals.d.ts +4 -4
- package/resources/leave-accruals.d.ts.map +1 -1
- package/resources/leave-requests.d.mts +18 -23
- package/resources/leave-requests.d.mts.map +1 -1
- package/resources/leave-requests.d.ts +18 -23
- package/resources/leave-requests.d.ts.map +1 -1
- package/resources/leave-requests.js +2 -7
- package/resources/leave-requests.js.map +1 -1
- package/resources/leave-requests.mjs +2 -7
- package/resources/leave-requests.mjs.map +1 -1
- package/resources/packages/packages.d.mts +17 -17
- package/resources/packages/packages.d.mts.map +1 -1
- package/resources/packages/packages.d.ts +17 -17
- package/resources/packages/packages.d.ts.map +1 -1
- package/resources/packages/packages.js +5 -5
- package/resources/packages/packages.mjs +5 -5
- package/resources/sandboxes.d.mts +7 -5
- package/resources/sandboxes.d.mts.map +1 -1
- package/resources/sandboxes.d.ts +7 -5
- package/resources/sandboxes.d.ts.map +1 -1
- package/resources/sandboxes.js +3 -1
- package/resources/sandboxes.js.map +1 -1
- package/resources/sandboxes.mjs +3 -1
- package/resources/sandboxes.mjs.map +1 -1
- package/resources/shift-assignments.d.mts +11 -6
- package/resources/shift-assignments.d.mts.map +1 -1
- package/resources/shift-assignments.d.ts +11 -6
- package/resources/shift-assignments.d.ts.map +1 -1
- package/resources/shift-assignments.js +8 -4
- package/resources/shift-assignments.js.map +1 -1
- package/resources/shift-assignments.mjs +8 -4
- package/resources/shift-assignments.mjs.map +1 -1
- package/resources/shift-inputs.d.mts +10 -15
- package/resources/shift-inputs.d.mts.map +1 -1
- package/resources/shift-inputs.d.ts +10 -15
- package/resources/shift-inputs.d.ts.map +1 -1
- package/resources/shift-inputs.js +2 -7
- package/resources/shift-inputs.js.map +1 -1
- package/resources/shift-inputs.mjs +2 -7
- package/resources/shift-inputs.mjs.map +1 -1
- package/resources/sites.d.mts +19 -6
- package/resources/sites.d.mts.map +1 -1
- package/resources/sites.d.ts +19 -6
- package/resources/sites.d.ts.map +1 -1
- package/resources/software-deployments.d.mts +6 -8
- package/resources/software-deployments.d.mts.map +1 -1
- package/resources/software-deployments.d.ts +6 -8
- package/resources/software-deployments.d.ts.map +1 -1
- package/resources/software-deployments.js +2 -4
- package/resources/software-deployments.js.map +1 -1
- package/resources/software-deployments.mjs +2 -4
- package/resources/software-deployments.mjs.map +1 -1
- package/resources/supergroups/members.d.mts +3 -1
- package/resources/supergroups/members.d.mts.map +1 -1
- package/resources/supergroups/members.d.ts +3 -1
- package/resources/supergroups/members.d.ts.map +1 -1
- package/resources/supergroups/members.js +3 -1
- package/resources/supergroups/members.js.map +1 -1
- package/resources/supergroups/members.mjs +3 -1
- package/resources/supergroups/members.mjs.map +1 -1
- package/resources/unassigned-shifts.d.mts +11 -6
- package/resources/unassigned-shifts.d.mts.map +1 -1
- package/resources/unassigned-shifts.d.ts +11 -6
- package/resources/unassigned-shifts.d.ts.map +1 -1
- package/resources/unassigned-shifts.js +8 -4
- package/resources/unassigned-shifts.js.map +1 -1
- package/resources/unassigned-shifts.mjs +8 -4
- package/resources/unassigned-shifts.mjs.map +1 -1
- package/resources/variable-compensation-payouts.d.mts +4 -4
- package/resources/variable-compensation-payouts.d.mts.map +1 -1
- package/resources/variable-compensation-payouts.d.ts +4 -4
- package/resources/variable-compensation-payouts.d.ts.map +1 -1
- package/resources/work-locations.d.mts +4 -7
- package/resources/work-locations.d.mts.map +1 -1
- package/resources/work-locations.d.ts +4 -7
- package/resources/work-locations.d.ts.map +1 -1
- package/resources/work-locations.js +2 -5
- package/resources/work-locations.js.map +1 -1
- package/resources/work-locations.mjs +2 -5
- package/resources/work-locations.mjs.map +1 -1
- package/src/lib/manifest/index.ts +40 -0
- package/src/lib/manifest/workflow/actions/index.ts +338 -0
- package/src/lib/manifest/workflow/index.ts +953 -0
- package/src/resources/departments.ts +7 -5
- package/src/resources/hires.ts +4 -9
- package/src/resources/job-assignments.ts +16 -15
- package/src/resources/job-codes.ts +16 -15
- package/src/resources/job-dimensions.ts +11 -9
- package/src/resources/kiosk-badges.ts +3 -5
- package/src/resources/leave-accruals.ts +8 -4
- package/src/resources/leave-requests.ts +21 -26
- package/src/resources/packages/packages.ts +17 -17
- package/src/resources/sandboxes.ts +7 -5
- package/src/resources/shift-assignments.ts +11 -8
- package/src/resources/shift-inputs.ts +11 -16
- package/src/resources/sites.ts +19 -6
- package/src/resources/software-deployments.ts +7 -9
- package/src/resources/supergroups/members.ts +3 -1
- package/src/resources/unassigned-shifts.ts +11 -8
- package/src/resources/variable-compensation-payouts.ts +0 -4
- package/src/resources/work-locations.ts +8 -7
- 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/lib/manifest/workflow.d.mts +0 -158
- package/lib/manifest/workflow.d.mts.map +0 -1
- package/lib/manifest/workflow.d.ts +0 -158
- package/lib/manifest/workflow.d.ts.map +0 -1
- package/lib/manifest/workflow.js +0 -51
- package/lib/manifest/workflow.js.map +0 -1
- package/lib/manifest/workflow.mjs +0 -47
- package/lib/manifest/workflow.mjs.map +0 -1
- package/src/lib/manifest/workflow.ts +0 -248
|
@@ -231,9 +231,7 @@ export class Departments extends APIResource {
|
|
|
231
231
|
* Accept: application/json
|
|
232
232
|
* Rippling-Api-Version: 2024-08-01
|
|
233
233
|
*
|
|
234
|
-
* {
|
|
235
|
-
* "name": "name"
|
|
236
|
-
* }
|
|
234
|
+
* {}
|
|
237
235
|
*
|
|
238
236
|
* HTTP/1.1 200 OK
|
|
239
237
|
* Content-Type: application/json
|
|
@@ -327,7 +325,11 @@ export class Departments extends APIResource {
|
|
|
327
325
|
* }
|
|
328
326
|
* ```
|
|
329
327
|
*/
|
|
330
|
-
update(
|
|
328
|
+
update(
|
|
329
|
+
id: string,
|
|
330
|
+
body: DepartmentUpdateParams | null | undefined = {},
|
|
331
|
+
options?: RequestOptions,
|
|
332
|
+
): APIPromise<Department> {
|
|
331
333
|
return this._client.patch(path`/departments/${id}/`, { body, ...options });
|
|
332
334
|
}
|
|
333
335
|
}
|
|
@@ -430,7 +432,7 @@ export interface DepartmentUpdateParams {
|
|
|
430
432
|
/**
|
|
431
433
|
* The name of the department.
|
|
432
434
|
*/
|
|
433
|
-
name
|
|
435
|
+
name?: string;
|
|
434
436
|
|
|
435
437
|
/**
|
|
436
438
|
* The parent department.
|
package/src/resources/hires.ts
CHANGED
|
@@ -10,8 +10,9 @@ import { RequestOptions } from '../internal/request-options';
|
|
|
10
10
|
*/
|
|
11
11
|
export class Hires extends APIResource {
|
|
12
12
|
/**
|
|
13
|
-
* Create or resume hire records for admin review. Idempotency-Key
|
|
14
|
-
*
|
|
13
|
+
* Create or resume hire records for admin review. Idempotency-Key is required. GET
|
|
14
|
+
* /hire-requirements/ is optional discovery. First milestone is US and CA direct
|
|
15
|
+
* hire.
|
|
15
16
|
*
|
|
16
17
|
* @example HTTP
|
|
17
18
|
* Representative request and response shapes.
|
|
@@ -44,8 +45,7 @@ export class Hires extends APIResource {
|
|
|
44
45
|
* "country_code": "country_code"
|
|
45
46
|
* }
|
|
46
47
|
* }
|
|
47
|
-
* ]
|
|
48
|
-
* "requirements_version": "requirements_version"
|
|
48
|
+
* ]
|
|
49
49
|
* }
|
|
50
50
|
*
|
|
51
51
|
* HTTP/1.1 200 OK
|
|
@@ -181,11 +181,6 @@ export interface HireCreateParams {
|
|
|
181
181
|
*/
|
|
182
182
|
hires: Array<HireCreateParams.Hire>;
|
|
183
183
|
|
|
184
|
-
/**
|
|
185
|
-
* Body param: Requirements version returned by GET /hire-requirements/. Required.
|
|
186
|
-
*/
|
|
187
|
-
requirements_version: string;
|
|
188
|
-
|
|
189
184
|
/**
|
|
190
185
|
* Header param: Caller-generated key used to deduplicate retried create requests.
|
|
191
186
|
*/
|
|
@@ -373,10 +373,7 @@ export class JobAssignments extends APIResource {
|
|
|
373
373
|
* Accept: application/json
|
|
374
374
|
* Rippling-Api-Version: 2024-08-01
|
|
375
375
|
*
|
|
376
|
-
* {
|
|
377
|
-
* "job_code_id": "job_code_id",
|
|
378
|
-
* "worker_id": "worker_id"
|
|
379
|
-
* }
|
|
376
|
+
* {}
|
|
380
377
|
*
|
|
381
378
|
* HTTP/1.1 200 OK
|
|
382
379
|
* Content-Type: application/json
|
|
@@ -548,7 +545,11 @@ export class JobAssignments extends APIResource {
|
|
|
548
545
|
* }
|
|
549
546
|
* ```
|
|
550
547
|
*/
|
|
551
|
-
update(
|
|
548
|
+
update(
|
|
549
|
+
id: string,
|
|
550
|
+
body: JobAssignmentUpdateParams | null | undefined = {},
|
|
551
|
+
options?: RequestOptions,
|
|
552
|
+
): APIPromise<JobAssignment> {
|
|
552
553
|
return this._client.patch(path`/job-assignments/${id}/`, { body, ...options });
|
|
553
554
|
}
|
|
554
555
|
|
|
@@ -886,16 +887,6 @@ export interface JobAssignmentRetrieveParams {
|
|
|
886
887
|
}
|
|
887
888
|
|
|
888
889
|
export interface JobAssignmentUpdateParams {
|
|
889
|
-
/**
|
|
890
|
-
* Identifier of job that is assigned to worker
|
|
891
|
-
*/
|
|
892
|
-
job_code_id: string;
|
|
893
|
-
|
|
894
|
-
/**
|
|
895
|
-
* Identifier of worker to whom job is assigned.
|
|
896
|
-
*/
|
|
897
|
-
worker_id: string;
|
|
898
|
-
|
|
899
890
|
/**
|
|
900
891
|
* Reason recorded on the change (e.g., the reason for scheduling an unassignment).
|
|
901
892
|
*/
|
|
@@ -908,6 +899,11 @@ export interface JobAssignmentUpdateParams {
|
|
|
908
899
|
*/
|
|
909
900
|
effective_from?: string;
|
|
910
901
|
|
|
902
|
+
/**
|
|
903
|
+
* Identifier of job that is assigned to worker
|
|
904
|
+
*/
|
|
905
|
+
job_code_id?: string;
|
|
906
|
+
|
|
911
907
|
/**
|
|
912
908
|
* The pay rate for job assigned to worker. This can be different from the job's
|
|
913
909
|
* standard pay rate and can be overriden for a worker.
|
|
@@ -925,6 +921,11 @@ export interface JobAssignmentUpdateParams {
|
|
|
925
921
|
* effective_from field instead.
|
|
926
922
|
*/
|
|
927
923
|
job_pay_rate_effective_from?: string;
|
|
924
|
+
|
|
925
|
+
/**
|
|
926
|
+
* Identifier of worker to whom job is assigned.
|
|
927
|
+
*/
|
|
928
|
+
worker_id?: string;
|
|
928
929
|
}
|
|
929
930
|
|
|
930
931
|
export interface JobAssignmentDeleteParams {
|
|
@@ -315,10 +315,7 @@ export class JobCodes extends APIResource {
|
|
|
315
315
|
* Accept: application/json
|
|
316
316
|
* Rippling-Api-Version: 2024-08-01
|
|
317
317
|
*
|
|
318
|
-
* {
|
|
319
|
-
* "job_dimension_id": "job_dimension_id",
|
|
320
|
-
* "name": "name"
|
|
321
|
-
* }
|
|
318
|
+
* {}
|
|
322
319
|
*
|
|
323
320
|
* HTTP/1.1 200 OK
|
|
324
321
|
* Content-Type: application/json
|
|
@@ -459,7 +456,11 @@ export class JobCodes extends APIResource {
|
|
|
459
456
|
* }
|
|
460
457
|
* ```
|
|
461
458
|
*/
|
|
462
|
-
update(
|
|
459
|
+
update(
|
|
460
|
+
id: string,
|
|
461
|
+
body: JobCodeUpdateParams | null | undefined = {},
|
|
462
|
+
options?: RequestOptions,
|
|
463
|
+
): APIPromise<JobCode> {
|
|
463
464
|
return this._client.patch(path`/job-codes/${id}/`, { body, ...options });
|
|
464
465
|
}
|
|
465
466
|
|
|
@@ -931,16 +932,6 @@ export interface JobCodeRetrieveParams {
|
|
|
931
932
|
}
|
|
932
933
|
|
|
933
934
|
export interface JobCodeUpdateParams {
|
|
934
|
-
/**
|
|
935
|
-
* The ID of the job dimension this job code belongs to.
|
|
936
|
-
*/
|
|
937
|
-
job_dimension_id: string;
|
|
938
|
-
|
|
939
|
-
/**
|
|
940
|
-
* The name of the job dimension.
|
|
941
|
-
*/
|
|
942
|
-
name: string;
|
|
943
|
-
|
|
944
935
|
/**
|
|
945
936
|
* The custom location of the job code. This location will be used for tax
|
|
946
937
|
* calculation purposes if using US Payroll when an employee is working at this job
|
|
@@ -959,6 +950,16 @@ export interface JobCodeUpdateParams {
|
|
|
959
950
|
*/
|
|
960
951
|
is_archived?: boolean;
|
|
961
952
|
|
|
953
|
+
/**
|
|
954
|
+
* The ID of the job dimension this job code belongs to.
|
|
955
|
+
*/
|
|
956
|
+
job_dimension_id?: string;
|
|
957
|
+
|
|
958
|
+
/**
|
|
959
|
+
* The name of the job dimension.
|
|
960
|
+
*/
|
|
961
|
+
name?: string;
|
|
962
|
+
|
|
962
963
|
/**
|
|
963
964
|
* The pay rate for this job code. Only applicable if the associated job dimension
|
|
964
965
|
* includes the 'PAY_RATE' organizational attribute.
|
|
@@ -142,9 +142,7 @@ export class JobDimensions extends APIResource {
|
|
|
142
142
|
* Accept: application/json
|
|
143
143
|
* Rippling-Api-Version: 2024-08-01
|
|
144
144
|
*
|
|
145
|
-
* {
|
|
146
|
-
* "name": "name"
|
|
147
|
-
* }
|
|
145
|
+
* {}
|
|
148
146
|
*
|
|
149
147
|
* HTTP/1.1 200 OK
|
|
150
148
|
* Content-Type: application/json
|
|
@@ -164,7 +162,11 @@ export class JobDimensions extends APIResource {
|
|
|
164
162
|
* }
|
|
165
163
|
* ```
|
|
166
164
|
*/
|
|
167
|
-
update(
|
|
165
|
+
update(
|
|
166
|
+
id: string,
|
|
167
|
+
body: JobDimensionUpdateParams | null | undefined = {},
|
|
168
|
+
options?: RequestOptions,
|
|
169
|
+
): APIPromise<JobDimension> {
|
|
168
170
|
return this._client.patch(path`/job-dimensions/${id}/`, { body, ...options });
|
|
169
171
|
}
|
|
170
172
|
|
|
@@ -323,11 +325,6 @@ export interface JobDimensionCreateParams {
|
|
|
323
325
|
}
|
|
324
326
|
|
|
325
327
|
export interface JobDimensionUpdateParams {
|
|
326
|
-
/**
|
|
327
|
-
* The name of the job dimension
|
|
328
|
-
*/
|
|
329
|
-
name: string;
|
|
330
|
-
|
|
331
328
|
/**
|
|
332
329
|
* The unique identifier of the job dimension in a third party system
|
|
333
330
|
*/
|
|
@@ -339,6 +336,11 @@ export interface JobDimensionUpdateParams {
|
|
|
339
336
|
*/
|
|
340
337
|
includes_custom_location?: boolean;
|
|
341
338
|
|
|
339
|
+
/**
|
|
340
|
+
* The name of the job dimension
|
|
341
|
+
*/
|
|
342
|
+
name?: string;
|
|
343
|
+
|
|
342
344
|
/**
|
|
343
345
|
* Organizational attributes associated with the job dimension. Only 'PAY_RATE' can
|
|
344
346
|
* be set or modified using POST or PATCH requests.
|
|
@@ -356,9 +356,7 @@ export class KioskBadges extends APIResource {
|
|
|
356
356
|
* Accept: application/json
|
|
357
357
|
* Rippling-Api-Version: 2024-08-01
|
|
358
358
|
*
|
|
359
|
-
* {
|
|
360
|
-
* "badge_id": "badge_id"
|
|
361
|
-
* }
|
|
359
|
+
* {}
|
|
362
360
|
*
|
|
363
361
|
* HTTP/1.1 200 OK
|
|
364
362
|
* Content-Type: application/json
|
|
@@ -540,7 +538,7 @@ export class KioskBadges extends APIResource {
|
|
|
540
538
|
*/
|
|
541
539
|
update(
|
|
542
540
|
id: string,
|
|
543
|
-
body: KioskBadgeUpdateParams,
|
|
541
|
+
body: KioskBadgeUpdateParams | null | undefined = {},
|
|
544
542
|
options?: RequestOptions,
|
|
545
543
|
): APIPromise<KioskBadgeUpdateResponse> {
|
|
546
544
|
return this._client.patch(path`/kiosk-badges/${id}/`, { body, ...options });
|
|
@@ -815,7 +813,7 @@ export interface KioskBadgeUpdateParams {
|
|
|
815
813
|
/**
|
|
816
814
|
* The ID associated with the badge. Not to be confused with the record's ID.
|
|
817
815
|
*/
|
|
818
|
-
badge_id
|
|
816
|
+
badge_id?: string;
|
|
819
817
|
|
|
820
818
|
/**
|
|
821
819
|
* Whether this badge can be used with the Kiosk app.
|
|
@@ -474,7 +474,8 @@ export interface LeaveAccrualListResponse {
|
|
|
474
474
|
| 'RESET_PENALTY_PAYOUT'
|
|
475
475
|
| 'HOLIDAY_ADJUSTMENT'
|
|
476
476
|
| 'HOURS_WORKED_TANDA'
|
|
477
|
-
| 'TENURE_MILESTONE'
|
|
477
|
+
| 'TENURE_MILESTONE'
|
|
478
|
+
| 'FR_COP_FRACTIONNEMENT';
|
|
478
479
|
|
|
479
480
|
/**
|
|
480
481
|
* The comment for this accrual. This is required if the leave policy requires a
|
|
@@ -585,7 +586,8 @@ export interface LeaveAccrualCreateResponse {
|
|
|
585
586
|
| 'RESET_PENALTY_PAYOUT'
|
|
586
587
|
| 'HOLIDAY_ADJUSTMENT'
|
|
587
588
|
| 'HOURS_WORKED_TANDA'
|
|
588
|
-
| 'TENURE_MILESTONE'
|
|
589
|
+
| 'TENURE_MILESTONE'
|
|
590
|
+
| 'FR_COP_FRACTIONNEMENT';
|
|
589
591
|
|
|
590
592
|
/**
|
|
591
593
|
* The comment for this accrual. This is required if the leave policy requires a
|
|
@@ -693,7 +695,8 @@ export interface LeaveAccrualRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
|
693
695
|
| 'RESET_PENALTY_PAYOUT'
|
|
694
696
|
| 'HOLIDAY_ADJUSTMENT'
|
|
695
697
|
| 'HOURS_WORKED_TANDA'
|
|
696
|
-
| 'TENURE_MILESTONE'
|
|
698
|
+
| 'TENURE_MILESTONE'
|
|
699
|
+
| 'FR_COP_FRACTIONNEMENT';
|
|
697
700
|
|
|
698
701
|
/**
|
|
699
702
|
* The comment for this accrual. This is required if the leave policy requires a
|
|
@@ -798,7 +801,8 @@ export interface LeaveAccrualCreateParams {
|
|
|
798
801
|
| 'RESET_PENALTY_PAYOUT'
|
|
799
802
|
| 'HOLIDAY_ADJUSTMENT'
|
|
800
803
|
| 'HOURS_WORKED_TANDA'
|
|
801
|
-
| 'TENURE_MILESTONE'
|
|
804
|
+
| 'TENURE_MILESTONE'
|
|
805
|
+
| 'FR_COP_FRACTIONNEMENT';
|
|
802
806
|
|
|
803
807
|
/**
|
|
804
808
|
* The comment for this accrual. This is required if the leave policy requires a
|
|
@@ -436,12 +436,7 @@ export class LeaveRequests extends APIResource {
|
|
|
436
436
|
* Accept: application/json
|
|
437
437
|
* Rippling-Api-Version: 2024-08-01
|
|
438
438
|
*
|
|
439
|
-
* {
|
|
440
|
-
* "end_date": "end_date",
|
|
441
|
-
* "start_date": "start_date",
|
|
442
|
-
* "status": "PENDING",
|
|
443
|
-
* "worker_id": "worker_id"
|
|
444
|
-
* }
|
|
439
|
+
* {}
|
|
445
440
|
*
|
|
446
441
|
* HTTP/1.1 200 OK
|
|
447
442
|
* Content-Type: application/json
|
|
@@ -627,7 +622,7 @@ export class LeaveRequests extends APIResource {
|
|
|
627
622
|
*/
|
|
628
623
|
update(
|
|
629
624
|
id: string,
|
|
630
|
-
body: LeaveRequestUpdateParams,
|
|
625
|
+
body: LeaveRequestUpdateParams | null | undefined = {},
|
|
631
626
|
options?: RequestOptions,
|
|
632
627
|
): APIPromise<LeaveRequestUpdateResponse> {
|
|
633
628
|
return this._client.patch(path`/leave-requests/${id}/`, { body, ...options });
|
|
@@ -1412,29 +1407,14 @@ export interface LeaveRequestRetrieveParams {
|
|
|
1412
1407
|
|
|
1413
1408
|
export interface LeaveRequestUpdateParams {
|
|
1414
1409
|
/**
|
|
1415
|
-
* The
|
|
1416
|
-
*/
|
|
1417
|
-
end_date: string;
|
|
1418
|
-
|
|
1419
|
-
/**
|
|
1420
|
-
* The start date of the leave request.
|
|
1421
|
-
*/
|
|
1422
|
-
start_date: string;
|
|
1423
|
-
|
|
1424
|
-
/**
|
|
1425
|
-
* The status of the leave request.
|
|
1426
|
-
*/
|
|
1427
|
-
status: 'PENDING' | 'APPROVED' | 'REJECTED' | 'CANCELED';
|
|
1428
|
-
|
|
1429
|
-
/**
|
|
1430
|
-
* The ID of the worker associated with the leave request.
|
|
1410
|
+
* The comments associated with the leave request.
|
|
1431
1411
|
*/
|
|
1432
|
-
|
|
1412
|
+
comments?: string;
|
|
1433
1413
|
|
|
1434
1414
|
/**
|
|
1435
|
-
* The
|
|
1415
|
+
* The end date of the leave request.
|
|
1436
1416
|
*/
|
|
1437
|
-
|
|
1417
|
+
end_date?: string;
|
|
1438
1418
|
|
|
1439
1419
|
/**
|
|
1440
1420
|
* The number of hours to take off on the end date.
|
|
@@ -1483,6 +1463,11 @@ export interface LeaveRequestUpdateParams {
|
|
|
1483
1463
|
*/
|
|
1484
1464
|
reviewer_id?: string;
|
|
1485
1465
|
|
|
1466
|
+
/**
|
|
1467
|
+
* The start date of the leave request.
|
|
1468
|
+
*/
|
|
1469
|
+
start_date?: string;
|
|
1470
|
+
|
|
1486
1471
|
/**
|
|
1487
1472
|
* The number of hours to take off on the start date.
|
|
1488
1473
|
*/
|
|
@@ -1492,6 +1477,16 @@ export interface LeaveRequestUpdateParams {
|
|
|
1492
1477
|
* The start time of the leave request.
|
|
1493
1478
|
*/
|
|
1494
1479
|
start_time?: string;
|
|
1480
|
+
|
|
1481
|
+
/**
|
|
1482
|
+
* The status of the leave request.
|
|
1483
|
+
*/
|
|
1484
|
+
status?: 'PENDING' | 'APPROVED' | 'REJECTED' | 'CANCELED';
|
|
1485
|
+
|
|
1486
|
+
/**
|
|
1487
|
+
* The ID of the worker associated with the leave request.
|
|
1488
|
+
*/
|
|
1489
|
+
worker_id?: string;
|
|
1495
1490
|
}
|
|
1496
1491
|
|
|
1497
1492
|
export declare namespace LeaveRequests {
|
|
@@ -70,7 +70,7 @@ export class Packages extends APIResource {
|
|
|
70
70
|
* "package_key": "string",
|
|
71
71
|
* "package_display_name": "string",
|
|
72
72
|
* "description": "string",
|
|
73
|
-
* "package_type": "
|
|
73
|
+
* "package_type": "MANAGED",
|
|
74
74
|
* "latest_version_id": "string",
|
|
75
75
|
* "latest_version_number": "string"
|
|
76
76
|
* }
|
|
@@ -101,7 +101,7 @@ export class Packages extends APIResource {
|
|
|
101
101
|
* {
|
|
102
102
|
* "package_display_name": "package_display_name",
|
|
103
103
|
* "package_key": "package_key",
|
|
104
|
-
* "package_type": "
|
|
104
|
+
* "package_type": "MANAGED"
|
|
105
105
|
* }
|
|
106
106
|
*
|
|
107
107
|
* HTTP/1.1 200 OK
|
|
@@ -114,7 +114,7 @@ export class Packages extends APIResource {
|
|
|
114
114
|
* "package_key": "string",
|
|
115
115
|
* "package_display_name": "string",
|
|
116
116
|
* "description": "string",
|
|
117
|
-
* "package_type": "
|
|
117
|
+
* "package_type": "MANAGED",
|
|
118
118
|
* "latest_version_id": "string",
|
|
119
119
|
* "latest_version_number": "string"
|
|
120
120
|
* }
|
|
@@ -166,7 +166,7 @@ export class Packages extends APIResource {
|
|
|
166
166
|
* {
|
|
167
167
|
* "package_display_name": "package_display_name",
|
|
168
168
|
* "package_key": "package_key",
|
|
169
|
-
* "package_type": "
|
|
169
|
+
* "package_type": "MANAGED"
|
|
170
170
|
* }
|
|
171
171
|
*
|
|
172
172
|
* HTTP/1.1 200 OK
|
|
@@ -179,7 +179,7 @@ export class Packages extends APIResource {
|
|
|
179
179
|
* "package_key": "string",
|
|
180
180
|
* "package_display_name": "string",
|
|
181
181
|
* "description": "string",
|
|
182
|
-
* "package_type": "
|
|
182
|
+
* "package_type": "MANAGED",
|
|
183
183
|
* "latest_version_id": "string",
|
|
184
184
|
* "latest_version_number": "string"
|
|
185
185
|
* }
|
|
@@ -238,9 +238,9 @@ export interface PackageListResponse {
|
|
|
238
238
|
package_key: string;
|
|
239
239
|
|
|
240
240
|
/**
|
|
241
|
-
* The package type
|
|
241
|
+
* The package type
|
|
242
242
|
*/
|
|
243
|
-
package_type:
|
|
243
|
+
package_type: 'MANAGED' | 'UNMANAGED';
|
|
244
244
|
|
|
245
245
|
/**
|
|
246
246
|
* Record update date
|
|
@@ -285,9 +285,9 @@ export interface PackageCreateResponse {
|
|
|
285
285
|
package_key: string;
|
|
286
286
|
|
|
287
287
|
/**
|
|
288
|
-
* The package type
|
|
288
|
+
* The package type
|
|
289
289
|
*/
|
|
290
|
-
package_type:
|
|
290
|
+
package_type: 'MANAGED' | 'UNMANAGED';
|
|
291
291
|
|
|
292
292
|
/**
|
|
293
293
|
* Record update date
|
|
@@ -335,9 +335,9 @@ export interface PackageRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
|
335
335
|
package_key: string;
|
|
336
336
|
|
|
337
337
|
/**
|
|
338
|
-
* The package type
|
|
338
|
+
* The package type
|
|
339
339
|
*/
|
|
340
|
-
package_type:
|
|
340
|
+
package_type: 'MANAGED' | 'UNMANAGED';
|
|
341
341
|
|
|
342
342
|
/**
|
|
343
343
|
* Record update date
|
|
@@ -382,9 +382,9 @@ export interface PackageUpdateResponse {
|
|
|
382
382
|
package_key: string;
|
|
383
383
|
|
|
384
384
|
/**
|
|
385
|
-
* The package type
|
|
385
|
+
* The package type
|
|
386
386
|
*/
|
|
387
|
-
package_type:
|
|
387
|
+
package_type: 'MANAGED' | 'UNMANAGED';
|
|
388
388
|
|
|
389
389
|
/**
|
|
390
390
|
* Record update date
|
|
@@ -432,9 +432,9 @@ export interface PackageCreateParams {
|
|
|
432
432
|
package_key: string;
|
|
433
433
|
|
|
434
434
|
/**
|
|
435
|
-
* The package type
|
|
435
|
+
* The package type
|
|
436
436
|
*/
|
|
437
|
-
package_type:
|
|
437
|
+
package_type: 'MANAGED' | 'UNMANAGED';
|
|
438
438
|
|
|
439
439
|
/**
|
|
440
440
|
* The description of the package
|
|
@@ -454,9 +454,9 @@ export interface PackageUpdateParams {
|
|
|
454
454
|
package_key: string;
|
|
455
455
|
|
|
456
456
|
/**
|
|
457
|
-
* The package type
|
|
457
|
+
* The package type
|
|
458
458
|
*/
|
|
459
|
-
package_type:
|
|
459
|
+
package_type: 'MANAGED' | 'UNMANAGED';
|
|
460
460
|
|
|
461
461
|
/**
|
|
462
462
|
* The description of the package
|
|
@@ -181,7 +181,9 @@ export class Sandboxes extends APIResource {
|
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
/**
|
|
184
|
-
* Delete a sandbox
|
|
184
|
+
* Delete a sandbox. Deleting a developer sandbox deactivates all linked Unity
|
|
185
|
+
* package associations, including associations in EDIT mode or with a recent link
|
|
186
|
+
* operation in progress.
|
|
185
187
|
*
|
|
186
188
|
* @example HTTP
|
|
187
189
|
* Representative request and response shapes.
|
|
@@ -331,7 +333,7 @@ export namespace SandboxListResponse {
|
|
|
331
333
|
/**
|
|
332
334
|
* Seed company size for the developer sandbox.
|
|
333
335
|
*/
|
|
334
|
-
company_size: 'SMALL' | 'MID'
|
|
336
|
+
company_size: 'SMALL' | 'MID';
|
|
335
337
|
}
|
|
336
338
|
|
|
337
339
|
/**
|
|
@@ -584,7 +586,7 @@ export namespace SandboxCreateResponse {
|
|
|
584
586
|
/**
|
|
585
587
|
* Seed company size for the developer sandbox.
|
|
586
588
|
*/
|
|
587
|
-
company_size: 'SMALL' | 'MID'
|
|
589
|
+
company_size: 'SMALL' | 'MID';
|
|
588
590
|
}
|
|
589
591
|
|
|
590
592
|
/**
|
|
@@ -840,7 +842,7 @@ export namespace SandboxRetrieveResponse {
|
|
|
840
842
|
/**
|
|
841
843
|
* Seed company size for the developer sandbox.
|
|
842
844
|
*/
|
|
843
|
-
company_size: 'SMALL' | 'MID'
|
|
845
|
+
company_size: 'SMALL' | 'MID';
|
|
844
846
|
}
|
|
845
847
|
|
|
846
848
|
/**
|
|
@@ -1096,7 +1098,7 @@ export namespace SandboxCreateParams {
|
|
|
1096
1098
|
/**
|
|
1097
1099
|
* Seed company size for the developer sandbox.
|
|
1098
1100
|
*/
|
|
1099
|
-
company_size: 'SMALL' | 'MID'
|
|
1101
|
+
company_size: 'SMALL' | 'MID';
|
|
1100
1102
|
}
|
|
1101
1103
|
|
|
1102
1104
|
/**
|
|
@@ -20,7 +20,9 @@ export class ShiftAssignments extends APIResource {
|
|
|
20
20
|
* @example SDK usage
|
|
21
21
|
* ```ts
|
|
22
22
|
* const response =
|
|
23
|
-
* await client.shiftAssignments.updateCustomfields('id'
|
|
23
|
+
* await client.shiftAssignments.updateCustomfields('id', {
|
|
24
|
+
* body: { FieldName1: 'bar', FieldName2: 'bar' },
|
|
25
|
+
* });
|
|
24
26
|
* ```
|
|
25
27
|
*
|
|
26
28
|
* @example HTTP
|
|
@@ -33,7 +35,8 @@ export class ShiftAssignments extends APIResource {
|
|
|
33
35
|
* Rippling-Api-Version: 2024-08-01
|
|
34
36
|
*
|
|
35
37
|
* {
|
|
36
|
-
* "FieldName1": "value1"
|
|
38
|
+
* "FieldName1": "value1",
|
|
39
|
+
* "FieldName2": "value2"
|
|
37
40
|
* }
|
|
38
41
|
*
|
|
39
42
|
* HTTP/1.1 200 OK
|
|
@@ -50,10 +53,11 @@ export class ShiftAssignments extends APIResource {
|
|
|
50
53
|
*/
|
|
51
54
|
updateCustomfields(
|
|
52
55
|
id: string,
|
|
53
|
-
|
|
56
|
+
params: ShiftAssignmentUpdateCustomfieldsParams,
|
|
54
57
|
options?: RequestOptions,
|
|
55
58
|
): APIPromise<ShiftAssignmentUpdateCustomfieldsResponse> {
|
|
56
|
-
|
|
59
|
+
const { body } = params;
|
|
60
|
+
return this._client.patch(path`/shiftassignments/${id}/customfields/`, { body: body, ...options });
|
|
57
61
|
}
|
|
58
62
|
}
|
|
59
63
|
|
|
@@ -375,11 +379,10 @@ export namespace ShiftAssignmentUpdateCustomfieldsResponse {
|
|
|
375
379
|
|
|
376
380
|
export interface ShiftAssignmentUpdateCustomfieldsParams {
|
|
377
381
|
/**
|
|
378
|
-
*
|
|
382
|
+
* Dictionary mapping custom field names to their values. Field names are dynamic
|
|
383
|
+
* and depend on your company's custom field configuration.
|
|
379
384
|
*/
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
[k: string]: unknown;
|
|
385
|
+
body: { [key: string]: unknown };
|
|
383
386
|
}
|
|
384
387
|
|
|
385
388
|
export declare namespace ShiftAssignments {
|
|
@@ -362,12 +362,7 @@ export class ShiftInputs extends APIResource {
|
|
|
362
362
|
* Accept: application/json
|
|
363
363
|
* Rippling-Api-Version: 2024-08-01
|
|
364
364
|
*
|
|
365
|
-
* {
|
|
366
|
-
* "country_code": "country_code",
|
|
367
|
-
* "name": "name",
|
|
368
|
-
* "prompt": "prompt",
|
|
369
|
-
* "type": "type"
|
|
370
|
-
* }
|
|
365
|
+
* {}
|
|
371
366
|
*
|
|
372
367
|
* HTTP/1.1 200 OK
|
|
373
368
|
* Content-Type: application/json
|
|
@@ -550,7 +545,7 @@ export class ShiftInputs extends APIResource {
|
|
|
550
545
|
*/
|
|
551
546
|
update(
|
|
552
547
|
id: string,
|
|
553
|
-
body: ShiftInputUpdateParams,
|
|
548
|
+
body: ShiftInputUpdateParams | null | undefined = {},
|
|
554
549
|
options?: RequestOptions,
|
|
555
550
|
): APIPromise<ShiftInputUpdateResponse> {
|
|
556
551
|
return this._client.patch(path`/shift-inputs/${id}/`, { body, ...options });
|
|
@@ -875,27 +870,27 @@ export interface ShiftInputUpdateParams {
|
|
|
875
870
|
/**
|
|
876
871
|
* Two letter string designating country code which the shift input is associated.
|
|
877
872
|
*/
|
|
878
|
-
country_code
|
|
873
|
+
country_code?: string;
|
|
879
874
|
|
|
880
875
|
/**
|
|
881
|
-
*
|
|
876
|
+
* The creator id associated with the shift input.
|
|
882
877
|
*/
|
|
883
|
-
|
|
878
|
+
creator_id?: string;
|
|
884
879
|
|
|
885
880
|
/**
|
|
886
|
-
*
|
|
881
|
+
* Name of the shift unit.
|
|
887
882
|
*/
|
|
888
|
-
|
|
883
|
+
name?: string;
|
|
889
884
|
|
|
890
885
|
/**
|
|
891
|
-
*
|
|
886
|
+
* Prompt for the shift unit.
|
|
892
887
|
*/
|
|
893
|
-
|
|
888
|
+
prompt?: string;
|
|
894
889
|
|
|
895
890
|
/**
|
|
896
|
-
*
|
|
891
|
+
* Type of shift unit.
|
|
897
892
|
*/
|
|
898
|
-
|
|
893
|
+
type?: string;
|
|
899
894
|
}
|
|
900
895
|
|
|
901
896
|
export declare namespace ShiftInputs {
|