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.
Files changed (622) hide show
  1. package/README.md +46 -1
  2. package/code-tool-worker.d.mts.map +1 -1
  3. package/code-tool-worker.d.ts.map +1 -1
  4. package/code-tool-worker.js +327 -7
  5. package/code-tool-worker.js.map +1 -1
  6. package/code-tool-worker.mjs +327 -7
  7. package/code-tool-worker.mjs.map +1 -1
  8. package/code-tool.d.mts +1 -1
  9. package/code-tool.d.mts.map +1 -1
  10. package/code-tool.d.ts +1 -1
  11. package/code-tool.d.ts.map +1 -1
  12. package/code-tool.js +11 -13
  13. package/code-tool.js.map +1 -1
  14. package/code-tool.mjs +11 -13
  15. package/code-tool.mjs.map +1 -1
  16. package/dynamic-tools.d.mts +1 -1
  17. package/dynamic-tools.d.ts +1 -1
  18. package/dynamic-tools.js +1 -1
  19. package/dynamic-tools.mjs +1 -1
  20. package/filtering.d.mts +1 -0
  21. package/filtering.d.mts.map +1 -1
  22. package/filtering.d.ts +1 -0
  23. package/filtering.d.ts.map +1 -1
  24. package/filtering.js +4 -0
  25. package/filtering.js.map +1 -1
  26. package/filtering.mjs +3 -0
  27. package/filtering.mjs.map +1 -1
  28. package/headers.d.mts.map +1 -1
  29. package/headers.d.ts.map +1 -1
  30. package/headers.js +1 -1
  31. package/headers.js.map +1 -1
  32. package/headers.mjs +1 -1
  33. package/headers.mjs.map +1 -1
  34. package/http.js +2 -2
  35. package/http.js.map +1 -1
  36. package/http.mjs +2 -2
  37. package/http.mjs.map +1 -1
  38. package/options.d.mts.map +1 -1
  39. package/options.d.ts.map +1 -1
  40. package/options.js +6 -3
  41. package/options.js.map +1 -1
  42. package/options.mjs +6 -3
  43. package/options.mjs.map +1 -1
  44. package/package.json +5 -3
  45. package/server.js +1 -1
  46. package/server.mjs +1 -1
  47. package/src/code-tool-worker.ts +372 -7
  48. package/src/code-tool.ts +14 -13
  49. package/src/dynamic-tools.ts +1 -1
  50. package/src/filtering.ts +4 -0
  51. package/src/headers.ts +3 -1
  52. package/src/http.ts +2 -2
  53. package/src/options.ts +10 -3
  54. package/src/server.ts +1 -1
  55. package/src/tools/auth-sessions/create-auth-sessions.ts +10 -3
  56. package/src/tools/end-users/create-end-users.ts +10 -3
  57. package/src/tools/end-users/delete-end-users.ts +10 -3
  58. package/src/tools/end-users/list-end-users.ts +10 -3
  59. package/src/tools/end-users/passthrough-end-users.ts +15 -8
  60. package/src/tools/end-users/retrieve-end-users.ts +10 -3
  61. package/src/tools/index.ts +6 -0
  62. package/src/tools/qbd/account-tax-lines/list-qbd-account-tax-lines.ts +10 -3
  63. package/src/tools/qbd/bill-check-payments/delete-qbd-bill-check-payments.ts +12 -5
  64. package/src/tools/qbd/bill-credit-card-payments/delete-qbd-bill-credit-card-payments.ts +12 -5
  65. package/src/tools/qbd/bills/delete-qbd-bills.ts +10 -3
  66. package/src/tools/qbd/build-assemblies/delete-qbd-build-assemblies.ts +12 -5
  67. package/src/tools/qbd/checks/delete-qbd-checks.ts +10 -3
  68. package/src/tools/qbd/classes/create-qbd-classes.ts +10 -3
  69. package/src/tools/qbd/classes/list-qbd-classes.ts +10 -3
  70. package/src/tools/qbd/classes/retrieve-qbd-classes.ts +10 -3
  71. package/src/tools/qbd/classes/update-qbd-classes.ts +10 -3
  72. package/src/tools/qbd/credit-card-charges/delete-qbd-credit-card-charges.ts +12 -5
  73. package/src/tools/qbd/credit-card-credits/delete-qbd-credit-card-credits.ts +12 -5
  74. package/src/tools/qbd/credit-card-refunds/delete-qbd-credit-card-refunds.ts +12 -5
  75. package/src/tools/qbd/credit-memos/delete-qbd-credit-memos.ts +12 -3
  76. package/src/tools/qbd/currencies/create-qbd-currencies.ts +10 -3
  77. package/src/tools/qbd/currencies/retrieve-qbd-currencies.ts +12 -3
  78. package/src/tools/qbd/currencies/update-qbd-currencies.ts +10 -3
  79. package/src/tools/qbd/customer-types/create-qbd-customer-types.ts +68 -0
  80. package/src/tools/qbd/customer-types/list-qbd-customer-types.ts +116 -0
  81. package/src/tools/qbd/customer-types/retrieve-qbd-customer-types.ts +61 -0
  82. package/src/tools/qbd/date-driven-terms/create-qbd-date-driven-terms.ts +12 -3
  83. package/src/tools/qbd/date-driven-terms/list-qbd-date-driven-terms.ts +10 -3
  84. package/src/tools/qbd/date-driven-terms/retrieve-qbd-date-driven-terms.ts +12 -5
  85. package/src/tools/qbd/deleted-list-objects/list-qbd-deleted-list-objects.ts +12 -3
  86. package/src/tools/qbd/deleted-transactions/list-qbd-deleted-transactions.ts +12 -5
  87. package/src/tools/qbd/estimates/delete-qbd-estimates.ts +10 -3
  88. package/src/tools/qbd/health-check-qbd.ts +10 -3
  89. package/src/tools/qbd/inventory-adjustments/delete-qbd-inventory-adjustments.ts +12 -5
  90. package/src/tools/qbd/inventory-sites/create-qbd-inventory-sites.ts +10 -3
  91. package/src/tools/qbd/inventory-sites/retrieve-qbd-inventory-sites.ts +12 -5
  92. package/src/tools/qbd/inventory-sites/update-qbd-inventory-sites.ts +12 -5
  93. package/src/tools/qbd/invoices/delete-qbd-invoices.ts +10 -3
  94. package/src/tools/qbd/item-groups/retrieve-qbd-item-groups.ts +12 -3
  95. package/src/tools/qbd/item-receipts/delete-qbd-item-receipts.ts +12 -3
  96. package/src/tools/qbd/item-sites/retrieve-qbd-item-sites.ts +12 -3
  97. package/src/tools/qbd/journal-entries/delete-qbd-journal-entries.ts +12 -5
  98. package/src/tools/qbd/other-names/retrieve-qbd-other-names.ts +12 -3
  99. package/src/tools/qbd/payment-methods/create-qbd-payment-methods.ts +10 -3
  100. package/src/tools/qbd/payment-methods/list-qbd-payment-methods.ts +10 -3
  101. package/src/tools/qbd/payment-methods/retrieve-qbd-payment-methods.ts +12 -5
  102. package/src/tools/qbd/payroll-wage-items/create-qbd-payroll-wage-items.ts +12 -3
  103. package/src/tools/qbd/payroll-wage-items/list-qbd-payroll-wage-items.ts +10 -3
  104. package/src/tools/qbd/payroll-wage-items/retrieve-qbd-payroll-wage-items.ts +12 -5
  105. package/src/tools/qbd/price-levels/retrieve-qbd-price-levels.ts +12 -5
  106. package/src/tools/qbd/purchase-orders/delete-qbd-purchase-orders.ts +12 -5
  107. package/src/tools/qbd/receive-payments/delete-qbd-receive-payments.ts +12 -5
  108. package/src/tools/qbd/sales-orders/delete-qbd-sales-orders.ts +12 -3
  109. package/src/tools/qbd/sales-receipts/delete-qbd-sales-receipts.ts +12 -5
  110. package/src/tools/qbd/sales-representatives/create-qbd-sales-representatives.ts +12 -5
  111. package/src/tools/qbd/sales-representatives/list-qbd-sales-representatives.ts +12 -5
  112. package/src/tools/qbd/sales-representatives/retrieve-qbd-sales-representatives.ts +12 -5
  113. package/src/tools/qbd/sales-representatives/update-qbd-sales-representatives.ts +12 -5
  114. package/src/tools/qbd/sales-tax-codes/create-qbd-sales-tax-codes.ts +10 -3
  115. package/src/tools/qbd/sales-tax-codes/list-qbd-sales-tax-codes.ts +10 -3
  116. package/src/tools/qbd/sales-tax-codes/retrieve-qbd-sales-tax-codes.ts +12 -5
  117. package/src/tools/qbd/sales-tax-codes/update-qbd-sales-tax-codes.ts +12 -5
  118. package/src/tools/qbd/sales-tax-items/retrieve-qbd-sales-tax-items.ts +12 -5
  119. package/src/tools/qbd/standard-terms/create-qbd-standard-terms.ts +10 -3
  120. package/src/tools/qbd/standard-terms/list-qbd-standard-terms.ts +10 -3
  121. package/src/tools/qbd/standard-terms/retrieve-qbd-standard-terms.ts +12 -5
  122. package/src/tools/qbd/subtotal-items/create-qbd-subtotal-items.ts +10 -3
  123. package/src/tools/qbd/subtotal-items/retrieve-qbd-subtotal-items.ts +12 -5
  124. package/src/tools/qbd/subtotal-items/update-qbd-subtotal-items.ts +12 -5
  125. package/src/tools/qbd/templates/list-qbd-templates.ts +10 -3
  126. package/src/tools/qbd/time-tracking-activities/delete-qbd-time-tracking-activities.ts +12 -5
  127. package/src/tools/qbd/time-tracking-activities/retrieve-qbd-time-tracking-activities.ts +12 -5
  128. package/src/tools/qbd/transactions/retrieve-qbd-transactions.ts +12 -5
  129. package/src/tools/qbd/transfers/create-qbd-transfers.ts +10 -3
  130. package/src/tools/qbd/transfers/retrieve-qbd-transfers.ts +12 -3
  131. package/src/tools/qbd/transfers/update-qbd-transfers.ts +10 -3
  132. package/src/tools/qbd/unit-of-measure-sets/retrieve-qbd-unit-of-measure-sets.ts +12 -5
  133. package/src/tools/qbd/vendor-credits/delete-qbd-vendor-credits.ts +12 -5
  134. package/src/tools/types.ts +12 -0
  135. package/tools/auth-sessions/create-auth-sessions.d.mts.map +1 -1
  136. package/tools/auth-sessions/create-auth-sessions.d.ts.map +1 -1
  137. package/tools/auth-sessions/create-auth-sessions.js +9 -1
  138. package/tools/auth-sessions/create-auth-sessions.js.map +1 -1
  139. package/tools/auth-sessions/create-auth-sessions.mjs +11 -3
  140. package/tools/auth-sessions/create-auth-sessions.mjs.map +1 -1
  141. package/tools/end-users/create-end-users.d.mts.map +1 -1
  142. package/tools/end-users/create-end-users.d.ts.map +1 -1
  143. package/tools/end-users/create-end-users.js +9 -1
  144. package/tools/end-users/create-end-users.js.map +1 -1
  145. package/tools/end-users/create-end-users.mjs +11 -3
  146. package/tools/end-users/create-end-users.mjs.map +1 -1
  147. package/tools/end-users/delete-end-users.d.mts.map +1 -1
  148. package/tools/end-users/delete-end-users.d.ts.map +1 -1
  149. package/tools/end-users/delete-end-users.js +9 -1
  150. package/tools/end-users/delete-end-users.js.map +1 -1
  151. package/tools/end-users/delete-end-users.mjs +11 -3
  152. package/tools/end-users/delete-end-users.mjs.map +1 -1
  153. package/tools/end-users/list-end-users.d.mts.map +1 -1
  154. package/tools/end-users/list-end-users.d.ts.map +1 -1
  155. package/tools/end-users/list-end-users.js +9 -1
  156. package/tools/end-users/list-end-users.js.map +1 -1
  157. package/tools/end-users/list-end-users.mjs +11 -3
  158. package/tools/end-users/list-end-users.mjs.map +1 -1
  159. package/tools/end-users/passthrough-end-users.d.mts.map +1 -1
  160. package/tools/end-users/passthrough-end-users.d.ts.map +1 -1
  161. package/tools/end-users/passthrough-end-users.js +9 -1
  162. package/tools/end-users/passthrough-end-users.js.map +1 -1
  163. package/tools/end-users/passthrough-end-users.mjs +11 -3
  164. package/tools/end-users/passthrough-end-users.mjs.map +1 -1
  165. package/tools/end-users/retrieve-end-users.d.mts.map +1 -1
  166. package/tools/end-users/retrieve-end-users.d.ts.map +1 -1
  167. package/tools/end-users/retrieve-end-users.js +9 -1
  168. package/tools/end-users/retrieve-end-users.js.map +1 -1
  169. package/tools/end-users/retrieve-end-users.mjs +11 -3
  170. package/tools/end-users/retrieve-end-users.mjs.map +1 -1
  171. package/tools/index.d.mts.map +1 -1
  172. package/tools/index.d.ts.map +1 -1
  173. package/tools/index.js +6 -0
  174. package/tools/index.js.map +1 -1
  175. package/tools/index.mjs +6 -0
  176. package/tools/index.mjs.map +1 -1
  177. package/tools/qbd/account-tax-lines/list-qbd-account-tax-lines.d.mts.map +1 -1
  178. package/tools/qbd/account-tax-lines/list-qbd-account-tax-lines.d.ts.map +1 -1
  179. package/tools/qbd/account-tax-lines/list-qbd-account-tax-lines.js +9 -1
  180. package/tools/qbd/account-tax-lines/list-qbd-account-tax-lines.js.map +1 -1
  181. package/tools/qbd/account-tax-lines/list-qbd-account-tax-lines.mjs +11 -3
  182. package/tools/qbd/account-tax-lines/list-qbd-account-tax-lines.mjs.map +1 -1
  183. package/tools/qbd/bill-check-payments/delete-qbd-bill-check-payments.d.mts.map +1 -1
  184. package/tools/qbd/bill-check-payments/delete-qbd-bill-check-payments.d.ts.map +1 -1
  185. package/tools/qbd/bill-check-payments/delete-qbd-bill-check-payments.js +9 -1
  186. package/tools/qbd/bill-check-payments/delete-qbd-bill-check-payments.js.map +1 -1
  187. package/tools/qbd/bill-check-payments/delete-qbd-bill-check-payments.mjs +11 -3
  188. package/tools/qbd/bill-check-payments/delete-qbd-bill-check-payments.mjs.map +1 -1
  189. package/tools/qbd/bill-credit-card-payments/delete-qbd-bill-credit-card-payments.d.mts.map +1 -1
  190. package/tools/qbd/bill-credit-card-payments/delete-qbd-bill-credit-card-payments.d.ts.map +1 -1
  191. package/tools/qbd/bill-credit-card-payments/delete-qbd-bill-credit-card-payments.js +9 -1
  192. package/tools/qbd/bill-credit-card-payments/delete-qbd-bill-credit-card-payments.js.map +1 -1
  193. package/tools/qbd/bill-credit-card-payments/delete-qbd-bill-credit-card-payments.mjs +11 -3
  194. package/tools/qbd/bill-credit-card-payments/delete-qbd-bill-credit-card-payments.mjs.map +1 -1
  195. package/tools/qbd/bills/delete-qbd-bills.d.mts.map +1 -1
  196. package/tools/qbd/bills/delete-qbd-bills.d.ts.map +1 -1
  197. package/tools/qbd/bills/delete-qbd-bills.js +9 -1
  198. package/tools/qbd/bills/delete-qbd-bills.js.map +1 -1
  199. package/tools/qbd/bills/delete-qbd-bills.mjs +11 -3
  200. package/tools/qbd/bills/delete-qbd-bills.mjs.map +1 -1
  201. package/tools/qbd/build-assemblies/delete-qbd-build-assemblies.d.mts.map +1 -1
  202. package/tools/qbd/build-assemblies/delete-qbd-build-assemblies.d.ts.map +1 -1
  203. package/tools/qbd/build-assemblies/delete-qbd-build-assemblies.js +9 -1
  204. package/tools/qbd/build-assemblies/delete-qbd-build-assemblies.js.map +1 -1
  205. package/tools/qbd/build-assemblies/delete-qbd-build-assemblies.mjs +11 -3
  206. package/tools/qbd/build-assemblies/delete-qbd-build-assemblies.mjs.map +1 -1
  207. package/tools/qbd/checks/delete-qbd-checks.d.mts.map +1 -1
  208. package/tools/qbd/checks/delete-qbd-checks.d.ts.map +1 -1
  209. package/tools/qbd/checks/delete-qbd-checks.js +9 -1
  210. package/tools/qbd/checks/delete-qbd-checks.js.map +1 -1
  211. package/tools/qbd/checks/delete-qbd-checks.mjs +11 -3
  212. package/tools/qbd/checks/delete-qbd-checks.mjs.map +1 -1
  213. package/tools/qbd/classes/create-qbd-classes.d.mts.map +1 -1
  214. package/tools/qbd/classes/create-qbd-classes.d.ts.map +1 -1
  215. package/tools/qbd/classes/create-qbd-classes.js +9 -1
  216. package/tools/qbd/classes/create-qbd-classes.js.map +1 -1
  217. package/tools/qbd/classes/create-qbd-classes.mjs +11 -3
  218. package/tools/qbd/classes/create-qbd-classes.mjs.map +1 -1
  219. package/tools/qbd/classes/list-qbd-classes.d.mts.map +1 -1
  220. package/tools/qbd/classes/list-qbd-classes.d.ts.map +1 -1
  221. package/tools/qbd/classes/list-qbd-classes.js +9 -1
  222. package/tools/qbd/classes/list-qbd-classes.js.map +1 -1
  223. package/tools/qbd/classes/list-qbd-classes.mjs +11 -3
  224. package/tools/qbd/classes/list-qbd-classes.mjs.map +1 -1
  225. package/tools/qbd/classes/retrieve-qbd-classes.d.mts.map +1 -1
  226. package/tools/qbd/classes/retrieve-qbd-classes.d.ts.map +1 -1
  227. package/tools/qbd/classes/retrieve-qbd-classes.js +9 -1
  228. package/tools/qbd/classes/retrieve-qbd-classes.js.map +1 -1
  229. package/tools/qbd/classes/retrieve-qbd-classes.mjs +11 -3
  230. package/tools/qbd/classes/retrieve-qbd-classes.mjs.map +1 -1
  231. package/tools/qbd/classes/update-qbd-classes.d.mts.map +1 -1
  232. package/tools/qbd/classes/update-qbd-classes.d.ts.map +1 -1
  233. package/tools/qbd/classes/update-qbd-classes.js +9 -1
  234. package/tools/qbd/classes/update-qbd-classes.js.map +1 -1
  235. package/tools/qbd/classes/update-qbd-classes.mjs +11 -3
  236. package/tools/qbd/classes/update-qbd-classes.mjs.map +1 -1
  237. package/tools/qbd/credit-card-charges/delete-qbd-credit-card-charges.d.mts.map +1 -1
  238. package/tools/qbd/credit-card-charges/delete-qbd-credit-card-charges.d.ts.map +1 -1
  239. package/tools/qbd/credit-card-charges/delete-qbd-credit-card-charges.js +9 -1
  240. package/tools/qbd/credit-card-charges/delete-qbd-credit-card-charges.js.map +1 -1
  241. package/tools/qbd/credit-card-charges/delete-qbd-credit-card-charges.mjs +11 -3
  242. package/tools/qbd/credit-card-charges/delete-qbd-credit-card-charges.mjs.map +1 -1
  243. package/tools/qbd/credit-card-credits/delete-qbd-credit-card-credits.d.mts.map +1 -1
  244. package/tools/qbd/credit-card-credits/delete-qbd-credit-card-credits.d.ts.map +1 -1
  245. package/tools/qbd/credit-card-credits/delete-qbd-credit-card-credits.js +9 -1
  246. package/tools/qbd/credit-card-credits/delete-qbd-credit-card-credits.js.map +1 -1
  247. package/tools/qbd/credit-card-credits/delete-qbd-credit-card-credits.mjs +11 -3
  248. package/tools/qbd/credit-card-credits/delete-qbd-credit-card-credits.mjs.map +1 -1
  249. package/tools/qbd/credit-card-refunds/delete-qbd-credit-card-refunds.d.mts.map +1 -1
  250. package/tools/qbd/credit-card-refunds/delete-qbd-credit-card-refunds.d.ts.map +1 -1
  251. package/tools/qbd/credit-card-refunds/delete-qbd-credit-card-refunds.js +9 -1
  252. package/tools/qbd/credit-card-refunds/delete-qbd-credit-card-refunds.js.map +1 -1
  253. package/tools/qbd/credit-card-refunds/delete-qbd-credit-card-refunds.mjs +11 -3
  254. package/tools/qbd/credit-card-refunds/delete-qbd-credit-card-refunds.mjs.map +1 -1
  255. package/tools/qbd/credit-memos/delete-qbd-credit-memos.d.mts.map +1 -1
  256. package/tools/qbd/credit-memos/delete-qbd-credit-memos.d.ts.map +1 -1
  257. package/tools/qbd/credit-memos/delete-qbd-credit-memos.js +9 -1
  258. package/tools/qbd/credit-memos/delete-qbd-credit-memos.js.map +1 -1
  259. package/tools/qbd/credit-memos/delete-qbd-credit-memos.mjs +11 -3
  260. package/tools/qbd/credit-memos/delete-qbd-credit-memos.mjs.map +1 -1
  261. package/tools/qbd/currencies/create-qbd-currencies.d.mts.map +1 -1
  262. package/tools/qbd/currencies/create-qbd-currencies.d.ts.map +1 -1
  263. package/tools/qbd/currencies/create-qbd-currencies.js +9 -1
  264. package/tools/qbd/currencies/create-qbd-currencies.js.map +1 -1
  265. package/tools/qbd/currencies/create-qbd-currencies.mjs +11 -3
  266. package/tools/qbd/currencies/create-qbd-currencies.mjs.map +1 -1
  267. package/tools/qbd/currencies/retrieve-qbd-currencies.d.mts.map +1 -1
  268. package/tools/qbd/currencies/retrieve-qbd-currencies.d.ts.map +1 -1
  269. package/tools/qbd/currencies/retrieve-qbd-currencies.js +9 -1
  270. package/tools/qbd/currencies/retrieve-qbd-currencies.js.map +1 -1
  271. package/tools/qbd/currencies/retrieve-qbd-currencies.mjs +11 -3
  272. package/tools/qbd/currencies/retrieve-qbd-currencies.mjs.map +1 -1
  273. package/tools/qbd/currencies/update-qbd-currencies.d.mts.map +1 -1
  274. package/tools/qbd/currencies/update-qbd-currencies.d.ts.map +1 -1
  275. package/tools/qbd/currencies/update-qbd-currencies.js +9 -1
  276. package/tools/qbd/currencies/update-qbd-currencies.js.map +1 -1
  277. package/tools/qbd/currencies/update-qbd-currencies.mjs +11 -3
  278. package/tools/qbd/currencies/update-qbd-currencies.mjs.map +1 -1
  279. package/tools/qbd/customer-types/create-qbd-customer-types.d.mts +45 -0
  280. package/tools/qbd/customer-types/create-qbd-customer-types.d.mts.map +1 -0
  281. package/tools/qbd/customer-types/create-qbd-customer-types.d.ts +45 -0
  282. package/tools/qbd/customer-types/create-qbd-customer-types.d.ts.map +1 -0
  283. package/tools/qbd/customer-types/create-qbd-customer-types.js +60 -0
  284. package/tools/qbd/customer-types/create-qbd-customer-types.js.map +1 -0
  285. package/tools/qbd/customer-types/create-qbd-customer-types.mjs +56 -0
  286. package/tools/qbd/customer-types/create-qbd-customer-types.mjs.map +1 -0
  287. package/tools/qbd/customer-types/list-qbd-customer-types.d.mts +45 -0
  288. package/tools/qbd/customer-types/list-qbd-customer-types.d.mts.map +1 -0
  289. package/tools/qbd/customer-types/list-qbd-customer-types.d.ts +45 -0
  290. package/tools/qbd/customer-types/list-qbd-customer-types.d.ts.map +1 -0
  291. package/tools/qbd/customer-types/list-qbd-customer-types.js +101 -0
  292. package/tools/qbd/customer-types/list-qbd-customer-types.js.map +1 -0
  293. package/tools/qbd/customer-types/list-qbd-customer-types.mjs +97 -0
  294. package/tools/qbd/customer-types/list-qbd-customer-types.mjs.map +1 -0
  295. package/tools/qbd/customer-types/retrieve-qbd-customer-types.d.mts +45 -0
  296. package/tools/qbd/customer-types/retrieve-qbd-customer-types.d.mts.map +1 -0
  297. package/tools/qbd/customer-types/retrieve-qbd-customer-types.d.ts +45 -0
  298. package/tools/qbd/customer-types/retrieve-qbd-customer-types.d.ts.map +1 -0
  299. package/tools/qbd/customer-types/retrieve-qbd-customer-types.js +54 -0
  300. package/tools/qbd/customer-types/retrieve-qbd-customer-types.js.map +1 -0
  301. package/tools/qbd/customer-types/retrieve-qbd-customer-types.mjs +50 -0
  302. package/tools/qbd/customer-types/retrieve-qbd-customer-types.mjs.map +1 -0
  303. package/tools/qbd/date-driven-terms/create-qbd-date-driven-terms.d.mts.map +1 -1
  304. package/tools/qbd/date-driven-terms/create-qbd-date-driven-terms.d.ts.map +1 -1
  305. package/tools/qbd/date-driven-terms/create-qbd-date-driven-terms.js +9 -1
  306. package/tools/qbd/date-driven-terms/create-qbd-date-driven-terms.js.map +1 -1
  307. package/tools/qbd/date-driven-terms/create-qbd-date-driven-terms.mjs +11 -3
  308. package/tools/qbd/date-driven-terms/create-qbd-date-driven-terms.mjs.map +1 -1
  309. package/tools/qbd/date-driven-terms/list-qbd-date-driven-terms.d.mts.map +1 -1
  310. package/tools/qbd/date-driven-terms/list-qbd-date-driven-terms.d.ts.map +1 -1
  311. package/tools/qbd/date-driven-terms/list-qbd-date-driven-terms.js +9 -1
  312. package/tools/qbd/date-driven-terms/list-qbd-date-driven-terms.js.map +1 -1
  313. package/tools/qbd/date-driven-terms/list-qbd-date-driven-terms.mjs +11 -3
  314. package/tools/qbd/date-driven-terms/list-qbd-date-driven-terms.mjs.map +1 -1
  315. package/tools/qbd/date-driven-terms/retrieve-qbd-date-driven-terms.d.mts.map +1 -1
  316. package/tools/qbd/date-driven-terms/retrieve-qbd-date-driven-terms.d.ts.map +1 -1
  317. package/tools/qbd/date-driven-terms/retrieve-qbd-date-driven-terms.js +9 -1
  318. package/tools/qbd/date-driven-terms/retrieve-qbd-date-driven-terms.js.map +1 -1
  319. package/tools/qbd/date-driven-terms/retrieve-qbd-date-driven-terms.mjs +11 -3
  320. package/tools/qbd/date-driven-terms/retrieve-qbd-date-driven-terms.mjs.map +1 -1
  321. package/tools/qbd/deleted-list-objects/list-qbd-deleted-list-objects.d.mts.map +1 -1
  322. package/tools/qbd/deleted-list-objects/list-qbd-deleted-list-objects.d.ts.map +1 -1
  323. package/tools/qbd/deleted-list-objects/list-qbd-deleted-list-objects.js +9 -1
  324. package/tools/qbd/deleted-list-objects/list-qbd-deleted-list-objects.js.map +1 -1
  325. package/tools/qbd/deleted-list-objects/list-qbd-deleted-list-objects.mjs +11 -3
  326. package/tools/qbd/deleted-list-objects/list-qbd-deleted-list-objects.mjs.map +1 -1
  327. package/tools/qbd/deleted-transactions/list-qbd-deleted-transactions.d.mts.map +1 -1
  328. package/tools/qbd/deleted-transactions/list-qbd-deleted-transactions.d.ts.map +1 -1
  329. package/tools/qbd/deleted-transactions/list-qbd-deleted-transactions.js +9 -1
  330. package/tools/qbd/deleted-transactions/list-qbd-deleted-transactions.js.map +1 -1
  331. package/tools/qbd/deleted-transactions/list-qbd-deleted-transactions.mjs +11 -3
  332. package/tools/qbd/deleted-transactions/list-qbd-deleted-transactions.mjs.map +1 -1
  333. package/tools/qbd/estimates/delete-qbd-estimates.d.mts.map +1 -1
  334. package/tools/qbd/estimates/delete-qbd-estimates.d.ts.map +1 -1
  335. package/tools/qbd/estimates/delete-qbd-estimates.js +9 -1
  336. package/tools/qbd/estimates/delete-qbd-estimates.js.map +1 -1
  337. package/tools/qbd/estimates/delete-qbd-estimates.mjs +11 -3
  338. package/tools/qbd/estimates/delete-qbd-estimates.mjs.map +1 -1
  339. package/tools/qbd/health-check-qbd.d.mts.map +1 -1
  340. package/tools/qbd/health-check-qbd.d.ts.map +1 -1
  341. package/tools/qbd/health-check-qbd.js +9 -1
  342. package/tools/qbd/health-check-qbd.js.map +1 -1
  343. package/tools/qbd/health-check-qbd.mjs +11 -3
  344. package/tools/qbd/health-check-qbd.mjs.map +1 -1
  345. package/tools/qbd/inventory-adjustments/delete-qbd-inventory-adjustments.d.mts.map +1 -1
  346. package/tools/qbd/inventory-adjustments/delete-qbd-inventory-adjustments.d.ts.map +1 -1
  347. package/tools/qbd/inventory-adjustments/delete-qbd-inventory-adjustments.js +9 -1
  348. package/tools/qbd/inventory-adjustments/delete-qbd-inventory-adjustments.js.map +1 -1
  349. package/tools/qbd/inventory-adjustments/delete-qbd-inventory-adjustments.mjs +11 -3
  350. package/tools/qbd/inventory-adjustments/delete-qbd-inventory-adjustments.mjs.map +1 -1
  351. package/tools/qbd/inventory-sites/create-qbd-inventory-sites.d.mts.map +1 -1
  352. package/tools/qbd/inventory-sites/create-qbd-inventory-sites.d.ts.map +1 -1
  353. package/tools/qbd/inventory-sites/create-qbd-inventory-sites.js +9 -1
  354. package/tools/qbd/inventory-sites/create-qbd-inventory-sites.js.map +1 -1
  355. package/tools/qbd/inventory-sites/create-qbd-inventory-sites.mjs +11 -3
  356. package/tools/qbd/inventory-sites/create-qbd-inventory-sites.mjs.map +1 -1
  357. package/tools/qbd/inventory-sites/retrieve-qbd-inventory-sites.d.mts.map +1 -1
  358. package/tools/qbd/inventory-sites/retrieve-qbd-inventory-sites.d.ts.map +1 -1
  359. package/tools/qbd/inventory-sites/retrieve-qbd-inventory-sites.js +9 -1
  360. package/tools/qbd/inventory-sites/retrieve-qbd-inventory-sites.js.map +1 -1
  361. package/tools/qbd/inventory-sites/retrieve-qbd-inventory-sites.mjs +11 -3
  362. package/tools/qbd/inventory-sites/retrieve-qbd-inventory-sites.mjs.map +1 -1
  363. package/tools/qbd/inventory-sites/update-qbd-inventory-sites.d.mts.map +1 -1
  364. package/tools/qbd/inventory-sites/update-qbd-inventory-sites.d.ts.map +1 -1
  365. package/tools/qbd/inventory-sites/update-qbd-inventory-sites.js +9 -1
  366. package/tools/qbd/inventory-sites/update-qbd-inventory-sites.js.map +1 -1
  367. package/tools/qbd/inventory-sites/update-qbd-inventory-sites.mjs +11 -3
  368. package/tools/qbd/inventory-sites/update-qbd-inventory-sites.mjs.map +1 -1
  369. package/tools/qbd/invoices/delete-qbd-invoices.d.mts.map +1 -1
  370. package/tools/qbd/invoices/delete-qbd-invoices.d.ts.map +1 -1
  371. package/tools/qbd/invoices/delete-qbd-invoices.js +9 -1
  372. package/tools/qbd/invoices/delete-qbd-invoices.js.map +1 -1
  373. package/tools/qbd/invoices/delete-qbd-invoices.mjs +11 -3
  374. package/tools/qbd/invoices/delete-qbd-invoices.mjs.map +1 -1
  375. package/tools/qbd/item-groups/retrieve-qbd-item-groups.d.mts.map +1 -1
  376. package/tools/qbd/item-groups/retrieve-qbd-item-groups.d.ts.map +1 -1
  377. package/tools/qbd/item-groups/retrieve-qbd-item-groups.js +9 -1
  378. package/tools/qbd/item-groups/retrieve-qbd-item-groups.js.map +1 -1
  379. package/tools/qbd/item-groups/retrieve-qbd-item-groups.mjs +11 -3
  380. package/tools/qbd/item-groups/retrieve-qbd-item-groups.mjs.map +1 -1
  381. package/tools/qbd/item-receipts/delete-qbd-item-receipts.d.mts.map +1 -1
  382. package/tools/qbd/item-receipts/delete-qbd-item-receipts.d.ts.map +1 -1
  383. package/tools/qbd/item-receipts/delete-qbd-item-receipts.js +9 -1
  384. package/tools/qbd/item-receipts/delete-qbd-item-receipts.js.map +1 -1
  385. package/tools/qbd/item-receipts/delete-qbd-item-receipts.mjs +11 -3
  386. package/tools/qbd/item-receipts/delete-qbd-item-receipts.mjs.map +1 -1
  387. package/tools/qbd/item-sites/retrieve-qbd-item-sites.d.mts.map +1 -1
  388. package/tools/qbd/item-sites/retrieve-qbd-item-sites.d.ts.map +1 -1
  389. package/tools/qbd/item-sites/retrieve-qbd-item-sites.js +9 -1
  390. package/tools/qbd/item-sites/retrieve-qbd-item-sites.js.map +1 -1
  391. package/tools/qbd/item-sites/retrieve-qbd-item-sites.mjs +11 -3
  392. package/tools/qbd/item-sites/retrieve-qbd-item-sites.mjs.map +1 -1
  393. package/tools/qbd/journal-entries/delete-qbd-journal-entries.d.mts.map +1 -1
  394. package/tools/qbd/journal-entries/delete-qbd-journal-entries.d.ts.map +1 -1
  395. package/tools/qbd/journal-entries/delete-qbd-journal-entries.js +9 -1
  396. package/tools/qbd/journal-entries/delete-qbd-journal-entries.js.map +1 -1
  397. package/tools/qbd/journal-entries/delete-qbd-journal-entries.mjs +11 -3
  398. package/tools/qbd/journal-entries/delete-qbd-journal-entries.mjs.map +1 -1
  399. package/tools/qbd/other-names/retrieve-qbd-other-names.d.mts.map +1 -1
  400. package/tools/qbd/other-names/retrieve-qbd-other-names.d.ts.map +1 -1
  401. package/tools/qbd/other-names/retrieve-qbd-other-names.js +9 -1
  402. package/tools/qbd/other-names/retrieve-qbd-other-names.js.map +1 -1
  403. package/tools/qbd/other-names/retrieve-qbd-other-names.mjs +11 -3
  404. package/tools/qbd/other-names/retrieve-qbd-other-names.mjs.map +1 -1
  405. package/tools/qbd/payment-methods/create-qbd-payment-methods.d.mts.map +1 -1
  406. package/tools/qbd/payment-methods/create-qbd-payment-methods.d.ts.map +1 -1
  407. package/tools/qbd/payment-methods/create-qbd-payment-methods.js +9 -1
  408. package/tools/qbd/payment-methods/create-qbd-payment-methods.js.map +1 -1
  409. package/tools/qbd/payment-methods/create-qbd-payment-methods.mjs +11 -3
  410. package/tools/qbd/payment-methods/create-qbd-payment-methods.mjs.map +1 -1
  411. package/tools/qbd/payment-methods/list-qbd-payment-methods.d.mts.map +1 -1
  412. package/tools/qbd/payment-methods/list-qbd-payment-methods.d.ts.map +1 -1
  413. package/tools/qbd/payment-methods/list-qbd-payment-methods.js +9 -1
  414. package/tools/qbd/payment-methods/list-qbd-payment-methods.js.map +1 -1
  415. package/tools/qbd/payment-methods/list-qbd-payment-methods.mjs +11 -3
  416. package/tools/qbd/payment-methods/list-qbd-payment-methods.mjs.map +1 -1
  417. package/tools/qbd/payment-methods/retrieve-qbd-payment-methods.d.mts.map +1 -1
  418. package/tools/qbd/payment-methods/retrieve-qbd-payment-methods.d.ts.map +1 -1
  419. package/tools/qbd/payment-methods/retrieve-qbd-payment-methods.js +9 -1
  420. package/tools/qbd/payment-methods/retrieve-qbd-payment-methods.js.map +1 -1
  421. package/tools/qbd/payment-methods/retrieve-qbd-payment-methods.mjs +11 -3
  422. package/tools/qbd/payment-methods/retrieve-qbd-payment-methods.mjs.map +1 -1
  423. package/tools/qbd/payroll-wage-items/create-qbd-payroll-wage-items.d.mts.map +1 -1
  424. package/tools/qbd/payroll-wage-items/create-qbd-payroll-wage-items.d.ts.map +1 -1
  425. package/tools/qbd/payroll-wage-items/create-qbd-payroll-wage-items.js +9 -1
  426. package/tools/qbd/payroll-wage-items/create-qbd-payroll-wage-items.js.map +1 -1
  427. package/tools/qbd/payroll-wage-items/create-qbd-payroll-wage-items.mjs +11 -3
  428. package/tools/qbd/payroll-wage-items/create-qbd-payroll-wage-items.mjs.map +1 -1
  429. package/tools/qbd/payroll-wage-items/list-qbd-payroll-wage-items.d.mts.map +1 -1
  430. package/tools/qbd/payroll-wage-items/list-qbd-payroll-wage-items.d.ts.map +1 -1
  431. package/tools/qbd/payroll-wage-items/list-qbd-payroll-wage-items.js +9 -1
  432. package/tools/qbd/payroll-wage-items/list-qbd-payroll-wage-items.js.map +1 -1
  433. package/tools/qbd/payroll-wage-items/list-qbd-payroll-wage-items.mjs +11 -3
  434. package/tools/qbd/payroll-wage-items/list-qbd-payroll-wage-items.mjs.map +1 -1
  435. package/tools/qbd/payroll-wage-items/retrieve-qbd-payroll-wage-items.d.mts.map +1 -1
  436. package/tools/qbd/payroll-wage-items/retrieve-qbd-payroll-wage-items.d.ts.map +1 -1
  437. package/tools/qbd/payroll-wage-items/retrieve-qbd-payroll-wage-items.js +9 -1
  438. package/tools/qbd/payroll-wage-items/retrieve-qbd-payroll-wage-items.js.map +1 -1
  439. package/tools/qbd/payroll-wage-items/retrieve-qbd-payroll-wage-items.mjs +11 -3
  440. package/tools/qbd/payroll-wage-items/retrieve-qbd-payroll-wage-items.mjs.map +1 -1
  441. package/tools/qbd/price-levels/retrieve-qbd-price-levels.d.mts.map +1 -1
  442. package/tools/qbd/price-levels/retrieve-qbd-price-levels.d.ts.map +1 -1
  443. package/tools/qbd/price-levels/retrieve-qbd-price-levels.js +9 -1
  444. package/tools/qbd/price-levels/retrieve-qbd-price-levels.js.map +1 -1
  445. package/tools/qbd/price-levels/retrieve-qbd-price-levels.mjs +11 -3
  446. package/tools/qbd/price-levels/retrieve-qbd-price-levels.mjs.map +1 -1
  447. package/tools/qbd/purchase-orders/delete-qbd-purchase-orders.d.mts.map +1 -1
  448. package/tools/qbd/purchase-orders/delete-qbd-purchase-orders.d.ts.map +1 -1
  449. package/tools/qbd/purchase-orders/delete-qbd-purchase-orders.js +9 -1
  450. package/tools/qbd/purchase-orders/delete-qbd-purchase-orders.js.map +1 -1
  451. package/tools/qbd/purchase-orders/delete-qbd-purchase-orders.mjs +11 -3
  452. package/tools/qbd/purchase-orders/delete-qbd-purchase-orders.mjs.map +1 -1
  453. package/tools/qbd/receive-payments/delete-qbd-receive-payments.d.mts.map +1 -1
  454. package/tools/qbd/receive-payments/delete-qbd-receive-payments.d.ts.map +1 -1
  455. package/tools/qbd/receive-payments/delete-qbd-receive-payments.js +9 -1
  456. package/tools/qbd/receive-payments/delete-qbd-receive-payments.js.map +1 -1
  457. package/tools/qbd/receive-payments/delete-qbd-receive-payments.mjs +11 -3
  458. package/tools/qbd/receive-payments/delete-qbd-receive-payments.mjs.map +1 -1
  459. package/tools/qbd/sales-orders/delete-qbd-sales-orders.d.mts.map +1 -1
  460. package/tools/qbd/sales-orders/delete-qbd-sales-orders.d.ts.map +1 -1
  461. package/tools/qbd/sales-orders/delete-qbd-sales-orders.js +9 -1
  462. package/tools/qbd/sales-orders/delete-qbd-sales-orders.js.map +1 -1
  463. package/tools/qbd/sales-orders/delete-qbd-sales-orders.mjs +11 -3
  464. package/tools/qbd/sales-orders/delete-qbd-sales-orders.mjs.map +1 -1
  465. package/tools/qbd/sales-receipts/delete-qbd-sales-receipts.d.mts.map +1 -1
  466. package/tools/qbd/sales-receipts/delete-qbd-sales-receipts.d.ts.map +1 -1
  467. package/tools/qbd/sales-receipts/delete-qbd-sales-receipts.js +9 -1
  468. package/tools/qbd/sales-receipts/delete-qbd-sales-receipts.js.map +1 -1
  469. package/tools/qbd/sales-receipts/delete-qbd-sales-receipts.mjs +11 -3
  470. package/tools/qbd/sales-receipts/delete-qbd-sales-receipts.mjs.map +1 -1
  471. package/tools/qbd/sales-representatives/create-qbd-sales-representatives.d.mts.map +1 -1
  472. package/tools/qbd/sales-representatives/create-qbd-sales-representatives.d.ts.map +1 -1
  473. package/tools/qbd/sales-representatives/create-qbd-sales-representatives.js +9 -1
  474. package/tools/qbd/sales-representatives/create-qbd-sales-representatives.js.map +1 -1
  475. package/tools/qbd/sales-representatives/create-qbd-sales-representatives.mjs +11 -3
  476. package/tools/qbd/sales-representatives/create-qbd-sales-representatives.mjs.map +1 -1
  477. package/tools/qbd/sales-representatives/list-qbd-sales-representatives.d.mts.map +1 -1
  478. package/tools/qbd/sales-representatives/list-qbd-sales-representatives.d.ts.map +1 -1
  479. package/tools/qbd/sales-representatives/list-qbd-sales-representatives.js +9 -1
  480. package/tools/qbd/sales-representatives/list-qbd-sales-representatives.js.map +1 -1
  481. package/tools/qbd/sales-representatives/list-qbd-sales-representatives.mjs +11 -3
  482. package/tools/qbd/sales-representatives/list-qbd-sales-representatives.mjs.map +1 -1
  483. package/tools/qbd/sales-representatives/retrieve-qbd-sales-representatives.d.mts.map +1 -1
  484. package/tools/qbd/sales-representatives/retrieve-qbd-sales-representatives.d.ts.map +1 -1
  485. package/tools/qbd/sales-representatives/retrieve-qbd-sales-representatives.js +9 -1
  486. package/tools/qbd/sales-representatives/retrieve-qbd-sales-representatives.js.map +1 -1
  487. package/tools/qbd/sales-representatives/retrieve-qbd-sales-representatives.mjs +11 -3
  488. package/tools/qbd/sales-representatives/retrieve-qbd-sales-representatives.mjs.map +1 -1
  489. package/tools/qbd/sales-representatives/update-qbd-sales-representatives.d.mts.map +1 -1
  490. package/tools/qbd/sales-representatives/update-qbd-sales-representatives.d.ts.map +1 -1
  491. package/tools/qbd/sales-representatives/update-qbd-sales-representatives.js +9 -1
  492. package/tools/qbd/sales-representatives/update-qbd-sales-representatives.js.map +1 -1
  493. package/tools/qbd/sales-representatives/update-qbd-sales-representatives.mjs +11 -3
  494. package/tools/qbd/sales-representatives/update-qbd-sales-representatives.mjs.map +1 -1
  495. package/tools/qbd/sales-tax-codes/create-qbd-sales-tax-codes.d.mts.map +1 -1
  496. package/tools/qbd/sales-tax-codes/create-qbd-sales-tax-codes.d.ts.map +1 -1
  497. package/tools/qbd/sales-tax-codes/create-qbd-sales-tax-codes.js +9 -1
  498. package/tools/qbd/sales-tax-codes/create-qbd-sales-tax-codes.js.map +1 -1
  499. package/tools/qbd/sales-tax-codes/create-qbd-sales-tax-codes.mjs +11 -3
  500. package/tools/qbd/sales-tax-codes/create-qbd-sales-tax-codes.mjs.map +1 -1
  501. package/tools/qbd/sales-tax-codes/list-qbd-sales-tax-codes.d.mts.map +1 -1
  502. package/tools/qbd/sales-tax-codes/list-qbd-sales-tax-codes.d.ts.map +1 -1
  503. package/tools/qbd/sales-tax-codes/list-qbd-sales-tax-codes.js +9 -1
  504. package/tools/qbd/sales-tax-codes/list-qbd-sales-tax-codes.js.map +1 -1
  505. package/tools/qbd/sales-tax-codes/list-qbd-sales-tax-codes.mjs +11 -3
  506. package/tools/qbd/sales-tax-codes/list-qbd-sales-tax-codes.mjs.map +1 -1
  507. package/tools/qbd/sales-tax-codes/retrieve-qbd-sales-tax-codes.d.mts.map +1 -1
  508. package/tools/qbd/sales-tax-codes/retrieve-qbd-sales-tax-codes.d.ts.map +1 -1
  509. package/tools/qbd/sales-tax-codes/retrieve-qbd-sales-tax-codes.js +9 -1
  510. package/tools/qbd/sales-tax-codes/retrieve-qbd-sales-tax-codes.js.map +1 -1
  511. package/tools/qbd/sales-tax-codes/retrieve-qbd-sales-tax-codes.mjs +11 -3
  512. package/tools/qbd/sales-tax-codes/retrieve-qbd-sales-tax-codes.mjs.map +1 -1
  513. package/tools/qbd/sales-tax-codes/update-qbd-sales-tax-codes.d.mts.map +1 -1
  514. package/tools/qbd/sales-tax-codes/update-qbd-sales-tax-codes.d.ts.map +1 -1
  515. package/tools/qbd/sales-tax-codes/update-qbd-sales-tax-codes.js +9 -1
  516. package/tools/qbd/sales-tax-codes/update-qbd-sales-tax-codes.js.map +1 -1
  517. package/tools/qbd/sales-tax-codes/update-qbd-sales-tax-codes.mjs +11 -3
  518. package/tools/qbd/sales-tax-codes/update-qbd-sales-tax-codes.mjs.map +1 -1
  519. package/tools/qbd/sales-tax-items/retrieve-qbd-sales-tax-items.d.mts.map +1 -1
  520. package/tools/qbd/sales-tax-items/retrieve-qbd-sales-tax-items.d.ts.map +1 -1
  521. package/tools/qbd/sales-tax-items/retrieve-qbd-sales-tax-items.js +9 -1
  522. package/tools/qbd/sales-tax-items/retrieve-qbd-sales-tax-items.js.map +1 -1
  523. package/tools/qbd/sales-tax-items/retrieve-qbd-sales-tax-items.mjs +11 -3
  524. package/tools/qbd/sales-tax-items/retrieve-qbd-sales-tax-items.mjs.map +1 -1
  525. package/tools/qbd/standard-terms/create-qbd-standard-terms.d.mts.map +1 -1
  526. package/tools/qbd/standard-terms/create-qbd-standard-terms.d.ts.map +1 -1
  527. package/tools/qbd/standard-terms/create-qbd-standard-terms.js +9 -1
  528. package/tools/qbd/standard-terms/create-qbd-standard-terms.js.map +1 -1
  529. package/tools/qbd/standard-terms/create-qbd-standard-terms.mjs +11 -3
  530. package/tools/qbd/standard-terms/create-qbd-standard-terms.mjs.map +1 -1
  531. package/tools/qbd/standard-terms/list-qbd-standard-terms.d.mts.map +1 -1
  532. package/tools/qbd/standard-terms/list-qbd-standard-terms.d.ts.map +1 -1
  533. package/tools/qbd/standard-terms/list-qbd-standard-terms.js +9 -1
  534. package/tools/qbd/standard-terms/list-qbd-standard-terms.js.map +1 -1
  535. package/tools/qbd/standard-terms/list-qbd-standard-terms.mjs +11 -3
  536. package/tools/qbd/standard-terms/list-qbd-standard-terms.mjs.map +1 -1
  537. package/tools/qbd/standard-terms/retrieve-qbd-standard-terms.d.mts.map +1 -1
  538. package/tools/qbd/standard-terms/retrieve-qbd-standard-terms.d.ts.map +1 -1
  539. package/tools/qbd/standard-terms/retrieve-qbd-standard-terms.js +9 -1
  540. package/tools/qbd/standard-terms/retrieve-qbd-standard-terms.js.map +1 -1
  541. package/tools/qbd/standard-terms/retrieve-qbd-standard-terms.mjs +11 -3
  542. package/tools/qbd/standard-terms/retrieve-qbd-standard-terms.mjs.map +1 -1
  543. package/tools/qbd/subtotal-items/create-qbd-subtotal-items.d.mts.map +1 -1
  544. package/tools/qbd/subtotal-items/create-qbd-subtotal-items.d.ts.map +1 -1
  545. package/tools/qbd/subtotal-items/create-qbd-subtotal-items.js +9 -1
  546. package/tools/qbd/subtotal-items/create-qbd-subtotal-items.js.map +1 -1
  547. package/tools/qbd/subtotal-items/create-qbd-subtotal-items.mjs +11 -3
  548. package/tools/qbd/subtotal-items/create-qbd-subtotal-items.mjs.map +1 -1
  549. package/tools/qbd/subtotal-items/retrieve-qbd-subtotal-items.d.mts.map +1 -1
  550. package/tools/qbd/subtotal-items/retrieve-qbd-subtotal-items.d.ts.map +1 -1
  551. package/tools/qbd/subtotal-items/retrieve-qbd-subtotal-items.js +9 -1
  552. package/tools/qbd/subtotal-items/retrieve-qbd-subtotal-items.js.map +1 -1
  553. package/tools/qbd/subtotal-items/retrieve-qbd-subtotal-items.mjs +11 -3
  554. package/tools/qbd/subtotal-items/retrieve-qbd-subtotal-items.mjs.map +1 -1
  555. package/tools/qbd/subtotal-items/update-qbd-subtotal-items.d.mts.map +1 -1
  556. package/tools/qbd/subtotal-items/update-qbd-subtotal-items.d.ts.map +1 -1
  557. package/tools/qbd/subtotal-items/update-qbd-subtotal-items.js +9 -1
  558. package/tools/qbd/subtotal-items/update-qbd-subtotal-items.js.map +1 -1
  559. package/tools/qbd/subtotal-items/update-qbd-subtotal-items.mjs +11 -3
  560. package/tools/qbd/subtotal-items/update-qbd-subtotal-items.mjs.map +1 -1
  561. package/tools/qbd/templates/list-qbd-templates.d.mts.map +1 -1
  562. package/tools/qbd/templates/list-qbd-templates.d.ts.map +1 -1
  563. package/tools/qbd/templates/list-qbd-templates.js +9 -1
  564. package/tools/qbd/templates/list-qbd-templates.js.map +1 -1
  565. package/tools/qbd/templates/list-qbd-templates.mjs +11 -3
  566. package/tools/qbd/templates/list-qbd-templates.mjs.map +1 -1
  567. package/tools/qbd/time-tracking-activities/delete-qbd-time-tracking-activities.d.mts.map +1 -1
  568. package/tools/qbd/time-tracking-activities/delete-qbd-time-tracking-activities.d.ts.map +1 -1
  569. package/tools/qbd/time-tracking-activities/delete-qbd-time-tracking-activities.js +9 -1
  570. package/tools/qbd/time-tracking-activities/delete-qbd-time-tracking-activities.js.map +1 -1
  571. package/tools/qbd/time-tracking-activities/delete-qbd-time-tracking-activities.mjs +11 -3
  572. package/tools/qbd/time-tracking-activities/delete-qbd-time-tracking-activities.mjs.map +1 -1
  573. package/tools/qbd/time-tracking-activities/retrieve-qbd-time-tracking-activities.d.mts.map +1 -1
  574. package/tools/qbd/time-tracking-activities/retrieve-qbd-time-tracking-activities.d.ts.map +1 -1
  575. package/tools/qbd/time-tracking-activities/retrieve-qbd-time-tracking-activities.js +9 -1
  576. package/tools/qbd/time-tracking-activities/retrieve-qbd-time-tracking-activities.js.map +1 -1
  577. package/tools/qbd/time-tracking-activities/retrieve-qbd-time-tracking-activities.mjs +11 -3
  578. package/tools/qbd/time-tracking-activities/retrieve-qbd-time-tracking-activities.mjs.map +1 -1
  579. package/tools/qbd/transactions/retrieve-qbd-transactions.d.mts.map +1 -1
  580. package/tools/qbd/transactions/retrieve-qbd-transactions.d.ts.map +1 -1
  581. package/tools/qbd/transactions/retrieve-qbd-transactions.js +9 -1
  582. package/tools/qbd/transactions/retrieve-qbd-transactions.js.map +1 -1
  583. package/tools/qbd/transactions/retrieve-qbd-transactions.mjs +11 -3
  584. package/tools/qbd/transactions/retrieve-qbd-transactions.mjs.map +1 -1
  585. package/tools/qbd/transfers/create-qbd-transfers.d.mts.map +1 -1
  586. package/tools/qbd/transfers/create-qbd-transfers.d.ts.map +1 -1
  587. package/tools/qbd/transfers/create-qbd-transfers.js +9 -1
  588. package/tools/qbd/transfers/create-qbd-transfers.js.map +1 -1
  589. package/tools/qbd/transfers/create-qbd-transfers.mjs +11 -3
  590. package/tools/qbd/transfers/create-qbd-transfers.mjs.map +1 -1
  591. package/tools/qbd/transfers/retrieve-qbd-transfers.d.mts.map +1 -1
  592. package/tools/qbd/transfers/retrieve-qbd-transfers.d.ts.map +1 -1
  593. package/tools/qbd/transfers/retrieve-qbd-transfers.js +9 -1
  594. package/tools/qbd/transfers/retrieve-qbd-transfers.js.map +1 -1
  595. package/tools/qbd/transfers/retrieve-qbd-transfers.mjs +11 -3
  596. package/tools/qbd/transfers/retrieve-qbd-transfers.mjs.map +1 -1
  597. package/tools/qbd/transfers/update-qbd-transfers.d.mts.map +1 -1
  598. package/tools/qbd/transfers/update-qbd-transfers.d.ts.map +1 -1
  599. package/tools/qbd/transfers/update-qbd-transfers.js +9 -1
  600. package/tools/qbd/transfers/update-qbd-transfers.js.map +1 -1
  601. package/tools/qbd/transfers/update-qbd-transfers.mjs +11 -3
  602. package/tools/qbd/transfers/update-qbd-transfers.mjs.map +1 -1
  603. package/tools/qbd/unit-of-measure-sets/retrieve-qbd-unit-of-measure-sets.d.mts.map +1 -1
  604. package/tools/qbd/unit-of-measure-sets/retrieve-qbd-unit-of-measure-sets.d.ts.map +1 -1
  605. package/tools/qbd/unit-of-measure-sets/retrieve-qbd-unit-of-measure-sets.js +9 -1
  606. package/tools/qbd/unit-of-measure-sets/retrieve-qbd-unit-of-measure-sets.js.map +1 -1
  607. package/tools/qbd/unit-of-measure-sets/retrieve-qbd-unit-of-measure-sets.mjs +11 -3
  608. package/tools/qbd/unit-of-measure-sets/retrieve-qbd-unit-of-measure-sets.mjs.map +1 -1
  609. package/tools/qbd/vendor-credits/delete-qbd-vendor-credits.d.mts.map +1 -1
  610. package/tools/qbd/vendor-credits/delete-qbd-vendor-credits.d.ts.map +1 -1
  611. package/tools/qbd/vendor-credits/delete-qbd-vendor-credits.js +9 -1
  612. package/tools/qbd/vendor-credits/delete-qbd-vendor-credits.js.map +1 -1
  613. package/tools/qbd/vendor-credits/delete-qbd-vendor-credits.mjs +11 -3
  614. package/tools/qbd/vendor-credits/delete-qbd-vendor-credits.mjs.map +1 -1
  615. package/tools/types.d.mts +1 -0
  616. package/tools/types.d.mts.map +1 -1
  617. package/tools/types.d.ts +1 -0
  618. package/tools/types.d.ts.map +1 -1
  619. package/tools/types.js +12 -0
  620. package/tools/types.js.map +1 -1
  621. package/tools/types.mjs +11 -0
  622. package/tools/types.mjs.map +1 -1
