@rippling/rippling-sdk 0.2.0-alpha.95 → 0.2.0-alpha.97
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 +78 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +78 -6
- package/client.d.ts.map +1 -1
- package/client.js +73 -1
- package/client.js.map +1 -1
- package/client.mjs +73 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agents/sessions/index.d.mts +1 -0
- package/resources/agents/sessions/index.d.mts.map +1 -1
- package/resources/agents/sessions/index.d.ts +1 -0
- package/resources/agents/sessions/index.d.ts.map +1 -1
- package/resources/agents/sessions/index.js +3 -1
- package/resources/agents/sessions/index.js.map +1 -1
- package/resources/agents/sessions/index.mjs +1 -0
- package/resources/agents/sessions/index.mjs.map +1 -1
- package/resources/agents/sessions/messages.d.mts +24 -0
- package/resources/agents/sessions/messages.d.mts.map +1 -1
- package/resources/agents/sessions/messages.d.ts +24 -0
- package/resources/agents/sessions/messages.d.ts.map +1 -1
- package/resources/agents/sessions/resume-state.d.mts +25 -0
- package/resources/agents/sessions/resume-state.d.mts.map +1 -0
- package/resources/agents/sessions/resume-state.d.ts +25 -0
- package/resources/agents/sessions/resume-state.d.ts.map +1 -0
- package/resources/agents/sessions/resume-state.js +19 -0
- package/resources/agents/sessions/resume-state.js.map +1 -0
- package/resources/agents/sessions/resume-state.mjs +15 -0
- package/resources/agents/sessions/resume-state.mjs.map +1 -0
- package/resources/agents/sessions/sessions.d.mts +91 -0
- package/resources/agents/sessions/sessions.d.mts.map +1 -1
- package/resources/agents/sessions/sessions.d.ts +91 -0
- package/resources/agents/sessions/sessions.d.ts.map +1 -1
- package/resources/agents/sessions/sessions.js +4 -0
- package/resources/agents/sessions/sessions.js.map +1 -1
- package/resources/agents/sessions/sessions.mjs +4 -0
- package/resources/agents/sessions/sessions.mjs.map +1 -1
- package/resources/background-check-candidates.d.mts +337 -0
- package/resources/background-check-candidates.d.mts.map +1 -0
- package/resources/background-check-candidates.d.ts +337 -0
- package/resources/background-check-candidates.d.ts.map +1 -0
- package/resources/background-check-candidates.js +52 -0
- package/resources/background-check-candidates.js.map +1 -0
- package/resources/background-check-candidates.mjs +48 -0
- package/resources/background-check-candidates.mjs.map +1 -0
- package/resources/business-structure-paths.d.mts +54 -1
- package/resources/business-structure-paths.d.mts.map +1 -1
- package/resources/business-structure-paths.d.ts +54 -1
- package/resources/business-structure-paths.d.ts.map +1 -1
- package/resources/business-structure-paths.js +16 -0
- package/resources/business-structure-paths.js.map +1 -1
- package/resources/business-structure-paths.mjs +16 -0
- package/resources/business-structure-paths.mjs.map +1 -1
- package/resources/developer-program-application.d.mts +176 -0
- package/resources/developer-program-application.d.mts.map +1 -0
- package/resources/developer-program-application.d.ts +176 -0
- package/resources/developer-program-application.d.ts.map +1 -0
- package/resources/developer-program-application.js +27 -0
- package/resources/developer-program-application.js.map +1 -0
- package/resources/developer-program-application.mjs +23 -0
- package/resources/developer-program-application.mjs.map +1 -0
- package/resources/developer-users.d.mts +53 -0
- package/resources/developer-users.d.mts.map +1 -0
- package/resources/developer-users.d.ts +53 -0
- package/resources/developer-users.d.ts.map +1 -0
- package/resources/developer-users.js +25 -0
- package/resources/developer-users.js.map +1 -0
- package/resources/developer-users.mjs +21 -0
- package/resources/developer-users.mjs.map +1 -0
- package/resources/draft-transitions.d.mts +474 -0
- package/resources/draft-transitions.d.mts.map +1 -0
- package/resources/draft-transitions.d.ts +474 -0
- package/resources/draft-transitions.d.ts.map +1 -0
- package/resources/draft-transitions.js +25 -0
- package/resources/draft-transitions.js.map +1 -0
- package/resources/draft-transitions.mjs +21 -0
- package/resources/draft-transitions.mjs.map +1 -0
- package/resources/earnings-inputs.d.mts +30 -0
- package/resources/earnings-inputs.d.mts.map +1 -1
- package/resources/earnings-inputs.d.ts +30 -0
- package/resources/earnings-inputs.d.ts.map +1 -1
- package/resources/hire-requirements.d.mts +112 -0
- package/resources/hire-requirements.d.mts.map +1 -0
- package/resources/hire-requirements.d.ts +112 -0
- package/resources/hire-requirements.d.ts.map +1 -0
- package/resources/hire-requirements.js +19 -0
- package/resources/hire-requirements.js.map +1 -0
- package/resources/hire-requirements.mjs +15 -0
- package/resources/hire-requirements.mjs.map +1 -0
- package/resources/hires.d.mts +657 -0
- package/resources/hires.d.mts.map +1 -0
- package/resources/hires.d.ts +657 -0
- package/resources/hires.d.ts.map +1 -0
- package/resources/hires.js +25 -0
- package/resources/hires.js.map +1 -0
- package/resources/hires.mjs +21 -0
- package/resources/hires.mjs.map +1 -0
- package/resources/index.d.mts +15 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +15 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +27 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +13 -1
- package/resources/index.mjs.map +1 -1
- package/resources/listing-submissions.d.mts +86 -0
- package/resources/listing-submissions.d.mts.map +1 -0
- package/resources/listing-submissions.d.ts +86 -0
- package/resources/listing-submissions.d.ts.map +1 -0
- package/resources/listing-submissions.js +31 -0
- package/resources/listing-submissions.js.map +1 -0
- package/resources/listing-submissions.mjs +27 -0
- package/resources/listing-submissions.mjs.map +1 -0
- package/resources/listing-transitions.d.mts +59 -0
- package/resources/listing-transitions.d.mts.map +1 -0
- package/resources/listing-transitions.d.ts +59 -0
- package/resources/listing-transitions.d.ts.map +1 -0
- package/resources/listing-transitions.js +24 -0
- package/resources/listing-transitions.js.map +1 -0
- package/resources/listing-transitions.mjs +20 -0
- package/resources/listing-transitions.mjs.map +1 -0
- package/resources/listing.d.mts +1818 -0
- package/resources/listing.d.mts.map +1 -0
- package/resources/listing.d.ts +1818 -0
- package/resources/listing.d.ts.map +1 -0
- package/resources/listing.js +70 -0
- package/resources/listing.js.map +1 -0
- package/resources/listing.mjs +66 -0
- package/resources/listing.mjs.map +1 -0
- package/resources/package-managed-installs.d.mts +119 -0
- package/resources/package-managed-installs.d.mts.map +1 -0
- package/resources/package-managed-installs.d.ts +119 -0
- package/resources/package-managed-installs.d.ts.map +1 -0
- package/resources/package-managed-installs.js +26 -0
- package/resources/package-managed-installs.js.map +1 -0
- package/resources/package-managed-installs.mjs +22 -0
- package/resources/package-managed-installs.mjs.map +1 -0
- package/resources/package-sandbox-links.d.mts +150 -0
- package/resources/package-sandbox-links.d.mts.map +1 -0
- package/resources/package-sandbox-links.d.ts +150 -0
- package/resources/package-sandbox-links.d.ts.map +1 -0
- package/resources/package-sandbox-links.js +25 -0
- package/resources/package-sandbox-links.js.map +1 -0
- package/resources/package-sandbox-links.mjs +21 -0
- package/resources/package-sandbox-links.mjs.map +1 -0
- package/resources/package-versions/index.d.mts +3 -0
- package/resources/package-versions/index.d.mts.map +1 -0
- package/resources/package-versions/index.d.ts +3 -0
- package/resources/package-versions/index.d.ts.map +1 -0
- package/resources/package-versions/index.js +9 -0
- package/resources/package-versions/index.js.map +1 -0
- package/resources/package-versions/index.mjs +4 -0
- package/resources/package-versions/index.mjs.map +1 -0
- package/resources/package-versions/package-versions.d.mts +114 -0
- package/resources/package-versions/package-versions.d.mts.map +1 -0
- package/resources/package-versions/package-versions.d.ts +114 -0
- package/resources/package-versions/package-versions.d.ts.map +1 -0
- package/resources/package-versions/package-versions.js +33 -0
- package/resources/package-versions/package-versions.js.map +1 -0
- package/resources/package-versions/package-versions.mjs +28 -0
- package/resources/package-versions/package-versions.mjs.map +1 -0
- package/resources/package-versions/publish.d.mts +58 -0
- package/resources/package-versions/publish.d.mts.map +1 -0
- package/resources/package-versions/publish.d.ts +58 -0
- package/resources/package-versions/publish.d.ts.map +1 -0
- package/resources/package-versions/publish.js +19 -0
- package/resources/package-versions/publish.js.map +1 -0
- package/resources/package-versions/publish.mjs +15 -0
- package/resources/package-versions/publish.mjs.map +1 -0
- package/resources/package-versions.d.mts +1 -63
- package/resources/package-versions.d.mts.map +1 -1
- package/resources/package-versions.d.ts +1 -63
- package/resources/package-versions.d.ts.map +1 -1
- package/resources/package-versions.js +2 -15
- package/resources/package-versions.js.map +1 -1
- package/resources/package-versions.mjs +1 -13
- package/resources/package-versions.mjs.map +1 -1
- package/resources/packages/index.d.mts +1 -1
- package/resources/packages/index.d.mts.map +1 -1
- package/resources/packages/index.d.ts +1 -1
- package/resources/packages/index.d.ts.map +1 -1
- package/resources/packages/index.js.map +1 -1
- package/resources/packages/index.mjs +1 -1
- package/resources/packages/index.mjs.map +1 -1
- package/resources/packages/packages.d.mts +10 -10
- package/resources/packages/packages.d.mts.map +1 -1
- package/resources/packages/packages.d.ts +10 -10
- package/resources/packages/packages.d.ts.map +1 -1
- package/resources/packages/packages.js +11 -11
- package/resources/packages/packages.js.map +1 -1
- package/resources/packages/packages.mjs +12 -12
- package/resources/packages/packages.mjs.map +1 -1
- package/resources/packages/versions.d.mts +57 -2
- package/resources/packages/versions.d.mts.map +1 -1
- package/resources/packages/versions.d.ts +57 -2
- package/resources/packages/versions.d.ts.map +1 -1
- package/resources/packages/versions.js +8 -1
- package/resources/packages/versions.js.map +1 -1
- package/resources/packages/versions.mjs +8 -1
- package/resources/packages/versions.mjs.map +1 -1
- package/resources/sandboxes.d.mts +35 -22
- package/resources/sandboxes.d.mts.map +1 -1
- package/resources/sandboxes.d.ts +35 -22
- package/resources/sandboxes.d.ts.map +1 -1
- package/resources/sandboxes.js +6 -0
- package/resources/sandboxes.js.map +1 -1
- package/resources/sandboxes.mjs +6 -0
- package/resources/sandboxes.mjs.map +1 -1
- package/resources/sites.d.mts +2 -1
- package/resources/sites.d.mts.map +1 -1
- package/resources/sites.d.ts +2 -1
- package/resources/sites.d.ts.map +1 -1
- package/resources/workers.d.mts +41 -0
- package/resources/workers.d.mts.map +1 -1
- package/resources/workers.d.ts +41 -0
- package/resources/workers.d.ts.map +1 -1
- package/resources/workflows.d.mts +768 -0
- package/resources/workflows.d.mts.map +1 -0
- package/resources/workflows.d.ts +768 -0
- package/resources/workflows.d.ts.map +1 -0
- package/resources/workflows.js +48 -0
- package/resources/workflows.js.map +1 -0
- package/resources/workflows.mjs +44 -0
- package/resources/workflows.mjs.map +1 -0
- package/src/client.ts +277 -5
- package/src/resources/agents/sessions/index.ts +1 -0
- package/src/resources/agents/sessions/messages.ts +28 -0
- package/src/resources/agents/sessions/resume-state.ts +32 -0
- package/src/resources/agents/sessions/sessions.ts +107 -0
- package/src/resources/background-check-candidates.ts +434 -0
- package/src/resources/business-structure-paths.ts +78 -0
- package/src/resources/developer-program-application.ts +233 -0
- package/src/resources/developer-users.ts +77 -0
- package/src/resources/draft-transitions.ts +583 -0
- package/src/resources/earnings-inputs.ts +36 -0
- package/src/resources/hire-requirements.ts +140 -0
- package/src/resources/hires.ts +786 -0
- package/src/resources/index.ts +99 -1
- package/src/resources/listing-submissions.ts +120 -0
- package/src/resources/listing-transitions.ts +84 -0
- package/src/resources/listing.ts +2297 -0
- package/src/resources/package-managed-installs.ts +156 -0
- package/src/resources/package-sandbox-links.ts +195 -0
- package/src/resources/package-versions/index.ts +9 -0
- package/src/resources/package-versions/package-versions.ts +156 -0
- package/src/resources/package-versions/publish.ts +74 -0
- package/src/resources/package-versions.ts +1 -86
- package/src/resources/packages/index.ts +8 -1
- package/src/resources/packages/packages.ts +26 -12
- package/src/resources/packages/versions.ts +83 -1
- package/src/resources/sandboxes.ts +45 -24
- package/src/resources/sites.ts +2 -1
- package/src/resources/workers.ts +46 -0
- package/src/resources/workflows.ts +1434 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,786 @@
|
|
|
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 { buildHeaders } from '../internal/headers';
|
|
6
|
+
import { RequestOptions } from '../internal/request-options';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Hiring intent submitted for admin review in Rippling
|
|
10
|
+
*/
|
|
11
|
+
export class Hires extends APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Create or resume hire records for admin review. Idempotency-Key and
|
|
14
|
+
* requirements_version are required. First milestone is US and CA direct hire.
|
|
15
|
+
*/
|
|
16
|
+
create(params: HireCreateParams, options?: RequestOptions): APIPromise<HireCreateResponse> {
|
|
17
|
+
const { 'Idempotency-Key': idempotencyKey, ...body } = params;
|
|
18
|
+
return this._client.post('/hires/', {
|
|
19
|
+
body,
|
|
20
|
+
...options,
|
|
21
|
+
headers: buildHeaders([{ 'Idempotency-Key': idempotencyKey }, options?.headers]),
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface HireCreateResponse {
|
|
27
|
+
/**
|
|
28
|
+
* True when the envelope was accepted for processing.
|
|
29
|
+
*/
|
|
30
|
+
ack: boolean;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* One result per request hire, in request order.
|
|
34
|
+
*/
|
|
35
|
+
results: Array<HireCreateResponse.Result>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export namespace HireCreateResponse {
|
|
39
|
+
export interface Result {
|
|
40
|
+
/**
|
|
41
|
+
* ready_for_review, incomplete, or failed.
|
|
42
|
+
*/
|
|
43
|
+
status: string;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Rippling hire role id when a role exists.
|
|
47
|
+
*/
|
|
48
|
+
id?: string;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Echo of the caller-supplied item id.
|
|
52
|
+
*/
|
|
53
|
+
client_request_id?: string;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Structured item errors using the same public field paths as GET
|
|
57
|
+
* /hire-requirements/.
|
|
58
|
+
*/
|
|
59
|
+
errors?: Array<Result.Error>;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Matching existing role id for duplicate or rehire conflicts.
|
|
63
|
+
*/
|
|
64
|
+
existing_role_id?: string;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Public field paths still required before review.
|
|
68
|
+
*/
|
|
69
|
+
missing_required_fields?: Array<string>;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Resolution actions for duplicate or rehire conflicts.
|
|
73
|
+
*/
|
|
74
|
+
next_actions?: Array<Result.NextAction>;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Accepted public field paths not yet active because progression is blocked.
|
|
78
|
+
*/
|
|
79
|
+
pending_fields?: Array<string>;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export namespace Result {
|
|
83
|
+
export interface Error {
|
|
84
|
+
/**
|
|
85
|
+
* Machine-readable error code.
|
|
86
|
+
*/
|
|
87
|
+
code: string;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Human-readable error message.
|
|
91
|
+
*/
|
|
92
|
+
message: string;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Public field path when the error is field-scoped.
|
|
96
|
+
*/
|
|
97
|
+
field?: string;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export interface NextAction {
|
|
101
|
+
/**
|
|
102
|
+
* Machine-readable next action.
|
|
103
|
+
*/
|
|
104
|
+
code: string;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Role id the caller should continue, when applicable.
|
|
108
|
+
*/
|
|
109
|
+
target_id?: string;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export interface HireCreateParams {
|
|
115
|
+
/**
|
|
116
|
+
* Body param: One to five hire submissions. Results are returned in the same
|
|
117
|
+
* order.
|
|
118
|
+
*/
|
|
119
|
+
hires: Array<HireCreateParams.Hire>;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Body param: Requirements version returned by GET /hire-requirements/. Required.
|
|
123
|
+
*/
|
|
124
|
+
requirements_version: string;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Header param: Caller-generated key used to deduplicate retried create requests.
|
|
128
|
+
*/
|
|
129
|
+
'Idempotency-Key': string;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export namespace HireCreateParams {
|
|
133
|
+
export interface Hire {
|
|
134
|
+
/**
|
|
135
|
+
* Compensation intent for the hire.
|
|
136
|
+
*/
|
|
137
|
+
compensation: Hire.Compensation;
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Employment information for the hire.
|
|
141
|
+
*/
|
|
142
|
+
employment: Hire.Employment;
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Personal information for the hire.
|
|
146
|
+
*/
|
|
147
|
+
personal: Hire.Personal;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Work location for the hire.
|
|
151
|
+
*/
|
|
152
|
+
work_location: Hire.WorkLocation;
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* US additional employment fields such as tips, SOC, and job classification.
|
|
156
|
+
*/
|
|
157
|
+
additional_employment_fields?: Hire.AdditionalEmploymentFields;
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Caller-supplied correlation id echoed in the response.
|
|
161
|
+
*/
|
|
162
|
+
client_request_id?: string;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* CA vacation, probation, and notice terms. Required for CA direct hire.
|
|
166
|
+
*/
|
|
167
|
+
country_job_fields?: Hire.CountryJobFields;
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Optional hiring custom fields.
|
|
171
|
+
*/
|
|
172
|
+
custom_fields?: Array<Hire.CustomField>;
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Optional rehire, headcount, and ATS correlation context.
|
|
176
|
+
*/
|
|
177
|
+
hire_context?: Hire.HireContext;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export namespace Hire {
|
|
181
|
+
/**
|
|
182
|
+
* Compensation intent for the hire.
|
|
183
|
+
*/
|
|
184
|
+
export interface Compensation {
|
|
185
|
+
/**
|
|
186
|
+
* Base pay amount using currency_type and value.
|
|
187
|
+
*/
|
|
188
|
+
base_pay_amount: Compensation.BasePayAmount;
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* Base pay period. One of YEAR, MONTH, WEEK, DAY, or HOUR.
|
|
192
|
+
*/
|
|
193
|
+
base_pay_period: string;
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Optional commission. When present, on_target_amount is required.
|
|
197
|
+
*/
|
|
198
|
+
commission?: Compensation.Commission;
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* Optional equity grant. When present, amount is required.
|
|
202
|
+
*/
|
|
203
|
+
equity?: Compensation.Equity;
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* Optional relocation reimbursement. When present, amount is required.
|
|
207
|
+
*/
|
|
208
|
+
relocation?: Compensation.Relocation;
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* Optional signing bonus. When present, amount and schedule are required.
|
|
212
|
+
*/
|
|
213
|
+
signing_bonus?: Compensation.SigningBonus;
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* Optional target bonus. When present, provide exactly one of amount or percent.
|
|
217
|
+
*/
|
|
218
|
+
target_bonus?: Compensation.TargetBonus;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
export namespace Compensation {
|
|
222
|
+
/**
|
|
223
|
+
* Base pay amount using currency_type and value.
|
|
224
|
+
*/
|
|
225
|
+
export interface BasePayAmount {
|
|
226
|
+
/**
|
|
227
|
+
* The currency type, ex: USD, EUR, etc.
|
|
228
|
+
*/
|
|
229
|
+
currency_type?: string;
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* The decimal amount for the currency.
|
|
233
|
+
*/
|
|
234
|
+
value?: number;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* Optional commission. When present, on_target_amount is required.
|
|
239
|
+
*/
|
|
240
|
+
export interface Commission {
|
|
241
|
+
/**
|
|
242
|
+
* On-target commission amount.
|
|
243
|
+
*/
|
|
244
|
+
on_target_amount: Commission.OnTargetAmount;
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* How often on-target commission is paid (MONTH, QUARTER, YEAR). Required for CA
|
|
248
|
+
* direct hire when commission is provided; not collected on US hiring UI.
|
|
249
|
+
*/
|
|
250
|
+
payment_frequency?: string;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
export namespace Commission {
|
|
254
|
+
/**
|
|
255
|
+
* On-target commission amount.
|
|
256
|
+
*/
|
|
257
|
+
export interface OnTargetAmount {
|
|
258
|
+
/**
|
|
259
|
+
* The currency type, ex: USD, EUR, etc.
|
|
260
|
+
*/
|
|
261
|
+
currency_type?: string;
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* The decimal amount for the currency.
|
|
265
|
+
*/
|
|
266
|
+
value?: number;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* Optional equity grant. When present, amount is required.
|
|
272
|
+
*/
|
|
273
|
+
export interface Equity {
|
|
274
|
+
/**
|
|
275
|
+
* Equity grant amount.
|
|
276
|
+
*/
|
|
277
|
+
amount: Equity.Amount;
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* Optional equity frequency, for example ANNUAL.
|
|
281
|
+
*/
|
|
282
|
+
frequency?: string;
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* Optional number of shares.
|
|
286
|
+
*/
|
|
287
|
+
num_shares?: number;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
export namespace Equity {
|
|
291
|
+
/**
|
|
292
|
+
* Equity grant amount.
|
|
293
|
+
*/
|
|
294
|
+
export interface Amount {
|
|
295
|
+
/**
|
|
296
|
+
* The currency type, ex: USD, EUR, etc.
|
|
297
|
+
*/
|
|
298
|
+
currency_type?: string;
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* The decimal amount for the currency.
|
|
302
|
+
*/
|
|
303
|
+
value?: number;
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* Optional relocation reimbursement. When present, amount is required.
|
|
309
|
+
*/
|
|
310
|
+
export interface Relocation {
|
|
311
|
+
/**
|
|
312
|
+
* Relocation reimbursement amount.
|
|
313
|
+
*/
|
|
314
|
+
amount: Relocation.Amount;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
export namespace Relocation {
|
|
318
|
+
/**
|
|
319
|
+
* Relocation reimbursement amount.
|
|
320
|
+
*/
|
|
321
|
+
export interface Amount {
|
|
322
|
+
/**
|
|
323
|
+
* The currency type, ex: USD, EUR, etc.
|
|
324
|
+
*/
|
|
325
|
+
currency_type?: string;
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* The decimal amount for the currency.
|
|
329
|
+
*/
|
|
330
|
+
value?: number;
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* Optional signing bonus. When present, amount and schedule are required.
|
|
336
|
+
*/
|
|
337
|
+
export interface SigningBonus {
|
|
338
|
+
/**
|
|
339
|
+
* Signing bonus amount.
|
|
340
|
+
*/
|
|
341
|
+
amount: SigningBonus.Amount;
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* When the signing bonus is paid, for example FIRST_PAYROLL.
|
|
345
|
+
*/
|
|
346
|
+
schedule: string;
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* Optional number of days until signing bonus payment.
|
|
350
|
+
*/
|
|
351
|
+
payment_days?: number;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
export namespace SigningBonus {
|
|
355
|
+
/**
|
|
356
|
+
* Signing bonus amount.
|
|
357
|
+
*/
|
|
358
|
+
export interface Amount {
|
|
359
|
+
/**
|
|
360
|
+
* The currency type, ex: USD, EUR, etc.
|
|
361
|
+
*/
|
|
362
|
+
currency_type?: string;
|
|
363
|
+
|
|
364
|
+
/**
|
|
365
|
+
* The decimal amount for the currency.
|
|
366
|
+
*/
|
|
367
|
+
value?: number;
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
/**
|
|
372
|
+
* Optional target bonus. When present, provide exactly one of amount or percent.
|
|
373
|
+
*/
|
|
374
|
+
export interface TargetBonus {
|
|
375
|
+
/**
|
|
376
|
+
* Target bonus as a currency amount. Provide exactly one of amount or percent.
|
|
377
|
+
*/
|
|
378
|
+
amount?: TargetBonus.Amount;
|
|
379
|
+
|
|
380
|
+
/**
|
|
381
|
+
* How often target bonus is paid (MONTH, QUARTER, SEMI_ANNUAL, YEAR). Required for
|
|
382
|
+
* CA direct hire when target_bonus is provided; not collected on US hiring UI.
|
|
383
|
+
*/
|
|
384
|
+
payment_frequency?: string;
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* Target bonus as a percent string. Provide exactly one of amount or percent.
|
|
388
|
+
*/
|
|
389
|
+
percent?: string;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
export namespace TargetBonus {
|
|
393
|
+
/**
|
|
394
|
+
* Target bonus as a currency amount. Provide exactly one of amount or percent.
|
|
395
|
+
*/
|
|
396
|
+
export interface Amount {
|
|
397
|
+
/**
|
|
398
|
+
* The currency type, ex: USD, EUR, etc.
|
|
399
|
+
*/
|
|
400
|
+
currency_type?: string;
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* The decimal amount for the currency.
|
|
404
|
+
*/
|
|
405
|
+
value?: number;
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
/**
|
|
411
|
+
* Employment information for the hire.
|
|
412
|
+
*/
|
|
413
|
+
export interface Employment {
|
|
414
|
+
/**
|
|
415
|
+
* Employment type id from GET /employment-types/.
|
|
416
|
+
*/
|
|
417
|
+
employment_type_id: string;
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* Legal entity id from GET /legal-entities/. Must be an active entity.
|
|
421
|
+
*/
|
|
422
|
+
legal_entity_id: string;
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* Start date in YYYY-MM-DD format.
|
|
426
|
+
*/
|
|
427
|
+
start_date: string;
|
|
428
|
+
|
|
429
|
+
/**
|
|
430
|
+
* Job title.
|
|
431
|
+
*/
|
|
432
|
+
title: string;
|
|
433
|
+
|
|
434
|
+
/**
|
|
435
|
+
* Department id from GET /departments/.
|
|
436
|
+
*/
|
|
437
|
+
department_id?: string;
|
|
438
|
+
|
|
439
|
+
/**
|
|
440
|
+
* Job duties.
|
|
441
|
+
*/
|
|
442
|
+
duties?: string;
|
|
443
|
+
|
|
444
|
+
/**
|
|
445
|
+
* Optional job classification for the hire.
|
|
446
|
+
*/
|
|
447
|
+
job_classification?: string;
|
|
448
|
+
|
|
449
|
+
/**
|
|
450
|
+
* Job function id from GET /job-functions/.
|
|
451
|
+
*/
|
|
452
|
+
job_family_id?: string;
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* Level id from GET /levels/.
|
|
456
|
+
*/
|
|
457
|
+
level_id?: string;
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* Manager worker id from GET /workers/.
|
|
461
|
+
*/
|
|
462
|
+
manager_id?: string;
|
|
463
|
+
|
|
464
|
+
/**
|
|
465
|
+
* Overtime classification for US FLSA and CA direct hire. Public values are exempt
|
|
466
|
+
* and non-exempt.
|
|
467
|
+
*/
|
|
468
|
+
overtime_exemption?: string;
|
|
469
|
+
|
|
470
|
+
/**
|
|
471
|
+
* Team ids from GET /teams/.
|
|
472
|
+
*/
|
|
473
|
+
team_ids?: Array<string>;
|
|
474
|
+
|
|
475
|
+
/**
|
|
476
|
+
* Expected weekly hours as a decimal string (for example 40 or 37.5). Required
|
|
477
|
+
* when Hiring Flow collects exact weekly hours for the country/employment type.
|
|
478
|
+
*/
|
|
479
|
+
weekly_hours?: string;
|
|
480
|
+
|
|
481
|
+
/**
|
|
482
|
+
* Hiring-owned weekly hours range when a range is collected instead of an exact
|
|
483
|
+
* value.
|
|
484
|
+
*/
|
|
485
|
+
weekly_hours_range?: string;
|
|
486
|
+
|
|
487
|
+
/**
|
|
488
|
+
* Work email for the hire.
|
|
489
|
+
*/
|
|
490
|
+
work_email?: string;
|
|
491
|
+
|
|
492
|
+
/**
|
|
493
|
+
* Optional work pattern template. Use INLINE with working_hours_schedule for a
|
|
494
|
+
* custom week.
|
|
495
|
+
*/
|
|
496
|
+
work_pattern_template?: Employment.WorkPatternTemplate;
|
|
497
|
+
|
|
498
|
+
/**
|
|
499
|
+
* Working hours schedule. Required when the hiring flow collects work patterns.
|
|
500
|
+
*/
|
|
501
|
+
working_hours_schedule?: Employment.WorkingHoursSchedule;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
export namespace Employment {
|
|
505
|
+
/**
|
|
506
|
+
* Optional work pattern template. Use INLINE with working_hours_schedule for a
|
|
507
|
+
* custom week.
|
|
508
|
+
*/
|
|
509
|
+
export interface WorkPatternTemplate {
|
|
510
|
+
/**
|
|
511
|
+
* Work pattern template id, for example US or INLINE.
|
|
512
|
+
*/
|
|
513
|
+
id: string;
|
|
514
|
+
|
|
515
|
+
/**
|
|
516
|
+
* Template client type. GEO_CONFIG, WORK_PATTERN, or INLINE.
|
|
517
|
+
*/
|
|
518
|
+
client_type: string;
|
|
519
|
+
|
|
520
|
+
/**
|
|
521
|
+
* Optional display name for the template.
|
|
522
|
+
*/
|
|
523
|
+
readable_name?: string;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
/**
|
|
527
|
+
* Working hours schedule. Required when the hiring flow collects work patterns.
|
|
528
|
+
*/
|
|
529
|
+
export interface WorkingHoursSchedule {
|
|
530
|
+
/**
|
|
531
|
+
* Repeating week definition for the schedule.
|
|
532
|
+
*/
|
|
533
|
+
recurrence: WorkingHoursSchedule.Recurrence;
|
|
534
|
+
|
|
535
|
+
/**
|
|
536
|
+
* IANA time zone for the schedule, for example America/Los_Angeles.
|
|
537
|
+
*/
|
|
538
|
+
schedule_time_zone: string;
|
|
539
|
+
|
|
540
|
+
/**
|
|
541
|
+
* First day of the expansion cycle. Lowercase weekday, for example sunday.
|
|
542
|
+
*/
|
|
543
|
+
start_day_of_week: string;
|
|
544
|
+
|
|
545
|
+
/**
|
|
546
|
+
* Optional work-pattern scope. GENERIC or INLINE.
|
|
547
|
+
*/
|
|
548
|
+
scope_type?: string;
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
export namespace WorkingHoursSchedule {
|
|
552
|
+
/**
|
|
553
|
+
* Repeating week definition for the schedule.
|
|
554
|
+
*/
|
|
555
|
+
export interface Recurrence {
|
|
556
|
+
/**
|
|
557
|
+
* One entry per day in the cycle, length times 7, starting at start_day_of_week.
|
|
558
|
+
*/
|
|
559
|
+
expansion: Array<Recurrence.Expansion>;
|
|
560
|
+
|
|
561
|
+
/**
|
|
562
|
+
* Number of units in the cycle. 1 is a weekly pattern.
|
|
563
|
+
*/
|
|
564
|
+
length: number;
|
|
565
|
+
|
|
566
|
+
/**
|
|
567
|
+
* Recurrence unit. Must be WEEKS.
|
|
568
|
+
*/
|
|
569
|
+
unit: string;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
export namespace Recurrence {
|
|
573
|
+
export interface Expansion {
|
|
574
|
+
/**
|
|
575
|
+
* Day duration as a decimal string, for example 8.00. Omit or null for an off day.
|
|
576
|
+
*/
|
|
577
|
+
duration?: string;
|
|
578
|
+
|
|
579
|
+
/**
|
|
580
|
+
* End time as HH:MM:SS. Omit or null for an off day.
|
|
581
|
+
*/
|
|
582
|
+
end_time?: string;
|
|
583
|
+
|
|
584
|
+
/**
|
|
585
|
+
* Start time as HH:MM:SS. Omit or null for an off day.
|
|
586
|
+
*/
|
|
587
|
+
start_time?: string;
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
/**
|
|
594
|
+
* Personal information for the hire.
|
|
595
|
+
*/
|
|
596
|
+
export interface Personal {
|
|
597
|
+
/**
|
|
598
|
+
* Legal first name of the hire.
|
|
599
|
+
*/
|
|
600
|
+
first_name: string;
|
|
601
|
+
|
|
602
|
+
/**
|
|
603
|
+
* Legal last name of the hire.
|
|
604
|
+
*/
|
|
605
|
+
last_name: string;
|
|
606
|
+
|
|
607
|
+
/**
|
|
608
|
+
* Invite email. Required unless invite_phone is provided.
|
|
609
|
+
*/
|
|
610
|
+
invite_email?: string;
|
|
611
|
+
|
|
612
|
+
/**
|
|
613
|
+
* Invite phone in E.164. Required unless invite_email is provided.
|
|
614
|
+
*/
|
|
615
|
+
invite_phone?: string;
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
/**
|
|
619
|
+
* Work location for the hire.
|
|
620
|
+
*/
|
|
621
|
+
export interface WorkLocation {
|
|
622
|
+
/**
|
|
623
|
+
* ISO 3166-1 alpha-2 country code. Required for on-site and remote. First
|
|
624
|
+
* milestone accepts US and CA.
|
|
625
|
+
*/
|
|
626
|
+
country_code: string;
|
|
627
|
+
|
|
628
|
+
/**
|
|
629
|
+
* When true, location_id is omitted.
|
|
630
|
+
*/
|
|
631
|
+
is_remote?: boolean;
|
|
632
|
+
|
|
633
|
+
/**
|
|
634
|
+
* Work location id from GET /work-locations/. Required unless is_remote is true.
|
|
635
|
+
*/
|
|
636
|
+
location_id?: string;
|
|
637
|
+
|
|
638
|
+
/**
|
|
639
|
+
* Optional state or region code for a remote work location.
|
|
640
|
+
*/
|
|
641
|
+
state_code?: string;
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
/**
|
|
645
|
+
* US additional employment fields such as tips, SOC, and job classification.
|
|
646
|
+
*/
|
|
647
|
+
export interface AdditionalEmploymentFields {
|
|
648
|
+
/**
|
|
649
|
+
* Whether the worker collects tips. US catalog field.
|
|
650
|
+
*/
|
|
651
|
+
does_worker_collect_tips: boolean;
|
|
652
|
+
|
|
653
|
+
/**
|
|
654
|
+
* US EEOC job classification, for example PROFESSIONALS.
|
|
655
|
+
*/
|
|
656
|
+
job_classification: string;
|
|
657
|
+
|
|
658
|
+
/**
|
|
659
|
+
* US SOC occupation code in NN-NNNN form, for example 15-1252.
|
|
660
|
+
*/
|
|
661
|
+
soc_code?: string;
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
/**
|
|
665
|
+
* CA vacation, probation, and notice terms. Required for CA direct hire.
|
|
666
|
+
*/
|
|
667
|
+
export interface CountryJobFields {
|
|
668
|
+
/**
|
|
669
|
+
* CA employment contract type and optional fixed-term duration. Not collected for
|
|
670
|
+
* US.
|
|
671
|
+
*/
|
|
672
|
+
employment_contract: CountryJobFields.EmploymentContract;
|
|
673
|
+
|
|
674
|
+
/**
|
|
675
|
+
* CA notice type: STANDARD_NOTICE or CUSTOM_NOTICE.
|
|
676
|
+
*/
|
|
677
|
+
notice_type: string;
|
|
678
|
+
|
|
679
|
+
/**
|
|
680
|
+
* CA probation type: STANDARD_PROBATION, SHORTER_PROBATION, or FORGO_PROBATION.
|
|
681
|
+
*/
|
|
682
|
+
probation_type: string;
|
|
683
|
+
|
|
684
|
+
/**
|
|
685
|
+
* CA vacation type: STATUTORY_VACATION or CUSTOM_VACATION.
|
|
686
|
+
*/
|
|
687
|
+
vacation_type: string;
|
|
688
|
+
|
|
689
|
+
/**
|
|
690
|
+
* Required when notice_type is CUSTOM_NOTICE.
|
|
691
|
+
*/
|
|
692
|
+
notice_quantity?: number;
|
|
693
|
+
|
|
694
|
+
/**
|
|
695
|
+
* Required when notice_type is CUSTOM_NOTICE.
|
|
696
|
+
*/
|
|
697
|
+
notice_unit?: string;
|
|
698
|
+
|
|
699
|
+
/**
|
|
700
|
+
* Required when probation_type is SHORTER_PROBATION.
|
|
701
|
+
*/
|
|
702
|
+
probation_quantity?: number;
|
|
703
|
+
|
|
704
|
+
/**
|
|
705
|
+
* Required when probation_type is SHORTER_PROBATION.
|
|
706
|
+
*/
|
|
707
|
+
probation_unit?: string;
|
|
708
|
+
|
|
709
|
+
/**
|
|
710
|
+
* Required when vacation_type is CUSTOM_VACATION.
|
|
711
|
+
*/
|
|
712
|
+
vacation_days?: number;
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
export namespace CountryJobFields {
|
|
716
|
+
/**
|
|
717
|
+
* CA employment contract type and optional fixed-term duration. Not collected for
|
|
718
|
+
* US.
|
|
719
|
+
*/
|
|
720
|
+
export interface EmploymentContract {
|
|
721
|
+
/**
|
|
722
|
+
* CA employment contract type: FIXED or INDEFINITE.
|
|
723
|
+
*/
|
|
724
|
+
type: string;
|
|
725
|
+
|
|
726
|
+
/**
|
|
727
|
+
* Fixed-term duration unit when type is FIXED: DAYS, WEEKS, MONTHS, or YEARS.
|
|
728
|
+
* Required by Hiring Flow for FIXED contracts; omit for INDEFINITE.
|
|
729
|
+
*/
|
|
730
|
+
duration_unit?: string;
|
|
731
|
+
|
|
732
|
+
/**
|
|
733
|
+
* Fixed-term duration length when type is FIXED. Required by Hiring Flow for FIXED
|
|
734
|
+
* contracts once duration_unit is set; omit for INDEFINITE.
|
|
735
|
+
*/
|
|
736
|
+
duration_value?: number;
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
export interface CustomField {
|
|
741
|
+
/**
|
|
742
|
+
* Hiring custom field id.
|
|
743
|
+
*/
|
|
744
|
+
field_id: string;
|
|
745
|
+
|
|
746
|
+
/**
|
|
747
|
+
* Custom field value.
|
|
748
|
+
*/
|
|
749
|
+
value: unknown;
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
/**
|
|
753
|
+
* Optional rehire, headcount, and ATS correlation context.
|
|
754
|
+
*/
|
|
755
|
+
export interface HireContext {
|
|
756
|
+
/**
|
|
757
|
+
* Optional ATS applicant id for correlation.
|
|
758
|
+
*/
|
|
759
|
+
ats_applicant_id?: string;
|
|
760
|
+
|
|
761
|
+
/**
|
|
762
|
+
* Optional existing in-progress hire role id.
|
|
763
|
+
*/
|
|
764
|
+
existing_role_id?: string;
|
|
765
|
+
|
|
766
|
+
/**
|
|
767
|
+
* Optional headcount position id (PID) to hire into.
|
|
768
|
+
*/
|
|
769
|
+
headcount_position_id?: string;
|
|
770
|
+
|
|
771
|
+
/**
|
|
772
|
+
* Required with rehire_role_id. REUSE_EMPLOYEE_DETAILS or NEW_EMPLOYEE_DETAILS.
|
|
773
|
+
*/
|
|
774
|
+
rehire_choice?: string;
|
|
775
|
+
|
|
776
|
+
/**
|
|
777
|
+
* Prior terminated role id when initiating a rehire.
|
|
778
|
+
*/
|
|
779
|
+
rehire_role_id?: string;
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
export declare namespace Hires {
|
|
785
|
+
export { type HireCreateResponse as HireCreateResponse, type HireCreateParams as HireCreateParams };
|
|
786
|
+
}
|