@simpleapps-com/augur-api 0.3.3 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (831) hide show
  1. package/API-SERVICES.md +44 -2
  2. package/README.md +83 -2
  3. package/dist/cjs/index.d.ts +1 -1
  4. package/dist/cjs/index.js +1 -1
  5. package/dist/cjs/services/agr-info/client.d.ts +579 -545
  6. package/dist/cjs/services/agr-info/client.d.ts.map +1 -1
  7. package/dist/cjs/services/agr-info/client.js +440 -407
  8. package/dist/cjs/services/agr-info/client.js.map +1 -1
  9. package/dist/cjs/services/agr-site/client.d.ts +156 -85
  10. package/dist/cjs/services/agr-site/client.d.ts.map +1 -1
  11. package/dist/cjs/services/agr-site/client.js +179 -106
  12. package/dist/cjs/services/agr-site/client.js.map +1 -1
  13. package/dist/cjs/services/agr-work/client.d.ts +152 -96
  14. package/dist/cjs/services/agr-work/client.d.ts.map +1 -1
  15. package/dist/cjs/services/agr-work/client.js +155 -81
  16. package/dist/cjs/services/agr-work/client.js.map +1 -1
  17. package/dist/cjs/services/avalara/client.d.ts +260 -316
  18. package/dist/cjs/services/avalara/client.d.ts.map +1 -1
  19. package/dist/cjs/services/avalara/client.js +194 -136
  20. package/dist/cjs/services/avalara/client.js.map +1 -1
  21. package/dist/cjs/services/brand-folder/client.d.ts +200 -170
  22. package/dist/cjs/services/brand-folder/client.d.ts.map +1 -1
  23. package/dist/cjs/services/brand-folder/client.js +181 -124
  24. package/dist/cjs/services/brand-folder/client.js.map +1 -1
  25. package/dist/cjs/services/brand-folder/schemas.d.ts +8 -8
  26. package/dist/cjs/services/commerce/client.d.ts +821 -877
  27. package/dist/cjs/services/commerce/client.d.ts.map +1 -1
  28. package/dist/cjs/services/commerce/client.js +843 -487
  29. package/dist/cjs/services/commerce/client.js.map +1 -1
  30. package/dist/cjs/services/customers/client.d.ts +310 -565
  31. package/dist/cjs/services/customers/client.d.ts.map +1 -1
  32. package/dist/cjs/services/customers/client.js +224 -452
  33. package/dist/cjs/services/customers/client.js.map +1 -1
  34. package/dist/cjs/services/gregorovich/client.d.ts +347 -311
  35. package/dist/cjs/services/gregorovich/client.d.ts.map +1 -1
  36. package/dist/cjs/services/gregorovich/client.js +292 -254
  37. package/dist/cjs/services/gregorovich/client.js.map +1 -1
  38. package/dist/cjs/services/gregorovich/index.d.ts +1 -1
  39. package/dist/cjs/services/gregorovich/index.d.ts.map +1 -1
  40. package/dist/cjs/services/gregorovich/schemas/chatGptAsk.d.ts +371 -0
  41. package/dist/cjs/services/gregorovich/schemas/chatGptAsk.d.ts.map +1 -0
  42. package/dist/cjs/services/gregorovich/schemas/chatGptAsk.js +71 -0
  43. package/dist/cjs/services/gregorovich/schemas/chatGptAsk.js.map +1 -0
  44. package/dist/cjs/services/gregorovich/schemas/documents.d.ts +398 -0
  45. package/dist/cjs/services/gregorovich/schemas/documents.d.ts.map +1 -0
  46. package/dist/cjs/services/gregorovich/schemas/documents.js +61 -0
  47. package/dist/cjs/services/gregorovich/schemas/documents.js.map +1 -0
  48. package/dist/cjs/services/gregorovich/schemas/healthCheck.d.ts +53 -0
  49. package/dist/cjs/services/gregorovich/schemas/healthCheck.d.ts.map +1 -0
  50. package/dist/cjs/services/gregorovich/schemas/healthCheck.js +11 -0
  51. package/dist/cjs/services/gregorovich/schemas/healthCheck.js.map +1 -0
  52. package/dist/cjs/services/gregorovich/schemas/index.d.ts +5 -0
  53. package/dist/cjs/services/gregorovich/schemas/index.d.ts.map +1 -0
  54. package/dist/cjs/services/gregorovich/schemas/index.js +21 -0
  55. package/dist/cjs/services/gregorovich/schemas/index.js.map +1 -0
  56. package/dist/cjs/services/gregorovich/schemas/ollamaGenerate.d.ts +433 -0
  57. package/dist/cjs/services/gregorovich/schemas/ollamaGenerate.d.ts.map +1 -0
  58. package/dist/cjs/services/gregorovich/schemas/ollamaGenerate.js +100 -0
  59. package/dist/cjs/services/gregorovich/schemas/ollamaGenerate.js.map +1 -0
  60. package/dist/cjs/services/gregorovich/schemas.d.ts +1 -1217
  61. package/dist/cjs/services/gregorovich/schemas.d.ts.map +1 -1
  62. package/dist/cjs/services/gregorovich/schemas.js +16 -198
  63. package/dist/cjs/services/gregorovich/schemas.js.map +1 -1
  64. package/dist/cjs/services/items/client.d.ts +1865 -1724
  65. package/dist/cjs/services/items/client.d.ts.map +1 -1
  66. package/dist/cjs/services/items/client.js +1726 -1171
  67. package/dist/cjs/services/items/client.js.map +1 -1
  68. package/dist/cjs/services/items/schemas/attributes.d.ts +2 -2
  69. package/dist/cjs/services/items/schemas/brandsItems.d.ts +304 -0
  70. package/dist/cjs/services/items/schemas/brandsItems.d.ts.map +1 -0
  71. package/dist/cjs/services/items/schemas/brandsItems.js +44 -0
  72. package/dist/cjs/services/items/schemas/brandsItems.js.map +1 -0
  73. package/dist/cjs/services/items/schemas/categoriesImages.d.ts +127 -0
  74. package/dist/cjs/services/items/schemas/categoriesImages.d.ts.map +1 -0
  75. package/dist/cjs/services/items/schemas/categoriesImages.js +24 -0
  76. package/dist/cjs/services/items/schemas/categoriesImages.js.map +1 -0
  77. package/dist/cjs/services/items/schemas/index.d.ts +12 -0
  78. package/dist/cjs/services/items/schemas/index.d.ts.map +1 -1
  79. package/dist/cjs/services/items/schemas/index.js +12 -0
  80. package/dist/cjs/services/items/schemas/index.js.map +1 -1
  81. package/dist/cjs/services/items/schemas/internalPdf.d.ts +212 -0
  82. package/dist/cjs/services/items/schemas/internalPdf.d.ts.map +1 -0
  83. package/dist/cjs/services/items/schemas/internalPdf.js +44 -0
  84. package/dist/cjs/services/items/schemas/internalPdf.js.map +1 -0
  85. package/dist/cjs/services/items/schemas/invMastAccessory.d.ts +127 -0
  86. package/dist/cjs/services/items/schemas/invMastAccessory.d.ts.map +1 -0
  87. package/dist/cjs/services/items/schemas/invMastAccessory.js +21 -0
  88. package/dist/cjs/services/items/schemas/invMastAccessory.js.map +1 -0
  89. package/dist/cjs/services/items/schemas/invMastAlternateCode.d.ts +147 -0
  90. package/dist/cjs/services/items/schemas/invMastAlternateCode.d.ts.map +1 -0
  91. package/dist/cjs/services/items/schemas/invMastAlternateCode.js +26 -0
  92. package/dist/cjs/services/items/schemas/invMastAlternateCode.js.map +1 -0
  93. package/dist/cjs/services/items/schemas/invMastAttributes.d.ts +177 -0
  94. package/dist/cjs/services/items/schemas/invMastAttributes.d.ts.map +1 -0
  95. package/dist/cjs/services/items/schemas/invMastAttributes.js +35 -0
  96. package/dist/cjs/services/items/schemas/invMastAttributes.js.map +1 -0
  97. package/dist/cjs/services/items/schemas/invMastAttributesValues.d.ts +333 -0
  98. package/dist/cjs/services/items/schemas/invMastAttributesValues.d.ts.map +1 -0
  99. package/dist/cjs/services/items/schemas/invMastAttributesValues.js +49 -0
  100. package/dist/cjs/services/items/schemas/invMastAttributesValues.js.map +1 -0
  101. package/dist/cjs/services/items/schemas/invMastDoc.d.ts +137 -0
  102. package/dist/cjs/services/items/schemas/invMastDoc.d.ts.map +1 -0
  103. package/dist/cjs/services/items/schemas/invMastDoc.js +22 -0
  104. package/dist/cjs/services/items/schemas/invMastDoc.js.map +1 -0
  105. package/dist/cjs/services/items/schemas/invMastLinks.d.ts +147 -0
  106. package/dist/cjs/services/items/schemas/invMastLinks.d.ts.map +1 -0
  107. package/dist/cjs/services/items/schemas/invMastLinks.js +10 -0
  108. package/dist/cjs/services/items/schemas/invMastLinks.js.map +1 -0
  109. package/dist/cjs/services/items/schemas/invMastSimilar.d.ts +127 -0
  110. package/dist/cjs/services/items/schemas/invMastSimilar.d.ts.map +1 -0
  111. package/dist/cjs/services/items/schemas/invMastSimilar.js +21 -0
  112. package/dist/cjs/services/items/schemas/invMastSimilar.js.map +1 -0
  113. package/dist/cjs/services/items/schemas/invMastSub.d.ts +127 -0
  114. package/dist/cjs/services/items/schemas/invMastSub.d.ts.map +1 -0
  115. package/dist/cjs/services/items/schemas/invMastSub.js +21 -0
  116. package/dist/cjs/services/items/schemas/invMastSub.js.map +1 -0
  117. package/dist/cjs/services/items/schemas/invMastSubParts.d.ts +187 -0
  118. package/dist/cjs/services/items/schemas/invMastSubParts.d.ts.map +1 -0
  119. package/dist/cjs/services/items/schemas/invMastSubParts.js +14 -0
  120. package/dist/cjs/services/items/schemas/invMastSubParts.js.map +1 -0
  121. package/dist/cjs/services/items/schemas/itemFavorites.d.ts +236 -0
  122. package/dist/cjs/services/items/schemas/itemFavorites.d.ts.map +1 -0
  123. package/dist/cjs/services/items/schemas/itemFavorites.js +11 -0
  124. package/dist/cjs/services/items/schemas/itemFavorites.js.map +1 -0
  125. package/dist/cjs/services/items/schemas/locationsBins.d.ts +381 -0
  126. package/dist/cjs/services/items/schemas/locationsBins.d.ts.map +1 -0
  127. package/dist/cjs/services/items/schemas/locationsBins.js +35 -0
  128. package/dist/cjs/services/items/schemas/locationsBins.js.map +1 -0
  129. package/dist/cjs/services/legacy/client.d.ts +522 -280
  130. package/dist/cjs/services/legacy/client.d.ts.map +1 -1
  131. package/dist/cjs/services/legacy/client.js +388 -146
  132. package/dist/cjs/services/legacy/client.js.map +1 -1
  133. package/dist/cjs/services/nexus/client.d.ts +169 -156
  134. package/dist/cjs/services/nexus/client.d.ts.map +1 -1
  135. package/dist/cjs/services/nexus/client.js +158 -145
  136. package/dist/cjs/services/nexus/client.js.map +1 -1
  137. package/dist/cjs/services/open-search/client.d.ts +434 -162
  138. package/dist/cjs/services/open-search/client.d.ts.map +1 -1
  139. package/dist/cjs/services/open-search/client.js +248 -115
  140. package/dist/cjs/services/open-search/client.js.map +1 -1
  141. package/dist/cjs/services/{pricing/schemas/health.d.ts → open-search/schemas/healthCheck.d.ts} +19 -49
  142. package/dist/cjs/services/open-search/schemas/healthCheck.d.ts.map +1 -0
  143. package/dist/cjs/services/open-search/schemas/healthCheck.js +17 -0
  144. package/dist/cjs/services/open-search/schemas/healthCheck.js.map +1 -0
  145. package/dist/cjs/services/open-search/schemas/index.d.ts +5 -0
  146. package/dist/cjs/services/open-search/schemas/index.d.ts.map +1 -1
  147. package/dist/cjs/services/open-search/schemas/index.js +27 -0
  148. package/dist/cjs/services/open-search/schemas/index.js.map +1 -1
  149. package/dist/cjs/services/open-search/schemas/itemSearch.d.ts +394 -0
  150. package/dist/cjs/services/open-search/schemas/itemSearch.d.ts.map +1 -0
  151. package/dist/cjs/services/open-search/schemas/itemSearch.js +74 -0
  152. package/dist/cjs/services/open-search/schemas/itemSearch.js.map +1 -0
  153. package/dist/cjs/services/open-search/schemas/itemSearchAttributes.d.ts +359 -0
  154. package/dist/cjs/services/open-search/schemas/itemSearchAttributes.d.ts.map +1 -0
  155. package/dist/cjs/services/open-search/schemas/itemSearchAttributes.js +47 -0
  156. package/dist/cjs/services/open-search/schemas/itemSearchAttributes.js.map +1 -0
  157. package/dist/cjs/services/open-search/schemas/itemsRefresh.d.ts +512 -0
  158. package/dist/cjs/services/open-search/schemas/itemsRefresh.d.ts.map +1 -0
  159. package/dist/cjs/services/open-search/schemas/itemsRefresh.js +62 -0
  160. package/dist/cjs/services/open-search/schemas/itemsRefresh.js.map +1 -0
  161. package/dist/cjs/services/open-search/schemas/ping.d.ts +57 -0
  162. package/dist/cjs/services/open-search/schemas/ping.d.ts.map +1 -0
  163. package/dist/cjs/services/open-search/schemas/ping.js +14 -0
  164. package/dist/cjs/services/open-search/schemas/ping.js.map +1 -0
  165. package/dist/cjs/services/orders/client.d.ts +496 -646
  166. package/dist/cjs/services/orders/client.d.ts.map +1 -1
  167. package/dist/cjs/services/orders/client.js +311 -476
  168. package/dist/cjs/services/orders/client.js.map +1 -1
  169. package/dist/cjs/services/orders/schemas/invoices.d.ts +10 -10
  170. package/dist/cjs/services/orders/schemas/invoices.js +1 -1
  171. package/dist/cjs/services/p21-apis/client.d.ts +311 -534
  172. package/dist/cjs/services/p21-apis/client.d.ts.map +1 -1
  173. package/dist/cjs/services/p21-apis/client.js +303 -636
  174. package/dist/cjs/services/p21-apis/client.js.map +1 -1
  175. package/dist/cjs/services/p21-apis/schemas.d.ts +9 -78
  176. package/dist/cjs/services/p21-apis/schemas.d.ts.map +1 -1
  177. package/dist/cjs/services/p21-apis/schemas.js +9 -32
  178. package/dist/cjs/services/p21-apis/schemas.js.map +1 -1
  179. package/dist/cjs/services/p21-core/client.d.ts +111 -75
  180. package/dist/cjs/services/p21-core/client.d.ts.map +1 -1
  181. package/dist/cjs/services/p21-core/client.js +146 -106
  182. package/dist/cjs/services/p21-core/client.js.map +1 -1
  183. package/dist/cjs/services/p21-pim/client.d.ts +163 -37
  184. package/dist/cjs/services/p21-pim/client.d.ts.map +1 -1
  185. package/dist/cjs/services/p21-pim/client.js +163 -37
  186. package/dist/cjs/services/p21-pim/client.js.map +1 -1
  187. package/dist/cjs/services/p21-pim/schemas/ai-suggestions.d.ts +6 -6
  188. package/dist/cjs/services/p21-pim/schemas/ai-suggestions.d.ts.map +1 -1
  189. package/dist/cjs/services/p21-pim/schemas/ai-suggestions.js +1 -1
  190. package/dist/cjs/services/p21-pim/schemas/ai-suggestions.js.map +1 -1
  191. package/dist/cjs/services/p21-pim/schemas/inventory.d.ts +32 -32
  192. package/dist/cjs/services/p21-sism/client.d.ts +315 -261
  193. package/dist/cjs/services/p21-sism/client.d.ts.map +1 -1
  194. package/dist/cjs/services/p21-sism/client.js +371 -313
  195. package/dist/cjs/services/p21-sism/client.js.map +1 -1
  196. package/dist/cjs/services/pricing/client.d.ts +289 -59
  197. package/dist/cjs/services/pricing/client.d.ts.map +1 -1
  198. package/dist/cjs/services/pricing/client.js +318 -70
  199. package/dist/cjs/services/pricing/client.js.map +1 -1
  200. package/dist/cjs/services/pricing/schemas/healthCheck.d.ts +70 -0
  201. package/dist/cjs/services/pricing/schemas/healthCheck.d.ts.map +1 -0
  202. package/dist/cjs/services/pricing/schemas/{health.js → healthCheck.js} +2 -3
  203. package/dist/cjs/services/pricing/schemas/healthCheck.js.map +1 -0
  204. package/dist/cjs/services/pricing/schemas/index.d.ts +6 -4
  205. package/dist/cjs/services/pricing/schemas/index.d.ts.map +1 -1
  206. package/dist/cjs/services/pricing/schemas/index.js +9 -5
  207. package/dist/cjs/services/pricing/schemas/index.js.map +1 -1
  208. package/dist/cjs/services/pricing/schemas/jobPriceHdr.d.ts +391 -0
  209. package/dist/cjs/services/pricing/schemas/jobPriceHdr.d.ts.map +1 -0
  210. package/dist/cjs/services/pricing/schemas/jobPriceHdr.js +34 -0
  211. package/dist/cjs/services/pricing/schemas/jobPriceHdr.js.map +1 -0
  212. package/dist/cjs/services/pricing/schemas/{job-pricing.d.ts → jobPriceHdrLines.d.ts} +1 -390
  213. package/dist/cjs/services/pricing/schemas/jobPriceHdrLines.d.ts.map +1 -0
  214. package/dist/cjs/services/pricing/schemas/{job-pricing.js → jobPriceHdrLines.js} +5 -29
  215. package/dist/cjs/services/pricing/schemas/jobPriceHdrLines.js.map +1 -0
  216. package/dist/cjs/services/pricing/schemas/ping.d.ts +49 -0
  217. package/dist/cjs/services/pricing/schemas/ping.d.ts.map +1 -0
  218. package/dist/cjs/services/pricing/schemas/ping.js +6 -0
  219. package/dist/cjs/services/pricing/schemas/ping.js.map +1 -0
  220. package/dist/cjs/services/pricing/schemas/{pricing.d.ts → priceEngine.d.ts} +1 -1
  221. package/dist/cjs/services/pricing/schemas/priceEngine.d.ts.map +1 -0
  222. package/dist/cjs/services/pricing/schemas/{pricing.js → priceEngine.js} +4 -2
  223. package/dist/cjs/services/pricing/schemas/priceEngine.js.map +1 -0
  224. package/dist/{types/services/pricing/schemas/tax.d.ts → cjs/services/pricing/schemas/taxEngine.d.ts} +1 -1
  225. package/dist/cjs/services/pricing/schemas/taxEngine.d.ts.map +1 -0
  226. package/dist/cjs/services/pricing/schemas/{tax.js → taxEngine.js} +7 -2
  227. package/dist/cjs/services/pricing/schemas/taxEngine.js.map +1 -0
  228. package/dist/cjs/services/shipping/client.d.ts +47 -110
  229. package/dist/cjs/services/shipping/client.d.ts.map +1 -1
  230. package/dist/cjs/services/shipping/client.js +62 -115
  231. package/dist/cjs/services/shipping/client.js.map +1 -1
  232. package/dist/cjs/services/shipping/index.d.ts +2 -2
  233. package/dist/cjs/services/shipping/index.d.ts.map +1 -1
  234. package/dist/cjs/services/shipping/index.js +3 -3
  235. package/dist/cjs/services/shipping/index.js.map +1 -1
  236. package/dist/cjs/services/shipping/schemas/healthCheck.d.ts +118 -0
  237. package/dist/cjs/services/shipping/schemas/healthCheck.d.ts.map +1 -0
  238. package/dist/cjs/services/shipping/schemas/healthCheck.js +27 -0
  239. package/dist/cjs/services/shipping/schemas/healthCheck.js.map +1 -0
  240. package/dist/cjs/services/shipping/schemas/index.d.ts +5 -0
  241. package/dist/cjs/services/shipping/schemas/index.d.ts.map +1 -0
  242. package/dist/cjs/services/shipping/schemas/index.js +18 -0
  243. package/dist/cjs/services/shipping/schemas/index.js.map +1 -0
  244. package/dist/cjs/services/shipping/{schemas.d.ts → schemas/rates.d.ts} +1 -117
  245. package/dist/cjs/services/shipping/{schemas.d.ts.map → schemas/rates.d.ts.map} +1 -1
  246. package/dist/cjs/services/shipping/{schemas.js → schemas/rates.js} +3 -27
  247. package/dist/cjs/services/shipping/schemas/rates.js.map +1 -0
  248. package/dist/cjs/services/slack/client.d.ts +289 -260
  249. package/dist/cjs/services/slack/client.d.ts.map +1 -1
  250. package/dist/cjs/services/slack/client.js +322 -279
  251. package/dist/cjs/services/slack/client.js.map +1 -1
  252. package/dist/cjs/services/slack/index.d.ts +2 -2
  253. package/dist/cjs/services/slack/index.d.ts.map +1 -1
  254. package/dist/cjs/services/slack/index.js +5 -5
  255. package/dist/cjs/services/slack/index.js.map +1 -1
  256. package/dist/cjs/services/slack/schemas/healthCheck.d.ts +138 -0
  257. package/dist/cjs/services/slack/schemas/healthCheck.d.ts.map +1 -0
  258. package/dist/cjs/services/slack/schemas/healthCheck.js +29 -0
  259. package/dist/cjs/services/slack/schemas/healthCheck.js.map +1 -0
  260. package/dist/cjs/services/slack/schemas/index.d.ts +4 -0
  261. package/dist/cjs/services/slack/schemas/index.d.ts.map +1 -0
  262. package/dist/cjs/services/slack/schemas/index.js +19 -0
  263. package/dist/cjs/services/slack/schemas/index.js.map +1 -0
  264. package/dist/{types/services/slack/schemas.d.ts → cjs/services/slack/schemas/webHook.d.ts} +3 -298
  265. package/dist/cjs/services/slack/schemas/webHook.d.ts.map +1 -0
  266. package/dist/cjs/services/slack/{schemas.js → schemas/webHook.js} +4 -56
  267. package/dist/cjs/services/slack/schemas/webHook.js.map +1 -0
  268. package/dist/cjs/services/slack/schemas/webHookRefresh.d.ts +161 -0
  269. package/dist/cjs/services/slack/schemas/webHookRefresh.d.ts.map +1 -0
  270. package/dist/cjs/services/slack/schemas/webHookRefresh.js +32 -0
  271. package/dist/cjs/services/slack/schemas/webHookRefresh.js.map +1 -0
  272. package/dist/cjs/services/smarty-streets/client.d.ts +238 -214
  273. package/dist/cjs/services/smarty-streets/client.d.ts.map +1 -1
  274. package/dist/cjs/services/smarty-streets/client.js +273 -250
  275. package/dist/cjs/services/smarty-streets/client.js.map +1 -1
  276. package/dist/cjs/services/smarty-streets/index.d.ts +2 -2
  277. package/dist/cjs/services/smarty-streets/index.d.ts.map +1 -1
  278. package/dist/cjs/services/smarty-streets/index.js +9 -9
  279. package/dist/cjs/services/smarty-streets/index.js.map +1 -1
  280. package/dist/cjs/services/smarty-streets/schemas/healthCheck.d.ts +140 -0
  281. package/dist/cjs/services/smarty-streets/schemas/healthCheck.d.ts.map +1 -0
  282. package/dist/cjs/services/smarty-streets/schemas/healthCheck.js +31 -0
  283. package/dist/cjs/services/smarty-streets/schemas/healthCheck.js.map +1 -0
  284. package/dist/cjs/services/smarty-streets/schemas/index.d.ts +7 -0
  285. package/dist/cjs/services/smarty-streets/schemas/index.d.ts.map +1 -0
  286. package/dist/cjs/services/smarty-streets/schemas/index.js +25 -0
  287. package/dist/cjs/services/smarty-streets/schemas/index.js.map +1 -0
  288. package/dist/cjs/services/smarty-streets/schemas/ping.d.ts +120 -0
  289. package/dist/cjs/services/smarty-streets/schemas/ping.d.ts.map +1 -0
  290. package/dist/cjs/services/smarty-streets/schemas/ping.js +29 -0
  291. package/dist/cjs/services/smarty-streets/schemas/ping.js.map +1 -0
  292. package/dist/cjs/services/smarty-streets/{schemas.d.ts → schemas/usLookup.d.ts} +11 -262
  293. package/dist/cjs/services/smarty-streets/schemas/usLookup.d.ts.map +1 -0
  294. package/dist/cjs/services/smarty-streets/{schemas.js → schemas/usLookup.js} +9 -55
  295. package/dist/cjs/services/smarty-streets/schemas/usLookup.js.map +1 -0
  296. package/dist/cjs/services/ups/client.d.ts +65 -95
  297. package/dist/cjs/services/ups/client.d.ts.map +1 -1
  298. package/dist/cjs/services/ups/client.js +76 -105
  299. package/dist/cjs/services/ups/client.js.map +1 -1
  300. package/dist/cjs/services/ups/schemas/healthCheck.d.ts +138 -0
  301. package/dist/cjs/services/ups/schemas/healthCheck.d.ts.map +1 -0
  302. package/dist/cjs/services/ups/schemas/healthCheck.js +29 -0
  303. package/dist/cjs/services/ups/schemas/healthCheck.js.map +1 -0
  304. package/dist/cjs/services/ups/schemas/index.d.ts +5 -0
  305. package/dist/cjs/services/ups/schemas/index.d.ts.map +1 -0
  306. package/dist/cjs/services/ups/schemas/index.js +18 -0
  307. package/dist/cjs/services/ups/schemas/index.js.map +1 -0
  308. package/dist/cjs/services/ups/schemas/ratesShop.d.ts +1751 -0
  309. package/dist/cjs/services/ups/schemas/ratesShop.d.ts.map +1 -0
  310. package/dist/cjs/services/ups/schemas/ratesShop.js +175 -0
  311. package/dist/cjs/services/ups/schemas/ratesShop.js.map +1 -0
  312. package/dist/cjs/services/ups/schemas.d.ts +4 -1886
  313. package/dist/cjs/services/ups/schemas.d.ts.map +1 -1
  314. package/dist/cjs/services/ups/schemas.js +15 -198
  315. package/dist/cjs/services/ups/schemas.js.map +1 -1
  316. package/dist/cjs/services/vmi/client.d.ts +605 -550
  317. package/dist/cjs/services/vmi/client.d.ts.map +1 -1
  318. package/dist/cjs/services/vmi/client.js +604 -558
  319. package/dist/cjs/services/vmi/client.js.map +1 -1
  320. package/dist/esm/index.d.ts +1 -1
  321. package/dist/esm/index.js +1 -1
  322. package/dist/esm/services/agr-info/client.d.ts +579 -545
  323. package/dist/esm/services/agr-info/client.d.ts.map +1 -1
  324. package/dist/esm/services/agr-info/client.js +440 -407
  325. package/dist/esm/services/agr-info/client.js.map +1 -1
  326. package/dist/esm/services/agr-site/client.d.ts +156 -85
  327. package/dist/esm/services/agr-site/client.d.ts.map +1 -1
  328. package/dist/esm/services/agr-site/client.js +179 -106
  329. package/dist/esm/services/agr-site/client.js.map +1 -1
  330. package/dist/esm/services/agr-work/client.d.ts +152 -96
  331. package/dist/esm/services/agr-work/client.d.ts.map +1 -1
  332. package/dist/esm/services/agr-work/client.js +155 -81
  333. package/dist/esm/services/agr-work/client.js.map +1 -1
  334. package/dist/esm/services/avalara/client.d.ts +260 -316
  335. package/dist/esm/services/avalara/client.d.ts.map +1 -1
  336. package/dist/esm/services/avalara/client.js +195 -137
  337. package/dist/esm/services/avalara/client.js.map +1 -1
  338. package/dist/esm/services/brand-folder/client.d.ts +200 -170
  339. package/dist/esm/services/brand-folder/client.d.ts.map +1 -1
  340. package/dist/esm/services/brand-folder/client.js +182 -125
  341. package/dist/esm/services/brand-folder/client.js.map +1 -1
  342. package/dist/esm/services/brand-folder/schemas.d.ts +8 -8
  343. package/dist/esm/services/commerce/client.d.ts +821 -877
  344. package/dist/esm/services/commerce/client.d.ts.map +1 -1
  345. package/dist/esm/services/commerce/client.js +844 -488
  346. package/dist/esm/services/commerce/client.js.map +1 -1
  347. package/dist/esm/services/customers/client.d.ts +310 -565
  348. package/dist/esm/services/customers/client.d.ts.map +1 -1
  349. package/dist/esm/services/customers/client.js +224 -452
  350. package/dist/esm/services/customers/client.js.map +1 -1
  351. package/dist/esm/services/gregorovich/client.d.ts +347 -311
  352. package/dist/esm/services/gregorovich/client.d.ts.map +1 -1
  353. package/dist/esm/services/gregorovich/client.js +292 -254
  354. package/dist/esm/services/gregorovich/client.js.map +1 -1
  355. package/dist/esm/services/gregorovich/index.d.ts +1 -1
  356. package/dist/esm/services/gregorovich/index.d.ts.map +1 -1
  357. package/dist/esm/services/gregorovich/schemas/chatGptAsk.d.ts +371 -0
  358. package/dist/esm/services/gregorovich/schemas/chatGptAsk.d.ts.map +1 -0
  359. package/dist/esm/services/gregorovich/schemas/chatGptAsk.js +68 -0
  360. package/dist/esm/services/gregorovich/schemas/chatGptAsk.js.map +1 -0
  361. package/dist/esm/services/gregorovich/schemas/documents.d.ts +398 -0
  362. package/dist/esm/services/gregorovich/schemas/documents.d.ts.map +1 -0
  363. package/dist/esm/services/gregorovich/schemas/documents.js +58 -0
  364. package/dist/esm/services/gregorovich/schemas/documents.js.map +1 -0
  365. package/dist/esm/services/gregorovich/schemas/healthCheck.d.ts +53 -0
  366. package/dist/esm/services/gregorovich/schemas/healthCheck.d.ts.map +1 -0
  367. package/dist/esm/services/gregorovich/schemas/healthCheck.js +8 -0
  368. package/dist/esm/services/gregorovich/schemas/healthCheck.js.map +1 -0
  369. package/dist/esm/services/gregorovich/schemas/index.d.ts +5 -0
  370. package/dist/esm/services/gregorovich/schemas/index.d.ts.map +1 -0
  371. package/dist/esm/services/gregorovich/schemas/index.js +9 -0
  372. package/dist/esm/services/gregorovich/schemas/index.js.map +1 -0
  373. package/dist/esm/services/gregorovich/schemas/ollamaGenerate.d.ts +433 -0
  374. package/dist/esm/services/gregorovich/schemas/ollamaGenerate.d.ts.map +1 -0
  375. package/dist/esm/services/gregorovich/schemas/ollamaGenerate.js +97 -0
  376. package/dist/esm/services/gregorovich/schemas/ollamaGenerate.js.map +1 -0
  377. package/dist/esm/services/gregorovich/schemas.d.ts +1 -1217
  378. package/dist/esm/services/gregorovich/schemas.d.ts.map +1 -1
  379. package/dist/esm/services/gregorovich/schemas.js +2 -197
  380. package/dist/esm/services/gregorovich/schemas.js.map +1 -1
  381. package/dist/esm/services/items/client.d.ts +1865 -1724
  382. package/dist/esm/services/items/client.d.ts.map +1 -1
  383. package/dist/esm/services/items/client.js +1738 -1176
  384. package/dist/esm/services/items/client.js.map +1 -1
  385. package/dist/esm/services/items/schemas/attributes.d.ts +2 -2
  386. package/dist/esm/services/items/schemas/brandsItems.d.ts +304 -0
  387. package/dist/esm/services/items/schemas/brandsItems.d.ts.map +1 -0
  388. package/dist/esm/services/items/schemas/brandsItems.js +41 -0
  389. package/dist/esm/services/items/schemas/brandsItems.js.map +1 -0
  390. package/dist/esm/services/items/schemas/categoriesImages.d.ts +127 -0
  391. package/dist/esm/services/items/schemas/categoriesImages.d.ts.map +1 -0
  392. package/dist/esm/services/items/schemas/categoriesImages.js +21 -0
  393. package/dist/esm/services/items/schemas/categoriesImages.js.map +1 -0
  394. package/dist/esm/services/items/schemas/index.d.ts +12 -0
  395. package/dist/esm/services/items/schemas/index.d.ts.map +1 -1
  396. package/dist/esm/services/items/schemas/index.js +12 -0
  397. package/dist/esm/services/items/schemas/index.js.map +1 -1
  398. package/dist/esm/services/items/schemas/internalPdf.d.ts +212 -0
  399. package/dist/esm/services/items/schemas/internalPdf.d.ts.map +1 -0
  400. package/dist/esm/services/items/schemas/internalPdf.js +41 -0
  401. package/dist/esm/services/items/schemas/internalPdf.js.map +1 -0
  402. package/dist/esm/services/items/schemas/invMastAccessory.d.ts +127 -0
  403. package/dist/esm/services/items/schemas/invMastAccessory.d.ts.map +1 -0
  404. package/dist/esm/services/items/schemas/invMastAccessory.js +18 -0
  405. package/dist/esm/services/items/schemas/invMastAccessory.js.map +1 -0
  406. package/dist/esm/services/items/schemas/invMastAlternateCode.d.ts +147 -0
  407. package/dist/esm/services/items/schemas/invMastAlternateCode.d.ts.map +1 -0
  408. package/dist/esm/services/items/schemas/invMastAlternateCode.js +23 -0
  409. package/dist/esm/services/items/schemas/invMastAlternateCode.js.map +1 -0
  410. package/dist/esm/services/items/schemas/invMastAttributes.d.ts +177 -0
  411. package/dist/esm/services/items/schemas/invMastAttributes.d.ts.map +1 -0
  412. package/dist/esm/services/items/schemas/invMastAttributes.js +32 -0
  413. package/dist/esm/services/items/schemas/invMastAttributes.js.map +1 -0
  414. package/dist/esm/services/items/schemas/invMastAttributesValues.d.ts +333 -0
  415. package/dist/esm/services/items/schemas/invMastAttributesValues.d.ts.map +1 -0
  416. package/dist/esm/services/items/schemas/invMastAttributesValues.js +46 -0
  417. package/dist/esm/services/items/schemas/invMastAttributesValues.js.map +1 -0
  418. package/dist/esm/services/items/schemas/invMastDoc.d.ts +137 -0
  419. package/dist/esm/services/items/schemas/invMastDoc.d.ts.map +1 -0
  420. package/dist/esm/services/items/schemas/invMastDoc.js +19 -0
  421. package/dist/esm/services/items/schemas/invMastDoc.js.map +1 -0
  422. package/dist/esm/services/items/schemas/invMastLinks.d.ts +147 -0
  423. package/dist/esm/services/items/schemas/invMastLinks.d.ts.map +1 -0
  424. package/dist/esm/services/items/schemas/invMastLinks.js +7 -0
  425. package/dist/esm/services/items/schemas/invMastLinks.js.map +1 -0
  426. package/dist/esm/services/items/schemas/invMastSimilar.d.ts +127 -0
  427. package/dist/esm/services/items/schemas/invMastSimilar.d.ts.map +1 -0
  428. package/dist/esm/services/items/schemas/invMastSimilar.js +18 -0
  429. package/dist/esm/services/items/schemas/invMastSimilar.js.map +1 -0
  430. package/dist/esm/services/items/schemas/invMastSub.d.ts +127 -0
  431. package/dist/esm/services/items/schemas/invMastSub.d.ts.map +1 -0
  432. package/dist/esm/services/items/schemas/invMastSub.js +18 -0
  433. package/dist/esm/services/items/schemas/invMastSub.js.map +1 -0
  434. package/dist/esm/services/items/schemas/invMastSubParts.d.ts +187 -0
  435. package/dist/esm/services/items/schemas/invMastSubParts.d.ts.map +1 -0
  436. package/dist/esm/services/items/schemas/invMastSubParts.js +11 -0
  437. package/dist/esm/services/items/schemas/invMastSubParts.js.map +1 -0
  438. package/dist/esm/services/items/schemas/itemFavorites.d.ts +236 -0
  439. package/dist/esm/services/items/schemas/itemFavorites.d.ts.map +1 -0
  440. package/dist/esm/services/items/schemas/itemFavorites.js +8 -0
  441. package/dist/esm/services/items/schemas/itemFavorites.js.map +1 -0
  442. package/dist/esm/services/items/schemas/locationsBins.d.ts +381 -0
  443. package/dist/esm/services/items/schemas/locationsBins.d.ts.map +1 -0
  444. package/dist/esm/services/items/schemas/locationsBins.js +32 -0
  445. package/dist/esm/services/items/schemas/locationsBins.js.map +1 -0
  446. package/dist/esm/services/legacy/client.d.ts +522 -280
  447. package/dist/esm/services/legacy/client.d.ts.map +1 -1
  448. package/dist/esm/services/legacy/client.js +388 -146
  449. package/dist/esm/services/legacy/client.js.map +1 -1
  450. package/dist/esm/services/nexus/client.d.ts +169 -156
  451. package/dist/esm/services/nexus/client.d.ts.map +1 -1
  452. package/dist/esm/services/nexus/client.js +158 -145
  453. package/dist/esm/services/nexus/client.js.map +1 -1
  454. package/dist/esm/services/open-search/client.d.ts +434 -162
  455. package/dist/esm/services/open-search/client.d.ts.map +1 -1
  456. package/dist/esm/services/open-search/client.js +253 -116
  457. package/dist/esm/services/open-search/client.js.map +1 -1
  458. package/dist/esm/services/{pricing/schemas/health.d.ts → open-search/schemas/healthCheck.d.ts} +19 -49
  459. package/dist/esm/services/open-search/schemas/healthCheck.d.ts.map +1 -0
  460. package/dist/esm/services/open-search/schemas/healthCheck.js +14 -0
  461. package/dist/esm/services/open-search/schemas/healthCheck.js.map +1 -0
  462. package/dist/esm/services/open-search/schemas/index.d.ts +5 -0
  463. package/dist/esm/services/open-search/schemas/index.d.ts.map +1 -1
  464. package/dist/esm/services/open-search/schemas/index.js +6 -0
  465. package/dist/esm/services/open-search/schemas/index.js.map +1 -1
  466. package/dist/esm/services/open-search/schemas/itemSearch.d.ts +394 -0
  467. package/dist/esm/services/open-search/schemas/itemSearch.d.ts.map +1 -0
  468. package/dist/esm/services/open-search/schemas/itemSearch.js +71 -0
  469. package/dist/esm/services/open-search/schemas/itemSearch.js.map +1 -0
  470. package/dist/esm/services/open-search/schemas/itemSearchAttributes.d.ts +359 -0
  471. package/dist/esm/services/open-search/schemas/itemSearchAttributes.d.ts.map +1 -0
  472. package/dist/esm/services/open-search/schemas/itemSearchAttributes.js +44 -0
  473. package/dist/esm/services/open-search/schemas/itemSearchAttributes.js.map +1 -0
  474. package/dist/esm/services/open-search/schemas/itemsRefresh.d.ts +512 -0
  475. package/dist/esm/services/open-search/schemas/itemsRefresh.d.ts.map +1 -0
  476. package/dist/esm/services/open-search/schemas/itemsRefresh.js +59 -0
  477. package/dist/esm/services/open-search/schemas/itemsRefresh.js.map +1 -0
  478. package/dist/esm/services/open-search/schemas/ping.d.ts +57 -0
  479. package/dist/esm/services/open-search/schemas/ping.d.ts.map +1 -0
  480. package/dist/esm/services/open-search/schemas/ping.js +11 -0
  481. package/dist/esm/services/open-search/schemas/ping.js.map +1 -0
  482. package/dist/esm/services/orders/client.d.ts +496 -646
  483. package/dist/esm/services/orders/client.d.ts.map +1 -1
  484. package/dist/esm/services/orders/client.js +311 -476
  485. package/dist/esm/services/orders/client.js.map +1 -1
  486. package/dist/esm/services/orders/schemas/invoices.d.ts +10 -10
  487. package/dist/esm/services/orders/schemas/invoices.js +1 -1
  488. package/dist/esm/services/p21-apis/client.d.ts +311 -534
  489. package/dist/esm/services/p21-apis/client.d.ts.map +1 -1
  490. package/dist/esm/services/p21-apis/client.js +304 -637
  491. package/dist/esm/services/p21-apis/client.js.map +1 -1
  492. package/dist/esm/services/p21-apis/schemas.d.ts +9 -78
  493. package/dist/esm/services/p21-apis/schemas.d.ts.map +1 -1
  494. package/dist/esm/services/p21-apis/schemas.js +9 -32
  495. package/dist/esm/services/p21-apis/schemas.js.map +1 -1
  496. package/dist/esm/services/p21-core/client.d.ts +111 -75
  497. package/dist/esm/services/p21-core/client.d.ts.map +1 -1
  498. package/dist/esm/services/p21-core/client.js +146 -106
  499. package/dist/esm/services/p21-core/client.js.map +1 -1
  500. package/dist/esm/services/p21-pim/client.d.ts +163 -37
  501. package/dist/esm/services/p21-pim/client.d.ts.map +1 -1
  502. package/dist/esm/services/p21-pim/client.js +163 -37
  503. package/dist/esm/services/p21-pim/client.js.map +1 -1
  504. package/dist/esm/services/p21-pim/schemas/ai-suggestions.d.ts +6 -6
  505. package/dist/esm/services/p21-pim/schemas/ai-suggestions.d.ts.map +1 -1
  506. package/dist/esm/services/p21-pim/schemas/ai-suggestions.js +1 -1
  507. package/dist/esm/services/p21-pim/schemas/ai-suggestions.js.map +1 -1
  508. package/dist/esm/services/p21-pim/schemas/inventory.d.ts +32 -32
  509. package/dist/esm/services/p21-sism/client.d.ts +315 -261
  510. package/dist/esm/services/p21-sism/client.d.ts.map +1 -1
  511. package/dist/esm/services/p21-sism/client.js +371 -313
  512. package/dist/esm/services/p21-sism/client.js.map +1 -1
  513. package/dist/esm/services/pricing/client.d.ts +289 -59
  514. package/dist/esm/services/pricing/client.d.ts.map +1 -1
  515. package/dist/esm/services/pricing/client.js +318 -70
  516. package/dist/esm/services/pricing/client.js.map +1 -1
  517. package/dist/esm/services/pricing/schemas/healthCheck.d.ts +70 -0
  518. package/dist/esm/services/pricing/schemas/healthCheck.d.ts.map +1 -0
  519. package/dist/esm/services/pricing/schemas/healthCheck.js +3 -0
  520. package/dist/esm/services/pricing/schemas/healthCheck.js.map +1 -0
  521. package/dist/esm/services/pricing/schemas/index.d.ts +6 -4
  522. package/dist/esm/services/pricing/schemas/index.d.ts.map +1 -1
  523. package/dist/esm/services/pricing/schemas/index.js +9 -5
  524. package/dist/esm/services/pricing/schemas/index.js.map +1 -1
  525. package/dist/esm/services/pricing/schemas/jobPriceHdr.d.ts +391 -0
  526. package/dist/esm/services/pricing/schemas/jobPriceHdr.d.ts.map +1 -0
  527. package/dist/esm/services/pricing/schemas/jobPriceHdr.js +31 -0
  528. package/dist/esm/services/pricing/schemas/jobPriceHdr.js.map +1 -0
  529. package/dist/{types/services/pricing/schemas/job-pricing.d.ts → esm/services/pricing/schemas/jobPriceHdrLines.d.ts} +1 -390
  530. package/dist/esm/services/pricing/schemas/jobPriceHdrLines.d.ts.map +1 -0
  531. package/dist/esm/services/pricing/schemas/{job-pricing.js → jobPriceHdrLines.js} +4 -28
  532. package/dist/esm/services/pricing/schemas/jobPriceHdrLines.js.map +1 -0
  533. package/dist/esm/services/pricing/schemas/ping.d.ts +49 -0
  534. package/dist/esm/services/pricing/schemas/ping.d.ts.map +1 -0
  535. package/dist/esm/services/pricing/schemas/ping.js +3 -0
  536. package/dist/esm/services/pricing/schemas/ping.js.map +1 -0
  537. package/dist/{types/services/pricing/schemas/pricing.d.ts → esm/services/pricing/schemas/priceEngine.d.ts} +1 -1
  538. package/dist/esm/services/pricing/schemas/priceEngine.d.ts.map +1 -0
  539. package/dist/esm/services/pricing/schemas/{pricing.js → priceEngine.js} +4 -2
  540. package/dist/esm/services/pricing/schemas/priceEngine.js.map +1 -0
  541. package/dist/{cjs/services/pricing/schemas/tax.d.ts → esm/services/pricing/schemas/taxEngine.d.ts} +1 -1
  542. package/dist/esm/services/pricing/schemas/taxEngine.d.ts.map +1 -0
  543. package/dist/esm/services/pricing/schemas/{tax.js → taxEngine.js} +7 -2
  544. package/dist/esm/services/pricing/schemas/taxEngine.js.map +1 -0
  545. package/dist/esm/services/shipping/client.d.ts +47 -110
  546. package/dist/esm/services/shipping/client.d.ts.map +1 -1
  547. package/dist/esm/services/shipping/client.js +62 -115
  548. package/dist/esm/services/shipping/client.js.map +1 -1
  549. package/dist/esm/services/shipping/index.d.ts +2 -2
  550. package/dist/esm/services/shipping/index.d.ts.map +1 -1
  551. package/dist/esm/services/shipping/index.js +1 -1
  552. package/dist/esm/services/shipping/index.js.map +1 -1
  553. package/dist/esm/services/shipping/schemas/healthCheck.d.ts +118 -0
  554. package/dist/esm/services/shipping/schemas/healthCheck.d.ts.map +1 -0
  555. package/dist/esm/services/shipping/schemas/healthCheck.js +24 -0
  556. package/dist/esm/services/shipping/schemas/healthCheck.js.map +1 -0
  557. package/dist/esm/services/shipping/schemas/index.d.ts +5 -0
  558. package/dist/esm/services/shipping/schemas/index.d.ts.map +1 -0
  559. package/dist/esm/services/shipping/schemas/index.js +5 -0
  560. package/dist/esm/services/shipping/schemas/index.js.map +1 -0
  561. package/dist/esm/services/shipping/{schemas.d.ts → schemas/rates.d.ts} +1 -117
  562. package/dist/{types/services/shipping/schemas.d.ts.map → esm/services/shipping/schemas/rates.d.ts.map} +1 -1
  563. package/dist/esm/services/shipping/{schemas.js → schemas/rates.js} +2 -26
  564. package/dist/esm/services/shipping/schemas/rates.js.map +1 -0
  565. package/dist/esm/services/slack/client.d.ts +289 -260
  566. package/dist/esm/services/slack/client.d.ts.map +1 -1
  567. package/dist/esm/services/slack/client.js +323 -280
  568. package/dist/esm/services/slack/client.js.map +1 -1
  569. package/dist/esm/services/slack/index.d.ts +2 -2
  570. package/dist/esm/services/slack/index.d.ts.map +1 -1
  571. package/dist/esm/services/slack/index.js +1 -1
  572. package/dist/esm/services/slack/index.js.map +1 -1
  573. package/dist/esm/services/slack/schemas/healthCheck.d.ts +138 -0
  574. package/dist/esm/services/slack/schemas/healthCheck.d.ts.map +1 -0
  575. package/dist/esm/services/slack/schemas/healthCheck.js +26 -0
  576. package/dist/esm/services/slack/schemas/healthCheck.js.map +1 -0
  577. package/dist/esm/services/slack/schemas/index.d.ts +4 -0
  578. package/dist/esm/services/slack/schemas/index.d.ts.map +1 -0
  579. package/dist/esm/services/slack/schemas/index.js +7 -0
  580. package/dist/esm/services/slack/schemas/index.js.map +1 -0
  581. package/dist/esm/services/slack/{schemas.d.ts → schemas/webHook.d.ts} +3 -298
  582. package/dist/esm/services/slack/schemas/webHook.d.ts.map +1 -0
  583. package/dist/esm/services/slack/{schemas.js → schemas/webHook.js} +3 -55
  584. package/dist/esm/services/slack/schemas/webHook.js.map +1 -0
  585. package/dist/esm/services/slack/schemas/webHookRefresh.d.ts +161 -0
  586. package/dist/esm/services/slack/schemas/webHookRefresh.d.ts.map +1 -0
  587. package/dist/esm/services/slack/schemas/webHookRefresh.js +29 -0
  588. package/dist/esm/services/slack/schemas/webHookRefresh.js.map +1 -0
  589. package/dist/esm/services/smarty-streets/client.d.ts +238 -214
  590. package/dist/esm/services/smarty-streets/client.d.ts.map +1 -1
  591. package/dist/esm/services/smarty-streets/client.js +274 -251
  592. package/dist/esm/services/smarty-streets/client.js.map +1 -1
  593. package/dist/esm/services/smarty-streets/index.d.ts +2 -2
  594. package/dist/esm/services/smarty-streets/index.d.ts.map +1 -1
  595. package/dist/esm/services/smarty-streets/index.js +2 -2
  596. package/dist/esm/services/smarty-streets/index.js.map +1 -1
  597. package/dist/esm/services/smarty-streets/schemas/healthCheck.d.ts +140 -0
  598. package/dist/esm/services/smarty-streets/schemas/healthCheck.d.ts.map +1 -0
  599. package/dist/esm/services/smarty-streets/schemas/healthCheck.js +28 -0
  600. package/dist/esm/services/smarty-streets/schemas/healthCheck.js.map +1 -0
  601. package/dist/esm/services/smarty-streets/schemas/index.d.ts +7 -0
  602. package/dist/esm/services/smarty-streets/schemas/index.d.ts.map +1 -0
  603. package/dist/esm/services/smarty-streets/schemas/index.js +8 -0
  604. package/dist/esm/services/smarty-streets/schemas/index.js.map +1 -0
  605. package/dist/esm/services/smarty-streets/schemas/ping.d.ts +120 -0
  606. package/dist/esm/services/smarty-streets/schemas/ping.d.ts.map +1 -0
  607. package/dist/esm/services/smarty-streets/schemas/ping.js +26 -0
  608. package/dist/esm/services/smarty-streets/schemas/ping.js.map +1 -0
  609. package/dist/esm/services/smarty-streets/{schemas.d.ts → schemas/usLookup.d.ts} +11 -262
  610. package/dist/esm/services/smarty-streets/schemas/usLookup.d.ts.map +1 -0
  611. package/dist/esm/services/smarty-streets/{schemas.js → schemas/usLookup.js} +8 -54
  612. package/dist/esm/services/smarty-streets/schemas/usLookup.js.map +1 -0
  613. package/dist/esm/services/ups/client.d.ts +65 -95
  614. package/dist/esm/services/ups/client.d.ts.map +1 -1
  615. package/dist/esm/services/ups/client.js +76 -105
  616. package/dist/esm/services/ups/client.js.map +1 -1
  617. package/dist/esm/services/ups/schemas/healthCheck.d.ts +138 -0
  618. package/dist/esm/services/ups/schemas/healthCheck.d.ts.map +1 -0
  619. package/dist/esm/services/ups/schemas/healthCheck.js +26 -0
  620. package/dist/esm/services/ups/schemas/healthCheck.js.map +1 -0
  621. package/dist/esm/services/ups/schemas/index.d.ts +5 -0
  622. package/dist/esm/services/ups/schemas/index.d.ts.map +1 -0
  623. package/dist/esm/services/ups/schemas/index.js +5 -0
  624. package/dist/esm/services/ups/schemas/index.js.map +1 -0
  625. package/dist/esm/services/ups/schemas/ratesShop.d.ts +1751 -0
  626. package/dist/esm/services/ups/schemas/ratesShop.d.ts.map +1 -0
  627. package/dist/esm/services/ups/schemas/ratesShop.js +172 -0
  628. package/dist/esm/services/ups/schemas/ratesShop.js.map +1 -0
  629. package/dist/esm/services/ups/schemas.d.ts +4 -1886
  630. package/dist/esm/services/ups/schemas.d.ts.map +1 -1
  631. package/dist/esm/services/ups/schemas.js +4 -197
  632. package/dist/esm/services/ups/schemas.js.map +1 -1
  633. package/dist/esm/services/vmi/client.d.ts +605 -550
  634. package/dist/esm/services/vmi/client.d.ts.map +1 -1
  635. package/dist/esm/services/vmi/client.js +604 -558
  636. package/dist/esm/services/vmi/client.js.map +1 -1
  637. package/dist/types/index.d.ts +1 -1
  638. package/dist/types/services/agr-info/client.d.ts +579 -545
  639. package/dist/types/services/agr-info/client.d.ts.map +1 -1
  640. package/dist/types/services/agr-site/client.d.ts +156 -85
  641. package/dist/types/services/agr-site/client.d.ts.map +1 -1
  642. package/dist/types/services/agr-work/client.d.ts +152 -96
  643. package/dist/types/services/agr-work/client.d.ts.map +1 -1
  644. package/dist/types/services/avalara/client.d.ts +260 -316
  645. package/dist/types/services/avalara/client.d.ts.map +1 -1
  646. package/dist/types/services/brand-folder/client.d.ts +200 -170
  647. package/dist/types/services/brand-folder/client.d.ts.map +1 -1
  648. package/dist/types/services/brand-folder/schemas.d.ts +8 -8
  649. package/dist/types/services/commerce/client.d.ts +821 -877
  650. package/dist/types/services/commerce/client.d.ts.map +1 -1
  651. package/dist/types/services/customers/client.d.ts +310 -565
  652. package/dist/types/services/customers/client.d.ts.map +1 -1
  653. package/dist/types/services/gregorovich/client.d.ts +347 -311
  654. package/dist/types/services/gregorovich/client.d.ts.map +1 -1
  655. package/dist/types/services/gregorovich/index.d.ts +1 -1
  656. package/dist/types/services/gregorovich/index.d.ts.map +1 -1
  657. package/dist/types/services/gregorovich/schemas/chatGptAsk.d.ts +371 -0
  658. package/dist/types/services/gregorovich/schemas/chatGptAsk.d.ts.map +1 -0
  659. package/dist/types/services/gregorovich/schemas/documents.d.ts +398 -0
  660. package/dist/types/services/gregorovich/schemas/documents.d.ts.map +1 -0
  661. package/dist/types/services/gregorovich/schemas/healthCheck.d.ts +53 -0
  662. package/dist/types/services/gregorovich/schemas/healthCheck.d.ts.map +1 -0
  663. package/dist/types/services/gregorovich/schemas/index.d.ts +5 -0
  664. package/dist/types/services/gregorovich/schemas/index.d.ts.map +1 -0
  665. package/dist/types/services/gregorovich/schemas/ollamaGenerate.d.ts +433 -0
  666. package/dist/types/services/gregorovich/schemas/ollamaGenerate.d.ts.map +1 -0
  667. package/dist/types/services/gregorovich/schemas.d.ts +1 -1217
  668. package/dist/types/services/gregorovich/schemas.d.ts.map +1 -1
  669. package/dist/types/services/items/client.d.ts +1865 -1724
  670. package/dist/types/services/items/client.d.ts.map +1 -1
  671. package/dist/types/services/items/schemas/attributes.d.ts +2 -2
  672. package/dist/types/services/items/schemas/brandsItems.d.ts +304 -0
  673. package/dist/types/services/items/schemas/brandsItems.d.ts.map +1 -0
  674. package/dist/types/services/items/schemas/categoriesImages.d.ts +127 -0
  675. package/dist/types/services/items/schemas/categoriesImages.d.ts.map +1 -0
  676. package/dist/types/services/items/schemas/index.d.ts +12 -0
  677. package/dist/types/services/items/schemas/index.d.ts.map +1 -1
  678. package/dist/types/services/items/schemas/internalPdf.d.ts +212 -0
  679. package/dist/types/services/items/schemas/internalPdf.d.ts.map +1 -0
  680. package/dist/types/services/items/schemas/invMastAccessory.d.ts +127 -0
  681. package/dist/types/services/items/schemas/invMastAccessory.d.ts.map +1 -0
  682. package/dist/types/services/items/schemas/invMastAlternateCode.d.ts +147 -0
  683. package/dist/types/services/items/schemas/invMastAlternateCode.d.ts.map +1 -0
  684. package/dist/types/services/items/schemas/invMastAttributes.d.ts +177 -0
  685. package/dist/types/services/items/schemas/invMastAttributes.d.ts.map +1 -0
  686. package/dist/types/services/items/schemas/invMastAttributesValues.d.ts +333 -0
  687. package/dist/types/services/items/schemas/invMastAttributesValues.d.ts.map +1 -0
  688. package/dist/types/services/items/schemas/invMastDoc.d.ts +137 -0
  689. package/dist/types/services/items/schemas/invMastDoc.d.ts.map +1 -0
  690. package/dist/types/services/items/schemas/invMastLinks.d.ts +147 -0
  691. package/dist/types/services/items/schemas/invMastLinks.d.ts.map +1 -0
  692. package/dist/types/services/items/schemas/invMastSimilar.d.ts +127 -0
  693. package/dist/types/services/items/schemas/invMastSimilar.d.ts.map +1 -0
  694. package/dist/types/services/items/schemas/invMastSub.d.ts +127 -0
  695. package/dist/types/services/items/schemas/invMastSub.d.ts.map +1 -0
  696. package/dist/types/services/items/schemas/invMastSubParts.d.ts +187 -0
  697. package/dist/types/services/items/schemas/invMastSubParts.d.ts.map +1 -0
  698. package/dist/types/services/items/schemas/itemFavorites.d.ts +236 -0
  699. package/dist/types/services/items/schemas/itemFavorites.d.ts.map +1 -0
  700. package/dist/types/services/items/schemas/locationsBins.d.ts +381 -0
  701. package/dist/types/services/items/schemas/locationsBins.d.ts.map +1 -0
  702. package/dist/types/services/legacy/client.d.ts +522 -280
  703. package/dist/types/services/legacy/client.d.ts.map +1 -1
  704. package/dist/types/services/nexus/client.d.ts +169 -156
  705. package/dist/types/services/nexus/client.d.ts.map +1 -1
  706. package/dist/types/services/open-search/client.d.ts +434 -162
  707. package/dist/types/services/open-search/client.d.ts.map +1 -1
  708. package/dist/types/services/{pricing/schemas/health.d.ts → open-search/schemas/healthCheck.d.ts} +19 -49
  709. package/dist/types/services/open-search/schemas/healthCheck.d.ts.map +1 -0
  710. package/dist/types/services/open-search/schemas/index.d.ts +5 -0
  711. package/dist/types/services/open-search/schemas/index.d.ts.map +1 -1
  712. package/dist/types/services/open-search/schemas/itemSearch.d.ts +394 -0
  713. package/dist/types/services/open-search/schemas/itemSearch.d.ts.map +1 -0
  714. package/dist/types/services/open-search/schemas/itemSearchAttributes.d.ts +359 -0
  715. package/dist/types/services/open-search/schemas/itemSearchAttributes.d.ts.map +1 -0
  716. package/dist/types/services/open-search/schemas/itemsRefresh.d.ts +512 -0
  717. package/dist/types/services/open-search/schemas/itemsRefresh.d.ts.map +1 -0
  718. package/dist/types/services/open-search/schemas/ping.d.ts +57 -0
  719. package/dist/types/services/open-search/schemas/ping.d.ts.map +1 -0
  720. package/dist/types/services/orders/client.d.ts +496 -646
  721. package/dist/types/services/orders/client.d.ts.map +1 -1
  722. package/dist/types/services/orders/schemas/invoices.d.ts +10 -10
  723. package/dist/types/services/p21-apis/client.d.ts +311 -534
  724. package/dist/types/services/p21-apis/client.d.ts.map +1 -1
  725. package/dist/types/services/p21-apis/schemas.d.ts +9 -78
  726. package/dist/types/services/p21-apis/schemas.d.ts.map +1 -1
  727. package/dist/types/services/p21-core/client.d.ts +111 -75
  728. package/dist/types/services/p21-core/client.d.ts.map +1 -1
  729. package/dist/types/services/p21-pim/client.d.ts +163 -37
  730. package/dist/types/services/p21-pim/client.d.ts.map +1 -1
  731. package/dist/types/services/p21-pim/schemas/ai-suggestions.d.ts +6 -6
  732. package/dist/types/services/p21-pim/schemas/ai-suggestions.d.ts.map +1 -1
  733. package/dist/types/services/p21-pim/schemas/inventory.d.ts +32 -32
  734. package/dist/types/services/p21-sism/client.d.ts +315 -261
  735. package/dist/types/services/p21-sism/client.d.ts.map +1 -1
  736. package/dist/types/services/pricing/client.d.ts +289 -59
  737. package/dist/types/services/pricing/client.d.ts.map +1 -1
  738. package/dist/types/services/pricing/schemas/healthCheck.d.ts +70 -0
  739. package/dist/types/services/pricing/schemas/healthCheck.d.ts.map +1 -0
  740. package/dist/types/services/pricing/schemas/index.d.ts +6 -4
  741. package/dist/types/services/pricing/schemas/index.d.ts.map +1 -1
  742. package/dist/types/services/pricing/schemas/jobPriceHdr.d.ts +391 -0
  743. package/dist/types/services/pricing/schemas/jobPriceHdr.d.ts.map +1 -0
  744. package/dist/{esm/services/pricing/schemas/job-pricing.d.ts → types/services/pricing/schemas/jobPriceHdrLines.d.ts} +1 -390
  745. package/dist/types/services/pricing/schemas/jobPriceHdrLines.d.ts.map +1 -0
  746. package/dist/types/services/pricing/schemas/ping.d.ts +49 -0
  747. package/dist/types/services/pricing/schemas/ping.d.ts.map +1 -0
  748. package/dist/{esm/services/pricing/schemas/pricing.d.ts → types/services/pricing/schemas/priceEngine.d.ts} +1 -1
  749. package/dist/types/services/pricing/schemas/priceEngine.d.ts.map +1 -0
  750. package/dist/{esm/services/pricing/schemas/tax.d.ts → types/services/pricing/schemas/taxEngine.d.ts} +1 -1
  751. package/dist/types/services/pricing/schemas/taxEngine.d.ts.map +1 -0
  752. package/dist/types/services/shipping/client.d.ts +47 -110
  753. package/dist/types/services/shipping/client.d.ts.map +1 -1
  754. package/dist/types/services/shipping/index.d.ts +2 -2
  755. package/dist/types/services/shipping/index.d.ts.map +1 -1
  756. package/dist/types/services/shipping/schemas/healthCheck.d.ts +118 -0
  757. package/dist/types/services/shipping/schemas/healthCheck.d.ts.map +1 -0
  758. package/dist/types/services/shipping/schemas/index.d.ts +5 -0
  759. package/dist/types/services/shipping/schemas/index.d.ts.map +1 -0
  760. package/dist/types/services/shipping/{schemas.d.ts → schemas/rates.d.ts} +1 -117
  761. package/dist/{esm/services/shipping/schemas.d.ts.map → types/services/shipping/schemas/rates.d.ts.map} +1 -1
  762. package/dist/types/services/slack/client.d.ts +289 -260
  763. package/dist/types/services/slack/client.d.ts.map +1 -1
  764. package/dist/types/services/slack/index.d.ts +2 -2
  765. package/dist/types/services/slack/index.d.ts.map +1 -1
  766. package/dist/types/services/slack/schemas/healthCheck.d.ts +138 -0
  767. package/dist/types/services/slack/schemas/healthCheck.d.ts.map +1 -0
  768. package/dist/types/services/slack/schemas/index.d.ts +4 -0
  769. package/dist/types/services/slack/schemas/index.d.ts.map +1 -0
  770. package/dist/{cjs/services/slack/schemas.d.ts → types/services/slack/schemas/webHook.d.ts} +3 -298
  771. package/dist/types/services/slack/schemas/webHook.d.ts.map +1 -0
  772. package/dist/types/services/slack/schemas/webHookRefresh.d.ts +161 -0
  773. package/dist/types/services/slack/schemas/webHookRefresh.d.ts.map +1 -0
  774. package/dist/types/services/smarty-streets/client.d.ts +238 -214
  775. package/dist/types/services/smarty-streets/client.d.ts.map +1 -1
  776. package/dist/types/services/smarty-streets/index.d.ts +2 -2
  777. package/dist/types/services/smarty-streets/index.d.ts.map +1 -1
  778. package/dist/types/services/smarty-streets/schemas/healthCheck.d.ts +140 -0
  779. package/dist/types/services/smarty-streets/schemas/healthCheck.d.ts.map +1 -0
  780. package/dist/types/services/smarty-streets/schemas/index.d.ts +7 -0
  781. package/dist/types/services/smarty-streets/schemas/index.d.ts.map +1 -0
  782. package/dist/types/services/smarty-streets/schemas/ping.d.ts +120 -0
  783. package/dist/types/services/smarty-streets/schemas/ping.d.ts.map +1 -0
  784. package/dist/types/services/smarty-streets/{schemas.d.ts → schemas/usLookup.d.ts} +11 -262
  785. package/dist/types/services/smarty-streets/schemas/usLookup.d.ts.map +1 -0
  786. package/dist/types/services/ups/client.d.ts +65 -95
  787. package/dist/types/services/ups/client.d.ts.map +1 -1
  788. package/dist/types/services/ups/schemas/healthCheck.d.ts +138 -0
  789. package/dist/types/services/ups/schemas/healthCheck.d.ts.map +1 -0
  790. package/dist/types/services/ups/schemas/index.d.ts +5 -0
  791. package/dist/types/services/ups/schemas/index.d.ts.map +1 -0
  792. package/dist/types/services/ups/schemas/ratesShop.d.ts +1751 -0
  793. package/dist/types/services/ups/schemas/ratesShop.d.ts.map +1 -0
  794. package/dist/types/services/ups/schemas.d.ts +4 -1886
  795. package/dist/types/services/ups/schemas.d.ts.map +1 -1
  796. package/dist/types/services/vmi/client.d.ts +605 -550
  797. package/dist/types/services/vmi/client.d.ts.map +1 -1
  798. package/package.json +2 -1
  799. package/dist/cjs/services/pricing/schemas/health.d.ts.map +0 -1
  800. package/dist/cjs/services/pricing/schemas/health.js.map +0 -1
  801. package/dist/cjs/services/pricing/schemas/job-pricing.d.ts.map +0 -1
  802. package/dist/cjs/services/pricing/schemas/job-pricing.js.map +0 -1
  803. package/dist/cjs/services/pricing/schemas/pricing.d.ts.map +0 -1
  804. package/dist/cjs/services/pricing/schemas/pricing.js.map +0 -1
  805. package/dist/cjs/services/pricing/schemas/tax.d.ts.map +0 -1
  806. package/dist/cjs/services/pricing/schemas/tax.js.map +0 -1
  807. package/dist/cjs/services/shipping/schemas.js.map +0 -1
  808. package/dist/cjs/services/slack/schemas.d.ts.map +0 -1
  809. package/dist/cjs/services/slack/schemas.js.map +0 -1
  810. package/dist/cjs/services/smarty-streets/schemas.d.ts.map +0 -1
  811. package/dist/cjs/services/smarty-streets/schemas.js.map +0 -1
  812. package/dist/esm/services/pricing/schemas/health.d.ts.map +0 -1
  813. package/dist/esm/services/pricing/schemas/health.js +0 -4
  814. package/dist/esm/services/pricing/schemas/health.js.map +0 -1
  815. package/dist/esm/services/pricing/schemas/job-pricing.d.ts.map +0 -1
  816. package/dist/esm/services/pricing/schemas/job-pricing.js.map +0 -1
  817. package/dist/esm/services/pricing/schemas/pricing.d.ts.map +0 -1
  818. package/dist/esm/services/pricing/schemas/pricing.js.map +0 -1
  819. package/dist/esm/services/pricing/schemas/tax.d.ts.map +0 -1
  820. package/dist/esm/services/pricing/schemas/tax.js.map +0 -1
  821. package/dist/esm/services/shipping/schemas.js.map +0 -1
  822. package/dist/esm/services/slack/schemas.d.ts.map +0 -1
  823. package/dist/esm/services/slack/schemas.js.map +0 -1
  824. package/dist/esm/services/smarty-streets/schemas.d.ts.map +0 -1
  825. package/dist/esm/services/smarty-streets/schemas.js.map +0 -1
  826. package/dist/types/services/pricing/schemas/health.d.ts.map +0 -1
  827. package/dist/types/services/pricing/schemas/job-pricing.d.ts.map +0 -1
  828. package/dist/types/services/pricing/schemas/pricing.d.ts.map +0 -1
  829. package/dist/types/services/pricing/schemas/tax.d.ts.map +0 -1
  830. package/dist/types/services/slack/schemas.d.ts.map +0 -1
  831. package/dist/types/services/smarty-streets/schemas.d.ts.map +0 -1