@@ -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
- ${code}
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
  };
@@ -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,GAAG,KAAK,EAAE,GAAY,EAAqB,EAAE;IACtD,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,CAAC,MAAM,GAAG,CAAC,IAAI,EAAE,CAAgB,CAAC;IACzD,MAAM,SAAS,GAAG,IAAI,SAAS,CAAC;QAC9B,GAAG,IAAI;KACR,CAAC,CAAC;IAEH,MAAM,QAAQ,GAAa,EAAE,CAAC;IAC9B,MAAM,QAAQ,GAAa,EAAE,CAAC;IAC9B,MAAM,OAAO,GAAG;QACd,GAAG,EAAE,CAAC,GAAG,IAAe,EAAE,EAAE;YAC1B,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC;QACtC,CAAC;QACD,KAAK,EAAE,CAAC,GAAG,IAAe,EAAE,EAAE;YAC5B,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC;QACtC,CAAC;KACF,CAAC;IACF,IAAI,CAAC;QACH,IAAI,IAAI,GAAG,KAAK,EAAE,SAAc,EAAE,EAAE,GAAE,CAAC,CAAC;QACxC,IAAI,CAAC;QACD,IAAI;;KAEP,CAAC,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,CAAC;QACrC,OAAO,QAAQ,CAAC,IAAI,CAAC;YACn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GED
@@ -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 it's own tool, which uses up too many tokens for LLMs to use at once,
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
  *
