@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
|
@@ -66,6 +66,7 @@ class Features {
|
|
|
66
66
|
* @throws {@link Schematic.BadRequestError}
|
|
67
67
|
* @throws {@link Schematic.UnauthorizedError}
|
|
68
68
|
* @throws {@link Schematic.ForbiddenError}
|
|
69
|
+
* @throws {@link Schematic.NotFoundError}
|
|
69
70
|
* @throws {@link Schematic.InternalServerError}
|
|
70
71
|
*
|
|
71
72
|
* @example
|
|
@@ -85,12 +86,15 @@ class Features {
|
|
|
85
86
|
* })
|
|
86
87
|
*/
|
|
87
88
|
countAudienceCompanies(request, requestOptions) {
|
|
89
|
+
return core.HttpResponsePromise.fromPromise(this.__countAudienceCompanies(request, requestOptions));
|
|
90
|
+
}
|
|
91
|
+
__countAudienceCompanies(request, requestOptions) {
|
|
88
92
|
return __awaiter(this, void 0, void 0, function* () {
|
|
89
93
|
var _a, _b, _c;
|
|
90
94
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
91
95
|
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, "audience/count-companies"),
|
|
92
96
|
method: "POST",
|
|
93
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
97
|
+
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),
|
|
94
98
|
contentType: "application/json",
|
|
95
99
|
requestType: "json",
|
|
96
100
|
body: serializers.AudienceRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -99,13 +103,16 @@ class Features {
|
|
|
99
103
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
100
104
|
});
|
|
101
105
|
if (_response.ok) {
|
|
102
|
-
return
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
106
|
+
return {
|
|
107
|
+
data: serializers.CountAudienceCompaniesResponse.parseOrThrow(_response.body, {
|
|
108
|
+
unrecognizedObjectKeys: "passthrough",
|
|
109
|
+
allowUnrecognizedUnionMembers: true,
|
|
110
|
+
allowUnrecognizedEnumValues: true,
|
|
111
|
+
skipValidation: true,
|
|
112
|
+
breadcrumbsPrefix: ["response"],
|
|
113
|
+
}),
|
|
114
|
+
rawResponse: _response.rawResponse,
|
|
115
|
+
};
|
|
109
116
|
}
|
|
110
117
|
if (_response.error.reason === "status-code") {
|
|
111
118
|
switch (_response.error.statusCode) {
|
|
@@ -116,7 +123,7 @@ class Features {
|
|
|
116
123
|
allowUnrecognizedEnumValues: true,
|
|
117
124
|
skipValidation: true,
|
|
118
125
|
breadcrumbsPrefix: ["response"],
|
|
119
|
-
}));
|
|
126
|
+
}), _response.rawResponse);
|
|
120
127
|
case 401:
|
|
121
128
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
122
129
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -124,7 +131,7 @@ class Features {
|
|
|
124
131
|
allowUnrecognizedEnumValues: true,
|
|
125
132
|
skipValidation: true,
|
|
126
133
|
breadcrumbsPrefix: ["response"],
|
|
127
|
-
}));
|
|
134
|
+
}), _response.rawResponse);
|
|
128
135
|
case 403:
|
|
129
136
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
130
137
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -132,7 +139,15 @@ class Features {
|
|
|
132
139
|
allowUnrecognizedEnumValues: true,
|
|
133
140
|
skipValidation: true,
|
|
134
141
|
breadcrumbsPrefix: ["response"],
|
|
135
|
-
}));
|
|
142
|
+
}), _response.rawResponse);
|
|
143
|
+
case 404:
|
|
144
|
+
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
145
|
+
unrecognizedObjectKeys: "passthrough",
|
|
146
|
+
allowUnrecognizedUnionMembers: true,
|
|
147
|
+
allowUnrecognizedEnumValues: true,
|
|
148
|
+
skipValidation: true,
|
|
149
|
+
breadcrumbsPrefix: ["response"],
|
|
150
|
+
}), _response.rawResponse);
|
|
136
151
|
case 500:
|
|
137
152
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
138
153
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -140,11 +155,12 @@ class Features {
|
|
|
140
155
|
allowUnrecognizedEnumValues: true,
|
|
141
156
|
skipValidation: true,
|
|
142
157
|
breadcrumbsPrefix: ["response"],
|
|
143
|
-
}));
|
|
158
|
+
}), _response.rawResponse);
|
|
144
159
|
default:
|
|
145
160
|
throw new errors.SchematicError({
|
|
146
161
|
statusCode: _response.error.statusCode,
|
|
147
162
|
body: _response.error.body,
|
|
163
|
+
rawResponse: _response.rawResponse,
|
|
148
164
|
});
|
|
149
165
|
}
|
|
150
166
|
}
|
|
@@ -153,12 +169,14 @@ class Features {
|
|
|
153
169
|
throw new errors.SchematicError({
|
|
154
170
|
statusCode: _response.error.statusCode,
|
|
155
171
|
body: _response.error.rawBody,
|
|
172
|
+
rawResponse: _response.rawResponse,
|
|
156
173
|
});
|
|
157
174
|
case "timeout":
|
|
158
175
|
throw new errors.SchematicTimeoutError("Timeout exceeded when calling POST /audience/count-companies.");
|
|
159
176
|
case "unknown":
|
|
160
177
|
throw new errors.SchematicError({
|
|
161
178
|
message: _response.error.errorMessage,
|
|
179
|
+
rawResponse: _response.rawResponse,
|
|
162
180
|
});
|
|
163
181
|
}
|
|
164
182
|
});
|
|
@@ -170,6 +188,7 @@ class Features {
|
|
|
170
188
|
* @throws {@link Schematic.BadRequestError}
|
|
171
189
|
* @throws {@link Schematic.UnauthorizedError}
|
|
172
190
|
* @throws {@link Schematic.ForbiddenError}
|
|
191
|
+
* @throws {@link Schematic.NotFoundError}
|
|
173
192
|
* @throws {@link Schematic.InternalServerError}
|
|
174
193
|
*
|
|
175
194
|
* @example
|
|
@@ -189,12 +208,15 @@ class Features {
|
|
|
189
208
|
* })
|
|
190
209
|
*/
|
|
191
210
|
countAudienceUsers(request, requestOptions) {
|
|
211
|
+
return core.HttpResponsePromise.fromPromise(this.__countAudienceUsers(request, requestOptions));
|
|
212
|
+
}
|
|
213
|
+
__countAudienceUsers(request, requestOptions) {
|
|
192
214
|
return __awaiter(this, void 0, void 0, function* () {
|
|
193
215
|
var _a, _b, _c;
|
|
194
216
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
195
217
|
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, "audience/count-users"),
|
|
196
218
|
method: "POST",
|
|
197
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
219
|
+
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),
|
|
198
220
|
contentType: "application/json",
|
|
199
221
|
requestType: "json",
|
|
200
222
|
body: serializers.AudienceRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -203,13 +225,16 @@ class Features {
|
|
|
203
225
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
204
226
|
});
|
|
205
227
|
if (_response.ok) {
|
|
206
|
-
return
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
228
|
+
return {
|
|
229
|
+
data: serializers.CountAudienceUsersResponse.parseOrThrow(_response.body, {
|
|
230
|
+
unrecognizedObjectKeys: "passthrough",
|
|
231
|
+
allowUnrecognizedUnionMembers: true,
|
|
232
|
+
allowUnrecognizedEnumValues: true,
|
|
233
|
+
skipValidation: true,
|
|
234
|
+
breadcrumbsPrefix: ["response"],
|
|
235
|
+
}),
|
|
236
|
+
rawResponse: _response.rawResponse,
|
|
237
|
+
};
|
|
213
238
|
}
|
|
214
239
|
if (_response.error.reason === "status-code") {
|
|
215
240
|
switch (_response.error.statusCode) {
|
|
@@ -220,7 +245,7 @@ class Features {
|
|
|
220
245
|
allowUnrecognizedEnumValues: true,
|
|
221
246
|
skipValidation: true,
|
|
222
247
|
breadcrumbsPrefix: ["response"],
|
|
223
|
-
}));
|
|
248
|
+
}), _response.rawResponse);
|
|
224
249
|
case 401:
|
|
225
250
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
226
251
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -228,7 +253,7 @@ class Features {
|
|
|
228
253
|
allowUnrecognizedEnumValues: true,
|
|
229
254
|
skipValidation: true,
|
|
230
255
|
breadcrumbsPrefix: ["response"],
|
|
231
|
-
}));
|
|
256
|
+
}), _response.rawResponse);
|
|
232
257
|
case 403:
|
|
233
258
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
234
259
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -236,7 +261,15 @@ class Features {
|
|
|
236
261
|
allowUnrecognizedEnumValues: true,
|
|
237
262
|
skipValidation: true,
|
|
238
263
|
breadcrumbsPrefix: ["response"],
|
|
239
|
-
}));
|
|
264
|
+
}), _response.rawResponse);
|
|
265
|
+
case 404:
|
|
266
|
+
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
267
|
+
unrecognizedObjectKeys: "passthrough",
|
|
268
|
+
allowUnrecognizedUnionMembers: true,
|
|
269
|
+
allowUnrecognizedEnumValues: true,
|
|
270
|
+
skipValidation: true,
|
|
271
|
+
breadcrumbsPrefix: ["response"],
|
|
272
|
+
}), _response.rawResponse);
|
|
240
273
|
case 500:
|
|
241
274
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
242
275
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -244,11 +277,12 @@ class Features {
|
|
|
244
277
|
allowUnrecognizedEnumValues: true,
|
|
245
278
|
skipValidation: true,
|
|
246
279
|
breadcrumbsPrefix: ["response"],
|
|
247
|
-
}));
|
|
280
|
+
}), _response.rawResponse);
|
|
248
281
|
default:
|
|
249
282
|
throw new errors.SchematicError({
|
|
250
283
|
statusCode: _response.error.statusCode,
|
|
251
284
|
body: _response.error.body,
|
|
285
|
+
rawResponse: _response.rawResponse,
|
|
252
286
|
});
|
|
253
287
|
}
|
|
254
288
|
}
|
|
@@ -257,12 +291,14 @@ class Features {
|
|
|
257
291
|
throw new errors.SchematicError({
|
|
258
292
|
statusCode: _response.error.statusCode,
|
|
259
293
|
body: _response.error.rawBody,
|
|
294
|
+
rawResponse: _response.rawResponse,
|
|
260
295
|
});
|
|
261
296
|
case "timeout":
|
|
262
297
|
throw new errors.SchematicTimeoutError("Timeout exceeded when calling POST /audience/count-users.");
|
|
263
298
|
case "unknown":
|
|
264
299
|
throw new errors.SchematicError({
|
|
265
300
|
message: _response.error.errorMessage,
|
|
301
|
+
rawResponse: _response.rawResponse,
|
|
266
302
|
});
|
|
267
303
|
}
|
|
268
304
|
});
|
|
@@ -274,6 +310,7 @@ class Features {
|
|
|
274
310
|
* @throws {@link Schematic.BadRequestError}
|
|
275
311
|
* @throws {@link Schematic.UnauthorizedError}
|
|
276
312
|
* @throws {@link Schematic.ForbiddenError}
|
|
313
|
+
* @throws {@link Schematic.NotFoundError}
|
|
277
314
|
* @throws {@link Schematic.InternalServerError}
|
|
278
315
|
*
|
|
279
316
|
* @example
|
|
@@ -293,12 +330,15 @@ class Features {
|
|
|
293
330
|
* })
|
|
294
331
|
*/
|
|
295
332
|
listAudienceCompanies(request, requestOptions) {
|
|
333
|
+
return core.HttpResponsePromise.fromPromise(this.__listAudienceCompanies(request, requestOptions));
|
|
334
|
+
}
|
|
335
|
+
__listAudienceCompanies(request, requestOptions) {
|
|
296
336
|
return __awaiter(this, void 0, void 0, function* () {
|
|
297
337
|
var _a, _b, _c;
|
|
298
338
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
299
339
|
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, "audience/get-companies"),
|
|
300
340
|
method: "POST",
|
|
301
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
341
|
+
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),
|
|
302
342
|
contentType: "application/json",
|
|
303
343
|
requestType: "json",
|
|
304
344
|
body: serializers.AudienceRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -307,13 +347,16 @@ class Features {
|
|
|
307
347
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
308
348
|
});
|
|
309
349
|
if (_response.ok) {
|
|
310
|
-
return
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
350
|
+
return {
|
|
351
|
+
data: serializers.ListAudienceCompaniesResponse.parseOrThrow(_response.body, {
|
|
352
|
+
unrecognizedObjectKeys: "passthrough",
|
|
353
|
+
allowUnrecognizedUnionMembers: true,
|
|
354
|
+
allowUnrecognizedEnumValues: true,
|
|
355
|
+
skipValidation: true,
|
|
356
|
+
breadcrumbsPrefix: ["response"],
|
|
357
|
+
}),
|
|
358
|
+
rawResponse: _response.rawResponse,
|
|
359
|
+
};
|
|
317
360
|
}
|
|
318
361
|
if (_response.error.reason === "status-code") {
|
|
319
362
|
switch (_response.error.statusCode) {
|
|
@@ -324,7 +367,7 @@ class Features {
|
|
|
324
367
|
allowUnrecognizedEnumValues: true,
|
|
325
368
|
skipValidation: true,
|
|
326
369
|
breadcrumbsPrefix: ["response"],
|
|
327
|
-
}));
|
|
370
|
+
}), _response.rawResponse);
|
|
328
371
|
case 401:
|
|
329
372
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
330
373
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -332,7 +375,7 @@ class Features {
|
|
|
332
375
|
allowUnrecognizedEnumValues: true,
|
|
333
376
|
skipValidation: true,
|
|
334
377
|
breadcrumbsPrefix: ["response"],
|
|
335
|
-
}));
|
|
378
|
+
}), _response.rawResponse);
|
|
336
379
|
case 403:
|
|
337
380
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
338
381
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -340,7 +383,15 @@ class Features {
|
|
|
340
383
|
allowUnrecognizedEnumValues: true,
|
|
341
384
|
skipValidation: true,
|
|
342
385
|
breadcrumbsPrefix: ["response"],
|
|
343
|
-
}));
|
|
386
|
+
}), _response.rawResponse);
|
|
387
|
+
case 404:
|
|
388
|
+
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
389
|
+
unrecognizedObjectKeys: "passthrough",
|
|
390
|
+
allowUnrecognizedUnionMembers: true,
|
|
391
|
+
allowUnrecognizedEnumValues: true,
|
|
392
|
+
skipValidation: true,
|
|
393
|
+
breadcrumbsPrefix: ["response"],
|
|
394
|
+
}), _response.rawResponse);
|
|
344
395
|
case 500:
|
|
345
396
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
346
397
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -348,11 +399,12 @@ class Features {
|
|
|
348
399
|
allowUnrecognizedEnumValues: true,
|
|
349
400
|
skipValidation: true,
|
|
350
401
|
breadcrumbsPrefix: ["response"],
|
|
351
|
-
}));
|
|
402
|
+
}), _response.rawResponse);
|
|
352
403
|
default:
|
|
353
404
|
throw new errors.SchematicError({
|
|
354
405
|
statusCode: _response.error.statusCode,
|
|
355
406
|
body: _response.error.body,
|
|
407
|
+
rawResponse: _response.rawResponse,
|
|
356
408
|
});
|
|
357
409
|
}
|
|
358
410
|
}
|
|
@@ -361,12 +413,14 @@ class Features {
|
|
|
361
413
|
throw new errors.SchematicError({
|
|
362
414
|
statusCode: _response.error.statusCode,
|
|
363
415
|
body: _response.error.rawBody,
|
|
416
|
+
rawResponse: _response.rawResponse,
|
|
364
417
|
});
|
|
365
418
|
case "timeout":
|
|
366
419
|
throw new errors.SchematicTimeoutError("Timeout exceeded when calling POST /audience/get-companies.");
|
|
367
420
|
case "unknown":
|
|
368
421
|
throw new errors.SchematicError({
|
|
369
422
|
message: _response.error.errorMessage,
|
|
423
|
+
rawResponse: _response.rawResponse,
|
|
370
424
|
});
|
|
371
425
|
}
|
|
372
426
|
});
|
|
@@ -378,6 +432,7 @@ class Features {
|
|
|
378
432
|
* @throws {@link Schematic.BadRequestError}
|
|
379
433
|
* @throws {@link Schematic.UnauthorizedError}
|
|
380
434
|
* @throws {@link Schematic.ForbiddenError}
|
|
435
|
+
* @throws {@link Schematic.NotFoundError}
|
|
381
436
|
* @throws {@link Schematic.InternalServerError}
|
|
382
437
|
*
|
|
383
438
|
* @example
|
|
@@ -397,12 +452,15 @@ class Features {
|
|
|
397
452
|
* })
|
|
398
453
|
*/
|
|
399
454
|
listAudienceUsers(request, requestOptions) {
|
|
455
|
+
return core.HttpResponsePromise.fromPromise(this.__listAudienceUsers(request, requestOptions));
|
|
456
|
+
}
|
|
457
|
+
__listAudienceUsers(request, requestOptions) {
|
|
400
458
|
return __awaiter(this, void 0, void 0, function* () {
|
|
401
459
|
var _a, _b, _c;
|
|
402
460
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
403
461
|
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, "audience/get-users"),
|
|
404
462
|
method: "POST",
|
|
405
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
463
|
+
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),
|
|
406
464
|
contentType: "application/json",
|
|
407
465
|
requestType: "json",
|
|
408
466
|
body: serializers.AudienceRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -411,13 +469,16 @@ class Features {
|
|
|
411
469
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
412
470
|
});
|
|
413
471
|
if (_response.ok) {
|
|
414
|
-
return
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
472
|
+
return {
|
|
473
|
+
data: serializers.ListAudienceUsersResponse.parseOrThrow(_response.body, {
|
|
474
|
+
unrecognizedObjectKeys: "passthrough",
|
|
475
|
+
allowUnrecognizedUnionMembers: true,
|
|
476
|
+
allowUnrecognizedEnumValues: true,
|
|
477
|
+
skipValidation: true,
|
|
478
|
+
breadcrumbsPrefix: ["response"],
|
|
479
|
+
}),
|
|
480
|
+
rawResponse: _response.rawResponse,
|
|
481
|
+
};
|
|
421
482
|
}
|
|
422
483
|
if (_response.error.reason === "status-code") {
|
|
423
484
|
switch (_response.error.statusCode) {
|
|
@@ -428,7 +489,7 @@ class Features {
|
|
|
428
489
|
allowUnrecognizedEnumValues: true,
|
|
429
490
|
skipValidation: true,
|
|
430
491
|
breadcrumbsPrefix: ["response"],
|
|
431
|
-
}));
|
|
492
|
+
}), _response.rawResponse);
|
|
432
493
|
case 401:
|
|
433
494
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
434
495
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -436,7 +497,7 @@ class Features {
|
|
|
436
497
|
allowUnrecognizedEnumValues: true,
|
|
437
498
|
skipValidation: true,
|
|
438
499
|
breadcrumbsPrefix: ["response"],
|
|
439
|
-
}));
|
|
500
|
+
}), _response.rawResponse);
|
|
440
501
|
case 403:
|
|
441
502
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
442
503
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -444,7 +505,15 @@ class Features {
|
|
|
444
505
|
allowUnrecognizedEnumValues: true,
|
|
445
506
|
skipValidation: true,
|
|
446
507
|
breadcrumbsPrefix: ["response"],
|
|
447
|
-
}));
|
|
508
|
+
}), _response.rawResponse);
|
|
509
|
+
case 404:
|
|
510
|
+
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
511
|
+
unrecognizedObjectKeys: "passthrough",
|
|
512
|
+
allowUnrecognizedUnionMembers: true,
|
|
513
|
+
allowUnrecognizedEnumValues: true,
|
|
514
|
+
skipValidation: true,
|
|
515
|
+
breadcrumbsPrefix: ["response"],
|
|
516
|
+
}), _response.rawResponse);
|
|
448
517
|
case 500:
|
|
449
518
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
450
519
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -452,11 +521,12 @@ class Features {
|
|
|
452
521
|
allowUnrecognizedEnumValues: true,
|
|
453
522
|
skipValidation: true,
|
|
454
523
|
breadcrumbsPrefix: ["response"],
|
|
455
|
-
}));
|
|
524
|
+
}), _response.rawResponse);
|
|
456
525
|
default:
|
|
457
526
|
throw new errors.SchematicError({
|
|
458
527
|
statusCode: _response.error.statusCode,
|
|
459
528
|
body: _response.error.body,
|
|
529
|
+
rawResponse: _response.rawResponse,
|
|
460
530
|
});
|
|
461
531
|
}
|
|
462
532
|
}
|
|
@@ -465,12 +535,14 @@ class Features {
|
|
|
465
535
|
throw new errors.SchematicError({
|
|
466
536
|
statusCode: _response.error.statusCode,
|
|
467
537
|
body: _response.error.rawBody,
|
|
538
|
+
rawResponse: _response.rawResponse,
|
|
468
539
|
});
|
|
469
540
|
case "timeout":
|
|
470
541
|
throw new errors.SchematicTimeoutError("Timeout exceeded when calling POST /audience/get-users.");
|
|
471
542
|
case "unknown":
|
|
472
543
|
throw new errors.SchematicError({
|
|
473
544
|
message: _response.error.errorMessage,
|
|
545
|
+
rawResponse: _response.rawResponse,
|
|
474
546
|
});
|
|
475
547
|
}
|
|
476
548
|
});
|
|
@@ -482,15 +554,19 @@ class Features {
|
|
|
482
554
|
* @throws {@link Schematic.BadRequestError}
|
|
483
555
|
* @throws {@link Schematic.UnauthorizedError}
|
|
484
556
|
* @throws {@link Schematic.ForbiddenError}
|
|
557
|
+
* @throws {@link Schematic.NotFoundError}
|
|
485
558
|
* @throws {@link Schematic.InternalServerError}
|
|
486
559
|
*
|
|
487
560
|
* @example
|
|
488
561
|
* await client.features.listFeatures()
|
|
489
562
|
*/
|
|
490
|
-
listFeatures() {
|
|
563
|
+
listFeatures(request = {}, requestOptions) {
|
|
564
|
+
return core.HttpResponsePromise.fromPromise(this.__listFeatures(request, requestOptions));
|
|
565
|
+
}
|
|
566
|
+
__listFeatures() {
|
|
491
567
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
492
568
|
var _a, _b, _c;
|
|
493
|
-
const { ids, q, withoutCompanyOverrideFor, withoutPlanEntitlementFor, limit, offset } = request;
|
|
569
|
+
const { ids, q, withoutCompanyOverrideFor, withoutPlanEntitlementFor, featureType, booleanRequireEvent, limit, offset, } = request;
|
|
494
570
|
const _queryParams = {};
|
|
495
571
|
if (ids != null) {
|
|
496
572
|
if (Array.isArray(ids)) {
|
|
@@ -509,6 +585,17 @@ class Features {
|
|
|
509
585
|
if (withoutPlanEntitlementFor != null) {
|
|
510
586
|
_queryParams["without_plan_entitlement_for"] = withoutPlanEntitlementFor;
|
|
511
587
|
}
|
|
588
|
+
if (featureType != null) {
|
|
589
|
+
if (Array.isArray(featureType)) {
|
|
590
|
+
_queryParams["feature_type"] = featureType.map((item) => item);
|
|
591
|
+
}
|
|
592
|
+
else {
|
|
593
|
+
_queryParams["feature_type"] = featureType;
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
if (booleanRequireEvent != null) {
|
|
597
|
+
_queryParams["boolean_require_event"] = booleanRequireEvent.toString();
|
|
598
|
+
}
|
|
512
599
|
if (limit != null) {
|
|
513
600
|
_queryParams["limit"] = limit.toString();
|
|
514
601
|
}
|
|
@@ -518,7 +605,7 @@ class Features {
|
|
|
518
605
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
519
606
|
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, "features"),
|
|
520
607
|
method: "GET",
|
|
521
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
608
|
+
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),
|
|
522
609
|
contentType: "application/json",
|
|
523
610
|
queryParameters: _queryParams,
|
|
524
611
|
requestType: "json",
|
|
@@ -527,13 +614,16 @@ class Features {
|
|
|
527
614
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
528
615
|
});
|
|
529
616
|
if (_response.ok) {
|
|
530
|
-
return
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
617
|
+
return {
|
|
618
|
+
data: serializers.ListFeaturesResponse.parseOrThrow(_response.body, {
|
|
619
|
+
unrecognizedObjectKeys: "passthrough",
|
|
620
|
+
allowUnrecognizedUnionMembers: true,
|
|
621
|
+
allowUnrecognizedEnumValues: true,
|
|
622
|
+
skipValidation: true,
|
|
623
|
+
breadcrumbsPrefix: ["response"],
|
|
624
|
+
}),
|
|
625
|
+
rawResponse: _response.rawResponse,
|
|
626
|
+
};
|
|
537
627
|
}
|
|
538
628
|
if (_response.error.reason === "status-code") {
|
|
539
629
|
switch (_response.error.statusCode) {
|
|
@@ -544,7 +634,7 @@ class Features {
|
|
|
544
634
|
allowUnrecognizedEnumValues: true,
|
|
545
635
|
skipValidation: true,
|
|
546
636
|
breadcrumbsPrefix: ["response"],
|
|
547
|
-
}));
|
|
637
|
+
}), _response.rawResponse);
|
|
548
638
|
case 401:
|
|
549
639
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
550
640
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -552,7 +642,7 @@ class Features {
|
|
|
552
642
|
allowUnrecognizedEnumValues: true,
|
|
553
643
|
skipValidation: true,
|
|
554
644
|
breadcrumbsPrefix: ["response"],
|
|
555
|
-
}));
|
|
645
|
+
}), _response.rawResponse);
|
|
556
646
|
case 403:
|
|
557
647
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
558
648
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -560,7 +650,15 @@ class Features {
|
|
|
560
650
|
allowUnrecognizedEnumValues: true,
|
|
561
651
|
skipValidation: true,
|
|
562
652
|
breadcrumbsPrefix: ["response"],
|
|
563
|
-
}));
|
|
653
|
+
}), _response.rawResponse);
|
|
654
|
+
case 404:
|
|
655
|
+
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
656
|
+
unrecognizedObjectKeys: "passthrough",
|
|
657
|
+
allowUnrecognizedUnionMembers: true,
|
|
658
|
+
allowUnrecognizedEnumValues: true,
|
|
659
|
+
skipValidation: true,
|
|
660
|
+
breadcrumbsPrefix: ["response"],
|
|
661
|
+
}), _response.rawResponse);
|
|
564
662
|
case 500:
|
|
565
663
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
566
664
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -568,11 +666,12 @@ class Features {
|
|
|
568
666
|
allowUnrecognizedEnumValues: true,
|
|
569
667
|
skipValidation: true,
|
|
570
668
|
breadcrumbsPrefix: ["response"],
|
|
571
|
-
}));
|
|
669
|
+
}), _response.rawResponse);
|
|
572
670
|
default:
|
|
573
671
|
throw new errors.SchematicError({
|
|
574
672
|
statusCode: _response.error.statusCode,
|
|
575
673
|
body: _response.error.body,
|
|
674
|
+
rawResponse: _response.rawResponse,
|
|
576
675
|
});
|
|
577
676
|
}
|
|
578
677
|
}
|
|
@@ -581,12 +680,14 @@ class Features {
|
|
|
581
680
|
throw new errors.SchematicError({
|
|
582
681
|
statusCode: _response.error.statusCode,
|
|
583
682
|
body: _response.error.rawBody,
|
|
683
|
+
rawResponse: _response.rawResponse,
|
|
584
684
|
});
|
|
585
685
|
case "timeout":
|
|
586
686
|
throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /features.");
|
|
587
687
|
case "unknown":
|
|
588
688
|
throw new errors.SchematicError({
|
|
589
689
|
message: _response.error.errorMessage,
|
|
690
|
+
rawResponse: _response.rawResponse,
|
|
590
691
|
});
|
|
591
692
|
}
|
|
592
693
|
});
|
|
@@ -598,6 +699,7 @@ class Features {
|
|
|
598
699
|
* @throws {@link Schematic.BadRequestError}
|
|
599
700
|
* @throws {@link Schematic.UnauthorizedError}
|
|
600
701
|
* @throws {@link Schematic.ForbiddenError}
|
|
702
|
+
* @throws {@link Schematic.NotFoundError}
|
|
601
703
|
* @throws {@link Schematic.InternalServerError}
|
|
602
704
|
*
|
|
603
705
|
* @example
|
|
@@ -608,12 +710,15 @@ class Features {
|
|
|
608
710
|
* })
|
|
609
711
|
*/
|
|
610
712
|
createFeature(request, requestOptions) {
|
|
713
|
+
return core.HttpResponsePromise.fromPromise(this.__createFeature(request, requestOptions));
|
|
714
|
+
}
|
|
715
|
+
__createFeature(request, requestOptions) {
|
|
611
716
|
return __awaiter(this, void 0, void 0, function* () {
|
|
612
717
|
var _a, _b, _c;
|
|
613
718
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
614
719
|
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, "features"),
|
|
615
720
|
method: "POST",
|
|
616
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
721
|
+
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),
|
|
617
722
|
contentType: "application/json",
|
|
618
723
|
requestType: "json",
|
|
619
724
|
body: serializers.CreateFeatureRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -622,13 +727,16 @@ class Features {
|
|
|
622
727
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
623
728
|
});
|
|
624
729
|
if (_response.ok) {
|
|
625
|
-
return
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
730
|
+
return {
|
|
731
|
+
data: serializers.CreateFeatureResponse.parseOrThrow(_response.body, {
|
|
732
|
+
unrecognizedObjectKeys: "passthrough",
|
|
733
|
+
allowUnrecognizedUnionMembers: true,
|
|
734
|
+
allowUnrecognizedEnumValues: true,
|
|
735
|
+
skipValidation: true,
|
|
736
|
+
breadcrumbsPrefix: ["response"],
|
|
737
|
+
}),
|
|
738
|
+
rawResponse: _response.rawResponse,
|
|
739
|
+
};
|
|
632
740
|
}
|
|
633
741
|
if (_response.error.reason === "status-code") {
|
|
634
742
|
switch (_response.error.statusCode) {
|
|
@@ -639,7 +747,7 @@ class Features {
|
|
|
639
747
|
allowUnrecognizedEnumValues: true,
|
|
640
748
|
skipValidation: true,
|
|
641
749
|
breadcrumbsPrefix: ["response"],
|
|
642
|
-
}));
|
|
750
|
+
}), _response.rawResponse);
|
|
643
751
|
case 401:
|
|
644
752
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
645
753
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -647,7 +755,7 @@ class Features {
|
|
|
647
755
|
allowUnrecognizedEnumValues: true,
|
|
648
756
|
skipValidation: true,
|
|
649
757
|
breadcrumbsPrefix: ["response"],
|
|
650
|
-
}));
|
|
758
|
+
}), _response.rawResponse);
|
|
651
759
|
case 403:
|
|
652
760
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
653
761
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -655,7 +763,15 @@ class Features {
|
|
|
655
763
|
allowUnrecognizedEnumValues: true,
|
|
656
764
|
skipValidation: true,
|
|
657
765
|
breadcrumbsPrefix: ["response"],
|
|
658
|
-
}));
|
|
766
|
+
}), _response.rawResponse);
|
|
767
|
+
case 404:
|
|
768
|
+
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
769
|
+
unrecognizedObjectKeys: "passthrough",
|
|
770
|
+
allowUnrecognizedUnionMembers: true,
|
|
771
|
+
allowUnrecognizedEnumValues: true,
|
|
772
|
+
skipValidation: true,
|
|
773
|
+
breadcrumbsPrefix: ["response"],
|
|
774
|
+
}), _response.rawResponse);
|
|
659
775
|
case 500:
|
|
660
776
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
661
777
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -663,11 +779,12 @@ class Features {
|
|
|
663
779
|
allowUnrecognizedEnumValues: true,
|
|
664
780
|
skipValidation: true,
|
|
665
781
|
breadcrumbsPrefix: ["response"],
|
|
666
|
-
}));
|
|
782
|
+
}), _response.rawResponse);
|
|
667
783
|
default:
|
|
668
784
|
throw new errors.SchematicError({
|
|
669
785
|
statusCode: _response.error.statusCode,
|
|
670
786
|
body: _response.error.body,
|
|
787
|
+
rawResponse: _response.rawResponse,
|
|
671
788
|
});
|
|
672
789
|
}
|
|
673
790
|
}
|
|
@@ -676,12 +793,14 @@ class Features {
|
|
|
676
793
|
throw new errors.SchematicError({
|
|
677
794
|
statusCode: _response.error.statusCode,
|
|
678
795
|
body: _response.error.rawBody,
|
|
796
|
+
rawResponse: _response.rawResponse,
|
|
679
797
|
});
|
|
680
798
|
case "timeout":
|
|
681
799
|
throw new errors.SchematicTimeoutError("Timeout exceeded when calling POST /features.");
|
|
682
800
|
case "unknown":
|
|
683
801
|
throw new errors.SchematicError({
|
|
684
802
|
message: _response.error.errorMessage,
|
|
803
|
+
rawResponse: _response.rawResponse,
|
|
685
804
|
});
|
|
686
805
|
}
|
|
687
806
|
});
|
|
@@ -699,12 +818,15 @@ class Features {
|
|
|
699
818
|
* await client.features.getFeature("feature_id")
|
|
700
819
|
*/
|
|
701
820
|
getFeature(featureId, requestOptions) {
|
|
821
|
+
return core.HttpResponsePromise.fromPromise(this.__getFeature(featureId, requestOptions));
|
|
822
|
+
}
|
|
823
|
+
__getFeature(featureId, requestOptions) {
|
|
702
824
|
return __awaiter(this, void 0, void 0, function* () {
|
|
703
825
|
var _a, _b, _c;
|
|
704
826
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
705
827
|
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, `features/${encodeURIComponent(featureId)}`),
|
|
706
828
|
method: "GET",
|
|
707
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
829
|
+
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),
|
|
708
830
|
contentType: "application/json",
|
|
709
831
|
requestType: "json",
|
|
710
832
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -712,13 +834,16 @@ class Features {
|
|
|
712
834
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
713
835
|
});
|
|
714
836
|
if (_response.ok) {
|
|
715
|
-
return
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
837
|
+
return {
|
|
838
|
+
data: serializers.GetFeatureResponse.parseOrThrow(_response.body, {
|
|
839
|
+
unrecognizedObjectKeys: "passthrough",
|
|
840
|
+
allowUnrecognizedUnionMembers: true,
|
|
841
|
+
allowUnrecognizedEnumValues: true,
|
|
842
|
+
skipValidation: true,
|
|
843
|
+
breadcrumbsPrefix: ["response"],
|
|
844
|
+
}),
|
|
845
|
+
rawResponse: _response.rawResponse,
|
|
846
|
+
};
|
|
722
847
|
}
|
|
723
848
|
if (_response.error.reason === "status-code") {
|
|
724
849
|
switch (_response.error.statusCode) {
|
|
@@ -729,7 +854,7 @@ class Features {
|
|
|
729
854
|
allowUnrecognizedEnumValues: true,
|
|
730
855
|
skipValidation: true,
|
|
731
856
|
breadcrumbsPrefix: ["response"],
|
|
732
|
-
}));
|
|
857
|
+
}), _response.rawResponse);
|
|
733
858
|
case 403:
|
|
734
859
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
735
860
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -737,7 +862,7 @@ class Features {
|
|
|
737
862
|
allowUnrecognizedEnumValues: true,
|
|
738
863
|
skipValidation: true,
|
|
739
864
|
breadcrumbsPrefix: ["response"],
|
|
740
|
-
}));
|
|
865
|
+
}), _response.rawResponse);
|
|
741
866
|
case 404:
|
|
742
867
|
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
743
868
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -745,7 +870,7 @@ class Features {
|
|
|
745
870
|
allowUnrecognizedEnumValues: true,
|
|
746
871
|
skipValidation: true,
|
|
747
872
|
breadcrumbsPrefix: ["response"],
|
|
748
|
-
}));
|
|
873
|
+
}), _response.rawResponse);
|
|
749
874
|
case 500:
|
|
750
875
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
751
876
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -753,11 +878,12 @@ class Features {
|
|
|
753
878
|
allowUnrecognizedEnumValues: true,
|
|
754
879
|
skipValidation: true,
|
|
755
880
|
breadcrumbsPrefix: ["response"],
|
|
756
|
-
}));
|
|
881
|
+
}), _response.rawResponse);
|
|
757
882
|
default:
|
|
758
883
|
throw new errors.SchematicError({
|
|
759
884
|
statusCode: _response.error.statusCode,
|
|
760
885
|
body: _response.error.body,
|
|
886
|
+
rawResponse: _response.rawResponse,
|
|
761
887
|
});
|
|
762
888
|
}
|
|
763
889
|
}
|
|
@@ -766,12 +892,14 @@ class Features {
|
|
|
766
892
|
throw new errors.SchematicError({
|
|
767
893
|
statusCode: _response.error.statusCode,
|
|
768
894
|
body: _response.error.rawBody,
|
|
895
|
+
rawResponse: _response.rawResponse,
|
|
769
896
|
});
|
|
770
897
|
case "timeout":
|
|
771
898
|
throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /features/{feature_id}.");
|
|
772
899
|
case "unknown":
|
|
773
900
|
throw new errors.SchematicError({
|
|
774
901
|
message: _response.error.errorMessage,
|
|
902
|
+
rawResponse: _response.rawResponse,
|
|
775
903
|
});
|
|
776
904
|
}
|
|
777
905
|
});
|
|
@@ -790,13 +918,16 @@ class Features {
|
|
|
790
918
|
* @example
|
|
791
919
|
* await client.features.updateFeature("feature_id")
|
|
792
920
|
*/
|
|
793
|
-
updateFeature(
|
|
921
|
+
updateFeature(featureId, request = {}, requestOptions) {
|
|
922
|
+
return core.HttpResponsePromise.fromPromise(this.__updateFeature(featureId, request, requestOptions));
|
|
923
|
+
}
|
|
924
|
+
__updateFeature(featureId_1) {
|
|
794
925
|
return __awaiter(this, arguments, void 0, function* (featureId, request = {}, requestOptions) {
|
|
795
926
|
var _a, _b, _c;
|
|
796
927
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
797
928
|
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, `features/${encodeURIComponent(featureId)}`),
|
|
798
929
|
method: "PUT",
|
|
799
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
930
|
+
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),
|
|
800
931
|
contentType: "application/json",
|
|
801
932
|
requestType: "json",
|
|
802
933
|
body: serializers.UpdateFeatureRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -805,13 +936,16 @@ class Features {
|
|
|
805
936
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
806
937
|
});
|
|
807
938
|
if (_response.ok) {
|
|
808
|
-
return
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
939
|
+
return {
|
|
940
|
+
data: serializers.UpdateFeatureResponse.parseOrThrow(_response.body, {
|
|
941
|
+
unrecognizedObjectKeys: "passthrough",
|
|
942
|
+
allowUnrecognizedUnionMembers: true,
|
|
943
|
+
allowUnrecognizedEnumValues: true,
|
|
944
|
+
skipValidation: true,
|
|
945
|
+
breadcrumbsPrefix: ["response"],
|
|
946
|
+
}),
|
|
947
|
+
rawResponse: _response.rawResponse,
|
|
948
|
+
};
|
|
815
949
|
}
|
|
816
950
|
if (_response.error.reason === "status-code") {
|
|
817
951
|
switch (_response.error.statusCode) {
|
|
@@ -822,7 +956,7 @@ class Features {
|
|
|
822
956
|
allowUnrecognizedEnumValues: true,
|
|
823
957
|
skipValidation: true,
|
|
824
958
|
breadcrumbsPrefix: ["response"],
|
|
825
|
-
}));
|
|
959
|
+
}), _response.rawResponse);
|
|
826
960
|
case 401:
|
|
827
961
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
828
962
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -830,7 +964,7 @@ class Features {
|
|
|
830
964
|
allowUnrecognizedEnumValues: true,
|
|
831
965
|
skipValidation: true,
|
|
832
966
|
breadcrumbsPrefix: ["response"],
|
|
833
|
-
}));
|
|
967
|
+
}), _response.rawResponse);
|
|
834
968
|
case 403:
|
|
835
969
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
836
970
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -838,7 +972,7 @@ class Features {
|
|
|
838
972
|
allowUnrecognizedEnumValues: true,
|
|
839
973
|
skipValidation: true,
|
|
840
974
|
breadcrumbsPrefix: ["response"],
|
|
841
|
-
}));
|
|
975
|
+
}), _response.rawResponse);
|
|
842
976
|
case 404:
|
|
843
977
|
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
844
978
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -846,7 +980,7 @@ class Features {
|
|
|
846
980
|
allowUnrecognizedEnumValues: true,
|
|
847
981
|
skipValidation: true,
|
|
848
982
|
breadcrumbsPrefix: ["response"],
|
|
849
|
-
}));
|
|
983
|
+
}), _response.rawResponse);
|
|
850
984
|
case 500:
|
|
851
985
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
852
986
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -854,11 +988,12 @@ class Features {
|
|
|
854
988
|
allowUnrecognizedEnumValues: true,
|
|
855
989
|
skipValidation: true,
|
|
856
990
|
breadcrumbsPrefix: ["response"],
|
|
857
|
-
}));
|
|
991
|
+
}), _response.rawResponse);
|
|
858
992
|
default:
|
|
859
993
|
throw new errors.SchematicError({
|
|
860
994
|
statusCode: _response.error.statusCode,
|
|
861
995
|
body: _response.error.body,
|
|
996
|
+
rawResponse: _response.rawResponse,
|
|
862
997
|
});
|
|
863
998
|
}
|
|
864
999
|
}
|
|
@@ -867,12 +1002,14 @@ class Features {
|
|
|
867
1002
|
throw new errors.SchematicError({
|
|
868
1003
|
statusCode: _response.error.statusCode,
|
|
869
1004
|
body: _response.error.rawBody,
|
|
1005
|
+
rawResponse: _response.rawResponse,
|
|
870
1006
|
});
|
|
871
1007
|
case "timeout":
|
|
872
1008
|
throw new errors.SchematicTimeoutError("Timeout exceeded when calling PUT /features/{feature_id}.");
|
|
873
1009
|
case "unknown":
|
|
874
1010
|
throw new errors.SchematicError({
|
|
875
1011
|
message: _response.error.errorMessage,
|
|
1012
|
+
rawResponse: _response.rawResponse,
|
|
876
1013
|
});
|
|
877
1014
|
}
|
|
878
1015
|
});
|
|
@@ -884,18 +1021,22 @@ class Features {
|
|
|
884
1021
|
* @throws {@link Schematic.BadRequestError}
|
|
885
1022
|
* @throws {@link Schematic.UnauthorizedError}
|
|
886
1023
|
* @throws {@link Schematic.ForbiddenError}
|
|
1024
|
+
* @throws {@link Schematic.NotFoundError}
|
|
887
1025
|
* @throws {@link Schematic.InternalServerError}
|
|
888
1026
|
*
|
|
889
1027
|
* @example
|
|
890
1028
|
* await client.features.deleteFeature("feature_id")
|
|
891
1029
|
*/
|
|
892
1030
|
deleteFeature(featureId, requestOptions) {
|
|
1031
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteFeature(featureId, requestOptions));
|
|
1032
|
+
}
|
|
1033
|
+
__deleteFeature(featureId, requestOptions) {
|
|
893
1034
|
return __awaiter(this, void 0, void 0, function* () {
|
|
894
1035
|
var _a, _b, _c;
|
|
895
1036
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
896
1037
|
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, `features/${encodeURIComponent(featureId)}`),
|
|
897
1038
|
method: "DELETE",
|
|
898
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
1039
|
+
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),
|
|
899
1040
|
contentType: "application/json",
|
|
900
1041
|
requestType: "json",
|
|
901
1042
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -903,13 +1044,16 @@ class Features {
|
|
|
903
1044
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
904
1045
|
});
|
|
905
1046
|
if (_response.ok) {
|
|
906
|
-
return
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
1047
|
+
return {
|
|
1048
|
+
data: serializers.DeleteFeatureResponse.parseOrThrow(_response.body, {
|
|
1049
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1050
|
+
allowUnrecognizedUnionMembers: true,
|
|
1051
|
+
allowUnrecognizedEnumValues: true,
|
|
1052
|
+
skipValidation: true,
|
|
1053
|
+
breadcrumbsPrefix: ["response"],
|
|
1054
|
+
}),
|
|
1055
|
+
rawResponse: _response.rawResponse,
|
|
1056
|
+
};
|
|
913
1057
|
}
|
|
914
1058
|
if (_response.error.reason === "status-code") {
|
|
915
1059
|
switch (_response.error.statusCode) {
|
|
@@ -920,7 +1064,7 @@ class Features {
|
|
|
920
1064
|
allowUnrecognizedEnumValues: true,
|
|
921
1065
|
skipValidation: true,
|
|
922
1066
|
breadcrumbsPrefix: ["response"],
|
|
923
|
-
}));
|
|
1067
|
+
}), _response.rawResponse);
|
|
924
1068
|
case 401:
|
|
925
1069
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
926
1070
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -928,7 +1072,7 @@ class Features {
|
|
|
928
1072
|
allowUnrecognizedEnumValues: true,
|
|
929
1073
|
skipValidation: true,
|
|
930
1074
|
breadcrumbsPrefix: ["response"],
|
|
931
|
-
}));
|
|
1075
|
+
}), _response.rawResponse);
|
|
932
1076
|
case 403:
|
|
933
1077
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
934
1078
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -936,7 +1080,15 @@ class Features {
|
|
|
936
1080
|
allowUnrecognizedEnumValues: true,
|
|
937
1081
|
skipValidation: true,
|
|
938
1082
|
breadcrumbsPrefix: ["response"],
|
|
939
|
-
}));
|
|
1083
|
+
}), _response.rawResponse);
|
|
1084
|
+
case 404:
|
|
1085
|
+
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1086
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1087
|
+
allowUnrecognizedUnionMembers: true,
|
|
1088
|
+
allowUnrecognizedEnumValues: true,
|
|
1089
|
+
skipValidation: true,
|
|
1090
|
+
breadcrumbsPrefix: ["response"],
|
|
1091
|
+
}), _response.rawResponse);
|
|
940
1092
|
case 500:
|
|
941
1093
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
942
1094
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -944,11 +1096,12 @@ class Features {
|
|
|
944
1096
|
allowUnrecognizedEnumValues: true,
|
|
945
1097
|
skipValidation: true,
|
|
946
1098
|
breadcrumbsPrefix: ["response"],
|
|
947
|
-
}));
|
|
1099
|
+
}), _response.rawResponse);
|
|
948
1100
|
default:
|
|
949
1101
|
throw new errors.SchematicError({
|
|
950
1102
|
statusCode: _response.error.statusCode,
|
|
951
1103
|
body: _response.error.body,
|
|
1104
|
+
rawResponse: _response.rawResponse,
|
|
952
1105
|
});
|
|
953
1106
|
}
|
|
954
1107
|
}
|
|
@@ -957,12 +1110,14 @@ class Features {
|
|
|
957
1110
|
throw new errors.SchematicError({
|
|
958
1111
|
statusCode: _response.error.statusCode,
|
|
959
1112
|
body: _response.error.rawBody,
|
|
1113
|
+
rawResponse: _response.rawResponse,
|
|
960
1114
|
});
|
|
961
1115
|
case "timeout":
|
|
962
1116
|
throw new errors.SchematicTimeoutError("Timeout exceeded when calling DELETE /features/{feature_id}.");
|
|
963
1117
|
case "unknown":
|
|
964
1118
|
throw new errors.SchematicError({
|
|
965
1119
|
message: _response.error.errorMessage,
|
|
1120
|
+
rawResponse: _response.rawResponse,
|
|
966
1121
|
});
|
|
967
1122
|
}
|
|
968
1123
|
});
|
|
@@ -974,15 +1129,19 @@ class Features {
|
|
|
974
1129
|
* @throws {@link Schematic.BadRequestError}
|
|
975
1130
|
* @throws {@link Schematic.UnauthorizedError}
|
|
976
1131
|
* @throws {@link Schematic.ForbiddenError}
|
|
1132
|
+
* @throws {@link Schematic.NotFoundError}
|
|
977
1133
|
* @throws {@link Schematic.InternalServerError}
|
|
978
1134
|
*
|
|
979
1135
|
* @example
|
|
980
1136
|
* await client.features.countFeatures()
|
|
981
1137
|
*/
|
|
982
|
-
countFeatures() {
|
|
1138
|
+
countFeatures(request = {}, requestOptions) {
|
|
1139
|
+
return core.HttpResponsePromise.fromPromise(this.__countFeatures(request, requestOptions));
|
|
1140
|
+
}
|
|
1141
|
+
__countFeatures() {
|
|
983
1142
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
984
1143
|
var _a, _b, _c;
|
|
985
|
-
const { ids, q, withoutCompanyOverrideFor, withoutPlanEntitlementFor, limit, offset } = request;
|
|
1144
|
+
const { ids, q, withoutCompanyOverrideFor, withoutPlanEntitlementFor, featureType, booleanRequireEvent, limit, offset, } = request;
|
|
986
1145
|
const _queryParams = {};
|
|
987
1146
|
if (ids != null) {
|
|
988
1147
|
if (Array.isArray(ids)) {
|
|
@@ -1001,6 +1160,17 @@ class Features {
|
|
|
1001
1160
|
if (withoutPlanEntitlementFor != null) {
|
|
1002
1161
|
_queryParams["without_plan_entitlement_for"] = withoutPlanEntitlementFor;
|
|
1003
1162
|
}
|
|
1163
|
+
if (featureType != null) {
|
|
1164
|
+
if (Array.isArray(featureType)) {
|
|
1165
|
+
_queryParams["feature_type"] = featureType.map((item) => item);
|
|
1166
|
+
}
|
|
1167
|
+
else {
|
|
1168
|
+
_queryParams["feature_type"] = featureType;
|
|
1169
|
+
}
|
|
1170
|
+
}
|
|
1171
|
+
if (booleanRequireEvent != null) {
|
|
1172
|
+
_queryParams["boolean_require_event"] = booleanRequireEvent.toString();
|
|
1173
|
+
}
|
|
1004
1174
|
if (limit != null) {
|
|
1005
1175
|
_queryParams["limit"] = limit.toString();
|
|
1006
1176
|
}
|
|
@@ -1010,7 +1180,7 @@ class Features {
|
|
|
1010
1180
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1011
1181
|
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, "features/count"),
|
|
1012
1182
|
method: "GET",
|
|
1013
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
1183
|
+
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),
|
|
1014
1184
|
contentType: "application/json",
|
|
1015
1185
|
queryParameters: _queryParams,
|
|
1016
1186
|
requestType: "json",
|
|
@@ -1019,13 +1189,16 @@ class Features {
|
|
|
1019
1189
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1020
1190
|
});
|
|
1021
1191
|
if (_response.ok) {
|
|
1022
|
-
return
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1192
|
+
return {
|
|
1193
|
+
data: serializers.CountFeaturesResponse.parseOrThrow(_response.body, {
|
|
1194
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1195
|
+
allowUnrecognizedUnionMembers: true,
|
|
1196
|
+
allowUnrecognizedEnumValues: true,
|
|
1197
|
+
skipValidation: true,
|
|
1198
|
+
breadcrumbsPrefix: ["response"],
|
|
1199
|
+
}),
|
|
1200
|
+
rawResponse: _response.rawResponse,
|
|
1201
|
+
};
|
|
1029
1202
|
}
|
|
1030
1203
|
if (_response.error.reason === "status-code") {
|
|
1031
1204
|
switch (_response.error.statusCode) {
|
|
@@ -1036,7 +1209,7 @@ class Features {
|
|
|
1036
1209
|
allowUnrecognizedEnumValues: true,
|
|
1037
1210
|
skipValidation: true,
|
|
1038
1211
|
breadcrumbsPrefix: ["response"],
|
|
1039
|
-
}));
|
|
1212
|
+
}), _response.rawResponse);
|
|
1040
1213
|
case 401:
|
|
1041
1214
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1042
1215
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1044,7 +1217,7 @@ class Features {
|
|
|
1044
1217
|
allowUnrecognizedEnumValues: true,
|
|
1045
1218
|
skipValidation: true,
|
|
1046
1219
|
breadcrumbsPrefix: ["response"],
|
|
1047
|
-
}));
|
|
1220
|
+
}), _response.rawResponse);
|
|
1048
1221
|
case 403:
|
|
1049
1222
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1050
1223
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1052,7 +1225,15 @@ class Features {
|
|
|
1052
1225
|
allowUnrecognizedEnumValues: true,
|
|
1053
1226
|
skipValidation: true,
|
|
1054
1227
|
breadcrumbsPrefix: ["response"],
|
|
1055
|
-
}));
|
|
1228
|
+
}), _response.rawResponse);
|
|
1229
|
+
case 404:
|
|
1230
|
+
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1231
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1232
|
+
allowUnrecognizedUnionMembers: true,
|
|
1233
|
+
allowUnrecognizedEnumValues: true,
|
|
1234
|
+
skipValidation: true,
|
|
1235
|
+
breadcrumbsPrefix: ["response"],
|
|
1236
|
+
}), _response.rawResponse);
|
|
1056
1237
|
case 500:
|
|
1057
1238
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1058
1239
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1060,11 +1241,12 @@ class Features {
|
|
|
1060
1241
|
allowUnrecognizedEnumValues: true,
|
|
1061
1242
|
skipValidation: true,
|
|
1062
1243
|
breadcrumbsPrefix: ["response"],
|
|
1063
|
-
}));
|
|
1244
|
+
}), _response.rawResponse);
|
|
1064
1245
|
default:
|
|
1065
1246
|
throw new errors.SchematicError({
|
|
1066
1247
|
statusCode: _response.error.statusCode,
|
|
1067
1248
|
body: _response.error.body,
|
|
1249
|
+
rawResponse: _response.rawResponse,
|
|
1068
1250
|
});
|
|
1069
1251
|
}
|
|
1070
1252
|
}
|
|
@@ -1073,12 +1255,14 @@ class Features {
|
|
|
1073
1255
|
throw new errors.SchematicError({
|
|
1074
1256
|
statusCode: _response.error.statusCode,
|
|
1075
1257
|
body: _response.error.rawBody,
|
|
1258
|
+
rawResponse: _response.rawResponse,
|
|
1076
1259
|
});
|
|
1077
1260
|
case "timeout":
|
|
1078
1261
|
throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /features/count.");
|
|
1079
1262
|
case "unknown":
|
|
1080
1263
|
throw new errors.SchematicError({
|
|
1081
1264
|
message: _response.error.errorMessage,
|
|
1265
|
+
rawResponse: _response.rawResponse,
|
|
1082
1266
|
});
|
|
1083
1267
|
}
|
|
1084
1268
|
});
|
|
@@ -1090,12 +1274,16 @@ class Features {
|
|
|
1090
1274
|
* @throws {@link Schematic.BadRequestError}
|
|
1091
1275
|
* @throws {@link Schematic.UnauthorizedError}
|
|
1092
1276
|
* @throws {@link Schematic.ForbiddenError}
|
|
1277
|
+
* @throws {@link Schematic.NotFoundError}
|
|
1093
1278
|
* @throws {@link Schematic.InternalServerError}
|
|
1094
1279
|
*
|
|
1095
1280
|
* @example
|
|
1096
1281
|
* await client.features.listFlags()
|
|
1097
1282
|
*/
|
|
1098
|
-
listFlags() {
|
|
1283
|
+
listFlags(request = {}, requestOptions) {
|
|
1284
|
+
return core.HttpResponsePromise.fromPromise(this.__listFlags(request, requestOptions));
|
|
1285
|
+
}
|
|
1286
|
+
__listFlags() {
|
|
1099
1287
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
1100
1288
|
var _a, _b, _c;
|
|
1101
1289
|
const { featureId, ids, q, limit, offset } = request;
|
|
@@ -1123,7 +1311,7 @@ class Features {
|
|
|
1123
1311
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1124
1312
|
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, "flags"),
|
|
1125
1313
|
method: "GET",
|
|
1126
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
1314
|
+
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),
|
|
1127
1315
|
contentType: "application/json",
|
|
1128
1316
|
queryParameters: _queryParams,
|
|
1129
1317
|
requestType: "json",
|
|
@@ -1132,13 +1320,16 @@ class Features {
|
|
|
1132
1320
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1133
1321
|
});
|
|
1134
1322
|
if (_response.ok) {
|
|
1135
|
-
return
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1323
|
+
return {
|
|
1324
|
+
data: serializers.ListFlagsResponse.parseOrThrow(_response.body, {
|
|
1325
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1326
|
+
allowUnrecognizedUnionMembers: true,
|
|
1327
|
+
allowUnrecognizedEnumValues: true,
|
|
1328
|
+
skipValidation: true,
|
|
1329
|
+
breadcrumbsPrefix: ["response"],
|
|
1330
|
+
}),
|
|
1331
|
+
rawResponse: _response.rawResponse,
|
|
1332
|
+
};
|
|
1142
1333
|
}
|
|
1143
1334
|
if (_response.error.reason === "status-code") {
|
|
1144
1335
|
switch (_response.error.statusCode) {
|
|
@@ -1149,7 +1340,7 @@ class Features {
|
|
|
1149
1340
|
allowUnrecognizedEnumValues: true,
|
|
1150
1341
|
skipValidation: true,
|
|
1151
1342
|
breadcrumbsPrefix: ["response"],
|
|
1152
|
-
}));
|
|
1343
|
+
}), _response.rawResponse);
|
|
1153
1344
|
case 401:
|
|
1154
1345
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1155
1346
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1157,7 +1348,7 @@ class Features {
|
|
|
1157
1348
|
allowUnrecognizedEnumValues: true,
|
|
1158
1349
|
skipValidation: true,
|
|
1159
1350
|
breadcrumbsPrefix: ["response"],
|
|
1160
|
-
}));
|
|
1351
|
+
}), _response.rawResponse);
|
|
1161
1352
|
case 403:
|
|
1162
1353
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1163
1354
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1165,7 +1356,15 @@ class Features {
|
|
|
1165
1356
|
allowUnrecognizedEnumValues: true,
|
|
1166
1357
|
skipValidation: true,
|
|
1167
1358
|
breadcrumbsPrefix: ["response"],
|
|
1168
|
-
}));
|
|
1359
|
+
}), _response.rawResponse);
|
|
1360
|
+
case 404:
|
|
1361
|
+
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1362
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1363
|
+
allowUnrecognizedUnionMembers: true,
|
|
1364
|
+
allowUnrecognizedEnumValues: true,
|
|
1365
|
+
skipValidation: true,
|
|
1366
|
+
breadcrumbsPrefix: ["response"],
|
|
1367
|
+
}), _response.rawResponse);
|
|
1169
1368
|
case 500:
|
|
1170
1369
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1171
1370
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1173,11 +1372,12 @@ class Features {
|
|
|
1173
1372
|
allowUnrecognizedEnumValues: true,
|
|
1174
1373
|
skipValidation: true,
|
|
1175
1374
|
breadcrumbsPrefix: ["response"],
|
|
1176
|
-
}));
|
|
1375
|
+
}), _response.rawResponse);
|
|
1177
1376
|
default:
|
|
1178
1377
|
throw new errors.SchematicError({
|
|
1179
1378
|
statusCode: _response.error.statusCode,
|
|
1180
1379
|
body: _response.error.body,
|
|
1380
|
+
rawResponse: _response.rawResponse,
|
|
1181
1381
|
});
|
|
1182
1382
|
}
|
|
1183
1383
|
}
|
|
@@ -1186,12 +1386,14 @@ class Features {
|
|
|
1186
1386
|
throw new errors.SchematicError({
|
|
1187
1387
|
statusCode: _response.error.statusCode,
|
|
1188
1388
|
body: _response.error.rawBody,
|
|
1389
|
+
rawResponse: _response.rawResponse,
|
|
1189
1390
|
});
|
|
1190
1391
|
case "timeout":
|
|
1191
1392
|
throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /flags.");
|
|
1192
1393
|
case "unknown":
|
|
1193
1394
|
throw new errors.SchematicError({
|
|
1194
1395
|
message: _response.error.errorMessage,
|
|
1396
|
+
rawResponse: _response.rawResponse,
|
|
1195
1397
|
});
|
|
1196
1398
|
}
|
|
1197
1399
|
});
|
|
@@ -1203,24 +1405,28 @@ class Features {
|
|
|
1203
1405
|
* @throws {@link Schematic.BadRequestError}
|
|
1204
1406
|
* @throws {@link Schematic.UnauthorizedError}
|
|
1205
1407
|
* @throws {@link Schematic.ForbiddenError}
|
|
1408
|
+
* @throws {@link Schematic.NotFoundError}
|
|
1206
1409
|
* @throws {@link Schematic.InternalServerError}
|
|
1207
1410
|
*
|
|
1208
1411
|
* @example
|
|
1209
1412
|
* await client.features.createFlag({
|
|
1210
1413
|
* defaultValue: true,
|
|
1211
1414
|
* description: "description",
|
|
1212
|
-
* flagType: "
|
|
1415
|
+
* flagType: "boolean",
|
|
1213
1416
|
* key: "key",
|
|
1214
1417
|
* name: "name"
|
|
1215
1418
|
* })
|
|
1216
1419
|
*/
|
|
1217
1420
|
createFlag(request, requestOptions) {
|
|
1421
|
+
return core.HttpResponsePromise.fromPromise(this.__createFlag(request, requestOptions));
|
|
1422
|
+
}
|
|
1423
|
+
__createFlag(request, requestOptions) {
|
|
1218
1424
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1219
1425
|
var _a, _b, _c;
|
|
1220
1426
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1221
1427
|
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, "flags"),
|
|
1222
1428
|
method: "POST",
|
|
1223
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
1429
|
+
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),
|
|
1224
1430
|
contentType: "application/json",
|
|
1225
1431
|
requestType: "json",
|
|
1226
1432
|
body: serializers.CreateFlagRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -1229,13 +1435,16 @@ class Features {
|
|
|
1229
1435
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1230
1436
|
});
|
|
1231
1437
|
if (_response.ok) {
|
|
1232
|
-
return
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1438
|
+
return {
|
|
1439
|
+
data: serializers.CreateFlagResponse.parseOrThrow(_response.body, {
|
|
1440
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1441
|
+
allowUnrecognizedUnionMembers: true,
|
|
1442
|
+
allowUnrecognizedEnumValues: true,
|
|
1443
|
+
skipValidation: true,
|
|
1444
|
+
breadcrumbsPrefix: ["response"],
|
|
1445
|
+
}),
|
|
1446
|
+
rawResponse: _response.rawResponse,
|
|
1447
|
+
};
|
|
1239
1448
|
}
|
|
1240
1449
|
if (_response.error.reason === "status-code") {
|
|
1241
1450
|
switch (_response.error.statusCode) {
|
|
@@ -1246,7 +1455,7 @@ class Features {
|
|
|
1246
1455
|
allowUnrecognizedEnumValues: true,
|
|
1247
1456
|
skipValidation: true,
|
|
1248
1457
|
breadcrumbsPrefix: ["response"],
|
|
1249
|
-
}));
|
|
1458
|
+
}), _response.rawResponse);
|
|
1250
1459
|
case 401:
|
|
1251
1460
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1252
1461
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1254,7 +1463,7 @@ class Features {
|
|
|
1254
1463
|
allowUnrecognizedEnumValues: true,
|
|
1255
1464
|
skipValidation: true,
|
|
1256
1465
|
breadcrumbsPrefix: ["response"],
|
|
1257
|
-
}));
|
|
1466
|
+
}), _response.rawResponse);
|
|
1258
1467
|
case 403:
|
|
1259
1468
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1260
1469
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1262,7 +1471,15 @@ class Features {
|
|
|
1262
1471
|
allowUnrecognizedEnumValues: true,
|
|
1263
1472
|
skipValidation: true,
|
|
1264
1473
|
breadcrumbsPrefix: ["response"],
|
|
1265
|
-
}));
|
|
1474
|
+
}), _response.rawResponse);
|
|
1475
|
+
case 404:
|
|
1476
|
+
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1477
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1478
|
+
allowUnrecognizedUnionMembers: true,
|
|
1479
|
+
allowUnrecognizedEnumValues: true,
|
|
1480
|
+
skipValidation: true,
|
|
1481
|
+
breadcrumbsPrefix: ["response"],
|
|
1482
|
+
}), _response.rawResponse);
|
|
1266
1483
|
case 500:
|
|
1267
1484
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1268
1485
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1270,11 +1487,12 @@ class Features {
|
|
|
1270
1487
|
allowUnrecognizedEnumValues: true,
|
|
1271
1488
|
skipValidation: true,
|
|
1272
1489
|
breadcrumbsPrefix: ["response"],
|
|
1273
|
-
}));
|
|
1490
|
+
}), _response.rawResponse);
|
|
1274
1491
|
default:
|
|
1275
1492
|
throw new errors.SchematicError({
|
|
1276
1493
|
statusCode: _response.error.statusCode,
|
|
1277
1494
|
body: _response.error.body,
|
|
1495
|
+
rawResponse: _response.rawResponse,
|
|
1278
1496
|
});
|
|
1279
1497
|
}
|
|
1280
1498
|
}
|
|
@@ -1283,12 +1501,14 @@ class Features {
|
|
|
1283
1501
|
throw new errors.SchematicError({
|
|
1284
1502
|
statusCode: _response.error.statusCode,
|
|
1285
1503
|
body: _response.error.rawBody,
|
|
1504
|
+
rawResponse: _response.rawResponse,
|
|
1286
1505
|
});
|
|
1287
1506
|
case "timeout":
|
|
1288
1507
|
throw new errors.SchematicTimeoutError("Timeout exceeded when calling POST /flags.");
|
|
1289
1508
|
case "unknown":
|
|
1290
1509
|
throw new errors.SchematicError({
|
|
1291
1510
|
message: _response.error.errorMessage,
|
|
1511
|
+
rawResponse: _response.rawResponse,
|
|
1292
1512
|
});
|
|
1293
1513
|
}
|
|
1294
1514
|
});
|
|
@@ -1306,12 +1526,15 @@ class Features {
|
|
|
1306
1526
|
* await client.features.getFlag("flag_id")
|
|
1307
1527
|
*/
|
|
1308
1528
|
getFlag(flagId, requestOptions) {
|
|
1529
|
+
return core.HttpResponsePromise.fromPromise(this.__getFlag(flagId, requestOptions));
|
|
1530
|
+
}
|
|
1531
|
+
__getFlag(flagId, requestOptions) {
|
|
1309
1532
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1310
1533
|
var _a, _b, _c;
|
|
1311
1534
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1312
1535
|
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, `flags/${encodeURIComponent(flagId)}`),
|
|
1313
1536
|
method: "GET",
|
|
1314
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
1537
|
+
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),
|
|
1315
1538
|
contentType: "application/json",
|
|
1316
1539
|
requestType: "json",
|
|
1317
1540
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1319,13 +1542,16 @@ class Features {
|
|
|
1319
1542
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1320
1543
|
});
|
|
1321
1544
|
if (_response.ok) {
|
|
1322
|
-
return
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1545
|
+
return {
|
|
1546
|
+
data: serializers.GetFlagResponse.parseOrThrow(_response.body, {
|
|
1547
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1548
|
+
allowUnrecognizedUnionMembers: true,
|
|
1549
|
+
allowUnrecognizedEnumValues: true,
|
|
1550
|
+
skipValidation: true,
|
|
1551
|
+
breadcrumbsPrefix: ["response"],
|
|
1552
|
+
}),
|
|
1553
|
+
rawResponse: _response.rawResponse,
|
|
1554
|
+
};
|
|
1329
1555
|
}
|
|
1330
1556
|
if (_response.error.reason === "status-code") {
|
|
1331
1557
|
switch (_response.error.statusCode) {
|
|
@@ -1336,7 +1562,7 @@ class Features {
|
|
|
1336
1562
|
allowUnrecognizedEnumValues: true,
|
|
1337
1563
|
skipValidation: true,
|
|
1338
1564
|
breadcrumbsPrefix: ["response"],
|
|
1339
|
-
}));
|
|
1565
|
+
}), _response.rawResponse);
|
|
1340
1566
|
case 403:
|
|
1341
1567
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1342
1568
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1344,7 +1570,7 @@ class Features {
|
|
|
1344
1570
|
allowUnrecognizedEnumValues: true,
|
|
1345
1571
|
skipValidation: true,
|
|
1346
1572
|
breadcrumbsPrefix: ["response"],
|
|
1347
|
-
}));
|
|
1573
|
+
}), _response.rawResponse);
|
|
1348
1574
|
case 404:
|
|
1349
1575
|
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1350
1576
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1352,7 +1578,7 @@ class Features {
|
|
|
1352
1578
|
allowUnrecognizedEnumValues: true,
|
|
1353
1579
|
skipValidation: true,
|
|
1354
1580
|
breadcrumbsPrefix: ["response"],
|
|
1355
|
-
}));
|
|
1581
|
+
}), _response.rawResponse);
|
|
1356
1582
|
case 500:
|
|
1357
1583
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1358
1584
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1360,11 +1586,12 @@ class Features {
|
|
|
1360
1586
|
allowUnrecognizedEnumValues: true,
|
|
1361
1587
|
skipValidation: true,
|
|
1362
1588
|
breadcrumbsPrefix: ["response"],
|
|
1363
|
-
}));
|
|
1589
|
+
}), _response.rawResponse);
|
|
1364
1590
|
default:
|
|
1365
1591
|
throw new errors.SchematicError({
|
|
1366
1592
|
statusCode: _response.error.statusCode,
|
|
1367
1593
|
body: _response.error.body,
|
|
1594
|
+
rawResponse: _response.rawResponse,
|
|
1368
1595
|
});
|
|
1369
1596
|
}
|
|
1370
1597
|
}
|
|
@@ -1373,12 +1600,14 @@ class Features {
|
|
|
1373
1600
|
throw new errors.SchematicError({
|
|
1374
1601
|
statusCode: _response.error.statusCode,
|
|
1375
1602
|
body: _response.error.rawBody,
|
|
1603
|
+
rawResponse: _response.rawResponse,
|
|
1376
1604
|
});
|
|
1377
1605
|
case "timeout":
|
|
1378
1606
|
throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /flags/{flag_id}.");
|
|
1379
1607
|
case "unknown":
|
|
1380
1608
|
throw new errors.SchematicError({
|
|
1381
1609
|
message: _response.error.errorMessage,
|
|
1610
|
+
rawResponse: _response.rawResponse,
|
|
1382
1611
|
});
|
|
1383
1612
|
}
|
|
1384
1613
|
});
|
|
@@ -1398,18 +1627,21 @@ class Features {
|
|
|
1398
1627
|
* await client.features.updateFlag("flag_id", {
|
|
1399
1628
|
* defaultValue: true,
|
|
1400
1629
|
* description: "description",
|
|
1401
|
-
* flagType: "
|
|
1630
|
+
* flagType: "boolean",
|
|
1402
1631
|
* key: "key",
|
|
1403
1632
|
* name: "name"
|
|
1404
1633
|
* })
|
|
1405
1634
|
*/
|
|
1406
1635
|
updateFlag(flagId, request, requestOptions) {
|
|
1636
|
+
return core.HttpResponsePromise.fromPromise(this.__updateFlag(flagId, request, requestOptions));
|
|
1637
|
+
}
|
|
1638
|
+
__updateFlag(flagId, request, requestOptions) {
|
|
1407
1639
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1408
1640
|
var _a, _b, _c;
|
|
1409
1641
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1410
1642
|
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, `flags/${encodeURIComponent(flagId)}`),
|
|
1411
1643
|
method: "PUT",
|
|
1412
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
1644
|
+
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),
|
|
1413
1645
|
contentType: "application/json",
|
|
1414
1646
|
requestType: "json",
|
|
1415
1647
|
body: serializers.CreateFlagRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -1418,13 +1650,16 @@ class Features {
|
|
|
1418
1650
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1419
1651
|
});
|
|
1420
1652
|
if (_response.ok) {
|
|
1421
|
-
return
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1653
|
+
return {
|
|
1654
|
+
data: serializers.UpdateFlagResponse.parseOrThrow(_response.body, {
|
|
1655
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1656
|
+
allowUnrecognizedUnionMembers: true,
|
|
1657
|
+
allowUnrecognizedEnumValues: true,
|
|
1658
|
+
skipValidation: true,
|
|
1659
|
+
breadcrumbsPrefix: ["response"],
|
|
1660
|
+
}),
|
|
1661
|
+
rawResponse: _response.rawResponse,
|
|
1662
|
+
};
|
|
1428
1663
|
}
|
|
1429
1664
|
if (_response.error.reason === "status-code") {
|
|
1430
1665
|
switch (_response.error.statusCode) {
|
|
@@ -1435,7 +1670,7 @@ class Features {
|
|
|
1435
1670
|
allowUnrecognizedEnumValues: true,
|
|
1436
1671
|
skipValidation: true,
|
|
1437
1672
|
breadcrumbsPrefix: ["response"],
|
|
1438
|
-
}));
|
|
1673
|
+
}), _response.rawResponse);
|
|
1439
1674
|
case 401:
|
|
1440
1675
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1441
1676
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1443,7 +1678,7 @@ class Features {
|
|
|
1443
1678
|
allowUnrecognizedEnumValues: true,
|
|
1444
1679
|
skipValidation: true,
|
|
1445
1680
|
breadcrumbsPrefix: ["response"],
|
|
1446
|
-
}));
|
|
1681
|
+
}), _response.rawResponse);
|
|
1447
1682
|
case 403:
|
|
1448
1683
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1449
1684
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1451,7 +1686,7 @@ class Features {
|
|
|
1451
1686
|
allowUnrecognizedEnumValues: true,
|
|
1452
1687
|
skipValidation: true,
|
|
1453
1688
|
breadcrumbsPrefix: ["response"],
|
|
1454
|
-
}));
|
|
1689
|
+
}), _response.rawResponse);
|
|
1455
1690
|
case 404:
|
|
1456
1691
|
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1457
1692
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1459,7 +1694,7 @@ class Features {
|
|
|
1459
1694
|
allowUnrecognizedEnumValues: true,
|
|
1460
1695
|
skipValidation: true,
|
|
1461
1696
|
breadcrumbsPrefix: ["response"],
|
|
1462
|
-
}));
|
|
1697
|
+
}), _response.rawResponse);
|
|
1463
1698
|
case 500:
|
|
1464
1699
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1465
1700
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1467,11 +1702,12 @@ class Features {
|
|
|
1467
1702
|
allowUnrecognizedEnumValues: true,
|
|
1468
1703
|
skipValidation: true,
|
|
1469
1704
|
breadcrumbsPrefix: ["response"],
|
|
1470
|
-
}));
|
|
1705
|
+
}), _response.rawResponse);
|
|
1471
1706
|
default:
|
|
1472
1707
|
throw new errors.SchematicError({
|
|
1473
1708
|
statusCode: _response.error.statusCode,
|
|
1474
1709
|
body: _response.error.body,
|
|
1710
|
+
rawResponse: _response.rawResponse,
|
|
1475
1711
|
});
|
|
1476
1712
|
}
|
|
1477
1713
|
}
|
|
@@ -1480,12 +1716,14 @@ class Features {
|
|
|
1480
1716
|
throw new errors.SchematicError({
|
|
1481
1717
|
statusCode: _response.error.statusCode,
|
|
1482
1718
|
body: _response.error.rawBody,
|
|
1719
|
+
rawResponse: _response.rawResponse,
|
|
1483
1720
|
});
|
|
1484
1721
|
case "timeout":
|
|
1485
1722
|
throw new errors.SchematicTimeoutError("Timeout exceeded when calling PUT /flags/{flag_id}.");
|
|
1486
1723
|
case "unknown":
|
|
1487
1724
|
throw new errors.SchematicError({
|
|
1488
1725
|
message: _response.error.errorMessage,
|
|
1726
|
+
rawResponse: _response.rawResponse,
|
|
1489
1727
|
});
|
|
1490
1728
|
}
|
|
1491
1729
|
});
|
|
@@ -1497,18 +1735,22 @@ class Features {
|
|
|
1497
1735
|
* @throws {@link Schematic.BadRequestError}
|
|
1498
1736
|
* @throws {@link Schematic.UnauthorizedError}
|
|
1499
1737
|
* @throws {@link Schematic.ForbiddenError}
|
|
1738
|
+
* @throws {@link Schematic.NotFoundError}
|
|
1500
1739
|
* @throws {@link Schematic.InternalServerError}
|
|
1501
1740
|
*
|
|
1502
1741
|
* @example
|
|
1503
1742
|
* await client.features.deleteFlag("flag_id")
|
|
1504
1743
|
*/
|
|
1505
1744
|
deleteFlag(flagId, requestOptions) {
|
|
1745
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteFlag(flagId, requestOptions));
|
|
1746
|
+
}
|
|
1747
|
+
__deleteFlag(flagId, requestOptions) {
|
|
1506
1748
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1507
1749
|
var _a, _b, _c;
|
|
1508
1750
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1509
1751
|
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, `flags/${encodeURIComponent(flagId)}`),
|
|
1510
1752
|
method: "DELETE",
|
|
1511
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
1753
|
+
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),
|
|
1512
1754
|
contentType: "application/json",
|
|
1513
1755
|
requestType: "json",
|
|
1514
1756
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1516,13 +1758,16 @@ class Features {
|
|
|
1516
1758
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1517
1759
|
});
|
|
1518
1760
|
if (_response.ok) {
|
|
1519
|
-
return
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1761
|
+
return {
|
|
1762
|
+
data: serializers.DeleteFlagResponse.parseOrThrow(_response.body, {
|
|
1763
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1764
|
+
allowUnrecognizedUnionMembers: true,
|
|
1765
|
+
allowUnrecognizedEnumValues: true,
|
|
1766
|
+
skipValidation: true,
|
|
1767
|
+
breadcrumbsPrefix: ["response"],
|
|
1768
|
+
}),
|
|
1769
|
+
rawResponse: _response.rawResponse,
|
|
1770
|
+
};
|
|
1526
1771
|
}
|
|
1527
1772
|
if (_response.error.reason === "status-code") {
|
|
1528
1773
|
switch (_response.error.statusCode) {
|
|
@@ -1533,7 +1778,7 @@ class Features {
|
|
|
1533
1778
|
allowUnrecognizedEnumValues: true,
|
|
1534
1779
|
skipValidation: true,
|
|
1535
1780
|
breadcrumbsPrefix: ["response"],
|
|
1536
|
-
}));
|
|
1781
|
+
}), _response.rawResponse);
|
|
1537
1782
|
case 401:
|
|
1538
1783
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1539
1784
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1541,7 +1786,7 @@ class Features {
|
|
|
1541
1786
|
allowUnrecognizedEnumValues: true,
|
|
1542
1787
|
skipValidation: true,
|
|
1543
1788
|
breadcrumbsPrefix: ["response"],
|
|
1544
|
-
}));
|
|
1789
|
+
}), _response.rawResponse);
|
|
1545
1790
|
case 403:
|
|
1546
1791
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1547
1792
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1549,7 +1794,15 @@ class Features {
|
|
|
1549
1794
|
allowUnrecognizedEnumValues: true,
|
|
1550
1795
|
skipValidation: true,
|
|
1551
1796
|
breadcrumbsPrefix: ["response"],
|
|
1552
|
-
}));
|
|
1797
|
+
}), _response.rawResponse);
|
|
1798
|
+
case 404:
|
|
1799
|
+
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1800
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1801
|
+
allowUnrecognizedUnionMembers: true,
|
|
1802
|
+
allowUnrecognizedEnumValues: true,
|
|
1803
|
+
skipValidation: true,
|
|
1804
|
+
breadcrumbsPrefix: ["response"],
|
|
1805
|
+
}), _response.rawResponse);
|
|
1553
1806
|
case 500:
|
|
1554
1807
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1555
1808
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1557,11 +1810,12 @@ class Features {
|
|
|
1557
1810
|
allowUnrecognizedEnumValues: true,
|
|
1558
1811
|
skipValidation: true,
|
|
1559
1812
|
breadcrumbsPrefix: ["response"],
|
|
1560
|
-
}));
|
|
1813
|
+
}), _response.rawResponse);
|
|
1561
1814
|
default:
|
|
1562
1815
|
throw new errors.SchematicError({
|
|
1563
1816
|
statusCode: _response.error.statusCode,
|
|
1564
1817
|
body: _response.error.body,
|
|
1818
|
+
rawResponse: _response.rawResponse,
|
|
1565
1819
|
});
|
|
1566
1820
|
}
|
|
1567
1821
|
}
|
|
@@ -1570,12 +1824,14 @@ class Features {
|
|
|
1570
1824
|
throw new errors.SchematicError({
|
|
1571
1825
|
statusCode: _response.error.statusCode,
|
|
1572
1826
|
body: _response.error.rawBody,
|
|
1827
|
+
rawResponse: _response.rawResponse,
|
|
1573
1828
|
});
|
|
1574
1829
|
case "timeout":
|
|
1575
1830
|
throw new errors.SchematicTimeoutError("Timeout exceeded when calling DELETE /flags/{flag_id}.");
|
|
1576
1831
|
case "unknown":
|
|
1577
1832
|
throw new errors.SchematicError({
|
|
1578
1833
|
message: _response.error.errorMessage,
|
|
1834
|
+
rawResponse: _response.rawResponse,
|
|
1579
1835
|
});
|
|
1580
1836
|
}
|
|
1581
1837
|
});
|
|
@@ -1613,12 +1869,15 @@ class Features {
|
|
|
1613
1869
|
* })
|
|
1614
1870
|
*/
|
|
1615
1871
|
updateFlagRules(flagId, request, requestOptions) {
|
|
1872
|
+
return core.HttpResponsePromise.fromPromise(this.__updateFlagRules(flagId, request, requestOptions));
|
|
1873
|
+
}
|
|
1874
|
+
__updateFlagRules(flagId, request, requestOptions) {
|
|
1616
1875
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1617
1876
|
var _a, _b, _c;
|
|
1618
1877
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1619
1878
|
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, `flags/${encodeURIComponent(flagId)}/rules`),
|
|
1620
1879
|
method: "PUT",
|
|
1621
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
1880
|
+
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),
|
|
1622
1881
|
contentType: "application/json",
|
|
1623
1882
|
requestType: "json",
|
|
1624
1883
|
body: serializers.UpdateFlagRulesRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -1627,13 +1886,16 @@ class Features {
|
|
|
1627
1886
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1628
1887
|
});
|
|
1629
1888
|
if (_response.ok) {
|
|
1630
|
-
return
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1889
|
+
return {
|
|
1890
|
+
data: serializers.UpdateFlagRulesResponse.parseOrThrow(_response.body, {
|
|
1891
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1892
|
+
allowUnrecognizedUnionMembers: true,
|
|
1893
|
+
allowUnrecognizedEnumValues: true,
|
|
1894
|
+
skipValidation: true,
|
|
1895
|
+
breadcrumbsPrefix: ["response"],
|
|
1896
|
+
}),
|
|
1897
|
+
rawResponse: _response.rawResponse,
|
|
1898
|
+
};
|
|
1637
1899
|
}
|
|
1638
1900
|
if (_response.error.reason === "status-code") {
|
|
1639
1901
|
switch (_response.error.statusCode) {
|
|
@@ -1644,7 +1906,7 @@ class Features {
|
|
|
1644
1906
|
allowUnrecognizedEnumValues: true,
|
|
1645
1907
|
skipValidation: true,
|
|
1646
1908
|
breadcrumbsPrefix: ["response"],
|
|
1647
|
-
}));
|
|
1909
|
+
}), _response.rawResponse);
|
|
1648
1910
|
case 401:
|
|
1649
1911
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1650
1912
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1652,7 +1914,7 @@ class Features {
|
|
|
1652
1914
|
allowUnrecognizedEnumValues: true,
|
|
1653
1915
|
skipValidation: true,
|
|
1654
1916
|
breadcrumbsPrefix: ["response"],
|
|
1655
|
-
}));
|
|
1917
|
+
}), _response.rawResponse);
|
|
1656
1918
|
case 403:
|
|
1657
1919
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1658
1920
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1660,7 +1922,7 @@ class Features {
|
|
|
1660
1922
|
allowUnrecognizedEnumValues: true,
|
|
1661
1923
|
skipValidation: true,
|
|
1662
1924
|
breadcrumbsPrefix: ["response"],
|
|
1663
|
-
}));
|
|
1925
|
+
}), _response.rawResponse);
|
|
1664
1926
|
case 404:
|
|
1665
1927
|
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1666
1928
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1668,7 +1930,7 @@ class Features {
|
|
|
1668
1930
|
allowUnrecognizedEnumValues: true,
|
|
1669
1931
|
skipValidation: true,
|
|
1670
1932
|
breadcrumbsPrefix: ["response"],
|
|
1671
|
-
}));
|
|
1933
|
+
}), _response.rawResponse);
|
|
1672
1934
|
case 500:
|
|
1673
1935
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1674
1936
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1676,11 +1938,12 @@ class Features {
|
|
|
1676
1938
|
allowUnrecognizedEnumValues: true,
|
|
1677
1939
|
skipValidation: true,
|
|
1678
1940
|
breadcrumbsPrefix: ["response"],
|
|
1679
|
-
}));
|
|
1941
|
+
}), _response.rawResponse);
|
|
1680
1942
|
default:
|
|
1681
1943
|
throw new errors.SchematicError({
|
|
1682
1944
|
statusCode: _response.error.statusCode,
|
|
1683
1945
|
body: _response.error.body,
|
|
1946
|
+
rawResponse: _response.rawResponse,
|
|
1684
1947
|
});
|
|
1685
1948
|
}
|
|
1686
1949
|
}
|
|
@@ -1689,12 +1952,14 @@ class Features {
|
|
|
1689
1952
|
throw new errors.SchematicError({
|
|
1690
1953
|
statusCode: _response.error.statusCode,
|
|
1691
1954
|
body: _response.error.rawBody,
|
|
1955
|
+
rawResponse: _response.rawResponse,
|
|
1692
1956
|
});
|
|
1693
1957
|
case "timeout":
|
|
1694
1958
|
throw new errors.SchematicTimeoutError("Timeout exceeded when calling PUT /flags/{flag_id}/rules.");
|
|
1695
1959
|
case "unknown":
|
|
1696
1960
|
throw new errors.SchematicError({
|
|
1697
1961
|
message: _response.error.errorMessage,
|
|
1962
|
+
rawResponse: _response.rawResponse,
|
|
1698
1963
|
});
|
|
1699
1964
|
}
|
|
1700
1965
|
});
|
|
@@ -1707,18 +1972,22 @@ class Features {
|
|
|
1707
1972
|
* @throws {@link Schematic.BadRequestError}
|
|
1708
1973
|
* @throws {@link Schematic.UnauthorizedError}
|
|
1709
1974
|
* @throws {@link Schematic.ForbiddenError}
|
|
1975
|
+
* @throws {@link Schematic.NotFoundError}
|
|
1710
1976
|
* @throws {@link Schematic.InternalServerError}
|
|
1711
1977
|
*
|
|
1712
1978
|
* @example
|
|
1713
1979
|
* await client.features.checkFlag("key", {})
|
|
1714
1980
|
*/
|
|
1715
1981
|
checkFlag(key, request, requestOptions) {
|
|
1982
|
+
return core.HttpResponsePromise.fromPromise(this.__checkFlag(key, request, requestOptions));
|
|
1983
|
+
}
|
|
1984
|
+
__checkFlag(key, request, requestOptions) {
|
|
1716
1985
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1717
1986
|
var _a, _b, _c;
|
|
1718
1987
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1719
1988
|
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, `flags/${encodeURIComponent(key)}/check`),
|
|
1720
1989
|
method: "POST",
|
|
1721
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
1990
|
+
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),
|
|
1722
1991
|
contentType: "application/json",
|
|
1723
1992
|
requestType: "json",
|
|
1724
1993
|
body: serializers.CheckFlagRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -1727,13 +1996,16 @@ class Features {
|
|
|
1727
1996
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1728
1997
|
});
|
|
1729
1998
|
if (_response.ok) {
|
|
1730
|
-
return
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1999
|
+
return {
|
|
2000
|
+
data: serializers.CheckFlagResponse.parseOrThrow(_response.body, {
|
|
2001
|
+
unrecognizedObjectKeys: "passthrough",
|
|
2002
|
+
allowUnrecognizedUnionMembers: true,
|
|
2003
|
+
allowUnrecognizedEnumValues: true,
|
|
2004
|
+
skipValidation: true,
|
|
2005
|
+
breadcrumbsPrefix: ["response"],
|
|
2006
|
+
}),
|
|
2007
|
+
rawResponse: _response.rawResponse,
|
|
2008
|
+
};
|
|
1737
2009
|
}
|
|
1738
2010
|
if (_response.error.reason === "status-code") {
|
|
1739
2011
|
switch (_response.error.statusCode) {
|
|
@@ -1744,7 +2016,7 @@ class Features {
|
|
|
1744
2016
|
allowUnrecognizedEnumValues: true,
|
|
1745
2017
|
skipValidation: true,
|
|
1746
2018
|
breadcrumbsPrefix: ["response"],
|
|
1747
|
-
}));
|
|
2019
|
+
}), _response.rawResponse);
|
|
1748
2020
|
case 401:
|
|
1749
2021
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1750
2022
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1752,7 +2024,7 @@ class Features {
|
|
|
1752
2024
|
allowUnrecognizedEnumValues: true,
|
|
1753
2025
|
skipValidation: true,
|
|
1754
2026
|
breadcrumbsPrefix: ["response"],
|
|
1755
|
-
}));
|
|
2027
|
+
}), _response.rawResponse);
|
|
1756
2028
|
case 403:
|
|
1757
2029
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1758
2030
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1760,7 +2032,15 @@ class Features {
|
|
|
1760
2032
|
allowUnrecognizedEnumValues: true,
|
|
1761
2033
|
skipValidation: true,
|
|
1762
2034
|
breadcrumbsPrefix: ["response"],
|
|
1763
|
-
}));
|
|
2035
|
+
}), _response.rawResponse);
|
|
2036
|
+
case 404:
|
|
2037
|
+
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
2038
|
+
unrecognizedObjectKeys: "passthrough",
|
|
2039
|
+
allowUnrecognizedUnionMembers: true,
|
|
2040
|
+
allowUnrecognizedEnumValues: true,
|
|
2041
|
+
skipValidation: true,
|
|
2042
|
+
breadcrumbsPrefix: ["response"],
|
|
2043
|
+
}), _response.rawResponse);
|
|
1764
2044
|
case 500:
|
|
1765
2045
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1766
2046
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1768,11 +2048,12 @@ class Features {
|
|
|
1768
2048
|
allowUnrecognizedEnumValues: true,
|
|
1769
2049
|
skipValidation: true,
|
|
1770
2050
|
breadcrumbsPrefix: ["response"],
|
|
1771
|
-
}));
|
|
2051
|
+
}), _response.rawResponse);
|
|
1772
2052
|
default:
|
|
1773
2053
|
throw new errors.SchematicError({
|
|
1774
2054
|
statusCode: _response.error.statusCode,
|
|
1775
2055
|
body: _response.error.body,
|
|
2056
|
+
rawResponse: _response.rawResponse,
|
|
1776
2057
|
});
|
|
1777
2058
|
}
|
|
1778
2059
|
}
|
|
@@ -1781,12 +2062,14 @@ class Features {
|
|
|
1781
2062
|
throw new errors.SchematicError({
|
|
1782
2063
|
statusCode: _response.error.statusCode,
|
|
1783
2064
|
body: _response.error.rawBody,
|
|
2065
|
+
rawResponse: _response.rawResponse,
|
|
1784
2066
|
});
|
|
1785
2067
|
case "timeout":
|
|
1786
2068
|
throw new errors.SchematicTimeoutError("Timeout exceeded when calling POST /flags/{key}/check.");
|
|
1787
2069
|
case "unknown":
|
|
1788
2070
|
throw new errors.SchematicError({
|
|
1789
2071
|
message: _response.error.errorMessage,
|
|
2072
|
+
rawResponse: _response.rawResponse,
|
|
1790
2073
|
});
|
|
1791
2074
|
}
|
|
1792
2075
|
});
|
|
@@ -1798,18 +2081,22 @@ class Features {
|
|
|
1798
2081
|
* @throws {@link Schematic.BadRequestError}
|
|
1799
2082
|
* @throws {@link Schematic.UnauthorizedError}
|
|
1800
2083
|
* @throws {@link Schematic.ForbiddenError}
|
|
2084
|
+
* @throws {@link Schematic.NotFoundError}
|
|
1801
2085
|
* @throws {@link Schematic.InternalServerError}
|
|
1802
2086
|
*
|
|
1803
2087
|
* @example
|
|
1804
2088
|
* await client.features.checkFlags({})
|
|
1805
2089
|
*/
|
|
1806
2090
|
checkFlags(request, requestOptions) {
|
|
2091
|
+
return core.HttpResponsePromise.fromPromise(this.__checkFlags(request, requestOptions));
|
|
2092
|
+
}
|
|
2093
|
+
__checkFlags(request, requestOptions) {
|
|
1807
2094
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1808
2095
|
var _a, _b, _c;
|
|
1809
2096
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1810
2097
|
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, "flags/check"),
|
|
1811
2098
|
method: "POST",
|
|
1812
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
2099
|
+
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),
|
|
1813
2100
|
contentType: "application/json",
|
|
1814
2101
|
requestType: "json",
|
|
1815
2102
|
body: serializers.CheckFlagRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -1818,13 +2105,16 @@ class Features {
|
|
|
1818
2105
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1819
2106
|
});
|
|
1820
2107
|
if (_response.ok) {
|
|
1821
|
-
return
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
2108
|
+
return {
|
|
2109
|
+
data: serializers.CheckFlagsResponse.parseOrThrow(_response.body, {
|
|
2110
|
+
unrecognizedObjectKeys: "passthrough",
|
|
2111
|
+
allowUnrecognizedUnionMembers: true,
|
|
2112
|
+
allowUnrecognizedEnumValues: true,
|
|
2113
|
+
skipValidation: true,
|
|
2114
|
+
breadcrumbsPrefix: ["response"],
|
|
2115
|
+
}),
|
|
2116
|
+
rawResponse: _response.rawResponse,
|
|
2117
|
+
};
|
|
1828
2118
|
}
|
|
1829
2119
|
if (_response.error.reason === "status-code") {
|
|
1830
2120
|
switch (_response.error.statusCode) {
|
|
@@ -1835,7 +2125,7 @@ class Features {
|
|
|
1835
2125
|
allowUnrecognizedEnumValues: true,
|
|
1836
2126
|
skipValidation: true,
|
|
1837
2127
|
breadcrumbsPrefix: ["response"],
|
|
1838
|
-
}));
|
|
2128
|
+
}), _response.rawResponse);
|
|
1839
2129
|
case 401:
|
|
1840
2130
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1841
2131
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1843,7 +2133,7 @@ class Features {
|
|
|
1843
2133
|
allowUnrecognizedEnumValues: true,
|
|
1844
2134
|
skipValidation: true,
|
|
1845
2135
|
breadcrumbsPrefix: ["response"],
|
|
1846
|
-
}));
|
|
2136
|
+
}), _response.rawResponse);
|
|
1847
2137
|
case 403:
|
|
1848
2138
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1849
2139
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1851,7 +2141,15 @@ class Features {
|
|
|
1851
2141
|
allowUnrecognizedEnumValues: true,
|
|
1852
2142
|
skipValidation: true,
|
|
1853
2143
|
breadcrumbsPrefix: ["response"],
|
|
1854
|
-
}));
|
|
2144
|
+
}), _response.rawResponse);
|
|
2145
|
+
case 404:
|
|
2146
|
+
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
2147
|
+
unrecognizedObjectKeys: "passthrough",
|
|
2148
|
+
allowUnrecognizedUnionMembers: true,
|
|
2149
|
+
allowUnrecognizedEnumValues: true,
|
|
2150
|
+
skipValidation: true,
|
|
2151
|
+
breadcrumbsPrefix: ["response"],
|
|
2152
|
+
}), _response.rawResponse);
|
|
1855
2153
|
case 500:
|
|
1856
2154
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1857
2155
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1859,11 +2157,12 @@ class Features {
|
|
|
1859
2157
|
allowUnrecognizedEnumValues: true,
|
|
1860
2158
|
skipValidation: true,
|
|
1861
2159
|
breadcrumbsPrefix: ["response"],
|
|
1862
|
-
}));
|
|
2160
|
+
}), _response.rawResponse);
|
|
1863
2161
|
default:
|
|
1864
2162
|
throw new errors.SchematicError({
|
|
1865
2163
|
statusCode: _response.error.statusCode,
|
|
1866
2164
|
body: _response.error.body,
|
|
2165
|
+
rawResponse: _response.rawResponse,
|
|
1867
2166
|
});
|
|
1868
2167
|
}
|
|
1869
2168
|
}
|
|
@@ -1872,12 +2171,14 @@ class Features {
|
|
|
1872
2171
|
throw new errors.SchematicError({
|
|
1873
2172
|
statusCode: _response.error.statusCode,
|
|
1874
2173
|
body: _response.error.rawBody,
|
|
2174
|
+
rawResponse: _response.rawResponse,
|
|
1875
2175
|
});
|
|
1876
2176
|
case "timeout":
|
|
1877
2177
|
throw new errors.SchematicTimeoutError("Timeout exceeded when calling POST /flags/check.");
|
|
1878
2178
|
case "unknown":
|
|
1879
2179
|
throw new errors.SchematicError({
|
|
1880
2180
|
message: _response.error.errorMessage,
|
|
2181
|
+
rawResponse: _response.rawResponse,
|
|
1881
2182
|
});
|
|
1882
2183
|
}
|
|
1883
2184
|
});
|
|
@@ -1889,12 +2190,16 @@ class Features {
|
|
|
1889
2190
|
* @throws {@link Schematic.BadRequestError}
|
|
1890
2191
|
* @throws {@link Schematic.UnauthorizedError}
|
|
1891
2192
|
* @throws {@link Schematic.ForbiddenError}
|
|
2193
|
+
* @throws {@link Schematic.NotFoundError}
|
|
1892
2194
|
* @throws {@link Schematic.InternalServerError}
|
|
1893
2195
|
*
|
|
1894
2196
|
* @example
|
|
1895
2197
|
* await client.features.countFlags()
|
|
1896
2198
|
*/
|
|
1897
|
-
countFlags() {
|
|
2199
|
+
countFlags(request = {}, requestOptions) {
|
|
2200
|
+
return core.HttpResponsePromise.fromPromise(this.__countFlags(request, requestOptions));
|
|
2201
|
+
}
|
|
2202
|
+
__countFlags() {
|
|
1898
2203
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
1899
2204
|
var _a, _b, _c;
|
|
1900
2205
|
const { featureId, ids, q, limit, offset } = request;
|
|
@@ -1922,7 +2227,7 @@ class Features {
|
|
|
1922
2227
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1923
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, "flags/count"),
|
|
1924
2229
|
method: "GET",
|
|
1925
|
-
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),
|
|
1926
2231
|
contentType: "application/json",
|
|
1927
2232
|
queryParameters: _queryParams,
|
|
1928
2233
|
requestType: "json",
|
|
@@ -1931,13 +2236,16 @@ class Features {
|
|
|
1931
2236
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1932
2237
|
});
|
|
1933
2238
|
if (_response.ok) {
|
|
1934
|
-
return
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
2239
|
+
return {
|
|
2240
|
+
data: serializers.CountFlagsResponse.parseOrThrow(_response.body, {
|
|
2241
|
+
unrecognizedObjectKeys: "passthrough",
|
|
2242
|
+
allowUnrecognizedUnionMembers: true,
|
|
2243
|
+
allowUnrecognizedEnumValues: true,
|
|
2244
|
+
skipValidation: true,
|
|
2245
|
+
breadcrumbsPrefix: ["response"],
|
|
2246
|
+
}),
|
|
2247
|
+
rawResponse: _response.rawResponse,
|
|
2248
|
+
};
|
|
1941
2249
|
}
|
|
1942
2250
|
if (_response.error.reason === "status-code") {
|
|
1943
2251
|
switch (_response.error.statusCode) {
|
|
@@ -1948,7 +2256,7 @@ class Features {
|
|
|
1948
2256
|
allowUnrecognizedEnumValues: true,
|
|
1949
2257
|
skipValidation: true,
|
|
1950
2258
|
breadcrumbsPrefix: ["response"],
|
|
1951
|
-
}));
|
|
2259
|
+
}), _response.rawResponse);
|
|
1952
2260
|
case 401:
|
|
1953
2261
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1954
2262
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1956,7 +2264,7 @@ class Features {
|
|
|
1956
2264
|
allowUnrecognizedEnumValues: true,
|
|
1957
2265
|
skipValidation: true,
|
|
1958
2266
|
breadcrumbsPrefix: ["response"],
|
|
1959
|
-
}));
|
|
2267
|
+
}), _response.rawResponse);
|
|
1960
2268
|
case 403:
|
|
1961
2269
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1962
2270
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1964,7 +2272,15 @@ class Features {
|
|
|
1964
2272
|
allowUnrecognizedEnumValues: true,
|
|
1965
2273
|
skipValidation: true,
|
|
1966
2274
|
breadcrumbsPrefix: ["response"],
|
|
1967
|
-
}));
|
|
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);
|
|
1968
2284
|
case 500:
|
|
1969
2285
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1970
2286
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1972,11 +2288,12 @@ class Features {
|
|
|
1972
2288
|
allowUnrecognizedEnumValues: true,
|
|
1973
2289
|
skipValidation: true,
|
|
1974
2290
|
breadcrumbsPrefix: ["response"],
|
|
1975
|
-
}));
|
|
2291
|
+
}), _response.rawResponse);
|
|
1976
2292
|
default:
|
|
1977
2293
|
throw new errors.SchematicError({
|
|
1978
2294
|
statusCode: _response.error.statusCode,
|
|
1979
2295
|
body: _response.error.body,
|
|
2296
|
+
rawResponse: _response.rawResponse,
|
|
1980
2297
|
});
|
|
1981
2298
|
}
|
|
1982
2299
|
}
|
|
@@ -1985,12 +2302,14 @@ class Features {
|
|
|
1985
2302
|
throw new errors.SchematicError({
|
|
1986
2303
|
statusCode: _response.error.statusCode,
|
|
1987
2304
|
body: _response.error.rawBody,
|
|
2305
|
+
rawResponse: _response.rawResponse,
|
|
1988
2306
|
});
|
|
1989
2307
|
case "timeout":
|
|
1990
2308
|
throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /flags/count.");
|
|
1991
2309
|
case "unknown":
|
|
1992
2310
|
throw new errors.SchematicError({
|
|
1993
2311
|
message: _response.error.errorMessage,
|
|
2312
|
+
rawResponse: _response.rawResponse,
|
|
1994
2313
|
});
|
|
1995
2314
|
}
|
|
1996
2315
|
});
|