@@ -1,8 +1,19 @@
1
1
  import { BaseServiceClient } from '../../core/base-client';
2
- import { CartHdrListParamsSchema, CartHdrListResponseSchema, CartHdrLookupParamsSchema, CartHdrLookupResponseSchema, CartLineAddRequestSchema, CartLineUpdateRequestSchema, CartLineListResponseSchema, CartLineModifyResponseSchema, CartLineDeleteResponseSchema, AlsoBoughtParamsSchema, AlsoBoughtResponseSchema, CheckoutCreateRequestSchema, CheckoutCreateResponseSchema, CheckoutGetResponseSchema, CheckoutDocParamsSchema, CheckoutValidateResponseSchema, CheckoutActivateResponseSchema, CheckoutProphet21HdrResponseSchema, CheckoutProphet21LineResponseSchema, HealthCheckResponseSchema, } from './schemas';
2
+ import { CartHdrListResponseSchema, CartHdrLookupResponseSchema, CartLineListResponseSchema, CartLineModifyResponseSchema, CartLineDeleteResponseSchema, AlsoBoughtResponseSchema, CheckoutCreateResponseSchema, CheckoutGetResponseSchema, CheckoutDocResponseSchema, CheckoutValidateResponseSchema, CheckoutActivateResponseSchema, CheckoutProphet21HdrResponseSchema, CheckoutProphet21LineResponseSchema, HealthCheckResponseSchema, } from './schemas';
3
3
  /**
4
- * Commerce API Client
5
- * @description Client for interacting with Commerce microservice API endpoints for e-commerce operations
4
+ * Commerce Service Client
5
+ * @description Client for interacting with Commerce API endpoints for e-commerce cart and checkout operations
6
+ * @fullPath api.commerce
7
+ * @service commerce
8
+ * @domain e-commerce
9
+ * @discoverable true
10
+ * @searchTerms ["commerce", "e-commerce", "shopping cart", "checkout", "cart management", "online store"]
11
+ * @relatedEndpoints ["api.commerce.cartHdr.list.get", "api.commerce.cartLine.get", "api.commerce.checkout.create", "api.avalara.rates.create"]
12
+ * @commonPatterns ["Shopping cart management", "E-commerce checkout", "Cart operations", "Payment processing"]
13
+ * @workflow ["shopping-cart", "checkout-process", "e-commerce-operations", "payment-processing"]
14
+ * @functionalArea "e-commerce-and-cart-management"
15
+ * @businessRules ["Requires valid bearer authentication", "Shopping cart session management", "Checkout processing", "ERP integration"]
16
+ * @performance "Optimized for e-commerce workflows and cart operations"
6
17
  * @example
7
18
  * ```typescript
8
19
  * import { HTTPClient } from '@augur/api-client/core';
@@ -11,211 +22,283 @@ import { CartHdrListParamsSchema, CartHdrListResponseSchema, CartHdrLookupParams
11
22
  * const http = new HTTPClient('commerce', { siteId: 'your-site-id', bearerToken: 'your-token' });
12
23
  * const commerce = new CommerceClient(http);
13
24
  *
25
+ * // Check service health
26
+ * const health = await commerce.healthCheck.get();
27
+ * const healthData = await commerce.healthCheck.getData();
28
+ *
14
29
  * // Create or lookup cart
15
- * const cart = await commerce.cartHeaders.lookup({ userId: 12345, customerId: 456, contactId: 123 });
30
+ * const cart = await commerce.cartHdr.lookup.get({ userId: 12345, customerId: 456, contactId: 123 });
16
31
  *
17
32
  * // Add items to cart
18
- * await commerce.cartLines.add(cart.cartHdrUid, [{ invMastUid: 12345, quantity: 2, unitOfMeasure: 'EA' }]);
33
+ * await commerce.cartLine.add.create(cart.cartHdrUid, [{ invMastUid: 12345, quantity: 2, unitOfMeasure: 'EA' }]);
19
34
  *
20
35
  * // Create checkout
21
36
  * const checkout = await commerce.checkout.create({ customer: {...}, payment: {...}, lineItems: [...] });
22
37
  * ```
23
38
  */
