conductor-node 11.10.1 → 12.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (510) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/LICENSE +201 -21
  3. package/README.md +330 -63
  4. package/_shims/MultipartBody.d.ts +9 -0
  5. package/_shims/MultipartBody.d.ts.map +1 -0
  6. package/_shims/MultipartBody.js +16 -0
  7. package/_shims/MultipartBody.js.map +1 -0
  8. package/_shims/MultipartBody.mjs +12 -0
  9. package/_shims/MultipartBody.mjs.map +1 -0
  10. package/_shims/README.md +46 -0
  11. package/_shims/auto/runtime-bun.d.ts +5 -0
  12. package/_shims/auto/runtime-bun.d.ts.map +1 -0
  13. package/_shims/auto/runtime-bun.js +21 -0
  14. package/_shims/auto/runtime-bun.js.map +1 -0
  15. package/_shims/auto/runtime-bun.mjs +2 -0
  16. package/_shims/auto/runtime-bun.mjs.map +1 -0
  17. package/_shims/auto/runtime-node.d.ts +5 -0
  18. package/_shims/auto/runtime-node.d.ts.map +1 -0
  19. package/_shims/auto/runtime-node.js +21 -0
  20. package/_shims/auto/runtime-node.js.map +1 -0
  21. package/_shims/auto/runtime-node.mjs +2 -0
  22. package/_shims/auto/runtime-node.mjs.map +1 -0
  23. package/_shims/auto/runtime.d.ts +5 -0
  24. package/_shims/auto/runtime.d.ts.map +1 -0
  25. package/_shims/auto/runtime.js +21 -0
  26. package/_shims/auto/runtime.js.map +1 -0
  27. package/_shims/auto/runtime.mjs +2 -0
  28. package/_shims/auto/runtime.mjs.map +1 -0
  29. package/_shims/auto/types-node.d.ts +5 -0
  30. package/_shims/auto/types-node.d.ts.map +1 -0
  31. package/_shims/auto/types-node.js +21 -0
  32. package/_shims/auto/types-node.js.map +1 -0
  33. package/_shims/auto/types-node.mjs +2 -0
  34. package/_shims/auto/types-node.mjs.map +1 -0
  35. package/_shims/auto/types.d.ts +101 -0
  36. package/_shims/auto/types.js +3 -0
  37. package/_shims/auto/types.mjs +3 -0
  38. package/_shims/bun-runtime.d.ts +6 -0
  39. package/_shims/bun-runtime.d.ts.map +1 -0
  40. package/_shims/bun-runtime.js +14 -0
  41. package/_shims/bun-runtime.js.map +1 -0
  42. package/_shims/bun-runtime.mjs +10 -0
  43. package/_shims/bun-runtime.mjs.map +1 -0
  44. package/_shims/index.d.ts +81 -0
  45. package/_shims/index.js +13 -0
  46. package/_shims/index.mjs +7 -0
  47. package/_shims/manual-types.d.ts +12 -0
  48. package/_shims/manual-types.js +3 -0
  49. package/_shims/manual-types.mjs +3 -0
  50. package/_shims/node-runtime.d.ts +3 -0
  51. package/_shims/node-runtime.d.ts.map +1 -0
  52. package/_shims/node-runtime.js +89 -0
  53. package/_shims/node-runtime.js.map +1 -0
  54. package/_shims/node-runtime.mjs +56 -0
  55. package/_shims/node-runtime.mjs.map +1 -0
  56. package/_shims/node-types.d.ts +42 -0
  57. package/_shims/node-types.js +3 -0
  58. package/_shims/node-types.mjs +3 -0
  59. package/_shims/registry.d.ts +37 -0
  60. package/_shims/registry.d.ts.map +1 -0
  61. package/_shims/registry.js +41 -0
  62. package/_shims/registry.js.map +1 -0
  63. package/_shims/registry.mjs +37 -0
  64. package/_shims/registry.mjs.map +1 -0
  65. package/_shims/web-runtime.d.ts +5 -0
  66. package/_shims/web-runtime.d.ts.map +1 -0
  67. package/_shims/web-runtime.js +78 -0
  68. package/_shims/web-runtime.js.map +1 -0
  69. package/_shims/web-runtime.mjs +71 -0
  70. package/_shims/web-runtime.mjs.map +1 -0
  71. package/_shims/web-types.d.ts +83 -0
  72. package/_shims/web-types.js +3 -0
  73. package/_shims/web-types.mjs +3 -0
  74. package/core.d.ts +241 -0
  75. package/core.d.ts.map +1 -0
  76. package/core.js +914 -0
  77. package/core.js.map +1 -0
  78. package/core.mjs +882 -0
  79. package/core.mjs.map +1 -0
  80. package/error.d.ts +47 -0
  81. package/error.d.ts.map +1 -0
  82. package/error.js +113 -0
  83. package/error.js.map +1 -0
  84. package/error.mjs +97 -0
  85. package/error.mjs.map +1 -0
  86. package/index.d.mts +121 -0
  87. package/index.d.ts +121 -0
  88. package/index.d.ts.map +1 -0
  89. package/index.js +133 -0
  90. package/index.js.map +1 -0
  91. package/index.mjs +90 -0
  92. package/index.mjs.map +1 -0
  93. package/internal/qs/formats.d.ts +6 -0
  94. package/internal/qs/formats.d.ts.map +1 -0
  95. package/internal/qs/formats.js +11 -0
  96. package/internal/qs/formats.js.map +1 -0
  97. package/internal/qs/formats.mjs +8 -0
  98. package/internal/qs/formats.mjs.map +1 -0
  99. package/internal/qs/index.d.ts +10 -0
  100. package/internal/qs/index.d.ts.map +1 -0
  101. package/internal/qs/index.js +14 -0
  102. package/internal/qs/index.js.map +1 -0
  103. package/internal/qs/index.mjs +10 -0
  104. package/internal/qs/index.mjs.map +1 -0
  105. package/internal/qs/stringify.d.ts +3 -0
  106. package/internal/qs/stringify.d.ts.map +1 -0
  107. package/internal/qs/stringify.js +280 -0
  108. package/internal/qs/stringify.js.map +1 -0
  109. package/internal/qs/stringify.mjs +276 -0
  110. package/internal/qs/stringify.mjs.map +1 -0
  111. package/internal/qs/types.d.ts +57 -0
  112. package/internal/qs/types.d.ts.map +1 -0
  113. package/{dist/src/resources → internal/qs}/types.js +1 -0
  114. package/internal/qs/types.js.map +1 -0
  115. package/internal/qs/types.mjs +2 -0
  116. package/internal/qs/types.mjs.map +1 -0
  117. package/internal/qs/utils.d.ts +14 -0
  118. package/internal/qs/utils.d.ts.map +1 -0
  119. package/internal/qs/utils.js +229 -0
  120. package/internal/qs/utils.js.map +1 -0
  121. package/internal/qs/utils.mjs +217 -0
  122. package/internal/qs/utils.mjs.map +1 -0
  123. package/package.json +111 -35
  124. package/pagination.d.ts +18 -0
  125. package/pagination.d.ts.map +1 -0
  126. package/pagination.js +40 -0
  127. package/pagination.js.map +1 -0
  128. package/pagination.mjs +36 -0
  129. package/pagination.mjs.map +1 -0
  130. package/resource.d.ts +6 -0
  131. package/resource.d.ts.map +1 -0
  132. package/resource.js +11 -0
  133. package/resource.js.map +1 -0
  134. package/resource.mjs +7 -0
  135. package/resource.mjs.map +1 -0
  136. package/resources/auth-sessions.d.ts +79 -0
  137. package/resources/auth-sessions.d.ts.map +1 -0
  138. package/resources/auth-sessions.js +23 -0
  139. package/resources/auth-sessions.js.map +1 -0
  140. package/resources/auth-sessions.mjs +19 -0
  141. package/resources/auth-sessions.mjs.map +1 -0
  142. package/resources/end-users.d.ts +154 -0
  143. package/resources/end-users.d.ts.map +1 -0
  144. package/resources/end-users.js +48 -0
  145. package/resources/end-users.js.map +1 -0
  146. package/resources/end-users.mjs +44 -0
  147. package/resources/end-users.mjs.map +1 -0
  148. package/resources/index.d.ts +4 -0
  149. package/resources/index.d.ts.map +1 -0
  150. package/resources/index.js +11 -0
  151. package/resources/index.js.map +1 -0
  152. package/resources/index.mjs +5 -0
  153. package/resources/index.mjs.map +1 -0
  154. package/resources/qbd/accounts.d.ts +579 -0
  155. package/resources/qbd/accounts.d.ts.map +1 -0
  156. package/resources/qbd/accounts.js +54 -0
  157. package/resources/qbd/accounts.js.map +1 -0
  158. package/resources/qbd/accounts.mjs +50 -0
  159. package/resources/qbd/accounts.mjs.map +1 -0
  160. package/resources/qbd/bill-check-payments.d.ts +831 -0
  161. package/resources/qbd/bill-check-payments.d.ts.map +1 -0
  162. package/resources/qbd/bill-check-payments.js +70 -0
  163. package/resources/qbd/bill-check-payments.js.map +1 -0
  164. package/resources/qbd/bill-check-payments.mjs +65 -0
  165. package/resources/qbd/bill-check-payments.mjs.map +1 -0
  166. package/resources/qbd/bill-credit-card-payments.d.ts +641 -0
  167. package/resources/qbd/bill-credit-card-payments.d.ts.map +1 -0
  168. package/resources/qbd/bill-credit-card-payments.js +55 -0
  169. package/resources/qbd/bill-credit-card-payments.js.map +1 -0
  170. package/resources/qbd/bill-credit-card-payments.mjs +50 -0
  171. package/resources/qbd/bill-credit-card-payments.mjs.map +1 -0
  172. package/resources/qbd/bills.d.ts +2561 -0
  173. package/resources/qbd/bills.d.ts.map +1 -0
  174. package/resources/qbd/bills.js +69 -0
  175. package/resources/qbd/bills.js.map +1 -0
  176. package/resources/qbd/bills.mjs +64 -0
  177. package/resources/qbd/bills.mjs.map +1 -0
  178. package/resources/qbd/checks.d.ts +2528 -0
  179. package/resources/qbd/checks.d.ts.map +1 -0
  180. package/resources/qbd/checks.js +69 -0
  181. package/resources/qbd/checks.js.map +1 -0
  182. package/resources/qbd/checks.mjs +64 -0
  183. package/resources/qbd/checks.mjs.map +1 -0
  184. package/resources/qbd/classes.d.ts +289 -0
  185. package/resources/qbd/classes.d.ts.map +1 -0
  186. package/resources/qbd/classes.js +54 -0
  187. package/resources/qbd/classes.js.map +1 -0
  188. package/resources/qbd/classes.mjs +50 -0
  189. package/resources/qbd/classes.mjs.map +1 -0
  190. package/resources/qbd/credit-card-charges.d.ts +2236 -0
  191. package/resources/qbd/credit-card-charges.d.ts.map +1 -0
  192. package/resources/qbd/credit-card-charges.js +69 -0
  193. package/resources/qbd/credit-card-charges.js.map +1 -0
  194. package/resources/qbd/credit-card-charges.mjs +64 -0
  195. package/resources/qbd/credit-card-charges.mjs.map +1 -0
  196. package/resources/qbd/credit-card-credits.d.ts +2233 -0
  197. package/resources/qbd/credit-card-credits.d.ts.map +1 -0
  198. package/resources/qbd/credit-card-credits.js +69 -0
  199. package/resources/qbd/credit-card-credits.js.map +1 -0
  200. package/resources/qbd/credit-card-credits.mjs +64 -0
  201. package/resources/qbd/credit-card-credits.mjs.map +1 -0
  202. package/resources/qbd/credit-memos.d.ts +2649 -0
  203. package/resources/qbd/credit-memos.d.ts.map +1 -0
  204. package/resources/qbd/credit-memos.js +69 -0
  205. package/resources/qbd/credit-memos.js.map +1 -0
  206. package/resources/qbd/credit-memos.mjs +64 -0
  207. package/resources/qbd/credit-memos.mjs.map +1 -0
  208. package/resources/qbd/customers.d.ts +2106 -0
  209. package/resources/qbd/customers.d.ts.map +1 -0
  210. package/resources/qbd/customers.js +58 -0
  211. package/resources/qbd/customers.js.map +1 -0
  212. package/resources/qbd/customers.mjs +53 -0
  213. package/resources/qbd/customers.mjs.map +1 -0
  214. package/resources/qbd/date-driven-terms.d.ts +242 -0
  215. package/resources/qbd/date-driven-terms.d.ts.map +1 -0
  216. package/resources/qbd/date-driven-terms.js +43 -0
  217. package/resources/qbd/date-driven-terms.js.map +1 -0
  218. package/resources/qbd/date-driven-terms.mjs +39 -0
  219. package/resources/qbd/date-driven-terms.mjs.map +1 -0
  220. package/resources/qbd/discount-items.d.ts +576 -0
  221. package/resources/qbd/discount-items.d.ts.map +1 -0
  222. package/resources/qbd/discount-items.js +58 -0
  223. package/resources/qbd/discount-items.js.map +1 -0
  224. package/resources/qbd/discount-items.mjs +53 -0
  225. package/resources/qbd/discount-items.mjs.map +1 -0
  226. package/resources/qbd/employees.d.ts +1669 -0
  227. package/resources/qbd/employees.d.ts.map +1 -0
  228. package/resources/qbd/employees.js +58 -0
  229. package/resources/qbd/employees.js.map +1 -0
  230. package/resources/qbd/employees.mjs +53 -0
  231. package/resources/qbd/employees.mjs.map +1 -0
  232. package/resources/qbd/estimates.d.ts +2493 -0
  233. package/resources/qbd/estimates.d.ts.map +1 -0
  234. package/resources/qbd/estimates.js +69 -0
  235. package/resources/qbd/estimates.js.map +1 -0
  236. package/resources/qbd/estimates.mjs +64 -0
  237. package/resources/qbd/estimates.mjs.map +1 -0
  238. package/resources/qbd/index.d.ts +37 -0
  239. package/resources/qbd/index.d.ts.map +1 -0
  240. package/resources/qbd/index.js +105 -0
  241. package/resources/qbd/index.js.map +1 -0
  242. package/resources/qbd/index.mjs +38 -0
  243. package/resources/qbd/index.mjs.map +1 -0
  244. package/resources/qbd/inventory-adjustments.d.ts +814 -0
  245. package/resources/qbd/inventory-adjustments.d.ts.map +1 -0
  246. package/resources/qbd/inventory-adjustments.js +66 -0
  247. package/resources/qbd/inventory-adjustments.js.map +1 -0
  248. package/resources/qbd/inventory-adjustments.mjs +62 -0
  249. package/resources/qbd/inventory-adjustments.mjs.map +1 -0
  250. package/resources/qbd/inventory-assembly-items.d.ts +931 -0
  251. package/resources/qbd/inventory-assembly-items.d.ts.map +1 -0
  252. package/resources/qbd/inventory-assembly-items.js +54 -0
  253. package/resources/qbd/inventory-assembly-items.js.map +1 -0
  254. package/resources/qbd/inventory-assembly-items.mjs +49 -0
  255. package/resources/qbd/inventory-assembly-items.mjs.map +1 -0
  256. package/resources/qbd/inventory-items.d.ts +844 -0
  257. package/resources/qbd/inventory-items.d.ts.map +1 -0
  258. package/resources/qbd/inventory-items.js +58 -0
  259. package/resources/qbd/inventory-items.js.map +1 -0
  260. package/resources/qbd/inventory-items.mjs +53 -0
  261. package/resources/qbd/inventory-items.mjs.map +1 -0
  262. package/resources/qbd/inventory-sites.d.ts +477 -0
  263. package/resources/qbd/inventory-sites.d.ts.map +1 -0
  264. package/resources/qbd/inventory-sites.js +54 -0
  265. package/resources/qbd/inventory-sites.js.map +1 -0
  266. package/resources/qbd/inventory-sites.mjs +50 -0
  267. package/resources/qbd/inventory-sites.mjs.map +1 -0
  268. package/resources/qbd/invoices.d.ts +2873 -0
  269. package/resources/qbd/invoices.d.ts.map +1 -0
  270. package/resources/qbd/invoices.js +69 -0
  271. package/resources/qbd/invoices.js.map +1 -0
  272. package/resources/qbd/invoices.mjs +64 -0
  273. package/resources/qbd/invoices.mjs.map +1 -0
  274. package/resources/qbd/journal-entries.d.ts +856 -0
  275. package/resources/qbd/journal-entries.d.ts.map +1 -0
  276. package/resources/qbd/journal-entries.js +69 -0
  277. package/resources/qbd/journal-entries.js.map +1 -0
  278. package/resources/qbd/journal-entries.mjs +64 -0
  279. package/resources/qbd/journal-entries.mjs.map +1 -0
  280. package/resources/qbd/non-inventory-items.d.ts +950 -0
  281. package/resources/qbd/non-inventory-items.d.ts.map +1 -0
  282. package/resources/qbd/non-inventory-items.js +58 -0
  283. package/resources/qbd/non-inventory-items.js.map +1 -0
  284. package/resources/qbd/non-inventory-items.mjs +53 -0
  285. package/resources/qbd/non-inventory-items.mjs.map +1 -0
  286. package/resources/qbd/payroll-wage-items.d.ts +215 -0
  287. package/resources/qbd/payroll-wage-items.d.ts.map +1 -0
  288. package/resources/qbd/payroll-wage-items.js +47 -0
  289. package/resources/qbd/payroll-wage-items.js.map +1 -0
  290. package/resources/qbd/payroll-wage-items.mjs +42 -0
  291. package/resources/qbd/payroll-wage-items.mjs.map +1 -0
  292. package/resources/qbd/purchase-orders.d.ts +2554 -0
  293. package/resources/qbd/purchase-orders.d.ts.map +1 -0
  294. package/resources/qbd/purchase-orders.js +69 -0
  295. package/resources/qbd/purchase-orders.js.map +1 -0
  296. package/resources/qbd/purchase-orders.mjs +64 -0
  297. package/resources/qbd/purchase-orders.mjs.map +1 -0
  298. package/resources/qbd/qbd.d.ts +146 -0
  299. package/resources/qbd/qbd.d.ts.map +1 -0
  300. package/resources/qbd/qbd.js +202 -0
  301. package/resources/qbd/qbd.js.map +1 -0
  302. package/resources/qbd/qbd.mjs +175 -0
  303. package/resources/qbd/qbd.mjs.map +1 -0
  304. package/resources/qbd/receive-payments.d.ts +1282 -0
  305. package/resources/qbd/receive-payments.d.ts.map +1 -0
  306. package/resources/qbd/receive-payments.js +70 -0
  307. package/resources/qbd/receive-payments.js.map +1 -0
  308. package/resources/qbd/receive-payments.mjs +65 -0
  309. package/resources/qbd/receive-payments.mjs.map +1 -0
  310. package/resources/qbd/sales-orders.d.ts +2628 -0
  311. package/resources/qbd/sales-orders.d.ts.map +1 -0
  312. package/resources/qbd/sales-orders.js +69 -0
  313. package/resources/qbd/sales-orders.js.map +1 -0
  314. package/resources/qbd/sales-orders.mjs +64 -0
  315. package/resources/qbd/sales-orders.mjs.map +1 -0
  316. package/resources/qbd/sales-receipts.d.ts +3373 -0
  317. package/resources/qbd/sales-receipts.d.ts.map +1 -0
  318. package/resources/qbd/sales-receipts.js +69 -0
  319. package/resources/qbd/sales-receipts.js.map +1 -0
  320. package/resources/qbd/sales-receipts.mjs +64 -0
  321. package/resources/qbd/sales-receipts.mjs.map +1 -0
  322. package/resources/qbd/sales-representatives.d.ts +251 -0
  323. package/resources/qbd/sales-representatives.d.ts.map +1 -0
  324. package/resources/qbd/sales-representatives.js +54 -0
  325. package/resources/qbd/sales-representatives.js.map +1 -0
  326. package/resources/qbd/sales-representatives.mjs +50 -0
  327. package/resources/qbd/sales-representatives.mjs.map +1 -0
  328. package/resources/qbd/sales-tax-codes.d.ts +306 -0
  329. package/resources/qbd/sales-tax-codes.d.ts.map +1 -0
  330. package/resources/qbd/sales-tax-codes.js +54 -0
  331. package/resources/qbd/sales-tax-codes.js.map +1 -0
  332. package/resources/qbd/sales-tax-codes.mjs +50 -0
  333. package/resources/qbd/sales-tax-codes.mjs.map +1 -0
  334. package/resources/qbd/sales-tax-items.d.ts +458 -0
  335. package/resources/qbd/sales-tax-items.d.ts.map +1 -0
  336. package/resources/qbd/sales-tax-items.js +58 -0
  337. package/resources/qbd/sales-tax-items.js.map +1 -0
  338. package/resources/qbd/sales-tax-items.mjs +53 -0
  339. package/resources/qbd/sales-tax-items.mjs.map +1 -0
  340. package/resources/qbd/service-items.d.ts +923 -0
  341. package/resources/qbd/service-items.d.ts.map +1 -0
  342. package/resources/qbd/service-items.js +58 -0
  343. package/resources/qbd/service-items.js.map +1 -0
  344. package/resources/qbd/service-items.mjs +53 -0
  345. package/resources/qbd/service-items.mjs.map +1 -0
  346. package/resources/qbd/standard-terms.d.ts +225 -0
  347. package/resources/qbd/standard-terms.d.ts.map +1 -0
  348. package/resources/qbd/standard-terms.js +43 -0
  349. package/resources/qbd/standard-terms.js.map +1 -0
  350. package/resources/qbd/standard-terms.mjs +39 -0
  351. package/resources/qbd/standard-terms.mjs.map +1 -0
  352. package/resources/qbd/subtotal-items.d.ts +323 -0
  353. package/resources/qbd/subtotal-items.d.ts.map +1 -0
  354. package/resources/qbd/subtotal-items.js +58 -0
  355. package/resources/qbd/subtotal-items.js.map +1 -0
  356. package/resources/qbd/subtotal-items.mjs +53 -0
  357. package/resources/qbd/subtotal-items.mjs.map +1 -0
  358. package/resources/qbd/transfers.d.ts +269 -0
  359. package/resources/qbd/transfers.d.ts.map +1 -0
  360. package/resources/qbd/transfers.js +58 -0
  361. package/resources/qbd/transfers.js.map +1 -0
  362. package/resources/qbd/transfers.mjs +53 -0
  363. package/resources/qbd/transfers.mjs.map +1 -0
  364. package/resources/qbd/vendor-credits.d.ts +2298 -0
  365. package/resources/qbd/vendor-credits.d.ts.map +1 -0
  366. package/resources/qbd/vendor-credits.js +69 -0
  367. package/resources/qbd/vendor-credits.js.map +1 -0
  368. package/resources/qbd/vendor-credits.mjs +64 -0
  369. package/resources/qbd/vendor-credits.mjs.map +1 -0
  370. package/resources/qbd/vendors.d.ts +1677 -0
  371. package/resources/qbd/vendors.d.ts.map +1 -0
  372. package/resources/qbd/vendors.js +58 -0
  373. package/resources/qbd/vendors.js.map +1 -0
  374. package/resources/qbd/vendors.mjs +53 -0
  375. package/resources/qbd/vendors.mjs.map +1 -0
  376. package/shims/node.d.ts +30 -0
  377. package/shims/node.d.ts.map +1 -0
  378. package/shims/node.js +31 -0
  379. package/shims/node.js.map +1 -0
  380. package/shims/node.mjs +5 -0
  381. package/shims/node.mjs.map +1 -0
  382. package/shims/web.d.ts +26 -0
  383. package/shims/web.d.ts.map +1 -0
  384. package/shims/web.js +31 -0
  385. package/shims/web.js.map +1 -0
  386. package/shims/web.mjs +5 -0
  387. package/shims/web.mjs.map +1 -0
  388. package/src/_shims/MultipartBody.ts +9 -0
  389. package/src/_shims/README.md +46 -0
  390. package/src/_shims/auto/runtime-bun.ts +4 -0
  391. package/src/_shims/auto/runtime-node.ts +4 -0
  392. package/src/_shims/auto/runtime.ts +4 -0
  393. package/src/_shims/auto/types-node.ts +4 -0
  394. package/src/_shims/auto/types.d.ts +101 -0
  395. package/src/_shims/auto/types.js +3 -0
  396. package/src/_shims/auto/types.mjs +3 -0
  397. package/src/_shims/bun-runtime.ts +14 -0
  398. package/src/_shims/index.d.ts +81 -0
  399. package/src/_shims/index.js +13 -0
  400. package/src/_shims/index.mjs +7 -0
  401. package/src/_shims/manual-types.d.ts +12 -0
  402. package/src/_shims/manual-types.js +3 -0
  403. package/src/_shims/manual-types.mjs +3 -0
  404. package/src/_shims/node-runtime.ts +81 -0
  405. package/src/_shims/node-types.d.ts +42 -0
  406. package/src/_shims/node-types.js +3 -0
  407. package/src/_shims/node-types.mjs +3 -0
  408. package/src/_shims/registry.ts +67 -0
  409. package/src/_shims/web-runtime.ts +103 -0
  410. package/src/_shims/web-types.d.ts +83 -0
  411. package/src/_shims/web-types.js +3 -0
  412. package/src/_shims/web-types.mjs +3 -0
  413. package/src/core.ts +1208 -0
  414. package/src/error.ts +130 -0
  415. package/src/index.ts +227 -0
  416. package/src/internal/qs/LICENSE.md +13 -0
  417. package/src/internal/qs/README.md +3 -0
  418. package/src/internal/qs/formats.ts +9 -0
  419. package/src/internal/qs/index.ts +13 -0
  420. package/src/internal/qs/stringify.ts +388 -0
  421. package/src/internal/qs/types.ts +71 -0
  422. package/src/internal/qs/utils.ts +265 -0
  423. package/src/lib/.keep +4 -0
  424. package/src/pagination.ts +60 -0
  425. package/src/resource.ts +11 -0
  426. package/src/resources/auth-sessions.ts +99 -0
  427. package/src/resources/end-users.ts +216 -0
  428. package/src/resources/index.ts +14 -0
  429. package/src/resources/qbd/accounts.ts +797 -0
  430. package/src/resources/qbd/bill-check-payments.ts +1086 -0
  431. package/src/resources/qbd/bill-credit-card-payments.ts +851 -0
  432. package/src/resources/qbd/bills.ts +3039 -0
  433. package/src/resources/qbd/checks.ts +3003 -0
  434. package/src/resources/qbd/classes.ts +366 -0
  435. package/src/resources/qbd/credit-card-charges.ts +2646 -0
  436. package/src/resources/qbd/credit-card-credits.ts +2643 -0
  437. package/src/resources/qbd/credit-memos.ts +3157 -0
  438. package/src/resources/qbd/customers.ts +2518 -0
  439. package/src/resources/qbd/date-driven-terms.ts +314 -0
  440. package/src/resources/qbd/discount-items.ts +712 -0
  441. package/src/resources/qbd/employees.ts +2266 -0
  442. package/src/resources/qbd/estimates.ts +2975 -0
  443. package/src/resources/qbd/index.ts +346 -0
  444. package/src/resources/qbd/inventory-adjustments.ts +1008 -0
  445. package/src/resources/qbd/inventory-assembly-items.ts +1126 -0
  446. package/src/resources/qbd/inventory-items.ts +1026 -0
  447. package/src/resources/qbd/inventory-sites.ts +605 -0
  448. package/src/resources/qbd/invoices.ts +3398 -0
  449. package/src/resources/qbd/journal-entries.ts +1051 -0
  450. package/src/resources/qbd/non-inventory-items.ts +1138 -0
  451. package/src/resources/qbd/payroll-wage-items.ts +304 -0
  452. package/src/resources/qbd/purchase-orders.ts +3045 -0
  453. package/src/resources/qbd/qbd.ts +876 -0
  454. package/src/resources/qbd/receive-payments.ts +1609 -0
  455. package/src/resources/qbd/sales-orders.ts +3141 -0
  456. package/src/resources/qbd/sales-receipts.ts +3977 -0
  457. package/src/resources/qbd/sales-representatives.ts +340 -0
  458. package/src/resources/qbd/sales-tax-codes.ts +398 -0
  459. package/src/resources/qbd/sales-tax-items.ts +583 -0
  460. package/src/resources/qbd/service-items.ts +1105 -0
  461. package/src/resources/qbd/standard-terms.ts +295 -0
  462. package/src/resources/qbd/subtotal-items.ts +430 -0
  463. package/src/resources/qbd/transfers.ts +359 -0
  464. package/src/resources/qbd/vendor-credits.ts +2742 -0
  465. package/src/resources/qbd/vendors.ts +2017 -0
  466. package/src/shims/node.ts +50 -0
  467. package/src/shims/web.ts +50 -0
  468. package/src/tsconfig.json +11 -0
  469. package/src/uploads.ts +255 -0
  470. package/src/version.ts +1 -0
  471. package/uploads.d.ts +75 -0
  472. package/uploads.d.ts.map +1 -0
  473. package/uploads.js +171 -0
  474. package/uploads.js.map +1 -0
  475. package/uploads.mjs +158 -0
  476. package/uploads.mjs.map +1 -0
  477. package/version.d.ts +2 -0
  478. package/version.d.ts.map +1 -0
  479. package/version.js +5 -0
  480. package/version.js.map +1 -0
  481. package/version.mjs +2 -0
  482. package/version.mjs.map +1 -0
  483. package/dist/package.json +0 -48
  484. package/dist/src/Client.d.ts +0 -21
  485. package/dist/src/Client.js +0 -54
  486. package/dist/src/index.d.ts +0 -11
  487. package/dist/src/index.js +0 -59
  488. package/dist/src/integrations/BaseIntegration.d.ts +0 -9
  489. package/dist/src/integrations/BaseIntegration.js +0 -14
  490. package/dist/src/integrations/qbd/QbdIntegration.d.ts +0 -3120
  491. package/dist/src/integrations/qbd/QbdIntegration.js +0 -3147
  492. package/dist/src/integrations/qbd/qbdTypes.d.ts +0 -14076
  493. package/dist/src/integrations/qbd/qbdTypes.js +0 -2
  494. package/dist/src/interceptors/errorHandling.d.ts +0 -2
  495. package/dist/src/interceptors/errorHandling.js +0 -53
  496. package/dist/src/interceptors/logging.d.ts +0 -18
  497. package/dist/src/interceptors/logging.js +0 -70
  498. package/dist/src/resources/AuthSessionsResource.d.ts +0 -77
  499. package/dist/src/resources/AuthSessionsResource.js +0 -26
  500. package/dist/src/resources/BaseResource.d.ts +0 -6
  501. package/dist/src/resources/BaseResource.js +0 -9
  502. package/dist/src/resources/EndUsersResource.d.ts +0 -84
  503. package/dist/src/resources/EndUsersResource.js +0 -57
  504. package/dist/src/resources/types.d.ts +0 -40
  505. package/dist/src/utils/checkForUpdates.d.ts +0 -2
  506. package/dist/src/utils/checkForUpdates.js +0 -65
  507. package/dist/src/utils/env.d.ts +0 -1
  508. package/dist/src/utils/env.js +0 -15
  509. package/dist/src/utils/error.d.ts +0 -184
  510. package/dist/src/utils/error.js +0 -254
