@tryfinch/finch-api 5.20.1 → 5.20.3
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 +37 -0
- package/README.md +50 -7
- 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 -3
- package/index.js.map +1 -1
- package/index.mjs +2 -3
- 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 +2 -3
- package/resources/account.d.ts.map +1 -1
- package/resources/account.js +1 -1
- package/resources/account.js.map +1 -1
- package/resources/account.mjs +1 -1
- package/resources/account.mjs.map +1 -1
- package/resources/hris/benefits/benefits.js +1 -1
- package/resources/hris/benefits/benefits.js.map +1 -1
- package/resources/hris/benefits/benefits.mjs +1 -1
- 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.js +1 -1
- package/resources/hris/benefits/individuals.js.map +1 -1
- package/resources/hris/benefits/individuals.mjs +1 -1
- 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.js +1 -1
- package/resources/hris/employments.js.map +1 -1
- package/resources/hris/employments.mjs +1 -1
- 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.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.js +1 -1
- package/resources/hris/pay-statements.js.map +1 -1
- package/resources/hris/pay-statements.mjs +1 -1
- 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.d.ts +0 -15
- package/resources/shared.d.ts.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 -3
- 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 +3 -4
- package/src/resources/hris/benefits/benefits.ts +1 -1
- package/src/resources/hris/benefits/index.ts +1 -1
- package/src/resources/hris/benefits/individuals.ts +1 -1
- package/src/resources/hris/company.ts +1 -1
- package/src/resources/hris/directory.ts +1 -1
- package/src/resources/hris/employments.ts +1 -1
- package/src/resources/hris/hris.ts +1 -1
- package/src/resources/hris/index.ts +1 -1
- package/src/resources/hris/individuals.ts +1 -1
- package/src/resources/hris/pay-statements.ts +1 -1
- 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 -16
- 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":"payment.js","sourceRoot":"","sources":["../../src/resources/sandbox/payment.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"payment.js","sourceRoot":"","sources":["../../src/resources/sandbox/payment.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAGtF,2DAA2D;AAC3D,mDAA4D;AAK5D,MAAa,OAAQ,SAAQ,sBAAW;IAMtC,MAAM,CACJ,OAAkD,EAAE,EACpD,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,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;CACF;AAfD,0BAeC;AA2LD,WAAiB,OAAO;AAGxB,CAAC,EAHgB,OAAO,GAAP,eAAO,KAAP,eAAO,QAGvB"}
|
|
@@ -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 { isRequestOptions } from '@tryfinch/finch-api/core';
|
|
4
4
|
export class Payment extends APIResource {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment.mjs","sourceRoot":"","sources":["../../src/resources/sandbox/payment.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"payment.mjs","sourceRoot":"","sources":["../../src/resources/sandbox/payment.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAG/E,EAAE,WAAW,EAAE,MAAM,8BAA8B;OACnD,EAAE,gBAAgB,EAAE,MAAM,0BAA0B;AAK3D,MAAM,OAAO,OAAQ,SAAQ,WAAW;IAMtC,MAAM,CACJ,OAAkD,EAAE,EACpD,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,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;CACF;AA2LD,WAAiB,OAAO;AAGxB,CAAC,EAHgB,OAAO,KAAP,OAAO,QAGvB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless.
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
4
|
if (k2 === undefined) k2 = k;
|
|
5
5
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sandbox.js","sourceRoot":"","sources":["../../src/resources/sandbox/sandbox.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"sandbox.js","sourceRoot":"","sources":["../../src/resources/sandbox/sandbox.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,2DAA2D;AAC3D,0FAA4E;AAC5E,8FAAgF;AAChF,gGAAkF;AAClF,gGAAkF;AAClF,0FAA4E;AAC5E,8GAAgG;AAChG,yFAA2E;AAE3E,MAAa,OAAQ,SAAQ,sBAAW;IAAxC;;QACE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACvF,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClF,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClF,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACtD,CAAC;CAAA;AARD,0BAQC;AAED,WAAiB,OAAO;IACR,mBAAW,GAAG,cAAc,CAAC,WAAW,CAAC;IAGzC,eAAO,GAAG,UAAU,CAAC,OAAO,CAAC;IAG7B,iBAAS,GAAG,YAAY,CAAC,SAAS,CAAC;IAGnC,kBAAU,GAAG,aAAa,CAAC,UAAU,CAAC;IAGtC,kBAAU,GAAG,aAAa,CAAC,UAAU,CAAC;IAGtC,eAAO,GAAG,UAAU,CAAC,OAAO,CAAC;IAG7B,YAAI,GAAG,OAAO,CAAC,IAAI,CAAC;AAGpC,CAAC,EAtBgB,OAAO,GAAP,eAAO,KAAP,eAAO,QAsBvB"}
|
|
@@ -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 * as CompanyAPI from '@tryfinch/finch-api/resources/sandbox/company';
|
|
4
4
|
import * as DirectoryAPI from '@tryfinch/finch-api/resources/sandbox/directory';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sandbox.mjs","sourceRoot":"","sources":["../../src/resources/sandbox/sandbox.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"sandbox.mjs","sourceRoot":"","sources":["../../src/resources/sandbox/sandbox.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE,MAAM,8BAA8B;OACnD,KAAK,UAAU,MAAM,+CAA+C;OACpE,KAAK,YAAY,MAAM,iDAAiD;OACxE,KAAK,aAAa,MAAM,kDAAkD;OAC1E,KAAK,aAAa,MAAM,kDAAkD;OAC1E,KAAK,UAAU,MAAM,+CAA+C;OACpE,KAAK,cAAc,MAAM,+DAA+D;OACxF,KAAK,OAAO,MAAM,iDAAiD;AAE1E,MAAM,OAAO,OAAQ,SAAQ,WAAW;IAAxC;;QACE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACvF,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClF,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClF,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACtD,CAAC;CAAA;AAED,WAAiB,OAAO;IACR,mBAAW,GAAG,cAAc,CAAC,WAAW,CAAC;IAGzC,eAAO,GAAG,UAAU,CAAC,OAAO,CAAC;IAG7B,iBAAS,GAAG,YAAY,CAAC,SAAS,CAAC;IAGnC,kBAAU,GAAG,aAAa,CAAC,UAAU,CAAC;IAGtC,kBAAU,GAAG,aAAa,CAAC,UAAU,CAAC;IAGtC,eAAO,GAAG,UAAU,CAAC,OAAO,CAAC;IAG7B,YAAI,GAAG,OAAO,CAAC,IAAI,CAAC;AAGpC,CAAC,EAtBgB,OAAO,KAAP,OAAO,QAsBvB"}
|
package/resources/shared.d.ts
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
export type ConnectionStatusType = 'pending' | 'processing' | 'connected' | 'error_no_account_setup' | 'error_permissions' | 'reauth';
|
|
2
2
|
/**
|
|
3
3
|
* - `supported`: This operation is supported by both the provider and Finch
|
|
4
|
-
*
|
|
5
4
|
* - `not_supported_by_finch`: This operation is not supported by Finch but
|
|
6
5
|
* supported by the provider
|
|
7
|
-
*
|
|
8
6
|
* - `not_supported_by_provider`: This operation is not supported by the provider,
|
|
9
7
|
* so Finch cannot support
|
|
10
|
-
*
|
|
11
8
|
* - `client_access_only`: This behavior is supported by the provider, but only
|
|
12
9
|
* available to the client and not to Finch
|
|
13
10
|
*/
|
|
@@ -15,52 +12,40 @@ export type OperationSupport = 'supported' | 'not_supported_by_finch' | 'not_sup
|
|
|
15
12
|
export interface OperationSupportMatrix {
|
|
16
13
|
/**
|
|
17
14
|
* - `supported`: This operation is supported by both the provider and Finch
|
|
18
|
-
*
|
|
19
15
|
* - `not_supported_by_finch`: This operation is not supported by Finch but
|
|
20
16
|
* supported by the provider
|
|
21
|
-
*
|
|
22
17
|
* - `not_supported_by_provider`: This operation is not supported by the provider,
|
|
23
18
|
* so Finch cannot support
|
|
24
|
-
*
|
|
25
19
|
* - `client_access_only`: This behavior is supported by the provider, but only
|
|
26
20
|
* available to the client and not to Finch
|
|
27
21
|
*/
|
|
28
22
|
create?: OperationSupport;
|
|
29
23
|
/**
|
|
30
24
|
* - `supported`: This operation is supported by both the provider and Finch
|
|
31
|
-
*
|
|
32
25
|
* - `not_supported_by_finch`: This operation is not supported by Finch but
|
|
33
26
|
* supported by the provider
|
|
34
|
-
*
|
|
35
27
|
* - `not_supported_by_provider`: This operation is not supported by the provider,
|
|
36
28
|
* so Finch cannot support
|
|
37
|
-
*
|
|
38
29
|
* - `client_access_only`: This behavior is supported by the provider, but only
|
|
39
30
|
* available to the client and not to Finch
|
|
40
31
|
*/
|
|
41
32
|
delete?: OperationSupport;
|
|
42
33
|
/**
|
|
43
34
|
* - `supported`: This operation is supported by both the provider and Finch
|
|
44
|
-
*
|
|
45
35
|
* - `not_supported_by_finch`: This operation is not supported by Finch but
|
|
46
36
|
* supported by the provider
|
|
47
|
-
*
|
|
48
37
|
* - `not_supported_by_provider`: This operation is not supported by the provider,
|
|
49
38
|
* so Finch cannot support
|
|
50
|
-
*
|
|
51
39
|
* - `client_access_only`: This behavior is supported by the provider, but only
|
|
52
40
|
* available to the client and not to Finch
|
|
53
41
|
*/
|
|
54
42
|
read?: OperationSupport;
|
|
55
43
|
/**
|
|
56
44
|
* - `supported`: This operation is supported by both the provider and Finch
|
|
57
|
-
*
|
|
58
45
|
* - `not_supported_by_finch`: This operation is not supported by Finch but
|
|
59
46
|
* supported by the provider
|
|
60
|
-
*
|
|
61
47
|
* - `not_supported_by_provider`: This operation is not supported by the provider,
|
|
62
48
|
* so Finch cannot support
|
|
63
|
-
*
|
|
64
49
|
* - `client_access_only`: This behavior is supported by the provider, but only
|
|
65
50
|
* available to the client and not to Finch
|
|
66
51
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,oBAAoB,GAC5B,SAAS,GACT,YAAY,GACZ,WAAW,GACX,wBAAwB,GACxB,mBAAmB,GACnB,QAAQ,CAAC;AAEb
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,oBAAoB,GAC5B,SAAS,GACT,YAAY,GACZ,WAAW,GACX,wBAAwB,GACxB,mBAAmB,GACnB,QAAQ,CAAC;AAEb;;;;;;;;GAQG;AACH,MAAM,MAAM,gBAAgB,GACxB,WAAW,GACX,wBAAwB,GACxB,2BAA2B,GAC3B,oBAAoB,CAAC;AAEzB,MAAM,WAAW,sBAAsB;IACrC;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAE1B;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAE1B;;;;;;;;OAQG;IACH,IAAI,CAAC,EAAE,gBAAgB,CAAC;IAExB;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,gBAAgB,CAAC;CAC3B;AAED,MAAM,WAAW,MAAM;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
package/resources/shared.js
CHANGED
package/resources/shared.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":";AAAA,sFAAsF"}
|
package/resources/shared.mjs
CHANGED
package/resources/shared.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.mjs","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"shared.mjs","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
package/resources/top-level.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"top-level.js","sourceRoot":"","sources":["../src/resources/top-level.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"top-level.js","sourceRoot":"","sources":["../src/resources/top-level.ts"],"names":[],"mappings":";AAAA,sFAAsF"}
|
package/resources/top-level.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"top-level.mjs","sourceRoot":"","sources":["../src/resources/top-level.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"top-level.mjs","sourceRoot":"","sources":["../src/resources/top-level.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
package/resources/webhooks.d.ts
CHANGED
|
@@ -215,7 +215,7 @@ export declare namespace AccountUpdateEvent {
|
|
|
215
215
|
employee_deductions?: PayStatements.EmployeeDeductions;
|
|
216
216
|
employer_contributions?: PayStatements.EmployerContributions;
|
|
217
217
|
/**
|
|
218
|
-
* [DEPRECATED] Use `employer_contributions` instead
|
|
218
|
+
* @deprecated: [DEPRECATED] Use `employer_contributions` instead
|
|
219
219
|
*/
|
|
220
220
|
employer_deductions?: PayStatements.EmployerDeductions;
|
|
221
221
|
gross_pay?: boolean;
|
|
@@ -246,7 +246,7 @@ export declare namespace AccountUpdateEvent {
|
|
|
246
246
|
name?: boolean;
|
|
247
247
|
}
|
|
248
248
|
/**
|
|
249
|
-
* [DEPRECATED] Use `employer_contributions` instead
|
|
249
|
+
* @deprecated: [DEPRECATED] Use `employer_contributions` instead
|
|
250
250
|
*/
|
|
251
251
|
interface EmployerDeductions {
|
|
252
252
|
amount?: boolean;
|
package/resources/webhooks.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless.
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Webhooks = void 0;
|
|
5
5
|
const resource_1 = require("@tryfinch/finch-api/resource");
|
|
@@ -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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,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/webhooks.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE,MAAM,8BAA8B;OACnD,EAAE,UAAU,EAAE,MAAM,QAAQ;OAC5B,EAAE,iBAAiB,EAAe,MAAM,0BAA0B;AAKzE,MAAM,OAAO,QAAS,SAAQ,WAAW;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,E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iB,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) {
|
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";
|
|
@@ -54,9 +54,8 @@ export interface Introspection {
|
|
|
54
54
|
/**
|
|
55
55
|
* The type of the connection associated with the token.
|
|
56
56
|
*
|
|
57
|
-
* `provider` - connection to an external provider
|
|
58
|
-
*
|
|
59
|
-
* `finch` - finch-generated data.
|
|
57
|
+
* - `provider` - connection to an external provider
|
|
58
|
+
* - `finch` - finch-generated data.
|
|
60
59
|
*/
|
|
61
60
|
connection_type: 'provider' | 'finch';
|
|
62
61
|
|
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';
|