@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
|
@@ -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.UpdatePlanGroupResponse = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
const PlanGroupResponseData_1 = require("../../../types/PlanGroupResponseData");
|
|
32
|
+
exports.UpdatePlanGroupResponse = core.serialization.object({
|
|
33
|
+
data: PlanGroupResponseData_1.PlanGroupResponseData,
|
|
34
|
+
params: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
|
|
35
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./GetPlanGroupResponse"), exports);
|
|
18
|
+
__exportStar(require("./CreatePlanGroupResponse"), exports);
|
|
19
|
+
__exportStar(require("./UpdatePlanGroupResponse"), exports);
|
|
@@ -9,11 +9,13 @@ export declare const CountPlansParams: core.serialization.ObjectSchema<serialize
|
|
|
9
9
|
export declare namespace CountPlansParams {
|
|
10
10
|
interface Raw {
|
|
11
11
|
company_id?: string | null;
|
|
12
|
+
has_product_id?: boolean | null;
|
|
12
13
|
ids?: string[] | null;
|
|
13
14
|
limit?: number | null;
|
|
14
15
|
offset?: number | null;
|
|
15
16
|
plan_type?: CountPlansResponseParamsPlanType.Raw | null;
|
|
16
17
|
q?: string | null;
|
|
17
18
|
without_entitlement_for?: string | null;
|
|
19
|
+
without_product_id?: boolean | null;
|
|
18
20
|
}
|
|
19
21
|
}
|
|
@@ -31,10 +31,12 @@ const core = __importStar(require("../../../../core"));
|
|
|
31
31
|
const CountPlansResponseParamsPlanType_1 = require("./CountPlansResponseParamsPlanType");
|
|
32
32
|
exports.CountPlansParams = core.serialization.object({
|
|
33
33
|
companyId: core.serialization.property("company_id", core.serialization.string().optional()),
|
|
34
|
+
hasProductId: core.serialization.property("has_product_id", core.serialization.boolean().optional()),
|
|
34
35
|
ids: core.serialization.list(core.serialization.string()).optional(),
|
|
35
36
|
limit: core.serialization.number().optional(),
|
|
36
37
|
offset: core.serialization.number().optional(),
|
|
37
38
|
planType: core.serialization.property("plan_type", CountPlansResponseParamsPlanType_1.CountPlansResponseParamsPlanType.optional()),
|
|
38
39
|
q: core.serialization.string().optional(),
|
|
39
40
|
withoutEntitlementFor: core.serialization.property("without_entitlement_for", core.serialization.string().optional()),
|
|
41
|
+
withoutProductId: core.serialization.property("without_product_id", core.serialization.boolean().optional()),
|
|
40
42
|
});
|
|
@@ -9,11 +9,13 @@ export declare const ListPlansParams: core.serialization.ObjectSchema<serializer
|
|
|
9
9
|
export declare namespace ListPlansParams {
|
|
10
10
|
interface Raw {
|
|
11
11
|
company_id?: string | null;
|
|
12
|
+
has_product_id?: boolean | null;
|
|
12
13
|
ids?: string[] | null;
|
|
13
14
|
limit?: number | null;
|
|
14
15
|
offset?: number | null;
|
|
15
16
|
plan_type?: ListPlansResponseParamsPlanType.Raw | null;
|
|
16
17
|
q?: string | null;
|
|
17
18
|
without_entitlement_for?: string | null;
|
|
19
|
+
without_product_id?: boolean | null;
|
|
18
20
|
}
|
|
19
21
|
}
|
|
@@ -31,10 +31,12 @@ const core = __importStar(require("../../../../core"));
|
|
|
31
31
|
const ListPlansResponseParamsPlanType_1 = require("./ListPlansResponseParamsPlanType");
|
|
32
32
|
exports.ListPlansParams = core.serialization.object({
|
|
33
33
|
companyId: core.serialization.property("company_id", core.serialization.string().optional()),
|
|
34
|
+
hasProductId: core.serialization.property("has_product_id", core.serialization.boolean().optional()),
|
|
34
35
|
ids: core.serialization.list(core.serialization.string()).optional(),
|
|
35
36
|
limit: core.serialization.number().optional(),
|
|
36
37
|
offset: core.serialization.number().optional(),
|
|
37
38
|
planType: core.serialization.property("plan_type", ListPlansResponseParamsPlanType_1.ListPlansResponseParamsPlanType.optional()),
|
|
38
39
|
q: core.serialization.string().optional(),
|
|
39
40
|
withoutEntitlementFor: core.serialization.property("without_entitlement_for", core.serialization.string().optional()),
|
|
41
|
+
withoutProductId: core.serialization.property("without_product_id", core.serialization.boolean().optional()),
|
|
40
42
|
});
|
|
@@ -11,7 +11,6 @@ export * from "./GetPlanResponse";
|
|
|
11
11
|
export * from "./UpdatePlanResponse";
|
|
12
12
|
export * from "./DeletePlanResponse";
|
|
13
13
|
export * from "./UpsertBillingProductPlanResponse";
|
|
14
|
-
export * from "./ListActivePlansResponse";
|
|
15
14
|
export * from "./CountPlansRequestPlanType";
|
|
16
15
|
export * from "./CountPlansResponseParamsPlanType";
|
|
17
16
|
export * from "./CountPlansParams";
|
|
@@ -27,7 +27,6 @@ __exportStar(require("./GetPlanResponse"), exports);
|
|
|
27
27
|
__exportStar(require("./UpdatePlanResponse"), exports);
|
|
28
28
|
__exportStar(require("./DeletePlanResponse"), exports);
|
|
29
29
|
__exportStar(require("./UpsertBillingProductPlanResponse"), exports);
|
|
30
|
-
__exportStar(require("./ListActivePlansResponse"), exports);
|
|
31
30
|
__exportStar(require("./CountPlansRequestPlanType"), exports);
|
|
32
31
|
__exportStar(require("./CountPlansResponseParamsPlanType"), exports);
|
|
33
32
|
__exportStar(require("./CountPlansParams"), exports);
|
|
@@ -7,6 +7,7 @@ import * as core from "../../core";
|
|
|
7
7
|
export declare const BillingCustomerSubscription: core.serialization.ObjectSchema<serializers.BillingCustomerSubscription.Raw, Schematic.BillingCustomerSubscription>;
|
|
8
8
|
export declare namespace BillingCustomerSubscription {
|
|
9
9
|
interface Raw {
|
|
10
|
+
currency: string;
|
|
10
11
|
expired_at?: string | null;
|
|
11
12
|
total_price: number;
|
|
12
13
|
}
|
|
@@ -29,6 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.BillingCustomerSubscription = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
exports.BillingCustomerSubscription = core.serialization.object({
|
|
32
|
+
currency: core.serialization.string(),
|
|
32
33
|
expiredAt: core.serialization.property("expired_at", core.serialization.date().optional()),
|
|
33
34
|
totalPrice: core.serialization.property("total_price", core.serialization.number()),
|
|
34
35
|
});
|
|
@@ -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 BillingMeterResponseData: core.serialization.ObjectSchema<serializers.BillingMeterResponseData.Raw, Schematic.BillingMeterResponseData>;
|
|
8
|
+
export declare namespace BillingMeterResponseData {
|
|
9
|
+
interface Raw {
|
|
10
|
+
dispaly_name: string;
|
|
11
|
+
event_name: string;
|
|
12
|
+
event_payload_key: string;
|
|
13
|
+
external_price_id: string;
|
|
14
|
+
id: string;
|
|
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.BillingMeterResponseData = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.BillingMeterResponseData = core.serialization.object({
|
|
32
|
+
dispalyName: core.serialization.property("dispaly_name", core.serialization.string()),
|
|
33
|
+
eventName: core.serialization.property("event_name", core.serialization.string()),
|
|
34
|
+
eventPayloadKey: core.serialization.property("event_payload_key", core.serialization.string()),
|
|
35
|
+
externalPriceId: core.serialization.property("external_price_id", core.serialization.string()),
|
|
36
|
+
id: core.serialization.string(),
|
|
37
|
+
});
|
|
@@ -7,6 +7,7 @@ import * as core from "../../core";
|
|
|
7
7
|
export declare const BillingPriceResponseData: core.serialization.ObjectSchema<serializers.BillingPriceResponseData.Raw, Schematic.BillingPriceResponseData>;
|
|
8
8
|
export declare namespace BillingPriceResponseData {
|
|
9
9
|
interface Raw {
|
|
10
|
+
currency: string;
|
|
10
11
|
external_price_id: string;
|
|
11
12
|
id: string;
|
|
12
13
|
interval: string;
|
|
@@ -29,6 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.BillingPriceResponseData = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
exports.BillingPriceResponseData = core.serialization.object({
|
|
32
|
+
currency: core.serialization.string(),
|
|
32
33
|
externalPriceId: core.serialization.property("external_price_id", core.serialization.string()),
|
|
33
34
|
id: core.serialization.string(),
|
|
34
35
|
interval: core.serialization.string(),
|
|
@@ -13,10 +13,12 @@ export declare namespace BillingProductForSubscriptionResponseData {
|
|
|
13
13
|
environment_id: string;
|
|
14
14
|
external_id: string;
|
|
15
15
|
id: string;
|
|
16
|
-
interval
|
|
16
|
+
interval: string;
|
|
17
17
|
name: string;
|
|
18
18
|
price: number;
|
|
19
|
+
price_external_id: string;
|
|
19
20
|
quantity: number;
|
|
21
|
+
subscription_id: string;
|
|
20
22
|
updated_at: string;
|
|
21
23
|
}
|
|
22
24
|
}
|
|
@@ -35,9 +35,11 @@ exports.BillingProductForSubscriptionResponseData = core.serialization.object({
|
|
|
35
35
|
environmentId: core.serialization.property("environment_id", core.serialization.string()),
|
|
36
36
|
externalId: core.serialization.property("external_id", core.serialization.string()),
|
|
37
37
|
id: core.serialization.string(),
|
|
38
|
-
interval: core.serialization.string()
|
|
38
|
+
interval: core.serialization.string(),
|
|
39
39
|
name: core.serialization.string(),
|
|
40
40
|
price: core.serialization.number(),
|
|
41
|
+
priceExternalId: core.serialization.property("price_external_id", core.serialization.string()),
|
|
41
42
|
quantity: core.serialization.number(),
|
|
43
|
+
subscriptionId: core.serialization.property("subscription_id", core.serialization.string()),
|
|
42
44
|
updatedAt: core.serialization.property("updated_at", core.serialization.date()),
|
|
43
45
|
});
|
|
@@ -7,9 +7,10 @@ import * as core from "../../core";
|
|
|
7
7
|
export declare const BillingProductPricing: core.serialization.ObjectSchema<serializers.BillingProductPricing.Raw, Schematic.BillingProductPricing>;
|
|
8
8
|
export declare namespace BillingProductPricing {
|
|
9
9
|
interface Raw {
|
|
10
|
-
|
|
10
|
+
currency: string;
|
|
11
|
+
interval: string;
|
|
11
12
|
price: number;
|
|
12
|
-
price_external_id
|
|
13
|
+
price_external_id: string;
|
|
13
14
|
product_external_id: string;
|
|
14
15
|
}
|
|
15
16
|
}
|
|
@@ -29,8 +29,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.BillingProductPricing = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
exports.BillingProductPricing = core.serialization.object({
|
|
32
|
-
|
|
32
|
+
currency: core.serialization.string(),
|
|
33
|
+
interval: core.serialization.string(),
|
|
33
34
|
price: core.serialization.number(),
|
|
34
|
-
priceExternalId: core.serialization.property("price_external_id", core.serialization.string()
|
|
35
|
+
priceExternalId: core.serialization.property("price_external_id", core.serialization.string()),
|
|
35
36
|
productExternalId: core.serialization.property("product_external_id", core.serialization.string()),
|
|
36
37
|
});
|
|
@@ -7,9 +7,12 @@ import * as core from "../../core";
|
|
|
7
7
|
export declare const BillingSubscriptionResponseData: core.serialization.ObjectSchema<serializers.BillingSubscriptionResponseData.Raw, Schematic.BillingSubscriptionResponseData>;
|
|
8
8
|
export declare namespace BillingSubscriptionResponseData {
|
|
9
9
|
interface Raw {
|
|
10
|
+
currency: string;
|
|
10
11
|
expired_at?: string | null;
|
|
11
12
|
external_id: string;
|
|
12
|
-
id:
|
|
13
|
+
id: string;
|
|
14
|
+
interval: string;
|
|
15
|
+
total_price: number;
|
|
13
16
|
updated_at: string;
|
|
14
17
|
}
|
|
15
18
|
}
|
|
@@ -29,8 +29,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.BillingSubscriptionResponseData = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
exports.BillingSubscriptionResponseData = core.serialization.object({
|
|
32
|
+
currency: core.serialization.string(),
|
|
32
33
|
expiredAt: core.serialization.property("expired_at", core.serialization.date().optional()),
|
|
33
34
|
externalId: core.serialization.property("external_id", core.serialization.string()),
|
|
34
|
-
id: core.serialization.
|
|
35
|
+
id: core.serialization.string(),
|
|
36
|
+
interval: core.serialization.string(),
|
|
37
|
+
totalPrice: core.serialization.property("total_price", core.serialization.number()),
|
|
35
38
|
updatedAt: core.serialization.property("updated_at", core.serialization.date()),
|
|
36
39
|
});
|
|
@@ -7,7 +7,7 @@ import * as core from "../../core";
|
|
|
7
7
|
export declare const CheckFlagRequestBody: core.serialization.ObjectSchema<serializers.CheckFlagRequestBody.Raw, Schematic.CheckFlagRequestBody>;
|
|
8
8
|
export declare namespace CheckFlagRequestBody {
|
|
9
9
|
interface Raw {
|
|
10
|
-
company?: Record<string, string
|
|
11
|
-
user?: Record<string, string
|
|
10
|
+
company?: Record<string, string> | null;
|
|
11
|
+
user?: Record<string, string> | null;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -29,6 +29,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.CheckFlagRequestBody = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
exports.CheckFlagRequestBody = core.serialization.object({
|
|
32
|
-
company: core.serialization.record(core.serialization.string(), core.serialization.string()
|
|
33
|
-
user: core.serialization.record(core.serialization.string(), core.serialization.string()
|
|
32
|
+
company: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(),
|
|
33
|
+
user: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(),
|
|
34
34
|
});
|
|
@@ -4,14 +4,16 @@
|
|
|
4
4
|
import * as serializers from "../index";
|
|
5
5
|
import * as Schematic from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
-
import {
|
|
7
|
+
import { CompanyPlanWithBillingSubView } from "./CompanyPlanWithBillingSubView";
|
|
8
|
+
import { BillingSubscriptionResponseData } from "./BillingSubscriptionResponseData";
|
|
8
9
|
import { EntityTraitDetailResponseData } from "./EntityTraitDetailResponseData";
|
|
9
10
|
import { EntityKeyDetailResponseData } from "./EntityKeyDetailResponseData";
|
|
10
|
-
import {
|
|
11
|
+
import { GenericPreviewObject } from "./GenericPreviewObject";
|
|
11
12
|
export declare const CompanyDetailResponseData: core.serialization.ObjectSchema<serializers.CompanyDetailResponseData.Raw, Schematic.CompanyDetailResponseData>;
|
|
12
13
|
export declare namespace CompanyDetailResponseData {
|
|
13
14
|
interface Raw {
|
|
14
|
-
add_ons:
|
|
15
|
+
add_ons: CompanyPlanWithBillingSubView.Raw[];
|
|
16
|
+
billing_subscriptions: BillingSubscriptionResponseData.Raw[];
|
|
15
17
|
created_at: string;
|
|
16
18
|
entity_traits: EntityTraitDetailResponseData.Raw[];
|
|
17
19
|
environment_id: string;
|
|
@@ -20,8 +22,8 @@ export declare namespace CompanyDetailResponseData {
|
|
|
20
22
|
last_seen_at?: string | null;
|
|
21
23
|
logo_url?: string | null;
|
|
22
24
|
name: string;
|
|
23
|
-
plan?:
|
|
24
|
-
plans:
|
|
25
|
+
plan?: CompanyPlanWithBillingSubView.Raw | null;
|
|
26
|
+
plans: GenericPreviewObject.Raw[];
|
|
25
27
|
traits?: Record<string, unknown> | null;
|
|
26
28
|
updated_at: string;
|
|
27
29
|
user_count: number;
|
|
@@ -28,12 +28,14 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.CompanyDetailResponseData = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
const
|
|
31
|
+
const CompanyPlanWithBillingSubView_1 = require("./CompanyPlanWithBillingSubView");
|
|
32
|
+
const BillingSubscriptionResponseData_1 = require("./BillingSubscriptionResponseData");
|
|
32
33
|
const EntityTraitDetailResponseData_1 = require("./EntityTraitDetailResponseData");
|
|
33
34
|
const EntityKeyDetailResponseData_1 = require("./EntityKeyDetailResponseData");
|
|
34
|
-
const
|
|
35
|
+
const GenericPreviewObject_1 = require("./GenericPreviewObject");
|
|
35
36
|
exports.CompanyDetailResponseData = core.serialization.object({
|
|
36
|
-
addOns: core.serialization.property("add_ons", core.serialization.list(
|
|
37
|
+
addOns: core.serialization.property("add_ons", core.serialization.list(CompanyPlanWithBillingSubView_1.CompanyPlanWithBillingSubView)),
|
|
38
|
+
billingSubscriptions: core.serialization.property("billing_subscriptions", core.serialization.list(BillingSubscriptionResponseData_1.BillingSubscriptionResponseData)),
|
|
37
39
|
createdAt: core.serialization.property("created_at", core.serialization.date()),
|
|
38
40
|
entityTraits: core.serialization.property("entity_traits", core.serialization.list(EntityTraitDetailResponseData_1.EntityTraitDetailResponseData)),
|
|
39
41
|
environmentId: core.serialization.property("environment_id", core.serialization.string()),
|
|
@@ -42,8 +44,8 @@ exports.CompanyDetailResponseData = core.serialization.object({
|
|
|
42
44
|
lastSeenAt: core.serialization.property("last_seen_at", core.serialization.date().optional()),
|
|
43
45
|
logoUrl: core.serialization.property("logo_url", core.serialization.string().optional()),
|
|
44
46
|
name: core.serialization.string(),
|
|
45
|
-
plan:
|
|
46
|
-
plans: core.serialization.list(
|
|
47
|
+
plan: CompanyPlanWithBillingSubView_1.CompanyPlanWithBillingSubView.optional(),
|
|
48
|
+
plans: core.serialization.list(GenericPreviewObject_1.GenericPreviewObject),
|
|
47
49
|
traits: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
|
|
48
50
|
updatedAt: core.serialization.property("updated_at", core.serialization.date()),
|
|
49
51
|
userCount: core.serialization.property("user_count", core.serialization.number()),
|
|
@@ -0,0 +1,32 @@
|
|
|
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 { BillingProductDetailResponseData } from "./BillingProductDetailResponseData";
|
|
8
|
+
import { PlanEntitlementResponseData } from "./PlanEntitlementResponseData";
|
|
9
|
+
import { FeatureDetailResponseData } from "./FeatureDetailResponseData";
|
|
10
|
+
import { BillingPriceResponseData } from "./BillingPriceResponseData";
|
|
11
|
+
export declare const CompanyPlanDetailResponseData: core.serialization.ObjectSchema<serializers.CompanyPlanDetailResponseData.Raw, Schematic.CompanyPlanDetailResponseData>;
|
|
12
|
+
export declare namespace CompanyPlanDetailResponseData {
|
|
13
|
+
interface Raw {
|
|
14
|
+
audience_type?: string | null;
|
|
15
|
+
billing_product?: BillingProductDetailResponseData.Raw | null;
|
|
16
|
+
company_count: number;
|
|
17
|
+
created_at: string;
|
|
18
|
+
current: boolean;
|
|
19
|
+
description: string;
|
|
20
|
+
entitlements: PlanEntitlementResponseData.Raw[];
|
|
21
|
+
features: FeatureDetailResponseData.Raw[];
|
|
22
|
+
icon: string;
|
|
23
|
+
id: string;
|
|
24
|
+
is_default: boolean;
|
|
25
|
+
monthly_price?: BillingPriceResponseData.Raw | null;
|
|
26
|
+
name: string;
|
|
27
|
+
plan_type: string;
|
|
28
|
+
updated_at: string;
|
|
29
|
+
valid: boolean;
|
|
30
|
+
yearly_price?: BillingPriceResponseData.Raw | null;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
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.CompanyPlanDetailResponseData = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
const BillingProductDetailResponseData_1 = require("./BillingProductDetailResponseData");
|
|
32
|
+
const PlanEntitlementResponseData_1 = require("./PlanEntitlementResponseData");
|
|
33
|
+
const FeatureDetailResponseData_1 = require("./FeatureDetailResponseData");
|
|
34
|
+
const BillingPriceResponseData_1 = require("./BillingPriceResponseData");
|
|
35
|
+
exports.CompanyPlanDetailResponseData = core.serialization.object({
|
|
36
|
+
audienceType: core.serialization.property("audience_type", core.serialization.string().optional()),
|
|
37
|
+
billingProduct: core.serialization.property("billing_product", BillingProductDetailResponseData_1.BillingProductDetailResponseData.optional()),
|
|
38
|
+
companyCount: core.serialization.property("company_count", core.serialization.number()),
|
|
39
|
+
createdAt: core.serialization.property("created_at", core.serialization.date()),
|
|
40
|
+
current: core.serialization.boolean(),
|
|
41
|
+
description: core.serialization.string(),
|
|
42
|
+
entitlements: core.serialization.list(PlanEntitlementResponseData_1.PlanEntitlementResponseData),
|
|
43
|
+
features: core.serialization.list(FeatureDetailResponseData_1.FeatureDetailResponseData),
|
|
44
|
+
icon: core.serialization.string(),
|
|
45
|
+
id: core.serialization.string(),
|
|
46
|
+
isDefault: core.serialization.property("is_default", core.serialization.boolean()),
|
|
47
|
+
monthlyPrice: core.serialization.property("monthly_price", BillingPriceResponseData_1.BillingPriceResponseData.optional()),
|
|
48
|
+
name: core.serialization.string(),
|
|
49
|
+
planType: core.serialization.property("plan_type", core.serialization.string()),
|
|
50
|
+
updatedAt: core.serialization.property("updated_at", core.serialization.date()),
|
|
51
|
+
valid: core.serialization.boolean(),
|
|
52
|
+
yearlyPrice: core.serialization.property("yearly_price", BillingPriceResponseData_1.BillingPriceResponseData.optional()),
|
|
53
|
+
});
|
|
@@ -4,9 +4,10 @@
|
|
|
4
4
|
import * as serializers from "../index";
|
|
5
5
|
import * as Schematic from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
-
export declare const
|
|
8
|
-
export declare namespace
|
|
7
|
+
export declare const CompanyPlanWithBillingSubView: core.serialization.ObjectSchema<serializers.CompanyPlanWithBillingSubView.Raw, Schematic.CompanyPlanWithBillingSubView>;
|
|
8
|
+
export declare namespace CompanyPlanWithBillingSubView {
|
|
9
9
|
interface Raw {
|
|
10
|
+
billing_product_id?: string | null;
|
|
10
11
|
description?: string | null;
|
|
11
12
|
id: string;
|
|
12
13
|
image_url?: string | null;
|
|
@@ -26,9 +26,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.CompanyPlanWithBillingSubView = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
exports.
|
|
31
|
+
exports.CompanyPlanWithBillingSubView = core.serialization.object({
|
|
32
|
+
billingProductId: core.serialization.property("billing_product_id", core.serialization.string().optional()),
|
|
32
33
|
description: core.serialization.string().optional(),
|
|
33
34
|
id: core.serialization.string(),
|
|
34
35
|
imageUrl: core.serialization.property("image_url", core.serialization.string().optional()),
|
|
@@ -4,14 +4,21 @@
|
|
|
4
4
|
import * as serializers from "../index";
|
|
5
5
|
import * as Schematic from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
+
import { InvoiceResponseData } from "./InvoiceResponseData";
|
|
8
|
+
import { PaymentMethodResponseData } from "./PaymentMethodResponseData";
|
|
7
9
|
import { BillingProductForSubscriptionResponseData } from "./BillingProductForSubscriptionResponseData";
|
|
8
10
|
export declare const CompanySubscriptionResponseData: core.serialization.ObjectSchema<serializers.CompanySubscriptionResponseData.Raw, Schematic.CompanySubscriptionResponseData>;
|
|
9
11
|
export declare namespace CompanySubscriptionResponseData {
|
|
10
12
|
interface Raw {
|
|
13
|
+
currency: string;
|
|
11
14
|
customer_external_id: string;
|
|
12
15
|
expired_at?: string | null;
|
|
13
16
|
interval: string;
|
|
17
|
+
latest_invoice?: InvoiceResponseData.Raw | null;
|
|
18
|
+
payment_method?: PaymentMethodResponseData.Raw | null;
|
|
14
19
|
products: BillingProductForSubscriptionResponseData.Raw[];
|
|
20
|
+
status: string;
|
|
15
21
|
subscription_external_id: string;
|
|
22
|
+
total_price: number;
|
|
16
23
|
}
|
|
17
24
|
}
|
|
@@ -28,11 +28,18 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.CompanySubscriptionResponseData = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
+
const InvoiceResponseData_1 = require("./InvoiceResponseData");
|
|
32
|
+
const PaymentMethodResponseData_1 = require("./PaymentMethodResponseData");
|
|
31
33
|
const BillingProductForSubscriptionResponseData_1 = require("./BillingProductForSubscriptionResponseData");
|
|
32
34
|
exports.CompanySubscriptionResponseData = core.serialization.object({
|
|
35
|
+
currency: core.serialization.string(),
|
|
33
36
|
customerExternalId: core.serialization.property("customer_external_id", core.serialization.string()),
|
|
34
37
|
expiredAt: core.serialization.property("expired_at", core.serialization.date().optional()),
|
|
35
38
|
interval: core.serialization.string(),
|
|
39
|
+
latestInvoice: core.serialization.property("latest_invoice", InvoiceResponseData_1.InvoiceResponseData.optional()),
|
|
40
|
+
paymentMethod: core.serialization.property("payment_method", PaymentMethodResponseData_1.PaymentMethodResponseData.optional()),
|
|
36
41
|
products: core.serialization.list(BillingProductForSubscriptionResponseData_1.BillingProductForSubscriptionResponseData),
|
|
42
|
+
status: core.serialization.string(),
|
|
37
43
|
subscriptionExternalId: core.serialization.property("subscription_external_id", core.serialization.string()),
|
|
44
|
+
totalPrice: core.serialization.property("total_price", core.serialization.number()),
|
|
38
45
|
});
|
|
@@ -4,14 +4,23 @@
|
|
|
4
4
|
import * as serializers from "../index";
|
|
5
5
|
import * as Schematic from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
+
import { CompanyPlanDetailResponseData } from "./CompanyPlanDetailResponseData";
|
|
7
8
|
import { CompanyDetailResponseData } from "./CompanyDetailResponseData";
|
|
8
9
|
import { ComponentResponseData } from "./ComponentResponseData";
|
|
9
10
|
import { FeatureUsageDetailResponseData } from "./FeatureUsageDetailResponseData";
|
|
11
|
+
import { StripeEmbedInfo } from "./StripeEmbedInfo";
|
|
12
|
+
import { CompanySubscriptionResponseData } from "./CompanySubscriptionResponseData";
|
|
13
|
+
import { InvoiceResponseData } from "./InvoiceResponseData";
|
|
10
14
|
export declare const ComponentHydrateResponseData: core.serialization.ObjectSchema<serializers.ComponentHydrateResponseData.Raw, Schematic.ComponentHydrateResponseData>;
|
|
11
15
|
export declare namespace ComponentHydrateResponseData {
|
|
12
16
|
interface Raw {
|
|
17
|
+
ActiveAddOns: CompanyPlanDetailResponseData.Raw[];
|
|
18
|
+
active_plans: CompanyPlanDetailResponseData.Raw[];
|
|
13
19
|
company?: CompanyDetailResponseData.Raw | null;
|
|
14
20
|
component?: ComponentResponseData.Raw | null;
|
|
15
21
|
feature_usage?: FeatureUsageDetailResponseData.Raw | null;
|
|
22
|
+
stripe_embed?: StripeEmbedInfo.Raw | null;
|
|
23
|
+
subscription?: CompanySubscriptionResponseData.Raw | null;
|
|
24
|
+
upcoming_invoice?: InvoiceResponseData.Raw | null;
|
|
16
25
|
}
|
|
17
26
|
}
|
|
@@ -28,11 +28,20 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.ComponentHydrateResponseData = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
+
const CompanyPlanDetailResponseData_1 = require("./CompanyPlanDetailResponseData");
|
|
31
32
|
const CompanyDetailResponseData_1 = require("./CompanyDetailResponseData");
|
|
32
33
|
const ComponentResponseData_1 = require("./ComponentResponseData");
|
|
33
34
|
const FeatureUsageDetailResponseData_1 = require("./FeatureUsageDetailResponseData");
|
|
35
|
+
const StripeEmbedInfo_1 = require("./StripeEmbedInfo");
|
|
36
|
+
const CompanySubscriptionResponseData_1 = require("./CompanySubscriptionResponseData");
|
|
37
|
+
const InvoiceResponseData_1 = require("./InvoiceResponseData");
|
|
34
38
|
exports.ComponentHydrateResponseData = core.serialization.object({
|
|
39
|
+
activeAddOns: core.serialization.property("ActiveAddOns", core.serialization.list(CompanyPlanDetailResponseData_1.CompanyPlanDetailResponseData)),
|
|
40
|
+
activePlans: core.serialization.property("active_plans", core.serialization.list(CompanyPlanDetailResponseData_1.CompanyPlanDetailResponseData)),
|
|
35
41
|
company: CompanyDetailResponseData_1.CompanyDetailResponseData.optional(),
|
|
36
42
|
component: ComponentResponseData_1.ComponentResponseData.optional(),
|
|
37
43
|
featureUsage: core.serialization.property("feature_usage", FeatureUsageDetailResponseData_1.FeatureUsageDetailResponseData.optional()),
|
|
44
|
+
stripeEmbed: core.serialization.property("stripe_embed", StripeEmbedInfo_1.StripeEmbedInfo.optional()),
|
|
45
|
+
subscription: CompanySubscriptionResponseData_1.CompanySubscriptionResponseData.optional(),
|
|
46
|
+
upcomingInvoice: core.serialization.property("upcoming_invoice", InvoiceResponseData_1.InvoiceResponseData.optional()),
|
|
38
47
|
});
|