@djust-b2b/djust-front-sdk 3.0.0-beta.9 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (715) hide show
  1. package/README.md +34 -30
  2. package/dist/.tsbuildinfo +1 -1
  3. package/dist/.tsbuildinfo-esm +1 -1
  4. package/dist/client/create-client.d.ts +18 -0
  5. package/dist/client/create-client.d.ts.map +1 -1
  6. package/dist/client/transport.d.ts +5 -0
  7. package/dist/client/transport.d.ts.map +1 -1
  8. package/dist/errors/classes/not-found.error.d.ts +1 -1
  9. package/dist/errors/classes/not-found.error.d.ts.map +1 -1
  10. package/dist/errors/factory.d.ts.map +1 -1
  11. package/dist/errors/helpers/djust-api-error.d.ts +29 -0
  12. package/dist/errors/helpers/djust-api-error.d.ts.map +1 -0
  13. package/dist/errors/types.d.ts +4 -0
  14. package/dist/errors/types.d.ts.map +1 -1
  15. package/dist/index.d.ts +42 -40
  16. package/dist/index.d.ts.map +1 -1
  17. package/dist/index.mjs +269 -63
  18. package/dist/interfaces/index.d.ts +15 -3
  19. package/dist/interfaces/index.d.ts.map +1 -1
  20. package/dist/services/base.service.d.ts +2 -0
  21. package/dist/services/base.service.d.ts.map +1 -1
  22. package/dist/services/commercial-order/commercial-order.service.d.ts +8 -5
  23. package/dist/services/commercial-order/commercial-order.service.d.ts.map +1 -1
  24. package/dist/services/commercial-order/definitions.d.ts +13 -0
  25. package/dist/services/commercial-order/definitions.d.ts.map +1 -1
  26. package/dist/services/commercial-order/index.d.ts +30 -19
  27. package/dist/services/commercial-order/index.d.ts.map +1 -1
  28. package/dist/services/commercial-order/module.d.ts +1 -1
  29. package/dist/services/commercial-order/module.d.ts.map +1 -1
  30. package/dist/services/commercial-order/types.d.ts +1 -0
  31. package/dist/services/commercial-order/types.d.ts.map +1 -1
  32. package/dist/services/logistic-order/definitions.d.ts +23 -1
  33. package/dist/services/logistic-order/definitions.d.ts.map +1 -1
  34. package/dist/services/logistic-order/endpoints.d.ts +1 -0
  35. package/dist/services/logistic-order/endpoints.d.ts.map +1 -1
  36. package/dist/services/logistic-order/index.d.ts +77 -1
  37. package/dist/services/logistic-order/index.d.ts.map +1 -1
  38. package/dist/services/logistic-order/logistic-order.service.d.ts +6 -1
  39. package/dist/services/logistic-order/logistic-order.service.d.ts.map +1 -1
  40. package/dist/services/logistic-order/module.d.ts +1 -1
  41. package/dist/services/logistic-order/module.d.ts.map +1 -1
  42. package/dist/services/logistic-order/types.d.ts +9 -0
  43. package/dist/services/logistic-order/types.d.ts.map +1 -1
  44. package/dist/services/operation/definitions.d.ts +1 -18
  45. package/dist/services/operation/definitions.d.ts.map +1 -1
  46. package/dist/services/payment/definitions.d.ts +0 -10
  47. package/dist/services/payment/definitions.d.ts.map +1 -1
  48. package/dist/services/product/definitions.d.ts +1 -0
  49. package/dist/services/product/definitions.d.ts.map +1 -1
  50. package/dist/services/product/index.d.ts +6 -5
  51. package/dist/services/product/index.d.ts.map +1 -1
  52. package/dist/services/product-variant/definitions.d.ts +3 -142
  53. package/dist/services/product-variant/definitions.d.ts.map +1 -1
  54. package/dist/services/quote/index.d.ts +1 -1
  55. package/dist/settings/fetch-instance.d.ts.map +1 -1
  56. package/dist/settings/sdk-version.d.ts +3 -0
  57. package/dist/settings/sdk-version.d.ts.map +1 -0
  58. package/lib/.tsbuildinfo +1 -0
  59. package/lib/client/create-client.d.ts +251 -0
  60. package/lib/client/create-client.d.ts.map +1 -0
  61. package/lib/client/create-client.js +233 -0
  62. package/lib/client/create-client.js.map +1 -0
  63. package/lib/client/index.d.ts +14 -0
  64. package/lib/client/index.d.ts.map +1 -0
  65. package/lib/client/index.js +91 -0
  66. package/lib/client/index.js.map +1 -0
  67. package/lib/client/performance.d.ts +203 -0
  68. package/lib/client/performance.d.ts.map +1 -0
  69. package/lib/client/performance.js +409 -0
  70. package/lib/client/performance.js.map +1 -0
  71. package/lib/client/transport.d.ts +372 -0
  72. package/lib/client/transport.d.ts.map +1 -0
  73. package/lib/client/transport.js +735 -0
  74. package/lib/client/transport.js.map +1 -0
  75. package/lib/errors/base.d.ts +101 -0
  76. package/lib/errors/base.d.ts.map +1 -0
  77. package/lib/errors/base.js +145 -0
  78. package/lib/errors/base.js.map +1 -0
  79. package/lib/errors/classes/auth.error.d.ts +64 -0
  80. package/lib/errors/classes/auth.error.d.ts.map +1 -0
  81. package/lib/errors/classes/auth.error.js +116 -0
  82. package/lib/errors/classes/auth.error.js.map +1 -0
  83. package/lib/errors/classes/forbidden.error.d.ts +52 -0
  84. package/lib/errors/classes/forbidden.error.d.ts.map +1 -0
  85. package/lib/errors/classes/forbidden.error.js +90 -0
  86. package/lib/errors/classes/forbidden.error.js.map +1 -0
  87. package/lib/errors/classes/index.d.ts +17 -0
  88. package/lib/errors/classes/index.d.ts.map +1 -0
  89. package/lib/errors/classes/index.js +29 -0
  90. package/lib/errors/classes/index.js.map +1 -0
  91. package/lib/errors/classes/network.error.d.ts +63 -0
  92. package/lib/errors/classes/network.error.d.ts.map +1 -0
  93. package/lib/errors/classes/network.error.js +122 -0
  94. package/lib/errors/classes/network.error.js.map +1 -0
  95. package/lib/errors/classes/not-found.error.d.ts +58 -0
  96. package/lib/errors/classes/not-found.error.d.ts.map +1 -0
  97. package/lib/errors/classes/not-found.error.js +120 -0
  98. package/lib/errors/classes/not-found.error.js.map +1 -0
  99. package/lib/errors/classes/rate-limit.error.d.ts +49 -0
  100. package/lib/errors/classes/rate-limit.error.d.ts.map +1 -0
  101. package/lib/errors/classes/rate-limit.error.js +107 -0
  102. package/lib/errors/classes/rate-limit.error.js.map +1 -0
  103. package/lib/errors/classes/server.error.d.ts +63 -0
  104. package/lib/errors/classes/server.error.d.ts.map +1 -0
  105. package/lib/errors/classes/server.error.js +156 -0
  106. package/lib/errors/classes/server.error.js.map +1 -0
  107. package/lib/errors/classes/timeout.error.d.ts +64 -0
  108. package/lib/errors/classes/timeout.error.d.ts.map +1 -0
  109. package/lib/errors/classes/timeout.error.js +90 -0
  110. package/lib/errors/classes/timeout.error.js.map +1 -0
  111. package/lib/errors/classes/unexpected.error.d.ts +70 -0
  112. package/lib/errors/classes/unexpected.error.d.ts.map +1 -0
  113. package/lib/errors/classes/unexpected.error.js +105 -0
  114. package/lib/errors/classes/unexpected.error.js.map +1 -0
  115. package/lib/errors/classes/validation.error.d.ts +68 -0
  116. package/lib/errors/classes/validation.error.d.ts.map +1 -0
  117. package/lib/errors/classes/validation.error.js +103 -0
  118. package/lib/errors/classes/validation.error.js.map +1 -0
  119. package/lib/errors/codes.d.ts +111 -0
  120. package/lib/errors/codes.d.ts.map +1 -0
  121. package/lib/errors/codes.js +143 -0
  122. package/lib/errors/codes.js.map +1 -0
  123. package/lib/errors/compat.d.ts +99 -0
  124. package/lib/errors/compat.d.ts.map +1 -0
  125. package/lib/errors/compat.js +280 -0
  126. package/lib/errors/compat.js.map +1 -0
  127. package/lib/errors/factory.d.ts +33 -0
  128. package/lib/errors/factory.d.ts.map +1 -0
  129. package/lib/errors/factory.js +298 -0
  130. package/lib/errors/factory.js.map +1 -0
  131. package/lib/errors/guards.d.ts +142 -0
  132. package/lib/errors/guards.d.ts.map +1 -0
  133. package/lib/errors/guards.js +281 -0
  134. package/lib/errors/guards.js.map +1 -0
  135. package/lib/errors/helpers/djust-api-error.d.ts +29 -0
  136. package/lib/errors/helpers/djust-api-error.d.ts.map +1 -0
  137. package/lib/errors/helpers/djust-api-error.js +49 -0
  138. package/lib/errors/helpers/djust-api-error.js.map +1 -0
  139. package/lib/errors/index.d.ts +25 -0
  140. package/lib/errors/index.d.ts.map +1 -0
  141. package/lib/errors/index.js +89 -0
  142. package/lib/errors/index.js.map +1 -0
  143. package/lib/errors/types.d.ts +104 -0
  144. package/lib/errors/types.d.ts.map +1 -0
  145. package/lib/errors/types.js +10 -0
  146. package/lib/errors/types.js.map +1 -0
  147. package/lib/helpers/index.d.ts +42 -0
  148. package/lib/helpers/index.d.ts.map +1 -0
  149. package/lib/helpers/index.js +102 -0
  150. package/lib/helpers/index.js.map +1 -0
  151. package/lib/helpers/parameters-validation.d.ts +3 -0
  152. package/lib/helpers/parameters-validation.d.ts.map +1 -0
  153. package/lib/helpers/parameters-validation.js +22 -0
  154. package/lib/helpers/parameters-validation.js.map +1 -0
  155. package/lib/helpers/utils.d.ts +5 -0
  156. package/lib/helpers/utils.d.ts.map +1 -0
  157. package/lib/helpers/utils.js +30 -0
  158. package/lib/helpers/utils.js.map +1 -0
  159. package/lib/index.d.ts +267 -0
  160. package/lib/index.d.ts.map +1 -0
  161. package/lib/index.js +182 -0
  162. package/lib/index.js.map +1 -0
  163. package/lib/interfaces/index.d.ts +43 -0
  164. package/lib/interfaces/index.d.ts.map +1 -0
  165. package/lib/interfaces/index.js +36 -0
  166. package/lib/interfaces/index.js.map +1 -0
  167. package/lib/interfaces/models/address.d.ts +61 -0
  168. package/lib/interfaces/models/address.d.ts.map +1 -0
  169. package/lib/interfaces/models/address.js +3 -0
  170. package/lib/interfaces/models/address.js.map +1 -0
  171. package/lib/interfaces/models/attribute.d.ts +31 -0
  172. package/lib/interfaces/models/attribute.d.ts.map +1 -0
  173. package/lib/interfaces/models/attribute.js +3 -0
  174. package/lib/interfaces/models/attribute.js.map +1 -0
  175. package/lib/interfaces/models/auth.d.ts +37 -0
  176. package/lib/interfaces/models/auth.d.ts.map +1 -0
  177. package/lib/interfaces/models/auth.js +3 -0
  178. package/lib/interfaces/models/auth.js.map +1 -0
  179. package/lib/interfaces/models/cart.d.ts +64 -0
  180. package/lib/interfaces/models/cart.d.ts.map +1 -0
  181. package/lib/interfaces/models/cart.js +3 -0
  182. package/lib/interfaces/models/cart.js.map +1 -0
  183. package/lib/interfaces/models/common.d.ts +68 -0
  184. package/lib/interfaces/models/common.d.ts.map +1 -0
  185. package/lib/interfaces/models/common.js +3 -0
  186. package/lib/interfaces/models/common.js.map +1 -0
  187. package/lib/interfaces/models/custom-field.d.ts +57 -0
  188. package/lib/interfaces/models/custom-field.d.ts.map +1 -0
  189. package/lib/interfaces/models/custom-field.js +3 -0
  190. package/lib/interfaces/models/custom-field.js.map +1 -0
  191. package/lib/interfaces/models/customer-account.d.ts +52 -0
  192. package/lib/interfaces/models/customer-account.d.ts.map +1 -0
  193. package/lib/interfaces/models/customer-account.js +3 -0
  194. package/lib/interfaces/models/customer-account.js.map +1 -0
  195. package/lib/interfaces/models/customer-organisation.d.ts +14 -0
  196. package/lib/interfaces/models/customer-organisation.d.ts.map +1 -0
  197. package/lib/interfaces/models/customer-organisation.js +3 -0
  198. package/lib/interfaces/models/customer-organisation.js.map +1 -0
  199. package/lib/interfaces/models/customer-user.d.ts +114 -0
  200. package/lib/interfaces/models/customer-user.d.ts.map +1 -0
  201. package/lib/interfaces/models/customer-user.js +3 -0
  202. package/lib/interfaces/models/customer-user.js.map +1 -0
  203. package/lib/interfaces/models/incident.d.ts +37 -0
  204. package/lib/interfaces/models/incident.d.ts.map +1 -0
  205. package/lib/interfaces/models/incident.js +3 -0
  206. package/lib/interfaces/models/incident.js.map +1 -0
  207. package/lib/interfaces/models/navigation-category.d.ts +22 -0
  208. package/lib/interfaces/models/navigation-category.d.ts.map +1 -0
  209. package/lib/interfaces/models/navigation-category.js +3 -0
  210. package/lib/interfaces/models/navigation-category.js.map +1 -0
  211. package/lib/interfaces/models/offer.d.ts +151 -0
  212. package/lib/interfaces/models/offer.d.ts.map +1 -0
  213. package/lib/interfaces/models/offer.js +3 -0
  214. package/lib/interfaces/models/offer.js.map +1 -0
  215. package/lib/interfaces/models/order.d.ts +701 -0
  216. package/lib/interfaces/models/order.d.ts.map +1 -0
  217. package/lib/interfaces/models/order.js +3 -0
  218. package/lib/interfaces/models/order.js.map +1 -0
  219. package/lib/interfaces/models/payment.d.ts +20 -0
  220. package/lib/interfaces/models/payment.d.ts.map +1 -0
  221. package/lib/interfaces/models/payment.js +3 -0
  222. package/lib/interfaces/models/payment.js.map +1 -0
  223. package/lib/interfaces/models/price.d.ts +6 -0
  224. package/lib/interfaces/models/price.d.ts.map +1 -0
  225. package/lib/interfaces/models/price.js +3 -0
  226. package/lib/interfaces/models/price.js.map +1 -0
  227. package/lib/interfaces/models/product.d.ts +243 -0
  228. package/lib/interfaces/models/product.d.ts.map +1 -0
  229. package/lib/interfaces/models/product.js +3 -0
  230. package/lib/interfaces/models/product.js.map +1 -0
  231. package/lib/interfaces/models/quote.d.ts +77 -0
  232. package/lib/interfaces/models/quote.d.ts.map +1 -0
  233. package/lib/interfaces/models/quote.js +3 -0
  234. package/lib/interfaces/models/quote.js.map +1 -0
  235. package/lib/interfaces/models/searchProduct.d.ts +128 -0
  236. package/lib/interfaces/models/searchProduct.d.ts.map +1 -0
  237. package/lib/interfaces/models/searchProduct.js +3 -0
  238. package/lib/interfaces/models/searchProduct.js.map +1 -0
  239. package/lib/interfaces/models/supplier.d.ts +72 -0
  240. package/lib/interfaces/models/supplier.d.ts.map +1 -0
  241. package/lib/interfaces/models/supplier.js +3 -0
  242. package/lib/interfaces/models/supplier.js.map +1 -0
  243. package/lib/services/attributes/attributes.service.d.ts +18 -0
  244. package/lib/services/attributes/attributes.service.d.ts.map +1 -0
  245. package/lib/services/attributes/attributes.service.js +37 -0
  246. package/lib/services/attributes/attributes.service.js.map +1 -0
  247. package/lib/services/attributes/definitions.d.ts +28 -0
  248. package/lib/services/attributes/definitions.d.ts.map +1 -0
  249. package/lib/services/attributes/definitions.js +3 -0
  250. package/lib/services/attributes/definitions.js.map +1 -0
  251. package/lib/services/attributes/endpoints.d.ts +12 -0
  252. package/lib/services/attributes/endpoints.d.ts.map +1 -0
  253. package/lib/services/attributes/endpoints.js +14 -0
  254. package/lib/services/attributes/endpoints.js.map +1 -0
  255. package/lib/services/attributes/index.d.ts +33 -0
  256. package/lib/services/attributes/index.d.ts.map +1 -0
  257. package/lib/services/attributes/index.js +50 -0
  258. package/lib/services/attributes/index.js.map +1 -0
  259. package/lib/services/attributes/module.d.ts +11 -0
  260. package/lib/services/attributes/module.d.ts.map +1 -0
  261. package/lib/services/attributes/module.js +15 -0
  262. package/lib/services/attributes/module.js.map +1 -0
  263. package/lib/services/attributes/types.d.ts +35 -0
  264. package/lib/services/attributes/types.d.ts.map +1 -0
  265. package/lib/services/attributes/types.js +10 -0
  266. package/lib/services/attributes/types.js.map +1 -0
  267. package/lib/services/auth/__mocks__/auth.mocks.d.ts +249 -0
  268. package/lib/services/auth/__mocks__/auth.mocks.d.ts.map +1 -0
  269. package/lib/services/auth/__mocks__/auth.mocks.js +221 -0
  270. package/lib/services/auth/__mocks__/auth.mocks.js.map +1 -0
  271. package/lib/services/auth/auth.service.d.ts +286 -0
  272. package/lib/services/auth/auth.service.d.ts.map +1 -0
  273. package/lib/services/auth/auth.service.js +423 -0
  274. package/lib/services/auth/auth.service.js.map +1 -0
  275. package/lib/services/auth/definitions.d.ts +69 -0
  276. package/lib/services/auth/definitions.d.ts.map +1 -0
  277. package/lib/services/auth/definitions.js +3 -0
  278. package/lib/services/auth/definitions.js.map +1 -0
  279. package/lib/services/auth/definitions.requests.d.ts +25 -0
  280. package/lib/services/auth/definitions.requests.d.ts.map +1 -0
  281. package/lib/services/auth/definitions.requests.js +6 -0
  282. package/lib/services/auth/definitions.requests.js.map +1 -0
  283. package/lib/services/auth/endpoints.d.ts +30 -0
  284. package/lib/services/auth/endpoints.d.ts.map +1 -0
  285. package/lib/services/auth/endpoints.js +32 -0
  286. package/lib/services/auth/endpoints.js.map +1 -0
  287. package/lib/services/auth/index.d.ts +232 -0
  288. package/lib/services/auth/index.d.ts.map +1 -0
  289. package/lib/services/auth/index.js +310 -0
  290. package/lib/services/auth/index.js.map +1 -0
  291. package/lib/services/auth/module.d.ts +11 -0
  292. package/lib/services/auth/module.d.ts.map +1 -0
  293. package/lib/services/auth/module.js +17 -0
  294. package/lib/services/auth/module.js.map +1 -0
  295. package/lib/services/auth/types.d.ts +124 -0
  296. package/lib/services/auth/types.d.ts.map +1 -0
  297. package/lib/services/auth/types.js +10 -0
  298. package/lib/services/auth/types.js.map +1 -0
  299. package/lib/services/base.service.d.ts +83 -0
  300. package/lib/services/base.service.d.ts.map +1 -0
  301. package/lib/services/base.service.js +121 -0
  302. package/lib/services/base.service.js.map +1 -0
  303. package/lib/services/cart/cart.service.d.ts +443 -0
  304. package/lib/services/cart/cart.service.d.ts.map +1 -0
  305. package/lib/services/cart/cart.service.js +551 -0
  306. package/lib/services/cart/cart.service.js.map +1 -0
  307. package/lib/services/cart/definitions.d.ts +84 -0
  308. package/lib/services/cart/definitions.d.ts.map +1 -0
  309. package/lib/services/cart/definitions.js +3 -0
  310. package/lib/services/cart/definitions.js.map +1 -0
  311. package/lib/services/cart/endpoints.d.ts +24 -0
  312. package/lib/services/cart/endpoints.d.ts.map +1 -0
  313. package/lib/services/cart/endpoints.js +26 -0
  314. package/lib/services/cart/endpoints.js.map +1 -0
  315. package/lib/services/cart/index.d.ts +330 -0
  316. package/lib/services/cart/index.d.ts.map +1 -0
  317. package/lib/services/cart/index.js +464 -0
  318. package/lib/services/cart/index.js.map +1 -0
  319. package/lib/services/cart/module.d.ts +11 -0
  320. package/lib/services/cart/module.d.ts.map +1 -0
  321. package/lib/services/cart/module.js +17 -0
  322. package/lib/services/cart/module.js.map +1 -0
  323. package/lib/services/cart/types.d.ts +236 -0
  324. package/lib/services/cart/types.d.ts.map +1 -0
  325. package/lib/services/cart/types.js +10 -0
  326. package/lib/services/cart/types.js.map +1 -0
  327. package/lib/services/commercial-order/commercial-order.service.d.ts +435 -0
  328. package/lib/services/commercial-order/commercial-order.service.d.ts.map +1 -0
  329. package/lib/services/commercial-order/commercial-order.service.js +690 -0
  330. package/lib/services/commercial-order/commercial-order.service.js.map +1 -0
  331. package/lib/services/commercial-order/definitions.d.ts +182 -0
  332. package/lib/services/commercial-order/definitions.d.ts.map +1 -0
  333. package/lib/services/commercial-order/definitions.js +3 -0
  334. package/lib/services/commercial-order/definitions.js.map +1 -0
  335. package/lib/services/commercial-order/endpoints.d.ts +28 -0
  336. package/lib/services/commercial-order/endpoints.d.ts.map +1 -0
  337. package/lib/services/commercial-order/endpoints.js +33 -0
  338. package/lib/services/commercial-order/endpoints.js.map +1 -0
  339. package/lib/services/commercial-order/index.d.ts +721 -0
  340. package/lib/services/commercial-order/index.d.ts.map +1 -0
  341. package/lib/services/commercial-order/index.js +986 -0
  342. package/lib/services/commercial-order/index.js.map +1 -0
  343. package/lib/services/commercial-order/module.d.ts +11 -0
  344. package/lib/services/commercial-order/module.d.ts.map +1 -0
  345. package/lib/services/commercial-order/module.js +15 -0
  346. package/lib/services/commercial-order/module.js.map +1 -0
  347. package/lib/services/commercial-order/types.d.ts +244 -0
  348. package/lib/services/commercial-order/types.d.ts.map +1 -0
  349. package/lib/services/commercial-order/types.js +10 -0
  350. package/lib/services/commercial-order/types.js.map +1 -0
  351. package/lib/services/custom-field/custom-field.service.d.ts +23 -0
  352. package/lib/services/custom-field/custom-field.service.d.ts.map +1 -0
  353. package/lib/services/custom-field/custom-field.service.js +64 -0
  354. package/lib/services/custom-field/custom-field.service.js.map +1 -0
  355. package/lib/services/custom-field/definitions.d.ts +107 -0
  356. package/lib/services/custom-field/definitions.d.ts.map +1 -0
  357. package/lib/services/custom-field/definitions.js +61 -0
  358. package/lib/services/custom-field/definitions.js.map +1 -0
  359. package/lib/services/custom-field/endpoints.d.ts +13 -0
  360. package/lib/services/custom-field/endpoints.d.ts.map +1 -0
  361. package/lib/services/custom-field/endpoints.js +15 -0
  362. package/lib/services/custom-field/endpoints.js.map +1 -0
  363. package/lib/services/custom-field/index.d.ts +115 -0
  364. package/lib/services/custom-field/index.d.ts.map +1 -0
  365. package/lib/services/custom-field/index.js +144 -0
  366. package/lib/services/custom-field/index.js.map +1 -0
  367. package/lib/services/custom-field/module.d.ts +11 -0
  368. package/lib/services/custom-field/module.d.ts.map +1 -0
  369. package/lib/services/custom-field/module.js +15 -0
  370. package/lib/services/custom-field/module.js.map +1 -0
  371. package/lib/services/custom-field/types.d.ts +51 -0
  372. package/lib/services/custom-field/types.d.ts.map +1 -0
  373. package/lib/services/custom-field/types.js +10 -0
  374. package/lib/services/custom-field/types.js.map +1 -0
  375. package/lib/services/customer-account/customer-account.service.d.ts +387 -0
  376. package/lib/services/customer-account/customer-account.service.d.ts.map +1 -0
  377. package/lib/services/customer-account/customer-account.service.js +579 -0
  378. package/lib/services/customer-account/customer-account.service.js.map +1 -0
  379. package/lib/services/customer-account/definitions.d.ts +164 -0
  380. package/lib/services/customer-account/definitions.d.ts.map +1 -0
  381. package/lib/services/customer-account/definitions.js +3 -0
  382. package/lib/services/customer-account/definitions.js.map +1 -0
  383. package/lib/services/customer-account/endpoints.d.ts +25 -0
  384. package/lib/services/customer-account/endpoints.d.ts.map +1 -0
  385. package/lib/services/customer-account/endpoints.js +33 -0
  386. package/lib/services/customer-account/endpoints.js.map +1 -0
  387. package/lib/services/customer-account/index.d.ts +656 -0
  388. package/lib/services/customer-account/index.d.ts.map +1 -0
  389. package/lib/services/customer-account/index.js +929 -0
  390. package/lib/services/customer-account/index.js.map +1 -0
  391. package/lib/services/customer-account/module.d.ts +11 -0
  392. package/lib/services/customer-account/module.d.ts.map +1 -0
  393. package/lib/services/customer-account/module.js +15 -0
  394. package/lib/services/customer-account/module.js.map +1 -0
  395. package/lib/services/customer-account/types.d.ts +253 -0
  396. package/lib/services/customer-account/types.d.ts.map +1 -0
  397. package/lib/services/customer-account/types.js +10 -0
  398. package/lib/services/customer-account/types.js.map +1 -0
  399. package/lib/services/customer-user/customer-user.service.d.ts +280 -0
  400. package/lib/services/customer-user/customer-user.service.d.ts.map +1 -0
  401. package/lib/services/customer-user/customer-user.service.js +402 -0
  402. package/lib/services/customer-user/customer-user.service.js.map +1 -0
  403. package/lib/services/customer-user/definitions.d.ts +84 -0
  404. package/lib/services/customer-user/definitions.d.ts.map +1 -0
  405. package/lib/services/customer-user/definitions.js +3 -0
  406. package/lib/services/customer-user/definitions.js.map +1 -0
  407. package/lib/services/customer-user/endpoints.d.ts +19 -0
  408. package/lib/services/customer-user/endpoints.d.ts.map +1 -0
  409. package/lib/services/customer-user/endpoints.js +21 -0
  410. package/lib/services/customer-user/endpoints.js.map +1 -0
  411. package/lib/services/customer-user/index.d.ts +394 -0
  412. package/lib/services/customer-user/index.d.ts.map +1 -0
  413. package/lib/services/customer-user/index.js +528 -0
  414. package/lib/services/customer-user/index.js.map +1 -0
  415. package/lib/services/customer-user/module.d.ts +11 -0
  416. package/lib/services/customer-user/module.d.ts.map +1 -0
  417. package/lib/services/customer-user/module.js +15 -0
  418. package/lib/services/customer-user/module.js.map +1 -0
  419. package/lib/services/customer-user/types.d.ts +118 -0
  420. package/lib/services/customer-user/types.d.ts.map +1 -0
  421. package/lib/services/customer-user/types.js +10 -0
  422. package/lib/services/customer-user/types.js.map +1 -0
  423. package/lib/services/factory.d.ts +104 -0
  424. package/lib/services/factory.d.ts.map +1 -0
  425. package/lib/services/factory.js +89 -0
  426. package/lib/services/factory.js.map +1 -0
  427. package/lib/services/incident/definitions.d.ts +85 -0
  428. package/lib/services/incident/definitions.d.ts.map +1 -0
  429. package/lib/services/incident/definitions.js +3 -0
  430. package/lib/services/incident/definitions.js.map +1 -0
  431. package/lib/services/incident/endpoints.d.ts +17 -0
  432. package/lib/services/incident/endpoints.d.ts.map +1 -0
  433. package/lib/services/incident/endpoints.js +19 -0
  434. package/lib/services/incident/endpoints.js.map +1 -0
  435. package/lib/services/incident/incident.service.d.ts +24 -0
  436. package/lib/services/incident/incident.service.d.ts.map +1 -0
  437. package/lib/services/incident/incident.service.js +141 -0
  438. package/lib/services/incident/incident.service.js.map +1 -0
  439. package/lib/services/incident/index.d.ts +270 -0
  440. package/lib/services/incident/index.d.ts.map +1 -0
  441. package/lib/services/incident/index.js +389 -0
  442. package/lib/services/incident/index.js.map +1 -0
  443. package/lib/services/incident/module.d.ts +11 -0
  444. package/lib/services/incident/module.d.ts.map +1 -0
  445. package/lib/services/incident/module.js +15 -0
  446. package/lib/services/incident/module.js.map +1 -0
  447. package/lib/services/incident/types.d.ts +116 -0
  448. package/lib/services/incident/types.d.ts.map +1 -0
  449. package/lib/services/incident/types.js +10 -0
  450. package/lib/services/incident/types.js.map +1 -0
  451. package/lib/services/logistic-order/definitions.d.ts +315 -0
  452. package/lib/services/logistic-order/definitions.d.ts.map +1 -0
  453. package/lib/services/logistic-order/definitions.js +3 -0
  454. package/lib/services/logistic-order/definitions.js.map +1 -0
  455. package/lib/services/logistic-order/endpoints.d.ts +44 -0
  456. package/lib/services/logistic-order/endpoints.d.ts.map +1 -0
  457. package/lib/services/logistic-order/endpoints.js +57 -0
  458. package/lib/services/logistic-order/endpoints.js.map +1 -0
  459. package/lib/services/logistic-order/index.d.ts +1376 -0
  460. package/lib/services/logistic-order/index.d.ts.map +1 -0
  461. package/lib/services/logistic-order/index.js +1823 -0
  462. package/lib/services/logistic-order/index.js.map +1 -0
  463. package/lib/services/logistic-order/logistic-order.service.d.ts +62 -0
  464. package/lib/services/logistic-order/logistic-order.service.d.ts.map +1 -0
  465. package/lib/services/logistic-order/logistic-order.service.js +499 -0
  466. package/lib/services/logistic-order/logistic-order.service.js.map +1 -0
  467. package/lib/services/logistic-order/module.d.ts +11 -0
  468. package/lib/services/logistic-order/module.d.ts.map +1 -0
  469. package/lib/services/logistic-order/module.js +15 -0
  470. package/lib/services/logistic-order/module.js.map +1 -0
  471. package/lib/services/logistic-order/types.d.ts +411 -0
  472. package/lib/services/logistic-order/types.d.ts.map +1 -0
  473. package/lib/services/logistic-order/types.js +10 -0
  474. package/lib/services/logistic-order/types.js.map +1 -0
  475. package/lib/services/module.d.ts +64 -0
  476. package/lib/services/module.d.ts.map +1 -0
  477. package/lib/services/module.js +147 -0
  478. package/lib/services/module.js.map +1 -0
  479. package/lib/services/navigation-category/definitions.d.ts +31 -0
  480. package/lib/services/navigation-category/definitions.d.ts.map +1 -0
  481. package/lib/services/navigation-category/definitions.js +3 -0
  482. package/lib/services/navigation-category/definitions.js.map +1 -0
  483. package/lib/services/navigation-category/endpoints.d.ts +15 -0
  484. package/lib/services/navigation-category/endpoints.d.ts.map +1 -0
  485. package/lib/services/navigation-category/endpoints.js +17 -0
  486. package/lib/services/navigation-category/endpoints.js.map +1 -0
  487. package/lib/services/navigation-category/index.d.ts +114 -0
  488. package/lib/services/navigation-category/index.d.ts.map +1 -0
  489. package/lib/services/navigation-category/index.js +160 -0
  490. package/lib/services/navigation-category/index.js.map +1 -0
  491. package/lib/services/navigation-category/module.d.ts +11 -0
  492. package/lib/services/navigation-category/module.d.ts.map +1 -0
  493. package/lib/services/navigation-category/module.js +15 -0
  494. package/lib/services/navigation-category/module.js.map +1 -0
  495. package/lib/services/navigation-category/navigation-category.service.d.ts +148 -0
  496. package/lib/services/navigation-category/navigation-category.service.d.ts.map +1 -0
  497. package/lib/services/navigation-category/navigation-category.service.js +191 -0
  498. package/lib/services/navigation-category/navigation-category.service.js.map +1 -0
  499. package/lib/services/navigation-category/types.d.ts +51 -0
  500. package/lib/services/navigation-category/types.d.ts.map +1 -0
  501. package/lib/services/navigation-category/types.js +10 -0
  502. package/lib/services/navigation-category/types.js.map +1 -0
  503. package/lib/services/offer-inventories/definitions.d.ts +73 -0
  504. package/lib/services/offer-inventories/definitions.d.ts.map +1 -0
  505. package/lib/services/offer-inventories/definitions.js +3 -0
  506. package/lib/services/offer-inventories/definitions.js.map +1 -0
  507. package/lib/services/offer-inventories/endpoints.d.ts +16 -0
  508. package/lib/services/offer-inventories/endpoints.d.ts.map +1 -0
  509. package/lib/services/offer-inventories/endpoints.js +18 -0
  510. package/lib/services/offer-inventories/endpoints.js.map +1 -0
  511. package/lib/services/offer-inventories/index.d.ts +120 -0
  512. package/lib/services/offer-inventories/index.d.ts.map +1 -0
  513. package/lib/services/offer-inventories/index.js +175 -0
  514. package/lib/services/offer-inventories/index.js.map +1 -0
  515. package/lib/services/offer-inventories/module.d.ts +11 -0
  516. package/lib/services/offer-inventories/module.d.ts.map +1 -0
  517. package/lib/services/offer-inventories/module.js +15 -0
  518. package/lib/services/offer-inventories/module.js.map +1 -0
  519. package/lib/services/offer-inventories/offer-inventories.service.d.ts +26 -0
  520. package/lib/services/offer-inventories/offer-inventories.service.d.ts.map +1 -0
  521. package/lib/services/offer-inventories/offer-inventories.service.js +80 -0
  522. package/lib/services/offer-inventories/offer-inventories.service.js.map +1 -0
  523. package/lib/services/offer-inventories/types.d.ts +85 -0
  524. package/lib/services/offer-inventories/types.d.ts.map +1 -0
  525. package/lib/services/offer-inventories/types.js +10 -0
  526. package/lib/services/offer-inventories/types.js.map +1 -0
  527. package/lib/services/offer-prices/__mocks__/offer-prices.mocks.d.ts +109 -0
  528. package/lib/services/offer-prices/__mocks__/offer-prices.mocks.d.ts.map +1 -0
  529. package/lib/services/offer-prices/__mocks__/offer-prices.mocks.js +201 -0
  530. package/lib/services/offer-prices/__mocks__/offer-prices.mocks.js.map +1 -0
  531. package/lib/services/offer-prices/definitions.d.ts +24 -0
  532. package/lib/services/offer-prices/definitions.d.ts.map +1 -0
  533. package/lib/services/offer-prices/definitions.js +3 -0
  534. package/lib/services/offer-prices/definitions.js.map +1 -0
  535. package/lib/services/offer-prices/endpoints.d.ts +12 -0
  536. package/lib/services/offer-prices/endpoints.d.ts.map +1 -0
  537. package/lib/services/offer-prices/endpoints.js +14 -0
  538. package/lib/services/offer-prices/endpoints.js.map +1 -0
  539. package/lib/services/offer-prices/index.d.ts +36 -0
  540. package/lib/services/offer-prices/index.d.ts.map +1 -0
  541. package/lib/services/offer-prices/index.js +53 -0
  542. package/lib/services/offer-prices/index.js.map +1 -0
  543. package/lib/services/offer-prices/module.d.ts +11 -0
  544. package/lib/services/offer-prices/module.d.ts.map +1 -0
  545. package/lib/services/offer-prices/module.js +15 -0
  546. package/lib/services/offer-prices/module.js.map +1 -0
  547. package/lib/services/offer-prices/offer-prices.service.d.ts +18 -0
  548. package/lib/services/offer-prices/offer-prices.service.d.ts.map +1 -0
  549. package/lib/services/offer-prices/offer-prices.service.js +36 -0
  550. package/lib/services/offer-prices/offer-prices.service.js.map +1 -0
  551. package/lib/services/offer-prices/types.d.ts +33 -0
  552. package/lib/services/offer-prices/types.d.ts.map +1 -0
  553. package/lib/services/offer-prices/types.js +10 -0
  554. package/lib/services/offer-prices/types.js.map +1 -0
  555. package/lib/services/operation/definitions.d.ts +263 -0
  556. package/lib/services/operation/definitions.d.ts.map +1 -0
  557. package/lib/services/operation/definitions.js +18 -0
  558. package/lib/services/operation/definitions.js.map +1 -0
  559. package/lib/services/operation/endpoints.d.ts +18 -0
  560. package/lib/services/operation/endpoints.d.ts.map +1 -0
  561. package/lib/services/operation/endpoints.js +22 -0
  562. package/lib/services/operation/endpoints.js.map +1 -0
  563. package/lib/services/operation/index.d.ts +520 -0
  564. package/lib/services/operation/index.d.ts.map +1 -0
  565. package/lib/services/operation/index.js +704 -0
  566. package/lib/services/operation/index.js.map +1 -0
  567. package/lib/services/operation/module.d.ts +11 -0
  568. package/lib/services/operation/module.d.ts.map +1 -0
  569. package/lib/services/operation/module.js +15 -0
  570. package/lib/services/operation/module.js.map +1 -0
  571. package/lib/services/operation/operation.service.d.ts +32 -0
  572. package/lib/services/operation/operation.service.d.ts.map +1 -0
  573. package/lib/services/operation/operation.service.js +206 -0
  574. package/lib/services/operation/operation.service.js.map +1 -0
  575. package/lib/services/operation/types.d.ts +174 -0
  576. package/lib/services/operation/types.d.ts.map +1 -0
  577. package/lib/services/operation/types.js +10 -0
  578. package/lib/services/operation/types.js.map +1 -0
  579. package/lib/services/payment/definitions.d.ts +69 -0
  580. package/lib/services/payment/definitions.d.ts.map +1 -0
  581. package/lib/services/payment/definitions.js +3 -0
  582. package/lib/services/payment/definitions.js.map +1 -0
  583. package/lib/services/payment/endpoints.d.ts +16 -0
  584. package/lib/services/payment/endpoints.d.ts.map +1 -0
  585. package/lib/services/payment/endpoints.js +18 -0
  586. package/lib/services/payment/endpoints.js.map +1 -0
  587. package/lib/services/payment/index.d.ts +150 -0
  588. package/lib/services/payment/index.d.ts.map +1 -0
  589. package/lib/services/payment/index.js +220 -0
  590. package/lib/services/payment/index.js.map +1 -0
  591. package/lib/services/payment/module.d.ts +11 -0
  592. package/lib/services/payment/module.d.ts.map +1 -0
  593. package/lib/services/payment/module.js +15 -0
  594. package/lib/services/payment/module.js.map +1 -0
  595. package/lib/services/payment/payment.service.d.ts +224 -0
  596. package/lib/services/payment/payment.service.d.ts.map +1 -0
  597. package/lib/services/payment/payment.service.js +288 -0
  598. package/lib/services/payment/payment.service.js.map +1 -0
  599. package/lib/services/payment/types.d.ts +93 -0
  600. package/lib/services/payment/types.d.ts.map +1 -0
  601. package/lib/services/payment/types.js +10 -0
  602. package/lib/services/payment/types.js.map +1 -0
  603. package/lib/services/product/definitions.d.ts +150 -0
  604. package/lib/services/product/definitions.d.ts.map +1 -0
  605. package/lib/services/product/definitions.js +9 -0
  606. package/lib/services/product/definitions.js.map +1 -0
  607. package/lib/services/product/endpoints.d.ts +40 -0
  608. package/lib/services/product/endpoints.d.ts.map +1 -0
  609. package/lib/services/product/endpoints.js +42 -0
  610. package/lib/services/product/endpoints.js.map +1 -0
  611. package/lib/services/product/index.d.ts +388 -0
  612. package/lib/services/product/index.d.ts.map +1 -0
  613. package/lib/services/product/index.js +564 -0
  614. package/lib/services/product/index.js.map +1 -0
  615. package/lib/services/product/module.d.ts +11 -0
  616. package/lib/services/product/module.d.ts.map +1 -0
  617. package/lib/services/product/module.js +17 -0
  618. package/lib/services/product/module.js.map +1 -0
  619. package/lib/services/product/product.service.d.ts +452 -0
  620. package/lib/services/product/product.service.d.ts.map +1 -0
  621. package/lib/services/product/product.service.js +624 -0
  622. package/lib/services/product/product.service.js.map +1 -0
  623. package/lib/services/product/types.d.ts +344 -0
  624. package/lib/services/product/types.d.ts.map +1 -0
  625. package/lib/services/product/types.js +10 -0
  626. package/lib/services/product/types.js.map +1 -0
  627. package/lib/services/product-variant/definitions.d.ts +33 -0
  628. package/lib/services/product-variant/definitions.d.ts.map +1 -0
  629. package/lib/services/product-variant/definitions.js +7 -0
  630. package/lib/services/product-variant/definitions.js.map +1 -0
  631. package/lib/services/product-variant/endpoints.d.ts +15 -0
  632. package/lib/services/product-variant/endpoints.d.ts.map +1 -0
  633. package/lib/services/product-variant/endpoints.js +17 -0
  634. package/lib/services/product-variant/endpoints.js.map +1 -0
  635. package/lib/services/product-variant/index.d.ts +123 -0
  636. package/lib/services/product-variant/index.d.ts.map +1 -0
  637. package/lib/services/product-variant/index.js +172 -0
  638. package/lib/services/product-variant/index.js.map +1 -0
  639. package/lib/services/product-variant/module.d.ts +11 -0
  640. package/lib/services/product-variant/module.d.ts.map +1 -0
  641. package/lib/services/product-variant/module.js +15 -0
  642. package/lib/services/product-variant/module.js.map +1 -0
  643. package/lib/services/product-variant/product-variant.service.d.ts +21 -0
  644. package/lib/services/product-variant/product-variant.service.d.ts.map +1 -0
  645. package/lib/services/product-variant/product-variant.service.js +69 -0
  646. package/lib/services/product-variant/product-variant.service.js.map +1 -0
  647. package/lib/services/product-variant/types.d.ts +73 -0
  648. package/lib/services/product-variant/types.d.ts.map +1 -0
  649. package/lib/services/product-variant/types.js +10 -0
  650. package/lib/services/product-variant/types.js.map +1 -0
  651. package/lib/services/quote/definitions.d.ts +102 -0
  652. package/lib/services/quote/definitions.d.ts.map +1 -0
  653. package/lib/services/quote/definitions.js +3 -0
  654. package/lib/services/quote/definitions.js.map +1 -0
  655. package/lib/services/quote/endpoints.d.ts +20 -0
  656. package/lib/services/quote/endpoints.d.ts.map +1 -0
  657. package/lib/services/quote/endpoints.js +24 -0
  658. package/lib/services/quote/endpoints.js.map +1 -0
  659. package/lib/services/quote/index.d.ts +378 -0
  660. package/lib/services/quote/index.d.ts.map +1 -0
  661. package/lib/services/quote/index.js +506 -0
  662. package/lib/services/quote/index.js.map +1 -0
  663. package/lib/services/quote/module.d.ts +11 -0
  664. package/lib/services/quote/module.d.ts.map +1 -0
  665. package/lib/services/quote/module.js +15 -0
  666. package/lib/services/quote/module.js.map +1 -0
  667. package/lib/services/quote/quote.service.d.ts +346 -0
  668. package/lib/services/quote/quote.service.d.ts.map +1 -0
  669. package/lib/services/quote/quote.service.js +479 -0
  670. package/lib/services/quote/quote.service.js.map +1 -0
  671. package/lib/services/quote/types.d.ts +160 -0
  672. package/lib/services/quote/types.d.ts.map +1 -0
  673. package/lib/services/quote/types.js +10 -0
  674. package/lib/services/quote/types.js.map +1 -0
  675. package/lib/services/supplier/__mocks__/supplier-mocks.d.ts +49 -0
  676. package/lib/services/supplier/__mocks__/supplier-mocks.d.ts.map +1 -0
  677. package/lib/services/supplier/__mocks__/supplier-mocks.js +168 -0
  678. package/lib/services/supplier/__mocks__/supplier-mocks.js.map +1 -0
  679. package/lib/services/supplier/definitions.d.ts +30 -0
  680. package/lib/services/supplier/definitions.d.ts.map +1 -0
  681. package/lib/services/supplier/definitions.js +3 -0
  682. package/lib/services/supplier/definitions.js.map +1 -0
  683. package/lib/services/supplier/endpoints.d.ts +14 -0
  684. package/lib/services/supplier/endpoints.d.ts.map +1 -0
  685. package/lib/services/supplier/endpoints.js +16 -0
  686. package/lib/services/supplier/endpoints.js.map +1 -0
  687. package/lib/services/supplier/index.d.ts +102 -0
  688. package/lib/services/supplier/index.d.ts.map +1 -0
  689. package/lib/services/supplier/index.js +146 -0
  690. package/lib/services/supplier/index.js.map +1 -0
  691. package/lib/services/supplier/module.d.ts +11 -0
  692. package/lib/services/supplier/module.d.ts.map +1 -0
  693. package/lib/services/supplier/module.js +15 -0
  694. package/lib/services/supplier/module.js.map +1 -0
  695. package/lib/services/supplier/supplier.service.d.ts +20 -0
  696. package/lib/services/supplier/supplier.service.d.ts.map +1 -0
  697. package/lib/services/supplier/supplier.service.js +63 -0
  698. package/lib/services/supplier/supplier.service.js.map +1 -0
  699. package/lib/services/supplier/types.d.ts +58 -0
  700. package/lib/services/supplier/types.d.ts.map +1 -0
  701. package/lib/services/supplier/types.js +10 -0
  702. package/lib/services/supplier/types.js.map +1 -0
  703. package/lib/services/types.d.ts +81 -0
  704. package/lib/services/types.d.ts.map +1 -0
  705. package/lib/services/types.js +10 -0
  706. package/lib/services/types.js.map +1 -0
  707. package/lib/settings/fetch-instance.d.ts +30 -0
  708. package/lib/settings/fetch-instance.d.ts.map +1 -0
  709. package/lib/settings/fetch-instance.js +223 -0
  710. package/lib/settings/fetch-instance.js.map +1 -0
  711. package/lib/settings/sdk-version.d.ts +3 -0
  712. package/lib/settings/sdk-version.d.ts.map +1 -0
  713. package/lib/settings/sdk-version.js +6 -0
  714. package/lib/settings/sdk-version.js.map +1 -0
  715. package/package.json +27 -8
