@djust-b2b/djust-front-sdk 3.0.0-beta.8 → 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 (722) 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 +43 -41
  16. package/dist/index.d.ts.map +1 -1
  17. package/dist/index.mjs +274 -64
  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/definitions.d.ts +3 -1
  55. package/dist/services/quote/definitions.d.ts.map +1 -1
  56. package/dist/services/quote/index.d.ts +2 -1
  57. package/dist/services/quote/index.d.ts.map +1 -1
  58. package/dist/services/quote/quote.service.d.ts +1 -0
  59. package/dist/services/quote/quote.service.d.ts.map +1 -1
  60. package/dist/services/quote/types.d.ts +2 -0
  61. package/dist/services/quote/types.d.ts.map +1 -1
  62. package/dist/settings/fetch-instance.d.ts.map +1 -1
  63. package/dist/settings/sdk-version.d.ts +3 -0
  64. package/dist/settings/sdk-version.d.ts.map +1 -0
  65. package/lib/.tsbuildinfo +1 -0
  66. package/lib/client/create-client.d.ts +251 -0
  67. package/lib/client/create-client.d.ts.map +1 -0
  68. package/lib/client/create-client.js +233 -0
  69. package/lib/client/create-client.js.map +1 -0
  70. package/lib/client/index.d.ts +14 -0
  71. package/lib/client/index.d.ts.map +1 -0
  72. package/lib/client/index.js +91 -0
  73. package/lib/client/index.js.map +1 -0
  74. package/lib/client/performance.d.ts +203 -0
  75. package/lib/client/performance.d.ts.map +1 -0
  76. package/lib/client/performance.js +409 -0
  77. package/lib/client/performance.js.map +1 -0
  78. package/lib/client/transport.d.ts +372 -0
  79. package/lib/client/transport.d.ts.map +1 -0
  80. package/lib/client/transport.js +735 -0
  81. package/lib/client/transport.js.map +1 -0
  82. package/lib/errors/base.d.ts +101 -0
  83. package/lib/errors/base.d.ts.map +1 -0
  84. package/lib/errors/base.js +145 -0
  85. package/lib/errors/base.js.map +1 -0
  86. package/lib/errors/classes/auth.error.d.ts +64 -0
  87. package/lib/errors/classes/auth.error.d.ts.map +1 -0
  88. package/lib/errors/classes/auth.error.js +116 -0
  89. package/lib/errors/classes/auth.error.js.map +1 -0
  90. package/lib/errors/classes/forbidden.error.d.ts +52 -0
  91. package/lib/errors/classes/forbidden.error.d.ts.map +1 -0
  92. package/lib/errors/classes/forbidden.error.js +90 -0
  93. package/lib/errors/classes/forbidden.error.js.map +1 -0
  94. package/lib/errors/classes/index.d.ts +17 -0
  95. package/lib/errors/classes/index.d.ts.map +1 -0
  96. package/lib/errors/classes/index.js +29 -0
  97. package/lib/errors/classes/index.js.map +1 -0
  98. package/lib/errors/classes/network.error.d.ts +63 -0
  99. package/lib/errors/classes/network.error.d.ts.map +1 -0
  100. package/lib/errors/classes/network.error.js +122 -0
  101. package/lib/errors/classes/network.error.js.map +1 -0
  102. package/lib/errors/classes/not-found.error.d.ts +58 -0
  103. package/lib/errors/classes/not-found.error.d.ts.map +1 -0
  104. package/lib/errors/classes/not-found.error.js +120 -0
  105. package/lib/errors/classes/not-found.error.js.map +1 -0
  106. package/lib/errors/classes/rate-limit.error.d.ts +49 -0
  107. package/lib/errors/classes/rate-limit.error.d.ts.map +1 -0
  108. package/lib/errors/classes/rate-limit.error.js +107 -0
  109. package/lib/errors/classes/rate-limit.error.js.map +1 -0
  110. package/lib/errors/classes/server.error.d.ts +63 -0
  111. package/lib/errors/classes/server.error.d.ts.map +1 -0
  112. package/lib/errors/classes/server.error.js +156 -0
  113. package/lib/errors/classes/server.error.js.map +1 -0
  114. package/lib/errors/classes/timeout.error.d.ts +64 -0
  115. package/lib/errors/classes/timeout.error.d.ts.map +1 -0
  116. package/lib/errors/classes/timeout.error.js +90 -0
  117. package/lib/errors/classes/timeout.error.js.map +1 -0
  118. package/lib/errors/classes/unexpected.error.d.ts +70 -0
  119. package/lib/errors/classes/unexpected.error.d.ts.map +1 -0
  120. package/lib/errors/classes/unexpected.error.js +105 -0
  121. package/lib/errors/classes/unexpected.error.js.map +1 -0
  122. package/lib/errors/classes/validation.error.d.ts +68 -0
  123. package/lib/errors/classes/validation.error.d.ts.map +1 -0
  124. package/lib/errors/classes/validation.error.js +103 -0
  125. package/lib/errors/classes/validation.error.js.map +1 -0
  126. package/lib/errors/codes.d.ts +111 -0
  127. package/lib/errors/codes.d.ts.map +1 -0
  128. package/lib/errors/codes.js +143 -0
  129. package/lib/errors/codes.js.map +1 -0
  130. package/lib/errors/compat.d.ts +99 -0
  131. package/lib/errors/compat.d.ts.map +1 -0
  132. package/lib/errors/compat.js +280 -0
  133. package/lib/errors/compat.js.map +1 -0
  134. package/lib/errors/factory.d.ts +33 -0
  135. package/lib/errors/factory.d.ts.map +1 -0
  136. package/lib/errors/factory.js +298 -0
  137. package/lib/errors/factory.js.map +1 -0
  138. package/lib/errors/guards.d.ts +142 -0
  139. package/lib/errors/guards.d.ts.map +1 -0
  140. package/lib/errors/guards.js +281 -0
  141. package/lib/errors/guards.js.map +1 -0
  142. package/lib/errors/helpers/djust-api-error.d.ts +29 -0
  143. package/lib/errors/helpers/djust-api-error.d.ts.map +1 -0
  144. package/lib/errors/helpers/djust-api-error.js +49 -0
  145. package/lib/errors/helpers/djust-api-error.js.map +1 -0
  146. package/lib/errors/index.d.ts +25 -0
  147. package/lib/errors/index.d.ts.map +1 -0
  148. package/lib/errors/index.js +89 -0
  149. package/lib/errors/index.js.map +1 -0
  150. package/lib/errors/types.d.ts +104 -0
  151. package/lib/errors/types.d.ts.map +1 -0
  152. package/lib/errors/types.js +10 -0
  153. package/lib/errors/types.js.map +1 -0
  154. package/lib/helpers/index.d.ts +42 -0
  155. package/lib/helpers/index.d.ts.map +1 -0
  156. package/lib/helpers/index.js +102 -0
  157. package/lib/helpers/index.js.map +1 -0
  158. package/lib/helpers/parameters-validation.d.ts +3 -0
  159. package/lib/helpers/parameters-validation.d.ts.map +1 -0
  160. package/lib/helpers/parameters-validation.js +22 -0
  161. package/lib/helpers/parameters-validation.js.map +1 -0
  162. package/lib/helpers/utils.d.ts +5 -0
  163. package/lib/helpers/utils.d.ts.map +1 -0
  164. package/lib/helpers/utils.js +30 -0
  165. package/lib/helpers/utils.js.map +1 -0
  166. package/lib/index.d.ts +267 -0
  167. package/lib/index.d.ts.map +1 -0
  168. package/lib/index.js +182 -0
  169. package/lib/index.js.map +1 -0
  170. package/lib/interfaces/index.d.ts +43 -0
  171. package/lib/interfaces/index.d.ts.map +1 -0
  172. package/lib/interfaces/index.js +36 -0
  173. package/lib/interfaces/index.js.map +1 -0
  174. package/lib/interfaces/models/address.d.ts +61 -0
  175. package/lib/interfaces/models/address.d.ts.map +1 -0
  176. package/lib/interfaces/models/address.js +3 -0
  177. package/lib/interfaces/models/address.js.map +1 -0
  178. package/lib/interfaces/models/attribute.d.ts +31 -0
  179. package/lib/interfaces/models/attribute.d.ts.map +1 -0
  180. package/lib/interfaces/models/attribute.js +3 -0
  181. package/lib/interfaces/models/attribute.js.map +1 -0
  182. package/lib/interfaces/models/auth.d.ts +37 -0
  183. package/lib/interfaces/models/auth.d.ts.map +1 -0
  184. package/lib/interfaces/models/auth.js +3 -0
  185. package/lib/interfaces/models/auth.js.map +1 -0
  186. package/lib/interfaces/models/cart.d.ts +64 -0
  187. package/lib/interfaces/models/cart.d.ts.map +1 -0
  188. package/lib/interfaces/models/cart.js +3 -0
  189. package/lib/interfaces/models/cart.js.map +1 -0
  190. package/lib/interfaces/models/common.d.ts +68 -0
  191. package/lib/interfaces/models/common.d.ts.map +1 -0
  192. package/lib/interfaces/models/common.js +3 -0
  193. package/lib/interfaces/models/common.js.map +1 -0
  194. package/lib/interfaces/models/custom-field.d.ts +57 -0
  195. package/lib/interfaces/models/custom-field.d.ts.map +1 -0
  196. package/lib/interfaces/models/custom-field.js +3 -0
  197. package/lib/interfaces/models/custom-field.js.map +1 -0
  198. package/lib/interfaces/models/customer-account.d.ts +52 -0
  199. package/lib/interfaces/models/customer-account.d.ts.map +1 -0
  200. package/lib/interfaces/models/customer-account.js +3 -0
  201. package/lib/interfaces/models/customer-account.js.map +1 -0
  202. package/lib/interfaces/models/customer-organisation.d.ts +14 -0
  203. package/lib/interfaces/models/customer-organisation.d.ts.map +1 -0
  204. package/lib/interfaces/models/customer-organisation.js +3 -0
  205. package/lib/interfaces/models/customer-organisation.js.map +1 -0
  206. package/lib/interfaces/models/customer-user.d.ts +114 -0
  207. package/lib/interfaces/models/customer-user.d.ts.map +1 -0
  208. package/lib/interfaces/models/customer-user.js +3 -0
  209. package/lib/interfaces/models/customer-user.js.map +1 -0
  210. package/lib/interfaces/models/incident.d.ts +37 -0
  211. package/lib/interfaces/models/incident.d.ts.map +1 -0
  212. package/lib/interfaces/models/incident.js +3 -0
  213. package/lib/interfaces/models/incident.js.map +1 -0
  214. package/lib/interfaces/models/navigation-category.d.ts +22 -0
  215. package/lib/interfaces/models/navigation-category.d.ts.map +1 -0
  216. package/lib/interfaces/models/navigation-category.js +3 -0
  217. package/lib/interfaces/models/navigation-category.js.map +1 -0
  218. package/lib/interfaces/models/offer.d.ts +151 -0
  219. package/lib/interfaces/models/offer.d.ts.map +1 -0
  220. package/lib/interfaces/models/offer.js +3 -0
  221. package/lib/interfaces/models/offer.js.map +1 -0
  222. package/lib/interfaces/models/order.d.ts +701 -0
  223. package/lib/interfaces/models/order.d.ts.map +1 -0
  224. package/lib/interfaces/models/order.js +3 -0
  225. package/lib/interfaces/models/order.js.map +1 -0
  226. package/lib/interfaces/models/payment.d.ts +20 -0
  227. package/lib/interfaces/models/payment.d.ts.map +1 -0
  228. package/lib/interfaces/models/payment.js +3 -0
  229. package/lib/interfaces/models/payment.js.map +1 -0
  230. package/lib/interfaces/models/price.d.ts +6 -0
  231. package/lib/interfaces/models/price.d.ts.map +1 -0
  232. package/lib/interfaces/models/price.js +3 -0
  233. package/lib/interfaces/models/price.js.map +1 -0
  234. package/lib/interfaces/models/product.d.ts +243 -0
  235. package/lib/interfaces/models/product.d.ts.map +1 -0
  236. package/lib/interfaces/models/product.js +3 -0
  237. package/lib/interfaces/models/product.js.map +1 -0
  238. package/lib/interfaces/models/quote.d.ts +77 -0
  239. package/lib/interfaces/models/quote.d.ts.map +1 -0
  240. package/lib/interfaces/models/quote.js +3 -0
  241. package/lib/interfaces/models/quote.js.map +1 -0
  242. package/lib/interfaces/models/searchProduct.d.ts +128 -0
  243. package/lib/interfaces/models/searchProduct.d.ts.map +1 -0
  244. package/lib/interfaces/models/searchProduct.js +3 -0
  245. package/lib/interfaces/models/searchProduct.js.map +1 -0
  246. package/lib/interfaces/models/supplier.d.ts +72 -0
  247. package/lib/interfaces/models/supplier.d.ts.map +1 -0
  248. package/lib/interfaces/models/supplier.js +3 -0
  249. package/lib/interfaces/models/supplier.js.map +1 -0
  250. package/lib/services/attributes/attributes.service.d.ts +18 -0
  251. package/lib/services/attributes/attributes.service.d.ts.map +1 -0
  252. package/lib/services/attributes/attributes.service.js +37 -0
  253. package/lib/services/attributes/attributes.service.js.map +1 -0
  254. package/lib/services/attributes/definitions.d.ts +28 -0
  255. package/lib/services/attributes/definitions.d.ts.map +1 -0
  256. package/lib/services/attributes/definitions.js +3 -0
  257. package/lib/services/attributes/definitions.js.map +1 -0
  258. package/lib/services/attributes/endpoints.d.ts +12 -0
  259. package/lib/services/attributes/endpoints.d.ts.map +1 -0
  260. package/lib/services/attributes/endpoints.js +14 -0
  261. package/lib/services/attributes/endpoints.js.map +1 -0
  262. package/lib/services/attributes/index.d.ts +33 -0
  263. package/lib/services/attributes/index.d.ts.map +1 -0
  264. package/lib/services/attributes/index.js +50 -0
  265. package/lib/services/attributes/index.js.map +1 -0
  266. package/lib/services/attributes/module.d.ts +11 -0
  267. package/lib/services/attributes/module.d.ts.map +1 -0
  268. package/lib/services/attributes/module.js +15 -0
  269. package/lib/services/attributes/module.js.map +1 -0
  270. package/lib/services/attributes/types.d.ts +35 -0
  271. package/lib/services/attributes/types.d.ts.map +1 -0
  272. package/lib/services/attributes/types.js +10 -0
  273. package/lib/services/attributes/types.js.map +1 -0
  274. package/lib/services/auth/__mocks__/auth.mocks.d.ts +249 -0
  275. package/lib/services/auth/__mocks__/auth.mocks.d.ts.map +1 -0
  276. package/lib/services/auth/__mocks__/auth.mocks.js +221 -0
  277. package/lib/services/auth/__mocks__/auth.mocks.js.map +1 -0
  278. package/lib/services/auth/auth.service.d.ts +286 -0
  279. package/lib/services/auth/auth.service.d.ts.map +1 -0
  280. package/lib/services/auth/auth.service.js +423 -0
  281. package/lib/services/auth/auth.service.js.map +1 -0
  282. package/lib/services/auth/definitions.d.ts +69 -0
  283. package/lib/services/auth/definitions.d.ts.map +1 -0
  284. package/lib/services/auth/definitions.js +3 -0
  285. package/lib/services/auth/definitions.js.map +1 -0
  286. package/lib/services/auth/definitions.requests.d.ts +25 -0
  287. package/lib/services/auth/definitions.requests.d.ts.map +1 -0
  288. package/lib/services/auth/definitions.requests.js +6 -0
  289. package/lib/services/auth/definitions.requests.js.map +1 -0
  290. package/lib/services/auth/endpoints.d.ts +30 -0
  291. package/lib/services/auth/endpoints.d.ts.map +1 -0
  292. package/lib/services/auth/endpoints.js +32 -0
  293. package/lib/services/auth/endpoints.js.map +1 -0
  294. package/lib/services/auth/index.d.ts +232 -0
  295. package/lib/services/auth/index.d.ts.map +1 -0
  296. package/lib/services/auth/index.js +310 -0
  297. package/lib/services/auth/index.js.map +1 -0
  298. package/lib/services/auth/module.d.ts +11 -0
  299. package/lib/services/auth/module.d.ts.map +1 -0
  300. package/lib/services/auth/module.js +17 -0
  301. package/lib/services/auth/module.js.map +1 -0
  302. package/lib/services/auth/types.d.ts +124 -0
  303. package/lib/services/auth/types.d.ts.map +1 -0
  304. package/lib/services/auth/types.js +10 -0
  305. package/lib/services/auth/types.js.map +1 -0
  306. package/lib/services/base.service.d.ts +83 -0
  307. package/lib/services/base.service.d.ts.map +1 -0
  308. package/lib/services/base.service.js +121 -0
  309. package/lib/services/base.service.js.map +1 -0
  310. package/lib/services/cart/cart.service.d.ts +443 -0
  311. package/lib/services/cart/cart.service.d.ts.map +1 -0
  312. package/lib/services/cart/cart.service.js +551 -0
  313. package/lib/services/cart/cart.service.js.map +1 -0
  314. package/lib/services/cart/definitions.d.ts +84 -0
  315. package/lib/services/cart/definitions.d.ts.map +1 -0
  316. package/lib/services/cart/definitions.js +3 -0
  317. package/lib/services/cart/definitions.js.map +1 -0
  318. package/lib/services/cart/endpoints.d.ts +24 -0
  319. package/lib/services/cart/endpoints.d.ts.map +1 -0
  320. package/lib/services/cart/endpoints.js +26 -0
  321. package/lib/services/cart/endpoints.js.map +1 -0
  322. package/lib/services/cart/index.d.ts +330 -0
  323. package/lib/services/cart/index.d.ts.map +1 -0
  324. package/lib/services/cart/index.js +464 -0
  325. package/lib/services/cart/index.js.map +1 -0
  326. package/lib/services/cart/module.d.ts +11 -0
  327. package/lib/services/cart/module.d.ts.map +1 -0
  328. package/lib/services/cart/module.js +17 -0
  329. package/lib/services/cart/module.js.map +1 -0
  330. package/lib/services/cart/types.d.ts +236 -0
  331. package/lib/services/cart/types.d.ts.map +1 -0
  332. package/lib/services/cart/types.js +10 -0
  333. package/lib/services/cart/types.js.map +1 -0
  334. package/lib/services/commercial-order/commercial-order.service.d.ts +435 -0
  335. package/lib/services/commercial-order/commercial-order.service.d.ts.map +1 -0
  336. package/lib/services/commercial-order/commercial-order.service.js +690 -0
  337. package/lib/services/commercial-order/commercial-order.service.js.map +1 -0
  338. package/lib/services/commercial-order/definitions.d.ts +182 -0
  339. package/lib/services/commercial-order/definitions.d.ts.map +1 -0
  340. package/lib/services/commercial-order/definitions.js +3 -0
  341. package/lib/services/commercial-order/definitions.js.map +1 -0
  342. package/lib/services/commercial-order/endpoints.d.ts +28 -0
  343. package/lib/services/commercial-order/endpoints.d.ts.map +1 -0
  344. package/lib/services/commercial-order/endpoints.js +33 -0
  345. package/lib/services/commercial-order/endpoints.js.map +1 -0
  346. package/lib/services/commercial-order/index.d.ts +721 -0
  347. package/lib/services/commercial-order/index.d.ts.map +1 -0
  348. package/lib/services/commercial-order/index.js +986 -0
  349. package/lib/services/commercial-order/index.js.map +1 -0
  350. package/lib/services/commercial-order/module.d.ts +11 -0
  351. package/lib/services/commercial-order/module.d.ts.map +1 -0
  352. package/lib/services/commercial-order/module.js +15 -0
  353. package/lib/services/commercial-order/module.js.map +1 -0
  354. package/lib/services/commercial-order/types.d.ts +244 -0
  355. package/lib/services/commercial-order/types.d.ts.map +1 -0
  356. package/lib/services/commercial-order/types.js +10 -0
  357. package/lib/services/commercial-order/types.js.map +1 -0
  358. package/lib/services/custom-field/custom-field.service.d.ts +23 -0
  359. package/lib/services/custom-field/custom-field.service.d.ts.map +1 -0
  360. package/lib/services/custom-field/custom-field.service.js +64 -0
  361. package/lib/services/custom-field/custom-field.service.js.map +1 -0
  362. package/lib/services/custom-field/definitions.d.ts +107 -0
  363. package/lib/services/custom-field/definitions.d.ts.map +1 -0
  364. package/lib/services/custom-field/definitions.js +61 -0
  365. package/lib/services/custom-field/definitions.js.map +1 -0
  366. package/lib/services/custom-field/endpoints.d.ts +13 -0
  367. package/lib/services/custom-field/endpoints.d.ts.map +1 -0
  368. package/lib/services/custom-field/endpoints.js +15 -0
  369. package/lib/services/custom-field/endpoints.js.map +1 -0
  370. package/lib/services/custom-field/index.d.ts +115 -0
  371. package/lib/services/custom-field/index.d.ts.map +1 -0
  372. package/lib/services/custom-field/index.js +144 -0
  373. package/lib/services/custom-field/index.js.map +1 -0
  374. package/lib/services/custom-field/module.d.ts +11 -0
  375. package/lib/services/custom-field/module.d.ts.map +1 -0
  376. package/lib/services/custom-field/module.js +15 -0
  377. package/lib/services/custom-field/module.js.map +1 -0
  378. package/lib/services/custom-field/types.d.ts +51 -0
  379. package/lib/services/custom-field/types.d.ts.map +1 -0
  380. package/lib/services/custom-field/types.js +10 -0
  381. package/lib/services/custom-field/types.js.map +1 -0
  382. package/lib/services/customer-account/customer-account.service.d.ts +387 -0
  383. package/lib/services/customer-account/customer-account.service.d.ts.map +1 -0
  384. package/lib/services/customer-account/customer-account.service.js +579 -0
  385. package/lib/services/customer-account/customer-account.service.js.map +1 -0
  386. package/lib/services/customer-account/definitions.d.ts +164 -0
  387. package/lib/services/customer-account/definitions.d.ts.map +1 -0
  388. package/lib/services/customer-account/definitions.js +3 -0
  389. package/lib/services/customer-account/definitions.js.map +1 -0
  390. package/lib/services/customer-account/endpoints.d.ts +25 -0
  391. package/lib/services/customer-account/endpoints.d.ts.map +1 -0
  392. package/lib/services/customer-account/endpoints.js +33 -0
  393. package/lib/services/customer-account/endpoints.js.map +1 -0
  394. package/lib/services/customer-account/index.d.ts +656 -0
  395. package/lib/services/customer-account/index.d.ts.map +1 -0
  396. package/lib/services/customer-account/index.js +929 -0
  397. package/lib/services/customer-account/index.js.map +1 -0
  398. package/lib/services/customer-account/module.d.ts +11 -0
  399. package/lib/services/customer-account/module.d.ts.map +1 -0
  400. package/lib/services/customer-account/module.js +15 -0
  401. package/lib/services/customer-account/module.js.map +1 -0
  402. package/lib/services/customer-account/types.d.ts +253 -0
  403. package/lib/services/customer-account/types.d.ts.map +1 -0
  404. package/lib/services/customer-account/types.js +10 -0
  405. package/lib/services/customer-account/types.js.map +1 -0
  406. package/lib/services/customer-user/customer-user.service.d.ts +280 -0
  407. package/lib/services/customer-user/customer-user.service.d.ts.map +1 -0
  408. package/lib/services/customer-user/customer-user.service.js +402 -0
  409. package/lib/services/customer-user/customer-user.service.js.map +1 -0
  410. package/lib/services/customer-user/definitions.d.ts +84 -0
  411. package/lib/services/customer-user/definitions.d.ts.map +1 -0
  412. package/lib/services/customer-user/definitions.js +3 -0
  413. package/lib/services/customer-user/definitions.js.map +1 -0
  414. package/lib/services/customer-user/endpoints.d.ts +19 -0
  415. package/lib/services/customer-user/endpoints.d.ts.map +1 -0
  416. package/lib/services/customer-user/endpoints.js +21 -0
  417. package/lib/services/customer-user/endpoints.js.map +1 -0
  418. package/lib/services/customer-user/index.d.ts +394 -0
  419. package/lib/services/customer-user/index.d.ts.map +1 -0
  420. package/lib/services/customer-user/index.js +528 -0
  421. package/lib/services/customer-user/index.js.map +1 -0
  422. package/lib/services/customer-user/module.d.ts +11 -0
  423. package/lib/services/customer-user/module.d.ts.map +1 -0
  424. package/lib/services/customer-user/module.js +15 -0
  425. package/lib/services/customer-user/module.js.map +1 -0
  426. package/lib/services/customer-user/types.d.ts +118 -0
  427. package/lib/services/customer-user/types.d.ts.map +1 -0
  428. package/lib/services/customer-user/types.js +10 -0
  429. package/lib/services/customer-user/types.js.map +1 -0
  430. package/lib/services/factory.d.ts +104 -0
  431. package/lib/services/factory.d.ts.map +1 -0
  432. package/lib/services/factory.js +89 -0
  433. package/lib/services/factory.js.map +1 -0
  434. package/lib/services/incident/definitions.d.ts +85 -0
  435. package/lib/services/incident/definitions.d.ts.map +1 -0
  436. package/lib/services/incident/definitions.js +3 -0
  437. package/lib/services/incident/definitions.js.map +1 -0
  438. package/lib/services/incident/endpoints.d.ts +17 -0
  439. package/lib/services/incident/endpoints.d.ts.map +1 -0
  440. package/lib/services/incident/endpoints.js +19 -0
  441. package/lib/services/incident/endpoints.js.map +1 -0
  442. package/lib/services/incident/incident.service.d.ts +24 -0
  443. package/lib/services/incident/incident.service.d.ts.map +1 -0
  444. package/lib/services/incident/incident.service.js +141 -0
  445. package/lib/services/incident/incident.service.js.map +1 -0
  446. package/lib/services/incident/index.d.ts +270 -0
  447. package/lib/services/incident/index.d.ts.map +1 -0
  448. package/lib/services/incident/index.js +389 -0
  449. package/lib/services/incident/index.js.map +1 -0
  450. package/lib/services/incident/module.d.ts +11 -0
  451. package/lib/services/incident/module.d.ts.map +1 -0
  452. package/lib/services/incident/module.js +15 -0
  453. package/lib/services/incident/module.js.map +1 -0
  454. package/lib/services/incident/types.d.ts +116 -0
  455. package/lib/services/incident/types.d.ts.map +1 -0
  456. package/lib/services/incident/types.js +10 -0
  457. package/lib/services/incident/types.js.map +1 -0
  458. package/lib/services/logistic-order/definitions.d.ts +315 -0
  459. package/lib/services/logistic-order/definitions.d.ts.map +1 -0
  460. package/lib/services/logistic-order/definitions.js +3 -0
  461. package/lib/services/logistic-order/definitions.js.map +1 -0
  462. package/lib/services/logistic-order/endpoints.d.ts +44 -0
  463. package/lib/services/logistic-order/endpoints.d.ts.map +1 -0
  464. package/lib/services/logistic-order/endpoints.js +57 -0
  465. package/lib/services/logistic-order/endpoints.js.map +1 -0
  466. package/lib/services/logistic-order/index.d.ts +1376 -0
  467. package/lib/services/logistic-order/index.d.ts.map +1 -0
  468. package/lib/services/logistic-order/index.js +1823 -0
  469. package/lib/services/logistic-order/index.js.map +1 -0
  470. package/lib/services/logistic-order/logistic-order.service.d.ts +62 -0
  471. package/lib/services/logistic-order/logistic-order.service.d.ts.map +1 -0
  472. package/lib/services/logistic-order/logistic-order.service.js +499 -0
  473. package/lib/services/logistic-order/logistic-order.service.js.map +1 -0
  474. package/lib/services/logistic-order/module.d.ts +11 -0
  475. package/lib/services/logistic-order/module.d.ts.map +1 -0
  476. package/lib/services/logistic-order/module.js +15 -0
  477. package/lib/services/logistic-order/module.js.map +1 -0
  478. package/lib/services/logistic-order/types.d.ts +411 -0
  479. package/lib/services/logistic-order/types.d.ts.map +1 -0
  480. package/lib/services/logistic-order/types.js +10 -0
  481. package/lib/services/logistic-order/types.js.map +1 -0
  482. package/lib/services/module.d.ts +64 -0
  483. package/lib/services/module.d.ts.map +1 -0
  484. package/lib/services/module.js +147 -0
  485. package/lib/services/module.js.map +1 -0
  486. package/lib/services/navigation-category/definitions.d.ts +31 -0
  487. package/lib/services/navigation-category/definitions.d.ts.map +1 -0
  488. package/lib/services/navigation-category/definitions.js +3 -0
  489. package/lib/services/navigation-category/definitions.js.map +1 -0
  490. package/lib/services/navigation-category/endpoints.d.ts +15 -0
  491. package/lib/services/navigation-category/endpoints.d.ts.map +1 -0
  492. package/lib/services/navigation-category/endpoints.js +17 -0
  493. package/lib/services/navigation-category/endpoints.js.map +1 -0
  494. package/lib/services/navigation-category/index.d.ts +114 -0
  495. package/lib/services/navigation-category/index.d.ts.map +1 -0
  496. package/lib/services/navigation-category/index.js +160 -0
  497. package/lib/services/navigation-category/index.js.map +1 -0
  498. package/lib/services/navigation-category/module.d.ts +11 -0
  499. package/lib/services/navigation-category/module.d.ts.map +1 -0
  500. package/lib/services/navigation-category/module.js +15 -0
  501. package/lib/services/navigation-category/module.js.map +1 -0
  502. package/lib/services/navigation-category/navigation-category.service.d.ts +148 -0
  503. package/lib/services/navigation-category/navigation-category.service.d.ts.map +1 -0
  504. package/lib/services/navigation-category/navigation-category.service.js +191 -0
  505. package/lib/services/navigation-category/navigation-category.service.js.map +1 -0
  506. package/lib/services/navigation-category/types.d.ts +51 -0
  507. package/lib/services/navigation-category/types.d.ts.map +1 -0
  508. package/lib/services/navigation-category/types.js +10 -0
  509. package/lib/services/navigation-category/types.js.map +1 -0
  510. package/lib/services/offer-inventories/definitions.d.ts +73 -0
  511. package/lib/services/offer-inventories/definitions.d.ts.map +1 -0
  512. package/lib/services/offer-inventories/definitions.js +3 -0
  513. package/lib/services/offer-inventories/definitions.js.map +1 -0
  514. package/lib/services/offer-inventories/endpoints.d.ts +16 -0
  515. package/lib/services/offer-inventories/endpoints.d.ts.map +1 -0
  516. package/lib/services/offer-inventories/endpoints.js +18 -0
  517. package/lib/services/offer-inventories/endpoints.js.map +1 -0
  518. package/lib/services/offer-inventories/index.d.ts +120 -0
  519. package/lib/services/offer-inventories/index.d.ts.map +1 -0
  520. package/lib/services/offer-inventories/index.js +175 -0
  521. package/lib/services/offer-inventories/index.js.map +1 -0
  522. package/lib/services/offer-inventories/module.d.ts +11 -0
  523. package/lib/services/offer-inventories/module.d.ts.map +1 -0
  524. package/lib/services/offer-inventories/module.js +15 -0
  525. package/lib/services/offer-inventories/module.js.map +1 -0
  526. package/lib/services/offer-inventories/offer-inventories.service.d.ts +26 -0
  527. package/lib/services/offer-inventories/offer-inventories.service.d.ts.map +1 -0
  528. package/lib/services/offer-inventories/offer-inventories.service.js +80 -0
  529. package/lib/services/offer-inventories/offer-inventories.service.js.map +1 -0
  530. package/lib/services/offer-inventories/types.d.ts +85 -0
  531. package/lib/services/offer-inventories/types.d.ts.map +1 -0
  532. package/lib/services/offer-inventories/types.js +10 -0
  533. package/lib/services/offer-inventories/types.js.map +1 -0
  534. package/lib/services/offer-prices/__mocks__/offer-prices.mocks.d.ts +109 -0
  535. package/lib/services/offer-prices/__mocks__/offer-prices.mocks.d.ts.map +1 -0
  536. package/lib/services/offer-prices/__mocks__/offer-prices.mocks.js +201 -0
  537. package/lib/services/offer-prices/__mocks__/offer-prices.mocks.js.map +1 -0
  538. package/lib/services/offer-prices/definitions.d.ts +24 -0
  539. package/lib/services/offer-prices/definitions.d.ts.map +1 -0
  540. package/lib/services/offer-prices/definitions.js +3 -0
  541. package/lib/services/offer-prices/definitions.js.map +1 -0
  542. package/lib/services/offer-prices/endpoints.d.ts +12 -0
  543. package/lib/services/offer-prices/endpoints.d.ts.map +1 -0
  544. package/lib/services/offer-prices/endpoints.js +14 -0
  545. package/lib/services/offer-prices/endpoints.js.map +1 -0
  546. package/lib/services/offer-prices/index.d.ts +36 -0
  547. package/lib/services/offer-prices/index.d.ts.map +1 -0
  548. package/lib/services/offer-prices/index.js +53 -0
  549. package/lib/services/offer-prices/index.js.map +1 -0
  550. package/lib/services/offer-prices/module.d.ts +11 -0
  551. package/lib/services/offer-prices/module.d.ts.map +1 -0
  552. package/lib/services/offer-prices/module.js +15 -0
  553. package/lib/services/offer-prices/module.js.map +1 -0
  554. package/lib/services/offer-prices/offer-prices.service.d.ts +18 -0
  555. package/lib/services/offer-prices/offer-prices.service.d.ts.map +1 -0
  556. package/lib/services/offer-prices/offer-prices.service.js +36 -0
  557. package/lib/services/offer-prices/offer-prices.service.js.map +1 -0
  558. package/lib/services/offer-prices/types.d.ts +33 -0
  559. package/lib/services/offer-prices/types.d.ts.map +1 -0
  560. package/lib/services/offer-prices/types.js +10 -0
  561. package/lib/services/offer-prices/types.js.map +1 -0
  562. package/lib/services/operation/definitions.d.ts +263 -0
  563. package/lib/services/operation/definitions.d.ts.map +1 -0
  564. package/lib/services/operation/definitions.js +18 -0
  565. package/lib/services/operation/definitions.js.map +1 -0
  566. package/lib/services/operation/endpoints.d.ts +18 -0
  567. package/lib/services/operation/endpoints.d.ts.map +1 -0
  568. package/lib/services/operation/endpoints.js +22 -0
  569. package/lib/services/operation/endpoints.js.map +1 -0
  570. package/lib/services/operation/index.d.ts +520 -0
  571. package/lib/services/operation/index.d.ts.map +1 -0
  572. package/lib/services/operation/index.js +704 -0
  573. package/lib/services/operation/index.js.map +1 -0
  574. package/lib/services/operation/module.d.ts +11 -0
  575. package/lib/services/operation/module.d.ts.map +1 -0
  576. package/lib/services/operation/module.js +15 -0
  577. package/lib/services/operation/module.js.map +1 -0
  578. package/lib/services/operation/operation.service.d.ts +32 -0
  579. package/lib/services/operation/operation.service.d.ts.map +1 -0
  580. package/lib/services/operation/operation.service.js +206 -0
  581. package/lib/services/operation/operation.service.js.map +1 -0
  582. package/lib/services/operation/types.d.ts +174 -0
  583. package/lib/services/operation/types.d.ts.map +1 -0
  584. package/lib/services/operation/types.js +10 -0
  585. package/lib/services/operation/types.js.map +1 -0
  586. package/lib/services/payment/definitions.d.ts +69 -0
  587. package/lib/services/payment/definitions.d.ts.map +1 -0
  588. package/lib/services/payment/definitions.js +3 -0
  589. package/lib/services/payment/definitions.js.map +1 -0
  590. package/lib/services/payment/endpoints.d.ts +16 -0
  591. package/lib/services/payment/endpoints.d.ts.map +1 -0
  592. package/lib/services/payment/endpoints.js +18 -0
  593. package/lib/services/payment/endpoints.js.map +1 -0
  594. package/lib/services/payment/index.d.ts +150 -0
  595. package/lib/services/payment/index.d.ts.map +1 -0
  596. package/lib/services/payment/index.js +220 -0
  597. package/lib/services/payment/index.js.map +1 -0
  598. package/lib/services/payment/module.d.ts +11 -0
  599. package/lib/services/payment/module.d.ts.map +1 -0
  600. package/lib/services/payment/module.js +15 -0
  601. package/lib/services/payment/module.js.map +1 -0
  602. package/lib/services/payment/payment.service.d.ts +224 -0
  603. package/lib/services/payment/payment.service.d.ts.map +1 -0
  604. package/lib/services/payment/payment.service.js +288 -0
  605. package/lib/services/payment/payment.service.js.map +1 -0
  606. package/lib/services/payment/types.d.ts +93 -0
  607. package/lib/services/payment/types.d.ts.map +1 -0
  608. package/lib/services/payment/types.js +10 -0
  609. package/lib/services/payment/types.js.map +1 -0
  610. package/lib/services/product/definitions.d.ts +150 -0
  611. package/lib/services/product/definitions.d.ts.map +1 -0
  612. package/lib/services/product/definitions.js +9 -0
  613. package/lib/services/product/definitions.js.map +1 -0
  614. package/lib/services/product/endpoints.d.ts +40 -0
  615. package/lib/services/product/endpoints.d.ts.map +1 -0
  616. package/lib/services/product/endpoints.js +42 -0
  617. package/lib/services/product/endpoints.js.map +1 -0
  618. package/lib/services/product/index.d.ts +388 -0
  619. package/lib/services/product/index.d.ts.map +1 -0
  620. package/lib/services/product/index.js +564 -0
  621. package/lib/services/product/index.js.map +1 -0
  622. package/lib/services/product/module.d.ts +11 -0
  623. package/lib/services/product/module.d.ts.map +1 -0
  624. package/lib/services/product/module.js +17 -0
  625. package/lib/services/product/module.js.map +1 -0
  626. package/lib/services/product/product.service.d.ts +452 -0
  627. package/lib/services/product/product.service.d.ts.map +1 -0
  628. package/lib/services/product/product.service.js +624 -0
  629. package/lib/services/product/product.service.js.map +1 -0
  630. package/lib/services/product/types.d.ts +344 -0
  631. package/lib/services/product/types.d.ts.map +1 -0
  632. package/lib/services/product/types.js +10 -0
  633. package/lib/services/product/types.js.map +1 -0
  634. package/lib/services/product-variant/definitions.d.ts +33 -0
  635. package/lib/services/product-variant/definitions.d.ts.map +1 -0
  636. package/lib/services/product-variant/definitions.js +7 -0
  637. package/lib/services/product-variant/definitions.js.map +1 -0
  638. package/lib/services/product-variant/endpoints.d.ts +15 -0
  639. package/lib/services/product-variant/endpoints.d.ts.map +1 -0
  640. package/lib/services/product-variant/endpoints.js +17 -0
  641. package/lib/services/product-variant/endpoints.js.map +1 -0
  642. package/lib/services/product-variant/index.d.ts +123 -0
  643. package/lib/services/product-variant/index.d.ts.map +1 -0
  644. package/lib/services/product-variant/index.js +172 -0
  645. package/lib/services/product-variant/index.js.map +1 -0
  646. package/lib/services/product-variant/module.d.ts +11 -0
  647. package/lib/services/product-variant/module.d.ts.map +1 -0
  648. package/lib/services/product-variant/module.js +15 -0
  649. package/lib/services/product-variant/module.js.map +1 -0
  650. package/lib/services/product-variant/product-variant.service.d.ts +21 -0
  651. package/lib/services/product-variant/product-variant.service.d.ts.map +1 -0
  652. package/lib/services/product-variant/product-variant.service.js +69 -0
  653. package/lib/services/product-variant/product-variant.service.js.map +1 -0
  654. package/lib/services/product-variant/types.d.ts +73 -0
  655. package/lib/services/product-variant/types.d.ts.map +1 -0
  656. package/lib/services/product-variant/types.js +10 -0
  657. package/lib/services/product-variant/types.js.map +1 -0
  658. package/lib/services/quote/definitions.d.ts +102 -0
  659. package/lib/services/quote/definitions.d.ts.map +1 -0
  660. package/lib/services/quote/definitions.js +3 -0
  661. package/lib/services/quote/definitions.js.map +1 -0
  662. package/lib/services/quote/endpoints.d.ts +20 -0
  663. package/lib/services/quote/endpoints.d.ts.map +1 -0
  664. package/lib/services/quote/endpoints.js +24 -0
  665. package/lib/services/quote/endpoints.js.map +1 -0
  666. package/lib/services/quote/index.d.ts +378 -0
  667. package/lib/services/quote/index.d.ts.map +1 -0
  668. package/lib/services/quote/index.js +506 -0
  669. package/lib/services/quote/index.js.map +1 -0
  670. package/lib/services/quote/module.d.ts +11 -0
  671. package/lib/services/quote/module.d.ts.map +1 -0
  672. package/lib/services/quote/module.js +15 -0
  673. package/lib/services/quote/module.js.map +1 -0
  674. package/lib/services/quote/quote.service.d.ts +346 -0
  675. package/lib/services/quote/quote.service.d.ts.map +1 -0
  676. package/lib/services/quote/quote.service.js +479 -0
  677. package/lib/services/quote/quote.service.js.map +1 -0
  678. package/lib/services/quote/types.d.ts +160 -0
  679. package/lib/services/quote/types.d.ts.map +1 -0
  680. package/lib/services/quote/types.js +10 -0
  681. package/lib/services/quote/types.js.map +1 -0
  682. package/lib/services/supplier/__mocks__/supplier-mocks.d.ts +49 -0
  683. package/lib/services/supplier/__mocks__/supplier-mocks.d.ts.map +1 -0
  684. package/lib/services/supplier/__mocks__/supplier-mocks.js +168 -0
  685. package/lib/services/supplier/__mocks__/supplier-mocks.js.map +1 -0
  686. package/lib/services/supplier/definitions.d.ts +30 -0
  687. package/lib/services/supplier/definitions.d.ts.map +1 -0
  688. package/lib/services/supplier/definitions.js +3 -0
  689. package/lib/services/supplier/definitions.js.map +1 -0
  690. package/lib/services/supplier/endpoints.d.ts +14 -0
  691. package/lib/services/supplier/endpoints.d.ts.map +1 -0
  692. package/lib/services/supplier/endpoints.js +16 -0
  693. package/lib/services/supplier/endpoints.js.map +1 -0
  694. package/lib/services/supplier/index.d.ts +102 -0
  695. package/lib/services/supplier/index.d.ts.map +1 -0
  696. package/lib/services/supplier/index.js +146 -0
  697. package/lib/services/supplier/index.js.map +1 -0
  698. package/lib/services/supplier/module.d.ts +11 -0
  699. package/lib/services/supplier/module.d.ts.map +1 -0
  700. package/lib/services/supplier/module.js +15 -0
  701. package/lib/services/supplier/module.js.map +1 -0
  702. package/lib/services/supplier/supplier.service.d.ts +20 -0
  703. package/lib/services/supplier/supplier.service.d.ts.map +1 -0
  704. package/lib/services/supplier/supplier.service.js +63 -0
  705. package/lib/services/supplier/supplier.service.js.map +1 -0
  706. package/lib/services/supplier/types.d.ts +58 -0
  707. package/lib/services/supplier/types.d.ts.map +1 -0
  708. package/lib/services/supplier/types.js +10 -0
  709. package/lib/services/supplier/types.js.map +1 -0
  710. package/lib/services/types.d.ts +81 -0
  711. package/lib/services/types.d.ts.map +1 -0
  712. package/lib/services/types.js +10 -0
  713. package/lib/services/types.js.map +1 -0
  714. package/lib/settings/fetch-instance.d.ts +30 -0
  715. package/lib/settings/fetch-instance.d.ts.map +1 -0
  716. package/lib/settings/fetch-instance.js +223 -0
  717. package/lib/settings/fetch-instance.js.map +1 -0
  718. package/lib/settings/sdk-version.d.ts +3 -0
  719. package/lib/settings/sdk-version.d.ts.map +1 -0
  720. package/lib/settings/sdk-version.js +6 -0
  721. package/lib/settings/sdk-version.js.map +1 -0
  722. package/package.json +27 -8
