@schematichq/schematic-typescript-node 1.1.2 → 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 +13 -0
- package/Client.js +97 -4
- 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 +131 -1
- package/api/resources/billing/client/Client.js +836 -11
- 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/{companies/client/requests/ListCompanyPlansRequest.d.ts → billing/client/requests/ListMetersRequest.d.ts} +2 -3
- 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 -0
- 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/billing/types/ListInvoicesParams.js +5 -0
- package/{dist/api/resources/companies/types/ListCompanyPlansResponse.d.ts → api/resources/billing/types/ListInvoicesResponse.d.ts} +3 -3
- package/api/resources/billing/types/ListInvoicesResponse.js +5 -0
- package/api/resources/{companies/types/ListCompanyPlansParams.d.ts → billing/types/ListMetersParams.d.ts} +2 -3
- package/api/resources/billing/types/ListMetersParams.js +5 -0
- package/api/resources/{companies/types/ListCompanyPlansResponse.d.ts → billing/types/ListMetersResponse.d.ts} +3 -3
- package/api/resources/billing/types/ListMetersResponse.js +5 -0
- package/api/resources/billing/types/ListPaymentMethodsParams.d.ts +15 -0
- package/api/resources/billing/types/ListPaymentMethodsParams.js +5 -0
- package/api/resources/billing/types/ListPaymentMethodsResponse.d.ts +10 -0
- package/api/resources/billing/types/ListPaymentMethodsResponse.js +5 -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/UpsertBillingMeterResponse.js +5 -0
- package/api/resources/billing/types/UpsertInvoiceResponse.d.ts +9 -0
- package/api/resources/billing/types/UpsertInvoiceResponse.js +5 -0
- package/api/resources/billing/types/UpsertPaymentMethodResponse.d.ts +9 -0
- package/api/resources/billing/types/UpsertPaymentMethodResponse.js +5 -0
- package/api/resources/billing/types/index.d.ts +12 -0
- package/api/resources/billing/types/index.js +12 -0
- package/api/resources/companies/client/Client.d.ts +3 -16
- package/api/resources/companies/client/Client.js +50 -149
- 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/client/requests/index.d.ts +0 -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/companies/types/index.d.ts +0 -2
- package/api/resources/companies/types/index.js +0 -2
- 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/PreviewComponentDataRequest.js +5 -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/components/types/PreviewComponentDataParams.js +5 -0
- package/api/resources/components/types/PreviewComponentDataResponse.d.ts +9 -0
- package/api/resources/components/types/PreviewComponentDataResponse.js +5 -0
- 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/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +15 -0
- package/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js +5 -0
- package/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +15 -0
- 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 -6
- package/api/resources/plans/client/Client.js +35 -24
- package/api/resources/plans/client/requests/CountPlansRequest.d.ts +9 -1
- package/api/resources/plans/client/requests/CreatePlanRequestBody.d.ts +1 -2
- 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/client/requests/UpdatePlanRequestBody.d.ts +0 -2
- package/api/resources/plans/types/CountPlansParams.d.ts +4 -0
- package/api/resources/plans/types/ListPlansParams.d.ts +4 -0
- 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 +18 -0
- package/api/types/BillingProductForSubscriptionResponseData.js +5 -0
- package/api/types/BillingProductPricing.d.ts +3 -0
- 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/CompanyPlanWithBillingSubView.d.ts +12 -0
- package/api/types/CompanyPlanWithBillingSubView.js +5 -0
- package/api/types/CompanySubscriptionResponseData.d.ts +6 -1
- 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 -4
- 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/api/types/PlanGroupResponseData.d.ts +12 -0
- package/api/types/PlanGroupResponseData.js +5 -0
- package/api/types/PlanResponseData.d.ts +1 -1
- 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 +15 -1
- package/api/types/index.js +15 -1
- 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 +13 -0
- package/dist/Client.js +97 -4
- 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 +131 -1
- package/dist/api/resources/billing/client/Client.js +836 -11
- 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/{companies/client/requests/ListCompanyPlansRequest.d.ts → billing/client/requests/ListMetersRequest.d.ts} +2 -3
- 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 -0
- 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/{companies/types/ListCompanyPlansParams.d.ts → billing/types/ListMetersParams.d.ts} +2 -3
- 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 -0
- package/dist/api/resources/billing/types/index.js +12 -0
- package/dist/api/resources/companies/client/Client.d.ts +3 -16
- package/dist/api/resources/companies/client/Client.js +50 -149
- 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/client/requests/index.d.ts +0 -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/companies/types/index.d.ts +0 -2
- package/dist/api/resources/companies/types/index.js +0 -2
- 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/dist/api/resources/components/types/PreviewComponentDataResponse.d.ts +9 -0
- 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/dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +15 -0
- package/dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js +5 -0
- package/dist/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +15 -0
- 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 -6
- package/dist/api/resources/plans/client/Client.js +35 -24
- package/dist/api/resources/plans/client/requests/CountPlansRequest.d.ts +9 -1
- package/dist/api/resources/plans/client/requests/CreatePlanRequestBody.d.ts +1 -2
- 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/client/requests/UpdatePlanRequestBody.d.ts +0 -2
- 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/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 +18 -0
- package/dist/api/types/BillingProductForSubscriptionResponseData.js +5 -0
- package/dist/api/types/BillingProductPricing.d.ts +3 -0
- 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/CompanyPlanWithBillingSubView.d.ts +12 -0
- package/dist/api/types/CompanyPlanWithBillingSubView.js +5 -0
- package/dist/api/types/CompanySubscriptionResponseData.d.ts +6 -1
- 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 -4
- 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/dist/api/types/PlanGroupResponseData.d.ts +12 -0
- package/dist/api/types/PlanGroupResponseData.js +5 -0
- package/dist/api/types/PlanResponseData.d.ts +1 -1
- 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 +15 -1
- package/dist/api/types/index.js +15 -1
- 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/events.d.ts +3 -0
- package/dist/events.js +17 -5
- 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 -0
- package/dist/serialization/resources/billing/client/requests/index.js +7 -1
- 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/components/types/HydrateComponentResponse.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/{companies/types/ListCompanyPlansParams.d.ts → billing/types/ListInvoicesParams.d.ts} +4 -3
- 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/{companies/types/ListCompanyPlansParams.js → billing/types/ListMetersParams.js} +3 -4
- 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/ListPaymentMethodsResponse.js +36 -0
- 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/{components/types/HydrateComponentResponse.js → billing/types/UpsertBillingMeterResponse.js} +4 -4
- package/dist/serialization/resources/billing/types/UpsertInvoiceResponse.d.ts +14 -0
- package/dist/serialization/resources/billing/types/UpsertInvoiceResponse.js +35 -0
- package/dist/serialization/resources/billing/types/UpsertPaymentMethodResponse.d.ts +14 -0
- package/dist/serialization/resources/billing/types/UpsertPaymentMethodResponse.js +35 -0
- package/dist/serialization/resources/billing/types/index.d.ts +12 -0
- package/dist/serialization/resources/billing/types/index.js +12 -0
- 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/companies/types/index.d.ts +0 -2
- package/dist/serialization/resources/companies/types/index.js +0 -2
- 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/{companies/types/ListCompanyPlansResponse.js → components/types/PreviewComponentDataResponse.js} +6 -6
- 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/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +14 -0
- package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js +35 -0
- package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +14 -0
- package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.js +35 -0
- 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/client/requests/CreatePlanRequestBody.d.ts +0 -1
- package/dist/serialization/resources/plans/client/requests/CreatePlanRequestBody.js +0 -1
- package/dist/serialization/resources/plans/client/requests/UpdatePlanRequestBody.d.ts +0 -1
- package/dist/serialization/resources/plans/client/requests/UpdatePlanRequestBody.js +0 -1
- 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/types/BillingCustomerSubscription.d.ts +1 -0
- package/dist/serialization/types/BillingCustomerSubscription.js +1 -0
- package/dist/serialization/types/BillingMeterResponseData.d.ts +16 -0
- package/{serialization/types/CompanyPlanResponseData.js → dist/serialization/types/BillingMeterResponseData.js} +6 -7
- package/dist/serialization/types/BillingPriceResponseData.d.ts +1 -0
- package/dist/serialization/types/BillingPriceResponseData.js +1 -0
- package/dist/serialization/types/BillingProductForSubscriptionResponseData.d.ts +24 -0
- package/dist/serialization/types/BillingProductForSubscriptionResponseData.js +45 -0
- package/dist/serialization/types/BillingProductPricing.d.ts +3 -0
- package/dist/serialization/types/BillingProductPricing.js +3 -0
- 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 -4
- package/dist/serialization/types/CompanyDetailResponseData.js +7 -4
- package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +32 -0
- package/dist/serialization/types/CompanyPlanDetailResponseData.js +53 -0
- package/dist/serialization/types/CompanyPlanWithBillingSubView.d.ts +18 -0
- package/dist/serialization/types/CompanyPlanWithBillingSubView.js +39 -0
- package/dist/serialization/types/CompanySubscriptionResponseData.d.ts +9 -2
- package/dist/serialization/types/CompanySubscriptionResponseData.js +9 -2
- 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/types/MeterRequestBody.js +35 -0
- 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 -1
- package/dist/serialization/types/PlanDetailResponseData.js +5 -1
- 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/PlanGroupResponseData.d.ts +15 -0
- package/dist/serialization/types/PlanGroupResponseData.js +36 -0
- package/dist/serialization/types/PlanResponseData.d.ts +1 -1
- package/dist/serialization/types/PlanResponseData.js +1 -1
- 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 +15 -1
- package/dist/serialization/types/index.js +15 -1
- package/dist/wrapper.js +20 -15
- package/events.d.ts +3 -0
- package/events.js +17 -5
- package/package.json +9 -3
- package/reference.md +691 -136
- 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 -0
- package/serialization/resources/billing/client/requests/index.js +7 -1
- 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/{companies/types/ListCompanyPlansParams.d.ts → billing/types/ListInvoicesParams.d.ts} +4 -3
- 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/{companies/types/ListCompanyPlansParams.js → billing/types/ListMetersParams.js} +3 -4
- 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/serialization/resources/billing/types/ListPaymentMethodsResponse.js +36 -0
- 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 -0
- package/serialization/resources/billing/types/index.js +12 -0
- 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/companies/types/index.d.ts +0 -2
- package/serialization/resources/companies/types/index.js +0 -2
- 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/serialization/resources/components/types/PreviewComponentDataResponse.js +36 -0
- 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/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +14 -0
- package/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js +35 -0
- package/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +14 -0
- package/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.js +35 -0
- 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/client/requests/CreatePlanRequestBody.d.ts +0 -1
- package/serialization/resources/plans/client/requests/CreatePlanRequestBody.js +0 -1
- package/serialization/resources/plans/client/requests/UpdatePlanRequestBody.d.ts +0 -1
- package/serialization/resources/plans/client/requests/UpdatePlanRequestBody.js +0 -1
- 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/types/BillingCustomerSubscription.d.ts +1 -0
- package/serialization/types/BillingCustomerSubscription.js +1 -0
- package/serialization/types/BillingMeterResponseData.d.ts +16 -0
- package/{dist/serialization/types/CompanyPlanResponseData.js → serialization/types/BillingMeterResponseData.js} +6 -7
- package/serialization/types/BillingPriceResponseData.d.ts +1 -0
- package/serialization/types/BillingPriceResponseData.js +1 -0
- package/serialization/types/BillingProductForSubscriptionResponseData.d.ts +24 -0
- package/serialization/types/BillingProductForSubscriptionResponseData.js +45 -0
- package/serialization/types/BillingProductPricing.d.ts +3 -0
- package/serialization/types/BillingProductPricing.js +3 -0
- 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 -4
- package/serialization/types/CompanyDetailResponseData.js +7 -4
- package/serialization/types/CompanyPlanDetailResponseData.d.ts +32 -0
- package/serialization/types/CompanyPlanDetailResponseData.js +53 -0
- package/serialization/types/CompanyPlanWithBillingSubView.d.ts +18 -0
- package/serialization/types/CompanyPlanWithBillingSubView.js +39 -0
- package/serialization/types/CompanySubscriptionResponseData.d.ts +9 -2
- package/serialization/types/CompanySubscriptionResponseData.js +9 -2
- 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/types/MeterRequestBody.js +35 -0
- 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 -1
- package/serialization/types/PlanDetailResponseData.js +5 -1
- 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/PlanGroupResponseData.d.ts +15 -0
- package/serialization/types/PlanGroupResponseData.js +36 -0
- package/serialization/types/PlanResponseData.d.ts +1 -1
- package/serialization/types/PlanResponseData.js +1 -1
- 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 +15 -1
- package/serialization/types/index.js +15 -1
- package/wrapper.js +20 -15
- package/api/types/CompanyPlanResponseData.d.ts +0 -11
- package/dist/api/types/CompanyPlanResponseData.d.ts +0 -11
- package/dist/serialization/resources/companies/types/ListCompanyPlansResponse.d.ts +0 -15
- package/dist/serialization/resources/components/types/HydrateComponentResponse.d.ts +0 -14
- package/dist/serialization/types/CompanyPlanResponseData.d.ts +0 -17
- package/serialization/resources/companies/types/ListCompanyPlansResponse.d.ts +0 -15
- package/serialization/resources/companies/types/ListCompanyPlansResponse.js +0 -36
- package/serialization/resources/components/types/HydrateComponentResponse.d.ts +0 -14
- package/serialization/types/CompanyPlanResponseData.d.ts +0 -17
- /package/api/resources/{companies/client/requests/ListCompanyPlansRequest.js → billing/client/requests/CountBillingProductsRequest.js} +0 -0
- /package/api/resources/{companies/types/ListCompanyPlansParams.js → billing/client/requests/CreateInvoiceRequestBody.js} +0 -0
- /package/api/resources/{companies/types/ListCompanyPlansResponse.js → billing/client/requests/CreateMeterRequestBody.js} +0 -0
- /package/api/resources/{components/types/HydrateComponentResponse.js → billing/client/requests/CreatePaymentMethodRequestBody.js} +0 -0
- /package/api/{types/CompanyPlanResponseData.js → resources/billing/client/requests/ListInvoicesRequest.js} +0 -0
- /package/{dist/api/resources/companies/client/requests/ListCompanyPlansRequest.js → api/resources/billing/client/requests/ListMetersRequest.js} +0 -0
- /package/{dist/api/resources/companies/types/ListCompanyPlansParams.js → api/resources/billing/client/requests/ListPaymentMethodsRequest.js} +0 -0
- /package/{dist/api/resources/companies/types/ListCompanyPlansResponse.js → api/resources/billing/types/CountBillingProductsParams.js} +0 -0
- /package/{dist/api/resources/components/types/HydrateComponentResponse.js → api/resources/billing/types/CountBillingProductsResponse.js} +0 -0
- /package/{dist/api/types/CompanyPlanResponseData.js → api/resources/billing/types/DeleteProductPriceResponse.js} +0 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {}
|
|
7
|
+
*/
|
|
8
|
+
export interface CountBillingProductsRequest {
|
|
9
|
+
ids?: string | string[];
|
|
10
|
+
name?: string;
|
|
11
|
+
q?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Filter products that are not linked to any plan
|
|
14
|
+
*/
|
|
15
|
+
withoutLinkedToPlan?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Page limit (default 100)
|
|
18
|
+
*/
|
|
19
|
+
limit?: number;
|
|
20
|
+
/**
|
|
21
|
+
* Page offset (default 0)
|
|
22
|
+
*/
|
|
23
|
+
offset?: number;
|
|
24
|
+
}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* @example
|
|
6
6
|
* {
|
|
7
|
+
* currency: "currency",
|
|
7
8
|
* interval: "interval",
|
|
8
9
|
* price: 1,
|
|
9
10
|
* priceExternalId: "price_external_id",
|
|
@@ -11,6 +12,7 @@
|
|
|
11
12
|
* }
|
|
12
13
|
*/
|
|
13
14
|
export interface CreateBillingPriceRequestBody {
|
|
15
|
+
currency: string;
|
|
14
16
|
interval: string;
|
|
15
17
|
price: number;
|
|
16
18
|
priceExternalId: string;
|
package/dist/api/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts
CHANGED
|
@@ -5,10 +5,14 @@ import * as Schematic from "../../../../index";
|
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
|
+
* currency: "currency",
|
|
8
9
|
* customerExternalId: "customer_external_id",
|
|
9
|
-
* expiredAt:
|
|
10
|
+
* expiredAt: "2024-01-15T09:30:00Z",
|
|
10
11
|
* productExternalIds: [{
|
|
12
|
+
* currency: "currency",
|
|
13
|
+
* interval: "interval",
|
|
11
14
|
* price: 1,
|
|
15
|
+
* priceExternalId: "price_external_id",
|
|
12
16
|
* productExternalId: "product_external_id"
|
|
13
17
|
* }],
|
|
14
18
|
* subscriptionExternalId: "subscription_external_id",
|
|
@@ -16,10 +20,13 @@ import * as Schematic from "../../../../index";
|
|
|
16
20
|
* }
|
|
17
21
|
*/
|
|
18
22
|
export interface CreateBillingSubscriptionsRequestBody {
|
|
23
|
+
currency: string;
|
|
19
24
|
customerExternalId: string;
|
|
20
25
|
expiredAt: Date;
|
|
21
26
|
interval?: string;
|
|
22
27
|
metadata?: Record<string, unknown>;
|
|
28
|
+
periodEnd?: number;
|
|
29
|
+
periodStart?: number;
|
|
23
30
|
productExternalIds: Schematic.BillingProductPricing[];
|
|
24
31
|
status?: string;
|
|
25
32
|
subscriptionExternalId: string;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* amountDue: 1,
|
|
8
|
+
* amountPaid: 1,
|
|
9
|
+
* amountRemaining: 1,
|
|
10
|
+
* collectionMethod: "collection_method",
|
|
11
|
+
* currency: "currency",
|
|
12
|
+
* customerExternalId: "customer_external_id",
|
|
13
|
+
* subtotal: 1
|
|
14
|
+
* }
|
|
15
|
+
*/
|
|
16
|
+
export interface CreateInvoiceRequestBody {
|
|
17
|
+
amountDue: number;
|
|
18
|
+
amountPaid: number;
|
|
19
|
+
amountRemaining: number;
|
|
20
|
+
collectionMethod: string;
|
|
21
|
+
currency: string;
|
|
22
|
+
customerExternalId: string;
|
|
23
|
+
dueDate?: Date;
|
|
24
|
+
externalId?: string;
|
|
25
|
+
paymentMethodExternalId?: string;
|
|
26
|
+
subscriptionExternalId?: string;
|
|
27
|
+
subtotal: number;
|
|
28
|
+
url?: string;
|
|
29
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* displayName: "DisplayName",
|
|
8
|
+
* eventName: "EventName",
|
|
9
|
+
* eventPayloadKey: "EventPayloadKey",
|
|
10
|
+
* externalId: "external_id"
|
|
11
|
+
* }
|
|
12
|
+
*/
|
|
13
|
+
export interface CreateMeterRequestBody {
|
|
14
|
+
displayName: string;
|
|
15
|
+
eventName: string;
|
|
16
|
+
eventPayloadKey: string;
|
|
17
|
+
externalId: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* customerExternalId: "customer_external_id",
|
|
8
|
+
* externalId: "external_id",
|
|
9
|
+
* paymentMethodType: "payment_method_type"
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
export interface CreatePaymentMethodRequestBody {
|
|
13
|
+
accountLast4?: string;
|
|
14
|
+
accountName?: string;
|
|
15
|
+
bankName?: string;
|
|
16
|
+
billingEmail?: string;
|
|
17
|
+
billingName?: string;
|
|
18
|
+
cardBrand?: string;
|
|
19
|
+
cardExpMonth?: number;
|
|
20
|
+
cardExpYear?: number;
|
|
21
|
+
cardLast4?: string;
|
|
22
|
+
customerExternalId: string;
|
|
23
|
+
externalId: string;
|
|
24
|
+
paymentMethodType: string;
|
|
25
|
+
subscriptionExternalId?: string;
|
|
26
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* customerExternalId: "customer_external_id"
|
|
8
|
+
* }
|
|
9
|
+
*/
|
|
10
|
+
export interface ListInvoicesRequest {
|
|
11
|
+
companyId?: string;
|
|
12
|
+
customerExternalId: string;
|
|
13
|
+
subscriptionExternalId?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Page limit (default 100)
|
|
16
|
+
*/
|
|
17
|
+
limit?: number;
|
|
18
|
+
/**
|
|
19
|
+
* Page offset (default 0)
|
|
20
|
+
*/
|
|
21
|
+
offset?: number;
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* customerExternalId: "customer_external_id"
|
|
8
|
+
* }
|
|
9
|
+
*/
|
|
10
|
+
export interface ListPaymentMethodsRequest {
|
|
11
|
+
companyId?: string;
|
|
12
|
+
customerExternalId: string;
|
|
13
|
+
subscriptionExternalId?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Page limit (default 100)
|
|
16
|
+
*/
|
|
17
|
+
limit?: number;
|
|
18
|
+
/**
|
|
19
|
+
* Page offset (default 0)
|
|
20
|
+
*/
|
|
21
|
+
offset?: number;
|
|
22
|
+
}
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
export { type CreateBillingCustomerRequestBody } from "./CreateBillingCustomerRequestBody";
|
|
2
2
|
export { type ListCustomersRequest } from "./ListCustomersRequest";
|
|
3
3
|
export { type CountCustomersRequest } from "./CountCustomersRequest";
|
|
4
|
+
export { type ListInvoicesRequest } from "./ListInvoicesRequest";
|
|
5
|
+
export { type CreateInvoiceRequestBody } from "./CreateInvoiceRequestBody";
|
|
6
|
+
export { type ListMetersRequest } from "./ListMetersRequest";
|
|
7
|
+
export { type CreateMeterRequestBody } from "./CreateMeterRequestBody";
|
|
8
|
+
export { type ListPaymentMethodsRequest } from "./ListPaymentMethodsRequest";
|
|
9
|
+
export { type CreatePaymentMethodRequestBody } from "./CreatePaymentMethodRequestBody";
|
|
4
10
|
export { type CreateBillingPriceRequestBody } from "./CreateBillingPriceRequestBody";
|
|
5
11
|
export { type ListProductPricesRequest } from "./ListProductPricesRequest";
|
|
6
12
|
export { type CreateBillingProductRequestBody } from "./CreateBillingProductRequestBody";
|
|
7
13
|
export { type ListBillingProductsRequest } from "./ListBillingProductsRequest";
|
|
14
|
+
export { type CountBillingProductsRequest } from "./CountBillingProductsRequest";
|
|
8
15
|
export { type CreateBillingSubscriptionsRequestBody } from "./CreateBillingSubscriptionsRequestBody";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Input parameters
|
|
6
|
+
*/
|
|
7
|
+
export interface CountBillingProductsParams {
|
|
8
|
+
ids?: string[];
|
|
9
|
+
/** Page limit (default 100) */
|
|
10
|
+
limit?: number;
|
|
11
|
+
name?: string;
|
|
12
|
+
/** Page offset (default 0) */
|
|
13
|
+
offset?: number;
|
|
14
|
+
q?: string;
|
|
15
|
+
/** Filter products that are not linked to any plan */
|
|
16
|
+
withoutLinkedToPlan?: boolean;
|
|
17
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Schematic from "../../../index";
|
|
5
|
+
export interface CountBillingProductsResponse {
|
|
6
|
+
data: Schematic.CountResponse;
|
|
7
|
+
/** Input parameters */
|
|
8
|
+
params: Schematic.CountBillingProductsParams;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Schematic from "../../../index";
|
|
5
|
+
export interface DeleteProductPriceResponse {
|
|
6
|
+
data: Schematic.DeleteResponse;
|
|
7
|
+
/** Input parameters */
|
|
8
|
+
params: Record<string, unknown>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Input parameters
|
|
6
|
+
*/
|
|
7
|
+
export interface ListInvoicesParams {
|
|
8
|
+
companyId?: string;
|
|
9
|
+
customerExternalId?: string;
|
|
10
|
+
/** Page limit (default 100) */
|
|
11
|
+
limit?: number;
|
|
12
|
+
/** Page offset (default 0) */
|
|
13
|
+
offset?: number;
|
|
14
|
+
subscriptionExternalId?: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Schematic from "../../../index";
|
|
5
|
+
export interface ListInvoicesResponse {
|
|
6
|
+
/** The returned resources */
|
|
7
|
+
data: Schematic.InvoiceResponseData[];
|
|
8
|
+
/** Input parameters */
|
|
9
|
+
params: Schematic.ListInvoicesParams;
|
|
10
|
+
}
|
|
@@ -4,11 +4,10 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Input parameters
|
|
6
6
|
*/
|
|
7
|
-
export interface
|
|
8
|
-
|
|
7
|
+
export interface ListMetersParams {
|
|
8
|
+
displayName?: string;
|
|
9
9
|
/** Page limit (default 100) */
|
|
10
10
|
limit?: number;
|
|
11
11
|
/** Page offset (default 0) */
|
|
12
12
|
offset?: number;
|
|
13
|
-
planId?: string;
|
|
14
13
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Schematic from "../../../index";
|
|
5
|
+
export interface ListMetersResponse {
|
|
6
|
+
/** The returned resources */
|
|
7
|
+
data: Schematic.BillingMeterResponseData[];
|
|
8
|
+
/** Input parameters */
|
|
9
|
+
params: Schematic.ListMetersParams;
|
|
10
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Input parameters
|
|
6
|
+
*/
|
|
7
|
+
export interface ListPaymentMethodsParams {
|
|
8
|
+
companyId?: string;
|
|
9
|
+
customerExternalId?: string;
|
|
10
|
+
/** Page limit (default 100) */
|
|
11
|
+
limit?: number;
|
|
12
|
+
/** Page offset (default 0) */
|
|
13
|
+
offset?: number;
|
|
14
|
+
subscriptionExternalId?: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Schematic from "../../../index";
|
|
5
|
+
export interface ListPaymentMethodsResponse {
|
|
6
|
+
/** The returned resources */
|
|
7
|
+
data: Schematic.PaymentMethodResponseData[];
|
|
8
|
+
/** Input parameters */
|
|
9
|
+
params: Schematic.ListPaymentMethodsParams;
|
|
10
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Schematic from "../../../index";
|
|
5
|
+
export interface UpsertBillingMeterResponse {
|
|
6
|
+
data: Schematic.BillingMeterResponseData;
|
|
7
|
+
/** Input parameters */
|
|
8
|
+
params: Record<string, unknown>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Schematic from "../../../index";
|
|
5
|
+
export interface UpsertInvoiceResponse {
|
|
6
|
+
data: Schematic.InvoiceResponseData;
|
|
7
|
+
/** Input parameters */
|
|
8
|
+
params: Record<string, unknown>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Schematic from "../../../index";
|
|
5
|
+
export interface UpsertPaymentMethodResponse {
|
|
6
|
+
data: Schematic.PaymentMethodResponseData;
|
|
7
|
+
/** Input parameters */
|
|
8
|
+
params: Record<string, unknown>;
|
|
9
|
+
}
|
|
@@ -3,10 +3,22 @@ export * from "./ListCustomersParams";
|
|
|
3
3
|
export * from "./ListCustomersResponse";
|
|
4
4
|
export * from "./CountCustomersParams";
|
|
5
5
|
export * from "./CountCustomersResponse";
|
|
6
|
+
export * from "./ListInvoicesParams";
|
|
7
|
+
export * from "./ListInvoicesResponse";
|
|
8
|
+
export * from "./UpsertInvoiceResponse";
|
|
9
|
+
export * from "./ListMetersParams";
|
|
10
|
+
export * from "./ListMetersResponse";
|
|
11
|
+
export * from "./UpsertBillingMeterResponse";
|
|
12
|
+
export * from "./ListPaymentMethodsParams";
|
|
13
|
+
export * from "./ListPaymentMethodsResponse";
|
|
14
|
+
export * from "./UpsertPaymentMethodResponse";
|
|
6
15
|
export * from "./UpsertBillingPriceResponse";
|
|
7
16
|
export * from "./ListProductPricesParams";
|
|
8
17
|
export * from "./ListProductPricesResponse";
|
|
18
|
+
export * from "./DeleteProductPriceResponse";
|
|
9
19
|
export * from "./UpsertBillingProductResponse";
|
|
10
20
|
export * from "./ListBillingProductsParams";
|
|
11
21
|
export * from "./ListBillingProductsResponse";
|
|
22
|
+
export * from "./CountBillingProductsParams";
|
|
23
|
+
export * from "./CountBillingProductsResponse";
|
|
12
24
|
export * from "./UpsertBillingSubscriptionResponse";
|
|
@@ -19,10 +19,22 @@ __exportStar(require("./ListCustomersParams"), exports);
|
|
|
19
19
|
__exportStar(require("./ListCustomersResponse"), exports);
|
|
20
20
|
__exportStar(require("./CountCustomersParams"), exports);
|
|
21
21
|
__exportStar(require("./CountCustomersResponse"), exports);
|
|
22
|
+
__exportStar(require("./ListInvoicesParams"), exports);
|
|
23
|
+
__exportStar(require("./ListInvoicesResponse"), exports);
|
|
24
|
+
__exportStar(require("./UpsertInvoiceResponse"), exports);
|
|
25
|
+
__exportStar(require("./ListMetersParams"), exports);
|
|
26
|
+
__exportStar(require("./ListMetersResponse"), exports);
|
|
27
|
+
__exportStar(require("./UpsertBillingMeterResponse"), exports);
|
|
28
|
+
__exportStar(require("./ListPaymentMethodsParams"), exports);
|
|
29
|
+
__exportStar(require("./ListPaymentMethodsResponse"), exports);
|
|
30
|
+
__exportStar(require("./UpsertPaymentMethodResponse"), exports);
|
|
22
31
|
__exportStar(require("./UpsertBillingPriceResponse"), exports);
|
|
23
32
|
__exportStar(require("./ListProductPricesParams"), exports);
|
|
24
33
|
__exportStar(require("./ListProductPricesResponse"), exports);
|
|
34
|
+
__exportStar(require("./DeleteProductPriceResponse"), exports);
|
|
25
35
|
__exportStar(require("./UpsertBillingProductResponse"), exports);
|
|
26
36
|
__exportStar(require("./ListBillingProductsParams"), exports);
|
|
27
37
|
__exportStar(require("./ListBillingProductsResponse"), exports);
|
|
38
|
+
__exportStar(require("./CountBillingProductsParams"), exports);
|
|
39
|
+
__exportStar(require("./CountBillingProductsResponse"), exports);
|
|
28
40
|
__exportStar(require("./UpsertBillingSubscriptionResponse"), exports);
|
|
@@ -202,19 +202,6 @@ export declare class Companies {
|
|
|
202
202
|
* await client.companies.deleteCompanyMembership("company_membership_id")
|
|
203
203
|
*/
|
|
204
204
|
deleteCompanyMembership(companyMembershipId: string, requestOptions?: Companies.RequestOptions): Promise<Schematic.DeleteCompanyMembershipResponse>;
|
|
205
|
-
/**
|
|
206
|
-
* @param {Schematic.ListCompanyPlansRequest} request
|
|
207
|
-
* @param {Companies.RequestOptions} requestOptions - Request-specific configuration.
|
|
208
|
-
*
|
|
209
|
-
* @throws {@link Schematic.BadRequestError}
|
|
210
|
-
* @throws {@link Schematic.UnauthorizedError}
|
|
211
|
-
* @throws {@link Schematic.ForbiddenError}
|
|
212
|
-
* @throws {@link Schematic.InternalServerError}
|
|
213
|
-
*
|
|
214
|
-
* @example
|
|
215
|
-
* await client.companies.listCompanyPlans()
|
|
216
|
-
*/
|
|
217
|
-
listCompanyPlans(request?: Schematic.ListCompanyPlansRequest, requestOptions?: Companies.RequestOptions): Promise<Schematic.ListCompanyPlansResponse>;
|
|
218
205
|
/**
|
|
219
206
|
* @param {Schematic.GetActiveCompanySubscriptionRequest} request
|
|
220
207
|
* @param {Companies.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -298,9 +285,9 @@ export declare class Companies {
|
|
|
298
285
|
*
|
|
299
286
|
* @example
|
|
300
287
|
* await client.companies.getOrCreateEntityTraitDefinition({
|
|
301
|
-
* entityType:
|
|
288
|
+
* entityType: "company",
|
|
302
289
|
* hierarchy: ["hierarchy"],
|
|
303
|
-
* traitType:
|
|
290
|
+
* traitType: "boolean"
|
|
304
291
|
* })
|
|
305
292
|
*/
|
|
306
293
|
getOrCreateEntityTraitDefinition(request: Schematic.CreateEntityTraitDefinitionRequestBody, requestOptions?: Companies.RequestOptions): Promise<Schematic.GetOrCreateEntityTraitDefinitionResponse>;
|
|
@@ -330,7 +317,7 @@ export declare class Companies {
|
|
|
330
317
|
*
|
|
331
318
|
* @example
|
|
332
319
|
* await client.companies.updateEntityTraitDefinition("entity_trait_definition_id", {
|
|
333
|
-
* traitType:
|
|
320
|
+
* traitType: "boolean"
|
|
334
321
|
* })
|
|
335
322
|
*/
|
|
336
323
|
updateEntityTraitDefinition(entityTraitDefinitionId: string, request: Schematic.UpdateEntityTraitDefinitionRequestBody, requestOptions?: Companies.RequestOptions): Promise<Schematic.UpdateEntityTraitDefinitionResponse>;
|