conductor-node-mcp 12.38.0 → 12.40.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +46 -1
- package/code-tool-worker.d.mts.map +1 -1
- package/code-tool-worker.d.ts.map +1 -1
- package/code-tool-worker.js +327 -7
- package/code-tool-worker.js.map +1 -1
- package/code-tool-worker.mjs +327 -7
- package/code-tool-worker.mjs.map +1 -1
- package/code-tool.d.mts +1 -1
- package/code-tool.d.mts.map +1 -1
- package/code-tool.d.ts +1 -1
- package/code-tool.d.ts.map +1 -1
- package/code-tool.js +11 -13
- package/code-tool.js.map +1 -1
- package/code-tool.mjs +11 -13
- package/code-tool.mjs.map +1 -1
- package/dynamic-tools.d.mts +1 -1
- package/dynamic-tools.d.ts +1 -1
- package/dynamic-tools.js +1 -1
- package/dynamic-tools.mjs +1 -1
- package/filtering.d.mts +1 -0
- package/filtering.d.mts.map +1 -1
- package/filtering.d.ts +1 -0
- package/filtering.d.ts.map +1 -1
- package/filtering.js +4 -0
- package/filtering.js.map +1 -1
- package/filtering.mjs +3 -0
- package/filtering.mjs.map +1 -1
- package/headers.d.mts.map +1 -1
- package/headers.d.ts.map +1 -1
- package/headers.js +1 -1
- package/headers.js.map +1 -1
- package/headers.mjs +1 -1
- package/headers.mjs.map +1 -1
- package/http.js +2 -2
- package/http.js.map +1 -1
- package/http.mjs +2 -2
- package/http.mjs.map +1 -1
- package/options.d.mts.map +1 -1
- package/options.d.ts.map +1 -1
- package/options.js +6 -3
- package/options.js.map +1 -1
- package/options.mjs +6 -3
- package/options.mjs.map +1 -1
- package/package.json +5 -3
- package/server.js +1 -1
- package/server.mjs +1 -1
- package/src/code-tool-worker.ts +372 -7
- package/src/code-tool.ts +14 -13
- package/src/dynamic-tools.ts +1 -1
- package/src/filtering.ts +4 -0
- package/src/headers.ts +3 -1
- package/src/http.ts +2 -2
- package/src/options.ts +10 -3
- package/src/server.ts +1 -1
- package/src/tools/auth-sessions/create-auth-sessions.ts +10 -3
- package/src/tools/end-users/create-end-users.ts +10 -3
- package/src/tools/end-users/delete-end-users.ts +10 -3
- package/src/tools/end-users/list-end-users.ts +10 -3
- package/src/tools/end-users/passthrough-end-users.ts +15 -8
- package/src/tools/end-users/retrieve-end-users.ts +10 -3
- package/src/tools/index.ts +6 -0
- package/src/tools/qbd/account-tax-lines/list-qbd-account-tax-lines.ts +10 -3
- package/src/tools/qbd/bill-check-payments/delete-qbd-bill-check-payments.ts +12 -5
- package/src/tools/qbd/bill-credit-card-payments/delete-qbd-bill-credit-card-payments.ts +12 -5
- package/src/tools/qbd/bills/delete-qbd-bills.ts +10 -3
- package/src/tools/qbd/build-assemblies/delete-qbd-build-assemblies.ts +12 -5
- package/src/tools/qbd/checks/delete-qbd-checks.ts +10 -3
- package/src/tools/qbd/classes/create-qbd-classes.ts +10 -3
- package/src/tools/qbd/classes/list-qbd-classes.ts +10 -3
- package/src/tools/qbd/classes/retrieve-qbd-classes.ts +10 -3
- package/src/tools/qbd/classes/update-qbd-classes.ts +10 -3
- package/src/tools/qbd/credit-card-charges/delete-qbd-credit-card-charges.ts +12 -5
- package/src/tools/qbd/credit-card-credits/delete-qbd-credit-card-credits.ts +12 -5
- package/src/tools/qbd/credit-card-refunds/delete-qbd-credit-card-refunds.ts +12 -5
- package/src/tools/qbd/credit-memos/delete-qbd-credit-memos.ts +12 -3
- package/src/tools/qbd/currencies/create-qbd-currencies.ts +10 -3
- package/src/tools/qbd/currencies/retrieve-qbd-currencies.ts +12 -3
- package/src/tools/qbd/currencies/update-qbd-currencies.ts +10 -3
- package/src/tools/qbd/customer-types/create-qbd-customer-types.ts +68 -0
- package/src/tools/qbd/customer-types/list-qbd-customer-types.ts +116 -0
- package/src/tools/qbd/customer-types/retrieve-qbd-customer-types.ts +61 -0
- package/src/tools/qbd/date-driven-terms/create-qbd-date-driven-terms.ts +12 -3
- package/src/tools/qbd/date-driven-terms/list-qbd-date-driven-terms.ts +10 -3
- package/src/tools/qbd/date-driven-terms/retrieve-qbd-date-driven-terms.ts +12 -5
- package/src/tools/qbd/deleted-list-objects/list-qbd-deleted-list-objects.ts +12 -3
- package/src/tools/qbd/deleted-transactions/list-qbd-deleted-transactions.ts +12 -5
- package/src/tools/qbd/estimates/delete-qbd-estimates.ts +10 -3
- package/src/tools/qbd/health-check-qbd.ts +10 -3
- package/src/tools/qbd/inventory-adjustments/delete-qbd-inventory-adjustments.ts +12 -5
- package/src/tools/qbd/inventory-sites/create-qbd-inventory-sites.ts +10 -3
- package/src/tools/qbd/inventory-sites/retrieve-qbd-inventory-sites.ts +12 -5
- package/src/tools/qbd/inventory-sites/update-qbd-inventory-sites.ts +12 -5
- package/src/tools/qbd/invoices/delete-qbd-invoices.ts +10 -3
- package/src/tools/qbd/item-groups/retrieve-qbd-item-groups.ts +12 -3
- package/src/tools/qbd/item-receipts/delete-qbd-item-receipts.ts +12 -3
- package/src/tools/qbd/item-sites/retrieve-qbd-item-sites.ts +12 -3
- package/src/tools/qbd/journal-entries/delete-qbd-journal-entries.ts +12 -5
- package/src/tools/qbd/other-names/retrieve-qbd-other-names.ts +12 -3
- package/src/tools/qbd/payment-methods/create-qbd-payment-methods.ts +10 -3
- package/src/tools/qbd/payment-methods/list-qbd-payment-methods.ts +10 -3
- package/src/tools/qbd/payment-methods/retrieve-qbd-payment-methods.ts +12 -5
- package/src/tools/qbd/payroll-wage-items/create-qbd-payroll-wage-items.ts +12 -3
- package/src/tools/qbd/payroll-wage-items/list-qbd-payroll-wage-items.ts +10 -3
- package/src/tools/qbd/payroll-wage-items/retrieve-qbd-payroll-wage-items.ts +12 -5
- package/src/tools/qbd/price-levels/retrieve-qbd-price-levels.ts +12 -5
- package/src/tools/qbd/purchase-orders/delete-qbd-purchase-orders.ts +12 -5
- package/src/tools/qbd/receive-payments/delete-qbd-receive-payments.ts +12 -5
- package/src/tools/qbd/sales-orders/delete-qbd-sales-orders.ts +12 -3
- package/src/tools/qbd/sales-receipts/delete-qbd-sales-receipts.ts +12 -5
- package/src/tools/qbd/sales-representatives/create-qbd-sales-representatives.ts +12 -5
- package/src/tools/qbd/sales-representatives/list-qbd-sales-representatives.ts +12 -5
- package/src/tools/qbd/sales-representatives/retrieve-qbd-sales-representatives.ts +12 -5
- package/src/tools/qbd/sales-representatives/update-qbd-sales-representatives.ts +12 -5
- package/src/tools/qbd/sales-tax-codes/create-qbd-sales-tax-codes.ts +10 -3
- package/src/tools/qbd/sales-tax-codes/list-qbd-sales-tax-codes.ts +10 -3
- package/src/tools/qbd/sales-tax-codes/retrieve-qbd-sales-tax-codes.ts +12 -5
- package/src/tools/qbd/sales-tax-codes/update-qbd-sales-tax-codes.ts +12 -5
- package/src/tools/qbd/sales-tax-items/retrieve-qbd-sales-tax-items.ts +12 -5
- package/src/tools/qbd/standard-terms/create-qbd-standard-terms.ts +10 -3
- package/src/tools/qbd/standard-terms/list-qbd-standard-terms.ts +10 -3
- package/src/tools/qbd/standard-terms/retrieve-qbd-standard-terms.ts +12 -5
- package/src/tools/qbd/subtotal-items/create-qbd-subtotal-items.ts +10 -3
- package/src/tools/qbd/subtotal-items/retrieve-qbd-subtotal-items.ts +12 -5
- package/src/tools/qbd/subtotal-items/update-qbd-subtotal-items.ts +12 -5
- package/src/tools/qbd/templates/list-qbd-templates.ts +10 -3
- package/src/tools/qbd/time-tracking-activities/delete-qbd-time-tracking-activities.ts +12 -5
- package/src/tools/qbd/time-tracking-activities/retrieve-qbd-time-tracking-activities.ts +12 -5
- package/src/tools/qbd/transactions/retrieve-qbd-transactions.ts +12 -5
- package/src/tools/qbd/transfers/create-qbd-transfers.ts +10 -3
- package/src/tools/qbd/transfers/retrieve-qbd-transfers.ts +12 -3
- package/src/tools/qbd/transfers/update-qbd-transfers.ts +10 -3
- package/src/tools/qbd/unit-of-measure-sets/retrieve-qbd-unit-of-measure-sets.ts +12 -5
- package/src/tools/qbd/vendor-credits/delete-qbd-vendor-credits.ts +12 -5
- package/src/tools/types.ts +12 -0
- package/tools/auth-sessions/create-auth-sessions.d.mts.map +1 -1
- package/tools/auth-sessions/create-auth-sessions.d.ts.map +1 -1
- package/tools/auth-sessions/create-auth-sessions.js +9 -1
- package/tools/auth-sessions/create-auth-sessions.js.map +1 -1
- package/tools/auth-sessions/create-auth-sessions.mjs +11 -3
- package/tools/auth-sessions/create-auth-sessions.mjs.map +1 -1
- package/tools/end-users/create-end-users.d.mts.map +1 -1
- package/tools/end-users/create-end-users.d.ts.map +1 -1
- package/tools/end-users/create-end-users.js +9 -1
- package/tools/end-users/create-end-users.js.map +1 -1
- package/tools/end-users/create-end-users.mjs +11 -3
- package/tools/end-users/create-end-users.mjs.map +1 -1
- package/tools/end-users/delete-end-users.d.mts.map +1 -1
- package/tools/end-users/delete-end-users.d.ts.map +1 -1
- package/tools/end-users/delete-end-users.js +9 -1
- package/tools/end-users/delete-end-users.js.map +1 -1
- package/tools/end-users/delete-end-users.mjs +11 -3
- package/tools/end-users/delete-end-users.mjs.map +1 -1
- package/tools/end-users/list-end-users.d.mts.map +1 -1
- package/tools/end-users/list-end-users.d.ts.map +1 -1
- package/tools/end-users/list-end-users.js +9 -1
- package/tools/end-users/list-end-users.js.map +1 -1
- package/tools/end-users/list-end-users.mjs +11 -3
- package/tools/end-users/list-end-users.mjs.map +1 -1
- package/tools/end-users/passthrough-end-users.d.mts.map +1 -1
- package/tools/end-users/passthrough-end-users.d.ts.map +1 -1
- package/tools/end-users/passthrough-end-users.js +9 -1
- package/tools/end-users/passthrough-end-users.js.map +1 -1
- package/tools/end-users/passthrough-end-users.mjs +11 -3
- package/tools/end-users/passthrough-end-users.mjs.map +1 -1
- package/tools/end-users/retrieve-end-users.d.mts.map +1 -1
- package/tools/end-users/retrieve-end-users.d.ts.map +1 -1
- package/tools/end-users/retrieve-end-users.js +9 -1
- package/tools/end-users/retrieve-end-users.js.map +1 -1
- package/tools/end-users/retrieve-end-users.mjs +11 -3
- package/tools/end-users/retrieve-end-users.mjs.map +1 -1
- package/tools/index.d.mts.map +1 -1
- package/tools/index.d.ts.map +1 -1
- package/tools/index.js +6 -0
- package/tools/index.js.map +1 -1
- package/tools/index.mjs +6 -0
- package/tools/index.mjs.map +1 -1
- package/tools/qbd/account-tax-lines/list-qbd-account-tax-lines.d.mts.map +1 -1
- package/tools/qbd/account-tax-lines/list-qbd-account-tax-lines.d.ts.map +1 -1
- package/tools/qbd/account-tax-lines/list-qbd-account-tax-lines.js +9 -1
- package/tools/qbd/account-tax-lines/list-qbd-account-tax-lines.js.map +1 -1
- package/tools/qbd/account-tax-lines/list-qbd-account-tax-lines.mjs +11 -3
- package/tools/qbd/account-tax-lines/list-qbd-account-tax-lines.mjs.map +1 -1
- package/tools/qbd/bill-check-payments/delete-qbd-bill-check-payments.d.mts.map +1 -1
- package/tools/qbd/bill-check-payments/delete-qbd-bill-check-payments.d.ts.map +1 -1
- package/tools/qbd/bill-check-payments/delete-qbd-bill-check-payments.js +9 -1
- package/tools/qbd/bill-check-payments/delete-qbd-bill-check-payments.js.map +1 -1
- package/tools/qbd/bill-check-payments/delete-qbd-bill-check-payments.mjs +11 -3
- package/tools/qbd/bill-check-payments/delete-qbd-bill-check-payments.mjs.map +1 -1
- package/tools/qbd/bill-credit-card-payments/delete-qbd-bill-credit-card-payments.d.mts.map +1 -1
- package/tools/qbd/bill-credit-card-payments/delete-qbd-bill-credit-card-payments.d.ts.map +1 -1
- package/tools/qbd/bill-credit-card-payments/delete-qbd-bill-credit-card-payments.js +9 -1
- package/tools/qbd/bill-credit-card-payments/delete-qbd-bill-credit-card-payments.js.map +1 -1
- package/tools/qbd/bill-credit-card-payments/delete-qbd-bill-credit-card-payments.mjs +11 -3
- package/tools/qbd/bill-credit-card-payments/delete-qbd-bill-credit-card-payments.mjs.map +1 -1
- package/tools/qbd/bills/delete-qbd-bills.d.mts.map +1 -1
- package/tools/qbd/bills/delete-qbd-bills.d.ts.map +1 -1
- package/tools/qbd/bills/delete-qbd-bills.js +9 -1
- package/tools/qbd/bills/delete-qbd-bills.js.map +1 -1
- package/tools/qbd/bills/delete-qbd-bills.mjs +11 -3
- package/tools/qbd/bills/delete-qbd-bills.mjs.map +1 -1
- package/tools/qbd/build-assemblies/delete-qbd-build-assemblies.d.mts.map +1 -1
- package/tools/qbd/build-assemblies/delete-qbd-build-assemblies.d.ts.map +1 -1
- package/tools/qbd/build-assemblies/delete-qbd-build-assemblies.js +9 -1
- package/tools/qbd/build-assemblies/delete-qbd-build-assemblies.js.map +1 -1
- package/tools/qbd/build-assemblies/delete-qbd-build-assemblies.mjs +11 -3
- package/tools/qbd/build-assemblies/delete-qbd-build-assemblies.mjs.map +1 -1
- package/tools/qbd/checks/delete-qbd-checks.d.mts.map +1 -1
- package/tools/qbd/checks/delete-qbd-checks.d.ts.map +1 -1
- package/tools/qbd/checks/delete-qbd-checks.js +9 -1
- package/tools/qbd/checks/delete-qbd-checks.js.map +1 -1
- package/tools/qbd/checks/delete-qbd-checks.mjs +11 -3
- package/tools/qbd/checks/delete-qbd-checks.mjs.map +1 -1
- package/tools/qbd/classes/create-qbd-classes.d.mts.map +1 -1
- package/tools/qbd/classes/create-qbd-classes.d.ts.map +1 -1
- package/tools/qbd/classes/create-qbd-classes.js +9 -1
- package/tools/qbd/classes/create-qbd-classes.js.map +1 -1
- package/tools/qbd/classes/create-qbd-classes.mjs +11 -3
- package/tools/qbd/classes/create-qbd-classes.mjs.map +1 -1
- package/tools/qbd/classes/list-qbd-classes.d.mts.map +1 -1
- package/tools/qbd/classes/list-qbd-classes.d.ts.map +1 -1
- package/tools/qbd/classes/list-qbd-classes.js +9 -1
- package/tools/qbd/classes/list-qbd-classes.js.map +1 -1
- package/tools/qbd/classes/list-qbd-classes.mjs +11 -3
- package/tools/qbd/classes/list-qbd-classes.mjs.map +1 -1
- package/tools/qbd/classes/retrieve-qbd-classes.d.mts.map +1 -1
- package/tools/qbd/classes/retrieve-qbd-classes.d.ts.map +1 -1
- package/tools/qbd/classes/retrieve-qbd-classes.js +9 -1
- package/tools/qbd/classes/retrieve-qbd-classes.js.map +1 -1
- package/tools/qbd/classes/retrieve-qbd-classes.mjs +11 -3
- package/tools/qbd/classes/retrieve-qbd-classes.mjs.map +1 -1
- package/tools/qbd/classes/update-qbd-classes.d.mts.map +1 -1
- package/tools/qbd/classes/update-qbd-classes.d.ts.map +1 -1
- package/tools/qbd/classes/update-qbd-classes.js +9 -1
- package/tools/qbd/classes/update-qbd-classes.js.map +1 -1
- package/tools/qbd/classes/update-qbd-classes.mjs +11 -3
- package/tools/qbd/classes/update-qbd-classes.mjs.map +1 -1
- package/tools/qbd/credit-card-charges/delete-qbd-credit-card-charges.d.mts.map +1 -1
- package/tools/qbd/credit-card-charges/delete-qbd-credit-card-charges.d.ts.map +1 -1
- package/tools/qbd/credit-card-charges/delete-qbd-credit-card-charges.js +9 -1
- package/tools/qbd/credit-card-charges/delete-qbd-credit-card-charges.js.map +1 -1
- package/tools/qbd/credit-card-charges/delete-qbd-credit-card-charges.mjs +11 -3
- package/tools/qbd/credit-card-charges/delete-qbd-credit-card-charges.mjs.map +1 -1
- package/tools/qbd/credit-card-credits/delete-qbd-credit-card-credits.d.mts.map +1 -1
- package/tools/qbd/credit-card-credits/delete-qbd-credit-card-credits.d.ts.map +1 -1
- package/tools/qbd/credit-card-credits/delete-qbd-credit-card-credits.js +9 -1
- package/tools/qbd/credit-card-credits/delete-qbd-credit-card-credits.js.map +1 -1
- package/tools/qbd/credit-card-credits/delete-qbd-credit-card-credits.mjs +11 -3
- package/tools/qbd/credit-card-credits/delete-qbd-credit-card-credits.mjs.map +1 -1
- package/tools/qbd/credit-card-refunds/delete-qbd-credit-card-refunds.d.mts.map +1 -1
- package/tools/qbd/credit-card-refunds/delete-qbd-credit-card-refunds.d.ts.map +1 -1
- package/tools/qbd/credit-card-refunds/delete-qbd-credit-card-refunds.js +9 -1
- package/tools/qbd/credit-card-refunds/delete-qbd-credit-card-refunds.js.map +1 -1
- package/tools/qbd/credit-card-refunds/delete-qbd-credit-card-refunds.mjs +11 -3
- package/tools/qbd/credit-card-refunds/delete-qbd-credit-card-refunds.mjs.map +1 -1
- package/tools/qbd/credit-memos/delete-qbd-credit-memos.d.mts.map +1 -1
- package/tools/qbd/credit-memos/delete-qbd-credit-memos.d.ts.map +1 -1
- package/tools/qbd/credit-memos/delete-qbd-credit-memos.js +9 -1
- package/tools/qbd/credit-memos/delete-qbd-credit-memos.js.map +1 -1
- package/tools/qbd/credit-memos/delete-qbd-credit-memos.mjs +11 -3
- package/tools/qbd/credit-memos/delete-qbd-credit-memos.mjs.map +1 -1
- package/tools/qbd/currencies/create-qbd-currencies.d.mts.map +1 -1
- package/tools/qbd/currencies/create-qbd-currencies.d.ts.map +1 -1
- package/tools/qbd/currencies/create-qbd-currencies.js +9 -1
- package/tools/qbd/currencies/create-qbd-currencies.js.map +1 -1
- package/tools/qbd/currencies/create-qbd-currencies.mjs +11 -3
- package/tools/qbd/currencies/create-qbd-currencies.mjs.map +1 -1
- package/tools/qbd/currencies/retrieve-qbd-currencies.d.mts.map +1 -1
- package/tools/qbd/currencies/retrieve-qbd-currencies.d.ts.map +1 -1
- package/tools/qbd/currencies/retrieve-qbd-currencies.js +9 -1
- package/tools/qbd/currencies/retrieve-qbd-currencies.js.map +1 -1
- package/tools/qbd/currencies/retrieve-qbd-currencies.mjs +11 -3
- package/tools/qbd/currencies/retrieve-qbd-currencies.mjs.map +1 -1
- package/tools/qbd/currencies/update-qbd-currencies.d.mts.map +1 -1
- package/tools/qbd/currencies/update-qbd-currencies.d.ts.map +1 -1
- package/tools/qbd/currencies/update-qbd-currencies.js +9 -1
- package/tools/qbd/currencies/update-qbd-currencies.js.map +1 -1
- package/tools/qbd/currencies/update-qbd-currencies.mjs +11 -3
- package/tools/qbd/currencies/update-qbd-currencies.mjs.map +1 -1
- package/tools/qbd/customer-types/create-qbd-customer-types.d.mts +45 -0
- package/tools/qbd/customer-types/create-qbd-customer-types.d.mts.map +1 -0
- package/tools/qbd/customer-types/create-qbd-customer-types.d.ts +45 -0
- package/tools/qbd/customer-types/create-qbd-customer-types.d.ts.map +1 -0
- package/tools/qbd/customer-types/create-qbd-customer-types.js +60 -0
- package/tools/qbd/customer-types/create-qbd-customer-types.js.map +1 -0
- package/tools/qbd/customer-types/create-qbd-customer-types.mjs +56 -0
- package/tools/qbd/customer-types/create-qbd-customer-types.mjs.map +1 -0
- package/tools/qbd/customer-types/list-qbd-customer-types.d.mts +45 -0
- package/tools/qbd/customer-types/list-qbd-customer-types.d.mts.map +1 -0
- package/tools/qbd/customer-types/list-qbd-customer-types.d.ts +45 -0
- package/tools/qbd/customer-types/list-qbd-customer-types.d.ts.map +1 -0
- package/tools/qbd/customer-types/list-qbd-customer-types.js +101 -0
- package/tools/qbd/customer-types/list-qbd-customer-types.js.map +1 -0
- package/tools/qbd/customer-types/list-qbd-customer-types.mjs +97 -0
- package/tools/qbd/customer-types/list-qbd-customer-types.mjs.map +1 -0
- package/tools/qbd/customer-types/retrieve-qbd-customer-types.d.mts +45 -0
- package/tools/qbd/customer-types/retrieve-qbd-customer-types.d.mts.map +1 -0
- package/tools/qbd/customer-types/retrieve-qbd-customer-types.d.ts +45 -0
- package/tools/qbd/customer-types/retrieve-qbd-customer-types.d.ts.map +1 -0
- package/tools/qbd/customer-types/retrieve-qbd-customer-types.js +54 -0
- package/tools/qbd/customer-types/retrieve-qbd-customer-types.js.map +1 -0
- package/tools/qbd/customer-types/retrieve-qbd-customer-types.mjs +50 -0
- package/tools/qbd/customer-types/retrieve-qbd-customer-types.mjs.map +1 -0
- package/tools/qbd/date-driven-terms/create-qbd-date-driven-terms.d.mts.map +1 -1
- package/tools/qbd/date-driven-terms/create-qbd-date-driven-terms.d.ts.map +1 -1
- package/tools/qbd/date-driven-terms/create-qbd-date-driven-terms.js +9 -1
- package/tools/qbd/date-driven-terms/create-qbd-date-driven-terms.js.map +1 -1
- package/tools/qbd/date-driven-terms/create-qbd-date-driven-terms.mjs +11 -3
- package/tools/qbd/date-driven-terms/create-qbd-date-driven-terms.mjs.map +1 -1
- package/tools/qbd/date-driven-terms/list-qbd-date-driven-terms.d.mts.map +1 -1
- package/tools/qbd/date-driven-terms/list-qbd-date-driven-terms.d.ts.map +1 -1
- package/tools/qbd/date-driven-terms/list-qbd-date-driven-terms.js +9 -1
- package/tools/qbd/date-driven-terms/list-qbd-date-driven-terms.js.map +1 -1
- package/tools/qbd/date-driven-terms/list-qbd-date-driven-terms.mjs +11 -3
- package/tools/qbd/date-driven-terms/list-qbd-date-driven-terms.mjs.map +1 -1
- package/tools/qbd/date-driven-terms/retrieve-qbd-date-driven-terms.d.mts.map +1 -1
- package/tools/qbd/date-driven-terms/retrieve-qbd-date-driven-terms.d.ts.map +1 -1
- package/tools/qbd/date-driven-terms/retrieve-qbd-date-driven-terms.js +9 -1
- package/tools/qbd/date-driven-terms/retrieve-qbd-date-driven-terms.js.map +1 -1
- package/tools/qbd/date-driven-terms/retrieve-qbd-date-driven-terms.mjs +11 -3
- package/tools/qbd/date-driven-terms/retrieve-qbd-date-driven-terms.mjs.map +1 -1
- package/tools/qbd/deleted-list-objects/list-qbd-deleted-list-objects.d.mts.map +1 -1
- package/tools/qbd/deleted-list-objects/list-qbd-deleted-list-objects.d.ts.map +1 -1
- package/tools/qbd/deleted-list-objects/list-qbd-deleted-list-objects.js +9 -1
- package/tools/qbd/deleted-list-objects/list-qbd-deleted-list-objects.js.map +1 -1
- package/tools/qbd/deleted-list-objects/list-qbd-deleted-list-objects.mjs +11 -3
- package/tools/qbd/deleted-list-objects/list-qbd-deleted-list-objects.mjs.map +1 -1
- package/tools/qbd/deleted-transactions/list-qbd-deleted-transactions.d.mts.map +1 -1
- package/tools/qbd/deleted-transactions/list-qbd-deleted-transactions.d.ts.map +1 -1
- package/tools/qbd/deleted-transactions/list-qbd-deleted-transactions.js +9 -1
- package/tools/qbd/deleted-transactions/list-qbd-deleted-transactions.js.map +1 -1
- package/tools/qbd/deleted-transactions/list-qbd-deleted-transactions.mjs +11 -3
- package/tools/qbd/deleted-transactions/list-qbd-deleted-transactions.mjs.map +1 -1
- package/tools/qbd/estimates/delete-qbd-estimates.d.mts.map +1 -1
- package/tools/qbd/estimates/delete-qbd-estimates.d.ts.map +1 -1
- package/tools/qbd/estimates/delete-qbd-estimates.js +9 -1
- package/tools/qbd/estimates/delete-qbd-estimates.js.map +1 -1
- package/tools/qbd/estimates/delete-qbd-estimates.mjs +11 -3
- package/tools/qbd/estimates/delete-qbd-estimates.mjs.map +1 -1
- package/tools/qbd/health-check-qbd.d.mts.map +1 -1
- package/tools/qbd/health-check-qbd.d.ts.map +1 -1
- package/tools/qbd/health-check-qbd.js +9 -1
- package/tools/qbd/health-check-qbd.js.map +1 -1
- package/tools/qbd/health-check-qbd.mjs +11 -3
- package/tools/qbd/health-check-qbd.mjs.map +1 -1
- package/tools/qbd/inventory-adjustments/delete-qbd-inventory-adjustments.d.mts.map +1 -1
- package/tools/qbd/inventory-adjustments/delete-qbd-inventory-adjustments.d.ts.map +1 -1
- package/tools/qbd/inventory-adjustments/delete-qbd-inventory-adjustments.js +9 -1
- package/tools/qbd/inventory-adjustments/delete-qbd-inventory-adjustments.js.map +1 -1
- package/tools/qbd/inventory-adjustments/delete-qbd-inventory-adjustments.mjs +11 -3
- package/tools/qbd/inventory-adjustments/delete-qbd-inventory-adjustments.mjs.map +1 -1
- package/tools/qbd/inventory-sites/create-qbd-inventory-sites.d.mts.map +1 -1
- package/tools/qbd/inventory-sites/create-qbd-inventory-sites.d.ts.map +1 -1
- package/tools/qbd/inventory-sites/create-qbd-inventory-sites.js +9 -1
- package/tools/qbd/inventory-sites/create-qbd-inventory-sites.js.map +1 -1
- package/tools/qbd/inventory-sites/create-qbd-inventory-sites.mjs +11 -3
- package/tools/qbd/inventory-sites/create-qbd-inventory-sites.mjs.map +1 -1
- package/tools/qbd/inventory-sites/retrieve-qbd-inventory-sites.d.mts.map +1 -1
- package/tools/qbd/inventory-sites/retrieve-qbd-inventory-sites.d.ts.map +1 -1
- package/tools/qbd/inventory-sites/retrieve-qbd-inventory-sites.js +9 -1
- package/tools/qbd/inventory-sites/retrieve-qbd-inventory-sites.js.map +1 -1
- package/tools/qbd/inventory-sites/retrieve-qbd-inventory-sites.mjs +11 -3
- package/tools/qbd/inventory-sites/retrieve-qbd-inventory-sites.mjs.map +1 -1
- package/tools/qbd/inventory-sites/update-qbd-inventory-sites.d.mts.map +1 -1
- package/tools/qbd/inventory-sites/update-qbd-inventory-sites.d.ts.map +1 -1
- package/tools/qbd/inventory-sites/update-qbd-inventory-sites.js +9 -1
- package/tools/qbd/inventory-sites/update-qbd-inventory-sites.js.map +1 -1
- package/tools/qbd/inventory-sites/update-qbd-inventory-sites.mjs +11 -3
- package/tools/qbd/inventory-sites/update-qbd-inventory-sites.mjs.map +1 -1
- package/tools/qbd/invoices/delete-qbd-invoices.d.mts.map +1 -1
- package/tools/qbd/invoices/delete-qbd-invoices.d.ts.map +1 -1
- package/tools/qbd/invoices/delete-qbd-invoices.js +9 -1
- package/tools/qbd/invoices/delete-qbd-invoices.js.map +1 -1
- package/tools/qbd/invoices/delete-qbd-invoices.mjs +11 -3
- package/tools/qbd/invoices/delete-qbd-invoices.mjs.map +1 -1
- package/tools/qbd/item-groups/retrieve-qbd-item-groups.d.mts.map +1 -1
- package/tools/qbd/item-groups/retrieve-qbd-item-groups.d.ts.map +1 -1
- package/tools/qbd/item-groups/retrieve-qbd-item-groups.js +9 -1
- package/tools/qbd/item-groups/retrieve-qbd-item-groups.js.map +1 -1
- package/tools/qbd/item-groups/retrieve-qbd-item-groups.mjs +11 -3
- package/tools/qbd/item-groups/retrieve-qbd-item-groups.mjs.map +1 -1
- package/tools/qbd/item-receipts/delete-qbd-item-receipts.d.mts.map +1 -1
- package/tools/qbd/item-receipts/delete-qbd-item-receipts.d.ts.map +1 -1
- package/tools/qbd/item-receipts/delete-qbd-item-receipts.js +9 -1
- package/tools/qbd/item-receipts/delete-qbd-item-receipts.js.map +1 -1
- package/tools/qbd/item-receipts/delete-qbd-item-receipts.mjs +11 -3
- package/tools/qbd/item-receipts/delete-qbd-item-receipts.mjs.map +1 -1
- package/tools/qbd/item-sites/retrieve-qbd-item-sites.d.mts.map +1 -1
- package/tools/qbd/item-sites/retrieve-qbd-item-sites.d.ts.map +1 -1
- package/tools/qbd/item-sites/retrieve-qbd-item-sites.js +9 -1
- package/tools/qbd/item-sites/retrieve-qbd-item-sites.js.map +1 -1
- package/tools/qbd/item-sites/retrieve-qbd-item-sites.mjs +11 -3
- package/tools/qbd/item-sites/retrieve-qbd-item-sites.mjs.map +1 -1
- package/tools/qbd/journal-entries/delete-qbd-journal-entries.d.mts.map +1 -1
- package/tools/qbd/journal-entries/delete-qbd-journal-entries.d.ts.map +1 -1
- package/tools/qbd/journal-entries/delete-qbd-journal-entries.js +9 -1
- package/tools/qbd/journal-entries/delete-qbd-journal-entries.js.map +1 -1
- package/tools/qbd/journal-entries/delete-qbd-journal-entries.mjs +11 -3
- package/tools/qbd/journal-entries/delete-qbd-journal-entries.mjs.map +1 -1
- package/tools/qbd/other-names/retrieve-qbd-other-names.d.mts.map +1 -1
- package/tools/qbd/other-names/retrieve-qbd-other-names.d.ts.map +1 -1
- package/tools/qbd/other-names/retrieve-qbd-other-names.js +9 -1
- package/tools/qbd/other-names/retrieve-qbd-other-names.js.map +1 -1
- package/tools/qbd/other-names/retrieve-qbd-other-names.mjs +11 -3
- package/tools/qbd/other-names/retrieve-qbd-other-names.mjs.map +1 -1
- package/tools/qbd/payment-methods/create-qbd-payment-methods.d.mts.map +1 -1
- package/tools/qbd/payment-methods/create-qbd-payment-methods.d.ts.map +1 -1
- package/tools/qbd/payment-methods/create-qbd-payment-methods.js +9 -1
- package/tools/qbd/payment-methods/create-qbd-payment-methods.js.map +1 -1
- package/tools/qbd/payment-methods/create-qbd-payment-methods.mjs +11 -3
- package/tools/qbd/payment-methods/create-qbd-payment-methods.mjs.map +1 -1
- package/tools/qbd/payment-methods/list-qbd-payment-methods.d.mts.map +1 -1
- package/tools/qbd/payment-methods/list-qbd-payment-methods.d.ts.map +1 -1
- package/tools/qbd/payment-methods/list-qbd-payment-methods.js +9 -1
- package/tools/qbd/payment-methods/list-qbd-payment-methods.js.map +1 -1
- package/tools/qbd/payment-methods/list-qbd-payment-methods.mjs +11 -3
- package/tools/qbd/payment-methods/list-qbd-payment-methods.mjs.map +1 -1
- package/tools/qbd/payment-methods/retrieve-qbd-payment-methods.d.mts.map +1 -1
- package/tools/qbd/payment-methods/retrieve-qbd-payment-methods.d.ts.map +1 -1
- package/tools/qbd/payment-methods/retrieve-qbd-payment-methods.js +9 -1
- package/tools/qbd/payment-methods/retrieve-qbd-payment-methods.js.map +1 -1
- package/tools/qbd/payment-methods/retrieve-qbd-payment-methods.mjs +11 -3
- package/tools/qbd/payment-methods/retrieve-qbd-payment-methods.mjs.map +1 -1
- package/tools/qbd/payroll-wage-items/create-qbd-payroll-wage-items.d.mts.map +1 -1
- package/tools/qbd/payroll-wage-items/create-qbd-payroll-wage-items.d.ts.map +1 -1
- package/tools/qbd/payroll-wage-items/create-qbd-payroll-wage-items.js +9 -1
- package/tools/qbd/payroll-wage-items/create-qbd-payroll-wage-items.js.map +1 -1
- package/tools/qbd/payroll-wage-items/create-qbd-payroll-wage-items.mjs +11 -3
- package/tools/qbd/payroll-wage-items/create-qbd-payroll-wage-items.mjs.map +1 -1
- package/tools/qbd/payroll-wage-items/list-qbd-payroll-wage-items.d.mts.map +1 -1
- package/tools/qbd/payroll-wage-items/list-qbd-payroll-wage-items.d.ts.map +1 -1
- package/tools/qbd/payroll-wage-items/list-qbd-payroll-wage-items.js +9 -1
- package/tools/qbd/payroll-wage-items/list-qbd-payroll-wage-items.js.map +1 -1
- package/tools/qbd/payroll-wage-items/list-qbd-payroll-wage-items.mjs +11 -3
- package/tools/qbd/payroll-wage-items/list-qbd-payroll-wage-items.mjs.map +1 -1
- package/tools/qbd/payroll-wage-items/retrieve-qbd-payroll-wage-items.d.mts.map +1 -1
- package/tools/qbd/payroll-wage-items/retrieve-qbd-payroll-wage-items.d.ts.map +1 -1
- package/tools/qbd/payroll-wage-items/retrieve-qbd-payroll-wage-items.js +9 -1
- package/tools/qbd/payroll-wage-items/retrieve-qbd-payroll-wage-items.js.map +1 -1
- package/tools/qbd/payroll-wage-items/retrieve-qbd-payroll-wage-items.mjs +11 -3
- package/tools/qbd/payroll-wage-items/retrieve-qbd-payroll-wage-items.mjs.map +1 -1
- package/tools/qbd/price-levels/retrieve-qbd-price-levels.d.mts.map +1 -1
- package/tools/qbd/price-levels/retrieve-qbd-price-levels.d.ts.map +1 -1
- package/tools/qbd/price-levels/retrieve-qbd-price-levels.js +9 -1
- package/tools/qbd/price-levels/retrieve-qbd-price-levels.js.map +1 -1
- package/tools/qbd/price-levels/retrieve-qbd-price-levels.mjs +11 -3
- package/tools/qbd/price-levels/retrieve-qbd-price-levels.mjs.map +1 -1
- package/tools/qbd/purchase-orders/delete-qbd-purchase-orders.d.mts.map +1 -1
- package/tools/qbd/purchase-orders/delete-qbd-purchase-orders.d.ts.map +1 -1
- package/tools/qbd/purchase-orders/delete-qbd-purchase-orders.js +9 -1
- package/tools/qbd/purchase-orders/delete-qbd-purchase-orders.js.map +1 -1
- package/tools/qbd/purchase-orders/delete-qbd-purchase-orders.mjs +11 -3
- package/tools/qbd/purchase-orders/delete-qbd-purchase-orders.mjs.map +1 -1
- package/tools/qbd/receive-payments/delete-qbd-receive-payments.d.mts.map +1 -1
- package/tools/qbd/receive-payments/delete-qbd-receive-payments.d.ts.map +1 -1
- package/tools/qbd/receive-payments/delete-qbd-receive-payments.js +9 -1
- package/tools/qbd/receive-payments/delete-qbd-receive-payments.js.map +1 -1
- package/tools/qbd/receive-payments/delete-qbd-receive-payments.mjs +11 -3
- package/tools/qbd/receive-payments/delete-qbd-receive-payments.mjs.map +1 -1
- package/tools/qbd/sales-orders/delete-qbd-sales-orders.d.mts.map +1 -1
- package/tools/qbd/sales-orders/delete-qbd-sales-orders.d.ts.map +1 -1
- package/tools/qbd/sales-orders/delete-qbd-sales-orders.js +9 -1
- package/tools/qbd/sales-orders/delete-qbd-sales-orders.js.map +1 -1
- package/tools/qbd/sales-orders/delete-qbd-sales-orders.mjs +11 -3
- package/tools/qbd/sales-orders/delete-qbd-sales-orders.mjs.map +1 -1
- package/tools/qbd/sales-receipts/delete-qbd-sales-receipts.d.mts.map +1 -1
- package/tools/qbd/sales-receipts/delete-qbd-sales-receipts.d.ts.map +1 -1
- package/tools/qbd/sales-receipts/delete-qbd-sales-receipts.js +9 -1
- package/tools/qbd/sales-receipts/delete-qbd-sales-receipts.js.map +1 -1
- package/tools/qbd/sales-receipts/delete-qbd-sales-receipts.mjs +11 -3
- package/tools/qbd/sales-receipts/delete-qbd-sales-receipts.mjs.map +1 -1
- package/tools/qbd/sales-representatives/create-qbd-sales-representatives.d.mts.map +1 -1
- package/tools/qbd/sales-representatives/create-qbd-sales-representatives.d.ts.map +1 -1
- package/tools/qbd/sales-representatives/create-qbd-sales-representatives.js +9 -1
- package/tools/qbd/sales-representatives/create-qbd-sales-representatives.js.map +1 -1
- package/tools/qbd/sales-representatives/create-qbd-sales-representatives.mjs +11 -3
- package/tools/qbd/sales-representatives/create-qbd-sales-representatives.mjs.map +1 -1
- package/tools/qbd/sales-representatives/list-qbd-sales-representatives.d.mts.map +1 -1
- package/tools/qbd/sales-representatives/list-qbd-sales-representatives.d.ts.map +1 -1
- package/tools/qbd/sales-representatives/list-qbd-sales-representatives.js +9 -1
- package/tools/qbd/sales-representatives/list-qbd-sales-representatives.js.map +1 -1
- package/tools/qbd/sales-representatives/list-qbd-sales-representatives.mjs +11 -3
- package/tools/qbd/sales-representatives/list-qbd-sales-representatives.mjs.map +1 -1
- package/tools/qbd/sales-representatives/retrieve-qbd-sales-representatives.d.mts.map +1 -1
- package/tools/qbd/sales-representatives/retrieve-qbd-sales-representatives.d.ts.map +1 -1
- package/tools/qbd/sales-representatives/retrieve-qbd-sales-representatives.js +9 -1
- package/tools/qbd/sales-representatives/retrieve-qbd-sales-representatives.js.map +1 -1
- package/tools/qbd/sales-representatives/retrieve-qbd-sales-representatives.mjs +11 -3
- package/tools/qbd/sales-representatives/retrieve-qbd-sales-representatives.mjs.map +1 -1
- package/tools/qbd/sales-representatives/update-qbd-sales-representatives.d.mts.map +1 -1
- package/tools/qbd/sales-representatives/update-qbd-sales-representatives.d.ts.map +1 -1
- package/tools/qbd/sales-representatives/update-qbd-sales-representatives.js +9 -1
- package/tools/qbd/sales-representatives/update-qbd-sales-representatives.js.map +1 -1
- package/tools/qbd/sales-representatives/update-qbd-sales-representatives.mjs +11 -3
- package/tools/qbd/sales-representatives/update-qbd-sales-representatives.mjs.map +1 -1
- package/tools/qbd/sales-tax-codes/create-qbd-sales-tax-codes.d.mts.map +1 -1
- package/tools/qbd/sales-tax-codes/create-qbd-sales-tax-codes.d.ts.map +1 -1
- package/tools/qbd/sales-tax-codes/create-qbd-sales-tax-codes.js +9 -1
- package/tools/qbd/sales-tax-codes/create-qbd-sales-tax-codes.js.map +1 -1
- package/tools/qbd/sales-tax-codes/create-qbd-sales-tax-codes.mjs +11 -3
- package/tools/qbd/sales-tax-codes/create-qbd-sales-tax-codes.mjs.map +1 -1
- package/tools/qbd/sales-tax-codes/list-qbd-sales-tax-codes.d.mts.map +1 -1
- package/tools/qbd/sales-tax-codes/list-qbd-sales-tax-codes.d.ts.map +1 -1
- package/tools/qbd/sales-tax-codes/list-qbd-sales-tax-codes.js +9 -1
- package/tools/qbd/sales-tax-codes/list-qbd-sales-tax-codes.js.map +1 -1
- package/tools/qbd/sales-tax-codes/list-qbd-sales-tax-codes.mjs +11 -3
- package/tools/qbd/sales-tax-codes/list-qbd-sales-tax-codes.mjs.map +1 -1
- package/tools/qbd/sales-tax-codes/retrieve-qbd-sales-tax-codes.d.mts.map +1 -1
- package/tools/qbd/sales-tax-codes/retrieve-qbd-sales-tax-codes.d.ts.map +1 -1
- package/tools/qbd/sales-tax-codes/retrieve-qbd-sales-tax-codes.js +9 -1
- package/tools/qbd/sales-tax-codes/retrieve-qbd-sales-tax-codes.js.map +1 -1
- package/tools/qbd/sales-tax-codes/retrieve-qbd-sales-tax-codes.mjs +11 -3
- package/tools/qbd/sales-tax-codes/retrieve-qbd-sales-tax-codes.mjs.map +1 -1
- package/tools/qbd/sales-tax-codes/update-qbd-sales-tax-codes.d.mts.map +1 -1
- package/tools/qbd/sales-tax-codes/update-qbd-sales-tax-codes.d.ts.map +1 -1
- package/tools/qbd/sales-tax-codes/update-qbd-sales-tax-codes.js +9 -1
- package/tools/qbd/sales-tax-codes/update-qbd-sales-tax-codes.js.map +1 -1
- package/tools/qbd/sales-tax-codes/update-qbd-sales-tax-codes.mjs +11 -3
- package/tools/qbd/sales-tax-codes/update-qbd-sales-tax-codes.mjs.map +1 -1
- package/tools/qbd/sales-tax-items/retrieve-qbd-sales-tax-items.d.mts.map +1 -1
- package/tools/qbd/sales-tax-items/retrieve-qbd-sales-tax-items.d.ts.map +1 -1
- package/tools/qbd/sales-tax-items/retrieve-qbd-sales-tax-items.js +9 -1
- package/tools/qbd/sales-tax-items/retrieve-qbd-sales-tax-items.js.map +1 -1
- package/tools/qbd/sales-tax-items/retrieve-qbd-sales-tax-items.mjs +11 -3
- package/tools/qbd/sales-tax-items/retrieve-qbd-sales-tax-items.mjs.map +1 -1
- package/tools/qbd/standard-terms/create-qbd-standard-terms.d.mts.map +1 -1
- package/tools/qbd/standard-terms/create-qbd-standard-terms.d.ts.map +1 -1
- package/tools/qbd/standard-terms/create-qbd-standard-terms.js +9 -1
- package/tools/qbd/standard-terms/create-qbd-standard-terms.js.map +1 -1
- package/tools/qbd/standard-terms/create-qbd-standard-terms.mjs +11 -3
- package/tools/qbd/standard-terms/create-qbd-standard-terms.mjs.map +1 -1
- package/tools/qbd/standard-terms/list-qbd-standard-terms.d.mts.map +1 -1
- package/tools/qbd/standard-terms/list-qbd-standard-terms.d.ts.map +1 -1
- package/tools/qbd/standard-terms/list-qbd-standard-terms.js +9 -1
- package/tools/qbd/standard-terms/list-qbd-standard-terms.js.map +1 -1
- package/tools/qbd/standard-terms/list-qbd-standard-terms.mjs +11 -3
- package/tools/qbd/standard-terms/list-qbd-standard-terms.mjs.map +1 -1
- package/tools/qbd/standard-terms/retrieve-qbd-standard-terms.d.mts.map +1 -1
- package/tools/qbd/standard-terms/retrieve-qbd-standard-terms.d.ts.map +1 -1
- package/tools/qbd/standard-terms/retrieve-qbd-standard-terms.js +9 -1
- package/tools/qbd/standard-terms/retrieve-qbd-standard-terms.js.map +1 -1
- package/tools/qbd/standard-terms/retrieve-qbd-standard-terms.mjs +11 -3
- package/tools/qbd/standard-terms/retrieve-qbd-standard-terms.mjs.map +1 -1
- package/tools/qbd/subtotal-items/create-qbd-subtotal-items.d.mts.map +1 -1
- package/tools/qbd/subtotal-items/create-qbd-subtotal-items.d.ts.map +1 -1
- package/tools/qbd/subtotal-items/create-qbd-subtotal-items.js +9 -1
- package/tools/qbd/subtotal-items/create-qbd-subtotal-items.js.map +1 -1
- package/tools/qbd/subtotal-items/create-qbd-subtotal-items.mjs +11 -3
- package/tools/qbd/subtotal-items/create-qbd-subtotal-items.mjs.map +1 -1
- package/tools/qbd/subtotal-items/retrieve-qbd-subtotal-items.d.mts.map +1 -1
- package/tools/qbd/subtotal-items/retrieve-qbd-subtotal-items.d.ts.map +1 -1
- package/tools/qbd/subtotal-items/retrieve-qbd-subtotal-items.js +9 -1
- package/tools/qbd/subtotal-items/retrieve-qbd-subtotal-items.js.map +1 -1
- package/tools/qbd/subtotal-items/retrieve-qbd-subtotal-items.mjs +11 -3
- package/tools/qbd/subtotal-items/retrieve-qbd-subtotal-items.mjs.map +1 -1
- package/tools/qbd/subtotal-items/update-qbd-subtotal-items.d.mts.map +1 -1
- package/tools/qbd/subtotal-items/update-qbd-subtotal-items.d.ts.map +1 -1
- package/tools/qbd/subtotal-items/update-qbd-subtotal-items.js +9 -1
- package/tools/qbd/subtotal-items/update-qbd-subtotal-items.js.map +1 -1
- package/tools/qbd/subtotal-items/update-qbd-subtotal-items.mjs +11 -3
- package/tools/qbd/subtotal-items/update-qbd-subtotal-items.mjs.map +1 -1
- package/tools/qbd/templates/list-qbd-templates.d.mts.map +1 -1
- package/tools/qbd/templates/list-qbd-templates.d.ts.map +1 -1
- package/tools/qbd/templates/list-qbd-templates.js +9 -1
- package/tools/qbd/templates/list-qbd-templates.js.map +1 -1
- package/tools/qbd/templates/list-qbd-templates.mjs +11 -3
- package/tools/qbd/templates/list-qbd-templates.mjs.map +1 -1
- package/tools/qbd/time-tracking-activities/delete-qbd-time-tracking-activities.d.mts.map +1 -1
- package/tools/qbd/time-tracking-activities/delete-qbd-time-tracking-activities.d.ts.map +1 -1
- package/tools/qbd/time-tracking-activities/delete-qbd-time-tracking-activities.js +9 -1
- package/tools/qbd/time-tracking-activities/delete-qbd-time-tracking-activities.js.map +1 -1
- package/tools/qbd/time-tracking-activities/delete-qbd-time-tracking-activities.mjs +11 -3
- package/tools/qbd/time-tracking-activities/delete-qbd-time-tracking-activities.mjs.map +1 -1
- package/tools/qbd/time-tracking-activities/retrieve-qbd-time-tracking-activities.d.mts.map +1 -1
- package/tools/qbd/time-tracking-activities/retrieve-qbd-time-tracking-activities.d.ts.map +1 -1
- package/tools/qbd/time-tracking-activities/retrieve-qbd-time-tracking-activities.js +9 -1
- package/tools/qbd/time-tracking-activities/retrieve-qbd-time-tracking-activities.js.map +1 -1
- package/tools/qbd/time-tracking-activities/retrieve-qbd-time-tracking-activities.mjs +11 -3
- package/tools/qbd/time-tracking-activities/retrieve-qbd-time-tracking-activities.mjs.map +1 -1
- package/tools/qbd/transactions/retrieve-qbd-transactions.d.mts.map +1 -1
- package/tools/qbd/transactions/retrieve-qbd-transactions.d.ts.map +1 -1
- package/tools/qbd/transactions/retrieve-qbd-transactions.js +9 -1
- package/tools/qbd/transactions/retrieve-qbd-transactions.js.map +1 -1
- package/tools/qbd/transactions/retrieve-qbd-transactions.mjs +11 -3
- package/tools/qbd/transactions/retrieve-qbd-transactions.mjs.map +1 -1
- package/tools/qbd/transfers/create-qbd-transfers.d.mts.map +1 -1
- package/tools/qbd/transfers/create-qbd-transfers.d.ts.map +1 -1
- package/tools/qbd/transfers/create-qbd-transfers.js +9 -1
- package/tools/qbd/transfers/create-qbd-transfers.js.map +1 -1
- package/tools/qbd/transfers/create-qbd-transfers.mjs +11 -3
- package/tools/qbd/transfers/create-qbd-transfers.mjs.map +1 -1
- package/tools/qbd/transfers/retrieve-qbd-transfers.d.mts.map +1 -1
- package/tools/qbd/transfers/retrieve-qbd-transfers.d.ts.map +1 -1
- package/tools/qbd/transfers/retrieve-qbd-transfers.js +9 -1
- package/tools/qbd/transfers/retrieve-qbd-transfers.js.map +1 -1
- package/tools/qbd/transfers/retrieve-qbd-transfers.mjs +11 -3
- package/tools/qbd/transfers/retrieve-qbd-transfers.mjs.map +1 -1
- package/tools/qbd/transfers/update-qbd-transfers.d.mts.map +1 -1
- package/tools/qbd/transfers/update-qbd-transfers.d.ts.map +1 -1
- package/tools/qbd/transfers/update-qbd-transfers.js +9 -1
- package/tools/qbd/transfers/update-qbd-transfers.js.map +1 -1
- package/tools/qbd/transfers/update-qbd-transfers.mjs +11 -3
- package/tools/qbd/transfers/update-qbd-transfers.mjs.map +1 -1
- package/tools/qbd/unit-of-measure-sets/retrieve-qbd-unit-of-measure-sets.d.mts.map +1 -1
- package/tools/qbd/unit-of-measure-sets/retrieve-qbd-unit-of-measure-sets.d.ts.map +1 -1
- package/tools/qbd/unit-of-measure-sets/retrieve-qbd-unit-of-measure-sets.js +9 -1
- package/tools/qbd/unit-of-measure-sets/retrieve-qbd-unit-of-measure-sets.js.map +1 -1
- package/tools/qbd/unit-of-measure-sets/retrieve-qbd-unit-of-measure-sets.mjs +11 -3
- package/tools/qbd/unit-of-measure-sets/retrieve-qbd-unit-of-measure-sets.mjs.map +1 -1
- package/tools/qbd/vendor-credits/delete-qbd-vendor-credits.d.mts.map +1 -1
- package/tools/qbd/vendor-credits/delete-qbd-vendor-credits.d.ts.map +1 -1
- package/tools/qbd/vendor-credits/delete-qbd-vendor-credits.js +9 -1
- package/tools/qbd/vendor-credits/delete-qbd-vendor-credits.js.map +1 -1
- package/tools/qbd/vendor-credits/delete-qbd-vendor-credits.mjs +11 -3
- package/tools/qbd/vendor-credits/delete-qbd-vendor-credits.mjs.map +1 -1
- package/tools/types.d.mts +1 -0
- package/tools/types.d.mts.map +1 -1
- package/tools/types.d.ts +1 -0
- package/tools/types.d.ts.map +1 -1
- package/tools/types.js +12 -0
- package/tools/types.js.map +1 -1
- package/tools/types.mjs +11 -0
- package/tools/types.mjs.map +1 -1
package/code-tool-worker.mjs
CHANGED
|
@@ -1,8 +1,332 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import util from 'node:util';
|
|
3
|
+
import Fuse from 'fuse.js';
|
|
4
|
+
import ts from 'typescript';
|
|
3
5
|
import { Conductor } from 'conductor-node';
|
|
6
|
+
function getRunFunctionNode(code) {
|
|
7
|
+
const sourceFile = ts.createSourceFile('code.ts', code, ts.ScriptTarget.Latest, true);
|
|
8
|
+
for (const statement of sourceFile.statements) {
|
|
9
|
+
// Check for top-level function declarations
|
|
10
|
+
if (ts.isFunctionDeclaration(statement)) {
|
|
11
|
+
if (statement.name?.text === 'run') {
|
|
12
|
+
return statement;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
// Check for variable declarations: const run = () => {} or const run = function() {}
|
|
16
|
+
if (ts.isVariableStatement(statement)) {
|
|
17
|
+
for (const declaration of statement.declarationList.declarations) {
|
|
18
|
+
if (ts.isIdentifier(declaration.name) && declaration.name.text === 'run') {
|
|
19
|
+
// Check if it's initialized with a function
|
|
20
|
+
if (declaration.initializer &&
|
|
21
|
+
(ts.isFunctionExpression(declaration.initializer) || ts.isArrowFunction(declaration.initializer))) {
|
|
22
|
+
return declaration.initializer;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
return null;
|
|
29
|
+
}
|
|
30
|
+
const fuse = new Fuse([
|
|
31
|
+
'conductor.authSessions.create',
|
|
32
|
+
'conductor.endUsers.create',
|
|
33
|
+
'conductor.endUsers.delete',
|
|
34
|
+
'conductor.endUsers.list',
|
|
35
|
+
'conductor.endUsers.passthrough',
|
|
36
|
+
'conductor.endUsers.retrieve',
|
|
37
|
+
'conductor.qbd.healthCheck',
|
|
38
|
+
'conductor.qbd.accountTaxLines.list',
|
|
39
|
+
'conductor.qbd.accounts.create',
|
|
40
|
+
'conductor.qbd.accounts.list',
|
|
41
|
+
'conductor.qbd.accounts.retrieve',
|
|
42
|
+
'conductor.qbd.accounts.update',
|
|
43
|
+
'conductor.qbd.billCheckPayments.create',
|
|
44
|
+
'conductor.qbd.billCheckPayments.delete',
|
|
45
|
+
'conductor.qbd.billCheckPayments.list',
|
|
46
|
+
'conductor.qbd.billCheckPayments.retrieve',
|
|
47
|
+
'conductor.qbd.billCheckPayments.update',
|
|
48
|
+
'conductor.qbd.billCreditCardPayments.create',
|
|
49
|
+
'conductor.qbd.billCreditCardPayments.delete',
|
|
50
|
+
'conductor.qbd.billCreditCardPayments.list',
|
|
51
|
+
'conductor.qbd.billCreditCardPayments.retrieve',
|
|
52
|
+
'conductor.qbd.bills.create',
|
|
53
|
+
'conductor.qbd.bills.delete',
|
|
54
|
+
'conductor.qbd.bills.list',
|
|
55
|
+
'conductor.qbd.bills.retrieve',
|
|
56
|
+
'conductor.qbd.bills.update',
|
|
57
|
+
'conductor.qbd.buildAssemblies.create',
|
|
58
|
+
'conductor.qbd.buildAssemblies.delete',
|
|
59
|
+
'conductor.qbd.buildAssemblies.list',
|
|
60
|
+
'conductor.qbd.buildAssemblies.retrieve',
|
|
61
|
+
'conductor.qbd.buildAssemblies.update',
|
|
62
|
+
'conductor.qbd.checks.create',
|
|
63
|
+
'conductor.qbd.checks.delete',
|
|
64
|
+
'conductor.qbd.checks.list',
|
|
65
|
+
'conductor.qbd.checks.retrieve',
|
|
66
|
+
'conductor.qbd.checks.update',
|
|
67
|
+
'conductor.qbd.classes.create',
|
|
68
|
+
'conductor.qbd.classes.list',
|
|
69
|
+
'conductor.qbd.classes.retrieve',
|
|
70
|
+
'conductor.qbd.classes.update',
|
|
71
|
+
'conductor.qbd.company.retrieve',
|
|
72
|
+
'conductor.qbd.creditCardCharges.create',
|
|
73
|
+
'conductor.qbd.creditCardCharges.delete',
|
|
74
|
+
'conductor.qbd.creditCardCharges.list',
|
|
75
|
+
'conductor.qbd.creditCardCharges.retrieve',
|
|
76
|
+
'conductor.qbd.creditCardCharges.update',
|
|
77
|
+
'conductor.qbd.creditCardCredits.create',
|
|
78
|
+
'conductor.qbd.creditCardCredits.delete',
|
|
79
|
+
'conductor.qbd.creditCardCredits.list',
|
|
80
|
+
'conductor.qbd.creditCardCredits.retrieve',
|
|
81
|
+
'conductor.qbd.creditCardCredits.update',
|
|
82
|
+
'conductor.qbd.creditCardRefunds.create',
|
|
83
|
+
'conductor.qbd.creditCardRefunds.delete',
|
|
84
|
+
'conductor.qbd.creditCardRefunds.list',
|
|
85
|
+
'conductor.qbd.creditCardRefunds.retrieve',
|
|
86
|
+
'conductor.qbd.creditMemos.create',
|
|
87
|
+
'conductor.qbd.creditMemos.delete',
|
|
88
|
+
'conductor.qbd.creditMemos.list',
|
|
89
|
+
'conductor.qbd.creditMemos.retrieve',
|
|
90
|
+
'conductor.qbd.creditMemos.update',
|
|
91
|
+
'conductor.qbd.currencies.create',
|
|
92
|
+
'conductor.qbd.currencies.list',
|
|
93
|
+
'conductor.qbd.currencies.retrieve',
|
|
94
|
+
'conductor.qbd.currencies.update',
|
|
95
|
+
'conductor.qbd.customerTypes.create',
|
|
96
|
+
'conductor.qbd.customerTypes.list',
|
|
97
|
+
'conductor.qbd.customerTypes.retrieve',
|
|
98
|
+
'conductor.qbd.customers.create',
|
|
99
|
+
'conductor.qbd.customers.list',
|
|
100
|
+
'conductor.qbd.customers.retrieve',
|
|
101
|
+
'conductor.qbd.customers.update',
|
|
102
|
+
'conductor.qbd.dateDrivenTerms.create',
|
|
103
|
+
'conductor.qbd.dateDrivenTerms.list',
|
|
104
|
+
'conductor.qbd.dateDrivenTerms.retrieve',
|
|
105
|
+
'conductor.qbd.deletedListObjects.list',
|
|
106
|
+
'conductor.qbd.deletedTransactions.list',
|
|
107
|
+
'conductor.qbd.discountItems.create',
|
|
108
|
+
'conductor.qbd.discountItems.list',
|
|
109
|
+
'conductor.qbd.discountItems.retrieve',
|
|
110
|
+
'conductor.qbd.discountItems.update',
|
|
111
|
+
'conductor.qbd.employees.create',
|
|
112
|
+
'conductor.qbd.employees.list',
|
|
113
|
+
'conductor.qbd.employees.retrieve',
|
|
114
|
+
'conductor.qbd.employees.update',
|
|
115
|
+
'conductor.qbd.estimates.create',
|
|
116
|
+
'conductor.qbd.estimates.delete',
|
|
117
|
+
'conductor.qbd.estimates.list',
|
|
118
|
+
'conductor.qbd.estimates.retrieve',
|
|
119
|
+
'conductor.qbd.estimates.update',
|
|
120
|
+
'conductor.qbd.inventoryAdjustments.create',
|
|
121
|
+
'conductor.qbd.inventoryAdjustments.delete',
|
|
122
|
+
'conductor.qbd.inventoryAdjustments.list',
|
|
123
|
+
'conductor.qbd.inventoryAdjustments.retrieve',
|
|
124
|
+
'conductor.qbd.inventoryAdjustments.update',
|
|
125
|
+
'conductor.qbd.inventoryAssemblyItems.create',
|
|
126
|
+
'conductor.qbd.inventoryAssemblyItems.list',
|
|
127
|
+
'conductor.qbd.inventoryAssemblyItems.retrieve',
|
|
128
|
+
'conductor.qbd.inventoryAssemblyItems.update',
|
|
129
|
+
'conductor.qbd.inventoryItems.create',
|
|
130
|
+
'conductor.qbd.inventoryItems.list',
|
|
131
|
+
'conductor.qbd.inventoryItems.retrieve',
|
|
132
|
+
'conductor.qbd.inventoryItems.update',
|
|
133
|
+
'conductor.qbd.inventorySites.create',
|
|
134
|
+
'conductor.qbd.inventorySites.list',
|
|
135
|
+
'conductor.qbd.inventorySites.retrieve',
|
|
136
|
+
'conductor.qbd.inventorySites.update',
|
|
137
|
+
'conductor.qbd.invoices.create',
|
|
138
|
+
'conductor.qbd.invoices.delete',
|
|
139
|
+
'conductor.qbd.invoices.list',
|
|
140
|
+
'conductor.qbd.invoices.retrieve',
|
|
141
|
+
'conductor.qbd.invoices.update',
|
|
142
|
+
'conductor.qbd.itemGroups.create',
|
|
143
|
+
'conductor.qbd.itemGroups.list',
|
|
144
|
+
'conductor.qbd.itemGroups.retrieve',
|
|
145
|
+
'conductor.qbd.itemGroups.update',
|
|
146
|
+
'conductor.qbd.itemReceipts.create',
|
|
147
|
+
'conductor.qbd.itemReceipts.delete',
|
|
148
|
+
'conductor.qbd.itemReceipts.list',
|
|
149
|
+
'conductor.qbd.itemReceipts.retrieve',
|
|
150
|
+
'conductor.qbd.itemReceipts.update',
|
|
151
|
+
'conductor.qbd.itemSites.list',
|
|
152
|
+
'conductor.qbd.itemSites.retrieve',
|
|
153
|
+
'conductor.qbd.journalEntries.create',
|
|
154
|
+
'conductor.qbd.journalEntries.delete',
|
|
155
|
+
'conductor.qbd.journalEntries.list',
|
|
156
|
+
'conductor.qbd.journalEntries.retrieve',
|
|
157
|
+
'conductor.qbd.journalEntries.update',
|
|
158
|
+
'conductor.qbd.nonInventoryItems.create',
|
|
159
|
+
'conductor.qbd.nonInventoryItems.list',
|
|
160
|
+
'conductor.qbd.nonInventoryItems.retrieve',
|
|
161
|
+
'conductor.qbd.nonInventoryItems.update',
|
|
162
|
+
'conductor.qbd.otherChargeItems.create',
|
|
163
|
+
'conductor.qbd.otherChargeItems.list',
|
|
164
|
+
'conductor.qbd.otherChargeItems.retrieve',
|
|
165
|
+
'conductor.qbd.otherChargeItems.update',
|
|
166
|
+
'conductor.qbd.otherNames.create',
|
|
167
|
+
'conductor.qbd.otherNames.list',
|
|
168
|
+
'conductor.qbd.otherNames.retrieve',
|
|
169
|
+
'conductor.qbd.otherNames.update',
|
|
170
|
+
'conductor.qbd.paymentMethods.create',
|
|
171
|
+
'conductor.qbd.paymentMethods.list',
|
|
172
|
+
'conductor.qbd.paymentMethods.retrieve',
|
|
173
|
+
'conductor.qbd.payrollWageItems.create',
|
|
174
|
+
'conductor.qbd.payrollWageItems.list',
|
|
175
|
+
'conductor.qbd.payrollWageItems.retrieve',
|
|
176
|
+
'conductor.qbd.preferences.retrieve',
|
|
177
|
+
'conductor.qbd.priceLevels.create',
|
|
178
|
+
'conductor.qbd.priceLevels.list',
|
|
179
|
+
'conductor.qbd.priceLevels.retrieve',
|
|
180
|
+
'conductor.qbd.priceLevels.update',
|
|
181
|
+
'conductor.qbd.purchaseOrders.create',
|
|
182
|
+
'conductor.qbd.purchaseOrders.delete',
|
|
183
|
+
'conductor.qbd.purchaseOrders.list',
|
|
184
|
+
'conductor.qbd.purchaseOrders.retrieve',
|
|
185
|
+
'conductor.qbd.purchaseOrders.update',
|
|
186
|
+
'conductor.qbd.receivePayments.create',
|
|
187
|
+
'conductor.qbd.receivePayments.delete',
|
|
188
|
+
'conductor.qbd.receivePayments.list',
|
|
189
|
+
'conductor.qbd.receivePayments.retrieve',
|
|
190
|
+
'conductor.qbd.receivePayments.update',
|
|
191
|
+
'conductor.qbd.salesOrders.create',
|
|
192
|
+
'conductor.qbd.salesOrders.delete',
|
|
193
|
+
'conductor.qbd.salesOrders.list',
|
|
194
|
+
'conductor.qbd.salesOrders.retrieve',
|
|
195
|
+
'conductor.qbd.salesOrders.update',
|
|
196
|
+
'conductor.qbd.salesReceipts.create',
|
|
197
|
+
'conductor.qbd.salesReceipts.delete',
|
|
198
|
+
'conductor.qbd.salesReceipts.list',
|
|
199
|
+
'conductor.qbd.salesReceipts.retrieve',
|
|
200
|
+
'conductor.qbd.salesReceipts.update',
|
|
201
|
+
'conductor.qbd.salesRepresentatives.create',
|
|
202
|
+
'conductor.qbd.salesRepresentatives.list',
|
|
203
|
+
'conductor.qbd.salesRepresentatives.retrieve',
|
|
204
|
+
'conductor.qbd.salesRepresentatives.update',
|
|
205
|
+
'conductor.qbd.salesTaxCodes.create',
|
|
206
|
+
'conductor.qbd.salesTaxCodes.list',
|
|
207
|
+
'conductor.qbd.salesTaxCodes.retrieve',
|
|
208
|
+
'conductor.qbd.salesTaxCodes.update',
|
|
209
|
+
'conductor.qbd.salesTaxItems.create',
|
|
210
|
+
'conductor.qbd.salesTaxItems.list',
|
|
211
|
+
'conductor.qbd.salesTaxItems.retrieve',
|
|
212
|
+
'conductor.qbd.salesTaxItems.update',
|
|
213
|
+
'conductor.qbd.serviceItems.create',
|
|
214
|
+
'conductor.qbd.serviceItems.list',
|
|
215
|
+
'conductor.qbd.serviceItems.retrieve',
|
|
216
|
+
'conductor.qbd.serviceItems.update',
|
|
217
|
+
'conductor.qbd.standardTerms.create',
|
|
218
|
+
'conductor.qbd.standardTerms.list',
|
|
219
|
+
'conductor.qbd.standardTerms.retrieve',
|
|
220
|
+
'conductor.qbd.subtotalItems.create',
|
|
221
|
+
'conductor.qbd.subtotalItems.list',
|
|
222
|
+
'conductor.qbd.subtotalItems.retrieve',
|
|
223
|
+
'conductor.qbd.subtotalItems.update',
|
|
224
|
+
'conductor.qbd.templates.list',
|
|
225
|
+
'conductor.qbd.timeTrackingActivities.create',
|
|
226
|
+
'conductor.qbd.timeTrackingActivities.delete',
|
|
227
|
+
'conductor.qbd.timeTrackingActivities.list',
|
|
228
|
+
'conductor.qbd.timeTrackingActivities.retrieve',
|
|
229
|
+
'conductor.qbd.timeTrackingActivities.update',
|
|
230
|
+
'conductor.qbd.transactions.list',
|
|
231
|
+
'conductor.qbd.transactions.retrieve',
|
|
232
|
+
'conductor.qbd.transfers.create',
|
|
233
|
+
'conductor.qbd.transfers.list',
|
|
234
|
+
'conductor.qbd.transfers.retrieve',
|
|
235
|
+
'conductor.qbd.transfers.update',
|
|
236
|
+
'conductor.qbd.unitOfMeasureSets.create',
|
|
237
|
+
'conductor.qbd.unitOfMeasureSets.list',
|
|
238
|
+
'conductor.qbd.unitOfMeasureSets.retrieve',
|
|
239
|
+
'conductor.qbd.vendorCredits.create',
|
|
240
|
+
'conductor.qbd.vendorCredits.delete',
|
|
241
|
+
'conductor.qbd.vendorCredits.list',
|
|
242
|
+
'conductor.qbd.vendorCredits.retrieve',
|
|
243
|
+
'conductor.qbd.vendorCredits.update',
|
|
244
|
+
'conductor.qbd.vendors.create',
|
|
245
|
+
'conductor.qbd.vendors.list',
|
|
246
|
+
'conductor.qbd.vendors.retrieve',
|
|
247
|
+
'conductor.qbd.vendors.update',
|
|
248
|
+
], { threshold: 1, shouldSort: true });
|
|
249
|
+
function getMethodSuggestions(fullyQualifiedMethodName) {
|
|
250
|
+
return fuse
|
|
251
|
+
.search(fullyQualifiedMethodName)
|
|
252
|
+
.map(({ item }) => item)
|
|
253
|
+
.slice(0, 5);
|
|
254
|
+
}
|
|
255
|
+
const proxyToObj = new WeakMap();
|
|
256
|
+
const objToProxy = new WeakMap();
|
|
257
|
+
function makeSdkProxy(obj, { path, isBelievedBad = false }) {
|
|
258
|
+
let proxy = objToProxy.get(obj);
|
|
259
|
+
if (!proxy) {
|
|
260
|
+
proxy = new Proxy(obj, {
|
|
261
|
+
get(target, prop, receiver) {
|
|
262
|
+
const propPath = [...path, String(prop)];
|
|
263
|
+
const value = Reflect.get(target, prop, receiver);
|
|
264
|
+
if (isBelievedBad || (!(prop in target) && value === undefined)) {
|
|
265
|
+
// If we're accessing a path that doesn't exist, it will probably eventually error.
|
|
266
|
+
// Let's proxy it and mark it bad so that we can control the error message.
|
|
267
|
+
// We proxy an empty class so that an invocation or construction attempt is possible.
|
|
268
|
+
return makeSdkProxy(class {
|
|
269
|
+
}, { path: propPath, isBelievedBad: true });
|
|
270
|
+
}
|
|
271
|
+
if (value !== null && (typeof value === 'object' || typeof value === 'function')) {
|
|
272
|
+
return makeSdkProxy(value, { path: propPath, isBelievedBad });
|
|
273
|
+
}
|
|
274
|
+
return value;
|
|
275
|
+
},
|
|
276
|
+
apply(target, thisArg, args) {
|
|
277
|
+
if (isBelievedBad || typeof target !== 'function') {
|
|
278
|
+
const fullyQualifiedMethodName = path.join('.');
|
|
279
|
+
const suggestions = getMethodSuggestions(fullyQualifiedMethodName);
|
|
280
|
+
throw new Error(`${fullyQualifiedMethodName} is not a function. Did you mean: ${suggestions.join(', ')}`);
|
|
281
|
+
}
|
|
282
|
+
return Reflect.apply(target, proxyToObj.get(thisArg) ?? thisArg, args);
|
|
283
|
+
},
|
|
284
|
+
construct(target, args, newTarget) {
|
|
285
|
+
if (isBelievedBad || typeof target !== 'function') {
|
|
286
|
+
const fullyQualifiedMethodName = path.join('.');
|
|
287
|
+
const suggestions = getMethodSuggestions(fullyQualifiedMethodName);
|
|
288
|
+
throw new Error(`${fullyQualifiedMethodName} is not a constructor. Did you mean: ${suggestions.join(', ')}`);
|
|
289
|
+
}
|
|
290
|
+
return Reflect.construct(target, args, newTarget);
|
|
291
|
+
},
|
|
292
|
+
});
|
|
293
|
+
objToProxy.set(obj, proxy);
|
|
294
|
+
proxyToObj.set(proxy, obj);
|
|
295
|
+
}
|
|
296
|
+
return proxy;
|
|
297
|
+
}
|
|
298
|
+
function parseError(code, error) {
|
|
299
|
+
if (!(error instanceof Error))
|
|
300
|
+
return;
|
|
301
|
+
const message = error.name ? `${error.name}: ${error.message}` : error.message;
|
|
302
|
+
try {
|
|
303
|
+
// Deno uses V8; the first "<anonymous>:LINE:COLUMN" is the top of stack.
|
|
304
|
+
const lineNumber = error.stack?.match(/<anonymous>:([0-9]+):[0-9]+/)?.[1];
|
|
305
|
+
// -1 for the zero-based indexing
|
|
306
|
+
const line = lineNumber &&
|
|
307
|
+
code
|
|
308
|
+
.split('\n')
|
|
309
|
+
.at(parseInt(lineNumber, 10) - 1)
|
|
310
|
+
?.trim();
|
|
311
|
+
return line ? `${message}\n at line ${lineNumber}\n ${line}` : message;
|
|
312
|
+
}
|
|
313
|
+
catch {
|
|
314
|
+
return message;
|
|
315
|
+
}
|
|
316
|
+
}
|
|
4
317
|
const fetch = async (req) => {
|
|
5
318
|
const { opts, code } = (await req.json());
|
|
319
|
+
if (code == null) {
|
|
320
|
+
return Response.json({
|
|
321
|
+
message: 'The code param is missing. Provide one containing a top-level `run` function. Write code within this template:\n\n```\nasync function run(conductor) {\n // Fill this out\n}\n```',
|
|
322
|
+
}, { status: 400, statusText: 'Code execution error' });
|
|
323
|
+
}
|
|
324
|
+
const runFunctionNode = getRunFunctionNode(code);
|
|
325
|
+
if (!runFunctionNode) {
|
|
326
|
+
return Response.json({
|
|
327
|
+
message: 'The code is missing a top-level `run` function. Write code within this template:\n\n```\nasync function run(conductor) {\n // Fill this out\n}\n```',
|
|
328
|
+
}, { status: 400, statusText: 'Code execution error' });
|
|
329
|
+
}
|
|
6
330
|
const conductor = new Conductor({
|
|
7
331
|
...opts,
|
|
8
332
|
});
|
|
@@ -18,11 +342,8 @@ const fetch = async (req) => {
|
|
|
18
342
|
};
|
|
19
343
|
try {
|
|
20
344
|
let run_ = async (conductor) => { };
|
|
21
|
-
eval(
|
|
22
|
-
|
|
23
|
-
run_ = run;
|
|
24
|
-
`);
|
|
25
|
-
const result = await run_(conductor);
|
|
345
|
+
eval(`${code}\nrun_ = run;`);
|
|
346
|
+
const result = await run_(makeSdkProxy(conductor, { path: ['conductor'] }));
|
|
26
347
|
return Response.json({
|
|
27
348
|
result,
|
|
28
349
|
logLines,
|
|
@@ -30,9 +351,8 @@ const fetch = async (req) => {
|
|
|
30
351
|
});
|
|
31
352
|
}
|
|
32
353
|
catch (e) {
|
|
33
|
-
const message = e instanceof Error ? e.message : undefined;
|
|
34
354
|
return Response.json({
|
|
35
|
-
message,
|
|
355
|
+
message: parseError(code, e),
|
|
36
356
|
}, { status: 400, statusText: 'Code execution error' });
|
|
37
357
|
}
|
|
38
358
|
};
|
package/code-tool-worker.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-tool-worker.mjs","sourceRoot":"","sources":["src/code-tool-worker.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,IAAI,MAAM,WAAW;OAErB,EAAE,SAAS,EAAE,MAAM,gBAAgB;AAE1C,MAAM,KAAK,GA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AAQ;YACR,QAAQ;SACe,CAAC,CAAC;IAC7B,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,OAAO,QAAQ,CAAC,IAAI,CAClB;YACE,OAAO,EAAE,UAAU,CAAC,IAAI,EAAE,CAAC,CAAC;SACP,EACvB,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,EAAE,sBAAsB,EAAE,CACpD,CAAC;IACJ,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,EAAE,KAAK,EAAE,CAAC"}
|
package/code-tool.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import { Endpoint } from "./tools/types.mjs";
|
|
|
2
2
|
/**
|
|
3
3
|
* A tool that runs code against a copy of the SDK.
|
|
4
4
|
*
|
|
5
|
-
* Instead of exposing every endpoint as
|
|
5
|
+
* Instead of exposing every endpoint as its own tool, which uses up too many tokens for LLMs to use at once,
|
|
6
6
|
* we expose a single tool that can be used to search for endpoints by name, resource, operation, or tag, and then
|
|
7
7
|
* a generic endpoint that can be used to invoke any endpoint with the provided arguments.
|
|
8
8
|
*
|
package/code-tool.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-tool.d.mts","sourceRoot":"","sources":["src/code-tool.ts"],"names":[],"mappings":"OAKO,
|
|
1
|
+
{"version":3,"file":"code-tool.d.mts","sourceRoot":"","sources":["src/code-tool.ts"],"names":[],"mappings":"OAKO,EAAgB,QAAQ,EAA4B;AAM3D;;;;;;;;GAQG;AACH,wBAAsB,QAAQ,IAAI,OAAO,CAAC,QAAQ,CAAC,CA8HlD"}
|
package/code-tool.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { Endpoint } from "./tools/types.js";
|
|
|
2
2
|
/**
|
|
3
3
|
* A tool that runs code against a copy of the SDK.
|
|
4
4
|
*
|
|
5
|
-
* Instead of exposing every endpoint as
|
|
5
|
+
* Instead of exposing every endpoint as its own tool, which uses up too many tokens for LLMs to use at once,
|
|
6
6
|
* we expose a single tool that can be used to search for endpoints by name, resource, operation, or tag, and then
|
|
7
7
|
* a generic endpoint that can be used to invoke any endpoint with the provided arguments.
|
|
8
8
|
*
|
package/code-tool.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-tool.d.ts","sourceRoot":"","sources":["src/code-tool.ts"],"names":[],"mappings":"OAKO,
|
|
1
|
+
{"version":3,"file":"code-tool.d.ts","sourceRoot":"","sources":["src/code-tool.ts"],"names":[],"mappings":"OAKO,EAAgB,QAAQ,EAA4B;AAM3D;;;;;;;;GAQG;AACH,wBAAsB,QAAQ,IAAI,OAAO,CAAC,QAAQ,CAAC,CA8HlD"}
|
package/code-tool.js
CHANGED
|
@@ -40,7 +40,7 @@ const node_url_1 = require("node:url");
|
|
|
40
40
|
/**
|
|
41
41
|
* A tool that runs code against a copy of the SDK.
|
|
42
42
|
*
|
|
43
|
-
* Instead of exposing every endpoint as
|
|
43
|
+
* Instead of exposing every endpoint as its own tool, which uses up too many tokens for LLMs to use at once,
|
|
44
44
|
* we expose a single tool that can be used to search for endpoints by name, resource, operation, or tag, and then
|
|
45
45
|
* a generic endpoint that can be used to invoke any endpoint with the provided arguments.
|
|
46
46
|
*
|
|
@@ -50,7 +50,7 @@ async function codeTool() {
|
|
|
50
50
|
const metadata = { resource: 'all', operation: 'write', tags: [] };
|
|
51
51
|
const tool = {
|
|
52
52
|
name: 'execute',
|
|
53
|
-
description: 'Runs
|
|
53
|
+
description: 'Runs JavaScript code to interact with the API.\n\nYou are a skilled programmer writing code to interface with the service.\nDefine an async function named "run" that takes a single parameter of an initialized client named "conductor", and it will be run.\nWrite code within this template:\n\n```\nasync function run(conductor) {\n // Fill this out\n}\n```\n\nYou will be returned anything that your function returns, plus the results of any console.log statements.\nIf any code triggers an error, the tool will return an error response, so you do not need to add error handling unless you want to output something more helpful than the raw error.\nIt is not necessary to add comments to code, unless by adding those comments you believe that you can generate better code.\nThis code will run in a container, and you will not be able to use fetch or otherwise interact with the network calls other than through the client you are given.\nAny variables you define won\'t live between successive uses of this call, so make sure to return or log any data you might need later.',
|
|
54
54
|
inputSchema: { type: 'object', properties: { code: { type: 'string' } } },
|
|
55
55
|
};
|
|
56
56
|
// Import dynamically to avoid failing at import time in cases where the environment is not well-supported.
|
|
@@ -110,7 +110,7 @@ async function codeTool() {
|
|
|
110
110
|
code,
|
|
111
111
|
});
|
|
112
112
|
req.write(body, (err) => {
|
|
113
|
-
if (err
|
|
113
|
+
if (err != null) {
|
|
114
114
|
reject(err);
|
|
115
115
|
}
|
|
116
116
|
});
|
|
@@ -118,12 +118,10 @@ async function codeTool() {
|
|
|
118
118
|
});
|
|
119
119
|
if (resp.status === 200) {
|
|
120
120
|
const { result, logLines, errLines } = (await resp.json());
|
|
121
|
-
const returnOutput = result
|
|
122
|
-
:
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
text: typeof result === 'string' ? result : JSON.stringify(result),
|
|
126
|
-
};
|
|
121
|
+
const returnOutput = result == null ? null : ({
|
|
122
|
+
type: 'text',
|
|
123
|
+
text: typeof result === 'string' ? result : JSON.stringify(result),
|
|
124
|
+
});
|
|
127
125
|
const logOutput = logLines.length === 0 ?
|
|
128
126
|
null
|
|
129
127
|
: {
|
|
@@ -142,12 +140,12 @@ async function codeTool() {
|
|
|
142
140
|
}
|
|
143
141
|
else {
|
|
144
142
|
const { message } = (await resp.json());
|
|
145
|
-
|
|
143
|
+
return {
|
|
144
|
+
content: message == null ? [] : [{ type: 'text', text: message }],
|
|
145
|
+
isError: true,
|
|
146
|
+
};
|
|
146
147
|
}
|
|
147
148
|
}
|
|
148
|
-
catch (e) {
|
|
149
|
-
throw e;
|
|
150
|
-
}
|
|
151
149
|
finally {
|
|
152
150
|
worker.terminate();
|
|
153
151
|
}
|
package/code-tool.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-tool.js","sourceRoot":"","sources":["src/code-tool.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;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AAC,IAAI,CAAC;qBAC9C,CAAC;gBACN,OAAO;oBACL,OAAO,EAAE,CAAC,YAAY,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,IAAI,CAAC;iBAChF,CAAC;YACJ,CAAC;iBAAM,CAAC;gBACN,MAAM,EAAE,OAAO,EAAE,GAAG,CAAC,MAAM,IAAI,CAAC,IAAI,EAAE,CAAgB,CAAC;gBACvD,OAAO;oBACL,OAAO,EAAE,OAAO,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;oBACjE,OAAO,EAAE,IAAI;iBACd,CAAC;YACJ,CAAC;QACH,CAAC;gBAAS,CAAC;YACT,MAAM,CAAC,SAAS,EAAE,CAAC;QACrB,CAAC;IACH,CAAC,CAAC;IAEF,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;AACrC,CAAC"}
|
package/code-tool.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { pathToFileURL } from 'node:url';
|
|
|
4
4
|
/**
|
|
5
5
|
* A tool that runs code against a copy of the SDK.
|
|
6
6
|
*
|
|
7
|
-
* Instead of exposing every endpoint as
|
|
7
|
+
* Instead of exposing every endpoint as its own tool, which uses up too many tokens for LLMs to use at once,
|
|
8
8
|
* we expose a single tool that can be used to search for endpoints by name, resource, operation, or tag, and then
|
|
9
9
|
* a generic endpoint that can be used to invoke any endpoint with the provided arguments.
|
|
10
10
|
*
|
|
@@ -14,7 +14,7 @@ export async function codeTool() {
|
|
|
14
14
|
const metadata = { resource: 'all', operation: 'write', tags: [] };
|
|
15
15
|
const tool = {
|
|
16
16
|
name: 'execute',
|
|
17
|
-
description: 'Runs
|
|
17
|
+
description: 'Runs JavaScript code to interact with the API.\n\nYou are a skilled programmer writing code to interface with the service.\nDefine an async function named "run" that takes a single parameter of an initialized client named "conductor", and it will be run.\nWrite code within this template:\n\n```\nasync function run(conductor) {\n // Fill this out\n}\n```\n\nYou will be returned anything that your function returns, plus the results of any console.log statements.\nIf any code triggers an error, the tool will return an error response, so you do not need to add error handling unless you want to output something more helpful than the raw error.\nIt is not necessary to add comments to code, unless by adding those comments you believe that you can generate better code.\nThis code will run in a container, and you will not be able to use fetch or otherwise interact with the network calls other than through the client you are given.\nAny variables you define won\'t live between successive uses of this call, so make sure to return or log any data you might need later.',
|
|
18
18
|
inputSchema: { type: 'object', properties: { code: { type: 'string' } } },
|
|
19
19
|
};
|
|
20
20
|
// Import dynamically to avoid failing at import time in cases where the environment is not well-supported.
|
|
@@ -74,7 +74,7 @@ export async function codeTool() {
|
|
|
74
74
|
code,
|
|
75
75
|
});
|
|
76
76
|
req.write(body, (err) => {
|
|
77
|
-
if (err
|
|
77
|
+
if (err != null) {
|
|
78
78
|
reject(err);
|
|
79
79
|
}
|
|
80
80
|
});
|
|
@@ -82,12 +82,10 @@ export async function codeTool() {
|
|
|
82
82
|
});
|
|
83
83
|
if (resp.status === 200) {
|
|
84
84
|
const { result, logLines, errLines } = (await resp.json());
|
|
85
|
-
const returnOutput = result
|
|
86
|
-
:
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
text: typeof result === 'string' ? result : JSON.stringify(result),
|
|
90
|
-
};
|
|
85
|
+
const returnOutput = result == null ? null : ({
|
|
86
|
+
type: 'text',
|
|
87
|
+
text: typeof result === 'string' ? result : JSON.stringify(result),
|
|
88
|
+
});
|
|
91
89
|
const logOutput = logLines.length === 0 ?
|
|
92
90
|
null
|
|
93
91
|
: {
|
|
@@ -106,12 +104,12 @@ export async function codeTool() {
|
|
|
106
104
|
}
|
|
107
105
|
else {
|
|
108
106
|
const { message } = (await resp.json());
|
|
109
|
-
|
|
107
|
+
return {
|
|
108
|
+
content: message == null ? [] : [{ type: 'text', text: message }],
|
|
109
|
+
isError: true,
|
|
110
|
+
};
|
|
110
111
|
}
|
|
111
112
|
}
|
|
112
|
-
catch (e) {
|
|
113
|
-
throw e;
|
|
114
|
-
}
|
|
115
113
|
finally {
|
|
116
114
|
worker.terminate();
|
|
117
115
|
}
|
package/code-tool.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-tool.mjs","sourceRoot":"","sources":["src/code-tool.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,OAAO,EAAE,MAAM,WAAW;OAC5B,EAAE,aAAa,EAAE,MAAM,UAAU;AAQxC;;;;;;;;GAQG;AACH,MAAM,CAAC,KAAK,UAAU,QAAQ;IAC5B,MAAM,QAAQ,GAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;IAC7E,MAAM,IAAI,GAAS;QACjB,IAAI,EAAE,SAAS;QACf,WAAW,EACT,
|
|
1
|
+
{"version":3,"file":"code-tool.mjs","sourceRoot":"","sources":["src/code-tool.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,OAAO,EAAE,MAAM,WAAW;OAC5B,EAAE,aAAa,EAAE,MAAM,UAAU;AAQxC;;;;;;;;GAQG;AACH,MAAM,CAAC,KAAK,UAAU,QAAQ;IAC5B,MAAM,QAAQ,GAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;IAC7E,MAAM,IAAI,GAAS;QACjB,IAAI,EAAE,SAAS;QACf,WAAW,EACT,mjCAAmjC;QACrjC,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE;KAC1E,CAAC;IAEF,2GAA2G;IAC3G,MAAM,EAAE,iBAAiB,EAAE,GAAG,MAAM,MAAM,CAAC,2BAA2B,CAAC,CAAC;IACxE,MAAM,EAAE,UA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ts
CHANGED
|
@@ -2,7 +2,7 @@ import { Endpoint } from "./tools/types.mjs";
|
|
|
2
2
|
/**
|
|
3
3
|
* A list of tools that expose all the endpoints in the API dynamically.
|
|
4
4
|
*
|
|
5
|
-
* Instead of exposing every endpoint as
|
|
5
|
+
* Instead of exposing every endpoint as its own tool, which uses up too many tokens for LLMs to use at once,
|
|
6
6
|
* we expose a single tool that can be used to search for endpoints by name, resource, operation, or tag, and then
|
|
7
7
|
* a generic endpoint that can be used to invoke any endpoint with the provided arguments.
|
|
8
8
|
*
|
package/dynamic-tools.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { Endpoint } from "./tools/types.js";
|
|
|
2
2
|
/**
|
|
3
3
|
* A list of tools that expose all the endpoints in the API dynamically.
|
|
4
4
|
*
|
|
5
|
-
* Instead of exposing every endpoint as
|
|
5
|
+
* Instead of exposing every endpoint as its own tool, which uses up too many tokens for LLMs to use at once,
|
|
6
6
|
* we expose a single tool that can be used to search for endpoints by name, resource, operation, or tag, and then
|
|
7
7
|
* a generic endpoint that can be used to invoke any endpoint with the provided arguments.
|
|
8
8
|
*
|
package/dynamic-tools.js
CHANGED
|
@@ -14,7 +14,7 @@ function zodToInputSchema(schema) {
|
|
|
14
14
|
/**
|
|
15
15
|
* A list of tools that expose all the endpoints in the API dynamically.
|
|
16
16
|
*
|
|
17
|
-
* Instead of exposing every endpoint as
|
|
17
|
+
* Instead of exposing every endpoint as its own tool, which uses up too many tokens for LLMs to use at once,
|
|
18
18
|
* we expose a single tool that can be used to search for endpoints by name, resource, operation, or tag, and then
|
|
19
19
|
* a generic endpoint that can be used to invoke any endpoint with the provided arguments.
|
|
20
20
|
*
|
package/dynamic-tools.mjs
CHANGED
|
@@ -11,7 +11,7 @@ function zodToInputSchema(schema) {
|
|
|
11
11
|
/**
|
|
12
12
|
* A list of tools that expose all the endpoints in the API dynamically.
|
|
13
13
|
*
|
|
14
|
-
* Instead of exposing every endpoint as
|
|
14
|
+
* Instead of exposing every endpoint as its own tool, which uses up too many tokens for LLMs to use at once,
|
|
15
15
|
* we expose a single tool that can be used to search for endpoints by name, resource, operation, or tag, and then
|
|
16
16
|
* a generic endpoint that can be used to invoke any endpoint with the provided arguments.
|
|
17
17
|
*
|
package/filtering.d.mts
CHANGED
package/filtering.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filtering.d.mts","sourceRoot":"","sources":["src/filtering.ts"],"names":[],"mappings":"AAGA,wBAAsB,WAAW,CAAC,QAAQ,EAAE,OAAO,GAAG,SAAS,EAAE,QAAQ,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAM5F"}
|
|
1
|
+
{"version":3,"file":"filtering.d.mts","sourceRoot":"","sources":["src/filtering.ts"],"names":[],"mappings":"AAGA,wBAAsB,WAAW,CAAC,QAAQ,EAAE,OAAO,GAAG,SAAS,EAAE,QAAQ,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAM5F;AAMD,wBAAgB,SAAS,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,KAAK,CAEpD"}
|
package/filtering.d.ts
CHANGED
package/filtering.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filtering.d.ts","sourceRoot":"","sources":["src/filtering.ts"],"names":[],"mappings":"AAGA,wBAAsB,WAAW,CAAC,QAAQ,EAAE,OAAO,GAAG,SAAS,EAAE,QAAQ,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAM5F"}
|
|
1
|
+
{"version":3,"file":"filtering.d.ts","sourceRoot":"","sources":["src/filtering.ts"],"names":[],"mappings":"AAGA,wBAAsB,WAAW,CAAC,QAAQ,EAAE,OAAO,GAAG,SAAS,EAAE,QAAQ,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAM5F;AAMD,wBAAgB,SAAS,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,KAAK,CAEpD"}
|