@tryfinch/finch-api 6.26.0 → 6.28.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 +56 -0
- package/README.md +1 -1
- package/package.json +1 -1
- package/resources/access-tokens.d.ts +8 -0
- package/resources/access-tokens.d.ts.map +1 -1
- package/resources/access-tokens.js +8 -0
- package/resources/access-tokens.js.map +1 -1
- package/resources/access-tokens.mjs +8 -0
- package/resources/access-tokens.mjs.map +1 -1
- package/resources/hris/benefits/benefits.d.ts +73 -0
- package/resources/hris/benefits/benefits.d.ts.map +1 -1
- package/resources/hris/benefits/benefits.js +23 -0
- package/resources/hris/benefits/benefits.js.map +1 -1
- package/resources/hris/benefits/benefits.mjs +23 -0
- package/resources/hris/benefits/benefits.mjs.map +1 -1
- package/resources/hris/benefits/individuals.d.ts +35 -0
- package/resources/hris/benefits/individuals.d.ts.map +1 -1
- package/resources/hris/benefits/individuals.js +8 -0
- package/resources/hris/benefits/individuals.js.map +1 -1
- package/resources/hris/benefits/individuals.mjs +8 -0
- package/resources/hris/benefits/individuals.mjs.map +1 -1
- package/resources/hris/company/company.d.ts +15 -10
- package/resources/hris/company/company.d.ts.map +1 -1
- package/resources/hris/company/company.js +5 -0
- package/resources/hris/company/company.js.map +1 -1
- package/resources/hris/company/company.mjs +5 -0
- package/resources/hris/company/company.mjs.map +1 -1
- package/resources/hris/company/pay-statement-item/pay-statement-item.d.ts +9 -1
- package/resources/hris/company/pay-statement-item/pay-statement-item.d.ts.map +1 -1
- package/resources/hris/company/pay-statement-item/pay-statement-item.js.map +1 -1
- package/resources/hris/company/pay-statement-item/pay-statement-item.mjs.map +1 -1
- package/resources/hris/company/pay-statement-item/rules.d.ts +30 -0
- package/resources/hris/company/pay-statement-item/rules.d.ts.map +1 -1
- package/resources/hris/company/pay-statement-item/rules.js +16 -0
- package/resources/hris/company/pay-statement-item/rules.js.map +1 -1
- package/resources/hris/company/pay-statement-item/rules.mjs +16 -0
- package/resources/hris/company/pay-statement-item/rules.mjs.map +1 -1
- package/resources/hris/directory.d.ts +16 -8
- package/resources/hris/directory.d.ts.map +1 -1
- package/resources/hris/directory.js.map +1 -1
- package/resources/hris/directory.mjs.map +1 -1
- package/resources/hris/documents.d.ts +12 -0
- package/resources/hris/documents.d.ts.map +1 -1
- package/resources/hris/documents.js +7 -0
- package/resources/hris/documents.js.map +1 -1
- package/resources/hris/documents.mjs +7 -0
- package/resources/hris/documents.mjs.map +1 -1
- package/resources/hris/employments.d.ts +122 -103
- package/resources/hris/employments.d.ts.map +1 -1
- package/resources/hris/employments.js +10 -0
- package/resources/hris/employments.js.map +1 -1
- package/resources/hris/employments.mjs +10 -0
- package/resources/hris/employments.mjs.map +1 -1
- package/resources/hris/hris.d.ts +12 -12
- package/resources/hris/hris.d.ts.map +1 -1
- package/resources/hris/individuals.d.ts +73 -56
- package/resources/hris/individuals.d.ts.map +1 -1
- package/resources/hris/individuals.js.map +1 -1
- package/resources/hris/individuals.mjs.map +1 -1
- package/resources/hris/pay-statements.d.ts +16 -0
- package/resources/hris/pay-statements.d.ts.map +1 -1
- package/resources/hris/pay-statements.js +16 -0
- package/resources/hris/pay-statements.js.map +1 -1
- package/resources/hris/pay-statements.mjs +16 -0
- package/resources/hris/pay-statements.mjs.map +1 -1
- package/resources/hris/payments.d.ts +11 -0
- package/resources/hris/payments.d.ts.map +1 -1
- package/resources/hris/payments.js +11 -0
- package/resources/hris/payments.js.map +1 -1
- package/resources/hris/payments.mjs +11 -0
- package/resources/hris/payments.mjs.map +1 -1
- package/resources/request-forwarding.d.ts +10 -0
- package/resources/request-forwarding.d.ts.map +1 -1
- package/resources/request-forwarding.js +10 -0
- package/resources/request-forwarding.js.map +1 -1
- package/resources/request-forwarding.mjs +10 -0
- package/resources/request-forwarding.mjs.map +1 -1
- package/resources/sandbox/company.d.ts +23 -0
- package/resources/sandbox/company.d.ts.map +1 -1
- package/resources/sandbox/company.js +23 -0
- package/resources/sandbox/company.js.map +1 -1
- package/resources/sandbox/company.mjs +23 -0
- package/resources/sandbox/company.mjs.map +1 -1
- package/resources/sandbox/connections/accounts.d.ts +17 -0
- package/resources/sandbox/connections/accounts.d.ts.map +1 -1
- package/resources/sandbox/connections/accounts.js +9 -0
- package/resources/sandbox/connections/accounts.js.map +1 -1
- package/resources/sandbox/connections/accounts.mjs +9 -0
- package/resources/sandbox/connections/accounts.mjs.map +1 -1
- package/resources/sandbox/connections/connections.d.ts +7 -0
- package/resources/sandbox/connections/connections.d.ts.map +1 -1
- package/resources/sandbox/connections/connections.js +7 -0
- package/resources/sandbox/connections/connections.js.map +1 -1
- package/resources/sandbox/connections/connections.mjs +7 -0
- package/resources/sandbox/connections/connections.mjs.map +1 -1
- package/resources/sandbox/directory.d.ts +7 -0
- package/resources/sandbox/directory.d.ts.map +1 -1
- package/resources/sandbox/directory.js.map +1 -1
- package/resources/sandbox/directory.mjs.map +1 -1
- package/resources/sandbox/employment.d.ts +7 -0
- package/resources/sandbox/employment.d.ts.map +1 -1
- package/resources/sandbox/employment.js.map +1 -1
- package/resources/sandbox/employment.mjs.map +1 -1
- package/resources/sandbox/individual.d.ts +7 -0
- package/resources/sandbox/individual.d.ts.map +1 -1
- package/resources/sandbox/individual.js.map +1 -1
- package/resources/sandbox/individual.mjs.map +1 -1
- package/resources/sandbox/jobs/configuration.d.ts +15 -0
- package/resources/sandbox/jobs/configuration.d.ts.map +1 -1
- package/resources/sandbox/jobs/configuration.js +15 -0
- package/resources/sandbox/jobs/configuration.js.map +1 -1
- package/resources/sandbox/jobs/configuration.mjs +15 -0
- package/resources/sandbox/jobs/configuration.mjs.map +1 -1
- package/resources/sandbox/jobs/jobs.d.ts +7 -0
- package/resources/sandbox/jobs/jobs.d.ts.map +1 -1
- package/resources/sandbox/jobs/jobs.js +7 -0
- package/resources/sandbox/jobs/jobs.js.map +1 -1
- package/resources/sandbox/jobs/jobs.mjs +7 -0
- package/resources/sandbox/jobs/jobs.mjs.map +1 -1
- package/resources/sandbox/payment.d.ts +19 -0
- package/resources/sandbox/payment.d.ts.map +1 -1
- package/resources/sandbox/payment.js.map +1 -1
- package/resources/sandbox/payment.mjs.map +1 -1
- package/resources/shared.d.ts +4 -4
- package/resources/shared.d.ts.map +1 -1
- package/src/resources/access-tokens.ts +8 -0
- package/src/resources/hris/benefits/benefits.ts +83 -0
- package/src/resources/hris/benefits/individuals.ts +35 -0
- package/src/resources/hris/company/company.ts +15 -10
- package/src/resources/hris/company/pay-statement-item/pay-statement-item.ts +9 -1
- package/src/resources/hris/company/pay-statement-item/rules.ts +30 -0
- package/src/resources/hris/directory.ts +16 -8
- package/src/resources/hris/documents.ts +12 -0
- package/src/resources/hris/employments.ts +139 -115
- package/src/resources/hris/hris.ts +14 -14
- package/src/resources/hris/individuals.ts +96 -74
- package/src/resources/hris/pay-statements.ts +16 -0
- package/src/resources/hris/payments.ts +11 -0
- package/src/resources/request-forwarding.ts +10 -0
- package/src/resources/sandbox/company.ts +23 -0
- package/src/resources/sandbox/connections/accounts.ts +17 -0
- package/src/resources/sandbox/connections/connections.ts +7 -0
- package/src/resources/sandbox/directory.ts +7 -0
- package/src/resources/sandbox/employment.ts +7 -0
- package/src/resources/sandbox/individual.ts +7 -0
- package/src/resources/sandbox/jobs/configuration.ts +15 -0
- package/src/resources/sandbox/jobs/jobs.ts +7 -0
- package/src/resources/sandbox/payment.ts +19 -0
- package/src/resources/shared.ts +4 -4
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -5,130 +5,149 @@ import { ResponsesPage } from "../../pagination.js";
|
|
|
5
5
|
export declare class Employments extends APIResource {
|
|
6
6
|
/**
|
|
7
7
|
* Read individual employment and income data
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* // Automatically fetches more pages as needed.
|
|
12
|
+
* for await (const employmentDataResponse of client.hris.employments.retrieveMany(
|
|
13
|
+
* { requests: [{ individual_id: 'individual_id' }] },
|
|
14
|
+
* )) {
|
|
15
|
+
* // ...
|
|
16
|
+
* }
|
|
17
|
+
* ```
|
|
8
18
|
*/
|
|
9
19
|
retrieveMany(body: EmploymentRetrieveManyParams, options?: Core.RequestOptions): Core.PagePromise<EmploymentDataResponsesPage, EmploymentDataResponse>;
|
|
10
20
|
}
|
|
11
21
|
export declare class EmploymentDataResponsesPage extends ResponsesPage<EmploymentDataResponse> {
|
|
12
22
|
}
|
|
13
|
-
export
|
|
14
|
-
/**
|
|
15
|
-
* A stable Finch `id` (UUID v4) for an individual in the company.
|
|
16
|
-
*/
|
|
17
|
-
id?: string;
|
|
18
|
-
/**
|
|
19
|
-
* Worker's compensation classification code for this employee
|
|
20
|
-
*/
|
|
21
|
-
class_code?: string | null;
|
|
22
|
-
/**
|
|
23
|
-
* Custom fields for the individual. These are fields which are defined by the
|
|
24
|
-
* employer in the system.
|
|
25
|
-
*/
|
|
26
|
-
custom_fields?: Array<EmploymentData.CustomField> | null;
|
|
27
|
-
/**
|
|
28
|
-
* The department object.
|
|
29
|
-
*/
|
|
30
|
-
department?: EmploymentData.Department | null;
|
|
31
|
-
/**
|
|
32
|
-
* The employment object.
|
|
33
|
-
*/
|
|
34
|
-
employment?: EmploymentData.Employment | null;
|
|
35
|
-
/**
|
|
36
|
-
* The detailed employment status of the individual. Available options: `active`,
|
|
37
|
-
* `deceased`, `leave`, `onboarding`, `prehire`, `retired`, `terminated`.
|
|
38
|
-
*/
|
|
39
|
-
employment_status?: 'active' | 'deceased' | 'leave' | 'onboarding' | 'prehire' | 'retired' | 'terminated' | null;
|
|
40
|
-
end_date?: string | null;
|
|
41
|
-
/**
|
|
42
|
-
* The legal first name of the individual.
|
|
43
|
-
*/
|
|
44
|
-
first_name?: string | null;
|
|
45
|
-
/**
|
|
46
|
-
* The employee's income as reported by the provider. This may not always be
|
|
47
|
-
* annualized income, but may be in units of bi-weekly, semi-monthly, daily, etc,
|
|
48
|
-
* depending on what information the provider returns.
|
|
49
|
-
*/
|
|
50
|
-
income?: HRISAPI.Income | null;
|
|
51
|
-
/**
|
|
52
|
-
* The array of income history.
|
|
53
|
-
*/
|
|
54
|
-
income_history?: Array<HRISAPI.Income | null> | null;
|
|
55
|
-
/**
|
|
56
|
-
* `true` if the individual an an active employee or contractor at the company.
|
|
57
|
-
*/
|
|
58
|
-
is_active?: boolean | null;
|
|
59
|
-
/**
|
|
60
|
-
* The legal last name of the individual.
|
|
61
|
-
*/
|
|
62
|
-
last_name?: string | null;
|
|
63
|
-
latest_rehire_date?: string | null;
|
|
64
|
-
location?: HRISAPI.Location | null;
|
|
65
|
-
/**
|
|
66
|
-
* The manager object representing the manager of the individual within the org.
|
|
67
|
-
*/
|
|
68
|
-
manager?: EmploymentData.Manager | null;
|
|
69
|
-
/**
|
|
70
|
-
* The legal middle name of the individual.
|
|
71
|
-
*/
|
|
72
|
-
middle_name?: string | null;
|
|
73
|
-
/**
|
|
74
|
-
* The source system's unique employment identifier for this individual
|
|
75
|
-
*/
|
|
76
|
-
source_id?: string | null;
|
|
77
|
-
start_date?: string | null;
|
|
78
|
-
/**
|
|
79
|
-
* The current title of the individual.
|
|
80
|
-
*/
|
|
81
|
-
title?: string | null;
|
|
82
|
-
/**
|
|
83
|
-
* @deprecated This field is deprecated in favour of `source_id`
|
|
84
|
-
*/
|
|
85
|
-
work_id?: string | null;
|
|
86
|
-
}
|
|
23
|
+
export type EmploymentData = EmploymentData.UnionMember0 | EmploymentData.BatchError;
|
|
87
24
|
export declare namespace EmploymentData {
|
|
88
|
-
interface
|
|
89
|
-
name?: string;
|
|
90
|
-
value?: unknown;
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* The department object.
|
|
94
|
-
*/
|
|
95
|
-
interface Department {
|
|
25
|
+
interface UnionMember0 {
|
|
96
26
|
/**
|
|
97
|
-
*
|
|
27
|
+
* A stable Finch `id` (UUID v4) for an individual in the company.
|
|
98
28
|
*/
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
29
|
+
id: string;
|
|
30
|
+
/**
|
|
31
|
+
* Worker's compensation classification code for this employee
|
|
32
|
+
*/
|
|
33
|
+
class_code: string | null;
|
|
34
|
+
/**
|
|
35
|
+
* Custom fields for the individual. These are fields which are defined by the
|
|
36
|
+
* employer in the system.
|
|
37
|
+
*/
|
|
38
|
+
custom_fields: Array<UnionMember0.CustomField> | null;
|
|
39
|
+
/**
|
|
40
|
+
* The department object.
|
|
41
|
+
*/
|
|
42
|
+
department: UnionMember0.Department | null;
|
|
43
|
+
/**
|
|
44
|
+
* The employment object.
|
|
45
|
+
*/
|
|
46
|
+
employment: UnionMember0.Employment | null;
|
|
47
|
+
/**
|
|
48
|
+
* The detailed employment status of the individual. Available options: `active`,
|
|
49
|
+
* `deceased`, `leave`, `onboarding`, `prehire`, `retired`, `terminated`.
|
|
50
|
+
*/
|
|
51
|
+
employment_status: 'active' | 'deceased' | 'leave' | 'onboarding' | 'prehire' | 'retired' | 'terminated' | null;
|
|
52
|
+
end_date: string | null;
|
|
53
|
+
/**
|
|
54
|
+
* The legal first name of the individual.
|
|
55
|
+
*/
|
|
56
|
+
first_name: string | null;
|
|
57
|
+
/**
|
|
58
|
+
* `true` if the individual an an active employee or contractor at the company.
|
|
59
|
+
*/
|
|
60
|
+
is_active: boolean | null;
|
|
61
|
+
/**
|
|
62
|
+
* The legal last name of the individual.
|
|
63
|
+
*/
|
|
64
|
+
last_name: string | null;
|
|
65
|
+
latest_rehire_date: string | null;
|
|
66
|
+
location: HRISAPI.Location | null;
|
|
105
67
|
/**
|
|
106
|
-
* The
|
|
107
|
-
* `part_time`, `intern`, `temp`, `seasonal` and `individual_contractor`.
|
|
68
|
+
* The manager object representing the manager of the individual within the org.
|
|
108
69
|
*/
|
|
109
|
-
|
|
70
|
+
manager: UnionMember0.Manager | null;
|
|
110
71
|
/**
|
|
111
|
-
* The
|
|
72
|
+
* The legal middle name of the individual.
|
|
112
73
|
*/
|
|
113
|
-
|
|
74
|
+
middle_name: string | null;
|
|
75
|
+
/**
|
|
76
|
+
* The source system's unique employment identifier for this individual
|
|
77
|
+
*/
|
|
78
|
+
source_id: string | null;
|
|
79
|
+
start_date: string | null;
|
|
80
|
+
/**
|
|
81
|
+
* The current title of the individual.
|
|
82
|
+
*/
|
|
83
|
+
title: string | null;
|
|
84
|
+
/**
|
|
85
|
+
* @deprecated This field is deprecated in favour of `source_id`
|
|
86
|
+
*/
|
|
87
|
+
work_id: string | null;
|
|
88
|
+
/**
|
|
89
|
+
* The employee's income as reported by the provider. This may not always be
|
|
90
|
+
* annualized income, but may be in units of bi-weekly, semi-monthly, daily, etc,
|
|
91
|
+
* depending on what information the provider returns.
|
|
92
|
+
*/
|
|
93
|
+
income?: HRISAPI.Income | null;
|
|
94
|
+
/**
|
|
95
|
+
* The array of income history.
|
|
96
|
+
*/
|
|
97
|
+
income_history?: Array<HRISAPI.Income | null> | null;
|
|
114
98
|
}
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
99
|
+
namespace UnionMember0 {
|
|
100
|
+
interface CustomField {
|
|
101
|
+
name?: string;
|
|
102
|
+
value?: string | Array<unknown> | unknown | number | boolean | null;
|
|
103
|
+
}
|
|
119
104
|
/**
|
|
120
|
-
*
|
|
105
|
+
* The department object.
|
|
121
106
|
*/
|
|
122
|
-
|
|
107
|
+
interface Department {
|
|
108
|
+
/**
|
|
109
|
+
* The name of the department associated with the individual.
|
|
110
|
+
*/
|
|
111
|
+
name: string | null;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* The employment object.
|
|
115
|
+
*/
|
|
116
|
+
interface Employment {
|
|
117
|
+
/**
|
|
118
|
+
* The secondary employment type of the individual. Options: `full_time`,
|
|
119
|
+
* `part_time`, `intern`, `temp`, `seasonal` and `individual_contractor`.
|
|
120
|
+
*/
|
|
121
|
+
subtype: 'full_time' | 'intern' | 'part_time' | 'temp' | 'seasonal' | 'individual_contractor' | null;
|
|
122
|
+
/**
|
|
123
|
+
* The main employment type of the individual.
|
|
124
|
+
*/
|
|
125
|
+
type: 'employee' | 'contractor' | null;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* The manager object representing the manager of the individual within the org.
|
|
129
|
+
*/
|
|
130
|
+
interface Manager {
|
|
131
|
+
/**
|
|
132
|
+
* A stable Finch `id` (UUID v4) for an individual in the company.
|
|
133
|
+
*/
|
|
134
|
+
id: string;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
interface BatchError {
|
|
138
|
+
code: number;
|
|
139
|
+
message: string;
|
|
140
|
+
name: string;
|
|
141
|
+
finch_code?: string;
|
|
123
142
|
}
|
|
124
143
|
}
|
|
125
144
|
export interface EmploymentDataResponse {
|
|
126
|
-
body
|
|
127
|
-
code
|
|
145
|
+
body: EmploymentData;
|
|
146
|
+
code: number;
|
|
128
147
|
/**
|
|
129
148
|
* A stable Finch `id` (UUID v4) for an individual in the company.
|
|
130
149
|
*/
|
|
131
|
-
individual_id
|
|
150
|
+
individual_id: string;
|
|
132
151
|
}
|
|
133
152
|
export interface EmploymentRetrieveManyParams {
|
|
134
153
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"employments.d.ts","sourceRoot":"","sources":["../../src/resources/hris/employments.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,OAAO,MAAM,QAAQ,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,qBAAa,WAAY,SAAQ,WAAW;IAC1C
|
|
1
|
+
{"version":3,"file":"employments.d.ts","sourceRoot":"","sources":["../../src/resources/hris/employments.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC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b,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB;CACF;AAED,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,cAAc,CAAC;IAErB,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,4BAA4B,CAAC,OAAO,CAAC,CAAC;CACvD;AAED,yBAAiB,4BAA4B,CAAC;IAC5C,UAAiB,OAAO;QACtB;;;;WAIG;QACH,aAAa,EAAE,MAAM,CAAC;KACvB;CACF;AAID,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,2BAA2B,IAAI,2BAA2B,EAC1D,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;CACH"}
|
|
@@ -7,6 +7,16 @@ const pagination_1 = require("../../pagination.js");
|
|
|
7
7
|
class Employments extends resource_1.APIResource {
|
|
8
8
|
/**
|
|
9
9
|
* Read individual employment and income data
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* // Automatically fetches more pages as needed.
|
|
14
|
+
* for await (const employmentDataResponse of client.hris.employments.retrieveMany(
|
|
15
|
+
* { requests: [{ individual_id: 'individual_id' }] },
|
|
16
|
+
* )) {
|
|
17
|
+
* // ...
|
|
18
|
+
* }
|
|
19
|
+
* ```
|
|
10
20
|
*/
|
|
11
21
|
retrieveMany(body, options) {
|
|
12
22
|
return this._client.getAPIList('/employer/employment', EmploymentDataResponsesPage, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"employments.js","sourceRoot":"","sources":["../../src/resources/hris/employments.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAG7C,oDAAiD;AAEjD,MAAa,WAAY,SAAQ,sBAAW;IAC1C
|
|
1
|
+
{"version":3,"file":"employments.js","sourceRoot":"","sources":["../../src/resources/hris/employments.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAG7C,oDAAiD;AAEjD,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;;;;;;;;;;;OAYG;IACH,YAAY,CACV,IAAkC,EAClC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,sBAAsB,EAAE,2BAA2B,EAAE;YAClF,IAAI;YACJ,MAAM,EAAE,MAAM;YACd,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AAxBD,kCAwBC;AAED,MAAa,2BAA4B,SAAQ,0BAAqC;CAAG;AAAzF,kEAAyF;AA+LzF,WAAW,CAAC,2BAA2B,GAAG,2BAA2B,CAAC"}
|
|
@@ -4,6 +4,16 @@ import { ResponsesPage } from "../../pagination.mjs";
|
|
|
4
4
|
export class Employments extends APIResource {
|
|
5
5
|
/**
|
|
6
6
|
* Read individual employment and income data
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* // Automatically fetches more pages as needed.
|
|
11
|
+
* for await (const employmentDataResponse of client.hris.employments.retrieveMany(
|
|
12
|
+
* { requests: [{ individual_id: 'individual_id' }] },
|
|
13
|
+
* )) {
|
|
14
|
+
* // ...
|
|
15
|
+
* }
|
|
16
|
+
* ```
|
|
7
17
|
*/
|
|
8
18
|
retrieveMany(body, options) {
|
|
9
19
|
return this._client.getAPIList('/employer/employment', EmploymentDataResponsesPage, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"employments.mjs","sourceRoot":"","sources":["../../src/resources/hris/employments.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,aAAa,EAAE;AAExB,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C
|
|
1
|
+
{"version":3,"file":"employments.mjs","sourceRoot":"","sources":["../../src/resources/hris/employments.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,aAAa,EAAE;AAExB,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;OAYG;IACH,YAAY,CACV,IAAkC,EAClC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,sBAAsB,EAAE,2BAA2B,EAAE;YAClF,IAAI;YACJ,MAAM,EAAE,MAAM;YACd,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AAED,MAAM,OAAO,2BAA4B,SAAQ,aAAqC;CAAG;AA+LzF,WAAW,CAAC,2BAA2B,GAAG,2BAA2B,CAAC"}
|
package/resources/hris/hris.d.ts
CHANGED
|
@@ -34,48 +34,48 @@ export interface Income {
|
|
|
34
34
|
/**
|
|
35
35
|
* The income amount in cents.
|
|
36
36
|
*/
|
|
37
|
-
amount
|
|
37
|
+
amount: number | null;
|
|
38
38
|
/**
|
|
39
39
|
* The currency code.
|
|
40
40
|
*/
|
|
41
|
-
currency
|
|
41
|
+
currency: string | null;
|
|
42
42
|
/**
|
|
43
43
|
* The date the income amount went into effect.
|
|
44
44
|
*/
|
|
45
|
-
effective_date
|
|
45
|
+
effective_date: string | null;
|
|
46
46
|
/**
|
|
47
47
|
* The income unit of payment. Options: `yearly`, `quarterly`, `monthly`,
|
|
48
48
|
* `semi_monthly`, `bi_weekly`, `weekly`, `daily`, `hourly`, and `fixed`.
|
|
49
49
|
*/
|
|
50
|
-
unit
|
|
50
|
+
unit: 'yearly' | 'quarterly' | 'monthly' | 'semi_monthly' | 'bi_weekly' | 'weekly' | 'daily' | 'hourly' | 'fixed' | null;
|
|
51
51
|
}
|
|
52
52
|
export interface Location {
|
|
53
53
|
/**
|
|
54
54
|
* City, district, suburb, town, or village.
|
|
55
55
|
*/
|
|
56
|
-
city
|
|
56
|
+
city: string | null;
|
|
57
57
|
/**
|
|
58
58
|
* The 2-letter ISO 3166 country code.
|
|
59
59
|
*/
|
|
60
|
-
country
|
|
60
|
+
country: string | null;
|
|
61
61
|
/**
|
|
62
62
|
* Street address or PO box.
|
|
63
63
|
*/
|
|
64
|
-
line1
|
|
64
|
+
line1: string | null;
|
|
65
65
|
/**
|
|
66
66
|
* Apartment, suite, unit, or building.
|
|
67
67
|
*/
|
|
68
|
-
line2
|
|
69
|
-
name?: string | null;
|
|
68
|
+
line2: string | null;
|
|
70
69
|
/**
|
|
71
70
|
* The postal code or zip code.
|
|
72
71
|
*/
|
|
73
|
-
postal_code
|
|
74
|
-
source_id?: string | null;
|
|
72
|
+
postal_code: string | null;
|
|
75
73
|
/**
|
|
76
74
|
* The state code.
|
|
77
75
|
*/
|
|
78
|
-
state
|
|
76
|
+
state: string | null;
|
|
77
|
+
name?: string | null;
|
|
78
|
+
source_id?: string | null;
|
|
79
79
|
}
|
|
80
80
|
export interface Money {
|
|
81
81
|
/**
|
|
@@ -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,YAAY,MAAM,aAAa,CAAC;AAC5C,OAAO,EACL,SAAS,EACT,8BAA8B,EAC9B,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,YAAY,MAAM,aAAa,CAAC;AAC5C,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,gBAAgB,EAChB,wBAAwB,EACxB,SAAS,EACT,MAAM,EACN,MAAM,EACP,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,cAAc,MAAM,eAAe,CAAC;AAChD,OAAO,EACL,cAAc,EACd,sBAAsB,EACtB,2BAA2B,EAC3B,4BAA4B,EAC5B,WAAW,EACZ,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,cAAc,MAAM,eAAe,C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ACxC,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;IAEF,OAAO,EACL,aAAa,IAAI,aAAa,EAC9B,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,oBAAoB,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,cAAc,IAAI,cAAc,EACrC,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,yBAAyB,IAAI,yBAAyB,EACtD,+CAA+C,IAAI,+CAA+C,EAClG,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -5,73 +5,90 @@ import { ResponsesPage } from "../../pagination.js";
|
|
|
5
5
|
export declare class Individuals extends APIResource {
|
|
6
6
|
/**
|
|
7
7
|
* Read individual data, excluding income and employment data
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* // Automatically fetches more pages as needed.
|
|
12
|
+
* for await (const individualResponse of client.hris.individuals.retrieveMany()) {
|
|
13
|
+
* // ...
|
|
14
|
+
* }
|
|
15
|
+
* ```
|
|
8
16
|
*/
|
|
9
17
|
retrieveMany(body?: IndividualRetrieveManyParams, options?: Core.RequestOptions): Core.PagePromise<IndividualResponsesPage, IndividualResponse>;
|
|
10
18
|
retrieveMany(options?: Core.RequestOptions): Core.PagePromise<IndividualResponsesPage, IndividualResponse>;
|
|
11
19
|
}
|
|
12
20
|
export declare class IndividualResponsesPage extends ResponsesPage<IndividualResponse> {
|
|
13
21
|
}
|
|
14
|
-
export
|
|
15
|
-
/**
|
|
16
|
-
* A stable Finch `id` (UUID v4) for an individual in the company.
|
|
17
|
-
*/
|
|
18
|
-
id?: string;
|
|
19
|
-
dob?: string | null;
|
|
20
|
-
emails?: Array<Individual.Email> | null;
|
|
21
|
-
/**
|
|
22
|
-
* Social Security Number of the individual in **encrypted** format. This field is
|
|
23
|
-
* only available with the `ssn` scope enabled and the
|
|
24
|
-
* `options: { include: ['ssn'] }` param set in the body.
|
|
25
|
-
*/
|
|
26
|
-
encrypted_ssn?: string | null;
|
|
27
|
-
/**
|
|
28
|
-
* The EEOC-defined ethnicity of the individual.
|
|
29
|
-
*/
|
|
30
|
-
ethnicity?: 'asian' | 'white' | 'black_or_african_american' | 'native_hawaiian_or_pacific_islander' | 'american_indian_or_alaska_native' | 'hispanic_or_latino' | 'two_or_more_races' | 'decline_to_specify' | null;
|
|
31
|
-
/**
|
|
32
|
-
* The legal first name of the individual.
|
|
33
|
-
*/
|
|
34
|
-
first_name?: string | null;
|
|
35
|
-
/**
|
|
36
|
-
* The gender of the individual.
|
|
37
|
-
*/
|
|
38
|
-
gender?: 'female' | 'male' | 'other' | 'decline_to_specify' | null;
|
|
39
|
-
/**
|
|
40
|
-
* The legal last name of the individual.
|
|
41
|
-
*/
|
|
42
|
-
last_name?: string | null;
|
|
43
|
-
/**
|
|
44
|
-
* The legal middle name of the individual.
|
|
45
|
-
*/
|
|
46
|
-
middle_name?: string | null;
|
|
47
|
-
phone_numbers?: Array<Individual.PhoneNumber | null> | null;
|
|
48
|
-
/**
|
|
49
|
-
* The preferred name of the individual.
|
|
50
|
-
*/
|
|
51
|
-
preferred_name?: string | null;
|
|
52
|
-
residence?: HRISAPI.Location | null;
|
|
53
|
-
/**
|
|
54
|
-
* Social Security Number of the individual. This field is only available with the
|
|
55
|
-
* `ssn` scope enabled and the `options: { include: ['ssn'] }` param set in the
|
|
56
|
-
* body.
|
|
57
|
-
* [Click here to learn more about enabling the SSN field](/developer-resources/Enable-SSN-Field).
|
|
58
|
-
*/
|
|
59
|
-
ssn?: string | null;
|
|
60
|
-
}
|
|
22
|
+
export type Individual = Individual.UnionMember0 | Individual.BatchError;
|
|
61
23
|
export declare namespace Individual {
|
|
62
|
-
interface
|
|
63
|
-
|
|
64
|
-
|
|
24
|
+
interface UnionMember0 {
|
|
25
|
+
/**
|
|
26
|
+
* A stable Finch `id` (UUID v4) for an individual in the company.
|
|
27
|
+
*/
|
|
28
|
+
id: string;
|
|
29
|
+
dob: string | null;
|
|
30
|
+
/**
|
|
31
|
+
* The EEOC-defined ethnicity of the individual.
|
|
32
|
+
*/
|
|
33
|
+
ethnicity: 'asian' | 'white' | 'black_or_african_american' | 'native_hawaiian_or_pacific_islander' | 'american_indian_or_alaska_native' | 'hispanic_or_latino' | 'two_or_more_races' | 'decline_to_specify' | null;
|
|
34
|
+
/**
|
|
35
|
+
* The legal first name of the individual.
|
|
36
|
+
*/
|
|
37
|
+
first_name: string | null;
|
|
38
|
+
/**
|
|
39
|
+
* The gender of the individual.
|
|
40
|
+
*/
|
|
41
|
+
gender: 'female' | 'male' | 'other' | 'decline_to_specify' | null;
|
|
42
|
+
/**
|
|
43
|
+
* The legal last name of the individual.
|
|
44
|
+
*/
|
|
45
|
+
last_name: string | null;
|
|
46
|
+
/**
|
|
47
|
+
* The legal middle name of the individual.
|
|
48
|
+
*/
|
|
49
|
+
middle_name: string | null;
|
|
50
|
+
phone_numbers: Array<UnionMember0.PhoneNumber | null> | null;
|
|
51
|
+
/**
|
|
52
|
+
* The preferred name of the individual.
|
|
53
|
+
*/
|
|
54
|
+
preferred_name: string | null;
|
|
55
|
+
residence: HRISAPI.Location | null;
|
|
56
|
+
emails?: Array<UnionMember0.Email> | null;
|
|
57
|
+
/**
|
|
58
|
+
* Social Security Number of the individual in **encrypted** format. This field is
|
|
59
|
+
* only available with the `ssn` scope enabled and the
|
|
60
|
+
* `options: { include: ['ssn'] }` param set in the body.
|
|
61
|
+
*/
|
|
62
|
+
encrypted_ssn?: string | null;
|
|
63
|
+
/**
|
|
64
|
+
* Social Security Number of the individual. This field is only available with the
|
|
65
|
+
* `ssn` scope enabled and the `options: { include: ['ssn'] }` param set in the
|
|
66
|
+
* body.
|
|
67
|
+
* [Click here to learn more about enabling the SSN field](/developer-resources/Enable-SSN-Field).
|
|
68
|
+
*/
|
|
69
|
+
ssn?: string | null;
|
|
70
|
+
}
|
|
71
|
+
namespace UnionMember0 {
|
|
72
|
+
interface PhoneNumber {
|
|
73
|
+
data: string | null;
|
|
74
|
+
type: 'work' | 'personal' | null;
|
|
75
|
+
}
|
|
76
|
+
interface Email {
|
|
77
|
+
data: string;
|
|
78
|
+
type: 'work' | 'personal' | null;
|
|
79
|
+
}
|
|
65
80
|
}
|
|
66
|
-
interface
|
|
67
|
-
|
|
68
|
-
|
|
81
|
+
interface BatchError {
|
|
82
|
+
code: number;
|
|
83
|
+
message: string;
|
|
84
|
+
name: string;
|
|
85
|
+
finch_code?: string;
|
|
69
86
|
}
|
|
70
87
|
}
|
|
71
88
|
export interface IndividualResponse {
|
|
72
|
-
body
|
|
73
|
-
code
|
|
74
|
-
individual_id
|
|
89
|
+
body: Individual;
|
|
90
|
+
code: number;
|
|
91
|
+
individual_id: string;
|
|
75
92
|
}
|
|
76
93
|
export interface IndividualRetrieveManyParams {
|
|
77
94
|
options?: IndividualRetrieveManyParams.Options | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"individuals.d.ts","sourceRoot":"","sources":["../../src/resources/hris/individuals.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,OAAO,MAAM,QAAQ,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,qBAAa,WAAY,SAAQ,WAAW;IAC1C
|
|
1
|
+
{"version":3,"file":"individuals.d.ts","sourceRoot":"","sources":["../../src/resources/hris/individuals.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,OAAO,MAAM,QAAQ,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;OAUG;IACH,YAAY,CACV,IAAI,CAAC,EAAE,4BAA4B,EACnC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,WAAW,CAAC,uBAAuB,EAAE,kBAAkB,CAAC;IAChE,YAAY,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,WAAW,CAAC,uBAAuB,EAAE,kBAAkB,CAAC;CAc3G;AAED,qBAAa,uBAAwB,SAAQ,aAAa,CAAC,kBAAkB,CAAC;CAAG;AAEjF,MAAM,MAAM,UAAU,GAAG,UAAU,CAAC,YAAY,GAAG,UAAU,CAAC,UAAU,CAAC;AAEzE,yBAAiB,UAAU,CAAC;IAC1B,UAAiB,YAAY;QAC3B;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX,GAAG,EA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CAAC,EAAE,MAAM,CAAC;KACrB;CACF;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,UAAU,CAAC;IAEjB,IAAI,EAAE,MAAM,CAAC;IAEb,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,4BAA4B;IAC3C,OAAO,CAAC,EAAE,4BAA4B,CAAC,OAAO,GAAG,IAAI,CAAC;IAEtD,QAAQ,CAAC,EAAE,KAAK,CAAC,4BAA4B,CAAC,OAAO,CAAC,CAAC;CACxD;AAED,yBAAiB,4BAA4B,CAAC;IAC5C,UAAiB,OAAO;QACtB,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;KACzB;IAED,UAAiB,OAAO;QACtB,aAAa,CAAC,EAAE,MAAM,CAAC;KACxB;CACF;AAID,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,uBAAuB,IAAI,uBAAuB,EAClD,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"individuals.js","sourceRoot":"","sources":["../../src/resources/hris/individuals.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAC7C,wCAA8C;AAG9C,oDAAiD;AAEjD,MAAa,WAAY,SAAQ,sBAAW;
|
|
1
|
+
{"version":3,"file":"individuals.js","sourceRoot":"","sources":["../../src/resources/hris/individuals.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAC7C,wCAA8C;AAG9C,oDAAiD;AAEjD,MAAa,WAAY,SAAQ,sBAAW;IAiB1C,YAAY,CACV,OAA2D,EAAE,EAC7D,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,IAAI,CAAC,EAAE;YAC1B,OAAO,IAAI,CAAC,YAAY,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;SACpC;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,sBAAsB,EAAE,uBAAuB,EAAE;YAC9E,IAAI;YACJ,MAAM,EAAE,MAAM;YACd,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AA9BD,kCA8BC;AAED,MAAa,uBAAwB,SAAQ,0BAAiC;CAAG;AAAjF,0DAAiF;AA2HjF,WAAW,CAAC,uBAAuB,GAAG,uBAAuB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"individuals.mjs","sourceRoot":"","sources":["../../src/resources/hris/individuals.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;OAGpB,EAAE,aAAa,EAAE;AAExB,MAAM,OAAO,WAAY,SAAQ,WAAW;
|
|
1
|
+
{"version":3,"file":"individuals.mjs","sourceRoot":"","sources":["../../src/resources/hris/individuals.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;OAGpB,EAAE,aAAa,EAAE;AAExB,MAAM,OAAO,WAAY,SAAQ,WAAW;IAiB1C,YAAY,CACV,OAA2D,EAAE,EAC7D,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,IAAI,CAAC,EAAE;YAC1B,OAAO,IAAI,CAAC,YAAY,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;SACpC;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,sBAAsB,EAAE,uBAAuB,EAAE;YAC9E,IAAI;YACJ,MAAM,EAAE,MAAM;YACd,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AAED,MAAM,OAAO,uBAAwB,SAAQ,aAAiC;CAAG;AA2HjF,WAAW,CAAC,uBAAuB,GAAG,uBAAuB,CAAC"}
|
|
@@ -10,6 +10,22 @@ export declare class PayStatements extends APIResource {
|
|
|
10
10
|
*
|
|
11
11
|
* Deduction and contribution types are supported by the payroll systems that
|
|
12
12
|
* supports Benefits.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* // Automatically fetches more pages as needed.
|
|
17
|
+
* for await (const payStatementResponse of client.hris.payStatements.retrieveMany(
|
|
18
|
+
* {
|
|
19
|
+
* requests: [
|
|
20
|
+
* {
|
|
21
|
+
* payment_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
22
|
+
* },
|
|
23
|
+
* ],
|
|
24
|
+
* },
|
|
25
|
+
* )) {
|
|
26
|
+
* // ...
|
|
27
|
+
* }
|
|
28
|
+
* ```
|
|
13
29
|
*/
|
|
14
30
|
retrieveMany(body: PayStatementRetrieveManyParams, options?: Core.RequestOptions): Core.PagePromise<PayStatementResponsesPage, PayStatementResponse>;
|
|
15
31
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pay-statements.d.ts","sourceRoot":"","sources":["../../src/resources/hris/pay-statements.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,MAAM,MAAM,WAAW,CAAC;AACpC,OAAO,KAAK,OAAO,MAAM,QAAQ,CAAC;AAClC,OAAO,KAAK,WAAW,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,qBAAa,aAAc,SAAQ,WAAW;IAC5C
|
|
1
|
+
{"version":3,"file":"pay-statements.d.ts","sourceRoot":"","sources":["../../src/resources/hris/pay-statements.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,MAAM,MAAM,WAAW,CAAC;AACpC,OAAO,KAAK,OAAO,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G,IAAI,CAAC;KACtD;IAED,UAAiB,GAAG,CAAC;QACnB,UAAiB,UAAU;YACzB,QAAQ,CAAC,EAAE,UAAU,CAAC,QAAQ,CAAC;SAChC;QAED,UAAiB,UAAU,CAAC;YAC1B,UAAiB,QAAQ;gBACvB;;;;mBAIG;gBACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;aACpC;SACF;KACF;CACF;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,CAAC,EAAE,wBAAwB,CAAC;IAEhC,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,wBAAwB;IACvC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC;IAEvB;;OAEG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;CACtC;AAED,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,8BAA8B,CAAC,OAAO,CAAC,CAAC;CACzD;AAED,yBAAiB,8BAA8B,CAAC;IAC9C,UAAiB,OAAO;QACtB;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf;;WAEG;QACH,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB;CACF;AAID,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,yBAAyB,IAAI,yBAAyB,EACtD,KAAK,8BAA8B,IAAI,8BAA8B,GACtE,CAAC;CACH"}
|
|
@@ -10,6 +10,22 @@ class PayStatements extends resource_1.APIResource {
|
|
|
10
10
|
*
|
|
11
11
|
* Deduction and contribution types are supported by the payroll systems that
|
|
12
12
|
* supports Benefits.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* // Automatically fetches more pages as needed.
|
|
17
|
+
* for await (const payStatementResponse of client.hris.payStatements.retrieveMany(
|
|
18
|
+
* {
|
|
19
|
+
* requests: [
|
|
20
|
+
* {
|
|
21
|
+
* payment_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
22
|
+
* },
|
|
23
|
+
* ],
|
|
24
|
+
* },
|
|
25
|
+
* )) {
|
|
26
|
+
* // ...
|
|
27
|
+
* }
|
|
28
|
+
* ```
|
|
13
29
|
*/
|
|
14
30
|
retrieveMany(body, options) {
|
|
15
31
|
return this._client.getAPIList('/employer/pay-statement', PayStatementResponsesPage, {
|