@schematichq/schematic-typescript-node 1.1.5 → 1.1.7
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 +170 -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 +21 -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 +16 -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 +4 -6
- package/api/resources/companies/client/Client.js +47 -39
- package/api/resources/companies/client/requests/GetActiveCompanySubscriptionRequest.d.ts +3 -4
- package/api/resources/companies/client/requests/LookupCompanyRequest.d.ts +1 -1
- package/api/resources/companies/client/requests/LookupUserRequest.d.ts +1 -1
- 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.d.ts +1 -1
- package/api/resources/entitlements/client/Client.js +28 -22
- package/api/resources/entitlements/client/requests/CountPlanEntitlementsRequest.d.ts +4 -0
- package/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +4 -0
- package/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +6 -0
- package/api/resources/entitlements/client/requests/GetFeatureUsageByCompanyRequest.d.ts +1 -1
- package/api/resources/entitlements/client/requests/ListPlanEntitlementsRequest.d.ts +4 -0
- package/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +4 -0
- package/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +3 -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/CheckFlagOutputWithFlagKey.d.ts +1 -0
- package/api/types/CheckFlagResponseData.d.ts +1 -0
- package/api/types/CompanyDetailResponseData.d.ts +2 -1
- package/api/types/CompanyOverrideResponseData.d.ts +3 -1
- package/api/types/CompanyPlanDetailResponseData.d.ts +4 -0
- package/api/types/ComponentCapabilities.d.ts +6 -0
- package/api/types/ComponentHydrateResponseData.d.ts +2 -0
- package/api/types/ComponentPreviewResponseData.d.ts +2 -0
- package/api/types/CreateEntitlementReqCommon.d.ts +15 -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 +4 -0
- package/api/types/FeatureCompanyUserResponseData.d.ts +4 -0
- package/api/types/FeatureUsageResponseData.d.ts +4 -0
- package/api/types/PlanDetailResponseData.d.ts +3 -0
- package/api/types/PlanEntitlementResponseData.d.ts +4 -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 +14 -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/UsageBasedEntitlementResponseData.d.ts +14 -0
- package/api/types/index.d.ts +15 -8
- package/api/types/index.js +15 -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 +170 -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 +21 -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 +16 -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 +4 -6
- package/dist/api/resources/companies/client/Client.js +47 -39
- package/dist/api/resources/companies/client/requests/GetActiveCompanySubscriptionRequest.d.ts +3 -4
- package/dist/api/resources/companies/client/requests/LookupCompanyRequest.d.ts +1 -1
- package/dist/api/resources/companies/client/requests/LookupUserRequest.d.ts +1 -1
- 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.d.ts +1 -1
- package/dist/api/resources/entitlements/client/Client.js +28 -22
- package/dist/api/resources/entitlements/client/requests/CountPlanEntitlementsRequest.d.ts +4 -0
- package/dist/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +4 -0
- package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +6 -0
- package/dist/api/resources/entitlements/client/requests/GetFeatureUsageByCompanyRequest.d.ts +1 -1
- package/dist/api/resources/entitlements/client/requests/ListPlanEntitlementsRequest.d.ts +4 -0
- package/dist/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +4 -0
- package/dist/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +3 -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/BillingPriceView.js +5 -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/CheckFlagOutputWithFlagKey.d.ts +1 -0
- package/dist/api/types/CheckFlagResponseData.d.ts +1 -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 +4 -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 +2 -0
- package/dist/api/types/ComponentPreviewResponseData.d.ts +2 -0
- package/dist/api/types/CreateEntitlementReqCommon.d.ts +15 -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 +4 -0
- package/dist/api/types/FeatureCompanyUserResponseData.d.ts +4 -0
- package/dist/api/types/FeatureUsageResponseData.d.ts +4 -0
- package/dist/api/types/PlanDetailResponseData.d.ts +3 -0
- package/dist/api/types/PlanEntitlementResponseData.d.ts +4 -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 +14 -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/UsageBasedEntitlementResponseData.d.ts +14 -0
- package/dist/api/types/UsageBasedEntitlementResponseData.js +5 -0
- package/dist/api/types/index.d.ts +15 -8
- package/dist/api/types/index.js +15 -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 +17 -0
- package/dist/serialization/resources/billing/types/SearchBillingPricesParams.js +38 -0
- 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 +5 -0
- package/dist/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.js +5 -0
- package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +7 -0
- package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +7 -0
- package/dist/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +5 -0
- package/dist/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.js +5 -0
- package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +4 -0
- package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +4 -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/CheckFlagOutputWithFlagKey.d.ts +1 -0
- package/dist/serialization/types/CheckFlagOutputWithFlagKey.js +1 -0
- package/dist/serialization/types/CheckFlagResponseData.d.ts +1 -0
- package/dist/serialization/types/CheckFlagResponseData.js +1 -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 +4 -0
- package/dist/serialization/types/CompanyPlanDetailResponseData.js +4 -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 +5 -1
- package/dist/serialization/types/ComponentHydrateResponseData.js +5 -1
- package/dist/serialization/types/ComponentPreviewResponseData.d.ts +5 -1
- package/dist/serialization/types/ComponentPreviewResponseData.js +5 -1
- package/dist/serialization/types/CreateEntitlementReqCommon.d.ts +23 -0
- package/dist/serialization/types/CreateEntitlementReqCommon.js +44 -0
- 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 +2 -0
- package/dist/serialization/types/FeatureCompanyResponseData.js +2 -0
- package/dist/serialization/types/FeatureCompanyUserResponseData.d.ts +2 -0
- package/dist/serialization/types/FeatureCompanyUserResponseData.js +2 -0
- package/dist/serialization/types/FeatureUsageResponseData.d.ts +2 -0
- package/dist/serialization/types/FeatureUsageResponseData.js +2 -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 +5 -0
- package/dist/serialization/types/PlanEntitlementResponseData.js +5 -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 +22 -0
- package/{serialization/types/UpdateReqCommon.js → dist/serialization/types/UpdateEntitlementReqCommon.js} +10 -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/UsageBasedEntitlementResponseData.d.ts +20 -0
- package/{serialization/types/CreateReqCommon.js → dist/serialization/types/UsageBasedEntitlementResponseData.js} +8 -7
- package/dist/serialization/types/index.d.ts +15 -8
- package/dist/serialization/types/index.js +15 -8
- package/package.json +1 -2
- package/reference.md +60 -58
- 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 +17 -0
- package/serialization/resources/billing/types/SearchBillingPricesParams.js +38 -0
- package/serialization/resources/billing/types/SearchBillingPricesResponse.d.ts +15 -0
- package/{dist/serialization/resources/events/types/ListMetricCountsResponse.js → serialization/resources/billing/types/SearchBillingPricesResponse.js} +6 -6
- 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 +5 -0
- package/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.js +5 -0
- package/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +7 -0
- package/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +7 -0
- package/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +5 -0
- package/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.js +5 -0
- package/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +4 -0
- package/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +4 -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/CheckFlagOutputWithFlagKey.d.ts +1 -0
- package/serialization/types/CheckFlagOutputWithFlagKey.js +1 -0
- package/serialization/types/CheckFlagResponseData.d.ts +1 -0
- package/serialization/types/CheckFlagResponseData.js +1 -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 +4 -0
- package/serialization/types/CompanyPlanDetailResponseData.js +4 -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 +5 -1
- package/serialization/types/ComponentHydrateResponseData.js +5 -1
- package/serialization/types/ComponentPreviewResponseData.d.ts +5 -1
- package/serialization/types/ComponentPreviewResponseData.js +5 -1
- package/serialization/types/CreateEntitlementReqCommon.d.ts +23 -0
- package/serialization/types/CreateEntitlementReqCommon.js +44 -0
- 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 +2 -0
- package/serialization/types/FeatureCompanyResponseData.js +2 -0
- package/serialization/types/FeatureCompanyUserResponseData.d.ts +2 -0
- package/serialization/types/FeatureCompanyUserResponseData.js +2 -0
- package/serialization/types/FeatureUsageResponseData.d.ts +2 -0
- package/serialization/types/FeatureUsageResponseData.js +2 -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 +5 -0
- package/serialization/types/PlanEntitlementResponseData.js +5 -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 +22 -0
- package/{dist/serialization/types/UpdateReqCommon.js → serialization/types/UpdateEntitlementReqCommon.js} +10 -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/UsageBasedEntitlementResponseData.d.ts +20 -0
- package/{dist/serialization/types/CreateReqCommon.js → serialization/types/UsageBasedEntitlementResponseData.js} +8 -7
- package/serialization/types/index.d.ts +15 -8
- package/serialization/types/index.js +15 -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 → api/types/UsageBasedEntitlementResponseData.js} +0 -0
- /package/dist/api/{types/MetricCountsHourlyResponseData.js → resources/billing/client/requests/SearchBillingPricesRequest.js} +0 -0
- /package/dist/api/{types/RuleConditionResourceResponseData.js → resources/billing/types/SearchBillingPricesParams.js} +0 -0
- /package/dist/api/{types/UpdateReqCommon.js → resources/billing/types/SearchBillingPricesResponse.js} +0 -0
|
@@ -4,11 +4,15 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* @example
|
|
6
6
|
* {
|
|
7
|
-
*
|
|
7
|
+
* isFreePlan: true,
|
|
8
|
+
* isTrialable: true
|
|
8
9
|
* }
|
|
9
10
|
*/
|
|
10
11
|
export interface UpsertBillingProductRequestBody {
|
|
11
|
-
billingProductId
|
|
12
|
+
billingProductId?: string;
|
|
13
|
+
isFreePlan: boolean;
|
|
14
|
+
isTrialable: boolean;
|
|
12
15
|
monthlyPriceId?: string;
|
|
16
|
+
trialDays?: number;
|
|
13
17
|
yearlyPriceId?: string;
|
|
14
18
|
}
|
|
@@ -89,7 +89,7 @@ class Webhooks {
|
|
|
89
89
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
90
90
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "webhook-events"),
|
|
91
91
|
method: "GET",
|
|
92
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
92
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
93
93
|
contentType: "application/json",
|
|
94
94
|
queryParameters: _queryParams,
|
|
95
95
|
requestType: "json",
|
|
@@ -180,7 +180,7 @@ class Webhooks {
|
|
|
180
180
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
181
181
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `webhook-events/${encodeURIComponent(webhookEventId)}`),
|
|
182
182
|
method: "GET",
|
|
183
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
183
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
184
184
|
contentType: "application/json",
|
|
185
185
|
requestType: "json",
|
|
186
186
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -292,7 +292,7 @@ class Webhooks {
|
|
|
292
292
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
293
293
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "webhook-events/count"),
|
|
294
294
|
method: "GET",
|
|
295
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
295
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
296
296
|
contentType: "application/json",
|
|
297
297
|
queryParameters: _queryParams,
|
|
298
298
|
requestType: "json",
|
|
@@ -394,7 +394,7 @@ class Webhooks {
|
|
|
394
394
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
395
395
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "webhooks"),
|
|
396
396
|
method: "GET",
|
|
397
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
397
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
398
398
|
contentType: "application/json",
|
|
399
399
|
queryParameters: _queryParams,
|
|
400
400
|
requestType: "json",
|
|
@@ -489,7 +489,7 @@ class Webhooks {
|
|
|
489
489
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
490
490
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "webhooks"),
|
|
491
491
|
method: "POST",
|
|
492
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
492
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
493
493
|
contentType: "application/json",
|
|
494
494
|
requestType: "json",
|
|
495
495
|
body: serializers.CreateWebhookRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -580,7 +580,7 @@ class Webhooks {
|
|
|
580
580
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
581
581
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `webhooks/${encodeURIComponent(webhookId)}`),
|
|
582
582
|
method: "GET",
|
|
583
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
583
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
584
584
|
contentType: "application/json",
|
|
585
585
|
requestType: "json",
|
|
586
586
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -672,7 +672,7 @@ class Webhooks {
|
|
|
672
672
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
673
673
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `webhooks/${encodeURIComponent(webhookId)}`),
|
|
674
674
|
method: "PUT",
|
|
675
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
675
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
676
676
|
contentType: "application/json",
|
|
677
677
|
requestType: "json",
|
|
678
678
|
body: serializers.UpdateWebhookRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -771,7 +771,7 @@ class Webhooks {
|
|
|
771
771
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
772
772
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `webhooks/${encodeURIComponent(webhookId)}`),
|
|
773
773
|
method: "DELETE",
|
|
774
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
774
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
775
775
|
contentType: "application/json",
|
|
776
776
|
requestType: "json",
|
|
777
777
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -872,7 +872,7 @@ class Webhooks {
|
|
|
872
872
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
873
873
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "webhooks/count"),
|
|
874
874
|
method: "GET",
|
|
875
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
875
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.7", "User-Agent": "@schematichq/schematic-typescript-node/1.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
876
876
|
contentType: "application/json",
|
|
877
877
|
queryParameters: _queryParams,
|
|
878
878
|
requestType: "json",
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface BillingPriceView {
|
|
5
|
+
createdAt: Date;
|
|
6
|
+
currency: string;
|
|
7
|
+
id: string;
|
|
8
|
+
interval: string;
|
|
9
|
+
meterId?: string;
|
|
10
|
+
price: number;
|
|
11
|
+
priceExternalId: string;
|
|
12
|
+
priceId: string;
|
|
13
|
+
productExternalId: string;
|
|
14
|
+
productId: string;
|
|
15
|
+
productName: string;
|
|
16
|
+
updatedAt: Date;
|
|
17
|
+
usageType: string;
|
|
18
|
+
}
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as Schematic from "../index";
|
|
5
5
|
export interface BillingProductDetailResponseData {
|
|
6
|
-
prices: Schematic.BillingPriceResponseData[];
|
|
7
6
|
accountId: string;
|
|
8
7
|
createdAt: Date;
|
|
9
8
|
currency: string;
|
|
@@ -11,6 +10,7 @@ export interface BillingProductDetailResponseData {
|
|
|
11
10
|
externalId: string;
|
|
12
11
|
name: string;
|
|
13
12
|
price: number;
|
|
13
|
+
prices: Schematic.BillingPriceResponseData[];
|
|
14
14
|
productId: string;
|
|
15
15
|
quantity: number;
|
|
16
16
|
updatedAt: Date;
|
|
@@ -2,17 +2,18 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
export interface BillingProductForSubscriptionResponseData {
|
|
5
|
-
accountId: string;
|
|
6
5
|
createdAt: Date;
|
|
7
6
|
currency: string;
|
|
8
7
|
environmentId: string;
|
|
9
8
|
externalId: string;
|
|
10
9
|
id: string;
|
|
11
10
|
interval: string;
|
|
11
|
+
meterId?: string;
|
|
12
12
|
name: string;
|
|
13
13
|
price: number;
|
|
14
14
|
priceExternalId: string;
|
|
15
15
|
quantity: number;
|
|
16
16
|
subscriptionId: string;
|
|
17
17
|
updatedAt: Date;
|
|
18
|
+
usageType: string;
|
|
18
19
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface BillingProductPriceResponseData {
|
|
5
|
+
createdAt: Date;
|
|
6
|
+
currency: string;
|
|
7
|
+
id: string;
|
|
8
|
+
interval: string;
|
|
9
|
+
meterId?: string;
|
|
10
|
+
price: number;
|
|
11
|
+
priceExternalId: string;
|
|
12
|
+
productExternalId: string;
|
|
13
|
+
updatedAt: Date;
|
|
14
|
+
usageType: string;
|
|
15
|
+
}
|
|
@@ -2,11 +2,18 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
export interface BillingSubscriptionResponseData {
|
|
5
|
+
companyId?: string;
|
|
6
|
+
createdAt: Date;
|
|
5
7
|
currency: string;
|
|
8
|
+
customerExternalId: string;
|
|
6
9
|
expiredAt?: Date;
|
|
7
|
-
externalId: string;
|
|
8
10
|
id: string;
|
|
9
11
|
interval: string;
|
|
12
|
+
metadata?: Record<string, unknown>;
|
|
13
|
+
periodEnd: number;
|
|
14
|
+
periodStart: number;
|
|
15
|
+
status: string;
|
|
16
|
+
subscriptionExternalId: string;
|
|
10
17
|
totalPrice: number;
|
|
11
|
-
|
|
18
|
+
trialEnd?: number;
|
|
12
19
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Schematic from "../index";
|
|
5
|
+
export interface BillingSubscriptionView {
|
|
6
|
+
companyId?: string;
|
|
7
|
+
createdAt: Date;
|
|
8
|
+
currency: string;
|
|
9
|
+
customerExternalId: string;
|
|
10
|
+
expiredAt?: Date;
|
|
11
|
+
id: string;
|
|
12
|
+
interval: string;
|
|
13
|
+
latestInvoice?: Schematic.InvoiceResponseData;
|
|
14
|
+
metadata?: Record<string, unknown>;
|
|
15
|
+
paymentMethod?: Schematic.PaymentMethodResponseData;
|
|
16
|
+
periodEnd: number;
|
|
17
|
+
periodStart: number;
|
|
18
|
+
products: Schematic.BillingProductForSubscriptionResponseData[];
|
|
19
|
+
status: string;
|
|
20
|
+
subscriptionExternalId: string;
|
|
21
|
+
totalPrice: number;
|
|
22
|
+
trialEnd?: number;
|
|
23
|
+
}
|
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
import * as Schematic from "../index";
|
|
5
5
|
export interface CompanyDetailResponseData {
|
|
6
6
|
addOns: Schematic.CompanyPlanWithBillingSubView[];
|
|
7
|
-
|
|
7
|
+
billingSubscription?: Schematic.BillingSubscriptionView;
|
|
8
|
+
billingSubscriptions: Schematic.BillingSubscriptionView[];
|
|
8
9
|
createdAt: Date;
|
|
9
10
|
entityTraits: Schematic.EntityTraitDetailResponseData[];
|
|
10
11
|
environmentId: string;
|
|
@@ -10,11 +10,13 @@ export interface CompanyOverrideResponseData {
|
|
|
10
10
|
companyId: string;
|
|
11
11
|
createdAt: Date;
|
|
12
12
|
environmentId: string;
|
|
13
|
+
expirationDate?: Date;
|
|
13
14
|
feature?: Schematic.FeatureResponseData;
|
|
14
15
|
featureId: string;
|
|
15
16
|
id: string;
|
|
16
17
|
metricPeriod?: string;
|
|
17
|
-
|
|
18
|
+
metricPeriodMonthReset?: string;
|
|
19
|
+
ruleId?: string;
|
|
18
20
|
updatedAt: Date;
|
|
19
21
|
valueBool?: boolean;
|
|
20
22
|
valueNumeric?: number;
|
|
@@ -5,6 +5,7 @@ import * as Schematic from "../index";
|
|
|
5
5
|
export interface CompanyPlanDetailResponseData {
|
|
6
6
|
audienceType?: string;
|
|
7
7
|
billingProduct?: Schematic.BillingProductDetailResponseData;
|
|
8
|
+
companyCanTrial: boolean;
|
|
8
9
|
companyCount: number;
|
|
9
10
|
createdAt: Date;
|
|
10
11
|
current: boolean;
|
|
@@ -14,9 +15,12 @@ export interface CompanyPlanDetailResponseData {
|
|
|
14
15
|
icon: string;
|
|
15
16
|
id: string;
|
|
16
17
|
isDefault: boolean;
|
|
18
|
+
isFree: boolean;
|
|
19
|
+
isTrialable: boolean;
|
|
17
20
|
monthlyPrice?: Schematic.BillingPriceResponseData;
|
|
18
21
|
name: string;
|
|
19
22
|
planType: string;
|
|
23
|
+
trialDays?: number;
|
|
20
24
|
updatedAt: Date;
|
|
21
25
|
valid: boolean;
|
|
22
26
|
yearlyPrice?: Schematic.BillingPriceResponseData;
|
|
@@ -5,6 +5,8 @@ import * as Schematic from "../index";
|
|
|
5
5
|
export interface ComponentHydrateResponseData {
|
|
6
6
|
activeAddOns: Schematic.CompanyPlanDetailResponseData[];
|
|
7
7
|
activePlans: Schematic.CompanyPlanDetailResponseData[];
|
|
8
|
+
activeUsageBasedEntitlements: Schematic.UsageBasedEntitlementResponseData[];
|
|
9
|
+
capabilities?: Schematic.ComponentCapabilities;
|
|
8
10
|
company?: Schematic.CompanyDetailResponseData;
|
|
9
11
|
component?: Schematic.ComponentResponseData;
|
|
10
12
|
featureUsage?: Schematic.FeatureUsageDetailResponseData;
|
|
@@ -8,6 +8,8 @@ import * as Schematic from "../index";
|
|
|
8
8
|
export interface ComponentPreviewResponseData {
|
|
9
9
|
activeAddOns: Schematic.CompanyPlanDetailResponseData[];
|
|
10
10
|
activePlans: Schematic.CompanyPlanDetailResponseData[];
|
|
11
|
+
activeUsageBasedEntitlements: Schematic.UsageBasedEntitlementResponseData[];
|
|
12
|
+
capabilities?: Schematic.ComponentCapabilities;
|
|
11
13
|
company?: Schematic.CompanyDetailResponseData;
|
|
12
14
|
component?: Schematic.ComponentResponseData;
|
|
13
15
|
featureUsage?: Schematic.FeatureUsageDetailResponseData;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Schematic from "../index";
|
|
5
|
+
export interface CreateEntitlementReqCommon {
|
|
6
|
+
featureId: string;
|
|
7
|
+
meteredMonthlyPriceId?: string;
|
|
8
|
+
meteredYearlyPriceId?: string;
|
|
9
|
+
metricPeriod?: Schematic.CreateEntitlementReqCommonMetricPeriod;
|
|
10
|
+
metricPeriodMonthReset?: Schematic.CreateEntitlementReqCommonMetricPeriodMonthReset;
|
|
11
|
+
valueBool?: boolean;
|
|
12
|
+
valueNumeric?: number;
|
|
13
|
+
valueTraitId?: string;
|
|
14
|
+
valueType: Schematic.CreateEntitlementReqCommonValueType;
|
|
15
|
+
}
|
|
@@ -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 CreateEntitlementReqCommonMetricPeriod = "all_time" | "billing" | "current_month" | "current_week" | "current_day";
|
|
5
|
+
export declare const CreateEntitlementReqCommonMetricPeriod: {
|
|
6
|
+
readonly AllTime: "all_time";
|
|
6
7
|
readonly Billing: "billing";
|
|
7
8
|
readonly CurrentMonth: "current_month";
|
|
8
9
|
readonly CurrentWeek: "current_week";
|
|
@@ -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.CreateEntitlementReqCommonMetricPeriod = void 0;
|
|
7
|
+
exports.CreateEntitlementReqCommonMetricPeriod = {
|
|
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 CreateEntitlementReqCommonMetricPeriodMonthReset = "first_of_month" | "billing_cycle";
|
|
5
|
+
export declare const CreateEntitlementReqCommonMetricPeriodMonthReset: {
|
|
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.CreateEntitlementReqCommonMetricPeriodMonthReset = void 0;
|
|
7
|
+
exports.CreateEntitlementReqCommonMetricPeriodMonthReset = {
|
|
8
|
+
FirstOfMonth: "first_of_month",
|
|
9
|
+
BillingCycle: "billing_cycle",
|
|
10
|
+
};
|
package/dist/api/types/{CreateReqCommonValueType.d.ts → CreateEntitlementReqCommonValueType.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 CreateEntitlementReqCommonValueType = "boolean" | "numeric" | "trait" | "unlimited";
|
|
5
|
+
export declare const CreateEntitlementReqCommonValueType: {
|
|
6
6
|
readonly Boolean: "boolean";
|
|
7
7
|
readonly Numeric: "numeric";
|
|
8
8
|
readonly Trait: "trait";
|
package/dist/api/types/{UpdateReqCommonValueType.js → CreateEntitlementReqCommonValueType.js}
RENAMED
|
@@ -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.CreateEntitlementReqCommonValueType = void 0;
|
|
7
|
+
exports.CreateEntitlementReqCommonValueType = {
|
|
8
8
|
Boolean: "boolean",
|
|
9
9
|
Numeric: "numeric",
|
|
10
10
|
Trait: "trait",
|
|
@@ -11,6 +11,8 @@ export interface CreateOrUpdateConditionRequestBody {
|
|
|
11
11
|
id?: string;
|
|
12
12
|
/** Period of time over which to measure the track event metric */
|
|
13
13
|
metricPeriod?: Schematic.CreateOrUpdateConditionRequestBodyMetricPeriod;
|
|
14
|
+
/** When metric_period=current_month, specify whether the month restarts based on the calendar month or the billing period */
|
|
15
|
+
metricPeriodMonthReset?: Schematic.CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset;
|
|
14
16
|
/** Value to compare the track event metric against */
|
|
15
17
|
metricValue?: number;
|
|
16
18
|
operator: Schematic.CreateOrUpdateConditionRequestBodyOperator;
|
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Period of time over which to measure the track event metric
|
|
6
6
|
*/
|
|
7
|
-
export declare type CreateOrUpdateConditionRequestBodyMetricPeriod = "billing" | "current_month" | "current_week" | "current_day";
|
|
7
|
+
export declare type CreateOrUpdateConditionRequestBodyMetricPeriod = "all_time" | "billing" | "current_month" | "current_week" | "current_day";
|
|
8
8
|
export declare const CreateOrUpdateConditionRequestBodyMetricPeriod: {
|
|
9
|
+
readonly AllTime: "all_time";
|
|
9
10
|
readonly Billing: "billing";
|
|
10
11
|
readonly CurrentMonth: "current_month";
|
|
11
12
|
readonly CurrentWeek: "current_week";
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.CreateOrUpdateConditionRequestBodyMetricPeriod = void 0;
|
|
7
7
|
exports.CreateOrUpdateConditionRequestBodyMetricPeriod = {
|
|
8
|
+
AllTime: "all_time",
|
|
8
9
|
Billing: "billing",
|
|
9
10
|
CurrentMonth: "current_month",
|
|
10
11
|
CurrentWeek: "current_week",
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* When metric_period=current_month, specify whether the month restarts based on the calendar month or the billing period
|
|
6
|
+
*/
|
|
7
|
+
export declare type CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset = "first_of_month" | "billing_cycle";
|
|
8
|
+
export declare const CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset: {
|
|
9
|
+
readonly FirstOfMonth: "first_of_month";
|
|
10
|
+
readonly BillingCycle: "billing_cycle";
|
|
11
|
+
};
|
|
@@ -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.CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset = void 0;
|
|
7
|
+
exports.CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset = {
|
|
8
|
+
FirstOfMonth: "first_of_month",
|
|
9
|
+
BillingCycle: "billing_cycle",
|
|
10
|
+
};
|
|
@@ -13,6 +13,10 @@ export interface FeatureCompanyResponseData {
|
|
|
13
13
|
entitlementId: string;
|
|
14
14
|
entitlementType: string;
|
|
15
15
|
feature?: Schematic.FeatureDetailResponseData;
|
|
16
|
+
/** The time at which the metric will resets. */
|
|
17
|
+
metricResetAt?: Date;
|
|
18
|
+
/** If the period is current_month, when the month resets. */
|
|
19
|
+
monthReset?: string;
|
|
16
20
|
/** The period over which usage is measured. */
|
|
17
21
|
period?: string;
|
|
18
22
|
plan?: Schematic.PlanResponseData;
|
|
@@ -13,6 +13,10 @@ export interface FeatureCompanyUserResponseData {
|
|
|
13
13
|
entitlementId: string;
|
|
14
14
|
entitlementType: string;
|
|
15
15
|
feature?: Schematic.FeatureDetailResponseData;
|
|
16
|
+
/** The time at which the metric will resets. */
|
|
17
|
+
metricResetAt?: Date;
|
|
18
|
+
/** If the period is current_month, when the month resets. */
|
|
19
|
+
monthReset?: string;
|
|
16
20
|
/** The period over which usage is measured. */
|
|
17
21
|
period?: string;
|
|
18
22
|
plan?: Schematic.PlanResponseData;
|
|
@@ -12,6 +12,10 @@ export interface FeatureUsageResponseData {
|
|
|
12
12
|
entitlementId: string;
|
|
13
13
|
entitlementType: string;
|
|
14
14
|
feature?: Schematic.FeatureDetailResponseData;
|
|
15
|
+
/** The time at which the metric will resets. */
|
|
16
|
+
metricResetAt?: Date;
|
|
17
|
+
/** If the period is current_month, when the month resets. */
|
|
18
|
+
monthReset?: string;
|
|
15
19
|
/** The period over which usage is measured. */
|
|
16
20
|
period?: string;
|
|
17
21
|
plan?: Schematic.PlanResponseData;
|
|
@@ -12,9 +12,12 @@ export interface PlanDetailResponseData {
|
|
|
12
12
|
icon: string;
|
|
13
13
|
id: string;
|
|
14
14
|
isDefault: boolean;
|
|
15
|
+
isFree: boolean;
|
|
16
|
+
isTrialable: boolean;
|
|
15
17
|
monthlyPrice?: Schematic.BillingPriceResponseData;
|
|
16
18
|
name: string;
|
|
17
19
|
planType: string;
|
|
20
|
+
trialDays?: number;
|
|
18
21
|
updatedAt: Date;
|
|
19
22
|
yearlyPrice?: Schematic.BillingPriceResponseData;
|
|
20
23
|
}
|
|
@@ -8,9 +8,13 @@ export interface PlanEntitlementResponseData {
|
|
|
8
8
|
feature?: Schematic.FeatureResponseData;
|
|
9
9
|
featureId: string;
|
|
10
10
|
id: string;
|
|
11
|
+
meteredMonthlyPrice?: Schematic.BillingPriceView;
|
|
12
|
+
meteredYearlyPrice?: Schematic.BillingPriceView;
|
|
11
13
|
metricPeriod?: string;
|
|
14
|
+
metricPeriodMonthReset?: string;
|
|
12
15
|
plan?: Schematic.PlanResponseData;
|
|
13
16
|
planId: string;
|
|
17
|
+
priceBehavior?: string;
|
|
14
18
|
ruleId: string;
|
|
15
19
|
updatedAt: Date;
|
|
16
20
|
valueBool?: boolean;
|
|
@@ -6,8 +6,11 @@ import * as Schematic from "../index";
|
|
|
6
6
|
* The returned resource
|
|
7
7
|
*/
|
|
8
8
|
export interface PlanGroupDetailResponseData {
|
|
9
|
+
addOns: Schematic.PlanGroupPlanDetailResponseData[];
|
|
9
10
|
defaultPlan?: Schematic.PlanGroupPlanDetailResponseData;
|
|
10
11
|
defaultPlanId?: string;
|
|
11
12
|
id: string;
|
|
12
13
|
plans: Schematic.PlanGroupPlanDetailResponseData[];
|
|
14
|
+
trialDays?: number;
|
|
15
|
+
trialPaymentMethodRequired?: boolean;
|
|
13
16
|
}
|
|
@@ -13,9 +13,12 @@ export interface PlanGroupPlanDetailResponseData {
|
|
|
13
13
|
icon: string;
|
|
14
14
|
id: string;
|
|
15
15
|
isDefault: boolean;
|
|
16
|
+
isFree: boolean;
|
|
17
|
+
isTrialable: boolean;
|
|
16
18
|
monthlyPrice?: Schematic.BillingPriceResponseData;
|
|
17
19
|
name: string;
|
|
18
20
|
planType: string;
|
|
21
|
+
trialDays?: number;
|
|
19
22
|
updatedAt: Date;
|
|
20
23
|
yearlyPrice?: Schematic.BillingPriceResponseData;
|
|
21
24
|
}
|