@tryfinch/finch-api 5.0.0 → 5.2.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 +51 -0
- package/README.md +61 -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/{src/_shims/ReadableStream.js → _shims/auto/types.js} +0 -2
- package/_shims/{ReadableStream.js → 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 +171 -223
- package/core.d.ts.map +1 -1
- package/core.js +674 -728
- package/core.js.map +1 -1
- package/core.mjs +668 -681
- package/core.mjs.map +1 -1
- package/error.d.ts +29 -31
- package/error.d.ts.map +1 -1
- package/error.js +91 -105
- package/error.js.map +1 -1
- package/error.mjs +88 -90
- package/error.mjs.map +1 -1
- package/index.d.mts +144 -173
- package/index.d.ts +144 -173
- package/index.d.ts.map +1 -1
- package/index.js +144 -195
- package/index.js.map +1 -1
- package/index.mjs +122 -143
- package/index.mjs.map +1 -1
- package/package.json +33 -20
- 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 +6 -6
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +13 -38
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +5 -5
- 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 +22 -0
- package/resources/webhooks.d.ts.map +1 -0
- package/resources/webhooks.js +114 -0
- package/resources/webhooks.js.map +1 -0
- package/resources/webhooks.mjs +110 -0
- package/resources/webhooks.mjs.map +1 -0
- 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 +38 -17
- package/src/error.ts +4 -4
- package/src/index.ts +12 -21
- package/src/pagination.ts +0 -259
- package/src/resources/account.ts +2 -2
- package/src/resources/hris/benefits/benefits.ts +4 -4
- package/src/resources/hris/benefits/individuals.ts +5 -5
- package/src/resources/hris/company.ts +3 -3
- package/src/resources/hris/directory.ts +4 -4
- package/src/resources/hris/employments.ts +4 -4
- package/src/resources/hris/hris.ts +1 -1
- package/src/resources/hris/individuals.ts +5 -5
- package/src/resources/hris/pay-statements.ts +5 -5
- package/src/resources/hris/payments.ts +4 -4
- package/src/resources/index.ts +1 -1
- package/src/resources/providers.ts +3 -3
- package/src/resources/webhooks.ts +151 -0
- package/src/shims/node.ts +50 -0
- package/src/shims/web.ts +50 -0
- package/src/tsconfig.json +11 -0
- package/src/uploads.ts +11 -15
- 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.d.ts +0 -38
- package/_shims/ReadableStream.mjs +0 -7
- 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/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/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/fetch.d.ts +0 -60
- package/_shims/fetch.js +0 -13
- package/_shims/fetch.mjs +0 -15
- package/_shims/fetch.node.d.ts +0 -64
- package/_shims/fetch.node.js +0 -12
- package/_shims/fetch.node.mjs +0 -14
- 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/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/formdata.d.ts +0 -43
- package/_shims/formdata.js +0 -17
- package/_shims/formdata.mjs +0 -20
- package/_shims/formdata.node.d.ts +0 -45
- package/_shims/formdata.node.js +0 -11
- package/_shims/formdata.node.mjs +0 -9
- 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/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/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/_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/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.d.ts +0 -60
- package/src/_shims/fetch.deno.ts +0 -23
- package/src/_shims/fetch.js +0 -13
- package/src/_shims/fetch.mjs +0 -15
- 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/fileFromPath.node.ts +0 -29
- package/src/_shims/fileFromPath.ts +0 -29
- package/src/_shims/formdata.d.ts +0 -43
- package/src/_shims/formdata.deno.ts +0 -16
- package/src/_shims/formdata.js +0 -17
- package/src/_shims/formdata.mjs +0 -20
- package/src/_shims/formdata.node.d.ts +0 -45
- package/src/_shims/formdata.node.js +0 -11
- package/src/_shims/formdata.node.mjs +0 -9
- 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
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless.
|
|
2
2
|
|
|
3
|
-
import * as Core from
|
|
4
|
-
import { APIResource } from
|
|
5
|
-
import * as HRIS from
|
|
3
|
+
import * as Core from "../../ch/finch-api/core";
|
|
4
|
+
import { APIResource } from "../../ch/finch-api/resource";
|
|
5
|
+
import * as HRIS from "../../ch/finch-api/resources/hris/index";
|
|
6
6
|
import * as API from './index';
|
|
7
7
|
|
|
8
8
|
export class CompanyResource extends APIResource {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless.
|
|
2
2
|
|
|
3
|
-
import * as Core from
|
|
4
|
-
import { APIResource } from
|
|
5
|
-
import { isRequestOptions } from
|
|
3
|
+
import * as Core from "../../ch/finch-api/core";
|
|
4
|
+
import { APIResource } from "../../ch/finch-api/resource";
|
|
5
|
+
import { isRequestOptions } from "../../ch/finch-api/core";
|
|
6
6
|
import * as API from './index';
|
|
7
|
-
import { IndividualsPage, IndividualsPageParams } from
|
|
7
|
+
import { IndividualsPage, IndividualsPageParams } from "../../ch/finch-api/pagination";
|
|
8
8
|
|
|
9
9
|
export class Directory extends APIResource {
|
|
10
10
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless.
|
|
2
2
|
|
|
3
|
-
import * as Core from
|
|
4
|
-
import { APIResource } from
|
|
5
|
-
import * as HRIS from
|
|
3
|
+
import * as Core from "../../ch/finch-api/core";
|
|
4
|
+
import { APIResource } from "../../ch/finch-api/resource";
|
|
5
|
+
import * as HRIS from "../../ch/finch-api/resources/hris/index";
|
|
6
6
|
import * as API from './index';
|
|
7
|
-
import { ResponsesPage } from
|
|
7
|
+
import { ResponsesPage } from "../../ch/finch-api/pagination";
|
|
8
8
|
|
|
9
9
|
export class Employments extends APIResource {
|
|
10
10
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from
|
|
3
|
+
import { APIResource } from "../../ch/finch-api/resource";
|
|
4
4
|
import { CompanyResource } from './company';
|
|
5
5
|
import { Directory } from './directory';
|
|
6
6
|
import { Individuals } from './individuals';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless.
|
|
2
2
|
|
|
3
|
-
import * as Core from
|
|
4
|
-
import { APIResource } from
|
|
5
|
-
import { isRequestOptions } from
|
|
6
|
-
import * as HRIS from
|
|
3
|
+
import * as Core from "../../ch/finch-api/core";
|
|
4
|
+
import { APIResource } from "../../ch/finch-api/resource";
|
|
5
|
+
import { isRequestOptions } from "../../ch/finch-api/core";
|
|
6
|
+
import * as HRIS from "../../ch/finch-api/resources/hris/index";
|
|
7
7
|
import * as API from './index';
|
|
8
|
-
import { ResponsesPage } from
|
|
8
|
+
import { ResponsesPage } from "../../ch/finch-api/pagination";
|
|
9
9
|
|
|
10
10
|
export class Individuals extends APIResource {
|
|
11
11
|
/**
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless.
|
|
2
2
|
|
|
3
|
-
import * as Core from
|
|
4
|
-
import { APIResource } from
|
|
5
|
-
import * as HRIS from
|
|
6
|
-
import * as Benefits from
|
|
3
|
+
import * as Core from "../../ch/finch-api/core";
|
|
4
|
+
import { APIResource } from "../../ch/finch-api/resource";
|
|
5
|
+
import * as HRIS from "../../ch/finch-api/resources/hris/index";
|
|
6
|
+
import * as Benefits from "../../ch/finch-api/resources/hris/benefits/index";
|
|
7
7
|
import * as API from './index';
|
|
8
|
-
import { ResponsesPage } from
|
|
8
|
+
import { ResponsesPage } from "../../ch/finch-api/pagination";
|
|
9
9
|
|
|
10
10
|
export class PayStatements extends APIResource {
|
|
11
11
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless.
|
|
2
2
|
|
|
3
|
-
import * as Core from
|
|
4
|
-
import { APIResource } from
|
|
5
|
-
import * as HRIS from
|
|
3
|
+
import * as Core from "../../ch/finch-api/core";
|
|
4
|
+
import { APIResource } from "../../ch/finch-api/resource";
|
|
5
|
+
import * as HRIS from "../../ch/finch-api/resources/hris/index";
|
|
6
6
|
import * as API from './index';
|
|
7
|
-
import { SinglePage } from
|
|
7
|
+
import { SinglePage } from "../../ch/finch-api/pagination";
|
|
8
8
|
|
|
9
9
|
export class Payments extends APIResource {
|
|
10
10
|
/**
|
package/src/resources/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless.
|
|
2
2
|
|
|
3
3
|
export {} from './top-level';
|
|
4
|
-
export { ATS } from './ats/ats';
|
|
5
4
|
export { DisconnectResponse, Introspection, Account } from './account';
|
|
6
5
|
export { Income, Location, Money, Paging, HRIS } from './hris/hris';
|
|
7
6
|
export { Provider, ProvidersSinglePage, Providers } from './providers';
|
|
7
|
+
export { Webhooks } from './webhooks';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless.
|
|
2
2
|
|
|
3
|
-
import * as Core from
|
|
4
|
-
import { APIResource } from
|
|
3
|
+
import * as Core from "../ch/finch-api/core";
|
|
4
|
+
import { APIResource } from "../ch/finch-api/resource";
|
|
5
5
|
import * as API from './index';
|
|
6
|
-
import { SinglePage } from
|
|
6
|
+
import { SinglePage } from "../ch/finch-api/pagination";
|
|
7
7
|
|
|
8
8
|
export class Providers extends APIResource {
|
|
9
9
|
/**
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from "../ch/finch-api/resource";
|
|
4
|
+
import { createHmac } from 'crypto';
|
|
5
|
+
import { getHeader, HeadersLike } from "../ch/finch-api/core";
|
|
6
|
+
|
|
7
|
+
export class Webhooks extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Validates that the given payload was sent by Finch and parses the payload.
|
|
10
|
+
*/
|
|
11
|
+
unwrap(
|
|
12
|
+
payload: string,
|
|
13
|
+
headers: HeadersLike,
|
|
14
|
+
secret: string | undefined | null = this.client.webhookSecret,
|
|
15
|
+
): Object {
|
|
16
|
+
this.verifySignature(payload, headers, secret);
|
|
17
|
+
return JSON.parse(payload);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
private parseSecret(secret: string | null | undefined): Uint8Array {
|
|
21
|
+
if (!secret) {
|
|
22
|
+
throw new Error(
|
|
23
|
+
"The webhook secret must either be set using the env var, FINCH_WEBHOOK_SECRET, on the client class, Finch({ webhook_secret: '123' }), or passed to this function",
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
const buf = Buffer.from(secret, 'base64');
|
|
28
|
+
if (buf.toString('base64') !== secret) {
|
|
29
|
+
throw new Error(`Given secret is not valid`);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
return new Uint8Array(buf);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
private signPayload(
|
|
36
|
+
payload: string,
|
|
37
|
+
{ eventId, timestamp, secret }: { eventId: string; timestamp: Date; secret: Uint8Array },
|
|
38
|
+
) {
|
|
39
|
+
const encoder = new TextEncoder();
|
|
40
|
+
const toSign = encoder.encode(`${eventId}.${timestamp.getTime() / 1000}.${payload}`);
|
|
41
|
+
|
|
42
|
+
const hmac = createHmac('sha256', secret);
|
|
43
|
+
hmac.update(toSign);
|
|
44
|
+
|
|
45
|
+
return `v1,${hmac.digest('base64')}`;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/** Make an assertion, if not `true`, then throw. */
|
|
49
|
+
private assert(expr: unknown, msg = ''): asserts expr {
|
|
50
|
+
if (!expr) {
|
|
51
|
+
throw new Error(msg);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/** Compare to array buffers or data views in a way that timing based attacks
|
|
56
|
+
* cannot gain information about the platform. */
|
|
57
|
+
private timingSafeEqual(
|
|
58
|
+
a: ArrayBufferView | ArrayBufferLike | DataView,
|
|
59
|
+
b: ArrayBufferView | ArrayBufferLike | DataView,
|
|
60
|
+
): boolean {
|
|
61
|
+
if (a.byteLength !== b.byteLength) {
|
|
62
|
+
return false;
|
|
63
|
+
}
|
|
64
|
+
if (!(a instanceof DataView)) {
|
|
65
|
+
a = new DataView(ArrayBuffer.isView(a) ? a.buffer : a);
|
|
66
|
+
}
|
|
67
|
+
if (!(b instanceof DataView)) {
|
|
68
|
+
b = new DataView(ArrayBuffer.isView(b) ? b.buffer : b);
|
|
69
|
+
}
|
|
70
|
+
this.assert(a instanceof DataView);
|
|
71
|
+
this.assert(b instanceof DataView);
|
|
72
|
+
const length = a.byteLength;
|
|
73
|
+
let out = 0;
|
|
74
|
+
let i = -1;
|
|
75
|
+
while (++i < length) {
|
|
76
|
+
out |= a.getUint8(i) ^ b.getUint8(i);
|
|
77
|
+
}
|
|
78
|
+
return out === 0;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Validates whether or not the webhook payload was sent by Finch.
|
|
83
|
+
*
|
|
84
|
+
* An error will be raised if the webhook payload was not sent by Finch.
|
|
85
|
+
*/
|
|
86
|
+
verifySignature(
|
|
87
|
+
body: string,
|
|
88
|
+
headers: HeadersLike,
|
|
89
|
+
secret: string | undefined | null = this.client.webhookSecret,
|
|
90
|
+
): void {
|
|
91
|
+
const parsedSecret = this.parseSecret(secret);
|
|
92
|
+
|
|
93
|
+
const eventId = getHeader(headers, 'finch-event-id');
|
|
94
|
+
if (!eventId) {
|
|
95
|
+
throw new Error('Could not find finch-event-id header');
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
const msgTimestamp = getHeader(headers, 'finch-timestamp');
|
|
99
|
+
if (!msgTimestamp) {
|
|
100
|
+
throw new Error('Could not find finch-timestamp header');
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
const msgSignature = getHeader(headers, 'finch-signature');
|
|
104
|
+
if (!msgSignature) {
|
|
105
|
+
throw new Error('Could not find finch-signature header');
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
const now = Math.floor(Date.now() / 1000);
|
|
109
|
+
const timestampSeconds = parseInt(msgTimestamp, 10);
|
|
110
|
+
if (isNaN(timestampSeconds)) {
|
|
111
|
+
throw new Error(`Invalid timestamp header: ${msgTimestamp}`);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
if (typeof body !== 'string') {
|
|
115
|
+
throw new Error(
|
|
116
|
+
'Webhook body must be passed as the raw JSON string sent from the server (do not parse it first).',
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
const webhook_tolerance_in_seconds = 5 * 60; // 5 minutes
|
|
121
|
+
if (now - timestampSeconds > webhook_tolerance_in_seconds) {
|
|
122
|
+
throw new Error('Webhook timestamp is too old');
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
if (timestampSeconds > now + webhook_tolerance_in_seconds) {
|
|
126
|
+
throw new Error('Webhook timestamp is too new');
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
const timestamp = new Date(timestampSeconds * 1000);
|
|
130
|
+
|
|
131
|
+
const computedSignature = this.signPayload(body, { eventId, timestamp, secret: parsedSecret });
|
|
132
|
+
const expectedSignature = computedSignature.split(',')[1];
|
|
133
|
+
|
|
134
|
+
const passedSignatures = msgSignature.split(' ');
|
|
135
|
+
|
|
136
|
+
const encoder = new globalThis.TextEncoder();
|
|
137
|
+
for (const versionedSignature of passedSignatures) {
|
|
138
|
+
const [version, signature] = versionedSignature.split(',');
|
|
139
|
+
if (version !== 'v1') {
|
|
140
|
+
continue;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
if (this.timingSafeEqual(encoder.encode(signature), encoder.encode(expectedSignature))) {
|
|
144
|
+
// valid!
|
|
145
|
+
return;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
throw new Error('None of the given webhook signatures match the expected signature');
|
|
150
|
+
}
|
|
151
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// @ts-ignore
|
|
2
|
+
import * as types from '../_shims/node-types';
|
|
3
|
+
import { setShims } from '../_shims/registry';
|
|
4
|
+
import { getRuntime } from '../_shims/node-runtime';
|
|
5
|
+
setShims(getRuntime());
|
|
6
|
+
|
|
7
|
+
declare module '../_shims/manual-types' {
|
|
8
|
+
export namespace manual {
|
|
9
|
+
// @ts-ignore
|
|
10
|
+
export type Agent = types.Agent;
|
|
11
|
+
// @ts-ignore
|
|
12
|
+
export import fetch = types.fetch;
|
|
13
|
+
// @ts-ignore
|
|
14
|
+
export type Request = types.Request;
|
|
15
|
+
// @ts-ignore
|
|
16
|
+
export type RequestInfo = types.RequestInfo;
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
export type RequestInit = types.RequestInit;
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
export type Response = types.Response;
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
export type ResponseInit = types.ResponseInit;
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
export type ResponseType = types.ResponseType;
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
export type BodyInit = types.BodyInit;
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
export type Headers = types.Headers;
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
export type HeadersInit = types.HeadersInit;
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
export type BlobPropertyBag = types.BlobPropertyBag;
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
export type FilePropertyBag = types.FilePropertyBag;
|
|
35
|
+
// @ts-ignore
|
|
36
|
+
export type FileFromPathOptions = types.FileFromPathOptions;
|
|
37
|
+
// @ts-ignore
|
|
38
|
+
export import FormData = types.FormData;
|
|
39
|
+
// @ts-ignore
|
|
40
|
+
export import File = types.File;
|
|
41
|
+
// @ts-ignore
|
|
42
|
+
export import Blob = types.Blob;
|
|
43
|
+
// @ts-ignore
|
|
44
|
+
export type Readable = types.Readable;
|
|
45
|
+
// @ts-ignore
|
|
46
|
+
export type FsReadStream = types.FsReadStream;
|
|
47
|
+
// @ts-ignore
|
|
48
|
+
export type ReadableStream = types.ReadableStream;
|
|
49
|
+
}
|
|
50
|
+
}
|
package/src/shims/web.ts
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// @ts-ignore
|
|
2
|
+
import * as types from '../_shims/web-types';
|
|
3
|
+
import { setShims } from '../_shims/registry';
|
|
4
|
+
import { getRuntime } from '../_shims/web-runtime';
|
|
5
|
+
setShims(getRuntime({ manuallyImported: true }));
|
|
6
|
+
|
|
7
|
+
declare module '../_shims/manual-types' {
|
|
8
|
+
export namespace manual {
|
|
9
|
+
// @ts-ignore
|
|
10
|
+
export type Agent = types.Agent;
|
|
11
|
+
// @ts-ignore
|
|
12
|
+
export import fetch = types.fetch;
|
|
13
|
+
// @ts-ignore
|
|
14
|
+
export type Request = types.Request;
|
|
15
|
+
// @ts-ignore
|
|
16
|
+
export type RequestInfo = types.RequestInfo;
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
export type RequestInit = types.RequestInit;
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
export type Response = types.Response;
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
export type ResponseInit = types.ResponseInit;
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
export type ResponseType = types.ResponseType;
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
export type BodyInit = types.BodyInit;
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
export type Headers = types.Headers;
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
export type HeadersInit = types.HeadersInit;
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
export type BlobPropertyBag = types.BlobPropertyBag;
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
export type FilePropertyBag = types.FilePropertyBag;
|
|
35
|
+
// @ts-ignore
|
|
36
|
+
export type FileFromPathOptions = types.FileFromPathOptions;
|
|
37
|
+
// @ts-ignore
|
|
38
|
+
export import FormData = types.FormData;
|
|
39
|
+
// @ts-ignore
|
|
40
|
+
export import File = types.File;
|
|
41
|
+
// @ts-ignore
|
|
42
|
+
export import Blob = types.Blob;
|
|
43
|
+
// @ts-ignore
|
|
44
|
+
export type Readable = types.Readable;
|
|
45
|
+
// @ts-ignore
|
|
46
|
+
export type FsReadStream = types.FsReadStream;
|
|
47
|
+
// @ts-ignore
|
|
48
|
+
export type ReadableStream = types.ReadableStream;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
// this config is included in the published src directory to prevent TS errors
|
|
3
|
+
// from appearing when users go to source, and VSCode opens the source .ts file
|
|
4
|
+
// via declaration maps
|
|
5
|
+
"include": ["index.ts"],
|
|
6
|
+
"compilerOptions": {
|
|
7
|
+
"target": "es2015",
|
|
8
|
+
"lib": ["DOM"],
|
|
9
|
+
"moduleResolution": "node"
|
|
10
|
+
}
|
|
11
|
+
}
|
package/src/uploads.ts
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { type RequestOptions } from './core';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
import {
|
|
3
|
+
FormData,
|
|
4
|
+
File,
|
|
5
|
+
type Blob,
|
|
6
|
+
type FilePropertyBag,
|
|
7
|
+
getMultipartRequestOptions,
|
|
8
|
+
type FsReadStream,
|
|
9
|
+
isFsReadStream,
|
|
10
|
+
} from './_shims/index';
|
|
11
|
+
import { MultipartBody } from './_shims/MultipartBody';
|
|
12
|
+
export { fileFromPath } from './_shims/index';
|
|
10
13
|
|
|
11
14
|
type BlobLikePart = string | ArrayBuffer | ArrayBufferView | BlobLike | Uint8Array | DataView;
|
|
12
15
|
export type BlobPart = string | ArrayBuffer | ArrayBufferView | Blob | Uint8Array | DataView;
|
|
@@ -175,13 +178,6 @@ const getStringFromMaybeBuffer = (x: string | Buffer | unknown): string | undefi
|
|
|
175
178
|
const isAsyncIterableIterator = (value: any): value is AsyncIterableIterator<unknown> =>
|
|
176
179
|
value != null && typeof value === 'object' && typeof value[Symbol.asyncIterator] === 'function';
|
|
177
180
|
|
|
178
|
-
export class MultipartBody {
|
|
179
|
-
constructor(public body: Readable | BodyInit) {}
|
|
180
|
-
get [Symbol.toStringTag](): string {
|
|
181
|
-
return 'MultipartBody';
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
|
|
185
181
|
export const isMultipartBody = (body: any): body is MultipartBody =>
|
|
186
182
|
body && typeof body === 'object' && body.body && body[Symbol.toStringTag] === 'MultipartBody';
|
|
187
183
|
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '5.
|
|
1
|
+
export const VERSION = '5.2.0'; // x-release-please-version
|
package/uploads.d.ts
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import { type RequestOptions } from
|
|
2
|
-
import { type
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import { fileFromPath } from '@tryfinch/finch-api/_shims/fileFromPath';
|
|
6
|
-
import { type FsReadStream } from '@tryfinch/finch-api/_shims/node-readable';
|
|
7
|
-
export { fileFromPath };
|
|
1
|
+
import { type RequestOptions } from "./core.js";
|
|
2
|
+
import { FormData, type Blob, type FilePropertyBag, type FsReadStream } from "./_shims/index.js";
|
|
3
|
+
import { MultipartBody } from "./_shims/MultipartBody.js";
|
|
4
|
+
export { fileFromPath } from "./_shims/index.js";
|
|
8
5
|
type BlobLikePart = string | ArrayBuffer | ArrayBufferView | BlobLike | Uint8Array | DataView;
|
|
9
6
|
export type BlobPart = string | ArrayBuffer | ArrayBufferView | Blob | Uint8Array | DataView;
|
|
10
7
|
/**
|
|
@@ -21,30 +18,30 @@ export type Uploadable = FileLike | ResponseLike | FsReadStream;
|
|
|
21
18
|
* Intended to match web.Blob, node.Blob, node-fetch.Blob, etc.
|
|
22
19
|
*/
|
|
23
20
|
export interface BlobLike {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
21
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/size) */
|
|
22
|
+
readonly size: number;
|
|
23
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/type) */
|
|
24
|
+
readonly type: string;
|
|
25
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text) */
|
|
26
|
+
text(): Promise<string>;
|
|
27
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/slice) */
|
|
28
|
+
slice(start?: number, end?: number): BlobLike;
|
|
32
29
|
}
|
|
33
30
|
/**
|
|
34
31
|
* Intended to match web.File, node.File, node-fetch.File, etc.
|
|
35
32
|
*/
|
|
36
33
|
export interface FileLike extends BlobLike {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
34
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/lastModified) */
|
|
35
|
+
readonly lastModified: number;
|
|
36
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/name) */
|
|
37
|
+
readonly name: string;
|
|
41
38
|
}
|
|
42
39
|
/**
|
|
43
40
|
* Intended to match web.Response, node.Response, node-fetch.Response, etc.
|
|
44
41
|
*/
|
|
45
42
|
export interface ResponseLike {
|
|
46
|
-
|
|
47
|
-
|
|
43
|
+
url: string;
|
|
44
|
+
blob(): Promise<BlobLike>;
|
|
48
45
|
}
|
|
49
46
|
export declare const isResponseLike: (value: any) => value is ResponseLike;
|
|
50
47
|
export declare const isFileLike: (value: any) => value is FileLike;
|
|
@@ -53,7 +50,7 @@ export declare const isFileLike: (value: any) => value is FileLike;
|
|
|
53
50
|
* adds the arrayBuffer() method type because it is available and used at runtime
|
|
54
51
|
*/
|
|
55
52
|
export declare const isBlobLike: (value: any) => value is BlobLike & {
|
|
56
|
-
|
|
53
|
+
arrayBuffer(): Promise<ArrayBuffer>;
|
|
57
54
|
};
|
|
58
55
|
export declare const isUploadable: (value: any) => value is Uploadable;
|
|
59
56
|
export type ToFileInput = Uploadable | Exclude<BlobLikePart, string> | AsyncIterable<BlobLikePart>;
|
|
@@ -66,26 +63,13 @@ export type ToFileInput = Uploadable | Exclude<BlobLikePart, string> | AsyncIter
|
|
|
66
63
|
* @param {number=} options.lastModified the last modified timestamp
|
|
67
64
|
* @returns a {@link File} with the given properties
|
|
68
65
|
*/
|
|
69
|
-
export declare function toFile(
|
|
70
|
-
value: ToFileInput | PromiseLike<ToFileInput>,
|
|
71
|
-
name?: string | null | undefined,
|
|
72
|
-
options?: FilePropertyBag | undefined,
|
|
73
|
-
): Promise<FileLike>;
|
|
74
|
-
export declare class MultipartBody {
|
|
75
|
-
body: Readable | BodyInit;
|
|
76
|
-
constructor(body: Readable | BodyInit);
|
|
77
|
-
get [Symbol.toStringTag](): string;
|
|
78
|
-
}
|
|
66
|
+
export declare function toFile(value: ToFileInput | PromiseLike<ToFileInput>, name?: string | null | undefined, options?: FilePropertyBag | undefined): Promise<FileLike>;
|
|
79
67
|
export declare const isMultipartBody: (body: any) => body is MultipartBody;
|
|
80
68
|
/**
|
|
81
69
|
* Returns a multipart/form-data request if any part of the given request body contains a File / Blob value.
|
|
82
70
|
* Otherwise returns the request as is.
|
|
83
71
|
*/
|
|
84
|
-
export declare const maybeMultipartFormRequestOptions: <T extends {} = Record<string, unknown>>(
|
|
85
|
-
|
|
86
|
-
) => Promise<RequestOptions<MultipartBody | T>>;
|
|
87
|
-
export declare const multipartFormRequestOptions: <T extends {} = Record<string, unknown>>(
|
|
88
|
-
opts: RequestOptions<T>,
|
|
89
|
-
) => Promise<RequestOptions<MultipartBody | T>>;
|
|
72
|
+
export declare const maybeMultipartFormRequestOptions: <T extends {} = Record<string, unknown>>(opts: RequestOptions<T>) => Promise<RequestOptions<MultipartBody | T>>;
|
|
73
|
+
export declare const multipartFormRequestOptions: <T extends {} = Record<string, unknown>>(opts: RequestOptions<T>) => Promise<RequestOptions<MultipartBody | T>>;
|
|
90
74
|
export declare const createForm: <T = Record<string, unknown>>(body: T | undefined) => Promise<FormData>;
|
|
91
|
-
//# sourceMappingURL=uploads.d.ts.map
|
|
75
|
+
//# sourceMappingURL=uploads.d.ts.map
|
package/uploads.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploads.d.ts","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"uploads.d.ts","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,QAAQ,CAAC;AAC7C,OAAO,EACL,QAAQ,EAER,KAAK,IAAI,EACT,KAAK,eAAe,EAEpB,KAAK,YAAY,EAElB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,KAAK,YAAY,GAAG,MAAM,GAAG,WAAW,GAAG,eAAe,GAAG,QAAQ,GAAG,UAAU,GAAG,QAAQ,CAAC;AAC9F,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,WAAW,GAAG,eAAe,GAAG,IAAI,GAAG,UAAU,GAAG,QAAQ,CAAC;AAE7F;;;;;;;;GAQG;AACH,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,YAAY,GAAG,YAAY,CAAC;AAEhE;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,4EAA4E;IAC5E,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,4EAA4E;IAC5E,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,4EAA4E;IAC5E,IAAI,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IACxB,6EAA6E;IAC7E,KAAK,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;CAE/C;AAED;;GAEG;AACH,MAAM,WAAW,QAAS,SAAQ,QAAQ;IACxC,oFAAoF;IACpF,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,4EAA4E;IAC5E,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,IAAI,OAAO,CAAC,QAAQ,CAAC,CAAC;CAC3B;AAED,eAAO,MAAM,cAAc,UAAW,GAAG,0BAIP,CAAC;AAEnC,eAAO,MAAM,UAAU,UAAW,GAAG,sBAKlB,CAAC;AAEpB;;;GAGG;AACH,eAAO,MAAM,UAAU,UAAW,GAAG;mBAAwC,QAAQ,WAAW,CAAC;CAOxD,CAAC;AAE1C,eAAO,MAAM,YAAY,UAAW,GAAG,wBAEtC,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,UAAU,GAAG,OAAO,CAAC,YAAY,EAAE,MAAM,CAAC,GAAG,aAAa,CAAC,YAAY,CAAC,CAAC;AAEnG;;;;;;;;GAQG;AACH,wBAAsB,MAAM,CAC1B,KAAK,EAAE,WAAW,GAAG,WAAW,CAAC,WAAW,CAAC,EAC7C,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAChC,OAAO,GAAE,eAAe,GAAG,SAAc,GACxC,OAAO,CAAC,QAAQ,CAAC,CAuBnB;AAoDD,eAAO,MAAM,eAAe,SAAU,GAAG,0BACsD,CAAC;AAEhG;;;GAGG;AACH,eAAO,MAAM,gCAAgC,iHAO5C,CAAC;AAEF,eAAO,MAAM,2BAA2B,iHAKvC,CAAC;AAEF,eAAO,MAAM,UAAU,wDAA6D,QAAQ,QAAQ,CAInG,CAAC"}
|