conductor-node 11.10.1 → 12.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (510) hide show
  1. package/CHANGELOG.md +54 -0
  2. package/LICENSE +201 -21
  3. package/README.md +336 -64
  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,1051 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../resource';
4
+ import * as Core from '../../core';
5
+ import { CursorPage, type CursorPageParams } from '../../pagination';
6
+
7
+ export class JournalEntries extends APIResource {
8
+ /**
9
+ * Creates a new journal entry.
10
+ */
11
+ create(params: JournalEntryCreateParams, options?: Core.RequestOptions): Core.APIPromise<JournalEntry> {
12
+ const { conductorEndUserId, ...body } = params;
13
+ return this._client.post('/quickbooks-desktop/journal-entries', {
14
+ body,
15
+ ...options,
16
+ headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
17
+ });
18
+ }
19
+
20
+ /**
21
+ * Retrieves a journal entry by ID.
22
+ */
23
+ retrieve(
24
+ id: string,
25
+ params: JournalEntryRetrieveParams,
26
+ options?: Core.RequestOptions,
27
+ ): Core.APIPromise<JournalEntry> {
28
+ const { conductorEndUserId } = params;
29
+ return this._client.get(`/quickbooks-desktop/journal-entries/${id}`, {
30
+ ...options,
31
+ headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
32
+ });
33
+ }
34
+
35
+ /**
36
+ * Updates an existing journal entry.
37
+ */
38
+ update(
39
+ id: string,
40
+ params: JournalEntryUpdateParams,
41
+ options?: Core.RequestOptions,
42
+ ): Core.APIPromise<JournalEntry> {
43
+ const { conductorEndUserId, ...body } = params;
44
+ return this._client.post(`/quickbooks-desktop/journal-entries/${id}`, {
45
+ body,
46
+ ...options,
47
+ headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
48
+ });
49
+ }
50
+
51
+ /**
52
+ * Returns a list of journal entries. Use the `cursor` parameter to paginate
53
+ * through the results.
54
+ */
55
+ list(
56
+ params: JournalEntryListParams,
57
+ options?: Core.RequestOptions,
58
+ ): Core.PagePromise<JournalEntriesCursorPage, JournalEntry> {
59
+ const { conductorEndUserId, ...query } = params;
60
+ return this._client.getAPIList('/quickbooks-desktop/journal-entries', JournalEntriesCursorPage, {
61
+ query,
62
+ ...options,
63
+ headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
64
+ });
65
+ }
66
+
67
+ /**
68
+ * Permanently deletes a a journal entry. The deletion will fail if the journal
69
+ * entry is currently in use or has any linked transactions that are in use.
70
+ */
71
+ delete(
72
+ id: string,
73
+ params: JournalEntryDeleteParams,
74
+ options?: Core.RequestOptions,
75
+ ): Core.APIPromise<JournalEntryDeleteResponse> {
76
+ const { conductorEndUserId } = params;
77
+ return this._client.delete(`/quickbooks-desktop/journal-entries/${id}`, {
78
+ ...options,
79
+ headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
80
+ });
81
+ }
82
+ }
83
+
84
+ export class JournalEntriesCursorPage extends CursorPage<JournalEntry> {}
85
+
86
+ export interface JournalEntry {
87
+ /**
88
+ * The unique identifier assigned by QuickBooks to this journal entry. This ID is
89
+ * unique across all transaction types.
90
+ */
91
+ id: string;
92
+
93
+ /**
94
+ * Indicates whether the amounts in this journal entry were entered in the
95
+ * company's home currency rather than a foreign currency. When `true`, amounts are
96
+ * in the home currency regardless of the `currency` field.
97
+ */
98
+ areAmountsEnteredInHomeCurrency: boolean | null;
99
+
100
+ /**
101
+ * The date and time when this journal entry was created, in ISO 8601 format
102
+ * (YYYY-MM-DDThh:mm:ss±hh:mm). The time zone is the same as the user's time zone
103
+ * in QuickBooks.
104
+ */
105
+ createdAt: string;
106
+
107
+ /**
108
+ * The journal entry's credit lines.
109
+ */
110
+ creditLines: Array<JournalEntry.CreditLine>;
111
+
112
+ /**
113
+ * The journal entry's currency. For built-in currencies, the name and code are
114
+ * standard international values. For user-defined currencies, all values are
115
+ * editable.
116
+ */
117
+ currency: JournalEntry.Currency | null;
118
+
119
+ /**
120
+ * The custom fields for the journal entry object, added as user-defined data
121
+ * extensions, not included in the standard QuickBooks object.
122
+ */
123
+ customFields: Array<JournalEntry.CustomField>;
124
+
125
+ /**
126
+ * The journal entry's debit lines.
127
+ */
128
+ debitLines: Array<JournalEntry.DebitLine>;
129
+
130
+ /**
131
+ * The market exchange rate between this journal entry's currency and the home
132
+ * currency in QuickBooks at the time of this transaction. Represented as a decimal
133
+ * value (e.g., 1.2345 for 1 EUR = 1.2345 USD if USD is the home currency).
134
+ */
135
+ exchangeRate: number | null;
136
+
137
+ /**
138
+ * A globally unique identifier (GUID) you, the developer, can provide for tracking
139
+ * this object in your external system. This field is immutable and can only be set
140
+ * during object creation.
141
+ */
142
+ externalId: string | null;
143
+
144
+ /**
145
+ * Indicates whether this journal entry is an adjustment entry. When `true`,
146
+ * QuickBooks retains the original entry information to maintain an audit trail of
147
+ * the adjustments.
148
+ */
149
+ isAdjustment: boolean | null;
150
+
151
+ /**
152
+ * Indicates whether this journal entry is an adjustment made in the company's home
153
+ * currency for a transaction that was originally recorded in a foreign currency.
154
+ */
155
+ isHomeCurrencyAdjustment: boolean | null;
156
+
157
+ /**
158
+ * The type of object. This value is always `"qbd_journal_entry"`.
159
+ */
160
+ objectType: 'qbd_journal_entry';
161
+
162
+ /**
163
+ * The case-sensitive user-defined reference number for this journal entry, which
164
+ * can be used to identify the transaction in QuickBooks. This value is not
165
+ * required to be unique and can be arbitrarily changed by the QuickBooks user.
166
+ */
167
+ refNumber: string | null;
168
+
169
+ /**
170
+ * The current QuickBooks-assigned revision number of this journal entry object,
171
+ * which changes each time the object is modified. When updating this object, you
172
+ * must provide the most recent `revisionNumber` to ensure you're working with the
173
+ * latest data; otherwise, the update will return an error.
174
+ */
175
+ revisionNumber: string;
176
+
177
+ /**
178
+ * The date of this journal entry, in ISO 8601 format (YYYY-MM-DD).
179
+ */
180
+ transactionDate: string;
181
+
182
+ /**
183
+ * The date and time when this journal entry was last updated, in ISO 8601 format
184
+ * (YYYY-MM-DDThh:mm:ss±hh:mm). The time zone is the same as the user's time zone
185
+ * in QuickBooks.
186
+ */
187
+ updatedAt: string;
188
+ }
189
+
190
+ export namespace JournalEntry {
191
+ export interface CreditLine {
192
+ /**
193
+ * The unique identifier assigned by QuickBooks to this journal credit line. This
194
+ * ID is unique across all transaction line types.
195
+ */
196
+ id: string;
197
+
198
+ /**
199
+ * The account to which this journal credit line is being credited. This will
200
+ * increase the balance of this account.
201
+ */
202
+ account: CreditLine.Account;
203
+
204
+ /**
205
+ * The monetary amount of this journal credit line, represented as a decimal
206
+ * string.
207
+ */
208
+ amount: string | null;
209
+
210
+ /**
211
+ * The billing status of this journal credit line.
212
+ */
213
+ billingStatus: 'billable' | 'has_been_billed' | 'not_billable' | null;
214
+
215
+ /**
216
+ * The journal credit line's class. Classes can be used to categorize objects into
217
+ * meaningful segments, such as department, location, or type of work. In
218
+ * QuickBooks, class tracking is off by default. If a class is specified for the
219
+ * entire parent transaction, it is automatically applied to all journal credit
220
+ * lines unless overridden here, at the transaction line level.
221
+ */
222
+ class: CreditLine.Class | null;
223
+
224
+ /**
225
+ * The customer, vendor, employee, or other entity associated with this journal
226
+ * credit line.
227
+ *
228
+ * **IMPORTANT**: If the journal credit line's `account` is an Accounts Receivable
229
+ * (A/R) account, this field must refer to a customer. If the journal credit line's
230
+ * `account` is an Accounts Payable (A/P) account, this field must refer to a
231
+ * vendor. If these requirements are not met, QuickBooks Desktop will not record
232
+ * the transaction.
233
+ */
234
+ entity: CreditLine.Entity | null;
235
+
236
+ /**
237
+ * A memo or note for this journal credit line.
238
+ */
239
+ memo: string | null;
240
+
241
+ /**
242
+ * The type of object. This value is always `"qbd_journal_credit_line"`.
243
+ */
244
+ objectType: 'qbd_journal_credit_line';
245
+
246
+ /**
247
+ * The sales-tax item used to calculate the actual tax amount for this journal
248
+ * credit line's transactions by applying a specific tax rate collected for a
249
+ * single tax agency. Unlike `salesTaxCode`, which only indicates general
250
+ * taxability, this field drives the actual tax calculation and reporting.
251
+ */
252
+ salesTaxItem: CreditLine.SalesTaxItem | null;
253
+ }
254
+
255
+ export namespace CreditLine {
256
+ /**
257
+ * The account to which this journal credit line is being credited. This will
258
+ * increase the balance of this account.
259
+ */
260
+ export interface Account {
261
+ /**
262
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
263
+ * across all objects of the same type, but not across different QuickBooks object
264
+ * types.
265
+ */
266
+ id: string | null;
267
+
268
+ /**
269
+ * The fully-qualified unique name for this object, formed by combining the names
270
+ * of its parent objects with its own `name`, separated by colons. Not
271
+ * case-sensitive.
272
+ */
273
+ fullName: string | null;
274
+ }
275
+
276
+ /**
277
+ * The journal credit line's class. Classes can be used to categorize objects into
278
+ * meaningful segments, such as department, location, or type of work. In
279
+ * QuickBooks, class tracking is off by default. If a class is specified for the
280
+ * entire parent transaction, it is automatically applied to all journal credit
281
+ * lines unless overridden here, at the transaction line level.
282
+ */
283
+ export interface Class {
284
+ /**
285
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
286
+ * across all objects of the same type, but not across different QuickBooks object
287
+ * types.
288
+ */
289
+ id: string | null;
290
+
291
+ /**
292
+ * The fully-qualified unique name for this object, formed by combining the names
293
+ * of its parent objects with its own `name`, separated by colons. Not
294
+ * case-sensitive.
295
+ */
296
+ fullName: string | null;
297
+ }
298
+
299
+ /**
300
+ * The customer, vendor, employee, or other entity associated with this journal
301
+ * credit line.
302
+ *
303
+ * **IMPORTANT**: If the journal credit line's `account` is an Accounts Receivable
304
+ * (A/R) account, this field must refer to a customer. If the journal credit line's
305
+ * `account` is an Accounts Payable (A/P) account, this field must refer to a
306
+ * vendor. If these requirements are not met, QuickBooks Desktop will not record
307
+ * the transaction.
308
+ */
309
+ export interface Entity {
310
+ /**
311
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
312
+ * across all objects of the same type, but not across different QuickBooks object
313
+ * types.
314
+ */
315
+ id: string | null;
316
+
317
+ /**
318
+ * The fully-qualified unique name for this object, formed by combining the names
319
+ * of its parent objects with its own `name`, separated by colons. Not
320
+ * case-sensitive.
321
+ */
322
+ fullName: string | null;
323
+ }
324
+
325
+ /**
326
+ * The sales-tax item used to calculate the actual tax amount for this journal
327
+ * credit line's transactions by applying a specific tax rate collected for a
328
+ * single tax agency. Unlike `salesTaxCode`, which only indicates general
329
+ * taxability, this field drives the actual tax calculation and reporting.
330
+ */
331
+ export interface SalesTaxItem {
332
+ /**
333
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
334
+ * across all objects of the same type, but not across different QuickBooks object
335
+ * types.
336
+ */
337
+ id: string | null;
338
+
339
+ /**
340
+ * The fully-qualified unique name for this object, formed by combining the names
341
+ * of its parent objects with its own `name`, separated by colons. Not
342
+ * case-sensitive.
343
+ */
344
+ fullName: string | null;
345
+ }
346
+ }
347
+
348
+ /**
349
+ * The journal entry's currency. For built-in currencies, the name and code are
350
+ * standard international values. For user-defined currencies, all values are
351
+ * editable.
352
+ */
353
+ export interface Currency {
354
+ /**
355
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
356
+ * across all objects of the same type, but not across different QuickBooks object
357
+ * types.
358
+ */
359
+ id: string | null;
360
+
361
+ /**
362
+ * The fully-qualified unique name for this object, formed by combining the names
363
+ * of its parent objects with its own `name`, separated by colons. Not
364
+ * case-sensitive.
365
+ */
366
+ fullName: string | null;
367
+ }
368
+
369
+ export interface CustomField {
370
+ /**
371
+ * The name of the custom field, unique for the specified `ownerId`. For public
372
+ * custom fields, this name is visible as a label in the QuickBooks UI.
373
+ */
374
+ name: string;
375
+
376
+ /**
377
+ * The identifier of the owner of the custom field, which QuickBooks internally
378
+ * calls a "data extension". For public custom fields visible in the UI, such as
379
+ * those added by the QuickBooks user, this is always "0". For private custom
380
+ * fields that are only visible to the application that created them, this is a
381
+ * valid GUID identifying the owning application. Internally, Conductor always
382
+ * fetches all public custom fields (those with an `ownerId` of "0") for all
383
+ * objects.
384
+ */
385
+ ownerId: string;
386
+
387
+ /**
388
+ * The data type of this custom field.
389
+ */
390
+ type:
391
+ | 'amount_type'
392
+ | 'date_time_type'
393
+ | 'integer_type'
394
+ | 'percent_type'
395
+ | 'price_type'
396
+ | 'quantity_type'
397
+ | 'string_1024_type'
398
+ | 'string_255_type';
399
+
400
+ /**
401
+ * The value of this custom field. The maximum length depends on the field's data
402
+ * type.
403
+ */
404
+ value: string;
405
+ }
406
+
407
+ export interface DebitLine {
408
+ /**
409
+ * The unique identifier assigned by QuickBooks to this journal debit line. This ID
410
+ * is unique across all transaction line types.
411
+ */
412
+ id: string;
413
+
414
+ /**
415
+ * The account to which this journal debit line is being debited. This will
416
+ * decrease the balance of this account.
417
+ */
418
+ account: DebitLine.Account | null;
419
+
420
+ /**
421
+ * The monetary amount of this journal debit line, represented as a decimal string.
422
+ */
423
+ amount: string | null;
424
+
425
+ /**
426
+ * The billing status of this journal debit line.
427
+ */
428
+ billingStatus: 'billable' | 'has_been_billed' | 'not_billable' | null;
429
+
430
+ /**
431
+ * The journal debit line's class. Classes can be used to categorize objects into
432
+ * meaningful segments, such as department, location, or type of work. In
433
+ * QuickBooks, class tracking is off by default. If a class is specified for the
434
+ * entire parent transaction, it is automatically applied to all journal debit
435
+ * lines unless overridden here, at the transaction line level.
436
+ */
437
+ class: DebitLine.Class | null;
438
+
439
+ /**
440
+ * The customer, vendor, employee, or other entity associated with this journal
441
+ * debit line.
442
+ *
443
+ * **IMPORTANT**: If the journal debit line's `account` is an Accounts Receivable
444
+ * (A/R) account, this field must refer to a customer. If the journal debit line's
445
+ * `account` is an Accounts Payable (A/P) account, this field must refer to a
446
+ * vendor. If these requirements are not met, QuickBooks Desktop will not record
447
+ * the transaction.
448
+ */
449
+ entity: DebitLine.Entity | null;
450
+
451
+ /**
452
+ * A memo or note for this journal debit line.
453
+ */
454
+ memo: string | null;
455
+
456
+ /**
457
+ * The type of object. This value is always `"qbd_journal_debit_line"`.
458
+ */
459
+ objectType: 'qbd_journal_debit_line';
460
+
461
+ /**
462
+ * The sales-tax item used to calculate the actual tax amount for this journal
463
+ * debit line's transactions by applying a specific tax rate collected for a single
464
+ * tax agency. Unlike `salesTaxCode`, which only indicates general taxability, this
465
+ * field drives the actual tax calculation and reporting.
466
+ */
467
+ salesTaxItem: DebitLine.SalesTaxItem | null;
468
+ }
469
+
470
+ export namespace DebitLine {
471
+ /**
472
+ * The account to which this journal debit line is being debited. This will
473
+ * decrease the balance of this account.
474
+ */
475
+ export interface Account {
476
+ /**
477
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
478
+ * across all objects of the same type, but not across different QuickBooks object
479
+ * types.
480
+ */
481
+ id: string | null;
482
+
483
+ /**
484
+ * The fully-qualified unique name for this object, formed by combining the names
485
+ * of its parent objects with its own `name`, separated by colons. Not
486
+ * case-sensitive.
487
+ */
488
+ fullName: string | null;
489
+ }
490
+
491
+ /**
492
+ * The journal debit line's class. Classes can be used to categorize objects into
493
+ * meaningful segments, such as department, location, or type of work. In
494
+ * QuickBooks, class tracking is off by default. If a class is specified for the
495
+ * entire parent transaction, it is automatically applied to all journal debit
496
+ * lines unless overridden here, at the transaction line level.
497
+ */
498
+ export interface Class {
499
+ /**
500
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
501
+ * across all objects of the same type, but not across different QuickBooks object
502
+ * types.
503
+ */
504
+ id: string | null;
505
+
506
+ /**
507
+ * The fully-qualified unique name for this object, formed by combining the names
508
+ * of its parent objects with its own `name`, separated by colons. Not
509
+ * case-sensitive.
510
+ */
511
+ fullName: string | null;
512
+ }
513
+
514
+ /**
515
+ * The customer, vendor, employee, or other entity associated with this journal
516
+ * debit line.
517
+ *
518
+ * **IMPORTANT**: If the journal debit line's `account` is an Accounts Receivable
519
+ * (A/R) account, this field must refer to a customer. If the journal debit line's
520
+ * `account` is an Accounts Payable (A/P) account, this field must refer to a
521
+ * vendor. If these requirements are not met, QuickBooks Desktop will not record
522
+ * the transaction.
523
+ */
524
+ export interface Entity {
525
+ /**
526
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
527
+ * across all objects of the same type, but not across different QuickBooks object
528
+ * types.
529
+ */
530
+ id: string | null;
531
+
532
+ /**
533
+ * The fully-qualified unique name for this object, formed by combining the names
534
+ * of its parent objects with its own `name`, separated by colons. Not
535
+ * case-sensitive.
536
+ */
537
+ fullName: string | null;
538
+ }
539
+
540
+ /**
541
+ * The sales-tax item used to calculate the actual tax amount for this journal
542
+ * debit line's transactions by applying a specific tax rate collected for a single
543
+ * tax agency. Unlike `salesTaxCode`, which only indicates general taxability, this
544
+ * field drives the actual tax calculation and reporting.
545
+ */
546
+ export interface SalesTaxItem {
547
+ /**
548
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
549
+ * across all objects of the same type, but not across different QuickBooks object
550
+ * types.
551
+ */
552
+ id: string | null;
553
+
554
+ /**
555
+ * The fully-qualified unique name for this object, formed by combining the names
556
+ * of its parent objects with its own `name`, separated by colons. Not
557
+ * case-sensitive.
558
+ */
559
+ fullName: string | null;
560
+ }
561
+ }
562
+ }
563
+
564
+ export interface JournalEntryDeleteResponse {
565
+ /**
566
+ * The QuickBooks-assigned unique identifier of the deleted journal entry.
567
+ */
568
+ id: string;
569
+
570
+ /**
571
+ * Indicates whether the journal entry was deleted.
572
+ */
573
+ deleted: boolean;
574
+
575
+ /**
576
+ * The type of object. This value is always `"qbd_journal_entry"`.
577
+ */
578
+ objectType: 'qbd_journal_entry';
579
+
580
+ /**
581
+ * The case-sensitive user-defined reference number of the deleted journal entry.
582
+ */
583
+ refNumber: string | null;
584
+ }
585
+
586
+ export interface JournalEntryCreateParams {
587
+ /**
588
+ * Body param: The date of this journal entry, in ISO 8601 format (YYYY-MM-DD).
589
+ */
590
+ transactionDate: string;
591
+
592
+ /**
593
+ * Header param: The ID of the EndUser to receive this request (e.g.,
594
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
595
+ */
596
+ conductorEndUserId: string;
597
+
598
+ /**
599
+ * Body param: Indicates whether the amounts in this journal entry were entered in
600
+ * the company's home currency rather than a foreign currency. When `true`, amounts
601
+ * are in the home currency regardless of the `currency` field.
602
+ */
603
+ areAmountsEnteredInHomeCurrency?: boolean;
604
+
605
+ /**
606
+ * Body param: The journal entry's credit lines.
607
+ */
608
+ creditLines?: Array<JournalEntryCreateParams.CreditLine>;
609
+
610
+ /**
611
+ * Body param: The journal entry's currency. For built-in currencies, the name and
612
+ * code are standard international values. For user-defined currencies, all values
613
+ * are editable.
614
+ */
615
+ currencyId?: string;
616
+
617
+ /**
618
+ * Body param: The journal entry's debit lines.
619
+ */
620
+ debitLines?: Array<JournalEntryCreateParams.DebitLine>;
621
+
622
+ /**
623
+ * Body param: The market exchange rate between this journal entry's currency and
624
+ * the home currency in QuickBooks at the time of this transaction. Represented as
625
+ * a decimal value (e.g., 1.2345 for 1 EUR = 1.2345 USD if USD is the home
626
+ * currency).
627
+ */
628
+ exchangeRate?: number;
629
+
630
+ /**
631
+ * Body param: A globally unique identifier (GUID) you, the developer, can provide
632
+ * for tracking this object in your external system. This field is immutable and
633
+ * can only be set during object creation.
634
+ *
635
+ * **IMPORTANT**: This field must be formatted as a valid GUID; otherwise,
636
+ * QuickBooks will return an error.
637
+ */
638
+ externalId?: string;
639
+
640
+ /**
641
+ * Body param: Indicates whether this journal entry is an adjustment entry. When
642
+ * `true`, QuickBooks retains the original entry information to maintain an audit
643
+ * trail of the adjustments.
644
+ */
645
+ isAdjustment?: boolean;
646
+
647
+ /**
648
+ * Body param: Indicates whether this journal entry is an adjustment made in the
649
+ * company's home currency for a transaction that was originally recorded in a
650
+ * foreign currency.
651
+ */
652
+ isHomeCurrencyAdjustment?: boolean;
653
+
654
+ /**
655
+ * Body param: The case-sensitive user-defined reference number for this journal
656
+ * entry, which can be used to identify the transaction in QuickBooks. This value
657
+ * is not required to be unique and can be arbitrarily changed by the QuickBooks
658
+ * user. When left blank in this create request, this field will be left blank in
659
+ * QuickBooks (i.e., it does _not_ auto-increment).
660
+ */
661
+ refNumber?: string;
662
+ }
663
+
664
+ export namespace JournalEntryCreateParams {
665
+ export interface CreditLine {
666
+ /**
667
+ * The account to which this journal credit line is being credited. This will
668
+ * increase the balance of this account.
669
+ */
670
+ accountId: string;
671
+
672
+ /**
673
+ * The monetary amount of this journal credit line, represented as a decimal
674
+ * string.
675
+ */
676
+ amount?: string;
677
+
678
+ /**
679
+ * The billing status of this journal credit line.
680
+ */
681
+ billingStatus?: 'billable' | 'has_been_billed' | 'not_billable';
682
+
683
+ /**
684
+ * The journal credit line's class. Classes can be used to categorize objects into
685
+ * meaningful segments, such as department, location, or type of work. In
686
+ * QuickBooks, class tracking is off by default. If a class is specified for the
687
+ * entire parent transaction, it is automatically applied to all journal credit
688
+ * lines unless overridden here, at the transaction line level.
689
+ */
690
+ classId?: string;
691
+
692
+ /**
693
+ * The customer, vendor, employee, or other entity associated with this journal
694
+ * credit line.
695
+ *
696
+ * **IMPORTANT**: If the journal credit line's `account` is an Accounts Receivable
697
+ * (A/R) account, this field must refer to a customer. If the journal credit line's
698
+ * `account` is an Accounts Payable (A/P) account, this field must refer to a
699
+ * vendor. If these requirements are not met, QuickBooks Desktop will not record
700
+ * the transaction.
701
+ */
702
+ entityId?: string;
703
+
704
+ /**
705
+ * A memo or note for this journal credit line.
706
+ */
707
+ memo?: string;
708
+
709
+ /**
710
+ * The sales-tax item used to calculate the actual tax amount for this journal
711
+ * credit line's transactions by applying a specific tax rate collected for a
712
+ * single tax agency. Unlike `salesTaxCode`, which only indicates general
713
+ * taxability, this field drives the actual tax calculation and reporting.
714
+ */
715
+ salesTaxItemId?: string;
716
+ }
717
+
718
+ export interface DebitLine {
719
+ /**
720
+ * The account to which this journal debit line is being debited. This will
721
+ * decrease the balance of this account.
722
+ */
723
+ accountId: string;
724
+
725
+ /**
726
+ * The monetary amount of this journal debit line, represented as a decimal string.
727
+ */
728
+ amount?: string;
729
+
730
+ /**
731
+ * The billing status of this journal debit line.
732
+ */
733
+ billingStatus?: 'billable' | 'has_been_billed' | 'not_billable';
734
+
735
+ /**
736
+ * The journal debit line's class. Classes can be used to categorize objects into
737
+ * meaningful segments, such as department, location, or type of work. In
738
+ * QuickBooks, class tracking is off by default. If a class is specified for the
739
+ * entire parent transaction, it is automatically applied to all journal debit
740
+ * lines unless overridden here, at the transaction line level.
741
+ */
742
+ classId?: string;
743
+
744
+ /**
745
+ * The customer, vendor, employee, or other entity associated with this journal
746
+ * debit line.
747
+ *
748
+ * **IMPORTANT**: If the journal debit line's `account` is an Accounts Receivable
749
+ * (A/R) account, this field must refer to a customer. If the journal debit line's
750
+ * `account` is an Accounts Payable (A/P) account, this field must refer to a
751
+ * vendor. If these requirements are not met, QuickBooks Desktop will not record
752
+ * the transaction.
753
+ */
754
+ entityId?: string;
755
+
756
+ /**
757
+ * A memo or note for this journal debit line.
758
+ */
759
+ memo?: string;
760
+
761
+ /**
762
+ * The sales-tax item used to calculate the actual tax amount for this journal
763
+ * debit line's transactions by applying a specific tax rate collected for a single
764
+ * tax agency. Unlike `salesTaxCode`, which only indicates general taxability, this
765
+ * field drives the actual tax calculation and reporting.
766
+ */
767
+ salesTaxItemId?: string;
768
+ }
769
+ }
770
+
771
+ export interface JournalEntryRetrieveParams {
772
+ /**
773
+ * The ID of the EndUser to receive this request (e.g.,
774
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
775
+ */
776
+ conductorEndUserId: string;
777
+ }
778
+
779
+ export interface JournalEntryUpdateParams {
780
+ /**
781
+ * Body param: The current QuickBooks-assigned revision number of the journal entry
782
+ * object you are updating, which you can get by fetching the object first. Provide
783
+ * the most recent `revisionNumber` to ensure you're working with the latest data;
784
+ * otherwise, the update will return an error.
785
+ */
786
+ revisionNumber: string;
787
+
788
+ /**
789
+ * Header param: The ID of the EndUser to receive this request (e.g.,
790
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
791
+ */
792
+ conductorEndUserId: string;
793
+
794
+ /**
795
+ * Body param: Indicates whether the amounts in this journal entry were entered in
796
+ * the company's home currency rather than a foreign currency. When `true`, amounts
797
+ * are in the home currency regardless of the `currency` field.
798
+ */
799
+ areAmountsEnteredInHomeCurrency?: boolean;
800
+
801
+ /**
802
+ * Body param: The journal entry's currency. For built-in currencies, the name and
803
+ * code are standard international values. For user-defined currencies, all values
804
+ * are editable.
805
+ */
806
+ currencyId?: string;
807
+
808
+ /**
809
+ * Body param: The market exchange rate between this journal entry's currency and
810
+ * the home currency in QuickBooks at the time of this transaction. Represented as
811
+ * a decimal value (e.g., 1.2345 for 1 EUR = 1.2345 USD if USD is the home
812
+ * currency).
813
+ */
814
+ exchangeRate?: number;
815
+
816
+ /**
817
+ * Body param: Indicates whether this journal entry is an adjustment entry. When
818
+ * `true`, QuickBooks retains the original entry information to maintain an audit
819
+ * trail of the adjustments.
820
+ */
821
+ isAdjustment?: boolean;
822
+
823
+ /**
824
+ * Body param: The journal entry's credit and debit lines.
825
+ *
826
+ * **IMPORTANT**: When updating journal entries, you must include ALL existing
827
+ * journal lines (both credit and debit) in your update request, even if you only
828
+ * want to modify a single line. QuickBooks will automatically delete any existing
829
+ * lines that are not included in the update request, which is why all lines must
830
+ * be provided in a single array when updating.
831
+ */
832
+ lines?: Array<JournalEntryUpdateParams.Line>;
833
+
834
+ /**
835
+ * Body param: The case-sensitive user-defined reference number for this journal
836
+ * entry, which can be used to identify the transaction in QuickBooks. This value
837
+ * is not required to be unique and can be arbitrarily changed by the QuickBooks
838
+ * user.
839
+ */
840
+ refNumber?: string;
841
+
842
+ /**
843
+ * Body param: The date of this journal entry, in ISO 8601 format (YYYY-MM-DD).
844
+ */
845
+ transactionDate?: string;
846
+ }
847
+
848
+ export namespace JournalEntryUpdateParams {
849
+ export interface Line {
850
+ /**
851
+ * The QuickBooks-assigned unique identifier of an existing journal line you wish
852
+ * to retain or update.
853
+ *
854
+ * **IMPORTANT**: Set this field to `-1` for new journal lines you wish to add.
855
+ */
856
+ id: string;
857
+
858
+ /**
859
+ * The account to which this journal line is being credited or debited.
860
+ */
861
+ accountId?: string;
862
+
863
+ /**
864
+ * The monetary amount of this journal line, represented as a decimal string.
865
+ */
866
+ amount?: string;
867
+
868
+ /**
869
+ * The billing status of this journal line.
870
+ */
871
+ billingStatus?: 'billable' | 'has_been_billed' | 'not_billable';
872
+
873
+ /**
874
+ * The journal line's class. Classes can be used to categorize objects into
875
+ * meaningful segments, such as department, location, or type of work. In
876
+ * QuickBooks, class tracking is off by default. If a class is specified for the
877
+ * entire parent transaction, it is automatically applied to all journal lines
878
+ * unless overridden here, at the transaction line level.
879
+ */
880
+ classId?: string;
881
+
882
+ /**
883
+ * The customer, vendor, employee, or other entity associated with this journal
884
+ * line.
885
+ *
886
+ * **IMPORTANT**: If the journal line's `account` is an Accounts Receivable (A/R)
887
+ * account, this field must refer to a customer. If the journal line's `account` is
888
+ * an Accounts Payable (A/P) account, this field must refer to a vendor. If these
889
+ * requirements are not met, QuickBooks Desktop will not record the transaction.
890
+ */
891
+ entityId?: string;
892
+
893
+ /**
894
+ * The type of journal line (debit or credit).
895
+ */
896
+ journalLineType?: 'debit' | 'credit';
897
+
898
+ /**
899
+ * A memo or note for this journal line.
900
+ */
901
+ memo?: string;
902
+
903
+ /**
904
+ * The sales-tax item used to calculate the actual tax amount for this journal
905
+ * line's transactions by applying a specific tax rate collected for a single tax
906
+ * agency. Unlike `salesTaxCode`, which only indicates general taxability, this
907
+ * field drives the actual tax calculation and reporting.
908
+ */
909
+ salesTaxItemId?: string;
910
+ }
911
+ }
912
+
913
+ export interface JournalEntryListParams extends CursorPageParams {
914
+ /**
915
+ * Header param: The ID of the EndUser to receive this request (e.g.,
916
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
917
+ */
918
+ conductorEndUserId: string;
919
+
920
+ /**
921
+ * Query param: Filter for journal entries associated with these accounts.
922
+ */
923
+ accountIds?: Array<string>;
924
+
925
+ /**
926
+ * Query param: Filter for journal entries in these currencies.
927
+ */
928
+ currencyIds?: Array<string>;
929
+
930
+ /**
931
+ * Query param: Filter for journal entries associated with these entities
932
+ * (customers, vendors, employees, etc.).
933
+ */
934
+ entityIds?: Array<string>;
935
+
936
+ /**
937
+ * Query param: Filter for specific journal entries by their QuickBooks-assigned
938
+ * unique identifier(s).
939
+ *
940
+ * **IMPORTANT**: If you include this parameter, QuickBooks will ignore all other
941
+ * query parameters for this request.
942
+ *
943
+ * **NOTE**: If any of the values you specify in this parameter are not found, the
944
+ * request will return an error.
945
+ */
946
+ ids?: Array<string>;
947
+
948
+ /**
949
+ * Query param: Whether to include line items in the response. Defaults to `true`.
950
+ */
951
+ includeLineItems?: boolean;
952
+
953
+ /**
954
+ * Query param: Filter for journal entries whose `refNumber` contains this
955
+ * substring. NOTE: If you use this parameter, you cannot also use
956
+ * `refNumberStartsWith` or `refNumberEndsWith`.
957
+ */
958
+ refNumberContains?: string;
959
+
960
+ /**
961
+ * Query param: Filter for journal entries whose `refNumber` ends with this
962
+ * substring. NOTE: If you use this parameter, you cannot also use
963
+ * `refNumberContains` or `refNumberStartsWith`.
964
+ */
965
+ refNumberEndsWith?: string;
966
+
967
+ /**
968
+ * Query param: Filter for journal entries whose `refNumber` is greater than or
969
+ * equal to this value. If omitted, the range will begin with the first number of
970
+ * the list. Uses a numerical comparison for values that contain only digits;
971
+ * otherwise, uses a lexicographical comparison.
972
+ */
973
+ refNumberFrom?: string;
974
+
975
+ /**
976
+ * Query param: Filter for specific journal entries by their ref-number(s),
977
+ * case-sensitive. In QuickBooks, ref-numbers are not required to be unique and can
978
+ * be arbitrarily changed by the QuickBooks user.
979
+ *
980
+ * **IMPORTANT**: If you include this parameter, QuickBooks will ignore all other
981
+ * query parameters for this request.
982
+ *
983
+ * **NOTE**: If any of the values you specify in this parameter are not found, the
984
+ * request will return an error.
985
+ */
986
+ refNumbers?: Array<string>;
987
+
988
+ /**
989
+ * Query param: Filter for journal entries whose `refNumber` starts with this
990
+ * substring. NOTE: If you use this parameter, you cannot also use
991
+ * `refNumberContains` or `refNumberEndsWith`.
992
+ */
993
+ refNumberStartsWith?: string;
994
+
995
+ /**
996
+ * Query param: Filter for journal entries whose `refNumber` is less than or equal
997
+ * to this value. If omitted, the range will end with the last number of the list.
998
+ * Uses a numerical comparison for values that contain only digits; otherwise, uses
999
+ * a lexicographical comparison.
1000
+ */
1001
+ refNumberTo?: string;
1002
+
1003
+ /**
1004
+ * Query param: Filter for journal entries created on or after this date, in ISO
1005
+ * 8601 format (YYYY-MM-DD).
1006
+ */
1007
+ transactionDateFrom?: string;
1008
+
1009
+ /**
1010
+ * Query param: Filter for journal entries created on or before this date, in ISO
1011
+ * 8601 format (YYYY-MM-DD).
1012
+ */
1013
+ transactionDateTo?: string;
1014
+
1015
+ /**
1016
+ * Query param: Filter for journal entries updated on or after this date and time,
1017
+ * in ISO 8601 format (YYYY-MM-DDTHH:mm:ss). If you only provide a date
1018
+ * (YYYY-MM-DD), the time is assumed to be 00:00:00 of that day.
1019
+ */
1020
+ updatedAfter?: string;
1021
+
1022
+ /**
1023
+ * Query param: Filter for journal entries updated on or before this date and time,
1024
+ * in ISO 8601 format (YYYY-MM-DDTHH:mm:ss). If you only provide a date
1025
+ * (YYYY-MM-DD), the time is assumed to be 23:59:59 of that day.
1026
+ */
1027
+ updatedBefore?: string;
1028
+ }
1029
+
1030
+ export interface JournalEntryDeleteParams {
1031
+ /**
1032
+ * The ID of the EndUser to receive this request (e.g.,
1033
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
1034
+ */
1035
+ conductorEndUserId: string;
1036
+ }
1037
+
1038
+ JournalEntries.JournalEntriesCursorPage = JournalEntriesCursorPage;
1039
+
1040
+ export declare namespace JournalEntries {
1041
+ export {
1042
+ type JournalEntry as JournalEntry,
1043
+ type JournalEntryDeleteResponse as JournalEntryDeleteResponse,
1044
+ JournalEntriesCursorPage as JournalEntriesCursorPage,
1045
+ type JournalEntryCreateParams as JournalEntryCreateParams,
1046
+ type JournalEntryRetrieveParams as JournalEntryRetrieveParams,
1047
+ type JournalEntryUpdateParams as JournalEntryUpdateParams,
1048
+ type JournalEntryListParams as JournalEntryListParams,
1049
+ type JournalEntryDeleteParams as JournalEntryDeleteParams,
1050
+ };
1051
+ }