Skip to content

Commit

Permalink
fix: use relative paths (#414)
Browse files Browse the repository at this point in the history
  • Loading branch information
Stainless Bot authored and stainless-app[bot] committed Jul 23, 2024
1 parent 038f13b commit e655619
Show file tree
Hide file tree
Showing 31 changed files with 145 additions and 145 deletions.
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import * as Errors from './error';
import * as Uploads from './uploads';
import { type Agent } from './_shims/index';
import * as qs from 'qs';
import * as Core from '@tryfinch/finch-api/core';
import * as Pagination from '@tryfinch/finch-api/pagination';
import * as API from '@tryfinch/finch-api/resources/index';
import * as Core from './core';
import * as Pagination from './pagination';
import * as API from './resources/index';

export interface ClientOptions {
accessToken?: string | null | undefined;
Expand Down
4 changes: 2 additions & 2 deletions src/pagination.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import { AbstractPage, Response, APIClient, FinalRequestOptions, PageInfo } from './core';
import * as Shared from '@tryfinch/finch-api/resources/shared';
import * as DirectoryAPI from '@tryfinch/finch-api/resources/hris/directory';
import * as Shared from './resources/shared';
import * as DirectoryAPI from './resources/hris/directory';

export type SinglePageResponse<Item> = Item[];

Expand Down
6 changes: 3 additions & 3 deletions src/resources/access-tokens.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import { APIResource } from '@tryfinch/finch-api/resource';
import * as Core from '@tryfinch/finch-api/core';
import * as AccessTokensAPI from '@tryfinch/finch-api/resources/access-tokens';
import { APIResource } from '../resource';
import * as Core from '../core';
import * as AccessTokensAPI from './access-tokens';

export class AccessTokens extends APIResource {
/**
Expand Down
8 changes: 4 additions & 4 deletions src/resources/account.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import { APIResource } from '@tryfinch/finch-api/resource';
import * as Core from '@tryfinch/finch-api/core';
import * as AccountAPI from '@tryfinch/finch-api/resources/account';
import * as Shared from '@tryfinch/finch-api/resources/shared';
import { APIResource } from '../resource';
import * as Core from '../core';
import * as AccountAPI from './account';
import * as Shared from './shared';

export class Account extends APIResource {
/**
Expand Down
14 changes: 7 additions & 7 deletions src/resources/hris/benefits/benefits.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import { APIResource } from '@tryfinch/finch-api/resource';
import { isRequestOptions } from '@tryfinch/finch-api/core';
import * as Core from '@tryfinch/finch-api/core';
import * as BenefitsAPI from '@tryfinch/finch-api/resources/hris/benefits/benefits';
import * as Shared from '@tryfinch/finch-api/resources/shared';
import * as IndividualsAPI from '@tryfinch/finch-api/resources/hris/benefits/individuals';
import { SinglePage } from '@tryfinch/finch-api/pagination';
import { APIResource } from '../../../resource';
import { isRequestOptions } from '../../../core';
import * as Core from '../../../core';
import * as BenefitsAPI from './benefits';
import * as Shared from '../../shared';
import * as IndividualsAPI from './individuals';
import { SinglePage } from '../../../pagination';

export class Benefits extends APIResource {
individuals: IndividualsAPI.Individuals = new IndividualsAPI.Individuals(this._client);
Expand Down
12 changes: 6 additions & 6 deletions src/resources/hris/benefits/individuals.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import { APIResource } from '@tryfinch/finch-api/resource';
import { isRequestOptions } from '@tryfinch/finch-api/core';
import * as Core from '@tryfinch/finch-api/core';
import * as IndividualsAPI from '@tryfinch/finch-api/resources/hris/benefits/individuals';
import * as BenefitsAPI from '@tryfinch/finch-api/resources/hris/benefits/benefits';
import { SinglePage } from '@tryfinch/finch-api/pagination';
import { APIResource } from '../../../resource';
import { isRequestOptions } from '../../../core';
import * as Core from '../../../core';
import * as IndividualsAPI from './individuals';
import * as BenefitsAPI from './benefits';
import { SinglePage } from '../../../pagination';

export class Individuals extends APIResource {
/**
Expand Down
8 changes: 4 additions & 4 deletions src/resources/hris/company.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import { APIResource } from '@tryfinch/finch-api/resource';
import * as Core from '@tryfinch/finch-api/core';
import * as CompanyAPI from '@tryfinch/finch-api/resources/hris/company';
import * as HRISAPI from '@tryfinch/finch-api/resources/hris/hris';
import { APIResource } from '../../resource';
import * as Core from '../../core';
import * as CompanyAPI from './company';
import * as HRISAPI from './hris';

export class CompanyResource extends APIResource {
/**
Expand Down
10 changes: 5 additions & 5 deletions src/resources/hris/directory.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import { APIResource } from '@tryfinch/finch-api/resource';
import { isRequestOptions } from '@tryfinch/finch-api/core';
import * as Core from '@tryfinch/finch-api/core';
import * as DirectoryAPI from '@tryfinch/finch-api/resources/hris/directory';
import { IndividualsPage, type IndividualsPageParams } from '@tryfinch/finch-api/pagination';
import { APIResource } from '../../resource';
import { isRequestOptions } from '../../core';
import * as Core from '../../core';
import * as DirectoryAPI from './directory';
import { IndividualsPage, type IndividualsPageParams } from '../../pagination';

export class Directory extends APIResource {
/**
Expand Down
10 changes: 5 additions & 5 deletions src/resources/hris/employments.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import { APIResource } from '@tryfinch/finch-api/resource';
import * as Core from '@tryfinch/finch-api/core';
import * as EmploymentsAPI from '@tryfinch/finch-api/resources/hris/employments';
import * as HRISAPI from '@tryfinch/finch-api/resources/hris/hris';
import { ResponsesPage } from '@tryfinch/finch-api/pagination';
import { APIResource } from '../../resource';
import * as Core from '../../core';
import * as EmploymentsAPI from './employments';
import * as HRISAPI from './hris';
import { ResponsesPage } from '../../pagination';

export class Employments extends APIResource {
/**
Expand Down
18 changes: 9 additions & 9 deletions src/resources/hris/hris.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import { APIResource } from '@tryfinch/finch-api/resource';
import * as HRISAPI from '@tryfinch/finch-api/resources/hris/hris';
import * as CompanyAPI from '@tryfinch/finch-api/resources/hris/company';
import * as DirectoryAPI from '@tryfinch/finch-api/resources/hris/directory';
import * as EmploymentsAPI from '@tryfinch/finch-api/resources/hris/employments';
import * as IndividualsAPI from '@tryfinch/finch-api/resources/hris/individuals';
import * as PayStatementsAPI from '@tryfinch/finch-api/resources/hris/pay-statements';
import * as PaymentsAPI from '@tryfinch/finch-api/resources/hris/payments';
import * as BenefitsAPI from '@tryfinch/finch-api/resources/hris/benefits/benefits';
import { APIResource } from '../../resource';
import * as HRISAPI from './hris';
import * as CompanyAPI from './company';
import * as DirectoryAPI from './directory';
import * as EmploymentsAPI from './employments';
import * as IndividualsAPI from './individuals';
import * as PayStatementsAPI from './pay-statements';
import * as PaymentsAPI from './payments';
import * as BenefitsAPI from './benefits/benefits';

export class HRIS extends APIResource {
company: CompanyAPI.CompanyResource = new CompanyAPI.CompanyResource(this._client);
Expand Down
12 changes: 6 additions & 6 deletions src/resources/hris/individuals.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import { APIResource } from '@tryfinch/finch-api/resource';
import { isRequestOptions } from '@tryfinch/finch-api/core';
import * as Core from '@tryfinch/finch-api/core';
import * as IndividualsAPI from '@tryfinch/finch-api/resources/hris/individuals';
import * as HRISAPI from '@tryfinch/finch-api/resources/hris/hris';
import { ResponsesPage } from '@tryfinch/finch-api/pagination';
import { APIResource } from '../../resource';
import { isRequestOptions } from '../../core';
import * as Core from '../../core';
import * as IndividualsAPI from './individuals';
import * as HRISAPI from './hris';
import { ResponsesPage } from '../../pagination';

export class Individuals extends APIResource {
/**
Expand Down
14 changes: 7 additions & 7 deletions src/resources/hris/pay-statements.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import { APIResource } from '@tryfinch/finch-api/resource';
import * as Core from '@tryfinch/finch-api/core';
import * as PayStatementsAPI from '@tryfinch/finch-api/resources/hris/pay-statements';
import * as Shared from '@tryfinch/finch-api/resources/shared';
import * as HRISAPI from '@tryfinch/finch-api/resources/hris/hris';
import * as BenefitsAPI from '@tryfinch/finch-api/resources/hris/benefits/benefits';
import { ResponsesPage } from '@tryfinch/finch-api/pagination';
import { APIResource } from '../../resource';
import * as Core from '../../core';
import * as PayStatementsAPI from './pay-statements';
import * as Shared from '../shared';
import * as HRISAPI from './hris';
import * as BenefitsAPI from './benefits/benefits';
import { ResponsesPage } from '../../pagination';

export class PayStatements extends APIResource {
/**
Expand Down
10 changes: 5 additions & 5 deletions src/resources/hris/payments.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import { APIResource } from '@tryfinch/finch-api/resource';
import * as Core from '@tryfinch/finch-api/core';
import * as PaymentsAPI from '@tryfinch/finch-api/resources/hris/payments';
import * as HRISAPI from '@tryfinch/finch-api/resources/hris/hris';
import { SinglePage } from '@tryfinch/finch-api/pagination';
import { APIResource } from '../../resource';
import * as Core from '../../core';
import * as PaymentsAPI from './payments';
import * as HRISAPI from './hris';
import { SinglePage } from '../../pagination';

export class Payments extends APIResource {
/**
Expand Down
10 changes: 5 additions & 5 deletions src/resources/jobs/automated.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import { APIResource } from '@tryfinch/finch-api/resource';
import { isRequestOptions } from '@tryfinch/finch-api/core';
import * as Core from '@tryfinch/finch-api/core';
import * as AutomatedAPI from '@tryfinch/finch-api/resources/jobs/automated';
import { Page, type PageParams } from '@tryfinch/finch-api/pagination';
import { APIResource } from '../../resource';
import { isRequestOptions } from '../../core';
import * as Core from '../../core';
import * as AutomatedAPI from './automated';
import { Page, type PageParams } from '../../pagination';

export class Automated extends APIResource {
/**
Expand Down
6 changes: 3 additions & 3 deletions src/resources/jobs/jobs.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import { APIResource } from '@tryfinch/finch-api/resource';
import * as AutomatedAPI from '@tryfinch/finch-api/resources/jobs/automated';
import * as ManualAPI from '@tryfinch/finch-api/resources/jobs/manual';
import { APIResource } from '../../resource';
import * as AutomatedAPI from './automated';
import * as ManualAPI from './manual';

export class Jobs extends APIResource {
automated: AutomatedAPI.Automated = new AutomatedAPI.Automated(this._client);
Expand Down
6 changes: 3 additions & 3 deletions src/resources/jobs/manual.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import { APIResource } from '@tryfinch/finch-api/resource';
import * as Core from '@tryfinch/finch-api/core';
import * as ManualAPI from '@tryfinch/finch-api/resources/jobs/manual';
import { APIResource } from '../../resource';
import * as Core from '../../core';
import * as ManualAPI from './manual';

export class Manual extends APIResource {
/**
Expand Down
10 changes: 5 additions & 5 deletions src/resources/payroll/pay-groups.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import { APIResource } from '@tryfinch/finch-api/resource';
import { isRequestOptions } from '@tryfinch/finch-api/core';
import * as Core from '@tryfinch/finch-api/core';
import * as PayGroupsAPI from '@tryfinch/finch-api/resources/payroll/pay-groups';
import { SinglePage } from '@tryfinch/finch-api/pagination';
import { APIResource } from '../../resource';
import { isRequestOptions } from '../../core';
import * as Core from '../../core';
import * as PayGroupsAPI from './pay-groups';
import { SinglePage } from '../../pagination';

export class PayGroups extends APIResource {
/**
Expand Down
4 changes: 2 additions & 2 deletions src/resources/payroll/payroll.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import { APIResource } from '@tryfinch/finch-api/resource';
import * as PayGroupsAPI from '@tryfinch/finch-api/resources/payroll/pay-groups';
import { APIResource } from '../../resource';
import * as PayGroupsAPI from './pay-groups';

export class Payroll extends APIResource {
payGroups: PayGroupsAPI.PayGroups = new PayGroupsAPI.PayGroups(this._client);
Expand Down
10 changes: 5 additions & 5 deletions src/resources/providers.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import { APIResource } from '@tryfinch/finch-api/resource';
import * as Core from '@tryfinch/finch-api/core';
import * as ProvidersAPI from '@tryfinch/finch-api/resources/providers';
import * as BenefitsAPI from '@tryfinch/finch-api/resources/hris/benefits/benefits';
import { SinglePage } from '@tryfinch/finch-api/pagination';
import { APIResource } from '../resource';
import * as Core from '../core';
import * as ProvidersAPI from './providers';
import * as BenefitsAPI from './hris/benefits/benefits';
import { SinglePage } from '../pagination';

export class Providers extends APIResource {
/**
Expand Down
6 changes: 3 additions & 3 deletions src/resources/request-forwarding.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import { APIResource } from '@tryfinch/finch-api/resource';
import * as Core from '@tryfinch/finch-api/core';
import * as RequestForwardingAPI from '@tryfinch/finch-api/resources/request-forwarding';
import { APIResource } from '../resource';
import * as Core from '../core';
import * as RequestForwardingAPI from './request-forwarding';

export class RequestForwarding extends APIResource {
/**
Expand Down
8 changes: 4 additions & 4 deletions src/resources/sandbox/company.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import { APIResource } from '@tryfinch/finch-api/resource';
import * as Core from '@tryfinch/finch-api/core';
import * as CompanyAPI from '@tryfinch/finch-api/resources/sandbox/company';
import * as HRISAPI from '@tryfinch/finch-api/resources/hris/hris';
import { APIResource } from '../../resource';
import * as Core from '../../core';
import * as CompanyAPI from './company';
import * as HRISAPI from '../hris/hris';

export class Company extends APIResource {
/**
Expand Down
10 changes: 5 additions & 5 deletions src/resources/sandbox/connections/accounts.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import { APIResource } from '@tryfinch/finch-api/resource';
import { isRequestOptions } from '@tryfinch/finch-api/core';
import * as Core from '@tryfinch/finch-api/core';
import * as AccountsAPI from '@tryfinch/finch-api/resources/sandbox/connections/accounts';
import * as Shared from '@tryfinch/finch-api/resources/shared';
import { APIResource } from '../../../resource';
import { isRequestOptions } from '../../../core';
import * as Core from '../../../core';
import * as AccountsAPI from './accounts';
import * as Shared from '../../shared';

export class Accounts extends APIResource {
/**
Expand Down
8 changes: 4 additions & 4 deletions src/resources/sandbox/connections/connections.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import { APIResource } from '@tryfinch/finch-api/resource';
import * as Core from '@tryfinch/finch-api/core';
import * as ConnectionsAPI from '@tryfinch/finch-api/resources/sandbox/connections/connections';
import * as AccountsAPI from '@tryfinch/finch-api/resources/sandbox/connections/accounts';
import { APIResource } from '../../../resource';
import * as Core from '../../../core';
import * as ConnectionsAPI from './connections';
import * as AccountsAPI from './accounts';

export class Connections extends APIResource {
accounts: AccountsAPI.Accounts = new AccountsAPI.Accounts(this._client);
Expand Down
8 changes: 4 additions & 4 deletions src/resources/sandbox/directory.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import { APIResource } from '@tryfinch/finch-api/resource';
import * as Core from '@tryfinch/finch-api/core';
import * as DirectoryAPI from '@tryfinch/finch-api/resources/sandbox/directory';
import * as HRISAPI from '@tryfinch/finch-api/resources/hris/hris';
import { APIResource } from '../../resource';
import * as Core from '../../core';
import * as DirectoryAPI from './directory';
import * as HRISAPI from '../hris/hris';

export class Directory extends APIResource {
/**
Expand Down
10 changes: 5 additions & 5 deletions src/resources/sandbox/employment.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import { APIResource } from '@tryfinch/finch-api/resource';
import { isRequestOptions } from '@tryfinch/finch-api/core';
import * as Core from '@tryfinch/finch-api/core';
import * as EmploymentAPI from '@tryfinch/finch-api/resources/sandbox/employment';
import * as HRISAPI from '@tryfinch/finch-api/resources/hris/hris';
import { APIResource } from '../../resource';
import { isRequestOptions } from '../../core';
import * as Core from '../../core';
import * as EmploymentAPI from './employment';
import * as HRISAPI from '../hris/hris';

export class Employment extends APIResource {
/**
Expand Down
10 changes: 5 additions & 5 deletions src/resources/sandbox/individual.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

import { APIResource } from '@tryfinch/finch-api/resource';
import { isRequestOptions } from '@tryfinch/finch-api/core';
import * as Core from '@tryfinch/finch-api/core';
import * as IndividualAPI from '@tryfinch/finch-api/resources/sandbox/individual';
import * as HRISAPI from '@tryfinch/finch-api/resources/hris/hris';
import { APIResource } from '../../resource';
import { isRequestOptions } from '../../core';
import * as Core from '../../core';
import * as IndividualAPI from './individual';
import * as HRISAPI from '../hris/hris';

export class Individual extends APIResource {
/**
Expand Down
Loading

0 comments on commit e655619

Please sign in to comment.