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 @@
1
+ {"version":3,"file":"inventory-items.d.ts","sourceRoot":"","sources":["../../src/resources/qbd/inventory-items.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAErE,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;OAEG;IACH,MAAM,CAAC,MAAM,EAAE,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,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEzB;;;;;;;;;;;;;OAaG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE1B;;;;;;;;;OASG;IACH,GAAG,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEpB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,MAAM,CAAC,EAAE,QAAQ,GAAG,KAAK,GAAG,UAAU,CAAC;IAEvC;;;;;;;;;;OAUG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;;;;;;;;OAUG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAID,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,aAAa,IAAI,aAAa,EACnC,wBAAwB,IAAI,wBAAwB,EACpD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
@@ -0,0 +1,58 @@
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.InventoryItemsCursorPage = exports.InventoryItems = void 0;
5
+ const resource_1 = require("../../resource.js");
6
+ const pagination_1 = require("../../pagination.js");
7
+ class InventoryItems extends resource_1.APIResource {
8
+ /**
9
+ * Creates a new inventory item.
10
+ */
11
+ create(params, options) {
12
+ const { conductorEndUserId, ...body } = params;
13
+ return this._client.post('/quickbooks-desktop/inventory-items', {
14
+ body,
15
+ ...options,
16
+ headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
17
+ });
18
+ }
19
+ /**
20
+ * Retrieves an inventory item by ID.
21
+ */
22
+ retrieve(id, params, options) {
23
+ const { conductorEndUserId } = params;
24
+ return this._client.get(`/quickbooks-desktop/inventory-items/${id}`, {
25
+ ...options,
26
+ headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
27
+ });
28
+ }
29
+ /**
30
+ * Updates an existing inventory item.
31
+ */
32
+ update(id, params, options) {
33
+ const { conductorEndUserId, ...body } = params;
34
+ return this._client.post(`/quickbooks-desktop/inventory-items/${id}`, {
35
+ body,
36
+ ...options,
37
+ headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
38
+ });
39
+ }
40
+ /**
41
+ * Returns a list of inventory items. Use the `cursor` parameter to paginate
42
+ * through the results.
43
+ */
44
+ list(params, options) {
45
+ const { conductorEndUserId, ...query } = params;
46
+ return this._client.getAPIList('/quickbooks-desktop/inventory-items', InventoryItemsCursorPage, {
47
+ query,
48
+ ...options,
49
+ headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
50
+ });
51
+ }
52
+ }
53
+ exports.InventoryItems = InventoryItems;
54
+ class InventoryItemsCursorPage extends pagination_1.CursorPage {
55
+ }
56
+ exports.InventoryItemsCursorPage = InventoryItemsCursorPage;
57
+ InventoryItems.InventoryItemsCursorPage = InventoryItemsCursorPage;
58
+ //# sourceMappingURL=inventory-items.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inventory-items.js","sourceRoot":"","sources":["../../src/resources/qbd/inventory-items.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAE7C,oDAAqE;AAErE,MAAa,cAAe,SAAQ,sBAAW;IAC7C;;OAEG;IACH,MAAM,CAAC,MAAiC,EAAE,OAA6B;QACrE,MAAM,EAAE,kBAAkB,EA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,CAAC;IACL,CAAC;CACF;AA3DD,wCA2DC;AAED,MAAa,wBAAyB,SAAQ,uBAAyB;CAAG;AAA1E,4DAA0E;AAm7B1E,cAAc,CAAC,wBAAwB,GAAG,wBAAwB,CAAC"}
@@ -0,0 +1,53 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../resource.mjs";
3
+ import { CursorPage } from "../../pagination.mjs";
4
+ export class InventoryItems extends APIResource {
5
+ /**
6
+ * Creates a new inventory item.
7
+ */
8
+ create(params, options) {
9
+ const { conductorEndUserId, ...body } = params;
10
+ return this._client.post('/quickbooks-desktop/inventory-items', {
11
+ body,
12
+ ...options,
13
+ headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
14
+ });
15
+ }
16
+ /**
17
+ * Retrieves an inventory item by ID.
18
+ */
19
+ retrieve(id, params, options) {
20
+ const { conductorEndUserId } = params;
21
+ return this._client.get(`/quickbooks-desktop/inventory-items/${id}`, {
22
+ ...options,
23
+ headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
24
+ });
25
+ }
26
+ /**
27
+ * Updates an existing inventory item.
28
+ */
29
+ update(id, params, options) {
30
+ const { conductorEndUserId, ...body } = params;
31
+ return this._client.post(`/quickbooks-desktop/inventory-items/${id}`, {
32
+ body,
33
+ ...options,
34
+ headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
35
+ });
36
+ }
37
+ /**
38
+ * Returns a list of inventory items. Use the `cursor` parameter to paginate
39
+ * through the results.
40
+ */
41
+ list(params, options) {
42
+ const { conductorEndUserId, ...query } = params;
43
+ return this._client.getAPIList('/quickbooks-desktop/inventory-items', InventoryItemsCursorPage, {
44
+ query,
45
+ ...options,
46
+ headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
47
+ });
48
+ }
49
+ }
50
+ export class InventoryItemsCursorPage extends CursorPage {
51
+ }
52
+ InventoryItems.InventoryItemsCursorPage = InventoryItemsCursorPage;
53
+ //# sourceMappingURL=inventory-items.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inventory-items.mjs","sourceRoot":"","sources":["../../src/resources/qbd/inventory-items.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,UAAU,EAAyB;AAE5C,MAAM,OAAO,cAAe,SAAQ,WAAW;IAC7C;;OAEG;IACH,MAAM,CAAC,MAAiC,EAAE,OAA6B;QACrE,MAAM,EAAE,kBAAkB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qCAAqC,EAAE;YAC9D,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAC9E,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,MAAmC,EACnC,OAA6B;QAE7B,MAAM,EAAE,kBAAkB,EAAE,GAAG,MAAM,CAAC;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uCAAuC,EAAE,EAAE,EAAE;YACnE,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAC9E,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,EAAU,EACV,MAAiC,EACjC,OAA6B;QAE7B,MAAM,EAAE,kBAAkB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,uCAAuC,EAAE,EAAE,EAAE;YACpE,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAC9E,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,IAAI,CACF,MAA+B,EAC/B,OAA6B;QAE7B,MAAM,EAAE,kBAAkB,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,qCAAqC,EAAE,wBAAwB,EAAE;YAC9F,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAC9E,CAAC,CAAC;IACL,CAAC;CACF;AAED,MAAM,OAAO,wBAAyB,SAAQ,UAAyB;CAAG;AAm7B1E,cAAc,CAAC,wBAAwB,GAAG,wBAAwB,CAAC"}
@@ -0,0 +1,477 @@
1
+ import { APIResource } from "../../resource.js";
2
+ import * as Core from "../../core.js";
3
+ export declare class InventorySites extends APIResource {
4
+ /**
5
+ * Creates a new inventory site.
6
+ */
7
+ create(params: InventorySiteCreateParams, options?: Core.RequestOptions): Core.APIPromise<InventorySite>;
8
+ /**
9
+ * Retrieves an inventory site by ID.
10
+ */
11
+ retrieve(id: string, params: InventorySiteRetrieveParams, options?: Core.RequestOptions): Core.APIPromise<InventorySite>;
12
+ /**
13
+ * Updates an existing inventory site.
14
+ */
15
+ update(id: string, params: InventorySiteUpdateParams, options?: Core.RequestOptions): Core.APIPromise<InventorySite>;
16
+ /**
17
+ * Returns a list of inventory sites. NOTE: QuickBooks Desktop does not support
18
+ * pagination for inventory sites; hence, there is no `cursor` parameter. Users
19
+ * typically have few inventory sites.
20
+ */
21
+ list(params: InventorySiteListParams, options?: Core.RequestOptions): Core.APIPromise<InventorySiteListResponse>;
22
+ }
23
+ export interface InventorySite {
24
+ /**
25
+ * The unique identifier assigned by QuickBooks to this inventory site. This ID is
26
+ * unique across all inventory sites but not across different QuickBooks object
27
+ * types.
28
+ */
29
+ id: string;
30
+ /**
31
+ * The inventory site's address.
32
+ */
33
+ address: InventorySite.Address | null;
34
+ /**
35
+ * The name of the primary contact person for this inventory site.
36
+ */
37
+ contact: string | null;
38
+ /**
39
+ * The date and time when this inventory site was created, in ISO 8601 format
40
+ * (YYYY-MM-DDThh:mm:ss±hh:mm). The time zone is the same as the user's time zone
41
+ * in QuickBooks.
42
+ */
43
+ createdAt: string;
44
+ /**
45
+ * A description of this inventory site.
46
+ */
47
+ description: string | null;
48
+ /**
49
+ * The inventory site's email address.
50
+ */
51
+ email: string | null;
52
+ /**
53
+ * The inventory site's fax number.
54
+ */
55
+ fax: string | null;
56
+ /**
57
+ * Indicates whether this inventory site is active. Inactive objects are typically
58
+ * hidden from views and reports in QuickBooks. Defaults to `true`.
59
+ */
60
+ isActive: boolean;
61
+ /**
62
+ * Indicates whether this inventory site is the default site used when no specific
63
+ * site is provided during the creation of other objects.
64
+ */
65
+ isDefault: boolean | null;
66
+ /**
67
+ * The case-insensitive unique name of this inventory site, unique across all
68
+ * inventory sites.
69
+ *
70
+ * **NOTE**: Inventory sites do not have a `fullName` field because they are not
71
+ * hierarchical objects, which is why `name` is unique for them but not for objects
72
+ * that have parents.
73
+ */
74
+ name: string;
75
+ /**
76
+ * The type of object. This value is always `"qbd_inventory_site"`.
77
+ */
78
+ objectType: 'qbd_inventory_site';
79
+ /**
80
+ * The parent inventory site one level above this one in the hierarchy.
81
+ */
82
+ parent: InventorySite.Parent | null;
83
+ /**
84
+ * The inventory site's primary telephone number.
85
+ */
86
+ phone: string | null;
87
+ /**
88
+ * The current QuickBooks-assigned revision number of this inventory site object,
89
+ * which changes each time the object is modified. When updating this object, you
90
+ * must provide the most recent `revisionNumber` to ensure you're working with the
91
+ * latest data; otherwise, the update will return an error.
92
+ */
93
+ revisionNumber: string;
94
+ /**
95
+ * The date and time when this inventory site was last updated, in ISO 8601 format
96
+ * (YYYY-MM-DDThh:mm:ss±hh:mm). The time zone is the same as the user's time zone
97
+ * in QuickBooks.
98
+ */
99
+ updatedAt: string;
100
+ }
101
+ export declare namespace InventorySite {
102
+ /**
103
+ * The inventory site's address.
104
+ */
105
+ interface Address {
106
+ /**
107
+ * The city, district, suburb, town, or village name of the site address.
108
+ */
109
+ city: string | null;
110
+ /**
111
+ * The country name of the site address.
112
+ */
113
+ country: string | null;
114
+ /**
115
+ * The first line of the site address (e.g., street, PO Box, or company name).
116
+ */
117
+ line1: string | null;
118
+ /**
119
+ * The second line of the site address, if needed (e.g., apartment, suite, unit, or
120
+ * building).
121
+ */
122
+ line2: string | null;
123
+ /**
124
+ * The third line of the site address, if needed.
125
+ */
126
+ line3: string | null;
127
+ /**
128
+ * The fourth line of the site address, if needed.
129
+ */
130
+ line4: string | null;
131
+ /**
132
+ * The fifth line of the site address, if needed.
133
+ */
134
+ line5: string | null;
135
+ /**
136
+ * The postal code or ZIP code of the site address.
137
+ */
138
+ postalCode: string | null;
139
+ /**
140
+ * The state, county, province, or region name of the site address.
141
+ */
142
+ state: string | null;
143
+ }
144
+ /**
145
+ * The parent inventory site one level above this one in the hierarchy.
146
+ */
147
+ interface Parent {
148
+ /**
149
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
150
+ * across all objects of the same type, but not across different QuickBooks object
151
+ * types.
152
+ */
153
+ id: string | null;
154
+ /**
155
+ * The fully-qualified unique name for this object, formed by combining the names
156
+ * of its parent objects with its own `name`, separated by colons. Not
157
+ * case-sensitive.
158
+ */
159
+ fullName: string | null;
160
+ }
161
+ }
162
+ export interface InventorySiteListResponse {
163
+ /**
164
+ * The array of inventory sites.
165
+ */
166
+ data: Array<InventorySite>;
167
+ /**
168
+ * The type of object. This value is always `"list"`.
169
+ */
170
+ objectType: 'list';
171
+ /**
172
+ * The endpoint URL where this list can be accessed.
173
+ */
174
+ url: string;
175
+ }
176
+ export interface InventorySiteCreateParams {
177
+ /**
178
+ * Body param: The case-insensitive unique name of this inventory site, unique
179
+ * across all inventory sites.
180
+ *
181
+ * **NOTE**: Inventory sites do not have a `fullName` field because they are not
182
+ * hierarchical objects, which is why `name` is unique for them but not for objects
183
+ * that have parents.
184
+ *
185
+ * Maximum length: 31 characters.
186
+ */
187
+ name: string;
188
+ /**
189
+ * Header param: The ID of the EndUser to receive this request (e.g.,
190
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
191
+ */
192
+ conductorEndUserId: string;
193
+ /**
194
+ * Body param: The inventory site's address.
195
+ */
196
+ address?: InventorySiteCreateParams.Address;
197
+ /**
198
+ * Body param: A description of this inventory site.
199
+ */
200
+ description?: string;
201
+ /**
202
+ * Body param: The inventory site's email address.
203
+ */
204
+ email?: string;
205
+ /**
206
+ * Body param: Indicates whether this inventory site is active. Inactive objects
207
+ * are typically hidden from views and reports in QuickBooks. Defaults to `true`.
208
+ */
209
+ isActive?: boolean;
210
+ /**
211
+ * Body param: The parent inventory site one level above this one in the hierarchy.
212
+ */
213
+ parentId?: string;
214
+ }
215
+ export declare namespace InventorySiteCreateParams {
216
+ /**
217
+ * The inventory site's address.
218
+ */
219
+ interface Address {
220
+ /**
221
+ * The city, district, suburb, town, or village name of the site address.
222
+ *
223
+ * Maximum length: 31 characters.
224
+ */
225
+ city?: string;
226
+ /**
227
+ * The country name of the site address.
228
+ */
229
+ country?: string;
230
+ /**
231
+ * The first line of the site address (e.g., street, PO Box, or company name).
232
+ *
233
+ * Maximum length: 41 characters.
234
+ */
235
+ line1?: string;
236
+ /**
237
+ * The second line of the site address, if needed (e.g., apartment, suite, unit, or
238
+ * building).
239
+ *
240
+ * Maximum length: 41 characters.
241
+ */
242
+ line2?: string;
243
+ /**
244
+ * The third line of the site address, if needed.
245
+ *
246
+ * Maximum length: 41 characters.
247
+ */
248
+ line3?: string;
249
+ /**
250
+ * The fourth line of the site address, if needed.
251
+ *
252
+ * Maximum length: 41 characters.
253
+ */
254
+ line4?: string;
255
+ /**
256
+ * The fifth line of the site address, if needed.
257
+ *
258
+ * Maximum length: 41 characters.
259
+ */
260
+ line5?: string;
261
+ /**
262
+ * The postal code or ZIP code of the site address.
263
+ *
264
+ * Maximum length: 13 characters.
265
+ */
266
+ postalCode?: string;
267
+ /**
268
+ * The state, county, province, or region name of the site address.
269
+ *
270
+ * Maximum length: 21 characters.
271
+ */
272
+ state?: string;
273
+ }
274
+ }
275
+ export interface InventorySiteRetrieveParams {
276
+ /**
277
+ * The ID of the EndUser to receive this request (e.g.,
278
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
279
+ */
280
+ conductorEndUserId: string;
281
+ }
282
+ export interface InventorySiteUpdateParams {
283
+ /**
284
+ * Body param: The current QuickBooks-assigned revision number of the inventory
285
+ * site object you are updating, which you can get by fetching the object first.
286
+ * Provide the most recent `revisionNumber` to ensure you're working with the
287
+ * latest data; otherwise, the update will return an error.
288
+ */
289
+ revisionNumber: string;
290
+ /**
291
+ * Header param: The ID of the EndUser to receive this request (e.g.,
292
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
293
+ */
294
+ conductorEndUserId: string;
295
+ /**
296
+ * Body param: The inventory site's address.
297
+ */
298
+ address?: InventorySiteUpdateParams.Address;
299
+ /**
300
+ * Body param: The name of the primary contact person for this inventory site.
301
+ */
302
+ contact?: string;
303
+ /**
304
+ * Body param: A description of this inventory site.
305
+ */
306
+ description?: string;
307
+ /**
308
+ * Body param: The inventory site's email address.
309
+ */
310
+ email?: string;
311
+ /**
312
+ * Body param: The inventory site's fax number.
313
+ */
314
+ fax?: string;
315
+ /**
316
+ * Body param: Indicates whether this inventory site is active. Inactive objects
317
+ * are typically hidden from views and reports in QuickBooks. Defaults to `true`.
318
+ */
319
+ isActive?: boolean;
320
+ /**
321
+ * Body param: The case-insensitive unique name of this inventory site, unique
322
+ * across all inventory sites.
323
+ *
324
+ * **NOTE**: Inventory sites do not have a `fullName` field because they are not
325
+ * hierarchical objects, which is why `name` is unique for them but not for objects
326
+ * that have parents.
327
+ *
328
+ * Maximum length: 31 characters.
329
+ */
330
+ name?: string;
331
+ /**
332
+ * Body param: The parent inventory site one level above this one in the hierarchy.
333
+ */
334
+ parentId?: string;
335
+ /**
336
+ * Body param: The inventory site's primary telephone number.
337
+ */
338
+ phone?: string;
339
+ }
340
+ export declare namespace InventorySiteUpdateParams {
341
+ /**
342
+ * The inventory site's address.
343
+ */
344
+ interface Address {
345
+ /**
346
+ * The city, district, suburb, town, or village name of the site address.
347
+ *
348
+ * Maximum length: 31 characters.
349
+ */
350
+ city?: string;
351
+ /**
352
+ * The country name of the site address.
353
+ */
354
+ country?: string;
355
+ /**
356
+ * The first line of the site address (e.g., street, PO Box, or company name).
357
+ *
358
+ * Maximum length: 41 characters.
359
+ */
360
+ line1?: string;
361
+ /**
362
+ * The second line of the site address, if needed (e.g., apartment, suite, unit, or
363
+ * building).
364
+ *
365
+ * Maximum length: 41 characters.
366
+ */
367
+ line2?: string;
368
+ /**
369
+ * The third line of the site address, if needed.
370
+ *
371
+ * Maximum length: 41 characters.
372
+ */
373
+ line3?: string;
374
+ /**
375
+ * The fourth line of the site address, if needed.
376
+ *
377
+ * Maximum length: 41 characters.
378
+ */
379
+ line4?: string;
380
+ /**
381
+ * The fifth line of the site address, if needed.
382
+ *
383
+ * Maximum length: 41 characters.
384
+ */
385
+ line5?: string;
386
+ /**
387
+ * The postal code or ZIP code of the site address.
388
+ *
389
+ * Maximum length: 13 characters.
390
+ */
391
+ postalCode?: string;
392
+ /**
393
+ * The state, county, province, or region name of the site address.
394
+ *
395
+ * Maximum length: 21 characters.
396
+ */
397
+ state?: string;
398
+ }
399
+ }
400
+ export interface InventorySiteListParams {
401
+ /**
402
+ * Header param: The ID of the EndUser to receive this request (e.g.,
403
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
404
+ */
405
+ conductorEndUserId: string;
406
+ /**
407
+ * Query param: Filter for specific inventory sites by their QuickBooks-assigned
408
+ * unique identifier(s).
409
+ *
410
+ * **IMPORTANT**: If you include this parameter, QuickBooks will ignore all other
411
+ * query parameters for this request.
412
+ *
413
+ * **NOTE**: If any of the values you specify in this parameter are not found, the
414
+ * request will return an error.
415
+ */
416
+ ids?: Array<string>;
417
+ /**
418
+ * Query param: Filter for inventory sites whose `name` contains this substring,
419
+ * case-insensitive. NOTE: If you use this parameter, you cannot also use
420
+ * `nameStartsWith` or `nameEndsWith`.
421
+ */
422
+ nameContains?: string;
423
+ /**
424
+ * Query param: Filter for inventory sites whose `name` ends with this substring,
425
+ * case-insensitive. NOTE: If you use this parameter, you cannot also use
426
+ * `nameContains` or `nameStartsWith`.
427
+ */
428
+ nameEndsWith?: string;
429
+ /**
430
+ * Query param: Filter for inventory sites whose `name` is alphabetically greater
431
+ * than or equal to this value.
432
+ */
433
+ nameFrom?: string;
434
+ /**
435
+ * Query param: Filter for specific inventory sites by their name(s),
436
+ * case-insensitive. Like `id`, `name` is a unique identifier for an inventory
437
+ * site.
438
+ *
439
+ * **IMPORTANT**: If you include this parameter, QuickBooks will ignore all other
440
+ * query parameters for this request.
441
+ *
442
+ * **NOTE**: If any of the values you specify in this parameter are not found, the
443
+ * request will return an error.
444
+ */
445
+ names?: Array<string>;
446
+ /**
447
+ * Query param: Filter for inventory sites whose `name` starts with this substring,
448
+ * case-insensitive. NOTE: If you use this parameter, you cannot also use
449
+ * `nameContains` or `nameEndsWith`.
450
+ */
451
+ nameStartsWith?: string;
452
+ /**
453
+ * Query param: Filter for inventory sites whose `name` is alphabetically less than
454
+ * or equal to this value.
455
+ */
456
+ nameTo?: string;
457
+ /**
458
+ * Query param: Filter for inventory sites that are active, inactive, or both.
459
+ */
460
+ status?: 'active' | 'all' | 'inactive';
461
+ /**
462
+ * Query param: Filter for inventory sites updated on or after this date and time,
463
+ * in ISO 8601 format (YYYY-MM-DDTHH:mm:ss). If you only provide a date
464
+ * (YYYY-MM-DD), the time is assumed to be 00:00:00 of that day.
465
+ */
466
+ updatedAfter?: string;
467
+ /**
468
+ * Query param: Filter for inventory sites updated on or before this date and time,
469
+ * in ISO 8601 format (YYYY-MM-DDTHH:mm:ss). If you only provide a date
470
+ * (YYYY-MM-DD), the time is assumed to be 23:59:59 of that day.
471
+ */
472
+ updatedBefore?: string;
473
+ }
474
+ export declare namespace InventorySites {
475
+ export { type InventorySite as InventorySite, type InventorySiteListResponse as InventorySiteListResponse, type InventorySiteCreateParams as InventorySiteCreateParams, type InventorySiteRetrieveParams as InventorySiteRetrieveParams, type InventorySiteUpdateParams as InventorySiteUpdateParams, type InventorySiteListParams as InventorySiteListParams, };
476
+ }
477
+ //# sourceMappingURL=inventory-sites.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inventory-sites.d.ts","sourceRoot":"","sources":["../../src/resources/qbd/inventory-sites.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AAEnC,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;OAEG;IACH,MAAM,CAAC,MAAM,EAAE,yBAAyB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC;IASxG;;OAEG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,2BAA2B,EACnC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC;IAQjC;;OAEG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,yBAAyB,EACjC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC;IASjC;;;;OAIG;IACH,IAAI,CACF,MAAM,EAAE,uBAAuB,EAC/B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,yBAAyB,CAAC;CAQ9C;AAED,MAAM,WAAW,aAAa;IAC5B;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,OAAO,EAAE,aAAa,CAAC,OAAO,GAAG,IAAI,CAAC;IAEtC;;OAEG;IACH,OAAO,EAAE,MAAM,GAAG,IAAI,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IAE3B;;;;;;;;;OASG;IACH,GAAG,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEpB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;;;;;;;OAUG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEtB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,MAAM,CAAC,EAAE,QAAQ,GAAG,KAAK,GAAG,UAAU,CAAC;IAEvC;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
@@ -0,0 +1,54 @@
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.InventorySites = void 0;
5
+ const resource_1 = require("../../resource.js");
6
+ class InventorySites extends resource_1.APIResource {
7
+ /**
8
+ * Creates a new inventory site.
9
+ */
10
+ create(params, options) {
11
+ const { conductorEndUserId, ...body } = params;
12
+ return this._client.post('/quickbooks-desktop/inventory-sites', {
13
+ body,
14
+ ...options,
15
+ headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
16
+ });
17
+ }
18
+ /**
19
+ * Retrieves an inventory site by ID.
20
+ */
21
+ retrieve(id, params, options) {
22
+ const { conductorEndUserId } = params;
23
+ return this._client.get(`/quickbooks-desktop/inventory-sites/${id}`, {
24
+ ...options,
25
+ headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
26
+ });
27
+ }
28
+ /**
29
+ * Updates an existing inventory site.
30
+ */
31
+ update(id, params, options) {
32
+ const { conductorEndUserId, ...body } = params;
33
+ return this._client.post(`/quickbooks-desktop/inventory-sites/${id}`, {
34
+ body,
35
+ ...options,
36
+ headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
37
+ });
38
+ }
39
+ /**
40
+ * Returns a list of inventory sites. NOTE: QuickBooks Desktop does not support
41
+ * pagination for inventory sites; hence, there is no `cursor` parameter. Users
42
+ * typically have few inventory sites.
43
+ */
44
+ list(params, options) {
45
+ const { conductorEndUserId, ...query } = params;
46
+ return this._client.get('/quickbooks-desktop/inventory-sites', {
47
+ query,
48
+ ...options,
49
+ headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
50
+ });
51
+ }
52
+ }
53
+ exports.InventorySites = InventorySites;
54
+ //# sourceMappingURL=inventory-sites.js.map