@tryfinch/finch-api 5.1.0 → 5.3.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 +43 -0
- package/README.md +28 -21
- package/_shims/MultipartBody.d.ts +9 -0
- package/_shims/MultipartBody.d.ts.map +1 -0
- package/_shims/MultipartBody.js +16 -0
- package/_shims/MultipartBody.js.map +1 -0
- package/_shims/MultipartBody.mjs +12 -0
- package/_shims/MultipartBody.mjs.map +1 -0
- package/_shims/README.md +46 -0
- package/{src/_shims/ReadableStream-node.ts → _shims/auto/runtime-bun.d.ts} +2 -3
- package/_shims/auto/runtime-bun.d.ts.map +1 -0
- package/_shims/auto/runtime-bun.js +21 -0
- package/_shims/auto/runtime-bun.js.map +1 -0
- package/_shims/auto/runtime-bun.mjs +2 -0
- package/_shims/auto/runtime-bun.mjs.map +1 -0
- package/_shims/auto/runtime-node.d.ts +5 -0
- package/_shims/auto/runtime-node.d.ts.map +1 -0
- package/_shims/auto/runtime-node.js +21 -0
- package/_shims/auto/runtime-node.js.map +1 -0
- package/_shims/auto/runtime-node.mjs +2 -0
- package/_shims/auto/runtime-node.mjs.map +1 -0
- package/_shims/auto/runtime.d.ts +5 -0
- package/_shims/auto/runtime.d.ts.map +1 -0
- package/_shims/auto/runtime.js +21 -0
- package/_shims/auto/runtime.js.map +1 -0
- package/_shims/auto/runtime.mjs +2 -0
- package/_shims/auto/runtime.mjs.map +1 -0
- package/_shims/auto/types-node.d.ts +5 -0
- package/_shims/auto/types-node.d.ts.map +1 -0
- package/_shims/auto/types-node.js +21 -0
- package/_shims/auto/types-node.js.map +1 -0
- package/_shims/auto/types-node.mjs +2 -0
- package/_shims/auto/types-node.mjs.map +1 -0
- package/_shims/auto/types.d.ts +99 -0
- package/_shims/{ReadableStream.js → auto/types.js} +0 -2
- package/{src/_shims/ReadableStream.js → _shims/auto/types.mjs} +0 -2
- package/_shims/bun-runtime.d.ts +6 -0
- package/_shims/bun-runtime.d.ts.map +1 -0
- package/_shims/bun-runtime.js +14 -0
- package/_shims/bun-runtime.js.map +1 -0
- package/_shims/bun-runtime.mjs +10 -0
- package/_shims/bun-runtime.mjs.map +1 -0
- package/_shims/index.d.ts +79 -0
- package/_shims/index.js +13 -0
- package/_shims/index.mjs +7 -0
- package/_shims/manual-types.d.ts +12 -0
- package/_shims/manual-types.js +3 -0
- package/_shims/manual-types.mjs +3 -0
- package/_shims/node-runtime.d.ts +3 -0
- package/_shims/node-runtime.d.ts.map +1 -0
- package/_shims/node-runtime.js +87 -0
- package/_shims/node-runtime.js.map +1 -0
- package/_shims/node-runtime.mjs +54 -0
- package/_shims/node-runtime.mjs.map +1 -0
- package/_shims/node-types.d.ts +42 -0
- package/_shims/node-types.js +3 -0
- package/_shims/node-types.mjs +3 -0
- package/_shims/registry.d.ts +35 -0
- package/_shims/registry.d.ts.map +1 -0
- package/_shims/registry.js +39 -0
- package/_shims/registry.js.map +1 -0
- package/_shims/registry.mjs +35 -0
- package/_shims/registry.mjs.map +1 -0
- package/_shims/web-runtime.d.ts +5 -0
- package/_shims/web-runtime.d.ts.map +1 -0
- package/_shims/web-runtime.js +70 -0
- package/_shims/web-runtime.js.map +1 -0
- package/_shims/web-runtime.mjs +63 -0
- package/_shims/web-runtime.mjs.map +1 -0
- package/_shims/web-types.d.ts +82 -0
- package/_shims/web-types.js +3 -0
- package/_shims/web-types.mjs +3 -0
- package/core.d.ts +170 -223
- package/core.d.ts.map +1 -1
- package/core.js +682 -729
- package/core.js.map +1 -1
- package/core.mjs +676 -680
- package/core.mjs.map +1 -1
- package/error.d.ts +32 -32
- package/error.d.ts.map +1 -1
- package/error.js +95 -106
- package/error.js.map +1 -1
- package/error.mjs +91 -91
- package/error.mjs.map +1 -1
- package/index.d.mts +145 -178
- package/index.d.ts +145 -178
- package/index.d.ts.map +1 -1
- package/index.js +145 -201
- package/index.js.map +1 -1
- package/index.mjs +123 -149
- package/index.mjs.map +1 -1
- package/package.json +31 -23
- package/pagination.d.ts +47 -167
- package/pagination.d.ts.map +1 -1
- package/pagination.js +72 -202
- package/pagination.js.map +1 -1
- package/pagination.mjs +68 -187
- package/pagination.mjs.map +1 -1
- package/resource.d.ts +10 -10
- package/resource.js +12 -12
- package/resource.mjs +10 -10
- package/resources/account.d.ts +44 -44
- package/resources/account.js +20 -19
- package/resources/account.mjs +17 -16
- package/resources/hris/benefits/benefits.d.ts +127 -154
- package/resources/hris/benefits/benefits.js +74 -89
- package/resources/hris/benefits/benefits.mjs +50 -48
- package/resources/hris/benefits/index.d.ts +3 -28
- package/resources/hris/benefits/index.js +13 -55
- package/resources/hris/benefits/index.mjs +3 -8
- package/resources/hris/benefits/individuals.d.ts +129 -147
- package/resources/hris/benefits/individuals.js +59 -59
- package/resources/hris/benefits/individuals.mjs +53 -49
- package/resources/hris/company.d.ts +80 -80
- package/resources/hris/company.js +12 -13
- package/resources/hris/company.mjs +9 -8
- package/resources/hris/directory.d.ts +53 -55
- package/resources/hris/directory.js +13 -12
- package/resources/hris/directory.mjs +8 -7
- package/resources/hris/employments.d.ts +124 -126
- package/resources/hris/employments.js +23 -21
- package/resources/hris/employments.mjs +19 -17
- package/resources/hris/hris.d.ts +113 -123
- package/resources/hris/hris.js +54 -71
- package/resources/hris/hris.mjs +32 -32
- package/resources/hris/index.d.ts +9 -41
- package/resources/hris/index.js +26 -110
- package/resources/hris/index.mjs +9 -9
- package/resources/hris/individuals.d.ts +65 -67
- package/resources/hris/individuals.js +19 -17
- package/resources/hris/individuals.mjs +14 -12
- package/resources/hris/pay-statements.d.ts +146 -162
- package/resources/hris/pay-statements.js +22 -20
- package/resources/hris/pay-statements.mjs +18 -16
- package/resources/hris/payments.d.ts +47 -49
- package/resources/hris/payments.js +15 -13
- package/resources/hris/payments.mjs +11 -9
- package/resources/index.d.ts +5 -7
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +13 -51
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +5 -6
- package/resources/index.mjs.map +1 -1
- package/resources/providers.d.ts +43 -42
- package/resources/providers.js +15 -13
- package/resources/providers.mjs +11 -9
- package/resources/top-level.d.ts +1 -1
- package/resources/top-level.js +3 -3
- package/resources/top-level.mjs +1 -1
- package/resources/webhooks.d.ts +18 -18
- package/resources/webhooks.js +103 -107
- package/resources/webhooks.mjs +98 -102
- package/shims/node.d.ts +29 -0
- package/shims/node.d.ts.map +1 -0
- package/shims/node.js +31 -0
- package/shims/node.js.map +1 -0
- package/shims/node.mjs +5 -0
- package/shims/node.mjs.map +1 -0
- package/shims/web.d.ts +26 -0
- package/shims/web.d.ts.map +1 -0
- package/shims/web.js +31 -0
- package/shims/web.js.map +1 -0
- package/shims/web.mjs +5 -0
- package/shims/web.mjs.map +1 -0
- package/src/_shims/MultipartBody.ts +9 -0
- package/src/_shims/README.md +46 -0
- package/src/_shims/auto/runtime-bun.ts +4 -0
- package/src/_shims/auto/runtime-node.ts +4 -0
- package/src/_shims/auto/runtime.ts +4 -0
- package/src/_shims/auto/types-node.ts +4 -0
- package/src/_shims/auto/types.d.ts +99 -0
- package/src/_shims/auto/types.js +3 -0
- package/src/_shims/auto/types.mjs +3 -0
- package/src/_shims/bun-runtime.ts +14 -0
- package/src/_shims/index.d.ts +79 -0
- package/src/_shims/index.js +13 -0
- package/src/_shims/index.mjs +7 -0
- package/src/_shims/manual-types.d.ts +12 -0
- package/src/_shims/manual-types.js +3 -0
- package/src/_shims/manual-types.mjs +3 -0
- package/src/_shims/node-runtime.ts +79 -0
- package/src/_shims/node-types.d.ts +42 -0
- package/src/_shims/node-types.js +3 -0
- package/src/_shims/node-types.mjs +3 -0
- package/src/_shims/registry.ts +64 -0
- package/src/_shims/web-runtime.ts +91 -0
- package/src/_shims/web-types.d.ts +82 -0
- package/src/_shims/web-types.js +3 -0
- package/src/_shims/web-types.mjs +3 -0
- package/src/core.ts +75 -44
- package/src/error.ts +6 -4
- package/src/index.ts +8 -25
- package/src/pagination.ts +2 -261
- package/src/resource.ts +1 -1
- package/src/resources/account.ts +3 -3
- package/src/resources/hris/benefits/benefits.ts +6 -6
- package/src/resources/hris/benefits/index.ts +2 -2
- package/src/resources/hris/benefits/individuals.ts +6 -6
- package/src/resources/hris/company.ts +4 -4
- package/src/resources/hris/directory.ts +5 -5
- package/src/resources/hris/employments.ts +5 -5
- package/src/resources/hris/hris.ts +9 -9
- package/src/resources/hris/index.ts +8 -8
- package/src/resources/hris/individuals.ts +6 -6
- package/src/resources/hris/pay-statements.ts +6 -6
- package/src/resources/hris/payments.ts +5 -5
- package/src/resources/index.ts +4 -6
- package/src/resources/providers.ts +4 -4
- package/src/resources/webhooks.ts +2 -2
- package/src/shims/node.ts +50 -0
- package/src/shims/web.ts +50 -0
- package/src/uploads.ts +12 -16
- package/src/version.ts +1 -1
- package/uploads.d.ts +23 -39
- package/uploads.d.ts.map +1 -1
- package/uploads.js +115 -157
- package/uploads.js.map +1 -1
- package/uploads.mjs +111 -133
- package/uploads.mjs.map +1 -1
- package/version.d.ts +2 -2
- package/version.js +4 -4
- package/version.mjs +2 -2
- package/_shims/ReadableStream-node.d.ts +0 -6
- package/_shims/ReadableStream-node.d.ts.map +0 -1
- package/_shims/ReadableStream-node.js +0 -14
- package/_shims/ReadableStream-node.js.map +0 -1
- package/_shims/ReadableStream-node.mjs +0 -3
- package/_shims/ReadableStream-node.mjs.map +0 -1
- package/_shims/ReadableStream.d.ts +0 -38
- package/_shims/ReadableStream.mjs +0 -7
- package/_shims/agent-node.d.ts +0 -7
- package/_shims/agent-node.d.ts.map +0 -1
- package/_shims/agent-node.js +0 -28
- package/_shims/agent-node.js.map +0 -1
- package/_shims/agent-node.mjs +0 -16
- package/_shims/agent-node.mjs.map +0 -1
- package/_shims/agent.d.ts +0 -9
- package/_shims/agent.d.ts.map +0 -1
- package/_shims/agent.js +0 -14
- package/_shims/agent.js.map +0 -1
- package/_shims/agent.mjs +0 -10
- package/_shims/agent.mjs.map +0 -1
- package/_shims/fetch-node.d.ts +0 -64
- package/_shims/fetch-node.js +0 -12
- package/_shims/fetch-node.mjs +0 -14
- package/_shims/fetch.d.ts +0 -60
- package/_shims/fetch.js +0 -13
- package/_shims/fetch.mjs +0 -15
- package/_shims/fileFromPath-node.d.ts +0 -17
- package/_shims/fileFromPath-node.d.ts.map +0 -1
- package/_shims/fileFromPath-node.js +0 -17
- package/_shims/fileFromPath-node.js.map +0 -1
- package/_shims/fileFromPath-node.mjs +0 -13
- package/_shims/fileFromPath-node.mjs.map +0 -1
- package/_shims/fileFromPath.d.ts +0 -22
- package/_shims/fileFromPath.d.ts.map +0 -1
- package/_shims/fileFromPath.js +0 -16
- package/_shims/fileFromPath.js.map +0 -1
- package/_shims/fileFromPath.mjs +0 -12
- package/_shims/fileFromPath.mjs.map +0 -1
- package/_shims/form-data-node.d.ts +0 -45
- package/_shims/form-data-node.js +0 -11
- package/_shims/form-data-node.mjs +0 -9
- package/_shims/form-data.d.ts +0 -43
- package/_shims/form-data.js +0 -17
- package/_shims/form-data.mjs +0 -20
- package/_shims/getMultipartRequestOptions-node.d.ts +0 -10
- package/_shims/getMultipartRequestOptions-node.d.ts.map +0 -1
- package/_shims/getMultipartRequestOptions-node.js +0 -22
- package/_shims/getMultipartRequestOptions-node.js.map +0 -1
- package/_shims/getMultipartRequestOptions-node.mjs +0 -18
- package/_shims/getMultipartRequestOptions-node.mjs.map +0 -1
- package/_shims/getMultipartRequestOptions.d.ts +0 -10
- package/_shims/getMultipartRequestOptions.d.ts.map +0 -1
- package/_shims/getMultipartRequestOptions.js +0 -12
- package/_shims/getMultipartRequestOptions.js.map +0 -1
- package/_shims/getMultipartRequestOptions.mjs +0 -8
- package/_shims/getMultipartRequestOptions.mjs.map +0 -1
- package/_shims/node-readable-node.d.ts +0 -8
- package/_shims/node-readable-node.d.ts.map +0 -1
- package/_shims/node-readable-node.js +0 -9
- package/_shims/node-readable-node.js.map +0 -1
- package/_shims/node-readable-node.mjs +0 -5
- package/_shims/node-readable-node.mjs.map +0 -1
- package/_shims/node-readable.d.ts +0 -23
- package/_shims/node-readable.d.ts.map +0 -1
- package/_shims/node-readable.js +0 -11
- package/_shims/node-readable.js.map +0 -1
- package/_shims/node-readable.mjs +0 -7
- package/_shims/node-readable.mjs.map +0 -1
- package/resources/ats/applications.d.ts +0 -39
- package/resources/ats/applications.d.ts.map +0 -1
- package/resources/ats/applications.js +0 -24
- package/resources/ats/applications.js.map +0 -1
- package/resources/ats/applications.mjs +0 -20
- package/resources/ats/applications.mjs.map +0 -1
- package/resources/ats/ats.d.ts +0 -32
- package/resources/ats/ats.d.ts.map +0 -1
- package/resources/ats/ats.js +0 -71
- package/resources/ats/ats.js.map +0 -1
- package/resources/ats/ats.mjs +0 -27
- package/resources/ats/ats.mjs.map +0 -1
- package/resources/ats/candidates.d.ts +0 -53
- package/resources/ats/candidates.d.ts.map +0 -1
- package/resources/ats/candidates.js +0 -25
- package/resources/ats/candidates.js.map +0 -1
- package/resources/ats/candidates.mjs +0 -21
- package/resources/ats/candidates.mjs.map +0 -1
- package/resources/ats/index.d.ts +0 -7
- package/resources/ats/index.d.ts.map +0 -1
- package/resources/ats/index.js +0 -60
- package/resources/ats/index.js.map +0 -1
- package/resources/ats/index.mjs +0 -8
- package/resources/ats/index.mjs.map +0 -1
- package/resources/ats/jobs.d.ts +0 -47
- package/resources/ats/jobs.d.ts.map +0 -1
- package/resources/ats/jobs.js +0 -24
- package/resources/ats/jobs.js.map +0 -1
- package/resources/ats/jobs.mjs +0 -20
- package/resources/ats/jobs.mjs.map +0 -1
- package/resources/ats/offers.d.ts +0 -39
- package/resources/ats/offers.d.ts.map +0 -1
- package/resources/ats/offers.js +0 -24
- package/resources/ats/offers.js.map +0 -1
- package/resources/ats/offers.mjs +0 -20
- package/resources/ats/offers.mjs.map +0 -1
- package/resources/ats/stages.d.ts +0 -30
- package/resources/ats/stages.d.ts.map +0 -1
- package/resources/ats/stages.js +0 -22
- package/resources/ats/stages.js.map +0 -1
- package/resources/ats/stages.mjs +0 -17
- package/resources/ats/stages.mjs.map +0 -1
- package/src/_shims/ReadableStream.d.ts +0 -38
- package/src/_shims/ReadableStream.mjs +0 -7
- package/src/_shims/agent-node.ts +0 -22
- package/src/_shims/agent.ts +0 -12
- package/src/_shims/fetch-node.d.ts +0 -64
- package/src/_shims/fetch-node.js +0 -12
- package/src/_shims/fetch-node.mjs +0 -14
- package/src/_shims/fetch.d.ts +0 -60
- package/src/_shims/fetch.js +0 -13
- package/src/_shims/fetch.mjs +0 -15
- package/src/_shims/fileFromPath-node.ts +0 -29
- package/src/_shims/fileFromPath.ts +0 -29
- package/src/_shims/form-data-node.d.ts +0 -45
- package/src/_shims/form-data-node.js +0 -11
- package/src/_shims/form-data-node.mjs +0 -9
- package/src/_shims/form-data.d.ts +0 -43
- package/src/_shims/form-data.js +0 -17
- package/src/_shims/form-data.mjs +0 -20
- package/src/_shims/getMultipartRequestOptions-node.ts +0 -25
- package/src/_shims/getMultipartRequestOptions.ts +0 -14
- package/src/_shims/node-readable-node.ts +0 -10
- package/src/_shims/node-readable.ts +0 -30
- package/src/resources/ats/applications.ts +0 -64
- package/src/resources/ats/ats.ts +0 -39
- package/src/resources/ats/candidates.ts +0 -83
- package/src/resources/ats/index.ts +0 -8
- package/src/resources/ats/jobs.ts +0 -76
- package/src/resources/ats/offers.ts +0 -63
- package/src/resources/ats/stages.ts +0 -39
package/index.js
CHANGED
|
@@ -1,193 +1,153 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless.
|
|
3
|
-
var __createBinding =
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9
|
-
if (!desc || ('get' in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
10
|
-
desc = {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
get: function () {
|
|
13
|
-
return m[k];
|
|
14
|
-
},
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
Object.defineProperty(o, k2, desc);
|
|
18
|
-
}
|
|
19
|
-
: function (o, m, k, k2) {
|
|
20
|
-
if (k2 === undefined) k2 = k;
|
|
21
|
-
o[k2] = m[k];
|
|
22
|
-
});
|
|
23
|
-
var __setModuleDefault =
|
|
24
|
-
(this && this.__setModuleDefault) ||
|
|
25
|
-
(Object.create ?
|
|
26
|
-
function (o, v) {
|
|
27
|
-
Object.defineProperty(o, 'default', { enumerable: true, value: v });
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
28
8
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
35
20
|
if (mod && mod.__esModule) return mod;
|
|
36
21
|
var result = {};
|
|
37
|
-
if (mod != null)
|
|
38
|
-
for (var k in mod)
|
|
39
|
-
if (k !== 'default' && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
40
23
|
__setModuleDefault(result, mod);
|
|
41
24
|
return result;
|
|
42
|
-
|
|
25
|
+
};
|
|
43
26
|
var _a;
|
|
44
|
-
Object.defineProperty(exports,
|
|
45
|
-
exports.fileFromPath =
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
exports.BadRequestError =
|
|
52
|
-
exports.RateLimitError =
|
|
53
|
-
exports.ConflictError =
|
|
54
|
-
exports.NotFoundError =
|
|
55
|
-
exports.APIUserAbortError =
|
|
56
|
-
exports.APIConnectionTimeoutError =
|
|
57
|
-
exports.APIConnectionError =
|
|
58
|
-
exports.APIError =
|
|
59
|
-
exports.Finch =
|
|
60
|
-
void 0;
|
|
61
|
-
const Core = __importStar(require('./core.js'));
|
|
62
|
-
const Pagination = __importStar(require('./pagination.js'));
|
|
63
|
-
const API = __importStar(require('./resources/index.js'));
|
|
64
|
-
const Errors = __importStar(require('./error.js'));
|
|
65
|
-
const Uploads = __importStar(require('./uploads.js'));
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.fileFromPath = exports.toFile = exports.UnprocessableEntityError = exports.PermissionDeniedError = exports.InternalServerError = exports.AuthenticationError = exports.BadRequestError = exports.RateLimitError = exports.ConflictError = exports.NotFoundError = exports.APIUserAbortError = exports.APIConnectionTimeoutError = exports.APIConnectionError = exports.APIError = exports.FinchError = exports.Finch = void 0;
|
|
29
|
+
const Core = __importStar(require("./core.js"));
|
|
30
|
+
const Pagination = __importStar(require("./pagination.js"));
|
|
31
|
+
const API = __importStar(require("./resources/index.js"));
|
|
32
|
+
const Errors = __importStar(require("./error.js"));
|
|
33
|
+
const Uploads = __importStar(require("./uploads.js"));
|
|
66
34
|
/** API Client for interfacing with the Finch API. */
|
|
67
35
|
class Finch extends Core.APIClient {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
this.account = new API.Account(this);
|
|
111
|
-
this.webhooks = new API.Webhooks(this);
|
|
112
|
-
this._options = options;
|
|
113
|
-
this.accessToken = accessToken;
|
|
114
|
-
this.clientId = clientId;
|
|
115
|
-
this.clientSecret = clientSecret;
|
|
116
|
-
this.webhookSecret = webhookSecret;
|
|
117
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
* Returns an access token for the Finch API given an authorization code. An
|
|
120
|
-
* authorization code can be obtained by visiting the url returned by
|
|
121
|
-
* get_auth_url().
|
|
122
|
-
*/
|
|
123
|
-
getAccessToken(code, { redirectUri }) {
|
|
124
|
-
if (!this.clientId) {
|
|
125
|
-
throw new Error('Expected the clientId to be set in order to call getAccessToken');
|
|
36
|
+
/**
|
|
37
|
+
* API Client for interfacing with the Finch API.
|
|
38
|
+
*
|
|
39
|
+
* @param {string | null} opts.accessToken - The Access Token to send to the API.
|
|
40
|
+
* @param {string} [opts.baseURL] - Override the default base URL for the API.
|
|
41
|
+
* @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
|
|
42
|
+
* @param {number} [opts.httpAgent] - An HTTP agent used to manage HTTP(s) connections.
|
|
43
|
+
* @param {Core.Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
|
|
44
|
+
* @param {number} [opts.maxRetries=2] - The maximum number of times the client will retry a request.
|
|
45
|
+
* @param {Core.Headers} opts.defaultHeaders - Default headers to include with every request to the API.
|
|
46
|
+
* @param {Core.DefaultQuery} opts.defaultQuery - Default query parameters to include with every request to the API.
|
|
47
|
+
* @param {string | null} [opts.clientId]
|
|
48
|
+
* @param {string | null} [opts.clientSecret]
|
|
49
|
+
* @param {string | null} [opts.webhookSecret]
|
|
50
|
+
*/
|
|
51
|
+
constructor(_b) {
|
|
52
|
+
var _c, _d, _e, _f, _g;
|
|
53
|
+
var { accessToken = null, clientId = (_c = Core.readEnv('FINCH_CLIENT_ID')) !== null && _c !== void 0 ? _c : null, clientSecret = (_d = Core.readEnv('FINCH_CLIENT_SECRET')) !== null && _d !== void 0 ? _d : null, webhookSecret = (_e = Core.readEnv('FINCH_WEBHOOK_SECRET')) !== null && _e !== void 0 ? _e : null, ...opts } = _b === void 0 ? {} : _b;
|
|
54
|
+
const options = {
|
|
55
|
+
accessToken,
|
|
56
|
+
clientId,
|
|
57
|
+
clientSecret,
|
|
58
|
+
webhookSecret,
|
|
59
|
+
...opts,
|
|
60
|
+
baseURL: (_f = opts.baseURL) !== null && _f !== void 0 ? _f : `https://api.tryfinch.com`,
|
|
61
|
+
};
|
|
62
|
+
super({
|
|
63
|
+
baseURL: options.baseURL,
|
|
64
|
+
timeout: (_g = options.timeout) !== null && _g !== void 0 ? _g : 60000 /* 1 minute */,
|
|
65
|
+
httpAgent: options.httpAgent,
|
|
66
|
+
maxRetries: options.maxRetries,
|
|
67
|
+
fetch: options.fetch,
|
|
68
|
+
});
|
|
69
|
+
this.hris = new API.HRIS(this);
|
|
70
|
+
this.providers = new API.Providers(this);
|
|
71
|
+
this.account = new API.Account(this);
|
|
72
|
+
this.webhooks = new API.Webhooks(this);
|
|
73
|
+
this._options = options;
|
|
74
|
+
this.accessToken = accessToken;
|
|
75
|
+
this.clientId = clientId;
|
|
76
|
+
this.clientSecret = clientSecret;
|
|
77
|
+
this.webhookSecret = webhookSecret;
|
|
126
78
|
}
|
|
127
|
-
|
|
128
|
-
|
|
79
|
+
/**
|
|
80
|
+
* Returns an access token for the Finch API given an authorization code. An
|
|
81
|
+
* authorization code can be obtained by visiting the url returned by
|
|
82
|
+
* get_auth_url().
|
|
83
|
+
*/
|
|
84
|
+
getAccessToken(code, { redirectUri }) {
|
|
85
|
+
if (!this.clientId) {
|
|
86
|
+
throw new Error('Expected the clientId to be set in order to call getAccessToken');
|
|
87
|
+
}
|
|
88
|
+
if (!this.clientSecret) {
|
|
89
|
+
throw new Error('Expected the clientSecret to be set in order to call getAccessToken');
|
|
90
|
+
}
|
|
91
|
+
return this.post('/auth/token', {
|
|
92
|
+
body: {
|
|
93
|
+
client_id: this.clientId,
|
|
94
|
+
client_secret: this.clientSecret,
|
|
95
|
+
code: code,
|
|
96
|
+
redirect_uri: redirectUri,
|
|
97
|
+
},
|
|
98
|
+
headers: {
|
|
99
|
+
Authorization: null,
|
|
100
|
+
},
|
|
101
|
+
}).then((response) => response.access_token);
|
|
129
102
|
}
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
getAuthURL({ products, redirectUri, sandbox }) {
|
|
148
|
-
if (!this.clientId) {
|
|
149
|
-
throw new Error('Expected the clientId to be set in order to call getAuthUrl');
|
|
103
|
+
/**
|
|
104
|
+
* Returns the authorization url which can be visited in order to obtain an
|
|
105
|
+
* authorization code from Finch. The autorization code can then be exchanged for
|
|
106
|
+
* an access token for the Finch api by calling get_access_token().
|
|
107
|
+
*/
|
|
108
|
+
getAuthURL({ products, redirectUri, sandbox, }) {
|
|
109
|
+
if (!this.clientId) {
|
|
110
|
+
throw new Error('Expected the clientId to be set in order to call getAuthUrl');
|
|
111
|
+
}
|
|
112
|
+
const url = new URL('/authorize', 'https://connect.tryfinch.com/authorize');
|
|
113
|
+
url.search = this.stringifyQuery({
|
|
114
|
+
client_id: this.clientId,
|
|
115
|
+
products: products,
|
|
116
|
+
redirect_uri: redirectUri,
|
|
117
|
+
sandbox: sandbox,
|
|
118
|
+
});
|
|
119
|
+
return url.toString();
|
|
150
120
|
}
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
defaultQuery() {
|
|
161
|
-
return this._options.defaultQuery;
|
|
162
|
-
}
|
|
163
|
-
defaultHeaders(opts) {
|
|
164
|
-
return {
|
|
165
|
-
...super.defaultHeaders(opts),
|
|
166
|
-
'Finch-API-Version': '2020-09-17',
|
|
167
|
-
...this._options.defaultHeaders,
|
|
168
|
-
};
|
|
169
|
-
}
|
|
170
|
-
validateHeaders(headers, customHeaders) {
|
|
171
|
-
if (this.accessToken && headers['Authorization']) {
|
|
172
|
-
return;
|
|
121
|
+
defaultQuery() {
|
|
122
|
+
return this._options.defaultQuery;
|
|
123
|
+
}
|
|
124
|
+
defaultHeaders(opts) {
|
|
125
|
+
return {
|
|
126
|
+
...super.defaultHeaders(opts),
|
|
127
|
+
'Finch-API-Version': '2020-09-17',
|
|
128
|
+
...this._options.defaultHeaders,
|
|
129
|
+
};
|
|
173
130
|
}
|
|
174
|
-
|
|
175
|
-
|
|
131
|
+
validateHeaders(headers, customHeaders) {
|
|
132
|
+
if (this.accessToken && headers['Authorization']) {
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
if (customHeaders['Authorization'] === null) {
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
throw new Error('Could not resolve authentication method. Expected the accessToken to be set. Or for the "Authorization" headers to be explicitly omitted');
|
|
176
139
|
}
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
if (this.accessToken == null) {
|
|
183
|
-
return {};
|
|
140
|
+
authHeaders(opts) {
|
|
141
|
+
if (this.accessToken == null) {
|
|
142
|
+
return {};
|
|
143
|
+
}
|
|
144
|
+
return { Authorization: `Bearer ${this.accessToken}` };
|
|
184
145
|
}
|
|
185
|
-
return { Authorization: `Bearer ${this.accessToken}` };
|
|
186
|
-
}
|
|
187
146
|
}
|
|
188
147
|
exports.Finch = Finch;
|
|
189
148
|
_a = Finch;
|
|
190
149
|
Finch.Finch = _a;
|
|
150
|
+
Finch.FinchError = Errors.FinchError;
|
|
191
151
|
Finch.APIError = Errors.APIError;
|
|
192
152
|
Finch.APIConnectionError = Errors.APIConnectionError;
|
|
193
153
|
Finch.APIConnectionTimeoutError = Errors.APIConnectionTimeoutError;
|
|
@@ -200,38 +160,22 @@ Finch.AuthenticationError = Errors.AuthenticationError;
|
|
|
200
160
|
Finch.InternalServerError = Errors.InternalServerError;
|
|
201
161
|
Finch.PermissionDeniedError = Errors.PermissionDeniedError;
|
|
202
162
|
Finch.UnprocessableEntityError = Errors.UnprocessableEntityError;
|
|
203
|
-
|
|
204
|
-
(exports.APIConnectionError = Errors.APIConnectionError),
|
|
205
|
-
(exports.APIConnectionTimeoutError = Errors.APIConnectionTimeoutError),
|
|
206
|
-
(exports.APIUserAbortError = Errors.APIUserAbortError),
|
|
207
|
-
(exports.NotFoundError = Errors.NotFoundError),
|
|
208
|
-
(exports.ConflictError = Errors.ConflictError),
|
|
209
|
-
(exports.RateLimitError = Errors.RateLimitError),
|
|
210
|
-
(exports.BadRequestError = Errors.BadRequestError),
|
|
211
|
-
(exports.AuthenticationError = Errors.AuthenticationError),
|
|
212
|
-
(exports.InternalServerError = Errors.InternalServerError),
|
|
213
|
-
(exports.PermissionDeniedError = Errors.PermissionDeniedError),
|
|
214
|
-
(exports.UnprocessableEntityError = Errors.UnprocessableEntityError);
|
|
163
|
+
exports.FinchError = Errors.FinchError, exports.APIError = Errors.APIError, exports.APIConnectionError = Errors.APIConnectionError, exports.APIConnectionTimeoutError = Errors.APIConnectionTimeoutError, exports.APIUserAbortError = Errors.APIUserAbortError, exports.NotFoundError = Errors.NotFoundError, exports.ConflictError = Errors.ConflictError, exports.RateLimitError = Errors.RateLimitError, exports.BadRequestError = Errors.BadRequestError, exports.AuthenticationError = Errors.AuthenticationError, exports.InternalServerError = Errors.InternalServerError, exports.PermissionDeniedError = Errors.PermissionDeniedError, exports.UnprocessableEntityError = Errors.UnprocessableEntityError;
|
|
215
164
|
exports.toFile = Uploads.toFile;
|
|
216
165
|
exports.fileFromPath = Uploads.fileFromPath;
|
|
217
166
|
(function (Finch) {
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
Finch.Providers = API.Providers;
|
|
231
|
-
Finch.ProvidersSinglePage = API.ProvidersSinglePage;
|
|
232
|
-
Finch.Account = API.Account;
|
|
233
|
-
Finch.Webhooks = API.Webhooks;
|
|
234
|
-
})((Finch = exports.Finch || (exports.Finch = {})));
|
|
167
|
+
// Helper functions
|
|
168
|
+
Finch.toFile = Uploads.toFile;
|
|
169
|
+
Finch.fileFromPath = Uploads.fileFromPath;
|
|
170
|
+
Finch.SinglePage = Pagination.SinglePage;
|
|
171
|
+
Finch.ResponsesPage = Pagination.ResponsesPage;
|
|
172
|
+
Finch.IndividualsPage = Pagination.IndividualsPage;
|
|
173
|
+
Finch.HRIS = API.HRIS;
|
|
174
|
+
Finch.Providers = API.Providers;
|
|
175
|
+
Finch.ProvidersSinglePage = API.ProvidersSinglePage;
|
|
176
|
+
Finch.Account = API.Account;
|
|
177
|
+
Finch.Webhooks = API.Webhooks;
|
|
178
|
+
})(Finch = exports.Finch || (exports.Finch = {}));
|
|
235
179
|
exports = module.exports = Finch;
|
|
236
180
|
exports.default = Finch;
|
|
237
|
-
//# sourceMappingURL=index.js.map
|
|
181
|
+
//# sourceMappingURL=index.js.map
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;;;;;;;;;;;;;;;;;;;;;;;;;AAErD,gDAA+B;AAC/B,4DAA2C;AAC3C,0DAAyC;AACzC,mDAAkC;AAElC,sDAAqC;AAqErC,qDAAqD;AACrD,MAAa,KAAM,SAAQ,IAAI,CAAC,SAAS;IAQvC;;;;;;;;;;;;;;OAcG;IACH,YAAY,EAMS;;YANT,EACV,WAAW,GAAG,IAAI,EAClB,QAAQ,GAAG,MAAA,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAAC,mCAAI,IAAI,EAClD,YAAY,GAAG,MAAA,IAAI,CAAC,OAAO,CAAC,qBAAqB,CAAC,mCAAI,IAAI,EAC1D,aAAa,GAAG,MAAA,IAAI,CAAC,OAAO,CAAC,sBAAsB,CAAC,mCAAI,IAAI,EAC5D,GAAG,IAAI,qBACU,EAAE;QACnB,MAAM,OAAO,GAAkB;YAC7B,WAAW;YACX,QAAQ;YACR,YAAY;YACZ,aAAa;YACb,GAAG,IAAI;YACP,OAAO,EAAE,MAAA,IAAI,CAAC,OAAO,mCAAI,0BAA0B;SACpD,CAAC;QAEF,KAAK,CAAC;YACJ,OAAO,EAAE,OAAO,CAAC,OAAQ;YACzB,OAAO,EAAE,MAAA,OAAO,CAAC,OAAO,mCAAI,KAAK,CAAC,cAAc;YAChD,SAAS,EAAE,OAAO,CAAC,SAAS;YAC5B,UAAU,EAAE,OAAO,CAAC,UAAU;YAC9B,KAAK,EAAE,OAAO,CAAC,KAAK;SACrB,CAAC,CAAC;QASL,SAAI,GAAa,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACpC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;;;;;;;;;;;;;;;;;;;;;;;;;AAErD,gDAA+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