conductor-node 11.10.1 → 12.0.0-beta.10
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 +135 -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 +75 -0
- package/resources/auth-sessions.d.ts.map +1 -0
- package/resources/auth-sessions.js +17 -0
- package/resources/auth-sessions.js.map +1 -0
- package/resources/auth-sessions.mjs +13 -0
- package/resources/auth-sessions.mjs.map +1 -0
- package/resources/end-users.d.ts +142 -0
- package/resources/end-users.d.ts.map +1 -0
- package/resources/end-users.js +40 -0
- package/resources/end-users.js.map +1 -0
- package/resources/end-users.mjs +36 -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 +1711 -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 +38 -0
- package/resources/qbd/index.d.ts.map +1 -0
- package/resources/qbd/index.js +108 -0
- package/resources/qbd/index.js.map +1 -0
- package/resources/qbd/index.mjs +39 -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 +178 -0
- package/resources/qbd/qbd.d.ts.map +1 -0
- package/resources/qbd/qbd.js +222 -0
- package/resources/qbd/qbd.js.map +1 -0
- package/resources/qbd/qbd.mjs +195 -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/time-tracking-activities.d.ts +485 -0
- package/resources/qbd/time-tracking-activities.d.ts.map +1 -0
- package/resources/qbd/time-tracking-activities.js +66 -0
- package/resources/qbd/time-tracking-activities.js.map +1 -0
- package/resources/qbd/time-tracking-activities.mjs +61 -0
- package/resources/qbd/time-tracking-activities.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 +229 -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 +92 -0
- package/src/resources/end-users.ts +195 -0
- package/src/resources/index.ts +13 -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 +2308 -0
- package/src/resources/qbd/estimates.ts +2975 -0
- package/src/resources/qbd/index.ts +357 -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 +949 -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/time-tracking-activities.ts +615 -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,485 @@
|
|
|
1
|
+
import { APIResource } from "../../resource.js";
|
|
2
|
+
import * as Core from "../../core.js";
|
|
3
|
+
import { CursorPage, type CursorPageParams } from "../../pagination.js";
|
|
4
|
+
export declare class TimeTrackingActivities extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Creates a new time tracking activity.
|
|
7
|
+
*/
|
|
8
|
+
create(params: TimeTrackingActivityCreateParams, options?: Core.RequestOptions): Core.APIPromise<TimeTrackingActivity>;
|
|
9
|
+
/**
|
|
10
|
+
* Retrieves a time tracking activity by ID.
|
|
11
|
+
*/
|
|
12
|
+
retrieve(id: string, params: TimeTrackingActivityRetrieveParams, options?: Core.RequestOptions): Core.APIPromise<TimeTrackingActivity>;
|
|
13
|
+
/**
|
|
14
|
+
* Updates an existing time tracking activity.
|
|
15
|
+
*/
|
|
16
|
+
update(id: string, params: TimeTrackingActivityUpdateParams, options?: Core.RequestOptions): Core.APIPromise<TimeTrackingActivity>;
|
|
17
|
+
/**
|
|
18
|
+
* Returns a list of time tracking activities. Use the `cursor` parameter to
|
|
19
|
+
* paginate through the results.
|
|
20
|
+
*/
|
|
21
|
+
list(params: TimeTrackingActivityListParams, options?: Core.RequestOptions): Core.PagePromise<TimeTrackingActivitiesCursorPage, TimeTrackingActivity>;
|
|
22
|
+
/**
|
|
23
|
+
* Permanently deletes a a time tracking activity. The deletion will fail if the
|
|
24
|
+
* time tracking activity is currently in use or has any linked transactions that
|
|
25
|
+
* are in use.
|
|
26
|
+
*/
|
|
27
|
+
delete(id: string, params: TimeTrackingActivityDeleteParams, options?: Core.RequestOptions): Core.APIPromise<TimeTrackingActivityDeleteResponse>;
|
|
28
|
+
}
|
|
29
|
+
export declare class TimeTrackingActivitiesCursorPage extends CursorPage<TimeTrackingActivity> {
|
|
30
|
+
}
|
|
31
|
+
export interface TimeTrackingActivity {
|
|
32
|
+
/**
|
|
33
|
+
* The unique identifier assigned by QuickBooks to this time tracking activity.
|
|
34
|
+
* This ID is unique across all transaction types.
|
|
35
|
+
*/
|
|
36
|
+
id: string;
|
|
37
|
+
/**
|
|
38
|
+
* The billing status of this time tracking activity.
|
|
39
|
+
*
|
|
40
|
+
* **IMPORTANT**: When this field is set to "billable" for time tracking
|
|
41
|
+
* activities, both `customer` and `serviceItem` are required so that an invoice
|
|
42
|
+
* can be created.
|
|
43
|
+
*/
|
|
44
|
+
billingStatus: 'billable' | 'has_been_billed' | 'not_billable' | null;
|
|
45
|
+
/**
|
|
46
|
+
* The time tracking activity's class. Classes can be used to categorize objects
|
|
47
|
+
* into meaningful segments, such as department, location, or type of work. In
|
|
48
|
+
* QuickBooks, class tracking is off by default.
|
|
49
|
+
*/
|
|
50
|
+
class: TimeTrackingActivity.Class | null;
|
|
51
|
+
/**
|
|
52
|
+
* The date and time when this time tracking activity was created, in ISO 8601
|
|
53
|
+
* format (YYYY-MM-DDThh:mm:ss±hh:mm). The time zone is the same as the user's time
|
|
54
|
+
* zone in QuickBooks.
|
|
55
|
+
*/
|
|
56
|
+
createdAt: string;
|
|
57
|
+
/**
|
|
58
|
+
* The customer or customer-job to which this time tracking activity could be
|
|
59
|
+
* billed. If `billingStatus` is set to "billable", this field is required.
|
|
60
|
+
*/
|
|
61
|
+
customer: TimeTrackingActivity.Customer | null;
|
|
62
|
+
/**
|
|
63
|
+
* The time spent performing the service during this time tracking activity, in ISO
|
|
64
|
+
* 8601 format for time intervals (PTnHnMnS). For example, 1 hour and 30 minutes is
|
|
65
|
+
* represented as PT1H30M.
|
|
66
|
+
*
|
|
67
|
+
* **NOTE**: Although seconds can be specified when creating a time tracking
|
|
68
|
+
* activity, they are not returned in responses since QuickBooks Desktop's UI does
|
|
69
|
+
* not display seconds.
|
|
70
|
+
*
|
|
71
|
+
* **IMPORTANT**: This field is required for updating time tracking activities,
|
|
72
|
+
* even if the field is not being modified, because of a bug in QuickBooks itself.
|
|
73
|
+
*/
|
|
74
|
+
duration: string;
|
|
75
|
+
/**
|
|
76
|
+
* The employee, vendor, or person on QuickBooks's "Other Names" list whose time is
|
|
77
|
+
* being tracked in this time tracking activity. This cannot refer to a customer -
|
|
78
|
+
* use the `customer` field to associate a customer or customer-job with this time
|
|
79
|
+
* tracking activity.
|
|
80
|
+
*/
|
|
81
|
+
entity: TimeTrackingActivity.Entity;
|
|
82
|
+
/**
|
|
83
|
+
* A globally unique identifier (GUID) you, the developer, can provide for tracking
|
|
84
|
+
* this object in your external system. This field is immutable and can only be set
|
|
85
|
+
* during object creation.
|
|
86
|
+
*/
|
|
87
|
+
externalId: string | null;
|
|
88
|
+
/**
|
|
89
|
+
* Indicates whether this time tracking activity has been billed.
|
|
90
|
+
*/
|
|
91
|
+
isBilled: boolean | null;
|
|
92
|
+
/**
|
|
93
|
+
* A note or comment about this time tracking activity.
|
|
94
|
+
*/
|
|
95
|
+
note: string | null;
|
|
96
|
+
/**
|
|
97
|
+
* The type of object. This value is always `"qbd_time_tracking_activity"`.
|
|
98
|
+
*/
|
|
99
|
+
objectType: 'qbd_time_tracking_activity';
|
|
100
|
+
/**
|
|
101
|
+
* The payroll wage item (e.g., Regular Pay, Overtime Pay) to use for this time
|
|
102
|
+
* tracking activity. This field can only be used for time tracking if: (1) the
|
|
103
|
+
* person specified in `entity` is an employee in QuickBooks, and (2) the "Use time
|
|
104
|
+
* data to create paychecks" preference is enabled in their payroll settings.
|
|
105
|
+
*/
|
|
106
|
+
payrollWageItem: TimeTrackingActivity.PayrollWageItem | null;
|
|
107
|
+
/**
|
|
108
|
+
* The current QuickBooks-assigned revision number of this time tracking activity
|
|
109
|
+
* object, which changes each time the object is modified. When updating this
|
|
110
|
+
* object, you must provide the most recent `revisionNumber` to ensure you're
|
|
111
|
+
* working with the latest data; otherwise, the update will return an error.
|
|
112
|
+
*/
|
|
113
|
+
revisionNumber: string;
|
|
114
|
+
/**
|
|
115
|
+
* The type of service performed during this time tracking activity, referring to
|
|
116
|
+
* billable or purchasable services such as specialized labor, consulting hours,
|
|
117
|
+
* and professional fees.
|
|
118
|
+
*
|
|
119
|
+
* **NOTE**: This field is not required if no `customer` is specified. However, if
|
|
120
|
+
* `billingStatus` is set to "billable", both this field and `customer` are
|
|
121
|
+
* required.
|
|
122
|
+
*/
|
|
123
|
+
serviceItem: TimeTrackingActivity.ServiceItem | null;
|
|
124
|
+
/**
|
|
125
|
+
* The date of this time tracking activity, in ISO 8601 format (YYYY-MM-DD).
|
|
126
|
+
*/
|
|
127
|
+
transactionDate: string;
|
|
128
|
+
/**
|
|
129
|
+
* The date and time when this time tracking activity was last updated, in ISO 8601
|
|
130
|
+
* format (YYYY-MM-DDThh:mm:ss±hh:mm). The time zone is the same as the user's time
|
|
131
|
+
* zone in QuickBooks.
|
|
132
|
+
*/
|
|
133
|
+
updatedAt: string;
|
|
134
|
+
}
|
|
135
|
+
export declare namespace TimeTrackingActivity {
|
|
136
|
+
/**
|
|
137
|
+
* The time tracking activity's class. Classes can be used to categorize objects
|
|
138
|
+
* into meaningful segments, such as department, location, or type of work. In
|
|
139
|
+
* QuickBooks, class tracking is off by default.
|
|
140
|
+
*/
|
|
141
|
+
interface Class {
|
|
142
|
+
/**
|
|
143
|
+
* The unique identifier assigned by QuickBooks to this object. This ID is unique
|
|
144
|
+
* across all objects of the same type, but not across different QuickBooks object
|
|
145
|
+
* types.
|
|
146
|
+
*/
|
|
147
|
+
id: string | null;
|
|
148
|
+
/**
|
|
149
|
+
* The fully-qualified unique name for this object, formed by combining the names
|
|
150
|
+
* of its parent objects with its own `name`, separated by colons. Not
|
|
151
|
+
* case-sensitive.
|
|
152
|
+
*/
|
|
153
|
+
fullName: string | null;
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* The customer or customer-job to which this time tracking activity could be
|
|
157
|
+
* billed. If `billingStatus` is set to "billable", this field is required.
|
|
158
|
+
*/
|
|
159
|
+
interface Customer {
|
|
160
|
+
/**
|
|
161
|
+
* The unique identifier assigned by QuickBooks to this object. This ID is unique
|
|
162
|
+
* across all objects of the same type, but not across different QuickBooks object
|
|
163
|
+
* types.
|
|
164
|
+
*/
|
|
165
|
+
id: string | null;
|
|
166
|
+
/**
|
|
167
|
+
* The fully-qualified unique name for this object, formed by combining the names
|
|
168
|
+
* of its parent objects with its own `name`, separated by colons. Not
|
|
169
|
+
* case-sensitive.
|
|
170
|
+
*/
|
|
171
|
+
fullName: string | null;
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* The employee, vendor, or person on QuickBooks's "Other Names" list whose time is
|
|
175
|
+
* being tracked in this time tracking activity. This cannot refer to a customer -
|
|
176
|
+
* use the `customer` field to associate a customer or customer-job with this time
|
|
177
|
+
* tracking activity.
|
|
178
|
+
*/
|
|
179
|
+
interface Entity {
|
|
180
|
+
/**
|
|
181
|
+
* The unique identifier assigned by QuickBooks to this object. This ID is unique
|
|
182
|
+
* across all objects of the same type, but not across different QuickBooks object
|
|
183
|
+
* types.
|
|
184
|
+
*/
|
|
185
|
+
id: string | null;
|
|
186
|
+
/**
|
|
187
|
+
* The fully-qualified unique name for this object, formed by combining the names
|
|
188
|
+
* of its parent objects with its own `name`, separated by colons. Not
|
|
189
|
+
* case-sensitive.
|
|
190
|
+
*/
|
|
191
|
+
fullName: string | null;
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* The payroll wage item (e.g., Regular Pay, Overtime Pay) to use for this time
|
|
195
|
+
* tracking activity. This field can only be used for time tracking if: (1) the
|
|
196
|
+
* person specified in `entity` is an employee in QuickBooks, and (2) the "Use time
|
|
197
|
+
* data to create paychecks" preference is enabled in their payroll settings.
|
|
198
|
+
*/
|
|
199
|
+
interface PayrollWageItem {
|
|
200
|
+
/**
|
|
201
|
+
* The unique identifier assigned by QuickBooks to this object. This ID is unique
|
|
202
|
+
* across all objects of the same type, but not across different QuickBooks object
|
|
203
|
+
* types.
|
|
204
|
+
*/
|
|
205
|
+
id: string | null;
|
|
206
|
+
/**
|
|
207
|
+
* The fully-qualified unique name for this object, formed by combining the names
|
|
208
|
+
* of its parent objects with its own `name`, separated by colons. Not
|
|
209
|
+
* case-sensitive.
|
|
210
|
+
*/
|
|
211
|
+
fullName: string | null;
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* The type of service performed during this time tracking activity, referring to
|
|
215
|
+
* billable or purchasable services such as specialized labor, consulting hours,
|
|
216
|
+
* and professional fees.
|
|
217
|
+
*
|
|
218
|
+
* **NOTE**: This field is not required if no `customer` is specified. However, if
|
|
219
|
+
* `billingStatus` is set to "billable", both this field and `customer` are
|
|
220
|
+
* required.
|
|
221
|
+
*/
|
|
222
|
+
interface ServiceItem {
|
|
223
|
+
/**
|
|
224
|
+
* The unique identifier assigned by QuickBooks to this object. This ID is unique
|
|
225
|
+
* across all objects of the same type, but not across different QuickBooks object
|
|
226
|
+
* types.
|
|
227
|
+
*/
|
|
228
|
+
id: string | null;
|
|
229
|
+
/**
|
|
230
|
+
* The fully-qualified unique name for this object, formed by combining the names
|
|
231
|
+
* of its parent objects with its own `name`, separated by colons. Not
|
|
232
|
+
* case-sensitive.
|
|
233
|
+
*/
|
|
234
|
+
fullName: string | null;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
export interface TimeTrackingActivityDeleteResponse {
|
|
238
|
+
/**
|
|
239
|
+
* The QuickBooks-assigned unique identifier of the deleted time tracking activity.
|
|
240
|
+
*/
|
|
241
|
+
id: string;
|
|
242
|
+
/**
|
|
243
|
+
* Indicates whether the time tracking activity was deleted.
|
|
244
|
+
*/
|
|
245
|
+
deleted: boolean;
|
|
246
|
+
/**
|
|
247
|
+
* The type of object. This value is always `"qbd_time_tracking_activity"`.
|
|
248
|
+
*/
|
|
249
|
+
objectType: 'qbd_time_tracking_activity';
|
|
250
|
+
/**
|
|
251
|
+
* The case-sensitive user-defined reference number of the deleted time tracking
|
|
252
|
+
* activity.
|
|
253
|
+
*/
|
|
254
|
+
refNumber: string | null;
|
|
255
|
+
}
|
|
256
|
+
export interface TimeTrackingActivityCreateParams {
|
|
257
|
+
/**
|
|
258
|
+
* Body param: The time spent performing the service during this time tracking
|
|
259
|
+
* activity, in ISO 8601 format for time intervals (PTnHnMnS). For example, 1 hour
|
|
260
|
+
* and 30 minutes is represented as PT1H30M.
|
|
261
|
+
*
|
|
262
|
+
* **NOTE**: Although seconds can be specified when creating a time tracking
|
|
263
|
+
* activity, they are not returned in responses since QuickBooks Desktop's UI does
|
|
264
|
+
* not display seconds.
|
|
265
|
+
*
|
|
266
|
+
* **IMPORTANT**: This field is required for updating time tracking activities,
|
|
267
|
+
* even if the field is not being modified, because of a bug in QuickBooks itself.
|
|
268
|
+
*/
|
|
269
|
+
duration: string;
|
|
270
|
+
/**
|
|
271
|
+
* Body param: The employee, vendor, or person on QuickBooks's "Other Names" list
|
|
272
|
+
* whose time is being tracked in this time tracking activity. This cannot refer to
|
|
273
|
+
* a customer - use the `customer` field to associate a customer or customer-job
|
|
274
|
+
* with this time tracking activity.
|
|
275
|
+
*/
|
|
276
|
+
entityId: string;
|
|
277
|
+
/**
|
|
278
|
+
* Body param: The date of this time tracking activity, in ISO 8601 format
|
|
279
|
+
* (YYYY-MM-DD).
|
|
280
|
+
*/
|
|
281
|
+
transactionDate: string;
|
|
282
|
+
/**
|
|
283
|
+
* Header param: The ID of the EndUser to receive this request (e.g.,
|
|
284
|
+
* `"Conductor-End-User-Id: {{END_USER_ID}}"`).
|
|
285
|
+
*/
|
|
286
|
+
conductorEndUserId: string;
|
|
287
|
+
/**
|
|
288
|
+
* Body param: The billing status of this time tracking activity.
|
|
289
|
+
*
|
|
290
|
+
* **IMPORTANT**: When this field is set to "billable" for time tracking
|
|
291
|
+
* activities, both `customer` and `serviceItem` are required so that an invoice
|
|
292
|
+
* can be created.
|
|
293
|
+
*/
|
|
294
|
+
billingStatus?: 'billable' | 'has_been_billed' | 'not_billable';
|
|
295
|
+
/**
|
|
296
|
+
* Body param: The time tracking activity's class. Classes can be used to
|
|
297
|
+
* categorize objects into meaningful segments, such as department, location, or
|
|
298
|
+
* type of work. In QuickBooks, class tracking is off by default.
|
|
299
|
+
*/
|
|
300
|
+
classId?: string;
|
|
301
|
+
/**
|
|
302
|
+
* Body param: The customer or customer-job to which this time tracking activity
|
|
303
|
+
* could be billed. If `billingStatus` is set to "billable", this field is
|
|
304
|
+
* required.
|
|
305
|
+
*/
|
|
306
|
+
customerId?: string;
|
|
307
|
+
/**
|
|
308
|
+
* Body param: A globally unique identifier (GUID) you, the developer, can provide
|
|
309
|
+
* for tracking this object in your external system. This field is immutable and
|
|
310
|
+
* can only be set during object creation.
|
|
311
|
+
*
|
|
312
|
+
* **IMPORTANT**: This field must be formatted as a valid GUID; otherwise,
|
|
313
|
+
* QuickBooks will return an error.
|
|
314
|
+
*/
|
|
315
|
+
externalId?: string;
|
|
316
|
+
/**
|
|
317
|
+
* Body param: A note or comment about this time tracking activity.
|
|
318
|
+
*/
|
|
319
|
+
note?: string;
|
|
320
|
+
/**
|
|
321
|
+
* Body param: The payroll wage item (e.g., Regular Pay, Overtime Pay) to use for
|
|
322
|
+
* this time tracking activity. This field can only be used for time tracking if:
|
|
323
|
+
* (1) the person specified in `entity` is an employee in QuickBooks, and (2) the
|
|
324
|
+
* "Use time data to create paychecks" preference is enabled in their payroll
|
|
325
|
+
* settings.
|
|
326
|
+
*/
|
|
327
|
+
payrollWageItemId?: string;
|
|
328
|
+
/**
|
|
329
|
+
* Body param: The type of service performed during this time tracking activity,
|
|
330
|
+
* referring to billable or purchasable services such as specialized labor,
|
|
331
|
+
* consulting hours, and professional fees.
|
|
332
|
+
*
|
|
333
|
+
* **NOTE**: This field is not required if no `customer` is specified. However, if
|
|
334
|
+
* `billingStatus` is set to "billable", both this field and `customer` are
|
|
335
|
+
* required.
|
|
336
|
+
*/
|
|
337
|
+
serviceItemId?: string;
|
|
338
|
+
}
|
|
339
|
+
export interface TimeTrackingActivityRetrieveParams {
|
|
340
|
+
/**
|
|
341
|
+
* The ID of the EndUser to receive this request (e.g.,
|
|
342
|
+
* `"Conductor-End-User-Id: {{END_USER_ID}}"`).
|
|
343
|
+
*/
|
|
344
|
+
conductorEndUserId: string;
|
|
345
|
+
}
|
|
346
|
+
export interface TimeTrackingActivityUpdateParams {
|
|
347
|
+
/**
|
|
348
|
+
* Body param: The time spent performing the service during this time tracking
|
|
349
|
+
* activity, in ISO 8601 format for time intervals (PTnHnMnS). For example, 1 hour
|
|
350
|
+
* and 30 minutes is represented as PT1H30M.
|
|
351
|
+
*
|
|
352
|
+
* **NOTE**: Although seconds can be specified when creating a time tracking
|
|
353
|
+
* activity, they are not returned in responses since QuickBooks Desktop's UI does
|
|
354
|
+
* not display seconds.
|
|
355
|
+
*
|
|
356
|
+
* **IMPORTANT**: This field is required for updating time tracking activities,
|
|
357
|
+
* even if the field is not being modified, because of a bug in QuickBooks itself.
|
|
358
|
+
*/
|
|
359
|
+
duration: string;
|
|
360
|
+
/**
|
|
361
|
+
* Body param: The employee, vendor, or person on QuickBooks's "Other Names" list
|
|
362
|
+
* whose time is being tracked in this time tracking activity. This cannot refer to
|
|
363
|
+
* a customer - use the `customer` field to associate a customer or customer-job
|
|
364
|
+
* with this time tracking activity.
|
|
365
|
+
*
|
|
366
|
+
* **IMPORTANT**: This field is required for updating time tracking activities,
|
|
367
|
+
* even if the field is not being modified, because of a bug in QuickBooks itself.
|
|
368
|
+
*/
|
|
369
|
+
entityId: string;
|
|
370
|
+
/**
|
|
371
|
+
* Body param: The current QuickBooks-assigned revision number of the time tracking
|
|
372
|
+
* activity object you are updating, which you can get by fetching the object
|
|
373
|
+
* first. Provide the most recent `revisionNumber` to ensure you're working with
|
|
374
|
+
* the latest data; otherwise, the update will return an error.
|
|
375
|
+
*/
|
|
376
|
+
revisionNumber: string;
|
|
377
|
+
/**
|
|
378
|
+
* Header param: The ID of the EndUser to receive this request (e.g.,
|
|
379
|
+
* `"Conductor-End-User-Id: {{END_USER_ID}}"`).
|
|
380
|
+
*/
|
|
381
|
+
conductorEndUserId: string;
|
|
382
|
+
/**
|
|
383
|
+
* Body param: The billing status of this time tracking activity.
|
|
384
|
+
*
|
|
385
|
+
* **IMPORTANT**: When this field is set to "billable" for time tracking
|
|
386
|
+
* activities, both `customer` and `serviceItem` are required so that an invoice
|
|
387
|
+
* can be created.
|
|
388
|
+
*/
|
|
389
|
+
billingStatus?: 'billable' | 'has_been_billed' | 'not_billable';
|
|
390
|
+
/**
|
|
391
|
+
* Body param: The time tracking activity's class. Classes can be used to
|
|
392
|
+
* categorize objects into meaningful segments, such as department, location, or
|
|
393
|
+
* type of work. In QuickBooks, class tracking is off by default.
|
|
394
|
+
*/
|
|
395
|
+
classId?: string;
|
|
396
|
+
/**
|
|
397
|
+
* Body param: The customer or customer-job to which this time tracking activity
|
|
398
|
+
* could be billed. If `billingStatus` is set to "billable", this field is
|
|
399
|
+
* required.
|
|
400
|
+
*/
|
|
401
|
+
customerId?: string;
|
|
402
|
+
/**
|
|
403
|
+
* Body param: A note or comment about this time tracking activity.
|
|
404
|
+
*/
|
|
405
|
+
note?: string;
|
|
406
|
+
/**
|
|
407
|
+
* Body param: The payroll wage item (e.g., Regular Pay, Overtime Pay) to use for
|
|
408
|
+
* this time tracking activity. This field can only be used for time tracking if:
|
|
409
|
+
* (1) the person specified in `entity` is an employee in QuickBooks, and (2) the
|
|
410
|
+
* "Use time data to create paychecks" preference is enabled in their payroll
|
|
411
|
+
* settings.
|
|
412
|
+
*/
|
|
413
|
+
payrollWageItemId?: string;
|
|
414
|
+
/**
|
|
415
|
+
* Body param: The type of service performed during this time tracking activity,
|
|
416
|
+
* referring to billable or purchasable services such as specialized labor,
|
|
417
|
+
* consulting hours, and professional fees.
|
|
418
|
+
*
|
|
419
|
+
* **NOTE**: This field is not required if no `customer` is specified. However, if
|
|
420
|
+
* `billingStatus` is set to "billable", both this field and `customer` are
|
|
421
|
+
* required.
|
|
422
|
+
*/
|
|
423
|
+
serviceItemId?: string;
|
|
424
|
+
/**
|
|
425
|
+
* Body param: The date of this time tracking activity, in ISO 8601 format
|
|
426
|
+
* (YYYY-MM-DD).
|
|
427
|
+
*/
|
|
428
|
+
transactionDate?: string;
|
|
429
|
+
}
|
|
430
|
+
export interface TimeTrackingActivityListParams extends CursorPageParams {
|
|
431
|
+
/**
|
|
432
|
+
* Header param: The ID of the EndUser to receive this request (e.g.,
|
|
433
|
+
* `"Conductor-End-User-Id: {{END_USER_ID}}"`).
|
|
434
|
+
*/
|
|
435
|
+
conductorEndUserId: string;
|
|
436
|
+
/**
|
|
437
|
+
* Query param: Filter for time tracking activities tracking the time of these
|
|
438
|
+
* employees, vendors, or persons on QuickBooks's "Other Names" list.
|
|
439
|
+
*/
|
|
440
|
+
entityIds?: Array<string>;
|
|
441
|
+
/**
|
|
442
|
+
* Query param: Filter for specific time tracking activities by their
|
|
443
|
+
* QuickBooks-assigned unique identifier(s).
|
|
444
|
+
*
|
|
445
|
+
* **IMPORTANT**: If you include this parameter, QuickBooks will ignore all other
|
|
446
|
+
* query parameters for this request.
|
|
447
|
+
*
|
|
448
|
+
* **NOTE**: If any of the values you specify in this parameter are not found, the
|
|
449
|
+
* request will return an error.
|
|
450
|
+
*/
|
|
451
|
+
ids?: Array<string>;
|
|
452
|
+
/**
|
|
453
|
+
* Query param: Filter for time tracking activities created on or after this date,
|
|
454
|
+
* in ISO 8601 format (YYYY-MM-DD).
|
|
455
|
+
*/
|
|
456
|
+
transactionDateFrom?: string;
|
|
457
|
+
/**
|
|
458
|
+
* Query param: Filter for time tracking activities created on or before this date,
|
|
459
|
+
* in ISO 8601 format (YYYY-MM-DD).
|
|
460
|
+
*/
|
|
461
|
+
transactionDateTo?: string;
|
|
462
|
+
/**
|
|
463
|
+
* Query param: Filter for time tracking activities updated on or after this date
|
|
464
|
+
* and time, in ISO 8601 format (YYYY-MM-DDTHH:mm:ss). If you only provide a date
|
|
465
|
+
* (YYYY-MM-DD), the time is assumed to be 00:00:00 of that day.
|
|
466
|
+
*/
|
|
467
|
+
updatedAfter?: string;
|
|
468
|
+
/**
|
|
469
|
+
* Query param: Filter for time tracking activities updated on or before this date
|
|
470
|
+
* and time, in ISO 8601 format (YYYY-MM-DDTHH:mm:ss). If you only provide a date
|
|
471
|
+
* (YYYY-MM-DD), the time is assumed to be 23:59:59 of that day.
|
|
472
|
+
*/
|
|
473
|
+
updatedBefore?: string;
|
|
474
|
+
}
|
|
475
|
+
export interface TimeTrackingActivityDeleteParams {
|
|
476
|
+
/**
|
|
477
|
+
* The ID of the EndUser to receive this request (e.g.,
|
|
478
|
+
* `"Conductor-End-User-Id: {{END_USER_ID}}"`).
|
|
479
|
+
*/
|
|
480
|
+
conductorEndUserId: string;
|
|
481
|
+
}
|
|
482
|
+
export declare namespace TimeTrackingActivities {
|
|
483
|
+
export { type TimeTrackingActivity as TimeTrackingActivity, type TimeTrackingActivityDeleteResponse as TimeTrackingActivityDeleteResponse, TimeTrackingActivitiesCursorPage as TimeTrackingActivitiesCursorPage, type TimeTrackingActivityCreateParams as TimeTrackingActivityCreateParams, type TimeTrackingActivityRetrieveParams as TimeTrackingActivityRetrieveParams, type TimeTrackingActivityUpdateParams as TimeTrackingActivityUpdateParams, type TimeTrackingActivityListParams as TimeTrackingActivityListParams, type TimeTrackingActivityDeleteParams as TimeTrackingActivityDeleteParams, };
|
|
484
|
+
}
|
|
485
|
+
//# sourceMappingURL=time-tracking-activities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time-tracking-activities.d.ts","sourceRoot":"","sources":["../../src/resources/qbd/time-tracking-activities.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAErE,qBAAa,sBAAuB,SAAQ,WAAW;IACrD;;OAEG;IACH,MAAM,CACJ,MAAM,EAAE,gCAAgC,EACxC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,oBAAoB,CAAC;IASxC;;OAEG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,kCAAkC,EAC1C,OAAO,CAAC,EAAE,IAAI,CAAC,cA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"__esModule", { value: true });
|
|
4
|
+
exports.TimeTrackingActivitiesCursorPage = exports.TimeTrackingActivities = void 0;
|
|
5
|
+
const resource_1 = require("../../resource.js");
|
|
6
|
+
const pagination_1 = require("../../pagination.js");
|
|
7
|
+
class TimeTrackingActivities extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Creates a new time tracking activity.
|
|
10
|
+
*/
|
|
11
|
+
create(params, options) {
|
|
12
|
+
const { conductorEndUserId, ...body } = params;
|
|
13
|
+
return this._client.post('/quickbooks-desktop/time-tracking-activities', {
|
|
14
|
+
body,
|
|
15
|
+
...options,
|
|
16
|
+
headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Retrieves a time tracking activity by ID.
|
|
21
|
+
*/
|
|
22
|
+
retrieve(id, params, options) {
|
|
23
|
+
const { conductorEndUserId } = params;
|
|
24
|
+
return this._client.get(`/quickbooks-desktop/time-tracking-activities/${id}`, {
|
|
25
|
+
...options,
|
|
26
|
+
headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Updates an existing time tracking activity.
|
|
31
|
+
*/
|
|
32
|
+
update(id, params, options) {
|
|
33
|
+
const { conductorEndUserId, ...body } = params;
|
|
34
|
+
return this._client.post(`/quickbooks-desktop/time-tracking-activities/${id}`, {
|
|
35
|
+
body,
|
|
36
|
+
...options,
|
|
37
|
+
headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Returns a list of time tracking activities. Use the `cursor` parameter to
|
|
42
|
+
* paginate through the results.
|
|
43
|
+
*/
|
|
44
|
+
list(params, options) {
|
|
45
|
+
const { conductorEndUserId, ...query } = params;
|
|
46
|
+
return this._client.getAPIList('/quickbooks-desktop/time-tracking-activities', TimeTrackingActivitiesCursorPage, { query, ...options, headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers } });
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Permanently deletes a a time tracking activity. The deletion will fail if the
|
|
50
|
+
* time tracking activity is currently in use or has any linked transactions that
|
|
51
|
+
* are in use.
|
|
52
|
+
*/
|
|
53
|
+
delete(id, params, options) {
|
|
54
|
+
const { conductorEndUserId } = params;
|
|
55
|
+
return this._client.delete(`/quickbooks-desktop/time-tracking-activities/${id}`, {
|
|
56
|
+
...options,
|
|
57
|
+
headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
exports.TimeTrackingActivities = TimeTrackingActivities;
|
|
62
|
+
class TimeTrackingActivitiesCursorPage extends pagination_1.CursorPage {
|
|
63
|
+
}
|
|
64
|
+
exports.TimeTrackingActivitiesCursorPage = TimeTrackingActivitiesCursorPage;
|
|
65
|
+
TimeTrackingActivities.TimeTrackingActivitiesCursorPage = TimeTrackingActivitiesCursorPage;
|
|
66
|
+
//# sourceMappingURL=time-tracking-activities.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time-tracking-activities.js","sourceRoot":"","sources":["../../src/resources/qbd/time-tracking-activities.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAE7C,oDAAqE;AAErE,MAAa,sBAAuB,SAAQ,sBAAW;IACrD;;OAEG;IACH,MAAM,CACJ,MAAwC,EACxC,OAA6B;QAE7B,MAAM,EAAE,kBAAkB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,8CAA8C,EAAE;YACvE,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;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/E,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAC9E,CAAC,CAAC;IACL,CAAC;CACF;AA/ED,wDA+EC;AAED,MAAa,gCAAiC,SAAQ,uBAAgC;CAAG;AAAzF,4EAAyF;AAkgBzF,sBAAsB,CAAC,gCAAgC,GAAG,gCAAgC,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../resource.mjs";
|
|
3
|
+
import { CursorPage } from "../../pagination.mjs";
|
|
4
|
+
export class TimeTrackingActivities extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Creates a new time tracking activity.
|
|
7
|
+
*/
|
|
8
|
+
create(params, options) {
|
|
9
|
+
const { conductorEndUserId, ...body } = params;
|
|
10
|
+
return this._client.post('/quickbooks-desktop/time-tracking-activities', {
|
|
11
|
+
body,
|
|
12
|
+
...options,
|
|
13
|
+
headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Retrieves a time tracking activity by ID.
|
|
18
|
+
*/
|
|
19
|
+
retrieve(id, params, options) {
|
|
20
|
+
const { conductorEndUserId } = params;
|
|
21
|
+
return this._client.get(`/quickbooks-desktop/time-tracking-activities/${id}`, {
|
|
22
|
+
...options,
|
|
23
|
+
headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Updates an existing time tracking activity.
|
|
28
|
+
*/
|
|
29
|
+
update(id, params, options) {
|
|
30
|
+
const { conductorEndUserId, ...body } = params;
|
|
31
|
+
return this._client.post(`/quickbooks-desktop/time-tracking-activities/${id}`, {
|
|
32
|
+
body,
|
|
33
|
+
...options,
|
|
34
|
+
headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Returns a list of time tracking activities. Use the `cursor` parameter to
|
|
39
|
+
* paginate through the results.
|
|
40
|
+
*/
|
|
41
|
+
list(params, options) {
|
|
42
|
+
const { conductorEndUserId, ...query } = params;
|
|
43
|
+
return this._client.getAPIList('/quickbooks-desktop/time-tracking-activities', TimeTrackingActivitiesCursorPage, { query, ...options, headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers } });
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Permanently deletes a a time tracking activity. The deletion will fail if the
|
|
47
|
+
* time tracking activity is currently in use or has any linked transactions that
|
|
48
|
+
* are in use.
|
|
49
|
+
*/
|
|
50
|
+
delete(id, params, options) {
|
|
51
|
+
const { conductorEndUserId } = params;
|
|
52
|
+
return this._client.delete(`/quickbooks-desktop/time-tracking-activities/${id}`, {
|
|
53
|
+
...options,
|
|
54
|
+
headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
export class TimeTrackingActivitiesCursorPage extends CursorPage {
|
|
59
|
+
}
|
|
60
|
+
TimeTrackingActivities.TimeTrackingActivitiesCursorPage = TimeTrackingActivitiesCursorPage;
|
|
61
|
+
//# sourceMappingURL=time-tracking-activities.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time-tracking-activities.mjs","sourceRoot":"","sources":["../../src/resources/qbd/time-tracking-activities.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,UAAU,EAAyB;AAE5C,MAAM,OAAO,sBAAuB,SAAQ,WAAW;IACrD;;OAEG;IACH,MAAM,CACJ,MAAwC,EACxC,OAA6B;QAE7B,MAAM,EAAE,kBAAkB,EAAE,GAAG,IAAI,EAAE,GAAG,MA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