conductor-node 11.10.1 → 12.0.0-beta.1

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 (510) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/LICENSE +201 -21
  3. package/README.md +330 -63
  4. package/_shims/MultipartBody.d.ts +9 -0
  5. package/_shims/MultipartBody.d.ts.map +1 -0
  6. package/_shims/MultipartBody.js +16 -0
  7. package/_shims/MultipartBody.js.map +1 -0
  8. package/_shims/MultipartBody.mjs +12 -0
  9. package/_shims/MultipartBody.mjs.map +1 -0
  10. package/_shims/README.md +46 -0
  11. package/_shims/auto/runtime-bun.d.ts +5 -0
  12. package/_shims/auto/runtime-bun.d.ts.map +1 -0
  13. package/_shims/auto/runtime-bun.js +21 -0
  14. package/_shims/auto/runtime-bun.js.map +1 -0
  15. package/_shims/auto/runtime-bun.mjs +2 -0
  16. package/_shims/auto/runtime-bun.mjs.map +1 -0
  17. package/_shims/auto/runtime-node.d.ts +5 -0
  18. package/_shims/auto/runtime-node.d.ts.map +1 -0
  19. package/_shims/auto/runtime-node.js +21 -0
  20. package/_shims/auto/runtime-node.js.map +1 -0
  21. package/_shims/auto/runtime-node.mjs +2 -0
  22. package/_shims/auto/runtime-node.mjs.map +1 -0
  23. package/_shims/auto/runtime.d.ts +5 -0
  24. package/_shims/auto/runtime.d.ts.map +1 -0
  25. package/_shims/auto/runtime.js +21 -0
  26. package/_shims/auto/runtime.js.map +1 -0
  27. package/_shims/auto/runtime.mjs +2 -0
  28. package/_shims/auto/runtime.mjs.map +1 -0
  29. package/_shims/auto/types-node.d.ts +5 -0
  30. package/_shims/auto/types-node.d.ts.map +1 -0
  31. package/_shims/auto/types-node.js +21 -0
  32. package/_shims/auto/types-node.js.map +1 -0
  33. package/_shims/auto/types-node.mjs +2 -0
  34. package/_shims/auto/types-node.mjs.map +1 -0
  35. package/_shims/auto/types.d.ts +101 -0
  36. package/_shims/auto/types.js +3 -0
  37. package/_shims/auto/types.mjs +3 -0
  38. package/_shims/bun-runtime.d.ts +6 -0
  39. package/_shims/bun-runtime.d.ts.map +1 -0
  40. package/_shims/bun-runtime.js +14 -0
  41. package/_shims/bun-runtime.js.map +1 -0
  42. package/_shims/bun-runtime.mjs +10 -0
  43. package/_shims/bun-runtime.mjs.map +1 -0
  44. package/_shims/index.d.ts +81 -0
  45. package/_shims/index.js +13 -0
  46. package/_shims/index.mjs +7 -0
  47. package/_shims/manual-types.d.ts +12 -0
  48. package/_shims/manual-types.js +3 -0
  49. package/_shims/manual-types.mjs +3 -0
  50. package/_shims/node-runtime.d.ts +3 -0
  51. package/_shims/node-runtime.d.ts.map +1 -0
  52. package/_shims/node-runtime.js +89 -0
  53. package/_shims/node-runtime.js.map +1 -0
  54. package/_shims/node-runtime.mjs +56 -0
  55. package/_shims/node-runtime.mjs.map +1 -0
  56. package/_shims/node-types.d.ts +42 -0
  57. package/_shims/node-types.js +3 -0
  58. package/_shims/node-types.mjs +3 -0
  59. package/_shims/registry.d.ts +37 -0
  60. package/_shims/registry.d.ts.map +1 -0
  61. package/_shims/registry.js +41 -0
  62. package/_shims/registry.js.map +1 -0
  63. package/_shims/registry.mjs +37 -0
  64. package/_shims/registry.mjs.map +1 -0
  65. package/_shims/web-runtime.d.ts +5 -0
  66. package/_shims/web-runtime.d.ts.map +1 -0
  67. package/_shims/web-runtime.js +78 -0
  68. package/_shims/web-runtime.js.map +1 -0
  69. package/_shims/web-runtime.mjs +71 -0
  70. package/_shims/web-runtime.mjs.map +1 -0
  71. package/_shims/web-types.d.ts +83 -0
  72. package/_shims/web-types.js +3 -0
  73. package/_shims/web-types.mjs +3 -0
  74. package/core.d.ts +241 -0
  75. package/core.d.ts.map +1 -0
  76. package/core.js +914 -0
  77. package/core.js.map +1 -0
  78. package/core.mjs +882 -0
  79. package/core.mjs.map +1 -0
  80. package/error.d.ts +47 -0
  81. package/error.d.ts.map +1 -0
  82. package/error.js +113 -0
  83. package/error.js.map +1 -0
  84. package/error.mjs +97 -0
  85. package/error.mjs.map +1 -0
  86. package/index.d.mts +121 -0
  87. package/index.d.ts +121 -0
  88. package/index.d.ts.map +1 -0
  89. package/index.js +133 -0
  90. package/index.js.map +1 -0
  91. package/index.mjs +90 -0
  92. package/index.mjs.map +1 -0
  93. package/internal/qs/formats.d.ts +6 -0
  94. package/internal/qs/formats.d.ts.map +1 -0
  95. package/internal/qs/formats.js +11 -0
  96. package/internal/qs/formats.js.map +1 -0
  97. package/internal/qs/formats.mjs +8 -0
  98. package/internal/qs/formats.mjs.map +1 -0
  99. package/internal/qs/index.d.ts +10 -0
  100. package/internal/qs/index.d.ts.map +1 -0
  101. package/internal/qs/index.js +14 -0
  102. package/internal/qs/index.js.map +1 -0
  103. package/internal/qs/index.mjs +10 -0
  104. package/internal/qs/index.mjs.map +1 -0
  105. package/internal/qs/stringify.d.ts +3 -0
  106. package/internal/qs/stringify.d.ts.map +1 -0
  107. package/internal/qs/stringify.js +280 -0
  108. package/internal/qs/stringify.js.map +1 -0
  109. package/internal/qs/stringify.mjs +276 -0
  110. package/internal/qs/stringify.mjs.map +1 -0
  111. package/internal/qs/types.d.ts +57 -0
  112. package/internal/qs/types.d.ts.map +1 -0
  113. package/{dist/src/resources → internal/qs}/types.js +1 -0
  114. package/internal/qs/types.js.map +1 -0
  115. package/internal/qs/types.mjs +2 -0
  116. package/internal/qs/types.mjs.map +1 -0
  117. package/internal/qs/utils.d.ts +14 -0
  118. package/internal/qs/utils.d.ts.map +1 -0
  119. package/internal/qs/utils.js +229 -0
  120. package/internal/qs/utils.js.map +1 -0
  121. package/internal/qs/utils.mjs +217 -0
  122. package/internal/qs/utils.mjs.map +1 -0
  123. package/package.json +111 -35
  124. package/pagination.d.ts +18 -0
  125. package/pagination.d.ts.map +1 -0
  126. package/pagination.js +40 -0
  127. package/pagination.js.map +1 -0
  128. package/pagination.mjs +36 -0
  129. package/pagination.mjs.map +1 -0
  130. package/resource.d.ts +6 -0
  131. package/resource.d.ts.map +1 -0
  132. package/resource.js +11 -0
  133. package/resource.js.map +1 -0
  134. package/resource.mjs +7 -0
  135. package/resource.mjs.map +1 -0
  136. package/resources/auth-sessions.d.ts +79 -0
  137. package/resources/auth-sessions.d.ts.map +1 -0
  138. package/resources/auth-sessions.js +23 -0
  139. package/resources/auth-sessions.js.map +1 -0
  140. package/resources/auth-sessions.mjs +19 -0
  141. package/resources/auth-sessions.mjs.map +1 -0
  142. package/resources/end-users.d.ts +154 -0
  143. package/resources/end-users.d.ts.map +1 -0
  144. package/resources/end-users.js +48 -0
  145. package/resources/end-users.js.map +1 -0
  146. package/resources/end-users.mjs +44 -0
  147. package/resources/end-users.mjs.map +1 -0
  148. package/resources/index.d.ts +4 -0
  149. package/resources/index.d.ts.map +1 -0
  150. package/resources/index.js +11 -0
  151. package/resources/index.js.map +1 -0
  152. package/resources/index.mjs +5 -0
  153. package/resources/index.mjs.map +1 -0
  154. package/resources/qbd/accounts.d.ts +579 -0
  155. package/resources/qbd/accounts.d.ts.map +1 -0
  156. package/resources/qbd/accounts.js +54 -0
  157. package/resources/qbd/accounts.js.map +1 -0
  158. package/resources/qbd/accounts.mjs +50 -0
  159. package/resources/qbd/accounts.mjs.map +1 -0
  160. package/resources/qbd/bill-check-payments.d.ts +831 -0
  161. package/resources/qbd/bill-check-payments.d.ts.map +1 -0
  162. package/resources/qbd/bill-check-payments.js +70 -0
  163. package/resources/qbd/bill-check-payments.js.map +1 -0
  164. package/resources/qbd/bill-check-payments.mjs +65 -0
  165. package/resources/qbd/bill-check-payments.mjs.map +1 -0
  166. package/resources/qbd/bill-credit-card-payments.d.ts +641 -0
  167. package/resources/qbd/bill-credit-card-payments.d.ts.map +1 -0
  168. package/resources/qbd/bill-credit-card-payments.js +55 -0
  169. package/resources/qbd/bill-credit-card-payments.js.map +1 -0
  170. package/resources/qbd/bill-credit-card-payments.mjs +50 -0
  171. package/resources/qbd/bill-credit-card-payments.mjs.map +1 -0
  172. package/resources/qbd/bills.d.ts +2561 -0
  173. package/resources/qbd/bills.d.ts.map +1 -0
  174. package/resources/qbd/bills.js +69 -0
  175. package/resources/qbd/bills.js.map +1 -0
  176. package/resources/qbd/bills.mjs +64 -0
  177. package/resources/qbd/bills.mjs.map +1 -0
  178. package/resources/qbd/checks.d.ts +2528 -0
  179. package/resources/qbd/checks.d.ts.map +1 -0
  180. package/resources/qbd/checks.js +69 -0
  181. package/resources/qbd/checks.js.map +1 -0
  182. package/resources/qbd/checks.mjs +64 -0
  183. package/resources/qbd/checks.mjs.map +1 -0
  184. package/resources/qbd/classes.d.ts +289 -0
  185. package/resources/qbd/classes.d.ts.map +1 -0
  186. package/resources/qbd/classes.js +54 -0
  187. package/resources/qbd/classes.js.map +1 -0
  188. package/resources/qbd/classes.mjs +50 -0
  189. package/resources/qbd/classes.mjs.map +1 -0
  190. package/resources/qbd/credit-card-charges.d.ts +2236 -0
  191. package/resources/qbd/credit-card-charges.d.ts.map +1 -0
  192. package/resources/qbd/credit-card-charges.js +69 -0
  193. package/resources/qbd/credit-card-charges.js.map +1 -0
  194. package/resources/qbd/credit-card-charges.mjs +64 -0
  195. package/resources/qbd/credit-card-charges.mjs.map +1 -0
  196. package/resources/qbd/credit-card-credits.d.ts +2233 -0
  197. package/resources/qbd/credit-card-credits.d.ts.map +1 -0
  198. package/resources/qbd/credit-card-credits.js +69 -0
  199. package/resources/qbd/credit-card-credits.js.map +1 -0
  200. package/resources/qbd/credit-card-credits.mjs +64 -0
  201. package/resources/qbd/credit-card-credits.mjs.map +1 -0
  202. package/resources/qbd/credit-memos.d.ts +2649 -0
  203. package/resources/qbd/credit-memos.d.ts.map +1 -0
  204. package/resources/qbd/credit-memos.js +69 -0
  205. package/resources/qbd/credit-memos.js.map +1 -0
  206. package/resources/qbd/credit-memos.mjs +64 -0
  207. package/resources/qbd/credit-memos.mjs.map +1 -0
  208. package/resources/qbd/customers.d.ts +2106 -0
  209. package/resources/qbd/customers.d.ts.map +1 -0
  210. package/resources/qbd/customers.js +58 -0
  211. package/resources/qbd/customers.js.map +1 -0
  212. package/resources/qbd/customers.mjs +53 -0
  213. package/resources/qbd/customers.mjs.map +1 -0
  214. package/resources/qbd/date-driven-terms.d.ts +242 -0
  215. package/resources/qbd/date-driven-terms.d.ts.map +1 -0
  216. package/resources/qbd/date-driven-terms.js +43 -0
  217. package/resources/qbd/date-driven-terms.js.map +1 -0
  218. package/resources/qbd/date-driven-terms.mjs +39 -0
  219. package/resources/qbd/date-driven-terms.mjs.map +1 -0
  220. package/resources/qbd/discount-items.d.ts +576 -0
  221. package/resources/qbd/discount-items.d.ts.map +1 -0
  222. package/resources/qbd/discount-items.js +58 -0
  223. package/resources/qbd/discount-items.js.map +1 -0
  224. package/resources/qbd/discount-items.mjs +53 -0
  225. package/resources/qbd/discount-items.mjs.map +1 -0
  226. package/resources/qbd/employees.d.ts +1669 -0
  227. package/resources/qbd/employees.d.ts.map +1 -0
  228. package/resources/qbd/employees.js +58 -0
  229. package/resources/qbd/employees.js.map +1 -0
  230. package/resources/qbd/employees.mjs +53 -0
  231. package/resources/qbd/employees.mjs.map +1 -0
  232. package/resources/qbd/estimates.d.ts +2493 -0
  233. package/resources/qbd/estimates.d.ts.map +1 -0
  234. package/resources/qbd/estimates.js +69 -0
  235. package/resources/qbd/estimates.js.map +1 -0
  236. package/resources/qbd/estimates.mjs +64 -0
  237. package/resources/qbd/estimates.mjs.map +1 -0
  238. package/resources/qbd/index.d.ts +37 -0
  239. package/resources/qbd/index.d.ts.map +1 -0
  240. package/resources/qbd/index.js +105 -0
  241. package/resources/qbd/index.js.map +1 -0
  242. package/resources/qbd/index.mjs +38 -0
  243. package/resources/qbd/index.mjs.map +1 -0
  244. package/resources/qbd/inventory-adjustments.d.ts +814 -0
  245. package/resources/qbd/inventory-adjustments.d.ts.map +1 -0
  246. package/resources/qbd/inventory-adjustments.js +66 -0
  247. package/resources/qbd/inventory-adjustments.js.map +1 -0
  248. package/resources/qbd/inventory-adjustments.mjs +62 -0
  249. package/resources/qbd/inventory-adjustments.mjs.map +1 -0
  250. package/resources/qbd/inventory-assembly-items.d.ts +931 -0
  251. package/resources/qbd/inventory-assembly-items.d.ts.map +1 -0
  252. package/resources/qbd/inventory-assembly-items.js +54 -0
  253. package/resources/qbd/inventory-assembly-items.js.map +1 -0
  254. package/resources/qbd/inventory-assembly-items.mjs +49 -0
  255. package/resources/qbd/inventory-assembly-items.mjs.map +1 -0
  256. package/resources/qbd/inventory-items.d.ts +844 -0
  257. package/resources/qbd/inventory-items.d.ts.map +1 -0
  258. package/resources/qbd/inventory-items.js +58 -0
  259. package/resources/qbd/inventory-items.js.map +1 -0
  260. package/resources/qbd/inventory-items.mjs +53 -0
  261. package/resources/qbd/inventory-items.mjs.map +1 -0
  262. package/resources/qbd/inventory-sites.d.ts +477 -0
  263. package/resources/qbd/inventory-sites.d.ts.map +1 -0
  264. package/resources/qbd/inventory-sites.js +54 -0
  265. package/resources/qbd/inventory-sites.js.map +1 -0
  266. package/resources/qbd/inventory-sites.mjs +50 -0
  267. package/resources/qbd/inventory-sites.mjs.map +1 -0
  268. package/resources/qbd/invoices.d.ts +2873 -0
  269. package/resources/qbd/invoices.d.ts.map +1 -0
  270. package/resources/qbd/invoices.js +69 -0
  271. package/resources/qbd/invoices.js.map +1 -0
  272. package/resources/qbd/invoices.mjs +64 -0
  273. package/resources/qbd/invoices.mjs.map +1 -0
  274. package/resources/qbd/journal-entries.d.ts +856 -0
  275. package/resources/qbd/journal-entries.d.ts.map +1 -0
  276. package/resources/qbd/journal-entries.js +69 -0
  277. package/resources/qbd/journal-entries.js.map +1 -0
  278. package/resources/qbd/journal-entries.mjs +64 -0
  279. package/resources/qbd/journal-entries.mjs.map +1 -0
  280. package/resources/qbd/non-inventory-items.d.ts +950 -0
  281. package/resources/qbd/non-inventory-items.d.ts.map +1 -0
  282. package/resources/qbd/non-inventory-items.js +58 -0
  283. package/resources/qbd/non-inventory-items.js.map +1 -0
  284. package/resources/qbd/non-inventory-items.mjs +53 -0
  285. package/resources/qbd/non-inventory-items.mjs.map +1 -0
  286. package/resources/qbd/payroll-wage-items.d.ts +215 -0
  287. package/resources/qbd/payroll-wage-items.d.ts.map +1 -0
  288. package/resources/qbd/payroll-wage-items.js +47 -0
  289. package/resources/qbd/payroll-wage-items.js.map +1 -0
  290. package/resources/qbd/payroll-wage-items.mjs +42 -0
  291. package/resources/qbd/payroll-wage-items.mjs.map +1 -0
  292. package/resources/qbd/purchase-orders.d.ts +2554 -0
  293. package/resources/qbd/purchase-orders.d.ts.map +1 -0
  294. package/resources/qbd/purchase-orders.js +69 -0
  295. package/resources/qbd/purchase-orders.js.map +1 -0
  296. package/resources/qbd/purchase-orders.mjs +64 -0
  297. package/resources/qbd/purchase-orders.mjs.map +1 -0
  298. package/resources/qbd/qbd.d.ts +146 -0
  299. package/resources/qbd/qbd.d.ts.map +1 -0
  300. package/resources/qbd/qbd.js +202 -0
  301. package/resources/qbd/qbd.js.map +1 -0
  302. package/resources/qbd/qbd.mjs +175 -0
  303. package/resources/qbd/qbd.mjs.map +1 -0
  304. package/resources/qbd/receive-payments.d.ts +1282 -0
  305. package/resources/qbd/receive-payments.d.ts.map +1 -0
  306. package/resources/qbd/receive-payments.js +70 -0
  307. package/resources/qbd/receive-payments.js.map +1 -0
  308. package/resources/qbd/receive-payments.mjs +65 -0
  309. package/resources/qbd/receive-payments.mjs.map +1 -0
  310. package/resources/qbd/sales-orders.d.ts +2628 -0
  311. package/resources/qbd/sales-orders.d.ts.map +1 -0
  312. package/resources/qbd/sales-orders.js +69 -0
  313. package/resources/qbd/sales-orders.js.map +1 -0
  314. package/resources/qbd/sales-orders.mjs +64 -0
  315. package/resources/qbd/sales-orders.mjs.map +1 -0
  316. package/resources/qbd/sales-receipts.d.ts +3373 -0
  317. package/resources/qbd/sales-receipts.d.ts.map +1 -0
  318. package/resources/qbd/sales-receipts.js +69 -0
  319. package/resources/qbd/sales-receipts.js.map +1 -0
  320. package/resources/qbd/sales-receipts.mjs +64 -0
  321. package/resources/qbd/sales-receipts.mjs.map +1 -0
  322. package/resources/qbd/sales-representatives.d.ts +251 -0
  323. package/resources/qbd/sales-representatives.d.ts.map +1 -0
  324. package/resources/qbd/sales-representatives.js +54 -0
  325. package/resources/qbd/sales-representatives.js.map +1 -0
  326. package/resources/qbd/sales-representatives.mjs +50 -0
  327. package/resources/qbd/sales-representatives.mjs.map +1 -0
  328. package/resources/qbd/sales-tax-codes.d.ts +306 -0
  329. package/resources/qbd/sales-tax-codes.d.ts.map +1 -0
  330. package/resources/qbd/sales-tax-codes.js +54 -0
  331. package/resources/qbd/sales-tax-codes.js.map +1 -0
  332. package/resources/qbd/sales-tax-codes.mjs +50 -0
  333. package/resources/qbd/sales-tax-codes.mjs.map +1 -0
  334. package/resources/qbd/sales-tax-items.d.ts +458 -0
  335. package/resources/qbd/sales-tax-items.d.ts.map +1 -0
  336. package/resources/qbd/sales-tax-items.js +58 -0
  337. package/resources/qbd/sales-tax-items.js.map +1 -0
  338. package/resources/qbd/sales-tax-items.mjs +53 -0
  339. package/resources/qbd/sales-tax-items.mjs.map +1 -0
  340. package/resources/qbd/service-items.d.ts +923 -0
  341. package/resources/qbd/service-items.d.ts.map +1 -0
  342. package/resources/qbd/service-items.js +58 -0
  343. package/resources/qbd/service-items.js.map +1 -0
  344. package/resources/qbd/service-items.mjs +53 -0
  345. package/resources/qbd/service-items.mjs.map +1 -0
  346. package/resources/qbd/standard-terms.d.ts +225 -0
  347. package/resources/qbd/standard-terms.d.ts.map +1 -0
  348. package/resources/qbd/standard-terms.js +43 -0
  349. package/resources/qbd/standard-terms.js.map +1 -0
  350. package/resources/qbd/standard-terms.mjs +39 -0
  351. package/resources/qbd/standard-terms.mjs.map +1 -0
  352. package/resources/qbd/subtotal-items.d.ts +323 -0
  353. package/resources/qbd/subtotal-items.d.ts.map +1 -0
  354. package/resources/qbd/subtotal-items.js +58 -0
  355. package/resources/qbd/subtotal-items.js.map +1 -0
  356. package/resources/qbd/subtotal-items.mjs +53 -0
  357. package/resources/qbd/subtotal-items.mjs.map +1 -0
  358. package/resources/qbd/transfers.d.ts +269 -0
  359. package/resources/qbd/transfers.d.ts.map +1 -0
  360. package/resources/qbd/transfers.js +58 -0
  361. package/resources/qbd/transfers.js.map +1 -0
  362. package/resources/qbd/transfers.mjs +53 -0
  363. package/resources/qbd/transfers.mjs.map +1 -0
  364. package/resources/qbd/vendor-credits.d.ts +2298 -0
  365. package/resources/qbd/vendor-credits.d.ts.map +1 -0
  366. package/resources/qbd/vendor-credits.js +69 -0
  367. package/resources/qbd/vendor-credits.js.map +1 -0
  368. package/resources/qbd/vendor-credits.mjs +64 -0
  369. package/resources/qbd/vendor-credits.mjs.map +1 -0
  370. package/resources/qbd/vendors.d.ts +1677 -0
  371. package/resources/qbd/vendors.d.ts.map +1 -0
  372. package/resources/qbd/vendors.js +58 -0
  373. package/resources/qbd/vendors.js.map +1 -0
  374. package/resources/qbd/vendors.mjs +53 -0
  375. package/resources/qbd/vendors.mjs.map +1 -0
  376. package/shims/node.d.ts +30 -0
  377. package/shims/node.d.ts.map +1 -0
  378. package/shims/node.js +31 -0
  379. package/shims/node.js.map +1 -0
  380. package/shims/node.mjs +5 -0
  381. package/shims/node.mjs.map +1 -0
  382. package/shims/web.d.ts +26 -0
  383. package/shims/web.d.ts.map +1 -0
  384. package/shims/web.js +31 -0
  385. package/shims/web.js.map +1 -0
  386. package/shims/web.mjs +5 -0
  387. package/shims/web.mjs.map +1 -0
  388. package/src/_shims/MultipartBody.ts +9 -0
  389. package/src/_shims/README.md +46 -0
  390. package/src/_shims/auto/runtime-bun.ts +4 -0
  391. package/src/_shims/auto/runtime-node.ts +4 -0
  392. package/src/_shims/auto/runtime.ts +4 -0
  393. package/src/_shims/auto/types-node.ts +4 -0
  394. package/src/_shims/auto/types.d.ts +101 -0
  395. package/src/_shims/auto/types.js +3 -0
  396. package/src/_shims/auto/types.mjs +3 -0
  397. package/src/_shims/bun-runtime.ts +14 -0
  398. package/src/_shims/index.d.ts +81 -0
  399. package/src/_shims/index.js +13 -0
  400. package/src/_shims/index.mjs +7 -0
  401. package/src/_shims/manual-types.d.ts +12 -0
  402. package/src/_shims/manual-types.js +3 -0
  403. package/src/_shims/manual-types.mjs +3 -0
  404. package/src/_shims/node-runtime.ts +81 -0
  405. package/src/_shims/node-types.d.ts +42 -0
  406. package/src/_shims/node-types.js +3 -0
  407. package/src/_shims/node-types.mjs +3 -0
  408. package/src/_shims/registry.ts +67 -0
  409. package/src/_shims/web-runtime.ts +103 -0
  410. package/src/_shims/web-types.d.ts +83 -0
  411. package/src/_shims/web-types.js +3 -0
  412. package/src/_shims/web-types.mjs +3 -0
  413. package/src/core.ts +1208 -0
  414. package/src/error.ts +130 -0
  415. package/src/index.ts +227 -0
  416. package/src/internal/qs/LICENSE.md +13 -0
  417. package/src/internal/qs/README.md +3 -0
  418. package/src/internal/qs/formats.ts +9 -0
  419. package/src/internal/qs/index.ts +13 -0
  420. package/src/internal/qs/stringify.ts +388 -0
  421. package/src/internal/qs/types.ts +71 -0
  422. package/src/internal/qs/utils.ts +265 -0
  423. package/src/lib/.keep +4 -0
  424. package/src/pagination.ts +60 -0
  425. package/src/resource.ts +11 -0
  426. package/src/resources/auth-sessions.ts +99 -0
  427. package/src/resources/end-users.ts +216 -0
  428. package/src/resources/index.ts +14 -0
  429. package/src/resources/qbd/accounts.ts +797 -0
  430. package/src/resources/qbd/bill-check-payments.ts +1086 -0
  431. package/src/resources/qbd/bill-credit-card-payments.ts +851 -0
  432. package/src/resources/qbd/bills.ts +3039 -0
  433. package/src/resources/qbd/checks.ts +3003 -0
  434. package/src/resources/qbd/classes.ts +366 -0
  435. package/src/resources/qbd/credit-card-charges.ts +2646 -0
  436. package/src/resources/qbd/credit-card-credits.ts +2643 -0
  437. package/src/resources/qbd/credit-memos.ts +3157 -0
  438. package/src/resources/qbd/customers.ts +2518 -0
  439. package/src/resources/qbd/date-driven-terms.ts +314 -0
  440. package/src/resources/qbd/discount-items.ts +712 -0
  441. package/src/resources/qbd/employees.ts +2266 -0
  442. package/src/resources/qbd/estimates.ts +2975 -0
  443. package/src/resources/qbd/index.ts +346 -0
  444. package/src/resources/qbd/inventory-adjustments.ts +1008 -0
  445. package/src/resources/qbd/inventory-assembly-items.ts +1126 -0
  446. package/src/resources/qbd/inventory-items.ts +1026 -0
  447. package/src/resources/qbd/inventory-sites.ts +605 -0
  448. package/src/resources/qbd/invoices.ts +3398 -0
  449. package/src/resources/qbd/journal-entries.ts +1051 -0
  450. package/src/resources/qbd/non-inventory-items.ts +1138 -0
  451. package/src/resources/qbd/payroll-wage-items.ts +304 -0
  452. package/src/resources/qbd/purchase-orders.ts +3045 -0
  453. package/src/resources/qbd/qbd.ts +876 -0
  454. package/src/resources/qbd/receive-payments.ts +1609 -0
  455. package/src/resources/qbd/sales-orders.ts +3141 -0
  456. package/src/resources/qbd/sales-receipts.ts +3977 -0
  457. package/src/resources/qbd/sales-representatives.ts +340 -0
  458. package/src/resources/qbd/sales-tax-codes.ts +398 -0
  459. package/src/resources/qbd/sales-tax-items.ts +583 -0
  460. package/src/resources/qbd/service-items.ts +1105 -0
  461. package/src/resources/qbd/standard-terms.ts +295 -0
  462. package/src/resources/qbd/subtotal-items.ts +430 -0
  463. package/src/resources/qbd/transfers.ts +359 -0
  464. package/src/resources/qbd/vendor-credits.ts +2742 -0
  465. package/src/resources/qbd/vendors.ts +2017 -0
  466. package/src/shims/node.ts +50 -0
  467. package/src/shims/web.ts +50 -0
  468. package/src/tsconfig.json +11 -0
  469. package/src/uploads.ts +255 -0
  470. package/src/version.ts +1 -0
  471. package/uploads.d.ts +75 -0
  472. package/uploads.d.ts.map +1 -0
  473. package/uploads.js +171 -0
  474. package/uploads.js.map +1 -0
  475. package/uploads.mjs +158 -0
  476. package/uploads.mjs.map +1 -0
  477. package/version.d.ts +2 -0
  478. package/version.d.ts.map +1 -0
  479. package/version.js +5 -0
  480. package/version.js.map +1 -0
  481. package/version.mjs +2 -0
  482. package/version.mjs.map +1 -0
  483. package/dist/package.json +0 -48
  484. package/dist/src/Client.d.ts +0 -21
  485. package/dist/src/Client.js +0 -54
  486. package/dist/src/index.d.ts +0 -11
  487. package/dist/src/index.js +0 -59
  488. package/dist/src/integrations/BaseIntegration.d.ts +0 -9
  489. package/dist/src/integrations/BaseIntegration.js +0 -14
  490. package/dist/src/integrations/qbd/QbdIntegration.d.ts +0 -3120
  491. package/dist/src/integrations/qbd/QbdIntegration.js +0 -3147
  492. package/dist/src/integrations/qbd/qbdTypes.d.ts +0 -14076
  493. package/dist/src/integrations/qbd/qbdTypes.js +0 -2
  494. package/dist/src/interceptors/errorHandling.d.ts +0 -2
  495. package/dist/src/interceptors/errorHandling.js +0 -53
  496. package/dist/src/interceptors/logging.d.ts +0 -18
  497. package/dist/src/interceptors/logging.js +0 -70
  498. package/dist/src/resources/AuthSessionsResource.d.ts +0 -77
  499. package/dist/src/resources/AuthSessionsResource.js +0 -26
  500. package/dist/src/resources/BaseResource.d.ts +0 -6
  501. package/dist/src/resources/BaseResource.js +0 -9
  502. package/dist/src/resources/EndUsersResource.d.ts +0 -84
  503. package/dist/src/resources/EndUsersResource.js +0 -57
  504. package/dist/src/resources/types.d.ts +0 -40
  505. package/dist/src/utils/checkForUpdates.d.ts +0 -2
  506. package/dist/src/utils/checkForUpdates.js +0 -65
  507. package/dist/src/utils/env.d.ts +0 -1
  508. package/dist/src/utils/env.js +0 -15
  509. package/dist/src/utils/error.d.ts +0 -184
  510. package/dist/src/utils/error.js +0 -254
