From a83b78eace3d5abf8cf47b2e715dc2b6065b2c69 Mon Sep 17 00:00:00 2001 From: stainless-bot Date: Fri, 25 Oct 2024 17:06:18 +0000 Subject: [PATCH] chore: rebuild project due to codegen change --- src/index.ts | 230 +++++++++--------- src/resources/alerts.ts | 8 +- src/resources/audit-logs.ts | 4 +- src/resources/billable-metrics.ts | 16 +- src/resources/contracts/contracts.ts | 99 ++++---- src/resources/contracts/index.ts | 96 ++++---- src/resources/contracts/named-schedules.ts | 6 +- src/resources/contracts/products.ts | 26 +- src/resources/contracts/rate-cards/index.ts | 46 ++-- .../contracts/rate-cards/named-schedules.ts | 6 +- .../contracts/rate-cards/product-orders.ts | 8 +- .../contracts/rate-cards/rate-cards.ts | 46 ++-- src/resources/contracts/rate-cards/rates.ts | 12 +- src/resources/credit-grants.ts | 30 +-- src/resources/custom-fields.ts | 12 +- src/resources/customers/alerts.ts | 12 +- src/resources/customers/billing-config.ts | 8 +- src/resources/customers/commits.ts | 12 +- src/resources/customers/credits.ts | 12 +- src/resources/customers/customers.ts | 116 ++++----- src/resources/customers/index.ts | 122 +++++----- src/resources/customers/invoices.ts | 16 +- src/resources/customers/named-schedules.ts | 6 +- src/resources/customers/plans.ts | 16 +- src/resources/dashboards.ts | 4 +- src/resources/index.ts | 192 ++++++++------- src/resources/invoices.ts | 8 +- src/resources/plans.ts | 18 +- src/resources/services.ts | 2 +- src/resources/usage.ts | 10 +- tsconfig.json | 3 +- 31 files changed, 605 insertions(+), 597 deletions(-) diff --git a/src/index.ts b/src/index.ts index e639557..3572447 100644 --- a/src/index.ts +++ b/src/index.ts @@ -204,158 +204,158 @@ export import toFile = Uploads.toFile; export import fileFromPath = Uploads.fileFromPath; export namespace Metronome { - export import RequestOptions = Core.RequestOptions; + export type RequestOptions = Core.RequestOptions; export import CursorPage = Pagination.CursorPage; - export import CursorPageParams = Pagination.CursorPageParams; - export import CursorPageResponse = Pagination.CursorPageResponse; + export type CursorPageParams = Pagination.CursorPageParams; + export type 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 type AlertCreateResponse = API.AlertCreateResponse; + export type AlertArchiveResponse = API.AlertArchiveResponse; + export type AlertCreateParams = API.AlertCreateParams; + export type 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 type PlanDetail = API.PlanDetail; + export type PlanListResponse = API.PlanListResponse; + export type PlanGetDetailsResponse = API.PlanGetDetailsResponse; + export type PlanListChargesResponse = API.PlanListChargesResponse; + export type 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 type PlanListParams = API.PlanListParams; + export type PlanGetDetailsParams = API.PlanGetDetailsParams; + export type PlanListChargesParams = API.PlanListChargesParams; + export type 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 type CreditLedgerEntry = API.CreditLedgerEntry; + export type RolloverAmountMaxAmount = API.RolloverAmountMaxAmount; + export type RolloverAmountMaxPercentage = API.RolloverAmountMaxPercentage; + export type CreditGrantCreateResponse = API.CreditGrantCreateResponse; + export type CreditGrantListResponse = API.CreditGrantListResponse; + export type CreditGrantEditResponse = API.CreditGrantEditResponse; + export type CreditGrantListCreditTypesResponse = API.CreditGrantListCreditTypesResponse; + export type CreditGrantListEntriesResponse = API.CreditGrantListEntriesResponse; + export type 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 type CreditGrantCreateParams = API.CreditGrantCreateParams; + export type CreditGrantListParams = API.CreditGrantListParams; + export type CreditGrantEditParams = API.CreditGrantEditParams; + export type CreditGrantListCreditTypesParams = API.CreditGrantListCreditTypesParams; + export type CreditGrantListEntriesParams = API.CreditGrantListEntriesParams; + export type 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 type Customer = API.Customer; + export type CustomerDetail = API.CustomerDetail; + export type CustomerCreateResponse = API.CustomerCreateResponse; + export type CustomerRetrieveResponse = API.CustomerRetrieveResponse; + export type CustomerArchiveResponse = API.CustomerArchiveResponse; + export type CustomerListBillableMetricsResponse = API.CustomerListBillableMetricsResponse; + export type CustomerListCostsResponse = API.CustomerListCostsResponse; + export type 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 type CustomerCreateParams = API.CustomerCreateParams; + export type CustomerRetrieveParams = API.CustomerRetrieveParams; + export type CustomerListParams = API.CustomerListParams; + export type CustomerArchiveParams = API.CustomerArchiveParams; + export type CustomerListBillableMetricsParams = API.CustomerListBillableMetricsParams; + export type CustomerListCostsParams = API.CustomerListCostsParams; + export type CustomerSetIngestAliasesParams = API.CustomerSetIngestAliasesParams; + export type CustomerSetNameParams = API.CustomerSetNameParams; + export type CustomerUpdateConfigParams = API.CustomerUpdateConfigParams; export import Dashboards = API.Dashboards; - export import DashboardGetEmbeddableURLResponse = API.DashboardGetEmbeddableURLResponse; - export import DashboardGetEmbeddableURLParams = API.DashboardGetEmbeddableURLParams; + export type DashboardGetEmbeddableURLResponse = API.DashboardGetEmbeddableURLResponse; + export type DashboardGetEmbeddableURLParams = API.DashboardGetEmbeddableURLParams; export import Usage = API.Usage; - export import UsageListResponse = API.UsageListResponse; - export import UsageListWithGroupsResponse = API.UsageListWithGroupsResponse; + export type UsageListResponse = API.UsageListResponse; + export type UsageListWithGroupsResponse = API.UsageListWithGroupsResponse; export import UsageListWithGroupsResponsesCursorPage = API.UsageListWithGroupsResponsesCursorPage; - export import UsageListParams = API.UsageListParams; - export import UsageIngestParams = API.UsageIngestParams; - export import UsageListWithGroupsParams = API.UsageListWithGroupsParams; + export type UsageListParams = API.UsageListParams; + export type UsageIngestParams = API.UsageIngestParams; + export type UsageListWithGroupsParams = API.UsageListWithGroupsParams; export import AuditLogs = API.AuditLogs; - export import AuditLogListResponse = API.AuditLogListResponse; + export type AuditLogListResponse = API.AuditLogListResponse; export import AuditLogListResponsesCursorPage = API.AuditLogListResponsesCursorPage; - export import AuditLogListParams = API.AuditLogListParams; + export type 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 type CustomFieldListKeysResponse = API.CustomFieldListKeysResponse; + export type CustomFieldAddKeyParams = API.CustomFieldAddKeyParams; + export type CustomFieldDeleteValuesParams = API.CustomFieldDeleteValuesParams; + export type CustomFieldListKeysParams = API.CustomFieldListKeysParams; + export type CustomFieldRemoveKeyParams = API.CustomFieldRemoveKeyParams; + export type 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 type BillableMetricCreateResponse = API.BillableMetricCreateResponse; + export type BillableMetricRetrieveResponse = API.BillableMetricRetrieveResponse; + export type BillableMetricListResponse = API.BillableMetricListResponse; + export type 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 type BillableMetricCreateParams = API.BillableMetricCreateParams; + export type BillableMetricRetrieveParams = API.BillableMetricRetrieveParams; + export type BillableMetricListParams = API.BillableMetricListParams; + export type BillableMetricArchiveParams = API.BillableMetricArchiveParams; export import Services = API.Services; - export import ServiceListResponse = API.ServiceListResponse; + export type 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 type InvoiceRegenerateResponse = API.InvoiceRegenerateResponse; + export type InvoiceVoidResponse = API.InvoiceVoidResponse; + export type InvoiceRegenerateParams = API.InvoiceRegenerateParams; + export type 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 ContractCreateResponse = API.ContractCreateResponse; + export type ContractRetrieveResponse = API.ContractRetrieveResponse; + export type ContractListResponse = API.ContractListResponse; + export type ContractAmendResponse = API.ContractAmendResponse; + export type ContractArchiveResponse = API.ContractArchiveResponse; + export type ContractCreateHistoricalInvoicesResponse = API.ContractCreateHistoricalInvoicesResponse; + export type ContractListBalancesResponse = API.ContractListBalancesResponse; + export type ContractRetrieveRateScheduleResponse = API.ContractRetrieveRateScheduleResponse; + export type ContractScheduleProServicesInvoiceResponse = API.ContractScheduleProServicesInvoiceResponse; + export type ContractUpdateEndDateResponse = API.ContractUpdateEndDateResponse; + export type ContractCreateParams = API.ContractCreateParams; + export type ContractRetrieveParams = API.ContractRetrieveParams; + export type ContractListParams = API.ContractListParams; + export type ContractAddManualBalanceEntryParams = API.ContractAddManualBalanceEntryParams; + export type ContractAmendParams = API.ContractAmendParams; + export type ContractArchiveParams = API.ContractArchiveParams; + export type ContractCreateHistoricalInvoicesParams = API.ContractCreateHistoricalInvoicesParams; + export type ContractListBalancesParams = API.ContractListBalancesParams; + export type ContractRetrieveRateScheduleParams = API.ContractRetrieveRateScheduleParams; + export type ContractScheduleProServicesInvoiceParams = API.ContractScheduleProServicesInvoiceParams; + export type ContractSetUsageFilterParams = API.ContractSetUsageFilterParams; + export type ContractUpdateEndDateParams = API.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..0277674 100644 --- a/src/resources/alerts.ts +++ b/src/resources/alerts.ts @@ -154,8 +154,8 @@ export interface AlertArchiveParams { } export namespace Alerts { - export import AlertCreateResponse = AlertsAPI.AlertCreateResponse; - export import AlertArchiveResponse = AlertsAPI.AlertArchiveResponse; - export import AlertCreateParams = AlertsAPI.AlertCreateParams; - export import AlertArchiveParams = AlertsAPI.AlertArchiveParams; + export type AlertCreateResponse = AlertsAPI.AlertCreateResponse; + export type AlertArchiveResponse = AlertsAPI.AlertArchiveResponse; + export type AlertCreateParams = AlertsAPI.AlertCreateParams; + export type AlertArchiveParams = AlertsAPI.AlertArchiveParams; } diff --git a/src/resources/audit-logs.ts b/src/resources/audit-logs.ts index 9963dfa..cb9c03b 100644 --- a/src/resources/audit-logs.ts +++ b/src/resources/audit-logs.ts @@ -92,7 +92,7 @@ export interface AuditLogListParams extends CursorPageParams { } export namespace AuditLogs { - export import AuditLogListResponse = AuditLogsAPI.AuditLogListResponse; + export type AuditLogListResponse = AuditLogsAPI.AuditLogListResponse; export import AuditLogListResponsesCursorPage = AuditLogsAPI.AuditLogListResponsesCursorPage; - export import AuditLogListParams = AuditLogsAPI.AuditLogListParams; + export type AuditLogListParams = AuditLogsAPI.AuditLogListParams; } diff --git a/src/resources/billable-metrics.ts b/src/resources/billable-metrics.ts index ef74502..39f4b3f 100644 --- a/src/resources/billable-metrics.ts +++ b/src/resources/billable-metrics.ts @@ -237,13 +237,13 @@ export interface BillableMetricArchiveParams { } export namespace BillableMetrics { - export import BillableMetricCreateResponse = BillableMetricsAPI.BillableMetricCreateResponse; - export import BillableMetricRetrieveResponse = BillableMetricsAPI.BillableMetricRetrieveResponse; - export import BillableMetricListResponse = BillableMetricsAPI.BillableMetricListResponse; - export import BillableMetricArchiveResponse = BillableMetricsAPI.BillableMetricArchiveResponse; + export type BillableMetricCreateResponse = BillableMetricsAPI.BillableMetricCreateResponse; + export type BillableMetricRetrieveResponse = BillableMetricsAPI.BillableMetricRetrieveResponse; + export type BillableMetricListResponse = BillableMetricsAPI.BillableMetricListResponse; + export type 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; + export type BillableMetricCreateParams = BillableMetricsAPI.BillableMetricCreateParams; + export type BillableMetricRetrieveParams = BillableMetricsAPI.BillableMetricRetrieveParams; + export type BillableMetricListParams = BillableMetricsAPI.BillableMetricListParams; + export type BillableMetricArchiveParams = BillableMetricsAPI.BillableMetricArchiveParams; } diff --git a/src/resources/contracts/contracts.ts b/src/resources/contracts/contracts.ts index 306e5c2..d5e311e 100644 --- a/src/resources/contracts/contracts.ts +++ b/src/resources/contracts/contracts.ts @@ -2415,57 +2415,60 @@ export interface ContractUpdateEndDateParams { } 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 type ContractCreateResponse = ContractsAPI.ContractCreateResponse; + export type ContractRetrieveResponse = ContractsAPI.ContractRetrieveResponse; + export type ContractListResponse = ContractsAPI.ContractListResponse; + export type ContractAmendResponse = ContractsAPI.ContractAmendResponse; + export type ContractArchiveResponse = ContractsAPI.ContractArchiveResponse; + export type ContractCreateHistoricalInvoicesResponse = + ContractsAPI.ContractCreateHistoricalInvoicesResponse; + export type ContractListBalancesResponse = ContractsAPI.ContractListBalancesResponse; + export type ContractRetrieveRateScheduleResponse = ContractsAPI.ContractRetrieveRateScheduleResponse; + export type ContractScheduleProServicesInvoiceResponse = + ContractsAPI.ContractScheduleProServicesInvoiceResponse; + export type ContractUpdateEndDateResponse = ContractsAPI.ContractUpdateEndDateResponse; + export type ContractCreateParams = ContractsAPI.ContractCreateParams; + export type ContractRetrieveParams = ContractsAPI.ContractRetrieveParams; + export type ContractListParams = ContractsAPI.ContractListParams; + export type ContractAddManualBalanceEntryParams = ContractsAPI.ContractAddManualBalanceEntryParams; + export type ContractAmendParams = ContractsAPI.ContractAmendParams; + export type ContractArchiveParams = ContractsAPI.ContractArchiveParams; + export type ContractCreateHistoricalInvoicesParams = ContractsAPI.ContractCreateHistoricalInvoicesParams; + export type ContractListBalancesParams = ContractsAPI.ContractListBalancesParams; + export type ContractRetrieveRateScheduleParams = ContractsAPI.ContractRetrieveRateScheduleParams; + export type ContractScheduleProServicesInvoiceParams = + ContractsAPI.ContractScheduleProServicesInvoiceParams; + export type ContractSetUsageFilterParams = ContractsAPI.ContractSetUsageFilterParams; + export type 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 type ProductListItemState = ProductsAPI.ProductListItemState; + export type QuantityConversion = ProductsAPI.QuantityConversion; + export type QuantityRounding = ProductsAPI.QuantityRounding; + export type ProductCreateResponse = ProductsAPI.ProductCreateResponse; + export type ProductRetrieveResponse = ProductsAPI.ProductRetrieveResponse; + export type ProductUpdateResponse = ProductsAPI.ProductUpdateResponse; + export type ProductListResponse = ProductsAPI.ProductListResponse; + export type 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 type ProductCreateParams = ProductsAPI.ProductCreateParams; + export type ProductRetrieveParams = ProductsAPI.ProductRetrieveParams; + export type ProductUpdateParams = ProductsAPI.ProductUpdateParams; + export type ProductListParams = ProductsAPI.ProductListParams; + export type 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 type RateCardCreateResponse = RateCardsAPI.RateCardCreateResponse; + export type RateCardRetrieveResponse = RateCardsAPI.RateCardRetrieveResponse; + export type RateCardUpdateResponse = RateCardsAPI.RateCardUpdateResponse; + export type RateCardListResponse = RateCardsAPI.RateCardListResponse; + export type 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 type RateCardCreateParams = RateCardsAPI.RateCardCreateParams; + export type RateCardRetrieveParams = RateCardsAPI.RateCardRetrieveParams; + export type RateCardUpdateParams = RateCardsAPI.RateCardUpdateParams; + export type RateCardListParams = RateCardsAPI.RateCardListParams; + export type RateCardRetrieveRateScheduleParams = RateCardsAPI.RateCardRetrieveRateScheduleParams; export import NamedSchedules = NamedSchedulesAPI.NamedSchedules; - export import NamedScheduleRetrieveResponse = NamedSchedulesAPI.NamedScheduleRetrieveResponse; - export import NamedScheduleRetrieveParams = NamedSchedulesAPI.NamedScheduleRetrieveParams; - export import NamedScheduleUpdateParams = NamedSchedulesAPI.NamedScheduleUpdateParams; + export type NamedScheduleRetrieveResponse = NamedSchedulesAPI.NamedScheduleRetrieveResponse; + export type NamedScheduleRetrieveParams = NamedSchedulesAPI.NamedScheduleRetrieveParams; + export type NamedScheduleUpdateParams = NamedSchedulesAPI.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..844044a 100644 --- a/src/resources/contracts/named-schedules.ts +++ b/src/resources/contracts/named-schedules.ts @@ -84,7 +84,7 @@ export interface NamedScheduleUpdateParams { } export namespace NamedSchedules { - export import NamedScheduleRetrieveResponse = NamedSchedulesAPI.NamedScheduleRetrieveResponse; - export import NamedScheduleRetrieveParams = NamedSchedulesAPI.NamedScheduleRetrieveParams; - export import NamedScheduleUpdateParams = NamedSchedulesAPI.NamedScheduleUpdateParams; + export type NamedScheduleRetrieveResponse = NamedSchedulesAPI.NamedScheduleRetrieveResponse; + export type NamedScheduleRetrieveParams = NamedSchedulesAPI.NamedScheduleRetrieveParams; + export type NamedScheduleUpdateParams = NamedSchedulesAPI.NamedScheduleUpdateParams; } diff --git a/src/resources/contracts/products.ts b/src/resources/contracts/products.ts index 9148dea..e5beb41 100644 --- a/src/resources/contracts/products.ts +++ b/src/resources/contracts/products.ts @@ -543,18 +543,18 @@ export interface ProductArchiveParams { } 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 type ProductListItemState = ProductsAPI.ProductListItemState; + export type QuantityConversion = ProductsAPI.QuantityConversion; + export type QuantityRounding = ProductsAPI.QuantityRounding; + export type ProductCreateResponse = ProductsAPI.ProductCreateResponse; + export type ProductRetrieveResponse = ProductsAPI.ProductRetrieveResponse; + export type ProductUpdateResponse = ProductsAPI.ProductUpdateResponse; + export type ProductListResponse = ProductsAPI.ProductListResponse; + export type 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 type ProductCreateParams = ProductsAPI.ProductCreateParams; + export type ProductRetrieveParams = ProductsAPI.ProductRetrieveParams; + export type ProductUpdateParams = ProductsAPI.ProductUpdateParams; + export type ProductListParams = ProductsAPI.ProductListParams; + export type ProductArchiveParams = ProductsAPI.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..dad9375 100644 --- a/src/resources/contracts/rate-cards/named-schedules.ts +++ b/src/resources/contracts/rate-cards/named-schedules.ts @@ -94,7 +94,7 @@ export interface NamedScheduleUpdateParams { } export namespace NamedSchedules { - export import NamedScheduleRetrieveResponse = NamedSchedulesAPI.NamedScheduleRetrieveResponse; - export import NamedScheduleRetrieveParams = NamedSchedulesAPI.NamedScheduleRetrieveParams; - export import NamedScheduleUpdateParams = NamedSchedulesAPI.NamedScheduleUpdateParams; + export type NamedScheduleRetrieveResponse = NamedSchedulesAPI.NamedScheduleRetrieveResponse; + export type NamedScheduleRetrieveParams = NamedSchedulesAPI.NamedScheduleRetrieveParams; + export type NamedScheduleUpdateParams = NamedSchedulesAPI.NamedScheduleUpdateParams; } diff --git a/src/resources/contracts/rate-cards/product-orders.ts b/src/resources/contracts/rate-cards/product-orders.ts index 3b032b8..98352cc 100644 --- a/src/resources/contracts/rate-cards/product-orders.ts +++ b/src/resources/contracts/rate-cards/product-orders.ts @@ -65,8 +65,8 @@ export interface ProductOrderSetParams { } export namespace ProductOrders { - export import ProductOrderUpdateResponse = ProductOrdersAPI.ProductOrderUpdateResponse; - export import ProductOrderSetResponse = ProductOrdersAPI.ProductOrderSetResponse; - export import ProductOrderUpdateParams = ProductOrdersAPI.ProductOrderUpdateParams; - export import ProductOrderSetParams = ProductOrdersAPI.ProductOrderSetParams; + export type ProductOrderUpdateResponse = ProductOrdersAPI.ProductOrderUpdateResponse; + export type ProductOrderSetResponse = ProductOrdersAPI.ProductOrderSetResponse; + export type ProductOrderUpdateParams = ProductOrdersAPI.ProductOrderUpdateParams; + export type ProductOrderSetParams = ProductOrdersAPI.ProductOrderSetParams; } diff --git a/src/resources/contracts/rate-cards/rate-cards.ts b/src/resources/contracts/rate-cards/rate-cards.ts index 6f4d250..f21a449 100644 --- a/src/resources/contracts/rate-cards/rate-cards.ts +++ b/src/resources/contracts/rate-cards/rate-cards.ts @@ -465,32 +465,32 @@ 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 type RateCardCreateResponse = RateCardsAPI.RateCardCreateResponse; + export type RateCardRetrieveResponse = RateCardsAPI.RateCardRetrieveResponse; + export type RateCardUpdateResponse = RateCardsAPI.RateCardUpdateResponse; + export type RateCardListResponse = RateCardsAPI.RateCardListResponse; + export type 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 type RateCardCreateParams = RateCardsAPI.RateCardCreateParams; + export type RateCardRetrieveParams = RateCardsAPI.RateCardRetrieveParams; + export type RateCardUpdateParams = RateCardsAPI.RateCardUpdateParams; + export type RateCardListParams = RateCardsAPI.RateCardListParams; + export type 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 type ProductOrderUpdateResponse = ProductOrdersAPI.ProductOrderUpdateResponse; + export type ProductOrderSetResponse = ProductOrdersAPI.ProductOrderSetResponse; + export type ProductOrderUpdateParams = ProductOrdersAPI.ProductOrderUpdateParams; + export type ProductOrderSetParams = ProductOrdersAPI.ProductOrderSetParams; export import Rates = RatesAPI.Rates; - export import RateListResponse = RatesAPI.RateListResponse; - export import RateAddResponse = RatesAPI.RateAddResponse; - export import RateAddManyResponse = RatesAPI.RateAddManyResponse; + export type RateListResponse = RatesAPI.RateListResponse; + export type RateAddResponse = RatesAPI.RateAddResponse; + export type RateAddManyResponse = RatesAPI.RateAddManyResponse; export import RateListResponsesCursorPage = RatesAPI.RateListResponsesCursorPage; - export import RateListParams = RatesAPI.RateListParams; - export import RateAddParams = RatesAPI.RateAddParams; - export import RateAddManyParams = RatesAPI.RateAddManyParams; + export type RateListParams = RatesAPI.RateListParams; + export type RateAddParams = RatesAPI.RateAddParams; + export type RateAddManyParams = RatesAPI.RateAddManyParams; export import NamedSchedules = NamedSchedulesAPI.NamedSchedules; - export import NamedScheduleRetrieveResponse = NamedSchedulesAPI.NamedScheduleRetrieveResponse; - export import NamedScheduleRetrieveParams = NamedSchedulesAPI.NamedScheduleRetrieveParams; - export import NamedScheduleUpdateParams = NamedSchedulesAPI.NamedScheduleUpdateParams; + export type NamedScheduleRetrieveResponse = NamedSchedulesAPI.NamedScheduleRetrieveResponse; + export type NamedScheduleRetrieveParams = NamedSchedulesAPI.NamedScheduleRetrieveParams; + export type NamedScheduleUpdateParams = NamedSchedulesAPI.NamedScheduleUpdateParams; } diff --git a/src/resources/contracts/rate-cards/rates.ts b/src/resources/contracts/rate-cards/rates.ts index 799c9cd..97a9238 100644 --- a/src/resources/contracts/rate-cards/rates.ts +++ b/src/resources/contracts/rate-cards/rates.ts @@ -325,11 +325,11 @@ export namespace RateAddManyParams { } export namespace Rates { - export import RateListResponse = RatesAPI.RateListResponse; - export import RateAddResponse = RatesAPI.RateAddResponse; - export import RateAddManyResponse = RatesAPI.RateAddManyResponse; + export type RateListResponse = RatesAPI.RateListResponse; + export type RateAddResponse = RatesAPI.RateAddResponse; + export type RateAddManyResponse = RatesAPI.RateAddManyResponse; export import RateListResponsesCursorPage = RatesAPI.RateListResponsesCursorPage; - export import RateListParams = RatesAPI.RateListParams; - export import RateAddParams = RatesAPI.RateAddParams; - export import RateAddManyParams = RatesAPI.RateAddManyParams; + export type RateListParams = RatesAPI.RateListParams; + export type RateAddParams = RatesAPI.RateAddParams; + export type RateAddManyParams = RatesAPI.RateAddManyParams; } diff --git a/src/resources/credit-grants.ts b/src/resources/credit-grants.ts index 5678dde..b9c86bb 100644 --- a/src/resources/credit-grants.ts +++ b/src/resources/credit-grants.ts @@ -605,21 +605,21 @@ export interface CreditGrantVoidParams { } 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 type CreditLedgerEntry = CreditGrantsAPI.CreditLedgerEntry; + export type RolloverAmountMaxAmount = CreditGrantsAPI.RolloverAmountMaxAmount; + export type RolloverAmountMaxPercentage = CreditGrantsAPI.RolloverAmountMaxPercentage; + export type CreditGrantCreateResponse = CreditGrantsAPI.CreditGrantCreateResponse; + export type CreditGrantListResponse = CreditGrantsAPI.CreditGrantListResponse; + export type CreditGrantEditResponse = CreditGrantsAPI.CreditGrantEditResponse; + export type CreditGrantListCreditTypesResponse = CreditGrantsAPI.CreditGrantListCreditTypesResponse; + export type CreditGrantListEntriesResponse = CreditGrantsAPI.CreditGrantListEntriesResponse; + export type 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; + export type CreditGrantCreateParams = CreditGrantsAPI.CreditGrantCreateParams; + export type CreditGrantListParams = CreditGrantsAPI.CreditGrantListParams; + export type CreditGrantEditParams = CreditGrantsAPI.CreditGrantEditParams; + export type CreditGrantListCreditTypesParams = CreditGrantsAPI.CreditGrantListCreditTypesParams; + export type CreditGrantListEntriesParams = CreditGrantsAPI.CreditGrantListEntriesParams; + export type CreditGrantVoidParams = CreditGrantsAPI.CreditGrantVoidParams; } diff --git a/src/resources/custom-fields.ts b/src/resources/custom-fields.ts index 4255f33..07fb672 100644 --- a/src/resources/custom-fields.ts +++ b/src/resources/custom-fields.ts @@ -233,10 +233,10 @@ export interface CustomFieldSetValuesParams { } 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 type CustomFieldListKeysResponse = CustomFieldsAPI.CustomFieldListKeysResponse; + export type CustomFieldAddKeyParams = CustomFieldsAPI.CustomFieldAddKeyParams; + export type CustomFieldDeleteValuesParams = CustomFieldsAPI.CustomFieldDeleteValuesParams; + export type CustomFieldListKeysParams = CustomFieldsAPI.CustomFieldListKeysParams; + export type CustomFieldRemoveKeyParams = CustomFieldsAPI.CustomFieldRemoveKeyParams; + export type CustomFieldSetValuesParams = CustomFieldsAPI.CustomFieldSetValuesParams; } diff --git a/src/resources/customers/alerts.ts b/src/resources/customers/alerts.ts index 6b78798..ec7dd7a 100644 --- a/src/resources/customers/alerts.ts +++ b/src/resources/customers/alerts.ts @@ -203,10 +203,10 @@ export interface AlertResetParams { } 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 type CustomerAlert = AlertsAPI.CustomerAlert; + export type AlertRetrieveResponse = AlertsAPI.AlertRetrieveResponse; + export type AlertListResponse = AlertsAPI.AlertListResponse; + export type AlertRetrieveParams = AlertsAPI.AlertRetrieveParams; + export type AlertListParams = AlertsAPI.AlertListParams; + export type AlertResetParams = AlertsAPI.AlertResetParams; } diff --git a/src/resources/customers/billing-config.ts b/src/resources/customers/billing-config.ts index 1c37ddd..d875f93 100644 --- a/src/resources/customers/billing-config.ts +++ b/src/resources/customers/billing-config.ts @@ -208,8 +208,8 @@ export interface BillingConfigDeleteParams { } export namespace BillingConfig { - export import BillingConfigRetrieveResponse = BillingConfigAPI.BillingConfigRetrieveResponse; - export import BillingConfigCreateParams = BillingConfigAPI.BillingConfigCreateParams; - export import BillingConfigRetrieveParams = BillingConfigAPI.BillingConfigRetrieveParams; - export import BillingConfigDeleteParams = BillingConfigAPI.BillingConfigDeleteParams; + export type BillingConfigRetrieveResponse = BillingConfigAPI.BillingConfigRetrieveResponse; + export type BillingConfigCreateParams = BillingConfigAPI.BillingConfigCreateParams; + export type BillingConfigRetrieveParams = BillingConfigAPI.BillingConfigRetrieveParams; + export type BillingConfigDeleteParams = BillingConfigAPI.BillingConfigDeleteParams; } diff --git a/src/resources/customers/commits.ts b/src/resources/customers/commits.ts index 41a4172..133c3e7 100644 --- a/src/resources/customers/commits.ts +++ b/src/resources/customers/commits.ts @@ -313,10 +313,10 @@ export interface CommitUpdateEndDateParams { } 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 type CommitCreateResponse = CommitsAPI.CommitCreateResponse; + export type CommitListResponse = CommitsAPI.CommitListResponse; + export type CommitUpdateEndDateResponse = CommitsAPI.CommitUpdateEndDateResponse; + export type CommitCreateParams = CommitsAPI.CommitCreateParams; + export type CommitListParams = CommitsAPI.CommitListParams; + export type CommitUpdateEndDateParams = CommitsAPI.CommitUpdateEndDateParams; } diff --git a/src/resources/customers/credits.ts b/src/resources/customers/credits.ts index bc58b35..25f52c0 100644 --- a/src/resources/customers/credits.ts +++ b/src/resources/customers/credits.ts @@ -190,10 +190,10 @@ export interface CreditUpdateEndDateParams { } 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 type CreditCreateResponse = CreditsAPI.CreditCreateResponse; + export type CreditListResponse = CreditsAPI.CreditListResponse; + export type CreditUpdateEndDateResponse = CreditsAPI.CreditUpdateEndDateResponse; + export type CreditCreateParams = CreditsAPI.CreditCreateParams; + export type CreditListParams = CreditsAPI.CreditListParams; + export type CreditUpdateEndDateParams = CreditsAPI.CreditUpdateEndDateParams; } diff --git a/src/resources/customers/customers.ts b/src/resources/customers/customers.ts index 01d4722..918f6bf 100644 --- a/src/resources/customers/customers.ts +++ b/src/resources/customers/customers.ts @@ -501,76 +501,76 @@ export interface CustomerUpdateConfigParams { } 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 type Customer = CustomersAPI.Customer; + export type CustomerDetail = CustomersAPI.CustomerDetail; + export type CustomerCreateResponse = CustomersAPI.CustomerCreateResponse; + export type CustomerRetrieveResponse = CustomersAPI.CustomerRetrieveResponse; + export type CustomerArchiveResponse = CustomersAPI.CustomerArchiveResponse; + export type CustomerListBillableMetricsResponse = CustomersAPI.CustomerListBillableMetricsResponse; + export type CustomerListCostsResponse = CustomersAPI.CustomerListCostsResponse; + export type 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 type CustomerCreateParams = CustomersAPI.CustomerCreateParams; + export type CustomerRetrieveParams = CustomersAPI.CustomerRetrieveParams; + export type CustomerListParams = CustomersAPI.CustomerListParams; + export type CustomerArchiveParams = CustomersAPI.CustomerArchiveParams; + export type CustomerListBillableMetricsParams = CustomersAPI.CustomerListBillableMetricsParams; + export type CustomerListCostsParams = CustomersAPI.CustomerListCostsParams; + export type CustomerSetIngestAliasesParams = CustomersAPI.CustomerSetIngestAliasesParams; + export type CustomerSetNameParams = CustomersAPI.CustomerSetNameParams; + export type 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 type CustomerAlert = AlertsAPI.CustomerAlert; + export type AlertRetrieveResponse = AlertsAPI.AlertRetrieveResponse; + export type AlertListResponse = AlertsAPI.AlertListResponse; + export type AlertRetrieveParams = AlertsAPI.AlertRetrieveParams; + export type AlertListParams = AlertsAPI.AlertListParams; + export type 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 type PlanListResponse = PlansAPI.PlanListResponse; + export type PlanAddResponse = PlansAPI.PlanAddResponse; + export type PlanEndResponse = PlansAPI.PlanEndResponse; + export type 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 type PlanListParams = PlansAPI.PlanListParams; + export type PlanAddParams = PlansAPI.PlanAddParams; + export type PlanEndParams = PlansAPI.PlanEndParams; + export type 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 type Invoice = InvoicesAPI.Invoice; + export type InvoiceRetrieveResponse = InvoicesAPI.InvoiceRetrieveResponse; + export type InvoiceAddChargeResponse = InvoicesAPI.InvoiceAddChargeResponse; + export type 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 type InvoiceRetrieveParams = InvoicesAPI.InvoiceRetrieveParams; + export type InvoiceListParams = InvoicesAPI.InvoiceListParams; + export type InvoiceAddChargeParams = InvoicesAPI.InvoiceAddChargeParams; + export type 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 type BillingConfigRetrieveResponse = BillingConfigAPI.BillingConfigRetrieveResponse; + export type BillingConfigCreateParams = BillingConfigAPI.BillingConfigCreateParams; + export type BillingConfigRetrieveParams = BillingConfigAPI.BillingConfigRetrieveParams; + export type 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 type CommitCreateResponse = CommitsAPI.CommitCreateResponse; + export type CommitListResponse = CommitsAPI.CommitListResponse; + export type CommitUpdateEndDateResponse = CommitsAPI.CommitUpdateEndDateResponse; + export type CommitCreateParams = CommitsAPI.CommitCreateParams; + export type CommitListParams = CommitsAPI.CommitListParams; + export type 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 type CreditCreateResponse = CreditsAPI.CreditCreateResponse; + export type CreditListResponse = CreditsAPI.CreditListResponse; + export type CreditUpdateEndDateResponse = CreditsAPI.CreditUpdateEndDateResponse; + export type CreditCreateParams = CreditsAPI.CreditCreateParams; + export type CreditListParams = CreditsAPI.CreditListParams; + export type CreditUpdateEndDateParams = CreditsAPI.CreditUpdateEndDateParams; export import NamedSchedules = NamedSchedulesAPI.NamedSchedules; - export import NamedScheduleRetrieveResponse = NamedSchedulesAPI.NamedScheduleRetrieveResponse; - export import NamedScheduleRetrieveParams = NamedSchedulesAPI.NamedScheduleRetrieveParams; - export import NamedScheduleUpdateParams = NamedSchedulesAPI.NamedScheduleUpdateParams; + export type NamedScheduleRetrieveResponse = NamedSchedulesAPI.NamedScheduleRetrieveResponse; + export type NamedScheduleRetrieveParams = NamedSchedulesAPI.NamedScheduleRetrieveParams; + export type NamedScheduleUpdateParams = NamedSchedulesAPI.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..e66b42c 100644 --- a/src/resources/customers/invoices.ts +++ b/src/resources/customers/invoices.ts @@ -628,14 +628,14 @@ export interface InvoiceListBreakdownsParams extends CursorPageParams { } export namespace Invoices { - export import Invoice = InvoicesAPI.Invoice; - export import InvoiceRetrieveResponse = InvoicesAPI.InvoiceRetrieveResponse; - export import InvoiceAddChargeResponse = InvoicesAPI.InvoiceAddChargeResponse; - export import InvoiceListBreakdownsResponse = InvoicesAPI.InvoiceListBreakdownsResponse; + export type Invoice = InvoicesAPI.Invoice; + export type InvoiceRetrieveResponse = InvoicesAPI.InvoiceRetrieveResponse; + export type InvoiceAddChargeResponse = InvoicesAPI.InvoiceAddChargeResponse; + export type 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 type InvoiceRetrieveParams = InvoicesAPI.InvoiceRetrieveParams; + export type InvoiceListParams = InvoicesAPI.InvoiceListParams; + export type InvoiceAddChargeParams = InvoicesAPI.InvoiceAddChargeParams; + export type InvoiceListBreakdownsParams = InvoicesAPI.InvoiceListBreakdownsParams; } diff --git a/src/resources/customers/named-schedules.ts b/src/resources/customers/named-schedules.ts index 9e51590..5935da3 100644 --- a/src/resources/customers/named-schedules.ts +++ b/src/resources/customers/named-schedules.ts @@ -84,7 +84,7 @@ export interface NamedScheduleUpdateParams { } export namespace NamedSchedules { - export import NamedScheduleRetrieveResponse = NamedSchedulesAPI.NamedScheduleRetrieveResponse; - export import NamedScheduleRetrieveParams = NamedSchedulesAPI.NamedScheduleRetrieveParams; - export import NamedScheduleUpdateParams = NamedSchedulesAPI.NamedScheduleUpdateParams; + export type NamedScheduleRetrieveResponse = NamedSchedulesAPI.NamedScheduleRetrieveResponse; + export type NamedScheduleRetrieveParams = NamedSchedulesAPI.NamedScheduleRetrieveParams; + export type NamedScheduleUpdateParams = NamedSchedulesAPI.NamedScheduleUpdateParams; } diff --git a/src/resources/customers/plans.ts b/src/resources/customers/plans.ts index 1196676..183583c 100644 --- a/src/resources/customers/plans.ts +++ b/src/resources/customers/plans.ts @@ -314,14 +314,14 @@ export interface PlanListPriceAdjustmentsParams extends CursorPageParams { } export namespace Plans { - export import PlanListResponse = PlansAPI.PlanListResponse; - export import PlanAddResponse = PlansAPI.PlanAddResponse; - export import PlanEndResponse = PlansAPI.PlanEndResponse; - export import PlanListPriceAdjustmentsResponse = PlansAPI.PlanListPriceAdjustmentsResponse; + export type PlanListResponse = PlansAPI.PlanListResponse; + export type PlanAddResponse = PlansAPI.PlanAddResponse; + export type PlanEndResponse = PlansAPI.PlanEndResponse; + export type 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 type PlanListParams = PlansAPI.PlanListParams; + export type PlanAddParams = PlansAPI.PlanAddParams; + export type PlanEndParams = PlansAPI.PlanEndParams; + export type PlanListPriceAdjustmentsParams = PlansAPI.PlanListPriceAdjustmentsParams; } diff --git a/src/resources/dashboards.ts b/src/resources/dashboards.ts index 294a7da..a27cd06 100644 --- a/src/resources/dashboards.ts +++ b/src/resources/dashboards.ts @@ -116,6 +116,6 @@ export namespace DashboardGetEmbeddableURLParams { } export namespace Dashboards { - export import DashboardGetEmbeddableURLResponse = DashboardsAPI.DashboardGetEmbeddableURLResponse; - export import DashboardGetEmbeddableURLParams = DashboardsAPI.DashboardGetEmbeddableURLParams; + export type DashboardGetEmbeddableURLResponse = DashboardsAPI.DashboardGetEmbeddableURLResponse; + export type DashboardGetEmbeddableURLParams = DashboardsAPI.DashboardGetEmbeddableURLParams; } diff --git a/src/resources/index.ts b/src/resources/index.ts index 37b94dc..dfde2b0 100644 --- a/src/resources/index.ts +++ b/src/resources/index.ts @@ -2,137 +2,141 @@ 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'; diff --git a/src/resources/invoices.ts b/src/resources/invoices.ts index d83af3b..2b07fdb 100644 --- a/src/resources/invoices.ts +++ b/src/resources/invoices.ts @@ -61,8 +61,8 @@ export interface InvoiceVoidParams { } export namespace Invoices { - export import InvoiceRegenerateResponse = InvoicesAPI.InvoiceRegenerateResponse; - export import InvoiceVoidResponse = InvoicesAPI.InvoiceVoidResponse; - export import InvoiceRegenerateParams = InvoicesAPI.InvoiceRegenerateParams; - export import InvoiceVoidParams = InvoicesAPI.InvoiceVoidParams; + export type InvoiceRegenerateResponse = InvoicesAPI.InvoiceRegenerateResponse; + export type InvoiceVoidResponse = InvoicesAPI.InvoiceVoidResponse; + export type InvoiceRegenerateParams = InvoicesAPI.InvoiceRegenerateParams; + export type InvoiceVoidParams = InvoicesAPI.InvoiceVoidParams; } diff --git a/src/resources/plans.ts b/src/resources/plans.ts index 986bb03..c1a3f50 100644 --- a/src/resources/plans.ts +++ b/src/resources/plans.ts @@ -291,16 +291,16 @@ export interface PlanListCustomersParams extends CursorPageParams { } 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 type PlanDetail = PlansAPI.PlanDetail; + export type PlanListResponse = PlansAPI.PlanListResponse; + export type PlanGetDetailsResponse = PlansAPI.PlanGetDetailsResponse; + export type PlanListChargesResponse = PlansAPI.PlanListChargesResponse; + export type 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; + export type PlanListParams = PlansAPI.PlanListParams; + export type PlanGetDetailsParams = PlansAPI.PlanGetDetailsParams; + export type PlanListChargesParams = PlansAPI.PlanListChargesParams; + export type PlanListCustomersParams = PlansAPI.PlanListCustomersParams; } diff --git a/src/resources/services.ts b/src/resources/services.ts index 9ca9ec7..611282c 100644 --- a/src/resources/services.ts +++ b/src/resources/services.ts @@ -31,5 +31,5 @@ export namespace ServiceListResponse { } export namespace Services { - export import ServiceListResponse = ServicesAPI.ServiceListResponse; + export type ServiceListResponse = ServicesAPI.ServiceListResponse; } diff --git a/src/resources/usage.ts b/src/resources/usage.ts index b3d5ab7..476ff6d 100644 --- a/src/resources/usage.ts +++ b/src/resources/usage.ts @@ -227,10 +227,10 @@ export namespace UsageListWithGroupsParams { } export namespace Usage { - export import UsageListResponse = UsageAPI.UsageListResponse; - export import UsageListWithGroupsResponse = UsageAPI.UsageListWithGroupsResponse; + export type UsageListResponse = UsageAPI.UsageListResponse; + export type UsageListWithGroupsResponse = UsageAPI.UsageListWithGroupsResponse; export import UsageListWithGroupsResponsesCursorPage = UsageAPI.UsageListWithGroupsResponsesCursorPage; - export import UsageListParams = UsageAPI.UsageListParams; - export import UsageIngestParams = UsageAPI.UsageIngestParams; - export import UsageListWithGroupsParams = UsageAPI.UsageListWithGroupsParams; + export type UsageListParams = UsageAPI.UsageListParams; + export type UsageIngestParams = UsageAPI.UsageIngestParams; + export type UsageListWithGroupsParams = UsageAPI.UsageListWithGroupsParams; } diff --git a/tsconfig.json b/tsconfig.json index b660e31..9ba3663 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, @@ -32,6 +32,7 @@ "noUncheckedIndexedAccess": true, "noImplicitOverride": true, "noPropertyAccessFromIndexSignature": true, + "isolatedModules": true, "skipLibCheck": true }