@tryfinch/finch-api 6.8.0 → 6.9.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 +8 -0
- package/README.md +2 -2
- package/core.d.ts +3 -3
- package/core.d.ts.map +1 -1
- package/core.js.map +1 -1
- package/core.mjs.map +1 -1
- package/error.d.ts.map +1 -1
- package/index.d.mts +33 -45
- package/index.d.ts +33 -45
- package/index.d.ts.map +1 -1
- package/index.js +37 -20
- package/index.js.map +1 -1
- package/index.mjs +24 -20
- package/index.mjs.map +1 -1
- package/package.json +2 -2
- package/resources/access-tokens.d.ts +1 -3
- package/resources/access-tokens.d.ts.map +1 -1
- package/resources/access-tokens.js +0 -2
- package/resources/access-tokens.js.map +1 -1
- package/resources/access-tokens.mjs +0 -2
- package/resources/access-tokens.mjs.map +1 -1
- package/resources/account.d.ts +1 -3
- package/resources/account.d.ts.map +1 -1
- package/resources/account.js +0 -2
- package/resources/account.js.map +1 -1
- package/resources/account.mjs +0 -2
- package/resources/account.mjs.map +1 -1
- package/resources/connect/connect.d.ts +2 -5
- package/resources/connect/connect.d.ts.map +1 -1
- package/resources/connect/connect.js +2 -3
- package/resources/connect/connect.js.map +1 -1
- package/resources/connect/connect.mjs +2 -3
- package/resources/connect/connect.mjs.map +1 -1
- package/resources/connect/index.d.ts +1 -1
- package/resources/connect/index.d.ts.map +1 -1
- package/resources/connect/index.js.map +1 -1
- package/resources/connect/index.mjs.map +1 -1
- package/resources/connect/sessions.d.ts +1 -5
- package/resources/connect/sessions.d.ts.map +1 -1
- package/resources/connect/sessions.js +0 -2
- package/resources/connect/sessions.js.map +1 -1
- package/resources/connect/sessions.mjs +0 -2
- package/resources/connect/sessions.mjs.map +1 -1
- package/resources/hris/benefits/benefits.d.ts +3 -29
- package/resources/hris/benefits/benefits.d.ts.map +1 -1
- package/resources/hris/benefits/benefits.js +7 -9
- package/resources/hris/benefits/benefits.js.map +1 -1
- package/resources/hris/benefits/benefits.mjs +7 -9
- package/resources/hris/benefits/benefits.mjs.map +1 -1
- package/resources/hris/benefits/index.d.ts +2 -2
- package/resources/hris/benefits/index.d.ts.map +1 -1
- package/resources/hris/benefits/index.js.map +1 -1
- package/resources/hris/benefits/index.mjs.map +1 -1
- package/resources/hris/benefits/individuals.d.ts +1 -11
- package/resources/hris/benefits/individuals.d.ts.map +1 -1
- package/resources/hris/benefits/individuals.js +3 -29
- package/resources/hris/benefits/individuals.js.map +1 -1
- package/resources/hris/benefits/individuals.mjs +3 -6
- package/resources/hris/benefits/individuals.mjs.map +1 -1
- package/resources/hris/company.d.ts +1 -2
- package/resources/hris/company.d.ts.map +1 -1
- package/resources/hris/company.js +0 -2
- package/resources/hris/company.js.map +1 -1
- package/resources/hris/company.mjs +0 -2
- package/resources/hris/company.mjs.map +1 -1
- package/resources/hris/directory.d.ts +1 -4
- package/resources/hris/directory.d.ts.map +1 -1
- package/resources/hris/directory.js +0 -2
- package/resources/hris/directory.js.map +1 -1
- package/resources/hris/directory.mjs +0 -2
- package/resources/hris/directory.mjs.map +1 -1
- package/resources/hris/employments.d.ts +1 -5
- package/resources/hris/employments.d.ts.map +1 -1
- package/resources/hris/employments.js +1 -27
- package/resources/hris/employments.js.map +1 -1
- package/resources/hris/employments.mjs +1 -4
- package/resources/hris/employments.mjs.map +1 -1
- package/resources/hris/hris.d.ts +15 -49
- package/resources/hris/hris.d.ts.map +1 -1
- package/resources/hris/hris.js +20 -15
- package/resources/hris/hris.js.map +1 -1
- package/resources/hris/hris.mjs +20 -15
- package/resources/hris/hris.mjs.map +1 -1
- package/resources/hris/index.d.ts +8 -8
- package/resources/hris/index.d.ts.map +1 -1
- package/resources/hris/index.js +3 -3
- package/resources/hris/index.js.map +1 -1
- package/resources/hris/index.mjs +1 -1
- package/resources/hris/index.mjs.map +1 -1
- package/resources/hris/individuals.d.ts +1 -5
- package/resources/hris/individuals.d.ts.map +1 -1
- package/resources/hris/individuals.js +1 -27
- package/resources/hris/individuals.js.map +1 -1
- package/resources/hris/individuals.mjs +1 -4
- package/resources/hris/individuals.mjs.map +1 -1
- package/resources/hris/pay-statements.d.ts +1 -6
- package/resources/hris/pay-statements.d.ts.map +1 -1
- package/resources/hris/pay-statements.js +1 -27
- package/resources/hris/pay-statements.js.map +1 -1
- package/resources/hris/pay-statements.mjs +1 -4
- package/resources/hris/pay-statements.mjs.map +1 -1
- package/resources/hris/payments.d.ts +1 -4
- package/resources/hris/payments.d.ts.map +1 -1
- package/resources/hris/payments.js +1 -27
- package/resources/hris/payments.js.map +1 -1
- package/resources/hris/payments.mjs +1 -4
- package/resources/hris/payments.mjs.map +1 -1
- package/resources/index.d.ts +6 -6
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -5
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -2
- package/resources/index.mjs.map +1 -1
- package/resources/jobs/automated.d.ts +1 -6
- package/resources/jobs/automated.d.ts.map +1 -1
- package/resources/jobs/automated.js +1 -27
- package/resources/jobs/automated.js.map +1 -1
- package/resources/jobs/automated.mjs +1 -4
- package/resources/jobs/automated.mjs.map +1 -1
- package/resources/jobs/index.d.ts +2 -2
- package/resources/jobs/index.d.ts.map +1 -1
- package/resources/jobs/index.js.map +1 -1
- package/resources/jobs/index.mjs.map +1 -1
- package/resources/jobs/jobs.d.ts +4 -8
- package/resources/jobs/jobs.d.ts.map +1 -1
- package/resources/jobs/jobs.js +5 -5
- package/resources/jobs/jobs.js.map +1 -1
- package/resources/jobs/jobs.mjs +5 -5
- package/resources/jobs/jobs.mjs.map +1 -1
- package/resources/jobs/manual.d.ts +1 -2
- package/resources/jobs/manual.d.ts.map +1 -1
- package/resources/jobs/manual.js +0 -2
- package/resources/jobs/manual.js.map +1 -1
- package/resources/jobs/manual.mjs +0 -2
- package/resources/jobs/manual.mjs.map +1 -1
- package/resources/payroll/index.d.ts +1 -1
- package/resources/payroll/index.d.ts.map +1 -1
- package/resources/payroll/index.js.map +1 -1
- package/resources/payroll/index.mjs.map +1 -1
- package/resources/payroll/pay-groups.d.ts +1 -5
- package/resources/payroll/pay-groups.d.ts.map +1 -1
- package/resources/payroll/pay-groups.js +1 -27
- package/resources/payroll/pay-groups.js.map +1 -1
- package/resources/payroll/pay-groups.mjs +1 -4
- package/resources/payroll/pay-groups.mjs.map +1 -1
- package/resources/payroll/payroll.d.ts +2 -5
- package/resources/payroll/payroll.d.ts.map +1 -1
- package/resources/payroll/payroll.js +3 -4
- package/resources/payroll/payroll.js.map +1 -1
- package/resources/payroll/payroll.mjs +3 -4
- package/resources/payroll/payroll.mjs.map +1 -1
- package/resources/providers.d.ts +8 -3
- package/resources/providers.d.ts.map +1 -1
- package/resources/providers.js +1 -27
- package/resources/providers.js.map +1 -1
- package/resources/providers.mjs +1 -4
- package/resources/providers.mjs.map +1 -1
- package/resources/request-forwarding.d.ts +1 -3
- package/resources/request-forwarding.d.ts.map +1 -1
- package/resources/request-forwarding.js +0 -2
- package/resources/request-forwarding.js.map +1 -1
- package/resources/request-forwarding.mjs +0 -2
- package/resources/request-forwarding.mjs.map +1 -1
- package/resources/sandbox/company.d.ts +1 -3
- package/resources/sandbox/company.d.ts.map +1 -1
- package/resources/sandbox/company.js +0 -2
- package/resources/sandbox/company.js.map +1 -1
- package/resources/sandbox/company.mjs +0 -2
- package/resources/sandbox/company.mjs.map +1 -1
- package/resources/sandbox/connections/accounts.d.ts +1 -5
- package/resources/sandbox/connections/accounts.d.ts.map +1 -1
- package/resources/sandbox/connections/accounts.js +0 -2
- package/resources/sandbox/connections/accounts.js.map +1 -1
- package/resources/sandbox/connections/accounts.mjs +0 -2
- package/resources/sandbox/connections/accounts.mjs.map +1 -1
- package/resources/sandbox/connections/connections.d.ts +3 -8
- package/resources/sandbox/connections/connections.d.ts.map +1 -1
- package/resources/sandbox/connections/connections.js +2 -3
- package/resources/sandbox/connections/connections.js.map +1 -1
- package/resources/sandbox/connections/connections.mjs +2 -3
- package/resources/sandbox/connections/connections.mjs.map +1 -1
- package/resources/sandbox/connections/index.d.ts +2 -2
- package/resources/sandbox/connections/index.d.ts.map +1 -1
- package/resources/sandbox/connections/index.js.map +1 -1
- package/resources/sandbox/connections/index.mjs.map +1 -1
- package/resources/sandbox/directory.d.ts +1 -3
- package/resources/sandbox/directory.d.ts.map +1 -1
- package/resources/sandbox/directory.js +0 -2
- package/resources/sandbox/directory.js.map +1 -1
- package/resources/sandbox/directory.mjs +0 -2
- package/resources/sandbox/directory.mjs.map +1 -1
- package/resources/sandbox/employment.d.ts +1 -3
- package/resources/sandbox/employment.d.ts.map +1 -1
- package/resources/sandbox/employment.js +0 -2
- package/resources/sandbox/employment.js.map +1 -1
- package/resources/sandbox/employment.mjs +0 -2
- package/resources/sandbox/employment.mjs.map +1 -1
- package/resources/sandbox/index.d.ts +7 -7
- package/resources/sandbox/index.d.ts.map +1 -1
- package/resources/sandbox/index.js.map +1 -1
- package/resources/sandbox/index.mjs.map +1 -1
- package/resources/sandbox/individual.d.ts +1 -3
- package/resources/sandbox/individual.d.ts.map +1 -1
- package/resources/sandbox/individual.js +0 -2
- package/resources/sandbox/individual.js.map +1 -1
- package/resources/sandbox/individual.mjs +0 -2
- package/resources/sandbox/individual.mjs.map +1 -1
- package/resources/sandbox/jobs/configuration.d.ts +1 -4
- package/resources/sandbox/jobs/configuration.d.ts.map +1 -1
- package/resources/sandbox/jobs/configuration.js +0 -2
- package/resources/sandbox/jobs/configuration.js.map +1 -1
- package/resources/sandbox/jobs/configuration.mjs +0 -2
- package/resources/sandbox/jobs/configuration.mjs.map +1 -1
- package/resources/sandbox/jobs/index.d.ts +2 -2
- package/resources/sandbox/jobs/index.d.ts.map +1 -1
- package/resources/sandbox/jobs/index.js +3 -3
- package/resources/sandbox/jobs/index.js.map +1 -1
- package/resources/sandbox/jobs/index.mjs +1 -1
- package/resources/sandbox/jobs/index.mjs.map +1 -1
- package/resources/sandbox/jobs/jobs.d.ts +3 -7
- package/resources/sandbox/jobs/jobs.d.ts.map +1 -1
- package/resources/sandbox/jobs/jobs.js +2 -3
- package/resources/sandbox/jobs/jobs.js.map +1 -1
- package/resources/sandbox/jobs/jobs.mjs +2 -3
- package/resources/sandbox/jobs/jobs.mjs.map +1 -1
- package/resources/sandbox/payment.d.ts +1 -3
- package/resources/sandbox/payment.d.ts.map +1 -1
- package/resources/sandbox/payment.js +0 -2
- package/resources/sandbox/payment.js.map +1 -1
- package/resources/sandbox/payment.mjs +0 -2
- package/resources/sandbox/payment.mjs.map +1 -1
- package/resources/sandbox/sandbox.d.ts +14 -21
- package/resources/sandbox/sandbox.d.ts.map +1 -1
- package/resources/sandbox/sandbox.js +14 -9
- package/resources/sandbox/sandbox.js.map +1 -1
- package/resources/sandbox/sandbox.mjs +14 -9
- package/resources/sandbox/sandbox.mjs.map +1 -1
- package/resources/webhooks.d.ts +8 -11
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js +0 -2
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +0 -2
- package/resources/webhooks.mjs.map +1 -1
- package/src/core.ts +5 -5
- package/src/error.ts +1 -1
- package/src/index.ts +108 -58
- package/src/resources/access-tokens.ts +5 -4
- package/src/resources/account.ts +2 -4
- package/src/resources/connect/connect.ts +17 -6
- package/src/resources/connect/index.ts +4 -4
- package/src/resources/connect/sessions.ts +7 -6
- package/src/resources/hris/benefits/benefits.ts +52 -30
- package/src/resources/hris/benefits/index.ts +20 -20
- package/src/resources/hris/benefits/individuals.ts +17 -12
- package/src/resources/hris/company.ts +2 -3
- package/src/resources/hris/directory.ts +6 -5
- package/src/resources/hris/employments.ts +9 -6
- package/src/resources/hris/hris.ts +124 -50
- package/src/resources/hris/index.ts +32 -32
- package/src/resources/hris/individuals.ts +9 -6
- package/src/resources/hris/pay-statements.ts +10 -7
- package/src/resources/hris/payments.ts +8 -5
- package/src/resources/index.ts +19 -19
- package/src/resources/jobs/automated.ts +10 -7
- package/src/resources/jobs/index.ts +5 -5
- package/src/resources/jobs/jobs.ts +24 -9
- package/src/resources/jobs/manual.ts +2 -3
- package/src/resources/payroll/index.ts +3 -3
- package/src/resources/payroll/pay-groups.ts +9 -6
- package/src/resources/payroll/payroll.ts +18 -6
- package/src/resources/providers.ts +16 -4
- package/src/resources/request-forwarding.ts +5 -4
- package/src/resources/sandbox/company.ts +5 -4
- package/src/resources/sandbox/connections/accounts.ts +7 -6
- package/src/resources/sandbox/connections/connections.ts +22 -9
- package/src/resources/sandbox/connections/index.ts +5 -5
- package/src/resources/sandbox/directory.ts +5 -4
- package/src/resources/sandbox/employment.ts +5 -4
- package/src/resources/sandbox/index.ts +7 -7
- package/src/resources/sandbox/individual.ts +5 -4
- package/src/resources/sandbox/jobs/configuration.ts +6 -5
- package/src/resources/sandbox/jobs/index.ts +4 -4
- package/src/resources/sandbox/jobs/jobs.ts +17 -8
- package/src/resources/sandbox/payment.ts +5 -4
- package/src/resources/sandbox/sandbox.ts +57 -22
- package/src/resources/webhooks.ts +25 -12
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/resources/webhooks.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.mjs","sourceRoot":"","sources":["../src/resources/webhooks.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"webhooks.mjs","sourceRoot":"","sources":["../src/resources/webhooks.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,UAAU,EAAE,MAAM,QAAQ;OAC5B,EAAE,iBAAiB,EAAe;AAEzC,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,MAAM,CACJ,OAAe,EACf,OAAoB,EACpB,SAAoC,IAAI,CAAC,OAAO,CAAC,aAAa;QAE9D,IAAI,CAAC,eAAe,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;QAC/C,OAAO,IAAI,CAAC,KAAK,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CAAC,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,EAAE;gBACtF,SAAS;gBACT,OAAO;aACR;SACF;QAED,MAAM,IAAI,KAAK,CAAC,mEAAmE,CAAC,CAAC;IACvF,CAAC;CACF"}
|
package/src/core.ts
CHANGED
|
@@ -396,7 +396,7 @@ export abstract class APIClient {
|
|
|
396
396
|
error: Object | undefined,
|
|
397
397
|
message: string | undefined,
|
|
398
398
|
headers: Headers | undefined,
|
|
399
|
-
) {
|
|
399
|
+
): APIError {
|
|
400
400
|
return APIError.generate(status, error, message, headers);
|
|
401
401
|
}
|
|
402
402
|
|
|
@@ -668,9 +668,9 @@ export abstract class AbstractPage<Item> implements AsyncIterable<Item> {
|
|
|
668
668
|
return await this.#client.requestAPIList(this.constructor as any, nextOptions);
|
|
669
669
|
}
|
|
670
670
|
|
|
671
|
-
async *iterPages() {
|
|
671
|
+
async *iterPages(): AsyncGenerator<this> {
|
|
672
672
|
// eslint-disable-next-line @typescript-eslint/no-this-alias
|
|
673
|
-
let page:
|
|
673
|
+
let page: this = this;
|
|
674
674
|
yield page;
|
|
675
675
|
while (page.hasNextPage()) {
|
|
676
676
|
page = await page.getNextPage();
|
|
@@ -678,7 +678,7 @@ export abstract class AbstractPage<Item> implements AsyncIterable<Item> {
|
|
|
678
678
|
}
|
|
679
679
|
}
|
|
680
680
|
|
|
681
|
-
async *[Symbol.asyncIterator]() {
|
|
681
|
+
async *[Symbol.asyncIterator](): AsyncGenerator<Item> {
|
|
682
682
|
for await (const page of this.iterPages()) {
|
|
683
683
|
for (const item of page.getPaginatedItems()) {
|
|
684
684
|
yield item;
|
|
@@ -721,7 +721,7 @@ export class PagePromise<
|
|
|
721
721
|
* console.log(item)
|
|
722
722
|
* }
|
|
723
723
|
*/
|
|
724
|
-
async *[Symbol.asyncIterator]() {
|
|
724
|
+
async *[Symbol.asyncIterator](): AsyncGenerator<Item> {
|
|
725
725
|
const page = await this;
|
|
726
726
|
for await (const item of page) {
|
|
727
727
|
yield item;
|
package/src/error.ts
CHANGED
|
@@ -47,7 +47,7 @@ export class APIError extends FinchError {
|
|
|
47
47
|
errorResponse: Object | undefined,
|
|
48
48
|
message: string | undefined,
|
|
49
49
|
headers: Headers | undefined,
|
|
50
|
-
) {
|
|
50
|
+
): APIError {
|
|
51
51
|
if (!status) {
|
|
52
52
|
return new APIConnectionError({ message, cause: castToError(errorResponse) });
|
|
53
53
|
}
|
package/src/index.ts
CHANGED
|
@@ -1,12 +1,46 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import * as Errors from './error';
|
|
4
|
-
import * as Uploads from './uploads';
|
|
5
3
|
import { type Agent } from './_shims/index';
|
|
6
4
|
import * as qs from './internal/qs';
|
|
7
5
|
import * as Core from './core';
|
|
6
|
+
import * as Errors from './error';
|
|
8
7
|
import * as Pagination from './pagination';
|
|
8
|
+
import {
|
|
9
|
+
type IndividualsPageParams,
|
|
10
|
+
IndividualsPageResponse,
|
|
11
|
+
type PageParams,
|
|
12
|
+
PageResponse,
|
|
13
|
+
ResponsesPageResponse,
|
|
14
|
+
SinglePageResponse,
|
|
15
|
+
} from './pagination';
|
|
16
|
+
import * as Uploads from './uploads';
|
|
9
17
|
import * as API from './resources/index';
|
|
18
|
+
import { AccessTokenCreateParams, AccessTokens, CreateAccessTokenResponse } from './resources/access-tokens';
|
|
19
|
+
import { Account, DisconnectResponse, Introspection } from './resources/account';
|
|
20
|
+
import { Provider, Providers, ProvidersSinglePage } from './resources/providers';
|
|
21
|
+
import {
|
|
22
|
+
RequestForwarding,
|
|
23
|
+
RequestForwardingForwardParams,
|
|
24
|
+
RequestForwardingForwardResponse,
|
|
25
|
+
} from './resources/request-forwarding';
|
|
26
|
+
import {
|
|
27
|
+
AccountUpdateEvent,
|
|
28
|
+
BaseWebhookEvent,
|
|
29
|
+
CompanyEvent,
|
|
30
|
+
DirectoryEvent,
|
|
31
|
+
EmploymentEvent,
|
|
32
|
+
IndividualEvent,
|
|
33
|
+
JobCompletionEvent,
|
|
34
|
+
PayStatementEvent,
|
|
35
|
+
PaymentEvent,
|
|
36
|
+
WebhookEvent,
|
|
37
|
+
Webhooks,
|
|
38
|
+
} from './resources/webhooks';
|
|
39
|
+
import { Connect } from './resources/connect/connect';
|
|
40
|
+
import { HRIS, Income, Location, Money } from './resources/hris/hris';
|
|
41
|
+
import { Jobs } from './resources/jobs/jobs';
|
|
42
|
+
import { Payroll } from './resources/payroll/payroll';
|
|
43
|
+
import { Sandbox } from './resources/sandbox/sandbox';
|
|
10
44
|
|
|
11
45
|
export interface ClientOptions {
|
|
12
46
|
accessToken?: string | null | undefined;
|
|
@@ -303,7 +337,7 @@ export class Finch extends Core.APIClient {
|
|
|
303
337
|
static fileFromPath = Uploads.fileFromPath;
|
|
304
338
|
}
|
|
305
339
|
|
|
306
|
-
export
|
|
340
|
+
export {
|
|
307
341
|
FinchError,
|
|
308
342
|
APIError,
|
|
309
343
|
APIConnectionError,
|
|
@@ -317,73 +351,89 @@ export const {
|
|
|
317
351
|
InternalServerError,
|
|
318
352
|
PermissionDeniedError,
|
|
319
353
|
UnprocessableEntityError,
|
|
320
|
-
}
|
|
354
|
+
} from './error';
|
|
321
355
|
|
|
322
356
|
export import toFile = Uploads.toFile;
|
|
323
357
|
export import fileFromPath = Uploads.fileFromPath;
|
|
324
358
|
|
|
325
|
-
|
|
326
|
-
|
|
359
|
+
Finch.AccessTokens = AccessTokens;
|
|
360
|
+
Finch.HRIS = HRIS;
|
|
361
|
+
Finch.Providers = Providers;
|
|
362
|
+
Finch.ProvidersSinglePage = ProvidersSinglePage;
|
|
363
|
+
Finch.Account = Account;
|
|
364
|
+
Finch.Webhooks = Webhooks;
|
|
365
|
+
Finch.RequestForwarding = RequestForwarding;
|
|
366
|
+
Finch.Jobs = Jobs;
|
|
367
|
+
Finch.Sandbox = Sandbox;
|
|
368
|
+
Finch.Payroll = Payroll;
|
|
369
|
+
Finch.Connect = Connect;
|
|
370
|
+
|
|
371
|
+
export declare namespace Finch {
|
|
372
|
+
export type RequestOptions = Core.RequestOptions;
|
|
327
373
|
|
|
328
374
|
export import SinglePage = Pagination.SinglePage;
|
|
329
|
-
export
|
|
375
|
+
export { type SinglePageResponse as SinglePageResponse };
|
|
330
376
|
|
|
331
377
|
export import ResponsesPage = Pagination.ResponsesPage;
|
|
332
|
-
export
|
|
378
|
+
export { type ResponsesPageResponse as ResponsesPageResponse };
|
|
333
379
|
|
|
334
380
|
export import IndividualsPage = Pagination.IndividualsPage;
|
|
335
|
-
export
|
|
336
|
-
|
|
381
|
+
export {
|
|
382
|
+
type IndividualsPageParams as IndividualsPageParams,
|
|
383
|
+
type IndividualsPageResponse as IndividualsPageResponse,
|
|
384
|
+
};
|
|
337
385
|
|
|
338
386
|
export import Page = Pagination.Page;
|
|
339
|
-
export
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
export
|
|
348
|
-
|
|
349
|
-
export
|
|
350
|
-
|
|
351
|
-
export
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
export
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
export
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
export
|
|
378
|
-
|
|
379
|
-
export
|
|
380
|
-
|
|
381
|
-
export
|
|
382
|
-
|
|
383
|
-
export
|
|
384
|
-
|
|
385
|
-
export
|
|
386
|
-
export
|
|
387
|
+
export { type PageParams as PageParams, type PageResponse as PageResponse };
|
|
388
|
+
|
|
389
|
+
export {
|
|
390
|
+
AccessTokens as AccessTokens,
|
|
391
|
+
type CreateAccessTokenResponse as CreateAccessTokenResponse,
|
|
392
|
+
type AccessTokenCreateParams as AccessTokenCreateParams,
|
|
393
|
+
};
|
|
394
|
+
|
|
395
|
+
export { HRIS as HRIS, type Income as Income, type Location as Location, type Money as Money };
|
|
396
|
+
|
|
397
|
+
export { Providers as Providers, type Provider as Provider, ProvidersSinglePage as ProvidersSinglePage };
|
|
398
|
+
|
|
399
|
+
export {
|
|
400
|
+
Account as Account,
|
|
401
|
+
type DisconnectResponse as DisconnectResponse,
|
|
402
|
+
type Introspection as Introspection,
|
|
403
|
+
};
|
|
404
|
+
|
|
405
|
+
export {
|
|
406
|
+
Webhooks as Webhooks,
|
|
407
|
+
type AccountUpdateEvent as AccountUpdateEvent,
|
|
408
|
+
type BaseWebhookEvent as BaseWebhookEvent,
|
|
409
|
+
type CompanyEvent as CompanyEvent,
|
|
410
|
+
type DirectoryEvent as DirectoryEvent,
|
|
411
|
+
type EmploymentEvent as EmploymentEvent,
|
|
412
|
+
type IndividualEvent as IndividualEvent,
|
|
413
|
+
type JobCompletionEvent as JobCompletionEvent,
|
|
414
|
+
type PayStatementEvent as PayStatementEvent,
|
|
415
|
+
type PaymentEvent as PaymentEvent,
|
|
416
|
+
type WebhookEvent as WebhookEvent,
|
|
417
|
+
};
|
|
418
|
+
|
|
419
|
+
export {
|
|
420
|
+
RequestForwarding as RequestForwarding,
|
|
421
|
+
type RequestForwardingForwardResponse as RequestForwardingForwardResponse,
|
|
422
|
+
type RequestForwardingForwardParams as RequestForwardingForwardParams,
|
|
423
|
+
};
|
|
424
|
+
|
|
425
|
+
export { Jobs as Jobs };
|
|
426
|
+
|
|
427
|
+
export { Sandbox as Sandbox };
|
|
428
|
+
|
|
429
|
+
export { Payroll as Payroll };
|
|
430
|
+
|
|
431
|
+
export { Connect as Connect };
|
|
432
|
+
|
|
433
|
+
export type ConnectionStatusType = API.ConnectionStatusType;
|
|
434
|
+
export type OperationSupport = API.OperationSupport;
|
|
435
|
+
export type OperationSupportMatrix = API.OperationSupportMatrix;
|
|
436
|
+
export type Paging = API.Paging;
|
|
387
437
|
}
|
|
388
438
|
|
|
389
439
|
export default Finch;
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../resource';
|
|
4
4
|
import * as Core from '../core';
|
|
5
|
-
import * as AccessTokensAPI from './access-tokens';
|
|
6
5
|
|
|
7
6
|
export class AccessTokens extends APIResource {
|
|
8
7
|
/**
|
|
@@ -102,7 +101,9 @@ export interface AccessTokenCreateParams {
|
|
|
102
101
|
redirect_uri?: string;
|
|
103
102
|
}
|
|
104
103
|
|
|
105
|
-
export namespace AccessTokens {
|
|
106
|
-
export
|
|
107
|
-
|
|
104
|
+
export declare namespace AccessTokens {
|
|
105
|
+
export {
|
|
106
|
+
type CreateAccessTokenResponse as CreateAccessTokenResponse,
|
|
107
|
+
type AccessTokenCreateParams as AccessTokenCreateParams,
|
|
108
|
+
};
|
|
108
109
|
}
|
package/src/resources/account.ts
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../resource';
|
|
4
4
|
import * as Core from '../core';
|
|
5
|
-
import * as AccountAPI from './account';
|
|
6
5
|
import * as Shared from './shared';
|
|
7
6
|
|
|
8
7
|
export class Account extends APIResource {
|
|
@@ -145,7 +144,6 @@ export namespace Introspection {
|
|
|
145
144
|
}
|
|
146
145
|
}
|
|
147
146
|
|
|
148
|
-
export namespace Account {
|
|
149
|
-
export
|
|
150
|
-
export import Introspection = AccountAPI.Introspection;
|
|
147
|
+
export declare namespace Account {
|
|
148
|
+
export { type DisconnectResponse as DisconnectResponse, type Introspection as Introspection };
|
|
151
149
|
}
|
|
@@ -2,15 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../resource';
|
|
4
4
|
import * as SessionsAPI from './sessions';
|
|
5
|
+
import {
|
|
6
|
+
SessionNewParams,
|
|
7
|
+
SessionNewResponse,
|
|
8
|
+
SessionReauthenticateParams,
|
|
9
|
+
SessionReauthenticateResponse,
|
|
10
|
+
Sessions,
|
|
11
|
+
} from './sessions';
|
|
5
12
|
|
|
6
13
|
export class Connect extends APIResource {
|
|
7
14
|
sessions: SessionsAPI.Sessions = new SessionsAPI.Sessions(this._client);
|
|
8
15
|
}
|
|
9
16
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
export
|
|
14
|
-
|
|
15
|
-
|
|
17
|
+
Connect.Sessions = Sessions;
|
|
18
|
+
|
|
19
|
+
export declare namespace Connect {
|
|
20
|
+
export {
|
|
21
|
+
Sessions as Sessions,
|
|
22
|
+
type SessionNewResponse as SessionNewResponse,
|
|
23
|
+
type SessionReauthenticateResponse as SessionReauthenticateResponse,
|
|
24
|
+
type SessionNewParams as SessionNewParams,
|
|
25
|
+
type SessionReauthenticateParams as SessionReauthenticateParams,
|
|
26
|
+
};
|
|
16
27
|
}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
export { Connect } from './connect';
|
|
4
4
|
export {
|
|
5
|
-
SessionNewResponse,
|
|
6
|
-
SessionReauthenticateResponse,
|
|
7
|
-
SessionNewParams,
|
|
8
|
-
SessionReauthenticateParams,
|
|
9
5
|
Sessions,
|
|
6
|
+
type SessionNewResponse,
|
|
7
|
+
type SessionReauthenticateResponse,
|
|
8
|
+
type SessionNewParams,
|
|
9
|
+
type SessionReauthenticateParams,
|
|
10
10
|
} from './sessions';
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../resource';
|
|
4
4
|
import * as Core from '../../core';
|
|
5
|
-
import * as SessionsAPI from './sessions';
|
|
6
5
|
|
|
7
6
|
export class Sessions extends APIResource {
|
|
8
7
|
/**
|
|
@@ -106,9 +105,11 @@ export interface SessionReauthenticateParams {
|
|
|
106
105
|
redirect_uri?: string | null;
|
|
107
106
|
}
|
|
108
107
|
|
|
109
|
-
export namespace Sessions {
|
|
110
|
-
export
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
108
|
+
export declare namespace Sessions {
|
|
109
|
+
export {
|
|
110
|
+
type SessionNewResponse as SessionNewResponse,
|
|
111
|
+
type SessionReauthenticateResponse as SessionReauthenticateResponse,
|
|
112
|
+
type SessionNewParams as SessionNewParams,
|
|
113
|
+
type SessionReauthenticateParams as SessionReauthenticateParams,
|
|
114
|
+
};
|
|
114
115
|
}
|
|
@@ -6,6 +6,19 @@ import * as Core from '../../../core';
|
|
|
6
6
|
import * as BenefitsAPI from './benefits';
|
|
7
7
|
import * as Shared from '../../shared';
|
|
8
8
|
import * as IndividualsAPI from './individuals';
|
|
9
|
+
import {
|
|
10
|
+
EnrolledIndividual,
|
|
11
|
+
EnrolledIndividualsSinglePage,
|
|
12
|
+
IndividualBenefit,
|
|
13
|
+
IndividualBenefitsSinglePage,
|
|
14
|
+
IndividualEnrollManyParams,
|
|
15
|
+
IndividualEnrolledIDsResponse,
|
|
16
|
+
IndividualRetrieveManyBenefitsParams,
|
|
17
|
+
IndividualUnenrollManyParams,
|
|
18
|
+
Individuals,
|
|
19
|
+
UnenrolledIndividual,
|
|
20
|
+
UnenrolledIndividualsSinglePage,
|
|
21
|
+
} from './individuals';
|
|
9
22
|
import { SinglePage } from '../../../pagination';
|
|
10
23
|
|
|
11
24
|
export class Benefits extends APIResource {
|
|
@@ -292,34 +305,43 @@ export interface BenefitUpdateParams {
|
|
|
292
305
|
description?: string;
|
|
293
306
|
}
|
|
294
307
|
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
export
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
308
|
+
Benefits.CompanyBenefitsSinglePage = CompanyBenefitsSinglePage;
|
|
309
|
+
Benefits.SupportedBenefitsSinglePage = SupportedBenefitsSinglePage;
|
|
310
|
+
Benefits.Individuals = Individuals;
|
|
311
|
+
Benefits.EnrolledIndividualsSinglePage = EnrolledIndividualsSinglePage;
|
|
312
|
+
Benefits.IndividualBenefitsSinglePage = IndividualBenefitsSinglePage;
|
|
313
|
+
Benefits.UnenrolledIndividualsSinglePage = UnenrolledIndividualsSinglePage;
|
|
314
|
+
|
|
315
|
+
export declare namespace Benefits {
|
|
316
|
+
export {
|
|
317
|
+
type BenefitContribution as BenefitContribution,
|
|
318
|
+
type BenefitFeaturesAndOperations as BenefitFeaturesAndOperations,
|
|
319
|
+
type BenefitFrequency as BenefitFrequency,
|
|
320
|
+
type BenefitType as BenefitType,
|
|
321
|
+
type BenefitsSupport as BenefitsSupport,
|
|
322
|
+
type BenfitContribution as BenfitContribution,
|
|
323
|
+
type CompanyBenefit as CompanyBenefit,
|
|
324
|
+
type CreateCompanyBenefitsResponse as CreateCompanyBenefitsResponse,
|
|
325
|
+
type SupportPerBenefitType as SupportPerBenefitType,
|
|
326
|
+
type SupportedBenefit as SupportedBenefit,
|
|
327
|
+
type UpdateCompanyBenefitResponse as UpdateCompanyBenefitResponse,
|
|
328
|
+
CompanyBenefitsSinglePage as CompanyBenefitsSinglePage,
|
|
329
|
+
SupportedBenefitsSinglePage as SupportedBenefitsSinglePage,
|
|
330
|
+
type BenefitCreateParams as BenefitCreateParams,
|
|
331
|
+
type BenefitUpdateParams as BenefitUpdateParams,
|
|
332
|
+
};
|
|
333
|
+
|
|
334
|
+
export {
|
|
335
|
+
Individuals as Individuals,
|
|
336
|
+
type EnrolledIndividual as EnrolledIndividual,
|
|
337
|
+
type IndividualBenefit as IndividualBenefit,
|
|
338
|
+
type UnenrolledIndividual as UnenrolledIndividual,
|
|
339
|
+
type IndividualEnrolledIDsResponse as IndividualEnrolledIDsResponse,
|
|
340
|
+
EnrolledIndividualsSinglePage as EnrolledIndividualsSinglePage,
|
|
341
|
+
IndividualBenefitsSinglePage as IndividualBenefitsSinglePage,
|
|
342
|
+
UnenrolledIndividualsSinglePage as UnenrolledIndividualsSinglePage,
|
|
343
|
+
type IndividualEnrollManyParams as IndividualEnrollManyParams,
|
|
344
|
+
type IndividualRetrieveManyBenefitsParams as IndividualRetrieveManyBenefitsParams,
|
|
345
|
+
type IndividualUnenrollManyParams as IndividualUnenrollManyParams,
|
|
346
|
+
};
|
|
325
347
|
}
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
export {
|
|
4
|
-
BenefitContribution,
|
|
5
|
-
BenefitFeaturesAndOperations,
|
|
6
|
-
BenefitFrequency,
|
|
7
|
-
BenefitType,
|
|
8
|
-
BenefitsSupport,
|
|
9
|
-
BenfitContribution,
|
|
10
|
-
CompanyBenefit,
|
|
11
|
-
CreateCompanyBenefitsResponse,
|
|
12
|
-
SupportPerBenefitType,
|
|
13
|
-
SupportedBenefit,
|
|
14
|
-
UpdateCompanyBenefitResponse,
|
|
15
|
-
BenefitCreateParams,
|
|
16
|
-
BenefitUpdateParams,
|
|
17
4
|
CompanyBenefitsSinglePage,
|
|
18
5
|
SupportedBenefitsSinglePage,
|
|
19
6
|
Benefits,
|
|
7
|
+
type BenefitContribution,
|
|
8
|
+
type BenefitFeaturesAndOperations,
|
|
9
|
+
type BenefitFrequency,
|
|
10
|
+
type BenefitType,
|
|
11
|
+
type BenefitsSupport,
|
|
12
|
+
type BenfitContribution,
|
|
13
|
+
type CompanyBenefit,
|
|
14
|
+
type CreateCompanyBenefitsResponse,
|
|
15
|
+
type SupportPerBenefitType,
|
|
16
|
+
type SupportedBenefit,
|
|
17
|
+
type UpdateCompanyBenefitResponse,
|
|
18
|
+
type BenefitCreateParams,
|
|
19
|
+
type BenefitUpdateParams,
|
|
20
20
|
} from './benefits';
|
|
21
21
|
export {
|
|
22
|
-
EnrolledIndividual,
|
|
23
|
-
IndividualBenefit,
|
|
24
|
-
UnenrolledIndividual,
|
|
25
|
-
IndividualEnrolledIDsResponse,
|
|
26
|
-
IndividualEnrollManyParams,
|
|
27
|
-
IndividualRetrieveManyBenefitsParams,
|
|
28
|
-
IndividualUnenrollManyParams,
|
|
29
22
|
EnrolledIndividualsSinglePage,
|
|
30
23
|
IndividualBenefitsSinglePage,
|
|
31
24
|
UnenrolledIndividualsSinglePage,
|
|
32
25
|
Individuals,
|
|
26
|
+
type EnrolledIndividual,
|
|
27
|
+
type IndividualBenefit,
|
|
28
|
+
type UnenrolledIndividual,
|
|
29
|
+
type IndividualEnrolledIDsResponse,
|
|
30
|
+
type IndividualEnrollManyParams,
|
|
31
|
+
type IndividualRetrieveManyBenefitsParams,
|
|
32
|
+
type IndividualUnenrollManyParams,
|
|
33
33
|
} from './individuals';
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
import { APIResource } from '../../../resource';
|
|
4
4
|
import { isRequestOptions } from '../../../core';
|
|
5
5
|
import * as Core from '../../../core';
|
|
6
|
-
import * as IndividualsAPI from './individuals';
|
|
7
6
|
import * as BenefitsAPI from './benefits';
|
|
8
7
|
import { SinglePage } from '../../../pagination';
|
|
9
8
|
|
|
@@ -223,15 +222,21 @@ export interface IndividualUnenrollManyParams {
|
|
|
223
222
|
individual_ids?: Array<string>;
|
|
224
223
|
}
|
|
225
224
|
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
export
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
225
|
+
Individuals.EnrolledIndividualsSinglePage = EnrolledIndividualsSinglePage;
|
|
226
|
+
Individuals.IndividualBenefitsSinglePage = IndividualBenefitsSinglePage;
|
|
227
|
+
Individuals.UnenrolledIndividualsSinglePage = UnenrolledIndividualsSinglePage;
|
|
228
|
+
|
|
229
|
+
export declare namespace Individuals {
|
|
230
|
+
export {
|
|
231
|
+
type EnrolledIndividual as EnrolledIndividual,
|
|
232
|
+
type IndividualBenefit as IndividualBenefit,
|
|
233
|
+
type UnenrolledIndividual as UnenrolledIndividual,
|
|
234
|
+
type IndividualEnrolledIDsResponse as IndividualEnrolledIDsResponse,
|
|
235
|
+
EnrolledIndividualsSinglePage as EnrolledIndividualsSinglePage,
|
|
236
|
+
IndividualBenefitsSinglePage as IndividualBenefitsSinglePage,
|
|
237
|
+
UnenrolledIndividualsSinglePage as UnenrolledIndividualsSinglePage,
|
|
238
|
+
type IndividualEnrollManyParams as IndividualEnrollManyParams,
|
|
239
|
+
type IndividualRetrieveManyBenefitsParams as IndividualRetrieveManyBenefitsParams,
|
|
240
|
+
type IndividualUnenrollManyParams as IndividualUnenrollManyParams,
|
|
241
|
+
};
|
|
237
242
|
}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../resource';
|
|
4
4
|
import * as Core from '../../core';
|
|
5
|
-
import * as CompanyAPI from './company';
|
|
6
5
|
import * as HRISAPI from './hris';
|
|
7
6
|
|
|
8
7
|
export class CompanyResource extends APIResource {
|
|
@@ -135,6 +134,6 @@ export namespace Company {
|
|
|
135
134
|
}
|
|
136
135
|
}
|
|
137
136
|
|
|
138
|
-
export namespace CompanyResource {
|
|
139
|
-
export
|
|
137
|
+
export declare namespace CompanyResource {
|
|
138
|
+
export { type Company as Company };
|
|
140
139
|
}
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
import { APIResource } from '../../resource';
|
|
4
4
|
import { isRequestOptions } from '../../core';
|
|
5
5
|
import * as Core from '../../core';
|
|
6
|
-
import * as DirectoryAPI from './directory';
|
|
7
6
|
import { IndividualsPage, type IndividualsPageParams } from '../../pagination';
|
|
8
7
|
|
|
9
8
|
export class Directory extends APIResource {
|
|
@@ -94,8 +93,10 @@ export interface DirectoryListParams extends IndividualsPageParams {}
|
|
|
94
93
|
|
|
95
94
|
export interface DirectoryListIndividualsParams extends IndividualsPageParams {}
|
|
96
95
|
|
|
97
|
-
export namespace Directory {
|
|
98
|
-
export
|
|
99
|
-
|
|
100
|
-
|
|
96
|
+
export declare namespace Directory {
|
|
97
|
+
export {
|
|
98
|
+
type IndividualInDirectory as IndividualInDirectory,
|
|
99
|
+
type DirectoryListParams as DirectoryListParams,
|
|
100
|
+
type DirectoryListIndividualsParams as DirectoryListIndividualsParams,
|
|
101
|
+
};
|
|
101
102
|
}
|