@tryfinch/finch-api 5.7.0 → 5.7.2

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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 5.7.2 (2023-10-25)
4
+
5
+ Full Changelog: [v5.7.1...v5.7.2](https://github.com/Finch-API/finch-api-node/compare/v5.7.1...v5.7.2)
6
+
7
+ ### Bug Fixes
8
+
9
+ * typo in build script ([#209](https://github.com/Finch-API/finch-api-node/issues/209)) ([e991d97](https://github.com/Finch-API/finch-api-node/commit/e991d97fdc63c0efd364806a780c7dcd7192592b))
10
+
11
+ ## 5.7.1 (2023-10-24)
12
+
13
+ Full Changelog: [v5.7.0...v5.7.1](https://github.com/Finch-API/finch-api-node/compare/v5.7.0...v5.7.1)
14
+
3
15
  ## 5.7.0 (2023-10-24)
4
16
 
5
17
  Full Changelog: [v5.6.0...v5.7.0](https://github.com/Finch-API/finch-api-node/compare/v5.6.0...v5.7.0)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryfinch/finch-api",
3
- "version": "5.7.0",
3
+ "version": "5.7.2",
4
4
  "description": "Client library for the Finch API",
5
5
  "author": "Finch <founders@tryfinch.com>",
6
6
  "types": "./index.d.ts",
@@ -2,7 +2,7 @@
2
2
  * Disclaimer: modules in _shims aren't intended to be imported by SDK users.
3
3
  */
4
4
  import { manual } from './manual-types';
5
- import * as auto from "../ch/finch-api/_shims/auto/types";
5
+ import * as auto from "./auto/types";
6
6
  import { type RequestOptions } from '../core';
7
7
 
8
8
  type SelectType<Manual, Auto> = unknown extends Manual ? Auto : Manual;
@@ -2,6 +2,6 @@
2
2
  * Disclaimer: modules in _shims aren't intended to be imported by SDK users.
3
3
  */
4
4
  import * as shims from './registry.mjs';
5
- import * as auto from "../ch/finch-api/_shims/auto/runtime";
5
+ import * as auto from "./auto/runtime";
6
6
  if (!shims.kind) shims.setShims(auto.getRuntime(), { auto: true });
7
7
  export * from './registry.mjs';
package/src/index.ts CHANGED
@@ -5,7 +5,7 @@ import * as Pagination from './pagination';
5
5
  import * as Errors from './error';
6
6
  import { type Agent } from './_shims/index';
7
7
  import * as Uploads from './uploads';
8
- import * as API from "./ch/finch-api/resources/index";
8
+ import * as API from "./resources/index";
9
9
 
10
10
  export interface ClientOptions {
11
11
  accessToken?: string | null;
package/src/pagination.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  // File generated from our OpenAPI spec by Stainless.
2
2
 
3
3
  import { AbstractPage, Response, APIClient, FinalRequestOptions, PageInfo } from './core';
4
- import * as DirectoryAPI from "./ch/finch-api/resources/hris/directory";
5
- import * as HRISAPI from "./ch/finch-api/resources/hris/hris";
4
+ import * as DirectoryAPI from "./resources/hris/directory";
5
+ import * as HRISAPI from "./resources/hris/hris";
6
6
 
7
7
  export type SinglePageResponse<Item> = Item[];
8
8
 
@@ -1,8 +1,8 @@
1
1
  // File generated from our OpenAPI spec by Stainless.
2
2
 
3
- import * as Core from "../ch/finch-api/core";
4
- import { APIResource } from "../ch/finch-api/resource";
5
- import * as AccountAPI from "../ch/finch-api/resources/account";
3
+ import * as Core from "../core";
4
+ import { APIResource } from "../resource";
5
+ import * as AccountAPI from "./account";
6
6
 
7
7
  export class Account extends APIResource {
8
8
  /**
@@ -1,11 +1,11 @@
1
1
  // File generated from our OpenAPI spec by Stainless.
2
2
 
3
- import * as Core from "../../../ch/finch-api/core";
4
- import { APIResource } from "../../../ch/finch-api/resource";
5
- import { isRequestOptions } from "../../../ch/finch-api/core";
6
- import * as BenefitsAPI from "../../../ch/finch-api/resources/hris/benefits/benefits";
7
- import * as IndividualsAPI from "../../../ch/finch-api/resources/hris/benefits/individuals";
8
- import { SinglePage } from "../../../ch/finch-api/pagination";
3
+ import * as Core from "../../../core";
4
+ import { APIResource } from "../../../resource";
5
+ import { isRequestOptions } from "../../../core";
6
+ import * as BenefitsAPI from "./benefits";
7
+ import * as IndividualsAPI from "./individuals";
8
+ import { SinglePage } from "../../../pagination";
9
9
 
10
10
  export class Benefits extends APIResource {
11
11
  individuals: IndividualsAPI.Individuals = new IndividualsAPI.Individuals(this.client);
@@ -1,11 +1,11 @@
1
1
  // File generated from our OpenAPI spec by Stainless.
2
2
 
3
- import * as Core from "../../../ch/finch-api/core";
4
- import { APIResource } from "../../../ch/finch-api/resource";
5
- import { isRequestOptions } from "../../../ch/finch-api/core";
6
- import * as IndividualsAPI from "../../../ch/finch-api/resources/hris/benefits/individuals";
7
- import * as BenefitsAPI from "../../../ch/finch-api/resources/hris/benefits/benefits";
8
- import { SinglePage } from "../../../ch/finch-api/pagination";
3
+ import * as Core from "../../../core";
4
+ import { APIResource } from "../../../resource";
5
+ import { isRequestOptions } from "../../../core";
6
+ import * as IndividualsAPI from "./individuals";
7
+ import * as BenefitsAPI from "./benefits";
8
+ import { SinglePage } from "../../../pagination";
9
9
 
10
10
  export class Individuals extends APIResource {
11
11
  /**
@@ -1,9 +1,9 @@
1
1
  // File generated from our OpenAPI spec by Stainless.
2
2
 
3
- import * as Core from "../../ch/finch-api/core";
4
- import { APIResource } from "../../ch/finch-api/resource";
5
- import * as CompanyAPI from "../../ch/finch-api/resources/hris/company";
6
- import * as HRISAPI from "../../ch/finch-api/resources/hris/hris";
3
+ import * as Core from "../../core";
4
+ import { APIResource } from "../../resource";
5
+ import * as CompanyAPI from "./company";
6
+ import * as HRISAPI from "./hris";
7
7
 
8
8
  export class CompanyResource extends APIResource {
9
9
  /**
@@ -1,10 +1,10 @@
1
1
  // File generated from our OpenAPI spec by Stainless.
2
2
 
3
- import * as Core from "../../ch/finch-api/core";
4
- import { APIResource } from "../../ch/finch-api/resource";
5
- import { isRequestOptions } from "../../ch/finch-api/core";
6
- import * as DirectoryAPI from "../../ch/finch-api/resources/hris/directory";
7
- import { IndividualsPage, type IndividualsPageParams } from "../../ch/finch-api/pagination";
3
+ import * as Core from "../../core";
4
+ import { APIResource } from "../../resource";
5
+ import { isRequestOptions } from "../../core";
6
+ import * as DirectoryAPI from "./directory";
7
+ import { IndividualsPage, type IndividualsPageParams } from "../../pagination";
8
8
 
9
9
  export class Directory extends APIResource {
10
10
  /**
@@ -1,10 +1,10 @@
1
1
  // File generated from our OpenAPI spec by Stainless.
2
2
 
3
- import * as Core from "../../ch/finch-api/core";
4
- import { APIResource } from "../../ch/finch-api/resource";
5
- import * as EmploymentsAPI from "../../ch/finch-api/resources/hris/employments";
6
- import * as HRISAPI from "../../ch/finch-api/resources/hris/hris";
7
- import { ResponsesPage } from "../../ch/finch-api/pagination";
3
+ import * as Core from "../../core";
4
+ import { APIResource } from "../../resource";
5
+ import * as EmploymentsAPI from "./employments";
6
+ import * as HRISAPI from "./hris";
7
+ import { ResponsesPage } from "../../pagination";
8
8
 
9
9
  export class Employments extends APIResource {
10
10
  /**
@@ -1,14 +1,14 @@
1
1
  // File generated from our OpenAPI spec by Stainless.
2
2
 
3
- import { APIResource } from "../../ch/finch-api/resource";
4
- import * as HRISAPI from "../../ch/finch-api/resources/hris/hris";
5
- import * as CompanyAPI from "../../ch/finch-api/resources/hris/company";
6
- import * as DirectoryAPI from "../../ch/finch-api/resources/hris/directory";
7
- import * as EmploymentsAPI from "../../ch/finch-api/resources/hris/employments";
8
- import * as IndividualsAPI from "../../ch/finch-api/resources/hris/individuals";
9
- import * as PayStatementsAPI from "../../ch/finch-api/resources/hris/pay-statements";
10
- import * as PaymentsAPI from "../../ch/finch-api/resources/hris/payments";
11
- import * as BenefitsAPI from "../../ch/finch-api/resources/hris/benefits/benefits";
3
+ import { APIResource } from "../../resource";
4
+ import * as HRISAPI from "./hris";
5
+ import * as CompanyAPI from "./company";
6
+ import * as DirectoryAPI from "./directory";
7
+ import * as EmploymentsAPI from "./employments";
8
+ import * as IndividualsAPI from "./individuals";
9
+ import * as PayStatementsAPI from "./pay-statements";
10
+ import * as PaymentsAPI from "./payments";
11
+ import * as BenefitsAPI from "./benefits/benefits";
12
12
 
13
13
  export class HRIS extends APIResource {
14
14
  company: CompanyAPI.CompanyResource = new CompanyAPI.CompanyResource(this.client);
@@ -1,11 +1,11 @@
1
1
  // File generated from our OpenAPI spec by Stainless.
2
2
 
3
- import * as Core from "../../ch/finch-api/core";
4
- import { APIResource } from "../../ch/finch-api/resource";
5
- import { isRequestOptions } from "../../ch/finch-api/core";
6
- import * as IndividualsAPI from "../../ch/finch-api/resources/hris/individuals";
7
- import * as HRISAPI from "../../ch/finch-api/resources/hris/hris";
8
- import { ResponsesPage } from "../../ch/finch-api/pagination";
3
+ import * as Core from "../../core";
4
+ import { APIResource } from "../../resource";
5
+ import { isRequestOptions } from "../../core";
6
+ import * as IndividualsAPI from "./individuals";
7
+ import * as HRISAPI from "./hris";
8
+ import { ResponsesPage } from "../../pagination";
9
9
 
10
10
  export class Individuals extends APIResource {
11
11
  /**
@@ -1,11 +1,11 @@
1
1
  // File generated from our OpenAPI spec by Stainless.
2
2
 
3
- import * as Core from "../../ch/finch-api/core";
4
- import { APIResource } from "../../ch/finch-api/resource";
5
- import * as PayStatementsAPI from "../../ch/finch-api/resources/hris/pay-statements";
6
- import * as HRISAPI from "../../ch/finch-api/resources/hris/hris";
7
- import * as BenefitsAPI from "../../ch/finch-api/resources/hris/benefits/benefits";
8
- import { ResponsesPage } from "../../ch/finch-api/pagination";
3
+ import * as Core from "../../core";
4
+ import { APIResource } from "../../resource";
5
+ import * as PayStatementsAPI from "./pay-statements";
6
+ import * as HRISAPI from "./hris";
7
+ import * as BenefitsAPI from "./benefits/benefits";
8
+ import { ResponsesPage } from "../../pagination";
9
9
 
10
10
  export class PayStatements extends APIResource {
11
11
  /**
@@ -1,10 +1,10 @@
1
1
  // File generated from our OpenAPI spec by Stainless.
2
2
 
3
- import * as Core from "../../ch/finch-api/core";
4
- import { APIResource } from "../../ch/finch-api/resource";
5
- import * as PaymentsAPI from "../../ch/finch-api/resources/hris/payments";
6
- import * as HRISAPI from "../../ch/finch-api/resources/hris/hris";
7
- import { SinglePage } from "../../ch/finch-api/pagination";
3
+ import * as Core from "../../core";
4
+ import { APIResource } from "../../resource";
5
+ import * as PaymentsAPI from "./payments";
6
+ import * as HRISAPI from "./hris";
7
+ import { SinglePage } from "../../pagination";
8
8
 
9
9
  export class Payments extends APIResource {
10
10
  /**
@@ -1,9 +1,9 @@
1
1
  // File generated from our OpenAPI spec by Stainless.
2
2
 
3
- import * as Core from "../ch/finch-api/core";
4
- import { APIResource } from "../ch/finch-api/resource";
5
- import * as ProvidersAPI from "../ch/finch-api/resources/providers";
6
- import { SinglePage } from "../ch/finch-api/pagination";
3
+ import * as Core from "../core";
4
+ import { APIResource } from "../resource";
5
+ import * as ProvidersAPI from "./providers";
6
+ import { SinglePage } from "../pagination";
7
7
 
8
8
  export class Providers extends APIResource {
9
9
  /**
@@ -1,8 +1,8 @@
1
1
  // File generated from our OpenAPI spec by Stainless.
2
2
 
3
- import * as Core from "../ch/finch-api/core";
4
- import { APIResource } from "../ch/finch-api/resource";
5
- import * as RequestForwardingAPI from "../ch/finch-api/resources/request-forwarding";
3
+ import * as Core from "../core";
4
+ import { APIResource } from "../resource";
5
+ import * as RequestForwardingAPI from "./request-forwarding";
6
6
 
7
7
  export class RequestForwarding extends APIResource {
8
8
  /**
@@ -1,8 +1,8 @@
1
1
  // File generated from our OpenAPI spec by Stainless.
2
2
 
3
- import { APIResource } from "../ch/finch-api/resource";
3
+ import { APIResource } from "../resource";
4
4
  import { createHmac } from 'crypto';
5
- import { getRequiredHeader, HeadersLike } from "../ch/finch-api/core";
5
+ import { getRequiredHeader, HeadersLike } from "../core";
6
6
 
7
7
  export class Webhooks extends APIResource {
8
8
  /**
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '5.7.0'; // x-release-please-version
1
+ export const VERSION = '5.7.2'; // x-release-please-version
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "5.7.0";
1
+ export declare const VERSION = "5.7.2";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '5.7.0'; // x-release-please-version
4
+ exports.VERSION = '5.7.2'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '5.7.0'; // x-release-please-version
1
+ export const VERSION = '5.7.2'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map