From 100bd0182759cee4ed634957159821d778057e30 Mon Sep 17 00:00:00 2001 From: Stainless Bot Date: Wed, 6 Nov 2024 19:14:00 +0000 Subject: [PATCH] chore: rebuild project due to codegen change (#125) --- src/index.ts | 524 ++++++++++++------ src/resources/alerts.ts | 13 +- src/resources/audit-logs.ts | 13 +- src/resources/billable-metrics.ts | 25 +- src/resources/contracts/contracts.ts | 163 ++++-- src/resources/contracts/index.ts | 96 ++-- src/resources/contracts/named-schedules.ts | 11 +- src/resources/contracts/products.ts | 34 +- src/resources/contracts/rate-cards/index.ts | 46 +- .../contracts/rate-cards/named-schedules.ts | 11 +- .../contracts/rate-cards/product-orders.ts | 13 +- .../contracts/rate-cards/rate-cards.ts | 99 +++- src/resources/contracts/rate-cards/rates.ts | 21 +- src/resources/credit-grants.ts | 41 +- src/resources/custom-fields.ts | 17 +- src/resources/customers/alerts.ts | 17 +- src/resources/customers/billing-config.ts | 13 +- src/resources/customers/commits.ts | 17 +- src/resources/customers/credits.ts | 17 +- src/resources/customers/customers.ts | 251 ++++++--- src/resources/customers/index.ts | 122 ++-- src/resources/customers/invoices.ts | 28 +- src/resources/customers/named-schedules.ts | 11 +- src/resources/customers/plans.ts | 28 +- src/resources/dashboards.ts | 9 +- src/resources/index.ts | 192 +++---- src/resources/invoices.ts | 13 +- src/resources/plans.ts | 33 +- src/resources/services.ts | 5 +- src/resources/usage.ts | 19 +- tsconfig.json | 2 +- 31 files changed, 1166 insertions(+), 738 deletions(-) diff --git a/src/index.ts b/src/index.ts index 5fb2c66..25f50e4 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,12 +1,154 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -import * as Errors from './error'; -import * as Uploads from './uploads'; import { type Agent } from './_shims/index'; import * as qs from './internal/qs'; import * as Core from './core'; +import * as Errors from './error'; import * as Pagination from './pagination'; +import { type CursorPageParams, CursorPageResponse } from './pagination'; +import * as Uploads from './uploads'; import * as API from './resources/index'; +import { + AlertArchiveParams, + AlertArchiveResponse, + AlertCreateParams, + AlertCreateResponse, + Alerts, +} from './resources/alerts'; +import { + AuditLogListParams, + AuditLogListResponse, + AuditLogListResponsesCursorPage, + AuditLogs, +} from './resources/audit-logs'; +import { + BillableMetricArchiveParams, + BillableMetricArchiveResponse, + BillableMetricCreateParams, + BillableMetricCreateResponse, + BillableMetricListParams, + BillableMetricListResponse, + BillableMetricListResponsesCursorPage, + BillableMetricRetrieveParams, + BillableMetricRetrieveResponse, + BillableMetrics, +} from './resources/billable-metrics'; +import { + CreditGrantCreateParams, + CreditGrantCreateResponse, + CreditGrantEditParams, + CreditGrantEditResponse, + CreditGrantListCreditTypesParams, + CreditGrantListCreditTypesResponse, + CreditGrantListCreditTypesResponsesCursorPage, + CreditGrantListEntriesParams, + CreditGrantListEntriesResponse, + CreditGrantListParams, + CreditGrantListResponse, + CreditGrantListResponsesCursorPage, + CreditGrantVoidParams, + CreditGrantVoidResponse, + CreditGrants, + CreditLedgerEntry, + RolloverAmountMaxAmount, + RolloverAmountMaxPercentage, +} from './resources/credit-grants'; +import { + CustomFieldAddKeyParams, + CustomFieldDeleteValuesParams, + CustomFieldListKeysParams, + CustomFieldListKeysResponse, + CustomFieldRemoveKeyParams, + CustomFieldSetValuesParams, + CustomFields, +} from './resources/custom-fields'; +import { + DashboardGetEmbeddableURLParams, + DashboardGetEmbeddableURLResponse, + Dashboards, +} from './resources/dashboards'; +import { + InvoiceRegenerateParams, + InvoiceRegenerateResponse, + InvoiceVoidParams, + InvoiceVoidResponse, + Invoices, +} from './resources/invoices'; +import { + PlanDetail, + PlanGetDetailsParams, + PlanGetDetailsResponse, + PlanListChargesParams, + PlanListChargesResponse, + PlanListChargesResponsesCursorPage, + PlanListCustomersParams, + PlanListCustomersResponse, + PlanListCustomersResponsesCursorPage, + PlanListParams, + PlanListResponse, + PlanListResponsesCursorPage, + Plans, +} from './resources/plans'; +import { ServiceListResponse, Services } from './resources/services'; +import { + Usage, + UsageIngestParams, + UsageListParams, + UsageListResponse, + UsageListWithGroupsParams, + UsageListWithGroupsResponse, + UsageListWithGroupsResponsesCursorPage, +} from './resources/usage'; +import { + ContractAddManualBalanceEntryParams, + ContractAmendParams, + ContractAmendResponse, + ContractArchiveParams, + ContractArchiveResponse, + ContractCreateHistoricalInvoicesParams, + ContractCreateHistoricalInvoicesResponse, + ContractCreateParams, + ContractCreateResponse, + ContractListBalancesParams, + ContractListBalancesResponse, + ContractListParams, + ContractListResponse, + ContractRetrieveParams, + ContractRetrieveRateScheduleParams, + ContractRetrieveRateScheduleResponse, + ContractRetrieveResponse, + ContractScheduleProServicesInvoiceParams, + ContractScheduleProServicesInvoiceResponse, + ContractSetUsageFilterParams, + ContractUpdateEndDateParams, + ContractUpdateEndDateResponse, + Contracts, +} from './resources/contracts/contracts'; +import { + Customer, + CustomerArchiveParams, + CustomerArchiveResponse, + CustomerCreateParams, + CustomerCreateResponse, + CustomerDetail, + CustomerDetailsCursorPage, + CustomerListBillableMetricsParams, + CustomerListBillableMetricsResponse, + CustomerListBillableMetricsResponsesCursorPage, + CustomerListCostsParams, + CustomerListCostsResponse, + CustomerListCostsResponsesCursorPage, + CustomerListParams, + CustomerRetrieveParams, + CustomerRetrieveResponse, + CustomerSetIngestAliasesParams, + CustomerSetNameParams, + CustomerSetNameResponse, + CustomerUpdateConfigParams, + Customers, +} from './resources/customers/customers'; + +import { Webhooks } from './resources/webhooks'; export interface ClientOptions { /** @@ -185,180 +327,222 @@ export class Metronome extends Core.APIClient { static fileFromPath = Uploads.fileFromPath; } -export const { - MetronomeError, - APIError, - APIConnectionError, - APIConnectionTimeoutError, - APIUserAbortError, - NotFoundError, - ConflictError, - RateLimitError, - BadRequestError, - AuthenticationError, - InternalServerError, - PermissionDeniedError, - UnprocessableEntityError, -} = Errors; +export const MetronomeError = Errors.MetronomeError; +export const APIError = Errors.APIError; +export const APIConnectionError = Errors.APIConnectionError; +export const APIConnectionTimeoutError = Errors.APIConnectionTimeoutError; +export const APIUserAbortError = Errors.APIUserAbortError; +export const NotFoundError = Errors.NotFoundError; +export const ConflictError = Errors.ConflictError; +export const RateLimitError = Errors.RateLimitError; +export const BadRequestError = Errors.BadRequestError; +export const AuthenticationError = Errors.AuthenticationError; +export const InternalServerError = Errors.InternalServerError; +export const PermissionDeniedError = Errors.PermissionDeniedError; +export const UnprocessableEntityError = Errors.UnprocessableEntityError; export import toFile = Uploads.toFile; export import fileFromPath = Uploads.fileFromPath; -export namespace Metronome { - export import RequestOptions = Core.RequestOptions; +Metronome.Alerts = Alerts; +Metronome.Plans = Plans; +Metronome.PlanListResponsesCursorPage = PlanListResponsesCursorPage; +Metronome.PlanListChargesResponsesCursorPage = PlanListChargesResponsesCursorPage; +Metronome.PlanListCustomersResponsesCursorPage = PlanListCustomersResponsesCursorPage; +Metronome.CreditGrants = CreditGrants; +Metronome.CreditGrantListResponsesCursorPage = CreditGrantListResponsesCursorPage; +Metronome.CreditGrantListCreditTypesResponsesCursorPage = CreditGrantListCreditTypesResponsesCursorPage; +Metronome.Customers = Customers; +Metronome.CustomerDetailsCursorPage = CustomerDetailsCursorPage; +Metronome.CustomerListBillableMetricsResponsesCursorPage = CustomerListBillableMetricsResponsesCursorPage; +Metronome.CustomerListCostsResponsesCursorPage = CustomerListCostsResponsesCursorPage; +Metronome.Dashboards = Dashboards; +Metronome.Usage = Usage; +Metronome.UsageListWithGroupsResponsesCursorPage = UsageListWithGroupsResponsesCursorPage; +Metronome.AuditLogs = AuditLogs; +Metronome.AuditLogListResponsesCursorPage = AuditLogListResponsesCursorPage; +Metronome.CustomFields = CustomFields; +Metronome.BillableMetrics = BillableMetrics; +Metronome.BillableMetricListResponsesCursorPage = BillableMetricListResponsesCursorPage; +Metronome.Services = Services; +Metronome.Invoices = Invoices; +Metronome.Contracts = Contracts; + +export declare namespace Metronome { + export type RequestOptions = Core.RequestOptions; export import CursorPage = Pagination.CursorPage; - export import CursorPageParams = Pagination.CursorPageParams; - export import CursorPageResponse = Pagination.CursorPageResponse; - - export import Alerts = API.Alerts; - export import AlertCreateResponse = API.AlertCreateResponse; - export import AlertArchiveResponse = API.AlertArchiveResponse; - export import AlertCreateParams = API.AlertCreateParams; - export import AlertArchiveParams = API.AlertArchiveParams; - - export import Plans = API.Plans; - export import PlanDetail = API.PlanDetail; - export import PlanListResponse = API.PlanListResponse; - export import PlanGetDetailsResponse = API.PlanGetDetailsResponse; - export import PlanListChargesResponse = API.PlanListChargesResponse; - export import PlanListCustomersResponse = API.PlanListCustomersResponse; - export import PlanListResponsesCursorPage = API.PlanListResponsesCursorPage; - export import PlanListChargesResponsesCursorPage = API.PlanListChargesResponsesCursorPage; - export import PlanListCustomersResponsesCursorPage = API.PlanListCustomersResponsesCursorPage; - export import PlanListParams = API.PlanListParams; - export import PlanGetDetailsParams = API.PlanGetDetailsParams; - export import PlanListChargesParams = API.PlanListChargesParams; - export import PlanListCustomersParams = API.PlanListCustomersParams; - - export import CreditGrants = API.CreditGrants; - export import CreditLedgerEntry = API.CreditLedgerEntry; - export import RolloverAmountMaxAmount = API.RolloverAmountMaxAmount; - export import RolloverAmountMaxPercentage = API.RolloverAmountMaxPercentage; - export import CreditGrantCreateResponse = API.CreditGrantCreateResponse; - export import CreditGrantListResponse = API.CreditGrantListResponse; - export import CreditGrantEditResponse = API.CreditGrantEditResponse; - export import CreditGrantListCreditTypesResponse = API.CreditGrantListCreditTypesResponse; - export import CreditGrantListEntriesResponse = API.CreditGrantListEntriesResponse; - export import CreditGrantVoidResponse = API.CreditGrantVoidResponse; - export import CreditGrantListResponsesCursorPage = API.CreditGrantListResponsesCursorPage; - export import CreditGrantListCreditTypesResponsesCursorPage = API.CreditGrantListCreditTypesResponsesCursorPage; - export import CreditGrantCreateParams = API.CreditGrantCreateParams; - export import CreditGrantListParams = API.CreditGrantListParams; - export import CreditGrantEditParams = API.CreditGrantEditParams; - export import CreditGrantListCreditTypesParams = API.CreditGrantListCreditTypesParams; - export import CreditGrantListEntriesParams = API.CreditGrantListEntriesParams; - export import CreditGrantVoidParams = API.CreditGrantVoidParams; - - export import Customers = API.Customers; - export import Customer = API.Customer; - export import CustomerDetail = API.CustomerDetail; - export import CustomerCreateResponse = API.CustomerCreateResponse; - export import CustomerRetrieveResponse = API.CustomerRetrieveResponse; - export import CustomerArchiveResponse = API.CustomerArchiveResponse; - export import CustomerListBillableMetricsResponse = API.CustomerListBillableMetricsResponse; - export import CustomerListCostsResponse = API.CustomerListCostsResponse; - export import CustomerSetNameResponse = API.CustomerSetNameResponse; - export import CustomerDetailsCursorPage = API.CustomerDetailsCursorPage; - export import CustomerListBillableMetricsResponsesCursorPage = API.CustomerListBillableMetricsResponsesCursorPage; - export import CustomerListCostsResponsesCursorPage = API.CustomerListCostsResponsesCursorPage; - export import CustomerCreateParams = API.CustomerCreateParams; - export import CustomerRetrieveParams = API.CustomerRetrieveParams; - export import CustomerListParams = API.CustomerListParams; - export import CustomerArchiveParams = API.CustomerArchiveParams; - export import CustomerListBillableMetricsParams = API.CustomerListBillableMetricsParams; - export import CustomerListCostsParams = API.CustomerListCostsParams; - export import CustomerSetIngestAliasesParams = API.CustomerSetIngestAliasesParams; - export import CustomerSetNameParams = API.CustomerSetNameParams; - export import CustomerUpdateConfigParams = API.CustomerUpdateConfigParams; - - export import Dashboards = API.Dashboards; - export import DashboardGetEmbeddableURLResponse = API.DashboardGetEmbeddableURLResponse; - export import DashboardGetEmbeddableURLParams = API.DashboardGetEmbeddableURLParams; - - export import Webhooks = API.Webhooks; - - export import Usage = API.Usage; - export import UsageListResponse = API.UsageListResponse; - export import UsageListWithGroupsResponse = API.UsageListWithGroupsResponse; - export import UsageListWithGroupsResponsesCursorPage = API.UsageListWithGroupsResponsesCursorPage; - export import UsageListParams = API.UsageListParams; - export import UsageIngestParams = API.UsageIngestParams; - export import UsageListWithGroupsParams = API.UsageListWithGroupsParams; - - export import AuditLogs = API.AuditLogs; - export import AuditLogListResponse = API.AuditLogListResponse; - export import AuditLogListResponsesCursorPage = API.AuditLogListResponsesCursorPage; - export import AuditLogListParams = API.AuditLogListParams; - - export import CustomFields = API.CustomFields; - export import CustomFieldListKeysResponse = API.CustomFieldListKeysResponse; - export import CustomFieldAddKeyParams = API.CustomFieldAddKeyParams; - export import CustomFieldDeleteValuesParams = API.CustomFieldDeleteValuesParams; - export import CustomFieldListKeysParams = API.CustomFieldListKeysParams; - export import CustomFieldRemoveKeyParams = API.CustomFieldRemoveKeyParams; - export import CustomFieldSetValuesParams = API.CustomFieldSetValuesParams; - - export import BillableMetrics = API.BillableMetrics; - export import BillableMetricCreateResponse = API.BillableMetricCreateResponse; - export import BillableMetricRetrieveResponse = API.BillableMetricRetrieveResponse; - export import BillableMetricListResponse = API.BillableMetricListResponse; - export import BillableMetricArchiveResponse = API.BillableMetricArchiveResponse; - export import BillableMetricListResponsesCursorPage = API.BillableMetricListResponsesCursorPage; - export import BillableMetricCreateParams = API.BillableMetricCreateParams; - export import BillableMetricRetrieveParams = API.BillableMetricRetrieveParams; - export import BillableMetricListParams = API.BillableMetricListParams; - export import BillableMetricArchiveParams = API.BillableMetricArchiveParams; - - export import Services = API.Services; - export import ServiceListResponse = API.ServiceListResponse; - - export import Invoices = API.Invoices; - export import InvoiceRegenerateResponse = API.InvoiceRegenerateResponse; - export import InvoiceVoidResponse = API.InvoiceVoidResponse; - export import InvoiceRegenerateParams = API.InvoiceRegenerateParams; - export import InvoiceVoidParams = API.InvoiceVoidParams; - - export import Contracts = API.Contracts; - export import ContractCreateResponse = API.ContractCreateResponse; - export import ContractRetrieveResponse = API.ContractRetrieveResponse; - export import ContractListResponse = API.ContractListResponse; - export import ContractAmendResponse = API.ContractAmendResponse; - export import ContractArchiveResponse = API.ContractArchiveResponse; - export import ContractCreateHistoricalInvoicesResponse = API.ContractCreateHistoricalInvoicesResponse; - export import ContractListBalancesResponse = API.ContractListBalancesResponse; - export import ContractRetrieveRateScheduleResponse = API.ContractRetrieveRateScheduleResponse; - export import ContractScheduleProServicesInvoiceResponse = API.ContractScheduleProServicesInvoiceResponse; - export import ContractUpdateEndDateResponse = API.ContractUpdateEndDateResponse; - export import ContractCreateParams = API.ContractCreateParams; - export import ContractRetrieveParams = API.ContractRetrieveParams; - export import ContractListParams = API.ContractListParams; - export import ContractAddManualBalanceEntryParams = API.ContractAddManualBalanceEntryParams; - export import ContractAmendParams = API.ContractAmendParams; - export import ContractArchiveParams = API.ContractArchiveParams; - export import ContractCreateHistoricalInvoicesParams = API.ContractCreateHistoricalInvoicesParams; - export import ContractListBalancesParams = API.ContractListBalancesParams; - export import ContractRetrieveRateScheduleParams = API.ContractRetrieveRateScheduleParams; - export import ContractScheduleProServicesInvoiceParams = API.ContractScheduleProServicesInvoiceParams; - export import ContractSetUsageFilterParams = API.ContractSetUsageFilterParams; - export import ContractUpdateEndDateParams = API.ContractUpdateEndDateParams; - - export import BaseUsageFilter = API.BaseUsageFilter; - export import Commit = API.Commit; - export import ContractWithoutAmendments = API.ContractWithoutAmendments; - export import Credit = API.Credit; - export import CreditTypeData = API.CreditTypeData; - export import Discount = API.Discount; - export import EventTypeFilter = API.EventTypeFilter; - export import ID = API.ID; - export import Override = API.Override; - export import PropertyFilter = API.PropertyFilter; - export import ProService = API.ProService; - export import Rate = API.Rate; - export import ScheduledCharge = API.ScheduledCharge; - export import ScheduleDuration = API.ScheduleDuration; - export import SchedulePointInTime = API.SchedulePointInTime; - export import Tier = API.Tier; + export { type CursorPageParams as CursorPageParams, type CursorPageResponse as CursorPageResponse }; + + export { + Alerts as Alerts, + type AlertCreateResponse as AlertCreateResponse, + type AlertArchiveResponse as AlertArchiveResponse, + type AlertCreateParams as AlertCreateParams, + type AlertArchiveParams as AlertArchiveParams, + }; + + export { + Plans as Plans, + type PlanDetail as PlanDetail, + type PlanListResponse as PlanListResponse, + type PlanGetDetailsResponse as PlanGetDetailsResponse, + type PlanListChargesResponse as PlanListChargesResponse, + type PlanListCustomersResponse as PlanListCustomersResponse, + PlanListResponsesCursorPage as PlanListResponsesCursorPage, + PlanListChargesResponsesCursorPage as PlanListChargesResponsesCursorPage, + PlanListCustomersResponsesCursorPage as PlanListCustomersResponsesCursorPage, + type PlanListParams as PlanListParams, + type PlanGetDetailsParams as PlanGetDetailsParams, + type PlanListChargesParams as PlanListChargesParams, + type PlanListCustomersParams as PlanListCustomersParams, + }; + + export { + CreditGrants as CreditGrants, + type CreditLedgerEntry as CreditLedgerEntry, + type RolloverAmountMaxAmount as RolloverAmountMaxAmount, + type RolloverAmountMaxPercentage as RolloverAmountMaxPercentage, + type CreditGrantCreateResponse as CreditGrantCreateResponse, + type CreditGrantListResponse as CreditGrantListResponse, + type CreditGrantEditResponse as CreditGrantEditResponse, + type CreditGrantListCreditTypesResponse as CreditGrantListCreditTypesResponse, + type CreditGrantListEntriesResponse as CreditGrantListEntriesResponse, + type CreditGrantVoidResponse as CreditGrantVoidResponse, + CreditGrantListResponsesCursorPage as CreditGrantListResponsesCursorPage, + CreditGrantListCreditTypesResponsesCursorPage as CreditGrantListCreditTypesResponsesCursorPage, + type CreditGrantCreateParams as CreditGrantCreateParams, + type CreditGrantListParams as CreditGrantListParams, + type CreditGrantEditParams as CreditGrantEditParams, + type CreditGrantListCreditTypesParams as CreditGrantListCreditTypesParams, + type CreditGrantListEntriesParams as CreditGrantListEntriesParams, + type CreditGrantVoidParams as CreditGrantVoidParams, + }; + + export { + Customers as Customers, + type Customer as Customer, + type CustomerDetail as CustomerDetail, + type CustomerCreateResponse as CustomerCreateResponse, + type CustomerRetrieveResponse as CustomerRetrieveResponse, + type CustomerArchiveResponse as CustomerArchiveResponse, + type CustomerListBillableMetricsResponse as CustomerListBillableMetricsResponse, + type CustomerListCostsResponse as CustomerListCostsResponse, + type CustomerSetNameResponse as CustomerSetNameResponse, + CustomerDetailsCursorPage as CustomerDetailsCursorPage, + CustomerListBillableMetricsResponsesCursorPage as CustomerListBillableMetricsResponsesCursorPage, + CustomerListCostsResponsesCursorPage as CustomerListCostsResponsesCursorPage, + type CustomerCreateParams as CustomerCreateParams, + type CustomerRetrieveParams as CustomerRetrieveParams, + type CustomerListParams as CustomerListParams, + type CustomerArchiveParams as CustomerArchiveParams, + type CustomerListBillableMetricsParams as CustomerListBillableMetricsParams, + type CustomerListCostsParams as CustomerListCostsParams, + type CustomerSetIngestAliasesParams as CustomerSetIngestAliasesParams, + type CustomerSetNameParams as CustomerSetNameParams, + type CustomerUpdateConfigParams as CustomerUpdateConfigParams, + }; + + export { + Dashboards as Dashboards, + type DashboardGetEmbeddableURLResponse as DashboardGetEmbeddableURLResponse, + type DashboardGetEmbeddableURLParams as DashboardGetEmbeddableURLParams, + }; + + export { Webhooks as Webhooks }; + + export { + Usage as Usage, + type UsageListResponse as UsageListResponse, + type UsageListWithGroupsResponse as UsageListWithGroupsResponse, + UsageListWithGroupsResponsesCursorPage as UsageListWithGroupsResponsesCursorPage, + type UsageListParams as UsageListParams, + type UsageIngestParams as UsageIngestParams, + type UsageListWithGroupsParams as UsageListWithGroupsParams, + }; + + export { + AuditLogs as AuditLogs, + type AuditLogListResponse as AuditLogListResponse, + AuditLogListResponsesCursorPage as AuditLogListResponsesCursorPage, + type AuditLogListParams as AuditLogListParams, + }; + + export { + CustomFields as CustomFields, + type CustomFieldListKeysResponse as CustomFieldListKeysResponse, + type CustomFieldAddKeyParams as CustomFieldAddKeyParams, + type CustomFieldDeleteValuesParams as CustomFieldDeleteValuesParams, + type CustomFieldListKeysParams as CustomFieldListKeysParams, + type CustomFieldRemoveKeyParams as CustomFieldRemoveKeyParams, + type CustomFieldSetValuesParams as CustomFieldSetValuesParams, + }; + + export { + BillableMetrics as BillableMetrics, + 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, + }; + + export { Services as Services, type ServiceListResponse as ServiceListResponse }; + + export { + Invoices as Invoices, + type InvoiceRegenerateResponse as InvoiceRegenerateResponse, + type InvoiceVoidResponse as InvoiceVoidResponse, + type InvoiceRegenerateParams as InvoiceRegenerateParams, + type InvoiceVoidParams as InvoiceVoidParams, + }; + + export { + Contracts as Contracts, + 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 type BaseUsageFilter = API.BaseUsageFilter; + export type Commit = API.Commit; + export type ContractWithoutAmendments = API.ContractWithoutAmendments; + export type Credit = API.Credit; + export type CreditTypeData = API.CreditTypeData; + export type Discount = API.Discount; + export type EventTypeFilter = API.EventTypeFilter; + export type ID = API.ID; + export type Override = API.Override; + export type PropertyFilter = API.PropertyFilter; + export type ProService = API.ProService; + export type Rate = API.Rate; + export type ScheduledCharge = API.ScheduledCharge; + export type ScheduleDuration = API.ScheduleDuration; + export type SchedulePointInTime = API.SchedulePointInTime; + export type Tier = API.Tier; } export default Metronome; diff --git a/src/resources/alerts.ts b/src/resources/alerts.ts index 2ea4880..036110b 100644 --- a/src/resources/alerts.ts +++ b/src/resources/alerts.ts @@ -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 { @@ -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, + }; } diff --git a/src/resources/audit-logs.ts b/src/resources/audit-logs.ts index 9963dfa..037ff17 100644 --- a/src/resources/audit-logs.ts +++ b/src/resources/audit-logs.ts @@ -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 { @@ -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, + }; } diff --git a/src/resources/billable-metrics.ts b/src/resources/billable-metrics.ts index ef74502..975b7bc 100644 --- a/src/resources/billable-metrics.ts +++ b/src/resources/billable-metrics.ts @@ -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'; @@ -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, + }; } diff --git a/src/resources/contracts/contracts.ts b/src/resources/contracts/contracts.ts index 2523438..72d3d0d 100644 --- a/src/resources/contracts/contracts.ts +++ b/src/resources/contracts/contracts.ts @@ -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); @@ -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, + }; } diff --git a/src/resources/contracts/index.ts b/src/resources/contracts/index.ts index 79ed1e8..0e552e1 100644 --- a/src/resources/contracts/index.ts +++ b/src/resources/contracts/index.ts @@ -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'; diff --git a/src/resources/contracts/named-schedules.ts b/src/resources/contracts/named-schedules.ts index d3f914b..be529f7 100644 --- a/src/resources/contracts/named-schedules.ts +++ b/src/resources/contracts/named-schedules.ts @@ -2,7 +2,6 @@ import { APIResource } from '../../resource'; import * as Core from '../../core'; -import * as NamedSchedulesAPI from './named-schedules'; export class NamedSchedules extends APIResource { /** @@ -83,8 +82,10 @@ export interface NamedScheduleUpdateParams { ending_before?: string; } -export namespace NamedSchedules { - export import NamedScheduleRetrieveResponse = NamedSchedulesAPI.NamedScheduleRetrieveResponse; - export import NamedScheduleRetrieveParams = NamedSchedulesAPI.NamedScheduleRetrieveParams; - export import NamedScheduleUpdateParams = NamedSchedulesAPI.NamedScheduleUpdateParams; +export declare namespace NamedSchedules { + export { + type NamedScheduleRetrieveResponse as NamedScheduleRetrieveResponse, + type NamedScheduleRetrieveParams as NamedScheduleRetrieveParams, + type NamedScheduleUpdateParams as NamedScheduleUpdateParams, + }; } diff --git a/src/resources/contracts/products.ts b/src/resources/contracts/products.ts index 9148dea..e4b6eff 100644 --- a/src/resources/contracts/products.ts +++ b/src/resources/contracts/products.ts @@ -542,19 +542,23 @@ export interface ProductArchiveParams { product_id: string; } -export namespace 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; +Products.ProductListResponsesCursorPage = ProductListResponsesCursorPage; + +export declare namespace Products { + export { + 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, + }; } diff --git a/src/resources/contracts/rate-cards/index.ts b/src/resources/contracts/rate-cards/index.ts index 24a08de..4a10351 100644 --- a/src/resources/contracts/rate-cards/index.ts +++ b/src/resources/contracts/rate-cards/index.ts @@ -1,39 +1,39 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. export { - NamedScheduleRetrieveResponse, - NamedScheduleRetrieveParams, - NamedScheduleUpdateParams, NamedSchedules, + type NamedScheduleRetrieveResponse, + type NamedScheduleRetrieveParams, + type NamedScheduleUpdateParams, } from './named-schedules'; export { - ProductOrderUpdateResponse, - ProductOrderSetResponse, - ProductOrderUpdateParams, - ProductOrderSetParams, ProductOrders, + type ProductOrderUpdateResponse, + type ProductOrderSetResponse, + type ProductOrderUpdateParams, + type ProductOrderSetParams, } from './product-orders'; 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'; export { - RateListResponse, - RateAddResponse, - RateAddManyResponse, - RateListParams, - RateAddParams, - RateAddManyParams, RateListResponsesCursorPage, Rates, + type RateListResponse, + type RateAddResponse, + type RateAddManyResponse, + type RateListParams, + type RateAddParams, + type RateAddManyParams, } from './rates'; diff --git a/src/resources/contracts/rate-cards/named-schedules.ts b/src/resources/contracts/rate-cards/named-schedules.ts index 54cf972..29e7f74 100644 --- a/src/resources/contracts/rate-cards/named-schedules.ts +++ b/src/resources/contracts/rate-cards/named-schedules.ts @@ -2,7 +2,6 @@ import { APIResource } from '../../../resource'; import * as Core from '../../../core'; -import * as NamedSchedulesAPI from './named-schedules'; export class NamedSchedules extends APIResource { /** @@ -93,8 +92,10 @@ export interface NamedScheduleUpdateParams { ending_before?: string; } -export namespace NamedSchedules { - export import NamedScheduleRetrieveResponse = NamedSchedulesAPI.NamedScheduleRetrieveResponse; - export import NamedScheduleRetrieveParams = NamedSchedulesAPI.NamedScheduleRetrieveParams; - export import NamedScheduleUpdateParams = NamedSchedulesAPI.NamedScheduleUpdateParams; +export declare namespace NamedSchedules { + export { + type NamedScheduleRetrieveResponse as NamedScheduleRetrieveResponse, + type NamedScheduleRetrieveParams as NamedScheduleRetrieveParams, + type NamedScheduleUpdateParams as NamedScheduleUpdateParams, + }; } diff --git a/src/resources/contracts/rate-cards/product-orders.ts b/src/resources/contracts/rate-cards/product-orders.ts index 3b032b8..cbb8d69 100644 --- a/src/resources/contracts/rate-cards/product-orders.ts +++ b/src/resources/contracts/rate-cards/product-orders.ts @@ -2,7 +2,6 @@ import { APIResource } from '../../../resource'; import * as Core from '../../../core'; -import * as ProductOrdersAPI from './product-orders'; import * as Shared from '../../shared'; export class ProductOrders extends APIResource { @@ -64,9 +63,11 @@ export interface ProductOrderSetParams { rate_card_id: string; } -export namespace ProductOrders { - export import ProductOrderUpdateResponse = ProductOrdersAPI.ProductOrderUpdateResponse; - export import ProductOrderSetResponse = ProductOrdersAPI.ProductOrderSetResponse; - export import ProductOrderUpdateParams = ProductOrdersAPI.ProductOrderUpdateParams; - export import ProductOrderSetParams = ProductOrdersAPI.ProductOrderSetParams; +export declare namespace ProductOrders { + export { + type ProductOrderUpdateResponse as ProductOrderUpdateResponse, + type ProductOrderSetResponse as ProductOrderSetResponse, + type ProductOrderUpdateParams as ProductOrderUpdateParams, + type ProductOrderSetParams as ProductOrderSetParams, + }; } diff --git a/src/resources/contracts/rate-cards/rate-cards.ts b/src/resources/contracts/rate-cards/rate-cards.ts index 6f4d250..edf1a59 100644 --- a/src/resources/contracts/rate-cards/rate-cards.ts +++ b/src/resources/contracts/rate-cards/rate-cards.ts @@ -2,11 +2,33 @@ import { APIResource } from '../../../resource'; import * as Core from '../../../core'; -import * as RateCardsAPI from './rate-cards'; import * as Shared from '../../shared'; import * as NamedSchedulesAPI from './named-schedules'; +import { + NamedScheduleRetrieveParams, + NamedScheduleRetrieveResponse, + NamedScheduleUpdateParams, + NamedSchedules, +} from './named-schedules'; import * as ProductOrdersAPI from './product-orders'; +import { + ProductOrderSetParams, + ProductOrderSetResponse, + ProductOrderUpdateParams, + ProductOrderUpdateResponse, + ProductOrders, +} from './product-orders'; import * as RatesAPI from './rates'; +import { + RateAddManyParams, + RateAddManyResponse, + RateAddParams, + RateAddResponse, + RateListParams, + RateListResponse, + RateListResponsesCursorPage, + Rates, +} from './rates'; import { CursorPage, type CursorPageParams } from '../../../pagination'; export class RateCards extends APIResource { @@ -464,33 +486,50 @@ export namespace RateCardRetrieveRateScheduleParams { } } -export namespace 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 ProductOrders = ProductOrdersAPI.ProductOrders; - export import ProductOrderUpdateResponse = ProductOrdersAPI.ProductOrderUpdateResponse; - export import ProductOrderSetResponse = ProductOrdersAPI.ProductOrderSetResponse; - export import ProductOrderUpdateParams = ProductOrdersAPI.ProductOrderUpdateParams; - export import ProductOrderSetParams = ProductOrdersAPI.ProductOrderSetParams; - export import Rates = RatesAPI.Rates; - export import RateListResponse = RatesAPI.RateListResponse; - export import RateAddResponse = RatesAPI.RateAddResponse; - export import RateAddManyResponse = RatesAPI.RateAddManyResponse; - export import RateListResponsesCursorPage = RatesAPI.RateListResponsesCursorPage; - export import RateListParams = RatesAPI.RateListParams; - export import RateAddParams = RatesAPI.RateAddParams; - export import RateAddManyParams = RatesAPI.RateAddManyParams; - export import NamedSchedules = NamedSchedulesAPI.NamedSchedules; - export import NamedScheduleRetrieveResponse = NamedSchedulesAPI.NamedScheduleRetrieveResponse; - export import NamedScheduleRetrieveParams = NamedSchedulesAPI.NamedScheduleRetrieveParams; - export import NamedScheduleUpdateParams = NamedSchedulesAPI.NamedScheduleUpdateParams; +RateCards.RateCardListResponsesCursorPage = RateCardListResponsesCursorPage; +RateCards.ProductOrders = ProductOrders; +RateCards.Rates = Rates; +RateCards.RateListResponsesCursorPage = RateListResponsesCursorPage; +RateCards.NamedSchedules = NamedSchedules; + +export declare namespace RateCards { + export { + 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 { + ProductOrders as ProductOrders, + type ProductOrderUpdateResponse as ProductOrderUpdateResponse, + type ProductOrderSetResponse as ProductOrderSetResponse, + type ProductOrderUpdateParams as ProductOrderUpdateParams, + type ProductOrderSetParams as ProductOrderSetParams, + }; + + export { + Rates as Rates, + type RateListResponse as RateListResponse, + type RateAddResponse as RateAddResponse, + type RateAddManyResponse as RateAddManyResponse, + RateListResponsesCursorPage as RateListResponsesCursorPage, + type RateListParams as RateListParams, + type RateAddParams as RateAddParams, + type RateAddManyParams as RateAddManyParams, + }; + + export { + NamedSchedules as NamedSchedules, + type NamedScheduleRetrieveResponse as NamedScheduleRetrieveResponse, + type NamedScheduleRetrieveParams as NamedScheduleRetrieveParams, + type NamedScheduleUpdateParams as NamedScheduleUpdateParams, + }; } diff --git a/src/resources/contracts/rate-cards/rates.ts b/src/resources/contracts/rate-cards/rates.ts index 799c9cd..6d15ddf 100644 --- a/src/resources/contracts/rate-cards/rates.ts +++ b/src/resources/contracts/rate-cards/rates.ts @@ -2,7 +2,6 @@ import { APIResource } from '../../../resource'; import * as Core from '../../../core'; -import * as RatesAPI from './rates'; import * as Shared from '../../shared'; import { CursorPage, type CursorPageParams } from '../../../pagination'; @@ -324,12 +323,16 @@ export namespace RateAddManyParams { } } -export namespace Rates { - export import RateListResponse = RatesAPI.RateListResponse; - export import RateAddResponse = RatesAPI.RateAddResponse; - export import RateAddManyResponse = RatesAPI.RateAddManyResponse; - export import RateListResponsesCursorPage = RatesAPI.RateListResponsesCursorPage; - export import RateListParams = RatesAPI.RateListParams; - export import RateAddParams = RatesAPI.RateAddParams; - export import RateAddManyParams = RatesAPI.RateAddManyParams; +Rates.RateListResponsesCursorPage = RateListResponsesCursorPage; + +export declare namespace Rates { + export { + type RateListResponse as RateListResponse, + type RateAddResponse as RateAddResponse, + type RateAddManyResponse as RateAddManyResponse, + RateListResponsesCursorPage as RateListResponsesCursorPage, + type RateListParams as RateListParams, + type RateAddParams as RateAddParams, + type RateAddManyParams as RateAddManyParams, + }; } diff --git a/src/resources/credit-grants.ts b/src/resources/credit-grants.ts index 5678dde..5be7b2f 100644 --- a/src/resources/credit-grants.ts +++ b/src/resources/credit-grants.ts @@ -604,22 +604,27 @@ export interface CreditGrantVoidParams { void_credit_purchase_invoice?: boolean; } -export namespace CreditGrants { - export import CreditLedgerEntry = CreditGrantsAPI.CreditLedgerEntry; - export import RolloverAmountMaxAmount = CreditGrantsAPI.RolloverAmountMaxAmount; - export import RolloverAmountMaxPercentage = CreditGrantsAPI.RolloverAmountMaxPercentage; - export import CreditGrantCreateResponse = CreditGrantsAPI.CreditGrantCreateResponse; - export import CreditGrantListResponse = CreditGrantsAPI.CreditGrantListResponse; - export import CreditGrantEditResponse = CreditGrantsAPI.CreditGrantEditResponse; - export import CreditGrantListCreditTypesResponse = CreditGrantsAPI.CreditGrantListCreditTypesResponse; - export import CreditGrantListEntriesResponse = CreditGrantsAPI.CreditGrantListEntriesResponse; - export import CreditGrantVoidResponse = CreditGrantsAPI.CreditGrantVoidResponse; - export import CreditGrantListResponsesCursorPage = CreditGrantsAPI.CreditGrantListResponsesCursorPage; - export import CreditGrantListCreditTypesResponsesCursorPage = CreditGrantsAPI.CreditGrantListCreditTypesResponsesCursorPage; - export import CreditGrantCreateParams = CreditGrantsAPI.CreditGrantCreateParams; - export import CreditGrantListParams = CreditGrantsAPI.CreditGrantListParams; - export import CreditGrantEditParams = CreditGrantsAPI.CreditGrantEditParams; - export import CreditGrantListCreditTypesParams = CreditGrantsAPI.CreditGrantListCreditTypesParams; - export import CreditGrantListEntriesParams = CreditGrantsAPI.CreditGrantListEntriesParams; - export import CreditGrantVoidParams = CreditGrantsAPI.CreditGrantVoidParams; +CreditGrants.CreditGrantListResponsesCursorPage = CreditGrantListResponsesCursorPage; +CreditGrants.CreditGrantListCreditTypesResponsesCursorPage = CreditGrantListCreditTypesResponsesCursorPage; + +export declare namespace CreditGrants { + export { + type CreditLedgerEntry as CreditLedgerEntry, + type RolloverAmountMaxAmount as RolloverAmountMaxAmount, + type RolloverAmountMaxPercentage as RolloverAmountMaxPercentage, + type CreditGrantCreateResponse as CreditGrantCreateResponse, + type CreditGrantListResponse as CreditGrantListResponse, + type CreditGrantEditResponse as CreditGrantEditResponse, + type CreditGrantListCreditTypesResponse as CreditGrantListCreditTypesResponse, + type CreditGrantListEntriesResponse as CreditGrantListEntriesResponse, + type CreditGrantVoidResponse as CreditGrantVoidResponse, + CreditGrantListResponsesCursorPage as CreditGrantListResponsesCursorPage, + CreditGrantListCreditTypesResponsesCursorPage as CreditGrantListCreditTypesResponsesCursorPage, + type CreditGrantCreateParams as CreditGrantCreateParams, + type CreditGrantListParams as CreditGrantListParams, + type CreditGrantEditParams as CreditGrantEditParams, + type CreditGrantListCreditTypesParams as CreditGrantListCreditTypesParams, + type CreditGrantListEntriesParams as CreditGrantListEntriesParams, + type CreditGrantVoidParams as CreditGrantVoidParams, + }; } diff --git a/src/resources/custom-fields.ts b/src/resources/custom-fields.ts index 4255f33..98827fe 100644 --- a/src/resources/custom-fields.ts +++ b/src/resources/custom-fields.ts @@ -3,7 +3,6 @@ import { APIResource } from '../resource'; import { isRequestOptions } from '../core'; import * as Core from '../core'; -import * as CustomFieldsAPI from './custom-fields'; export class CustomFields extends APIResource { /** @@ -232,11 +231,13 @@ export interface CustomFieldSetValuesParams { entity_id: string; } -export namespace CustomFields { - export import CustomFieldListKeysResponse = CustomFieldsAPI.CustomFieldListKeysResponse; - export import CustomFieldAddKeyParams = CustomFieldsAPI.CustomFieldAddKeyParams; - export import CustomFieldDeleteValuesParams = CustomFieldsAPI.CustomFieldDeleteValuesParams; - export import CustomFieldListKeysParams = CustomFieldsAPI.CustomFieldListKeysParams; - export import CustomFieldRemoveKeyParams = CustomFieldsAPI.CustomFieldRemoveKeyParams; - export import CustomFieldSetValuesParams = CustomFieldsAPI.CustomFieldSetValuesParams; +export declare namespace CustomFields { + export { + type CustomFieldListKeysResponse as CustomFieldListKeysResponse, + type CustomFieldAddKeyParams as CustomFieldAddKeyParams, + type CustomFieldDeleteValuesParams as CustomFieldDeleteValuesParams, + type CustomFieldListKeysParams as CustomFieldListKeysParams, + type CustomFieldRemoveKeyParams as CustomFieldRemoveKeyParams, + type CustomFieldSetValuesParams as CustomFieldSetValuesParams, + }; } diff --git a/src/resources/customers/alerts.ts b/src/resources/customers/alerts.ts index 6b78798..7f9acac 100644 --- a/src/resources/customers/alerts.ts +++ b/src/resources/customers/alerts.ts @@ -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 { @@ -202,11 +201,13 @@ export interface AlertResetParams { customer_id: string; } -export namespace Alerts { - export import CustomerAlert = AlertsAPI.CustomerAlert; - export import AlertRetrieveResponse = AlertsAPI.AlertRetrieveResponse; - export import AlertListResponse = AlertsAPI.AlertListResponse; - export import AlertRetrieveParams = AlertsAPI.AlertRetrieveParams; - export import AlertListParams = AlertsAPI.AlertListParams; - export import AlertResetParams = AlertsAPI.AlertResetParams; +export declare namespace Alerts { + export { + type CustomerAlert as CustomerAlert, + type AlertRetrieveResponse as AlertRetrieveResponse, + type AlertListResponse as AlertListResponse, + type AlertRetrieveParams as AlertRetrieveParams, + type AlertListParams as AlertListParams, + type AlertResetParams as AlertResetParams, + }; } diff --git a/src/resources/customers/billing-config.ts b/src/resources/customers/billing-config.ts index 1c37ddd..4be74fc 100644 --- a/src/resources/customers/billing-config.ts +++ b/src/resources/customers/billing-config.ts @@ -2,7 +2,6 @@ import { APIResource } from '../../resource'; import * as Core from '../../core'; -import * as BillingConfigAPI from './billing-config'; export class BillingConfig extends APIResource { /** @@ -207,9 +206,11 @@ export interface BillingConfigDeleteParams { | 'gcp_marketplace'; } -export namespace BillingConfig { - export import BillingConfigRetrieveResponse = BillingConfigAPI.BillingConfigRetrieveResponse; - export import BillingConfigCreateParams = BillingConfigAPI.BillingConfigCreateParams; - export import BillingConfigRetrieveParams = BillingConfigAPI.BillingConfigRetrieveParams; - export import BillingConfigDeleteParams = BillingConfigAPI.BillingConfigDeleteParams; +export declare namespace BillingConfig { + export { + type BillingConfigRetrieveResponse as BillingConfigRetrieveResponse, + type BillingConfigCreateParams as BillingConfigCreateParams, + type BillingConfigRetrieveParams as BillingConfigRetrieveParams, + type BillingConfigDeleteParams as BillingConfigDeleteParams, + }; } diff --git a/src/resources/customers/commits.ts b/src/resources/customers/commits.ts index 41a4172..553790c 100644 --- a/src/resources/customers/commits.ts +++ b/src/resources/customers/commits.ts @@ -2,7 +2,6 @@ import { APIResource } from '../../resource'; import * as Core from '../../core'; -import * as CommitsAPI from './commits'; import * as Shared from '../shared'; export class Commits extends APIResource { @@ -312,11 +311,13 @@ export interface CommitUpdateEndDateParams { invoices_ending_before?: string; } -export namespace Commits { - export import CommitCreateResponse = CommitsAPI.CommitCreateResponse; - export import CommitListResponse = CommitsAPI.CommitListResponse; - export import CommitUpdateEndDateResponse = CommitsAPI.CommitUpdateEndDateResponse; - export import CommitCreateParams = CommitsAPI.CommitCreateParams; - export import CommitListParams = CommitsAPI.CommitListParams; - export import CommitUpdateEndDateParams = CommitsAPI.CommitUpdateEndDateParams; +export declare namespace Commits { + export { + type CommitCreateResponse as CommitCreateResponse, + type CommitListResponse as CommitListResponse, + type CommitUpdateEndDateResponse as CommitUpdateEndDateResponse, + type CommitCreateParams as CommitCreateParams, + type CommitListParams as CommitListParams, + type CommitUpdateEndDateParams as CommitUpdateEndDateParams, + }; } diff --git a/src/resources/customers/credits.ts b/src/resources/customers/credits.ts index bc58b35..08f06dc 100644 --- a/src/resources/customers/credits.ts +++ b/src/resources/customers/credits.ts @@ -2,7 +2,6 @@ import { APIResource } from '../../resource'; import * as Core from '../../core'; -import * as CreditsAPI from './credits'; import * as Shared from '../shared'; export class Credits extends APIResource { @@ -189,11 +188,13 @@ export interface CreditUpdateEndDateParams { customer_id: string; } -export namespace Credits { - export import CreditCreateResponse = CreditsAPI.CreditCreateResponse; - export import CreditListResponse = CreditsAPI.CreditListResponse; - export import CreditUpdateEndDateResponse = CreditsAPI.CreditUpdateEndDateResponse; - export import CreditCreateParams = CreditsAPI.CreditCreateParams; - export import CreditListParams = CreditsAPI.CreditListParams; - export import CreditUpdateEndDateParams = CreditsAPI.CreditUpdateEndDateParams; +export declare namespace Credits { + export { + type CreditCreateResponse as CreditCreateResponse, + type CreditListResponse as CreditListResponse, + type CreditUpdateEndDateResponse as CreditUpdateEndDateResponse, + type CreditCreateParams as CreditCreateParams, + type CreditListParams as CreditListParams, + type CreditUpdateEndDateParams as CreditUpdateEndDateParams, + }; } diff --git a/src/resources/customers/customers.ts b/src/resources/customers/customers.ts index 01d4722..217c517 100644 --- a/src/resources/customers/customers.ts +++ b/src/resources/customers/customers.ts @@ -3,15 +3,80 @@ import { APIResource } from '../../resource'; import { isRequestOptions } from '../../core'; import * as Core from '../../core'; -import * as CustomersAPI from './customers'; import * as Shared from '../shared'; import * as AlertsAPI from './alerts'; +import { + AlertListParams, + AlertListResponse, + AlertResetParams, + AlertRetrieveParams, + AlertRetrieveResponse, + Alerts, + CustomerAlert, +} from './alerts'; import * as BillingConfigAPI from './billing-config'; +import { + BillingConfig as BillingConfigAPIBillingConfig, + BillingConfigCreateParams, + BillingConfigDeleteParams, + BillingConfigRetrieveParams, + BillingConfigRetrieveResponse, +} from './billing-config'; import * as CommitsAPI from './commits'; +import { + CommitCreateParams, + CommitCreateResponse, + CommitListParams, + CommitListResponse, + CommitUpdateEndDateParams, + CommitUpdateEndDateResponse, + Commits, +} from './commits'; import * as CreditsAPI from './credits'; +import { + CreditCreateParams, + CreditCreateResponse, + CreditListParams, + CreditListResponse, + CreditUpdateEndDateParams, + CreditUpdateEndDateResponse, + Credits, +} from './credits'; import * as InvoicesAPI from './invoices'; +import { + Invoice, + InvoiceAddChargeParams, + InvoiceAddChargeResponse, + InvoiceListBreakdownsParams, + InvoiceListBreakdownsResponse, + InvoiceListBreakdownsResponsesCursorPage, + InvoiceListParams, + InvoiceRetrieveParams, + InvoiceRetrieveResponse, + Invoices, + InvoicesCursorPage, +} from './invoices'; import * as NamedSchedulesAPI from './named-schedules'; +import { + NamedScheduleRetrieveParams, + NamedScheduleRetrieveResponse, + NamedScheduleUpdateParams, + NamedSchedules, +} from './named-schedules'; import * as PlansAPI from './plans'; +import { + PlanAddParams, + PlanAddResponse, + PlanEndParams, + PlanEndResponse, + PlanListParams, + PlanListPriceAdjustmentsParams, + PlanListPriceAdjustmentsResponse, + PlanListPriceAdjustmentsResponsesCursorPage, + PlanListResponse, + PlanListResponsesCursorPage, + Plans, +} from './plans'; import { CursorPage, type CursorPageParams } from '../../pagination'; export class Customers extends APIResource { @@ -500,77 +565,115 @@ export interface CustomerUpdateConfigParams { salesforce_account_id?: string | null; } -export namespace Customers { - export import Customer = CustomersAPI.Customer; - export import CustomerDetail = CustomersAPI.CustomerDetail; - export import CustomerCreateResponse = CustomersAPI.CustomerCreateResponse; - export import CustomerRetrieveResponse = CustomersAPI.CustomerRetrieveResponse; - export import CustomerArchiveResponse = CustomersAPI.CustomerArchiveResponse; - export import CustomerListBillableMetricsResponse = CustomersAPI.CustomerListBillableMetricsResponse; - export import CustomerListCostsResponse = CustomersAPI.CustomerListCostsResponse; - export import CustomerSetNameResponse = CustomersAPI.CustomerSetNameResponse; - export import CustomerDetailsCursorPage = CustomersAPI.CustomerDetailsCursorPage; - export import CustomerListBillableMetricsResponsesCursorPage = CustomersAPI.CustomerListBillableMetricsResponsesCursorPage; - export import CustomerListCostsResponsesCursorPage = CustomersAPI.CustomerListCostsResponsesCursorPage; - export import CustomerCreateParams = CustomersAPI.CustomerCreateParams; - export import CustomerRetrieveParams = CustomersAPI.CustomerRetrieveParams; - export import CustomerListParams = CustomersAPI.CustomerListParams; - export import CustomerArchiveParams = CustomersAPI.CustomerArchiveParams; - export import CustomerListBillableMetricsParams = CustomersAPI.CustomerListBillableMetricsParams; - export import CustomerListCostsParams = CustomersAPI.CustomerListCostsParams; - export import CustomerSetIngestAliasesParams = CustomersAPI.CustomerSetIngestAliasesParams; - export import CustomerSetNameParams = CustomersAPI.CustomerSetNameParams; - export import CustomerUpdateConfigParams = CustomersAPI.CustomerUpdateConfigParams; - export import Alerts = AlertsAPI.Alerts; - export import CustomerAlert = AlertsAPI.CustomerAlert; - export import AlertRetrieveResponse = AlertsAPI.AlertRetrieveResponse; - export import AlertListResponse = AlertsAPI.AlertListResponse; - export import AlertRetrieveParams = AlertsAPI.AlertRetrieveParams; - export import AlertListParams = AlertsAPI.AlertListParams; - export import AlertResetParams = AlertsAPI.AlertResetParams; - export import Plans = PlansAPI.Plans; - export import PlanListResponse = PlansAPI.PlanListResponse; - export import PlanAddResponse = PlansAPI.PlanAddResponse; - export import PlanEndResponse = PlansAPI.PlanEndResponse; - export import PlanListPriceAdjustmentsResponse = PlansAPI.PlanListPriceAdjustmentsResponse; - export import PlanListResponsesCursorPage = PlansAPI.PlanListResponsesCursorPage; - export import PlanListPriceAdjustmentsResponsesCursorPage = PlansAPI.PlanListPriceAdjustmentsResponsesCursorPage; - export import PlanListParams = PlansAPI.PlanListParams; - export import PlanAddParams = PlansAPI.PlanAddParams; - export import PlanEndParams = PlansAPI.PlanEndParams; - export import PlanListPriceAdjustmentsParams = PlansAPI.PlanListPriceAdjustmentsParams; - export import Invoices = InvoicesAPI.Invoices; - export import Invoice = InvoicesAPI.Invoice; - export import InvoiceRetrieveResponse = InvoicesAPI.InvoiceRetrieveResponse; - export import InvoiceAddChargeResponse = InvoicesAPI.InvoiceAddChargeResponse; - export import InvoiceListBreakdownsResponse = InvoicesAPI.InvoiceListBreakdownsResponse; - export import InvoicesCursorPage = InvoicesAPI.InvoicesCursorPage; - export import InvoiceListBreakdownsResponsesCursorPage = InvoicesAPI.InvoiceListBreakdownsResponsesCursorPage; - export import InvoiceRetrieveParams = InvoicesAPI.InvoiceRetrieveParams; - export import InvoiceListParams = InvoicesAPI.InvoiceListParams; - export import InvoiceAddChargeParams = InvoicesAPI.InvoiceAddChargeParams; - export import InvoiceListBreakdownsParams = InvoicesAPI.InvoiceListBreakdownsParams; - export import BillingConfig = BillingConfigAPI.BillingConfig; - export import BillingConfigRetrieveResponse = BillingConfigAPI.BillingConfigRetrieveResponse; - export import BillingConfigCreateParams = BillingConfigAPI.BillingConfigCreateParams; - export import BillingConfigRetrieveParams = BillingConfigAPI.BillingConfigRetrieveParams; - export import BillingConfigDeleteParams = BillingConfigAPI.BillingConfigDeleteParams; - export import Commits = CommitsAPI.Commits; - export import CommitCreateResponse = CommitsAPI.CommitCreateResponse; - export import CommitListResponse = CommitsAPI.CommitListResponse; - export import CommitUpdateEndDateResponse = CommitsAPI.CommitUpdateEndDateResponse; - export import CommitCreateParams = CommitsAPI.CommitCreateParams; - export import CommitListParams = CommitsAPI.CommitListParams; - export import CommitUpdateEndDateParams = CommitsAPI.CommitUpdateEndDateParams; - export import Credits = CreditsAPI.Credits; - export import CreditCreateResponse = CreditsAPI.CreditCreateResponse; - export import CreditListResponse = CreditsAPI.CreditListResponse; - export import CreditUpdateEndDateResponse = CreditsAPI.CreditUpdateEndDateResponse; - export import CreditCreateParams = CreditsAPI.CreditCreateParams; - export import CreditListParams = CreditsAPI.CreditListParams; - export import CreditUpdateEndDateParams = CreditsAPI.CreditUpdateEndDateParams; - export import NamedSchedules = NamedSchedulesAPI.NamedSchedules; - export import NamedScheduleRetrieveResponse = NamedSchedulesAPI.NamedScheduleRetrieveResponse; - export import NamedScheduleRetrieveParams = NamedSchedulesAPI.NamedScheduleRetrieveParams; - export import NamedScheduleUpdateParams = NamedSchedulesAPI.NamedScheduleUpdateParams; +Customers.CustomerDetailsCursorPage = CustomerDetailsCursorPage; +Customers.CustomerListBillableMetricsResponsesCursorPage = CustomerListBillableMetricsResponsesCursorPage; +Customers.CustomerListCostsResponsesCursorPage = CustomerListCostsResponsesCursorPage; +Customers.Alerts = Alerts; +Customers.Plans = Plans; +Customers.PlanListResponsesCursorPage = PlanListResponsesCursorPage; +Customers.PlanListPriceAdjustmentsResponsesCursorPage = PlanListPriceAdjustmentsResponsesCursorPage; +Customers.Invoices = Invoices; +Customers.InvoicesCursorPage = InvoicesCursorPage; +Customers.InvoiceListBreakdownsResponsesCursorPage = InvoiceListBreakdownsResponsesCursorPage; +Customers.BillingConfig = BillingConfigAPIBillingConfig; +Customers.Commits = Commits; +Customers.Credits = Credits; +Customers.NamedSchedules = NamedSchedules; + +export declare namespace Customers { + export { + type Customer as Customer, + type CustomerDetail as CustomerDetail, + type CustomerCreateResponse as CustomerCreateResponse, + type CustomerRetrieveResponse as CustomerRetrieveResponse, + type CustomerArchiveResponse as CustomerArchiveResponse, + type CustomerListBillableMetricsResponse as CustomerListBillableMetricsResponse, + type CustomerListCostsResponse as CustomerListCostsResponse, + type CustomerSetNameResponse as CustomerSetNameResponse, + CustomerDetailsCursorPage as CustomerDetailsCursorPage, + CustomerListBillableMetricsResponsesCursorPage as CustomerListBillableMetricsResponsesCursorPage, + CustomerListCostsResponsesCursorPage as CustomerListCostsResponsesCursorPage, + type CustomerCreateParams as CustomerCreateParams, + type CustomerRetrieveParams as CustomerRetrieveParams, + type CustomerListParams as CustomerListParams, + type CustomerArchiveParams as CustomerArchiveParams, + type CustomerListBillableMetricsParams as CustomerListBillableMetricsParams, + type CustomerListCostsParams as CustomerListCostsParams, + type CustomerSetIngestAliasesParams as CustomerSetIngestAliasesParams, + type CustomerSetNameParams as CustomerSetNameParams, + type CustomerUpdateConfigParams as CustomerUpdateConfigParams, + }; + + export { + Alerts as Alerts, + type CustomerAlert as CustomerAlert, + type AlertRetrieveResponse as AlertRetrieveResponse, + type AlertListResponse as AlertListResponse, + type AlertRetrieveParams as AlertRetrieveParams, + type AlertListParams as AlertListParams, + type AlertResetParams as AlertResetParams, + }; + + export { + Plans as Plans, + type PlanListResponse as PlanListResponse, + type PlanAddResponse as PlanAddResponse, + type PlanEndResponse as PlanEndResponse, + type PlanListPriceAdjustmentsResponse as PlanListPriceAdjustmentsResponse, + PlanListResponsesCursorPage as PlanListResponsesCursorPage, + PlanListPriceAdjustmentsResponsesCursorPage as PlanListPriceAdjustmentsResponsesCursorPage, + type PlanListParams as PlanListParams, + type PlanAddParams as PlanAddParams, + type PlanEndParams as PlanEndParams, + type PlanListPriceAdjustmentsParams as PlanListPriceAdjustmentsParams, + }; + + export { + Invoices as Invoices, + type Invoice as Invoice, + type InvoiceRetrieveResponse as InvoiceRetrieveResponse, + type InvoiceAddChargeResponse as InvoiceAddChargeResponse, + type InvoiceListBreakdownsResponse as InvoiceListBreakdownsResponse, + InvoicesCursorPage as InvoicesCursorPage, + InvoiceListBreakdownsResponsesCursorPage as InvoiceListBreakdownsResponsesCursorPage, + type InvoiceRetrieveParams as InvoiceRetrieveParams, + type InvoiceListParams as InvoiceListParams, + type InvoiceAddChargeParams as InvoiceAddChargeParams, + type InvoiceListBreakdownsParams as InvoiceListBreakdownsParams, + }; + + export { + BillingConfigAPIBillingConfig as BillingConfig, + type BillingConfigRetrieveResponse as BillingConfigRetrieveResponse, + type BillingConfigCreateParams as BillingConfigCreateParams, + type BillingConfigRetrieveParams as BillingConfigRetrieveParams, + type BillingConfigDeleteParams as BillingConfigDeleteParams, + }; + + export { + Commits as Commits, + type CommitCreateResponse as CommitCreateResponse, + type CommitListResponse as CommitListResponse, + type CommitUpdateEndDateResponse as CommitUpdateEndDateResponse, + type CommitCreateParams as CommitCreateParams, + type CommitListParams as CommitListParams, + type CommitUpdateEndDateParams as CommitUpdateEndDateParams, + }; + + export { + Credits as Credits, + type CreditCreateResponse as CreditCreateResponse, + type CreditListResponse as CreditListResponse, + type CreditUpdateEndDateResponse as CreditUpdateEndDateResponse, + type CreditCreateParams as CreditCreateParams, + type CreditListParams as CreditListParams, + type CreditUpdateEndDateParams as CreditUpdateEndDateParams, + }; + + export { + NamedSchedules as NamedSchedules, + type NamedScheduleRetrieveResponse as NamedScheduleRetrieveResponse, + type NamedScheduleRetrieveParams as NamedScheduleRetrieveParams, + type NamedScheduleUpdateParams as NamedScheduleUpdateParams, + }; } diff --git a/src/resources/customers/index.ts b/src/resources/customers/index.ts index 1f332d4..35d3b90 100644 --- a/src/resources/customers/index.ts +++ b/src/resources/customers/index.ts @@ -1,91 +1,91 @@ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. export { - BillingConfigRetrieveResponse, - BillingConfigCreateParams, - BillingConfigRetrieveParams, - BillingConfigDeleteParams, + Alerts, + type CustomerAlert, + type AlertRetrieveResponse, + type AlertListResponse, + type AlertRetrieveParams, + type AlertListParams, + type AlertResetParams, +} from './alerts'; +export { BillingConfig, + type BillingConfigRetrieveResponse, + type BillingConfigCreateParams, + type BillingConfigRetrieveParams, + type BillingConfigDeleteParams, } from './billing-config'; export { - CommitCreateResponse, - CommitListResponse, - CommitUpdateEndDateResponse, - CommitCreateParams, - CommitListParams, - CommitUpdateEndDateParams, Commits, + type CommitCreateResponse, + type CommitListResponse, + type CommitUpdateEndDateResponse, + type CommitCreateParams, + type CommitListParams, + type CommitUpdateEndDateParams, } from './commits'; export { - CreditCreateResponse, - CreditListResponse, - CreditUpdateEndDateResponse, - CreditCreateParams, - CreditListParams, - CreditUpdateEndDateParams, Credits, + type CreditCreateResponse, + type CreditListResponse, + type CreditUpdateEndDateResponse, + type CreditCreateParams, + type CreditListParams, + type CreditUpdateEndDateParams, } from './credits'; export { - Customer, - CustomerDetail, - CustomerCreateResponse, - CustomerRetrieveResponse, - CustomerArchiveResponse, - CustomerListBillableMetricsResponse, - CustomerListCostsResponse, - CustomerSetNameResponse, - CustomerCreateParams, - CustomerRetrieveParams, - CustomerListParams, - CustomerArchiveParams, - CustomerListBillableMetricsParams, - CustomerListCostsParams, - CustomerSetIngestAliasesParams, - CustomerSetNameParams, - CustomerUpdateConfigParams, CustomerDetailsCursorPage, CustomerListBillableMetricsResponsesCursorPage, CustomerListCostsResponsesCursorPage, Customers, + type Customer, + type CustomerDetail, + type CustomerCreateResponse, + type CustomerRetrieveResponse, + type CustomerArchiveResponse, + type CustomerListBillableMetricsResponse, + type CustomerListCostsResponse, + type CustomerSetNameResponse, + type CustomerCreateParams, + type CustomerRetrieveParams, + type CustomerListParams, + type CustomerArchiveParams, + type CustomerListBillableMetricsParams, + type CustomerListCostsParams, + type CustomerSetIngestAliasesParams, + type CustomerSetNameParams, + type CustomerUpdateConfigParams, } from './customers'; export { - CustomerAlert, - AlertRetrieveResponse, - AlertListResponse, - AlertRetrieveParams, - AlertListParams, - AlertResetParams, - Alerts, -} from './alerts'; -export { - Invoice, - InvoiceRetrieveResponse, - InvoiceAddChargeResponse, - InvoiceListBreakdownsResponse, - InvoiceRetrieveParams, - InvoiceListParams, - InvoiceAddChargeParams, - InvoiceListBreakdownsParams, InvoicesCursorPage, InvoiceListBreakdownsResponsesCursorPage, Invoices, + type Invoice, + type InvoiceRetrieveResponse, + type InvoiceAddChargeResponse, + type InvoiceListBreakdownsResponse, + type InvoiceRetrieveParams, + type InvoiceListParams, + type InvoiceAddChargeParams, + type InvoiceListBreakdownsParams, } from './invoices'; export { - NamedScheduleRetrieveResponse, - NamedScheduleRetrieveParams, - NamedScheduleUpdateParams, NamedSchedules, + type NamedScheduleRetrieveResponse, + type NamedScheduleRetrieveParams, + type NamedScheduleUpdateParams, } from './named-schedules'; export { - PlanListResponse, - PlanAddResponse, - PlanEndResponse, - PlanListPriceAdjustmentsResponse, - PlanListParams, - PlanAddParams, - PlanEndParams, - PlanListPriceAdjustmentsParams, PlanListResponsesCursorPage, PlanListPriceAdjustmentsResponsesCursorPage, Plans, + type PlanListResponse, + type PlanAddResponse, + type PlanEndResponse, + type PlanListPriceAdjustmentsResponse, + type PlanListParams, + type PlanAddParams, + type PlanEndParams, + type PlanListPriceAdjustmentsParams, } from './plans'; diff --git a/src/resources/customers/invoices.ts b/src/resources/customers/invoices.ts index c8467dc..1c9d10e 100644 --- a/src/resources/customers/invoices.ts +++ b/src/resources/customers/invoices.ts @@ -2,7 +2,6 @@ import { APIResource } from '../../resource'; import * as Core from '../../core'; -import * as InvoicesAPI from './invoices'; import * as Shared from '../shared'; import { CursorPage, type CursorPageParams } from '../../pagination'; @@ -627,15 +626,20 @@ export interface InvoiceListBreakdownsParams extends CursorPageParams { window_size?: 'HOUR' | 'DAY'; } -export namespace Invoices { - export import Invoice = InvoicesAPI.Invoice; - export import InvoiceRetrieveResponse = InvoicesAPI.InvoiceRetrieveResponse; - export import InvoiceAddChargeResponse = InvoicesAPI.InvoiceAddChargeResponse; - export import InvoiceListBreakdownsResponse = InvoicesAPI.InvoiceListBreakdownsResponse; - export import InvoicesCursorPage = InvoicesAPI.InvoicesCursorPage; - export import InvoiceListBreakdownsResponsesCursorPage = InvoicesAPI.InvoiceListBreakdownsResponsesCursorPage; - export import InvoiceRetrieveParams = InvoicesAPI.InvoiceRetrieveParams; - export import InvoiceListParams = InvoicesAPI.InvoiceListParams; - export import InvoiceAddChargeParams = InvoicesAPI.InvoiceAddChargeParams; - export import InvoiceListBreakdownsParams = InvoicesAPI.InvoiceListBreakdownsParams; +Invoices.InvoicesCursorPage = InvoicesCursorPage; +Invoices.InvoiceListBreakdownsResponsesCursorPage = InvoiceListBreakdownsResponsesCursorPage; + +export declare namespace Invoices { + export { + type Invoice as Invoice, + type InvoiceRetrieveResponse as InvoiceRetrieveResponse, + type InvoiceAddChargeResponse as InvoiceAddChargeResponse, + type InvoiceListBreakdownsResponse as InvoiceListBreakdownsResponse, + InvoicesCursorPage as InvoicesCursorPage, + InvoiceListBreakdownsResponsesCursorPage as InvoiceListBreakdownsResponsesCursorPage, + type InvoiceRetrieveParams as InvoiceRetrieveParams, + type InvoiceListParams as InvoiceListParams, + type InvoiceAddChargeParams as InvoiceAddChargeParams, + type InvoiceListBreakdownsParams as InvoiceListBreakdownsParams, + }; } diff --git a/src/resources/customers/named-schedules.ts b/src/resources/customers/named-schedules.ts index 9e51590..9c9e069 100644 --- a/src/resources/customers/named-schedules.ts +++ b/src/resources/customers/named-schedules.ts @@ -2,7 +2,6 @@ import { APIResource } from '../../resource'; import * as Core from '../../core'; -import * as NamedSchedulesAPI from './named-schedules'; export class NamedSchedules extends APIResource { /** @@ -83,8 +82,10 @@ export interface NamedScheduleUpdateParams { ending_before?: string; } -export namespace NamedSchedules { - export import NamedScheduleRetrieveResponse = NamedSchedulesAPI.NamedScheduleRetrieveResponse; - export import NamedScheduleRetrieveParams = NamedSchedulesAPI.NamedScheduleRetrieveParams; - export import NamedScheduleUpdateParams = NamedSchedulesAPI.NamedScheduleUpdateParams; +export declare namespace NamedSchedules { + export { + type NamedScheduleRetrieveResponse as NamedScheduleRetrieveResponse, + type NamedScheduleRetrieveParams as NamedScheduleRetrieveParams, + type NamedScheduleUpdateParams as NamedScheduleUpdateParams, + }; } diff --git a/src/resources/customers/plans.ts b/src/resources/customers/plans.ts index 1196676..c139c21 100644 --- a/src/resources/customers/plans.ts +++ b/src/resources/customers/plans.ts @@ -2,7 +2,6 @@ import { APIResource } from '../../resource'; import * as Core from '../../core'; -import * as PlansAPI from './plans'; import * as Shared from '../shared'; import { CursorPage, type CursorPageParams } from '../../pagination'; @@ -313,15 +312,20 @@ export interface PlanListPriceAdjustmentsParams extends CursorPageParams { customer_plan_id: string; } -export namespace Plans { - export import PlanListResponse = PlansAPI.PlanListResponse; - export import PlanAddResponse = PlansAPI.PlanAddResponse; - export import PlanEndResponse = PlansAPI.PlanEndResponse; - export import PlanListPriceAdjustmentsResponse = PlansAPI.PlanListPriceAdjustmentsResponse; - export import PlanListResponsesCursorPage = PlansAPI.PlanListResponsesCursorPage; - export import PlanListPriceAdjustmentsResponsesCursorPage = PlansAPI.PlanListPriceAdjustmentsResponsesCursorPage; - export import PlanListParams = PlansAPI.PlanListParams; - export import PlanAddParams = PlansAPI.PlanAddParams; - export import PlanEndParams = PlansAPI.PlanEndParams; - export import PlanListPriceAdjustmentsParams = PlansAPI.PlanListPriceAdjustmentsParams; +Plans.PlanListResponsesCursorPage = PlanListResponsesCursorPage; +Plans.PlanListPriceAdjustmentsResponsesCursorPage = PlanListPriceAdjustmentsResponsesCursorPage; + +export declare namespace Plans { + export { + type PlanListResponse as PlanListResponse, + type PlanAddResponse as PlanAddResponse, + type PlanEndResponse as PlanEndResponse, + type PlanListPriceAdjustmentsResponse as PlanListPriceAdjustmentsResponse, + PlanListResponsesCursorPage as PlanListResponsesCursorPage, + PlanListPriceAdjustmentsResponsesCursorPage as PlanListPriceAdjustmentsResponsesCursorPage, + type PlanListParams as PlanListParams, + type PlanAddParams as PlanAddParams, + type PlanEndParams as PlanEndParams, + type PlanListPriceAdjustmentsParams as PlanListPriceAdjustmentsParams, + }; } diff --git a/src/resources/dashboards.ts b/src/resources/dashboards.ts index 294a7da..a259dbe 100644 --- a/src/resources/dashboards.ts +++ b/src/resources/dashboards.ts @@ -2,7 +2,6 @@ import { APIResource } from '../resource'; import * as Core from '../core'; -import * as DashboardsAPI from './dashboards'; export class Dashboards extends APIResource { /** @@ -115,7 +114,9 @@ export namespace DashboardGetEmbeddableURLParams { } } -export namespace Dashboards { - export import DashboardGetEmbeddableURLResponse = DashboardsAPI.DashboardGetEmbeddableURLResponse; - export import DashboardGetEmbeddableURLParams = DashboardsAPI.DashboardGetEmbeddableURLParams; +export declare namespace Dashboards { + export { + type DashboardGetEmbeddableURLResponse as DashboardGetEmbeddableURLResponse, + type DashboardGetEmbeddableURLParams as DashboardGetEmbeddableURLParams, + }; } diff --git a/src/resources/index.ts b/src/resources/index.ts index 9bf2697..9b9122c 100644 --- a/src/resources/index.ts +++ b/src/resources/index.ts @@ -2,138 +2,142 @@ export * from './shared'; export { - AlertCreateResponse, - AlertArchiveResponse, - AlertCreateParams, - AlertArchiveParams, Alerts, + type AlertCreateResponse, + type AlertArchiveResponse, + type AlertCreateParams, + type AlertArchiveParams, } from './alerts'; export { - AuditLogListResponse, - AuditLogListParams, AuditLogListResponsesCursorPage, AuditLogs, + type AuditLogListResponse, + type AuditLogListParams, } from './audit-logs'; export { - BillableMetricCreateResponse, - BillableMetricRetrieveResponse, - BillableMetricListResponse, - BillableMetricArchiveResponse, - BillableMetricCreateParams, - BillableMetricRetrieveParams, - BillableMetricListParams, - BillableMetricArchiveParams, BillableMetricListResponsesCursorPage, BillableMetrics, + type BillableMetricCreateResponse, + type BillableMetricRetrieveResponse, + type BillableMetricListResponse, + type BillableMetricArchiveResponse, + type BillableMetricCreateParams, + type BillableMetricRetrieveParams, + type BillableMetricListParams, + type BillableMetricArchiveParams, } from './billable-metrics'; 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/contracts'; export { - CreditLedgerEntry, - RolloverAmountMaxAmount, - RolloverAmountMaxPercentage, - CreditGrantCreateResponse, - CreditGrantListResponse, - CreditGrantEditResponse, - CreditGrantListCreditTypesResponse, - CreditGrantListEntriesResponse, - CreditGrantVoidResponse, - CreditGrantCreateParams, - CreditGrantListParams, - CreditGrantEditParams, - CreditGrantListCreditTypesParams, - CreditGrantListEntriesParams, - CreditGrantVoidParams, CreditGrantListResponsesCursorPage, CreditGrantListCreditTypesResponsesCursorPage, CreditGrants, + type CreditLedgerEntry, + type RolloverAmountMaxAmount, + type RolloverAmountMaxPercentage, + type CreditGrantCreateResponse, + type CreditGrantListResponse, + type CreditGrantEditResponse, + type CreditGrantListCreditTypesResponse, + type CreditGrantListEntriesResponse, + type CreditGrantVoidResponse, + type CreditGrantCreateParams, + type CreditGrantListParams, + type CreditGrantEditParams, + type CreditGrantListCreditTypesParams, + type CreditGrantListEntriesParams, + type CreditGrantVoidParams, } from './credit-grants'; export { - CustomFieldListKeysResponse, - CustomFieldAddKeyParams, - CustomFieldDeleteValuesParams, - CustomFieldListKeysParams, - CustomFieldRemoveKeyParams, - CustomFieldSetValuesParams, CustomFields, + type CustomFieldListKeysResponse, + type CustomFieldAddKeyParams, + type CustomFieldDeleteValuesParams, + type CustomFieldListKeysParams, + type CustomFieldRemoveKeyParams, + type CustomFieldSetValuesParams, } from './custom-fields'; export { - Customer, - CustomerDetail, - CustomerCreateResponse, - CustomerRetrieveResponse, - CustomerArchiveResponse, - CustomerListBillableMetricsResponse, - CustomerListCostsResponse, - CustomerSetNameResponse, - CustomerCreateParams, - CustomerRetrieveParams, - CustomerListParams, - CustomerArchiveParams, - CustomerListBillableMetricsParams, - CustomerListCostsParams, - CustomerSetIngestAliasesParams, - CustomerSetNameParams, - CustomerUpdateConfigParams, CustomerDetailsCursorPage, CustomerListBillableMetricsResponsesCursorPage, CustomerListCostsResponsesCursorPage, Customers, + type Customer, + type CustomerDetail, + type CustomerCreateResponse, + type CustomerRetrieveResponse, + type CustomerArchiveResponse, + type CustomerListBillableMetricsResponse, + type CustomerListCostsResponse, + type CustomerSetNameResponse, + type CustomerCreateParams, + type CustomerRetrieveParams, + type CustomerListParams, + type CustomerArchiveParams, + type CustomerListBillableMetricsParams, + type CustomerListCostsParams, + type CustomerSetIngestAliasesParams, + type CustomerSetNameParams, + type CustomerUpdateConfigParams, } from './customers/customers'; -export { DashboardGetEmbeddableURLResponse, DashboardGetEmbeddableURLParams, Dashboards } from './dashboards'; export { - InvoiceRegenerateResponse, - InvoiceVoidResponse, - InvoiceRegenerateParams, - InvoiceVoidParams, + Dashboards, + type DashboardGetEmbeddableURLResponse, + type DashboardGetEmbeddableURLParams, +} from './dashboards'; +export { Invoices, + type InvoiceRegenerateResponse, + type InvoiceVoidResponse, + type InvoiceRegenerateParams, + type InvoiceVoidParams, } from './invoices'; export { - PlanDetail, - PlanListResponse, - PlanGetDetailsResponse, - PlanListChargesResponse, - PlanListCustomersResponse, - PlanListParams, - PlanGetDetailsParams, - PlanListChargesParams, - PlanListCustomersParams, PlanListResponsesCursorPage, PlanListChargesResponsesCursorPage, PlanListCustomersResponsesCursorPage, Plans, + type PlanDetail, + type PlanListResponse, + type PlanGetDetailsResponse, + type PlanListChargesResponse, + type PlanListCustomersResponse, + type PlanListParams, + type PlanGetDetailsParams, + type PlanListChargesParams, + type PlanListCustomersParams, } from './plans'; -export { ServiceListResponse, Services } from './services'; +export { Services, type ServiceListResponse } from './services'; export { - UsageListResponse, - UsageListWithGroupsResponse, - UsageListParams, - UsageIngestParams, - UsageListWithGroupsParams, UsageListWithGroupsResponsesCursorPage, Usage, + type UsageListResponse, + type UsageListWithGroupsResponse, + type UsageListParams, + type UsageIngestParams, + type UsageListWithGroupsParams, } from './usage'; export { Webhooks } from './webhooks'; diff --git a/src/resources/invoices.ts b/src/resources/invoices.ts index d83af3b..820e968 100644 --- a/src/resources/invoices.ts +++ b/src/resources/invoices.ts @@ -2,7 +2,6 @@ import { APIResource } from '../resource'; import * as Core from '../core'; -import * as InvoicesAPI from './invoices'; export class Invoices extends APIResource { /** @@ -60,9 +59,11 @@ export interface InvoiceVoidParams { id: string; } -export namespace Invoices { - export import InvoiceRegenerateResponse = InvoicesAPI.InvoiceRegenerateResponse; - export import InvoiceVoidResponse = InvoicesAPI.InvoiceVoidResponse; - export import InvoiceRegenerateParams = InvoicesAPI.InvoiceRegenerateParams; - export import InvoiceVoidParams = InvoicesAPI.InvoiceVoidParams; +export declare namespace Invoices { + export { + type InvoiceRegenerateResponse as InvoiceRegenerateResponse, + type InvoiceVoidResponse as InvoiceVoidResponse, + type InvoiceRegenerateParams as InvoiceRegenerateParams, + type InvoiceVoidParams as InvoiceVoidParams, + }; } diff --git a/src/resources/plans.ts b/src/resources/plans.ts index 986bb03..10e4e76 100644 --- a/src/resources/plans.ts +++ b/src/resources/plans.ts @@ -3,7 +3,6 @@ import { APIResource } from '../resource'; import { isRequestOptions } from '../core'; import * as Core from '../core'; -import * as PlansAPI from './plans'; import * as Shared from './shared'; import * as CustomersAPI from './customers/customers'; import { CursorPage, type CursorPageParams } from '../pagination'; @@ -290,17 +289,23 @@ export interface PlanListCustomersParams extends CursorPageParams { status?: 'all' | 'active' | 'ended' | 'upcoming'; } -export namespace Plans { - export import PlanDetail = PlansAPI.PlanDetail; - export import PlanListResponse = PlansAPI.PlanListResponse; - export import PlanGetDetailsResponse = PlansAPI.PlanGetDetailsResponse; - export import PlanListChargesResponse = PlansAPI.PlanListChargesResponse; - export import PlanListCustomersResponse = PlansAPI.PlanListCustomersResponse; - export import PlanListResponsesCursorPage = PlansAPI.PlanListResponsesCursorPage; - export import PlanListChargesResponsesCursorPage = PlansAPI.PlanListChargesResponsesCursorPage; - export import PlanListCustomersResponsesCursorPage = PlansAPI.PlanListCustomersResponsesCursorPage; - export import PlanListParams = PlansAPI.PlanListParams; - export import PlanGetDetailsParams = PlansAPI.PlanGetDetailsParams; - export import PlanListChargesParams = PlansAPI.PlanListChargesParams; - export import PlanListCustomersParams = PlansAPI.PlanListCustomersParams; +Plans.PlanListResponsesCursorPage = PlanListResponsesCursorPage; +Plans.PlanListChargesResponsesCursorPage = PlanListChargesResponsesCursorPage; +Plans.PlanListCustomersResponsesCursorPage = PlanListCustomersResponsesCursorPage; + +export declare namespace Plans { + export { + type PlanDetail as PlanDetail, + type PlanListResponse as PlanListResponse, + type PlanGetDetailsResponse as PlanGetDetailsResponse, + type PlanListChargesResponse as PlanListChargesResponse, + type PlanListCustomersResponse as PlanListCustomersResponse, + PlanListResponsesCursorPage as PlanListResponsesCursorPage, + PlanListChargesResponsesCursorPage as PlanListChargesResponsesCursorPage, + PlanListCustomersResponsesCursorPage as PlanListCustomersResponsesCursorPage, + type PlanListParams as PlanListParams, + type PlanGetDetailsParams as PlanGetDetailsParams, + type PlanListChargesParams as PlanListChargesParams, + type PlanListCustomersParams as PlanListCustomersParams, + }; } diff --git a/src/resources/services.ts b/src/resources/services.ts index 9ca9ec7..d96cbbd 100644 --- a/src/resources/services.ts +++ b/src/resources/services.ts @@ -2,7 +2,6 @@ import { APIResource } from '../resource'; import * as Core from '../core'; -import * as ServicesAPI from './services'; export class Services extends APIResource { /** @@ -30,6 +29,6 @@ export namespace ServiceListResponse { } } -export namespace Services { - export import ServiceListResponse = ServicesAPI.ServiceListResponse; +export declare namespace Services { + export { type ServiceListResponse as ServiceListResponse }; } diff --git a/src/resources/usage.ts b/src/resources/usage.ts index 1b399e4..cbc9857 100644 --- a/src/resources/usage.ts +++ b/src/resources/usage.ts @@ -2,7 +2,6 @@ import { APIResource } from '../resource'; import * as Core from '../core'; -import * as UsageAPI from './usage'; import { CursorPage, type CursorPageParams } from '../pagination'; export class Usage extends APIResource { @@ -226,11 +225,15 @@ export namespace UsageListWithGroupsParams { } } -export namespace Usage { - export import UsageListResponse = UsageAPI.UsageListResponse; - export import UsageListWithGroupsResponse = UsageAPI.UsageListWithGroupsResponse; - export import UsageListWithGroupsResponsesCursorPage = UsageAPI.UsageListWithGroupsResponsesCursorPage; - export import UsageListParams = UsageAPI.UsageListParams; - export import UsageIngestParams = UsageAPI.UsageIngestParams; - export import UsageListWithGroupsParams = UsageAPI.UsageListWithGroupsParams; +Usage.UsageListWithGroupsResponsesCursorPage = UsageListWithGroupsResponsesCursorPage; + +export declare namespace Usage { + export { + type UsageListResponse as UsageListResponse, + type UsageListWithGroupsResponse as UsageListWithGroupsResponse, + UsageListWithGroupsResponsesCursorPage as UsageListWithGroupsResponsesCursorPage, + type UsageListParams as UsageListParams, + type UsageIngestParams as UsageIngestParams, + type UsageListWithGroupsParams as UsageListWithGroupsParams, + }; } diff --git a/tsconfig.json b/tsconfig.json index b660e31..5e63fd7 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -11,7 +11,7 @@ "paths": { "@metronome/sdk/_shims/auto/*": ["src/_shims/auto/*-node"], "@metronome/sdk/*": ["src/*"], - "@metronome/sdk": ["src/index.ts"], + "@metronome/sdk": ["src/index.ts"] }, "noEmit": true,