@djust-b2b/djust-front-sdk 3.0.0-beta.2 → 3.0.0-beta.20

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 (331) hide show
  1. package/README.md +51 -7
  2. package/dist/.tsbuildinfo +1 -0
  3. package/dist/.tsbuildinfo-esm +1 -0
  4. package/dist/client/create-client.d.ts +248 -0
  5. package/dist/client/create-client.d.ts.map +1 -0
  6. package/dist/client/index.d.ts +14 -0
  7. package/dist/client/index.d.ts.map +1 -0
  8. package/dist/client/performance.d.ts +203 -0
  9. package/dist/client/performance.d.ts.map +1 -0
  10. package/dist/client/transport.d.ts +372 -0
  11. package/dist/client/transport.d.ts.map +1 -0
  12. package/dist/errors/base.d.ts +101 -0
  13. package/dist/errors/base.d.ts.map +1 -0
  14. package/dist/errors/classes/auth.error.d.ts +64 -0
  15. package/dist/errors/classes/auth.error.d.ts.map +1 -0
  16. package/dist/errors/classes/forbidden.error.d.ts +52 -0
  17. package/dist/errors/classes/forbidden.error.d.ts.map +1 -0
  18. package/dist/errors/classes/index.d.ts +17 -0
  19. package/dist/errors/classes/index.d.ts.map +1 -0
  20. package/dist/errors/classes/network.error.d.ts +63 -0
  21. package/dist/errors/classes/network.error.d.ts.map +1 -0
  22. package/dist/errors/classes/not-found.error.d.ts +58 -0
  23. package/dist/errors/classes/not-found.error.d.ts.map +1 -0
  24. package/dist/errors/classes/rate-limit.error.d.ts +49 -0
  25. package/dist/errors/classes/rate-limit.error.d.ts.map +1 -0
  26. package/dist/errors/classes/server.error.d.ts +63 -0
  27. package/dist/errors/classes/server.error.d.ts.map +1 -0
  28. package/dist/errors/classes/timeout.error.d.ts +64 -0
  29. package/dist/errors/classes/timeout.error.d.ts.map +1 -0
  30. package/dist/errors/classes/unexpected.error.d.ts +70 -0
  31. package/dist/errors/classes/unexpected.error.d.ts.map +1 -0
  32. package/dist/errors/classes/validation.error.d.ts +68 -0
  33. package/dist/errors/classes/validation.error.d.ts.map +1 -0
  34. package/dist/errors/codes.d.ts +111 -0
  35. package/dist/errors/codes.d.ts.map +1 -0
  36. package/dist/errors/compat.d.ts +99 -0
  37. package/dist/errors/compat.d.ts.map +1 -0
  38. package/dist/errors/factory.d.ts +33 -0
  39. package/dist/errors/factory.d.ts.map +1 -0
  40. package/dist/errors/guards.d.ts +142 -0
  41. package/dist/errors/guards.d.ts.map +1 -0
  42. package/dist/errors/index.d.ts +25 -0
  43. package/dist/errors/index.d.ts.map +1 -0
  44. package/dist/errors/types.d.ts +100 -0
  45. package/dist/errors/types.d.ts.map +1 -0
  46. package/dist/helpers/index.d.ts +42 -0
  47. package/dist/helpers/index.d.ts.map +1 -0
  48. package/dist/helpers/parameters-validation.d.ts +3 -0
  49. package/dist/helpers/parameters-validation.d.ts.map +1 -0
  50. package/dist/helpers/utils.d.ts +5 -0
  51. package/dist/helpers/utils.d.ts.map +1 -0
  52. package/dist/index.cjs +182 -0
  53. package/dist/index.d.ts +266 -0
  54. package/dist/index.d.ts.map +1 -0
  55. package/dist/index.mjs +11611 -0
  56. package/dist/interfaces/index.d.ts +31 -0
  57. package/dist/interfaces/index.d.ts.map +1 -0
  58. package/dist/interfaces/models/address.d.ts +61 -0
  59. package/dist/interfaces/models/address.d.ts.map +1 -0
  60. package/dist/interfaces/models/attribute.d.ts +31 -0
  61. package/dist/interfaces/models/attribute.d.ts.map +1 -0
  62. package/dist/interfaces/models/auth.d.ts +37 -0
  63. package/dist/interfaces/models/auth.d.ts.map +1 -0
  64. package/dist/interfaces/models/cart.d.ts +64 -0
  65. package/dist/interfaces/models/cart.d.ts.map +1 -0
  66. package/dist/interfaces/models/common.d.ts +68 -0
  67. package/dist/interfaces/models/common.d.ts.map +1 -0
  68. package/dist/interfaces/models/custom-field.d.ts +57 -0
  69. package/dist/interfaces/models/custom-field.d.ts.map +1 -0
  70. package/dist/interfaces/models/customer-account.d.ts +52 -0
  71. package/dist/interfaces/models/customer-account.d.ts.map +1 -0
  72. package/dist/interfaces/models/customer-organisation.d.ts +14 -0
  73. package/dist/interfaces/models/customer-organisation.d.ts.map +1 -0
  74. package/dist/interfaces/models/customer-user.d.ts +114 -0
  75. package/dist/interfaces/models/customer-user.d.ts.map +1 -0
  76. package/dist/interfaces/models/incident.d.ts +37 -0
  77. package/dist/interfaces/models/incident.d.ts.map +1 -0
  78. package/dist/interfaces/models/navigation-category.d.ts +22 -0
  79. package/dist/interfaces/models/navigation-category.d.ts.map +1 -0
  80. package/dist/interfaces/models/offer.d.ts +151 -0
  81. package/dist/interfaces/models/offer.d.ts.map +1 -0
  82. package/dist/interfaces/models/order.d.ts +701 -0
  83. package/dist/interfaces/models/order.d.ts.map +1 -0
  84. package/dist/interfaces/models/payment.d.ts +20 -0
  85. package/dist/interfaces/models/payment.d.ts.map +1 -0
  86. package/dist/interfaces/models/price.d.ts +6 -0
  87. package/dist/interfaces/models/price.d.ts.map +1 -0
  88. package/dist/interfaces/models/product.d.ts +243 -0
  89. package/dist/interfaces/models/product.d.ts.map +1 -0
  90. package/dist/interfaces/models/quote.d.ts +77 -0
  91. package/dist/interfaces/models/quote.d.ts.map +1 -0
  92. package/dist/interfaces/models/searchProduct.d.ts +128 -0
  93. package/dist/interfaces/models/searchProduct.d.ts.map +1 -0
  94. package/dist/interfaces/models/supplier.d.ts +72 -0
  95. package/dist/interfaces/models/supplier.d.ts.map +1 -0
  96. package/dist/services/attributes/attributes.service.d.ts +18 -0
  97. package/dist/services/attributes/attributes.service.d.ts.map +1 -0
  98. package/dist/services/attributes/definitions.d.ts +28 -0
  99. package/dist/services/attributes/definitions.d.ts.map +1 -0
  100. package/dist/services/attributes/endpoints.d.ts +12 -0
  101. package/dist/services/attributes/endpoints.d.ts.map +1 -0
  102. package/dist/services/attributes/index.d.ts +33 -0
  103. package/dist/services/attributes/index.d.ts.map +1 -0
  104. package/dist/services/attributes/module.d.ts +11 -0
  105. package/dist/services/attributes/module.d.ts.map +1 -0
  106. package/dist/services/attributes/types.d.ts +35 -0
  107. package/dist/services/attributes/types.d.ts.map +1 -0
  108. package/dist/services/auth/__mocks__/auth.mocks.d.ts +249 -0
  109. package/dist/services/auth/__mocks__/auth.mocks.d.ts.map +1 -0
  110. package/dist/services/auth/auth.service.d.ts +286 -0
  111. package/dist/services/auth/auth.service.d.ts.map +1 -0
  112. package/dist/services/auth/definitions.d.ts +69 -0
  113. package/dist/services/auth/definitions.d.ts.map +1 -0
  114. package/dist/services/auth/definitions.requests.d.ts +25 -0
  115. package/dist/services/auth/definitions.requests.d.ts.map +1 -0
  116. package/dist/services/auth/endpoints.d.ts +30 -0
  117. package/dist/services/auth/endpoints.d.ts.map +1 -0
  118. package/dist/services/auth/index.d.ts +232 -0
  119. package/dist/services/auth/index.d.ts.map +1 -0
  120. package/dist/services/auth/module.d.ts +11 -0
  121. package/dist/services/auth/module.d.ts.map +1 -0
  122. package/dist/services/auth/types.d.ts +124 -0
  123. package/dist/services/auth/types.d.ts.map +1 -0
  124. package/dist/services/base.service.d.ts +83 -0
  125. package/dist/services/base.service.d.ts.map +1 -0
  126. package/dist/services/cart/cart.service.d.ts +443 -0
  127. package/dist/services/cart/cart.service.d.ts.map +1 -0
  128. package/dist/services/cart/definitions.d.ts +84 -0
  129. package/dist/services/cart/definitions.d.ts.map +1 -0
  130. package/dist/services/cart/endpoints.d.ts +24 -0
  131. package/dist/services/cart/endpoints.d.ts.map +1 -0
  132. package/dist/services/cart/index.d.ts +330 -0
  133. package/dist/services/cart/index.d.ts.map +1 -0
  134. package/dist/services/cart/module.d.ts +11 -0
  135. package/dist/services/cart/module.d.ts.map +1 -0
  136. package/dist/services/cart/types.d.ts +236 -0
  137. package/dist/services/cart/types.d.ts.map +1 -0
  138. package/dist/services/commercial-order/commercial-order.service.d.ts +435 -0
  139. package/dist/services/commercial-order/commercial-order.service.d.ts.map +1 -0
  140. package/dist/services/commercial-order/definitions.d.ts +181 -0
  141. package/dist/services/commercial-order/definitions.d.ts.map +1 -0
  142. package/dist/services/commercial-order/endpoints.d.ts +28 -0
  143. package/dist/services/commercial-order/endpoints.d.ts.map +1 -0
  144. package/dist/services/commercial-order/index.d.ts +712 -0
  145. package/dist/services/commercial-order/index.d.ts.map +1 -0
  146. package/dist/services/commercial-order/module.d.ts +11 -0
  147. package/dist/services/commercial-order/module.d.ts.map +1 -0
  148. package/dist/services/commercial-order/types.d.ts +244 -0
  149. package/dist/services/commercial-order/types.d.ts.map +1 -0
  150. package/dist/services/custom-field/custom-field.service.d.ts +23 -0
  151. package/dist/services/custom-field/custom-field.service.d.ts.map +1 -0
  152. package/dist/services/custom-field/definitions.d.ts +107 -0
  153. package/dist/services/custom-field/definitions.d.ts.map +1 -0
  154. package/dist/services/custom-field/endpoints.d.ts +13 -0
  155. package/dist/services/custom-field/endpoints.d.ts.map +1 -0
  156. package/dist/services/custom-field/index.d.ts +115 -0
  157. package/dist/services/custom-field/index.d.ts.map +1 -0
  158. package/dist/services/custom-field/module.d.ts +11 -0
  159. package/dist/services/custom-field/module.d.ts.map +1 -0
  160. package/dist/services/custom-field/types.d.ts +51 -0
  161. package/dist/services/custom-field/types.d.ts.map +1 -0
  162. package/dist/services/customer-account/customer-account.service.d.ts +387 -0
  163. package/dist/services/customer-account/customer-account.service.d.ts.map +1 -0
  164. package/dist/services/customer-account/definitions.d.ts +164 -0
  165. package/dist/services/customer-account/definitions.d.ts.map +1 -0
  166. package/dist/services/customer-account/endpoints.d.ts +25 -0
  167. package/dist/services/customer-account/endpoints.d.ts.map +1 -0
  168. package/dist/services/customer-account/index.d.ts +656 -0
  169. package/dist/services/customer-account/index.d.ts.map +1 -0
  170. package/dist/services/customer-account/module.d.ts +11 -0
  171. package/dist/services/customer-account/module.d.ts.map +1 -0
  172. package/dist/services/customer-account/types.d.ts +253 -0
  173. package/dist/services/customer-account/types.d.ts.map +1 -0
  174. package/dist/services/customer-user/customer-user.service.d.ts +280 -0
  175. package/dist/services/customer-user/customer-user.service.d.ts.map +1 -0
  176. package/dist/services/customer-user/definitions.d.ts +84 -0
  177. package/dist/services/customer-user/definitions.d.ts.map +1 -0
  178. package/dist/services/customer-user/endpoints.d.ts +19 -0
  179. package/dist/services/customer-user/endpoints.d.ts.map +1 -0
  180. package/dist/services/customer-user/index.d.ts +394 -0
  181. package/dist/services/customer-user/index.d.ts.map +1 -0
  182. package/dist/services/customer-user/module.d.ts +11 -0
  183. package/dist/services/customer-user/module.d.ts.map +1 -0
  184. package/dist/services/customer-user/types.d.ts +118 -0
  185. package/dist/services/customer-user/types.d.ts.map +1 -0
  186. package/dist/services/factory.d.ts +104 -0
  187. package/dist/services/factory.d.ts.map +1 -0
  188. package/dist/services/incident/definitions.d.ts +85 -0
  189. package/dist/services/incident/definitions.d.ts.map +1 -0
  190. package/dist/services/incident/endpoints.d.ts +17 -0
  191. package/dist/services/incident/endpoints.d.ts.map +1 -0
  192. package/dist/services/incident/incident.service.d.ts +24 -0
  193. package/dist/services/incident/incident.service.d.ts.map +1 -0
  194. package/dist/services/incident/index.d.ts +270 -0
  195. package/dist/services/incident/index.d.ts.map +1 -0
  196. package/dist/services/incident/module.d.ts +11 -0
  197. package/dist/services/incident/module.d.ts.map +1 -0
  198. package/dist/services/incident/types.d.ts +116 -0
  199. package/dist/services/incident/types.d.ts.map +1 -0
  200. package/dist/services/logistic-order/definitions.d.ts +296 -0
  201. package/dist/services/logistic-order/definitions.d.ts.map +1 -0
  202. package/dist/services/logistic-order/endpoints.d.ts +44 -0
  203. package/dist/services/logistic-order/endpoints.d.ts.map +1 -0
  204. package/dist/services/logistic-order/index.d.ts +1338 -0
  205. package/dist/services/logistic-order/index.d.ts.map +1 -0
  206. package/dist/services/logistic-order/logistic-order.service.d.ts +62 -0
  207. package/dist/services/logistic-order/logistic-order.service.d.ts.map +1 -0
  208. package/dist/services/logistic-order/module.d.ts +11 -0
  209. package/dist/services/logistic-order/module.d.ts.map +1 -0
  210. package/dist/services/logistic-order/types.d.ts +411 -0
  211. package/dist/services/logistic-order/types.d.ts.map +1 -0
  212. package/dist/services/module.d.ts +64 -0
  213. package/dist/services/module.d.ts.map +1 -0
  214. package/dist/services/navigation-category/definitions.d.ts +31 -0
  215. package/dist/services/navigation-category/definitions.d.ts.map +1 -0
  216. package/dist/services/navigation-category/endpoints.d.ts +15 -0
  217. package/dist/services/navigation-category/endpoints.d.ts.map +1 -0
  218. package/dist/services/navigation-category/index.d.ts +114 -0
  219. package/dist/services/navigation-category/index.d.ts.map +1 -0
  220. package/dist/services/navigation-category/module.d.ts +11 -0
  221. package/dist/services/navigation-category/module.d.ts.map +1 -0
  222. package/dist/services/navigation-category/navigation-category.service.d.ts +148 -0
  223. package/dist/services/navigation-category/navigation-category.service.d.ts.map +1 -0
  224. package/dist/services/navigation-category/types.d.ts +51 -0
  225. package/dist/services/navigation-category/types.d.ts.map +1 -0
  226. package/dist/services/offer-inventories/definitions.d.ts +73 -0
  227. package/dist/services/offer-inventories/definitions.d.ts.map +1 -0
  228. package/dist/services/offer-inventories/endpoints.d.ts +16 -0
  229. package/dist/services/offer-inventories/endpoints.d.ts.map +1 -0
  230. package/dist/services/offer-inventories/index.d.ts +120 -0
  231. package/dist/services/offer-inventories/index.d.ts.map +1 -0
  232. package/dist/services/offer-inventories/module.d.ts +11 -0
  233. package/dist/services/offer-inventories/module.d.ts.map +1 -0
  234. package/dist/services/offer-inventories/offer-inventories.service.d.ts +26 -0
  235. package/dist/services/offer-inventories/offer-inventories.service.d.ts.map +1 -0
  236. package/dist/services/offer-inventories/types.d.ts +85 -0
  237. package/dist/services/offer-inventories/types.d.ts.map +1 -0
  238. package/dist/services/offer-prices/__mocks__/offer-prices.mocks.d.ts +109 -0
  239. package/dist/services/offer-prices/__mocks__/offer-prices.mocks.d.ts.map +1 -0
  240. package/dist/services/offer-prices/definitions.d.ts +24 -0
  241. package/dist/services/offer-prices/definitions.d.ts.map +1 -0
  242. package/dist/services/offer-prices/endpoints.d.ts +12 -0
  243. package/dist/services/offer-prices/endpoints.d.ts.map +1 -0
  244. package/dist/services/offer-prices/index.d.ts +36 -0
  245. package/dist/services/offer-prices/index.d.ts.map +1 -0
  246. package/dist/services/offer-prices/module.d.ts +11 -0
  247. package/dist/services/offer-prices/module.d.ts.map +1 -0
  248. package/dist/services/offer-prices/offer-prices.service.d.ts +18 -0
  249. package/dist/services/offer-prices/offer-prices.service.d.ts.map +1 -0
  250. package/dist/services/offer-prices/types.d.ts +33 -0
  251. package/dist/services/offer-prices/types.d.ts.map +1 -0
  252. package/dist/services/operation/definitions.d.ts +280 -0
  253. package/dist/services/operation/definitions.d.ts.map +1 -0
  254. package/dist/services/operation/endpoints.d.ts +18 -0
  255. package/dist/services/operation/endpoints.d.ts.map +1 -0
  256. package/dist/services/operation/index.d.ts +520 -0
  257. package/dist/services/operation/index.d.ts.map +1 -0
  258. package/dist/services/operation/module.d.ts +11 -0
  259. package/dist/services/operation/module.d.ts.map +1 -0
  260. package/dist/services/operation/operation.service.d.ts +32 -0
  261. package/dist/services/operation/operation.service.d.ts.map +1 -0
  262. package/dist/services/operation/types.d.ts +174 -0
  263. package/dist/services/operation/types.d.ts.map +1 -0
  264. package/dist/services/payment/definitions.d.ts +79 -0
  265. package/dist/services/payment/definitions.d.ts.map +1 -0
  266. package/dist/services/payment/endpoints.d.ts +16 -0
  267. package/dist/services/payment/endpoints.d.ts.map +1 -0
  268. package/dist/services/payment/index.d.ts +150 -0
  269. package/dist/services/payment/index.d.ts.map +1 -0
  270. package/dist/services/payment/module.d.ts +11 -0
  271. package/dist/services/payment/module.d.ts.map +1 -0
  272. package/dist/services/payment/payment.service.d.ts +224 -0
  273. package/dist/services/payment/payment.service.d.ts.map +1 -0
  274. package/dist/services/payment/types.d.ts +93 -0
  275. package/dist/services/payment/types.d.ts.map +1 -0
  276. package/dist/services/product/definitions.d.ts +150 -0
  277. package/dist/services/product/definitions.d.ts.map +1 -0
  278. package/dist/services/product/endpoints.d.ts +40 -0
  279. package/dist/services/product/endpoints.d.ts.map +1 -0
  280. package/dist/services/product/index.d.ts +388 -0
  281. package/dist/services/product/index.d.ts.map +1 -0
  282. package/dist/services/product/module.d.ts +11 -0
  283. package/dist/services/product/module.d.ts.map +1 -0
  284. package/dist/services/product/product.service.d.ts +452 -0
  285. package/dist/services/product/product.service.d.ts.map +1 -0
  286. package/dist/services/product/types.d.ts +344 -0
  287. package/dist/services/product/types.d.ts.map +1 -0
  288. package/dist/services/product-variant/definitions.d.ts +172 -0
  289. package/dist/services/product-variant/definitions.d.ts.map +1 -0
  290. package/dist/services/product-variant/endpoints.d.ts +15 -0
  291. package/dist/services/product-variant/endpoints.d.ts.map +1 -0
  292. package/dist/services/product-variant/index.d.ts +123 -0
  293. package/dist/services/product-variant/index.d.ts.map +1 -0
  294. package/dist/services/product-variant/module.d.ts +11 -0
  295. package/dist/services/product-variant/module.d.ts.map +1 -0
  296. package/dist/services/product-variant/product-variant.service.d.ts +21 -0
  297. package/dist/services/product-variant/product-variant.service.d.ts.map +1 -0
  298. package/dist/services/product-variant/types.d.ts +73 -0
  299. package/dist/services/product-variant/types.d.ts.map +1 -0
  300. package/dist/services/quote/definitions.d.ts +102 -0
  301. package/dist/services/quote/definitions.d.ts.map +1 -0
  302. package/dist/services/quote/endpoints.d.ts +20 -0
  303. package/dist/services/quote/endpoints.d.ts.map +1 -0
  304. package/dist/services/quote/index.d.ts +378 -0
  305. package/dist/services/quote/index.d.ts.map +1 -0
  306. package/dist/services/quote/module.d.ts +11 -0
  307. package/dist/services/quote/module.d.ts.map +1 -0
  308. package/dist/services/quote/quote.service.d.ts +346 -0
  309. package/dist/services/quote/quote.service.d.ts.map +1 -0
  310. package/dist/services/quote/types.d.ts +160 -0
  311. package/dist/services/quote/types.d.ts.map +1 -0
  312. package/dist/services/supplier/__mocks__/supplier-mocks.d.ts +49 -0
  313. package/dist/services/supplier/__mocks__/supplier-mocks.d.ts.map +1 -0
  314. package/dist/services/supplier/definitions.d.ts +30 -0
  315. package/dist/services/supplier/definitions.d.ts.map +1 -0
  316. package/dist/services/supplier/endpoints.d.ts +14 -0
  317. package/dist/services/supplier/endpoints.d.ts.map +1 -0
  318. package/dist/services/supplier/index.d.ts +102 -0
  319. package/dist/services/supplier/index.d.ts.map +1 -0
  320. package/dist/services/supplier/module.d.ts +11 -0
  321. package/dist/services/supplier/module.d.ts.map +1 -0
  322. package/dist/services/supplier/supplier.service.d.ts +20 -0
  323. package/dist/services/supplier/supplier.service.d.ts.map +1 -0
  324. package/dist/services/supplier/types.d.ts +58 -0
  325. package/dist/services/supplier/types.d.ts.map +1 -0
  326. package/dist/services/types.d.ts +81 -0
  327. package/dist/services/types.d.ts.map +1 -0
  328. package/dist/settings/fetch-instance.d.ts +30 -0
  329. package/dist/settings/fetch-instance.d.ts.map +1 -0
  330. package/package.json +12 -10
  331. package/dist/djust-b2b-djust-front-sdk-3.0.0-beta.2.tgz +0 -0
