@djust-b2b/djust-front-sdk 3.0.0-beta.21 → 3.0.0-beta.22

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 (669) hide show
  1. package/README.md +16 -5
  2. package/dist/.tsbuildinfo +1 -1
  3. package/dist/.tsbuildinfo-esm +1 -1
  4. package/dist/client/create-client.d.ts +3 -0
  5. package/dist/client/create-client.d.ts.map +1 -1
  6. package/dist/index.d.ts +7 -7
  7. package/dist/index.mjs +9 -1
  8. package/dist/interfaces/index.d.ts +6 -1
  9. package/dist/interfaces/index.d.ts.map +1 -1
  10. package/dist/settings/sdk-version.d.ts +3 -0
  11. package/dist/settings/sdk-version.d.ts.map +1 -0
  12. package/lib/.tsbuildinfo +1 -0
  13. package/lib/client/create-client.d.ts +251 -0
  14. package/lib/client/create-client.d.ts.map +1 -0
  15. package/lib/client/create-client.js +233 -0
  16. package/lib/client/create-client.js.map +1 -0
  17. package/lib/client/index.d.ts +14 -0
  18. package/lib/client/index.d.ts.map +1 -0
  19. package/lib/client/index.js +91 -0
  20. package/lib/client/index.js.map +1 -0
  21. package/lib/client/performance.d.ts +203 -0
  22. package/lib/client/performance.d.ts.map +1 -0
  23. package/lib/client/performance.js +409 -0
  24. package/lib/client/performance.js.map +1 -0
  25. package/lib/client/transport.d.ts +372 -0
  26. package/lib/client/transport.d.ts.map +1 -0
  27. package/lib/client/transport.js +735 -0
  28. package/lib/client/transport.js.map +1 -0
  29. package/lib/errors/base.d.ts +101 -0
  30. package/lib/errors/base.d.ts.map +1 -0
  31. package/lib/errors/base.js +145 -0
  32. package/lib/errors/base.js.map +1 -0
  33. package/lib/errors/classes/auth.error.d.ts +64 -0
  34. package/lib/errors/classes/auth.error.d.ts.map +1 -0
  35. package/lib/errors/classes/auth.error.js +116 -0
  36. package/lib/errors/classes/auth.error.js.map +1 -0
  37. package/lib/errors/classes/forbidden.error.d.ts +52 -0
  38. package/lib/errors/classes/forbidden.error.d.ts.map +1 -0
  39. package/lib/errors/classes/forbidden.error.js +90 -0
  40. package/lib/errors/classes/forbidden.error.js.map +1 -0
  41. package/lib/errors/classes/index.d.ts +17 -0
  42. package/lib/errors/classes/index.d.ts.map +1 -0
  43. package/lib/errors/classes/index.js +29 -0
  44. package/lib/errors/classes/index.js.map +1 -0
  45. package/lib/errors/classes/network.error.d.ts +63 -0
  46. package/lib/errors/classes/network.error.d.ts.map +1 -0
  47. package/lib/errors/classes/network.error.js +122 -0
  48. package/lib/errors/classes/network.error.js.map +1 -0
  49. package/lib/errors/classes/not-found.error.d.ts +58 -0
  50. package/lib/errors/classes/not-found.error.d.ts.map +1 -0
  51. package/lib/errors/classes/not-found.error.js +120 -0
  52. package/lib/errors/classes/not-found.error.js.map +1 -0
  53. package/lib/errors/classes/rate-limit.error.d.ts +49 -0
  54. package/lib/errors/classes/rate-limit.error.d.ts.map +1 -0
  55. package/lib/errors/classes/rate-limit.error.js +107 -0
  56. package/lib/errors/classes/rate-limit.error.js.map +1 -0
  57. package/lib/errors/classes/server.error.d.ts +63 -0
  58. package/lib/errors/classes/server.error.d.ts.map +1 -0
  59. package/lib/errors/classes/server.error.js +156 -0
  60. package/lib/errors/classes/server.error.js.map +1 -0
  61. package/lib/errors/classes/timeout.error.d.ts +64 -0
  62. package/lib/errors/classes/timeout.error.d.ts.map +1 -0
  63. package/lib/errors/classes/timeout.error.js +90 -0
  64. package/lib/errors/classes/timeout.error.js.map +1 -0
  65. package/lib/errors/classes/unexpected.error.d.ts +70 -0
  66. package/lib/errors/classes/unexpected.error.d.ts.map +1 -0
  67. package/lib/errors/classes/unexpected.error.js +105 -0
  68. package/lib/errors/classes/unexpected.error.js.map +1 -0
  69. package/lib/errors/classes/validation.error.d.ts +68 -0
  70. package/lib/errors/classes/validation.error.d.ts.map +1 -0
  71. package/lib/errors/classes/validation.error.js +103 -0
  72. package/lib/errors/classes/validation.error.js.map +1 -0
  73. package/lib/errors/codes.d.ts +111 -0
  74. package/lib/errors/codes.d.ts.map +1 -0
  75. package/lib/errors/codes.js +143 -0
  76. package/lib/errors/codes.js.map +1 -0
  77. package/lib/errors/compat.d.ts +99 -0
  78. package/lib/errors/compat.d.ts.map +1 -0
  79. package/lib/errors/compat.js +280 -0
  80. package/lib/errors/compat.js.map +1 -0
  81. package/lib/errors/factory.d.ts +33 -0
  82. package/lib/errors/factory.d.ts.map +1 -0
  83. package/lib/errors/factory.js +298 -0
  84. package/lib/errors/factory.js.map +1 -0
  85. package/lib/errors/guards.d.ts +142 -0
  86. package/lib/errors/guards.d.ts.map +1 -0
  87. package/lib/errors/guards.js +281 -0
  88. package/lib/errors/guards.js.map +1 -0
  89. package/lib/errors/helpers/djust-api-error.d.ts +29 -0
  90. package/lib/errors/helpers/djust-api-error.d.ts.map +1 -0
  91. package/lib/errors/helpers/djust-api-error.js +49 -0
  92. package/lib/errors/helpers/djust-api-error.js.map +1 -0
  93. package/lib/errors/index.d.ts +25 -0
  94. package/lib/errors/index.d.ts.map +1 -0
  95. package/lib/errors/index.js +89 -0
  96. package/lib/errors/index.js.map +1 -0
  97. package/lib/errors/types.d.ts +104 -0
  98. package/lib/errors/types.d.ts.map +1 -0
  99. package/lib/errors/types.js +10 -0
  100. package/lib/errors/types.js.map +1 -0
  101. package/lib/helpers/index.d.ts +42 -0
  102. package/lib/helpers/index.d.ts.map +1 -0
  103. package/lib/helpers/index.js +102 -0
  104. package/lib/helpers/index.js.map +1 -0
  105. package/lib/helpers/parameters-validation.d.ts +3 -0
  106. package/lib/helpers/parameters-validation.d.ts.map +1 -0
  107. package/lib/helpers/parameters-validation.js +22 -0
  108. package/lib/helpers/parameters-validation.js.map +1 -0
  109. package/lib/helpers/utils.d.ts +5 -0
  110. package/lib/helpers/utils.d.ts.map +1 -0
  111. package/lib/helpers/utils.js +30 -0
  112. package/lib/helpers/utils.js.map +1 -0
  113. package/lib/index.d.ts +266 -0
  114. package/lib/index.d.ts.map +1 -0
  115. package/lib/index.js +182 -0
  116. package/lib/index.js.map +1 -0
  117. package/lib/interfaces/index.d.ts +36 -0
  118. package/lib/interfaces/index.d.ts.map +1 -0
  119. package/lib/interfaces/index.js +29 -0
  120. package/lib/interfaces/index.js.map +1 -0
  121. package/lib/interfaces/models/address.d.ts +61 -0
  122. package/lib/interfaces/models/address.d.ts.map +1 -0
  123. package/lib/interfaces/models/address.js +3 -0
  124. package/lib/interfaces/models/address.js.map +1 -0
  125. package/lib/interfaces/models/attribute.d.ts +31 -0
  126. package/lib/interfaces/models/attribute.d.ts.map +1 -0
  127. package/lib/interfaces/models/attribute.js +3 -0
  128. package/lib/interfaces/models/attribute.js.map +1 -0
  129. package/lib/interfaces/models/auth.d.ts +37 -0
  130. package/lib/interfaces/models/auth.d.ts.map +1 -0
  131. package/lib/interfaces/models/auth.js +3 -0
  132. package/lib/interfaces/models/auth.js.map +1 -0
  133. package/lib/interfaces/models/cart.d.ts +64 -0
  134. package/lib/interfaces/models/cart.d.ts.map +1 -0
  135. package/lib/interfaces/models/cart.js +3 -0
  136. package/lib/interfaces/models/cart.js.map +1 -0
  137. package/lib/interfaces/models/common.d.ts +68 -0
  138. package/lib/interfaces/models/common.d.ts.map +1 -0
  139. package/lib/interfaces/models/common.js +3 -0
  140. package/lib/interfaces/models/common.js.map +1 -0
  141. package/lib/interfaces/models/custom-field.d.ts +57 -0
  142. package/lib/interfaces/models/custom-field.d.ts.map +1 -0
  143. package/lib/interfaces/models/custom-field.js +3 -0
  144. package/lib/interfaces/models/custom-field.js.map +1 -0
  145. package/lib/interfaces/models/customer-account.d.ts +52 -0
  146. package/lib/interfaces/models/customer-account.d.ts.map +1 -0
  147. package/lib/interfaces/models/customer-account.js +3 -0
  148. package/lib/interfaces/models/customer-account.js.map +1 -0
  149. package/lib/interfaces/models/customer-organisation.d.ts +14 -0
  150. package/lib/interfaces/models/customer-organisation.d.ts.map +1 -0
  151. package/lib/interfaces/models/customer-organisation.js +3 -0
  152. package/lib/interfaces/models/customer-organisation.js.map +1 -0
  153. package/lib/interfaces/models/customer-user.d.ts +114 -0
  154. package/lib/interfaces/models/customer-user.d.ts.map +1 -0
  155. package/lib/interfaces/models/customer-user.js +3 -0
  156. package/lib/interfaces/models/customer-user.js.map +1 -0
  157. package/lib/interfaces/models/incident.d.ts +37 -0
  158. package/lib/interfaces/models/incident.d.ts.map +1 -0
  159. package/lib/interfaces/models/incident.js +3 -0
  160. package/lib/interfaces/models/incident.js.map +1 -0
  161. package/lib/interfaces/models/navigation-category.d.ts +22 -0
  162. package/lib/interfaces/models/navigation-category.d.ts.map +1 -0
  163. package/lib/interfaces/models/navigation-category.js +3 -0
  164. package/lib/interfaces/models/navigation-category.js.map +1 -0
  165. package/lib/interfaces/models/offer.d.ts +151 -0
  166. package/lib/interfaces/models/offer.d.ts.map +1 -0
  167. package/lib/interfaces/models/offer.js +3 -0
  168. package/lib/interfaces/models/offer.js.map +1 -0
  169. package/lib/interfaces/models/order.d.ts +701 -0
  170. package/lib/interfaces/models/order.d.ts.map +1 -0
  171. package/lib/interfaces/models/order.js +3 -0
  172. package/lib/interfaces/models/order.js.map +1 -0
  173. package/lib/interfaces/models/payment.d.ts +20 -0
  174. package/lib/interfaces/models/payment.d.ts.map +1 -0
  175. package/lib/interfaces/models/payment.js +3 -0
  176. package/lib/interfaces/models/payment.js.map +1 -0
  177. package/lib/interfaces/models/price.d.ts +6 -0
  178. package/lib/interfaces/models/price.d.ts.map +1 -0
  179. package/lib/interfaces/models/price.js +3 -0
  180. package/lib/interfaces/models/price.js.map +1 -0
  181. package/lib/interfaces/models/product.d.ts +243 -0
  182. package/lib/interfaces/models/product.d.ts.map +1 -0
  183. package/lib/interfaces/models/product.js +3 -0
  184. package/lib/interfaces/models/product.js.map +1 -0
  185. package/lib/interfaces/models/quote.d.ts +77 -0
  186. package/lib/interfaces/models/quote.d.ts.map +1 -0
  187. package/lib/interfaces/models/quote.js +3 -0
  188. package/lib/interfaces/models/quote.js.map +1 -0
  189. package/lib/interfaces/models/searchProduct.d.ts +128 -0
  190. package/lib/interfaces/models/searchProduct.d.ts.map +1 -0
  191. package/lib/interfaces/models/searchProduct.js +3 -0
  192. package/lib/interfaces/models/searchProduct.js.map +1 -0
  193. package/lib/interfaces/models/supplier.d.ts +72 -0
  194. package/lib/interfaces/models/supplier.d.ts.map +1 -0
  195. package/lib/interfaces/models/supplier.js +3 -0
  196. package/lib/interfaces/models/supplier.js.map +1 -0
  197. package/lib/services/attributes/attributes.service.d.ts +18 -0
  198. package/lib/services/attributes/attributes.service.d.ts.map +1 -0
  199. package/lib/services/attributes/attributes.service.js +37 -0
  200. package/lib/services/attributes/attributes.service.js.map +1 -0
  201. package/lib/services/attributes/definitions.d.ts +28 -0
  202. package/lib/services/attributes/definitions.d.ts.map +1 -0
  203. package/lib/services/attributes/definitions.js +3 -0
  204. package/lib/services/attributes/definitions.js.map +1 -0
  205. package/lib/services/attributes/endpoints.d.ts +12 -0
  206. package/lib/services/attributes/endpoints.d.ts.map +1 -0
  207. package/lib/services/attributes/endpoints.js +14 -0
  208. package/lib/services/attributes/endpoints.js.map +1 -0
  209. package/lib/services/attributes/index.d.ts +33 -0
  210. package/lib/services/attributes/index.d.ts.map +1 -0
  211. package/lib/services/attributes/index.js +50 -0
  212. package/lib/services/attributes/index.js.map +1 -0
  213. package/lib/services/attributes/module.d.ts +11 -0
  214. package/lib/services/attributes/module.d.ts.map +1 -0
  215. package/lib/services/attributes/module.js +15 -0
  216. package/lib/services/attributes/module.js.map +1 -0
  217. package/lib/services/attributes/types.d.ts +35 -0
  218. package/lib/services/attributes/types.d.ts.map +1 -0
  219. package/lib/services/attributes/types.js +10 -0
  220. package/lib/services/attributes/types.js.map +1 -0
  221. package/lib/services/auth/__mocks__/auth.mocks.d.ts +249 -0
  222. package/lib/services/auth/__mocks__/auth.mocks.d.ts.map +1 -0
  223. package/lib/services/auth/__mocks__/auth.mocks.js +221 -0
  224. package/lib/services/auth/__mocks__/auth.mocks.js.map +1 -0
  225. package/lib/services/auth/auth.service.d.ts +286 -0
  226. package/lib/services/auth/auth.service.d.ts.map +1 -0
  227. package/lib/services/auth/auth.service.js +423 -0
  228. package/lib/services/auth/auth.service.js.map +1 -0
  229. package/lib/services/auth/definitions.d.ts +69 -0
  230. package/lib/services/auth/definitions.d.ts.map +1 -0
  231. package/lib/services/auth/definitions.js +3 -0
  232. package/lib/services/auth/definitions.js.map +1 -0
  233. package/lib/services/auth/definitions.requests.d.ts +25 -0
  234. package/lib/services/auth/definitions.requests.d.ts.map +1 -0
  235. package/lib/services/auth/definitions.requests.js +6 -0
  236. package/lib/services/auth/definitions.requests.js.map +1 -0
  237. package/lib/services/auth/endpoints.d.ts +30 -0
  238. package/lib/services/auth/endpoints.d.ts.map +1 -0
  239. package/lib/services/auth/endpoints.js +32 -0
  240. package/lib/services/auth/endpoints.js.map +1 -0
  241. package/lib/services/auth/index.d.ts +232 -0
  242. package/lib/services/auth/index.d.ts.map +1 -0
  243. package/lib/services/auth/index.js +310 -0
  244. package/lib/services/auth/index.js.map +1 -0
  245. package/lib/services/auth/module.d.ts +11 -0
  246. package/lib/services/auth/module.d.ts.map +1 -0
  247. package/lib/services/auth/module.js +17 -0
  248. package/lib/services/auth/module.js.map +1 -0
  249. package/lib/services/auth/types.d.ts +124 -0
  250. package/lib/services/auth/types.d.ts.map +1 -0
  251. package/lib/services/auth/types.js +10 -0
  252. package/lib/services/auth/types.js.map +1 -0
  253. package/lib/services/base.service.d.ts +83 -0
  254. package/lib/services/base.service.d.ts.map +1 -0
  255. package/lib/services/base.service.js +121 -0
  256. package/lib/services/base.service.js.map +1 -0
  257. package/lib/services/cart/cart.service.d.ts +443 -0
  258. package/lib/services/cart/cart.service.d.ts.map +1 -0
  259. package/lib/services/cart/cart.service.js +551 -0
  260. package/lib/services/cart/cart.service.js.map +1 -0
  261. package/lib/services/cart/definitions.d.ts +84 -0
  262. package/lib/services/cart/definitions.d.ts.map +1 -0
  263. package/lib/services/cart/definitions.js +3 -0
  264. package/lib/services/cart/definitions.js.map +1 -0
  265. package/lib/services/cart/endpoints.d.ts +24 -0
  266. package/lib/services/cart/endpoints.d.ts.map +1 -0
  267. package/lib/services/cart/endpoints.js +26 -0
  268. package/lib/services/cart/endpoints.js.map +1 -0
  269. package/lib/services/cart/index.d.ts +330 -0
  270. package/lib/services/cart/index.d.ts.map +1 -0
  271. package/lib/services/cart/index.js +464 -0
  272. package/lib/services/cart/index.js.map +1 -0
  273. package/lib/services/cart/module.d.ts +11 -0
  274. package/lib/services/cart/module.d.ts.map +1 -0
  275. package/lib/services/cart/module.js +17 -0
  276. package/lib/services/cart/module.js.map +1 -0
  277. package/lib/services/cart/types.d.ts +236 -0
  278. package/lib/services/cart/types.d.ts.map +1 -0
  279. package/lib/services/cart/types.js +10 -0
  280. package/lib/services/cart/types.js.map +1 -0
  281. package/lib/services/commercial-order/commercial-order.service.d.ts +435 -0
  282. package/lib/services/commercial-order/commercial-order.service.d.ts.map +1 -0
  283. package/lib/services/commercial-order/commercial-order.service.js +690 -0
  284. package/lib/services/commercial-order/commercial-order.service.js.map +1 -0
  285. package/lib/services/commercial-order/definitions.d.ts +181 -0
  286. package/lib/services/commercial-order/definitions.d.ts.map +1 -0
  287. package/lib/services/commercial-order/definitions.js +3 -0
  288. package/lib/services/commercial-order/definitions.js.map +1 -0
  289. package/lib/services/commercial-order/endpoints.d.ts +28 -0
  290. package/lib/services/commercial-order/endpoints.d.ts.map +1 -0
  291. package/lib/services/commercial-order/endpoints.js +33 -0
  292. package/lib/services/commercial-order/endpoints.js.map +1 -0
  293. package/lib/services/commercial-order/index.d.ts +712 -0
  294. package/lib/services/commercial-order/index.d.ts.map +1 -0
  295. package/lib/services/commercial-order/index.js +976 -0
  296. package/lib/services/commercial-order/index.js.map +1 -0
  297. package/lib/services/commercial-order/module.d.ts +11 -0
  298. package/lib/services/commercial-order/module.d.ts.map +1 -0
  299. package/lib/services/commercial-order/module.js +15 -0
  300. package/lib/services/commercial-order/module.js.map +1 -0
  301. package/lib/services/commercial-order/types.d.ts +244 -0
  302. package/lib/services/commercial-order/types.d.ts.map +1 -0
  303. package/lib/services/commercial-order/types.js +10 -0
  304. package/lib/services/commercial-order/types.js.map +1 -0
  305. package/lib/services/custom-field/custom-field.service.d.ts +23 -0
  306. package/lib/services/custom-field/custom-field.service.d.ts.map +1 -0
  307. package/lib/services/custom-field/custom-field.service.js +64 -0
  308. package/lib/services/custom-field/custom-field.service.js.map +1 -0
  309. package/lib/services/custom-field/definitions.d.ts +107 -0
  310. package/lib/services/custom-field/definitions.d.ts.map +1 -0
  311. package/lib/services/custom-field/definitions.js +61 -0
  312. package/lib/services/custom-field/definitions.js.map +1 -0
  313. package/lib/services/custom-field/endpoints.d.ts +13 -0
  314. package/lib/services/custom-field/endpoints.d.ts.map +1 -0
  315. package/lib/services/custom-field/endpoints.js +15 -0
  316. package/lib/services/custom-field/endpoints.js.map +1 -0
  317. package/lib/services/custom-field/index.d.ts +115 -0
  318. package/lib/services/custom-field/index.d.ts.map +1 -0
  319. package/lib/services/custom-field/index.js +144 -0
  320. package/lib/services/custom-field/index.js.map +1 -0
  321. package/lib/services/custom-field/module.d.ts +11 -0
  322. package/lib/services/custom-field/module.d.ts.map +1 -0
  323. package/lib/services/custom-field/module.js +15 -0
  324. package/lib/services/custom-field/module.js.map +1 -0
  325. package/lib/services/custom-field/types.d.ts +51 -0
  326. package/lib/services/custom-field/types.d.ts.map +1 -0
  327. package/lib/services/custom-field/types.js +10 -0
  328. package/lib/services/custom-field/types.js.map +1 -0
  329. package/lib/services/customer-account/customer-account.service.d.ts +387 -0
  330. package/lib/services/customer-account/customer-account.service.d.ts.map +1 -0
  331. package/lib/services/customer-account/customer-account.service.js +579 -0
  332. package/lib/services/customer-account/customer-account.service.js.map +1 -0
  333. package/lib/services/customer-account/definitions.d.ts +164 -0
  334. package/lib/services/customer-account/definitions.d.ts.map +1 -0
  335. package/lib/services/customer-account/definitions.js +3 -0
  336. package/lib/services/customer-account/definitions.js.map +1 -0
  337. package/lib/services/customer-account/endpoints.d.ts +25 -0
  338. package/lib/services/customer-account/endpoints.d.ts.map +1 -0
  339. package/lib/services/customer-account/endpoints.js +33 -0
  340. package/lib/services/customer-account/endpoints.js.map +1 -0
  341. package/lib/services/customer-account/index.d.ts +656 -0
  342. package/lib/services/customer-account/index.d.ts.map +1 -0
  343. package/lib/services/customer-account/index.js +929 -0
  344. package/lib/services/customer-account/index.js.map +1 -0
  345. package/lib/services/customer-account/module.d.ts +11 -0
  346. package/lib/services/customer-account/module.d.ts.map +1 -0
  347. package/lib/services/customer-account/module.js +15 -0
  348. package/lib/services/customer-account/module.js.map +1 -0
  349. package/lib/services/customer-account/types.d.ts +253 -0
  350. package/lib/services/customer-account/types.d.ts.map +1 -0
  351. package/lib/services/customer-account/types.js +10 -0
  352. package/lib/services/customer-account/types.js.map +1 -0
  353. package/lib/services/customer-user/customer-user.service.d.ts +280 -0
  354. package/lib/services/customer-user/customer-user.service.d.ts.map +1 -0
  355. package/lib/services/customer-user/customer-user.service.js +402 -0
  356. package/lib/services/customer-user/customer-user.service.js.map +1 -0
  357. package/lib/services/customer-user/definitions.d.ts +84 -0
  358. package/lib/services/customer-user/definitions.d.ts.map +1 -0
  359. package/lib/services/customer-user/definitions.js +3 -0
  360. package/lib/services/customer-user/definitions.js.map +1 -0
  361. package/lib/services/customer-user/endpoints.d.ts +19 -0
  362. package/lib/services/customer-user/endpoints.d.ts.map +1 -0
  363. package/lib/services/customer-user/endpoints.js +21 -0
  364. package/lib/services/customer-user/endpoints.js.map +1 -0
  365. package/lib/services/customer-user/index.d.ts +394 -0
  366. package/lib/services/customer-user/index.d.ts.map +1 -0
  367. package/lib/services/customer-user/index.js +528 -0
  368. package/lib/services/customer-user/index.js.map +1 -0
  369. package/lib/services/customer-user/module.d.ts +11 -0
  370. package/lib/services/customer-user/module.d.ts.map +1 -0
  371. package/lib/services/customer-user/module.js +15 -0
  372. package/lib/services/customer-user/module.js.map +1 -0
  373. package/lib/services/customer-user/types.d.ts +118 -0
  374. package/lib/services/customer-user/types.d.ts.map +1 -0
  375. package/lib/services/customer-user/types.js +10 -0
  376. package/lib/services/customer-user/types.js.map +1 -0
  377. package/lib/services/factory.d.ts +104 -0
  378. package/lib/services/factory.d.ts.map +1 -0
  379. package/lib/services/factory.js +89 -0
  380. package/lib/services/factory.js.map +1 -0
  381. package/lib/services/incident/definitions.d.ts +85 -0
  382. package/lib/services/incident/definitions.d.ts.map +1 -0
  383. package/lib/services/incident/definitions.js +3 -0
  384. package/lib/services/incident/definitions.js.map +1 -0
  385. package/lib/services/incident/endpoints.d.ts +17 -0
  386. package/lib/services/incident/endpoints.d.ts.map +1 -0
  387. package/lib/services/incident/endpoints.js +19 -0
  388. package/lib/services/incident/endpoints.js.map +1 -0
  389. package/lib/services/incident/incident.service.d.ts +24 -0
  390. package/lib/services/incident/incident.service.d.ts.map +1 -0
  391. package/lib/services/incident/incident.service.js +141 -0
  392. package/lib/services/incident/incident.service.js.map +1 -0
  393. package/lib/services/incident/index.d.ts +270 -0
  394. package/lib/services/incident/index.d.ts.map +1 -0
  395. package/lib/services/incident/index.js +389 -0
  396. package/lib/services/incident/index.js.map +1 -0
  397. package/lib/services/incident/module.d.ts +11 -0
  398. package/lib/services/incident/module.d.ts.map +1 -0
  399. package/lib/services/incident/module.js +15 -0
  400. package/lib/services/incident/module.js.map +1 -0
  401. package/lib/services/incident/types.d.ts +116 -0
  402. package/lib/services/incident/types.d.ts.map +1 -0
  403. package/lib/services/incident/types.js +10 -0
  404. package/lib/services/incident/types.js.map +1 -0
  405. package/lib/services/logistic-order/definitions.d.ts +296 -0
  406. package/lib/services/logistic-order/definitions.d.ts.map +1 -0
  407. package/lib/services/logistic-order/definitions.js +3 -0
  408. package/lib/services/logistic-order/definitions.js.map +1 -0
  409. package/lib/services/logistic-order/endpoints.d.ts +44 -0
  410. package/lib/services/logistic-order/endpoints.d.ts.map +1 -0
  411. package/lib/services/logistic-order/endpoints.js +57 -0
  412. package/lib/services/logistic-order/endpoints.js.map +1 -0
  413. package/lib/services/logistic-order/index.d.ts +1338 -0
  414. package/lib/services/logistic-order/index.d.ts.map +1 -0
  415. package/lib/services/logistic-order/index.js +1776 -0
  416. package/lib/services/logistic-order/index.js.map +1 -0
  417. package/lib/services/logistic-order/logistic-order.service.d.ts +62 -0
  418. package/lib/services/logistic-order/logistic-order.service.d.ts.map +1 -0
  419. package/lib/services/logistic-order/logistic-order.service.js +499 -0
  420. package/lib/services/logistic-order/logistic-order.service.js.map +1 -0
  421. package/lib/services/logistic-order/module.d.ts +11 -0
  422. package/lib/services/logistic-order/module.d.ts.map +1 -0
  423. package/lib/services/logistic-order/module.js +15 -0
  424. package/lib/services/logistic-order/module.js.map +1 -0
  425. package/lib/services/logistic-order/types.d.ts +411 -0
  426. package/lib/services/logistic-order/types.d.ts.map +1 -0
  427. package/lib/services/logistic-order/types.js +10 -0
  428. package/lib/services/logistic-order/types.js.map +1 -0
  429. package/lib/services/module.d.ts +64 -0
  430. package/lib/services/module.d.ts.map +1 -0
  431. package/lib/services/module.js +147 -0
  432. package/lib/services/module.js.map +1 -0
  433. package/lib/services/navigation-category/definitions.d.ts +31 -0
  434. package/lib/services/navigation-category/definitions.d.ts.map +1 -0
  435. package/lib/services/navigation-category/definitions.js +3 -0
  436. package/lib/services/navigation-category/definitions.js.map +1 -0
  437. package/lib/services/navigation-category/endpoints.d.ts +15 -0
  438. package/lib/services/navigation-category/endpoints.d.ts.map +1 -0
  439. package/lib/services/navigation-category/endpoints.js +17 -0
  440. package/lib/services/navigation-category/endpoints.js.map +1 -0
  441. package/lib/services/navigation-category/index.d.ts +114 -0
  442. package/lib/services/navigation-category/index.d.ts.map +1 -0
  443. package/lib/services/navigation-category/index.js +160 -0
  444. package/lib/services/navigation-category/index.js.map +1 -0
  445. package/lib/services/navigation-category/module.d.ts +11 -0
  446. package/lib/services/navigation-category/module.d.ts.map +1 -0
  447. package/lib/services/navigation-category/module.js +15 -0
  448. package/lib/services/navigation-category/module.js.map +1 -0
  449. package/lib/services/navigation-category/navigation-category.service.d.ts +148 -0
  450. package/lib/services/navigation-category/navigation-category.service.d.ts.map +1 -0
  451. package/lib/services/navigation-category/navigation-category.service.js +191 -0
  452. package/lib/services/navigation-category/navigation-category.service.js.map +1 -0
  453. package/lib/services/navigation-category/types.d.ts +51 -0
  454. package/lib/services/navigation-category/types.d.ts.map +1 -0
  455. package/lib/services/navigation-category/types.js +10 -0
  456. package/lib/services/navigation-category/types.js.map +1 -0
  457. package/lib/services/offer-inventories/definitions.d.ts +73 -0
  458. package/lib/services/offer-inventories/definitions.d.ts.map +1 -0
  459. package/lib/services/offer-inventories/definitions.js +3 -0
  460. package/lib/services/offer-inventories/definitions.js.map +1 -0
  461. package/lib/services/offer-inventories/endpoints.d.ts +16 -0
  462. package/lib/services/offer-inventories/endpoints.d.ts.map +1 -0
  463. package/lib/services/offer-inventories/endpoints.js +18 -0
  464. package/lib/services/offer-inventories/endpoints.js.map +1 -0
  465. package/lib/services/offer-inventories/index.d.ts +120 -0
  466. package/lib/services/offer-inventories/index.d.ts.map +1 -0
  467. package/lib/services/offer-inventories/index.js +175 -0
  468. package/lib/services/offer-inventories/index.js.map +1 -0
  469. package/lib/services/offer-inventories/module.d.ts +11 -0
  470. package/lib/services/offer-inventories/module.d.ts.map +1 -0
  471. package/lib/services/offer-inventories/module.js +15 -0
  472. package/lib/services/offer-inventories/module.js.map +1 -0
  473. package/lib/services/offer-inventories/offer-inventories.service.d.ts +26 -0
  474. package/lib/services/offer-inventories/offer-inventories.service.d.ts.map +1 -0
  475. package/lib/services/offer-inventories/offer-inventories.service.js +80 -0
  476. package/lib/services/offer-inventories/offer-inventories.service.js.map +1 -0
  477. package/lib/services/offer-inventories/types.d.ts +85 -0
  478. package/lib/services/offer-inventories/types.d.ts.map +1 -0
  479. package/lib/services/offer-inventories/types.js +10 -0
  480. package/lib/services/offer-inventories/types.js.map +1 -0
  481. package/lib/services/offer-prices/__mocks__/offer-prices.mocks.d.ts +109 -0
  482. package/lib/services/offer-prices/__mocks__/offer-prices.mocks.d.ts.map +1 -0
  483. package/lib/services/offer-prices/__mocks__/offer-prices.mocks.js +201 -0
  484. package/lib/services/offer-prices/__mocks__/offer-prices.mocks.js.map +1 -0
  485. package/lib/services/offer-prices/definitions.d.ts +24 -0
  486. package/lib/services/offer-prices/definitions.d.ts.map +1 -0
  487. package/lib/services/offer-prices/definitions.js +3 -0
  488. package/lib/services/offer-prices/definitions.js.map +1 -0
  489. package/lib/services/offer-prices/endpoints.d.ts +12 -0
  490. package/lib/services/offer-prices/endpoints.d.ts.map +1 -0
  491. package/lib/services/offer-prices/endpoints.js +14 -0
  492. package/lib/services/offer-prices/endpoints.js.map +1 -0
  493. package/lib/services/offer-prices/index.d.ts +36 -0
  494. package/lib/services/offer-prices/index.d.ts.map +1 -0
  495. package/lib/services/offer-prices/index.js +53 -0
  496. package/lib/services/offer-prices/index.js.map +1 -0
  497. package/lib/services/offer-prices/module.d.ts +11 -0
  498. package/lib/services/offer-prices/module.d.ts.map +1 -0
  499. package/lib/services/offer-prices/module.js +15 -0
  500. package/lib/services/offer-prices/module.js.map +1 -0
  501. package/lib/services/offer-prices/offer-prices.service.d.ts +18 -0
  502. package/lib/services/offer-prices/offer-prices.service.d.ts.map +1 -0
  503. package/lib/services/offer-prices/offer-prices.service.js +36 -0
  504. package/lib/services/offer-prices/offer-prices.service.js.map +1 -0
  505. package/lib/services/offer-prices/types.d.ts +33 -0
  506. package/lib/services/offer-prices/types.d.ts.map +1 -0
  507. package/lib/services/offer-prices/types.js +10 -0
  508. package/lib/services/offer-prices/types.js.map +1 -0
  509. package/lib/services/operation/definitions.d.ts +280 -0
  510. package/lib/services/operation/definitions.d.ts.map +1 -0
  511. package/lib/services/operation/definitions.js +18 -0
  512. package/lib/services/operation/definitions.js.map +1 -0
  513. package/lib/services/operation/endpoints.d.ts +18 -0
  514. package/lib/services/operation/endpoints.d.ts.map +1 -0
  515. package/lib/services/operation/endpoints.js +22 -0
  516. package/lib/services/operation/endpoints.js.map +1 -0
  517. package/lib/services/operation/index.d.ts +520 -0
  518. package/lib/services/operation/index.d.ts.map +1 -0
  519. package/lib/services/operation/index.js +704 -0
  520. package/lib/services/operation/index.js.map +1 -0
  521. package/lib/services/operation/module.d.ts +11 -0
  522. package/lib/services/operation/module.d.ts.map +1 -0
  523. package/lib/services/operation/module.js +15 -0
  524. package/lib/services/operation/module.js.map +1 -0
  525. package/lib/services/operation/operation.service.d.ts +32 -0
  526. package/lib/services/operation/operation.service.d.ts.map +1 -0
  527. package/lib/services/operation/operation.service.js +206 -0
  528. package/lib/services/operation/operation.service.js.map +1 -0
  529. package/lib/services/operation/types.d.ts +174 -0
  530. package/lib/services/operation/types.d.ts.map +1 -0
  531. package/lib/services/operation/types.js +10 -0
  532. package/lib/services/operation/types.js.map +1 -0
  533. package/lib/services/payment/definitions.d.ts +79 -0
  534. package/lib/services/payment/definitions.d.ts.map +1 -0
  535. package/lib/services/payment/definitions.js +3 -0
  536. package/lib/services/payment/definitions.js.map +1 -0
  537. package/lib/services/payment/endpoints.d.ts +16 -0
  538. package/lib/services/payment/endpoints.d.ts.map +1 -0
  539. package/lib/services/payment/endpoints.js +18 -0
  540. package/lib/services/payment/endpoints.js.map +1 -0
  541. package/lib/services/payment/index.d.ts +150 -0
  542. package/lib/services/payment/index.d.ts.map +1 -0
  543. package/lib/services/payment/index.js +220 -0
  544. package/lib/services/payment/index.js.map +1 -0
  545. package/lib/services/payment/module.d.ts +11 -0
  546. package/lib/services/payment/module.d.ts.map +1 -0
  547. package/lib/services/payment/module.js +15 -0
  548. package/lib/services/payment/module.js.map +1 -0
  549. package/lib/services/payment/payment.service.d.ts +224 -0
  550. package/lib/services/payment/payment.service.d.ts.map +1 -0
  551. package/lib/services/payment/payment.service.js +288 -0
  552. package/lib/services/payment/payment.service.js.map +1 -0
  553. package/lib/services/payment/types.d.ts +93 -0
  554. package/lib/services/payment/types.d.ts.map +1 -0
  555. package/lib/services/payment/types.js +10 -0
  556. package/lib/services/payment/types.js.map +1 -0
  557. package/lib/services/product/definitions.d.ts +150 -0
  558. package/lib/services/product/definitions.d.ts.map +1 -0
  559. package/lib/services/product/definitions.js +9 -0
  560. package/lib/services/product/definitions.js.map +1 -0
  561. package/lib/services/product/endpoints.d.ts +40 -0
  562. package/lib/services/product/endpoints.d.ts.map +1 -0
  563. package/lib/services/product/endpoints.js +42 -0
  564. package/lib/services/product/endpoints.js.map +1 -0
  565. package/lib/services/product/index.d.ts +388 -0
  566. package/lib/services/product/index.d.ts.map +1 -0
  567. package/lib/services/product/index.js +564 -0
  568. package/lib/services/product/index.js.map +1 -0
  569. package/lib/services/product/module.d.ts +11 -0
  570. package/lib/services/product/module.d.ts.map +1 -0
  571. package/lib/services/product/module.js +17 -0
  572. package/lib/services/product/module.js.map +1 -0
  573. package/lib/services/product/product.service.d.ts +452 -0
  574. package/lib/services/product/product.service.d.ts.map +1 -0
  575. package/lib/services/product/product.service.js +624 -0
  576. package/lib/services/product/product.service.js.map +1 -0
  577. package/lib/services/product/types.d.ts +344 -0
  578. package/lib/services/product/types.d.ts.map +1 -0
  579. package/lib/services/product/types.js +10 -0
  580. package/lib/services/product/types.js.map +1 -0
  581. package/lib/services/product-variant/definitions.d.ts +172 -0
  582. package/lib/services/product-variant/definitions.d.ts.map +1 -0
  583. package/lib/services/product-variant/definitions.js +8 -0
  584. package/lib/services/product-variant/definitions.js.map +1 -0
  585. package/lib/services/product-variant/endpoints.d.ts +15 -0
  586. package/lib/services/product-variant/endpoints.d.ts.map +1 -0
  587. package/lib/services/product-variant/endpoints.js +17 -0
  588. package/lib/services/product-variant/endpoints.js.map +1 -0
  589. package/lib/services/product-variant/index.d.ts +123 -0
  590. package/lib/services/product-variant/index.d.ts.map +1 -0
  591. package/lib/services/product-variant/index.js +172 -0
  592. package/lib/services/product-variant/index.js.map +1 -0
  593. package/lib/services/product-variant/module.d.ts +11 -0
  594. package/lib/services/product-variant/module.d.ts.map +1 -0
  595. package/lib/services/product-variant/module.js +15 -0
  596. package/lib/services/product-variant/module.js.map +1 -0
  597. package/lib/services/product-variant/product-variant.service.d.ts +21 -0
  598. package/lib/services/product-variant/product-variant.service.d.ts.map +1 -0
  599. package/lib/services/product-variant/product-variant.service.js +69 -0
  600. package/lib/services/product-variant/product-variant.service.js.map +1 -0
  601. package/lib/services/product-variant/types.d.ts +73 -0
  602. package/lib/services/product-variant/types.d.ts.map +1 -0
  603. package/lib/services/product-variant/types.js +10 -0
  604. package/lib/services/product-variant/types.js.map +1 -0
  605. package/lib/services/quote/definitions.d.ts +102 -0
  606. package/lib/services/quote/definitions.d.ts.map +1 -0
  607. package/lib/services/quote/definitions.js +3 -0
  608. package/lib/services/quote/definitions.js.map +1 -0
  609. package/lib/services/quote/endpoints.d.ts +20 -0
  610. package/lib/services/quote/endpoints.d.ts.map +1 -0
  611. package/lib/services/quote/endpoints.js +24 -0
  612. package/lib/services/quote/endpoints.js.map +1 -0
  613. package/lib/services/quote/index.d.ts +378 -0
  614. package/lib/services/quote/index.d.ts.map +1 -0
  615. package/lib/services/quote/index.js +506 -0
  616. package/lib/services/quote/index.js.map +1 -0
  617. package/lib/services/quote/module.d.ts +11 -0
  618. package/lib/services/quote/module.d.ts.map +1 -0
  619. package/lib/services/quote/module.js +15 -0
  620. package/lib/services/quote/module.js.map +1 -0
  621. package/lib/services/quote/quote.service.d.ts +346 -0
  622. package/lib/services/quote/quote.service.d.ts.map +1 -0
  623. package/lib/services/quote/quote.service.js +479 -0
  624. package/lib/services/quote/quote.service.js.map +1 -0
  625. package/lib/services/quote/types.d.ts +160 -0
  626. package/lib/services/quote/types.d.ts.map +1 -0
  627. package/lib/services/quote/types.js +10 -0
  628. package/lib/services/quote/types.js.map +1 -0
  629. package/lib/services/supplier/__mocks__/supplier-mocks.d.ts +49 -0
  630. package/lib/services/supplier/__mocks__/supplier-mocks.d.ts.map +1 -0
  631. package/lib/services/supplier/__mocks__/supplier-mocks.js +168 -0
  632. package/lib/services/supplier/__mocks__/supplier-mocks.js.map +1 -0
  633. package/lib/services/supplier/definitions.d.ts +30 -0
  634. package/lib/services/supplier/definitions.d.ts.map +1 -0
  635. package/lib/services/supplier/definitions.js +3 -0
  636. package/lib/services/supplier/definitions.js.map +1 -0
  637. package/lib/services/supplier/endpoints.d.ts +14 -0
  638. package/lib/services/supplier/endpoints.d.ts.map +1 -0
  639. package/lib/services/supplier/endpoints.js +16 -0
  640. package/lib/services/supplier/endpoints.js.map +1 -0
  641. package/lib/services/supplier/index.d.ts +102 -0
  642. package/lib/services/supplier/index.d.ts.map +1 -0
  643. package/lib/services/supplier/index.js +146 -0
  644. package/lib/services/supplier/index.js.map +1 -0
  645. package/lib/services/supplier/module.d.ts +11 -0
  646. package/lib/services/supplier/module.d.ts.map +1 -0
  647. package/lib/services/supplier/module.js +15 -0
  648. package/lib/services/supplier/module.js.map +1 -0
  649. package/lib/services/supplier/supplier.service.d.ts +20 -0
  650. package/lib/services/supplier/supplier.service.d.ts.map +1 -0
  651. package/lib/services/supplier/supplier.service.js +63 -0
  652. package/lib/services/supplier/supplier.service.js.map +1 -0
  653. package/lib/services/supplier/types.d.ts +58 -0
  654. package/lib/services/supplier/types.d.ts.map +1 -0
  655. package/lib/services/supplier/types.js +10 -0
  656. package/lib/services/supplier/types.js.map +1 -0
  657. package/lib/services/types.d.ts +81 -0
  658. package/lib/services/types.d.ts.map +1 -0
  659. package/lib/services/types.js +10 -0
  660. package/lib/services/types.js.map +1 -0
  661. package/lib/settings/fetch-instance.d.ts +30 -0
  662. package/lib/settings/fetch-instance.d.ts.map +1 -0
  663. package/lib/settings/fetch-instance.js +195 -0
  664. package/lib/settings/fetch-instance.js.map +1 -0
  665. package/lib/settings/sdk-version.d.ts +3 -0
  666. package/lib/settings/sdk-version.d.ts.map +1 -0
  667. package/lib/settings/sdk-version.js +6 -0
  668. package/lib/settings/sdk-version.js.map +1 -0
  669. package/package.json +17 -3
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commercial-order.service.d.ts","sourceRoot":"","sources":["../../../src/services/commercial-order/commercial-order.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE7D,OAAO,KAAK,EACV,yBAAyB,EACzB,2BAA2B,EAC3B,2BAA2B,EAC3B,6BAA6B,EAC7B,wBAAwB,EACxB,2BAA2B,EAC3B,4BAA4B,EAC5B,8BAA8B,EAC9B,wBAAwB,EACxB,uBAAuB,EACvB,yBAAyB,EACzB,uBAAuB,EACvB,4BAA4B,EAC5B,2BAA2B,EAC3B,+BAA+B,EAC/B,wBAAwB,EACxB,2BAA2B,EAC3B,6BAA6B,EAC7B,gCAAgC,EAChC,gCAAgC,EAChC,iBAAiB,EACjB,2BAA2B,EAC3B,6BAA6B,EAC7B,6BAA6B,EAC7B,+BAA+B,EAC/B,0BAA0B,EAC1B,8BAA8B,EAC9B,8BAA8B,EAC9B,+BAA+B,EAC/B,kCAAkC,EAClC,kCAAkC,EAClC,2BAA2B,EAC5B,MAAM,SAAS,CAAC;AAEjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,qBAAa,sBAAuB,SAAQ,WAAW;IACrD,QAAQ,CAAC,WAAW,sBAAsB;IAE1C;;;;;;;;;;;;;;;;;;;;OAoBG;IACG,mBAAmB,CACvB,MAAM,EAAE,yBAAyB,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,2BAA2B,CAAC;IAuBvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkCG;IACG,qBAAqB,CACzB,MAAM,EAAE,2BAA2B,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,6BAA6B,CAAC;IAwBzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACG,qBAAqB,CACzB,MAAM,EAAE,2BAA2B,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,6BAA6B,CAAC;IAqBzC;;;;;;;;;;;;;;;;;;OAkBG;IACG,uBAAuB,CAC3B,MAAM,EAAE,6BAA6B,EACrC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,+BAA+B,CAAC;IAiB3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACG,kBAAkB,CACtB,MAAM,EAAE,wBAAwB,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,0BAA0B,CAAC;IAmBtC;;;;;;;;OAQG;IACG,qBAAqB,CACzB,MAAM,EAAE,2BAA2B,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,IAAI,CAAC;IAkBhB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACG,sBAAsB,CAC1B,MAAM,EAAE,4BAA4B,EACpC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,8BAA8B,CAAC;IAkB1C;;;;;;;;;;;;;OAaG;IACG,wBAAwB,CAC5B,MAAM,EAAE,8BAA8B,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,IAAI,CAAC;IAehB;;;;;;;;;;;;;;;;OAgBG;IACG,kBAAkB,CACtB,MAAM,EAAE,wBAAwB,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,IAAI,CAAC;IAehB;;;;;;;;OAQG;IACG,iBAAiB,CACrB,MAAM,EAAE,uBAAuB,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,IAAI,CAAC;IAchB;;;;;;;;;;;OAWG;IACG,mBAAmB,CACvB,MAAM,EAAE,yBAAyB,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,2BAA2B,CAAC;IAevC;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACG,iBAAiB,CACrB,MAAM,EAAE,uBAAuB,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,MAAM,CAAC;IAoBlB;;;;;;;;;OASG;IACG,sBAAsB,CAC1B,MAAM,EAAE,4BAA4B,EACpC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,8BAA8B,CAAC;IAqB1C;;;;;;;;OAQG;IACG,qBAAqB,CACzB,MAAM,EAAE,2BAA2B,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,IAAI,CAAC;IAehB;;;;;;;;OAQG;IACG,yBAAyB,CAC7B,MAAM,EAAE,+BAA+B,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,IAAI,CAAC;IAkBhB;;;;;;;;OAQG;IACG,kBAAkB,CACtB,MAAM,EAAE,wBAAwB,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,IAAI,CAAC;IAehB;;;;;;;;;OASG;IACG,qBAAqB,CACzB,MAAM,EAAE,2BAA2B,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,IAAI,CAAC;IAchB;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACG,uBAAuB,CAC3B,MAAM,EAAE,6BAA6B,EACrC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,+BAA+B,CAAC;IAwB3C;;;;;;;;;OASG;IACG,0BAA0B,CAC9B,MAAM,EAAE,gCAAgC,EACxC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,kCAAkC,CAAC;IAqB9C;;;;;;;;;OASG;IACG,0BAA0B,CAC9B,MAAM,EAAE,gCAAgC,EACxC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,kCAAkC,CAAC;IAe9C;;;;;;;;;;;;;;;;;OAiBG;IACG,WAAW,CACf,MAAM,EAAE,iBAAiB,EACzB,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAYnC"}
@@ -0,0 +1,690 @@
1
+ "use strict";
2
+ /**
3
+ * # Commercial Order Service
4
+ *
5
+ * Complete order management for B2B commerce workflows.
6
+ *
7
+ * ## Features
8
+ * - Order creation and lifecycle management
9
+ * - Payment processing and card registration
10
+ * - Shipping and billing configuration
11
+ * - Order line management
12
+ * - Punchout/OCI integration
13
+ *
14
+ * @module services/commercial-order
15
+ * @since 2.17.0
16
+ */
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.CommercialOrderService = void 0;
19
+ const base_service_1 = require("../base.service");
20
+ const endpoints_1 = require("./endpoints");
21
+ /**
22
+ * Service for commercial order management.
23
+ *
24
+ * Handles the complete order lifecycle from creation to fulfillment:
25
+ * - Order creation from carts or quotes
26
+ * - Payment processing
27
+ * - Shipping and billing configuration
28
+ * - Order status management
29
+ *
30
+ * @example
31
+ * ```typescript
32
+ * import { createDjustClient } from '@djust-b2b/djust-front-sdk';
33
+ *
34
+ * const client = createDjustClient({ baseUrl, clientId, apiKey });
35
+ *
36
+ * // Get orders
37
+ * const { content: orders } = await client.commercialOrder.getCommercialOrdersV2({
38
+ * locale: 'en-US',
39
+ * page: 0,
40
+ * size: 10,
41
+ * });
42
+ *
43
+ * // Get single order details
44
+ * const order = await client.commercialOrder.getCommercialOrder({
45
+ * orderId: 'ORD-12345',
46
+ * locale: 'en-US',
47
+ * });
48
+ * ```
49
+ */
50
+ class CommercialOrderService extends base_service_1.BaseService {
51
+ constructor() {
52
+ super(...arguments);
53
+ this.serviceName = "commercial-order";
54
+ }
55
+ /**
56
+ * Get paginated list of commercial orders (v1).
57
+ *
58
+ * **Endpoint**: `GET /v1/shop/commercial-orders [ORD-100]`
59
+ *
60
+ * | Parameter | Type | Required | Description |
61
+ * |----------------------|------------|----------|--------------------------------|
62
+ * | `locale` | `string` | Yes | Locale for translations |
63
+ * | `page` | `number` | No | Page number (0-based) |
64
+ * | `size` | `number` | No | Items per page |
65
+ * | `sort` | `string` | No | Sort criteria |
66
+ * | `connectedUserOnly` | `boolean` | No | Filter to current user's orders|
67
+ * | `customerAccountIds` | `string[]` | No | Filter by customer accounts |
68
+ * | `sourceTypes` | `string[]` | No | Filter by order source |
69
+ * | `isValidated` | `boolean` | No | Filter by validation status |
70
+ *
71
+ * @param params - Query parameters
72
+ * @param context - Optional SSR request context
73
+ * @throws {ValidationError} If locale is missing
74
+ * @returns Paginated order list
75
+ */
76
+ async getCommercialOrders(params, context) {
77
+ this.required(params, ["locale"]);
78
+ return this.request({
79
+ method: "GET",
80
+ path: endpoints_1.CommercialOrderEndpoints.ORDERS_V1,
81
+ params: this.buildParams({
82
+ locale: params.locale,
83
+ nbPreviewLines: params.nbPreviewLines,
84
+ page: params.page,
85
+ size: params.size,
86
+ sort: params.sort,
87
+ connectedUserOnly: params.connectedUserOnly,
88
+ customerAccountIds: params.customerAccountIds,
89
+ sourceTypes: params.sourceTypes,
90
+ isValidated: params.isValidated,
91
+ }),
92
+ }, context);
93
+ }
94
+ /**
95
+ * Get paginated list of commercial orders (v2).
96
+ *
97
+ * Enhanced version with additional filtering capabilities.
98
+ *
99
+ * **Endpoint**: `GET /v2/shop/commercial-orders [ORD-101]`
100
+ *
101
+ * | Parameter | Type | Required | Description |
102
+ * |----------------------|------------|----------|--------------------------------|
103
+ * | `locale` | `string` | Yes | Locale for translations |
104
+ * | `page` | `number` | No | Page number (0-based) |
105
+ * | `size` | `number` | No | Items per page |
106
+ * | `sort` | `string` | No | Sort criteria |
107
+ * | `sourceIds` | `string[]` | No | Filter by source IDs |
108
+ * | `sourceTypes` | `string[]` | No | Filter by source types |
109
+ *
110
+ * @example
111
+ * ```typescript
112
+ * const { content: orders, totalElements } = await client.commercialOrder.getCommercialOrdersV2({
113
+ * locale: 'fr-FR',
114
+ * page: 0,
115
+ * size: 20,
116
+ * sort: 'createdAt,desc',
117
+ * });
118
+ *
119
+ * orders.forEach(order => {
120
+ * console.log(`${order.businessId}: ${order.status} - ${order.total}`);
121
+ * });
122
+ * ```
123
+ *
124
+ * @param params - Query parameters
125
+ * @param context - Optional SSR request context
126
+ * @throws {ValidationError} If locale is missing
127
+ * @returns Paginated order list
128
+ */
129
+ async getCommercialOrdersV2(params, context) {
130
+ this.required(params, ["locale"]);
131
+ return this.request({
132
+ method: "GET",
133
+ path: endpoints_1.CommercialOrderEndpoints.ORDERS_V2,
134
+ params: this.buildParams({
135
+ page: params.page,
136
+ size: params.size,
137
+ sort: params.sort,
138
+ locale: params.locale,
139
+ connectedUserOnly: params.connectedUserOnly,
140
+ customerAccountIds: params.customerAccountIds,
141
+ sourceTypes: params.sourceTypes,
142
+ sourceIds: params.sourceIds,
143
+ isValidated: params.isValidated,
144
+ nbPreviewLines: params.nbPreviewLines,
145
+ }),
146
+ }, context);
147
+ }
148
+ /**
149
+ * Create a new commercial order from a cart or quote.
150
+ *
151
+ * **Endpoint**: `POST /v1/shop/commercial-orders [ORD-102]`
152
+ *
153
+ * | Parameter | Type | Required | Description |
154
+ * |----------------|----------|----------|--------------------------------|
155
+ * | `locale` | `string` | Yes | Locale for the order |
156
+ * | `origin` | `string` | Yes | Origin type (CART, QUOTE) |
157
+ * | `originId` | `string` | Yes | ID of the cart or quote |
158
+ * | `channel` | `string` | No | Sales channel |
159
+ * | `customFields` | `object` | No | Custom field values |
160
+ * | `paymentInfo` | `object` | No | Payment configuration |
161
+ *
162
+ * @example
163
+ * ```typescript
164
+ * const order = await client.commercialOrder.createCommercialOrder({
165
+ * locale: 'en-US',
166
+ * origin: 'CART',
167
+ * originId: 'cart-123',
168
+ * paymentInfo: { method: 'INVOICE' },
169
+ * });
170
+ *
171
+ * console.log(`Order created: ${order.businessId}`);
172
+ * ```
173
+ *
174
+ * @param params - Order creation parameters
175
+ * @param context - Optional SSR request context
176
+ * @throws {ValidationError} If required parameters are missing
177
+ * @returns Created order details
178
+ */
179
+ async createCommercialOrder(params, context) {
180
+ this.required(params, ["locale", "origin", "originId"]);
181
+ return this.request({
182
+ method: "POST",
183
+ path: endpoints_1.CommercialOrderEndpoints.ORDERS_V1,
184
+ params: this.buildParams({ nbPreviewLines: params.nbPreviewLines }),
185
+ body: {
186
+ channel: params.channel,
187
+ customFields: params.customFields,
188
+ locale: params.locale,
189
+ origin: params.origin,
190
+ originId: params.originId,
191
+ paymentInfo: params.paymentInfo,
192
+ },
193
+ }, context);
194
+ }
195
+ /**
196
+ * Create a commercial order (v2).
197
+ *
198
+ * Enhanced creation endpoint with more flexibility.
199
+ *
200
+ * **Endpoint**: `POST /v2/shop/commercial-orders [ORD-103]`
201
+ *
202
+ * | Parameter | Type | Required | Description |
203
+ * |---------------------|----------|----------|--------------------------------|
204
+ * | `sourceType` | `string` | No | Source type (CART, QUOTE) |
205
+ * | `sourceId` | `string` | No | Source ID |
206
+ * | `customFields` | `object` | No | Custom field values |
207
+ * | `customFieldIdType` | `string` | No | ID type for custom fields |
208
+ * | `isFull` | `boolean`| No | Include full order details |
209
+ *
210
+ * @param params - Order creation parameters
211
+ * @param context - Optional SSR request context
212
+ * @returns Created order details
213
+ */
214
+ async createCommercialOrderV2(params, context) {
215
+ return this.request({
216
+ method: "POST",
217
+ path: endpoints_1.CommercialOrderEndpoints.ORDERS_V2,
218
+ body: {
219
+ customFieldIdType: params.customFieldIdType,
220
+ customFields: params.customFields,
221
+ isFull: params.isFull,
222
+ sourceId: params.sourceId,
223
+ sourceType: params.sourceType,
224
+ },
225
+ }, context);
226
+ }
227
+ /**
228
+ * Get detailed information about a specific order.
229
+ *
230
+ * **Endpoint**: `GET /v1/shop/commercial-orders/{orderId} [ORD-104]`
231
+ *
232
+ * | Parameter | Type | Required | Description |
233
+ * |------------|----------|----------|--------------------------------|
234
+ * | `orderId` | `string` | Yes | Order ID or business ID |
235
+ * | `locale` | `string` | Yes | Locale for translations |
236
+ * | `idType` | `string` | No | ID type (id, businessId) |
237
+ *
238
+ * @example
239
+ * ```typescript
240
+ * const order = await client.commercialOrder.getCommercialOrder({
241
+ * orderId: 'ORD-2024-001234',
242
+ * locale: 'en-US',
243
+ * idType: 'businessId',
244
+ * });
245
+ *
246
+ * console.log(`Order: ${order.businessId}`);
247
+ * console.log(`Status: ${order.status}`);
248
+ * console.log(`Total: ${order.totalAmount} ${order.currency}`);
249
+ * ```
250
+ *
251
+ * @param params - Order identification parameters
252
+ * @param context - Optional SSR request context
253
+ * @throws {ValidationError} If required parameters are missing
254
+ * @throws {NotFoundError} If order doesn't exist
255
+ * @returns Full order details
256
+ */
257
+ async getCommercialOrder(params, context) {
258
+ this.required(params, ["orderId", "locale"]);
259
+ return this.request({
260
+ method: "GET",
261
+ path: this.buildPath(endpoints_1.CommercialOrderEndpoints.ORDER_V1, {
262
+ orderId: params.orderId,
263
+ }),
264
+ params: this.buildParams({
265
+ locale: params.locale,
266
+ idType: params.idType,
267
+ nbPreviewLines: params.nbPreviewLines,
268
+ }),
269
+ }, context);
270
+ }
271
+ /**
272
+ * Update commercial order custom fields.
273
+ *
274
+ * **Endpoint**: `PUT /v2/shop/commercial-orders/{orderId} [ORD-105]`
275
+ *
276
+ * @param params - Update parameters
277
+ * @param context - Optional SSR request context
278
+ * @throws {ValidationError} If commercialOrderId is missing
279
+ */
280
+ async updateCommercialOrder(params, context) {
281
+ this.required(params, ["commercialOrderId"]);
282
+ await this.request({
283
+ method: "PUT",
284
+ path: this.buildPath(endpoints_1.CommercialOrderEndpoints.ORDER_V2, {
285
+ commercialOrderId: params.commercialOrderId,
286
+ }),
287
+ body: {
288
+ customFieldIdType: params.customFieldIdType,
289
+ customFields: params.customFields,
290
+ },
291
+ }, context);
292
+ }
293
+ /**
294
+ * Create a card registration for payment.
295
+ *
296
+ * Initiates the card registration process with the payment provider.
297
+ *
298
+ * **Endpoint**: `POST /v1/shop/commercial-orders/{orderId}/card-registration [PAY-100]`
299
+ *
300
+ * | Parameter | Type | Required | Description |
301
+ * |-------------------|----------|----------|--------------------------|
302
+ * | `orderId` | `string` | Yes | Order ID |
303
+ * | `paymentProvider` | `string` | Yes | Provider (MANGOPAY, etc) |
304
+ * | `currency` | `string` | Yes | Currency code |
305
+ *
306
+ * @example
307
+ * ```typescript
308
+ * const registration = await client.commercialOrder.createCardRegistration({
309
+ * orderId: 'order-123',
310
+ * paymentProvider: 'MANGOPAY',
311
+ * currency: 'EUR',
312
+ * });
313
+ *
314
+ * // Use registration data to tokenize card
315
+ * console.log(registration.cardRegistrationUrl);
316
+ * ```
317
+ *
318
+ * @param params - Card registration parameters
319
+ * @param context - Optional SSR request context
320
+ * @throws {ValidationError} If required parameters are missing
321
+ * @returns Card registration details
322
+ */
323
+ async createCardRegistration(params, context) {
324
+ this.required(params, ["orderId", "paymentProvider", "currency"]);
325
+ return this.request({
326
+ method: "POST",
327
+ path: this.buildPath(endpoints_1.CommercialOrderEndpoints.CARD_REGISTRATION, {
328
+ orderId: params.orderId,
329
+ }),
330
+ body: {
331
+ paymentProvider: params.paymentProvider,
332
+ currency: params.currency,
333
+ },
334
+ }, context);
335
+ }
336
+ /**
337
+ * Update billing information for an order.
338
+ *
339
+ * **Endpoint**: `PUT /v1/shop/commercial-orders/{orderId}/billing-information [ORD-106]`
340
+ *
341
+ * | Parameter | Type | Required | Description |
342
+ * |--------------------|----------|----------|--------------------------|
343
+ * | `orderId` | `string` | Yes | Order ID |
344
+ * | `billingAddressId` | `string` | Yes | Billing address ID |
345
+ *
346
+ * @param params - Billing update parameters
347
+ * @param context - Optional SSR request context
348
+ * @throws {ValidationError} If required parameters are missing
349
+ */
350
+ async updateBillingInformation(params, context) {
351
+ this.required(params, ["orderId", "billingAddressId"]);
352
+ await this.request({
353
+ method: "PUT",
354
+ path: this.buildPath(endpoints_1.CommercialOrderEndpoints.BILLING_INFORMATION, {
355
+ orderId: params.orderId,
356
+ }),
357
+ body: { billingAddressId: params.billingAddressId },
358
+ }, context);
359
+ }
360
+ /**
361
+ * Set order status to CREATED (finalize order).
362
+ *
363
+ * **Endpoint**: `PUT /v1/shop/commercial-orders/{orderId}/set-status-as-created [ORD-107]`
364
+ *
365
+ * @example
366
+ * ```typescript
367
+ * await client.commercialOrder.setStatusAsCreated({
368
+ * orderId: 'order-123',
369
+ * paymentInfo: { method: 'CARD', transactionId: 'txn-456' },
370
+ * });
371
+ * ```
372
+ *
373
+ * @param params - Status update parameters
374
+ * @param context - Optional SSR request context
375
+ * @throws {ValidationError} If orderId is missing
376
+ */
377
+ async setStatusAsCreated(params, context) {
378
+ this.required(params, ["orderId"]);
379
+ await this.request({
380
+ method: "PUT",
381
+ path: this.buildPath(endpoints_1.CommercialOrderEndpoints.STATUS_CREATED, {
382
+ orderId: params.orderId,
383
+ }),
384
+ body: params.paymentInfo ?? null,
385
+ }, context);
386
+ }
387
+ /**
388
+ * Set order status to ON_HOLD.
389
+ *
390
+ * **Endpoint**: `PUT /v1/shop/commercial-orders/{orderId}/set-status-as-hold [ORD-108]`
391
+ *
392
+ * @param params - Order identification
393
+ * @param context - Optional SSR request context
394
+ * @throws {ValidationError} If orderId is missing
395
+ */
396
+ async setStatusAsOnHold(params, context) {
397
+ this.required(params, ["orderId"]);
398
+ await this.request({
399
+ method: "PUT",
400
+ path: this.buildPath(endpoints_1.CommercialOrderEndpoints.STATUS_HOLD, {
401
+ orderId: params.orderId,
402
+ }),
403
+ }, context);
404
+ }
405
+ /**
406
+ * Synchronize order with external systems (ORDER-223).
407
+ *
408
+ * **Endpoint**: `PUT /v1/shop/commercial-orders/{orderId}/sync`
409
+ *
410
+ * Returns the set of synchronisation warnings. Empty array if no warning.
411
+ *
412
+ * @param params - Order identification (REFERENCE only; business/external IDs not supported)
413
+ * @param context - Optional SSR request context
414
+ * @returns Synchronisation warnings; empty array if none
415
+ * @throws {ValidationError} If orderId is missing
416
+ */
417
+ async syncCommercialOrder(params, context) {
418
+ this.required(params, ["orderId"]);
419
+ return this.request({
420
+ method: "PUT",
421
+ path: this.buildPath(endpoints_1.CommercialOrderEndpoints.SYNC, {
422
+ orderId: params.orderId,
423
+ }),
424
+ body: {},
425
+ }, context);
426
+ }
427
+ /**
428
+ * Get payment page URL for online payment.
429
+ *
430
+ * **Endpoint**: `GET /v1/shop/commercial-orders/{orderId}/payment-page [PAY-101]`
431
+ *
432
+ * | Parameter | Type | Required | Description |
433
+ * |-------------------|----------|----------|--------------------------|
434
+ * | `orderId` | `string` | Yes | Order ID |
435
+ * | `paymentOption` | `string` | Yes | Payment option selected |
436
+ * | `paymentProvider` | `string` | No | Specific provider |
437
+ *
438
+ * @example
439
+ * ```typescript
440
+ * const paymentUrl = await client.commercialOrder.getPaymentPageUrl({
441
+ * orderId: 'order-123',
442
+ * paymentOption: 'CARD',
443
+ * });
444
+ *
445
+ * // Redirect user to payment page
446
+ * window.location.href = paymentUrl;
447
+ * ```
448
+ *
449
+ * @param params - Payment page parameters
450
+ * @param context - Optional SSR request context
451
+ * @throws {ValidationError} If required parameters are missing
452
+ * @returns Payment page URL
453
+ */
454
+ async getPaymentPageUrl(params, context) {
455
+ this.required(params, ["orderId", "paymentOption"]);
456
+ const response = await this.request({
457
+ method: "GET",
458
+ path: this.buildPath(endpoints_1.CommercialOrderEndpoints.PAYMENT_PAGE, {
459
+ orderId: params.orderId,
460
+ }),
461
+ params: this.buildParams({
462
+ paymentOption: params.paymentOption,
463
+ paymentProvider: params.paymentProvider,
464
+ }),
465
+ }, context);
466
+ return response.url;
467
+ }
468
+ /**
469
+ * Create a payment preauthorization.
470
+ *
471
+ * **Endpoint**: `POST /v1/shop/commercial-orders/{orderId}/preauthorization [PAY-102]`
472
+ *
473
+ * @param params - Preauthorization parameters
474
+ * @param context - Optional SSR request context
475
+ * @throws {ValidationError} If required parameters are missing
476
+ * @returns Preauthorization result
477
+ */
478
+ async createPreauthorization(params, context) {
479
+ this.required(params, ["orderId", "paymentProvider", "paymentCardInfo"]);
480
+ return this.request({
481
+ method: "POST",
482
+ path: this.buildPath(endpoints_1.CommercialOrderEndpoints.PREAUTHORIZATION, {
483
+ orderId: params.orderId,
484
+ }),
485
+ body: {
486
+ paymentProvider: params.paymentProvider,
487
+ authorId: params.authorId,
488
+ browserInfo: params.browserInfo,
489
+ ipAddress: params.ipAddress,
490
+ paymentCardInfo: params.paymentCardInfo,
491
+ },
492
+ }, context);
493
+ }
494
+ /**
495
+ * Update shipping address for an order.
496
+ *
497
+ * **Endpoint**: `PUT /v1/shop/commercial-orders/{orderId}/shipping-address [ORD-110]`
498
+ *
499
+ * @param params - Shipping address update parameters
500
+ * @param context - Optional SSR request context
501
+ * @throws {ValidationError} If required parameters are missing
502
+ */
503
+ async updateShippingAddress(params, context) {
504
+ this.required(params, ["orderId", "shippingAddressId"]);
505
+ await this.request({
506
+ method: "PUT",
507
+ path: this.buildPath(endpoints_1.CommercialOrderEndpoints.SHIPPING_ADDRESS, {
508
+ orderId: params.orderId,
509
+ }),
510
+ body: { shippingAddressId: params.shippingAddressId },
511
+ }, context);
512
+ }
513
+ /**
514
+ * Update complete shipping information.
515
+ *
516
+ * **Endpoint**: `PUT /v1/shop/commercial-orders/{orderId}/shipping-information [ORD-111]`
517
+ *
518
+ * @param params - Shipping information parameters
519
+ * @param context - Optional SSR request context
520
+ * @throws {ValidationError} If required parameters are missing
521
+ */
522
+ async updateShippingInformation(params, context) {
523
+ this.required(params, ["orderId", "shippingAddressId", "shippingType"]);
524
+ await this.request({
525
+ method: "PUT",
526
+ path: this.buildPath(endpoints_1.CommercialOrderEndpoints.SHIPPING_INFORMATION, {
527
+ orderId: params.orderId,
528
+ }),
529
+ body: {
530
+ shippingAddressId: params.shippingAddressId,
531
+ shippingType: params.shippingType,
532
+ },
533
+ }, context);
534
+ }
535
+ /**
536
+ * Update shipping type only.
537
+ *
538
+ * **Endpoint**: `PUT /v1/shop/commercial-orders/{orderId}/shipping-type [ORD-112]`
539
+ *
540
+ * @param params - Shipping type parameters
541
+ * @param context - Optional SSR request context
542
+ * @throws {ValidationError} If required parameters are missing
543
+ */
544
+ async updateShippingType(params, context) {
545
+ this.required(params, ["orderId", "shippingType"]);
546
+ await this.request({
547
+ method: "PUT",
548
+ path: this.buildPath(endpoints_1.CommercialOrderEndpoints.SHIPPING_TYPE, {
549
+ orderId: params.orderId,
550
+ }),
551
+ body: { shippingType: params.shippingType },
552
+ }, context);
553
+ }
554
+ /**
555
+ * Delete a commercial order.
556
+ *
557
+ * **Endpoint**: `DELETE /v2/shop/commercial-orders/{orderId} [ORD-113]`
558
+ *
559
+ * @param params - Order identification
560
+ * @param context - Optional SSR request context
561
+ * @throws {ValidationError} If commercialOrderId is missing
562
+ * @throws {NotFoundError} If order doesn't exist
563
+ */
564
+ async deleteCommercialOrder(params, context) {
565
+ this.required(params, ["commercialOrderId"]);
566
+ await this.request({
567
+ method: "DELETE",
568
+ path: this.buildPath(endpoints_1.CommercialOrderEndpoints.ORDER_V2, {
569
+ commercialOrderId: params.commercialOrderId,
570
+ }),
571
+ }, context);
572
+ }
573
+ /**
574
+ * Get order lines with pagination.
575
+ *
576
+ * **Endpoint**: `GET /v1/shop/commercial-orders/{orderId}/lines [ORD-114]`
577
+ *
578
+ * @example
579
+ * ```typescript
580
+ * const { content: lines } = await client.commercialOrder.getCommercialOrderLines({
581
+ * commercialOrderId: 'order-123',
582
+ * page: 0,
583
+ * size: 50,
584
+ * locale: 'en-US',
585
+ * });
586
+ *
587
+ * lines.forEach(line => {
588
+ * console.log(`${line.productName}: ${line.quantity} x ${line.unitPrice}`);
589
+ * });
590
+ * ```
591
+ *
592
+ * @param params - Query parameters
593
+ * @param context - Optional SSR request context
594
+ * @throws {ValidationError} If commercialOrderId is missing
595
+ * @returns Paginated order lines
596
+ */
597
+ async getCommercialOrderLines(params, context) {
598
+ this.required(params, ["commercialOrderId"]);
599
+ return this.request({
600
+ method: "GET",
601
+ path: this.buildPath(endpoints_1.CommercialOrderEndpoints.LINES_V1, {
602
+ commercialOrderId: params.commercialOrderId,
603
+ }),
604
+ params: this.buildParams({
605
+ page: params.page,
606
+ size: params.size,
607
+ sort: params.sort,
608
+ supplierIds: params.supplierIds,
609
+ productVariantIds: params.productVariantIds,
610
+ offerPriceIds: params.offerPriceIds,
611
+ idType: params.idType,
612
+ locale: params.locale,
613
+ }),
614
+ }, context);
615
+ }
616
+ /**
617
+ * Update order lines (quantities, custom fields).
618
+ *
619
+ * **Endpoint**: `PUT /v2/shop/commercial-orders/{orderId}/lines [ORD-115]`
620
+ *
621
+ * @param params - Update parameters
622
+ * @param context - Optional SSR request context
623
+ * @throws {ValidationError} If commercialOrderId is missing
624
+ * @returns Updated lines information
625
+ */
626
+ async updateCommercialOrderLines(params, context) {
627
+ this.required(params, ["commercialOrderId"]);
628
+ return this.request({
629
+ method: "PUT",
630
+ path: this.buildPath(endpoints_1.CommercialOrderEndpoints.LINES_V2, {
631
+ commercialOrderId: params.commercialOrderId,
632
+ }),
633
+ body: {
634
+ customFieldIdType: params.customFieldIdType,
635
+ lineIdType: params.lineIdType,
636
+ lineType: params.lineType,
637
+ updateOrderCommercialLines: params.updateOrderCommercialLines,
638
+ metadata: params.metadata,
639
+ },
640
+ }, context);
641
+ }
642
+ /**
643
+ * Delete order lines.
644
+ *
645
+ * **Endpoint**: `DELETE /v2/shop/commercial-orders/{orderId}/lines [ORD-116]`
646
+ *
647
+ * @param params - Deletion parameters
648
+ * @param context - Optional SSR request context
649
+ * @throws {ValidationError} If commercialOrderId is missing
650
+ * @returns Deletion result
651
+ */
652
+ async deleteCommercialOrderLines(params, context) {
653
+ this.required(params, ["commercialOrderId"]);
654
+ return this.request({
655
+ method: "DELETE",
656
+ path: this.buildPath(endpoints_1.CommercialOrderEndpoints.LINES_V2, {
657
+ commercialOrderId: params.commercialOrderId,
658
+ }),
659
+ body: params.body || [],
660
+ }, context);
661
+ }
662
+ /**
663
+ * Get OCI punchout data for procurement integration.
664
+ *
665
+ * Returns order data in OCI format for SAP Ariba, Coupa, etc.
666
+ *
667
+ * **Endpoint**: `GET /cxml/punchout/oci/{configKey}/commercial-orders/{orderId} [PUNCHOUT-100]`
668
+ *
669
+ * | Parameter | Type | Required | Description |
670
+ * |---------------------------|----------|----------|--------------------------|
671
+ * | `commercialOrderId` | `string` | Yes | Order ID |
672
+ * | `tenantConfigurationKey` | `string` | Yes | OCI configuration key |
673
+ * | `locale` | `string` | No | Locale for data |
674
+ *
675
+ * @param params - Punchout parameters
676
+ * @param context - Optional SSR request context
677
+ * @throws {ValidationError} If required parameters are missing
678
+ * @returns OCI field mapping for the order
679
+ */
680
+ async punchoutOci(params, context) {
681
+ this.required(params, ["commercialOrderId", "tenantConfigurationKey"]);
682
+ return this.request({
683
+ method: "GET",
684
+ path: `/cxml/punchout/oci/${params.tenantConfigurationKey}/commercial-orders/${params.commercialOrderId}`,
685
+ params: this.buildParams({ locale: params.locale }),
686
+ }, context);
687
+ }
688
+ }
689
+ exports.CommercialOrderService = CommercialOrderService;
690
+ //# sourceMappingURL=commercial-order.service.js.map