Skip to content

Commit

Permalink
chore: rebuild project due to codegen change (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
Stainless Bot committed Nov 6, 2024
1 parent 44f18f2 commit 100bd01
Show file tree
Hide file tree
Showing 31 changed files with 1,166 additions and 738 deletions.
524 changes: 354 additions & 170 deletions src/index.ts

Large diffs are not rendered by default.

13 changes: 7 additions & 6 deletions src/resources/alerts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import { APIResource } from '../resource';
import * as Core from '../core';
import * as AlertsAPI from './alerts';
import * as Shared from './shared';

export class Alerts extends APIResource {
Expand Down Expand Up @@ -153,9 +152,11 @@ export interface AlertArchiveParams {
release_uniqueness_key?: boolean;
}

export namespace Alerts {
export import AlertCreateResponse = AlertsAPI.AlertCreateResponse;
export import AlertArchiveResponse = AlertsAPI.AlertArchiveResponse;
export import AlertCreateParams = AlertsAPI.AlertCreateParams;
export import AlertArchiveParams = AlertsAPI.AlertArchiveParams;
export declare namespace Alerts {
export {
type AlertCreateResponse as AlertCreateResponse,
type AlertArchiveResponse as AlertArchiveResponse,
type AlertCreateParams as AlertCreateParams,
type AlertArchiveParams as AlertArchiveParams,
};
}
13 changes: 8 additions & 5 deletions src/resources/audit-logs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import { APIResource } from '../resource';
import { isRequestOptions } from '../core';
import * as Core from '../core';
import * as AuditLogsAPI from './audit-logs';
import { CursorPage, type CursorPageParams } from '../pagination';

export class AuditLogs extends APIResource {
Expand Down Expand Up @@ -91,8 +90,12 @@ export interface AuditLogListParams extends CursorPageParams {
starting_on?: string;
}

export namespace AuditLogs {
export import AuditLogListResponse = AuditLogsAPI.AuditLogListResponse;
export import AuditLogListResponsesCursorPage = AuditLogsAPI.AuditLogListResponsesCursorPage;
export import AuditLogListParams = AuditLogsAPI.AuditLogListParams;
AuditLogs.AuditLogListResponsesCursorPage = AuditLogListResponsesCursorPage;

export declare namespace AuditLogs {
export {
type AuditLogListResponse as AuditLogListResponse,
AuditLogListResponsesCursorPage as AuditLogListResponsesCursorPage,
type AuditLogListParams as AuditLogListParams,
};
}
25 changes: 14 additions & 11 deletions src/resources/billable-metrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import { APIResource } from '../resource';
import { isRequestOptions } from '../core';
import * as Core from '../core';
import * as BillableMetricsAPI from './billable-metrics';
import * as Shared from './shared';
import { CursorPage, type CursorPageParams } from '../pagination';

Expand Down Expand Up @@ -236,14 +235,18 @@ export interface BillableMetricArchiveParams {
id: string;
}

export namespace BillableMetrics {
export import BillableMetricCreateResponse = BillableMetricsAPI.BillableMetricCreateResponse;
export import BillableMetricRetrieveResponse = BillableMetricsAPI.BillableMetricRetrieveResponse;
export import BillableMetricListResponse = BillableMetricsAPI.BillableMetricListResponse;
export import BillableMetricArchiveResponse = BillableMetricsAPI.BillableMetricArchiveResponse;
export import BillableMetricListResponsesCursorPage = BillableMetricsAPI.BillableMetricListResponsesCursorPage;
export import BillableMetricCreateParams = BillableMetricsAPI.BillableMetricCreateParams;
export import BillableMetricRetrieveParams = BillableMetricsAPI.BillableMetricRetrieveParams;
export import BillableMetricListParams = BillableMetricsAPI.BillableMetricListParams;
export import BillableMetricArchiveParams = BillableMetricsAPI.BillableMetricArchiveParams;
BillableMetrics.BillableMetricListResponsesCursorPage = BillableMetricListResponsesCursorPage;

export declare namespace BillableMetrics {
export {
type BillableMetricCreateResponse as BillableMetricCreateResponse,
type BillableMetricRetrieveResponse as BillableMetricRetrieveResponse,
type BillableMetricListResponse as BillableMetricListResponse,
type BillableMetricArchiveResponse as BillableMetricArchiveResponse,
BillableMetricListResponsesCursorPage as BillableMetricListResponsesCursorPage,
type BillableMetricCreateParams as BillableMetricCreateParams,
type BillableMetricRetrieveParams as BillableMetricRetrieveParams,
type BillableMetricListParams as BillableMetricListParams,
type BillableMetricArchiveParams as BillableMetricArchiveParams,
};
}
163 changes: 108 additions & 55 deletions src/resources/contracts/contracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,48 @@

import { APIResource } from '../../resource';
import * as Core from '../../core';
import * as ContractsAPI from './contracts';
import * as Shared from '../shared';
import * as NamedSchedulesAPI from './named-schedules';
import {
NamedScheduleRetrieveParams,
NamedScheduleRetrieveResponse,
NamedScheduleUpdateParams,
NamedSchedules,
} from './named-schedules';
import * as ProductsAPI from './products';
import {
ProductArchiveParams,
ProductArchiveResponse,
ProductCreateParams,
ProductCreateResponse,
ProductListItemState,
ProductListParams,
ProductListResponse,
ProductListResponsesCursorPage,
ProductRetrieveParams,
ProductRetrieveResponse,
ProductUpdateParams,
ProductUpdateResponse,
Products,
QuantityConversion,
QuantityRounding,
} from './products';
import * as InvoicesAPI from '../customers/invoices';
import * as RateCardsAPI from './rate-cards/rate-cards';
import {
RateCardCreateParams,
RateCardCreateResponse,
RateCardListParams,
RateCardListResponse,
RateCardListResponsesCursorPage,
RateCardRetrieveParams,
RateCardRetrieveRateScheduleParams,
RateCardRetrieveRateScheduleResponse,
RateCardRetrieveResponse,
RateCardUpdateParams,
RateCardUpdateResponse,
RateCards,
} from './rate-cards/rate-cards';

export class Contracts extends APIResource {
products: ProductsAPI.Products = new ProductsAPI.Products(this._client);
Expand Down Expand Up @@ -2468,58 +2504,75 @@ export interface ContractUpdateEndDateParams {
ending_before?: string;
}

export namespace Contracts {
export import ContractCreateResponse = ContractsAPI.ContractCreateResponse;
export import ContractRetrieveResponse = ContractsAPI.ContractRetrieveResponse;
export import ContractListResponse = ContractsAPI.ContractListResponse;
export import ContractAmendResponse = ContractsAPI.ContractAmendResponse;
export import ContractArchiveResponse = ContractsAPI.ContractArchiveResponse;
export import ContractCreateHistoricalInvoicesResponse = ContractsAPI.ContractCreateHistoricalInvoicesResponse;
export import ContractListBalancesResponse = ContractsAPI.ContractListBalancesResponse;
export import ContractRetrieveRateScheduleResponse = ContractsAPI.ContractRetrieveRateScheduleResponse;
export import ContractScheduleProServicesInvoiceResponse = ContractsAPI.ContractScheduleProServicesInvoiceResponse;
export import ContractUpdateEndDateResponse = ContractsAPI.ContractUpdateEndDateResponse;
export import ContractCreateParams = ContractsAPI.ContractCreateParams;
export import ContractRetrieveParams = ContractsAPI.ContractRetrieveParams;
export import ContractListParams = ContractsAPI.ContractListParams;
export import ContractAddManualBalanceEntryParams = ContractsAPI.ContractAddManualBalanceEntryParams;
export import ContractAmendParams = ContractsAPI.ContractAmendParams;
export import ContractArchiveParams = ContractsAPI.ContractArchiveParams;
export import ContractCreateHistoricalInvoicesParams = ContractsAPI.ContractCreateHistoricalInvoicesParams;
export import ContractListBalancesParams = ContractsAPI.ContractListBalancesParams;
export import ContractRetrieveRateScheduleParams = ContractsAPI.ContractRetrieveRateScheduleParams;
export import ContractScheduleProServicesInvoiceParams = ContractsAPI.ContractScheduleProServicesInvoiceParams;
export import ContractSetUsageFilterParams = ContractsAPI.ContractSetUsageFilterParams;
export import ContractUpdateEndDateParams = ContractsAPI.ContractUpdateEndDateParams;
export import Products = ProductsAPI.Products;
export import ProductListItemState = ProductsAPI.ProductListItemState;
export import QuantityConversion = ProductsAPI.QuantityConversion;
export import QuantityRounding = ProductsAPI.QuantityRounding;
export import ProductCreateResponse = ProductsAPI.ProductCreateResponse;
export import ProductRetrieveResponse = ProductsAPI.ProductRetrieveResponse;
export import ProductUpdateResponse = ProductsAPI.ProductUpdateResponse;
export import ProductListResponse = ProductsAPI.ProductListResponse;
export import ProductArchiveResponse = ProductsAPI.ProductArchiveResponse;
export import ProductListResponsesCursorPage = ProductsAPI.ProductListResponsesCursorPage;
export import ProductCreateParams = ProductsAPI.ProductCreateParams;
export import ProductRetrieveParams = ProductsAPI.ProductRetrieveParams;
export import ProductUpdateParams = ProductsAPI.ProductUpdateParams;
export import ProductListParams = ProductsAPI.ProductListParams;
export import ProductArchiveParams = ProductsAPI.ProductArchiveParams;
export import RateCards = RateCardsAPI.RateCards;
export import RateCardCreateResponse = RateCardsAPI.RateCardCreateResponse;
export import RateCardRetrieveResponse = RateCardsAPI.RateCardRetrieveResponse;
export import RateCardUpdateResponse = RateCardsAPI.RateCardUpdateResponse;
export import RateCardListResponse = RateCardsAPI.RateCardListResponse;
export import RateCardRetrieveRateScheduleResponse = RateCardsAPI.RateCardRetrieveRateScheduleResponse;
export import RateCardListResponsesCursorPage = RateCardsAPI.RateCardListResponsesCursorPage;
export import RateCardCreateParams = RateCardsAPI.RateCardCreateParams;
export import RateCardRetrieveParams = RateCardsAPI.RateCardRetrieveParams;
export import RateCardUpdateParams = RateCardsAPI.RateCardUpdateParams;
export import RateCardListParams = RateCardsAPI.RateCardListParams;
export import RateCardRetrieveRateScheduleParams = RateCardsAPI.RateCardRetrieveRateScheduleParams;
export import NamedSchedules = NamedSchedulesAPI.NamedSchedules;
export import NamedScheduleRetrieveResponse = NamedSchedulesAPI.NamedScheduleRetrieveResponse;
export import NamedScheduleRetrieveParams = NamedSchedulesAPI.NamedScheduleRetrieveParams;
export import NamedScheduleUpdateParams = NamedSchedulesAPI.NamedScheduleUpdateParams;
Contracts.Products = Products;
Contracts.ProductListResponsesCursorPage = ProductListResponsesCursorPage;
Contracts.RateCards = RateCards;
Contracts.RateCardListResponsesCursorPage = RateCardListResponsesCursorPage;
Contracts.NamedSchedules = NamedSchedules;

export declare namespace Contracts {
export {
type ContractCreateResponse as ContractCreateResponse,
type ContractRetrieveResponse as ContractRetrieveResponse,
type ContractListResponse as ContractListResponse,
type ContractAmendResponse as ContractAmendResponse,
type ContractArchiveResponse as ContractArchiveResponse,
type ContractCreateHistoricalInvoicesResponse as ContractCreateHistoricalInvoicesResponse,
type ContractListBalancesResponse as ContractListBalancesResponse,
type ContractRetrieveRateScheduleResponse as ContractRetrieveRateScheduleResponse,
type ContractScheduleProServicesInvoiceResponse as ContractScheduleProServicesInvoiceResponse,
type ContractUpdateEndDateResponse as ContractUpdateEndDateResponse,
type ContractCreateParams as ContractCreateParams,
type ContractRetrieveParams as ContractRetrieveParams,
type ContractListParams as ContractListParams,
type ContractAddManualBalanceEntryParams as ContractAddManualBalanceEntryParams,
type ContractAmendParams as ContractAmendParams,
type ContractArchiveParams as ContractArchiveParams,
type ContractCreateHistoricalInvoicesParams as ContractCreateHistoricalInvoicesParams,
type ContractListBalancesParams as ContractListBalancesParams,
type ContractRetrieveRateScheduleParams as ContractRetrieveRateScheduleParams,
type ContractScheduleProServicesInvoiceParams as ContractScheduleProServicesInvoiceParams,
type ContractSetUsageFilterParams as ContractSetUsageFilterParams,
type ContractUpdateEndDateParams as ContractUpdateEndDateParams,
};

export {
Products as Products,
type ProductListItemState as ProductListItemState,
type QuantityConversion as QuantityConversion,
type QuantityRounding as QuantityRounding,
type ProductCreateResponse as ProductCreateResponse,
type ProductRetrieveResponse as ProductRetrieveResponse,
type ProductUpdateResponse as ProductUpdateResponse,
type ProductListResponse as ProductListResponse,
type ProductArchiveResponse as ProductArchiveResponse,
ProductListResponsesCursorPage as ProductListResponsesCursorPage,
type ProductCreateParams as ProductCreateParams,
type ProductRetrieveParams as ProductRetrieveParams,
type ProductUpdateParams as ProductUpdateParams,
type ProductListParams as ProductListParams,
type ProductArchiveParams as ProductArchiveParams,
};

export {
RateCards as RateCards,
type RateCardCreateResponse as RateCardCreateResponse,
type RateCardRetrieveResponse as RateCardRetrieveResponse,
type RateCardUpdateResponse as RateCardUpdateResponse,
type RateCardListResponse as RateCardListResponse,
type RateCardRetrieveRateScheduleResponse as RateCardRetrieveRateScheduleResponse,
RateCardListResponsesCursorPage as RateCardListResponsesCursorPage,
type RateCardCreateParams as RateCardCreateParams,
type RateCardRetrieveParams as RateCardRetrieveParams,
type RateCardUpdateParams as RateCardUpdateParams,
type RateCardListParams as RateCardListParams,
type RateCardRetrieveRateScheduleParams as RateCardRetrieveRateScheduleParams,
};

export {
NamedSchedules as NamedSchedules,
type NamedScheduleRetrieveResponse as NamedScheduleRetrieveResponse,
type NamedScheduleRetrieveParams as NamedScheduleRetrieveParams,
type NamedScheduleUpdateParams as NamedScheduleUpdateParams,
};
}
96 changes: 48 additions & 48 deletions src/resources/contracts/index.ts
Original file line number Diff line number Diff line change
@@ -1,64 +1,64 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

export {
ContractCreateResponse,
ContractRetrieveResponse,
ContractListResponse,
ContractAmendResponse,
ContractArchiveResponse,
ContractCreateHistoricalInvoicesResponse,
ContractListBalancesResponse,
ContractRetrieveRateScheduleResponse,
ContractScheduleProServicesInvoiceResponse,
ContractUpdateEndDateResponse,
ContractCreateParams,
ContractRetrieveParams,
ContractListParams,
ContractAddManualBalanceEntryParams,
ContractAmendParams,
ContractArchiveParams,
ContractCreateHistoricalInvoicesParams,
ContractListBalancesParams,
ContractRetrieveRateScheduleParams,
ContractScheduleProServicesInvoiceParams,
ContractSetUsageFilterParams,
ContractUpdateEndDateParams,
Contracts,
type ContractCreateResponse,
type ContractRetrieveResponse,
type ContractListResponse,
type ContractAmendResponse,
type ContractArchiveResponse,
type ContractCreateHistoricalInvoicesResponse,
type ContractListBalancesResponse,
type ContractRetrieveRateScheduleResponse,
type ContractScheduleProServicesInvoiceResponse,
type ContractUpdateEndDateResponse,
type ContractCreateParams,
type ContractRetrieveParams,
type ContractListParams,
type ContractAddManualBalanceEntryParams,
type ContractAmendParams,
type ContractArchiveParams,
type ContractCreateHistoricalInvoicesParams,
type ContractListBalancesParams,
type ContractRetrieveRateScheduleParams,
type ContractScheduleProServicesInvoiceParams,
type ContractSetUsageFilterParams,
type ContractUpdateEndDateParams,
} from './contracts';
export {
NamedScheduleRetrieveResponse,
NamedScheduleRetrieveParams,
NamedScheduleUpdateParams,
NamedSchedules,
type NamedScheduleRetrieveResponse,
type NamedScheduleRetrieveParams,
type NamedScheduleUpdateParams,
} from './named-schedules';
export {
ProductListItemState,
QuantityConversion,
QuantityRounding,
ProductCreateResponse,
ProductRetrieveResponse,
ProductUpdateResponse,
ProductListResponse,
ProductArchiveResponse,
ProductCreateParams,
ProductRetrieveParams,
ProductUpdateParams,
ProductListParams,
ProductArchiveParams,
ProductListResponsesCursorPage,
Products,
type ProductListItemState,
type QuantityConversion,
type QuantityRounding,
type ProductCreateResponse,
type ProductRetrieveResponse,
type ProductUpdateResponse,
type ProductListResponse,
type ProductArchiveResponse,
type ProductCreateParams,
type ProductRetrieveParams,
type ProductUpdateParams,
type ProductListParams,
type ProductArchiveParams,
} from './products';
export {
RateCardCreateResponse,
RateCardRetrieveResponse,
RateCardUpdateResponse,
RateCardListResponse,
RateCardRetrieveRateScheduleResponse,
RateCardCreateParams,
RateCardRetrieveParams,
RateCardUpdateParams,
RateCardListParams,
RateCardRetrieveRateScheduleParams,
RateCardListResponsesCursorPage,
RateCards,
type RateCardCreateResponse,
type RateCardRetrieveResponse,
type RateCardUpdateResponse,
type RateCardListResponse,
type RateCardRetrieveRateScheduleResponse,
type RateCardCreateParams,
type RateCardRetrieveParams,
type RateCardUpdateParams,
type RateCardListParams,
type RateCardRetrieveRateScheduleParams,
} from './rate-cards/index';
Loading

0 comments on commit 100bd01

Please sign in to comment.