@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,10 @@
|
|
|
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 UpdateEntitlementReqCommonMetricPeriodMonthReset: core.serialization.Schema<serializers.UpdateEntitlementReqCommonMetricPeriodMonthReset.Raw, Schematic.UpdateEntitlementReqCommonMetricPeriodMonthReset>;
|
|
8
|
+
export declare namespace UpdateEntitlementReqCommonMetricPeriodMonthReset {
|
|
9
|
+
type Raw = "first_of_month" | "billing_cycle";
|
|
10
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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.UpdateEntitlementReqCommonMetricPeriodMonthReset = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.UpdateEntitlementReqCommonMetricPeriodMonthReset = core.serialization.enum_(["first_of_month", "billing_cycle"]);
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import * as serializers from "../index";
|
|
5
5
|
import * as Schematic from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
-
export declare const
|
|
8
|
-
export declare namespace
|
|
7
|
+
export declare const UpdateEntitlementReqCommonValueType: core.serialization.Schema<serializers.UpdateEntitlementReqCommonValueType.Raw, Schematic.UpdateEntitlementReqCommonValueType>;
|
|
8
|
+
export declare namespace UpdateEntitlementReqCommonValueType {
|
|
9
9
|
type Raw = "boolean" | "numeric" | "trait" | "unlimited";
|
|
10
10
|
}
|
|
@@ -26,6 +26,6 @@ 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.UpdateEntitlementReqCommonValueType = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
exports.
|
|
31
|
+
exports.UpdateEntitlementReqCommonValueType = core.serialization.enum_(["boolean", "numeric", "trait", "unlimited"]);
|
|
@@ -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";
|
|
@@ -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);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@schematichq/schematic-typescript-node",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": "https://github.com/schematichq/schematic-node",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -24,7 +24,6 @@
|
|
|
24
24
|
"@types/qs": "6.9.8",
|
|
25
25
|
"@types/node-fetch": "2.6.9",
|
|
26
26
|
"@types/readable-stream": "^4.0.15",
|
|
27
|
-
"fetch-mock-jest": "^1.5.1",
|
|
28
27
|
"webpack": "^5.94.0",
|
|
29
28
|
"ts-loader": "^9.3.1",
|
|
30
29
|
"jest": "29.7.0",
|
package/reference.md
CHANGED
|
@@ -2127,9 +2127,9 @@ await client.billing.listMeters();
|
|
|
2127
2127
|
|
|
2128
2128
|
```typescript
|
|
2129
2129
|
await client.billing.upsertBillingMeter({
|
|
2130
|
-
displayName: "
|
|
2131
|
-
eventName: "
|
|
2132
|
-
eventPayloadKey: "
|
|
2130
|
+
displayName: "display_name",
|
|
2131
|
+
eventName: "event_name",
|
|
2132
|
+
eventPayloadKey: "event_payload_key",
|
|
2133
2133
|
externalId: "external_id",
|
|
2134
2134
|
});
|
|
2135
2135
|
```
|
|
@@ -2268,6 +2268,54 @@ await client.billing.upsertPaymentMethod({
|
|
|
2268
2268
|
</dl>
|
|
2269
2269
|
</details>
|
|
2270
2270
|
|
|
2271
|
+
<details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">searchBillingPrices</a>({ ...params }) -> Schematic.SearchBillingPricesResponse</code></summary>
|
|
2272
|
+
<dl>
|
|
2273
|
+
<dd>
|
|
2274
|
+
|
|
2275
|
+
#### 🔌 Usage
|
|
2276
|
+
|
|
2277
|
+
<dl>
|
|
2278
|
+
<dd>
|
|
2279
|
+
|
|
2280
|
+
<dl>
|
|
2281
|
+
<dd>
|
|
2282
|
+
|
|
2283
|
+
```typescript
|
|
2284
|
+
await client.billing.searchBillingPrices();
|
|
2285
|
+
```
|
|
2286
|
+
|
|
2287
|
+
</dd>
|
|
2288
|
+
</dl>
|
|
2289
|
+
</dd>
|
|
2290
|
+
</dl>
|
|
2291
|
+
|
|
2292
|
+
#### ⚙️ Parameters
|
|
2293
|
+
|
|
2294
|
+
<dl>
|
|
2295
|
+
<dd>
|
|
2296
|
+
|
|
2297
|
+
<dl>
|
|
2298
|
+
<dd>
|
|
2299
|
+
|
|
2300
|
+
**request:** `Schematic.SearchBillingPricesRequest`
|
|
2301
|
+
|
|
2302
|
+
</dd>
|
|
2303
|
+
</dl>
|
|
2304
|
+
|
|
2305
|
+
<dl>
|
|
2306
|
+
<dd>
|
|
2307
|
+
|
|
2308
|
+
**requestOptions:** `Billing.RequestOptions`
|
|
2309
|
+
|
|
2310
|
+
</dd>
|
|
2311
|
+
</dl>
|
|
2312
|
+
</dd>
|
|
2313
|
+
</dl>
|
|
2314
|
+
|
|
2315
|
+
</dd>
|
|
2316
|
+
</dl>
|
|
2317
|
+
</details>
|
|
2318
|
+
|
|
2271
2319
|
<details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">upsertBillingPrice</a>({ ...params }) -> Schematic.UpsertBillingPriceResponse</code></summary>
|
|
2272
2320
|
<dl>
|
|
2273
2321
|
<dd>
|
|
@@ -2287,6 +2335,7 @@ await client.billing.upsertBillingPrice({
|
|
|
2287
2335
|
price: 1,
|
|
2288
2336
|
priceExternalId: "price_external_id",
|
|
2289
2337
|
productExternalId: "product_external_id",
|
|
2338
|
+
usageType: "usage_type",
|
|
2290
2339
|
});
|
|
2291
2340
|
```
|
|
2292
2341
|
|
|
@@ -2592,6 +2641,8 @@ await client.billing.upsertBillingSubscription({
|
|
|
2592
2641
|
price: 1,
|
|
2593
2642
|
priceExternalId: "price_external_id",
|
|
2594
2643
|
productExternalId: "product_external_id",
|
|
2644
|
+
quantity: 1,
|
|
2645
|
+
usageType: "usage_type",
|
|
2595
2646
|
},
|
|
2596
2647
|
],
|
|
2597
2648
|
subscriptionExternalId: "subscription_external_id",
|
|
@@ -3246,9 +3297,7 @@ await client.companies.deleteCompanyMembership("company_membership_id");
|
|
|
3246
3297
|
<dd>
|
|
3247
3298
|
|
|
3248
3299
|
```typescript
|
|
3249
|
-
await client.companies.getActiveCompanySubscription(
|
|
3250
|
-
companyId: "company_id",
|
|
3251
|
-
});
|
|
3300
|
+
await client.companies.getActiveCompanySubscription();
|
|
3252
3301
|
```
|
|
3253
3302
|
|
|
3254
3303
|
</dd>
|
|
@@ -6064,54 +6113,6 @@ await client.events.getEvent("event_id");
|
|
|
6064
6113
|
</dl>
|
|
6065
6114
|
</details>
|
|
6066
6115
|
|
|
6067
|
-
<details><summary><code>client.events.<a href="/src/api/resources/events/client/Client.ts">listMetricCounts</a>({ ...params }) -> Schematic.ListMetricCountsResponse</code></summary>
|
|
6068
|
-
<dl>
|
|
6069
|
-
<dd>
|
|
6070
|
-
|
|
6071
|
-
#### 🔌 Usage
|
|
6072
|
-
|
|
6073
|
-
<dl>
|
|
6074
|
-
<dd>
|
|
6075
|
-
|
|
6076
|
-
<dl>
|
|
6077
|
-
<dd>
|
|
6078
|
-
|
|
6079
|
-
```typescript
|
|
6080
|
-
await client.events.listMetricCounts();
|
|
6081
|
-
```
|
|
6082
|
-
|
|
6083
|
-
</dd>
|
|
6084
|
-
</dl>
|
|
6085
|
-
</dd>
|
|
6086
|
-
</dl>
|
|
6087
|
-
|
|
6088
|
-
#### ⚙️ Parameters
|
|
6089
|
-
|
|
6090
|
-
<dl>
|
|
6091
|
-
<dd>
|
|
6092
|
-
|
|
6093
|
-
<dl>
|
|
6094
|
-
<dd>
|
|
6095
|
-
|
|
6096
|
-
**request:** `Schematic.ListMetricCountsRequest`
|
|
6097
|
-
|
|
6098
|
-
</dd>
|
|
6099
|
-
</dl>
|
|
6100
|
-
|
|
6101
|
-
<dl>
|
|
6102
|
-
<dd>
|
|
6103
|
-
|
|
6104
|
-
**requestOptions:** `Events.RequestOptions`
|
|
6105
|
-
|
|
6106
|
-
</dd>
|
|
6107
|
-
</dl>
|
|
6108
|
-
</dd>
|
|
6109
|
-
</dl>
|
|
6110
|
-
|
|
6111
|
-
</dd>
|
|
6112
|
-
</dl>
|
|
6113
|
-
</details>
|
|
6114
|
-
|
|
6115
6116
|
<details><summary><code>client.events.<a href="/src/api/resources/events/client/Client.ts">getSegmentIntegrationStatus</a>() -> Schematic.GetSegmentIntegrationStatusResponse</code></summary>
|
|
6116
6117
|
<dl>
|
|
6117
6118
|
<dd>
|
|
@@ -6593,7 +6594,8 @@ await client.plans.deletePlan("plan_id");
|
|
|
6593
6594
|
|
|
6594
6595
|
```typescript
|
|
6595
6596
|
await client.plans.upsertBillingProductPlan("plan_id", {
|
|
6596
|
-
|
|
6597
|
+
isFreePlan: true,
|
|
6598
|
+
isTrialable: true,
|
|
6597
6599
|
});
|
|
6598
6600
|
```
|
|
6599
6601
|
|
|
@@ -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
|
}
|
|
@@ -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
|
});
|
package/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.js
CHANGED
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
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.SearchBillingPricesParams = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
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()),
|
|
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
|
+
}
|