@tryfinch/finch-api 5.14.3 → 5.16.0
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/CHANGELOG.md +41 -0
- package/LICENSE +1 -1
- package/_shims/index.d.ts +1 -1
- package/_shims/registry.d.ts +1 -1
- package/_shims/registry.d.ts.map +1 -1
- package/core.d.ts +14 -12
- package/core.d.ts.map +1 -1
- package/core.js +43 -15
- package/core.js.map +1 -1
- package/core.mjs +43 -15
- package/core.mjs.map +1 -1
- package/index.d.mts +27 -1
- package/index.d.ts +27 -1
- package/index.d.ts.map +1 -1
- package/index.js +50 -5
- package/index.js.map +1 -1
- package/index.mjs +50 -5
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/access-tokens.d.ts +23 -0
- package/resources/access-tokens.d.ts.map +1 -0
- package/resources/access-tokens.js +17 -0
- package/resources/access-tokens.js.map +1 -0
- package/resources/access-tokens.mjs +13 -0
- package/resources/access-tokens.mjs.map +1 -0
- package/resources/account.d.ts +14 -0
- package/resources/account.d.ts.map +1 -1
- package/resources/account.js.map +1 -1
- package/resources/account.mjs.map +1 -1
- package/resources/index.d.ts +2 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/sandbox/company.d.ts +195 -0
- package/resources/sandbox/company.d.ts.map +1 -0
- package/resources/sandbox/company.js +17 -0
- package/resources/sandbox/company.js.map +1 -0
- package/resources/sandbox/company.mjs +13 -0
- package/resources/sandbox/company.mjs.map +1 -0
- package/resources/sandbox/connections/accounts.d.ts +51 -0
- package/resources/sandbox/connections/accounts.d.ts.map +1 -0
- package/resources/sandbox/connections/accounts.js +24 -0
- package/resources/sandbox/connections/accounts.js.map +1 -0
- package/resources/sandbox/connections/accounts.mjs +20 -0
- package/resources/sandbox/connections/accounts.mjs.map +1 -0
- package/resources/sandbox/connections/connections.d.ts +39 -0
- package/resources/sandbox/connections/connections.d.ts.map +1 -0
- package/resources/sandbox/connections/connections.js +46 -0
- package/resources/sandbox/connections/connections.js.map +1 -0
- package/resources/sandbox/connections/connections.mjs +19 -0
- package/resources/sandbox/connections/connections.mjs.map +1 -0
- package/resources/sandbox/connections/index.d.ts +3 -0
- package/resources/sandbox/connections/index.d.ts.map +1 -0
- package/resources/sandbox/connections/index.js +9 -0
- package/resources/sandbox/connections/index.js.map +1 -0
- package/resources/sandbox/connections/index.mjs +4 -0
- package/resources/sandbox/connections/index.mjs.map +1 -0
- package/resources/sandbox/directory.d.ts +156 -0
- package/resources/sandbox/directory.d.ts.map +1 -0
- package/resources/sandbox/directory.js +17 -0
- package/resources/sandbox/directory.js.map +1 -0
- package/resources/sandbox/directory.mjs +13 -0
- package/resources/sandbox/directory.mjs.map +1 -0
- package/resources/sandbox/employment.d.ts +216 -0
- package/resources/sandbox/employment.d.ts.map +1 -0
- package/resources/sandbox/employment.js +18 -0
- package/resources/sandbox/employment.js.map +1 -0
- package/resources/sandbox/employment.mjs +14 -0
- package/resources/sandbox/employment.mjs.map +1 -0
- package/resources/sandbox/index.d.ts +9 -0
- package/resources/sandbox/index.d.ts.map +1 -0
- package/resources/sandbox/index.js +21 -0
- package/resources/sandbox/index.js.map +1 -0
- package/resources/sandbox/index.mjs +10 -0
- package/resources/sandbox/index.mjs.map +1 -0
- package/resources/sandbox/individual.d.ts +124 -0
- package/resources/sandbox/individual.d.ts.map +1 -0
- package/resources/sandbox/individual.js +18 -0
- package/resources/sandbox/individual.js.map +1 -0
- package/resources/sandbox/individual.mjs +14 -0
- package/resources/sandbox/individual.mjs.map +1 -0
- package/resources/sandbox/jobs/configuration.d.ts +28 -0
- package/resources/sandbox/jobs/configuration.d.ts.map +1 -0
- package/resources/sandbox/jobs/configuration.js +23 -0
- package/resources/sandbox/jobs/configuration.js.map +1 -0
- package/resources/sandbox/jobs/configuration.mjs +19 -0
- package/resources/sandbox/jobs/configuration.mjs.map +1 -0
- package/resources/sandbox/jobs/index.d.ts +3 -0
- package/resources/sandbox/jobs/index.d.ts.map +1 -0
- package/resources/sandbox/jobs/index.js +9 -0
- package/resources/sandbox/jobs/index.js.map +1 -0
- package/resources/sandbox/jobs/index.mjs +4 -0
- package/resources/sandbox/jobs/index.mjs.map +1 -0
- package/resources/sandbox/jobs/jobs.d.ts +12 -0
- package/resources/sandbox/jobs/jobs.d.ts.map +1 -0
- package/resources/sandbox/jobs/jobs.js +40 -0
- package/resources/sandbox/jobs/jobs.js.map +1 -0
- package/resources/sandbox/jobs/jobs.mjs +13 -0
- package/resources/sandbox/jobs/jobs.mjs.map +1 -0
- package/resources/sandbox/payment.d.ts +154 -0
- package/resources/sandbox/payment.d.ts.map +1 -0
- package/resources/sandbox/payment.js +18 -0
- package/resources/sandbox/payment.js.map +1 -0
- package/resources/sandbox/payment.mjs +14 -0
- package/resources/sandbox/payment.mjs.map +1 -0
- package/resources/sandbox/sandbox.d.ts +39 -0
- package/resources/sandbox/sandbox.d.ts.map +1 -0
- package/resources/sandbox/sandbox.js +58 -0
- package/resources/sandbox/sandbox.js.map +1 -0
- package/resources/sandbox/sandbox.mjs +31 -0
- package/resources/sandbox/sandbox.mjs.map +1 -0
- package/resources/shared.d.ts +1 -0
- package/resources/shared.d.ts.map +1 -1
- package/src/_shims/index.d.ts +1 -1
- package/src/_shims/node-runtime.ts +1 -1
- package/src/_shims/registry.ts +1 -1
- package/src/_shims/web-runtime.ts +1 -1
- package/src/core.ts +69 -32
- package/src/index.ts +76 -4
- package/src/lib/.keep +4 -0
- package/src/resources/access-tokens.ts +36 -0
- package/src/resources/account.ts +19 -0
- package/src/resources/index.ts +2 -0
- package/src/resources/sandbox/company.ts +252 -0
- package/src/resources/sandbox/connections/accounts.ts +83 -0
- package/src/resources/sandbox/connections/connections.ts +58 -0
- package/src/resources/sandbox/connections/index.ts +10 -0
- package/src/resources/sandbox/directory.ts +210 -0
- package/src/resources/sandbox/employment.ts +279 -0
- package/src/resources/sandbox/index.ts +10 -0
- package/src/resources/sandbox/individual.ts +193 -0
- package/src/resources/sandbox/jobs/configuration.ts +44 -0
- package/src/resources/sandbox/jobs/index.ts +9 -0
- package/src/resources/sandbox/jobs/jobs.ts +15 -0
- package/src/resources/sandbox/payment.ts +215 -0
- package/src/resources/sandbox/sandbox.ts +42 -0
- package/src/resources/shared.ts +8 -0
- package/src/uploads.ts +2 -2
- package/src/version.ts +1 -1
- package/uploads.d.ts +2 -2
- package/uploads.d.ts.map +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
2
|
+
|
|
3
|
+
import * as Core from "../../core";
|
|
4
|
+
import { APIResource } from "../../resource";
|
|
5
|
+
import { isRequestOptions } from "../../core";
|
|
6
|
+
import * as EmploymentAPI from "./employment";
|
|
7
|
+
import * as HRISAPI from "../hris/hris";
|
|
8
|
+
|
|
9
|
+
export class Employment extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Update sandbox employment
|
|
12
|
+
*/
|
|
13
|
+
update(
|
|
14
|
+
individualId: string,
|
|
15
|
+
body?: EmploymentUpdateParams,
|
|
16
|
+
options?: Core.RequestOptions,
|
|
17
|
+
): Core.APIPromise<EmploymentUpdateResponse>;
|
|
18
|
+
update(individualId: string, options?: Core.RequestOptions): Core.APIPromise<EmploymentUpdateResponse>;
|
|
19
|
+
update(
|
|
20
|
+
individualId: string,
|
|
21
|
+
body: EmploymentUpdateParams | Core.RequestOptions = {},
|
|
22
|
+
options?: Core.RequestOptions,
|
|
23
|
+
): Core.APIPromise<EmploymentUpdateResponse> {
|
|
24
|
+
if (isRequestOptions(body)) {
|
|
25
|
+
return this.update(individualId, {}, body);
|
|
26
|
+
}
|
|
27
|
+
return this._client.put(`/sandbox/employment/${individualId}`, { body, ...options });
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface EmploymentUpdateResponse {
|
|
32
|
+
/**
|
|
33
|
+
* A stable Finch `id` (UUID v4) for an individual in the company.
|
|
34
|
+
*/
|
|
35
|
+
id?: string;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Worker's compensation classification code for this employee
|
|
39
|
+
*/
|
|
40
|
+
class_code?: string | null;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Custom fields for the individual. These are fields which are defined by the
|
|
44
|
+
* employer in the system. Custom fields are not currently supported for assisted
|
|
45
|
+
* connections.
|
|
46
|
+
*/
|
|
47
|
+
custom_fields?: Array<EmploymentUpdateResponse.CustomField>;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* The department object.
|
|
51
|
+
*/
|
|
52
|
+
department?: EmploymentUpdateResponse.Department | null;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* The employment object.
|
|
56
|
+
*/
|
|
57
|
+
employment?: EmploymentUpdateResponse.Employment | null;
|
|
58
|
+
|
|
59
|
+
end_date?: string | null;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* The legal first name of the individual.
|
|
63
|
+
*/
|
|
64
|
+
first_name?: string | null;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* The employee's income as reported by the provider. This may not always be
|
|
68
|
+
* annualized income, but may be in units of bi-weekly, semi-monthly, daily, etc,
|
|
69
|
+
* depending on what information the provider returns.
|
|
70
|
+
*/
|
|
71
|
+
income?: HRISAPI.Income | null;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* The array of income history.
|
|
75
|
+
*/
|
|
76
|
+
income_history?: Array<HRISAPI.Income | null> | null;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* `true` if the individual an an active employee or contractor at the company.
|
|
80
|
+
*/
|
|
81
|
+
is_active?: boolean | null;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* The legal last name of the individual.
|
|
85
|
+
*/
|
|
86
|
+
last_name?: string | null;
|
|
87
|
+
|
|
88
|
+
location?: HRISAPI.Location | null;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* The manager object representing the manager of the individual within the org.
|
|
92
|
+
*/
|
|
93
|
+
manager?: EmploymentUpdateResponse.Manager | null;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* The legal middle name of the individual.
|
|
97
|
+
*/
|
|
98
|
+
middle_name?: string | null;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* The source system's unique employment identifier for this individual
|
|
102
|
+
*/
|
|
103
|
+
source_id?: string;
|
|
104
|
+
|
|
105
|
+
start_date?: string | null;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* The current title of the individual.
|
|
109
|
+
*/
|
|
110
|
+
title?: string | null;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export namespace EmploymentUpdateResponse {
|
|
114
|
+
export interface CustomField {
|
|
115
|
+
name?: string | null;
|
|
116
|
+
|
|
117
|
+
value?: unknown;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* The department object.
|
|
122
|
+
*/
|
|
123
|
+
export interface Department {
|
|
124
|
+
/**
|
|
125
|
+
* The name of the department associated with the individual.
|
|
126
|
+
*/
|
|
127
|
+
name?: string | null;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* The employment object.
|
|
132
|
+
*/
|
|
133
|
+
export interface Employment {
|
|
134
|
+
/**
|
|
135
|
+
* The secondary employment type of the individual. Options: `full_time`, `part_time`, `intern`, `temp`, `seasonal` and `individual_contractor`.
|
|
136
|
+
*/
|
|
137
|
+
subtype?: 'full_time' | 'intern' | 'part_time' | 'temp' | 'seasonal' | 'individual_contractor' | null;
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* The main employment type of the individual.
|
|
141
|
+
*/
|
|
142
|
+
type?: 'employee' | 'contractor' | null;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* The manager object representing the manager of the individual within the org.
|
|
147
|
+
*/
|
|
148
|
+
export interface Manager {
|
|
149
|
+
/**
|
|
150
|
+
* A stable Finch `id` (UUID v4) for an individual in the company.
|
|
151
|
+
*/
|
|
152
|
+
id?: string;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export interface EmploymentUpdateParams {
|
|
157
|
+
/**
|
|
158
|
+
* Worker's compensation classification code for this employee
|
|
159
|
+
*/
|
|
160
|
+
class_code?: string | null;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Custom fields for the individual. These are fields which are defined by the
|
|
164
|
+
* employer in the system. Custom fields are not currently supported for assisted
|
|
165
|
+
* connections.
|
|
166
|
+
*/
|
|
167
|
+
custom_fields?: Array<EmploymentUpdateParams.CustomField>;
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* The department object.
|
|
171
|
+
*/
|
|
172
|
+
department?: EmploymentUpdateParams.Department | null;
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* The employment object.
|
|
176
|
+
*/
|
|
177
|
+
employment?: EmploymentUpdateParams.Employment | null;
|
|
178
|
+
|
|
179
|
+
end_date?: string | null;
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* The legal first name of the individual.
|
|
183
|
+
*/
|
|
184
|
+
first_name?: string | null;
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* The employee's income as reported by the provider. This may not always be
|
|
188
|
+
* annualized income, but may be in units of bi-weekly, semi-monthly, daily, etc,
|
|
189
|
+
* depending on what information the provider returns.
|
|
190
|
+
*/
|
|
191
|
+
income?: HRISAPI.Income | null;
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* The array of income history.
|
|
195
|
+
*/
|
|
196
|
+
income_history?: Array<HRISAPI.Income | null> | null;
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* `true` if the individual an an active employee or contractor at the company.
|
|
200
|
+
*/
|
|
201
|
+
is_active?: boolean | null;
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* The legal last name of the individual.
|
|
205
|
+
*/
|
|
206
|
+
last_name?: string | null;
|
|
207
|
+
|
|
208
|
+
location?: HRISAPI.Location | null;
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* The manager object representing the manager of the individual within the org.
|
|
212
|
+
*/
|
|
213
|
+
manager?: EmploymentUpdateParams.Manager | null;
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* The legal middle name of the individual.
|
|
217
|
+
*/
|
|
218
|
+
middle_name?: string | null;
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* The source system's unique employment identifier for this individual
|
|
222
|
+
*/
|
|
223
|
+
source_id?: string;
|
|
224
|
+
|
|
225
|
+
start_date?: string | null;
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* The current title of the individual.
|
|
229
|
+
*/
|
|
230
|
+
title?: string | null;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
export namespace EmploymentUpdateParams {
|
|
234
|
+
export interface CustomField {
|
|
235
|
+
name?: string | null;
|
|
236
|
+
|
|
237
|
+
value?: unknown;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* The department object.
|
|
242
|
+
*/
|
|
243
|
+
export interface Department {
|
|
244
|
+
/**
|
|
245
|
+
* The name of the department associated with the individual.
|
|
246
|
+
*/
|
|
247
|
+
name?: string | null;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* The employment object.
|
|
252
|
+
*/
|
|
253
|
+
export interface Employment {
|
|
254
|
+
/**
|
|
255
|
+
* The secondary employment type of the individual. Options: `full_time`, `part_time`, `intern`, `temp`, `seasonal` and `individual_contractor`.
|
|
256
|
+
*/
|
|
257
|
+
subtype?: 'full_time' | 'intern' | 'part_time' | 'temp' | 'seasonal' | 'individual_contractor' | null;
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* The main employment type of the individual.
|
|
261
|
+
*/
|
|
262
|
+
type?: 'employee' | 'contractor' | null;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* The manager object representing the manager of the individual within the org.
|
|
267
|
+
*/
|
|
268
|
+
export interface Manager {
|
|
269
|
+
/**
|
|
270
|
+
* A stable Finch `id` (UUID v4) for an individual in the company.
|
|
271
|
+
*/
|
|
272
|
+
id?: string;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
export namespace Employment {
|
|
277
|
+
export import EmploymentUpdateResponse = EmploymentAPI.EmploymentUpdateResponse;
|
|
278
|
+
export import EmploymentUpdateParams = EmploymentAPI.EmploymentUpdateParams;
|
|
279
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
2
|
+
|
|
3
|
+
export { CompanyUpdateResponse, CompanyUpdateParams, Company } from './company';
|
|
4
|
+
export { ConnectionCreateResponse, ConnectionCreateParams, Connections } from './connections/index';
|
|
5
|
+
export { DirectoryCreateResponse, DirectoryCreateParams, Directory } from './directory';
|
|
6
|
+
export { EmploymentUpdateResponse, EmploymentUpdateParams, Employment } from './employment';
|
|
7
|
+
export { IndividualUpdateResponse, IndividualUpdateParams, Individual } from './individual';
|
|
8
|
+
export { Jobs } from './jobs/index';
|
|
9
|
+
export { PaymentCreateResponse, PaymentCreateParams, Payment } from './payment';
|
|
10
|
+
export { Sandbox } from './sandbox';
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
2
|
+
|
|
3
|
+
import * as Core from "../../core";
|
|
4
|
+
import { APIResource } from "../../resource";
|
|
5
|
+
import { isRequestOptions } from "../../core";
|
|
6
|
+
import * as IndividualAPI from "./individual";
|
|
7
|
+
import * as HRISAPI from "../hris/hris";
|
|
8
|
+
|
|
9
|
+
export class Individual extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Update sandbox individual
|
|
12
|
+
*/
|
|
13
|
+
update(
|
|
14
|
+
individualId: string,
|
|
15
|
+
body?: IndividualUpdateParams,
|
|
16
|
+
options?: Core.RequestOptions,
|
|
17
|
+
): Core.APIPromise<IndividualUpdateResponse>;
|
|
18
|
+
update(individualId: string, options?: Core.RequestOptions): Core.APIPromise<IndividualUpdateResponse>;
|
|
19
|
+
update(
|
|
20
|
+
individualId: string,
|
|
21
|
+
body: IndividualUpdateParams | Core.RequestOptions = {},
|
|
22
|
+
options?: Core.RequestOptions,
|
|
23
|
+
): Core.APIPromise<IndividualUpdateResponse> {
|
|
24
|
+
if (isRequestOptions(body)) {
|
|
25
|
+
return this.update(individualId, {}, body);
|
|
26
|
+
}
|
|
27
|
+
return this._client.put(`/sandbox/individual/${individualId}`, { body, ...options });
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface IndividualUpdateResponse {
|
|
32
|
+
/**
|
|
33
|
+
* A stable Finch `id` (UUID v4) for an individual in the company.
|
|
34
|
+
*/
|
|
35
|
+
id?: string;
|
|
36
|
+
|
|
37
|
+
dob?: string | null;
|
|
38
|
+
|
|
39
|
+
emails?: Array<IndividualUpdateResponse.Email> | null;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Social Security Number of the individual in **encrypted** format. This field is
|
|
43
|
+
* only available with the `ssn` scope enabled and the
|
|
44
|
+
* `options: { include: ['ssn'] }` param set in the body.
|
|
45
|
+
*/
|
|
46
|
+
encrypted_ssn?: string | null;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* The EEOC-defined ethnicity of the individual.
|
|
50
|
+
*/
|
|
51
|
+
ethnicity?:
|
|
52
|
+
| 'asian'
|
|
53
|
+
| 'white'
|
|
54
|
+
| 'black_or_african_american'
|
|
55
|
+
| 'native_hawaiian_or_pacific_islander'
|
|
56
|
+
| 'american_indian_or_alaska_native'
|
|
57
|
+
| 'hispanic_or_latino'
|
|
58
|
+
| 'two_or_more_races'
|
|
59
|
+
| 'decline_to_specify'
|
|
60
|
+
| null;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* The legal first name of the individual.
|
|
64
|
+
*/
|
|
65
|
+
first_name?: string | null;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* The gender of the individual.
|
|
69
|
+
*/
|
|
70
|
+
gender?: 'female' | 'male' | 'other' | 'decline_to_specify' | null;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* The legal last name of the individual.
|
|
74
|
+
*/
|
|
75
|
+
last_name?: string | null;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* The legal middle name of the individual.
|
|
79
|
+
*/
|
|
80
|
+
middle_name?: string | null;
|
|
81
|
+
|
|
82
|
+
phone_numbers?: Array<IndividualUpdateResponse.PhoneNumber | null> | null;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* The preferred name of the individual.
|
|
86
|
+
*/
|
|
87
|
+
preferred_name?: string | null;
|
|
88
|
+
|
|
89
|
+
residence?: HRISAPI.Location | null;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Social Security Number of the individual. This field is only available with the
|
|
93
|
+
* `ssn` scope enabled and the `options: { include: ['ssn'] }` param set in the
|
|
94
|
+
* body.
|
|
95
|
+
*/
|
|
96
|
+
ssn?: string | null;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export namespace IndividualUpdateResponse {
|
|
100
|
+
export interface Email {
|
|
101
|
+
data?: string;
|
|
102
|
+
|
|
103
|
+
type?: 'work' | 'personal';
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export interface PhoneNumber {
|
|
107
|
+
data?: string;
|
|
108
|
+
|
|
109
|
+
type?: 'work' | 'personal';
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export interface IndividualUpdateParams {
|
|
114
|
+
dob?: string | null;
|
|
115
|
+
|
|
116
|
+
emails?: Array<IndividualUpdateParams.Email> | null;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Social Security Number of the individual in **encrypted** format. This field is
|
|
120
|
+
* only available with the `ssn` scope enabled and the
|
|
121
|
+
* `options: { include: ['ssn'] }` param set in the body.
|
|
122
|
+
*/
|
|
123
|
+
encrypted_ssn?: string | null;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* The EEOC-defined ethnicity of the individual.
|
|
127
|
+
*/
|
|
128
|
+
ethnicity?:
|
|
129
|
+
| 'asian'
|
|
130
|
+
| 'white'
|
|
131
|
+
| 'black_or_african_american'
|
|
132
|
+
| 'native_hawaiian_or_pacific_islander'
|
|
133
|
+
| 'american_indian_or_alaska_native'
|
|
134
|
+
| 'hispanic_or_latino'
|
|
135
|
+
| 'two_or_more_races'
|
|
136
|
+
| 'decline_to_specify'
|
|
137
|
+
| null;
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* The legal first name of the individual.
|
|
141
|
+
*/
|
|
142
|
+
first_name?: string | null;
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* The gender of the individual.
|
|
146
|
+
*/
|
|
147
|
+
gender?: 'female' | 'male' | 'other' | 'decline_to_specify' | null;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* The legal last name of the individual.
|
|
151
|
+
*/
|
|
152
|
+
last_name?: string | null;
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* The legal middle name of the individual.
|
|
156
|
+
*/
|
|
157
|
+
middle_name?: string | null;
|
|
158
|
+
|
|
159
|
+
phone_numbers?: Array<IndividualUpdateParams.PhoneNumber | null> | null;
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* The preferred name of the individual.
|
|
163
|
+
*/
|
|
164
|
+
preferred_name?: string | null;
|
|
165
|
+
|
|
166
|
+
residence?: HRISAPI.Location | null;
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Social Security Number of the individual. This field is only available with the
|
|
170
|
+
* `ssn` scope enabled and the `options: { include: ['ssn'] }` param set in the
|
|
171
|
+
* body.
|
|
172
|
+
*/
|
|
173
|
+
ssn?: string | null;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
export namespace IndividualUpdateParams {
|
|
177
|
+
export interface Email {
|
|
178
|
+
data?: string;
|
|
179
|
+
|
|
180
|
+
type?: 'work' | 'personal';
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export interface PhoneNumber {
|
|
184
|
+
data?: string;
|
|
185
|
+
|
|
186
|
+
type?: 'work' | 'personal';
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
export namespace Individual {
|
|
191
|
+
export import IndividualUpdateResponse = IndividualAPI.IndividualUpdateResponse;
|
|
192
|
+
export import IndividualUpdateParams = IndividualAPI.IndividualUpdateParams;
|
|
193
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
2
|
+
|
|
3
|
+
import * as Core from "../../../core";
|
|
4
|
+
import { APIResource } from "../../../resource";
|
|
5
|
+
import * as ConfigurationAPI from "./configuration";
|
|
6
|
+
|
|
7
|
+
export class Configuration extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Get configurations for sandbox jobs
|
|
10
|
+
*/
|
|
11
|
+
retrieve(options?: Core.RequestOptions): Core.APIPromise<ConfigurationRetrieveResponse> {
|
|
12
|
+
return this._client.get('/sandbox/jobs/configuration', options);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Update configurations for sandbox jobs
|
|
17
|
+
*/
|
|
18
|
+
update(
|
|
19
|
+
body: ConfigurationUpdateParams,
|
|
20
|
+
options?: Core.RequestOptions,
|
|
21
|
+
): Core.APIPromise<SandboxJobConfiguration> {
|
|
22
|
+
return this._client.put('/sandbox/jobs/configuration', { body, ...options });
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface SandboxJobConfiguration {
|
|
27
|
+
completion_status: 'complete' | 'reauth_error' | 'permissions_error' | 'error';
|
|
28
|
+
|
|
29
|
+
type: 'data_sync_all';
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export type ConfigurationRetrieveResponse = Array<SandboxJobConfiguration>;
|
|
33
|
+
|
|
34
|
+
export interface ConfigurationUpdateParams {
|
|
35
|
+
completion_status: 'complete' | 'reauth_error' | 'permissions_error' | 'error';
|
|
36
|
+
|
|
37
|
+
type: 'data_sync_all';
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export namespace Configuration {
|
|
41
|
+
export import SandboxJobConfiguration = ConfigurationAPI.SandboxJobConfiguration;
|
|
42
|
+
export import ConfigurationRetrieveResponse = ConfigurationAPI.ConfigurationRetrieveResponse;
|
|
43
|
+
export import ConfigurationUpdateParams = ConfigurationAPI.ConfigurationUpdateParams;
|
|
44
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from "../../../resource";
|
|
4
|
+
import * as ConfigurationAPI from "./configuration";
|
|
5
|
+
|
|
6
|
+
export class Jobs extends APIResource {
|
|
7
|
+
configuration: ConfigurationAPI.Configuration = new ConfigurationAPI.Configuration(this._client);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export namespace Jobs {
|
|
11
|
+
export import Configuration = ConfigurationAPI.Configuration;
|
|
12
|
+
export import SandboxJobConfiguration = ConfigurationAPI.SandboxJobConfiguration;
|
|
13
|
+
export import ConfigurationRetrieveResponse = ConfigurationAPI.ConfigurationRetrieveResponse;
|
|
14
|
+
export import ConfigurationUpdateParams = ConfigurationAPI.ConfigurationUpdateParams;
|
|
15
|
+
}
|