@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,123 @@
1
+ import { GetProductVariantAttributesParameters, GetProductVariantAttributesResponse, GetProductVariantParameters, GetProductVariantResponse, GetProductVariantSuppliersParameters, GetProductVariantSuppliersResponse, GetProductVariantsListParameters, GetProductVariantsListResponse } from "./definitions";
2
+ /**
3
+ * 📄 Fetches a paginated list of product variants.
4
+ *
5
+ * This function retrieves a list of product variants associated with a specific product SKU.
6
+ * Pagination and sorting options are available to refine the results.
7
+ *
8
+ * 🛠 **Endpoint**: `GET /v1/shop/product-variants`
9
+ *
10
+ * | Parameter | Type | Required | Description |
11
+ * |-----------------|--------------|----------|---------------------------------------------------------------|
12
+ * | `productSku` | `string` | ✅ | The SKU of the product to fetch variants for. |
13
+ * | `locale` | `string` | ❌ | The locale for the product variants. |
14
+ * | `pageable.page` | `number` | ✅ | The page number to fetch (0-based index). |
15
+ * | `pageable.size` | `number` | ✅ | The number of items per page. |
16
+ * | `pageable.sort` | `string[]` | ❌ | Sorting criteria (e.g., `["name,asc"]`). |
17
+ *
18
+ * 📤 **Returns**:
19
+ * A `Promise` resolving to a `GetProductVariantsListResponse` object, containing the paginated list of product variants with metadata.
20
+ *
21
+ * 🛠 **Example usage**:
22
+ * ```typescript
23
+ * const variants = await getProductVariantsList({
24
+ * productSku: 'product123',
25
+ * locale: 'en-US',
26
+ * pageable: { page: 0, size: 10, sort: ['name,asc'] },
27
+ * });
28
+ * console.log(variants);
29
+ * ```
30
+ *
31
+ * @param {GetProductVariantsListParameters} params - The parameters for fetching product variants.
32
+ * @throws {Error} If `productSku` is missing.
33
+ * @returns {Promise<GetProductVariantsListResponse>} A promise resolving to the product variants response.
34
+ */
35
+ export declare function getProductVariantsList({ productSku, locale, pageable, }: GetProductVariantsListParameters): Promise<GetProductVariantsListResponse>;
36
+ /**
37
+ * 📄 Fetches suppliers of a specific product variant.
38
+ *
39
+ * This function retrieves a list of suppliers associated with a specific product variant ID.
40
+ *
41
+ * 🛠 **Endpoint**: `GET /v1/shop/product-variants/{productVariantId}/suppliers`
42
+ *
43
+ * | Parameter | Type | Required | Description |
44
+ * |---------------------|--------------|----------|-------------------------------------------------|
45
+ * | `productVariantId` | `string` | ✅ | The ID of the product variant to fetch suppliers for. |
46
+ *
47
+ * 📤 **Returns**:
48
+ * A `Promise` resolving to a `GetProductVariantSuppliersResponse` object, containing the list of suppliers for the product variant.
49
+ *
50
+ * 🛠 **Example usage**:
51
+ * ```typescript
52
+ * const suppliers = await getProductVariantSuppliers({
53
+ * productVariantId: 'variant123',
54
+ * });
55
+ * console.log(suppliers);
56
+ * ```
57
+ *
58
+ * @param {GetProductVariantSuppliersParameters} params - The parameters for fetching product variant suppliers.
59
+ * @throws {Error} If `productVariantId` is missing.
60
+ * @returns {Promise<GetProductVariantSuppliersResponse>} A promise resolving to the product variant suppliers response.
61
+ */
62
+ export declare function getProductVariantSuppliers({ productVariantId, }: GetProductVariantSuppliersParameters): Promise<GetProductVariantSuppliersResponse>;
63
+ /**
64
+ * 📄 Fetches attributes of a product variant.
65
+ *
66
+ * This function retrieves detailed attributes of a product variant identified by SKU, ID, or external ID.
67
+ *
68
+ * 🛠 **Endpoint**: `GET /v1/shop/products/{productIdentifier}/variant-attributes`
69
+ *
70
+ * | Parameter | Type | Required | Description |
71
+ * |---------------------|--------------|----------|---------------------------------------------------------------|
72
+ * | `productIdentifier` | `string` | ✅ | The unique identifier of the product variant (e.g., SKU, ID, external ID). |
73
+ * | `productIdType` | `string` | ✅ | The type of the identifier (`sku`, `id`, or `externalId`). |
74
+ * | `locale` | `string` | ❌ | The locale for localized data (e.g., `en-US`, `fr-FR`). Defaults to system locale. |
75
+ *
76
+ * 📤 **Returns**:
77
+ * A `Promise` resolving to a `GetProductVariantAttributesResponse` object, containing metadata such as **color**, **size**, or **material**.
78
+ *
79
+ * 🛠 **Example usage**:
80
+ * ```typescript
81
+ * const attributes = await getProductVariantAttributes({
82
+ * productIdentifier: 'sku123',
83
+ * productIdType: 'sku',
84
+ * locale: 'en-US',
85
+ * });
86
+ * console.log(attributes);
87
+ * ```
88
+ *
89
+ * @param {GetProductVariantAttributesParameters} params - The parameters for fetching product variant attributes.
90
+ * @throws {Error} If `productIdentifier` or `productIdType` is missing.
91
+ * @returns {Promise<GetProductVariantAttributesResponse>} A promise resolving to the product variant attributes response.
92
+ */
93
+ export declare function getProductVariantAttributes({ productIdentifier, productIdType, locale, }: GetProductVariantAttributesParameters): Promise<GetProductVariantAttributesResponse>;
94
+ /**
95
+ * 📄 Fetches details of a specific product variant.
96
+ *
97
+ * This function retrieves detailed information about a product variant identified by its ID.
98
+ *
99
+ * 🛠 **Endpoint**: `GET /v1/shop/product-variants/{productVariantId}`
100
+ *
101
+ * | Parameter | Type | Required | Description |
102
+ * |---------------------|--------------|----------|-------------------------------------------------|
103
+ * | `productVariantId` | `string` | ✅ | The ID of the product variant to fetch. |
104
+ * | `locale` | `string` | ❌ | The locale for localized data (e.g., `en-US`). |
105
+ *
106
+ * 📤 **Returns**:
107
+ * A `Promise` resolving to a `GetProductVariantResponse` object, containing the product variant details.
108
+ *
109
+ * 🛠 **Example usage**:
110
+ * ```typescript
111
+ * const variant = await getProductVariant({
112
+ * productVariantId: 'variant123',
113
+ * locale: 'fr-FR',
114
+ * });
115
+ * console.log(variant);
116
+ * ```
117
+ *
118
+ * @param {GetProductVariantParameters} params - The parameters for fetching the product variant.
119
+ * @throws {Error} If `productVariantId` is missing.
120
+ * @returns {Promise<GetProductVariantResponse>} A promise resolving to the product variant response.
121
+ */
122
+ export declare function getProductVariant({ productVariantId, locale, }: GetProductVariantParameters): Promise<GetProductVariantResponse>;
123
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/product-variant/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,qCAAqC,EACrC,mCAAmC,EACnC,2BAA2B,EAC3B,yBAAyB,EACzB,oCAAoC,EACpC,kCAAkC,EAClC,gCAAgC,EAChC,8BAA8B,EAC/B,MAAM,eAAe,CAAC;AAEvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAsB,sBAAsB,CAAC,EAC3C,UAAU,EACV,MAAM,EACN,QAAQ,GACT,EAAE,gCAAgC,GAAG,OAAO,CAAC,8BAA8B,CAAC,CAgB5E;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAsB,0BAA0B,CAAC,EAC/C,gBAAgB,GACjB,EAAE,oCAAoC,GAAG,OAAO,CAAC,kCAAkC,CAAC,CASpF;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAsB,2BAA2B,CAAC,EAChD,iBAAiB,EACjB,aAAa,EACb,MAAM,GACP,EAAE,qCAAqC,GAAG,OAAO,CAAC,mCAAmC,CAAC,CAatF;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAsB,iBAAiB,CAAC,EACtC,gBAAgB,EAChB,MAAM,GACP,EAAE,2BAA2B,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAYlE"}
@@ -0,0 +1,172 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getProductVariantsList = getProductVariantsList;
4
+ exports.getProductVariantSuppliers = getProductVariantSuppliers;
5
+ exports.getProductVariantAttributes = getProductVariantAttributes;
6
+ exports.getProductVariant = getProductVariant;
7
+ const parameters_validation_1 = require("../../helpers/parameters-validation");
8
+ const fetch_instance_1 = require("../../settings/fetch-instance");
9
+ /**
10
+ * 📄 Fetches a paginated list of product variants.
11
+ *
12
+ * This function retrieves a list of product variants associated with a specific product SKU.
13
+ * Pagination and sorting options are available to refine the results.
14
+ *
15
+ * 🛠 **Endpoint**: `GET /v1/shop/product-variants`
16
+ *
17
+ * | Parameter | Type | Required | Description |
18
+ * |-----------------|--------------|----------|---------------------------------------------------------------|
19
+ * | `productSku` | `string` | ✅ | The SKU of the product to fetch variants for. |
20
+ * | `locale` | `string` | ❌ | The locale for the product variants. |
21
+ * | `pageable.page` | `number` | ✅ | The page number to fetch (0-based index). |
22
+ * | `pageable.size` | `number` | ✅ | The number of items per page. |
23
+ * | `pageable.sort` | `string[]` | ❌ | Sorting criteria (e.g., `["name,asc"]`). |
24
+ *
25
+ * 📤 **Returns**:
26
+ * A `Promise` resolving to a `GetProductVariantsListResponse` object, containing the paginated list of product variants with metadata.
27
+ *
28
+ * 🛠 **Example usage**:
29
+ * ```typescript
30
+ * const variants = await getProductVariantsList({
31
+ * productSku: 'product123',
32
+ * locale: 'en-US',
33
+ * pageable: { page: 0, size: 10, sort: ['name,asc'] },
34
+ * });
35
+ * console.log(variants);
36
+ * ```
37
+ *
38
+ * @param {GetProductVariantsListParameters} params - The parameters for fetching product variants.
39
+ * @throws {Error} If `productSku` is missing.
40
+ * @returns {Promise<GetProductVariantsListResponse>} A promise resolving to the product variants response.
41
+ */
42
+ async function getProductVariantsList({ productSku, locale, pageable, }) {
43
+ (0, parameters_validation_1.required)({ productSku });
44
+ const { data } = await (0, fetch_instance_1.enhancedFetch)({
45
+ method: "GET",
46
+ path: `/v1/shop/product-variants`,
47
+ params: {
48
+ productSku,
49
+ locale,
50
+ page: pageable?.page,
51
+ size: pageable?.size,
52
+ sort: pageable?.sort,
53
+ },
54
+ });
55
+ return data;
56
+ }
57
+ /**
58
+ * 📄 Fetches suppliers of a specific product variant.
59
+ *
60
+ * This function retrieves a list of suppliers associated with a specific product variant ID.
61
+ *
62
+ * 🛠 **Endpoint**: `GET /v1/shop/product-variants/{productVariantId}/suppliers`
63
+ *
64
+ * | Parameter | Type | Required | Description |
65
+ * |---------------------|--------------|----------|-------------------------------------------------|
66
+ * | `productVariantId` | `string` | ✅ | The ID of the product variant to fetch suppliers for. |
67
+ *
68
+ * 📤 **Returns**:
69
+ * A `Promise` resolving to a `GetProductVariantSuppliersResponse` object, containing the list of suppliers for the product variant.
70
+ *
71
+ * 🛠 **Example usage**:
72
+ * ```typescript
73
+ * const suppliers = await getProductVariantSuppliers({
74
+ * productVariantId: 'variant123',
75
+ * });
76
+ * console.log(suppliers);
77
+ * ```
78
+ *
79
+ * @param {GetProductVariantSuppliersParameters} params - The parameters for fetching product variant suppliers.
80
+ * @throws {Error} If `productVariantId` is missing.
81
+ * @returns {Promise<GetProductVariantSuppliersResponse>} A promise resolving to the product variant suppliers response.
82
+ */
83
+ async function getProductVariantSuppliers({ productVariantId, }) {
84
+ (0, parameters_validation_1.required)({ productVariantId });
85
+ const { data } = await (0, fetch_instance_1.enhancedFetch)({
86
+ method: "GET",
87
+ path: `/v1/shop/product-variants/${productVariantId}/suppliers`,
88
+ });
89
+ return data;
90
+ }
91
+ /**
92
+ * 📄 Fetches attributes of a product variant.
93
+ *
94
+ * This function retrieves detailed attributes of a product variant identified by SKU, ID, or external ID.
95
+ *
96
+ * 🛠 **Endpoint**: `GET /v1/shop/products/{productIdentifier}/variant-attributes`
97
+ *
98
+ * | Parameter | Type | Required | Description |
99
+ * |---------------------|--------------|----------|---------------------------------------------------------------|
100
+ * | `productIdentifier` | `string` | ✅ | The unique identifier of the product variant (e.g., SKU, ID, external ID). |
101
+ * | `productIdType` | `string` | ✅ | The type of the identifier (`sku`, `id`, or `externalId`). |
102
+ * | `locale` | `string` | ❌ | The locale for localized data (e.g., `en-US`, `fr-FR`). Defaults to system locale. |
103
+ *
104
+ * 📤 **Returns**:
105
+ * A `Promise` resolving to a `GetProductVariantAttributesResponse` object, containing metadata such as **color**, **size**, or **material**.
106
+ *
107
+ * 🛠 **Example usage**:
108
+ * ```typescript
109
+ * const attributes = await getProductVariantAttributes({
110
+ * productIdentifier: 'sku123',
111
+ * productIdType: 'sku',
112
+ * locale: 'en-US',
113
+ * });
114
+ * console.log(attributes);
115
+ * ```
116
+ *
117
+ * @param {GetProductVariantAttributesParameters} params - The parameters for fetching product variant attributes.
118
+ * @throws {Error} If `productIdentifier` or `productIdType` is missing.
119
+ * @returns {Promise<GetProductVariantAttributesResponse>} A promise resolving to the product variant attributes response.
120
+ */
121
+ async function getProductVariantAttributes({ productIdentifier, productIdType, locale, }) {
122
+ (0, parameters_validation_1.required)({ productIdentifier, productIdType });
123
+ const { data } = await (0, fetch_instance_1.enhancedFetch)({
124
+ method: "GET",
125
+ path: `/v1/shop/products/${productIdentifier}/variant-attributes`,
126
+ params: {
127
+ productIdType,
128
+ locale,
129
+ },
130
+ });
131
+ return data;
132
+ }
133
+ /**
134
+ * 📄 Fetches details of a specific product variant.
135
+ *
136
+ * This function retrieves detailed information about a product variant identified by its ID.
137
+ *
138
+ * 🛠 **Endpoint**: `GET /v1/shop/product-variants/{productVariantId}`
139
+ *
140
+ * | Parameter | Type | Required | Description |
141
+ * |---------------------|--------------|----------|-------------------------------------------------|
142
+ * | `productVariantId` | `string` | ✅ | The ID of the product variant to fetch. |
143
+ * | `locale` | `string` | ❌ | The locale for localized data (e.g., `en-US`). |
144
+ *
145
+ * 📤 **Returns**:
146
+ * A `Promise` resolving to a `GetProductVariantResponse` object, containing the product variant details.
147
+ *
148
+ * 🛠 **Example usage**:
149
+ * ```typescript
150
+ * const variant = await getProductVariant({
151
+ * productVariantId: 'variant123',
152
+ * locale: 'fr-FR',
153
+ * });
154
+ * console.log(variant);
155
+ * ```
156
+ *
157
+ * @param {GetProductVariantParameters} params - The parameters for fetching the product variant.
158
+ * @throws {Error} If `productVariantId` is missing.
159
+ * @returns {Promise<GetProductVariantResponse>} A promise resolving to the product variant response.
160
+ */
161
+ async function getProductVariant({ productVariantId, locale, }) {
162
+ (0, parameters_validation_1.required)({ productVariantId });
163
+ const { data } = await (0, fetch_instance_1.enhancedFetch)({
164
+ method: "GET",
165
+ path: `/v1/shop/product-variants/${productVariantId}`,
166
+ params: {
167
+ locale,
168
+ },
169
+ });
170
+ return data;
171
+ }
172
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/services/product-variant/index.ts"],"names":[],"mappings":";;AA8CA,wDAoBC;AA4BD,gEAWC;AAgCD,kEAiBC;AA8BD,8CAeC;AAvMD,+EAA+D;AAC/D,kEAA8D;AAY9D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACI,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;GA2BG;AACI,KAAK,UAAU,iBAAiB,CAAC,EACtC,gBAAgB,EAChB,MAAM,GACsB;IAC5B,IAAA,gCAAQ,EAAC,EAAE,gBAAgB,EAAE,CAAC,CAAC;IAE/B,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAA,8BAAa,EAA4B;QAC9D,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,6BAA6B,gBAAgB,EAAE;QACrD,MAAM,EAAE;YACN,MAAM;SACP;KACF,CAAC,CAAC;IAEH,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * DJUST SDK Product Variant Module
3
+ * Re-exports all product variant-related types and service.
4
+ *
5
+ * @module services/product-variant
6
+ * @since 2.17.0
7
+ */
8
+ export type { ProductIdType, GetProductVariantsListParams, GetProductVariantParams, GetProductVariantSuppliersParams, GetProductVariantAttributesParams, ProductVariant, ProductVariantAttribute, ProductVariantImage, ProductVariantPrice, ProductVariantSupplier, GetProductVariantsListResponse, GetProductVariantResponse, GetProductVariantSuppliersResponse, GetProductVariantAttributesResponse, } from "./types";
9
+ export { ProductVariantEndpoints, type ProductVariantEndpoint, } from "./endpoints";
10
+ export { ProductVariantService } from "./product-variant.service";
11
+ //# sourceMappingURL=module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../src/services/product-variant/module.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,YAAY,EACV,aAAa,EACb,4BAA4B,EAC5B,uBAAuB,EACvB,gCAAgC,EAChC,iCAAiC,EACjC,cAAc,EACd,uBAAuB,EACvB,mBAAmB,EACnB,mBAAmB,EACnB,sBAAsB,EACtB,8BAA8B,EAC9B,yBAAyB,EACzB,kCAAkC,EAClC,mCAAmC,GACpC,MAAM,SAAS,CAAC;AAEjB,OAAO,EACL,uBAAuB,EACvB,KAAK,sBAAsB,GAC5B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /**
3
+ * DJUST SDK Product Variant Module
4
+ * Re-exports all product variant-related types and service.
5
+ *
6
+ * @module services/product-variant
7
+ * @since 2.17.0
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.ProductVariantService = exports.ProductVariantEndpoints = void 0;
11
+ var endpoints_1 = require("./endpoints");
12
+ Object.defineProperty(exports, "ProductVariantEndpoints", { enumerable: true, get: function () { return endpoints_1.ProductVariantEndpoints; } });
13
+ var product_variant_service_1 = require("./product-variant.service");
14
+ Object.defineProperty(exports, "ProductVariantService", { enumerable: true, get: function () { return product_variant_service_1.ProductVariantService; } });
15
+ //# sourceMappingURL=module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module.js","sourceRoot":"","sources":["../../../src/services/product-variant/module.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAmBH,yCAGqB;AAFnB,oHAAA,uBAAuB,OAAA;AAGzB,qEAAkE;AAAzD,gIAAA,qBAAqB,OAAA"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * DJUST SDK Product Variant Service
3
+ * Service class for product variant operations.
4
+ *
5
+ * @module services/product-variant/service
6
+ * @since 2.17.0
7
+ */
8
+ import { BaseService } from "../base.service";
9
+ import type { RequestContext } from "../../client/transport";
10
+ import type { GetProductVariantsListParams, GetProductVariantParams, GetProductVariantSuppliersParams, GetProductVariantAttributesParams, GetProductVariantsListResponse, GetProductVariantResponse, GetProductVariantSuppliersResponse, GetProductVariantAttributesResponse } from "./types";
11
+ /**
12
+ * Service for product variant operations.
13
+ */
14
+ export declare class ProductVariantService extends BaseService {
15
+ readonly serviceName = "product-variant";
16
+ getProductVariantsList(params: GetProductVariantsListParams, context?: RequestContext): Promise<GetProductVariantsListResponse>;
17
+ getProductVariant(params: GetProductVariantParams, context?: RequestContext): Promise<GetProductVariantResponse>;
18
+ getProductVariantSuppliers(params: GetProductVariantSuppliersParams, context?: RequestContext): Promise<GetProductVariantSuppliersResponse>;
19
+ getProductVariantAttributes(params: GetProductVariantAttributesParams, context?: RequestContext): Promise<GetProductVariantAttributesResponse>;
20
+ }
21
+ //# sourceMappingURL=product-variant.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-variant.service.d.ts","sourceRoot":"","sources":["../../../src/services/product-variant/product-variant.service.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE7D,OAAO,KAAK,EACV,4BAA4B,EAC5B,uBAAuB,EACvB,gCAAgC,EAChC,iCAAiC,EACjC,8BAA8B,EAC9B,yBAAyB,EACzB,kCAAkC,EAClC,mCAAmC,EACpC,MAAM,SAAS,CAAC;AAEjB;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,WAAW;IACpD,QAAQ,CAAC,WAAW,qBAAqB;IAEnC,sBAAsB,CAC1B,MAAM,EAAE,4BAA4B,EACpC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,8BAA8B,CAAC;IAmBpC,iBAAiB,CACrB,MAAM,EAAE,uBAAuB,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,yBAAyB,CAAC;IAe/B,0BAA0B,CAC9B,MAAM,EAAE,gCAAgC,EACxC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,kCAAkC,CAAC;IAcxC,2BAA2B,CAC/B,MAAM,EAAE,iCAAiC,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,mCAAmC,CAAC;CAiBhD"}
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ /**
3
+ * DJUST SDK Product Variant Service
4
+ * Service class for product variant operations.
5
+ *
6
+ * @module services/product-variant/service
7
+ * @since 2.17.0
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.ProductVariantService = void 0;
11
+ const base_service_1 = require("../base.service");
12
+ const endpoints_1 = require("./endpoints");
13
+ /**
14
+ * Service for product variant operations.
15
+ */
16
+ class ProductVariantService extends base_service_1.BaseService {
17
+ constructor() {
18
+ super(...arguments);
19
+ this.serviceName = "product-variant";
20
+ }
21
+ async getProductVariantsList(params, context) {
22
+ this.required(params, ["productSku"]);
23
+ return this.request({
24
+ method: "GET",
25
+ path: endpoints_1.ProductVariantEndpoints.VARIANTS,
26
+ params: this.buildParams({
27
+ productSku: params.productSku,
28
+ locale: params.locale,
29
+ page: params.pageable?.page,
30
+ size: params.pageable?.size,
31
+ sort: params.pageable?.sort,
32
+ }),
33
+ }, context);
34
+ }
35
+ async getProductVariant(params, context) {
36
+ this.required(params, ["productVariantId"]);
37
+ return this.request({
38
+ method: "GET",
39
+ path: this.buildPath(endpoints_1.ProductVariantEndpoints.VARIANT, {
40
+ productVariantId: params.productVariantId,
41
+ }),
42
+ params: this.buildParams({ locale: params.locale }),
43
+ }, context);
44
+ }
45
+ async getProductVariantSuppliers(params, context) {
46
+ this.required(params, ["productVariantId"]);
47
+ return this.request({
48
+ method: "GET",
49
+ path: this.buildPath(endpoints_1.ProductVariantEndpoints.VARIANT_SUPPLIERS, {
50
+ productVariantId: params.productVariantId,
51
+ }),
52
+ }, context);
53
+ }
54
+ async getProductVariantAttributes(params, context) {
55
+ this.required(params, ["productIdentifier", "productIdType"]);
56
+ return this.request({
57
+ method: "GET",
58
+ path: this.buildPath(endpoints_1.ProductVariantEndpoints.VARIANT_ATTRIBUTES, {
59
+ productIdentifier: params.productIdentifier,
60
+ }),
61
+ params: this.buildParams({
62
+ productIdType: params.productIdType,
63
+ locale: params.locale,
64
+ }),
65
+ }, context);
66
+ }
67
+ }
68
+ exports.ProductVariantService = ProductVariantService;
69
+ //# sourceMappingURL=product-variant.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-variant.service.js","sourceRoot":"","sources":["../../../src/services/product-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B,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,kBAAkB,CAAC,CAAC,CAAC;QAE5C,OAAO,IAAI,CAAC,OAAO,CACjB;YACE,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,mCAAuB,CAAC,iBAAiB,EAAE;gBAC9D,gBAAgB,EAAE,MAAM,CAAC,gBAAgB;aAC1C,CAAC;SACH,EACD,OAAO,CACR,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,2BAA2B,CAC/B,MAAyC,EACzC,OAAwB;QAExB,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,mBAAmB,EAAE,eAAe,CAAC,CAAC,CAAC;QAE9D,OAAO,IAAI,CAAC,OAAO,CACjB;YACE,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,mCAAuB,CAAC,kBAAkB,EAAE;gBAC/D,iBAAiB,EAAE,MAAM,CAAC,iBAAiB;aAC5C,CAAC;YACF,MAAM,EAAE,IAAI,CAAC,WAAW,CAAC;gBACvB,aAAa,EAAE,MAAM,CAAC,aAAa;gBACnC,MAAM,EAAE,MAAM,CAAC,MAAM;aACtB,CAAC;SACH,EACD,OAAO,CACR,CAAC;IACJ,CAAC;CACF;AAhFD,sDAgFC"}
@@ -0,0 +1,73 @@
1
+ /**
2
+ * DJUST SDK Product Variant Service - Types
3
+ * Type definitions for product variant operations.
4
+ *
5
+ * @module services/product-variant/types
6
+ * @since 2.17.0
7
+ */
8
+ import type { Pageable, PaginatedResponse } from "../types";
9
+ export type ProductIdType = "sku" | "id" | "externalId";
10
+ export interface GetProductVariantsListParams {
11
+ productSku: string;
12
+ locale?: string;
13
+ pageable?: Pageable;
14
+ }
15
+ export interface GetProductVariantParams {
16
+ productVariantId: string;
17
+ locale?: string;
18
+ }
19
+ export interface GetProductVariantSuppliersParams {
20
+ productVariantId: string;
21
+ }
22
+ export interface GetProductVariantAttributesParams {
23
+ productIdentifier: string;
24
+ productIdType: ProductIdType;
25
+ locale?: string;
26
+ }
27
+ export interface ProductVariant {
28
+ id: string;
29
+ externalId?: string;
30
+ sku: string;
31
+ name: string;
32
+ description?: string;
33
+ productId: string;
34
+ status: string;
35
+ attributes?: ProductVariantAttribute[];
36
+ images?: ProductVariantImage[];
37
+ prices?: ProductVariantPrice[];
38
+ createdAt: string;
39
+ updatedAt: string;
40
+ }
41
+ export interface ProductVariantAttribute {
42
+ id: string;
43
+ name: string;
44
+ code: string;
45
+ value: string;
46
+ displayValue?: string;
47
+ }
48
+ export interface ProductVariantImage {
49
+ id: string;
50
+ url: string;
51
+ alt?: string;
52
+ position: number;
53
+ }
54
+ export interface ProductVariantPrice {
55
+ currency: string;
56
+ priceExclTax: number;
57
+ priceInclTax?: number;
58
+ taxRate?: number;
59
+ }
60
+ export interface ProductVariantSupplier {
61
+ id: string;
62
+ externalId?: string;
63
+ name: string;
64
+ description?: string;
65
+ logoUrl?: string;
66
+ }
67
+ export interface GetProductVariantsListResponse extends PaginatedResponse<ProductVariant> {
68
+ }
69
+ export interface GetProductVariantResponse extends ProductVariant {
70
+ }
71
+ export type GetProductVariantSuppliersResponse = ProductVariantSupplier[];
72
+ export type GetProductVariantAttributesResponse = ProductVariantAttribute[];
73
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/services/product-variant/types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAM5D,MAAM,MAAM,aAAa,GAAG,KAAK,GAAG,IAAI,GAAG,YAAY,CAAC;AAMxD,MAAM,WAAW,4BAA4B;IAC3C,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AAED,MAAM,WAAW,uBAAuB;IACtC,gBAA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AAsB;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAGD,MAAM,WAAW,8BACf,SAAQ,iBAAiB,CAAC,cAAc,CAAC;CAAG;AAC9C,MAAM,WAAW,yBAA0B,SAAQ,cAAc;CAAG;AACpE,MAAM,MAAM,kCAAkC,GAAG,sBAAsB,EAAE,CAAC;AAC1E,MAAM,MAAM,mCAAmC,GAAG,uBAAuB,EAAE,CAAC"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * DJUST SDK Product Variant Service - Types
4
+ * Type definitions for product variant operations.
5
+ *
6
+ * @module services/product-variant/types
7
+ * @since 2.17.0
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/services/product-variant/types.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG"}
@@ -0,0 +1,102 @@
1
+ import { MasterQuote, PageMasterQuote, SupplierQuoteDto, SupplierQuoteIdType } from "../../interfaces/models/quote";
2
+ import { OrderCommercialDto } from "../../interfaces/models/order";
3
+ import { IdType, PageableParameters } from "../../interfaces/models/common";
4
+ import { CustomFieldValueRequest } from "../../interfaces/models/custom-field";
5
+ /**
6
+ * Request parameters type definitions
7
+ */
8
+ export interface GetMasterQuotesParameters {
9
+ fromCustomerAccount?: boolean;
10
+ pageable?: PageableParameters;
11
+ }
12
+ export interface CreateMasterQuoteParameters {
13
+ description: string;
14
+ name: string;
15
+ }
16
+ export interface DeleteMasterQuoteParameters {
17
+ masterQuoteId: string;
18
+ }
19
+ export interface GetMasterQuoteParameters {
20
+ masterQuoteId: string;
21
+ }
22
+ export interface UpdateMasterQuoteParameters {
23
+ masterQuoteId: string;
24
+ customFieldValues: {
25
+ customFieldId: string;
26
+ customFieldValue?: string;
27
+ }[];
28
+ masterQuoteDetailsToAdd: {
29
+ productVariantId: string;
30
+ quantity: number;
31
+ }[];
32
+ masterQuoteDetailsToRemove: string[];
33
+ /** Type des productVariantId dans masterQuoteDetailsToAdd (ex. EXTERNAL_ID pour utiliser des externalId). */
34
+ idType?: IdType;
35
+ }
36
+ export interface CreateSupplierQuotesParameters {
37
+ billingAddressId?: string;
38
+ createSupplierQuoteRequests: {
39
+ createQuoteDeliveryLineRequests: {
40
+ quantity: number;
41
+ shippingAddressId: string;
42
+ }[];
43
+ masterQuoteDetailId: string;
44
+ quantity: number;
45
+ supplierIds: string[];
46
+ }[];
47
+ masterQuoteId?: string;
48
+ supplierQuoteUrl: string;
49
+ }
50
+ export interface GetSupplierQuoteParameters {
51
+ supplierQuoteId: string;
52
+ }
53
+ export interface AcceptSupplierQuoteParameters {
54
+ supplierQuoteId: string;
55
+ }
56
+ export interface DeclineSupplierQuoteParameters {
57
+ supplierQuoteId: string;
58
+ }
59
+ export interface PostMessageToSupplierQuoteParameters {
60
+ supplierQuoteId: string;
61
+ message: string;
62
+ username: string;
63
+ }
64
+ export interface UpdateSupplierQuoteCustomFieldsParameters {
65
+ supplierQuoteId: string;
66
+ customFieldValues: CustomFieldValueRequest[];
67
+ idType: SupplierQuoteIdType;
68
+ }
69
+ export interface InitializeOrderFromSupplierQuoteParameters {
70
+ supplierQuoteId: string;
71
+ nbPreviewLines: number;
72
+ quoteLineIdsAndQuantities: {
73
+ quantity: number;
74
+ quoteLineId: string;
75
+ }[];
76
+ }
77
+ /**
78
+ * Response type definitions
79
+ */
80
+ export interface GetMasterQuotesResponse extends PageMasterQuote {
81
+ }
82
+ export interface CreateMasterQuoteResponse extends MasterQuote {
83
+ }
84
+ export interface GetMasterQuoteResponse extends MasterQuote {
85
+ }
86
+ export interface UpdateMasterQuoteResponse extends MasterQuote {
87
+ }
88
+ export interface CreateSupplierQuotesResponse extends Array<SupplierQuoteDto> {
89
+ }
90
+ export interface GetSupplierQuoteResponse extends SupplierQuoteDto {
91
+ }
92
+ export interface DeclineSupplierQuoteResponse extends SupplierQuoteDto {
93
+ }
94
+ export interface AcceptSupplierQuoteResponse extends SupplierQuoteDto {
95
+ }
96
+ export interface PostMessageToSupplierQuoteResponse extends SupplierQuoteDto {
97
+ }
98
+ export interface UpdateSupplierQuoteCustomFieldsResponse extends SupplierQuoteDto {
99
+ }
100
+ export interface InitializeOrderFromSupplierQuoteResponse extends OrderCommercialDto {
101
+ }
102
+ //# sourceMappingURL=definitions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../../../src/services/quote/definitions.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,eAAe,EACf,gBAAgB,EAChB,mBAAmB,EACpB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAE/E;;GAEG;AAEH,MAAM,WAAW,yBAAyB;IACxC,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,EAAE,kBAAkB,CAAC;CAC/B;AAED,MAAM,WAAW,2BAA2B;IAC1C,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,2BAA2B;IAC1C,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,wBAAwB;IACvC,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,2BAA2B;IAC1C,aAAa,EAAE,MAAM,CAAC;IACtB,iBAAiB,EAAE;QACjB,aAAa,EAAE,MAAM,CAAC;QACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;KAC3B,EAAE,CAAC;IACJ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EH,MAAM,WAAW,uBAAwB,SAAQ,eAAe;CAAG;AAEnE,MAAM,WAAW,yBAA0B,SAAQ,WAAW;CAAG;AAEjE,MAAM,WAAW,sBAAuB,SAAQ,WAAW;CAAG;AAE9D,MAAM,WAAW,yBAA0B,SAAQ,WAAW;CAAG;AAEjE,MAAM,WAAW,4BAA6B,SAAQ,KAAK,CAAC,gBAAgB,CAAC;CAAG;AAEhF,MAAM,WAAW,wBAAyB,SAAQ,gBAAgB;CAAG;AAErE,MAAM,WAAW,4BAA6B,SAAQ,gBAAgB;CAAG;AAEzE,MAAM,WAAW,2BAA4B,SAAQ,gBAAgB;CAAG;AAExE,MAAM,WAAW,kCAAmC,SAAQ,gBAAgB;CAAG;AAE/E,MAAM,WAAW,uCACf,SAAQ,gBAAgB;CAAG;AAE7B,MAAM,WAAW,wCACf,SAAQ,kBAAkB;CAAG"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=definitions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../../src/services/quote/definitions.ts"],"names":[],"mappings":""}