@rippling/rippling-sdk 0.2.0-alpha.105 → 0.2.0-alpha.106
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 +6 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +6 -0
- package/client.d.ts.map +1 -1
- package/client.js +6 -0
- package/client.js.map +1 -1
- package/client.mjs +6 -0
- package/client.mjs.map +1 -1
- package/lib/charts/builders.d.mts +43 -0
- package/lib/charts/builders.d.mts.map +1 -0
- package/lib/charts/builders.d.ts +43 -0
- package/lib/charts/builders.d.ts.map +1 -0
- package/lib/charts/builders.js +77 -0
- package/lib/charts/builders.js.map +1 -0
- package/lib/charts/builders.mjs +70 -0
- package/lib/charts/builders.mjs.map +1 -0
- package/lib/charts/describe.d.mts +12 -0
- package/lib/charts/describe.d.mts.map +1 -0
- package/lib/charts/describe.d.ts +12 -0
- package/lib/charts/describe.d.ts.map +1 -0
- package/lib/charts/describe.js +64 -0
- package/lib/charts/describe.js.map +1 -0
- package/lib/charts/describe.mjs +61 -0
- package/lib/charts/describe.mjs.map +1 -0
- package/lib/charts/errors.d.mts +35 -0
- package/lib/charts/errors.d.mts.map +1 -0
- package/lib/charts/errors.d.ts +35 -0
- package/lib/charts/errors.d.ts.map +1 -0
- package/lib/charts/errors.js +55 -0
- package/lib/charts/errors.js.map +1 -0
- package/lib/charts/errors.mjs +47 -0
- package/lib/charts/errors.mjs.map +1 -0
- package/lib/charts/evaluate.d.mts +16 -0
- package/lib/charts/evaluate.d.mts.map +1 -0
- package/lib/charts/evaluate.d.ts +16 -0
- package/lib/charts/evaluate.d.ts.map +1 -0
- package/lib/charts/evaluate.js +99 -0
- package/lib/charts/evaluate.js.map +1 -0
- package/lib/charts/evaluate.mjs +96 -0
- package/lib/charts/evaluate.mjs.map +1 -0
- package/lib/charts/guards.d.mts +15 -0
- package/lib/charts/guards.d.mts.map +1 -0
- package/lib/charts/guards.d.ts +15 -0
- package/lib/charts/guards.d.ts.map +1 -0
- package/lib/charts/guards.js +38 -0
- package/lib/charts/guards.js.map +1 -0
- package/lib/charts/guards.mjs +34 -0
- package/lib/charts/guards.mjs.map +1 -0
- package/lib/charts/schema.d.mts +101 -0
- package/lib/charts/schema.d.mts.map +1 -0
- package/lib/charts/schema.d.ts +101 -0
- package/lib/charts/schema.d.ts.map +1 -0
- package/lib/charts/schema.js +74 -0
- package/lib/charts/schema.js.map +1 -0
- package/lib/charts/schema.mjs +71 -0
- package/lib/charts/schema.mjs.map +1 -0
- package/lib/charts/types.d.mts +79 -0
- package/lib/charts/types.d.mts.map +1 -0
- package/lib/charts/types.d.ts +79 -0
- package/lib/charts/types.d.ts.map +1 -0
- package/lib/charts/types.js +25 -0
- package/lib/charts/types.js.map +1 -0
- package/lib/charts/types.mjs +22 -0
- package/lib/charts/types.mjs.map +1 -0
- package/lib/charts.d.mts +7 -0
- package/lib/charts.d.mts.map +1 -0
- package/lib/charts.d.ts +7 -0
- package/lib/charts.d.ts.map +1 -0
- package/lib/charts.js +32 -0
- package/lib/charts.js.map +1 -0
- package/lib/charts.mjs +7 -0
- package/lib/charts.mjs.map +1 -0
- package/package.json +1 -1
- package/resources/hire-requirements.d.mts +8 -74
- package/resources/hire-requirements.d.mts.map +1 -1
- package/resources/hire-requirements.d.ts +8 -74
- package/resources/hire-requirements.d.ts.map +1 -1
- package/resources/hire-requirements.js +3 -19
- package/resources/hire-requirements.js.map +1 -1
- package/resources/hire-requirements.mjs +3 -19
- package/resources/hire-requirements.mjs.map +1 -1
- package/resources/hires.d.mts +677 -142
- package/resources/hires.d.mts.map +1 -1
- package/resources/hires.d.ts +677 -142
- package/resources/hires.d.ts.map +1 -1
- package/resources/hires.js +3 -4
- package/resources/hires.js.map +1 -1
- package/resources/hires.mjs +3 -4
- package/resources/hires.mjs.map +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +4 -2
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/payroll-payment-mode-changes.d.mts +102 -0
- package/resources/payroll-payment-mode-changes.d.mts.map +1 -0
- package/resources/payroll-payment-mode-changes.d.ts +102 -0
- package/resources/payroll-payment-mode-changes.d.ts.map +1 -0
- package/resources/payroll-payment-mode-changes.js +54 -0
- package/resources/payroll-payment-mode-changes.js.map +1 -0
- package/resources/payroll-payment-mode-changes.mjs +50 -0
- package/resources/payroll-payment-mode-changes.mjs.map +1 -0
- package/resources/payroll-runs/index.d.mts +1 -0
- package/resources/payroll-runs/index.d.mts.map +1 -1
- package/resources/payroll-runs/index.d.ts +1 -0
- package/resources/payroll-runs/index.d.ts.map +1 -1
- package/resources/payroll-runs/index.js +3 -1
- package/resources/payroll-runs/index.js.map +1 -1
- package/resources/payroll-runs/index.mjs +1 -0
- package/resources/payroll-runs/index.mjs.map +1 -1
- package/resources/payroll-runs/off-cycle.d.mts +322 -0
- package/resources/payroll-runs/off-cycle.d.mts.map +1 -0
- package/resources/payroll-runs/off-cycle.d.ts +322 -0
- package/resources/payroll-runs/off-cycle.d.ts.map +1 -0
- package/resources/payroll-runs/off-cycle.js +112 -0
- package/resources/payroll-runs/off-cycle.js.map +1 -0
- package/resources/payroll-runs/off-cycle.mjs +108 -0
- package/resources/payroll-runs/off-cycle.mjs.map +1 -0
- package/resources/payroll-runs/payroll-runs.d.mts +4 -0
- package/resources/payroll-runs/payroll-runs.d.mts.map +1 -1
- package/resources/payroll-runs/payroll-runs.d.ts +4 -0
- package/resources/payroll-runs/payroll-runs.d.ts.map +1 -1
- package/resources/payroll-runs/payroll-runs.js +4 -0
- package/resources/payroll-runs/payroll-runs.js.map +1 -1
- package/resources/payroll-runs/payroll-runs.mjs +4 -0
- package/resources/payroll-runs/payroll-runs.mjs.map +1 -1
- package/resources/sandboxes.d.mts +17 -11
- package/resources/sandboxes.d.mts.map +1 -1
- package/resources/sandboxes.d.ts +17 -11
- package/resources/sandboxes.d.ts.map +1 -1
- package/resources/sandboxes.js +1 -3
- package/resources/sandboxes.js.map +1 -1
- package/resources/sandboxes.mjs +1 -3
- package/resources/sandboxes.mjs.map +1 -1
- package/resources/variable-compensation-payout-labels.d.mts +1 -1
- package/resources/variable-compensation-payout-labels.d.ts +1 -1
- package/resources/variable-compensation-payout-labels.js +1 -1
- package/resources/variable-compensation-payout-labels.mjs +1 -1
- package/resources/variable-compensation-payout-types.d.mts +1 -1
- package/resources/variable-compensation-payout-types.d.ts +1 -1
- package/resources/variable-compensation-payout-types.js +1 -1
- package/resources/variable-compensation-payout-types.mjs +1 -1
- package/resources/variable-compensation-payouts.d.mts +1 -1
- package/resources/variable-compensation-payouts.d.ts +1 -1
- package/resources/variable-compensation-payouts.js +1 -1
- package/resources/variable-compensation-payouts.mjs +1 -1
- package/src/client.ts +16 -0
- package/src/lib/charts/README.md +114 -0
- package/src/lib/charts/builders.ts +90 -0
- package/src/lib/charts/describe.ts +67 -0
- package/src/lib/charts/errors.ts +48 -0
- package/src/lib/charts/evaluate.ts +114 -0
- package/src/lib/charts/guards.ts +42 -0
- package/src/lib/charts/schema.ts +72 -0
- package/src/lib/charts/types.ts +113 -0
- package/src/lib/charts.ts +43 -0
- package/src/resources/hire-requirements.ts +8 -85
- package/src/resources/hires.ts +866 -213
- package/src/resources/index.ts +5 -0
- package/src/resources/payroll-payment-mode-changes.ts +121 -0
- package/src/resources/payroll-runs/index.ts +1 -0
- package/src/resources/payroll-runs/off-cycle.ts +372 -0
- package/src/resources/payroll-runs/payroll-runs.ts +10 -0
- package/src/resources/sandboxes.ts +17 -11
- package/src/resources/variable-compensation-payout-labels.ts +1 -1
- package/src/resources/variable-compensation-payout-types.ts +1 -1
- package/src/resources/variable-compensation-payouts.ts +1 -1
- 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/src/resources/index.ts
CHANGED
|
@@ -526,6 +526,11 @@ export {
|
|
|
526
526
|
type PackageUpdateParams,
|
|
527
527
|
type PackageListResponsesPageCursorURL,
|
|
528
528
|
} from './packages/packages';
|
|
529
|
+
export {
|
|
530
|
+
PayrollPaymentModeChanges,
|
|
531
|
+
type PayrollPaymentModeChangeCreateResponse,
|
|
532
|
+
type PayrollPaymentModeChangeCreateParams,
|
|
533
|
+
} from './payroll-payment-mode-changes';
|
|
529
534
|
export {
|
|
530
535
|
PayrollRuns,
|
|
531
536
|
type PayrollRunListResponse,
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../internal/request-options';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Payroll runs for the company
|
|
9
|
+
*/
|
|
10
|
+
export class PayrollPaymentModeChanges extends APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Update payment modes for workers in one or more draft Global Payroll runs. The
|
|
13
|
+
* endpoint returns an item-level result for each requested change. When a request
|
|
14
|
+
* contains the same run and worker more than once, only the first change is
|
|
15
|
+
* evaluated; later entries are rejected as duplicates.
|
|
16
|
+
*
|
|
17
|
+
* @example HTTP
|
|
18
|
+
* Representative request and response shapes.
|
|
19
|
+
* ```
|
|
20
|
+
* POST /payroll-payment-mode-changes/ HTTP/1.1
|
|
21
|
+
* Host: rest.ripplingapis.com
|
|
22
|
+
* Content-Type: application/json
|
|
23
|
+
* Accept: application/json
|
|
24
|
+
* Rippling-Api-Version: 2024-08-01
|
|
25
|
+
*
|
|
26
|
+
* {
|
|
27
|
+
* "changes": [
|
|
28
|
+
* {
|
|
29
|
+
* "payment_mode": "DEFAULT",
|
|
30
|
+
* "run_id": "run_id",
|
|
31
|
+
* "worker_id": "worker_id"
|
|
32
|
+
* }
|
|
33
|
+
* ]
|
|
34
|
+
* }
|
|
35
|
+
*
|
|
36
|
+
* HTTP/1.1 200 OK
|
|
37
|
+
* Content-Type: application/json
|
|
38
|
+
*
|
|
39
|
+
* {
|
|
40
|
+
* "changes": [
|
|
41
|
+
* {
|
|
42
|
+
* "run_id": "string",
|
|
43
|
+
* "worker_id": "string",
|
|
44
|
+
* "payment_mode": "DEFAULT"
|
|
45
|
+
* }
|
|
46
|
+
* ]
|
|
47
|
+
* }
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
create(
|
|
51
|
+
body: PayrollPaymentModeChangeCreateParams,
|
|
52
|
+
options?: RequestOptions,
|
|
53
|
+
): APIPromise<PayrollPaymentModeChangeCreateResponse> {
|
|
54
|
+
return this._client.post('/payroll-payment-mode-changes/', { body, ...options });
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export interface PayrollPaymentModeChangeCreateResponse {
|
|
59
|
+
/**
|
|
60
|
+
* Payment mode changes to process. The maximum batch size is 100.
|
|
61
|
+
*/
|
|
62
|
+
changes: Array<PayrollPaymentModeChangeCreateResponse.Change>;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export namespace PayrollPaymentModeChangeCreateResponse {
|
|
66
|
+
export interface Change {
|
|
67
|
+
/**
|
|
68
|
+
* Canonical Global Payroll payment mode code to apply to the worker in the run.
|
|
69
|
+
* Known labels are DEFAULT (Default), BANK_FILE (Bank file), MANUAL (Manual),
|
|
70
|
+
* SAME_DAY_ACH (Same-day ACH), and CHECK_PRINTING (Check printing). CHECK_MAILING
|
|
71
|
+
* is supported when eligible; its customer-facing label is pending confirmation.
|
|
72
|
+
*/
|
|
73
|
+
payment_mode: 'DEFAULT' | 'BANK_FILE' | 'MANUAL' | 'SAME_DAY_ACH' | 'CHECK_PRINTING' | 'CHECK_MAILING';
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* ID of the draft Global Payroll run to update.
|
|
77
|
+
*/
|
|
78
|
+
run_id: string;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* ID of the worker whose payment mode will be updated.
|
|
82
|
+
*/
|
|
83
|
+
worker_id: string;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export interface PayrollPaymentModeChangeCreateParams {
|
|
88
|
+
/**
|
|
89
|
+
* Payment mode changes to process. The maximum batch size is 100.
|
|
90
|
+
*/
|
|
91
|
+
changes: Array<PayrollPaymentModeChangeCreateParams.Change>;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export namespace PayrollPaymentModeChangeCreateParams {
|
|
95
|
+
export interface Change {
|
|
96
|
+
/**
|
|
97
|
+
* Canonical Global Payroll payment mode code to apply to the worker in the run.
|
|
98
|
+
* Known labels are DEFAULT (Default), BANK_FILE (Bank file), MANUAL (Manual),
|
|
99
|
+
* SAME_DAY_ACH (Same-day ACH), and CHECK_PRINTING (Check printing). CHECK_MAILING
|
|
100
|
+
* is supported when eligible; its customer-facing label is pending confirmation.
|
|
101
|
+
*/
|
|
102
|
+
payment_mode: 'DEFAULT' | 'BANK_FILE' | 'MANUAL' | 'SAME_DAY_ACH' | 'CHECK_PRINTING' | 'CHECK_MAILING';
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* ID of the draft Global Payroll run to update.
|
|
106
|
+
*/
|
|
107
|
+
run_id: string;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* ID of the worker whose payment mode will be updated.
|
|
111
|
+
*/
|
|
112
|
+
worker_id: string;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export declare namespace PayrollPaymentModeChanges {
|
|
117
|
+
export {
|
|
118
|
+
type PayrollPaymentModeChangeCreateResponse as PayrollPaymentModeChangeCreateResponse,
|
|
119
|
+
type PayrollPaymentModeChangeCreateParams as PayrollPaymentModeChangeCreateParams,
|
|
120
|
+
};
|
|
121
|
+
}
|
|
@@ -0,0 +1,372 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Payroll runs for the company
|
|
9
|
+
*/
|
|
10
|
+
export class OffCycle extends APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Create draft off-cycle run or runs for Global Payroll workers. Workers may be
|
|
13
|
+
* split into separate runs by employment type, but every run must belong to the
|
|
14
|
+
* same payroll entity. All requested workers must be eligible; validation is
|
|
15
|
+
* all-or-nothing before creation starts. Each validated run is attempted
|
|
16
|
+
* independently. The response contains status, confirmed runs, and per-run errors.
|
|
17
|
+
* HTTP 201 may contain PARTIAL_SUCCESS; HTTP 500 with FAILED means no creation was
|
|
18
|
+
* confirmed. An error does not prove that no run was created; inspect errors and
|
|
19
|
+
* reconcile before retrying. Idempotency-Key is not supported: each POST creates
|
|
20
|
+
* new run(s), even for an identical payload or repeated key. A retry after a
|
|
21
|
+
* timeout may create duplicate draft run(s); reconcile before retrying.
|
|
22
|
+
*
|
|
23
|
+
* @example HTTP
|
|
24
|
+
* Representative request and response shapes.
|
|
25
|
+
* ```
|
|
26
|
+
* POST /payroll-runs/off-cycle/ HTTP/1.1
|
|
27
|
+
* Host: rest.ripplingapis.com
|
|
28
|
+
* Content-Type: application/json
|
|
29
|
+
* Accept: application/json
|
|
30
|
+
* Rippling-Api-Version: 2024-08-01
|
|
31
|
+
*
|
|
32
|
+
* {
|
|
33
|
+
* "errors": [
|
|
34
|
+
* {
|
|
35
|
+
* "code": "RUN_CREATION_OUTCOME_UNKNOWN",
|
|
36
|
+
* "company_entity_id": "company_entity_id",
|
|
37
|
+
* "employment_split": "employment_split",
|
|
38
|
+
* "message": "message",
|
|
39
|
+
* "worker_ids": [
|
|
40
|
+
* "string"
|
|
41
|
+
* ]
|
|
42
|
+
* }
|
|
43
|
+
* ],
|
|
44
|
+
* "runs": [
|
|
45
|
+
* {
|
|
46
|
+
* "check_date": "check_date",
|
|
47
|
+
* "company_entity_id": "company_entity_id",
|
|
48
|
+
* "country_code": "country_code",
|
|
49
|
+
* "employment_split": "employment_split",
|
|
50
|
+
* "pay_period": {
|
|
51
|
+
* "end_date": "end_date",
|
|
52
|
+
* "start_date": "start_date"
|
|
53
|
+
* },
|
|
54
|
+
* "run_configuration": {
|
|
55
|
+
* "pay_basis": "pay_basis"
|
|
56
|
+
* },
|
|
57
|
+
* "run_id": "run_id",
|
|
58
|
+
* "run_status": "run_status",
|
|
59
|
+
* "run_type": "run_type",
|
|
60
|
+
* "worker_ids": [
|
|
61
|
+
* "string"
|
|
62
|
+
* ]
|
|
63
|
+
* }
|
|
64
|
+
* ],
|
|
65
|
+
* "status": "SUCCESS"
|
|
66
|
+
* }
|
|
67
|
+
*
|
|
68
|
+
* HTTP/1.1 200 OK
|
|
69
|
+
* Content-Type: application/json
|
|
70
|
+
*
|
|
71
|
+
* {
|
|
72
|
+
* "status": "SUCCESS",
|
|
73
|
+
* "runs": [
|
|
74
|
+
* {
|
|
75
|
+
* "run_id": "string",
|
|
76
|
+
* "worker_ids": [
|
|
77
|
+
* "string"
|
|
78
|
+
* ],
|
|
79
|
+
* "company_entity_id": "string",
|
|
80
|
+
* "country_code": "string",
|
|
81
|
+
* "run_type": "string",
|
|
82
|
+
* "run_status": "string",
|
|
83
|
+
* "check_date": "string",
|
|
84
|
+
* "pay_period": {
|
|
85
|
+
* "start_date": "string",
|
|
86
|
+
* "end_date": "string"
|
|
87
|
+
* },
|
|
88
|
+
* "employment_split": "string",
|
|
89
|
+
* "run_configuration": {
|
|
90
|
+
* "pay_basis": "string"
|
|
91
|
+
* }
|
|
92
|
+
* }
|
|
93
|
+
* ],
|
|
94
|
+
* "errors": [
|
|
95
|
+
* {
|
|
96
|
+
* "worker_ids": [
|
|
97
|
+
* "string"
|
|
98
|
+
* ],
|
|
99
|
+
* "company_entity_id": "string",
|
|
100
|
+
* "employment_split": "string",
|
|
101
|
+
* "code": "RUN_CREATION_OUTCOME_UNKNOWN",
|
|
102
|
+
* "message": "string"
|
|
103
|
+
* }
|
|
104
|
+
* ]
|
|
105
|
+
* }
|
|
106
|
+
* ```
|
|
107
|
+
*/
|
|
108
|
+
create(body: OffCycleCreateParams, options?: RequestOptions): APIPromise<OffCycleCreateResponse> {
|
|
109
|
+
return this._client.post('/payroll-runs/off-cycle/', { body, ...options });
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export interface OffCycleCreateResponse {
|
|
114
|
+
/**
|
|
115
|
+
* One error per unconfirmed run creation. Empty on full success; reconcile before
|
|
116
|
+
* retrying.
|
|
117
|
+
*/
|
|
118
|
+
errors: Array<OffCycleCreateResponse.Error>;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Confirmed created draft runs. Empty when no creation could be confirmed.
|
|
122
|
+
*/
|
|
123
|
+
runs: Array<OffCycleCreateResponse.Run>;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* SUCCESS, PARTIAL_SUCCESS, or FAILED. FAILED means no run creation was confirmed.
|
|
127
|
+
*/
|
|
128
|
+
status: 'SUCCESS' | 'PARTIAL_SUCCESS' | 'FAILED';
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export namespace OffCycleCreateResponse {
|
|
132
|
+
export interface Error {
|
|
133
|
+
/**
|
|
134
|
+
* Stable error code; an exception does not prove that no run was created.
|
|
135
|
+
*/
|
|
136
|
+
code: 'RUN_CREATION_OUTCOME_UNKNOWN';
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Payroll entity for the attempted run.
|
|
140
|
+
*/
|
|
141
|
+
company_entity_id: string;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Employment category for the attempted run.
|
|
145
|
+
*/
|
|
146
|
+
employment_split: string;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Safe description of the unconfirmed creation outcome and retry guidance.
|
|
150
|
+
*/
|
|
151
|
+
message: string;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Role IDs in the run whose creation could not be confirmed.
|
|
155
|
+
*/
|
|
156
|
+
worker_ids: Array<string>;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export interface Run {
|
|
160
|
+
/**
|
|
161
|
+
* Payment date selected for this run.
|
|
162
|
+
*/
|
|
163
|
+
check_date: string;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Identifier of the payroll entity that owns this run.
|
|
167
|
+
*/
|
|
168
|
+
company_entity_id: string;
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* Country code of the payroll entity.
|
|
172
|
+
*/
|
|
173
|
+
country_code: string;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Worker eligibility category used to split this run, such as employees or
|
|
177
|
+
* contractors.
|
|
178
|
+
*/
|
|
179
|
+
employment_split: string;
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Pay period for this run.
|
|
183
|
+
*/
|
|
184
|
+
pay_period: Run.PayPeriod;
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* Calculation configuration used for this run.
|
|
188
|
+
*/
|
|
189
|
+
run_configuration: Run.RunConfiguration;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Identifier of the created draft payroll run.
|
|
193
|
+
*/
|
|
194
|
+
run_id: string;
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Status of the created payroll run.
|
|
198
|
+
*/
|
|
199
|
+
run_status: string;
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Type of the created payroll run.
|
|
203
|
+
*/
|
|
204
|
+
run_type: string;
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* Role IDs included in this run.
|
|
208
|
+
*/
|
|
209
|
+
worker_ids: Array<string>;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
export namespace Run {
|
|
213
|
+
/**
|
|
214
|
+
* Pay period for this run.
|
|
215
|
+
*/
|
|
216
|
+
export interface PayPeriod {
|
|
217
|
+
/**
|
|
218
|
+
* End date of this run's pay period.
|
|
219
|
+
*/
|
|
220
|
+
end_date: string;
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* Start date of this run's pay period.
|
|
224
|
+
*/
|
|
225
|
+
start_date: string;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* Calculation configuration used for this run.
|
|
230
|
+
*/
|
|
231
|
+
export interface RunConfiguration {
|
|
232
|
+
/**
|
|
233
|
+
* Amount basis used by the created run. This API currently creates gross-pay runs.
|
|
234
|
+
*/
|
|
235
|
+
pay_basis: string;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
export interface OffCycleCreateParams {
|
|
241
|
+
/**
|
|
242
|
+
* One error per unconfirmed run creation. Empty on full success; reconcile before
|
|
243
|
+
* retrying.
|
|
244
|
+
*/
|
|
245
|
+
errors: Array<OffCycleCreateParams.Error>;
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* Confirmed created draft runs. Empty when no creation could be confirmed.
|
|
249
|
+
*/
|
|
250
|
+
runs: Array<OffCycleCreateParams.Run>;
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* SUCCESS, PARTIAL_SUCCESS, or FAILED. FAILED means no run creation was confirmed.
|
|
254
|
+
*/
|
|
255
|
+
status: 'SUCCESS' | 'PARTIAL_SUCCESS' | 'FAILED';
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
export namespace OffCycleCreateParams {
|
|
259
|
+
export interface Error {
|
|
260
|
+
/**
|
|
261
|
+
* Stable error code; an exception does not prove that no run was created.
|
|
262
|
+
*/
|
|
263
|
+
code: 'RUN_CREATION_OUTCOME_UNKNOWN';
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* Payroll entity for the attempted run.
|
|
267
|
+
*/
|
|
268
|
+
company_entity_id: string;
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* Employment category for the attempted run.
|
|
272
|
+
*/
|
|
273
|
+
employment_split: string;
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* Safe description of the unconfirmed creation outcome and retry guidance.
|
|
277
|
+
*/
|
|
278
|
+
message: string;
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* Role IDs in the run whose creation could not be confirmed.
|
|
282
|
+
*/
|
|
283
|
+
worker_ids: Array<string>;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
export interface Run {
|
|
287
|
+
/**
|
|
288
|
+
* Payment date selected for this run.
|
|
289
|
+
*/
|
|
290
|
+
check_date: string;
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* Identifier of the payroll entity that owns this run.
|
|
294
|
+
*/
|
|
295
|
+
company_entity_id: string;
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* Country code of the payroll entity.
|
|
299
|
+
*/
|
|
300
|
+
country_code: string;
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* Worker eligibility category used to split this run, such as employees or
|
|
304
|
+
* contractors.
|
|
305
|
+
*/
|
|
306
|
+
employment_split: string;
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* Pay period for this run.
|
|
310
|
+
*/
|
|
311
|
+
pay_period: Run.PayPeriod;
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* Calculation configuration used for this run.
|
|
315
|
+
*/
|
|
316
|
+
run_configuration: Run.RunConfiguration;
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* Identifier of the created draft payroll run.
|
|
320
|
+
*/
|
|
321
|
+
run_id: string;
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* Status of the created payroll run.
|
|
325
|
+
*/
|
|
326
|
+
run_status: string;
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* Type of the created payroll run.
|
|
330
|
+
*/
|
|
331
|
+
run_type: string;
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* Role IDs included in this run.
|
|
335
|
+
*/
|
|
336
|
+
worker_ids: Array<string>;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
export namespace Run {
|
|
340
|
+
/**
|
|
341
|
+
* Pay period for this run.
|
|
342
|
+
*/
|
|
343
|
+
export interface PayPeriod {
|
|
344
|
+
/**
|
|
345
|
+
* End date of this run's pay period.
|
|
346
|
+
*/
|
|
347
|
+
end_date: string;
|
|
348
|
+
|
|
349
|
+
/**
|
|
350
|
+
* Start date of this run's pay period.
|
|
351
|
+
*/
|
|
352
|
+
start_date: string;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* Calculation configuration used for this run.
|
|
357
|
+
*/
|
|
358
|
+
export interface RunConfiguration {
|
|
359
|
+
/**
|
|
360
|
+
* Amount basis used by the created run. This API currently creates gross-pay runs.
|
|
361
|
+
*/
|
|
362
|
+
pay_basis: string;
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
export declare namespace OffCycle {
|
|
368
|
+
export {
|
|
369
|
+
type OffCycleCreateResponse as OffCycleCreateResponse,
|
|
370
|
+
type OffCycleCreateParams as OffCycleCreateParams,
|
|
371
|
+
};
|
|
372
|
+
}
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as BusinessPartnersAPI from '../business-partners';
|
|
5
|
+
import * as OffCycleAPI from './off-cycle';
|
|
6
|
+
import { OffCycle, OffCycleCreateParams, OffCycleCreateResponse } from './off-cycle';
|
|
5
7
|
import * as WorkerPayrollRecordsAPI from './worker-payroll-records';
|
|
6
8
|
import {
|
|
7
9
|
WorkerPayrollRecordListParams,
|
|
@@ -18,6 +20,7 @@ import { path } from '../../internal/utils/path';
|
|
|
18
20
|
* Payroll runs for the company
|
|
19
21
|
*/
|
|
20
22
|
export class PayrollRuns extends APIResource {
|
|
23
|
+
offCycle: OffCycleAPI.OffCycle = new OffCycleAPI.OffCycle(this._client);
|
|
21
24
|
workerPayrollRecords: WorkerPayrollRecordsAPI.WorkerPayrollRecords =
|
|
22
25
|
new WorkerPayrollRecordsAPI.WorkerPayrollRecords(this._client);
|
|
23
26
|
|
|
@@ -324,6 +327,7 @@ export interface PayrollRunListParams {
|
|
|
324
327
|
order_by?: string;
|
|
325
328
|
}
|
|
326
329
|
|
|
330
|
+
PayrollRuns.OffCycle = OffCycle;
|
|
327
331
|
PayrollRuns.WorkerPayrollRecords = WorkerPayrollRecords;
|
|
328
332
|
|
|
329
333
|
export declare namespace PayrollRuns {
|
|
@@ -334,6 +338,12 @@ export declare namespace PayrollRuns {
|
|
|
334
338
|
type PayrollRunListParams as PayrollRunListParams,
|
|
335
339
|
};
|
|
336
340
|
|
|
341
|
+
export {
|
|
342
|
+
OffCycle as OffCycle,
|
|
343
|
+
type OffCycleCreateResponse as OffCycleCreateResponse,
|
|
344
|
+
type OffCycleCreateParams as OffCycleCreateParams,
|
|
345
|
+
};
|
|
346
|
+
|
|
337
347
|
export {
|
|
338
348
|
WorkerPayrollRecords as WorkerPayrollRecords,
|
|
339
349
|
type WorkerPayrollRecordListResponse as WorkerPayrollRecordListResponse,
|
|
@@ -181,9 +181,7 @@ export class Sandboxes extends APIResource {
|
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
/**
|
|
184
|
-
* Delete a sandbox
|
|
185
|
-
* package associations, including associations in EDIT mode or with a recent link
|
|
186
|
-
* operation in progress.
|
|
184
|
+
* Delete a sandbox
|
|
187
185
|
*
|
|
188
186
|
* @example HTTP
|
|
189
187
|
* Representative request and response shapes.
|
|
@@ -331,9 +329,11 @@ export namespace SandboxListResponse {
|
|
|
331
329
|
*/
|
|
332
330
|
export interface Developer {
|
|
333
331
|
/**
|
|
334
|
-
* Seed company size for the developer sandbox.
|
|
332
|
+
* Seed company size for the developer sandbox. MEDIUM is the supported value for
|
|
333
|
+
* new sandboxes. SMALL is retained for existing sandboxes only and is not
|
|
334
|
+
* supported on create.
|
|
335
335
|
*/
|
|
336
|
-
company_size: 'SMALL' | '
|
|
336
|
+
company_size: 'SMALL' | 'MEDIUM';
|
|
337
337
|
}
|
|
338
338
|
|
|
339
339
|
/**
|
|
@@ -584,9 +584,11 @@ export namespace SandboxCreateResponse {
|
|
|
584
584
|
*/
|
|
585
585
|
export interface Developer {
|
|
586
586
|
/**
|
|
587
|
-
* Seed company size for the developer sandbox.
|
|
587
|
+
* Seed company size for the developer sandbox. MEDIUM is the supported value for
|
|
588
|
+
* new sandboxes. SMALL is retained for existing sandboxes only and is not
|
|
589
|
+
* supported on create.
|
|
588
590
|
*/
|
|
589
|
-
company_size: 'SMALL' | '
|
|
591
|
+
company_size: 'SMALL' | 'MEDIUM';
|
|
590
592
|
}
|
|
591
593
|
|
|
592
594
|
/**
|
|
@@ -840,9 +842,11 @@ export namespace SandboxRetrieveResponse {
|
|
|
840
842
|
*/
|
|
841
843
|
export interface Developer {
|
|
842
844
|
/**
|
|
843
|
-
* Seed company size for the developer sandbox.
|
|
845
|
+
* Seed company size for the developer sandbox. MEDIUM is the supported value for
|
|
846
|
+
* new sandboxes. SMALL is retained for existing sandboxes only and is not
|
|
847
|
+
* supported on create.
|
|
844
848
|
*/
|
|
845
|
-
company_size: 'SMALL' | '
|
|
849
|
+
company_size: 'SMALL' | 'MEDIUM';
|
|
846
850
|
}
|
|
847
851
|
|
|
848
852
|
/**
|
|
@@ -1096,9 +1100,11 @@ export namespace SandboxCreateParams {
|
|
|
1096
1100
|
*/
|
|
1097
1101
|
export interface Developer {
|
|
1098
1102
|
/**
|
|
1099
|
-
* Seed company size for the developer sandbox.
|
|
1103
|
+
* Seed company size for the developer sandbox. MEDIUM is the supported value for
|
|
1104
|
+
* new sandboxes. SMALL is retained for existing sandboxes only and is not
|
|
1105
|
+
* supported on create.
|
|
1100
1106
|
*/
|
|
1101
|
-
company_size: 'SMALL' | '
|
|
1107
|
+
company_size: 'SMALL' | 'MEDIUM';
|
|
1102
1108
|
}
|
|
1103
1109
|
|
|
1104
1110
|
/**
|
|
@@ -15,7 +15,7 @@ export class VariableCompensationPayoutLabels extends APIResource {
|
|
|
15
15
|
* List payout source and group labels. Paginated with limit and cursor. Filters
|
|
16
16
|
* use the documented query parameters only (not OData filter).
|
|
17
17
|
*
|
|
18
|
-
* - Requires: `
|
|
18
|
+
* - Requires: `Variable Compensation Scheduled Payouts API`
|
|
19
19
|
*
|
|
20
20
|
* @example HTTP
|
|
21
21
|
* Representative request and response shapes.
|
|
@@ -15,7 +15,7 @@ export class VariableCompensationPayoutTypes extends APIResource {
|
|
|
15
15
|
/**
|
|
16
16
|
* List system and custom payout types with per-entity earning mappings.
|
|
17
17
|
*
|
|
18
|
-
* - Requires: `
|
|
18
|
+
* - Requires: `Variable Compensation Scheduled Payouts API`
|
|
19
19
|
*
|
|
20
20
|
* @example HTTP
|
|
21
21
|
* Representative request and response shapes.
|
|
@@ -17,7 +17,7 @@ export class VariableCompensationPayouts extends APIResource {
|
|
|
17
17
|
* admin payout rowset; callers without admin payout visibility receive an empty
|
|
18
18
|
* list. Retrieve returns NotFound for the same rows.
|
|
19
19
|
*
|
|
20
|
-
* - Requires: `
|
|
20
|
+
* - Requires: `Variable Compensation Scheduled Payouts API`
|
|
21
21
|
*
|
|
22
22
|
* @example HTTP
|
|
23
23
|
* Representative request and response shapes.
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.2.0-alpha.
|
|
1
|
+
export const VERSION = '0.2.0-alpha.106'; // 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.106";
|
|
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.106";
|
|
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.106'; // 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.106'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|