@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
|
@@ -9,9 +9,11 @@ export declare namespace BillingProductPlanResponseData {
|
|
|
9
9
|
interface Raw {
|
|
10
10
|
account_id: string;
|
|
11
11
|
billing_product_id: string;
|
|
12
|
+
charge_type: string;
|
|
12
13
|
environment_id: string;
|
|
13
14
|
is_trialable: boolean;
|
|
14
15
|
monthly_price_id?: string | null;
|
|
16
|
+
one_time_price_id?: string | null;
|
|
15
17
|
plan_id: string;
|
|
16
18
|
trial_days?: number | null;
|
|
17
19
|
yearly_price_id?: string | null;
|
|
@@ -41,9 +41,11 @@ const core = __importStar(require("../../core"));
|
|
|
41
41
|
exports.BillingProductPlanResponseData = core.serialization.object({
|
|
42
42
|
accountId: core.serialization.property("account_id", core.serialization.string()),
|
|
43
43
|
billingProductId: core.serialization.property("billing_product_id", core.serialization.string()),
|
|
44
|
+
chargeType: core.serialization.property("charge_type", core.serialization.string()),
|
|
44
45
|
environmentId: core.serialization.property("environment_id", core.serialization.string()),
|
|
45
46
|
isTrialable: core.serialization.property("is_trialable", core.serialization.boolean()),
|
|
46
47
|
monthlyPriceId: core.serialization.property("monthly_price_id", core.serialization.string().optional()),
|
|
48
|
+
oneTimePriceId: core.serialization.property("one_time_price_id", core.serialization.string().optional()),
|
|
47
49
|
planId: core.serialization.property("plan_id", core.serialization.string()),
|
|
48
50
|
trialDays: core.serialization.property("trial_days", core.serialization.number().optional()),
|
|
49
51
|
yearlyPriceId: core.serialization.property("yearly_price_id", core.serialization.string().optional()),
|
|
@@ -7,13 +7,16 @@ import * as core from "../../core";
|
|
|
7
7
|
export declare const BillingProductPriceResponseData: core.serialization.ObjectSchema<serializers.BillingProductPriceResponseData.Raw, Schematic.BillingProductPriceResponseData>;
|
|
8
8
|
export declare namespace BillingProductPriceResponseData {
|
|
9
9
|
interface Raw {
|
|
10
|
+
billing_scheme: string;
|
|
10
11
|
created_at: string;
|
|
11
12
|
currency: string;
|
|
12
13
|
id: string;
|
|
13
14
|
interval: string;
|
|
14
15
|
is_active: boolean;
|
|
15
16
|
meter_id?: string | null;
|
|
17
|
+
package_size: number;
|
|
16
18
|
price: number;
|
|
19
|
+
price_decimal?: string | null;
|
|
17
20
|
price_external_id: string;
|
|
18
21
|
product_external_id: string;
|
|
19
22
|
updated_at: string;
|
|
@@ -39,13 +39,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.BillingProductPriceResponseData = void 0;
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
41
|
exports.BillingProductPriceResponseData = core.serialization.object({
|
|
42
|
+
billingScheme: core.serialization.property("billing_scheme", core.serialization.string()),
|
|
42
43
|
createdAt: core.serialization.property("created_at", core.serialization.date()),
|
|
43
44
|
currency: core.serialization.string(),
|
|
44
45
|
id: core.serialization.string(),
|
|
45
46
|
interval: core.serialization.string(),
|
|
46
47
|
isActive: core.serialization.property("is_active", core.serialization.boolean()),
|
|
47
48
|
meterId: core.serialization.property("meter_id", core.serialization.string().optional()),
|
|
49
|
+
packageSize: core.serialization.property("package_size", core.serialization.number()),
|
|
48
50
|
price: core.serialization.number(),
|
|
51
|
+
priceDecimal: core.serialization.property("price_decimal", core.serialization.string().optional()),
|
|
49
52
|
priceExternalId: core.serialization.property("price_external_id", core.serialization.string()),
|
|
50
53
|
productExternalId: core.serialization.property("product_external_id", core.serialization.string()),
|
|
51
54
|
updatedAt: core.serialization.property("updated_at", core.serialization.date()),
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
export declare const BillingProductPriceTierResponseData: core.serialization.ObjectSchema<serializers.BillingProductPriceTierResponseData.Raw, Schematic.BillingProductPriceTierResponseData>;
|
|
8
|
+
export declare namespace BillingProductPriceTierResponseData {
|
|
9
|
+
interface Raw {
|
|
10
|
+
flat_amount?: number | null;
|
|
11
|
+
per_unit_price?: number | null;
|
|
12
|
+
per_unit_price_decimal?: string | null;
|
|
13
|
+
up_to?: number | null;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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.BillingProductPriceTierResponseData = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.BillingProductPriceTierResponseData = core.serialization.object({
|
|
42
|
+
flatAmount: core.serialization.property("flat_amount", core.serialization.number().optional()),
|
|
43
|
+
perUnitPrice: core.serialization.property("per_unit_price", core.serialization.number().optional()),
|
|
44
|
+
perUnitPriceDecimal: core.serialization.property("per_unit_price_decimal", core.serialization.string().optional()),
|
|
45
|
+
upTo: core.serialization.property("up_to", core.serialization.number().optional()),
|
|
46
|
+
});
|
|
@@ -11,7 +11,9 @@ export declare namespace BillingProductPricing {
|
|
|
11
11
|
currency: string;
|
|
12
12
|
interval: string;
|
|
13
13
|
meter_id?: string | null;
|
|
14
|
+
package_size?: number | null;
|
|
14
15
|
price: number;
|
|
16
|
+
price_decimal?: string | null;
|
|
15
17
|
price_external_id: string;
|
|
16
18
|
product_external_id: string;
|
|
17
19
|
quantity: number;
|
|
@@ -43,7 +43,9 @@ exports.BillingProductPricing = core.serialization.object({
|
|
|
43
43
|
currency: core.serialization.string(),
|
|
44
44
|
interval: core.serialization.string(),
|
|
45
45
|
meterId: core.serialization.property("meter_id", core.serialization.string().optional()),
|
|
46
|
+
packageSize: core.serialization.property("package_size", core.serialization.number().optional()),
|
|
46
47
|
price: core.serialization.number(),
|
|
48
|
+
priceDecimal: core.serialization.property("price_decimal", core.serialization.string().optional()),
|
|
47
49
|
priceExternalId: core.serialization.property("price_external_id", core.serialization.string()),
|
|
48
50
|
productExternalId: core.serialization.property("product_external_id", core.serialization.string()),
|
|
49
51
|
quantity: core.serialization.number(),
|
|
@@ -12,8 +12,10 @@ export declare namespace BillingProductResponseData {
|
|
|
12
12
|
currency: string;
|
|
13
13
|
environment_id: string;
|
|
14
14
|
external_id: string;
|
|
15
|
+
is_active: boolean;
|
|
15
16
|
name: string;
|
|
16
17
|
price: number;
|
|
18
|
+
price_decimal?: string | null;
|
|
17
19
|
product_id: string;
|
|
18
20
|
quantity: number;
|
|
19
21
|
updated_at: string;
|
|
@@ -44,8 +44,10 @@ exports.BillingProductResponseData = core.serialization.object({
|
|
|
44
44
|
currency: core.serialization.string(),
|
|
45
45
|
environmentId: core.serialization.property("environment_id", core.serialization.string()),
|
|
46
46
|
externalId: core.serialization.property("external_id", core.serialization.string()),
|
|
47
|
+
isActive: core.serialization.property("is_active", core.serialization.boolean()),
|
|
47
48
|
name: core.serialization.string(),
|
|
48
49
|
price: core.serialization.number(),
|
|
50
|
+
priceDecimal: core.serialization.property("price_decimal", core.serialization.string().optional()),
|
|
49
51
|
productId: core.serialization.property("product_id", core.serialization.string()),
|
|
50
52
|
quantity: core.serialization.number(),
|
|
51
53
|
updatedAt: core.serialization.property("updated_at", core.serialization.date()),
|
|
@@ -11,6 +11,7 @@ export declare namespace CheckFlagResponseData {
|
|
|
11
11
|
error?: string | null;
|
|
12
12
|
feature_allocation?: number | null;
|
|
13
13
|
feature_usage?: number | null;
|
|
14
|
+
feature_usage_event?: string | null;
|
|
14
15
|
feature_usage_period?: string | null;
|
|
15
16
|
feature_usage_reset_at?: string | null;
|
|
16
17
|
flag: string;
|
|
@@ -43,6 +43,7 @@ exports.CheckFlagResponseData = core.serialization.object({
|
|
|
43
43
|
error: core.serialization.string().optional(),
|
|
44
44
|
featureAllocation: core.serialization.property("feature_allocation", core.serialization.number().optional()),
|
|
45
45
|
featureUsage: core.serialization.property("feature_usage", core.serialization.number().optional()),
|
|
46
|
+
featureUsageEvent: core.serialization.property("feature_usage_event", core.serialization.string().optional()),
|
|
46
47
|
featureUsagePeriod: core.serialization.property("feature_usage_period", core.serialization.string().optional()),
|
|
47
48
|
featureUsageResetAt: core.serialization.property("feature_usage_reset_at", core.serialization.date().optional()),
|
|
48
49
|
flag: core.serialization.string(),
|
|
@@ -6,10 +6,10 @@ import * as Schematic from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
import { CompanyPlanWithBillingSubView } from "./CompanyPlanWithBillingSubView";
|
|
8
8
|
import { BillingSubscriptionView } from "./BillingSubscriptionView";
|
|
9
|
+
import { PaymentMethodResponseData } from "./PaymentMethodResponseData";
|
|
9
10
|
import { EntityTraitDetailResponseData } from "./EntityTraitDetailResponseData";
|
|
10
11
|
import { EntityKeyDetailResponseData } from "./EntityKeyDetailResponseData";
|
|
11
12
|
import { CompanyEventPeriodMetricsResponseData } from "./CompanyEventPeriodMetricsResponseData";
|
|
12
|
-
import { PaymentMethodResponseData } from "./PaymentMethodResponseData";
|
|
13
13
|
import { GenericPreviewObject } from "./GenericPreviewObject";
|
|
14
14
|
export declare const CompanyDetailResponseData: core.serialization.ObjectSchema<serializers.CompanyDetailResponseData.Raw, Schematic.CompanyDetailResponseData>;
|
|
15
15
|
export declare namespace CompanyDetailResponseData {
|
|
@@ -18,6 +18,7 @@ export declare namespace CompanyDetailResponseData {
|
|
|
18
18
|
billing_subscription?: BillingSubscriptionView.Raw | null;
|
|
19
19
|
billing_subscriptions: BillingSubscriptionView.Raw[];
|
|
20
20
|
created_at: string;
|
|
21
|
+
default_payment_method?: PaymentMethodResponseData.Raw | null;
|
|
21
22
|
entity_traits: EntityTraitDetailResponseData.Raw[];
|
|
22
23
|
environment_id: string;
|
|
23
24
|
id: string;
|
|
@@ -40,16 +40,17 @@ exports.CompanyDetailResponseData = void 0;
|
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
41
|
const CompanyPlanWithBillingSubView_1 = require("./CompanyPlanWithBillingSubView");
|
|
42
42
|
const BillingSubscriptionView_1 = require("./BillingSubscriptionView");
|
|
43
|
+
const PaymentMethodResponseData_1 = require("./PaymentMethodResponseData");
|
|
43
44
|
const EntityTraitDetailResponseData_1 = require("./EntityTraitDetailResponseData");
|
|
44
45
|
const EntityKeyDetailResponseData_1 = require("./EntityKeyDetailResponseData");
|
|
45
46
|
const CompanyEventPeriodMetricsResponseData_1 = require("./CompanyEventPeriodMetricsResponseData");
|
|
46
|
-
const PaymentMethodResponseData_1 = require("./PaymentMethodResponseData");
|
|
47
47
|
const GenericPreviewObject_1 = require("./GenericPreviewObject");
|
|
48
48
|
exports.CompanyDetailResponseData = core.serialization.object({
|
|
49
49
|
addOns: core.serialization.property("add_ons", core.serialization.list(CompanyPlanWithBillingSubView_1.CompanyPlanWithBillingSubView)),
|
|
50
50
|
billingSubscription: core.serialization.property("billing_subscription", BillingSubscriptionView_1.BillingSubscriptionView.optional()),
|
|
51
51
|
billingSubscriptions: core.serialization.property("billing_subscriptions", core.serialization.list(BillingSubscriptionView_1.BillingSubscriptionView)),
|
|
52
52
|
createdAt: core.serialization.property("created_at", core.serialization.date()),
|
|
53
|
+
defaultPaymentMethod: core.serialization.property("default_payment_method", PaymentMethodResponseData_1.PaymentMethodResponseData.optional()),
|
|
53
54
|
entityTraits: core.serialization.property("entity_traits", core.serialization.list(EntityTraitDetailResponseData_1.EntityTraitDetailResponseData)),
|
|
54
55
|
environmentId: core.serialization.property("environment_id", core.serialization.string()),
|
|
55
56
|
id: core.serialization.string(),
|
|
@@ -14,6 +14,7 @@ export declare namespace CompanyPlanDetailResponseData {
|
|
|
14
14
|
interface Raw {
|
|
15
15
|
audience_type?: string | null;
|
|
16
16
|
billing_product?: BillingProductDetailResponseData.Raw | null;
|
|
17
|
+
charge_type: string;
|
|
17
18
|
company_can_trial: boolean;
|
|
18
19
|
company_count: number;
|
|
19
20
|
created_at: string;
|
|
@@ -31,6 +32,7 @@ export declare namespace CompanyPlanDetailResponseData {
|
|
|
31
32
|
is_trialable: boolean;
|
|
32
33
|
monthly_price?: BillingPriceResponseData.Raw | null;
|
|
33
34
|
name: string;
|
|
35
|
+
one_time_price?: BillingPriceResponseData.Raw | null;
|
|
34
36
|
plan_type: string;
|
|
35
37
|
trial_days?: number | null;
|
|
36
38
|
updated_at: string;
|
|
@@ -46,6 +46,7 @@ const BillingPriceResponseData_1 = require("./BillingPriceResponseData");
|
|
|
46
46
|
exports.CompanyPlanDetailResponseData = core.serialization.object({
|
|
47
47
|
audienceType: core.serialization.property("audience_type", core.serialization.string().optional()),
|
|
48
48
|
billingProduct: core.serialization.property("billing_product", BillingProductDetailResponseData_1.BillingProductDetailResponseData.optional()),
|
|
49
|
+
chargeType: core.serialization.property("charge_type", core.serialization.string()),
|
|
49
50
|
companyCanTrial: core.serialization.property("company_can_trial", core.serialization.boolean()),
|
|
50
51
|
companyCount: core.serialization.property("company_count", core.serialization.number()),
|
|
51
52
|
createdAt: core.serialization.property("created_at", core.serialization.date()),
|
|
@@ -63,6 +64,7 @@ exports.CompanyPlanDetailResponseData = core.serialization.object({
|
|
|
63
64
|
isTrialable: core.serialization.property("is_trialable", core.serialization.boolean()),
|
|
64
65
|
monthlyPrice: core.serialization.property("monthly_price", BillingPriceResponseData_1.BillingPriceResponseData.optional()),
|
|
65
66
|
name: core.serialization.string(),
|
|
67
|
+
oneTimePrice: core.serialization.property("one_time_price", BillingPriceResponseData_1.BillingPriceResponseData.optional()),
|
|
66
68
|
planType: core.serialization.property("plan_type", core.serialization.string()),
|
|
67
69
|
trialDays: core.serialization.property("trial_days", core.serialization.number().optional()),
|
|
68
70
|
updatedAt: core.serialization.property("updated_at", core.serialization.date()),
|
|
@@ -7,6 +7,8 @@ import * as core from "../../core";
|
|
|
7
7
|
export declare const CompanyPlanWithBillingSubView: core.serialization.ObjectSchema<serializers.CompanyPlanWithBillingSubView.Raw, Schematic.CompanyPlanWithBillingSubView>;
|
|
8
8
|
export declare namespace CompanyPlanWithBillingSubView {
|
|
9
9
|
interface Raw {
|
|
10
|
+
added_on?: string | null;
|
|
11
|
+
billing_product_external_id?: string | null;
|
|
10
12
|
billing_product_id?: string | null;
|
|
11
13
|
description?: string | null;
|
|
12
14
|
id: string;
|
|
@@ -39,6 +39,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.CompanyPlanWithBillingSubView = void 0;
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
41
|
exports.CompanyPlanWithBillingSubView = core.serialization.object({
|
|
42
|
+
addedOn: core.serialization.property("added_on", core.serialization.date().optional()),
|
|
43
|
+
billingProductExternalId: core.serialization.property("billing_product_external_id", core.serialization.string().optional()),
|
|
42
44
|
billingProductId: core.serialization.property("billing_product_id", core.serialization.string().optional()),
|
|
43
45
|
description: core.serialization.string().optional(),
|
|
44
46
|
id: core.serialization.string(),
|
|
@@ -8,6 +8,7 @@ export declare const CreateBillingPriceTierRequestBody: core.serialization.Objec
|
|
|
8
8
|
export declare namespace CreateBillingPriceTierRequestBody {
|
|
9
9
|
interface Raw {
|
|
10
10
|
flat_amount?: number | null;
|
|
11
|
+
per_unit_decimal?: string | null;
|
|
11
12
|
per_unit_price?: number | null;
|
|
12
13
|
price_external_id: string;
|
|
13
14
|
up_to?: number | null;
|
|
@@ -40,6 +40,7 @@ exports.CreateBillingPriceTierRequestBody = void 0;
|
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
41
|
exports.CreateBillingPriceTierRequestBody = core.serialization.object({
|
|
42
42
|
flatAmount: core.serialization.property("flat_amount", core.serialization.number().optional()),
|
|
43
|
+
perUnitDecimal: core.serialization.property("per_unit_decimal", core.serialization.string().optional()),
|
|
43
44
|
perUnitPrice: core.serialization.property("per_unit_price", core.serialization.number().optional()),
|
|
44
45
|
priceExternalId: core.serialization.property("price_external_id", core.serialization.string()),
|
|
45
46
|
upTo: core.serialization.property("up_to", core.serialization.number().optional()),
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
export declare const DataExportResponseData: core.serialization.ObjectSchema<serializers.DataExportResponseData.Raw, Schematic.DataExportResponseData>;
|
|
8
|
+
export declare namespace DataExportResponseData {
|
|
9
|
+
interface Raw {
|
|
10
|
+
account_id: string;
|
|
11
|
+
created_at: string;
|
|
12
|
+
environment_id: string;
|
|
13
|
+
export_type: string;
|
|
14
|
+
id: string;
|
|
15
|
+
metadata: string;
|
|
16
|
+
output_file_type: string;
|
|
17
|
+
status: string;
|
|
18
|
+
updated_at: string;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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.DataExportResponseData = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.DataExportResponseData = core.serialization.object({
|
|
42
|
+
accountId: core.serialization.property("account_id", core.serialization.string()),
|
|
43
|
+
createdAt: core.serialization.property("created_at", core.serialization.date()),
|
|
44
|
+
environmentId: core.serialization.property("environment_id", core.serialization.string()),
|
|
45
|
+
exportType: core.serialization.property("export_type", core.serialization.string()),
|
|
46
|
+
id: core.serialization.string(),
|
|
47
|
+
metadata: core.serialization.string(),
|
|
48
|
+
outputFileType: core.serialization.property("output_file_type", core.serialization.string()),
|
|
49
|
+
status: core.serialization.string(),
|
|
50
|
+
updatedAt: core.serialization.property("updated_at", core.serialization.date()),
|
|
51
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
export declare const EntitlementTriggerConfig: core.serialization.ObjectSchema<serializers.EntitlementTriggerConfig.Raw, Schematic.EntitlementTriggerConfig>;
|
|
8
|
+
export declare namespace EntitlementTriggerConfig {
|
|
9
|
+
interface Raw {
|
|
10
|
+
feature_id: string;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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.EntitlementTriggerConfig = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.EntitlementTriggerConfig = core.serialization.object({
|
|
42
|
+
featureId: core.serialization.property("feature_id", core.serialization.string()),
|
|
43
|
+
});
|
|
@@ -7,11 +7,11 @@ import * as core from "../../core";
|
|
|
7
7
|
export declare const EventSummaryResponseData: core.serialization.ObjectSchema<serializers.EventSummaryResponseData.Raw, Schematic.EventSummaryResponseData>;
|
|
8
8
|
export declare namespace EventSummaryResponseData {
|
|
9
9
|
interface Raw {
|
|
10
|
-
company_count
|
|
10
|
+
company_count?: number | null;
|
|
11
11
|
environment_id: string;
|
|
12
12
|
event_count: number;
|
|
13
13
|
event_subtype: string;
|
|
14
14
|
last_seen_at?: string | null;
|
|
15
|
-
user_count
|
|
15
|
+
user_count?: number | null;
|
|
16
16
|
}
|
|
17
17
|
}
|
|
@@ -39,10 +39,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.EventSummaryResponseData = void 0;
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
41
|
exports.EventSummaryResponseData = core.serialization.object({
|
|
42
|
-
companyCount: core.serialization.property("company_count", core.serialization.number()),
|
|
42
|
+
companyCount: core.serialization.property("company_count", core.serialization.number().optional()),
|
|
43
43
|
environmentId: core.serialization.property("environment_id", core.serialization.string()),
|
|
44
44
|
eventCount: core.serialization.property("event_count", core.serialization.number()),
|
|
45
45
|
eventSubtype: core.serialization.property("event_subtype", core.serialization.string()),
|
|
46
46
|
lastSeenAt: core.serialization.property("last_seen_at", core.serialization.date().optional()),
|
|
47
|
-
userCount: core.serialization.property("user_count", core.serialization.number()),
|
|
47
|
+
userCount: core.serialization.property("user_count", core.serialization.number().optional()),
|
|
48
48
|
});
|
|
@@ -12,6 +12,7 @@ export declare namespace PlanDetailResponseData {
|
|
|
12
12
|
interface Raw {
|
|
13
13
|
audience_type?: string | null;
|
|
14
14
|
billing_product?: BillingProductDetailResponseData.Raw | null;
|
|
15
|
+
charge_type: string;
|
|
15
16
|
company_count: number;
|
|
16
17
|
created_at: string;
|
|
17
18
|
description: string;
|
|
@@ -23,6 +24,7 @@ export declare namespace PlanDetailResponseData {
|
|
|
23
24
|
is_trialable: boolean;
|
|
24
25
|
monthly_price?: BillingPriceResponseData.Raw | null;
|
|
25
26
|
name: string;
|
|
27
|
+
one_time_price?: BillingPriceResponseData.Raw | null;
|
|
26
28
|
plan_type: string;
|
|
27
29
|
trial_days?: number | null;
|
|
28
30
|
updated_at: string;
|
|
@@ -44,6 +44,7 @@ const BillingPriceResponseData_1 = require("./BillingPriceResponseData");
|
|
|
44
44
|
exports.PlanDetailResponseData = core.serialization.object({
|
|
45
45
|
audienceType: core.serialization.property("audience_type", core.serialization.string().optional()),
|
|
46
46
|
billingProduct: core.serialization.property("billing_product", BillingProductDetailResponseData_1.BillingProductDetailResponseData.optional()),
|
|
47
|
+
chargeType: core.serialization.property("charge_type", core.serialization.string()),
|
|
47
48
|
companyCount: core.serialization.property("company_count", core.serialization.number()),
|
|
48
49
|
createdAt: core.serialization.property("created_at", core.serialization.date()),
|
|
49
50
|
description: core.serialization.string(),
|
|
@@ -55,6 +56,7 @@ exports.PlanDetailResponseData = core.serialization.object({
|
|
|
55
56
|
isTrialable: core.serialization.property("is_trialable", core.serialization.boolean()),
|
|
56
57
|
monthlyPrice: core.serialization.property("monthly_price", BillingPriceResponseData_1.BillingPriceResponseData.optional()),
|
|
57
58
|
name: core.serialization.string(),
|
|
59
|
+
oneTimePrice: core.serialization.property("one_time_price", BillingPriceResponseData_1.BillingPriceResponseData.optional()),
|
|
58
60
|
planType: core.serialization.property("plan_type", core.serialization.string()),
|
|
59
61
|
trialDays: core.serialization.property("trial_days", core.serialization.number().optional()),
|
|
60
62
|
updatedAt: core.serialization.property("updated_at", core.serialization.date()),
|
|
@@ -7,6 +7,7 @@ import * as core from "../../core";
|
|
|
7
7
|
import { FeatureResponseData } from "./FeatureResponseData";
|
|
8
8
|
import { BillingPriceView } from "./BillingPriceView";
|
|
9
9
|
import { PlanResponseData } from "./PlanResponseData";
|
|
10
|
+
import { BillingProductResponseData } from "./BillingProductResponseData";
|
|
10
11
|
import { EntityTraitDefinitionResponseData } from "./EntityTraitDefinitionResponseData";
|
|
11
12
|
export declare const PlanEntitlementResponseData: core.serialization.ObjectSchema<serializers.PlanEntitlementResponseData.Raw, Schematic.PlanEntitlementResponseData>;
|
|
12
13
|
export declare namespace PlanEntitlementResponseData {
|
|
@@ -27,6 +28,7 @@ export declare namespace PlanEntitlementResponseData {
|
|
|
27
28
|
rule_id_usage_exceeded?: string | null;
|
|
28
29
|
soft_limit?: number | null;
|
|
29
30
|
updated_at: string;
|
|
31
|
+
usage_based_product?: BillingProductResponseData.Raw | null;
|
|
30
32
|
value_bool?: boolean | null;
|
|
31
33
|
value_numeric?: number | null;
|
|
32
34
|
value_trait?: EntityTraitDefinitionResponseData.Raw | null;
|
|
@@ -41,6 +41,7 @@ const core = __importStar(require("../../core"));
|
|
|
41
41
|
const FeatureResponseData_1 = require("./FeatureResponseData");
|
|
42
42
|
const BillingPriceView_1 = require("./BillingPriceView");
|
|
43
43
|
const PlanResponseData_1 = require("./PlanResponseData");
|
|
44
|
+
const BillingProductResponseData_1 = require("./BillingProductResponseData");
|
|
44
45
|
const EntityTraitDefinitionResponseData_1 = require("./EntityTraitDefinitionResponseData");
|
|
45
46
|
exports.PlanEntitlementResponseData = core.serialization.object({
|
|
46
47
|
createdAt: core.serialization.property("created_at", core.serialization.date()),
|
|
@@ -59,6 +60,7 @@ exports.PlanEntitlementResponseData = core.serialization.object({
|
|
|
59
60
|
ruleIdUsageExceeded: core.serialization.property("rule_id_usage_exceeded", core.serialization.string().optional()),
|
|
60
61
|
softLimit: core.serialization.property("soft_limit", core.serialization.number().optional()),
|
|
61
62
|
updatedAt: core.serialization.property("updated_at", core.serialization.date()),
|
|
63
|
+
usageBasedProduct: core.serialization.property("usage_based_product", BillingProductResponseData_1.BillingProductResponseData.optional()),
|
|
62
64
|
valueBool: core.serialization.property("value_bool", core.serialization.boolean().optional()),
|
|
63
65
|
valueNumeric: core.serialization.property("value_numeric", core.serialization.number().optional()),
|
|
64
66
|
valueTrait: core.serialization.property("value_trait", EntityTraitDefinitionResponseData_1.EntityTraitDefinitionResponseData.optional()),
|
|
@@ -14,6 +14,7 @@ export declare namespace PlanGroupPlanDetailResponseData {
|
|
|
14
14
|
interface Raw {
|
|
15
15
|
audience_type?: string | null;
|
|
16
16
|
billing_product?: BillingProductDetailResponseData.Raw | null;
|
|
17
|
+
charge_type: string;
|
|
17
18
|
company_count: number;
|
|
18
19
|
created_at: string;
|
|
19
20
|
custom_plan_config?: CustomPlanViewConfigResponseData.Raw | null;
|
|
@@ -28,6 +29,7 @@ export declare namespace PlanGroupPlanDetailResponseData {
|
|
|
28
29
|
is_trialable: boolean;
|
|
29
30
|
monthly_price?: BillingPriceResponseData.Raw | null;
|
|
30
31
|
name: string;
|
|
32
|
+
one_time_price?: BillingPriceResponseData.Raw | null;
|
|
31
33
|
plan_type: string;
|
|
32
34
|
trial_days?: number | null;
|
|
33
35
|
updated_at: string;
|
|
@@ -46,6 +46,7 @@ const BillingPriceResponseData_1 = require("./BillingPriceResponseData");
|
|
|
46
46
|
exports.PlanGroupPlanDetailResponseData = core.serialization.object({
|
|
47
47
|
audienceType: core.serialization.property("audience_type", core.serialization.string().optional()),
|
|
48
48
|
billingProduct: core.serialization.property("billing_product", BillingProductDetailResponseData_1.BillingProductDetailResponseData.optional()),
|
|
49
|
+
chargeType: core.serialization.property("charge_type", core.serialization.string()),
|
|
49
50
|
companyCount: core.serialization.property("company_count", core.serialization.number()),
|
|
50
51
|
createdAt: core.serialization.property("created_at", core.serialization.date()),
|
|
51
52
|
customPlanConfig: core.serialization.property("custom_plan_config", CustomPlanViewConfigResponseData_1.CustomPlanViewConfigResponseData.optional()),
|
|
@@ -60,6 +61,7 @@ exports.PlanGroupPlanDetailResponseData = core.serialization.object({
|
|
|
60
61
|
isTrialable: core.serialization.property("is_trialable", core.serialization.boolean()),
|
|
61
62
|
monthlyPrice: core.serialization.property("monthly_price", BillingPriceResponseData_1.BillingPriceResponseData.optional()),
|
|
62
63
|
name: core.serialization.string(),
|
|
64
|
+
oneTimePrice: core.serialization.property("one_time_price", BillingPriceResponseData_1.BillingPriceResponseData.optional()),
|
|
63
65
|
planType: core.serialization.property("plan_type", core.serialization.string()),
|
|
64
66
|
trialDays: core.serialization.property("trial_days", core.serialization.number().optional()),
|
|
65
67
|
updatedAt: core.serialization.property("updated_at", core.serialization.date()),
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
export declare const PlanTraitResponseData: core.serialization.ObjectSchema<serializers.PlanTraitResponseData.Raw, Schematic.PlanTraitResponseData>;
|
|
8
|
+
export declare namespace PlanTraitResponseData {
|
|
9
|
+
interface Raw {
|
|
10
|
+
account_id: string;
|
|
11
|
+
created_at: string;
|
|
12
|
+
environment_id: string;
|
|
13
|
+
id: string;
|
|
14
|
+
plan_id: string;
|
|
15
|
+
trait_id: string;
|
|
16
|
+
trait_value: string;
|
|
17
|
+
updated_at: string;
|
|
18
|
+
}
|
|
19
|
+
}
|