24
39
  export class CommerceClient extends BaseServiceClient {
25
- /**
26
- * Create a new CommerceClient instance
27
- * @param http Configured HTTPClient instance
28
- * @param baseUrl Base URL for the Commerce API (default: https://commerce.augur-api.com)
29
- */
30
- constructor(http, baseUrl = 'https://commerce.augur-api.com') {
31
- super('commerce', http, baseUrl);
40
+ constructor(http, baseUrl) {
41
+ super('commerce', http, baseUrl || 'https://commerce.augur-api.com');
32
42
  /**
33
- * Cart Header endpoints
34
- * @description Methods for shopping cart session management with user tracking and cart tokens
43
+ * Health Check Operations
44
+ * @description System health monitoring and availability verification for Commerce service
35
45
  */
36
- this.cartHeaders = {
37
- /**
38
- * Retrieve a list of cart headers for a specific user
39
- *
40
- * @fullPath api.commerce.cartHeaders.list
41
- * @service commerce
42
- * @domain cart-management
43
- * @dataMethod listData
44
- * @discoverable true
45
- * @searchTerms ["cart", "list", "shopping cart", "user carts", "cart headers", "session", "baskets"]
46
- * @relatedEndpoints ["api.commerce.cartLines.get", "api.commerce.cartHeaders.lookup", "api.customers.customer.list", "api.joomla.users.list"]
47
- * @commonPatterns ["Get all user carts", "List shopping carts", "Find user sessions", "Shopping cart history"]
48
- * @workflow ["cart-management", "session-tracking", "user-cart-retrieval"]
49
- * @prerequisites ["Valid authentication token", "Valid user ID", "Cart management permissions"]
50
- * @nextSteps ["api.commerce.cartLines.get for cart contents", "api.commerce.cartHeaders.lookup for specific cart"]
51
- * @businessRules ["Returns only carts accessible to current user", "Respects user permissions", "Includes abandoned carts"]
52
- * @functionalArea "cart-and-session-management"
53
- * @caching "Cache for 2 minutes, invalidate on cart changes"
54
- * @performance "Lightweight operation, pagination not required for typical usage"
55
- *
56
- * @description Returns all cart headers associated with a user ID for session management and cart recovery
57
- * @param params User ID for filtering cart headers
58
- * @returns Promise<BaseResponse<CartHdr[]>> Complete response with cart headers array and metadata
59
- * @throws ValidationError When parameters are invalid or response is malformed
60
- *
61
- * @example
62
- * ```typescript
63
- * // Get all carts for a user
64
- * const response = await client.cartHeaders.list({ userId: 12345 });
65
- * console.log(response.data); // CartHdr[]
66
- *
67
- * // Get just the data array
68
- * const carts = await client.cartHeaders.listData({ userId: 12345 });
69
- * carts.forEach(cart => console.log(cart.cartHdrUid, cart.cartToken));
70
- * ```
71
- */
72
- list: this.createListMethod('/cart-hdr/list', CartHdrListParamsSchema, CartHdrListResponseSchema),
46
+ this.healthCheck = {
73
47
  /**
74
- * Lookup an existing cart or create a new one
48
+ * Check service health and availability
75
49
  *
76
- * @fullPath api.commerce.cartHeaders.lookup
50
+ * @fullPath api.commerce.healthCheck.get
77
51
  * @service commerce
78
- * @domain cart-management
79
- * @dataMethod lookupData
52
+ * @domain system-health
53
+ * @dataMethod healthCheck.getData - returns only the health status data without metadata
80
54
  * @discoverable true
81
- * @searchTerms ["cart lookup", "find cart", "get cart", "cart token", "shopping cart", "user cart", "session cart"]
82
- * @relatedEndpoints ["api.commerce.cartHeaders.list", "api.commerce.cartLines.get", "api.customers.customer.get", "api.joomla.users.get"]
83
- * @commonPatterns ["Find user's active cart", "Get or create cart", "Resume shopping session", "Cart token validation"]
84
- * @workflow ["cart-retrieval", "session-management", "cart-creation"]
85
- * @prerequisites ["Valid authentication token", "Valid user, customer, and contact IDs"]
86
- * @nextSteps ["api.commerce.cartLines.get for cart contents", "api.commerce.cartLines.add to add items"]
87
- * @businessRules ["Creates new cart if none exists", "Returns existing cart if found", "Validates user permissions"]
88
- * @functionalArea "cart-and-session-management"
89
- * @caching "Cache for 5 minutes, invalidate on cart modifications"
90
- * @performance "Fast lookup operation, includes cart creation logic"
55
+ * @searchTerms ["health", "status", "availability", "ping", "check", "commerce service", "monitoring"]
56
+ * @relatedEndpoints ["api.commerce.cartHdr.list.get", "api.commerce.checkout.create", "api.avalara.healthCheck.get", "api.items.healthCheck.get"]
57
+ * @commonPatterns ["Health check", "Service status", "Commerce service availability", "System monitoring"]
58
+ * @workflow ["system-monitoring", "health-checks", "service-discovery", "commerce-service-verification"]
59
+ * @prerequisites ["Service is running", "Valid authentication token", "x-site-id header"]
60
+ * @nextSteps ["Use commerce endpoints if healthy", "Verify commerce service connectivity", "Monitor service metrics"]
61
+ * @businessRules ["Returns service status and site configuration", "Requires standard authentication", "Standard health check format"]
62
+ * @functionalArea "system-monitoring"
63
+ * @caching "No caching - real-time status required"
64
+ * @performance "Fast response, minimal processing, use for commerce service monitoring"
91
65
  *
92
- * @description Looks up an existing cart or creates a new one for the specified user, customer, and contact
93
- * @param params User, customer, and contact identifiers with optional cart token
94
- * @returns Promise<BaseResponse<CartHdr>> Complete response with cart header details and metadata
95
- * @throws ValidationError When parameters are invalid or response is malformed
66
+ * @returns Promise<HealthCheckResponse> Service health status
96
67
  *
97
68
  * @example
98
69
  * ```typescript
99
- * // Lookup existing cart
100
- * const response = await client.cartHeaders.lookup({
101
- * userId: 12345,
102
- * customerId: 456,
103
- * contactId: 123,
104
- * cartToken: 'abc123'
105
- * });
106
- * console.log(response.data.cartHdrUid);
70
+ * // Check if commerce service is healthy
71
+ * const response = await client.healthCheck.get();
72
+ * console.log(response.data.siteId); // Site identifier
73
+ * console.log(response.status); // HTTP status code
107
74
  *
108
- * // Create new cart (data method)
109
- * const cart = await client.cartHeaders.lookupData({
110
- * userId: 12345,
111
- * customerId: 456,
112
- * contactId: 123
113
- * });
75
+ * // Get just the health status
76
+ * const status = await client.healthCheck.getData();
77
+ * console.log(status); // Direct object access
114
78
  * ```
115
79
  */
116
- lookup: async (params) => {
80
+ get: async () => {
117
81
  return this.executeRequest({
118
82
  method: 'GET',
119
- path: '/cart-hdr/lookup',
120
- paramsSchema: CartHdrLookupParamsSchema,
121
- responseSchema: CartHdrLookupResponseSchema,
122
- }, params);
83
+ path: '/health-check',
84
+ responseSchema: HealthCheckResponseSchema,
85
+ }, undefined);
123
86
  },
124
87
  /**
125
- * Get product recommendations based on cart contents
126
- *
127
- * @fullPath api.commerce.cartHeaders.getAlsoBought
128
- * @service commerce
129
- * @domain recommendation-engine
130
- * @dataMethod getAlsoBoughtData
131
- * @discoverable true
132
- * @searchTerms ["recommendations", "also bought", "cross sell", "upsell", "related products", "suggestions", "shopping recommendations"]
133
- * @relatedEndpoints ["api.commerce.cartLines.get", "api.items.products.list", "api.legacy.alsoBought.list"]
134
- * @commonPatterns ["Get product recommendations", "Cross-sell products", "Increase cart value", "Related item suggestions"]
135
- * @workflow ["recommendation-display", "cross-selling", "cart-enhancement"]
136
- * @prerequisites ["Valid cart header UID", "Cart with existing items for best recommendations"]
137
- * @nextSteps ["api.commerce.cartLines.add to add recommended items", "api.items.products.get for product details"]
138
- * @businessRules ["Based on purchase history patterns", "Respects inventory availability", "Paginated results for performance"]
139
- * @functionalArea "recommendation-and-cross-sell"
140
- * @caching "Cache for 30 minutes, static recommendation data"
141
- * @performance "Supports pagination with limit/offset, optimized for recommendation engine"
142
- *
143
- * @description Retrieves also-bought product recommendations based on items currently in the cart
144
- * @param cartHdrUid Cart header unique identifier
145
- * @param params Optional pagination parameters (limit, offset)
146
- * @returns Promise<BaseResponse<AlsoBoughtItem[]>> Complete response with recommended products and pagination metadata
147
- * @throws ValidationError When parameters are invalid or response is malformed
148
- *
149
- * @example
150
- * ```typescript
151
- * // Get recommendations with pagination
152
- * const response = await client.cartHeaders.getAlsoBought(789, { limit: 5, offset: 0 });
153
- * console.log(`Found ${response.total} recommendations, showing ${response.count}`);
154
- * response.data.forEach(item => console.log(item.itemId, item.description, item.price));
155
- *
156
- * // Get just the data array
157
- * const recommendations = await client.cartHeaders.getAlsoBoughtData(789, { limit: 10 });
158
- * ```
88
+ * Get health check status data only
89
+ * @returns Promise<unknown> Health status data
159
90
  */
160
- getAlsoBought: async (cartHdrUid, params) => {
161
- return this.executeRequest({
162
- method: 'GET',
163
- path: '/cart-hdr/{cartHdrUid}/also-bought',
164
- paramsSchema: AlsoBoughtParamsSchema,
165
- responseSchema: AlsoBoughtResponseSchema,
166
- }, params, { cartHdrUid: String(cartHdrUid) });
91
+ getData: async () => {
92
+ const response = await this.healthCheck.get();
93
+ return response.data;
167
94
  },
95
+ };
96
+ /**
97
+ * Cart Header Operations
98
+ * @description Cart header management and session tracking functionality
99
+ */
100
+ this.cartHdr = {
168
101
  /**
169
- * Get list of cart headers (data only)
170
- * @description Data-only version of list method - returns just the cart headers array
171
- * @param params User ID for filtering cart headers
172
- * @returns Array of cart headers for the user
102
+ * List Operations
103
+ * @description Cart header list functionality for user cart retrieval
173
104
  */
174
- listData: async (params) => {
175
- const response = await this.cartHeaders.list(params);
176
- return response.data;
105
+ list: {
106
+ /**
107
+ * Retrieve a list of cart headers for a specific user
108
+ *
109
+ * @fullPath api.commerce.cartHdr.list.get
110
+ * @service commerce
111
+ * @domain cart-management
112
+ * @dataMethod cartHdr.list.getData - returns only the cart headers data without metadata
113
+ * @discoverable true
114
+ * @searchTerms ["cart", "list", "shopping cart", "user carts", "cart headers", "session", "baskets"]
115
+ * @relatedEndpoints ["api.commerce.cartLine.get", "api.commerce.cartHdr.lookup.get", "api.customers.customer.list", "api.joomla.users.list"]
116
+ * @commonPatterns ["Get all user carts", "List shopping carts", "Find user sessions", "Shopping cart history"]
117
+ * @workflow ["cart-management", "session-tracking", "user-cart-retrieval"]
118
+ * @prerequisites ["Valid authentication token", "Valid user ID", "Cart management permissions"]
119
+ * @nextSteps ["api.commerce.cartLine.get for cart contents", "api.commerce.cartHdr.lookup.get for specific cart"]
120
+ * @businessRules ["Returns only carts accessible to current user", "Respects user permissions", "Includes abandoned carts"]
121
+ * @functionalArea "cart-and-session-management"
122
+ * @caching "Cache for 2 minutes, invalidate on cart changes"
123
+ * @performance "Lightweight operation, pagination not required for typical usage"
124
+ *
125
+ * @description Returns all cart headers associated with a user ID for session management and cart recovery
126
+ * @param params User ID for filtering cart headers
127
+ * @returns Promise<CartHdrListResponse> Complete response with cart headers array and metadata
128
+ * @throws ValidationError When parameters are invalid or response is malformed
129
+ *
130
+ * @example
131
+ * ```typescript
132
+ * // Get all carts for a user
133
+ * const response = await client.cartHdr.list.get({ userId: 12345 });
134
+ * console.log(response.data); // CartHdr[]
135
+ *
136
+ * // Get just the data array
137
+ * const carts = await client.cartHdr.list.getData({ userId: 12345 });
138
+ * carts.forEach(cart => console.log(cart.cartHdrUid, cart.cartToken));
139
+ * ```
140
+ */
141
+ get: async (params) => {
142
+ return this.executeRequest({
143
+ method: 'GET',
144
+ path: '/cart-hdr/list',
145
+ responseSchema: CartHdrListResponseSchema,
146
+ }, params);
147
+ },
148
+ /**
149
+ * Get list of cart headers data only
150
+ * @param params User ID for filtering cart headers
151
+ * @returns Promise<unknown[]> Array of cart headers for the user
152
+ */
153
+ getData: async (params) => {
154
+ const response = await this.cartHdr.list.get(params);
155
+ return response.data;
156
+ },
177
157
  },
178
158
  /**
179
- * Lookup cart header (data only)
180
- * @description Data-only version of lookup method - returns just the cart header object
181
- * @param params User, customer, and contact identifiers with optional cart token
182
- * @returns Cart header details
159
+ * Lookup Operations
160
+ * @description Cart header lookup functionality for cart retrieval or creation
183
161
  */
184
- lookupData: async (params) => {
185
- const response = await this.cartHeaders.lookup(params);
186
- return response.data;
162
+ lookup: {
163
+ /**
164
+ * Lookup an existing cart or create a new one
165
+ *
166
+ * @fullPath api.commerce.cartHdr.lookup.get
167
+ * @service commerce
168
+ * @domain cart-management
169
+ * @dataMethod cartHdr.lookup.getData - returns only the cart header data without metadata
170
+ * @discoverable true
171
+ * @searchTerms ["cart lookup", "find cart", "get cart", "cart token", "shopping cart", "user cart", "session cart"]
172
+ * @relatedEndpoints ["api.commerce.cartHdr.list.get", "api.commerce.cartLine.get", "api.customers.customer.get", "api.joomla.users.get"]
173
+ * @commonPatterns ["Find user's active cart", "Get or create cart", "Resume shopping session", "Cart token validation"]
174
+ * @workflow ["cart-retrieval", "session-management", "cart-creation"]
175
+ * @prerequisites ["Valid authentication token", "Valid user, customer, and contact IDs"]
176
+ * @nextSteps ["api.commerce.cartLine.get for cart contents", "api.commerce.cartLine.add.create to add items"]
177
+ * @businessRules ["Creates new cart if none exists", "Returns existing cart if found", "Validates user permissions"]
178
+ * @functionalArea "cart-and-session-management"
179
+ * @caching "Cache for 5 minutes, invalidate on cart modifications"
180
+ * @performance "Fast lookup operation, includes cart creation logic"
181
+ *
182
+ * @description Looks up an existing cart or creates a new one for the specified user, customer, and contact
183
+ * @param params User, customer, and contact identifiers with optional cart token
184
+ * @returns Promise<CartHdrLookupResponse> Complete response with cart header details and metadata
185
+ * @throws ValidationError When parameters are invalid or response is malformed
186
+ *
187
+ * @example
188
+ * ```typescript
189
+ * // Lookup existing cart
190
+ * const response = await client.cartHdr.lookup.get({
191
+ * userId: 12345,
192
+ * customerId: 456,
193
+ * contactId: 123,
194
+ * cartToken: 'abc123'
195
+ * });
196
+ * console.log(response.data.cartHdrUid);
197
+ *
198
+ * // Create new cart (data method)
199
+ * const cart = await client.cartHdr.lookup.getData({
200
+ * userId: 12345,
201
+ * customerId: 456,
202
+ * contactId: 123
203
+ * });
204
+ * ```
205
+ */
206
+ get: async (params) => {
207
+ return this.executeRequest({
208
+ method: 'GET',
209
+ path: '/cart-hdr/lookup',
210
+ responseSchema: CartHdrLookupResponseSchema,
211
+ }, params);
212
+ },
213
+ /**
214
+ * Lookup cart header data only
215
+ * @param params User, customer, and contact identifiers with optional cart token
216
+ * @returns Promise<unknown> Cart header details
217
+ */
218
+ getData: async (params) => {
219
+ const response = await this.cartHdr.lookup.get(params);
220
+ return response.data;
221
+ },
187
222
  },
188
223
  /**
189
- * Get also bought recommendations (data only)
190
- * @description Data-only version of getAlsoBought method - returns just the recommendations array
191
- * @param cartHdrUid Cart header unique identifier
192
- * @param params Optional pagination parameters
193
- * @returns Array of recommended products
224
+ * Also Bought Operations
225
+ * @description Product recommendation functionality based on cart contents
194
226
  */
195
- getAlsoBoughtData: async (cartHdrUid, params) => {
196
- const response = await this.cartHeaders.getAlsoBought(cartHdrUid, params);
197
- return response.data;
227
+ alsoBought: {
228
+ /**
229
+ * Get product recommendations based on cart contents
230
+ *
231
+ * @fullPath api.commerce.cartHdr.alsoBought.get
232
+ * @service commerce
233
+ * @domain recommendation-engine
234
+ * @dataMethod cartHdr.alsoBought.getData - returns only the recommendations data without metadata
235
+ * @discoverable true
236
+ * @searchTerms ["recommendations", "also bought", "cross sell", "upsell", "related products", "suggestions", "shopping recommendations"]
237
+ * @relatedEndpoints ["api.commerce.cartLine.get", "api.items.products.list", "api.legacy.alsoBought.list"]
238
+ * @commonPatterns ["Get product recommendations", "Cross-sell products", "Increase cart value", "Related item suggestions"]
239
+ * @workflow ["recommendation-display", "cross-selling", "cart-enhancement"]
240
+ * @prerequisites ["Valid cart header UID", "Cart with existing items for best recommendations"]
241
+ * @nextSteps ["api.commerce.cartLine.add.create to add recommended items", "api.items.products.get for product details"]
242
+ * @businessRules ["Based on purchase history patterns", "Respects inventory availability", "Paginated results for performance"]
243
+ * @functionalArea "recommendation-and-cross-sell"
244
+ * @caching "Cache for 30 minutes, static recommendation data"
245
+ * @performance "Supports pagination with limit/offset, optimized for recommendation engine"
246
+ *
247
+ * @description Retrieves also-bought product recommendations based on items currently in the cart
248
+ * @param cartHdrUid Cart header unique identifier
249
+ * @param params Optional pagination parameters (limit, offset)
250
+ * @returns Promise<AlsoBoughtResponse> Complete response with recommended products and pagination metadata
251
+ * @throws ValidationError When parameters are invalid or response is malformed
252
+ *
253
+ * @example
254
+ * ```typescript
255
+ * // Get recommendations with pagination
256
+ * const response = await client.cartHdr.alsoBought.get(789, { limit: 5, offset: 0 });
257
+ * console.log(`Found ${response.total} recommendations, showing ${response.count}`);
258
+ * response.data.forEach(item => console.log(item.itemId, item.description, item.price));
259
+ *
260
+ * // Get just the data array
261
+ * const recommendations = await client.cartHdr.alsoBought.getData(789, { limit: 10 });
262
+ * ```
263
+ */
264
+ get: async (cartHdrUid, params) => {
265
+ return this.executeRequest({
266
+ method: 'GET',
267
+ path: '/cart-hdr/{cartHdrUid}/also-bought',
268
+ responseSchema: AlsoBoughtResponseSchema,
269
+ }, params, { cartHdrUid: String(cartHdrUid) });
270
+ },
271
+ /**
272
+ * Get also bought recommendations data only
273
+ * @param cartHdrUid Cart header unique identifier
274
+ * @param params Optional pagination parameters
275
+ * @returns Promise<unknown[]> Array of recommended products
276
+ */
277
+ getData: async (cartHdrUid, params) => {
278
+ const response = await this.cartHdr.alsoBought.get(cartHdrUid, params);
279
+ return response.data;
280
+ },
198
281
  },
199
282
  };
200
283
  /**
201
- * Cart Line endpoints
202
- * @description Methods for managing individual line items within shopping carts
284
+ * Cart Line Operations
285
+ * @description Cart line management for individual items within shopping carts
203
286
  */
204
- this.cartLines = {
287
+ this.cartLine = {
205
288
  /**
206
289
  * Retrieve all line items for a specific cart
207
290
  *
208
- * @fullPath api.commerce.cartLines.get
291
+ * @fullPath api.commerce.cartLine.get
209
292
  * @service commerce
210
293
  * @domain cart-management
211
- * @dataMethod getData
294
+ * @dataMethod cartLine.getData - returns only the cart line data without metadata
212
295
  * @discoverable true
213
296
  * @searchTerms ["cart lines", "cart items", "line items", "cart contents", "shopping cart items", "cart products"]
214
- * @relatedEndpoints ["api.commerce.cartHeaders.lookup", "api.items.products.get", "api.commerce.cartLines.add", "api.commerce.cartLines.update"]
297
+ * @relatedEndpoints ["api.commerce.cartHdr.lookup.get", "api.items.products.get", "api.commerce.cartLine.add.create", "api.commerce.cartLine.update.create"]
215
298
  * @commonPatterns ["View cart contents", "Get cart line items", "Display shopping cart", "Cart item details"]
216
299
  * @workflow ["cart-display", "cart-review", "checkout-preparation"]
217
300
  * @prerequisites ["Valid cart header UID", "Cart must exist"]
218
- * @nextSteps ["api.commerce.cartLines.update to modify items", "api.commerce.checkout.create to proceed to checkout"]
301
+ * @nextSteps ["api.commerce.cartLine.update.create to modify items", "api.commerce.checkout.create to proceed to checkout"]
219
302
  * @businessRules ["Returns all line items in cart", "Includes product details and pricing", "Ordered by line number"]
220
303
  * @functionalArea "cart-and-session-management"
221
304
  * @caching "Cache for 2 minutes, invalidate on cart modifications"
@@ -223,218 +306,320 @@ export class CommerceClient extends BaseServiceClient {
223
306
  *
224
307
  * @description Returns all line items in a cart with product details, quantities, and pricing
225
308
  * @param cartHdrUid Cart header unique identifier
226
- * @returns Promise<BaseResponse<CartLine[]>> Complete response with cart line items and metadata
309
+ * @returns Promise<CartLineListResponse> Complete response with cart line items and metadata
227
310
  * @throws ValidationError When response is malformed
228
311
  *
229
312
  * @example
230
313
  * ```typescript
231
314
  * // Get cart line items
232
- * const response = await client.cartLines.get(789);
315
+ * const response = await client.cartLine.get(789);
233
316
  * response.data.forEach(line => {
234
317
  * console.log(`Line ${line.lineNo}: ${line.quantity} x ${line.itemId} @ $${line.unitPrice}`);
235
318
  * });
236
319
  *
237
320
  * // Get just the data array
238
- * const lines = await client.cartLines.getData(789);
321
+ * const lines = await client.cartLine.getData(789);
239
322
  * ```
240
323
  */
241
- get: this.createGetMethod('/cart-line/{cartHdrUid}', CartLineListResponseSchema),
324
+ get: async (cartHdrUid) => {
325
+ return this.executeRequest({
326
+ method: 'GET',
327
+ path: '/cart-line/{cartHdrUid}',
328
+ responseSchema: CartLineListResponseSchema,
329
+ }, undefined, { cartHdrUid: String(cartHdrUid) });
330
+ },
242
331
  /**
243
- * Add one or more items to the cart
332
+ * Remove all line items from the cart
244
333
  *
245
- * @fullPath api.commerce.cartLines.add
334
+ * @fullPath api.commerce.cartLine.delete
246
335
  * @service commerce
247
336
  * @domain cart-management
248
- * @dataMethod addData
337
+ * @dataMethod cartLine.deleteData - returns only the delete result data without metadata
249
338
  * @discoverable true
250
- * @searchTerms ["add to cart", "cart add", "add items", "shopping cart add", "add products", "cart line add"]
251
- * @relatedEndpoints ["api.commerce.cartLines.get", "api.commerce.cartLines.update", "api.items.products.get", "api.pricing.pricing.calculate"]
252
- * @commonPatterns ["Add item to cart", "Add multiple items", "Bulk add to cart", "Shopping cart addition"]
253
- * @workflow ["product-to-cart", "shopping-flow", "cart-building"]
254
- * @prerequisites ["Valid cart header UID", "Valid product inventory UIDs", "Items must be available"]
255
- * @nextSteps ["api.commerce.cartLines.get to view updated cart", "api.commerce.checkout.create to proceed to checkout"]
256
- * @businessRules ["Aggregates quantities for duplicate items", "Validates inventory availability", "Applies pricing rules"]
339
+ * @searchTerms ["clear cart", "delete cart lines", "remove all items", "empty cart", "cart clear"]
340
+ * @relatedEndpoints ["api.commerce.cartLine.get", "api.commerce.cartLine.lines.delete", "api.commerce.cartHdr.lookup.get"]
341
+ * @commonPatterns ["Clear cart contents", "Remove all items", "Empty shopping cart", "Reset cart"]
342
+ * @workflow ["cart-clearing", "cart-reset", "cart-management"]
343
+ * @prerequisites ["Valid cart header UID", "Cart must exist"]
344
+ * @nextSteps ["api.commerce.cartLine.add.create to add new items", "api.commerce.cartHdr.lookup.get to verify empty cart"]
345
+ * @businessRules ["Removes all line items from cart", "Preserves cart header", "Updates cart totals"]
257
346
  * @functionalArea "cart-and-session-management"
258
347
  * @caching "No caching, immediate cart modification"
259
- * @performance "Batch operation for multiple items, validates inventory in bulk"
260
- *
261
- * @description Adds line items to the shopping cart with automatic quantity aggregation for matching items
262
- * @param cartHdrUid Cart header unique identifier
263
- * @param items Array of cart line items to add
264
- * @returns Promise<BaseResponse<boolean>> Complete response with success status and metadata
265
- * @throws ValidationError When request is invalid or response is malformed
266
- *
267
- * @example
268
- * ```typescript
269
- * // Add multiple items to cart
270
- * const response = await client.cartLines.add(789, [
271
- * {
272
- * invMastUid: 12345,
273
- * quantity: 2.0,
274
- * unitOfMeasure: 'EA',
275
- * lineNote: 'Rush order',
276
- * unitPrice: 29.99
277
- * },
278
- * {
279
- * invMastUid: 67890,
280
- * quantity: 1.0,
281
- * unitOfMeasure: 'LB'
282
- * }
283
- * ]);
348
+ * @performance "Fast bulk delete operation"
284
349
  *
285
- * // Get just the success boolean
286
- * const success = await client.cartLines.addData(789, items);
287
- * ```
288
- */
289
- add: async (cartHdrUid, items) => {
290
- return this.executeRequest({
291
- method: 'POST',
292
- path: '/cart-line/{cartHdrUid}/add',
293
- paramsSchema: CartLineAddRequestSchema,
294
- responseSchema: CartLineModifyResponseSchema,
295
- }, items, { cartHdrUid: String(cartHdrUid) });
296
- },
297
- /**
298
- * Update quantities or details for existing cart line items
299
- * @description Updates existing line items in the cart with new quantities, notes, or other modifications
300
- * @param cartHdrUid Cart header unique identifier
301
- * @param items Array of cart line items to update (must specify lineNo or key for identification)
302
- * @returns Boolean indicating successful update
303
- * @throws ValidationError When request is invalid or response is malformed
304
- * @example
305
- * ```typescript
306
- * const success = await client.cartLines.update(789, [
307
- * {
308
- * lineNo: 1,
309
- * quantity: 5.0,
310
- * lineNote: 'Updated quantity to 5'
311
- * },
312
- * {
313
- * key: 'unique-key-123',
314
- * quantity: 3.0
315
- * }
316
- * ]);
317
- * ```
318
- */
319
- update: async (cartHdrUid, items) => {
320
- return this.executeRequest({
321
- method: 'POST',
322
- path: '/cart-line/{cartHdrUid}/update',
323
- paramsSchema: CartLineUpdateRequestSchema,
324
- responseSchema: CartLineModifyResponseSchema,
325
- }, items, { cartHdrUid: String(cartHdrUid) });
326
- },
327
- /**
328
- * Remove all line items from the cart
329
350
  * @description Clears all line items from the specified cart, leaving the cart header intact
330
351
  * @param cartHdrUid Cart header unique identifier
331
- * @returns Boolean indicating successful clearing of cart
352
+ * @returns Promise<CartLineModifyResponse> Complete response with deletion status and metadata
332
353
  * @throws ValidationError When response is malformed
354
+ *
333
355
  * @example
334
356
  * ```typescript
335
- * const success = await client.cartLines.clear(789);
336
- * if (success) {
357
+ * // Clear all items from cart
358
+ * const response = await client.cartLine.delete(789);
359
+ * if (response.data.success) {
337
360
  * console.log('Cart has been cleared of all items');
338
361
  * }
362
+ *
363
+ * // Get just the result data
364
+ * const result = await client.cartLine.deleteData(789);
339
365
  * ```
340
366
  */
341
- clear: this.createDeleteMethod('/cart-line/{cartHdrUid}', CartLineModifyResponseSchema),
342
- /**
343
- * Remove a specific line item from the cart
344
- * @description Removes a single line item from the cart by line number
345
- * @param cartHdrUid Cart header unique identifier
346
- * @param lineNo Line number to delete
347
- * @returns Boolean indicating successful deletion
348
- * @throws ValidationError When response is malformed
349
- * @example
350
- * ```typescript
351
- * const success = await client.cartLines.deleteLine(789, 1);
352
- * if (success) {
353
- * console.log('Line item 1 has been removed from cart');
354
- * }
355
- * ```
356
- */
357
- deleteLine: async (cartHdrUid, lineNo) => {
367
+ delete: async (cartHdrUid) => {
358
368
  return this.executeRequest({
359
369
  method: 'DELETE',
360
- path: '/cart-line/{cartHdrUid}/lines/{lineNo}',
361
- responseSchema: CartLineDeleteResponseSchema,
362
- }, undefined, { cartHdrUid: String(cartHdrUid), lineNo: String(lineNo) });
370
+ path: '/cart-line/{cartHdrUid}',
371
+ responseSchema: CartLineModifyResponseSchema,
372
+ }, undefined, { cartHdrUid: String(cartHdrUid) });
363
373
  },
364
- // Data-only methods for cart lines
365
374
  /**
366
- * Get cart line items (data only)
367
- * @description Returns only the data array from cart line items response
368
- * @param cartHdrUid Cart header unique identifier
369
- * @returns Array of cart line items (data only)
370
- * @throws ValidationError When response is malformed
375
+ * Add Operations
376
+ * @description Cart line addition functionality for adding items to cart
371
377
  */
372
- getData: async (cartHdrUid) => {
373
- const response = await this.cartLines.get(cartHdrUid);
374
- return response.data;
378
+ add: {
379
+ /**
380
+ * Add one or more items to the cart
381
+ *
382
+ * @fullPath api.commerce.cartLine.add.create
383
+ * @service commerce
384
+ * @domain cart-management
385
+ * @dataMethod cartLine.add.getData - returns only the addition result data without metadata
386
+ * @discoverable true
387
+ * @searchTerms ["add to cart", "cart add", "add items", "shopping cart add", "add products", "cart line add"]
388
+ * @relatedEndpoints ["api.commerce.cartLine.get", "api.commerce.cartLine.update.create", "api.items.products.get", "api.pricing.pricing.calculate"]
389
+ * @commonPatterns ["Add item to cart", "Add multiple items", "Bulk add to cart", "Shopping cart addition"]
390
+ * @workflow ["product-to-cart", "shopping-flow", "cart-building"]
391
+ * @prerequisites ["Valid cart header UID", "Valid product inventory UIDs", "Items must be available"]
392
+ * @nextSteps ["api.commerce.cartLine.get to view updated cart", "api.commerce.checkout.create to proceed to checkout"]
393
+ * @businessRules ["Aggregates quantities for duplicate items", "Validates inventory availability", "Applies pricing rules"]
394
+ * @functionalArea "cart-and-session-management"
395
+ * @caching "No caching, immediate cart modification"
396
+ * @performance "Batch operation for multiple items, validates inventory in bulk"
397
+ *
398
+ * @description Adds line items to the shopping cart with automatic quantity aggregation for matching items
399
+ * @param cartHdrUid Cart header unique identifier
400
+ * @param items Array of cart line items to add
401
+ * @returns Promise<CartLineModifyResponse> Complete response with addition status and metadata
402
+ * @throws ValidationError When request is invalid or response is malformed
403
+ *
404
+ * @example
405
+ * ```typescript
406
+ * // Add multiple items to cart
407
+ * const response = await client.cartLine.add.create(789, [
408
+ * {
409
+ * invMastUid: 12345,
410
+ * quantity: 2.0,
411
+ * unitOfMeasure: 'EA',
412
+ * lineNote: 'Rush order',
413
+ * unitPrice: 29.99
414
+ * },
415
+ * {
416
+ * invMastUid: 67890,
417
+ * quantity: 1.0,
418
+ * unitOfMeasure: 'LB'
419
+ * }
420
+ * ]);
421
+ *
422
+ * // Get just the success result
423
+ * const result = await client.cartLine.add.getData(789, items);
424
+ * ```
425
+ */
426
+ create: async (cartHdrUid, items) => {
427
+ return this.executeRequest({
428
+ method: 'POST',
429
+ path: '/cart-line/{cartHdrUid}/add',
430
+ responseSchema: CartLineModifyResponseSchema,
431
+ }, items, { cartHdrUid: String(cartHdrUid) });
432
+ },
433
+ /**
434
+ * Add items to cart data only
435
+ * @param cartHdrUid Cart header unique identifier
436
+ * @param items Array of cart line items to add
437
+ * @returns Promise<unknown> Addition result data only
438
+ */
439
+ getData: async (cartHdrUid, items) => {
440
+ const response = await this.cartLine.add.create(cartHdrUid, items);
441
+ return response.data;
442
+ },
375
443
  },
376
444
  /**
377
- * Add items to cart (data only)
378
- * @description Returns only the data from cart line addition response
379
- * @param cartHdrUid Cart header unique identifier
380
- * @param items Array of cart line items to add
381
- * @returns Addition result (data only)
382
- * @throws ValidationError When request is invalid or response is malformed
445
+ * Lines Operations
446
+ * @description Individual cart line management functionality
383
447
  */
384
- addData: async (cartHdrUid, items) => {
385
- const response = await this.cartLines.add(cartHdrUid, items);
386
- return response.data;
448
+ lines: {
449
+ /**
450
+ * Remove a specific line item from the cart
451
+ *
452
+ * @fullPath api.commerce.cartLine.lines.delete
453
+ * @service commerce
454
+ * @domain cart-management
455
+ * @dataMethod cartLine.lines.deleteData - returns only the deletion result data without metadata
456
+ * @discoverable true
457
+ * @searchTerms ["remove line item", "delete cart line", "remove item", "cart item delete", "line delete"]
458
+ * @relatedEndpoints ["api.commerce.cartLine.get", "api.commerce.cartLine.delete", "api.commerce.cartLine.update.create"]
459
+ * @commonPatterns ["Remove specific item", "Delete cart line", "Remove line by number", "Item removal"]
460
+ * @workflow ["cart-modification", "item-removal", "cart-management"]
461
+ * @prerequisites ["Valid cart header UID", "Valid line number", "Line must exist"]
462
+ * @nextSteps ["api.commerce.cartLine.get to view updated cart", "api.commerce.cartLine.add.create to add replacement items"]
463
+ * @businessRules ["Removes single line item", "Updates cart totals", "Preserves other line items"]
464
+ * @functionalArea "cart-and-session-management"
465
+ * @caching "No caching, immediate cart modification"
466
+ * @performance "Fast single line deletion"
467
+ *
468
+ * @description Removes a single line item from the cart by line number
469
+ * @param cartHdrUid Cart header unique identifier
470
+ * @param lineNo Line number to delete
471
+ * @returns Promise<CartLineDeleteResponse> Complete response with deletion status and metadata
472
+ * @throws ValidationError When response is malformed
473
+ *
474
+ * @example
475
+ * ```typescript
476
+ * // Remove specific line item
477
+ * const response = await client.cartLine.lines.delete(789, 1);
478
+ * if (response.data.success) {
479
+ * console.log('Line item 1 has been removed from cart');
480
+ * }
481
+ *
482
+ * // Get just the result data
483
+ * const result = await client.cartLine.lines.deleteData(789, 1);
484
+ * ```
485
+ */
486
+ delete: async (cartHdrUid, lineNo) => {
487
+ return this.executeRequest({
488
+ method: 'DELETE',
489
+ path: '/cart-line/{cartHdrUid}/lines/{lineNo}',
490
+ responseSchema: CartLineDeleteResponseSchema,
491
+ }, undefined, { cartHdrUid: String(cartHdrUid), lineNo: String(lineNo) });
492
+ },
493
+ /**
494
+ * Delete specific cart line item data only
495
+ * @param cartHdrUid Cart header unique identifier
496
+ * @param lineNo Line number to delete
497
+ * @returns Promise<unknown> Deletion result data only
498
+ */
499
+ deleteData: async (cartHdrUid, lineNo) => {
500
+ const response = await this.cartLine.lines.delete(cartHdrUid, lineNo);
501
+ return response.data;
502
+ },
387
503
  },
388
504
  /**
389
- * Update cart line items (data only)
390
- * @description Returns only the data from cart line update response
391
- * @param cartHdrUid Cart header unique identifier
392
- * @param items Array of cart line items to update
393
- * @returns Update result (data only)
394
- * @throws ValidationError When request is invalid or response is malformed
505
+ * Update Operations
506
+ * @description Cart line update functionality for modifying existing items
395
507
  */
396
- updateData: async (cartHdrUid, items) => {
397
- const response = await this.cartLines.update(cartHdrUid, items);
398
- return response.data;
508
+ update: {
509
+ /**
510
+ * Update quantities or details for existing cart line items
511
+ *
512
+ * @fullPath api.commerce.cartLine.update.create
513
+ * @service commerce
514
+ * @domain cart-management
515
+ * @dataMethod cartLine.update.getData - returns only the update result data without metadata
516
+ * @discoverable true
517
+ * @searchTerms ["update cart line", "modify cart items", "change quantity", "update line items", "cart modification"]
518
+ * @relatedEndpoints ["api.commerce.cartLine.get", "api.commerce.cartLine.add.create", "api.commerce.cartLine.lines.delete"]
519
+ * @commonPatterns ["Update item quantity", "Modify cart items", "Change line details", "Cart item updates"]
520
+ * @workflow ["cart-modification", "quantity-updates", "cart-management"]
521
+ * @prerequisites ["Valid cart header UID", "Valid line identification", "Items must exist in cart"]
522
+ * @nextSteps ["api.commerce.cartLine.get to view updated cart", "api.commerce.checkout.create to proceed to checkout"]
523
+ * @businessRules ["Updates existing line items only", "Validates quantity changes", "Recalculates pricing"]
524
+ * @functionalArea "cart-and-session-management"
525
+ * @caching "No caching, immediate cart modification"
526
+ * @performance "Batch operation for multiple line updates"
527
+ *
528
+ * @description Updates existing line items in the cart with new quantities, notes, or other modifications
529
+ * @param cartHdrUid Cart header unique identifier
530
+ * @param items Array of cart line items to update (must specify lineNo or key for identification)
531
+ * @returns Promise<CartLineModifyResponse> Complete response with update status and metadata
532
+ * @throws ValidationError When request is invalid or response is malformed
533
+ *
534
+ * @example
535
+ * ```typescript
536
+ * // Update multiple line items
537
+ * const response = await client.cartLine.update.create(789, [
538
+ * {
539
+ * lineNo: 1,
540
+ * quantity: 5.0,
541
+ * lineNote: 'Updated quantity to 5'
542
+ * },
543
+ * {
544
+ * key: 'unique-key-123',
545
+ * quantity: 3.0
546
+ * }
547
+ * ]);
548
+ *
549
+ * // Get just the update result
550
+ * const result = await client.cartLine.update.getData(789, items);
551
+ * ```
552
+ */
553
+ create: async (cartHdrUid, items) => {
554
+ return this.executeRequest({
555
+ method: 'POST',
556
+ path: '/cart-line/{cartHdrUid}/update',
557
+ responseSchema: CartLineModifyResponseSchema,
558
+ }, items, { cartHdrUid: String(cartHdrUid) });
559
+ },
560
+ /**
561
+ * Update cart line items data only
562
+ * @param cartHdrUid Cart header unique identifier
563
+ * @param items Array of cart line items to update
564
+ * @returns Promise<unknown> Update result data only
565
+ */
566
+ getData: async (cartHdrUid, items) => {
567
+ const response = await this.cartLine.update.create(cartHdrUid, items);
568
+ return response.data;
569
+ },
399
570
  },
400
571
  /**
401
- * Clear all cart line items (data only)
402
- * @description Returns only the data from cart clear response
572
+ * Get cart line items data only
403
573
  * @param cartHdrUid Cart header unique identifier
404
- * @returns Clear result (data only)
405
- * @throws ValidationError When response is malformed
574
+ * @returns Promise<unknown[]> Array of cart line items data only
406
575
  */
407
- clearData: async (cartHdrUid) => {
408
- const response = await this.cartLines.clear(cartHdrUid);
576
+ getData: async (cartHdrUid) => {
577
+ const response = await this.cartLine.get(cartHdrUid);
409
578
  return response.data;
410
579
  },
411
580
  /**
412
- * Delete specific cart line item (data only)
413
- * @description Returns only the data from cart line deletion response
581
+ * Clear all cart line items data only
414
582
  * @param cartHdrUid Cart header unique identifier
415
- * @param lineNo Line number to delete
416
- * @returns Deletion result (data only)
417
- * @throws ValidationError When response is malformed
583
+ * @returns Promise<unknown> Clear result data only
418
584
  */
419
- deleteLineData: async (cartHdrUid, lineNo) => {
420
- const response = await this.cartLines.deleteLine(cartHdrUid, lineNo);
585
+ deleteData: async (cartHdrUid) => {
586
+ const response = await this.cartLine.delete(cartHdrUid);
421
587
  return response.data;
422
588
  },
423
589
  };
424
590
  /**
425
- * Checkout endpoints
426
- * @description Methods for end-to-end checkout processing with Prophet21 ERP integration
591
+ * Checkout Operations
592
+ * @description End-to-end checkout processing with Prophet21 ERP integration
427
593
  */
428
594
  this.checkout = {
429
595
  /**
430
596
  * Create a new checkout session
597
+ *
598
+ * @fullPath api.commerce.checkout.create
599
+ * @service commerce
600
+ * @domain checkout-processing
601
+ * @dataMethod checkout.createData - returns only the checkout data without metadata
602
+ * @discoverable true
603
+ * @searchTerms ["checkout", "create checkout", "order", "payment", "purchase", "e-commerce", "checkout process"]
604
+ * @relatedEndpoints ["api.commerce.cartLine.get", "api.commerce.checkout.get", "api.avalara.rates.create", "api.customers.customer.get"]
605
+ * @commonPatterns ["Create checkout", "Process order", "E-commerce checkout", "Payment processing"]
606
+ * @workflow ["checkout-creation", "order-processing", "payment-processing", "erp-integration"]
607
+ * @prerequisites ["Valid cart data", "Customer information", "Payment details", "Line items"]
608
+ * @nextSteps ["api.commerce.checkout.validate.update to validate", "api.commerce.checkout.activate.update to process payment"]
609
+ * @businessRules ["Requires complete order data", "Validates customer and payment info", "Creates checkout session"]
610
+ * @functionalArea "checkout-and-payment-processing"
611
+ * @caching "No caching, immediate checkout creation"
612
+ * @performance "Creates checkout session for payment processing"
613
+ *
431
614
  * @description Creates a new checkout with complete order data including customer, payment, and line items
432
615
  * @param orderData Complete checkout data with customer information, payment details, and line items
433
- * @returns Created checkout with unique identifiers and status
616
+ * @returns Promise<CheckoutCreateResponse> Created checkout with unique identifiers and status
434
617
  * @throws ValidationError When request is invalid or response is malformed
618
+ *
435
619
  * @example
436
620
  * ```typescript
437
- * const checkout = await client.checkout.create({
621
+ * // Create a new checkout
622
+ * const response = await client.checkout.create({
438
623
  * customer: {
439
624
  * customerId: 456,
440
625
  * contactId: 123,
@@ -443,232 +628,403 @@ export class CommerceClient extends BaseServiceClient {
443
628
  * billToCity: 'Anytown',
444
629
  * billToState: 'CA',
445
630
  * billToZip: '12345',
446
- * billToCountry: 'US',
447
- * shipToName: 'John Doe',
448
- * shipToAddress1: '123 Main St',
449
- * shipToCity: 'Anytown',
450
- * shipToState: 'CA',
451
- * shipToZip: '12345',
452
- * shipToCountry: 'US'
631
+ * billToCountry: 'US'
453
632
  * },
454
633
  * payment: {
455
634
  * paymentType: 'CC',
456
635
  * cardNumber: '4111111111111111',
457
636
  * expirationDate: '12/25',
458
- * cvv: '123',
459
- * cardHolderName: 'John Doe'
637
+ * cvv: '123'
460
638
  * },
461
639
  * lineItems: [
462
640
  * { invMastUid: 12345, quantity: 2, unitOfMeasure: 'EA', unitPrice: 29.99 }
463
641
  * ]
464
642
  * });
643
+ *
644
+ * // Get just the checkout data
645
+ * const checkout = await client.checkout.createData(orderData);
465
646
  * ```
466
647
  */
467
- create: this.createCreateMethod('/checkout', CheckoutCreateRequestSchema, CheckoutCreateResponseSchema),
648
+ create: async (orderData) => {
649
+ return this.executeRequest({
650
+ method: 'POST',
651
+ path: '/checkout',
652
+ responseSchema: CheckoutCreateResponseSchema,
653
+ }, orderData);
654
+ },
468
655
  /**
469
656
  * Get checkout details by ID
657
+ *
658
+ * @fullPath api.commerce.checkout.get
659
+ * @service commerce
660
+ * @domain checkout-processing
661
+ * @dataMethod checkout.getData - returns only the checkout data without metadata
662
+ * @discoverable true
663
+ * @searchTerms ["checkout", "get checkout", "checkout details", "order details", "checkout status"]
664
+ * @relatedEndpoints ["api.commerce.checkout.create", "api.commerce.checkout.validate.update", "api.commerce.checkout.activate.update"]
665
+ * @commonPatterns ["Get checkout details", "View order", "Check checkout status", "Order information"]
666
+ * @workflow ["checkout-retrieval", "order-status-check", "checkout-management"]
667
+ * @prerequisites ["Valid checkout UID", "Checkout must exist"]
668
+ * @nextSteps ["api.commerce.checkout.validate.update", "api.commerce.checkout.doc.get for receipt"]
669
+ * @businessRules ["Returns complete checkout details", "Includes order and processing status", "Available to checkout owner"]
670
+ * @functionalArea "checkout-and-payment-processing"
671
+ * @caching "Cache for 5 minutes, invalidate on checkout updates"
672
+ * @performance "Fast retrieval with complete order data"
673
+ *
470
674
  * @description Retrieves complete details for a specific checkout including all order data
471
675
  * @param checkoutUid Checkout unique identifier
472
- * @returns Complete checkout details with order data and processing status
676
+ * @returns Promise<CheckoutGetResponse> Complete checkout details with order data and processing status
473
677
  * @throws ValidationError When response is malformed
678
+ *
474
679
  * @example
475
680
  * ```typescript
476
- * const checkout = await client.checkout.get(12345);
477
- * console.log('Checkout:', checkout.checkoutUid, 'Status:', checkout.statusCd);
478
- * console.log('Created:', checkout.dateCreated, 'Type:', checkout.checkoutType);
681
+ * // Get checkout details
682
+ * const response = await client.checkout.get(12345);
683
+ * console.log('Checkout:', response.data.checkoutUid, 'Status:', response.data.statusCd);
684
+ * console.log('Created:', response.data.dateCreated, 'Type:', response.data.checkoutType);
685
+ *
686
+ * // Get just the checkout data
687
+ * const checkout = await client.checkout.getData(12345);
479
688
  * ```
480
689
  */
481
- get: this.createGetMethod('/checkout/{checkoutUid}', CheckoutGetResponseSchema),
690
+ get: async (checkoutUid) => {
691
+ return this.executeRequest({
692
+ method: 'GET',
693
+ path: '/checkout/{checkoutUid}',
694
+ responseSchema: CheckoutGetResponseSchema,
695
+ }, undefined, { checkoutUid: String(checkoutUid) });
696
+ },
482
697
  /**
483
- * Get formatted checkout document
484
- * @description Retrieves the formatted checkout document/receipt for display or printing
485
- * @param checkoutUid Checkout unique identifier
486
- * @param params Optional parameters including associated cart header UID
487
- * @returns Raw checkout document response
488
- * @throws ValidationError When response is malformed
489
- * @example
490
- * ```typescript
491
- * const doc = await client.checkout.getDoc(12345, { cartHdrUid: 789 });
492
- * // Process or display the formatted document
493
- * ```
698
+ * Activate Operations
699
+ * @description Checkout activation functionality for payment processing
494
700
  */
495
- getDoc: async (checkoutUid, params) => {
496
- // Return raw response for document endpoint
497
- const response = await this.http.get(`${this.baseUrl}/checkout/${checkoutUid}/doc`, params ? CheckoutDocParamsSchema.parse(params) : undefined);
498
- return response;
701
+ activate: {
702
+ /**
703
+ * Activate and process checkout
704
+ *
705
+ * @fullPath api.commerce.checkout.activate.update
706
+ * @service commerce
707
+ * @domain checkout-processing
708
+ * @dataMethod checkout.activate.getData - returns only the activation result data without metadata
709
+ * @discoverable true
710
+ * @searchTerms ["activate checkout", "process payment", "finalize order", "checkout activation", "payment processing"]
711
+ * @relatedEndpoints ["api.commerce.checkout.get", "api.commerce.checkout.validate.update", "api.avalara.rates.create"]
712
+ * @commonPatterns ["Activate checkout", "Process payment", "Finalize order", "Complete purchase"]
713
+ * @workflow ["payment-processing", "order-finalization", "erp-integration", "checkout-completion"]
714
+ * @prerequisites ["Valid checkout UID", "Checkout validation passed", "Payment information verified"]
715
+ * @nextSteps ["api.commerce.checkout.doc.get for receipt", "Order fulfillment processes"]
716
+ * @businessRules ["Processes payment", "Creates orders in Prophet21 ERP", "Updates checkout status"]
717
+ * @functionalArea "checkout-and-payment-processing"
718
+ * @caching "No caching, immediate payment processing"
719
+ * @performance "Payment processing with ERP integration"
720
+ *
721
+ * @description Activates the checkout, processes payment, and creates orders in Prophet21 ERP system
722
+ * @param checkoutUid Checkout unique identifier
723
+ * @returns Promise<CheckoutActivateResponse> Activated checkout details with updated status
724
+ * @throws ValidationError When response is malformed
725
+ *
726
+ * @example
727
+ * ```typescript
728
+ * // Activate checkout and process payment
729
+ * const response = await client.checkout.activate.update(12345);
730
+ * if (response.data.statusCd === 710) {
731
+ * console.log('Checkout successfully activated and processed');
732
+ * }
733
+ *
734
+ * // Get just the activation result
735
+ * const result = await client.checkout.activate.getData(12345);
736
+ * ```
737
+ */
738
+ update: async (checkoutUid) => {
739
+ return this.executeRequest({
740
+ method: 'PUT',
741
+ path: '/checkout/{checkoutUid}/activate',
742
+ responseSchema: CheckoutActivateResponseSchema,
743
+ }, undefined, { checkoutUid: String(checkoutUid) });
744
+ },
745
+ /**
746
+ * Activate checkout data only
747
+ * @param checkoutUid Checkout unique identifier
748
+ * @returns Promise<unknown> Activation results data only
749
+ */
750
+ getData: async (checkoutUid) => {
751
+ const response = await this.checkout.activate.update(checkoutUid);
752
+ return response.data;
753
+ },
499
754
  },
500
755
  /**
501
- * Validate checkout data
502
- * @description Validates checkout data without processing payment or creating orders in Prophet21
503
- * @param checkoutUid Checkout unique identifier
504
- * @returns Validation results with status, errors, and warnings
505
- * @throws ValidationError When response is malformed
506
- * @example
507
- * ```typescript
508
- * const validation = await client.checkout.validate(12345);
509
- * if (validation.data.validationResults?.isValid) {
510
- * console.log('Checkout is valid and ready for activation');
511
- * } else {
512
- * console.log('Validation errors:', validation.data.validationResults?.errors);
513
- * }
514
- * ```
756
+ * Doc Operations
757
+ * @description Checkout document functionality for receipts and printing
515
758
  */
516
- validate: this.createActionMethod('/checkout/{checkoutUid}/validate', 'PUT', CheckoutValidateResponseSchema),
759
+ doc: {
760
+ /**
761
+ * Get formatted checkout document
762
+ *
763
+ * @fullPath api.commerce.checkout.doc.get
764
+ * @service commerce
765
+ * @domain checkout-processing
766
+ * @dataMethod checkout.doc.getData - returns the document data directly
767
+ * @discoverable true
768
+ * @searchTerms ["checkout document", "receipt", "checkout doc", "order receipt", "checkout receipt"]
769
+ * @relatedEndpoints ["api.commerce.checkout.get", "api.commerce.checkout.activate.update"]
770
+ * @commonPatterns ["Get checkout receipt", "Download order document", "Print checkout", "Order confirmation"]
771
+ * @workflow ["receipt-generation", "document-retrieval", "order-confirmation"]
772
+ * @prerequisites ["Valid checkout UID", "Checkout must exist", "Document must be available"]
773
+ * @nextSteps ["Display or print document", "Email to customer", "Store for records"]
774
+ * @businessRules ["Generates formatted receipt", "Includes all order details", "Available after checkout creation"]
775
+ * @functionalArea "checkout-and-payment-processing"
776
+ * @caching "Cache for 1 hour, document content is static"
777
+ * @performance "Fast document retrieval for display or printing"
778
+ *
779
+ * @description Retrieves the formatted checkout document/receipt for display or printing
780
+ * @param checkoutUid Checkout unique identifier
781
+ * @param params Optional parameters including associated cart header UID
782
+ * @returns Promise<unknown> Raw checkout document response
783
+ * @throws ValidationError When response is malformed
784
+ *
785
+ * @example
786
+ * ```typescript
787
+ * // Get checkout document
788
+ * const response = await client.checkout.doc.get(12345, { cartHdrUid: 789 });
789
+ * // Process or display the formatted document
790
+ *
791
+ * // Get document data directly
792
+ * const doc = await client.checkout.doc.getData(12345);
793
+ * ```
794
+ */
795
+ get: async (checkoutUid, params) => {
796
+ return this.executeRequest({
797
+ method: 'GET',
798
+ path: '/checkout/{checkoutUid}/doc',
799
+ responseSchema: CheckoutDocResponseSchema,
800
+ }, params, { checkoutUid: String(checkoutUid) });
801
+ },
802
+ /**
803
+ * Get checkout document data only
804
+ * @param checkoutUid Checkout unique identifier
805
+ * @param params Optional parameters
806
+ * @returns Promise<unknown> Checkout document data only
807
+ */
808
+ getData: async (checkoutUid, params) => {
809
+ const response = await this.checkout.doc.get(checkoutUid, params);
810
+ return response.data;
811
+ },
812
+ },
517
813
  /**
518
- * Activate and process checkout
519
- * @description Activates the checkout, processes payment, and creates orders in Prophet21 ERP system
520
- * @param checkoutUid Checkout unique identifier
521
- * @returns Activated checkout details with updated status
522
- * @throws ValidationError When response is malformed
523
- * @example
524
- * ```typescript
525
- * const result = await client.checkout.activate(12345);
526
- * if (result.data.statusCd === 710) {
527
- * console.log('Checkout successfully activated and processed');
528
- * }
529
- * ```
814
+ * Validate Operations
815
+ * @description Checkout validation functionality for pre-processing verification
530
816
  */
531
- activate: this.createActionMethod('/checkout/{checkoutUid}/activate', 'PUT', CheckoutActivateResponseSchema),
817
+ validate: {
818
+ /**
819
+ * Validate checkout data
820
+ *
821
+ * @fullPath api.commerce.checkout.validate.update
822
+ * @service commerce
823
+ * @domain checkout-processing
824
+ * @dataMethod checkout.validate.getData - returns only the validation result data without metadata
825
+ * @discoverable true
826
+ * @searchTerms ["validate checkout", "checkout validation", "verify checkout", "pre-process validation"]
827
+ * @relatedEndpoints ["api.commerce.checkout.get", "api.commerce.checkout.activate.update", "api.avalara.rates.create"]
828
+ * @commonPatterns ["Validate checkout", "Pre-process verification", "Check checkout readiness", "Validation check"]
829
+ * @workflow ["checkout-validation", "pre-processing", "verification", "validation-checks"]
830
+ * @prerequisites ["Valid checkout UID", "Checkout must exist", "Complete checkout data"]
831
+ * @nextSteps ["api.commerce.checkout.activate.update if valid", "Fix validation errors if invalid"]
832
+ * @businessRules ["Validates without processing payment", "Checks data completeness", "Returns validation results"]
833
+ * @functionalArea "checkout-and-payment-processing"
834
+ * @caching "No caching, real-time validation required"
835
+ * @performance "Fast validation without payment processing"
836
+ *
837
+ * @description Validates checkout data without processing payment or creating orders in Prophet21
838
+ * @param checkoutUid Checkout unique identifier
839
+ * @returns Promise<CheckoutValidateResponse> Validation results with status, errors, and warnings
840
+ * @throws ValidationError When response is malformed
841
+ *
842
+ * @example
843
+ * ```typescript
844
+ * // Validate checkout
845
+ * const response = await client.checkout.validate.update(12345);
846
+ * if (response.data.validationResults?.isValid) {
847
+ * console.log('Checkout is valid and ready for activation');
848
+ * } else {
849
+ * console.log('Validation errors:', response.data.validationResults?.errors);
850
+ * }
851
+ *
852
+ * // Get just the validation results
853
+ * const validation = await client.checkout.validate.getData(12345);
854
+ * ```
855
+ */
856
+ update: async (checkoutUid) => {
857
+ return this.executeRequest({
858
+ method: 'PUT',
859
+ path: '/checkout/{checkoutUid}/validate',
860
+ responseSchema: CheckoutValidateResponseSchema,
861
+ }, undefined, { checkoutUid: String(checkoutUid) });
862
+ },
863
+ /**
864
+ * Validate checkout data only
865
+ * @param checkoutUid Checkout unique identifier
866
+ * @returns Promise<unknown> Validation results data only
867
+ */
868
+ getData: async (checkoutUid) => {
869
+ const response = await this.checkout.validate.update(checkoutUid);
870
+ return response.data;
871
+ },
872
+ },
532
873
  /**
533
- * Create Prophet21 checkout header
534
- * @description Creates Prophet21-specific checkout header for ERP integration (partially implemented)
535
- * @param checkoutUid Checkout unique identifier
536
- * @returns Prophet21 header creation result
537
- * @throws ValidationError When response is malformed
538
- * @example
539
- * ```typescript
540
- * const p21Header = await client.checkout.createProphet21Hdr(12345);
541
- * // Note: This endpoint is partially implemented
542
- * ```
874
+ * Prophet21 Hdr Operations
875
+ * @description Prophet21 ERP integration functionality for checkout headers
543
876
  */
544
- createProphet21Hdr: this.createActionMethod('/checkout/{checkoutUid}/prophet21-hdr', 'POST', CheckoutProphet21HdrResponseSchema),
545
- /**
546
- * Add Prophet21 checkout lines
547
- * @description Adds line items to Prophet21 checkout header (in early development)
548
- * @param checkoutUid Checkout unique identifier
549
- * @param prophet21HdrUid Prophet21 header unique identifier
550
- * @returns Prophet21 line creation result
551
- * @throws ValidationError When response is malformed
552
- * @example
553
- * ```typescript
554
- * const p21Lines = await client.checkout.addProphet21Lines(12345, 67890);
555
- * // Note: This endpoint is in early development
556
- * ```
557
- */
558
- addProphet21Lines: async (checkoutUid, prophet21HdrUid) => {
559
- return this.executeRequest({
560
- method: 'POST',
561
- path: '/checkout/{checkoutUid}/prophet21-hdr/{prophet21HdrUid}/prophet21-line',
562
- responseSchema: CheckoutProphet21LineResponseSchema,
563
- }, undefined, { checkoutUid: String(checkoutUid), prophet21HdrUid: String(prophet21HdrUid) });
877
+ prophet21Hdr: {
878
+ /**
879
+ * Create Prophet21 checkout header
880
+ *
881
+ * @fullPath api.commerce.checkout.prophet21Hdr.create
882
+ * @service commerce
883
+ * @domain erp-integration
884
+ * @dataMethod checkout.prophet21Hdr.getData - returns only the Prophet21 header data without metadata
885
+ * @discoverable true
886
+ * @searchTerms ["prophet21", "erp integration", "checkout header", "p21 header", "erp checkout"]
887
+ * @relatedEndpoints ["api.commerce.checkout.get", "api.commerce.checkout.prophet21Hdr.prophet21Line.create"]
888
+ * @commonPatterns ["Create ERP header", "Prophet21 integration", "ERP checkout header", "P21 header creation"]
889
+ * @workflow ["erp-integration", "prophet21-processing", "checkout-erp-sync"]
890
+ * @prerequisites ["Valid checkout UID", "Checkout must exist", "ERP integration configured"]
891
+ * @nextSteps ["api.commerce.checkout.prophet21Hdr.prophet21Line.create to add lines"]
892
+ * @businessRules ["Creates Prophet21-specific header", "ERP integration endpoint", "Partially implemented"]
893
+ * @functionalArea "erp-integration"
894
+ * @caching "No caching, immediate ERP integration"
895
+ * @performance "ERP integration processing"
896
+ *
897
+ * @description Creates Prophet21-specific checkout header for ERP integration (partially implemented)
898
+ * @param checkoutUid Checkout unique identifier
899
+ * @returns Promise<CheckoutProphet21HdrResponse> Prophet21 header creation result
900
+ * @throws ValidationError When response is malformed
901
+ *
902
+ * @example
903
+ * ```typescript
904
+ * // Create Prophet21 header
905
+ * const response = await client.checkout.prophet21Hdr.create(12345);
906
+ * // Note: This endpoint is partially implemented
907
+ *
908
+ * // Get just the header data
909
+ * const p21Header = await client.checkout.prophet21Hdr.getData(12345);
910
+ * ```
911
+ */
912
+ create: async (checkoutUid) => {
913
+ return this.executeRequest({
914
+ method: 'POST',
915
+ path: '/checkout/{checkoutUid}/prophet21-hdr',
916
+ responseSchema: CheckoutProphet21HdrResponseSchema,
917
+ }, undefined, { checkoutUid: String(checkoutUid) });
918
+ },
919
+ /**
920
+ * Prophet21 Line Operations
921
+ * @description Prophet21 ERP integration functionality for checkout line items
922
+ */
923
+ prophet21Line: {
924
+ /**
925
+ * Add Prophet21 checkout lines
926
+ *
927
+ * @fullPath api.commerce.checkout.prophet21Hdr.prophet21Line.create
928
+ * @service commerce
929
+ * @domain erp-integration
930
+ * @dataMethod checkout.prophet21Hdr.prophet21Line.getData - returns the Prophet21 line data directly
931
+ * @discoverable true
932
+ * @searchTerms ["prophet21 lines", "erp line items", "p21 lines", "checkout lines", "erp integration"]
933
+ * @relatedEndpoints ["api.commerce.checkout.prophet21Hdr.create", "api.commerce.checkout.get"]
934
+ * @commonPatterns ["Add ERP line items", "Prophet21 line integration", "ERP checkout lines", "P21 line creation"]
935
+ * @workflow ["erp-integration", "prophet21-processing", "checkout-line-sync"]
936
+ * @prerequisites ["Valid checkout UID", "Valid Prophet21 header UID", "ERP integration configured"]
937
+ * @nextSteps ["Complete ERP integration process", "Finalize Prophet21 checkout"]
938
+ * @businessRules ["Adds line items to Prophet21 header", "ERP integration endpoint", "In early development"]
939
+ * @functionalArea "erp-integration"
940
+ * @caching "No caching, immediate ERP integration"
941
+ * @performance "ERP line item processing"
942
+ *
943
+ * @description Adds line items to Prophet21 checkout header (in early development)
944
+ * @param checkoutUid Checkout unique identifier
945
+ * @param prophet21HdrUid Prophet21 header unique identifier
946
+ * @returns Promise<CheckoutProphet21LineResponse> Prophet21 line creation result
947
+ * @throws ValidationError When response is malformed
948
+ *
949
+ * @example
950
+ * ```typescript
951
+ * // Add Prophet21 lines
952
+ * const response = await client.checkout.prophet21Hdr.prophet21Line.create(12345, 67890);
953
+ * // Note: This endpoint is in early development
954
+ *
955
+ * // Get just the line data
956
+ * const p21Lines = await client.checkout.prophet21Hdr.prophet21Line.getData(12345, 67890);
957
+ * ```
958
+ */
959
+ create: async (checkoutUid, prophet21HdrUid) => {
960
+ return this.executeRequest({
961
+ method: 'POST',
962
+ path: '/checkout/{checkoutUid}/prophet21-hdr/{prophet21HdrUid}/prophet21-line',
963
+ responseSchema: CheckoutProphet21LineResponseSchema,
964
+ }, undefined, { checkoutUid: String(checkoutUid), prophet21HdrUid: String(prophet21HdrUid) });
965
+ },
966
+ /**
967
+ * Add Prophet21 lines data only
968
+ * @param checkoutUid Checkout unique identifier
969
+ * @param prophet21HdrUid Prophet21 header unique identifier
970
+ * @returns Promise<unknown> Prophet21 lines addition result data only
971
+ */
972
+ createData: async (checkoutUid, prophet21HdrUid) => {
973
+ const response = await this.checkout.prophet21Hdr.prophet21Line.create(checkoutUid, prophet21HdrUid);
974
+ return response.data;
975
+ },
976
+ /**
977
+ * Get Prophet21 lines data only
978
+ * @param checkoutUid Checkout unique identifier
979
+ * @param prophet21HdrUid Prophet21 header unique identifier
980
+ * @returns Promise<unknown> Prophet21 lines addition result data only
981
+ */
982
+ getData: async (checkoutUid, prophet21HdrUid) => {
983
+ const response = await this.checkout.prophet21Hdr.prophet21Line.create(checkoutUid, prophet21HdrUid);
984
+ return response.data;
985
+ },
986
+ },
987
+ /**
988
+ * Create Prophet21 header data only
989
+ * @param checkoutUid Checkout unique identifier
990
+ * @returns Promise<unknown> Prophet21 header creation result data only
991
+ */
992
+ createData: async (checkoutUid) => {
993
+ const response = await this.checkout.prophet21Hdr.create(checkoutUid);
994
+ return response.data;
995
+ },
996
+ /**
997
+ * Get Prophet21 header data only
998
+ * @param checkoutUid Checkout unique identifier
999
+ * @returns Promise<unknown> Prophet21 header creation result data only
1000
+ */
1001
+ getData: async (checkoutUid) => {
1002
+ const response = await this.checkout.prophet21Hdr.create(checkoutUid);
1003
+ return response.data;
1004
+ },
564
1005
  },
565
- // Data-only methods for checkout
566
1006
  /**
567
- * Create checkout (data only)
568
- * @description Returns only the data from checkout creation response
1007
+ * Create checkout data only
569
1008
  * @param orderData Complete checkout data
570
- * @returns Created checkout details (data only)
571
- * @throws ValidationError When request is invalid or response is malformed
1009
+ * @returns Promise<unknown> Created checkout details data only
572
1010
  */
573
1011
  createData: async (orderData) => {
574
1012
  const response = await this.checkout.create(orderData);
575
1013
  return response.data;
576
1014
  },
577
1015
  /**
578
- * Get checkout details (data only)
579
- * @description Returns only the data from checkout details response
1016
+ * Get checkout details data only
580
1017
  * @param checkoutUid Checkout unique identifier
581
- * @returns Checkout details (data only)
582
- * @throws ValidationError When response is malformed
1018
+ * @returns Promise<unknown> Checkout details data only
583
1019
  */
584
1020
  getData: async (checkoutUid) => {
585
1021
  const response = await this.checkout.get(checkoutUid);
586
1022
  return response.data;
587
1023
  },
588
- /**
589
- * Get checkout document (data only)
590
- * @description Returns the checkout document directly
591
- * @param checkoutUid Checkout unique identifier
592
- * @param params Optional parameters
593
- * @returns Checkout document (data only)
594
- * @throws ValidationError When response is malformed
595
- */
596
- getDocData: async (checkoutUid, params) => {
597
- return await this.checkout.getDoc(checkoutUid, params);
598
- },
599
- /**
600
- * Validate checkout (data only)
601
- * @description Returns only the data from checkout validation response
602
- * @param checkoutUid Checkout unique identifier
603
- * @returns Validation results (data only)
604
- * @throws ValidationError When response is malformed
605
- */
606
- validateData: async (checkoutUid) => {
607
- const response = await this.checkout.validate(checkoutUid);
608
- return response.data;
609
- },
610
- /**
611
- * Activate checkout (data only)
612
- * @description Returns only the data from checkout activation response
613
- * @param checkoutUid Checkout unique identifier
614
- * @returns Activation results (data only)
615
- * @throws ValidationError When response is malformed
616
- */
617
- activateData: async (checkoutUid) => {
618
- const response = await this.checkout.activate(checkoutUid);
619
- return response.data;
620
- },
621
- /**
622
- * Create Prophet21 header (data only)
623
- * @description Returns only the data from Prophet21 header creation response
624
- * @param checkoutUid Checkout unique identifier
625
- * @returns Prophet21 header creation result (data only)
626
- * @throws ValidationError When response is malformed
627
- */
628
- createProphet21HdrData: async (checkoutUid) => {
629
- const response = await this.checkout.createProphet21Hdr(checkoutUid);
630
- return response.data;
631
- },
632
- /**
633
- * Add Prophet21 lines (data only)
634
- * @description Returns the Prophet21 lines addition result directly
635
- * @param checkoutUid Checkout unique identifier
636
- * @param prophet21HdrUid Prophet21 header unique identifier
637
- * @returns Prophet21 lines addition result (data only)
638
- * @throws ValidationError When response is malformed
639
- */
640
- addProphet21LinesData: async (checkoutUid, prophet21HdrUid) => {
641
- return await this.checkout.addProphet21Lines(checkoutUid, prophet21HdrUid);
642
- },
643
- };
644
- /**
645
- * Check service health (no bearer token required)
646
- * @description Monitor service availability and site configuration without authentication overhead
647
- * @returns Health check response with site hash and ID for configuration verification
648
- * @throws ValidationError When response is malformed
649
- * @example
650
- * ```typescript
651
- * const health = await client.getHealthCheck();
652
- * console.log('Service health:', health.status);
653
- * console.log('Site ID:', health.data.siteId);
654
- * console.log('Site Hash:', health.data.siteHash);
655
- * ```
656
- */
657
- this.getHealthCheck = this.createHealthCheckMethod(HealthCheckResponseSchema);
658
- /**
659
- * Health Data Operations
660
- * @description Direct access to health check data without response metadata
661
- */
662
- this.healthData = {
663
- /**
664
- * Get health check data without response metadata
665
- * @returns Promise<unknown> Health status data directly
666
- */
667
- check: async () => {
668
- const response = await this.getHealthCheck();
669
- return response.data;
670
- },
671
1024
  };
672
1025
  }
1026
+ getServiceDescription() {
1027
+ return 'Commerce service for e-commerce cart and checkout operations with ERP integration';
1028
+ }
673
1029
  }
674
1030
  //# sourceMappingURL=client.js.map