@tryfinch/finch-api 6.13.1 → 6.14.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 +8 -0
- package/package.json +1 -1
- package/resources/hris/documents.d.ts +176 -0
- package/resources/hris/documents.d.ts.map +1 -0
- package/resources/hris/documents.js +23 -0
- package/resources/hris/documents.js.map +1 -0
- package/resources/hris/documents.mjs +19 -0
- package/resources/hris/documents.mjs.map +1 -0
- package/resources/hris/hris.d.ts +4 -0
- package/resources/hris/hris.d.ts.map +1 -1
- package/resources/hris/hris.js +4 -0
- package/resources/hris/hris.js.map +1 -1
- package/resources/hris/hris.mjs +4 -0
- package/resources/hris/hris.mjs.map +1 -1
- package/resources/hris/index.d.ts +1 -0
- package/resources/hris/index.d.ts.map +1 -1
- package/resources/hris/index.js +3 -1
- package/resources/hris/index.js.map +1 -1
- package/resources/hris/index.mjs +1 -0
- package/resources/hris/index.mjs.map +1 -1
- package/src/resources/hris/documents.ts +234 -0
- package/src/resources/hris/hris.ts +22 -0
- package/src/resources/hris/index.ts +9 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 6.14.0 (2025-01-07)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v6.13.1...v6.14.0](https://github.com/Finch-API/finch-api-node/compare/v6.13.1...v6.14.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** manual updates ([#526](https://github.com/Finch-API/finch-api-node/issues/526)) ([6ad85a9](https://github.com/Finch-API/finch-api-node/commit/6ad85a950f9de33dd9976698a09e8be85bafae6b))
|
|
10
|
+
|
|
3
11
|
## 6.13.1 (2025-01-07)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v6.13.0...v6.13.1](https://github.com/Finch-API/finch-api-node/compare/v6.13.0...v6.13.1)
|
package/package.json
CHANGED
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { APIResource } from "../../resource.js";
|
|
2
|
+
import * as Core from "../../core.js";
|
|
3
|
+
import * as Shared from "../shared.js";
|
|
4
|
+
export declare class Documents extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* **Beta:** This endpoint is in beta and may change.
|
|
7
|
+
* Retrieve a list of company-wide documents.
|
|
8
|
+
*/
|
|
9
|
+
list(query?: DocumentListParams, options?: Core.RequestOptions): Core.APIPromise<DocumentListResponse>;
|
|
10
|
+
list(options?: Core.RequestOptions): Core.APIPromise<DocumentListResponse>;
|
|
11
|
+
/**
|
|
12
|
+
* **Beta:** This endpoint is in beta and may change.
|
|
13
|
+
* Retrieve details of a specific document by its ID.
|
|
14
|
+
*/
|
|
15
|
+
retreive(documentId: string, options?: Core.RequestOptions): Core.APIPromise<DocumentRetreiveResponse>;
|
|
16
|
+
}
|
|
17
|
+
export interface DocumentResponse {
|
|
18
|
+
/**
|
|
19
|
+
* A stable Finch id for the document.
|
|
20
|
+
*/
|
|
21
|
+
id?: string;
|
|
22
|
+
/**
|
|
23
|
+
* The ID of the individual associated with the document. This will be null for
|
|
24
|
+
* employer-level documents.
|
|
25
|
+
*/
|
|
26
|
+
individual_id?: string | null;
|
|
27
|
+
/**
|
|
28
|
+
* The type of document.
|
|
29
|
+
*/
|
|
30
|
+
type?: 'w4_2020' | 'w4_2005';
|
|
31
|
+
/**
|
|
32
|
+
* A URL to access the document. Format:
|
|
33
|
+
* `https://api.tryfinch.com/employer/documents/:document_id`.
|
|
34
|
+
*/
|
|
35
|
+
url?: string;
|
|
36
|
+
/**
|
|
37
|
+
* The year the document applies to, if available.
|
|
38
|
+
*/
|
|
39
|
+
year?: number | null;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* A 2005 version of the W-4 tax form containing information on an individual's
|
|
43
|
+
* filing status, dependents, and withholding details.
|
|
44
|
+
*/
|
|
45
|
+
export interface W42005 {
|
|
46
|
+
/**
|
|
47
|
+
* Detailed information specific to the 2005 W4 form.
|
|
48
|
+
*/
|
|
49
|
+
data?: W42005.Data;
|
|
50
|
+
/**
|
|
51
|
+
* Specifies the form type, indicating that this document is a 2005 W4 form.
|
|
52
|
+
*/
|
|
53
|
+
type?: 'w4_2005';
|
|
54
|
+
/**
|
|
55
|
+
* The tax year this W4 document applies to.
|
|
56
|
+
*/
|
|
57
|
+
year?: number | null;
|
|
58
|
+
}
|
|
59
|
+
export declare namespace W42005 {
|
|
60
|
+
/**
|
|
61
|
+
* Detailed information specific to the 2005 W4 form.
|
|
62
|
+
*/
|
|
63
|
+
interface Data {
|
|
64
|
+
/**
|
|
65
|
+
* Additional withholding amount (in cents).
|
|
66
|
+
*/
|
|
67
|
+
additional_withholding?: number | null;
|
|
68
|
+
/**
|
|
69
|
+
* Indicates exemption status from federal tax withholding.
|
|
70
|
+
*/
|
|
71
|
+
exemption?: 'exempt' | 'non_exempt';
|
|
72
|
+
/**
|
|
73
|
+
* The individual's filing status for tax purposes.
|
|
74
|
+
*/
|
|
75
|
+
filing_status?: 'married' | 'married_but_withhold_at_higher_single_rate' | 'single';
|
|
76
|
+
/**
|
|
77
|
+
* The unique identifier for the individual associated with this 2005 W4 form.
|
|
78
|
+
*/
|
|
79
|
+
individual_id?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Total number of allowances claimed (in cents).
|
|
82
|
+
*/
|
|
83
|
+
total_number_of_allowances?: number | null;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* A 2020 version of the W-4 tax form containing information on an individual's
|
|
88
|
+
* filing status, dependents, and withholding details.
|
|
89
|
+
*/
|
|
90
|
+
export interface W42020 {
|
|
91
|
+
/**
|
|
92
|
+
* Detailed information specific to the 2020 W4 form.
|
|
93
|
+
*/
|
|
94
|
+
data?: W42020.Data;
|
|
95
|
+
/**
|
|
96
|
+
* Specifies the form type, indicating that this document is a 2020 W4 form.
|
|
97
|
+
*/
|
|
98
|
+
type?: 'w4_2020';
|
|
99
|
+
/**
|
|
100
|
+
* The tax year this W4 document applies to.
|
|
101
|
+
*/
|
|
102
|
+
year?: number | null;
|
|
103
|
+
}
|
|
104
|
+
export declare namespace W42020 {
|
|
105
|
+
/**
|
|
106
|
+
* Detailed information specific to the 2020 W4 form.
|
|
107
|
+
*/
|
|
108
|
+
interface Data {
|
|
109
|
+
/**
|
|
110
|
+
* Amount claimed for dependents other than qualifying children under 17 (in
|
|
111
|
+
* cents).
|
|
112
|
+
*/
|
|
113
|
+
amount_for_other_dependents?: number | null;
|
|
114
|
+
/**
|
|
115
|
+
* Amount claimed for dependents under 17 years old (in cents).
|
|
116
|
+
*/
|
|
117
|
+
amount_for_qualifying_children_under_17?: number | null;
|
|
118
|
+
/**
|
|
119
|
+
* Deductible expenses (in cents).
|
|
120
|
+
*/
|
|
121
|
+
deductions?: number | null;
|
|
122
|
+
/**
|
|
123
|
+
* Additional withholding amount (in cents).
|
|
124
|
+
*/
|
|
125
|
+
extra_withholding?: number | null;
|
|
126
|
+
/**
|
|
127
|
+
* The individual's filing status for tax purposes.
|
|
128
|
+
*/
|
|
129
|
+
filing_status?: 'head_of_household' | 'married_filing_jointly_or_qualifying_surviving_spouse' | 'single_or_married_filing_separately' | null;
|
|
130
|
+
/**
|
|
131
|
+
* The unique identifier for the individual associated with this document.
|
|
132
|
+
*/
|
|
133
|
+
individual_id?: string;
|
|
134
|
+
/**
|
|
135
|
+
* Additional income from sources outside of primary employment (in cents).
|
|
136
|
+
*/
|
|
137
|
+
other_income?: number | null;
|
|
138
|
+
/**
|
|
139
|
+
* Total amount claimed for dependents and other credits (in cents).
|
|
140
|
+
*/
|
|
141
|
+
total_claim_dependent_and_other_credits?: number | null;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
export interface DocumentListResponse {
|
|
145
|
+
documents: Array<DocumentResponse>;
|
|
146
|
+
paging: Shared.Paging;
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* A 2020 version of the W-4 tax form containing information on an individual's
|
|
150
|
+
* filing status, dependents, and withholding details.
|
|
151
|
+
*/
|
|
152
|
+
export type DocumentRetreiveResponse = W42020 | W42005;
|
|
153
|
+
export interface DocumentListParams {
|
|
154
|
+
/**
|
|
155
|
+
* Comma-delimited list of stable Finch uuids for each individual. If empty,
|
|
156
|
+
* defaults to all individuals
|
|
157
|
+
*/
|
|
158
|
+
individual_ids?: Array<string>;
|
|
159
|
+
/**
|
|
160
|
+
* Number of documents to return (defaults to all)
|
|
161
|
+
*/
|
|
162
|
+
limit?: number;
|
|
163
|
+
/**
|
|
164
|
+
* Index to start from (defaults to 0)
|
|
165
|
+
*/
|
|
166
|
+
offset?: number;
|
|
167
|
+
/**
|
|
168
|
+
* Comma-delimited list of document types to filter on. If empty, defaults to all
|
|
169
|
+
* types
|
|
170
|
+
*/
|
|
171
|
+
types?: Array<'w4_2020' | 'w4_2005'>;
|
|
172
|
+
}
|
|
173
|
+
export declare namespace Documents {
|
|
174
|
+
export { type DocumentResponse as DocumentResponse, type W42005 as W42005, type W42020 as W42020, type DocumentListResponse as DocumentListResponse, type DocumentRetreiveResponse as DocumentRetreiveResponse, type DocumentListParams as DocumentListParams, };
|
|
175
|
+
}
|
|
176
|
+
//# sourceMappingURL=documents.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"documents.d.ts","sourceRoot":"","sources":["../../src/resources/hris/documents.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,MAAM,MAAM,WAAW,CAAC;AAEpC,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;OAGG;IACH,IAAI,CAAC,KAAK,CAAC,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CA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CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,MAAM,IAAI,MAAM,EACrB,KAAK,MAAM,IAAI,MAAM,EACrB,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Documents = void 0;
|
|
5
|
+
const resource_1 = require("../../resource.js");
|
|
6
|
+
const core_1 = require("../../core.js");
|
|
7
|
+
class Documents extends resource_1.APIResource {
|
|
8
|
+
list(query = {}, options) {
|
|
9
|
+
if ((0, core_1.isRequestOptions)(query)) {
|
|
10
|
+
return this.list({}, query);
|
|
11
|
+
}
|
|
12
|
+
return this._client.get('/employer/documents', { query, ...options });
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* **Beta:** This endpoint is in beta and may change.
|
|
16
|
+
* Retrieve details of a specific document by its ID.
|
|
17
|
+
*/
|
|
18
|
+
retreive(documentId, options) {
|
|
19
|
+
return this._client.get(`/employer/documents/${documentId}`, options);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.Documents = Documents;
|
|
23
|
+
//# sourceMappingURL=documents.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"documents.js","sourceRoot":"","sources":["../../src/resources/hris/documents.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAC7C,wCAA8C;AAI9C,MAAa,SAAU,SAAQ,sBAAW;IAOxC,IAAI,CACF,QAAkD,EAAE,EACpD,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;IAED;;;OAGG;IACH,QAAQ,CAAC,UAAkB,EAAE,OAA6B;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;CACF;AAxBD,8BAwBC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../resource.mjs";
|
|
3
|
+
import { isRequestOptions } from "../../core.mjs";
|
|
4
|
+
export class Documents extends APIResource {
|
|
5
|
+
list(query = {}, options) {
|
|
6
|
+
if (isRequestOptions(query)) {
|
|
7
|
+
return this.list({}, query);
|
|
8
|
+
}
|
|
9
|
+
return this._client.get('/employer/documents', { query, ...options });
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* **Beta:** This endpoint is in beta and may change.
|
|
13
|
+
* Retrieve details of a specific document by its ID.
|
|
14
|
+
*/
|
|
15
|
+
retreive(documentId, options) {
|
|
16
|
+
return this._client.get(`/employer/documents/${documentId}`, options);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=documents.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"documents.mjs","sourceRoot":"","sources":["../../src/resources/hris/documents.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;AAI3B,MAAM,OAAO,SAAU,SAAQ,WAAW;IAOxC,IAAI,CACF,QAAkD,EAAE,EACpD,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;IAED;;;OAGG;IACH,QAAQ,CAAC,UAAkB,EAAE,OAA6B;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;CACF"}
|
package/resources/hris/hris.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ import * as CompanyAPI from "./company.js";
|
|
|
3
3
|
import { Company, CompanyResource } from "./company.js";
|
|
4
4
|
import * as DirectoryAPI from "./directory.js";
|
|
5
5
|
import { Directory, DirectoryListIndividualsParams, DirectoryListParams, IndividualInDirectory } from "./directory.js";
|
|
6
|
+
import * as DocumentsAPI from "./documents.js";
|
|
7
|
+
import { DocumentListParams, DocumentListResponse, DocumentResponse, DocumentRetreiveResponse, Documents, W42005, W42020 } from "./documents.js";
|
|
6
8
|
import * as EmploymentsAPI from "./employments.js";
|
|
7
9
|
import { EmploymentData, EmploymentDataResponse, EmploymentDataResponsesPage, EmploymentRetrieveManyParams, Employments } from "./employments.js";
|
|
8
10
|
import * as IndividualsAPI from "./individuals.js";
|
|
@@ -20,6 +22,7 @@ export declare class HRIS extends APIResource {
|
|
|
20
22
|
employments: EmploymentsAPI.Employments;
|
|
21
23
|
payments: PaymentsAPI.Payments;
|
|
22
24
|
payStatements: PayStatementsAPI.PayStatements;
|
|
25
|
+
documents: DocumentsAPI.Documents;
|
|
23
26
|
benefits: BenefitsAPI.Benefits;
|
|
24
27
|
}
|
|
25
28
|
/**
|
|
@@ -89,6 +92,7 @@ export declare namespace HRIS {
|
|
|
89
92
|
export { Employments as Employments, type EmploymentData as EmploymentData, type EmploymentDataResponse as EmploymentDataResponse, EmploymentDataResponsesPage as EmploymentDataResponsesPage, type EmploymentRetrieveManyParams as EmploymentRetrieveManyParams, };
|
|
90
93
|
export { Payments as Payments, type Payment as Payment, PaymentsSinglePage as PaymentsSinglePage, type PaymentListParams as PaymentListParams, };
|
|
91
94
|
export { PayStatements as PayStatements, type PayStatement as PayStatement, type PayStatementResponse as PayStatementResponse, type PayStatementResponseBody as PayStatementResponseBody, PayStatementResponsesPage as PayStatementResponsesPage, type PayStatementRetrieveManyParams as PayStatementRetrieveManyParams, };
|
|
95
|
+
export { Documents as Documents, type DocumentResponse as DocumentResponse, type W42005 as W42005, type W42020 as W42020, type DocumentListResponse as DocumentListResponse, type DocumentRetreiveResponse as DocumentRetreiveResponse, type DocumentListParams as DocumentListParams, };
|
|
92
96
|
export { Benefits as Benefits, type BenefitContribution as BenefitContribution, type BenefitFeaturesAndOperations as BenefitFeaturesAndOperations, type BenefitFrequency as BenefitFrequency, type BenefitType as BenefitType, type BenefitsSupport as BenefitsSupport, type BenfitContribution as BenfitContribution, type CompanyBenefit as CompanyBenefit, type CreateCompanyBenefitsResponse as CreateCompanyBenefitsResponse, type SupportPerBenefitType as SupportPerBenefitType, type SupportedBenefit as SupportedBenefit, type UpdateCompanyBenefitResponse as UpdateCompanyBenefitResponse, CompanyBenefitsSinglePage as CompanyBenefitsSinglePage, SupportedBenefitsSinglePage as SupportedBenefitsSinglePage, type BenefitCreateParams as BenefitCreateParams, type BenefitUpdateParams as BenefitUpdateParams, };
|
|
93
97
|
}
|
|
94
98
|
//# sourceMappingURL=hris.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hris.d.ts","sourceRoot":"","sources":["../../src/resources/hris/hris.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,KAAK,YAAY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oB,IAAI,oBAAoB,EACjD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,yBAAyB,IAAI,yBAAyB,EACtD,KAAK,8BAA8B,IAAI,8BAA8B,GACtE,CAAC;IAEF,OAAO,EACL,SAAS,IAAI,SAAS,EACtB,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,MAAM,IAAI,MAAM,EACrB,KAAK,MAAM,IAAI,MAAM,EACrB,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;IAEF,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,yBAAyB,IAAI,yBAAyB,EACtD,2BAA2B,IAAI,2BAA2B,EAC1D,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
package/resources/hris/hris.js
CHANGED
|
@@ -30,6 +30,8 @@ const CompanyAPI = __importStar(require("./company.js"));
|
|
|
30
30
|
const company_1 = require("./company.js");
|
|
31
31
|
const DirectoryAPI = __importStar(require("./directory.js"));
|
|
32
32
|
const directory_1 = require("./directory.js");
|
|
33
|
+
const DocumentsAPI = __importStar(require("./documents.js"));
|
|
34
|
+
const documents_1 = require("./documents.js");
|
|
33
35
|
const EmploymentsAPI = __importStar(require("./employments.js"));
|
|
34
36
|
const employments_1 = require("./employments.js");
|
|
35
37
|
const IndividualsAPI = __importStar(require("./individuals.js"));
|
|
@@ -49,6 +51,7 @@ class HRIS extends resource_1.APIResource {
|
|
|
49
51
|
this.employments = new EmploymentsAPI.Employments(this._client);
|
|
50
52
|
this.payments = new PaymentsAPI.Payments(this._client);
|
|
51
53
|
this.payStatements = new PayStatementsAPI.PayStatements(this._client);
|
|
54
|
+
this.documents = new DocumentsAPI.Documents(this._client);
|
|
52
55
|
this.benefits = new BenefitsAPI.Benefits(this._client);
|
|
53
56
|
}
|
|
54
57
|
}
|
|
@@ -63,6 +66,7 @@ HRIS.Payments = payments_1.Payments;
|
|
|
63
66
|
HRIS.PaymentsSinglePage = payments_1.PaymentsSinglePage;
|
|
64
67
|
HRIS.PayStatements = pay_statements_1.PayStatements;
|
|
65
68
|
HRIS.PayStatementResponsesPage = pay_statements_1.PayStatementResponsesPage;
|
|
69
|
+
HRIS.Documents = documents_1.Documents;
|
|
66
70
|
HRIS.Benefits = benefits_1.Benefits;
|
|
67
71
|
HRIS.CompanyBenefitsSinglePage = benefits_1.CompanyBenefitsSinglePage;
|
|
68
72
|
HRIS.SupportedBenefitsSinglePage = benefits_1.SupportedBenefitsSinglePage;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hris.js","sourceRoot":"","sources":["../../src/resources/hris/hris.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,gDAA6C;AAC7C,yDAAwC;AACxC,0CAAqD;AACrD,6DAA4C;AAC5C,8CAKqB;AACrB,iEAAgD;AAChD,kDAMuB;AACvB,iEAAgD;AAChD,kDAMuB;AACvB,sEAAqD;AACrD,wDAO0B;AAC1B,2DAA0C;AAC1C,4CAAsF;AACtF,oEAAmD;AACnD,qDAiB6B;AAE7B,MAAa,IAAK,SAAQ,sBAAW;IAArC;;QACE,YAAO,GAA+B,IAAI,UAAU,CAAC,eAAe,CAAC,IAAI,C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W,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACvF,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,kBAAa,GAAmC,IAAI,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACjG,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC1E,CAAC;CAAA;AATD,oBASC;AAqFD,IAAI,CAAC,eAAe,GAAG,yBAAe,CAAC;AACvC,IAAI,CAAC,SAAS,GAAG,qBAAS,CAAC;AAC3B,IAAI,CAAC,WAAW,GAAG,yBAAW,CAAC;AAC/B,IAAI,CAAC,uBAAuB,GAAG,qCAAuB,CAAC;AACvD,IAAI,CAAC,WAAW,GAAG,yBAAW,CAAC;AAC/B,IAAI,CAAC,2BAA2B,GAAG,yCAA2B,CAAC;AAC/D,IAAI,CAAC,QAAQ,GAAG,mBAAQ,CAAC;AACzB,IAAI,CAAC,kBAAkB,GAAG,6BAAkB,CAAC;AAC7C,IAAI,CAAC,aAAa,GAAG,8BAAa,CAAC;AACnC,IAAI,CAAC,yBAAyB,GAAG,0CAAyB,CAAC;AAC3D,IAAI,CAAC,SAAS,GAAG,qBAAS,CAAC;AAC3B,IAAI,CAAC,QAAQ,GAAG,mBAAQ,CAAC;AACzB,IAAI,CAAC,yBAAyB,GAAG,oCAAyB,CAAC;AAC3D,IAAI,CAAC,2BAA2B,GAAG,sCAA2B,CAAC"}
|
package/resources/hris/hris.mjs
CHANGED
|
@@ -4,6 +4,8 @@ import * as CompanyAPI from "./company.mjs";
|
|
|
4
4
|
import { CompanyResource } from "./company.mjs";
|
|
5
5
|
import * as DirectoryAPI from "./directory.mjs";
|
|
6
6
|
import { Directory, } from "./directory.mjs";
|
|
7
|
+
import * as DocumentsAPI from "./documents.mjs";
|
|
8
|
+
import { Documents, } from "./documents.mjs";
|
|
7
9
|
import * as EmploymentsAPI from "./employments.mjs";
|
|
8
10
|
import { EmploymentDataResponsesPage, Employments, } from "./employments.mjs";
|
|
9
11
|
import * as IndividualsAPI from "./individuals.mjs";
|
|
@@ -23,6 +25,7 @@ export class HRIS extends APIResource {
|
|
|
23
25
|
this.employments = new EmploymentsAPI.Employments(this._client);
|
|
24
26
|
this.payments = new PaymentsAPI.Payments(this._client);
|
|
25
27
|
this.payStatements = new PayStatementsAPI.PayStatements(this._client);
|
|
28
|
+
this.documents = new DocumentsAPI.Documents(this._client);
|
|
26
29
|
this.benefits = new BenefitsAPI.Benefits(this._client);
|
|
27
30
|
}
|
|
28
31
|
}
|
|
@@ -36,6 +39,7 @@ HRIS.Payments = Payments;
|
|
|
36
39
|
HRIS.PaymentsSinglePage = PaymentsSinglePage;
|
|
37
40
|
HRIS.PayStatements = PayStatements;
|
|
38
41
|
HRIS.PayStatementResponsesPage = PayStatementResponsesPage;
|
|
42
|
+
HRIS.Documents = Documents;
|
|
39
43
|
HRIS.Benefits = Benefits;
|
|
40
44
|
HRIS.CompanyBenefitsSinglePage = CompanyBenefitsSinglePage;
|
|
41
45
|
HRIS.SupportedBenefitsSinglePage = SupportedBenefitsSinglePage;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hris.mjs","sourceRoot":"","sources":["../../src/resources/hris/hris.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EAAW,eAAe,EAAE;OAC5B,KAAK,YAAY;OACjB,EACL,SAAS,GAIV;OACM,KAAK,cAAc;OACnB,EAGL,2BAA2B,EAE3B,WAAW,GACZ;OACM,KAAK,cAAc;OACnB,EAGL,uBAAuB,EAEvB,WAAW,GACZ;OACM,KAAK,gBAAgB;OACrB,EAIL,yBAAyB,EAEzB,aAAa,GACd;OACM,KAAK,WA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AAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC1E,CAAC;CAAA;AAqFD,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;AACvC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;AAC3B,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;AAC/B,IAAI,CAAC,uBAAuB,GAAG,uBAAuB,CAAC;AACvD,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;AAC/B,IAAI,CAAC,2BAA2B,GAAG,2BAA2B,CAAC;AAC/D,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;AACzB,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;AAC7C,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;AACnC,IAAI,CAAC,yBAAyB,GAAG,yBAAyB,CAAC;AAC3D,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;AAC3B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;AACzB,IAAI,CAAC,yBAAyB,GAAG,yBAAyB,CAAC;AAC3D,IAAI,CAAC,2BAA2B,GAAG,2BAA2B,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { CompanyBenefitsSinglePage, SupportedBenefitsSinglePage, Benefits, type BenefitContribution, type BenefitFeaturesAndOperations, type BenefitFrequency, type BenefitType, type BenefitsSupport, type BenfitContribution, type CompanyBenefit, type CreateCompanyBenefitsResponse, type SupportPerBenefitType, type SupportedBenefit, type UpdateCompanyBenefitResponse, type BenefitCreateParams, type BenefitUpdateParams, } from "./benefits/index.js";
|
|
2
2
|
export { CompanyResource, type Company } from "./company.js";
|
|
3
3
|
export { Directory, type IndividualInDirectory, type DirectoryListParams, type DirectoryListIndividualsParams, } from "./directory.js";
|
|
4
|
+
export { Documents, type DocumentResponse, type W42005, type W42020, type DocumentListResponse, type DocumentRetreiveResponse, type DocumentListParams, } from "./documents.js";
|
|
4
5
|
export { EmploymentDataResponsesPage, Employments, type EmploymentData, type EmploymentDataResponse, type EmploymentRetrieveManyParams, } from "./employments.js";
|
|
5
6
|
export { HRIS, type Income, type Location, type Money } from "./hris.js";
|
|
6
7
|
export { IndividualResponsesPage, Individuals, type Individual, type IndividualResponse, type IndividualRetrieveManyParams, } from "./individuals.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/hris/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,yBAAyB,EACzB,2BAA2B,EAC3B,QAAQ,EACR,KAAK,mBAAmB,EACxB,KAAK,4BAA4B,EACjC,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,6BAA6B,EAClC,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACrB,KAAK,4BAA4B,EACjC,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,KAAK,OAAO,EAAE,MAAM,WAAW,CAAC;AAC1D,OAAO,EACL,SAAS,EACT,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,8BAA8B,GACpC,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,2BAA2B,EAC3B,WAAW,EACX,KAAK,cAAc,EACnB,KAAK,sBAAsB,EAC3B,KAAK,4BAA4B,GAClC,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,IAAI,EAAE,KAAK,MAAM,EAAE,KAAK,QAAQ,EAAE,KAAK,KAAK,EAAE,MAAM,QAAQ,CAAC;AACtE,OAAO,EACL,uBAAuB,EACvB,WAAW,EACX,KAAK,UAAU,EACf,KAAK,kBAAkB,EACvB,KAAK,4BAA4B,GAClC,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,yBAAyB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uB,EACvB,WAAW,EACX,KAAK,UAAU,EACf,KAAK,kBAAkB,EACvB,KAAK,4BAA4B,GAClC,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,yBAAyB,EACzB,aAAa,EACb,KAAK,YAAY,EACjB,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,8BAA8B,GACpC,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,QAAQ,EAAE,KAAK,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,YAAY,CAAC"}
|
package/resources/hris/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Payments = exports.PaymentsSinglePage = exports.PayStatements = exports.PayStatementResponsesPage = exports.Individuals = exports.IndividualResponsesPage = exports.HRIS = exports.Employments = exports.EmploymentDataResponsesPage = exports.Directory = exports.CompanyResource = exports.Benefits = exports.SupportedBenefitsSinglePage = exports.CompanyBenefitsSinglePage = void 0;
|
|
4
|
+
exports.Payments = exports.PaymentsSinglePage = exports.PayStatements = exports.PayStatementResponsesPage = exports.Individuals = exports.IndividualResponsesPage = exports.HRIS = exports.Employments = exports.EmploymentDataResponsesPage = exports.Documents = exports.Directory = exports.CompanyResource = exports.Benefits = exports.SupportedBenefitsSinglePage = exports.CompanyBenefitsSinglePage = void 0;
|
|
5
5
|
var index_1 = require("./benefits/index.js");
|
|
6
6
|
Object.defineProperty(exports, "CompanyBenefitsSinglePage", { enumerable: true, get: function () { return index_1.CompanyBenefitsSinglePage; } });
|
|
7
7
|
Object.defineProperty(exports, "SupportedBenefitsSinglePage", { enumerable: true, get: function () { return index_1.SupportedBenefitsSinglePage; } });
|
|
@@ -10,6 +10,8 @@ var company_1 = require("./company.js");
|
|
|
10
10
|
Object.defineProperty(exports, "CompanyResource", { enumerable: true, get: function () { return company_1.CompanyResource; } });
|
|
11
11
|
var directory_1 = require("./directory.js");
|
|
12
12
|
Object.defineProperty(exports, "Directory", { enumerable: true, get: function () { return directory_1.Directory; } });
|
|
13
|
+
var documents_1 = require("./documents.js");
|
|
14
|
+
Object.defineProperty(exports, "Documents", { enumerable: true, get: function () { return documents_1.Documents; } });
|
|
13
15
|
var employments_1 = require("./employments.js");
|
|
14
16
|
Object.defineProperty(exports, "EmploymentDataResponsesPage", { enumerable: true, get: function () { return employments_1.EmploymentDataResponsesPage; } });
|
|
15
17
|
Object.defineProperty(exports, "Employments", { enumerable: true, get: function () { return employments_1.Employments; } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/hris/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAiB0B;AAhBxB,kHAAA,yBAAyB,OAAA;AACzB,oHAAA,2BAA2B,OAAA;AAC3B,iGAAA,QAAQ,OAAA;AAeV,wCAA0D;AAAjD,0GAAA,eAAe,OAAA;AACxB,4CAKqB;AAJnB,sGAAA,SAAS,OAAA;AAKX,gDAMuB;AALrB,0HAAA,2BAA2B,OAAA;AAC3B,0GAAA,WAAW,OAAA;AAKb,kCAAsE;AAA7D,4FAAA,IAAI,OAAA;AACb,gDAMuB;AALrB,sHAAA,uBAAuB,OAAA;AACvB,0GAAA,WAAW,OAAA;AAKb,sDAO0B;AANxB,2HAAA,yBAAyB,OAAA;AACzB,+GAAA,aAAa,OAAA;AAMf,0CAAgG;AAAvF,8GAAA,kBAAkB,OAAA;AAAE,oGAAA,QAAQ,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/hris/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAiB0B;AAhBxB,kHAAA,yBAAyB,OAAA;AACzB,oHAAA,2BAA2B,OAAA;AAC3B,iGAAA,QAAQ,OAAA;AAeV,wCAA0D;AAAjD,0GAAA,eAAe,OAAA;AACxB,4CAKqB;AAJnB,sGAAA,SAAS,OAAA;AAKX,4CAQqB;AAPnB,sGAAA,SAAS,OAAA;AAQX,gDAMuB;AALrB,0HAAA,2BAA2B,OAAA;AAC3B,0GAAA,WAAW,OAAA;AAKb,kCAAsE;AAA7D,4FAAA,IAAI,OAAA;AACb,gDAMuB;AALrB,sHAAA,uBAAuB,OAAA;AACvB,0GAAA,WAAW,OAAA;AAKb,sDAO0B;AANxB,2HAAA,yBAAyB,OAAA;AACzB,+GAAA,aAAa,OAAA;AAMf,0CAAgG;AAAvF,8GAAA,kBAAkB,OAAA;AAAE,oGAAA,QAAQ,OAAA"}
|
package/resources/hris/index.mjs
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
export { CompanyBenefitsSinglePage, SupportedBenefitsSinglePage, Benefits, } from "./benefits/index.mjs";
|
|
3
3
|
export { CompanyResource } from "./company.mjs";
|
|
4
4
|
export { Directory, } from "./directory.mjs";
|
|
5
|
+
export { Documents, } from "./documents.mjs";
|
|
5
6
|
export { EmploymentDataResponsesPage, Employments, } from "./employments.mjs";
|
|
6
7
|
export { HRIS } from "./hris.mjs";
|
|
7
8
|
export { IndividualResponsesPage, Individuals, } from "./individuals.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/hris/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,yBAAyB,EACzB,2BAA2B,EAC3B,QAAQ,GAcT;OACM,EAAE,eAAe,EAAgB;OACjC,EACL,SAAS,GAIV;OACM,EACL,2BAA2B,EAC3B,WAAW,GAIZ;OACM,EAAE,IAAI,EAA0C;OAChD,EACL,uBAAuB,EACvB,WAAW,GAIZ;OACM,EACL,yBAAyB,EACzB,aAAa,GAKd;OACM,EAAE,kBAAkB,EAAE,QAAQ,EAAwC"}
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/hris/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,yBAAyB,EACzB,2BAA2B,EAC3B,QAAQ,GAcT;OACM,EAAE,eAAe,EAAgB;OACjC,EACL,SAAS,GAIV;OACM,EACL,SAAS,GAOV;OACM,EACL,2BAA2B,EAC3B,WAAW,GAIZ;OACM,EAAE,IAAI,EAA0C;OAChD,EACL,uBAAuB,EACvB,WAAW,GAIZ;OACM,EACL,yBAAyB,EACzB,aAAa,GAKd;OACM,EAAE,kBAAkB,EAAE,QAAQ,EAAwC"}
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../resource';
|
|
4
|
+
import { isRequestOptions } from '../../core';
|
|
5
|
+
import * as Core from '../../core';
|
|
6
|
+
import * as Shared from '../shared';
|
|
7
|
+
|
|
8
|
+
export class Documents extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* **Beta:** This endpoint is in beta and may change.
|
|
11
|
+
* Retrieve a list of company-wide documents.
|
|
12
|
+
*/
|
|
13
|
+
list(query?: DocumentListParams, options?: Core.RequestOptions): Core.APIPromise<DocumentListResponse>;
|
|
14
|
+
list(options?: Core.RequestOptions): Core.APIPromise<DocumentListResponse>;
|
|
15
|
+
list(
|
|
16
|
+
query: DocumentListParams | Core.RequestOptions = {},
|
|
17
|
+
options?: Core.RequestOptions,
|
|
18
|
+
): Core.APIPromise<DocumentListResponse> {
|
|
19
|
+
if (isRequestOptions(query)) {
|
|
20
|
+
return this.list({}, query);
|
|
21
|
+
}
|
|
22
|
+
return this._client.get('/employer/documents', { query, ...options });
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* **Beta:** This endpoint is in beta and may change.
|
|
27
|
+
* Retrieve details of a specific document by its ID.
|
|
28
|
+
*/
|
|
29
|
+
retreive(documentId: string, options?: Core.RequestOptions): Core.APIPromise<DocumentRetreiveResponse> {
|
|
30
|
+
return this._client.get(`/employer/documents/${documentId}`, options);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface DocumentResponse {
|
|
35
|
+
/**
|
|
36
|
+
* A stable Finch id for the document.
|
|
37
|
+
*/
|
|
38
|
+
id?: string;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* The ID of the individual associated with the document. This will be null for
|
|
42
|
+
* employer-level documents.
|
|
43
|
+
*/
|
|
44
|
+
individual_id?: string | null;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* The type of document.
|
|
48
|
+
*/
|
|
49
|
+
type?: 'w4_2020' | 'w4_2005';
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* A URL to access the document. Format:
|
|
53
|
+
* `https://api.tryfinch.com/employer/documents/:document_id`.
|
|
54
|
+
*/
|
|
55
|
+
url?: string;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* The year the document applies to, if available.
|
|
59
|
+
*/
|
|
60
|
+
year?: number | null;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* A 2005 version of the W-4 tax form containing information on an individual's
|
|
65
|
+
* filing status, dependents, and withholding details.
|
|
66
|
+
*/
|
|
67
|
+
export interface W42005 {
|
|
68
|
+
/**
|
|
69
|
+
* Detailed information specific to the 2005 W4 form.
|
|
70
|
+
*/
|
|
71
|
+
data?: W42005.Data;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Specifies the form type, indicating that this document is a 2005 W4 form.
|
|
75
|
+
*/
|
|
76
|
+
type?: 'w4_2005';
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* The tax year this W4 document applies to.
|
|
80
|
+
*/
|
|
81
|
+
year?: number | null;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export namespace W42005 {
|
|
85
|
+
/**
|
|
86
|
+
* Detailed information specific to the 2005 W4 form.
|
|
87
|
+
*/
|
|
88
|
+
export interface Data {
|
|
89
|
+
/**
|
|
90
|
+
* Additional withholding amount (in cents).
|
|
91
|
+
*/
|
|
92
|
+
additional_withholding?: number | null;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Indicates exemption status from federal tax withholding.
|
|
96
|
+
*/
|
|
97
|
+
exemption?: 'exempt' | 'non_exempt';
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* The individual's filing status for tax purposes.
|
|
101
|
+
*/
|
|
102
|
+
filing_status?: 'married' | 'married_but_withhold_at_higher_single_rate' | 'single';
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* The unique identifier for the individual associated with this 2005 W4 form.
|
|
106
|
+
*/
|
|
107
|
+
individual_id?: string;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Total number of allowances claimed (in cents).
|
|
111
|
+
*/
|
|
112
|
+
total_number_of_allowances?: number | null;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* A 2020 version of the W-4 tax form containing information on an individual's
|
|
118
|
+
* filing status, dependents, and withholding details.
|
|
119
|
+
*/
|
|
120
|
+
export interface W42020 {
|
|
121
|
+
/**
|
|
122
|
+
* Detailed information specific to the 2020 W4 form.
|
|
123
|
+
*/
|
|
124
|
+
data?: W42020.Data;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Specifies the form type, indicating that this document is a 2020 W4 form.
|
|
128
|
+
*/
|
|
129
|
+
type?: 'w4_2020';
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* The tax year this W4 document applies to.
|
|
133
|
+
*/
|
|
134
|
+
year?: number | null;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export namespace W42020 {
|
|
138
|
+
/**
|
|
139
|
+
* Detailed information specific to the 2020 W4 form.
|
|
140
|
+
*/
|
|
141
|
+
export interface Data {
|
|
142
|
+
/**
|
|
143
|
+
* Amount claimed for dependents other than qualifying children under 17 (in
|
|
144
|
+
* cents).
|
|
145
|
+
*/
|
|
146
|
+
amount_for_other_dependents?: number | null;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Amount claimed for dependents under 17 years old (in cents).
|
|
150
|
+
*/
|
|
151
|
+
amount_for_qualifying_children_under_17?: number | null;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Deductible expenses (in cents).
|
|
155
|
+
*/
|
|
156
|
+
deductions?: number | null;
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Additional withholding amount (in cents).
|
|
160
|
+
*/
|
|
161
|
+
extra_withholding?: number | null;
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* The individual's filing status for tax purposes.
|
|
165
|
+
*/
|
|
166
|
+
filing_status?:
|
|
167
|
+
| 'head_of_household'
|
|
168
|
+
| 'married_filing_jointly_or_qualifying_surviving_spouse'
|
|
169
|
+
| 'single_or_married_filing_separately'
|
|
170
|
+
| null;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* The unique identifier for the individual associated with this document.
|
|
174
|
+
*/
|
|
175
|
+
individual_id?: string;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Additional income from sources outside of primary employment (in cents).
|
|
179
|
+
*/
|
|
180
|
+
other_income?: number | null;
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Total amount claimed for dependents and other credits (in cents).
|
|
184
|
+
*/
|
|
185
|
+
total_claim_dependent_and_other_credits?: number | null;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
export interface DocumentListResponse {
|
|
190
|
+
documents: Array<DocumentResponse>;
|
|
191
|
+
|
|
192
|
+
paging: Shared.Paging;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* A 2020 version of the W-4 tax form containing information on an individual's
|
|
197
|
+
* filing status, dependents, and withholding details.
|
|
198
|
+
*/
|
|
199
|
+
export type DocumentRetreiveResponse = W42020 | W42005;
|
|
200
|
+
|
|
201
|
+
export interface DocumentListParams {
|
|
202
|
+
/**
|
|
203
|
+
* Comma-delimited list of stable Finch uuids for each individual. If empty,
|
|
204
|
+
* defaults to all individuals
|
|
205
|
+
*/
|
|
206
|
+
individual_ids?: Array<string>;
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* Number of documents to return (defaults to all)
|
|
210
|
+
*/
|
|
211
|
+
limit?: number;
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* Index to start from (defaults to 0)
|
|
215
|
+
*/
|
|
216
|
+
offset?: number;
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* Comma-delimited list of document types to filter on. If empty, defaults to all
|
|
220
|
+
* types
|
|
221
|
+
*/
|
|
222
|
+
types?: Array<'w4_2020' | 'w4_2005'>;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
export declare namespace Documents {
|
|
226
|
+
export {
|
|
227
|
+
type DocumentResponse as DocumentResponse,
|
|
228
|
+
type W42005 as W42005,
|
|
229
|
+
type W42020 as W42020,
|
|
230
|
+
type DocumentListResponse as DocumentListResponse,
|
|
231
|
+
type DocumentRetreiveResponse as DocumentRetreiveResponse,
|
|
232
|
+
type DocumentListParams as DocumentListParams,
|
|
233
|
+
};
|
|
234
|
+
}
|
|
@@ -10,6 +10,16 @@ import {
|
|
|
10
10
|
DirectoryListParams,
|
|
11
11
|
IndividualInDirectory,
|
|
12
12
|
} from './directory';
|
|
13
|
+
import * as DocumentsAPI from './documents';
|
|
14
|
+
import {
|
|
15
|
+
DocumentListParams,
|
|
16
|
+
DocumentListResponse,
|
|
17
|
+
DocumentResponse,
|
|
18
|
+
DocumentRetreiveResponse,
|
|
19
|
+
Documents,
|
|
20
|
+
W42005,
|
|
21
|
+
W42020,
|
|
22
|
+
} from './documents';
|
|
13
23
|
import * as EmploymentsAPI from './employments';
|
|
14
24
|
import {
|
|
15
25
|
EmploymentData,
|
|
@@ -64,6 +74,7 @@ export class HRIS extends APIResource {
|
|
|
64
74
|
employments: EmploymentsAPI.Employments = new EmploymentsAPI.Employments(this._client);
|
|
65
75
|
payments: PaymentsAPI.Payments = new PaymentsAPI.Payments(this._client);
|
|
66
76
|
payStatements: PayStatementsAPI.PayStatements = new PayStatementsAPI.PayStatements(this._client);
|
|
77
|
+
documents: DocumentsAPI.Documents = new DocumentsAPI.Documents(this._client);
|
|
67
78
|
benefits: BenefitsAPI.Benefits = new BenefitsAPI.Benefits(this._client);
|
|
68
79
|
}
|
|
69
80
|
|
|
@@ -160,6 +171,7 @@ HRIS.Payments = Payments;
|
|
|
160
171
|
HRIS.PaymentsSinglePage = PaymentsSinglePage;
|
|
161
172
|
HRIS.PayStatements = PayStatements;
|
|
162
173
|
HRIS.PayStatementResponsesPage = PayStatementResponsesPage;
|
|
174
|
+
HRIS.Documents = Documents;
|
|
163
175
|
HRIS.Benefits = Benefits;
|
|
164
176
|
HRIS.CompanyBenefitsSinglePage = CompanyBenefitsSinglePage;
|
|
165
177
|
HRIS.SupportedBenefitsSinglePage = SupportedBenefitsSinglePage;
|
|
@@ -208,6 +220,16 @@ export declare namespace HRIS {
|
|
|
208
220
|
type PayStatementRetrieveManyParams as PayStatementRetrieveManyParams,
|
|
209
221
|
};
|
|
210
222
|
|
|
223
|
+
export {
|
|
224
|
+
Documents as Documents,
|
|
225
|
+
type DocumentResponse as DocumentResponse,
|
|
226
|
+
type W42005 as W42005,
|
|
227
|
+
type W42020 as W42020,
|
|
228
|
+
type DocumentListResponse as DocumentListResponse,
|
|
229
|
+
type DocumentRetreiveResponse as DocumentRetreiveResponse,
|
|
230
|
+
type DocumentListParams as DocumentListParams,
|
|
231
|
+
};
|
|
232
|
+
|
|
211
233
|
export {
|
|
212
234
|
Benefits as Benefits,
|
|
213
235
|
type BenefitContribution as BenefitContribution,
|
|
@@ -25,6 +25,15 @@ export {
|
|
|
25
25
|
type DirectoryListParams,
|
|
26
26
|
type DirectoryListIndividualsParams,
|
|
27
27
|
} from './directory';
|
|
28
|
+
export {
|
|
29
|
+
Documents,
|
|
30
|
+
type DocumentResponse,
|
|
31
|
+
type W42005,
|
|
32
|
+
type W42020,
|
|
33
|
+
type DocumentListResponse,
|
|
34
|
+
type DocumentRetreiveResponse,
|
|
35
|
+
type DocumentListParams,
|
|
36
|
+
} from './documents';
|
|
28
37
|
export {
|
|
29
38
|
EmploymentDataResponsesPage,
|
|
30
39
|
Employments,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '6.
|
|
1
|
+
export const VERSION = '6.14.0'; // 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.14.0";
|
|
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.14.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|