@schematichq/schematic-typescript-node 1.1.10 → 1.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.d.ts +6 -0
- package/Client.js +30 -20
- package/README.md +2 -0
- package/api/errors/BadRequestError.d.ts +2 -1
- package/api/errors/BadRequestError.js +2 -1
- package/api/errors/ForbiddenError.d.ts +2 -1
- package/api/errors/ForbiddenError.js +2 -1
- package/api/errors/InternalServerError.d.ts +2 -1
- package/api/errors/InternalServerError.js +2 -1
- package/api/errors/NotFoundError.d.ts +2 -1
- package/api/errors/NotFoundError.js +2 -1
- package/api/errors/UnauthorizedError.d.ts +2 -1
- package/api/errors/UnauthorizedError.js +2 -1
- package/api/errors/index.d.ts +1 -1
- package/api/errors/index.js +1 -1
- package/api/resources/accesstokens/client/Client.d.ts +4 -3
- package/api/resources/accesstokens/client/Client.js +33 -16
- package/api/resources/accesstokens/client/requests/IssueTemporaryAccessTokenRequestBody.d.ts +1 -3
- package/api/resources/accounts/client/Client.d.ts +51 -14
- package/api/resources/accounts/client/Client.js +489 -175
- package/api/resources/accounts/types/QuickstartResponse.d.ts +9 -0
- 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 +64 -26
- package/api/resources/billing/client/Client.js +657 -260
- package/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +8 -0
- package/api/resources/billing/client/requests/CountCustomersRequest.d.ts +1 -0
- package/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +5 -1
- package/api/resources/billing/client/requests/CreateBillingProductRequestBody.d.ts +2 -7
- package/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +8 -0
- package/api/resources/billing/client/requests/{ListCustomersRequest.d.ts → ListCustomersWithSubscriptionsRequest.d.ts} +2 -1
- package/api/resources/billing/client/requests/ListProductPricesRequest.d.ts +8 -0
- package/api/resources/billing/client/requests/SearchBillingPricesRequest.d.ts +1 -0
- package/api/resources/billing/client/requests/index.d.ts +1 -1
- package/api/resources/billing/types/CountBillingProductsParams.d.ts +4 -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/CreateBillingPriceRequestBodyTiersMode.d.ts +8 -0
- package/api/resources/billing/types/CreateBillingPriceRequestBodyTiersMode.js +10 -0
- package/api/resources/billing/types/ListBillingProductsParams.d.ts +4 -0
- package/api/resources/billing/types/{ListCustomersParams.d.ts → ListCustomersWithSubscriptionsParams.d.ts} +2 -1
- package/{dist/api/resources/billing/types/ListCustomersResponse.d.ts → api/resources/billing/types/ListCustomersWithSubscriptionsResponse.d.ts} +2 -2
- package/api/resources/billing/types/ListProductPricesParams.d.ts +4 -0
- package/api/resources/billing/types/SearchBillingPricesParams.d.ts +1 -0
- package/{dist/api/resources/billing/types/CreateBillingPriceRequestBodyTierMode.d.ts → api/resources/billing/types/SearchBillingPricesRequestTiersMode.d.ts} +2 -2
- package/{dist/api/resources/billing/types/CreateBillingPriceRequestBodyTierMode.js → api/resources/billing/types/SearchBillingPricesRequestTiersMode.js} +2 -2
- package/api/resources/billing/types/SearchBillingPricesResponseParamsTiersMode.d.ts +8 -0
- package/api/resources/billing/types/SearchBillingPricesResponseParamsTiersMode.js +10 -0
- package/api/resources/billing/types/index.d.ts +6 -3
- package/api/resources/billing/types/index.js +6 -3
- package/api/resources/checkout/client/Client.d.ts +23 -6
- package/api/resources/checkout/client/Client.js +125 -52
- package/api/resources/companies/client/Client.d.ts +119 -43
- package/api/resources/companies/client/Client.js +1306 -434
- package/api/resources/companies/client/requests/CountCompaniesForAdvancedFilterRequest.d.ts +66 -0
- package/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +4 -0
- package/api/resources/companies/client/requests/ListCompaniesForAdvancedFilterRequest.d.ts +66 -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/client/requests/index.d.ts +2 -0
- package/api/resources/companies/types/CountCompaniesForAdvancedFilterParams.d.ts +37 -0
- package/api/resources/companies/types/CountCompaniesForAdvancedFilterParams.js +5 -0
- package/api/resources/companies/types/CountCompaniesForAdvancedFilterRequestSortOrderDirection.d.ts +11 -0
- package/api/resources/companies/types/CountCompaniesForAdvancedFilterRequestSortOrderDirection.js +10 -0
- package/api/resources/companies/types/CountCompaniesForAdvancedFilterResponse.d.ts +9 -0
- package/api/resources/companies/types/CountCompaniesForAdvancedFilterResponse.js +5 -0
- package/api/resources/companies/types/CountCompaniesForAdvancedFilterResponseParamsSortOrderDirection.d.ts +11 -0
- package/api/resources/companies/types/CountCompaniesForAdvancedFilterResponseParamsSortOrderDirection.js +10 -0
- package/api/resources/companies/types/CountCompaniesParams.d.ts +2 -0
- package/api/resources/companies/types/ListCompaniesForAdvancedFilterParams.d.ts +37 -0
- package/api/resources/companies/types/ListCompaniesForAdvancedFilterParams.js +5 -0
- package/api/resources/companies/types/ListCompaniesForAdvancedFilterRequestSortOrderDirection.d.ts +11 -0
- package/api/resources/companies/types/ListCompaniesForAdvancedFilterRequestSortOrderDirection.js +10 -0
- package/api/resources/companies/types/ListCompaniesForAdvancedFilterResponse.d.ts +10 -0
- package/api/resources/companies/types/ListCompaniesForAdvancedFilterResponse.js +5 -0
- package/api/resources/companies/types/ListCompaniesForAdvancedFilterResponseParamsSortOrderDirection.d.ts +11 -0
- package/api/resources/companies/types/ListCompaniesForAdvancedFilterResponseParamsSortOrderDirection.js +10 -0
- package/api/resources/companies/types/ListCompaniesParams.d.ts +2 -0
- 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/index.d.ts +8 -0
- package/api/resources/companies/types/index.js +8 -0
- package/api/resources/components/client/Client.d.ts +18 -7
- package/api/resources/components/client/Client.js +188 -89
- package/api/resources/credits/client/Client.d.ts +338 -0
- package/api/resources/credits/client/Client.js +2338 -0
- package/api/resources/credits/client/index.d.ts +1 -0
- package/api/resources/credits/client/index.js +17 -0
- package/api/resources/credits/client/requests/CountBillingCreditsGrantsRequest.d.ts +19 -0
- package/api/resources/credits/client/requests/CountBillingCreditsGrantsRequest.js +5 -0
- package/api/resources/credits/client/requests/CountBillingCreditsRequest.d.ts +19 -0
- package/api/resources/credits/client/requests/CountBillingCreditsRequest.js +5 -0
- package/api/resources/credits/client/requests/CountBillingPlanCreditGrantsRequest.d.ts +20 -0
- package/api/resources/credits/client/requests/CountBillingPlanCreditGrantsRequest.js +5 -0
- package/api/resources/credits/client/requests/CountCreditBundlesRequest.d.ts +22 -0
- package/api/resources/credits/client/requests/CountCreditBundlesRequest.js +5 -0
- package/api/resources/credits/client/requests/CreateBillingCreditRequestBody.d.ts +26 -0
- package/api/resources/credits/client/requests/CreateBillingCreditRequestBody.js +5 -0
- package/api/resources/credits/client/requests/CreateBillingPlanCreditGrantRequestBody.d.ts +21 -0
- package/api/resources/credits/client/requests/CreateBillingPlanCreditGrantRequestBody.js +5 -0
- package/api/resources/credits/client/requests/CreateCreditBundleRequestBody.d.ts +24 -0
- package/api/resources/credits/client/requests/CreateCreditBundleRequestBody.js +5 -0
- package/api/resources/credits/client/requests/ListBillingCreditsRequest.d.ts +19 -0
- package/api/resources/credits/client/requests/ListBillingCreditsRequest.js +5 -0
- package/api/resources/credits/client/requests/ListBillingPlanCreditGrantsRequest.d.ts +20 -0
- package/api/resources/credits/client/requests/ListBillingPlanCreditGrantsRequest.js +5 -0
- package/api/resources/credits/client/requests/ListCompanyGrantsRequest.d.ts +21 -0
- package/api/resources/credits/client/requests/ListCompanyGrantsRequest.js +5 -0
- package/api/resources/credits/client/requests/ListCreditBundlesRequest.d.ts +22 -0
- package/api/resources/credits/client/requests/ListCreditBundlesRequest.js +5 -0
- package/api/resources/credits/client/requests/ListGrantsForCreditRequest.d.ts +19 -0
- package/api/resources/credits/client/requests/ListGrantsForCreditRequest.js +5 -0
- package/api/resources/credits/client/requests/UpdateBillingCreditRequestBody.d.ts +24 -0
- package/api/resources/credits/client/requests/UpdateBillingCreditRequestBody.js +5 -0
- package/api/resources/credits/client/requests/ZeroOutGrantRequestBody.d.ts +11 -0
- package/api/resources/credits/client/requests/ZeroOutGrantRequestBody.js +5 -0
- package/api/resources/credits/client/requests/index.d.ts +14 -0
- package/api/resources/credits/client/requests/index.js +2 -0
- package/api/resources/credits/index.d.ts +2 -0
- package/api/resources/credits/index.js +18 -0
- package/api/resources/credits/types/CountBillingCreditsGrantsParams.d.ts +14 -0
- package/api/resources/credits/types/CountBillingCreditsGrantsParams.js +5 -0
- package/api/resources/credits/types/CountBillingCreditsGrantsResponse.d.ts +9 -0
- package/api/resources/credits/types/CountBillingCreditsGrantsResponse.js +5 -0
- package/api/resources/credits/types/CountBillingCreditsParams.d.ts +14 -0
- package/api/resources/credits/types/CountBillingCreditsParams.js +5 -0
- package/api/resources/credits/types/CountBillingCreditsResponse.d.ts +9 -0
- package/api/resources/credits/types/CountBillingCreditsResponse.js +5 -0
- package/api/resources/credits/types/CountBillingPlanCreditGrantsParams.d.ts +15 -0
- package/api/resources/credits/types/CountBillingPlanCreditGrantsParams.js +5 -0
- package/api/resources/credits/types/CountBillingPlanCreditGrantsResponse.d.ts +9 -0
- package/api/resources/credits/types/CountBillingPlanCreditGrantsResponse.js +5 -0
- package/api/resources/credits/types/CountCreditBundlesParams.d.ts +17 -0
- package/api/resources/credits/types/CountCreditBundlesParams.js +5 -0
- package/api/resources/credits/types/CountCreditBundlesRequestStatus.d.ts +8 -0
- package/api/resources/credits/types/CountCreditBundlesRequestStatus.js +10 -0
- package/api/resources/credits/types/CountCreditBundlesResponse.d.ts +9 -0
- package/api/resources/credits/types/CountCreditBundlesResponse.js +5 -0
- package/api/resources/credits/types/CountCreditBundlesResponseParamsStatus.d.ts +8 -0
- package/api/resources/credits/types/CountCreditBundlesResponseParamsStatus.js +10 -0
- package/api/resources/credits/types/CreateBillingCreditRequestBodyBurnStrategy.d.ts +10 -0
- package/api/resources/credits/types/CreateBillingCreditRequestBodyBurnStrategy.js +12 -0
- package/api/resources/credits/types/CreateBillingCreditRequestBodyDefaultRolloverPolicy.d.ts +9 -0
- package/api/resources/credits/types/CreateBillingCreditRequestBodyDefaultRolloverPolicy.js +11 -0
- package/api/resources/credits/types/CreateBillingCreditResponse.d.ts +9 -0
- package/api/resources/credits/types/CreateBillingCreditResponse.js +5 -0
- package/api/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetCadence.d.ts +10 -0
- package/api/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetCadence.js +12 -0
- package/api/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetStart.d.ts +8 -0
- package/api/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetStart.js +10 -0
- package/api/resources/credits/types/CreateBillingPlanCreditGrantResponse.d.ts +9 -0
- package/api/resources/credits/types/CreateBillingPlanCreditGrantResponse.js +5 -0
- package/api/resources/credits/types/CreateCreditBundleRequestBodyExpiryType.d.ts +8 -0
- package/api/resources/credits/types/CreateCreditBundleRequestBodyExpiryType.js +10 -0
- package/api/resources/credits/types/CreateCreditBundleRequestBodyStatus.d.ts +8 -0
- package/api/resources/credits/types/CreateCreditBundleRequestBodyStatus.js +10 -0
- package/api/resources/credits/types/CreateCreditBundleResponse.d.ts +9 -0
- package/api/resources/credits/types/CreateCreditBundleResponse.js +5 -0
- package/api/resources/credits/types/DeleteBillingPlanCreditGrantResponse.d.ts +9 -0
- package/api/resources/credits/types/DeleteBillingPlanCreditGrantResponse.js +5 -0
- package/api/resources/credits/types/DeleteCreditBundleResponse.d.ts +9 -0
- package/api/resources/credits/types/DeleteCreditBundleResponse.js +5 -0
- package/api/resources/credits/types/GetCreditBundleResponse.d.ts +9 -0
- package/api/resources/credits/types/GetCreditBundleResponse.js +5 -0
- package/api/resources/credits/types/GetSingleBillingCreditResponse.d.ts +9 -0
- package/api/resources/credits/types/GetSingleBillingCreditResponse.js +5 -0
- package/api/resources/credits/types/ListBillingCreditsParams.d.ts +14 -0
- package/api/resources/credits/types/ListBillingCreditsParams.js +5 -0
- package/api/resources/credits/types/ListBillingCreditsResponse.d.ts +10 -0
- package/api/resources/credits/types/ListBillingCreditsResponse.js +5 -0
- package/api/resources/credits/types/ListBillingPlanCreditGrantsParams.d.ts +15 -0
- package/api/resources/credits/types/ListBillingPlanCreditGrantsParams.js +5 -0
- package/api/resources/credits/types/ListBillingPlanCreditGrantsResponse.d.ts +10 -0
- package/api/resources/credits/types/ListBillingPlanCreditGrantsResponse.js +5 -0
- package/api/resources/credits/types/ListCompanyGrantsParams.d.ts +16 -0
- package/api/resources/credits/types/ListCompanyGrantsParams.js +5 -0
- package/api/resources/credits/types/ListCompanyGrantsRequestDir.d.ts +8 -0
- package/api/resources/credits/types/ListCompanyGrantsRequestDir.js +10 -0
- package/api/resources/credits/types/ListCompanyGrantsRequestOrder.d.ts +10 -0
- package/api/resources/credits/types/ListCompanyGrantsRequestOrder.js +12 -0
- package/api/resources/credits/types/ListCompanyGrantsResponse.d.ts +10 -0
- package/api/resources/credits/types/ListCompanyGrantsResponse.js +5 -0
- package/api/resources/credits/types/ListCompanyGrantsResponseParamsDir.d.ts +8 -0
- package/api/resources/credits/types/ListCompanyGrantsResponseParamsDir.js +10 -0
- package/api/resources/credits/types/ListCompanyGrantsResponseParamsOrder.d.ts +10 -0
- package/api/resources/credits/types/ListCompanyGrantsResponseParamsOrder.js +12 -0
- package/api/resources/credits/types/ListCreditBundlesParams.d.ts +17 -0
- package/api/resources/credits/types/ListCreditBundlesParams.js +5 -0
- package/api/resources/credits/types/ListCreditBundlesRequestStatus.d.ts +8 -0
- package/api/resources/credits/types/ListCreditBundlesRequestStatus.js +10 -0
- package/api/resources/credits/types/ListCreditBundlesResponse.d.ts +10 -0
- package/api/resources/credits/types/ListCreditBundlesResponse.js +5 -0
- package/api/resources/credits/types/ListCreditBundlesResponseParamsStatus.d.ts +8 -0
- package/api/resources/credits/types/ListCreditBundlesResponseParamsStatus.js +10 -0
- package/api/resources/credits/types/ListGrantsForCreditParams.d.ts +14 -0
- package/api/resources/credits/types/ListGrantsForCreditParams.js +5 -0
- package/api/resources/credits/types/ListGrantsForCreditResponse.d.ts +10 -0
- package/api/resources/credits/types/ListGrantsForCreditResponse.js +5 -0
- package/api/resources/credits/types/UpdateBillingCreditRequestBodyBurnStrategy.d.ts +10 -0
- package/api/resources/credits/types/UpdateBillingCreditRequestBodyBurnStrategy.js +12 -0
- package/api/resources/credits/types/UpdateBillingCreditRequestBodyDefaultRolloverPolicy.d.ts +9 -0
- package/api/resources/credits/types/UpdateBillingCreditRequestBodyDefaultRolloverPolicy.js +11 -0
- package/api/resources/credits/types/UpdateBillingCreditResponse.d.ts +9 -0
- package/api/resources/credits/types/UpdateBillingCreditResponse.js +5 -0
- package/api/resources/credits/types/UpdateCreditBundleResponse.d.ts +9 -0
- package/api/resources/credits/types/UpdateCreditBundleResponse.js +5 -0
- package/api/resources/credits/types/ZeroOutGrantRequestBodyReason.d.ts +8 -0
- package/api/resources/credits/types/ZeroOutGrantRequestBodyReason.js +10 -0
- package/api/resources/credits/types/ZeroOutGrantResponse.d.ts +9 -0
- package/api/resources/credits/types/ZeroOutGrantResponse.js +5 -0
- package/api/resources/credits/types/index.d.ts +45 -0
- package/api/resources/credits/types/index.js +61 -0
- package/api/resources/crm/client/Client.d.ts +15 -5
- package/api/resources/crm/client/Client.js +151 -61
- 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 +538 -239
- package/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +1 -0
- package/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +13 -1
- package/api/resources/entitlements/client/requests/GetFeatureUsageByCompanyRequest.d.ts +2 -4
- package/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +1 -0
- package/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +13 -1
- package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyValueType.d.ts +2 -1
- package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyValueType.js +1 -0
- package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyPriceBehavior.d.ts +11 -0
- package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyPriceBehavior.js +13 -0
- package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyValueType.d.ts +2 -1
- package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyValueType.js +1 -0
- package/api/resources/entitlements/types/GetFeatureUsageByCompanyParams.d.ts +1 -1
- package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyValueType.d.ts +2 -1
- package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyValueType.js +1 -0
- package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyPriceBehavior.d.ts +11 -0
- package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyPriceBehavior.js +13 -0
- package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyValueType.d.ts +2 -1
- package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyValueType.js +1 -0
- package/api/resources/entitlements/types/index.d.ts +2 -0
- package/api/resources/entitlements/types/index.js +2 -0
- package/api/resources/events/client/Client.d.ts +16 -6
- package/api/resources/events/client/Client.js +168 -76
- package/api/resources/events/client/requests/ListEventsRequest.d.ts +2 -1
- package/api/resources/events/types/ListEventsParams.d.ts +2 -1
- package/api/resources/events/types/ListEventsRequestEventTypesItem.d.ts +9 -0
- package/api/resources/events/types/ListEventsRequestEventTypesItem.js +11 -0
- package/api/resources/events/types/ListEventsResponseParamsEventTypesItem.d.ts +9 -0
- package/api/resources/events/types/ListEventsResponseParamsEventTypesItem.js +11 -0
- package/api/resources/events/types/index.d.ts +2 -0
- package/api/resources/events/types/index.js +2 -0
- package/api/resources/features/client/Client.d.ts +54 -21
- package/api/resources/features/client/Client.js +559 -240
- package/api/resources/features/client/requests/CountFeaturesRequest.d.ts +8 -0
- package/api/resources/features/client/requests/CreateFeatureRequestBody.d.ts +1 -1
- package/api/resources/features/client/requests/ListFeaturesRequest.d.ts +8 -0
- package/api/resources/features/client/requests/UpdateFeatureRequestBody.d.ts +1 -1
- package/api/resources/features/types/CountFeaturesParams.d.ts +4 -0
- package/api/resources/features/types/CreateFeatureRequestBodyLifecyclePhase.d.ts +15 -0
- package/api/resources/features/types/CreateFeatureRequestBodyLifecyclePhase.js +17 -0
- package/api/resources/features/types/ListFeaturesParams.d.ts +4 -0
- package/api/resources/features/types/UpdateFeatureRequestBodyLifecyclePhase.d.ts +15 -0
- package/api/resources/features/types/UpdateFeatureRequestBodyLifecyclePhase.js +17 -0
- package/api/resources/features/types/index.d.ts +2 -0
- package/api/resources/features/types/index.js +2 -0
- package/api/resources/index.d.ts +6 -0
- package/api/resources/index.js +7 -1
- package/api/resources/plangroups/client/Client.d.ts +7 -3
- package/api/resources/plangroups/client/Client.js +73 -37
- package/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +1 -0
- package/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +1 -0
- package/api/resources/plans/client/Client.d.ts +125 -12
- package/api/resources/plans/client/Client.js +1011 -172
- 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 +8 -2
- 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/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/UpdatePlanTraitResponse.d.ts +9 -0
- package/api/resources/plans/types/UpdatePlanTraitResponse.js +5 -0
- package/api/resources/plans/types/UpsertBillingProductRequestBodyChargeType.d.ts +9 -0
- package/api/resources/plans/types/UpsertBillingProductRequestBodyChargeType.js +11 -0
- package/api/resources/plans/types/index.d.ts +9 -0
- package/api/resources/plans/types/index.js +9 -0
- package/api/resources/webhooks/client/Client.d.ts +24 -9
- package/api/resources/webhooks/client/Client.js +249 -114
- 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/types/BillingCreditBundleResponseData.d.ts +18 -0
- package/api/types/BillingCreditBundleResponseData.js +5 -0
- package/api/types/BillingCreditGrantResponseData.d.ts +23 -0
- package/api/types/BillingCreditGrantResponseData.js +5 -0
- package/api/types/BillingCreditResponseData.d.ts +21 -0
- package/api/types/BillingCreditResponseData.js +5 -0
- package/api/types/BillingPlanCreditGrantResponseData.d.ts +14 -0
- package/api/types/BillingPlanCreditGrantResponseData.js +5 -0
- package/api/types/BillingPriceResponseData.d.ts +2 -0
- package/api/types/BillingPriceView.d.ts +8 -0
- package/api/types/BillingProductDetailResponseData.d.ts +2 -0
- package/api/types/BillingProductForSubscriptionResponseData.d.ts +5 -0
- package/api/types/BillingProductPlanResponseData.d.ts +3 -0
- package/api/types/BillingProductPriceResponseData.d.ts +4 -0
- package/api/types/BillingProductPriceTierResponseData.d.ts +9 -0
- package/api/types/BillingProductPriceTierResponseData.js +5 -0
- package/api/types/BillingProductPricing.d.ts +2 -0
- package/api/types/BillingProductResponseData.d.ts +2 -0
- package/api/types/ChangeSubscriptionInternalRequestBody.d.ts +2 -0
- package/api/types/ChangeSubscriptionRequestBody.d.ts +2 -0
- package/api/types/CheckFlagResponseData.d.ts +2 -0
- package/api/types/CheckoutDataResponseData.d.ts +2 -0
- package/api/types/CompanyDetailResponseData.d.ts +1 -0
- package/api/types/CompanyOverrideResponseData.d.ts +1 -0
- package/api/types/CompanyPlanDetailResponseData.d.ts +4 -0
- package/api/types/CompanyPlanWithBillingSubView.d.ts +2 -0
- package/api/types/CompanyViewWithFeatureUsageResponseData.d.ts +27 -0
- package/api/types/CompanyViewWithFeatureUsageResponseData.js +5 -0
- package/api/types/CompatiblePlans.d.ts +7 -0
- package/api/types/CompatiblePlans.js +5 -0
- package/api/types/CompatiblePlansResponseData.d.ts +7 -0
- package/api/types/CompatiblePlansResponseData.js +5 -0
- package/api/types/ComponentHydrateResponseData.d.ts +1 -0
- package/api/types/ComponentPreviewResponseData.d.ts +1 -0
- package/api/types/CreateBillingPriceTierRequestBody.d.ts +1 -0
- package/api/types/CreateEntitlementReqCommon.d.ts +1 -0
- package/api/types/CreateEntitlementReqCommonValueType.d.ts +2 -1
- package/api/types/CreateEntitlementReqCommonValueType.js +1 -0
- package/api/types/CreateFlagRequestBody.d.ts +1 -1
- package/api/types/CreateOrUpdateFlagRequestBody.d.ts +1 -1
- package/api/types/CreatePriceTierRequestBody.d.ts +9 -0
- package/api/types/CreatePriceTierRequestBody.js +5 -0
- package/api/types/CreditBundlePurchaseResponseData.d.ts +9 -0
- package/api/types/CreditBundlePurchaseResponseData.js +5 -0
- package/api/types/DataExportResponseData.d.ts +17 -0
- package/api/types/DataExportResponseData.js +5 -0
- package/api/types/EntitlementTriggerConfig.d.ts +6 -0
- package/api/types/EntitlementTriggerConfig.js +5 -0
- package/api/types/EventSummaryResponseData.d.ts +2 -2
- package/api/types/FeatureUsageDataResponseData.d.ts +14 -0
- package/api/types/FeatureUsageDataResponseData.js +5 -0
- package/api/types/PlanDetailResponseData.d.ts +3 -0
- package/api/types/PlanEntitlementResponseData.d.ts +3 -0
- package/api/types/PlanGroupPlanDetailResponseData.d.ts +4 -0
- package/api/types/PlanGroupResponseData.d.ts +1 -0
- package/api/types/PlanTraitResponseData.d.ts +16 -0
- package/api/types/PlanTraitResponseData.js +5 -0
- package/api/types/PreviewSubscriptionChangeResponseData.d.ts +4 -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/UpdateCreditBundleRequestBody.d.ts +7 -0
- package/api/types/UpdateCreditBundleRequestBody.js +5 -0
- package/api/types/UpdateEntitlementReqCommon.d.ts +1 -0
- package/api/types/UpdateEntitlementReqCommonValueType.d.ts +2 -1
- package/api/types/UpdateEntitlementReqCommonValueType.js +1 -0
- package/api/types/UpsertCompanyRequestBody.d.ts +1 -0
- package/api/types/UpsertTraitRequestBody.d.ts +1 -1
- package/api/types/UpsertUserRequestBody.d.ts +8 -3
- package/api/types/UpsertUserSubRequestBody.d.ts +4 -1
- package/api/types/UsageBasedEntitlementRequestBody.d.ts +11 -1
- package/api/types/UsageBasedEntitlementRequestBodyPriceBehavior.d.ts +11 -0
- package/api/types/UsageBasedEntitlementRequestBodyPriceBehavior.js +13 -0
- package/api/types/UsageBasedEntitlementResponseData.d.ts +1 -0
- package/api/types/WebhookResponseData.d.ts +2 -0
- package/api/types/index.d.ts +19 -0
- package/api/types/index.js +19 -0
- package/core/fetcher/APIResponse.d.ts +10 -0
- package/core/fetcher/Fetcher.js +7 -0
- 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/custom.js +17 -0
- package/core/fetcher/index.d.ts +3 -0
- package/core/fetcher/index.js +7 -1
- package/dist/Client.d.ts +6 -0
- package/dist/Client.js +30 -20
- package/dist/api/errors/BadRequestError.d.ts +2 -1
- package/dist/api/errors/BadRequestError.js +2 -1
- package/dist/api/errors/ForbiddenError.d.ts +2 -1
- package/dist/api/errors/ForbiddenError.js +2 -1
- package/dist/api/errors/InternalServerError.d.ts +2 -1
- package/dist/api/errors/InternalServerError.js +2 -1
- package/dist/api/errors/NotFoundError.d.ts +2 -1
- package/dist/api/errors/NotFoundError.js +2 -1
- package/dist/api/errors/UnauthorizedError.d.ts +2 -1
- package/dist/api/errors/UnauthorizedError.js +2 -1
- 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 +4 -3
- package/dist/api/resources/accesstokens/client/Client.js +33 -16
- package/dist/api/resources/accesstokens/client/requests/IssueTemporaryAccessTokenRequestBody.d.ts +1 -3
- package/dist/api/resources/accounts/client/Client.d.ts +51 -14
- package/dist/api/resources/accounts/client/Client.js +489 -175
- 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/index.d.ts +1 -0
- package/dist/api/resources/accounts/types/index.js +1 -0
- package/dist/api/resources/billing/client/Client.d.ts +64 -26
- package/dist/api/resources/billing/client/Client.js +657 -260
- package/dist/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +8 -0
- package/dist/api/resources/billing/client/requests/CountCustomersRequest.d.ts +1 -0
- package/dist/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +5 -1
- package/dist/api/resources/billing/client/requests/CreateBillingProductRequestBody.d.ts +2 -7
- package/dist/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +8 -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/ListProductPricesRequest.d.ts +8 -0
- package/dist/api/resources/billing/client/requests/SearchBillingPricesRequest.d.ts +1 -0
- package/dist/api/resources/billing/client/requests/index.d.ts +1 -1
- package/dist/api/resources/billing/types/CountBillingProductsParams.d.ts +4 -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/CreateBillingPriceRequestBodyTiersMode.d.ts +8 -0
- package/dist/api/resources/billing/types/CreateBillingPriceRequestBodyTiersMode.js +10 -0
- package/dist/api/resources/billing/types/ListBillingProductsParams.d.ts +4 -0
- package/dist/api/resources/billing/types/{ListCustomersParams.d.ts → 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/ListProductPricesParams.d.ts +4 -0
- package/dist/api/resources/billing/types/SearchBillingPricesParams.d.ts +1 -0
- package/{api/resources/billing/types/CreateBillingPriceRequestBodyTierMode.d.ts → dist/api/resources/billing/types/SearchBillingPricesRequestTiersMode.d.ts} +2 -2
- package/{api/resources/billing/types/CreateBillingPriceRequestBodyTierMode.js → dist/api/resources/billing/types/SearchBillingPricesRequestTiersMode.js} +2 -2
- package/dist/api/resources/billing/types/SearchBillingPricesResponseParamsTiersMode.d.ts +8 -0
- package/dist/api/resources/billing/types/SearchBillingPricesResponseParamsTiersMode.js +10 -0
- package/dist/api/resources/billing/types/index.d.ts +6 -3
- package/dist/api/resources/billing/types/index.js +6 -3
- package/dist/api/resources/checkout/client/Client.d.ts +23 -6
- package/dist/api/resources/checkout/client/Client.js +125 -52
- package/dist/api/resources/companies/client/Client.d.ts +119 -43
- package/dist/api/resources/companies/client/Client.js +1306 -434
- package/dist/api/resources/companies/client/requests/CountCompaniesForAdvancedFilterRequest.d.ts +66 -0
- package/dist/api/resources/companies/client/requests/CountCompaniesForAdvancedFilterRequest.js +5 -0
- package/dist/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +4 -0
- package/dist/api/resources/companies/client/requests/ListCompaniesForAdvancedFilterRequest.d.ts +66 -0
- package/dist/api/resources/companies/client/requests/ListCompaniesForAdvancedFilterRequest.js +5 -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/client/requests/index.d.ts +2 -0
- package/dist/api/resources/companies/types/CountCompaniesForAdvancedFilterParams.d.ts +37 -0
- package/dist/api/resources/companies/types/CountCompaniesForAdvancedFilterParams.js +5 -0
- package/dist/api/resources/companies/types/CountCompaniesForAdvancedFilterRequestSortOrderDirection.d.ts +11 -0
- package/dist/api/resources/companies/types/CountCompaniesForAdvancedFilterRequestSortOrderDirection.js +10 -0
- package/dist/api/resources/companies/types/CountCompaniesForAdvancedFilterResponse.d.ts +9 -0
- package/dist/api/resources/companies/types/CountCompaniesForAdvancedFilterResponse.js +5 -0
- package/dist/api/resources/companies/types/CountCompaniesForAdvancedFilterResponseParamsSortOrderDirection.d.ts +11 -0
- package/dist/api/resources/companies/types/CountCompaniesForAdvancedFilterResponseParamsSortOrderDirection.js +10 -0
- package/dist/api/resources/companies/types/CountCompaniesParams.d.ts +2 -0
- package/dist/api/resources/companies/types/ListCompaniesForAdvancedFilterParams.d.ts +37 -0
- package/dist/api/resources/companies/types/ListCompaniesForAdvancedFilterParams.js +5 -0
- package/dist/api/resources/companies/types/ListCompaniesForAdvancedFilterRequestSortOrderDirection.d.ts +11 -0
- package/dist/api/resources/companies/types/ListCompaniesForAdvancedFilterRequestSortOrderDirection.js +10 -0
- package/dist/api/resources/companies/types/ListCompaniesForAdvancedFilterResponse.d.ts +10 -0
- package/dist/api/resources/companies/types/ListCompaniesForAdvancedFilterResponse.js +5 -0
- package/dist/api/resources/companies/types/ListCompaniesForAdvancedFilterResponseParamsSortOrderDirection.d.ts +11 -0
- package/dist/api/resources/companies/types/ListCompaniesForAdvancedFilterResponseParamsSortOrderDirection.js +10 -0
- package/dist/api/resources/companies/types/ListCompaniesParams.d.ts +2 -0
- 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/index.d.ts +8 -0
- package/dist/api/resources/companies/types/index.js +8 -0
- package/dist/api/resources/components/client/Client.d.ts +18 -7
- package/dist/api/resources/components/client/Client.js +188 -89
- package/dist/api/resources/credits/client/Client.d.ts +338 -0
- package/dist/api/resources/credits/client/Client.js +2338 -0
- package/dist/api/resources/credits/client/index.d.ts +1 -0
- package/dist/api/resources/credits/client/index.js +17 -0
- package/dist/api/resources/credits/client/requests/CountBillingCreditsGrantsRequest.d.ts +19 -0
- package/dist/api/resources/credits/client/requests/CountBillingCreditsGrantsRequest.js +5 -0
- package/dist/api/resources/credits/client/requests/CountBillingCreditsRequest.d.ts +19 -0
- package/dist/api/resources/credits/client/requests/CountBillingCreditsRequest.js +5 -0
- package/dist/api/resources/credits/client/requests/CountBillingPlanCreditGrantsRequest.d.ts +20 -0
- package/dist/api/resources/credits/client/requests/CountBillingPlanCreditGrantsRequest.js +5 -0
- package/dist/api/resources/credits/client/requests/CountCreditBundlesRequest.d.ts +22 -0
- package/dist/api/resources/credits/client/requests/CountCreditBundlesRequest.js +5 -0
- package/dist/api/resources/credits/client/requests/CreateBillingCreditRequestBody.d.ts +26 -0
- package/dist/api/resources/credits/client/requests/CreateBillingCreditRequestBody.js +5 -0
- package/dist/api/resources/credits/client/requests/CreateBillingPlanCreditGrantRequestBody.d.ts +21 -0
- package/dist/api/resources/credits/client/requests/CreateBillingPlanCreditGrantRequestBody.js +5 -0
- package/dist/api/resources/credits/client/requests/CreateCreditBundleRequestBody.d.ts +24 -0
- package/dist/api/resources/credits/client/requests/CreateCreditBundleRequestBody.js +5 -0
- package/dist/api/resources/credits/client/requests/ListBillingCreditsRequest.d.ts +19 -0
- package/dist/api/resources/credits/client/requests/ListBillingCreditsRequest.js +5 -0
- package/dist/api/resources/credits/client/requests/ListBillingPlanCreditGrantsRequest.d.ts +20 -0
- package/dist/api/resources/credits/client/requests/ListBillingPlanCreditGrantsRequest.js +5 -0
- package/dist/api/resources/credits/client/requests/ListCompanyGrantsRequest.d.ts +21 -0
- package/dist/api/resources/credits/client/requests/ListCompanyGrantsRequest.js +5 -0
- package/dist/api/resources/credits/client/requests/ListCreditBundlesRequest.d.ts +22 -0
- package/dist/api/resources/credits/client/requests/ListCreditBundlesRequest.js +5 -0
- package/dist/api/resources/credits/client/requests/ListGrantsForCreditRequest.d.ts +19 -0
- package/dist/api/resources/credits/client/requests/ListGrantsForCreditRequest.js +5 -0
- package/dist/api/resources/credits/client/requests/UpdateBillingCreditRequestBody.d.ts +24 -0
- package/dist/api/resources/credits/client/requests/UpdateBillingCreditRequestBody.js +5 -0
- package/dist/api/resources/credits/client/requests/ZeroOutGrantRequestBody.d.ts +11 -0
- package/dist/api/resources/credits/client/requests/ZeroOutGrantRequestBody.js +5 -0
- package/dist/api/resources/credits/client/requests/index.d.ts +14 -0
- package/dist/api/resources/credits/client/requests/index.js +2 -0
- package/dist/api/resources/credits/index.d.ts +2 -0
- package/dist/api/resources/credits/index.js +18 -0
- package/dist/api/resources/credits/types/CountBillingCreditsGrantsParams.d.ts +14 -0
- package/dist/api/resources/credits/types/CountBillingCreditsGrantsParams.js +5 -0
- package/dist/api/resources/credits/types/CountBillingCreditsGrantsResponse.d.ts +9 -0
- package/dist/api/resources/credits/types/CountBillingCreditsGrantsResponse.js +5 -0
- package/dist/api/resources/credits/types/CountBillingCreditsParams.d.ts +14 -0
- package/dist/api/resources/credits/types/CountBillingCreditsParams.js +5 -0
- package/dist/api/resources/credits/types/CountBillingCreditsResponse.d.ts +9 -0
- package/dist/api/resources/credits/types/CountBillingCreditsResponse.js +5 -0
- package/dist/api/resources/credits/types/CountBillingPlanCreditGrantsParams.d.ts +15 -0
- package/dist/api/resources/credits/types/CountBillingPlanCreditGrantsParams.js +5 -0
- package/dist/api/resources/credits/types/CountBillingPlanCreditGrantsResponse.d.ts +9 -0
- package/dist/api/resources/credits/types/CountBillingPlanCreditGrantsResponse.js +5 -0
- package/dist/api/resources/credits/types/CountCreditBundlesParams.d.ts +17 -0
- package/dist/api/resources/credits/types/CountCreditBundlesParams.js +5 -0
- package/dist/api/resources/credits/types/CountCreditBundlesRequestStatus.d.ts +8 -0
- package/dist/api/resources/credits/types/CountCreditBundlesRequestStatus.js +10 -0
- package/dist/api/resources/credits/types/CountCreditBundlesResponse.d.ts +9 -0
- package/dist/api/resources/credits/types/CountCreditBundlesResponse.js +5 -0
- package/dist/api/resources/credits/types/CountCreditBundlesResponseParamsStatus.d.ts +8 -0
- package/dist/api/resources/credits/types/CountCreditBundlesResponseParamsStatus.js +10 -0
- package/dist/api/resources/credits/types/CreateBillingCreditRequestBodyBurnStrategy.d.ts +10 -0
- package/dist/api/resources/credits/types/CreateBillingCreditRequestBodyBurnStrategy.js +12 -0
- package/dist/api/resources/credits/types/CreateBillingCreditRequestBodyDefaultRolloverPolicy.d.ts +9 -0
- package/dist/api/resources/credits/types/CreateBillingCreditRequestBodyDefaultRolloverPolicy.js +11 -0
- package/dist/api/resources/credits/types/CreateBillingCreditResponse.d.ts +9 -0
- package/dist/api/resources/credits/types/CreateBillingCreditResponse.js +5 -0
- package/dist/api/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetCadence.d.ts +10 -0
- package/dist/api/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetCadence.js +12 -0
- package/dist/api/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetStart.d.ts +8 -0
- package/dist/api/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetStart.js +10 -0
- package/dist/api/resources/credits/types/CreateBillingPlanCreditGrantResponse.d.ts +9 -0
- package/dist/api/resources/credits/types/CreateBillingPlanCreditGrantResponse.js +5 -0
- package/dist/api/resources/credits/types/CreateCreditBundleRequestBodyExpiryType.d.ts +8 -0
- package/dist/api/resources/credits/types/CreateCreditBundleRequestBodyExpiryType.js +10 -0
- package/dist/api/resources/credits/types/CreateCreditBundleRequestBodyStatus.d.ts +8 -0
- package/dist/api/resources/credits/types/CreateCreditBundleRequestBodyStatus.js +10 -0
- package/dist/api/resources/credits/types/CreateCreditBundleResponse.d.ts +9 -0
- package/dist/api/resources/credits/types/CreateCreditBundleResponse.js +5 -0
- package/dist/api/resources/credits/types/DeleteBillingPlanCreditGrantResponse.d.ts +9 -0
- package/dist/api/resources/credits/types/DeleteBillingPlanCreditGrantResponse.js +5 -0
- package/dist/api/resources/credits/types/DeleteCreditBundleResponse.d.ts +9 -0
- package/dist/api/resources/credits/types/DeleteCreditBundleResponse.js +5 -0
- package/dist/api/resources/credits/types/GetCreditBundleResponse.d.ts +9 -0
- package/dist/api/resources/credits/types/GetCreditBundleResponse.js +5 -0
- package/dist/api/resources/credits/types/GetSingleBillingCreditResponse.d.ts +9 -0
- package/dist/api/resources/credits/types/GetSingleBillingCreditResponse.js +5 -0
- package/dist/api/resources/credits/types/ListBillingCreditsParams.d.ts +14 -0
- package/dist/api/resources/credits/types/ListBillingCreditsParams.js +5 -0
- package/dist/api/resources/credits/types/ListBillingCreditsResponse.d.ts +10 -0
- package/dist/api/resources/credits/types/ListBillingCreditsResponse.js +5 -0
- package/dist/api/resources/credits/types/ListBillingPlanCreditGrantsParams.d.ts +15 -0
- package/dist/api/resources/credits/types/ListBillingPlanCreditGrantsParams.js +5 -0
- package/dist/api/resources/credits/types/ListBillingPlanCreditGrantsResponse.d.ts +10 -0
- package/dist/api/resources/credits/types/ListBillingPlanCreditGrantsResponse.js +5 -0
- package/dist/api/resources/credits/types/ListCompanyGrantsParams.d.ts +16 -0
- package/dist/api/resources/credits/types/ListCompanyGrantsParams.js +5 -0
- package/dist/api/resources/credits/types/ListCompanyGrantsRequestDir.d.ts +8 -0
- package/dist/api/resources/credits/types/ListCompanyGrantsRequestDir.js +10 -0
- package/dist/api/resources/credits/types/ListCompanyGrantsRequestOrder.d.ts +10 -0
- package/dist/api/resources/credits/types/ListCompanyGrantsRequestOrder.js +12 -0
- package/dist/api/resources/credits/types/ListCompanyGrantsResponse.d.ts +10 -0
- package/dist/api/resources/credits/types/ListCompanyGrantsResponse.js +5 -0
- package/dist/api/resources/credits/types/ListCompanyGrantsResponseParamsDir.d.ts +8 -0
- package/dist/api/resources/credits/types/ListCompanyGrantsResponseParamsDir.js +10 -0
- package/dist/api/resources/credits/types/ListCompanyGrantsResponseParamsOrder.d.ts +10 -0
- package/dist/api/resources/credits/types/ListCompanyGrantsResponseParamsOrder.js +12 -0
- package/dist/api/resources/credits/types/ListCreditBundlesParams.d.ts +17 -0
- package/dist/api/resources/credits/types/ListCreditBundlesParams.js +5 -0
- package/dist/api/resources/credits/types/ListCreditBundlesRequestStatus.d.ts +8 -0
- package/dist/api/resources/credits/types/ListCreditBundlesRequestStatus.js +10 -0
- package/dist/api/resources/credits/types/ListCreditBundlesResponse.d.ts +10 -0
- package/dist/api/resources/credits/types/ListCreditBundlesResponse.js +5 -0
- package/dist/api/resources/credits/types/ListCreditBundlesResponseParamsStatus.d.ts +8 -0
- package/dist/api/resources/credits/types/ListCreditBundlesResponseParamsStatus.js +10 -0
- package/dist/api/resources/credits/types/ListGrantsForCreditParams.d.ts +14 -0
- package/dist/api/resources/credits/types/ListGrantsForCreditParams.js +5 -0
- package/dist/api/resources/credits/types/ListGrantsForCreditResponse.d.ts +10 -0
- package/dist/api/resources/credits/types/ListGrantsForCreditResponse.js +5 -0
- package/dist/api/resources/credits/types/UpdateBillingCreditRequestBodyBurnStrategy.d.ts +10 -0
- package/dist/api/resources/credits/types/UpdateBillingCreditRequestBodyBurnStrategy.js +12 -0
- package/dist/api/resources/credits/types/UpdateBillingCreditRequestBodyDefaultRolloverPolicy.d.ts +9 -0
- package/dist/api/resources/credits/types/UpdateBillingCreditRequestBodyDefaultRolloverPolicy.js +11 -0
- package/dist/api/resources/credits/types/UpdateBillingCreditResponse.d.ts +9 -0
- package/dist/api/resources/credits/types/UpdateBillingCreditResponse.js +5 -0
- package/dist/api/resources/credits/types/UpdateCreditBundleResponse.d.ts +9 -0
- package/dist/api/resources/credits/types/UpdateCreditBundleResponse.js +5 -0
- package/dist/api/resources/credits/types/ZeroOutGrantRequestBodyReason.d.ts +8 -0
- package/dist/api/resources/credits/types/ZeroOutGrantRequestBodyReason.js +10 -0
- package/dist/api/resources/credits/types/ZeroOutGrantResponse.d.ts +9 -0
- package/dist/api/resources/credits/types/ZeroOutGrantResponse.js +5 -0
- package/dist/api/resources/credits/types/index.d.ts +45 -0
- package/dist/api/resources/credits/types/index.js +61 -0
- package/dist/api/resources/crm/client/Client.d.ts +15 -5
- package/dist/api/resources/crm/client/Client.js +151 -61
- 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 +538 -239
- package/dist/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +1 -0
- package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +13 -1
- package/dist/api/resources/entitlements/client/requests/GetFeatureUsageByCompanyRequest.d.ts +2 -4
- package/dist/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +1 -0
- package/dist/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +13 -1
- package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyValueType.d.ts +2 -1
- package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyValueType.js +1 -0
- package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyPriceBehavior.d.ts +11 -0
- package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyPriceBehavior.js +13 -0
- package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyValueType.d.ts +2 -1
- package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyValueType.js +1 -0
- package/dist/api/resources/entitlements/types/GetFeatureUsageByCompanyParams.d.ts +1 -1
- package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyValueType.d.ts +2 -1
- package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyValueType.js +1 -0
- package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyPriceBehavior.d.ts +11 -0
- package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyPriceBehavior.js +13 -0
- package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyValueType.d.ts +2 -1
- package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyValueType.js +1 -0
- package/dist/api/resources/entitlements/types/index.d.ts +2 -0
- package/dist/api/resources/entitlements/types/index.js +2 -0
- package/dist/api/resources/events/client/Client.d.ts +16 -6
- package/dist/api/resources/events/client/Client.js +168 -76
- package/dist/api/resources/events/client/requests/ListEventsRequest.d.ts +2 -1
- package/dist/api/resources/events/types/ListEventsParams.d.ts +2 -1
- package/dist/api/resources/events/types/ListEventsRequestEventTypesItem.d.ts +9 -0
- package/dist/api/resources/events/types/ListEventsRequestEventTypesItem.js +11 -0
- package/dist/api/resources/events/types/ListEventsResponseParamsEventTypesItem.d.ts +9 -0
- package/dist/api/resources/events/types/ListEventsResponseParamsEventTypesItem.js +11 -0
- package/dist/api/resources/events/types/index.d.ts +2 -0
- package/dist/api/resources/events/types/index.js +2 -0
- package/dist/api/resources/features/client/Client.d.ts +54 -21
- package/dist/api/resources/features/client/Client.js +559 -240
- package/dist/api/resources/features/client/requests/CountFeaturesRequest.d.ts +8 -0
- package/dist/api/resources/features/client/requests/CreateFeatureRequestBody.d.ts +1 -1
- package/dist/api/resources/features/client/requests/ListFeaturesRequest.d.ts +8 -0
- package/dist/api/resources/features/client/requests/UpdateFeatureRequestBody.d.ts +1 -1
- package/dist/api/resources/features/types/CountFeaturesParams.d.ts +4 -0
- package/dist/api/resources/features/types/CreateFeatureRequestBodyLifecyclePhase.d.ts +15 -0
- package/dist/api/resources/features/types/CreateFeatureRequestBodyLifecyclePhase.js +17 -0
- package/dist/api/resources/features/types/ListFeaturesParams.d.ts +4 -0
- package/dist/api/resources/features/types/UpdateFeatureRequestBodyLifecyclePhase.d.ts +15 -0
- package/dist/api/resources/features/types/UpdateFeatureRequestBodyLifecyclePhase.js +17 -0
- package/dist/api/resources/features/types/index.d.ts +2 -0
- package/dist/api/resources/features/types/index.js +2 -0
- package/dist/api/resources/index.d.ts +6 -0
- package/dist/api/resources/index.js +7 -1
- package/dist/api/resources/plangroups/client/Client.d.ts +7 -3
- package/dist/api/resources/plangroups/client/Client.js +73 -37
- package/dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +1 -0
- package/dist/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +1 -0
- package/dist/api/resources/plans/client/Client.d.ts +125 -12
- package/dist/api/resources/plans/client/Client.js +1011 -172
- 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 +8 -2
- 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/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/UpdatePlanTraitResponse.d.ts +9 -0
- package/dist/api/resources/plans/types/UpdatePlanTraitResponse.js +5 -0
- package/dist/api/resources/plans/types/UpsertBillingProductRequestBodyChargeType.d.ts +9 -0
- package/dist/api/resources/plans/types/UpsertBillingProductRequestBodyChargeType.js +11 -0
- package/dist/api/resources/plans/types/index.d.ts +9 -0
- package/dist/api/resources/plans/types/index.js +9 -0
- package/dist/api/resources/webhooks/client/Client.d.ts +24 -9
- package/dist/api/resources/webhooks/client/Client.js +249 -114
- 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/types/BillingCreditBundleResponseData.d.ts +18 -0
- package/dist/api/types/BillingCreditBundleResponseData.js +5 -0
- package/dist/api/types/BillingCreditGrantResponseData.d.ts +23 -0
- package/dist/api/types/BillingCreditGrantResponseData.js +5 -0
- package/dist/api/types/BillingCreditResponseData.d.ts +21 -0
- package/dist/api/types/BillingCreditResponseData.js +5 -0
- package/dist/api/types/BillingPlanCreditGrantResponseData.d.ts +14 -0
- package/dist/api/types/BillingPlanCreditGrantResponseData.js +5 -0
- package/dist/api/types/BillingPriceResponseData.d.ts +2 -0
- package/dist/api/types/BillingPriceView.d.ts +8 -0
- package/dist/api/types/BillingProductDetailResponseData.d.ts +2 -0
- package/dist/api/types/BillingProductForSubscriptionResponseData.d.ts +5 -0
- package/dist/api/types/BillingProductPlanResponseData.d.ts +3 -0
- package/dist/api/types/BillingProductPriceResponseData.d.ts +4 -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 +2 -0
- package/dist/api/types/BillingProductResponseData.d.ts +2 -0
- package/dist/api/types/ChangeSubscriptionInternalRequestBody.d.ts +2 -0
- package/dist/api/types/ChangeSubscriptionRequestBody.d.ts +2 -0
- package/dist/api/types/CheckFlagResponseData.d.ts +2 -0
- package/dist/api/types/CheckoutDataResponseData.d.ts +2 -0
- package/dist/api/types/CompanyDetailResponseData.d.ts +1 -0
- package/dist/api/types/CompanyOverrideResponseData.d.ts +1 -0
- package/dist/api/types/CompanyPlanDetailResponseData.d.ts +4 -0
- package/dist/api/types/CompanyPlanWithBillingSubView.d.ts +2 -0
- package/dist/api/types/CompanyViewWithFeatureUsageResponseData.d.ts +27 -0
- package/dist/api/types/CompanyViewWithFeatureUsageResponseData.js +5 -0
- package/dist/api/types/CompatiblePlans.d.ts +7 -0
- package/dist/api/types/CompatiblePlans.js +5 -0
- package/dist/api/types/CompatiblePlansResponseData.d.ts +7 -0
- package/dist/api/types/CompatiblePlansResponseData.js +5 -0
- package/dist/api/types/ComponentHydrateResponseData.d.ts +1 -0
- package/dist/api/types/ComponentPreviewResponseData.d.ts +1 -0
- package/dist/api/types/CreateBillingPriceTierRequestBody.d.ts +1 -0
- package/dist/api/types/CreateEntitlementReqCommon.d.ts +1 -0
- package/dist/api/types/CreateEntitlementReqCommonValueType.d.ts +2 -1
- package/dist/api/types/CreateEntitlementReqCommonValueType.js +1 -0
- package/dist/api/types/CreateFlagRequestBody.d.ts +1 -1
- package/dist/api/types/CreateOrUpdateFlagRequestBody.d.ts +1 -1
- package/dist/api/types/CreatePriceTierRequestBody.d.ts +9 -0
- package/dist/api/types/CreatePriceTierRequestBody.js +5 -0
- package/dist/api/types/CreditBundlePurchaseResponseData.d.ts +9 -0
- package/dist/api/types/CreditBundlePurchaseResponseData.js +5 -0
- package/dist/api/types/DataExportResponseData.d.ts +17 -0
- package/dist/api/types/DataExportResponseData.js +5 -0
- package/dist/api/types/EntitlementTriggerConfig.d.ts +6 -0
- package/dist/api/types/EntitlementTriggerConfig.js +5 -0
- package/dist/api/types/EventSummaryResponseData.d.ts +2 -2
- package/dist/api/types/FeatureUsageDataResponseData.d.ts +14 -0
- package/dist/api/types/FeatureUsageDataResponseData.js +5 -0
- package/dist/api/types/PlanDetailResponseData.d.ts +3 -0
- package/dist/api/types/PlanEntitlementResponseData.d.ts +3 -0
- package/dist/api/types/PlanGroupPlanDetailResponseData.d.ts +4 -0
- package/dist/api/types/PlanGroupResponseData.d.ts +1 -0
- package/dist/api/types/PlanTraitResponseData.d.ts +16 -0
- package/dist/api/types/PlanTraitResponseData.js +5 -0
- package/dist/api/types/PreviewSubscriptionChangeResponseData.d.ts +4 -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/UpdateCreditBundleRequestBody.d.ts +7 -0
- package/dist/api/types/UpdateCreditBundleRequestBody.js +5 -0
- package/dist/api/types/UpdateEntitlementReqCommon.d.ts +1 -0
- package/dist/api/types/UpdateEntitlementReqCommonValueType.d.ts +2 -1
- package/dist/api/types/UpdateEntitlementReqCommonValueType.js +1 -0
- 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 +8 -3
- package/dist/api/types/UpsertUserSubRequestBody.d.ts +4 -1
- package/dist/api/types/UsageBasedEntitlementRequestBody.d.ts +11 -1
- package/dist/api/types/UsageBasedEntitlementRequestBodyPriceBehavior.d.ts +11 -0
- package/dist/api/types/UsageBasedEntitlementRequestBodyPriceBehavior.js +13 -0
- package/dist/api/types/UsageBasedEntitlementResponseData.d.ts +1 -0
- package/dist/api/types/WebhookResponseData.d.ts +2 -0
- package/dist/api/types/index.d.ts +19 -0
- package/dist/api/types/index.js +19 -0
- package/dist/core/fetcher/APIResponse.d.ts +10 -0
- package/dist/core/fetcher/Fetcher.js +7 -0
- 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/custom.js +17 -0
- package/dist/core/fetcher/index.d.ts +3 -0
- package/dist/core/fetcher/index.js +7 -1
- package/dist/errors/SchematicError.d.ts +4 -1
- package/dist/errors/SchematicError.js +4 -7
- package/dist/events.d.ts +4 -0
- package/dist/events.js +41 -5
- package/dist/events.test.js +50 -3
- package/dist/serialization/resources/accesstokens/client/requests/IssueTemporaryAccessTokenRequestBody.d.ts +0 -1
- package/dist/serialization/resources/accesstokens/client/requests/IssueTemporaryAccessTokenRequestBody.js +0 -1
- 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/index.d.ts +1 -0
- package/dist/serialization/resources/accounts/types/index.js +1 -0
- package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +6 -2
- package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.js +6 -2
- package/dist/serialization/resources/billing/client/requests/CreateBillingProductRequestBody.d.ts +1 -3
- package/dist/serialization/resources/billing/client/requests/CreateBillingProductRequestBody.js +1 -3
- package/dist/serialization/resources/billing/types/CountBillingProductsParams.d.ts +2 -0
- package/dist/serialization/resources/billing/types/CountBillingProductsParams.js +2 -0
- package/dist/serialization/resources/billing/types/CountCustomersParams.d.ts +1 -0
- package/dist/serialization/resources/billing/types/CountCustomersParams.js +1 -0
- 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/CreateBillingPriceRequestBodyTiersMode.d.ts +10 -0
- package/dist/serialization/resources/billing/types/CreateBillingPriceRequestBodyTiersMode.js +41 -0
- package/dist/serialization/resources/billing/types/ListBillingProductsParams.d.ts +2 -0
- package/dist/serialization/resources/billing/types/ListBillingProductsParams.js +2 -0
- package/{serialization/resources/billing/types/ListCustomersParams.d.ts → dist/serialization/resources/billing/types/ListCustomersWithSubscriptionsParams.d.ts} +3 -2
- package/{serialization/resources/billing/types/ListCustomersParams.js → dist/serialization/resources/billing/types/ListCustomersWithSubscriptionsParams.js} +3 -2
- package/dist/serialization/resources/billing/types/{ListCustomersResponse.d.ts → ListCustomersWithSubscriptionsResponse.d.ts} +4 -4
- package/dist/serialization/resources/billing/types/{ListCustomersResponse.js → ListCustomersWithSubscriptionsResponse.js} +4 -4
- package/dist/serialization/resources/billing/types/ListProductPricesParams.d.ts +2 -0
- package/dist/serialization/resources/billing/types/ListProductPricesParams.js +2 -0
- package/dist/serialization/resources/billing/types/SearchBillingPricesParams.d.ts +2 -0
- package/dist/serialization/resources/billing/types/SearchBillingPricesParams.js +2 -0
- package/dist/serialization/resources/billing/types/SearchBillingPricesRequestTiersMode.d.ts +10 -0
- package/dist/serialization/resources/billing/types/{CreateBillingPriceRequestBodyTierMode.js → SearchBillingPricesRequestTiersMode.js} +2 -2
- package/dist/serialization/resources/billing/types/SearchBillingPricesResponseParamsTiersMode.d.ts +10 -0
- package/dist/serialization/resources/billing/types/SearchBillingPricesResponseParamsTiersMode.js +41 -0
- package/dist/serialization/resources/billing/types/index.d.ts +6 -3
- package/dist/serialization/resources/billing/types/index.js +6 -3
- package/dist/serialization/resources/companies/types/CountCompaniesForAdvancedFilterParams.d.ts +26 -0
- package/dist/serialization/resources/companies/types/CountCompaniesForAdvancedFilterParams.js +57 -0
- package/dist/serialization/resources/companies/types/CountCompaniesForAdvancedFilterRequestSortOrderDirection.d.ts +10 -0
- package/dist/serialization/resources/companies/types/CountCompaniesForAdvancedFilterRequestSortOrderDirection.js +41 -0
- package/dist/serialization/resources/companies/types/CountCompaniesForAdvancedFilterResponse.d.ts +15 -0
- package/dist/serialization/resources/companies/types/CountCompaniesForAdvancedFilterResponse.js +46 -0
- package/dist/serialization/resources/companies/types/CountCompaniesForAdvancedFilterResponseParamsSortOrderDirection.d.ts +10 -0
- package/dist/serialization/resources/companies/types/CountCompaniesForAdvancedFilterResponseParamsSortOrderDirection.js +41 -0
- package/dist/serialization/resources/companies/types/CountCompaniesParams.d.ts +1 -0
- package/dist/serialization/resources/companies/types/CountCompaniesParams.js +1 -0
- package/dist/serialization/resources/companies/types/ListCompaniesForAdvancedFilterParams.d.ts +26 -0
- package/dist/serialization/resources/companies/types/ListCompaniesForAdvancedFilterParams.js +57 -0
- package/dist/serialization/resources/companies/types/ListCompaniesForAdvancedFilterRequestSortOrderDirection.d.ts +10 -0
- package/dist/serialization/resources/companies/types/ListCompaniesForAdvancedFilterRequestSortOrderDirection.js +41 -0
- package/dist/serialization/resources/companies/types/ListCompaniesForAdvancedFilterResponse.d.ts +15 -0
- package/dist/serialization/resources/companies/types/ListCompaniesForAdvancedFilterResponse.js +46 -0
- package/dist/serialization/resources/companies/types/ListCompaniesForAdvancedFilterResponseParamsSortOrderDirection.d.ts +10 -0
- package/dist/serialization/resources/companies/types/ListCompaniesForAdvancedFilterResponseParamsSortOrderDirection.js +41 -0
- package/dist/serialization/resources/companies/types/ListCompaniesParams.d.ts +1 -0
- package/dist/serialization/resources/companies/types/ListCompaniesParams.js +1 -0
- package/dist/serialization/resources/companies/types/LookupCompanyParams.d.ts +1 -1
- package/dist/serialization/resources/companies/types/LookupCompanyParams.js +1 -1
- package/dist/serialization/resources/companies/types/LookupUserParams.d.ts +1 -1
- package/dist/serialization/resources/companies/types/LookupUserParams.js +1 -1
- package/dist/serialization/resources/companies/types/index.d.ts +8 -0
- package/dist/serialization/resources/companies/types/index.js +8 -0
- package/dist/serialization/resources/credits/client/index.d.ts +1 -0
- package/dist/serialization/resources/credits/client/index.js +17 -0
- package/dist/serialization/resources/credits/client/requests/CreateBillingCreditRequestBody.d.ts +25 -0
- package/dist/serialization/resources/credits/client/requests/CreateBillingCreditRequestBody.js +56 -0
- package/dist/serialization/resources/credits/client/requests/CreateBillingPlanCreditGrantRequestBody.d.ts +18 -0
- package/dist/serialization/resources/credits/client/requests/CreateBillingPlanCreditGrantRequestBody.js +49 -0
- package/dist/serialization/resources/credits/client/requests/CreateCreditBundleRequestBody.d.ts +23 -0
- package/dist/serialization/resources/credits/client/requests/CreateCreditBundleRequestBody.js +54 -0
- package/dist/serialization/resources/credits/client/requests/UpdateBillingCreditRequestBody.d.ts +24 -0
- package/dist/serialization/resources/credits/client/requests/UpdateBillingCreditRequestBody.js +55 -0
- package/dist/serialization/resources/credits/client/requests/ZeroOutGrantRequestBody.d.ts +13 -0
- package/dist/serialization/resources/credits/client/requests/ZeroOutGrantRequestBody.js +44 -0
- package/dist/serialization/resources/credits/client/requests/index.d.ts +5 -0
- package/dist/serialization/resources/credits/client/requests/index.js +13 -0
- package/dist/serialization/resources/credits/index.d.ts +2 -0
- package/dist/serialization/resources/credits/index.js +18 -0
- package/dist/serialization/resources/credits/types/CountBillingCreditsGrantsParams.d.ts +15 -0
- package/dist/serialization/resources/credits/types/CountBillingCreditsGrantsParams.js +46 -0
- package/dist/serialization/resources/credits/types/CountBillingCreditsGrantsResponse.d.ts +15 -0
- package/dist/serialization/resources/credits/types/CountBillingCreditsGrantsResponse.js +46 -0
- package/dist/serialization/resources/credits/types/CountBillingCreditsParams.d.ts +15 -0
- package/dist/serialization/resources/credits/types/CountBillingCreditsParams.js +46 -0
- package/dist/serialization/resources/credits/types/CountBillingCreditsResponse.d.ts +15 -0
- package/dist/serialization/resources/credits/types/CountBillingCreditsResponse.js +46 -0
- package/dist/serialization/resources/credits/types/CountBillingPlanCreditGrantsParams.d.ts +16 -0
- package/dist/serialization/resources/credits/types/CountBillingPlanCreditGrantsParams.js +47 -0
- package/dist/serialization/resources/credits/types/CountBillingPlanCreditGrantsResponse.d.ts +15 -0
- package/dist/serialization/resources/credits/types/CountBillingPlanCreditGrantsResponse.js +46 -0
- package/dist/serialization/resources/credits/types/CountCreditBundlesParams.d.ts +18 -0
- package/dist/serialization/resources/credits/types/CountCreditBundlesParams.js +49 -0
- package/dist/serialization/resources/credits/types/CountCreditBundlesRequestStatus.d.ts +10 -0
- package/{serialization/resources/billing/types/CreateBillingPriceRequestBodyTierMode.js → dist/serialization/resources/credits/types/CountCreditBundlesRequestStatus.js} +2 -2
- package/dist/serialization/resources/credits/types/CountCreditBundlesResponse.d.ts +15 -0
- package/dist/serialization/resources/credits/types/CountCreditBundlesResponse.js +46 -0
- package/dist/serialization/resources/credits/types/CountCreditBundlesResponseParamsStatus.d.ts +10 -0
- package/dist/serialization/resources/credits/types/CountCreditBundlesResponseParamsStatus.js +41 -0
- package/dist/serialization/resources/credits/types/CreateBillingCreditRequestBodyBurnStrategy.d.ts +10 -0
- package/dist/serialization/resources/credits/types/CreateBillingCreditRequestBodyBurnStrategy.js +46 -0
- package/dist/serialization/resources/credits/types/CreateBillingCreditRequestBodyDefaultRolloverPolicy.d.ts +10 -0
- package/dist/serialization/resources/credits/types/CreateBillingCreditRequestBodyDefaultRolloverPolicy.js +41 -0
- package/dist/serialization/resources/credits/types/CreateBillingCreditResponse.d.ts +14 -0
- package/dist/serialization/resources/credits/types/CreateBillingCreditResponse.js +45 -0
- package/dist/serialization/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetCadence.d.ts +10 -0
- package/dist/serialization/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetCadence.js +41 -0
- package/dist/serialization/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetStart.d.ts +10 -0
- package/dist/serialization/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetStart.js +41 -0
- package/dist/serialization/resources/credits/types/CreateBillingPlanCreditGrantResponse.d.ts +14 -0
- package/dist/serialization/resources/credits/types/CreateBillingPlanCreditGrantResponse.js +45 -0
- package/dist/serialization/resources/credits/types/CreateCreditBundleRequestBodyExpiryType.d.ts +10 -0
- package/dist/serialization/resources/credits/types/CreateCreditBundleRequestBodyExpiryType.js +41 -0
- package/dist/serialization/resources/credits/types/CreateCreditBundleRequestBodyStatus.d.ts +10 -0
- package/dist/serialization/resources/credits/types/CreateCreditBundleRequestBodyStatus.js +41 -0
- package/dist/serialization/resources/credits/types/CreateCreditBundleResponse.d.ts +14 -0
- package/dist/serialization/resources/credits/types/CreateCreditBundleResponse.js +45 -0
- package/dist/serialization/resources/credits/types/DeleteBillingPlanCreditGrantResponse.d.ts +14 -0
- package/dist/serialization/resources/credits/types/DeleteBillingPlanCreditGrantResponse.js +45 -0
- package/dist/serialization/resources/credits/types/DeleteCreditBundleResponse.d.ts +14 -0
- package/dist/serialization/resources/credits/types/DeleteCreditBundleResponse.js +45 -0
- package/dist/serialization/resources/credits/types/GetCreditBundleResponse.d.ts +14 -0
- package/dist/serialization/resources/credits/types/GetCreditBundleResponse.js +45 -0
- package/dist/serialization/resources/credits/types/GetSingleBillingCreditResponse.d.ts +14 -0
- package/dist/serialization/resources/credits/types/GetSingleBillingCreditResponse.js +45 -0
- package/dist/serialization/resources/credits/types/ListBillingCreditsParams.d.ts +15 -0
- package/dist/serialization/resources/credits/types/ListBillingCreditsParams.js +46 -0
- package/dist/serialization/resources/credits/types/ListBillingCreditsResponse.d.ts +15 -0
- package/dist/serialization/resources/credits/types/ListBillingCreditsResponse.js +46 -0
- package/dist/serialization/resources/credits/types/ListBillingPlanCreditGrantsParams.d.ts +16 -0
- package/dist/serialization/resources/credits/types/ListBillingPlanCreditGrantsParams.js +47 -0
- package/dist/serialization/resources/credits/types/ListBillingPlanCreditGrantsResponse.d.ts +15 -0
- package/dist/serialization/resources/credits/types/ListBillingPlanCreditGrantsResponse.js +46 -0
- package/dist/serialization/resources/credits/types/ListCompanyGrantsParams.d.ts +18 -0
- package/dist/serialization/resources/credits/types/ListCompanyGrantsParams.js +49 -0
- package/dist/serialization/resources/credits/types/ListCompanyGrantsRequestDir.d.ts +10 -0
- package/dist/serialization/resources/credits/types/ListCompanyGrantsRequestDir.js +41 -0
- package/dist/serialization/resources/credits/types/ListCompanyGrantsRequestOrder.d.ts +10 -0
- package/dist/serialization/resources/credits/types/ListCompanyGrantsRequestOrder.js +41 -0
- package/dist/serialization/resources/credits/types/ListCompanyGrantsResponse.d.ts +15 -0
- package/dist/serialization/resources/credits/types/ListCompanyGrantsResponse.js +46 -0
- package/dist/serialization/resources/credits/types/ListCompanyGrantsResponseParamsDir.d.ts +10 -0
- package/dist/serialization/resources/credits/types/ListCompanyGrantsResponseParamsDir.js +41 -0
- package/dist/serialization/resources/credits/types/ListCompanyGrantsResponseParamsOrder.d.ts +10 -0
- package/dist/serialization/resources/credits/types/ListCompanyGrantsResponseParamsOrder.js +41 -0
- package/dist/serialization/resources/credits/types/ListCreditBundlesParams.d.ts +18 -0
- package/dist/serialization/resources/credits/types/ListCreditBundlesParams.js +49 -0
- package/dist/serialization/resources/credits/types/ListCreditBundlesRequestStatus.d.ts +10 -0
- package/dist/serialization/resources/credits/types/ListCreditBundlesRequestStatus.js +41 -0
- package/dist/serialization/resources/credits/types/ListCreditBundlesResponse.d.ts +15 -0
- package/dist/serialization/resources/credits/types/ListCreditBundlesResponse.js +46 -0
- package/dist/serialization/resources/credits/types/ListCreditBundlesResponseParamsStatus.d.ts +10 -0
- package/dist/serialization/resources/credits/types/ListCreditBundlesResponseParamsStatus.js +41 -0
- package/dist/serialization/resources/credits/types/ListGrantsForCreditParams.d.ts +15 -0
- package/dist/serialization/resources/credits/types/ListGrantsForCreditParams.js +46 -0
- package/dist/serialization/resources/credits/types/ListGrantsForCreditResponse.d.ts +15 -0
- package/dist/serialization/resources/credits/types/ListGrantsForCreditResponse.js +46 -0
- package/dist/serialization/resources/credits/types/UpdateBillingCreditRequestBodyBurnStrategy.d.ts +10 -0
- package/dist/serialization/resources/credits/types/UpdateBillingCreditRequestBodyBurnStrategy.js +46 -0
- package/dist/serialization/resources/credits/types/UpdateBillingCreditRequestBodyDefaultRolloverPolicy.d.ts +10 -0
- package/dist/serialization/resources/credits/types/UpdateBillingCreditRequestBodyDefaultRolloverPolicy.js +41 -0
- package/dist/serialization/resources/credits/types/UpdateBillingCreditResponse.d.ts +14 -0
- package/dist/serialization/resources/credits/types/UpdateBillingCreditResponse.js +45 -0
- package/dist/serialization/resources/credits/types/UpdateCreditBundleResponse.d.ts +14 -0
- package/dist/serialization/resources/credits/types/UpdateCreditBundleResponse.js +45 -0
- package/dist/serialization/resources/credits/types/ZeroOutGrantRequestBodyReason.d.ts +10 -0
- package/dist/serialization/resources/credits/types/ZeroOutGrantRequestBodyReason.js +41 -0
- package/dist/serialization/resources/credits/types/ZeroOutGrantResponse.d.ts +14 -0
- package/dist/serialization/resources/credits/types/ZeroOutGrantResponse.js +45 -0
- package/dist/serialization/resources/credits/types/index.d.ts +45 -0
- package/dist/serialization/resources/credits/types/index.js +61 -0
- 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.d.ts +1 -0
- package/dist/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.js +1 -0
- package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +13 -1
- package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +13 -1
- package/dist/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +1 -0
- package/dist/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.js +1 -0
- package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +13 -1
- package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +13 -1
- package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyValueType.d.ts +1 -1
- package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyValueType.js +1 -1
- package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyPriceBehavior.d.ts +10 -0
- package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyPriceBehavior.js +41 -0
- package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyValueType.d.ts +1 -1
- package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyValueType.js +1 -1
- package/dist/serialization/resources/entitlements/types/GetFeatureUsageByCompanyParams.d.ts +1 -1
- package/dist/serialization/resources/entitlements/types/GetFeatureUsageByCompanyParams.js +1 -1
- package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyValueType.d.ts +1 -1
- package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyValueType.js +1 -1
- package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyPriceBehavior.d.ts +10 -0
- package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyPriceBehavior.js +41 -0
- package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyValueType.d.ts +1 -1
- package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyValueType.js +1 -1
- package/dist/serialization/resources/entitlements/types/index.d.ts +2 -0
- package/dist/serialization/resources/entitlements/types/index.js +2 -0
- package/dist/serialization/resources/events/types/ListEventsParams.d.ts +2 -1
- package/dist/serialization/resources/events/types/ListEventsParams.js +2 -1
- package/dist/serialization/resources/events/types/ListEventsRequestEventTypesItem.d.ts +10 -0
- package/dist/serialization/resources/events/types/ListEventsRequestEventTypesItem.js +41 -0
- package/dist/serialization/resources/events/types/ListEventsResponseParamsEventTypesItem.d.ts +10 -0
- package/dist/serialization/resources/events/types/ListEventsResponseParamsEventTypesItem.js +41 -0
- package/dist/serialization/resources/events/types/index.d.ts +2 -0
- package/dist/serialization/resources/events/types/index.js +2 -0
- package/dist/serialization/resources/features/client/requests/CreateFeatureRequestBody.d.ts +2 -1
- package/dist/serialization/resources/features/client/requests/CreateFeatureRequestBody.js +2 -1
- package/dist/serialization/resources/features/client/requests/UpdateFeatureRequestBody.d.ts +2 -1
- package/dist/serialization/resources/features/client/requests/UpdateFeatureRequestBody.js +2 -1
- package/dist/serialization/resources/features/types/CountFeaturesParams.d.ts +2 -0
- package/dist/serialization/resources/features/types/CountFeaturesParams.js +2 -0
- package/dist/serialization/resources/features/types/CreateFeatureRequestBodyLifecyclePhase.d.ts +10 -0
- package/dist/serialization/resources/features/types/CreateFeatureRequestBodyLifecyclePhase.js +51 -0
- package/dist/serialization/resources/features/types/ListFeaturesParams.d.ts +2 -0
- package/dist/serialization/resources/features/types/ListFeaturesParams.js +2 -0
- package/dist/serialization/resources/features/types/UpdateFeatureRequestBodyLifecyclePhase.d.ts +10 -0
- package/dist/serialization/resources/features/types/UpdateFeatureRequestBodyLifecyclePhase.js +51 -0
- package/dist/serialization/resources/features/types/index.d.ts +2 -0
- package/dist/serialization/resources/features/types/index.js +2 -0
- package/dist/serialization/resources/index.d.ts +6 -0
- package/dist/serialization/resources/index.js +7 -1
- package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +2 -0
- package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js +2 -0
- package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +2 -0
- package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.js +2 -0
- package/dist/serialization/resources/plans/client/requests/CreatePlanTraitRequestBody.d.ts +14 -0
- package/dist/serialization/resources/plans/client/requests/CreatePlanTraitRequestBody.js +45 -0
- 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 +7 -1
- package/dist/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.js +7 -1
- 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/CreatePlanTraitResponse.d.ts +14 -0
- package/dist/serialization/resources/plans/types/CreatePlanTraitResponse.js +45 -0
- 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/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/UpdatePlanTraitResponse.d.ts +14 -0
- package/dist/serialization/resources/plans/types/UpdatePlanTraitResponse.js +45 -0
- package/dist/serialization/resources/plans/types/UpsertBillingProductRequestBodyChargeType.d.ts +10 -0
- package/dist/serialization/resources/plans/types/UpsertBillingProductRequestBodyChargeType.js +41 -0
- package/dist/serialization/resources/plans/types/index.d.ts +9 -0
- package/dist/serialization/resources/plans/types/index.js +9 -0
- package/dist/serialization/resources/webhooks/client/requests/CreateWebhookRequestBody.d.ts +2 -0
- package/dist/serialization/resources/webhooks/client/requests/CreateWebhookRequestBody.js +2 -0
- package/dist/serialization/resources/webhooks/client/requests/UpdateWebhookRequestBody.d.ts +2 -0
- package/dist/serialization/resources/webhooks/client/requests/UpdateWebhookRequestBody.js +2 -0
- package/dist/serialization/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.d.ts +1 -1
- package/dist/serialization/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.js +4 -0
- package/dist/serialization/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.d.ts +1 -1
- package/dist/serialization/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.js +4 -0
- package/dist/serialization/types/BillingCreditBundleResponseData.d.ts +24 -0
- package/dist/serialization/types/BillingCreditBundleResponseData.js +55 -0
- package/dist/serialization/types/BillingCreditGrantResponseData.d.ts +29 -0
- package/dist/serialization/types/BillingCreditGrantResponseData.js +60 -0
- package/dist/serialization/types/BillingCreditResponseData.d.ts +28 -0
- package/dist/serialization/types/BillingCreditResponseData.js +59 -0
- package/dist/serialization/types/BillingPlanCreditGrantResponseData.d.ts +20 -0
- package/dist/serialization/types/BillingPlanCreditGrantResponseData.js +51 -0
- package/dist/serialization/types/BillingPriceResponseData.d.ts +2 -0
- package/dist/serialization/types/BillingPriceResponseData.js +2 -0
- package/dist/serialization/types/BillingPriceView.d.ts +8 -0
- package/dist/serialization/types/BillingPriceView.js +8 -0
- package/dist/serialization/types/BillingProductDetailResponseData.d.ts +2 -0
- package/dist/serialization/types/BillingProductDetailResponseData.js +2 -0
- package/dist/serialization/types/BillingProductForSubscriptionResponseData.d.ts +5 -0
- package/dist/serialization/types/BillingProductForSubscriptionResponseData.js +5 -0
- package/dist/serialization/types/BillingProductPlanResponseData.d.ts +3 -0
- package/dist/serialization/types/BillingProductPlanResponseData.js +3 -0
- package/dist/serialization/types/BillingProductPriceResponseData.d.ts +4 -0
- package/dist/serialization/types/BillingProductPriceResponseData.js +4 -0
- package/dist/serialization/types/BillingProductPriceTierResponseData.d.ts +15 -0
- package/dist/serialization/types/BillingProductPriceTierResponseData.js +46 -0
- package/dist/serialization/types/BillingProductPricing.d.ts +2 -0
- package/dist/serialization/types/BillingProductPricing.js +2 -0
- package/dist/serialization/types/BillingProductResponseData.d.ts +2 -0
- package/dist/serialization/types/BillingProductResponseData.js +2 -0
- package/dist/serialization/types/ChangeSubscriptionInternalRequestBody.d.ts +3 -0
- package/dist/serialization/types/ChangeSubscriptionInternalRequestBody.js +3 -0
- package/dist/serialization/types/ChangeSubscriptionRequestBody.d.ts +3 -0
- package/dist/serialization/types/ChangeSubscriptionRequestBody.js +3 -0
- package/dist/serialization/types/CheckFlagResponseData.d.ts +1 -0
- package/dist/serialization/types/CheckFlagResponseData.js +1 -0
- package/dist/serialization/types/CheckoutDataResponseData.d.ts +4 -0
- package/dist/serialization/types/CheckoutDataResponseData.js +4 -0
- package/dist/serialization/types/CompanyDetailResponseData.d.ts +2 -1
- package/dist/serialization/types/CompanyDetailResponseData.js +2 -1
- package/dist/serialization/types/CompanyOverrideResponseData.d.ts +1 -0
- package/dist/serialization/types/CompanyOverrideResponseData.js +1 -0
- package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +4 -0
- package/dist/serialization/types/CompanyPlanDetailResponseData.js +4 -0
- package/dist/serialization/types/CompanyPlanWithBillingSubView.d.ts +2 -0
- package/dist/serialization/types/CompanyPlanWithBillingSubView.js +2 -0
- package/dist/serialization/types/CompanyViewWithFeatureUsageResponseData.d.ts +39 -0
- package/dist/serialization/types/CompanyViewWithFeatureUsageResponseData.js +70 -0
- package/dist/serialization/types/CompatiblePlans.d.ts +13 -0
- package/dist/serialization/types/CompatiblePlans.js +44 -0
- package/dist/serialization/types/CompatiblePlansResponseData.d.ts +13 -0
- package/dist/serialization/types/CompatiblePlansResponseData.js +44 -0
- package/dist/serialization/types/ComponentHydrateResponseData.d.ts +2 -0
- package/dist/serialization/types/ComponentHydrateResponseData.js +2 -0
- package/dist/serialization/types/ComponentPreviewResponseData.d.ts +2 -0
- package/dist/serialization/types/ComponentPreviewResponseData.js +2 -0
- package/dist/serialization/types/CreateBillingPriceTierRequestBody.d.ts +1 -0
- package/dist/serialization/types/CreateBillingPriceTierRequestBody.js +1 -0
- package/dist/serialization/types/CreateEntitlementReqCommon.d.ts +1 -0
- package/dist/serialization/types/CreateEntitlementReqCommon.js +1 -0
- package/dist/serialization/types/CreateEntitlementReqCommonValueType.d.ts +1 -1
- package/dist/serialization/types/CreateEntitlementReqCommonValueType.js +1 -1
- package/dist/serialization/types/CreateFlagRequestBody.d.ts +1 -1
- package/dist/serialization/types/CreateFlagRequestBody.js +1 -1
- package/dist/serialization/types/CreateOrUpdateFlagRequestBody.d.ts +1 -1
- package/dist/serialization/types/CreateOrUpdateFlagRequestBody.js +1 -1
- package/dist/serialization/types/CreatePriceTierRequestBody.d.ts +15 -0
- package/dist/serialization/types/CreatePriceTierRequestBody.js +46 -0
- package/dist/serialization/types/CreditBundlePurchaseResponseData.d.ts +15 -0
- package/dist/serialization/types/CreditBundlePurchaseResponseData.js +46 -0
- package/dist/serialization/types/DataExportResponseData.d.ts +20 -0
- package/dist/serialization/types/DataExportResponseData.js +51 -0
- package/dist/serialization/types/EntitlementTriggerConfig.d.ts +12 -0
- package/dist/serialization/types/EntitlementTriggerConfig.js +43 -0
- package/dist/serialization/types/EventSummaryResponseData.d.ts +2 -2
- package/dist/serialization/types/EventSummaryResponseData.js +2 -2
- package/dist/serialization/types/FeatureUsageDataResponseData.d.ts +20 -0
- package/dist/serialization/types/FeatureUsageDataResponseData.js +51 -0
- package/dist/serialization/types/PlanDetailResponseData.d.ts +3 -0
- package/dist/serialization/types/PlanDetailResponseData.js +3 -0
- package/dist/serialization/types/PlanEntitlementResponseData.d.ts +5 -0
- package/dist/serialization/types/PlanEntitlementResponseData.js +5 -0
- package/dist/serialization/types/PlanGroupPlanDetailResponseData.d.ts +4 -0
- package/dist/serialization/types/PlanGroupPlanDetailResponseData.js +4 -0
- package/dist/serialization/types/PlanGroupResponseData.d.ts +2 -0
- package/dist/serialization/types/PlanGroupResponseData.js +2 -0
- package/dist/serialization/types/PlanTraitResponseData.d.ts +19 -0
- package/dist/serialization/types/PlanTraitResponseData.js +50 -0
- package/dist/serialization/types/PreviewSubscriptionChangeResponseData.d.ts +5 -0
- package/dist/serialization/types/PreviewSubscriptionChangeResponseData.js +5 -0
- 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/UpdateCreditBundleRequestBody.d.ts +13 -0
- package/dist/serialization/types/UpdateCreditBundleRequestBody.js +44 -0
- package/dist/serialization/types/UpdateEntitlementReqCommon.d.ts +1 -0
- package/dist/serialization/types/UpdateEntitlementReqCommon.js +1 -0
- package/dist/serialization/types/UpdateEntitlementReqCommonValueType.d.ts +1 -1
- package/dist/serialization/types/UpdateEntitlementReqCommonValueType.js +1 -1
- package/dist/serialization/types/UpsertUserRequestBody.d.ts +3 -1
- package/dist/serialization/types/UpsertUserRequestBody.js +5 -1
- package/dist/serialization/types/UpsertUserSubRequestBody.d.ts +1 -0
- package/dist/serialization/types/UpsertUserSubRequestBody.js +1 -0
- package/dist/serialization/types/UsageBasedEntitlementRequestBody.d.ts +12 -1
- package/dist/serialization/types/UsageBasedEntitlementRequestBody.js +12 -1
- package/dist/serialization/types/UsageBasedEntitlementRequestBodyPriceBehavior.d.ts +10 -0
- package/dist/serialization/types/UsageBasedEntitlementRequestBodyPriceBehavior.js +41 -0
- package/dist/serialization/types/UsageBasedEntitlementResponseData.d.ts +1 -0
- package/dist/serialization/types/UsageBasedEntitlementResponseData.js +1 -0
- package/dist/serialization/types/WebhookResponseData.d.ts +2 -0
- package/dist/serialization/types/WebhookResponseData.js +2 -0
- package/dist/serialization/types/index.d.ts +19 -0
- package/dist/serialization/types/index.js +19 -0
- package/errors/SchematicError.d.ts +4 -1
- package/errors/SchematicError.js +4 -7
- package/events.d.ts +4 -0
- package/events.js +41 -5
- package/events.test.js +50 -3
- package/package.json +4 -3
- package/reference.md +1830 -378
- package/serialization/resources/accesstokens/client/requests/IssueTemporaryAccessTokenRequestBody.d.ts +0 -1
- package/serialization/resources/accesstokens/client/requests/IssueTemporaryAccessTokenRequestBody.js +0 -1
- package/serialization/resources/accounts/types/QuickstartResponse.d.ts +14 -0
- package/serialization/resources/accounts/types/QuickstartResponse.js +45 -0
- 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/CreateBillingPriceRequestBody.d.ts +6 -2
- package/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.js +6 -2
- package/serialization/resources/billing/client/requests/CreateBillingProductRequestBody.d.ts +1 -3
- package/serialization/resources/billing/client/requests/CreateBillingProductRequestBody.js +1 -3
- package/serialization/resources/billing/types/CountBillingProductsParams.d.ts +2 -0
- package/serialization/resources/billing/types/CountBillingProductsParams.js +2 -0
- package/serialization/resources/billing/types/CountCustomersParams.d.ts +1 -0
- package/serialization/resources/billing/types/CountCustomersParams.js +1 -0
- package/serialization/resources/billing/types/CreateBillingPriceRequestBodyBillingScheme.d.ts +10 -0
- package/serialization/resources/billing/types/CreateBillingPriceRequestBodyBillingScheme.js +41 -0
- package/serialization/resources/billing/types/CreateBillingPriceRequestBodyTiersMode.d.ts +10 -0
- package/serialization/resources/billing/types/CreateBillingPriceRequestBodyTiersMode.js +41 -0
- package/serialization/resources/billing/types/ListBillingProductsParams.d.ts +2 -0
- package/serialization/resources/billing/types/ListBillingProductsParams.js +2 -0
- package/{dist/serialization/resources/billing/types/ListCustomersParams.d.ts → serialization/resources/billing/types/ListCustomersWithSubscriptionsParams.d.ts} +3 -2
- package/{dist/serialization/resources/billing/types/ListCustomersParams.js → serialization/resources/billing/types/ListCustomersWithSubscriptionsParams.js} +3 -2
- package/serialization/resources/billing/types/{ListCustomersResponse.d.ts → ListCustomersWithSubscriptionsResponse.d.ts} +4 -4
- package/serialization/resources/billing/types/{ListCustomersResponse.js → ListCustomersWithSubscriptionsResponse.js} +4 -4
- package/serialization/resources/billing/types/ListProductPricesParams.d.ts +2 -0
- package/serialization/resources/billing/types/ListProductPricesParams.js +2 -0
- package/serialization/resources/billing/types/SearchBillingPricesParams.d.ts +2 -0
- package/serialization/resources/billing/types/SearchBillingPricesParams.js +2 -0
- package/serialization/resources/billing/types/SearchBillingPricesRequestTiersMode.d.ts +10 -0
- package/serialization/resources/billing/types/SearchBillingPricesRequestTiersMode.js +41 -0
- package/serialization/resources/billing/types/SearchBillingPricesResponseParamsTiersMode.d.ts +10 -0
- package/serialization/resources/billing/types/SearchBillingPricesResponseParamsTiersMode.js +41 -0
- package/serialization/resources/billing/types/index.d.ts +6 -3
- package/serialization/resources/billing/types/index.js +6 -3
- package/serialization/resources/companies/types/CountCompaniesForAdvancedFilterParams.d.ts +26 -0
- package/serialization/resources/companies/types/CountCompaniesForAdvancedFilterParams.js +57 -0
- package/serialization/resources/companies/types/CountCompaniesForAdvancedFilterRequestSortOrderDirection.d.ts +10 -0
- package/serialization/resources/companies/types/CountCompaniesForAdvancedFilterRequestSortOrderDirection.js +41 -0
- package/serialization/resources/companies/types/CountCompaniesForAdvancedFilterResponse.d.ts +15 -0
- package/serialization/resources/companies/types/CountCompaniesForAdvancedFilterResponse.js +46 -0
- package/serialization/resources/companies/types/CountCompaniesForAdvancedFilterResponseParamsSortOrderDirection.d.ts +10 -0
- package/serialization/resources/companies/types/CountCompaniesForAdvancedFilterResponseParamsSortOrderDirection.js +41 -0
- package/serialization/resources/companies/types/CountCompaniesParams.d.ts +1 -0
- package/serialization/resources/companies/types/CountCompaniesParams.js +1 -0
- package/serialization/resources/companies/types/ListCompaniesForAdvancedFilterParams.d.ts +26 -0
- package/serialization/resources/companies/types/ListCompaniesForAdvancedFilterParams.js +57 -0
- package/serialization/resources/companies/types/ListCompaniesForAdvancedFilterRequestSortOrderDirection.d.ts +10 -0
- package/serialization/resources/companies/types/ListCompaniesForAdvancedFilterRequestSortOrderDirection.js +41 -0
- package/serialization/resources/companies/types/ListCompaniesForAdvancedFilterResponse.d.ts +15 -0
- package/serialization/resources/companies/types/ListCompaniesForAdvancedFilterResponse.js +46 -0
- package/serialization/resources/companies/types/ListCompaniesForAdvancedFilterResponseParamsSortOrderDirection.d.ts +10 -0
- package/serialization/resources/companies/types/ListCompaniesForAdvancedFilterResponseParamsSortOrderDirection.js +41 -0
- package/serialization/resources/companies/types/ListCompaniesParams.d.ts +1 -0
- package/serialization/resources/companies/types/ListCompaniesParams.js +1 -0
- package/serialization/resources/companies/types/LookupCompanyParams.d.ts +1 -1
- package/serialization/resources/companies/types/LookupCompanyParams.js +1 -1
- package/serialization/resources/companies/types/LookupUserParams.d.ts +1 -1
- package/serialization/resources/companies/types/LookupUserParams.js +1 -1
- package/serialization/resources/companies/types/index.d.ts +8 -0
- package/serialization/resources/companies/types/index.js +8 -0
- package/serialization/resources/credits/client/index.d.ts +1 -0
- package/serialization/resources/credits/client/index.js +17 -0
- package/serialization/resources/credits/client/requests/CreateBillingCreditRequestBody.d.ts +25 -0
- package/serialization/resources/credits/client/requests/CreateBillingCreditRequestBody.js +56 -0
- package/serialization/resources/credits/client/requests/CreateBillingPlanCreditGrantRequestBody.d.ts +18 -0
- package/serialization/resources/credits/client/requests/CreateBillingPlanCreditGrantRequestBody.js +49 -0
- package/serialization/resources/credits/client/requests/CreateCreditBundleRequestBody.d.ts +23 -0
- package/serialization/resources/credits/client/requests/CreateCreditBundleRequestBody.js +54 -0
- package/serialization/resources/credits/client/requests/UpdateBillingCreditRequestBody.d.ts +24 -0
- package/serialization/resources/credits/client/requests/UpdateBillingCreditRequestBody.js +55 -0
- package/serialization/resources/credits/client/requests/ZeroOutGrantRequestBody.d.ts +13 -0
- package/serialization/resources/credits/client/requests/ZeroOutGrantRequestBody.js +44 -0
- package/serialization/resources/credits/client/requests/index.d.ts +5 -0
- package/serialization/resources/credits/client/requests/index.js +13 -0
- package/serialization/resources/credits/index.d.ts +2 -0
- package/serialization/resources/credits/index.js +18 -0
- package/serialization/resources/credits/types/CountBillingCreditsGrantsParams.d.ts +15 -0
- package/serialization/resources/credits/types/CountBillingCreditsGrantsParams.js +46 -0
- package/serialization/resources/credits/types/CountBillingCreditsGrantsResponse.d.ts +15 -0
- package/serialization/resources/credits/types/CountBillingCreditsGrantsResponse.js +46 -0
- package/serialization/resources/credits/types/CountBillingCreditsParams.d.ts +15 -0
- package/serialization/resources/credits/types/CountBillingCreditsParams.js +46 -0
- package/serialization/resources/credits/types/CountBillingCreditsResponse.d.ts +15 -0
- package/serialization/resources/credits/types/CountBillingCreditsResponse.js +46 -0
- package/serialization/resources/credits/types/CountBillingPlanCreditGrantsParams.d.ts +16 -0
- package/serialization/resources/credits/types/CountBillingPlanCreditGrantsParams.js +47 -0
- package/serialization/resources/credits/types/CountBillingPlanCreditGrantsResponse.d.ts +15 -0
- package/serialization/resources/credits/types/CountBillingPlanCreditGrantsResponse.js +46 -0
- package/serialization/resources/credits/types/CountCreditBundlesParams.d.ts +18 -0
- package/serialization/resources/credits/types/CountCreditBundlesParams.js +49 -0
- package/serialization/resources/credits/types/CountCreditBundlesRequestStatus.d.ts +10 -0
- package/serialization/resources/credits/types/CountCreditBundlesRequestStatus.js +41 -0
- package/serialization/resources/credits/types/CountCreditBundlesResponse.d.ts +15 -0
- package/serialization/resources/credits/types/CountCreditBundlesResponse.js +46 -0
- package/serialization/resources/credits/types/CountCreditBundlesResponseParamsStatus.d.ts +10 -0
- package/serialization/resources/credits/types/CountCreditBundlesResponseParamsStatus.js +41 -0
- package/serialization/resources/credits/types/CreateBillingCreditRequestBodyBurnStrategy.d.ts +10 -0
- package/serialization/resources/credits/types/CreateBillingCreditRequestBodyBurnStrategy.js +46 -0
- package/serialization/resources/credits/types/CreateBillingCreditRequestBodyDefaultRolloverPolicy.d.ts +10 -0
- package/serialization/resources/credits/types/CreateBillingCreditRequestBodyDefaultRolloverPolicy.js +41 -0
- package/serialization/resources/credits/types/CreateBillingCreditResponse.d.ts +14 -0
- package/serialization/resources/credits/types/CreateBillingCreditResponse.js +45 -0
- package/serialization/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetCadence.d.ts +10 -0
- package/serialization/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetCadence.js +41 -0
- package/serialization/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetStart.d.ts +10 -0
- package/serialization/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetStart.js +41 -0
- package/serialization/resources/credits/types/CreateBillingPlanCreditGrantResponse.d.ts +14 -0
- package/serialization/resources/credits/types/CreateBillingPlanCreditGrantResponse.js +45 -0
- package/serialization/resources/credits/types/CreateCreditBundleRequestBodyExpiryType.d.ts +10 -0
- package/serialization/resources/credits/types/CreateCreditBundleRequestBodyExpiryType.js +41 -0
- package/serialization/resources/credits/types/CreateCreditBundleRequestBodyStatus.d.ts +10 -0
- package/serialization/resources/credits/types/CreateCreditBundleRequestBodyStatus.js +41 -0
- package/serialization/resources/credits/types/CreateCreditBundleResponse.d.ts +14 -0
- package/serialization/resources/credits/types/CreateCreditBundleResponse.js +45 -0
- package/serialization/resources/credits/types/DeleteBillingPlanCreditGrantResponse.d.ts +14 -0
- package/serialization/resources/credits/types/DeleteBillingPlanCreditGrantResponse.js +45 -0
- package/serialization/resources/credits/types/DeleteCreditBundleResponse.d.ts +14 -0
- package/serialization/resources/credits/types/DeleteCreditBundleResponse.js +45 -0
- package/serialization/resources/credits/types/GetCreditBundleResponse.d.ts +14 -0
- package/serialization/resources/credits/types/GetCreditBundleResponse.js +45 -0
- package/serialization/resources/credits/types/GetSingleBillingCreditResponse.d.ts +14 -0
- package/serialization/resources/credits/types/GetSingleBillingCreditResponse.js +45 -0
- package/serialization/resources/credits/types/ListBillingCreditsParams.d.ts +15 -0
- package/serialization/resources/credits/types/ListBillingCreditsParams.js +46 -0
- package/serialization/resources/credits/types/ListBillingCreditsResponse.d.ts +15 -0
- package/serialization/resources/credits/types/ListBillingCreditsResponse.js +46 -0
- package/serialization/resources/credits/types/ListBillingPlanCreditGrantsParams.d.ts +16 -0
- package/serialization/resources/credits/types/ListBillingPlanCreditGrantsParams.js +47 -0
- package/serialization/resources/credits/types/ListBillingPlanCreditGrantsResponse.d.ts +15 -0
- package/serialization/resources/credits/types/ListBillingPlanCreditGrantsResponse.js +46 -0
- package/serialization/resources/credits/types/ListCompanyGrantsParams.d.ts +18 -0
- package/serialization/resources/credits/types/ListCompanyGrantsParams.js +49 -0
- package/serialization/resources/credits/types/ListCompanyGrantsRequestDir.d.ts +10 -0
- package/serialization/resources/credits/types/ListCompanyGrantsRequestDir.js +41 -0
- package/serialization/resources/credits/types/ListCompanyGrantsRequestOrder.d.ts +10 -0
- package/serialization/resources/credits/types/ListCompanyGrantsRequestOrder.js +41 -0
- package/serialization/resources/credits/types/ListCompanyGrantsResponse.d.ts +15 -0
- package/serialization/resources/credits/types/ListCompanyGrantsResponse.js +46 -0
- package/serialization/resources/credits/types/ListCompanyGrantsResponseParamsDir.d.ts +10 -0
- package/serialization/resources/credits/types/ListCompanyGrantsResponseParamsDir.js +41 -0
- package/serialization/resources/credits/types/ListCompanyGrantsResponseParamsOrder.d.ts +10 -0
- package/serialization/resources/credits/types/ListCompanyGrantsResponseParamsOrder.js +41 -0
- package/serialization/resources/credits/types/ListCreditBundlesParams.d.ts +18 -0
- package/serialization/resources/credits/types/ListCreditBundlesParams.js +49 -0
- package/serialization/resources/credits/types/ListCreditBundlesRequestStatus.d.ts +10 -0
- package/serialization/resources/credits/types/ListCreditBundlesRequestStatus.js +41 -0
- package/serialization/resources/credits/types/ListCreditBundlesResponse.d.ts +15 -0
- package/serialization/resources/credits/types/ListCreditBundlesResponse.js +46 -0
- package/serialization/resources/credits/types/ListCreditBundlesResponseParamsStatus.d.ts +10 -0
- package/serialization/resources/credits/types/ListCreditBundlesResponseParamsStatus.js +41 -0
- package/serialization/resources/credits/types/ListGrantsForCreditParams.d.ts +15 -0
- package/serialization/resources/credits/types/ListGrantsForCreditParams.js +46 -0
- package/serialization/resources/credits/types/ListGrantsForCreditResponse.d.ts +15 -0
- package/serialization/resources/credits/types/ListGrantsForCreditResponse.js +46 -0
- package/serialization/resources/credits/types/UpdateBillingCreditRequestBodyBurnStrategy.d.ts +10 -0
- package/serialization/resources/credits/types/UpdateBillingCreditRequestBodyBurnStrategy.js +46 -0
- package/serialization/resources/credits/types/UpdateBillingCreditRequestBodyDefaultRolloverPolicy.d.ts +10 -0
- package/serialization/resources/credits/types/UpdateBillingCreditRequestBodyDefaultRolloverPolicy.js +41 -0
- package/serialization/resources/credits/types/UpdateBillingCreditResponse.d.ts +14 -0
- package/serialization/resources/credits/types/UpdateBillingCreditResponse.js +45 -0
- package/serialization/resources/credits/types/UpdateCreditBundleResponse.d.ts +14 -0
- package/serialization/resources/credits/types/UpdateCreditBundleResponse.js +45 -0
- package/serialization/resources/credits/types/ZeroOutGrantRequestBodyReason.d.ts +10 -0
- package/serialization/resources/credits/types/ZeroOutGrantRequestBodyReason.js +41 -0
- package/serialization/resources/credits/types/ZeroOutGrantResponse.d.ts +14 -0
- package/serialization/resources/credits/types/ZeroOutGrantResponse.js +45 -0
- package/serialization/resources/credits/types/index.d.ts +45 -0
- package/serialization/resources/credits/types/index.js +61 -0
- 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.d.ts +1 -0
- package/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.js +1 -0
- package/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +13 -1
- package/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +13 -1
- package/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +1 -0
- package/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.js +1 -0
- package/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +13 -1
- package/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +13 -1
- package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyValueType.d.ts +1 -1
- package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyValueType.js +1 -1
- package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyPriceBehavior.d.ts +10 -0
- package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyPriceBehavior.js +41 -0
- package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyValueType.d.ts +1 -1
- package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyValueType.js +1 -1
- package/serialization/resources/entitlements/types/GetFeatureUsageByCompanyParams.d.ts +1 -1
- package/serialization/resources/entitlements/types/GetFeatureUsageByCompanyParams.js +1 -1
- package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyValueType.d.ts +1 -1
- package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyValueType.js +1 -1
- package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyPriceBehavior.d.ts +10 -0
- package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyPriceBehavior.js +41 -0
- package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyValueType.d.ts +1 -1
- package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyValueType.js +1 -1
- package/serialization/resources/entitlements/types/index.d.ts +2 -0
- package/serialization/resources/entitlements/types/index.js +2 -0
- package/serialization/resources/events/types/ListEventsParams.d.ts +2 -1
- package/serialization/resources/events/types/ListEventsParams.js +2 -1
- package/serialization/resources/events/types/ListEventsRequestEventTypesItem.d.ts +10 -0
- package/serialization/resources/events/types/ListEventsRequestEventTypesItem.js +41 -0
- package/serialization/resources/events/types/ListEventsResponseParamsEventTypesItem.d.ts +10 -0
- package/serialization/resources/events/types/ListEventsResponseParamsEventTypesItem.js +41 -0
- package/serialization/resources/events/types/index.d.ts +2 -0
- package/serialization/resources/events/types/index.js +2 -0
- package/serialization/resources/features/client/requests/CreateFeatureRequestBody.d.ts +2 -1
- package/serialization/resources/features/client/requests/CreateFeatureRequestBody.js +2 -1
- package/serialization/resources/features/client/requests/UpdateFeatureRequestBody.d.ts +2 -1
- package/serialization/resources/features/client/requests/UpdateFeatureRequestBody.js +2 -1
- package/serialization/resources/features/types/CountFeaturesParams.d.ts +2 -0
- package/serialization/resources/features/types/CountFeaturesParams.js +2 -0
- package/serialization/resources/features/types/CreateFeatureRequestBodyLifecyclePhase.d.ts +10 -0
- package/serialization/resources/features/types/CreateFeatureRequestBodyLifecyclePhase.js +51 -0
- package/serialization/resources/features/types/ListFeaturesParams.d.ts +2 -0
- package/serialization/resources/features/types/ListFeaturesParams.js +2 -0
- package/serialization/resources/features/types/UpdateFeatureRequestBodyLifecyclePhase.d.ts +10 -0
- package/serialization/resources/features/types/UpdateFeatureRequestBodyLifecyclePhase.js +51 -0
- package/serialization/resources/features/types/index.d.ts +2 -0
- package/serialization/resources/features/types/index.js +2 -0
- package/serialization/resources/index.d.ts +6 -0
- package/serialization/resources/index.js +7 -1
- package/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +2 -0
- package/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js +2 -0
- package/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +2 -0
- package/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.js +2 -0
- package/serialization/resources/plans/client/requests/CreatePlanTraitRequestBody.d.ts +14 -0
- package/serialization/resources/plans/client/requests/CreatePlanTraitRequestBody.js +45 -0
- 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 +7 -1
- package/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.js +7 -1
- 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/CreatePlanTraitResponse.d.ts +14 -0
- package/serialization/resources/plans/types/CreatePlanTraitResponse.js +45 -0
- package/serialization/resources/plans/types/DeletePlanTraitResponse.d.ts +14 -0
- package/serialization/resources/plans/types/DeletePlanTraitResponse.js +45 -0
- 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/UpdatePlanTraitResponse.d.ts +14 -0
- package/serialization/resources/plans/types/UpdatePlanTraitResponse.js +45 -0
- package/serialization/resources/plans/types/UpsertBillingProductRequestBodyChargeType.d.ts +10 -0
- package/serialization/resources/plans/types/UpsertBillingProductRequestBodyChargeType.js +41 -0
- package/serialization/resources/plans/types/index.d.ts +9 -0
- package/serialization/resources/plans/types/index.js +9 -0
- package/serialization/resources/webhooks/client/requests/CreateWebhookRequestBody.d.ts +2 -0
- package/serialization/resources/webhooks/client/requests/CreateWebhookRequestBody.js +2 -0
- package/serialization/resources/webhooks/client/requests/UpdateWebhookRequestBody.d.ts +2 -0
- package/serialization/resources/webhooks/client/requests/UpdateWebhookRequestBody.js +2 -0
- package/serialization/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.d.ts +1 -1
- package/serialization/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.js +4 -0
- package/serialization/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.d.ts +1 -1
- package/serialization/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.js +4 -0
- package/serialization/types/BillingCreditBundleResponseData.d.ts +24 -0
- package/serialization/types/BillingCreditBundleResponseData.js +55 -0
- package/serialization/types/BillingCreditGrantResponseData.d.ts +29 -0
- package/serialization/types/BillingCreditGrantResponseData.js +60 -0
- package/serialization/types/BillingCreditResponseData.d.ts +28 -0
- package/serialization/types/BillingCreditResponseData.js +59 -0
- package/serialization/types/BillingPlanCreditGrantResponseData.d.ts +20 -0
- package/serialization/types/BillingPlanCreditGrantResponseData.js +51 -0
- package/serialization/types/BillingPriceResponseData.d.ts +2 -0
- package/serialization/types/BillingPriceResponseData.js +2 -0
- package/serialization/types/BillingPriceView.d.ts +8 -0
- package/serialization/types/BillingPriceView.js +8 -0
- package/serialization/types/BillingProductDetailResponseData.d.ts +2 -0
- package/serialization/types/BillingProductDetailResponseData.js +2 -0
- package/serialization/types/BillingProductForSubscriptionResponseData.d.ts +5 -0
- package/serialization/types/BillingProductForSubscriptionResponseData.js +5 -0
- package/serialization/types/BillingProductPlanResponseData.d.ts +3 -0
- package/serialization/types/BillingProductPlanResponseData.js +3 -0
- package/serialization/types/BillingProductPriceResponseData.d.ts +4 -0
- package/serialization/types/BillingProductPriceResponseData.js +4 -0
- package/serialization/types/BillingProductPriceTierResponseData.d.ts +15 -0
- package/serialization/types/BillingProductPriceTierResponseData.js +46 -0
- package/serialization/types/BillingProductPricing.d.ts +2 -0
- package/serialization/types/BillingProductPricing.js +2 -0
- package/serialization/types/BillingProductResponseData.d.ts +2 -0
- package/serialization/types/BillingProductResponseData.js +2 -0
- package/serialization/types/ChangeSubscriptionInternalRequestBody.d.ts +3 -0
- package/serialization/types/ChangeSubscriptionInternalRequestBody.js +3 -0
- package/serialization/types/ChangeSubscriptionRequestBody.d.ts +3 -0
- package/serialization/types/ChangeSubscriptionRequestBody.js +3 -0
- package/serialization/types/CheckFlagResponseData.d.ts +1 -0
- package/serialization/types/CheckFlagResponseData.js +1 -0
- package/serialization/types/CheckoutDataResponseData.d.ts +4 -0
- package/serialization/types/CheckoutDataResponseData.js +4 -0
- package/serialization/types/CompanyDetailResponseData.d.ts +2 -1
- package/serialization/types/CompanyDetailResponseData.js +2 -1
- package/serialization/types/CompanyOverrideResponseData.d.ts +1 -0
- package/serialization/types/CompanyOverrideResponseData.js +1 -0
- package/serialization/types/CompanyPlanDetailResponseData.d.ts +4 -0
- package/serialization/types/CompanyPlanDetailResponseData.js +4 -0
- package/serialization/types/CompanyPlanWithBillingSubView.d.ts +2 -0
- package/serialization/types/CompanyPlanWithBillingSubView.js +2 -0
- package/serialization/types/CompanyViewWithFeatureUsageResponseData.d.ts +39 -0
- package/serialization/types/CompanyViewWithFeatureUsageResponseData.js +70 -0
- package/serialization/types/CompatiblePlans.d.ts +13 -0
- package/serialization/types/CompatiblePlans.js +44 -0
- package/serialization/types/CompatiblePlansResponseData.d.ts +13 -0
- package/serialization/types/CompatiblePlansResponseData.js +44 -0
- package/serialization/types/ComponentHydrateResponseData.d.ts +2 -0
- package/serialization/types/ComponentHydrateResponseData.js +2 -0
- package/serialization/types/ComponentPreviewResponseData.d.ts +2 -0
- package/serialization/types/ComponentPreviewResponseData.js +2 -0
- package/serialization/types/CreateBillingPriceTierRequestBody.d.ts +1 -0
- package/serialization/types/CreateBillingPriceTierRequestBody.js +1 -0
- package/serialization/types/CreateEntitlementReqCommon.d.ts +1 -0
- package/serialization/types/CreateEntitlementReqCommon.js +1 -0
- package/serialization/types/CreateEntitlementReqCommonValueType.d.ts +1 -1
- package/serialization/types/CreateEntitlementReqCommonValueType.js +1 -1
- package/serialization/types/CreateFlagRequestBody.d.ts +1 -1
- package/serialization/types/CreateFlagRequestBody.js +1 -1
- package/serialization/types/CreateOrUpdateFlagRequestBody.d.ts +1 -1
- package/serialization/types/CreateOrUpdateFlagRequestBody.js +1 -1
- package/serialization/types/CreatePriceTierRequestBody.d.ts +15 -0
- package/serialization/types/CreatePriceTierRequestBody.js +46 -0
- package/serialization/types/CreditBundlePurchaseResponseData.d.ts +15 -0
- package/serialization/types/CreditBundlePurchaseResponseData.js +46 -0
- package/serialization/types/DataExportResponseData.d.ts +20 -0
- package/serialization/types/DataExportResponseData.js +51 -0
- package/serialization/types/EntitlementTriggerConfig.d.ts +12 -0
- package/serialization/types/EntitlementTriggerConfig.js +43 -0
- package/serialization/types/EventSummaryResponseData.d.ts +2 -2
- package/serialization/types/EventSummaryResponseData.js +2 -2
- package/serialization/types/FeatureUsageDataResponseData.d.ts +20 -0
- package/serialization/types/FeatureUsageDataResponseData.js +51 -0
- package/serialization/types/PlanDetailResponseData.d.ts +3 -0
- package/serialization/types/PlanDetailResponseData.js +3 -0
- package/serialization/types/PlanEntitlementResponseData.d.ts +5 -0
- package/serialization/types/PlanEntitlementResponseData.js +5 -0
- package/serialization/types/PlanGroupPlanDetailResponseData.d.ts +4 -0
- package/serialization/types/PlanGroupPlanDetailResponseData.js +4 -0
- package/serialization/types/PlanGroupResponseData.d.ts +2 -0
- package/serialization/types/PlanGroupResponseData.js +2 -0
- package/serialization/types/PlanTraitResponseData.d.ts +19 -0
- package/serialization/types/PlanTraitResponseData.js +50 -0
- package/serialization/types/PreviewSubscriptionChangeResponseData.d.ts +5 -0
- package/serialization/types/PreviewSubscriptionChangeResponseData.js +5 -0
- 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/UpdateCreditBundleRequestBody.d.ts +13 -0
- package/serialization/types/UpdateCreditBundleRequestBody.js +44 -0
- package/serialization/types/UpdateEntitlementReqCommon.d.ts +1 -0
- package/serialization/types/UpdateEntitlementReqCommon.js +1 -0
- package/serialization/types/UpdateEntitlementReqCommonValueType.d.ts +1 -1
- package/serialization/types/UpdateEntitlementReqCommonValueType.js +1 -1
- package/serialization/types/UpsertUserRequestBody.d.ts +3 -1
- package/serialization/types/UpsertUserRequestBody.js +5 -1
- package/serialization/types/UpsertUserSubRequestBody.d.ts +1 -0
- package/serialization/types/UpsertUserSubRequestBody.js +1 -0
- package/serialization/types/UsageBasedEntitlementRequestBody.d.ts +12 -1
- package/serialization/types/UsageBasedEntitlementRequestBody.js +12 -1
- package/serialization/types/UsageBasedEntitlementRequestBodyPriceBehavior.d.ts +10 -0
- package/serialization/types/UsageBasedEntitlementRequestBodyPriceBehavior.js +41 -0
- package/serialization/types/UsageBasedEntitlementResponseData.d.ts +1 -0
- package/serialization/types/UsageBasedEntitlementResponseData.js +1 -0
- package/serialization/types/WebhookResponseData.d.ts +2 -0
- package/serialization/types/WebhookResponseData.js +2 -0
- package/serialization/types/index.d.ts +19 -0
- package/serialization/types/index.js +19 -0
- package/dist/serialization/resources/billing/types/CreateBillingPriceRequestBodyTierMode.d.ts +0 -10
- package/serialization/resources/billing/types/CreateBillingPriceRequestBodyTierMode.d.ts +0 -10
- /package/api/resources/{billing/client/requests/ListCustomersRequest.js → accounts/types/QuickstartResponse.js} +0 -0
- /package/api/resources/billing/{types/ListCustomersParams.js → client/requests/ListCustomersWithSubscriptionsRequest.js} +0 -0
- /package/api/resources/billing/types/{ListCustomersResponse.js → ListCustomersWithSubscriptionsParams.js} +0 -0
- /package/{dist/api/resources/billing/client/requests/ListCustomersRequest.js → api/resources/billing/types/ListCustomersWithSubscriptionsResponse.js} +0 -0
- /package/{dist/api/resources/billing/types/ListCustomersParams.js → api/resources/companies/client/requests/CountCompaniesForAdvancedFilterRequest.js} +0 -0
- /package/{dist/api/resources/billing/types/ListCustomersResponse.js → api/resources/companies/client/requests/ListCompaniesForAdvancedFilterRequest.js} +0 -0
|
@@ -67,12 +67,16 @@ class Entitlements {
|
|
|
67
67
|
* @throws {@link Schematic.BadRequestError}
|
|
68
68
|
* @throws {@link Schematic.UnauthorizedError}
|
|
69
69
|
* @throws {@link Schematic.ForbiddenError}
|
|
70
|
+
* @throws {@link Schematic.NotFoundError}
|
|
70
71
|
* @throws {@link Schematic.InternalServerError}
|
|
71
72
|
*
|
|
72
73
|
* @example
|
|
73
74
|
* await client.entitlements.listCompanyOverrides()
|
|
74
75
|
*/
|
|
75
|
-
listCompanyOverrides() {
|
|
76
|
+
listCompanyOverrides(request = {}, requestOptions) {
|
|
77
|
+
return core.HttpResponsePromise.fromPromise(this.__listCompanyOverrides(request, requestOptions));
|
|
78
|
+
}
|
|
79
|
+
__listCompanyOverrides() {
|
|
76
80
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
77
81
|
var _a, _b, _c;
|
|
78
82
|
const { companyId, companyIds, featureId, featureIds, ids, withoutExpired, q, limit, offset } = request;
|
|
@@ -122,7 +126,7 @@ class Entitlements {
|
|
|
122
126
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
123
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"),
|
|
124
128
|
method: "GET",
|
|
125
|
-
headers: Object.assign(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.12", "User-Agent": "@schematichq/schematic-typescript-node/1.1.12", "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),
|
|
126
130
|
contentType: "application/json",
|
|
127
131
|
queryParameters: _queryParams,
|
|
128
132
|
requestType: "json",
|
|
@@ -131,13 +135,16 @@ class Entitlements {
|
|
|
131
135
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
132
136
|
});
|
|
133
137
|
if (_response.ok) {
|
|
134
|
-
return
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
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
|
+
};
|
|
141
148
|
}
|
|
142
149
|
if (_response.error.reason === "status-code") {
|
|
143
150
|
switch (_response.error.statusCode) {
|
|
@@ -148,7 +155,7 @@ class Entitlements {
|
|
|
148
155
|
allowUnrecognizedEnumValues: true,
|
|
149
156
|
skipValidation: true,
|
|
150
157
|
breadcrumbsPrefix: ["response"],
|
|
151
|
-
}));
|
|
158
|
+
}), _response.rawResponse);
|
|
152
159
|
case 401:
|
|
153
160
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
154
161
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -156,7 +163,7 @@ class Entitlements {
|
|
|
156
163
|
allowUnrecognizedEnumValues: true,
|
|
157
164
|
skipValidation: true,
|
|
158
165
|
breadcrumbsPrefix: ["response"],
|
|
159
|
-
}));
|
|
166
|
+
}), _response.rawResponse);
|
|
160
167
|
case 403:
|
|
161
168
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
162
169
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -164,7 +171,15 @@ class Entitlements {
|
|
|
164
171
|
allowUnrecognizedEnumValues: true,
|
|
165
172
|
skipValidation: true,
|
|
166
173
|
breadcrumbsPrefix: ["response"],
|
|
167
|
-
}));
|
|
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);
|
|
168
183
|
case 500:
|
|
169
184
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
170
185
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -172,11 +187,12 @@ class Entitlements {
|
|
|
172
187
|
allowUnrecognizedEnumValues: true,
|
|
173
188
|
skipValidation: true,
|
|
174
189
|
breadcrumbsPrefix: ["response"],
|
|
175
|
-
}));
|
|
190
|
+
}), _response.rawResponse);
|
|
176
191
|
default:
|
|
177
192
|
throw new errors.SchematicError({
|
|
178
193
|
statusCode: _response.error.statusCode,
|
|
179
194
|
body: _response.error.body,
|
|
195
|
+
rawResponse: _response.rawResponse,
|
|
180
196
|
});
|
|
181
197
|
}
|
|
182
198
|
}
|
|
@@ -185,12 +201,14 @@ class Entitlements {
|
|
|
185
201
|
throw new errors.SchematicError({
|
|
186
202
|
statusCode: _response.error.statusCode,
|
|
187
203
|
body: _response.error.rawBody,
|
|
204
|
+
rawResponse: _response.rawResponse,
|
|
188
205
|
});
|
|
189
206
|
case "timeout":
|
|
190
207
|
throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /company-overrides.");
|
|
191
208
|
case "unknown":
|
|
192
209
|
throw new errors.SchematicError({
|
|
193
210
|
message: _response.error.errorMessage,
|
|
211
|
+
rawResponse: _response.rawResponse,
|
|
194
212
|
});
|
|
195
213
|
}
|
|
196
214
|
});
|
|
@@ -202,6 +220,7 @@ class Entitlements {
|
|
|
202
220
|
* @throws {@link Schematic.BadRequestError}
|
|
203
221
|
* @throws {@link Schematic.UnauthorizedError}
|
|
204
222
|
* @throws {@link Schematic.ForbiddenError}
|
|
223
|
+
* @throws {@link Schematic.NotFoundError}
|
|
205
224
|
* @throws {@link Schematic.InternalServerError}
|
|
206
225
|
*
|
|
207
226
|
* @example
|
|
@@ -212,12 +231,15 @@ class Entitlements {
|
|
|
212
231
|
* })
|
|
213
232
|
*/
|
|
214
233
|
createCompanyOverride(request, requestOptions) {
|
|
234
|
+
return core.HttpResponsePromise.fromPromise(this.__createCompanyOverride(request, requestOptions));
|
|
235
|
+
}
|
|
236
|
+
__createCompanyOverride(request, requestOptions) {
|
|
215
237
|
return __awaiter(this, void 0, void 0, function* () {
|
|
216
238
|
var _a, _b, _c;
|
|
217
239
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
218
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"),
|
|
219
241
|
method: "POST",
|
|
220
|
-
headers: Object.assign(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.12", "User-Agent": "@schematichq/schematic-typescript-node/1.1.12", "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),
|
|
221
243
|
contentType: "application/json",
|
|
222
244
|
requestType: "json",
|
|
223
245
|
body: serializers.CreateCompanyOverrideRequestBody.jsonOrThrow(request, {
|
|
@@ -228,13 +250,16 @@ class Entitlements {
|
|
|
228
250
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
229
251
|
});
|
|
230
252
|
if (_response.ok) {
|
|
231
|
-
return
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
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
|
+
};
|
|
238
263
|
}
|
|
239
264
|
if (_response.error.reason === "status-code") {
|
|
240
265
|
switch (_response.error.statusCode) {
|
|
@@ -245,7 +270,7 @@ class Entitlements {
|
|
|
245
270
|
allowUnrecognizedEnumValues: true,
|
|
246
271
|
skipValidation: true,
|
|
247
272
|
breadcrumbsPrefix: ["response"],
|
|
248
|
-
}));
|
|
273
|
+
}), _response.rawResponse);
|
|
249
274
|
case 401:
|
|
250
275
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
251
276
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -253,7 +278,7 @@ class Entitlements {
|
|
|
253
278
|
allowUnrecognizedEnumValues: true,
|
|
254
279
|
skipValidation: true,
|
|
255
280
|
breadcrumbsPrefix: ["response"],
|
|
256
|
-
}));
|
|
281
|
+
}), _response.rawResponse);
|
|
257
282
|
case 403:
|
|
258
283
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
259
284
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -261,7 +286,15 @@ class Entitlements {
|
|
|
261
286
|
allowUnrecognizedEnumValues: true,
|
|
262
287
|
skipValidation: true,
|
|
263
288
|
breadcrumbsPrefix: ["response"],
|
|
264
|
-
}));
|
|
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);
|
|
265
298
|
case 500:
|
|
266
299
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
267
300
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -269,11 +302,12 @@ class Entitlements {
|
|
|
269
302
|
allowUnrecognizedEnumValues: true,
|
|
270
303
|
skipValidation: true,
|
|
271
304
|
breadcrumbsPrefix: ["response"],
|
|
272
|
-
}));
|
|
305
|
+
}), _response.rawResponse);
|
|
273
306
|
default:
|
|
274
307
|
throw new errors.SchematicError({
|
|
275
308
|
statusCode: _response.error.statusCode,
|
|
276
309
|
body: _response.error.body,
|
|
310
|
+
rawResponse: _response.rawResponse,
|
|
277
311
|
});
|
|
278
312
|
}
|
|
279
313
|
}
|
|
@@ -282,12 +316,14 @@ class Entitlements {
|
|
|
282
316
|
throw new errors.SchematicError({
|
|
283
317
|
statusCode: _response.error.statusCode,
|
|
284
318
|
body: _response.error.rawBody,
|
|
319
|
+
rawResponse: _response.rawResponse,
|
|
285
320
|
});
|
|
286
321
|
case "timeout":
|
|
287
322
|
throw new errors.SchematicTimeoutError("Timeout exceeded when calling POST /company-overrides.");
|
|
288
323
|
case "unknown":
|
|
289
324
|
throw new errors.SchematicError({
|
|
290
325
|
message: _response.error.errorMessage,
|
|
326
|
+
rawResponse: _response.rawResponse,
|
|
291
327
|
});
|
|
292
328
|
}
|
|
293
329
|
});
|
|
@@ -305,12 +341,15 @@ class Entitlements {
|
|
|
305
341
|
* await client.entitlements.getCompanyOverride("company_override_id")
|
|
306
342
|
*/
|
|
307
343
|
getCompanyOverride(companyOverrideId, requestOptions) {
|
|
344
|
+
return core.HttpResponsePromise.fromPromise(this.__getCompanyOverride(companyOverrideId, requestOptions));
|
|
345
|
+
}
|
|
346
|
+
__getCompanyOverride(companyOverrideId, requestOptions) {
|
|
308
347
|
return __awaiter(this, void 0, void 0, function* () {
|
|
309
348
|
var _a, _b, _c;
|
|
310
349
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
311
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)}`),
|
|
312
351
|
method: "GET",
|
|
313
|
-
headers: Object.assign(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.12", "User-Agent": "@schematichq/schematic-typescript-node/1.1.12", "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),
|
|
314
353
|
contentType: "application/json",
|
|
315
354
|
requestType: "json",
|
|
316
355
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -318,13 +357,16 @@ class Entitlements {
|
|
|
318
357
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
319
358
|
});
|
|
320
359
|
if (_response.ok) {
|
|
321
|
-
return
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
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
|
+
};
|
|
328
370
|
}
|
|
329
371
|
if (_response.error.reason === "status-code") {
|
|
330
372
|
switch (_response.error.statusCode) {
|
|
@@ -335,7 +377,7 @@ class Entitlements {
|
|
|
335
377
|
allowUnrecognizedEnumValues: true,
|
|
336
378
|
skipValidation: true,
|
|
337
379
|
breadcrumbsPrefix: ["response"],
|
|
338
|
-
}));
|
|
380
|
+
}), _response.rawResponse);
|
|
339
381
|
case 403:
|
|
340
382
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
341
383
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -343,7 +385,7 @@ class Entitlements {
|
|
|
343
385
|
allowUnrecognizedEnumValues: true,
|
|
344
386
|
skipValidation: true,
|
|
345
387
|
breadcrumbsPrefix: ["response"],
|
|
346
|
-
}));
|
|
388
|
+
}), _response.rawResponse);
|
|
347
389
|
case 404:
|
|
348
390
|
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
349
391
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -351,7 +393,7 @@ class Entitlements {
|
|
|
351
393
|
allowUnrecognizedEnumValues: true,
|
|
352
394
|
skipValidation: true,
|
|
353
395
|
breadcrumbsPrefix: ["response"],
|
|
354
|
-
}));
|
|
396
|
+
}), _response.rawResponse);
|
|
355
397
|
case 500:
|
|
356
398
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
357
399
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -359,11 +401,12 @@ class Entitlements {
|
|
|
359
401
|
allowUnrecognizedEnumValues: true,
|
|
360
402
|
skipValidation: true,
|
|
361
403
|
breadcrumbsPrefix: ["response"],
|
|
362
|
-
}));
|
|
404
|
+
}), _response.rawResponse);
|
|
363
405
|
default:
|
|
364
406
|
throw new errors.SchematicError({
|
|
365
407
|
statusCode: _response.error.statusCode,
|
|
366
408
|
body: _response.error.body,
|
|
409
|
+
rawResponse: _response.rawResponse,
|
|
367
410
|
});
|
|
368
411
|
}
|
|
369
412
|
}
|
|
@@ -372,12 +415,14 @@ class Entitlements {
|
|
|
372
415
|
throw new errors.SchematicError({
|
|
373
416
|
statusCode: _response.error.statusCode,
|
|
374
417
|
body: _response.error.rawBody,
|
|
418
|
+
rawResponse: _response.rawResponse,
|
|
375
419
|
});
|
|
376
420
|
case "timeout":
|
|
377
421
|
throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /company-overrides/{company_override_id}.");
|
|
378
422
|
case "unknown":
|
|
379
423
|
throw new errors.SchematicError({
|
|
380
424
|
message: _response.error.errorMessage,
|
|
425
|
+
rawResponse: _response.rawResponse,
|
|
381
426
|
});
|
|
382
427
|
}
|
|
383
428
|
});
|
|
@@ -399,12 +444,15 @@ class Entitlements {
|
|
|
399
444
|
* })
|
|
400
445
|
*/
|
|
401
446
|
updateCompanyOverride(companyOverrideId, request, requestOptions) {
|
|
447
|
+
return core.HttpResponsePromise.fromPromise(this.__updateCompanyOverride(companyOverrideId, request, requestOptions));
|
|
448
|
+
}
|
|
449
|
+
__updateCompanyOverride(companyOverrideId, request, requestOptions) {
|
|
402
450
|
return __awaiter(this, void 0, void 0, function* () {
|
|
403
451
|
var _a, _b, _c;
|
|
404
452
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
405
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)}`),
|
|
406
454
|
method: "PUT",
|
|
407
|
-
headers: Object.assign(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.12", "User-Agent": "@schematichq/schematic-typescript-node/1.1.12", "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),
|
|
408
456
|
contentType: "application/json",
|
|
409
457
|
requestType: "json",
|
|
410
458
|
body: serializers.UpdateCompanyOverrideRequestBody.jsonOrThrow(request, {
|
|
@@ -415,13 +463,16 @@ class Entitlements {
|
|
|
415
463
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
416
464
|
});
|
|
417
465
|
if (_response.ok) {
|
|
418
|
-
return
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
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
|
+
};
|
|
425
476
|
}
|
|
426
477
|
if (_response.error.reason === "status-code") {
|
|
427
478
|
switch (_response.error.statusCode) {
|
|
@@ -432,7 +483,7 @@ class Entitlements {
|
|
|
432
483
|
allowUnrecognizedEnumValues: true,
|
|
433
484
|
skipValidation: true,
|
|
434
485
|
breadcrumbsPrefix: ["response"],
|
|
435
|
-
}));
|
|
486
|
+
}), _response.rawResponse);
|
|
436
487
|
case 401:
|
|
437
488
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
438
489
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -440,7 +491,7 @@ class Entitlements {
|
|
|
440
491
|
allowUnrecognizedEnumValues: true,
|
|
441
492
|
skipValidation: true,
|
|
442
493
|
breadcrumbsPrefix: ["response"],
|
|
443
|
-
}));
|
|
494
|
+
}), _response.rawResponse);
|
|
444
495
|
case 403:
|
|
445
496
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
446
497
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -448,7 +499,7 @@ class Entitlements {
|
|
|
448
499
|
allowUnrecognizedEnumValues: true,
|
|
449
500
|
skipValidation: true,
|
|
450
501
|
breadcrumbsPrefix: ["response"],
|
|
451
|
-
}));
|
|
502
|
+
}), _response.rawResponse);
|
|
452
503
|
case 404:
|
|
453
504
|
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
454
505
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -456,7 +507,7 @@ class Entitlements {
|
|
|
456
507
|
allowUnrecognizedEnumValues: true,
|
|
457
508
|
skipValidation: true,
|
|
458
509
|
breadcrumbsPrefix: ["response"],
|
|
459
|
-
}));
|
|
510
|
+
}), _response.rawResponse);
|
|
460
511
|
case 500:
|
|
461
512
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
462
513
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -464,11 +515,12 @@ class Entitlements {
|
|
|
464
515
|
allowUnrecognizedEnumValues: true,
|
|
465
516
|
skipValidation: true,
|
|
466
517
|
breadcrumbsPrefix: ["response"],
|
|
467
|
-
}));
|
|
518
|
+
}), _response.rawResponse);
|
|
468
519
|
default:
|
|
469
520
|
throw new errors.SchematicError({
|
|
470
521
|
statusCode: _response.error.statusCode,
|
|
471
522
|
body: _response.error.body,
|
|
523
|
+
rawResponse: _response.rawResponse,
|
|
472
524
|
});
|
|
473
525
|
}
|
|
474
526
|
}
|
|
@@ -477,12 +529,14 @@ class Entitlements {
|
|
|
477
529
|
throw new errors.SchematicError({
|
|
478
530
|
statusCode: _response.error.statusCode,
|
|
479
531
|
body: _response.error.rawBody,
|
|
532
|
+
rawResponse: _response.rawResponse,
|
|
480
533
|
});
|
|
481
534
|
case "timeout":
|
|
482
535
|
throw new errors.SchematicTimeoutError("Timeout exceeded when calling PUT /company-overrides/{company_override_id}.");
|
|
483
536
|
case "unknown":
|
|
484
537
|
throw new errors.SchematicError({
|
|
485
538
|
message: _response.error.errorMessage,
|
|
539
|
+
rawResponse: _response.rawResponse,
|
|
486
540
|
});
|
|
487
541
|
}
|
|
488
542
|
});
|
|
@@ -494,18 +548,22 @@ class Entitlements {
|
|
|
494
548
|
* @throws {@link Schematic.BadRequestError}
|
|
495
549
|
* @throws {@link Schematic.UnauthorizedError}
|
|
496
550
|
* @throws {@link Schematic.ForbiddenError}
|
|
551
|
+
* @throws {@link Schematic.NotFoundError}
|
|
497
552
|
* @throws {@link Schematic.InternalServerError}
|
|
498
553
|
*
|
|
499
554
|
* @example
|
|
500
555
|
* await client.entitlements.deleteCompanyOverride("company_override_id")
|
|
501
556
|
*/
|
|
502
557
|
deleteCompanyOverride(companyOverrideId, requestOptions) {
|
|
558
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteCompanyOverride(companyOverrideId, requestOptions));
|
|
559
|
+
}
|
|
560
|
+
__deleteCompanyOverride(companyOverrideId, requestOptions) {
|
|
503
561
|
return __awaiter(this, void 0, void 0, function* () {
|
|
504
562
|
var _a, _b, _c;
|
|
505
563
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
506
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)}`),
|
|
507
565
|
method: "DELETE",
|
|
508
|
-
headers: Object.assign(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.12", "User-Agent": "@schematichq/schematic-typescript-node/1.1.12", "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),
|
|
509
567
|
contentType: "application/json",
|
|
510
568
|
requestType: "json",
|
|
511
569
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -513,13 +571,16 @@ class Entitlements {
|
|
|
513
571
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
514
572
|
});
|
|
515
573
|
if (_response.ok) {
|
|
516
|
-
return
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
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
|
+
};
|
|
523
584
|
}
|
|
524
585
|
if (_response.error.reason === "status-code") {
|
|
525
586
|
switch (_response.error.statusCode) {
|
|
@@ -530,7 +591,7 @@ class Entitlements {
|
|
|
530
591
|
allowUnrecognizedEnumValues: true,
|
|
531
592
|
skipValidation: true,
|
|
532
593
|
breadcrumbsPrefix: ["response"],
|
|
533
|
-
}));
|
|
594
|
+
}), _response.rawResponse);
|
|
534
595
|
case 401:
|
|
535
596
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
536
597
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -538,7 +599,7 @@ class Entitlements {
|
|
|
538
599
|
allowUnrecognizedEnumValues: true,
|
|
539
600
|
skipValidation: true,
|
|
540
601
|
breadcrumbsPrefix: ["response"],
|
|
541
|
-
}));
|
|
602
|
+
}), _response.rawResponse);
|
|
542
603
|
case 403:
|
|
543
604
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
544
605
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -546,7 +607,15 @@ class Entitlements {
|
|
|
546
607
|
allowUnrecognizedEnumValues: true,
|
|
547
608
|
skipValidation: true,
|
|
548
609
|
breadcrumbsPrefix: ["response"],
|
|
549
|
-
}));
|
|
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);
|
|
550
619
|
case 500:
|
|
551
620
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
552
621
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -554,11 +623,12 @@ class Entitlements {
|
|
|
554
623
|
allowUnrecognizedEnumValues: true,
|
|
555
624
|
skipValidation: true,
|
|
556
625
|
breadcrumbsPrefix: ["response"],
|
|
557
|
-
}));
|
|
626
|
+
}), _response.rawResponse);
|
|
558
627
|
default:
|
|
559
628
|
throw new errors.SchematicError({
|
|
560
629
|
statusCode: _response.error.statusCode,
|
|
561
630
|
body: _response.error.body,
|
|
631
|
+
rawResponse: _response.rawResponse,
|
|
562
632
|
});
|
|
563
633
|
}
|
|
564
634
|
}
|
|
@@ -567,12 +637,14 @@ class Entitlements {
|
|
|
567
637
|
throw new errors.SchematicError({
|
|
568
638
|
statusCode: _response.error.statusCode,
|
|
569
639
|
body: _response.error.rawBody,
|
|
640
|
+
rawResponse: _response.rawResponse,
|
|
570
641
|
});
|
|
571
642
|
case "timeout":
|
|
572
643
|
throw new errors.SchematicTimeoutError("Timeout exceeded when calling DELETE /company-overrides/{company_override_id}.");
|
|
573
644
|
case "unknown":
|
|
574
645
|
throw new errors.SchematicError({
|
|
575
646
|
message: _response.error.errorMessage,
|
|
647
|
+
rawResponse: _response.rawResponse,
|
|
576
648
|
});
|
|
577
649
|
}
|
|
578
650
|
});
|
|
@@ -584,12 +656,16 @@ class Entitlements {
|
|
|
584
656
|
* @throws {@link Schematic.BadRequestError}
|
|
585
657
|
* @throws {@link Schematic.UnauthorizedError}
|
|
586
658
|
* @throws {@link Schematic.ForbiddenError}
|
|
659
|
+
* @throws {@link Schematic.NotFoundError}
|
|
587
660
|
* @throws {@link Schematic.InternalServerError}
|
|
588
661
|
*
|
|
589
662
|
* @example
|
|
590
663
|
* await client.entitlements.countCompanyOverrides()
|
|
591
664
|
*/
|
|
592
|
-
countCompanyOverrides() {
|
|
665
|
+
countCompanyOverrides(request = {}, requestOptions) {
|
|
666
|
+
return core.HttpResponsePromise.fromPromise(this.__countCompanyOverrides(request, requestOptions));
|
|
667
|
+
}
|
|
668
|
+
__countCompanyOverrides() {
|
|
593
669
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
594
670
|
var _a, _b, _c;
|
|
595
671
|
const { companyId, companyIds, featureId, featureIds, ids, withoutExpired, q, limit, offset } = request;
|
|
@@ -639,7 +715,7 @@ class Entitlements {
|
|
|
639
715
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
640
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"),
|
|
641
717
|
method: "GET",
|
|
642
|
-
headers: Object.assign(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.12", "User-Agent": "@schematichq/schematic-typescript-node/1.1.12", "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),
|
|
643
719
|
contentType: "application/json",
|
|
644
720
|
queryParameters: _queryParams,
|
|
645
721
|
requestType: "json",
|
|
@@ -648,13 +724,16 @@ class Entitlements {
|
|
|
648
724
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
649
725
|
});
|
|
650
726
|
if (_response.ok) {
|
|
651
|
-
return
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
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
|
+
};
|
|
658
737
|
}
|
|
659
738
|
if (_response.error.reason === "status-code") {
|
|
660
739
|
switch (_response.error.statusCode) {
|
|
@@ -665,7 +744,7 @@ class Entitlements {
|
|
|
665
744
|
allowUnrecognizedEnumValues: true,
|
|
666
745
|
skipValidation: true,
|
|
667
746
|
breadcrumbsPrefix: ["response"],
|
|
668
|
-
}));
|
|
747
|
+
}), _response.rawResponse);
|
|
669
748
|
case 401:
|
|
670
749
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
671
750
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -673,7 +752,7 @@ class Entitlements {
|
|
|
673
752
|
allowUnrecognizedEnumValues: true,
|
|
674
753
|
skipValidation: true,
|
|
675
754
|
breadcrumbsPrefix: ["response"],
|
|
676
|
-
}));
|
|
755
|
+
}), _response.rawResponse);
|
|
677
756
|
case 403:
|
|
678
757
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
679
758
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -681,7 +760,15 @@ class Entitlements {
|
|
|
681
760
|
allowUnrecognizedEnumValues: true,
|
|
682
761
|
skipValidation: true,
|
|
683
762
|
breadcrumbsPrefix: ["response"],
|
|
684
|
-
}));
|
|
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);
|
|
685
772
|
case 500:
|
|
686
773
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
687
774
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -689,11 +776,12 @@ class Entitlements {
|
|
|
689
776
|
allowUnrecognizedEnumValues: true,
|
|
690
777
|
skipValidation: true,
|
|
691
778
|
breadcrumbsPrefix: ["response"],
|
|
692
|
-
}));
|
|
779
|
+
}), _response.rawResponse);
|
|
693
780
|
default:
|
|
694
781
|
throw new errors.SchematicError({
|
|
695
782
|
statusCode: _response.error.statusCode,
|
|
696
783
|
body: _response.error.body,
|
|
784
|
+
rawResponse: _response.rawResponse,
|
|
697
785
|
});
|
|
698
786
|
}
|
|
699
787
|
}
|
|
@@ -702,12 +790,14 @@ class Entitlements {
|
|
|
702
790
|
throw new errors.SchematicError({
|
|
703
791
|
statusCode: _response.error.statusCode,
|
|
704
792
|
body: _response.error.rawBody,
|
|
793
|
+
rawResponse: _response.rawResponse,
|
|
705
794
|
});
|
|
706
795
|
case "timeout":
|
|
707
796
|
throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /company-overrides/count.");
|
|
708
797
|
case "unknown":
|
|
709
798
|
throw new errors.SchematicError({
|
|
710
799
|
message: _response.error.errorMessage,
|
|
800
|
+
rawResponse: _response.rawResponse,
|
|
711
801
|
});
|
|
712
802
|
}
|
|
713
803
|
});
|
|
@@ -719,6 +809,7 @@ class Entitlements {
|
|
|
719
809
|
* @throws {@link Schematic.BadRequestError}
|
|
720
810
|
* @throws {@link Schematic.UnauthorizedError}
|
|
721
811
|
* @throws {@link Schematic.ForbiddenError}
|
|
812
|
+
* @throws {@link Schematic.NotFoundError}
|
|
722
813
|
* @throws {@link Schematic.InternalServerError}
|
|
723
814
|
*
|
|
724
815
|
* @example
|
|
@@ -727,6 +818,9 @@ class Entitlements {
|
|
|
727
818
|
* })
|
|
728
819
|
*/
|
|
729
820
|
listFeatureCompanies(request, requestOptions) {
|
|
821
|
+
return core.HttpResponsePromise.fromPromise(this.__listFeatureCompanies(request, requestOptions));
|
|
822
|
+
}
|
|
823
|
+
__listFeatureCompanies(request, requestOptions) {
|
|
730
824
|
return __awaiter(this, void 0, void 0, function* () {
|
|
731
825
|
var _a, _b, _c;
|
|
732
826
|
const { featureId, q, limit, offset } = request;
|
|
@@ -744,7 +838,7 @@ class Entitlements {
|
|
|
744
838
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
745
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"),
|
|
746
840
|
method: "GET",
|
|
747
|
-
headers: Object.assign(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.12", "User-Agent": "@schematichq/schematic-typescript-node/1.1.12", "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),
|
|
748
842
|
contentType: "application/json",
|
|
749
843
|
queryParameters: _queryParams,
|
|
750
844
|
requestType: "json",
|
|
@@ -753,13 +847,16 @@ class Entitlements {
|
|
|
753
847
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
754
848
|
});
|
|
755
849
|
if (_response.ok) {
|
|
756
|
-
return
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
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
|
+
};
|
|
763
860
|
}
|
|
764
861
|
if (_response.error.reason === "status-code") {
|
|
765
862
|
switch (_response.error.statusCode) {
|
|
@@ -770,7 +867,7 @@ class Entitlements {
|
|
|
770
867
|
allowUnrecognizedEnumValues: true,
|
|
771
868
|
skipValidation: true,
|
|
772
869
|
breadcrumbsPrefix: ["response"],
|
|
773
|
-
}));
|
|
870
|
+
}), _response.rawResponse);
|
|
774
871
|
case 401:
|
|
775
872
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
776
873
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -778,7 +875,7 @@ class Entitlements {
|
|
|
778
875
|
allowUnrecognizedEnumValues: true,
|
|
779
876
|
skipValidation: true,
|
|
780
877
|
breadcrumbsPrefix: ["response"],
|
|
781
|
-
}));
|
|
878
|
+
}), _response.rawResponse);
|
|
782
879
|
case 403:
|
|
783
880
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
784
881
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -786,7 +883,15 @@ class Entitlements {
|
|
|
786
883
|
allowUnrecognizedEnumValues: true,
|
|
787
884
|
skipValidation: true,
|
|
788
885
|
breadcrumbsPrefix: ["response"],
|
|
789
|
-
}));
|
|
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);
|
|
790
895
|
case 500:
|
|
791
896
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
792
897
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -794,11 +899,12 @@ class Entitlements {
|
|
|
794
899
|
allowUnrecognizedEnumValues: true,
|
|
795
900
|
skipValidation: true,
|
|
796
901
|
breadcrumbsPrefix: ["response"],
|
|
797
|
-
}));
|
|
902
|
+
}), _response.rawResponse);
|
|
798
903
|
default:
|
|
799
904
|
throw new errors.SchematicError({
|
|
800
905
|
statusCode: _response.error.statusCode,
|
|
801
906
|
body: _response.error.body,
|
|
907
|
+
rawResponse: _response.rawResponse,
|
|
802
908
|
});
|
|
803
909
|
}
|
|
804
910
|
}
|
|
@@ -807,12 +913,14 @@ class Entitlements {
|
|
|
807
913
|
throw new errors.SchematicError({
|
|
808
914
|
statusCode: _response.error.statusCode,
|
|
809
915
|
body: _response.error.rawBody,
|
|
916
|
+
rawResponse: _response.rawResponse,
|
|
810
917
|
});
|
|
811
918
|
case "timeout":
|
|
812
919
|
throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /feature-companies.");
|
|
813
920
|
case "unknown":
|
|
814
921
|
throw new errors.SchematicError({
|
|
815
922
|
message: _response.error.errorMessage,
|
|
923
|
+
rawResponse: _response.rawResponse,
|
|
816
924
|
});
|
|
817
925
|
}
|
|
818
926
|
});
|
|
@@ -824,6 +932,7 @@ class Entitlements {
|
|
|
824
932
|
* @throws {@link Schematic.BadRequestError}
|
|
825
933
|
* @throws {@link Schematic.UnauthorizedError}
|
|
826
934
|
* @throws {@link Schematic.ForbiddenError}
|
|
935
|
+
* @throws {@link Schematic.NotFoundError}
|
|
827
936
|
* @throws {@link Schematic.InternalServerError}
|
|
828
937
|
*
|
|
829
938
|
* @example
|
|
@@ -832,6 +941,9 @@ class Entitlements {
|
|
|
832
941
|
* })
|
|
833
942
|
*/
|
|
834
943
|
countFeatureCompanies(request, requestOptions) {
|
|
944
|
+
return core.HttpResponsePromise.fromPromise(this.__countFeatureCompanies(request, requestOptions));
|
|
945
|
+
}
|
|
946
|
+
__countFeatureCompanies(request, requestOptions) {
|
|
835
947
|
return __awaiter(this, void 0, void 0, function* () {
|
|
836
948
|
var _a, _b, _c;
|
|
837
949
|
const { featureId, q, limit, offset } = request;
|
|
@@ -849,7 +961,7 @@ class Entitlements {
|
|
|
849
961
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
850
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"),
|
|
851
963
|
method: "GET",
|
|
852
|
-
headers: Object.assign(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.12", "User-Agent": "@schematichq/schematic-typescript-node/1.1.12", "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),
|
|
853
965
|
contentType: "application/json",
|
|
854
966
|
queryParameters: _queryParams,
|
|
855
967
|
requestType: "json",
|
|
@@ -858,13 +970,16 @@ class Entitlements {
|
|
|
858
970
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
859
971
|
});
|
|
860
972
|
if (_response.ok) {
|
|
861
|
-
return
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
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
|
+
};
|
|
868
983
|
}
|
|
869
984
|
if (_response.error.reason === "status-code") {
|
|
870
985
|
switch (_response.error.statusCode) {
|
|
@@ -875,7 +990,7 @@ class Entitlements {
|
|
|
875
990
|
allowUnrecognizedEnumValues: true,
|
|
876
991
|
skipValidation: true,
|
|
877
992
|
breadcrumbsPrefix: ["response"],
|
|
878
|
-
}));
|
|
993
|
+
}), _response.rawResponse);
|
|
879
994
|
case 401:
|
|
880
995
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
881
996
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -883,7 +998,7 @@ class Entitlements {
|
|
|
883
998
|
allowUnrecognizedEnumValues: true,
|
|
884
999
|
skipValidation: true,
|
|
885
1000
|
breadcrumbsPrefix: ["response"],
|
|
886
|
-
}));
|
|
1001
|
+
}), _response.rawResponse);
|
|
887
1002
|
case 403:
|
|
888
1003
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
889
1004
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -891,7 +1006,15 @@ class Entitlements {
|
|
|
891
1006
|
allowUnrecognizedEnumValues: true,
|
|
892
1007
|
skipValidation: true,
|
|
893
1008
|
breadcrumbsPrefix: ["response"],
|
|
894
|
-
}));
|
|
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);
|
|
895
1018
|
case 500:
|
|
896
1019
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
897
1020
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -899,11 +1022,12 @@ class Entitlements {
|
|
|
899
1022
|
allowUnrecognizedEnumValues: true,
|
|
900
1023
|
skipValidation: true,
|
|
901
1024
|
breadcrumbsPrefix: ["response"],
|
|
902
|
-
}));
|
|
1025
|
+
}), _response.rawResponse);
|
|
903
1026
|
default:
|
|
904
1027
|
throw new errors.SchematicError({
|
|
905
1028
|
statusCode: _response.error.statusCode,
|
|
906
1029
|
body: _response.error.body,
|
|
1030
|
+
rawResponse: _response.rawResponse,
|
|
907
1031
|
});
|
|
908
1032
|
}
|
|
909
1033
|
}
|
|
@@ -912,12 +1036,14 @@ class Entitlements {
|
|
|
912
1036
|
throw new errors.SchematicError({
|
|
913
1037
|
statusCode: _response.error.statusCode,
|
|
914
1038
|
body: _response.error.rawBody,
|
|
1039
|
+
rawResponse: _response.rawResponse,
|
|
915
1040
|
});
|
|
916
1041
|
case "timeout":
|
|
917
1042
|
throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /feature-companies/count.");
|
|
918
1043
|
case "unknown":
|
|
919
1044
|
throw new errors.SchematicError({
|
|
920
1045
|
message: _response.error.errorMessage,
|
|
1046
|
+
rawResponse: _response.rawResponse,
|
|
921
1047
|
});
|
|
922
1048
|
}
|
|
923
1049
|
});
|
|
@@ -929,12 +1055,16 @@ class Entitlements {
|
|
|
929
1055
|
* @throws {@link Schematic.BadRequestError}
|
|
930
1056
|
* @throws {@link Schematic.UnauthorizedError}
|
|
931
1057
|
* @throws {@link Schematic.ForbiddenError}
|
|
1058
|
+
* @throws {@link Schematic.NotFoundError}
|
|
932
1059
|
* @throws {@link Schematic.InternalServerError}
|
|
933
1060
|
*
|
|
934
1061
|
* @example
|
|
935
1062
|
* await client.entitlements.listFeatureUsage()
|
|
936
1063
|
*/
|
|
937
|
-
listFeatureUsage() {
|
|
1064
|
+
listFeatureUsage(request = {}, requestOptions) {
|
|
1065
|
+
return core.HttpResponsePromise.fromPromise(this.__listFeatureUsage(request, requestOptions));
|
|
1066
|
+
}
|
|
1067
|
+
__listFeatureUsage() {
|
|
938
1068
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
939
1069
|
var _a, _b, _c;
|
|
940
1070
|
const { companyId, companyKeys, featureIds, q, withoutNegativeEntitlements, limit, offset } = request;
|
|
@@ -968,7 +1098,7 @@ class Entitlements {
|
|
|
968
1098
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
969
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"),
|
|
970
1100
|
method: "GET",
|
|
971
|
-
headers: Object.assign(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.12", "User-Agent": "@schematichq/schematic-typescript-node/1.1.12", "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),
|
|
972
1102
|
contentType: "application/json",
|
|
973
1103
|
queryParameters: _queryParams,
|
|
974
1104
|
requestType: "json",
|
|
@@ -977,13 +1107,16 @@ class Entitlements {
|
|
|
977
1107
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
978
1108
|
});
|
|
979
1109
|
if (_response.ok) {
|
|
980
|
-
return
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
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
|
+
};
|
|
987
1120
|
}
|
|
988
1121
|
if (_response.error.reason === "status-code") {
|
|
989
1122
|
switch (_response.error.statusCode) {
|
|
@@ -994,7 +1127,7 @@ class Entitlements {
|
|
|
994
1127
|
allowUnrecognizedEnumValues: true,
|
|
995
1128
|
skipValidation: true,
|
|
996
1129
|
breadcrumbsPrefix: ["response"],
|
|
997
|
-
}));
|
|
1130
|
+
}), _response.rawResponse);
|
|
998
1131
|
case 401:
|
|
999
1132
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1000
1133
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1002,7 +1135,7 @@ class Entitlements {
|
|
|
1002
1135
|
allowUnrecognizedEnumValues: true,
|
|
1003
1136
|
skipValidation: true,
|
|
1004
1137
|
breadcrumbsPrefix: ["response"],
|
|
1005
|
-
}));
|
|
1138
|
+
}), _response.rawResponse);
|
|
1006
1139
|
case 403:
|
|
1007
1140
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1008
1141
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1010,7 +1143,15 @@ class Entitlements {
|
|
|
1010
1143
|
allowUnrecognizedEnumValues: true,
|
|
1011
1144
|
skipValidation: true,
|
|
1012
1145
|
breadcrumbsPrefix: ["response"],
|
|
1013
|
-
}));
|
|
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);
|
|
1014
1155
|
case 500:
|
|
1015
1156
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1016
1157
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1018,11 +1159,12 @@ class Entitlements {
|
|
|
1018
1159
|
allowUnrecognizedEnumValues: true,
|
|
1019
1160
|
skipValidation: true,
|
|
1020
1161
|
breadcrumbsPrefix: ["response"],
|
|
1021
|
-
}));
|
|
1162
|
+
}), _response.rawResponse);
|
|
1022
1163
|
default:
|
|
1023
1164
|
throw new errors.SchematicError({
|
|
1024
1165
|
statusCode: _response.error.statusCode,
|
|
1025
1166
|
body: _response.error.body,
|
|
1167
|
+
rawResponse: _response.rawResponse,
|
|
1026
1168
|
});
|
|
1027
1169
|
}
|
|
1028
1170
|
}
|
|
@@ -1031,12 +1173,14 @@ class Entitlements {
|
|
|
1031
1173
|
throw new errors.SchematicError({
|
|
1032
1174
|
statusCode: _response.error.statusCode,
|
|
1033
1175
|
body: _response.error.rawBody,
|
|
1176
|
+
rawResponse: _response.rawResponse,
|
|
1034
1177
|
});
|
|
1035
1178
|
case "timeout":
|
|
1036
1179
|
throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /feature-usage.");
|
|
1037
1180
|
case "unknown":
|
|
1038
1181
|
throw new errors.SchematicError({
|
|
1039
1182
|
message: _response.error.errorMessage,
|
|
1183
|
+
rawResponse: _response.rawResponse,
|
|
1040
1184
|
});
|
|
1041
1185
|
}
|
|
1042
1186
|
});
|
|
@@ -1048,12 +1192,16 @@ class Entitlements {
|
|
|
1048
1192
|
* @throws {@link Schematic.BadRequestError}
|
|
1049
1193
|
* @throws {@link Schematic.UnauthorizedError}
|
|
1050
1194
|
* @throws {@link Schematic.ForbiddenError}
|
|
1195
|
+
* @throws {@link Schematic.NotFoundError}
|
|
1051
1196
|
* @throws {@link Schematic.InternalServerError}
|
|
1052
1197
|
*
|
|
1053
1198
|
* @example
|
|
1054
1199
|
* await client.entitlements.countFeatureUsage()
|
|
1055
1200
|
*/
|
|
1056
|
-
countFeatureUsage() {
|
|
1201
|
+
countFeatureUsage(request = {}, requestOptions) {
|
|
1202
|
+
return core.HttpResponsePromise.fromPromise(this.__countFeatureUsage(request, requestOptions));
|
|
1203
|
+
}
|
|
1204
|
+
__countFeatureUsage() {
|
|
1057
1205
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
1058
1206
|
var _a, _b, _c;
|
|
1059
1207
|
const { companyId, companyKeys, featureIds, q, withoutNegativeEntitlements, limit, offset } = request;
|
|
@@ -1087,7 +1235,7 @@ class Entitlements {
|
|
|
1087
1235
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1088
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"),
|
|
1089
1237
|
method: "GET",
|
|
1090
|
-
headers: Object.assign(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.12", "User-Agent": "@schematichq/schematic-typescript-node/1.1.12", "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),
|
|
1091
1239
|
contentType: "application/json",
|
|
1092
1240
|
queryParameters: _queryParams,
|
|
1093
1241
|
requestType: "json",
|
|
@@ -1096,13 +1244,16 @@ class Entitlements {
|
|
|
1096
1244
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1097
1245
|
});
|
|
1098
1246
|
if (_response.ok) {
|
|
1099
|
-
return
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
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
|
+
};
|
|
1106
1257
|
}
|
|
1107
1258
|
if (_response.error.reason === "status-code") {
|
|
1108
1259
|
switch (_response.error.statusCode) {
|
|
@@ -1113,7 +1264,7 @@ class Entitlements {
|
|
|
1113
1264
|
allowUnrecognizedEnumValues: true,
|
|
1114
1265
|
skipValidation: true,
|
|
1115
1266
|
breadcrumbsPrefix: ["response"],
|
|
1116
|
-
}));
|
|
1267
|
+
}), _response.rawResponse);
|
|
1117
1268
|
case 401:
|
|
1118
1269
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1119
1270
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1121,7 +1272,7 @@ class Entitlements {
|
|
|
1121
1272
|
allowUnrecognizedEnumValues: true,
|
|
1122
1273
|
skipValidation: true,
|
|
1123
1274
|
breadcrumbsPrefix: ["response"],
|
|
1124
|
-
}));
|
|
1275
|
+
}), _response.rawResponse);
|
|
1125
1276
|
case 403:
|
|
1126
1277
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1127
1278
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1129,7 +1280,15 @@ class Entitlements {
|
|
|
1129
1280
|
allowUnrecognizedEnumValues: true,
|
|
1130
1281
|
skipValidation: true,
|
|
1131
1282
|
breadcrumbsPrefix: ["response"],
|
|
1132
|
-
}));
|
|
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);
|
|
1133
1292
|
case 500:
|
|
1134
1293
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1135
1294
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1137,11 +1296,12 @@ class Entitlements {
|
|
|
1137
1296
|
allowUnrecognizedEnumValues: true,
|
|
1138
1297
|
skipValidation: true,
|
|
1139
1298
|
breadcrumbsPrefix: ["response"],
|
|
1140
|
-
}));
|
|
1299
|
+
}), _response.rawResponse);
|
|
1141
1300
|
default:
|
|
1142
1301
|
throw new errors.SchematicError({
|
|
1143
1302
|
statusCode: _response.error.statusCode,
|
|
1144
1303
|
body: _response.error.body,
|
|
1304
|
+
rawResponse: _response.rawResponse,
|
|
1145
1305
|
});
|
|
1146
1306
|
}
|
|
1147
1307
|
}
|
|
@@ -1150,12 +1310,14 @@ class Entitlements {
|
|
|
1150
1310
|
throw new errors.SchematicError({
|
|
1151
1311
|
statusCode: _response.error.statusCode,
|
|
1152
1312
|
body: _response.error.rawBody,
|
|
1313
|
+
rawResponse: _response.rawResponse,
|
|
1153
1314
|
});
|
|
1154
1315
|
case "timeout":
|
|
1155
1316
|
throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /feature-usage/count.");
|
|
1156
1317
|
case "unknown":
|
|
1157
1318
|
throw new errors.SchematicError({
|
|
1158
1319
|
message: _response.error.errorMessage,
|
|
1320
|
+
rawResponse: _response.rawResponse,
|
|
1159
1321
|
});
|
|
1160
1322
|
}
|
|
1161
1323
|
});
|
|
@@ -1167,6 +1329,7 @@ class Entitlements {
|
|
|
1167
1329
|
* @throws {@link Schematic.BadRequestError}
|
|
1168
1330
|
* @throws {@link Schematic.UnauthorizedError}
|
|
1169
1331
|
* @throws {@link Schematic.ForbiddenError}
|
|
1332
|
+
* @throws {@link Schematic.NotFoundError}
|
|
1170
1333
|
* @throws {@link Schematic.InternalServerError}
|
|
1171
1334
|
*
|
|
1172
1335
|
* @example
|
|
@@ -1175,6 +1338,9 @@ class Entitlements {
|
|
|
1175
1338
|
* })
|
|
1176
1339
|
*/
|
|
1177
1340
|
listFeatureUsers(request, requestOptions) {
|
|
1341
|
+
return core.HttpResponsePromise.fromPromise(this.__listFeatureUsers(request, requestOptions));
|
|
1342
|
+
}
|
|
1343
|
+
__listFeatureUsers(request, requestOptions) {
|
|
1178
1344
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1179
1345
|
var _a, _b, _c;
|
|
1180
1346
|
const { featureId, q, limit, offset } = request;
|
|
@@ -1192,7 +1358,7 @@ class Entitlements {
|
|
|
1192
1358
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1193
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"),
|
|
1194
1360
|
method: "GET",
|
|
1195
|
-
headers: Object.assign(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.12", "User-Agent": "@schematichq/schematic-typescript-node/1.1.12", "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),
|
|
1196
1362
|
contentType: "application/json",
|
|
1197
1363
|
queryParameters: _queryParams,
|
|
1198
1364
|
requestType: "json",
|
|
@@ -1201,13 +1367,16 @@ class Entitlements {
|
|
|
1201
1367
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1202
1368
|
});
|
|
1203
1369
|
if (_response.ok) {
|
|
1204
|
-
return
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
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
|
+
};
|
|
1211
1380
|
}
|
|
1212
1381
|
if (_response.error.reason === "status-code") {
|
|
1213
1382
|
switch (_response.error.statusCode) {
|
|
@@ -1218,7 +1387,7 @@ class Entitlements {
|
|
|
1218
1387
|
allowUnrecognizedEnumValues: true,
|
|
1219
1388
|
skipValidation: true,
|
|
1220
1389
|
breadcrumbsPrefix: ["response"],
|
|
1221
|
-
}));
|
|
1390
|
+
}), _response.rawResponse);
|
|
1222
1391
|
case 401:
|
|
1223
1392
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1224
1393
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1226,7 +1395,7 @@ class Entitlements {
|
|
|
1226
1395
|
allowUnrecognizedEnumValues: true,
|
|
1227
1396
|
skipValidation: true,
|
|
1228
1397
|
breadcrumbsPrefix: ["response"],
|
|
1229
|
-
}));
|
|
1398
|
+
}), _response.rawResponse);
|
|
1230
1399
|
case 403:
|
|
1231
1400
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1232
1401
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1234,7 +1403,15 @@ class Entitlements {
|
|
|
1234
1403
|
allowUnrecognizedEnumValues: true,
|
|
1235
1404
|
skipValidation: true,
|
|
1236
1405
|
breadcrumbsPrefix: ["response"],
|
|
1237
|
-
}));
|
|
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);
|
|
1238
1415
|
case 500:
|
|
1239
1416
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1240
1417
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1242,11 +1419,12 @@ class Entitlements {
|
|
|
1242
1419
|
allowUnrecognizedEnumValues: true,
|
|
1243
1420
|
skipValidation: true,
|
|
1244
1421
|
breadcrumbsPrefix: ["response"],
|
|
1245
|
-
}));
|
|
1422
|
+
}), _response.rawResponse);
|
|
1246
1423
|
default:
|
|
1247
1424
|
throw new errors.SchematicError({
|
|
1248
1425
|
statusCode: _response.error.statusCode,
|
|
1249
1426
|
body: _response.error.body,
|
|
1427
|
+
rawResponse: _response.rawResponse,
|
|
1250
1428
|
});
|
|
1251
1429
|
}
|
|
1252
1430
|
}
|
|
@@ -1255,12 +1433,14 @@ class Entitlements {
|
|
|
1255
1433
|
throw new errors.SchematicError({
|
|
1256
1434
|
statusCode: _response.error.statusCode,
|
|
1257
1435
|
body: _response.error.rawBody,
|
|
1436
|
+
rawResponse: _response.rawResponse,
|
|
1258
1437
|
});
|
|
1259
1438
|
case "timeout":
|
|
1260
1439
|
throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /feature-users.");
|
|
1261
1440
|
case "unknown":
|
|
1262
1441
|
throw new errors.SchematicError({
|
|
1263
1442
|
message: _response.error.errorMessage,
|
|
1443
|
+
rawResponse: _response.rawResponse,
|
|
1264
1444
|
});
|
|
1265
1445
|
}
|
|
1266
1446
|
});
|
|
@@ -1272,6 +1452,7 @@ class Entitlements {
|
|
|
1272
1452
|
* @throws {@link Schematic.BadRequestError}
|
|
1273
1453
|
* @throws {@link Schematic.UnauthorizedError}
|
|
1274
1454
|
* @throws {@link Schematic.ForbiddenError}
|
|
1455
|
+
* @throws {@link Schematic.NotFoundError}
|
|
1275
1456
|
* @throws {@link Schematic.InternalServerError}
|
|
1276
1457
|
*
|
|
1277
1458
|
* @example
|
|
@@ -1280,6 +1461,9 @@ class Entitlements {
|
|
|
1280
1461
|
* })
|
|
1281
1462
|
*/
|
|
1282
1463
|
countFeatureUsers(request, requestOptions) {
|
|
1464
|
+
return core.HttpResponsePromise.fromPromise(this.__countFeatureUsers(request, requestOptions));
|
|
1465
|
+
}
|
|
1466
|
+
__countFeatureUsers(request, requestOptions) {
|
|
1283
1467
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1284
1468
|
var _a, _b, _c;
|
|
1285
1469
|
const { featureId, q, limit, offset } = request;
|
|
@@ -1297,7 +1481,7 @@ class Entitlements {
|
|
|
1297
1481
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1298
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"),
|
|
1299
1483
|
method: "GET",
|
|
1300
|
-
headers: Object.assign(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.12", "User-Agent": "@schematichq/schematic-typescript-node/1.1.12", "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),
|
|
1301
1485
|
contentType: "application/json",
|
|
1302
1486
|
queryParameters: _queryParams,
|
|
1303
1487
|
requestType: "json",
|
|
@@ -1306,13 +1490,16 @@ class Entitlements {
|
|
|
1306
1490
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1307
1491
|
});
|
|
1308
1492
|
if (_response.ok) {
|
|
1309
|
-
return
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
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
|
+
};
|
|
1316
1503
|
}
|
|
1317
1504
|
if (_response.error.reason === "status-code") {
|
|
1318
1505
|
switch (_response.error.statusCode) {
|
|
@@ -1323,7 +1510,7 @@ class Entitlements {
|
|
|
1323
1510
|
allowUnrecognizedEnumValues: true,
|
|
1324
1511
|
skipValidation: true,
|
|
1325
1512
|
breadcrumbsPrefix: ["response"],
|
|
1326
|
-
}));
|
|
1513
|
+
}), _response.rawResponse);
|
|
1327
1514
|
case 401:
|
|
1328
1515
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1329
1516
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1331,7 +1518,7 @@ class Entitlements {
|
|
|
1331
1518
|
allowUnrecognizedEnumValues: true,
|
|
1332
1519
|
skipValidation: true,
|
|
1333
1520
|
breadcrumbsPrefix: ["response"],
|
|
1334
|
-
}));
|
|
1521
|
+
}), _response.rawResponse);
|
|
1335
1522
|
case 403:
|
|
1336
1523
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1337
1524
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1339,7 +1526,15 @@ class Entitlements {
|
|
|
1339
1526
|
allowUnrecognizedEnumValues: true,
|
|
1340
1527
|
skipValidation: true,
|
|
1341
1528
|
breadcrumbsPrefix: ["response"],
|
|
1342
|
-
}));
|
|
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);
|
|
1343
1538
|
case 500:
|
|
1344
1539
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1345
1540
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1347,11 +1542,12 @@ class Entitlements {
|
|
|
1347
1542
|
allowUnrecognizedEnumValues: true,
|
|
1348
1543
|
skipValidation: true,
|
|
1349
1544
|
breadcrumbsPrefix: ["response"],
|
|
1350
|
-
}));
|
|
1545
|
+
}), _response.rawResponse);
|
|
1351
1546
|
default:
|
|
1352
1547
|
throw new errors.SchematicError({
|
|
1353
1548
|
statusCode: _response.error.statusCode,
|
|
1354
1549
|
body: _response.error.body,
|
|
1550
|
+
rawResponse: _response.rawResponse,
|
|
1355
1551
|
});
|
|
1356
1552
|
}
|
|
1357
1553
|
}
|
|
@@ -1360,12 +1556,14 @@ class Entitlements {
|
|
|
1360
1556
|
throw new errors.SchematicError({
|
|
1361
1557
|
statusCode: _response.error.statusCode,
|
|
1362
1558
|
body: _response.error.rawBody,
|
|
1559
|
+
rawResponse: _response.rawResponse,
|
|
1363
1560
|
});
|
|
1364
1561
|
case "timeout":
|
|
1365
1562
|
throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /feature-users/count.");
|
|
1366
1563
|
case "unknown":
|
|
1367
1564
|
throw new errors.SchematicError({
|
|
1368
1565
|
message: _response.error.errorMessage,
|
|
1566
|
+
rawResponse: _response.rawResponse,
|
|
1369
1567
|
});
|
|
1370
1568
|
}
|
|
1371
1569
|
});
|
|
@@ -1377,12 +1575,16 @@ class Entitlements {
|
|
|
1377
1575
|
* @throws {@link Schematic.BadRequestError}
|
|
1378
1576
|
* @throws {@link Schematic.UnauthorizedError}
|
|
1379
1577
|
* @throws {@link Schematic.ForbiddenError}
|
|
1578
|
+
* @throws {@link Schematic.NotFoundError}
|
|
1380
1579
|
* @throws {@link Schematic.InternalServerError}
|
|
1381
1580
|
*
|
|
1382
1581
|
* @example
|
|
1383
1582
|
* await client.entitlements.listPlanEntitlements()
|
|
1384
1583
|
*/
|
|
1385
|
-
listPlanEntitlements() {
|
|
1584
|
+
listPlanEntitlements(request = {}, requestOptions) {
|
|
1585
|
+
return core.HttpResponsePromise.fromPromise(this.__listPlanEntitlements(request, requestOptions));
|
|
1586
|
+
}
|
|
1587
|
+
__listPlanEntitlements() {
|
|
1386
1588
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
1387
1589
|
var _a, _b, _c;
|
|
1388
1590
|
const { featureId, featureIds, ids, planId, planIds, q, withMeteredProducts, limit, offset } = request;
|
|
@@ -1432,7 +1634,7 @@ class Entitlements {
|
|
|
1432
1634
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1433
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"),
|
|
1434
1636
|
method: "GET",
|
|
1435
|
-
headers: Object.assign(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.12", "User-Agent": "@schematichq/schematic-typescript-node/1.1.12", "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),
|
|
1436
1638
|
contentType: "application/json",
|
|
1437
1639
|
queryParameters: _queryParams,
|
|
1438
1640
|
requestType: "json",
|
|
@@ -1441,13 +1643,16 @@ class Entitlements {
|
|
|
1441
1643
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1442
1644
|
});
|
|
1443
1645
|
if (_response.ok) {
|
|
1444
|
-
return
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
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
|
+
};
|
|
1451
1656
|
}
|
|
1452
1657
|
if (_response.error.reason === "status-code") {
|
|
1453
1658
|
switch (_response.error.statusCode) {
|
|
@@ -1458,7 +1663,7 @@ class Entitlements {
|
|
|
1458
1663
|
allowUnrecognizedEnumValues: true,
|
|
1459
1664
|
skipValidation: true,
|
|
1460
1665
|
breadcrumbsPrefix: ["response"],
|
|
1461
|
-
}));
|
|
1666
|
+
}), _response.rawResponse);
|
|
1462
1667
|
case 401:
|
|
1463
1668
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1464
1669
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1466,7 +1671,7 @@ class Entitlements {
|
|
|
1466
1671
|
allowUnrecognizedEnumValues: true,
|
|
1467
1672
|
skipValidation: true,
|
|
1468
1673
|
breadcrumbsPrefix: ["response"],
|
|
1469
|
-
}));
|
|
1674
|
+
}), _response.rawResponse);
|
|
1470
1675
|
case 403:
|
|
1471
1676
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1472
1677
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1474,7 +1679,15 @@ class Entitlements {
|
|
|
1474
1679
|
allowUnrecognizedEnumValues: true,
|
|
1475
1680
|
skipValidation: true,
|
|
1476
1681
|
breadcrumbsPrefix: ["response"],
|
|
1477
|
-
}));
|
|
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);
|
|
1478
1691
|
case 500:
|
|
1479
1692
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1480
1693
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1482,11 +1695,12 @@ class Entitlements {
|
|
|
1482
1695
|
allowUnrecognizedEnumValues: true,
|
|
1483
1696
|
skipValidation: true,
|
|
1484
1697
|
breadcrumbsPrefix: ["response"],
|
|
1485
|
-
}));
|
|
1698
|
+
}), _response.rawResponse);
|
|
1486
1699
|
default:
|
|
1487
1700
|
throw new errors.SchematicError({
|
|
1488
1701
|
statusCode: _response.error.statusCode,
|
|
1489
1702
|
body: _response.error.body,
|
|
1703
|
+
rawResponse: _response.rawResponse,
|
|
1490
1704
|
});
|
|
1491
1705
|
}
|
|
1492
1706
|
}
|
|
@@ -1495,12 +1709,14 @@ class Entitlements {
|
|
|
1495
1709
|
throw new errors.SchematicError({
|
|
1496
1710
|
statusCode: _response.error.statusCode,
|
|
1497
1711
|
body: _response.error.rawBody,
|
|
1712
|
+
rawResponse: _response.rawResponse,
|
|
1498
1713
|
});
|
|
1499
1714
|
case "timeout":
|
|
1500
1715
|
throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /plan-entitlements.");
|
|
1501
1716
|
case "unknown":
|
|
1502
1717
|
throw new errors.SchematicError({
|
|
1503
1718
|
message: _response.error.errorMessage,
|
|
1719
|
+
rawResponse: _response.rawResponse,
|
|
1504
1720
|
});
|
|
1505
1721
|
}
|
|
1506
1722
|
});
|
|
@@ -1512,22 +1728,28 @@ class Entitlements {
|
|
|
1512
1728
|
* @throws {@link Schematic.BadRequestError}
|
|
1513
1729
|
* @throws {@link Schematic.UnauthorizedError}
|
|
1514
1730
|
* @throws {@link Schematic.ForbiddenError}
|
|
1731
|
+
* @throws {@link Schematic.NotFoundError}
|
|
1515
1732
|
* @throws {@link Schematic.InternalServerError}
|
|
1516
1733
|
*
|
|
1517
1734
|
* @example
|
|
1518
1735
|
* await client.entitlements.createPlanEntitlement({
|
|
1519
1736
|
* featureId: "feature_id",
|
|
1520
1737
|
* planId: "plan_id",
|
|
1738
|
+
* priceTiers: [{}],
|
|
1739
|
+
* tierMode: "tier_mode",
|
|
1521
1740
|
* valueType: "boolean"
|
|
1522
1741
|
* })
|
|
1523
1742
|
*/
|
|
1524
1743
|
createPlanEntitlement(request, requestOptions) {
|
|
1744
|
+
return core.HttpResponsePromise.fromPromise(this.__createPlanEntitlement(request, requestOptions));
|
|
1745
|
+
}
|
|
1746
|
+
__createPlanEntitlement(request, requestOptions) {
|
|
1525
1747
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1526
1748
|
var _a, _b, _c;
|
|
1527
1749
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1528
1750
|
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"),
|
|
1529
1751
|
method: "POST",
|
|
1530
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
1752
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.12", "User-Agent": "@schematichq/schematic-typescript-node/1.1.12", "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),
|
|
1531
1753
|
contentType: "application/json",
|
|
1532
1754
|
requestType: "json",
|
|
1533
1755
|
body: serializers.CreatePlanEntitlementRequestBody.jsonOrThrow(request, {
|
|
@@ -1538,13 +1760,16 @@ class Entitlements {
|
|
|
1538
1760
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1539
1761
|
});
|
|
1540
1762
|
if (_response.ok) {
|
|
1541
|
-
return
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1763
|
+
return {
|
|
1764
|
+
data: serializers.CreatePlanEntitlementResponse.parseOrThrow(_response.body, {
|
|
1765
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1766
|
+
allowUnrecognizedUnionMembers: true,
|
|
1767
|
+
allowUnrecognizedEnumValues: true,
|
|
1768
|
+
skipValidation: true,
|
|
1769
|
+
breadcrumbsPrefix: ["response"],
|
|
1770
|
+
}),
|
|
1771
|
+
rawResponse: _response.rawResponse,
|
|
1772
|
+
};
|
|
1548
1773
|
}
|
|
1549
1774
|
if (_response.error.reason === "status-code") {
|
|
1550
1775
|
switch (_response.error.statusCode) {
|
|
@@ -1555,7 +1780,7 @@ class Entitlements {
|
|
|
1555
1780
|
allowUnrecognizedEnumValues: true,
|
|
1556
1781
|
skipValidation: true,
|
|
1557
1782
|
breadcrumbsPrefix: ["response"],
|
|
1558
|
-
}));
|
|
1783
|
+
}), _response.rawResponse);
|
|
1559
1784
|
case 401:
|
|
1560
1785
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1561
1786
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1563,7 +1788,7 @@ class Entitlements {
|
|
|
1563
1788
|
allowUnrecognizedEnumValues: true,
|
|
1564
1789
|
skipValidation: true,
|
|
1565
1790
|
breadcrumbsPrefix: ["response"],
|
|
1566
|
-
}));
|
|
1791
|
+
}), _response.rawResponse);
|
|
1567
1792
|
case 403:
|
|
1568
1793
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1569
1794
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1571,7 +1796,15 @@ class Entitlements {
|
|
|
1571
1796
|
allowUnrecognizedEnumValues: true,
|
|
1572
1797
|
skipValidation: true,
|
|
1573
1798
|
breadcrumbsPrefix: ["response"],
|
|
1574
|
-
}));
|
|
1799
|
+
}), _response.rawResponse);
|
|
1800
|
+
case 404:
|
|
1801
|
+
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1802
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1803
|
+
allowUnrecognizedUnionMembers: true,
|
|
1804
|
+
allowUnrecognizedEnumValues: true,
|
|
1805
|
+
skipValidation: true,
|
|
1806
|
+
breadcrumbsPrefix: ["response"],
|
|
1807
|
+
}), _response.rawResponse);
|
|
1575
1808
|
case 500:
|
|
1576
1809
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1577
1810
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1579,11 +1812,12 @@ class Entitlements {
|
|
|
1579
1812
|
allowUnrecognizedEnumValues: true,
|
|
1580
1813
|
skipValidation: true,
|
|
1581
1814
|
breadcrumbsPrefix: ["response"],
|
|
1582
|
-
}));
|
|
1815
|
+
}), _response.rawResponse);
|
|
1583
1816
|
default:
|
|
1584
1817
|
throw new errors.SchematicError({
|
|
1585
1818
|
statusCode: _response.error.statusCode,
|
|
1586
1819
|
body: _response.error.body,
|
|
1820
|
+
rawResponse: _response.rawResponse,
|
|
1587
1821
|
});
|
|
1588
1822
|
}
|
|
1589
1823
|
}
|
|
@@ -1592,12 +1826,14 @@ class Entitlements {
|
|
|
1592
1826
|
throw new errors.SchematicError({
|
|
1593
1827
|
statusCode: _response.error.statusCode,
|
|
1594
1828
|
body: _response.error.rawBody,
|
|
1829
|
+
rawResponse: _response.rawResponse,
|
|
1595
1830
|
});
|
|
1596
1831
|
case "timeout":
|
|
1597
1832
|
throw new errors.SchematicTimeoutError("Timeout exceeded when calling POST /plan-entitlements.");
|
|
1598
1833
|
case "unknown":
|
|
1599
1834
|
throw new errors.SchematicError({
|
|
1600
1835
|
message: _response.error.errorMessage,
|
|
1836
|
+
rawResponse: _response.rawResponse,
|
|
1601
1837
|
});
|
|
1602
1838
|
}
|
|
1603
1839
|
});
|
|
@@ -1615,12 +1851,15 @@ class Entitlements {
|
|
|
1615
1851
|
* await client.entitlements.getPlanEntitlement("plan_entitlement_id")
|
|
1616
1852
|
*/
|
|
1617
1853
|
getPlanEntitlement(planEntitlementId, requestOptions) {
|
|
1854
|
+
return core.HttpResponsePromise.fromPromise(this.__getPlanEntitlement(planEntitlementId, requestOptions));
|
|
1855
|
+
}
|
|
1856
|
+
__getPlanEntitlement(planEntitlementId, requestOptions) {
|
|
1618
1857
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1619
1858
|
var _a, _b, _c;
|
|
1620
1859
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1621
1860
|
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)}`),
|
|
1622
1861
|
method: "GET",
|
|
1623
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
1862
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.12", "User-Agent": "@schematichq/schematic-typescript-node/1.1.12", "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),
|
|
1624
1863
|
contentType: "application/json",
|
|
1625
1864
|
requestType: "json",
|
|
1626
1865
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1628,13 +1867,16 @@ class Entitlements {
|
|
|
1628
1867
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1629
1868
|
});
|
|
1630
1869
|
if (_response.ok) {
|
|
1631
|
-
return
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1870
|
+
return {
|
|
1871
|
+
data: serializers.GetPlanEntitlementResponse.parseOrThrow(_response.body, {
|
|
1872
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1873
|
+
allowUnrecognizedUnionMembers: true,
|
|
1874
|
+
allowUnrecognizedEnumValues: true,
|
|
1875
|
+
skipValidation: true,
|
|
1876
|
+
breadcrumbsPrefix: ["response"],
|
|
1877
|
+
}),
|
|
1878
|
+
rawResponse: _response.rawResponse,
|
|
1879
|
+
};
|
|
1638
1880
|
}
|
|
1639
1881
|
if (_response.error.reason === "status-code") {
|
|
1640
1882
|
switch (_response.error.statusCode) {
|
|
@@ -1645,7 +1887,7 @@ class Entitlements {
|
|
|
1645
1887
|
allowUnrecognizedEnumValues: true,
|
|
1646
1888
|
skipValidation: true,
|
|
1647
1889
|
breadcrumbsPrefix: ["response"],
|
|
1648
|
-
}));
|
|
1890
|
+
}), _response.rawResponse);
|
|
1649
1891
|
case 403:
|
|
1650
1892
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1651
1893
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1653,7 +1895,7 @@ class Entitlements {
|
|
|
1653
1895
|
allowUnrecognizedEnumValues: true,
|
|
1654
1896
|
skipValidation: true,
|
|
1655
1897
|
breadcrumbsPrefix: ["response"],
|
|
1656
|
-
}));
|
|
1898
|
+
}), _response.rawResponse);
|
|
1657
1899
|
case 404:
|
|
1658
1900
|
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1659
1901
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1661,7 +1903,7 @@ class Entitlements {
|
|
|
1661
1903
|
allowUnrecognizedEnumValues: true,
|
|
1662
1904
|
skipValidation: true,
|
|
1663
1905
|
breadcrumbsPrefix: ["response"],
|
|
1664
|
-
}));
|
|
1906
|
+
}), _response.rawResponse);
|
|
1665
1907
|
case 500:
|
|
1666
1908
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1667
1909
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1669,11 +1911,12 @@ class Entitlements {
|
|
|
1669
1911
|
allowUnrecognizedEnumValues: true,
|
|
1670
1912
|
skipValidation: true,
|
|
1671
1913
|
breadcrumbsPrefix: ["response"],
|
|
1672
|
-
}));
|
|
1914
|
+
}), _response.rawResponse);
|
|
1673
1915
|
default:
|
|
1674
1916
|
throw new errors.SchematicError({
|
|
1675
1917
|
statusCode: _response.error.statusCode,
|
|
1676
1918
|
body: _response.error.body,
|
|
1919
|
+
rawResponse: _response.rawResponse,
|
|
1677
1920
|
});
|
|
1678
1921
|
}
|
|
1679
1922
|
}
|
|
@@ -1682,12 +1925,14 @@ class Entitlements {
|
|
|
1682
1925
|
throw new errors.SchematicError({
|
|
1683
1926
|
statusCode: _response.error.statusCode,
|
|
1684
1927
|
body: _response.error.rawBody,
|
|
1928
|
+
rawResponse: _response.rawResponse,
|
|
1685
1929
|
});
|
|
1686
1930
|
case "timeout":
|
|
1687
1931
|
throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /plan-entitlements/{plan_entitlement_id}.");
|
|
1688
1932
|
case "unknown":
|
|
1689
1933
|
throw new errors.SchematicError({
|
|
1690
1934
|
message: _response.error.errorMessage,
|
|
1935
|
+
rawResponse: _response.rawResponse,
|
|
1691
1936
|
});
|
|
1692
1937
|
}
|
|
1693
1938
|
});
|
|
@@ -1705,16 +1950,21 @@ class Entitlements {
|
|
|
1705
1950
|
*
|
|
1706
1951
|
* @example
|
|
1707
1952
|
* await client.entitlements.updatePlanEntitlement("plan_entitlement_id", {
|
|
1953
|
+
* priceTiers: [{}],
|
|
1954
|
+
* tierMode: "tier_mode",
|
|
1708
1955
|
* valueType: "boolean"
|
|
1709
1956
|
* })
|
|
1710
1957
|
*/
|
|
1711
1958
|
updatePlanEntitlement(planEntitlementId, request, requestOptions) {
|
|
1959
|
+
return core.HttpResponsePromise.fromPromise(this.__updatePlanEntitlement(planEntitlementId, request, requestOptions));
|
|
1960
|
+
}
|
|
1961
|
+
__updatePlanEntitlement(planEntitlementId, request, requestOptions) {
|
|
1712
1962
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1713
1963
|
var _a, _b, _c;
|
|
1714
1964
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1715
1965
|
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)}`),
|
|
1716
1966
|
method: "PUT",
|
|
1717
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
1967
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.12", "User-Agent": "@schematichq/schematic-typescript-node/1.1.12", "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),
|
|
1718
1968
|
contentType: "application/json",
|
|
1719
1969
|
requestType: "json",
|
|
1720
1970
|
body: serializers.UpdatePlanEntitlementRequestBody.jsonOrThrow(request, {
|
|
@@ -1725,13 +1975,16 @@ class Entitlements {
|
|
|
1725
1975
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1726
1976
|
});
|
|
1727
1977
|
if (_response.ok) {
|
|
1728
|
-
return
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1978
|
+
return {
|
|
1979
|
+
data: serializers.UpdatePlanEntitlementResponse.parseOrThrow(_response.body, {
|
|
1980
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1981
|
+
allowUnrecognizedUnionMembers: true,
|
|
1982
|
+
allowUnrecognizedEnumValues: true,
|
|
1983
|
+
skipValidation: true,
|
|
1984
|
+
breadcrumbsPrefix: ["response"],
|
|
1985
|
+
}),
|
|
1986
|
+
rawResponse: _response.rawResponse,
|
|
1987
|
+
};
|
|
1735
1988
|
}
|
|
1736
1989
|
if (_response.error.reason === "status-code") {
|
|
1737
1990
|
switch (_response.error.statusCode) {
|
|
@@ -1742,7 +1995,7 @@ class Entitlements {
|
|
|
1742
1995
|
allowUnrecognizedEnumValues: true,
|
|
1743
1996
|
skipValidation: true,
|
|
1744
1997
|
breadcrumbsPrefix: ["response"],
|
|
1745
|
-
}));
|
|
1998
|
+
}), _response.rawResponse);
|
|
1746
1999
|
case 401:
|
|
1747
2000
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1748
2001
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1750,7 +2003,7 @@ class Entitlements {
|
|
|
1750
2003
|
allowUnrecognizedEnumValues: true,
|
|
1751
2004
|
skipValidation: true,
|
|
1752
2005
|
breadcrumbsPrefix: ["response"],
|
|
1753
|
-
}));
|
|
2006
|
+
}), _response.rawResponse);
|
|
1754
2007
|
case 403:
|
|
1755
2008
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1756
2009
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1758,7 +2011,7 @@ class Entitlements {
|
|
|
1758
2011
|
allowUnrecognizedEnumValues: true,
|
|
1759
2012
|
skipValidation: true,
|
|
1760
2013
|
breadcrumbsPrefix: ["response"],
|
|
1761
|
-
}));
|
|
2014
|
+
}), _response.rawResponse);
|
|
1762
2015
|
case 404:
|
|
1763
2016
|
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1764
2017
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1766,7 +2019,7 @@ class Entitlements {
|
|
|
1766
2019
|
allowUnrecognizedEnumValues: true,
|
|
1767
2020
|
skipValidation: true,
|
|
1768
2021
|
breadcrumbsPrefix: ["response"],
|
|
1769
|
-
}));
|
|
2022
|
+
}), _response.rawResponse);
|
|
1770
2023
|
case 500:
|
|
1771
2024
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1772
2025
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1774,11 +2027,12 @@ class Entitlements {
|
|
|
1774
2027
|
allowUnrecognizedEnumValues: true,
|
|
1775
2028
|
skipValidation: true,
|
|
1776
2029
|
breadcrumbsPrefix: ["response"],
|
|
1777
|
-
}));
|
|
2030
|
+
}), _response.rawResponse);
|
|
1778
2031
|
default:
|
|
1779
2032
|
throw new errors.SchematicError({
|
|
1780
2033
|
statusCode: _response.error.statusCode,
|
|
1781
2034
|
body: _response.error.body,
|
|
2035
|
+
rawResponse: _response.rawResponse,
|
|
1782
2036
|
});
|
|
1783
2037
|
}
|
|
1784
2038
|
}
|
|
@@ -1787,12 +2041,14 @@ class Entitlements {
|
|
|
1787
2041
|
throw new errors.SchematicError({
|
|
1788
2042
|
statusCode: _response.error.statusCode,
|
|
1789
2043
|
body: _response.error.rawBody,
|
|
2044
|
+
rawResponse: _response.rawResponse,
|
|
1790
2045
|
});
|
|
1791
2046
|
case "timeout":
|
|
1792
2047
|
throw new errors.SchematicTimeoutError("Timeout exceeded when calling PUT /plan-entitlements/{plan_entitlement_id}.");
|
|
1793
2048
|
case "unknown":
|
|
1794
2049
|
throw new errors.SchematicError({
|
|
1795
2050
|
message: _response.error.errorMessage,
|
|
2051
|
+
rawResponse: _response.rawResponse,
|
|
1796
2052
|
});
|
|
1797
2053
|
}
|
|
1798
2054
|
});
|
|
@@ -1804,18 +2060,22 @@ class Entitlements {
|
|
|
1804
2060
|
* @throws {@link Schematic.BadRequestError}
|
|
1805
2061
|
* @throws {@link Schematic.UnauthorizedError}
|
|
1806
2062
|
* @throws {@link Schematic.ForbiddenError}
|
|
2063
|
+
* @throws {@link Schematic.NotFoundError}
|
|
1807
2064
|
* @throws {@link Schematic.InternalServerError}
|
|
1808
2065
|
*
|
|
1809
2066
|
* @example
|
|
1810
2067
|
* await client.entitlements.deletePlanEntitlement("plan_entitlement_id")
|
|
1811
2068
|
*/
|
|
1812
2069
|
deletePlanEntitlement(planEntitlementId, requestOptions) {
|
|
2070
|
+
return core.HttpResponsePromise.fromPromise(this.__deletePlanEntitlement(planEntitlementId, requestOptions));
|
|
2071
|
+
}
|
|
2072
|
+
__deletePlanEntitlement(planEntitlementId, requestOptions) {
|
|
1813
2073
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1814
2074
|
var _a, _b, _c;
|
|
1815
2075
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1816
2076
|
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)}`),
|
|
1817
2077
|
method: "DELETE",
|
|
1818
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
2078
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.12", "User-Agent": "@schematichq/schematic-typescript-node/1.1.12", "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),
|
|
1819
2079
|
contentType: "application/json",
|
|
1820
2080
|
requestType: "json",
|
|
1821
2081
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1823,13 +2083,16 @@ class Entitlements {
|
|
|
1823
2083
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1824
2084
|
});
|
|
1825
2085
|
if (_response.ok) {
|
|
1826
|
-
return
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
2086
|
+
return {
|
|
2087
|
+
data: serializers.DeletePlanEntitlementResponse.parseOrThrow(_response.body, {
|
|
2088
|
+
unrecognizedObjectKeys: "passthrough",
|
|
2089
|
+
allowUnrecognizedUnionMembers: true,
|
|
2090
|
+
allowUnrecognizedEnumValues: true,
|
|
2091
|
+
skipValidation: true,
|
|
2092
|
+
breadcrumbsPrefix: ["response"],
|
|
2093
|
+
}),
|
|
2094
|
+
rawResponse: _response.rawResponse,
|
|
2095
|
+
};
|
|
1833
2096
|
}
|
|
1834
2097
|
if (_response.error.reason === "status-code") {
|
|
1835
2098
|
switch (_response.error.statusCode) {
|
|
@@ -1840,7 +2103,7 @@ class Entitlements {
|
|
|
1840
2103
|
allowUnrecognizedEnumValues: true,
|
|
1841
2104
|
skipValidation: true,
|
|
1842
2105
|
breadcrumbsPrefix: ["response"],
|
|
1843
|
-
}));
|
|
2106
|
+
}), _response.rawResponse);
|
|
1844
2107
|
case 401:
|
|
1845
2108
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1846
2109
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1848,7 +2111,7 @@ class Entitlements {
|
|
|
1848
2111
|
allowUnrecognizedEnumValues: true,
|
|
1849
2112
|
skipValidation: true,
|
|
1850
2113
|
breadcrumbsPrefix: ["response"],
|
|
1851
|
-
}));
|
|
2114
|
+
}), _response.rawResponse);
|
|
1852
2115
|
case 403:
|
|
1853
2116
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1854
2117
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1856,7 +2119,15 @@ class Entitlements {
|
|
|
1856
2119
|
allowUnrecognizedEnumValues: true,
|
|
1857
2120
|
skipValidation: true,
|
|
1858
2121
|
breadcrumbsPrefix: ["response"],
|
|
1859
|
-
}));
|
|
2122
|
+
}), _response.rawResponse);
|
|
2123
|
+
case 404:
|
|
2124
|
+
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
2125
|
+
unrecognizedObjectKeys: "passthrough",
|
|
2126
|
+
allowUnrecognizedUnionMembers: true,
|
|
2127
|
+
allowUnrecognizedEnumValues: true,
|
|
2128
|
+
skipValidation: true,
|
|
2129
|
+
breadcrumbsPrefix: ["response"],
|
|
2130
|
+
}), _response.rawResponse);
|
|
1860
2131
|
case 500:
|
|
1861
2132
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1862
2133
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1864,11 +2135,12 @@ class Entitlements {
|
|
|
1864
2135
|
allowUnrecognizedEnumValues: true,
|
|
1865
2136
|
skipValidation: true,
|
|
1866
2137
|
breadcrumbsPrefix: ["response"],
|
|
1867
|
-
}));
|
|
2138
|
+
}), _response.rawResponse);
|
|
1868
2139
|
default:
|
|
1869
2140
|
throw new errors.SchematicError({
|
|
1870
2141
|
statusCode: _response.error.statusCode,
|
|
1871
2142
|
body: _response.error.body,
|
|
2143
|
+
rawResponse: _response.rawResponse,
|
|
1872
2144
|
});
|
|
1873
2145
|
}
|
|
1874
2146
|
}
|
|
@@ -1877,12 +2149,14 @@ class Entitlements {
|
|
|
1877
2149
|
throw new errors.SchematicError({
|
|
1878
2150
|
statusCode: _response.error.statusCode,
|
|
1879
2151
|
body: _response.error.rawBody,
|
|
2152
|
+
rawResponse: _response.rawResponse,
|
|
1880
2153
|
});
|
|
1881
2154
|
case "timeout":
|
|
1882
2155
|
throw new errors.SchematicTimeoutError("Timeout exceeded when calling DELETE /plan-entitlements/{plan_entitlement_id}.");
|
|
1883
2156
|
case "unknown":
|
|
1884
2157
|
throw new errors.SchematicError({
|
|
1885
2158
|
message: _response.error.errorMessage,
|
|
2159
|
+
rawResponse: _response.rawResponse,
|
|
1886
2160
|
});
|
|
1887
2161
|
}
|
|
1888
2162
|
});
|
|
@@ -1894,12 +2168,16 @@ class Entitlements {
|
|
|
1894
2168
|
* @throws {@link Schematic.BadRequestError}
|
|
1895
2169
|
* @throws {@link Schematic.UnauthorizedError}
|
|
1896
2170
|
* @throws {@link Schematic.ForbiddenError}
|
|
2171
|
+
* @throws {@link Schematic.NotFoundError}
|
|
1897
2172
|
* @throws {@link Schematic.InternalServerError}
|
|
1898
2173
|
*
|
|
1899
2174
|
* @example
|
|
1900
2175
|
* await client.entitlements.countPlanEntitlements()
|
|
1901
2176
|
*/
|
|
1902
|
-
countPlanEntitlements() {
|
|
2177
|
+
countPlanEntitlements(request = {}, requestOptions) {
|
|
2178
|
+
return core.HttpResponsePromise.fromPromise(this.__countPlanEntitlements(request, requestOptions));
|
|
2179
|
+
}
|
|
2180
|
+
__countPlanEntitlements() {
|
|
1903
2181
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
1904
2182
|
var _a, _b, _c;
|
|
1905
2183
|
const { featureId, featureIds, ids, planId, planIds, q, withMeteredProducts, limit, offset } = request;
|
|
@@ -1949,7 +2227,7 @@ class Entitlements {
|
|
|
1949
2227
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1950
2228
|
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"),
|
|
1951
2229
|
method: "GET",
|
|
1952
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
2230
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.12", "User-Agent": "@schematichq/schematic-typescript-node/1.1.12", "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),
|
|
1953
2231
|
contentType: "application/json",
|
|
1954
2232
|
queryParameters: _queryParams,
|
|
1955
2233
|
requestType: "json",
|
|
@@ -1958,13 +2236,16 @@ class Entitlements {
|
|
|
1958
2236
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1959
2237
|
});
|
|
1960
2238
|
if (_response.ok) {
|
|
1961
|
-
return
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
2239
|
+
return {
|
|
2240
|
+
data: serializers.CountPlanEntitlementsResponse.parseOrThrow(_response.body, {
|
|
2241
|
+
unrecognizedObjectKeys: "passthrough",
|
|
2242
|
+
allowUnrecognizedUnionMembers: true,
|
|
2243
|
+
allowUnrecognizedEnumValues: true,
|
|
2244
|
+
skipValidation: true,
|
|
2245
|
+
breadcrumbsPrefix: ["response"],
|
|
2246
|
+
}),
|
|
2247
|
+
rawResponse: _response.rawResponse,
|
|
2248
|
+
};
|
|
1968
2249
|
}
|
|
1969
2250
|
if (_response.error.reason === "status-code") {
|
|
1970
2251
|
switch (_response.error.statusCode) {
|
|
@@ -1975,7 +2256,7 @@ class Entitlements {
|
|
|
1975
2256
|
allowUnrecognizedEnumValues: true,
|
|
1976
2257
|
skipValidation: true,
|
|
1977
2258
|
breadcrumbsPrefix: ["response"],
|
|
1978
|
-
}));
|
|
2259
|
+
}), _response.rawResponse);
|
|
1979
2260
|
case 401:
|
|
1980
2261
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1981
2262
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1983,7 +2264,7 @@ class Entitlements {
|
|
|
1983
2264
|
allowUnrecognizedEnumValues: true,
|
|
1984
2265
|
skipValidation: true,
|
|
1985
2266
|
breadcrumbsPrefix: ["response"],
|
|
1986
|
-
}));
|
|
2267
|
+
}), _response.rawResponse);
|
|
1987
2268
|
case 403:
|
|
1988
2269
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1989
2270
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1991,7 +2272,15 @@ class Entitlements {
|
|
|
1991
2272
|
allowUnrecognizedEnumValues: true,
|
|
1992
2273
|
skipValidation: true,
|
|
1993
2274
|
breadcrumbsPrefix: ["response"],
|
|
1994
|
-
}));
|
|
2275
|
+
}), _response.rawResponse);
|
|
2276
|
+
case 404:
|
|
2277
|
+
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
2278
|
+
unrecognizedObjectKeys: "passthrough",
|
|
2279
|
+
allowUnrecognizedUnionMembers: true,
|
|
2280
|
+
allowUnrecognizedEnumValues: true,
|
|
2281
|
+
skipValidation: true,
|
|
2282
|
+
breadcrumbsPrefix: ["response"],
|
|
2283
|
+
}), _response.rawResponse);
|
|
1995
2284
|
case 500:
|
|
1996
2285
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1997
2286
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1999,11 +2288,12 @@ class Entitlements {
|
|
|
1999
2288
|
allowUnrecognizedEnumValues: true,
|
|
2000
2289
|
skipValidation: true,
|
|
2001
2290
|
breadcrumbsPrefix: ["response"],
|
|
2002
|
-
}));
|
|
2291
|
+
}), _response.rawResponse);
|
|
2003
2292
|
default:
|
|
2004
2293
|
throw new errors.SchematicError({
|
|
2005
2294
|
statusCode: _response.error.statusCode,
|
|
2006
2295
|
body: _response.error.body,
|
|
2296
|
+
rawResponse: _response.rawResponse,
|
|
2007
2297
|
});
|
|
2008
2298
|
}
|
|
2009
2299
|
}
|
|
@@ -2012,12 +2302,14 @@ class Entitlements {
|
|
|
2012
2302
|
throw new errors.SchematicError({
|
|
2013
2303
|
statusCode: _response.error.statusCode,
|
|
2014
2304
|
body: _response.error.rawBody,
|
|
2305
|
+
rawResponse: _response.rawResponse,
|
|
2015
2306
|
});
|
|
2016
2307
|
case "timeout":
|
|
2017
2308
|
throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /plan-entitlements/count.");
|
|
2018
2309
|
case "unknown":
|
|
2019
2310
|
throw new errors.SchematicError({
|
|
2020
2311
|
message: _response.error.errorMessage,
|
|
2312
|
+
rawResponse: _response.rawResponse,
|
|
2021
2313
|
});
|
|
2022
2314
|
}
|
|
2023
2315
|
});
|
|
@@ -2034,13 +2326,14 @@ class Entitlements {
|
|
|
2034
2326
|
* @example
|
|
2035
2327
|
* await client.entitlements.getFeatureUsageByCompany({
|
|
2036
2328
|
* keys: {
|
|
2037
|
-
* "keys":
|
|
2038
|
-
* "key": "value"
|
|
2039
|
-
* }
|
|
2329
|
+
* "keys": "keys"
|
|
2040
2330
|
* }
|
|
2041
2331
|
* })
|
|
2042
2332
|
*/
|
|
2043
2333
|
getFeatureUsageByCompany(request, requestOptions) {
|
|
2334
|
+
return core.HttpResponsePromise.fromPromise(this.__getFeatureUsageByCompany(request, requestOptions));
|
|
2335
|
+
}
|
|
2336
|
+
__getFeatureUsageByCompany(request, requestOptions) {
|
|
2044
2337
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2045
2338
|
var _a, _b, _c;
|
|
2046
2339
|
const { keys } = request;
|
|
@@ -2049,7 +2342,7 @@ class Entitlements {
|
|
|
2049
2342
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
2050
2343
|
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"),
|
|
2051
2344
|
method: "GET",
|
|
2052
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
2345
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.12", "User-Agent": "@schematichq/schematic-typescript-node/1.1.12", "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),
|
|
2053
2346
|
contentType: "application/json",
|
|
2054
2347
|
queryParameters: _queryParams,
|
|
2055
2348
|
requestType: "json",
|
|
@@ -2058,13 +2351,16 @@ class Entitlements {
|
|
|
2058
2351
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
2059
2352
|
});
|
|
2060
2353
|
if (_response.ok) {
|
|
2061
|
-
return
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2354
|
+
return {
|
|
2355
|
+
data: serializers.GetFeatureUsageByCompanyResponse.parseOrThrow(_response.body, {
|
|
2356
|
+
unrecognizedObjectKeys: "passthrough",
|
|
2357
|
+
allowUnrecognizedUnionMembers: true,
|
|
2358
|
+
allowUnrecognizedEnumValues: true,
|
|
2359
|
+
skipValidation: true,
|
|
2360
|
+
breadcrumbsPrefix: ["response"],
|
|
2361
|
+
}),
|
|
2362
|
+
rawResponse: _response.rawResponse,
|
|
2363
|
+
};
|
|
2068
2364
|
}
|
|
2069
2365
|
if (_response.error.reason === "status-code") {
|
|
2070
2366
|
switch (_response.error.statusCode) {
|
|
@@ -2075,7 +2371,7 @@ class Entitlements {
|
|
|
2075
2371
|
allowUnrecognizedEnumValues: true,
|
|
2076
2372
|
skipValidation: true,
|
|
2077
2373
|
breadcrumbsPrefix: ["response"],
|
|
2078
|
-
}));
|
|
2374
|
+
}), _response.rawResponse);
|
|
2079
2375
|
case 403:
|
|
2080
2376
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
2081
2377
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -2083,7 +2379,7 @@ class Entitlements {
|
|
|
2083
2379
|
allowUnrecognizedEnumValues: true,
|
|
2084
2380
|
skipValidation: true,
|
|
2085
2381
|
breadcrumbsPrefix: ["response"],
|
|
2086
|
-
}));
|
|
2382
|
+
}), _response.rawResponse);
|
|
2087
2383
|
case 404:
|
|
2088
2384
|
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
2089
2385
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -2091,7 +2387,7 @@ class Entitlements {
|
|
|
2091
2387
|
allowUnrecognizedEnumValues: true,
|
|
2092
2388
|
skipValidation: true,
|
|
2093
2389
|
breadcrumbsPrefix: ["response"],
|
|
2094
|
-
}));
|
|
2390
|
+
}), _response.rawResponse);
|
|
2095
2391
|
case 500:
|
|
2096
2392
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
2097
2393
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -2099,11 +2395,12 @@ class Entitlements {
|
|
|
2099
2395
|
allowUnrecognizedEnumValues: true,
|
|
2100
2396
|
skipValidation: true,
|
|
2101
2397
|
breadcrumbsPrefix: ["response"],
|
|
2102
|
-
}));
|
|
2398
|
+
}), _response.rawResponse);
|
|
2103
2399
|
default:
|
|
2104
2400
|
throw new errors.SchematicError({
|
|
2105
2401
|
statusCode: _response.error.statusCode,
|
|
2106
2402
|
body: _response.error.body,
|
|
2403
|
+
rawResponse: _response.rawResponse,
|
|
2107
2404
|
});
|
|
2108
2405
|
}
|
|
2109
2406
|
}
|
|
@@ -2112,12 +2409,14 @@ class Entitlements {
|
|
|
2112
2409
|
throw new errors.SchematicError({
|
|
2113
2410
|
statusCode: _response.error.statusCode,
|
|
2114
2411
|
body: _response.error.rawBody,
|
|
2412
|
+
rawResponse: _response.rawResponse,
|
|
2115
2413
|
});
|
|
2116
2414
|
case "timeout":
|
|
2117
2415
|
throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /usage-by-company.");
|
|
2118
2416
|
case "unknown":
|
|
2119
2417
|
throw new errors.SchematicError({
|
|
2120
2418
|
message: _response.error.errorMessage,
|
|
2419
|
+
rawResponse: _response.rawResponse,
|
|
2121
2420
|
});
|
|
2122
2421
|
}
|
|
2123
2422
|
});
|