@paid-ai/paid-node 0.0.5
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/README.md +166 -0
- package/dist/cjs/Client.d.ts +44 -0
- package/dist/cjs/Client.js +79 -0
- package/dist/cjs/api/index.d.ts +2 -0
- package/dist/cjs/api/index.js +18 -0
- package/dist/cjs/api/resources/agents/client/Client.d.ts +107 -0
- package/dist/cjs/api/resources/agents/client/Client.js +464 -0
- package/dist/cjs/api/resources/agents/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/agents/client/index.js +17 -0
- package/dist/cjs/api/resources/agents/client/requests/AgentCreate.d.ts +16 -0
- package/dist/cjs/api/resources/agents/client/requests/AgentCreate.js +5 -0
- package/dist/cjs/api/resources/agents/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/agents/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/agents/index.d.ts +1 -0
- package/dist/cjs/api/resources/agents/index.js +17 -0
- package/dist/cjs/api/resources/contacts/client/Client.d.ts +93 -0
- package/dist/cjs/api/resources/contacts/client/Client.js +366 -0
- package/dist/cjs/api/resources/contacts/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/contacts/client/index.js +17 -0
- package/dist/cjs/api/resources/contacts/client/requests/ContactCreate.d.ts +32 -0
- package/dist/cjs/api/resources/contacts/client/requests/ContactCreate.js +5 -0
- package/dist/cjs/api/resources/contacts/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/contacts/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/contacts/index.d.ts +1 -0
- package/dist/cjs/api/resources/contacts/index.js +17 -0
- package/dist/cjs/api/resources/customers/client/Client.d.ts +106 -0
- package/dist/cjs/api/resources/customers/client/Client.js +463 -0
- package/dist/cjs/api/resources/customers/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/customers/client/index.js +17 -0
- package/dist/cjs/api/resources/customers/client/requests/CustomerCreate.d.ts +21 -0
- package/dist/cjs/api/resources/customers/client/requests/CustomerCreate.js +5 -0
- package/dist/cjs/api/resources/customers/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/customers/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/customers/index.d.ts +1 -0
- package/dist/cjs/api/resources/customers/index.js +17 -0
- package/dist/cjs/api/resources/index.d.ts +10 -0
- package/dist/cjs/api/resources/index.js +49 -0
- package/dist/cjs/api/resources/orders/client/Client.d.ts +84 -0
- package/dist/cjs/api/resources/orders/client/Client.js +320 -0
- package/dist/cjs/api/resources/orders/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/orders/client/index.js +17 -0
- package/dist/cjs/api/resources/orders/client/requests/OrderCreate.d.ts +25 -0
- package/dist/cjs/api/resources/orders/client/requests/OrderCreate.js +5 -0
- package/dist/cjs/api/resources/orders/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/orders/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/orders/index.d.ts +2 -0
- package/dist/cjs/api/resources/orders/index.js +18 -0
- package/dist/cjs/api/resources/orders/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/orders/resources/index.js +41 -0
- package/dist/cjs/api/resources/orders/resources/lines/client/Client.d.ts +41 -0
- package/dist/cjs/api/resources/orders/resources/lines/client/Client.js +119 -0
- package/dist/cjs/api/resources/orders/resources/lines/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/orders/resources/lines/client/index.js +17 -0
- package/dist/cjs/api/resources/orders/resources/lines/client/requests/LinesUpdateRequest.d.ts +11 -0
- package/dist/cjs/api/resources/orders/resources/lines/client/requests/LinesUpdateRequest.js +5 -0
- package/dist/cjs/api/resources/orders/resources/lines/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/orders/resources/lines/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/orders/resources/lines/index.d.ts +1 -0
- package/dist/cjs/api/resources/orders/resources/lines/index.js +17 -0
- package/dist/cjs/api/resources/usage/client/Client.d.ts +40 -0
- package/dist/cjs/api/resources/usage/client/Client.js +118 -0
- package/dist/cjs/api/resources/usage/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/usage/client/index.js +17 -0
- package/dist/cjs/api/resources/usage/client/requests/UsageRecordBulkRequest.d.ts +11 -0
- package/dist/cjs/api/resources/usage/client/requests/UsageRecordBulkRequest.js +5 -0
- package/dist/cjs/api/resources/usage/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/usage/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/usage/index.d.ts +1 -0
- package/dist/cjs/api/resources/usage/index.js +17 -0
- package/dist/cjs/api/types/Address.d.ts +11 -0
- package/dist/cjs/api/types/Address.js +5 -0
- package/dist/cjs/api/types/Agent.d.ts +14 -0
- package/dist/cjs/api/types/Agent.js +5 -0
- package/dist/cjs/api/types/AgentAttribute.d.ts +9 -0
- package/dist/cjs/api/types/AgentAttribute.js +5 -0
- package/dist/cjs/api/types/AgentPricePoint.d.ts +10 -0
- package/dist/cjs/api/types/AgentPricePoint.js +5 -0
- package/dist/cjs/api/types/AgentPricePointTiers.d.ts +8 -0
- package/dist/cjs/api/types/AgentPricePointTiers.js +5 -0
- package/dist/cjs/api/types/AgentUpdate.d.ts +12 -0
- package/dist/cjs/api/types/AgentUpdate.js +5 -0
- package/dist/cjs/api/types/ApiError.d.ts +12 -0
- package/dist/cjs/api/types/ApiError.js +5 -0
- package/dist/cjs/api/types/BillingFrequency.d.ts +9 -0
- package/dist/cjs/api/types/BillingFrequency.js +11 -0
- package/dist/cjs/api/types/ChargeType.d.ts +10 -0
- package/dist/cjs/api/types/ChargeType.js +12 -0
- package/dist/cjs/api/types/Contact.d.ts +21 -0
- package/dist/cjs/api/types/Contact.js +5 -0
- package/dist/cjs/api/types/CreationSource.d.ts +10 -0
- package/dist/cjs/api/types/CreationSource.js +12 -0
- package/dist/cjs/api/types/CreationState.d.ts +8 -0
- package/dist/cjs/api/types/CreationState.js +10 -0
- package/dist/cjs/api/types/Customer.d.ts +18 -0
- package/dist/cjs/api/types/Customer.js +5 -0
- package/dist/cjs/api/types/CustomerUpdate.d.ts +15 -0
- package/dist/cjs/api/types/CustomerUpdate.js +5 -0
- package/dist/cjs/api/types/Error_.d.ts +10 -0
- package/dist/cjs/api/types/Error_.js +5 -0
- package/dist/cjs/api/types/Order.d.ts +22 -0
- package/dist/cjs/api/types/Order.js +5 -0
- package/dist/cjs/api/types/OrderLine.d.ts +20 -0
- package/dist/cjs/api/types/OrderLine.js +5 -0
- package/dist/cjs/api/types/OrderLineAttribute.d.ts +10 -0
- package/dist/cjs/api/types/OrderLineAttribute.js +5 -0
- package/dist/cjs/api/types/OrderLineAttributePricing.d.ts +11 -0
- package/dist/cjs/api/types/OrderLineAttributePricing.js +5 -0
- package/dist/cjs/api/types/OrderLineCreate.d.ts +9 -0
- package/dist/cjs/api/types/OrderLineCreate.js +5 -0
- package/dist/cjs/api/types/PricePoint.d.ts +10 -0
- package/dist/cjs/api/types/PricePoint.js +5 -0
- package/dist/cjs/api/types/Pricing.d.ts +12 -0
- package/dist/cjs/api/types/Pricing.js +5 -0
- package/dist/cjs/api/types/PricingModelType.d.ts +9 -0
- package/dist/cjs/api/types/PricingModelType.js +11 -0
- package/dist/cjs/api/types/Salutation.d.ts +12 -0
- package/dist/cjs/api/types/Salutation.js +14 -0
- package/dist/cjs/api/types/Signal.d.ts +9 -0
- package/dist/cjs/api/types/Signal.js +5 -0
- package/dist/cjs/api/types/TaxExemptStatus.d.ts +9 -0
- package/dist/cjs/api/types/TaxExemptStatus.js +11 -0
- package/dist/cjs/api/types/Tier.d.ts +8 -0
- package/dist/cjs/api/types/Tier.js +5 -0
- package/dist/cjs/api/types/index.d.ts +27 -0
- package/dist/cjs/api/types/index.js +43 -0
- package/dist/cjs/core/auth/BasicAuth.d.ts +8 -0
- package/dist/cjs/core/auth/BasicAuth.js +26 -0
- package/dist/cjs/core/auth/BearerToken.d.ts +5 -0
- package/dist/cjs/core/auth/BearerToken.js +15 -0
- package/dist/cjs/core/auth/index.d.ts +2 -0
- package/dist/cjs/core/auth/index.js +7 -0
- package/dist/cjs/core/fetcher/APIResponse.d.ts +20 -0
- package/dist/cjs/core/fetcher/APIResponse.js +2 -0
- package/dist/cjs/core/fetcher/Fetcher.d.ts +40 -0
- package/dist/cjs/core/fetcher/Fetcher.js +120 -0
- package/dist/cjs/core/fetcher/Headers.d.ts +2 -0
- package/dist/cjs/core/fetcher/Headers.js +84 -0
- package/dist/cjs/core/fetcher/HttpResponsePromise.d.ts +58 -0
- package/dist/cjs/core/fetcher/HttpResponsePromise.js +103 -0
- package/dist/cjs/core/fetcher/RawResponse.d.ts +29 -0
- package/dist/cjs/core/fetcher/RawResponse.js +44 -0
- package/dist/cjs/core/fetcher/Supplier.d.ts +4 -0
- package/dist/cjs/core/fetcher/Supplier.js +22 -0
- package/dist/cjs/core/fetcher/createRequestUrl.d.ts +1 -0
- package/dist/cjs/core/fetcher/createRequestUrl.js +12 -0
- package/dist/cjs/core/fetcher/getFetchFn.d.ts +4 -0
- package/dist/cjs/core/fetcher/getFetchFn.js +68 -0
- package/dist/cjs/core/fetcher/getHeader.d.ts +1 -0
- package/dist/cjs/core/fetcher/getHeader.js +11 -0
- package/dist/cjs/core/fetcher/getRequestBody.d.ts +7 -0
- package/dist/cjs/core/fetcher/getRequestBody.js +23 -0
- package/dist/cjs/core/fetcher/getResponseBody.d.ts +1 -0
- package/dist/cjs/core/fetcher/getResponseBody.js +54 -0
- package/dist/cjs/core/fetcher/index.d.ts +8 -0
- package/dist/cjs/core/fetcher/index.js +15 -0
- package/dist/cjs/core/fetcher/makeRequest.d.ts +1 -0
- package/dist/cjs/core/fetcher/makeRequest.js +42 -0
- package/dist/cjs/core/fetcher/requestWithRetries.d.ts +1 -0
- package/dist/cjs/core/fetcher/requestWithRetries.js +40 -0
- package/dist/cjs/core/fetcher/signals.d.ts +11 -0
- package/dist/cjs/core/fetcher/signals.js +36 -0
- package/dist/cjs/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +30 -0
- package/dist/cjs/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +247 -0
- package/dist/cjs/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +21 -0
- package/dist/cjs/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +126 -0
- package/dist/cjs/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +31 -0
- package/dist/cjs/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +229 -0
- package/dist/cjs/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +18 -0
- package/dist/cjs/core/fetcher/stream-wrappers/chooseStreamWrapper.js +59 -0
- package/dist/cjs/core/headers.d.ts +3 -0
- package/dist/cjs/core/headers.js +29 -0
- package/dist/cjs/core/index.d.ts +3 -0
- package/dist/cjs/core/index.js +19 -0
- package/dist/cjs/core/json.d.ts +15 -0
- package/dist/cjs/core/json.js +24 -0
- package/dist/cjs/core/runtime/index.d.ts +1 -0
- package/dist/cjs/core/runtime/index.js +5 -0
- package/dist/cjs/core/runtime/runtime.d.ts +9 -0
- package/dist/cjs/core/runtime/runtime.js +103 -0
- package/dist/cjs/environments.d.ts +7 -0
- package/dist/cjs/environments.js +9 -0
- package/dist/cjs/errors/PaidApiError.d.ts +15 -0
- package/dist/cjs/errors/PaidApiError.js +30 -0
- package/dist/cjs/errors/PaidApiTimeoutError.d.ts +6 -0
- package/dist/cjs/errors/PaidApiTimeoutError.js +13 -0
- package/dist/cjs/errors/index.d.ts +2 -0
- package/dist/cjs/errors/index.js +7 -0
- package/dist/cjs/index.d.ts +4 -0
- package/dist/cjs/index.js +44 -0
- package/dist/cjs/version.d.ts +1 -0
- package/dist/cjs/version.js +4 -0
- package/dist/esm/Client.d.mts +44 -0
- package/dist/esm/Client.mjs +42 -0
- package/dist/esm/api/index.d.mts +2 -0
- package/dist/esm/api/index.mjs +2 -0
- package/dist/esm/api/resources/agents/client/Client.d.mts +107 -0
- package/dist/esm/api/resources/agents/client/Client.mjs +424 -0
- package/dist/esm/api/resources/agents/client/index.d.mts +1 -0
- package/dist/esm/api/resources/agents/client/index.mjs +1 -0
- package/dist/esm/api/resources/agents/client/requests/AgentCreate.d.mts +16 -0
- package/dist/esm/api/resources/agents/client/requests/AgentCreate.mjs +4 -0
- package/dist/esm/api/resources/agents/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/agents/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/agents/index.d.mts +1 -0
- package/dist/esm/api/resources/agents/index.mjs +1 -0
- package/dist/esm/api/resources/contacts/client/Client.d.mts +93 -0
- package/dist/esm/api/resources/contacts/client/Client.mjs +326 -0
- package/dist/esm/api/resources/contacts/client/index.d.mts +1 -0
- package/dist/esm/api/resources/contacts/client/index.mjs +1 -0
- package/dist/esm/api/resources/contacts/client/requests/ContactCreate.d.mts +32 -0
- package/dist/esm/api/resources/contacts/client/requests/ContactCreate.mjs +4 -0
- package/dist/esm/api/resources/contacts/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/contacts/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/contacts/index.d.mts +1 -0
- package/dist/esm/api/resources/contacts/index.mjs +1 -0
- package/dist/esm/api/resources/customers/client/Client.d.mts +106 -0
- package/dist/esm/api/resources/customers/client/Client.mjs +423 -0
- package/dist/esm/api/resources/customers/client/index.d.mts +1 -0
- package/dist/esm/api/resources/customers/client/index.mjs +1 -0
- package/dist/esm/api/resources/customers/client/requests/CustomerCreate.d.mts +21 -0
- package/dist/esm/api/resources/customers/client/requests/CustomerCreate.mjs +4 -0
- package/dist/esm/api/resources/customers/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/customers/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/customers/index.d.mts +1 -0
- package/dist/esm/api/resources/customers/index.mjs +1 -0
- package/dist/esm/api/resources/index.d.mts +10 -0
- package/dist/esm/api/resources/index.mjs +10 -0
- package/dist/esm/api/resources/orders/client/Client.d.mts +84 -0
- package/dist/esm/api/resources/orders/client/Client.mjs +280 -0
- package/dist/esm/api/resources/orders/client/index.d.mts +1 -0
- package/dist/esm/api/resources/orders/client/index.mjs +1 -0
- package/dist/esm/api/resources/orders/client/requests/OrderCreate.d.mts +25 -0
- package/dist/esm/api/resources/orders/client/requests/OrderCreate.mjs +4 -0
- package/dist/esm/api/resources/orders/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/orders/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/orders/index.d.mts +2 -0
- package/dist/esm/api/resources/orders/index.mjs +2 -0
- package/dist/esm/api/resources/orders/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/orders/resources/index.mjs +2 -0
- package/dist/esm/api/resources/orders/resources/lines/client/Client.d.mts +41 -0
- package/dist/esm/api/resources/orders/resources/lines/client/Client.mjs +79 -0
- package/dist/esm/api/resources/orders/resources/lines/client/index.d.mts +1 -0
- package/dist/esm/api/resources/orders/resources/lines/client/index.mjs +1 -0
- package/dist/esm/api/resources/orders/resources/lines/client/requests/LinesUpdateRequest.d.mts +11 -0
- package/dist/esm/api/resources/orders/resources/lines/client/requests/LinesUpdateRequest.mjs +4 -0
- package/dist/esm/api/resources/orders/resources/lines/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/orders/resources/lines/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/orders/resources/lines/index.d.mts +1 -0
- package/dist/esm/api/resources/orders/resources/lines/index.mjs +1 -0
- package/dist/esm/api/resources/usage/client/Client.d.mts +40 -0
- package/dist/esm/api/resources/usage/client/Client.mjs +78 -0
- package/dist/esm/api/resources/usage/client/index.d.mts +1 -0
- package/dist/esm/api/resources/usage/client/index.mjs +1 -0
- package/dist/esm/api/resources/usage/client/requests/UsageRecordBulkRequest.d.mts +11 -0
- package/dist/esm/api/resources/usage/client/requests/UsageRecordBulkRequest.mjs +4 -0
- package/dist/esm/api/resources/usage/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/usage/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/usage/index.d.mts +1 -0
- package/dist/esm/api/resources/usage/index.mjs +1 -0
- package/dist/esm/api/types/Address.d.mts +11 -0
- package/dist/esm/api/types/Address.mjs +4 -0
- package/dist/esm/api/types/Agent.d.mts +14 -0
- package/dist/esm/api/types/Agent.mjs +4 -0
- package/dist/esm/api/types/AgentAttribute.d.mts +9 -0
- package/dist/esm/api/types/AgentAttribute.mjs +4 -0
- package/dist/esm/api/types/AgentPricePoint.d.mts +10 -0
- package/dist/esm/api/types/AgentPricePoint.mjs +4 -0
- package/dist/esm/api/types/AgentPricePointTiers.d.mts +8 -0
- package/dist/esm/api/types/AgentPricePointTiers.mjs +4 -0
- package/dist/esm/api/types/AgentUpdate.d.mts +12 -0
- package/dist/esm/api/types/AgentUpdate.mjs +4 -0
- package/dist/esm/api/types/ApiError.d.mts +12 -0
- package/dist/esm/api/types/ApiError.mjs +4 -0
- package/dist/esm/api/types/BillingFrequency.d.mts +9 -0
- package/dist/esm/api/types/BillingFrequency.mjs +8 -0
- package/dist/esm/api/types/ChargeType.d.mts +10 -0
- package/dist/esm/api/types/ChargeType.mjs +9 -0
- package/dist/esm/api/types/Contact.d.mts +21 -0
- package/dist/esm/api/types/Contact.mjs +4 -0
- package/dist/esm/api/types/CreationSource.d.mts +10 -0
- package/dist/esm/api/types/CreationSource.mjs +9 -0
- package/dist/esm/api/types/CreationState.d.mts +8 -0
- package/dist/esm/api/types/CreationState.mjs +7 -0
- package/dist/esm/api/types/Customer.d.mts +18 -0
- package/dist/esm/api/types/Customer.mjs +4 -0
- package/dist/esm/api/types/CustomerUpdate.d.mts +15 -0
- package/dist/esm/api/types/CustomerUpdate.mjs +4 -0
- package/dist/esm/api/types/Error_.d.mts +10 -0
- package/dist/esm/api/types/Error_.mjs +4 -0
- package/dist/esm/api/types/Order.d.mts +22 -0
- package/dist/esm/api/types/Order.mjs +4 -0
- package/dist/esm/api/types/OrderLine.d.mts +20 -0
- package/dist/esm/api/types/OrderLine.mjs +4 -0
- package/dist/esm/api/types/OrderLineAttribute.d.mts +10 -0
- package/dist/esm/api/types/OrderLineAttribute.mjs +4 -0
- package/dist/esm/api/types/OrderLineAttributePricing.d.mts +11 -0
- package/dist/esm/api/types/OrderLineAttributePricing.mjs +4 -0
- package/dist/esm/api/types/OrderLineCreate.d.mts +9 -0
- package/dist/esm/api/types/OrderLineCreate.mjs +4 -0
- package/dist/esm/api/types/PricePoint.d.mts +10 -0
- package/dist/esm/api/types/PricePoint.mjs +4 -0
- package/dist/esm/api/types/Pricing.d.mts +12 -0
- package/dist/esm/api/types/Pricing.mjs +4 -0
- package/dist/esm/api/types/PricingModelType.d.mts +9 -0
- package/dist/esm/api/types/PricingModelType.mjs +8 -0
- package/dist/esm/api/types/Salutation.d.mts +12 -0
- package/dist/esm/api/types/Salutation.mjs +11 -0
- package/dist/esm/api/types/Signal.d.mts +9 -0
- package/dist/esm/api/types/Signal.mjs +4 -0
- package/dist/esm/api/types/TaxExemptStatus.d.mts +9 -0
- package/dist/esm/api/types/TaxExemptStatus.mjs +8 -0
- package/dist/esm/api/types/Tier.d.mts +8 -0
- package/dist/esm/api/types/Tier.mjs +4 -0
- package/dist/esm/api/types/index.d.mts +27 -0
- package/dist/esm/api/types/index.mjs +27 -0
- package/dist/esm/core/auth/BasicAuth.d.mts +8 -0
- package/dist/esm/core/auth/BasicAuth.mjs +23 -0
- package/dist/esm/core/auth/BearerToken.d.mts +5 -0
- package/dist/esm/core/auth/BearerToken.mjs +12 -0
- package/dist/esm/core/auth/index.d.mts +2 -0
- package/dist/esm/core/auth/index.mjs +2 -0
- package/dist/esm/core/fetcher/APIResponse.d.mts +20 -0
- package/dist/esm/core/fetcher/APIResponse.mjs +1 -0
- package/dist/esm/core/fetcher/Fetcher.d.mts +40 -0
- package/dist/esm/core/fetcher/Fetcher.mjs +116 -0
- package/dist/esm/core/fetcher/Headers.d.mts +2 -0
- package/dist/esm/core/fetcher/Headers.mjs +82 -0
- package/dist/esm/core/fetcher/HttpResponsePromise.d.mts +58 -0
- package/dist/esm/core/fetcher/HttpResponsePromise.mjs +99 -0
- package/dist/esm/core/fetcher/RawResponse.d.mts +29 -0
- package/dist/esm/core/fetcher/RawResponse.mjs +40 -0
- package/dist/esm/core/fetcher/Supplier.d.mts +4 -0
- package/dist/esm/core/fetcher/Supplier.mjs +19 -0
- package/dist/esm/core/fetcher/createRequestUrl.d.mts +1 -0
- package/dist/esm/core/fetcher/createRequestUrl.mjs +6 -0
- package/dist/esm/core/fetcher/getFetchFn.d.mts +4 -0
- package/dist/esm/core/fetcher/getFetchFn.mjs +32 -0
- package/dist/esm/core/fetcher/getHeader.d.mts +1 -0
- package/dist/esm/core/fetcher/getHeader.mjs +8 -0
- package/dist/esm/core/fetcher/getRequestBody.d.mts +7 -0
- package/dist/esm/core/fetcher/getRequestBody.mjs +20 -0
- package/dist/esm/core/fetcher/getResponseBody.d.mts +1 -0
- package/dist/esm/core/fetcher/getResponseBody.mjs +51 -0
- package/dist/esm/core/fetcher/index.d.mts +8 -0
- package/dist/esm/core/fetcher/index.mjs +5 -0
- package/dist/esm/core/fetcher/makeRequest.d.mts +1 -0
- package/dist/esm/core/fetcher/makeRequest.mjs +38 -0
- package/dist/esm/core/fetcher/requestWithRetries.d.mts +1 -0
- package/dist/esm/core/fetcher/requestWithRetries.mjs +37 -0
- package/dist/esm/core/fetcher/signals.d.mts +11 -0
- package/dist/esm/core/fetcher/signals.mjs +32 -0
- package/dist/esm/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.mts +30 -0
- package/dist/esm/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.mjs +243 -0
- package/dist/esm/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.mts +21 -0
- package/dist/esm/core/fetcher/stream-wrappers/NodePre18StreamWrapper.mjs +122 -0
- package/dist/esm/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.mts +31 -0
- package/dist/esm/core/fetcher/stream-wrappers/UndiciStreamWrapper.mjs +225 -0
- package/dist/esm/core/fetcher/stream-wrappers/chooseStreamWrapper.d.mts +18 -0
- package/dist/esm/core/fetcher/stream-wrappers/chooseStreamWrapper.mjs +23 -0
- package/dist/esm/core/headers.d.mts +3 -0
- package/dist/esm/core/headers.mjs +25 -0
- package/dist/esm/core/index.d.mts +3 -0
- package/dist/esm/core/index.mjs +3 -0
- package/dist/esm/core/json.d.mts +15 -0
- package/dist/esm/core/json.mjs +19 -0
- package/dist/esm/core/runtime/index.d.mts +1 -0
- package/dist/esm/core/runtime/index.mjs +1 -0
- package/dist/esm/core/runtime/runtime.d.mts +9 -0
- package/dist/esm/core/runtime/runtime.mjs +100 -0
- package/dist/esm/environments.d.mts +7 -0
- package/dist/esm/environments.mjs +6 -0
- package/dist/esm/errors/PaidApiError.d.mts +15 -0
- package/dist/esm/errors/PaidApiError.mjs +26 -0
- package/dist/esm/errors/PaidApiTimeoutError.d.mts +6 -0
- package/dist/esm/errors/PaidApiTimeoutError.mjs +9 -0
- package/dist/esm/errors/index.d.mts +2 -0
- package/dist/esm/errors/index.mjs +2 -0
- package/dist/esm/index.d.mts +4 -0
- package/dist/esm/index.mjs +4 -0
- package/dist/esm/version.d.mts +1 -0
- package/dist/esm/version.mjs +1 -0
- package/package.json +70 -0
- package/reference.md +1433 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.mjs";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as PaidApi from "../index.mjs";
|
|
5
|
+
export interface Agent {
|
|
6
|
+
id: string;
|
|
7
|
+
externalId?: string;
|
|
8
|
+
organizationId: string;
|
|
9
|
+
name: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
active: boolean;
|
|
12
|
+
agentCode?: string;
|
|
13
|
+
agentAttributes?: PaidApi.AgentAttribute[];
|
|
14
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as PaidApi from "../index.mjs";
|
|
5
|
+
export interface AgentPricePoint {
|
|
6
|
+
unitPrice?: number;
|
|
7
|
+
minQuantity?: number;
|
|
8
|
+
includedQuantity?: number;
|
|
9
|
+
tiers?: PaidApi.AgentPricePointTiers[];
|
|
10
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as PaidApi from "../index.mjs";
|
|
5
|
+
export interface AgentUpdate {
|
|
6
|
+
name?: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
externalId?: string;
|
|
9
|
+
active?: boolean;
|
|
10
|
+
agentCode?: string;
|
|
11
|
+
agentAttributes?: PaidApi.AgentAttribute[];
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* An API error response from the Paid API
|
|
6
|
+
*/
|
|
7
|
+
export interface ApiError {
|
|
8
|
+
/** A human-readable message providing more details about the error. */
|
|
9
|
+
message?: string;
|
|
10
|
+
code?: string;
|
|
11
|
+
details?: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export type BillingFrequency = "Monthly" | "Quarterly" | "Annual";
|
|
5
|
+
export declare const BillingFrequency: {
|
|
6
|
+
readonly Monthly: "Monthly";
|
|
7
|
+
readonly Quarterly: "Quarterly";
|
|
8
|
+
readonly Annual: "Annual";
|
|
9
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export type ChargeType = "oneTime" | "recurring" | "usage" | "seatBased";
|
|
5
|
+
export declare const ChargeType: {
|
|
6
|
+
readonly OneTime: "oneTime";
|
|
7
|
+
readonly Recurring: "recurring";
|
|
8
|
+
readonly Usage: "usage";
|
|
9
|
+
readonly SeatBased: "seatBased";
|
|
10
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as PaidApi from "../index.mjs";
|
|
5
|
+
export interface Contact {
|
|
6
|
+
id?: string;
|
|
7
|
+
externalId?: string;
|
|
8
|
+
organizationId?: string;
|
|
9
|
+
customerId?: string;
|
|
10
|
+
customerExternalId?: string;
|
|
11
|
+
salutation?: PaidApi.Salutation;
|
|
12
|
+
firstName?: string;
|
|
13
|
+
lastName?: string;
|
|
14
|
+
email?: string;
|
|
15
|
+
phone?: string;
|
|
16
|
+
billingStreet?: string;
|
|
17
|
+
billingCity?: string;
|
|
18
|
+
billingStateProvince?: string;
|
|
19
|
+
billingCountry?: string;
|
|
20
|
+
billingPostalCode?: string;
|
|
21
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export type CreationSource = "manual" | "api" | "crm" | "other";
|
|
5
|
+
export declare const CreationSource: {
|
|
6
|
+
readonly Manual: "manual";
|
|
7
|
+
readonly Api: "api";
|
|
8
|
+
readonly Crm: "crm";
|
|
9
|
+
readonly Other: "other";
|
|
10
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as PaidApi from "../index.mjs";
|
|
5
|
+
export interface Customer {
|
|
6
|
+
id: string;
|
|
7
|
+
organizationId: string;
|
|
8
|
+
name: string;
|
|
9
|
+
externalId?: string;
|
|
10
|
+
phone?: string;
|
|
11
|
+
employeeCount?: number;
|
|
12
|
+
annualRevenue?: number;
|
|
13
|
+
taxExemptStatus?: PaidApi.TaxExemptStatus;
|
|
14
|
+
creationSource?: PaidApi.CreationSource;
|
|
15
|
+
creationState?: PaidApi.CreationState;
|
|
16
|
+
website?: string;
|
|
17
|
+
billingAddress?: PaidApi.Address;
|
|
18
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as PaidApi from "../index.mjs";
|
|
5
|
+
export interface CustomerUpdate {
|
|
6
|
+
name?: string;
|
|
7
|
+
externalId?: string;
|
|
8
|
+
phone?: string;
|
|
9
|
+
employeeCount?: number;
|
|
10
|
+
annualRevenue?: number;
|
|
11
|
+
taxExemptStatus?: PaidApi.TaxExemptStatus;
|
|
12
|
+
creationSource?: PaidApi.CreationSource;
|
|
13
|
+
website?: string;
|
|
14
|
+
billingAddress?: PaidApi.Address;
|
|
15
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as PaidApi from "../index.mjs";
|
|
5
|
+
export interface Order {
|
|
6
|
+
id?: string;
|
|
7
|
+
name?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
customerId?: string;
|
|
10
|
+
organizationId?: string;
|
|
11
|
+
startDate?: string;
|
|
12
|
+
endDate?: string;
|
|
13
|
+
totalAmount?: number;
|
|
14
|
+
estimatedTax?: number;
|
|
15
|
+
billedAmountNoTax?: number;
|
|
16
|
+
billedTax?: number;
|
|
17
|
+
totalBilledAmount?: number;
|
|
18
|
+
pendingBillingAmount?: number;
|
|
19
|
+
creationState?: PaidApi.CreationState;
|
|
20
|
+
orderLines?: PaidApi.OrderLine[];
|
|
21
|
+
customer?: PaidApi.Customer;
|
|
22
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as PaidApi from "../index.mjs";
|
|
5
|
+
export interface OrderLine {
|
|
6
|
+
id?: string;
|
|
7
|
+
orderId?: string;
|
|
8
|
+
agentId?: string;
|
|
9
|
+
name?: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
startDate?: string;
|
|
12
|
+
endDate?: string;
|
|
13
|
+
totalAmount?: number;
|
|
14
|
+
billedAmountWithoutTax?: number;
|
|
15
|
+
billedTax?: number;
|
|
16
|
+
totalBilledAmount?: number;
|
|
17
|
+
creationState?: PaidApi.CreationState;
|
|
18
|
+
agent?: PaidApi.Agent;
|
|
19
|
+
orderLineAttributes?: PaidApi.OrderLineAttribute[];
|
|
20
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as PaidApi from "../index.mjs";
|
|
5
|
+
export interface OrderLineAttribute {
|
|
6
|
+
agentAttributeId?: string;
|
|
7
|
+
quantity?: number;
|
|
8
|
+
currency?: string;
|
|
9
|
+
pricing?: PaidApi.OrderLineAttributePricing;
|
|
10
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as PaidApi from "../index.mjs";
|
|
5
|
+
export interface OrderLineAttributePricing {
|
|
6
|
+
eventName?: string;
|
|
7
|
+
chargeType?: PaidApi.ChargeType;
|
|
8
|
+
pricePoint?: PaidApi.PricePoint;
|
|
9
|
+
pricingModel?: PaidApi.PricingModelType;
|
|
10
|
+
billingFrequency?: PaidApi.BillingFrequency;
|
|
11
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as PaidApi from "../index.mjs";
|
|
5
|
+
export interface Pricing {
|
|
6
|
+
eventName?: string;
|
|
7
|
+
taxable: boolean;
|
|
8
|
+
chargeType: PaidApi.ChargeType;
|
|
9
|
+
pricingModel: PaidApi.PricingModelType;
|
|
10
|
+
billingFrequency: PaidApi.BillingFrequency;
|
|
11
|
+
pricePoints: Record<string, PaidApi.AgentPricePoint>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export type PricingModelType = "PerUnit" | "VolumePricing" | "GraduatedPricing";
|
|
5
|
+
export declare const PricingModelType: {
|
|
6
|
+
readonly PerUnit: "PerUnit";
|
|
7
|
+
readonly VolumePricing: "VolumePricing";
|
|
8
|
+
readonly GraduatedPricing: "GraduatedPricing";
|
|
9
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export type Salutation = "Mr." | "Mrs." | "Miss" | "Ms." | "Dr." | "Prof.";
|
|
5
|
+
export declare const Salutation: {
|
|
6
|
+
readonly Mr: "Mr.";
|
|
7
|
+
readonly Mrs: "Mrs.";
|
|
8
|
+
readonly Miss: "Miss";
|
|
9
|
+
readonly Ms: "Ms.";
|
|
10
|
+
readonly Dr: "Dr.";
|
|
11
|
+
readonly Prof: "Prof.";
|
|
12
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export type TaxExemptStatus = "none" | "exempt" | "reverse";
|
|
5
|
+
export declare const TaxExemptStatus: {
|
|
6
|
+
readonly None: "none";
|
|
7
|
+
readonly Exempt: "exempt";
|
|
8
|
+
readonly Reverse: "reverse";
|
|
9
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export * from "./Customer.mjs";
|
|
2
|
+
export * from "./TaxExemptStatus.mjs";
|
|
3
|
+
export * from "./CreationSource.mjs";
|
|
4
|
+
export * from "./CreationState.mjs";
|
|
5
|
+
export * from "./Address.mjs";
|
|
6
|
+
export * from "./CustomerUpdate.mjs";
|
|
7
|
+
export * from "./Agent.mjs";
|
|
8
|
+
export * from "./AgentAttribute.mjs";
|
|
9
|
+
export * from "./Pricing.mjs";
|
|
10
|
+
export * from "./ChargeType.mjs";
|
|
11
|
+
export * from "./PricingModelType.mjs";
|
|
12
|
+
export * from "./BillingFrequency.mjs";
|
|
13
|
+
export * from "./AgentPricePoint.mjs";
|
|
14
|
+
export * from "./AgentPricePointTiers.mjs";
|
|
15
|
+
export * from "./AgentUpdate.mjs";
|
|
16
|
+
export * from "./Contact.mjs";
|
|
17
|
+
export * from "./Salutation.mjs";
|
|
18
|
+
export * from "./Order.mjs";
|
|
19
|
+
export * from "./OrderLine.mjs";
|
|
20
|
+
export * from "./OrderLineAttribute.mjs";
|
|
21
|
+
export * from "./OrderLineAttributePricing.mjs";
|
|
22
|
+
export * from "./PricePoint.mjs";
|
|
23
|
+
export * from "./Tier.mjs";
|
|
24
|
+
export * from "./OrderLineCreate.mjs";
|
|
25
|
+
export * from "./Signal.mjs";
|
|
26
|
+
export * from "./Error_.mjs";
|
|
27
|
+
export * from "./ApiError.mjs";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export * from "./Customer.mjs";
|
|
2
|
+
export * from "./TaxExemptStatus.mjs";
|
|
3
|
+
export * from "./CreationSource.mjs";
|
|
4
|
+
export * from "./CreationState.mjs";
|
|
5
|
+
export * from "./Address.mjs";
|
|
6
|
+
export * from "./CustomerUpdate.mjs";
|
|
7
|
+
export * from "./Agent.mjs";
|
|
8
|
+
export * from "./AgentAttribute.mjs";
|
|
9
|
+
export * from "./Pricing.mjs";
|
|
10
|
+
export * from "./ChargeType.mjs";
|
|
11
|
+
export * from "./PricingModelType.mjs";
|
|
12
|
+
export * from "./BillingFrequency.mjs";
|
|
13
|
+
export * from "./AgentPricePoint.mjs";
|
|
14
|
+
export * from "./AgentPricePointTiers.mjs";
|
|
15
|
+
export * from "./AgentUpdate.mjs";
|
|
16
|
+
export * from "./Contact.mjs";
|
|
17
|
+
export * from "./Salutation.mjs";
|
|
18
|
+
export * from "./Order.mjs";
|
|
19
|
+
export * from "./OrderLine.mjs";
|
|
20
|
+
export * from "./OrderLineAttribute.mjs";
|
|
21
|
+
export * from "./OrderLineAttributePricing.mjs";
|
|
22
|
+
export * from "./PricePoint.mjs";
|
|
23
|
+
export * from "./Tier.mjs";
|
|
24
|
+
export * from "./OrderLineCreate.mjs";
|
|
25
|
+
export * from "./Signal.mjs";
|
|
26
|
+
export * from "./Error_.mjs";
|
|
27
|
+
export * from "./ApiError.mjs";
|