@tryfinch/finch-api 5.20.0 → 5.20.2
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 +45 -0
- package/README.md +53 -11
- package/core.d.ts.map +1 -1
- package/core.js +2 -2
- package/core.js.map +1 -1
- package/core.mjs +2 -2
- package/core.mjs.map +1 -1
- package/error.js +1 -1
- package/error.js.map +1 -1
- package/error.mjs +1 -1
- package/error.mjs.map +1 -1
- package/index.d.mts +1 -2
- package/index.d.ts +1 -2
- package/index.d.ts.map +1 -1
- package/index.js +2 -6
- package/index.js.map +1 -1
- package/index.mjs +2 -6
- package/index.mjs.map +1 -1
- package/package.json +2 -3
- package/pagination.js +1 -1
- package/pagination.js.map +1 -1
- package/pagination.mjs +1 -1
- package/pagination.mjs.map +1 -1
- package/resource.js +1 -1
- package/resource.js.map +1 -1
- package/resource.mjs +1 -1
- package/resource.mjs.map +1 -1
- package/resources/access-tokens.js +1 -1
- package/resources/access-tokens.js.map +1 -1
- package/resources/access-tokens.mjs +1 -1
- package/resources/access-tokens.mjs.map +1 -1
- package/resources/account.d.ts +1 -3
- package/resources/account.d.ts.map +1 -1
- package/resources/account.js +2 -4
- package/resources/account.js.map +1 -1
- package/resources/account.mjs +2 -4
- package/resources/account.mjs.map +1 -1
- package/resources/hris/benefits/benefits.d.ts +6 -17
- package/resources/hris/benefits/benefits.d.ts.map +1 -1
- package/resources/hris/benefits/benefits.js +4 -11
- package/resources/hris/benefits/benefits.js.map +1 -1
- package/resources/hris/benefits/benefits.mjs +4 -11
- package/resources/hris/benefits/benefits.mjs.map +1 -1
- package/resources/hris/benefits/index.js +1 -1
- package/resources/hris/benefits/index.js.map +1 -1
- package/resources/hris/benefits/index.mjs +1 -1
- package/resources/hris/benefits/index.mjs.map +1 -1
- package/resources/hris/benefits/individuals.d.ts +7 -19
- package/resources/hris/benefits/individuals.d.ts.map +1 -1
- package/resources/hris/benefits/individuals.js +6 -14
- package/resources/hris/benefits/individuals.js.map +1 -1
- package/resources/hris/benefits/individuals.mjs +6 -14
- package/resources/hris/benefits/individuals.mjs.map +1 -1
- package/resources/hris/company.js +1 -1
- package/resources/hris/company.js.map +1 -1
- package/resources/hris/company.mjs +1 -1
- package/resources/hris/company.mjs.map +1 -1
- package/resources/hris/directory.js +1 -1
- package/resources/hris/directory.js.map +1 -1
- package/resources/hris/directory.mjs +1 -1
- package/resources/hris/directory.mjs.map +1 -1
- package/resources/hris/employments.d.ts +1 -16
- package/resources/hris/employments.d.ts.map +1 -1
- package/resources/hris/employments.js +1 -5
- package/resources/hris/employments.js.map +1 -1
- package/resources/hris/employments.mjs +1 -5
- package/resources/hris/employments.mjs.map +1 -1
- package/resources/hris/hris.js +1 -1
- package/resources/hris/hris.js.map +1 -1
- package/resources/hris/hris.mjs +1 -1
- package/resources/hris/hris.mjs.map +1 -1
- package/resources/hris/index.js +1 -1
- package/resources/hris/index.js.map +1 -1
- package/resources/hris/index.mjs +1 -1
- package/resources/hris/index.mjs.map +1 -1
- package/resources/hris/individuals.d.ts +6 -4
- package/resources/hris/individuals.d.ts.map +1 -1
- package/resources/hris/individuals.js +1 -1
- package/resources/hris/individuals.js.map +1 -1
- package/resources/hris/individuals.mjs +1 -1
- package/resources/hris/individuals.mjs.map +1 -1
- package/resources/hris/pay-statements.d.ts +1 -1
- package/resources/hris/pay-statements.js +2 -2
- package/resources/hris/pay-statements.js.map +1 -1
- package/resources/hris/pay-statements.mjs +2 -2
- package/resources/hris/pay-statements.mjs.map +1 -1
- package/resources/hris/payments.js +1 -1
- package/resources/hris/payments.js.map +1 -1
- package/resources/hris/payments.mjs +1 -1
- package/resources/hris/payments.mjs.map +1 -1
- package/resources/index.js +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/jobs/automated.js +1 -1
- package/resources/jobs/automated.js.map +1 -1
- package/resources/jobs/automated.mjs +1 -1
- package/resources/jobs/automated.mjs.map +1 -1
- package/resources/jobs/index.js +1 -1
- package/resources/jobs/index.js.map +1 -1
- package/resources/jobs/index.mjs +1 -1
- package/resources/jobs/index.mjs.map +1 -1
- package/resources/jobs/jobs.js +1 -1
- package/resources/jobs/jobs.js.map +1 -1
- package/resources/jobs/jobs.mjs +1 -1
- package/resources/jobs/jobs.mjs.map +1 -1
- package/resources/jobs/manual.js +1 -1
- package/resources/jobs/manual.js.map +1 -1
- package/resources/jobs/manual.mjs +1 -1
- package/resources/jobs/manual.mjs.map +1 -1
- package/resources/providers.d.ts +2 -2
- package/resources/providers.js +1 -1
- package/resources/providers.js.map +1 -1
- package/resources/providers.mjs +1 -1
- package/resources/providers.mjs.map +1 -1
- package/resources/request-forwarding.js +1 -1
- package/resources/request-forwarding.js.map +1 -1
- package/resources/request-forwarding.mjs +1 -1
- package/resources/request-forwarding.mjs.map +1 -1
- package/resources/sandbox/company.js +1 -1
- package/resources/sandbox/company.js.map +1 -1
- package/resources/sandbox/company.mjs +1 -1
- package/resources/sandbox/company.mjs.map +1 -1
- package/resources/sandbox/connections/accounts.js +1 -1
- package/resources/sandbox/connections/accounts.js.map +1 -1
- package/resources/sandbox/connections/accounts.mjs +1 -1
- package/resources/sandbox/connections/accounts.mjs.map +1 -1
- package/resources/sandbox/connections/connections.js +1 -1
- package/resources/sandbox/connections/connections.js.map +1 -1
- package/resources/sandbox/connections/connections.mjs +1 -1
- package/resources/sandbox/connections/connections.mjs.map +1 -1
- package/resources/sandbox/connections/index.js +1 -1
- package/resources/sandbox/connections/index.js.map +1 -1
- package/resources/sandbox/connections/index.mjs +1 -1
- package/resources/sandbox/connections/index.mjs.map +1 -1
- package/resources/sandbox/directory.js +1 -1
- package/resources/sandbox/directory.js.map +1 -1
- package/resources/sandbox/directory.mjs +1 -1
- package/resources/sandbox/directory.mjs.map +1 -1
- package/resources/sandbox/employment.js +1 -1
- package/resources/sandbox/employment.js.map +1 -1
- package/resources/sandbox/employment.mjs +1 -1
- package/resources/sandbox/employment.mjs.map +1 -1
- package/resources/sandbox/index.js +1 -1
- package/resources/sandbox/index.js.map +1 -1
- package/resources/sandbox/index.mjs +1 -1
- package/resources/sandbox/index.mjs.map +1 -1
- package/resources/sandbox/individual.js +1 -1
- package/resources/sandbox/individual.js.map +1 -1
- package/resources/sandbox/individual.mjs +1 -1
- package/resources/sandbox/individual.mjs.map +1 -1
- package/resources/sandbox/jobs/configuration.js +1 -1
- package/resources/sandbox/jobs/configuration.js.map +1 -1
- package/resources/sandbox/jobs/configuration.mjs +1 -1
- package/resources/sandbox/jobs/configuration.mjs.map +1 -1
- package/resources/sandbox/jobs/index.js +1 -1
- package/resources/sandbox/jobs/index.js.map +1 -1
- package/resources/sandbox/jobs/index.mjs +1 -1
- package/resources/sandbox/jobs/index.mjs.map +1 -1
- package/resources/sandbox/jobs/jobs.js +1 -1
- package/resources/sandbox/jobs/jobs.js.map +1 -1
- package/resources/sandbox/jobs/jobs.mjs +1 -1
- package/resources/sandbox/jobs/jobs.mjs.map +1 -1
- package/resources/sandbox/payment.js +1 -1
- package/resources/sandbox/payment.js.map +1 -1
- package/resources/sandbox/payment.mjs +1 -1
- package/resources/sandbox/payment.mjs.map +1 -1
- package/resources/sandbox/sandbox.js +1 -1
- package/resources/sandbox/sandbox.js.map +1 -1
- package/resources/sandbox/sandbox.mjs +1 -1
- package/resources/sandbox/sandbox.mjs.map +1 -1
- package/resources/shared.js +1 -1
- package/resources/shared.js.map +1 -1
- package/resources/shared.mjs +1 -1
- package/resources/shared.mjs.map +1 -1
- package/resources/top-level.js +1 -1
- package/resources/top-level.js.map +1 -1
- package/resources/top-level.mjs +1 -1
- package/resources/top-level.mjs.map +1 -1
- package/resources/webhooks.d.ts +2 -2
- package/resources/webhooks.js +1 -1
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +1 -1
- package/resources/webhooks.mjs.map +1 -1
- package/src/core.ts +3 -2
- package/src/error.ts +1 -1
- package/src/index.ts +2 -7
- package/src/pagination.ts +1 -1
- package/src/resource.ts +1 -1
- package/src/resources/access-tokens.ts +1 -1
- package/src/resources/account.ts +2 -4
- package/src/resources/hris/benefits/benefits.ts +7 -18
- package/src/resources/hris/benefits/index.ts +1 -1
- package/src/resources/hris/benefits/individuals.ts +8 -20
- package/src/resources/hris/company.ts +1 -1
- package/src/resources/hris/directory.ts +1 -1
- package/src/resources/hris/employments.ts +2 -19
- package/src/resources/hris/hris.ts +1 -1
- package/src/resources/hris/index.ts +1 -1
- package/src/resources/hris/individuals.ts +7 -5
- package/src/resources/hris/pay-statements.ts +2 -2
- package/src/resources/hris/payments.ts +1 -1
- package/src/resources/index.ts +1 -1
- package/src/resources/jobs/automated.ts +1 -1
- package/src/resources/jobs/index.ts +1 -1
- package/src/resources/jobs/jobs.ts +1 -1
- package/src/resources/jobs/manual.ts +1 -1
- package/src/resources/providers.ts +3 -3
- package/src/resources/request-forwarding.ts +1 -1
- package/src/resources/sandbox/company.ts +1 -1
- package/src/resources/sandbox/connections/accounts.ts +1 -1
- package/src/resources/sandbox/connections/connections.ts +1 -1
- package/src/resources/sandbox/connections/index.ts +1 -1
- package/src/resources/sandbox/directory.ts +1 -1
- package/src/resources/sandbox/employment.ts +1 -1
- package/src/resources/sandbox/index.ts +1 -1
- package/src/resources/sandbox/individual.ts +1 -1
- package/src/resources/sandbox/jobs/configuration.ts +1 -1
- package/src/resources/sandbox/jobs/index.ts +1 -1
- package/src/resources/sandbox/jobs/jobs.ts +1 -1
- package/src/resources/sandbox/payment.ts +1 -1
- package/src/resources/sandbox/sandbox.ts +1 -1
- package/src/resources/shared.ts +1 -1
- package/src/resources/top-level.ts +1 -1
- package/src/resources/webhooks.ts +3 -3
- package/src/uploads.ts +4 -1
- package/src/version.ts +1 -1
- package/uploads.d.ts.map +1 -1
- package/uploads.js +3 -1
- package/uploads.js.map +1 -1
- package/uploads.mjs +3 -1
- package/uploads.mjs.map +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.js","sourceRoot":"","sources":["../src/resources/webhooks.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"webhooks.js","sourceRoot":"","sources":["../src/resources/webhooks.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2DAA2D;AAC3D,mCAAoC;AACpC,mDAA0E;AAK1E,MAAa,QAAS,SAAQ,sBAAW;IACvC;;OAEG;IACH,MAAM,CACJ,OAAe,EACf,OAAoB,EACpB,SAAoC,IAAI,CAAC,OAAO,CAAC,aAAa;QAE9D,IAAI,CAAC,eAAe,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;QAC/C,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAiB,CAAC;IAC7C,CAAC;IAEO,WAAW,CAAC,MAAiC;QACnD,IAAI,CAAC,MAAM,EAAE;YACX,MAAM,IAAI,KAAK,CACb,kKAAkK,CACnK,CAAC;SACH;QAED,MAAM,GAAG,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QAC1C,IAAI,GAAG,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,MAAM,EAAE;YACrC,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;SAC9C;QAED,OAAO,IAAI,UAAU,CAAC,GAAG,CAAC,CAAC;IAC7B,CAAC;IAEO,WAAW,CACjB,OAAe,EACf,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAA4D;QAExF,MAAM,OAAO,GAAG,IAAI,WAAW,EAAE,CAAC;QAClC,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,OAAO,IAAI,SAAS,CAAC,OAAO,EAAE,GAAG,IAAI,IAAI,OAAO,EAAE,CAAC,CAAC;QAErF,MAAM,IAAI,GAAG,IAAA,mBAAU,EAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;QAC1C,IAAI,CAAC,MAAM,CAAC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AAE,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC,CAAC;QAC/F,MAAM,iBAAiB,GAAG,iBAAiB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;QAE1D,MAAM,gBAAgB,GAAG,YAAY,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAEjD,MAAM,OAAO,GAAG,IAAI,UAAU,CAAC,WAAW,EAAE,CAAC;QAC7C,KAAK,MAAM,kBAAkB,IAAI,gBAAgB,EAAE;YACjD,MAAM,CAAC,OAAO,EAAE,SAAS,CAAC,GAAG,kBAAkB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAC3D,IAAI,OAAO,KAAK,IAAI,EAAE;gBACpB,SAAS;aACV;YAED,IAAI,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,EAAE;gBACtF,SAAS;gBACT,OAAO;aACR;SACF;QAED,MAAM,IAAI,KAAK,CAAC,mEAAmE,CAAC,CAAC;IACvF,CAAC;CACF;AArID,4BAqIC;AAwiBD,WAAiB,QAAQ;AAWzB,CAAC,EAXgB,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAWxB"}
|
package/resources/webhooks.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless.
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from '@tryfinch/finch-api/resource';
|
|
3
3
|
import { createHmac } from 'crypto';
|
|
4
4
|
import { getRequiredHeader } from '@tryfinch/finch-api/core';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.mjs","sourceRoot":"","sources":["../src/resources/webhooks.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"webhooks.mjs","sourceRoot":"","sources":["../src/resources/web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AAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;QAE1D,MAAM,gBAAgB,GAAG,YAAY,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAEjD,MAAM,OAAO,GAAG,IAAI,UAAU,CAAC,WAAW,EAAE,CAAC;QAC7C,KAAK,MAAM,kBAAkB,IAAI,gBAAgB,EAAE;YACjD,MAAM,CAAC,OAAO,EAAE,SAAS,CAAC,GAAG,kBAAkB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAC3D,IAAI,OAAO,KAAK,IAAI,EAAE;gBACpB,SAAS;aACV;YAED,IAAI,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,EAAE;gBACtF,SAAS;gBACT,OAAO;aACR;SACF;QAED,MAAM,IAAI,KAAK,CAAC,mEAAmE,CAAC,CAAC;IACvF,CAAC;CACF;AAwiBD,WAAiB,QAAQ;AAWzB,CAAC,EAXgB,QAAQ,KAAR,QAAQ,QAWxB"}
|
package/src/core.ts
CHANGED
|
@@ -802,7 +802,8 @@ const getPlatformProperties = (): PlatformProperties => {
|
|
|
802
802
|
'X-Stainless-OS': normalizePlatform(Deno.build.os),
|
|
803
803
|
'X-Stainless-Arch': normalizeArch(Deno.build.arch),
|
|
804
804
|
'X-Stainless-Runtime': 'deno',
|
|
805
|
-
'X-Stainless-Runtime-Version':
|
|
805
|
+
'X-Stainless-Runtime-Version':
|
|
806
|
+
typeof Deno.version === 'string' ? Deno.version : Deno.version?.deno ?? 'unknown',
|
|
806
807
|
};
|
|
807
808
|
}
|
|
808
809
|
if (typeof EdgeRuntime !== 'undefined') {
|
|
@@ -1059,7 +1060,7 @@ function applyHeadersMut(targetHeaders: Headers, newHeaders: Headers): void {
|
|
|
1059
1060
|
}
|
|
1060
1061
|
|
|
1061
1062
|
export function debug(action: string, ...args: any[]) {
|
|
1062
|
-
if (typeof process !== 'undefined' && process
|
|
1063
|
+
if (typeof process !== 'undefined' && process?.env?.['DEBUG'] === 'true') {
|
|
1063
1064
|
console.log(`Finch:DEBUG:${action}`, ...args);
|
|
1064
1065
|
}
|
|
1065
1066
|
}
|
package/src/error.ts
CHANGED
package/src/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless.
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import * as Core from './core';
|
|
4
4
|
import * as Errors from './error';
|
|
@@ -168,8 +168,7 @@ export class Finch extends Core.APIClient {
|
|
|
168
168
|
sandbox: API.Sandbox = new API.Sandbox(this);
|
|
169
169
|
|
|
170
170
|
/**
|
|
171
|
-
*
|
|
172
|
-
* authorization code can be obtained by visiting the url returned by getAuthURL().
|
|
171
|
+
* DEPRECATED: use client.accessTokens.create instead.
|
|
173
172
|
*/
|
|
174
173
|
getAccessToken(code: string, options?: { redirectUri: string }): Promise<string> {
|
|
175
174
|
if (!this.clientId) {
|
|
@@ -265,10 +264,6 @@ export class Finch extends Core.APIClient {
|
|
|
265
264
|
if (bearerAuth != null && !Core.isEmptyObj(bearerAuth)) {
|
|
266
265
|
return bearerAuth;
|
|
267
266
|
}
|
|
268
|
-
|
|
269
|
-
if (basicAuth != null && !Core.isEmptyObj(basicAuth)) {
|
|
270
|
-
return basicAuth;
|
|
271
|
-
}
|
|
272
267
|
return {};
|
|
273
268
|
}
|
|
274
269
|
|
package/src/pagination.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless.
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { AbstractPage, Response, APIClient, FinalRequestOptions, PageInfo } from './core';
|
|
4
4
|
import * as Shared from "./resources/shared";
|
package/src/resource.ts
CHANGED
package/src/resources/account.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless.
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import * as Core from "../core";
|
|
4
4
|
import { APIResource } from "../resource";
|
|
@@ -7,9 +7,7 @@ import * as Shared from "./shared";
|
|
|
7
7
|
|
|
8
8
|
export class Account extends APIResource {
|
|
9
9
|
/**
|
|
10
|
-
* Disconnect
|
|
11
|
-
* associated with the employer. We require applications to implement the
|
|
12
|
-
* Disconnect endpoint for billing and security purposes.
|
|
10
|
+
* Disconnect one or more `access_token`s from your application.
|
|
13
11
|
*/
|
|
14
12
|
disconnect(options?: Core.RequestOptions): Core.APIPromise<DisconnectResponse> {
|
|
15
13
|
return this._client.post('/disconnect', options);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless.
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import * as Core from "../../../core";
|
|
4
4
|
import { APIResource } from "../../../resource";
|
|
@@ -12,10 +12,8 @@ export class Benefits extends APIResource {
|
|
|
12
12
|
individuals: IndividualsAPI.Individuals = new IndividualsAPI.Individuals(this._client);
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* Creates a new company-wide benefit. Please use the `/meta` endpoint to view
|
|
18
|
-
* available types for each provider.
|
|
15
|
+
* Creates a new company-wide deduction or contribution. Please use the
|
|
16
|
+
* `/providers` endpoint to view available types for each provider.
|
|
19
17
|
*/
|
|
20
18
|
create(
|
|
21
19
|
body?: BenefitCreateParams,
|
|
@@ -33,18 +31,14 @@ export class Benefits extends APIResource {
|
|
|
33
31
|
}
|
|
34
32
|
|
|
35
33
|
/**
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
* Lists benefit information for a given benefit
|
|
34
|
+
* Lists deductions and contributions information for a given item
|
|
39
35
|
*/
|
|
40
36
|
retrieve(benefitId: string, options?: Core.RequestOptions): Core.APIPromise<CompanyBenefit> {
|
|
41
37
|
return this._client.get(`/employer/benefits/${benefitId}`, options);
|
|
42
38
|
}
|
|
43
39
|
|
|
44
40
|
/**
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
* Updates an existing company-wide benefit
|
|
41
|
+
* Updates an existing company-wide deduction or contribution
|
|
48
42
|
*/
|
|
49
43
|
update(
|
|
50
44
|
benefitId: string,
|
|
@@ -64,19 +58,14 @@ export class Benefits extends APIResource {
|
|
|
64
58
|
}
|
|
65
59
|
|
|
66
60
|
/**
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
* List all company-wide benefits.
|
|
61
|
+
* List all company-wide deductions and contributions.
|
|
70
62
|
*/
|
|
71
63
|
list(options?: Core.RequestOptions): Core.PagePromise<CompanyBenefitsSinglePage, CompanyBenefit> {
|
|
72
64
|
return this._client.getAPIList('/employer/benefits', CompanyBenefitsSinglePage, options);
|
|
73
65
|
}
|
|
74
66
|
|
|
75
67
|
/**
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
* Lists available types and configurations for the provider associated with the
|
|
79
|
-
* access token.
|
|
68
|
+
* Get deductions metadata
|
|
80
69
|
*/
|
|
81
70
|
listSupportedBenefits(
|
|
82
71
|
options?: Core.RequestOptions,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless.
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import * as Core from "../../../core";
|
|
4
4
|
import { APIResource } from "../../../resource";
|
|
@@ -9,16 +9,10 @@ import { SinglePage } from "../../../pagination";
|
|
|
9
9
|
|
|
10
10
|
export class Individuals extends APIResource {
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* <!-- theme: warning -->
|
|
18
|
-
*
|
|
19
|
-
* > Making changes to an individual's benefits may have tax consequences based on
|
|
20
|
-
* > IRS regulations. Please consult a tax expert to ensure all changes being made
|
|
21
|
-
* > to the system are compliant with local, state, and federal law.
|
|
12
|
+
* Enroll an individual into a deduction or contribution. This is an overwrite
|
|
13
|
+
* operation. If the employee is already enrolled, the enrollment amounts will be
|
|
14
|
+
* adjusted. Making the same request multiple times will not create new
|
|
15
|
+
* enrollments, but will continue to set the state of the existing enrollment.
|
|
22
16
|
*/
|
|
23
17
|
enrollMany(
|
|
24
18
|
benefitId: string,
|
|
@@ -33,9 +27,7 @@ export class Individuals extends APIResource {
|
|
|
33
27
|
}
|
|
34
28
|
|
|
35
29
|
/**
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
* Lists individuals currently enrolled in a given benefit.
|
|
30
|
+
* Lists individuals currently enrolled in a given deduction.
|
|
39
31
|
*/
|
|
40
32
|
enrolledIds(
|
|
41
33
|
benefitId: string,
|
|
@@ -45,9 +37,7 @@ export class Individuals extends APIResource {
|
|
|
45
37
|
}
|
|
46
38
|
|
|
47
39
|
/**
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
* Get enrolled benefit information for the given individuals.
|
|
40
|
+
* Get enrollment information for the given individuals.
|
|
51
41
|
*/
|
|
52
42
|
retrieveManyBenefits(
|
|
53
43
|
benefitId: string,
|
|
@@ -74,9 +64,7 @@ export class Individuals extends APIResource {
|
|
|
74
64
|
}
|
|
75
65
|
|
|
76
66
|
/**
|
|
77
|
-
*
|
|
78
|
-
*
|
|
79
|
-
* Unenroll individuals from a benefit
|
|
67
|
+
* Unenroll individuals from a deduction or contribution
|
|
80
68
|
*/
|
|
81
69
|
unenrollMany(
|
|
82
70
|
benefitId: string,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless.
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import * as Core from "../../core";
|
|
4
4
|
import { APIResource } from "../../resource";
|
|
@@ -9,10 +9,6 @@ import { ResponsesPage } from "../../pagination";
|
|
|
9
9
|
export class Employments extends APIResource {
|
|
10
10
|
/**
|
|
11
11
|
* Read individual employment and income data
|
|
12
|
-
*
|
|
13
|
-
* Note: Income information is returned as reported by the provider. This may not
|
|
14
|
-
* always be annualized income, but may be in units of bi-weekly, semi-monthly,
|
|
15
|
-
* daily, etc, depending on what information the provider returns.
|
|
16
12
|
*/
|
|
17
13
|
retrieveMany(
|
|
18
14
|
body: EmploymentRetrieveManyParams,
|
|
@@ -96,12 +92,6 @@ export interface EmploymentData {
|
|
|
96
92
|
*/
|
|
97
93
|
middle_name?: string | null;
|
|
98
94
|
|
|
99
|
-
/**
|
|
100
|
-
* Note: This property is only available if enabled for your account. Please reach
|
|
101
|
-
* out to your Finch representative if you would like access.
|
|
102
|
-
*/
|
|
103
|
-
pay_group_ids?: Array<string> | null;
|
|
104
|
-
|
|
105
95
|
/**
|
|
106
96
|
* The source system's unique employment identifier for this individual
|
|
107
97
|
*/
|
|
@@ -115,16 +105,9 @@ export interface EmploymentData {
|
|
|
115
105
|
title?: string | null;
|
|
116
106
|
|
|
117
107
|
/**
|
|
118
|
-
*
|
|
119
|
-
* out to your Finch representative if you would like access.
|
|
108
|
+
* This field is deprecated in favour of `source_id`
|
|
120
109
|
*/
|
|
121
110
|
work_id?: string | null;
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* Note: This property is only available if enabled for your account. Please reach
|
|
125
|
-
* out to your Finch representative if you would like access.
|
|
126
|
-
*/
|
|
127
|
-
work_id_2?: string | null;
|
|
128
111
|
}
|
|
129
112
|
|
|
130
113
|
export namespace EmploymentData {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless.
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import * as Core from "../../core";
|
|
4
4
|
import { APIResource } from "../../resource";
|
|
@@ -44,8 +44,9 @@ export interface Individual {
|
|
|
44
44
|
emails?: Array<Individual.Email> | null;
|
|
45
45
|
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
48
|
-
*
|
|
47
|
+
* Social Security Number of the individual in **encrypted** format. This field is
|
|
48
|
+
* only available with the `ssn` scope enabled and the
|
|
49
|
+
* `options: { include: ['ssn'] }` param set in the body.
|
|
49
50
|
*/
|
|
50
51
|
encrypted_ssn?: string | null;
|
|
51
52
|
|
|
@@ -93,8 +94,9 @@ export interface Individual {
|
|
|
93
94
|
residence?: HRISAPI.Location | null;
|
|
94
95
|
|
|
95
96
|
/**
|
|
96
|
-
*
|
|
97
|
-
*
|
|
97
|
+
* Social Security Number of the individual. This field is only available with the
|
|
98
|
+
* `ssn` scope enabled and the `options: { include: ['ssn'] }` param set in the
|
|
99
|
+
* body.
|
|
98
100
|
*/
|
|
99
101
|
ssn?: string | null;
|
|
100
102
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless.
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import * as Core from "../../core";
|
|
4
4
|
import { APIResource } from "../../resource";
|
|
@@ -13,7 +13,7 @@ export class PayStatements extends APIResource {
|
|
|
13
13
|
* Read detailed pay statements for each individual.
|
|
14
14
|
*
|
|
15
15
|
* Deduction and contribution types are supported by the payroll systems that
|
|
16
|
-
*
|
|
16
|
+
* supports Benefits.
|
|
17
17
|
*/
|
|
18
18
|
retrieveMany(
|
|
19
19
|
body: PayStatementRetrieveManyParams,
|
package/src/resources/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless.
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import * as Core from "../core";
|
|
4
4
|
import { APIResource } from "../resource";
|
|
@@ -355,7 +355,7 @@ export namespace Provider {
|
|
|
355
355
|
employer_contributions?: PayStatements.EmployerContributions;
|
|
356
356
|
|
|
357
357
|
/**
|
|
358
|
-
* [DEPRECATED] Use `employer_contributions` instead
|
|
358
|
+
* @deprecated: [DEPRECATED] Use `employer_contributions` instead
|
|
359
359
|
*/
|
|
360
360
|
employer_deductions?: PayStatements.EmployerDeductions;
|
|
361
361
|
|
|
@@ -406,7 +406,7 @@ export namespace Provider {
|
|
|
406
406
|
}
|
|
407
407
|
|
|
408
408
|
/**
|
|
409
|
-
* [DEPRECATED] Use `employer_contributions` instead
|
|
409
|
+
* @deprecated: [DEPRECATED] Use `employer_contributions` instead
|
|
410
410
|
*/
|
|
411
411
|
export interface EmployerDeductions {
|
|
412
412
|
amount?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless.
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
export { CompanyUpdateResponse, CompanyUpdateParams, Company } from './company';
|
|
4
4
|
export { ConnectionCreateResponse, ConnectionCreateParams, Connections } from './connections/index';
|
package/src/resources/shared.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless.
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from "../resource";
|
|
4
4
|
import { createHmac } from 'crypto';
|
|
@@ -444,7 +444,7 @@ export namespace AccountUpdateEvent {
|
|
|
444
444
|
employer_contributions?: PayStatements.EmployerContributions;
|
|
445
445
|
|
|
446
446
|
/**
|
|
447
|
-
* [DEPRECATED] Use `employer_contributions` instead
|
|
447
|
+
* @deprecated: [DEPRECATED] Use `employer_contributions` instead
|
|
448
448
|
*/
|
|
449
449
|
employer_deductions?: PayStatements.EmployerDeductions;
|
|
450
450
|
|
|
@@ -495,7 +495,7 @@ export namespace AccountUpdateEvent {
|
|
|
495
495
|
}
|
|
496
496
|
|
|
497
497
|
/**
|
|
498
|
-
* [DEPRECATED] Use `employer_contributions` instead
|
|
498
|
+
* @deprecated: [DEPRECATED] Use `employer_contributions` instead
|
|
499
499
|
*/
|
|
500
500
|
export interface EmployerDeductions {
|
|
501
501
|
amount?: boolean;
|
package/src/uploads.ts
CHANGED
|
@@ -102,11 +102,14 @@ export type ToFileInput = Uploadable | Exclude<BlobLikePart, string> | AsyncIter
|
|
|
102
102
|
export async function toFile(
|
|
103
103
|
value: ToFileInput | PromiseLike<ToFileInput>,
|
|
104
104
|
name?: string | null | undefined,
|
|
105
|
-
options
|
|
105
|
+
options?: FilePropertyBag | undefined,
|
|
106
106
|
): Promise<FileLike> {
|
|
107
107
|
// If it's a promise, resolve it.
|
|
108
108
|
value = await value;
|
|
109
109
|
|
|
110
|
+
// Use the file's options if there isn't one provided
|
|
111
|
+
options ??= isFileLike(value) ? { lastModified: value.lastModified, type: value.type } : {};
|
|
112
|
+
|
|
110
113
|
if (isResponseLike(value)) {
|
|
111
114
|
const blob = await value.blob();
|
|
112
115
|
name ||= new URL(value.url).pathname.split(/[\\/]/).pop() ?? 'unknown_file';
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '5.20.
|
|
1
|
+
export const VERSION = '5.20.2'; // x-release-please-version
|