@@ -0,0 +1,452 @@
1
+ /**
2
+ * # Product Service
3
+ *
4
+ * Complete product catalog management for B2B e-commerce.
5
+ *
6
+ * ## Features
7
+ * - Full-text search with autocomplete
8
+ * - Advanced filtering and faceted navigation
9
+ * - Product variants and attributes
10
+ * - Offers and supplier pricing
11
+ * - Customer reviews and ratings
12
+ *
13
+ * @module services/product
14
+ * @since 2.17.0
15
+ */
16
+ import { BaseService } from "../base.service";
17
+ import type { RequestContext } from "../../client/transport";
18
+ import type { AutoCompleteSearchParams, GetProductsListParams, GetProductParams, GetProductVariantOffersParams, GetProductVariantSuppliersParams, GetProductOffersParams, GetProductPaginatedOffersParams, GetRelatedProductsParams, GetProductReviewsParams, GetProductStatReviewsParams, GetProductVariantAttributesParams, CreateProductReviewParams, UpdateProductReviewParams, SearchProductsResponse, GetProductsListResponse, GetProductVariantOffersResponse, GetProductVariantSuppliersResponse, GetProductOffersResponse, GetProductPaginatedOffersResponse, GetRelatedProductsResponse, GetProductReviewsResponse, GetProductStatReviewsResponse, GetProductVariantAttributesResponse, CreateProductReviewResponse, UpdateProductReviewResponse } from "./types";
19
+ /**
20
+ * Service for product catalog operations.
21
+ *
22
+ * Provides complete product management:
23
+ * - Search and discovery
24
+ * - Product details and variants
25
+ * - Offers and pricing from multiple suppliers
26
+ * - Reviews and ratings
27
+ *
28
+ * @example
29
+ * ```typescript
30
+ * import { createDjustClient } from '@djust-b2b/djust-front-sdk';
31
+ *
32
+ * const client = createDjustClient({ baseUrl, clientId, apiKey });
33
+ *
34
+ * // Autocomplete search
35
+ * const results = await client.product.autoCompleteSearch({
36
+ * input: 'laptop',
37
+ * locale: 'en-US',
38
+ * currency: 'USD',
39
+ * });
40
+ *
41
+ * // Get product details
42
+ * const product = await client.product.getProduct({
43
+ * productIdentifier: 'SKU-12345',
44
+ * productIdType: 'sku',
45
+ * locale: 'en-US',
46
+ * });
47
+ * ```
48
+ */
49
+ export declare class ProductService extends BaseService {
50
+ readonly serviceName = "product";
51
+ /**
52
+ * Search products with autocomplete suggestions.
53
+ *
54
+ * Returns matching products based on partial text input, ideal for
55
+ * implementing search-as-you-type functionality.
56
+ *
57
+ * **Endpoint**: `GET /v1/shop/products/autocomplete [PROD-100]`
58
+ *
59
+ * | Parameter | Type | Required | Description |
60
+ * |---------------|------------------|----------|--------------------------------------|
61
+ * | `input` | `string` | Yes | Search query text |
62
+ * | `locale` | `string` | Yes | Locale for translations (e.g., en-US)|
63
+ * | `currency` | `string` | Yes | Currency code for prices (e.g., USD) |
64
+ * | `aggregation` | `boolean` | No | Include faceted aggregations |
65
+ * | `productTags` | `string[]` | No | Filter by product tags |
66
+ * | `pageable` | `PageableParams` | No | Pagination settings |
67
+ *
68
+ * @example
69
+ * ```typescript
70
+ * const results = await client.product.autoCompleteSearch({
71
+ * input: 'laptop pro',
72
+ * locale: 'en-US',
73
+ * currency: 'USD',
74
+ * aggregation: true,
75
+ * pageable: { page: 0, size: 10 },
76
+ * });
77
+ *
78
+ * console.log(`Found ${results.totalElements} products`);
79
+ * results.content.forEach(product => {
80
+ * console.log(`${product.name} - ${product.price} ${results.currency}`);
81
+ * });
82
+ * ```
83
+ *
84
+ * @param params - Search parameters
85
+ * @param context - Optional SSR request context
86
+ * @throws {ValidationError} If required parameters are missing
87
+ * @returns Search results with products and optional aggregations
88
+ */
89
+ autoCompleteSearch(params: AutoCompleteSearchParams, context?: RequestContext): Promise<SearchProductsResponse>;
90
+ /**
91
+ * Get paginated list of products with advanced filtering.
92
+ *
93
+ * Supports faceted search, category navigation, and multiple filter criteria.
94
+ *
95
+ * **Endpoint**: `GET /v1/shop/products [PROD-101]`
96
+ *
97
+ * | Parameter | Type | Required | Description |
98
+ * |------------|------------------|----------|--------------------------------------|
99
+ * | `locale` | `string` | Yes | Locale for translations |
100
+ * | `filters` | `ProductFilters` | No | Advanced filter criteria |
101
+ * | `pageable` | `PageableParams` | No | Pagination and sorting |
102
+ *
103
+ * @example
104
+ * ```typescript
105
+ * const { content: products, totalElements } = await client.product.getProductsList({
106
+ * locale: 'fr-FR',
107
+ * filters: {
108
+ * categoryId: 'electronics',
109
+ * priceMin: 100,
110
+ * priceMax: 500,
111
+ * inStock: true,
112
+ * },
113
+ * pageable: { page: 0, size: 20, sort: 'price,asc' },
114
+ * });
115
+ * ```
116
+ *
117
+ * @param params - Search parameters with filters
118
+ * @param context - Optional SSR request context
119
+ * @throws {ValidationError} If locale is missing
120
+ * @returns Paginated product list with total count
121
+ */
122
+ getProductsList(params: GetProductsListParams, context?: RequestContext): Promise<GetProductsListResponse>;
123
+ /**
124
+ * Get detailed product information by identifier.
125
+ *
126
+ * Retrieves full product details including description, images,
127
+ * specifications, and available variants.
128
+ *
129
+ * **Endpoint**: `GET /v1/shop/products/{identifier} [PROD-102]`
130
+ *
131
+ * | Parameter | Type | Required | Description |
132
+ * |---------------------|----------|----------|--------------------------------|
133
+ * | `productIdentifier` | `string` | Yes | Product ID, SKU, or EAN |
134
+ * | `productIdType` | `string` | Yes | Identifier type: id, sku, ean |
135
+ * | `locale` | `string` | No | Locale for translations |
136
+ *
137
+ * @example
138
+ * ```typescript
139
+ * // Get by SKU
140
+ * const product = await client.product.getProduct({
141
+ * productIdentifier: 'LAPTOP-PRO-15',
142
+ * productIdType: 'sku',
143
+ * locale: 'en-US',
144
+ * });
145
+ *
146
+ * console.log(product.name);
147
+ * console.log(product.description);
148
+ * console.log(product.variants);
149
+ * ```
150
+ *
151
+ * @param params - Product identification parameters
152
+ * @param context - Optional SSR request context
153
+ * @throws {ValidationError} If required parameters are missing
154
+ * @throws {NotFoundError} If product is not found
155
+ * @returns Full product details
156
+ */
157
+ getProduct(params: GetProductParams, context?: RequestContext): Promise<GetProductsListResponse>;
158
+ /**
159
+ * Get all offers available for a specific product variant.
160
+ *
161
+ * Returns pricing from all suppliers for a given variant, allowing
162
+ * customers to compare prices and select preferred suppliers.
163
+ *
164
+ * **Endpoint**: `GET /v1/shop/products/{identifier}/offers [PROD-103]`
165
+ *
166
+ * | Parameter | Type | Required | Description |
167
+ * |---------------------|-----------|----------|-------------------------------|
168
+ * | `productIdentifier` | `string` | Yes | Variant ID or SKU |
169
+ * | `productIdType` | `string` | Yes | Identifier type |
170
+ * | `currency` | `string` | No | Currency for prices |
171
+ * | `withoutPrice` | `boolean` | No | Exclude price calculation |
172
+ *
173
+ * @example
174
+ * ```typescript
175
+ * const offers = await client.product.getProductVariantOffers({
176
+ * productIdentifier: 'LAPTOP-PRO-15-BLACK',
177
+ * productIdType: 'sku',
178
+ * currency: 'EUR',
179
+ * });
180
+ *
181
+ * offers.forEach(offer => {
182
+ * console.log(`${offer.supplierName}: ${offer.price} ${offer.currency}`);
183
+ * console.log(` Stock: ${offer.stock}, Delivery: ${offer.deliveryTime}`);
184
+ * });
185
+ * ```
186
+ *
187
+ * @param params - Variant identification parameters
188
+ * @param context - Optional SSR request context
189
+ * @throws {ValidationError} If required parameters are missing
190
+ * @returns List of offers from all suppliers
191
+ */
192
+ getProductVariantOffers(params: GetProductVariantOffersParams, context?: RequestContext): Promise<GetProductVariantOffersResponse>;
193
+ /**
194
+ * Get list of suppliers offering a specific product variant.
195
+ *
196
+ * **Endpoint**: `GET /v1/shop/product-variants/{id}/suppliers [PROD-104]`
197
+ *
198
+ * | Parameter | Type | Required | Description |
199
+ * |--------------------|----------|----------|----------------------|
200
+ * | `productVariantId` | `string` | Yes | Product variant ID |
201
+ *
202
+ * @example
203
+ * ```typescript
204
+ * const suppliers = await client.product.getProductVariantSuppliers({
205
+ * productVariantId: '123e4567-e89b-12d3-a456-426614174000',
206
+ * });
207
+ *
208
+ * suppliers.forEach(supplier => {
209
+ * console.log(`${supplier.name} - ${supplier.rating} stars`);
210
+ * });
211
+ * ```
212
+ *
213
+ * @param params - Variant identification
214
+ * @param context - Optional SSR request context
215
+ * @throws {ValidationError} If productVariantId is missing
216
+ * @returns List of suppliers with their details
217
+ */
218
+ getProductVariantSuppliers(params: GetProductVariantSuppliersParams, context?: RequestContext): Promise<GetProductVariantSuppliersResponse>;
219
+ /**
220
+ * Get all offers for a product (all variants).
221
+ *
222
+ * @deprecated Use `getProductPaginatedOffers` for better performance
223
+ *
224
+ * **Endpoint**: `GET /v1/shop/products/{identifier}/offers [PROD-105]`
225
+ *
226
+ * @param params - Product identification parameters
227
+ * @param context - Optional SSR request context
228
+ * @returns List of all offers
229
+ */
230
+ getProductOffers(params: GetProductOffersParams, context?: RequestContext): Promise<GetProductOffersResponse>;
231
+ /**
232
+ * Get paginated offers for a product.
233
+ *
234
+ * Recommended method for fetching product offers with pagination support.
235
+ *
236
+ * **Endpoint**: `GET /v1/shop/products/{identifier}/offers/paginated [PROD-106]`
237
+ *
238
+ * | Parameter | Type | Required | Description |
239
+ * |---------------------|------------------|----------|--------------------------|
240
+ * | `productIdentifier` | `string` | Yes | Product ID or SKU |
241
+ * | `productIdType` | `string` | Yes | Identifier type |
242
+ * | `currency` | `string` | No | Currency for prices |
243
+ * | `locale` | `string` | No | Locale for translations |
244
+ * | `withoutPrices` | `boolean` | No | Exclude price data |
245
+ * | `pageable` | `PageableParams` | No | Pagination settings |
246
+ *
247
+ * @example
248
+ * ```typescript
249
+ * const { content: offers, totalElements } = await client.product.getProductPaginatedOffers({
250
+ * productIdentifier: 'LAPTOP-PRO-15',
251
+ * productIdType: 'sku',
252
+ * currency: 'EUR',
253
+ * pageable: { page: 0, size: 10, sort: 'price,asc' },
254
+ * });
255
+ *
256
+ * console.log(`Found ${totalElements} offers`);
257
+ * ```
258
+ *
259
+ * @param params - Product and pagination parameters
260
+ * @param context - Optional SSR request context
261
+ * @throws {ValidationError} If required parameters are missing
262
+ * @returns Paginated offers list
263
+ */
264
+ getProductPaginatedOffers(params: GetProductPaginatedOffersParams, context?: RequestContext): Promise<GetProductPaginatedOffersResponse>;
265
+ /**
266
+ * Get related/recommended products.
267
+ *
268
+ * Returns products related to the specified product, useful for
269
+ * "You may also like" or cross-sell sections.
270
+ *
271
+ * **Endpoint**: `GET /v1/shop/products/{identifier}/related [PROD-107]`
272
+ *
273
+ * | Parameter | Type | Required | Description |
274
+ * |---------------------|------------------|----------|--------------------------|
275
+ * | `productIdentifier` | `string` | Yes | Product ID or SKU |
276
+ * | `productIdType` | `string` | Yes | Identifier type |
277
+ * | `locale` | `string` | No | Locale for translations |
278
+ * | `currency` | `string` | No | Currency for prices |
279
+ * | `pageable` | `PageableParams` | No | Pagination settings |
280
+ *
281
+ * @example
282
+ * ```typescript
283
+ * const relatedProducts = await client.product.getRelatedProducts({
284
+ * productIdentifier: 'LAPTOP-PRO-15',
285
+ * productIdType: 'sku',
286
+ * locale: 'en-US',
287
+ * currency: 'USD',
288
+ * pageable: { page: 0, size: 4 },
289
+ * });
290
+ * ```
291
+ *
292
+ * @param params - Product identification and pagination
293
+ * @param context - Optional SSR request context
294
+ * @throws {ValidationError} If required parameters are missing
295
+ * @returns List of related products
296
+ */
297
+ getRelatedProducts(params: GetRelatedProductsParams, context?: RequestContext): Promise<GetRelatedProductsResponse>;
298
+ /**
299
+ * Get customer reviews for a product.
300
+ *
301
+ * **Endpoint**: `GET /v1/shop/products/{identifier}/reviews [PROD-108]`
302
+ *
303
+ * | Parameter | Type | Required | Description |
304
+ * |---------------------|----------|----------|--------------------------|
305
+ * | `productIdentifier` | `string` | Yes | Product ID or SKU |
306
+ * | `productIdType` | `string` | Yes | Identifier type |
307
+ *
308
+ * @example
309
+ * ```typescript
310
+ * const reviews = await client.product.getProductReviews({
311
+ * productIdentifier: 'LAPTOP-PRO-15',
312
+ * productIdType: 'sku',
313
+ * });
314
+ *
315
+ * reviews.forEach(review => {
316
+ * console.log(`${review.rating}/5 - ${review.message}`);
317
+ * console.log(`By ${review.authorName} on ${review.createdAt}`);
318
+ * });
319
+ * ```
320
+ *
321
+ * @param params - Product identification parameters
322
+ * @param context - Optional SSR request context
323
+ * @throws {ValidationError} If required parameters are missing
324
+ * @returns List of product reviews
325
+ */
326
+ getProductReviews(params: GetProductReviewsParams, context?: RequestContext): Promise<GetProductReviewsResponse>;
327
+ /**
328
+ * Get review statistics for a product.
329
+ *
330
+ * Returns aggregated statistics including average rating and
331
+ * rating distribution.
332
+ *
333
+ * **Endpoint**: `GET /v1/shop/products/{identifier}/reviews/stats [PROD-109]`
334
+ *
335
+ * | Parameter | Type | Required | Description |
336
+ * |---------------------|----------|----------|--------------------------|
337
+ * | `productIdentifier` | `string` | Yes | Product ID or SKU |
338
+ * | `productIdType` | `string` | Yes | Identifier type |
339
+ *
340
+ * @example
341
+ * ```typescript
342
+ * const stats = await client.product.getProductStatReviews({
343
+ * productIdentifier: 'LAPTOP-PRO-15',
344
+ * productIdType: 'sku',
345
+ * });
346
+ *
347
+ * console.log(`Average: ${stats.averageRating}/5`);
348
+ * console.log(`Total reviews: ${stats.totalReviews}`);
349
+ * console.log(`5 stars: ${stats.distribution[5]} reviews`);
350
+ * ```
351
+ *
352
+ * @param params - Product identification parameters
353
+ * @param context - Optional SSR request context
354
+ * @throws {ValidationError} If required parameters are missing
355
+ * @returns Review statistics with distribution
356
+ */
357
+ getProductStatReviews(params: GetProductStatReviewsParams, context?: RequestContext): Promise<GetProductStatReviewsResponse>;
358
+ /**
359
+ * Get attributes for a product variant.
360
+ *
361
+ * Returns variant-specific attributes like color, size, material, etc.
362
+ *
363
+ * **Endpoint**: `GET /v1/shop/products/{identifier}/variant-attributes [PROD-110]`
364
+ *
365
+ * | Parameter | Type | Required | Description |
366
+ * |---------------------|----------|----------|--------------------------|
367
+ * | `productIdentifier` | `string` | Yes | Product/variant ID |
368
+ * | `productIdType` | `string` | Yes | Identifier type |
369
+ * | `locale` | `string` | No | Locale for translations |
370
+ *
371
+ * @example
372
+ * ```typescript
373
+ * const attributes = await client.product.getProductVariantAttributes({
374
+ * productIdentifier: 'LAPTOP-PRO-15-BLACK',
375
+ * productIdType: 'sku',
376
+ * locale: 'en-US',
377
+ * });
378
+ *
379
+ * attributes.forEach(attr => {
380
+ * console.log(`${attr.name}: ${attr.value}`);
381
+ * });
382
+ * ```
383
+ *
384
+ * @param params - Variant identification parameters
385
+ * @param context - Optional SSR request context
386
+ * @throws {ValidationError} If required parameters are missing
387
+ * @returns List of variant attributes
388
+ */
389
+ getProductVariantAttributes(params: GetProductVariantAttributesParams, context?: RequestContext): Promise<GetProductVariantAttributesResponse>;
390
+ /**
391
+ * Create a new product review.
392
+ *
393
+ * Allows authenticated customers to submit reviews for purchased products.
394
+ *
395
+ * **Endpoint**: `POST /v1/shop/product-reviews [PROD-111]`
396
+ *
397
+ * | Parameter | Type | Required | Description |
398
+ * |--------------|----------|----------|--------------------------------|
399
+ * | `productSku` | `string` | Yes | Product SKU being reviewed |
400
+ * | `rating` | `number` | Yes | Rating from 1 to 5 |
401
+ * | `message` | `string` | Yes | Review text content |
402
+ *
403
+ * @example
404
+ * ```typescript
405
+ * const review = await client.product.createProductReview({
406
+ * productSku: 'LAPTOP-PRO-15',
407
+ * rating: 5,
408
+ * message: 'Excellent laptop! Great performance and build quality.',
409
+ * });
410
+ *
411
+ * console.log(`Review created with ID: ${review.id}`);
412
+ * ```
413
+ *
414
+ * @param params - Review content parameters
415
+ * @param context - Optional SSR request context
416
+ * @throws {ValidationError} If required parameters are missing
417
+ * @throws {AuthError} If user is not authenticated
418
+ * @returns Created review details
419
+ */
420
+ createProductReview(params: CreateProductReviewParams, context?: RequestContext): Promise<CreateProductReviewResponse>;
421
+ /**
422
+ * Update an existing product review.
423
+ *
424
+ * Allows users to modify their own reviews.
425
+ *
426
+ * **Endpoint**: `PUT /v1/shop/product-reviews/{reviewId} [PROD-112]`
427
+ *
428
+ * | Parameter | Type | Required | Description |
429
+ * |-------------------|----------|----------|--------------------------|
430
+ * | `productReviewId` | `string` | Yes | Review ID to update |
431
+ * | `rating` | `number` | Yes | New rating (1-5) |
432
+ * | `message` | `string` | Yes | New review text |
433
+ *
434
+ * @example
435
+ * ```typescript
436
+ * const updated = await client.product.updateProductReview({
437
+ * productReviewId: 'review-123',
438
+ * rating: 4,
439
+ * message: 'Updated review after more usage. Still great, minor issues.',
440
+ * });
441
+ * ```
442
+ *
443
+ * @param params - Review update parameters
444
+ * @param context - Optional SSR request context
445
+ * @throws {ValidationError} If required parameters are missing
446
+ * @throws {AuthError} If user is not the review author
447
+ * @throws {NotFoundError} If review doesn't exist
448
+ * @returns Updated review details
449
+ */
450
+ updateProductReview(params: UpdateProductReviewParams, context?: RequestContext): Promise<UpdateProductReviewResponse>;
451
+ }
452
+ //# sourceMappingURL=product.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product.service.d.ts","sourceRoot":"","sources":["../../../src/services/product/product.service.ts"],"names":[],"mappings":"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"}