@tryfinch/finch-api 6.21.0 → 6.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +41 -0
- package/core.d.ts +11 -0
- package/core.d.ts.map +1 -1
- package/core.js +1 -1
- package/core.js.map +1 -1
- package/core.mjs +1 -1
- package/core.mjs.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.js +4 -9
- package/index.js.map +1 -1
- package/index.mjs +4 -9
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/pagination.js +6 -6
- package/pagination.js.map +1 -1
- package/pagination.mjs +6 -6
- package/pagination.mjs.map +1 -1
- package/resources/hris/benefits/benefits.d.ts +18 -0
- package/resources/hris/benefits/benefits.d.ts.map +1 -1
- package/resources/hris/benefits/benefits.js.map +1 -1
- package/resources/hris/benefits/benefits.mjs.map +1 -1
- package/resources/hris/benefits/individuals.d.ts +8 -1
- package/resources/hris/benefits/individuals.d.ts.map +1 -1
- package/resources/hris/benefits/individuals.js.map +1 -1
- package/resources/hris/benefits/individuals.mjs.map +1 -1
- package/resources/hris/company/company.d.ts +111 -0
- package/resources/hris/company/company.d.ts.map +1 -0
- package/resources/hris/company/company.js +46 -0
- package/resources/hris/company/company.js.map +1 -0
- package/resources/hris/company/company.mjs +19 -0
- package/resources/hris/company/company.mjs.map +1 -0
- package/resources/hris/company/index.d.ts +3 -0
- package/resources/hris/company/index.d.ts.map +1 -0
- package/resources/hris/company/index.js +10 -0
- package/resources/hris/company/index.js.map +1 -0
- package/resources/hris/company/index.mjs +4 -0
- package/resources/hris/company/index.mjs.map +1 -0
- package/resources/hris/company/pay-statement-item/index.d.ts +3 -0
- package/resources/hris/company/pay-statement-item/index.d.ts.map +1 -0
- package/resources/hris/company/pay-statement-item/index.js +11 -0
- package/resources/hris/company/pay-statement-item/index.js.map +1 -0
- package/resources/hris/company/pay-statement-item/index.mjs +4 -0
- package/resources/hris/company/pay-statement-item/index.mjs.map +1 -0
- package/resources/hris/company/pay-statement-item/pay-statement-item.d.ts +87 -0
- package/resources/hris/company/pay-statement-item/pay-statement-item.d.ts.map +1 -0
- package/resources/hris/company/pay-statement-item/pay-statement-item.js +55 -0
- package/resources/hris/company/pay-statement-item/pay-statement-item.js.map +1 -0
- package/resources/hris/company/pay-statement-item/pay-statement-item.mjs +27 -0
- package/resources/hris/company/pay-statement-item/pay-statement-item.mjs.map +1 -0
- package/resources/hris/company/pay-statement-item/rules.d.ts +333 -0
- package/resources/hris/company/pay-statement-item/rules.d.ts.map +1 -0
- package/resources/hris/company/pay-statement-item/rules.js +41 -0
- package/resources/hris/company/pay-statement-item/rules.js.map +1 -0
- package/resources/hris/company/pay-statement-item/rules.mjs +36 -0
- package/resources/hris/company/pay-statement-item/rules.mjs.map +1 -0
- package/resources/hris/company/pay-statement-item.d.ts +2 -0
- package/resources/hris/company/pay-statement-item.d.ts.map +1 -0
- package/resources/hris/company/pay-statement-item.js +19 -0
- package/resources/hris/company/pay-statement-item.js.map +1 -0
- package/resources/hris/company/pay-statement-item.mjs +3 -0
- package/resources/hris/company/pay-statement-item.mjs.map +1 -0
- package/resources/hris/company.d.ts +1 -106
- package/resources/hris/company.d.ts.map +1 -1
- package/resources/hris/company.js +15 -11
- package/resources/hris/company.js.map +1 -1
- package/resources/hris/company.mjs +1 -9
- package/resources/hris/company.mjs.map +1 -1
- package/resources/hris/directory.d.ts +1 -1
- package/resources/hris/employments.d.ts +8 -3
- package/resources/hris/employments.d.ts.map +1 -1
- package/resources/hris/employments.js.map +1 -1
- package/resources/hris/employments.mjs.map +1 -1
- package/resources/hris/hris.d.ts +2 -2
- package/resources/hris/hris.d.ts.map +1 -1
- package/resources/hris/hris.js +2 -2
- package/resources/hris/hris.js.map +1 -1
- package/resources/hris/hris.mjs +2 -2
- 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 +2 -2
- package/resources/hris/index.js.map +1 -1
- package/resources/hris/index.mjs +1 -1
- package/src/core.ts +15 -1
- package/src/index.ts +4 -11
- package/src/pagination.ts +6 -6
- package/src/resources/hris/benefits/benefits.ts +19 -0
- package/src/resources/hris/benefits/individuals.ts +9 -1
- package/src/resources/hris/company/company.ts +160 -0
- package/src/resources/hris/company/index.ts +9 -0
- package/src/resources/hris/company/pay-statement-item/index.ts +18 -0
- package/src/resources/hris/company/pay-statement-item/pay-statement-item.ts +148 -0
- package/src/resources/hris/company/pay-statement-item/rules.ts +440 -0
- package/src/resources/hris/company/pay-statement-item.ts +3 -0
- package/src/resources/hris/company.ts +1 -137
- package/src/resources/hris/directory.ts +1 -1
- package/src/resources/hris/employments.ts +8 -3
- package/src/resources/hris/hris.ts +2 -2
- package/src/resources/hris/index.ts +1 -1
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1,139 +1,3 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
import * as Core from '../../core';
|
|
5
|
-
import * as HRISAPI from './hris';
|
|
6
|
-
|
|
7
|
-
export class CompanyResource extends APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Read basic company data
|
|
10
|
-
*/
|
|
11
|
-
retrieve(options?: Core.RequestOptions): Core.APIPromise<Company> {
|
|
12
|
-
return this._client.get('/employer/company', options);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export interface Company {
|
|
17
|
-
/**
|
|
18
|
-
* A stable Finch `id` (UUID v4) for the company.
|
|
19
|
-
*/
|
|
20
|
-
id: string;
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* An array of bank account objects associated with the payroll/HRIS system.
|
|
24
|
-
*/
|
|
25
|
-
accounts: Array<Company.Account> | null;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* The array of company departments.
|
|
29
|
-
*/
|
|
30
|
-
departments: Array<Company.Department | null> | null;
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* The employer identification number.
|
|
34
|
-
*/
|
|
35
|
-
ein: string | null;
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* The entity type object.
|
|
39
|
-
*/
|
|
40
|
-
entity: Company.Entity | null;
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* The legal name of the company.
|
|
44
|
-
*/
|
|
45
|
-
legal_name: string | null;
|
|
46
|
-
|
|
47
|
-
locations: Array<HRISAPI.Location | null> | null;
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* The email of the main administrator on the account.
|
|
51
|
-
*/
|
|
52
|
-
primary_email: string | null;
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* The phone number of the main administrator on the account. Format: `XXXXXXXXXX`
|
|
56
|
-
*/
|
|
57
|
-
primary_phone_number: string | null;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export namespace Company {
|
|
61
|
-
export interface Account {
|
|
62
|
-
/**
|
|
63
|
-
* The name of the bank associated in the payroll/HRIS system.
|
|
64
|
-
*/
|
|
65
|
-
account_name?: string | null;
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* 10-12 digit number to specify the bank account
|
|
69
|
-
*/
|
|
70
|
-
account_number?: string | null;
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* The type of bank account.
|
|
74
|
-
*/
|
|
75
|
-
account_type?: 'checking' | 'savings' | null;
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* Name of the banking institution.
|
|
79
|
-
*/
|
|
80
|
-
institution_name?: string | null;
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* A nine-digit code that's based on the U.S. Bank location where your account was
|
|
84
|
-
* opened.
|
|
85
|
-
*/
|
|
86
|
-
routing_number?: string | null;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export interface Department {
|
|
90
|
-
/**
|
|
91
|
-
* The department name.
|
|
92
|
-
*/
|
|
93
|
-
name?: string | null;
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* The parent department, if present.
|
|
97
|
-
*/
|
|
98
|
-
parent?: Department.Parent | null;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
export namespace Department {
|
|
102
|
-
/**
|
|
103
|
-
* The parent department, if present.
|
|
104
|
-
*/
|
|
105
|
-
export interface Parent {
|
|
106
|
-
/**
|
|
107
|
-
* The parent department's name.
|
|
108
|
-
*/
|
|
109
|
-
name?: string | null;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* The entity type object.
|
|
115
|
-
*/
|
|
116
|
-
export interface Entity {
|
|
117
|
-
/**
|
|
118
|
-
* The tax payer subtype of the company.
|
|
119
|
-
*/
|
|
120
|
-
subtype?: 's_corporation' | 'c_corporation' | 'b_corporation' | null;
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* The tax payer type of the company.
|
|
124
|
-
*/
|
|
125
|
-
type?:
|
|
126
|
-
| 'llc'
|
|
127
|
-
| 'lp'
|
|
128
|
-
| 'corporation'
|
|
129
|
-
| 'sole_proprietor'
|
|
130
|
-
| 'non_profit'
|
|
131
|
-
| 'partnership'
|
|
132
|
-
| 'cooperative'
|
|
133
|
-
| null;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
export declare namespace CompanyResource {
|
|
138
|
-
export { type Company as Company };
|
|
139
|
-
}
|
|
3
|
+
export * from './company/index';
|
|
@@ -25,7 +25,7 @@ export class EmploymentDataResponsesPage extends ResponsesPage<EmploymentDataRes
|
|
|
25
25
|
|
|
26
26
|
export interface EmploymentData {
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* A stable Finch `id` (UUID v4) for an individual in the company.
|
|
29
29
|
*/
|
|
30
30
|
id?: string;
|
|
31
31
|
|
|
@@ -51,7 +51,8 @@ export interface EmploymentData {
|
|
|
51
51
|
employment?: EmploymentData.Employment | null;
|
|
52
52
|
|
|
53
53
|
/**
|
|
54
|
-
* The detailed employment status of the individual. Available options: `active`,
|
|
54
|
+
* The detailed employment status of the individual. Available options: `active`,
|
|
55
|
+
* `deceased`, `leave`, `onboarding`, `prehire`, `retired`, `terminated`.
|
|
55
56
|
*/
|
|
56
57
|
employment_status?:
|
|
57
58
|
| 'active'
|
|
@@ -146,7 +147,8 @@ export namespace EmploymentData {
|
|
|
146
147
|
*/
|
|
147
148
|
export interface Employment {
|
|
148
149
|
/**
|
|
149
|
-
* The secondary employment type of the individual. Options: `full_time`,
|
|
150
|
+
* The secondary employment type of the individual. Options: `full_time`,
|
|
151
|
+
* `part_time`, `intern`, `temp`, `seasonal` and `individual_contractor`.
|
|
150
152
|
*/
|
|
151
153
|
subtype?: 'full_time' | 'intern' | 'part_time' | 'temp' | 'seasonal' | 'individual_contractor' | null;
|
|
152
154
|
|
|
@@ -172,6 +174,9 @@ export interface EmploymentDataResponse {
|
|
|
172
174
|
|
|
173
175
|
code?: number;
|
|
174
176
|
|
|
177
|
+
/**
|
|
178
|
+
* A stable Finch `id` (UUID v4) for an individual in the company.
|
|
179
|
+
*/
|
|
175
180
|
individual_id?: string;
|
|
176
181
|
}
|
|
177
182
|
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../resource';
|
|
4
|
-
import * as CompanyAPI from './company';
|
|
5
|
-
import { Company, CompanyResource } from './company';
|
|
6
4
|
import * as DirectoryAPI from './directory';
|
|
7
5
|
import {
|
|
8
6
|
Directory,
|
|
@@ -66,6 +64,8 @@ import {
|
|
|
66
64
|
SupportedBenefitsSinglePage,
|
|
67
65
|
UpdateCompanyBenefitResponse,
|
|
68
66
|
} from './benefits/benefits';
|
|
67
|
+
import * as CompanyAPI from './company/company';
|
|
68
|
+
import { Company, CompanyResource } from './company/company';
|
|
69
69
|
|
|
70
70
|
export class HRIS extends APIResource {
|
|
71
71
|
company: CompanyAPI.CompanyResource = new CompanyAPI.CompanyResource(this._client);
|
|
@@ -18,7 +18,7 @@ export {
|
|
|
18
18
|
type BenefitCreateParams,
|
|
19
19
|
type BenefitUpdateParams,
|
|
20
20
|
} from './benefits/index';
|
|
21
|
-
export { CompanyResource, type Company } from './company';
|
|
21
|
+
export { CompanyResource, type Company } from './company/index';
|
|
22
22
|
export {
|
|
23
23
|
Directory,
|
|
24
24
|
type IndividualInDirectory,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '6.
|
|
1
|
+
export const VERSION = '6.22.1'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "6.
|
|
1
|
+
export declare const VERSION = "6.22.1";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '6.
|
|
1
|
+
export const VERSION = '6.22.1'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|