conductor-node 14.15.0 → 14.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (405) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/api-promise.d.mts +1 -0
  3. package/api-promise.d.mts.map +1 -1
  4. package/api-promise.d.ts +1 -0
  5. package/api-promise.d.ts.map +1 -1
  6. package/api-promise.mjs +1 -0
  7. package/api-promise.mjs.map +1 -1
  8. package/client.d.mts.map +1 -1
  9. package/client.d.ts.map +1 -1
  10. package/client.mjs.map +1 -1
  11. package/core/api-promise.d.mts.map +1 -1
  12. package/core/api-promise.d.ts.map +1 -1
  13. package/core/api-promise.mjs.map +1 -1
  14. package/core/error.mjs.map +1 -1
  15. package/core/pagination.d.mts.map +1 -1
  16. package/core/pagination.d.ts.map +1 -1
  17. package/core/pagination.mjs.map +1 -1
  18. package/core/resource.d.mts.map +1 -1
  19. package/core/resource.d.ts.map +1 -1
  20. package/core/uploads.d.mts.map +1 -1
  21. package/core/uploads.d.ts.map +1 -1
  22. package/core/uploads.mjs.map +1 -1
  23. package/error.d.mts +1 -0
  24. package/error.d.mts.map +1 -1
  25. package/error.d.ts +1 -0
  26. package/error.d.ts.map +1 -1
  27. package/error.mjs +1 -0
  28. package/error.mjs.map +1 -1
  29. package/index.d.mts.map +1 -1
  30. package/index.d.ts.map +1 -1
  31. package/index.mjs.map +1 -1
  32. package/internal/detect-platform.mjs.map +1 -1
  33. package/internal/headers.mjs.map +1 -1
  34. package/internal/parse.d.mts.map +1 -1
  35. package/internal/parse.d.ts.map +1 -1
  36. package/internal/parse.mjs.map +1 -1
  37. package/internal/qs/formats.d.mts.map +1 -1
  38. package/internal/qs/formats.d.ts.map +1 -1
  39. package/internal/qs/index.d.mts +2 -2
  40. package/internal/qs/index.d.mts.map +1 -1
  41. package/internal/qs/index.d.ts +2 -2
  42. package/internal/qs/index.d.ts.map +1 -1
  43. package/internal/qs/index.mjs.map +1 -1
  44. package/internal/qs/stringify.d.mts.map +1 -1
  45. package/internal/qs/stringify.d.ts.map +1 -1
  46. package/internal/qs/stringify.mjs.map +1 -1
  47. package/internal/qs/utils.d.mts.map +1 -1
  48. package/internal/qs/utils.d.ts.map +1 -1
  49. package/internal/qs/utils.mjs.map +1 -1
  50. package/internal/request-options.d.mts.map +1 -1
  51. package/internal/request-options.d.ts.map +1 -1
  52. package/internal/shims.d.mts +6 -0
  53. package/internal/shims.d.mts.map +1 -1
  54. package/internal/shims.d.ts +6 -0
  55. package/internal/shims.d.ts.map +1 -1
  56. package/internal/to-file.d.mts.map +1 -1
  57. package/internal/to-file.d.ts.map +1 -1
  58. package/internal/to-file.mjs.map +1 -1
  59. package/internal/types.d.mts +4 -4
  60. package/internal/types.d.mts.map +1 -1
  61. package/internal/types.d.ts +4 -4
  62. package/internal/types.d.ts.map +1 -1
  63. package/internal/uploads.d.mts.map +1 -1
  64. package/internal/uploads.d.ts.map +1 -1
  65. package/internal/uploads.mjs.map +1 -1
  66. package/internal/utils/base64.mjs.map +1 -1
  67. package/internal/utils/log.d.mts.map +1 -1
  68. package/internal/utils/log.d.ts.map +1 -1
  69. package/internal/utils/log.mjs.map +1 -1
  70. package/internal/utils/path.mjs.map +1 -1
  71. package/internal/utils/query.mjs.map +1 -1
  72. package/internal/utils/values.mjs.map +1 -1
  73. package/internal/utils.d.mts.map +1 -1
  74. package/internal/utils.d.ts.map +1 -1
  75. package/internal/utils.mjs.map +1 -1
  76. package/package.json +1 -1
  77. package/pagination.d.mts +1 -0
  78. package/pagination.d.mts.map +1 -1
  79. package/pagination.d.ts +1 -0
  80. package/pagination.d.ts.map +1 -1
  81. package/pagination.mjs +1 -0
  82. package/pagination.mjs.map +1 -1
  83. package/resource.d.mts +1 -0
  84. package/resource.d.mts.map +1 -1
  85. package/resource.d.ts +1 -0
  86. package/resource.d.ts.map +1 -1
  87. package/resource.mjs +1 -0
  88. package/resource.mjs.map +1 -1
  89. package/resources/auth-sessions.d.mts.map +1 -1
  90. package/resources/auth-sessions.d.ts.map +1 -1
  91. package/resources/auth-sessions.mjs.map +1 -1
  92. package/resources/end-users.d.mts.map +1 -1
  93. package/resources/end-users.d.ts.map +1 -1
  94. package/resources/end-users.mjs.map +1 -1
  95. package/resources/index.d.mts.map +1 -1
  96. package/resources/index.d.ts.map +1 -1
  97. package/resources/index.mjs.map +1 -1
  98. package/resources/qbd/account-tax-lines.d.mts.map +1 -1
  99. package/resources/qbd/account-tax-lines.d.ts.map +1 -1
  100. package/resources/qbd/account-tax-lines.mjs.map +1 -1
  101. package/resources/qbd/accounts.d.mts +16 -12
  102. package/resources/qbd/accounts.d.mts.map +1 -1
  103. package/resources/qbd/accounts.d.ts +16 -12
  104. package/resources/qbd/accounts.d.ts.map +1 -1
  105. package/resources/qbd/accounts.mjs.map +1 -1
  106. package/resources/qbd/bill-check-payments.d.mts +51 -57
  107. package/resources/qbd/bill-check-payments.d.mts.map +1 -1
  108. package/resources/qbd/bill-check-payments.d.ts +51 -57
  109. package/resources/qbd/bill-check-payments.d.ts.map +1 -1
  110. package/resources/qbd/bill-check-payments.mjs.map +1 -1
  111. package/resources/qbd/bill-credit-card-payments.d.mts +37 -42
  112. package/resources/qbd/bill-credit-card-payments.d.mts.map +1 -1
  113. package/resources/qbd/bill-credit-card-payments.d.ts +37 -42
  114. package/resources/qbd/bill-credit-card-payments.d.ts.map +1 -1
  115. package/resources/qbd/bill-credit-card-payments.mjs.map +1 -1
  116. package/resources/qbd/bills-to-pay.d.mts +295 -0
  117. package/resources/qbd/bills-to-pay.d.mts.map +1 -0
  118. package/resources/qbd/bills-to-pay.d.ts +295 -0
  119. package/resources/qbd/bills-to-pay.d.ts.map +1 -0
  120. package/resources/qbd/bills-to-pay.js +37 -0
  121. package/resources/qbd/bills-to-pay.js.map +1 -0
  122. package/resources/qbd/bills-to-pay.mjs +33 -0
  123. package/resources/qbd/bills-to-pay.mjs.map +1 -0
  124. package/resources/qbd/bills.d.mts +90 -62
  125. package/resources/qbd/bills.d.mts.map +1 -1
  126. package/resources/qbd/bills.d.ts +90 -62
  127. package/resources/qbd/bills.d.ts.map +1 -1
  128. package/resources/qbd/bills.mjs.map +1 -1
  129. package/resources/qbd/build-assemblies.d.mts.map +1 -1
  130. package/resources/qbd/build-assemblies.d.ts.map +1 -1
  131. package/resources/qbd/build-assemblies.mjs.map +1 -1
  132. package/resources/qbd/checks.d.mts +60 -45
  133. package/resources/qbd/checks.d.mts.map +1 -1
  134. package/resources/qbd/checks.d.ts +60 -45
  135. package/resources/qbd/checks.d.ts.map +1 -1
  136. package/resources/qbd/checks.mjs.map +1 -1
  137. package/resources/qbd/classes.d.mts.map +1 -1
  138. package/resources/qbd/classes.d.ts.map +1 -1
  139. package/resources/qbd/classes.mjs.map +1 -1
  140. package/resources/qbd/company.d.mts +1 -1
  141. package/resources/qbd/company.d.mts.map +1 -1
  142. package/resources/qbd/company.d.ts +1 -1
  143. package/resources/qbd/company.d.ts.map +1 -1
  144. package/resources/qbd/company.mjs.map +1 -1
  145. package/resources/qbd/credit-card-charges.d.mts +60 -45
  146. package/resources/qbd/credit-card-charges.d.mts.map +1 -1
  147. package/resources/qbd/credit-card-charges.d.ts +60 -45
  148. package/resources/qbd/credit-card-charges.d.ts.map +1 -1
  149. package/resources/qbd/credit-card-charges.mjs.map +1 -1
  150. package/resources/qbd/credit-card-credits.d.mts +60 -45
  151. package/resources/qbd/credit-card-credits.d.mts.map +1 -1
  152. package/resources/qbd/credit-card-credits.d.ts +60 -45
  153. package/resources/qbd/credit-card-credits.d.ts.map +1 -1
  154. package/resources/qbd/credit-card-credits.mjs.map +1 -1
  155. package/resources/qbd/credit-card-refunds.d.mts +8 -7
  156. package/resources/qbd/credit-card-refunds.d.mts.map +1 -1
  157. package/resources/qbd/credit-card-refunds.d.ts +8 -7
  158. package/resources/qbd/credit-card-refunds.d.ts.map +1 -1
  159. package/resources/qbd/credit-card-refunds.mjs.map +1 -1
  160. package/resources/qbd/credit-memos.d.mts +52 -41
  161. package/resources/qbd/credit-memos.d.mts.map +1 -1
  162. package/resources/qbd/credit-memos.d.ts +52 -41
  163. package/resources/qbd/credit-memos.d.ts.map +1 -1
  164. package/resources/qbd/credit-memos.mjs.map +1 -1
  165. package/resources/qbd/currencies.d.mts.map +1 -1
  166. package/resources/qbd/currencies.d.ts.map +1 -1
  167. package/resources/qbd/currencies.mjs.map +1 -1
  168. package/resources/qbd/customer-types.d.mts.map +1 -1
  169. package/resources/qbd/customer-types.d.ts.map +1 -1
  170. package/resources/qbd/customer-types.mjs.map +1 -1
  171. package/resources/qbd/customers.d.mts +20 -12
  172. package/resources/qbd/customers.d.mts.map +1 -1
  173. package/resources/qbd/customers.d.ts +20 -12
  174. package/resources/qbd/customers.d.ts.map +1 -1
  175. package/resources/qbd/customers.mjs.map +1 -1
  176. package/resources/qbd/date-driven-terms.d.mts.map +1 -1
  177. package/resources/qbd/date-driven-terms.d.ts.map +1 -1
  178. package/resources/qbd/date-driven-terms.mjs.map +1 -1
  179. package/resources/qbd/deleted-list-objects.d.mts.map +1 -1
  180. package/resources/qbd/deleted-list-objects.d.ts.map +1 -1
  181. package/resources/qbd/deleted-list-objects.mjs.map +1 -1
  182. package/resources/qbd/deleted-transactions.d.mts.map +1 -1
  183. package/resources/qbd/deleted-transactions.d.ts.map +1 -1
  184. package/resources/qbd/deleted-transactions.mjs.map +1 -1
  185. package/resources/qbd/deposits.d.mts.map +1 -1
  186. package/resources/qbd/deposits.d.ts.map +1 -1
  187. package/resources/qbd/deposits.mjs.map +1 -1
  188. package/resources/qbd/discount-items.d.mts +16 -12
  189. package/resources/qbd/discount-items.d.mts.map +1 -1
  190. package/resources/qbd/discount-items.d.ts +16 -12
  191. package/resources/qbd/discount-items.d.ts.map +1 -1
  192. package/resources/qbd/discount-items.mjs.map +1 -1
  193. package/resources/qbd/employees.d.mts.map +1 -1
  194. package/resources/qbd/employees.d.ts.map +1 -1
  195. package/resources/qbd/employees.mjs.map +1 -1
  196. package/resources/qbd/estimates.d.mts +44 -33
  197. package/resources/qbd/estimates.d.mts.map +1 -1
  198. package/resources/qbd/estimates.d.ts +44 -33
  199. package/resources/qbd/estimates.d.ts.map +1 -1
  200. package/resources/qbd/estimates.mjs.map +1 -1
  201. package/resources/qbd/index.d.mts +1 -0
  202. package/resources/qbd/index.d.mts.map +1 -1
  203. package/resources/qbd/index.d.ts +1 -0
  204. package/resources/qbd/index.d.ts.map +1 -1
  205. package/resources/qbd/index.js +4 -2
  206. package/resources/qbd/index.js.map +1 -1
  207. package/resources/qbd/index.mjs +1 -0
  208. package/resources/qbd/index.mjs.map +1 -1
  209. package/resources/qbd/inventory-adjustments.d.mts.map +1 -1
  210. package/resources/qbd/inventory-adjustments.d.ts.map +1 -1
  211. package/resources/qbd/inventory-adjustments.mjs.map +1 -1
  212. package/resources/qbd/inventory-assembly-items.d.mts +16 -12
  213. package/resources/qbd/inventory-assembly-items.d.mts.map +1 -1
  214. package/resources/qbd/inventory-assembly-items.d.ts +16 -12
  215. package/resources/qbd/inventory-assembly-items.d.ts.map +1 -1
  216. package/resources/qbd/inventory-assembly-items.mjs.map +1 -1
  217. package/resources/qbd/inventory-items.d.mts +16 -12
  218. package/resources/qbd/inventory-items.d.mts.map +1 -1
  219. package/resources/qbd/inventory-items.d.ts +16 -12
  220. package/resources/qbd/inventory-items.d.ts.map +1 -1
  221. package/resources/qbd/inventory-items.mjs.map +1 -1
  222. package/resources/qbd/inventory-sites.d.mts.map +1 -1
  223. package/resources/qbd/inventory-sites.d.ts.map +1 -1
  224. package/resources/qbd/inventory-sites.mjs.map +1 -1
  225. package/resources/qbd/invoices.d.mts +57 -47
  226. package/resources/qbd/invoices.d.mts.map +1 -1
  227. package/resources/qbd/invoices.d.ts +57 -47
  228. package/resources/qbd/invoices.d.ts.map +1 -1
  229. package/resources/qbd/invoices.mjs.map +1 -1
  230. package/resources/qbd/item-groups.d.mts.map +1 -1
  231. package/resources/qbd/item-groups.d.ts.map +1 -1
  232. package/resources/qbd/item-groups.mjs.map +1 -1
  233. package/resources/qbd/item-receipts.d.mts +66 -53
  234. package/resources/qbd/item-receipts.d.mts.map +1 -1
  235. package/resources/qbd/item-receipts.d.ts +66 -53
  236. package/resources/qbd/item-receipts.d.ts.map +1 -1
  237. package/resources/qbd/item-receipts.mjs.map +1 -1
  238. package/resources/qbd/item-sites.d.mts +12 -0
  239. package/resources/qbd/item-sites.d.mts.map +1 -1
  240. package/resources/qbd/item-sites.d.ts +12 -0
  241. package/resources/qbd/item-sites.d.ts.map +1 -1
  242. package/resources/qbd/item-sites.mjs.map +1 -1
  243. package/resources/qbd/journal-entries.d.mts +1 -1
  244. package/resources/qbd/journal-entries.d.mts.map +1 -1
  245. package/resources/qbd/journal-entries.d.ts +1 -1
  246. package/resources/qbd/journal-entries.d.ts.map +1 -1
  247. package/resources/qbd/journal-entries.mjs.map +1 -1
  248. package/resources/qbd/non-inventory-items.d.mts +16 -12
  249. package/resources/qbd/non-inventory-items.d.mts.map +1 -1
  250. package/resources/qbd/non-inventory-items.d.ts +16 -12
  251. package/resources/qbd/non-inventory-items.d.ts.map +1 -1
  252. package/resources/qbd/non-inventory-items.mjs.map +1 -1
  253. package/resources/qbd/other-charge-items.d.mts +16 -12
  254. package/resources/qbd/other-charge-items.d.mts.map +1 -1
  255. package/resources/qbd/other-charge-items.d.ts +16 -12
  256. package/resources/qbd/other-charge-items.d.ts.map +1 -1
  257. package/resources/qbd/other-charge-items.mjs.map +1 -1
  258. package/resources/qbd/other-names.d.mts +4 -0
  259. package/resources/qbd/other-names.d.mts.map +1 -1
  260. package/resources/qbd/other-names.d.ts +4 -0
  261. package/resources/qbd/other-names.d.ts.map +1 -1
  262. package/resources/qbd/other-names.mjs.map +1 -1
  263. package/resources/qbd/payment-methods.d.mts.map +1 -1
  264. package/resources/qbd/payment-methods.d.ts.map +1 -1
  265. package/resources/qbd/payment-methods.mjs.map +1 -1
  266. package/resources/qbd/payments-to-deposit.d.mts.map +1 -1
  267. package/resources/qbd/payments-to-deposit.d.ts.map +1 -1
  268. package/resources/qbd/payments-to-deposit.mjs.map +1 -1
  269. package/resources/qbd/payroll-wage-items.d.mts.map +1 -1
  270. package/resources/qbd/payroll-wage-items.d.ts.map +1 -1
  271. package/resources/qbd/payroll-wage-items.mjs.map +1 -1
  272. package/resources/qbd/preferences.d.mts.map +1 -1
  273. package/resources/qbd/preferences.d.ts.map +1 -1
  274. package/resources/qbd/preferences.mjs.map +1 -1
  275. package/resources/qbd/price-levels.d.mts.map +1 -1
  276. package/resources/qbd/price-levels.d.ts.map +1 -1
  277. package/resources/qbd/price-levels.mjs.map +1 -1
  278. package/resources/qbd/purchase-orders.d.mts +44 -33
  279. package/resources/qbd/purchase-orders.d.mts.map +1 -1
  280. package/resources/qbd/purchase-orders.d.ts +44 -33
  281. package/resources/qbd/purchase-orders.d.ts.map +1 -1
  282. package/resources/qbd/purchase-orders.mjs.map +1 -1
  283. package/resources/qbd/qbd.d.mts +4 -0
  284. package/resources/qbd/qbd.d.mts.map +1 -1
  285. package/resources/qbd/qbd.d.ts +4 -0
  286. package/resources/qbd/qbd.d.ts.map +1 -1
  287. package/resources/qbd/qbd.js +4 -0
  288. package/resources/qbd/qbd.js.map +1 -1
  289. package/resources/qbd/qbd.mjs +4 -0
  290. package/resources/qbd/qbd.mjs.map +1 -1
  291. package/resources/qbd/receive-payments.d.mts +57 -61
  292. package/resources/qbd/receive-payments.d.mts.map +1 -1
  293. package/resources/qbd/receive-payments.d.ts +57 -61
  294. package/resources/qbd/receive-payments.d.ts.map +1 -1
  295. package/resources/qbd/receive-payments.mjs.map +1 -1
  296. package/resources/qbd/reports.d.mts.map +1 -1
  297. package/resources/qbd/reports.d.ts.map +1 -1
  298. package/resources/qbd/reports.mjs.map +1 -1
  299. package/resources/qbd/sales-orders.d.mts +44 -33
  300. package/resources/qbd/sales-orders.d.mts.map +1 -1
  301. package/resources/qbd/sales-orders.d.ts +44 -33
  302. package/resources/qbd/sales-orders.d.ts.map +1 -1
  303. package/resources/qbd/sales-orders.mjs.map +1 -1
  304. package/resources/qbd/sales-receipts.d.mts +44 -33
  305. package/resources/qbd/sales-receipts.d.mts.map +1 -1
  306. package/resources/qbd/sales-receipts.d.ts +44 -33
  307. package/resources/qbd/sales-receipts.d.ts.map +1 -1
  308. package/resources/qbd/sales-receipts.mjs.map +1 -1
  309. package/resources/qbd/sales-representatives.d.mts.map +1 -1
  310. package/resources/qbd/sales-representatives.d.ts.map +1 -1
  311. package/resources/qbd/sales-representatives.mjs.map +1 -1
  312. package/resources/qbd/sales-tax-codes.d.mts.map +1 -1
  313. package/resources/qbd/sales-tax-codes.d.ts.map +1 -1
  314. package/resources/qbd/sales-tax-codes.mjs.map +1 -1
  315. package/resources/qbd/sales-tax-items.d.mts.map +1 -1
  316. package/resources/qbd/sales-tax-items.d.ts.map +1 -1
  317. package/resources/qbd/sales-tax-items.mjs.map +1 -1
  318. package/resources/qbd/service-items.d.mts +16 -12
  319. package/resources/qbd/service-items.d.mts.map +1 -1
  320. package/resources/qbd/service-items.d.ts +16 -12
  321. package/resources/qbd/service-items.d.ts.map +1 -1
  322. package/resources/qbd/service-items.mjs.map +1 -1
  323. package/resources/qbd/shipping-methods.d.mts.map +1 -1
  324. package/resources/qbd/shipping-methods.d.ts.map +1 -1
  325. package/resources/qbd/shipping-methods.mjs.map +1 -1
  326. package/resources/qbd/standard-terms.d.mts.map +1 -1
  327. package/resources/qbd/standard-terms.d.ts.map +1 -1
  328. package/resources/qbd/standard-terms.mjs.map +1 -1
  329. package/resources/qbd/subtotal-items.d.mts.map +1 -1
  330. package/resources/qbd/subtotal-items.d.ts.map +1 -1
  331. package/resources/qbd/subtotal-items.mjs.map +1 -1
  332. package/resources/qbd/templates.d.mts.map +1 -1
  333. package/resources/qbd/templates.d.ts.map +1 -1
  334. package/resources/qbd/templates.mjs.map +1 -1
  335. package/resources/qbd/time-tracking-activities.d.mts.map +1 -1
  336. package/resources/qbd/time-tracking-activities.d.ts.map +1 -1
  337. package/resources/qbd/time-tracking-activities.mjs.map +1 -1
  338. package/resources/qbd/transactions.d.mts.map +1 -1
  339. package/resources/qbd/transactions.d.ts.map +1 -1
  340. package/resources/qbd/transactions.mjs.map +1 -1
  341. package/resources/qbd/transfers.d.mts.map +1 -1
  342. package/resources/qbd/transfers.d.ts.map +1 -1
  343. package/resources/qbd/transfers.mjs.map +1 -1
  344. package/resources/qbd/unit-of-measure-sets.d.mts.map +1 -1
  345. package/resources/qbd/unit-of-measure-sets.d.ts.map +1 -1
  346. package/resources/qbd/unit-of-measure-sets.mjs.map +1 -1
  347. package/resources/qbd/vendor-credits.d.mts +72 -59
  348. package/resources/qbd/vendor-credits.d.mts.map +1 -1
  349. package/resources/qbd/vendor-credits.d.ts +72 -59
  350. package/resources/qbd/vendor-credits.d.ts.map +1 -1
  351. package/resources/qbd/vendor-credits.mjs.map +1 -1
  352. package/resources/qbd/vendors.d.mts +20 -12
  353. package/resources/qbd/vendors.d.mts.map +1 -1
  354. package/resources/qbd/vendors.d.ts +20 -12
  355. package/resources/qbd/vendors.d.ts.map +1 -1
  356. package/resources/qbd/vendors.mjs.map +1 -1
  357. package/resources/qbd.d.mts.map +1 -1
  358. package/resources/qbd.d.ts.map +1 -1
  359. package/resources/qbd.mjs.map +1 -1
  360. package/resources.d.mts.map +1 -1
  361. package/resources.d.ts.map +1 -1
  362. package/resources.mjs.map +1 -1
  363. package/src/resources/qbd/accounts.ts +16 -12
  364. package/src/resources/qbd/bill-check-payments.ts +51 -57
  365. package/src/resources/qbd/bill-credit-card-payments.ts +37 -42
  366. package/src/resources/qbd/bills-to-pay.ts +401 -0
  367. package/src/resources/qbd/bills.ts +90 -62
  368. package/src/resources/qbd/checks.ts +60 -45
  369. package/src/resources/qbd/company.ts +1 -0
  370. package/src/resources/qbd/credit-card-charges.ts +60 -45
  371. package/src/resources/qbd/credit-card-credits.ts +60 -45
  372. package/src/resources/qbd/credit-card-refunds.ts +8 -7
  373. package/src/resources/qbd/credit-memos.ts +52 -41
  374. package/src/resources/qbd/customers.ts +20 -12
  375. package/src/resources/qbd/discount-items.ts +16 -12
  376. package/src/resources/qbd/estimates.ts +44 -33
  377. package/src/resources/qbd/index.ts +6 -0
  378. package/src/resources/qbd/inventory-assembly-items.ts +16 -12
  379. package/src/resources/qbd/inventory-items.ts +16 -12
  380. package/src/resources/qbd/invoices.ts +57 -47
  381. package/src/resources/qbd/item-receipts.ts +66 -53
  382. package/src/resources/qbd/item-sites.ts +12 -0
  383. package/src/resources/qbd/journal-entries.ts +1 -1
  384. package/src/resources/qbd/non-inventory-items.ts +16 -12
  385. package/src/resources/qbd/other-charge-items.ts +16 -12
  386. package/src/resources/qbd/other-names.ts +4 -0
  387. package/src/resources/qbd/purchase-orders.ts +44 -33
  388. package/src/resources/qbd/qbd.ts +11 -0
  389. package/src/resources/qbd/receive-payments.ts +57 -61
  390. package/src/resources/qbd/sales-orders.ts +44 -33
  391. package/src/resources/qbd/sales-receipts.ts +44 -33
  392. package/src/resources/qbd/service-items.ts +16 -12
  393. package/src/resources/qbd/vendor-credits.ts +72 -59
  394. package/src/resources/qbd/vendors.ts +20 -12
  395. package/src/version.ts +1 -1
  396. package/uploads.d.mts +1 -0
  397. package/uploads.d.mts.map +1 -1
  398. package/uploads.d.ts +1 -0
  399. package/uploads.d.ts.map +1 -1
  400. package/uploads.mjs +1 -0
  401. package/uploads.mjs.map +1 -1
  402. package/version.d.mts +1 -1
  403. package/version.d.ts +1 -1
  404. package/version.js +1 -1
  405. package/version.mjs +1 -1
