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
package/index.js ADDED
@@ -0,0 +1,133 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || function (mod) {
20
+ if (mod && mod.__esModule) return mod;
21
+ var result = {};
22
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
23
+ __setModuleDefault(result, mod);
24
+ return result;
25
+ };
26
+ var _a;
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.UnprocessableEntityError = exports.PermissionDeniedError = exports.InternalServerError = exports.AuthenticationError = exports.BadRequestError = exports.RateLimitError = exports.ConflictError = exports.NotFoundError = exports.APIUserAbortError = exports.APIConnectionTimeoutError = exports.APIConnectionError = exports.APIError = exports.ConductorError = exports.fileFromPath = exports.toFile = exports.Conductor = void 0;
29
+ const qs = __importStar(require("./internal/qs/index.js"));
30
+ const Core = __importStar(require("./core.js"));
31
+ const Errors = __importStar(require("./error.js"));
32
+ const Pagination = __importStar(require("./pagination.js"));
33
+ const Uploads = __importStar(require("./uploads.js"));
34
+ const API = __importStar(require("./resources/index.js"));
35
+ const auth_sessions_1 = require("./resources/auth-sessions.js");
36
+ const end_users_1 = require("./resources/end-users.js");
37
+ const qbd_1 = require("./resources/qbd/qbd.js");
38
+ /**
39
+ * API Client for interfacing with the Conductor API.
40
+ */
41
+ class Conductor extends Core.APIClient {
42
+ /**
43
+ * API Client for interfacing with the Conductor API.
44
+ *
45
+ * @param {string | undefined} [opts.apiKey=process.env['CONDUCTOR_SECRET_KEY'] ?? undefined]
46
+ * @param {string} [opts.baseURL=process.env['CONDUCTOR_BASE_URL'] ?? https://api.conductor.is/v1] - Override the default base URL for the API.
47
+ * @param {number} [opts.timeout=2 minutes] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
48
+ * @param {number} [opts.httpAgent] - An HTTP agent used to manage HTTP(s) connections.
49
+ * @param {Core.Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
50
+ * @param {number} [opts.maxRetries=2] - The maximum number of times the client will retry a request.
51
+ * @param {Core.Headers} opts.defaultHeaders - Default headers to include with every request to the API.
52
+ * @param {Core.DefaultQuery} opts.defaultQuery - Default query parameters to include with every request to the API.
53
+ */
54
+ constructor({ baseURL = Core.readEnv('CONDUCTOR_BASE_URL'), apiKey = Core.readEnv('CONDUCTOR_SECRET_KEY'), ...opts } = {}) {
55
+ if (apiKey === undefined) {
56
+ throw new Errors.ConductorError("The CONDUCTOR_SECRET_KEY environment variable is missing or empty; either provide it, or instantiate the Conductor client with an apiKey option, like new Conductor({ apiKey: 'My API Key' }).");
57
+ }
58
+ const options = {
59
+ apiKey,
60
+ ...opts,
61
+ baseURL: baseURL || `https://api.conductor.is/v1`,
62
+ };
63
+ super({
64
+ baseURL: options.baseURL,
65
+ timeout: options.timeout ?? 120000 /* 2 minutes */,
66
+ httpAgent: options.httpAgent,
67
+ maxRetries: options.maxRetries,
68
+ fetch: options.fetch,
69
+ });
70
+ this.authSessions = new API.AuthSessions(this);
71
+ this.endUsers = new API.EndUsers(this);
72
+ this.qbd = new API.Qbd(this);
73
+ this._options = options;
74
+ this.apiKey = apiKey;
75
+ }
76
+ defaultQuery() {
77
+ return this._options.defaultQuery;
78
+ }
79
+ defaultHeaders(opts) {
80
+ return {
81
+ ...super.defaultHeaders(opts),
82
+ ...this._options.defaultHeaders,
83
+ };
84
+ }
85
+ authHeaders(opts) {
86
+ return { Authorization: `Bearer ${this.apiKey}` };
87
+ }
88
+ stringifyQuery(query) {
89
+ return qs.stringify(query, { allowDots: true, arrayFormat: 'comma' });
90
+ }
91
+ }
92
+ exports.Conductor = Conductor;
93
+ _a = Conductor;
94
+ Conductor.Conductor = _a;
95
+ Conductor.DEFAULT_TIMEOUT = 120000; // 2 minutes
96
+ Conductor.ConductorError = Errors.ConductorError;
97
+ Conductor.APIError = Errors.APIError;
98
+ Conductor.APIConnectionError = Errors.APIConnectionError;
99
+ Conductor.APIConnectionTimeoutError = Errors.APIConnectionTimeoutError;
100
+ Conductor.APIUserAbortError = Errors.APIUserAbortError;
101
+ Conductor.NotFoundError = Errors.NotFoundError;
102
+ Conductor.ConflictError = Errors.ConflictError;
103
+ Conductor.RateLimitError = Errors.RateLimitError;
104
+ Conductor.BadRequestError = Errors.BadRequestError;
105
+ Conductor.AuthenticationError = Errors.AuthenticationError;
106
+ Conductor.InternalServerError = Errors.InternalServerError;
107
+ Conductor.PermissionDeniedError = Errors.PermissionDeniedError;
108
+ Conductor.UnprocessableEntityError = Errors.UnprocessableEntityError;
109
+ Conductor.toFile = Uploads.toFile;
110
+ Conductor.fileFromPath = Uploads.fileFromPath;
111
+ Conductor.AuthSessions = auth_sessions_1.AuthSessions;
112
+ Conductor.EndUsers = end_users_1.EndUsers;
113
+ Conductor.Qbd = qbd_1.Qbd;
114
+ var uploads_1 = require("./uploads.js");
115
+ Object.defineProperty(exports, "toFile", { enumerable: true, get: function () { return uploads_1.toFile; } });
116
+ Object.defineProperty(exports, "fileFromPath", { enumerable: true, get: function () { return uploads_1.fileFromPath; } });
117
+ var error_1 = require("./error.js");
118
+ Object.defineProperty(exports, "ConductorError", { enumerable: true, get: function () { return error_1.ConductorError; } });
119
+ Object.defineProperty(exports, "APIError", { enumerable: true, get: function () { return error_1.APIError; } });
120
+ Object.defineProperty(exports, "APIConnectionError", { enumerable: true, get: function () { return error_1.APIConnectionError; } });
121
+ Object.defineProperty(exports, "APIConnectionTimeoutError", { enumerable: true, get: function () { return error_1.APIConnectionTimeoutError; } });
122
+ Object.defineProperty(exports, "APIUserAbortError", { enumerable: true, get: function () { return error_1.APIUserAbortError; } });
123
+ Object.defineProperty(exports, "NotFoundError", { enumerable: true, get: function () { return error_1.NotFoundError; } });
124
+ Object.defineProperty(exports, "ConflictError", { enumerable: true, get: function () { return error_1.ConflictError; } });
125
+ Object.defineProperty(exports, "RateLimitError", { enumerable: true, get: function () { return error_1.RateLimitError; } });
126
+ Object.defineProperty(exports, "BadRequestError", { enumerable: true, get: function () { return error_1.BadRequestError; } });
127
+ Object.defineProperty(exports, "AuthenticationError", { enumerable: true, get: function () { return error_1.AuthenticationError; } });
128
+ Object.defineProperty(exports, "InternalServerError", { enumerable: true, get: function () { return error_1.InternalServerError; } });
129
+ Object.defineProperty(exports, "PermissionDeniedError", { enumerable: true, get: function () { return error_1.PermissionDeniedError; } });
130
+ Object.defineProperty(exports, "UnprocessableEntityError", { enumerable: true, get: function () { return error_1.UnprocessableEntityError; } });
131
+ exports = module.exports = Conductor;
132
+ exports.default = Conductor;
133
+ //# sourceMappingURL=index.js.map
package/index.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGtF,2DAAoC;AACpC,gDAA+B;AAC/B,mDAAkC;AAClC,4DAA2C;AAE3C,sDAAqC;AACrC,0DAAyC;AACzC,gEAA+F;AAC/F,wDAS+B;AAC/B,gDAA0C;AAiE1C;;GAEG;AACH,MAAa,SAAU,SAAQ,IAAI,CAAC,SAAS;IAK3C;;;;;;;;;;;OAWG;IACH,YAAY,EACV,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,oBAAoB,CAAC,EAC5C,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,sBAAsB,CAAC,EAC7C,GAAG,IAAI,KACU,EAAE;QACnB,IAAI,MAAM,KAAK,SAAS,EAAE;YACxB,MAAM,IAAI,MAAM,CAAC,cAAc,CAC7B,gMAAgM,CACjM,CAAC;SACH;QAED,MAAM,OAAO,GAAkB;YAC7B,MAAM;YACN,GAAG,IAAI;YACP,OAAO,EAAE,OAAO,IAAI,6BAA6B;SAClD,CAAC;QAEF,KAAK,CAAC;YACJ,OAAO,EAAE,OAAO,CA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as qs from "./internal/qs/index.mjs";
4
+ import * as Core from "./core.mjs";
5
+ import * as Errors from "./error.mjs";
6
+ import * as Pagination from "./pagination.mjs";
7
+ import * as Uploads from "./uploads.mjs";
8
+ import * as API from "./resources/index.mjs";
9
+ import { AuthSessions } from "./resources/auth-sessions.mjs";
10
+ import { EndUsers, } from "./resources/end-users.mjs";
11
+ import { Qbd } from "./resources/qbd/qbd.mjs";
12
+ /**
13
+ * API Client for interfacing with the Conductor API.
14
+ */
15
+ export class Conductor extends Core.APIClient {
16
+ /**
17
+ * API Client for interfacing with the Conductor API.
18
+ *
19
+ * @param {string | undefined} [opts.apiKey=process.env['CONDUCTOR_SECRET_KEY'] ?? undefined]
20
+ * @param {string} [opts.baseURL=process.env['CONDUCTOR_BASE_URL'] ?? https://api.conductor.is/v1] - Override the default base URL for the API.
21
+ * @param {number} [opts.timeout=2 minutes] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
22
+ * @param {number} [opts.httpAgent] - An HTTP agent used to manage HTTP(s) connections.
23
+ * @param {Core.Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
24
+ * @param {number} [opts.maxRetries=2] - The maximum number of times the client will retry a request.
25
+ * @param {Core.Headers} opts.defaultHeaders - Default headers to include with every request to the API.
26
+ * @param {Core.DefaultQuery} opts.defaultQuery - Default query parameters to include with every request to the API.
27
+ */
28
+ constructor({ baseURL = Core.readEnv('CONDUCTOR_BASE_URL'), apiKey = Core.readEnv('CONDUCTOR_SECRET_KEY'), ...opts } = {}) {
29
+ if (apiKey === undefined) {
30
+ throw new Errors.ConductorError("The CONDUCTOR_SECRET_KEY environment variable is missing or empty; either provide it, or instantiate the Conductor client with an apiKey option, like new Conductor({ apiKey: 'My API Key' }).");
31
+ }
32
+ const options = {
33
+ apiKey,
34
+ ...opts,
35
+ baseURL: baseURL || `https://api.conductor.is/v1`,
36
+ };
37
+ super({
38
+ baseURL: options.baseURL,
39
+ timeout: options.timeout ?? 120000 /* 2 minutes */,
40
+ httpAgent: options.httpAgent,
41
+ maxRetries: options.maxRetries,
42
+ fetch: options.fetch,
43
+ });
44
+ this.authSessions = new API.AuthSessions(this);
45
+ this.endUsers = new API.EndUsers(this);
46
+ this.qbd = new API.Qbd(this);
47
+ this._options = options;
48
+ this.apiKey = apiKey;
49
+ }
50
+ defaultQuery() {
51
+ return this._options.defaultQuery;
52
+ }
53
+ defaultHeaders(opts) {
54
+ return {
55
+ ...super.defaultHeaders(opts),
56
+ ...this._options.defaultHeaders,
57
+ };
58
+ }
59
+ authHeaders(opts) {
60
+ return { Authorization: `Bearer ${this.apiKey}` };
61
+ }
62
+ stringifyQuery(query) {
63
+ return qs.stringify(query, { allowDots: true, arrayFormat: 'comma' });
64
+ }
65
+ }
66
+ _a = Conductor;
67
+ Conductor.Conductor = _a;
68
+ Conductor.DEFAULT_TIMEOUT = 120000; // 2 minutes
69
+ Conductor.ConductorError = Errors.ConductorError;
70
+ Conductor.APIError = Errors.APIError;
71
+ Conductor.APIConnectionError = Errors.APIConnectionError;
72
+ Conductor.APIConnectionTimeoutError = Errors.APIConnectionTimeoutError;
73
+ Conductor.APIUserAbortError = Errors.APIUserAbortError;
74
+ Conductor.NotFoundError = Errors.NotFoundError;
75
+ Conductor.ConflictError = Errors.ConflictError;
76
+ Conductor.RateLimitError = Errors.RateLimitError;
77
+ Conductor.BadRequestError = Errors.BadRequestError;
78
+ Conductor.AuthenticationError = Errors.AuthenticationError;
79
+ Conductor.InternalServerError = Errors.InternalServerError;
80
+ Conductor.PermissionDeniedError = Errors.PermissionDeniedError;
81
+ Conductor.UnprocessableEntityError = Errors.UnprocessableEntityError;
82
+ Conductor.toFile = Uploads.toFile;
83
+ Conductor.fileFromPath = Uploads.fileFromPath;
84
+ Conductor.AuthSessions = AuthSessions;
85
+ Conductor.EndUsers = EndUsers;
86
+ Conductor.Qbd = Qbd;
87
+ export { toFile, fileFromPath } from "./uploads.mjs";
88
+ export { ConductorError, APIError, APIConnectionError, APIConnectionTimeoutError, APIUserAbortError, NotFoundError, ConflictError, RateLimitError, BadRequestError, AuthenticationError, InternalServerError, PermissionDeniedError, UnprocessableEntityError, } from "./error.mjs";
89
+ export default Conductor;
90
+ //# sourceMappingURL=index.mjs.map
package/index.mjs.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;OAG/E,KAAK,EAAE;OACP,KAAK,IAAI;OACT,KAAK,MAAM;OACX,KAAK,UAAU;OAEf,KAAK,OAAO;OACZ,KAAK,GAAG;OACR,EAAwC,YAAY,EAAE;OACtD,EAQL,QAAQ,GACT;OACM,EAAE,GAAG,EAAE;AAiEd;;GAEG;AACH,MAAM,OAAO,SAAU,SAAQ,IAAI,CAAC,SAAS;IAK3C;;;;;;;;;;;OAWG;IACH,YAAY,EACV,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,oBAAoB,CAAC,EAC5C,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,sBAAsB,CAAC,EAC7C,GAAG,IAAI,KACU,EAAE;QACnB,IAAI,MAAM,KAAK,SAAS,EAAE;YACxB,MAAM,IAAI,MAAM,CAAC,cAAc,CAC7B,gMAAgM,CACjM,CAAC;SACH;QAED,MAAM,OAAO,GAAkB;YAC7B,MAAM;YACN,GAAG,IAAI;YACP,OAAO,EAAE,OAAO,IAAI,6BAA6B;SAClD,CAAC;QAEF,KAAK,CAAC;YACJ,OAAO,EAAE,OAAO,CAAC,OAAQ;YACzB,OAAO,EAAE,OAAO,CAAC,OAAO,IAAI,MAAM,CAAC,eAAe;YAClD,SAAS,EAAE,OAAO,CAAC,SAAS;YAC5B,UAAU,EAAE,OAAO,CAAC,UAAU;YAC9B,KAAK,EAAE,OAAO,CAAC,KAAK;SACrB,CAAC,CAAC;QAOL,iBAAY,GAAqB,IAAI,GAAG,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;QAC5D,aAAQ,GAAiB,IAAI,GAAG,CAAC,QAAQ,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,GAAG,MAAM,CAAC,mBAAmB,CAAC;AACjD,+BAAqB,GAAG,MAAM,CAAC,qBAAqB,CAAC;AACrD,kCAAwB,GAAG,MAAM,CAAC,wBAAwB,CAAC;AAE3D,gBAAM,GAAG,OAAO,CAAC,MAAM,CAAC;AACxB,sBAAY,GAAG,OAAO,CAAC,YAAY,CAAC;AAG7C,SAAS,CAAC,YAAY,GAAG,YAAY,CAAC;AACtC,SAAS,CAAC,QAAQ,GAAG,QAAQ,CAAC;AAC9B,SAAS,CAAC,GAAG,GAAG,GAAG,CAAC;OA2Bb,EAAE,MAAM,EAAE,YAAY,EAAE;OACxB,EACL,cAAc,EACd,QAAQ,EACR,kBAAkB,EAClB,yBAAyB,EACzB,iBAAiB,EACjB,aAAa,EACb,aAAa,EACb,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,GACzB;AAED,eAAe,SAAS,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { Format } from "./types.js";
2
+ export declare const default_format: Format;
3
+ export declare const formatters: Record<Format, (str: PropertyKey) => string>;
4
+ export declare const RFC1738 = "RFC1738";
5
+ export declare const RFC3986 = "RFC3986";
6
+ //# sourceMappingURL=formats.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formats.d.ts","sourceRoot":"","sources":["../../src/internal/qs/formats.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEtC,eAAO,MAAM,cAAc,EAAE,MAAkB,CAAC;AAChD,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,WAAW,KAAK,MAAM,CAGnE,CAAC;AACF,eAAO,MAAM,OAAO,YAAY,CAAC;AACjC,eAAO,MAAM,OAAO,YAAY,CAAC"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RFC3986 = exports.RFC1738 = exports.formatters = exports.default_format = void 0;
4
+ exports.default_format = 'RFC3986';
5
+ exports.formatters = {
6
+ RFC1738: (v) => String(v).replace(/%20/g, '+'),
7
+ RFC3986: (v) => String(v),
8
+ };
9
+ exports.RFC1738 = 'RFC1738';
10
+ exports.RFC3986 = 'RFC3986';
11
+ //# sourceMappingURL=formats.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formats.js","sourceRoot":"","sources":["../../src/internal/qs/formats.ts"],"names":[],"mappings":";;;AAEa,QAAA,cAAc,GAAW,SAAS,CAAC;AACnC,QAAA,UAAU,GAAiD;IACtE,OAAO,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC;IAC3D,OAAO,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;CACvC,CAAC;AACW,QAAA,OAAO,GAAG,SAAS,CAAC;AACpB,QAAA,OAAO,GAAG,SAAS,CAAC"}
@@ -0,0 +1,8 @@
1
+ export const default_format = 'RFC3986';
2
+ export const formatters = {
3
+ RFC1738: (v) => String(v).replace(/%20/g, '+'),
4
+ RFC3986: (v) => String(v),
5
+ };
6
+ export const RFC1738 = 'RFC1738';
7
+ export const RFC3986 = 'RFC3986';
8
+ //# sourceMappingURL=formats.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formats.mjs","sourceRoot":"","sources":["../../src/internal/qs/formats.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,cAAc,GAAW,SAAS,CAAC;AAChD,MAAM,CAAC,MAAM,UAAU,GAAiD;IACtE,OAAO,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC;IAC3D,OAAO,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;CACvC,CAAC;AACF,MAAM,CAAC,MAAM,OAAO,GAAG,SAAS,CAAC;AACjC,MAAM,CAAC,MAAM,OAAO,GAAG,SAAS,CAAC"}
@@ -0,0 +1,10 @@
1
+ declare const formats: {
2
+ formatters: Record<import("./types").Format, (str: PropertyKey) => string>;
3
+ RFC1738: string;
4
+ RFC3986: string;
5
+ default: import("./types").Format;
6
+ };
7
+ export { stringify } from "./stringify.js";
8
+ export { formats };
9
+ export type { DefaultDecoder, DefaultEncoder, Format, ParseOptions, StringifyOptions } from "./types.js";
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/internal/qs/index.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,OAAO;;;;;CAKZ,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,CAAC;AAEnB,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.formats = exports.stringify = void 0;
4
+ const formats_1 = require("./formats.js");
5
+ const formats = {
6
+ formatters: formats_1.formatters,
7
+ RFC1738: formats_1.RFC1738,
8
+ RFC3986: formats_1.RFC3986,
9
+ default: formats_1.default_format,
10
+ };
11
+ exports.formats = formats;
12
+ var stringify_1 = require("./stringify.js");
13
+ Object.defineProperty(exports, "stringify", { enumerable: true, get: function () { return stringify_1.stringify; } });
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/internal/qs/index.ts"],"names":[],"mappings":";;;AAAA,0CAAyE;AAEzE,MAAM,OAAO,GAAG;IACd,UAAU,EAAV,oBAAU;IACV,OAAO,EAAP,iBAAO;IACP,OAAO,EAAP,iBAAO;IACP,OAAO,EAAE,wBAAc;CACxB,CAAC;AAGO,0BAAO;AADhB,4CAAwC;AAA/B,sGAAA,SAAS,OAAA"}
@@ -0,0 +1,10 @@
1
+ import { default_format, formatters, RFC1738, RFC3986 } from "./formats.mjs";
2
+ const formats = {
3
+ formatters,
4
+ RFC1738,
5
+ RFC3986,
6
+ default: default_format,
7
+ };
8
+ export { stringify } from "./stringify.mjs";
9
+ export { formats };
10
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/internal/qs/index.ts"],"names":[],"mappings":"OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE;AAEvD,MAAM,OAAO,GAAG;IACd,UAAU;IACV,OAAO;IACP,OAAO;IACP,OAAO,EAAE,cAAc;CACxB,CAAC;OAEK,EAAE,SAAS,EAAE;AACpB,OAAO,EAAE,OAAO,EAAE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { StringifyOptions } from "./types.js";
2
+ export declare function stringify(object: any, opts?: StringifyOptions): string;
3
+ //# sourceMappingURL=stringify.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stringify.d.ts","sourceRoot":"","sources":["../../src/internal/qs/stringify.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAyB,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAkTvE,wBAAgB,SAAS,CAAC,MAAM,EAAE,GAAG,EAAE,IAAI,GAAE,gBAAqB,UA+EjE"}
@@ -0,0 +1,280 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.stringify = void 0;
4
+ const utils_1 = require("./utils.js");
5
+ const formats_1 = require("./formats.js");
6
+ const has = Object.prototype.hasOwnProperty;
7
+ const array_prefix_generators = {
8
+ brackets(prefix) {
9
+ return String(prefix) + '[]';
10
+ },
11
+ comma: 'comma',
12
+ indices(prefix, key) {
13
+ return String(prefix) + '[' + key + ']';
14
+ },
15
+ repeat(prefix) {
16
+ return String(prefix);
17
+ },
18
+ };
19
+ const is_array = Array.isArray;
20
+ const push = Array.prototype.push;
21
+ const push_to_array = function (arr, value_or_array) {
22
+ push.apply(arr, is_array(value_or_array) ? value_or_array : [value_or_array]);
23
+ };
24
+ const to_ISO = Date.prototype.toISOString;
25
+ const defaults = {
26
+ addQueryPrefix: false,
27
+ allowDots: false,
28
+ allowEmptyArrays: false,
29
+ arrayFormat: 'indices',
30
+ charset: 'utf-8',
31
+ charsetSentinel: false,
32
+ delimiter: '&',
33
+ encode: true,
34
+ encodeDotInKeys: false,
35
+ encoder: utils_1.encode,
36
+ encodeValuesOnly: false,
37
+ format: formats_1.default_format,
38
+ formatter: formats_1.formatters[formats_1.default_format],
39
+ /** @deprecated */
40
+ indices: false,
41
+ serializeDate(date) {
42
+ return to_ISO.call(date);
43
+ },
44
+ skipNulls: false,
45
+ strictNullHandling: false,
46
+ };
47
+ function is_non_nullish_primitive(v) {
48
+ return (typeof v === 'string' ||
49
+ typeof v === 'number' ||
50
+ typeof v === 'boolean' ||
51
+ typeof v === 'symbol' ||
52
+ typeof v === 'bigint');
53
+ }
54
+ const sentinel = {};
55
+ function inner_stringify(object, prefix, generateArrayPrefix, commaRoundTrip, allowEmptyArrays, strictNullHandling, skipNulls, encodeDotInKeys, encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, sideChannel) {
56
+ let obj = object;
57
+ let tmp_sc = sideChannel;
58
+ let step = 0;
59
+ let find_flag = false;
60
+ while ((tmp_sc = tmp_sc.get(sentinel)) !== void undefined && !find_flag) {
61
+ // Where object last appeared in the ref tree
62
+ const pos = tmp_sc.get(object);
63
+ step += 1;
64
+ if (typeof pos !== 'undefined') {
65
+ if (pos === step) {
66
+ throw new RangeError('Cyclic object value');
67
+ }
68
+ else {
69
+ find_flag = true; // Break while
70
+ }
71
+ }
72
+ if (typeof tmp_sc.get(sentinel) === 'undefined') {
73
+ step = 0;
74
+ }
75
+ }
76
+ if (typeof filter === 'function') {
77
+ obj = filter(prefix, obj);
78
+ }
79
+ else if (obj instanceof Date) {
80
+ obj = serializeDate?.(obj);
81
+ }
82
+ else if (generateArrayPrefix === 'comma' && is_array(obj)) {
83
+ obj = (0, utils_1.maybe_map)(obj, function (value) {
84
+ if (value instanceof Date) {
85
+ return serializeDate?.(value);
86
+ }
87
+ return value;
88
+ });
89
+ }
90
+ if (obj === null) {
91
+ if (strictNullHandling) {
92
+ return encoder && !encodeValuesOnly ?
93
+ // @ts-expect-error
94
+ encoder(prefix, defaults.encoder, charset, 'key', format)
95
+ : prefix;
96
+ }
97
+ obj = '';
98
+ }
99
+ if (is_non_nullish_primitive(obj) || (0, utils_1.is_buffer)(obj)) {
100
+ if (encoder) {
101
+ const key_value = encodeValuesOnly ? prefix
102
+ // @ts-expect-error
103
+ : encoder(prefix, defaults.encoder, charset, 'key', format);
104
+ return [
105
+ formatter?.(key_value) +
106
+ '=' +
107
+ // @ts-expect-error
108
+ formatter?.(encoder(obj, defaults.encoder, charset, 'value', format)),
109
+ ];
110
+ }
111
+ return [formatter?.(prefix) + '=' + formatter?.(String(obj))];
112
+ }
113
+ const values = [];
114
+ if (typeof obj === 'undefined') {
115
+ return values;
116
+ }
117
+ let obj_keys;
118
+ if (generateArrayPrefix === 'comma' && is_array(obj)) {
119
+ // we need to join elements in
120
+ if (encodeValuesOnly && encoder) {
121
+ // @ts-expect-error values only
122
+ obj = (0, utils_1.maybe_map)(obj, encoder);
123
+ }
124
+ obj_keys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }];
125
+ }
126
+ else if (is_array(filter)) {
127
+ obj_keys = filter;
128
+ }
129
+ else {
130
+ const keys = Object.keys(obj);
131
+ obj_keys = sort ? keys.sort(sort) : keys;
132
+ }
133
+ const encoded_prefix = encodeDotInKeys ? String(prefix).replace(/\./g, '%2E') : String(prefix);
134
+ const adjusted_prefix = commaRoundTrip && is_array(obj) && obj.length === 1 ? encoded_prefix + '[]' : encoded_prefix;
135
+ if (allowEmptyArrays && is_array(obj) && obj.length === 0) {
136
+ return adjusted_prefix + '[]';
137
+ }
138
+ for (let j = 0; j < obj_keys.length; ++j) {
139
+ const key = obj_keys[j];
140
+ const value =
141
+ // @ts-ignore
142
+ typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key];
143
+ if (skipNulls && value === null) {
144
+ continue;
145
+ }
146
+ // @ts-ignore
147
+ const encoded_key = allowDots && encodeDotInKeys ? key.replace(/\./g, '%2E') : key;
148
+ const key_prefix = is_array(obj) ?
149
+ typeof generateArrayPrefix === 'function' ?
150
+ generateArrayPrefix(adjusted_prefix, encoded_key)
151
+ : adjusted_prefix
152
+ : adjusted_prefix + (allowDots ? '.' + encoded_key : '[' + encoded_key + ']');
153
+ sideChannel.set(object, step);
154
+ const valueSideChannel = new WeakMap();
155
+ valueSideChannel.set(sentinel, sideChannel);
156
+ push_to_array(values, inner_stringify(value, key_prefix, generateArrayPrefix, commaRoundTrip, allowEmptyArrays, strictNullHandling, skipNulls, encodeDotInKeys,
157
+ // @ts-ignore
158
+ generateArrayPrefix === 'comma' && encodeValuesOnly && is_array(obj) ? null : encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, valueSideChannel));
159
+ }
160
+ return values;
161
+ }
162
+ function normalize_stringify_options(opts = defaults) {
163
+ if (typeof opts.allowEmptyArrays !== 'undefined' && typeof opts.allowEmptyArrays !== 'boolean') {
164
+ throw new TypeError('`allowEmptyArrays` option can only be `true` or `false`, when provided');
165
+ }
166
+ if (typeof opts.encodeDotInKeys !== 'undefined' && typeof opts.encodeDotInKeys !== 'boolean') {
167
+ throw new TypeError('`encodeDotInKeys` option can only be `true` or `false`, when provided');
168
+ }
169
+ if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') {
170
+ throw new TypeError('Encoder has to be a function.');
171
+ }
172
+ const charset = opts.charset || defaults.charset;
173
+ if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
174
+ throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
175
+ }
176
+ let format = formats_1.default_format;
177
+ if (typeof opts.format !== 'undefined') {
178
+ if (!has.call(formats_1.formatters, opts.format)) {
179
+ throw new TypeError('Unknown format option provided.');
180
+ }
181
+ format = opts.format;
182
+ }
183
+ const formatter = formats_1.formatters[format];
184
+ let filter = defaults.filter;
185
+ if (typeof opts.filter === 'function' || is_array(opts.filter)) {
186
+ filter = opts.filter;
187
+ }
188
+ let arrayFormat;
189
+ if (opts.arrayFormat && opts.arrayFormat in array_prefix_generators) {
190
+ arrayFormat = opts.arrayFormat;
191
+ }
192
+ else if ('indices' in opts) {
193
+ arrayFormat = opts.indices ? 'indices' : 'repeat';
194
+ }
195
+ else {
196
+ arrayFormat = defaults.arrayFormat;
197
+ }
198
+ if ('commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') {
199
+ throw new TypeError('`commaRoundTrip` must be a boolean, or absent');
200
+ }
201
+ const allowDots = typeof opts.allowDots === 'undefined' ?
202
+ !!opts.encodeDotInKeys === true ?
203
+ true
204
+ : defaults.allowDots
205
+ : !!opts.allowDots;
206
+ return {
207
+ addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix,
208
+ // @ts-ignore
209
+ allowDots: allowDots,
210
+ allowEmptyArrays: typeof opts.allowEmptyArrays === 'boolean' ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,
211
+ arrayFormat: arrayFormat,
212
+ charset: charset,
213
+ charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
214
+ commaRoundTrip: !!opts.commaRoundTrip,
215
+ delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,
216
+ encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,
217
+ encodeDotInKeys: typeof opts.encodeDotInKeys === 'boolean' ? opts.encodeDotInKeys : defaults.encodeDotInKeys,
218
+ encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,
219
+ encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
220
+ filter: filter,
221
+ format: format,
222
+ formatter: formatter,
223
+ serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate,
224
+ skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls,
225
+ // @ts-ignore
226
+ sort: typeof opts.sort === 'function' ? opts.sort : null,
227
+ strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling,
228
+ };
229
+ }
230
+ function stringify(object, opts = {}) {
231
+ let obj = object;
232
+ const options = normalize_stringify_options(opts);
233
+ let obj_keys;
234
+ let filter;
235
+ if (typeof options.filter === 'function') {
236
+ filter = options.filter;
237
+ obj = filter('', obj);
238
+ }
239
+ else if (is_array(options.filter)) {
240
+ filter = options.filter;
241
+ obj_keys = filter;
242
+ }
243
+ const keys = [];
244
+ if (typeof obj !== 'object' || obj === null) {
245
+ return '';
246
+ }
247
+ const generateArrayPrefix = array_prefix_generators[options.arrayFormat];
248
+ const commaRoundTrip = generateArrayPrefix === 'comma' && options.commaRoundTrip;
249
+ if (!obj_keys) {
250
+ obj_keys = Object.keys(obj);
251
+ }
252
+ if (options.sort) {
253
+ obj_keys.sort(options.sort);
254
+ }
255
+ const sideChannel = new WeakMap();
256
+ for (let i = 0; i < obj_keys.length; ++i) {
257
+ const key = obj_keys[i];
258
+ if (options.skipNulls && obj[key] === null) {
259
+ continue;
260
+ }
261
+ push_to_array(keys, inner_stringify(obj[key], key,
262
+ // @ts-expect-error
263
+ generateArrayPrefix, commaRoundTrip, options.allowEmptyArrays, options.strictNullHandling, options.skipNulls, options.encodeDotInKeys, options.encode ? options.encoder : null, options.filter, options.sort, options.allowDots, options.serializeDate, options.format, options.formatter, options.encodeValuesOnly, options.charset, sideChannel));
264
+ }
265
+ const joined = keys.join(options.delimiter);
266
+ let prefix = options.addQueryPrefix === true ? '?' : '';
267
+ if (options.charsetSentinel) {
268
+ if (options.charset === 'iso-8859-1') {
269
+ // encodeURIComponent('&#10003;'), the "numeric entity" representation of a checkmark
270
+ prefix += 'utf8=%26%2310003%3B&';
271
+ }
272
+ else {
273
+ // encodeURIComponent('✓')
274
+ prefix += 'utf8=%E2%9C%93&';
275
+ }
276
+ }
277
+ return joined.length > 0 ? prefix + joined : '';
278
+ }
279
+ exports.stringify = stringify;
280
+ //# sourceMappingURL=stringify.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stringify.js","sourceRoot":"","sources":["../../src/internal/qs/stringify.ts"],"names":[],"mappings":";;;AAAA,sCAAuD;AACvD,0CAAuD;AAGvD,MAAM,GAAG,GAAG,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC;AAE5C,MAAM,uBAAuB,GAAG;IAC9B,QAAQ,CAAC,MAAmB;QAC1B,OAAO,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAC/B,CAAC;IACD,KAAK,EAAE,OAAO;IACd,OAAO,CAAC,MAAmB,EAAE,GAAW;QACtC,OAAO,MAAM,CAAC,MAAM,CAAC,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;IAC1C,CAAC;IACD,MAAM,CAAC,MAAmB;QACxB,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC;IACxB,CAAC;CACF,CAAC;AAEF,MAAM,QAAQ,GAAG,KAAK,CAAC,OAAO,CAAC;AAC/B,MAAM,IAAI,GAAG,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC;AAClC,MAAM,aAAa,GAAG,UAAU,GAAU,EAAE,cAAmB;IAC7D,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC;AAChF,CAAC,CA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