@@ -0,0 +1,217 @@
1
+ import { RFC1738 } from "./formats.mjs";
2
+ const has = Object.prototype.hasOwnProperty;
3
+ const is_array = Array.isArray;
4
+ const hex_table = (() => {
5
+ const array = [];
6
+ for (let i = 0; i < 256; ++i) {
7
+ array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
8
+ }
9
+ return array;
10
+ })();
11
+ function compact_queue(queue) {
12
+ while (queue.length > 1) {
13
+ const item = queue.pop();
14
+ if (!item)
15
+ continue;
16
+ const obj = item.obj[item.prop];
17
+ if (is_array(obj)) {
18
+ const compacted = [];
19
+ for (let j = 0; j < obj.length; ++j) {
20
+ if (typeof obj[j] !== 'undefined') {
21
+ compacted.push(obj[j]);
22
+ }
23
+ }
24
+ // @ts-ignore
25
+ item.obj[item.prop] = compacted;
26
+ }
27
+ }
28
+ }
29
+ function array_to_object(source, options) {
30
+ const obj = options && options.plainObjects ? Object.create(null) : {};
31
+ for (let i = 0; i < source.length; ++i) {
32
+ if (typeof source[i] !== 'undefined') {
33
+ obj[i] = source[i];
34
+ }
35
+ }
36
+ return obj;
37
+ }
38
+ export function merge(target, source, options = {}) {
39
+ if (!source) {
40
+ return target;
41
+ }
42
+ if (typeof source !== 'object') {
43
+ if (is_array(target)) {
44
+ target.push(source);
45
+ }
46
+ else if (target && typeof target === 'object') {
47
+ if ((options && (options.plainObjects || options.allowPrototypes)) ||
48
+ !has.call(Object.prototype, source)) {
49
+ target[source] = true;
50
+ }
51
+ }
52
+ else {
53
+ return [target, source];
54
+ }
55
+ return target;
56
+ }
57
+ if (!target || typeof target !== 'object') {
58
+ return [target].concat(source);
59
+ }
60
+ let mergeTarget = target;
61
+ if (is_array(target) && !is_array(source)) {
62
+ // @ts-ignore
63
+ mergeTarget = array_to_object(target, options);
64
+ }
65
+ if (is_array(target) && is_array(source)) {
66
+ source.forEach(function (item, i) {
67
+ if (has.call(target, i)) {
68
+ const targetItem = target[i];
69
+ if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
70
+ target[i] = merge(targetItem, item, options);
71
+ }
72
+ else {
73
+ target.push(item);
74
+ }
75
+ }
76
+ else {
77
+ target[i] = item;
78
+ }
79
+ });
80
+ return target;
81
+ }
82
+ return Object.keys(source).reduce(function (acc, key) {
83
+ const value = source[key];
84
+ if (has.call(acc, key)) {
85
+ acc[key] = merge(acc[key], value, options);
86
+ }
87
+ else {
88
+ acc[key] = value;
89
+ }
90
+ return acc;
91
+ }, mergeTarget);
92
+ }
93
+ export function assign_single_source(target, source) {
94
+ return Object.keys(source).reduce(function (acc, key) {
95
+ acc[key] = source[key];
96
+ return acc;
97
+ }, target);
98
+ }
99
+ export function decode(str, _, charset) {
100
+ const strWithoutPlus = str.replace(/\+/g, ' ');
101
+ if (charset === 'iso-8859-1') {
102
+ // unescape never throws, no try...catch needed:
103
+ return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
104
+ }
105
+ // utf-8
106
+ try {
107
+ return decodeURIComponent(strWithoutPlus);
108
+ }
109
+ catch (e) {
110
+ return strWithoutPlus;
111
+ }
112
+ }
113
+ const limit = 1024;
114
+ export const encode = (str, _defaultEncoder, charset, _kind, format) => {
115
+ // This code was originally written by Brian White for the io.js core querystring library.
116
+ // It has been adapted here for stricter adherence to RFC 3986
117
+ if (str.length === 0) {
118
+ return str;
119
+ }
120
+ let string = str;
121
+ if (typeof str === 'symbol') {
122
+ string = Symbol.prototype.toString.call(str);
123
+ }
124
+ else if (typeof str !== 'string') {
125
+ string = String(str);
126
+ }
127
+ if (charset === 'iso-8859-1') {
128
+ return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {
129
+ return '%26%23' + parseInt($0.slice(2), 16) + '%3B';
130
+ });
131
+ }
132
+ let out = '';
133
+ for (let j = 0; j < string.length; j += limit) {
134
+ const segment = string.length >= limit ? string.slice(j, j + limit) : string;
135
+ const arr = [];
136
+ for (let i = 0; i < segment.length; ++i) {
137
+ let c = segment.charCodeAt(i);
138
+ if (c === 0x2d || // -
139
+ c === 0x2e || // .
140
+ c === 0x5f || // _
141
+ c === 0x7e || // ~
142
+ (c >= 0x30 && c <= 0x39) || // 0-9
143
+ (c >= 0x41 && c <= 0x5a) || // a-z
144
+ (c >= 0x61 && c <= 0x7a) || // A-Z
145
+ (format === RFC1738 && (c === 0x28 || c === 0x29)) // ( )
146
+ ) {
147
+ arr[arr.length] = segment.charAt(i);
148
+ continue;
149
+ }
150
+ if (c < 0x80) {
151
+ arr[arr.length] = hex_table[c];
152
+ continue;
153
+ }
154
+ if (c < 0x800) {
155
+ arr[arr.length] = hex_table[0xc0 | (c >> 6)] + hex_table[0x80 | (c & 0x3f)];
156
+ continue;
157
+ }
158
+ if (c < 0xd800 || c >= 0xe000) {
159
+ arr[arr.length] =
160
+ hex_table[0xe0 | (c >> 12)] + hex_table[0x80 | ((c >> 6) & 0x3f)] + hex_table[0x80 | (c & 0x3f)];
161
+ continue;
162
+ }
163
+ i += 1;
164
+ c = 0x10000 + (((c & 0x3ff) << 10) | (segment.charCodeAt(i) & 0x3ff));
165
+ arr[arr.length] =
166
+ hex_table[0xf0 | (c >> 18)] +
167
+ hex_table[0x80 | ((c >> 12) & 0x3f)] +
168
+ hex_table[0x80 | ((c >> 6) & 0x3f)] +
169
+ hex_table[0x80 | (c & 0x3f)];
170
+ }
171
+ out += arr.join('');
172
+ }
173
+ return out;
174
+ };
175
+ export function compact(value) {
176
+ const queue = [{ obj: { o: value }, prop: 'o' }];
177
+ const refs = [];
178
+ for (let i = 0; i < queue.length; ++i) {
179
+ const item = queue[i];
180
+ // @ts-ignore
181
+ const obj = item.obj[item.prop];
182
+ const keys = Object.keys(obj);
183
+ for (let j = 0; j < keys.length; ++j) {
184
+ const key = keys[j];
185
+ const val = obj[key];
186
+ if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
187
+ queue.push({ obj: obj, prop: key });
188
+ refs.push(val);
189
+ }
190
+ }
191
+ }
192
+ compact_queue(queue);
193
+ return value;
194
+ }
195
+ export function is_regexp(obj) {
196
+ return Object.prototype.toString.call(obj) === '[object RegExp]';
197
+ }
198
+ export function is_buffer(obj) {
199
+ if (!obj || typeof obj !== 'object') {
200
+ return false;
201
+ }
202
+ return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
203
+ }
204
+ export function combine(a, b) {
205
+ return [].concat(a, b);
206
+ }
207
+ export function maybe_map(val, fn) {
208
+ if (is_array(val)) {
209
+ const mapped = [];
210
+ for (let i = 0; i < val.length; i += 1) {
211
+ mapped.push(fn(val[i]));
212
+ }
213
+ return mapped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C"}
package/package.json CHANGED
@@ -1,48 +1,124 @@
1
1
  {
2
2
  "name": "conductor-node",
3
- "version": "11.10.1",
4
- "description": "QuickBooks Desktop API for Node.js and TypeScript",
5
- "keywords": [
6
- "QuickBooks",
7
- "QuickBooks Desktop",
8
- "QuickBooks Enterprise",
9
- "QuickBooks Web Connector",
10
- "QBWC",
11
- "qbXML",
12
- "QB Desktop",
13
- "QB Enterprise",
14
- "QBD",
15
- "QBDT",
16
- "QBE",
17
- "Intuit"
18
- ],
19
- "homepage": "https://conductor.is",
20
- "repository": "github:conductor-is/quickbooks-desktop-api",
21
- "license": "MIT",
3
+ "version": "12.0.0-beta.1",
4
+ "description": "The official TypeScript library for the Conductor API",
22
5
  "author": "Conductor <support@conductor.is>",
6
+ "types": "./index.d.ts",
7
+ "main": "./index.js",
23
8
  "type": "commonjs",
24
- "main": "dist/src/index.js",
25
- "types": "dist/src/index.d.ts",
9
+ "repository": "github:conductor-is/quickbooks-desktop-node",
10
+ "license": "Apache-2.0",
11
+ "packageManager": "yarn@1.22.22",
26
12
  "files": [
27
- "dist/src/**/*.[jt]s",
28
- "dist/package.json"
13
+ "**/*"
29
14
  ],
15
+ "private": false,
30
16
  "scripts": {
31
- "clean": "rm -rf dist package conductor-node-*.tgz tsconfig.tsbuildinfo",
32
- "delete-compiled-dev-files": "rm -rf `find ./dist -type d -name __tests__` ./dist/src/utils/test/*",
33
- "diff": "pnpm pack && npm diff --diff=conductor-node@latest --diff=conductor-node-$(node -p \"require('./package.json').version\").tgz && pnpm clean",
34
- "prepack": "pnpm tsc && pnpm delete-compiled-dev-files && pnpm tsc-alias",
35
- "postpack": "rm -rf dist",
36
- "prepublishOnly": "pnpm jest"
17
+ "test": "./scripts/test",
18
+ "build": "./scripts/build",
19
+ "format": "prettier --write --cache --cache-strategy metadata . !dist",
20
+ "tsn": "ts-node -r tsconfig-paths/register",
21
+ "lint": "./scripts/lint",
22
+ "fix": "./scripts/format"
37
23
  },
38
24
  "dependencies": {
39
- "axios": "^1.7.9"
25
+ "@types/node": "^18.11.18",
26
+ "@types/node-fetch": "^2.6.4",
27
+ "abort-controller": "^3.0.0",
28
+ "agentkeepalive": "^4.2.1",
29
+ "form-data-encoder": "1.7.2",
30
+ "formdata-node": "^4.3.2",
31
+ "node-fetch": "^2.6.7"
40
32
  },
41
- "devDependencies": {
42
- "axios-mock-adapter": "^1.22.0",
43
- "tsc-alias": "^1.8.10"
33
+ "sideEffects": [
34
+ "./_shims/index.js",
35
+ "./_shims/index.mjs",
36
+ "./shims/node.js",
37
+ "./shims/node.mjs",
38
+ "./shims/web.js",
39
+ "./shims/web.mjs"
40
+ ],
41
+ "imports": {
42
+ "conductor-node": ".",
43
+ "conductor-node/*": "./src/*"
44
44
  },
45
- "engines": {
46
- "node": ">=16"
45
+ "exports": {
46
+ "./_shims/auto/*": {
47
+ "deno": {
48
+ "types": "./_shims/auto/*.d.ts",
49
+ "require": "./_shims/auto/*.js",
50
+ "default": "./_shims/auto/*.mjs"
51
+ },
52
+ "bun": {
53
+ "types": "./_shims/auto/*.d.ts",
54
+ "require": "./_shims/auto/*-bun.js",
55
+ "default": "./_shims/auto/*-bun.mjs"
56
+ },
57
+ "browser": {
58
+ "types": "./_shims/auto/*.d.ts",
59
+ "require": "./_shims/auto/*.js",
60
+ "default": "./_shims/auto/*.mjs"
61
+ },
62
+ "worker": {
63
+ "types": "./_shims/auto/*.d.ts",
64
+ "require": "./_shims/auto/*.js",
65
+ "default": "./_shims/auto/*.mjs"
66
+ },
67
+ "workerd": {
68
+ "types": "./_shims/auto/*.d.ts",
69
+ "require": "./_shims/auto/*.js",
70
+ "default": "./_shims/auto/*.mjs"
71
+ },
72
+ "node": {
73
+ "types": "./_shims/auto/*-node.d.ts",
74
+ "require": "./_shims/auto/*-node.js",
75
+ "default": "./_shims/auto/*-node.mjs"
76
+ },
77
+ "types": "./_shims/auto/*.d.ts",
78
+ "require": "./_shims/auto/*.js",
79
+ "default": "./_shims/auto/*.mjs"
80
+ },
81
+ ".": {
82
+ "require": {
83
+ "types": "./index.d.ts",
84
+ "default": "./index.js"
85
+ },
86
+ "types": "./index.d.mts",
87
+ "default": "./index.mjs"
88
+ },
89
+ "./*.mjs": {
90
+ "types": [
91
+ "./*.d.ts",
92
+ "./*/index.d.ts"
93
+ ],
94
+ "default": [
95
+ "./*.mjs",
96
+ "./*/index.mjs"
97
+ ]
98
+ },
99
+ "./*.js": {
100
+ "types": [
101
+ "./*.d.ts",
102
+ "./*/index.d.ts"
103
+ ],
104
+ "default": [
105
+ "./*.js",
106
+ "./*/index.js"
107
+ ]
108
+ },
109
+ "./*": {
110
+ "types": [
111
+ "./*.d.ts",
112
+ "./*/index.d.ts"
113
+ ],
114
+ "require": [
115
+ "./*.js",
116
+ "./*/index.js"
117
+ ],
118
+ "default": [
119
+ "./*.mjs",
120
+ "./*/index.mjs"
121
+ ]
122
+ }
47
123
  }
48
124
  }
@@ -0,0 +1,18 @@
1
+ import { AbstractPage, Response, APIClient, FinalRequestOptions, PageInfo } from "./core.js";
2
+ export interface CursorPageResponse<Item> {
3
+ data: Array<Item>;
4
+ nextCursor: string | null;
5
+ }
6
+ export interface CursorPageParams {
7
+ cursor?: string;
8
+ limit?: number;
9
+ }
10
+ export declare class CursorPage<Item> extends AbstractPage<Item> implements CursorPageResponse<Item> {
11
+ data: Array<Item>;
12
+ nextCursor: string | null;
13
+ constructor(client: APIClient, response: Response, body: CursorPageResponse<Item>, options: FinalRequestOptions);
14
+ getPaginatedItems(): Item[];
15
+ nextPageParams(): Partial<CursorPageParams> | null;
16
+ nextPageInfo(): PageInfo | null;
17
+ }
18
+ //# sourceMappingURL=pagination.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["src/pagination.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,SAAS,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAE1F,MAAM,WAAW,kBAAkB,CAAC,IAAI;IACtC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;IAElB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B;AAED,MAAM,WAAW,gBAAgB;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,qBAAa,UAAU,CAAC,IAAI,CAAE,SAAQ,YAAY,CAAC,IAAI,CAAE,YAAW,kBAAkB,CAAC,IAAI,CAAC;IAC1F,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;IAElB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;gBAGxB,MAAM,EAAE,SAAS,EACjB,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,kBAAkB,CAAC,IAAI,CAAC,EAC9B,OAAO,EAAE,mBAAmB;IAQ9B,iBAAiB,IAAI,IAAI,EAAE;IAK3B,cAAc,IAAI,OAAO,CAAC,gBAAgB,CAAC,GAAG,IAAI;IASlD,YAAY,IAAI,QAAQ,GAAG,IAAI;CAYhC"}
package/pagination.js ADDED
@@ -0,0 +1,40 @@
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.CursorPage = void 0;
5
+ const core_1 = require("./core.js");
6
+ class CursorPage extends core_1.AbstractPage {
7
+ constructor(client, response, body, options) {
8
+ super(client, response, body, options);
9
+ this.data = body.data || [];
10
+ this.nextCursor = body.nextCursor || null;
11
+ }
12
+ getPaginatedItems() {
13
+ return this.data ?? [];
14
+ }
15
+ // @deprecated Please use `nextPageInfo()` instead
16
+ nextPageParams() {
17
+ const info = this.nextPageInfo();
18
+ if (!info)
19
+ return null;
20
+ if ('params' in info)
21
+ return info.params;
22
+ const params = Object.fromEntries(info.url.searchParams);
23
+ if (!Object.keys(params).length)
24
+ return null;
25
+ return params;
26
+ }
27
+ nextPageInfo() {
28
+ const cursor = this.nextCursor;
29
+ if (!cursor) {
30
+ return null;
31
+ }
32
+ return {
33
+ params: {
34
+ cursor: cursor,
35
+ },
36
+ };
37
+ }
38
+ }
39
+ exports.CursorPage = CursorPage;
40
+ //# sourceMappingURL=pagination.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagination.js","sourceRoot":"","sources":["src/pagination.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oCAA0F;AAc1F,MAAa,UAAiB,SAAQ,mBAAkB;IAKtD,YACE,MAAiB,EACjB,QAAkB,EAClB,IAA8B,EAC9B,OAA4B;QAE5B,KAAK,CAAC,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAEvC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,IAAI,EAAE,CAAC;QAC5B,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC;IAC5C,CAAC;IAED,iBAAiB;QACf,OAAO,IAAI,CAAC,IAAI,IAAI,EAAE,CAAC;IACzB,CAAC;IAED,kDAAkD;IAClD,cAAc;QACZ,MAAM,IAAI,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;QACjC,IAAI,CAAC,IAAI;YAAE,OAAO,IAAI,CAAC;QACvB,IAAI,QAAQ,IAAI,IAAI;YAAE,OAAO,IAAI,CAAC,MAAM,CAAC;QACzC,MAAM,MAAM,GAAG,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;QACzD,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM;YAAE,OAAO,IAAI,CAAC;QAC7C,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,YAAY;QACV,MAAM,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC;QAC/B,IAAI,CAAC,MAAM,EAAE;YACX,OAAO,IAAI,CAAC;SACb;QAED,OAAO;YACL,MAAM,EAAE;gBACN,MAAM,EAAE,MAAM;aACf;SACF,CAAC;IACJ,CAAC;CACF;AA3CD,gCA2CC"}
package/pagination.mjs ADDED
@@ -0,0 +1,36 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { AbstractPage } from "./core.mjs";
3
+ export class CursorPage extends AbstractPage {
4
+ constructor(client, response, body, options) {
5
+ super(client, response, body, options);
6
+ this.data = body.data || [];
7
+ this.nextCursor = body.nextCursor || null;
8
+ }
9
+ getPaginatedItems() {
10
+ return this.data ?? [];
11
+ }
12
+ // @deprecated Please use `nextPageInfo()` instead
13
+ nextPageParams() {
14
+ const info = this.nextPageInfo();
15
+ if (!info)
16
+ return null;
17
+ if ('params' in info)
18
+ return info.params;
19
+ const params = Object.fromEntries(info.url.searchParams);
20
+ if (!Object.keys(params).length)
21
+ return null;
22
+ return params;
23
+ }
24
+ nextPageInfo() {
25
+ const cursor = this.nextCursor;
26
+ if (!cursor) {
27
+ return null;
28
+ }
29
+ return {
30
+ params: {
31
+ cursor: cursor,
32
+ },
33
+ };
34
+ }
35
+ }
36
+ //# sourceMappingURL=pagination.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagination.mjs","sourceRoot":"","sources":["src/pagination.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,YAAY,EAAsD;AAc3E,MAAM,OAAO,UAAiB,SAAQ,YAAkB;IAKtD,YACE,MAAiB,EACjB,QAAkB,EAClB,IAA8B,EAC9B,OAA4B;QAE5B,KAAK,CAAC,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAEvC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,IAAI,EAAE,CAAC;QAC5B,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC;IAC5C,CAAC;IAED,iBAAiB;QACf,OAAO,IAAI,CAAC,IAAI,IAAI,EAAE,CAAC;IACzB,CAAC;IAED,kDAAkD;IAClD,cAAc;QACZ,MAAM,IAAI,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;QACjC,IAAI,CAAC,IAAI;YAAE,OAAO,IAAI,CAAC;QACvB,IAAI,QAAQ,IAAI,IAAI;YAAE,OAAO,IAAI,CAAC,MAAM,CAAC;QACzC,MAAM,MAAM,GAAG,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;QACzD,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM;YAAE,OAAO,IAAI,CAAC;QAC7C,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,YAAY;QACV,MAAM,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC;QAC/B,IAAI,CAAC,MAAM,EAAE;YACX,OAAO,IAAI,CAAC;SACb;QAED,OAAO;YACL,MAAM,EAAE;gBACN,MAAM,EAAE,MAAM;aACf;SACF,CAAC;IACJ,CAAC;CACF"}
package/resource.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ import type { Conductor } from "./index.js";
2
+ export declare class APIResource {
3
+ protected _client: Conductor;
4
+ constructor(client: Conductor);
5
+ }
6
+ //# sourceMappingURL=resource.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resource.d.ts","sourceRoot":"","sources":["src/resource.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,qBAAa,WAAW;IACtB,SAAS,CAAC,OAAO,EAAE,SAAS,CAAC;gBAEjB,MAAM,EAAE,SAAS;CAG9B"}
package/resource.js ADDED
@@ -0,0 +1,11 @@
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.APIResource = void 0;
5
+ class APIResource {
6
+ constructor(client) {
7
+ this._client = client;
8
+ }
9
+ }
10
+ exports.APIResource = APIResource;
11
+ //# sourceMappingURL=resource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resource.js","sourceRoot":"","sources":["src/resource.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAItF,MAAa,WAAW;IAGtB,YAAY,MAAiB;QAC3B,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACxB,CAAC;CACF;AAND,kCAMC"}
package/resource.mjs ADDED
@@ -0,0 +1,7 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export class APIResource {
3
+ constructor(client) {
4
+ this._client = client;
5
+ }
6
+ }
7
+ //# sourceMappingURL=resource.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resource.mjs","sourceRoot":"","sources":["src/resource.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAItF,MAAM,OAAO,WAAW;IAGtB,YAAY,MAAiB;QAC3B,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACxB,CAAC;CACF"}
@@ -0,0 +1,79 @@
1
+ import { APIResource } from "../resource.js";
2
+ import * as Core from "../core.js";
3
+ export declare class AuthSessions extends APIResource {
4
+ /**
5
+ * To launch the authentication flow, create an AuthSession and pass the returned
6
+ * session’s `authFlowUrl` to the client for your end-user to visit in their
7
+ * browser.
8
+ */
9
+ create(body: AuthSessionCreateParams, options?: Core.RequestOptions): Core.APIPromise<AuthSession>;
10
+ /**
11
+ * Retrieves the details of an AuthSession that has previously been created.
12
+ */
13
+ retrieve(id: string, options?: Core.RequestOptions): Core.APIPromise<AuthSession>;
14
+ }
15
+ export interface AuthSession {
16
+ /**
17
+ * The unique identifier for this AuthSession.
18
+ */
19
+ id: string;
20
+ /**
21
+ * The URL of the authentication flow that you will pass to your client for your
22
+ * user to set up their IntegrationConnection.
23
+ */
24
+ authFlowUrl: string;
25
+ /**
26
+ * The secret used in `authFlowUrl` to securely access the authentication flow.
27
+ */
28
+ clientSecret: string;
29
+ /**
30
+ * The date and time when this AuthSession record was created.
31
+ */
32
+ createdAt: string;
33
+ /**
34
+ * The ID of the EndUser for whom to create an IntegrationConnection.
35
+ */
36
+ endUserId: string;
37
+ /**
38
+ * The date and time when this AuthSession expires. By default, this value is 30
39
+ * minutes from creation. You can extend this time by setting `linkExpiryMins` when
40
+ * [creating the AuthSession](/apis/auth-sessions/create).
41
+ */
42
+ expiresAt: string;
43
+ /**
44
+ * The type of object. This value is always `"auth_session"`.
45
+ */
46
+ objectType: 'auth_session';
47
+ /**
48
+ * The URL to which Conductor will redirect your user to return to your app after
49
+ * they complete the authentication flow. If `null`, their browser tab will close
50
+ * instead.
51
+ */
52
+ redirectUrl: string | null;
53
+ }
54
+ export interface AuthSessionCreateParams {
55
+ /**
56
+ * The ID of the EndUser for whom to create the IntegrationConnection.
57
+ */
58
+ endUserId: string;
59
+ /**
60
+ * Your Conductor publishable key, which we use to create the session’s
61
+ * `authFlowUrl`.
62
+ */
63
+ publishableKey: string;
64
+ /**
65
+ * The number of minutes after which the AuthSession will expire. Must be at least
66
+ * 15 minutes and no more than 7 days. If not provided, defaults to 30 minutes.
67
+ */
68
+ linkExpiryMins?: number;
69
+ /**
70
+ * The URL to which Conductor will redirect the end-user to return to your app
71
+ * after they complete the authentication flow. If not provided, their browser tab
72
+ * will close instead.
73
+ */
74
+ redirectUrl?: string;
75
+ }
76
+ export declare namespace AuthSessions {
77
+ export { type AuthSession as AuthSession, type AuthSessionCreateParams as AuthSessionCreateParams };
78
+ }
79
+ //# sourceMappingURL=auth-sessions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth-sessions.d.ts","sourceRoot":"","sources":["../src/resources/auth-sessions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAEhC,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;OAIG;IACH,MAAM,CAAC,IAAI,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC;IAIlG;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC;CAGlF;AAED,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,UAAU,EAAE,cAAc,CAAC;IAE3B;;;;OAIG;IACH,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EAAE,KAAK,WAAW,IAAI,WAAW,EAAE,KAAK,uBAAuB,IAAI,uBAAuB,EAAE,CAAC;CACrG"}
@@ -0,0 +1,23 @@
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.AuthSessions = void 0;
5
+ const resource_1 = require("../resource.js");
6
+ class AuthSessions extends resource_1.APIResource {
7
+ /**
8
+ * To launch the authentication flow, create an AuthSession and pass the returned
9
+ * session’s `authFlowUrl` to the client for your end-user to visit in their
10
+ * browser.
11
+ */
12
+ create(body, options) {
13
+ return this._client.post('/auth-sessions', { body, ...options });
14
+ }
15
+ /**
16
+ * Retrieves the details of an AuthSession that has previously been created.
17
+ */
18
+ retrieve(id, options) {
19
+ return this._client.get(`/auth-sessions/${id}`, options);
20
+ }
21
+ }
22
+ exports.AuthSessions = AuthSessions;
23
+ //# sourceMappingURL=auth-sessions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth-sessions.js","sourceRoot":"","sources":["../src/resources/auth-sessions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAG1C,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;;OAIG;IACH,MAAM,CAAC,IAA6B,EAAE,OAA6B;QACjE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnE,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAA6B;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;CACF;AAhBD,oCAgBC"}