@schematichq/schematic-typescript-node 1.1.9 → 1.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.d.ts +20 -13
- package/Client.js +13 -8
- package/README.md +199 -0
- package/api/errors/BadRequestError.d.ts +2 -1
- package/api/errors/BadRequestError.js +19 -8
- package/api/errors/ForbiddenError.d.ts +2 -1
- package/api/errors/ForbiddenError.js +19 -8
- package/api/errors/InternalServerError.d.ts +2 -1
- package/api/errors/InternalServerError.js +19 -8
- package/api/errors/NotFoundError.d.ts +2 -1
- package/api/errors/NotFoundError.js +19 -8
- package/api/errors/UnauthorizedError.d.ts +2 -1
- package/api/errors/UnauthorizedError.js +19 -8
- package/api/errors/index.d.ts +1 -1
- package/api/errors/index.js +1 -1
- package/api/resources/accesstokens/client/Client.d.ts +7 -1
- package/api/resources/accesstokens/client/Client.js +50 -22
- package/api/resources/accounts/client/Client.d.ts +55 -14
- package/api/resources/accounts/client/Client.js +548 -224
- package/api/resources/accounts/types/CreateEnvironmentRequestBodyEnvironmentType.d.ts +1 -1
- package/api/resources/accounts/types/QuickstartResponse.d.ts +9 -0
- package/api/resources/accounts/types/UpdateEnvironmentRequestBodyEnvironmentType.d.ts +1 -1
- package/api/resources/accounts/types/index.d.ts +1 -0
- package/api/resources/accounts/types/index.js +1 -0
- package/api/resources/billing/client/Client.d.ts +99 -25
- package/api/resources/billing/client/Client.js +912 -307
- package/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +10 -1
- package/api/resources/billing/client/requests/CountCustomersRequest.d.ts +1 -0
- package/api/resources/billing/client/requests/CreateBillingCustomerRequestBody.d.ts +1 -0
- package/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +14 -2
- package/api/resources/billing/client/requests/CreateBillingProductRequestBody.d.ts +2 -5
- package/api/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +6 -2
- package/api/resources/billing/client/requests/CreatePaymentMethodRequestBody.d.ts +0 -1
- package/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +10 -1
- package/api/resources/billing/client/requests/ListCouponsRequest.d.ts +19 -0
- package/api/resources/billing/client/requests/{ListCustomersRequest.d.ts → ListCustomersWithSubscriptionsRequest.d.ts} +2 -1
- package/api/resources/billing/client/requests/ListPaymentMethodsRequest.d.ts +0 -1
- package/api/resources/billing/client/requests/ListProductPricesRequest.d.ts +10 -1
- package/api/resources/billing/client/requests/SearchBillingPricesRequest.d.ts +3 -1
- package/api/resources/billing/client/requests/index.d.ts +2 -1
- package/api/resources/billing/types/CountBillingProductsParams.d.ts +6 -1
- package/api/resources/billing/types/CountBillingProductsRequestPriceUsageType.d.ts +8 -0
- package/api/resources/billing/types/CountBillingProductsRequestPriceUsageType.js +10 -0
- package/api/resources/billing/types/CountBillingProductsResponseParamsPriceUsageType.d.ts +8 -0
- package/api/resources/billing/types/CountBillingProductsResponseParamsPriceUsageType.js +10 -0
- package/api/resources/billing/types/CountCustomersParams.d.ts +1 -0
- package/api/resources/billing/types/CreateBillingPriceRequestBodyBillingScheme.d.ts +8 -0
- package/api/resources/billing/types/CreateBillingPriceRequestBodyBillingScheme.js +10 -0
- package/api/resources/billing/types/CreateBillingPriceRequestBodyTierMode.d.ts +8 -0
- package/api/resources/billing/types/CreateBillingPriceRequestBodyTierMode.js +10 -0
- package/api/resources/billing/types/CreateBillingPriceRequestBodyUsageType.d.ts +8 -0
- package/api/resources/billing/types/CreateBillingPriceRequestBodyUsageType.js +10 -0
- package/api/resources/billing/types/CreateBillingSubscriptionsRequestBodyTrialEndSetting.d.ts +8 -0
- package/api/resources/billing/types/CreateBillingSubscriptionsRequestBodyTrialEndSetting.js +10 -0
- package/api/resources/billing/types/DeleteBillingProductResponse.d.ts +9 -0
- package/api/resources/billing/types/ListBillingProductsParams.d.ts +6 -1
- package/api/resources/billing/types/ListBillingProductsRequestPriceUsageType.d.ts +8 -0
- package/api/resources/billing/types/ListBillingProductsRequestPriceUsageType.js +10 -0
- package/api/resources/billing/types/ListBillingProductsResponseParamsPriceUsageType.d.ts +8 -0
- package/api/resources/billing/types/ListBillingProductsResponseParamsPriceUsageType.js +10 -0
- package/api/resources/billing/types/ListCouponsParams.d.ts +14 -0
- package/api/resources/billing/types/ListCouponsResponse.d.ts +10 -0
- package/{dist/api/resources/billing/types/ListCustomersParams.d.ts → api/resources/billing/types/ListCustomersWithSubscriptionsParams.d.ts} +2 -1
- package/api/resources/billing/types/ListCustomersWithSubscriptionsParams.js +5 -0
- package/{dist/api/resources/billing/types/ListCustomersResponse.d.ts → api/resources/billing/types/ListCustomersWithSubscriptionsResponse.d.ts} +2 -2
- package/api/resources/billing/types/ListCustomersWithSubscriptionsResponse.js +5 -0
- package/api/resources/billing/types/ListPaymentMethodsParams.d.ts +0 -1
- package/api/resources/billing/types/ListProductPricesParams.d.ts +6 -1
- package/api/resources/billing/types/ListProductPricesRequestPriceUsageType.d.ts +8 -0
- package/api/resources/billing/types/ListProductPricesRequestPriceUsageType.js +10 -0
- package/api/resources/billing/types/ListProductPricesResponseParamsPriceUsageType.d.ts +8 -0
- package/api/resources/billing/types/ListProductPricesResponseParamsPriceUsageType.js +10 -0
- package/api/resources/billing/types/SearchBillingPricesParams.d.ts +3 -1
- package/api/resources/billing/types/SearchBillingPricesRequestUsageType.d.ts +8 -0
- package/api/resources/billing/types/SearchBillingPricesRequestUsageType.js +10 -0
- package/api/resources/billing/types/SearchBillingPricesResponseParamsUsageType.d.ts +8 -0
- package/api/resources/billing/types/SearchBillingPricesResponseParamsUsageType.js +10 -0
- package/api/resources/billing/types/index.d.ts +17 -2
- package/api/resources/billing/types/index.js +17 -2
- package/api/resources/checkout/client/Client.d.ts +19 -6
- package/api/resources/checkout/client/Client.js +149 -73
- package/api/resources/checkout/client/requests/CheckoutDataRequestBody.d.ts +13 -0
- package/api/resources/checkout/client/requests/CheckoutDataRequestBody.js +5 -0
- package/api/resources/checkout/client/requests/index.d.ts +1 -0
- package/api/resources/companies/client/Client.d.ts +99 -37
- package/api/resources/companies/client/Client.js +1024 -499
- package/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +4 -0
- package/api/resources/companies/client/requests/ListCompaniesRequest.d.ts +4 -0
- package/api/resources/companies/client/requests/LookupCompanyRequest.d.ts +2 -4
- package/api/resources/companies/client/requests/LookupUserRequest.d.ts +2 -4
- package/api/resources/companies/types/CountCompaniesParams.d.ts +2 -0
- package/api/resources/companies/types/CountEntityKeyDefinitionsRequestEntityType.d.ts +1 -1
- package/api/resources/companies/types/CountEntityKeyDefinitionsResponseParamsEntityType.d.ts +1 -1
- package/api/resources/companies/types/CountEntityTraitDefinitionsRequestEntityType.d.ts +1 -1
- package/api/resources/companies/types/CountEntityTraitDefinitionsRequestTraitType.d.ts +1 -1
- package/api/resources/companies/types/CountEntityTraitDefinitionsResponseParamsEntityType.d.ts +1 -1
- package/api/resources/companies/types/CountEntityTraitDefinitionsResponseParamsTraitType.d.ts +1 -1
- package/api/resources/companies/types/CreateEntityTraitDefinitionRequestBodyEntityType.d.ts +1 -1
- package/api/resources/companies/types/CreateEntityTraitDefinitionRequestBodyTraitType.d.ts +1 -1
- package/api/resources/companies/types/ListCompaniesParams.d.ts +2 -0
- package/api/resources/companies/types/ListEntityKeyDefinitionsRequestEntityType.d.ts +1 -1
- package/api/resources/companies/types/ListEntityKeyDefinitionsResponseParamsEntityType.d.ts +1 -1
- package/api/resources/companies/types/ListEntityTraitDefinitionsRequestEntityType.d.ts +1 -1
- package/api/resources/companies/types/ListEntityTraitDefinitionsRequestTraitType.d.ts +1 -1
- package/api/resources/companies/types/ListEntityTraitDefinitionsResponseParamsEntityType.d.ts +1 -1
- package/api/resources/companies/types/ListEntityTraitDefinitionsResponseParamsTraitType.d.ts +1 -1
- package/api/resources/companies/types/LookupCompanyParams.d.ts +1 -1
- package/api/resources/companies/types/LookupUserParams.d.ts +1 -1
- package/api/resources/companies/types/UpdateEntityTraitDefinitionRequestBodyTraitType.d.ts +1 -1
- package/api/resources/components/client/Client.d.ts +22 -7
- package/api/resources/components/client/Client.js +226 -117
- package/api/resources/components/types/CreateComponentRequestBodyEntityType.d.ts +1 -1
- package/api/resources/components/types/UpdateComponentRequestBodyEntityType.d.ts +1 -1
- package/api/resources/components/types/UpdateComponentRequestBodyState.d.ts +1 -1
- package/api/resources/crm/client/Client.d.ts +19 -5
- package/api/resources/crm/client/Client.js +183 -83
- package/api/resources/dataexports/client/Client.d.ts +58 -0
- package/api/resources/dataexports/client/Client.js +265 -0
- package/api/resources/dataexports/client/index.d.ts +1 -0
- package/api/resources/dataexports/client/index.js +17 -0
- package/api/resources/dataexports/client/requests/CreateDataExportRequestBody.d.ts +12 -0
- package/api/resources/dataexports/client/requests/CreateDataExportRequestBody.js +5 -0
- package/api/resources/dataexports/client/requests/index.d.ts +1 -0
- package/api/resources/dataexports/client/requests/index.js +2 -0
- package/api/resources/dataexports/index.d.ts +2 -0
- package/api/resources/dataexports/index.js +18 -0
- package/api/resources/dataexports/types/CreateDataExportResponse.d.ts +9 -0
- package/api/resources/dataexports/types/CreateDataExportResponse.js +5 -0
- package/api/resources/dataexports/types/index.d.ts +1 -0
- package/api/resources/dataexports/types/index.js +17 -0
- package/api/resources/entitlements/client/Client.d.ts +57 -22
- package/api/resources/entitlements/client/Client.js +612 -306
- package/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +7 -0
- package/api/resources/entitlements/client/requests/GetFeatureUsageByCompanyRequest.d.ts +2 -4
- package/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +7 -0
- package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
- package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +1 -1
- package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyValueType.d.ts +1 -1
- package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
- package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +1 -1
- package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyValueType.d.ts +1 -1
- package/api/resources/entitlements/types/GetFeatureUsageByCompanyParams.d.ts +1 -1
- package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
- package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +1 -1
- package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyValueType.d.ts +1 -1
- package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
- package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +1 -1
- package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyValueType.d.ts +1 -1
- package/api/resources/events/client/Client.d.ts +20 -6
- package/api/resources/events/client/Client.js +199 -99
- package/api/resources/features/client/Client.d.ts +56 -19
- package/api/resources/features/client/Client.js +607 -300
- package/api/resources/features/client/requests/CreateFeatureRequestBody.d.ts +2 -0
- package/api/resources/features/client/requests/UpdateFeatureRequestBody.d.ts +2 -0
- package/api/resources/features/types/CreateFeatureRequestBodyFeatureType.d.ts +1 -1
- package/api/resources/features/types/UpdateFeatureRequestBodyFeatureType.d.ts +1 -1
- package/api/resources/index.d.ts +3 -0
- package/api/resources/index.js +21 -8
- package/api/resources/plangroups/client/Client.d.ts +17 -5
- package/api/resources/plangroups/client/Client.js +105 -55
- package/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +7 -2
- package/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +7 -2
- package/api/resources/plans/client/Client.d.ts +128 -11
- package/api/resources/plans/client/Client.js +1063 -210
- package/api/resources/plans/client/requests/CountPlanTraitsRequest.d.ts +20 -0
- package/api/resources/plans/client/requests/CountPlanTraitsRequest.js +5 -0
- package/api/resources/plans/client/requests/CreatePlanTraitRequestBody.d.ts +16 -0
- package/api/resources/plans/client/requests/CreatePlanTraitRequestBody.js +5 -0
- package/api/resources/plans/client/requests/ListPlanTraitsRequest.d.ts +20 -0
- package/api/resources/plans/client/requests/ListPlanTraitsRequest.js +5 -0
- package/api/resources/plans/client/requests/UpdatePlanTraitRequestBody.d.ts +14 -0
- package/api/resources/plans/client/requests/UpdatePlanTraitRequestBody.js +5 -0
- package/api/resources/plans/client/requests/UpsertBillingProductRequestBody.d.ts +2 -0
- package/api/resources/plans/client/requests/index.d.ts +4 -0
- package/api/resources/plans/types/CountPlanTraitsParams.d.ts +15 -0
- package/api/resources/plans/types/CountPlanTraitsParams.js +5 -0
- package/api/resources/plans/types/CountPlanTraitsResponse.d.ts +9 -0
- package/api/resources/plans/types/CountPlanTraitsResponse.js +5 -0
- package/api/resources/plans/types/CountPlansRequestPlanType.d.ts +1 -1
- package/api/resources/plans/types/CountPlansResponseParamsPlanType.d.ts +1 -1
- package/api/resources/plans/types/CreatePlanRequestBodyPlanType.d.ts +1 -1
- package/api/resources/plans/types/CreatePlanTraitResponse.d.ts +9 -0
- package/api/resources/plans/types/CreatePlanTraitResponse.js +5 -0
- package/api/resources/plans/types/DeletePlanTraitResponse.d.ts +9 -0
- package/api/resources/plans/types/DeletePlanTraitResponse.js +5 -0
- package/api/resources/plans/types/GetPlanTraitResponse.d.ts +9 -0
- package/api/resources/plans/types/GetPlanTraitResponse.js +5 -0
- package/api/resources/plans/types/ListPlanTraitsParams.d.ts +15 -0
- package/api/resources/plans/types/ListPlanTraitsParams.js +5 -0
- package/api/resources/plans/types/ListPlanTraitsResponse.d.ts +10 -0
- package/api/resources/plans/types/ListPlanTraitsResponse.js +5 -0
- package/api/resources/plans/types/ListPlansRequestPlanType.d.ts +1 -1
- package/api/resources/plans/types/ListPlansResponseParamsPlanType.d.ts +1 -1
- package/api/resources/plans/types/UpdatePlanTraitResponse.d.ts +9 -0
- package/api/resources/plans/types/UpdatePlanTraitResponse.js +5 -0
- package/api/resources/plans/types/index.d.ts +8 -0
- package/api/resources/plans/types/index.js +8 -0
- package/api/resources/webhooks/client/Client.d.ts +28 -9
- package/api/resources/webhooks/client/Client.js +293 -148
- package/api/resources/webhooks/client/requests/CreateWebhookRequestBody.d.ts +1 -0
- package/api/resources/webhooks/client/requests/UpdateWebhookRequestBody.d.ts +1 -0
- package/api/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.d.ts +5 -1
- package/api/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.js +4 -0
- package/api/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.d.ts +5 -1
- package/api/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.js +4 -0
- package/api/resources/webhooks/types/UpdateWebhookRequestBodyStatus.d.ts +1 -1
- package/api/types/BillingCouponResponseData.d.ts +0 -3
- package/api/types/BillingPriceResponseData.d.ts +2 -0
- package/api/types/BillingPriceView.d.ts +7 -0
- package/api/types/BillingProductDetailResponseData.d.ts +3 -0
- package/api/types/BillingProductForSubscriptionResponseData.d.ts +5 -0
- package/api/types/BillingProductPlanResponseData.d.ts +2 -0
- package/api/types/BillingProductPriceResponseData.d.ts +3 -0
- package/api/types/BillingProductPriceTierResponseData.d.ts +9 -0
- package/api/types/BillingProductPriceTierResponseData.js +5 -0
- package/api/types/BillingProductPricing.d.ts +4 -1
- package/api/types/BillingProductPricingUsageType.d.ts +8 -0
- package/api/types/BillingProductPricingUsageType.js +10 -0
- package/api/types/BillingProductResponseData.d.ts +2 -0
- package/api/types/BillingSubscriptionResponseData.d.ts +3 -0
- package/api/types/BillingSubscriptionView.d.ts +3 -0
- package/api/types/ChangeSubscriptionInternalRequestBody.d.ts +1 -0
- package/api/types/ChangeSubscriptionRequestBody.d.ts +1 -0
- package/api/types/CheckFlagResponseData.d.ts +2 -0
- package/api/types/CheckoutDataResponseData.d.ts +3 -1
- package/api/types/CompanyDetailResponseData.d.ts +2 -0
- package/api/types/CompanyPlanDetailResponseData.d.ts +5 -0
- package/api/types/CompanyPlanWithBillingSubView.d.ts +2 -0
- package/api/types/CompanySubscriptionResponseData.d.ts +2 -0
- package/api/types/ComponentCapabilities.d.ts +1 -0
- package/api/types/CreateBillingPriceTierRequestBody.d.ts +10 -0
- package/api/types/CreateBillingPriceTierRequestBody.js +5 -0
- package/api/types/CreateEntitlementReqCommonMetricPeriod.d.ts +1 -1
- package/api/types/CreateEntitlementReqCommonMetricPeriodMonthReset.d.ts +1 -1
- package/api/types/CreateEntitlementReqCommonValueType.d.ts +1 -1
- package/api/types/CreateEventRequestBodyEventType.d.ts +1 -1
- package/api/types/CreateOrUpdateConditionRequestBodyConditionType.d.ts +1 -1
- package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +1 -1
- package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.d.ts +1 -1
- package/api/types/CreateOrUpdateConditionRequestBodyOperator.d.ts +1 -1
- package/api/types/CreateOrUpdateRuleRequestBodyRuleType.d.ts +1 -1
- package/api/types/CustomPlanConfig.d.ts +8 -0
- package/api/types/CustomPlanConfig.js +5 -0
- package/api/types/CustomPlanViewConfigResponseData.d.ts +8 -0
- package/api/types/CustomPlanViewConfigResponseData.js +5 -0
- package/api/types/DataExportResponseData.d.ts +17 -0
- package/api/types/DataExportResponseData.js +5 -0
- package/api/types/Decimal.d.ts +1 -1
- package/api/types/EntitlementTriggerConfig.d.ts +6 -0
- package/api/types/EntitlementTriggerConfig.js +5 -0
- package/api/types/EntitlementsInPlan.d.ts +7 -0
- package/api/types/EntitlementsInPlan.js +5 -0
- package/api/types/EventBody.d.ts +1 -1
- package/api/types/EventSummaryResponseData.d.ts +2 -2
- package/api/types/FeatureCompanyResponseDataAllocationType.d.ts +1 -1
- package/api/types/FeatureCompanyUserResponseDataAllocationType.d.ts +1 -1
- package/api/types/FeatureDetailResponseData.d.ts +2 -0
- package/api/types/FeatureResponseData.d.ts +2 -0
- package/api/types/FeatureUsageResponseData.d.ts +2 -0
- package/api/types/FeatureUsageResponseDataAllocationType.d.ts +1 -1
- package/api/types/OrderedPlansInGroup.d.ts +8 -0
- package/api/types/OrderedPlansInGroup.js +5 -0
- package/api/types/PaymentMethodRequestBody.d.ts +0 -1
- package/api/types/PaymentMethodResponseData.d.ts +0 -1
- package/api/types/PlanDetailResponseData.d.ts +2 -0
- package/api/types/PlanEntitlementResponseData.d.ts +2 -0
- package/api/types/PlanEntitlementsOrder.d.ts +7 -0
- package/api/types/PlanEntitlementsOrder.js +5 -0
- package/api/types/PlanGroupDetailResponseData.d.ts +3 -0
- package/api/types/PlanGroupPlanDetailResponseData.d.ts +4 -0
- package/api/types/PlanGroupPlanEntitlementsOrder.d.ts +8 -0
- package/api/types/PlanGroupPlanEntitlementsOrder.js +5 -0
- package/api/types/PlanGroupResponseData.d.ts +2 -1
- package/api/types/PlanTraitResponseData.d.ts +16 -0
- package/api/types/PlanTraitResponseData.js +5 -0
- package/api/types/PreviewSubscriptionChangeResponseData.d.ts +3 -0
- package/api/types/PreviewSubscriptionFinanceResponseData.d.ts +15 -0
- package/api/types/PreviewSubscriptionFinanceResponseData.js +5 -0
- package/api/types/PreviewSubscriptionUpcomingInvoiceLineItems.d.ts +10 -0
- package/api/types/PreviewSubscriptionUpcomingInvoiceLineItems.js +5 -0
- package/api/types/QuickstartResp.d.ts +6 -0
- package/api/types/QuickstartResp.js +5 -0
- package/api/types/UpdateEntitlementReqCommonMetricPeriod.d.ts +1 -1
- package/api/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.d.ts +1 -1
- package/api/types/UpdateEntitlementReqCommonValueType.d.ts +1 -1
- package/api/types/UpsertCompanyRequestBody.d.ts +1 -0
- package/api/types/UpsertTraitRequestBody.d.ts +1 -1
- package/api/types/UpsertUserRequestBody.d.ts +7 -2
- package/api/types/UpsertUserSubRequestBody.d.ts +4 -1
- package/api/types/UsageBasedEntitlementRequestBody.d.ts +7 -0
- package/api/types/WebhookResponseData.d.ts +3 -0
- package/api/types/index.d.ts +15 -0
- package/api/types/index.js +15 -0
- package/core/fetcher/APIResponse.d.ts +11 -1
- package/core/fetcher/Fetcher.d.ts +2 -2
- package/core/fetcher/Fetcher.js +13 -5
- package/core/fetcher/Headers.d.ts +2 -0
- package/core/fetcher/Headers.js +84 -0
- package/core/fetcher/HttpResponsePromise.d.ts +58 -0
- package/core/fetcher/HttpResponsePromise.js +103 -0
- package/core/fetcher/RawResponse.d.ts +29 -0
- package/core/fetcher/RawResponse.js +44 -0
- package/core/fetcher/Supplier.d.ts +1 -1
- package/core/fetcher/createRequestUrl.d.ts +1 -1
- package/core/fetcher/createRequestUrl.js +1 -2
- package/core/fetcher/custom.js +19 -2
- package/core/fetcher/getFetchFn.js +18 -9
- package/core/fetcher/getHeader.js +1 -2
- package/core/fetcher/getRequestBody.js +5 -5
- package/core/fetcher/getResponseBody.js +1 -2
- package/core/fetcher/index.d.ts +3 -0
- package/core/fetcher/index.js +7 -1
- package/core/fetcher/makeRequest.d.ts +1 -1
- package/core/fetcher/requestWithRetries.js +4 -5
- package/core/fetcher/signals.d.ts +0 -1
- package/core/fetcher/signals.js +2 -3
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -1
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +6 -4
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +1 -1
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +1 -1
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +18 -9
- package/core/index.js +17 -7
- package/core/json.d.ts +15 -0
- package/core/json.js +24 -0
- package/core/runtime/runtime.d.ts +1 -1
- package/core/runtime/runtime.js +51 -41
- package/core/schemas/Schema.d.ts +7 -5
- package/core/schemas/Schema.js +2 -0
- package/core/schemas/builders/bigint/bigint.d.ts +1 -1
- package/core/schemas/builders/bigint/bigint.js +22 -19
- package/core/schemas/builders/date/date.js +1 -2
- package/core/schemas/builders/enum/enum.js +1 -2
- package/core/schemas/builders/lazy/lazy.d.ts +1 -1
- package/core/schemas/builders/lazy/lazy.js +3 -4
- package/core/schemas/builders/lazy/lazyObject.js +1 -2
- package/core/schemas/builders/list/list.js +1 -2
- package/core/schemas/builders/literals/booleanLiteral.js +1 -2
- package/core/schemas/builders/literals/stringLiteral.js +1 -2
- package/core/schemas/builders/object/object.d.ts +1 -1
- package/core/schemas/builders/object/object.js +31 -3
- package/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +3 -3
- package/core/schemas/builders/object/objectWithoutOptionalProperties.js +1 -2
- package/core/schemas/builders/object/property.js +2 -3
- package/core/schemas/builders/object/types.d.ts +16 -11
- package/core/schemas/builders/object-like/getObjectLikeUtils.js +2 -3
- package/core/schemas/builders/object-like/types.d.ts +1 -1
- package/core/schemas/builders/record/record.js +2 -4
- package/core/schemas/builders/record/types.d.ts +2 -2
- package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +4 -0
- package/core/schemas/builders/schema-utils/getSchemaUtils.js +67 -4
- package/core/schemas/builders/schema-utils/stringifyValidationErrors.js +1 -2
- package/core/schemas/builders/set/set.js +1 -2
- package/core/schemas/builders/undiscriminated-union/types.d.ts +4 -4
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +1 -2
- package/core/schemas/builders/union/discriminant.js +1 -2
- package/core/schemas/builders/union/types.d.ts +6 -6
- package/core/schemas/builders/union/union.d.ts +1 -1
- package/core/schemas/builders/union/union.js +1 -2
- package/core/schemas/utils/MaybePromise.d.ts +1 -1
- package/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +4 -4
- package/core/schemas/utils/createIdentitySchemaCreator.js +1 -2
- package/core/schemas/utils/entries.d.ts +1 -1
- package/core/schemas/utils/entries.js +1 -2
- package/core/schemas/utils/filterObject.d.ts +1 -1
- package/core/schemas/utils/filterObject.js +1 -2
- package/core/schemas/utils/getErrorMessageForIncorrectType.js +1 -2
- package/core/schemas/utils/isPlainObject.js +1 -2
- package/core/schemas/utils/keys.d.ts +1 -1
- package/core/schemas/utils/keys.js +1 -2
- package/core/schemas/utils/maybeSkipValidation.js +1 -2
- package/core/schemas/utils/partition.js +1 -2
- package/dist/Client.d.ts +20 -13
- package/dist/Client.js +13 -8
- package/dist/api/errors/BadRequestError.d.ts +2 -1
- package/dist/api/errors/BadRequestError.js +19 -8
- package/dist/api/errors/ForbiddenError.d.ts +2 -1
- package/dist/api/errors/ForbiddenError.js +19 -8
- package/dist/api/errors/InternalServerError.d.ts +2 -1
- package/dist/api/errors/InternalServerError.js +19 -8
- package/dist/api/errors/NotFoundError.d.ts +2 -1
- package/dist/api/errors/NotFoundError.js +19 -8
- package/dist/api/errors/UnauthorizedError.d.ts +2 -1
- package/dist/api/errors/UnauthorizedError.js +19 -8
- package/dist/api/errors/index.d.ts +1 -1
- package/dist/api/errors/index.js +1 -1
- package/dist/api/resources/accesstokens/client/Client.d.ts +7 -1
- package/dist/api/resources/accesstokens/client/Client.js +50 -22
- package/dist/api/resources/accounts/client/Client.d.ts +55 -14
- package/dist/api/resources/accounts/client/Client.js +548 -224
- package/dist/api/resources/accounts/types/CreateEnvironmentRequestBodyEnvironmentType.d.ts +1 -1
- package/dist/api/resources/accounts/types/QuickstartResponse.d.ts +9 -0
- package/dist/api/resources/accounts/types/QuickstartResponse.js +5 -0
- package/dist/api/resources/accounts/types/UpdateEnvironmentRequestBodyEnvironmentType.d.ts +1 -1
- package/dist/api/resources/accounts/types/index.d.ts +1 -0
- package/dist/api/resources/accounts/types/index.js +1 -0
- package/dist/api/resources/billing/client/Client.d.ts +99 -25
- package/dist/api/resources/billing/client/Client.js +912 -307
- package/dist/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +10 -1
- package/dist/api/resources/billing/client/requests/CountCustomersRequest.d.ts +1 -0
- package/dist/api/resources/billing/client/requests/CreateBillingCustomerRequestBody.d.ts +1 -0
- package/dist/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +14 -2
- package/dist/api/resources/billing/client/requests/CreateBillingProductRequestBody.d.ts +2 -5
- package/dist/api/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +6 -2
- package/dist/api/resources/billing/client/requests/CreatePaymentMethodRequestBody.d.ts +0 -1
- package/dist/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +10 -1
- package/dist/api/resources/billing/client/requests/ListCouponsRequest.d.ts +19 -0
- package/dist/api/resources/billing/client/requests/ListCouponsRequest.js +5 -0
- package/dist/api/resources/billing/client/requests/{ListCustomersRequest.d.ts → ListCustomersWithSubscriptionsRequest.d.ts} +2 -1
- package/dist/api/resources/billing/client/requests/ListCustomersWithSubscriptionsRequest.js +5 -0
- package/dist/api/resources/billing/client/requests/ListPaymentMethodsRequest.d.ts +0 -1
- package/dist/api/resources/billing/client/requests/ListProductPricesRequest.d.ts +10 -1
- package/dist/api/resources/billing/client/requests/SearchBillingPricesRequest.d.ts +3 -1
- package/dist/api/resources/billing/client/requests/index.d.ts +2 -1
- package/dist/api/resources/billing/types/CountBillingProductsParams.d.ts +6 -1
- package/dist/api/resources/billing/types/CountBillingProductsRequestPriceUsageType.d.ts +8 -0
- package/dist/api/resources/billing/types/CountBillingProductsRequestPriceUsageType.js +10 -0
- package/dist/api/resources/billing/types/CountBillingProductsResponseParamsPriceUsageType.d.ts +8 -0
- package/dist/api/resources/billing/types/CountBillingProductsResponseParamsPriceUsageType.js +10 -0
- package/dist/api/resources/billing/types/CountCustomersParams.d.ts +1 -0
- package/dist/api/resources/billing/types/CreateBillingPriceRequestBodyBillingScheme.d.ts +8 -0
- package/dist/api/resources/billing/types/CreateBillingPriceRequestBodyBillingScheme.js +10 -0
- package/dist/api/resources/billing/types/CreateBillingPriceRequestBodyTierMode.d.ts +8 -0
- package/dist/api/resources/billing/types/CreateBillingPriceRequestBodyTierMode.js +10 -0
- package/dist/api/resources/billing/types/CreateBillingPriceRequestBodyUsageType.d.ts +8 -0
- package/dist/api/resources/billing/types/CreateBillingPriceRequestBodyUsageType.js +10 -0
- package/dist/api/resources/billing/types/CreateBillingSubscriptionsRequestBodyTrialEndSetting.d.ts +8 -0
- package/dist/api/resources/billing/types/CreateBillingSubscriptionsRequestBodyTrialEndSetting.js +10 -0
- package/dist/api/resources/billing/types/DeleteBillingProductResponse.d.ts +9 -0
- package/dist/api/resources/billing/types/DeleteBillingProductResponse.js +5 -0
- package/dist/api/resources/billing/types/ListBillingProductsParams.d.ts +6 -1
- package/dist/api/resources/billing/types/ListBillingProductsRequestPriceUsageType.d.ts +8 -0
- package/dist/api/resources/billing/types/ListBillingProductsRequestPriceUsageType.js +10 -0
- package/dist/api/resources/billing/types/ListBillingProductsResponseParamsPriceUsageType.d.ts +8 -0
- package/dist/api/resources/billing/types/ListBillingProductsResponseParamsPriceUsageType.js +10 -0
- package/dist/api/resources/billing/types/ListCouponsParams.d.ts +14 -0
- package/dist/api/resources/billing/types/ListCouponsParams.js +5 -0
- package/dist/api/resources/billing/types/ListCouponsResponse.d.ts +10 -0
- package/dist/api/resources/billing/types/ListCouponsResponse.js +5 -0
- package/{api/resources/billing/types/ListCustomersParams.d.ts → dist/api/resources/billing/types/ListCustomersWithSubscriptionsParams.d.ts} +2 -1
- package/dist/api/resources/billing/types/ListCustomersWithSubscriptionsParams.js +5 -0
- package/{api/resources/billing/types/ListCustomersResponse.d.ts → dist/api/resources/billing/types/ListCustomersWithSubscriptionsResponse.d.ts} +2 -2
- package/dist/api/resources/billing/types/ListCustomersWithSubscriptionsResponse.js +5 -0
- package/dist/api/resources/billing/types/ListPaymentMethodsParams.d.ts +0 -1
- package/dist/api/resources/billing/types/ListProductPricesParams.d.ts +6 -1
- package/dist/api/resources/billing/types/ListProductPricesRequestPriceUsageType.d.ts +8 -0
- package/dist/api/resources/billing/types/ListProductPricesRequestPriceUsageType.js +10 -0
- package/dist/api/resources/billing/types/ListProductPricesResponseParamsPriceUsageType.d.ts +8 -0
- package/dist/api/resources/billing/types/ListProductPricesResponseParamsPriceUsageType.js +10 -0
- package/dist/api/resources/billing/types/SearchBillingPricesParams.d.ts +3 -1
- package/dist/api/resources/billing/types/SearchBillingPricesRequestUsageType.d.ts +8 -0
- package/dist/api/resources/billing/types/SearchBillingPricesRequestUsageType.js +10 -0
- package/dist/api/resources/billing/types/SearchBillingPricesResponseParamsUsageType.d.ts +8 -0
- package/dist/api/resources/billing/types/SearchBillingPricesResponseParamsUsageType.js +10 -0
- package/dist/api/resources/billing/types/index.d.ts +17 -2
- package/dist/api/resources/billing/types/index.js +17 -2
- package/dist/api/resources/checkout/client/Client.d.ts +19 -6
- package/dist/api/resources/checkout/client/Client.js +149 -73
- package/dist/api/resources/checkout/client/requests/CheckoutDataRequestBody.d.ts +13 -0
- package/dist/api/resources/checkout/client/requests/CheckoutDataRequestBody.js +5 -0
- package/dist/api/resources/checkout/client/requests/index.d.ts +1 -0
- package/dist/api/resources/companies/client/Client.d.ts +99 -37
- package/dist/api/resources/companies/client/Client.js +1024 -499
- package/dist/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +4 -0
- package/dist/api/resources/companies/client/requests/ListCompaniesRequest.d.ts +4 -0
- package/dist/api/resources/companies/client/requests/LookupCompanyRequest.d.ts +2 -4
- package/dist/api/resources/companies/client/requests/LookupUserRequest.d.ts +2 -4
- package/dist/api/resources/companies/types/CountCompaniesParams.d.ts +2 -0
- package/dist/api/resources/companies/types/CountEntityKeyDefinitionsRequestEntityType.d.ts +1 -1
- package/dist/api/resources/companies/types/CountEntityKeyDefinitionsResponseParamsEntityType.d.ts +1 -1
- package/dist/api/resources/companies/types/CountEntityTraitDefinitionsRequestEntityType.d.ts +1 -1
- package/dist/api/resources/companies/types/CountEntityTraitDefinitionsRequestTraitType.d.ts +1 -1
- package/dist/api/resources/companies/types/CountEntityTraitDefinitionsResponseParamsEntityType.d.ts +1 -1
- package/dist/api/resources/companies/types/CountEntityTraitDefinitionsResponseParamsTraitType.d.ts +1 -1
- package/dist/api/resources/companies/types/CreateEntityTraitDefinitionRequestBodyEntityType.d.ts +1 -1
- package/dist/api/resources/companies/types/CreateEntityTraitDefinitionRequestBodyTraitType.d.ts +1 -1
- package/dist/api/resources/companies/types/ListCompaniesParams.d.ts +2 -0
- package/dist/api/resources/companies/types/ListEntityKeyDefinitionsRequestEntityType.d.ts +1 -1
- package/dist/api/resources/companies/types/ListEntityKeyDefinitionsResponseParamsEntityType.d.ts +1 -1
- package/dist/api/resources/companies/types/ListEntityTraitDefinitionsRequestEntityType.d.ts +1 -1
- package/dist/api/resources/companies/types/ListEntityTraitDefinitionsRequestTraitType.d.ts +1 -1
- package/dist/api/resources/companies/types/ListEntityTraitDefinitionsResponseParamsEntityType.d.ts +1 -1
- package/dist/api/resources/companies/types/ListEntityTraitDefinitionsResponseParamsTraitType.d.ts +1 -1
- package/dist/api/resources/companies/types/LookupCompanyParams.d.ts +1 -1
- package/dist/api/resources/companies/types/LookupUserParams.d.ts +1 -1
- package/dist/api/resources/companies/types/UpdateEntityTraitDefinitionRequestBodyTraitType.d.ts +1 -1
- package/dist/api/resources/components/client/Client.d.ts +22 -7
- package/dist/api/resources/components/client/Client.js +226 -117
- package/dist/api/resources/components/types/CreateComponentRequestBodyEntityType.d.ts +1 -1
- package/dist/api/resources/components/types/UpdateComponentRequestBodyEntityType.d.ts +1 -1
- package/dist/api/resources/components/types/UpdateComponentRequestBodyState.d.ts +1 -1
- package/dist/api/resources/crm/client/Client.d.ts +19 -5
- package/dist/api/resources/crm/client/Client.js +183 -83
- package/dist/api/resources/dataexports/client/Client.d.ts +58 -0
- package/dist/api/resources/dataexports/client/Client.js +265 -0
- package/dist/api/resources/dataexports/client/index.d.ts +1 -0
- package/dist/api/resources/dataexports/client/index.js +17 -0
- package/dist/api/resources/dataexports/client/requests/CreateDataExportRequestBody.d.ts +12 -0
- package/dist/api/resources/dataexports/client/requests/CreateDataExportRequestBody.js +5 -0
- package/dist/api/resources/dataexports/client/requests/index.d.ts +1 -0
- package/dist/api/resources/dataexports/client/requests/index.js +2 -0
- package/dist/api/resources/dataexports/index.d.ts +2 -0
- package/dist/api/resources/dataexports/index.js +18 -0
- package/dist/api/resources/dataexports/types/CreateDataExportResponse.d.ts +9 -0
- package/dist/api/resources/dataexports/types/CreateDataExportResponse.js +5 -0
- package/dist/api/resources/dataexports/types/index.d.ts +1 -0
- package/dist/api/resources/dataexports/types/index.js +17 -0
- package/dist/api/resources/entitlements/client/Client.d.ts +57 -22
- package/dist/api/resources/entitlements/client/Client.js +612 -306
- package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +7 -0
- package/dist/api/resources/entitlements/client/requests/GetFeatureUsageByCompanyRequest.d.ts +2 -4
- package/dist/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +7 -0
- package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
- package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +1 -1
- package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyValueType.d.ts +1 -1
- package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
- package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +1 -1
- package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyValueType.d.ts +1 -1
- package/dist/api/resources/entitlements/types/GetFeatureUsageByCompanyParams.d.ts +1 -1
- package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
- package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +1 -1
- package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyValueType.d.ts +1 -1
- package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
- package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +1 -1
- package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyValueType.d.ts +1 -1
- package/dist/api/resources/events/client/Client.d.ts +20 -6
- package/dist/api/resources/events/client/Client.js +199 -99
- package/dist/api/resources/features/client/Client.d.ts +56 -19
- package/dist/api/resources/features/client/Client.js +607 -300
- package/dist/api/resources/features/client/requests/CreateFeatureRequestBody.d.ts +2 -0
- package/dist/api/resources/features/client/requests/UpdateFeatureRequestBody.d.ts +2 -0
- package/dist/api/resources/features/types/CreateFeatureRequestBodyFeatureType.d.ts +1 -1
- package/dist/api/resources/features/types/UpdateFeatureRequestBodyFeatureType.d.ts +1 -1
- package/dist/api/resources/index.d.ts +3 -0
- package/dist/api/resources/index.js +21 -8
- package/dist/api/resources/plangroups/client/Client.d.ts +17 -5
- package/dist/api/resources/plangroups/client/Client.js +105 -55
- package/dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +7 -2
- package/dist/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +7 -2
- package/dist/api/resources/plans/client/Client.d.ts +128 -11
- package/dist/api/resources/plans/client/Client.js +1063 -210
- package/dist/api/resources/plans/client/requests/CountPlanTraitsRequest.d.ts +20 -0
- package/dist/api/resources/plans/client/requests/CountPlanTraitsRequest.js +5 -0
- package/dist/api/resources/plans/client/requests/CreatePlanTraitRequestBody.d.ts +16 -0
- package/dist/api/resources/plans/client/requests/CreatePlanTraitRequestBody.js +5 -0
- package/dist/api/resources/plans/client/requests/ListPlanTraitsRequest.d.ts +20 -0
- package/dist/api/resources/plans/client/requests/ListPlanTraitsRequest.js +5 -0
- package/dist/api/resources/plans/client/requests/UpdatePlanTraitRequestBody.d.ts +14 -0
- package/dist/api/resources/plans/client/requests/UpdatePlanTraitRequestBody.js +5 -0
- package/dist/api/resources/plans/client/requests/UpsertBillingProductRequestBody.d.ts +2 -0
- package/dist/api/resources/plans/client/requests/index.d.ts +4 -0
- package/dist/api/resources/plans/types/CountPlanTraitsParams.d.ts +15 -0
- package/dist/api/resources/plans/types/CountPlanTraitsParams.js +5 -0
- package/dist/api/resources/plans/types/CountPlanTraitsResponse.d.ts +9 -0
- package/dist/api/resources/plans/types/CountPlanTraitsResponse.js +5 -0
- package/dist/api/resources/plans/types/CountPlansRequestPlanType.d.ts +1 -1
- package/dist/api/resources/plans/types/CountPlansResponseParamsPlanType.d.ts +1 -1
- package/dist/api/resources/plans/types/CreatePlanRequestBodyPlanType.d.ts +1 -1
- package/dist/api/resources/plans/types/CreatePlanTraitResponse.d.ts +9 -0
- package/dist/api/resources/plans/types/CreatePlanTraitResponse.js +5 -0
- package/dist/api/resources/plans/types/DeletePlanTraitResponse.d.ts +9 -0
- package/dist/api/resources/plans/types/DeletePlanTraitResponse.js +5 -0
- package/dist/api/resources/plans/types/GetPlanTraitResponse.d.ts +9 -0
- package/dist/api/resources/plans/types/GetPlanTraitResponse.js +5 -0
- package/dist/api/resources/plans/types/ListPlanTraitsParams.d.ts +15 -0
- package/dist/api/resources/plans/types/ListPlanTraitsParams.js +5 -0
- package/dist/api/resources/plans/types/ListPlanTraitsResponse.d.ts +10 -0
- package/dist/api/resources/plans/types/ListPlanTraitsResponse.js +5 -0
- package/dist/api/resources/plans/types/ListPlansRequestPlanType.d.ts +1 -1
- package/dist/api/resources/plans/types/ListPlansResponseParamsPlanType.d.ts +1 -1
- package/dist/api/resources/plans/types/UpdatePlanTraitResponse.d.ts +9 -0
- package/dist/api/resources/plans/types/UpdatePlanTraitResponse.js +5 -0
- package/dist/api/resources/plans/types/index.d.ts +8 -0
- package/dist/api/resources/plans/types/index.js +8 -0
- package/dist/api/resources/webhooks/client/Client.d.ts +28 -9
- package/dist/api/resources/webhooks/client/Client.js +293 -148
- package/dist/api/resources/webhooks/client/requests/CreateWebhookRequestBody.d.ts +1 -0
- package/dist/api/resources/webhooks/client/requests/UpdateWebhookRequestBody.d.ts +1 -0
- package/dist/api/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.d.ts +5 -1
- package/dist/api/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.js +4 -0
- package/dist/api/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.d.ts +5 -1
- package/dist/api/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.js +4 -0
- package/dist/api/resources/webhooks/types/UpdateWebhookRequestBodyStatus.d.ts +1 -1
- package/dist/api/types/BillingCouponResponseData.d.ts +0 -3
- package/dist/api/types/BillingPriceResponseData.d.ts +2 -0
- package/dist/api/types/BillingPriceView.d.ts +7 -0
- package/dist/api/types/BillingProductDetailResponseData.d.ts +3 -0
- package/dist/api/types/BillingProductForSubscriptionResponseData.d.ts +5 -0
- package/dist/api/types/BillingProductPlanResponseData.d.ts +2 -0
- package/dist/api/types/BillingProductPriceResponseData.d.ts +3 -0
- package/dist/api/types/BillingProductPriceTierResponseData.d.ts +9 -0
- package/dist/api/types/BillingProductPriceTierResponseData.js +5 -0
- package/dist/api/types/BillingProductPricing.d.ts +4 -1
- package/dist/api/types/BillingProductPricingUsageType.d.ts +8 -0
- package/dist/api/types/BillingProductPricingUsageType.js +10 -0
- package/dist/api/types/BillingProductResponseData.d.ts +2 -0
- package/dist/api/types/BillingSubscriptionResponseData.d.ts +3 -0
- package/dist/api/types/BillingSubscriptionView.d.ts +3 -0
- package/dist/api/types/ChangeSubscriptionInternalRequestBody.d.ts +1 -0
- package/dist/api/types/ChangeSubscriptionRequestBody.d.ts +1 -0
- package/dist/api/types/CheckFlagResponseData.d.ts +2 -0
- package/dist/api/types/CheckoutDataResponseData.d.ts +3 -1
- package/dist/api/types/CompanyDetailResponseData.d.ts +2 -0
- package/dist/api/types/CompanyPlanDetailResponseData.d.ts +5 -0
- package/dist/api/types/CompanyPlanWithBillingSubView.d.ts +2 -0
- package/dist/api/types/CompanySubscriptionResponseData.d.ts +2 -0
- package/dist/api/types/ComponentCapabilities.d.ts +1 -0
- package/dist/api/types/CreateBillingPriceTierRequestBody.d.ts +10 -0
- package/dist/api/types/CreateBillingPriceTierRequestBody.js +5 -0
- package/dist/api/types/CreateEntitlementReqCommonMetricPeriod.d.ts +1 -1
- package/dist/api/types/CreateEntitlementReqCommonMetricPeriodMonthReset.d.ts +1 -1
- package/dist/api/types/CreateEntitlementReqCommonValueType.d.ts +1 -1
- package/dist/api/types/CreateEventRequestBodyEventType.d.ts +1 -1
- package/dist/api/types/CreateOrUpdateConditionRequestBodyConditionType.d.ts +1 -1
- package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +1 -1
- package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.d.ts +1 -1
- package/dist/api/types/CreateOrUpdateConditionRequestBodyOperator.d.ts +1 -1
- package/dist/api/types/CreateOrUpdateRuleRequestBodyRuleType.d.ts +1 -1
- package/dist/api/types/CustomPlanConfig.d.ts +8 -0
- package/dist/api/types/CustomPlanConfig.js +5 -0
- package/dist/api/types/CustomPlanViewConfigResponseData.d.ts +8 -0
- package/dist/api/types/CustomPlanViewConfigResponseData.js +5 -0
- package/dist/api/types/DataExportResponseData.d.ts +17 -0
- package/dist/api/types/DataExportResponseData.js +5 -0
- package/dist/api/types/Decimal.d.ts +1 -1
- package/dist/api/types/EntitlementTriggerConfig.d.ts +6 -0
- package/dist/api/types/EntitlementTriggerConfig.js +5 -0
- package/dist/api/types/EntitlementsInPlan.d.ts +7 -0
- package/dist/api/types/EntitlementsInPlan.js +5 -0
- package/dist/api/types/EventBody.d.ts +1 -1
- package/dist/api/types/EventSummaryResponseData.d.ts +2 -2
- package/dist/api/types/FeatureCompanyResponseDataAllocationType.d.ts +1 -1
- package/dist/api/types/FeatureCompanyUserResponseDataAllocationType.d.ts +1 -1
- package/dist/api/types/FeatureDetailResponseData.d.ts +2 -0
- package/dist/api/types/FeatureResponseData.d.ts +2 -0
- package/dist/api/types/FeatureUsageResponseData.d.ts +2 -0
- package/dist/api/types/FeatureUsageResponseDataAllocationType.d.ts +1 -1
- package/dist/api/types/OrderedPlansInGroup.d.ts +8 -0
- package/dist/api/types/OrderedPlansInGroup.js +5 -0
- package/dist/api/types/PaymentMethodRequestBody.d.ts +0 -1
- package/dist/api/types/PaymentMethodResponseData.d.ts +0 -1
- package/dist/api/types/PlanDetailResponseData.d.ts +2 -0
- package/dist/api/types/PlanEntitlementResponseData.d.ts +2 -0
- package/dist/api/types/PlanEntitlementsOrder.d.ts +7 -0
- package/dist/api/types/PlanEntitlementsOrder.js +5 -0
- package/dist/api/types/PlanGroupDetailResponseData.d.ts +3 -0
- package/dist/api/types/PlanGroupPlanDetailResponseData.d.ts +4 -0
- package/dist/api/types/PlanGroupPlanEntitlementsOrder.d.ts +8 -0
- package/dist/api/types/PlanGroupPlanEntitlementsOrder.js +5 -0
- package/dist/api/types/PlanGroupResponseData.d.ts +2 -1
- package/dist/api/types/PlanTraitResponseData.d.ts +16 -0
- package/dist/api/types/PlanTraitResponseData.js +5 -0
- package/dist/api/types/PreviewSubscriptionChangeResponseData.d.ts +3 -0
- package/dist/api/types/PreviewSubscriptionFinanceResponseData.d.ts +15 -0
- package/dist/api/types/PreviewSubscriptionFinanceResponseData.js +5 -0
- package/dist/api/types/PreviewSubscriptionUpcomingInvoiceLineItems.d.ts +10 -0
- package/dist/api/types/PreviewSubscriptionUpcomingInvoiceLineItems.js +5 -0
- package/dist/api/types/QuickstartResp.d.ts +6 -0
- package/dist/api/types/QuickstartResp.js +5 -0
- package/dist/api/types/UpdateEntitlementReqCommonMetricPeriod.d.ts +1 -1
- package/dist/api/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.d.ts +1 -1
- package/dist/api/types/UpdateEntitlementReqCommonValueType.d.ts +1 -1
- package/dist/api/types/UpsertCompanyRequestBody.d.ts +1 -0
- package/dist/api/types/UpsertTraitRequestBody.d.ts +1 -1
- package/dist/api/types/UpsertUserRequestBody.d.ts +7 -2
- package/dist/api/types/UpsertUserSubRequestBody.d.ts +4 -1
- package/dist/api/types/UsageBasedEntitlementRequestBody.d.ts +7 -0
- package/dist/api/types/WebhookResponseData.d.ts +3 -0
- package/dist/api/types/index.d.ts +15 -0
- package/dist/api/types/index.js +15 -0
- package/dist/core/fetcher/APIResponse.d.ts +11 -1
- package/dist/core/fetcher/Fetcher.d.ts +2 -2
- package/dist/core/fetcher/Fetcher.js +13 -5
- package/dist/core/fetcher/Headers.d.ts +2 -0
- package/dist/core/fetcher/Headers.js +84 -0
- package/dist/core/fetcher/HttpResponsePromise.d.ts +58 -0
- package/dist/core/fetcher/HttpResponsePromise.js +103 -0
- package/dist/core/fetcher/RawResponse.d.ts +29 -0
- package/dist/core/fetcher/RawResponse.js +44 -0
- package/dist/core/fetcher/Supplier.d.ts +1 -1
- package/dist/core/fetcher/createRequestUrl.d.ts +1 -1
- package/dist/core/fetcher/createRequestUrl.js +1 -2
- package/dist/core/fetcher/custom.js +19 -2
- package/dist/core/fetcher/getFetchFn.js +18 -9
- package/dist/core/fetcher/getHeader.js +1 -2
- package/dist/core/fetcher/getRequestBody.js +5 -5
- package/dist/core/fetcher/getResponseBody.js +1 -2
- package/dist/core/fetcher/index.d.ts +3 -0
- package/dist/core/fetcher/index.js +7 -1
- package/dist/core/fetcher/makeRequest.d.ts +1 -1
- package/dist/core/fetcher/requestWithRetries.js +4 -5
- package/dist/core/fetcher/signals.d.ts +0 -1
- package/dist/core/fetcher/signals.js +2 -3
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -1
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +6 -4
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +1 -1
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +1 -1
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +18 -9
- package/dist/core/index.js +17 -7
- package/dist/core/json.d.ts +15 -0
- package/dist/core/json.js +24 -0
- package/dist/core/runtime/runtime.d.ts +1 -1
- package/dist/core/runtime/runtime.js +51 -41
- package/dist/core/schemas/Schema.d.ts +7 -5
- package/dist/core/schemas/Schema.js +2 -0
- package/dist/core/schemas/builders/bigint/bigint.d.ts +1 -1
- package/dist/core/schemas/builders/bigint/bigint.js +22 -19
- package/dist/core/schemas/builders/date/date.js +1 -2
- package/dist/core/schemas/builders/enum/enum.js +1 -2
- package/dist/core/schemas/builders/lazy/lazy.d.ts +1 -1
- package/dist/core/schemas/builders/lazy/lazy.js +3 -4
- package/dist/core/schemas/builders/lazy/lazyObject.js +1 -2
- package/dist/core/schemas/builders/list/list.js +1 -2
- package/dist/core/schemas/builders/literals/booleanLiteral.js +1 -2
- package/dist/core/schemas/builders/literals/stringLiteral.js +1 -2
- package/dist/core/schemas/builders/object/object.d.ts +1 -1
- package/dist/core/schemas/builders/object/object.js +31 -3
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +3 -3
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.js +1 -2
- package/dist/core/schemas/builders/object/property.js +2 -3
- package/dist/core/schemas/builders/object/types.d.ts +16 -11
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +2 -3
- package/dist/core/schemas/builders/object-like/types.d.ts +1 -1
- package/dist/core/schemas/builders/record/record.js +2 -4
- package/dist/core/schemas/builders/record/types.d.ts +2 -2
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +4 -0
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +67 -4
- package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.js +1 -2
- package/dist/core/schemas/builders/set/set.js +1 -2
- package/dist/core/schemas/builders/undiscriminated-union/types.d.ts +4 -4
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +1 -2
- package/dist/core/schemas/builders/union/discriminant.js +1 -2
- package/dist/core/schemas/builders/union/types.d.ts +6 -6
- package/dist/core/schemas/builders/union/union.d.ts +1 -1
- package/dist/core/schemas/builders/union/union.js +1 -2
- package/dist/core/schemas/utils/MaybePromise.d.ts +1 -1
- package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +4 -4
- package/dist/core/schemas/utils/createIdentitySchemaCreator.js +1 -2
- package/dist/core/schemas/utils/entries.d.ts +1 -1
- package/dist/core/schemas/utils/entries.js +1 -2
- package/dist/core/schemas/utils/filterObject.d.ts +1 -1
- package/dist/core/schemas/utils/filterObject.js +1 -2
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +1 -2
- package/dist/core/schemas/utils/isPlainObject.js +1 -2
- package/dist/core/schemas/utils/keys.d.ts +1 -1
- package/dist/core/schemas/utils/keys.js +1 -2
- package/dist/core/schemas/utils/maybeSkipValidation.js +1 -2
- package/dist/core/schemas/utils/partition.js +1 -2
- package/dist/environments.d.ts +1 -1
- package/dist/errors/SchematicError.d.ts +4 -1
- package/dist/errors/SchematicError.js +6 -8
- package/dist/errors/SchematicTimeoutError.d.ts +1 -1
- package/dist/errors/SchematicTimeoutError.js +2 -2
- package/dist/events.d.ts +4 -0
- package/dist/events.js +41 -5
- package/dist/events.test.js +51 -4
- package/dist/index.d.ts +1 -0
- package/dist/index.js +26 -8
- package/dist/serialization/resources/accesstokens/client/requests/IssueTemporaryAccessTokenRequestBody.js +17 -7
- package/dist/serialization/resources/accesstokens/types/IssueTemporaryAccessTokenResponse.js +17 -7
- package/dist/serialization/resources/accounts/client/requests/CreateApiKeyRequestBody.js +17 -7
- package/dist/serialization/resources/accounts/client/requests/CreateEnvironmentRequestBody.js +17 -7
- package/dist/serialization/resources/accounts/client/requests/UpdateApiKeyRequestBody.js +17 -7
- package/dist/serialization/resources/accounts/client/requests/UpdateEnvironmentRequestBody.js +17 -7
- package/dist/serialization/resources/accounts/types/CountApiKeysParams.js +17 -7
- package/dist/serialization/resources/accounts/types/CountApiKeysResponse.js +17 -7
- package/dist/serialization/resources/accounts/types/CountApiRequestsParams.js +17 -7
- package/dist/serialization/resources/accounts/types/CountApiRequestsResponse.js +17 -7
- package/dist/serialization/resources/accounts/types/CreateApiKeyResponse.js +17 -7
- package/dist/serialization/resources/accounts/types/CreateEnvironmentRequestBodyEnvironmentType.js +17 -7
- package/dist/serialization/resources/accounts/types/CreateEnvironmentResponse.js +17 -7
- package/dist/serialization/resources/accounts/types/DeleteApiKeyResponse.js +17 -7
- package/dist/serialization/resources/accounts/types/DeleteEnvironmentResponse.js +17 -7
- package/dist/serialization/resources/accounts/types/GetApiKeyResponse.js +17 -7
- package/dist/serialization/resources/accounts/types/GetApiRequestResponse.js +17 -7
- package/dist/serialization/resources/accounts/types/GetEnvironmentResponse.js +17 -7
- package/dist/serialization/resources/accounts/types/ListApiKeysParams.js +17 -7
- package/dist/serialization/resources/accounts/types/ListApiKeysResponse.js +17 -7
- package/dist/serialization/resources/accounts/types/ListApiRequestsParams.js +17 -7
- package/dist/serialization/resources/accounts/types/ListApiRequestsResponse.js +17 -7
- package/dist/serialization/resources/accounts/types/ListEnvironmentsParams.js +17 -7
- package/dist/serialization/resources/accounts/types/ListEnvironmentsResponse.js +17 -7
- package/dist/serialization/resources/accounts/types/QuickstartResponse.d.ts +14 -0
- package/dist/serialization/resources/accounts/types/QuickstartResponse.js +45 -0
- package/dist/serialization/resources/accounts/types/UpdateApiKeyResponse.js +17 -7
- package/dist/serialization/resources/accounts/types/UpdateEnvironmentRequestBodyEnvironmentType.js +17 -7
- package/dist/serialization/resources/accounts/types/UpdateEnvironmentResponse.js +17 -7
- package/dist/serialization/resources/accounts/types/index.d.ts +1 -0
- package/dist/serialization/resources/accounts/types/index.js +1 -0
- package/dist/serialization/resources/billing/client/requests/CreateBillingCustomerRequestBody.d.ts +1 -0
- package/dist/serialization/resources/billing/client/requests/CreateBillingCustomerRequestBody.js +18 -7
- package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +11 -1
- package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.js +28 -8
- package/dist/serialization/resources/billing/client/requests/CreateBillingProductRequestBody.d.ts +1 -2
- package/dist/serialization/resources/billing/client/requests/CreateBillingProductRequestBody.js +18 -9
- package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +5 -1
- package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.js +22 -8
- package/dist/serialization/resources/billing/client/requests/CreateCouponRequestBody.js +17 -7
- package/dist/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.js +17 -7
- package/dist/serialization/resources/billing/client/requests/CreateMeterRequestBody.js +17 -7
- package/dist/serialization/resources/billing/client/requests/CreatePaymentMethodRequestBody.d.ts +0 -1
- package/dist/serialization/resources/billing/client/requests/CreatePaymentMethodRequestBody.js +17 -8
- package/dist/serialization/resources/billing/types/CountBillingProductsParams.d.ts +4 -1
- package/dist/serialization/resources/billing/types/CountBillingProductsParams.js +21 -8
- package/dist/serialization/resources/billing/types/CountBillingProductsRequestPriceUsageType.d.ts +10 -0
- package/dist/serialization/resources/billing/types/CountBillingProductsRequestPriceUsageType.js +41 -0
- package/dist/serialization/resources/billing/types/CountBillingProductsResponse.js +17 -7
- package/dist/serialization/resources/billing/types/CountBillingProductsResponseParamsPriceUsageType.d.ts +10 -0
- package/dist/serialization/resources/billing/types/CountBillingProductsResponseParamsPriceUsageType.js +41 -0
- package/dist/serialization/resources/billing/types/CountCustomersParams.d.ts +1 -0
- package/dist/serialization/resources/billing/types/CountCustomersParams.js +18 -7
- package/dist/serialization/resources/billing/types/CountCustomersResponse.js +17 -7
- package/dist/serialization/resources/billing/types/CreateBillingPriceRequestBodyBillingScheme.d.ts +10 -0
- package/dist/serialization/resources/billing/types/CreateBillingPriceRequestBodyBillingScheme.js +41 -0
- package/dist/serialization/resources/billing/types/CreateBillingPriceRequestBodyTierMode.d.ts +10 -0
- package/dist/serialization/resources/billing/types/CreateBillingPriceRequestBodyTierMode.js +41 -0
- package/dist/serialization/resources/billing/types/CreateBillingPriceRequestBodyUsageType.d.ts +10 -0
- package/dist/serialization/resources/billing/types/CreateBillingPriceRequestBodyUsageType.js +41 -0
- package/dist/serialization/resources/billing/types/CreateBillingSubscriptionsRequestBodyTrialEndSetting.d.ts +10 -0
- package/dist/serialization/resources/billing/types/CreateBillingSubscriptionsRequestBodyTrialEndSetting.js +41 -0
- package/dist/serialization/resources/billing/types/DeleteBillingProductResponse.d.ts +14 -0
- package/dist/serialization/resources/billing/types/DeleteBillingProductResponse.js +45 -0
- package/dist/serialization/resources/billing/types/DeleteProductPriceResponse.js +17 -7
- package/dist/serialization/resources/billing/types/ListBillingProductsParams.d.ts +4 -1
- package/dist/serialization/resources/billing/types/ListBillingProductsParams.js +21 -8
- package/dist/serialization/resources/billing/types/ListBillingProductsRequestPriceUsageType.d.ts +10 -0
- package/dist/serialization/resources/billing/types/ListBillingProductsRequestPriceUsageType.js +41 -0
- package/dist/serialization/resources/billing/types/ListBillingProductsResponse.js +17 -7
- package/dist/serialization/resources/billing/types/ListBillingProductsResponseParamsPriceUsageType.d.ts +10 -0
- package/dist/serialization/resources/billing/types/ListBillingProductsResponseParamsPriceUsageType.js +41 -0
- package/dist/serialization/resources/billing/types/ListCouponsParams.d.ts +15 -0
- package/dist/serialization/resources/billing/types/ListCouponsParams.js +46 -0
- package/dist/serialization/resources/billing/types/ListCouponsResponse.d.ts +15 -0
- package/dist/serialization/resources/billing/types/ListCouponsResponse.js +46 -0
- package/dist/serialization/resources/billing/types/{ListCustomersParams.d.ts → ListCustomersWithSubscriptionsParams.d.ts} +3 -2
- package/dist/serialization/resources/billing/types/{ListCustomersParams.js → ListCustomersWithSubscriptionsParams.js} +20 -9
- package/{serialization/resources/billing/types/ListCustomersResponse.d.ts → dist/serialization/resources/billing/types/ListCustomersWithSubscriptionsResponse.d.ts} +4 -4
- package/dist/serialization/resources/billing/types/{ListCustomersResponse.js → ListCustomersWithSubscriptionsResponse.js} +21 -11
- package/dist/serialization/resources/billing/types/ListInvoicesParams.js +17 -7
- package/dist/serialization/resources/billing/types/ListInvoicesResponse.js +17 -7
- package/dist/serialization/resources/billing/types/ListMetersParams.js +17 -7
- package/dist/serialization/resources/billing/types/ListMetersResponse.js +17 -7
- package/dist/serialization/resources/billing/types/ListPaymentMethodsParams.d.ts +0 -1
- package/dist/serialization/resources/billing/types/ListPaymentMethodsParams.js +17 -8
- package/dist/serialization/resources/billing/types/ListPaymentMethodsResponse.js +17 -7
- package/dist/serialization/resources/billing/types/ListProductPricesParams.d.ts +4 -1
- package/dist/serialization/resources/billing/types/ListProductPricesParams.js +21 -8
- package/dist/serialization/resources/billing/types/ListProductPricesRequestPriceUsageType.d.ts +10 -0
- package/dist/serialization/resources/billing/types/ListProductPricesRequestPriceUsageType.js +41 -0
- package/dist/serialization/resources/billing/types/ListProductPricesResponse.js +17 -7
- package/dist/serialization/resources/billing/types/ListProductPricesResponseParamsPriceUsageType.d.ts +10 -0
- package/dist/serialization/resources/billing/types/ListProductPricesResponseParamsPriceUsageType.js +41 -0
- package/dist/serialization/resources/billing/types/SearchBillingPricesParams.d.ts +3 -1
- package/dist/serialization/resources/billing/types/SearchBillingPricesParams.js +20 -8
- package/dist/serialization/resources/billing/types/SearchBillingPricesRequestUsageType.d.ts +10 -0
- package/dist/serialization/resources/billing/types/SearchBillingPricesRequestUsageType.js +41 -0
- package/dist/serialization/resources/billing/types/SearchBillingPricesResponse.js +17 -7
- package/dist/serialization/resources/billing/types/SearchBillingPricesResponseParamsUsageType.d.ts +10 -0
- package/dist/serialization/resources/billing/types/SearchBillingPricesResponseParamsUsageType.js +41 -0
- package/dist/serialization/resources/billing/types/UpsertBillingCouponResponse.js +17 -7
- package/dist/serialization/resources/billing/types/UpsertBillingCustomerResponse.js +17 -7
- package/dist/serialization/resources/billing/types/UpsertBillingMeterResponse.js +17 -7
- package/dist/serialization/resources/billing/types/UpsertBillingPriceResponse.js +17 -7
- package/dist/serialization/resources/billing/types/UpsertBillingProductResponse.js +17 -7
- package/dist/serialization/resources/billing/types/UpsertBillingSubscriptionResponse.js +17 -7
- package/dist/serialization/resources/billing/types/UpsertInvoiceResponse.js +17 -7
- package/dist/serialization/resources/billing/types/UpsertPaymentMethodResponse.js +17 -7
- package/dist/serialization/resources/billing/types/index.d.ts +17 -2
- package/dist/serialization/resources/billing/types/index.js +17 -2
- package/dist/serialization/resources/checkout/client/requests/CheckoutDataRequestBody.d.ts +13 -0
- package/dist/serialization/resources/checkout/client/requests/CheckoutDataRequestBody.js +44 -0
- package/dist/serialization/resources/checkout/client/requests/UpdateTrialEndRequestBody.js +17 -7
- package/dist/serialization/resources/checkout/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/checkout/client/requests/index.js +3 -1
- package/dist/serialization/resources/checkout/types/CheckoutInternalResponse.js +17 -7
- package/dist/serialization/resources/checkout/types/GetCheckoutDataResponse.js +17 -7
- package/dist/serialization/resources/checkout/types/PreviewCheckoutInternalResponse.js +17 -7
- package/dist/serialization/resources/checkout/types/UpdateCustomerSubscriptionTrialEndResponse.js +17 -7
- package/dist/serialization/resources/companies/client/requests/CreateEntityTraitDefinitionRequestBody.js +17 -7
- package/dist/serialization/resources/companies/client/requests/GetOrCreateCompanyMembershipRequestBody.js +17 -7
- package/dist/serialization/resources/companies/client/requests/UpdateEntityTraitDefinitionRequestBody.js +17 -7
- package/dist/serialization/resources/companies/types/CountCompaniesParams.d.ts +1 -0
- package/dist/serialization/resources/companies/types/CountCompaniesParams.js +18 -7
- package/dist/serialization/resources/companies/types/CountCompaniesResponse.js +17 -7
- package/dist/serialization/resources/companies/types/CountEntityKeyDefinitionsParams.js +17 -7
- package/dist/serialization/resources/companies/types/CountEntityKeyDefinitionsRequestEntityType.js +17 -7
- package/dist/serialization/resources/companies/types/CountEntityKeyDefinitionsResponse.js +17 -7
- package/dist/serialization/resources/companies/types/CountEntityKeyDefinitionsResponseParamsEntityType.js +17 -7
- package/dist/serialization/resources/companies/types/CountEntityTraitDefinitionsParams.js +17 -7
- package/dist/serialization/resources/companies/types/CountEntityTraitDefinitionsRequestEntityType.js +17 -7
- package/dist/serialization/resources/companies/types/CountEntityTraitDefinitionsRequestTraitType.js +17 -7
- package/dist/serialization/resources/companies/types/CountEntityTraitDefinitionsResponse.js +17 -7
- package/dist/serialization/resources/companies/types/CountEntityTraitDefinitionsResponseParamsEntityType.js +17 -7
- package/dist/serialization/resources/companies/types/CountEntityTraitDefinitionsResponseParamsTraitType.js +17 -7
- package/dist/serialization/resources/companies/types/CountUsersParams.js +17 -7
- package/dist/serialization/resources/companies/types/CountUsersResponse.js +17 -7
- package/dist/serialization/resources/companies/types/CreateCompanyResponse.js +17 -7
- package/dist/serialization/resources/companies/types/CreateEntityTraitDefinitionRequestBodyEntityType.js +17 -7
- package/dist/serialization/resources/companies/types/CreateEntityTraitDefinitionRequestBodyTraitType.js +17 -7
- package/dist/serialization/resources/companies/types/CreateUserResponse.js +17 -7
- package/dist/serialization/resources/companies/types/DeleteCompanyByKeysResponse.js +17 -7
- package/dist/serialization/resources/companies/types/DeleteCompanyMembershipResponse.js +17 -7
- package/dist/serialization/resources/companies/types/DeleteCompanyResponse.js +17 -7
- package/dist/serialization/resources/companies/types/DeleteUserByKeysResponse.js +17 -7
- package/dist/serialization/resources/companies/types/DeleteUserResponse.js +17 -7
- package/dist/serialization/resources/companies/types/GetActiveCompanySubscriptionParams.js +17 -7
- package/dist/serialization/resources/companies/types/GetActiveCompanySubscriptionResponse.js +17 -7
- package/dist/serialization/resources/companies/types/GetActiveDealsParams.js +17 -7
- package/dist/serialization/resources/companies/types/GetActiveDealsResponse.js +17 -7
- package/dist/serialization/resources/companies/types/GetCompanyResponse.js +17 -7
- package/dist/serialization/resources/companies/types/GetEntityTraitDefinitionResponse.js +17 -7
- package/dist/serialization/resources/companies/types/GetEntityTraitValuesParams.js +17 -7
- package/dist/serialization/resources/companies/types/GetEntityTraitValuesResponse.js +17 -7
- package/dist/serialization/resources/companies/types/GetOrCreateCompanyMembershipResponse.js +17 -7
- package/dist/serialization/resources/companies/types/GetOrCreateEntityTraitDefinitionResponse.js +17 -7
- package/dist/serialization/resources/companies/types/GetUserResponse.js +17 -7
- package/dist/serialization/resources/companies/types/ListCompaniesParams.d.ts +1 -0
- package/dist/serialization/resources/companies/types/ListCompaniesParams.js +18 -7
- package/dist/serialization/resources/companies/types/ListCompaniesResponse.js +17 -7
- package/dist/serialization/resources/companies/types/ListCompanyMembershipsParams.js +17 -7
- package/dist/serialization/resources/companies/types/ListCompanyMembershipsResponse.js +17 -7
- package/dist/serialization/resources/companies/types/ListEntityKeyDefinitionsParams.js +17 -7
- package/dist/serialization/resources/companies/types/ListEntityKeyDefinitionsRequestEntityType.js +17 -7
- package/dist/serialization/resources/companies/types/ListEntityKeyDefinitionsResponse.js +17 -7
- package/dist/serialization/resources/companies/types/ListEntityKeyDefinitionsResponseParamsEntityType.js +17 -7
- package/dist/serialization/resources/companies/types/ListEntityTraitDefinitionsParams.js +17 -7
- package/dist/serialization/resources/companies/types/ListEntityTraitDefinitionsRequestEntityType.js +17 -7
- package/dist/serialization/resources/companies/types/ListEntityTraitDefinitionsRequestTraitType.js +17 -7
- package/dist/serialization/resources/companies/types/ListEntityTraitDefinitionsResponse.js +17 -7
- package/dist/serialization/resources/companies/types/ListEntityTraitDefinitionsResponseParamsEntityType.js +17 -7
- package/dist/serialization/resources/companies/types/ListEntityTraitDefinitionsResponseParamsTraitType.js +17 -7
- package/dist/serialization/resources/companies/types/ListUsersParams.js +17 -7
- package/dist/serialization/resources/companies/types/ListUsersResponse.js +17 -7
- package/dist/serialization/resources/companies/types/LookupCompanyParams.d.ts +1 -1
- package/dist/serialization/resources/companies/types/LookupCompanyParams.js +18 -8
- package/dist/serialization/resources/companies/types/LookupCompanyResponse.js +17 -7
- package/dist/serialization/resources/companies/types/LookupUserParams.d.ts +1 -1
- package/dist/serialization/resources/companies/types/LookupUserParams.js +18 -8
- package/dist/serialization/resources/companies/types/LookupUserResponse.js +17 -7
- package/dist/serialization/resources/companies/types/UpdateEntityTraitDefinitionRequestBodyTraitType.js +17 -7
- package/dist/serialization/resources/companies/types/UpdateEntityTraitDefinitionResponse.js +17 -7
- package/dist/serialization/resources/companies/types/UpsertCompanyResponse.js +17 -7
- package/dist/serialization/resources/companies/types/UpsertCompanyTraitResponse.js +17 -7
- package/dist/serialization/resources/companies/types/UpsertUserResponse.js +17 -7
- package/dist/serialization/resources/companies/types/UpsertUserTraitResponse.js +17 -7
- package/dist/serialization/resources/components/client/requests/CreateComponentRequestBody.js +17 -7
- package/dist/serialization/resources/components/client/requests/UpdateComponentRequestBody.js +17 -7
- package/dist/serialization/resources/components/types/CountComponentsParams.js +17 -7
- package/dist/serialization/resources/components/types/CountComponentsResponse.js +17 -7
- package/dist/serialization/resources/components/types/CreateComponentRequestBodyEntityType.js +17 -7
- package/dist/serialization/resources/components/types/CreateComponentResponse.js +17 -7
- package/dist/serialization/resources/components/types/DeleteComponentResponse.js +17 -7
- package/dist/serialization/resources/components/types/GetComponentResponse.js +17 -7
- package/dist/serialization/resources/components/types/ListComponentsParams.js +17 -7
- package/dist/serialization/resources/components/types/ListComponentsResponse.js +17 -7
- package/dist/serialization/resources/components/types/PreviewComponentDataParams.js +17 -7
- package/dist/serialization/resources/components/types/PreviewComponentDataResponse.js +17 -7
- package/dist/serialization/resources/components/types/UpdateComponentRequestBodyEntityType.js +17 -7
- package/dist/serialization/resources/components/types/UpdateComponentRequestBodyState.js +17 -7
- package/dist/serialization/resources/components/types/UpdateComponentResponse.js +17 -7
- package/dist/serialization/resources/crm/client/requests/CreateCrmDealLineItemAssociationRequestBody.js +17 -7
- package/dist/serialization/resources/crm/client/requests/CreateCrmDealRequestBody.js +17 -7
- package/dist/serialization/resources/crm/client/requests/CreateCrmLineItemRequestBody.js +17 -7
- package/dist/serialization/resources/crm/client/requests/CreateCrmProductRequestBody.js +17 -7
- package/dist/serialization/resources/crm/types/ListCrmProductsParams.js +17 -7
- package/dist/serialization/resources/crm/types/ListCrmProductsResponse.js +17 -7
- package/dist/serialization/resources/crm/types/UpsertCrmDealResponse.js +17 -7
- package/dist/serialization/resources/crm/types/UpsertCrmProductResponse.js +17 -7
- package/dist/serialization/resources/crm/types/UpsertDealLineItemAssociationResponse.js +17 -7
- package/dist/serialization/resources/crm/types/UpsertLineItemResponse.js +17 -7
- package/dist/serialization/resources/dataexports/client/index.d.ts +1 -0
- package/dist/serialization/resources/dataexports/client/index.js +17 -0
- package/dist/serialization/resources/dataexports/client/requests/CreateDataExportRequestBody.d.ts +12 -0
- package/dist/serialization/resources/dataexports/client/requests/CreateDataExportRequestBody.js +43 -0
- package/dist/serialization/resources/dataexports/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/dataexports/client/requests/index.js +5 -0
- package/dist/serialization/resources/dataexports/index.d.ts +2 -0
- package/dist/serialization/resources/dataexports/index.js +18 -0
- package/dist/serialization/resources/dataexports/types/CreateDataExportResponse.d.ts +14 -0
- package/dist/serialization/resources/dataexports/types/CreateDataExportResponse.js +45 -0
- package/dist/serialization/resources/dataexports/types/index.d.ts +1 -0
- package/dist/serialization/resources/dataexports/types/index.js +17 -0
- package/dist/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.js +17 -7
- package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +7 -0
- package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +24 -7
- package/dist/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.js +17 -7
- package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +7 -0
- package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +24 -7
- package/dist/serialization/resources/entitlements/types/CountCompanyOverridesParams.js +17 -7
- package/dist/serialization/resources/entitlements/types/CountCompanyOverridesResponse.js +17 -7
- package/dist/serialization/resources/entitlements/types/CountFeatureCompaniesParams.js +17 -7
- package/dist/serialization/resources/entitlements/types/CountFeatureCompaniesResponse.js +17 -7
- package/dist/serialization/resources/entitlements/types/CountFeatureUsageParams.js +17 -7
- package/dist/serialization/resources/entitlements/types/CountFeatureUsageResponse.js +17 -7
- package/dist/serialization/resources/entitlements/types/CountFeatureUsersParams.js +17 -7
- package/dist/serialization/resources/entitlements/types/CountFeatureUsersResponse.js +17 -7
- package/dist/serialization/resources/entitlements/types/CountPlanEntitlementsParams.js +17 -7
- package/dist/serialization/resources/entitlements/types/CountPlanEntitlementsResponse.js +17 -7
- package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +17 -7
- package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +17 -7
- package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyValueType.js +17 -7
- package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideResponse.js +17 -7
- package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +17 -7
- package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +17 -7
- package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyValueType.js +17 -7
- package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementResponse.js +17 -7
- package/dist/serialization/resources/entitlements/types/DeleteCompanyOverrideResponse.js +17 -7
- package/dist/serialization/resources/entitlements/types/DeletePlanEntitlementResponse.js +17 -7
- package/dist/serialization/resources/entitlements/types/GetCompanyOverrideResponse.js +17 -7
- package/dist/serialization/resources/entitlements/types/GetFeatureUsageByCompanyParams.d.ts +1 -1
- package/dist/serialization/resources/entitlements/types/GetFeatureUsageByCompanyParams.js +18 -8
- package/dist/serialization/resources/entitlements/types/GetFeatureUsageByCompanyResponse.js +17 -7
- package/dist/serialization/resources/entitlements/types/GetPlanEntitlementResponse.js +17 -7
- package/dist/serialization/resources/entitlements/types/ListCompanyOverridesParams.js +17 -7
- package/dist/serialization/resources/entitlements/types/ListCompanyOverridesResponse.js +17 -7
- package/dist/serialization/resources/entitlements/types/ListFeatureCompaniesParams.js +17 -7
- package/dist/serialization/resources/entitlements/types/ListFeatureCompaniesResponse.js +17 -7
- package/dist/serialization/resources/entitlements/types/ListFeatureUsageParams.js +17 -7
- package/dist/serialization/resources/entitlements/types/ListFeatureUsageResponse.js +17 -7
- package/dist/serialization/resources/entitlements/types/ListFeatureUsersParams.js +17 -7
- package/dist/serialization/resources/entitlements/types/ListFeatureUsersResponse.js +17 -7
- package/dist/serialization/resources/entitlements/types/ListPlanEntitlementsParams.js +17 -7
- package/dist/serialization/resources/entitlements/types/ListPlanEntitlementsResponse.js +17 -7
- package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +17 -7
- package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +17 -7
- package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyValueType.js +17 -7
- package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideResponse.js +17 -7
- package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +17 -7
- package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +17 -7
- package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyValueType.js +17 -7
- package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementResponse.js +17 -7
- package/dist/serialization/resources/events/client/requests/CreateEventBatchRequestBody.js +17 -7
- package/dist/serialization/resources/events/types/CreateEventBatchResponse.js +17 -7
- package/dist/serialization/resources/events/types/CreateEventResponse.js +17 -7
- package/dist/serialization/resources/events/types/GetEventResponse.js +17 -7
- package/dist/serialization/resources/events/types/GetEventSummariesParams.js +17 -7
- package/dist/serialization/resources/events/types/GetEventSummariesResponse.js +17 -7
- package/dist/serialization/resources/events/types/GetSegmentIntegrationStatusResponse.js +17 -7
- package/dist/serialization/resources/events/types/ListEventsParams.js +17 -7
- package/dist/serialization/resources/events/types/ListEventsResponse.js +17 -7
- package/dist/serialization/resources/features/client/requests/CreateFeatureRequestBody.d.ts +2 -0
- package/dist/serialization/resources/features/client/requests/CreateFeatureRequestBody.js +19 -7
- package/dist/serialization/resources/features/client/requests/UpdateFeatureRequestBody.d.ts +2 -0
- package/dist/serialization/resources/features/client/requests/UpdateFeatureRequestBody.js +19 -7
- package/dist/serialization/resources/features/client/requests/UpdateFlagRulesRequestBody.js +17 -7
- package/dist/serialization/resources/features/types/CheckFlagResponse.js +17 -7
- package/dist/serialization/resources/features/types/CheckFlagsResponse.js +17 -7
- package/dist/serialization/resources/features/types/CountAudienceCompaniesResponse.js +17 -7
- package/dist/serialization/resources/features/types/CountAudienceUsersResponse.js +17 -7
- package/dist/serialization/resources/features/types/CountFeaturesParams.js +17 -7
- package/dist/serialization/resources/features/types/CountFeaturesResponse.js +17 -7
- package/dist/serialization/resources/features/types/CountFlagsParams.js +17 -7
- package/dist/serialization/resources/features/types/CountFlagsResponse.js +17 -7
- package/dist/serialization/resources/features/types/CreateFeatureRequestBodyFeatureType.js +17 -7
- package/dist/serialization/resources/features/types/CreateFeatureResponse.js +17 -7
- package/dist/serialization/resources/features/types/CreateFlagResponse.js +17 -7
- package/dist/serialization/resources/features/types/DeleteFeatureResponse.js +17 -7
- package/dist/serialization/resources/features/types/DeleteFlagResponse.js +17 -7
- package/dist/serialization/resources/features/types/GetFeatureResponse.js +17 -7
- package/dist/serialization/resources/features/types/GetFlagResponse.js +17 -7
- package/dist/serialization/resources/features/types/ListAudienceCompaniesResponse.js +17 -7
- package/dist/serialization/resources/features/types/ListAudienceUsersResponse.js +17 -7
- package/dist/serialization/resources/features/types/ListFeaturesParams.js +17 -7
- package/dist/serialization/resources/features/types/ListFeaturesResponse.js +17 -7
- package/dist/serialization/resources/features/types/ListFlagsParams.js +17 -7
- package/dist/serialization/resources/features/types/ListFlagsResponse.js +17 -7
- package/dist/serialization/resources/features/types/UpdateFeatureRequestBodyFeatureType.js +17 -7
- package/dist/serialization/resources/features/types/UpdateFeatureResponse.js +17 -7
- package/dist/serialization/resources/features/types/UpdateFlagResponse.js +17 -7
- package/dist/serialization/resources/features/types/UpdateFlagRulesResponse.js +17 -7
- package/dist/serialization/resources/index.d.ts +3 -0
- package/dist/serialization/resources/index.js +21 -8
- package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +5 -1
- package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js +22 -8
- package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +5 -1
- package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.js +22 -8
- package/dist/serialization/resources/plangroups/types/CreatePlanGroupResponse.js +17 -7
- package/dist/serialization/resources/plangroups/types/GetPlanGroupResponse.js +17 -7
- package/dist/serialization/resources/plangroups/types/UpdatePlanGroupResponse.js +17 -7
- package/dist/serialization/resources/plans/client/requests/CreatePlanRequestBody.js +17 -7
- package/dist/serialization/resources/plans/client/requests/CreatePlanTraitRequestBody.d.ts +14 -0
- package/dist/serialization/resources/plans/client/requests/CreatePlanTraitRequestBody.js +45 -0
- package/dist/serialization/resources/plans/client/requests/UpdateAudienceRequestBody.js +17 -7
- package/dist/serialization/resources/plans/client/requests/UpdateCompanyPlansRequestBody.js +17 -7
- package/dist/serialization/resources/plans/client/requests/UpdatePlanRequestBody.js +17 -7
- package/dist/serialization/resources/plans/client/requests/UpdatePlanTraitRequestBody.d.ts +13 -0
- package/dist/serialization/resources/plans/client/requests/UpdatePlanTraitRequestBody.js +44 -0
- package/dist/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.d.ts +2 -0
- package/dist/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.js +19 -7
- package/dist/serialization/resources/plans/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/plans/client/requests/index.js +5 -1
- package/dist/serialization/resources/plans/types/CountPlanTraitsParams.d.ts +16 -0
- package/dist/serialization/resources/plans/types/CountPlanTraitsParams.js +47 -0
- package/dist/serialization/resources/plans/types/CountPlanTraitsResponse.d.ts +15 -0
- package/dist/serialization/resources/plans/types/CountPlanTraitsResponse.js +46 -0
- package/dist/serialization/resources/plans/types/CountPlansParams.js +17 -7
- package/dist/serialization/resources/plans/types/CountPlansRequestPlanType.js +17 -7
- package/dist/serialization/resources/plans/types/CountPlansResponse.js +17 -7
- package/dist/serialization/resources/plans/types/CountPlansResponseParamsPlanType.js +17 -7
- package/dist/serialization/resources/plans/types/CreatePlanRequestBodyPlanType.js +17 -7
- package/dist/serialization/resources/plans/types/CreatePlanResponse.js +17 -7
- package/dist/serialization/resources/plans/types/CreatePlanTraitResponse.d.ts +14 -0
- package/dist/serialization/resources/plans/types/CreatePlanTraitResponse.js +45 -0
- package/dist/serialization/resources/plans/types/DeleteAudienceResponse.js +17 -7
- package/dist/serialization/resources/plans/types/DeletePlanResponse.js +17 -7
- package/dist/serialization/resources/plans/types/DeletePlanTraitResponse.d.ts +14 -0
- package/dist/serialization/resources/plans/types/DeletePlanTraitResponse.js +45 -0
- package/dist/serialization/resources/plans/types/GetAudienceResponse.js +17 -7
- package/dist/serialization/resources/plans/types/GetPlanResponse.js +17 -7
- package/dist/serialization/resources/plans/types/GetPlanTraitResponse.d.ts +14 -0
- package/dist/serialization/resources/plans/types/GetPlanTraitResponse.js +45 -0
- package/dist/serialization/resources/plans/types/ListPlanTraitsParams.d.ts +16 -0
- package/dist/serialization/resources/plans/types/ListPlanTraitsParams.js +47 -0
- package/dist/serialization/resources/plans/types/ListPlanTraitsResponse.d.ts +15 -0
- package/dist/serialization/resources/plans/types/ListPlanTraitsResponse.js +46 -0
- package/dist/serialization/resources/plans/types/ListPlansParams.js +17 -7
- package/dist/serialization/resources/plans/types/ListPlansRequestPlanType.js +17 -7
- package/dist/serialization/resources/plans/types/ListPlansResponse.js +17 -7
- package/dist/serialization/resources/plans/types/ListPlansResponseParamsPlanType.js +17 -7
- package/dist/serialization/resources/plans/types/UpdateAudienceResponse.js +17 -7
- package/dist/serialization/resources/plans/types/UpdateCompanyPlansResponse.js +17 -7
- package/dist/serialization/resources/plans/types/UpdatePlanResponse.js +17 -7
- package/dist/serialization/resources/plans/types/UpdatePlanTraitResponse.d.ts +14 -0
- package/dist/serialization/resources/plans/types/UpdatePlanTraitResponse.js +45 -0
- package/dist/serialization/resources/plans/types/UpsertBillingProductPlanResponse.js +17 -7
- package/dist/serialization/resources/plans/types/index.d.ts +8 -0
- package/dist/serialization/resources/plans/types/index.js +8 -0
- package/dist/serialization/resources/webhooks/client/requests/CreateWebhookRequestBody.d.ts +2 -0
- package/dist/serialization/resources/webhooks/client/requests/CreateWebhookRequestBody.js +19 -7
- package/dist/serialization/resources/webhooks/client/requests/UpdateWebhookRequestBody.d.ts +2 -0
- package/dist/serialization/resources/webhooks/client/requests/UpdateWebhookRequestBody.js +19 -7
- package/dist/serialization/resources/webhooks/types/CountWebhookEventsParams.js +17 -7
- package/dist/serialization/resources/webhooks/types/CountWebhookEventsResponse.js +17 -7
- package/dist/serialization/resources/webhooks/types/CountWebhooksParams.js +17 -7
- package/dist/serialization/resources/webhooks/types/CountWebhooksResponse.js +17 -7
- package/dist/serialization/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.d.ts +1 -1
- package/dist/serialization/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.js +21 -7
- package/dist/serialization/resources/webhooks/types/CreateWebhookResponse.js +17 -7
- package/dist/serialization/resources/webhooks/types/DeleteWebhookResponse.js +17 -7
- package/dist/serialization/resources/webhooks/types/GetWebhookEventResponse.js +17 -7
- package/dist/serialization/resources/webhooks/types/GetWebhookResponse.js +17 -7
- package/dist/serialization/resources/webhooks/types/ListWebhookEventsParams.js +17 -7
- package/dist/serialization/resources/webhooks/types/ListWebhookEventsResponse.js +17 -7
- package/dist/serialization/resources/webhooks/types/ListWebhooksParams.js +17 -7
- package/dist/serialization/resources/webhooks/types/ListWebhooksResponse.js +17 -7
- package/dist/serialization/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.d.ts +1 -1
- package/dist/serialization/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.js +21 -7
- package/dist/serialization/resources/webhooks/types/UpdateWebhookRequestBodyStatus.js +17 -7
- package/dist/serialization/resources/webhooks/types/UpdateWebhookResponse.js +17 -7
- package/dist/serialization/types/ApiError.js +17 -7
- package/dist/serialization/types/ApiKeyCreateResponseData.js +17 -7
- package/dist/serialization/types/ApiKeyRequestListResponseData.js +17 -7
- package/dist/serialization/types/ApiKeyRequestResponseData.js +17 -7
- package/dist/serialization/types/ApiKeyResponseData.js +17 -7
- package/dist/serialization/types/AudienceRequestBody.js +17 -7
- package/dist/serialization/types/BillingCouponResponseData.js +17 -7
- package/dist/serialization/types/BillingCustomerResponseData.js +17 -7
- package/dist/serialization/types/BillingCustomerSubscription.js +17 -7
- package/dist/serialization/types/BillingCustomerWithSubscriptionsResponseData.js +17 -7
- package/dist/serialization/types/BillingMeterResponseData.js +17 -7
- package/dist/serialization/types/BillingPriceResponseData.d.ts +2 -0
- package/dist/serialization/types/BillingPriceResponseData.js +19 -7
- package/dist/serialization/types/BillingPriceView.d.ts +7 -0
- package/dist/serialization/types/BillingPriceView.js +24 -7
- package/dist/serialization/types/BillingProductDetailResponseData.d.ts +3 -0
- package/dist/serialization/types/BillingProductDetailResponseData.js +20 -7
- package/dist/serialization/types/BillingProductForSubscriptionResponseData.d.ts +5 -0
- package/dist/serialization/types/BillingProductForSubscriptionResponseData.js +22 -7
- package/dist/serialization/types/BillingProductPlanResponseData.d.ts +2 -0
- package/dist/serialization/types/BillingProductPlanResponseData.js +19 -7
- package/dist/serialization/types/BillingProductPriceResponseData.d.ts +3 -0
- package/dist/serialization/types/BillingProductPriceResponseData.js +20 -7
- package/dist/serialization/types/BillingProductPriceTierResponseData.d.ts +15 -0
- package/dist/serialization/types/BillingProductPriceTierResponseData.js +46 -0
- package/dist/serialization/types/BillingProductPricing.d.ts +4 -1
- package/dist/serialization/types/BillingProductPricing.js +21 -8
- package/dist/serialization/types/BillingProductPricingUsageType.d.ts +10 -0
- package/dist/serialization/types/BillingProductPricingUsageType.js +41 -0
- package/dist/serialization/types/BillingProductResponseData.d.ts +2 -0
- package/dist/serialization/types/BillingProductResponseData.js +19 -7
- package/dist/serialization/types/BillingSubscriptionDiscount.js +17 -7
- package/dist/serialization/types/BillingSubscriptionDiscountView.js +17 -7
- package/dist/serialization/types/BillingSubscriptionResponseData.d.ts +3 -0
- package/dist/serialization/types/BillingSubscriptionResponseData.js +20 -7
- package/dist/serialization/types/BillingSubscriptionView.d.ts +3 -0
- package/dist/serialization/types/BillingSubscriptionView.js +20 -7
- package/dist/serialization/types/ChangeSubscriptionInternalRequestBody.d.ts +1 -0
- package/dist/serialization/types/ChangeSubscriptionInternalRequestBody.js +18 -7
- package/dist/serialization/types/ChangeSubscriptionRequestBody.d.ts +1 -0
- package/dist/serialization/types/ChangeSubscriptionRequestBody.js +18 -7
- package/dist/serialization/types/CheckFlagRequestBody.js +17 -7
- package/dist/serialization/types/CheckFlagResponseData.d.ts +1 -0
- package/dist/serialization/types/CheckFlagResponseData.js +18 -7
- package/dist/serialization/types/CheckFlagsResponseData.js +17 -7
- package/dist/serialization/types/CheckoutDataResponseData.d.ts +2 -0
- package/dist/serialization/types/CheckoutDataResponseData.js +19 -7
- package/dist/serialization/types/CompanyCrmDealsResponseData.js +17 -7
- package/dist/serialization/types/CompanyDetailResponseData.d.ts +3 -0
- package/dist/serialization/types/CompanyDetailResponseData.js +20 -7
- package/dist/serialization/types/CompanyEventPeriodMetricsResponseData.js +17 -7
- package/dist/serialization/types/CompanyMembershipDetailResponseData.js +17 -7
- package/dist/serialization/types/CompanyMembershipResponseData.js +17 -7
- package/dist/serialization/types/CompanyOverrideResponseData.js +17 -7
- package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +6 -0
- package/dist/serialization/types/CompanyPlanDetailResponseData.js +23 -7
- package/dist/serialization/types/CompanyPlanWithBillingSubView.d.ts +2 -0
- package/dist/serialization/types/CompanyPlanWithBillingSubView.js +19 -7
- package/dist/serialization/types/CompanyResponseData.js +17 -7
- package/dist/serialization/types/CompanySubscriptionResponseData.d.ts +2 -0
- package/dist/serialization/types/CompanySubscriptionResponseData.js +19 -7
- package/dist/serialization/types/ComponentCapabilities.d.ts +1 -0
- package/dist/serialization/types/ComponentCapabilities.js +18 -7
- package/dist/serialization/types/ComponentHydrateResponseData.js +17 -7
- package/dist/serialization/types/ComponentPreviewResponseData.js +17 -7
- package/dist/serialization/types/ComponentResponseData.js +17 -7
- package/dist/serialization/types/CountResponse.js +17 -7
- package/dist/serialization/types/CouponRequestBody.js +17 -7
- package/dist/serialization/types/CreateBillingPriceTierRequestBody.d.ts +16 -0
- package/dist/serialization/types/CreateBillingPriceTierRequestBody.js +47 -0
- package/dist/serialization/types/CreateEntitlementReqCommon.js +17 -7
- package/dist/serialization/types/CreateEntitlementReqCommonMetricPeriod.js +17 -7
- package/dist/serialization/types/CreateEntitlementReqCommonMetricPeriodMonthReset.js +17 -7
- package/dist/serialization/types/CreateEntitlementReqCommonValueType.js +17 -7
- package/dist/serialization/types/CreateEventRequestBody.js +17 -7
- package/dist/serialization/types/CreateEventRequestBodyEventType.js +17 -7
- package/dist/serialization/types/CreateFlagRequestBody.js +17 -7
- package/dist/serialization/types/CreateOrUpdateConditionGroupRequestBody.js +17 -7
- package/dist/serialization/types/CreateOrUpdateConditionRequestBody.js +17 -7
- package/dist/serialization/types/CreateOrUpdateConditionRequestBodyConditionType.js +17 -7
- package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +17 -7
- package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.js +17 -7
- package/dist/serialization/types/CreateOrUpdateConditionRequestBodyOperator.js +17 -7
- package/dist/serialization/types/CreateOrUpdateFlagRequestBody.js +17 -7
- package/dist/serialization/types/CreateOrUpdateRuleRequestBody.js +17 -7
- package/dist/serialization/types/CreateOrUpdateRuleRequestBodyRuleType.js +17 -7
- package/dist/serialization/types/CrmDealLineItem.js +17 -7
- package/dist/serialization/types/CrmDealResponseData.js +17 -7
- package/dist/serialization/types/CrmLineItemResponseData.js +17 -7
- package/dist/serialization/types/CrmProductResponseData.js +17 -7
- package/dist/serialization/types/CustomPlanConfig.d.ts +14 -0
- package/dist/serialization/types/CustomPlanConfig.js +45 -0
- package/dist/serialization/types/CustomPlanViewConfigResponseData.d.ts +14 -0
- package/dist/serialization/types/CustomPlanViewConfigResponseData.js +45 -0
- package/dist/serialization/types/DataExportResponseData.d.ts +20 -0
- package/dist/serialization/types/DataExportResponseData.js +51 -0
- package/dist/serialization/types/Decimal.js +17 -7
- package/dist/serialization/types/DeleteResponse.js +17 -7
- package/dist/serialization/types/EntitlementTriggerConfig.d.ts +12 -0
- package/dist/serialization/types/EntitlementTriggerConfig.js +43 -0
- package/dist/serialization/types/EntitlementsInPlan.d.ts +13 -0
- package/dist/serialization/types/EntitlementsInPlan.js +44 -0
- package/dist/serialization/types/EntityKeyDefinitionResponseData.js +17 -7
- package/dist/serialization/types/EntityKeyDetailResponseData.js +17 -7
- package/dist/serialization/types/EntityKeyResponseData.js +17 -7
- package/dist/serialization/types/EntityTraitDefinitionResponseData.js +17 -7
- package/dist/serialization/types/EntityTraitDetailResponseData.js +17 -7
- package/dist/serialization/types/EntityTraitResponseData.js +17 -7
- package/dist/serialization/types/EntityTraitValue.js +17 -7
- package/dist/serialization/types/EnvironmentDetailResponseData.js +17 -7
- package/dist/serialization/types/EnvironmentResponseData.js +17 -7
- package/dist/serialization/types/EventBody.js +17 -7
- package/dist/serialization/types/EventBodyFlagCheck.js +17 -7
- package/dist/serialization/types/EventBodyIdentify.js +17 -7
- package/dist/serialization/types/EventBodyIdentifyCompany.js +17 -7
- package/dist/serialization/types/EventBodyTrack.js +17 -7
- package/dist/serialization/types/EventDetailResponseData.js +17 -7
- package/dist/serialization/types/EventResponseData.js +17 -7
- package/dist/serialization/types/EventSummaryResponseData.d.ts +2 -2
- package/dist/serialization/types/EventSummaryResponseData.js +19 -9
- package/dist/serialization/types/FeatureCompanyResponseData.js +17 -7
- package/dist/serialization/types/FeatureCompanyResponseDataAllocationType.js +17 -7
- package/dist/serialization/types/FeatureCompanyUserResponseData.js +17 -7
- package/dist/serialization/types/FeatureCompanyUserResponseDataAllocationType.js +17 -7
- package/dist/serialization/types/FeatureDetailResponseData.d.ts +2 -0
- package/dist/serialization/types/FeatureDetailResponseData.js +19 -7
- package/dist/serialization/types/FeatureResponseData.d.ts +2 -0
- package/dist/serialization/types/FeatureResponseData.js +19 -7
- package/dist/serialization/types/FeatureUsageDetailResponseData.js +17 -7
- package/dist/serialization/types/FeatureUsageResponseData.d.ts +1 -0
- package/dist/serialization/types/FeatureUsageResponseData.js +18 -7
- package/dist/serialization/types/FeatureUsageResponseDataAllocationType.js +17 -7
- package/dist/serialization/types/FlagDetailResponseData.js +17 -7
- package/dist/serialization/types/FlagResponseData.js +17 -7
- package/dist/serialization/types/GenericPreviewObject.js +17 -7
- package/dist/serialization/types/InvoiceRequestBody.js +17 -7
- package/dist/serialization/types/InvoiceResponseData.js +17 -7
- package/dist/serialization/types/IssueTemporaryAccessTokenResponseData.js +17 -7
- package/dist/serialization/types/KeysRequestBody.js +17 -7
- package/dist/serialization/types/MeterRequestBody.js +17 -7
- package/dist/serialization/types/OrderedPlansInGroup.d.ts +14 -0
- package/dist/serialization/types/OrderedPlansInGroup.js +45 -0
- package/dist/serialization/types/PaginationFilter.js +17 -7
- package/dist/serialization/types/PaymentMethodRequestBody.d.ts +0 -1
- package/dist/serialization/types/PaymentMethodRequestBody.js +17 -8
- package/dist/serialization/types/PaymentMethodResponseData.d.ts +0 -1
- package/dist/serialization/types/PaymentMethodResponseData.js +17 -8
- package/dist/serialization/types/PlanAudienceDetailResponseData.js +17 -7
- package/dist/serialization/types/PlanAudienceResponseData.js +17 -7
- package/dist/serialization/types/PlanDetailResponseData.d.ts +2 -0
- package/dist/serialization/types/PlanDetailResponseData.js +19 -7
- package/dist/serialization/types/PlanEntitlementResponseData.d.ts +3 -0
- package/dist/serialization/types/PlanEntitlementResponseData.js +20 -7
- package/dist/serialization/types/PlanEntitlementsOrder.d.ts +13 -0
- package/dist/serialization/types/PlanEntitlementsOrder.js +44 -0
- package/dist/serialization/types/PlanGroupDetailResponseData.d.ts +5 -0
- package/dist/serialization/types/PlanGroupDetailResponseData.js +22 -7
- package/dist/serialization/types/PlanGroupPlanDetailResponseData.d.ts +5 -0
- package/dist/serialization/types/PlanGroupPlanDetailResponseData.js +22 -7
- package/dist/serialization/types/PlanGroupPlanEntitlementsOrder.d.ts +14 -0
- package/dist/serialization/types/PlanGroupPlanEntitlementsOrder.js +45 -0
- package/dist/serialization/types/PlanGroupResponseData.d.ts +2 -1
- package/dist/serialization/types/PlanGroupResponseData.js +19 -8
- package/dist/serialization/types/PlanResponseData.js +17 -7
- package/dist/serialization/types/PlanTraitResponseData.d.ts +19 -0
- package/dist/serialization/types/PlanTraitResponseData.js +50 -0
- package/dist/serialization/types/PreviewObject.js +17 -7
- package/dist/serialization/types/PreviewObjectResponseData.js +17 -7
- package/dist/serialization/types/PreviewSubscriptionChangeResponseData.d.ts +4 -0
- package/dist/serialization/types/PreviewSubscriptionChangeResponseData.js +21 -7
- package/dist/serialization/types/PreviewSubscriptionFinanceResponseData.d.ts +21 -0
- package/dist/serialization/types/PreviewSubscriptionFinanceResponseData.js +52 -0
- package/dist/serialization/types/PreviewSubscriptionUpcomingInvoiceLineItems.d.ts +16 -0
- package/dist/serialization/types/PreviewSubscriptionUpcomingInvoiceLineItems.js +47 -0
- package/dist/serialization/types/QuickstartResp.d.ts +12 -0
- package/dist/serialization/types/QuickstartResp.js +43 -0
- package/dist/serialization/types/RawEventBatchResponseData.js +17 -7
- package/dist/serialization/types/RawEventResponseData.js +17 -7
- package/dist/serialization/types/RuleConditionDetailResponseData.js +17 -7
- package/dist/serialization/types/RuleConditionGroupDetailResponseData.js +17 -7
- package/dist/serialization/types/RuleConditionGroupResponseData.js +17 -7
- package/dist/serialization/types/RuleConditionResponseData.js +17 -7
- package/dist/serialization/types/RuleDetailResponseData.js +17 -7
- package/dist/serialization/types/RuleResponseData.js +17 -7
- package/dist/serialization/types/RulesDetailResponseData.js +17 -7
- package/dist/serialization/types/SegmentStatusResp.js +17 -7
- package/dist/serialization/types/StripeEmbedInfo.js +17 -7
- package/dist/serialization/types/TemporaryAccessTokenResponseData.js +17 -7
- package/dist/serialization/types/UpdateAddOnRequestBody.js +17 -7
- package/dist/serialization/types/UpdateEntitlementReqCommon.js +17 -7
- package/dist/serialization/types/UpdateEntitlementReqCommonMetricPeriod.js +17 -7
- package/dist/serialization/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.js +17 -7
- package/dist/serialization/types/UpdateEntitlementReqCommonValueType.js +17 -7
- package/dist/serialization/types/UpdatePayInAdvanceRequestBody.js +17 -7
- package/dist/serialization/types/UpdateRuleRequestBody.js +17 -7
- package/dist/serialization/types/UpsertCompanyRequestBody.js +17 -7
- package/dist/serialization/types/UpsertTraitRequestBody.js +17 -7
- package/dist/serialization/types/UpsertUserRequestBody.d.ts +2 -0
- package/dist/serialization/types/UpsertUserRequestBody.js +19 -7
- package/dist/serialization/types/UpsertUserSubRequestBody.d.ts +1 -0
- package/dist/serialization/types/UpsertUserSubRequestBody.js +18 -7
- package/dist/serialization/types/UsageBasedEntitlementRequestBody.d.ts +7 -0
- package/dist/serialization/types/UsageBasedEntitlementRequestBody.js +24 -7
- package/dist/serialization/types/UsageBasedEntitlementResponseData.js +17 -7
- package/dist/serialization/types/UserDetailResponseData.js +17 -7
- package/dist/serialization/types/UserResponseData.js +17 -7
- package/dist/serialization/types/WebhookEventDetailResponseData.js +17 -7
- package/dist/serialization/types/WebhookEventResponseData.js +17 -7
- package/dist/serialization/types/WebhookResponseData.d.ts +3 -0
- package/dist/serialization/types/WebhookResponseData.js +20 -7
- package/dist/serialization/types/index.d.ts +15 -0
- package/dist/serialization/types/index.js +15 -0
- package/dist/webhooks.d.ts +76 -0
- package/dist/webhooks.js +170 -0
- package/environments.d.ts +1 -1
- package/errors/SchematicError.d.ts +4 -1
- package/errors/SchematicError.js +6 -8
- package/errors/SchematicTimeoutError.d.ts +1 -1
- package/errors/SchematicTimeoutError.js +2 -2
- package/events.d.ts +4 -0
- package/events.js +41 -5
- package/events.test.js +51 -4
- package/index.d.ts +1 -0
- package/index.js +26 -8
- package/{jest.config.js → jest.config.mjs} +4 -1
- package/package.json +18 -16
- package/reference.md +532 -21
- package/scripts/rename-to-esm-files.js +115 -0
- package/scripts/webhook-test-server/README.md +24 -0
- package/scripts/webhook-test-server/package-lock.json +196 -0
- package/scripts/webhook-test-server/package.json +13 -0
- package/scripts/webhook-test-server/webhook-test-server.ts +100 -0
- package/serialization/resources/accesstokens/client/requests/IssueTemporaryAccessTokenRequestBody.js +17 -7
- package/serialization/resources/accesstokens/types/IssueTemporaryAccessTokenResponse.js +17 -7
- package/serialization/resources/accounts/client/requests/CreateApiKeyRequestBody.js +17 -7
- package/serialization/resources/accounts/client/requests/CreateEnvironmentRequestBody.js +17 -7
- package/serialization/resources/accounts/client/requests/UpdateApiKeyRequestBody.js +17 -7
- package/serialization/resources/accounts/client/requests/UpdateEnvironmentRequestBody.js +17 -7
- package/serialization/resources/accounts/types/CountApiKeysParams.js +17 -7
- package/serialization/resources/accounts/types/CountApiKeysResponse.js +17 -7
- package/serialization/resources/accounts/types/CountApiRequestsParams.js +17 -7
- package/serialization/resources/accounts/types/CountApiRequestsResponse.js +17 -7
- package/serialization/resources/accounts/types/CreateApiKeyResponse.js +17 -7
- package/serialization/resources/accounts/types/CreateEnvironmentRequestBodyEnvironmentType.js +17 -7
- package/serialization/resources/accounts/types/CreateEnvironmentResponse.js +17 -7
- package/serialization/resources/accounts/types/DeleteApiKeyResponse.js +17 -7
- package/serialization/resources/accounts/types/DeleteEnvironmentResponse.js +17 -7
- package/serialization/resources/accounts/types/GetApiKeyResponse.js +17 -7
- package/serialization/resources/accounts/types/GetApiRequestResponse.js +17 -7
- package/serialization/resources/accounts/types/GetEnvironmentResponse.js +17 -7
- package/serialization/resources/accounts/types/ListApiKeysParams.js +17 -7
- package/serialization/resources/accounts/types/ListApiKeysResponse.js +17 -7
- package/serialization/resources/accounts/types/ListApiRequestsParams.js +17 -7
- package/serialization/resources/accounts/types/ListApiRequestsResponse.js +17 -7
- package/serialization/resources/accounts/types/ListEnvironmentsParams.js +17 -7
- package/serialization/resources/accounts/types/ListEnvironmentsResponse.js +17 -7
- package/serialization/resources/accounts/types/QuickstartResponse.d.ts +14 -0
- package/serialization/resources/accounts/types/QuickstartResponse.js +45 -0
- package/serialization/resources/accounts/types/UpdateApiKeyResponse.js +17 -7
- package/serialization/resources/accounts/types/UpdateEnvironmentRequestBodyEnvironmentType.js +17 -7
- package/serialization/resources/accounts/types/UpdateEnvironmentResponse.js +17 -7
- package/serialization/resources/accounts/types/index.d.ts +1 -0
- package/serialization/resources/accounts/types/index.js +1 -0
- package/serialization/resources/billing/client/requests/CreateBillingCustomerRequestBody.d.ts +1 -0
- package/serialization/resources/billing/client/requests/CreateBillingCustomerRequestBody.js +18 -7
- package/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +11 -1
- package/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.js +28 -8
- package/serialization/resources/billing/client/requests/CreateBillingProductRequestBody.d.ts +1 -2
- package/serialization/resources/billing/client/requests/CreateBillingProductRequestBody.js +18 -9
- package/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +5 -1
- package/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.js +22 -8
- package/serialization/resources/billing/client/requests/CreateCouponRequestBody.js +17 -7
- package/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.js +17 -7
- package/serialization/resources/billing/client/requests/CreateMeterRequestBody.js +17 -7
- package/serialization/resources/billing/client/requests/CreatePaymentMethodRequestBody.d.ts +0 -1
- package/serialization/resources/billing/client/requests/CreatePaymentMethodRequestBody.js +17 -8
- package/serialization/resources/billing/types/CountBillingProductsParams.d.ts +4 -1
- package/serialization/resources/billing/types/CountBillingProductsParams.js +21 -8
- package/serialization/resources/billing/types/CountBillingProductsRequestPriceUsageType.d.ts +10 -0
- package/serialization/resources/billing/types/CountBillingProductsRequestPriceUsageType.js +41 -0
- package/serialization/resources/billing/types/CountBillingProductsResponse.js +17 -7
- package/serialization/resources/billing/types/CountBillingProductsResponseParamsPriceUsageType.d.ts +10 -0
- package/serialization/resources/billing/types/CountBillingProductsResponseParamsPriceUsageType.js +41 -0
- package/serialization/resources/billing/types/CountCustomersParams.d.ts +1 -0
- package/serialization/resources/billing/types/CountCustomersParams.js +18 -7
- package/serialization/resources/billing/types/CountCustomersResponse.js +17 -7
- package/serialization/resources/billing/types/CreateBillingPriceRequestBodyBillingScheme.d.ts +10 -0
- package/serialization/resources/billing/types/CreateBillingPriceRequestBodyBillingScheme.js +41 -0
- package/serialization/resources/billing/types/CreateBillingPriceRequestBodyTierMode.d.ts +10 -0
- package/serialization/resources/billing/types/CreateBillingPriceRequestBodyTierMode.js +41 -0
- package/serialization/resources/billing/types/CreateBillingPriceRequestBodyUsageType.d.ts +10 -0
- package/serialization/resources/billing/types/CreateBillingPriceRequestBodyUsageType.js +41 -0
- package/serialization/resources/billing/types/CreateBillingSubscriptionsRequestBodyTrialEndSetting.d.ts +10 -0
- package/serialization/resources/billing/types/CreateBillingSubscriptionsRequestBodyTrialEndSetting.js +41 -0
- package/serialization/resources/billing/types/DeleteBillingProductResponse.d.ts +14 -0
- package/serialization/resources/billing/types/DeleteBillingProductResponse.js +45 -0
- package/serialization/resources/billing/types/DeleteProductPriceResponse.js +17 -7
- package/serialization/resources/billing/types/ListBillingProductsParams.d.ts +4 -1
- package/serialization/resources/billing/types/ListBillingProductsParams.js +21 -8
- package/serialization/resources/billing/types/ListBillingProductsRequestPriceUsageType.d.ts +10 -0
- package/serialization/resources/billing/types/ListBillingProductsRequestPriceUsageType.js +41 -0
- package/serialization/resources/billing/types/ListBillingProductsResponse.js +17 -7
- package/serialization/resources/billing/types/ListBillingProductsResponseParamsPriceUsageType.d.ts +10 -0
- package/serialization/resources/billing/types/ListBillingProductsResponseParamsPriceUsageType.js +41 -0
- package/serialization/resources/billing/types/ListCouponsParams.d.ts +15 -0
- package/serialization/resources/billing/types/ListCouponsParams.js +46 -0
- package/serialization/resources/billing/types/ListCouponsResponse.d.ts +15 -0
- package/serialization/resources/billing/types/ListCouponsResponse.js +46 -0
- package/serialization/resources/billing/types/{ListCustomersParams.d.ts → ListCustomersWithSubscriptionsParams.d.ts} +3 -2
- package/serialization/resources/billing/types/{ListCustomersParams.js → ListCustomersWithSubscriptionsParams.js} +20 -9
- package/{dist/serialization/resources/billing/types/ListCustomersResponse.d.ts → serialization/resources/billing/types/ListCustomersWithSubscriptionsResponse.d.ts} +4 -4
- package/serialization/resources/billing/types/{ListCustomersResponse.js → ListCustomersWithSubscriptionsResponse.js} +21 -11
- package/serialization/resources/billing/types/ListInvoicesParams.js +17 -7
- package/serialization/resources/billing/types/ListInvoicesResponse.js +17 -7
- package/serialization/resources/billing/types/ListMetersParams.js +17 -7
- package/serialization/resources/billing/types/ListMetersResponse.js +17 -7
- package/serialization/resources/billing/types/ListPaymentMethodsParams.d.ts +0 -1
- package/serialization/resources/billing/types/ListPaymentMethodsParams.js +17 -8
- package/serialization/resources/billing/types/ListPaymentMethodsResponse.js +17 -7
- package/serialization/resources/billing/types/ListProductPricesParams.d.ts +4 -1
- package/serialization/resources/billing/types/ListProductPricesParams.js +21 -8
- package/serialization/resources/billing/types/ListProductPricesRequestPriceUsageType.d.ts +10 -0
- package/serialization/resources/billing/types/ListProductPricesRequestPriceUsageType.js +41 -0
- package/serialization/resources/billing/types/ListProductPricesResponse.js +17 -7
- package/serialization/resources/billing/types/ListProductPricesResponseParamsPriceUsageType.d.ts +10 -0
- package/serialization/resources/billing/types/ListProductPricesResponseParamsPriceUsageType.js +41 -0
- package/serialization/resources/billing/types/SearchBillingPricesParams.d.ts +3 -1
- package/serialization/resources/billing/types/SearchBillingPricesParams.js +20 -8
- package/serialization/resources/billing/types/SearchBillingPricesRequestUsageType.d.ts +10 -0
- package/serialization/resources/billing/types/SearchBillingPricesRequestUsageType.js +41 -0
- package/serialization/resources/billing/types/SearchBillingPricesResponse.js +17 -7
- package/serialization/resources/billing/types/SearchBillingPricesResponseParamsUsageType.d.ts +10 -0
- package/serialization/resources/billing/types/SearchBillingPricesResponseParamsUsageType.js +41 -0
- package/serialization/resources/billing/types/UpsertBillingCouponResponse.js +17 -7
- package/serialization/resources/billing/types/UpsertBillingCustomerResponse.js +17 -7
- package/serialization/resources/billing/types/UpsertBillingMeterResponse.js +17 -7
- package/serialization/resources/billing/types/UpsertBillingPriceResponse.js +17 -7
- package/serialization/resources/billing/types/UpsertBillingProductResponse.js +17 -7
- package/serialization/resources/billing/types/UpsertBillingSubscriptionResponse.js +17 -7
- package/serialization/resources/billing/types/UpsertInvoiceResponse.js +17 -7
- package/serialization/resources/billing/types/UpsertPaymentMethodResponse.js +17 -7
- package/serialization/resources/billing/types/index.d.ts +17 -2
- package/serialization/resources/billing/types/index.js +17 -2
- package/serialization/resources/checkout/client/requests/CheckoutDataRequestBody.d.ts +13 -0
- package/serialization/resources/checkout/client/requests/CheckoutDataRequestBody.js +44 -0
- package/serialization/resources/checkout/client/requests/UpdateTrialEndRequestBody.js +17 -7
- package/serialization/resources/checkout/client/requests/index.d.ts +1 -0
- package/serialization/resources/checkout/client/requests/index.js +3 -1
- package/serialization/resources/checkout/types/CheckoutInternalResponse.js +17 -7
- package/serialization/resources/checkout/types/GetCheckoutDataResponse.js +17 -7
- package/serialization/resources/checkout/types/PreviewCheckoutInternalResponse.js +17 -7
- package/serialization/resources/checkout/types/UpdateCustomerSubscriptionTrialEndResponse.js +17 -7
- package/serialization/resources/companies/client/requests/CreateEntityTraitDefinitionRequestBody.js +17 -7
- package/serialization/resources/companies/client/requests/GetOrCreateCompanyMembershipRequestBody.js +17 -7
- package/serialization/resources/companies/client/requests/UpdateEntityTraitDefinitionRequestBody.js +17 -7
- package/serialization/resources/companies/types/CountCompaniesParams.d.ts +1 -0
- package/serialization/resources/companies/types/CountCompaniesParams.js +18 -7
- package/serialization/resources/companies/types/CountCompaniesResponse.js +17 -7
- package/serialization/resources/companies/types/CountEntityKeyDefinitionsParams.js +17 -7
- package/serialization/resources/companies/types/CountEntityKeyDefinitionsRequestEntityType.js +17 -7
- package/serialization/resources/companies/types/CountEntityKeyDefinitionsResponse.js +17 -7
- package/serialization/resources/companies/types/CountEntityKeyDefinitionsResponseParamsEntityType.js +17 -7
- package/serialization/resources/companies/types/CountEntityTraitDefinitionsParams.js +17 -7
- package/serialization/resources/companies/types/CountEntityTraitDefinitionsRequestEntityType.js +17 -7
- package/serialization/resources/companies/types/CountEntityTraitDefinitionsRequestTraitType.js +17 -7
- package/serialization/resources/companies/types/CountEntityTraitDefinitionsResponse.js +17 -7
- package/serialization/resources/companies/types/CountEntityTraitDefinitionsResponseParamsEntityType.js +17 -7
- package/serialization/resources/companies/types/CountEntityTraitDefinitionsResponseParamsTraitType.js +17 -7
- package/serialization/resources/companies/types/CountUsersParams.js +17 -7
- package/serialization/resources/companies/types/CountUsersResponse.js +17 -7
- package/serialization/resources/companies/types/CreateCompanyResponse.js +17 -7
- package/serialization/resources/companies/types/CreateEntityTraitDefinitionRequestBodyEntityType.js +17 -7
- package/serialization/resources/companies/types/CreateEntityTraitDefinitionRequestBodyTraitType.js +17 -7
- package/serialization/resources/companies/types/CreateUserResponse.js +17 -7
- package/serialization/resources/companies/types/DeleteCompanyByKeysResponse.js +17 -7
- package/serialization/resources/companies/types/DeleteCompanyMembershipResponse.js +17 -7
- package/serialization/resources/companies/types/DeleteCompanyResponse.js +17 -7
- package/serialization/resources/companies/types/DeleteUserByKeysResponse.js +17 -7
- package/serialization/resources/companies/types/DeleteUserResponse.js +17 -7
- package/serialization/resources/companies/types/GetActiveCompanySubscriptionParams.js +17 -7
- package/serialization/resources/companies/types/GetActiveCompanySubscriptionResponse.js +17 -7
- package/serialization/resources/companies/types/GetActiveDealsParams.js +17 -7
- package/serialization/resources/companies/types/GetActiveDealsResponse.js +17 -7
- package/serialization/resources/companies/types/GetCompanyResponse.js +17 -7
- package/serialization/resources/companies/types/GetEntityTraitDefinitionResponse.js +17 -7
- package/serialization/resources/companies/types/GetEntityTraitValuesParams.js +17 -7
- package/serialization/resources/companies/types/GetEntityTraitValuesResponse.js +17 -7
- package/serialization/resources/companies/types/GetOrCreateCompanyMembershipResponse.js +17 -7
- package/serialization/resources/companies/types/GetOrCreateEntityTraitDefinitionResponse.js +17 -7
- package/serialization/resources/companies/types/GetUserResponse.js +17 -7
- package/serialization/resources/companies/types/ListCompaniesParams.d.ts +1 -0
- package/serialization/resources/companies/types/ListCompaniesParams.js +18 -7
- package/serialization/resources/companies/types/ListCompaniesResponse.js +17 -7
- package/serialization/resources/companies/types/ListCompanyMembershipsParams.js +17 -7
- package/serialization/resources/companies/types/ListCompanyMembershipsResponse.js +17 -7
- package/serialization/resources/companies/types/ListEntityKeyDefinitionsParams.js +17 -7
- package/serialization/resources/companies/types/ListEntityKeyDefinitionsRequestEntityType.js +17 -7
- package/serialization/resources/companies/types/ListEntityKeyDefinitionsResponse.js +17 -7
- package/serialization/resources/companies/types/ListEntityKeyDefinitionsResponseParamsEntityType.js +17 -7
- package/serialization/resources/companies/types/ListEntityTraitDefinitionsParams.js +17 -7
- package/serialization/resources/companies/types/ListEntityTraitDefinitionsRequestEntityType.js +17 -7
- package/serialization/resources/companies/types/ListEntityTraitDefinitionsRequestTraitType.js +17 -7
- package/serialization/resources/companies/types/ListEntityTraitDefinitionsResponse.js +17 -7
- package/serialization/resources/companies/types/ListEntityTraitDefinitionsResponseParamsEntityType.js +17 -7
- package/serialization/resources/companies/types/ListEntityTraitDefinitionsResponseParamsTraitType.js +17 -7
- package/serialization/resources/companies/types/ListUsersParams.js +17 -7
- package/serialization/resources/companies/types/ListUsersResponse.js +17 -7
- package/serialization/resources/companies/types/LookupCompanyParams.d.ts +1 -1
- package/serialization/resources/companies/types/LookupCompanyParams.js +18 -8
- package/serialization/resources/companies/types/LookupCompanyResponse.js +17 -7
- package/serialization/resources/companies/types/LookupUserParams.d.ts +1 -1
- package/serialization/resources/companies/types/LookupUserParams.js +18 -8
- package/serialization/resources/companies/types/LookupUserResponse.js +17 -7
- package/serialization/resources/companies/types/UpdateEntityTraitDefinitionRequestBodyTraitType.js +17 -7
- package/serialization/resources/companies/types/UpdateEntityTraitDefinitionResponse.js +17 -7
- package/serialization/resources/companies/types/UpsertCompanyResponse.js +17 -7
- package/serialization/resources/companies/types/UpsertCompanyTraitResponse.js +17 -7
- package/serialization/resources/companies/types/UpsertUserResponse.js +17 -7
- package/serialization/resources/companies/types/UpsertUserTraitResponse.js +17 -7
- package/serialization/resources/components/client/requests/CreateComponentRequestBody.js +17 -7
- package/serialization/resources/components/client/requests/UpdateComponentRequestBody.js +17 -7
- package/serialization/resources/components/types/CountComponentsParams.js +17 -7
- package/serialization/resources/components/types/CountComponentsResponse.js +17 -7
- package/serialization/resources/components/types/CreateComponentRequestBodyEntityType.js +17 -7
- package/serialization/resources/components/types/CreateComponentResponse.js +17 -7
- package/serialization/resources/components/types/DeleteComponentResponse.js +17 -7
- package/serialization/resources/components/types/GetComponentResponse.js +17 -7
- package/serialization/resources/components/types/ListComponentsParams.js +17 -7
- package/serialization/resources/components/types/ListComponentsResponse.js +17 -7
- package/serialization/resources/components/types/PreviewComponentDataParams.js +17 -7
- package/serialization/resources/components/types/PreviewComponentDataResponse.js +17 -7
- package/serialization/resources/components/types/UpdateComponentRequestBodyEntityType.js +17 -7
- package/serialization/resources/components/types/UpdateComponentRequestBodyState.js +17 -7
- package/serialization/resources/components/types/UpdateComponentResponse.js +17 -7
- package/serialization/resources/crm/client/requests/CreateCrmDealLineItemAssociationRequestBody.js +17 -7
- package/serialization/resources/crm/client/requests/CreateCrmDealRequestBody.js +17 -7
- package/serialization/resources/crm/client/requests/CreateCrmLineItemRequestBody.js +17 -7
- package/serialization/resources/crm/client/requests/CreateCrmProductRequestBody.js +17 -7
- package/serialization/resources/crm/types/ListCrmProductsParams.js +17 -7
- package/serialization/resources/crm/types/ListCrmProductsResponse.js +17 -7
- package/serialization/resources/crm/types/UpsertCrmDealResponse.js +17 -7
- package/serialization/resources/crm/types/UpsertCrmProductResponse.js +17 -7
- package/serialization/resources/crm/types/UpsertDealLineItemAssociationResponse.js +17 -7
- package/serialization/resources/crm/types/UpsertLineItemResponse.js +17 -7
- package/serialization/resources/dataexports/client/index.d.ts +1 -0
- package/serialization/resources/dataexports/client/index.js +17 -0
- package/serialization/resources/dataexports/client/requests/CreateDataExportRequestBody.d.ts +12 -0
- package/serialization/resources/dataexports/client/requests/CreateDataExportRequestBody.js +43 -0
- package/serialization/resources/dataexports/client/requests/index.d.ts +1 -0
- package/serialization/resources/dataexports/client/requests/index.js +5 -0
- package/serialization/resources/dataexports/index.d.ts +2 -0
- package/serialization/resources/dataexports/index.js +18 -0
- package/serialization/resources/dataexports/types/CreateDataExportResponse.d.ts +14 -0
- package/serialization/resources/dataexports/types/CreateDataExportResponse.js +45 -0
- package/serialization/resources/dataexports/types/index.d.ts +1 -0
- package/serialization/resources/dataexports/types/index.js +17 -0
- package/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.js +17 -7
- package/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +7 -0
- package/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +24 -7
- package/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.js +17 -7
- package/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +7 -0
- package/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +24 -7
- package/serialization/resources/entitlements/types/CountCompanyOverridesParams.js +17 -7
- package/serialization/resources/entitlements/types/CountCompanyOverridesResponse.js +17 -7
- package/serialization/resources/entitlements/types/CountFeatureCompaniesParams.js +17 -7
- package/serialization/resources/entitlements/types/CountFeatureCompaniesResponse.js +17 -7
- package/serialization/resources/entitlements/types/CountFeatureUsageParams.js +17 -7
- package/serialization/resources/entitlements/types/CountFeatureUsageResponse.js +17 -7
- package/serialization/resources/entitlements/types/CountFeatureUsersParams.js +17 -7
- package/serialization/resources/entitlements/types/CountFeatureUsersResponse.js +17 -7
- package/serialization/resources/entitlements/types/CountPlanEntitlementsParams.js +17 -7
- package/serialization/resources/entitlements/types/CountPlanEntitlementsResponse.js +17 -7
- package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +17 -7
- package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +17 -7
- package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyValueType.js +17 -7
- package/serialization/resources/entitlements/types/CreateCompanyOverrideResponse.js +17 -7
- package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +17 -7
- package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +17 -7
- package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyValueType.js +17 -7
- package/serialization/resources/entitlements/types/CreatePlanEntitlementResponse.js +17 -7
- package/serialization/resources/entitlements/types/DeleteCompanyOverrideResponse.js +17 -7
- package/serialization/resources/entitlements/types/DeletePlanEntitlementResponse.js +17 -7
- package/serialization/resources/entitlements/types/GetCompanyOverrideResponse.js +17 -7
- package/serialization/resources/entitlements/types/GetFeatureUsageByCompanyParams.d.ts +1 -1
- package/serialization/resources/entitlements/types/GetFeatureUsageByCompanyParams.js +18 -8
- package/serialization/resources/entitlements/types/GetFeatureUsageByCompanyResponse.js +17 -7
- package/serialization/resources/entitlements/types/GetPlanEntitlementResponse.js +17 -7
- package/serialization/resources/entitlements/types/ListCompanyOverridesParams.js +17 -7
- package/serialization/resources/entitlements/types/ListCompanyOverridesResponse.js +17 -7
- package/serialization/resources/entitlements/types/ListFeatureCompaniesParams.js +17 -7
- package/serialization/resources/entitlements/types/ListFeatureCompaniesResponse.js +17 -7
- package/serialization/resources/entitlements/types/ListFeatureUsageParams.js +17 -7
- package/serialization/resources/entitlements/types/ListFeatureUsageResponse.js +17 -7
- package/serialization/resources/entitlements/types/ListFeatureUsersParams.js +17 -7
- package/serialization/resources/entitlements/types/ListFeatureUsersResponse.js +17 -7
- package/serialization/resources/entitlements/types/ListPlanEntitlementsParams.js +17 -7
- package/serialization/resources/entitlements/types/ListPlanEntitlementsResponse.js +17 -7
- package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +17 -7
- package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +17 -7
- package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyValueType.js +17 -7
- package/serialization/resources/entitlements/types/UpdateCompanyOverrideResponse.js +17 -7
- package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +17 -7
- package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +17 -7
- package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyValueType.js +17 -7
- package/serialization/resources/entitlements/types/UpdatePlanEntitlementResponse.js +17 -7
- package/serialization/resources/events/client/requests/CreateEventBatchRequestBody.js +17 -7
- package/serialization/resources/events/types/CreateEventBatchResponse.js +17 -7
- package/serialization/resources/events/types/CreateEventResponse.js +17 -7
- package/serialization/resources/events/types/GetEventResponse.js +17 -7
- package/serialization/resources/events/types/GetEventSummariesParams.js +17 -7
- package/serialization/resources/events/types/GetEventSummariesResponse.js +17 -7
- package/serialization/resources/events/types/GetSegmentIntegrationStatusResponse.js +17 -7
- package/serialization/resources/events/types/ListEventsParams.js +17 -7
- package/serialization/resources/events/types/ListEventsResponse.js +17 -7
- package/serialization/resources/features/client/requests/CreateFeatureRequestBody.d.ts +2 -0
- package/serialization/resources/features/client/requests/CreateFeatureRequestBody.js +19 -7
- package/serialization/resources/features/client/requests/UpdateFeatureRequestBody.d.ts +2 -0
- package/serialization/resources/features/client/requests/UpdateFeatureRequestBody.js +19 -7
- package/serialization/resources/features/client/requests/UpdateFlagRulesRequestBody.js +17 -7
- package/serialization/resources/features/types/CheckFlagResponse.js +17 -7
- package/serialization/resources/features/types/CheckFlagsResponse.js +17 -7
- package/serialization/resources/features/types/CountAudienceCompaniesResponse.js +17 -7
- package/serialization/resources/features/types/CountAudienceUsersResponse.js +17 -7
- package/serialization/resources/features/types/CountFeaturesParams.js +17 -7
- package/serialization/resources/features/types/CountFeaturesResponse.js +17 -7
- package/serialization/resources/features/types/CountFlagsParams.js +17 -7
- package/serialization/resources/features/types/CountFlagsResponse.js +17 -7
- package/serialization/resources/features/types/CreateFeatureRequestBodyFeatureType.js +17 -7
- package/serialization/resources/features/types/CreateFeatureResponse.js +17 -7
- package/serialization/resources/features/types/CreateFlagResponse.js +17 -7
- package/serialization/resources/features/types/DeleteFeatureResponse.js +17 -7
- package/serialization/resources/features/types/DeleteFlagResponse.js +17 -7
- package/serialization/resources/features/types/GetFeatureResponse.js +17 -7
- package/serialization/resources/features/types/GetFlagResponse.js +17 -7
- package/serialization/resources/features/types/ListAudienceCompaniesResponse.js +17 -7
- package/serialization/resources/features/types/ListAudienceUsersResponse.js +17 -7
- package/serialization/resources/features/types/ListFeaturesParams.js +17 -7
- package/serialization/resources/features/types/ListFeaturesResponse.js +17 -7
- package/serialization/resources/features/types/ListFlagsParams.js +17 -7
- package/serialization/resources/features/types/ListFlagsResponse.js +17 -7
- package/serialization/resources/features/types/UpdateFeatureRequestBodyFeatureType.js +17 -7
- package/serialization/resources/features/types/UpdateFeatureResponse.js +17 -7
- package/serialization/resources/features/types/UpdateFlagResponse.js +17 -7
- package/serialization/resources/features/types/UpdateFlagRulesResponse.js +17 -7
- package/serialization/resources/index.d.ts +3 -0
- package/serialization/resources/index.js +21 -8
- package/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +5 -1
- package/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js +22 -8
- package/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +5 -1
- package/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.js +22 -8
- package/serialization/resources/plangroups/types/CreatePlanGroupResponse.js +17 -7
- package/serialization/resources/plangroups/types/GetPlanGroupResponse.js +17 -7
- package/serialization/resources/plangroups/types/UpdatePlanGroupResponse.js +17 -7
- package/serialization/resources/plans/client/requests/CreatePlanRequestBody.js +17 -7
- package/serialization/resources/plans/client/requests/CreatePlanTraitRequestBody.d.ts +14 -0
- package/serialization/resources/plans/client/requests/CreatePlanTraitRequestBody.js +45 -0
- package/serialization/resources/plans/client/requests/UpdateAudienceRequestBody.js +17 -7
- package/serialization/resources/plans/client/requests/UpdateCompanyPlansRequestBody.js +17 -7
- package/serialization/resources/plans/client/requests/UpdatePlanRequestBody.js +17 -7
- package/serialization/resources/plans/client/requests/UpdatePlanTraitRequestBody.d.ts +13 -0
- package/serialization/resources/plans/client/requests/UpdatePlanTraitRequestBody.js +44 -0
- package/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.d.ts +2 -0
- package/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.js +19 -7
- package/serialization/resources/plans/client/requests/index.d.ts +2 -0
- package/serialization/resources/plans/client/requests/index.js +5 -1
- package/serialization/resources/plans/types/CountPlanTraitsParams.d.ts +16 -0
- package/serialization/resources/plans/types/CountPlanTraitsParams.js +47 -0
- package/serialization/resources/plans/types/CountPlanTraitsResponse.d.ts +15 -0
- package/serialization/resources/plans/types/CountPlanTraitsResponse.js +46 -0
- package/serialization/resources/plans/types/CountPlansParams.js +17 -7
- package/serialization/resources/plans/types/CountPlansRequestPlanType.js +17 -7
- package/serialization/resources/plans/types/CountPlansResponse.js +17 -7
- package/serialization/resources/plans/types/CountPlansResponseParamsPlanType.js +17 -7
- package/serialization/resources/plans/types/CreatePlanRequestBodyPlanType.js +17 -7
- package/serialization/resources/plans/types/CreatePlanResponse.js +17 -7
- package/serialization/resources/plans/types/CreatePlanTraitResponse.d.ts +14 -0
- package/serialization/resources/plans/types/CreatePlanTraitResponse.js +45 -0
- package/serialization/resources/plans/types/DeleteAudienceResponse.js +17 -7
- package/serialization/resources/plans/types/DeletePlanResponse.js +17 -7
- package/serialization/resources/plans/types/DeletePlanTraitResponse.d.ts +14 -0
- package/serialization/resources/plans/types/DeletePlanTraitResponse.js +45 -0
- package/serialization/resources/plans/types/GetAudienceResponse.js +17 -7
- package/serialization/resources/plans/types/GetPlanResponse.js +17 -7
- package/serialization/resources/plans/types/GetPlanTraitResponse.d.ts +14 -0
- package/serialization/resources/plans/types/GetPlanTraitResponse.js +45 -0
- package/serialization/resources/plans/types/ListPlanTraitsParams.d.ts +16 -0
- package/serialization/resources/plans/types/ListPlanTraitsParams.js +47 -0
- package/serialization/resources/plans/types/ListPlanTraitsResponse.d.ts +15 -0
- package/serialization/resources/plans/types/ListPlanTraitsResponse.js +46 -0
- package/serialization/resources/plans/types/ListPlansParams.js +17 -7
- package/serialization/resources/plans/types/ListPlansRequestPlanType.js +17 -7
- package/serialization/resources/plans/types/ListPlansResponse.js +17 -7
- package/serialization/resources/plans/types/ListPlansResponseParamsPlanType.js +17 -7
- package/serialization/resources/plans/types/UpdateAudienceResponse.js +17 -7
- package/serialization/resources/plans/types/UpdateCompanyPlansResponse.js +17 -7
- package/serialization/resources/plans/types/UpdatePlanResponse.js +17 -7
- package/serialization/resources/plans/types/UpdatePlanTraitResponse.d.ts +14 -0
- package/serialization/resources/plans/types/UpdatePlanTraitResponse.js +45 -0
- package/serialization/resources/plans/types/UpsertBillingProductPlanResponse.js +17 -7
- package/serialization/resources/plans/types/index.d.ts +8 -0
- package/serialization/resources/plans/types/index.js +8 -0
- package/serialization/resources/webhooks/client/requests/CreateWebhookRequestBody.d.ts +2 -0
- package/serialization/resources/webhooks/client/requests/CreateWebhookRequestBody.js +19 -7
- package/serialization/resources/webhooks/client/requests/UpdateWebhookRequestBody.d.ts +2 -0
- package/serialization/resources/webhooks/client/requests/UpdateWebhookRequestBody.js +19 -7
- package/serialization/resources/webhooks/types/CountWebhookEventsParams.js +17 -7
- package/serialization/resources/webhooks/types/CountWebhookEventsResponse.js +17 -7
- package/serialization/resources/webhooks/types/CountWebhooksParams.js +17 -7
- package/serialization/resources/webhooks/types/CountWebhooksResponse.js +17 -7
- package/serialization/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.d.ts +1 -1
- package/serialization/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.js +21 -7
- package/serialization/resources/webhooks/types/CreateWebhookResponse.js +17 -7
- package/serialization/resources/webhooks/types/DeleteWebhookResponse.js +17 -7
- package/serialization/resources/webhooks/types/GetWebhookEventResponse.js +17 -7
- package/serialization/resources/webhooks/types/GetWebhookResponse.js +17 -7
- package/serialization/resources/webhooks/types/ListWebhookEventsParams.js +17 -7
- package/serialization/resources/webhooks/types/ListWebhookEventsResponse.js +17 -7
- package/serialization/resources/webhooks/types/ListWebhooksParams.js +17 -7
- package/serialization/resources/webhooks/types/ListWebhooksResponse.js +17 -7
- package/serialization/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.d.ts +1 -1
- package/serialization/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.js +21 -7
- package/serialization/resources/webhooks/types/UpdateWebhookRequestBodyStatus.js +17 -7
- package/serialization/resources/webhooks/types/UpdateWebhookResponse.js +17 -7
- package/serialization/types/ApiError.js +17 -7
- package/serialization/types/ApiKeyCreateResponseData.js +17 -7
- package/serialization/types/ApiKeyRequestListResponseData.js +17 -7
- package/serialization/types/ApiKeyRequestResponseData.js +17 -7
- package/serialization/types/ApiKeyResponseData.js +17 -7
- package/serialization/types/AudienceRequestBody.js +17 -7
- package/serialization/types/BillingCouponResponseData.js +17 -7
- package/serialization/types/BillingCustomerResponseData.js +17 -7
- package/serialization/types/BillingCustomerSubscription.js +17 -7
- package/serialization/types/BillingCustomerWithSubscriptionsResponseData.js +17 -7
- package/serialization/types/BillingMeterResponseData.js +17 -7
- package/serialization/types/BillingPriceResponseData.d.ts +2 -0
- package/serialization/types/BillingPriceResponseData.js +19 -7
- package/serialization/types/BillingPriceView.d.ts +7 -0
- package/serialization/types/BillingPriceView.js +24 -7
- package/serialization/types/BillingProductDetailResponseData.d.ts +3 -0
- package/serialization/types/BillingProductDetailResponseData.js +20 -7
- package/serialization/types/BillingProductForSubscriptionResponseData.d.ts +5 -0
- package/serialization/types/BillingProductForSubscriptionResponseData.js +22 -7
- package/serialization/types/BillingProductPlanResponseData.d.ts +2 -0
- package/serialization/types/BillingProductPlanResponseData.js +19 -7
- package/serialization/types/BillingProductPriceResponseData.d.ts +3 -0
- package/serialization/types/BillingProductPriceResponseData.js +20 -7
- package/serialization/types/BillingProductPriceTierResponseData.d.ts +15 -0
- package/serialization/types/BillingProductPriceTierResponseData.js +46 -0
- package/serialization/types/BillingProductPricing.d.ts +4 -1
- package/serialization/types/BillingProductPricing.js +21 -8
- package/serialization/types/BillingProductPricingUsageType.d.ts +10 -0
- package/serialization/types/BillingProductPricingUsageType.js +41 -0
- package/serialization/types/BillingProductResponseData.d.ts +2 -0
- package/serialization/types/BillingProductResponseData.js +19 -7
- package/serialization/types/BillingSubscriptionDiscount.js +17 -7
- package/serialization/types/BillingSubscriptionDiscountView.js +17 -7
- package/serialization/types/BillingSubscriptionResponseData.d.ts +3 -0
- package/serialization/types/BillingSubscriptionResponseData.js +20 -7
- package/serialization/types/BillingSubscriptionView.d.ts +3 -0
- package/serialization/types/BillingSubscriptionView.js +20 -7
- package/serialization/types/ChangeSubscriptionInternalRequestBody.d.ts +1 -0
- package/serialization/types/ChangeSubscriptionInternalRequestBody.js +18 -7
- package/serialization/types/ChangeSubscriptionRequestBody.d.ts +1 -0
- package/serialization/types/ChangeSubscriptionRequestBody.js +18 -7
- package/serialization/types/CheckFlagRequestBody.js +17 -7
- package/serialization/types/CheckFlagResponseData.d.ts +1 -0
- package/serialization/types/CheckFlagResponseData.js +18 -7
- package/serialization/types/CheckFlagsResponseData.js +17 -7
- package/serialization/types/CheckoutDataResponseData.d.ts +2 -0
- package/serialization/types/CheckoutDataResponseData.js +19 -7
- package/serialization/types/CompanyCrmDealsResponseData.js +17 -7
- package/serialization/types/CompanyDetailResponseData.d.ts +3 -0
- package/serialization/types/CompanyDetailResponseData.js +20 -7
- package/serialization/types/CompanyEventPeriodMetricsResponseData.js +17 -7
- package/serialization/types/CompanyMembershipDetailResponseData.js +17 -7
- package/serialization/types/CompanyMembershipResponseData.js +17 -7
- package/serialization/types/CompanyOverrideResponseData.js +17 -7
- package/serialization/types/CompanyPlanDetailResponseData.d.ts +6 -0
- package/serialization/types/CompanyPlanDetailResponseData.js +23 -7
- package/serialization/types/CompanyPlanWithBillingSubView.d.ts +2 -0
- package/serialization/types/CompanyPlanWithBillingSubView.js +19 -7
- package/serialization/types/CompanyResponseData.js +17 -7
- package/serialization/types/CompanySubscriptionResponseData.d.ts +2 -0
- package/serialization/types/CompanySubscriptionResponseData.js +19 -7
- package/serialization/types/ComponentCapabilities.d.ts +1 -0
- package/serialization/types/ComponentCapabilities.js +18 -7
- package/serialization/types/ComponentHydrateResponseData.js +17 -7
- package/serialization/types/ComponentPreviewResponseData.js +17 -7
- package/serialization/types/ComponentResponseData.js +17 -7
- package/serialization/types/CountResponse.js +17 -7
- package/serialization/types/CouponRequestBody.js +17 -7
- package/serialization/types/CreateBillingPriceTierRequestBody.d.ts +16 -0
- package/serialization/types/CreateBillingPriceTierRequestBody.js +47 -0
- package/serialization/types/CreateEntitlementReqCommon.js +17 -7
- package/serialization/types/CreateEntitlementReqCommonMetricPeriod.js +17 -7
- package/serialization/types/CreateEntitlementReqCommonMetricPeriodMonthReset.js +17 -7
- package/serialization/types/CreateEntitlementReqCommonValueType.js +17 -7
- package/serialization/types/CreateEventRequestBody.js +17 -7
- package/serialization/types/CreateEventRequestBodyEventType.js +17 -7
- package/serialization/types/CreateFlagRequestBody.js +17 -7
- package/serialization/types/CreateOrUpdateConditionGroupRequestBody.js +17 -7
- package/serialization/types/CreateOrUpdateConditionRequestBody.js +17 -7
- package/serialization/types/CreateOrUpdateConditionRequestBodyConditionType.js +17 -7
- package/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +17 -7
- package/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.js +17 -7
- package/serialization/types/CreateOrUpdateConditionRequestBodyOperator.js +17 -7
- package/serialization/types/CreateOrUpdateFlagRequestBody.js +17 -7
- package/serialization/types/CreateOrUpdateRuleRequestBody.js +17 -7
- package/serialization/types/CreateOrUpdateRuleRequestBodyRuleType.js +17 -7
- package/serialization/types/CrmDealLineItem.js +17 -7
- package/serialization/types/CrmDealResponseData.js +17 -7
- package/serialization/types/CrmLineItemResponseData.js +17 -7
- package/serialization/types/CrmProductResponseData.js +17 -7
- package/serialization/types/CustomPlanConfig.d.ts +14 -0
- package/serialization/types/CustomPlanConfig.js +45 -0
- package/serialization/types/CustomPlanViewConfigResponseData.d.ts +14 -0
- package/serialization/types/CustomPlanViewConfigResponseData.js +45 -0
- package/serialization/types/DataExportResponseData.d.ts +20 -0
- package/serialization/types/DataExportResponseData.js +51 -0
- package/serialization/types/Decimal.js +17 -7
- package/serialization/types/DeleteResponse.js +17 -7
- package/serialization/types/EntitlementTriggerConfig.d.ts +12 -0
- package/serialization/types/EntitlementTriggerConfig.js +43 -0
- package/serialization/types/EntitlementsInPlan.d.ts +13 -0
- package/serialization/types/EntitlementsInPlan.js +44 -0
- package/serialization/types/EntityKeyDefinitionResponseData.js +17 -7
- package/serialization/types/EntityKeyDetailResponseData.js +17 -7
- package/serialization/types/EntityKeyResponseData.js +17 -7
- package/serialization/types/EntityTraitDefinitionResponseData.js +17 -7
- package/serialization/types/EntityTraitDetailResponseData.js +17 -7
- package/serialization/types/EntityTraitResponseData.js +17 -7
- package/serialization/types/EntityTraitValue.js +17 -7
- package/serialization/types/EnvironmentDetailResponseData.js +17 -7
- package/serialization/types/EnvironmentResponseData.js +17 -7
- package/serialization/types/EventBody.js +17 -7
- package/serialization/types/EventBodyFlagCheck.js +17 -7
- package/serialization/types/EventBodyIdentify.js +17 -7
- package/serialization/types/EventBodyIdentifyCompany.js +17 -7
- package/serialization/types/EventBodyTrack.js +17 -7
- package/serialization/types/EventDetailResponseData.js +17 -7
- package/serialization/types/EventResponseData.js +17 -7
- package/serialization/types/EventSummaryResponseData.d.ts +2 -2
- package/serialization/types/EventSummaryResponseData.js +19 -9
- package/serialization/types/FeatureCompanyResponseData.js +17 -7
- package/serialization/types/FeatureCompanyResponseDataAllocationType.js +17 -7
- package/serialization/types/FeatureCompanyUserResponseData.js +17 -7
- package/serialization/types/FeatureCompanyUserResponseDataAllocationType.js +17 -7
- package/serialization/types/FeatureDetailResponseData.d.ts +2 -0
- package/serialization/types/FeatureDetailResponseData.js +19 -7
- package/serialization/types/FeatureResponseData.d.ts +2 -0
- package/serialization/types/FeatureResponseData.js +19 -7
- package/serialization/types/FeatureUsageDetailResponseData.js +17 -7
- package/serialization/types/FeatureUsageResponseData.d.ts +1 -0
- package/serialization/types/FeatureUsageResponseData.js +18 -7
- package/serialization/types/FeatureUsageResponseDataAllocationType.js +17 -7
- package/serialization/types/FlagDetailResponseData.js +17 -7
- package/serialization/types/FlagResponseData.js +17 -7
- package/serialization/types/GenericPreviewObject.js +17 -7
- package/serialization/types/InvoiceRequestBody.js +17 -7
- package/serialization/types/InvoiceResponseData.js +17 -7
- package/serialization/types/IssueTemporaryAccessTokenResponseData.js +17 -7
- package/serialization/types/KeysRequestBody.js +17 -7
- package/serialization/types/MeterRequestBody.js +17 -7
- package/serialization/types/OrderedPlansInGroup.d.ts +14 -0
- package/serialization/types/OrderedPlansInGroup.js +45 -0
- package/serialization/types/PaginationFilter.js +17 -7
- package/serialization/types/PaymentMethodRequestBody.d.ts +0 -1
- package/serialization/types/PaymentMethodRequestBody.js +17 -8
- package/serialization/types/PaymentMethodResponseData.d.ts +0 -1
- package/serialization/types/PaymentMethodResponseData.js +17 -8
- package/serialization/types/PlanAudienceDetailResponseData.js +17 -7
- package/serialization/types/PlanAudienceResponseData.js +17 -7
- package/serialization/types/PlanDetailResponseData.d.ts +2 -0
- package/serialization/types/PlanDetailResponseData.js +19 -7
- package/serialization/types/PlanEntitlementResponseData.d.ts +3 -0
- package/serialization/types/PlanEntitlementResponseData.js +20 -7
- package/serialization/types/PlanEntitlementsOrder.d.ts +13 -0
- package/serialization/types/PlanEntitlementsOrder.js +44 -0
- package/serialization/types/PlanGroupDetailResponseData.d.ts +5 -0
- package/serialization/types/PlanGroupDetailResponseData.js +22 -7
- package/serialization/types/PlanGroupPlanDetailResponseData.d.ts +5 -0
- package/serialization/types/PlanGroupPlanDetailResponseData.js +22 -7
- package/serialization/types/PlanGroupPlanEntitlementsOrder.d.ts +14 -0
- package/serialization/types/PlanGroupPlanEntitlementsOrder.js +45 -0
- package/serialization/types/PlanGroupResponseData.d.ts +2 -1
- package/serialization/types/PlanGroupResponseData.js +19 -8
- package/serialization/types/PlanResponseData.js +17 -7
- package/serialization/types/PlanTraitResponseData.d.ts +19 -0
- package/serialization/types/PlanTraitResponseData.js +50 -0
- package/serialization/types/PreviewObject.js +17 -7
- package/serialization/types/PreviewObjectResponseData.js +17 -7
- package/serialization/types/PreviewSubscriptionChangeResponseData.d.ts +4 -0
- package/serialization/types/PreviewSubscriptionChangeResponseData.js +21 -7
- package/serialization/types/PreviewSubscriptionFinanceResponseData.d.ts +21 -0
- package/serialization/types/PreviewSubscriptionFinanceResponseData.js +52 -0
- package/serialization/types/PreviewSubscriptionUpcomingInvoiceLineItems.d.ts +16 -0
- package/serialization/types/PreviewSubscriptionUpcomingInvoiceLineItems.js +47 -0
- package/serialization/types/QuickstartResp.d.ts +12 -0
- package/serialization/types/QuickstartResp.js +43 -0
- package/serialization/types/RawEventBatchResponseData.js +17 -7
- package/serialization/types/RawEventResponseData.js +17 -7
- package/serialization/types/RuleConditionDetailResponseData.js +17 -7
- package/serialization/types/RuleConditionGroupDetailResponseData.js +17 -7
- package/serialization/types/RuleConditionGroupResponseData.js +17 -7
- package/serialization/types/RuleConditionResponseData.js +17 -7
- package/serialization/types/RuleDetailResponseData.js +17 -7
- package/serialization/types/RuleResponseData.js +17 -7
- package/serialization/types/RulesDetailResponseData.js +17 -7
- package/serialization/types/SegmentStatusResp.js +17 -7
- package/serialization/types/StripeEmbedInfo.js +17 -7
- package/serialization/types/TemporaryAccessTokenResponseData.js +17 -7
- package/serialization/types/UpdateAddOnRequestBody.js +17 -7
- package/serialization/types/UpdateEntitlementReqCommon.js +17 -7
- package/serialization/types/UpdateEntitlementReqCommonMetricPeriod.js +17 -7
- package/serialization/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.js +17 -7
- package/serialization/types/UpdateEntitlementReqCommonValueType.js +17 -7
- package/serialization/types/UpdatePayInAdvanceRequestBody.js +17 -7
- package/serialization/types/UpdateRuleRequestBody.js +17 -7
- package/serialization/types/UpsertCompanyRequestBody.js +17 -7
- package/serialization/types/UpsertTraitRequestBody.js +17 -7
- package/serialization/types/UpsertUserRequestBody.d.ts +2 -0
- package/serialization/types/UpsertUserRequestBody.js +19 -7
- package/serialization/types/UpsertUserSubRequestBody.d.ts +1 -0
- package/serialization/types/UpsertUserSubRequestBody.js +18 -7
- package/serialization/types/UsageBasedEntitlementRequestBody.d.ts +7 -0
- package/serialization/types/UsageBasedEntitlementRequestBody.js +24 -7
- package/serialization/types/UsageBasedEntitlementResponseData.js +17 -7
- package/serialization/types/UserDetailResponseData.js +17 -7
- package/serialization/types/UserResponseData.js +17 -7
- package/serialization/types/WebhookEventDetailResponseData.js +17 -7
- package/serialization/types/WebhookEventResponseData.js +17 -7
- package/serialization/types/WebhookResponseData.d.ts +3 -0
- package/serialization/types/WebhookResponseData.js +20 -7
- package/serialization/types/index.d.ts +15 -0
- package/serialization/types/index.js +15 -0
- package/webhooks.d.ts +76 -0
- package/webhooks.js +170 -0
- /package/api/resources/{billing/client/requests/ListCustomersRequest.js → accounts/types/QuickstartResponse.js} +0 -0
- /package/api/resources/billing/{types/ListCustomersParams.js → client/requests/ListCouponsRequest.js} +0 -0
- /package/api/resources/billing/{types/ListCustomersResponse.js → client/requests/ListCustomersWithSubscriptionsRequest.js} +0 -0
- /package/{dist/api/resources/billing/client/requests/ListCustomersRequest.js → api/resources/billing/types/DeleteBillingProductResponse.js} +0 -0
- /package/{dist/api/resources/billing/types/ListCustomersParams.js → api/resources/billing/types/ListCouponsParams.js} +0 -0
- /package/{dist/api/resources/billing/types/ListCustomersResponse.js → api/resources/billing/types/ListCouponsResponse.js} +0 -0
|
@@ -18,13 +18,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
18
18
|
}) : function(o, v) {
|
|
19
19
|
o["default"] = v;
|
|
20
20
|
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
};
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
28
38
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
39
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
40
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -45,6 +55,7 @@ const Schematic = __importStar(require("../../../index"));
|
|
|
45
55
|
const url_join_1 = __importDefault(require("url-join"));
|
|
46
56
|
const serializers = __importStar(require("../../../../serialization/index"));
|
|
47
57
|
const errors = __importStar(require("../../../../errors/index"));
|
|
58
|
+
const json_1 = require("../../../../core/json");
|
|
48
59
|
class Entitlements {
|
|
49
60
|
constructor(_options) {
|
|
50
61
|
this._options = _options;
|
|
@@ -56,14 +67,18 @@ class Entitlements {
|
|
|
56
67
|
* @throws {@link Schematic.BadRequestError}
|
|
57
68
|
* @throws {@link Schematic.UnauthorizedError}
|
|
58
69
|
* @throws {@link Schematic.ForbiddenError}
|
|
70
|
+
* @throws {@link Schematic.NotFoundError}
|
|
59
71
|
* @throws {@link Schematic.InternalServerError}
|
|
60
72
|
*
|
|
61
73
|
* @example
|
|
62
74
|
* await client.entitlements.listCompanyOverrides()
|
|
63
75
|
*/
|
|
64
76
|
listCompanyOverrides(request = {}, requestOptions) {
|
|
65
|
-
|
|
66
|
-
|
|
77
|
+
return core.HttpResponsePromise.fromPromise(this.__listCompanyOverrides(request, requestOptions));
|
|
78
|
+
}
|
|
79
|
+
__listCompanyOverrides() {
|
|
80
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
81
|
+
var _a, _b, _c;
|
|
67
82
|
const { companyId, companyIds, featureId, featureIds, ids, withoutExpired, q, limit, offset } = request;
|
|
68
83
|
const _queryParams = {};
|
|
69
84
|
if (companyId != null) {
|
|
@@ -109,9 +124,9 @@ class Entitlements {
|
|
|
109
124
|
_queryParams["offset"] = offset.toString();
|
|
110
125
|
}
|
|
111
126
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
112
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
|
127
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, "company-overrides"),
|
|
113
128
|
method: "GET",
|
|
114
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
129
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.11", "User-Agent": "@schematichq/schematic-typescript-node/1.1.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
115
130
|
contentType: "application/json",
|
|
116
131
|
queryParameters: _queryParams,
|
|
117
132
|
requestType: "json",
|
|
@@ -120,13 +135,16 @@ class Entitlements {
|
|
|
120
135
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
121
136
|
});
|
|
122
137
|
if (_response.ok) {
|
|
123
|
-
return
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
138
|
+
return {
|
|
139
|
+
data: serializers.ListCompanyOverridesResponse.parseOrThrow(_response.body, {
|
|
140
|
+
unrecognizedObjectKeys: "passthrough",
|
|
141
|
+
allowUnrecognizedUnionMembers: true,
|
|
142
|
+
allowUnrecognizedEnumValues: true,
|
|
143
|
+
skipValidation: true,
|
|
144
|
+
breadcrumbsPrefix: ["response"],
|
|
145
|
+
}),
|
|
146
|
+
rawResponse: _response.rawResponse,
|
|
147
|
+
};
|
|
130
148
|
}
|
|
131
149
|
if (_response.error.reason === "status-code") {
|
|
132
150
|
switch (_response.error.statusCode) {
|
|
@@ -137,7 +155,7 @@ class Entitlements {
|
|
|
137
155
|
allowUnrecognizedEnumValues: true,
|
|
138
156
|
skipValidation: true,
|
|
139
157
|
breadcrumbsPrefix: ["response"],
|
|
140
|
-
}));
|
|
158
|
+
}), _response.rawResponse);
|
|
141
159
|
case 401:
|
|
142
160
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
143
161
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -145,7 +163,7 @@ class Entitlements {
|
|
|
145
163
|
allowUnrecognizedEnumValues: true,
|
|
146
164
|
skipValidation: true,
|
|
147
165
|
breadcrumbsPrefix: ["response"],
|
|
148
|
-
}));
|
|
166
|
+
}), _response.rawResponse);
|
|
149
167
|
case 403:
|
|
150
168
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
151
169
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -153,7 +171,15 @@ class Entitlements {
|
|
|
153
171
|
allowUnrecognizedEnumValues: true,
|
|
154
172
|
skipValidation: true,
|
|
155
173
|
breadcrumbsPrefix: ["response"],
|
|
156
|
-
}));
|
|
174
|
+
}), _response.rawResponse);
|
|
175
|
+
case 404:
|
|
176
|
+
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
177
|
+
unrecognizedObjectKeys: "passthrough",
|
|
178
|
+
allowUnrecognizedUnionMembers: true,
|
|
179
|
+
allowUnrecognizedEnumValues: true,
|
|
180
|
+
skipValidation: true,
|
|
181
|
+
breadcrumbsPrefix: ["response"],
|
|
182
|
+
}), _response.rawResponse);
|
|
157
183
|
case 500:
|
|
158
184
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
159
185
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -161,11 +187,12 @@ class Entitlements {
|
|
|
161
187
|
allowUnrecognizedEnumValues: true,
|
|
162
188
|
skipValidation: true,
|
|
163
189
|
breadcrumbsPrefix: ["response"],
|
|
164
|
-
}));
|
|
190
|
+
}), _response.rawResponse);
|
|
165
191
|
default:
|
|
166
192
|
throw new errors.SchematicError({
|
|
167
193
|
statusCode: _response.error.statusCode,
|
|
168
194
|
body: _response.error.body,
|
|
195
|
+
rawResponse: _response.rawResponse,
|
|
169
196
|
});
|
|
170
197
|
}
|
|
171
198
|
}
|
|
@@ -174,12 +201,14 @@ class Entitlements {
|
|
|
174
201
|
throw new errors.SchematicError({
|
|
175
202
|
statusCode: _response.error.statusCode,
|
|
176
203
|
body: _response.error.rawBody,
|
|
204
|
+
rawResponse: _response.rawResponse,
|
|
177
205
|
});
|
|
178
206
|
case "timeout":
|
|
179
|
-
throw new errors.SchematicTimeoutError();
|
|
207
|
+
throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /company-overrides.");
|
|
180
208
|
case "unknown":
|
|
181
209
|
throw new errors.SchematicError({
|
|
182
210
|
message: _response.error.errorMessage,
|
|
211
|
+
rawResponse: _response.rawResponse,
|
|
183
212
|
});
|
|
184
213
|
}
|
|
185
214
|
});
|
|
@@ -191,6 +220,7 @@ class Entitlements {
|
|
|
191
220
|
* @throws {@link Schematic.BadRequestError}
|
|
192
221
|
* @throws {@link Schematic.UnauthorizedError}
|
|
193
222
|
* @throws {@link Schematic.ForbiddenError}
|
|
223
|
+
* @throws {@link Schematic.NotFoundError}
|
|
194
224
|
* @throws {@link Schematic.InternalServerError}
|
|
195
225
|
*
|
|
196
226
|
* @example
|
|
@@ -201,12 +231,15 @@ class Entitlements {
|
|
|
201
231
|
* })
|
|
202
232
|
*/
|
|
203
233
|
createCompanyOverride(request, requestOptions) {
|
|
204
|
-
|
|
234
|
+
return core.HttpResponsePromise.fromPromise(this.__createCompanyOverride(request, requestOptions));
|
|
235
|
+
}
|
|
236
|
+
__createCompanyOverride(request, requestOptions) {
|
|
205
237
|
return __awaiter(this, void 0, void 0, function* () {
|
|
238
|
+
var _a, _b, _c;
|
|
206
239
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
207
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
|
240
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, "company-overrides"),
|
|
208
241
|
method: "POST",
|
|
209
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
242
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.11", "User-Agent": "@schematichq/schematic-typescript-node/1.1.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
210
243
|
contentType: "application/json",
|
|
211
244
|
requestType: "json",
|
|
212
245
|
body: serializers.CreateCompanyOverrideRequestBody.jsonOrThrow(request, {
|
|
@@ -217,13 +250,16 @@ class Entitlements {
|
|
|
217
250
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
218
251
|
});
|
|
219
252
|
if (_response.ok) {
|
|
220
|
-
return
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
253
|
+
return {
|
|
254
|
+
data: serializers.CreateCompanyOverrideResponse.parseOrThrow(_response.body, {
|
|
255
|
+
unrecognizedObjectKeys: "passthrough",
|
|
256
|
+
allowUnrecognizedUnionMembers: true,
|
|
257
|
+
allowUnrecognizedEnumValues: true,
|
|
258
|
+
skipValidation: true,
|
|
259
|
+
breadcrumbsPrefix: ["response"],
|
|
260
|
+
}),
|
|
261
|
+
rawResponse: _response.rawResponse,
|
|
262
|
+
};
|
|
227
263
|
}
|
|
228
264
|
if (_response.error.reason === "status-code") {
|
|
229
265
|
switch (_response.error.statusCode) {
|
|
@@ -234,7 +270,7 @@ class Entitlements {
|
|
|
234
270
|
allowUnrecognizedEnumValues: true,
|
|
235
271
|
skipValidation: true,
|
|
236
272
|
breadcrumbsPrefix: ["response"],
|
|
237
|
-
}));
|
|
273
|
+
}), _response.rawResponse);
|
|
238
274
|
case 401:
|
|
239
275
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
240
276
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -242,7 +278,7 @@ class Entitlements {
|
|
|
242
278
|
allowUnrecognizedEnumValues: true,
|
|
243
279
|
skipValidation: true,
|
|
244
280
|
breadcrumbsPrefix: ["response"],
|
|
245
|
-
}));
|
|
281
|
+
}), _response.rawResponse);
|
|
246
282
|
case 403:
|
|
247
283
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
248
284
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -250,7 +286,15 @@ class Entitlements {
|
|
|
250
286
|
allowUnrecognizedEnumValues: true,
|
|
251
287
|
skipValidation: true,
|
|
252
288
|
breadcrumbsPrefix: ["response"],
|
|
253
|
-
}));
|
|
289
|
+
}), _response.rawResponse);
|
|
290
|
+
case 404:
|
|
291
|
+
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
292
|
+
unrecognizedObjectKeys: "passthrough",
|
|
293
|
+
allowUnrecognizedUnionMembers: true,
|
|
294
|
+
allowUnrecognizedEnumValues: true,
|
|
295
|
+
skipValidation: true,
|
|
296
|
+
breadcrumbsPrefix: ["response"],
|
|
297
|
+
}), _response.rawResponse);
|
|
254
298
|
case 500:
|
|
255
299
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
256
300
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -258,11 +302,12 @@ class Entitlements {
|
|
|
258
302
|
allowUnrecognizedEnumValues: true,
|
|
259
303
|
skipValidation: true,
|
|
260
304
|
breadcrumbsPrefix: ["response"],
|
|
261
|
-
}));
|
|
305
|
+
}), _response.rawResponse);
|
|
262
306
|
default:
|
|
263
307
|
throw new errors.SchematicError({
|
|
264
308
|
statusCode: _response.error.statusCode,
|
|
265
309
|
body: _response.error.body,
|
|
310
|
+
rawResponse: _response.rawResponse,
|
|
266
311
|
});
|
|
267
312
|
}
|
|
268
313
|
}
|
|
@@ -271,12 +316,14 @@ class Entitlements {
|
|
|
271
316
|
throw new errors.SchematicError({
|
|
272
317
|
statusCode: _response.error.statusCode,
|
|
273
318
|
body: _response.error.rawBody,
|
|
319
|
+
rawResponse: _response.rawResponse,
|
|
274
320
|
});
|
|
275
321
|
case "timeout":
|
|
276
|
-
throw new errors.SchematicTimeoutError();
|
|
322
|
+
throw new errors.SchematicTimeoutError("Timeout exceeded when calling POST /company-overrides.");
|
|
277
323
|
case "unknown":
|
|
278
324
|
throw new errors.SchematicError({
|
|
279
325
|
message: _response.error.errorMessage,
|
|
326
|
+
rawResponse: _response.rawResponse,
|
|
280
327
|
});
|
|
281
328
|
}
|
|
282
329
|
});
|
|
@@ -294,12 +341,15 @@ class Entitlements {
|
|
|
294
341
|
* await client.entitlements.getCompanyOverride("company_override_id")
|
|
295
342
|
*/
|
|
296
343
|
getCompanyOverride(companyOverrideId, requestOptions) {
|
|
297
|
-
|
|
344
|
+
return core.HttpResponsePromise.fromPromise(this.__getCompanyOverride(companyOverrideId, requestOptions));
|
|
345
|
+
}
|
|
346
|
+
__getCompanyOverride(companyOverrideId, requestOptions) {
|
|
298
347
|
return __awaiter(this, void 0, void 0, function* () {
|
|
348
|
+
var _a, _b, _c;
|
|
299
349
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
300
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
|
350
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, `company-overrides/${encodeURIComponent(companyOverrideId)}`),
|
|
301
351
|
method: "GET",
|
|
302
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
352
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.11", "User-Agent": "@schematichq/schematic-typescript-node/1.1.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
303
353
|
contentType: "application/json",
|
|
304
354
|
requestType: "json",
|
|
305
355
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -307,13 +357,16 @@ class Entitlements {
|
|
|
307
357
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
308
358
|
});
|
|
309
359
|
if (_response.ok) {
|
|
310
|
-
return
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
360
|
+
return {
|
|
361
|
+
data: serializers.GetCompanyOverrideResponse.parseOrThrow(_response.body, {
|
|
362
|
+
unrecognizedObjectKeys: "passthrough",
|
|
363
|
+
allowUnrecognizedUnionMembers: true,
|
|
364
|
+
allowUnrecognizedEnumValues: true,
|
|
365
|
+
skipValidation: true,
|
|
366
|
+
breadcrumbsPrefix: ["response"],
|
|
367
|
+
}),
|
|
368
|
+
rawResponse: _response.rawResponse,
|
|
369
|
+
};
|
|
317
370
|
}
|
|
318
371
|
if (_response.error.reason === "status-code") {
|
|
319
372
|
switch (_response.error.statusCode) {
|
|
@@ -324,7 +377,7 @@ class Entitlements {
|
|
|
324
377
|
allowUnrecognizedEnumValues: true,
|
|
325
378
|
skipValidation: true,
|
|
326
379
|
breadcrumbsPrefix: ["response"],
|
|
327
|
-
}));
|
|
380
|
+
}), _response.rawResponse);
|
|
328
381
|
case 403:
|
|
329
382
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
330
383
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -332,7 +385,7 @@ class Entitlements {
|
|
|
332
385
|
allowUnrecognizedEnumValues: true,
|
|
333
386
|
skipValidation: true,
|
|
334
387
|
breadcrumbsPrefix: ["response"],
|
|
335
|
-
}));
|
|
388
|
+
}), _response.rawResponse);
|
|
336
389
|
case 404:
|
|
337
390
|
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
338
391
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -340,7 +393,7 @@ class Entitlements {
|
|
|
340
393
|
allowUnrecognizedEnumValues: true,
|
|
341
394
|
skipValidation: true,
|
|
342
395
|
breadcrumbsPrefix: ["response"],
|
|
343
|
-
}));
|
|
396
|
+
}), _response.rawResponse);
|
|
344
397
|
case 500:
|
|
345
398
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
346
399
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -348,11 +401,12 @@ class Entitlements {
|
|
|
348
401
|
allowUnrecognizedEnumValues: true,
|
|
349
402
|
skipValidation: true,
|
|
350
403
|
breadcrumbsPrefix: ["response"],
|
|
351
|
-
}));
|
|
404
|
+
}), _response.rawResponse);
|
|
352
405
|
default:
|
|
353
406
|
throw new errors.SchematicError({
|
|
354
407
|
statusCode: _response.error.statusCode,
|
|
355
408
|
body: _response.error.body,
|
|
409
|
+
rawResponse: _response.rawResponse,
|
|
356
410
|
});
|
|
357
411
|
}
|
|
358
412
|
}
|
|
@@ -361,12 +415,14 @@ class Entitlements {
|
|
|
361
415
|
throw new errors.SchematicError({
|
|
362
416
|
statusCode: _response.error.statusCode,
|
|
363
417
|
body: _response.error.rawBody,
|
|
418
|
+
rawResponse: _response.rawResponse,
|
|
364
419
|
});
|
|
365
420
|
case "timeout":
|
|
366
|
-
throw new errors.SchematicTimeoutError();
|
|
421
|
+
throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /company-overrides/{company_override_id}.");
|
|
367
422
|
case "unknown":
|
|
368
423
|
throw new errors.SchematicError({
|
|
369
424
|
message: _response.error.errorMessage,
|
|
425
|
+
rawResponse: _response.rawResponse,
|
|
370
426
|
});
|
|
371
427
|
}
|
|
372
428
|
});
|
|
@@ -388,12 +444,15 @@ class Entitlements {
|
|
|
388
444
|
* })
|
|
389
445
|
*/
|
|
390
446
|
updateCompanyOverride(companyOverrideId, request, requestOptions) {
|
|
391
|
-
|
|
447
|
+
return core.HttpResponsePromise.fromPromise(this.__updateCompanyOverride(companyOverrideId, request, requestOptions));
|
|
448
|
+
}
|
|
449
|
+
__updateCompanyOverride(companyOverrideId, request, requestOptions) {
|
|
392
450
|
return __awaiter(this, void 0, void 0, function* () {
|
|
451
|
+
var _a, _b, _c;
|
|
393
452
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
394
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
|
453
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, `company-overrides/${encodeURIComponent(companyOverrideId)}`),
|
|
395
454
|
method: "PUT",
|
|
396
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
455
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.11", "User-Agent": "@schematichq/schematic-typescript-node/1.1.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
397
456
|
contentType: "application/json",
|
|
398
457
|
requestType: "json",
|
|
399
458
|
body: serializers.UpdateCompanyOverrideRequestBody.jsonOrThrow(request, {
|
|
@@ -404,13 +463,16 @@ class Entitlements {
|
|
|
404
463
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
405
464
|
});
|
|
406
465
|
if (_response.ok) {
|
|
407
|
-
return
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
466
|
+
return {
|
|
467
|
+
data: serializers.UpdateCompanyOverrideResponse.parseOrThrow(_response.body, {
|
|
468
|
+
unrecognizedObjectKeys: "passthrough",
|
|
469
|
+
allowUnrecognizedUnionMembers: true,
|
|
470
|
+
allowUnrecognizedEnumValues: true,
|
|
471
|
+
skipValidation: true,
|
|
472
|
+
breadcrumbsPrefix: ["response"],
|
|
473
|
+
}),
|
|
474
|
+
rawResponse: _response.rawResponse,
|
|
475
|
+
};
|
|
414
476
|
}
|
|
415
477
|
if (_response.error.reason === "status-code") {
|
|
416
478
|
switch (_response.error.statusCode) {
|
|
@@ -421,7 +483,7 @@ class Entitlements {
|
|
|
421
483
|
allowUnrecognizedEnumValues: true,
|
|
422
484
|
skipValidation: true,
|
|
423
485
|
breadcrumbsPrefix: ["response"],
|
|
424
|
-
}));
|
|
486
|
+
}), _response.rawResponse);
|
|
425
487
|
case 401:
|
|
426
488
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
427
489
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -429,7 +491,7 @@ class Entitlements {
|
|
|
429
491
|
allowUnrecognizedEnumValues: true,
|
|
430
492
|
skipValidation: true,
|
|
431
493
|
breadcrumbsPrefix: ["response"],
|
|
432
|
-
}));
|
|
494
|
+
}), _response.rawResponse);
|
|
433
495
|
case 403:
|
|
434
496
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
435
497
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -437,7 +499,7 @@ class Entitlements {
|
|
|
437
499
|
allowUnrecognizedEnumValues: true,
|
|
438
500
|
skipValidation: true,
|
|
439
501
|
breadcrumbsPrefix: ["response"],
|
|
440
|
-
}));
|
|
502
|
+
}), _response.rawResponse);
|
|
441
503
|
case 404:
|
|
442
504
|
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
443
505
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -445,7 +507,7 @@ class Entitlements {
|
|
|
445
507
|
allowUnrecognizedEnumValues: true,
|
|
446
508
|
skipValidation: true,
|
|
447
509
|
breadcrumbsPrefix: ["response"],
|
|
448
|
-
}));
|
|
510
|
+
}), _response.rawResponse);
|
|
449
511
|
case 500:
|
|
450
512
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
451
513
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -453,11 +515,12 @@ class Entitlements {
|
|
|
453
515
|
allowUnrecognizedEnumValues: true,
|
|
454
516
|
skipValidation: true,
|
|
455
517
|
breadcrumbsPrefix: ["response"],
|
|
456
|
-
}));
|
|
518
|
+
}), _response.rawResponse);
|
|
457
519
|
default:
|
|
458
520
|
throw new errors.SchematicError({
|
|
459
521
|
statusCode: _response.error.statusCode,
|
|
460
522
|
body: _response.error.body,
|
|
523
|
+
rawResponse: _response.rawResponse,
|
|
461
524
|
});
|
|
462
525
|
}
|
|
463
526
|
}
|
|
@@ -466,12 +529,14 @@ class Entitlements {
|
|
|
466
529
|
throw new errors.SchematicError({
|
|
467
530
|
statusCode: _response.error.statusCode,
|
|
468
531
|
body: _response.error.rawBody,
|
|
532
|
+
rawResponse: _response.rawResponse,
|
|
469
533
|
});
|
|
470
534
|
case "timeout":
|
|
471
|
-
throw new errors.SchematicTimeoutError();
|
|
535
|
+
throw new errors.SchematicTimeoutError("Timeout exceeded when calling PUT /company-overrides/{company_override_id}.");
|
|
472
536
|
case "unknown":
|
|
473
537
|
throw new errors.SchematicError({
|
|
474
538
|
message: _response.error.errorMessage,
|
|
539
|
+
rawResponse: _response.rawResponse,
|
|
475
540
|
});
|
|
476
541
|
}
|
|
477
542
|
});
|
|
@@ -483,18 +548,22 @@ class Entitlements {
|
|
|
483
548
|
* @throws {@link Schematic.BadRequestError}
|
|
484
549
|
* @throws {@link Schematic.UnauthorizedError}
|
|
485
550
|
* @throws {@link Schematic.ForbiddenError}
|
|
551
|
+
* @throws {@link Schematic.NotFoundError}
|
|
486
552
|
* @throws {@link Schematic.InternalServerError}
|
|
487
553
|
*
|
|
488
554
|
* @example
|
|
489
555
|
* await client.entitlements.deleteCompanyOverride("company_override_id")
|
|
490
556
|
*/
|
|
491
557
|
deleteCompanyOverride(companyOverrideId, requestOptions) {
|
|
492
|
-
|
|
558
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteCompanyOverride(companyOverrideId, requestOptions));
|
|
559
|
+
}
|
|
560
|
+
__deleteCompanyOverride(companyOverrideId, requestOptions) {
|
|
493
561
|
return __awaiter(this, void 0, void 0, function* () {
|
|
562
|
+
var _a, _b, _c;
|
|
494
563
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
495
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
|
564
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, `company-overrides/${encodeURIComponent(companyOverrideId)}`),
|
|
496
565
|
method: "DELETE",
|
|
497
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
566
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.11", "User-Agent": "@schematichq/schematic-typescript-node/1.1.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
498
567
|
contentType: "application/json",
|
|
499
568
|
requestType: "json",
|
|
500
569
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -502,13 +571,16 @@ class Entitlements {
|
|
|
502
571
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
503
572
|
});
|
|
504
573
|
if (_response.ok) {
|
|
505
|
-
return
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
574
|
+
return {
|
|
575
|
+
data: serializers.DeleteCompanyOverrideResponse.parseOrThrow(_response.body, {
|
|
576
|
+
unrecognizedObjectKeys: "passthrough",
|
|
577
|
+
allowUnrecognizedUnionMembers: true,
|
|
578
|
+
allowUnrecognizedEnumValues: true,
|
|
579
|
+
skipValidation: true,
|
|
580
|
+
breadcrumbsPrefix: ["response"],
|
|
581
|
+
}),
|
|
582
|
+
rawResponse: _response.rawResponse,
|
|
583
|
+
};
|
|
512
584
|
}
|
|
513
585
|
if (_response.error.reason === "status-code") {
|
|
514
586
|
switch (_response.error.statusCode) {
|
|
@@ -519,7 +591,7 @@ class Entitlements {
|
|
|
519
591
|
allowUnrecognizedEnumValues: true,
|
|
520
592
|
skipValidation: true,
|
|
521
593
|
breadcrumbsPrefix: ["response"],
|
|
522
|
-
}));
|
|
594
|
+
}), _response.rawResponse);
|
|
523
595
|
case 401:
|
|
524
596
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
525
597
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -527,7 +599,7 @@ class Entitlements {
|
|
|
527
599
|
allowUnrecognizedEnumValues: true,
|
|
528
600
|
skipValidation: true,
|
|
529
601
|
breadcrumbsPrefix: ["response"],
|
|
530
|
-
}));
|
|
602
|
+
}), _response.rawResponse);
|
|
531
603
|
case 403:
|
|
532
604
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
533
605
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -535,7 +607,15 @@ class Entitlements {
|
|
|
535
607
|
allowUnrecognizedEnumValues: true,
|
|
536
608
|
skipValidation: true,
|
|
537
609
|
breadcrumbsPrefix: ["response"],
|
|
538
|
-
}));
|
|
610
|
+
}), _response.rawResponse);
|
|
611
|
+
case 404:
|
|
612
|
+
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
613
|
+
unrecognizedObjectKeys: "passthrough",
|
|
614
|
+
allowUnrecognizedUnionMembers: true,
|
|
615
|
+
allowUnrecognizedEnumValues: true,
|
|
616
|
+
skipValidation: true,
|
|
617
|
+
breadcrumbsPrefix: ["response"],
|
|
618
|
+
}), _response.rawResponse);
|
|
539
619
|
case 500:
|
|
540
620
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
541
621
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -543,11 +623,12 @@ class Entitlements {
|
|
|
543
623
|
allowUnrecognizedEnumValues: true,
|
|
544
624
|
skipValidation: true,
|
|
545
625
|
breadcrumbsPrefix: ["response"],
|
|
546
|
-
}));
|
|
626
|
+
}), _response.rawResponse);
|
|
547
627
|
default:
|
|
548
628
|
throw new errors.SchematicError({
|
|
549
629
|
statusCode: _response.error.statusCode,
|
|
550
630
|
body: _response.error.body,
|
|
631
|
+
rawResponse: _response.rawResponse,
|
|
551
632
|
});
|
|
552
633
|
}
|
|
553
634
|
}
|
|
@@ -556,12 +637,14 @@ class Entitlements {
|
|
|
556
637
|
throw new errors.SchematicError({
|
|
557
638
|
statusCode: _response.error.statusCode,
|
|
558
639
|
body: _response.error.rawBody,
|
|
640
|
+
rawResponse: _response.rawResponse,
|
|
559
641
|
});
|
|
560
642
|
case "timeout":
|
|
561
|
-
throw new errors.SchematicTimeoutError();
|
|
643
|
+
throw new errors.SchematicTimeoutError("Timeout exceeded when calling DELETE /company-overrides/{company_override_id}.");
|
|
562
644
|
case "unknown":
|
|
563
645
|
throw new errors.SchematicError({
|
|
564
646
|
message: _response.error.errorMessage,
|
|
647
|
+
rawResponse: _response.rawResponse,
|
|
565
648
|
});
|
|
566
649
|
}
|
|
567
650
|
});
|
|
@@ -573,14 +656,18 @@ class Entitlements {
|
|
|
573
656
|
* @throws {@link Schematic.BadRequestError}
|
|
574
657
|
* @throws {@link Schematic.UnauthorizedError}
|
|
575
658
|
* @throws {@link Schematic.ForbiddenError}
|
|
659
|
+
* @throws {@link Schematic.NotFoundError}
|
|
576
660
|
* @throws {@link Schematic.InternalServerError}
|
|
577
661
|
*
|
|
578
662
|
* @example
|
|
579
663
|
* await client.entitlements.countCompanyOverrides()
|
|
580
664
|
*/
|
|
581
665
|
countCompanyOverrides(request = {}, requestOptions) {
|
|
582
|
-
|
|
583
|
-
|
|
666
|
+
return core.HttpResponsePromise.fromPromise(this.__countCompanyOverrides(request, requestOptions));
|
|
667
|
+
}
|
|
668
|
+
__countCompanyOverrides() {
|
|
669
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
670
|
+
var _a, _b, _c;
|
|
584
671
|
const { companyId, companyIds, featureId, featureIds, ids, withoutExpired, q, limit, offset } = request;
|
|
585
672
|
const _queryParams = {};
|
|
586
673
|
if (companyId != null) {
|
|
@@ -626,9 +713,9 @@ class Entitlements {
|
|
|
626
713
|
_queryParams["offset"] = offset.toString();
|
|
627
714
|
}
|
|
628
715
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
629
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
|
716
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, "company-overrides/count"),
|
|
630
717
|
method: "GET",
|
|
631
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
718
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.11", "User-Agent": "@schematichq/schematic-typescript-node/1.1.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
632
719
|
contentType: "application/json",
|
|
633
720
|
queryParameters: _queryParams,
|
|
634
721
|
requestType: "json",
|
|
@@ -637,13 +724,16 @@ class Entitlements {
|
|
|
637
724
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
638
725
|
});
|
|
639
726
|
if (_response.ok) {
|
|
640
|
-
return
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
727
|
+
return {
|
|
728
|
+
data: serializers.CountCompanyOverridesResponse.parseOrThrow(_response.body, {
|
|
729
|
+
unrecognizedObjectKeys: "passthrough",
|
|
730
|
+
allowUnrecognizedUnionMembers: true,
|
|
731
|
+
allowUnrecognizedEnumValues: true,
|
|
732
|
+
skipValidation: true,
|
|
733
|
+
breadcrumbsPrefix: ["response"],
|
|
734
|
+
}),
|
|
735
|
+
rawResponse: _response.rawResponse,
|
|
736
|
+
};
|
|
647
737
|
}
|
|
648
738
|
if (_response.error.reason === "status-code") {
|
|
649
739
|
switch (_response.error.statusCode) {
|
|
@@ -654,7 +744,7 @@ class Entitlements {
|
|
|
654
744
|
allowUnrecognizedEnumValues: true,
|
|
655
745
|
skipValidation: true,
|
|
656
746
|
breadcrumbsPrefix: ["response"],
|
|
657
|
-
}));
|
|
747
|
+
}), _response.rawResponse);
|
|
658
748
|
case 401:
|
|
659
749
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
660
750
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -662,7 +752,7 @@ class Entitlements {
|
|
|
662
752
|
allowUnrecognizedEnumValues: true,
|
|
663
753
|
skipValidation: true,
|
|
664
754
|
breadcrumbsPrefix: ["response"],
|
|
665
|
-
}));
|
|
755
|
+
}), _response.rawResponse);
|
|
666
756
|
case 403:
|
|
667
757
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
668
758
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -670,7 +760,15 @@ class Entitlements {
|
|
|
670
760
|
allowUnrecognizedEnumValues: true,
|
|
671
761
|
skipValidation: true,
|
|
672
762
|
breadcrumbsPrefix: ["response"],
|
|
673
|
-
}));
|
|
763
|
+
}), _response.rawResponse);
|
|
764
|
+
case 404:
|
|
765
|
+
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
766
|
+
unrecognizedObjectKeys: "passthrough",
|
|
767
|
+
allowUnrecognizedUnionMembers: true,
|
|
768
|
+
allowUnrecognizedEnumValues: true,
|
|
769
|
+
skipValidation: true,
|
|
770
|
+
breadcrumbsPrefix: ["response"],
|
|
771
|
+
}), _response.rawResponse);
|
|
674
772
|
case 500:
|
|
675
773
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
676
774
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -678,11 +776,12 @@ class Entitlements {
|
|
|
678
776
|
allowUnrecognizedEnumValues: true,
|
|
679
777
|
skipValidation: true,
|
|
680
778
|
breadcrumbsPrefix: ["response"],
|
|
681
|
-
}));
|
|
779
|
+
}), _response.rawResponse);
|
|
682
780
|
default:
|
|
683
781
|
throw new errors.SchematicError({
|
|
684
782
|
statusCode: _response.error.statusCode,
|
|
685
783
|
body: _response.error.body,
|
|
784
|
+
rawResponse: _response.rawResponse,
|
|
686
785
|
});
|
|
687
786
|
}
|
|
688
787
|
}
|
|
@@ -691,12 +790,14 @@ class Entitlements {
|
|
|
691
790
|
throw new errors.SchematicError({
|
|
692
791
|
statusCode: _response.error.statusCode,
|
|
693
792
|
body: _response.error.rawBody,
|
|
793
|
+
rawResponse: _response.rawResponse,
|
|
694
794
|
});
|
|
695
795
|
case "timeout":
|
|
696
|
-
throw new errors.SchematicTimeoutError();
|
|
796
|
+
throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /company-overrides/count.");
|
|
697
797
|
case "unknown":
|
|
698
798
|
throw new errors.SchematicError({
|
|
699
799
|
message: _response.error.errorMessage,
|
|
800
|
+
rawResponse: _response.rawResponse,
|
|
700
801
|
});
|
|
701
802
|
}
|
|
702
803
|
});
|
|
@@ -708,6 +809,7 @@ class Entitlements {
|
|
|
708
809
|
* @throws {@link Schematic.BadRequestError}
|
|
709
810
|
* @throws {@link Schematic.UnauthorizedError}
|
|
710
811
|
* @throws {@link Schematic.ForbiddenError}
|
|
812
|
+
* @throws {@link Schematic.NotFoundError}
|
|
711
813
|
* @throws {@link Schematic.InternalServerError}
|
|
712
814
|
*
|
|
713
815
|
* @example
|
|
@@ -716,8 +818,11 @@ class Entitlements {
|
|
|
716
818
|
* })
|
|
717
819
|
*/
|
|
718
820
|
listFeatureCompanies(request, requestOptions) {
|
|
719
|
-
|
|
821
|
+
return core.HttpResponsePromise.fromPromise(this.__listFeatureCompanies(request, requestOptions));
|
|
822
|
+
}
|
|
823
|
+
__listFeatureCompanies(request, requestOptions) {
|
|
720
824
|
return __awaiter(this, void 0, void 0, function* () {
|
|
825
|
+
var _a, _b, _c;
|
|
721
826
|
const { featureId, q, limit, offset } = request;
|
|
722
827
|
const _queryParams = {};
|
|
723
828
|
_queryParams["feature_id"] = featureId;
|
|
@@ -731,9 +836,9 @@ class Entitlements {
|
|
|
731
836
|
_queryParams["offset"] = offset.toString();
|
|
732
837
|
}
|
|
733
838
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
734
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
|
839
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, "feature-companies"),
|
|
735
840
|
method: "GET",
|
|
736
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
841
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.11", "User-Agent": "@schematichq/schematic-typescript-node/1.1.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
737
842
|
contentType: "application/json",
|
|
738
843
|
queryParameters: _queryParams,
|
|
739
844
|
requestType: "json",
|
|
@@ -742,13 +847,16 @@ class Entitlements {
|
|
|
742
847
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
743
848
|
});
|
|
744
849
|
if (_response.ok) {
|
|
745
|
-
return
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
850
|
+
return {
|
|
851
|
+
data: serializers.ListFeatureCompaniesResponse.parseOrThrow(_response.body, {
|
|
852
|
+
unrecognizedObjectKeys: "passthrough",
|
|
853
|
+
allowUnrecognizedUnionMembers: true,
|
|
854
|
+
allowUnrecognizedEnumValues: true,
|
|
855
|
+
skipValidation: true,
|
|
856
|
+
breadcrumbsPrefix: ["response"],
|
|
857
|
+
}),
|
|
858
|
+
rawResponse: _response.rawResponse,
|
|
859
|
+
};
|
|
752
860
|
}
|
|
753
861
|
if (_response.error.reason === "status-code") {
|
|
754
862
|
switch (_response.error.statusCode) {
|
|
@@ -759,7 +867,7 @@ class Entitlements {
|
|
|
759
867
|
allowUnrecognizedEnumValues: true,
|
|
760
868
|
skipValidation: true,
|
|
761
869
|
breadcrumbsPrefix: ["response"],
|
|
762
|
-
}));
|
|
870
|
+
}), _response.rawResponse);
|
|
763
871
|
case 401:
|
|
764
872
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
765
873
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -767,7 +875,7 @@ class Entitlements {
|
|
|
767
875
|
allowUnrecognizedEnumValues: true,
|
|
768
876
|
skipValidation: true,
|
|
769
877
|
breadcrumbsPrefix: ["response"],
|
|
770
|
-
}));
|
|
878
|
+
}), _response.rawResponse);
|
|
771
879
|
case 403:
|
|
772
880
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
773
881
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -775,7 +883,15 @@ class Entitlements {
|
|
|
775
883
|
allowUnrecognizedEnumValues: true,
|
|
776
884
|
skipValidation: true,
|
|
777
885
|
breadcrumbsPrefix: ["response"],
|
|
778
|
-
}));
|
|
886
|
+
}), _response.rawResponse);
|
|
887
|
+
case 404:
|
|
888
|
+
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
889
|
+
unrecognizedObjectKeys: "passthrough",
|
|
890
|
+
allowUnrecognizedUnionMembers: true,
|
|
891
|
+
allowUnrecognizedEnumValues: true,
|
|
892
|
+
skipValidation: true,
|
|
893
|
+
breadcrumbsPrefix: ["response"],
|
|
894
|
+
}), _response.rawResponse);
|
|
779
895
|
case 500:
|
|
780
896
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
781
897
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -783,11 +899,12 @@ class Entitlements {
|
|
|
783
899
|
allowUnrecognizedEnumValues: true,
|
|
784
900
|
skipValidation: true,
|
|
785
901
|
breadcrumbsPrefix: ["response"],
|
|
786
|
-
}));
|
|
902
|
+
}), _response.rawResponse);
|
|
787
903
|
default:
|
|
788
904
|
throw new errors.SchematicError({
|
|
789
905
|
statusCode: _response.error.statusCode,
|
|
790
906
|
body: _response.error.body,
|
|
907
|
+
rawResponse: _response.rawResponse,
|
|
791
908
|
});
|
|
792
909
|
}
|
|
793
910
|
}
|
|
@@ -796,12 +913,14 @@ class Entitlements {
|
|
|
796
913
|
throw new errors.SchematicError({
|
|
797
914
|
statusCode: _response.error.statusCode,
|
|
798
915
|
body: _response.error.rawBody,
|
|
916
|
+
rawResponse: _response.rawResponse,
|
|
799
917
|
});
|
|
800
918
|
case "timeout":
|
|
801
|
-
throw new errors.SchematicTimeoutError();
|
|
919
|
+
throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /feature-companies.");
|
|
802
920
|
case "unknown":
|
|
803
921
|
throw new errors.SchematicError({
|
|
804
922
|
message: _response.error.errorMessage,
|
|
923
|
+
rawResponse: _response.rawResponse,
|
|
805
924
|
});
|
|
806
925
|
}
|
|
807
926
|
});
|
|
@@ -813,6 +932,7 @@ class Entitlements {
|
|
|
813
932
|
* @throws {@link Schematic.BadRequestError}
|
|
814
933
|
* @throws {@link Schematic.UnauthorizedError}
|
|
815
934
|
* @throws {@link Schematic.ForbiddenError}
|
|
935
|
+
* @throws {@link Schematic.NotFoundError}
|
|
816
936
|
* @throws {@link Schematic.InternalServerError}
|
|
817
937
|
*
|
|
818
938
|
* @example
|
|
@@ -821,8 +941,11 @@ class Entitlements {
|
|
|
821
941
|
* })
|
|
822
942
|
*/
|
|
823
943
|
countFeatureCompanies(request, requestOptions) {
|
|
824
|
-
|
|
944
|
+
return core.HttpResponsePromise.fromPromise(this.__countFeatureCompanies(request, requestOptions));
|
|
945
|
+
}
|
|
946
|
+
__countFeatureCompanies(request, requestOptions) {
|
|
825
947
|
return __awaiter(this, void 0, void 0, function* () {
|
|
948
|
+
var _a, _b, _c;
|
|
826
949
|
const { featureId, q, limit, offset } = request;
|
|
827
950
|
const _queryParams = {};
|
|
828
951
|
_queryParams["feature_id"] = featureId;
|
|
@@ -836,9 +959,9 @@ class Entitlements {
|
|
|
836
959
|
_queryParams["offset"] = offset.toString();
|
|
837
960
|
}
|
|
838
961
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
839
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
|
962
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, "feature-companies/count"),
|
|
840
963
|
method: "GET",
|
|
841
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
964
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.11", "User-Agent": "@schematichq/schematic-typescript-node/1.1.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
842
965
|
contentType: "application/json",
|
|
843
966
|
queryParameters: _queryParams,
|
|
844
967
|
requestType: "json",
|
|
@@ -847,13 +970,16 @@ class Entitlements {
|
|
|
847
970
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
848
971
|
});
|
|
849
972
|
if (_response.ok) {
|
|
850
|
-
return
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
973
|
+
return {
|
|
974
|
+
data: serializers.CountFeatureCompaniesResponse.parseOrThrow(_response.body, {
|
|
975
|
+
unrecognizedObjectKeys: "passthrough",
|
|
976
|
+
allowUnrecognizedUnionMembers: true,
|
|
977
|
+
allowUnrecognizedEnumValues: true,
|
|
978
|
+
skipValidation: true,
|
|
979
|
+
breadcrumbsPrefix: ["response"],
|
|
980
|
+
}),
|
|
981
|
+
rawResponse: _response.rawResponse,
|
|
982
|
+
};
|
|
857
983
|
}
|
|
858
984
|
if (_response.error.reason === "status-code") {
|
|
859
985
|
switch (_response.error.statusCode) {
|
|
@@ -864,7 +990,7 @@ class Entitlements {
|
|
|
864
990
|
allowUnrecognizedEnumValues: true,
|
|
865
991
|
skipValidation: true,
|
|
866
992
|
breadcrumbsPrefix: ["response"],
|
|
867
|
-
}));
|
|
993
|
+
}), _response.rawResponse);
|
|
868
994
|
case 401:
|
|
869
995
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
870
996
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -872,7 +998,7 @@ class Entitlements {
|
|
|
872
998
|
allowUnrecognizedEnumValues: true,
|
|
873
999
|
skipValidation: true,
|
|
874
1000
|
breadcrumbsPrefix: ["response"],
|
|
875
|
-
}));
|
|
1001
|
+
}), _response.rawResponse);
|
|
876
1002
|
case 403:
|
|
877
1003
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
878
1004
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -880,7 +1006,15 @@ class Entitlements {
|
|
|
880
1006
|
allowUnrecognizedEnumValues: true,
|
|
881
1007
|
skipValidation: true,
|
|
882
1008
|
breadcrumbsPrefix: ["response"],
|
|
883
|
-
}));
|
|
1009
|
+
}), _response.rawResponse);
|
|
1010
|
+
case 404:
|
|
1011
|
+
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1012
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1013
|
+
allowUnrecognizedUnionMembers: true,
|
|
1014
|
+
allowUnrecognizedEnumValues: true,
|
|
1015
|
+
skipValidation: true,
|
|
1016
|
+
breadcrumbsPrefix: ["response"],
|
|
1017
|
+
}), _response.rawResponse);
|
|
884
1018
|
case 500:
|
|
885
1019
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
886
1020
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -888,11 +1022,12 @@ class Entitlements {
|
|
|
888
1022
|
allowUnrecognizedEnumValues: true,
|
|
889
1023
|
skipValidation: true,
|
|
890
1024
|
breadcrumbsPrefix: ["response"],
|
|
891
|
-
}));
|
|
1025
|
+
}), _response.rawResponse);
|
|
892
1026
|
default:
|
|
893
1027
|
throw new errors.SchematicError({
|
|
894
1028
|
statusCode: _response.error.statusCode,
|
|
895
1029
|
body: _response.error.body,
|
|
1030
|
+
rawResponse: _response.rawResponse,
|
|
896
1031
|
});
|
|
897
1032
|
}
|
|
898
1033
|
}
|
|
@@ -901,12 +1036,14 @@ class Entitlements {
|
|
|
901
1036
|
throw new errors.SchematicError({
|
|
902
1037
|
statusCode: _response.error.statusCode,
|
|
903
1038
|
body: _response.error.rawBody,
|
|
1039
|
+
rawResponse: _response.rawResponse,
|
|
904
1040
|
});
|
|
905
1041
|
case "timeout":
|
|
906
|
-
throw new errors.SchematicTimeoutError();
|
|
1042
|
+
throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /feature-companies/count.");
|
|
907
1043
|
case "unknown":
|
|
908
1044
|
throw new errors.SchematicError({
|
|
909
1045
|
message: _response.error.errorMessage,
|
|
1046
|
+
rawResponse: _response.rawResponse,
|
|
910
1047
|
});
|
|
911
1048
|
}
|
|
912
1049
|
});
|
|
@@ -918,21 +1055,25 @@ class Entitlements {
|
|
|
918
1055
|
* @throws {@link Schematic.BadRequestError}
|
|
919
1056
|
* @throws {@link Schematic.UnauthorizedError}
|
|
920
1057
|
* @throws {@link Schematic.ForbiddenError}
|
|
1058
|
+
* @throws {@link Schematic.NotFoundError}
|
|
921
1059
|
* @throws {@link Schematic.InternalServerError}
|
|
922
1060
|
*
|
|
923
1061
|
* @example
|
|
924
1062
|
* await client.entitlements.listFeatureUsage()
|
|
925
1063
|
*/
|
|
926
1064
|
listFeatureUsage(request = {}, requestOptions) {
|
|
927
|
-
|
|
928
|
-
|
|
1065
|
+
return core.HttpResponsePromise.fromPromise(this.__listFeatureUsage(request, requestOptions));
|
|
1066
|
+
}
|
|
1067
|
+
__listFeatureUsage() {
|
|
1068
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
1069
|
+
var _a, _b, _c;
|
|
929
1070
|
const { companyId, companyKeys, featureIds, q, withoutNegativeEntitlements, limit, offset } = request;
|
|
930
1071
|
const _queryParams = {};
|
|
931
1072
|
if (companyId != null) {
|
|
932
1073
|
_queryParams["company_id"] = companyId;
|
|
933
1074
|
}
|
|
934
1075
|
if (companyKeys != null) {
|
|
935
|
-
_queryParams["company_keys"] =
|
|
1076
|
+
_queryParams["company_keys"] = (0, json_1.toJson)(companyKeys);
|
|
936
1077
|
}
|
|
937
1078
|
if (featureIds != null) {
|
|
938
1079
|
if (Array.isArray(featureIds)) {
|
|
@@ -955,9 +1096,9 @@ class Entitlements {
|
|
|
955
1096
|
_queryParams["offset"] = offset.toString();
|
|
956
1097
|
}
|
|
957
1098
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
958
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
|
1099
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, "feature-usage"),
|
|
959
1100
|
method: "GET",
|
|
960
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
1101
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.11", "User-Agent": "@schematichq/schematic-typescript-node/1.1.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
961
1102
|
contentType: "application/json",
|
|
962
1103
|
queryParameters: _queryParams,
|
|
963
1104
|
requestType: "json",
|
|
@@ -966,13 +1107,16 @@ class Entitlements {
|
|
|
966
1107
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
967
1108
|
});
|
|
968
1109
|
if (_response.ok) {
|
|
969
|
-
return
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
1110
|
+
return {
|
|
1111
|
+
data: serializers.ListFeatureUsageResponse.parseOrThrow(_response.body, {
|
|
1112
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1113
|
+
allowUnrecognizedUnionMembers: true,
|
|
1114
|
+
allowUnrecognizedEnumValues: true,
|
|
1115
|
+
skipValidation: true,
|
|
1116
|
+
breadcrumbsPrefix: ["response"],
|
|
1117
|
+
}),
|
|
1118
|
+
rawResponse: _response.rawResponse,
|
|
1119
|
+
};
|
|
976
1120
|
}
|
|
977
1121
|
if (_response.error.reason === "status-code") {
|
|
978
1122
|
switch (_response.error.statusCode) {
|
|
@@ -983,7 +1127,7 @@ class Entitlements {
|
|
|
983
1127
|
allowUnrecognizedEnumValues: true,
|
|
984
1128
|
skipValidation: true,
|
|
985
1129
|
breadcrumbsPrefix: ["response"],
|
|
986
|
-
}));
|
|
1130
|
+
}), _response.rawResponse);
|
|
987
1131
|
case 401:
|
|
988
1132
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
989
1133
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -991,7 +1135,7 @@ class Entitlements {
|
|
|
991
1135
|
allowUnrecognizedEnumValues: true,
|
|
992
1136
|
skipValidation: true,
|
|
993
1137
|
breadcrumbsPrefix: ["response"],
|
|
994
|
-
}));
|
|
1138
|
+
}), _response.rawResponse);
|
|
995
1139
|
case 403:
|
|
996
1140
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
997
1141
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -999,7 +1143,15 @@ class Entitlements {
|
|
|
999
1143
|
allowUnrecognizedEnumValues: true,
|
|
1000
1144
|
skipValidation: true,
|
|
1001
1145
|
breadcrumbsPrefix: ["response"],
|
|
1002
|
-
}));
|
|
1146
|
+
}), _response.rawResponse);
|
|
1147
|
+
case 404:
|
|
1148
|
+
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1149
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1150
|
+
allowUnrecognizedUnionMembers: true,
|
|
1151
|
+
allowUnrecognizedEnumValues: true,
|
|
1152
|
+
skipValidation: true,
|
|
1153
|
+
breadcrumbsPrefix: ["response"],
|
|
1154
|
+
}), _response.rawResponse);
|
|
1003
1155
|
case 500:
|
|
1004
1156
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1005
1157
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1007,11 +1159,12 @@ class Entitlements {
|
|
|
1007
1159
|
allowUnrecognizedEnumValues: true,
|
|
1008
1160
|
skipValidation: true,
|
|
1009
1161
|
breadcrumbsPrefix: ["response"],
|
|
1010
|
-
}));
|
|
1162
|
+
}), _response.rawResponse);
|
|
1011
1163
|
default:
|
|
1012
1164
|
throw new errors.SchematicError({
|
|
1013
1165
|
statusCode: _response.error.statusCode,
|
|
1014
1166
|
body: _response.error.body,
|
|
1167
|
+
rawResponse: _response.rawResponse,
|
|
1015
1168
|
});
|
|
1016
1169
|
}
|
|
1017
1170
|
}
|
|
@@ -1020,12 +1173,14 @@ class Entitlements {
|
|
|
1020
1173
|
throw new errors.SchematicError({
|
|
1021
1174
|
statusCode: _response.error.statusCode,
|
|
1022
1175
|
body: _response.error.rawBody,
|
|
1176
|
+
rawResponse: _response.rawResponse,
|
|
1023
1177
|
});
|
|
1024
1178
|
case "timeout":
|
|
1025
|
-
throw new errors.SchematicTimeoutError();
|
|
1179
|
+
throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /feature-usage.");
|
|
1026
1180
|
case "unknown":
|
|
1027
1181
|
throw new errors.SchematicError({
|
|
1028
1182
|
message: _response.error.errorMessage,
|
|
1183
|
+
rawResponse: _response.rawResponse,
|
|
1029
1184
|
});
|
|
1030
1185
|
}
|
|
1031
1186
|
});
|
|
@@ -1037,21 +1192,25 @@ class Entitlements {
|
|
|
1037
1192
|
* @throws {@link Schematic.BadRequestError}
|
|
1038
1193
|
* @throws {@link Schematic.UnauthorizedError}
|
|
1039
1194
|
* @throws {@link Schematic.ForbiddenError}
|
|
1195
|
+
* @throws {@link Schematic.NotFoundError}
|
|
1040
1196
|
* @throws {@link Schematic.InternalServerError}
|
|
1041
1197
|
*
|
|
1042
1198
|
* @example
|
|
1043
1199
|
* await client.entitlements.countFeatureUsage()
|
|
1044
1200
|
*/
|
|
1045
1201
|
countFeatureUsage(request = {}, requestOptions) {
|
|
1046
|
-
|
|
1047
|
-
|
|
1202
|
+
return core.HttpResponsePromise.fromPromise(this.__countFeatureUsage(request, requestOptions));
|
|
1203
|
+
}
|
|
1204
|
+
__countFeatureUsage() {
|
|
1205
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
1206
|
+
var _a, _b, _c;
|
|
1048
1207
|
const { companyId, companyKeys, featureIds, q, withoutNegativeEntitlements, limit, offset } = request;
|
|
1049
1208
|
const _queryParams = {};
|
|
1050
1209
|
if (companyId != null) {
|
|
1051
1210
|
_queryParams["company_id"] = companyId;
|
|
1052
1211
|
}
|
|
1053
1212
|
if (companyKeys != null) {
|
|
1054
|
-
_queryParams["company_keys"] =
|
|
1213
|
+
_queryParams["company_keys"] = (0, json_1.toJson)(companyKeys);
|
|
1055
1214
|
}
|
|
1056
1215
|
if (featureIds != null) {
|
|
1057
1216
|
if (Array.isArray(featureIds)) {
|
|
@@ -1074,9 +1233,9 @@ class Entitlements {
|
|
|
1074
1233
|
_queryParams["offset"] = offset.toString();
|
|
1075
1234
|
}
|
|
1076
1235
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1077
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
|
1236
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, "feature-usage/count"),
|
|
1078
1237
|
method: "GET",
|
|
1079
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
1238
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.11", "User-Agent": "@schematichq/schematic-typescript-node/1.1.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1080
1239
|
contentType: "application/json",
|
|
1081
1240
|
queryParameters: _queryParams,
|
|
1082
1241
|
requestType: "json",
|
|
@@ -1085,13 +1244,16 @@ class Entitlements {
|
|
|
1085
1244
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1086
1245
|
});
|
|
1087
1246
|
if (_response.ok) {
|
|
1088
|
-
return
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1247
|
+
return {
|
|
1248
|
+
data: serializers.CountFeatureUsageResponse.parseOrThrow(_response.body, {
|
|
1249
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1250
|
+
allowUnrecognizedUnionMembers: true,
|
|
1251
|
+
allowUnrecognizedEnumValues: true,
|
|
1252
|
+
skipValidation: true,
|
|
1253
|
+
breadcrumbsPrefix: ["response"],
|
|
1254
|
+
}),
|
|
1255
|
+
rawResponse: _response.rawResponse,
|
|
1256
|
+
};
|
|
1095
1257
|
}
|
|
1096
1258
|
if (_response.error.reason === "status-code") {
|
|
1097
1259
|
switch (_response.error.statusCode) {
|
|
@@ -1102,7 +1264,7 @@ class Entitlements {
|
|
|
1102
1264
|
allowUnrecognizedEnumValues: true,
|
|
1103
1265
|
skipValidation: true,
|
|
1104
1266
|
breadcrumbsPrefix: ["response"],
|
|
1105
|
-
}));
|
|
1267
|
+
}), _response.rawResponse);
|
|
1106
1268
|
case 401:
|
|
1107
1269
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1108
1270
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1110,7 +1272,7 @@ class Entitlements {
|
|
|
1110
1272
|
allowUnrecognizedEnumValues: true,
|
|
1111
1273
|
skipValidation: true,
|
|
1112
1274
|
breadcrumbsPrefix: ["response"],
|
|
1113
|
-
}));
|
|
1275
|
+
}), _response.rawResponse);
|
|
1114
1276
|
case 403:
|
|
1115
1277
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1116
1278
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1118,7 +1280,15 @@ class Entitlements {
|
|
|
1118
1280
|
allowUnrecognizedEnumValues: true,
|
|
1119
1281
|
skipValidation: true,
|
|
1120
1282
|
breadcrumbsPrefix: ["response"],
|
|
1121
|
-
}));
|
|
1283
|
+
}), _response.rawResponse);
|
|
1284
|
+
case 404:
|
|
1285
|
+
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1286
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1287
|
+
allowUnrecognizedUnionMembers: true,
|
|
1288
|
+
allowUnrecognizedEnumValues: true,
|
|
1289
|
+
skipValidation: true,
|
|
1290
|
+
breadcrumbsPrefix: ["response"],
|
|
1291
|
+
}), _response.rawResponse);
|
|
1122
1292
|
case 500:
|
|
1123
1293
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1124
1294
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1126,11 +1296,12 @@ class Entitlements {
|
|
|
1126
1296
|
allowUnrecognizedEnumValues: true,
|
|
1127
1297
|
skipValidation: true,
|
|
1128
1298
|
breadcrumbsPrefix: ["response"],
|
|
1129
|
-
}));
|
|
1299
|
+
}), _response.rawResponse);
|
|
1130
1300
|
default:
|
|
1131
1301
|
throw new errors.SchematicError({
|
|
1132
1302
|
statusCode: _response.error.statusCode,
|
|
1133
1303
|
body: _response.error.body,
|
|
1304
|
+
rawResponse: _response.rawResponse,
|
|
1134
1305
|
});
|
|
1135
1306
|
}
|
|
1136
1307
|
}
|
|
@@ -1139,12 +1310,14 @@ class Entitlements {
|
|
|
1139
1310
|
throw new errors.SchematicError({
|
|
1140
1311
|
statusCode: _response.error.statusCode,
|
|
1141
1312
|
body: _response.error.rawBody,
|
|
1313
|
+
rawResponse: _response.rawResponse,
|
|
1142
1314
|
});
|
|
1143
1315
|
case "timeout":
|
|
1144
|
-
throw new errors.SchematicTimeoutError();
|
|
1316
|
+
throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /feature-usage/count.");
|
|
1145
1317
|
case "unknown":
|
|
1146
1318
|
throw new errors.SchematicError({
|
|
1147
1319
|
message: _response.error.errorMessage,
|
|
1320
|
+
rawResponse: _response.rawResponse,
|
|
1148
1321
|
});
|
|
1149
1322
|
}
|
|
1150
1323
|
});
|
|
@@ -1156,6 +1329,7 @@ class Entitlements {
|
|
|
1156
1329
|
* @throws {@link Schematic.BadRequestError}
|
|
1157
1330
|
* @throws {@link Schematic.UnauthorizedError}
|
|
1158
1331
|
* @throws {@link Schematic.ForbiddenError}
|
|
1332
|
+
* @throws {@link Schematic.NotFoundError}
|
|
1159
1333
|
* @throws {@link Schematic.InternalServerError}
|
|
1160
1334
|
*
|
|
1161
1335
|
* @example
|
|
@@ -1164,8 +1338,11 @@ class Entitlements {
|
|
|
1164
1338
|
* })
|
|
1165
1339
|
*/
|
|
1166
1340
|
listFeatureUsers(request, requestOptions) {
|
|
1167
|
-
|
|
1341
|
+
return core.HttpResponsePromise.fromPromise(this.__listFeatureUsers(request, requestOptions));
|
|
1342
|
+
}
|
|
1343
|
+
__listFeatureUsers(request, requestOptions) {
|
|
1168
1344
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1345
|
+
var _a, _b, _c;
|
|
1169
1346
|
const { featureId, q, limit, offset } = request;
|
|
1170
1347
|
const _queryParams = {};
|
|
1171
1348
|
_queryParams["feature_id"] = featureId;
|
|
@@ -1179,9 +1356,9 @@ class Entitlements {
|
|
|
1179
1356
|
_queryParams["offset"] = offset.toString();
|
|
1180
1357
|
}
|
|
1181
1358
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1182
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
|
1359
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, "feature-users"),
|
|
1183
1360
|
method: "GET",
|
|
1184
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
1361
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.11", "User-Agent": "@schematichq/schematic-typescript-node/1.1.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1185
1362
|
contentType: "application/json",
|
|
1186
1363
|
queryParameters: _queryParams,
|
|
1187
1364
|
requestType: "json",
|
|
@@ -1190,13 +1367,16 @@ class Entitlements {
|
|
|
1190
1367
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1191
1368
|
});
|
|
1192
1369
|
if (_response.ok) {
|
|
1193
|
-
return
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1370
|
+
return {
|
|
1371
|
+
data: serializers.ListFeatureUsersResponse.parseOrThrow(_response.body, {
|
|
1372
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1373
|
+
allowUnrecognizedUnionMembers: true,
|
|
1374
|
+
allowUnrecognizedEnumValues: true,
|
|
1375
|
+
skipValidation: true,
|
|
1376
|
+
breadcrumbsPrefix: ["response"],
|
|
1377
|
+
}),
|
|
1378
|
+
rawResponse: _response.rawResponse,
|
|
1379
|
+
};
|
|
1200
1380
|
}
|
|
1201
1381
|
if (_response.error.reason === "status-code") {
|
|
1202
1382
|
switch (_response.error.statusCode) {
|
|
@@ -1207,7 +1387,7 @@ class Entitlements {
|
|
|
1207
1387
|
allowUnrecognizedEnumValues: true,
|
|
1208
1388
|
skipValidation: true,
|
|
1209
1389
|
breadcrumbsPrefix: ["response"],
|
|
1210
|
-
}));
|
|
1390
|
+
}), _response.rawResponse);
|
|
1211
1391
|
case 401:
|
|
1212
1392
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1213
1393
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1215,7 +1395,7 @@ class Entitlements {
|
|
|
1215
1395
|
allowUnrecognizedEnumValues: true,
|
|
1216
1396
|
skipValidation: true,
|
|
1217
1397
|
breadcrumbsPrefix: ["response"],
|
|
1218
|
-
}));
|
|
1398
|
+
}), _response.rawResponse);
|
|
1219
1399
|
case 403:
|
|
1220
1400
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1221
1401
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1223,7 +1403,15 @@ class Entitlements {
|
|
|
1223
1403
|
allowUnrecognizedEnumValues: true,
|
|
1224
1404
|
skipValidation: true,
|
|
1225
1405
|
breadcrumbsPrefix: ["response"],
|
|
1226
|
-
}));
|
|
1406
|
+
}), _response.rawResponse);
|
|
1407
|
+
case 404:
|
|
1408
|
+
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1409
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1410
|
+
allowUnrecognizedUnionMembers: true,
|
|
1411
|
+
allowUnrecognizedEnumValues: true,
|
|
1412
|
+
skipValidation: true,
|
|
1413
|
+
breadcrumbsPrefix: ["response"],
|
|
1414
|
+
}), _response.rawResponse);
|
|
1227
1415
|
case 500:
|
|
1228
1416
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1229
1417
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1231,11 +1419,12 @@ class Entitlements {
|
|
|
1231
1419
|
allowUnrecognizedEnumValues: true,
|
|
1232
1420
|
skipValidation: true,
|
|
1233
1421
|
breadcrumbsPrefix: ["response"],
|
|
1234
|
-
}));
|
|
1422
|
+
}), _response.rawResponse);
|
|
1235
1423
|
default:
|
|
1236
1424
|
throw new errors.SchematicError({
|
|
1237
1425
|
statusCode: _response.error.statusCode,
|
|
1238
1426
|
body: _response.error.body,
|
|
1427
|
+
rawResponse: _response.rawResponse,
|
|
1239
1428
|
});
|
|
1240
1429
|
}
|
|
1241
1430
|
}
|
|
@@ -1244,12 +1433,14 @@ class Entitlements {
|
|
|
1244
1433
|
throw new errors.SchematicError({
|
|
1245
1434
|
statusCode: _response.error.statusCode,
|
|
1246
1435
|
body: _response.error.rawBody,
|
|
1436
|
+
rawResponse: _response.rawResponse,
|
|
1247
1437
|
});
|
|
1248
1438
|
case "timeout":
|
|
1249
|
-
throw new errors.SchematicTimeoutError();
|
|
1439
|
+
throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /feature-users.");
|
|
1250
1440
|
case "unknown":
|
|
1251
1441
|
throw new errors.SchematicError({
|
|
1252
1442
|
message: _response.error.errorMessage,
|
|
1443
|
+
rawResponse: _response.rawResponse,
|
|
1253
1444
|
});
|
|
1254
1445
|
}
|
|
1255
1446
|
});
|
|
@@ -1261,6 +1452,7 @@ class Entitlements {
|
|
|
1261
1452
|
* @throws {@link Schematic.BadRequestError}
|
|
1262
1453
|
* @throws {@link Schematic.UnauthorizedError}
|
|
1263
1454
|
* @throws {@link Schematic.ForbiddenError}
|
|
1455
|
+
* @throws {@link Schematic.NotFoundError}
|
|
1264
1456
|
* @throws {@link Schematic.InternalServerError}
|
|
1265
1457
|
*
|
|
1266
1458
|
* @example
|
|
@@ -1269,8 +1461,11 @@ class Entitlements {
|
|
|
1269
1461
|
* })
|
|
1270
1462
|
*/
|
|
1271
1463
|
countFeatureUsers(request, requestOptions) {
|
|
1272
|
-
|
|
1464
|
+
return core.HttpResponsePromise.fromPromise(this.__countFeatureUsers(request, requestOptions));
|
|
1465
|
+
}
|
|
1466
|
+
__countFeatureUsers(request, requestOptions) {
|
|
1273
1467
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1468
|
+
var _a, _b, _c;
|
|
1274
1469
|
const { featureId, q, limit, offset } = request;
|
|
1275
1470
|
const _queryParams = {};
|
|
1276
1471
|
_queryParams["feature_id"] = featureId;
|
|
@@ -1284,9 +1479,9 @@ class Entitlements {
|
|
|
1284
1479
|
_queryParams["offset"] = offset.toString();
|
|
1285
1480
|
}
|
|
1286
1481
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1287
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
|
1482
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, "feature-users/count"),
|
|
1288
1483
|
method: "GET",
|
|
1289
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
1484
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.11", "User-Agent": "@schematichq/schematic-typescript-node/1.1.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1290
1485
|
contentType: "application/json",
|
|
1291
1486
|
queryParameters: _queryParams,
|
|
1292
1487
|
requestType: "json",
|
|
@@ -1295,13 +1490,16 @@ class Entitlements {
|
|
|
1295
1490
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1296
1491
|
});
|
|
1297
1492
|
if (_response.ok) {
|
|
1298
|
-
return
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1493
|
+
return {
|
|
1494
|
+
data: serializers.CountFeatureUsersResponse.parseOrThrow(_response.body, {
|
|
1495
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1496
|
+
allowUnrecognizedUnionMembers: true,
|
|
1497
|
+
allowUnrecognizedEnumValues: true,
|
|
1498
|
+
skipValidation: true,
|
|
1499
|
+
breadcrumbsPrefix: ["response"],
|
|
1500
|
+
}),
|
|
1501
|
+
rawResponse: _response.rawResponse,
|
|
1502
|
+
};
|
|
1305
1503
|
}
|
|
1306
1504
|
if (_response.error.reason === "status-code") {
|
|
1307
1505
|
switch (_response.error.statusCode) {
|
|
@@ -1312,7 +1510,7 @@ class Entitlements {
|
|
|
1312
1510
|
allowUnrecognizedEnumValues: true,
|
|
1313
1511
|
skipValidation: true,
|
|
1314
1512
|
breadcrumbsPrefix: ["response"],
|
|
1315
|
-
}));
|
|
1513
|
+
}), _response.rawResponse);
|
|
1316
1514
|
case 401:
|
|
1317
1515
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1318
1516
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1320,7 +1518,7 @@ class Entitlements {
|
|
|
1320
1518
|
allowUnrecognizedEnumValues: true,
|
|
1321
1519
|
skipValidation: true,
|
|
1322
1520
|
breadcrumbsPrefix: ["response"],
|
|
1323
|
-
}));
|
|
1521
|
+
}), _response.rawResponse);
|
|
1324
1522
|
case 403:
|
|
1325
1523
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1326
1524
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1328,7 +1526,15 @@ class Entitlements {
|
|
|
1328
1526
|
allowUnrecognizedEnumValues: true,
|
|
1329
1527
|
skipValidation: true,
|
|
1330
1528
|
breadcrumbsPrefix: ["response"],
|
|
1331
|
-
}));
|
|
1529
|
+
}), _response.rawResponse);
|
|
1530
|
+
case 404:
|
|
1531
|
+
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1532
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1533
|
+
allowUnrecognizedUnionMembers: true,
|
|
1534
|
+
allowUnrecognizedEnumValues: true,
|
|
1535
|
+
skipValidation: true,
|
|
1536
|
+
breadcrumbsPrefix: ["response"],
|
|
1537
|
+
}), _response.rawResponse);
|
|
1332
1538
|
case 500:
|
|
1333
1539
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1334
1540
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1336,11 +1542,12 @@ class Entitlements {
|
|
|
1336
1542
|
allowUnrecognizedEnumValues: true,
|
|
1337
1543
|
skipValidation: true,
|
|
1338
1544
|
breadcrumbsPrefix: ["response"],
|
|
1339
|
-
}));
|
|
1545
|
+
}), _response.rawResponse);
|
|
1340
1546
|
default:
|
|
1341
1547
|
throw new errors.SchematicError({
|
|
1342
1548
|
statusCode: _response.error.statusCode,
|
|
1343
1549
|
body: _response.error.body,
|
|
1550
|
+
rawResponse: _response.rawResponse,
|
|
1344
1551
|
});
|
|
1345
1552
|
}
|
|
1346
1553
|
}
|
|
@@ -1349,12 +1556,14 @@ class Entitlements {
|
|
|
1349
1556
|
throw new errors.SchematicError({
|
|
1350
1557
|
statusCode: _response.error.statusCode,
|
|
1351
1558
|
body: _response.error.rawBody,
|
|
1559
|
+
rawResponse: _response.rawResponse,
|
|
1352
1560
|
});
|
|
1353
1561
|
case "timeout":
|
|
1354
|
-
throw new errors.SchematicTimeoutError();
|
|
1562
|
+
throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /feature-users/count.");
|
|
1355
1563
|
case "unknown":
|
|
1356
1564
|
throw new errors.SchematicError({
|
|
1357
1565
|
message: _response.error.errorMessage,
|
|
1566
|
+
rawResponse: _response.rawResponse,
|
|
1358
1567
|
});
|
|
1359
1568
|
}
|
|
1360
1569
|
});
|
|
@@ -1366,14 +1575,18 @@ class Entitlements {
|
|
|
1366
1575
|
* @throws {@link Schematic.BadRequestError}
|
|
1367
1576
|
* @throws {@link Schematic.UnauthorizedError}
|
|
1368
1577
|
* @throws {@link Schematic.ForbiddenError}
|
|
1578
|
+
* @throws {@link Schematic.NotFoundError}
|
|
1369
1579
|
* @throws {@link Schematic.InternalServerError}
|
|
1370
1580
|
*
|
|
1371
1581
|
* @example
|
|
1372
1582
|
* await client.entitlements.listPlanEntitlements()
|
|
1373
1583
|
*/
|
|
1374
1584
|
listPlanEntitlements(request = {}, requestOptions) {
|
|
1375
|
-
|
|
1376
|
-
|
|
1585
|
+
return core.HttpResponsePromise.fromPromise(this.__listPlanEntitlements(request, requestOptions));
|
|
1586
|
+
}
|
|
1587
|
+
__listPlanEntitlements() {
|
|
1588
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
1589
|
+
var _a, _b, _c;
|
|
1377
1590
|
const { featureId, featureIds, ids, planId, planIds, q, withMeteredProducts, limit, offset } = request;
|
|
1378
1591
|
const _queryParams = {};
|
|
1379
1592
|
if (featureId != null) {
|
|
@@ -1419,9 +1632,9 @@ class Entitlements {
|
|
|
1419
1632
|
_queryParams["offset"] = offset.toString();
|
|
1420
1633
|
}
|
|
1421
1634
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1422
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
|
1635
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, "plan-entitlements"),
|
|
1423
1636
|
method: "GET",
|
|
1424
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
1637
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.11", "User-Agent": "@schematichq/schematic-typescript-node/1.1.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1425
1638
|
contentType: "application/json",
|
|
1426
1639
|
queryParameters: _queryParams,
|
|
1427
1640
|
requestType: "json",
|
|
@@ -1430,13 +1643,16 @@ class Entitlements {
|
|
|
1430
1643
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1431
1644
|
});
|
|
1432
1645
|
if (_response.ok) {
|
|
1433
|
-
return
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1646
|
+
return {
|
|
1647
|
+
data: serializers.ListPlanEntitlementsResponse.parseOrThrow(_response.body, {
|
|
1648
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1649
|
+
allowUnrecognizedUnionMembers: true,
|
|
1650
|
+
allowUnrecognizedEnumValues: true,
|
|
1651
|
+
skipValidation: true,
|
|
1652
|
+
breadcrumbsPrefix: ["response"],
|
|
1653
|
+
}),
|
|
1654
|
+
rawResponse: _response.rawResponse,
|
|
1655
|
+
};
|
|
1440
1656
|
}
|
|
1441
1657
|
if (_response.error.reason === "status-code") {
|
|
1442
1658
|
switch (_response.error.statusCode) {
|
|
@@ -1447,7 +1663,7 @@ class Entitlements {
|
|
|
1447
1663
|
allowUnrecognizedEnumValues: true,
|
|
1448
1664
|
skipValidation: true,
|
|
1449
1665
|
breadcrumbsPrefix: ["response"],
|
|
1450
|
-
}));
|
|
1666
|
+
}), _response.rawResponse);
|
|
1451
1667
|
case 401:
|
|
1452
1668
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1453
1669
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1455,7 +1671,7 @@ class Entitlements {
|
|
|
1455
1671
|
allowUnrecognizedEnumValues: true,
|
|
1456
1672
|
skipValidation: true,
|
|
1457
1673
|
breadcrumbsPrefix: ["response"],
|
|
1458
|
-
}));
|
|
1674
|
+
}), _response.rawResponse);
|
|
1459
1675
|
case 403:
|
|
1460
1676
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1461
1677
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1463,7 +1679,15 @@ class Entitlements {
|
|
|
1463
1679
|
allowUnrecognizedEnumValues: true,
|
|
1464
1680
|
skipValidation: true,
|
|
1465
1681
|
breadcrumbsPrefix: ["response"],
|
|
1466
|
-
}));
|
|
1682
|
+
}), _response.rawResponse);
|
|
1683
|
+
case 404:
|
|
1684
|
+
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1685
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1686
|
+
allowUnrecognizedUnionMembers: true,
|
|
1687
|
+
allowUnrecognizedEnumValues: true,
|
|
1688
|
+
skipValidation: true,
|
|
1689
|
+
breadcrumbsPrefix: ["response"],
|
|
1690
|
+
}), _response.rawResponse);
|
|
1467
1691
|
case 500:
|
|
1468
1692
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1469
1693
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1471,11 +1695,12 @@ class Entitlements {
|
|
|
1471
1695
|
allowUnrecognizedEnumValues: true,
|
|
1472
1696
|
skipValidation: true,
|
|
1473
1697
|
breadcrumbsPrefix: ["response"],
|
|
1474
|
-
}));
|
|
1698
|
+
}), _response.rawResponse);
|
|
1475
1699
|
default:
|
|
1476
1700
|
throw new errors.SchematicError({
|
|
1477
1701
|
statusCode: _response.error.statusCode,
|
|
1478
1702
|
body: _response.error.body,
|
|
1703
|
+
rawResponse: _response.rawResponse,
|
|
1479
1704
|
});
|
|
1480
1705
|
}
|
|
1481
1706
|
}
|
|
@@ -1484,12 +1709,14 @@ class Entitlements {
|
|
|
1484
1709
|
throw new errors.SchematicError({
|
|
1485
1710
|
statusCode: _response.error.statusCode,
|
|
1486
1711
|
body: _response.error.rawBody,
|
|
1712
|
+
rawResponse: _response.rawResponse,
|
|
1487
1713
|
});
|
|
1488
1714
|
case "timeout":
|
|
1489
|
-
throw new errors.SchematicTimeoutError();
|
|
1715
|
+
throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /plan-entitlements.");
|
|
1490
1716
|
case "unknown":
|
|
1491
1717
|
throw new errors.SchematicError({
|
|
1492
1718
|
message: _response.error.errorMessage,
|
|
1719
|
+
rawResponse: _response.rawResponse,
|
|
1493
1720
|
});
|
|
1494
1721
|
}
|
|
1495
1722
|
});
|
|
@@ -1501,6 +1728,7 @@ class Entitlements {
|
|
|
1501
1728
|
* @throws {@link Schematic.BadRequestError}
|
|
1502
1729
|
* @throws {@link Schematic.UnauthorizedError}
|
|
1503
1730
|
* @throws {@link Schematic.ForbiddenError}
|
|
1731
|
+
* @throws {@link Schematic.NotFoundError}
|
|
1504
1732
|
* @throws {@link Schematic.InternalServerError}
|
|
1505
1733
|
*
|
|
1506
1734
|
* @example
|
|
@@ -1511,12 +1739,15 @@ class Entitlements {
|
|
|
1511
1739
|
* })
|
|
1512
1740
|
*/
|
|
1513
1741
|
createPlanEntitlement(request, requestOptions) {
|
|
1514
|
-
|
|
1742
|
+
return core.HttpResponsePromise.fromPromise(this.__createPlanEntitlement(request, requestOptions));
|
|
1743
|
+
}
|
|
1744
|
+
__createPlanEntitlement(request, requestOptions) {
|
|
1515
1745
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1746
|
+
var _a, _b, _c;
|
|
1516
1747
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1517
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
|
1748
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, "plan-entitlements"),
|
|
1518
1749
|
method: "POST",
|
|
1519
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
1750
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.11", "User-Agent": "@schematichq/schematic-typescript-node/1.1.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1520
1751
|
contentType: "application/json",
|
|
1521
1752
|
requestType: "json",
|
|
1522
1753
|
body: serializers.CreatePlanEntitlementRequestBody.jsonOrThrow(request, {
|
|
@@ -1527,13 +1758,16 @@ class Entitlements {
|
|
|
1527
1758
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1528
1759
|
});
|
|
1529
1760
|
if (_response.ok) {
|
|
1530
|
-
return
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1761
|
+
return {
|
|
1762
|
+
data: serializers.CreatePlanEntitlementResponse.parseOrThrow(_response.body, {
|
|
1763
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1764
|
+
allowUnrecognizedUnionMembers: true,
|
|
1765
|
+
allowUnrecognizedEnumValues: true,
|
|
1766
|
+
skipValidation: true,
|
|
1767
|
+
breadcrumbsPrefix: ["response"],
|
|
1768
|
+
}),
|
|
1769
|
+
rawResponse: _response.rawResponse,
|
|
1770
|
+
};
|
|
1537
1771
|
}
|
|
1538
1772
|
if (_response.error.reason === "status-code") {
|
|
1539
1773
|
switch (_response.error.statusCode) {
|
|
@@ -1544,7 +1778,7 @@ class Entitlements {
|
|
|
1544
1778
|
allowUnrecognizedEnumValues: true,
|
|
1545
1779
|
skipValidation: true,
|
|
1546
1780
|
breadcrumbsPrefix: ["response"],
|
|
1547
|
-
}));
|
|
1781
|
+
}), _response.rawResponse);
|
|
1548
1782
|
case 401:
|
|
1549
1783
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1550
1784
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1552,7 +1786,7 @@ class Entitlements {
|
|
|
1552
1786
|
allowUnrecognizedEnumValues: true,
|
|
1553
1787
|
skipValidation: true,
|
|
1554
1788
|
breadcrumbsPrefix: ["response"],
|
|
1555
|
-
}));
|
|
1789
|
+
}), _response.rawResponse);
|
|
1556
1790
|
case 403:
|
|
1557
1791
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1558
1792
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1560,7 +1794,15 @@ class Entitlements {
|
|
|
1560
1794
|
allowUnrecognizedEnumValues: true,
|
|
1561
1795
|
skipValidation: true,
|
|
1562
1796
|
breadcrumbsPrefix: ["response"],
|
|
1563
|
-
}));
|
|
1797
|
+
}), _response.rawResponse);
|
|
1798
|
+
case 404:
|
|
1799
|
+
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1800
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1801
|
+
allowUnrecognizedUnionMembers: true,
|
|
1802
|
+
allowUnrecognizedEnumValues: true,
|
|
1803
|
+
skipValidation: true,
|
|
1804
|
+
breadcrumbsPrefix: ["response"],
|
|
1805
|
+
}), _response.rawResponse);
|
|
1564
1806
|
case 500:
|
|
1565
1807
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1566
1808
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1568,11 +1810,12 @@ class Entitlements {
|
|
|
1568
1810
|
allowUnrecognizedEnumValues: true,
|
|
1569
1811
|
skipValidation: true,
|
|
1570
1812
|
breadcrumbsPrefix: ["response"],
|
|
1571
|
-
}));
|
|
1813
|
+
}), _response.rawResponse);
|
|
1572
1814
|
default:
|
|
1573
1815
|
throw new errors.SchematicError({
|
|
1574
1816
|
statusCode: _response.error.statusCode,
|
|
1575
1817
|
body: _response.error.body,
|
|
1818
|
+
rawResponse: _response.rawResponse,
|
|
1576
1819
|
});
|
|
1577
1820
|
}
|
|
1578
1821
|
}
|
|
@@ -1581,12 +1824,14 @@ class Entitlements {
|
|
|
1581
1824
|
throw new errors.SchematicError({
|
|
1582
1825
|
statusCode: _response.error.statusCode,
|
|
1583
1826
|
body: _response.error.rawBody,
|
|
1827
|
+
rawResponse: _response.rawResponse,
|
|
1584
1828
|
});
|
|
1585
1829
|
case "timeout":
|
|
1586
|
-
throw new errors.SchematicTimeoutError();
|
|
1830
|
+
throw new errors.SchematicTimeoutError("Timeout exceeded when calling POST /plan-entitlements.");
|
|
1587
1831
|
case "unknown":
|
|
1588
1832
|
throw new errors.SchematicError({
|
|
1589
1833
|
message: _response.error.errorMessage,
|
|
1834
|
+
rawResponse: _response.rawResponse,
|
|
1590
1835
|
});
|
|
1591
1836
|
}
|
|
1592
1837
|
});
|
|
@@ -1604,12 +1849,15 @@ class Entitlements {
|
|
|
1604
1849
|
* await client.entitlements.getPlanEntitlement("plan_entitlement_id")
|
|
1605
1850
|
*/
|
|
1606
1851
|
getPlanEntitlement(planEntitlementId, requestOptions) {
|
|
1607
|
-
|
|
1852
|
+
return core.HttpResponsePromise.fromPromise(this.__getPlanEntitlement(planEntitlementId, requestOptions));
|
|
1853
|
+
}
|
|
1854
|
+
__getPlanEntitlement(planEntitlementId, requestOptions) {
|
|
1608
1855
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1856
|
+
var _a, _b, _c;
|
|
1609
1857
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1610
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
|
1858
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, `plan-entitlements/${encodeURIComponent(planEntitlementId)}`),
|
|
1611
1859
|
method: "GET",
|
|
1612
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
1860
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.11", "User-Agent": "@schematichq/schematic-typescript-node/1.1.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1613
1861
|
contentType: "application/json",
|
|
1614
1862
|
requestType: "json",
|
|
1615
1863
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1617,13 +1865,16 @@ class Entitlements {
|
|
|
1617
1865
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1618
1866
|
});
|
|
1619
1867
|
if (_response.ok) {
|
|
1620
|
-
return
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1868
|
+
return {
|
|
1869
|
+
data: serializers.GetPlanEntitlementResponse.parseOrThrow(_response.body, {
|
|
1870
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1871
|
+
allowUnrecognizedUnionMembers: true,
|
|
1872
|
+
allowUnrecognizedEnumValues: true,
|
|
1873
|
+
skipValidation: true,
|
|
1874
|
+
breadcrumbsPrefix: ["response"],
|
|
1875
|
+
}),
|
|
1876
|
+
rawResponse: _response.rawResponse,
|
|
1877
|
+
};
|
|
1627
1878
|
}
|
|
1628
1879
|
if (_response.error.reason === "status-code") {
|
|
1629
1880
|
switch (_response.error.statusCode) {
|
|
@@ -1634,7 +1885,7 @@ class Entitlements {
|
|
|
1634
1885
|
allowUnrecognizedEnumValues: true,
|
|
1635
1886
|
skipValidation: true,
|
|
1636
1887
|
breadcrumbsPrefix: ["response"],
|
|
1637
|
-
}));
|
|
1888
|
+
}), _response.rawResponse);
|
|
1638
1889
|
case 403:
|
|
1639
1890
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1640
1891
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1642,7 +1893,7 @@ class Entitlements {
|
|
|
1642
1893
|
allowUnrecognizedEnumValues: true,
|
|
1643
1894
|
skipValidation: true,
|
|
1644
1895
|
breadcrumbsPrefix: ["response"],
|
|
1645
|
-
}));
|
|
1896
|
+
}), _response.rawResponse);
|
|
1646
1897
|
case 404:
|
|
1647
1898
|
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1648
1899
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1650,7 +1901,7 @@ class Entitlements {
|
|
|
1650
1901
|
allowUnrecognizedEnumValues: true,
|
|
1651
1902
|
skipValidation: true,
|
|
1652
1903
|
breadcrumbsPrefix: ["response"],
|
|
1653
|
-
}));
|
|
1904
|
+
}), _response.rawResponse);
|
|
1654
1905
|
case 500:
|
|
1655
1906
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1656
1907
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1658,11 +1909,12 @@ class Entitlements {
|
|
|
1658
1909
|
allowUnrecognizedEnumValues: true,
|
|
1659
1910
|
skipValidation: true,
|
|
1660
1911
|
breadcrumbsPrefix: ["response"],
|
|
1661
|
-
}));
|
|
1912
|
+
}), _response.rawResponse);
|
|
1662
1913
|
default:
|
|
1663
1914
|
throw new errors.SchematicError({
|
|
1664
1915
|
statusCode: _response.error.statusCode,
|
|
1665
1916
|
body: _response.error.body,
|
|
1917
|
+
rawResponse: _response.rawResponse,
|
|
1666
1918
|
});
|
|
1667
1919
|
}
|
|
1668
1920
|
}
|
|
@@ -1671,12 +1923,14 @@ class Entitlements {
|
|
|
1671
1923
|
throw new errors.SchematicError({
|
|
1672
1924
|
statusCode: _response.error.statusCode,
|
|
1673
1925
|
body: _response.error.rawBody,
|
|
1926
|
+
rawResponse: _response.rawResponse,
|
|
1674
1927
|
});
|
|
1675
1928
|
case "timeout":
|
|
1676
|
-
throw new errors.SchematicTimeoutError();
|
|
1929
|
+
throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /plan-entitlements/{plan_entitlement_id}.");
|
|
1677
1930
|
case "unknown":
|
|
1678
1931
|
throw new errors.SchematicError({
|
|
1679
1932
|
message: _response.error.errorMessage,
|
|
1933
|
+
rawResponse: _response.rawResponse,
|
|
1680
1934
|
});
|
|
1681
1935
|
}
|
|
1682
1936
|
});
|
|
@@ -1698,12 +1952,15 @@ class Entitlements {
|
|
|
1698
1952
|
* })
|
|
1699
1953
|
*/
|
|
1700
1954
|
updatePlanEntitlement(planEntitlementId, request, requestOptions) {
|
|
1701
|
-
|
|
1955
|
+
return core.HttpResponsePromise.fromPromise(this.__updatePlanEntitlement(planEntitlementId, request, requestOptions));
|
|
1956
|
+
}
|
|
1957
|
+
__updatePlanEntitlement(planEntitlementId, request, requestOptions) {
|
|
1702
1958
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1959
|
+
var _a, _b, _c;
|
|
1703
1960
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1704
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
|
1961
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, `plan-entitlements/${encodeURIComponent(planEntitlementId)}`),
|
|
1705
1962
|
method: "PUT",
|
|
1706
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
1963
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.11", "User-Agent": "@schematichq/schematic-typescript-node/1.1.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1707
1964
|
contentType: "application/json",
|
|
1708
1965
|
requestType: "json",
|
|
1709
1966
|
body: serializers.UpdatePlanEntitlementRequestBody.jsonOrThrow(request, {
|
|
@@ -1714,13 +1971,16 @@ class Entitlements {
|
|
|
1714
1971
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1715
1972
|
});
|
|
1716
1973
|
if (_response.ok) {
|
|
1717
|
-
return
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1974
|
+
return {
|
|
1975
|
+
data: serializers.UpdatePlanEntitlementResponse.parseOrThrow(_response.body, {
|
|
1976
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1977
|
+
allowUnrecognizedUnionMembers: true,
|
|
1978
|
+
allowUnrecognizedEnumValues: true,
|
|
1979
|
+
skipValidation: true,
|
|
1980
|
+
breadcrumbsPrefix: ["response"],
|
|
1981
|
+
}),
|
|
1982
|
+
rawResponse: _response.rawResponse,
|
|
1983
|
+
};
|
|
1724
1984
|
}
|
|
1725
1985
|
if (_response.error.reason === "status-code") {
|
|
1726
1986
|
switch (_response.error.statusCode) {
|
|
@@ -1731,7 +1991,7 @@ class Entitlements {
|
|
|
1731
1991
|
allowUnrecognizedEnumValues: true,
|
|
1732
1992
|
skipValidation: true,
|
|
1733
1993
|
breadcrumbsPrefix: ["response"],
|
|
1734
|
-
}));
|
|
1994
|
+
}), _response.rawResponse);
|
|
1735
1995
|
case 401:
|
|
1736
1996
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1737
1997
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1739,7 +1999,7 @@ class Entitlements {
|
|
|
1739
1999
|
allowUnrecognizedEnumValues: true,
|
|
1740
2000
|
skipValidation: true,
|
|
1741
2001
|
breadcrumbsPrefix: ["response"],
|
|
1742
|
-
}));
|
|
2002
|
+
}), _response.rawResponse);
|
|
1743
2003
|
case 403:
|
|
1744
2004
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1745
2005
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1747,7 +2007,7 @@ class Entitlements {
|
|
|
1747
2007
|
allowUnrecognizedEnumValues: true,
|
|
1748
2008
|
skipValidation: true,
|
|
1749
2009
|
breadcrumbsPrefix: ["response"],
|
|
1750
|
-
}));
|
|
2010
|
+
}), _response.rawResponse);
|
|
1751
2011
|
case 404:
|
|
1752
2012
|
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1753
2013
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1755,7 +2015,7 @@ class Entitlements {
|
|
|
1755
2015
|
allowUnrecognizedEnumValues: true,
|
|
1756
2016
|
skipValidation: true,
|
|
1757
2017
|
breadcrumbsPrefix: ["response"],
|
|
1758
|
-
}));
|
|
2018
|
+
}), _response.rawResponse);
|
|
1759
2019
|
case 500:
|
|
1760
2020
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1761
2021
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1763,11 +2023,12 @@ class Entitlements {
|
|
|
1763
2023
|
allowUnrecognizedEnumValues: true,
|
|
1764
2024
|
skipValidation: true,
|
|
1765
2025
|
breadcrumbsPrefix: ["response"],
|
|
1766
|
-
}));
|
|
2026
|
+
}), _response.rawResponse);
|
|
1767
2027
|
default:
|
|
1768
2028
|
throw new errors.SchematicError({
|
|
1769
2029
|
statusCode: _response.error.statusCode,
|
|
1770
2030
|
body: _response.error.body,
|
|
2031
|
+
rawResponse: _response.rawResponse,
|
|
1771
2032
|
});
|
|
1772
2033
|
}
|
|
1773
2034
|
}
|
|
@@ -1776,12 +2037,14 @@ class Entitlements {
|
|
|
1776
2037
|
throw new errors.SchematicError({
|
|
1777
2038
|
statusCode: _response.error.statusCode,
|
|
1778
2039
|
body: _response.error.rawBody,
|
|
2040
|
+
rawResponse: _response.rawResponse,
|
|
1779
2041
|
});
|
|
1780
2042
|
case "timeout":
|
|
1781
|
-
throw new errors.SchematicTimeoutError();
|
|
2043
|
+
throw new errors.SchematicTimeoutError("Timeout exceeded when calling PUT /plan-entitlements/{plan_entitlement_id}.");
|
|
1782
2044
|
case "unknown":
|
|
1783
2045
|
throw new errors.SchematicError({
|
|
1784
2046
|
message: _response.error.errorMessage,
|
|
2047
|
+
rawResponse: _response.rawResponse,
|
|
1785
2048
|
});
|
|
1786
2049
|
}
|
|
1787
2050
|
});
|
|
@@ -1793,18 +2056,22 @@ class Entitlements {
|
|
|
1793
2056
|
* @throws {@link Schematic.BadRequestError}
|
|
1794
2057
|
* @throws {@link Schematic.UnauthorizedError}
|
|
1795
2058
|
* @throws {@link Schematic.ForbiddenError}
|
|
2059
|
+
* @throws {@link Schematic.NotFoundError}
|
|
1796
2060
|
* @throws {@link Schematic.InternalServerError}
|
|
1797
2061
|
*
|
|
1798
2062
|
* @example
|
|
1799
2063
|
* await client.entitlements.deletePlanEntitlement("plan_entitlement_id")
|
|
1800
2064
|
*/
|
|
1801
2065
|
deletePlanEntitlement(planEntitlementId, requestOptions) {
|
|
1802
|
-
|
|
2066
|
+
return core.HttpResponsePromise.fromPromise(this.__deletePlanEntitlement(planEntitlementId, requestOptions));
|
|
2067
|
+
}
|
|
2068
|
+
__deletePlanEntitlement(planEntitlementId, requestOptions) {
|
|
1803
2069
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2070
|
+
var _a, _b, _c;
|
|
1804
2071
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1805
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
|
2072
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, `plan-entitlements/${encodeURIComponent(planEntitlementId)}`),
|
|
1806
2073
|
method: "DELETE",
|
|
1807
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
2074
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.11", "User-Agent": "@schematichq/schematic-typescript-node/1.1.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1808
2075
|
contentType: "application/json",
|
|
1809
2076
|
requestType: "json",
|
|
1810
2077
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1812,13 +2079,16 @@ class Entitlements {
|
|
|
1812
2079
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1813
2080
|
});
|
|
1814
2081
|
if (_response.ok) {
|
|
1815
|
-
return
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
2082
|
+
return {
|
|
2083
|
+
data: serializers.DeletePlanEntitlementResponse.parseOrThrow(_response.body, {
|
|
2084
|
+
unrecognizedObjectKeys: "passthrough",
|
|
2085
|
+
allowUnrecognizedUnionMembers: true,
|
|
2086
|
+
allowUnrecognizedEnumValues: true,
|
|
2087
|
+
skipValidation: true,
|
|
2088
|
+
breadcrumbsPrefix: ["response"],
|
|
2089
|
+
}),
|
|
2090
|
+
rawResponse: _response.rawResponse,
|
|
2091
|
+
};
|
|
1822
2092
|
}
|
|
1823
2093
|
if (_response.error.reason === "status-code") {
|
|
1824
2094
|
switch (_response.error.statusCode) {
|
|
@@ -1829,7 +2099,7 @@ class Entitlements {
|
|
|
1829
2099
|
allowUnrecognizedEnumValues: true,
|
|
1830
2100
|
skipValidation: true,
|
|
1831
2101
|
breadcrumbsPrefix: ["response"],
|
|
1832
|
-
}));
|
|
2102
|
+
}), _response.rawResponse);
|
|
1833
2103
|
case 401:
|
|
1834
2104
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1835
2105
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1837,7 +2107,7 @@ class Entitlements {
|
|
|
1837
2107
|
allowUnrecognizedEnumValues: true,
|
|
1838
2108
|
skipValidation: true,
|
|
1839
2109
|
breadcrumbsPrefix: ["response"],
|
|
1840
|
-
}));
|
|
2110
|
+
}), _response.rawResponse);
|
|
1841
2111
|
case 403:
|
|
1842
2112
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1843
2113
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1845,7 +2115,15 @@ class Entitlements {
|
|
|
1845
2115
|
allowUnrecognizedEnumValues: true,
|
|
1846
2116
|
skipValidation: true,
|
|
1847
2117
|
breadcrumbsPrefix: ["response"],
|
|
1848
|
-
}));
|
|
2118
|
+
}), _response.rawResponse);
|
|
2119
|
+
case 404:
|
|
2120
|
+
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
2121
|
+
unrecognizedObjectKeys: "passthrough",
|
|
2122
|
+
allowUnrecognizedUnionMembers: true,
|
|
2123
|
+
allowUnrecognizedEnumValues: true,
|
|
2124
|
+
skipValidation: true,
|
|
2125
|
+
breadcrumbsPrefix: ["response"],
|
|
2126
|
+
}), _response.rawResponse);
|
|
1849
2127
|
case 500:
|
|
1850
2128
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1851
2129
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1853,11 +2131,12 @@ class Entitlements {
|
|
|
1853
2131
|
allowUnrecognizedEnumValues: true,
|
|
1854
2132
|
skipValidation: true,
|
|
1855
2133
|
breadcrumbsPrefix: ["response"],
|
|
1856
|
-
}));
|
|
2134
|
+
}), _response.rawResponse);
|
|
1857
2135
|
default:
|
|
1858
2136
|
throw new errors.SchematicError({
|
|
1859
2137
|
statusCode: _response.error.statusCode,
|
|
1860
2138
|
body: _response.error.body,
|
|
2139
|
+
rawResponse: _response.rawResponse,
|
|
1861
2140
|
});
|
|
1862
2141
|
}
|
|
1863
2142
|
}
|
|
@@ -1866,12 +2145,14 @@ class Entitlements {
|
|
|
1866
2145
|
throw new errors.SchematicError({
|
|
1867
2146
|
statusCode: _response.error.statusCode,
|
|
1868
2147
|
body: _response.error.rawBody,
|
|
2148
|
+
rawResponse: _response.rawResponse,
|
|
1869
2149
|
});
|
|
1870
2150
|
case "timeout":
|
|
1871
|
-
throw new errors.SchematicTimeoutError();
|
|
2151
|
+
throw new errors.SchematicTimeoutError("Timeout exceeded when calling DELETE /plan-entitlements/{plan_entitlement_id}.");
|
|
1872
2152
|
case "unknown":
|
|
1873
2153
|
throw new errors.SchematicError({
|
|
1874
2154
|
message: _response.error.errorMessage,
|
|
2155
|
+
rawResponse: _response.rawResponse,
|
|
1875
2156
|
});
|
|
1876
2157
|
}
|
|
1877
2158
|
});
|
|
@@ -1883,14 +2164,18 @@ class Entitlements {
|
|
|
1883
2164
|
* @throws {@link Schematic.BadRequestError}
|
|
1884
2165
|
* @throws {@link Schematic.UnauthorizedError}
|
|
1885
2166
|
* @throws {@link Schematic.ForbiddenError}
|
|
2167
|
+
* @throws {@link Schematic.NotFoundError}
|
|
1886
2168
|
* @throws {@link Schematic.InternalServerError}
|
|
1887
2169
|
*
|
|
1888
2170
|
* @example
|
|
1889
2171
|
* await client.entitlements.countPlanEntitlements()
|
|
1890
2172
|
*/
|
|
1891
2173
|
countPlanEntitlements(request = {}, requestOptions) {
|
|
1892
|
-
|
|
1893
|
-
|
|
2174
|
+
return core.HttpResponsePromise.fromPromise(this.__countPlanEntitlements(request, requestOptions));
|
|
2175
|
+
}
|
|
2176
|
+
__countPlanEntitlements() {
|
|
2177
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
2178
|
+
var _a, _b, _c;
|
|
1894
2179
|
const { featureId, featureIds, ids, planId, planIds, q, withMeteredProducts, limit, offset } = request;
|
|
1895
2180
|
const _queryParams = {};
|
|
1896
2181
|
if (featureId != null) {
|
|
@@ -1936,9 +2221,9 @@ class Entitlements {
|
|
|
1936
2221
|
_queryParams["offset"] = offset.toString();
|
|
1937
2222
|
}
|
|
1938
2223
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1939
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
|
2224
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, "plan-entitlements/count"),
|
|
1940
2225
|
method: "GET",
|
|
1941
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
2226
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.11", "User-Agent": "@schematichq/schematic-typescript-node/1.1.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1942
2227
|
contentType: "application/json",
|
|
1943
2228
|
queryParameters: _queryParams,
|
|
1944
2229
|
requestType: "json",
|
|
@@ -1947,13 +2232,16 @@ class Entitlements {
|
|
|
1947
2232
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1948
2233
|
});
|
|
1949
2234
|
if (_response.ok) {
|
|
1950
|
-
return
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
2235
|
+
return {
|
|
2236
|
+
data: serializers.CountPlanEntitlementsResponse.parseOrThrow(_response.body, {
|
|
2237
|
+
unrecognizedObjectKeys: "passthrough",
|
|
2238
|
+
allowUnrecognizedUnionMembers: true,
|
|
2239
|
+
allowUnrecognizedEnumValues: true,
|
|
2240
|
+
skipValidation: true,
|
|
2241
|
+
breadcrumbsPrefix: ["response"],
|
|
2242
|
+
}),
|
|
2243
|
+
rawResponse: _response.rawResponse,
|
|
2244
|
+
};
|
|
1957
2245
|
}
|
|
1958
2246
|
if (_response.error.reason === "status-code") {
|
|
1959
2247
|
switch (_response.error.statusCode) {
|
|
@@ -1964,7 +2252,7 @@ class Entitlements {
|
|
|
1964
2252
|
allowUnrecognizedEnumValues: true,
|
|
1965
2253
|
skipValidation: true,
|
|
1966
2254
|
breadcrumbsPrefix: ["response"],
|
|
1967
|
-
}));
|
|
2255
|
+
}), _response.rawResponse);
|
|
1968
2256
|
case 401:
|
|
1969
2257
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1970
2258
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1972,7 +2260,7 @@ class Entitlements {
|
|
|
1972
2260
|
allowUnrecognizedEnumValues: true,
|
|
1973
2261
|
skipValidation: true,
|
|
1974
2262
|
breadcrumbsPrefix: ["response"],
|
|
1975
|
-
}));
|
|
2263
|
+
}), _response.rawResponse);
|
|
1976
2264
|
case 403:
|
|
1977
2265
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1978
2266
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1980,7 +2268,15 @@ class Entitlements {
|
|
|
1980
2268
|
allowUnrecognizedEnumValues: true,
|
|
1981
2269
|
skipValidation: true,
|
|
1982
2270
|
breadcrumbsPrefix: ["response"],
|
|
1983
|
-
}));
|
|
2271
|
+
}), _response.rawResponse);
|
|
2272
|
+
case 404:
|
|
2273
|
+
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
2274
|
+
unrecognizedObjectKeys: "passthrough",
|
|
2275
|
+
allowUnrecognizedUnionMembers: true,
|
|
2276
|
+
allowUnrecognizedEnumValues: true,
|
|
2277
|
+
skipValidation: true,
|
|
2278
|
+
breadcrumbsPrefix: ["response"],
|
|
2279
|
+
}), _response.rawResponse);
|
|
1984
2280
|
case 500:
|
|
1985
2281
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1986
2282
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1988,11 +2284,12 @@ class Entitlements {
|
|
|
1988
2284
|
allowUnrecognizedEnumValues: true,
|
|
1989
2285
|
skipValidation: true,
|
|
1990
2286
|
breadcrumbsPrefix: ["response"],
|
|
1991
|
-
}));
|
|
2287
|
+
}), _response.rawResponse);
|
|
1992
2288
|
default:
|
|
1993
2289
|
throw new errors.SchematicError({
|
|
1994
2290
|
statusCode: _response.error.statusCode,
|
|
1995
2291
|
body: _response.error.body,
|
|
2292
|
+
rawResponse: _response.rawResponse,
|
|
1996
2293
|
});
|
|
1997
2294
|
}
|
|
1998
2295
|
}
|
|
@@ -2001,12 +2298,14 @@ class Entitlements {
|
|
|
2001
2298
|
throw new errors.SchematicError({
|
|
2002
2299
|
statusCode: _response.error.statusCode,
|
|
2003
2300
|
body: _response.error.rawBody,
|
|
2301
|
+
rawResponse: _response.rawResponse,
|
|
2004
2302
|
});
|
|
2005
2303
|
case "timeout":
|
|
2006
|
-
throw new errors.SchematicTimeoutError();
|
|
2304
|
+
throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /plan-entitlements/count.");
|
|
2007
2305
|
case "unknown":
|
|
2008
2306
|
throw new errors.SchematicError({
|
|
2009
2307
|
message: _response.error.errorMessage,
|
|
2308
|
+
rawResponse: _response.rawResponse,
|
|
2010
2309
|
});
|
|
2011
2310
|
}
|
|
2012
2311
|
});
|
|
@@ -2023,22 +2322,23 @@ class Entitlements {
|
|
|
2023
2322
|
* @example
|
|
2024
2323
|
* await client.entitlements.getFeatureUsageByCompany({
|
|
2025
2324
|
* keys: {
|
|
2026
|
-
* "keys":
|
|
2027
|
-
* "key": "value"
|
|
2028
|
-
* }
|
|
2325
|
+
* "keys": "keys"
|
|
2029
2326
|
* }
|
|
2030
2327
|
* })
|
|
2031
2328
|
*/
|
|
2032
2329
|
getFeatureUsageByCompany(request, requestOptions) {
|
|
2033
|
-
|
|
2330
|
+
return core.HttpResponsePromise.fromPromise(this.__getFeatureUsageByCompany(request, requestOptions));
|
|
2331
|
+
}
|
|
2332
|
+
__getFeatureUsageByCompany(request, requestOptions) {
|
|
2034
2333
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2334
|
+
var _a, _b, _c;
|
|
2035
2335
|
const { keys } = request;
|
|
2036
2336
|
const _queryParams = {};
|
|
2037
|
-
_queryParams["keys"] =
|
|
2337
|
+
_queryParams["keys"] = (0, json_1.toJson)(keys);
|
|
2038
2338
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
2039
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
|
2339
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, "usage-by-company"),
|
|
2040
2340
|
method: "GET",
|
|
2041
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
2341
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.11", "User-Agent": "@schematichq/schematic-typescript-node/1.1.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
2042
2342
|
contentType: "application/json",
|
|
2043
2343
|
queryParameters: _queryParams,
|
|
2044
2344
|
requestType: "json",
|
|
@@ -2047,13 +2347,16 @@ class Entitlements {
|
|
|
2047
2347
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
2048
2348
|
});
|
|
2049
2349
|
if (_response.ok) {
|
|
2050
|
-
return
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2350
|
+
return {
|
|
2351
|
+
data: serializers.GetFeatureUsageByCompanyResponse.parseOrThrow(_response.body, {
|
|
2352
|
+
unrecognizedObjectKeys: "passthrough",
|
|
2353
|
+
allowUnrecognizedUnionMembers: true,
|
|
2354
|
+
allowUnrecognizedEnumValues: true,
|
|
2355
|
+
skipValidation: true,
|
|
2356
|
+
breadcrumbsPrefix: ["response"],
|
|
2357
|
+
}),
|
|
2358
|
+
rawResponse: _response.rawResponse,
|
|
2359
|
+
};
|
|
2057
2360
|
}
|
|
2058
2361
|
if (_response.error.reason === "status-code") {
|
|
2059
2362
|
switch (_response.error.statusCode) {
|
|
@@ -2064,7 +2367,7 @@ class Entitlements {
|
|
|
2064
2367
|
allowUnrecognizedEnumValues: true,
|
|
2065
2368
|
skipValidation: true,
|
|
2066
2369
|
breadcrumbsPrefix: ["response"],
|
|
2067
|
-
}));
|
|
2370
|
+
}), _response.rawResponse);
|
|
2068
2371
|
case 403:
|
|
2069
2372
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
2070
2373
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -2072,7 +2375,7 @@ class Entitlements {
|
|
|
2072
2375
|
allowUnrecognizedEnumValues: true,
|
|
2073
2376
|
skipValidation: true,
|
|
2074
2377
|
breadcrumbsPrefix: ["response"],
|
|
2075
|
-
}));
|
|
2378
|
+
}), _response.rawResponse);
|
|
2076
2379
|
case 404:
|
|
2077
2380
|
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
2078
2381
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -2080,7 +2383,7 @@ class Entitlements {
|
|
|
2080
2383
|
allowUnrecognizedEnumValues: true,
|
|
2081
2384
|
skipValidation: true,
|
|
2082
2385
|
breadcrumbsPrefix: ["response"],
|
|
2083
|
-
}));
|
|
2386
|
+
}), _response.rawResponse);
|
|
2084
2387
|
case 500:
|
|
2085
2388
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
2086
2389
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -2088,11 +2391,12 @@ class Entitlements {
|
|
|
2088
2391
|
allowUnrecognizedEnumValues: true,
|
|
2089
2392
|
skipValidation: true,
|
|
2090
2393
|
breadcrumbsPrefix: ["response"],
|
|
2091
|
-
}));
|
|
2394
|
+
}), _response.rawResponse);
|
|
2092
2395
|
default:
|
|
2093
2396
|
throw new errors.SchematicError({
|
|
2094
2397
|
statusCode: _response.error.statusCode,
|
|
2095
2398
|
body: _response.error.body,
|
|
2399
|
+
rawResponse: _response.rawResponse,
|
|
2096
2400
|
});
|
|
2097
2401
|
}
|
|
2098
2402
|
}
|
|
@@ -2101,12 +2405,14 @@ class Entitlements {
|
|
|
2101
2405
|
throw new errors.SchematicError({
|
|
2102
2406
|
statusCode: _response.error.statusCode,
|
|
2103
2407
|
body: _response.error.rawBody,
|
|
2408
|
+
rawResponse: _response.rawResponse,
|
|
2104
2409
|
});
|
|
2105
2410
|
case "timeout":
|
|
2106
|
-
throw new errors.SchematicTimeoutError();
|
|
2411
|
+
throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /usage-by-company.");
|
|
2107
2412
|
case "unknown":
|
|
2108
2413
|
throw new errors.SchematicError({
|
|
2109
2414
|
message: _response.error.errorMessage,
|
|
2415
|
+
rawResponse: _response.rawResponse,
|
|
2110
2416
|
});
|
|
2111
2417
|
}
|
|
2112
2418
|
});
|