@tryfinch/finch-api 6.27.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 +42 -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 +8 -0
- 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 +8 -0
- 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
|
@@ -9,6 +9,11 @@ export class CompanyResource extends APIResource {
|
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
11
|
* Read basic company data
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const company = await client.hris.company.retrieve();
|
|
16
|
+
* ```
|
|
12
17
|
*/
|
|
13
18
|
retrieve(options) {
|
|
14
19
|
return this._client.get('/employer/company', options);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"company.mjs","sourceRoot":"","sources":["../../../src/resources/hris/company/company.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,KAAK,mBAAmB;OACxB,EACL,gBAAgB,EAGhB,iCAAiC,GAClC;AAED,MAAM,OAAO,eAAgB,SAAQ,WAAW;IAAhD;;QACE,qBAAgB,GAAyC,IAAI,mBAAmB,CAAC,gBAAgB,CAC/F,IAAI,CAAC,OAAO,CACb,CAAC;
|
|
1
|
+
{"version":3,"file":"company.mjs","sourceRoot":"","sources":["../../../src/resources/hris/company/company.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,KAAK,mBAAmB;OACxB,EACL,gBAAgB,EAGhB,iCAAiC,GAClC;AAED,MAAM,OAAO,eAAgB,SAAQ,WAAW;IAAhD;;QACE,qBAAgB,GAAyC,IAAI,mBAAmB,CAAC,gBAAgB,CAC/F,IAAI,CAAC,OAAO,CACb,CAAC;IAaJ,CAAC;IAXC;;;;;;;OAOG;IACH,QAAQ,CAAC,OAA6B;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC;CACF;AA4HD,eAAe,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;AACpD,eAAe,CAAC,iCAAiC,GAAG,iCAAiC,CAAC"}
|
|
@@ -9,6 +9,14 @@ export declare class PayStatementItem extends APIResource {
|
|
|
9
9
|
* **Beta:** this endpoint currently serves employers onboarded after March 4th and
|
|
10
10
|
* historical support will be added soon Retrieve a list of detailed pay statement
|
|
11
11
|
* items for the access token's connection account.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* // Automatically fetches more pages as needed.
|
|
16
|
+
* for await (const payStatementItemListResponse of client.hris.company.payStatementItem.list()) {
|
|
17
|
+
* // ...
|
|
18
|
+
* }
|
|
19
|
+
* ```
|
|
12
20
|
*/
|
|
13
21
|
list(query?: PayStatementItemListParams, options?: Core.RequestOptions): Core.PagePromise<PayStatementItemListResponsesPage, PayStatementItemListResponse>;
|
|
14
22
|
list(options?: Core.RequestOptions): Core.PagePromise<PayStatementItemListResponsesPage, PayStatementItemListResponse>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pay-statement-item.d.ts","sourceRoot":"","sources":["../../../../src/resources/hris/company/pay-statement-item/pay-statement-item.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD,OAAO,KAAK,IAAI,MAAM,kBAAkB,CAAC;AACzC,OAAO,KAAK,QAAQ,MAAM,SAAS,CAAC;AACpC,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,qBAAqB,EACrB,gBAAgB,EAChB,kBAAkB,EAClB,KAAK,EACN,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEvD,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;IAEzD
|
|
1
|
+
{"version":3,"file":"pay-statement-item.d.ts","sourceRoot":"","sources":["../../../../src/resources/hris/company/pay-statement-item/pay-statement-item.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD,OAAO,KAAK,IAAI,MAAM,kBAAkB,CAAC;AACzC,OAAO,KAAK,QAAQ,MAAM,SAAS,CAAC;AACpC,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,qBAAqB,EACrB,gBAAgB,EAChB,kBAAkB,EAClB,KAAK,EACN,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEvD,qBAAa,gBAAiB,SAAQ,WAAW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ACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAMD,MAAM,CAAC,OAAO,WAAW,gBAAgB,CAAC;IACxC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,iCAAiC,IAAI,iCAAiC,EACtE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;IAEF,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,qBAAqB,IAAI,qBAAqB,EAC9C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pay-statement-item.js","sourceRoot":"","sources":["../../../../src/resources/hris/company/pay-statement-item/pay-statement-item.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,sDAAmD;AACnD,8CAAoD;AAEpD,qDAAoC;AACpC,sCASiB;AACjB,0DAAuD;AAEvD,MAAa,gBAAiB,SAAQ,sBAAW;IAAjD;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"pay-statement-item.js","sourceRoot":"","sources":["../../../../src/resources/hris/company/pay-statement-item/pay-statement-item.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,sDAAmD;AACnD,8CAAoD;AAEpD,qDAAoC;AACpC,sCASiB;AACjB,0DAAuD;AAEvD,MAAa,gBAAiB,SAAQ,sBAAW;IAAjD;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAkC3D,CAAC;IAZC,IAAI,CACF,QAA0D,EAAE,EAC5D,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,UAAU,CAAC,8BAA8B,EAAE,iCAAiC,EAAE;YAChG,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AAnCD,4CAmCC;AAED,MAAa,iCAAkC,SAAQ,0BAA2C;CAAG;AAArG,8EAAqG;AA+ErG,gBAAgB,CAAC,iCAAiC,GAAG,iCAAiC,CAAC;AACvF,gBAAgB,CAAC,KAAK,GAAG,aAAK,CAAC;AAC/B,gBAAgB,CAAC,qBAAqB,GAAG,6BAAqB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pay-statement-item.mjs","sourceRoot":"","sources":["../../../../src/resources/hris/company/pay-statement-item/pay-statement-item.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;OAEpB,KAAK,QAAQ;OACb,EAKL,qBAAqB,EAGrB,KAAK,GACN;OACM,EAAE,aAAa,EAAE;AAExB,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAAjD;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"pay-statement-item.mjs","sourceRoot":"","sources":["../../../../src/resources/hris/company/pay-statement-item/pay-statement-item.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;OAEpB,KAAK,QAAQ;OACb,EAKL,qBAAqB,EAGrB,KAAK,GACN;OACM,EAAE,aAAa,EAAE;AAExB,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAAjD;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAkC3D,CAAC;IAZC,IAAI,CACF,QAA0D,EAAE,EAC5D,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,UAAU,CAAC,8BAA8B,EAAE,iCAAiC,EAAE;YAChG,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AAED,MAAM,OAAO,iCAAkC,SAAQ,aAA2C;CAAG;AA+ErG,gBAAgB,CAAC,iCAAiC,GAAG,iCAAiC,CAAC;AACvF,gBAAgB,CAAC,KAAK,GAAG,KAAK,CAAC;AAC/B,gBAAgB,CAAC,qBAAqB,GAAG,qBAAqB,CAAC"}
|
|
@@ -9,23 +9,53 @@ export declare class Rules extends APIResource {
|
|
|
9
9
|
* example, pay statement items that meet certain conditions can be labeled as a
|
|
10
10
|
* pre-tax 401k. This metadata can be retrieved where pay statement item
|
|
11
11
|
* information is available.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const rule =
|
|
16
|
+
* await client.hris.company.payStatementItem.rules.create();
|
|
17
|
+
* ```
|
|
12
18
|
*/
|
|
13
19
|
create(body?: RuleCreateParams, options?: Core.RequestOptions): Core.APIPromise<RuleCreateResponse>;
|
|
14
20
|
create(options?: Core.RequestOptions): Core.APIPromise<RuleCreateResponse>;
|
|
15
21
|
/**
|
|
16
22
|
* **Beta:** this endpoint currently serves employers onboarded after March 4th and
|
|
17
23
|
* historical support will be added soon Update a rule for a pay statement item.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```ts
|
|
27
|
+
* const rule =
|
|
28
|
+
* await client.hris.company.payStatementItem.rules.update(
|
|
29
|
+
* 'rule_id',
|
|
30
|
+
* );
|
|
31
|
+
* ```
|
|
18
32
|
*/
|
|
19
33
|
update(ruleId: string, body?: RuleUpdateParams, options?: Core.RequestOptions): Core.APIPromise<RuleUpdateResponse>;
|
|
20
34
|
update(ruleId: string, options?: Core.RequestOptions): Core.APIPromise<RuleUpdateResponse>;
|
|
21
35
|
/**
|
|
22
36
|
* **Beta:** this endpoint currently serves employers onboarded after March 4th and
|
|
23
37
|
* historical support will be added soon List all rules of a connection account.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```ts
|
|
41
|
+
* // Automatically fetches more pages as needed.
|
|
42
|
+
* for await (const ruleListResponse of client.hris.company.payStatementItem.rules.list()) {
|
|
43
|
+
* // ...
|
|
44
|
+
* }
|
|
45
|
+
* ```
|
|
24
46
|
*/
|
|
25
47
|
list(options?: Core.RequestOptions): Core.PagePromise<RuleListResponsesPage, RuleListResponse>;
|
|
26
48
|
/**
|
|
27
49
|
* **Beta:** this endpoint currently serves employers onboarded after March 4th and
|
|
28
50
|
* historical support will be added soon Delete a rule for a pay statement item.
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* ```ts
|
|
54
|
+
* const rule =
|
|
55
|
+
* await client.hris.company.payStatementItem.rules.delete(
|
|
56
|
+
* 'rule_id',
|
|
57
|
+
* );
|
|
58
|
+
* ```
|
|
29
59
|
*/
|
|
30
60
|
delete(ruleId: string, options?: Core.RequestOptions): Core.APIPromise<RuleDeleteResponse>;
|
|
31
61
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../../../../src/resources/hris/company/pay-statement-item/rules.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD,OAAO,KAAK,IAAI,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,aAAa,EAA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AAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEnC;;OAEG;IACH,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErC;;OAEG;IACH,WAAW,CAAC,EAAE,oBAAoB,CAAC;CACpC;AAED,yBAAiB,gBAAgB,CAAC;IAChC;;OAEG;IACH,UAAiB,UAAU;QACzB;;;WAGG;QACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACpC;IAED,UAAiB,SAAS;QACxB;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf;;WAEG;QACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;QAEpB;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB;CACF;AAED,MAAM,WAAW,gBAAgB;IAC/B,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAID,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,qBAAqB,IAAI,qBAAqB,EAC9C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
|
@@ -21,6 +21,14 @@ class Rules extends resource_1.APIResource {
|
|
|
21
21
|
/**
|
|
22
22
|
* **Beta:** this endpoint currently serves employers onboarded after March 4th and
|
|
23
23
|
* historical support will be added soon List all rules of a connection account.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```ts
|
|
27
|
+
* // Automatically fetches more pages as needed.
|
|
28
|
+
* for await (const ruleListResponse of client.hris.company.payStatementItem.rules.list()) {
|
|
29
|
+
* // ...
|
|
30
|
+
* }
|
|
31
|
+
* ```
|
|
24
32
|
*/
|
|
25
33
|
list(options) {
|
|
26
34
|
return this._client.getAPIList('/employer/pay-statement-item/rule', RuleListResponsesPage, options);
|
|
@@ -28,6 +36,14 @@ class Rules extends resource_1.APIResource {
|
|
|
28
36
|
/**
|
|
29
37
|
* **Beta:** this endpoint currently serves employers onboarded after March 4th and
|
|
30
38
|
* historical support will be added soon Delete a rule for a pay statement item.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* const rule =
|
|
43
|
+
* await client.hris.company.payStatementItem.rules.delete(
|
|
44
|
+
* 'rule_id',
|
|
45
|
+
* );
|
|
46
|
+
* ```
|
|
31
47
|
*/
|
|
32
48
|
delete(ruleId, options) {
|
|
33
49
|
return this._client.delete(`/employer/pay-statement-item/rule/${ruleId}`, options);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rules.js","sourceRoot":"","sources":["../../../../src/resources/hris/company/pay-statement-item/rules.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sDAAmD;AACnD,8CAAoD;AAEpD,0DAAuD;AAEvD,MAAa,KAAM,SAAQ,sBAAW;
|
|
1
|
+
{"version":3,"file":"rules.js","sourceRoot":"","sources":["../../../../src/resources/hris/company/pay-statement-item/rules.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sDAAmD;AACnD,8CAAoD;AAEpD,0DAAuD;AAEvD,MAAa,KAAM,SAAQ,sBAAW;IAiBpC,MAAM,CACJ,OAA+C,EAAE,EACjD,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,IAAI,CAAC,EAAE;YAC1B,OAAO,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;SAC9B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mCAAmC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtF,CAAC;IAoBD,MAAM,CACJ,MAAc,EACd,OAA+C,EAAE,EACjD,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,IAAI,CAAC,EAAE;YAC1B,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;SACtC;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qCAAqC,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/F,CAAC;IAED;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,OAA6B;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,mCAAmC,EAAE,qBAAqB,EAAE,OAAO,CAAC,CAAC;IACtG,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,MAAc,EAAE,OAA6B;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,qCAAqC,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IACrF,CAAC;CACF;AAvFD,sBAuFC;AAED,MAAa,qBAAsB,SAAQ,0BAA+B;CAAG;AAA7E,sDAA6E;AAyW7E,KAAK,CAAC,qBAAqB,GAAG,qBAAqB,CAAC"}
|
|
@@ -18,6 +18,14 @@ export class Rules extends APIResource {
|
|
|
18
18
|
/**
|
|
19
19
|
* **Beta:** this endpoint currently serves employers onboarded after March 4th and
|
|
20
20
|
* historical support will be added soon List all rules of a connection account.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```ts
|
|
24
|
+
* // Automatically fetches more pages as needed.
|
|
25
|
+
* for await (const ruleListResponse of client.hris.company.payStatementItem.rules.list()) {
|
|
26
|
+
* // ...
|
|
27
|
+
* }
|
|
28
|
+
* ```
|
|
21
29
|
*/
|
|
22
30
|
list(options) {
|
|
23
31
|
return this._client.getAPIList('/employer/pay-statement-item/rule', RuleListResponsesPage, options);
|
|
@@ -25,6 +33,14 @@ export class Rules extends APIResource {
|
|
|
25
33
|
/**
|
|
26
34
|
* **Beta:** this endpoint currently serves employers onboarded after March 4th and
|
|
27
35
|
* historical support will be added soon Delete a rule for a pay statement item.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* const rule =
|
|
40
|
+
* await client.hris.company.payStatementItem.rules.delete(
|
|
41
|
+
* 'rule_id',
|
|
42
|
+
* );
|
|
43
|
+
* ```
|
|
28
44
|
*/
|
|
29
45
|
delete(ruleId, options) {
|
|
30
46
|
return this._client.delete(`/employer/pay-statement-item/rule/${ruleId}`, options);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rules.mjs","sourceRoot":"","sources":["../../../../src/resources/hris/company/pay-statement-item/rules.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;OAEpB,EAAE,aAAa,EAAE;AAExB,MAAM,OAAO,KAAM,SAAQ,WAAW;
|
|
1
|
+
{"version":3,"file":"rules.mjs","sourceRoot":"","sources":["../../../../src/resources/hris/company/pay-statement-item/rules.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;OAEpB,EAAE,aAAa,EAAE;AAExB,MAAM,OAAO,KAAM,SAAQ,WAAW;IAiBpC,MAAM,CACJ,OAA+C,EAAE,EACjD,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,IAAI,CAAC,EAAE;YAC1B,OAAO,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;SAC9B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mCAAmC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtF,CAAC;IAoBD,MAAM,CACJ,MAAc,EACd,OAA+C,EAAE,EACjD,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,IAAI,CAAC,EAAE;YAC1B,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;SACtC;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qCAAqC,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/F,CAAC;IAED;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,OAA6B;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,mCAAmC,EAAE,qBAAqB,EAAE,OAAO,CAAC,CAAC;IACtG,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,MAAc,EAAE,OAA6B;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,qCAAqC,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IACrF,CAAC;CACF;AAED,MAAM,OAAO,qBAAsB,SAAQ,aAA+B;CAAG;AAyW7E,KAAK,CAAC,qBAAqB,GAAG,qBAAqB,CAAC"}
|
|
@@ -4,6 +4,14 @@ import { IndividualsPage, type IndividualsPageParams } from "../../pagination.js
|
|
|
4
4
|
export declare class Directory extends APIResource {
|
|
5
5
|
/**
|
|
6
6
|
* Read company directory and organization structure
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* // Automatically fetches more pages as needed.
|
|
11
|
+
* for await (const individualInDirectory of client.hris.directory.list()) {
|
|
12
|
+
* // ...
|
|
13
|
+
* }
|
|
14
|
+
* ```
|
|
7
15
|
*/
|
|
8
16
|
list(query?: DirectoryListParams, options?: Core.RequestOptions): Core.PagePromise<IndividualsPage, IndividualInDirectory>;
|
|
9
17
|
list(options?: Core.RequestOptions): Core.PagePromise<IndividualsPage, IndividualInDirectory>;
|
|
@@ -19,31 +27,31 @@ export interface IndividualInDirectory {
|
|
|
19
27
|
/**
|
|
20
28
|
* A stable Finch `id` (UUID v4) for an individual in the company.
|
|
21
29
|
*/
|
|
22
|
-
id
|
|
30
|
+
id: string;
|
|
23
31
|
/**
|
|
24
32
|
* The department object.
|
|
25
33
|
*/
|
|
26
|
-
department
|
|
34
|
+
department: IndividualInDirectory.Department | null;
|
|
27
35
|
/**
|
|
28
36
|
* The legal first name of the individual.
|
|
29
37
|
*/
|
|
30
|
-
first_name
|
|
38
|
+
first_name: string | null;
|
|
31
39
|
/**
|
|
32
40
|
* `true` if the individual is an active employee or contractor at the company.
|
|
33
41
|
*/
|
|
34
|
-
is_active
|
|
42
|
+
is_active: boolean | null;
|
|
35
43
|
/**
|
|
36
44
|
* The legal last name of the individual.
|
|
37
45
|
*/
|
|
38
|
-
last_name
|
|
46
|
+
last_name: string | null;
|
|
39
47
|
/**
|
|
40
48
|
* The manager object.
|
|
41
49
|
*/
|
|
42
|
-
manager
|
|
50
|
+
manager: IndividualInDirectory.Manager | null;
|
|
43
51
|
/**
|
|
44
52
|
* The legal middle name of the individual.
|
|
45
53
|
*/
|
|
46
|
-
middle_name
|
|
54
|
+
middle_name: string | null;
|
|
47
55
|
}
|
|
48
56
|
export declare namespace IndividualInDirectory {
|
|
49
57
|
/**
|
|
@@ -62,7 +70,7 @@ export declare namespace IndividualInDirectory {
|
|
|
62
70
|
/**
|
|
63
71
|
* A stable Finch `id` (UUID v4) for an individual in the company.
|
|
64
72
|
*/
|
|
65
|
-
id
|
|
73
|
+
id: string;
|
|
66
74
|
}
|
|
67
75
|
}
|
|
68
76
|
export interface DirectoryListParams extends IndividualsPageParams {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"directory.d.ts","sourceRoot":"","sources":["../../src/resources/hris/directory.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,eAAe,EAAE,KAAK,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAE/E,qBAAa,SAAU,SAAQ,WAAW;IACxC
|
|
1
|
+
{"version":3,"file":"directory.d.ts","sourceRoot":"","s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C,EAAE,MAAM,GAAG,IAAI,CAAC;KACtB;IAED;;OAEG;IACH,UAAiB,OAAO;QACtB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;KACZ;CACF;AAED,MAAM,WAAW,mBAAoB,SAAQ,qBAAqB;CAAG;AAErE,MAAM,WAAW,8BAA+B,SAAQ,qBAAqB;CAAG;AAEhF,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,8BAA8B,IAAI,8BAA8B,GACtE,CAAC;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"directory.js","sourceRoot":"","sources":["../../src/resources/hris/directory.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAC7C,wCAA8C;AAE9C,oDAA+E;AAE/E,MAAa,SAAU,SAAQ,sBAAW;IAA1C;;
|
|
1
|
+
{"version":3,"file":"directory.js","sourceRoot":"","sources":["../../src/resources/hris/directory.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAC7C,wCAA8C;AAE9C,oDAA+E;AAE/E,MAAa,SAAU,SAAQ,sBAAW;IAA1C;;QA2BE;;WAEG;QACH,oBAAe,GAAG,IAAI,CAAC,IAAI,CAAC;IAC9B,CAAC;IAdC,IAAI,CACF,QAAmD,EAAE,EACrD,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,UAAU,CAAC,qBAAqB,EAAE,4BAAe,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChG,CAAC;CAMF;AA/BD,8BA+BC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"directory.mjs","sourceRoot":"","sources":["../../src/resources/hris/directory.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;OAEpB,EAAE,eAAe,EAA8B;AAEtD,MAAM,OAAO,SAAU,SAAQ,WAAW;IAA1C;;
|
|
1
|
+
{"version":3,"file":"directory.mjs","sourceRoot":"","sources":["../../src/resources/hris/directory.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;OAEpB,EAAE,eAAe,EAA8B;AAEtD,MAAM,OAAO,SAAU,SAAQ,WAAW;IAA1C;;QA2BE;;WAEG;QACH,oBAAe,GAAG,IAAI,CAAC,IAAI,CAAC;IAC9B,CAAC;IAdC,IAAI,CACF,QAAmD,EAAE,EACrD,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,UAAU,CAAC,qBAAqB,EAAE,eAAe,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChG,CAAC;CAMF"}
|
|
@@ -5,12 +5,24 @@ export declare class Documents extends APIResource {
|
|
|
5
5
|
/**
|
|
6
6
|
* **Beta:** This endpoint is in beta and may change. Retrieve a list of
|
|
7
7
|
* company-wide documents.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const documents = await client.hris.documents.list();
|
|
12
|
+
* ```
|
|
8
13
|
*/
|
|
9
14
|
list(query?: DocumentListParams, options?: Core.RequestOptions): Core.APIPromise<DocumentListResponse>;
|
|
10
15
|
list(options?: Core.RequestOptions): Core.APIPromise<DocumentListResponse>;
|
|
11
16
|
/**
|
|
12
17
|
* **Beta:** This endpoint is in beta and may change. Retrieve details of a
|
|
13
18
|
* specific document by its ID.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* const response = await client.hris.documents.retreive(
|
|
23
|
+
* 'document_id',
|
|
24
|
+
* );
|
|
25
|
+
* ```
|
|
14
26
|
*/
|
|
15
27
|
retreive(documentId: string, options?: Core.RequestOptions): Core.APIPromise<DocumentRetreiveResponse>;
|
|
16
28
|
}
|
|
@@ -1 +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
|
|
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;;;;;;;;OAQG;IACH,IAAI,CAAC,KAAK,CAAC,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,oBAAoB,CAAC;IACtG,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,oBAAoB,CAAC;IAW1E;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,wBAAwB,CAAC;CAGvG;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH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|
|
|
14
14
|
/**
|
|
15
15
|
* **Beta:** This endpoint is in beta and may change. Retrieve details of a
|
|
16
16
|
* specific document by its ID.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```ts
|
|
20
|
+
* const response = await client.hris.documents.retreive(
|
|
21
|
+
* 'document_id',
|
|
22
|
+
* );
|
|
23
|
+
* ```
|
|
17
24
|
*/
|
|
18
25
|
retreive(documentId, options) {
|
|
19
26
|
return this._client.get(`/employer/documents/${documentId}`, options);
|
|
@@ -1 +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;
|
|
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;IAYxC,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;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,UAAkB,EAAE,OAA6B;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;CACF;AApCD,8BAoCC"}
|
|
@@ -11,6 +11,13 @@ export class Documents extends APIResource {
|
|
|
11
11
|
/**
|
|
12
12
|
* **Beta:** This endpoint is in beta and may change. Retrieve details of a
|
|
13
13
|
* specific document by its ID.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const response = await client.hris.documents.retreive(
|
|
18
|
+
* 'document_id',
|
|
19
|
+
* );
|
|
20
|
+
* ```
|
|
14
21
|
*/
|
|
15
22
|
retreive(documentId, options) {
|
|
16
23
|
return this._client.get(`/employer/documents/${documentId}`, options);
|
|
@@ -1 +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;
|
|
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;IAYxC,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;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,UAAkB,EAAE,OAA6B;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;CACF"}
|
|
@@ -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
|
/**
|