@schematichq/schematic-typescript-node 1.1.5 → 1.1.6
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.js +1 -1
- 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 +21 -5
- package/api/resources/billing/client/Client.js +167 -24
- package/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +9 -0
- package/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +4 -1
- package/api/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +4 -1
- package/api/resources/billing/client/requests/CreateMeterRequestBody.d.ts +3 -3
- package/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +9 -0
- package/api/resources/billing/client/requests/ListProductPricesRequest.d.ts +9 -0
- package/api/resources/billing/client/requests/SearchBillingPricesRequest.d.ts +20 -0
- package/api/resources/billing/client/requests/index.d.ts +1 -0
- package/api/resources/billing/types/CountBillingProductsParams.d.ts +5 -0
- package/api/resources/billing/types/ListBillingProductsParams.d.ts +5 -0
- package/api/resources/billing/types/ListProductPricesParams.d.ts +5 -0
- package/api/resources/billing/types/SearchBillingPricesParams.d.ts +15 -0
- package/api/resources/{events/types/ListMetricCountsResponse.d.ts → billing/types/SearchBillingPricesResponse.d.ts} +3 -3
- package/api/resources/billing/types/index.d.ts +2 -0
- package/api/resources/billing/types/index.js +2 -0
- package/api/resources/companies/client/Client.d.ts +2 -4
- package/api/resources/companies/client/Client.js +45 -37
- package/api/resources/companies/client/requests/GetActiveCompanySubscriptionRequest.d.ts +3 -4
- package/api/resources/companies/types/GetActiveCompanySubscriptionParams.d.ts +1 -0
- package/api/resources/components/client/Client.js +7 -7
- package/api/resources/crm/client/Client.js +5 -5
- package/api/resources/crm/client/requests/CreateCrmLineItemRequestBody.d.ts +1 -1
- package/api/resources/entitlements/client/Client.js +27 -21
- package/api/resources/entitlements/client/requests/CountPlanEntitlementsRequest.d.ts +4 -0
- package/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +3 -0
- package/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +4 -0
- package/api/resources/entitlements/client/requests/ListPlanEntitlementsRequest.d.ts +4 -0
- package/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +3 -0
- package/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +2 -0
- package/api/resources/entitlements/types/CountPlanEntitlementsParams.d.ts +2 -0
- package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +2 -1
- package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +1 -0
- package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +8 -0
- package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +10 -0
- package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +2 -1
- package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +1 -0
- package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +8 -0
- package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +10 -0
- package/api/resources/entitlements/types/ListPlanEntitlementsParams.d.ts +2 -0
- package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +2 -1
- package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +1 -0
- package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +8 -0
- package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +10 -0
- package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +2 -1
- package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +1 -0
- package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +8 -0
- package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +10 -0
- package/api/resources/entitlements/types/index.d.ts +4 -0
- package/api/resources/entitlements/types/index.js +4 -0
- package/api/resources/events/client/Client.d.ts +0 -13
- package/api/resources/events/client/Client.js +7 -140
- package/api/resources/events/client/requests/index.d.ts +0 -1
- package/api/resources/events/types/index.d.ts +0 -2
- package/api/resources/events/types/index.js +0 -2
- package/api/resources/features/client/Client.js +19 -19
- package/api/resources/plangroups/client/Client.js +3 -3
- package/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +2 -0
- package/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +2 -0
- package/api/resources/plans/client/Client.d.ts +2 -1
- package/api/resources/plans/client/Client.js +12 -11
- package/api/resources/plans/client/requests/UpsertBillingProductRequestBody.d.ts +6 -2
- package/api/resources/webhooks/client/Client.js +9 -9
- package/api/types/BillingCustomerSubscription.d.ts +3 -0
- package/api/types/BillingPriceView.d.ts +18 -0
- package/api/types/BillingProductDetailResponseData.d.ts +1 -1
- package/api/types/BillingProductForSubscriptionResponseData.d.ts +2 -1
- package/api/types/BillingProductPlanResponseData.d.ts +2 -0
- package/api/types/BillingProductPriceResponseData.d.ts +15 -0
- package/api/types/BillingProductPricing.d.ts +3 -0
- package/api/types/BillingSubscriptionResponseData.d.ts +9 -2
- package/api/types/BillingSubscriptionView.d.ts +23 -0
- package/api/types/CompanyDetailResponseData.d.ts +2 -1
- package/api/types/CompanyOverrideResponseData.d.ts +3 -1
- package/api/types/CompanyPlanDetailResponseData.d.ts +3 -0
- package/api/types/ComponentCapabilities.d.ts +6 -0
- package/api/types/ComponentHydrateResponseData.d.ts +1 -0
- package/api/types/ComponentPreviewResponseData.d.ts +1 -0
- package/api/types/CreateEntitlementReqCommon.d.ts +14 -0
- package/api/types/{CreateReqCommonMetricPeriod.d.ts → CreateEntitlementReqCommonMetricPeriod.d.ts} +3 -2
- package/api/types/{UpdateReqCommonMetricPeriod.js → CreateEntitlementReqCommonMetricPeriod.js} +3 -2
- package/api/types/CreateEntitlementReqCommonMetricPeriodMonthReset.d.ts +8 -0
- package/api/types/CreateEntitlementReqCommonMetricPeriodMonthReset.js +10 -0
- package/api/types/{CreateReqCommonValueType.d.ts → CreateEntitlementReqCommonValueType.d.ts} +2 -2
- package/api/types/{UpdateReqCommonValueType.js → CreateEntitlementReqCommonValueType.js} +2 -2
- package/api/types/CreateOrUpdateConditionRequestBody.d.ts +2 -0
- package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +2 -1
- package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +1 -0
- package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.d.ts +11 -0
- package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.js +10 -0
- package/api/types/FeatureCompanyResponseData.d.ts +2 -0
- package/api/types/FeatureCompanyUserResponseData.d.ts +2 -0
- package/api/types/FeatureUsageResponseData.d.ts +2 -0
- package/api/types/PlanDetailResponseData.d.ts +3 -0
- package/api/types/PlanEntitlementResponseData.d.ts +3 -0
- package/api/types/PlanGroupDetailResponseData.d.ts +3 -0
- package/api/types/PlanGroupPlanDetailResponseData.d.ts +3 -0
- package/api/types/PlanGroupResponseData.d.ts +2 -0
- package/api/types/{RuleConditionResourceResponseData.d.ts → PreviewObjectResponseData.d.ts} +3 -1
- package/api/types/RuleConditionDetailResponseData.d.ts +2 -1
- package/api/types/RuleConditionResponseData.d.ts +1 -0
- package/api/types/UpdateEntitlementReqCommon.d.ts +13 -0
- package/api/types/{UpdateReqCommonMetricPeriod.d.ts → UpdateEntitlementReqCommonMetricPeriod.d.ts} +3 -2
- package/{dist/api/types/CreateReqCommonMetricPeriod.js → api/types/UpdateEntitlementReqCommonMetricPeriod.js} +3 -2
- package/api/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.d.ts +8 -0
- package/api/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.js +10 -0
- package/api/types/{UpdateReqCommonValueType.d.ts → UpdateEntitlementReqCommonValueType.d.ts} +2 -2
- package/{dist/api/types/CreateReqCommonValueType.js → api/types/UpdateEntitlementReqCommonValueType.js} +2 -2
- package/api/types/index.d.ts +14 -8
- package/api/types/index.js +14 -8
- package/core/fetcher/Fetcher.d.ts +1 -1
- package/core/fetcher/getResponseBody.js +3 -0
- package/core/fetcher/requestWithRetries.js +13 -4
- package/dist/Client.js +1 -1
- 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 +21 -5
- package/dist/api/resources/billing/client/Client.js +167 -24
- package/dist/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +9 -0
- package/dist/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +4 -1
- package/dist/api/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +4 -1
- package/dist/api/resources/billing/client/requests/CreateMeterRequestBody.d.ts +3 -3
- package/dist/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +9 -0
- package/dist/api/resources/billing/client/requests/ListProductPricesRequest.d.ts +9 -0
- package/dist/api/resources/billing/client/requests/SearchBillingPricesRequest.d.ts +20 -0
- package/dist/api/resources/billing/client/requests/index.d.ts +1 -0
- package/dist/api/resources/billing/types/CountBillingProductsParams.d.ts +5 -0
- package/dist/api/resources/billing/types/ListBillingProductsParams.d.ts +5 -0
- package/dist/api/resources/billing/types/ListProductPricesParams.d.ts +5 -0
- package/dist/api/resources/billing/types/SearchBillingPricesParams.d.ts +15 -0
- package/dist/api/resources/{events/types/ListMetricCountsResponse.d.ts → billing/types/SearchBillingPricesResponse.d.ts} +3 -3
- package/dist/api/resources/billing/types/index.d.ts +2 -0
- package/dist/api/resources/billing/types/index.js +2 -0
- package/dist/api/resources/companies/client/Client.d.ts +2 -4
- package/dist/api/resources/companies/client/Client.js +45 -37
- package/dist/api/resources/companies/client/requests/GetActiveCompanySubscriptionRequest.d.ts +3 -4
- package/dist/api/resources/companies/types/GetActiveCompanySubscriptionParams.d.ts +1 -0
- package/dist/api/resources/components/client/Client.js +7 -7
- package/dist/api/resources/crm/client/Client.js +5 -5
- package/dist/api/resources/crm/client/requests/CreateCrmLineItemRequestBody.d.ts +1 -1
- package/dist/api/resources/entitlements/client/Client.js +27 -21
- package/dist/api/resources/entitlements/client/requests/CountPlanEntitlementsRequest.d.ts +4 -0
- package/dist/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +3 -0
- package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +4 -0
- package/dist/api/resources/entitlements/client/requests/ListPlanEntitlementsRequest.d.ts +4 -0
- package/dist/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +3 -0
- package/dist/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +2 -0
- package/dist/api/resources/entitlements/types/CountPlanEntitlementsParams.d.ts +2 -0
- package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +2 -1
- package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +1 -0
- package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +8 -0
- package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +10 -0
- package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +2 -1
- package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +1 -0
- package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +8 -0
- package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +10 -0
- package/dist/api/resources/entitlements/types/ListPlanEntitlementsParams.d.ts +2 -0
- package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +2 -1
- package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +1 -0
- package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +8 -0
- package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +10 -0
- package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +2 -1
- package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +1 -0
- package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +8 -0
- package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +10 -0
- package/dist/api/resources/entitlements/types/index.d.ts +4 -0
- package/dist/api/resources/entitlements/types/index.js +4 -0
- package/dist/api/resources/events/client/Client.d.ts +0 -13
- package/dist/api/resources/events/client/Client.js +7 -140
- package/dist/api/resources/events/client/requests/index.d.ts +0 -1
- package/dist/api/resources/events/types/index.d.ts +0 -2
- package/dist/api/resources/events/types/index.js +0 -2
- package/dist/api/resources/features/client/Client.js +19 -19
- package/dist/api/resources/plangroups/client/Client.js +3 -3
- package/dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +2 -0
- package/dist/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +2 -0
- package/dist/api/resources/plans/client/Client.d.ts +2 -1
- package/dist/api/resources/plans/client/Client.js +12 -11
- package/dist/api/resources/plans/client/requests/UpsertBillingProductRequestBody.d.ts +6 -2
- package/dist/api/resources/webhooks/client/Client.js +9 -9
- package/dist/api/types/BillingCustomerSubscription.d.ts +3 -0
- package/dist/api/types/BillingPriceView.d.ts +18 -0
- package/dist/api/types/BillingProductDetailResponseData.d.ts +1 -1
- package/dist/api/types/BillingProductForSubscriptionResponseData.d.ts +2 -1
- package/dist/api/types/BillingProductPlanResponseData.d.ts +2 -0
- package/dist/api/types/BillingProductPriceResponseData.d.ts +15 -0
- package/dist/api/types/BillingProductPriceResponseData.js +5 -0
- package/dist/api/types/BillingProductPricing.d.ts +3 -0
- package/dist/api/types/BillingSubscriptionResponseData.d.ts +9 -2
- package/dist/api/types/BillingSubscriptionView.d.ts +23 -0
- package/dist/api/types/BillingSubscriptionView.js +5 -0
- package/dist/api/types/CompanyDetailResponseData.d.ts +2 -1
- package/dist/api/types/CompanyOverrideResponseData.d.ts +3 -1
- package/dist/api/types/CompanyPlanDetailResponseData.d.ts +3 -0
- package/dist/api/types/ComponentCapabilities.d.ts +6 -0
- package/dist/api/types/ComponentCapabilities.js +5 -0
- package/dist/api/types/ComponentHydrateResponseData.d.ts +1 -0
- package/dist/api/types/ComponentPreviewResponseData.d.ts +1 -0
- package/dist/api/types/CreateEntitlementReqCommon.d.ts +14 -0
- package/dist/api/types/CreateEntitlementReqCommon.js +5 -0
- package/dist/api/types/{CreateReqCommonMetricPeriod.d.ts → CreateEntitlementReqCommonMetricPeriod.d.ts} +3 -2
- package/{api/types/CreateReqCommonMetricPeriod.js → dist/api/types/CreateEntitlementReqCommonMetricPeriod.js} +3 -2
- package/dist/api/types/CreateEntitlementReqCommonMetricPeriodMonthReset.d.ts +8 -0
- package/dist/api/types/CreateEntitlementReqCommonMetricPeriodMonthReset.js +10 -0
- package/dist/api/types/{CreateReqCommonValueType.d.ts → CreateEntitlementReqCommonValueType.d.ts} +2 -2
- package/dist/api/types/{UpdateReqCommonValueType.js → CreateEntitlementReqCommonValueType.js} +2 -2
- package/dist/api/types/CreateOrUpdateConditionRequestBody.d.ts +2 -0
- package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +2 -1
- package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +1 -0
- package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.d.ts +11 -0
- package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.js +10 -0
- package/dist/api/types/FeatureCompanyResponseData.d.ts +2 -0
- package/dist/api/types/FeatureCompanyUserResponseData.d.ts +2 -0
- package/dist/api/types/FeatureUsageResponseData.d.ts +2 -0
- package/dist/api/types/PlanDetailResponseData.d.ts +3 -0
- package/dist/api/types/PlanEntitlementResponseData.d.ts +3 -0
- package/dist/api/types/PlanGroupDetailResponseData.d.ts +3 -0
- package/dist/api/types/PlanGroupPlanDetailResponseData.d.ts +3 -0
- package/dist/api/types/PlanGroupResponseData.d.ts +2 -0
- package/dist/api/types/{RuleConditionResourceResponseData.d.ts → PreviewObjectResponseData.d.ts} +3 -1
- package/dist/api/types/PreviewObjectResponseData.js +5 -0
- package/dist/api/types/RuleConditionDetailResponseData.d.ts +2 -1
- package/dist/api/types/RuleConditionResponseData.d.ts +1 -0
- package/dist/api/types/UpdateEntitlementReqCommon.d.ts +13 -0
- package/dist/api/types/UpdateEntitlementReqCommon.js +5 -0
- package/dist/api/types/{UpdateReqCommonMetricPeriod.d.ts → UpdateEntitlementReqCommonMetricPeriod.d.ts} +3 -2
- package/dist/api/types/{UpdateReqCommonMetricPeriod.js → UpdateEntitlementReqCommonMetricPeriod.js} +3 -2
- package/dist/api/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.d.ts +8 -0
- package/dist/api/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.js +10 -0
- package/dist/api/types/{UpdateReqCommonValueType.d.ts → UpdateEntitlementReqCommonValueType.d.ts} +2 -2
- package/{api/types/CreateReqCommonValueType.js → dist/api/types/UpdateEntitlementReqCommonValueType.js} +2 -2
- package/dist/api/types/index.d.ts +14 -8
- package/dist/api/types/index.js +14 -8
- package/dist/core/fetcher/Fetcher.d.ts +1 -1
- package/dist/core/fetcher/getResponseBody.js +3 -0
- package/dist/core/fetcher/requestWithRetries.js +13 -4
- package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +2 -0
- package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.js +2 -0
- package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +1 -0
- package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.js +1 -0
- package/dist/serialization/resources/billing/client/requests/CreateMeterRequestBody.d.ts +3 -3
- package/dist/serialization/resources/billing/client/requests/CreateMeterRequestBody.js +3 -3
- package/dist/serialization/resources/billing/types/CountBillingProductsParams.d.ts +3 -0
- package/dist/serialization/resources/billing/types/CountBillingProductsParams.js +3 -0
- package/dist/serialization/resources/billing/types/ListBillingProductsParams.d.ts +3 -0
- package/dist/serialization/resources/billing/types/ListBillingProductsParams.js +3 -0
- package/dist/serialization/resources/billing/types/ListProductPricesParams.d.ts +3 -0
- package/dist/serialization/resources/billing/types/ListProductPricesParams.js +3 -0
- package/dist/serialization/resources/billing/types/SearchBillingPricesParams.d.ts +16 -0
- package/dist/serialization/resources/{events/types/ListMetricCountsResponse.js → billing/types/SearchBillingPricesParams.js} +7 -6
- package/dist/serialization/resources/billing/types/SearchBillingPricesResponse.d.ts +15 -0
- package/{serialization/resources/events/types/ListMetricCountsResponse.js → dist/serialization/resources/billing/types/SearchBillingPricesResponse.js} +6 -6
- package/dist/serialization/resources/billing/types/index.d.ts +2 -0
- package/dist/serialization/resources/billing/types/index.js +2 -0
- package/dist/serialization/resources/companies/types/GetActiveCompanySubscriptionParams.d.ts +1 -0
- package/dist/serialization/resources/companies/types/GetActiveCompanySubscriptionParams.js +1 -0
- package/dist/serialization/resources/crm/client/requests/CreateCrmLineItemRequestBody.d.ts +1 -1
- package/dist/serialization/resources/crm/client/requests/CreateCrmLineItemRequestBody.js +1 -1
- package/dist/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +4 -0
- package/dist/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.js +4 -0
- package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +5 -0
- package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +5 -0
- package/dist/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +4 -0
- package/dist/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.js +4 -0
- package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +3 -0
- package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +3 -0
- package/dist/serialization/resources/entitlements/types/CountPlanEntitlementsParams.d.ts +1 -0
- package/dist/serialization/resources/entitlements/types/CountPlanEntitlementsParams.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/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +10 -0
- package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +31 -0
- 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/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +10 -0
- package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +31 -0
- package/dist/serialization/resources/entitlements/types/ListPlanEntitlementsParams.d.ts +1 -0
- package/dist/serialization/resources/entitlements/types/ListPlanEntitlementsParams.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/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +10 -0
- package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +31 -0
- 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/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +10 -0
- package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +31 -0
- package/dist/serialization/resources/entitlements/types/index.d.ts +4 -0
- package/dist/serialization/resources/entitlements/types/index.js +4 -0
- package/dist/serialization/resources/events/types/index.d.ts +0 -2
- package/dist/serialization/resources/events/types/index.js +0 -2
- package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +2 -0
- package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js +2 -0
- package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +2 -0
- package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.js +2 -0
- package/dist/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.d.ts +4 -1
- package/dist/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.js +4 -1
- package/dist/serialization/types/BillingCustomerSubscription.d.ts +3 -0
- package/dist/serialization/types/BillingCustomerSubscription.js +3 -0
- package/dist/serialization/types/BillingPriceView.d.ts +24 -0
- package/dist/serialization/types/BillingPriceView.js +45 -0
- package/dist/serialization/types/BillingProductDetailResponseData.d.ts +1 -1
- package/dist/serialization/types/BillingProductDetailResponseData.js +1 -1
- package/dist/serialization/types/BillingProductForSubscriptionResponseData.d.ts +2 -1
- package/dist/serialization/types/BillingProductForSubscriptionResponseData.js +2 -1
- package/dist/serialization/types/BillingProductPlanResponseData.d.ts +2 -0
- package/dist/serialization/types/BillingProductPlanResponseData.js +2 -0
- package/dist/serialization/types/BillingProductPriceResponseData.d.ts +21 -0
- package/dist/serialization/types/{MetricCountsHourlyResponseData.js → BillingProductPriceResponseData.js} +11 -8
- package/dist/serialization/types/BillingProductPricing.d.ts +3 -0
- package/dist/serialization/types/BillingProductPricing.js +3 -0
- package/dist/serialization/types/BillingSubscriptionResponseData.d.ts +9 -2
- package/dist/serialization/types/BillingSubscriptionResponseData.js +9 -2
- package/dist/serialization/types/BillingSubscriptionView.d.ts +31 -0
- package/dist/serialization/types/BillingSubscriptionView.js +52 -0
- package/dist/serialization/types/CompanyDetailResponseData.d.ts +3 -2
- package/dist/serialization/types/CompanyDetailResponseData.js +3 -2
- package/dist/serialization/types/CompanyOverrideResponseData.d.ts +3 -1
- package/dist/serialization/types/CompanyOverrideResponseData.js +3 -1
- package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +3 -0
- package/dist/serialization/types/CompanyPlanDetailResponseData.js +3 -0
- package/dist/serialization/types/ComponentCapabilities.d.ts +12 -0
- package/dist/serialization/types/{UpdateReqCommonValueType.js → ComponentCapabilities.js} +4 -2
- package/dist/serialization/types/ComponentHydrateResponseData.d.ts +3 -1
- package/dist/serialization/types/ComponentHydrateResponseData.js +3 -1
- package/dist/serialization/types/ComponentPreviewResponseData.d.ts +3 -1
- package/dist/serialization/types/ComponentPreviewResponseData.js +3 -1
- package/dist/serialization/types/CreateEntitlementReqCommon.d.ts +22 -0
- package/{serialization/types/CreateReqCommon.js → dist/serialization/types/CreateEntitlementReqCommon.js} +9 -6
- package/dist/serialization/types/CreateEntitlementReqCommonMetricPeriod.d.ts +10 -0
- package/dist/serialization/types/{RuleConditionResourceResponseData.js → CreateEntitlementReqCommonMetricPeriod.js} +2 -5
- package/dist/serialization/types/CreateEntitlementReqCommonMetricPeriodMonthReset.d.ts +10 -0
- package/dist/serialization/types/CreateEntitlementReqCommonMetricPeriodMonthReset.js +31 -0
- package/dist/serialization/types/{UpdateReqCommonValueType.d.ts → CreateEntitlementReqCommonValueType.d.ts} +2 -2
- package/dist/serialization/types/{CreateReqCommonMetricPeriod.js → CreateEntitlementReqCommonValueType.js} +2 -2
- package/dist/serialization/types/CreateOrUpdateConditionRequestBody.d.ts +2 -0
- package/dist/serialization/types/CreateOrUpdateConditionRequestBody.js +2 -0
- package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +1 -1
- package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +1 -1
- package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.d.ts +10 -0
- package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.js +31 -0
- package/dist/serialization/types/FeatureCompanyResponseData.d.ts +1 -0
- package/dist/serialization/types/FeatureCompanyResponseData.js +1 -0
- package/dist/serialization/types/FeatureCompanyUserResponseData.d.ts +1 -0
- package/dist/serialization/types/FeatureCompanyUserResponseData.js +1 -0
- package/dist/serialization/types/FeatureUsageResponseData.d.ts +1 -0
- package/dist/serialization/types/FeatureUsageResponseData.js +1 -0
- package/dist/serialization/types/MeterRequestBody.d.ts +3 -3
- package/dist/serialization/types/MeterRequestBody.js +3 -3
- package/dist/serialization/types/PlanDetailResponseData.d.ts +3 -0
- package/dist/serialization/types/PlanDetailResponseData.js +3 -0
- package/dist/serialization/types/PlanEntitlementResponseData.d.ts +4 -0
- package/dist/serialization/types/PlanEntitlementResponseData.js +4 -0
- package/dist/serialization/types/PlanGroupDetailResponseData.d.ts +3 -0
- package/dist/serialization/types/PlanGroupDetailResponseData.js +3 -0
- package/dist/serialization/types/PlanGroupPlanDetailResponseData.d.ts +3 -0
- package/dist/serialization/types/PlanGroupPlanDetailResponseData.js +3 -0
- package/dist/serialization/types/PlanGroupResponseData.d.ts +2 -0
- package/dist/serialization/types/PlanGroupResponseData.js +2 -0
- package/dist/serialization/types/PreviewObjectResponseData.d.ts +15 -0
- package/{serialization/types/RuleConditionResourceResponseData.js → dist/serialization/types/PreviewObjectResponseData.js} +4 -2
- package/dist/serialization/types/RuleConditionDetailResponseData.d.ts +3 -2
- package/dist/serialization/types/RuleConditionDetailResponseData.js +3 -2
- package/dist/serialization/types/RuleConditionResponseData.d.ts +1 -0
- package/dist/serialization/types/RuleConditionResponseData.js +1 -0
- package/dist/serialization/types/RulesDetailResponseData.d.ts +1 -1
- package/dist/serialization/types/RulesDetailResponseData.js +1 -1
- package/dist/serialization/types/UpdateEntitlementReqCommon.d.ts +21 -0
- package/{serialization/types/UpdateReqCommon.js → dist/serialization/types/UpdateEntitlementReqCommon.js} +9 -6
- package/dist/serialization/types/UpdateEntitlementReqCommonMetricPeriod.d.ts +10 -0
- package/dist/serialization/types/UpdateEntitlementReqCommonMetricPeriod.js +31 -0
- package/dist/serialization/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.d.ts +10 -0
- package/dist/serialization/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.js +31 -0
- package/{serialization/types/CreateReqCommonValueType.d.ts → dist/serialization/types/UpdateEntitlementReqCommonValueType.d.ts} +2 -2
- package/dist/serialization/types/{UpdateReqCommonMetricPeriod.js → UpdateEntitlementReqCommonValueType.js} +2 -2
- package/dist/serialization/types/index.d.ts +14 -8
- package/dist/serialization/types/index.js +14 -8
- package/package.json +1 -2
- package/reference.md +57 -55
- package/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +2 -0
- package/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.js +2 -0
- package/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +1 -0
- package/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.js +1 -0
- package/serialization/resources/billing/client/requests/CreateMeterRequestBody.d.ts +3 -3
- package/serialization/resources/billing/client/requests/CreateMeterRequestBody.js +3 -3
- package/serialization/resources/billing/types/CountBillingProductsParams.d.ts +3 -0
- package/serialization/resources/billing/types/CountBillingProductsParams.js +3 -0
- package/serialization/resources/billing/types/ListBillingProductsParams.d.ts +3 -0
- package/serialization/resources/billing/types/ListBillingProductsParams.js +3 -0
- package/serialization/resources/billing/types/ListProductPricesParams.d.ts +3 -0
- package/serialization/resources/billing/types/ListProductPricesParams.js +3 -0
- package/serialization/resources/billing/types/SearchBillingPricesParams.d.ts +16 -0
- package/serialization/resources/billing/types/SearchBillingPricesParams.js +37 -0
- package/serialization/resources/billing/types/SearchBillingPricesResponse.d.ts +15 -0
- package/serialization/resources/billing/types/SearchBillingPricesResponse.js +36 -0
- package/serialization/resources/billing/types/index.d.ts +2 -0
- package/serialization/resources/billing/types/index.js +2 -0
- package/serialization/resources/companies/types/GetActiveCompanySubscriptionParams.d.ts +1 -0
- package/serialization/resources/companies/types/GetActiveCompanySubscriptionParams.js +1 -0
- package/serialization/resources/crm/client/requests/CreateCrmLineItemRequestBody.d.ts +1 -1
- package/serialization/resources/crm/client/requests/CreateCrmLineItemRequestBody.js +1 -1
- package/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +4 -0
- package/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.js +4 -0
- package/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +5 -0
- package/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +5 -0
- package/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +4 -0
- package/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.js +4 -0
- package/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +3 -0
- package/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +3 -0
- package/serialization/resources/entitlements/types/CountPlanEntitlementsParams.d.ts +1 -0
- package/serialization/resources/entitlements/types/CountPlanEntitlementsParams.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/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +10 -0
- package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +31 -0
- package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
- package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +1 -1
- package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +10 -0
- package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +31 -0
- package/serialization/resources/entitlements/types/ListPlanEntitlementsParams.d.ts +1 -0
- package/serialization/resources/entitlements/types/ListPlanEntitlementsParams.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/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +10 -0
- package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +31 -0
- package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
- package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +1 -1
- package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +10 -0
- package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +31 -0
- package/serialization/resources/entitlements/types/index.d.ts +4 -0
- package/serialization/resources/entitlements/types/index.js +4 -0
- package/serialization/resources/events/types/index.d.ts +0 -2
- package/serialization/resources/events/types/index.js +0 -2
- package/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +2 -0
- package/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js +2 -0
- package/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +2 -0
- package/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.js +2 -0
- package/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.d.ts +4 -1
- package/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.js +4 -1
- package/serialization/types/BillingCustomerSubscription.d.ts +3 -0
- package/serialization/types/BillingCustomerSubscription.js +3 -0
- package/serialization/types/BillingPriceView.d.ts +24 -0
- package/serialization/types/BillingPriceView.js +45 -0
- package/serialization/types/BillingProductDetailResponseData.d.ts +1 -1
- package/serialization/types/BillingProductDetailResponseData.js +1 -1
- package/serialization/types/BillingProductForSubscriptionResponseData.d.ts +2 -1
- package/serialization/types/BillingProductForSubscriptionResponseData.js +2 -1
- package/serialization/types/BillingProductPlanResponseData.d.ts +2 -0
- package/serialization/types/BillingProductPlanResponseData.js +2 -0
- package/serialization/types/BillingProductPriceResponseData.d.ts +21 -0
- package/serialization/types/{MetricCountsHourlyResponseData.js → BillingProductPriceResponseData.js} +11 -8
- package/serialization/types/BillingProductPricing.d.ts +3 -0
- package/serialization/types/BillingProductPricing.js +3 -0
- package/serialization/types/BillingSubscriptionResponseData.d.ts +9 -2
- package/serialization/types/BillingSubscriptionResponseData.js +9 -2
- package/serialization/types/BillingSubscriptionView.d.ts +31 -0
- package/serialization/types/BillingSubscriptionView.js +52 -0
- package/serialization/types/CompanyDetailResponseData.d.ts +3 -2
- package/serialization/types/CompanyDetailResponseData.js +3 -2
- package/serialization/types/CompanyOverrideResponseData.d.ts +3 -1
- package/serialization/types/CompanyOverrideResponseData.js +3 -1
- package/serialization/types/CompanyPlanDetailResponseData.d.ts +3 -0
- package/serialization/types/CompanyPlanDetailResponseData.js +3 -0
- package/serialization/types/ComponentCapabilities.d.ts +12 -0
- package/{dist/serialization/types/CreateReqCommonValueType.js → serialization/types/ComponentCapabilities.js} +4 -2
- package/serialization/types/ComponentHydrateResponseData.d.ts +3 -1
- package/serialization/types/ComponentHydrateResponseData.js +3 -1
- package/serialization/types/ComponentPreviewResponseData.d.ts +3 -1
- package/serialization/types/ComponentPreviewResponseData.js +3 -1
- package/serialization/types/CreateEntitlementReqCommon.d.ts +22 -0
- package/{dist/serialization/types/CreateReqCommon.js → serialization/types/CreateEntitlementReqCommon.js} +9 -6
- package/serialization/types/CreateEntitlementReqCommonMetricPeriod.d.ts +10 -0
- package/serialization/types/CreateEntitlementReqCommonMetricPeriod.js +31 -0
- package/serialization/types/CreateEntitlementReqCommonMetricPeriodMonthReset.d.ts +10 -0
- package/serialization/types/CreateEntitlementReqCommonMetricPeriodMonthReset.js +31 -0
- package/{dist/serialization/types/CreateReqCommonValueType.d.ts → serialization/types/CreateEntitlementReqCommonValueType.d.ts} +2 -2
- package/serialization/types/CreateEntitlementReqCommonValueType.js +31 -0
- package/serialization/types/CreateOrUpdateConditionRequestBody.d.ts +2 -0
- package/serialization/types/CreateOrUpdateConditionRequestBody.js +2 -0
- package/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +1 -1
- package/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +1 -1
- package/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.d.ts +10 -0
- package/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.js +31 -0
- package/serialization/types/FeatureCompanyResponseData.d.ts +1 -0
- package/serialization/types/FeatureCompanyResponseData.js +1 -0
- package/serialization/types/FeatureCompanyUserResponseData.d.ts +1 -0
- package/serialization/types/FeatureCompanyUserResponseData.js +1 -0
- package/serialization/types/FeatureUsageResponseData.d.ts +1 -0
- package/serialization/types/FeatureUsageResponseData.js +1 -0
- package/serialization/types/MeterRequestBody.d.ts +3 -3
- package/serialization/types/MeterRequestBody.js +3 -3
- package/serialization/types/PlanDetailResponseData.d.ts +3 -0
- package/serialization/types/PlanDetailResponseData.js +3 -0
- package/serialization/types/PlanEntitlementResponseData.d.ts +4 -0
- package/serialization/types/PlanEntitlementResponseData.js +4 -0
- package/serialization/types/PlanGroupDetailResponseData.d.ts +3 -0
- package/serialization/types/PlanGroupDetailResponseData.js +3 -0
- package/serialization/types/PlanGroupPlanDetailResponseData.d.ts +3 -0
- package/serialization/types/PlanGroupPlanDetailResponseData.js +3 -0
- package/serialization/types/PlanGroupResponseData.d.ts +2 -0
- package/serialization/types/PlanGroupResponseData.js +2 -0
- package/serialization/types/PreviewObjectResponseData.d.ts +15 -0
- package/serialization/types/PreviewObjectResponseData.js +36 -0
- package/serialization/types/RuleConditionDetailResponseData.d.ts +3 -2
- package/serialization/types/RuleConditionDetailResponseData.js +3 -2
- package/serialization/types/RuleConditionResponseData.d.ts +1 -0
- package/serialization/types/RuleConditionResponseData.js +1 -0
- package/serialization/types/RulesDetailResponseData.d.ts +1 -1
- package/serialization/types/RulesDetailResponseData.js +1 -1
- package/serialization/types/UpdateEntitlementReqCommon.d.ts +21 -0
- package/{dist/serialization/types/UpdateReqCommon.js → serialization/types/UpdateEntitlementReqCommon.js} +9 -6
- package/serialization/types/UpdateEntitlementReqCommonMetricPeriod.d.ts +10 -0
- package/serialization/types/UpdateEntitlementReqCommonMetricPeriod.js +31 -0
- package/serialization/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.d.ts +10 -0
- package/serialization/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.js +31 -0
- package/serialization/types/{UpdateReqCommonValueType.d.ts → UpdateEntitlementReqCommonValueType.d.ts} +2 -2
- package/serialization/types/UpdateEntitlementReqCommonValueType.js +31 -0
- package/serialization/types/index.d.ts +14 -8
- package/serialization/types/index.js +14 -8
- package/api/resources/events/client/requests/ListMetricCountsRequest.d.ts +0 -25
- package/api/resources/events/types/ListMetricCountsParams.d.ts +0 -20
- package/api/types/CreateReqCommon.d.ts +0 -12
- package/api/types/MetricCountsHourlyResponseData.d.ts +0 -12
- package/api/types/UpdateReqCommon.d.ts +0 -11
- package/dist/api/resources/events/client/requests/ListMetricCountsRequest.d.ts +0 -25
- package/dist/api/resources/events/types/ListMetricCountsParams.d.ts +0 -20
- package/dist/api/types/CreateReqCommon.d.ts +0 -12
- package/dist/api/types/MetricCountsHourlyResponseData.d.ts +0 -12
- package/dist/api/types/UpdateReqCommon.d.ts +0 -11
- package/dist/serialization/resources/events/types/ListMetricCountsParams.d.ts +0 -21
- package/dist/serialization/resources/events/types/ListMetricCountsParams.js +0 -42
- package/dist/serialization/resources/events/types/ListMetricCountsResponse.d.ts +0 -15
- package/dist/serialization/types/CreateReqCommon.d.ts +0 -19
- package/dist/serialization/types/CreateReqCommonMetricPeriod.d.ts +0 -10
- package/dist/serialization/types/MetricCountsHourlyResponseData.d.ts +0 -18
- package/dist/serialization/types/RuleConditionResourceResponseData.d.ts +0 -13
- package/dist/serialization/types/UpdateReqCommon.d.ts +0 -18
- package/dist/serialization/types/UpdateReqCommonMetricPeriod.d.ts +0 -10
- package/serialization/resources/events/types/ListMetricCountsParams.d.ts +0 -21
- package/serialization/resources/events/types/ListMetricCountsParams.js +0 -42
- package/serialization/resources/events/types/ListMetricCountsResponse.d.ts +0 -15
- package/serialization/types/CreateReqCommon.d.ts +0 -19
- package/serialization/types/CreateReqCommonMetricPeriod.d.ts +0 -10
- package/serialization/types/CreateReqCommonMetricPeriod.js +0 -31
- package/serialization/types/CreateReqCommonValueType.js +0 -31
- package/serialization/types/MetricCountsHourlyResponseData.d.ts +0 -18
- package/serialization/types/RuleConditionResourceResponseData.d.ts +0 -13
- package/serialization/types/UpdateReqCommon.d.ts +0 -18
- package/serialization/types/UpdateReqCommonMetricPeriod.d.ts +0 -10
- package/serialization/types/UpdateReqCommonMetricPeriod.js +0 -31
- package/serialization/types/UpdateReqCommonValueType.js +0 -31
- /package/api/resources/{events/client/requests/ListMetricCountsRequest.js → billing/client/requests/SearchBillingPricesRequest.js} +0 -0
- /package/api/resources/{events/types/ListMetricCountsParams.js → billing/types/SearchBillingPricesParams.js} +0 -0
- /package/api/resources/{events/types/ListMetricCountsResponse.js → billing/types/SearchBillingPricesResponse.js} +0 -0
- /package/api/types/{CreateReqCommon.js → BillingPriceView.js} +0 -0
- /package/api/types/{MetricCountsHourlyResponseData.js → BillingProductPriceResponseData.js} +0 -0
- /package/api/types/{RuleConditionResourceResponseData.js → BillingSubscriptionView.js} +0 -0
- /package/api/types/{UpdateReqCommon.js → ComponentCapabilities.js} +0 -0
- /package/{dist/api/resources/events/client/requests/ListMetricCountsRequest.js → api/types/CreateEntitlementReqCommon.js} +0 -0
- /package/{dist/api/resources/events/types/ListMetricCountsParams.js → api/types/PreviewObjectResponseData.js} +0 -0
- /package/{dist/api/resources/events/types/ListMetricCountsResponse.js → api/types/UpdateEntitlementReqCommon.js} +0 -0
- /package/dist/api/{types/CreateReqCommon.js → resources/billing/client/requests/SearchBillingPricesRequest.js} +0 -0
- /package/dist/api/{types/MetricCountsHourlyResponseData.js → resources/billing/types/SearchBillingPricesParams.js} +0 -0
- /package/dist/api/{types/RuleConditionResourceResponseData.js → resources/billing/types/SearchBillingPricesResponse.js} +0 -0
- /package/dist/api/types/{UpdateReqCommon.js → BillingPriceView.js} +0 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Schematic from "../index";
|
|
5
|
+
export interface UpdateEntitlementReqCommon {
|
|
6
|
+
meteredPriceId?: string;
|
|
7
|
+
metricPeriod?: Schematic.UpdateEntitlementReqCommonMetricPeriod;
|
|
8
|
+
metricPeriodMonthReset?: Schematic.UpdateEntitlementReqCommonMetricPeriodMonthReset;
|
|
9
|
+
valueBool?: boolean;
|
|
10
|
+
valueNumeric?: number;
|
|
11
|
+
valueTraitId?: string;
|
|
12
|
+
valueType: Schematic.UpdateEntitlementReqCommonValueType;
|
|
13
|
+
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export declare type
|
|
5
|
-
export declare const
|
|
4
|
+
export declare type UpdateEntitlementReqCommonMetricPeriod = "all_time" | "billing" | "current_month" | "current_week" | "current_day";
|
|
5
|
+
export declare const UpdateEntitlementReqCommonMetricPeriod: {
|
|
6
|
+
readonly AllTime: "all_time";
|
|
6
7
|
readonly Billing: "billing";
|
|
7
8
|
readonly CurrentMonth: "current_month";
|
|
8
9
|
readonly CurrentWeek: "current_week";
|
package/dist/api/types/{UpdateReqCommonMetricPeriod.js → UpdateEntitlementReqCommonMetricPeriod.js}
RENAMED
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
* This file was auto-generated by Fern from our API Definition.
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
6
|
+
exports.UpdateEntitlementReqCommonMetricPeriod = void 0;
|
|
7
|
+
exports.UpdateEntitlementReqCommonMetricPeriod = {
|
|
8
|
+
AllTime: "all_time",
|
|
8
9
|
Billing: "billing",
|
|
9
10
|
CurrentMonth: "current_month",
|
|
10
11
|
CurrentWeek: "current_week",
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export declare type UpdateEntitlementReqCommonMetricPeriodMonthReset = "first_of_month" | "billing_cycle";
|
|
5
|
+
export declare const UpdateEntitlementReqCommonMetricPeriodMonthReset: {
|
|
6
|
+
readonly FirstOfMonth: "first_of_month";
|
|
7
|
+
readonly BillingCycle: "billing_cycle";
|
|
8
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.UpdateEntitlementReqCommonMetricPeriodMonthReset = void 0;
|
|
7
|
+
exports.UpdateEntitlementReqCommonMetricPeriodMonthReset = {
|
|
8
|
+
FirstOfMonth: "first_of_month",
|
|
9
|
+
BillingCycle: "billing_cycle",
|
|
10
|
+
};
|
package/dist/api/types/{UpdateReqCommonValueType.d.ts → UpdateEntitlementReqCommonValueType.d.ts}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export declare type
|
|
5
|
-
export declare const
|
|
4
|
+
export declare type UpdateEntitlementReqCommonValueType = "boolean" | "numeric" | "trait" | "unlimited";
|
|
5
|
+
export declare const UpdateEntitlementReqCommonValueType: {
|
|
6
6
|
readonly Boolean: "boolean";
|
|
7
7
|
readonly Numeric: "numeric";
|
|
8
8
|
readonly Trait: "trait";
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* This file was auto-generated by Fern from our API Definition.
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
6
|
+
exports.UpdateEntitlementReqCommonValueType = void 0;
|
|
7
|
+
exports.UpdateEntitlementReqCommonValueType = {
|
|
8
8
|
Boolean: "boolean",
|
|
9
9
|
Numeric: "numeric",
|
|
10
10
|
Trait: "trait",
|
|
@@ -9,12 +9,15 @@ export * from "./BillingCustomerSubscription";
|
|
|
9
9
|
export * from "./BillingCustomerWithSubscriptionsResponseData";
|
|
10
10
|
export * from "./BillingMeterResponseData";
|
|
11
11
|
export * from "./BillingPriceResponseData";
|
|
12
|
+
export * from "./BillingPriceView";
|
|
12
13
|
export * from "./BillingProductDetailResponseData";
|
|
13
14
|
export * from "./BillingProductForSubscriptionResponseData";
|
|
14
15
|
export * from "./BillingProductPlanResponseData";
|
|
16
|
+
export * from "./BillingProductPriceResponseData";
|
|
15
17
|
export * from "./BillingProductPricing";
|
|
16
18
|
export * from "./BillingProductResponseData";
|
|
17
19
|
export * from "./BillingSubscriptionResponseData";
|
|
20
|
+
export * from "./BillingSubscriptionView";
|
|
18
21
|
export * from "./CheckFlagOutputWithFlagKey";
|
|
19
22
|
export * from "./CheckFlagRequestBody";
|
|
20
23
|
export * from "./CheckFlagResponseData";
|
|
@@ -28,10 +31,15 @@ export * from "./CompanyPlanDetailResponseData";
|
|
|
28
31
|
export * from "./CompanyPlanWithBillingSubView";
|
|
29
32
|
export * from "./CompanyResponseData";
|
|
30
33
|
export * from "./CompanySubscriptionResponseData";
|
|
34
|
+
export * from "./ComponentCapabilities";
|
|
31
35
|
export * from "./ComponentHydrateResponseData";
|
|
32
36
|
export * from "./ComponentPreviewResponseData";
|
|
33
37
|
export * from "./ComponentResponseData";
|
|
34
38
|
export * from "./CountResponse";
|
|
39
|
+
export * from "./CreateEntitlementReqCommonMetricPeriod";
|
|
40
|
+
export * from "./CreateEntitlementReqCommonMetricPeriodMonthReset";
|
|
41
|
+
export * from "./CreateEntitlementReqCommonValueType";
|
|
42
|
+
export * from "./CreateEntitlementReqCommon";
|
|
35
43
|
export * from "./EventBodyTrack";
|
|
36
44
|
export * from "./EventBodyFlagCheck";
|
|
37
45
|
export * from "./EventBodyIdentifyCompany";
|
|
@@ -43,14 +51,12 @@ export * from "./CreateFlagRequestBody";
|
|
|
43
51
|
export * from "./CreateOrUpdateConditionGroupRequestBody";
|
|
44
52
|
export * from "./CreateOrUpdateConditionRequestBodyConditionType";
|
|
45
53
|
export * from "./CreateOrUpdateConditionRequestBodyMetricPeriod";
|
|
54
|
+
export * from "./CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset";
|
|
46
55
|
export * from "./CreateOrUpdateConditionRequestBodyOperator";
|
|
47
56
|
export * from "./CreateOrUpdateConditionRequestBody";
|
|
48
57
|
export * from "./CreateOrUpdateFlagRequestBody";
|
|
49
58
|
export * from "./CreateOrUpdateRuleRequestBodyRuleType";
|
|
50
59
|
export * from "./CreateOrUpdateRuleRequestBody";
|
|
51
|
-
export * from "./CreateReqCommonMetricPeriod";
|
|
52
|
-
export * from "./CreateReqCommonValueType";
|
|
53
|
-
export * from "./CreateReqCommon";
|
|
54
60
|
export * from "./CrmDealLineItem";
|
|
55
61
|
export * from "./CrmDealResponseData";
|
|
56
62
|
export * from "./CrmLineItemResponseData";
|
|
@@ -86,7 +92,6 @@ export * from "./InvoiceResponseData";
|
|
|
86
92
|
export * from "./IssueTemporaryAccessTokenResponseData";
|
|
87
93
|
export * from "./KeysRequestBody";
|
|
88
94
|
export * from "./MeterRequestBody";
|
|
89
|
-
export * from "./MetricCountsHourlyResponseData";
|
|
90
95
|
export * from "./PaginationFilter";
|
|
91
96
|
export * from "./PaymentMethodRequestBody";
|
|
92
97
|
export * from "./PaymentMethodResponseData";
|
|
@@ -99,12 +104,12 @@ export * from "./PlanGroupPlanDetailResponseData";
|
|
|
99
104
|
export * from "./PlanGroupResponseData";
|
|
100
105
|
export * from "./PlanResponseData";
|
|
101
106
|
export * from "./PreviewObject";
|
|
107
|
+
export * from "./PreviewObjectResponseData";
|
|
102
108
|
export * from "./RawEventBatchResponseData";
|
|
103
109
|
export * from "./RawEventResponseData";
|
|
104
110
|
export * from "./RuleConditionDetailResponseData";
|
|
105
111
|
export * from "./RuleConditionGroupDetailResponseData";
|
|
106
112
|
export * from "./RuleConditionGroupResponseData";
|
|
107
|
-
export * from "./RuleConditionResourceResponseData";
|
|
108
113
|
export * from "./RuleConditionResponseData";
|
|
109
114
|
export * from "./RuleDetailResponseData";
|
|
110
115
|
export * from "./RuleResponseData";
|
|
@@ -112,9 +117,10 @@ export * from "./RulesDetailResponseData";
|
|
|
112
117
|
export * from "./SegmentStatusResp";
|
|
113
118
|
export * from "./StripeEmbedInfo";
|
|
114
119
|
export * from "./TemporaryAccessTokenResponseData";
|
|
115
|
-
export * from "./
|
|
116
|
-
export * from "./
|
|
117
|
-
export * from "./
|
|
120
|
+
export * from "./UpdateEntitlementReqCommonMetricPeriod";
|
|
121
|
+
export * from "./UpdateEntitlementReqCommonMetricPeriodMonthReset";
|
|
122
|
+
export * from "./UpdateEntitlementReqCommonValueType";
|
|
123
|
+
export * from "./UpdateEntitlementReqCommon";
|
|
118
124
|
export * from "./UpdateRuleRequestBody";
|
|
119
125
|
export * from "./UpsertCompanyRequestBody";
|
|
120
126
|
export * from "./UpsertTraitRequestBody";
|
package/dist/api/types/index.js
CHANGED
|
@@ -25,12 +25,15 @@ __exportStar(require("./BillingCustomerSubscription"), exports);
|
|
|
25
25
|
__exportStar(require("./BillingCustomerWithSubscriptionsResponseData"), exports);
|
|
26
26
|
__exportStar(require("./BillingMeterResponseData"), exports);
|
|
27
27
|
__exportStar(require("./BillingPriceResponseData"), exports);
|
|
28
|
+
__exportStar(require("./BillingPriceView"), exports);
|
|
28
29
|
__exportStar(require("./BillingProductDetailResponseData"), exports);
|
|
29
30
|
__exportStar(require("./BillingProductForSubscriptionResponseData"), exports);
|
|
30
31
|
__exportStar(require("./BillingProductPlanResponseData"), exports);
|
|
32
|
+
__exportStar(require("./BillingProductPriceResponseData"), exports);
|
|
31
33
|
__exportStar(require("./BillingProductPricing"), exports);
|
|
32
34
|
__exportStar(require("./BillingProductResponseData"), exports);
|
|
33
35
|
__exportStar(require("./BillingSubscriptionResponseData"), exports);
|
|
36
|
+
__exportStar(require("./BillingSubscriptionView"), exports);
|
|
34
37
|
__exportStar(require("./CheckFlagOutputWithFlagKey"), exports);
|
|
35
38
|
__exportStar(require("./CheckFlagRequestBody"), exports);
|
|
36
39
|
__exportStar(require("./CheckFlagResponseData"), exports);
|
|
@@ -44,10 +47,15 @@ __exportStar(require("./CompanyPlanDetailResponseData"), exports);
|
|
|
44
47
|
__exportStar(require("./CompanyPlanWithBillingSubView"), exports);
|
|
45
48
|
__exportStar(require("./CompanyResponseData"), exports);
|
|
46
49
|
__exportStar(require("./CompanySubscriptionResponseData"), exports);
|
|
50
|
+
__exportStar(require("./ComponentCapabilities"), exports);
|
|
47
51
|
__exportStar(require("./ComponentHydrateResponseData"), exports);
|
|
48
52
|
__exportStar(require("./ComponentPreviewResponseData"), exports);
|
|
49
53
|
__exportStar(require("./ComponentResponseData"), exports);
|
|
50
54
|
__exportStar(require("./CountResponse"), exports);
|
|
55
|
+
__exportStar(require("./CreateEntitlementReqCommonMetricPeriod"), exports);
|
|
56
|
+
__exportStar(require("./CreateEntitlementReqCommonMetricPeriodMonthReset"), exports);
|
|
57
|
+
__exportStar(require("./CreateEntitlementReqCommonValueType"), exports);
|
|
58
|
+
__exportStar(require("./CreateEntitlementReqCommon"), exports);
|
|
51
59
|
__exportStar(require("./EventBodyTrack"), exports);
|
|
52
60
|
__exportStar(require("./EventBodyFlagCheck"), exports);
|
|
53
61
|
__exportStar(require("./EventBodyIdentifyCompany"), exports);
|
|
@@ -59,14 +67,12 @@ __exportStar(require("./CreateFlagRequestBody"), exports);
|
|
|
59
67
|
__exportStar(require("./CreateOrUpdateConditionGroupRequestBody"), exports);
|
|
60
68
|
__exportStar(require("./CreateOrUpdateConditionRequestBodyConditionType"), exports);
|
|
61
69
|
__exportStar(require("./CreateOrUpdateConditionRequestBodyMetricPeriod"), exports);
|
|
70
|
+
__exportStar(require("./CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset"), exports);
|
|
62
71
|
__exportStar(require("./CreateOrUpdateConditionRequestBodyOperator"), exports);
|
|
63
72
|
__exportStar(require("./CreateOrUpdateConditionRequestBody"), exports);
|
|
64
73
|
__exportStar(require("./CreateOrUpdateFlagRequestBody"), exports);
|
|
65
74
|
__exportStar(require("./CreateOrUpdateRuleRequestBodyRuleType"), exports);
|
|
66
75
|
__exportStar(require("./CreateOrUpdateRuleRequestBody"), exports);
|
|
67
|
-
__exportStar(require("./CreateReqCommonMetricPeriod"), exports);
|
|
68
|
-
__exportStar(require("./CreateReqCommonValueType"), exports);
|
|
69
|
-
__exportStar(require("./CreateReqCommon"), exports);
|
|
70
76
|
__exportStar(require("./CrmDealLineItem"), exports);
|
|
71
77
|
__exportStar(require("./CrmDealResponseData"), exports);
|
|
72
78
|
__exportStar(require("./CrmLineItemResponseData"), exports);
|
|
@@ -102,7 +108,6 @@ __exportStar(require("./InvoiceResponseData"), exports);
|
|
|
102
108
|
__exportStar(require("./IssueTemporaryAccessTokenResponseData"), exports);
|
|
103
109
|
__exportStar(require("./KeysRequestBody"), exports);
|
|
104
110
|
__exportStar(require("./MeterRequestBody"), exports);
|
|
105
|
-
__exportStar(require("./MetricCountsHourlyResponseData"), exports);
|
|
106
111
|
__exportStar(require("./PaginationFilter"), exports);
|
|
107
112
|
__exportStar(require("./PaymentMethodRequestBody"), exports);
|
|
108
113
|
__exportStar(require("./PaymentMethodResponseData"), exports);
|
|
@@ -115,12 +120,12 @@ __exportStar(require("./PlanGroupPlanDetailResponseData"), exports);
|
|
|
115
120
|
__exportStar(require("./PlanGroupResponseData"), exports);
|
|
116
121
|
__exportStar(require("./PlanResponseData"), exports);
|
|
117
122
|
__exportStar(require("./PreviewObject"), exports);
|
|
123
|
+
__exportStar(require("./PreviewObjectResponseData"), exports);
|
|
118
124
|
__exportStar(require("./RawEventBatchResponseData"), exports);
|
|
119
125
|
__exportStar(require("./RawEventResponseData"), exports);
|
|
120
126
|
__exportStar(require("./RuleConditionDetailResponseData"), exports);
|
|
121
127
|
__exportStar(require("./RuleConditionGroupDetailResponseData"), exports);
|
|
122
128
|
__exportStar(require("./RuleConditionGroupResponseData"), exports);
|
|
123
|
-
__exportStar(require("./RuleConditionResourceResponseData"), exports);
|
|
124
129
|
__exportStar(require("./RuleConditionResponseData"), exports);
|
|
125
130
|
__exportStar(require("./RuleDetailResponseData"), exports);
|
|
126
131
|
__exportStar(require("./RuleResponseData"), exports);
|
|
@@ -128,9 +133,10 @@ __exportStar(require("./RulesDetailResponseData"), exports);
|
|
|
128
133
|
__exportStar(require("./SegmentStatusResp"), exports);
|
|
129
134
|
__exportStar(require("./StripeEmbedInfo"), exports);
|
|
130
135
|
__exportStar(require("./TemporaryAccessTokenResponseData"), exports);
|
|
131
|
-
__exportStar(require("./
|
|
132
|
-
__exportStar(require("./
|
|
133
|
-
__exportStar(require("./
|
|
136
|
+
__exportStar(require("./UpdateEntitlementReqCommonMetricPeriod"), exports);
|
|
137
|
+
__exportStar(require("./UpdateEntitlementReqCommonMetricPeriodMonthReset"), exports);
|
|
138
|
+
__exportStar(require("./UpdateEntitlementReqCommonValueType"), exports);
|
|
139
|
+
__exportStar(require("./UpdateEntitlementReqCommon"), exports);
|
|
134
140
|
__exportStar(require("./UpdateRuleRequestBody"), exports);
|
|
135
141
|
__exportStar(require("./UpsertCompanyRequestBody"), exports);
|
|
136
142
|
__exportStar(require("./UpsertTraitRequestBody"), exports);
|
|
@@ -13,7 +13,7 @@ export declare namespace Fetcher {
|
|
|
13
13
|
withCredentials?: boolean;
|
|
14
14
|
abortSignal?: AbortSignal;
|
|
15
15
|
requestType?: "json" | "file" | "bytes";
|
|
16
|
-
responseType?: "json" | "blob" | "sse" | "streaming" | "text";
|
|
16
|
+
responseType?: "json" | "blob" | "sse" | "streaming" | "text" | "arrayBuffer";
|
|
17
17
|
duplex?: "half";
|
|
18
18
|
}
|
|
19
19
|
type Error = FailedStatusCodeError | NonJsonError | TimeoutError | UnknownError;
|
|
@@ -16,6 +16,9 @@ function getResponseBody(response, responseType) {
|
|
|
16
16
|
if (response.body != null && responseType === "blob") {
|
|
17
17
|
return yield response.blob();
|
|
18
18
|
}
|
|
19
|
+
else if (response.body != null && responseType === "arrayBuffer") {
|
|
20
|
+
return yield response.arrayBuffer();
|
|
21
|
+
}
|
|
19
22
|
else if (response.body != null && responseType === "sse") {
|
|
20
23
|
return response.body;
|
|
21
24
|
}
|
|
@@ -10,16 +10,25 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.requestWithRetries = void 0;
|
|
13
|
-
const INITIAL_RETRY_DELAY =
|
|
14
|
-
const MAX_RETRY_DELAY =
|
|
13
|
+
const INITIAL_RETRY_DELAY = 1000; // in milliseconds
|
|
14
|
+
const MAX_RETRY_DELAY = 60000; // in milliseconds
|
|
15
15
|
const DEFAULT_MAX_RETRIES = 2;
|
|
16
|
+
const JITTER_FACTOR = 0.2; // 20% random jitter
|
|
17
|
+
function addJitter(delay) {
|
|
18
|
+
// Generate a random value between -JITTER_FACTOR and +JITTER_FACTOR
|
|
19
|
+
const jitterMultiplier = 1 + (Math.random() * 2 - 1) * JITTER_FACTOR;
|
|
20
|
+
return delay * jitterMultiplier;
|
|
21
|
+
}
|
|
16
22
|
function requestWithRetries(requestFn, maxRetries = DEFAULT_MAX_RETRIES) {
|
|
17
23
|
return __awaiter(this, void 0, void 0, function* () {
|
|
18
24
|
let response = yield requestFn();
|
|
19
25
|
for (let i = 0; i < maxRetries; ++i) {
|
|
20
26
|
if ([408, 409, 429].includes(response.status) || response.status >= 500) {
|
|
21
|
-
|
|
22
|
-
|
|
27
|
+
// Calculate base delay using exponential backoff (in milliseconds)
|
|
28
|
+
const baseDelay = Math.min(INITIAL_RETRY_DELAY * Math.pow(2, i), MAX_RETRY_DELAY);
|
|
29
|
+
// Add jitter to the delay
|
|
30
|
+
const delayWithJitter = addJitter(baseDelay);
|
|
31
|
+
yield new Promise((resolve) => setTimeout(resolve, delayWithJitter));
|
|
23
32
|
response = yield requestFn();
|
|
24
33
|
}
|
|
25
34
|
else {
|
package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts
CHANGED
|
@@ -9,8 +9,10 @@ export declare namespace CreateBillingPriceRequestBody {
|
|
|
9
9
|
interface Raw {
|
|
10
10
|
currency: string;
|
|
11
11
|
interval: string;
|
|
12
|
+
meter_id?: string | null;
|
|
12
13
|
price: number;
|
|
13
14
|
price_external_id: string;
|
|
14
15
|
product_external_id: string;
|
|
16
|
+
usage_type: string;
|
|
15
17
|
}
|
|
16
18
|
}
|
package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.js
CHANGED
|
@@ -31,7 +31,9 @@ const core = __importStar(require("../../../../../core"));
|
|
|
31
31
|
exports.CreateBillingPriceRequestBody = core.serialization.object({
|
|
32
32
|
currency: core.serialization.string(),
|
|
33
33
|
interval: core.serialization.string(),
|
|
34
|
+
meterId: core.serialization.property("meter_id", core.serialization.string().optional()),
|
|
34
35
|
price: core.serialization.number(),
|
|
35
36
|
priceExternalId: core.serialization.property("price_external_id", core.serialization.string()),
|
|
36
37
|
productExternalId: core.serialization.property("product_external_id", core.serialization.string()),
|
|
38
|
+
usageType: core.serialization.property("usage_type", core.serialization.string()),
|
|
37
39
|
});
|
|
@@ -41,4 +41,5 @@ exports.CreateBillingSubscriptionsRequestBody = core.serialization.object({
|
|
|
41
41
|
status: core.serialization.string().optional(),
|
|
42
42
|
subscriptionExternalId: core.serialization.property("subscription_external_id", core.serialization.string()),
|
|
43
43
|
totalPrice: core.serialization.property("total_price", core.serialization.number()),
|
|
44
|
+
trialEnd: core.serialization.property("trial_end", core.serialization.number().optional()),
|
|
44
45
|
});
|
|
@@ -7,9 +7,9 @@ import * as core from "../../../../../core";
|
|
|
7
7
|
export declare const CreateMeterRequestBody: core.serialization.Schema<serializers.CreateMeterRequestBody.Raw, Schematic.CreateMeterRequestBody>;
|
|
8
8
|
export declare namespace CreateMeterRequestBody {
|
|
9
9
|
interface Raw {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
display_name: string;
|
|
11
|
+
event_name: string;
|
|
12
|
+
event_payload_key: string;
|
|
13
13
|
external_id: string;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -29,8 +29,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.CreateMeterRequestBody = void 0;
|
|
30
30
|
const core = __importStar(require("../../../../../core"));
|
|
31
31
|
exports.CreateMeterRequestBody = core.serialization.object({
|
|
32
|
-
displayName: core.serialization.property("
|
|
33
|
-
eventName: core.serialization.property("
|
|
34
|
-
eventPayloadKey: core.serialization.property("
|
|
32
|
+
displayName: core.serialization.property("display_name", core.serialization.string()),
|
|
33
|
+
eventName: core.serialization.property("event_name", core.serialization.string()),
|
|
34
|
+
eventPayloadKey: core.serialization.property("event_payload_key", core.serialization.string()),
|
|
35
35
|
externalId: core.serialization.property("external_id", core.serialization.string()),
|
|
36
36
|
});
|
|
@@ -11,7 +11,10 @@ export declare namespace CountBillingProductsParams {
|
|
|
11
11
|
limit?: number | null;
|
|
12
12
|
name?: string | null;
|
|
13
13
|
offset?: number | null;
|
|
14
|
+
price_usage_type?: string | null;
|
|
14
15
|
q?: string | null;
|
|
16
|
+
with_prices_only?: boolean | null;
|
|
17
|
+
with_zero_price?: boolean | null;
|
|
15
18
|
without_linked_to_plan?: boolean | null;
|
|
16
19
|
}
|
|
17
20
|
}
|
|
@@ -33,6 +33,9 @@ exports.CountBillingProductsParams = core.serialization.object({
|
|
|
33
33
|
limit: core.serialization.number().optional(),
|
|
34
34
|
name: core.serialization.string().optional(),
|
|
35
35
|
offset: core.serialization.number().optional(),
|
|
36
|
+
priceUsageType: core.serialization.property("price_usage_type", core.serialization.string().optional()),
|
|
36
37
|
q: core.serialization.string().optional(),
|
|
38
|
+
withPricesOnly: core.serialization.property("with_prices_only", core.serialization.boolean().optional()),
|
|
39
|
+
withZeroPrice: core.serialization.property("with_zero_price", core.serialization.boolean().optional()),
|
|
37
40
|
withoutLinkedToPlan: core.serialization.property("without_linked_to_plan", core.serialization.boolean().optional()),
|
|
38
41
|
});
|
|
@@ -11,7 +11,10 @@ export declare namespace ListBillingProductsParams {
|
|
|
11
11
|
limit?: number | null;
|
|
12
12
|
name?: string | null;
|
|
13
13
|
offset?: number | null;
|
|
14
|
+
price_usage_type?: string | null;
|
|
14
15
|
q?: string | null;
|
|
16
|
+
with_prices_only?: boolean | null;
|
|
17
|
+
with_zero_price?: boolean | null;
|
|
15
18
|
without_linked_to_plan?: boolean | null;
|
|
16
19
|
}
|
|
17
20
|
}
|
|
@@ -33,6 +33,9 @@ exports.ListBillingProductsParams = core.serialization.object({
|
|
|
33
33
|
limit: core.serialization.number().optional(),
|
|
34
34
|
name: core.serialization.string().optional(),
|
|
35
35
|
offset: core.serialization.number().optional(),
|
|
36
|
+
priceUsageType: core.serialization.property("price_usage_type", core.serialization.string().optional()),
|
|
36
37
|
q: core.serialization.string().optional(),
|
|
38
|
+
withPricesOnly: core.serialization.property("with_prices_only", core.serialization.boolean().optional()),
|
|
39
|
+
withZeroPrice: core.serialization.property("with_zero_price", core.serialization.boolean().optional()),
|
|
37
40
|
withoutLinkedToPlan: core.serialization.property("without_linked_to_plan", core.serialization.boolean().optional()),
|
|
38
41
|
});
|
|
@@ -11,7 +11,10 @@ export declare namespace ListProductPricesParams {
|
|
|
11
11
|
limit?: number | null;
|
|
12
12
|
name?: string | null;
|
|
13
13
|
offset?: number | null;
|
|
14
|
+
price_usage_type?: string | null;
|
|
14
15
|
q?: string | null;
|
|
16
|
+
with_prices_only?: boolean | null;
|
|
17
|
+
with_zero_price?: boolean | null;
|
|
15
18
|
without_linked_to_plan?: boolean | null;
|
|
16
19
|
}
|
|
17
20
|
}
|
|
@@ -33,6 +33,9 @@ exports.ListProductPricesParams = core.serialization.object({
|
|
|
33
33
|
limit: core.serialization.number().optional(),
|
|
34
34
|
name: core.serialization.string().optional(),
|
|
35
35
|
offset: core.serialization.number().optional(),
|
|
36
|
+
priceUsageType: core.serialization.property("price_usage_type", core.serialization.string().optional()),
|
|
36
37
|
q: core.serialization.string().optional(),
|
|
38
|
+
withPricesOnly: core.serialization.property("with_prices_only", core.serialization.boolean().optional()),
|
|
39
|
+
withZeroPrice: core.serialization.property("with_zero_price", core.serialization.boolean().optional()),
|
|
37
40
|
withoutLinkedToPlan: core.serialization.property("without_linked_to_plan", core.serialization.boolean().optional()),
|
|
38
41
|
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as Schematic from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
export declare const SearchBillingPricesParams: core.serialization.ObjectSchema<serializers.SearchBillingPricesParams.Raw, Schematic.SearchBillingPricesParams>;
|
|
8
|
+
export declare namespace SearchBillingPricesParams {
|
|
9
|
+
interface Raw {
|
|
10
|
+
ids?: string[] | null;
|
|
11
|
+
limit?: number | null;
|
|
12
|
+
offset?: number | null;
|
|
13
|
+
price?: number | null;
|
|
14
|
+
usage_type?: string | null;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -26,11 +26,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.SearchBillingPricesParams = void 0;
|
|
30
30
|
const core = __importStar(require("../../../../core"));
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
31
|
+
exports.SearchBillingPricesParams = core.serialization.object({
|
|
32
|
+
ids: core.serialization.list(core.serialization.string()).optional(),
|
|
33
|
+
limit: core.serialization.number().optional(),
|
|
34
|
+
offset: core.serialization.number().optional(),
|
|
35
|
+
price: core.serialization.number().optional(),
|
|
36
|
+
usageType: core.serialization.property("usage_type", core.serialization.string().optional()),
|
|
36
37
|
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as Schematic from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
import { BillingPriceView } from "../../../types/BillingPriceView";
|
|
8
|
+
import { SearchBillingPricesParams } from "./SearchBillingPricesParams";
|
|
9
|
+
export declare const SearchBillingPricesResponse: core.serialization.ObjectSchema<serializers.SearchBillingPricesResponse.Raw, Schematic.SearchBillingPricesResponse>;
|
|
10
|
+
export declare namespace SearchBillingPricesResponse {
|
|
11
|
+
interface Raw {
|
|
12
|
+
data: BillingPriceView.Raw[];
|
|
13
|
+
params: SearchBillingPricesParams.Raw;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -26,11 +26,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.SearchBillingPricesResponse = void 0;
|
|
30
30
|
const core = __importStar(require("../../../../core"));
|
|
31
|
-
const
|
|
32
|
-
const
|
|
33
|
-
exports.
|
|
34
|
-
data: core.serialization.list(
|
|
35
|
-
params:
|
|
31
|
+
const BillingPriceView_1 = require("../../../types/BillingPriceView");
|
|
32
|
+
const SearchBillingPricesParams_1 = require("./SearchBillingPricesParams");
|
|
33
|
+
exports.SearchBillingPricesResponse = core.serialization.object({
|
|
34
|
+
data: core.serialization.list(BillingPriceView_1.BillingPriceView),
|
|
35
|
+
params: SearchBillingPricesParams_1.SearchBillingPricesParams,
|
|
36
36
|
});
|
|
@@ -12,6 +12,8 @@ export * from "./UpsertBillingMeterResponse";
|
|
|
12
12
|
export * from "./ListPaymentMethodsParams";
|
|
13
13
|
export * from "./ListPaymentMethodsResponse";
|
|
14
14
|
export * from "./UpsertPaymentMethodResponse";
|
|
15
|
+
export * from "./SearchBillingPricesParams";
|
|
16
|
+
export * from "./SearchBillingPricesResponse";
|
|
15
17
|
export * from "./UpsertBillingPriceResponse";
|
|
16
18
|
export * from "./ListProductPricesParams";
|
|
17
19
|
export * from "./ListProductPricesResponse";
|
|
@@ -28,6 +28,8 @@ __exportStar(require("./UpsertBillingMeterResponse"), exports);
|
|
|
28
28
|
__exportStar(require("./ListPaymentMethodsParams"), exports);
|
|
29
29
|
__exportStar(require("./ListPaymentMethodsResponse"), exports);
|
|
30
30
|
__exportStar(require("./UpsertPaymentMethodResponse"), exports);
|
|
31
|
+
__exportStar(require("./SearchBillingPricesParams"), exports);
|
|
32
|
+
__exportStar(require("./SearchBillingPricesResponse"), exports);
|
|
31
33
|
__exportStar(require("./UpsertBillingPriceResponse"), exports);
|
|
32
34
|
__exportStar(require("./ListProductPricesParams"), exports);
|
|
33
35
|
__exportStar(require("./ListProductPricesResponse"), exports);
|
package/dist/serialization/resources/companies/types/GetActiveCompanySubscriptionParams.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export declare const GetActiveCompanySubscriptionParams: core.serialization.Obje
|
|
|
8
8
|
export declare namespace GetActiveCompanySubscriptionParams {
|
|
9
9
|
interface Raw {
|
|
10
10
|
company_id?: string | null;
|
|
11
|
+
company_ids?: string[] | null;
|
|
11
12
|
limit?: number | null;
|
|
12
13
|
offset?: number | null;
|
|
13
14
|
}
|
|
@@ -30,6 +30,7 @@ exports.GetActiveCompanySubscriptionParams = void 0;
|
|
|
30
30
|
const core = __importStar(require("../../../../core"));
|
|
31
31
|
exports.GetActiveCompanySubscriptionParams = core.serialization.object({
|
|
32
32
|
companyId: core.serialization.property("company_id", core.serialization.string().optional()),
|
|
33
|
+
companyIds: core.serialization.property("company_ids", core.serialization.list(core.serialization.string()).optional()),
|
|
33
34
|
limit: core.serialization.number().optional(),
|
|
34
35
|
offset: core.serialization.number().optional(),
|
|
35
36
|
});
|
|
@@ -7,13 +7,13 @@ import * as core from "../../../../../core";
|
|
|
7
7
|
export declare const CreateCrmLineItemRequestBody: core.serialization.Schema<serializers.CreateCrmLineItemRequestBody.Raw, Schematic.CreateCrmLineItemRequestBody>;
|
|
8
8
|
export declare namespace CreateCrmLineItemRequestBody {
|
|
9
9
|
interface Raw {
|
|
10
|
-
TermMonth?: number | null;
|
|
11
10
|
amount: string;
|
|
12
11
|
discount_percentage?: string | null;
|
|
13
12
|
interval: string;
|
|
14
13
|
line_item_external_id: string;
|
|
15
14
|
product_external_id: string;
|
|
16
15
|
quantity: number;
|
|
16
|
+
term_month?: number | null;
|
|
17
17
|
total_discount?: string | null;
|
|
18
18
|
}
|
|
19
19
|
}
|
|
@@ -29,12 +29,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.CreateCrmLineItemRequestBody = void 0;
|
|
30
30
|
const core = __importStar(require("../../../../../core"));
|
|
31
31
|
exports.CreateCrmLineItemRequestBody = core.serialization.object({
|
|
32
|
-
termMonth: core.serialization.property("TermMonth", core.serialization.number().optional()),
|
|
33
32
|
amount: core.serialization.string(),
|
|
34
33
|
discountPercentage: core.serialization.property("discount_percentage", core.serialization.string().optional()),
|
|
35
34
|
interval: core.serialization.string(),
|
|
36
35
|
lineItemExternalId: core.serialization.property("line_item_external_id", core.serialization.string()),
|
|
37
36
|
productExternalId: core.serialization.property("product_external_id", core.serialization.string()),
|
|
38
37
|
quantity: core.serialization.number(),
|
|
38
|
+
termMonth: core.serialization.property("term_month", core.serialization.number().optional()),
|
|
39
39
|
totalDiscount: core.serialization.property("total_discount", core.serialization.string().optional()),
|
|
40
40
|
});
|
|
@@ -5,13 +5,17 @@ import * as serializers from "../../../../index";
|
|
|
5
5
|
import * as Schematic from "../../../../../api/index";
|
|
6
6
|
import * as core from "../../../../../core";
|
|
7
7
|
import { CreateCompanyOverrideRequestBodyMetricPeriod } from "../../types/CreateCompanyOverrideRequestBodyMetricPeriod";
|
|
8
|
+
import { CreateCompanyOverrideRequestBodyMetricPeriodMonthReset } from "../../types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset";
|
|
8
9
|
import { CreateCompanyOverrideRequestBodyValueType } from "../../types/CreateCompanyOverrideRequestBodyValueType";
|
|
9
10
|
export declare const CreateCompanyOverrideRequestBody: core.serialization.Schema<serializers.CreateCompanyOverrideRequestBody.Raw, Schematic.CreateCompanyOverrideRequestBody>;
|
|
10
11
|
export declare namespace CreateCompanyOverrideRequestBody {
|
|
11
12
|
interface Raw {
|
|
12
13
|
company_id: string;
|
|
14
|
+
expiration_date?: string | null;
|
|
13
15
|
feature_id: string;
|
|
16
|
+
metered_price_id?: string | null;
|
|
14
17
|
metric_period?: CreateCompanyOverrideRequestBodyMetricPeriod.Raw | null;
|
|
18
|
+
metric_period_month_reset?: CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.Raw | null;
|
|
15
19
|
value_bool?: boolean | null;
|
|
16
20
|
value_numeric?: number | null;
|
|
17
21
|
value_trait_id?: string | null;
|