@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
|
@@ -6,5 +6,5 @@ import * as Schematic from "../../../../api/index";
|
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
export declare const CreateCompanyOverrideRequestBodyMetricPeriod: core.serialization.Schema<serializers.CreateCompanyOverrideRequestBodyMetricPeriod.Raw, Schematic.CreateCompanyOverrideRequestBodyMetricPeriod>;
|
|
8
8
|
export declare namespace CreateCompanyOverrideRequestBodyMetricPeriod {
|
|
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.CreateCompanyOverrideRequestBodyMetricPeriod = void 0;
|
|
30
30
|
const core = __importStar(require("../../../../core"));
|
|
31
|
-
exports.CreateCompanyOverrideRequestBodyMetricPeriod = core.serialization.enum_(["all_time", "
|
|
31
|
+
exports.CreateCompanyOverrideRequestBodyMetricPeriod = 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 CreatePlanEntitlementRequestBodyMetricPeriod: core.serialization.Schema<serializers.CreatePlanEntitlementRequestBodyMetricPeriod.Raw, Schematic.CreatePlanEntitlementRequestBodyMetricPeriod>;
|
|
8
8
|
export declare namespace CreatePlanEntitlementRequestBodyMetricPeriod {
|
|
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.CreatePlanEntitlementRequestBodyMetricPeriod = void 0;
|
|
30
30
|
const core = __importStar(require("../../../../core"));
|
|
31
|
-
exports.CreatePlanEntitlementRequestBodyMetricPeriod = core.serialization.enum_(["all_time", "
|
|
31
|
+
exports.CreatePlanEntitlementRequestBodyMetricPeriod = core.serialization.enum_(["all_time", "current_month", "current_week", "current_day"]);
|
|
@@ -37,4 +37,5 @@ exports.ListCompanyOverridesParams = core.serialization.object({
|
|
|
37
37
|
limit: core.serialization.number().optional(),
|
|
38
38
|
offset: core.serialization.number().optional(),
|
|
39
39
|
q: core.serialization.string().optional(),
|
|
40
|
+
withoutExpired: core.serialization.property("without_expired", core.serialization.boolean().optional()),
|
|
40
41
|
});
|
|
@@ -6,5 +6,5 @@ import * as Schematic from "../../../../api/index";
|
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
export declare const UpdateCompanyOverrideRequestBodyMetricPeriod: core.serialization.Schema<serializers.UpdateCompanyOverrideRequestBodyMetricPeriod.Raw, Schematic.UpdateCompanyOverrideRequestBodyMetricPeriod>;
|
|
8
8
|
export declare namespace UpdateCompanyOverrideRequestBodyMetricPeriod {
|
|
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.UpdateCompanyOverrideRequestBodyMetricPeriod = void 0;
|
|
30
30
|
const core = __importStar(require("../../../../core"));
|
|
31
|
-
exports.UpdateCompanyOverrideRequestBodyMetricPeriod = core.serialization.enum_(["all_time", "
|
|
31
|
+
exports.UpdateCompanyOverrideRequestBodyMetricPeriod = 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 UpdatePlanEntitlementRequestBodyMetricPeriod: core.serialization.Schema<serializers.UpdatePlanEntitlementRequestBodyMetricPeriod.Raw, Schematic.UpdatePlanEntitlementRequestBodyMetricPeriod>;
|
|
8
8
|
export declare namespace UpdatePlanEntitlementRequestBodyMetricPeriod {
|
|
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.UpdatePlanEntitlementRequestBodyMetricPeriod = void 0;
|
|
30
30
|
const core = __importStar(require("../../../../core"));
|
|
31
|
-
exports.UpdatePlanEntitlementRequestBodyMetricPeriod = core.serialization.enum_(["all_time", "
|
|
31
|
+
exports.UpdatePlanEntitlementRequestBodyMetricPeriod = core.serialization.enum_(["all_time", "current_month", "current_week", "current_day"]);
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export * from "./CreateEventBatchResponse";
|
|
2
2
|
export * from "./GetEventSummariesParams";
|
|
3
3
|
export * from "./GetEventSummariesResponse";
|
|
4
|
-
export * from "./GetEventSummaryBySubtypeResponse";
|
|
5
4
|
export * from "./ListEventsParams";
|
|
6
5
|
export * from "./ListEventsResponse";
|
|
7
6
|
export * from "./CreateEventResponse";
|
|
@@ -17,7 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./CreateEventBatchResponse"), exports);
|
|
18
18
|
__exportStar(require("./GetEventSummariesParams"), exports);
|
|
19
19
|
__exportStar(require("./GetEventSummariesResponse"), exports);
|
|
20
|
-
__exportStar(require("./GetEventSummaryBySubtypeResponse"), exports);
|
|
21
20
|
__exportStar(require("./ListEventsParams"), exports);
|
|
22
21
|
__exportStar(require("./ListEventsResponse"), exports);
|
|
23
22
|
__exportStar(require("./CreateEventResponse"), exports);
|
|
@@ -4,18 +4,20 @@ export * as features from "./features";
|
|
|
4
4
|
export * from "./features/types";
|
|
5
5
|
export * as billing from "./billing";
|
|
6
6
|
export * from "./billing/types";
|
|
7
|
+
export * as checkout from "./checkout";
|
|
8
|
+
export * from "./checkout/types";
|
|
7
9
|
export * as companies from "./companies";
|
|
8
10
|
export * from "./companies/types";
|
|
9
11
|
export * as entitlements from "./entitlements";
|
|
10
12
|
export * from "./entitlements/types";
|
|
13
|
+
export * as plans from "./plans";
|
|
14
|
+
export * from "./plans/types";
|
|
11
15
|
export * as components from "./components";
|
|
12
16
|
export * from "./components/types";
|
|
13
17
|
export * as crm from "./crm";
|
|
14
18
|
export * from "./crm/types";
|
|
15
19
|
export * as events from "./events";
|
|
16
20
|
export * from "./events/types";
|
|
17
|
-
export * as plans from "./plans";
|
|
18
|
-
export * from "./plans/types";
|
|
19
21
|
export * as plangroups from "./plangroups";
|
|
20
22
|
export * from "./plangroups/types";
|
|
21
23
|
export * as accesstokens from "./accesstokens";
|
|
@@ -25,12 +27,13 @@ export * from "./webhooks/types";
|
|
|
25
27
|
export * from "./accounts/client/requests";
|
|
26
28
|
export * from "./features/client/requests";
|
|
27
29
|
export * from "./billing/client/requests";
|
|
30
|
+
export * from "./checkout/client/requests";
|
|
28
31
|
export * from "./companies/client/requests";
|
|
29
32
|
export * from "./entitlements/client/requests";
|
|
33
|
+
export * from "./plans/client/requests";
|
|
30
34
|
export * from "./components/client/requests";
|
|
31
35
|
export * from "./crm/client/requests";
|
|
32
36
|
export * from "./events/client/requests";
|
|
33
|
-
export * from "./plans/client/requests";
|
|
34
37
|
export * from "./plangroups/client/requests";
|
|
35
38
|
export * from "./accesstokens/client/requests";
|
|
36
39
|
export * from "./webhooks/client/requests";
|
|
@@ -26,25 +26,27 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.webhooks = exports.accesstokens = exports.plangroups = exports.
|
|
29
|
+
exports.webhooks = exports.accesstokens = exports.plangroups = exports.events = exports.crm = exports.components = exports.plans = exports.entitlements = exports.companies = exports.checkout = exports.billing = exports.features = exports.accounts = void 0;
|
|
30
30
|
exports.accounts = __importStar(require("./accounts"));
|
|
31
31
|
__exportStar(require("./accounts/types"), exports);
|
|
32
32
|
exports.features = __importStar(require("./features"));
|
|
33
33
|
__exportStar(require("./features/types"), exports);
|
|
34
34
|
exports.billing = __importStar(require("./billing"));
|
|
35
35
|
__exportStar(require("./billing/types"), exports);
|
|
36
|
+
exports.checkout = __importStar(require("./checkout"));
|
|
37
|
+
__exportStar(require("./checkout/types"), exports);
|
|
36
38
|
exports.companies = __importStar(require("./companies"));
|
|
37
39
|
__exportStar(require("./companies/types"), exports);
|
|
38
40
|
exports.entitlements = __importStar(require("./entitlements"));
|
|
39
41
|
__exportStar(require("./entitlements/types"), exports);
|
|
42
|
+
exports.plans = __importStar(require("./plans"));
|
|
43
|
+
__exportStar(require("./plans/types"), exports);
|
|
40
44
|
exports.components = __importStar(require("./components"));
|
|
41
45
|
__exportStar(require("./components/types"), exports);
|
|
42
46
|
exports.crm = __importStar(require("./crm"));
|
|
43
47
|
__exportStar(require("./crm/types"), exports);
|
|
44
48
|
exports.events = __importStar(require("./events"));
|
|
45
49
|
__exportStar(require("./events/types"), exports);
|
|
46
|
-
exports.plans = __importStar(require("./plans"));
|
|
47
|
-
__exportStar(require("./plans/types"), exports);
|
|
48
50
|
exports.plangroups = __importStar(require("./plangroups"));
|
|
49
51
|
__exportStar(require("./plangroups/types"), exports);
|
|
50
52
|
exports.accesstokens = __importStar(require("./accesstokens"));
|
|
@@ -54,12 +56,13 @@ __exportStar(require("./webhooks/types"), exports);
|
|
|
54
56
|
__exportStar(require("./accounts/client/requests"), exports);
|
|
55
57
|
__exportStar(require("./features/client/requests"), exports);
|
|
56
58
|
__exportStar(require("./billing/client/requests"), exports);
|
|
59
|
+
__exportStar(require("./checkout/client/requests"), exports);
|
|
57
60
|
__exportStar(require("./companies/client/requests"), exports);
|
|
58
61
|
__exportStar(require("./entitlements/client/requests"), exports);
|
|
62
|
+
__exportStar(require("./plans/client/requests"), exports);
|
|
59
63
|
__exportStar(require("./components/client/requests"), exports);
|
|
60
64
|
__exportStar(require("./crm/client/requests"), exports);
|
|
61
65
|
__exportStar(require("./events/client/requests"), exports);
|
|
62
|
-
__exportStar(require("./plans/client/requests"), exports);
|
|
63
66
|
__exportStar(require("./plangroups/client/requests"), exports);
|
|
64
67
|
__exportStar(require("./accesstokens/client/requests"), exports);
|
|
65
68
|
__exportStar(require("./webhooks/client/requests"), exports);
|
|
@@ -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 UpdateCompanyPlansRequestBody: core.serialization.Schema<serializers.UpdateCompanyPlansRequestBody.Raw, Schematic.UpdateCompanyPlansRequestBody>;
|
|
8
|
+
export declare namespace UpdateCompanyPlansRequestBody {
|
|
9
|
+
interface Raw {
|
|
10
|
+
add_on_ids: string[];
|
|
11
|
+
base_plan_id?: string | null;
|
|
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.UpdateCompanyPlansRequestBody = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../../core"));
|
|
31
|
+
exports.UpdateCompanyPlansRequestBody = core.serialization.object({
|
|
32
|
+
addOnIds: core.serialization.property("add_on_ids", core.serialization.list(core.serialization.string())),
|
|
33
|
+
basePlanId: core.serialization.property("base_plan_id", core.serialization.string().optional()),
|
|
34
|
+
});
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { UpdateCompanyPlansRequestBody } from "./UpdateCompanyPlansRequestBody";
|
|
1
2
|
export { UpdateAudienceRequestBody } from "./UpdateAudienceRequestBody";
|
|
2
3
|
export { CreatePlanRequestBody } from "./CreatePlanRequestBody";
|
|
3
4
|
export { UpdatePlanRequestBody } from "./UpdatePlanRequestBody";
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpsertBillingProductRequestBody = exports.UpdatePlanRequestBody = exports.CreatePlanRequestBody = exports.UpdateAudienceRequestBody = void 0;
|
|
3
|
+
exports.UpsertBillingProductRequestBody = exports.UpdatePlanRequestBody = exports.CreatePlanRequestBody = exports.UpdateAudienceRequestBody = exports.UpdateCompanyPlansRequestBody = void 0;
|
|
4
|
+
var UpdateCompanyPlansRequestBody_1 = require("./UpdateCompanyPlansRequestBody");
|
|
5
|
+
Object.defineProperty(exports, "UpdateCompanyPlansRequestBody", { enumerable: true, get: function () { return UpdateCompanyPlansRequestBody_1.UpdateCompanyPlansRequestBody; } });
|
|
4
6
|
var UpdateAudienceRequestBody_1 = require("./UpdateAudienceRequestBody");
|
|
5
7
|
Object.defineProperty(exports, "UpdateAudienceRequestBody", { enumerable: true, get: function () { return UpdateAudienceRequestBody_1.UpdateAudienceRequestBody; } });
|
|
6
8
|
var CreatePlanRequestBody_1 = require("./CreatePlanRequestBody");
|
|
@@ -16,6 +16,7 @@ export declare namespace CountPlansParams {
|
|
|
16
16
|
plan_type?: CountPlansResponseParamsPlanType.Raw | null;
|
|
17
17
|
q?: string | null;
|
|
18
18
|
without_entitlement_for?: string | null;
|
|
19
|
+
without_paid_product_id?: boolean | null;
|
|
19
20
|
without_product_id?: boolean | null;
|
|
20
21
|
}
|
|
21
22
|
}
|
|
@@ -38,5 +38,6 @@ exports.CountPlansParams = core.serialization.object({
|
|
|
38
38
|
planType: core.serialization.property("plan_type", CountPlansResponseParamsPlanType_1.CountPlansResponseParamsPlanType.optional()),
|
|
39
39
|
q: core.serialization.string().optional(),
|
|
40
40
|
withoutEntitlementFor: core.serialization.property("without_entitlement_for", core.serialization.string().optional()),
|
|
41
|
+
withoutPaidProductId: core.serialization.property("without_paid_product_id", core.serialization.boolean().optional()),
|
|
41
42
|
withoutProductId: core.serialization.property("without_product_id", core.serialization.boolean().optional()),
|
|
42
43
|
});
|
|
@@ -16,6 +16,7 @@ export declare namespace ListPlansParams {
|
|
|
16
16
|
plan_type?: ListPlansResponseParamsPlanType.Raw | null;
|
|
17
17
|
q?: string | null;
|
|
18
18
|
without_entitlement_for?: string | null;
|
|
19
|
+
without_paid_product_id?: boolean | null;
|
|
19
20
|
without_product_id?: boolean | null;
|
|
20
21
|
}
|
|
21
22
|
}
|
|
@@ -38,5 +38,6 @@ exports.ListPlansParams = core.serialization.object({
|
|
|
38
38
|
planType: core.serialization.property("plan_type", ListPlansResponseParamsPlanType_1.ListPlansResponseParamsPlanType.optional()),
|
|
39
39
|
q: core.serialization.string().optional(),
|
|
40
40
|
withoutEntitlementFor: core.serialization.property("without_entitlement_for", core.serialization.string().optional()),
|
|
41
|
+
withoutPaidProductId: core.serialization.property("without_paid_product_id", core.serialization.boolean().optional()),
|
|
41
42
|
withoutProductId: core.serialization.property("without_product_id", core.serialization.boolean().optional()),
|
|
42
43
|
});
|
|
@@ -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
|
+
import { CompanyDetailResponseData } from "../../../types/CompanyDetailResponseData";
|
|
8
|
+
export declare const UpdateCompanyPlansResponse: core.serialization.ObjectSchema<serializers.UpdateCompanyPlansResponse.Raw, Schematic.UpdateCompanyPlansResponse>;
|
|
9
|
+
export declare namespace UpdateCompanyPlansResponse {
|
|
10
|
+
interface Raw {
|
|
11
|
+
data: CompanyDetailResponseData.Raw;
|
|
12
|
+
params: Record<string, unknown>;
|
|
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.UpdateCompanyPlansResponse = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
const CompanyDetailResponseData_1 = require("../../../types/CompanyDetailResponseData");
|
|
32
|
+
exports.UpdateCompanyPlansResponse = core.serialization.object({
|
|
33
|
+
data: CompanyDetailResponseData_1.CompanyDetailResponseData,
|
|
34
|
+
params: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
|
|
35
|
+
});
|
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./UpdateCompanyPlansResponse"), exports);
|
|
17
18
|
__exportStar(require("./GetAudienceResponse"), exports);
|
|
18
19
|
__exportStar(require("./UpdateAudienceResponse"), exports);
|
|
19
20
|
__exportStar(require("./DeleteAudienceResponse"), exports);
|
package/dist/serialization/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.d.ts
CHANGED
|
@@ -6,5 +6,5 @@ import * as Schematic from "../../../../api/index";
|
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
export declare const CreateWebhookRequestBodyRequestTypesItem: core.serialization.Schema<serializers.CreateWebhookRequestBodyRequestTypesItem.Raw, Schematic.CreateWebhookRequestBodyRequestTypesItem>;
|
|
8
8
|
export declare namespace CreateWebhookRequestBodyRequestTypesItem {
|
|
9
|
-
type Raw = "company.updated" | "user.updated" | "plan.updated" | "plan.entitlement.updated" | "company.override.updated" | "feature.updated" | "flag.updated" | "flag_rules.updated" | "company.created" | "user.created" | "plan.created" | "plan.entitlement.created" | "company.override.created" | "feature.created" | "flag.created" | "company.deleted" | "user.deleted" | "plan.deleted" | "plan.entitlement.deleted" | "company.override.deleted" | "feature.deleted" | "flag.deleted" | "test.send";
|
|
9
|
+
type Raw = "company.updated" | "user.updated" | "plan.updated" | "plan.entitlement.updated" | "company.override.updated" | "feature.updated" | "flag.updated" | "flag_rules.updated" | "company.created" | "user.created" | "plan.created" | "plan.entitlement.created" | "company.override.created" | "feature.created" | "flag.created" | "company.deleted" | "user.deleted" | "plan.deleted" | "plan.entitlement.deleted" | "company.override.deleted" | "feature.deleted" | "flag.deleted" | "test.send" | "subscription.trial.ended";
|
|
10
10
|
}
|
package/dist/serialization/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.d.ts
CHANGED
|
@@ -6,5 +6,5 @@ import * as Schematic from "../../../../api/index";
|
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
export declare const UpdateWebhookRequestBodyRequestTypesItem: core.serialization.Schema<serializers.UpdateWebhookRequestBodyRequestTypesItem.Raw, Schematic.UpdateWebhookRequestBodyRequestTypesItem>;
|
|
8
8
|
export declare namespace UpdateWebhookRequestBodyRequestTypesItem {
|
|
9
|
-
type Raw = "company.updated" | "user.updated" | "plan.updated" | "plan.entitlement.updated" | "company.override.updated" | "feature.updated" | "flag.updated" | "flag_rules.updated" | "company.created" | "user.created" | "plan.created" | "plan.entitlement.created" | "company.override.created" | "feature.created" | "flag.created" | "company.deleted" | "user.deleted" | "plan.deleted" | "plan.entitlement.deleted" | "company.override.deleted" | "feature.deleted" | "flag.deleted" | "test.send";
|
|
9
|
+
type Raw = "company.updated" | "user.updated" | "plan.updated" | "plan.entitlement.updated" | "company.override.updated" | "feature.updated" | "flag.updated" | "flag_rules.updated" | "company.created" | "user.created" | "plan.created" | "plan.entitlement.created" | "company.override.created" | "feature.created" | "flag.created" | "company.deleted" | "user.deleted" | "plan.deleted" | "plan.entitlement.deleted" | "company.override.deleted" | "feature.deleted" | "flag.deleted" | "test.send" | "subscription.trial.ended";
|
|
10
10
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
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 BillingCouponResponseData: core.serialization.ObjectSchema<serializers.BillingCouponResponseData.Raw, Schematic.BillingCouponResponseData>;
|
|
8
|
+
export declare namespace BillingCouponResponseData {
|
|
9
|
+
interface Raw {
|
|
10
|
+
account_id: string;
|
|
11
|
+
amount_off?: number | null;
|
|
12
|
+
currency?: string | null;
|
|
13
|
+
duration?: string | null;
|
|
14
|
+
duration_in_months?: number | null;
|
|
15
|
+
environment_id: string;
|
|
16
|
+
external_id: string;
|
|
17
|
+
id: string;
|
|
18
|
+
is_active: boolean;
|
|
19
|
+
max_redemptions?: number | null;
|
|
20
|
+
metadata: Record<string, unknown>;
|
|
21
|
+
name: string;
|
|
22
|
+
percent_off?: number | null;
|
|
23
|
+
times_redeemed: number;
|
|
24
|
+
valid_from?: string | null;
|
|
25
|
+
valid_until?: string | null;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
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.BillingCouponResponseData = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.BillingCouponResponseData = core.serialization.object({
|
|
32
|
+
accountId: core.serialization.property("account_id", core.serialization.string()),
|
|
33
|
+
amountOff: core.serialization.property("amount_off", core.serialization.number().optional()),
|
|
34
|
+
currency: core.serialization.string().optional(),
|
|
35
|
+
duration: core.serialization.string().optional(),
|
|
36
|
+
durationInMonths: core.serialization.property("duration_in_months", core.serialization.number().optional()),
|
|
37
|
+
environmentId: core.serialization.property("environment_id", core.serialization.string()),
|
|
38
|
+
externalId: core.serialization.property("external_id", core.serialization.string()),
|
|
39
|
+
id: core.serialization.string(),
|
|
40
|
+
isActive: core.serialization.property("is_active", core.serialization.boolean()),
|
|
41
|
+
maxRedemptions: core.serialization.property("max_redemptions", core.serialization.number().optional()),
|
|
42
|
+
metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
|
|
43
|
+
name: core.serialization.string(),
|
|
44
|
+
percentOff: core.serialization.property("percent_off", core.serialization.number().optional()),
|
|
45
|
+
timesRedeemed: core.serialization.property("times_redeemed", core.serialization.number()),
|
|
46
|
+
validFrom: core.serialization.property("valid_from", core.serialization.date().optional()),
|
|
47
|
+
validUntil: core.serialization.property("valid_until", core.serialization.date().optional()),
|
|
48
|
+
});
|
|
@@ -33,6 +33,7 @@ exports.BillingPriceView = core.serialization.object({
|
|
|
33
33
|
currency: core.serialization.string(),
|
|
34
34
|
id: core.serialization.string(),
|
|
35
35
|
interval: core.serialization.string(),
|
|
36
|
+
isActive: core.serialization.property("is_active", core.serialization.boolean()),
|
|
36
37
|
meterId: core.serialization.property("meter_id", core.serialization.string().optional()),
|
|
37
38
|
price: core.serialization.number(),
|
|
38
39
|
priceExternalId: core.serialization.property("price_external_id", core.serialization.string()),
|
|
@@ -39,6 +39,7 @@ exports.BillingProductForSubscriptionResponseData = core.serialization.object({
|
|
|
39
39
|
name: core.serialization.string(),
|
|
40
40
|
price: core.serialization.number(),
|
|
41
41
|
priceExternalId: core.serialization.property("price_external_id", core.serialization.string()),
|
|
42
|
+
priceId: core.serialization.property("price_id", core.serialization.string()),
|
|
42
43
|
quantity: core.serialization.number(),
|
|
43
44
|
subscriptionId: core.serialization.property("subscription_id", core.serialization.string()),
|
|
44
45
|
updatedAt: core.serialization.property("updated_at", core.serialization.date()),
|
|
@@ -33,6 +33,7 @@ exports.BillingProductPriceResponseData = core.serialization.object({
|
|
|
33
33
|
currency: core.serialization.string(),
|
|
34
34
|
id: core.serialization.string(),
|
|
35
35
|
interval: core.serialization.string(),
|
|
36
|
+
isActive: core.serialization.property("is_active", core.serialization.boolean()),
|
|
36
37
|
meterId: core.serialization.property("meter_id", core.serialization.string().optional()),
|
|
37
38
|
price: core.serialization.number(),
|
|
38
39
|
priceExternalId: core.serialization.property("price_external_id", core.serialization.string()),
|
|
@@ -0,0 +1,18 @@
|
|
|
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 BillingSubscriptionDiscount: core.serialization.ObjectSchema<serializers.BillingSubscriptionDiscount.Raw, Schematic.BillingSubscriptionDiscount>;
|
|
8
|
+
export declare namespace BillingSubscriptionDiscount {
|
|
9
|
+
interface Raw {
|
|
10
|
+
coupon_external_id: string;
|
|
11
|
+
customer_facing_code?: string | null;
|
|
12
|
+
ended_at?: string | null;
|
|
13
|
+
external_id: string;
|
|
14
|
+
is_active: boolean;
|
|
15
|
+
promo_code_external_id?: string | null;
|
|
16
|
+
started_at: string;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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.BillingSubscriptionDiscount = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.BillingSubscriptionDiscount = core.serialization.object({
|
|
32
|
+
couponExternalId: core.serialization.property("coupon_external_id", core.serialization.string()),
|
|
33
|
+
customerFacingCode: core.serialization.property("customer_facing_code", core.serialization.string().optional()),
|
|
34
|
+
endedAt: core.serialization.property("ended_at", core.serialization.date().optional()),
|
|
35
|
+
externalId: core.serialization.property("external_id", core.serialization.string()),
|
|
36
|
+
isActive: core.serialization.property("is_active", core.serialization.boolean()),
|
|
37
|
+
promoCodeExternalId: core.serialization.property("promo_code_external_id", core.serialization.string().optional()),
|
|
38
|
+
startedAt: core.serialization.property("started_at", core.serialization.date()),
|
|
39
|
+
});
|
|
@@ -0,0 +1,25 @@
|
|
|
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 BillingSubscriptionDiscountView: core.serialization.ObjectSchema<serializers.BillingSubscriptionDiscountView.Raw, Schematic.BillingSubscriptionDiscountView>;
|
|
8
|
+
export declare namespace BillingSubscriptionDiscountView {
|
|
9
|
+
interface Raw {
|
|
10
|
+
amount_off?: number | null;
|
|
11
|
+
coupon_id: string;
|
|
12
|
+
coupon_name: string;
|
|
13
|
+
currency?: string | null;
|
|
14
|
+
customer_facing_code?: string | null;
|
|
15
|
+
discount_external_id: string;
|
|
16
|
+
duration: string;
|
|
17
|
+
duration_in_months?: number | null;
|
|
18
|
+
ended_at?: string | null;
|
|
19
|
+
is_active: boolean;
|
|
20
|
+
percent_off?: number | null;
|
|
21
|
+
promo_code_external_id?: string | null;
|
|
22
|
+
started_at: string;
|
|
23
|
+
subscription_external_id: string;
|
|
24
|
+
}
|
|
25
|
+
}
|