@@ -0,0 +1,42 @@
1
+ /**
2
+ * DJUST SDK Helpers Module
3
+ * Utility functions for parameter validation and browser detection.
4
+ *
5
+ * @module helpers
6
+ * @since 2.17.0
7
+ */
8
+ export { required, oneOfRequired } from "./parameters-validation";
9
+ export { isBrowser, getCookie, setCookie, deleteCookie } from "./utils";
10
+ /**
11
+ * Type guard to check if a value is defined (not null or undefined)
12
+ */
13
+ export declare function isDefined<T>(value: T | null | undefined): value is T;
14
+ /**
15
+ * Filters out undefined and null values from an object
16
+ */
17
+ export declare function filterNullish<T extends Record<string, unknown>>(obj: T): Partial<T>;
18
+ /**
19
+ * Delays execution for specified milliseconds
20
+ */
21
+ export declare function delay(ms: number): Promise<void>;
22
+ /**
23
+ * Generates a unique request ID
24
+ */
25
+ export declare function generateRequestId(): string;
26
+ /**
27
+ * Checks if the current environment is server-side (Node.js)
28
+ */
29
+ export declare function isServer(): boolean;
30
+ /**
31
+ * Safely parses JSON, returning undefined on failure
32
+ */
33
+ export declare function safeJsonParse<T>(json: string): T | undefined;
34
+ /**
35
+ * Checks if a JWT token is expired
36
+ */
37
+ export declare function isTokenExpired(token: string): boolean;
38
+ /**
39
+ * Extracts the expiration time from a JWT token
40
+ */
41
+ export declare function getTokenExpiration(token: string): Date | null;
42
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAMlE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAMxE;;GAEG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,IAAI,GAAG,SAAS,GAAG,KAAK,IAAI,CAAC,CAEpE;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7D,GAAG,EAAE,CAAC,GACL,OAAO,CAAC,CAAC,CAAC,CAIZ;AAED;;GAEG;AACH,wBAAgB,KAAK,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAE/C;AAED;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,MAAM,CAE1C;AAED;;GAEG;AACH,wBAAgB,QAAQ,IAAI,OAAO,CAElC;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS,CAM5D;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAQrD;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAO7D"}
@@ -0,0 +1,102 @@
1
+ "use strict";
2
+ /**
3
+ * DJUST SDK Helpers Module
4
+ * Utility functions for parameter validation and browser detection.
5
+ *
6
+ * @module helpers
7
+ * @since 2.17.0
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.deleteCookie = exports.setCookie = exports.getCookie = exports.isBrowser = exports.oneOfRequired = exports.required = void 0;
11
+ exports.isDefined = isDefined;
12
+ exports.filterNullish = filterNullish;
13
+ exports.delay = delay;
14
+ exports.generateRequestId = generateRequestId;
15
+ exports.isServer = isServer;
16
+ exports.safeJsonParse = safeJsonParse;
17
+ exports.isTokenExpired = isTokenExpired;
18
+ exports.getTokenExpiration = getTokenExpiration;
19
+ // ============================================================================
20
+ // PARAMETER VALIDATION
21
+ // ============================================================================
22
+ var parameters_validation_1 = require("./parameters-validation");
23
+ Object.defineProperty(exports, "required", { enumerable: true, get: function () { return parameters_validation_1.required; } });
24
+ Object.defineProperty(exports, "oneOfRequired", { enumerable: true, get: function () { return parameters_validation_1.oneOfRequired; } });
25
+ // ============================================================================
26
+ // BROWSER UTILITIES
27
+ // ============================================================================
28
+ var utils_1 = require("./utils");
29
+ Object.defineProperty(exports, "isBrowser", { enumerable: true, get: function () { return utils_1.isBrowser; } });
30
+ Object.defineProperty(exports, "getCookie", { enumerable: true, get: function () { return utils_1.getCookie; } });
31
+ Object.defineProperty(exports, "setCookie", { enumerable: true, get: function () { return utils_1.setCookie; } });
32
+ Object.defineProperty(exports, "deleteCookie", { enumerable: true, get: function () { return utils_1.deleteCookie; } });
33
+ // ============================================================================
34
+ // ADDITIONAL UTILITIES
35
+ // ============================================================================
36
+ /**
37
+ * Type guard to check if a value is defined (not null or undefined)
38
+ */
39
+ function isDefined(value) {
40
+ return value !== null && value !== undefined;
41
+ }
42
+ /**
43
+ * Filters out undefined and null values from an object
44
+ */
45
+ function filterNullish(obj) {
46
+ return Object.fromEntries(Object.entries(obj).filter(([_, v]) => v !== undefined && v !== null));
47
+ }
48
+ /**
49
+ * Delays execution for specified milliseconds
50
+ */
51
+ function delay(ms) {
52
+ return new Promise((resolve) => setTimeout(resolve, ms));
53
+ }
54
+ /**
55
+ * Generates a unique request ID
56
+ */
57
+ function generateRequestId() {
58
+ return `djust-${Date.now()}-${Math.random().toString(36).substring(2, 9)}`;
59
+ }
60
+ /**
61
+ * Checks if the current environment is server-side (Node.js)
62
+ */
63
+ function isServer() {
64
+ return typeof window === "undefined";
65
+ }
66
+ /**
67
+ * Safely parses JSON, returning undefined on failure
68
+ */
69
+ function safeJsonParse(json) {
70
+ try {
71
+ return JSON.parse(json);
72
+ }
73
+ catch {
74
+ return undefined;
75
+ }
76
+ }
77
+ /**
78
+ * Checks if a JWT token is expired
79
+ */
80
+ function isTokenExpired(token) {
81
+ try {
82
+ const payload = JSON.parse(atob(token.split(".")[1]));
83
+ const now = Math.floor(Date.now() / 1000);
84
+ return !payload.exp || payload.exp <= now;
85
+ }
86
+ catch {
87
+ return true;
88
+ }
89
+ }
90
+ /**
91
+ * Extracts the expiration time from a JWT token
92
+ */
93
+ function getTokenExpiration(token) {
94
+ try {
95
+ const payload = JSON.parse(atob(token.split(".")[1]));
96
+ return payload.exp ? new Date(payload.exp * 1000) : null;
97
+ }
98
+ catch {
99
+ return null;
100
+ }
101
+ }
102
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAqBH,8BAEC;AAKD,sCAMC;AAKD,sBAEC;AAKD,8CAEC;AAKD,4BAEC;AAKD,sCAMC;AAKD,wCAQC;AAKD,gDAOC;AAzFD,+EAA+E;AAC/E,uBAAuB;AACvB,+EAA+E;AAE/E,iEAAkE;AAAzD,iHAAA,QAAQ,OAAA;AAAE,sHAAA,aAAa,OAAA;AAEhC,+EAA+E;AAC/E,oBAAoB;AACpB,+EAA+E;AAE/E,iCAAwE;AAA/D,kGAAA,SAAS,OAAA;AAAE,kGAAA,SAAS,OAAA;AAAE,kGAAA,SAAS,OAAA;AAAE,qGAAA,YAAY,OAAA;AAEtD,+EAA+E;AAC/E,uBAAuB;AACvB,+EAA+E;AAE/E;;GAEG;AACH,SAAgB,SAAS,CAAI,KAA2B;IACtD,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC;AAC/C,CAAC;AAED;;GAEG;AACH,SAAgB,aAAa,CAC3B,GAAM;IAEN,OAAO,MAAM,CAAC,WAAW,CACvB,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,SAAS,IAAI,CAAC,KAAK,IAAI,CAAC,CACxD,CAAC;AAClB,CAAC;AAED;;GAEG;AACH,SAAgB,KAAK,CAAC,EAAU;IAC9B,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC;AAC3D,CAAC;AAED;;GAEG;AACH,SAAgB,iBAAiB;IAC/B,OAAO,SAAS,IAAI,CAAC,GAAG,EAAE,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC;AAC7E,CAAC;AAED;;GAEG;AACH,SAAgB,QAAQ;IACtB,OAAO,OAAO,MAAM,KAAK,WAAW,CAAC;AACvC,CAAC;AAED;;GAEG;AACH,SAAgB,aAAa,CAAI,IAAY;IAC3C,IAAI,CAAC;QACH,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC;AAED;;GAEG;AACH,SAAgB,cAAc,CAAC,KAAa;IAC1C,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACtD,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC;QAC1C,OAAO,CAAC,OAAO,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG,IAAI,GAAG,CAAC;IAC5C,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC;AAED;;GAEG;AACH,SAAgB,kBAAkB,CAAC,KAAa;IAC9C,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACtD,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,OAAO,CAAC,GAAG,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAC3D,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare const required: (parameters: Record<string, any>) => void;
2
+ export declare const oneOfRequired: (parameters: Record<string, any>) => void;
3
+ //# sourceMappingURL=parameters-validation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parameters-validation.d.ts","sourceRoot":"","sources":["../../src/helpers/parameters-validation.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,GAAI,YAAY,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,SAMvD,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,YAAY,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,SAa5D,CAAC"}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.oneOfRequired = exports.required = void 0;
4
+ const required = (parameters) => {
5
+ Object.keys(parameters).forEach((parameter) => {
6
+ if (parameters[parameter] === undefined || parameters[parameter] === "") {
7
+ throw new Error(`'${parameter}' parameter is required`);
8
+ }
9
+ });
10
+ };
11
+ exports.required = required;
12
+ const oneOfRequired = (parameters) => {
13
+ const parametersNames = Object.keys(parameters);
14
+ const matchingParameters = parametersNames.filter((parameter) => parameters[parameter]);
15
+ if (matchingParameters.length !== 1) {
16
+ throw new Error(`Only one of ${parametersNames
17
+ .map((parameter) => `'${parameter}'`)
18
+ .join(", ")} parameters is required`);
19
+ }
20
+ };
21
+ exports.oneOfRequired = oneOfRequired;
22
+ //# sourceMappingURL=parameters-validation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parameters-validation.js","sourceRoot":"","sources":["../../src/helpers/parameters-validation.ts"],"names":[],"mappings":";;;AAAO,MAAM,QAAQ,GAAG,CAAC,UAA+B,EAAE,EAAE;IAC1D,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,CAAC,SAAS,EAAE,EAAE;QAC5C,IAAI,UAAU,CAAC,SAAS,CAAC,KAAK,SAAS,IAAI,UAAU,CAAC,SAAS,CAAC,KAAK,EAAE,EAAE,CAAC;YACxE,MAAM,IAAI,KAAK,CAAC,IAAI,SAAS,yBAAyB,CAAC,CAAC;QAC1D,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AANW,QAAA,QAAQ,YAMnB;AAEK,MAAM,aAAa,GAAG,CAAC,UAA+B,EAAE,EAAE;IAC/D,MAAM,eAAe,GAAG,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAChD,MAAM,kBAAkB,GAAG,eAAe,CAAC,MAAM,CAC/C,CAAC,SAAS,EAAE,EAAE,CAAC,UAAU,CAAC,SAAS,CAAC,CACrC,CAAC;IAEF,IAAI,kBAAkB,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACpC,MAAM,IAAI,KAAK,CACb,eAAe,eAAe;aAC3B,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,IAAI,SAAS,GAAG,CAAC;aACpC,IAAI,CAAC,IAAI,CAAC,yBAAyB,CACvC,CAAC;IACJ,CAAC;AACH,CAAC,CAAC;AAbW,QAAA,aAAa,iBAaxB"}
@@ -0,0 +1,5 @@
1
+ export declare function isBrowser(): boolean;
2
+ export declare function getCookie(name: string): string | null;
3
+ export declare function setCookie(name: string, value: string, expirationDays: number): void;
4
+ export declare function deleteCookie(name: string): void;
5
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/helpers/utils.ts"],"names":[],"mappings":"AAAA,wBAAgB,SAAS,IAAI,OAAO,CAEnC;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAKrD;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,QAM5E;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,QAGxC"}
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isBrowser = isBrowser;
4
+ exports.getCookie = getCookie;
5
+ exports.setCookie = setCookie;
6
+ exports.deleteCookie = deleteCookie;
7
+ function isBrowser() {
8
+ return typeof window !== "undefined";
9
+ }
10
+ function getCookie(name) {
11
+ if (!isBrowser())
12
+ return null;
13
+ const cookies = document.cookie.split(";").map((cookie) => cookie.trim());
14
+ const cookie = cookies.find((cookie) => cookie.startsWith(`${name}=`));
15
+ return cookie ? cookie.split("=")[1] : null;
16
+ }
17
+ function setCookie(name, value, expirationDays) {
18
+ if (!isBrowser())
19
+ return;
20
+ const date = new Date();
21
+ date.setTime(date.getTime() + expirationDays * 24 * 60 * 60 * 1000);
22
+ const expires = `expires=${date.toUTCString()}`;
23
+ document.cookie = `${name}=${value};${expires};path=/`;
24
+ }
25
+ function deleteCookie(name) {
26
+ if (!isBrowser())
27
+ return;
28
+ document.cookie = `${name}=;expires=Thu, 01 Jan 1970 00:00:00 UTC;path=/;`;
29
+ }
30
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/helpers/utils.ts"],"names":[],"mappings":";;AAAA,8BAEC;AAED,8BAKC;AAED,8BAMC;AAED,oCAGC;AAtBD,SAAgB,SAAS;IACvB,OAAO,OAAO,MAAM,KAAK,WAAW,CAAC;AACvC,CAAC;AAED,SAAgB,SAAS,CAAC,IAAY;IACpC,IAAI,CAAC,SAAS,EAAE;QAAE,OAAO,IAAI,CAAC;IAC9B,MAAM,OAAO,GAAG,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;IAC1E,MAAM,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,UAAU,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC,CAAC;IACvE,OAAO,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AAC9C,CAAC;AAED,SAAgB,SAAS,CAAC,IAAY,EAAE,KAAa,EAAE,cAAsB;IAC3E,IAAI,CAAC,SAAS,EAAE;QAAE,OAAO;IACzB,MAAM,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IACxB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,cAAc,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC;IACpE,MAAM,OAAO,GAAG,WAAW,IAAI,CAAC,WAAW,EAAE,EAAE,CAAC;IAChD,QAAQ,CAAC,MAAM,GAAG,GAAG,IAAI,IAAI,KAAK,IAAI,OAAO,SAAS,CAAC;AACzD,CAAC;AAED,SAAgB,YAAY,CAAC,IAAY;IACvC,IAAI,CAAC,SAAS,EAAE;QAAE,OAAO;IACzB,QAAQ,CAAC,MAAM,GAAG,GAAG,IAAI,iDAAiD,CAAC;AAC7E,CAAC"}
package/lib/index.d.ts ADDED
@@ -0,0 +1,267 @@
1
+ /**
2
+ * DJUST SDK
3
+ *
4
+ * This module exports both the legacy singleton API (DjustSDK) and
5
+ * the new SSR-safe client factory (createDjustClient).
6
+ *
7
+ * ## For Browser / SPA usage (legacy, still supported):
8
+ * ```typescript
9
+ * import { DjustSDK } from '@djust-b2b/djust-front-sdk';
10
+ * DjustSDK.initialize({ baseUrl, clientId, apiKey });
11
+ * const cart = await DjustSDK.getCart({ cartId, currency });
12
+ * ```
13
+ *
14
+ * ## For SSR / Nuxt / BFF usage (recommended):
15
+ * ```typescript
16
+ * import { createDjustClient } from '@djust-b2b/djust-front-sdk';
17
+ *
18
+ * const client = createDjustClient({ baseUrl, clientId, apiKey });
19
+ * const sdk = client.withContext({ accessToken, customerAccountId });
20
+ * const cart = await sdk.getCart({ cartId, currency });
21
+ * ```
22
+ *
23
+ * @packageDocumentation
24
+ */
25
+ /**
26
+ * Legacy singleton SDK.
27
+ *
28
+ * @deprecated For SSR/BFF usage, prefer `createDjustClient()` which provides
29
+ * isolated state per request. The singleton API is kept for backward
30
+ * compatibility but may cause race conditions in SSR environments.
31
+ *
32
+ * @example
33
+ * ```typescript
34
+ * // Browser usage (still works)
35
+ * DjustSDK.initialize({ baseUrl, clientId, apiKey });
36
+ * DjustSDK.updateConfiguration({ accessToken: token });
37
+ * const cart = await DjustSDK.getCart({ cartId, currency });
38
+ * ```
39
+ */
40
+ export declare const DjustSDK: {
41
+ /**
42
+ * @deprecated Use `createDjustClient()` for SSR-safe usage.
43
+ */
44
+ initialize: (initConfig: import("./settings/fetch-instance").ClientConfig) => void;
45
+ /**
46
+ * @deprecated Use `client.withContext()` for SSR-safe per-request configuration.
47
+ */
48
+ updateConfiguration: (newConfig: Partial<import("./settings/fetch-instance").ClientConfig>) => void;
49
+ getShopOperations({ page, size, sort, ids, name, startDateFrom, startDateTo, endDateFrom, endDateTo, locale, }: import("./interfaces").GetShopOperationsParameters): Promise<import("./interfaces").GetShopOperationsResponse>;
50
+ getOperations({ page, size, sort, type, status, ids, name, startDateFrom, startDateTo, endDateFrom, endDateTo, ownerIds, idType, locale, }: import("./interfaces").GetOperationsParameters): Promise<import("./interfaces").GetOperationsResponse>;
51
+ getShopOperation({ operationId, locale, }: import("./interfaces").GetShopOperationParameters): Promise<import("./interfaces").GetShopOperationResponse>;
52
+ getOperation({ operationId, }: import("./interfaces").GetOperationParameters): Promise<import("./interfaces").GetOperationResponse>;
53
+ updateOperation({ operationId, status, }: import("./interfaces").UpdateOperationParameters): Promise<void>;
54
+ updateOperationDetails({ operationId, customFieldValues, descriptions, endDate, names, startDate, }: import("./interfaces").UpdateOperationDetailsParameters): Promise<import("./interfaces").UpdateOperationDetailsResponse>;
55
+ removeOperationAccounts({ operationId, accountIds, }: import("./interfaces").RemoveOperationAccountsParameters): Promise<void>;
56
+ getOperationAccounts({ operationId, page, size, sort, accountIds, accountName, }: import("./interfaces").GetOperationAccountsParameters): Promise<import("./interfaces").GetOperationAccountsResponse>;
57
+ addOperationAccounts({ operationId, accountIds, }: import("./interfaces").AddOperationAccountsParameters): Promise<void>;
58
+ removeOperationLines({ operationId, variantIds, }: import("./interfaces").RemoveOperationLinesParameters): Promise<void>;
59
+ getShopOperationLines({ operationId, page, size, sort, variantIds, variantName, locale, }: import("./interfaces").GetShopOperationLinesParameters): Promise<import("./interfaces").GetShopOperationLinesResponse>;
60
+ getOperationLines({ operationId, page, size, sort, variantIds, variantName, minQuantity, maxQuantity, recommendedQuantity, locale, }: import("./interfaces").GetOperationLinesParameters): Promise<import("./interfaces").GetOperationLinesResponse>;
61
+ addOperationLines({ operationId, lines, }: import("./interfaces").AddOperationLinesParameters): Promise<void>;
62
+ createOperation({ customFieldValues, descriptions, endDate, externalId, names, startDate, type, }: import("./interfaces").CreateOperationParameters): Promise<import("./interfaces").CreateOperationResponse>;
63
+ deleteOperation({ operationId, }: import("./interfaces").DeleteOperationParameters): Promise<void>;
64
+ initPayment({ browserInfo, countryCode, customerUserIP, paymentMethodData, reference, referenceType, returnPath, storePaymentMethod, }: import("./interfaces").InitPaymentRequest): Promise<import("./interfaces").InitPaymentResponse>;
65
+ getPaymentDetails({ details, }: import("./interfaces").GetPaymentDetailsRequest): Promise<import("./interfaces").GetPaymentDetailsResponse>;
66
+ getPaymentMethods({ reference, countryCode, referenceType, locale, }: import("./interfaces").GetPaymentMethodsRequest): Promise<import("./interfaces").GetPaymentMethodsResponse>;
67
+ deleteStoredPaymentMethodById({ storedPaymentMethodId, }: import("./interfaces").DeleteStoredPaymentMethodByIdRequest): Promise<void>;
68
+ precheckPurchaseCardL3({ reference, referenceType, }: import("./interfaces").PrecheckPurchaseCardL3Request): Promise<import("./interfaces").PrecheckPurchaseCardL3Response>;
69
+ getCustomFields(params: import("./interfaces").GetCustomFieldParameters): Promise<import("./interfaces").GetCustomFieldResponse>;
70
+ postMediaCustomField(params: import("./interfaces").PostMediaCustomFieldParameters): Promise<string>;
71
+ getMediaUrl(params: import("./interfaces").GetMediaUrlParameters): Promise<string>;
72
+ getPaginatedOfferInventories({ page, size, sort, productStatus, offerInventoryStatus, variantStatus, offerPriceStatus, supplierId, offersIds, offerPriceIds, currency, hasStock, idType, }: import("./interfaces").GetPaginatedOfferInventoriesParameters): Promise<import("./interfaces").GetOfferInventoriesResponse>;
73
+ getPaginatedOfferInventoriesV2({ page, size, sort, variantExternalId, }: import("./interfaces").GetPaginatedOfferInventoriesV2Parameters): Promise<import("./interfaces").GetOfferInventoriesV2Response>;
74
+ getOfferInventoryCustomFields({ externalId, page, size, sort, locale, }: import("./interfaces").GetOfferInventoryCustomFieldsParameters): Promise<import("./interfaces").GetOfferInventoryCustomFieldsResponse>;
75
+ getIncidents({ customerAccountIds, linkedType, ids, status, idType, page, size, sort, }: import("./interfaces").getIncidentsParameters): Promise<import("./interfaces").getIncidentsResponse>;
76
+ getIncidentsV2({ customerAccountIds, linkedType, ids, status, reasonCodes, supplierIds, customFields, idType, page, size, sort, }: import("./interfaces").getIncidentsParameters): Promise<import("./interfaces").getIncidentsResponse>;
77
+ getIncident({ incidentId, idType, }: import("./interfaces").getIncidentParameters): Promise<import("./interfaces").getIncidentResponse>;
78
+ createOrderLogisticIncident({ logisticOrderId, idType, customField, reasonCode, }: import("./interfaces").createOrderLogisticIncidentParameters): Promise<import("./interfaces").createOrderLogisticIncidentResponse>;
79
+ createOrderLogisticLineIncident({ logisticOrderId, idType, customFieldIdType, orderLines, reasonCode, }: import("./interfaces").createOrderLogisticLineIncidentParameters): Promise<import("./interfaces").createOrderLogisticLineIncidentResponse>;
80
+ createOrderLogisticIncidentThread({ logisticOrderId, incidentId, idType, customField, message, name, reasonCode, }: import("./interfaces").createOrderLogisticIncidentThreadParameters): Promise<import("./interfaces").createOrderLogisticIncidentThreadResponse>;
81
+ createIncident({ customField, externalId, logisticOrderId, reasonCodes, idType, }: import("./interfaces").createIncidentParameters): Promise<import("./interfaces").createIncidentResponse>;
82
+ getCommercialOrders({ locale, nbPreviewLines, page, size, sort, connectedUserOnly, customerAccountIds, sourceTypes, isValidated, }: import("./interfaces").GetCommercialOrdersParameters): Promise<import("./interfaces").GetCommercialOrdersResponse>;
83
+ getCommercialOrdersV2({ page, size, sort, locale, connectedUserOnly, customerAccountIds, sourceTypes, sourceIds, isValidated, nbPreviewLines, cf, }: import("./interfaces").GetCommercialOrdersV2Parameters): Promise<import("./interfaces").GetCommercialOrdersV2Response>;
84
+ createCommercialOrder({ nbPreviewLines, channel, customFields, locale, origin, originId, paymentInfo, }: import("./interfaces").CreateCommercialOrderParameters): Promise<import("./interfaces").CreateCommercialOrderResponse>;
85
+ createCommercialOrderV2({ customFieldIdType, customFields, isFull, sourceId, sourceType, }: import("./interfaces").CreateCommercialOrderV2Parameters): Promise<import("./interfaces").CreateCommercialOrderV2Response>;
86
+ getCommercialOrder({ orderId, idType, locale, nbPreviewLines, }: import("./interfaces").GetCommercialOrderParameters): Promise<import("./interfaces").GetCommercialOrderResponse>;
87
+ updateCommercialOrder({ commercialOrderId, customFieldIdType, customFields, }: import("./interfaces").UpdateCommercialOrderParameters): Promise<void>;
88
+ createCommercialOrderCardRegistration({ orderId, paymentProvider, currency, }: import("./interfaces").CreateCommercialOrderCardRegistrationParameters): Promise<import("./interfaces").CreateCommercialOrderCardRegistrationResponse>;
89
+ updateCommercialOrderBillingInformation({ orderId, billingAddressId, }: import("./interfaces").UpdateCommercialOrderBillingInformationParameters): Promise<void>;
90
+ setCommercialOrderStatusAsCreated({ orderId, paymentInfo, }: import("./interfaces").SetCommercialOrderStatusAsCreatedParameters): Promise<void>;
91
+ setCommercialOrderStatusAsOnHold({ orderId, }: import("./interfaces").SetCommercialOrderStatusAsOnHoldParameters): Promise<void>;
92
+ syncCommercialOrder(orderId: string): Promise<import("./interfaces").SyncCommercialOrderResponse>;
93
+ getCommercialOrderPaymentPageUrl({ orderId, paymentOption, paymentProvider, }: import("./interfaces").GetCommercialOrderPaymentPageUrlParameters): Promise<string>;
94
+ createCommercialOrderPreauthorization({ orderId, paymentProvider, authorId, browserInfo, ipAddress, paymentCardInfo, }: import("./interfaces").CreateCommercialOrderPreauthorizationParameters): Promise<import("./interfaces").CreateCommercialOrderPreauthorizationResponse>;
95
+ updateCommercialOrderShippingAddress({ orderId, shippingAddressId, }: import("./interfaces").UpdateCommercialOrderShippingAddressParameters): Promise<void>;
96
+ updateCommercialOrderShippingInformation({ orderId, shippingAddressId, shippingType, }: import("./interfaces").UpdateCommercialOrderShippingInformationParameters): Promise<void>;
97
+ updateCommercialOrderShippingType({ orderId, shippingType, }: import("./interfaces").UpdateCommercialOrderShippingTypeParameters): Promise<void>;
98
+ deleteCommercialOrder(commercialOrderId: string): Promise<void>;
99
+ getCommercialOrderLines({ commercialOrderId, page, size, sort, supplierIds, productVariantIds, offerPriceIds, idType, locale, }: import("./interfaces").GetOrderCommercialLinesParameters): Promise<import("./interfaces").GetOrderCommercialLinesResponse>;
100
+ updateCommercialOrderLines({ commercialOrderId, customFieldIdType, lineIdType, lineType, updateOrderCommercialLines, metadata, }: import("./interfaces").UpdateCommercialOrderLinesParameters): Promise<import("./interfaces").UpdateCommercialOrderLinesResponse>;
101
+ deleteCommercialOrderLines({ commercialOrderId, body, }: import("./interfaces").DeleteCommercialOrderLinesParameters): Promise<import("./interfaces").DeleteCommercialOrderLinesResponse>;
102
+ punchoutOciCommercialOrder({ tenantConfigurationKey, commercialOrderId, locale, }: import("./interfaces").PunchoutOciCommercialOrderParameters): Promise<any>;
103
+ getLogisticOrders({ approvalIds, locale, logisticStatus, incident, paymentOptions, connectedUserOnly, nbPreviewLines, page, size, sort, suppliersIds, creationDateFrom, creationDateTo, updateDateFrom, updateDateTo, }: import("./interfaces").GetLogisticOrdersParameters): Promise<import("./interfaces").GetLogisticOrdersResponse>;
104
+ logisticOrdersPaginatedList({ page, size, sort, nbPreviewLines, accountCustomFieldValueCriteria, approvalIds, connectedUserOnly, creationDateFrom, creationDateTo, customerAccountIds, incident, locale, logisticStatus, offerCustomFieldValueCriteria, orderLogisticCustomFieldValueCriteria, paymentOptions, supplierIds, updateDateFrom, updateDateTo, }: import("./interfaces").GetPaginatedLogisticOrdersParameters): Promise<import("./interfaces").GetPaginatedLogisticOrdersResponse>;
105
+ getLogisticOrderCustomFields({ customFieldIds, page, size, sort, idType, }: import("./interfaces").GetLogisticOrderCustomFieldsParameters): Promise<import("./interfaces").GetLogisticOrderCustomFieldsResponse>;
106
+ getLogisticOrderLineCustomFields({ customFieldIds, page, size, sort, idType, }: import("./interfaces").GetLogisticOrderLineCustomFieldsParameters): Promise<import("./interfaces").GetLogisticOrderLineCustomFieldsResponse>;
107
+ getLogisticOrder({ orderId, locale, nbPreviewLines, }: import("./interfaces").GetLogisticOrderParameters): Promise<import("./interfaces").GetLogisticOrderResponse>;
108
+ updateLogisticOrderCustomFields({ orderId, locale, nbPreviewLines, customFields, }: import("./interfaces").UpdateLogisticOrderCustomFieldsParameters): Promise<import("./interfaces").UpdateLogisticOrderCustomFieldsResponse>;
109
+ updateLogisticOrderData({ orderId, locale, nbPreviewLines, customFields, externalId, }: import("./interfaces").UpdateLogisticOrderCustomFieldsParameters): Promise<import("./interfaces").UpdateLogisticOrderCustomFieldsResponse>;
110
+ getLogisticOrderAccountingDocuments({ orderId, }: import("./interfaces").GetLogisticOrderAccountingDocumentsParameters): Promise<import("./interfaces").GetLogisticOrderAccountingDocumentsResponse>;
111
+ getLogisticOrderAccountingDocumentUrl({ orderId, documentId, }: import("./interfaces").GetLogisticOrderAccountingDocumentUrlParameters): Promise<string[]>;
112
+ approveLogisticOrder({ orderId, locale, nbPreviewLines, }: import("./interfaces").ApproveLogisticOrderParameters): Promise<import("./interfaces").ApproveLogisticOrderResponse>;
113
+ getLogisticOrderApprovers({ orderId, }: import("./interfaces").GetLogisticOrderApproversParameters): Promise<import("./interfaces").GetLogisticOrderApproversResponse>;
114
+ updateLogisticOrderBillingInformation({ orderId, billingAddressId, }: import("./interfaces").UpdateLogisticOrderBillingInformationParameters): Promise<void>;
115
+ cancelLogisticOrder({ orderId, locale, nbPreviewLines, }: import("./interfaces").CancelLogisticOrderParameters): Promise<import("./interfaces").CancelLogisticOrderResponse>;
116
+ confirmLogisticOrderReception({ orderId, locale, nbPreviewLines, }: import("./interfaces").ConfirmLogisticOrderReceptionParameters): Promise<import("./interfaces").ConfirmLogisticOrderReceptionResponse>;
117
+ createLogisticOrder({ orderId, }: import("./interfaces").CreateLogisticOrderParameters): Promise<void>;
118
+ disapproveLogisticOrder({ orderId, locale, nbPreviewLines, }: import("./interfaces").DisapproveLogisticOrderParameters): Promise<import("./interfaces").DisapproveLogisticOrderResponse>;
119
+ getLogisticOrderDocuments({ orderId, idType, }: import("./interfaces").GetLogisticOrderDocumentsParameters): Promise<import("./interfaces").GetLogisticOrderDocumentsResponse>;
120
+ getLogisticOrderDocumentUrl({ orderId, documentId, }: import("./interfaces").GetLogisticOrderDocumentUrlParameters): Promise<string[]>;
121
+ getLogisticOrderLines({ orderId, page, size, sort, locale, }: import("./interfaces").GetLogisticOrderLinesParameters): Promise<import("./interfaces").GetLogisticOrderLinesResponse>;
122
+ updateOnHoldLogisticOrderLines({ orderId, lines, }: import("./interfaces").UpdateOnHoldLogisticOrderLinesParameters): Promise<import("./interfaces").UpdateOnHoldLogisticOrderLinesResponse>;
123
+ bulkUpdateLogisticOrderLinesCustomFields({ logisticOrderId, lines, }: import("./interfaces").BulkUpdateLogisticOrderLinesCustomFieldsParameters): Promise<import("./interfaces").BulkUpdateLogisticOrderLinesCustomFieldsResponse>;
124
+ updateLogisticOrderLineCustomFields({ orderId, lineId, locale, customFields, }: import("./interfaces").UpdateLogisticOrderLineCustomFieldsParameters): Promise<import("./interfaces").UpdateLogisticOrderLineCustomFieldsResponse>;
125
+ updateOnHoldLogisticOrderLine({ orderId, orderLineId, quantity, }: import("./interfaces").UpdateOnHoldLogisticOrderLineParameters): Promise<void>;
126
+ updateLogisticOrderShippingAddress({ orderId, shippingAddressId, }: import("./interfaces").UpdateLogisticOrderShippingAddressParameters): Promise<void>;
127
+ getLogisticOrderShippingInformation({ orderId, }: import("./interfaces").GetLogisticOrderShippingAddressParameters): Promise<import("./interfaces").GetLogisticOrderShippingAddressResponse>;
128
+ updateLogisticOrderShippingInformation({ orderId, shippingAddressId, shippingType, }: import("./interfaces").UpdateLogisticOrderShippingInformationParameters): Promise<void>;
129
+ updateLogisticOrderShippingType({ orderId, shippingType, }: import("./interfaces").UpdateLogisticOrderShippingTypeParameters): Promise<void>;
130
+ createLogisticOrderThread({ orderId, lineId, message, reasonCode, }: import("./interfaces").CreateLogisticOrderThreadParameters): Promise<import("./interfaces").CreateLogisticOrderThreadResponse>;
131
+ createLogisticOrderThreadV2({ logisticOrderId, idType, message, reasonCode, }: import("./interfaces").CreateLogisticOrderThreadParametersV2): Promise<import("./interfaces").CreateLogisticOrderThreadResponseV2>;
132
+ getLogisticOrderThreads({ logisticOrderId, pageable, idType, }: import("./interfaces").GetLogisticOrderThreadsParams): Promise<import("./interfaces").GetLogisticOrderThreadsResponse>;
133
+ getLogisticOrderThread({ logisticOrderId, threadId, idType, }: import("./interfaces").GetLogisticOrderThreadParams): Promise<import("./interfaces").GetLogisticOrderThreadResponse>;
134
+ createOrderLogisticThreadMessages({ logisticOrderId, threadId, body, customField, idType, }: import("./interfaces").CreateLogisticOrderThreadMessagesParams): Promise<import("./interfaces").CreateLogisticOrderThreadMessagesResponse>;
135
+ updateOrderLogisticThreadMessage({ logisticOrderId, threadId, messageId, customFieldValues, idType, }: import("./interfaces").UpdateLogisticOrderThreadMessageParams): Promise<void>;
136
+ createLogisticOrderIncidentThreads({ logisticOrderId, incidentId, customField, message, name, reasonCode, idType, }: import("./interfaces").CreateLogisticOrderIncidentThreadsParams): Promise<import("./interfaces").CreateLogisticOrderIncidentThreadsResponse>;
137
+ getLogisticOrderIncidentThread({ logisticOrderId, incidentId, threadId, idType, }: import("./interfaces").GetLogisticOrderIncidentThreadParams): Promise<import("./interfaces").GetLogisticOrderIncidentThreadResponse>;
138
+ createLogisticOrderIncidentThreadMessages({ logisticOrderId, incidentId, threadId, body, customField, idType, }: import("./interfaces").CreateLogisticOrderIncidentThreadMessagesParams): Promise<import("./interfaces").CreateLogisticOrderIncidentThreadMessagesResponse>;
139
+ updateLogisticOrderIncidentThreadMessage({ logisticOrderId, incidentId, threadId, messageId, customFieldValues, idType, }: import("./interfaces").UpdateLogisticOrderIncidentThreadMessageParams): Promise<void>;
140
+ getLogisticOrderReview({ orderId, }: import("./interfaces").GetLogisticOrderReviewParameters): Promise<import("./interfaces").GetLogisticOrderReviewResponse>;
141
+ addLogisticOrderReview({ orderId, comment, grade, }: import("./interfaces").AddLogisticOrderReviewParameters): Promise<import("./interfaces").AddLogisticOrderReviewResponse>;
142
+ getThreadReasonTypes(): Promise<import("./interfaces").GetThreadReasonTypesResponse>;
143
+ getThreadSubReasons({ reasonType, }: import("./interfaces").GetThreadSubReasonsParameters): Promise<import("./interfaces").GetThreadSubReasonsResponse>;
144
+ getSuppliers({ pageable, supplierStatus, supplierIds, idType, }: import("./interfaces").GetSuppliersParameters): Promise<import("./interfaces").GetSuppliersResponse>;
145
+ getSupplier({ supplierId, idType, }: import("./interfaces").GetSupplierParameters): Promise<import("./interfaces").GetSupplierResponse>;
146
+ getSupplierEvaluations({ supplierId, idType, pageable, }: import("./interfaces").GetSupplierEvaluationsParameters): Promise<import("./interfaces").GetSupplierEvaluationsResponse>;
147
+ getMasterQuotes({ fromCustomerAccount, pageable, }?: import("./interfaces").GetMasterQuotesParameters): Promise<import("./interfaces").GetMasterQuotesResponse>;
148
+ createMasterQuote({ description, name, }: import("./interfaces").CreateMasterQuoteParameters): Promise<import("./interfaces").CreateMasterQuoteResponse>;
149
+ deleteMasterQuote({ masterQuoteId, }: import("./interfaces").DeleteMasterQuoteParameters): Promise<void>;
150
+ getMasterQuote({ masterQuoteId, }: import("./interfaces").GetMasterQuoteParameters): Promise<import("./interfaces").GetMasterQuoteResponse>;
151
+ updateMasterQuote({ masterQuoteId, customFieldValues, masterQuoteDetailsToAdd, masterQuoteDetailsToRemove, idType, }: import("./interfaces").UpdateMasterQuoteParameters): Promise<import("./interfaces").UpdateMasterQuoteResponse>;
152
+ createSupplierQuotes({ billingAddressId, createSupplierQuoteRequests, masterQuoteId, supplierQuoteUrl, }: import("./interfaces").CreateSupplierQuotesParameters): Promise<import("./interfaces").CreateSupplierQuotesResponse>;
153
+ getSupplierQuote({ supplierQuoteId, }: import("./interfaces").GetSupplierQuoteParameters): Promise<import("./interfaces").GetSupplierQuoteResponse>;
154
+ acceptSupplierQuote({ supplierQuoteId, }: import("./interfaces").AcceptSupplierQuoteParameters): Promise<import("./interfaces").AcceptSupplierQuoteResponse>;
155
+ updateSupplierQuoteCustomFields({ supplierQuoteId, customFieldValues, idType, }: import("./interfaces").UpdateSupplierQuoteCustomFieldsParameters): Promise<import("./interfaces").UpdateSupplierQuoteCustomFieldsResponse>;
156
+ declineSupplierQuote({ supplierQuoteId, }: import("./interfaces").DeclineSupplierQuoteParameters): Promise<import("./interfaces").DeclineSupplierQuoteResponse>;
157
+ postMessageToSupplierQuote({ supplierQuoteId, message, username, }: import("./interfaces").PostMessageToSupplierQuoteParameters): Promise<import("./interfaces").PostMessageToSupplierQuoteResponse>;
158
+ initializeOrderFromSupplierQuote({ supplierQuoteId, nbPreviewLines, quoteLineIdsAndQuantities, }: import("./interfaces").InitializeOrderFromSupplierQuoteParameters): Promise<import("./interfaces").InitializeOrderFromSupplierQuoteResponse>;
159
+ getProductVariantsList({ productSku, locale, pageable, }: import("./interfaces").GetProductVariantsListParameters): Promise<import("./interfaces").GetProductVariantsListResponse>;
160
+ getProductVariantSuppliers({ productVariantId, }: import("./interfaces").GetProductVariantSuppliersParameters): Promise<import("./interfaces").GetProductVariantSuppliersResponse>;
161
+ getProductVariantAttributes({ productIdentifier, productIdType, locale, }: import("./interfaces").GetProductVariantAttributesParameters): Promise<import("./interfaces").GetProductVariantAttributesResponse>;
162
+ getProductVariant({ productVariantId, locale, }: import("./interfaces").GetProductVariantParameters): Promise<import("./interfaces").GetProductVariantResponse>;
163
+ autoCompleteSearchProducts({ input, locale, currency, pageable, aggregation, productTags, }: import("./interfaces").AutoCompleteSearchProductsParameters): Promise<import("./interfaces").SearchProductsResponse>;
164
+ getProductsList({ locale, filters, pageable, hasOfferPrice, }: import("./interfaces").GetProductsListParameters): Promise<import("./interfaces").GetProductsListResponse>;
165
+ getProductVariantOffers({ productIdentifier, productIdType, currency, withoutPrice, }: import("./interfaces").GetProductVariantOffersParameters): Promise<import("./interfaces").GetProductVariantOffersResponse>;
166
+ getProduct({ productIdentifier, productIdType, locale, }: import("./interfaces").GetProductParameters): Promise<import("./interfaces").GetProductsListResponse>;
167
+ getProductOffers({ productIdentifier, productIdType, locale, currency, withoutPrice, }: import("./interfaces").GetProductOffersParameters): Promise<import("./interfaces").GetProductOffersResponse>;
168
+ getRelatedProducts({ productIdentifier, productIdType, locale, currency, pageable, }: import("./interfaces").GetRelatedProductsParameters): Promise<import("./interfaces").GetRelatedProductsResponse>;
169
+ getProductReviews({ productIdentifier, productIdType, }: import("./interfaces").GetProductReviewsParameters): Promise<import("./interfaces").GetProductReviewsResponse>;
170
+ getProductStatReviews({ productIdentifier, productIdType, }: import("./interfaces").GetProductStatReviewsParameters): Promise<import("./interfaces").GetProductStatReviewsResponse>;
171
+ createProductReview({ message, productSku, rating, }: import("./interfaces").CreateProductReviewParameters): Promise<import("./interfaces").CreateProductReviewResponse>;
172
+ updateProductReview({ productReviewId, message, rating, }: import("./interfaces").UpdateProductReviewParameters): Promise<import("./interfaces").UpdateProductReviewResponse>;
173
+ getProductPaginatedOffers({ productIdentifier, productIdType, currency, locale, withoutPrices, pageable, }: import("./interfaces").GetProductPaginatedOffersParameters): Promise<import("./interfaces").GetProductPaginatedOffersResponse>;
174
+ getNavigationCategories({ locale, }: import("./interfaces").GetNavigationCategoriesParameters): Promise<import("./interfaces").GetNavigationCategoriesResponse>;
175
+ getNavigationCategory({ locale, idType, navigationCategoryId, }: import("./interfaces").GetNavigationCategoryParameters): Promise<import("./interfaces").GetNavigationCategoryResponse>;
176
+ getNavigationCategoryBreadcrumbs({ locale, idType, navigationCategoryId, }: import("./interfaces").GetNavigationCategoryBreadcrumbsParameters): Promise<import("./interfaces").GetNavigationCategoryBreadcrumbsResponse>;
177
+ getNavigationCategoryByOptions(params?: import("./interfaces").GetNavigationCategoryByOptionsParameters): Promise<import("./interfaces").GetNavigationCategoriesResponse>;
178
+ getAuthenticatedUser(): Promise<import("./interfaces").GetAuthenticatedUserResponse>;
179
+ createCustomerUser(params: import("./interfaces").CreateCustomerUserParameters): Promise<import("./interfaces").CreateCustomerUserResponse>;
180
+ updateCustomerUser({ civility, firstName, lastName, phone, customFieldValues, }: import("./interfaces").UpdateCustomerUserParameters): Promise<import("./interfaces").UpdateCustomerUserResponse>;
181
+ activateCustomerUser(params: import("./interfaces").ActivateCustomerUserParameters): Promise<void>;
182
+ getCustomerUserAddresses({ shipping, billing, account, organisationIds, }: import("./interfaces").GetCustomerUserAddressesParameters): Promise<void>;
183
+ getCustomerUserOrganisations(): Promise<import("./interfaces").GetCustomerUserOrganisationsResponse>;
184
+ sendCustomerUserActivationRequest({ redirectUrl, token, }: import("./interfaces").SendCustomerUserActivationRequestParameters): Promise<void>;
185
+ updateSpecificCustomerUser({ userToUpdateId, civility, firstName, lastName, phone, groups, customFieldValues, idType, }: import("./interfaces").UpdateSpecificCustomerUserParameters): Promise<void>;
186
+ removeAccountsFromCustomerUser({ userToUpdateId, idType, accountIds, }: import("./interfaces").RemoveAccountsFromCustomerUserParameters): Promise<void>;
187
+ addCustomerUserToAccounts({ userToUpdateId, idType, accountIds, }: import("./interfaces").AddCustomerUserToAccountsParameters): Promise<void>;
188
+ getCustomerAccount(config?: import("./interfaces").DjustConfig): Promise<import("./interfaces").GetCustomerAccountResponse>;
189
+ getCustomerAccountV2(pageable: import("./interfaces").PageableParameters): Promise<import("./interfaces").GetCustomerAccountResponseV2>;
190
+ createCustomerAccount({ createAddressRequests, createCustomerUserRequest, createObjectCustomerAccountRequest, customFieldValues, customerTagList, fromFO, legalUser, ...config }: import("./interfaces").CreateCustomerAccountParameters & import("./interfaces").DjustConfig): Promise<import("./interfaces").CreateCustomerAccountResponse>;
191
+ updateCustomerAccount({ accountManager, businessRegistrationNumber, companyRegistrationName, customFieldValues, customerTagList, legalUser, name, vatNumber, website, ...config }: import("./interfaces").UpdateCustomerAccountParameters & import("./interfaces").DjustConfig): Promise<import("./interfaces").UpdateCustomerAccountResponse>;
192
+ getCustomerAccountAddresses(params: import("./interfaces").GetCustomerAccountAddressesParameters & import("./interfaces").DjustConfig): Promise<import("./interfaces").GetCustomerAccountAddressesResponse>;
193
+ createCustomerAccountAddress(params: import("./interfaces").CreateCustomerAccountAddressParameters & import("./interfaces").DjustConfig): Promise<import("./interfaces").CreateCustomerAccountAddressResponse>;
194
+ deleteCustomerAccountAddress({ addressId, ...config }: import("./interfaces").DeleteCustomerAccountAddressParameters & import("./interfaces").DjustConfig): Promise<void>;
195
+ updateCustomerAccountAddress({ addressId, additionalAddress, address, billing, city, company, country, fullName, label, phone, shipping, state, zipcode, ...config }: import("./interfaces").UpdateCustomerAccountAddressParameters & import("./interfaces").DjustConfig): Promise<import("./interfaces").UpdateCustomerAccountAddressResponse>;
196
+ getCustomerAccountCustomFields({ customFieldIds, idType, pageable, }: import("./interfaces").GetCustomerAccountCustomFieldsParameters): Promise<import("./interfaces").GetCustomerAccountCustomFieldsResponse>;
197
+ getCustomerAccountOrders(params: import("./interfaces").GetCustomerAccountOrdersParameters & import("./interfaces").DjustConfig): Promise<import("./interfaces").GetCustomerAccountOrdersResponse>;
198
+ getCustomerAccountUsers(params: import("./interfaces").GetCustomerAccountUsersParameters & import("./interfaces").DjustConfig): Promise<import("./interfaces").GetCustomerAccountUsersResponse>;
199
+ createCustomerAccountOrganisation(params: import("./interfaces").CreateCustomerAccountOrganisationParameters & import("./interfaces").DjustConfig): Promise<import("./interfaces").CreateCustomerAccountOrganisationResponse>;
200
+ updateCustomerAccountOrganisation(params: import("./interfaces").UpdateCustomerAccountOrganisationParameters & import("./interfaces").DjustConfig): Promise<import("./interfaces").UpdateCustomerAccountOrganisationResponse>;
201
+ getCustomerAccountOrganisations(params?: {
202
+ pageable?: import("./interfaces").PageableParameters;
203
+ } & import("./interfaces").DjustConfig): Promise<import("./interfaces").GetCustomerAccountOrganisationResponse>;
204
+ getCustomerAccountOrganisationAddresses(params: import("./interfaces").GetCustomerAccountOrganisationAddressesParameters & import("./interfaces").DjustConfig): Promise<import("./interfaces").GetCustomerAccountOrganisationAddressesResponse>;
205
+ deleteCustomerAccountOrganisationAddress(params: import("./interfaces").DeleteCustomerAccountOrganisationAddressParameters & import("./interfaces").DjustConfig): Promise<void>;
206
+ updateCustomerAccountOrganisationAddress(params: import("./interfaces").UpdateCustomerAccountOrganisationAddressParameters & import("./interfaces").DjustConfig): Promise<import("./interfaces").UpdateCustomerAccountOrganisationAddressResponse>;
207
+ getCustomerAccountOrganisationOrders(params: import("./interfaces").GetCustomerAccountOrganisationOrdersParameters & import("./interfaces").DjustConfig): Promise<import("./interfaces").GetCustomerAccountOrganisationOrdersResponse>;
208
+ getCustomerAccountOrganisationUsers(params: import("./interfaces").GetCustomerAccountOrganisationUsersParameters & import("./interfaces").DjustConfig): Promise<import("./interfaces").GetCustomerAccountOrganisationUsersResponse>;
209
+ updateCustomerAccountOrganisationUser(params: import("./interfaces").UpdateCustomerAccountOrganisationUserParameters & import("./interfaces").DjustConfig): Promise<import("./interfaces").UpdateCustomerAccountOrganisationUserResponse>;
210
+ deleteCarts(): Promise<import("./interfaces").DeleteCartsResponse>;
211
+ getCarts(params: import("./interfaces").GetCartsParameters): Promise<import("./interfaces").GetCartsResponse>;
212
+ createCart(params: import("./interfaces").CreateCartParameters): Promise<import("./interfaces").CreateCartResponse>;
213
+ deleteCart(params: import("./interfaces").DeleteCartParameters): Promise<void>;
214
+ getCart(params: import("./interfaces").GetCartParameters): Promise<import("./interfaces").GetCartResponse>;
215
+ updateCart(params: import("./interfaces").UpdateCartParameters): Promise<void>;
216
+ initializeOrdersFromCart(params: import("./interfaces").InitializeOrdersFromCartParameters): Promise<string>;
217
+ deleteCartLines(params: import("./interfaces").DeleteCartLinesParameters): Promise<import("./interfaces").DeleteCartLinesResponse>;
218
+ getCartLines(params: import("./interfaces").GetCartLinesParameters): Promise<import("./interfaces").GetCartLinesResponse>;
219
+ updateCartLines(params: import("./interfaces").UpdateCartLinesParameters): Promise<import("./interfaces").UpdateCartLinesResponse>;
220
+ updateCartLinesByVariant(params: import("./interfaces").UpdateCartLinesByVariantParameters): Promise<import("./interfaces").UpdateCartLinesByVariantResponse>;
221
+ isTokenValid({ token, }: import("./services/auth/definitions.requests").IsTokenValidParameters): Promise<boolean>;
222
+ refreshToken({ refreshToken, }: import("./services/auth/definitions.requests").RefreshTokenParameters): Promise<import("./interfaces").RefreshTokenResponse>;
223
+ resetPassword({ newPassword, resetPasswordToken, }: import("./services/auth/definitions.requests").ResetPasswordParameters): Promise<void>;
224
+ sendResetPasswordEmail({ email, }: import("./services/auth/definitions.requests").SendResetPasswordEmailParameters): Promise<void>;
225
+ login({ username, password, withUser, }: import("./services/auth/definitions.requests").LoginParameters): Promise<import("./interfaces").LoginResponse>;
226
+ logout(): Promise<void>;
227
+ getSettings(): Promise<import("./interfaces").SettingsResponse>;
228
+ getStore({ storeId, }: import("./services/auth/definitions.requests").GetStoreParameters): Promise<import("./interfaces").Store>;
229
+ };
230
+ /**
231
+ * Creates a new DJUST SDK client with isolated state.
232
+ *
233
+ * This is the recommended API for SSR environments (Nuxt, Nitro, Next.js).
234
+ * Each call to `withContext()` returns an isolated client that does not
235
+ * share state with other requests.
236
+ *
237
+ * @example
238
+ * ```typescript
239
+ * // Create client once at app initialization
240
+ * const djust = createDjustClient({
241
+ * baseUrl: 'https://api.djust.io',
242
+ * clientId: 'your-client-id',
243
+ * apiKey: 'your-api-key',
244
+ * timeout: 30000,
245
+ * strictErrors: true,
246
+ * });
247
+ *
248
+ * // In SSR request handler
249
+ * export default defineEventHandler(async (event) => {
250
+ * const sdk = djust.withContext({
251
+ * accessToken: getCookie(event, 'token'),
252
+ * customerAccountId: getCookie(event, 'customer-account-id'),
253
+ * requestId: getRequestHeader(event, 'x-request-id'),
254
+ * });
255
+ *
256
+ * return await sdk.getCart({ cartId: '123', currency: 'EUR' });
257
+ * });
258
+ * ```
259
+ *
260
+ * @since 2.17.0
261
+ */
262
+ export { createDjustClient } from "./client";
263
+ export type { DjustClientConfig, DjustClient, DjustScopedClient, RequestContext, RetryConfig, TransportHooks, } from "./client";
264
+ export { SDKError, SDKErrorCode, RETRIABLE_ERROR_CODES, RETRIABLE_HTTP_STATUS_CODES, ValidationError, AuthError, ForbiddenError, NotFoundError, RateLimitError, NetworkError, TimeoutError, ServerError, UnexpectedError, createErrorFromResponse, createErrorFromException, isSDKError, isAuthError, isForbiddenError, isNetworkError, isTimeoutError, isServerError, isValidationError, isNotFoundError, isRateLimitError, isUnexpectedError, isRetryable, getRetryDelay, shouldReauthenticate, isClientError, isTransientError, extractStatusCode, extractErrorCode, getUserFriendlyMessage, toLegacyError, fromLegacyError, isLegacyError, parseLegacyError, withLegacyErrors, withStructuredErrors, isApiError, getHttpStatus, } from "./errors";
265
+ export type { SDKErrorCodeType, SDKErrorOptions, RequestMetadata, ErrorFactoryOptions, SerializedError, ClientSafeError, } from "./errors";
266
+ export * from "./interfaces";
267
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAwBH;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,QAAQ;IAiBnB;;OAEG;;IAEH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBA2H+usB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;CAzHpvsB,CAAC;AAMF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC7C,YAAY,EACV,iBAAiB,EACjB,WAAW,EACX,iBAAiB,EACjB,cAAc,EACd,WAAW,EACX,cAAc,GACf,MAAM,UAAU,CAAC;AAMlB,OAAO,EAEL,QAAQ,EACR,YAAY,EACZ,qBAAqB,EACrB,2BAA2B,EAG3B,eAAe,EACf,SAAS,EACT,cAAc,EACd,aAAa,EACb,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,eAAe,EAGf,uBAAuB,EACvB,wBAAwB,EAGxB,UAAU,EACV,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EAGjB,WAAW,EACX,aAAa,EACb,oBAAoB,EACpB,aAAa,EACb,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EAGtB,aAAa,EACb,eAAe,EACf,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,oBAAoB,EACpB,UAAU,EACV,aAAa,GACd,MAAM,UAAU,CAAC;AAElB,YAAY,EACV,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,mBAAmB,EACnB,eAAe,EACf,eAAe,GAChB,MAAM,UAAU,CAAC;AAMlB,cAAc,cAAc,CAAC"}