@tryfinch/finch-api 5.12.1 → 5.14.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 +17 -0
- package/index.d.mts +6 -1
- package/index.d.ts +6 -1
- package/index.d.ts.map +1 -1
- package/index.js +3 -0
- package/index.js.map +1 -1
- package/index.mjs +3 -0
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/pagination.d.ts +25 -3
- package/pagination.d.ts.map +1 -1
- package/pagination.js +38 -1
- package/pagination.js.map +1 -1
- package/pagination.mjs +36 -0
- package/pagination.mjs.map +1 -1
- package/resources/account.d.ts +9 -0
- package/resources/account.d.ts.map +1 -1
- package/resources/account.js.map +1 -1
- package/resources/account.mjs.map +1 -1
- package/resources/hris/company.d.ts +1 -1
- package/resources/hris/company.d.ts.map +1 -1
- package/resources/hris/company.js.map +1 -1
- package/resources/hris/company.mjs.map +1 -1
- package/resources/hris/hris.d.ts +0 -11
- package/resources/hris/hris.d.ts.map +1 -1
- package/resources/hris/hris.js.map +1 -1
- package/resources/hris/hris.mjs.map +1 -1
- package/resources/hris/index.d.ts +1 -1
- package/resources/hris/index.d.ts.map +1 -1
- package/resources/hris/index.js.map +1 -1
- package/resources/hris/index.mjs.map +1 -1
- package/resources/hris/pay-statements.d.ts +2 -1
- package/resources/hris/pay-statements.d.ts.map +1 -1
- package/resources/hris/pay-statements.js.map +1 -1
- package/resources/hris/pay-statements.mjs.map +1 -1
- package/resources/index.d.ts +2 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/jobs/automated.d.ts +101 -0
- package/resources/jobs/automated.d.ts.map +1 -0
- package/resources/jobs/automated.js +68 -0
- package/resources/jobs/automated.js.map +1 -0
- package/resources/jobs/automated.mjs +40 -0
- package/resources/jobs/automated.mjs.map +1 -0
- package/resources/jobs/index.d.ts +4 -0
- package/resources/jobs/index.d.ts.map +1 -0
- package/resources/jobs/index.js +12 -0
- package/resources/jobs/index.js.map +1 -0
- package/resources/jobs/index.mjs +5 -0
- package/resources/jobs/index.mjs.map +1 -0
- package/resources/jobs/jobs.d.ts +18 -0
- package/resources/jobs/jobs.d.ts.map +1 -0
- package/resources/jobs/jobs.js +44 -0
- package/resources/jobs/jobs.js.map +1 -0
- package/resources/jobs/jobs.mjs +17 -0
- package/resources/jobs/jobs.mjs.map +1 -0
- package/resources/jobs/manual.d.ts +22 -0
- package/resources/jobs/manual.d.ts.map +1 -0
- package/resources/jobs/manual.js +18 -0
- package/resources/jobs/manual.js.map +1 -0
- package/resources/jobs/manual.mjs +14 -0
- package/resources/jobs/manual.mjs.map +1 -0
- package/resources/shared.d.ts +10 -0
- package/resources/shared.d.ts.map +1 -1
- package/src/index.ts +8 -1
- package/src/pagination.ts +65 -3
- package/src/resources/account.ts +11 -0
- package/src/resources/hris/company.ts +9 -1
- package/src/resources/hris/hris.ts +0 -13
- package/src/resources/hris/index.ts +1 -1
- package/src/resources/hris/pay-statements.ts +2 -1
- package/src/resources/index.ts +2 -1
- package/src/resources/jobs/automated.ts +139 -0
- package/src/resources/jobs/index.ts +12 -0
- package/src/resources/jobs/jobs.ts +21 -0
- package/src/resources/jobs/manual.ts +30 -0
- package/src/resources/shared.ts +12 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pay-statements.js","sourceRoot":"","sources":["../../src/resources/hris/pay-statements.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;;;;;;;;;;;;;;;;;;;;;;;;AAGrD,2DAA2D;AAC3D,oGAAsF;
|
|
1
|
+
{"version":3,"file":"pay-statements.js","sourceRoot":"","sources":["../../src/resources/hris/pay-statements.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;;;;;;;;;;;;;;;;;;;;;;;;AAGrD,2DAA2D;AAC3D,oGAAsF;AAItF,+DAA+D;AAE/D,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;;;;OAKG;IACH,YAAY,CACV,IAAoC,EACpC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,yBAAyB,EAAE,yBAAyB,EAAE;YACnF,IAAI;YACJ,MAAM,EAAE,MAAM;YACd,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AAjBD,sCAiBC;AAED,MAAa,yBAA0B,SAAQ,0BAAmC;CAAG;AAArF,8DAAqF;AAgNrF,WAAiB,aAAa;IAId,uCAAyB,GAAG,gBAAgB,CAAC,yBAAyB,CAAC;AAEvF,CAAC,EANgB,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAM7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pay-statements.mjs","sourceRoot":"","sources":["../../src/resources/hris/pay-statements.ts"],"names":[],"mappings":"AAAA,qDAAqD;OAG9C,EAAE,WAAW,EAAE,MAAM,8BAA8B;OACnD,KAAK,gBAAgB,MAAM,mDAAmD;
|
|
1
|
+
{"version":3,"file":"pay-statements.mjs","sourceRoot":"","sources":["../../src/resources/hris/pay-statements.ts"],"names":[],"mappings":"AAAA,qDAAqD;OAG9C,EAAE,WAAW,EAAE,MAAM,8BAA8B;OACnD,KAAK,gBAAgB,MAAM,mDAAmD;OAI9E,EAAE,aAAa,EAAE,MAAM,gCAAgC;AAE9D,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;;;;OAKG;IACH,YAAY,CACV,IAAoC,EACpC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,yBAAyB,EAAE,yBAAyB,EAAE;YACnF,IAAI;YACJ,MAAM,EAAE,MAAM;YACd,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AAED,MAAM,OAAO,yBAA0B,SAAQ,aAAmC;CAAG;AAgNrF,WAAiB,aAAa;IAId,uCAAyB,GAAG,gBAAgB,CAAC,yBAAyB,CAAC;AAEvF,CAAC,EANgB,aAAa,KAAb,aAAa,QAM7B"}
|
package/resources/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./shared.js";
|
|
2
2
|
export { DisconnectResponse, Introspection, Account } from "./account.js";
|
|
3
|
-
export { Income, Location, Money,
|
|
3
|
+
export { Income, Location, Money, HRIS } from "./hris/hris.js";
|
|
4
|
+
export { Jobs } from "./jobs/jobs.js";
|
|
4
5
|
export { Provider, ProvidersSinglePage, Providers } from "./providers.js";
|
|
5
6
|
export { RequestForwardingForwardResponse, RequestForwardingForwardParams, RequestForwarding, } from "./request-forwarding.js";
|
|
6
7
|
export { Webhooks } from "./webhooks.js";
|
package/resources/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACvE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACvE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACvE,OAAO,EACL,gCAAgC,EAChC,8BAA8B,EAC9B,iBAAiB,GAClB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC"}
|
package/resources/index.js
CHANGED
|
@@ -15,12 +15,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
16
|
};
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.Webhooks = exports.RequestForwarding = exports.Providers = exports.ProvidersSinglePage = exports.HRIS = exports.Account = void 0;
|
|
18
|
+
exports.Webhooks = exports.RequestForwarding = exports.Providers = exports.ProvidersSinglePage = exports.Jobs = exports.HRIS = exports.Account = void 0;
|
|
19
19
|
__exportStar(require("./shared.js"), exports);
|
|
20
20
|
var account_1 = require("./account.js");
|
|
21
21
|
Object.defineProperty(exports, "Account", { enumerable: true, get: function () { return account_1.Account; } });
|
|
22
22
|
var hris_1 = require("./hris/hris.js");
|
|
23
23
|
Object.defineProperty(exports, "HRIS", { enumerable: true, get: function () { return hris_1.HRIS; } });
|
|
24
|
+
var jobs_1 = require("./jobs/jobs.js");
|
|
25
|
+
Object.defineProperty(exports, "Jobs", { enumerable: true, get: function () { return jobs_1.Jobs; } });
|
|
24
26
|
var providers_1 = require("./providers.js");
|
|
25
27
|
Object.defineProperty(exports, "ProvidersSinglePage", { enumerable: true, get: function () { return providers_1.ProvidersSinglePage; } });
|
|
26
28
|
Object.defineProperty(exports, "Providers", { enumerable: true, get: function () { return providers_1.Providers; } });
|
package/resources/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;;;;;;;;;;;;;;;AAErD,8CAAyB;AACzB,wCAAuE;AAA3B,kGAAA,OAAO,OAAA;AACnD,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;;;;;;;;;;;;;;;AAErD,8CAAyB;AACzB,wCAAuE;AAA3B,kGAAA,OAAO,OAAA;AACnD,uCAA4D;AAA1B,4FAAA,IAAI,OAAA;AACtC,uCAAmC;AAA1B,4FAAA,IAAI,OAAA;AACb,4CAAuE;AAApD,gHAAA,mBAAmB,OAAA;AAAE,sGAAA,SAAS,OAAA;AACjD,8DAI8B;AAD5B,uHAAA,iBAAiB,OAAA;AAEnB,0CAAsC;AAA7B,oGAAA,QAAQ,OAAA"}
|
package/resources/index.mjs
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
export * from "./shared.mjs";
|
|
3
3
|
export { Account } from "./account.mjs";
|
|
4
4
|
export { HRIS } from "./hris/hris.mjs";
|
|
5
|
+
export { Jobs } from "./jobs/jobs.mjs";
|
|
5
6
|
export { ProvidersSinglePage, Providers } from "./providers.mjs";
|
|
6
7
|
export { RequestForwarding, } from "./request-forwarding.mjs";
|
|
7
8
|
export { Webhooks } from "./webhooks.mjs";
|
package/resources/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,qDAAqD;;OAG9C,EAAqC,OAAO,EAAE;OAC9C,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,qDAAqD;;OAG9C,EAAqC,OAAO,EAAE;OAC9C,EAA2B,IAAI,EAAE;OACjC,EAAE,IAAI,EAAE;OACR,EAAY,mBAAmB,EAAE,SAAS,EAAE;OAC5C,EAGL,iBAAiB,GAClB;OACM,EAAE,QAAQ,EAAE"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import * as Core from '@tryfinch/finch-api/core';
|
|
2
|
+
import { APIResource } from '@tryfinch/finch-api/resource';
|
|
3
|
+
import * as AutomatedAPI from '@tryfinch/finch-api/resources/jobs/automated';
|
|
4
|
+
import { Page, type PageParams } from '@tryfinch/finch-api/pagination';
|
|
5
|
+
export declare class Automated extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Enqueue an automated job. Currently, only the `data_sync_all` job type is
|
|
8
|
+
* supported, which will enqueue a job to re-sync all data for a connection.
|
|
9
|
+
* `data_sync_all` has a concurrency limit of 1 job at a time per connection. This
|
|
10
|
+
* means that if this endpoint is called while a job is already in progress for
|
|
11
|
+
* this connection, Finch will return the `job_id` of the job that is currently in
|
|
12
|
+
* progress. Finch allows a fixed window rate limit of 1 forced refresh per hour
|
|
13
|
+
* per connection.
|
|
14
|
+
*
|
|
15
|
+
* This endpoint is available for _Scale_ tier customers as an add-on. To request
|
|
16
|
+
* access to this endpoint, please contact your Finch account manager.
|
|
17
|
+
*/
|
|
18
|
+
create(body: AutomatedCreateParams, options?: Core.RequestOptions): Core.APIPromise<AutomatedCreateResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Get an automated job by `job_id`.
|
|
21
|
+
*/
|
|
22
|
+
retrieve(jobId: string, options?: Core.RequestOptions): Core.APIPromise<AutomatedAsyncJob>;
|
|
23
|
+
/**
|
|
24
|
+
* Get all automated jobs. Automated jobs are completed by a machine. By default,
|
|
25
|
+
* jobs are sorted in descending order by submission time. For scheduled jobs such
|
|
26
|
+
* as data syncs, only the next scheduled job is shown.
|
|
27
|
+
*/
|
|
28
|
+
list(query?: AutomatedListParams, options?: Core.RequestOptions): Core.PagePromise<AutomatedAsyncJobsPage, AutomatedAsyncJob>;
|
|
29
|
+
list(options?: Core.RequestOptions): Core.PagePromise<AutomatedAsyncJobsPage, AutomatedAsyncJob>;
|
|
30
|
+
}
|
|
31
|
+
export declare class AutomatedAsyncJobsPage extends Page<AutomatedAsyncJob> {
|
|
32
|
+
}
|
|
33
|
+
export interface AutomatedAsyncJob {
|
|
34
|
+
/**
|
|
35
|
+
* The datetime the job completed.
|
|
36
|
+
*/
|
|
37
|
+
completed_at: string | null;
|
|
38
|
+
/**
|
|
39
|
+
* The datetime when the job was created. for scheduled jobs, this will be the
|
|
40
|
+
* initial connection time. For ad-hoc jobs, this will be the time the creation
|
|
41
|
+
* request was received.
|
|
42
|
+
*/
|
|
43
|
+
created_at: string;
|
|
44
|
+
/**
|
|
45
|
+
* The id of the job that has been created.
|
|
46
|
+
*/
|
|
47
|
+
job_id: string;
|
|
48
|
+
/**
|
|
49
|
+
* The url that can be used to retrieve the job status
|
|
50
|
+
*/
|
|
51
|
+
job_url: string;
|
|
52
|
+
/**
|
|
53
|
+
* The datetime a job is scheduled to be run. For scheduled jobs, this datetime can
|
|
54
|
+
* be in the future if the job has not yet been enqueued. For ad-hoc jobs, this
|
|
55
|
+
* field will be null.
|
|
56
|
+
*/
|
|
57
|
+
scheduled_at: string | null;
|
|
58
|
+
/**
|
|
59
|
+
* The datetime a job entered into the job queue.
|
|
60
|
+
*/
|
|
61
|
+
started_at: string | null;
|
|
62
|
+
status: 'pending' | 'in_progress' | 'complete' | 'error' | 'reauth_error' | 'permissions_error';
|
|
63
|
+
/**
|
|
64
|
+
* Only `data_sync_all` currently supported
|
|
65
|
+
*/
|
|
66
|
+
type: 'data_sync_all';
|
|
67
|
+
}
|
|
68
|
+
export interface AutomatedCreateResponse {
|
|
69
|
+
/**
|
|
70
|
+
* The number of allowed refreshes per hour (per hour, fixed window)
|
|
71
|
+
*/
|
|
72
|
+
allowed_refreshes: number;
|
|
73
|
+
/**
|
|
74
|
+
* The id of the job that has been created.
|
|
75
|
+
*/
|
|
76
|
+
job_id: string;
|
|
77
|
+
/**
|
|
78
|
+
* The url that can be used to retrieve the job status
|
|
79
|
+
*/
|
|
80
|
+
job_url: string;
|
|
81
|
+
/**
|
|
82
|
+
* The number of remaining refreshes available (per hour, fixed window)
|
|
83
|
+
*/
|
|
84
|
+
remaining_refreshes: number;
|
|
85
|
+
}
|
|
86
|
+
export interface AutomatedCreateParams {
|
|
87
|
+
/**
|
|
88
|
+
* The type of job to start. Currently the only supported type is `data_sync_all`
|
|
89
|
+
*/
|
|
90
|
+
type: 'data_sync_all';
|
|
91
|
+
}
|
|
92
|
+
export interface AutomatedListParams extends PageParams {
|
|
93
|
+
}
|
|
94
|
+
export declare namespace Automated {
|
|
95
|
+
export import AutomatedAsyncJob = AutomatedAPI.AutomatedAsyncJob;
|
|
96
|
+
export import AutomatedCreateResponse = AutomatedAPI.AutomatedCreateResponse;
|
|
97
|
+
export import AutomatedAsyncJobsPage = AutomatedAPI.AutomatedAsyncJobsPage;
|
|
98
|
+
export import AutomatedCreateParams = AutomatedAPI.AutomatedCreateParams;
|
|
99
|
+
export import AutomatedListParams = AutomatedAPI.AutomatedListParams;
|
|
100
|
+
}
|
|
101
|
+
//# sourceMappingURL=automated.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"automated.d.ts","sourceRoot":"","sources":["../../src/resources/jobs/automated.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D,OAAO,KAAK,YAAY,MAAM,8CAA8C,CAAC;AAC7E,OAAO,EAAE,IAAI,EAAE,KAAK,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAEvE,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAAI,EAAE,qBAAqB,EAC3B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,uBAAuB,CAAC;IAI3C;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC;IAI1F;;;;OAIG;IACH,IAAI,CACF,KAAK,CAAC,EAAE,mBAAmB,EAC3B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,WAAW,CAAC,sBAAsB,EAAE,iBAAiB,CAAC;IAC9D,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,WAAW,CAAC,sBAAsB,EAAE,iBAAiB,CAAC;CAUjG;AAED,qBAAa,sBAAuB,SAAQ,IAAI,CAAC,iBAAiB,CAAC;CAAG;AAEtE,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;OAIG;IACH,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B,MAAM,EAAE,SAAS,GAAG,aAAa,GAAG,UAAU,GAAG,OAAO,GAAG,cAAc,GAAG,mBAAmB,CAAC;IAEhG;;OAEG;IACH,IAAI,EAAE,eAAe,CAAC;CACvB;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,mBAAmB,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,IAAI,EAAE,eAAe,CAAC;CACvB;AAED,MAAM,WAAW,mBAAoB,SAAQ,UAAU;CAAG;AAE1D,yBAAiB,SAAS,CAAC;IACzB,MAAM,QAAQ,iBAAiB,GAAG,YAAY,CAAC,iBAAiB,CAAC;IACjE,MAAM,QAAQ,uBAAuB,GAAG,YAAY,CAAC,uBAAuB,CAAC;IAC7E,MAAM,QAAQ,sBAAsB,GAAG,YAAY,CAAC,sBAAsB,CAAC;IAC3E,MAAM,QAAQ,qBAAqB,GAAG,YAAY,CAAC,qBAAqB,CAAC;IACzE,MAAM,QAAQ,mBAAmB,GAAG,YAAY,CAAC,mBAAmB,CAAC;CACtE"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
20
|
+
if (mod && mod.__esModule) return mod;
|
|
21
|
+
var result = {};
|
|
22
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
23
|
+
__setModuleDefault(result, mod);
|
|
24
|
+
return result;
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.AutomatedAsyncJobsPage = exports.Automated = void 0;
|
|
28
|
+
const resource_1 = require("@tryfinch/finch-api/resource");
|
|
29
|
+
const core_1 = require("@tryfinch/finch-api/core");
|
|
30
|
+
const AutomatedAPI = __importStar(require("@tryfinch/finch-api/resources/jobs/automated"));
|
|
31
|
+
const pagination_1 = require("@tryfinch/finch-api/pagination");
|
|
32
|
+
class Automated extends resource_1.APIResource {
|
|
33
|
+
/**
|
|
34
|
+
* Enqueue an automated job. Currently, only the `data_sync_all` job type is
|
|
35
|
+
* supported, which will enqueue a job to re-sync all data for a connection.
|
|
36
|
+
* `data_sync_all` has a concurrency limit of 1 job at a time per connection. This
|
|
37
|
+
* means that if this endpoint is called while a job is already in progress for
|
|
38
|
+
* this connection, Finch will return the `job_id` of the job that is currently in
|
|
39
|
+
* progress. Finch allows a fixed window rate limit of 1 forced refresh per hour
|
|
40
|
+
* per connection.
|
|
41
|
+
*
|
|
42
|
+
* This endpoint is available for _Scale_ tier customers as an add-on. To request
|
|
43
|
+
* access to this endpoint, please contact your Finch account manager.
|
|
44
|
+
*/
|
|
45
|
+
create(body, options) {
|
|
46
|
+
return this._client.post('/jobs/automated', { body, ...options });
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Get an automated job by `job_id`.
|
|
50
|
+
*/
|
|
51
|
+
retrieve(jobId, options) {
|
|
52
|
+
return this._client.get(`/jobs/automated/${jobId}`, options);
|
|
53
|
+
}
|
|
54
|
+
list(query = {}, options) {
|
|
55
|
+
if ((0, core_1.isRequestOptions)(query)) {
|
|
56
|
+
return this.list({}, query);
|
|
57
|
+
}
|
|
58
|
+
return this._client.getAPIList('/jobs/automated', AutomatedAsyncJobsPage, { query, ...options });
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
exports.Automated = Automated;
|
|
62
|
+
class AutomatedAsyncJobsPage extends pagination_1.Page {
|
|
63
|
+
}
|
|
64
|
+
exports.AutomatedAsyncJobsPage = AutomatedAsyncJobsPage;
|
|
65
|
+
(function (Automated) {
|
|
66
|
+
Automated.AutomatedAsyncJobsPage = AutomatedAPI.AutomatedAsyncJobsPage;
|
|
67
|
+
})(Automated = exports.Automated || (exports.Automated = {}));
|
|
68
|
+
//# sourceMappingURL=automated.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"automated.js","sourceRoot":"","sources":["../../src/resources/jobs/automated.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;;;;;;;;;;;;;;;;;;;;;;;;AAGrD,2DAA2D;AAC3D,mDAA4D;AAC5D,2FAA6E;AAC7E,+DAAuE;AAEvE,MAAa,SAAU,SAAQ,sBAAW;IACxC;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAA2B,EAC3B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpE,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,KAAa,EAAE,OAA6B;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;IAYD,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,OAAO,CAAC,UAAU,CAAC,iBAAiB,EAAE,sBAAsB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnG,CAAC;CACF;AA9CD,8BA8CC;AAED,MAAa,sBAAuB,SAAQ,iBAAuB;CAAG;AAAtE,wDAAsE;AA4EtE,WAAiB,SAAS;IAGV,gCAAsB,GAAG,YAAY,CAAC,sBAAsB,CAAC;AAG7E,CAAC,EANgB,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAMzB"}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 * as AutomatedAPI from '@tryfinch/finch-api/resources/jobs/automated';
|
|
5
|
+
import { Page } from '@tryfinch/finch-api/pagination';
|
|
6
|
+
export class Automated extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Enqueue an automated job. Currently, only the `data_sync_all` job type is
|
|
9
|
+
* supported, which will enqueue a job to re-sync all data for a connection.
|
|
10
|
+
* `data_sync_all` has a concurrency limit of 1 job at a time per connection. This
|
|
11
|
+
* means that if this endpoint is called while a job is already in progress for
|
|
12
|
+
* this connection, Finch will return the `job_id` of the job that is currently in
|
|
13
|
+
* progress. Finch allows a fixed window rate limit of 1 forced refresh per hour
|
|
14
|
+
* per connection.
|
|
15
|
+
*
|
|
16
|
+
* This endpoint is available for _Scale_ tier customers as an add-on. To request
|
|
17
|
+
* access to this endpoint, please contact your Finch account manager.
|
|
18
|
+
*/
|
|
19
|
+
create(body, options) {
|
|
20
|
+
return this._client.post('/jobs/automated', { body, ...options });
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Get an automated job by `job_id`.
|
|
24
|
+
*/
|
|
25
|
+
retrieve(jobId, options) {
|
|
26
|
+
return this._client.get(`/jobs/automated/${jobId}`, options);
|
|
27
|
+
}
|
|
28
|
+
list(query = {}, options) {
|
|
29
|
+
if (isRequestOptions(query)) {
|
|
30
|
+
return this.list({}, query);
|
|
31
|
+
}
|
|
32
|
+
return this._client.getAPIList('/jobs/automated', AutomatedAsyncJobsPage, { query, ...options });
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
export class AutomatedAsyncJobsPage extends Page {
|
|
36
|
+
}
|
|
37
|
+
(function (Automated) {
|
|
38
|
+
Automated.AutomatedAsyncJobsPage = AutomatedAPI.AutomatedAsyncJobsPage;
|
|
39
|
+
})(Automated || (Automated = {}));
|
|
40
|
+
//# sourceMappingURL=automated.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"automated.mjs","sourceRoot":"","sources":["../../src/resources/jobs/automated.ts"],"names":[],"mappings":"AAAA,qDAAqD;OAG9C,EAAE,WAAW,EAAE,MAAM,8BAA8B;OACnD,EAAE,gBAAgB,EAAE,MAAM,0BAA0B;OACpD,KAAK,YAAY,MAAM,8CAA8C;OACrE,EAAE,IAAI,EAAmB,MAAM,gCAAgC;AAEtE,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAA2B,EAC3B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpE,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,KAAa,EAAE,OAA6B;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;IAYD,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,OAAO,CAAC,UAAU,CAAC,iBAAiB,EAAE,sBAAsB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnG,CAAC;CACF;AAED,MAAM,OAAO,sBAAuB,SAAQ,IAAuB;CAAG;AA4EtE,WAAiB,SAAS;IAGV,gCAAsB,GAAG,YAAY,CAAC,sBAAsB,CAAC;AAG7E,CAAC,EANgB,SAAS,KAAT,SAAS,QAMzB"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { AutomatedAsyncJob, AutomatedCreateResponse, AutomatedCreateParams, AutomatedListParams, AutomatedAsyncJobsPage, Automated, } from "./automated.js";
|
|
2
|
+
export { Jobs } from "./jobs.js";
|
|
3
|
+
export { ManualAsyncJob, Manual } from "./manual.js";
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/jobs/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,iBAAiB,EACjB,uBAAuB,EACvB,qBAAqB,EACrB,mBAAmB,EACnB,sBAAsB,EACtB,SAAS,GACV,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Manual = exports.Jobs = exports.Automated = exports.AutomatedAsyncJobsPage = void 0;
|
|
5
|
+
var automated_1 = require("./automated.js");
|
|
6
|
+
Object.defineProperty(exports, "AutomatedAsyncJobsPage", { enumerable: true, get: function () { return automated_1.AutomatedAsyncJobsPage; } });
|
|
7
|
+
Object.defineProperty(exports, "Automated", { enumerable: true, get: function () { return automated_1.Automated; } });
|
|
8
|
+
var jobs_1 = require("./jobs.js");
|
|
9
|
+
Object.defineProperty(exports, "Jobs", { enumerable: true, get: function () { return jobs_1.Jobs; } });
|
|
10
|
+
var manual_1 = require("./manual.js");
|
|
11
|
+
Object.defineProperty(exports, "Manual", { enumerable: true, get: function () { return manual_1.Manual; } });
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/jobs/index.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAErD,4CAOqB;AAFnB,mHAAA,sBAAsB,OAAA;AACtB,sGAAA,SAAS,OAAA;AAEX,kCAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,sCAAkD;AAAzB,gGAAA,MAAM,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/jobs/index.ts"],"names":[],"mappings":"AAAA,qDAAqD;OAE9C,EAKL,sBAAsB,EACtB,SAAS,GACV;OACM,EAAE,IAAI,EAAE;OACR,EAAkB,MAAM,EAAE"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { APIResource } from '@tryfinch/finch-api/resource';
|
|
2
|
+
import * as AutomatedAPI from '@tryfinch/finch-api/resources/jobs/automated';
|
|
3
|
+
import * as ManualAPI from '@tryfinch/finch-api/resources/jobs/manual';
|
|
4
|
+
export declare class Jobs extends APIResource {
|
|
5
|
+
automated: AutomatedAPI.Automated;
|
|
6
|
+
manual: ManualAPI.Manual;
|
|
7
|
+
}
|
|
8
|
+
export declare namespace Jobs {
|
|
9
|
+
export import Automated = AutomatedAPI.Automated;
|
|
10
|
+
export import AutomatedAsyncJob = AutomatedAPI.AutomatedAsyncJob;
|
|
11
|
+
export import AutomatedCreateResponse = AutomatedAPI.AutomatedCreateResponse;
|
|
12
|
+
export import AutomatedAsyncJobsPage = AutomatedAPI.AutomatedAsyncJobsPage;
|
|
13
|
+
export import AutomatedCreateParams = AutomatedAPI.AutomatedCreateParams;
|
|
14
|
+
export import AutomatedListParams = AutomatedAPI.AutomatedListParams;
|
|
15
|
+
export import Manual = ManualAPI.Manual;
|
|
16
|
+
export import ManualAsyncJob = ManualAPI.ManualAsyncJob;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=jobs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jobs.d.ts","sourceRoot":"","sources":["../../src/resources/jobs/jobs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,KAAK,YAAY,MAAM,8CAA8C,CAAC;AAC7E,OAAO,KAAK,SAAS,MAAM,2CAA2C,CAAC;AAEvE,qBAAa,IAAK,SAAQ,WAAW;IACnC,SAAS,EAAE,YAAY,CAAC,SAAS,CAA4C;IAC7E,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;CAC/D;AAED,yBAAiB,IAAI,CAAC;IACpB,MAAM,QAAQ,SAAS,GAAG,YAAY,CAAC,SAAS,CAAC;IACjD,MAAM,QAAQ,iBAAiB,GAAG,YAAY,CAAC,iBAAiB,CAAC;IACjE,MAAM,QAAQ,uBAAuB,GAAG,YAAY,CAAC,uBAAuB,CAAC;IAC7E,MAAM,QAAQ,sBAAsB,GAAG,YAAY,CAAC,sBAAsB,CAAC;IAC3E,MAAM,QAAQ,qBAAqB,GAAG,YAAY,CAAC,qBAAqB,CAAC;IACzE,MAAM,QAAQ,mBAAmB,GAAG,YAAY,CAAC,mBAAmB,CAAC;IACrE,MAAM,QAAQ,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC;IACxC,MAAM,QAAQ,cAAc,GAAG,SAAS,CAAC,cAAc,CAAC;CACzD"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
20
|
+
if (mod && mod.__esModule) return mod;
|
|
21
|
+
var result = {};
|
|
22
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
23
|
+
__setModuleDefault(result, mod);
|
|
24
|
+
return result;
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.Jobs = void 0;
|
|
28
|
+
const resource_1 = require("@tryfinch/finch-api/resource");
|
|
29
|
+
const AutomatedAPI = __importStar(require("@tryfinch/finch-api/resources/jobs/automated"));
|
|
30
|
+
const ManualAPI = __importStar(require("@tryfinch/finch-api/resources/jobs/manual"));
|
|
31
|
+
class Jobs extends resource_1.APIResource {
|
|
32
|
+
constructor() {
|
|
33
|
+
super(...arguments);
|
|
34
|
+
this.automated = new AutomatedAPI.Automated(this._client);
|
|
35
|
+
this.manual = new ManualAPI.Manual(this._client);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.Jobs = Jobs;
|
|
39
|
+
(function (Jobs) {
|
|
40
|
+
Jobs.Automated = AutomatedAPI.Automated;
|
|
41
|
+
Jobs.AutomatedAsyncJobsPage = AutomatedAPI.AutomatedAsyncJobsPage;
|
|
42
|
+
Jobs.Manual = ManualAPI.Manual;
|
|
43
|
+
})(Jobs = exports.Jobs || (exports.Jobs = {}));
|
|
44
|
+
//# sourceMappingURL=jobs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jobs.js","sourceRoot":"","sources":["../../src/resources/jobs/jobs.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;;;;;;;;;;;;;;;;;;;;;;;;AAErD,2DAA2D;AAC3D,2FAA6E;AAC7E,qFAAuE;AAEvE,MAAa,IAAK,SAAQ,sBAAW;IAArC;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAChE,CAAC;CAAA;AAHD,oBAGC;AAED,WAAiB,IAAI;IACL,cAAS,GAAG,YAAY,CAAC,SAAS,CAAC;IAGnC,2BAAsB,GAAG,YAAY,CAAC,sBAAsB,CAAC;IAG7D,WAAM,GAAG,SAAS,CAAC,MAAM,CAAC;AAE1C,CAAC,EATgB,IAAI,GAAJ,YAAI,KAAJ,YAAI,QASpB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
2
|
+
import { APIResource } from '@tryfinch/finch-api/resource';
|
|
3
|
+
import * as AutomatedAPI from '@tryfinch/finch-api/resources/jobs/automated';
|
|
4
|
+
import * as ManualAPI from '@tryfinch/finch-api/resources/jobs/manual';
|
|
5
|
+
export class Jobs extends APIResource {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(...arguments);
|
|
8
|
+
this.automated = new AutomatedAPI.Automated(this._client);
|
|
9
|
+
this.manual = new ManualAPI.Manual(this._client);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
(function (Jobs) {
|
|
13
|
+
Jobs.Automated = AutomatedAPI.Automated;
|
|
14
|
+
Jobs.AutomatedAsyncJobsPage = AutomatedAPI.AutomatedAsyncJobsPage;
|
|
15
|
+
Jobs.Manual = ManualAPI.Manual;
|
|
16
|
+
})(Jobs || (Jobs = {}));
|
|
17
|
+
//# sourceMappingURL=jobs.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jobs.mjs","sourceRoot":"","sources":["../../src/resources/jobs/jobs.ts"],"names":[],"mappings":"AAAA,qDAAqD;OAE9C,EAAE,WAAW,EAAE,MAAM,8BAA8B;OACnD,KAAK,YAAY,MAAM,8CAA8C;OACrE,KAAK,SAAS,MAAM,2CAA2C;AAEtE,MAAM,OAAO,IAAK,SAAQ,WAAW;IAArC;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAChE,CAAC;CAAA;AAED,WAAiB,IAAI;IACL,cAAS,GAAG,YAAY,CAAC,SAAS,CAAC;IAGnC,2BAAsB,GAAG,YAAY,CAAC,sBAAsB,CAAC;IAG7D,WAAM,GAAG,SAAS,CAAC,MAAM,CAAC;AAE1C,CAAC,EATgB,IAAI,KAAJ,IAAI,QASpB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as Core from '@tryfinch/finch-api/core';
|
|
2
|
+
import { APIResource } from '@tryfinch/finch-api/resource';
|
|
3
|
+
import * as ManualAPI from '@tryfinch/finch-api/resources/jobs/manual';
|
|
4
|
+
export declare class Manual extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get a manual job by `job_id`. Manual jobs are completed by a human and include
|
|
7
|
+
* Assisted Benefits jobs.
|
|
8
|
+
*/
|
|
9
|
+
retrieve(jobId: string, options?: Core.RequestOptions): Core.APIPromise<ManualAsyncJob>;
|
|
10
|
+
}
|
|
11
|
+
export interface ManualAsyncJob {
|
|
12
|
+
/**
|
|
13
|
+
* Specific information about the job, such as individual statuses for batch jobs.
|
|
14
|
+
*/
|
|
15
|
+
body: Array<unknown> | null;
|
|
16
|
+
job_id: string;
|
|
17
|
+
status: 'pending' | 'in_progress' | 'error' | 'complete';
|
|
18
|
+
}
|
|
19
|
+
export declare namespace Manual {
|
|
20
|
+
export import ManualAsyncJob = ManualAPI.ManualAsyncJob;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=manual.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manual.d.ts","sourceRoot":"","sources":["../../src/resources/jobs/manual.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,KAAK,SAAS,MAAM,2CAA2C,CAAC;AAEvE,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;OAGG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,cAAc,CAAC;CAGxF;AAED,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;IAE5B,MAAM,EAAE,MAAM,CAAC;IAEf,MAAM,EAAE,SAAS,GAAG,aAAa,GAAG,OAAO,GAAG,UAAU,CAAC;CAC1D;AAED,yBAAiB,MAAM,CAAC;IACtB,MAAM,QAAQ,cAAc,GAAG,SAAS,CAAC,cAAc,CAAC;CACzD"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Manual = void 0;
|
|
5
|
+
const resource_1 = require("@tryfinch/finch-api/resource");
|
|
6
|
+
class Manual extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Get a manual job by `job_id`. Manual jobs are completed by a human and include
|
|
9
|
+
* Assisted Benefits jobs.
|
|
10
|
+
*/
|
|
11
|
+
retrieve(jobId, options) {
|
|
12
|
+
return this._client.get(`/jobs/manual/${jobId}`, options);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.Manual = Manual;
|
|
16
|
+
(function (Manual) {
|
|
17
|
+
})(Manual = exports.Manual || (exports.Manual = {}));
|
|
18
|
+
//# sourceMappingURL=manual.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manual.js","sourceRoot":"","sources":["../../src/resources/jobs/manual.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAGrD,2DAA2D;AAG3D,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;OAGG;IACH,QAAQ,CAAC,KAAa,EAAE,OAA6B;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;CACF;AARD,wBAQC;AAaD,WAAiB,MAAM;AAEvB,CAAC,EAFgB,MAAM,GAAN,cAAM,KAAN,cAAM,QAEtB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
2
|
+
import { APIResource } from '@tryfinch/finch-api/resource';
|
|
3
|
+
export class Manual extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Get a manual job by `job_id`. Manual jobs are completed by a human and include
|
|
6
|
+
* Assisted Benefits jobs.
|
|
7
|
+
*/
|
|
8
|
+
retrieve(jobId, options) {
|
|
9
|
+
return this._client.get(`/jobs/manual/${jobId}`, options);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
(function (Manual) {
|
|
13
|
+
})(Manual || (Manual = {}));
|
|
14
|
+
//# sourceMappingURL=manual.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manual.mjs","sourceRoot":"","sources":["../../src/resources/jobs/manual.ts"],"names":[],"mappings":"AAAA,qDAAqD;OAG9C,EAAE,WAAW,EAAE,MAAM,8BAA8B;AAG1D,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;OAGG;IACH,QAAQ,CAAC,KAAa,EAAE,OAA6B;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;CACF;AAaD,WAAiB,MAAM;AAEvB,CAAC,EAFgB,MAAM,KAAN,MAAM,QAEtB"}
|
package/resources/shared.d.ts
CHANGED
|
@@ -50,4 +50,14 @@ export interface OperationSupportMatrix {
|
|
|
50
50
|
*/
|
|
51
51
|
update?: OperationSupport;
|
|
52
52
|
}
|
|
53
|
+
export interface Paging {
|
|
54
|
+
/**
|
|
55
|
+
* The total number of elements for the entire query (not just the given page)
|
|
56
|
+
*/
|
|
57
|
+
count?: number;
|
|
58
|
+
/**
|
|
59
|
+
* The current start index of the returned list of elements
|
|
60
|
+
*/
|
|
61
|
+
offset?: number;
|
|
62
|
+
}
|
|
53
63
|
//# sourceMappingURL=shared.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,MAAM,MAAM,gBAAgB,GACxB,WAAW,GACX,wBAAwB,GACxB,2BAA2B,GAC3B,oBAAoB,CAAC;AAEzB,MAAM,WAAW,sBAAsB;IACrC;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAE1B;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAE1B;;;;;;;;OAQG;IACH,IAAI,CAAC,EAAE,gBAAgB,CAAC;IAExB;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,gBAAgB,CAAC;CAC3B"}
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,MAAM,MAAM,gBAAgB,GACxB,WAAW,GACX,wBAAwB,GACxB,2BAA2B,GAC3B,oBAAoB,CAAC;AAEzB,MAAM,WAAW,sBAAsB;IACrC;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAE1B;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAE1B;;;;;;;;OAQG;IACH,IAAI,CAAC,EAAE,gBAAgB,CAAC;IAExB;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,gBAAgB,CAAC;CAC3B;AAED,MAAM,WAAW,MAAM;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
package/src/index.ts
CHANGED
|
@@ -143,6 +143,7 @@ export class Finch extends Core.APIClient {
|
|
|
143
143
|
account: API.Account = new API.Account(this);
|
|
144
144
|
webhooks: API.Webhooks = new API.Webhooks(this);
|
|
145
145
|
requestForwarding: API.RequestForwarding = new API.RequestForwarding(this);
|
|
146
|
+
jobs: API.Jobs = new API.Jobs(this);
|
|
146
147
|
|
|
147
148
|
/**
|
|
148
149
|
* Returns an access token for the Finch API given an authorization code. An
|
|
@@ -281,11 +282,14 @@ export namespace Finch {
|
|
|
281
282
|
export import IndividualsPageParams = Pagination.IndividualsPageParams;
|
|
282
283
|
export import IndividualsPageResponse = Pagination.IndividualsPageResponse;
|
|
283
284
|
|
|
285
|
+
export import Page = Pagination.Page;
|
|
286
|
+
export import PageParams = Pagination.PageParams;
|
|
287
|
+
export import PageResponse = Pagination.PageResponse;
|
|
288
|
+
|
|
284
289
|
export import HRIS = API.HRIS;
|
|
285
290
|
export import Income = API.Income;
|
|
286
291
|
export import Location = API.Location;
|
|
287
292
|
export import Money = API.Money;
|
|
288
|
-
export import Paging = API.Paging;
|
|
289
293
|
|
|
290
294
|
export import Providers = API.Providers;
|
|
291
295
|
export import Provider = API.Provider;
|
|
@@ -301,8 +305,11 @@ export namespace Finch {
|
|
|
301
305
|
export import RequestForwardingForwardResponse = API.RequestForwardingForwardResponse;
|
|
302
306
|
export import RequestForwardingForwardParams = API.RequestForwardingForwardParams;
|
|
303
307
|
|
|
308
|
+
export import Jobs = API.Jobs;
|
|
309
|
+
|
|
304
310
|
export import OperationSupport = API.OperationSupport;
|
|
305
311
|
export import OperationSupportMatrix = API.OperationSupportMatrix;
|
|
312
|
+
export import Paging = API.Paging;
|
|
306
313
|
}
|
|
307
314
|
|
|
308
315
|
export default Finch;
|