@schematichq/schematic-typescript-node 1.1.10 → 1.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.d.ts +3 -0
- package/Client.js +13 -8
- 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 +3 -1
- package/api/resources/accesstokens/client/Client.js +30 -12
- 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 +651 -259
- 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 +4 -0
- 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/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/ListBillingProductsParams.d.ts +4 -0
- package/{dist/api/resources/billing/types/ListCustomersParams.d.ts → api/resources/billing/types/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/index.d.ts +3 -2
- package/api/resources/billing/types/index.js +3 -2
- package/api/resources/checkout/client/Client.d.ts +11 -4
- package/api/resources/checkout/client/Client.js +113 -50
- package/api/resources/companies/client/Client.d.ts +95 -37
- package/api/resources/companies/client/Client.js +903 -391
- package/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +4 -0
- package/api/resources/companies/client/requests/ListCompaniesRequest.d.ts +4 -0
- package/api/resources/companies/client/requests/LookupCompanyRequest.d.ts +2 -4
- package/api/resources/companies/client/requests/LookupUserRequest.d.ts +2 -4
- package/api/resources/companies/types/CountCompaniesParams.d.ts +2 -0
- package/api/resources/companies/types/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/components/client/Client.d.ts +18 -7
- package/api/resources/components/client/Client.js +188 -89
- 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/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/index.d.ts +1 -0
- package/api/resources/dataexports/types/index.js +17 -0
- package/api/resources/entitlements/client/Client.d.ts +53 -22
- package/api/resources/entitlements/client/Client.js +534 -239
- package/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +6 -0
- package/api/resources/entitlements/client/requests/GetFeatureUsageByCompanyRequest.d.ts +2 -4
- package/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +6 -0
- package/api/resources/entitlements/types/GetFeatureUsageByCompanyParams.d.ts +1 -1
- package/api/resources/events/client/Client.d.ts +16 -6
- package/api/resources/events/client/Client.js +164 -74
- package/api/resources/features/client/Client.d.ts +52 -19
- package/api/resources/features/client/Client.js +533 -236
- package/api/resources/index.d.ts +3 -0
- package/api/resources/index.js +4 -1
- package/api/resources/plangroups/client/Client.d.ts +7 -3
- package/api/resources/plangroups/client/Client.js +73 -37
- package/api/resources/plans/client/Client.d.ts +124 -11
- package/api/resources/plans/client/Client.js +1010 -171
- package/api/resources/plans/client/requests/CountPlanTraitsRequest.d.ts +20 -0
- package/api/resources/plans/client/requests/CountPlanTraitsRequest.js +5 -0
- package/api/resources/plans/client/requests/CreatePlanTraitRequestBody.d.ts +16 -0
- package/api/resources/plans/client/requests/CreatePlanTraitRequestBody.js +5 -0
- package/api/resources/plans/client/requests/ListPlanTraitsRequest.d.ts +20 -0
- package/api/resources/plans/client/requests/ListPlanTraitsRequest.js +5 -0
- package/api/resources/plans/client/requests/UpdatePlanTraitRequestBody.d.ts +14 -0
- package/api/resources/plans/client/requests/UpdatePlanTraitRequestBody.js +5 -0
- package/api/resources/plans/client/requests/UpsertBillingProductRequestBody.d.ts +2 -0
- package/api/resources/plans/client/requests/index.d.ts +4 -0
- package/api/resources/plans/types/CountPlanTraitsParams.d.ts +15 -0
- package/api/resources/plans/types/CountPlanTraitsParams.js +5 -0
- package/api/resources/plans/types/CountPlanTraitsResponse.d.ts +9 -0
- package/api/resources/plans/types/CountPlanTraitsResponse.js +5 -0
- package/api/resources/plans/types/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/index.d.ts +8 -0
- package/api/resources/plans/types/index.js +8 -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/BillingPriceResponseData.d.ts +2 -0
- package/api/types/BillingPriceView.d.ts +7 -0
- package/api/types/BillingProductDetailResponseData.d.ts +2 -0
- package/api/types/BillingProductForSubscriptionResponseData.d.ts +5 -0
- package/api/types/BillingProductPlanResponseData.d.ts +2 -0
- package/api/types/BillingProductPriceResponseData.d.ts +3 -0
- package/api/types/BillingProductPriceTierResponseData.d.ts +9 -0
- package/api/types/BillingProductPriceTierResponseData.js +5 -0
- package/api/types/BillingProductPricing.d.ts +2 -0
- package/api/types/BillingProductResponseData.d.ts +2 -0
- package/api/types/CheckFlagResponseData.d.ts +2 -0
- package/api/types/CompanyDetailResponseData.d.ts +1 -0
- package/api/types/CompanyPlanDetailResponseData.d.ts +2 -0
- package/api/types/CompanyPlanWithBillingSubView.d.ts +2 -0
- package/api/types/CreateBillingPriceTierRequestBody.d.ts +1 -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/PlanDetailResponseData.d.ts +2 -0
- package/api/types/PlanEntitlementResponseData.d.ts +1 -0
- package/api/types/PlanGroupPlanDetailResponseData.d.ts +2 -0
- package/api/types/PlanTraitResponseData.d.ts +16 -0
- package/api/types/PlanTraitResponseData.js +5 -0
- package/api/types/PreviewSubscriptionChangeResponseData.d.ts +3 -0
- package/api/types/PreviewSubscriptionFinanceResponseData.d.ts +15 -0
- package/api/types/PreviewSubscriptionFinanceResponseData.js +5 -0
- package/api/types/PreviewSubscriptionUpcomingInvoiceLineItems.d.ts +10 -0
- package/api/types/PreviewSubscriptionUpcomingInvoiceLineItems.js +5 -0
- package/api/types/QuickstartResp.d.ts +6 -0
- package/api/types/QuickstartResp.js +5 -0
- package/api/types/UpsertCompanyRequestBody.d.ts +1 -0
- package/api/types/UpsertTraitRequestBody.d.ts +1 -1
- package/api/types/UpsertUserRequestBody.d.ts +7 -2
- package/api/types/UpsertUserSubRequestBody.d.ts +4 -1
- package/api/types/UsageBasedEntitlementRequestBody.d.ts +6 -0
- package/api/types/WebhookResponseData.d.ts +2 -0
- package/api/types/index.d.ts +7 -0
- package/api/types/index.js +7 -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 +3 -0
- package/dist/Client.js +13 -8
- 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 +3 -1
- package/dist/api/resources/accesstokens/client/Client.js +30 -12
- 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 +651 -259
- 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 +4 -0
- 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/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/ListBillingProductsParams.d.ts +4 -0
- package/{api/resources/billing/types/ListCustomersParams.d.ts → dist/api/resources/billing/types/ListCustomersWithSubscriptionsParams.d.ts} +2 -1
- package/dist/api/resources/billing/types/ListCustomersWithSubscriptionsParams.js +5 -0
- package/{api/resources/billing/types/ListCustomersResponse.d.ts → dist/api/resources/billing/types/ListCustomersWithSubscriptionsResponse.d.ts} +2 -2
- package/dist/api/resources/billing/types/ListCustomersWithSubscriptionsResponse.js +5 -0
- package/dist/api/resources/billing/types/ListProductPricesParams.d.ts +4 -0
- package/dist/api/resources/billing/types/index.d.ts +3 -2
- package/dist/api/resources/billing/types/index.js +3 -2
- package/dist/api/resources/checkout/client/Client.d.ts +11 -4
- package/dist/api/resources/checkout/client/Client.js +113 -50
- package/dist/api/resources/companies/client/Client.d.ts +95 -37
- package/dist/api/resources/companies/client/Client.js +903 -391
- package/dist/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +4 -0
- package/dist/api/resources/companies/client/requests/ListCompaniesRequest.d.ts +4 -0
- package/dist/api/resources/companies/client/requests/LookupCompanyRequest.d.ts +2 -4
- package/dist/api/resources/companies/client/requests/LookupUserRequest.d.ts +2 -4
- package/dist/api/resources/companies/types/CountCompaniesParams.d.ts +2 -0
- package/dist/api/resources/companies/types/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/components/client/Client.d.ts +18 -7
- package/dist/api/resources/components/client/Client.js +188 -89
- 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 +53 -22
- package/dist/api/resources/entitlements/client/Client.js +534 -239
- package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +6 -0
- package/dist/api/resources/entitlements/client/requests/GetFeatureUsageByCompanyRequest.d.ts +2 -4
- package/dist/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +6 -0
- package/dist/api/resources/entitlements/types/GetFeatureUsageByCompanyParams.d.ts +1 -1
- package/dist/api/resources/events/client/Client.d.ts +16 -6
- package/dist/api/resources/events/client/Client.js +164 -74
- package/dist/api/resources/features/client/Client.d.ts +52 -19
- package/dist/api/resources/features/client/Client.js +533 -236
- package/dist/api/resources/index.d.ts +3 -0
- package/dist/api/resources/index.js +4 -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/plans/client/Client.d.ts +124 -11
- package/dist/api/resources/plans/client/Client.js +1010 -171
- package/dist/api/resources/plans/client/requests/CountPlanTraitsRequest.d.ts +20 -0
- package/dist/api/resources/plans/client/requests/CountPlanTraitsRequest.js +5 -0
- package/dist/api/resources/plans/client/requests/CreatePlanTraitRequestBody.d.ts +16 -0
- package/dist/api/resources/plans/client/requests/CreatePlanTraitRequestBody.js +5 -0
- package/dist/api/resources/plans/client/requests/ListPlanTraitsRequest.d.ts +20 -0
- package/dist/api/resources/plans/client/requests/ListPlanTraitsRequest.js +5 -0
- package/dist/api/resources/plans/client/requests/UpdatePlanTraitRequestBody.d.ts +14 -0
- package/dist/api/resources/plans/client/requests/UpdatePlanTraitRequestBody.js +5 -0
- package/dist/api/resources/plans/client/requests/UpsertBillingProductRequestBody.d.ts +2 -0
- package/dist/api/resources/plans/client/requests/index.d.ts +4 -0
- package/dist/api/resources/plans/types/CountPlanTraitsParams.d.ts +15 -0
- package/dist/api/resources/plans/types/CountPlanTraitsParams.js +5 -0
- package/dist/api/resources/plans/types/CountPlanTraitsResponse.d.ts +9 -0
- package/dist/api/resources/plans/types/CountPlanTraitsResponse.js +5 -0
- package/dist/api/resources/plans/types/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/index.d.ts +8 -0
- package/dist/api/resources/plans/types/index.js +8 -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/BillingPriceResponseData.d.ts +2 -0
- package/dist/api/types/BillingPriceView.d.ts +7 -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 +2 -0
- package/dist/api/types/BillingProductPriceResponseData.d.ts +3 -0
- package/dist/api/types/BillingProductPriceTierResponseData.d.ts +9 -0
- package/dist/api/types/BillingProductPriceTierResponseData.js +5 -0
- package/dist/api/types/BillingProductPricing.d.ts +2 -0
- package/dist/api/types/BillingProductResponseData.d.ts +2 -0
- package/dist/api/types/CheckFlagResponseData.d.ts +2 -0
- package/dist/api/types/CompanyDetailResponseData.d.ts +1 -0
- package/dist/api/types/CompanyPlanDetailResponseData.d.ts +2 -0
- package/dist/api/types/CompanyPlanWithBillingSubView.d.ts +2 -0
- package/dist/api/types/CreateBillingPriceTierRequestBody.d.ts +1 -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/PlanDetailResponseData.d.ts +2 -0
- package/dist/api/types/PlanEntitlementResponseData.d.ts +1 -0
- package/dist/api/types/PlanGroupPlanDetailResponseData.d.ts +2 -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 +3 -0
- package/dist/api/types/PreviewSubscriptionFinanceResponseData.d.ts +15 -0
- package/dist/api/types/PreviewSubscriptionFinanceResponseData.js +5 -0
- package/dist/api/types/PreviewSubscriptionUpcomingInvoiceLineItems.d.ts +10 -0
- package/dist/api/types/PreviewSubscriptionUpcomingInvoiceLineItems.js +5 -0
- package/dist/api/types/QuickstartResp.d.ts +6 -0
- package/dist/api/types/QuickstartResp.js +5 -0
- package/dist/api/types/UpsertCompanyRequestBody.d.ts +1 -0
- package/dist/api/types/UpsertTraitRequestBody.d.ts +1 -1
- package/dist/api/types/UpsertUserRequestBody.d.ts +7 -2
- package/dist/api/types/UpsertUserSubRequestBody.d.ts +4 -1
- package/dist/api/types/UsageBasedEntitlementRequestBody.d.ts +6 -0
- package/dist/api/types/WebhookResponseData.d.ts +2 -0
- package/dist/api/types/index.d.ts +7 -0
- package/dist/api/types/index.js +7 -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/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 +4 -0
- package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.js +4 -0
- 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/ListBillingProductsParams.d.ts +2 -0
- package/dist/serialization/resources/billing/types/ListBillingProductsParams.js +2 -0
- package/dist/serialization/resources/billing/types/{ListCustomersParams.d.ts → ListCustomersWithSubscriptionsParams.d.ts} +3 -2
- package/dist/serialization/resources/billing/types/{ListCustomersParams.js → ListCustomersWithSubscriptionsParams.js} +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/index.d.ts +3 -2
- package/dist/serialization/resources/billing/types/index.js +3 -2
- 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/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/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/CreatePlanEntitlementRequestBody.d.ts +6 -0
- package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +6 -0
- package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +6 -0
- package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +6 -0
- 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/index.d.ts +3 -0
- package/dist/serialization/resources/index.js +4 -1
- 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 +2 -0
- package/dist/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.js +2 -0
- 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/index.d.ts +8 -0
- package/dist/serialization/resources/plans/types/index.js +8 -0
- package/dist/serialization/resources/webhooks/client/requests/CreateWebhookRequestBody.d.ts +2 -0
- package/dist/serialization/resources/webhooks/client/requests/CreateWebhookRequestBody.js +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/BillingPriceResponseData.d.ts +2 -0
- package/dist/serialization/types/BillingPriceResponseData.js +2 -0
- package/dist/serialization/types/BillingPriceView.d.ts +7 -0
- package/dist/serialization/types/BillingPriceView.js +7 -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 +2 -0
- package/dist/serialization/types/BillingProductPlanResponseData.js +2 -0
- package/dist/serialization/types/BillingProductPriceResponseData.d.ts +3 -0
- package/dist/serialization/types/BillingProductPriceResponseData.js +3 -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/CheckFlagResponseData.d.ts +1 -0
- package/dist/serialization/types/CheckFlagResponseData.js +1 -0
- package/dist/serialization/types/CompanyDetailResponseData.d.ts +2 -1
- package/dist/serialization/types/CompanyDetailResponseData.js +2 -1
- package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +2 -0
- package/dist/serialization/types/CompanyPlanDetailResponseData.js +2 -0
- package/dist/serialization/types/CompanyPlanWithBillingSubView.d.ts +2 -0
- package/dist/serialization/types/CompanyPlanWithBillingSubView.js +2 -0
- package/dist/serialization/types/CreateBillingPriceTierRequestBody.d.ts +1 -0
- package/dist/serialization/types/CreateBillingPriceTierRequestBody.js +1 -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/PlanDetailResponseData.d.ts +2 -0
- package/dist/serialization/types/PlanDetailResponseData.js +2 -0
- package/dist/serialization/types/PlanEntitlementResponseData.d.ts +2 -0
- package/dist/serialization/types/PlanEntitlementResponseData.js +2 -0
- package/dist/serialization/types/PlanGroupPlanDetailResponseData.d.ts +2 -0
- package/dist/serialization/types/PlanGroupPlanDetailResponseData.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 +4 -0
- package/dist/serialization/types/PreviewSubscriptionChangeResponseData.js +4 -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/UpsertUserRequestBody.d.ts +2 -0
- package/dist/serialization/types/UpsertUserRequestBody.js +2 -0
- package/dist/serialization/types/UpsertUserSubRequestBody.d.ts +1 -0
- package/dist/serialization/types/UpsertUserSubRequestBody.js +1 -0
- package/dist/serialization/types/UsageBasedEntitlementRequestBody.d.ts +6 -0
- package/dist/serialization/types/UsageBasedEntitlementRequestBody.js +6 -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 +7 -0
- package/dist/serialization/types/index.js +7 -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 +3 -2
- package/reference.md +412 -15
- 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 +4 -0
- package/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.js +4 -0
- 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/ListBillingProductsParams.d.ts +2 -0
- package/serialization/resources/billing/types/ListBillingProductsParams.js +2 -0
- package/serialization/resources/billing/types/{ListCustomersParams.d.ts → ListCustomersWithSubscriptionsParams.d.ts} +3 -2
- package/serialization/resources/billing/types/{ListCustomersParams.js → 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/index.d.ts +3 -2
- package/serialization/resources/billing/types/index.js +3 -2
- package/serialization/resources/companies/types/CountCompaniesParams.d.ts +1 -0
- package/serialization/resources/companies/types/CountCompaniesParams.js +1 -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/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/CreatePlanEntitlementRequestBody.d.ts +6 -0
- package/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +6 -0
- package/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +6 -0
- package/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +6 -0
- package/serialization/resources/entitlements/types/GetFeatureUsageByCompanyParams.d.ts +1 -1
- package/serialization/resources/entitlements/types/GetFeatureUsageByCompanyParams.js +1 -1
- package/serialization/resources/index.d.ts +3 -0
- package/serialization/resources/index.js +4 -1
- 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 +2 -0
- package/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.js +2 -0
- 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/index.d.ts +8 -0
- package/serialization/resources/plans/types/index.js +8 -0
- package/serialization/resources/webhooks/client/requests/CreateWebhookRequestBody.d.ts +2 -0
- package/serialization/resources/webhooks/client/requests/CreateWebhookRequestBody.js +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/BillingPriceResponseData.d.ts +2 -0
- package/serialization/types/BillingPriceResponseData.js +2 -0
- package/serialization/types/BillingPriceView.d.ts +7 -0
- package/serialization/types/BillingPriceView.js +7 -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 +2 -0
- package/serialization/types/BillingProductPlanResponseData.js +2 -0
- package/serialization/types/BillingProductPriceResponseData.d.ts +3 -0
- package/serialization/types/BillingProductPriceResponseData.js +3 -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/CheckFlagResponseData.d.ts +1 -0
- package/serialization/types/CheckFlagResponseData.js +1 -0
- package/serialization/types/CompanyDetailResponseData.d.ts +2 -1
- package/serialization/types/CompanyDetailResponseData.js +2 -1
- package/serialization/types/CompanyPlanDetailResponseData.d.ts +2 -0
- package/serialization/types/CompanyPlanDetailResponseData.js +2 -0
- package/serialization/types/CompanyPlanWithBillingSubView.d.ts +2 -0
- package/serialization/types/CompanyPlanWithBillingSubView.js +2 -0
- package/serialization/types/CreateBillingPriceTierRequestBody.d.ts +1 -0
- package/serialization/types/CreateBillingPriceTierRequestBody.js +1 -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/PlanDetailResponseData.d.ts +2 -0
- package/serialization/types/PlanDetailResponseData.js +2 -0
- package/serialization/types/PlanEntitlementResponseData.d.ts +2 -0
- package/serialization/types/PlanEntitlementResponseData.js +2 -0
- package/serialization/types/PlanGroupPlanDetailResponseData.d.ts +2 -0
- package/serialization/types/PlanGroupPlanDetailResponseData.js +2 -0
- package/serialization/types/PlanTraitResponseData.d.ts +19 -0
- package/serialization/types/PlanTraitResponseData.js +50 -0
- package/serialization/types/PreviewSubscriptionChangeResponseData.d.ts +4 -0
- package/serialization/types/PreviewSubscriptionChangeResponseData.js +4 -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/UpsertUserRequestBody.d.ts +2 -0
- package/serialization/types/UpsertUserRequestBody.js +2 -0
- package/serialization/types/UpsertUserSubRequestBody.d.ts +1 -0
- package/serialization/types/UpsertUserSubRequestBody.js +1 -0
- package/serialization/types/UsageBasedEntitlementRequestBody.d.ts +6 -0
- package/serialization/types/UsageBasedEntitlementRequestBody.js +6 -0
- package/serialization/types/WebhookResponseData.d.ts +2 -0
- package/serialization/types/WebhookResponseData.js +2 -0
- package/serialization/types/index.d.ts +7 -0
- package/serialization/types/index.js +7 -0
- /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/dataexports/client/requests/CreateDataExportRequestBody.js} +0 -0
- /package/{dist/api/resources/billing/types/ListCustomersResponse.js → api/resources/dataexports/types/CreateDataExportResponse.js} +0 -0
|
@@ -16,6 +16,8 @@ export * as components from "./components";
|
|
|
16
16
|
export * from "./components/types";
|
|
17
17
|
export * as crm from "./crm";
|
|
18
18
|
export * from "./crm/types";
|
|
19
|
+
export * as dataexports from "./dataexports";
|
|
20
|
+
export * from "./dataexports/types";
|
|
19
21
|
export * as events from "./events";
|
|
20
22
|
export * from "./events/types";
|
|
21
23
|
export * as plangroups from "./plangroups";
|
|
@@ -33,6 +35,7 @@ export * from "./entitlements/client/requests";
|
|
|
33
35
|
export * from "./plans/client/requests";
|
|
34
36
|
export * from "./components/client/requests";
|
|
35
37
|
export * from "./crm/client/requests";
|
|
38
|
+
export * from "./dataexports/client/requests";
|
|
36
39
|
export * from "./events/client/requests";
|
|
37
40
|
export * from "./plangroups/client/requests";
|
|
38
41
|
export * from "./accesstokens/client/requests";
|
|
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.webhooks = exports.accesstokens = exports.plangroups = exports.events = exports.crm = exports.components = exports.plans = exports.entitlements = exports.companies = exports.checkout = exports.billing = exports.features = exports.accounts = void 0;
|
|
39
|
+
exports.webhooks = exports.accesstokens = exports.plangroups = exports.events = exports.dataexports = exports.crm = exports.components = exports.plans = exports.entitlements = exports.companies = exports.checkout = exports.billing = exports.features = exports.accounts = void 0;
|
|
40
40
|
exports.accounts = __importStar(require("./accounts"));
|
|
41
41
|
__exportStar(require("./accounts/types"), exports);
|
|
42
42
|
exports.features = __importStar(require("./features"));
|
|
@@ -55,6 +55,8 @@ exports.components = __importStar(require("./components"));
|
|
|
55
55
|
__exportStar(require("./components/types"), exports);
|
|
56
56
|
exports.crm = __importStar(require("./crm"));
|
|
57
57
|
__exportStar(require("./crm/types"), exports);
|
|
58
|
+
exports.dataexports = __importStar(require("./dataexports"));
|
|
59
|
+
__exportStar(require("./dataexports/types"), exports);
|
|
58
60
|
exports.events = __importStar(require("./events"));
|
|
59
61
|
__exportStar(require("./events/types"), exports);
|
|
60
62
|
exports.plangroups = __importStar(require("./plangroups"));
|
|
@@ -72,6 +74,7 @@ __exportStar(require("./entitlements/client/requests"), exports);
|
|
|
72
74
|
__exportStar(require("./plans/client/requests"), exports);
|
|
73
75
|
__exportStar(require("./components/client/requests"), exports);
|
|
74
76
|
__exportStar(require("./crm/client/requests"), exports);
|
|
77
|
+
__exportStar(require("./dataexports/client/requests"), exports);
|
|
75
78
|
__exportStar(require("./events/client/requests"), exports);
|
|
76
79
|
__exportStar(require("./plangroups/client/requests"), exports);
|
|
77
80
|
__exportStar(require("./accesstokens/client/requests"), exports);
|
|
@@ -37,7 +37,8 @@ export declare class Plangroups {
|
|
|
37
37
|
* @example
|
|
38
38
|
* await client.plangroups.getPlanGroup()
|
|
39
39
|
*/
|
|
40
|
-
getPlanGroup(requestOptions?: Plangroups.RequestOptions):
|
|
40
|
+
getPlanGroup(requestOptions?: Plangroups.RequestOptions): core.HttpResponsePromise<Schematic.GetPlanGroupResponse>;
|
|
41
|
+
private __getPlanGroup;
|
|
41
42
|
/**
|
|
42
43
|
* @param {Schematic.CreatePlanGroupRequestBody} request
|
|
43
44
|
* @param {Plangroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -45,6 +46,7 @@ export declare class Plangroups {
|
|
|
45
46
|
* @throws {@link Schematic.BadRequestError}
|
|
46
47
|
* @throws {@link Schematic.UnauthorizedError}
|
|
47
48
|
* @throws {@link Schematic.ForbiddenError}
|
|
49
|
+
* @throws {@link Schematic.NotFoundError}
|
|
48
50
|
* @throws {@link Schematic.InternalServerError}
|
|
49
51
|
*
|
|
50
52
|
* @example
|
|
@@ -55,7 +57,8 @@ export declare class Plangroups {
|
|
|
55
57
|
* }]
|
|
56
58
|
* })
|
|
57
59
|
*/
|
|
58
|
-
createPlanGroup(request: Schematic.CreatePlanGroupRequestBody, requestOptions?: Plangroups.RequestOptions):
|
|
60
|
+
createPlanGroup(request: Schematic.CreatePlanGroupRequestBody, requestOptions?: Plangroups.RequestOptions): core.HttpResponsePromise<Schematic.CreatePlanGroupResponse>;
|
|
61
|
+
private __createPlanGroup;
|
|
59
62
|
/**
|
|
60
63
|
* @param {string} planGroupId - plan_group_id
|
|
61
64
|
* @param {Schematic.UpdatePlanGroupRequestBody} request
|
|
@@ -75,7 +78,8 @@ export declare class Plangroups {
|
|
|
75
78
|
* }]
|
|
76
79
|
* })
|
|
77
80
|
*/
|
|
78
|
-
updatePlanGroup(planGroupId: string, request: Schematic.UpdatePlanGroupRequestBody, requestOptions?: Plangroups.RequestOptions):
|
|
81
|
+
updatePlanGroup(planGroupId: string, request: Schematic.UpdatePlanGroupRequestBody, requestOptions?: Plangroups.RequestOptions): core.HttpResponsePromise<Schematic.UpdatePlanGroupResponse>;
|
|
82
|
+
private __updatePlanGroup;
|
|
79
83
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
80
84
|
"X-Schematic-Api-Key": string;
|
|
81
85
|
}>;
|
|
@@ -71,12 +71,15 @@ class Plangroups {
|
|
|
71
71
|
* await client.plangroups.getPlanGroup()
|
|
72
72
|
*/
|
|
73
73
|
getPlanGroup(requestOptions) {
|
|
74
|
+
return core.HttpResponsePromise.fromPromise(this.__getPlanGroup(requestOptions));
|
|
75
|
+
}
|
|
76
|
+
__getPlanGroup(requestOptions) {
|
|
74
77
|
return __awaiter(this, void 0, void 0, function* () {
|
|
75
78
|
var _a, _b, _c;
|
|
76
79
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
77
80
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, "plan-groups"),
|
|
78
81
|
method: "GET",
|
|
79
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
82
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.11", "User-Agent": "@schematichq/schematic-typescript-node/1.1.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
80
83
|
contentType: "application/json",
|
|
81
84
|
requestType: "json",
|
|
82
85
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -84,13 +87,16 @@ class Plangroups {
|
|
|
84
87
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
85
88
|
});
|
|
86
89
|
if (_response.ok) {
|
|
87
|
-
return
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
90
|
+
return {
|
|
91
|
+
data: serializers.GetPlanGroupResponse.parseOrThrow(_response.body, {
|
|
92
|
+
unrecognizedObjectKeys: "passthrough",
|
|
93
|
+
allowUnrecognizedUnionMembers: true,
|
|
94
|
+
allowUnrecognizedEnumValues: true,
|
|
95
|
+
skipValidation: true,
|
|
96
|
+
breadcrumbsPrefix: ["response"],
|
|
97
|
+
}),
|
|
98
|
+
rawResponse: _response.rawResponse,
|
|
99
|
+
};
|
|
94
100
|
}
|
|
95
101
|
if (_response.error.reason === "status-code") {
|
|
96
102
|
switch (_response.error.statusCode) {
|
|
@@ -101,7 +107,7 @@ class Plangroups {
|
|
|
101
107
|
allowUnrecognizedEnumValues: true,
|
|
102
108
|
skipValidation: true,
|
|
103
109
|
breadcrumbsPrefix: ["response"],
|
|
104
|
-
}));
|
|
110
|
+
}), _response.rawResponse);
|
|
105
111
|
case 403:
|
|
106
112
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
107
113
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -109,7 +115,7 @@ class Plangroups {
|
|
|
109
115
|
allowUnrecognizedEnumValues: true,
|
|
110
116
|
skipValidation: true,
|
|
111
117
|
breadcrumbsPrefix: ["response"],
|
|
112
|
-
}));
|
|
118
|
+
}), _response.rawResponse);
|
|
113
119
|
case 404:
|
|
114
120
|
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
115
121
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -117,7 +123,7 @@ class Plangroups {
|
|
|
117
123
|
allowUnrecognizedEnumValues: true,
|
|
118
124
|
skipValidation: true,
|
|
119
125
|
breadcrumbsPrefix: ["response"],
|
|
120
|
-
}));
|
|
126
|
+
}), _response.rawResponse);
|
|
121
127
|
case 500:
|
|
122
128
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
123
129
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -125,11 +131,12 @@ class Plangroups {
|
|
|
125
131
|
allowUnrecognizedEnumValues: true,
|
|
126
132
|
skipValidation: true,
|
|
127
133
|
breadcrumbsPrefix: ["response"],
|
|
128
|
-
}));
|
|
134
|
+
}), _response.rawResponse);
|
|
129
135
|
default:
|
|
130
136
|
throw new errors.SchematicError({
|
|
131
137
|
statusCode: _response.error.statusCode,
|
|
132
138
|
body: _response.error.body,
|
|
139
|
+
rawResponse: _response.rawResponse,
|
|
133
140
|
});
|
|
134
141
|
}
|
|
135
142
|
}
|
|
@@ -138,12 +145,14 @@ class Plangroups {
|
|
|
138
145
|
throw new errors.SchematicError({
|
|
139
146
|
statusCode: _response.error.statusCode,
|
|
140
147
|
body: _response.error.rawBody,
|
|
148
|
+
rawResponse: _response.rawResponse,
|
|
141
149
|
});
|
|
142
150
|
case "timeout":
|
|
143
151
|
throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /plan-groups.");
|
|
144
152
|
case "unknown":
|
|
145
153
|
throw new errors.SchematicError({
|
|
146
154
|
message: _response.error.errorMessage,
|
|
155
|
+
rawResponse: _response.rawResponse,
|
|
147
156
|
});
|
|
148
157
|
}
|
|
149
158
|
});
|
|
@@ -155,6 +164,7 @@ class Plangroups {
|
|
|
155
164
|
* @throws {@link Schematic.BadRequestError}
|
|
156
165
|
* @throws {@link Schematic.UnauthorizedError}
|
|
157
166
|
* @throws {@link Schematic.ForbiddenError}
|
|
167
|
+
* @throws {@link Schematic.NotFoundError}
|
|
158
168
|
* @throws {@link Schematic.InternalServerError}
|
|
159
169
|
*
|
|
160
170
|
* @example
|
|
@@ -166,12 +176,15 @@ class Plangroups {
|
|
|
166
176
|
* })
|
|
167
177
|
*/
|
|
168
178
|
createPlanGroup(request, requestOptions) {
|
|
179
|
+
return core.HttpResponsePromise.fromPromise(this.__createPlanGroup(request, requestOptions));
|
|
180
|
+
}
|
|
181
|
+
__createPlanGroup(request, requestOptions) {
|
|
169
182
|
return __awaiter(this, void 0, void 0, function* () {
|
|
170
183
|
var _a, _b, _c;
|
|
171
184
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
172
185
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, "plan-groups"),
|
|
173
186
|
method: "POST",
|
|
174
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
187
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.11", "User-Agent": "@schematichq/schematic-typescript-node/1.1.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
175
188
|
contentType: "application/json",
|
|
176
189
|
requestType: "json",
|
|
177
190
|
body: serializers.CreatePlanGroupRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -180,13 +193,16 @@ class Plangroups {
|
|
|
180
193
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
181
194
|
});
|
|
182
195
|
if (_response.ok) {
|
|
183
|
-
return
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
196
|
+
return {
|
|
197
|
+
data: serializers.CreatePlanGroupResponse.parseOrThrow(_response.body, {
|
|
198
|
+
unrecognizedObjectKeys: "passthrough",
|
|
199
|
+
allowUnrecognizedUnionMembers: true,
|
|
200
|
+
allowUnrecognizedEnumValues: true,
|
|
201
|
+
skipValidation: true,
|
|
202
|
+
breadcrumbsPrefix: ["response"],
|
|
203
|
+
}),
|
|
204
|
+
rawResponse: _response.rawResponse,
|
|
205
|
+
};
|
|
190
206
|
}
|
|
191
207
|
if (_response.error.reason === "status-code") {
|
|
192
208
|
switch (_response.error.statusCode) {
|
|
@@ -197,7 +213,7 @@ class Plangroups {
|
|
|
197
213
|
allowUnrecognizedEnumValues: true,
|
|
198
214
|
skipValidation: true,
|
|
199
215
|
breadcrumbsPrefix: ["response"],
|
|
200
|
-
}));
|
|
216
|
+
}), _response.rawResponse);
|
|
201
217
|
case 401:
|
|
202
218
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
203
219
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -205,7 +221,7 @@ class Plangroups {
|
|
|
205
221
|
allowUnrecognizedEnumValues: true,
|
|
206
222
|
skipValidation: true,
|
|
207
223
|
breadcrumbsPrefix: ["response"],
|
|
208
|
-
}));
|
|
224
|
+
}), _response.rawResponse);
|
|
209
225
|
case 403:
|
|
210
226
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
211
227
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -213,7 +229,15 @@ class Plangroups {
|
|
|
213
229
|
allowUnrecognizedEnumValues: true,
|
|
214
230
|
skipValidation: true,
|
|
215
231
|
breadcrumbsPrefix: ["response"],
|
|
216
|
-
}));
|
|
232
|
+
}), _response.rawResponse);
|
|
233
|
+
case 404:
|
|
234
|
+
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
235
|
+
unrecognizedObjectKeys: "passthrough",
|
|
236
|
+
allowUnrecognizedUnionMembers: true,
|
|
237
|
+
allowUnrecognizedEnumValues: true,
|
|
238
|
+
skipValidation: true,
|
|
239
|
+
breadcrumbsPrefix: ["response"],
|
|
240
|
+
}), _response.rawResponse);
|
|
217
241
|
case 500:
|
|
218
242
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
219
243
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -221,11 +245,12 @@ class Plangroups {
|
|
|
221
245
|
allowUnrecognizedEnumValues: true,
|
|
222
246
|
skipValidation: true,
|
|
223
247
|
breadcrumbsPrefix: ["response"],
|
|
224
|
-
}));
|
|
248
|
+
}), _response.rawResponse);
|
|
225
249
|
default:
|
|
226
250
|
throw new errors.SchematicError({
|
|
227
251
|
statusCode: _response.error.statusCode,
|
|
228
252
|
body: _response.error.body,
|
|
253
|
+
rawResponse: _response.rawResponse,
|
|
229
254
|
});
|
|
230
255
|
}
|
|
231
256
|
}
|
|
@@ -234,12 +259,14 @@ class Plangroups {
|
|
|
234
259
|
throw new errors.SchematicError({
|
|
235
260
|
statusCode: _response.error.statusCode,
|
|
236
261
|
body: _response.error.rawBody,
|
|
262
|
+
rawResponse: _response.rawResponse,
|
|
237
263
|
});
|
|
238
264
|
case "timeout":
|
|
239
265
|
throw new errors.SchematicTimeoutError("Timeout exceeded when calling POST /plan-groups.");
|
|
240
266
|
case "unknown":
|
|
241
267
|
throw new errors.SchematicError({
|
|
242
268
|
message: _response.error.errorMessage,
|
|
269
|
+
rawResponse: _response.rawResponse,
|
|
243
270
|
});
|
|
244
271
|
}
|
|
245
272
|
});
|
|
@@ -264,12 +291,15 @@ class Plangroups {
|
|
|
264
291
|
* })
|
|
265
292
|
*/
|
|
266
293
|
updatePlanGroup(planGroupId, request, requestOptions) {
|
|
294
|
+
return core.HttpResponsePromise.fromPromise(this.__updatePlanGroup(planGroupId, request, requestOptions));
|
|
295
|
+
}
|
|
296
|
+
__updatePlanGroup(planGroupId, request, requestOptions) {
|
|
267
297
|
return __awaiter(this, void 0, void 0, function* () {
|
|
268
298
|
var _a, _b, _c;
|
|
269
299
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
270
300
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, `plan-groups/${encodeURIComponent(planGroupId)}`),
|
|
271
301
|
method: "PUT",
|
|
272
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
302
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.11", "User-Agent": "@schematichq/schematic-typescript-node/1.1.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
273
303
|
contentType: "application/json",
|
|
274
304
|
requestType: "json",
|
|
275
305
|
body: serializers.UpdatePlanGroupRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -278,13 +308,16 @@ class Plangroups {
|
|
|
278
308
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
279
309
|
});
|
|
280
310
|
if (_response.ok) {
|
|
281
|
-
return
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
311
|
+
return {
|
|
312
|
+
data: serializers.UpdatePlanGroupResponse.parseOrThrow(_response.body, {
|
|
313
|
+
unrecognizedObjectKeys: "passthrough",
|
|
314
|
+
allowUnrecognizedUnionMembers: true,
|
|
315
|
+
allowUnrecognizedEnumValues: true,
|
|
316
|
+
skipValidation: true,
|
|
317
|
+
breadcrumbsPrefix: ["response"],
|
|
318
|
+
}),
|
|
319
|
+
rawResponse: _response.rawResponse,
|
|
320
|
+
};
|
|
288
321
|
}
|
|
289
322
|
if (_response.error.reason === "status-code") {
|
|
290
323
|
switch (_response.error.statusCode) {
|
|
@@ -295,7 +328,7 @@ class Plangroups {
|
|
|
295
328
|
allowUnrecognizedEnumValues: true,
|
|
296
329
|
skipValidation: true,
|
|
297
330
|
breadcrumbsPrefix: ["response"],
|
|
298
|
-
}));
|
|
331
|
+
}), _response.rawResponse);
|
|
299
332
|
case 401:
|
|
300
333
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
301
334
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -303,7 +336,7 @@ class Plangroups {
|
|
|
303
336
|
allowUnrecognizedEnumValues: true,
|
|
304
337
|
skipValidation: true,
|
|
305
338
|
breadcrumbsPrefix: ["response"],
|
|
306
|
-
}));
|
|
339
|
+
}), _response.rawResponse);
|
|
307
340
|
case 403:
|
|
308
341
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
309
342
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -311,7 +344,7 @@ class Plangroups {
|
|
|
311
344
|
allowUnrecognizedEnumValues: true,
|
|
312
345
|
skipValidation: true,
|
|
313
346
|
breadcrumbsPrefix: ["response"],
|
|
314
|
-
}));
|
|
347
|
+
}), _response.rawResponse);
|
|
315
348
|
case 404:
|
|
316
349
|
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
317
350
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -319,7 +352,7 @@ class Plangroups {
|
|
|
319
352
|
allowUnrecognizedEnumValues: true,
|
|
320
353
|
skipValidation: true,
|
|
321
354
|
breadcrumbsPrefix: ["response"],
|
|
322
|
-
}));
|
|
355
|
+
}), _response.rawResponse);
|
|
323
356
|
case 500:
|
|
324
357
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
325
358
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -327,11 +360,12 @@ class Plangroups {
|
|
|
327
360
|
allowUnrecognizedEnumValues: true,
|
|
328
361
|
skipValidation: true,
|
|
329
362
|
breadcrumbsPrefix: ["response"],
|
|
330
|
-
}));
|
|
363
|
+
}), _response.rawResponse);
|
|
331
364
|
default:
|
|
332
365
|
throw new errors.SchematicError({
|
|
333
366
|
statusCode: _response.error.statusCode,
|
|
334
367
|
body: _response.error.body,
|
|
368
|
+
rawResponse: _response.rawResponse,
|
|
335
369
|
});
|
|
336
370
|
}
|
|
337
371
|
}
|
|
@@ -340,12 +374,14 @@ class Plangroups {
|
|
|
340
374
|
throw new errors.SchematicError({
|
|
341
375
|
statusCode: _response.error.statusCode,
|
|
342
376
|
body: _response.error.rawBody,
|
|
377
|
+
rawResponse: _response.rawResponse,
|
|
343
378
|
});
|
|
344
379
|
case "timeout":
|
|
345
380
|
throw new errors.SchematicTimeoutError("Timeout exceeded when calling PUT /plan-groups/{plan_group_id}.");
|
|
346
381
|
case "unknown":
|
|
347
382
|
throw new errors.SchematicError({
|
|
348
383
|
message: _response.error.errorMessage,
|
|
384
|
+
rawResponse: _response.rawResponse,
|
|
349
385
|
});
|
|
350
386
|
}
|
|
351
387
|
});
|
|
@@ -42,7 +42,8 @@ export declare class Plans {
|
|
|
42
42
|
* addOnIds: ["add_on_ids"]
|
|
43
43
|
* })
|
|
44
44
|
*/
|
|
45
|
-
updateCompanyPlans(companyPlanId: string, request: Schematic.UpdateCompanyPlansRequestBody, requestOptions?: Plans.RequestOptions):
|
|
45
|
+
updateCompanyPlans(companyPlanId: string, request: Schematic.UpdateCompanyPlansRequestBody, requestOptions?: Plans.RequestOptions): core.HttpResponsePromise<Schematic.UpdateCompanyPlansResponse>;
|
|
46
|
+
private __updateCompanyPlans;
|
|
46
47
|
/**
|
|
47
48
|
* @param {string} planAudienceId - plan_audience_id
|
|
48
49
|
* @param {Plans.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -55,7 +56,8 @@ export declare class Plans {
|
|
|
55
56
|
* @example
|
|
56
57
|
* await client.plans.getAudience("plan_audience_id")
|
|
57
58
|
*/
|
|
58
|
-
getAudience(planAudienceId: string, requestOptions?: Plans.RequestOptions):
|
|
59
|
+
getAudience(planAudienceId: string, requestOptions?: Plans.RequestOptions): core.HttpResponsePromise<Schematic.GetAudienceResponse>;
|
|
60
|
+
private __getAudience;
|
|
59
61
|
/**
|
|
60
62
|
* @param {string} planAudienceId - plan_audience_id
|
|
61
63
|
* @param {Schematic.UpdateAudienceRequestBody} request
|
|
@@ -83,7 +85,8 @@ export declare class Plans {
|
|
|
83
85
|
* }]
|
|
84
86
|
* })
|
|
85
87
|
*/
|
|
86
|
-
updateAudience(planAudienceId: string, request: Schematic.UpdateAudienceRequestBody, requestOptions?: Plans.RequestOptions):
|
|
88
|
+
updateAudience(planAudienceId: string, request: Schematic.UpdateAudienceRequestBody, requestOptions?: Plans.RequestOptions): core.HttpResponsePromise<Schematic.UpdateAudienceResponse>;
|
|
89
|
+
private __updateAudience;
|
|
87
90
|
/**
|
|
88
91
|
* @param {string} planAudienceId - plan_audience_id
|
|
89
92
|
* @param {Plans.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -91,12 +94,111 @@ export declare class Plans {
|
|
|
91
94
|
* @throws {@link Schematic.BadRequestError}
|
|
92
95
|
* @throws {@link Schematic.UnauthorizedError}
|
|
93
96
|
* @throws {@link Schematic.ForbiddenError}
|
|
97
|
+
* @throws {@link Schematic.NotFoundError}
|
|
94
98
|
* @throws {@link Schematic.InternalServerError}
|
|
95
99
|
*
|
|
96
100
|
* @example
|
|
97
101
|
* await client.plans.deleteAudience("plan_audience_id")
|
|
98
102
|
*/
|
|
99
|
-
deleteAudience(planAudienceId: string, requestOptions?: Plans.RequestOptions):
|
|
103
|
+
deleteAudience(planAudienceId: string, requestOptions?: Plans.RequestOptions): core.HttpResponsePromise<Schematic.DeleteAudienceResponse>;
|
|
104
|
+
private __deleteAudience;
|
|
105
|
+
/**
|
|
106
|
+
* @param {Schematic.ListPlanTraitsRequest} request
|
|
107
|
+
* @param {Plans.RequestOptions} requestOptions - Request-specific configuration.
|
|
108
|
+
*
|
|
109
|
+
* @throws {@link Schematic.BadRequestError}
|
|
110
|
+
* @throws {@link Schematic.UnauthorizedError}
|
|
111
|
+
* @throws {@link Schematic.ForbiddenError}
|
|
112
|
+
* @throws {@link Schematic.NotFoundError}
|
|
113
|
+
* @throws {@link Schematic.InternalServerError}
|
|
114
|
+
*
|
|
115
|
+
* @example
|
|
116
|
+
* await client.plans.listPlanTraits()
|
|
117
|
+
*/
|
|
118
|
+
listPlanTraits(request?: Schematic.ListPlanTraitsRequest, requestOptions?: Plans.RequestOptions): core.HttpResponsePromise<Schematic.ListPlanTraitsResponse>;
|
|
119
|
+
private __listPlanTraits;
|
|
120
|
+
/**
|
|
121
|
+
* @param {Schematic.CreatePlanTraitRequestBody} request
|
|
122
|
+
* @param {Plans.RequestOptions} requestOptions - Request-specific configuration.
|
|
123
|
+
*
|
|
124
|
+
* @throws {@link Schematic.BadRequestError}
|
|
125
|
+
* @throws {@link Schematic.UnauthorizedError}
|
|
126
|
+
* @throws {@link Schematic.ForbiddenError}
|
|
127
|
+
* @throws {@link Schematic.NotFoundError}
|
|
128
|
+
* @throws {@link Schematic.InternalServerError}
|
|
129
|
+
*
|
|
130
|
+
* @example
|
|
131
|
+
* await client.plans.createPlanTrait({
|
|
132
|
+
* planId: "plan_id",
|
|
133
|
+
* traitId: "trait_id",
|
|
134
|
+
* traitValue: "trait_value"
|
|
135
|
+
* })
|
|
136
|
+
*/
|
|
137
|
+
createPlanTrait(request: Schematic.CreatePlanTraitRequestBody, requestOptions?: Plans.RequestOptions): core.HttpResponsePromise<Schematic.CreatePlanTraitResponse>;
|
|
138
|
+
private __createPlanTrait;
|
|
139
|
+
/**
|
|
140
|
+
* @param {string} planTraitId - plan_trait_id
|
|
141
|
+
* @param {Plans.RequestOptions} requestOptions - Request-specific configuration.
|
|
142
|
+
*
|
|
143
|
+
* @throws {@link Schematic.UnauthorizedError}
|
|
144
|
+
* @throws {@link Schematic.ForbiddenError}
|
|
145
|
+
* @throws {@link Schematic.NotFoundError}
|
|
146
|
+
* @throws {@link Schematic.InternalServerError}
|
|
147
|
+
*
|
|
148
|
+
* @example
|
|
149
|
+
* await client.plans.getPlanTrait("plan_trait_id")
|
|
150
|
+
*/
|
|
151
|
+
getPlanTrait(planTraitId: string, requestOptions?: Plans.RequestOptions): core.HttpResponsePromise<Schematic.GetPlanTraitResponse>;
|
|
152
|
+
private __getPlanTrait;
|
|
153
|
+
/**
|
|
154
|
+
* @param {string} planTraitId - plan_trait_id
|
|
155
|
+
* @param {Schematic.UpdatePlanTraitRequestBody} request
|
|
156
|
+
* @param {Plans.RequestOptions} requestOptions - Request-specific configuration.
|
|
157
|
+
*
|
|
158
|
+
* @throws {@link Schematic.BadRequestError}
|
|
159
|
+
* @throws {@link Schematic.UnauthorizedError}
|
|
160
|
+
* @throws {@link Schematic.ForbiddenError}
|
|
161
|
+
* @throws {@link Schematic.NotFoundError}
|
|
162
|
+
* @throws {@link Schematic.InternalServerError}
|
|
163
|
+
*
|
|
164
|
+
* @example
|
|
165
|
+
* await client.plans.updatePlanTrait("plan_trait_id", {
|
|
166
|
+
* planId: "plan_id",
|
|
167
|
+
* traitValue: "trait_value"
|
|
168
|
+
* })
|
|
169
|
+
*/
|
|
170
|
+
updatePlanTrait(planTraitId: string, request: Schematic.UpdatePlanTraitRequestBody, requestOptions?: Plans.RequestOptions): core.HttpResponsePromise<Schematic.UpdatePlanTraitResponse>;
|
|
171
|
+
private __updatePlanTrait;
|
|
172
|
+
/**
|
|
173
|
+
* @param {string} planTraitId - plan_trait_id
|
|
174
|
+
* @param {Plans.RequestOptions} requestOptions - Request-specific configuration.
|
|
175
|
+
*
|
|
176
|
+
* @throws {@link Schematic.BadRequestError}
|
|
177
|
+
* @throws {@link Schematic.UnauthorizedError}
|
|
178
|
+
* @throws {@link Schematic.ForbiddenError}
|
|
179
|
+
* @throws {@link Schematic.NotFoundError}
|
|
180
|
+
* @throws {@link Schematic.InternalServerError}
|
|
181
|
+
*
|
|
182
|
+
* @example
|
|
183
|
+
* await client.plans.deletePlanTrait("plan_trait_id")
|
|
184
|
+
*/
|
|
185
|
+
deletePlanTrait(planTraitId: string, requestOptions?: Plans.RequestOptions): core.HttpResponsePromise<Schematic.DeletePlanTraitResponse>;
|
|
186
|
+
private __deletePlanTrait;
|
|
187
|
+
/**
|
|
188
|
+
* @param {Schematic.CountPlanTraitsRequest} request
|
|
189
|
+
* @param {Plans.RequestOptions} requestOptions - Request-specific configuration.
|
|
190
|
+
*
|
|
191
|
+
* @throws {@link Schematic.BadRequestError}
|
|
192
|
+
* @throws {@link Schematic.UnauthorizedError}
|
|
193
|
+
* @throws {@link Schematic.ForbiddenError}
|
|
194
|
+
* @throws {@link Schematic.NotFoundError}
|
|
195
|
+
* @throws {@link Schematic.InternalServerError}
|
|
196
|
+
*
|
|
197
|
+
* @example
|
|
198
|
+
* await client.plans.countPlanTraits()
|
|
199
|
+
*/
|
|
200
|
+
countPlanTraits(request?: Schematic.CountPlanTraitsRequest, requestOptions?: Plans.RequestOptions): core.HttpResponsePromise<Schematic.CountPlanTraitsResponse>;
|
|
201
|
+
private __countPlanTraits;
|
|
100
202
|
/**
|
|
101
203
|
* @param {Schematic.ListPlansRequest} request
|
|
102
204
|
* @param {Plans.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -104,12 +206,14 @@ export declare class Plans {
|
|
|
104
206
|
* @throws {@link Schematic.BadRequestError}
|
|
105
207
|
* @throws {@link Schematic.UnauthorizedError}
|
|
106
208
|
* @throws {@link Schematic.ForbiddenError}
|
|
209
|
+
* @throws {@link Schematic.NotFoundError}
|
|
107
210
|
* @throws {@link Schematic.InternalServerError}
|
|
108
211
|
*
|
|
109
212
|
* @example
|
|
110
213
|
* await client.plans.listPlans()
|
|
111
214
|
*/
|
|
112
|
-
listPlans(request?: Schematic.ListPlansRequest, requestOptions?: Plans.RequestOptions):
|
|
215
|
+
listPlans(request?: Schematic.ListPlansRequest, requestOptions?: Plans.RequestOptions): core.HttpResponsePromise<Schematic.ListPlansResponse>;
|
|
216
|
+
private __listPlans;
|
|
113
217
|
/**
|
|
114
218
|
* @param {Schematic.CreatePlanRequestBody} request
|
|
115
219
|
* @param {Plans.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -117,6 +221,7 @@ export declare class Plans {
|
|
|
117
221
|
* @throws {@link Schematic.BadRequestError}
|
|
118
222
|
* @throws {@link Schematic.UnauthorizedError}
|
|
119
223
|
* @throws {@link Schematic.ForbiddenError}
|
|
224
|
+
* @throws {@link Schematic.NotFoundError}
|
|
120
225
|
* @throws {@link Schematic.InternalServerError}
|
|
121
226
|
*
|
|
122
227
|
* @example
|
|
@@ -126,7 +231,8 @@ export declare class Plans {
|
|
|
126
231
|
* planType: "plan"
|
|
127
232
|
* })
|
|
128
233
|
*/
|
|
129
|
-
createPlan(request: Schematic.CreatePlanRequestBody, requestOptions?: Plans.RequestOptions):
|
|
234
|
+
createPlan(request: Schematic.CreatePlanRequestBody, requestOptions?: Plans.RequestOptions): core.HttpResponsePromise<Schematic.CreatePlanResponse>;
|
|
235
|
+
private __createPlan;
|
|
130
236
|
/**
|
|
131
237
|
* @param {string} planId - plan_id
|
|
132
238
|
* @param {Plans.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -139,7 +245,8 @@ export declare class Plans {
|
|
|
139
245
|
* @example
|
|
140
246
|
* await client.plans.getPlan("plan_id")
|
|
141
247
|
*/
|
|
142
|
-
getPlan(planId: string, requestOptions?: Plans.RequestOptions):
|
|
248
|
+
getPlan(planId: string, requestOptions?: Plans.RequestOptions): core.HttpResponsePromise<Schematic.GetPlanResponse>;
|
|
249
|
+
private __getPlan;
|
|
143
250
|
/**
|
|
144
251
|
* @param {string} planId - plan_id
|
|
145
252
|
* @param {Schematic.UpdatePlanRequestBody} request
|
|
@@ -156,7 +263,8 @@ export declare class Plans {
|
|
|
156
263
|
* name: "name"
|
|
157
264
|
* })
|
|
158
265
|
*/
|
|
159
|
-
updatePlan(planId: string, request: Schematic.UpdatePlanRequestBody, requestOptions?: Plans.RequestOptions):
|
|
266
|
+
updatePlan(planId: string, request: Schematic.UpdatePlanRequestBody, requestOptions?: Plans.RequestOptions): core.HttpResponsePromise<Schematic.UpdatePlanResponse>;
|
|
267
|
+
private __updatePlan;
|
|
160
268
|
/**
|
|
161
269
|
* @param {string} planId - plan_id
|
|
162
270
|
* @param {Plans.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -164,12 +272,14 @@ export declare class Plans {
|
|
|
164
272
|
* @throws {@link Schematic.BadRequestError}
|
|
165
273
|
* @throws {@link Schematic.UnauthorizedError}
|
|
166
274
|
* @throws {@link Schematic.ForbiddenError}
|
|
275
|
+
* @throws {@link Schematic.NotFoundError}
|
|
167
276
|
* @throws {@link Schematic.InternalServerError}
|
|
168
277
|
*
|
|
169
278
|
* @example
|
|
170
279
|
* await client.plans.deletePlan("plan_id")
|
|
171
280
|
*/
|
|
172
|
-
deletePlan(planId: string, requestOptions?: Plans.RequestOptions):
|
|
281
|
+
deletePlan(planId: string, requestOptions?: Plans.RequestOptions): core.HttpResponsePromise<Schematic.DeletePlanResponse>;
|
|
282
|
+
private __deletePlan;
|
|
173
283
|
/**
|
|
174
284
|
* @param {string} planId - plan_id
|
|
175
285
|
* @param {Schematic.UpsertBillingProductRequestBody} request
|
|
@@ -187,7 +297,8 @@ export declare class Plans {
|
|
|
187
297
|
* isTrialable: true
|
|
188
298
|
* })
|
|
189
299
|
*/
|
|
190
|
-
upsertBillingProductPlan(planId: string, request: Schematic.UpsertBillingProductRequestBody, requestOptions?: Plans.RequestOptions):
|
|
300
|
+
upsertBillingProductPlan(planId: string, request: Schematic.UpsertBillingProductRequestBody, requestOptions?: Plans.RequestOptions): core.HttpResponsePromise<Schematic.UpsertBillingProductPlanResponse>;
|
|
301
|
+
private __upsertBillingProductPlan;
|
|
191
302
|
/**
|
|
192
303
|
* @param {Schematic.CountPlansRequest} request
|
|
193
304
|
* @param {Plans.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -195,12 +306,14 @@ export declare class Plans {
|
|
|
195
306
|
* @throws {@link Schematic.BadRequestError}
|
|
196
307
|
* @throws {@link Schematic.UnauthorizedError}
|
|
197
308
|
* @throws {@link Schematic.ForbiddenError}
|
|
309
|
+
* @throws {@link Schematic.NotFoundError}
|
|
198
310
|
* @throws {@link Schematic.InternalServerError}
|
|
199
311
|
*
|
|
200
312
|
* @example
|
|
201
313
|
* await client.plans.countPlans()
|
|
202
314
|
*/
|
|
203
|
-
countPlans(request?: Schematic.CountPlansRequest, requestOptions?: Plans.RequestOptions):
|
|
315
|
+
countPlans(request?: Schematic.CountPlansRequest, requestOptions?: Plans.RequestOptions): core.HttpResponsePromise<Schematic.CountPlansResponse>;
|
|
316
|
+
private __countPlans;
|
|
204
317
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
205
318
|
"X-Schematic-Api-Key": string;
|
|
206
319
|
}>;
|