@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,21 +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 { CandidatesPage } from '@tryfinch/finch-api/pagination';
|
|
5
|
-
export 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, options) {
|
|
11
|
-
return this.get(`/ats/candidates/${candidateId}`, options);
|
|
12
|
-
}
|
|
13
|
-
list(query = {}, options) {
|
|
14
|
-
if (isRequestOptions(query)) {
|
|
15
|
-
return this.list({}, query);
|
|
16
|
-
}
|
|
17
|
-
return this.getAPIList('/ats/candidates', CandidatesPage, { query, ...options });
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
(function (Candidates) {})(Candidates || (Candidates = {}));
|
|
21
|
-
//# sourceMappingURL=candidates.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"candidates.mjs","sourceRoot":"","sources":["../../src/resources/ats/candidates.ts"],"names":[],"mappings":"AAAA,qDAAqD;OAG9C,EAAE,WAAW,EAAE,MAAM,8BAA8B;OACnD,EAAE,gBAAgB,EAAE,MAAM,0BAA0B;OAEpD,EAAE,cAAc,EAAwB,MAAM,gCAAgC;AAErF,MAAM,OAAO,UAAW,SAAQ,WAAW;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,gBAAgB,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,UAAU,CAAC,iBAAiB,EAAE,cAAc,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnF,CAAC;CACF;AA4CD,WAAiB,UAAU;AAG3B,CAAC,EAHgB,UAAU,KAAV,UAAU,QAG1B"}
|
package/resources/ats/index.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { ATS } from './ats.js';
|
|
2
|
-
export { Application, ApplicationListParams, Applications } from './applications.js';
|
|
3
|
-
export { Candidate, CandidateListParams, Candidates } from './candidates.js';
|
|
4
|
-
export { Job, JobListParams, Jobs } from './jobs.js';
|
|
5
|
-
export { Offer, OfferListParams, Offers } from './offers.js';
|
|
6
|
-
export { Stage, StagesSinglePage, Stages } from './stages.js';
|
|
7
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/ats/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,WAAW,EAAE,qBAAqB,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAClF,OAAO,EAAE,SAAS,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1E,OAAO,EAAE,GAAG,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAC1D,OAAO,EAAE,KAAK,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC"}
|
package/resources/ats/index.js
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless.
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
exports.Stages =
|
|
5
|
-
exports.StagesSinglePage =
|
|
6
|
-
exports.Offers =
|
|
7
|
-
exports.Jobs =
|
|
8
|
-
exports.Candidates =
|
|
9
|
-
exports.Applications =
|
|
10
|
-
exports.ATS =
|
|
11
|
-
void 0;
|
|
12
|
-
var ats_1 = require('./ats.js');
|
|
13
|
-
Object.defineProperty(exports, 'ATS', {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: function () {
|
|
16
|
-
return ats_1.ATS;
|
|
17
|
-
},
|
|
18
|
-
});
|
|
19
|
-
var applications_1 = require('./applications.js');
|
|
20
|
-
Object.defineProperty(exports, 'Applications', {
|
|
21
|
-
enumerable: true,
|
|
22
|
-
get: function () {
|
|
23
|
-
return applications_1.Applications;
|
|
24
|
-
},
|
|
25
|
-
});
|
|
26
|
-
var candidates_1 = require('./candidates.js');
|
|
27
|
-
Object.defineProperty(exports, 'Candidates', {
|
|
28
|
-
enumerable: true,
|
|
29
|
-
get: function () {
|
|
30
|
-
return candidates_1.Candidates;
|
|
31
|
-
},
|
|
32
|
-
});
|
|
33
|
-
var jobs_1 = require('./jobs.js');
|
|
34
|
-
Object.defineProperty(exports, 'Jobs', {
|
|
35
|
-
enumerable: true,
|
|
36
|
-
get: function () {
|
|
37
|
-
return jobs_1.Jobs;
|
|
38
|
-
},
|
|
39
|
-
});
|
|
40
|
-
var offers_1 = require('./offers.js');
|
|
41
|
-
Object.defineProperty(exports, 'Offers', {
|
|
42
|
-
enumerable: true,
|
|
43
|
-
get: function () {
|
|
44
|
-
return offers_1.Offers;
|
|
45
|
-
},
|
|
46
|
-
});
|
|
47
|
-
var stages_1 = require('./stages.js');
|
|
48
|
-
Object.defineProperty(exports, 'StagesSinglePage', {
|
|
49
|
-
enumerable: true,
|
|
50
|
-
get: function () {
|
|
51
|
-
return stages_1.StagesSinglePage;
|
|
52
|
-
},
|
|
53
|
-
});
|
|
54
|
-
Object.defineProperty(exports, 'Stages', {
|
|
55
|
-
enumerable: true,
|
|
56
|
-
get: function () {
|
|
57
|
-
return stages_1.Stages;
|
|
58
|
-
},
|
|
59
|
-
});
|
|
60
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/ats/index.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAErD,gCAA4B;AAAnB,0FAAA,GAAG,OAAA;AACZ,kDAAkF;AAArC,4GAAA,YAAY,OAAA;AACzD,8CAA0E;AAAjC,wGAAA,UAAU,OAAA;AACnD,kCAAkD;AAArB,4FAAA,IAAI,OAAA;AACjC,sCAA0D;AAAzB,gGAAA,MAAM,OAAA;AACvC,sCAA2D;AAA3C,0GAAA,gBAAgB,OAAA;AAAE,gGAAA,MAAM,OAAA"}
|
package/resources/ats/index.mjs
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless.
|
|
2
|
-
export { ATS } from './ats.mjs';
|
|
3
|
-
export { Applications } from './applications.mjs';
|
|
4
|
-
export { Candidates } from './candidates.mjs';
|
|
5
|
-
export { Jobs } from './jobs.mjs';
|
|
6
|
-
export { Offers } from './offers.mjs';
|
|
7
|
-
export { StagesSinglePage, Stages } from './stages.mjs';
|
|
8
|
-
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/ats/index.ts"],"names":[],"mappings":"AAAA,qDAAqD;OAE9C,EAAE,GAAG,EAAE;OACP,EAAsC,YAAY,EAAE;OACpD,EAAkC,UAAU,EAAE;OAC9C,EAAsB,IAAI,EAAE;OAC5B,EAA0B,MAAM,EAAE;OAClC,EAAS,gBAAgB,EAAE,MAAM,EAAE"}
|
package/resources/ats/jobs.d.ts
DELETED
|
@@ -1,47 +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 { JobsPage, JobsPageParams } from '@tryfinch/finch-api/pagination';
|
|
5
|
-
export declare class Jobs extends APIResource {
|
|
6
|
-
/**
|
|
7
|
-
* Gets a job from an organization.
|
|
8
|
-
*/
|
|
9
|
-
retrieve(jobId: string, options?: Core.RequestOptions): Core.APIPromise<Job>;
|
|
10
|
-
/**
|
|
11
|
-
* Gets all of an organization's jobs.
|
|
12
|
-
*/
|
|
13
|
-
list(query?: JobListParams, options?: Core.RequestOptions): Core.PagePromise<JobsPage, Job>;
|
|
14
|
-
list(options?: Core.RequestOptions): Core.PagePromise<JobsPage, Job>;
|
|
15
|
-
}
|
|
16
|
-
export interface Job {
|
|
17
|
-
id: string;
|
|
18
|
-
closed_at: string | null;
|
|
19
|
-
created_at: string | null;
|
|
20
|
-
department: Job.Department;
|
|
21
|
-
hiring_team: Job.HiringTeam;
|
|
22
|
-
name: string | null;
|
|
23
|
-
status: 'open' | 'closed' | 'on_hold' | 'draft' | 'archived' | null;
|
|
24
|
-
}
|
|
25
|
-
export declare namespace Job {
|
|
26
|
-
interface Department {
|
|
27
|
-
name?: string | null;
|
|
28
|
-
}
|
|
29
|
-
interface HiringTeam {
|
|
30
|
-
hiring_managers?: Array<HiringTeam.HiringManager> | null;
|
|
31
|
-
recruiters?: Array<HiringTeam.Recruiter> | null;
|
|
32
|
-
}
|
|
33
|
-
namespace HiringTeam {
|
|
34
|
-
interface HiringManager {
|
|
35
|
-
name?: string;
|
|
36
|
-
}
|
|
37
|
-
interface Recruiter {
|
|
38
|
-
name?: string;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
export interface JobListParams extends JobsPageParams {}
|
|
43
|
-
export declare namespace Jobs {
|
|
44
|
-
export import Job = API.Job;
|
|
45
|
-
export import JobListParams = API.JobListParams;
|
|
46
|
-
}
|
|
47
|
-
//# sourceMappingURL=jobs.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"jobs.d.ts","sourceRoot":"","sources":["../../src/resources/ats/jobs.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,QAAQ,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAE1E,qBAAa,IAAK,SAAQ,WAAW;IACnC;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC;IAI5E;;OAEG;IACH,IAAI,CAAC,KAAK,CAAC,EAAE,aAAa,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,GAAG,CAAC;IAC3F,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,GAAG,CAAC;CAUrE;AAED,MAAM,WAAW,GAAG;IAClB,EAAE,EAAE,MAAM,CAAC;IAEX,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B,UAAU,EAAE,GAAG,CAAC,UAAU,CAAC;IAE3B,WAAW,EAAE,GAAG,CAAC,UAAU,CAAC;IAE5B,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAEpB,MAAM,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,GAAG,UAAU,GAAG,IAAI,CAAC;CACrE;AAED,yBAAiB,GAAG,CAAC;IACnB,UAAiB,UAAU;QACzB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KACtB;IAED,UAAiB,UAAU;QACzB,eAAe,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC;QAEzD,UAAU,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC;KACjD;IAED,UAAiB,UAAU,CAAC;QAC1B,UAAiB,aAAa;YAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;SACf;QAED,UAAiB,SAAS;YACxB,IAAI,CAAC,EAAE,MAAM,CAAC;SACf;KACF;CACF;AAED,MAAM,WAAW,aAAc,SAAQ,cAAc;CAAG;AAExD,yBAAiB,IAAI,CAAC;IACpB,MAAM,QAAQ,GAAG,GAAG,GAAG,CAAC,GAAG,CAAC;IAC5B,MAAM,QAAQ,aAAa,GAAG,GAAG,CAAC,aAAa,CAAC;CACjD"}
|
package/resources/ats/jobs.js
DELETED
|
@@ -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.Jobs = 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 Jobs extends resource_1.APIResource {
|
|
9
|
-
/**
|
|
10
|
-
* Gets a job from an organization.
|
|
11
|
-
*/
|
|
12
|
-
retrieve(jobId, options) {
|
|
13
|
-
return this.get(`/ats/jobs/${jobId}`, options);
|
|
14
|
-
}
|
|
15
|
-
list(query = {}, options) {
|
|
16
|
-
if ((0, core_1.isRequestOptions)(query)) {
|
|
17
|
-
return this.list({}, query);
|
|
18
|
-
}
|
|
19
|
-
return this.getAPIList('/ats/jobs', pagination_1.JobsPage, { query, ...options });
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
exports.Jobs = Jobs;
|
|
23
|
-
(function (Jobs) {})((Jobs = exports.Jobs || (exports.Jobs = {})));
|
|
24
|
-
//# sourceMappingURL=jobs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"jobs.js","sourceRoot":"","sources":["../../src/resources/ats/jobs.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAGrD,2DAA2D;AAC3D,mDAA4D;AAE5D,+DAA0E;AAE1E,MAAa,IAAK,SAAQ,sBAAW;IACnC;;OAEG;IACH,QAAQ,CAAC,KAAa,EAAE,OAA6B;QACnD,OAAO,IAAI,CAAC,GAAG,CAAC,aAAa,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;IACjD,CAAC;IAOD,IAAI,CACF,QAA6C,EAAE,EAC/C,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,WAAW,EAAE,qBAAQ,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;CACF;AAtBD,oBAsBC;AA0CD,WAAiB,IAAI;AAGrB,CAAC,EAHgB,IAAI,GAAJ,YAAI,KAAJ,YAAI,QAGpB"}
|
package/resources/ats/jobs.mjs
DELETED
|
@@ -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 { JobsPage } from '@tryfinch/finch-api/pagination';
|
|
5
|
-
export class Jobs extends APIResource {
|
|
6
|
-
/**
|
|
7
|
-
* Gets a job from an organization.
|
|
8
|
-
*/
|
|
9
|
-
retrieve(jobId, options) {
|
|
10
|
-
return this.get(`/ats/jobs/${jobId}`, options);
|
|
11
|
-
}
|
|
12
|
-
list(query = {}, options) {
|
|
13
|
-
if (isRequestOptions(query)) {
|
|
14
|
-
return this.list({}, query);
|
|
15
|
-
}
|
|
16
|
-
return this.getAPIList('/ats/jobs', JobsPage, { query, ...options });
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
(function (Jobs) {})(Jobs || (Jobs = {}));
|
|
20
|
-
//# sourceMappingURL=jobs.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"jobs.mjs","sourceRoot":"","sources":["../../src/resources/ats/jobs.ts"],"names":[],"mappings":"AAAA,qDAAqD;OAG9C,EAAE,WAAW,EAAE,MAAM,8BAA8B;OACnD,EAAE,gBAAgB,EAAE,MAAM,0BAA0B;OAEpD,EAAE,QAAQ,EAAkB,MAAM,gCAAgC;AAEzE,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC;;OAEG;IACH,QAAQ,CAAC,KAAa,EAAE,OAA6B;QACnD,OAAO,IAAI,CAAC,GAAG,CAAC,aAAa,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;IACjD,CAAC;IAOD,IAAI,CACF,QAA6C,EAAE,EAC/C,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,WAAW,EAAE,QAAQ,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;CACF;AA0CD,WAAiB,IAAI;AAGrB,CAAC,EAHgB,IAAI,KAAJ,IAAI,QAGpB"}
|
|
@@ -1,39 +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 { OffersPage, OffersPageParams } from '@tryfinch/finch-api/pagination';
|
|
5
|
-
export declare class Offers extends APIResource {
|
|
6
|
-
/**
|
|
7
|
-
* Get a single offer from an organization.
|
|
8
|
-
*/
|
|
9
|
-
retrieve(offerId: string, options?: Core.RequestOptions): Core.APIPromise<Offer>;
|
|
10
|
-
/**
|
|
11
|
-
* Get all offers put out by an organization.
|
|
12
|
-
*/
|
|
13
|
-
list(query?: OfferListParams, options?: Core.RequestOptions): Core.PagePromise<OffersPage, Offer>;
|
|
14
|
-
list(options?: Core.RequestOptions): Core.PagePromise<OffersPage, Offer>;
|
|
15
|
-
}
|
|
16
|
-
export interface Offer {
|
|
17
|
-
id: string;
|
|
18
|
-
application_id: string;
|
|
19
|
-
candidate_id: string;
|
|
20
|
-
created_at: string;
|
|
21
|
-
job_id: string;
|
|
22
|
-
status:
|
|
23
|
-
| 'signed'
|
|
24
|
-
| 'rejected'
|
|
25
|
-
| 'draft'
|
|
26
|
-
| 'approval-sent'
|
|
27
|
-
| 'approved'
|
|
28
|
-
| 'sent'
|
|
29
|
-
| 'sent-manually'
|
|
30
|
-
| 'opened'
|
|
31
|
-
| 'archived';
|
|
32
|
-
updated_at: string;
|
|
33
|
-
}
|
|
34
|
-
export interface OfferListParams extends OffersPageParams {}
|
|
35
|
-
export declare namespace Offers {
|
|
36
|
-
export import Offer = API.Offer;
|
|
37
|
-
export import OfferListParams = API.OfferListParams;
|
|
38
|
-
}
|
|
39
|
-
//# sourceMappingURL=offers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"offers.d.ts","sourceRoot":"","sources":["../../src/resources/ats/offers.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,UAAU,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAE9E,qBAAa,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC;IAIhF;;OAEG;IACH,IAAI,CAAC,KAAK,CAAC,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,WAAW,CAAC,UAAU,EAAE,KAAK,CAAC;IACjG,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,WAAW,CAAC,UAAU,EAAE,KAAK,CAAC;CAUzE;AAED,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,CAAC;IAEX,cAAc,EAAE,MAAM,CAAC;IAEvB,YAAY,EAAE,MAAM,CAAC;IAErB,UAAU,EAAE,MAAM,CAAC;IAEnB,MAAM,EAAE,MAAM,CAAC;IAEf,MAAM,EACF,QAAQ,GACR,UAAU,GACV,OAAO,GACP,eAAe,GACf,UAAU,GACV,MAAM,GACN,eAAe,GACf,QAAQ,GACR,UAAU,CAAC;IAEf,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,eAAgB,SAAQ,gBAAgB;CAAG;AAE5D,yBAAiB,MAAM,CAAC;IACtB,MAAM,QAAQ,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC;IAChC,MAAM,QAAQ,eAAe,GAAG,GAAG,CAAC,eAAe,CAAC;CACrD"}
|
package/resources/ats/offers.js
DELETED
|
@@ -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.Offers = 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 Offers extends resource_1.APIResource {
|
|
9
|
-
/**
|
|
10
|
-
* Get a single offer from an organization.
|
|
11
|
-
*/
|
|
12
|
-
retrieve(offerId, options) {
|
|
13
|
-
return this.get(`/ats/offers/${offerId}`, options);
|
|
14
|
-
}
|
|
15
|
-
list(query = {}, options) {
|
|
16
|
-
if ((0, core_1.isRequestOptions)(query)) {
|
|
17
|
-
return this.list({}, query);
|
|
18
|
-
}
|
|
19
|
-
return this.getAPIList('/ats/offers', pagination_1.OffersPage, { query, ...options });
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
exports.Offers = Offers;
|
|
23
|
-
(function (Offers) {})((Offers = exports.Offers || (exports.Offers = {})));
|
|
24
|
-
//# sourceMappingURL=offers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"offers.js","sourceRoot":"","sources":["../../src/resources/ats/offers.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAGrD,2DAA2D;AAC3D,mDAA4D;AAE5D,+DAA8E;AAE9E,MAAa,MAAO,SAAQ,sBAAW;IACrC;;OAEG;IACH,QAAQ,CAAC,OAAe,EAAE,OAA6B;QACrD,OAAO,IAAI,CAAC,GAAG,CAAC,eAAe,OAAO,EAAE,EAAE,OAAO,CAAC,CAAC;IACrD,CAAC;IAOD,IAAI,CACF,QAA+C,EAAE,EACjD,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,aAAa,EAAE,uBAAU,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;CACF;AAtBD,wBAsBC;AA6BD,WAAiB,MAAM;AAGvB,CAAC,EAHgB,MAAM,GAAN,cAAM,KAAN,cAAM,QAGtB"}
|
package/resources/ats/offers.mjs
DELETED
|
@@ -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 { OffersPage } from '@tryfinch/finch-api/pagination';
|
|
5
|
-
export class Offers extends APIResource {
|
|
6
|
-
/**
|
|
7
|
-
* Get a single offer from an organization.
|
|
8
|
-
*/
|
|
9
|
-
retrieve(offerId, options) {
|
|
10
|
-
return this.get(`/ats/offers/${offerId}`, options);
|
|
11
|
-
}
|
|
12
|
-
list(query = {}, options) {
|
|
13
|
-
if (isRequestOptions(query)) {
|
|
14
|
-
return this.list({}, query);
|
|
15
|
-
}
|
|
16
|
-
return this.getAPIList('/ats/offers', OffersPage, { query, ...options });
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
(function (Offers) {})(Offers || (Offers = {}));
|
|
20
|
-
//# sourceMappingURL=offers.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"offers.mjs","sourceRoot":"","sources":["../../src/resources/ats/offers.ts"],"names":[],"mappings":"AAAA,qDAAqD;OAG9C,EAAE,WAAW,EAAE,MAAM,8BAA8B;OACnD,EAAE,gBAAgB,EAAE,MAAM,0BAA0B;OAEpD,EAAE,UAAU,EAAoB,MAAM,gCAAgC;AAE7E,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,QAAQ,CAAC,OAAe,EAAE,OAA6B;QACrD,OAAO,IAAI,CAAC,GAAG,CAAC,eAAe,OAAO,EAAE,EAAE,OAAO,CAAC,CAAC;IACrD,CAAC;IAOD,IAAI,CACF,QAA+C,EAAE,EACjD,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,aAAa,EAAE,UAAU,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;CACF;AA6BD,WAAiB,MAAM;AAGvB,CAAC,EAHgB,MAAM,KAAN,MAAM,QAGtB"}
|
|
@@ -1,30 +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 { SinglePage } from '@tryfinch/finch-api/pagination';
|
|
5
|
-
export declare class Stages extends APIResource {
|
|
6
|
-
/**
|
|
7
|
-
* Get all job stages for an organization. Depending on the system, some jobs may
|
|
8
|
-
* have stages specific to that job. Other job stages may apply broadly to all jobs
|
|
9
|
-
* in the system. Use the `job_id` to determine whether a job applies specifically
|
|
10
|
-
* to a job.
|
|
11
|
-
*/
|
|
12
|
-
list(options?: Core.RequestOptions): Core.PagePromise<StagesSinglePage, Stage>;
|
|
13
|
-
}
|
|
14
|
-
export declare class StagesSinglePage extends SinglePage<Stage> {}
|
|
15
|
-
type _StagesSinglePage = StagesSinglePage;
|
|
16
|
-
export interface Stage {
|
|
17
|
-
id?: string;
|
|
18
|
-
/**
|
|
19
|
-
* The job id that this stage applies to, if applicable. Not all systems enumerate
|
|
20
|
-
* stages specific to jobs.
|
|
21
|
-
*/
|
|
22
|
-
job_id?: string | null;
|
|
23
|
-
name?: string | null;
|
|
24
|
-
}
|
|
25
|
-
export declare namespace Stages {
|
|
26
|
-
export import Stage = API.Stage;
|
|
27
|
-
type StagesSinglePage = _StagesSinglePage;
|
|
28
|
-
}
|
|
29
|
-
export {};
|
|
30
|
-
//# sourceMappingURL=stages.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stages.d.ts","sourceRoot":"","sources":["../../src/resources/ats/stages.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,KAAK,GAAG,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAE5D,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;OAKG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,WAAW,CAAC,gBAAgB,EAAE,KAAK,CAAC;CAG/E;AAED,qBAAa,gBAAiB,SAAQ,UAAU,CAAC,KAAK,CAAC;CAAG;AAE1D,KAAK,iBAAiB,GAAG,gBAAgB,CAAC;AAE1C,MAAM,WAAW,KAAK;IACpB,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,yBAAiB,MAAM,CAAC;IACtB,MAAM,QAAQ,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC;IAChC,KAAY,gBAAgB,GAAG,iBAAiB,CAAC;CAClD"}
|
package/resources/ats/stages.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless.
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
exports.StagesSinglePage = exports.Stages = void 0;
|
|
5
|
-
const resource_1 = require('@tryfinch/finch-api/resource');
|
|
6
|
-
const pagination_1 = require('@tryfinch/finch-api/pagination');
|
|
7
|
-
class Stages extends resource_1.APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Get all job stages for an organization. Depending on the system, some jobs may
|
|
10
|
-
* have stages specific to that job. Other job stages may apply broadly to all jobs
|
|
11
|
-
* in the system. Use the `job_id` to determine whether a job applies specifically
|
|
12
|
-
* to a job.
|
|
13
|
-
*/
|
|
14
|
-
list(options) {
|
|
15
|
-
return this.getAPIList('/ats/stages', StagesSinglePage, options);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
exports.Stages = Stages;
|
|
19
|
-
class StagesSinglePage extends pagination_1.SinglePage {}
|
|
20
|
-
exports.StagesSinglePage = StagesSinglePage;
|
|
21
|
-
(function (Stages) {})((Stages = exports.Stages || (exports.Stages = {})));
|
|
22
|
-
//# sourceMappingURL=stages.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stages.js","sourceRoot":"","sources":["../../src/resources/ats/stages.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAGrD,2DAA2D;AAE3D,+DAA4D;AAE5D,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;OAKG;IACH,IAAI,CAAC,OAA6B;QAChC,OAAO,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,gBAAgB,EAAE,OAAO,CAAC,CAAC;IACnE,CAAC;CACF;AAVD,wBAUC;AAED,MAAa,gBAAiB,SAAQ,uBAAiB;CAAG;AAA1D,4CAA0D;AAgB1D,WAAiB,MAAM;AAGvB,CAAC,EAHgB,MAAM,GAAN,cAAM,KAAN,cAAM,QAGtB"}
|
package/resources/ats/stages.mjs
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless.
|
|
2
|
-
import { APIResource } from '@tryfinch/finch-api/resource';
|
|
3
|
-
import { SinglePage } from '@tryfinch/finch-api/pagination';
|
|
4
|
-
export class Stages extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Get all job stages for an organization. Depending on the system, some jobs may
|
|
7
|
-
* have stages specific to that job. Other job stages may apply broadly to all jobs
|
|
8
|
-
* in the system. Use the `job_id` to determine whether a job applies specifically
|
|
9
|
-
* to a job.
|
|
10
|
-
*/
|
|
11
|
-
list(options) {
|
|
12
|
-
return this.getAPIList('/ats/stages', StagesSinglePage, options);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
export class StagesSinglePage extends SinglePage {}
|
|
16
|
-
(function (Stages) {})(Stages || (Stages = {}));
|
|
17
|
-
//# sourceMappingURL=stages.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stages.mjs","sourceRoot":"","sources":["../../src/resources/ats/stages.ts"],"names":[],"mappings":"AAAA,qDAAqD;OAG9C,EAAE,WAAW,EAAE,MAAM,8BAA8B;OAEnD,EAAE,UAAU,EAAE,MAAM,gCAAgC;AAE3D,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;OAKG;IACH,IAAI,CAAC,OAA6B;QAChC,OAAO,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,gBAAgB,EAAE,OAAO,CAAC,CAAC;IACnE,CAAC;CACF;AAED,MAAM,OAAO,gBAAiB,SAAQ,UAAiB;CAAG;AAgB1D,WAAiB,MAAM;AAGvB,CAAC,EAHgB,MAAM,KAAN,MAAM,QAGtB"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Disclaimer: modules in _shims aren't intended to be imported by SDK users.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* >>> Confused? <<<
|
|
7
|
-
*
|
|
8
|
-
* If you're getting errors from these types, try adding "lib": ["DOM"]
|
|
9
|
-
* to your tsconfig.json, or otherwise configure the appropriate builtin
|
|
10
|
-
* `ReadableStream` type for your environment.
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
// @ts-ignore
|
|
14
|
-
type _ReadableStream<R = any> = unknown extends ReadableStream ? never : ReadableStream<R>;
|
|
15
|
-
declare const _ReadableStream: {
|
|
16
|
-
prototype: _ReadableStream;
|
|
17
|
-
new (
|
|
18
|
-
underlyingSource: _UnderlyingByteSource,
|
|
19
|
-
strategy?: { highWaterMark?: number },
|
|
20
|
-
): _ReadableStream<Uint8Array>;
|
|
21
|
-
new <R = any>(
|
|
22
|
-
underlyingSource: _UnderlyingDefaultSource<R>,
|
|
23
|
-
strategy?: _QueuingStrategy<R>,
|
|
24
|
-
): _ReadableStream<R>;
|
|
25
|
-
new <R = any>(underlyingSource?: _UnderlyingSource<R>, strategy?: _QueuingStrategy<R>): _ReadableStream<R>;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
// @ts-ignore
|
|
29
|
-
type _UnderlyingSource<R = any> = unknown extends UnderlyingSource ? never : UnderlyingSource<R>;
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
type _UnderlyingByteSource = unknown extends UnderlyingByteSource ? never : UnderlyingByteSource;
|
|
32
|
-
type _UnderlyingDefaultSource<R = any> =
|
|
33
|
-
// @ts-ignore
|
|
34
|
-
unknown extends UnderlyingDefaultSource ? never : UnderlyingDefaultSource<R>;
|
|
35
|
-
// @ts-ignore
|
|
36
|
-
type _QueuingStrategy<R = any> = unknown extends QueuingStrategy ? never : QueuingStrategy<R>;
|
|
37
|
-
|
|
38
|
-
export { _ReadableStream as ReadableStream };
|
package/src/_shims/agent.node.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Disclaimer: modules in _shims aren't intended to be imported by SDK users.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import KeepAliveAgent from 'agentkeepalive';
|
|
6
|
-
import type { Agent } from 'node:http';
|
|
7
|
-
import { AbortController as AbortControllerPolyfill } from 'abort-controller';
|
|
8
|
-
|
|
9
|
-
export type { Agent };
|
|
10
|
-
|
|
11
|
-
const defaultHttpAgent: Agent = new KeepAliveAgent({ keepAlive: true, timeout: 5 * 60 * 1000 });
|
|
12
|
-
const defaultHttpsAgent: Agent = new KeepAliveAgent.HttpsAgent({ keepAlive: true, timeout: 5 * 60 * 1000 });
|
|
13
|
-
|
|
14
|
-
// Polyfill global object if needed.
|
|
15
|
-
if (typeof AbortController === 'undefined') {
|
|
16
|
-
AbortController = AbortControllerPolyfill as any as typeof AbortController;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export const getDefaultAgent = (url: string): Agent | undefined => {
|
|
20
|
-
if (defaultHttpsAgent && url.startsWith('https')) return defaultHttpsAgent;
|
|
21
|
-
return defaultHttpAgent;
|
|
22
|
-
};
|
package/src/_shims/agent.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Disclaimer: modules in _shims aren't intended to be imported by SDK users.
|
|
3
|
-
*
|
|
4
|
-
* This is a stub for non-node environments.
|
|
5
|
-
* In node environments, it gets replaced agent.node.ts by the package export map
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
export type Agent = any;
|
|
9
|
-
|
|
10
|
-
export const getDefaultAgent = (url: string): any => {
|
|
11
|
-
return undefined;
|
|
12
|
-
};
|
package/src/_shims/fetch.d.ts
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Disclaimer: modules in _shims aren't intended to be imported by SDK users.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
// Use builtin web types if present; else never (user should
|
|
6
|
-
// add appropriate lib or types to tsconfig)
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* >>> Confused? <<<
|
|
10
|
-
*
|
|
11
|
-
* If you're getting errors from these types, try adding "lib": ["DOM"]
|
|
12
|
-
* to your tsconfig.json, or otherwise configure the appropriate builtin
|
|
13
|
-
* `fetch` types for your environment.
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
// @ts-ignore
|
|
17
|
-
type _fetch = unknown extends typeof fetch ? never : typeof fetch;
|
|
18
|
-
// @ts-ignore
|
|
19
|
-
type _Request = unknown extends Request ? never : Request;
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
type _RequestInfo = unknown extends RequestInfo ? never : RequestInfo;
|
|
22
|
-
// @ts-ignore
|
|
23
|
-
type _RequestInit = unknown extends RequestInit ? never : RequestInit;
|
|
24
|
-
// @ts-ignore
|
|
25
|
-
type _Response = unknown extends Response ? never : Response;
|
|
26
|
-
// @ts-ignore
|
|
27
|
-
type _ResponseInit = unknown extends ResponseInit ? never : ResponseInit;
|
|
28
|
-
// @ts-ignore
|
|
29
|
-
type _ResponseType = unknown extends ResponseType ? never : ResponseType;
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
type _BodyInit = unknown extends BodyInit ? never : BodyInit;
|
|
32
|
-
// @ts-ignore
|
|
33
|
-
type _Headers = unknown extends Headers ? never : Headers;
|
|
34
|
-
// @ts-ignore
|
|
35
|
-
type _HeadersInit = unknown extends HeadersInit ? never : HeadersInit;
|
|
36
|
-
|
|
37
|
-
declare const _fetch: _fetch;
|
|
38
|
-
declare const _Request: {
|
|
39
|
-
prototype: _Request;
|
|
40
|
-
new (input: _RequestInfo | URL, init?: _RequestInit): _Request;
|
|
41
|
-
};
|
|
42
|
-
declare const _Response: {
|
|
43
|
-
prototype: _Response;
|
|
44
|
-
new (body?: _BodyInit | null, init?: _ResponseInit): _Response;
|
|
45
|
-
};
|
|
46
|
-
declare const _Headers: {
|
|
47
|
-
prototype: _Headers;
|
|
48
|
-
new (init?: _HeadersInit): _Headers;
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
export const isPolyfilled = false;
|
|
52
|
-
|
|
53
|
-
export { _fetch as fetch, _Request as Request, _Response as Response, _Headers as Headers };
|
|
54
|
-
export type {
|
|
55
|
-
_RequestInit as RequestInit,
|
|
56
|
-
_RequestInfo as RequestInfo,
|
|
57
|
-
_ResponseType as ResponseType,
|
|
58
|
-
_BodyInit as BodyInit,
|
|
59
|
-
_HeadersInit as HeadersInit,
|
|
60
|
-
};
|
package/src/_shims/fetch.deno.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
const _fetch = fetch;
|
|
2
|
-
const _Request = Request;
|
|
3
|
-
type _RequestInfo = RequestInfo;
|
|
4
|
-
type _RequestInit = RequestInit;
|
|
5
|
-
const _Response = Response;
|
|
6
|
-
type _ResponseInit = ResponseInit;
|
|
7
|
-
type _BodyInit = BodyInit;
|
|
8
|
-
const _Headers = Headers;
|
|
9
|
-
type _HeadersInit = HeadersInit;
|
|
10
|
-
|
|
11
|
-
export const isPolyfilled = false;
|
|
12
|
-
|
|
13
|
-
export {
|
|
14
|
-
_fetch as fetch,
|
|
15
|
-
_Request as Request,
|
|
16
|
-
type _RequestInfo as RequestInfo,
|
|
17
|
-
type _RequestInit as RequestInit,
|
|
18
|
-
_Response as Response,
|
|
19
|
-
type _ResponseInit as ResponseInit,
|
|
20
|
-
type _BodyInit as BodyInit,
|
|
21
|
-
_Headers as Headers,
|
|
22
|
-
type _HeadersInit as HeadersInit,
|
|
23
|
-
};
|
package/src/_shims/fetch.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Disclaimer: modules in _shims aren't intended to be imported by SDK users.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
// If we accidentally call fetch with the wrong this binding,
|
|
6
|
-
// in the browser it would throw:
|
|
7
|
-
// TypeError: Failed to execute 'fetch' on 'Window': Illegal invocation
|
|
8
|
-
exports.fetch = fetch.bind(undefined);
|
|
9
|
-
exports.Request = Request;
|
|
10
|
-
exports.Response = Response;
|
|
11
|
-
exports.Headers = Headers;
|
|
12
|
-
|
|
13
|
-
exports.isPolyfilled = false;
|
package/src/_shims/fetch.mjs
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Disclaimer: modules in _shims aren't intended to be imported by SDK users.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
// If we accidentally call fetch with the wrong this binding,
|
|
6
|
-
// in the browser it would throw:
|
|
7
|
-
// TypeError: Failed to execute 'fetch' on 'Window': Illegal invocation
|
|
8
|
-
const _fetch = fetch.bind(undefined);
|
|
9
|
-
const _Request = Request;
|
|
10
|
-
const _Response = Response;
|
|
11
|
-
const _Headers = Headers;
|
|
12
|
-
|
|
13
|
-
export const isPolyfilled = false;
|
|
14
|
-
|
|
15
|
-
export { _fetch as fetch, _Request as Request, _Response as Response, _Headers as Headers };
|