@schematichq/schematic-typescript-node 1.1.4 → 1.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.d.ts +3 -0
- package/Client.js +10 -5
- package/api/resources/accesstokens/client/Client.js +1 -1
- package/api/resources/accounts/client/Client.d.ts +1 -1
- package/api/resources/accounts/client/Client.js +15 -15
- package/api/resources/accounts/client/requests/CreateEnvironmentRequestBody.d.ts +1 -1
- package/api/resources/billing/client/Client.d.ts +100 -31
- package/api/resources/billing/client/Client.js +512 -71
- package/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +24 -0
- package/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +2 -0
- package/api/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +8 -1
- package/api/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +29 -0
- package/api/resources/billing/client/requests/CreateMeterRequestBody.d.ts +18 -0
- package/api/resources/billing/client/requests/CreatePaymentMethodRequestBody.d.ts +26 -0
- package/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +4 -0
- package/api/resources/billing/client/requests/ListInvoicesRequest.d.ts +22 -0
- package/api/resources/billing/client/requests/ListMetersRequest.d.ts +18 -0
- package/api/resources/billing/client/requests/ListPaymentMethodsRequest.d.ts +22 -0
- package/api/resources/billing/client/requests/ListProductPricesRequest.d.ts +4 -0
- package/api/resources/billing/client/requests/index.d.ts +7 -3
- package/api/resources/billing/types/CountBillingProductsParams.d.ts +17 -0
- package/api/resources/billing/types/CountBillingProductsResponse.d.ts +9 -0
- package/api/resources/{components/types/HydrateComponentResponse.d.ts → billing/types/DeleteProductPriceResponse.d.ts} +2 -2
- package/api/resources/billing/types/ListBillingProductsParams.d.ts +2 -0
- package/api/resources/billing/types/ListInvoicesParams.d.ts +15 -0
- package/api/resources/{plans/types/ListActivePlansResponse.d.ts → billing/types/ListInvoicesResponse.d.ts} +3 -3
- package/api/resources/billing/types/ListMetersParams.d.ts +13 -0
- package/{dist/api/resources/plans/types/ListActivePlansResponse.d.ts → api/resources/billing/types/ListMetersResponse.d.ts} +3 -3
- package/api/resources/billing/types/ListPaymentMethodsParams.d.ts +15 -0
- package/api/resources/billing/types/ListPaymentMethodsResponse.d.ts +10 -0
- package/api/resources/billing/types/ListProductPricesParams.d.ts +2 -0
- package/{dist/api/resources/components/types/HydrateComponentResponse.d.ts → api/resources/billing/types/UpsertBillingMeterResponse.d.ts} +2 -2
- package/api/resources/billing/types/{UpdateBillingPlanGroupResponse.d.ts → UpsertInvoiceResponse.d.ts} +2 -2
- package/api/resources/billing/types/{CreateBillingPlanGroupResponse.d.ts → UpsertPaymentMethodResponse.d.ts} +2 -2
- package/api/resources/billing/types/index.d.ts +12 -4
- package/api/resources/billing/types/index.js +12 -4
- package/api/resources/companies/client/Client.d.ts +3 -3
- package/api/resources/companies/client/Client.js +50 -44
- package/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +11 -1
- package/api/resources/companies/client/requests/CountEntityTraitDefinitionsRequest.d.ts +1 -1
- package/api/resources/companies/client/requests/CountUsersRequest.d.ts +10 -1
- package/api/resources/companies/client/requests/CreateEntityTraitDefinitionRequestBody.d.ts +2 -2
- package/api/resources/companies/client/requests/ListCompaniesRequest.d.ts +11 -1
- package/api/resources/companies/client/requests/ListEntityTraitDefinitionsRequest.d.ts +1 -1
- package/api/resources/companies/client/requests/ListUsersRequest.d.ts +10 -1
- package/api/resources/companies/client/requests/UpdateEntityTraitDefinitionRequestBody.d.ts +1 -1
- package/api/resources/companies/types/CountCompaniesParams.d.ts +5 -1
- package/api/resources/companies/types/CountUsersParams.d.ts +4 -1
- package/api/resources/companies/types/ListCompaniesParams.d.ts +5 -1
- package/api/resources/companies/types/ListUsersParams.d.ts +4 -1
- package/api/resources/components/client/Client.d.ts +9 -9
- package/api/resources/components/client/Client.js +49 -40
- package/api/resources/components/client/requests/CreateComponentRequestBody.d.ts +1 -1
- package/api/resources/components/client/requests/PreviewComponentDataRequest.d.ts +11 -0
- package/api/resources/components/client/requests/index.d.ts +1 -0
- package/api/resources/components/types/PreviewComponentDataParams.d.ts +10 -0
- package/api/resources/{billing/types/GetBillingPlanGroupByAccountIdResponse.d.ts → components/types/PreviewComponentDataResponse.d.ts} +3 -3
- package/api/resources/components/types/index.d.ts +2 -1
- package/api/resources/components/types/index.js +2 -1
- package/api/resources/crm/client/Client.js +5 -5
- package/api/resources/entitlements/client/Client.d.ts +4 -4
- package/api/resources/entitlements/client/Client.js +31 -25
- package/api/resources/entitlements/client/requests/CountCompanyOverridesRequest.d.ts +18 -0
- package/api/resources/entitlements/client/requests/CountFeatureUsageRequest.d.ts +2 -1
- package/api/resources/entitlements/client/requests/CountPlanEntitlementsRequest.d.ts +18 -0
- package/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +1 -1
- package/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +1 -1
- package/api/resources/entitlements/client/requests/ListCompanyOverridesRequest.d.ts +18 -0
- package/api/resources/entitlements/client/requests/ListFeatureUsageRequest.d.ts +2 -1
- package/api/resources/entitlements/client/requests/ListPlanEntitlementsRequest.d.ts +18 -0
- package/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +1 -1
- package/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +1 -1
- package/api/resources/entitlements/types/CountCompanyOverridesParams.d.ts +6 -0
- package/api/resources/entitlements/types/CountFeatureUsageParams.d.ts +1 -0
- package/api/resources/entitlements/types/CountPlanEntitlementsParams.d.ts +6 -0
- package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +2 -1
- package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +1 -0
- package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +2 -1
- package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +1 -0
- package/api/resources/entitlements/types/ListCompanyOverridesParams.d.ts +6 -0
- package/api/resources/entitlements/types/ListFeatureUsageParams.d.ts +1 -0
- package/api/resources/entitlements/types/ListPlanEntitlementsParams.d.ts +6 -0
- package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +2 -1
- package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +1 -0
- package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +2 -1
- package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +1 -0
- package/api/resources/events/client/Client.d.ts +2 -2
- package/api/resources/events/client/Client.js +10 -10
- package/api/resources/events/client/requests/CreateEventBatchRequestBody.d.ts +1 -1
- package/api/resources/features/client/Client.d.ts +21 -21
- package/api/resources/features/client/Client.js +40 -40
- package/api/resources/features/client/requests/CreateFeatureRequestBody.d.ts +1 -1
- package/api/resources/features/client/requests/UpdateFlagRulesRequestBody.d.ts +4 -4
- package/api/resources/index.d.ts +3 -0
- package/api/resources/index.js +4 -1
- package/api/resources/plangroups/client/Client.d.ts +74 -0
- package/api/resources/plangroups/client/Client.js +346 -0
- package/api/resources/plangroups/client/index.d.ts +1 -0
- package/api/resources/plangroups/client/index.js +17 -0
- package/{dist/api/resources/billing/client/requests/CreateBillingPlanGroupRequestBody.d.ts → api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts} +3 -1
- package/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js +5 -0
- package/api/resources/{billing/client/requests/UpdateBillingPlanGroupRequestBody.d.ts → plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts} +3 -1
- package/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.js +5 -0
- package/api/resources/plangroups/client/requests/index.d.ts +2 -0
- package/api/resources/plangroups/client/requests/index.js +2 -0
- package/api/resources/plangroups/index.d.ts +2 -0
- package/api/resources/plangroups/index.js +18 -0
- package/api/resources/plangroups/types/CreatePlanGroupResponse.d.ts +9 -0
- package/api/resources/plangroups/types/CreatePlanGroupResponse.js +5 -0
- package/api/resources/plangroups/types/GetPlanGroupResponse.d.ts +9 -0
- package/api/resources/plangroups/types/GetPlanGroupResponse.js +5 -0
- package/api/resources/plangroups/types/UpdatePlanGroupResponse.d.ts +9 -0
- package/api/resources/plangroups/types/UpdatePlanGroupResponse.js +5 -0
- package/api/resources/plangroups/types/index.d.ts +3 -0
- package/api/resources/plangroups/types/index.js +19 -0
- package/api/resources/plans/client/Client.d.ts +5 -17
- package/api/resources/plans/client/Client.js +35 -112
- package/api/resources/plans/client/requests/CountPlansRequest.d.ts +9 -1
- package/api/resources/plans/client/requests/CreatePlanRequestBody.d.ts +1 -1
- package/api/resources/plans/client/requests/ListPlansRequest.d.ts +9 -1
- package/api/resources/plans/client/requests/UpdateAudienceRequestBody.d.ts +4 -4
- package/api/resources/plans/types/CountPlansParams.d.ts +4 -0
- package/api/resources/plans/types/ListPlansParams.d.ts +4 -0
- package/api/resources/plans/types/index.d.ts +0 -1
- package/api/resources/plans/types/index.js +0 -1
- package/api/resources/webhooks/client/Client.d.ts +1 -1
- package/api/resources/webhooks/client/Client.js +18 -18
- package/api/resources/webhooks/client/requests/CountWebhookEventsRequest.d.ts +1 -1
- package/api/resources/webhooks/client/requests/CreateWebhookRequestBody.d.ts +1 -1
- package/api/resources/webhooks/client/requests/ListWebhookEventsRequest.d.ts +1 -1
- package/api/types/BillingCustomerSubscription.d.ts +1 -0
- package/api/types/BillingMeterResponseData.d.ts +10 -0
- package/api/types/BillingMeterResponseData.js +5 -0
- package/api/types/BillingPriceResponseData.d.ts +1 -0
- package/api/types/BillingProductForSubscriptionResponseData.d.ts +3 -1
- package/api/types/BillingProductPricing.d.ts +3 -2
- package/api/types/BillingSubscriptionResponseData.d.ts +4 -4
- package/api/types/CheckFlagRequestBody.d.ts +2 -2
- package/api/types/CompanyDetailResponseData.d.ts +4 -3
- package/api/types/CompanyPlanDetailResponseData.d.ts +23 -0
- package/api/types/CompanyPlanDetailResponseData.js +5 -0
- package/api/types/{BillingPlan.d.ts → CompanyPlanWithBillingSubView.d.ts} +2 -1
- package/api/types/CompanyPlanWithBillingSubView.js +5 -0
- package/api/types/CompanySubscriptionResponseData.d.ts +5 -0
- package/api/types/ComponentHydrateResponseData.d.ts +5 -3
- package/api/types/ComponentPreviewResponseData.d.ts +18 -0
- package/api/types/ComponentPreviewResponseData.js +5 -0
- package/api/types/ComponentResponseData.d.ts +3 -0
- package/api/types/CreateOrUpdateConditionRequestBodyConditionType.d.ts +2 -1
- package/api/types/CreateOrUpdateConditionRequestBodyConditionType.js +1 -0
- package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +2 -1
- package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +1 -0
- package/api/types/CreateOrUpdateConditionRequestBodyOperator.d.ts +3 -1
- package/api/types/CreateOrUpdateConditionRequestBodyOperator.js +2 -0
- package/api/types/CreateReqCommonMetricPeriod.d.ts +2 -1
- package/api/types/CreateReqCommonMetricPeriod.js +1 -0
- package/api/types/EventBodyFlagCheck.d.ts +2 -2
- package/api/types/GenericPreviewObject.d.ts +9 -0
- package/api/types/GenericPreviewObject.js +5 -0
- package/api/types/InvoiceRequestBody.d.ts +16 -0
- package/api/types/InvoiceRequestBody.js +5 -0
- package/api/types/InvoiceResponseData.d.ts +22 -0
- package/api/types/InvoiceResponseData.js +5 -0
- package/api/types/MeterRequestBody.d.ts +8 -0
- package/api/types/MeterRequestBody.js +5 -0
- package/api/types/PaymentMethodRequestBody.d.ts +17 -0
- package/api/types/PaymentMethodRequestBody.js +5 -0
- package/api/types/PaymentMethodResponseData.d.ts +23 -0
- package/api/types/PaymentMethodResponseData.js +5 -0
- package/api/types/PlanDetailResponseData.d.ts +4 -3
- package/api/types/PlanEntitlementResponseData.d.ts +0 -3
- package/api/types/PlanGroupDetailResponseData.d.ts +13 -0
- package/api/types/PlanGroupDetailResponseData.js +5 -0
- package/api/types/PlanGroupPlanDetailResponseData.d.ts +21 -0
- package/api/types/PlanGroupPlanDetailResponseData.js +5 -0
- package/{dist/api/types/BillingPlanGroupResponseData.d.ts → api/types/PlanGroupResponseData.d.ts} +2 -1
- package/api/types/PlanGroupResponseData.js +5 -0
- package/api/types/PlanResponseData.d.ts +1 -0
- package/api/types/StripeEmbedInfo.d.ts +7 -0
- package/api/types/StripeEmbedInfo.js +5 -0
- package/api/types/UpdateReqCommonMetricPeriod.d.ts +2 -1
- package/api/types/UpdateReqCommonMetricPeriod.js +1 -0
- package/api/types/index.d.ts +14 -2
- package/api/types/index.js +14 -2
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +8 -8
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +23 -2
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +2 -1
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +16 -0
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +2 -1
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +23 -2
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +1 -0
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +1 -1
- package/core/schemas/Schema.d.ts +1 -0
- package/core/schemas/Schema.js +1 -0
- package/core/schemas/builders/bigint/bigint.d.ts +2 -0
- package/core/schemas/builders/bigint/bigint.js +50 -0
- package/core/schemas/builders/bigint/index.d.ts +1 -0
- package/core/schemas/builders/bigint/index.js +5 -0
- package/core/schemas/builders/index.d.ts +1 -0
- package/core/schemas/builders/index.js +1 -0
- package/core/schemas/utils/getErrorMessageForIncorrectType.js +4 -0
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +10 -5
- package/dist/api/resources/accesstokens/client/Client.js +1 -1
- package/dist/api/resources/accounts/client/Client.d.ts +1 -1
- package/dist/api/resources/accounts/client/Client.js +15 -15
- package/dist/api/resources/accounts/client/requests/CreateEnvironmentRequestBody.d.ts +1 -1
- package/dist/api/resources/billing/client/Client.d.ts +100 -31
- package/dist/api/resources/billing/client/Client.js +512 -71
- package/dist/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +24 -0
- package/dist/api/resources/billing/client/requests/CountBillingProductsRequest.js +5 -0
- package/dist/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +2 -0
- package/dist/api/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +8 -1
- package/dist/api/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +29 -0
- package/dist/api/resources/billing/client/requests/CreateInvoiceRequestBody.js +5 -0
- package/dist/api/resources/billing/client/requests/CreateMeterRequestBody.d.ts +18 -0
- package/dist/api/resources/billing/client/requests/CreateMeterRequestBody.js +5 -0
- package/dist/api/resources/billing/client/requests/CreatePaymentMethodRequestBody.d.ts +26 -0
- package/dist/api/resources/billing/client/requests/CreatePaymentMethodRequestBody.js +5 -0
- package/dist/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +4 -0
- package/dist/api/resources/billing/client/requests/ListInvoicesRequest.d.ts +22 -0
- package/dist/api/resources/billing/client/requests/ListInvoicesRequest.js +5 -0
- package/dist/api/resources/billing/client/requests/ListMetersRequest.d.ts +18 -0
- package/dist/api/resources/billing/client/requests/ListMetersRequest.js +5 -0
- package/dist/api/resources/billing/client/requests/ListPaymentMethodsRequest.d.ts +22 -0
- package/dist/api/resources/billing/client/requests/ListPaymentMethodsRequest.js +5 -0
- package/dist/api/resources/billing/client/requests/ListProductPricesRequest.d.ts +4 -0
- package/dist/api/resources/billing/client/requests/index.d.ts +7 -3
- package/dist/api/resources/billing/types/CountBillingProductsParams.d.ts +17 -0
- package/dist/api/resources/billing/types/CountBillingProductsParams.js +5 -0
- package/dist/api/resources/billing/types/CountBillingProductsResponse.d.ts +9 -0
- package/dist/api/resources/billing/types/CountBillingProductsResponse.js +5 -0
- package/dist/api/resources/billing/types/DeleteProductPriceResponse.d.ts +9 -0
- package/dist/api/resources/billing/types/DeleteProductPriceResponse.js +5 -0
- package/dist/api/resources/billing/types/ListBillingProductsParams.d.ts +2 -0
- package/dist/api/resources/billing/types/ListInvoicesParams.d.ts +15 -0
- package/dist/api/resources/billing/types/ListInvoicesParams.js +5 -0
- package/dist/api/resources/billing/types/ListInvoicesResponse.d.ts +10 -0
- package/dist/api/resources/billing/types/ListInvoicesResponse.js +5 -0
- package/dist/api/resources/billing/types/ListMetersParams.d.ts +13 -0
- package/dist/api/resources/billing/types/ListMetersParams.js +5 -0
- package/dist/api/resources/billing/types/ListMetersResponse.d.ts +10 -0
- package/dist/api/resources/billing/types/ListMetersResponse.js +5 -0
- package/dist/api/resources/billing/types/ListPaymentMethodsParams.d.ts +15 -0
- package/dist/api/resources/billing/types/ListPaymentMethodsParams.js +5 -0
- package/dist/api/resources/billing/types/ListPaymentMethodsResponse.d.ts +10 -0
- package/dist/api/resources/billing/types/ListPaymentMethodsResponse.js +5 -0
- package/dist/api/resources/billing/types/ListProductPricesParams.d.ts +2 -0
- package/dist/api/resources/billing/types/UpsertBillingMeterResponse.d.ts +9 -0
- package/dist/api/resources/billing/types/UpsertBillingMeterResponse.js +5 -0
- package/dist/api/resources/billing/types/UpsertInvoiceResponse.d.ts +9 -0
- package/dist/api/resources/billing/types/UpsertInvoiceResponse.js +5 -0
- package/dist/api/resources/billing/types/UpsertPaymentMethodResponse.d.ts +9 -0
- package/dist/api/resources/billing/types/UpsertPaymentMethodResponse.js +5 -0
- package/dist/api/resources/billing/types/index.d.ts +12 -4
- package/dist/api/resources/billing/types/index.js +12 -4
- package/dist/api/resources/companies/client/Client.d.ts +3 -3
- package/dist/api/resources/companies/client/Client.js +50 -44
- package/dist/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +11 -1
- package/dist/api/resources/companies/client/requests/CountEntityTraitDefinitionsRequest.d.ts +1 -1
- package/dist/api/resources/companies/client/requests/CountUsersRequest.d.ts +10 -1
- package/dist/api/resources/companies/client/requests/CreateEntityTraitDefinitionRequestBody.d.ts +2 -2
- package/dist/api/resources/companies/client/requests/ListCompaniesRequest.d.ts +11 -1
- package/dist/api/resources/companies/client/requests/ListEntityTraitDefinitionsRequest.d.ts +1 -1
- package/dist/api/resources/companies/client/requests/ListUsersRequest.d.ts +10 -1
- package/dist/api/resources/companies/client/requests/UpdateEntityTraitDefinitionRequestBody.d.ts +1 -1
- package/dist/api/resources/companies/types/CountCompaniesParams.d.ts +5 -1
- package/dist/api/resources/companies/types/CountUsersParams.d.ts +4 -1
- package/dist/api/resources/companies/types/ListCompaniesParams.d.ts +5 -1
- package/dist/api/resources/companies/types/ListUsersParams.d.ts +4 -1
- package/dist/api/resources/components/client/Client.d.ts +9 -9
- package/dist/api/resources/components/client/Client.js +49 -40
- package/dist/api/resources/components/client/requests/CreateComponentRequestBody.d.ts +1 -1
- package/dist/api/resources/components/client/requests/PreviewComponentDataRequest.d.ts +11 -0
- package/dist/api/resources/components/client/requests/PreviewComponentDataRequest.js +5 -0
- package/dist/api/resources/components/client/requests/index.d.ts +1 -0
- package/dist/api/resources/components/types/PreviewComponentDataParams.d.ts +10 -0
- package/dist/api/resources/components/types/PreviewComponentDataParams.js +5 -0
- package/{api/resources/billing/types/ChangeSubscriptionWebResponse.d.ts → dist/api/resources/components/types/PreviewComponentDataResponse.d.ts} +3 -3
- package/dist/api/resources/components/types/PreviewComponentDataResponse.js +5 -0
- package/dist/api/resources/components/types/index.d.ts +2 -1
- package/dist/api/resources/components/types/index.js +2 -1
- package/dist/api/resources/crm/client/Client.js +5 -5
- package/dist/api/resources/entitlements/client/Client.d.ts +4 -4
- package/dist/api/resources/entitlements/client/Client.js +31 -25
- package/dist/api/resources/entitlements/client/requests/CountCompanyOverridesRequest.d.ts +18 -0
- package/dist/api/resources/entitlements/client/requests/CountFeatureUsageRequest.d.ts +2 -1
- package/dist/api/resources/entitlements/client/requests/CountPlanEntitlementsRequest.d.ts +18 -0
- package/dist/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +1 -1
- package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +1 -1
- package/dist/api/resources/entitlements/client/requests/ListCompanyOverridesRequest.d.ts +18 -0
- package/dist/api/resources/entitlements/client/requests/ListFeatureUsageRequest.d.ts +2 -1
- package/dist/api/resources/entitlements/client/requests/ListPlanEntitlementsRequest.d.ts +18 -0
- package/dist/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +1 -1
- package/dist/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +1 -1
- package/dist/api/resources/entitlements/types/CountCompanyOverridesParams.d.ts +6 -0
- package/dist/api/resources/entitlements/types/CountFeatureUsageParams.d.ts +1 -0
- package/dist/api/resources/entitlements/types/CountPlanEntitlementsParams.d.ts +6 -0
- package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +2 -1
- package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +1 -0
- package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +2 -1
- package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +1 -0
- package/dist/api/resources/entitlements/types/ListCompanyOverridesParams.d.ts +6 -0
- package/dist/api/resources/entitlements/types/ListFeatureUsageParams.d.ts +1 -0
- package/dist/api/resources/entitlements/types/ListPlanEntitlementsParams.d.ts +6 -0
- package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +2 -1
- package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +1 -0
- package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +2 -1
- package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +1 -0
- package/dist/api/resources/events/client/Client.d.ts +2 -2
- package/dist/api/resources/events/client/Client.js +10 -10
- package/dist/api/resources/events/client/requests/CreateEventBatchRequestBody.d.ts +1 -1
- package/dist/api/resources/features/client/Client.d.ts +21 -21
- package/dist/api/resources/features/client/Client.js +40 -40
- package/dist/api/resources/features/client/requests/CreateFeatureRequestBody.d.ts +1 -1
- package/dist/api/resources/features/client/requests/UpdateFlagRulesRequestBody.d.ts +4 -4
- package/dist/api/resources/index.d.ts +3 -0
- package/dist/api/resources/index.js +4 -1
- package/dist/api/resources/plangroups/client/Client.d.ts +74 -0
- package/dist/api/resources/plangroups/client/Client.js +346 -0
- package/dist/api/resources/plangroups/client/index.d.ts +1 -0
- package/dist/api/resources/plangroups/client/index.js +17 -0
- package/{api/resources/billing/client/requests/CreateBillingPlanGroupRequestBody.d.ts → dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts} +3 -1
- package/dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js +5 -0
- package/dist/api/resources/{billing/client/requests/UpdateBillingPlanGroupRequestBody.d.ts → plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts} +3 -1
- package/dist/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.js +5 -0
- package/dist/api/resources/plangroups/client/requests/index.d.ts +2 -0
- package/dist/api/resources/plangroups/client/requests/index.js +2 -0
- package/dist/api/resources/plangroups/index.d.ts +2 -0
- package/dist/api/resources/plangroups/index.js +18 -0
- package/dist/api/resources/plangroups/types/CreatePlanGroupResponse.d.ts +9 -0
- package/dist/api/resources/plangroups/types/CreatePlanGroupResponse.js +5 -0
- package/dist/api/resources/plangroups/types/GetPlanGroupResponse.d.ts +9 -0
- package/dist/api/resources/plangroups/types/GetPlanGroupResponse.js +5 -0
- package/dist/api/resources/plangroups/types/UpdatePlanGroupResponse.d.ts +9 -0
- package/dist/api/resources/plangroups/types/UpdatePlanGroupResponse.js +5 -0
- package/dist/api/resources/plangroups/types/index.d.ts +3 -0
- package/dist/api/resources/plangroups/types/index.js +19 -0
- package/dist/api/resources/plans/client/Client.d.ts +5 -17
- package/dist/api/resources/plans/client/Client.js +35 -112
- package/dist/api/resources/plans/client/requests/CountPlansRequest.d.ts +9 -1
- package/dist/api/resources/plans/client/requests/CreatePlanRequestBody.d.ts +1 -1
- package/dist/api/resources/plans/client/requests/ListPlansRequest.d.ts +9 -1
- package/dist/api/resources/plans/client/requests/UpdateAudienceRequestBody.d.ts +4 -4
- package/dist/api/resources/plans/types/CountPlansParams.d.ts +4 -0
- package/dist/api/resources/plans/types/ListPlansParams.d.ts +4 -0
- package/dist/api/resources/plans/types/index.d.ts +0 -1
- package/dist/api/resources/plans/types/index.js +0 -1
- package/dist/api/resources/webhooks/client/Client.d.ts +1 -1
- package/dist/api/resources/webhooks/client/Client.js +18 -18
- package/dist/api/resources/webhooks/client/requests/CountWebhookEventsRequest.d.ts +1 -1
- package/dist/api/resources/webhooks/client/requests/CreateWebhookRequestBody.d.ts +1 -1
- package/dist/api/resources/webhooks/client/requests/ListWebhookEventsRequest.d.ts +1 -1
- package/dist/api/types/BillingCustomerSubscription.d.ts +1 -0
- package/dist/api/types/BillingMeterResponseData.d.ts +10 -0
- package/dist/api/types/BillingMeterResponseData.js +5 -0
- package/dist/api/types/BillingPriceResponseData.d.ts +1 -0
- package/dist/api/types/BillingProductForSubscriptionResponseData.d.ts +3 -1
- package/dist/api/types/BillingProductPricing.d.ts +3 -2
- package/dist/api/types/BillingSubscriptionResponseData.d.ts +4 -4
- package/dist/api/types/CheckFlagRequestBody.d.ts +2 -2
- package/dist/api/types/CompanyDetailResponseData.d.ts +4 -3
- package/dist/api/types/CompanyPlanDetailResponseData.d.ts +23 -0
- package/dist/api/types/CompanyPlanDetailResponseData.js +5 -0
- package/dist/api/types/{BillingPlan.d.ts → CompanyPlanWithBillingSubView.d.ts} +2 -1
- package/dist/api/types/CompanyPlanWithBillingSubView.js +5 -0
- package/dist/api/types/CompanySubscriptionResponseData.d.ts +5 -0
- package/dist/api/types/ComponentHydrateResponseData.d.ts +5 -3
- package/dist/api/types/ComponentPreviewResponseData.d.ts +18 -0
- package/dist/api/types/ComponentPreviewResponseData.js +5 -0
- package/dist/api/types/ComponentResponseData.d.ts +3 -0
- package/dist/api/types/CreateOrUpdateConditionRequestBodyConditionType.d.ts +2 -1
- package/dist/api/types/CreateOrUpdateConditionRequestBodyConditionType.js +1 -0
- package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +2 -1
- package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +1 -0
- package/dist/api/types/CreateOrUpdateConditionRequestBodyOperator.d.ts +3 -1
- package/dist/api/types/CreateOrUpdateConditionRequestBodyOperator.js +2 -0
- package/dist/api/types/CreateReqCommonMetricPeriod.d.ts +2 -1
- package/dist/api/types/CreateReqCommonMetricPeriod.js +1 -0
- package/dist/api/types/EventBodyFlagCheck.d.ts +2 -2
- package/dist/api/types/GenericPreviewObject.d.ts +9 -0
- package/dist/api/types/GenericPreviewObject.js +5 -0
- package/dist/api/types/InvoiceRequestBody.d.ts +16 -0
- package/dist/api/types/InvoiceRequestBody.js +5 -0
- package/dist/api/types/InvoiceResponseData.d.ts +22 -0
- package/dist/api/types/InvoiceResponseData.js +5 -0
- package/dist/api/types/MeterRequestBody.d.ts +8 -0
- package/dist/api/types/MeterRequestBody.js +5 -0
- package/dist/api/types/PaymentMethodRequestBody.d.ts +17 -0
- package/dist/api/types/PaymentMethodRequestBody.js +5 -0
- package/dist/api/types/PaymentMethodResponseData.d.ts +23 -0
- package/dist/api/types/PaymentMethodResponseData.js +5 -0
- package/dist/api/types/PlanDetailResponseData.d.ts +4 -3
- package/dist/api/types/PlanEntitlementResponseData.d.ts +0 -3
- package/dist/api/types/PlanGroupDetailResponseData.d.ts +13 -0
- package/dist/api/types/PlanGroupDetailResponseData.js +5 -0
- package/dist/api/types/PlanGroupPlanDetailResponseData.d.ts +21 -0
- package/dist/api/types/PlanGroupPlanDetailResponseData.js +5 -0
- package/{api/types/BillingPlanGroupResponseData.d.ts → dist/api/types/PlanGroupResponseData.d.ts} +2 -1
- package/dist/api/types/PlanGroupResponseData.js +5 -0
- package/dist/api/types/PlanResponseData.d.ts +1 -0
- package/dist/api/types/StripeEmbedInfo.d.ts +7 -0
- package/dist/api/types/StripeEmbedInfo.js +5 -0
- package/dist/api/types/UpdateReqCommonMetricPeriod.d.ts +2 -1
- package/dist/api/types/UpdateReqCommonMetricPeriod.js +1 -0
- package/dist/api/types/index.d.ts +14 -2
- package/dist/api/types/index.js +14 -2
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +8 -8
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +23 -2
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +2 -1
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +16 -0
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +2 -1
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +23 -2
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +1 -0
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +1 -1
- package/dist/core/schemas/Schema.d.ts +1 -0
- package/dist/core/schemas/Schema.js +1 -0
- package/dist/core/schemas/builders/bigint/bigint.d.ts +2 -0
- package/dist/core/schemas/builders/bigint/bigint.js +50 -0
- package/dist/core/schemas/builders/bigint/index.d.ts +1 -0
- package/dist/core/schemas/builders/bigint/index.js +5 -0
- package/dist/core/schemas/builders/index.d.ts +1 -0
- package/dist/core/schemas/builders/index.js +1 -0
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +4 -0
- package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +1 -0
- package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.js +1 -0
- package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +3 -0
- package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.js +3 -0
- package/dist/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +23 -0
- package/dist/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.js +44 -0
- package/dist/serialization/resources/billing/client/requests/CreateMeterRequestBody.d.ts +15 -0
- package/dist/serialization/resources/billing/client/requests/CreateMeterRequestBody.js +36 -0
- package/dist/serialization/resources/billing/client/requests/CreatePaymentMethodRequestBody.d.ts +24 -0
- package/dist/serialization/resources/billing/client/requests/CreatePaymentMethodRequestBody.js +45 -0
- package/dist/serialization/resources/billing/client/requests/index.d.ts +3 -3
- package/dist/serialization/resources/billing/client/requests/index.js +7 -7
- package/dist/serialization/resources/billing/types/CountBillingProductsParams.d.ts +17 -0
- package/dist/serialization/resources/billing/types/CountBillingProductsParams.js +38 -0
- package/dist/serialization/resources/billing/types/CountBillingProductsResponse.d.ts +15 -0
- package/dist/serialization/resources/billing/types/CountBillingProductsResponse.js +36 -0
- package/dist/serialization/resources/billing/types/DeleteProductPriceResponse.d.ts +14 -0
- package/{serialization/resources/plans/types/ListActivePlansResponse.js → dist/serialization/resources/billing/types/DeleteProductPriceResponse.js} +4 -4
- package/dist/serialization/resources/billing/types/ListBillingProductsParams.d.ts +1 -0
- package/dist/serialization/resources/billing/types/ListBillingProductsParams.js +1 -0
- package/dist/serialization/resources/billing/types/ListInvoicesParams.d.ts +16 -0
- package/dist/serialization/resources/billing/types/ListInvoicesParams.js +37 -0
- package/dist/serialization/resources/billing/types/ListInvoicesResponse.d.ts +15 -0
- package/dist/serialization/resources/billing/types/ListInvoicesResponse.js +36 -0
- package/dist/serialization/resources/billing/types/ListMetersParams.d.ts +14 -0
- package/dist/serialization/resources/billing/types/ListMetersParams.js +35 -0
- package/dist/serialization/resources/billing/types/ListMetersResponse.d.ts +15 -0
- package/dist/serialization/resources/billing/types/ListMetersResponse.js +36 -0
- package/dist/serialization/resources/billing/types/ListPaymentMethodsParams.d.ts +16 -0
- package/dist/serialization/resources/billing/types/ListPaymentMethodsParams.js +37 -0
- package/dist/serialization/resources/billing/types/ListPaymentMethodsResponse.d.ts +15 -0
- package/dist/serialization/resources/billing/types/{UpdateBillingPlanGroupResponse.js → ListPaymentMethodsResponse.js} +6 -5
- package/dist/serialization/resources/billing/types/ListProductPricesParams.d.ts +1 -0
- package/dist/serialization/resources/billing/types/ListProductPricesParams.js +1 -0
- package/dist/serialization/resources/billing/types/UpsertBillingMeterResponse.d.ts +14 -0
- package/dist/serialization/resources/{plans/types/ListActivePlansResponse.js → billing/types/UpsertBillingMeterResponse.js} +4 -4
- package/dist/serialization/resources/billing/types/UpsertInvoiceResponse.d.ts +14 -0
- package/{serialization/resources/components/types/HydrateComponentResponse.js → dist/serialization/resources/billing/types/UpsertInvoiceResponse.js} +4 -4
- package/dist/serialization/resources/billing/types/UpsertPaymentMethodResponse.d.ts +14 -0
- package/dist/serialization/resources/{components/types/HydrateComponentResponse.js → billing/types/UpsertPaymentMethodResponse.js} +4 -4
- package/dist/serialization/resources/billing/types/index.d.ts +12 -4
- package/dist/serialization/resources/billing/types/index.js +12 -4
- package/dist/serialization/resources/companies/types/CountCompaniesParams.d.ts +1 -0
- package/dist/serialization/resources/companies/types/CountCompaniesParams.js +1 -0
- package/dist/serialization/resources/companies/types/ListCompaniesParams.d.ts +1 -0
- package/dist/serialization/resources/companies/types/ListCompaniesParams.js +1 -0
- package/dist/serialization/resources/components/types/PreviewComponentDataParams.d.ts +13 -0
- package/dist/serialization/resources/components/types/PreviewComponentDataParams.js +34 -0
- package/dist/serialization/resources/components/types/PreviewComponentDataResponse.d.ts +15 -0
- package/dist/serialization/resources/{billing/types/CreateBillingPlanGroupResponse.js → components/types/PreviewComponentDataResponse.js} +6 -5
- package/dist/serialization/resources/components/types/index.d.ts +2 -1
- package/dist/serialization/resources/components/types/index.js +2 -1
- package/dist/serialization/resources/entitlements/types/CountFeatureUsageParams.d.ts +1 -0
- package/dist/serialization/resources/entitlements/types/CountFeatureUsageParams.js +1 -0
- package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
- package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +1 -1
- package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
- package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +1 -1
- package/dist/serialization/resources/entitlements/types/ListFeatureUsageParams.d.ts +1 -0
- package/dist/serialization/resources/entitlements/types/ListFeatureUsageParams.js +1 -0
- package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
- package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +1 -1
- package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
- package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +1 -1
- package/dist/serialization/resources/index.d.ts +3 -0
- package/dist/serialization/resources/index.js +4 -1
- package/dist/serialization/resources/plangroups/client/index.d.ts +1 -0
- package/dist/serialization/resources/plangroups/client/index.js +17 -0
- package/{serialization/resources/billing/client/requests/CreateBillingPlanGroupRequestBody.d.ts → dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts} +3 -2
- package/{serialization/resources/billing/client/requests/CreateBillingPlanGroupRequestBody.js → dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js} +3 -2
- package/dist/serialization/resources/{billing/client/requests/CreateBillingPlanGroupRequestBody.d.ts → plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts} +3 -2
- package/dist/serialization/resources/{billing/client/requests/CreateBillingPlanGroupRequestBody.js → plangroups/client/requests/UpdatePlanGroupRequestBody.js} +3 -2
- package/dist/serialization/resources/plangroups/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/plangroups/client/requests/index.js +7 -0
- package/dist/serialization/resources/plangroups/index.d.ts +2 -0
- package/dist/serialization/resources/plangroups/index.js +18 -0
- package/dist/serialization/resources/plangroups/types/CreatePlanGroupResponse.d.ts +14 -0
- package/dist/serialization/resources/plangroups/types/CreatePlanGroupResponse.js +35 -0
- package/dist/serialization/resources/plangroups/types/GetPlanGroupResponse.d.ts +14 -0
- package/dist/serialization/resources/plangroups/types/GetPlanGroupResponse.js +35 -0
- package/dist/serialization/resources/plangroups/types/UpdatePlanGroupResponse.d.ts +14 -0
- package/dist/serialization/resources/plangroups/types/UpdatePlanGroupResponse.js +35 -0
- package/dist/serialization/resources/plangroups/types/index.d.ts +3 -0
- package/dist/serialization/resources/plangroups/types/index.js +19 -0
- package/dist/serialization/resources/plans/types/CountPlansParams.d.ts +2 -0
- package/dist/serialization/resources/plans/types/CountPlansParams.js +2 -0
- package/dist/serialization/resources/plans/types/ListPlansParams.d.ts +2 -0
- package/dist/serialization/resources/plans/types/ListPlansParams.js +2 -0
- package/dist/serialization/resources/plans/types/index.d.ts +0 -1
- package/dist/serialization/resources/plans/types/index.js +0 -1
- package/dist/serialization/types/BillingCustomerSubscription.d.ts +1 -0
- package/dist/serialization/types/BillingCustomerSubscription.js +1 -0
- package/dist/serialization/types/BillingMeterResponseData.d.ts +16 -0
- package/dist/serialization/types/BillingMeterResponseData.js +37 -0
- package/dist/serialization/types/BillingPriceResponseData.d.ts +1 -0
- package/dist/serialization/types/BillingPriceResponseData.js +1 -0
- package/dist/serialization/types/BillingProductForSubscriptionResponseData.d.ts +3 -1
- package/dist/serialization/types/BillingProductForSubscriptionResponseData.js +3 -1
- package/dist/serialization/types/BillingProductPricing.d.ts +3 -2
- package/dist/serialization/types/BillingProductPricing.js +3 -2
- package/dist/serialization/types/BillingSubscriptionResponseData.d.ts +4 -1
- package/dist/serialization/types/BillingSubscriptionResponseData.js +4 -1
- package/dist/serialization/types/CheckFlagRequestBody.d.ts +2 -2
- package/dist/serialization/types/CheckFlagRequestBody.js +2 -2
- package/dist/serialization/types/CompanyDetailResponseData.d.ts +7 -5
- package/dist/serialization/types/CompanyDetailResponseData.js +7 -5
- package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +32 -0
- package/dist/serialization/types/CompanyPlanDetailResponseData.js +53 -0
- package/dist/serialization/types/{BillingPlan.d.ts → CompanyPlanWithBillingSubView.d.ts} +3 -2
- package/{serialization/types/BillingPlan.js → dist/serialization/types/CompanyPlanWithBillingSubView.js} +3 -2
- package/dist/serialization/types/CompanySubscriptionResponseData.d.ts +7 -0
- package/dist/serialization/types/CompanySubscriptionResponseData.js +7 -0
- package/dist/serialization/types/ComponentHydrateResponseData.d.ts +9 -0
- package/dist/serialization/types/ComponentHydrateResponseData.js +9 -0
- package/dist/serialization/types/ComponentPreviewResponseData.d.ts +27 -0
- package/dist/serialization/types/ComponentPreviewResponseData.js +48 -0
- package/dist/serialization/types/CreateOrUpdateConditionRequestBodyConditionType.d.ts +1 -1
- package/dist/serialization/types/CreateOrUpdateConditionRequestBodyConditionType.js +10 -1
- package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +1 -1
- package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +1 -1
- package/dist/serialization/types/CreateOrUpdateConditionRequestBodyOperator.d.ts +1 -1
- package/dist/serialization/types/CreateOrUpdateConditionRequestBodyOperator.js +1 -1
- package/dist/serialization/types/CreateReqCommonMetricPeriod.d.ts +1 -1
- package/dist/serialization/types/CreateReqCommonMetricPeriod.js +1 -1
- package/dist/serialization/types/EventBodyFlagCheck.d.ts +2 -2
- package/dist/serialization/types/EventBodyFlagCheck.js +2 -2
- package/dist/serialization/types/GenericPreviewObject.d.ts +15 -0
- package/dist/serialization/types/GenericPreviewObject.js +36 -0
- package/dist/serialization/types/InvoiceRequestBody.d.ts +22 -0
- package/dist/serialization/types/InvoiceRequestBody.js +43 -0
- package/dist/serialization/types/InvoiceResponseData.d.ts +28 -0
- package/dist/serialization/types/InvoiceResponseData.js +49 -0
- package/dist/serialization/types/MeterRequestBody.d.ts +14 -0
- package/dist/serialization/{resources/billing/client/requests/ChangeSubscriptionRequestBody.js → types/MeterRequestBody.js} +6 -6
- package/dist/serialization/types/PaymentMethodRequestBody.d.ts +23 -0
- package/dist/serialization/types/PaymentMethodRequestBody.js +44 -0
- package/dist/serialization/types/PaymentMethodResponseData.d.ts +29 -0
- package/dist/serialization/types/PaymentMethodResponseData.js +50 -0
- package/dist/serialization/types/PlanDetailResponseData.d.ts +5 -0
- package/dist/serialization/types/PlanDetailResponseData.js +5 -0
- package/dist/serialization/types/PlanGroupDetailResponseData.d.ts +16 -0
- package/dist/serialization/types/PlanGroupDetailResponseData.js +37 -0
- package/dist/serialization/types/PlanGroupPlanDetailResponseData.d.ts +30 -0
- package/dist/serialization/types/PlanGroupPlanDetailResponseData.js +51 -0
- package/dist/serialization/types/{BillingPlanGroupResponseData.d.ts → PlanGroupResponseData.d.ts} +3 -2
- package/{serialization/types/BillingPlanGroupResponseData.js → dist/serialization/types/PlanGroupResponseData.js} +3 -2
- package/dist/serialization/types/PlanResponseData.d.ts +1 -0
- package/dist/serialization/types/PlanResponseData.js +1 -0
- package/dist/serialization/types/StripeEmbedInfo.d.ts +13 -0
- package/dist/serialization/types/StripeEmbedInfo.js +34 -0
- package/dist/serialization/types/UpdateReqCommonMetricPeriod.d.ts +1 -1
- package/dist/serialization/types/UpdateReqCommonMetricPeriod.js +1 -1
- package/dist/serialization/types/index.d.ts +14 -2
- package/dist/serialization/types/index.js +14 -2
- package/package.json +9 -3
- package/reference.md +403 -81
- package/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +1 -0
- package/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.js +1 -0
- package/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +3 -0
- package/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.js +3 -0
- package/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +23 -0
- package/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.js +44 -0
- package/serialization/resources/billing/client/requests/CreateMeterRequestBody.d.ts +15 -0
- package/serialization/resources/billing/client/requests/CreateMeterRequestBody.js +36 -0
- package/serialization/resources/billing/client/requests/CreatePaymentMethodRequestBody.d.ts +24 -0
- package/serialization/resources/billing/client/requests/CreatePaymentMethodRequestBody.js +45 -0
- package/serialization/resources/billing/client/requests/index.d.ts +3 -3
- package/serialization/resources/billing/client/requests/index.js +7 -7
- package/serialization/resources/billing/types/CountBillingProductsParams.d.ts +17 -0
- package/serialization/resources/billing/types/CountBillingProductsParams.js +38 -0
- package/serialization/resources/billing/types/CountBillingProductsResponse.d.ts +15 -0
- package/serialization/resources/billing/types/CountBillingProductsResponse.js +36 -0
- package/serialization/resources/billing/types/DeleteProductPriceResponse.d.ts +14 -0
- package/serialization/resources/billing/types/DeleteProductPriceResponse.js +35 -0
- package/serialization/resources/billing/types/ListBillingProductsParams.d.ts +1 -0
- package/serialization/resources/billing/types/ListBillingProductsParams.js +1 -0
- package/serialization/resources/billing/types/ListInvoicesParams.d.ts +16 -0
- package/serialization/resources/billing/types/ListInvoicesParams.js +37 -0
- package/serialization/resources/billing/types/ListInvoicesResponse.d.ts +15 -0
- package/serialization/resources/billing/types/ListInvoicesResponse.js +36 -0
- package/serialization/resources/billing/types/ListMetersParams.d.ts +14 -0
- package/serialization/resources/billing/types/ListMetersParams.js +35 -0
- package/serialization/resources/billing/types/ListMetersResponse.d.ts +15 -0
- package/serialization/resources/billing/types/ListMetersResponse.js +36 -0
- package/serialization/resources/billing/types/ListPaymentMethodsParams.d.ts +16 -0
- package/serialization/resources/billing/types/ListPaymentMethodsParams.js +37 -0
- package/serialization/resources/billing/types/ListPaymentMethodsResponse.d.ts +15 -0
- package/{dist/serialization/resources/billing/types/ChangeSubscriptionWebResponse.js → serialization/resources/billing/types/ListPaymentMethodsResponse.js} +6 -5
- package/serialization/resources/billing/types/ListProductPricesParams.d.ts +1 -0
- package/serialization/resources/billing/types/ListProductPricesParams.js +1 -0
- package/serialization/resources/billing/types/UpsertBillingMeterResponse.d.ts +14 -0
- package/serialization/resources/billing/types/UpsertBillingMeterResponse.js +35 -0
- package/serialization/resources/billing/types/UpsertInvoiceResponse.d.ts +14 -0
- package/serialization/resources/billing/types/UpsertInvoiceResponse.js +35 -0
- package/serialization/resources/billing/types/UpsertPaymentMethodResponse.d.ts +14 -0
- package/serialization/resources/billing/types/UpsertPaymentMethodResponse.js +35 -0
- package/serialization/resources/billing/types/index.d.ts +12 -4
- package/serialization/resources/billing/types/index.js +12 -4
- package/serialization/resources/companies/types/CountCompaniesParams.d.ts +1 -0
- package/serialization/resources/companies/types/CountCompaniesParams.js +1 -0
- package/serialization/resources/companies/types/ListCompaniesParams.d.ts +1 -0
- package/serialization/resources/companies/types/ListCompaniesParams.js +1 -0
- package/serialization/resources/components/types/PreviewComponentDataParams.d.ts +13 -0
- package/serialization/resources/components/types/PreviewComponentDataParams.js +34 -0
- package/serialization/resources/components/types/PreviewComponentDataResponse.d.ts +15 -0
- package/{dist/serialization/resources/billing/types/GetBillingPlanGroupByAccountIdResponse.js → serialization/resources/components/types/PreviewComponentDataResponse.js} +6 -5
- package/serialization/resources/components/types/index.d.ts +2 -1
- package/serialization/resources/components/types/index.js +2 -1
- package/serialization/resources/entitlements/types/CountFeatureUsageParams.d.ts +1 -0
- package/serialization/resources/entitlements/types/CountFeatureUsageParams.js +1 -0
- package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
- package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +1 -1
- package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
- package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +1 -1
- package/serialization/resources/entitlements/types/ListFeatureUsageParams.d.ts +1 -0
- package/serialization/resources/entitlements/types/ListFeatureUsageParams.js +1 -0
- package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
- package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +1 -1
- package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
- package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +1 -1
- package/serialization/resources/index.d.ts +3 -0
- package/serialization/resources/index.js +4 -1
- package/serialization/resources/plangroups/client/index.d.ts +1 -0
- package/serialization/resources/plangroups/client/index.js +17 -0
- package/{dist/serialization/resources/billing/client/requests/UpdateBillingPlanGroupRequestBody.d.ts → serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts} +3 -2
- package/{dist/serialization/resources/billing/client/requests/UpdateBillingPlanGroupRequestBody.js → serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js} +3 -2
- package/serialization/resources/{billing/client/requests/UpdateBillingPlanGroupRequestBody.d.ts → plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts} +3 -2
- package/serialization/resources/{billing/client/requests/UpdateBillingPlanGroupRequestBody.js → plangroups/client/requests/UpdatePlanGroupRequestBody.js} +3 -2
- package/serialization/resources/plangroups/client/requests/index.d.ts +2 -0
- package/serialization/resources/plangroups/client/requests/index.js +7 -0
- package/serialization/resources/plangroups/index.d.ts +2 -0
- package/serialization/resources/plangroups/index.js +18 -0
- package/serialization/resources/plangroups/types/CreatePlanGroupResponse.d.ts +14 -0
- package/serialization/resources/plangroups/types/CreatePlanGroupResponse.js +35 -0
- package/serialization/resources/plangroups/types/GetPlanGroupResponse.d.ts +14 -0
- package/serialization/resources/plangroups/types/GetPlanGroupResponse.js +35 -0
- package/serialization/resources/plangroups/types/UpdatePlanGroupResponse.d.ts +14 -0
- package/serialization/resources/plangroups/types/UpdatePlanGroupResponse.js +35 -0
- package/serialization/resources/plangroups/types/index.d.ts +3 -0
- package/serialization/resources/plangroups/types/index.js +19 -0
- package/serialization/resources/plans/types/CountPlansParams.d.ts +2 -0
- package/serialization/resources/plans/types/CountPlansParams.js +2 -0
- package/serialization/resources/plans/types/ListPlansParams.d.ts +2 -0
- package/serialization/resources/plans/types/ListPlansParams.js +2 -0
- package/serialization/resources/plans/types/index.d.ts +0 -1
- package/serialization/resources/plans/types/index.js +0 -1
- package/serialization/types/BillingCustomerSubscription.d.ts +1 -0
- package/serialization/types/BillingCustomerSubscription.js +1 -0
- package/serialization/types/BillingMeterResponseData.d.ts +16 -0
- package/serialization/types/BillingMeterResponseData.js +37 -0
- package/serialization/types/BillingPriceResponseData.d.ts +1 -0
- package/serialization/types/BillingPriceResponseData.js +1 -0
- package/serialization/types/BillingProductForSubscriptionResponseData.d.ts +3 -1
- package/serialization/types/BillingProductForSubscriptionResponseData.js +3 -1
- package/serialization/types/BillingProductPricing.d.ts +3 -2
- package/serialization/types/BillingProductPricing.js +3 -2
- package/serialization/types/BillingSubscriptionResponseData.d.ts +4 -1
- package/serialization/types/BillingSubscriptionResponseData.js +4 -1
- package/serialization/types/CheckFlagRequestBody.d.ts +2 -2
- package/serialization/types/CheckFlagRequestBody.js +2 -2
- package/serialization/types/CompanyDetailResponseData.d.ts +7 -5
- package/serialization/types/CompanyDetailResponseData.js +7 -5
- package/serialization/types/CompanyPlanDetailResponseData.d.ts +32 -0
- package/serialization/types/CompanyPlanDetailResponseData.js +53 -0
- package/serialization/types/{BillingPlan.d.ts → CompanyPlanWithBillingSubView.d.ts} +3 -2
- package/{dist/serialization/types/BillingPlan.js → serialization/types/CompanyPlanWithBillingSubView.js} +3 -2
- package/serialization/types/CompanySubscriptionResponseData.d.ts +7 -0
- package/serialization/types/CompanySubscriptionResponseData.js +7 -0
- package/serialization/types/ComponentHydrateResponseData.d.ts +9 -0
- package/serialization/types/ComponentHydrateResponseData.js +9 -0
- package/serialization/types/ComponentPreviewResponseData.d.ts +27 -0
- package/serialization/types/ComponentPreviewResponseData.js +48 -0
- package/serialization/types/CreateOrUpdateConditionRequestBodyConditionType.d.ts +1 -1
- package/serialization/types/CreateOrUpdateConditionRequestBodyConditionType.js +10 -1
- package/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +1 -1
- package/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +1 -1
- package/serialization/types/CreateOrUpdateConditionRequestBodyOperator.d.ts +1 -1
- package/serialization/types/CreateOrUpdateConditionRequestBodyOperator.js +1 -1
- package/serialization/types/CreateReqCommonMetricPeriod.d.ts +1 -1
- package/serialization/types/CreateReqCommonMetricPeriod.js +1 -1
- package/serialization/types/EventBodyFlagCheck.d.ts +2 -2
- package/serialization/types/EventBodyFlagCheck.js +2 -2
- package/serialization/types/GenericPreviewObject.d.ts +15 -0
- package/serialization/types/GenericPreviewObject.js +36 -0
- package/serialization/types/InvoiceRequestBody.d.ts +22 -0
- package/serialization/types/InvoiceRequestBody.js +43 -0
- package/serialization/types/InvoiceResponseData.d.ts +28 -0
- package/serialization/types/InvoiceResponseData.js +49 -0
- package/serialization/types/MeterRequestBody.d.ts +14 -0
- package/serialization/{resources/billing/client/requests/ChangeSubscriptionRequestBody.js → types/MeterRequestBody.js} +6 -6
- package/serialization/types/PaymentMethodRequestBody.d.ts +23 -0
- package/serialization/types/PaymentMethodRequestBody.js +44 -0
- package/serialization/types/PaymentMethodResponseData.d.ts +29 -0
- package/serialization/types/PaymentMethodResponseData.js +50 -0
- package/serialization/types/PlanDetailResponseData.d.ts +5 -0
- package/serialization/types/PlanDetailResponseData.js +5 -0
- package/serialization/types/PlanGroupDetailResponseData.d.ts +16 -0
- package/serialization/types/PlanGroupDetailResponseData.js +37 -0
- package/serialization/types/PlanGroupPlanDetailResponseData.d.ts +30 -0
- package/serialization/types/PlanGroupPlanDetailResponseData.js +51 -0
- package/serialization/types/{BillingPlanGroupResponseData.d.ts → PlanGroupResponseData.d.ts} +3 -2
- package/{dist/serialization/types/BillingPlanGroupResponseData.js → serialization/types/PlanGroupResponseData.js} +3 -2
- package/serialization/types/PlanResponseData.d.ts +1 -0
- package/serialization/types/PlanResponseData.js +1 -0
- package/serialization/types/StripeEmbedInfo.d.ts +13 -0
- package/serialization/types/StripeEmbedInfo.js +34 -0
- package/serialization/types/UpdateReqCommonMetricPeriod.d.ts +1 -1
- package/serialization/types/UpdateReqCommonMetricPeriod.js +1 -1
- package/serialization/types/index.d.ts +14 -2
- package/serialization/types/index.js +14 -2
- package/api/resources/billing/client/requests/ChangeSubscriptionRequestBody.d.ts +0 -16
- package/dist/api/resources/billing/client/requests/ChangeSubscriptionRequestBody.d.ts +0 -16
- package/dist/api/resources/billing/types/ChangeSubscriptionWebResponse.d.ts +0 -9
- package/dist/api/resources/billing/types/CreateBillingPlanGroupResponse.d.ts +0 -9
- package/dist/api/resources/billing/types/GetBillingPlanGroupByAccountIdResponse.d.ts +0 -9
- package/dist/api/resources/billing/types/UpdateBillingPlanGroupResponse.d.ts +0 -9
- package/dist/serialization/resources/billing/client/requests/ChangeSubscriptionRequestBody.d.ts +0 -14
- package/dist/serialization/resources/billing/types/ChangeSubscriptionWebResponse.d.ts +0 -14
- package/dist/serialization/resources/billing/types/CreateBillingPlanGroupResponse.d.ts +0 -14
- package/dist/serialization/resources/billing/types/GetBillingPlanGroupByAccountIdResponse.d.ts +0 -14
- package/dist/serialization/resources/billing/types/UpdateBillingPlanGroupResponse.d.ts +0 -14
- package/dist/serialization/resources/components/types/HydrateComponentResponse.d.ts +0 -14
- package/dist/serialization/resources/plans/types/ListActivePlansResponse.d.ts +0 -14
- package/serialization/resources/billing/client/requests/ChangeSubscriptionRequestBody.d.ts +0 -14
- package/serialization/resources/billing/types/ChangeSubscriptionWebResponse.d.ts +0 -14
- package/serialization/resources/billing/types/ChangeSubscriptionWebResponse.js +0 -35
- package/serialization/resources/billing/types/CreateBillingPlanGroupResponse.d.ts +0 -14
- package/serialization/resources/billing/types/CreateBillingPlanGroupResponse.js +0 -35
- package/serialization/resources/billing/types/GetBillingPlanGroupByAccountIdResponse.d.ts +0 -14
- package/serialization/resources/billing/types/GetBillingPlanGroupByAccountIdResponse.js +0 -35
- package/serialization/resources/billing/types/UpdateBillingPlanGroupResponse.d.ts +0 -14
- package/serialization/resources/billing/types/UpdateBillingPlanGroupResponse.js +0 -35
- package/serialization/resources/components/types/HydrateComponentResponse.d.ts +0 -14
- package/serialization/resources/plans/types/ListActivePlansResponse.d.ts +0 -14
- /package/api/resources/billing/client/requests/{ChangeSubscriptionRequestBody.js → CountBillingProductsRequest.js} +0 -0
- /package/api/resources/billing/client/requests/{CreateBillingPlanGroupRequestBody.js → CreateInvoiceRequestBody.js} +0 -0
- /package/api/resources/billing/client/requests/{UpdateBillingPlanGroupRequestBody.js → CreateMeterRequestBody.js} +0 -0
- /package/api/resources/billing/{types/ChangeSubscriptionWebResponse.js → client/requests/CreatePaymentMethodRequestBody.js} +0 -0
- /package/api/resources/billing/{types/CreateBillingPlanGroupResponse.js → client/requests/ListInvoicesRequest.js} +0 -0
- /package/api/resources/billing/{types/GetBillingPlanGroupByAccountIdResponse.js → client/requests/ListMetersRequest.js} +0 -0
- /package/api/resources/billing/{types/UpdateBillingPlanGroupResponse.js → client/requests/ListPaymentMethodsRequest.js} +0 -0
- /package/api/resources/{components/types/HydrateComponentResponse.js → billing/types/CountBillingProductsParams.js} +0 -0
- /package/api/resources/{plans/types/ListActivePlansResponse.js → billing/types/CountBillingProductsResponse.js} +0 -0
- /package/api/{types/BillingPlan.js → resources/billing/types/DeleteProductPriceResponse.js} +0 -0
- /package/api/{types/BillingPlanGroupResponseData.js → resources/billing/types/ListInvoicesParams.js} +0 -0
- /package/{dist/api/resources/billing/client/requests/ChangeSubscriptionRequestBody.js → api/resources/billing/types/ListInvoicesResponse.js} +0 -0
- /package/{dist/api/resources/billing/client/requests/CreateBillingPlanGroupRequestBody.js → api/resources/billing/types/ListMetersParams.js} +0 -0
- /package/{dist/api/resources/billing/client/requests/UpdateBillingPlanGroupRequestBody.js → api/resources/billing/types/ListMetersResponse.js} +0 -0
- /package/{dist/api/resources/billing/types/ChangeSubscriptionWebResponse.js → api/resources/billing/types/ListPaymentMethodsParams.js} +0 -0
- /package/{dist/api/resources/billing/types/CreateBillingPlanGroupResponse.js → api/resources/billing/types/ListPaymentMethodsResponse.js} +0 -0
- /package/{dist/api/resources/billing/types/GetBillingPlanGroupByAccountIdResponse.js → api/resources/billing/types/UpsertBillingMeterResponse.js} +0 -0
- /package/{dist/api/resources/billing/types/UpdateBillingPlanGroupResponse.js → api/resources/billing/types/UpsertInvoiceResponse.js} +0 -0
- /package/{dist/api/resources/components/types/HydrateComponentResponse.js → api/resources/billing/types/UpsertPaymentMethodResponse.js} +0 -0
- /package/{dist/api/resources/plans/types/ListActivePlansResponse.js → api/resources/components/client/requests/PreviewComponentDataRequest.js} +0 -0
- /package/{dist/api/types/BillingPlan.js → api/resources/components/types/PreviewComponentDataParams.js} +0 -0
- /package/{dist/api/types/BillingPlanGroupResponseData.js → api/resources/components/types/PreviewComponentDataResponse.js} +0 -0
|
@@ -7,6 +7,7 @@ import * as core from "../../../../../core";
|
|
|
7
7
|
export declare const CreateBillingPriceRequestBody: core.serialization.Schema<serializers.CreateBillingPriceRequestBody.Raw, Schematic.CreateBillingPriceRequestBody>;
|
|
8
8
|
export declare namespace CreateBillingPriceRequestBody {
|
|
9
9
|
interface Raw {
|
|
10
|
+
currency: string;
|
|
10
11
|
interval: string;
|
|
11
12
|
price: number;
|
|
12
13
|
price_external_id: string;
|
|
@@ -29,6 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.CreateBillingPriceRequestBody = void 0;
|
|
30
30
|
const core = __importStar(require("../../../../../core"));
|
|
31
31
|
exports.CreateBillingPriceRequestBody = core.serialization.object({
|
|
32
|
+
currency: core.serialization.string(),
|
|
32
33
|
interval: core.serialization.string(),
|
|
33
34
|
price: core.serialization.number(),
|
|
34
35
|
priceExternalId: core.serialization.property("price_external_id", core.serialization.string()),
|
package/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts
CHANGED
|
@@ -8,10 +8,13 @@ import { BillingProductPricing } from "../../../../types/BillingProductPricing";
|
|
|
8
8
|
export declare const CreateBillingSubscriptionsRequestBody: core.serialization.Schema<serializers.CreateBillingSubscriptionsRequestBody.Raw, Schematic.CreateBillingSubscriptionsRequestBody>;
|
|
9
9
|
export declare namespace CreateBillingSubscriptionsRequestBody {
|
|
10
10
|
interface Raw {
|
|
11
|
+
currency: string;
|
|
11
12
|
customer_external_id: string;
|
|
12
13
|
expired_at: string;
|
|
13
14
|
interval?: string | null;
|
|
14
15
|
metadata?: Record<string, unknown> | null;
|
|
16
|
+
period_end?: number | null;
|
|
17
|
+
period_start?: number | null;
|
|
15
18
|
product_external_ids: BillingProductPricing.Raw[];
|
|
16
19
|
status?: string | null;
|
|
17
20
|
subscription_external_id: string;
|
package/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.js
CHANGED
|
@@ -30,10 +30,13 @@ exports.CreateBillingSubscriptionsRequestBody = void 0;
|
|
|
30
30
|
const core = __importStar(require("../../../../../core"));
|
|
31
31
|
const BillingProductPricing_1 = require("../../../../types/BillingProductPricing");
|
|
32
32
|
exports.CreateBillingSubscriptionsRequestBody = core.serialization.object({
|
|
33
|
+
currency: core.serialization.string(),
|
|
33
34
|
customerExternalId: core.serialization.property("customer_external_id", core.serialization.string()),
|
|
34
35
|
expiredAt: core.serialization.property("expired_at", core.serialization.date()),
|
|
35
36
|
interval: core.serialization.string().optional(),
|
|
36
37
|
metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
|
|
38
|
+
periodEnd: core.serialization.property("period_end", core.serialization.number().optional()),
|
|
39
|
+
periodStart: core.serialization.property("period_start", core.serialization.number().optional()),
|
|
37
40
|
productExternalIds: core.serialization.property("product_external_ids", core.serialization.list(BillingProductPricing_1.BillingProductPricing)),
|
|
38
41
|
status: core.serialization.string().optional(),
|
|
39
42
|
subscriptionExternalId: core.serialization.property("subscription_external_id", core.serialization.string()),
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../index";
|
|
5
|
+
import * as Schematic from "../../../../../api/index";
|
|
6
|
+
import * as core from "../../../../../core";
|
|
7
|
+
export declare const CreateInvoiceRequestBody: core.serialization.Schema<serializers.CreateInvoiceRequestBody.Raw, Schematic.CreateInvoiceRequestBody>;
|
|
8
|
+
export declare namespace CreateInvoiceRequestBody {
|
|
9
|
+
interface Raw {
|
|
10
|
+
amount_due: number;
|
|
11
|
+
amount_paid: number;
|
|
12
|
+
amount_remaining: number;
|
|
13
|
+
collection_method: string;
|
|
14
|
+
currency: string;
|
|
15
|
+
customer_external_id: string;
|
|
16
|
+
due_date?: string | null;
|
|
17
|
+
external_id?: string | null;
|
|
18
|
+
payment_method_external_id?: string | null;
|
|
19
|
+
subscription_external_id?: string | null;
|
|
20
|
+
subtotal: number;
|
|
21
|
+
url?: string | null;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.CreateInvoiceRequestBody = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../../core"));
|
|
31
|
+
exports.CreateInvoiceRequestBody = core.serialization.object({
|
|
32
|
+
amountDue: core.serialization.property("amount_due", core.serialization.number()),
|
|
33
|
+
amountPaid: core.serialization.property("amount_paid", core.serialization.number()),
|
|
34
|
+
amountRemaining: core.serialization.property("amount_remaining", core.serialization.number()),
|
|
35
|
+
collectionMethod: core.serialization.property("collection_method", core.serialization.string()),
|
|
36
|
+
currency: core.serialization.string(),
|
|
37
|
+
customerExternalId: core.serialization.property("customer_external_id", core.serialization.string()),
|
|
38
|
+
dueDate: core.serialization.property("due_date", core.serialization.date().optional()),
|
|
39
|
+
externalId: core.serialization.property("external_id", core.serialization.string().optional()),
|
|
40
|
+
paymentMethodExternalId: core.serialization.property("payment_method_external_id", core.serialization.string().optional()),
|
|
41
|
+
subscriptionExternalId: core.serialization.property("subscription_external_id", core.serialization.string().optional()),
|
|
42
|
+
subtotal: core.serialization.number(),
|
|
43
|
+
url: core.serialization.string().optional(),
|
|
44
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../index";
|
|
5
|
+
import * as Schematic from "../../../../../api/index";
|
|
6
|
+
import * as core from "../../../../../core";
|
|
7
|
+
export declare const CreateMeterRequestBody: core.serialization.Schema<serializers.CreateMeterRequestBody.Raw, Schematic.CreateMeterRequestBody>;
|
|
8
|
+
export declare namespace CreateMeterRequestBody {
|
|
9
|
+
interface Raw {
|
|
10
|
+
DisplayName: string;
|
|
11
|
+
EventName: string;
|
|
12
|
+
EventPayloadKey: string;
|
|
13
|
+
external_id: string;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.CreateMeterRequestBody = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../../core"));
|
|
31
|
+
exports.CreateMeterRequestBody = core.serialization.object({
|
|
32
|
+
displayName: core.serialization.property("DisplayName", core.serialization.string()),
|
|
33
|
+
eventName: core.serialization.property("EventName", core.serialization.string()),
|
|
34
|
+
eventPayloadKey: core.serialization.property("EventPayloadKey", core.serialization.string()),
|
|
35
|
+
externalId: core.serialization.property("external_id", core.serialization.string()),
|
|
36
|
+
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../index";
|
|
5
|
+
import * as Schematic from "../../../../../api/index";
|
|
6
|
+
import * as core from "../../../../../core";
|
|
7
|
+
export declare const CreatePaymentMethodRequestBody: core.serialization.Schema<serializers.CreatePaymentMethodRequestBody.Raw, Schematic.CreatePaymentMethodRequestBody>;
|
|
8
|
+
export declare namespace CreatePaymentMethodRequestBody {
|
|
9
|
+
interface Raw {
|
|
10
|
+
account_last4?: string | null;
|
|
11
|
+
account_name?: string | null;
|
|
12
|
+
bank_name?: string | null;
|
|
13
|
+
billing_email?: string | null;
|
|
14
|
+
billing_name?: string | null;
|
|
15
|
+
card_brand?: string | null;
|
|
16
|
+
card_exp_month?: number | null;
|
|
17
|
+
card_exp_year?: number | null;
|
|
18
|
+
card_last4?: string | null;
|
|
19
|
+
customer_external_id: string;
|
|
20
|
+
external_id: string;
|
|
21
|
+
payment_method_type: string;
|
|
22
|
+
subscription_external_id?: string | null;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.CreatePaymentMethodRequestBody = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../../core"));
|
|
31
|
+
exports.CreatePaymentMethodRequestBody = core.serialization.object({
|
|
32
|
+
accountLast4: core.serialization.property("account_last4", core.serialization.string().optional()),
|
|
33
|
+
accountName: core.serialization.property("account_name", core.serialization.string().optional()),
|
|
34
|
+
bankName: core.serialization.property("bank_name", core.serialization.string().optional()),
|
|
35
|
+
billingEmail: core.serialization.property("billing_email", core.serialization.string().optional()),
|
|
36
|
+
billingName: core.serialization.property("billing_name", core.serialization.string().optional()),
|
|
37
|
+
cardBrand: core.serialization.property("card_brand", core.serialization.string().optional()),
|
|
38
|
+
cardExpMonth: core.serialization.property("card_exp_month", core.serialization.number().optional()),
|
|
39
|
+
cardExpYear: core.serialization.property("card_exp_year", core.serialization.number().optional()),
|
|
40
|
+
cardLast4: core.serialization.property("card_last4", core.serialization.string().optional()),
|
|
41
|
+
customerExternalId: core.serialization.property("customer_external_id", core.serialization.string()),
|
|
42
|
+
externalId: core.serialization.property("external_id", core.serialization.string()),
|
|
43
|
+
paymentMethodType: core.serialization.property("payment_method_type", core.serialization.string()),
|
|
44
|
+
subscriptionExternalId: core.serialization.property("subscription_external_id", core.serialization.string().optional()),
|
|
45
|
+
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { CreateBillingCustomerRequestBody } from "./CreateBillingCustomerRequestBody";
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
2
|
+
export { CreateInvoiceRequestBody } from "./CreateInvoiceRequestBody";
|
|
3
|
+
export { CreateMeterRequestBody } from "./CreateMeterRequestBody";
|
|
4
|
+
export { CreatePaymentMethodRequestBody } from "./CreatePaymentMethodRequestBody";
|
|
4
5
|
export { CreateBillingPriceRequestBody } from "./CreateBillingPriceRequestBody";
|
|
5
6
|
export { CreateBillingProductRequestBody } from "./CreateBillingProductRequestBody";
|
|
6
7
|
export { CreateBillingSubscriptionsRequestBody } from "./CreateBillingSubscriptionsRequestBody";
|
|
7
|
-
export { ChangeSubscriptionRequestBody } from "./ChangeSubscriptionRequestBody";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.CreateBillingSubscriptionsRequestBody = exports.CreateBillingProductRequestBody = exports.CreateBillingPriceRequestBody = exports.CreatePaymentMethodRequestBody = exports.CreateMeterRequestBody = exports.CreateInvoiceRequestBody = exports.CreateBillingCustomerRequestBody = void 0;
|
|
4
4
|
var CreateBillingCustomerRequestBody_1 = require("./CreateBillingCustomerRequestBody");
|
|
5
5
|
Object.defineProperty(exports, "CreateBillingCustomerRequestBody", { enumerable: true, get: function () { return CreateBillingCustomerRequestBody_1.CreateBillingCustomerRequestBody; } });
|
|
6
|
-
var
|
|
7
|
-
Object.defineProperty(exports, "
|
|
8
|
-
var
|
|
9
|
-
Object.defineProperty(exports, "
|
|
6
|
+
var CreateInvoiceRequestBody_1 = require("./CreateInvoiceRequestBody");
|
|
7
|
+
Object.defineProperty(exports, "CreateInvoiceRequestBody", { enumerable: true, get: function () { return CreateInvoiceRequestBody_1.CreateInvoiceRequestBody; } });
|
|
8
|
+
var CreateMeterRequestBody_1 = require("./CreateMeterRequestBody");
|
|
9
|
+
Object.defineProperty(exports, "CreateMeterRequestBody", { enumerable: true, get: function () { return CreateMeterRequestBody_1.CreateMeterRequestBody; } });
|
|
10
|
+
var CreatePaymentMethodRequestBody_1 = require("./CreatePaymentMethodRequestBody");
|
|
11
|
+
Object.defineProperty(exports, "CreatePaymentMethodRequestBody", { enumerable: true, get: function () { return CreatePaymentMethodRequestBody_1.CreatePaymentMethodRequestBody; } });
|
|
10
12
|
var CreateBillingPriceRequestBody_1 = require("./CreateBillingPriceRequestBody");
|
|
11
13
|
Object.defineProperty(exports, "CreateBillingPriceRequestBody", { enumerable: true, get: function () { return CreateBillingPriceRequestBody_1.CreateBillingPriceRequestBody; } });
|
|
12
14
|
var CreateBillingProductRequestBody_1 = require("./CreateBillingProductRequestBody");
|
|
13
15
|
Object.defineProperty(exports, "CreateBillingProductRequestBody", { enumerable: true, get: function () { return CreateBillingProductRequestBody_1.CreateBillingProductRequestBody; } });
|
|
14
16
|
var CreateBillingSubscriptionsRequestBody_1 = require("./CreateBillingSubscriptionsRequestBody");
|
|
15
17
|
Object.defineProperty(exports, "CreateBillingSubscriptionsRequestBody", { enumerable: true, get: function () { return CreateBillingSubscriptionsRequestBody_1.CreateBillingSubscriptionsRequestBody; } });
|
|
16
|
-
var ChangeSubscriptionRequestBody_1 = require("./ChangeSubscriptionRequestBody");
|
|
17
|
-
Object.defineProperty(exports, "ChangeSubscriptionRequestBody", { enumerable: true, get: function () { return ChangeSubscriptionRequestBody_1.ChangeSubscriptionRequestBody; } });
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as Schematic from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
export declare const CountBillingProductsParams: core.serialization.ObjectSchema<serializers.CountBillingProductsParams.Raw, Schematic.CountBillingProductsParams>;
|
|
8
|
+
export declare namespace CountBillingProductsParams {
|
|
9
|
+
interface Raw {
|
|
10
|
+
ids?: string[] | null;
|
|
11
|
+
limit?: number | null;
|
|
12
|
+
name?: string | null;
|
|
13
|
+
offset?: number | null;
|
|
14
|
+
q?: string | null;
|
|
15
|
+
without_linked_to_plan?: boolean | null;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.CountBillingProductsParams = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
exports.CountBillingProductsParams = core.serialization.object({
|
|
32
|
+
ids: core.serialization.list(core.serialization.string()).optional(),
|
|
33
|
+
limit: core.serialization.number().optional(),
|
|
34
|
+
name: core.serialization.string().optional(),
|
|
35
|
+
offset: core.serialization.number().optional(),
|
|
36
|
+
q: core.serialization.string().optional(),
|
|
37
|
+
withoutLinkedToPlan: core.serialization.property("without_linked_to_plan", core.serialization.boolean().optional()),
|
|
38
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as Schematic from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
import { CountResponse } from "../../../types/CountResponse";
|
|
8
|
+
import { CountBillingProductsParams } from "./CountBillingProductsParams";
|
|
9
|
+
export declare const CountBillingProductsResponse: core.serialization.ObjectSchema<serializers.CountBillingProductsResponse.Raw, Schematic.CountBillingProductsResponse>;
|
|
10
|
+
export declare namespace CountBillingProductsResponse {
|
|
11
|
+
interface Raw {
|
|
12
|
+
data: CountResponse.Raw;
|
|
13
|
+
params: CountBillingProductsParams.Raw;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.CountBillingProductsResponse = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
const CountResponse_1 = require("../../../types/CountResponse");
|
|
32
|
+
const CountBillingProductsParams_1 = require("./CountBillingProductsParams");
|
|
33
|
+
exports.CountBillingProductsResponse = core.serialization.object({
|
|
34
|
+
data: CountResponse_1.CountResponse,
|
|
35
|
+
params: CountBillingProductsParams_1.CountBillingProductsParams,
|
|
36
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as Schematic from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
import { DeleteResponse } from "../../../types/DeleteResponse";
|
|
8
|
+
export declare const DeleteProductPriceResponse: core.serialization.ObjectSchema<serializers.DeleteProductPriceResponse.Raw, Schematic.DeleteProductPriceResponse>;
|
|
9
|
+
export declare namespace DeleteProductPriceResponse {
|
|
10
|
+
interface Raw {
|
|
11
|
+
data: DeleteResponse.Raw;
|
|
12
|
+
params: Record<string, unknown>;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.DeleteProductPriceResponse = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
const DeleteResponse_1 = require("../../../types/DeleteResponse");
|
|
32
|
+
exports.DeleteProductPriceResponse = core.serialization.object({
|
|
33
|
+
data: DeleteResponse_1.DeleteResponse,
|
|
34
|
+
params: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
|
|
35
|
+
});
|
|
@@ -34,4 +34,5 @@ exports.ListBillingProductsParams = core.serialization.object({
|
|
|
34
34
|
name: core.serialization.string().optional(),
|
|
35
35
|
offset: core.serialization.number().optional(),
|
|
36
36
|
q: core.serialization.string().optional(),
|
|
37
|
+
withoutLinkedToPlan: core.serialization.property("without_linked_to_plan", core.serialization.boolean().optional()),
|
|
37
38
|
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as Schematic from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
export declare const ListInvoicesParams: core.serialization.ObjectSchema<serializers.ListInvoicesParams.Raw, Schematic.ListInvoicesParams>;
|
|
8
|
+
export declare namespace ListInvoicesParams {
|
|
9
|
+
interface Raw {
|
|
10
|
+
company_id?: string | null;
|
|
11
|
+
customer_external_id?: string | null;
|
|
12
|
+
limit?: number | null;
|
|
13
|
+
offset?: number | null;
|
|
14
|
+
subscription_external_id?: string | null;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.ListInvoicesParams = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
exports.ListInvoicesParams = core.serialization.object({
|
|
32
|
+
companyId: core.serialization.property("company_id", core.serialization.string().optional()),
|
|
33
|
+
customerExternalId: core.serialization.property("customer_external_id", core.serialization.string().optional()),
|
|
34
|
+
limit: core.serialization.number().optional(),
|
|
35
|
+
offset: core.serialization.number().optional(),
|
|
36
|
+
subscriptionExternalId: core.serialization.property("subscription_external_id", core.serialization.string().optional()),
|
|
37
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as Schematic from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
import { InvoiceResponseData } from "../../../types/InvoiceResponseData";
|
|
8
|
+
import { ListInvoicesParams } from "./ListInvoicesParams";
|
|
9
|
+
export declare const ListInvoicesResponse: core.serialization.ObjectSchema<serializers.ListInvoicesResponse.Raw, Schematic.ListInvoicesResponse>;
|
|
10
|
+
export declare namespace ListInvoicesResponse {
|
|
11
|
+
interface Raw {
|
|
12
|
+
data: InvoiceResponseData.Raw[];
|
|
13
|
+
params: ListInvoicesParams.Raw;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.ListInvoicesResponse = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
const InvoiceResponseData_1 = require("../../../types/InvoiceResponseData");
|
|
32
|
+
const ListInvoicesParams_1 = require("./ListInvoicesParams");
|
|
33
|
+
exports.ListInvoicesResponse = core.serialization.object({
|
|
34
|
+
data: core.serialization.list(InvoiceResponseData_1.InvoiceResponseData),
|
|
35
|
+
params: ListInvoicesParams_1.ListInvoicesParams,
|
|
36
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as Schematic from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
export declare const ListMetersParams: core.serialization.ObjectSchema<serializers.ListMetersParams.Raw, Schematic.ListMetersParams>;
|
|
8
|
+
export declare namespace ListMetersParams {
|
|
9
|
+
interface Raw {
|
|
10
|
+
display_name?: string | null;
|
|
11
|
+
limit?: number | null;
|
|
12
|
+
offset?: number | null;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.ListMetersParams = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
exports.ListMetersParams = core.serialization.object({
|
|
32
|
+
displayName: core.serialization.property("display_name", core.serialization.string().optional()),
|
|
33
|
+
limit: core.serialization.number().optional(),
|
|
34
|
+
offset: core.serialization.number().optional(),
|
|
35
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as Schematic from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
import { BillingMeterResponseData } from "../../../types/BillingMeterResponseData";
|
|
8
|
+
import { ListMetersParams } from "./ListMetersParams";
|
|
9
|
+
export declare const ListMetersResponse: core.serialization.ObjectSchema<serializers.ListMetersResponse.Raw, Schematic.ListMetersResponse>;
|
|
10
|
+
export declare namespace ListMetersResponse {
|
|
11
|
+
interface Raw {
|
|
12
|
+
data: BillingMeterResponseData.Raw[];
|
|
13
|
+
params: ListMetersParams.Raw;
|
|
14
|
+
}
|
|
15
|
+
}
|