@schematichq/schematic-typescript-node 1.1.7 → 1.1.9
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 +124 -17
- 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/index.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.js +31 -31
- 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/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.js +27 -21
- 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 -2
- package/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +0 -2
- 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 -2
- package/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +3 -2
- 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 +122 -13
- package/api/resources/plans/client/requests/CountPlansRequest.d.ts +4 -0
- package/api/resources/plans/client/requests/ListPlansRequest.d.ts +4 -0
- 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/CountPlansParams.d.ts +2 -0
- package/api/resources/plans/types/ListPlansParams.d.ts +2 -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 +19 -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/CompanySubscriptionResponseData.d.ts +2 -0
- package/api/types/ComponentHydrateResponseData.d.ts +2 -0
- package/api/types/ComponentPreviewResponseData.d.ts +2 -0
- package/api/types/CouponRequestBody.d.ts +13 -0
- package/api/types/CouponRequestBody.js +5 -0
- package/api/types/CreateEntitlementReqCommon.d.ts +0 -2
- 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/EventBodyTrack.d.ts +2 -0
- package/api/types/EventDetailResponseData.d.ts +1 -0
- package/api/types/EventResponseData.d.ts +1 -0
- package/api/types/FeatureCompanyResponseData.d.ts +1 -0
- package/api/types/FeatureUsageResponseData.d.ts +5 -1
- package/api/types/PlanEntitlementResponseData.d.ts +1 -0
- 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 -2
- 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 +2 -0
- package/api/types/index.d.ts +12 -1
- package/api/types/index.js +12 -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 +124 -17
- 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/index.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.js +31 -31
- 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/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.js +27 -21
- 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 -2
- package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +0 -2
- 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 -2
- package/dist/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +3 -2
- 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 +122 -13
- package/dist/api/resources/plans/client/requests/CountPlansRequest.d.ts +4 -0
- package/dist/api/resources/plans/client/requests/ListPlansRequest.d.ts +4 -0
- 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/CountPlansParams.d.ts +2 -0
- package/dist/api/resources/plans/types/ListPlansParams.d.ts +2 -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 +19 -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/CompanySubscriptionResponseData.d.ts +2 -0
- package/dist/api/types/ComponentHydrateResponseData.d.ts +2 -0
- package/dist/api/types/ComponentPreviewResponseData.d.ts +2 -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 -2
- 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/EventBodyTrack.d.ts +2 -0
- package/dist/api/types/EventDetailResponseData.d.ts +1 -0
- package/dist/api/types/EventResponseData.d.ts +1 -0
- package/dist/api/types/FeatureCompanyResponseData.d.ts +1 -0
- package/dist/api/types/FeatureUsageResponseData.d.ts +5 -1
- package/dist/api/types/PlanEntitlementResponseData.d.ts +1 -0
- 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 -2
- 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 +2 -0
- package/dist/api/types/index.d.ts +12 -1
- package/dist/api/types/index.js +12 -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/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 -2
- package/dist/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.js +0 -2
- package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +0 -2
- package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +0 -2
- package/dist/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +0 -2
- package/dist/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.js +0 -2
- package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +3 -2
- package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +3 -2
- 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/CountPlansParams.d.ts +1 -0
- package/dist/serialization/resources/plans/types/CountPlansParams.js +1 -0
- package/dist/serialization/resources/plans/types/ListPlansParams.d.ts +1 -0
- package/dist/serialization/resources/plans/types/ListPlansParams.js +1 -0
- 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 +6 -0
- package/dist/serialization/types/CheckFlagResponseData.js +6 -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/CompanySubscriptionResponseData.d.ts +3 -0
- package/dist/serialization/types/CompanySubscriptionResponseData.js +3 -0
- package/dist/serialization/types/ComponentHydrateResponseData.d.ts +3 -0
- package/dist/serialization/types/ComponentHydrateResponseData.js +3 -0
- package/dist/serialization/types/ComponentPreviewResponseData.d.ts +3 -0
- package/dist/serialization/types/ComponentPreviewResponseData.js +3 -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 -2
- package/dist/serialization/types/CreateEntitlementReqCommon.js +0 -2
- 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/EventBodyTrack.d.ts +1 -0
- package/dist/serialization/types/EventBodyTrack.js +1 -0
- package/dist/serialization/types/EventDetailResponseData.d.ts +1 -0
- package/dist/serialization/types/EventDetailResponseData.js +1 -0
- package/dist/serialization/types/EventResponseData.d.ts +1 -0
- package/dist/serialization/types/EventResponseData.js +1 -0
- package/dist/serialization/types/FeatureCompanyResponseData.d.ts +1 -0
- package/dist/serialization/types/FeatureCompanyResponseData.js +1 -0
- package/dist/serialization/types/FeatureUsageResponseData.d.ts +5 -0
- package/dist/serialization/types/FeatureUsageResponseData.js +5 -0
- package/dist/serialization/types/PlanEntitlementResponseData.d.ts +1 -0
- package/dist/serialization/types/PlanEntitlementResponseData.js +1 -0
- 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 -10
- package/dist/serialization/types/UpdateEntitlementReqCommon.d.ts +0 -2
- package/dist/serialization/types/UpdateEntitlementReqCommon.js +0 -2
- 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 -10
- package/dist/serialization/types/UsageBasedEntitlementRequestBody.d.ts +14 -0
- package/dist/serialization/types/UsageBasedEntitlementRequestBody.js +35 -0
- package/dist/serialization/types/UsageBasedEntitlementResponseData.d.ts +2 -0
- package/dist/serialization/types/UsageBasedEntitlementResponseData.js +2 -0
- package/dist/serialization/types/index.d.ts +12 -1
- package/dist/serialization/types/index.js +12 -1
- package/dist/wrapper.d.ts +49 -0
- package/dist/wrapper.js +36 -0
- package/package.json +1 -1
- package/reference.md +612 -344
- 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/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 -2
- package/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.js +0 -2
- package/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +0 -2
- package/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +0 -2
- package/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +0 -2
- package/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.js +0 -2
- package/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +3 -2
- package/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +3 -2
- 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/CountPlansParams.d.ts +1 -0
- package/serialization/resources/plans/types/CountPlansParams.js +1 -0
- package/serialization/resources/plans/types/ListPlansParams.d.ts +1 -0
- package/serialization/resources/plans/types/ListPlansParams.js +1 -0
- 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 +6 -0
- package/serialization/types/CheckFlagResponseData.js +6 -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/CompanySubscriptionResponseData.d.ts +3 -0
- package/serialization/types/CompanySubscriptionResponseData.js +3 -0
- package/serialization/types/ComponentHydrateResponseData.d.ts +3 -0
- package/serialization/types/ComponentHydrateResponseData.js +3 -0
- package/serialization/types/ComponentPreviewResponseData.d.ts +3 -0
- package/serialization/types/ComponentPreviewResponseData.js +3 -0
- package/serialization/types/CouponRequestBody.d.ts +19 -0
- package/serialization/types/CouponRequestBody.js +40 -0
- package/serialization/types/CreateEntitlementReqCommon.d.ts +0 -2
- package/serialization/types/CreateEntitlementReqCommon.js +0 -2
- 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/EventBodyTrack.d.ts +1 -0
- package/serialization/types/EventBodyTrack.js +1 -0
- package/serialization/types/EventDetailResponseData.d.ts +1 -0
- package/serialization/types/EventDetailResponseData.js +1 -0
- package/serialization/types/EventResponseData.d.ts +1 -0
- package/serialization/types/EventResponseData.js +1 -0
- package/serialization/types/FeatureCompanyResponseData.d.ts +1 -0
- package/serialization/types/FeatureCompanyResponseData.js +1 -0
- package/serialization/types/FeatureUsageResponseData.d.ts +5 -0
- package/serialization/types/FeatureUsageResponseData.js +5 -0
- package/serialization/types/PlanEntitlementResponseData.d.ts +1 -0
- package/serialization/types/PlanEntitlementResponseData.js +1 -0
- 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 -2
- package/serialization/types/UpdateEntitlementReqCommon.js +0 -2
- 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 +2 -0
- package/serialization/types/UsageBasedEntitlementResponseData.js +2 -0
- package/serialization/types/index.d.ts +12 -1
- package/serialization/types/index.js +12 -1
- package/wrapper.d.ts +49 -0
- package/wrapper.js +36 -0
- package/api/types/CheckFlagOutputWithFlagKey.d.ts +0 -13
- package/dist/api/types/CheckFlagOutputWithFlagKey.d.ts +0 -13
- package/dist/serialization/resources/events/types/GetEventSummaryBySubtypeResponse.d.ts +0 -14
- package/dist/serialization/types/CheckFlagOutputWithFlagKey.d.ts +0 -19
- package/serialization/resources/events/types/GetEventSummaryBySubtypeResponse.d.ts +0 -14
- package/serialization/types/CheckFlagOutputWithFlagKey.d.ts +0 -19
- /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
|
@@ -33,6 +33,7 @@ const UsageBasedEntitlementResponseData_1 = require("./UsageBasedEntitlementResp
|
|
|
33
33
|
const ComponentCapabilities_1 = require("./ComponentCapabilities");
|
|
34
34
|
const CompanyDetailResponseData_1 = require("./CompanyDetailResponseData");
|
|
35
35
|
const ComponentResponseData_1 = require("./ComponentResponseData");
|
|
36
|
+
const PlanDetailResponseData_1 = require("./PlanDetailResponseData");
|
|
36
37
|
const FeatureUsageDetailResponseData_1 = require("./FeatureUsageDetailResponseData");
|
|
37
38
|
const InvoiceResponseData_1 = require("./InvoiceResponseData");
|
|
38
39
|
const StripeEmbedInfo_1 = require("./StripeEmbedInfo");
|
|
@@ -44,9 +45,11 @@ exports.ComponentPreviewResponseData = core.serialization.object({
|
|
|
44
45
|
capabilities: ComponentCapabilities_1.ComponentCapabilities.optional(),
|
|
45
46
|
company: CompanyDetailResponseData_1.CompanyDetailResponseData.optional(),
|
|
46
47
|
component: ComponentResponseData_1.ComponentResponseData.optional(),
|
|
48
|
+
defaultPlan: core.serialization.property("default_plan", PlanDetailResponseData_1.PlanDetailResponseData.optional()),
|
|
47
49
|
featureUsage: core.serialization.property("feature_usage", FeatureUsageDetailResponseData_1.FeatureUsageDetailResponseData.optional()),
|
|
48
50
|
invoices: core.serialization.list(InvoiceResponseData_1.InvoiceResponseData),
|
|
49
51
|
stripeEmbed: core.serialization.property("stripe_embed", StripeEmbedInfo_1.StripeEmbedInfo.optional()),
|
|
50
52
|
subscription: CompanySubscriptionResponseData_1.CompanySubscriptionResponseData.optional(),
|
|
53
|
+
trialPaymentMethodRequired: core.serialization.property("trial_payment_method_required", core.serialization.boolean().optional()),
|
|
51
54
|
upcomingInvoice: core.serialization.property("upcoming_invoice", InvoiceResponseData_1.InvoiceResponseData.optional()),
|
|
52
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,8 +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_monthly_price_id?: string | null;
|
|
15
|
-
metered_yearly_price_id?: string | null;
|
|
16
14
|
metric_period?: CreateEntitlementReqCommonMetricPeriod.Raw | null;
|
|
17
15
|
metric_period_month_reset?: CreateEntitlementReqCommonMetricPeriodMonthReset.Raw | null;
|
|
18
16
|
value_bool?: boolean | null;
|
|
@@ -33,8 +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
|
-
meteredMonthlyPriceId: core.serialization.property("metered_monthly_price_id", core.serialization.string().optional()),
|
|
37
|
-
meteredYearlyPriceId: core.serialization.property("metered_yearly_price_id", core.serialization.string().optional()),
|
|
38
36
|
metricPeriod: core.serialization.property("metric_period", CreateEntitlementReqCommonMetricPeriod_1.CreateEntitlementReqCommonMetricPeriod.optional()),
|
|
39
37
|
metricPeriodMonthReset: core.serialization.property("metric_period_month_reset", CreateEntitlementReqCommonMetricPeriodMonthReset_1.CreateEntitlementReqCommonMetricPeriodMonthReset.optional()),
|
|
40
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"]);
|
|
@@ -31,6 +31,7 @@ const core = __importStar(require("../../core"));
|
|
|
31
31
|
exports.EventBodyTrack = core.serialization.object({
|
|
32
32
|
company: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(),
|
|
33
33
|
event: core.serialization.string(),
|
|
34
|
+
quantity: core.serialization.number().optional(),
|
|
34
35
|
traits: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
|
|
35
36
|
user: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(),
|
|
36
37
|
});
|
|
@@ -44,6 +44,7 @@ exports.EventDetailResponseData = core.serialization.object({
|
|
|
44
44
|
id: core.serialization.string(),
|
|
45
45
|
loadedAt: core.serialization.property("loaded_at", core.serialization.date().optional()),
|
|
46
46
|
processedAt: core.serialization.property("processed_at", core.serialization.date().optional()),
|
|
47
|
+
quantity: core.serialization.number(),
|
|
47
48
|
sentAt: core.serialization.property("sent_at", core.serialization.date().optional()),
|
|
48
49
|
status: core.serialization.string(),
|
|
49
50
|
subtype: core.serialization.string().optional(),
|
|
@@ -41,6 +41,7 @@ exports.EventResponseData = core.serialization.object({
|
|
|
41
41
|
id: core.serialization.string(),
|
|
42
42
|
loadedAt: core.serialization.property("loaded_at", core.serialization.date().optional()),
|
|
43
43
|
processedAt: core.serialization.property("processed_at", core.serialization.date().optional()),
|
|
44
|
+
quantity: core.serialization.number(),
|
|
44
45
|
sentAt: core.serialization.property("sent_at", core.serialization.date().optional()),
|
|
45
46
|
status: core.serialization.string(),
|
|
46
47
|
subtype: core.serialization.string().optional(),
|
|
@@ -15,6 +15,7 @@ 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;
|
|
@@ -37,6 +37,7 @@ 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(),
|
|
@@ -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,13 +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;
|
|
19
21
|
metric_reset_at?: string | null;
|
|
20
22
|
month_reset?: string | null;
|
|
23
|
+
monthly_usage_based_price?: BillingPriceView.Raw | null;
|
|
21
24
|
period?: string | null;
|
|
22
25
|
plan?: PlanResponseData.Raw | null;
|
|
26
|
+
price_behavior?: string | null;
|
|
23
27
|
usage?: number | null;
|
|
28
|
+
yearly_usage_based_price?: BillingPriceView.Raw | null;
|
|
24
29
|
}
|
|
25
30
|
}
|
|
@@ -30,17 +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(),
|
|
41
43
|
metricResetAt: core.serialization.property("metric_reset_at", core.serialization.date().optional()),
|
|
42
44
|
monthReset: core.serialization.property("month_reset", core.serialization.string().optional()),
|
|
45
|
+
monthlyUsageBasedPrice: core.serialization.property("monthly_usage_based_price", BillingPriceView_1.BillingPriceView.optional()),
|
|
43
46
|
period: core.serialization.string().optional(),
|
|
44
47
|
plan: PlanResponseData_1.PlanResponseData.optional(),
|
|
48
|
+
priceBehavior: core.serialization.property("price_behavior", core.serialization.string().optional()),
|
|
45
49
|
usage: core.serialization.number().optional(),
|
|
50
|
+
yearlyUsageBasedPrice: core.serialization.property("yearly_usage_based_price", BillingPriceView_1.BillingPriceView.optional()),
|
|
46
51
|
});
|
|
@@ -46,6 +46,7 @@ exports.PlanEntitlementResponseData = core.serialization.object({
|
|
|
46
46
|
planId: core.serialization.property("plan_id", core.serialization.string()),
|
|
47
47
|
priceBehavior: core.serialization.property("price_behavior", core.serialization.string().optional()),
|
|
48
48
|
ruleId: core.serialization.property("rule_id", core.serialization.string()),
|
|
49
|
+
ruleIdUsageExceeded: core.serialization.property("rule_id_usage_exceeded", core.serialization.string().optional()),
|
|
49
50
|
updatedAt: core.serialization.property("updated_at", core.serialization.date()),
|
|
50
51
|
valueBool: core.serialization.property("value_bool", core.serialization.boolean().optional()),
|
|
51
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,8 +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_monthly_price_id?: string | null;
|
|
14
|
-
metered_yearly_price_id?: string | null;
|
|
15
13
|
metric_period?: UpdateEntitlementReqCommonMetricPeriod.Raw | null;
|
|
16
14
|
metric_period_month_reset?: UpdateEntitlementReqCommonMetricPeriodMonthReset.Raw | null;
|
|
17
15
|
value_bool?: boolean | null;
|
|
@@ -32,8 +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
|
-
meteredMonthlyPriceId: core.serialization.property("metered_monthly_price_id", core.serialization.string().optional()),
|
|
36
|
-
meteredYearlyPriceId: core.serialization.property("metered_yearly_price_id", core.serialization.string().optional()),
|
|
37
35
|
metricPeriod: core.serialization.property("metric_period", UpdateEntitlementReqCommonMetricPeriod_1.UpdateEntitlementReqCommonMetricPeriod.optional()),
|
|
38
36
|
metricPeriodMonthReset: core.serialization.property("metric_period_month_reset", UpdateEntitlementReqCommonMetricPeriodMonthReset_1.UpdateEntitlementReqCommonMetricPeriodMonthReset.optional()),
|
|
39
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
|
+
});
|
|
@@ -12,9 +12,11 @@ export declare namespace UsageBasedEntitlementResponseData {
|
|
|
12
12
|
metered_price?: BillingPriceView.Raw | null;
|
|
13
13
|
metric_period?: string | null;
|
|
14
14
|
metric_period_month_reset?: string | null;
|
|
15
|
+
monthly_usage_based_price?: BillingPriceView.Raw | null;
|
|
15
16
|
price_behavior?: string | null;
|
|
16
17
|
value_bool?: boolean | null;
|
|
17
18
|
value_numeric?: number | null;
|
|
18
19
|
value_type: string;
|
|
20
|
+
yearly_usage_based_price?: BillingPriceView.Raw | null;
|
|
19
21
|
}
|
|
20
22
|
}
|
|
@@ -34,8 +34,10 @@ exports.UsageBasedEntitlementResponseData = core.serialization.object({
|
|
|
34
34
|
meteredPrice: core.serialization.property("metered_price", BillingPriceView_1.BillingPriceView.optional()),
|
|
35
35
|
metricPeriod: core.serialization.property("metric_period", core.serialization.string().optional()),
|
|
36
36
|
metricPeriodMonthReset: core.serialization.property("metric_period_month_reset", core.serialization.string().optional()),
|
|
37
|
+
monthlyUsageBasedPrice: core.serialization.property("monthly_usage_based_price", BillingPriceView_1.BillingPriceView.optional()),
|
|
37
38
|
priceBehavior: core.serialization.property("price_behavior", core.serialization.string().optional()),
|
|
38
39
|
valueBool: core.serialization.property("value_bool", core.serialization.boolean().optional()),
|
|
39
40
|
valueNumeric: core.serialization.property("value_numeric", core.serialization.number().optional()),
|
|
40
41
|
valueType: core.serialization.property("value_type", core.serialization.string()),
|
|
42
|
+
yearlyUsageBasedPrice: core.serialization.property("yearly_usage_based_price", BillingPriceView_1.BillingPriceView.optional()),
|
|
41
43
|
});
|
|
@@ -4,6 +4,7 @@ export * from "./ApiKeyRequestListResponseData";
|
|
|
4
4
|
export * from "./ApiKeyRequestResponseData";
|
|
5
5
|
export * from "./ApiKeyResponseData";
|
|
6
6
|
export * from "./AudienceRequestBody";
|
|
7
|
+
export * from "./BillingCouponResponseData";
|
|
7
8
|
export * from "./BillingCustomerResponseData";
|
|
8
9
|
export * from "./BillingCustomerSubscription";
|
|
9
10
|
export * from "./BillingCustomerWithSubscriptionsResponseData";
|
|
@@ -16,14 +17,19 @@ export * from "./BillingProductPlanResponseData";
|
|
|
16
17
|
export * from "./BillingProductPriceResponseData";
|
|
17
18
|
export * from "./BillingProductPricing";
|
|
18
19
|
export * from "./BillingProductResponseData";
|
|
20
|
+
export * from "./BillingSubscriptionDiscount";
|
|
21
|
+
export * from "./BillingSubscriptionDiscountView";
|
|
19
22
|
export * from "./BillingSubscriptionResponseData";
|
|
20
23
|
export * from "./BillingSubscriptionView";
|
|
21
|
-
export * from "./
|
|
24
|
+
export * from "./ChangeSubscriptionInternalRequestBody";
|
|
25
|
+
export * from "./ChangeSubscriptionRequestBody";
|
|
22
26
|
export * from "./CheckFlagRequestBody";
|
|
23
27
|
export * from "./CheckFlagResponseData";
|
|
24
28
|
export * from "./CheckFlagsResponseData";
|
|
29
|
+
export * from "./CheckoutDataResponseData";
|
|
25
30
|
export * from "./CompanyCrmDealsResponseData";
|
|
26
31
|
export * from "./CompanyDetailResponseData";
|
|
32
|
+
export * from "./CompanyEventPeriodMetricsResponseData";
|
|
27
33
|
export * from "./CompanyMembershipDetailResponseData";
|
|
28
34
|
export * from "./CompanyMembershipResponseData";
|
|
29
35
|
export * from "./CompanyOverrideResponseData";
|
|
@@ -36,6 +42,7 @@ export * from "./ComponentHydrateResponseData";
|
|
|
36
42
|
export * from "./ComponentPreviewResponseData";
|
|
37
43
|
export * from "./ComponentResponseData";
|
|
38
44
|
export * from "./CountResponse";
|
|
45
|
+
export * from "./CouponRequestBody";
|
|
39
46
|
export * from "./CreateEntitlementReqCommonMetricPeriod";
|
|
40
47
|
export * from "./CreateEntitlementReqCommonMetricPeriodMonthReset";
|
|
41
48
|
export * from "./CreateEntitlementReqCommonValueType";
|
|
@@ -105,6 +112,7 @@ export * from "./PlanGroupResponseData";
|
|
|
105
112
|
export * from "./PlanResponseData";
|
|
106
113
|
export * from "./PreviewObject";
|
|
107
114
|
export * from "./PreviewObjectResponseData";
|
|
115
|
+
export * from "./PreviewSubscriptionChangeResponseData";
|
|
108
116
|
export * from "./RawEventBatchResponseData";
|
|
109
117
|
export * from "./RawEventResponseData";
|
|
110
118
|
export * from "./RuleConditionDetailResponseData";
|
|
@@ -117,15 +125,18 @@ export * from "./RulesDetailResponseData";
|
|
|
117
125
|
export * from "./SegmentStatusResp";
|
|
118
126
|
export * from "./StripeEmbedInfo";
|
|
119
127
|
export * from "./TemporaryAccessTokenResponseData";
|
|
128
|
+
export * from "./UpdateAddOnRequestBody";
|
|
120
129
|
export * from "./UpdateEntitlementReqCommonMetricPeriod";
|
|
121
130
|
export * from "./UpdateEntitlementReqCommonMetricPeriodMonthReset";
|
|
122
131
|
export * from "./UpdateEntitlementReqCommonValueType";
|
|
123
132
|
export * from "./UpdateEntitlementReqCommon";
|
|
133
|
+
export * from "./UpdatePayInAdvanceRequestBody";
|
|
124
134
|
export * from "./UpdateRuleRequestBody";
|
|
125
135
|
export * from "./UpsertCompanyRequestBody";
|
|
126
136
|
export * from "./UpsertTraitRequestBody";
|
|
127
137
|
export * from "./UpsertUserRequestBody";
|
|
128
138
|
export * from "./UpsertUserSubRequestBody";
|
|
139
|
+
export * from "./UsageBasedEntitlementRequestBody";
|
|
129
140
|
export * from "./UsageBasedEntitlementResponseData";
|
|
130
141
|
export * from "./UserDetailResponseData";
|
|
131
142
|
export * from "./UserResponseData";
|