@@ -0,0 +1,814 @@
1
+ import { APIResource } from "../../resource.js";
2
+ import * as Core from "../../core.js";
3
+ export declare class InventoryAdjustments extends APIResource {
4
+ /**
5
+ * Creates a new inventory adjustment.
6
+ */
7
+ create(params: InventoryAdjustmentCreateParams, options?: Core.RequestOptions): Core.APIPromise<InventoryAdjustment>;
8
+ /**
9
+ * Retrieves an inventory adjustment by ID.
10
+ */
11
+ retrieve(id: string, params: InventoryAdjustmentRetrieveParams, options?: Core.RequestOptions): Core.APIPromise<InventoryAdjustment>;
12
+ /**
13
+ * Updates an existing inventory adjustment.
14
+ */
15
+ update(id: string, params: InventoryAdjustmentUpdateParams, options?: Core.RequestOptions): Core.APIPromise<InventoryAdjustment>;
16
+ /**
17
+ * Returns a list of inventory adjustments. NOTE: QuickBooks Desktop does not
18
+ * support pagination for inventory adjustments; hence, there is no `cursor`
19
+ * parameter. Users typically have few inventory adjustments.
20
+ */
21
+ list(params: InventoryAdjustmentListParams, options?: Core.RequestOptions): Core.APIPromise<InventoryAdjustmentListResponse>;
22
+ /**
23
+ * Permanently deletes a an inventory adjustment. The deletion will fail if the
24
+ * inventory adjustment is currently in use or has any linked transactions that are
25
+ * in use.
26
+ */
27
+ delete(id: string, params: InventoryAdjustmentDeleteParams, options?: Core.RequestOptions): Core.APIPromise<InventoryAdjustmentDeleteResponse>;
28
+ }
29
+ export interface InventoryAdjustment {
30
+ /**
31
+ * The unique identifier assigned by QuickBooks to this inventory adjustment. This
32
+ * ID is unique across all transaction types.
33
+ */
34
+ id: string;
35
+ /**
36
+ * The account to which this inventory adjustment is posted for tracking inventory
37
+ * value changes.
38
+ */
39
+ account: InventoryAdjustment.Account;
40
+ /**
41
+ * The inventory adjustment's class. Classes can be used to categorize objects into
42
+ * meaningful segments, such as department, location, or type of work. In
43
+ * QuickBooks, class tracking is off by default. A class defined here is
44
+ * automatically used in this inventory adjustment's line items unless overridden
45
+ * at the line item level.
46
+ */
47
+ class: InventoryAdjustment.Class | null;
48
+ /**
49
+ * The date and time when this inventory adjustment was created, in ISO 8601 format
50
+ * (YYYY-MM-DDThh:mm:ss±hh:mm). The time zone is the same as the user's time zone
51
+ * in QuickBooks.
52
+ */
53
+ createdAt: string;
54
+ /**
55
+ * The customer or customer-job associated with this inventory adjustment.
56
+ */
57
+ customer: InventoryAdjustment.Customer | null;
58
+ /**
59
+ * The custom fields for the inventory adjustment object, added as user-defined
60
+ * data extensions, not included in the standard QuickBooks object.
61
+ */
62
+ customFields: Array<InventoryAdjustment.CustomField>;
63
+ /**
64
+ * A globally unique identifier (GUID) you, the developer, can provide for tracking
65
+ * this object in your external system. This field is immutable and can only be set
66
+ * during object creation.
67
+ */
68
+ externalId: string | null;
69
+ /**
70
+ * The site location where inventory for the item associated with this inventory
71
+ * adjustment is stored.
72
+ */
73
+ inventorySite: InventoryAdjustment.InventorySite | null;
74
+ /**
75
+ * The inventory adjustment's item lines, each representing the adjustment of an
76
+ * inventory item's quantity, value, serial number, or lot number.
77
+ */
78
+ lines: Array<InventoryAdjustment.Line>;
79
+ /**
80
+ * A memo or note for this inventory adjustment.
81
+ */
82
+ memo: string | null;
83
+ /**
84
+ * The type of object. This value is always `"qbd_inventory_adjustment"`.
85
+ */
86
+ objectType: 'qbd_inventory_adjustment';
87
+ /**
88
+ * The case-sensitive user-defined reference number for this inventory adjustment,
89
+ * which can be used to identify the transaction in QuickBooks. This value is not
90
+ * required to be unique and can be arbitrarily changed by the QuickBooks user.
91
+ */
92
+ refNumber: string | null;
93
+ /**
94
+ * The current QuickBooks-assigned revision number of this inventory adjustment
95
+ * object, which changes each time the object is modified. When updating this
96
+ * object, you must provide the most recent `revisionNumber` to ensure you're
97
+ * working with the latest data; otherwise, the update will return an error.
98
+ */
99
+ revisionNumber: string;
100
+ /**
101
+ * The date of this inventory adjustment, in ISO 8601 format (YYYY-MM-DD).
102
+ */
103
+ transactionDate: string;
104
+ /**
105
+ * The date and time when this inventory adjustment was last updated, in ISO 8601
106
+ * format (YYYY-MM-DDThh:mm:ss±hh:mm). The time zone is the same as the user's time
107
+ * zone in QuickBooks.
108
+ */
109
+ updatedAt: string;
110
+ }
111
+ export declare namespace InventoryAdjustment {
112
+ /**
113
+ * The account to which this inventory adjustment is posted for tracking inventory
114
+ * value changes.
115
+ */
116
+ interface Account {
117
+ /**
118
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
119
+ * across all objects of the same type, but not across different QuickBooks object
120
+ * types.
121
+ */
122
+ id: string | null;
123
+ /**
124
+ * The fully-qualified unique name for this object, formed by combining the names
125
+ * of its parent objects with its own `name`, separated by colons. Not
126
+ * case-sensitive.
127
+ */
128
+ fullName: string | null;
129
+ }
130
+ /**
131
+ * The inventory adjustment's class. Classes can be used to categorize objects into
132
+ * meaningful segments, such as department, location, or type of work. In
133
+ * QuickBooks, class tracking is off by default. A class defined here is
134
+ * automatically used in this inventory adjustment's line items unless overridden
135
+ * at the line item level.
136
+ */
137
+ interface Class {
138
+ /**
139
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
140
+ * across all objects of the same type, but not across different QuickBooks object
141
+ * types.
142
+ */
143
+ id: string | null;
144
+ /**
145
+ * The fully-qualified unique name for this object, formed by combining the names
146
+ * of its parent objects with its own `name`, separated by colons. Not
147
+ * case-sensitive.
148
+ */
149
+ fullName: string | null;
150
+ }
151
+ /**
152
+ * The customer or customer-job associated with this inventory adjustment.
153
+ */
154
+ interface Customer {
155
+ /**
156
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
157
+ * across all objects of the same type, but not across different QuickBooks object
158
+ * types.
159
+ */
160
+ id: string | null;
161
+ /**
162
+ * The fully-qualified unique name for this object, formed by combining the names
163
+ * of its parent objects with its own `name`, separated by colons. Not
164
+ * case-sensitive.
165
+ */
166
+ fullName: string | null;
167
+ }
168
+ interface CustomField {
169
+ /**
170
+ * The name of the custom field, unique for the specified `ownerId`. For public
171
+ * custom fields, this name is visible as a label in the QuickBooks UI.
172
+ */
173
+ name: string;
174
+ /**
175
+ * The identifier of the owner of the custom field, which QuickBooks internally
176
+ * calls a "data extension". For public custom fields visible in the UI, such as
177
+ * those added by the QuickBooks user, this is always "0". For private custom
178
+ * fields that are only visible to the application that created them, this is a
179
+ * valid GUID identifying the owning application. Internally, Conductor always
180
+ * fetches all public custom fields (those with an `ownerId` of "0") for all
181
+ * objects.
182
+ */
183
+ ownerId: string;
184
+ /**
185
+ * The data type of this custom field.
186
+ */
187
+ type: 'amount_type' | 'date_time_type' | 'integer_type' | 'percent_type' | 'price_type' | 'quantity_type' | 'string_1024_type' | 'string_255_type';
188
+ /**
189
+ * The value of this custom field. The maximum length depends on the field's data
190
+ * type.
191
+ */
192
+ value: string;
193
+ }
194
+ /**
195
+ * The site location where inventory for the item associated with this inventory
196
+ * adjustment is stored.
197
+ */
198
+ interface InventorySite {
199
+ /**
200
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
201
+ * across all objects of the same type, but not across different QuickBooks object
202
+ * types.
203
+ */
204
+ id: string | null;
205
+ /**
206
+ * The fully-qualified unique name for this object, formed by combining the names
207
+ * of its parent objects with its own `name`, separated by colons. Not
208
+ * case-sensitive.
209
+ */
210
+ fullName: string | null;
211
+ }
212
+ interface Line {
213
+ /**
214
+ * The unique identifier assigned by QuickBooks to this inventory adjustment line.
215
+ * This ID is unique across all transaction line types.
216
+ */
217
+ id: string;
218
+ /**
219
+ * The expiration date for the serial number or lot number of the item associated
220
+ * with this inventory adjustment line, in ISO 8601 format (YYYY-MM-DD). This is
221
+ * particularly relevant for perishable or time-sensitive inventory items. Note
222
+ * that this field is only supported on QuickBooks Desktop 2023 or later.
223
+ */
224
+ expirationDate: string | null;
225
+ /**
226
+ * The specific location (e.g., bin or shelf) within the inventory site where the
227
+ * item associated with this inventory adjustment line is stored.
228
+ */
229
+ inventorySiteLocation: Line.InventorySiteLocation | null;
230
+ /**
231
+ * The inventory item associated with this inventory adjustment line.
232
+ */
233
+ item: Line.Item | null;
234
+ /**
235
+ * The lot number of the item associated with this inventory adjustment line. Used
236
+ * for tracking groups of inventory items that are purchased or manufactured
237
+ * together.
238
+ */
239
+ lotNumber: string | null;
240
+ /**
241
+ * The type of object. This value is always `"qbd_inventory_adjustment_line"`.
242
+ */
243
+ objectType: 'qbd_inventory_adjustment_line';
244
+ /**
245
+ * Either a positive or negative number that shows the change in quantity for the
246
+ * inventory item associated with this inventory adjustment line. A positive number
247
+ * increases the quantity, while a negative number decreases it.
248
+ */
249
+ quantityDifference: number | null;
250
+ /**
251
+ * The serial number of the item associated with this inventory adjustment line.
252
+ * This is used for tracking individual units of serialized inventory items.
253
+ */
254
+ serialNumber: string | null;
255
+ /**
256
+ * Indicates whether this inventory adjustment line's serial number was added or
257
+ * removed from the inventory.
258
+ */
259
+ serialNumberAction: 'added' | 'removed' | null;
260
+ /**
261
+ * Either a positive or negative number that shows the change in the total value of
262
+ * the entire stock of the inventory item associated with this inventory adjustment
263
+ * line. A positive number increases the value, while a negative number decreases
264
+ * it.
265
+ */
266
+ valueDifference: number | null;
267
+ }
268
+ namespace Line {
269
+ /**
270
+ * The specific location (e.g., bin or shelf) within the inventory site where the
271
+ * item associated with this inventory adjustment line is stored.
272
+ */
273
+ interface InventorySiteLocation {
274
+ /**
275
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
276
+ * across all objects of the same type, but not across different QuickBooks object
277
+ * types.
278
+ */
279
+ id: string | null;
280
+ /**
281
+ * The fully-qualified unique name for this object, formed by combining the names
282
+ * of its parent objects with its own `name`, separated by colons. Not
283
+ * case-sensitive.
284
+ */
285
+ fullName: string | null;
286
+ }
287
+ /**
288
+ * The inventory item associated with this inventory adjustment line.
289
+ */
290
+ interface Item {
291
+ /**
292
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
293
+ * across all objects of the same type, but not across different QuickBooks object
294
+ * types.
295
+ */
296
+ id: string | null;
297
+ /**
298
+ * The fully-qualified unique name for this object, formed by combining the names
299
+ * of its parent objects with its own `name`, separated by colons. Not
300
+ * case-sensitive.
301
+ */
302
+ fullName: string | null;
303
+ }
304
+ }
305
+ }
306
+ export interface InventoryAdjustmentListResponse {
307
+ /**
308
+ * The array of inventory adjustments.
309
+ */
310
+ data: Array<InventoryAdjustment>;
311
+ /**
312
+ * The type of object. This value is always `"list"`.
313
+ */
314
+ objectType: 'list';
315
+ /**
316
+ * The endpoint URL where this list can be accessed.
317
+ */
318
+ url: string;
319
+ }
320
+ export interface InventoryAdjustmentDeleteResponse {
321
+ /**
322
+ * The QuickBooks-assigned unique identifier of the deleted inventory adjustment.
323
+ */
324
+ id: string;
325
+ /**
326
+ * Indicates whether the inventory adjustment was deleted.
327
+ */
328
+ deleted: boolean;
329
+ /**
330
+ * The type of object. This value is always `"qbd_inventory_adjustment"`.
331
+ */
332
+ objectType: 'qbd_inventory_adjustment';
333
+ /**
334
+ * The case-sensitive user-defined reference number of the deleted inventory
335
+ * adjustment.
336
+ */
337
+ refNumber: string | null;
338
+ }
339
+ export interface InventoryAdjustmentCreateParams {
340
+ /**
341
+ * Body param: The account to which this inventory adjustment is posted for
342
+ * tracking inventory value changes.
343
+ */
344
+ accountId: string;
345
+ /**
346
+ * Body param: The date of this inventory adjustment, in ISO 8601 format
347
+ * (YYYY-MM-DD).
348
+ */
349
+ transactionDate: string;
350
+ /**
351
+ * Header param: The ID of the EndUser to receive this request (e.g.,
352
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
353
+ */
354
+ conductorEndUserId: string;
355
+ /**
356
+ * Body param: The inventory adjustment's class. Classes can be used to categorize
357
+ * objects into meaningful segments, such as department, location, or type of work.
358
+ * In QuickBooks, class tracking is off by default. A class defined here is
359
+ * automatically used in this inventory adjustment's line items unless overridden
360
+ * at the line item level.
361
+ */
362
+ classId?: string;
363
+ /**
364
+ * Body param: The customer or customer-job associated with this inventory
365
+ * adjustment.
366
+ */
367
+ customerId?: string;
368
+ /**
369
+ * Body param: A globally unique identifier (GUID) you, the developer, can provide
370
+ * for tracking this object in your external system. This field is immutable and
371
+ * can only be set during object creation.
372
+ *
373
+ * **IMPORTANT**: This field must be formatted as a valid GUID; otherwise,
374
+ * QuickBooks will return an error.
375
+ */
376
+ externalId?: string;
377
+ /**
378
+ * Body param: The site location where inventory for the item associated with this
379
+ * inventory adjustment is stored.
380
+ */
381
+ inventorySiteId?: string;
382
+ /**
383
+ * Body param: The inventory adjustment's item lines, each representing the
384
+ * adjustment of an inventory item's quantity, value, serial number, or lot number.
385
+ */
386
+ lines?: Array<InventoryAdjustmentCreateParams.Line>;
387
+ /**
388
+ * Body param: A memo or note for this inventory adjustment.
389
+ */
390
+ memo?: string;
391
+ /**
392
+ * Body param: The case-sensitive user-defined reference number for this inventory
393
+ * adjustment, which can be used to identify the transaction in QuickBooks. This
394
+ * value is not required to be unique and can be arbitrarily changed by the
395
+ * QuickBooks user. When left blank in this create request, this field will be left
396
+ * blank in QuickBooks (i.e., it does _not_ auto-increment).
397
+ */
398
+ refNumber?: string;
399
+ }
400
+ export declare namespace InventoryAdjustmentCreateParams {
401
+ interface Line {
402
+ /**
403
+ * Adjusts the lot number of this inventory adjustment line.
404
+ */
405
+ adjustLotNumber?: Line.AdjustLotNumber;
406
+ /**
407
+ * Adjusts the inventory quantity of this inventory item either by setting a new
408
+ * quantity or by adjusting the current quantity up or down.
409
+ */
410
+ adjustQuantity?: Line.AdjustQuantity;
411
+ /**
412
+ * Adjusts the serial number of this inventory adjustment line. This is used for
413
+ * tracking individual units of serialized inventory items.
414
+ */
415
+ adjustSerialNumber?: Line.AdjustSerialNumber;
416
+ /**
417
+ * Adjusts the total value of the entire stock of this inventory item by setting a
418
+ * new monetary value, and optionally by setting a new quantity.
419
+ */
420
+ adjustValue?: Line.AdjustValue;
421
+ /**
422
+ * The inventory item associated with this inventory adjustment line.
423
+ */
424
+ itemId?: string;
425
+ }
426
+ namespace Line {
427
+ /**
428
+ * Adjusts the lot number of this inventory adjustment line.
429
+ */
430
+ interface AdjustLotNumber {
431
+ /**
432
+ * The amount to adjust the count of the inventory item associated with this
433
+ * inventory adjustment line.
434
+ */
435
+ adjustCount?: number;
436
+ /**
437
+ * The expiration date for the serial number or lot number of the item associated
438
+ * with this inventory adjustment line, in ISO 8601 format (YYYY-MM-DD). This is
439
+ * particularly relevant for perishable or time-sensitive inventory items. Note
440
+ * that this field is only supported on QuickBooks Desktop 2023 or later.
441
+ */
442
+ expirationDate?: string;
443
+ /**
444
+ * The specific location (e.g., bin or shelf) within the inventory site where the
445
+ * item associated with this inventory adjustment line is stored.
446
+ */
447
+ inventorySiteLocationId?: string;
448
+ /**
449
+ * The lot number of the item associated with this inventory adjustment line. Used
450
+ * for tracking groups of inventory items that are purchased or manufactured
451
+ * together.
452
+ */
453
+ lotNumber?: string;
454
+ }
455
+ /**
456
+ * Adjusts the inventory quantity of this inventory item either by setting a new
457
+ * quantity or by adjusting the current quantity up or down.
458
+ */
459
+ interface AdjustQuantity {
460
+ /**
461
+ * The expiration date for the serial number or lot number of the item associated
462
+ * with this inventory adjustment line, in ISO 8601 format (YYYY-MM-DD). This is
463
+ * particularly relevant for perishable or time-sensitive inventory items. Note
464
+ * that this field is only supported on QuickBooks Desktop 2023 or later.
465
+ */
466
+ expirationDate?: string;
467
+ /**
468
+ * The specific location (e.g., bin or shelf) within the inventory site where the
469
+ * item associated with this inventory adjustment line is stored.
470
+ */
471
+ inventorySiteLocationId?: string;
472
+ /**
473
+ * The lot number of the item associated with this inventory adjustment line. Used
474
+ * for tracking groups of inventory items that are purchased or manufactured
475
+ * together.
476
+ */
477
+ lotNumber?: string;
478
+ /**
479
+ * The new quantity for the inventory item associated with this inventory
480
+ * adjustment line.
481
+ */
482
+ newQuantity?: number;
483
+ /**
484
+ * Either a positive or negative number that shows the change in quantity for the
485
+ * inventory item associated with this inventory adjustment line. A positive number
486
+ * increases the quantity, while a negative number decreases it.
487
+ */
488
+ quantityDifference?: number;
489
+ /**
490
+ * The serial number of the item associated with this inventory adjustment line.
491
+ * This is used for tracking individual units of serialized inventory items.
492
+ */
493
+ serialNumber?: string;
494
+ }
495
+ /**
496
+ * Adjusts the serial number of this inventory adjustment line. This is used for
497
+ * tracking individual units of serialized inventory items.
498
+ */
499
+ interface AdjustSerialNumber {
500
+ /**
501
+ * The serial number, which represents a unique unit of the inventory item
502
+ * associated with this inventory adjustment line, to add to inventory.
503
+ */
504
+ addSerialNumber?: string;
505
+ /**
506
+ * The expiration date for the serial number or lot number of the item associated
507
+ * with this inventory adjustment line, in ISO 8601 format (YYYY-MM-DD). This is
508
+ * particularly relevant for perishable or time-sensitive inventory items. Note
509
+ * that this field is only supported on QuickBooks Desktop 2023 or later.
510
+ */
511
+ expirationDate?: string;
512
+ /**
513
+ * The specific location (e.g., bin or shelf) within the inventory site where the
514
+ * item associated with this inventory adjustment line is stored.
515
+ */
516
+ inventorySiteLocationId?: string;
517
+ /**
518
+ * The serial number, which represents a unique unit of the inventory item
519
+ * associated with this inventory adjustment line, to remove from inventory.
520
+ */
521
+ removeSerialNumber?: string;
522
+ }
523
+ /**
524
+ * Adjusts the total value of the entire stock of this inventory item by setting a
525
+ * new monetary value, and optionally by setting a new quantity.
526
+ */
527
+ interface AdjustValue {
528
+ /**
529
+ * The new quantity for the inventory item associated with this inventory
530
+ * adjustment line.
531
+ */
532
+ newQuantity?: number;
533
+ /**
534
+ * The new total value of the entire stock of the inventory item associated with
535
+ * this inventory adjustment line.
536
+ *
537
+ * **NOTE**: The new value does _not_ have to equal `quantityOnHand` times
538
+ * `purchaseCost`.
539
+ */
540
+ newValue?: string;
541
+ /**
542
+ * Either a positive or negative number that shows the change in quantity for the
543
+ * inventory item associated with this inventory adjustment line. A positive number
544
+ * increases the quantity, while a negative number decreases it.
545
+ */
546
+ quantityDifference?: number;
547
+ /**
548
+ * Either a positive or negative number that shows the change in the total value of
549
+ * the entire stock of the inventory item associated with this inventory adjustment
550
+ * line. A positive number increases the value, while a negative number decreases
551
+ * it.
552
+ */
553
+ valueDifference?: number;
554
+ }
555
+ }
556
+ }
557
+ export interface InventoryAdjustmentRetrieveParams {
558
+ /**
559
+ * The ID of the EndUser to receive this request (e.g.,
560
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
561
+ */
562
+ conductorEndUserId: string;
563
+ }
564
+ export interface InventoryAdjustmentUpdateParams {
565
+ /**
566
+ * Body param: The current QuickBooks-assigned revision number of the inventory
567
+ * adjustment object you are updating, which you can get by fetching the object
568
+ * first. Provide the most recent `revisionNumber` to ensure you're working with
569
+ * the latest data; otherwise, the update will return an error.
570
+ */
571
+ revisionNumber: string;
572
+ /**
573
+ * Header param: The ID of the EndUser to receive this request (e.g.,
574
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
575
+ */
576
+ conductorEndUserId: string;
577
+ /**
578
+ * Body param: The account to which this inventory adjustment is posted for
579
+ * tracking inventory value changes.
580
+ */
581
+ accountId?: string;
582
+ /**
583
+ * Body param: The inventory adjustment's class. Classes can be used to categorize
584
+ * objects into meaningful segments, such as department, location, or type of work.
585
+ * In QuickBooks, class tracking is off by default. A class defined here is
586
+ * automatically used in this inventory adjustment's line items unless overridden
587
+ * at the line item level.
588
+ */
589
+ classId?: string;
590
+ /**
591
+ * Body param: The customer or customer-job associated with this inventory
592
+ * adjustment.
593
+ */
594
+ customerId?: string;
595
+ /**
596
+ * Body param: The site location where inventory for the item associated with this
597
+ * inventory adjustment is stored.
598
+ */
599
+ inventorySiteId?: string;
600
+ /**
601
+ * Body param: The inventory adjustment's item lines, each representing the
602
+ * adjustment of an inventory item's quantity, value, serial number, or lot number.
603
+ *
604
+ * **IMPORTANT**:
605
+ *
606
+ * 1. Including this array in your update request will **REPLACE** all existing
607
+ * item lines for the inventory adjustment with this array. To keep any existing
608
+ * item lines, you must include them in this array even if they have not
609
+ * changed. **Any item lines not included will be removed.**
610
+ *
611
+ * 2. To add a new item line, include it here with the `id` field set to `-1`.
612
+ *
613
+ * 3. If you do not wish to modify any item lines, omit this field entirely to keep
614
+ * them unchanged.
615
+ */
616
+ lines?: Array<InventoryAdjustmentUpdateParams.Line>;
617
+ /**
618
+ * Body param: A memo or note for this inventory adjustment.
619
+ */
620
+ memo?: string;
621
+ /**
622
+ * Body param: The case-sensitive user-defined reference number for this inventory
623
+ * adjustment, which can be used to identify the transaction in QuickBooks. This
624
+ * value is not required to be unique and can be arbitrarily changed by the
625
+ * QuickBooks user.
626
+ */
627
+ refNumber?: string;
628
+ /**
629
+ * Body param: The date of this inventory adjustment, in ISO 8601 format
630
+ * (YYYY-MM-DD).
631
+ */
632
+ transactionDate?: string;
633
+ }
634
+ export declare namespace InventoryAdjustmentUpdateParams {
635
+ interface Line {
636
+ /**
637
+ * The QuickBooks-assigned unique identifier of an existing inventory adjustment
638
+ * line you wish to retain or update.
639
+ *
640
+ * **IMPORTANT**: Set this field to `-1` for new inventory adjustment lines you
641
+ * wish to add.
642
+ */
643
+ id: string;
644
+ /**
645
+ * The amount to adjust the count of the inventory item associated with this
646
+ * inventory adjustment line.
647
+ */
648
+ adjustCount?: number;
649
+ /**
650
+ * The expiration date for the serial number or lot number of the item associated
651
+ * with this inventory adjustment line, in ISO 8601 format (YYYY-MM-DD). This is
652
+ * particularly relevant for perishable or time-sensitive inventory items. Note
653
+ * that this field is only supported on QuickBooks Desktop 2023 or later.
654
+ */
655
+ expirationDate?: string;
656
+ /**
657
+ * The specific location (e.g., bin or shelf) within the inventory site where the
658
+ * item associated with this inventory adjustment line is stored.
659
+ */
660
+ inventorySiteLocationId?: string;
661
+ /**
662
+ * The inventory item associated with this inventory adjustment line.
663
+ */
664
+ itemId?: string;
665
+ /**
666
+ * The lot number of the item associated with this inventory adjustment line. Used
667
+ * for tracking groups of inventory items that are purchased or manufactured
668
+ * together.
669
+ */
670
+ lotNumber?: string;
671
+ /**
672
+ * Either a positive or negative number that shows the change in quantity for the
673
+ * inventory item associated with this inventory adjustment line. A positive number
674
+ * increases the quantity, while a negative number decreases it.
675
+ */
676
+ quantityDifference?: number;
677
+ /**
678
+ * The serial number of the item associated with this inventory adjustment line.
679
+ * This is used for tracking individual units of serialized inventory items.
680
+ */
681
+ serialNumber?: string;
682
+ /**
683
+ * Either a positive or negative number that shows the change in the total value of
684
+ * the entire stock of the inventory item associated with this inventory adjustment
685
+ * line. A positive number increases the value, while a negative number decreases
686
+ * it.
687
+ */
688
+ valueDifference?: number;
689
+ }
690
+ }
691
+ export interface InventoryAdjustmentListParams {
692
+ /**
693
+ * Header param: The ID of the EndUser to receive this request (e.g.,
694
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
695
+ */
696
+ conductorEndUserId: string;
697
+ /**
698
+ * Query param: Filter for inventory adjustments associated with these accounts.
699
+ */
700
+ accountIds?: Array<string>;
701
+ /**
702
+ * Query param: Filter for inventory adjustments associated with these customers.
703
+ */
704
+ customerIds?: Array<string>;
705
+ /**
706
+ * Query param: Filter for specific inventory adjustments by their
707
+ * QuickBooks-assigned unique identifier(s).
708
+ *
709
+ * **IMPORTANT**: If you include this parameter, QuickBooks will ignore all other
710
+ * query parameters for this request.
711
+ *
712
+ * **NOTE**: If any of the values you specify in this parameter are not found, the
713
+ * request will return an error.
714
+ */
715
+ ids?: Array<string>;
716
+ /**
717
+ * Query param: Whether to include line items in the response. Defaults to `true`.
718
+ */
719
+ includeLineItems?: boolean;
720
+ /**
721
+ * Query param: Filter for inventory adjustments containing these inventory items.
722
+ */
723
+ itemIds?: Array<string>;
724
+ /**
725
+ * Query param: The maximum number of objects to return.
726
+ *
727
+ * **IMPORTANT**: QuickBooks Desktop does not support cursor-based pagination for
728
+ * inventory adjustments. This parameter will limit the response size, but you
729
+ * cannot fetch subsequent results using a cursor. For pagination, use the
730
+ * name-range parameters instead (e.g., `nameFrom=A&nameTo=B`).
731
+ *
732
+ * When this parameter is omitted, the endpoint returns all inventory adjustments
733
+ * without limit, unlike paginated endpoints which default to 150 records. This is
734
+ * acceptable because inventory adjustments typically have low record counts.
735
+ */
736
+ limit?: number;
737
+ /**
738
+ * Query param: Filter for inventory adjustments whose `refNumber` contains this
739
+ * substring. NOTE: If you use this parameter, you cannot also use
740
+ * `refNumberStartsWith` or `refNumberEndsWith`.
741
+ */
742
+ refNumberContains?: string;
743
+ /**
744
+ * Query param: Filter for inventory adjustments whose `refNumber` ends with this
745
+ * substring. NOTE: If you use this parameter, you cannot also use
746
+ * `refNumberContains` or `refNumberStartsWith`.
747
+ */
748
+ refNumberEndsWith?: string;
749
+ /**
750
+ * Query param: Filter for inventory adjustments whose `refNumber` is greater than
751
+ * or equal to this value. If omitted, the range will begin with the first number
752
+ * of the list. Uses a numerical comparison for values that contain only digits;
753
+ * otherwise, uses a lexicographical comparison.
754
+ */
755
+ refNumberFrom?: string;
756
+ /**
757
+ * Query param: Filter for specific inventory adjustments by their ref-number(s),
758
+ * case-sensitive. In QuickBooks, ref-numbers are not required to be unique and can
759
+ * be arbitrarily changed by the QuickBooks user.
760
+ *
761
+ * **IMPORTANT**: If you include this parameter, QuickBooks will ignore all other
762
+ * query parameters for this request.
763
+ *
764
+ * **NOTE**: If any of the values you specify in this parameter are not found, the
765
+ * request will return an error.
766
+ */
767
+ refNumbers?: Array<string>;
768
+ /**
769
+ * Query param: Filter for inventory adjustments whose `refNumber` starts with this
770
+ * substring. NOTE: If you use this parameter, you cannot also use
771
+ * `refNumberContains` or `refNumberEndsWith`.
772
+ */
773
+ refNumberStartsWith?: string;
774
+ /**
775
+ * Query param: Filter for inventory adjustments whose `refNumber` is less than or
776
+ * equal to this value. If omitted, the range will end with the last number of the
777
+ * list. Uses a numerical comparison for values that contain only digits;
778
+ * otherwise, uses a lexicographical comparison.
779
+ */
780
+ refNumberTo?: string;
781
+ /**
782
+ * Query param: Filter for inventory adjustments created on or after this date, in
783
+ * ISO 8601 format (YYYY-MM-DD).
784
+ */
785
+ transactionDateFrom?: string;
786
+ /**
787
+ * Query param: Filter for inventory adjustments created on or before this date, in
788
+ * ISO 8601 format (YYYY-MM-DD).
789
+ */
790
+ transactionDateTo?: string;
791
+ /**
792
+ * Query param: Filter for inventory adjustments updated on or after this date and
793
+ * time, in ISO 8601 format (YYYY-MM-DDTHH:mm:ss). If you only provide a date
794
+ * (YYYY-MM-DD), the time is assumed to be 00:00:00 of that day.
795
+ */
796
+ updatedAfter?: string;
797
+ /**
798
+ * Query param: Filter for inventory adjustments updated on or before this date and
799
+ * time, in ISO 8601 format (YYYY-MM-DDTHH:mm:ss). If you only provide a date
800
+ * (YYYY-MM-DD), the time is assumed to be 23:59:59 of that day.
801
+ */
802
+ updatedBefore?: string;
803
+ }
804
+ export interface InventoryAdjustmentDeleteParams {
805
+ /**
806
+ * The ID of the EndUser to receive this request (e.g.,
807
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
808
+ */
809
+ conductorEndUserId: string;
810
+ }
811
+ export declare namespace InventoryAdjustments {
812
+ export { type InventoryAdjustment as InventoryAdjustment, type InventoryAdjustmentListResponse as InventoryAdjustmentListResponse, type InventoryAdjustmentDeleteResponse as InventoryAdjustmentDeleteResponse, type InventoryAdjustmentCreateParams as InventoryAdjustmentCreateParams, type InventoryAdjustmentRetrieveParams as InventoryAdjustmentRetrieveParams, type InventoryAdjustmentUpdateParams as InventoryAdjustmentUpdateParams, type InventoryAdjustmentListParams as InventoryAdjustmentListParams, type InventoryAdjustmentDeleteParams as InventoryAdjustmentDeleteParams, };
813
+ }
814
+ //# sourceMappingURL=inventory-adjustments.d.ts.map