@tryfinch/finch-api 1.0.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/.eslintrc.js +10 -0
- package/.github/workflows/publish-npm.yml +28 -0
- package/.github/workflows/release-doctor.yml +20 -0
- package/.github/workflows/release.yml +38 -0
- package/.prettierrc +6 -0
- package/.release-please-manifest.json +3 -0
- package/.stats.yml +1 -0
- package/CHANGELOG.md +7 -0
- package/LICENSE +201 -0
- package/README.md +220 -0
- package/api.md +186 -0
- package/bin/check-release-environment +25 -0
- package/bin/check-test-server +50 -0
- package/bin/publish-npm +6 -0
- package/build +12 -0
- package/check-version.ts +18 -0
- package/core.ts +926 -0
- package/dist/cjs/check-version.d.ts +2 -0
- package/dist/cjs/check-version.d.ts.map +1 -0
- package/dist/cjs/check-version.js +23 -0
- package/dist/cjs/check-version.js.map +1 -0
- package/dist/cjs/core.d.ts +268 -0
- package/dist/cjs/core.d.ts.map +1 -0
- package/dist/cjs/core.js +994 -0
- package/dist/cjs/core.js.map +1 -0
- package/dist/cjs/fetch-polyfill.d.ts +6 -0
- package/dist/cjs/fetch-polyfill.d.ts.map +1 -0
- package/dist/cjs/fetch-polyfill.js +57 -0
- package/dist/cjs/fetch-polyfill.js.map +1 -0
- package/dist/cjs/index.d.ts +115 -0
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/index.js +198 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/pagination.d.ts +166 -0
- package/dist/cjs/pagination.d.ts.map +1 -0
- package/dist/cjs/pagination.js +215 -0
- package/dist/cjs/pagination.js.map +1 -0
- package/dist/cjs/resource.d.ts +12 -0
- package/dist/cjs/resource.d.ts.map +1 -0
- package/dist/cjs/resource.js +17 -0
- package/dist/cjs/resource.js.map +1 -0
- package/dist/cjs/resources/account.d.ts +49 -0
- package/dist/cjs/resources/account.d.ts.map +1 -0
- package/dist/cjs/resources/account.js +23 -0
- package/dist/cjs/resources/account.js.map +1 -0
- package/dist/cjs/resources/ats/applications.d.ts +31 -0
- package/dist/cjs/resources/ats/applications.d.ts.map +1 -0
- package/dist/cjs/resources/ats/applications.js +27 -0
- package/dist/cjs/resources/ats/applications.js.map +1 -0
- package/dist/cjs/resources/ats/ats.d.ts +14 -0
- package/dist/cjs/resources/ats/ats.d.ts.map +1 -0
- package/dist/cjs/resources/ats/ats.js +22 -0
- package/dist/cjs/resources/ats/ats.js.map +1 -0
- package/dist/cjs/resources/ats/candidates.d.ts +45 -0
- package/dist/cjs/resources/ats/candidates.d.ts.map +1 -0
- package/dist/cjs/resources/ats/candidates.js +24 -0
- package/dist/cjs/resources/ats/candidates.js.map +1 -0
- package/dist/cjs/resources/ats/index.d.ts +6 -0
- package/dist/cjs/resources/ats/index.d.ts.map +1 -0
- package/dist/cjs/resources/ats/index.js +12 -0
- package/dist/cjs/resources/ats/index.js.map +1 -0
- package/dist/cjs/resources/ats/jobs.d.ts +42 -0
- package/dist/cjs/resources/ats/jobs.d.ts.map +1 -0
- package/dist/cjs/resources/ats/jobs.js +23 -0
- package/dist/cjs/resources/ats/jobs.js.map +1 -0
- package/dist/cjs/resources/ats/offers.d.ts +34 -0
- package/dist/cjs/resources/ats/offers.d.ts.map +1 -0
- package/dist/cjs/resources/ats/offers.js +23 -0
- package/dist/cjs/resources/ats/offers.js.map +1 -0
- package/dist/cjs/resources/ats/stages.d.ts +23 -0
- package/dist/cjs/resources/ats/stages.d.ts.map +1 -0
- package/dist/cjs/resources/ats/stages.js +21 -0
- package/dist/cjs/resources/ats/stages.js.map +1 -0
- package/dist/cjs/resources/hris/benefits/benefits.d.ts +155 -0
- package/dist/cjs/resources/hris/benefits/benefits.d.ts.map +1 -0
- package/dist/cjs/resources/hris/benefits/benefits.js +57 -0
- package/dist/cjs/resources/hris/benefits/benefits.js.map +1 -0
- package/dist/cjs/resources/hris/benefits/index.d.ts +26 -0
- package/dist/cjs/resources/hris/benefits/index.d.ts.map +1 -0
- package/dist/cjs/resources/hris/benefits/index.js +42 -0
- package/dist/cjs/resources/hris/benefits/index.js.map +1 -0
- package/dist/cjs/resources/hris/benefits/individuals.d.ts +163 -0
- package/dist/cjs/resources/hris/benefits/individuals.d.ts.map +1 -0
- package/dist/cjs/resources/hris/benefits/individuals.js +68 -0
- package/dist/cjs/resources/hris/benefits/individuals.js.map +1 -0
- package/dist/cjs/resources/hris/company.d.ts +104 -0
- package/dist/cjs/resources/hris/company.d.ts.map +1 -0
- package/dist/cjs/resources/hris/company.js +15 -0
- package/dist/cjs/resources/hris/company.js.map +1 -0
- package/dist/cjs/resources/hris/directory.d.ts +65 -0
- package/dist/cjs/resources/hris/directory.d.ts.map +1 -0
- package/dist/cjs/resources/hris/directory.js +21 -0
- package/dist/cjs/resources/hris/directory.js.map +1 -0
- package/dist/cjs/resources/hris/hris.d.ts +95 -0
- package/dist/cjs/resources/hris/hris.d.ts.map +1 -0
- package/dist/cjs/resources/hris/hris.js +24 -0
- package/dist/cjs/resources/hris/hris.js.map +1 -0
- package/dist/cjs/resources/hris/index.d.ts +31 -0
- package/dist/cjs/resources/hris/index.d.ts.map +1 -0
- package/dist/cjs/resources/hris/index.js +44 -0
- package/dist/cjs/resources/hris/index.js.map +1 -0
- package/dist/cjs/resources/hris/individuals/employment-data.d.ts +151 -0
- package/dist/cjs/resources/hris/individuals/employment-data.d.ts.map +1 -0
- package/dist/cjs/resources/hris/individuals/employment-data.js +26 -0
- package/dist/cjs/resources/hris/individuals/employment-data.js.map +1 -0
- package/dist/cjs/resources/hris/individuals/index.d.ts +13 -0
- package/dist/cjs/resources/hris/individuals/index.d.ts.map +1 -0
- package/dist/cjs/resources/hris/individuals/index.js +28 -0
- package/dist/cjs/resources/hris/individuals/index.js.map +1 -0
- package/dist/cjs/resources/hris/individuals/individuals.d.ts +86 -0
- package/dist/cjs/resources/hris/individuals/individuals.d.ts.map +1 -0
- package/dist/cjs/resources/hris/individuals/individuals.js +28 -0
- package/dist/cjs/resources/hris/individuals/individuals.js.map +1 -0
- package/dist/cjs/resources/hris/pay-statements.d.ts +201 -0
- package/dist/cjs/resources/hris/pay-statements.d.ts.map +1 -0
- package/dist/cjs/resources/hris/pay-statements.js +25 -0
- package/dist/cjs/resources/hris/pay-statements.js.map +1 -0
- package/dist/cjs/resources/hris/payments.d.ts +54 -0
- package/dist/cjs/resources/hris/payments.d.ts.map +1 -0
- package/dist/cjs/resources/hris/payments.js +18 -0
- package/dist/cjs/resources/hris/payments.js.map +1 -0
- package/dist/cjs/resources/index.d.ts +5 -0
- package/dist/cjs/resources/index.d.ts.map +1 -0
- package/dist/cjs/resources/index.js +39 -0
- package/dist/cjs/resources/index.js.map +1 -0
- package/dist/cjs/resources/providers.d.ts +46 -0
- package/dist/cjs/resources/providers.d.ts.map +1 -0
- package/dist/cjs/resources/providers.js +18 -0
- package/dist/cjs/resources/providers.js.map +1 -0
- package/dist/cjs/resources/top-level.d.ts +2 -0
- package/dist/cjs/resources/top-level.d.ts.map +1 -0
- package/dist/cjs/resources/top-level.js +4 -0
- package/dist/cjs/resources/top-level.js.map +1 -0
- package/dist/cjs/tests/api-resources/account.test.d.ts +2 -0
- package/dist/cjs/tests/api-resources/account.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/account.test.js +66 -0
- package/dist/cjs/tests/api-resources/account.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/ats/applications.test.d.ts +2 -0
- package/dist/cjs/tests/api-resources/ats/applications.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/ats/applications.test.js +73 -0
- package/dist/cjs/tests/api-resources/ats/applications.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/ats/candidates.test.d.ts +2 -0
- package/dist/cjs/tests/api-resources/ats/candidates.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/ats/candidates.test.js +73 -0
- package/dist/cjs/tests/api-resources/ats/candidates.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/ats/jobs.test.d.ts +2 -0
- package/dist/cjs/tests/api-resources/ats/jobs.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/ats/jobs.test.js +73 -0
- package/dist/cjs/tests/api-resources/ats/jobs.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/ats/offers.test.d.ts +2 -0
- package/dist/cjs/tests/api-resources/ats/offers.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/ats/offers.test.js +73 -0
- package/dist/cjs/tests/api-resources/ats/offers.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/ats/stages.test.d.ts +2 -0
- package/dist/cjs/tests/api-resources/ats/stages.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/ats/stages.test.js +55 -0
- package/dist/cjs/tests/api-resources/ats/stages.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/hris/benefits/benefits.test.d.ts +2 -0
- package/dist/cjs/tests/api-resources/hris/benefits/benefits.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/hris/benefits/benefits.test.js +116 -0
- package/dist/cjs/tests/api-resources/hris/benefits/benefits.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/hris/benefits/individuals.test.d.ts +2 -0
- package/dist/cjs/tests/api-resources/hris/benefits/individuals.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/hris/benefits/individuals.test.js +103 -0
- package/dist/cjs/tests/api-resources/hris/benefits/individuals.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/hris/company.test.d.ts +2 -0
- package/dist/cjs/tests/api-resources/hris/company.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/hris/company.test.js +55 -0
- package/dist/cjs/tests/api-resources/hris/company.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/hris/directory.test.d.ts +2 -0
- package/dist/cjs/tests/api-resources/hris/directory.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/hris/directory.test.js +62 -0
- package/dist/cjs/tests/api-resources/hris/directory.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/hris/individuals/employment-data.test.d.ts +2 -0
- package/dist/cjs/tests/api-resources/hris/individuals/employment-data.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/hris/individuals/employment-data.test.js +56 -0
- package/dist/cjs/tests/api-resources/hris/individuals/employment-data.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/hris/individuals/individuals.test.d.ts +2 -0
- package/dist/cjs/tests/api-resources/hris/individuals/individuals.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/hris/individuals/individuals.test.js +68 -0
- package/dist/cjs/tests/api-resources/hris/individuals/individuals.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/hris/pay-statements.test.d.ts +2 -0
- package/dist/cjs/tests/api-resources/hris/pay-statements.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/hris/pay-statements.test.js +64 -0
- package/dist/cjs/tests/api-resources/hris/pay-statements.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/hris/payments.test.d.ts +2 -0
- package/dist/cjs/tests/api-resources/hris/payments.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/hris/payments.test.js +52 -0
- package/dist/cjs/tests/api-resources/hris/payments.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/providers.test.d.ts +2 -0
- package/dist/cjs/tests/api-resources/providers.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/providers.test.js +55 -0
- package/dist/cjs/tests/api-resources/providers.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/top-level.test.d.ts +2 -0
- package/dist/cjs/tests/api-resources/top-level.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/top-level.test.js +52 -0
- package/dist/cjs/tests/api-resources/top-level.test.js.map +1 -0
- package/dist/cjs/tests/form.test.d.ts +2 -0
- package/dist/cjs/tests/form.test.d.ts.map +1 -0
- package/dist/cjs/tests/form.test.js +61 -0
- package/dist/cjs/tests/form.test.js.map +1 -0
- package/dist/cjs/tests/index.test.d.ts +2 -0
- package/dist/cjs/tests/index.test.d.ts.map +1 -0
- package/dist/cjs/tests/index.test.js +34 -0
- package/dist/cjs/tests/index.test.js.map +1 -0
- package/dist/cjs/tests/responses.test.d.ts +2 -0
- package/dist/cjs/tests/responses.test.d.ts.map +1 -0
- package/dist/cjs/tests/responses.test.js +60 -0
- package/dist/cjs/tests/responses.test.js.map +1 -0
- package/dist/cjs/version.d.ts +2 -0
- package/dist/cjs/version.d.ts.map +1 -0
- package/dist/cjs/version.js +5 -0
- package/dist/cjs/version.js.map +1 -0
- package/fetch-polyfill.ts +69 -0
- package/index.ts +212 -0
- package/jest.config.js +8 -0
- package/package.json +47 -0
- package/pagination.ts +401 -0
- package/release-please-config.json +12 -0
- package/resource.ts +24 -0
- package/resources/account.ts +63 -0
- package/resources/ats/applications.ts +55 -0
- package/resources/ats/ats.ts +16 -0
- package/resources/ats/candidates.ts +74 -0
- package/resources/ats/index.ts +7 -0
- package/resources/ats/jobs.ts +70 -0
- package/resources/ats/offers.ts +57 -0
- package/resources/ats/stages.ts +31 -0
- package/resources/hris/benefits/benefits.ts +214 -0
- package/resources/hris/benefits/index.ts +27 -0
- package/resources/hris/benefits/individuals.ts +234 -0
- package/resources/hris/company.ts +127 -0
- package/resources/hris/directory.ts +87 -0
- package/resources/hris/hris.ts +113 -0
- package/resources/hris/index.ts +32 -0
- package/resources/hris/individuals/employment-data.ts +188 -0
- package/resources/hris/individuals/index.ts +14 -0
- package/resources/hris/individuals/individuals.ts +128 -0
- package/resources/hris/pay-statements.ts +251 -0
- package/resources/hris/payments.ts +73 -0
- package/resources/index.ts +6 -0
- package/resources/providers.ts +59 -0
- package/resources/top-level.ts +3 -0
- package/tests/api-resources/account.test.ts +29 -0
- package/tests/api-resources/ats/applications.test.ts +36 -0
- package/tests/api-resources/ats/candidates.test.ts +36 -0
- package/tests/api-resources/ats/jobs.test.ts +36 -0
- package/tests/api-resources/ats/offers.test.ts +36 -0
- package/tests/api-resources/ats/stages.test.ts +18 -0
- package/tests/api-resources/hris/benefits/benefits.test.ts +79 -0
- package/tests/api-resources/hris/benefits/individuals.test.ts +66 -0
- package/tests/api-resources/hris/company.test.ts +18 -0
- package/tests/api-resources/hris/directory.test.ts +25 -0
- package/tests/api-resources/hris/individuals/employment-data.test.ts +19 -0
- package/tests/api-resources/hris/individuals/individuals.test.ts +31 -0
- package/tests/api-resources/hris/pay-statements.test.ts +27 -0
- package/tests/api-resources/hris/payments.test.ts +15 -0
- package/tests/api-resources/providers.test.ts +18 -0
- package/tests/api-resources/top-level.test.ts +15 -0
- package/tests/form.test.ts +27 -0
- package/tests/index.test.ts +34 -0
- package/tests/responses.test.ts +25 -0
- package/tsconfig.cjs.json +8 -0
- package/tsconfig.json +39 -0
- package/typings/digest-fetch/index.d.ts +33 -0
- package/version.ts +1 -0
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import * as Core from '../../core';
|
|
2
|
+
import { APIResource } from '../../resource';
|
|
3
|
+
import * as HRIS from '../../resources/hris';
|
|
4
|
+
export declare class CompanyResource extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Read basic company data
|
|
7
|
+
*/
|
|
8
|
+
retrieve(options?: Core.RequestOptions): Promise<Core.APIResponse<Company>>;
|
|
9
|
+
}
|
|
10
|
+
export interface Company {
|
|
11
|
+
/**
|
|
12
|
+
* An array of bank account objects associated with the payroll/HRIS system.
|
|
13
|
+
*/
|
|
14
|
+
accounts: Array<Company.Accounts> | null;
|
|
15
|
+
/**
|
|
16
|
+
* The array of company departments.
|
|
17
|
+
*/
|
|
18
|
+
departments: Array<Company.Departments | null> | null;
|
|
19
|
+
/**
|
|
20
|
+
* The employer identification number.
|
|
21
|
+
*/
|
|
22
|
+
ein: string | null;
|
|
23
|
+
/**
|
|
24
|
+
* The entity type object.
|
|
25
|
+
*/
|
|
26
|
+
entity: Company.Entity | null;
|
|
27
|
+
/**
|
|
28
|
+
* A stable Finch `id` (UUID v4) for the company.
|
|
29
|
+
*/
|
|
30
|
+
id: string;
|
|
31
|
+
/**
|
|
32
|
+
* The legal name of the company.
|
|
33
|
+
*/
|
|
34
|
+
legal_name: string | null;
|
|
35
|
+
locations: Array<HRIS.Location | null> | null;
|
|
36
|
+
/**
|
|
37
|
+
* The email of the main administrator on the account.
|
|
38
|
+
*/
|
|
39
|
+
primary_email: string | null;
|
|
40
|
+
/**
|
|
41
|
+
* The phone number of the main administrator on the account. Format: `XXXXXXXXXX`
|
|
42
|
+
*/
|
|
43
|
+
primary_phone_number: string | null;
|
|
44
|
+
}
|
|
45
|
+
export declare namespace Company {
|
|
46
|
+
/**
|
|
47
|
+
* The entity type object.
|
|
48
|
+
*/
|
|
49
|
+
interface Entity {
|
|
50
|
+
/**
|
|
51
|
+
* The tax payer subtype of the company.
|
|
52
|
+
*/
|
|
53
|
+
subtype?: 's_corporation' | 'c_corporation' | 'b_corporation' | null;
|
|
54
|
+
/**
|
|
55
|
+
* The tax payer type of the company.
|
|
56
|
+
*/
|
|
57
|
+
type?: 'llc' | 'corporation' | 'sole_proprietor' | 'non_profit' | 'partnership' | 'cooperative' | null;
|
|
58
|
+
}
|
|
59
|
+
interface Departments {
|
|
60
|
+
/**
|
|
61
|
+
* The department name.
|
|
62
|
+
*/
|
|
63
|
+
name?: string | null;
|
|
64
|
+
/**
|
|
65
|
+
* The parent department, if present.
|
|
66
|
+
*/
|
|
67
|
+
parent?: Departments.Parent | null;
|
|
68
|
+
}
|
|
69
|
+
namespace Departments {
|
|
70
|
+
/**
|
|
71
|
+
* The parent department, if present.
|
|
72
|
+
*/
|
|
73
|
+
interface Parent {
|
|
74
|
+
/**
|
|
75
|
+
* The parent department's name.
|
|
76
|
+
*/
|
|
77
|
+
name?: string | null;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
interface Accounts {
|
|
81
|
+
/**
|
|
82
|
+
* The name of the bank associated in the payroll/HRIS system.
|
|
83
|
+
*/
|
|
84
|
+
account_name?: string | null;
|
|
85
|
+
/**
|
|
86
|
+
* 10-12 digit number to specify the bank account
|
|
87
|
+
*/
|
|
88
|
+
account_number?: string | null;
|
|
89
|
+
/**
|
|
90
|
+
* The type of bank account.
|
|
91
|
+
*/
|
|
92
|
+
account_type?: 'checking' | 'savings' | null;
|
|
93
|
+
/**
|
|
94
|
+
* Name of the banking institution.
|
|
95
|
+
*/
|
|
96
|
+
institution_name?: string | null;
|
|
97
|
+
/**
|
|
98
|
+
* A nine-digit code that's based on the U.S. Bank location where your account was
|
|
99
|
+
* opened.
|
|
100
|
+
*/
|
|
101
|
+
routing_number?: string | null;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
//# sourceMappingURL=company.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"company.d.ts","sourceRoot":"","sources":["../../../../resources/hris/company.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,KAAK,IAAI,MAAM,kBAAkB,CAAC;AAEzC,qBAAa,eAAgB,SAAQ,WAAW;IAC9C;;OAEG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;CAG5E;AAED,MAAM,WAAW,OAAO;IACtB;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC;IAEzC;;OAEG;IACH,WAAW,EAAE,KAAK,CAAC,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;IAEtD;;OAEG;IACH,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IAEnB;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAE9B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B,SAAS,EAAE,KAAK,CAAC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;IAE9C;;OAEG;IACH,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7B;;OAEG;IACH,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;CACrC;AAED,yBAAiB,OAAO,CAAC;IACvB;;OAEG;IACH,UAAiB,MAAM;QACrB;;WAEG;QACH,OAAO,CAAC,EAAE,eAAe,GAAG,eAAe,GAAG,eAAe,GAAG,IAAI,CAAC;QAErE;;WAEG;QACH,IAAI,CAAC,EAAE,KAAK,GAAG,aAAa,GAAG,iBAAiB,GAAG,YAAY,GAAG,aAAa,GAAG,aAAa,GAAG,IAAI,CAAC;KACxG;IAED,UAAiB,WAAW;QAC1B;;WAEG;QACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAErB;;WAEG;QACH,MAAM,CAAC,EAAE,WAAW,CAAC,MAAM,GAAG,IAAI,CAAC;KACpC;IAED,UAAiB,WAAW,CAAC;QAC3B;;WAEG;QACH,UAAiB,MAAM;YACrB;;eAEG;YACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;SACtB;KACF;IAED,UAAiB,QAAQ;QACvB;;WAEG;QACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAE7B;;WAEG;QACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAE/B;;WAEG;QACH,YAAY,CAAC,EAAE,UAAU,GAAG,SAAS,GAAG,IAAI,CAAC;QAE7C;;WAEG;QACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAEjC;;;WAGG;QACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAChC;CACF"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
exports.CompanyResource = void 0;
|
|
5
|
+
const resource_1 = require('../../resource');
|
|
6
|
+
class CompanyResource extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Read basic company data
|
|
9
|
+
*/
|
|
10
|
+
retrieve(options) {
|
|
11
|
+
return this.get('/employer/company', options);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.CompanyResource = CompanyResource;
|
|
15
|
+
//# sourceMappingURL=company.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"company.js","sourceRoot":"","sources":["../../../../resources/hris/company.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAGrD,yCAAyC;AAGzC,MAAa,eAAgB,SAAQ,sBAAW;IAC9C;;OAEG;IACH,QAAQ,CAAC,OAA6B;QACpC,OAAO,IAAI,CAAC,GAAG,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC;IAChD,CAAC;CACF;AAPD,0CAOC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import * as Core from '../../core';
|
|
2
|
+
import { APIResource } from '../../resource';
|
|
3
|
+
import { IndividualsPage, IndividualsPageParams } from '../../pagination';
|
|
4
|
+
export declare class Directory extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Read company directory and organization structure
|
|
7
|
+
*/
|
|
8
|
+
listIndividuals(
|
|
9
|
+
query?: DirectoryListIndividualsParams,
|
|
10
|
+
options?: Core.RequestOptions,
|
|
11
|
+
): Core.PagePromise<IndividualsPage>;
|
|
12
|
+
listIndividuals(options?: Core.RequestOptions): Core.PagePromise<IndividualsPage>;
|
|
13
|
+
}
|
|
14
|
+
export interface IndividualInDirectory {
|
|
15
|
+
/**
|
|
16
|
+
* The department object.
|
|
17
|
+
*/
|
|
18
|
+
department?: IndividualInDirectory.Department | null;
|
|
19
|
+
/**
|
|
20
|
+
* The legal first name of the individual.
|
|
21
|
+
*/
|
|
22
|
+
first_name?: string | null;
|
|
23
|
+
/**
|
|
24
|
+
* A stable Finch id (UUID v4) for an individual in the company.
|
|
25
|
+
*/
|
|
26
|
+
id?: string;
|
|
27
|
+
/**
|
|
28
|
+
* `true` if the individual is an active employee or contractor at the company.
|
|
29
|
+
*/
|
|
30
|
+
is_active?: boolean | null;
|
|
31
|
+
/**
|
|
32
|
+
* The legal last name of the individual.
|
|
33
|
+
*/
|
|
34
|
+
last_name?: string | null;
|
|
35
|
+
/**
|
|
36
|
+
* The manager object.
|
|
37
|
+
*/
|
|
38
|
+
manager?: IndividualInDirectory.Manager | null;
|
|
39
|
+
/**
|
|
40
|
+
* The legal middle name of the individual.
|
|
41
|
+
*/
|
|
42
|
+
middle_name?: string | null;
|
|
43
|
+
}
|
|
44
|
+
export declare namespace IndividualInDirectory {
|
|
45
|
+
/**
|
|
46
|
+
* The manager object.
|
|
47
|
+
*/
|
|
48
|
+
interface Manager {
|
|
49
|
+
/**
|
|
50
|
+
* A stable Finch `id` (UUID v4) for an individual in the company.
|
|
51
|
+
*/
|
|
52
|
+
id?: string;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* The department object.
|
|
56
|
+
*/
|
|
57
|
+
interface Department {
|
|
58
|
+
/**
|
|
59
|
+
* The name of the department.
|
|
60
|
+
*/
|
|
61
|
+
name?: string | null;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
export interface DirectoryListIndividualsParams extends IndividualsPageParams {}
|
|
65
|
+
//# sourceMappingURL=directory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"directory.d.ts","sourceRoot":"","sources":["../../../../resources/hris/directory.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAEtE,qBAAa,SAAU,SAAQ,WAAW;IACxC;;OAEG;IACH,eAAe,CACb,KAAK,CAAC,EAAE,8BAA8B,EACtC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,WAAW,CAAC,eAAe,CAAC;IACpC,eAAe,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,WAAW,CAAC,eAAe,CAAC;CAUlF;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,UAAU,CAAC,EAAE,qBAAqB,CAAC,UAAU,GAAG,IAAI,CAAC;IAErD;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAE3B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B;;OAEG;IACH,OAAO,CAAC,EAAE,qBAAqB,CAAC,OAAO,GAAG,IAAI,CAAC;IAE/C;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAED,yBAAiB,qBAAqB,CAAC;IACrC;;OAEG;IACH,UAAiB,OAAO;QACtB;;WAEG;QACH,EAAE,CAAC,EAAE,MAAM,CAAC;KACb;IAED;;OAEG;IACH,UAAiB,UAAU;QACzB;;WAEG;QACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KACtB;CACF;AAED,MAAM,WAAW,8BAA+B,SAAQ,qBAAqB;CAAG"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
exports.Directory = void 0;
|
|
5
|
+
const resource_1 = require('../../resource');
|
|
6
|
+
const core_1 = require('../../core');
|
|
7
|
+
const pagination_1 = require('../../pagination');
|
|
8
|
+
class Directory extends resource_1.APIResource {
|
|
9
|
+
listIndividuals(query = {}, options) {
|
|
10
|
+
if ((0, core_1.isRequestOptions)(query)) {
|
|
11
|
+
return this.listIndividuals({}, query);
|
|
12
|
+
}
|
|
13
|
+
return this.getAPIList(
|
|
14
|
+
'/employer/directory',
|
|
15
|
+
pagination_1.IndividualsPage,
|
|
16
|
+
Object.assign({ query }, options),
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.Directory = Directory;
|
|
21
|
+
//# sourceMappingURL=directory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"directory.js","sourceRoot":"","sources":["../../../../resources/hris/directory.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAGrD,yCAAyC;AACzC,iCAA0C;AAC1C,6CAAsE;AAEtE,MAAa,SAAU,SAAQ,sBAAW;IASxC,eAAe,CACb,QAA8D,EAAE,EAChE,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,eAAe,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SACxC;QACD,OAAO,IAAI,CAAC,UAAU,CAAC,qBAAqB,EAAE,4BAAe,kBAAI,KAAK,IAAK,OAAO,EAAG,CAAC;IACxF,CAAC;CACF;AAlBD,8BAkBC"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { APIResource } from '../../resource';
|
|
2
|
+
import { CompanyResource } from './company';
|
|
3
|
+
import { Payments } from './payments';
|
|
4
|
+
import { PayStatements } from './pay-statements';
|
|
5
|
+
import { Directory } from './directory';
|
|
6
|
+
import { Individuals } from './individuals/individuals';
|
|
7
|
+
import { Benefits } from './benefits/benefits';
|
|
8
|
+
export declare class HRIS extends APIResource {
|
|
9
|
+
company: CompanyResource;
|
|
10
|
+
payments: Payments;
|
|
11
|
+
payStatements: PayStatements;
|
|
12
|
+
directory: Directory;
|
|
13
|
+
individuals: Individuals;
|
|
14
|
+
benefits: Benefits;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* The employee's income as reported by the provider. This may not always be
|
|
18
|
+
* annualized income, but may be in units of bi-weekly, semi-monthly, daily, etc,
|
|
19
|
+
* depending on what information the provider returns.
|
|
20
|
+
*/
|
|
21
|
+
export interface Income {
|
|
22
|
+
/**
|
|
23
|
+
* The income amount in cents.
|
|
24
|
+
*/
|
|
25
|
+
amount?: number | null;
|
|
26
|
+
/**
|
|
27
|
+
* The currency code.
|
|
28
|
+
*/
|
|
29
|
+
currency?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
* The date the income amount went into effect.
|
|
32
|
+
*/
|
|
33
|
+
effective_date?: string | null;
|
|
34
|
+
/**
|
|
35
|
+
* The income unit of payment. Options: `yearly`, `quarterly`, `monthly`,
|
|
36
|
+
* `semi_monthly`, `bi_weekly`, `weekly`, `daily`, `hourly`, and `fixed`.
|
|
37
|
+
*/
|
|
38
|
+
unit?:
|
|
39
|
+
| 'yearly'
|
|
40
|
+
| 'quarterly'
|
|
41
|
+
| 'monthly'
|
|
42
|
+
| 'semi_monthly'
|
|
43
|
+
| 'bi_weekly'
|
|
44
|
+
| 'weekly'
|
|
45
|
+
| 'daily'
|
|
46
|
+
| 'hourly'
|
|
47
|
+
| 'fixed'
|
|
48
|
+
| null;
|
|
49
|
+
}
|
|
50
|
+
export interface Location {
|
|
51
|
+
/**
|
|
52
|
+
* City, district, suburb, town, or village.
|
|
53
|
+
*/
|
|
54
|
+
city?: string | null;
|
|
55
|
+
/**
|
|
56
|
+
* The 2-letter ISO 3166 country code.
|
|
57
|
+
*/
|
|
58
|
+
country?: string | null;
|
|
59
|
+
/**
|
|
60
|
+
* Street address or PO box.
|
|
61
|
+
*/
|
|
62
|
+
line1?: string | null;
|
|
63
|
+
/**
|
|
64
|
+
* Apartment, suite, unit, or building.
|
|
65
|
+
*/
|
|
66
|
+
line2?: string | null;
|
|
67
|
+
name?: string | null;
|
|
68
|
+
/**
|
|
69
|
+
* The postal code or zip code.
|
|
70
|
+
*/
|
|
71
|
+
postal_code?: string | null;
|
|
72
|
+
source_id?: string | null;
|
|
73
|
+
/**
|
|
74
|
+
* The state code.
|
|
75
|
+
*/
|
|
76
|
+
state?: string | null;
|
|
77
|
+
}
|
|
78
|
+
export interface Money {
|
|
79
|
+
/**
|
|
80
|
+
* Amount for money object (in cents)
|
|
81
|
+
*/
|
|
82
|
+
amount?: number;
|
|
83
|
+
currency?: string;
|
|
84
|
+
}
|
|
85
|
+
export interface Paging {
|
|
86
|
+
/**
|
|
87
|
+
* The total number of elements for the entire query (not just the given page)
|
|
88
|
+
*/
|
|
89
|
+
count?: number;
|
|
90
|
+
/**
|
|
91
|
+
* The current start index of the returned list of elements
|
|
92
|
+
*/
|
|
93
|
+
offset?: number;
|
|
94
|
+
}
|
|
95
|
+
//# sourceMappingURL=hris.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hris.d.ts","sourceRoot":"","sources":["../../../../resources/hris/hris.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAE/C,qBAAa,IAAK,SAAQ,WAAW;IACnC,OAAO,EAAE,eAAe,CAAoC;IAC5D,QAAQ,EAAE,QAAQ,CAA6B;IAC/C,aAAa,EAAE,aAAa,CAAkC;IAC9D,SAAS,EAAE,SAAS,CAA8B;IAClD,WAAW,EAAE,WAAW,CAAgC;IACxD,QAAQ,EAAE,QAAQ,CAA6B;CAChD;AAED;;;;GAIG;AACH,MAAM,WAAW,MAAM;IACrB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B;;;OAGG;IACH,IAAI,CAAC,EACD,QAAQ,GACR,WAAW,GACX,SAAS,GACT,cAAc,GACd,WAAW,GACX,QAAQ,GACR,OAAO,GACP,QAAQ,GACR,OAAO,GACP,IAAI,CAAC;CACV;AAED,MAAM,WAAW,QAAQ;IACvB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAExB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,MAAM,WAAW,KAAK;IACpB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,MAAM;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
exports.HRIS = void 0;
|
|
5
|
+
const resource_1 = require('../../resource');
|
|
6
|
+
const company_1 = require('./company');
|
|
7
|
+
const payments_1 = require('./payments');
|
|
8
|
+
const pay_statements_1 = require('./pay-statements');
|
|
9
|
+
const directory_1 = require('./directory');
|
|
10
|
+
const individuals_1 = require('./individuals/individuals');
|
|
11
|
+
const benefits_1 = require('./benefits/benefits');
|
|
12
|
+
class HRIS extends resource_1.APIResource {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments);
|
|
15
|
+
this.company = new company_1.CompanyResource(this.client);
|
|
16
|
+
this.payments = new payments_1.Payments(this.client);
|
|
17
|
+
this.payStatements = new pay_statements_1.PayStatements(this.client);
|
|
18
|
+
this.directory = new directory_1.Directory(this.client);
|
|
19
|
+
this.individuals = new individuals_1.Individuals(this.client);
|
|
20
|
+
this.benefits = new benefits_1.Benefits(this.client);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.HRIS = HRIS;
|
|
24
|
+
//# sourceMappingURL=hris.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hris.js","sourceRoot":"","sources":["../../../../resources/hris/hris.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAErD,yCAAyC;AACzC,uCAA4C;AAC5C,yCAAsC;AACtC,qDAAiD;AACjD,2CAAwC;AACxC,2DAAwD;AACxD,kDAA+C;AAE/C,MAAa,IAAK,SAAQ,sBAAW;IAArC;;QACE,YAAO,GAAoB,IAAI,yBAAe,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC5D,aAAQ,GAAa,IAAI,mBAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC/C,kBAAa,GAAkB,IAAI,8BAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC9D,cAAS,GAAc,IAAI,qBAAS,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAClD,gBAAW,GAAgB,IAAI,yBAAW,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACxD,aAAQ,GAAa,IAAI,mBAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACjD,CAAC;CAAA;AAPD,oBAOC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export {
|
|
2
|
+
BenefitFrequency,
|
|
3
|
+
BenefitType,
|
|
4
|
+
BenfitContribution,
|
|
5
|
+
CompanyBenefit,
|
|
6
|
+
CreateCompanyBenefitsResponse,
|
|
7
|
+
SupportedBenefit,
|
|
8
|
+
UpdateCompanyBenefitResponse,
|
|
9
|
+
BenefitCreateParams,
|
|
10
|
+
BenefitUpdateParams,
|
|
11
|
+
CompanyBenefitsSinglePage,
|
|
12
|
+
SupportedBenefitsSinglePage,
|
|
13
|
+
} from './benefits';
|
|
14
|
+
export { Company } from './company';
|
|
15
|
+
export { Income, Location, Money, Paging } from './hris';
|
|
16
|
+
export {
|
|
17
|
+
Individual,
|
|
18
|
+
IndividualResponse,
|
|
19
|
+
IndividualRetrieveManyParams,
|
|
20
|
+
IndividualResponsesResponsesPage,
|
|
21
|
+
} from './individuals';
|
|
22
|
+
export { IndividualInDirectory, DirectoryListIndividualsParams } from './directory';
|
|
23
|
+
export {
|
|
24
|
+
PayStatement,
|
|
25
|
+
PayStatementResponse,
|
|
26
|
+
PayStatementResponseBody,
|
|
27
|
+
PayStatementRetrieveManyParams,
|
|
28
|
+
PayStatementResponsesResponsesPage,
|
|
29
|
+
} from './pay-statements';
|
|
30
|
+
export { Payment, PaymentListParams, PaymentsSinglePage } from './payments';
|
|
31
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../resources/hris/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,kBAAkB,EAClB,cAAc,EACd,6BAA6B,EAC7B,gBAAgB,EAChB,4BAA4B,EAC5B,mBAAmB,EACnB,mBAAmB,EACnB,yBAAyB,EACzB,2BAA2B,GAC5B,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AACzD,OAAO,EACL,UAAU,EACV,kBAAkB,EAClB,4BAA4B,EAC5B,gCAAgC,GACjC,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,qBAAqB,EAAE,8BAA8B,EAAE,MAAM,aAAa,CAAC;AACpF,OAAO,EACL,YAAY,EACZ,oBAAoB,EACpB,wBAAwB,EACxB,8BAA8B,EAC9B,kCAAkC,GACnC,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
exports.PaymentsSinglePage =
|
|
5
|
+
exports.PayStatementResponsesResponsesPage =
|
|
6
|
+
exports.IndividualResponsesResponsesPage =
|
|
7
|
+
exports.SupportedBenefitsSinglePage =
|
|
8
|
+
exports.CompanyBenefitsSinglePage =
|
|
9
|
+
void 0;
|
|
10
|
+
var benefits_1 = require('./benefits');
|
|
11
|
+
Object.defineProperty(exports, 'CompanyBenefitsSinglePage', {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () {
|
|
14
|
+
return benefits_1.CompanyBenefitsSinglePage;
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(exports, 'SupportedBenefitsSinglePage', {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () {
|
|
20
|
+
return benefits_1.SupportedBenefitsSinglePage;
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
var individuals_1 = require('./individuals');
|
|
24
|
+
Object.defineProperty(exports, 'IndividualResponsesResponsesPage', {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () {
|
|
27
|
+
return individuals_1.IndividualResponsesResponsesPage;
|
|
28
|
+
},
|
|
29
|
+
});
|
|
30
|
+
var pay_statements_1 = require('./pay-statements');
|
|
31
|
+
Object.defineProperty(exports, 'PayStatementResponsesResponsesPage', {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function () {
|
|
34
|
+
return pay_statements_1.PayStatementResponsesResponsesPage;
|
|
35
|
+
},
|
|
36
|
+
});
|
|
37
|
+
var payments_1 = require('./payments');
|
|
38
|
+
Object.defineProperty(exports, 'PaymentsSinglePage', {
|
|
39
|
+
enumerable: true,
|
|
40
|
+
get: function () {
|
|
41
|
+
return payments_1.PaymentsSinglePage;
|
|
42
|
+
},
|
|
43
|
+
});
|
|
44
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../resources/hris/index.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAErD,uCAYoB;AAFlB,qHAAA,yBAAyB,OAAA;AACzB,uHAAA,2BAA2B,OAAA;AAI7B,6CAKuB;AADrB,+HAAA,gCAAgC,OAAA;AAGlC,mDAM0B;AADxB,oIAAA,kCAAkC,OAAA;AAEpC,uCAA4E;AAAvC,8GAAA,kBAAkB,OAAA"}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import * as Core from '../../../core';
|
|
2
|
+
import { APIResource } from '../../../resource';
|
|
3
|
+
import * as HRIS from '../../../resources/hris';
|
|
4
|
+
import { ResponsesPage } from '../../../pagination';
|
|
5
|
+
export declare class EmploymentData extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Read individual employment and income data
|
|
8
|
+
*
|
|
9
|
+
* Note: Income information is returned as reported by the provider. This may not
|
|
10
|
+
* always be annualized income, but may be in units of bi-weekly, semi-monthly,
|
|
11
|
+
* daily, etc, depending on what information the provider returns.
|
|
12
|
+
*/
|
|
13
|
+
retrieveMany(
|
|
14
|
+
body: EmploymentDataRetrieveManyParams,
|
|
15
|
+
options?: Core.RequestOptions,
|
|
16
|
+
): Core.PagePromise<EmploymentDataResponsesResponsesPage>;
|
|
17
|
+
}
|
|
18
|
+
export declare class EmploymentDataResponsesResponsesPage extends ResponsesPage<EmploymentDataResponse> {}
|
|
19
|
+
export interface EmploymentData {
|
|
20
|
+
/**
|
|
21
|
+
* Worker's compensation classification code for this employee
|
|
22
|
+
*/
|
|
23
|
+
class_code?: string | null;
|
|
24
|
+
/**
|
|
25
|
+
* The department object.
|
|
26
|
+
*/
|
|
27
|
+
department?: EmploymentData.Department | null;
|
|
28
|
+
/**
|
|
29
|
+
* The employment object.
|
|
30
|
+
*/
|
|
31
|
+
employment?: EmploymentData.Employment | null;
|
|
32
|
+
end_date?: string | null;
|
|
33
|
+
/**
|
|
34
|
+
* The legal first name of the individual.
|
|
35
|
+
*/
|
|
36
|
+
first_name?: string | null;
|
|
37
|
+
/**
|
|
38
|
+
* string A stable Finch `id` (UUID v4) for an individual in the company.
|
|
39
|
+
*/
|
|
40
|
+
id?: string;
|
|
41
|
+
/**
|
|
42
|
+
* The employee's income as reported by the provider. This may not always be
|
|
43
|
+
* annualized income, but may be in units of bi-weekly, semi-monthly, daily, etc,
|
|
44
|
+
* depending on what information the provider returns.
|
|
45
|
+
*/
|
|
46
|
+
income?: HRIS.Income | null;
|
|
47
|
+
/**
|
|
48
|
+
* The array of income history.
|
|
49
|
+
*/
|
|
50
|
+
income_history?: Array<HRIS.Income | null> | null;
|
|
51
|
+
/**
|
|
52
|
+
* `true` if the individual an an active employee or contractor at the company.
|
|
53
|
+
*/
|
|
54
|
+
is_active?: boolean | null;
|
|
55
|
+
/**
|
|
56
|
+
* The legal last name of the individual.
|
|
57
|
+
*/
|
|
58
|
+
last_name?: string | null;
|
|
59
|
+
location?: HRIS.Location | null;
|
|
60
|
+
/**
|
|
61
|
+
* The manager object representing the manager of the individual within the org.
|
|
62
|
+
*/
|
|
63
|
+
manager?: EmploymentData.Manager | null;
|
|
64
|
+
/**
|
|
65
|
+
* The legal middle name of the individual.
|
|
66
|
+
*/
|
|
67
|
+
middle_name?: string | null;
|
|
68
|
+
/**
|
|
69
|
+
* Note: This property is only available if enabled for your account. Please reach
|
|
70
|
+
* out to your Finch representative if you would like access.
|
|
71
|
+
*/
|
|
72
|
+
pay_group_ids?: Array<string> | null;
|
|
73
|
+
start_date?: string | null;
|
|
74
|
+
/**
|
|
75
|
+
* The current title of the individual.
|
|
76
|
+
*/
|
|
77
|
+
title?: string | null;
|
|
78
|
+
/**
|
|
79
|
+
* Note: This property is only available if enabled for your account. Please reach
|
|
80
|
+
* out to your Finch representative if you would like access.
|
|
81
|
+
*/
|
|
82
|
+
work_id?: string | null;
|
|
83
|
+
/**
|
|
84
|
+
* Note: This property is only available if enabled for your account. Please reach
|
|
85
|
+
* out to your Finch representative if you would like access.
|
|
86
|
+
*/
|
|
87
|
+
work_id_2?: string | null;
|
|
88
|
+
}
|
|
89
|
+
export declare namespace EmploymentData {
|
|
90
|
+
/**
|
|
91
|
+
* The manager object representing the manager of the individual within the org.
|
|
92
|
+
*/
|
|
93
|
+
interface Manager {
|
|
94
|
+
/**
|
|
95
|
+
* A stable Finch `id` (UUID v4) for an individual in the company.
|
|
96
|
+
*/
|
|
97
|
+
id?: string;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* The department object.
|
|
101
|
+
*/
|
|
102
|
+
interface Department {
|
|
103
|
+
/**
|
|
104
|
+
* The name of the department associated with the individual.
|
|
105
|
+
*/
|
|
106
|
+
name?: string | null;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* The employment object.
|
|
110
|
+
*/
|
|
111
|
+
interface Employment {
|
|
112
|
+
/**
|
|
113
|
+
* The secondary employment type of the individual. Options: `full_time`, `part_time`, `intern`, `temp`, `seasonal` and `individual_contractor`.
|
|
114
|
+
*/
|
|
115
|
+
subtype?: 'full_time' | 'intern' | 'part_time' | 'temp' | 'seasonal' | 'individual_contractor' | null;
|
|
116
|
+
/**
|
|
117
|
+
* The main employment type of the individual.
|
|
118
|
+
*/
|
|
119
|
+
type?: 'employee' | 'contractor' | null;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
export interface EmploymentDataResponse {
|
|
123
|
+
body?: EmploymentData;
|
|
124
|
+
code?: number;
|
|
125
|
+
individual_id?: string;
|
|
126
|
+
}
|
|
127
|
+
export interface EmploymentDataRetrieveManyParams {
|
|
128
|
+
/**
|
|
129
|
+
* The array of batch requests.
|
|
130
|
+
*/
|
|
131
|
+
requests: Array<EmploymentDataRetrieveManyParams.Requests>;
|
|
132
|
+
}
|
|
133
|
+
export declare namespace EmploymentDataRetrieveManyParams {
|
|
134
|
+
interface Requests {
|
|
135
|
+
/**
|
|
136
|
+
* A stable Finch `id` (UUID v4) for an individual in the company. There is no
|
|
137
|
+
* limit to the number of `individual_id` to send per request. It is preferantial
|
|
138
|
+
* to send all ids in a single request for Finch to optimize provider rate-limits.
|
|
139
|
+
*/
|
|
140
|
+
individual_id: string;
|
|
141
|
+
}
|
|
142
|
+
interface Requests {
|
|
143
|
+
/**
|
|
144
|
+
* A stable Finch `id` (UUID v4) for an individual in the company. There is no
|
|
145
|
+
* limit to the number of `individual_id` to send per request. It is preferantial
|
|
146
|
+
* to send all ids in a single request for Finch to optimize provider rate-limits.
|
|
147
|
+
*/
|
|
148
|
+
individual_id: string;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
//# sourceMappingURL=employment-data.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"employment-data.d.ts","sourceRoot":"","sources":["../../../../../resources/hris/individuals/employment-data.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
exports.EmploymentDataResponsesResponsesPage = exports.EmploymentData = void 0;
|
|
5
|
+
const resource_1 = require('../../../resource');
|
|
6
|
+
const pagination_1 = require('../../../pagination');
|
|
7
|
+
class EmploymentData extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Read individual employment and income data
|
|
10
|
+
*
|
|
11
|
+
* Note: Income information is returned as reported by the provider. This may not
|
|
12
|
+
* always be annualized income, but may be in units of bi-weekly, semi-monthly,
|
|
13
|
+
* daily, etc, depending on what information the provider returns.
|
|
14
|
+
*/
|
|
15
|
+
retrieveMany(body, options) {
|
|
16
|
+
return this.getAPIList(
|
|
17
|
+
'/employer/employment',
|
|
18
|
+
EmploymentDataResponsesResponsesPage,
|
|
19
|
+
Object.assign({ body, method: 'post' }, options),
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.EmploymentData = EmploymentData;
|
|
24
|
+
class EmploymentDataResponsesResponsesPage extends pagination_1.ResponsesPage {}
|
|
25
|
+
exports.EmploymentDataResponsesResponsesPage = EmploymentDataResponsesResponsesPage;
|
|
26
|
+
//# sourceMappingURL=employment-data.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"employment-data.js","sourceRoot":"","sources":["../../../../../resources/hris/individuals/employment-data.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAGrD,yCAAyC;AAEzC,6CAA6C;AAE7C,MAAa,cAAe,SAAQ,sBAAW;IAC7C;;;;;;OAMG;IACH,YAAY,CACV,IAAsC,EACtC,OAA6B;QAE7B,OAAO,IAAI,CAAC,UAAU,CAAC,sBAAsB,EAAE,oCAAoC,kBACjF,IAAI,EACJ,MAAM,EAAE,MAAM,IACX,OAAO,EACV,CAAC;IACL,CAAC;CACF;AAlBD,wCAkBC;AAED,MAAa,oCAAqC,SAAQ,0BAAqC;CAAG;AAAlG,oFAAkG"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export {
|
|
2
|
+
EmploymentData,
|
|
3
|
+
EmploymentDataResponse,
|
|
4
|
+
EmploymentDataRetrieveManyParams,
|
|
5
|
+
EmploymentDataResponsesResponsesPage,
|
|
6
|
+
} from './employment-data';
|
|
7
|
+
export {
|
|
8
|
+
Individual,
|
|
9
|
+
IndividualResponse,
|
|
10
|
+
IndividualRetrieveManyParams,
|
|
11
|
+
IndividualResponsesResponsesPage,
|
|
12
|
+
} from './individuals';
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../resources/hris/individuals/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,cAAc,EACd,sBAAsB,EACtB,gCAAgC,EAChC,oCAAoC,GACrC,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,UAAU,EACV,kBAAkB,EAClB,4BAA4B,EAC5B,gCAAgC,GACjC,MAAM,eAAe,CAAC"}
|