conductor-node 11.10.1 → 12.0.0-beta.2
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/CHANGELOG.md +54 -0
- package/LICENSE +201 -21
- package/README.md +336 -64
- package/_shims/MultipartBody.d.ts +9 -0
- package/_shims/MultipartBody.d.ts.map +1 -0
- package/_shims/MultipartBody.js +16 -0
- package/_shims/MultipartBody.js.map +1 -0
- package/_shims/MultipartBody.mjs +12 -0
- package/_shims/MultipartBody.mjs.map +1 -0
- package/_shims/README.md +46 -0
- package/_shims/auto/runtime-bun.d.ts +5 -0
- package/_shims/auto/runtime-bun.d.ts.map +1 -0
- package/_shims/auto/runtime-bun.js +21 -0
- package/_shims/auto/runtime-bun.js.map +1 -0
- package/_shims/auto/runtime-bun.mjs +2 -0
- package/_shims/auto/runtime-bun.mjs.map +1 -0
- package/_shims/auto/runtime-node.d.ts +5 -0
- package/_shims/auto/runtime-node.d.ts.map +1 -0
- package/_shims/auto/runtime-node.js +21 -0
- package/_shims/auto/runtime-node.js.map +1 -0
- package/_shims/auto/runtime-node.mjs +2 -0
- package/_shims/auto/runtime-node.mjs.map +1 -0
- package/_shims/auto/runtime.d.ts +5 -0
- package/_shims/auto/runtime.d.ts.map +1 -0
- package/_shims/auto/runtime.js +21 -0
- package/_shims/auto/runtime.js.map +1 -0
- package/_shims/auto/runtime.mjs +2 -0
- package/_shims/auto/runtime.mjs.map +1 -0
- package/_shims/auto/types-node.d.ts +5 -0
- package/_shims/auto/types-node.d.ts.map +1 -0
- package/_shims/auto/types-node.js +21 -0
- package/_shims/auto/types-node.js.map +1 -0
- package/_shims/auto/types-node.mjs +2 -0
- package/_shims/auto/types-node.mjs.map +1 -0
- package/_shims/auto/types.d.ts +101 -0
- package/_shims/auto/types.js +3 -0
- package/_shims/auto/types.mjs +3 -0
- package/_shims/bun-runtime.d.ts +6 -0
- package/_shims/bun-runtime.d.ts.map +1 -0
- package/_shims/bun-runtime.js +14 -0
- package/_shims/bun-runtime.js.map +1 -0
- package/_shims/bun-runtime.mjs +10 -0
- package/_shims/bun-runtime.mjs.map +1 -0
- package/_shims/index.d.ts +81 -0
- package/_shims/index.js +13 -0
- package/_shims/index.mjs +7 -0
- package/_shims/manual-types.d.ts +12 -0
- package/_shims/manual-types.js +3 -0
- package/_shims/manual-types.mjs +3 -0
- package/_shims/node-runtime.d.ts +3 -0
- package/_shims/node-runtime.d.ts.map +1 -0
- package/_shims/node-runtime.js +89 -0
- package/_shims/node-runtime.js.map +1 -0
- package/_shims/node-runtime.mjs +56 -0
- package/_shims/node-runtime.mjs.map +1 -0
- package/_shims/node-types.d.ts +42 -0
- package/_shims/node-types.js +3 -0
- package/_shims/node-types.mjs +3 -0
- package/_shims/registry.d.ts +37 -0
- package/_shims/registry.d.ts.map +1 -0
- package/_shims/registry.js +41 -0
- package/_shims/registry.js.map +1 -0
- package/_shims/registry.mjs +37 -0
- package/_shims/registry.mjs.map +1 -0
- package/_shims/web-runtime.d.ts +5 -0
- package/_shims/web-runtime.d.ts.map +1 -0
- package/_shims/web-runtime.js +78 -0
- package/_shims/web-runtime.js.map +1 -0
- package/_shims/web-runtime.mjs +71 -0
- package/_shims/web-runtime.mjs.map +1 -0
- package/_shims/web-types.d.ts +83 -0
- package/_shims/web-types.js +3 -0
- package/_shims/web-types.mjs +3 -0
- package/core.d.ts +241 -0
- package/core.d.ts.map +1 -0
- package/core.js +914 -0
- package/core.js.map +1 -0
- package/core.mjs +882 -0
- package/core.mjs.map +1 -0
- package/error.d.ts +47 -0
- package/error.d.ts.map +1 -0
- package/error.js +113 -0
- package/error.js.map +1 -0
- package/error.mjs +97 -0
- package/error.mjs.map +1 -0
- package/index.d.mts +121 -0
- package/index.d.ts +121 -0
- package/index.d.ts.map +1 -0
- package/index.js +133 -0
- package/index.js.map +1 -0
- package/index.mjs +90 -0
- package/index.mjs.map +1 -0
- package/internal/qs/formats.d.ts +6 -0
- package/internal/qs/formats.d.ts.map +1 -0
- package/internal/qs/formats.js +11 -0
- package/internal/qs/formats.js.map +1 -0
- package/internal/qs/formats.mjs +8 -0
- package/internal/qs/formats.mjs.map +1 -0
- package/internal/qs/index.d.ts +10 -0
- package/internal/qs/index.d.ts.map +1 -0
- package/internal/qs/index.js +14 -0
- package/internal/qs/index.js.map +1 -0
- package/internal/qs/index.mjs +10 -0
- package/internal/qs/index.mjs.map +1 -0
- package/internal/qs/stringify.d.ts +3 -0
- package/internal/qs/stringify.d.ts.map +1 -0
- package/internal/qs/stringify.js +280 -0
- package/internal/qs/stringify.js.map +1 -0
- package/internal/qs/stringify.mjs +276 -0
- package/internal/qs/stringify.mjs.map +1 -0
- package/internal/qs/types.d.ts +57 -0
- package/internal/qs/types.d.ts.map +1 -0
- package/{dist/src/resources → internal/qs}/types.js +1 -0
- package/internal/qs/types.js.map +1 -0
- package/internal/qs/types.mjs +2 -0
- package/internal/qs/types.mjs.map +1 -0
- package/internal/qs/utils.d.ts +14 -0
- package/internal/qs/utils.d.ts.map +1 -0
- package/internal/qs/utils.js +229 -0
- package/internal/qs/utils.js.map +1 -0
- package/internal/qs/utils.mjs +217 -0
- package/internal/qs/utils.mjs.map +1 -0
- package/package.json +111 -35
- package/pagination.d.ts +18 -0
- package/pagination.d.ts.map +1 -0
- package/pagination.js +40 -0
- package/pagination.js.map +1 -0
- package/pagination.mjs +36 -0
- package/pagination.mjs.map +1 -0
- package/resource.d.ts +6 -0
- package/resource.d.ts.map +1 -0
- package/resource.js +11 -0
- package/resource.js.map +1 -0
- package/resource.mjs +7 -0
- package/resource.mjs.map +1 -0
- package/resources/auth-sessions.d.ts +79 -0
- package/resources/auth-sessions.d.ts.map +1 -0
- package/resources/auth-sessions.js +23 -0
- package/resources/auth-sessions.js.map +1 -0
- package/resources/auth-sessions.mjs +19 -0
- package/resources/auth-sessions.mjs.map +1 -0
- package/resources/end-users.d.ts +154 -0
- package/resources/end-users.d.ts.map +1 -0
- package/resources/end-users.js +48 -0
- package/resources/end-users.js.map +1 -0
- package/resources/end-users.mjs +44 -0
- package/resources/end-users.mjs.map +1 -0
- package/resources/index.d.ts +4 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +11 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +5 -0
- package/resources/index.mjs.map +1 -0
- package/resources/qbd/accounts.d.ts +579 -0
- package/resources/qbd/accounts.d.ts.map +1 -0
- package/resources/qbd/accounts.js +54 -0
- package/resources/qbd/accounts.js.map +1 -0
- package/resources/qbd/accounts.mjs +50 -0
- package/resources/qbd/accounts.mjs.map +1 -0
- package/resources/qbd/bill-check-payments.d.ts +831 -0
- package/resources/qbd/bill-check-payments.d.ts.map +1 -0
- package/resources/qbd/bill-check-payments.js +70 -0
- package/resources/qbd/bill-check-payments.js.map +1 -0
- package/resources/qbd/bill-check-payments.mjs +65 -0
- package/resources/qbd/bill-check-payments.mjs.map +1 -0
- package/resources/qbd/bill-credit-card-payments.d.ts +641 -0
- package/resources/qbd/bill-credit-card-payments.d.ts.map +1 -0
- package/resources/qbd/bill-credit-card-payments.js +55 -0
- package/resources/qbd/bill-credit-card-payments.js.map +1 -0
- package/resources/qbd/bill-credit-card-payments.mjs +50 -0
- package/resources/qbd/bill-credit-card-payments.mjs.map +1 -0
- package/resources/qbd/bills.d.ts +2561 -0
- package/resources/qbd/bills.d.ts.map +1 -0
- package/resources/qbd/bills.js +69 -0
- package/resources/qbd/bills.js.map +1 -0
- package/resources/qbd/bills.mjs +64 -0
- package/resources/qbd/bills.mjs.map +1 -0
- package/resources/qbd/checks.d.ts +2528 -0
- package/resources/qbd/checks.d.ts.map +1 -0
- package/resources/qbd/checks.js +69 -0
- package/resources/qbd/checks.js.map +1 -0
- package/resources/qbd/checks.mjs +64 -0
- package/resources/qbd/checks.mjs.map +1 -0
- package/resources/qbd/classes.d.ts +289 -0
- package/resources/qbd/classes.d.ts.map +1 -0
- package/resources/qbd/classes.js +54 -0
- package/resources/qbd/classes.js.map +1 -0
- package/resources/qbd/classes.mjs +50 -0
- package/resources/qbd/classes.mjs.map +1 -0
- package/resources/qbd/credit-card-charges.d.ts +2236 -0
- package/resources/qbd/credit-card-charges.d.ts.map +1 -0
- package/resources/qbd/credit-card-charges.js +69 -0
- package/resources/qbd/credit-card-charges.js.map +1 -0
- package/resources/qbd/credit-card-charges.mjs +64 -0
- package/resources/qbd/credit-card-charges.mjs.map +1 -0
- package/resources/qbd/credit-card-credits.d.ts +2233 -0
- package/resources/qbd/credit-card-credits.d.ts.map +1 -0
- package/resources/qbd/credit-card-credits.js +69 -0
- package/resources/qbd/credit-card-credits.js.map +1 -0
- package/resources/qbd/credit-card-credits.mjs +64 -0
- package/resources/qbd/credit-card-credits.mjs.map +1 -0
- package/resources/qbd/credit-memos.d.ts +2649 -0
- package/resources/qbd/credit-memos.d.ts.map +1 -0
- package/resources/qbd/credit-memos.js +69 -0
- package/resources/qbd/credit-memos.js.map +1 -0
- package/resources/qbd/credit-memos.mjs +64 -0
- package/resources/qbd/credit-memos.mjs.map +1 -0
- package/resources/qbd/customers.d.ts +2106 -0
- package/resources/qbd/customers.d.ts.map +1 -0
- package/resources/qbd/customers.js +58 -0
- package/resources/qbd/customers.js.map +1 -0
- package/resources/qbd/customers.mjs +53 -0
- package/resources/qbd/customers.mjs.map +1 -0
- package/resources/qbd/date-driven-terms.d.ts +242 -0
- package/resources/qbd/date-driven-terms.d.ts.map +1 -0
- package/resources/qbd/date-driven-terms.js +43 -0
- package/resources/qbd/date-driven-terms.js.map +1 -0
- package/resources/qbd/date-driven-terms.mjs +39 -0
- package/resources/qbd/date-driven-terms.mjs.map +1 -0
- package/resources/qbd/discount-items.d.ts +576 -0
- package/resources/qbd/discount-items.d.ts.map +1 -0
- package/resources/qbd/discount-items.js +58 -0
- package/resources/qbd/discount-items.js.map +1 -0
- package/resources/qbd/discount-items.mjs +53 -0
- package/resources/qbd/discount-items.mjs.map +1 -0
- package/resources/qbd/employees.d.ts +1669 -0
- package/resources/qbd/employees.d.ts.map +1 -0
- package/resources/qbd/employees.js +58 -0
- package/resources/qbd/employees.js.map +1 -0
- package/resources/qbd/employees.mjs +53 -0
- package/resources/qbd/employees.mjs.map +1 -0
- package/resources/qbd/estimates.d.ts +2493 -0
- package/resources/qbd/estimates.d.ts.map +1 -0
- package/resources/qbd/estimates.js +69 -0
- package/resources/qbd/estimates.js.map +1 -0
- package/resources/qbd/estimates.mjs +64 -0
- package/resources/qbd/estimates.mjs.map +1 -0
- package/resources/qbd/index.d.ts +37 -0
- package/resources/qbd/index.d.ts.map +1 -0
- package/resources/qbd/index.js +105 -0
- package/resources/qbd/index.js.map +1 -0
- package/resources/qbd/index.mjs +38 -0
- package/resources/qbd/index.mjs.map +1 -0
- package/resources/qbd/inventory-adjustments.d.ts +814 -0
- package/resources/qbd/inventory-adjustments.d.ts.map +1 -0
- package/resources/qbd/inventory-adjustments.js +66 -0
- package/resources/qbd/inventory-adjustments.js.map +1 -0
- package/resources/qbd/inventory-adjustments.mjs +62 -0
- package/resources/qbd/inventory-adjustments.mjs.map +1 -0
- package/resources/qbd/inventory-assembly-items.d.ts +931 -0
- package/resources/qbd/inventory-assembly-items.d.ts.map +1 -0
- package/resources/qbd/inventory-assembly-items.js +54 -0
- package/resources/qbd/inventory-assembly-items.js.map +1 -0
- package/resources/qbd/inventory-assembly-items.mjs +49 -0
- package/resources/qbd/inventory-assembly-items.mjs.map +1 -0
- package/resources/qbd/inventory-items.d.ts +844 -0
- package/resources/qbd/inventory-items.d.ts.map +1 -0
- package/resources/qbd/inventory-items.js +58 -0
- package/resources/qbd/inventory-items.js.map +1 -0
- package/resources/qbd/inventory-items.mjs +53 -0
- package/resources/qbd/inventory-items.mjs.map +1 -0
- package/resources/qbd/inventory-sites.d.ts +477 -0
- package/resources/qbd/inventory-sites.d.ts.map +1 -0
- package/resources/qbd/inventory-sites.js +54 -0
- package/resources/qbd/inventory-sites.js.map +1 -0
- package/resources/qbd/inventory-sites.mjs +50 -0
- package/resources/qbd/inventory-sites.mjs.map +1 -0
- package/resources/qbd/invoices.d.ts +2873 -0
- package/resources/qbd/invoices.d.ts.map +1 -0
- package/resources/qbd/invoices.js +69 -0
- package/resources/qbd/invoices.js.map +1 -0
- package/resources/qbd/invoices.mjs +64 -0
- package/resources/qbd/invoices.mjs.map +1 -0
- package/resources/qbd/journal-entries.d.ts +856 -0
- package/resources/qbd/journal-entries.d.ts.map +1 -0
- package/resources/qbd/journal-entries.js +69 -0
- package/resources/qbd/journal-entries.js.map +1 -0
- package/resources/qbd/journal-entries.mjs +64 -0
- package/resources/qbd/journal-entries.mjs.map +1 -0
- package/resources/qbd/non-inventory-items.d.ts +950 -0
- package/resources/qbd/non-inventory-items.d.ts.map +1 -0
- package/resources/qbd/non-inventory-items.js +58 -0
- package/resources/qbd/non-inventory-items.js.map +1 -0
- package/resources/qbd/non-inventory-items.mjs +53 -0
- package/resources/qbd/non-inventory-items.mjs.map +1 -0
- package/resources/qbd/payroll-wage-items.d.ts +215 -0
- package/resources/qbd/payroll-wage-items.d.ts.map +1 -0
- package/resources/qbd/payroll-wage-items.js +47 -0
- package/resources/qbd/payroll-wage-items.js.map +1 -0
- package/resources/qbd/payroll-wage-items.mjs +42 -0
- package/resources/qbd/payroll-wage-items.mjs.map +1 -0
- package/resources/qbd/purchase-orders.d.ts +2554 -0
- package/resources/qbd/purchase-orders.d.ts.map +1 -0
- package/resources/qbd/purchase-orders.js +69 -0
- package/resources/qbd/purchase-orders.js.map +1 -0
- package/resources/qbd/purchase-orders.mjs +64 -0
- package/resources/qbd/purchase-orders.mjs.map +1 -0
- package/resources/qbd/qbd.d.ts +146 -0
- package/resources/qbd/qbd.d.ts.map +1 -0
- package/resources/qbd/qbd.js +202 -0
- package/resources/qbd/qbd.js.map +1 -0
- package/resources/qbd/qbd.mjs +175 -0
- package/resources/qbd/qbd.mjs.map +1 -0
- package/resources/qbd/receive-payments.d.ts +1282 -0
- package/resources/qbd/receive-payments.d.ts.map +1 -0
- package/resources/qbd/receive-payments.js +70 -0
- package/resources/qbd/receive-payments.js.map +1 -0
- package/resources/qbd/receive-payments.mjs +65 -0
- package/resources/qbd/receive-payments.mjs.map +1 -0
- package/resources/qbd/sales-orders.d.ts +2628 -0
- package/resources/qbd/sales-orders.d.ts.map +1 -0
- package/resources/qbd/sales-orders.js +69 -0
- package/resources/qbd/sales-orders.js.map +1 -0
- package/resources/qbd/sales-orders.mjs +64 -0
- package/resources/qbd/sales-orders.mjs.map +1 -0
- package/resources/qbd/sales-receipts.d.ts +3373 -0
- package/resources/qbd/sales-receipts.d.ts.map +1 -0
- package/resources/qbd/sales-receipts.js +69 -0
- package/resources/qbd/sales-receipts.js.map +1 -0
- package/resources/qbd/sales-receipts.mjs +64 -0
- package/resources/qbd/sales-receipts.mjs.map +1 -0
- package/resources/qbd/sales-representatives.d.ts +251 -0
- package/resources/qbd/sales-representatives.d.ts.map +1 -0
- package/resources/qbd/sales-representatives.js +54 -0
- package/resources/qbd/sales-representatives.js.map +1 -0
- package/resources/qbd/sales-representatives.mjs +50 -0
- package/resources/qbd/sales-representatives.mjs.map +1 -0
- package/resources/qbd/sales-tax-codes.d.ts +306 -0
- package/resources/qbd/sales-tax-codes.d.ts.map +1 -0
- package/resources/qbd/sales-tax-codes.js +54 -0
- package/resources/qbd/sales-tax-codes.js.map +1 -0
- package/resources/qbd/sales-tax-codes.mjs +50 -0
- package/resources/qbd/sales-tax-codes.mjs.map +1 -0
- package/resources/qbd/sales-tax-items.d.ts +458 -0
- package/resources/qbd/sales-tax-items.d.ts.map +1 -0
- package/resources/qbd/sales-tax-items.js +58 -0
- package/resources/qbd/sales-tax-items.js.map +1 -0
- package/resources/qbd/sales-tax-items.mjs +53 -0
- package/resources/qbd/sales-tax-items.mjs.map +1 -0
- package/resources/qbd/service-items.d.ts +923 -0
- package/resources/qbd/service-items.d.ts.map +1 -0
- package/resources/qbd/service-items.js +58 -0
- package/resources/qbd/service-items.js.map +1 -0
- package/resources/qbd/service-items.mjs +53 -0
- package/resources/qbd/service-items.mjs.map +1 -0
- package/resources/qbd/standard-terms.d.ts +225 -0
- package/resources/qbd/standard-terms.d.ts.map +1 -0
- package/resources/qbd/standard-terms.js +43 -0
- package/resources/qbd/standard-terms.js.map +1 -0
- package/resources/qbd/standard-terms.mjs +39 -0
- package/resources/qbd/standard-terms.mjs.map +1 -0
- package/resources/qbd/subtotal-items.d.ts +323 -0
- package/resources/qbd/subtotal-items.d.ts.map +1 -0
- package/resources/qbd/subtotal-items.js +58 -0
- package/resources/qbd/subtotal-items.js.map +1 -0
- package/resources/qbd/subtotal-items.mjs +53 -0
- package/resources/qbd/subtotal-items.mjs.map +1 -0
- package/resources/qbd/transfers.d.ts +269 -0
- package/resources/qbd/transfers.d.ts.map +1 -0
- package/resources/qbd/transfers.js +58 -0
- package/resources/qbd/transfers.js.map +1 -0
- package/resources/qbd/transfers.mjs +53 -0
- package/resources/qbd/transfers.mjs.map +1 -0
- package/resources/qbd/vendor-credits.d.ts +2298 -0
- package/resources/qbd/vendor-credits.d.ts.map +1 -0
- package/resources/qbd/vendor-credits.js +69 -0
- package/resources/qbd/vendor-credits.js.map +1 -0
- package/resources/qbd/vendor-credits.mjs +64 -0
- package/resources/qbd/vendor-credits.mjs.map +1 -0
- package/resources/qbd/vendors.d.ts +1677 -0
- package/resources/qbd/vendors.d.ts.map +1 -0
- package/resources/qbd/vendors.js +58 -0
- package/resources/qbd/vendors.js.map +1 -0
- package/resources/qbd/vendors.mjs +53 -0
- package/resources/qbd/vendors.mjs.map +1 -0
- package/shims/node.d.ts +30 -0
- package/shims/node.d.ts.map +1 -0
- package/shims/node.js +31 -0
- package/shims/node.js.map +1 -0
- package/shims/node.mjs +5 -0
- package/shims/node.mjs.map +1 -0
- package/shims/web.d.ts +26 -0
- package/shims/web.d.ts.map +1 -0
- package/shims/web.js +31 -0
- package/shims/web.js.map +1 -0
- package/shims/web.mjs +5 -0
- package/shims/web.mjs.map +1 -0
- package/src/_shims/MultipartBody.ts +9 -0
- package/src/_shims/README.md +46 -0
- package/src/_shims/auto/runtime-bun.ts +4 -0
- package/src/_shims/auto/runtime-node.ts +4 -0
- package/src/_shims/auto/runtime.ts +4 -0
- package/src/_shims/auto/types-node.ts +4 -0
- package/src/_shims/auto/types.d.ts +101 -0
- package/src/_shims/auto/types.js +3 -0
- package/src/_shims/auto/types.mjs +3 -0
- package/src/_shims/bun-runtime.ts +14 -0
- package/src/_shims/index.d.ts +81 -0
- package/src/_shims/index.js +13 -0
- package/src/_shims/index.mjs +7 -0
- package/src/_shims/manual-types.d.ts +12 -0
- package/src/_shims/manual-types.js +3 -0
- package/src/_shims/manual-types.mjs +3 -0
- package/src/_shims/node-runtime.ts +81 -0
- package/src/_shims/node-types.d.ts +42 -0
- package/src/_shims/node-types.js +3 -0
- package/src/_shims/node-types.mjs +3 -0
- package/src/_shims/registry.ts +67 -0
- package/src/_shims/web-runtime.ts +103 -0
- package/src/_shims/web-types.d.ts +83 -0
- package/src/_shims/web-types.js +3 -0
- package/src/_shims/web-types.mjs +3 -0
- package/src/core.ts +1208 -0
- package/src/error.ts +130 -0
- package/src/index.ts +227 -0
- package/src/internal/qs/LICENSE.md +13 -0
- package/src/internal/qs/README.md +3 -0
- package/src/internal/qs/formats.ts +9 -0
- package/src/internal/qs/index.ts +13 -0
- package/src/internal/qs/stringify.ts +388 -0
- package/src/internal/qs/types.ts +71 -0
- package/src/internal/qs/utils.ts +265 -0
- package/src/lib/.keep +4 -0
- package/src/pagination.ts +60 -0
- package/src/resource.ts +11 -0
- package/src/resources/auth-sessions.ts +99 -0
- package/src/resources/end-users.ts +216 -0
- package/src/resources/index.ts +14 -0
- package/src/resources/qbd/accounts.ts +797 -0
- package/src/resources/qbd/bill-check-payments.ts +1086 -0
- package/src/resources/qbd/bill-credit-card-payments.ts +851 -0
- package/src/resources/qbd/bills.ts +3039 -0
- package/src/resources/qbd/checks.ts +3003 -0
- package/src/resources/qbd/classes.ts +366 -0
- package/src/resources/qbd/credit-card-charges.ts +2646 -0
- package/src/resources/qbd/credit-card-credits.ts +2643 -0
- package/src/resources/qbd/credit-memos.ts +3157 -0
- package/src/resources/qbd/customers.ts +2518 -0
- package/src/resources/qbd/date-driven-terms.ts +314 -0
- package/src/resources/qbd/discount-items.ts +712 -0
- package/src/resources/qbd/employees.ts +2266 -0
- package/src/resources/qbd/estimates.ts +2975 -0
- package/src/resources/qbd/index.ts +346 -0
- package/src/resources/qbd/inventory-adjustments.ts +1008 -0
- package/src/resources/qbd/inventory-assembly-items.ts +1126 -0
- package/src/resources/qbd/inventory-items.ts +1026 -0
- package/src/resources/qbd/inventory-sites.ts +605 -0
- package/src/resources/qbd/invoices.ts +3398 -0
- package/src/resources/qbd/journal-entries.ts +1051 -0
- package/src/resources/qbd/non-inventory-items.ts +1138 -0
- package/src/resources/qbd/payroll-wage-items.ts +304 -0
- package/src/resources/qbd/purchase-orders.ts +3045 -0
- package/src/resources/qbd/qbd.ts +876 -0
- package/src/resources/qbd/receive-payments.ts +1609 -0
- package/src/resources/qbd/sales-orders.ts +3141 -0
- package/src/resources/qbd/sales-receipts.ts +3977 -0
- package/src/resources/qbd/sales-representatives.ts +340 -0
- package/src/resources/qbd/sales-tax-codes.ts +398 -0
- package/src/resources/qbd/sales-tax-items.ts +583 -0
- package/src/resources/qbd/service-items.ts +1105 -0
- package/src/resources/qbd/standard-terms.ts +295 -0
- package/src/resources/qbd/subtotal-items.ts +430 -0
- package/src/resources/qbd/transfers.ts +359 -0
- package/src/resources/qbd/vendor-credits.ts +2742 -0
- package/src/resources/qbd/vendors.ts +2017 -0
- package/src/shims/node.ts +50 -0
- package/src/shims/web.ts +50 -0
- package/src/tsconfig.json +11 -0
- package/src/uploads.ts +255 -0
- package/src/version.ts +1 -0
- package/uploads.d.ts +75 -0
- package/uploads.d.ts.map +1 -0
- package/uploads.js +171 -0
- package/uploads.js.map +1 -0
- package/uploads.mjs +158 -0
- package/uploads.mjs.map +1 -0
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +5 -0
- package/version.js.map +1 -0
- package/version.mjs +2 -0
- package/version.mjs.map +1 -0
- package/dist/package.json +0 -48
- package/dist/src/Client.d.ts +0 -21
- package/dist/src/Client.js +0 -54
- package/dist/src/index.d.ts +0 -11
- package/dist/src/index.js +0 -59
- package/dist/src/integrations/BaseIntegration.d.ts +0 -9
- package/dist/src/integrations/BaseIntegration.js +0 -14
- package/dist/src/integrations/qbd/QbdIntegration.d.ts +0 -3120
- package/dist/src/integrations/qbd/QbdIntegration.js +0 -3147
- package/dist/src/integrations/qbd/qbdTypes.d.ts +0 -14076
- package/dist/src/integrations/qbd/qbdTypes.js +0 -2
- package/dist/src/interceptors/errorHandling.d.ts +0 -2
- package/dist/src/interceptors/errorHandling.js +0 -53
- package/dist/src/interceptors/logging.d.ts +0 -18
- package/dist/src/interceptors/logging.js +0 -70
- package/dist/src/resources/AuthSessionsResource.d.ts +0 -77
- package/dist/src/resources/AuthSessionsResource.js +0 -26
- package/dist/src/resources/BaseResource.d.ts +0 -6
- package/dist/src/resources/BaseResource.js +0 -9
- package/dist/src/resources/EndUsersResource.d.ts +0 -84
- package/dist/src/resources/EndUsersResource.js +0 -57
- package/dist/src/resources/types.d.ts +0 -40
- package/dist/src/utils/checkForUpdates.d.ts +0 -2
- package/dist/src/utils/checkForUpdates.js +0 -65
- package/dist/src/utils/env.d.ts +0 -1
- package/dist/src/utils/env.js +0 -15
- package/dist/src/utils/error.d.ts +0 -184
- package/dist/src/utils/error.js +0 -254
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
import { RFC1738 } from "./formats.mjs";
|
|
2
|
+
const has = Object.prototype.hasOwnProperty;
|
|
3
|
+
const is_array = Array.isArray;
|
|
4
|
+
const hex_table = (() => {
|
|
5
|
+
const array = [];
|
|
6
|
+
for (let i = 0; i < 256; ++i) {
|
|
7
|
+
array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
|
|
8
|
+
}
|
|
9
|
+
return array;
|
|
10
|
+
})();
|
|
11
|
+
function compact_queue(queue) {
|
|
12
|
+
while (queue.length > 1) {
|
|
13
|
+
const item = queue.pop();
|
|
14
|
+
if (!item)
|
|
15
|
+
continue;
|
|
16
|
+
const obj = item.obj[item.prop];
|
|
17
|
+
if (is_array(obj)) {
|
|
18
|
+
const compacted = [];
|
|
19
|
+
for (let j = 0; j < obj.length; ++j) {
|
|
20
|
+
if (typeof obj[j] !== 'undefined') {
|
|
21
|
+
compacted.push(obj[j]);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
item.obj[item.prop] = compacted;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
function array_to_object(source, options) {
|
|
30
|
+
const obj = options && options.plainObjects ? Object.create(null) : {};
|
|
31
|
+
for (let i = 0; i < source.length; ++i) {
|
|
32
|
+
if (typeof source[i] !== 'undefined') {
|
|
33
|
+
obj[i] = source[i];
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return obj;
|
|
37
|
+
}
|
|
38
|
+
export function merge(target, source, options = {}) {
|
|
39
|
+
if (!source) {
|
|
40
|
+
return target;
|
|
41
|
+
}
|
|
42
|
+
if (typeof source !== 'object') {
|
|
43
|
+
if (is_array(target)) {
|
|
44
|
+
target.push(source);
|
|
45
|
+
}
|
|
46
|
+
else if (target && typeof target === 'object') {
|
|
47
|
+
if ((options && (options.plainObjects || options.allowPrototypes)) ||
|
|
48
|
+
!has.call(Object.prototype, source)) {
|
|
49
|
+
target[source] = true;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
return [target, source];
|
|
54
|
+
}
|
|
55
|
+
return target;
|
|
56
|
+
}
|
|
57
|
+
if (!target || typeof target !== 'object') {
|
|
58
|
+
return [target].concat(source);
|
|
59
|
+
}
|
|
60
|
+
let mergeTarget = target;
|
|
61
|
+
if (is_array(target) && !is_array(source)) {
|
|
62
|
+
// @ts-ignore
|
|
63
|
+
mergeTarget = array_to_object(target, options);
|
|
64
|
+
}
|
|
65
|
+
if (is_array(target) && is_array(source)) {
|
|
66
|
+
source.forEach(function (item, i) {
|
|
67
|
+
if (has.call(target, i)) {
|
|
68
|
+
const targetItem = target[i];
|
|
69
|
+
if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
|
|
70
|
+
target[i] = merge(targetItem, item, options);
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
target.push(item);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
else {
|
|
77
|
+
target[i] = item;
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
return target;
|
|
81
|
+
}
|
|
82
|
+
return Object.keys(source).reduce(function (acc, key) {
|
|
83
|
+
const value = source[key];
|
|
84
|
+
if (has.call(acc, key)) {
|
|
85
|
+
acc[key] = merge(acc[key], value, options);
|
|
86
|
+
}
|
|
87
|
+
else {
|
|
88
|
+
acc[key] = value;
|
|
89
|
+
}
|
|
90
|
+
return acc;
|
|
91
|
+
}, mergeTarget);
|
|
92
|
+
}
|
|
93
|
+
export function assign_single_source(target, source) {
|
|
94
|
+
return Object.keys(source).reduce(function (acc, key) {
|
|
95
|
+
acc[key] = source[key];
|
|
96
|
+
return acc;
|
|
97
|
+
}, target);
|
|
98
|
+
}
|
|
99
|
+
export function decode(str, _, charset) {
|
|
100
|
+
const strWithoutPlus = str.replace(/\+/g, ' ');
|
|
101
|
+
if (charset === 'iso-8859-1') {
|
|
102
|
+
// unescape never throws, no try...catch needed:
|
|
103
|
+
return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
104
|
+
}
|
|
105
|
+
// utf-8
|
|
106
|
+
try {
|
|
107
|
+
return decodeURIComponent(strWithoutPlus);
|
|
108
|
+
}
|
|
109
|
+
catch (e) {
|
|
110
|
+
return strWithoutPlus;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
const limit = 1024;
|
|
114
|
+
export const encode = (str, _defaultEncoder, charset, _kind, format) => {
|
|
115
|
+
// This code was originally written by Brian White for the io.js core querystring library.
|
|
116
|
+
// It has been adapted here for stricter adherence to RFC 3986
|
|
117
|
+
if (str.length === 0) {
|
|
118
|
+
return str;
|
|
119
|
+
}
|
|
120
|
+
let string = str;
|
|
121
|
+
if (typeof str === 'symbol') {
|
|
122
|
+
string = Symbol.prototype.toString.call(str);
|
|
123
|
+
}
|
|
124
|
+
else if (typeof str !== 'string') {
|
|
125
|
+
string = String(str);
|
|
126
|
+
}
|
|
127
|
+
if (charset === 'iso-8859-1') {
|
|
128
|
+
return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {
|
|
129
|
+
return '%26%23' + parseInt($0.slice(2), 16) + '%3B';
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
let out = '';
|
|
133
|
+
for (let j = 0; j < string.length; j += limit) {
|
|
134
|
+
const segment = string.length >= limit ? string.slice(j, j + limit) : string;
|
|
135
|
+
const arr = [];
|
|
136
|
+
for (let i = 0; i < segment.length; ++i) {
|
|
137
|
+
let c = segment.charCodeAt(i);
|
|
138
|
+
if (c === 0x2d || // -
|
|
139
|
+
c === 0x2e || // .
|
|
140
|
+
c === 0x5f || // _
|
|
141
|
+
c === 0x7e || // ~
|
|
142
|
+
(c >= 0x30 && c <= 0x39) || // 0-9
|
|
143
|
+
(c >= 0x41 && c <= 0x5a) || // a-z
|
|
144
|
+
(c >= 0x61 && c <= 0x7a) || // A-Z
|
|
145
|
+
(format === RFC1738 && (c === 0x28 || c === 0x29)) // ( )
|
|
146
|
+
) {
|
|
147
|
+
arr[arr.length] = segment.charAt(i);
|
|
148
|
+
continue;
|
|
149
|
+
}
|
|
150
|
+
if (c < 0x80) {
|
|
151
|
+
arr[arr.length] = hex_table[c];
|
|
152
|
+
continue;
|
|
153
|
+
}
|
|
154
|
+
if (c < 0x800) {
|
|
155
|
+
arr[arr.length] = hex_table[0xc0 | (c >> 6)] + hex_table[0x80 | (c & 0x3f)];
|
|
156
|
+
continue;
|
|
157
|
+
}
|
|
158
|
+
if (c < 0xd800 || c >= 0xe000) {
|
|
159
|
+
arr[arr.length] =
|
|
160
|
+
hex_table[0xe0 | (c >> 12)] + hex_table[0x80 | ((c >> 6) & 0x3f)] + hex_table[0x80 | (c & 0x3f)];
|
|
161
|
+
continue;
|
|
162
|
+
}
|
|
163
|
+
i += 1;
|
|
164
|
+
c = 0x10000 + (((c & 0x3ff) << 10) | (segment.charCodeAt(i) & 0x3ff));
|
|
165
|
+
arr[arr.length] =
|
|
166
|
+
hex_table[0xf0 | (c >> 18)] +
|
|
167
|
+
hex_table[0x80 | ((c >> 12) & 0x3f)] +
|
|
168
|
+
hex_table[0x80 | ((c >> 6) & 0x3f)] +
|
|
169
|
+
hex_table[0x80 | (c & 0x3f)];
|
|
170
|
+
}
|
|
171
|
+
out += arr.join('');
|
|
172
|
+
}
|
|
173
|
+
return out;
|
|
174
|
+
};
|
|
175
|
+
export function compact(value) {
|
|
176
|
+
const queue = [{ obj: { o: value }, prop: 'o' }];
|
|
177
|
+
const refs = [];
|
|
178
|
+
for (let i = 0; i < queue.length; ++i) {
|
|
179
|
+
const item = queue[i];
|
|
180
|
+
// @ts-ignore
|
|
181
|
+
const obj = item.obj[item.prop];
|
|
182
|
+
const keys = Object.keys(obj);
|
|
183
|
+
for (let j = 0; j < keys.length; ++j) {
|
|
184
|
+
const key = keys[j];
|
|
185
|
+
const val = obj[key];
|
|
186
|
+
if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
|
|
187
|
+
queue.push({ obj: obj, prop: key });
|
|
188
|
+
refs.push(val);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
compact_queue(queue);
|
|
193
|
+
return value;
|
|
194
|
+
}
|
|
195
|
+
export function is_regexp(obj) {
|
|
196
|
+
return Object.prototype.toString.call(obj) === '[object RegExp]';
|
|
197
|
+
}
|
|
198
|
+
export function is_buffer(obj) {
|
|
199
|
+
if (!obj || typeof obj !== 'object') {
|
|
200
|
+
return false;
|
|
201
|
+
}
|
|
202
|
+
return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
|
|
203
|
+
}
|
|
204
|
+
export function combine(a, b) {
|
|
205
|
+
return [].concat(a, b);
|
|
206
|
+
}
|
|
207
|
+
export function maybe_map(val, fn) {
|
|
208
|
+
if (is_array(val)) {
|
|
209
|
+
const mapped = [];
|
|
210
|
+
for (let i = 0; i < val.length; i += 1) {
|
|
211
|
+
mapped.push(fn(val[i]));
|
|
212
|
+
}
|
|
213
|
+
return mapped;
|
|
214
|
+
}
|
|
215
|
+
return fn(val);
|
|
216
|
+
}
|
|
217
|
+
//# sourceMappingURL=utils.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.mjs","sourceRoot":"","sources":["../../src/internal/qs/utils.ts"],"names":[],"mappings":"OAAO,EAAE,OAAO,EAAE;AAGlB,MAAM,GAAG,GAAG,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC;AAC5C,MAAM,QAAQ,GAAG,KAAK,CAAC,OAAO,CAAC;AAE/B,MAAM,SAAS,GAAG,CAAC,GAAG,EAAE;IACtB,MAAM,KAAK,GAAG,EAAE,CAAC;IACjB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,EAAE,CAAC,EAAE;QAC5B,KAAK,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC;KACxE;IAED,OAAO,KAAK,CAAC;AACf,CAAC,CAAC,EAAE,CAAC;AAEL,SAAS,aAAa,CAAgC,KAAsC;IAC1F,OAAO,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;QACvB,MAAM,IAAI,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC;QACzB,IAAI,CAAC,IAAI;YAAE,SAAS;Q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AAI,QAAQ,CAAC,GAAG,CAAC,EAAE;QACjB,MAAM,MAAM,GAAG,EAAE,CAAC;QAClB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE;YACtC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAE,CAAC,CAAC,CAAC;SAC1B;QACD,OAAO,MAAM,CAAC;KACf;IACD,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;AACjB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,48 +1,124 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "conductor-node",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "
|
|
5
|
-
"keywords": [
|
|
6
|
-
"QuickBooks",
|
|
7
|
-
"QuickBooks Desktop",
|
|
8
|
-
"QuickBooks Enterprise",
|
|
9
|
-
"QuickBooks Web Connector",
|
|
10
|
-
"QBWC",
|
|
11
|
-
"qbXML",
|
|
12
|
-
"QB Desktop",
|
|
13
|
-
"QB Enterprise",
|
|
14
|
-
"QBD",
|
|
15
|
-
"QBDT",
|
|
16
|
-
"QBE",
|
|
17
|
-
"Intuit"
|
|
18
|
-
],
|
|
19
|
-
"homepage": "https://conductor.is",
|
|
20
|
-
"repository": "github:conductor-is/quickbooks-desktop-api",
|
|
21
|
-
"license": "MIT",
|
|
3
|
+
"version": "12.0.0-beta.2",
|
|
4
|
+
"description": "The official TypeScript library for the Conductor API",
|
|
22
5
|
"author": "Conductor <support@conductor.is>",
|
|
6
|
+
"types": "./index.d.ts",
|
|
7
|
+
"main": "./index.js",
|
|
23
8
|
"type": "commonjs",
|
|
24
|
-
"
|
|
25
|
-
"
|
|
9
|
+
"repository": "github:conductor-is/quickbooks-desktop-node",
|
|
10
|
+
"license": "Apache-2.0",
|
|
11
|
+
"packageManager": "yarn@1.22.22",
|
|
26
12
|
"files": [
|
|
27
|
-
"
|
|
28
|
-
"dist/package.json"
|
|
13
|
+
"**/*"
|
|
29
14
|
],
|
|
15
|
+
"private": false,
|
|
30
16
|
"scripts": {
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
17
|
+
"test": "./scripts/test",
|
|
18
|
+
"build": "./scripts/build",
|
|
19
|
+
"format": "prettier --write --cache --cache-strategy metadata . !dist",
|
|
20
|
+
"tsn": "ts-node -r tsconfig-paths/register",
|
|
21
|
+
"lint": "./scripts/lint",
|
|
22
|
+
"fix": "./scripts/format"
|
|
37
23
|
},
|
|
38
24
|
"dependencies": {
|
|
39
|
-
"
|
|
25
|
+
"@types/node": "^18.11.18",
|
|
26
|
+
"@types/node-fetch": "^2.6.4",
|
|
27
|
+
"abort-controller": "^3.0.0",
|
|
28
|
+
"agentkeepalive": "^4.2.1",
|
|
29
|
+
"form-data-encoder": "1.7.2",
|
|
30
|
+
"formdata-node": "^4.3.2",
|
|
31
|
+
"node-fetch": "^2.6.7"
|
|
40
32
|
},
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
33
|
+
"sideEffects": [
|
|
34
|
+
"./_shims/index.js",
|
|
35
|
+
"./_shims/index.mjs",
|
|
36
|
+
"./shims/node.js",
|
|
37
|
+
"./shims/node.mjs",
|
|
38
|
+
"./shims/web.js",
|
|
39
|
+
"./shims/web.mjs"
|
|
40
|
+
],
|
|
41
|
+
"imports": {
|
|
42
|
+
"conductor-node": ".",
|
|
43
|
+
"conductor-node/*": "./src/*"
|
|
44
44
|
},
|
|
45
|
-
"
|
|
46
|
-
"
|
|
45
|
+
"exports": {
|
|
46
|
+
"./_shims/auto/*": {
|
|
47
|
+
"deno": {
|
|
48
|
+
"types": "./_shims/auto/*.d.ts",
|
|
49
|
+
"require": "./_shims/auto/*.js",
|
|
50
|
+
"default": "./_shims/auto/*.mjs"
|
|
51
|
+
},
|
|
52
|
+
"bun": {
|
|
53
|
+
"types": "./_shims/auto/*.d.ts",
|
|
54
|
+
"require": "./_shims/auto/*-bun.js",
|
|
55
|
+
"default": "./_shims/auto/*-bun.mjs"
|
|
56
|
+
},
|
|
57
|
+
"browser": {
|
|
58
|
+
"types": "./_shims/auto/*.d.ts",
|
|
59
|
+
"require": "./_shims/auto/*.js",
|
|
60
|
+
"default": "./_shims/auto/*.mjs"
|
|
61
|
+
},
|
|
62
|
+
"worker": {
|
|
63
|
+
"types": "./_shims/auto/*.d.ts",
|
|
64
|
+
"require": "./_shims/auto/*.js",
|
|
65
|
+
"default": "./_shims/auto/*.mjs"
|
|
66
|
+
},
|
|
67
|
+
"workerd": {
|
|
68
|
+
"types": "./_shims/auto/*.d.ts",
|
|
69
|
+
"require": "./_shims/auto/*.js",
|
|
70
|
+
"default": "./_shims/auto/*.mjs"
|
|
71
|
+
},
|
|
72
|
+
"node": {
|
|
73
|
+
"types": "./_shims/auto/*-node.d.ts",
|
|
74
|
+
"require": "./_shims/auto/*-node.js",
|
|
75
|
+
"default": "./_shims/auto/*-node.mjs"
|
|
76
|
+
},
|
|
77
|
+
"types": "./_shims/auto/*.d.ts",
|
|
78
|
+
"require": "./_shims/auto/*.js",
|
|
79
|
+
"default": "./_shims/auto/*.mjs"
|
|
80
|
+
},
|
|
81
|
+
".": {
|
|
82
|
+
"require": {
|
|
83
|
+
"types": "./index.d.ts",
|
|
84
|
+
"default": "./index.js"
|
|
85
|
+
},
|
|
86
|
+
"types": "./index.d.mts",
|
|
87
|
+
"default": "./index.mjs"
|
|
88
|
+
},
|
|
89
|
+
"./*.mjs": {
|
|
90
|
+
"types": [
|
|
91
|
+
"./*.d.ts",
|
|
92
|
+
"./*/index.d.ts"
|
|
93
|
+
],
|
|
94
|
+
"default": [
|
|
95
|
+
"./*.mjs",
|
|
96
|
+
"./*/index.mjs"
|
|
97
|
+
]
|
|
98
|
+
},
|
|
99
|
+
"./*.js": {
|
|
100
|
+
"types": [
|
|
101
|
+
"./*.d.ts",
|
|
102
|
+
"./*/index.d.ts"
|
|
103
|
+
],
|
|
104
|
+
"default": [
|
|
105
|
+
"./*.js",
|
|
106
|
+
"./*/index.js"
|
|
107
|
+
]
|
|
108
|
+
},
|
|
109
|
+
"./*": {
|
|
110
|
+
"types": [
|
|
111
|
+
"./*.d.ts",
|
|
112
|
+
"./*/index.d.ts"
|
|
113
|
+
],
|
|
114
|
+
"require": [
|
|
115
|
+
"./*.js",
|
|
116
|
+
"./*/index.js"
|
|
117
|
+
],
|
|
118
|
+
"default": [
|
|
119
|
+
"./*.mjs",
|
|
120
|
+
"./*/index.mjs"
|
|
121
|
+
]
|
|
122
|
+
}
|
|
47
123
|
}
|
|
48
124
|
}
|
package/pagination.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AbstractPage, Response, APIClient, FinalRequestOptions, PageInfo } from "./core.js";
|
|
2
|
+
export interface CursorPageResponse<Item> {
|
|
3
|
+
data: Array<Item>;
|
|
4
|
+
nextCursor: string | null;
|
|
5
|
+
}
|
|
6
|
+
export interface CursorPageParams {
|
|
7
|
+
cursor?: string;
|
|
8
|
+
limit?: number;
|
|
9
|
+
}
|
|
10
|
+
export declare class CursorPage<Item> extends AbstractPage<Item> implements CursorPageResponse<Item> {
|
|
11
|
+
data: Array<Item>;
|
|
12
|
+
nextCursor: string | null;
|
|
13
|
+
constructor(client: APIClient, response: Response, body: CursorPageResponse<Item>, options: FinalRequestOptions);
|
|
14
|
+
getPaginatedItems(): Item[];
|
|
15
|
+
nextPageParams(): Partial<CursorPageParams> | null;
|
|
16
|
+
nextPageInfo(): PageInfo | null;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=pagination.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["src/pagination.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,SAAS,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAE1F,MAAM,WAAW,kBAAkB,CAAC,IAAI;IACtC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;IAElB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B;AAED,MAAM,WAAW,gBAAgB;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,qBAAa,UAAU,CAAC,IAAI,CAAE,SAAQ,YAAY,CAAC,IAAI,CAAE,YAAW,kBAAkB,CAAC,IAAI,CAAC;IAC1F,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;IAElB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;gBAGxB,MAAM,EAAE,SAAS,EACjB,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,kBAAkB,CAAC,IAAI,CAAC,EAC9B,OAAO,EAAE,mBAAmB;IAQ9B,iBAAiB,IAAI,IAAI,EAAE;IAK3B,cAAc,IAAI,OAAO,CAAC,gBAAgB,CAAC,GAAG,IAAI;IASlD,YAAY,IAAI,QAAQ,GAAG,IAAI;CAYhC"}
|
package/pagination.js
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.CursorPage = void 0;
|
|
5
|
+
const core_1 = require("./core.js");
|
|
6
|
+
class CursorPage extends core_1.AbstractPage {
|
|
7
|
+
constructor(client, response, body, options) {
|
|
8
|
+
super(client, response, body, options);
|
|
9
|
+
this.data = body.data || [];
|
|
10
|
+
this.nextCursor = body.nextCursor || null;
|
|
11
|
+
}
|
|
12
|
+
getPaginatedItems() {
|
|
13
|
+
return this.data ?? [];
|
|
14
|
+
}
|
|
15
|
+
// @deprecated Please use `nextPageInfo()` instead
|
|
16
|
+
nextPageParams() {
|
|
17
|
+
const info = this.nextPageInfo();
|
|
18
|
+
if (!info)
|
|
19
|
+
return null;
|
|
20
|
+
if ('params' in info)
|
|
21
|
+
return info.params;
|
|
22
|
+
const params = Object.fromEntries(info.url.searchParams);
|
|
23
|
+
if (!Object.keys(params).length)
|
|
24
|
+
return null;
|
|
25
|
+
return params;
|
|
26
|
+
}
|
|
27
|
+
nextPageInfo() {
|
|
28
|
+
const cursor = this.nextCursor;
|
|
29
|
+
if (!cursor) {
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
params: {
|
|
34
|
+
cursor: cursor,
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
exports.CursorPage = CursorPage;
|
|
40
|
+
//# sourceMappingURL=pagination.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.js","sourceRoot":"","sources":["src/pagination.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oCAA0F;AAc1F,MAAa,UAAiB,SAAQ,mBAAkB;IAKtD,YACE,MAAiB,EACjB,QAAkB,EAClB,IAA8B,EAC9B,OAA4B;QAE5B,KAAK,CAAC,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAEvC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,IAAI,EAAE,CAAC;QAC5B,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC;IAC5C,CAAC;IAED,iBAAiB;QACf,OAAO,IAAI,CAAC,IAAI,IAAI,EAAE,CAAC;IACzB,CAAC;IAED,kDAAkD;IAClD,cAAc;QACZ,MAAM,IAAI,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;QACjC,IAAI,CAAC,IAAI;YAAE,OAAO,IAAI,CAAC;QACvB,IAAI,QAAQ,IAAI,IAAI;YAAE,OAAO,IAAI,CAAC,MAAM,CAAC;QACzC,MAAM,MAAM,GAAG,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;QACzD,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM;YAAE,OAAO,IAAI,CAAC;QAC7C,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,YAAY;QACV,MAAM,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC;QAC/B,IAAI,CAAC,MAAM,EAAE;YACX,OAAO,IAAI,CAAC;SACb;QAED,OAAO;YACL,MAAM,EAAE;gBACN,MAAM,EAAE,MAAM;aACf;SACF,CAAC;IACJ,CAAC;CACF;AA3CD,gCA2CC"}
|
package/pagination.mjs
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { AbstractPage } from "./core.mjs";
|
|
3
|
+
export class CursorPage extends AbstractPage {
|
|
4
|
+
constructor(client, response, body, options) {
|
|
5
|
+
super(client, response, body, options);
|
|
6
|
+
this.data = body.data || [];
|
|
7
|
+
this.nextCursor = body.nextCursor || null;
|
|
8
|
+
}
|
|
9
|
+
getPaginatedItems() {
|
|
10
|
+
return this.data ?? [];
|
|
11
|
+
}
|
|
12
|
+
// @deprecated Please use `nextPageInfo()` instead
|
|
13
|
+
nextPageParams() {
|
|
14
|
+
const info = this.nextPageInfo();
|
|
15
|
+
if (!info)
|
|
16
|
+
return null;
|
|
17
|
+
if ('params' in info)
|
|
18
|
+
return info.params;
|
|
19
|
+
const params = Object.fromEntries(info.url.searchParams);
|
|
20
|
+
if (!Object.keys(params).length)
|
|
21
|
+
return null;
|
|
22
|
+
return params;
|
|
23
|
+
}
|
|
24
|
+
nextPageInfo() {
|
|
25
|
+
const cursor = this.nextCursor;
|
|
26
|
+
if (!cursor) {
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
params: {
|
|
31
|
+
cursor: cursor,
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=pagination.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.mjs","sourceRoot":"","sources":["src/pagination.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,YAAY,EAAsD;AAc3E,MAAM,OAAO,UAAiB,SAAQ,YAAkB;IAKtD,YACE,MAAiB,EACjB,QAAkB,EAClB,IAA8B,EAC9B,OAA4B;QAE5B,KAAK,CAAC,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAEvC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,IAAI,EAAE,CAAC;QAC5B,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC;IAC5C,CAAC;IAED,iBAAiB;QACf,OAAO,IAAI,CAAC,IAAI,IAAI,EAAE,CAAC;IACzB,CAAC;IAED,kDAAkD;IAClD,cAAc;QACZ,MAAM,IAAI,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;QACjC,IAAI,CAAC,IAAI;YAAE,OAAO,IAAI,CAAC;QACvB,IAAI,QAAQ,IAAI,IAAI;YAAE,OAAO,IAAI,CAAC,MAAM,CAAC;QACzC,MAAM,MAAM,GAAG,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;QACzD,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM;YAAE,OAAO,IAAI,CAAC;QAC7C,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,YAAY;QACV,MAAM,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC;QAC/B,IAAI,CAAC,MAAM,EAAE;YACX,OAAO,IAAI,CAAC;SACb;QAED,OAAO;YACL,MAAM,EAAE;gBACN,MAAM,EAAE,MAAM;aACf;SACF,CAAC;IACJ,CAAC;CACF"}
|
package/resource.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resource.d.ts","sourceRoot":"","sources":["src/resource.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,qBAAa,WAAW;IACtB,SAAS,CAAC,OAAO,EAAE,SAAS,CAAC;gBAEjB,MAAM,EAAE,SAAS;CAG9B"}
|
package/resource.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.APIResource = void 0;
|
|
5
|
+
class APIResource {
|
|
6
|
+
constructor(client) {
|
|
7
|
+
this._client = client;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.APIResource = APIResource;
|
|
11
|
+
//# sourceMappingURL=resource.js.map
|
package/resource.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resource.js","sourceRoot":"","sources":["src/resource.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAItF,MAAa,WAAW;IAGtB,YAAY,MAAiB;QAC3B,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACxB,CAAC;CACF;AAND,kCAMC"}
|
package/resource.mjs
ADDED
package/resource.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resource.mjs","sourceRoot":"","sources":["src/resource.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAItF,MAAM,OAAO,WAAW;IAGtB,YAAY,MAAiB;QAC3B,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACxB,CAAC;CACF"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { APIResource } from "../resource.js";
|
|
2
|
+
import * as Core from "../core.js";
|
|
3
|
+
export declare class AuthSessions extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* To launch the authentication flow, create an AuthSession and pass the returned
|
|
6
|
+
* session’s `authFlowUrl` to the client for your end-user to visit in their
|
|
7
|
+
* browser.
|
|
8
|
+
*/
|
|
9
|
+
create(body: AuthSessionCreateParams, options?: Core.RequestOptions): Core.APIPromise<AuthSession>;
|
|
10
|
+
/**
|
|
11
|
+
* Retrieves the details of an AuthSession that has previously been created.
|
|
12
|
+
*/
|
|
13
|
+
retrieve(id: string, options?: Core.RequestOptions): Core.APIPromise<AuthSession>;
|
|
14
|
+
}
|
|
15
|
+
export interface AuthSession {
|
|
16
|
+
/**
|
|
17
|
+
* The unique identifier for this AuthSession.
|
|
18
|
+
*/
|
|
19
|
+
id: string;
|
|
20
|
+
/**
|
|
21
|
+
* The URL of the authentication flow that you will pass to your client for your
|
|
22
|
+
* user to set up their IntegrationConnection.
|
|
23
|
+
*/
|
|
24
|
+
authFlowUrl: string;
|
|
25
|
+
/**
|
|
26
|
+
* The secret used in `authFlowUrl` to securely access the authentication flow.
|
|
27
|
+
*/
|
|
28
|
+
clientSecret: string;
|
|
29
|
+
/**
|
|
30
|
+
* The date and time when this AuthSession record was created.
|
|
31
|
+
*/
|
|
32
|
+
createdAt: string;
|
|
33
|
+
/**
|
|
34
|
+
* The ID of the EndUser for whom to create an IntegrationConnection.
|
|
35
|
+
*/
|
|
36
|
+
endUserId: string;
|
|
37
|
+
/**
|
|
38
|
+
* The date and time when this AuthSession expires. By default, this value is 30
|
|
39
|
+
* minutes from creation. You can extend this time by setting `linkExpiryMins` when
|
|
40
|
+
* [creating the AuthSession](/apis/auth-sessions/create).
|
|
41
|
+
*/
|
|
42
|
+
expiresAt: string;
|
|
43
|
+
/**
|
|
44
|
+
* The type of object. This value is always `"auth_session"`.
|
|
45
|
+
*/
|
|
46
|
+
objectType: 'auth_session';
|
|
47
|
+
/**
|
|
48
|
+
* The URL to which Conductor will redirect your user to return to your app after
|
|
49
|
+
* they complete the authentication flow. If `null`, their browser tab will close
|
|
50
|
+
* instead.
|
|
51
|
+
*/
|
|
52
|
+
redirectUrl: string | null;
|
|
53
|
+
}
|
|
54
|
+
export interface AuthSessionCreateParams {
|
|
55
|
+
/**
|
|
56
|
+
* The ID of the EndUser for whom to create the IntegrationConnection.
|
|
57
|
+
*/
|
|
58
|
+
endUserId: string;
|
|
59
|
+
/**
|
|
60
|
+
* Your Conductor publishable key, which we use to create the session’s
|
|
61
|
+
* `authFlowUrl`.
|
|
62
|
+
*/
|
|
63
|
+
publishableKey: string;
|
|
64
|
+
/**
|
|
65
|
+
* The number of minutes after which the AuthSession will expire. Must be at least
|
|
66
|
+
* 15 minutes and no more than 7 days. If not provided, defaults to 30 minutes.
|
|
67
|
+
*/
|
|
68
|
+
linkExpiryMins?: number;
|
|
69
|
+
/**
|
|
70
|
+
* The URL to which Conductor will redirect the end-user to return to your app
|
|
71
|
+
* after they complete the authentication flow. If not provided, their browser tab
|
|
72
|
+
* will close instead.
|
|
73
|
+
*/
|
|
74
|
+
redirectUrl?: string;
|
|
75
|
+
}
|
|
76
|
+
export declare namespace AuthSessions {
|
|
77
|
+
export { type AuthSession as AuthSession, type AuthSessionCreateParams as AuthSessionCreateParams };
|
|
78
|
+
}
|
|
79
|
+
//# sourceMappingURL=auth-sessions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth-sessions.d.ts","sourceRoot":"","sources":["../src/resources/auth-sessions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAEhC,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;OAIG;IACH,MAAM,CAAC,IAAI,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC;IAIlG;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC;CAGlF;AAED,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,UAAU,EAAE,cAAc,CAAC;IAE3B;;;;OAIG;IACH,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EAAE,KAAK,WAAW,IAAI,WAAW,EAAE,KAAK,uBAAuB,IAAI,uBAAuB,EAAE,CAAC;CACrG"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.AuthSessions = void 0;
|
|
5
|
+
const resource_1 = require("../resource.js");
|
|
6
|
+
class AuthSessions extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* To launch the authentication flow, create an AuthSession and pass the returned
|
|
9
|
+
* session’s `authFlowUrl` to the client for your end-user to visit in their
|
|
10
|
+
* browser.
|
|
11
|
+
*/
|
|
12
|
+
create(body, options) {
|
|
13
|
+
return this._client.post('/auth-sessions', { body, ...options });
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Retrieves the details of an AuthSession that has previously been created.
|
|
17
|
+
*/
|
|
18
|
+
retrieve(id, options) {
|
|
19
|
+
return this._client.get(`/auth-sessions/${id}`, options);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.AuthSessions = AuthSessions;
|
|
23
|
+
//# sourceMappingURL=auth-sessions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth-sessions.js","sourceRoot":"","sources":["../src/resources/auth-sessions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAG1C,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;;OAIG;IACH,MAAM,CAAC,IAA6B,EAAE,OAA6B;QACjE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnE,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAA6B;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;CACF;AAhBD,oCAgBC"}
|