@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
|
@@ -9,8 +9,9 @@ import { RequestOptions } from '../internal/request-options';
|
|
|
9
9
|
*/
|
|
10
10
|
export class HireRequirements extends APIResource {
|
|
11
11
|
/**
|
|
12
|
-
* Return baseline required fields for a country and hire type.
|
|
13
|
-
*
|
|
12
|
+
* Return baseline required fields for a country and hire type.
|
|
13
|
+
* requirements_version identifies this catalog snapshot. POST /hires/ does not
|
|
14
|
+
* accept it. POST /hires/ remains authoritative for company-specific validation.
|
|
14
15
|
*
|
|
15
16
|
* @example HTTP
|
|
16
17
|
* Representative request and response shapes.
|
|
@@ -30,23 +31,6 @@ export class HireRequirements extends APIResource {
|
|
|
30
31
|
* "required_groups": [
|
|
31
32
|
* "string"
|
|
32
33
|
* ],
|
|
33
|
-
* "top_level_fields": [
|
|
34
|
-
* {
|
|
35
|
-
* "field": "string",
|
|
36
|
-
* "type": {},
|
|
37
|
-
* "requiredness": "string",
|
|
38
|
-
* "required_when": {
|
|
39
|
-
* "field": "string",
|
|
40
|
-
* "operator": "string",
|
|
41
|
-
* "value": {}
|
|
42
|
-
* },
|
|
43
|
-
* "format": "string",
|
|
44
|
-
* "items": null,
|
|
45
|
-
* "fields": [
|
|
46
|
-
* "string"
|
|
47
|
-
* ]
|
|
48
|
-
* }
|
|
49
|
-
* ],
|
|
50
34
|
* "fields_by_group": [
|
|
51
35
|
* null
|
|
52
36
|
* ],
|
|
@@ -79,12 +63,13 @@ export interface HireRequirementListResponse {
|
|
|
79
63
|
fields_by_group: Array<unknown>;
|
|
80
64
|
|
|
81
65
|
/**
|
|
82
|
-
* Hire type
|
|
66
|
+
* Hire type for this catalog. POST /hires/ uses the same value. An omitted POST
|
|
67
|
+
* value defaults to direct_hire.
|
|
83
68
|
*/
|
|
84
69
|
hire_type: string;
|
|
85
70
|
|
|
86
71
|
/**
|
|
87
|
-
*
|
|
72
|
+
* Groups you must send for this country.
|
|
88
73
|
*/
|
|
89
74
|
required_groups: Array<string>;
|
|
90
75
|
|
|
@@ -93,11 +78,6 @@ export interface HireRequirementListResponse {
|
|
|
93
78
|
*/
|
|
94
79
|
requirements_version: string;
|
|
95
80
|
|
|
96
|
-
/**
|
|
97
|
-
* Item-level fields such as client_request_id.
|
|
98
|
-
*/
|
|
99
|
-
top_level_fields?: Array<HireRequirementListResponse.TopLevelField>;
|
|
100
|
-
|
|
101
81
|
/**
|
|
102
82
|
* Public field paths that are not writable for this selector tuple.
|
|
103
83
|
*/
|
|
@@ -109,67 +89,10 @@ export interface HireRequirementListResponse {
|
|
|
109
89
|
warnings?: Array<string>;
|
|
110
90
|
}
|
|
111
91
|
|
|
112
|
-
export namespace HireRequirementListResponse {
|
|
113
|
-
export interface TopLevelField {
|
|
114
|
-
/**
|
|
115
|
-
* JSON type string, or a list of allowed types for custom-field values.
|
|
116
|
-
*/
|
|
117
|
-
type: unknown;
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* Public field name relative to its group, or omitted for array item descriptors.
|
|
121
|
-
*/
|
|
122
|
-
field?: string;
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* Nested object fields when type is object.
|
|
126
|
-
*/
|
|
127
|
-
fields?: Array<unknown>;
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
* date means YYYY-MM-DD.
|
|
131
|
-
*/
|
|
132
|
-
format?: string;
|
|
133
|
-
|
|
134
|
-
items?: unknown;
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* Sibling-field condition when requiredness is dependent.
|
|
138
|
-
*/
|
|
139
|
-
required_when?: TopLevelField.RequiredWhen;
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* required, optional, or dependent.
|
|
143
|
-
*/
|
|
144
|
-
requiredness?: string;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
export namespace TopLevelField {
|
|
148
|
-
/**
|
|
149
|
-
* Sibling-field condition when requiredness is dependent.
|
|
150
|
-
*/
|
|
151
|
-
export interface RequiredWhen {
|
|
152
|
-
/**
|
|
153
|
-
* Sibling field in the same object that this condition inspects.
|
|
154
|
-
*/
|
|
155
|
-
field: string;
|
|
156
|
-
|
|
157
|
-
/**
|
|
158
|
-
* equals, not_equals, present, or absent.
|
|
159
|
-
*/
|
|
160
|
-
operator: string;
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* Comparison value for equals and not_equals. Omitted for present and absent.
|
|
164
|
-
*/
|
|
165
|
-
value?: unknown;
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
|
|
170
92
|
export interface HireRequirementListParams {
|
|
171
93
|
/**
|
|
172
|
-
* ISO 3166-1 alpha-2 country code.
|
|
94
|
+
* ISO 3166-1 alpha-2 country code. Direct hire is supported in AU, CA, CH, CN, DE,
|
|
95
|
+
* ES, FR, GB, HK, IE, IN, NL, NZ, and US.
|
|
173
96
|
*/
|
|
174
97
|
country_code: string;
|
|
175
98
|
|