@tryfinch/finch-api 8.2.1 → 9.8.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 +237 -0
- package/README.md +2 -2
- package/client.d.mts +8 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +8 -4
- package/client.d.ts.map +1 -1
- package/client.js +43 -13
- package/client.js.map +1 -1
- package/client.mjs +43 -13
- package/client.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +5 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +5 -0
- package/internal/parse.mjs.map +1 -1
- package/internal/request-options.d.mts +4 -0
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts +4 -0
- package/internal/request-options.d.ts.map +1 -1
- package/internal/request-options.js.map +1 -1
- package/internal/request-options.mjs.map +1 -1
- package/internal/tslib.js +17 -17
- package/internal/types.d.mts +6 -6
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +6 -6
- package/internal/types.d.ts.map +1 -1
- package/internal/utils/env.js +2 -2
- package/internal/utils/env.js.map +1 -1
- package/internal/utils/env.mjs +2 -2
- package/internal/utils/env.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +2 -0
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +2 -0
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/query.d.mts +2 -0
- package/internal/utils/query.d.mts.map +1 -0
- package/internal/utils/query.d.ts +2 -0
- package/internal/utils/query.d.ts.map +1 -0
- package/internal/utils/query.js +10 -0
- package/internal/utils/query.js.map +1 -0
- package/internal/utils/query.mjs +6 -0
- package/internal/utils/query.mjs.map +1 -0
- package/internal/utils.d.mts +1 -0
- package/internal/utils.d.ts +1 -0
- package/internal/utils.js +1 -0
- package/internal/utils.js.map +1 -1
- package/internal/utils.mjs +1 -0
- package/package.json +12 -1
- package/resources/access-tokens.d.mts +5 -0
- package/resources/access-tokens.d.mts.map +1 -1
- package/resources/access-tokens.d.ts +5 -0
- package/resources/access-tokens.d.ts.map +1 -1
- package/resources/access-tokens.js +1 -0
- package/resources/access-tokens.js.map +1 -1
- package/resources/access-tokens.mjs +1 -0
- package/resources/access-tokens.mjs.map +1 -1
- package/resources/account.d.mts +4 -0
- package/resources/account.d.mts.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/connect/sessions.d.mts +6 -2
- package/resources/connect/sessions.d.mts.map +1 -1
- package/resources/connect/sessions.d.ts +6 -2
- package/resources/connect/sessions.d.ts.map +1 -1
- package/resources/connect/sessions.js +6 -2
- package/resources/connect/sessions.js.map +1 -1
- package/resources/connect/sessions.mjs +6 -2
- package/resources/connect/sessions.mjs.map +1 -1
- package/resources/hris/benefits/benefits.d.mts +6 -6
- package/resources/hris/benefits/benefits.d.mts.map +1 -1
- package/resources/hris/benefits/benefits.d.ts +6 -6
- package/resources/hris/benefits/benefits.d.ts.map +1 -1
- package/resources/hris/benefits/benefits.js +18 -3
- package/resources/hris/benefits/benefits.js.map +1 -1
- package/resources/hris/benefits/benefits.mjs +18 -3
- package/resources/hris/benefits/benefits.mjs.map +1 -1
- package/resources/hris/benefits/individuals.d.mts +12 -12
- package/resources/hris/benefits/individuals.d.mts.map +1 -1
- package/resources/hris/benefits/individuals.d.ts +12 -12
- package/resources/hris/benefits/individuals.d.ts.map +1 -1
- package/resources/hris/benefits/individuals.js +8 -2
- package/resources/hris/benefits/individuals.js.map +1 -1
- package/resources/hris/benefits/individuals.mjs +8 -2
- package/resources/hris/benefits/individuals.mjs.map +1 -1
- package/resources/hris/company/company.js +1 -1
- package/resources/hris/company/company.js.map +1 -1
- package/resources/hris/company/company.mjs +1 -1
- package/resources/hris/company/company.mjs.map +1 -1
- package/resources/hris/company/pay-statement-item/pay-statement-item.js +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 +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.mts.map +1 -1
- package/resources/hris/company/pay-statement-item/rules.d.ts.map +1 -1
- package/resources/hris/company/pay-statement-item/rules.js +4 -0
- package/resources/hris/company/pay-statement-item/rules.js.map +1 -1
- package/resources/hris/company/pay-statement-item/rules.mjs +4 -0
- package/resources/hris/company/pay-statement-item/rules.mjs.map +1 -1
- package/resources/hris/directory.d.mts +9 -1
- package/resources/hris/directory.d.mts.map +1 -1
- package/resources/hris/directory.d.ts +9 -1
- package/resources/hris/directory.d.ts.map +1 -1
- package/resources/hris/directory.js +1 -0
- package/resources/hris/directory.js.map +1 -1
- package/resources/hris/directory.mjs +1 -0
- package/resources/hris/directory.mjs.map +1 -1
- package/resources/hris/documents.d.mts.map +1 -1
- package/resources/hris/documents.d.ts.map +1 -1
- package/resources/hris/documents.js +6 -2
- package/resources/hris/documents.js.map +1 -1
- package/resources/hris/documents.mjs +6 -2
- package/resources/hris/documents.mjs.map +1 -1
- package/resources/hris/employments.d.mts +12 -7
- package/resources/hris/employments.d.mts.map +1 -1
- package/resources/hris/employments.d.ts +12 -7
- package/resources/hris/employments.d.ts.map +1 -1
- package/resources/hris/employments.js +1 -0
- package/resources/hris/employments.js.map +1 -1
- package/resources/hris/employments.mjs +1 -0
- package/resources/hris/employments.mjs.map +1 -1
- package/resources/hris/individuals.d.mts +5 -5
- package/resources/hris/individuals.d.mts.map +1 -1
- package/resources/hris/individuals.d.ts +5 -5
- package/resources/hris/individuals.d.ts.map +1 -1
- package/resources/hris/individuals.js +1 -0
- package/resources/hris/individuals.js.map +1 -1
- package/resources/hris/individuals.mjs +1 -0
- package/resources/hris/individuals.mjs.map +1 -1
- package/resources/hris/pay-statements.d.mts.map +1 -1
- package/resources/hris/pay-statements.d.ts.map +1 -1
- package/resources/hris/pay-statements.js +1 -0
- package/resources/hris/pay-statements.js.map +1 -1
- package/resources/hris/pay-statements.mjs +1 -0
- package/resources/hris/pay-statements.mjs.map +1 -1
- package/resources/hris/payments.d.mts.map +1 -1
- package/resources/hris/payments.d.ts.map +1 -1
- package/resources/hris/payments.js +5 -1
- package/resources/hris/payments.js.map +1 -1
- package/resources/hris/payments.mjs +5 -1
- package/resources/hris/payments.mjs.map +1 -1
- package/resources/jobs/automated.js +3 -3
- package/resources/jobs/automated.js.map +1 -1
- package/resources/jobs/automated.mjs +3 -3
- package/resources/jobs/automated.mjs.map +1 -1
- package/resources/jobs/manual.js +1 -1
- package/resources/jobs/manual.js.map +1 -1
- package/resources/jobs/manual.mjs +1 -1
- package/resources/jobs/manual.mjs.map +1 -1
- package/resources/payroll/pay-groups.d.mts.map +1 -1
- package/resources/payroll/pay-groups.d.ts.map +1 -1
- package/resources/payroll/pay-groups.js +6 -1
- package/resources/payroll/pay-groups.js.map +1 -1
- package/resources/payroll/pay-groups.mjs +6 -1
- package/resources/payroll/pay-groups.mjs.map +1 -1
- package/resources/providers.d.mts.map +1 -1
- package/resources/providers.d.ts.map +1 -1
- package/resources/providers.js +4 -1
- package/resources/providers.js.map +1 -1
- package/resources/providers.mjs +4 -1
- package/resources/providers.mjs.map +1 -1
- package/resources/request-forwarding.js +1 -1
- package/resources/request-forwarding.js.map +1 -1
- package/resources/request-forwarding.mjs +1 -1
- package/resources/request-forwarding.mjs.map +1 -1
- package/resources/sandbox/company.js +1 -1
- package/resources/sandbox/company.js.map +1 -1
- package/resources/sandbox/company.mjs +1 -1
- package/resources/sandbox/company.mjs.map +1 -1
- package/resources/sandbox/connections/accounts.d.mts.map +1 -1
- package/resources/sandbox/connections/accounts.d.ts.map +1 -1
- package/resources/sandbox/connections/accounts.js +10 -2
- package/resources/sandbox/connections/accounts.js.map +1 -1
- package/resources/sandbox/connections/accounts.mjs +10 -2
- package/resources/sandbox/connections/accounts.mjs.map +1 -1
- package/resources/sandbox/connections/connections.js +1 -1
- package/resources/sandbox/connections/connections.js.map +1 -1
- package/resources/sandbox/connections/connections.mjs +1 -1
- package/resources/sandbox/connections/connections.mjs.map +1 -1
- package/resources/sandbox/directory.d.mts +5 -0
- package/resources/sandbox/directory.d.mts.map +1 -1
- package/resources/sandbox/directory.d.ts +5 -0
- package/resources/sandbox/directory.d.ts.map +1 -1
- package/resources/sandbox/directory.js +5 -1
- package/resources/sandbox/directory.js.map +1 -1
- package/resources/sandbox/directory.mjs +5 -1
- package/resources/sandbox/directory.mjs.map +1 -1
- package/resources/sandbox/employment.d.mts +10 -0
- package/resources/sandbox/employment.d.mts.map +1 -1
- package/resources/sandbox/employment.d.ts +10 -0
- package/resources/sandbox/employment.d.ts.map +1 -1
- package/resources/sandbox/employment.js +5 -1
- package/resources/sandbox/employment.js.map +1 -1
- package/resources/sandbox/employment.mjs +5 -1
- package/resources/sandbox/employment.mjs.map +1 -1
- package/resources/sandbox/individual.d.mts.map +1 -1
- package/resources/sandbox/individual.d.ts.map +1 -1
- package/resources/sandbox/individual.js +5 -1
- package/resources/sandbox/individual.js.map +1 -1
- package/resources/sandbox/individual.mjs +5 -1
- package/resources/sandbox/individual.mjs.map +1 -1
- package/resources/sandbox/jobs/configuration.d.mts.map +1 -1
- package/resources/sandbox/jobs/configuration.d.ts.map +1 -1
- package/resources/sandbox/jobs/configuration.js +6 -2
- package/resources/sandbox/jobs/configuration.js.map +1 -1
- package/resources/sandbox/jobs/configuration.mjs +6 -2
- package/resources/sandbox/jobs/configuration.mjs.map +1 -1
- package/resources/sandbox/jobs/jobs.js +1 -1
- package/resources/sandbox/jobs/jobs.js.map +1 -1
- package/resources/sandbox/jobs/jobs.mjs +1 -1
- package/resources/sandbox/jobs/jobs.mjs.map +1 -1
- package/resources/sandbox/payment.js +1 -1
- package/resources/sandbox/payment.js.map +1 -1
- package/resources/sandbox/payment.mjs +1 -1
- package/resources/sandbox/payment.mjs.map +1 -1
- package/resources/webhooks.d.mts +5 -1
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +5 -1
- package/resources/webhooks.d.ts.map +1 -1
- package/src/client.ts +57 -18
- package/src/internal/parse.ts +6 -0
- package/src/internal/request-options.ts +2 -0
- package/src/internal/types.ts +6 -8
- package/src/internal/utils/env.ts +2 -2
- package/src/internal/utils/log.ts +2 -0
- package/src/internal/utils/query.ts +7 -0
- package/src/internal/utils.ts +1 -0
- package/src/resources/access-tokens.ts +7 -0
- package/src/resources/account.ts +14 -2
- package/src/resources/connect/sessions.ts +12 -4
- package/src/resources/hris/benefits/benefits.ts +26 -11
- package/src/resources/hris/benefits/individuals.ts +25 -16
- package/src/resources/hris/company/company.ts +1 -1
- package/src/resources/hris/company/pay-statement-item/pay-statement-item.ts +1 -1
- package/src/resources/hris/company/pay-statement-item/rules.ts +4 -0
- package/src/resources/hris/directory.ts +12 -1
- package/src/resources/hris/documents.ts +6 -2
- package/src/resources/hris/employments.ts +14 -7
- package/src/resources/hris/individuals.ts +6 -5
- package/src/resources/hris/pay-statements.ts +1 -0
- package/src/resources/hris/payments.ts +5 -1
- package/src/resources/jobs/automated.ts +3 -3
- package/src/resources/jobs/manual.ts +1 -1
- package/src/resources/payroll/pay-groups.ts +6 -1
- package/src/resources/providers.ts +4 -1
- package/src/resources/request-forwarding.ts +1 -1
- package/src/resources/sandbox/company.ts +1 -1
- package/src/resources/sandbox/connections/accounts.ts +10 -2
- package/src/resources/sandbox/connections/connections.ts +1 -1
- package/src/resources/sandbox/directory.ts +11 -1
- package/src/resources/sandbox/employment.ts +17 -1
- package/src/resources/sandbox/individual.ts +5 -1
- package/src/resources/sandbox/jobs/configuration.ts +6 -2
- package/src/resources/sandbox/jobs/jobs.ts +1 -1
- package/src/resources/sandbox/payment.ts +1 -1
- package/src/resources/webhooks.ts +9 -1
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -23,6 +23,7 @@ export class Directory extends APIResource {
|
|
|
23
23
|
return this._client.getAPIList('/employer/directory', IndividualsPage, {
|
|
24
24
|
query,
|
|
25
25
|
...options,
|
|
26
|
+
__security: { bearerAuth: true },
|
|
26
27
|
});
|
|
27
28
|
}
|
|
28
29
|
|
|
@@ -98,11 +99,21 @@ export interface DirectoryListParams extends IndividualsPageParams {
|
|
|
98
99
|
entity_ids?: Array<string>;
|
|
99
100
|
}
|
|
100
101
|
|
|
101
|
-
export interface DirectoryListIndividualsParams
|
|
102
|
+
export interface DirectoryListIndividualsParams {
|
|
102
103
|
/**
|
|
103
104
|
* The entity IDs to specify which entities' data to access.
|
|
104
105
|
*/
|
|
105
106
|
entity_ids?: Array<string>;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Number of employees to return (defaults to all)
|
|
110
|
+
*/
|
|
111
|
+
limit?: number;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Index to start from (defaults to 0)
|
|
115
|
+
*/
|
|
116
|
+
offset?: number;
|
|
106
117
|
}
|
|
107
118
|
|
|
108
119
|
export declare namespace Directory {
|
|
@@ -20,7 +20,7 @@ export class Documents extends APIResource {
|
|
|
20
20
|
query: DocumentListParams | null | undefined = {},
|
|
21
21
|
options?: RequestOptions,
|
|
22
22
|
): APIPromise<DocumentListResponse> {
|
|
23
|
-
return this._client.get('/employer/documents', { query, ...options });
|
|
23
|
+
return this._client.get('/employer/documents', { query, ...options, __security: { bearerAuth: true } });
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
/**
|
|
@@ -39,7 +39,11 @@ export class Documents extends APIResource {
|
|
|
39
39
|
query: DocumentRetreiveParams | null | undefined = {},
|
|
40
40
|
options?: RequestOptions,
|
|
41
41
|
): APIPromise<DocumentRetreiveResponse> {
|
|
42
|
-
return this._client.get(path`/employer/documents/${documentID}`, {
|
|
42
|
+
return this._client.get(path`/employer/documents/${documentID}`, {
|
|
43
|
+
query,
|
|
44
|
+
...options,
|
|
45
|
+
__security: { bearerAuth: true },
|
|
46
|
+
});
|
|
43
47
|
}
|
|
44
48
|
}
|
|
45
49
|
|
|
@@ -29,16 +29,17 @@ export class Employments extends APIResource {
|
|
|
29
29
|
body,
|
|
30
30
|
method: 'post',
|
|
31
31
|
...options,
|
|
32
|
+
__security: { bearerAuth: true },
|
|
32
33
|
});
|
|
33
34
|
}
|
|
34
35
|
}
|
|
35
36
|
|
|
36
37
|
export type EmploymentDataResponsesPage = ResponsesPage<EmploymentDataResponse>;
|
|
37
38
|
|
|
38
|
-
export type EmploymentData = EmploymentData.
|
|
39
|
+
export type EmploymentData = EmploymentData.EmploymentData | EmploymentData.BatchError;
|
|
39
40
|
|
|
40
41
|
export namespace EmploymentData {
|
|
41
|
-
export interface
|
|
42
|
+
export interface EmploymentData {
|
|
42
43
|
/**
|
|
43
44
|
* A stable Finch `id` (UUID v4) for an individual in the company.
|
|
44
45
|
*/
|
|
@@ -52,12 +53,12 @@ export namespace EmploymentData {
|
|
|
52
53
|
/**
|
|
53
54
|
* The department object.
|
|
54
55
|
*/
|
|
55
|
-
department:
|
|
56
|
+
department: EmploymentData.Department | null;
|
|
56
57
|
|
|
57
58
|
/**
|
|
58
59
|
* The employment object.
|
|
59
60
|
*/
|
|
60
|
-
employment:
|
|
61
|
+
employment: EmploymentData.Employment | null;
|
|
61
62
|
|
|
62
63
|
/**
|
|
63
64
|
* The detailed employment status of the individual.
|
|
@@ -79,6 +80,12 @@ export namespace EmploymentData {
|
|
|
79
80
|
*/
|
|
80
81
|
first_name: string | null;
|
|
81
82
|
|
|
83
|
+
/**
|
|
84
|
+
* The FLSA status of the individual. Available options: `exempt`, `non_exempt`,
|
|
85
|
+
* `unknown`.
|
|
86
|
+
*/
|
|
87
|
+
flsa_status: 'exempt' | 'non_exempt' | 'unknown' | null;
|
|
88
|
+
|
|
82
89
|
/**
|
|
83
90
|
* `true` if the individual an an active employee or contractor at the company.
|
|
84
91
|
*/
|
|
@@ -96,7 +103,7 @@ export namespace EmploymentData {
|
|
|
96
103
|
/**
|
|
97
104
|
* The manager object representing the manager of the individual within the org.
|
|
98
105
|
*/
|
|
99
|
-
manager:
|
|
106
|
+
manager: EmploymentData.Manager | null;
|
|
100
107
|
|
|
101
108
|
/**
|
|
102
109
|
* The legal middle name of the individual.
|
|
@@ -115,7 +122,7 @@ export namespace EmploymentData {
|
|
|
115
122
|
* employer in the system. Custom fields are not currently supported for assisted
|
|
116
123
|
* connections.
|
|
117
124
|
*/
|
|
118
|
-
custom_fields?: Array<
|
|
125
|
+
custom_fields?: Array<EmploymentData.CustomField> | null;
|
|
119
126
|
|
|
120
127
|
/**
|
|
121
128
|
* The employee's income as reported by the provider. This may not always be
|
|
@@ -140,7 +147,7 @@ export namespace EmploymentData {
|
|
|
140
147
|
work_id?: string | null;
|
|
141
148
|
}
|
|
142
149
|
|
|
143
|
-
export namespace
|
|
150
|
+
export namespace EmploymentData {
|
|
144
151
|
/**
|
|
145
152
|
* The department object.
|
|
146
153
|
*/
|
|
@@ -27,16 +27,17 @@ export class Individuals extends APIResource {
|
|
|
27
27
|
body,
|
|
28
28
|
method: 'post',
|
|
29
29
|
...options,
|
|
30
|
+
__security: { bearerAuth: true },
|
|
30
31
|
});
|
|
31
32
|
}
|
|
32
33
|
}
|
|
33
34
|
|
|
34
35
|
export type IndividualResponsesPage = ResponsesPage<IndividualResponse>;
|
|
35
36
|
|
|
36
|
-
export type Individual = Individual.
|
|
37
|
+
export type Individual = Individual.Individual | Individual.BatchError;
|
|
37
38
|
|
|
38
39
|
export namespace Individual {
|
|
39
|
-
export interface
|
|
40
|
+
export interface Individual {
|
|
40
41
|
/**
|
|
41
42
|
* A stable Finch `id` (UUID v4) for an individual in the company.
|
|
42
43
|
*/
|
|
@@ -78,7 +79,7 @@ export namespace Individual {
|
|
|
78
79
|
*/
|
|
79
80
|
middle_name: string | null;
|
|
80
81
|
|
|
81
|
-
phone_numbers: Array<
|
|
82
|
+
phone_numbers: Array<Individual.PhoneNumber | null> | null;
|
|
82
83
|
|
|
83
84
|
/**
|
|
84
85
|
* The preferred name of the individual.
|
|
@@ -87,7 +88,7 @@ export namespace Individual {
|
|
|
87
88
|
|
|
88
89
|
residence: HRISAPI.Location | null;
|
|
89
90
|
|
|
90
|
-
emails?: Array<
|
|
91
|
+
emails?: Array<Individual.Email> | null;
|
|
91
92
|
|
|
92
93
|
/**
|
|
93
94
|
* Social Security Number of the individual in **encrypted** format. This field is
|
|
@@ -105,7 +106,7 @@ export namespace Individual {
|
|
|
105
106
|
ssn?: string | null;
|
|
106
107
|
}
|
|
107
108
|
|
|
108
|
-
export namespace
|
|
109
|
+
export namespace Individual {
|
|
109
110
|
export interface PhoneNumber {
|
|
110
111
|
data: string | null;
|
|
111
112
|
|
|
@@ -21,7 +21,11 @@ export class Payments extends APIResource {
|
|
|
21
21
|
* ```
|
|
22
22
|
*/
|
|
23
23
|
list(query: PaymentListParams, options?: RequestOptions): PagePromise<PaymentsSinglePage, Payment> {
|
|
24
|
-
return this._client.getAPIList('/employer/payment', SinglePage<Payment>, {
|
|
24
|
+
return this._client.getAPIList('/employer/payment', SinglePage<Payment>, {
|
|
25
|
+
query,
|
|
26
|
+
...options,
|
|
27
|
+
__security: { bearerAuth: true },
|
|
28
|
+
});
|
|
25
29
|
}
|
|
26
30
|
}
|
|
27
31
|
|
|
@@ -23,14 +23,14 @@ export class Automated extends APIResource {
|
|
|
23
23
|
* access to this endpoint, please contact your Finch account manager.
|
|
24
24
|
*/
|
|
25
25
|
create(body: AutomatedCreateParams, options?: RequestOptions): APIPromise<AutomatedCreateResponse> {
|
|
26
|
-
return this._client.post('/jobs/automated', { body, ...options });
|
|
26
|
+
return this._client.post('/jobs/automated', { body, ...options, __security: { bearerAuth: true } });
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
30
|
* Get an automated job by `job_id`.
|
|
31
31
|
*/
|
|
32
32
|
retrieve(jobID: string, options?: RequestOptions): APIPromise<AutomatedAsyncJob> {
|
|
33
|
-
return this._client.get(path`/jobs/automated/${jobID}`, options);
|
|
33
|
+
return this._client.get(path`/jobs/automated/${jobID}`, { ...options, __security: { bearerAuth: true } });
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
/**
|
|
@@ -42,7 +42,7 @@ export class Automated extends APIResource {
|
|
|
42
42
|
query: AutomatedListParams | null | undefined = {},
|
|
43
43
|
options?: RequestOptions,
|
|
44
44
|
): APIPromise<AutomatedListResponse> {
|
|
45
|
-
return this._client.get('/jobs/automated', { query, ...options });
|
|
45
|
+
return this._client.get('/jobs/automated', { query, ...options, __security: { bearerAuth: true } });
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
|
|
@@ -11,7 +11,7 @@ export class Manual extends APIResource {
|
|
|
11
11
|
* jobs including those for both automated and assisted integrations.
|
|
12
12
|
*/
|
|
13
13
|
retrieve(jobID: string, options?: RequestOptions): APIPromise<ManualAsyncJob> {
|
|
14
|
-
return this._client.get(path`/jobs/manual/${jobID}`, options);
|
|
14
|
+
return this._client.get(path`/jobs/manual/${jobID}`, { ...options, __security: { bearerAuth: true } });
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
|
|
@@ -15,7 +15,11 @@ export class PayGroups extends APIResource {
|
|
|
15
15
|
query: PayGroupRetrieveParams | null | undefined = {},
|
|
16
16
|
options?: RequestOptions,
|
|
17
17
|
): APIPromise<PayGroupRetrieveResponse> {
|
|
18
|
-
return this._client.get(path`/employer/pay-groups/${payGroupID}`, {
|
|
18
|
+
return this._client.get(path`/employer/pay-groups/${payGroupID}`, {
|
|
19
|
+
query,
|
|
20
|
+
...options,
|
|
21
|
+
__security: { bearerAuth: true },
|
|
22
|
+
});
|
|
19
23
|
}
|
|
20
24
|
|
|
21
25
|
/**
|
|
@@ -28,6 +32,7 @@ export class PayGroups extends APIResource {
|
|
|
28
32
|
return this._client.getAPIList('/employer/pay-groups', SinglePage<PayGroupListResponse>, {
|
|
29
33
|
query,
|
|
30
34
|
...options,
|
|
35
|
+
__security: { bearerAuth: true },
|
|
31
36
|
});
|
|
32
37
|
}
|
|
33
38
|
}
|
|
@@ -9,7 +9,10 @@ export class Providers extends APIResource {
|
|
|
9
9
|
* Return details on all available payroll and HR systems.
|
|
10
10
|
*/
|
|
11
11
|
list(options?: RequestOptions): PagePromise<ProviderListResponsesSinglePage, ProviderListResponse> {
|
|
12
|
-
return this._client.getAPIList('/providers', SinglePage<ProviderListResponse>,
|
|
12
|
+
return this._client.getAPIList('/providers', SinglePage<ProviderListResponse>, {
|
|
13
|
+
...options,
|
|
14
|
+
__security: { bearerAuth: true },
|
|
15
|
+
});
|
|
13
16
|
}
|
|
14
17
|
}
|
|
15
18
|
|
|
@@ -15,7 +15,7 @@ export class RequestForwarding extends APIResource {
|
|
|
15
15
|
body: RequestForwardingForwardParams,
|
|
16
16
|
options?: RequestOptions,
|
|
17
17
|
): APIPromise<RequestForwardingForwardResponse> {
|
|
18
|
-
return this._client.post('/forward', { body, ...options });
|
|
18
|
+
return this._client.post('/forward', { body, ...options, __security: { bearerAuth: true } });
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
|
|
@@ -33,7 +33,7 @@ export class Company extends APIResource {
|
|
|
33
33
|
* ```
|
|
34
34
|
*/
|
|
35
35
|
update(body: CompanyUpdateParams, options?: RequestOptions): APIPromise<CompanyUpdateResponse> {
|
|
36
|
-
return this._client.put('/sandbox/company', { body, ...options });
|
|
36
|
+
return this._client.put('/sandbox/company', { body, ...options, __security: { bearerAuth: true } });
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
|
|
@@ -19,7 +19,11 @@ export class Accounts extends APIResource {
|
|
|
19
19
|
* ```
|
|
20
20
|
*/
|
|
21
21
|
create(body: AccountCreateParams, options?: RequestOptions): APIPromise<AccountCreateResponse> {
|
|
22
|
-
return this._client.post('/sandbox/connections/accounts', {
|
|
22
|
+
return this._client.post('/sandbox/connections/accounts', {
|
|
23
|
+
body,
|
|
24
|
+
...options,
|
|
25
|
+
__security: { basicAuth: true },
|
|
26
|
+
});
|
|
23
27
|
}
|
|
24
28
|
|
|
25
29
|
/**
|
|
@@ -38,7 +42,11 @@ export class Accounts extends APIResource {
|
|
|
38
42
|
body: AccountUpdateParams | null | undefined = {},
|
|
39
43
|
options?: RequestOptions,
|
|
40
44
|
): APIPromise<AccountUpdateResponse> {
|
|
41
|
-
return this._client.put('/sandbox/connections/accounts', {
|
|
45
|
+
return this._client.put('/sandbox/connections/accounts', {
|
|
46
|
+
body,
|
|
47
|
+
...options,
|
|
48
|
+
__security: { bearerAuth: true },
|
|
49
|
+
});
|
|
42
50
|
}
|
|
43
51
|
}
|
|
44
52
|
|
|
@@ -26,7 +26,7 @@ export class Connections extends APIResource {
|
|
|
26
26
|
* ```
|
|
27
27
|
*/
|
|
28
28
|
create(body: ConnectionCreateParams, options?: RequestOptions): APIPromise<ConnectionCreateResponse> {
|
|
29
|
-
return this._client.post('/sandbox/connections', { body, ...options });
|
|
29
|
+
return this._client.post('/sandbox/connections', { body, ...options, __security: { basicAuth: true } });
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
|
|
@@ -19,7 +19,11 @@ export class Directory extends APIResource {
|
|
|
19
19
|
options?: RequestOptions,
|
|
20
20
|
): APIPromise<DirectoryCreateResponse> {
|
|
21
21
|
const { body } = params ?? {};
|
|
22
|
-
return this._client.post('/sandbox/directory', {
|
|
22
|
+
return this._client.post('/sandbox/directory', {
|
|
23
|
+
body: body,
|
|
24
|
+
...options,
|
|
25
|
+
__security: { bearerAuth: true },
|
|
26
|
+
});
|
|
23
27
|
}
|
|
24
28
|
}
|
|
25
29
|
|
|
@@ -105,6 +109,12 @@ export namespace DirectoryCreateParams {
|
|
|
105
109
|
*/
|
|
106
110
|
first_name?: string | null;
|
|
107
111
|
|
|
112
|
+
/**
|
|
113
|
+
* The FLSA status of the individual. Available options: `exempt`, `non_exempt`,
|
|
114
|
+
* `unknown`.
|
|
115
|
+
*/
|
|
116
|
+
flsa_status?: 'exempt' | 'non_exempt' | 'unknown' | null;
|
|
117
|
+
|
|
108
118
|
/**
|
|
109
119
|
* The gender of the individual.
|
|
110
120
|
*/
|
|
@@ -22,7 +22,11 @@ export class Employment extends APIResource {
|
|
|
22
22
|
body: EmploymentUpdateParams | null | undefined = {},
|
|
23
23
|
options?: RequestOptions,
|
|
24
24
|
): APIPromise<EmploymentUpdateResponse> {
|
|
25
|
-
return this._client.put(path`/sandbox/employment/${individualID}`, {
|
|
25
|
+
return this._client.put(path`/sandbox/employment/${individualID}`, {
|
|
26
|
+
body,
|
|
27
|
+
...options,
|
|
28
|
+
__security: { bearerAuth: true },
|
|
29
|
+
});
|
|
26
30
|
}
|
|
27
31
|
}
|
|
28
32
|
|
|
@@ -74,6 +78,12 @@ export interface EmploymentUpdateResponse {
|
|
|
74
78
|
*/
|
|
75
79
|
first_name?: string | null;
|
|
76
80
|
|
|
81
|
+
/**
|
|
82
|
+
* The FLSA status of the individual. Available options: `exempt`, `non_exempt`,
|
|
83
|
+
* `unknown`.
|
|
84
|
+
*/
|
|
85
|
+
flsa_status?: 'exempt' | 'non_exempt' | 'unknown' | null;
|
|
86
|
+
|
|
77
87
|
/**
|
|
78
88
|
* The employee's income as reported by the provider. This may not always be
|
|
79
89
|
* annualized income, but may be in units of bi-weekly, semi-monthly, daily, etc,
|
|
@@ -210,6 +220,12 @@ export interface EmploymentUpdateParams {
|
|
|
210
220
|
*/
|
|
211
221
|
first_name?: string | null;
|
|
212
222
|
|
|
223
|
+
/**
|
|
224
|
+
* The FLSA status of the individual. Available options: `exempt`, `non_exempt`,
|
|
225
|
+
* `unknown`.
|
|
226
|
+
*/
|
|
227
|
+
flsa_status?: 'exempt' | 'non_exempt' | 'unknown' | null;
|
|
228
|
+
|
|
213
229
|
/**
|
|
214
230
|
* The employee's income as reported by the provider. This may not always be
|
|
215
231
|
* annualized income, but may be in units of bi-weekly, semi-monthly, daily, etc,
|
|
@@ -22,7 +22,11 @@ export class Individual extends APIResource {
|
|
|
22
22
|
body: IndividualUpdateParams | null | undefined = {},
|
|
23
23
|
options?: RequestOptions,
|
|
24
24
|
): APIPromise<IndividualUpdateResponse> {
|
|
25
|
-
return this._client.put(path`/sandbox/individual/${individualID}`, {
|
|
25
|
+
return this._client.put(path`/sandbox/individual/${individualID}`, {
|
|
26
|
+
body,
|
|
27
|
+
...options,
|
|
28
|
+
__security: { bearerAuth: true },
|
|
29
|
+
});
|
|
26
30
|
}
|
|
27
31
|
}
|
|
28
32
|
|
|
@@ -15,7 +15,7 @@ export class Configuration extends APIResource {
|
|
|
15
15
|
* ```
|
|
16
16
|
*/
|
|
17
17
|
retrieve(options?: RequestOptions): APIPromise<ConfigurationRetrieveResponse> {
|
|
18
|
-
return this._client.get('/sandbox/jobs/configuration', options);
|
|
18
|
+
return this._client.get('/sandbox/jobs/configuration', { ...options, __security: { bearerAuth: true } });
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
/**
|
|
@@ -31,7 +31,11 @@ export class Configuration extends APIResource {
|
|
|
31
31
|
* ```
|
|
32
32
|
*/
|
|
33
33
|
update(body: ConfigurationUpdateParams, options?: RequestOptions): APIPromise<SandboxJobConfiguration> {
|
|
34
|
-
return this._client.put('/sandbox/jobs/configuration', {
|
|
34
|
+
return this._client.put('/sandbox/jobs/configuration', {
|
|
35
|
+
body,
|
|
36
|
+
...options,
|
|
37
|
+
__security: { bearerAuth: true },
|
|
38
|
+
});
|
|
35
39
|
}
|
|
36
40
|
}
|
|
37
41
|
|
|
@@ -25,7 +25,7 @@ export class Jobs extends APIResource {
|
|
|
25
25
|
* ```
|
|
26
26
|
*/
|
|
27
27
|
create(body: JobCreateParams, options?: RequestOptions): APIPromise<JobCreateResponse> {
|
|
28
|
-
return this._client.post('/sandbox/jobs', { body, ...options });
|
|
28
|
+
return this._client.post('/sandbox/jobs', { body, ...options, __security: { bearerAuth: true } });
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
|
|
@@ -17,7 +17,7 @@ export class Payment extends APIResource {
|
|
|
17
17
|
body: PaymentCreateParams | null | undefined = {},
|
|
18
18
|
options?: RequestOptions,
|
|
19
19
|
): APIPromise<PaymentCreateResponse> {
|
|
20
|
-
return this._client.post('/sandbox/payment', { body, ...options });
|
|
20
|
+
return this._client.post('/sandbox/payment', { body, ...options, __security: { bearerAuth: true } });
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|
|
@@ -576,6 +576,11 @@ export interface BaseWebhookEvent {
|
|
|
576
576
|
* Unique Finch ID of the connection associated with the webhook event.
|
|
577
577
|
*/
|
|
578
578
|
connection_id?: string;
|
|
579
|
+
|
|
580
|
+
/**
|
|
581
|
+
* Unique Finch id of the entity for which data has been updated.
|
|
582
|
+
*/
|
|
583
|
+
entity_id?: string;
|
|
579
584
|
}
|
|
580
585
|
|
|
581
586
|
export interface CompanyEvent extends BaseWebhookEvent {
|
|
@@ -638,7 +643,10 @@ export interface JobCompletionEvent extends BaseWebhookEvent {
|
|
|
638
643
|
| 'job.benefit_register.completed'
|
|
639
644
|
| 'job.benefit_unenroll.completed'
|
|
640
645
|
| 'job.benefit_update.completed'
|
|
641
|
-
| 'job.data_sync_all.completed'
|
|
646
|
+
| 'job.data_sync_all.completed'
|
|
647
|
+
| 'job.w4_form_employee_sync.completed'
|
|
648
|
+
| 'job.initial_data_sync_org.succeeded'
|
|
649
|
+
| 'job.initial_data_sync_payroll.succeeded';
|
|
642
650
|
}
|
|
643
651
|
|
|
644
652
|
export namespace JobCompletionEvent {
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '8.
|
|
1
|
+
export const VERSION = '9.8.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "8.
|
|
1
|
+
export declare const VERSION = "9.8.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "8.
|
|
1
|
+
export declare const VERSION = "9.8.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '8.
|
|
1
|
+
export const VERSION = '9.8.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|