@@ -0,0 +1,295 @@
1
+ import { APIResource } from "../../core/resource.js";
2
+ import { APIPromise } from "../../core/api-promise.js";
3
+ import { RequestOptions } from "../../internal/request-options.js";
4
+ export declare class BillsToPay extends APIResource {
5
+ /**
6
+ * Lists open vendor bills and available vendor credits for a specific QuickBooks
7
+ * Desktop vendor. Use each `bill.billId` as `applyToTransactions[].transactionId`
8
+ * in bill-payment requests. To apply a returned credit, place it under the target
9
+ * bill's `applyToTransactions[].applyCredits[]` entry, set `creditTransactionId`
10
+ * to `credit.creditTransactionId`, and choose an `appliedAmount` that does not
11
+ * exceed `credit.creditRemaining` or the target bill's remaining amount due.
12
+ *
13
+ * **NOTE:** QuickBooks Desktop does not support pagination for bills to pay;
14
+ * hence, there is no `cursor` parameter. Users typically have few bills to pay.
15
+ *
16
+ * @example
17
+ * ```ts
18
+ * const billsToPays = await conductor.qbd.billsToPay.list({
19
+ * vendorId: '80000001-1234567890',
20
+ * conductorEndUserId: 'end_usr_1234567abcdefg',
21
+ * });
22
+ * ```
23
+ */
24
+ list(params: BillsToPayListParams, options?: RequestOptions): APIPromise<BillsToPayListResponse>;
25
+ }
26
+ export interface BillToPay {
27
+ /**
28
+ * The open bill with a positive amount due that can be paid for the requested
29
+ * vendor. In each bills-to-pay result, either `bill` is an object and `credit` is
30
+ * `null`, or `credit` is an object and `bill` is `null`.
31
+ */
32
+ bill: BillToPay.Bill | null;
33
+ /**
34
+ * The vendor credit linked to the requested vendor that can be applied to open
35
+ * bills. In each bills-to-pay result, either `credit` is an object and `bill` is
36
+ * `null`, or `bill` is an object and `credit` is `null`.
37
+ */
38
+ credit: BillToPay.Credit | null;
39
+ }
40
+ export declare namespace BillToPay {
41
+ /**
42
+ * The open bill with a positive amount due that can be paid for the requested
43
+ * vendor. In each bills-to-pay result, either `bill` is an object and `credit` is
44
+ * `null`, or `credit` is an object and `bill` is `null`.
45
+ */
46
+ interface Bill {
47
+ /**
48
+ * The amount QuickBooks Desktop reports as due and available to pay for this open
49
+ * bill, represented as a decimal string. Use this value as the candidate
50
+ * `applyToTransactions[].paymentAmount` when creating a bill payment; reduce the
51
+ * payment by any credits you apply.
52
+ */
53
+ amountDue: string;
54
+ /**
55
+ * The monetary amount due for this payable bill converted to the home currency of
56
+ * the QuickBooks company file. Represented as a decimal string.
57
+ */
58
+ amountDueInHomeCurrency: string | null;
59
+ /**
60
+ * The ID of the open bill available to pay. Pass this value as `transactionId` in
61
+ * a bill-payment `applyToTransactions` entry.
62
+ */
63
+ billId: string;
64
+ /**
65
+ * The payable bill's currency. For built-in currencies, the name and code are
66
+ * standard ISO 4217 international values. For user-defined currencies, all values
67
+ * are editable.
68
+ */
69
+ currency: Bill.Currency | null;
70
+ /**
71
+ * The date by which this payable bill must be paid, in ISO 8601 format
72
+ * (YYYY-MM-DD).
73
+ */
74
+ dueDate: string | null;
75
+ /**
76
+ * The market exchange rate between this payable bill's currency and the home
77
+ * currency in QuickBooks at the time of this transaction. Represented as a decimal
78
+ * value (e.g., 1.2345 for 1 EUR = 1.2345 USD if USD is the home currency).
79
+ */
80
+ exchangeRate: number | null;
81
+ /**
82
+ * The Accounts-Payable (A/P) account to which this payable bill is assigned, used
83
+ * for accounts-payable tracking.
84
+ *
85
+ * **IMPORTANT**: If this payable bill is linked to other transactions, this A/P
86
+ * account must match the `payablesAccount` used in those other transactions.
87
+ */
88
+ payablesAccount: Bill.PayablesAccount;
89
+ /**
90
+ * The case-sensitive user-defined reference number for this payable bill, which
91
+ * can be used to identify the transaction in QuickBooks. This value is not
92
+ * required to be unique and can be arbitrarily changed by the QuickBooks user.
93
+ */
94
+ refNumber: string | null;
95
+ /**
96
+ * The date of this payable bill, in ISO 8601 format (YYYY-MM-DD).
97
+ */
98
+ transactionDate: string;
99
+ /**
100
+ * The type of transaction for this payable bill.
101
+ */
102
+ transactionType: 'ar_refund_credit_card' | 'bill' | 'bill_payment_check' | 'bill_payment_credit_card' | 'build_assembly' | 'charge' | 'check' | 'credit_card_charge' | 'credit_card_credit' | 'credit_memo' | 'deposit' | 'estimate' | 'inventory_adjustment' | 'invoice' | 'item_receipt' | 'journal_entry' | 'liability_adjustment' | 'paycheck' | 'payroll_liability_check' | 'purchase_order' | 'receive_payment' | 'sales_order' | 'sales_receipt' | 'sales_tax_payment_check' | 'transfer' | 'vendor_credit' | 'ytd_adjustment';
103
+ }
104
+ namespace Bill {
105
+ /**
106
+ * The payable bill's currency. For built-in currencies, the name and code are
107
+ * standard ISO 4217 international values. For user-defined currencies, all values
108
+ * are editable.
109
+ */
110
+ interface Currency {
111
+ /**
112
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
113
+ * across all objects of the same type, but not across different QuickBooks object
114
+ * types.
115
+ */
116
+ id: string | null;
117
+ /**
118
+ * The fully-qualified unique name for this object, formed by combining the names
119
+ * of its parent objects with its own `name`, separated by colons. Not
120
+ * case-sensitive.
121
+ */
122
+ fullName: string | null;
123
+ }
124
+ /**
125
+ * The Accounts-Payable (A/P) account to which this payable bill is assigned, used
126
+ * for accounts-payable tracking.
127
+ *
128
+ * **IMPORTANT**: If this payable bill is linked to other transactions, this A/P
129
+ * account must match the `payablesAccount` used in those other transactions.
130
+ */
131
+ interface PayablesAccount {
132
+ /**
133
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
134
+ * across all objects of the same type, but not across different QuickBooks object
135
+ * types.
136
+ */
137
+ id: string | null;
138
+ /**
139
+ * The fully-qualified unique name for this object, formed by combining the names
140
+ * of its parent objects with its own `name`, separated by colons. Not
141
+ * case-sensitive.
142
+ */
143
+ fullName: string | null;
144
+ }
145
+ }
146
+ /**
147
+ * The vendor credit linked to the requested vendor that can be applied to open
148
+ * bills. In each bills-to-pay result, either `credit` is an object and `bill` is
149
+ * `null`, or `bill` is an object and `credit` is `null`.
150
+ */
151
+ interface Credit {
152
+ /**
153
+ * The remaining vendor credit available to apply to open bills, represented as a
154
+ * decimal string. When applying this credit to a bill-payment request, choose an
155
+ * `applyToTransactions[].applyCredits[].appliedAmount` that does not exceed this
156
+ * value or the target bill's remaining amount due.
157
+ */
158
+ creditRemaining: string;
159
+ /**
160
+ * The remaining balance of this applicable credit converted to the home currency
161
+ * of the QuickBooks company file. Represented as a decimal string.
162
+ */
163
+ creditRemainingInHomeCurrency: string | null;
164
+ /**
165
+ * The ID of the credit transaction available to apply to the vendor's open bills.
166
+ * To apply this credit in a bill-payment request, place it under the target bill's
167
+ * `applyToTransactions[].applyCredits[]` entry and pass this value as
168
+ * `creditTransactionId`.
169
+ */
170
+ creditTransactionId: string;
171
+ /**
172
+ * The applicable credit's currency. For built-in currencies, the name and code are
173
+ * standard ISO 4217 international values. For user-defined currencies, all values
174
+ * are editable.
175
+ */
176
+ currency: Credit.Currency | null;
177
+ /**
178
+ * The market exchange rate between this applicable credit's currency and the home
179
+ * currency in QuickBooks at the time of this transaction. Represented as a decimal
180
+ * value (e.g., 1.2345 for 1 EUR = 1.2345 USD if USD is the home currency).
181
+ */
182
+ exchangeRate: number | null;
183
+ /**
184
+ * The Accounts-Payable (A/P) account to which this applicable credit is assigned,
185
+ * used for accounts-payable tracking.
186
+ *
187
+ * **IMPORTANT**: If this applicable credit is linked to other transactions, this
188
+ * A/P account must match the `payablesAccount` used in those other transactions.
189
+ */
190
+ payablesAccount: Credit.PayablesAccount;
191
+ /**
192
+ * The case-sensitive user-defined reference number for this applicable credit,
193
+ * which can be used to identify the transaction in QuickBooks. This value is not
194
+ * required to be unique and can be arbitrarily changed by the QuickBooks user.
195
+ */
196
+ refNumber: string | null;
197
+ /**
198
+ * The date of this applicable credit, in ISO 8601 format (YYYY-MM-DD).
199
+ */
200
+ transactionDate: string;
201
+ /**
202
+ * The type of transaction for this applicable credit.
203
+ */
204
+ transactionType: 'ar_refund_credit_card' | 'bill' | 'bill_payment_check' | 'bill_payment_credit_card' | 'build_assembly' | 'charge' | 'check' | 'credit_card_charge' | 'credit_card_credit' | 'credit_memo' | 'deposit' | 'estimate' | 'inventory_adjustment' | 'invoice' | 'item_receipt' | 'journal_entry' | 'liability_adjustment' | 'paycheck' | 'payroll_liability_check' | 'purchase_order' | 'receive_payment' | 'sales_order' | 'sales_receipt' | 'sales_tax_payment_check' | 'transfer' | 'vendor_credit' | 'ytd_adjustment';
205
+ }
206
+ namespace Credit {
207
+ /**
208
+ * The applicable credit's currency. For built-in currencies, the name and code are
209
+ * standard ISO 4217 international values. For user-defined currencies, all values
210
+ * are editable.
211
+ */
212
+ interface Currency {
213
+ /**
214
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
215
+ * across all objects of the same type, but not across different QuickBooks object
216
+ * types.
217
+ */
218
+ id: string | null;
219
+ /**
220
+ * The fully-qualified unique name for this object, formed by combining the names
221
+ * of its parent objects with its own `name`, separated by colons. Not
222
+ * case-sensitive.
223
+ */
224
+ fullName: string | null;
225
+ }
226
+ /**
227
+ * The Accounts-Payable (A/P) account to which this applicable credit is assigned,
228
+ * used for accounts-payable tracking.
229
+ *
230
+ * **IMPORTANT**: If this applicable credit is linked to other transactions, this
231
+ * A/P account must match the `payablesAccount` used in those other transactions.
232
+ */
233
+ interface PayablesAccount {
234
+ /**
235
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
236
+ * across all objects of the same type, but not across different QuickBooks object
237
+ * types.
238
+ */
239
+ id: string | null;
240
+ /**
241
+ * The fully-qualified unique name for this object, formed by combining the names
242
+ * of its parent objects with its own `name`, separated by colons. Not
243
+ * case-sensitive.
244
+ */
245
+ fullName: string | null;
246
+ }
247
+ }
248
+ }
249
+ export interface BillsToPayListResponse {
250
+ /**
251
+ * The array of bills-to-pay records. Each record has either a `bill` object or a
252
+ * `credit` object, and the other branch is `null`.
253
+ */
254
+ data: Array<BillToPay>;
255
+ /**
256
+ * The type of object. This value is always `"list"`.
257
+ */
258
+ objectType: 'list';
259
+ /**
260
+ * The endpoint URL where this list can be accessed.
261
+ */
262
+ url: string;
263
+ }
264
+ export interface BillsToPayListParams {
265
+ /**
266
+ * Query param: The vendor whose open bills and available credits should be
267
+ * returned.
268
+ */
269
+ vendorId: string;
270
+ /**
271
+ * Header param: The ID of the End-User to receive this request.
272
+ */
273
+ conductorEndUserId: string;
274
+ /**
275
+ * Query param: Filter for open bills and available credits in these currencies.
276
+ */
277
+ currencyIds?: Array<string>;
278
+ /**
279
+ * Query param: Filter the bill branch to open bills due on or before this date, in
280
+ * ISO 8601 format (YYYY-MM-DD). If omitted, QuickBooks Desktop returns open bills
281
+ * from all due dates. Available credits can still be returned because credits do
282
+ * not have a due date.
283
+ */
284
+ dueDate?: string;
285
+ /**
286
+ * Query param: Filter for open bills and available credits assigned to this
287
+ * Accounts-Payable account. If omitted, QuickBooks Desktop uses the default A/P
288
+ * account configured in the company file.
289
+ */
290
+ payablesAccountId?: string;
291
+ }
292
+ export declare namespace BillsToPay {
293
+ export { type BillToPay as BillToPay, type BillsToPayListResponse as BillsToPayListResponse, type BillsToPayListParams as BillsToPayListParams, };
294
+ }
295
+ //# sourceMappingURL=bills-to-pay.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bills-to-pay.d.ts","sourceRoot":"","sources":["../../src/resources/qbd/bills-to-pay.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.BillsToPay = void 0;
5
+ const resource_1 = require("../../core/resource.js");
6
+ const headers_1 = require("../../internal/headers.js");
7
+ class BillsToPay extends resource_1.APIResource {
8
+ /**
9
+ * Lists open vendor bills and available vendor credits for a specific QuickBooks
10
+ * Desktop vendor. Use each `bill.billId` as `applyToTransactions[].transactionId`
11
+ * in bill-payment requests. To apply a returned credit, place it under the target
12
+ * bill's `applyToTransactions[].applyCredits[]` entry, set `creditTransactionId`
13
+ * to `credit.creditTransactionId`, and choose an `appliedAmount` that does not
14
+ * exceed `credit.creditRemaining` or the target bill's remaining amount due.
15
+ *
16
+ * **NOTE:** QuickBooks Desktop does not support pagination for bills to pay;
17
+ * hence, there is no `cursor` parameter. Users typically have few bills to pay.
18
+ *
19
+ * @example
20
+ * ```ts
21
+ * const billsToPays = await conductor.qbd.billsToPay.list({
22
+ * vendorId: '80000001-1234567890',
23
+ * conductorEndUserId: 'end_usr_1234567abcdefg',
24
+ * });
25
+ * ```
26
+ */
27
+ list(params, options) {
28
+ const { conductorEndUserId, ...query } = params;
29
+ return this._client.get('/quickbooks-desktop/bills-to-pay', {
30
+ query,
31
+ ...options,
32
+ headers: (0, headers_1.buildHeaders)([{ 'Conductor-End-User-Id': conductorEndUserId }, options?.headers]),
33
+ });
34
+ }
35
+ }
36
+ exports.BillsToPay = BillsToPay;
37
+ //# sourceMappingURL=bills-to-pay.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bills-to-pay.js","sourceRoot":"","sources":["../../src/resources/qbd/bills-to-pay.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAGtD,MAAa,UAAW,SAAQ,sBAAW;IACzC;;;;;;;;;;;;;;;;;;OAkBG;IACH,IAAI,CAAC,MAA4B,EAAE,OAAwB;QACzD,MAAM,EAAE,kBAAkB,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kCAAkC,EAAE;YAC1D,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC3F,CAAC,CAAC;IACL,CAAC;CACF;AA5BD,gCA4BC"}
@@ -0,0 +1,33 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../core/resource.mjs";
3
+ import { buildHeaders } from "../../internal/headers.mjs";
4
+ export class BillsToPay extends APIResource {
5
+ /**
6
+ * Lists open vendor bills and available vendor credits for a specific QuickBooks
7
+ * Desktop vendor. Use each `bill.billId` as `applyToTransactions[].transactionId`
8
+ * in bill-payment requests. To apply a returned credit, place it under the target
9
+ * bill's `applyToTransactions[].applyCredits[]` entry, set `creditTransactionId`
10
+ * to `credit.creditTransactionId`, and choose an `appliedAmount` that does not
11
+ * exceed `credit.creditRemaining` or the target bill's remaining amount due.
12
+ *
13
+ * **NOTE:** QuickBooks Desktop does not support pagination for bills to pay;
14
+ * hence, there is no `cursor` parameter. Users typically have few bills to pay.
15
+ *
16
+ * @example
17
+ * ```ts
18
+ * const billsToPays = await conductor.qbd.billsToPay.list({
19
+ * vendorId: '80000001-1234567890',
20
+ * conductorEndUserId: 'end_usr_1234567abcdefg',
21
+ * });
22
+ * ```
23
+ */
24
+ list(params, options) {
25
+ const { conductorEndUserId, ...query } = params;
26
+ return this._client.get('/quickbooks-desktop/bills-to-pay', {
27
+ query,
28
+ ...options,
29
+ headers: buildHeaders([{ 'Conductor-End-User-Id': conductorEndUserId }, options?.headers]),
30
+ });
31
+ }
32
+ }
33
+ //# sourceMappingURL=bills-to-pay.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bills-to-pay.mjs","sourceRoot":"","sources":["../../src/resources/qbd/bills-to-pay.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAGtD,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;;;;;;;OAkBG;IACH,IAAI,CAAC,MAA4B,EAAE,OAAwB;QACzD,MAAM,EAAE,kBAAkB,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kCAAkC,EAAE;YAC1D,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC3F,CAAC,CAAC;IACL,CAAC;CACF"}