@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
package/events.test.js
CHANGED
|
@@ -11,17 +11,27 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
const events_1 = require("./events");
|
|
14
|
+
process.env.NODE_ENV = "test";
|
|
14
15
|
jest.useFakeTimers();
|
|
15
16
|
describe("EventBuffer", () => {
|
|
16
17
|
let mockEventsApi;
|
|
17
18
|
let mockLogger;
|
|
18
19
|
beforeEach(() => {
|
|
20
|
+
const mockResponse = {
|
|
21
|
+
data: {
|
|
22
|
+
events: [],
|
|
23
|
+
},
|
|
24
|
+
params: {},
|
|
25
|
+
};
|
|
19
26
|
mockEventsApi = {
|
|
20
|
-
createEventBatch: jest.fn().mockResolvedValue(
|
|
27
|
+
createEventBatch: jest.fn().mockResolvedValue(mockResponse),
|
|
21
28
|
};
|
|
22
29
|
mockLogger = {
|
|
23
30
|
error: jest.fn(),
|
|
24
31
|
log: jest.fn(),
|
|
32
|
+
warn: jest.fn(),
|
|
33
|
+
info: jest.fn(),
|
|
34
|
+
debug: jest.fn(),
|
|
25
35
|
};
|
|
26
36
|
});
|
|
27
37
|
it("should push and flush events correctly", () => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -69,6 +79,8 @@ describe("EventBuffer", () => {
|
|
|
69
79
|
const buffer = new events_1.EventBuffer(mockEventsApi, {
|
|
70
80
|
logger: mockLogger,
|
|
71
81
|
interval: 1000,
|
|
82
|
+
maxRetries: 1,
|
|
83
|
+
initialRetryDelay: 1,
|
|
72
84
|
});
|
|
73
85
|
const event = {
|
|
74
86
|
body: {
|
|
@@ -81,9 +93,10 @@ describe("EventBuffer", () => {
|
|
|
81
93
|
};
|
|
82
94
|
yield buffer.push(event);
|
|
83
95
|
yield buffer.push(event);
|
|
84
|
-
//
|
|
96
|
+
// Since we're skipping delays in test environment,
|
|
97
|
+
// we can just call flush directly
|
|
85
98
|
yield buffer.flush();
|
|
86
|
-
expect(mockLogger.error).toHaveBeenCalledWith("
|
|
99
|
+
expect(mockLogger.error).toHaveBeenCalledWith("Event batch submission failed after 1 retries:", expect.any(Error));
|
|
87
100
|
}));
|
|
88
101
|
it("should stop accepting events after stop is called", () => __awaiter(void 0, void 0, void 0, function* () {
|
|
89
102
|
const buffer = new events_1.EventBuffer(mockEventsApi, {
|
|
@@ -145,4 +158,38 @@ describe("EventBuffer", () => {
|
|
|
145
158
|
jest.advanceTimersByTime(1000);
|
|
146
159
|
expect(mockEventsApi.createEventBatch).not.toHaveBeenCalled();
|
|
147
160
|
}));
|
|
161
|
+
it("should retry and succeed after a failure", () => __awaiter(void 0, void 0, void 0, function* () {
|
|
162
|
+
const mockResponse = {
|
|
163
|
+
data: {
|
|
164
|
+
events: [],
|
|
165
|
+
},
|
|
166
|
+
params: {},
|
|
167
|
+
};
|
|
168
|
+
// First call fails, second succeeds
|
|
169
|
+
mockEventsApi.createEventBatch
|
|
170
|
+
.mockRejectedValueOnce(new Error("Temporary failure"))
|
|
171
|
+
.mockResolvedValueOnce(mockResponse);
|
|
172
|
+
const buffer = new events_1.EventBuffer(mockEventsApi, {
|
|
173
|
+
logger: mockLogger,
|
|
174
|
+
interval: 1000,
|
|
175
|
+
maxRetries: 3,
|
|
176
|
+
initialRetryDelay: 1,
|
|
177
|
+
});
|
|
178
|
+
const event = {
|
|
179
|
+
body: {
|
|
180
|
+
company: { id: "test-company" },
|
|
181
|
+
event: "test-event",
|
|
182
|
+
user: { id: "test-user" },
|
|
183
|
+
},
|
|
184
|
+
eventType: "track",
|
|
185
|
+
sentAt: new Date(),
|
|
186
|
+
};
|
|
187
|
+
yield buffer.push(event);
|
|
188
|
+
// Since we're skipping delays in test environment,
|
|
189
|
+
// we can just call flush directly
|
|
190
|
+
yield buffer.flush();
|
|
191
|
+
// Verify that the createEventBatch was called twice (once failed, once succeeded)
|
|
192
|
+
expect(mockEventsApi.createEventBatch).toHaveBeenCalledTimes(2);
|
|
193
|
+
expect(mockLogger.info).toHaveBeenCalledWith("Event batch submission succeeded after 1 retries");
|
|
194
|
+
}));
|
|
148
195
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@schematichq/schematic-typescript-node",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.11",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": "https://github.com/schematichq/schematic-node",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -40,5 +40,6 @@
|
|
|
40
40
|
"path": false,
|
|
41
41
|
"crypto": false,
|
|
42
42
|
"timers": false
|
|
43
|
-
}
|
|
43
|
+
},
|
|
44
|
+
"packageManager": "yarn@1.22.22"
|
|
44
45
|
}
|
package/reference.md
CHANGED
|
@@ -699,6 +699,46 @@ await client.accounts.deleteEnvironment("environment_id");
|
|
|
699
699
|
</dl>
|
|
700
700
|
</details>
|
|
701
701
|
|
|
702
|
+
<details><summary><code>client.accounts.<a href="/src/api/resources/accounts/client/Client.ts">quickstart</a>() -> Schematic.QuickstartResponse</code></summary>
|
|
703
|
+
<dl>
|
|
704
|
+
<dd>
|
|
705
|
+
|
|
706
|
+
#### 🔌 Usage
|
|
707
|
+
|
|
708
|
+
<dl>
|
|
709
|
+
<dd>
|
|
710
|
+
|
|
711
|
+
<dl>
|
|
712
|
+
<dd>
|
|
713
|
+
|
|
714
|
+
```typescript
|
|
715
|
+
await client.accounts.quickstart();
|
|
716
|
+
```
|
|
717
|
+
|
|
718
|
+
</dd>
|
|
719
|
+
</dl>
|
|
720
|
+
</dd>
|
|
721
|
+
</dl>
|
|
722
|
+
|
|
723
|
+
#### ⚙️ Parameters
|
|
724
|
+
|
|
725
|
+
<dl>
|
|
726
|
+
<dd>
|
|
727
|
+
|
|
728
|
+
<dl>
|
|
729
|
+
<dd>
|
|
730
|
+
|
|
731
|
+
**requestOptions:** `Accounts.RequestOptions`
|
|
732
|
+
|
|
733
|
+
</dd>
|
|
734
|
+
</dl>
|
|
735
|
+
</dd>
|
|
736
|
+
</dl>
|
|
737
|
+
|
|
738
|
+
</dd>
|
|
739
|
+
</dl>
|
|
740
|
+
</details>
|
|
741
|
+
|
|
702
742
|
## features
|
|
703
743
|
|
|
704
744
|
<details><summary><code>client.features.<a href="/src/api/resources/features/client/Client.ts">countAudienceCompanies</a>({ ...params }) -> Schematic.CountAudienceCompaniesResponse</code></summary>
|
|
@@ -1926,7 +1966,7 @@ await client.billing.upsertBillingCustomer({
|
|
|
1926
1966
|
</dl>
|
|
1927
1967
|
</details>
|
|
1928
1968
|
|
|
1929
|
-
<details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">
|
|
1969
|
+
<details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">listCustomersWithSubscriptions</a>({ ...params }) -> Schematic.ListCustomersWithSubscriptionsResponse</code></summary>
|
|
1930
1970
|
<dl>
|
|
1931
1971
|
<dd>
|
|
1932
1972
|
|
|
@@ -1939,7 +1979,7 @@ await client.billing.upsertBillingCustomer({
|
|
|
1939
1979
|
<dd>
|
|
1940
1980
|
|
|
1941
1981
|
```typescript
|
|
1942
|
-
await client.billing.
|
|
1982
|
+
await client.billing.listCustomersWithSubscriptions();
|
|
1943
1983
|
```
|
|
1944
1984
|
|
|
1945
1985
|
</dd>
|
|
@@ -1955,7 +1995,7 @@ await client.billing.listCustomers();
|
|
|
1955
1995
|
<dl>
|
|
1956
1996
|
<dd>
|
|
1957
1997
|
|
|
1958
|
-
**request:** `Schematic.
|
|
1998
|
+
**request:** `Schematic.ListCustomersWithSubscriptionsRequest`
|
|
1959
1999
|
|
|
1960
2000
|
</dd>
|
|
1961
2001
|
</dl>
|
|
@@ -2393,6 +2433,7 @@ await client.billing.searchBillingPrices();
|
|
|
2393
2433
|
|
|
2394
2434
|
```typescript
|
|
2395
2435
|
await client.billing.upsertBillingPrice({
|
|
2436
|
+
billingScheme: "per_unit",
|
|
2396
2437
|
currency: "currency",
|
|
2397
2438
|
externalAccountId: "external_account_id",
|
|
2398
2439
|
interval: "interval",
|
|
@@ -2599,12 +2640,9 @@ await client.billing.deleteProductPrice("billing_id");
|
|
|
2599
2640
|
|
|
2600
2641
|
```typescript
|
|
2601
2642
|
await client.billing.upsertBillingProduct({
|
|
2602
|
-
active: true,
|
|
2603
|
-
currency: "currency",
|
|
2604
2643
|
externalId: "external_id",
|
|
2605
2644
|
name: "name",
|
|
2606
2645
|
price: 1.1,
|
|
2607
|
-
quantity: 1,
|
|
2608
2646
|
});
|
|
2609
2647
|
```
|
|
2610
2648
|
|
|
@@ -3411,9 +3449,7 @@ await client.companies.deleteCompanyByKeys({
|
|
|
3411
3449
|
```typescript
|
|
3412
3450
|
await client.companies.lookupCompany({
|
|
3413
3451
|
keys: {
|
|
3414
|
-
keys:
|
|
3415
|
-
key: "value",
|
|
3416
|
-
},
|
|
3452
|
+
keys: "keys",
|
|
3417
3453
|
},
|
|
3418
3454
|
});
|
|
3419
3455
|
```
|
|
@@ -4264,6 +4300,11 @@ await client.companies.listUsers();
|
|
|
4264
4300
|
|
|
4265
4301
|
```typescript
|
|
4266
4302
|
await client.companies.upsertUser({
|
|
4303
|
+
companies: [
|
|
4304
|
+
{
|
|
4305
|
+
key: "value",
|
|
4306
|
+
},
|
|
4307
|
+
],
|
|
4267
4308
|
company: {
|
|
4268
4309
|
key: "value",
|
|
4269
4310
|
},
|
|
@@ -4463,6 +4504,11 @@ await client.companies.countUsers();
|
|
|
4463
4504
|
|
|
4464
4505
|
```typescript
|
|
4465
4506
|
await client.companies.createUser({
|
|
4507
|
+
companies: [
|
|
4508
|
+
{
|
|
4509
|
+
key: "value",
|
|
4510
|
+
},
|
|
4511
|
+
],
|
|
4466
4512
|
company: {
|
|
4467
4513
|
key: "value",
|
|
4468
4514
|
},
|
|
@@ -4571,9 +4617,7 @@ await client.companies.deleteUserByKeys({
|
|
|
4571
4617
|
```typescript
|
|
4572
4618
|
await client.companies.lookupUser({
|
|
4573
4619
|
keys: {
|
|
4574
|
-
keys:
|
|
4575
|
-
key: "value",
|
|
4576
|
-
},
|
|
4620
|
+
keys: "keys",
|
|
4577
4621
|
},
|
|
4578
4622
|
});
|
|
4579
4623
|
```
|
|
@@ -5527,9 +5571,7 @@ await client.entitlements.countPlanEntitlements();
|
|
|
5527
5571
|
```typescript
|
|
5528
5572
|
await client.entitlements.getFeatureUsageByCompany({
|
|
5529
5573
|
keys: {
|
|
5530
|
-
keys:
|
|
5531
|
-
key: "value",
|
|
5532
|
-
},
|
|
5574
|
+
keys: "keys",
|
|
5533
5575
|
},
|
|
5534
5576
|
});
|
|
5535
5577
|
```
|
|
@@ -5797,6 +5839,309 @@ await client.plans.deleteAudience("plan_audience_id");
|
|
|
5797
5839
|
</dl>
|
|
5798
5840
|
</details>
|
|
5799
5841
|
|
|
5842
|
+
<details><summary><code>client.plans.<a href="/src/api/resources/plans/client/Client.ts">listPlanTraits</a>({ ...params }) -> Schematic.ListPlanTraitsResponse</code></summary>
|
|
5843
|
+
<dl>
|
|
5844
|
+
<dd>
|
|
5845
|
+
|
|
5846
|
+
#### 🔌 Usage
|
|
5847
|
+
|
|
5848
|
+
<dl>
|
|
5849
|
+
<dd>
|
|
5850
|
+
|
|
5851
|
+
<dl>
|
|
5852
|
+
<dd>
|
|
5853
|
+
|
|
5854
|
+
```typescript
|
|
5855
|
+
await client.plans.listPlanTraits();
|
|
5856
|
+
```
|
|
5857
|
+
|
|
5858
|
+
</dd>
|
|
5859
|
+
</dl>
|
|
5860
|
+
</dd>
|
|
5861
|
+
</dl>
|
|
5862
|
+
|
|
5863
|
+
#### ⚙️ Parameters
|
|
5864
|
+
|
|
5865
|
+
<dl>
|
|
5866
|
+
<dd>
|
|
5867
|
+
|
|
5868
|
+
<dl>
|
|
5869
|
+
<dd>
|
|
5870
|
+
|
|
5871
|
+
**request:** `Schematic.ListPlanTraitsRequest`
|
|
5872
|
+
|
|
5873
|
+
</dd>
|
|
5874
|
+
</dl>
|
|
5875
|
+
|
|
5876
|
+
<dl>
|
|
5877
|
+
<dd>
|
|
5878
|
+
|
|
5879
|
+
**requestOptions:** `Plans.RequestOptions`
|
|
5880
|
+
|
|
5881
|
+
</dd>
|
|
5882
|
+
</dl>
|
|
5883
|
+
</dd>
|
|
5884
|
+
</dl>
|
|
5885
|
+
|
|
5886
|
+
</dd>
|
|
5887
|
+
</dl>
|
|
5888
|
+
</details>
|
|
5889
|
+
|
|
5890
|
+
<details><summary><code>client.plans.<a href="/src/api/resources/plans/client/Client.ts">createPlanTrait</a>({ ...params }) -> Schematic.CreatePlanTraitResponse</code></summary>
|
|
5891
|
+
<dl>
|
|
5892
|
+
<dd>
|
|
5893
|
+
|
|
5894
|
+
#### 🔌 Usage
|
|
5895
|
+
|
|
5896
|
+
<dl>
|
|
5897
|
+
<dd>
|
|
5898
|
+
|
|
5899
|
+
<dl>
|
|
5900
|
+
<dd>
|
|
5901
|
+
|
|
5902
|
+
```typescript
|
|
5903
|
+
await client.plans.createPlanTrait({
|
|
5904
|
+
planId: "plan_id",
|
|
5905
|
+
traitId: "trait_id",
|
|
5906
|
+
traitValue: "trait_value",
|
|
5907
|
+
});
|
|
5908
|
+
```
|
|
5909
|
+
|
|
5910
|
+
</dd>
|
|
5911
|
+
</dl>
|
|
5912
|
+
</dd>
|
|
5913
|
+
</dl>
|
|
5914
|
+
|
|
5915
|
+
#### ⚙️ Parameters
|
|
5916
|
+
|
|
5917
|
+
<dl>
|
|
5918
|
+
<dd>
|
|
5919
|
+
|
|
5920
|
+
<dl>
|
|
5921
|
+
<dd>
|
|
5922
|
+
|
|
5923
|
+
**request:** `Schematic.CreatePlanTraitRequestBody`
|
|
5924
|
+
|
|
5925
|
+
</dd>
|
|
5926
|
+
</dl>
|
|
5927
|
+
|
|
5928
|
+
<dl>
|
|
5929
|
+
<dd>
|
|
5930
|
+
|
|
5931
|
+
**requestOptions:** `Plans.RequestOptions`
|
|
5932
|
+
|
|
5933
|
+
</dd>
|
|
5934
|
+
</dl>
|
|
5935
|
+
</dd>
|
|
5936
|
+
</dl>
|
|
5937
|
+
|
|
5938
|
+
</dd>
|
|
5939
|
+
</dl>
|
|
5940
|
+
</details>
|
|
5941
|
+
|
|
5942
|
+
<details><summary><code>client.plans.<a href="/src/api/resources/plans/client/Client.ts">getPlanTrait</a>(planTraitId) -> Schematic.GetPlanTraitResponse</code></summary>
|
|
5943
|
+
<dl>
|
|
5944
|
+
<dd>
|
|
5945
|
+
|
|
5946
|
+
#### 🔌 Usage
|
|
5947
|
+
|
|
5948
|
+
<dl>
|
|
5949
|
+
<dd>
|
|
5950
|
+
|
|
5951
|
+
<dl>
|
|
5952
|
+
<dd>
|
|
5953
|
+
|
|
5954
|
+
```typescript
|
|
5955
|
+
await client.plans.getPlanTrait("plan_trait_id");
|
|
5956
|
+
```
|
|
5957
|
+
|
|
5958
|
+
</dd>
|
|
5959
|
+
</dl>
|
|
5960
|
+
</dd>
|
|
5961
|
+
</dl>
|
|
5962
|
+
|
|
5963
|
+
#### ⚙️ Parameters
|
|
5964
|
+
|
|
5965
|
+
<dl>
|
|
5966
|
+
<dd>
|
|
5967
|
+
|
|
5968
|
+
<dl>
|
|
5969
|
+
<dd>
|
|
5970
|
+
|
|
5971
|
+
**planTraitId:** `string` — plan_trait_id
|
|
5972
|
+
|
|
5973
|
+
</dd>
|
|
5974
|
+
</dl>
|
|
5975
|
+
|
|
5976
|
+
<dl>
|
|
5977
|
+
<dd>
|
|
5978
|
+
|
|
5979
|
+
**requestOptions:** `Plans.RequestOptions`
|
|
5980
|
+
|
|
5981
|
+
</dd>
|
|
5982
|
+
</dl>
|
|
5983
|
+
</dd>
|
|
5984
|
+
</dl>
|
|
5985
|
+
|
|
5986
|
+
</dd>
|
|
5987
|
+
</dl>
|
|
5988
|
+
</details>
|
|
5989
|
+
|
|
5990
|
+
<details><summary><code>client.plans.<a href="/src/api/resources/plans/client/Client.ts">updatePlanTrait</a>(planTraitId, { ...params }) -> Schematic.UpdatePlanTraitResponse</code></summary>
|
|
5991
|
+
<dl>
|
|
5992
|
+
<dd>
|
|
5993
|
+
|
|
5994
|
+
#### 🔌 Usage
|
|
5995
|
+
|
|
5996
|
+
<dl>
|
|
5997
|
+
<dd>
|
|
5998
|
+
|
|
5999
|
+
<dl>
|
|
6000
|
+
<dd>
|
|
6001
|
+
|
|
6002
|
+
```typescript
|
|
6003
|
+
await client.plans.updatePlanTrait("plan_trait_id", {
|
|
6004
|
+
planId: "plan_id",
|
|
6005
|
+
traitValue: "trait_value",
|
|
6006
|
+
});
|
|
6007
|
+
```
|
|
6008
|
+
|
|
6009
|
+
</dd>
|
|
6010
|
+
</dl>
|
|
6011
|
+
</dd>
|
|
6012
|
+
</dl>
|
|
6013
|
+
|
|
6014
|
+
#### ⚙️ Parameters
|
|
6015
|
+
|
|
6016
|
+
<dl>
|
|
6017
|
+
<dd>
|
|
6018
|
+
|
|
6019
|
+
<dl>
|
|
6020
|
+
<dd>
|
|
6021
|
+
|
|
6022
|
+
**planTraitId:** `string` — plan_trait_id
|
|
6023
|
+
|
|
6024
|
+
</dd>
|
|
6025
|
+
</dl>
|
|
6026
|
+
|
|
6027
|
+
<dl>
|
|
6028
|
+
<dd>
|
|
6029
|
+
|
|
6030
|
+
**request:** `Schematic.UpdatePlanTraitRequestBody`
|
|
6031
|
+
|
|
6032
|
+
</dd>
|
|
6033
|
+
</dl>
|
|
6034
|
+
|
|
6035
|
+
<dl>
|
|
6036
|
+
<dd>
|
|
6037
|
+
|
|
6038
|
+
**requestOptions:** `Plans.RequestOptions`
|
|
6039
|
+
|
|
6040
|
+
</dd>
|
|
6041
|
+
</dl>
|
|
6042
|
+
</dd>
|
|
6043
|
+
</dl>
|
|
6044
|
+
|
|
6045
|
+
</dd>
|
|
6046
|
+
</dl>
|
|
6047
|
+
</details>
|
|
6048
|
+
|
|
6049
|
+
<details><summary><code>client.plans.<a href="/src/api/resources/plans/client/Client.ts">deletePlanTrait</a>(planTraitId) -> Schematic.DeletePlanTraitResponse</code></summary>
|
|
6050
|
+
<dl>
|
|
6051
|
+
<dd>
|
|
6052
|
+
|
|
6053
|
+
#### 🔌 Usage
|
|
6054
|
+
|
|
6055
|
+
<dl>
|
|
6056
|
+
<dd>
|
|
6057
|
+
|
|
6058
|
+
<dl>
|
|
6059
|
+
<dd>
|
|
6060
|
+
|
|
6061
|
+
```typescript
|
|
6062
|
+
await client.plans.deletePlanTrait("plan_trait_id");
|
|
6063
|
+
```
|
|
6064
|
+
|
|
6065
|
+
</dd>
|
|
6066
|
+
</dl>
|
|
6067
|
+
</dd>
|
|
6068
|
+
</dl>
|
|
6069
|
+
|
|
6070
|
+
#### ⚙️ Parameters
|
|
6071
|
+
|
|
6072
|
+
<dl>
|
|
6073
|
+
<dd>
|
|
6074
|
+
|
|
6075
|
+
<dl>
|
|
6076
|
+
<dd>
|
|
6077
|
+
|
|
6078
|
+
**planTraitId:** `string` — plan_trait_id
|
|
6079
|
+
|
|
6080
|
+
</dd>
|
|
6081
|
+
</dl>
|
|
6082
|
+
|
|
6083
|
+
<dl>
|
|
6084
|
+
<dd>
|
|
6085
|
+
|
|
6086
|
+
**requestOptions:** `Plans.RequestOptions`
|
|
6087
|
+
|
|
6088
|
+
</dd>
|
|
6089
|
+
</dl>
|
|
6090
|
+
</dd>
|
|
6091
|
+
</dl>
|
|
6092
|
+
|
|
6093
|
+
</dd>
|
|
6094
|
+
</dl>
|
|
6095
|
+
</details>
|
|
6096
|
+
|
|
6097
|
+
<details><summary><code>client.plans.<a href="/src/api/resources/plans/client/Client.ts">countPlanTraits</a>({ ...params }) -> Schematic.CountPlanTraitsResponse</code></summary>
|
|
6098
|
+
<dl>
|
|
6099
|
+
<dd>
|
|
6100
|
+
|
|
6101
|
+
#### 🔌 Usage
|
|
6102
|
+
|
|
6103
|
+
<dl>
|
|
6104
|
+
<dd>
|
|
6105
|
+
|
|
6106
|
+
<dl>
|
|
6107
|
+
<dd>
|
|
6108
|
+
|
|
6109
|
+
```typescript
|
|
6110
|
+
await client.plans.countPlanTraits();
|
|
6111
|
+
```
|
|
6112
|
+
|
|
6113
|
+
</dd>
|
|
6114
|
+
</dl>
|
|
6115
|
+
</dd>
|
|
6116
|
+
</dl>
|
|
6117
|
+
|
|
6118
|
+
#### ⚙️ Parameters
|
|
6119
|
+
|
|
6120
|
+
<dl>
|
|
6121
|
+
<dd>
|
|
6122
|
+
|
|
6123
|
+
<dl>
|
|
6124
|
+
<dd>
|
|
6125
|
+
|
|
6126
|
+
**request:** `Schematic.CountPlanTraitsRequest`
|
|
6127
|
+
|
|
6128
|
+
</dd>
|
|
6129
|
+
</dl>
|
|
6130
|
+
|
|
6131
|
+
<dl>
|
|
6132
|
+
<dd>
|
|
6133
|
+
|
|
6134
|
+
**requestOptions:** `Plans.RequestOptions`
|
|
6135
|
+
|
|
6136
|
+
</dd>
|
|
6137
|
+
</dl>
|
|
6138
|
+
</dd>
|
|
6139
|
+
</dl>
|
|
6140
|
+
|
|
6141
|
+
</dd>
|
|
6142
|
+
</dl>
|
|
6143
|
+
</details>
|
|
6144
|
+
|
|
5800
6145
|
<details><summary><code>client.plans.<a href="/src/api/resources/plans/client/Client.ts">listPlans</a>({ ...params }) -> Schematic.ListPlansResponse</code></summary>
|
|
5801
6146
|
<dl>
|
|
5802
6147
|
<dd>
|
|
@@ -6771,6 +7116,58 @@ await client.crm.upsertCrmProduct({
|
|
|
6771
7116
|
</dl>
|
|
6772
7117
|
</details>
|
|
6773
7118
|
|
|
7119
|
+
## dataexports
|
|
7120
|
+
|
|
7121
|
+
<details><summary><code>client.dataexports.<a href="/src/api/resources/dataexports/client/Client.ts">createDataExport</a>({ ...params }) -> Schematic.CreateDataExportResponse</code></summary>
|
|
7122
|
+
<dl>
|
|
7123
|
+
<dd>
|
|
7124
|
+
|
|
7125
|
+
#### 🔌 Usage
|
|
7126
|
+
|
|
7127
|
+
<dl>
|
|
7128
|
+
<dd>
|
|
7129
|
+
|
|
7130
|
+
<dl>
|
|
7131
|
+
<dd>
|
|
7132
|
+
|
|
7133
|
+
```typescript
|
|
7134
|
+
await client.dataexports.createDataExport({
|
|
7135
|
+
metadata: "metadata",
|
|
7136
|
+
});
|
|
7137
|
+
```
|
|
7138
|
+
|
|
7139
|
+
</dd>
|
|
7140
|
+
</dl>
|
|
7141
|
+
</dd>
|
|
7142
|
+
</dl>
|
|
7143
|
+
|
|
7144
|
+
#### ⚙️ Parameters
|
|
7145
|
+
|
|
7146
|
+
<dl>
|
|
7147
|
+
<dd>
|
|
7148
|
+
|
|
7149
|
+
<dl>
|
|
7150
|
+
<dd>
|
|
7151
|
+
|
|
7152
|
+
**request:** `Schematic.CreateDataExportRequestBody`
|
|
7153
|
+
|
|
7154
|
+
</dd>
|
|
7155
|
+
</dl>
|
|
7156
|
+
|
|
7157
|
+
<dl>
|
|
7158
|
+
<dd>
|
|
7159
|
+
|
|
7160
|
+
**requestOptions:** `Dataexports.RequestOptions`
|
|
7161
|
+
|
|
7162
|
+
</dd>
|
|
7163
|
+
</dl>
|
|
7164
|
+
</dd>
|
|
7165
|
+
</dl>
|
|
7166
|
+
|
|
7167
|
+
</dd>
|
|
7168
|
+
</dl>
|
|
7169
|
+
</details>
|
|
7170
|
+
|
|
6774
7171
|
## events
|
|
6775
7172
|
|
|
6776
7173
|
<details><summary><code>client.events.<a href="/src/api/resources/events/client/Client.ts">createEventBatch</a>({ ...params }) -> Schematic.CreateEventBatchResponse</code></summary>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as Schematic from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
import { QuickstartResp } from "../../../types/QuickstartResp";
|
|
8
|
+
export declare const QuickstartResponse: core.serialization.ObjectSchema<serializers.QuickstartResponse.Raw, Schematic.QuickstartResponse>;
|
|
9
|
+
export declare namespace QuickstartResponse {
|
|
10
|
+
interface Raw {
|
|
11
|
+
data: QuickstartResp.Raw;
|
|
12
|
+
params: Record<string, unknown>;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.QuickstartResponse = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
const QuickstartResp_1 = require("../../../types/QuickstartResp");
|
|
42
|
+
exports.QuickstartResponse = core.serialization.object({
|
|
43
|
+
data: QuickstartResp_1.QuickstartResp,
|
|
44
|
+
params: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
|
|
45
|
+
});
|
|
@@ -35,3 +35,4 @@ __exportStar(require("./GetEnvironmentResponse"), exports);
|
|
|
35
35
|
__exportStar(require("./UpdateEnvironmentRequestBodyEnvironmentType"), exports);
|
|
36
36
|
__exportStar(require("./UpdateEnvironmentResponse"), exports);
|
|
37
37
|
__exportStar(require("./DeleteEnvironmentResponse"), exports);
|
|
38
|
+
__exportStar(require("./QuickstartResponse"), exports);
|