@@ -0,0 +1,479 @@
1
+ "use strict";
2
+ /**
3
+ * # Quote Service
4
+ *
5
+ * B2B quote request and negotiation management.
6
+ *
7
+ * ## Features
8
+ * - Master quote creation and management
9
+ * - Supplier quote workflows
10
+ * - Quote acceptance/decline process
11
+ * - Quote-to-order conversion
12
+ * - Quote messaging
13
+ *
14
+ * @module services/quote
15
+ * @since 2.17.0
16
+ */
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.QuoteService = void 0;
19
+ const base_service_1 = require("../base.service");
20
+ const endpoints_1 = require("./endpoints");
21
+ /**
22
+ * Service for B2B quote management.
23
+ *
24
+ * Enables full quote workflow:
25
+ * - Create quote requests with multiple products
26
+ * - Send to suppliers for pricing
27
+ * - Review, accept or decline quotes
28
+ * - Convert accepted quotes to orders
29
+ *
30
+ * @example
31
+ * ```typescript
32
+ * import { createDjustClient } from '@djust-b2b/djust-front-sdk';
33
+ *
34
+ * const client = createDjustClient({ baseUrl, clientId, apiKey });
35
+ *
36
+ * // Create a master quote
37
+ * const masterQuote = await client.quote.createMasterQuote({
38
+ * name: 'Q-2024-001',
39
+ * description: 'Office supplies for Q1',
40
+ * });
41
+ *
42
+ * // Send to suppliers
43
+ * await client.quote.createSupplierQuotes({
44
+ * masterQuoteId: masterQuote.id,
45
+ * createSupplierQuoteRequests: [...],
46
+ * supplierQuoteUrl: 'https://myapp.com/quotes',
47
+ * });
48
+ * ```
49
+ */
50
+ class QuoteService extends base_service_1.BaseService {
51
+ constructor() {
52
+ super(...arguments);
53
+ this.serviceName = "quote";
54
+ }
55
+ // ==========================================
56
+ // MASTER QUOTES
57
+ // ==========================================
58
+ /**
59
+ * Get paginated list of master quotes.
60
+ *
61
+ * **Endpoint**: `GET /v1/shop/quotes [QUO-100]`
62
+ *
63
+ * | Parameter | Type | Required | Description |
64
+ * |-----------------------|------------------|----------|--------------------------|
65
+ * | `fromCustomerAccount` | `boolean` | No | Filter to current account|
66
+ * | `pageable` | `PageableParams` | No | Pagination settings |
67
+ *
68
+ * @example
69
+ * ```typescript
70
+ * const { content: quotes } = await client.quote.getMasterQuotes({
71
+ * pageable: { page: 0, size: 10 },
72
+ * });
73
+ *
74
+ * quotes.forEach(q => console.log(`${q.name}: ${q.status}`));
75
+ * ```
76
+ *
77
+ * @param params - Query parameters
78
+ * @param context - Optional SSR request context
79
+ * @returns Paginated quote list
80
+ */
81
+ async getMasterQuotes(params = {}, context) {
82
+ return this.request({
83
+ method: "GET",
84
+ path: endpoints_1.QuoteEndpoints.MASTER_QUOTES,
85
+ params: this.buildParams({
86
+ fromCustomerAccount: params.fromCustomerAccount,
87
+ page: params.pageable?.page,
88
+ size: params.pageable?.size,
89
+ sort: params.pageable?.sort,
90
+ }),
91
+ }, context);
92
+ }
93
+ /**
94
+ * Create a new master quote.
95
+ *
96
+ * A master quote is the main quote request that can be sent to multiple suppliers.
97
+ *
98
+ * **Endpoint**: `POST /v1/shop/quotes [QUO-101]`
99
+ *
100
+ * | Parameter | Type | Required | Description |
101
+ * |---------------|----------|----------|--------------------------|
102
+ * | `name` | `string` | Yes | Quote reference name |
103
+ * | `description` | `string` | Yes | Quote description |
104
+ *
105
+ * @example
106
+ * ```typescript
107
+ * const quote = await client.quote.createMasterQuote({
108
+ * name: 'Q-2024-001',
109
+ * description: 'Request for office furniture',
110
+ * });
111
+ *
112
+ * console.log(`Quote created: ${quote.id}`);
113
+ * ```
114
+ *
115
+ * @param params - Quote creation data
116
+ * @param context - Optional SSR request context
117
+ * @throws {ValidationError} If required parameters are missing
118
+ * @returns Created master quote
119
+ */
120
+ async createMasterQuote(params, context) {
121
+ this.required(params, ["description", "name"]);
122
+ return this.request({
123
+ method: "POST",
124
+ path: endpoints_1.QuoteEndpoints.MASTER_QUOTES,
125
+ body: {
126
+ description: params.description,
127
+ name: params.name,
128
+ },
129
+ }, context);
130
+ }
131
+ /**
132
+ * Delete a master quote.
133
+ *
134
+ * **Endpoint**: `DELETE /v1/shop/quotes/{quoteId} [QUO-102]`
135
+ *
136
+ * | Parameter | Type | Required | Description |
137
+ * |-----------------|----------|----------|--------------------------|
138
+ * | `masterQuoteId` | `string` | Yes | Quote ID to delete |
139
+ *
140
+ * @param params - Quote identification
141
+ * @param context - Optional SSR request context
142
+ * @throws {ValidationError} If masterQuoteId is missing
143
+ * @throws {NotFoundError} If quote doesn't exist
144
+ */
145
+ async deleteMasterQuote(params, context) {
146
+ this.required(params, ["masterQuoteId"]);
147
+ await this.request({
148
+ method: "DELETE",
149
+ path: this.buildPath(endpoints_1.QuoteEndpoints.MASTER_QUOTE, {
150
+ masterQuoteId: params.masterQuoteId,
151
+ }),
152
+ }, context);
153
+ }
154
+ /**
155
+ * Get master quote details.
156
+ *
157
+ * **Endpoint**: `GET /v1/shop/quotes/{quoteId} [QUO-103]`
158
+ *
159
+ * | Parameter | Type | Required | Description |
160
+ * |-----------------|----------|----------|--------------------------|
161
+ * | `masterQuoteId` | `string` | Yes | Quote ID |
162
+ *
163
+ * @example
164
+ * ```typescript
165
+ * const quote = await client.quote.getMasterQuote({
166
+ * masterQuoteId: 'quote-123',
167
+ * });
168
+ *
169
+ * console.log(`${quote.name}: ${quote.status}`);
170
+ * console.log(`Items: ${quote.details.length}`);
171
+ * ```
172
+ *
173
+ * @param params - Quote identification
174
+ * @param context - Optional SSR request context
175
+ * @throws {ValidationError} If masterQuoteId is missing
176
+ * @throws {NotFoundError} If quote doesn't exist
177
+ * @returns Master quote with details
178
+ */
179
+ async getMasterQuote(params, context) {
180
+ this.required(params, ["masterQuoteId"]);
181
+ return this.request({
182
+ method: "GET",
183
+ path: this.buildPath(endpoints_1.QuoteEndpoints.MASTER_QUOTE, {
184
+ masterQuoteId: params.masterQuoteId,
185
+ }),
186
+ }, context);
187
+ }
188
+ /**
189
+ * Update a master quote (add/remove items, custom fields).
190
+ *
191
+ * **Endpoint**: `PUT /v1/shop/quotes/{quoteId} [QUO-104]`
192
+ *
193
+ * | Parameter | Type | Required | Description |
194
+ * |------------------------------|----------|----------|--------------------------|
195
+ * | `masterQuoteId` | `string` | Yes | Quote ID |
196
+ * | `masterQuoteDetailsToAdd` | `array` | No | Items to add |
197
+ * | `masterQuoteDetailsToRemove` | `array` | No | Item IDs to remove |
198
+ * | `customFieldValues` | `object` | No | Custom field updates |
199
+ * | `idType` | `string` | No | Query: type for productVariantId (DJUST_ID \| EXTERNAL_ID). Default DJUST_ID. |
200
+ *
201
+ * @example
202
+ * ```typescript
203
+ * await client.quote.updateMasterQuote({
204
+ * masterQuoteId: 'quote-123',
205
+ * masterQuoteDetailsToAdd: [
206
+ * { productVariantId: 'variant-1', quantity: 10 },
207
+ * ],
208
+ * });
209
+ * ```
210
+ *
211
+ * @param params - Update data
212
+ * @param context - Optional SSR request context
213
+ * @throws {ValidationError} If masterQuoteId is missing
214
+ * @returns Updated master quote
215
+ */
216
+ async updateMasterQuote(params, context) {
217
+ this.required(params, ["masterQuoteId"]);
218
+ return this.request({
219
+ method: "PUT",
220
+ path: this.buildPath(endpoints_1.QuoteEndpoints.MASTER_QUOTE, {
221
+ masterQuoteId: params.masterQuoteId,
222
+ }),
223
+ params: params.idType ? { idType: params.idType } : undefined,
224
+ body: {
225
+ masterQuoteDetailsToAdd: params.masterQuoteDetailsToAdd,
226
+ masterQuoteDetailsToRemove: params.masterQuoteDetailsToRemove,
227
+ customFieldValues: params.customFieldValues,
228
+ },
229
+ }, context);
230
+ }
231
+ // ==========================================
232
+ // SUPPLIER QUOTES
233
+ // ==========================================
234
+ /**
235
+ * Send quote requests to suppliers.
236
+ *
237
+ * Creates supplier quote requests from a master quote or ad-hoc.
238
+ *
239
+ * **Endpoint**: `POST /v1/shop/supplier-quotes [QUO-200]`
240
+ *
241
+ * | Parameter | Type | Required | Description |
242
+ * |-----------------------------|----------|----------|--------------------------|
243
+ * | `createSupplierQuoteRequests`| `array` | Yes | Quote requests per supplier |
244
+ * | `supplierQuoteUrl` | `string` | Yes | Callback URL for suppliers |
245
+ * | `masterQuoteId` | `string` | No | Link to master quote |
246
+ * | `billingAddressId` | `string` | No | Billing address |
247
+ *
248
+ * @example
249
+ * ```typescript
250
+ * const supplierQuotes = await client.quote.createSupplierQuotes({
251
+ * masterQuoteId: 'quote-123',
252
+ * supplierQuoteUrl: 'https://myapp.com/supplier-quotes',
253
+ * createSupplierQuoteRequests: [
254
+ * {
255
+ * supplierId: 'supplier-1',
256
+ * shippingAddressId: 'addr-1',
257
+ * lines: [{ productVariantId: 'var-1', quantity: 100 }],
258
+ * },
259
+ * ],
260
+ * });
261
+ * ```
262
+ *
263
+ * @param params - Supplier quote creation data
264
+ * @param context - Optional SSR request context
265
+ * @throws {ValidationError} If required parameters are missing
266
+ * @returns Created supplier quotes
267
+ */
268
+ async createSupplierQuotes(params, context) {
269
+ this.required(params, ["createSupplierQuoteRequests", "supplierQuoteUrl"]);
270
+ return this.request({
271
+ method: "POST",
272
+ path: endpoints_1.QuoteEndpoints.SUPPLIER_QUOTES,
273
+ body: {
274
+ billingAddressId: params.billingAddressId,
275
+ createSupplierQuoteRequests: params.createSupplierQuoteRequests,
276
+ masterQuoteId: params.masterQuoteId,
277
+ supplierQuoteUrl: params.supplierQuoteUrl,
278
+ },
279
+ }, context);
280
+ }
281
+ /**
282
+ * Get supplier quote details.
283
+ *
284
+ * **Endpoint**: `GET /v1/shop/supplier-quotes/{quoteId} [QUO-201]`
285
+ *
286
+ * | Parameter | Type | Required | Description |
287
+ * |-------------------|----------|----------|--------------------------|
288
+ * | `supplierQuoteId` | `string` | Yes | Supplier quote ID |
289
+ *
290
+ * @example
291
+ * ```typescript
292
+ * const quote = await client.quote.getSupplierQuote({
293
+ * supplierQuoteId: 'sq-123',
294
+ * });
295
+ *
296
+ * console.log(`Supplier: ${quote.supplierName}`);
297
+ * console.log(`Status: ${quote.status}`);
298
+ * console.log(`Total: ${quote.totalAmount}`);
299
+ * ```
300
+ *
301
+ * @param params - Quote identification
302
+ * @param context - Optional SSR request context
303
+ * @throws {ValidationError} If supplierQuoteId is missing
304
+ * @returns Supplier quote details
305
+ */
306
+ async getSupplierQuote(params, context) {
307
+ this.required(params, ["supplierQuoteId"]);
308
+ return this.request({
309
+ method: "GET",
310
+ path: this.buildPath(endpoints_1.QuoteEndpoints.SUPPLIER_QUOTE, {
311
+ supplierQuoteId: params.supplierQuoteId,
312
+ }),
313
+ }, context);
314
+ }
315
+ /**
316
+ * Accept a supplier quote.
317
+ *
318
+ * Marks the quote as accepted, ready for order creation.
319
+ *
320
+ * **Endpoint**: `PUT /v1/shop/supplier-quotes/{quoteId}/accept [QUO-202]`
321
+ *
322
+ * | Parameter | Type | Required | Description |
323
+ * |-------------------|----------|----------|--------------------------|
324
+ * | `supplierQuoteId` | `string` | Yes | Supplier quote ID |
325
+ *
326
+ * @example
327
+ * ```typescript
328
+ * const accepted = await client.quote.acceptSupplierQuote({
329
+ * supplierQuoteId: 'sq-123',
330
+ * });
331
+ *
332
+ * console.log(`Quote accepted: ${accepted.status}`);
333
+ * ```
334
+ *
335
+ * @param params - Quote identification
336
+ * @param context - Optional SSR request context
337
+ * @throws {ValidationError} If supplierQuoteId is missing
338
+ * @returns Accepted quote
339
+ */
340
+ async acceptSupplierQuote(params, context) {
341
+ this.required(params, ["supplierQuoteId"]);
342
+ return this.request({
343
+ method: "PUT",
344
+ path: this.buildPath(endpoints_1.QuoteEndpoints.SUPPLIER_QUOTE_ACCEPT, {
345
+ supplierQuoteId: params.supplierQuoteId,
346
+ }),
347
+ }, context);
348
+ }
349
+ /**
350
+ * Decline a supplier quote.
351
+ *
352
+ * **Endpoint**: `PUT /v1/shop/supplier-quotes/{quoteId}/decline [QUO-203]`
353
+ *
354
+ * | Parameter | Type | Required | Description |
355
+ * |-------------------|----------|----------|--------------------------|
356
+ * | `supplierQuoteId` | `string` | Yes | Supplier quote ID |
357
+ *
358
+ * @param params - Quote identification
359
+ * @param context - Optional SSR request context
360
+ * @throws {ValidationError} If supplierQuoteId is missing
361
+ * @returns Declined quote
362
+ */
363
+ async declineSupplierQuote(params, context) {
364
+ this.required(params, ["supplierQuoteId"]);
365
+ return this.request({
366
+ method: "PUT",
367
+ path: this.buildPath(endpoints_1.QuoteEndpoints.SUPPLIER_QUOTE_DECLINE, {
368
+ supplierQuoteId: params.supplierQuoteId,
369
+ }),
370
+ }, context);
371
+ }
372
+ /**
373
+ * Update custom fields on a supplier quote.
374
+ *
375
+ * **Endpoint**: `PATCH /v1/shop/supplier-quotes/{quoteId}/custom-fields [QUO-204]`
376
+ *
377
+ * @param params - Custom field update data
378
+ * @param context - Optional SSR request context
379
+ * @throws {ValidationError} If supplierQuoteId is missing
380
+ * @returns Updated quote
381
+ */
382
+ async updateSupplierQuoteCustomFields(params, context) {
383
+ this.required(params, ["supplierQuoteId"]);
384
+ return this.request({
385
+ method: "PATCH",
386
+ path: this.buildPath(endpoints_1.QuoteEndpoints.SUPPLIER_QUOTE_CUSTOM_FIELDS, {
387
+ supplierQuoteId: params.supplierQuoteId,
388
+ }),
389
+ body: {
390
+ customFieldValues: params.customFieldValues,
391
+ idType: params.idType,
392
+ },
393
+ }, context);
394
+ }
395
+ /**
396
+ * Post a message to a supplier quote thread.
397
+ *
398
+ * Enables communication between buyer and supplier.
399
+ *
400
+ * **Endpoint**: `POST /v1/shop/supplier-quotes/{quoteId}/messages [QUO-205]`
401
+ *
402
+ * | Parameter | Type | Required | Description |
403
+ * |-------------------|----------|----------|--------------------------|
404
+ * | `supplierQuoteId` | `string` | Yes | Supplier quote ID |
405
+ * | `message` | `string` | Yes | Message content |
406
+ * | `username` | `string` | Yes | Sender's name |
407
+ *
408
+ * @example
409
+ * ```typescript
410
+ * await client.quote.postMessageToSupplierQuote({
411
+ * supplierQuoteId: 'sq-123',
412
+ * message: 'Can you provide faster delivery options?',
413
+ * username: 'John Doe',
414
+ * });
415
+ * ```
416
+ *
417
+ * @param params - Message data
418
+ * @param context - Optional SSR request context
419
+ * @throws {ValidationError} If required parameters are missing
420
+ * @returns Message confirmation
421
+ */
422
+ async postMessageToSupplierQuote(params, context) {
423
+ this.required(params, ["supplierQuoteId", "message", "username"]);
424
+ return this.request({
425
+ method: "POST",
426
+ path: this.buildPath(endpoints_1.QuoteEndpoints.SUPPLIER_QUOTE_MESSAGE, {
427
+ supplierQuoteId: params.supplierQuoteId,
428
+ }),
429
+ body: {
430
+ message: params.message,
431
+ username: params.username,
432
+ },
433
+ }, context);
434
+ }
435
+ /**
436
+ * Convert an accepted supplier quote to an order.
437
+ *
438
+ * Creates a commercial order from the accepted quote.
439
+ *
440
+ * **Endpoint**: `POST /v1/shop/supplier-quotes/{quoteId}/initialize-orders [QUO-206]`
441
+ *
442
+ * | Parameter | Type | Required | Description |
443
+ * |---------------------------|----------|----------|--------------------------|
444
+ * | `supplierQuoteId` | `string` | Yes | Supplier quote ID |
445
+ * | `quoteLineIdsAndQuantities`| `array` | Yes | Lines to convert |
446
+ * | `nbPreviewLines` | `number` | No | Preview lines in response|
447
+ *
448
+ * @example
449
+ * ```typescript
450
+ * const order = await client.quote.initializeOrderFromSupplierQuote({
451
+ * supplierQuoteId: 'sq-123',
452
+ * quoteLineIdsAndQuantities: [
453
+ * { quoteLineId: 'line-1', quantity: 50 },
454
+ * { quoteLineId: 'line-2', quantity: 100 },
455
+ * ],
456
+ * });
457
+ *
458
+ * console.log(`Order created: ${order.commercialOrderId}`);
459
+ * ```
460
+ *
461
+ * @param params - Order initialization data
462
+ * @param context - Optional SSR request context
463
+ * @throws {ValidationError} If required parameters are missing
464
+ * @returns Created order reference
465
+ */
466
+ async initializeOrderFromSupplierQuote(params, context) {
467
+ this.required(params, ["supplierQuoteId", "quoteLineIdsAndQuantities"]);
468
+ return this.request({
469
+ method: "POST",
470
+ path: this.buildPath(endpoints_1.QuoteEndpoints.SUPPLIER_QUOTE_INITIALIZE_ORDERS, {
471
+ supplierQuoteId: params.supplierQuoteId,
472
+ }),
473
+ params: this.buildParams({ nbPreviewLines: params.nbPreviewLines }),
474
+ body: { quoteLineIdsAndQuantities: params.quoteLineIdsAndQuantities },
475
+ }, context);
476
+ }
477
+ }
478
+ exports.QuoteService = QuoteService;
479
+ //# sourceMappingURL=quote.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quote.service.js","sourceRoot":"","sources":["../../../src/services/quote/quote.service.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,kDAA8C;AAE9C,2CAA6C;AA2B7C;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAa,YAAa,SAAQ,0BAAW;IAA7C;;QACW,gBAAW,GAAG,OAAO,CAAC;IAwgBjC,CAAC;IAtgBC,6CAA6C;IAC7C,gBAAgB;IAChB,6CAA6C;IAE7C;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,KAAK,CAAC,eAAe,CACnB,SAAgC,EAAE,EAClC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CACjB;YACE,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,0BAAc,CAAC,aAAa;YAClC,MAAM,EAAE,IAAI,CAAC,WAAW,CAAC;gBACvB,mBAAmB,EAAE,MAAM,CAAC,mBAAmB;gBAC/C,IAAI,EAAE,MAAM,CAAC,QAAQ,EAAE,IAAI;gBAC3B,IAAI,EAAE,MAAM,CAAC,QAAQ,EAAE,IAAI;g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Ae,EAAE,MAAM,CAAC,eAAe;aACxC,CAAC;YACF,MAAM,EAAE,IAAI,CAAC,WAAW,CAAC,EAAE,cAAc,EAAE,MAAM,CAAC,cAAc,EAAE,CAAC;YACnE,IAAI,EAAE,EAAE,yBAAyB,EAAE,MAAM,CAAC,yBAAyB,EAAE;SACtE,EACD,OAAO,CACR,CAAC;IACJ,CAAC;CACF;AAzgBD,oCAygBC"}
@@ -0,0 +1,160 @@
1
+ /**
2
+ * DJUST SDK Quote Service - Types
3
+ * Type definitions for quote operations.
4
+ *
5
+ * @module services/quote/types
6
+ * @since 2.17.0
7
+ */
8
+ import type { Pageable, PaginatedResponse } from "../types";
9
+ export type QuoteStatus = "DRAFT" | "PENDING" | "ACCEPTED" | "DECLINED" | "EXPIRED" | "CANCELLED";
10
+ export type IdType = "DJUST_ID" | "EXTERNAL_ID";
11
+ export interface GetMasterQuotesParams {
12
+ fromCustomerAccount?: boolean;
13
+ pageable?: Pageable;
14
+ }
15
+ export interface CreateMasterQuoteParams {
16
+ description: string;
17
+ name: string;
18
+ }
19
+ export interface DeleteMasterQuoteParams {
20
+ masterQuoteId: string;
21
+ }
22
+ export interface GetMasterQuoteParams {
23
+ masterQuoteId: string;
24
+ }
25
+ export interface UpdateMasterQuoteParams {
26
+ masterQuoteId: string;
27
+ customFieldValues?: Array<{
28
+ customFieldId: string;
29
+ customFieldValue?: string;
30
+ }>;
31
+ masterQuoteDetailsToAdd?: Array<{
32
+ productVariantId: string;
33
+ quantity: number;
34
+ }>;
35
+ masterQuoteDetailsToRemove?: string[];
36
+ /** Query param: type for productVariantId and customField id (e.g. EXTERNAL_ID). Default DJUST_ID. */
37
+ idType?: IdType;
38
+ }
39
+ export interface CreateSupplierQuotesParams {
40
+ billingAddressId?: string;
41
+ createSupplierQuoteRequests: Array<{
42
+ createQuoteDeliveryLineRequests: Array<{
43
+ quantity: number;
44
+ shippingAddressId: string;
45
+ }>;
46
+ masterQuoteDetailId: string;
47
+ quantity: number;
48
+ supplierIds: string[];
49
+ }>;
50
+ masterQuoteId?: string;
51
+ supplierQuoteUrl: string;
52
+ }
53
+ export interface GetSupplierQuoteParams {
54
+ supplierQuoteId: string;
55
+ }
56
+ export interface AcceptSupplierQuoteParams {
57
+ supplierQuoteId: string;
58
+ }
59
+ export interface DeclineSupplierQuoteParams {
60
+ supplierQuoteId: string;
61
+ }
62
+ export interface UpdateSupplierQuoteCustomFieldsParams {
63
+ supplierQuoteId: string;
64
+ customFieldValues: Array<{
65
+ customFieldId: string;
66
+ customFieldValue?: string;
67
+ }>;
68
+ idType: IdType;
69
+ }
70
+ export interface PostMessageToSupplierQuoteParams {
71
+ supplierQuoteId: string;
72
+ message: string;
73
+ username: string;
74
+ }
75
+ export interface InitializeOrderFromSupplierQuoteParams {
76
+ supplierQuoteId: string;
77
+ nbPreviewLines?: number;
78
+ quoteLineIdsAndQuantities: Array<{
79
+ quoteLineId: string;
80
+ quantity: number;
81
+ }>;
82
+ }
83
+ export interface CustomFieldValue {
84
+ customFieldId: string;
85
+ customFieldValue?: string;
86
+ }
87
+ export interface MasterQuoteDetail {
88
+ id: string;
89
+ productVariantId: string;
90
+ quantity: number;
91
+ productName?: string;
92
+ sku?: string;
93
+ }
94
+ export interface MasterQuote {
95
+ id: string;
96
+ name: string;
97
+ description: string;
98
+ status: QuoteStatus;
99
+ details: MasterQuoteDetail[];
100
+ customFieldValues: CustomFieldValue[];
101
+ createdAt: string;
102
+ updatedAt: string;
103
+ }
104
+ export interface SupplierQuoteLine {
105
+ id: string;
106
+ productVariantId: string;
107
+ quantity: number;
108
+ unitPrice: number;
109
+ totalPrice: number;
110
+ currency: string;
111
+ productName?: string;
112
+ }
113
+ export interface QuoteMessage {
114
+ id: string;
115
+ message: string;
116
+ username: string;
117
+ createdAt: string;
118
+ }
119
+ export interface SupplierQuote {
120
+ id: string;
121
+ masterQuoteId?: string;
122
+ supplierId: string;
123
+ supplierName: string;
124
+ status: QuoteStatus;
125
+ lines: SupplierQuoteLine[];
126
+ messages: QuoteMessage[];
127
+ billingAddressId?: string;
128
+ customFieldValues: CustomFieldValue[];
129
+ totalPrice: number;
130
+ currency: string;
131
+ createdAt: string;
132
+ updatedAt: string;
133
+ expiresAt?: string;
134
+ }
135
+ export interface GetMasterQuotesResponse extends PaginatedResponse<MasterQuote> {
136
+ }
137
+ export interface CreateMasterQuoteResponse extends MasterQuote {
138
+ }
139
+ export interface GetMasterQuoteResponse extends MasterQuote {
140
+ }
141
+ export interface UpdateMasterQuoteResponse extends MasterQuote {
142
+ }
143
+ export interface CreateSupplierQuotesResponse {
144
+ supplierQuotes: SupplierQuote[];
145
+ }
146
+ export interface GetSupplierQuoteResponse extends SupplierQuote {
147
+ }
148
+ export interface AcceptSupplierQuoteResponse extends SupplierQuote {
149
+ }
150
+ export interface DeclineSupplierQuoteResponse extends SupplierQuote {
151
+ }
152
+ export interface UpdateSupplierQuoteCustomFieldsResponse extends SupplierQuote {
153
+ }
154
+ export interface PostMessageToSupplierQuoteResponse extends QuoteMessage {
155
+ }
156
+ export interface InitializeOrderFromSupplierQuoteResponse {
157
+ commercialOrderId: string;
158
+ businessId: string;
159
+ }
160
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/services/quote/types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAM5D,MAAM,MAAM,WAAW,GACnB,OAAO,GACP,SAAS,GACT,UAAU,GACV,UAAU,GACV,SAAS,GACT,WAAW,CAAC;AAEhB,MAAM,MAAM,MAAM,GAAG,UAAU,GAAG,aAAa,CAAC;AAMhD,MAAM,WAAW,qBAAqB;IACpC,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AAED,MAAM,WAAW,uBAAuB;IACtC,WAAW,EAAE,MAAM,CAAC;IACp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AAW,wCAAwC;IACvD,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * DJUST SDK Quote Service - Types
4
+ * Type definitions for quote operations.
5
+ *
6
+ * @module services/quote/types
7
+ * @since 2.17.0
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/services/quote/types.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG"}