@@ -1 +1 @@
1
- {"version":3,"file":"code-tool.d.mts","sourceRoot":"","sources":["src/code-tool.ts"],"names":[],"mappings":"OAKO,EAAE,QAAQ,EAA0B;AAM3C;;;;;;;;GAQG;AACH,wBAAsB,QAAQ,IAAI,OAAO,CAAC,QAAQ,CAAC,CA6HlD"}
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 it's own tool, which uses up too many tokens for LLMs to use at once,
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
  *
@@ -1 +1 @@
1
- {"version":3,"file":"code-tool.d.ts","sourceRoot":"","sources":["src/code-tool.ts"],"names":[],"mappings":"OAKO,EAAE,QAAQ,EAA0B;AAM3C;;;;;;;;GAQG;AACH,wBAAsB,QAAQ,IAAI,OAAO,CAAC,QAAQ,CAAC,CA6HlD"}
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 it's own tool, which uses up too many tokens for LLMs to use at once,
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 Typescript code to interact with the API.\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, and it will be run.\nDo not initialize a client, but instead use the client that you are given as a parameter.\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.',
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 !== null && err !== undefined) {
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 === null ? null
122
- : result === undefined ? null
123
- : {
124
- type: 'text',
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
- throw new Error(message);
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoBtF,4BA6HC;AA/ID,yCAAoC;AACpC,uCAAyC;AAQzC;;;;;;;;GAQG;AACI,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,WA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,CAAC;qBAC1B,CAAC;gBACN,MAAM,SAAS,GACb,QAAQ,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC;oBACrB,IAAI;oBACN,CAAC,CAAC;wBACE,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,iBAAiB,GAAG,QAAQ,CAAC,IAAI,CAAC,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 it's own tool, which uses up too many tokens for LLMs to use at once,
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 Typescript code to interact with the API.\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, and it will be run.\nDo not initialize a client, but instead use the client that you are given as a parameter.\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.',
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 !== null && err !== undefined) {
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 === null ? null
86
- : result === undefined ? null
87
- : {
88
- type: 'text',
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
- throw new Error(message);
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,khCAAkhC;QACphC,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,UAAU,EAAE,GAAG,MAAM,MAAM,CAAC,uBAAuB,CAAC,CAAC;IAE7D,MAAM,OAAO,GAAG,KAAK,EAAE,SAAoB,EAAE,IAAa,EAAE,EAAE;QAC5D,MAAM,eAAe,GAAG,IAAI,GAAG,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC;QAC5D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AAC,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"}
@@ -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 it's own tool, which uses up too many tokens for LLMs to use at once,
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
  *
@@ -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 it's own tool, which uses up too many tokens for LLMs to use at once,
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 it's own tool, which uses up too many tokens for LLMs to use at once,
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 it's own tool, which uses up too many tokens for LLMs to use at once,
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
@@ -1,2 +1,3 @@
1
1
  export declare function maybeFilter(jqFilter: unknown | undefined, response: any): Promise<any>;
2
+ export declare function isJqError(error: any): error is Error;
2
3
  //# sourceMappingURL=filtering.d.mts.map
@@ -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
@@ -1,2 +1,3 @@
1
1
  export declare function maybeFilter(jqFilter: unknown | undefined, response: any): Promise<any>;
2
+ export declare function isJqError(error: any): error is Error;
2
3
  //# sourceMappingURL=filtering.d.ts.map
@@ -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"}