@tryfinch/finch-api 5.9.0 → 5.10.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 +25 -0
- package/README.md +1 -1
- package/core.d.ts +0 -10
- package/core.d.ts.map +1 -1
- package/core.js +1 -13
- package/core.js.map +1 -1
- package/core.mjs +0 -11
- package/core.mjs.map +1 -1
- package/index.d.mts +3 -1
- package/index.d.ts +3 -1
- package/index.d.ts.map +1 -1
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/index.mjs +1 -1
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resource.d.ts +1 -7
- package/resource.d.ts.map +1 -1
- package/resource.js +1 -7
- package/resource.js.map +1 -1
- package/resource.mjs +1 -7
- package/resource.mjs.map +1 -1
- package/resources/account.d.ts +4 -0
- package/resources/account.d.ts.map +1 -1
- package/resources/account.js +2 -2
- package/resources/account.js.map +1 -1
- package/resources/account.mjs +2 -2
- package/resources/account.mjs.map +1 -1
- package/resources/hris/benefits/benefits.d.ts +65 -1
- package/resources/hris/benefits/benefits.d.ts.map +1 -1
- package/resources/hris/benefits/benefits.js +6 -6
- package/resources/hris/benefits/benefits.js.map +1 -1
- package/resources/hris/benefits/benefits.mjs +6 -6
- package/resources/hris/benefits/benefits.mjs.map +1 -1
- package/resources/hris/benefits/index.d.ts +1 -1
- package/resources/hris/benefits/index.d.ts.map +1 -1
- package/resources/hris/benefits/index.js.map +1 -1
- package/resources/hris/benefits/index.mjs.map +1 -1
- package/resources/hris/benefits/individuals.d.ts.map +1 -1
- package/resources/hris/benefits/individuals.js +4 -15
- package/resources/hris/benefits/individuals.js.map +1 -1
- package/resources/hris/benefits/individuals.mjs +4 -15
- package/resources/hris/benefits/individuals.mjs.map +1 -1
- package/resources/hris/company.js +1 -1
- package/resources/hris/company.js.map +1 -1
- package/resources/hris/company.mjs +1 -1
- package/resources/hris/company.mjs.map +1 -1
- package/resources/hris/directory.js +1 -1
- package/resources/hris/directory.js.map +1 -1
- package/resources/hris/directory.mjs +1 -1
- package/resources/hris/directory.mjs.map +1 -1
- package/resources/hris/employments.d.ts +9 -0
- package/resources/hris/employments.d.ts.map +1 -1
- package/resources/hris/employments.js +1 -1
- package/resources/hris/employments.js.map +1 -1
- package/resources/hris/employments.mjs +1 -1
- package/resources/hris/employments.mjs.map +1 -1
- package/resources/hris/hris.d.ts +3 -0
- package/resources/hris/hris.d.ts.map +1 -1
- package/resources/hris/hris.js +7 -7
- package/resources/hris/hris.js.map +1 -1
- package/resources/hris/hris.mjs +7 -7
- package/resources/hris/hris.mjs.map +1 -1
- package/resources/hris/index.d.ts +1 -1
- package/resources/hris/index.d.ts.map +1 -1
- package/resources/hris/index.js.map +1 -1
- package/resources/hris/index.mjs.map +1 -1
- package/resources/hris/individuals.d.ts +4 -0
- package/resources/hris/individuals.d.ts.map +1 -1
- package/resources/hris/individuals.js +1 -1
- package/resources/hris/individuals.js.map +1 -1
- package/resources/hris/individuals.mjs +1 -1
- package/resources/hris/individuals.mjs.map +1 -1
- package/resources/hris/pay-statements.js +1 -1
- package/resources/hris/pay-statements.js.map +1 -1
- package/resources/hris/pay-statements.mjs +1 -1
- package/resources/hris/pay-statements.mjs.map +1 -1
- package/resources/hris/payments.js +1 -1
- package/resources/hris/payments.js.map +1 -1
- package/resources/hris/payments.mjs +1 -1
- package/resources/hris/payments.mjs.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +15 -0
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/providers.d.ts +244 -2
- package/resources/providers.d.ts.map +1 -1
- package/resources/providers.js +1 -1
- package/resources/providers.js.map +1 -1
- package/resources/providers.mjs +1 -1
- package/resources/providers.mjs.map +1 -1
- package/resources/request-forwarding.d.ts +7 -4
- package/resources/request-forwarding.d.ts.map +1 -1
- package/resources/request-forwarding.js +5 -2
- package/resources/request-forwarding.js.map +1 -1
- package/resources/request-forwarding.mjs +5 -2
- package/resources/request-forwarding.mjs.map +1 -1
- package/resources/shared.d.ts +53 -0
- package/resources/shared.d.ts.map +1 -0
- package/resources/shared.js +4 -0
- package/resources/shared.js.map +1 -0
- package/resources/shared.mjs +3 -0
- package/resources/shared.mjs.map +1 -0
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js +2 -2
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +2 -2
- package/resources/webhooks.mjs.map +1 -1
- package/src/core.ts +0 -21
- package/src/index.ts +4 -1
- package/src/resource.ts +3 -16
- package/src/resources/account.ts +7 -2
- package/src/resources/hris/benefits/benefits.ts +94 -7
- package/src/resources/hris/benefits/index.ts +3 -0
- package/src/resources/hris/benefits/individuals.ts +16 -15
- package/src/resources/hris/company.ts +1 -1
- package/src/resources/hris/directory.ts +1 -1
- package/src/resources/hris/employments.ts +13 -1
- package/src/resources/hris/hris.ts +10 -7
- package/src/resources/hris/index.ts +3 -0
- package/src/resources/hris/individuals.ts +15 -1
- package/src/resources/hris/pay-statements.ts +1 -1
- package/src/resources/hris/payments.ts +1 -1
- package/src/resources/index.ts +1 -0
- package/src/resources/providers.ts +385 -3
- package/src/resources/request-forwarding.ts +8 -5
- package/src/resources/shared.ts +62 -0
- package/src/resources/webhooks.ts +2 -2
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
|
@@ -18,7 +18,7 @@ export class Employments extends APIResource {
|
|
|
18
18
|
body: EmploymentRetrieveManyParams,
|
|
19
19
|
options?: Core.RequestOptions,
|
|
20
20
|
): Core.PagePromise<EmploymentDataResponsesPage, EmploymentDataResponse> {
|
|
21
|
-
return this.getAPIList('/employer/employment', EmploymentDataResponsesPage, {
|
|
21
|
+
return this._client.getAPIList('/employer/employment', EmploymentDataResponsesPage, {
|
|
22
22
|
body,
|
|
23
23
|
method: 'post',
|
|
24
24
|
...options,
|
|
@@ -39,6 +39,12 @@ export interface EmploymentData {
|
|
|
39
39
|
*/
|
|
40
40
|
class_code?: string | null;
|
|
41
41
|
|
|
42
|
+
/**
|
|
43
|
+
* Custom fields for the individual. These are fields which are defined by the
|
|
44
|
+
* employer in the system.
|
|
45
|
+
*/
|
|
46
|
+
custom_fields?: Array<EmploymentData.CustomField> | null;
|
|
47
|
+
|
|
42
48
|
/**
|
|
43
49
|
* The department object.
|
|
44
50
|
*/
|
|
@@ -122,6 +128,12 @@ export interface EmploymentData {
|
|
|
122
128
|
}
|
|
123
129
|
|
|
124
130
|
export namespace EmploymentData {
|
|
131
|
+
export interface CustomField {
|
|
132
|
+
name?: string;
|
|
133
|
+
|
|
134
|
+
value?: unknown;
|
|
135
|
+
}
|
|
136
|
+
|
|
125
137
|
/**
|
|
126
138
|
* The department object.
|
|
127
139
|
*/
|
|
@@ -11,13 +11,13 @@ import * as PaymentsAPI from "./payments";
|
|
|
11
11
|
import * as BenefitsAPI from "./benefits/benefits";
|
|
12
12
|
|
|
13
13
|
export class HRIS extends APIResource {
|
|
14
|
-
company: CompanyAPI.CompanyResource = new CompanyAPI.CompanyResource(this.
|
|
15
|
-
directory: DirectoryAPI.Directory = new DirectoryAPI.Directory(this.
|
|
16
|
-
individuals: IndividualsAPI.Individuals = new IndividualsAPI.Individuals(this.
|
|
17
|
-
employments: EmploymentsAPI.Employments = new EmploymentsAPI.Employments(this.
|
|
18
|
-
payments: PaymentsAPI.Payments = new PaymentsAPI.Payments(this.
|
|
19
|
-
payStatements: PayStatementsAPI.PayStatements = new PayStatementsAPI.PayStatements(this.
|
|
20
|
-
benefits: BenefitsAPI.Benefits = new BenefitsAPI.Benefits(this.
|
|
14
|
+
company: CompanyAPI.CompanyResource = new CompanyAPI.CompanyResource(this._client);
|
|
15
|
+
directory: DirectoryAPI.Directory = new DirectoryAPI.Directory(this._client);
|
|
16
|
+
individuals: IndividualsAPI.Individuals = new IndividualsAPI.Individuals(this._client);
|
|
17
|
+
employments: EmploymentsAPI.Employments = new EmploymentsAPI.Employments(this._client);
|
|
18
|
+
payments: PaymentsAPI.Payments = new PaymentsAPI.Payments(this._client);
|
|
19
|
+
payStatements: PayStatementsAPI.PayStatements = new PayStatementsAPI.PayStatements(this._client);
|
|
20
|
+
benefits: BenefitsAPI.Benefits = new BenefitsAPI.Benefits(this._client);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
/**
|
|
@@ -148,14 +148,17 @@ export namespace HRIS {
|
|
|
148
148
|
export import PayStatementRetrieveManyParams = PayStatementsAPI.PayStatementRetrieveManyParams;
|
|
149
149
|
export import Benefits = BenefitsAPI.Benefits;
|
|
150
150
|
export import BenefitContribution = BenefitsAPI.BenefitContribution;
|
|
151
|
+
export import BenefitFeaturesAndOperations = BenefitsAPI.BenefitFeaturesAndOperations;
|
|
151
152
|
export import BenefitFrequency = BenefitsAPI.BenefitFrequency;
|
|
152
153
|
export import BenefitType = BenefitsAPI.BenefitType;
|
|
154
|
+
export import BenefitsSupport = BenefitsAPI.BenefitsSupport;
|
|
153
155
|
/**
|
|
154
156
|
* @deprecated use `BenefitContribution` instead
|
|
155
157
|
*/
|
|
156
158
|
export import BenfitContribution = BenefitsAPI.BenfitContribution;
|
|
157
159
|
export import CompanyBenefit = BenefitsAPI.CompanyBenefit;
|
|
158
160
|
export import CreateCompanyBenefitsResponse = BenefitsAPI.CreateCompanyBenefitsResponse;
|
|
161
|
+
export import SupportPerBenefitType = BenefitsAPI.SupportPerBenefitType;
|
|
159
162
|
export import SupportedBenefit = BenefitsAPI.SupportedBenefit;
|
|
160
163
|
export import UpdateCompanyBenefitResponse = BenefitsAPI.UpdateCompanyBenefitResponse;
|
|
161
164
|
export import CompanyBenefitsSinglePage = BenefitsAPI.CompanyBenefitsSinglePage;
|
|
@@ -2,11 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
export {
|
|
4
4
|
BenefitContribution,
|
|
5
|
+
BenefitFeaturesAndOperations,
|
|
5
6
|
BenefitFrequency,
|
|
6
7
|
BenefitType,
|
|
8
|
+
BenefitsSupport,
|
|
7
9
|
BenfitContribution,
|
|
8
10
|
CompanyBenefit,
|
|
9
11
|
CreateCompanyBenefitsResponse,
|
|
12
|
+
SupportPerBenefitType,
|
|
10
13
|
SupportedBenefit,
|
|
11
14
|
UpdateCompanyBenefitResponse,
|
|
12
15
|
BenefitCreateParams,
|
|
@@ -23,7 +23,7 @@ export class Individuals extends APIResource {
|
|
|
23
23
|
if (isRequestOptions(body)) {
|
|
24
24
|
return this.retrieveMany({}, body);
|
|
25
25
|
}
|
|
26
|
-
return this.getAPIList('/employer/individual', IndividualResponsesPage, {
|
|
26
|
+
return this._client.getAPIList('/employer/individual', IndividualResponsesPage, {
|
|
27
27
|
body,
|
|
28
28
|
method: 'post',
|
|
29
29
|
...options,
|
|
@@ -43,6 +43,20 @@ export interface Individual {
|
|
|
43
43
|
|
|
44
44
|
emails?: Array<Individual.Email> | null;
|
|
45
45
|
|
|
46
|
+
/**
|
|
47
|
+
* The EEOC-defined ethnicity of the individual.
|
|
48
|
+
*/
|
|
49
|
+
ethnicity?:
|
|
50
|
+
| 'asian'
|
|
51
|
+
| 'white'
|
|
52
|
+
| 'black_or_african_american'
|
|
53
|
+
| 'native_hawaiian_or_pacific_islander'
|
|
54
|
+
| 'american_indian_or_alaska_native'
|
|
55
|
+
| 'hispanic_or_latino'
|
|
56
|
+
| 'two_or_more_races'
|
|
57
|
+
| 'decline_to_specify'
|
|
58
|
+
| null;
|
|
59
|
+
|
|
46
60
|
/**
|
|
47
61
|
* The legal first name of the individual.
|
|
48
62
|
*/
|
|
@@ -18,7 +18,7 @@ export class PayStatements extends APIResource {
|
|
|
18
18
|
body: PayStatementRetrieveManyParams,
|
|
19
19
|
options?: Core.RequestOptions,
|
|
20
20
|
): Core.PagePromise<PayStatementResponsesPage, PayStatementResponse> {
|
|
21
|
-
return this.getAPIList('/employer/pay-statement', PayStatementResponsesPage, {
|
|
21
|
+
return this._client.getAPIList('/employer/pay-statement', PayStatementResponsesPage, {
|
|
22
22
|
body,
|
|
23
23
|
method: 'post',
|
|
24
24
|
...options,
|
|
@@ -14,7 +14,7 @@ export class Payments extends APIResource {
|
|
|
14
14
|
query: PaymentListParams,
|
|
15
15
|
options?: Core.RequestOptions,
|
|
16
16
|
): Core.PagePromise<PaymentsSinglePage, Payment> {
|
|
17
|
-
return this.getAPIList('/employer/payment', PaymentsSinglePage, { query, ...options });
|
|
17
|
+
return this._client.getAPIList('/employer/payment', PaymentsSinglePage, { query, ...options });
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
|
package/src/resources/index.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless.
|
|
2
2
|
|
|
3
|
+
export * from './shared';
|
|
3
4
|
export { DisconnectResponse, Introspection, Account } from './account';
|
|
4
5
|
export { Income, Location, Money, Paging, HRIS } from './hris/hris';
|
|
5
6
|
export { Provider, ProvidersSinglePage, Providers } from './providers';
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import * as Core from "../core";
|
|
4
4
|
import { APIResource } from "../resource";
|
|
5
5
|
import * as ProvidersAPI from "./providers";
|
|
6
|
+
import * as BenefitsAPI from "./hris/benefits/benefits";
|
|
6
7
|
import { SinglePage } from "../pagination";
|
|
7
8
|
|
|
8
9
|
export class Providers extends APIResource {
|
|
@@ -10,7 +11,7 @@ export class Providers extends APIResource {
|
|
|
10
11
|
* Return details on all available payroll and HR systems.
|
|
11
12
|
*/
|
|
12
13
|
list(options?: Core.RequestOptions): Core.PagePromise<ProvidersSinglePage, Provider> {
|
|
13
|
-
return this.getAPIList('/providers', ProvidersSinglePage, options);
|
|
14
|
+
return this._client.getAPIList('/providers', ProvidersSinglePage, options);
|
|
14
15
|
}
|
|
15
16
|
}
|
|
16
17
|
|
|
@@ -22,6 +23,11 @@ export interface Provider {
|
|
|
22
23
|
*/
|
|
23
24
|
id?: string;
|
|
24
25
|
|
|
26
|
+
/**
|
|
27
|
+
* The list of authentication methods supported by the provider.
|
|
28
|
+
*/
|
|
29
|
+
authentication_methods?: Array<Provider.AuthenticationMethod>;
|
|
30
|
+
|
|
25
31
|
/**
|
|
26
32
|
* The display name of the payroll provider.
|
|
27
33
|
*/
|
|
@@ -38,8 +44,9 @@ export interface Provider {
|
|
|
38
44
|
logo?: string;
|
|
39
45
|
|
|
40
46
|
/**
|
|
41
|
-
* Whether the Finch integration with this provider uses the Assisted
|
|
42
|
-
* by default.
|
|
47
|
+
* [DEPRECATED] Whether the Finch integration with this provider uses the Assisted
|
|
48
|
+
* Connect Flow by default. This field is now deprecated. Please check for a `type`
|
|
49
|
+
* of `assisted` in the `authentication_methods` field instead.
|
|
43
50
|
*/
|
|
44
51
|
manual?: boolean;
|
|
45
52
|
|
|
@@ -59,6 +66,381 @@ export interface Provider {
|
|
|
59
66
|
products?: Array<string>;
|
|
60
67
|
}
|
|
61
68
|
|
|
69
|
+
export namespace Provider {
|
|
70
|
+
export interface AuthenticationMethod {
|
|
71
|
+
/**
|
|
72
|
+
* Each benefit type and their supported features. If the benefit type is not
|
|
73
|
+
* supported, the property will be null
|
|
74
|
+
*/
|
|
75
|
+
benefits_support?: BenefitsAPI.BenefitsSupport | null;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* The supported data fields returned by our HR and payroll endpoints
|
|
79
|
+
*/
|
|
80
|
+
supported_fields?: AuthenticationMethod.SupportedFields | null;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* The type of authentication method.
|
|
84
|
+
*/
|
|
85
|
+
type?: 'assisted' | 'credential' | 'api_token' | 'api_credential' | 'oauth';
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export namespace AuthenticationMethod {
|
|
89
|
+
/**
|
|
90
|
+
* The supported data fields returned by our HR and payroll endpoints
|
|
91
|
+
*/
|
|
92
|
+
export interface SupportedFields {
|
|
93
|
+
company?: SupportedFields.Company;
|
|
94
|
+
|
|
95
|
+
directory?: SupportedFields.Directory;
|
|
96
|
+
|
|
97
|
+
employment?: SupportedFields.Employment;
|
|
98
|
+
|
|
99
|
+
individual?: SupportedFields.Individual;
|
|
100
|
+
|
|
101
|
+
pay_statement?: SupportedFields.PayStatement;
|
|
102
|
+
|
|
103
|
+
payment?: SupportedFields.Payment;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export namespace SupportedFields {
|
|
107
|
+
export interface Company {
|
|
108
|
+
id?: boolean;
|
|
109
|
+
|
|
110
|
+
accounts?: Company.Accounts;
|
|
111
|
+
|
|
112
|
+
departments?: Company.Departments;
|
|
113
|
+
|
|
114
|
+
ein?: boolean;
|
|
115
|
+
|
|
116
|
+
entity?: Company.Entity;
|
|
117
|
+
|
|
118
|
+
legal_name?: boolean;
|
|
119
|
+
|
|
120
|
+
locations?: Company.Locations;
|
|
121
|
+
|
|
122
|
+
primary_email?: boolean;
|
|
123
|
+
|
|
124
|
+
primary_phone_number?: boolean;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export namespace Company {
|
|
128
|
+
export interface Accounts {
|
|
129
|
+
account_name?: boolean;
|
|
130
|
+
|
|
131
|
+
account_number?: boolean;
|
|
132
|
+
|
|
133
|
+
account_type?: boolean;
|
|
134
|
+
|
|
135
|
+
institution_name?: boolean;
|
|
136
|
+
|
|
137
|
+
routing_number?: boolean;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export interface Departments {
|
|
141
|
+
name?: boolean;
|
|
142
|
+
|
|
143
|
+
parent?: Departments.Parent;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export namespace Departments {
|
|
147
|
+
export interface Parent {
|
|
148
|
+
name?: boolean;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export interface Entity {
|
|
153
|
+
subtype?: boolean;
|
|
154
|
+
|
|
155
|
+
type?: boolean;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export interface Locations {
|
|
159
|
+
city?: boolean;
|
|
160
|
+
|
|
161
|
+
country?: boolean;
|
|
162
|
+
|
|
163
|
+
line1?: boolean;
|
|
164
|
+
|
|
165
|
+
line2?: boolean;
|
|
166
|
+
|
|
167
|
+
postal_code?: boolean;
|
|
168
|
+
|
|
169
|
+
state?: boolean;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
export interface Directory {
|
|
174
|
+
individuals?: Directory.Individuals;
|
|
175
|
+
|
|
176
|
+
paging?: Directory.Paging;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
export namespace Directory {
|
|
180
|
+
export interface Individuals {
|
|
181
|
+
id?: boolean;
|
|
182
|
+
|
|
183
|
+
department?: boolean;
|
|
184
|
+
|
|
185
|
+
first_name?: boolean;
|
|
186
|
+
|
|
187
|
+
is_active?: boolean;
|
|
188
|
+
|
|
189
|
+
last_name?: boolean;
|
|
190
|
+
|
|
191
|
+
manager?: Individuals.Manager;
|
|
192
|
+
|
|
193
|
+
middle_name?: boolean;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
export namespace Individuals {
|
|
197
|
+
export interface Manager {
|
|
198
|
+
id?: boolean;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
export interface Paging {
|
|
203
|
+
count?: boolean;
|
|
204
|
+
|
|
205
|
+
offset?: boolean;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
export interface Employment {
|
|
210
|
+
id?: boolean;
|
|
211
|
+
|
|
212
|
+
class_code?: boolean;
|
|
213
|
+
|
|
214
|
+
custom_fields?: boolean;
|
|
215
|
+
|
|
216
|
+
department?: Employment.Department;
|
|
217
|
+
|
|
218
|
+
employment?: Employment.Employment;
|
|
219
|
+
|
|
220
|
+
end_date?: boolean;
|
|
221
|
+
|
|
222
|
+
first_name?: boolean;
|
|
223
|
+
|
|
224
|
+
income?: Employment.Income;
|
|
225
|
+
|
|
226
|
+
income_history?: boolean;
|
|
227
|
+
|
|
228
|
+
is_active?: boolean;
|
|
229
|
+
|
|
230
|
+
last_name?: boolean;
|
|
231
|
+
|
|
232
|
+
location?: Employment.Location;
|
|
233
|
+
|
|
234
|
+
manager?: unknown;
|
|
235
|
+
|
|
236
|
+
middle_name?: boolean;
|
|
237
|
+
|
|
238
|
+
start_date?: boolean;
|
|
239
|
+
|
|
240
|
+
title?: boolean;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
export namespace Employment {
|
|
244
|
+
export interface Department {
|
|
245
|
+
name?: boolean;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
export interface Employment {
|
|
249
|
+
subtype?: boolean;
|
|
250
|
+
|
|
251
|
+
type?: boolean;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
export interface Income {
|
|
255
|
+
amount?: boolean;
|
|
256
|
+
|
|
257
|
+
currency?: boolean;
|
|
258
|
+
|
|
259
|
+
unit?: boolean;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
export interface Location {
|
|
263
|
+
city?: boolean;
|
|
264
|
+
|
|
265
|
+
country?: boolean;
|
|
266
|
+
|
|
267
|
+
line1?: boolean;
|
|
268
|
+
|
|
269
|
+
line2?: boolean;
|
|
270
|
+
|
|
271
|
+
postal_code?: boolean;
|
|
272
|
+
|
|
273
|
+
state?: boolean;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
export interface Individual {
|
|
278
|
+
id?: boolean;
|
|
279
|
+
|
|
280
|
+
dob?: boolean;
|
|
281
|
+
|
|
282
|
+
emails?: Individual.Emails;
|
|
283
|
+
|
|
284
|
+
ethnicity?: boolean;
|
|
285
|
+
|
|
286
|
+
first_name?: boolean;
|
|
287
|
+
|
|
288
|
+
gender?: boolean;
|
|
289
|
+
|
|
290
|
+
last_name?: boolean;
|
|
291
|
+
|
|
292
|
+
middle_name?: boolean;
|
|
293
|
+
|
|
294
|
+
phone_numbers?: Individual.PhoneNumbers;
|
|
295
|
+
|
|
296
|
+
preferred_name?: boolean;
|
|
297
|
+
|
|
298
|
+
residence?: Individual.Residence;
|
|
299
|
+
|
|
300
|
+
ssn?: boolean;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
export namespace Individual {
|
|
304
|
+
export interface Emails {
|
|
305
|
+
data?: boolean;
|
|
306
|
+
|
|
307
|
+
type?: boolean;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
export interface PhoneNumbers {
|
|
311
|
+
data?: boolean;
|
|
312
|
+
|
|
313
|
+
type?: boolean;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
export interface Residence {
|
|
317
|
+
city?: boolean;
|
|
318
|
+
|
|
319
|
+
country?: boolean;
|
|
320
|
+
|
|
321
|
+
line1?: boolean;
|
|
322
|
+
|
|
323
|
+
line2?: boolean;
|
|
324
|
+
|
|
325
|
+
postal_code?: boolean;
|
|
326
|
+
|
|
327
|
+
state?: boolean;
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
export interface PayStatement {
|
|
332
|
+
paging?: PayStatement.Paging;
|
|
333
|
+
|
|
334
|
+
pay_statements?: PayStatement.PayStatements;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
export namespace PayStatement {
|
|
338
|
+
export interface Paging {
|
|
339
|
+
count: boolean;
|
|
340
|
+
|
|
341
|
+
offset: boolean;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
export interface PayStatements {
|
|
345
|
+
earnings?: PayStatements.Earnings;
|
|
346
|
+
|
|
347
|
+
employee_deductions?: PayStatements.EmployeeDeductions;
|
|
348
|
+
|
|
349
|
+
employer_deductions?: PayStatements.EmployerDeductions;
|
|
350
|
+
|
|
351
|
+
gross_pay?: boolean;
|
|
352
|
+
|
|
353
|
+
individual_id?: boolean;
|
|
354
|
+
|
|
355
|
+
net_pay?: boolean;
|
|
356
|
+
|
|
357
|
+
payment_method?: boolean;
|
|
358
|
+
|
|
359
|
+
taxes?: PayStatements.Taxes;
|
|
360
|
+
|
|
361
|
+
total_hours?: boolean;
|
|
362
|
+
|
|
363
|
+
type?: boolean;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
export namespace PayStatements {
|
|
367
|
+
export interface Earnings {
|
|
368
|
+
amount?: boolean;
|
|
369
|
+
|
|
370
|
+
currency?: boolean;
|
|
371
|
+
|
|
372
|
+
name?: boolean;
|
|
373
|
+
|
|
374
|
+
type?: boolean;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
export interface EmployeeDeductions {
|
|
378
|
+
amount?: boolean;
|
|
379
|
+
|
|
380
|
+
currency?: boolean;
|
|
381
|
+
|
|
382
|
+
name?: boolean;
|
|
383
|
+
|
|
384
|
+
pre_tax?: boolean;
|
|
385
|
+
|
|
386
|
+
type?: boolean;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
export interface EmployerDeductions {
|
|
390
|
+
amount?: boolean;
|
|
391
|
+
|
|
392
|
+
currency?: boolean;
|
|
393
|
+
|
|
394
|
+
name?: boolean;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
export interface Taxes {
|
|
398
|
+
amount?: boolean;
|
|
399
|
+
|
|
400
|
+
currency?: boolean;
|
|
401
|
+
|
|
402
|
+
employer?: boolean;
|
|
403
|
+
|
|
404
|
+
name?: boolean;
|
|
405
|
+
|
|
406
|
+
type?: boolean;
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
export interface Payment {
|
|
412
|
+
id?: boolean;
|
|
413
|
+
|
|
414
|
+
company_debit?: boolean;
|
|
415
|
+
|
|
416
|
+
debit_date?: boolean;
|
|
417
|
+
|
|
418
|
+
employee_taxes?: boolean;
|
|
419
|
+
|
|
420
|
+
employer_taxes?: boolean;
|
|
421
|
+
|
|
422
|
+
gross_pay?: boolean;
|
|
423
|
+
|
|
424
|
+
individual_ids?: boolean;
|
|
425
|
+
|
|
426
|
+
net_pay?: boolean;
|
|
427
|
+
|
|
428
|
+
pay_date?: boolean;
|
|
429
|
+
|
|
430
|
+
pay_period?: Payment.PayPeriod;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
export namespace Payment {
|
|
434
|
+
export interface PayPeriod {
|
|
435
|
+
end_date?: boolean;
|
|
436
|
+
|
|
437
|
+
start_date?: boolean;
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
|
|
62
444
|
export namespace Providers {
|
|
63
445
|
export import Provider = ProvidersAPI.Provider;
|
|
64
446
|
export import ProvidersSinglePage = ProvidersAPI.ProvidersSinglePage;
|
|
@@ -6,13 +6,16 @@ import * as RequestForwardingAPI from "./request-forwarding";
|
|
|
6
6
|
|
|
7
7
|
export class RequestForwarding extends APIResource {
|
|
8
8
|
/**
|
|
9
|
-
* The Forward API allows you to make direct requests to an employment system.
|
|
9
|
+
* The Forward API allows you to make direct requests to an employment system. If
|
|
10
|
+
* Finch’s unified API doesn’t have a data model that cleanly fits your needs, then
|
|
11
|
+
* Forward allows you to push or pull data models directly against an integration’s
|
|
12
|
+
* API.
|
|
10
13
|
*/
|
|
11
14
|
forward(
|
|
12
15
|
body: RequestForwardingForwardParams,
|
|
13
16
|
options?: Core.RequestOptions,
|
|
14
17
|
): Core.APIPromise<RequestForwardingForwardResponse> {
|
|
15
|
-
return this.post('/forward', { body, ...options });
|
|
18
|
+
return this._client.post('/forward', { body, ...options });
|
|
16
19
|
}
|
|
17
20
|
}
|
|
18
21
|
|
|
@@ -64,7 +67,7 @@ export namespace RequestForwardingForwardResponse {
|
|
|
64
67
|
|
|
65
68
|
/**
|
|
66
69
|
* The HTTP method that was specified for the forwarded request. Valid values
|
|
67
|
-
* include: `GET
|
|
70
|
+
* include: `GET` , `POST` , `PUT` , `DELETE` , and `PATCH`.
|
|
68
71
|
*/
|
|
69
72
|
method: string;
|
|
70
73
|
|
|
@@ -83,8 +86,8 @@ export namespace RequestForwardingForwardResponse {
|
|
|
83
86
|
|
|
84
87
|
export interface RequestForwardingForwardParams {
|
|
85
88
|
/**
|
|
86
|
-
* The HTTP method for the forwarded request. Valid values include: `GET
|
|
87
|
-
* `PUT
|
|
89
|
+
* The HTTP method for the forwarded request. Valid values include: `GET` , `POST`
|
|
90
|
+
* , `PUT` , `DELETE` , and `PATCH`.
|
|
88
91
|
*/
|
|
89
92
|
method: string;
|
|
90
93
|
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* - `supported`: This operation is supported by both the provider and Finch <br>
|
|
5
|
+
* - `not_supported_by_finch`: This operation is not supported by Finch but
|
|
6
|
+
* supported by the provider <br>
|
|
7
|
+
* - `not_supported_by_provider`: This operation is not supported by the provider,
|
|
8
|
+
* so Finch cannot support <br>
|
|
9
|
+
* - `client_access_only`: This behavior is supported by the provider, but only
|
|
10
|
+
* available to the client and not to Finch
|
|
11
|
+
*/
|
|
12
|
+
export type OperationSupport =
|
|
13
|
+
| 'supported'
|
|
14
|
+
| 'not_supported_by_finch'
|
|
15
|
+
| 'not_supported_by_provider'
|
|
16
|
+
| 'client_access_only';
|
|
17
|
+
|
|
18
|
+
export interface OperationSupportMatrix {
|
|
19
|
+
/**
|
|
20
|
+
* - `supported`: This operation is supported by both the provider and Finch <br>
|
|
21
|
+
* - `not_supported_by_finch`: This operation is not supported by Finch but
|
|
22
|
+
* supported by the provider <br>
|
|
23
|
+
* - `not_supported_by_provider`: This operation is not supported by the provider,
|
|
24
|
+
* so Finch cannot support <br>
|
|
25
|
+
* - `client_access_only`: This behavior is supported by the provider, but only
|
|
26
|
+
* available to the client and not to Finch
|
|
27
|
+
*/
|
|
28
|
+
create?: OperationSupport;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* - `supported`: This operation is supported by both the provider and Finch <br>
|
|
32
|
+
* - `not_supported_by_finch`: This operation is not supported by Finch but
|
|
33
|
+
* supported by the provider <br>
|
|
34
|
+
* - `not_supported_by_provider`: This operation is not supported by the provider,
|
|
35
|
+
* so Finch cannot support <br>
|
|
36
|
+
* - `client_access_only`: This behavior is supported by the provider, but only
|
|
37
|
+
* available to the client and not to Finch
|
|
38
|
+
*/
|
|
39
|
+
delete?: OperationSupport;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* - `supported`: This operation is supported by both the provider and Finch <br>
|
|
43
|
+
* - `not_supported_by_finch`: This operation is not supported by Finch but
|
|
44
|
+
* supported by the provider <br>
|
|
45
|
+
* - `not_supported_by_provider`: This operation is not supported by the provider,
|
|
46
|
+
* so Finch cannot support <br>
|
|
47
|
+
* - `client_access_only`: This behavior is supported by the provider, but only
|
|
48
|
+
* available to the client and not to Finch
|
|
49
|
+
*/
|
|
50
|
+
read?: OperationSupport;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* - `supported`: This operation is supported by both the provider and Finch <br>
|
|
54
|
+
* - `not_supported_by_finch`: This operation is not supported by Finch but
|
|
55
|
+
* supported by the provider <br>
|
|
56
|
+
* - `not_supported_by_provider`: This operation is not supported by the provider,
|
|
57
|
+
* so Finch cannot support <br>
|
|
58
|
+
* - `client_access_only`: This behavior is supported by the provider, but only
|
|
59
|
+
* available to the client and not to Finch
|
|
60
|
+
*/
|
|
61
|
+
update?: OperationSupport;
|
|
62
|
+
}
|
|
@@ -11,7 +11,7 @@ export class Webhooks extends APIResource {
|
|
|
11
11
|
unwrap(
|
|
12
12
|
payload: string,
|
|
13
13
|
headers: HeadersLike,
|
|
14
|
-
secret: string | undefined | null = this.
|
|
14
|
+
secret: string | undefined | null = this._client.webhookSecret,
|
|
15
15
|
): Object {
|
|
16
16
|
this.verifySignature(payload, headers, secret);
|
|
17
17
|
return JSON.parse(payload);
|
|
@@ -86,7 +86,7 @@ export class Webhooks extends APIResource {
|
|
|
86
86
|
verifySignature(
|
|
87
87
|
body: string,
|
|
88
88
|
headers: HeadersLike,
|
|
89
|
-
secret: string | undefined | null = this.
|
|
89
|
+
secret: string | undefined | null = this._client.webhookSecret,
|
|
90
90
|
): void {
|
|
91
91
|
const parsedSecret = this.parseSecret(secret);
|
|
92
92
|
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '5.
|
|
1
|
+
export const VERSION = '5.10.0'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "5.
|
|
1
|
+
export declare const VERSION = "5.10.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,WAAW,CAAC"}
|