@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
|
@@ -0,0 +1,46 @@
|
|
|
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.BillingSubscriptionDiscountView = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.BillingSubscriptionDiscountView = core.serialization.object({
|
|
32
|
+
amountOff: core.serialization.property("amount_off", core.serialization.number().optional()),
|
|
33
|
+
couponId: core.serialization.property("coupon_id", core.serialization.string()),
|
|
34
|
+
couponName: core.serialization.property("coupon_name", core.serialization.string()),
|
|
35
|
+
currency: core.serialization.string().optional(),
|
|
36
|
+
customerFacingCode: core.serialization.property("customer_facing_code", core.serialization.string().optional()),
|
|
37
|
+
discountExternalId: core.serialization.property("discount_external_id", core.serialization.string()),
|
|
38
|
+
duration: core.serialization.string(),
|
|
39
|
+
durationInMonths: core.serialization.property("duration_in_months", core.serialization.number().optional()),
|
|
40
|
+
endedAt: core.serialization.property("ended_at", core.serialization.date().optional()),
|
|
41
|
+
isActive: core.serialization.property("is_active", core.serialization.boolean()),
|
|
42
|
+
percentOff: core.serialization.property("percent_off", core.serialization.number().optional()),
|
|
43
|
+
promoCodeExternalId: core.serialization.property("promo_code_external_id", core.serialization.string().optional()),
|
|
44
|
+
startedAt: core.serialization.property("started_at", core.serialization.date()),
|
|
45
|
+
subscriptionExternalId: core.serialization.property("subscription_external_id", core.serialization.string()),
|
|
46
|
+
});
|
|
@@ -43,4 +43,5 @@ exports.BillingSubscriptionResponseData = core.serialization.object({
|
|
|
43
43
|
subscriptionExternalId: core.serialization.property("subscription_external_id", core.serialization.string()),
|
|
44
44
|
totalPrice: core.serialization.property("total_price", core.serialization.number()),
|
|
45
45
|
trialEnd: core.serialization.property("trial_end", core.serialization.number().optional()),
|
|
46
|
+
trialEndSetting: core.serialization.property("trial_end_setting", core.serialization.string().optional()),
|
|
46
47
|
});
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import * as serializers from "../index";
|
|
5
5
|
import * as Schematic from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
+
import { BillingSubscriptionDiscountView } from "./BillingSubscriptionDiscountView";
|
|
7
8
|
import { InvoiceResponseData } from "./InvoiceResponseData";
|
|
8
9
|
import { PaymentMethodResponseData } from "./PaymentMethodResponseData";
|
|
9
10
|
import { BillingProductForSubscriptionResponseData } from "./BillingProductForSubscriptionResponseData";
|
|
@@ -14,6 +15,7 @@ export declare namespace BillingSubscriptionView {
|
|
|
14
15
|
created_at: string;
|
|
15
16
|
currency: string;
|
|
16
17
|
customer_external_id: string;
|
|
18
|
+
discounts: BillingSubscriptionDiscountView.Raw[];
|
|
17
19
|
expired_at?: string | null;
|
|
18
20
|
id: string;
|
|
19
21
|
interval: string;
|
|
@@ -27,5 +29,6 @@ export declare namespace BillingSubscriptionView {
|
|
|
27
29
|
subscription_external_id: string;
|
|
28
30
|
total_price: number;
|
|
29
31
|
trial_end?: number | null;
|
|
32
|
+
trial_end_setting?: string | null;
|
|
30
33
|
}
|
|
31
34
|
}
|
|
@@ -28,6 +28,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.BillingSubscriptionView = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
+
const BillingSubscriptionDiscountView_1 = require("./BillingSubscriptionDiscountView");
|
|
31
32
|
const InvoiceResponseData_1 = require("./InvoiceResponseData");
|
|
32
33
|
const PaymentMethodResponseData_1 = require("./PaymentMethodResponseData");
|
|
33
34
|
const BillingProductForSubscriptionResponseData_1 = require("./BillingProductForSubscriptionResponseData");
|
|
@@ -36,6 +37,7 @@ exports.BillingSubscriptionView = core.serialization.object({
|
|
|
36
37
|
createdAt: core.serialization.property("created_at", core.serialization.date()),
|
|
37
38
|
currency: core.serialization.string(),
|
|
38
39
|
customerExternalId: core.serialization.property("customer_external_id", core.serialization.string()),
|
|
40
|
+
discounts: core.serialization.list(BillingSubscriptionDiscountView_1.BillingSubscriptionDiscountView),
|
|
39
41
|
expiredAt: core.serialization.property("expired_at", core.serialization.date().optional()),
|
|
40
42
|
id: core.serialization.string(),
|
|
41
43
|
interval: core.serialization.string(),
|
|
@@ -49,4 +51,5 @@ exports.BillingSubscriptionView = core.serialization.object({
|
|
|
49
51
|
subscriptionExternalId: core.serialization.property("subscription_external_id", core.serialization.string()),
|
|
50
52
|
totalPrice: core.serialization.property("total_price", core.serialization.number()),
|
|
51
53
|
trialEnd: core.serialization.property("trial_end", core.serialization.number().optional()),
|
|
54
|
+
trialEndSetting: core.serialization.property("trial_end_setting", core.serialization.string().optional()),
|
|
52
55
|
});
|
|
@@ -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 { UpdateAddOnRequestBody } from "./UpdateAddOnRequestBody";
|
|
8
|
+
import { UpdatePayInAdvanceRequestBody } from "./UpdatePayInAdvanceRequestBody";
|
|
9
|
+
export declare const ChangeSubscriptionInternalRequestBody: core.serialization.ObjectSchema<serializers.ChangeSubscriptionInternalRequestBody.Raw, Schematic.ChangeSubscriptionInternalRequestBody>;
|
|
10
|
+
export declare namespace ChangeSubscriptionInternalRequestBody {
|
|
11
|
+
interface Raw {
|
|
12
|
+
add_on_ids: UpdateAddOnRequestBody.Raw[];
|
|
13
|
+
company_id: string;
|
|
14
|
+
new_plan_id: string;
|
|
15
|
+
new_price_id: string;
|
|
16
|
+
pay_in_advance: UpdatePayInAdvanceRequestBody.Raw[];
|
|
17
|
+
payment_method_id?: string | null;
|
|
18
|
+
promo_code?: string | null;
|
|
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.ChangeSubscriptionInternalRequestBody = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
const UpdateAddOnRequestBody_1 = require("./UpdateAddOnRequestBody");
|
|
32
|
+
const UpdatePayInAdvanceRequestBody_1 = require("./UpdatePayInAdvanceRequestBody");
|
|
33
|
+
exports.ChangeSubscriptionInternalRequestBody = core.serialization.object({
|
|
34
|
+
addOnIds: core.serialization.property("add_on_ids", core.serialization.list(UpdateAddOnRequestBody_1.UpdateAddOnRequestBody)),
|
|
35
|
+
companyId: core.serialization.property("company_id", core.serialization.string()),
|
|
36
|
+
newPlanId: core.serialization.property("new_plan_id", core.serialization.string()),
|
|
37
|
+
newPriceId: core.serialization.property("new_price_id", core.serialization.string()),
|
|
38
|
+
payInAdvance: core.serialization.property("pay_in_advance", core.serialization.list(UpdatePayInAdvanceRequestBody_1.UpdatePayInAdvanceRequestBody)),
|
|
39
|
+
paymentMethodId: core.serialization.property("payment_method_id", core.serialization.string().optional()),
|
|
40
|
+
promoCode: core.serialization.property("promo_code", core.serialization.string().optional()),
|
|
41
|
+
});
|
|
@@ -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
|
+
import { UpdateAddOnRequestBody } from "./UpdateAddOnRequestBody";
|
|
8
|
+
import { UpdatePayInAdvanceRequestBody } from "./UpdatePayInAdvanceRequestBody";
|
|
9
|
+
export declare const ChangeSubscriptionRequestBody: core.serialization.ObjectSchema<serializers.ChangeSubscriptionRequestBody.Raw, Schematic.ChangeSubscriptionRequestBody>;
|
|
10
|
+
export declare namespace ChangeSubscriptionRequestBody {
|
|
11
|
+
interface Raw {
|
|
12
|
+
add_on_ids: UpdateAddOnRequestBody.Raw[];
|
|
13
|
+
new_plan_id: string;
|
|
14
|
+
new_price_id: string;
|
|
15
|
+
pay_in_advance: UpdatePayInAdvanceRequestBody.Raw[];
|
|
16
|
+
payment_method_id?: string | null;
|
|
17
|
+
promo_code?: 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.ChangeSubscriptionRequestBody = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
const UpdateAddOnRequestBody_1 = require("./UpdateAddOnRequestBody");
|
|
32
|
+
const UpdatePayInAdvanceRequestBody_1 = require("./UpdatePayInAdvanceRequestBody");
|
|
33
|
+
exports.ChangeSubscriptionRequestBody = core.serialization.object({
|
|
34
|
+
addOnIds: core.serialization.property("add_on_ids", core.serialization.list(UpdateAddOnRequestBody_1.UpdateAddOnRequestBody)),
|
|
35
|
+
newPlanId: core.serialization.property("new_plan_id", core.serialization.string()),
|
|
36
|
+
newPriceId: core.serialization.property("new_price_id", core.serialization.string()),
|
|
37
|
+
payInAdvance: core.serialization.property("pay_in_advance", core.serialization.list(UpdatePayInAdvanceRequestBody_1.UpdatePayInAdvanceRequestBody)),
|
|
38
|
+
paymentMethodId: core.serialization.property("payment_method_id", core.serialization.string().optional()),
|
|
39
|
+
promoCode: core.serialization.property("promo_code", core.serialization.string().optional()),
|
|
40
|
+
});
|
|
@@ -9,9 +9,15 @@ export declare namespace CheckFlagResponseData {
|
|
|
9
9
|
interface Raw {
|
|
10
10
|
company_id?: string | null;
|
|
11
11
|
error?: string | null;
|
|
12
|
+
feature_allocation?: number | null;
|
|
13
|
+
feature_usage?: number | null;
|
|
14
|
+
feature_usage_period?: string | null;
|
|
15
|
+
feature_usage_reset_at?: string | null;
|
|
16
|
+
flag: string;
|
|
12
17
|
flag_id?: string | null;
|
|
13
18
|
reason: string;
|
|
14
19
|
rule_id?: string | null;
|
|
20
|
+
rule_type?: string | null;
|
|
15
21
|
user_id?: string | null;
|
|
16
22
|
value: boolean;
|
|
17
23
|
}
|
|
@@ -31,9 +31,15 @@ const core = __importStar(require("../../core"));
|
|
|
31
31
|
exports.CheckFlagResponseData = core.serialization.object({
|
|
32
32
|
companyId: core.serialization.property("company_id", core.serialization.string().optional()),
|
|
33
33
|
error: core.serialization.string().optional(),
|
|
34
|
+
featureAllocation: core.serialization.property("feature_allocation", core.serialization.number().optional()),
|
|
35
|
+
featureUsage: core.serialization.property("feature_usage", core.serialization.number().optional()),
|
|
36
|
+
featureUsagePeriod: core.serialization.property("feature_usage_period", core.serialization.string().optional()),
|
|
37
|
+
featureUsageResetAt: core.serialization.property("feature_usage_reset_at", core.serialization.date().optional()),
|
|
38
|
+
flag: core.serialization.string(),
|
|
34
39
|
flagId: core.serialization.property("flag_id", core.serialization.string().optional()),
|
|
35
40
|
reason: core.serialization.string(),
|
|
36
41
|
ruleId: core.serialization.property("rule_id", core.serialization.string().optional()),
|
|
42
|
+
ruleType: core.serialization.property("rule_type", core.serialization.string().optional()),
|
|
37
43
|
userId: core.serialization.property("user_id", core.serialization.string().optional()),
|
|
38
44
|
value: core.serialization.boolean(),
|
|
39
45
|
});
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
import * as serializers from "../index";
|
|
5
5
|
import * as Schematic from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
-
import {
|
|
7
|
+
import { CheckFlagResponseData } from "./CheckFlagResponseData";
|
|
8
8
|
export declare const CheckFlagsResponseData: core.serialization.ObjectSchema<serializers.CheckFlagsResponseData.Raw, Schematic.CheckFlagsResponseData>;
|
|
9
9
|
export declare namespace CheckFlagsResponseData {
|
|
10
10
|
interface Raw {
|
|
11
|
-
flags:
|
|
11
|
+
flags: CheckFlagResponseData.Raw[];
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -28,7 +28,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.CheckFlagsResponseData = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
const
|
|
31
|
+
const CheckFlagResponseData_1 = require("./CheckFlagResponseData");
|
|
32
32
|
exports.CheckFlagsResponseData = core.serialization.object({
|
|
33
|
-
flags: core.serialization.list(
|
|
33
|
+
flags: core.serialization.list(CheckFlagResponseData_1.CheckFlagResponseData),
|
|
34
34
|
});
|
|
@@ -0,0 +1,22 @@
|
|
|
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 { PlanDetailResponseData } from "./PlanDetailResponseData";
|
|
8
|
+
import { UsageBasedEntitlementResponseData } from "./UsageBasedEntitlementResponseData";
|
|
9
|
+
import { CompanyDetailResponseData } from "./CompanyDetailResponseData";
|
|
10
|
+
import { FeatureUsageDetailResponseData } from "./FeatureUsageDetailResponseData";
|
|
11
|
+
import { CompanySubscriptionResponseData } from "./CompanySubscriptionResponseData";
|
|
12
|
+
export declare const CheckoutDataResponseData: core.serialization.ObjectSchema<serializers.CheckoutDataResponseData.Raw, Schematic.CheckoutDataResponseData>;
|
|
13
|
+
export declare namespace CheckoutDataResponseData {
|
|
14
|
+
interface Raw {
|
|
15
|
+
active_add_ons: PlanDetailResponseData.Raw[];
|
|
16
|
+
active_plan?: PlanDetailResponseData.Raw | null;
|
|
17
|
+
active_usage_based_entitlements: UsageBasedEntitlementResponseData.Raw[];
|
|
18
|
+
company?: CompanyDetailResponseData.Raw | null;
|
|
19
|
+
feature_usage?: FeatureUsageDetailResponseData.Raw | null;
|
|
20
|
+
subscription?: CompanySubscriptionResponseData.Raw | null;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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.CheckoutDataResponseData = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
const PlanDetailResponseData_1 = require("./PlanDetailResponseData");
|
|
32
|
+
const UsageBasedEntitlementResponseData_1 = require("./UsageBasedEntitlementResponseData");
|
|
33
|
+
const CompanyDetailResponseData_1 = require("./CompanyDetailResponseData");
|
|
34
|
+
const FeatureUsageDetailResponseData_1 = require("./FeatureUsageDetailResponseData");
|
|
35
|
+
const CompanySubscriptionResponseData_1 = require("./CompanySubscriptionResponseData");
|
|
36
|
+
exports.CheckoutDataResponseData = core.serialization.object({
|
|
37
|
+
activeAddOns: core.serialization.property("active_add_ons", core.serialization.list(PlanDetailResponseData_1.PlanDetailResponseData)),
|
|
38
|
+
activePlan: core.serialization.property("active_plan", PlanDetailResponseData_1.PlanDetailResponseData.optional()),
|
|
39
|
+
activeUsageBasedEntitlements: core.serialization.property("active_usage_based_entitlements", core.serialization.list(UsageBasedEntitlementResponseData_1.UsageBasedEntitlementResponseData)),
|
|
40
|
+
company: CompanyDetailResponseData_1.CompanyDetailResponseData.optional(),
|
|
41
|
+
featureUsage: core.serialization.property("feature_usage", FeatureUsageDetailResponseData_1.FeatureUsageDetailResponseData.optional()),
|
|
42
|
+
subscription: CompanySubscriptionResponseData_1.CompanySubscriptionResponseData.optional(),
|
|
43
|
+
});
|
|
@@ -8,6 +8,7 @@ import { CompanyPlanWithBillingSubView } from "./CompanyPlanWithBillingSubView";
|
|
|
8
8
|
import { BillingSubscriptionView } from "./BillingSubscriptionView";
|
|
9
9
|
import { EntityTraitDetailResponseData } from "./EntityTraitDetailResponseData";
|
|
10
10
|
import { EntityKeyDetailResponseData } from "./EntityKeyDetailResponseData";
|
|
11
|
+
import { CompanyEventPeriodMetricsResponseData } from "./CompanyEventPeriodMetricsResponseData";
|
|
11
12
|
import { GenericPreviewObject } from "./GenericPreviewObject";
|
|
12
13
|
export declare const CompanyDetailResponseData: core.serialization.ObjectSchema<serializers.CompanyDetailResponseData.Raw, Schematic.CompanyDetailResponseData>;
|
|
13
14
|
export declare namespace CompanyDetailResponseData {
|
|
@@ -22,6 +23,7 @@ export declare namespace CompanyDetailResponseData {
|
|
|
22
23
|
keys: EntityKeyDetailResponseData.Raw[];
|
|
23
24
|
last_seen_at?: string | null;
|
|
24
25
|
logo_url?: string | null;
|
|
26
|
+
metrics: CompanyEventPeriodMetricsResponseData.Raw[];
|
|
25
27
|
name: string;
|
|
26
28
|
plan?: CompanyPlanWithBillingSubView.Raw | null;
|
|
27
29
|
plans: GenericPreviewObject.Raw[];
|
|
@@ -32,6 +32,7 @@ const CompanyPlanWithBillingSubView_1 = require("./CompanyPlanWithBillingSubView
|
|
|
32
32
|
const BillingSubscriptionView_1 = require("./BillingSubscriptionView");
|
|
33
33
|
const EntityTraitDetailResponseData_1 = require("./EntityTraitDetailResponseData");
|
|
34
34
|
const EntityKeyDetailResponseData_1 = require("./EntityKeyDetailResponseData");
|
|
35
|
+
const CompanyEventPeriodMetricsResponseData_1 = require("./CompanyEventPeriodMetricsResponseData");
|
|
35
36
|
const GenericPreviewObject_1 = require("./GenericPreviewObject");
|
|
36
37
|
exports.CompanyDetailResponseData = core.serialization.object({
|
|
37
38
|
addOns: core.serialization.property("add_ons", core.serialization.list(CompanyPlanWithBillingSubView_1.CompanyPlanWithBillingSubView)),
|
|
@@ -44,6 +45,7 @@ exports.CompanyDetailResponseData = core.serialization.object({
|
|
|
44
45
|
keys: core.serialization.list(EntityKeyDetailResponseData_1.EntityKeyDetailResponseData),
|
|
45
46
|
lastSeenAt: core.serialization.property("last_seen_at", core.serialization.date().optional()),
|
|
46
47
|
logoUrl: core.serialization.property("logo_url", core.serialization.string().optional()),
|
|
48
|
+
metrics: core.serialization.list(CompanyEventPeriodMetricsResponseData_1.CompanyEventPeriodMetricsResponseData),
|
|
47
49
|
name: core.serialization.string(),
|
|
48
50
|
plan: CompanyPlanWithBillingSubView_1.CompanyPlanWithBillingSubView.optional(),
|
|
49
51
|
plans: core.serialization.list(GenericPreviewObject_1.GenericPreviewObject),
|
|
@@ -0,0 +1,22 @@
|
|
|
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 CompanyEventPeriodMetricsResponseData: core.serialization.ObjectSchema<serializers.CompanyEventPeriodMetricsResponseData.Raw, Schematic.CompanyEventPeriodMetricsResponseData>;
|
|
8
|
+
export declare namespace CompanyEventPeriodMetricsResponseData {
|
|
9
|
+
interface Raw {
|
|
10
|
+
account_id: string;
|
|
11
|
+
captured_at_max: string;
|
|
12
|
+
captured_at_min: string;
|
|
13
|
+
company_id: string;
|
|
14
|
+
created_at: string;
|
|
15
|
+
environment_id: string;
|
|
16
|
+
event_subtype: string;
|
|
17
|
+
month_reset: string;
|
|
18
|
+
period: string;
|
|
19
|
+
valid_until?: string | null;
|
|
20
|
+
value: number;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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.CompanyEventPeriodMetricsResponseData = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.CompanyEventPeriodMetricsResponseData = core.serialization.object({
|
|
32
|
+
accountId: core.serialization.property("account_id", core.serialization.string()),
|
|
33
|
+
capturedAtMax: core.serialization.property("captured_at_max", core.serialization.date()),
|
|
34
|
+
capturedAtMin: core.serialization.property("captured_at_min", core.serialization.date()),
|
|
35
|
+
companyId: core.serialization.property("company_id", core.serialization.string()),
|
|
36
|
+
createdAt: core.serialization.property("created_at", core.serialization.date()),
|
|
37
|
+
environmentId: core.serialization.property("environment_id", core.serialization.string()),
|
|
38
|
+
eventSubtype: core.serialization.property("event_subtype", core.serialization.string()),
|
|
39
|
+
monthReset: core.serialization.property("month_reset", core.serialization.string()),
|
|
40
|
+
period: core.serialization.string(),
|
|
41
|
+
validUntil: core.serialization.property("valid_until", core.serialization.date().optional()),
|
|
42
|
+
value: core.serialization.number(),
|
|
43
|
+
});
|
|
@@ -21,6 +21,7 @@ export declare namespace CompanyOverrideResponseData {
|
|
|
21
21
|
metric_period?: string | null;
|
|
22
22
|
metric_period_month_reset?: string | null;
|
|
23
23
|
rule_id?: string | null;
|
|
24
|
+
rule_id_usage_exceeded?: string | null;
|
|
24
25
|
updated_at: string;
|
|
25
26
|
value_bool?: boolean | null;
|
|
26
27
|
value_numeric?: number | null;
|
|
@@ -43,6 +43,7 @@ exports.CompanyOverrideResponseData = core.serialization.object({
|
|
|
43
43
|
metricPeriod: core.serialization.property("metric_period", core.serialization.string().optional()),
|
|
44
44
|
metricPeriodMonthReset: core.serialization.property("metric_period_month_reset", core.serialization.string().optional()),
|
|
45
45
|
ruleId: core.serialization.property("rule_id", core.serialization.string().optional()),
|
|
46
|
+
ruleIdUsageExceeded: core.serialization.property("rule_id_usage_exceeded", core.serialization.string().optional()),
|
|
46
47
|
updatedAt: core.serialization.property("updated_at", core.serialization.date()),
|
|
47
48
|
valueBool: core.serialization.property("value_bool", core.serialization.boolean().optional()),
|
|
48
49
|
valueNumeric: core.serialization.property("value_numeric", core.serialization.number().optional()),
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import * as serializers from "../index";
|
|
5
5
|
import * as Schematic from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
+
import { BillingSubscriptionDiscountView } from "./BillingSubscriptionDiscountView";
|
|
7
8
|
import { InvoiceResponseData } from "./InvoiceResponseData";
|
|
8
9
|
import { PaymentMethodResponseData } from "./PaymentMethodResponseData";
|
|
9
10
|
import { BillingProductForSubscriptionResponseData } from "./BillingProductForSubscriptionResponseData";
|
|
@@ -12,6 +13,7 @@ export declare namespace CompanySubscriptionResponseData {
|
|
|
12
13
|
interface Raw {
|
|
13
14
|
currency: string;
|
|
14
15
|
customer_external_id: string;
|
|
16
|
+
discounts: BillingSubscriptionDiscountView.Raw[];
|
|
15
17
|
expired_at?: string | null;
|
|
16
18
|
interval: string;
|
|
17
19
|
latest_invoice?: InvoiceResponseData.Raw | null;
|
|
@@ -20,5 +22,6 @@ export declare namespace CompanySubscriptionResponseData {
|
|
|
20
22
|
status: string;
|
|
21
23
|
subscription_external_id: string;
|
|
22
24
|
total_price: number;
|
|
25
|
+
trial_end?: string | null;
|
|
23
26
|
}
|
|
24
27
|
}
|
|
@@ -28,12 +28,14 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.CompanySubscriptionResponseData = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
+
const BillingSubscriptionDiscountView_1 = require("./BillingSubscriptionDiscountView");
|
|
31
32
|
const InvoiceResponseData_1 = require("./InvoiceResponseData");
|
|
32
33
|
const PaymentMethodResponseData_1 = require("./PaymentMethodResponseData");
|
|
33
34
|
const BillingProductForSubscriptionResponseData_1 = require("./BillingProductForSubscriptionResponseData");
|
|
34
35
|
exports.CompanySubscriptionResponseData = core.serialization.object({
|
|
35
36
|
currency: core.serialization.string(),
|
|
36
37
|
customerExternalId: core.serialization.property("customer_external_id", core.serialization.string()),
|
|
38
|
+
discounts: core.serialization.list(BillingSubscriptionDiscountView_1.BillingSubscriptionDiscountView),
|
|
37
39
|
expiredAt: core.serialization.property("expired_at", core.serialization.date().optional()),
|
|
38
40
|
interval: core.serialization.string(),
|
|
39
41
|
latestInvoice: core.serialization.property("latest_invoice", InvoiceResponseData_1.InvoiceResponseData.optional()),
|
|
@@ -42,4 +44,5 @@ exports.CompanySubscriptionResponseData = core.serialization.object({
|
|
|
42
44
|
status: core.serialization.string(),
|
|
43
45
|
subscriptionExternalId: core.serialization.property("subscription_external_id", core.serialization.string()),
|
|
44
46
|
totalPrice: core.serialization.property("total_price", core.serialization.number()),
|
|
47
|
+
trialEnd: core.serialization.property("trial_end", core.serialization.date().optional()),
|
|
45
48
|
});
|
|
@@ -9,6 +9,7 @@ import { UsageBasedEntitlementResponseData } from "./UsageBasedEntitlementRespon
|
|
|
9
9
|
import { ComponentCapabilities } from "./ComponentCapabilities";
|
|
10
10
|
import { CompanyDetailResponseData } from "./CompanyDetailResponseData";
|
|
11
11
|
import { ComponentResponseData } from "./ComponentResponseData";
|
|
12
|
+
import { PlanDetailResponseData } from "./PlanDetailResponseData";
|
|
12
13
|
import { FeatureUsageDetailResponseData } from "./FeatureUsageDetailResponseData";
|
|
13
14
|
import { StripeEmbedInfo } from "./StripeEmbedInfo";
|
|
14
15
|
import { CompanySubscriptionResponseData } from "./CompanySubscriptionResponseData";
|
|
@@ -22,9 +23,11 @@ export declare namespace ComponentHydrateResponseData {
|
|
|
22
23
|
capabilities?: ComponentCapabilities.Raw | null;
|
|
23
24
|
company?: CompanyDetailResponseData.Raw | null;
|
|
24
25
|
component?: ComponentResponseData.Raw | null;
|
|
26
|
+
default_plan?: PlanDetailResponseData.Raw | null;
|
|
25
27
|
feature_usage?: FeatureUsageDetailResponseData.Raw | null;
|
|
26
28
|
stripe_embed?: StripeEmbedInfo.Raw | null;
|
|
27
29
|
subscription?: CompanySubscriptionResponseData.Raw | null;
|
|
30
|
+
trial_payment_method_required?: boolean | null;
|
|
28
31
|
upcoming_invoice?: InvoiceResponseData.Raw | null;
|
|
29
32
|
}
|
|
30
33
|
}
|
|
@@ -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 StripeEmbedInfo_1 = require("./StripeEmbedInfo");
|
|
38
39
|
const CompanySubscriptionResponseData_1 = require("./CompanySubscriptionResponseData");
|
|
@@ -44,8 +45,10 @@ exports.ComponentHydrateResponseData = 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
|
stripeEmbed: core.serialization.property("stripe_embed", StripeEmbedInfo_1.StripeEmbedInfo.optional()),
|
|
49
51
|
subscription: CompanySubscriptionResponseData_1.CompanySubscriptionResponseData.optional(),
|
|
52
|
+
trialPaymentMethodRequired: core.serialization.property("trial_payment_method_required", core.serialization.boolean().optional()),
|
|
50
53
|
upcomingInvoice: core.serialization.property("upcoming_invoice", InvoiceResponseData_1.InvoiceResponseData.optional()),
|
|
51
54
|
});
|
|
@@ -9,6 +9,7 @@ import { UsageBasedEntitlementResponseData } from "./UsageBasedEntitlementRespon
|
|
|
9
9
|
import { ComponentCapabilities } from "./ComponentCapabilities";
|
|
10
10
|
import { CompanyDetailResponseData } from "./CompanyDetailResponseData";
|
|
11
11
|
import { ComponentResponseData } from "./ComponentResponseData";
|
|
12
|
+
import { PlanDetailResponseData } from "./PlanDetailResponseData";
|
|
12
13
|
import { FeatureUsageDetailResponseData } from "./FeatureUsageDetailResponseData";
|
|
13
14
|
import { InvoiceResponseData } from "./InvoiceResponseData";
|
|
14
15
|
import { StripeEmbedInfo } from "./StripeEmbedInfo";
|
|
@@ -22,10 +23,12 @@ export declare namespace ComponentPreviewResponseData {
|
|
|
22
23
|
capabilities?: ComponentCapabilities.Raw | null;
|
|
23
24
|
company?: CompanyDetailResponseData.Raw | null;
|
|
24
25
|
component?: ComponentResponseData.Raw | null;
|
|
26
|
+
default_plan?: PlanDetailResponseData.Raw | null;
|
|
25
27
|
feature_usage?: FeatureUsageDetailResponseData.Raw | null;
|
|
26
28
|
invoices: InvoiceResponseData.Raw[];
|
|
27
29
|
stripe_embed?: StripeEmbedInfo.Raw | null;
|
|
28
30
|
subscription?: CompanySubscriptionResponseData.Raw | null;
|
|
31
|
+
trial_payment_method_required?: boolean | null;
|
|
29
32
|
upcoming_invoice?: InvoiceResponseData.Raw | null;
|
|
30
33
|
}
|
|
31
34
|
}
|
|
@@ -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
|
+
}
|