@schematichq/schematic-typescript-node 1.1.6 → 1.1.8
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 +6 -13
- package/Client.js +26 -109
- package/README.md +5 -3
- package/api/resources/accesstokens/client/Client.js +1 -1
- package/api/resources/accounts/client/Client.js +14 -14
- package/api/resources/billing/client/Client.d.ts +29 -0
- package/api/resources/billing/client/Client.js +128 -18
- package/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +2 -0
- package/api/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +8 -0
- package/api/resources/billing/client/requests/CreateCouponRequestBody.d.ts +27 -0
- package/api/resources/billing/client/requests/SearchBillingPricesRequest.d.ts +1 -0
- package/api/resources/billing/client/requests/index.d.ts +1 -0
- package/api/resources/billing/types/SearchBillingPricesParams.d.ts +1 -0
- package/api/resources/{events/types/GetEventSummaryBySubtypeResponse.d.ts → billing/types/UpsertBillingCouponResponse.d.ts} +2 -2
- package/api/resources/billing/types/index.d.ts +1 -0
- package/api/resources/billing/types/index.js +1 -0
- package/api/resources/checkout/client/Client.d.ts +106 -0
- package/api/resources/checkout/client/Client.js +460 -0
- package/api/resources/checkout/client/index.d.ts +1 -0
- package/api/resources/checkout/client/index.js +17 -0
- package/api/resources/checkout/client/requests/UpdateTrialEndRequestBody.d.ts +10 -0
- package/api/resources/checkout/client/requests/index.d.ts +1 -0
- package/api/resources/checkout/client/requests/index.js +2 -0
- package/api/resources/checkout/index.d.ts +2 -0
- package/api/resources/checkout/index.js +18 -0
- package/{dist/api/resources/events/types/GetEventSummaryBySubtypeResponse.d.ts → api/resources/checkout/types/CheckoutInternalResponse.d.ts} +2 -2
- package/api/resources/checkout/types/GetCheckoutDataResponse.d.ts +9 -0
- package/api/resources/checkout/types/GetCheckoutDataResponse.js +5 -0
- package/api/resources/checkout/types/PreviewCheckoutInternalResponse.d.ts +9 -0
- package/api/resources/checkout/types/PreviewCheckoutInternalResponse.js +5 -0
- package/api/resources/checkout/types/UpdateCustomerSubscriptionTrialEndResponse.d.ts +9 -0
- package/api/resources/checkout/types/UpdateCustomerSubscriptionTrialEndResponse.js +5 -0
- package/api/resources/checkout/types/index.d.ts +4 -0
- package/api/resources/checkout/types/index.js +20 -0
- package/api/resources/companies/client/Client.d.ts +2 -2
- package/api/resources/companies/client/Client.js +33 -33
- package/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +2 -2
- package/api/resources/companies/client/requests/CountUsersRequest.d.ts +3 -3
- package/api/resources/companies/client/requests/ListCompaniesRequest.d.ts +2 -2
- package/api/resources/companies/client/requests/ListUsersRequest.d.ts +3 -3
- package/api/resources/companies/client/requests/LookupCompanyRequest.d.ts +1 -1
- package/api/resources/companies/client/requests/LookupUserRequest.d.ts +1 -1
- package/api/resources/companies/types/CountCompaniesParams.d.ts +2 -2
- package/api/resources/companies/types/CountUsersParams.d.ts +3 -3
- package/api/resources/companies/types/ListCompaniesParams.d.ts +2 -2
- package/api/resources/companies/types/ListUsersParams.d.ts +3 -3
- package/api/resources/components/client/Client.js +7 -7
- package/api/resources/crm/client/Client.js +5 -5
- package/api/resources/entitlements/client/Client.d.ts +1 -1
- package/api/resources/entitlements/client/Client.js +28 -22
- package/api/resources/entitlements/client/requests/CountCompanyOverridesRequest.d.ts +9 -5
- package/api/resources/entitlements/client/requests/CountPlanEntitlementsRequest.d.ts +5 -5
- package/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +0 -1
- package/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +2 -2
- package/api/resources/entitlements/client/requests/GetFeatureUsageByCompanyRequest.d.ts +1 -1
- package/api/resources/entitlements/client/requests/ListCompanyOverridesRequest.d.ts +9 -5
- package/api/resources/entitlements/client/requests/ListPlanEntitlementsRequest.d.ts +5 -5
- package/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +0 -1
- package/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +3 -1
- package/api/resources/entitlements/types/CountCompanyOverridesParams.d.ts +7 -5
- package/api/resources/entitlements/types/CountPlanEntitlementsParams.d.ts +5 -5
- package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -2
- package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +0 -1
- package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -2
- package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +0 -1
- package/api/resources/entitlements/types/ListCompanyOverridesParams.d.ts +7 -5
- package/api/resources/entitlements/types/ListPlanEntitlementsParams.d.ts +5 -5
- package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -2
- package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +0 -1
- package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -2
- package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +0 -1
- package/api/resources/events/client/Client.d.ts +0 -13
- package/api/resources/events/client/Client.js +6 -96
- package/api/resources/events/types/index.d.ts +0 -1
- package/api/resources/events/types/index.js +0 -1
- package/api/resources/features/client/Client.js +19 -19
- package/api/resources/index.d.ts +6 -3
- package/api/resources/index.js +7 -4
- package/api/resources/plangroups/client/Client.js +3 -3
- package/api/resources/plans/client/Client.d.ts +17 -0
- package/api/resources/plans/client/Client.js +114 -11
- package/api/resources/plans/client/requests/UpdateCompanyPlansRequestBody.d.ts +13 -0
- package/api/resources/plans/client/requests/UpdateCompanyPlansRequestBody.js +5 -0
- package/api/resources/plans/client/requests/index.d.ts +1 -0
- package/api/resources/plans/types/UpdateCompanyPlansResponse.d.ts +9 -0
- package/api/resources/plans/types/UpdateCompanyPlansResponse.js +5 -0
- package/api/resources/plans/types/index.d.ts +1 -0
- package/api/resources/plans/types/index.js +1 -0
- package/api/resources/webhooks/client/Client.js +9 -9
- package/api/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.d.ts +2 -1
- package/api/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.js +1 -0
- package/api/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.d.ts +2 -1
- package/api/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.js +1 -0
- package/api/types/BillingCouponResponseData.d.ts +24 -0
- package/api/types/BillingCouponResponseData.js +5 -0
- package/api/types/BillingPriceView.d.ts +1 -0
- package/api/types/BillingProductForSubscriptionResponseData.d.ts +1 -0
- package/api/types/BillingProductPriceResponseData.d.ts +1 -0
- package/api/types/BillingSubscriptionDiscount.d.ts +12 -0
- package/api/types/BillingSubscriptionDiscount.js +5 -0
- package/api/types/BillingSubscriptionDiscountView.d.ts +19 -0
- package/api/types/BillingSubscriptionDiscountView.js +5 -0
- package/api/types/BillingSubscriptionResponseData.d.ts +1 -0
- package/api/types/BillingSubscriptionView.d.ts +5 -0
- package/api/types/ChangeSubscriptionInternalRequestBody.d.ts +13 -0
- package/api/types/ChangeSubscriptionInternalRequestBody.js +5 -0
- package/api/types/ChangeSubscriptionRequestBody.d.ts +12 -0
- package/api/types/ChangeSubscriptionRequestBody.js +5 -0
- package/api/types/CheckFlagResponseData.d.ts +20 -0
- package/api/types/CheckFlagsResponseData.d.ts +1 -1
- package/api/types/CheckoutDataResponseData.d.ts +15 -0
- package/api/types/CheckoutDataResponseData.js +5 -0
- package/api/types/CompanyDetailResponseData.d.ts +1 -0
- package/api/types/CompanyEventPeriodMetricsResponseData.d.ts +16 -0
- package/api/types/CompanyEventPeriodMetricsResponseData.js +5 -0
- package/api/types/CompanyOverrideResponseData.d.ts +1 -0
- package/api/types/CompanyPlanDetailResponseData.d.ts +1 -0
- package/api/types/CompanySubscriptionResponseData.d.ts +2 -0
- package/api/types/ComponentHydrateResponseData.d.ts +3 -0
- package/api/types/ComponentPreviewResponseData.d.ts +3 -0
- package/api/types/CouponRequestBody.d.ts +13 -0
- package/api/types/CouponRequestBody.js +5 -0
- package/api/types/CreateEntitlementReqCommon.d.ts +0 -1
- package/api/types/CreateEntitlementReqCommonMetricPeriod.d.ts +1 -2
- package/api/types/CreateEntitlementReqCommonMetricPeriod.js +0 -1
- package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +1 -2
- package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +0 -1
- package/api/types/EventBodyFlagCheck.d.ts +4 -4
- package/api/types/FeatureCompanyResponseData.d.ts +3 -0
- package/api/types/FeatureCompanyUserResponseData.d.ts +2 -0
- package/api/types/FeatureUsageResponseData.d.ts +6 -0
- package/api/types/PlanEntitlementResponseData.d.ts +3 -1
- package/api/types/PreviewSubscriptionChangeResponseData.d.ts +16 -0
- package/api/types/PreviewSubscriptionChangeResponseData.js +5 -0
- package/api/types/UpdateAddOnRequestBody.d.ts +7 -0
- package/api/types/UpdateAddOnRequestBody.js +5 -0
- package/api/types/UpdateEntitlementReqCommon.d.ts +0 -1
- package/api/types/UpdateEntitlementReqCommonMetricPeriod.d.ts +1 -2
- package/api/types/UpdateEntitlementReqCommonMetricPeriod.js +0 -1
- package/api/types/UpdatePayInAdvanceRequestBody.d.ts +7 -0
- package/api/types/UpdatePayInAdvanceRequestBody.js +5 -0
- package/api/types/UsageBasedEntitlementRequestBody.d.ts +8 -0
- package/api/types/UsageBasedEntitlementRequestBody.js +5 -0
- package/api/types/UsageBasedEntitlementResponseData.d.ts +14 -0
- package/api/types/UsageBasedEntitlementResponseData.js +5 -0
- package/api/types/index.d.ts +13 -1
- package/api/types/index.js +13 -1
- package/dist/Client.d.ts +6 -13
- package/dist/Client.js +26 -109
- package/dist/api/resources/accesstokens/client/Client.js +1 -1
- package/dist/api/resources/accounts/client/Client.js +14 -14
- package/dist/api/resources/billing/client/Client.d.ts +29 -0
- package/dist/api/resources/billing/client/Client.js +128 -18
- package/dist/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +2 -0
- package/dist/api/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +8 -0
- package/dist/api/resources/billing/client/requests/CreateCouponRequestBody.d.ts +27 -0
- package/dist/api/resources/billing/client/requests/CreateCouponRequestBody.js +5 -0
- package/dist/api/resources/billing/client/requests/SearchBillingPricesRequest.d.ts +1 -0
- package/dist/api/resources/billing/client/requests/index.d.ts +1 -0
- package/dist/api/resources/billing/types/SearchBillingPricesParams.d.ts +1 -0
- package/dist/api/resources/billing/types/UpsertBillingCouponResponse.d.ts +9 -0
- package/dist/api/resources/billing/types/UpsertBillingCouponResponse.js +5 -0
- package/dist/api/resources/billing/types/index.d.ts +1 -0
- package/dist/api/resources/billing/types/index.js +1 -0
- package/dist/api/resources/checkout/client/Client.d.ts +106 -0
- package/dist/api/resources/checkout/client/Client.js +460 -0
- package/dist/api/resources/checkout/client/index.d.ts +1 -0
- package/dist/api/resources/checkout/client/index.js +17 -0
- package/dist/api/resources/checkout/client/requests/UpdateTrialEndRequestBody.d.ts +10 -0
- package/dist/api/resources/checkout/client/requests/UpdateTrialEndRequestBody.js +5 -0
- package/dist/api/resources/checkout/client/requests/index.d.ts +1 -0
- package/dist/api/resources/checkout/client/requests/index.js +2 -0
- package/dist/api/resources/checkout/index.d.ts +2 -0
- package/dist/api/resources/checkout/index.js +18 -0
- package/dist/api/resources/checkout/types/CheckoutInternalResponse.d.ts +9 -0
- package/dist/api/resources/checkout/types/CheckoutInternalResponse.js +5 -0
- package/dist/api/resources/checkout/types/GetCheckoutDataResponse.d.ts +9 -0
- package/dist/api/resources/checkout/types/GetCheckoutDataResponse.js +5 -0
- package/dist/api/resources/checkout/types/PreviewCheckoutInternalResponse.d.ts +9 -0
- package/dist/api/resources/checkout/types/PreviewCheckoutInternalResponse.js +5 -0
- package/dist/api/resources/checkout/types/UpdateCustomerSubscriptionTrialEndResponse.d.ts +9 -0
- package/dist/api/resources/checkout/types/UpdateCustomerSubscriptionTrialEndResponse.js +5 -0
- package/dist/api/resources/checkout/types/index.d.ts +4 -0
- package/dist/api/resources/checkout/types/index.js +20 -0
- package/dist/api/resources/companies/client/Client.d.ts +2 -2
- package/dist/api/resources/companies/client/Client.js +33 -33
- package/dist/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +2 -2
- package/dist/api/resources/companies/client/requests/CountUsersRequest.d.ts +3 -3
- package/dist/api/resources/companies/client/requests/ListCompaniesRequest.d.ts +2 -2
- package/dist/api/resources/companies/client/requests/ListUsersRequest.d.ts +3 -3
- package/dist/api/resources/companies/client/requests/LookupCompanyRequest.d.ts +1 -1
- package/dist/api/resources/companies/client/requests/LookupUserRequest.d.ts +1 -1
- package/dist/api/resources/companies/types/CountCompaniesParams.d.ts +2 -2
- package/dist/api/resources/companies/types/CountUsersParams.d.ts +3 -3
- package/dist/api/resources/companies/types/ListCompaniesParams.d.ts +2 -2
- package/dist/api/resources/companies/types/ListUsersParams.d.ts +3 -3
- package/dist/api/resources/components/client/Client.js +7 -7
- package/dist/api/resources/crm/client/Client.js +5 -5
- package/dist/api/resources/entitlements/client/Client.d.ts +1 -1
- package/dist/api/resources/entitlements/client/Client.js +28 -22
- package/dist/api/resources/entitlements/client/requests/CountCompanyOverridesRequest.d.ts +9 -5
- package/dist/api/resources/entitlements/client/requests/CountPlanEntitlementsRequest.d.ts +5 -5
- package/dist/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +0 -1
- package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +2 -2
- package/dist/api/resources/entitlements/client/requests/GetFeatureUsageByCompanyRequest.d.ts +1 -1
- package/dist/api/resources/entitlements/client/requests/ListCompanyOverridesRequest.d.ts +9 -5
- package/dist/api/resources/entitlements/client/requests/ListPlanEntitlementsRequest.d.ts +5 -5
- package/dist/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +0 -1
- package/dist/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +3 -1
- package/dist/api/resources/entitlements/types/CountCompanyOverridesParams.d.ts +7 -5
- package/dist/api/resources/entitlements/types/CountPlanEntitlementsParams.d.ts +5 -5
- package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -2
- package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +0 -1
- package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -2
- package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +0 -1
- package/dist/api/resources/entitlements/types/ListCompanyOverridesParams.d.ts +7 -5
- package/dist/api/resources/entitlements/types/ListPlanEntitlementsParams.d.ts +5 -5
- package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -2
- package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +0 -1
- package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -2
- package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +0 -1
- package/dist/api/resources/events/client/Client.d.ts +0 -13
- package/dist/api/resources/events/client/Client.js +6 -96
- package/dist/api/resources/events/types/index.d.ts +0 -1
- package/dist/api/resources/events/types/index.js +0 -1
- package/dist/api/resources/features/client/Client.js +19 -19
- package/dist/api/resources/index.d.ts +6 -3
- package/dist/api/resources/index.js +7 -4
- package/dist/api/resources/plangroups/client/Client.js +3 -3
- package/dist/api/resources/plans/client/Client.d.ts +17 -0
- package/dist/api/resources/plans/client/Client.js +114 -11
- package/dist/api/resources/plans/client/requests/UpdateCompanyPlansRequestBody.d.ts +13 -0
- package/dist/api/resources/plans/client/requests/UpdateCompanyPlansRequestBody.js +5 -0
- package/dist/api/resources/plans/client/requests/index.d.ts +1 -0
- package/dist/api/resources/plans/types/UpdateCompanyPlansResponse.d.ts +9 -0
- package/dist/api/resources/plans/types/UpdateCompanyPlansResponse.js +5 -0
- package/dist/api/resources/plans/types/index.d.ts +1 -0
- package/dist/api/resources/plans/types/index.js +1 -0
- package/dist/api/resources/webhooks/client/Client.js +9 -9
- package/dist/api/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.d.ts +2 -1
- package/dist/api/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.js +1 -0
- package/dist/api/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.d.ts +2 -1
- package/dist/api/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.js +1 -0
- package/dist/api/types/BillingCouponResponseData.d.ts +24 -0
- package/dist/api/types/BillingCouponResponseData.js +5 -0
- package/dist/api/types/BillingPriceView.d.ts +1 -0
- package/dist/api/types/BillingProductForSubscriptionResponseData.d.ts +1 -0
- package/dist/api/types/BillingProductPriceResponseData.d.ts +1 -0
- package/dist/api/types/BillingSubscriptionDiscount.d.ts +12 -0
- package/dist/api/types/BillingSubscriptionDiscount.js +5 -0
- package/dist/api/types/BillingSubscriptionDiscountView.d.ts +19 -0
- package/dist/api/types/BillingSubscriptionDiscountView.js +5 -0
- package/dist/api/types/BillingSubscriptionResponseData.d.ts +1 -0
- package/dist/api/types/BillingSubscriptionView.d.ts +5 -0
- package/dist/api/types/ChangeSubscriptionInternalRequestBody.d.ts +13 -0
- package/dist/api/types/ChangeSubscriptionInternalRequestBody.js +5 -0
- package/dist/api/types/ChangeSubscriptionRequestBody.d.ts +12 -0
- package/dist/api/types/ChangeSubscriptionRequestBody.js +5 -0
- package/dist/api/types/CheckFlagResponseData.d.ts +20 -0
- package/dist/api/types/CheckFlagsResponseData.d.ts +1 -1
- package/dist/api/types/CheckoutDataResponseData.d.ts +15 -0
- package/dist/api/types/CheckoutDataResponseData.js +5 -0
- package/dist/api/types/CompanyDetailResponseData.d.ts +1 -0
- package/dist/api/types/CompanyEventPeriodMetricsResponseData.d.ts +16 -0
- package/dist/api/types/CompanyEventPeriodMetricsResponseData.js +5 -0
- package/dist/api/types/CompanyOverrideResponseData.d.ts +1 -0
- package/dist/api/types/CompanyPlanDetailResponseData.d.ts +1 -0
- package/dist/api/types/CompanySubscriptionResponseData.d.ts +2 -0
- package/dist/api/types/ComponentHydrateResponseData.d.ts +3 -0
- package/dist/api/types/ComponentPreviewResponseData.d.ts +3 -0
- package/dist/api/types/CouponRequestBody.d.ts +13 -0
- package/dist/api/types/CouponRequestBody.js +5 -0
- package/dist/api/types/CreateEntitlementReqCommon.d.ts +0 -1
- package/dist/api/types/CreateEntitlementReqCommonMetricPeriod.d.ts +1 -2
- package/dist/api/types/CreateEntitlementReqCommonMetricPeriod.js +0 -1
- package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +1 -2
- package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +0 -1
- package/dist/api/types/EventBodyFlagCheck.d.ts +4 -4
- package/dist/api/types/FeatureCompanyResponseData.d.ts +3 -0
- package/dist/api/types/FeatureCompanyUserResponseData.d.ts +2 -0
- package/dist/api/types/FeatureUsageResponseData.d.ts +6 -0
- package/dist/api/types/PlanEntitlementResponseData.d.ts +3 -1
- package/dist/api/types/PreviewSubscriptionChangeResponseData.d.ts +16 -0
- package/dist/api/types/PreviewSubscriptionChangeResponseData.js +5 -0
- package/dist/api/types/UpdateAddOnRequestBody.d.ts +7 -0
- package/dist/api/types/UpdateAddOnRequestBody.js +5 -0
- package/dist/api/types/UpdateEntitlementReqCommon.d.ts +0 -1
- package/dist/api/types/UpdateEntitlementReqCommonMetricPeriod.d.ts +1 -2
- package/dist/api/types/UpdateEntitlementReqCommonMetricPeriod.js +0 -1
- package/dist/api/types/UpdatePayInAdvanceRequestBody.d.ts +7 -0
- package/dist/api/types/UpdatePayInAdvanceRequestBody.js +5 -0
- package/dist/api/types/UsageBasedEntitlementRequestBody.d.ts +8 -0
- package/dist/api/types/UsageBasedEntitlementRequestBody.js +5 -0
- package/dist/api/types/UsageBasedEntitlementResponseData.d.ts +14 -0
- package/dist/api/types/UsageBasedEntitlementResponseData.js +5 -0
- package/dist/api/types/index.d.ts +13 -1
- package/dist/api/types/index.js +13 -1
- 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/CreateCouponRequestBody.d.ts +20 -0
- package/dist/serialization/resources/billing/client/requests/CreateCouponRequestBody.js +41 -0
- package/dist/serialization/resources/billing/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/billing/client/requests/index.js +3 -1
- package/dist/serialization/resources/billing/types/SearchBillingPricesParams.d.ts +1 -0
- package/dist/serialization/resources/billing/types/SearchBillingPricesParams.js +1 -0
- package/dist/serialization/resources/billing/types/UpsertBillingCouponResponse.d.ts +14 -0
- package/dist/serialization/resources/{events/types/GetEventSummaryBySubtypeResponse.js → billing/types/UpsertBillingCouponResponse.js} +4 -4
- package/dist/serialization/resources/billing/types/index.d.ts +1 -0
- package/dist/serialization/resources/billing/types/index.js +1 -0
- package/dist/serialization/resources/checkout/client/index.d.ts +1 -0
- package/dist/serialization/resources/checkout/client/index.js +17 -0
- package/dist/serialization/resources/checkout/client/requests/UpdateTrialEndRequestBody.d.ts +12 -0
- package/dist/serialization/resources/checkout/client/requests/UpdateTrialEndRequestBody.js +33 -0
- package/dist/serialization/resources/checkout/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/checkout/client/requests/index.js +5 -0
- package/dist/serialization/resources/checkout/index.d.ts +2 -0
- package/dist/serialization/resources/checkout/index.js +18 -0
- package/dist/serialization/resources/checkout/types/CheckoutInternalResponse.d.ts +14 -0
- package/dist/serialization/resources/checkout/types/CheckoutInternalResponse.js +35 -0
- package/dist/serialization/resources/checkout/types/GetCheckoutDataResponse.d.ts +14 -0
- package/{serialization/resources/events/types/GetEventSummaryBySubtypeResponse.js → dist/serialization/resources/checkout/types/GetCheckoutDataResponse.js} +4 -4
- package/dist/serialization/resources/checkout/types/PreviewCheckoutInternalResponse.d.ts +14 -0
- package/dist/serialization/resources/checkout/types/PreviewCheckoutInternalResponse.js +35 -0
- package/dist/serialization/resources/checkout/types/UpdateCustomerSubscriptionTrialEndResponse.d.ts +14 -0
- package/dist/serialization/resources/checkout/types/UpdateCustomerSubscriptionTrialEndResponse.js +35 -0
- package/dist/serialization/resources/checkout/types/index.d.ts +4 -0
- package/dist/serialization/resources/checkout/types/index.js +20 -0
- package/dist/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +0 -1
- package/dist/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.js +0 -1
- package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +2 -2
- package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +2 -2
- package/dist/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +0 -1
- package/dist/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.js +0 -1
- package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +3 -1
- package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +3 -1
- package/dist/serialization/resources/entitlements/types/CountCompanyOverridesParams.d.ts +1 -0
- package/dist/serialization/resources/entitlements/types/CountCompanyOverridesParams.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/ListCompanyOverridesParams.d.ts +1 -0
- package/dist/serialization/resources/entitlements/types/ListCompanyOverridesParams.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/events/types/index.d.ts +0 -1
- package/dist/serialization/resources/events/types/index.js +0 -1
- package/dist/serialization/resources/index.d.ts +6 -3
- package/dist/serialization/resources/index.js +7 -4
- package/dist/serialization/resources/plans/client/requests/UpdateCompanyPlansRequestBody.d.ts +13 -0
- package/dist/serialization/resources/plans/client/requests/UpdateCompanyPlansRequestBody.js +34 -0
- package/dist/serialization/resources/plans/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/plans/client/requests/index.js +3 -1
- package/dist/serialization/resources/plans/types/UpdateCompanyPlansResponse.d.ts +14 -0
- package/dist/serialization/resources/plans/types/UpdateCompanyPlansResponse.js +35 -0
- package/dist/serialization/resources/plans/types/index.d.ts +1 -0
- package/dist/serialization/resources/plans/types/index.js +1 -0
- package/dist/serialization/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.d.ts +1 -1
- package/dist/serialization/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.js +1 -0
- package/dist/serialization/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.d.ts +1 -1
- package/dist/serialization/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.js +1 -0
- package/dist/serialization/types/BillingCouponResponseData.d.ts +27 -0
- package/dist/serialization/types/BillingCouponResponseData.js +48 -0
- package/dist/serialization/types/BillingPriceView.d.ts +1 -0
- package/dist/serialization/types/BillingPriceView.js +1 -0
- package/dist/serialization/types/BillingProductForSubscriptionResponseData.d.ts +1 -0
- package/dist/serialization/types/BillingProductForSubscriptionResponseData.js +1 -0
- package/dist/serialization/types/BillingProductPriceResponseData.d.ts +1 -0
- package/dist/serialization/types/BillingProductPriceResponseData.js +1 -0
- package/dist/serialization/types/BillingSubscriptionDiscount.d.ts +18 -0
- package/dist/serialization/types/BillingSubscriptionDiscount.js +39 -0
- package/dist/serialization/types/BillingSubscriptionDiscountView.d.ts +25 -0
- package/dist/serialization/types/BillingSubscriptionDiscountView.js +46 -0
- package/dist/serialization/types/BillingSubscriptionResponseData.d.ts +1 -0
- package/dist/serialization/types/BillingSubscriptionResponseData.js +1 -0
- package/dist/serialization/types/BillingSubscriptionView.d.ts +3 -0
- package/dist/serialization/types/BillingSubscriptionView.js +3 -0
- package/dist/serialization/types/ChangeSubscriptionInternalRequestBody.d.ts +20 -0
- package/dist/serialization/types/ChangeSubscriptionInternalRequestBody.js +41 -0
- package/dist/serialization/types/ChangeSubscriptionRequestBody.d.ts +19 -0
- package/dist/serialization/types/ChangeSubscriptionRequestBody.js +40 -0
- package/dist/serialization/types/CheckFlagResponseData.d.ts +7 -0
- package/dist/serialization/types/CheckFlagResponseData.js +7 -0
- package/dist/serialization/types/CheckFlagsResponseData.d.ts +2 -2
- package/dist/serialization/types/CheckFlagsResponseData.js +2 -2
- package/dist/serialization/types/CheckoutDataResponseData.d.ts +22 -0
- package/dist/serialization/types/CheckoutDataResponseData.js +43 -0
- package/dist/serialization/types/CompanyDetailResponseData.d.ts +2 -0
- package/dist/serialization/types/CompanyDetailResponseData.js +2 -0
- package/dist/serialization/types/CompanyEventPeriodMetricsResponseData.d.ts +22 -0
- package/dist/serialization/types/CompanyEventPeriodMetricsResponseData.js +43 -0
- package/dist/serialization/types/CompanyOverrideResponseData.d.ts +1 -0
- package/dist/serialization/types/CompanyOverrideResponseData.js +1 -0
- package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +1 -0
- package/dist/serialization/types/CompanyPlanDetailResponseData.js +1 -0
- package/dist/serialization/types/CompanySubscriptionResponseData.d.ts +3 -0
- package/dist/serialization/types/CompanySubscriptionResponseData.js +3 -0
- package/dist/serialization/types/ComponentHydrateResponseData.d.ts +5 -0
- package/dist/serialization/types/ComponentHydrateResponseData.js +5 -0
- package/dist/serialization/types/ComponentPreviewResponseData.d.ts +5 -0
- package/dist/serialization/types/ComponentPreviewResponseData.js +5 -0
- package/dist/serialization/types/CouponRequestBody.d.ts +19 -0
- package/dist/serialization/types/CouponRequestBody.js +40 -0
- package/dist/serialization/types/CreateEntitlementReqCommon.d.ts +0 -1
- package/dist/serialization/types/CreateEntitlementReqCommon.js +0 -1
- package/dist/serialization/types/CreateEntitlementReqCommonMetricPeriod.d.ts +1 -1
- package/dist/serialization/types/CreateEntitlementReqCommonMetricPeriod.js +1 -1
- package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +1 -1
- package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +1 -1
- package/dist/serialization/types/FeatureCompanyResponseData.d.ts +2 -0
- package/dist/serialization/types/FeatureCompanyResponseData.js +2 -0
- package/dist/serialization/types/FeatureCompanyUserResponseData.d.ts +1 -0
- package/dist/serialization/types/FeatureCompanyUserResponseData.js +1 -0
- package/dist/serialization/types/FeatureUsageResponseData.d.ts +6 -0
- package/dist/serialization/types/FeatureUsageResponseData.js +6 -0
- package/dist/serialization/types/PlanEntitlementResponseData.d.ts +3 -1
- package/dist/serialization/types/PlanEntitlementResponseData.js +3 -1
- package/dist/serialization/types/PreviewSubscriptionChangeResponseData.d.ts +19 -0
- package/dist/serialization/types/PreviewSubscriptionChangeResponseData.js +40 -0
- package/dist/serialization/types/UpdateAddOnRequestBody.d.ts +13 -0
- package/dist/serialization/types/{CheckFlagOutputWithFlagKey.js → UpdateAddOnRequestBody.js} +4 -9
- package/dist/serialization/types/UpdateEntitlementReqCommon.d.ts +0 -1
- package/dist/serialization/types/UpdateEntitlementReqCommon.js +0 -1
- package/dist/serialization/types/UpdateEntitlementReqCommonMetricPeriod.d.ts +1 -1
- package/dist/serialization/types/UpdateEntitlementReqCommonMetricPeriod.js +1 -1
- package/dist/serialization/types/UpdatePayInAdvanceRequestBody.d.ts +13 -0
- package/{serialization/types/CheckFlagOutputWithFlagKey.js → dist/serialization/types/UpdatePayInAdvanceRequestBody.js} +4 -9
- package/dist/serialization/types/UsageBasedEntitlementRequestBody.d.ts +14 -0
- package/dist/serialization/types/UsageBasedEntitlementRequestBody.js +35 -0
- package/dist/serialization/types/UsageBasedEntitlementResponseData.d.ts +20 -0
- package/dist/serialization/types/UsageBasedEntitlementResponseData.js +41 -0
- package/dist/serialization/types/index.d.ts +13 -1
- package/dist/serialization/types/index.js +13 -1
- package/dist/wrapper.d.ts +49 -0
- package/dist/wrapper.js +36 -0
- package/package.json +1 -1
- package/reference.md +614 -346
- 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/CreateCouponRequestBody.d.ts +20 -0
- package/serialization/resources/billing/client/requests/CreateCouponRequestBody.js +41 -0
- package/serialization/resources/billing/client/requests/index.d.ts +1 -0
- package/serialization/resources/billing/client/requests/index.js +3 -1
- package/serialization/resources/billing/types/SearchBillingPricesParams.d.ts +1 -0
- package/serialization/resources/billing/types/SearchBillingPricesParams.js +1 -0
- package/serialization/resources/billing/types/UpsertBillingCouponResponse.d.ts +14 -0
- package/serialization/resources/billing/types/UpsertBillingCouponResponse.js +35 -0
- package/serialization/resources/billing/types/index.d.ts +1 -0
- package/serialization/resources/billing/types/index.js +1 -0
- package/serialization/resources/checkout/client/index.d.ts +1 -0
- package/serialization/resources/checkout/client/index.js +17 -0
- package/serialization/resources/checkout/client/requests/UpdateTrialEndRequestBody.d.ts +12 -0
- package/serialization/resources/checkout/client/requests/UpdateTrialEndRequestBody.js +33 -0
- package/serialization/resources/checkout/client/requests/index.d.ts +1 -0
- package/serialization/resources/checkout/client/requests/index.js +5 -0
- package/serialization/resources/checkout/index.d.ts +2 -0
- package/serialization/resources/checkout/index.js +18 -0
- package/serialization/resources/checkout/types/CheckoutInternalResponse.d.ts +14 -0
- package/serialization/resources/checkout/types/CheckoutInternalResponse.js +35 -0
- package/serialization/resources/checkout/types/GetCheckoutDataResponse.d.ts +14 -0
- package/serialization/resources/checkout/types/GetCheckoutDataResponse.js +35 -0
- package/serialization/resources/checkout/types/PreviewCheckoutInternalResponse.d.ts +14 -0
- package/serialization/resources/checkout/types/PreviewCheckoutInternalResponse.js +35 -0
- package/serialization/resources/checkout/types/UpdateCustomerSubscriptionTrialEndResponse.d.ts +14 -0
- package/serialization/resources/checkout/types/UpdateCustomerSubscriptionTrialEndResponse.js +35 -0
- package/serialization/resources/checkout/types/index.d.ts +4 -0
- package/serialization/resources/checkout/types/index.js +20 -0
- package/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +0 -1
- package/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.js +0 -1
- package/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +2 -2
- package/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +2 -2
- package/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +0 -1
- package/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.js +0 -1
- package/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +3 -1
- package/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +3 -1
- package/serialization/resources/entitlements/types/CountCompanyOverridesParams.d.ts +1 -0
- package/serialization/resources/entitlements/types/CountCompanyOverridesParams.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/ListCompanyOverridesParams.d.ts +1 -0
- package/serialization/resources/entitlements/types/ListCompanyOverridesParams.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/events/types/index.d.ts +0 -1
- package/serialization/resources/events/types/index.js +0 -1
- package/serialization/resources/index.d.ts +6 -3
- package/serialization/resources/index.js +7 -4
- package/serialization/resources/plans/client/requests/UpdateCompanyPlansRequestBody.d.ts +13 -0
- package/serialization/resources/plans/client/requests/UpdateCompanyPlansRequestBody.js +34 -0
- package/serialization/resources/plans/client/requests/index.d.ts +1 -0
- package/serialization/resources/plans/client/requests/index.js +3 -1
- package/serialization/resources/plans/types/UpdateCompanyPlansResponse.d.ts +14 -0
- package/serialization/resources/plans/types/UpdateCompanyPlansResponse.js +35 -0
- package/serialization/resources/plans/types/index.d.ts +1 -0
- package/serialization/resources/plans/types/index.js +1 -0
- package/serialization/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.d.ts +1 -1
- package/serialization/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.js +1 -0
- package/serialization/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.d.ts +1 -1
- package/serialization/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.js +1 -0
- package/serialization/types/BillingCouponResponseData.d.ts +27 -0
- package/serialization/types/BillingCouponResponseData.js +48 -0
- package/serialization/types/BillingPriceView.d.ts +1 -0
- package/serialization/types/BillingPriceView.js +1 -0
- package/serialization/types/BillingProductForSubscriptionResponseData.d.ts +1 -0
- package/serialization/types/BillingProductForSubscriptionResponseData.js +1 -0
- package/serialization/types/BillingProductPriceResponseData.d.ts +1 -0
- package/serialization/types/BillingProductPriceResponseData.js +1 -0
- package/serialization/types/BillingSubscriptionDiscount.d.ts +18 -0
- package/serialization/types/BillingSubscriptionDiscount.js +39 -0
- package/serialization/types/BillingSubscriptionDiscountView.d.ts +25 -0
- package/serialization/types/BillingSubscriptionDiscountView.js +46 -0
- package/serialization/types/BillingSubscriptionResponseData.d.ts +1 -0
- package/serialization/types/BillingSubscriptionResponseData.js +1 -0
- package/serialization/types/BillingSubscriptionView.d.ts +3 -0
- package/serialization/types/BillingSubscriptionView.js +3 -0
- package/serialization/types/ChangeSubscriptionInternalRequestBody.d.ts +20 -0
- package/serialization/types/ChangeSubscriptionInternalRequestBody.js +41 -0
- package/serialization/types/ChangeSubscriptionRequestBody.d.ts +19 -0
- package/serialization/types/ChangeSubscriptionRequestBody.js +40 -0
- package/serialization/types/CheckFlagResponseData.d.ts +7 -0
- package/serialization/types/CheckFlagResponseData.js +7 -0
- package/serialization/types/CheckFlagsResponseData.d.ts +2 -2
- package/serialization/types/CheckFlagsResponseData.js +2 -2
- package/serialization/types/CheckoutDataResponseData.d.ts +22 -0
- package/serialization/types/CheckoutDataResponseData.js +43 -0
- package/serialization/types/CompanyDetailResponseData.d.ts +2 -0
- package/serialization/types/CompanyDetailResponseData.js +2 -0
- package/serialization/types/CompanyEventPeriodMetricsResponseData.d.ts +22 -0
- package/serialization/types/CompanyEventPeriodMetricsResponseData.js +43 -0
- package/serialization/types/CompanyOverrideResponseData.d.ts +1 -0
- package/serialization/types/CompanyOverrideResponseData.js +1 -0
- package/serialization/types/CompanyPlanDetailResponseData.d.ts +1 -0
- package/serialization/types/CompanyPlanDetailResponseData.js +1 -0
- package/serialization/types/CompanySubscriptionResponseData.d.ts +3 -0
- package/serialization/types/CompanySubscriptionResponseData.js +3 -0
- package/serialization/types/ComponentHydrateResponseData.d.ts +5 -0
- package/serialization/types/ComponentHydrateResponseData.js +5 -0
- package/serialization/types/ComponentPreviewResponseData.d.ts +5 -0
- package/serialization/types/ComponentPreviewResponseData.js +5 -0
- package/serialization/types/CouponRequestBody.d.ts +19 -0
- package/serialization/types/CouponRequestBody.js +40 -0
- package/serialization/types/CreateEntitlementReqCommon.d.ts +0 -1
- package/serialization/types/CreateEntitlementReqCommon.js +0 -1
- package/serialization/types/CreateEntitlementReqCommonMetricPeriod.d.ts +1 -1
- package/serialization/types/CreateEntitlementReqCommonMetricPeriod.js +1 -1
- package/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +1 -1
- package/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +1 -1
- package/serialization/types/FeatureCompanyResponseData.d.ts +2 -0
- package/serialization/types/FeatureCompanyResponseData.js +2 -0
- package/serialization/types/FeatureCompanyUserResponseData.d.ts +1 -0
- package/serialization/types/FeatureCompanyUserResponseData.js +1 -0
- package/serialization/types/FeatureUsageResponseData.d.ts +6 -0
- package/serialization/types/FeatureUsageResponseData.js +6 -0
- package/serialization/types/PlanEntitlementResponseData.d.ts +3 -1
- package/serialization/types/PlanEntitlementResponseData.js +3 -1
- package/serialization/types/PreviewSubscriptionChangeResponseData.d.ts +19 -0
- package/serialization/types/PreviewSubscriptionChangeResponseData.js +40 -0
- package/serialization/types/UpdateAddOnRequestBody.d.ts +13 -0
- package/serialization/types/UpdateAddOnRequestBody.js +34 -0
- package/serialization/types/UpdateEntitlementReqCommon.d.ts +0 -1
- package/serialization/types/UpdateEntitlementReqCommon.js +0 -1
- package/serialization/types/UpdateEntitlementReqCommonMetricPeriod.d.ts +1 -1
- package/serialization/types/UpdateEntitlementReqCommonMetricPeriod.js +1 -1
- package/serialization/types/UpdatePayInAdvanceRequestBody.d.ts +13 -0
- package/serialization/types/UpdatePayInAdvanceRequestBody.js +34 -0
- package/serialization/types/UsageBasedEntitlementRequestBody.d.ts +14 -0
- package/serialization/types/UsageBasedEntitlementRequestBody.js +35 -0
- package/serialization/types/UsageBasedEntitlementResponseData.d.ts +20 -0
- package/serialization/types/UsageBasedEntitlementResponseData.js +41 -0
- package/serialization/types/index.d.ts +13 -1
- package/serialization/types/index.js +13 -1
- package/wrapper.d.ts +49 -0
- package/wrapper.js +36 -0
- package/api/types/CheckFlagOutputWithFlagKey.d.ts +0 -12
- package/dist/api/types/CheckFlagOutputWithFlagKey.d.ts +0 -12
- package/dist/serialization/resources/events/types/GetEventSummaryBySubtypeResponse.d.ts +0 -14
- package/dist/serialization/types/CheckFlagOutputWithFlagKey.d.ts +0 -18
- package/serialization/resources/events/types/GetEventSummaryBySubtypeResponse.d.ts +0 -14
- package/serialization/types/CheckFlagOutputWithFlagKey.d.ts +0 -18
- /package/api/resources/{events/types/GetEventSummaryBySubtypeResponse.js → billing/client/requests/CreateCouponRequestBody.js} +0 -0
- /package/api/{types/CheckFlagOutputWithFlagKey.js → resources/billing/types/UpsertBillingCouponResponse.js} +0 -0
- /package/{dist/api/resources/events/types/GetEventSummaryBySubtypeResponse.js → api/resources/checkout/client/requests/UpdateTrialEndRequestBody.js} +0 -0
- /package/{dist/api/types/CheckFlagOutputWithFlagKey.js → api/resources/checkout/types/CheckoutInternalResponse.js} +0 -0
|
@@ -5,9 +5,11 @@ import * as serializers from "../index";
|
|
|
5
5
|
import * as Schematic from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
import { CompanyPlanDetailResponseData } from "./CompanyPlanDetailResponseData";
|
|
8
|
+
import { UsageBasedEntitlementResponseData } from "./UsageBasedEntitlementResponseData";
|
|
8
9
|
import { ComponentCapabilities } from "./ComponentCapabilities";
|
|
9
10
|
import { CompanyDetailResponseData } from "./CompanyDetailResponseData";
|
|
10
11
|
import { ComponentResponseData } from "./ComponentResponseData";
|
|
12
|
+
import { PlanDetailResponseData } from "./PlanDetailResponseData";
|
|
11
13
|
import { FeatureUsageDetailResponseData } from "./FeatureUsageDetailResponseData";
|
|
12
14
|
import { InvoiceResponseData } from "./InvoiceResponseData";
|
|
13
15
|
import { StripeEmbedInfo } from "./StripeEmbedInfo";
|
|
@@ -17,13 +19,16 @@ export declare namespace ComponentPreviewResponseData {
|
|
|
17
19
|
interface Raw {
|
|
18
20
|
active_add_ons: CompanyPlanDetailResponseData.Raw[];
|
|
19
21
|
active_plans: CompanyPlanDetailResponseData.Raw[];
|
|
22
|
+
active_usage_based_entitlements: UsageBasedEntitlementResponseData.Raw[];
|
|
20
23
|
capabilities?: ComponentCapabilities.Raw | null;
|
|
21
24
|
company?: CompanyDetailResponseData.Raw | null;
|
|
22
25
|
component?: ComponentResponseData.Raw | null;
|
|
26
|
+
default_plan?: PlanDetailResponseData.Raw | null;
|
|
23
27
|
feature_usage?: FeatureUsageDetailResponseData.Raw | null;
|
|
24
28
|
invoices: InvoiceResponseData.Raw[];
|
|
25
29
|
stripe_embed?: StripeEmbedInfo.Raw | null;
|
|
26
30
|
subscription?: CompanySubscriptionResponseData.Raw | null;
|
|
31
|
+
trial_payment_method_required?: boolean | null;
|
|
27
32
|
upcoming_invoice?: InvoiceResponseData.Raw | null;
|
|
28
33
|
}
|
|
29
34
|
}
|
|
@@ -29,9 +29,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.ComponentPreviewResponseData = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
const CompanyPlanDetailResponseData_1 = require("./CompanyPlanDetailResponseData");
|
|
32
|
+
const UsageBasedEntitlementResponseData_1 = require("./UsageBasedEntitlementResponseData");
|
|
32
33
|
const ComponentCapabilities_1 = require("./ComponentCapabilities");
|
|
33
34
|
const CompanyDetailResponseData_1 = require("./CompanyDetailResponseData");
|
|
34
35
|
const ComponentResponseData_1 = require("./ComponentResponseData");
|
|
36
|
+
const PlanDetailResponseData_1 = require("./PlanDetailResponseData");
|
|
35
37
|
const FeatureUsageDetailResponseData_1 = require("./FeatureUsageDetailResponseData");
|
|
36
38
|
const InvoiceResponseData_1 = require("./InvoiceResponseData");
|
|
37
39
|
const StripeEmbedInfo_1 = require("./StripeEmbedInfo");
|
|
@@ -39,12 +41,15 @@ const CompanySubscriptionResponseData_1 = require("./CompanySubscriptionResponse
|
|
|
39
41
|
exports.ComponentPreviewResponseData = core.serialization.object({
|
|
40
42
|
activeAddOns: core.serialization.property("active_add_ons", core.serialization.list(CompanyPlanDetailResponseData_1.CompanyPlanDetailResponseData)),
|
|
41
43
|
activePlans: core.serialization.property("active_plans", core.serialization.list(CompanyPlanDetailResponseData_1.CompanyPlanDetailResponseData)),
|
|
44
|
+
activeUsageBasedEntitlements: core.serialization.property("active_usage_based_entitlements", core.serialization.list(UsageBasedEntitlementResponseData_1.UsageBasedEntitlementResponseData)),
|
|
42
45
|
capabilities: ComponentCapabilities_1.ComponentCapabilities.optional(),
|
|
43
46
|
company: CompanyDetailResponseData_1.CompanyDetailResponseData.optional(),
|
|
44
47
|
component: ComponentResponseData_1.ComponentResponseData.optional(),
|
|
48
|
+
defaultPlan: core.serialization.property("default_plan", PlanDetailResponseData_1.PlanDetailResponseData.optional()),
|
|
45
49
|
featureUsage: core.serialization.property("feature_usage", FeatureUsageDetailResponseData_1.FeatureUsageDetailResponseData.optional()),
|
|
46
50
|
invoices: core.serialization.list(InvoiceResponseData_1.InvoiceResponseData),
|
|
47
51
|
stripeEmbed: core.serialization.property("stripe_embed", StripeEmbedInfo_1.StripeEmbedInfo.optional()),
|
|
48
52
|
subscription: CompanySubscriptionResponseData_1.CompanySubscriptionResponseData.optional(),
|
|
53
|
+
trialPaymentMethodRequired: core.serialization.property("trial_payment_method_required", core.serialization.boolean().optional()),
|
|
49
54
|
upcomingInvoice: core.serialization.property("upcoming_invoice", InvoiceResponseData_1.InvoiceResponseData.optional()),
|
|
50
55
|
});
|
|
@@ -0,0 +1,19 @@
|
|
|
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 CouponRequestBody: core.serialization.ObjectSchema<serializers.CouponRequestBody.Raw, Schematic.CouponRequestBody>;
|
|
8
|
+
export declare namespace CouponRequestBody {
|
|
9
|
+
interface Raw {
|
|
10
|
+
amount_off: number;
|
|
11
|
+
currency?: string | null;
|
|
12
|
+
duration: string;
|
|
13
|
+
duration_in_months: number;
|
|
14
|
+
max_redemptions: number;
|
|
15
|
+
name: string;
|
|
16
|
+
percent_off: number;
|
|
17
|
+
times_redeemed: number;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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.CouponRequestBody = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.CouponRequestBody = core.serialization.object({
|
|
32
|
+
amountOff: core.serialization.property("amount_off", core.serialization.number()),
|
|
33
|
+
currency: core.serialization.string().optional(),
|
|
34
|
+
duration: core.serialization.string(),
|
|
35
|
+
durationInMonths: core.serialization.property("duration_in_months", core.serialization.number()),
|
|
36
|
+
maxRedemptions: core.serialization.property("max_redemptions", core.serialization.number()),
|
|
37
|
+
name: core.serialization.string(),
|
|
38
|
+
percentOff: core.serialization.property("percent_off", core.serialization.number()),
|
|
39
|
+
timesRedeemed: core.serialization.property("times_redeemed", core.serialization.number()),
|
|
40
|
+
});
|
|
@@ -11,7 +11,6 @@ export declare const CreateEntitlementReqCommon: core.serialization.ObjectSchema
|
|
|
11
11
|
export declare namespace CreateEntitlementReqCommon {
|
|
12
12
|
interface Raw {
|
|
13
13
|
feature_id: string;
|
|
14
|
-
metered_price_id?: string | null;
|
|
15
14
|
metric_period?: CreateEntitlementReqCommonMetricPeriod.Raw | null;
|
|
16
15
|
metric_period_month_reset?: CreateEntitlementReqCommonMetricPeriodMonthReset.Raw | null;
|
|
17
16
|
value_bool?: boolean | null;
|
|
@@ -33,7 +33,6 @@ const CreateEntitlementReqCommonMetricPeriodMonthReset_1 = require("./CreateEnti
|
|
|
33
33
|
const CreateEntitlementReqCommonValueType_1 = require("./CreateEntitlementReqCommonValueType");
|
|
34
34
|
exports.CreateEntitlementReqCommon = core.serialization.object({
|
|
35
35
|
featureId: core.serialization.property("feature_id", core.serialization.string()),
|
|
36
|
-
meteredPriceId: core.serialization.property("metered_price_id", core.serialization.string().optional()),
|
|
37
36
|
metricPeriod: core.serialization.property("metric_period", CreateEntitlementReqCommonMetricPeriod_1.CreateEntitlementReqCommonMetricPeriod.optional()),
|
|
38
37
|
metricPeriodMonthReset: core.serialization.property("metric_period_month_reset", CreateEntitlementReqCommonMetricPeriodMonthReset_1.CreateEntitlementReqCommonMetricPeriodMonthReset.optional()),
|
|
39
38
|
valueBool: core.serialization.property("value_bool", core.serialization.boolean().optional()),
|
|
@@ -6,5 +6,5 @@ import * as Schematic from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const CreateEntitlementReqCommonMetricPeriod: core.serialization.Schema<serializers.CreateEntitlementReqCommonMetricPeriod.Raw, Schematic.CreateEntitlementReqCommonMetricPeriod>;
|
|
8
8
|
export declare namespace CreateEntitlementReqCommonMetricPeriod {
|
|
9
|
-
type Raw = "all_time" | "
|
|
9
|
+
type Raw = "all_time" | "current_month" | "current_week" | "current_day";
|
|
10
10
|
}
|
|
@@ -28,4 +28,4 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.CreateEntitlementReqCommonMetricPeriod = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
exports.CreateEntitlementReqCommonMetricPeriod = core.serialization.enum_(["all_time", "
|
|
31
|
+
exports.CreateEntitlementReqCommonMetricPeriod = core.serialization.enum_(["all_time", "current_month", "current_week", "current_day"]);
|
|
@@ -6,5 +6,5 @@ import * as Schematic from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const CreateOrUpdateConditionRequestBodyMetricPeriod: core.serialization.Schema<serializers.CreateOrUpdateConditionRequestBodyMetricPeriod.Raw, Schematic.CreateOrUpdateConditionRequestBodyMetricPeriod>;
|
|
8
8
|
export declare namespace CreateOrUpdateConditionRequestBodyMetricPeriod {
|
|
9
|
-
type Raw = "all_time" | "
|
|
9
|
+
type Raw = "all_time" | "current_month" | "current_week" | "current_day";
|
|
10
10
|
}
|
|
@@ -28,4 +28,4 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.CreateOrUpdateConditionRequestBodyMetricPeriod = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
exports.CreateOrUpdateConditionRequestBodyMetricPeriod = core.serialization.enum_(["all_time", "
|
|
31
|
+
exports.CreateOrUpdateConditionRequestBodyMetricPeriod = core.serialization.enum_(["all_time", "current_month", "current_week", "current_day"]);
|
|
@@ -15,9 +15,11 @@ export declare namespace FeatureCompanyResponseData {
|
|
|
15
15
|
allocation?: number | null;
|
|
16
16
|
allocation_type: FeatureCompanyResponseDataAllocationType.Raw;
|
|
17
17
|
company?: CompanyDetailResponseData.Raw | null;
|
|
18
|
+
entitlement_expiration_date?: string | null;
|
|
18
19
|
entitlement_id: string;
|
|
19
20
|
entitlement_type: string;
|
|
20
21
|
feature?: FeatureDetailResponseData.Raw | null;
|
|
22
|
+
metric_reset_at?: string | null;
|
|
21
23
|
month_reset?: string | null;
|
|
22
24
|
period?: string | null;
|
|
23
25
|
plan?: PlanResponseData.Raw | null;
|
|
@@ -37,9 +37,11 @@ exports.FeatureCompanyResponseData = core.serialization.object({
|
|
|
37
37
|
allocation: core.serialization.number().optional(),
|
|
38
38
|
allocationType: core.serialization.property("allocation_type", FeatureCompanyResponseDataAllocationType_1.FeatureCompanyResponseDataAllocationType),
|
|
39
39
|
company: CompanyDetailResponseData_1.CompanyDetailResponseData.optional(),
|
|
40
|
+
entitlementExpirationDate: core.serialization.property("entitlement_expiration_date", core.serialization.date().optional()),
|
|
40
41
|
entitlementId: core.serialization.property("entitlement_id", core.serialization.string()),
|
|
41
42
|
entitlementType: core.serialization.property("entitlement_type", core.serialization.string()),
|
|
42
43
|
feature: FeatureDetailResponseData_1.FeatureDetailResponseData.optional(),
|
|
44
|
+
metricResetAt: core.serialization.property("metric_reset_at", core.serialization.date().optional()),
|
|
43
45
|
monthReset: core.serialization.property("month_reset", core.serialization.string().optional()),
|
|
44
46
|
period: core.serialization.string().optional(),
|
|
45
47
|
plan: PlanResponseData_1.PlanResponseData.optional(),
|
|
@@ -19,6 +19,7 @@ export declare namespace FeatureCompanyUserResponseData {
|
|
|
19
19
|
entitlement_id: string;
|
|
20
20
|
entitlement_type: string;
|
|
21
21
|
feature?: FeatureDetailResponseData.Raw | null;
|
|
22
|
+
metric_reset_at?: string | null;
|
|
22
23
|
month_reset?: string | null;
|
|
23
24
|
period?: string | null;
|
|
24
25
|
plan?: PlanResponseData.Raw | null;
|
|
@@ -41,6 +41,7 @@ exports.FeatureCompanyUserResponseData = core.serialization.object({
|
|
|
41
41
|
entitlementId: core.serialization.property("entitlement_id", core.serialization.string()),
|
|
42
42
|
entitlementType: core.serialization.property("entitlement_type", core.serialization.string()),
|
|
43
43
|
feature: FeatureDetailResponseData_1.FeatureDetailResponseData.optional(),
|
|
44
|
+
metricResetAt: core.serialization.property("metric_reset_at", core.serialization.date().optional()),
|
|
44
45
|
monthReset: core.serialization.property("month_reset", core.serialization.string().optional()),
|
|
45
46
|
period: core.serialization.string().optional(),
|
|
46
47
|
plan: PlanResponseData_1.PlanResponseData.optional(),
|
|
@@ -6,6 +6,7 @@ import * as Schematic from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
import { FeatureUsageResponseDataAllocationType } from "./FeatureUsageResponseDataAllocationType";
|
|
8
8
|
import { FeatureDetailResponseData } from "./FeatureDetailResponseData";
|
|
9
|
+
import { BillingPriceView } from "./BillingPriceView";
|
|
9
10
|
import { PlanResponseData } from "./PlanResponseData";
|
|
10
11
|
export declare const FeatureUsageResponseData: core.serialization.ObjectSchema<serializers.FeatureUsageResponseData.Raw, Schematic.FeatureUsageResponseData>;
|
|
11
12
|
export declare namespace FeatureUsageResponseData {
|
|
@@ -13,12 +14,17 @@ export declare namespace FeatureUsageResponseData {
|
|
|
13
14
|
access: boolean;
|
|
14
15
|
allocation?: number | null;
|
|
15
16
|
allocation_type: FeatureUsageResponseDataAllocationType.Raw;
|
|
17
|
+
entitlement_expiration_date?: string | null;
|
|
16
18
|
entitlement_id: string;
|
|
17
19
|
entitlement_type: string;
|
|
18
20
|
feature?: FeatureDetailResponseData.Raw | null;
|
|
21
|
+
metric_reset_at?: string | null;
|
|
19
22
|
month_reset?: string | null;
|
|
23
|
+
monthly_usage_based_price?: BillingPriceView.Raw | null;
|
|
20
24
|
period?: string | null;
|
|
21
25
|
plan?: PlanResponseData.Raw | null;
|
|
26
|
+
price_behavior?: string | null;
|
|
22
27
|
usage?: number | null;
|
|
28
|
+
yearly_usage_based_price?: BillingPriceView.Raw | null;
|
|
23
29
|
}
|
|
24
30
|
}
|
|
@@ -30,16 +30,22 @@ exports.FeatureUsageResponseData = void 0;
|
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
const FeatureUsageResponseDataAllocationType_1 = require("./FeatureUsageResponseDataAllocationType");
|
|
32
32
|
const FeatureDetailResponseData_1 = require("./FeatureDetailResponseData");
|
|
33
|
+
const BillingPriceView_1 = require("./BillingPriceView");
|
|
33
34
|
const PlanResponseData_1 = require("./PlanResponseData");
|
|
34
35
|
exports.FeatureUsageResponseData = core.serialization.object({
|
|
35
36
|
access: core.serialization.boolean(),
|
|
36
37
|
allocation: core.serialization.number().optional(),
|
|
37
38
|
allocationType: core.serialization.property("allocation_type", FeatureUsageResponseDataAllocationType_1.FeatureUsageResponseDataAllocationType),
|
|
39
|
+
entitlementExpirationDate: core.serialization.property("entitlement_expiration_date", core.serialization.date().optional()),
|
|
38
40
|
entitlementId: core.serialization.property("entitlement_id", core.serialization.string()),
|
|
39
41
|
entitlementType: core.serialization.property("entitlement_type", core.serialization.string()),
|
|
40
42
|
feature: FeatureDetailResponseData_1.FeatureDetailResponseData.optional(),
|
|
43
|
+
metricResetAt: core.serialization.property("metric_reset_at", core.serialization.date().optional()),
|
|
41
44
|
monthReset: core.serialization.property("month_reset", core.serialization.string().optional()),
|
|
45
|
+
monthlyUsageBasedPrice: core.serialization.property("monthly_usage_based_price", BillingPriceView_1.BillingPriceView.optional()),
|
|
42
46
|
period: core.serialization.string().optional(),
|
|
43
47
|
plan: PlanResponseData_1.PlanResponseData.optional(),
|
|
48
|
+
priceBehavior: core.serialization.property("price_behavior", core.serialization.string().optional()),
|
|
44
49
|
usage: core.serialization.number().optional(),
|
|
50
|
+
yearlyUsageBasedPrice: core.serialization.property("yearly_usage_based_price", BillingPriceView_1.BillingPriceView.optional()),
|
|
45
51
|
});
|
|
@@ -16,13 +16,15 @@ export declare namespace PlanEntitlementResponseData {
|
|
|
16
16
|
feature?: FeatureResponseData.Raw | null;
|
|
17
17
|
feature_id: string;
|
|
18
18
|
id: string;
|
|
19
|
-
|
|
19
|
+
metered_monthly_price?: BillingPriceView.Raw | null;
|
|
20
|
+
metered_yearly_price?: BillingPriceView.Raw | null;
|
|
20
21
|
metric_period?: string | null;
|
|
21
22
|
metric_period_month_reset?: string | null;
|
|
22
23
|
plan?: PlanResponseData.Raw | null;
|
|
23
24
|
plan_id: string;
|
|
24
25
|
price_behavior?: string | null;
|
|
25
26
|
rule_id: string;
|
|
27
|
+
rule_id_usage_exceeded?: string | null;
|
|
26
28
|
updated_at: string;
|
|
27
29
|
value_bool?: boolean | null;
|
|
28
30
|
value_numeric?: number | null;
|
|
@@ -38,13 +38,15 @@ exports.PlanEntitlementResponseData = core.serialization.object({
|
|
|
38
38
|
feature: FeatureResponseData_1.FeatureResponseData.optional(),
|
|
39
39
|
featureId: core.serialization.property("feature_id", core.serialization.string()),
|
|
40
40
|
id: core.serialization.string(),
|
|
41
|
-
|
|
41
|
+
meteredMonthlyPrice: core.serialization.property("metered_monthly_price", BillingPriceView_1.BillingPriceView.optional()),
|
|
42
|
+
meteredYearlyPrice: core.serialization.property("metered_yearly_price", BillingPriceView_1.BillingPriceView.optional()),
|
|
42
43
|
metricPeriod: core.serialization.property("metric_period", core.serialization.string().optional()),
|
|
43
44
|
metricPeriodMonthReset: core.serialization.property("metric_period_month_reset", core.serialization.string().optional()),
|
|
44
45
|
plan: PlanResponseData_1.PlanResponseData.optional(),
|
|
45
46
|
planId: core.serialization.property("plan_id", core.serialization.string()),
|
|
46
47
|
priceBehavior: core.serialization.property("price_behavior", core.serialization.string().optional()),
|
|
47
48
|
ruleId: core.serialization.property("rule_id", core.serialization.string()),
|
|
49
|
+
ruleIdUsageExceeded: core.serialization.property("rule_id_usage_exceeded", core.serialization.string().optional()),
|
|
48
50
|
updatedAt: core.serialization.property("updated_at", core.serialization.date()),
|
|
49
51
|
valueBool: core.serialization.property("value_bool", core.serialization.boolean().optional()),
|
|
50
52
|
valueNumeric: core.serialization.property("value_numeric", core.serialization.number().optional()),
|
|
@@ -0,0 +1,19 @@
|
|
|
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 PreviewSubscriptionChangeResponseData: core.serialization.ObjectSchema<serializers.PreviewSubscriptionChangeResponseData.Raw, Schematic.PreviewSubscriptionChangeResponseData>;
|
|
8
|
+
export declare namespace PreviewSubscriptionChangeResponseData {
|
|
9
|
+
interface Raw {
|
|
10
|
+
amount_off: number;
|
|
11
|
+
due_now: number;
|
|
12
|
+
new_charges: number;
|
|
13
|
+
percent_off: number;
|
|
14
|
+
period_start: string;
|
|
15
|
+
promo_code_applied: boolean;
|
|
16
|
+
proration: number;
|
|
17
|
+
trial_end?: string | null;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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.PreviewSubscriptionChangeResponseData = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.PreviewSubscriptionChangeResponseData = core.serialization.object({
|
|
32
|
+
amountOff: core.serialization.property("amount_off", core.serialization.number()),
|
|
33
|
+
dueNow: core.serialization.property("due_now", core.serialization.number()),
|
|
34
|
+
newCharges: core.serialization.property("new_charges", core.serialization.number()),
|
|
35
|
+
percentOff: core.serialization.property("percent_off", core.serialization.number()),
|
|
36
|
+
periodStart: core.serialization.property("period_start", core.serialization.date()),
|
|
37
|
+
promoCodeApplied: core.serialization.property("promo_code_applied", core.serialization.boolean()),
|
|
38
|
+
proration: core.serialization.number(),
|
|
39
|
+
trialEnd: core.serialization.property("trial_end", core.serialization.date().optional()),
|
|
40
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
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 UpdateAddOnRequestBody: core.serialization.ObjectSchema<serializers.UpdateAddOnRequestBody.Raw, Schematic.UpdateAddOnRequestBody>;
|
|
8
|
+
export declare namespace UpdateAddOnRequestBody {
|
|
9
|
+
interface Raw {
|
|
10
|
+
add_on_id: string;
|
|
11
|
+
price_id: string;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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.UpdateAddOnRequestBody = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.UpdateAddOnRequestBody = core.serialization.object({
|
|
32
|
+
addOnId: core.serialization.property("add_on_id", core.serialization.string()),
|
|
33
|
+
priceId: core.serialization.property("price_id", core.serialization.string()),
|
|
34
|
+
});
|
|
@@ -10,7 +10,6 @@ import { UpdateEntitlementReqCommonValueType } from "./UpdateEntitlementReqCommo
|
|
|
10
10
|
export declare const UpdateEntitlementReqCommon: core.serialization.ObjectSchema<serializers.UpdateEntitlementReqCommon.Raw, Schematic.UpdateEntitlementReqCommon>;
|
|
11
11
|
export declare namespace UpdateEntitlementReqCommon {
|
|
12
12
|
interface Raw {
|
|
13
|
-
metered_price_id?: string | null;
|
|
14
13
|
metric_period?: UpdateEntitlementReqCommonMetricPeriod.Raw | null;
|
|
15
14
|
metric_period_month_reset?: UpdateEntitlementReqCommonMetricPeriodMonthReset.Raw | null;
|
|
16
15
|
value_bool?: boolean | null;
|
|
@@ -32,7 +32,6 @@ const UpdateEntitlementReqCommonMetricPeriod_1 = require("./UpdateEntitlementReq
|
|
|
32
32
|
const UpdateEntitlementReqCommonMetricPeriodMonthReset_1 = require("./UpdateEntitlementReqCommonMetricPeriodMonthReset");
|
|
33
33
|
const UpdateEntitlementReqCommonValueType_1 = require("./UpdateEntitlementReqCommonValueType");
|
|
34
34
|
exports.UpdateEntitlementReqCommon = core.serialization.object({
|
|
35
|
-
meteredPriceId: core.serialization.property("metered_price_id", core.serialization.string().optional()),
|
|
36
35
|
metricPeriod: core.serialization.property("metric_period", UpdateEntitlementReqCommonMetricPeriod_1.UpdateEntitlementReqCommonMetricPeriod.optional()),
|
|
37
36
|
metricPeriodMonthReset: core.serialization.property("metric_period_month_reset", UpdateEntitlementReqCommonMetricPeriodMonthReset_1.UpdateEntitlementReqCommonMetricPeriodMonthReset.optional()),
|
|
38
37
|
valueBool: core.serialization.property("value_bool", core.serialization.boolean().optional()),
|
|
@@ -6,5 +6,5 @@ import * as Schematic from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const UpdateEntitlementReqCommonMetricPeriod: core.serialization.Schema<serializers.UpdateEntitlementReqCommonMetricPeriod.Raw, Schematic.UpdateEntitlementReqCommonMetricPeriod>;
|
|
8
8
|
export declare namespace UpdateEntitlementReqCommonMetricPeriod {
|
|
9
|
-
type Raw = "all_time" | "
|
|
9
|
+
type Raw = "all_time" | "current_month" | "current_week" | "current_day";
|
|
10
10
|
}
|
|
@@ -28,4 +28,4 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.UpdateEntitlementReqCommonMetricPeriod = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
exports.UpdateEntitlementReqCommonMetricPeriod = core.serialization.enum_(["all_time", "
|
|
31
|
+
exports.UpdateEntitlementReqCommonMetricPeriod = core.serialization.enum_(["all_time", "current_month", "current_week", "current_day"]);
|
|
@@ -0,0 +1,13 @@
|
|
|
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 UpdatePayInAdvanceRequestBody: core.serialization.ObjectSchema<serializers.UpdatePayInAdvanceRequestBody.Raw, Schematic.UpdatePayInAdvanceRequestBody>;
|
|
8
|
+
export declare namespace UpdatePayInAdvanceRequestBody {
|
|
9
|
+
interface Raw {
|
|
10
|
+
price_id: string;
|
|
11
|
+
quantity: number;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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.UpdatePayInAdvanceRequestBody = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.UpdatePayInAdvanceRequestBody = core.serialization.object({
|
|
32
|
+
priceId: core.serialization.property("price_id", core.serialization.string()),
|
|
33
|
+
quantity: core.serialization.number(),
|
|
34
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Schematic from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const UsageBasedEntitlementRequestBody: core.serialization.ObjectSchema<serializers.UsageBasedEntitlementRequestBody.Raw, Schematic.UsageBasedEntitlementRequestBody>;
|
|
8
|
+
export declare namespace UsageBasedEntitlementRequestBody {
|
|
9
|
+
interface Raw {
|
|
10
|
+
monthly_metered_price_id?: string | null;
|
|
11
|
+
price_behavior?: string | null;
|
|
12
|
+
yearly_metered_price_id?: string | null;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.UsageBasedEntitlementRequestBody = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.UsageBasedEntitlementRequestBody = core.serialization.object({
|
|
32
|
+
monthlyMeteredPriceId: core.serialization.property("monthly_metered_price_id", core.serialization.string().optional()),
|
|
33
|
+
priceBehavior: core.serialization.property("price_behavior", core.serialization.string().optional()),
|
|
34
|
+
yearlyMeteredPriceId: core.serialization.property("yearly_metered_price_id", core.serialization.string().optional()),
|
|
35
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
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 { BillingPriceView } from "./BillingPriceView";
|
|
8
|
+
export declare const UsageBasedEntitlementResponseData: core.serialization.ObjectSchema<serializers.UsageBasedEntitlementResponseData.Raw, Schematic.UsageBasedEntitlementResponseData>;
|
|
9
|
+
export declare namespace UsageBasedEntitlementResponseData {
|
|
10
|
+
interface Raw {
|
|
11
|
+
feature_id: string;
|
|
12
|
+
metered_price?: BillingPriceView.Raw | null;
|
|
13
|
+
metric_period?: string | null;
|
|
14
|
+
metric_period_month_reset?: string | null;
|
|
15
|
+
price_behavior?: string | null;
|
|
16
|
+
value_bool?: boolean | null;
|
|
17
|
+
value_numeric?: number | null;
|
|
18
|
+
value_type: string;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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.UsageBasedEntitlementResponseData = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
const BillingPriceView_1 = require("./BillingPriceView");
|
|
32
|
+
exports.UsageBasedEntitlementResponseData = core.serialization.object({
|
|
33
|
+
featureId: core.serialization.property("feature_id", core.serialization.string()),
|
|
34
|
+
meteredPrice: core.serialization.property("metered_price", BillingPriceView_1.BillingPriceView.optional()),
|
|
35
|
+
metricPeriod: core.serialization.property("metric_period", core.serialization.string().optional()),
|
|
36
|
+
metricPeriodMonthReset: core.serialization.property("metric_period_month_reset", core.serialization.string().optional()),
|
|
37
|
+
priceBehavior: core.serialization.property("price_behavior", core.serialization.string().optional()),
|
|
38
|
+
valueBool: core.serialization.property("value_bool", core.serialization.boolean().optional()),
|
|
39
|
+
valueNumeric: core.serialization.property("value_numeric", core.serialization.number().optional()),
|
|
40
|
+
valueType: core.serialization.property("value_type", core.serialization.string()),
|
|
41
|
+
});
|