@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
package/_shims/formdata.mjs
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Disclaimer: modules in _shims aren't intended to be imported by SDK users.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
const _FormData = FormData;
|
|
6
|
-
const _Blob = Blob;
|
|
7
|
-
|
|
8
|
-
const _File =
|
|
9
|
-
typeof File !== 'undefined' ? File : (
|
|
10
|
-
// Bun doesn't implement File yet, so just make a shim that throws a helpful error message
|
|
11
|
-
class File extends Blob {
|
|
12
|
-
constructor() {
|
|
13
|
-
throw new Error(`file uploads aren't supported in this environment yet as 'File' is not defined`);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
);
|
|
17
|
-
|
|
18
|
-
export { _FormData as FormData, _File as File, _Blob as Blob };
|
|
19
|
-
|
|
20
|
-
export const isPolyfilled = false;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Disclaimer: modules in _shims aren't intended to be imported by SDK users.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as fd from 'formdata-node';
|
|
6
|
-
|
|
7
|
-
import type { BlobPart } from '../uploads.js';
|
|
8
|
-
|
|
9
|
-
type EndingType = 'native' | 'transparent';
|
|
10
|
-
|
|
11
|
-
export interface BlobPropertyBag {
|
|
12
|
-
endings?: EndingType;
|
|
13
|
-
/** MIME type, e.g., "text/plain" */
|
|
14
|
-
type?: string;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export interface FilePropertyBag extends BlobPropertyBag {
|
|
18
|
-
lastModified?: number;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
// Use builtin web types if present; else formdata-node types
|
|
22
|
-
|
|
23
|
-
// @ts-ignore
|
|
24
|
-
type _FormData = unknown extends FormData ? fd.FormData : FormData;
|
|
25
|
-
// @ts-ignore
|
|
26
|
-
type _File = unknown extends File ? fd.File : File;
|
|
27
|
-
// @ts-ignore
|
|
28
|
-
type _Blob = unknown extends Blob ? fd.Blob : Blob;
|
|
29
|
-
|
|
30
|
-
declare const _FormData: {
|
|
31
|
-
new (form?: any): _FormData;
|
|
32
|
-
prototype: _FormData;
|
|
33
|
-
};
|
|
34
|
-
declare const _File: {
|
|
35
|
-
new (fileBits: BlobPart[], fileName: string, options?: FilePropertyBag | undefined): _File;
|
|
36
|
-
prototype: _File;
|
|
37
|
-
};
|
|
38
|
-
declare const _Blob: {
|
|
39
|
-
new (blobParts?: BlobPart[] | undefined, options?: BlobPropertyBag | undefined): _Blob;
|
|
40
|
-
prototype: _Blob;
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
export const isPolyfilled = false;
|
|
44
|
-
|
|
45
|
-
export { _FormData as FormData, _File as File, _Blob as Blob };
|
package/_shims/formdata.node.js
DELETED
package/_shims/formdata.node.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Disclaimer: modules in _shims aren't intended to be imported by SDK users.
|
|
3
|
-
*/
|
|
4
|
-
import { FormData } from './formdata.js';
|
|
5
|
-
import type { RequestOptions } from '../core.js';
|
|
6
|
-
export declare function getMultipartRequestOptions<T extends {} = Record<string, unknown>>(
|
|
7
|
-
form: FormData,
|
|
8
|
-
opts: RequestOptions<T>,
|
|
9
|
-
): Promise<RequestOptions<T>>;
|
|
10
|
-
//# sourceMappingURL=getMultipartRequestOptions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getMultipartRequestOptions.d.ts","sourceRoot":"","sources":["../src/_shims/getMultipartRequestOptions.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAG9C,wBAAsB,0BAA0B,CAAC,CAAC,SAAS,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACrF,IAAI,EAAE,QAAQ,EACd,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC,GACtB,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAE5B"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
/**
|
|
3
|
-
* Disclaimer: modules in _shims aren't intended to be imported by SDK users.
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
6
|
-
exports.getMultipartRequestOptions = void 0;
|
|
7
|
-
const uploads_1 = require('../uploads.js');
|
|
8
|
-
async function getMultipartRequestOptions(form, opts) {
|
|
9
|
-
return { ...opts, body: new uploads_1.MultipartBody(form) };
|
|
10
|
-
}
|
|
11
|
-
exports.getMultipartRequestOptions = getMultipartRequestOptions;
|
|
12
|
-
//# sourceMappingURL=getMultipartRequestOptions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getMultipartRequestOptions.js","sourceRoot":"","sources":["../src/_shims/getMultipartRequestOptions.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAIH,2CAA2C;AAEpC,KAAK,UAAU,0BAA0B,CAC9C,IAAc,EACd,IAAuB;IAEvB,OAAO,EAAE,GAAG,IAAI,EAAE,IAAI,EAAE,IAAI,uBAAa,CAAC,IAAI,CAAQ,EAAE,CAAC;AAC3D,CAAC;AALD,gEAKC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Disclaimer: modules in _shims aren't intended to be imported by SDK users.
|
|
3
|
-
*/
|
|
4
|
-
import { MultipartBody } from '../uploads.mjs';
|
|
5
|
-
export async function getMultipartRequestOptions(form, opts) {
|
|
6
|
-
return { ...opts, body: new MultipartBody(form) };
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=getMultipartRequestOptions.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getMultipartRequestOptions.mjs","sourceRoot":"","sources":["../src/_shims/getMultipartRequestOptions.ts"],"names":[],"mappings":"AAAA;;GAEG;OAII,EAAE,aAAa,EAAE;AAExB,MAAM,CAAC,KAAK,UAAU,0BAA0B,CAC9C,IAAc,EACd,IAAuB;IAEvB,OAAO,EAAE,GAAG,IAAI,EAAE,IAAI,EAAE,IAAI,aAAa,CAAC,IAAI,CAAQ,EAAE,CAAC;AAC3D,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Disclaimer: modules in _shims aren't intended to be imported by SDK users.
|
|
3
|
-
*/
|
|
4
|
-
import { FormData } from './formdata.node.js';
|
|
5
|
-
import type { RequestOptions } from '../core.js';
|
|
6
|
-
export declare function getMultipartRequestOptions<T extends {} = Record<string, unknown>>(
|
|
7
|
-
form: FormData,
|
|
8
|
-
opts: RequestOptions<T>,
|
|
9
|
-
): Promise<RequestOptions<T>>;
|
|
10
|
-
//# sourceMappingURL=getMultipartRequestOptions.node.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getMultipartRequestOptions.node.d.ts","sourceRoot":"","sources":["../src/_shims/getMultipartRequestOptions.node.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAK9C,wBAAsB,0BAA0B,CAAC,CAAC,SAAS,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACrF,IAAI,EAAE,QAAQ,EACd,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC,GACtB,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAW5B"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
/**
|
|
3
|
-
* Disclaimer: modules in _shims aren't intended to be imported by SDK users.
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
6
|
-
exports.getMultipartRequestOptions = void 0;
|
|
7
|
-
const node_stream_1 = require('node:stream');
|
|
8
|
-
const form_data_encoder_1 = require('form-data-encoder');
|
|
9
|
-
const uploads_1 = require('../uploads.js');
|
|
10
|
-
async function getMultipartRequestOptions(form, opts) {
|
|
11
|
-
const encoder = new form_data_encoder_1.FormDataEncoder(form);
|
|
12
|
-
const readable = node_stream_1.Readable.from(encoder);
|
|
13
|
-
const body = new uploads_1.MultipartBody(readable);
|
|
14
|
-
const headers = {
|
|
15
|
-
...opts.headers,
|
|
16
|
-
...encoder.headers,
|
|
17
|
-
'Content-Length': encoder.contentLength,
|
|
18
|
-
};
|
|
19
|
-
return { ...opts, body: body, headers };
|
|
20
|
-
}
|
|
21
|
-
exports.getMultipartRequestOptions = getMultipartRequestOptions;
|
|
22
|
-
//# sourceMappingURL=getMultipartRequestOptions.node.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getMultipartRequestOptions.node.js","sourceRoot":"","sources":["../src/_shims/getMultipartRequestOptions.node.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAIH,6CAAuC;AACvC,yDAAoD;AACpD,2CAA2C;AAEpC,KAAK,UAAU,0BAA0B,CAC9C,IAAc,EACd,IAAuB;IAEvB,MAAM,OAAO,GAAG,IAAI,mCAAe,CAAC,IAAI,CAAC,CAAC;IAC1C,MAAM,QAAQ,GAAG,sBAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACxC,MAAM,IAAI,GAAG,IAAI,uBAAa,CAAC,QAAQ,CAAC,CAAC;IACzC,MAAM,OAAO,GAAG;QACd,GAAG,IAAI,CAAC,OAAO;QACf,GAAG,OAAO,CAAC,OAAO;QAClB,gBAAgB,EAAE,OAAO,CAAC,aAAa;KACxC,CAAC;IAEF,OAAO,EAAE,GAAG,IAAI,EAAE,IAAI,EAAE,IAAW,EAAE,OAAO,EAAE,CAAC;AACjD,CAAC;AAdD,gEAcC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Disclaimer: modules in _shims aren't intended to be imported by SDK users.
|
|
3
|
-
*/
|
|
4
|
-
import { Readable } from 'node:stream';
|
|
5
|
-
import { FormDataEncoder } from 'form-data-encoder';
|
|
6
|
-
import { MultipartBody } from '../uploads.mjs';
|
|
7
|
-
export async function getMultipartRequestOptions(form, opts) {
|
|
8
|
-
const encoder = new FormDataEncoder(form);
|
|
9
|
-
const readable = Readable.from(encoder);
|
|
10
|
-
const body = new MultipartBody(readable);
|
|
11
|
-
const headers = {
|
|
12
|
-
...opts.headers,
|
|
13
|
-
...encoder.headers,
|
|
14
|
-
'Content-Length': encoder.contentLength,
|
|
15
|
-
};
|
|
16
|
-
return { ...opts, body: body, headers };
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=getMultipartRequestOptions.node.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getMultipartRequestOptions.node.mjs","sourceRoot":"","sources":["../src/_shims/getMultipartRequestOptions.node.ts"],"names":[],"mappings":"AAAA;;GAEG;OAII,EAAE,QAAQ,EAAE,MAAM,aAAa;OAC/B,EAAE,eAAe,EAAE,MAAM,mBAAmB;OAC5C,EAAE,aAAa,EAAE;AAExB,MAAM,CAAC,KAAK,UAAU,0BAA0B,CAC9C,IAAc,EACd,IAAuB;IAEvB,MAAM,OAAO,GAAG,IAAI,eAAe,CAAC,IAAI,CAAC,CAAC;IAC1C,MAAM,QAAQ,GAAG,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACxC,MAAM,IAAI,GAAG,IAAI,aAAa,CAAC,QAAQ,CAAC,CAAC;IACzC,MAAM,OAAO,GAAG;QACd,GAAG,IAAI,CAAC,OAAO;QACf,GAAG,OAAO,CAAC,OAAO;QAClB,gBAAgB,EAAE,OAAO,CAAC,aAAa;KACxC,CAAC;IAEF,OAAO,EAAE,GAAG,IAAI,EAAE,IAAI,EAAE,IAAW,EAAE,OAAO,EAAE,CAAC;AACjD,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Disclaimer: modules in _shims aren't intended to be imported by SDK users.
|
|
3
|
-
*/
|
|
4
|
-
export declare class Readable {
|
|
5
|
-
readable: boolean;
|
|
6
|
-
readonly readableEnded: boolean;
|
|
7
|
-
readonly readableFlowing: boolean | null;
|
|
8
|
-
readonly readableHighWaterMark: number;
|
|
9
|
-
readonly readableLength: number;
|
|
10
|
-
readonly readableObjectMode: boolean;
|
|
11
|
-
destroyed: boolean;
|
|
12
|
-
read(size?: number): any;
|
|
13
|
-
pause(): this;
|
|
14
|
-
resume(): this;
|
|
15
|
-
isPaused(): boolean;
|
|
16
|
-
destroy(error?: Error): this;
|
|
17
|
-
[Symbol.asyncIterator](): AsyncIterableIterator<any>;
|
|
18
|
-
}
|
|
19
|
-
export declare class FsReadStream extends Readable {
|
|
20
|
-
path: {};
|
|
21
|
-
}
|
|
22
|
-
export declare function isFsReadStream(value: any): value is FsReadStream;
|
|
23
|
-
//# sourceMappingURL=node-readable.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"node-readable.d.ts","sourceRoot":"","sources":["../src/_shims/node-readable.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,MAAM,CAAC,OAAO,OAAO,QAAQ;IAC3B,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAC;IAChC,QAAQ,CAAC,eAAe,EAAE,OAAO,GAAG,IAAI,CAAC;IACzC,QAAQ,CAAC,qBAAqB,EAAE,MAAM,CAAC;IACvC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,kBAAkB,EAAE,OAAO,CAAC;IACrC,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,GAAG;IACxB,KAAK,IAAI,IAAI;IACb,MAAM,IAAI,IAAI;IACd,QAAQ,IAAI,OAAO;IACnB,OAAO,CAAC,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI;IAC5B,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,qBAAqB,CAAC,GAAG,CAAC;CACrD;AAED,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,QAAQ;IAChD,IAAI,EAAE,EAAE,CAAC;CACV;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,YAAY,CAEhE"}
|
package/_shims/node-readable.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
/**
|
|
3
|
-
* Disclaimer: modules in _shims aren't intended to be imported by SDK users.
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
6
|
-
exports.isFsReadStream = void 0;
|
|
7
|
-
function isFsReadStream(value) {
|
|
8
|
-
return false;
|
|
9
|
-
}
|
|
10
|
-
exports.isFsReadStream = isFsReadStream;
|
|
11
|
-
//# sourceMappingURL=node-readable.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"node-readable.js","sourceRoot":"","sources":["../src/_shims/node-readable.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAyBH,SAAgB,cAAc,CAAC,KAAU;IACvC,OAAO,KAAK,CAAC;AACf,CAAC;AAFD,wCAEC"}
|
package/_shims/node-readable.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"node-readable.mjs","sourceRoot":"","sources":["../src/_shims/node-readable.ts"],"names":[],"mappings":"AAAA;;GAEG;AAyBH,MAAM,UAAU,cAAc,CAAC,KAAU;IACvC,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Disclaimer: modules in _shims aren't intended to be imported by SDK users.
|
|
3
|
-
*/
|
|
4
|
-
export type { Readable } from 'node:stream';
|
|
5
|
-
import { ReadStream as FsReadStream } from 'node:fs';
|
|
6
|
-
export type { FsReadStream };
|
|
7
|
-
export declare function isFsReadStream(value: any): value is FsReadStream;
|
|
8
|
-
//# sourceMappingURL=node-readable.node.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"node-readable.node.d.ts","sourceRoot":"","sources":["../src/_shims/node-readable.node.ts"],"names":[],"mappings":";AAAA;;GAEG;AACH,YAAY,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,UAAU,IAAI,YAAY,EAAE,MAAM,SAAS,CAAC;AACrD,YAAY,EAAE,YAAY,EAAE,CAAC;AAE7B,wBAAgB,cAAc,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,YAAY,CAEhE"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3
|
-
exports.isFsReadStream = void 0;
|
|
4
|
-
const node_fs_1 = require('node:fs');
|
|
5
|
-
function isFsReadStream(value) {
|
|
6
|
-
return value instanceof node_fs_1.ReadStream;
|
|
7
|
-
}
|
|
8
|
-
exports.isFsReadStream = isFsReadStream;
|
|
9
|
-
//# sourceMappingURL=node-readable.node.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"node-readable.node.js","sourceRoot":"","sources":["../src/_shims/node-readable.node.ts"],"names":[],"mappings":";;;AAIA,qCAAqD;AAGrD,SAAgB,cAAc,CAAC,KAAU;IACvC,OAAO,KAAK,YAAY,oBAAY,CAAC;AACvC,CAAC;AAFD,wCAEC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"node-readable.node.mjs","sourceRoot":"","sources":["../src/_shims/node-readable.node.ts"],"names":[],"mappings":"OAIO,EAAE,UAAU,IAAI,YAAY,EAAE,MAAM,SAAS;AAGpD,MAAM,UAAU,cAAc,CAAC,KAAU;IACvC,OAAO,KAAK,YAAY,YAAY,CAAC;AACvC,CAAC"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import * as Core from '@tryfinch/finch-api/core';
|
|
2
|
-
import { APIResource } from '@tryfinch/finch-api/resource';
|
|
3
|
-
import * as Stages from '@tryfinch/finch-api/resources/ats/stages';
|
|
4
|
-
import * as API from './index.js';
|
|
5
|
-
import { ApplicationsPage, ApplicationsPageParams } from '@tryfinch/finch-api/pagination';
|
|
6
|
-
export declare class Applications extends APIResource {
|
|
7
|
-
/**
|
|
8
|
-
* Gets an application from an organization.
|
|
9
|
-
*/
|
|
10
|
-
retrieve(applicationId: string, options?: Core.RequestOptions): Core.APIPromise<Application>;
|
|
11
|
-
/**
|
|
12
|
-
* Gets all of an organization's applications.
|
|
13
|
-
*/
|
|
14
|
-
list(
|
|
15
|
-
query?: ApplicationListParams,
|
|
16
|
-
options?: Core.RequestOptions,
|
|
17
|
-
): Core.PagePromise<ApplicationsPage, Application>;
|
|
18
|
-
list(options?: Core.RequestOptions): Core.PagePromise<ApplicationsPage, Application>;
|
|
19
|
-
}
|
|
20
|
-
export interface Application {
|
|
21
|
-
id: string;
|
|
22
|
-
candidate_id: string;
|
|
23
|
-
job_id: string;
|
|
24
|
-
offer_id: string | null;
|
|
25
|
-
rejected_at: string | null;
|
|
26
|
-
rejected_reason: Application.RejectedReason | null;
|
|
27
|
-
stage: Stages.Stage | null;
|
|
28
|
-
}
|
|
29
|
-
export declare namespace Application {
|
|
30
|
-
interface RejectedReason {
|
|
31
|
-
text?: string | null;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
export interface ApplicationListParams extends ApplicationsPageParams {}
|
|
35
|
-
export declare namespace Applications {
|
|
36
|
-
export import Application = API.Application;
|
|
37
|
-
export import ApplicationListParams = API.ApplicationListParams;
|
|
38
|
-
}
|
|
39
|
-
//# sourceMappingURL=applications.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"applications.d.ts","sourceRoot":"","sources":["../../src/resources/ats/applications.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D,OAAO,KAAK,MAAM,MAAM,0CAA0C,CAAC;AACnE,OAAO,KAAK,GAAG,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAE1F,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,QAAQ,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC;IAI5F;;OAEG;IACH,IAAI,CACF,KAAK,CAAC,EAAE,qBAAqB,EAC7B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,WAAW,CAAC,gBAAgB,EAAE,WAAW,CAAC;IAClD,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,WAAW,CAAC,gBAAgB,EAAE,WAAW,CAAC;CAUrF;AAED,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IAEX,YAAY,EAAE,MAAM,CAAC;IAErB,MAAM,EAAE,MAAM,CAAC;IAEf,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAExB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B,eAAe,EAAE,WAAW,CAAC,cAAc,GAAG,IAAI,CAAC;IAEnD,KAAK,EAAE,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC;CAC5B;AAED,yBAAiB,WAAW,CAAC;IAC3B,UAAiB,cAAc;QAC7B,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KACtB;CACF;AAED,MAAM,WAAW,qBAAsB,SAAQ,sBAAsB;CAAG;AAExE,yBAAiB,YAAY,CAAC;IAC5B,MAAM,QAAQ,WAAW,GAAG,GAAG,CAAC,WAAW,CAAC;IAC5C,MAAM,QAAQ,qBAAqB,GAAG,GAAG,CAAC,qBAAqB,CAAC;CACjE"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless.
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
exports.Applications = void 0;
|
|
5
|
-
const resource_1 = require('@tryfinch/finch-api/resource');
|
|
6
|
-
const core_1 = require('@tryfinch/finch-api/core');
|
|
7
|
-
const pagination_1 = require('@tryfinch/finch-api/pagination');
|
|
8
|
-
class Applications extends resource_1.APIResource {
|
|
9
|
-
/**
|
|
10
|
-
* Gets an application from an organization.
|
|
11
|
-
*/
|
|
12
|
-
retrieve(applicationId, options) {
|
|
13
|
-
return this.get(`/ats/applications/${applicationId}`, options);
|
|
14
|
-
}
|
|
15
|
-
list(query = {}, options) {
|
|
16
|
-
if ((0, core_1.isRequestOptions)(query)) {
|
|
17
|
-
return this.list({}, query);
|
|
18
|
-
}
|
|
19
|
-
return this.getAPIList('/ats/applications', pagination_1.ApplicationsPage, { query, ...options });
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
exports.Applications = Applications;
|
|
23
|
-
(function (Applications) {})((Applications = exports.Applications || (exports.Applications = {})));
|
|
24
|
-
//# sourceMappingURL=applications.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"applications.js","sourceRoot":"","sources":["../../src/resources/ats/applications.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAGrD,2DAA2D;AAC3D,mDAA4D;AAG5D,+DAA0F;AAE1F,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;OAEG;IACH,QAAQ,CAAC,aAAqB,EAAE,OAA6B;QAC3D,OAAO,IAAI,CAAC,GAAG,CAAC,qBAAqB,aAAa,EAAE,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAUD,IAAI,CACF,QAAqD,EAAE,EACvD,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,UAAU,CAAC,mBAAmB,EAAE,6BAAgB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;CACF;AAzBD,oCAyBC;AA0BD,WAAiB,YAAY;AAG7B,CAAC,EAHgB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAG5B"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless.
|
|
2
|
-
import { APIResource } from '@tryfinch/finch-api/resource';
|
|
3
|
-
import { isRequestOptions } from '@tryfinch/finch-api/core';
|
|
4
|
-
import { ApplicationsPage } from '@tryfinch/finch-api/pagination';
|
|
5
|
-
export class Applications extends APIResource {
|
|
6
|
-
/**
|
|
7
|
-
* Gets an application from an organization.
|
|
8
|
-
*/
|
|
9
|
-
retrieve(applicationId, options) {
|
|
10
|
-
return this.get(`/ats/applications/${applicationId}`, options);
|
|
11
|
-
}
|
|
12
|
-
list(query = {}, options) {
|
|
13
|
-
if (isRequestOptions(query)) {
|
|
14
|
-
return this.list({}, query);
|
|
15
|
-
}
|
|
16
|
-
return this.getAPIList('/ats/applications', ApplicationsPage, { query, ...options });
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
(function (Applications) {})(Applications || (Applications = {}));
|
|
20
|
-
//# sourceMappingURL=applications.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"applications.mjs","sourceRoot":"","sources":["../../src/resources/ats/applications.ts"],"names":[],"mappings":"AAAA,qDAAqD;OAG9C,EAAE,WAAW,EAAE,MAAM,8BAA8B;OACnD,EAAE,gBAAgB,EAAE,MAAM,0BAA0B;OAGpD,EAAE,gBAAgB,EAA0B,MAAM,gCAAgC;AAEzF,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,QAAQ,CAAC,aAAqB,EAAE,OAA6B;QAC3D,OAAO,IAAI,CAAC,GAAG,CAAC,qBAAqB,aAAa,EAAE,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAUD,IAAI,CACF,QAAqD,EAAE,EACvD,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,UAAU,CAAC,mBAAmB,EAAE,gBAAgB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;CACF;AA0BD,WAAiB,YAAY;AAG7B,CAAC,EAHgB,YAAY,KAAZ,YAAY,QAG5B"}
|
package/resources/ats/ats.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { APIResource } from '@tryfinch/finch-api/resource';
|
|
2
|
-
import { Candidates } from './candidates.js';
|
|
3
|
-
import { Applications } from './applications.js';
|
|
4
|
-
import { Stages } from './stages.js';
|
|
5
|
-
import { Jobs } from './jobs.js';
|
|
6
|
-
import { Offers } from './offers.js';
|
|
7
|
-
import * as API from './index.js';
|
|
8
|
-
export declare class ATS extends APIResource {
|
|
9
|
-
candidates: Candidates;
|
|
10
|
-
applications: Applications;
|
|
11
|
-
stages: Stages;
|
|
12
|
-
jobs: Jobs;
|
|
13
|
-
offers: Offers;
|
|
14
|
-
}
|
|
15
|
-
export declare namespace ATS {
|
|
16
|
-
export import Candidates = API.Candidates;
|
|
17
|
-
export import Candidate = API.Candidate;
|
|
18
|
-
export import CandidateListParams = API.CandidateListParams;
|
|
19
|
-
export import Applications = API.Applications;
|
|
20
|
-
export import Application = API.Application;
|
|
21
|
-
export import ApplicationListParams = API.ApplicationListParams;
|
|
22
|
-
export import Stages = API.Stages;
|
|
23
|
-
export import Stage = API.Stage;
|
|
24
|
-
export import StagesSinglePage = API.StagesSinglePage;
|
|
25
|
-
export import Jobs = API.Jobs;
|
|
26
|
-
export import Job = API.Job;
|
|
27
|
-
export import JobListParams = API.JobListParams;
|
|
28
|
-
export import Offers = API.Offers;
|
|
29
|
-
export import Offer = API.Offer;
|
|
30
|
-
export import OfferListParams = API.OfferListParams;
|
|
31
|
-
}
|
|
32
|
-
//# sourceMappingURL=ats.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ats.d.ts","sourceRoot":"","sources":["../../src/resources/ats/ats.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,KAAK,GAAG,MAAM,SAAS,CAAC;AAE/B,qBAAa,GAAI,SAAQ,WAAW;IAClC,UAAU,EAAE,UAAU,CAA+B;IACrD,YAAY,EAAE,YAAY,CAAiC;IAC3D,MAAM,EAAE,MAAM,CAA2B;IACzC,IAAI,EAAE,IAAI,CAAyB;IACnC,MAAM,EAAE,MAAM,CAA2B;CAC1C;AAED,yBAAiB,GAAG,CAAC;IACnB,MAAM,QAAQ,UAAU,GAAG,GAAG,CAAC,UAAU,CAAC;IAC1C,MAAM,QAAQ,SAAS,GAAG,GAAG,CAAC,SAAS,CAAC;IACxC,MAAM,QAAQ,mBAAmB,GAAG,GAAG,CAAC,mBAAmB,CAAC;IAE5D,MAAM,QAAQ,YAAY,GAAG,GAAG,CAAC,YAAY,CAAC;IAC9C,MAAM,QAAQ,WAAW,GAAG,GAAG,CAAC,WAAW,CAAC;IAC5C,MAAM,QAAQ,qBAAqB,GAAG,GAAG,CAAC,qBAAqB,CAAC;IAEhE,MAAM,QAAQ,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC;IAClC,MAAM,QAAQ,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC;IAChC,MAAM,QAAQ,gBAAgB,GAAG,GAAG,CAAC,gBAAgB,CAAC;IAEtD,MAAM,QAAQ,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC;IAC9B,MAAM,QAAQ,GAAG,GAAG,GAAG,CAAC,GAAG,CAAC;IAC5B,MAAM,QAAQ,aAAa,GAAG,GAAG,CAAC,aAAa,CAAC;IAEhD,MAAM,QAAQ,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC;IAClC,MAAM,QAAQ,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC;IAChC,MAAM,QAAQ,eAAe,GAAG,GAAG,CAAC,eAAe,CAAC;CACrD"}
|
package/resources/ats/ats.js
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless.
|
|
3
|
-
var __createBinding =
|
|
4
|
-
(this && this.__createBinding) ||
|
|
5
|
-
(Object.create ?
|
|
6
|
-
function (o, m, k, k2) {
|
|
7
|
-
if (k2 === undefined) k2 = k;
|
|
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 });
|
|
28
|
-
}
|
|
29
|
-
: function (o, v) {
|
|
30
|
-
o['default'] = v;
|
|
31
|
-
});
|
|
32
|
-
var __importStar =
|
|
33
|
-
(this && this.__importStar) ||
|
|
34
|
-
function (mod) {
|
|
35
|
-
if (mod && mod.__esModule) return mod;
|
|
36
|
-
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);
|
|
40
|
-
__setModuleDefault(result, mod);
|
|
41
|
-
return result;
|
|
42
|
-
};
|
|
43
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
44
|
-
exports.ATS = void 0;
|
|
45
|
-
const resource_1 = require('@tryfinch/finch-api/resource');
|
|
46
|
-
const candidates_1 = require('./candidates.js');
|
|
47
|
-
const applications_1 = require('./applications.js');
|
|
48
|
-
const stages_1 = require('./stages.js');
|
|
49
|
-
const jobs_1 = require('./jobs.js');
|
|
50
|
-
const offers_1 = require('./offers.js');
|
|
51
|
-
const API = __importStar(require('./index.js'));
|
|
52
|
-
class ATS extends resource_1.APIResource {
|
|
53
|
-
constructor() {
|
|
54
|
-
super(...arguments);
|
|
55
|
-
this.candidates = new candidates_1.Candidates(this.client);
|
|
56
|
-
this.applications = new applications_1.Applications(this.client);
|
|
57
|
-
this.stages = new stages_1.Stages(this.client);
|
|
58
|
-
this.jobs = new jobs_1.Jobs(this.client);
|
|
59
|
-
this.offers = new offers_1.Offers(this.client);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
exports.ATS = ATS;
|
|
63
|
-
(function (ATS) {
|
|
64
|
-
ATS.Candidates = API.Candidates;
|
|
65
|
-
ATS.Applications = API.Applications;
|
|
66
|
-
ATS.Stages = API.Stages;
|
|
67
|
-
ATS.StagesSinglePage = API.StagesSinglePage;
|
|
68
|
-
ATS.Jobs = API.Jobs;
|
|
69
|
-
ATS.Offers = API.Offers;
|
|
70
|
-
})((ATS = exports.ATS || (exports.ATS = {})));
|
|
71
|
-
//# sourceMappingURL=ats.js.map
|
package/resources/ats/ats.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ats.js","sourceRoot":"","sources":["../../src/resources/ats/ats.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;;;;;;;;;;;;;;;;;;;;;;;;AAErD,2DAA2D;AAC3D,gDAA0C;AAC1C,oDAA8C;AAC9C,wCAAkC;AAClC,oCAA8B;AAC9B,wCAAkC;AAClC,gDAA+B;AAE/B,MAAa,GAAI,SAAQ,sBAAW;IAApC;;QACE,eAAU,GAAe,IAAI,uBAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACrD,iBAAY,GAAiB,IAAI,2BAAY,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC3D,WAAM,GAAW,IAAI,eAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACzC,SAAI,GAAS,IAAI,WAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACnC,WAAM,GAAW,IAAI,eAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC3C,CAAC;CAAA;AAND,kBAMC;AAED,WAAiB,GAAG;IACJ,cAAU,GAAG,GAAG,CAAC,UAAU,CAAC;IAI5B,gBAAY,GAAG,GAAG,CAAC,YAAY,CAAC;IAIhC,UAAM,GAAG,GAAG,CAAC,MAAM,CAAC;IAEpB,oBAAgB,GAAG,GAAG,CAAC,gBAAgB,CAAC;IAExC,QAAI,GAAG,GAAG,CAAC,IAAI,CAAC;IAIhB,UAAM,GAAG,GAAG,CAAC,MAAM,CAAC;AAGpC,CAAC,EApBgB,GAAG,GAAH,WAAG,KAAH,WAAG,QAoBnB"}
|
package/resources/ats/ats.mjs
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless.
|
|
2
|
-
import { APIResource } from '@tryfinch/finch-api/resource';
|
|
3
|
-
import { Candidates } from './candidates.mjs';
|
|
4
|
-
import { Applications } from './applications.mjs';
|
|
5
|
-
import { Stages } from './stages.mjs';
|
|
6
|
-
import { Jobs } from './jobs.mjs';
|
|
7
|
-
import { Offers } from './offers.mjs';
|
|
8
|
-
import * as API from './index.mjs';
|
|
9
|
-
export class ATS extends APIResource {
|
|
10
|
-
constructor() {
|
|
11
|
-
super(...arguments);
|
|
12
|
-
this.candidates = new Candidates(this.client);
|
|
13
|
-
this.applications = new Applications(this.client);
|
|
14
|
-
this.stages = new Stages(this.client);
|
|
15
|
-
this.jobs = new Jobs(this.client);
|
|
16
|
-
this.offers = new Offers(this.client);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
(function (ATS) {
|
|
20
|
-
ATS.Candidates = API.Candidates;
|
|
21
|
-
ATS.Applications = API.Applications;
|
|
22
|
-
ATS.Stages = API.Stages;
|
|
23
|
-
ATS.StagesSinglePage = API.StagesSinglePage;
|
|
24
|
-
ATS.Jobs = API.Jobs;
|
|
25
|
-
ATS.Offers = API.Offers;
|
|
26
|
-
})(ATS || (ATS = {}));
|
|
27
|
-
//# sourceMappingURL=ats.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ats.mjs","sourceRoot":"","sources":["../../src/resources/ats/ats.ts"],"names":[],"mappings":"AAAA,qDAAqD;OAE9C,EAAE,WAAW,EAAE,MAAM,8BAA8B;OACnD,EAAE,UAAU,EAAE;OACd,EAAE,YAAY,EAAE;OAChB,EAAE,MAAM,EAAE;OACV,EAAE,IAAI,EAAE;OACR,EAAE,MAAM,EAAE;OACV,KAAK,GAAG;AAEf,MAAM,OAAO,GAAI,SAAQ,WAAW;IAApC;;QACE,eAAU,GAAe,IAAI,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACrD,iBAAY,GAAiB,IAAI,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC3D,WAAM,GAAW,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACzC,SAAI,GAAS,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACnC,WAAM,GAAW,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC3C,CAAC;CAAA;AAED,WAAiB,GAAG;IACJ,cAAU,GAAG,GAAG,CAAC,UAAU,CAAC;IAI5B,gBAAY,GAAG,GAAG,CAAC,YAAY,CAAC;IAIhC,UAAM,GAAG,GAAG,CAAC,MAAM,CAAC;IAEpB,oBAAgB,GAAG,GAAG,CAAC,gBAAgB,CAAC;IAExC,QAAI,GAAG,GAAG,CAAC,IAAI,CAAC;IAIhB,UAAM,GAAG,GAAG,CAAC,MAAM,CAAC;AAGpC,CAAC,EApBgB,GAAG,KAAH,GAAG,QAoBnB"}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import * as Core from '@tryfinch/finch-api/core';
|
|
2
|
-
import { APIResource } from '@tryfinch/finch-api/resource';
|
|
3
|
-
import * as API from './index.js';
|
|
4
|
-
import { CandidatesPage, CandidatesPageParams } from '@tryfinch/finch-api/pagination';
|
|
5
|
-
export declare class Candidates extends APIResource {
|
|
6
|
-
/**
|
|
7
|
-
* Gets a candidate from an organization. A candidate represents an individual
|
|
8
|
-
* associated with one or more applications.
|
|
9
|
-
*/
|
|
10
|
-
retrieve(candidateId: string, options?: Core.RequestOptions): Core.APIPromise<Candidate>;
|
|
11
|
-
/**
|
|
12
|
-
* Gets all of an organization's candidates. A candidate represents an individual
|
|
13
|
-
* associated with one or more applications.
|
|
14
|
-
*/
|
|
15
|
-
list(
|
|
16
|
-
query?: CandidateListParams,
|
|
17
|
-
options?: Core.RequestOptions,
|
|
18
|
-
): Core.PagePromise<CandidatesPage, Candidate>;
|
|
19
|
-
list(options?: Core.RequestOptions): Core.PagePromise<CandidatesPage, Candidate>;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* A candidate represents an individual associated with one or more applications.
|
|
23
|
-
*/
|
|
24
|
-
export interface Candidate {
|
|
25
|
-
id: string;
|
|
26
|
-
/**
|
|
27
|
-
* Array of Finch uuids corresponding to `application`s for this individual
|
|
28
|
-
*/
|
|
29
|
-
application_ids: Array<string>;
|
|
30
|
-
created_at: string;
|
|
31
|
-
emails: Array<Candidate.Email>;
|
|
32
|
-
first_name: string | null;
|
|
33
|
-
full_name: string | null;
|
|
34
|
-
last_activity_at: string;
|
|
35
|
-
last_name: string | null;
|
|
36
|
-
phone_numbers: Array<Candidate.PhoneNumber>;
|
|
37
|
-
}
|
|
38
|
-
export declare namespace Candidate {
|
|
39
|
-
interface Email {
|
|
40
|
-
data?: string | null;
|
|
41
|
-
type?: string | null;
|
|
42
|
-
}
|
|
43
|
-
interface PhoneNumber {
|
|
44
|
-
data?: string | null;
|
|
45
|
-
type?: string | null;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
export interface CandidateListParams extends CandidatesPageParams {}
|
|
49
|
-
export declare namespace Candidates {
|
|
50
|
-
export import Candidate = API.Candidate;
|
|
51
|
-
export import CandidateListParams = API.CandidateListParams;
|
|
52
|
-
}
|
|
53
|
-
//# sourceMappingURL=candidates.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"candidates.d.ts","sourceRoot":"","sources":["../../src/resources/ats/candidates.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D,OAAO,KAAK,GAAG,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAEtF,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;OAGG;IACH,QAAQ,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC;IAIxF;;;OAGG;IACH,IAAI,CACF,KAAK,CAAC,EAAE,mBAAmB,EAC3B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,WAAW,CAAC,cAAc,EAAE,SAAS,CAAC;IAC9C,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,WAAW,CAAC,cAAc,EAAE,SAAS,CAAC;CAUjF;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,eAAe,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE/B,UAAU,EAAE,MAAM,CAAC;IAEnB,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IAE/B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB,gBAAgB,EAAE,MAAM,CAAC;IAEzB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB,aAAa,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;CAC7C;AAED,yBAAiB,SAAS,CAAC;IACzB,UAAiB,KAAK;QACpB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAErB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KACtB;IAED,UAAiB,WAAW;QAC1B,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAErB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KACtB;CACF;AAED,MAAM,WAAW,mBAAoB,SAAQ,oBAAoB;CAAG;AAEpE,yBAAiB,UAAU,CAAC;IAC1B,MAAM,QAAQ,SAAS,GAAG,GAAG,CAAC,SAAS,CAAC;IACxC,MAAM,QAAQ,mBAAmB,GAAG,GAAG,CAAC,mBAAmB,CAAC;CAC7D"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless.
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
exports.Candidates = void 0;
|
|
5
|
-
const resource_1 = require('@tryfinch/finch-api/resource');
|
|
6
|
-
const core_1 = require('@tryfinch/finch-api/core');
|
|
7
|
-
const pagination_1 = require('@tryfinch/finch-api/pagination');
|
|
8
|
-
class Candidates extends resource_1.APIResource {
|
|
9
|
-
/**
|
|
10
|
-
* Gets a candidate from an organization. A candidate represents an individual
|
|
11
|
-
* associated with one or more applications.
|
|
12
|
-
*/
|
|
13
|
-
retrieve(candidateId, options) {
|
|
14
|
-
return this.get(`/ats/candidates/${candidateId}`, options);
|
|
15
|
-
}
|
|
16
|
-
list(query = {}, options) {
|
|
17
|
-
if ((0, core_1.isRequestOptions)(query)) {
|
|
18
|
-
return this.list({}, query);
|
|
19
|
-
}
|
|
20
|
-
return this.getAPIList('/ats/candidates', pagination_1.CandidatesPage, { query, ...options });
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
exports.Candidates = Candidates;
|
|
24
|
-
(function (Candidates) {})((Candidates = exports.Candidates || (exports.Candidates = {})));
|
|
25
|
-
//# sourceMappingURL=candidates.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"candidates.js","sourceRoot":"","sources":["../../src/resources/ats/candidates.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAGrD,2DAA2D;AAC3D,mDAA4D;AAE5D,+DAAsF;AAEtF,MAAa,UAAW,SAAQ,sBAAW;IACzC;;;OAGG;IACH,QAAQ,CAAC,WAAmB,EAAE,OAA6B;QACzD,OAAO,IAAI,CAAC,GAAG,CAAC,mBAAmB,WAAW,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;IAWD,IAAI,CACF,QAAmD,EAAE,EACrD,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,UAAU,CAAC,iBAAiB,EAAE,2BAAc,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnF,CAAC;CACF;AA3BD,gCA2BC;AA4CD,WAAiB,UAAU;AAG3B,CAAC,EAHgB,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAG1B"}
|