@tryfinch/finch-api 6.27.0 → 6.29.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 +65 -0
- package/README.md +1 -1
- package/package.json +1 -1
- package/resources/access-tokens.d.ts +8 -0
- package/resources/access-tokens.d.ts.map +1 -1
- package/resources/access-tokens.js +8 -0
- package/resources/access-tokens.js.map +1 -1
- package/resources/access-tokens.mjs +8 -0
- package/resources/access-tokens.mjs.map +1 -1
- package/resources/hris/benefits/benefits.d.ts +73 -0
- package/resources/hris/benefits/benefits.d.ts.map +1 -1
- package/resources/hris/benefits/benefits.js +23 -0
- package/resources/hris/benefits/benefits.js.map +1 -1
- package/resources/hris/benefits/benefits.mjs +23 -0
- package/resources/hris/benefits/benefits.mjs.map +1 -1
- package/resources/hris/benefits/individuals.d.ts +35 -0
- package/resources/hris/benefits/individuals.d.ts.map +1 -1
- package/resources/hris/benefits/individuals.js +8 -0
- package/resources/hris/benefits/individuals.js.map +1 -1
- package/resources/hris/benefits/individuals.mjs +8 -0
- package/resources/hris/benefits/individuals.mjs.map +1 -1
- package/resources/hris/company/company.d.ts +15 -10
- package/resources/hris/company/company.d.ts.map +1 -1
- package/resources/hris/company/company.js +5 -0
- package/resources/hris/company/company.js.map +1 -1
- package/resources/hris/company/company.mjs +5 -0
- package/resources/hris/company/company.mjs.map +1 -1
- package/resources/hris/company/pay-statement-item/pay-statement-item.d.ts +8 -0
- package/resources/hris/company/pay-statement-item/pay-statement-item.d.ts.map +1 -1
- package/resources/hris/company/pay-statement-item/pay-statement-item.js.map +1 -1
- package/resources/hris/company/pay-statement-item/pay-statement-item.mjs.map +1 -1
- package/resources/hris/company/pay-statement-item/rules.d.ts +30 -0
- package/resources/hris/company/pay-statement-item/rules.d.ts.map +1 -1
- package/resources/hris/company/pay-statement-item/rules.js +16 -0
- package/resources/hris/company/pay-statement-item/rules.js.map +1 -1
- package/resources/hris/company/pay-statement-item/rules.mjs +16 -0
- package/resources/hris/company/pay-statement-item/rules.mjs.map +1 -1
- package/resources/hris/directory.d.ts +16 -8
- package/resources/hris/directory.d.ts.map +1 -1
- package/resources/hris/directory.js.map +1 -1
- package/resources/hris/directory.mjs.map +1 -1
- package/resources/hris/documents.d.ts +12 -0
- package/resources/hris/documents.d.ts.map +1 -1
- package/resources/hris/documents.js +7 -0
- package/resources/hris/documents.js.map +1 -1
- package/resources/hris/documents.mjs +7 -0
- package/resources/hris/documents.mjs.map +1 -1
- package/resources/hris/employments.d.ts +122 -103
- package/resources/hris/employments.d.ts.map +1 -1
- package/resources/hris/employments.js +10 -0
- package/resources/hris/employments.js.map +1 -1
- package/resources/hris/employments.mjs +10 -0
- package/resources/hris/employments.mjs.map +1 -1
- package/resources/hris/hris.d.ts +12 -12
- package/resources/hris/hris.d.ts.map +1 -1
- package/resources/hris/individuals.d.ts +73 -56
- package/resources/hris/individuals.d.ts.map +1 -1
- package/resources/hris/individuals.js.map +1 -1
- package/resources/hris/individuals.mjs.map +1 -1
- package/resources/hris/pay-statements.d.ts +17 -1
- package/resources/hris/pay-statements.d.ts.map +1 -1
- package/resources/hris/pay-statements.js +16 -0
- package/resources/hris/pay-statements.js.map +1 -1
- package/resources/hris/pay-statements.mjs +16 -0
- package/resources/hris/pay-statements.mjs.map +1 -1
- package/resources/hris/payments.d.ts +11 -0
- package/resources/hris/payments.d.ts.map +1 -1
- package/resources/hris/payments.js +11 -0
- package/resources/hris/payments.js.map +1 -1
- package/resources/hris/payments.mjs +11 -0
- package/resources/hris/payments.mjs.map +1 -1
- package/resources/request-forwarding.d.ts +10 -0
- package/resources/request-forwarding.d.ts.map +1 -1
- package/resources/request-forwarding.js +10 -0
- package/resources/request-forwarding.js.map +1 -1
- package/resources/request-forwarding.mjs +10 -0
- package/resources/request-forwarding.mjs.map +1 -1
- package/resources/sandbox/company.d.ts +23 -0
- package/resources/sandbox/company.d.ts.map +1 -1
- package/resources/sandbox/company.js +23 -0
- package/resources/sandbox/company.js.map +1 -1
- package/resources/sandbox/company.mjs +23 -0
- package/resources/sandbox/company.mjs.map +1 -1
- package/resources/sandbox/connections/accounts.d.ts +17 -0
- package/resources/sandbox/connections/accounts.d.ts.map +1 -1
- package/resources/sandbox/connections/accounts.js +9 -0
- package/resources/sandbox/connections/accounts.js.map +1 -1
- package/resources/sandbox/connections/accounts.mjs +9 -0
- package/resources/sandbox/connections/accounts.mjs.map +1 -1
- package/resources/sandbox/connections/connections.d.ts +7 -0
- package/resources/sandbox/connections/connections.d.ts.map +1 -1
- package/resources/sandbox/connections/connections.js +7 -0
- package/resources/sandbox/connections/connections.js.map +1 -1
- package/resources/sandbox/connections/connections.mjs +7 -0
- package/resources/sandbox/connections/connections.mjs.map +1 -1
- package/resources/sandbox/directory.d.ts +7 -0
- package/resources/sandbox/directory.d.ts.map +1 -1
- package/resources/sandbox/directory.js.map +1 -1
- package/resources/sandbox/directory.mjs.map +1 -1
- package/resources/sandbox/employment.d.ts +7 -0
- package/resources/sandbox/employment.d.ts.map +1 -1
- package/resources/sandbox/employment.js.map +1 -1
- package/resources/sandbox/employment.mjs.map +1 -1
- package/resources/sandbox/individual.d.ts +7 -0
- package/resources/sandbox/individual.d.ts.map +1 -1
- package/resources/sandbox/individual.js.map +1 -1
- package/resources/sandbox/individual.mjs.map +1 -1
- package/resources/sandbox/jobs/configuration.d.ts +15 -0
- package/resources/sandbox/jobs/configuration.d.ts.map +1 -1
- package/resources/sandbox/jobs/configuration.js +15 -0
- package/resources/sandbox/jobs/configuration.js.map +1 -1
- package/resources/sandbox/jobs/configuration.mjs +15 -0
- package/resources/sandbox/jobs/configuration.mjs.map +1 -1
- package/resources/sandbox/jobs/jobs.d.ts +7 -0
- package/resources/sandbox/jobs/jobs.d.ts.map +1 -1
- package/resources/sandbox/jobs/jobs.js +7 -0
- package/resources/sandbox/jobs/jobs.js.map +1 -1
- package/resources/sandbox/jobs/jobs.mjs +7 -0
- package/resources/sandbox/jobs/jobs.mjs.map +1 -1
- package/resources/sandbox/payment.d.ts +20 -1
- package/resources/sandbox/payment.d.ts.map +1 -1
- package/resources/sandbox/payment.js.map +1 -1
- package/resources/sandbox/payment.mjs.map +1 -1
- package/resources/shared.d.ts +4 -4
- package/resources/shared.d.ts.map +1 -1
- package/src/_shims/auto/runtime-bun.ts +1 -1
- package/src/_shims/auto/runtime-node.ts +1 -1
- package/src/_shims/auto/runtime.ts +1 -1
- package/src/_shims/auto/types-node.ts +1 -1
- package/src/_shims/bun-runtime.ts +2 -2
- package/src/_shims/index.d.ts +3 -3
- package/src/_shims/index.mjs +1 -1
- package/src/_shims/node-runtime.ts +3 -3
- package/src/_shims/registry.ts +1 -1
- package/src/_shims/web-runtime.ts +3 -3
- package/src/core.ts +5 -5
- package/src/error.ts +1 -1
- package/src/index.ts +20 -20
- package/src/internal/qs/formats.ts +1 -1
- package/src/internal/qs/index.ts +3 -3
- package/src/internal/qs/stringify.ts +3 -3
- package/src/internal/qs/utils.ts +2 -2
- package/src/pagination.ts +3 -3
- package/src/resource.ts +1 -1
- package/src/resources/access-tokens.ts +10 -2
- package/src/resources/account.ts +3 -3
- package/src/resources/connect/connect.ts +3 -3
- package/src/resources/connect/index.ts +2 -2
- package/src/resources/connect/sessions.ts +2 -2
- package/src/resources/connect.ts +1 -1
- package/src/resources/hris/benefits/benefits.ts +91 -8
- package/src/resources/hris/benefits/index.ts +2 -2
- package/src/resources/hris/benefits/individuals.ts +40 -5
- package/src/resources/hris/benefits.ts +1 -1
- package/src/resources/hris/company/company.ts +20 -15
- package/src/resources/hris/company/index.ts +2 -2
- package/src/resources/hris/company/pay-statement-item/index.ts +2 -2
- package/src/resources/hris/company/pay-statement-item/pay-statement-item.ts +14 -6
- package/src/resources/hris/company/pay-statement-item/rules.ts +34 -4
- package/src/resources/hris/company/pay-statement-item.ts +1 -1
- package/src/resources/hris/company.ts +1 -1
- package/src/resources/hris/directory.ts +20 -12
- package/src/resources/hris/documents.ts +16 -4
- package/src/resources/hris/employments.ts +143 -119
- package/src/resources/hris/hris.ts +31 -31
- package/src/resources/hris/index.ts +9 -9
- package/src/resources/hris/individuals.ts +101 -79
- package/src/resources/hris/pay-statements.ts +23 -7
- package/src/resources/hris/payments.ts +15 -4
- package/src/resources/hris.ts +1 -1
- package/src/resources/index.ts +11 -11
- package/src/resources/jobs/automated.ts +3 -3
- package/src/resources/jobs/index.ts +3 -3
- package/src/resources/jobs/jobs.ts +5 -5
- package/src/resources/jobs/manual.ts +2 -2
- package/src/resources/jobs.ts +1 -1
- package/src/resources/payroll/index.ts +2 -2
- package/src/resources/payroll/pay-groups.ts +4 -4
- package/src/resources/payroll/payroll.ts +3 -3
- package/src/resources/payroll.ts +1 -1
- package/src/resources/providers.ts +4 -4
- package/src/resources/request-forwarding.ts +12 -2
- package/src/resources/sandbox/company.ts +26 -3
- package/src/resources/sandbox/connections/accounts.ts +21 -4
- package/src/resources/sandbox/connections/connections.ts +11 -4
- package/src/resources/sandbox/connections/index.ts +2 -2
- package/src/resources/sandbox/connections.ts +1 -1
- package/src/resources/sandbox/directory.ts +11 -4
- package/src/resources/sandbox/employment.ts +11 -4
- package/src/resources/sandbox/index.ts +8 -8
- package/src/resources/sandbox/individual.ts +11 -4
- package/src/resources/sandbox/jobs/configuration.ts +17 -2
- package/src/resources/sandbox/jobs/index.ts +2 -2
- package/src/resources/sandbox/jobs/jobs.ts +11 -4
- package/src/resources/sandbox/jobs.ts +1 -1
- package/src/resources/sandbox/payment.ts +25 -6
- package/src/resources/sandbox/sandbox.ts +15 -15
- package/src/resources/sandbox.ts +1 -1
- package/src/resources/shared.ts +4 -4
- package/src/resources/webhooks.ts +4 -4
- package/src/resources.ts +1 -1
- package/src/shims/node.ts +3 -3
- package/src/shims/web.ts +3 -3
- package/src/uploads.ts +4 -4
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from
|
|
4
|
-
import { isRequestOptions } from
|
|
5
|
-
import * as Core from
|
|
6
|
-
import * as Shared from
|
|
3
|
+
import { APIResource } from "../../resource.js";
|
|
4
|
+
import { isRequestOptions } from "../../core.js";
|
|
5
|
+
import * as Core from "../../core.js";
|
|
6
|
+
import * as Shared from "../shared.js";
|
|
7
7
|
|
|
8
8
|
export class Documents extends APIResource {
|
|
9
9
|
/**
|
|
10
10
|
* **Beta:** This endpoint is in beta and may change. Retrieve a list of
|
|
11
11
|
* company-wide documents.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const documents = await client.hris.documents.list();
|
|
16
|
+
* ```
|
|
12
17
|
*/
|
|
13
18
|
list(query?: DocumentListParams, options?: Core.RequestOptions): Core.APIPromise<DocumentListResponse>;
|
|
14
19
|
list(options?: Core.RequestOptions): Core.APIPromise<DocumentListResponse>;
|
|
@@ -25,6 +30,13 @@ export class Documents extends APIResource {
|
|
|
25
30
|
/**
|
|
26
31
|
* **Beta:** This endpoint is in beta and may change. Retrieve details of a
|
|
27
32
|
* specific document by its ID.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```ts
|
|
36
|
+
* const response = await client.hris.documents.retreive(
|
|
37
|
+
* 'document_id',
|
|
38
|
+
* );
|
|
39
|
+
* ```
|
|
28
40
|
*/
|
|
29
41
|
retreive(documentId: string, options?: Core.RequestOptions): Core.APIPromise<DocumentRetreiveResponse> {
|
|
30
42
|
return this._client.get(`/employer/documents/${documentId}`, options);
|
|
@@ -1,13 +1,23 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from
|
|
4
|
-
import * as Core from
|
|
5
|
-
import * as HRISAPI from
|
|
6
|
-
import { ResponsesPage } from
|
|
3
|
+
import { APIResource } from "../../resource.js";
|
|
4
|
+
import * as Core from "../../core.js";
|
|
5
|
+
import * as HRISAPI from "./hris.js";
|
|
6
|
+
import { ResponsesPage } from "../../pagination.js";
|
|
7
7
|
|
|
8
8
|
export class Employments extends APIResource {
|
|
9
9
|
/**
|
|
10
10
|
* Read individual employment and income data
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* // Automatically fetches more pages as needed.
|
|
15
|
+
* for await (const employmentDataResponse of client.hris.employments.retrieveMany(
|
|
16
|
+
* { requests: [{ individual_id: 'individual_id' }] },
|
|
17
|
+
* )) {
|
|
18
|
+
* // ...
|
|
19
|
+
* }
|
|
20
|
+
* ```
|
|
11
21
|
*/
|
|
12
22
|
retrieveMany(
|
|
13
23
|
body: EmploymentRetrieveManyParams,
|
|
@@ -23,161 +33,175 @@ export class Employments extends APIResource {
|
|
|
23
33
|
|
|
24
34
|
export class EmploymentDataResponsesPage extends ResponsesPage<EmploymentDataResponse> {}
|
|
25
35
|
|
|
26
|
-
export
|
|
27
|
-
/**
|
|
28
|
-
* A stable Finch `id` (UUID v4) for an individual in the company.
|
|
29
|
-
*/
|
|
30
|
-
id?: string;
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Worker's compensation classification code for this employee
|
|
34
|
-
*/
|
|
35
|
-
class_code?: string | null;
|
|
36
|
+
export type EmploymentData = EmploymentData.UnionMember0 | EmploymentData.BatchError;
|
|
36
37
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* The department object.
|
|
45
|
-
*/
|
|
46
|
-
department?: EmploymentData.Department | null;
|
|
38
|
+
export namespace EmploymentData {
|
|
39
|
+
export interface UnionMember0 {
|
|
40
|
+
/**
|
|
41
|
+
* A stable Finch `id` (UUID v4) for an individual in the company.
|
|
42
|
+
*/
|
|
43
|
+
id: string;
|
|
47
44
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
45
|
+
/**
|
|
46
|
+
* Worker's compensation classification code for this employee
|
|
47
|
+
*/
|
|
48
|
+
class_code: string | null;
|
|
52
49
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
| 'active'
|
|
59
|
-
| 'deceased'
|
|
60
|
-
| 'leave'
|
|
61
|
-
| 'onboarding'
|
|
62
|
-
| 'prehire'
|
|
63
|
-
| 'retired'
|
|
64
|
-
| 'terminated'
|
|
65
|
-
| null;
|
|
66
|
-
|
|
67
|
-
end_date?: string | null;
|
|
50
|
+
/**
|
|
51
|
+
* Custom fields for the individual. These are fields which are defined by the
|
|
52
|
+
* employer in the system.
|
|
53
|
+
*/
|
|
54
|
+
custom_fields: Array<UnionMember0.CustomField> | null;
|
|
68
55
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
56
|
+
/**
|
|
57
|
+
* The department object.
|
|
58
|
+
*/
|
|
59
|
+
department: UnionMember0.Department | null;
|
|
73
60
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
*/
|
|
79
|
-
income?: HRISAPI.Income | null;
|
|
61
|
+
/**
|
|
62
|
+
* The employment object.
|
|
63
|
+
*/
|
|
64
|
+
employment: UnionMember0.Employment | null;
|
|
80
65
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
66
|
+
/**
|
|
67
|
+
* The detailed employment status of the individual. Available options: `active`,
|
|
68
|
+
* `deceased`, `leave`, `onboarding`, `prehire`, `retired`, `terminated`.
|
|
69
|
+
*/
|
|
70
|
+
employment_status:
|
|
71
|
+
| 'active'
|
|
72
|
+
| 'deceased'
|
|
73
|
+
| 'leave'
|
|
74
|
+
| 'onboarding'
|
|
75
|
+
| 'prehire'
|
|
76
|
+
| 'retired'
|
|
77
|
+
| 'terminated'
|
|
78
|
+
| null;
|
|
79
|
+
|
|
80
|
+
end_date: string | null;
|
|
85
81
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
82
|
+
/**
|
|
83
|
+
* The legal first name of the individual.
|
|
84
|
+
*/
|
|
85
|
+
first_name: string | null;
|
|
90
86
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
87
|
+
/**
|
|
88
|
+
* `true` if the individual an an active employee or contractor at the company.
|
|
89
|
+
*/
|
|
90
|
+
is_active: boolean | null;
|
|
95
91
|
|
|
96
|
-
|
|
92
|
+
/**
|
|
93
|
+
* The legal last name of the individual.
|
|
94
|
+
*/
|
|
95
|
+
last_name: string | null;
|
|
97
96
|
|
|
98
|
-
|
|
97
|
+
latest_rehire_date: string | null;
|
|
99
98
|
|
|
100
|
-
|
|
101
|
-
* The manager object representing the manager of the individual within the org.
|
|
102
|
-
*/
|
|
103
|
-
manager?: EmploymentData.Manager | null;
|
|
99
|
+
location: HRISAPI.Location | null;
|
|
104
100
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
101
|
+
/**
|
|
102
|
+
* The manager object representing the manager of the individual within the org.
|
|
103
|
+
*/
|
|
104
|
+
manager: UnionMember0.Manager | null;
|
|
109
105
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
106
|
+
/**
|
|
107
|
+
* The legal middle name of the individual.
|
|
108
|
+
*/
|
|
109
|
+
middle_name: string | null;
|
|
114
110
|
|
|
115
|
-
|
|
111
|
+
/**
|
|
112
|
+
* The source system's unique employment identifier for this individual
|
|
113
|
+
*/
|
|
114
|
+
source_id: string | null;
|
|
116
115
|
|
|
117
|
-
|
|
118
|
-
* The current title of the individual.
|
|
119
|
-
*/
|
|
120
|
-
title?: string | null;
|
|
116
|
+
start_date: string | null;
|
|
121
117
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
}
|
|
118
|
+
/**
|
|
119
|
+
* The current title of the individual.
|
|
120
|
+
*/
|
|
121
|
+
title: string | null;
|
|
127
122
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
123
|
+
/**
|
|
124
|
+
* @deprecated This field is deprecated in favour of `source_id`
|
|
125
|
+
*/
|
|
126
|
+
work_id: string | null;
|
|
131
127
|
|
|
132
|
-
|
|
133
|
-
|
|
128
|
+
/**
|
|
129
|
+
* The employee's income as reported by the provider. This may not always be
|
|
130
|
+
* annualized income, but may be in units of bi-weekly, semi-monthly, daily, etc,
|
|
131
|
+
* depending on what information the provider returns.
|
|
132
|
+
*/
|
|
133
|
+
income?: HRISAPI.Income | null;
|
|
134
134
|
|
|
135
|
-
/**
|
|
136
|
-
* The department object.
|
|
137
|
-
*/
|
|
138
|
-
export interface Department {
|
|
139
135
|
/**
|
|
140
|
-
* The
|
|
136
|
+
* The array of income history.
|
|
141
137
|
*/
|
|
142
|
-
|
|
138
|
+
income_history?: Array<HRISAPI.Income | null> | null;
|
|
143
139
|
}
|
|
144
140
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
141
|
+
export namespace UnionMember0 {
|
|
142
|
+
export interface CustomField {
|
|
143
|
+
name?: string;
|
|
144
|
+
|
|
145
|
+
value?: string | Array<unknown> | unknown | number | boolean | null;
|
|
146
|
+
}
|
|
147
|
+
|
|
149
148
|
/**
|
|
150
|
-
* The
|
|
151
|
-
* `part_time`, `intern`, `temp`, `seasonal` and `individual_contractor`.
|
|
149
|
+
* The department object.
|
|
152
150
|
*/
|
|
153
|
-
|
|
151
|
+
export interface Department {
|
|
152
|
+
/**
|
|
153
|
+
* The name of the department associated with the individual.
|
|
154
|
+
*/
|
|
155
|
+
name: string | null;
|
|
156
|
+
}
|
|
154
157
|
|
|
155
158
|
/**
|
|
156
|
-
* The
|
|
159
|
+
* The employment object.
|
|
157
160
|
*/
|
|
158
|
-
|
|
159
|
-
|
|
161
|
+
export interface Employment {
|
|
162
|
+
/**
|
|
163
|
+
* The secondary employment type of the individual. Options: `full_time`,
|
|
164
|
+
* `part_time`, `intern`, `temp`, `seasonal` and `individual_contractor`.
|
|
165
|
+
*/
|
|
166
|
+
subtype: 'full_time' | 'intern' | 'part_time' | 'temp' | 'seasonal' | 'individual_contractor' | null;
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* The main employment type of the individual.
|
|
170
|
+
*/
|
|
171
|
+
type: 'employee' | 'contractor' | null;
|
|
172
|
+
}
|
|
160
173
|
|
|
161
|
-
/**
|
|
162
|
-
* The manager object representing the manager of the individual within the org.
|
|
163
|
-
*/
|
|
164
|
-
export interface Manager {
|
|
165
174
|
/**
|
|
166
|
-
*
|
|
175
|
+
* The manager object representing the manager of the individual within the org.
|
|
167
176
|
*/
|
|
168
|
-
|
|
177
|
+
export interface Manager {
|
|
178
|
+
/**
|
|
179
|
+
* A stable Finch `id` (UUID v4) for an individual in the company.
|
|
180
|
+
*/
|
|
181
|
+
id: string;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export interface BatchError {
|
|
186
|
+
code: number;
|
|
187
|
+
|
|
188
|
+
message: string;
|
|
189
|
+
|
|
190
|
+
name: string;
|
|
191
|
+
|
|
192
|
+
finch_code?: string;
|
|
169
193
|
}
|
|
170
194
|
}
|
|
171
195
|
|
|
172
196
|
export interface EmploymentDataResponse {
|
|
173
|
-
body
|
|
197
|
+
body: EmploymentData;
|
|
174
198
|
|
|
175
|
-
code
|
|
199
|
+
code: number;
|
|
176
200
|
|
|
177
201
|
/**
|
|
178
202
|
* A stable Finch `id` (UUID v4) for an individual in the company.
|
|
179
203
|
*/
|
|
180
|
-
individual_id
|
|
204
|
+
individual_id: string;
|
|
181
205
|
}
|
|
182
206
|
|
|
183
207
|
export interface EmploymentRetrieveManyParams {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from
|
|
4
|
-
import * as DirectoryAPI from
|
|
3
|
+
import { APIResource } from "../../resource.js";
|
|
4
|
+
import * as DirectoryAPI from "./directory.js";
|
|
5
5
|
import {
|
|
6
6
|
Directory,
|
|
7
7
|
DirectoryListIndividualsParams,
|
|
8
8
|
DirectoryListParams,
|
|
9
9
|
IndividualInDirectory,
|
|
10
|
-
} from
|
|
11
|
-
import * as DocumentsAPI from
|
|
10
|
+
} from "./directory.js";
|
|
11
|
+
import * as DocumentsAPI from "./documents.js";
|
|
12
12
|
import {
|
|
13
13
|
DocumentListParams,
|
|
14
14
|
DocumentListResponse,
|
|
@@ -17,24 +17,24 @@ import {
|
|
|
17
17
|
Documents,
|
|
18
18
|
W42005,
|
|
19
19
|
W42020,
|
|
20
|
-
} from
|
|
21
|
-
import * as EmploymentsAPI from
|
|
20
|
+
} from "./documents.js";
|
|
21
|
+
import * as EmploymentsAPI from "./employments.js";
|
|
22
22
|
import {
|
|
23
23
|
EmploymentData,
|
|
24
24
|
EmploymentDataResponse,
|
|
25
25
|
EmploymentDataResponsesPage,
|
|
26
26
|
EmploymentRetrieveManyParams,
|
|
27
27
|
Employments,
|
|
28
|
-
} from
|
|
29
|
-
import * as IndividualsAPI from
|
|
28
|
+
} from "./employments.js";
|
|
29
|
+
import * as IndividualsAPI from "./individuals.js";
|
|
30
30
|
import {
|
|
31
31
|
Individual,
|
|
32
32
|
IndividualResponse,
|
|
33
33
|
IndividualResponsesPage,
|
|
34
34
|
IndividualRetrieveManyParams,
|
|
35
35
|
Individuals,
|
|
36
|
-
} from
|
|
37
|
-
import * as PayStatementsAPI from
|
|
36
|
+
} from "./individuals.js";
|
|
37
|
+
import * as PayStatementsAPI from "./pay-statements.js";
|
|
38
38
|
import {
|
|
39
39
|
PayStatement,
|
|
40
40
|
PayStatementResponse,
|
|
@@ -42,10 +42,10 @@ import {
|
|
|
42
42
|
PayStatementResponsesPage,
|
|
43
43
|
PayStatementRetrieveManyParams,
|
|
44
44
|
PayStatements,
|
|
45
|
-
} from
|
|
46
|
-
import * as PaymentsAPI from
|
|
47
|
-
import { Payment, PaymentListParams, Payments, PaymentsSinglePage } from
|
|
48
|
-
import * as BenefitsAPI from
|
|
45
|
+
} from "./pay-statements.js";
|
|
46
|
+
import * as PaymentsAPI from "./payments.js";
|
|
47
|
+
import { Payment, PaymentListParams, Payments, PaymentsSinglePage } from "./payments.js";
|
|
48
|
+
import * as BenefitsAPI from "./benefits/benefits.js";
|
|
49
49
|
import {
|
|
50
50
|
BenefitContribution,
|
|
51
51
|
BenefitCreateParams,
|
|
@@ -64,9 +64,9 @@ import {
|
|
|
64
64
|
SupportPerBenefitType,
|
|
65
65
|
SupportedBenefit,
|
|
66
66
|
UpdateCompanyBenefitResponse,
|
|
67
|
-
} from
|
|
68
|
-
import * as CompanyAPI from
|
|
69
|
-
import { Company, CompanyResource } from
|
|
67
|
+
} from "./benefits/benefits.js";
|
|
68
|
+
import * as CompanyAPI from "./company/company.js";
|
|
69
|
+
import { Company, CompanyResource } from "./company/company.js";
|
|
70
70
|
|
|
71
71
|
export class HRIS extends APIResource {
|
|
72
72
|
company: CompanyAPI.CompanyResource = new CompanyAPI.CompanyResource(this._client);
|
|
@@ -88,23 +88,23 @@ export interface Income {
|
|
|
88
88
|
/**
|
|
89
89
|
* The income amount in cents.
|
|
90
90
|
*/
|
|
91
|
-
amount
|
|
91
|
+
amount: number | null;
|
|
92
92
|
|
|
93
93
|
/**
|
|
94
94
|
* The currency code.
|
|
95
95
|
*/
|
|
96
|
-
currency
|
|
96
|
+
currency: string | null;
|
|
97
97
|
|
|
98
98
|
/**
|
|
99
99
|
* The date the income amount went into effect.
|
|
100
100
|
*/
|
|
101
|
-
effective_date
|
|
101
|
+
effective_date: string | null;
|
|
102
102
|
|
|
103
103
|
/**
|
|
104
104
|
* The income unit of payment. Options: `yearly`, `quarterly`, `monthly`,
|
|
105
105
|
* `semi_monthly`, `bi_weekly`, `weekly`, `daily`, `hourly`, and `fixed`.
|
|
106
106
|
*/
|
|
107
|
-
unit
|
|
107
|
+
unit:
|
|
108
108
|
| 'yearly'
|
|
109
109
|
| 'quarterly'
|
|
110
110
|
| 'monthly'
|
|
@@ -121,36 +121,36 @@ export interface Location {
|
|
|
121
121
|
/**
|
|
122
122
|
* City, district, suburb, town, or village.
|
|
123
123
|
*/
|
|
124
|
-
city
|
|
124
|
+
city: string | null;
|
|
125
125
|
|
|
126
126
|
/**
|
|
127
127
|
* The 2-letter ISO 3166 country code.
|
|
128
128
|
*/
|
|
129
|
-
country
|
|
129
|
+
country: string | null;
|
|
130
130
|
|
|
131
131
|
/**
|
|
132
132
|
* Street address or PO box.
|
|
133
133
|
*/
|
|
134
|
-
line1
|
|
134
|
+
line1: string | null;
|
|
135
135
|
|
|
136
136
|
/**
|
|
137
137
|
* Apartment, suite, unit, or building.
|
|
138
138
|
*/
|
|
139
|
-
line2
|
|
140
|
-
|
|
141
|
-
name?: string | null;
|
|
139
|
+
line2: string | null;
|
|
142
140
|
|
|
143
141
|
/**
|
|
144
142
|
* The postal code or zip code.
|
|
145
143
|
*/
|
|
146
|
-
postal_code
|
|
147
|
-
|
|
148
|
-
source_id?: string | null;
|
|
144
|
+
postal_code: string | null;
|
|
149
145
|
|
|
150
146
|
/**
|
|
151
147
|
* The state code.
|
|
152
148
|
*/
|
|
153
|
-
state
|
|
149
|
+
state: string | null;
|
|
150
|
+
|
|
151
|
+
name?: string | null;
|
|
152
|
+
|
|
153
|
+
source_id?: string | null;
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
export interface Money {
|
|
@@ -18,14 +18,14 @@ export {
|
|
|
18
18
|
type BenfitContribution,
|
|
19
19
|
type BenefitCreateParams,
|
|
20
20
|
type BenefitUpdateParams,
|
|
21
|
-
} from
|
|
22
|
-
export { CompanyResource, type Company } from
|
|
21
|
+
} from "./benefits/index.js";
|
|
22
|
+
export { CompanyResource, type Company } from "./company/index.js";
|
|
23
23
|
export {
|
|
24
24
|
Directory,
|
|
25
25
|
type IndividualInDirectory,
|
|
26
26
|
type DirectoryListParams,
|
|
27
27
|
type DirectoryListIndividualsParams,
|
|
28
|
-
} from
|
|
28
|
+
} from "./directory.js";
|
|
29
29
|
export {
|
|
30
30
|
Documents,
|
|
31
31
|
type DocumentResponse,
|
|
@@ -34,22 +34,22 @@ export {
|
|
|
34
34
|
type DocumentListResponse,
|
|
35
35
|
type DocumentRetreiveResponse,
|
|
36
36
|
type DocumentListParams,
|
|
37
|
-
} from
|
|
37
|
+
} from "./documents.js";
|
|
38
38
|
export {
|
|
39
39
|
EmploymentDataResponsesPage,
|
|
40
40
|
Employments,
|
|
41
41
|
type EmploymentData,
|
|
42
42
|
type EmploymentDataResponse,
|
|
43
43
|
type EmploymentRetrieveManyParams,
|
|
44
|
-
} from
|
|
45
|
-
export { HRIS, type Income, type Location, type Money } from
|
|
44
|
+
} from "./employments.js";
|
|
45
|
+
export { HRIS, type Income, type Location, type Money } from "./hris.js";
|
|
46
46
|
export {
|
|
47
47
|
IndividualResponsesPage,
|
|
48
48
|
Individuals,
|
|
49
49
|
type Individual,
|
|
50
50
|
type IndividualResponse,
|
|
51
51
|
type IndividualRetrieveManyParams,
|
|
52
|
-
} from
|
|
52
|
+
} from "./individuals.js";
|
|
53
53
|
export {
|
|
54
54
|
PayStatementResponsesPage,
|
|
55
55
|
PayStatements,
|
|
@@ -57,5 +57,5 @@ export {
|
|
|
57
57
|
type PayStatementResponse,
|
|
58
58
|
type PayStatementResponseBody,
|
|
59
59
|
type PayStatementRetrieveManyParams,
|
|
60
|
-
} from
|
|
61
|
-
export { PaymentsSinglePage, Payments, type Payment, type PaymentListParams } from
|
|
60
|
+
} from "./pay-statements.js";
|
|
61
|
+
export { PaymentsSinglePage, Payments, type Payment, type PaymentListParams } from "./payments.js";
|