@djust-b2b/djust-front-sdk 3.0.0-beta.4 → 3.0.0-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (331) hide show
  1. package/README.md +50 -7
  2. package/dist/.tsbuildinfo +1 -0
  3. package/dist/.tsbuildinfo-esm +1 -0
  4. package/dist/client/create-client.d.ts +233 -0
  5. package/dist/client/create-client.d.ts.map +1 -0
  6. package/dist/client/index.d.ts +14 -0
  7. package/dist/client/index.d.ts.map +1 -0
  8. package/dist/client/performance.d.ts +203 -0
  9. package/dist/client/performance.d.ts.map +1 -0
  10. package/dist/client/transport.d.ts +367 -0
  11. package/dist/client/transport.d.ts.map +1 -0
  12. package/dist/errors/base.d.ts +101 -0
  13. package/dist/errors/base.d.ts.map +1 -0
  14. package/dist/errors/classes/auth.error.d.ts +64 -0
  15. package/dist/errors/classes/auth.error.d.ts.map +1 -0
  16. package/dist/errors/classes/forbidden.error.d.ts +52 -0
  17. package/dist/errors/classes/forbidden.error.d.ts.map +1 -0
  18. package/dist/errors/classes/index.d.ts +17 -0
  19. package/dist/errors/classes/index.d.ts.map +1 -0
  20. package/dist/errors/classes/network.error.d.ts +63 -0
  21. package/dist/errors/classes/network.error.d.ts.map +1 -0
  22. package/dist/errors/classes/not-found.error.d.ts +58 -0
  23. package/dist/errors/classes/not-found.error.d.ts.map +1 -0
  24. package/dist/errors/classes/rate-limit.error.d.ts +49 -0
  25. package/dist/errors/classes/rate-limit.error.d.ts.map +1 -0
  26. package/dist/errors/classes/server.error.d.ts +63 -0
  27. package/dist/errors/classes/server.error.d.ts.map +1 -0
  28. package/dist/errors/classes/timeout.error.d.ts +64 -0
  29. package/dist/errors/classes/timeout.error.d.ts.map +1 -0
  30. package/dist/errors/classes/unexpected.error.d.ts +70 -0
  31. package/dist/errors/classes/unexpected.error.d.ts.map +1 -0
  32. package/dist/errors/classes/validation.error.d.ts +68 -0
  33. package/dist/errors/classes/validation.error.d.ts.map +1 -0
  34. package/dist/errors/codes.d.ts +111 -0
  35. package/dist/errors/codes.d.ts.map +1 -0
  36. package/dist/errors/compat.d.ts +99 -0
  37. package/dist/errors/compat.d.ts.map +1 -0
  38. package/dist/errors/factory.d.ts +33 -0
  39. package/dist/errors/factory.d.ts.map +1 -0
  40. package/dist/errors/guards.d.ts +142 -0
  41. package/dist/errors/guards.d.ts.map +1 -0
  42. package/dist/errors/index.d.ts +25 -0
  43. package/dist/errors/index.d.ts.map +1 -0
  44. package/dist/errors/types.d.ts +100 -0
  45. package/dist/errors/types.d.ts.map +1 -0
  46. package/dist/helpers/index.d.ts +42 -0
  47. package/dist/helpers/index.d.ts.map +1 -0
  48. package/dist/helpers/parameters-validation.d.ts +3 -0
  49. package/dist/helpers/parameters-validation.d.ts.map +1 -0
  50. package/dist/helpers/utils.d.ts +5 -0
  51. package/dist/helpers/utils.d.ts.map +1 -0
  52. package/dist/index.cjs +182 -0
  53. package/dist/index.d.ts +265 -0
  54. package/dist/index.d.ts.map +1 -0
  55. package/dist/index.mjs +11515 -0
  56. package/dist/interfaces/index.d.ts +31 -0
  57. package/dist/interfaces/index.d.ts.map +1 -0
  58. package/dist/interfaces/models/address.d.ts +61 -0
  59. package/dist/interfaces/models/address.d.ts.map +1 -0
  60. package/dist/interfaces/models/attribute.d.ts +31 -0
  61. package/dist/interfaces/models/attribute.d.ts.map +1 -0
  62. package/dist/interfaces/models/auth.d.ts +37 -0
  63. package/dist/interfaces/models/auth.d.ts.map +1 -0
  64. package/dist/interfaces/models/cart.d.ts +64 -0
  65. package/dist/interfaces/models/cart.d.ts.map +1 -0
  66. package/dist/interfaces/models/common.d.ts +68 -0
  67. package/dist/interfaces/models/common.d.ts.map +1 -0
  68. package/dist/interfaces/models/custom-field.d.ts +57 -0
  69. package/dist/interfaces/models/custom-field.d.ts.map +1 -0
  70. package/dist/interfaces/models/customer-account.d.ts +52 -0
  71. package/dist/interfaces/models/customer-account.d.ts.map +1 -0
  72. package/dist/interfaces/models/customer-organisation.d.ts +14 -0
  73. package/dist/interfaces/models/customer-organisation.d.ts.map +1 -0
  74. package/dist/interfaces/models/customer-user.d.ts +114 -0
  75. package/dist/interfaces/models/customer-user.d.ts.map +1 -0
  76. package/dist/interfaces/models/incident.d.ts +37 -0
  77. package/dist/interfaces/models/incident.d.ts.map +1 -0
  78. package/dist/interfaces/models/navigation-category.d.ts +22 -0
  79. package/dist/interfaces/models/navigation-category.d.ts.map +1 -0
  80. package/dist/interfaces/models/offer.d.ts +151 -0
  81. package/dist/interfaces/models/offer.d.ts.map +1 -0
  82. package/dist/interfaces/models/order.d.ts +701 -0
  83. package/dist/interfaces/models/order.d.ts.map +1 -0
  84. package/dist/interfaces/models/payment.d.ts +20 -0
  85. package/dist/interfaces/models/payment.d.ts.map +1 -0
  86. package/dist/interfaces/models/price.d.ts +6 -0
  87. package/dist/interfaces/models/price.d.ts.map +1 -0
  88. package/dist/interfaces/models/product.d.ts +243 -0
  89. package/dist/interfaces/models/product.d.ts.map +1 -0
  90. package/dist/interfaces/models/quote.d.ts +77 -0
  91. package/dist/interfaces/models/quote.d.ts.map +1 -0
  92. package/dist/interfaces/models/searchProduct.d.ts +128 -0
  93. package/dist/interfaces/models/searchProduct.d.ts.map +1 -0
  94. package/dist/interfaces/models/supplier.d.ts +72 -0
  95. package/dist/interfaces/models/supplier.d.ts.map +1 -0
  96. package/dist/services/attributes/attributes.service.d.ts +18 -0
  97. package/dist/services/attributes/attributes.service.d.ts.map +1 -0
  98. package/dist/services/attributes/definitions.d.ts +28 -0
  99. package/dist/services/attributes/definitions.d.ts.map +1 -0
  100. package/dist/services/attributes/endpoints.d.ts +12 -0
  101. package/dist/services/attributes/endpoints.d.ts.map +1 -0
  102. package/dist/services/attributes/index.d.ts +33 -0
  103. package/dist/services/attributes/index.d.ts.map +1 -0
  104. package/dist/services/attributes/module.d.ts +11 -0
  105. package/dist/services/attributes/module.d.ts.map +1 -0
  106. package/dist/services/attributes/types.d.ts +35 -0
  107. package/dist/services/attributes/types.d.ts.map +1 -0
  108. package/dist/services/auth/__mocks__/auth.mocks.d.ts +249 -0
  109. package/dist/services/auth/__mocks__/auth.mocks.d.ts.map +1 -0
  110. package/dist/services/auth/auth.service.d.ts +286 -0
  111. package/dist/services/auth/auth.service.d.ts.map +1 -0
  112. package/dist/services/auth/definitions.d.ts +69 -0
  113. package/dist/services/auth/definitions.d.ts.map +1 -0
  114. package/dist/services/auth/definitions.requests.d.ts +25 -0
  115. package/dist/services/auth/definitions.requests.d.ts.map +1 -0
  116. package/dist/services/auth/endpoints.d.ts +30 -0
  117. package/dist/services/auth/endpoints.d.ts.map +1 -0
  118. package/dist/services/auth/index.d.ts +232 -0
  119. package/dist/services/auth/index.d.ts.map +1 -0
  120. package/dist/services/auth/module.d.ts +11 -0
  121. package/dist/services/auth/module.d.ts.map +1 -0
  122. package/dist/services/auth/types.d.ts +124 -0
  123. package/dist/services/auth/types.d.ts.map +1 -0
  124. package/dist/services/base.service.d.ts +81 -0
  125. package/dist/services/base.service.d.ts.map +1 -0
  126. package/dist/services/cart/cart.service.d.ts +443 -0
  127. package/dist/services/cart/cart.service.d.ts.map +1 -0
  128. package/dist/services/cart/definitions.d.ts +84 -0
  129. package/dist/services/cart/definitions.d.ts.map +1 -0
  130. package/dist/services/cart/endpoints.d.ts +24 -0
  131. package/dist/services/cart/endpoints.d.ts.map +1 -0
  132. package/dist/services/cart/index.d.ts +330 -0
  133. package/dist/services/cart/index.d.ts.map +1 -0
  134. package/dist/services/cart/module.d.ts +11 -0
  135. package/dist/services/cart/module.d.ts.map +1 -0
  136. package/dist/services/cart/types.d.ts +236 -0
  137. package/dist/services/cart/types.d.ts.map +1 -0
  138. package/dist/services/commercial-order/commercial-order.service.d.ts +432 -0
  139. package/dist/services/commercial-order/commercial-order.service.d.ts.map +1 -0
  140. package/dist/services/commercial-order/definitions.d.ts +169 -0
  141. package/dist/services/commercial-order/definitions.d.ts.map +1 -0
  142. package/dist/services/commercial-order/endpoints.d.ts +28 -0
  143. package/dist/services/commercial-order/endpoints.d.ts.map +1 -0
  144. package/dist/services/commercial-order/index.d.ts +710 -0
  145. package/dist/services/commercial-order/index.d.ts.map +1 -0
  146. package/dist/services/commercial-order/module.d.ts +11 -0
  147. package/dist/services/commercial-order/module.d.ts.map +1 -0
  148. package/dist/services/commercial-order/types.d.ts +243 -0
  149. package/dist/services/commercial-order/types.d.ts.map +1 -0
  150. package/dist/services/custom-field/custom-field.service.d.ts +23 -0
  151. package/dist/services/custom-field/custom-field.service.d.ts.map +1 -0
  152. package/dist/services/custom-field/definitions.d.ts +107 -0
  153. package/dist/services/custom-field/definitions.d.ts.map +1 -0
  154. package/dist/services/custom-field/endpoints.d.ts +13 -0
  155. package/dist/services/custom-field/endpoints.d.ts.map +1 -0
  156. package/dist/services/custom-field/index.d.ts +115 -0
  157. package/dist/services/custom-field/index.d.ts.map +1 -0
  158. package/dist/services/custom-field/module.d.ts +11 -0
  159. package/dist/services/custom-field/module.d.ts.map +1 -0
  160. package/dist/services/custom-field/types.d.ts +51 -0
  161. package/dist/services/custom-field/types.d.ts.map +1 -0
  162. package/dist/services/customer-account/customer-account.service.d.ts +387 -0
  163. package/dist/services/customer-account/customer-account.service.d.ts.map +1 -0
  164. package/dist/services/customer-account/definitions.d.ts +164 -0
  165. package/dist/services/customer-account/definitions.d.ts.map +1 -0
  166. package/dist/services/customer-account/endpoints.d.ts +25 -0
  167. package/dist/services/customer-account/endpoints.d.ts.map +1 -0
  168. package/dist/services/customer-account/index.d.ts +656 -0
  169. package/dist/services/customer-account/index.d.ts.map +1 -0
  170. package/dist/services/customer-account/module.d.ts +11 -0
  171. package/dist/services/customer-account/module.d.ts.map +1 -0
  172. package/dist/services/customer-account/types.d.ts +253 -0
  173. package/dist/services/customer-account/types.d.ts.map +1 -0
  174. package/dist/services/customer-user/customer-user.service.d.ts +280 -0
  175. package/dist/services/customer-user/customer-user.service.d.ts.map +1 -0
  176. package/dist/services/customer-user/definitions.d.ts +84 -0
  177. package/dist/services/customer-user/definitions.d.ts.map +1 -0
  178. package/dist/services/customer-user/endpoints.d.ts +19 -0
  179. package/dist/services/customer-user/endpoints.d.ts.map +1 -0
  180. package/dist/services/customer-user/index.d.ts +394 -0
  181. package/dist/services/customer-user/index.d.ts.map +1 -0
  182. package/dist/services/customer-user/module.d.ts +11 -0
  183. package/dist/services/customer-user/module.d.ts.map +1 -0
  184. package/dist/services/customer-user/types.d.ts +118 -0
  185. package/dist/services/customer-user/types.d.ts.map +1 -0
  186. package/dist/services/factory.d.ts +104 -0
  187. package/dist/services/factory.d.ts.map +1 -0
  188. package/dist/services/incident/definitions.d.ts +85 -0
  189. package/dist/services/incident/definitions.d.ts.map +1 -0
  190. package/dist/services/incident/endpoints.d.ts +17 -0
  191. package/dist/services/incident/endpoints.d.ts.map +1 -0
  192. package/dist/services/incident/incident.service.d.ts +24 -0
  193. package/dist/services/incident/incident.service.d.ts.map +1 -0
  194. package/dist/services/incident/index.d.ts +270 -0
  195. package/dist/services/incident/index.d.ts.map +1 -0
  196. package/dist/services/incident/module.d.ts +11 -0
  197. package/dist/services/incident/module.d.ts.map +1 -0
  198. package/dist/services/incident/types.d.ts +116 -0
  199. package/dist/services/incident/types.d.ts.map +1 -0
  200. package/dist/services/logistic-order/definitions.d.ts +293 -0
  201. package/dist/services/logistic-order/definitions.d.ts.map +1 -0
  202. package/dist/services/logistic-order/endpoints.d.ts +43 -0
  203. package/dist/services/logistic-order/endpoints.d.ts.map +1 -0
  204. package/dist/services/logistic-order/index.d.ts +1300 -0
  205. package/dist/services/logistic-order/index.d.ts.map +1 -0
  206. package/dist/services/logistic-order/logistic-order.service.d.ts +57 -0
  207. package/dist/services/logistic-order/logistic-order.service.d.ts.map +1 -0
  208. package/dist/services/logistic-order/module.d.ts +11 -0
  209. package/dist/services/logistic-order/module.d.ts.map +1 -0
  210. package/dist/services/logistic-order/types.d.ts +402 -0
  211. package/dist/services/logistic-order/types.d.ts.map +1 -0
  212. package/dist/services/module.d.ts +64 -0
  213. package/dist/services/module.d.ts.map +1 -0
  214. package/dist/services/navigation-category/definitions.d.ts +31 -0
  215. package/dist/services/navigation-category/definitions.d.ts.map +1 -0
  216. package/dist/services/navigation-category/endpoints.d.ts +15 -0
  217. package/dist/services/navigation-category/endpoints.d.ts.map +1 -0
  218. package/dist/services/navigation-category/index.d.ts +114 -0
  219. package/dist/services/navigation-category/index.d.ts.map +1 -0
  220. package/dist/services/navigation-category/module.d.ts +11 -0
  221. package/dist/services/navigation-category/module.d.ts.map +1 -0
  222. package/dist/services/navigation-category/navigation-category.service.d.ts +148 -0
  223. package/dist/services/navigation-category/navigation-category.service.d.ts.map +1 -0
  224. package/dist/services/navigation-category/types.d.ts +51 -0
  225. package/dist/services/navigation-category/types.d.ts.map +1 -0
  226. package/dist/services/offer-inventories/definitions.d.ts +73 -0
  227. package/dist/services/offer-inventories/definitions.d.ts.map +1 -0
  228. package/dist/services/offer-inventories/endpoints.d.ts +16 -0
  229. package/dist/services/offer-inventories/endpoints.d.ts.map +1 -0
  230. package/dist/services/offer-inventories/index.d.ts +120 -0
  231. package/dist/services/offer-inventories/index.d.ts.map +1 -0
  232. package/dist/services/offer-inventories/module.d.ts +11 -0
  233. package/dist/services/offer-inventories/module.d.ts.map +1 -0
  234. package/dist/services/offer-inventories/offer-inventories.service.d.ts +26 -0
  235. package/dist/services/offer-inventories/offer-inventories.service.d.ts.map +1 -0
  236. package/dist/services/offer-inventories/types.d.ts +85 -0
  237. package/dist/services/offer-inventories/types.d.ts.map +1 -0
  238. package/dist/services/offer-prices/__mocks__/offer-prices.mocks.d.ts +109 -0
  239. package/dist/services/offer-prices/__mocks__/offer-prices.mocks.d.ts.map +1 -0
  240. package/dist/services/offer-prices/definitions.d.ts +24 -0
  241. package/dist/services/offer-prices/definitions.d.ts.map +1 -0
  242. package/dist/services/offer-prices/endpoints.d.ts +12 -0
  243. package/dist/services/offer-prices/endpoints.d.ts.map +1 -0
  244. package/dist/services/offer-prices/index.d.ts +36 -0
  245. package/dist/services/offer-prices/index.d.ts.map +1 -0
  246. package/dist/services/offer-prices/module.d.ts +11 -0
  247. package/dist/services/offer-prices/module.d.ts.map +1 -0
  248. package/dist/services/offer-prices/offer-prices.service.d.ts +18 -0
  249. package/dist/services/offer-prices/offer-prices.service.d.ts.map +1 -0
  250. package/dist/services/offer-prices/types.d.ts +33 -0
  251. package/dist/services/offer-prices/types.d.ts.map +1 -0
  252. package/dist/services/operation/definitions.d.ts +280 -0
  253. package/dist/services/operation/definitions.d.ts.map +1 -0
  254. package/dist/services/operation/endpoints.d.ts +18 -0
  255. package/dist/services/operation/endpoints.d.ts.map +1 -0
  256. package/dist/services/operation/index.d.ts +520 -0
  257. package/dist/services/operation/index.d.ts.map +1 -0
  258. package/dist/services/operation/module.d.ts +11 -0
  259. package/dist/services/operation/module.d.ts.map +1 -0
  260. package/dist/services/operation/operation.service.d.ts +32 -0
  261. package/dist/services/operation/operation.service.d.ts.map +1 -0
  262. package/dist/services/operation/types.d.ts +174 -0
  263. package/dist/services/operation/types.d.ts.map +1 -0
  264. package/dist/services/payment/definitions.d.ts +79 -0
  265. package/dist/services/payment/definitions.d.ts.map +1 -0
  266. package/dist/services/payment/endpoints.d.ts +16 -0
  267. package/dist/services/payment/endpoints.d.ts.map +1 -0
  268. package/dist/services/payment/index.d.ts +150 -0
  269. package/dist/services/payment/index.d.ts.map +1 -0
  270. package/dist/services/payment/module.d.ts +11 -0
  271. package/dist/services/payment/module.d.ts.map +1 -0
  272. package/dist/services/payment/payment.service.d.ts +224 -0
  273. package/dist/services/payment/payment.service.d.ts.map +1 -0
  274. package/dist/services/payment/types.d.ts +93 -0
  275. package/dist/services/payment/types.d.ts.map +1 -0
  276. package/dist/services/product/definitions.d.ts +149 -0
  277. package/dist/services/product/definitions.d.ts.map +1 -0
  278. package/dist/services/product/endpoints.d.ts +40 -0
  279. package/dist/services/product/endpoints.d.ts.map +1 -0
  280. package/dist/services/product/index.d.ts +387 -0
  281. package/dist/services/product/index.d.ts.map +1 -0
  282. package/dist/services/product/module.d.ts +11 -0
  283. package/dist/services/product/module.d.ts.map +1 -0
  284. package/dist/services/product/product.service.d.ts +452 -0
  285. package/dist/services/product/product.service.d.ts.map +1 -0
  286. package/dist/services/product/types.d.ts +344 -0
  287. package/dist/services/product/types.d.ts.map +1 -0
  288. package/dist/services/product-variant/definitions.d.ts +172 -0
  289. package/dist/services/product-variant/definitions.d.ts.map +1 -0
  290. package/dist/services/product-variant/endpoints.d.ts +15 -0
  291. package/dist/services/product-variant/endpoints.d.ts.map +1 -0
  292. package/dist/services/product-variant/index.d.ts +123 -0
  293. package/dist/services/product-variant/index.d.ts.map +1 -0
  294. package/dist/services/product-variant/module.d.ts +11 -0
  295. package/dist/services/product-variant/module.d.ts.map +1 -0
  296. package/dist/services/product-variant/product-variant.service.d.ts +21 -0
  297. package/dist/services/product-variant/product-variant.service.d.ts.map +1 -0
  298. package/dist/services/product-variant/types.d.ts +73 -0
  299. package/dist/services/product-variant/types.d.ts.map +1 -0
  300. package/dist/services/quote/definitions.d.ts +100 -0
  301. package/dist/services/quote/definitions.d.ts.map +1 -0
  302. package/dist/services/quote/endpoints.d.ts +20 -0
  303. package/dist/services/quote/endpoints.d.ts.map +1 -0
  304. package/dist/services/quote/index.d.ts +377 -0
  305. package/dist/services/quote/index.d.ts.map +1 -0
  306. package/dist/services/quote/module.d.ts +11 -0
  307. package/dist/services/quote/module.d.ts.map +1 -0
  308. package/dist/services/quote/quote.service.d.ts +345 -0
  309. package/dist/services/quote/quote.service.d.ts.map +1 -0
  310. package/dist/services/quote/types.d.ts +158 -0
  311. package/dist/services/quote/types.d.ts.map +1 -0
  312. package/dist/services/supplier/__mocks__/supplier-mocks.d.ts +49 -0
  313. package/dist/services/supplier/__mocks__/supplier-mocks.d.ts.map +1 -0
  314. package/dist/services/supplier/definitions.d.ts +30 -0
  315. package/dist/services/supplier/definitions.d.ts.map +1 -0
  316. package/dist/services/supplier/endpoints.d.ts +14 -0
  317. package/dist/services/supplier/endpoints.d.ts.map +1 -0
  318. package/dist/services/supplier/index.d.ts +102 -0
  319. package/dist/services/supplier/index.d.ts.map +1 -0
  320. package/dist/services/supplier/module.d.ts +11 -0
  321. package/dist/services/supplier/module.d.ts.map +1 -0
  322. package/dist/services/supplier/supplier.service.d.ts +20 -0
  323. package/dist/services/supplier/supplier.service.d.ts.map +1 -0
  324. package/dist/services/supplier/types.d.ts +58 -0
  325. package/dist/services/supplier/types.d.ts.map +1 -0
  326. package/dist/services/types.d.ts +81 -0
  327. package/dist/services/types.d.ts.map +1 -0
  328. package/dist/settings/fetch-instance.d.ts +30 -0
  329. package/dist/settings/fetch-instance.d.ts.map +1 -0
  330. package/package.json +8 -6
  331. package/dist/djust-b2b-djust-front-sdk-3.0.0-beta.4.tgz +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../../../src/services/operation/definitions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAExD;;GAEG;AAEH,oBAAY,aAAa;IACvB,MAAM,WAAW;IACjB,OAAO,YAAY;CACpB;AAED,oBAAY,eAAe;IACzB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,QAAQ,aAAa;CACtB;AAED;;GAEG;AAEH,MAAM,WAAW,2BAA2B;IAC1C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,uBAAuB;IACtC,IAAI,CAAC,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AiB,EAAE,gBAAgB,EAAE,CAAC;IACtC,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,aAAa,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,aAAa,CAAC;IACpB,MAAM,EAAE,eAAe,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,iBAAiB,EAAE,gBAAgB,EAAE,CAAC;CACvC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * DJUST SDK Operation Service - Endpoints
3
+ * API endpoint constants for operation management.
4
+ *
5
+ * @module services/operation/endpoints
6
+ * @since 2.17.0
7
+ */
8
+ export declare const OperationEndpoints: {
9
+ readonly SHOP_OPERATIONS: "/v1/shop/operations";
10
+ readonly SHOP_OPERATION: "/v1/shop/operations/{operationId}";
11
+ readonly SHOP_OPERATION_LINES: "/v1/shop/operations/{operationId}/lines";
12
+ readonly OPERATIONS: "/v1/operations";
13
+ readonly OPERATION: "/v1/operations/{operationId}";
14
+ readonly OPERATION_ACCOUNTS: "/v1/operations/{operationId}/accounts";
15
+ readonly OPERATION_LINES: "/v1/operations/{operationId}/lines";
16
+ };
17
+ export type OperationEndpoint = (typeof OperationEndpoints)[keyof typeof OperationEndpoints];
18
+ //# sourceMappingURL=endpoints.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../../src/services/operation/endpoints.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;CAWrB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAC3B,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC"}
@@ -0,0 +1,520 @@
1
+ import { GetShopOperationsParameters, GetShopOperationsResponse, GetShopOperationParameters, GetShopOperationResponse, GetShopOperationLinesParameters, GetShopOperationLinesResponse, GetOperationsParameters, GetOperationsResponse, CreateOperationParameters, CreateOperationResponse, DeleteOperationParameters, GetOperationParameters, GetOperationResponse, UpdateOperationParameters, UpdateOperationDetailsParameters, UpdateOperationDetailsResponse, RemoveOperationAccountsParameters, GetOperationAccountsParameters, GetOperationAccountsResponse, AddOperationAccountsParameters, RemoveOperationLinesParameters, GetOperationLinesParameters, GetOperationLinesResponse, AddOperationLinesParameters } from "./definitions";
2
+ /**
3
+ * OPERATION ENDPOINT
4
+ */
5
+ /**
6
+ * 🎯 Gets shop operations.
7
+ *
8
+ * This function retrieves all shop operations.
9
+ *
10
+ * 🛠 **Endpoint**: `GET /v1/shop/operations`
11
+ *
12
+ * | Parameter | Type | Required | Description |
13
+ * |------------------------|---------------------|----------|------------------------------------------|
14
+ * | `page` | `number` | ❌ | The page number to retrieve (0-based). |
15
+ * | `size` | `number` | ❌ | The number of items per page. |
16
+ * | `sort` | `string[]` | ❌ | The sort to apply to the results. |
17
+ * | `ids` | `string[]` | ❌ | Filter by operation IDs. |
18
+ * | `name` | `string` | ❌ | Case-insensitive substring match on Operation name. |
19
+ * | `startDateFrom` | `string` | ❌ | Return Operations starting on or after this ISO date (inclusive). |
20
+ * | `startDateTo` | `string` | ❌ | Return Operations starting on or before this ISO date (inclusive). |
21
+ * | `endDateFrom` | `string` | ❌ | Return Operations ending on or after this ISO date (inclusive). |
22
+ * | `endDateTo` | `string` | ❌ | Return Operations ending on or before this ISO date (inclusive). |
23
+ * | `locale` | `string` | ❌ | Locale to use for localized fields (e.g., `name`). |
24
+ *
25
+ * 📤 **Returns**:
26
+ * A `Promise` resolving to a single `GetShopOperationsResponse` object representing the page of shop operations.
27
+ *
28
+ * 🛠 **Example usage**:
29
+ * ```ts
30
+ * const shopOperations = await getShopOperations({
31
+ * page: 0,
32
+ * size: 10,
33
+ * startDateFrom: "2025-01-01",
34
+ * startDateTo: "2025-12-31",
35
+ * endDateFrom: "2025-01-01",
36
+ * endDateTo: "2025-12-31",
37
+ * locale: "en-US"
38
+ * });
39
+ * ```
40
+ *
41
+ * @param {GetShopOperationsParameters} params - The parameters for retrieving the shop operations.
42
+ * @returns {Promise<GetShopOperationsResponse>} A promise resolving to the response containing page object.
43
+ */
44
+ export declare function getShopOperations({ page, size, sort, ids, name, startDateFrom, startDateTo, endDateFrom, endDateTo, locale, }: GetShopOperationsParameters): Promise<GetShopOperationsResponse>;
45
+ /**
46
+ * 🎯 Gets operations.
47
+ *
48
+ * This function retrieves all operations with optional filtering and pagination.
49
+ * The function supports various filters including type, status, date ranges, and more.
50
+ *
51
+ * 🛠 **Endpoint**: `GET /v1/operations`
52
+ *
53
+ * | Parameter | Type | Required | Description |
54
+ * |------------------------|---------------------|----------|------------------------------------------|
55
+ * | `page` | `number` | ❌ | The page number to retrieve (0-based). |
56
+ * | `size` | `number` | ❌ | The number of items per page. |
57
+ * | `sort` | `string[]` | ❌ | The sort to apply to the results. |
58
+ * | `type` | `OperationType` | ❌ | Visibility type filter; accepts OperationType.PUBLIC or OperationType.PRIVATE. |
59
+ * | `status` | `OperationStatus` | ❌ | Operation status filter; accepts OperationStatus.DRAFT, OperationStatus.ACTIVE or OperationStatus.INACTIVE. |
60
+ * | `ids` | `string[]` | ❌ | Filter by operation IDs. |
61
+ * | `name` | `string` | ❌ | Case-insensitive substring match on Operation name. |
62
+ * | `startDateFrom` | `string` | ❌ | Return Operations starting on or after this ISO date (inclusive). |
63
+ * | `startDateTo` | `string` | ❌ | Return Operations starting on or before this ISO date (inclusive). |
64
+ * | `endDateFrom` | `string` | ❌ | Return Operations ending on or after this ISO date (inclusive). |
65
+ * | `endDateTo` | `string` | ❌ | Return Operations ending on or before this ISO date (inclusive). |
66
+ * | `ownerIds` | `string[]` | ❌ | Filter by Owner user identifier (Operator only). |
67
+ * | `idType` | `string` | ❌ | Type of operation identifiers provided in the id query parameter. |
68
+ * | `locale` | `string` | ❌ | Locale to use for localized fields (e.g., `name`). |
69
+ *
70
+ * 📤 **Returns**:
71
+ * A `Promise` resolving to a single `GetOperationsResponse` object representing the page of operations.
72
+ *
73
+ * 🛠 **Example usage**:
74
+ * ```ts
75
+ * const operations = await getOperations({
76
+ * page: 0,
77
+ * size: 10,
78
+ * status: OperationStatus.ACTIVE,
79
+ * type: OperationType.PUBLIC
80
+ * });
81
+ * ```
82
+ *
83
+ * @param {GetOperationsParameters} params - The parameters for the request.
84
+ * @returns {Promise<GetOperationsResponse>} A promise resolving to the response containing page object.
85
+ */
86
+ export declare function getOperations({ page, size, sort, type, status, ids, name, startDateFrom, startDateTo, endDateFrom, endDateTo, ownerIds, idType, locale, }: GetOperationsParameters): Promise<GetOperationsResponse>;
87
+ /**
88
+ * 🔍 Gets a single shop operation by ID.
89
+ *
90
+ * This function retrieves detailed information about a specific shop operation.
91
+ *
92
+ * 🛠 **Endpoint**: `GET /v1/shop/operations/{operationId}`
93
+ *
94
+ * | Parameter | Type | Required | Description |
95
+ * |------------------------|---------------------|----------|------------------------------------------|
96
+ * | `operationId` | `string` | ✅ | Operation identifier to retrieve. |
97
+ * | `locale` | `string` | ❌ | Locale to use for localized fields (e.g., `name`). |
98
+ *
99
+ * 📤 **Returns**:
100
+ * A `Promise` resolving to a single `GetShopOperationResponse` object containing the operation details.
101
+ *
102
+ * 🛠 **Example usage**:
103
+ * ```ts
104
+ * const operation = await getShopOperation({
105
+ * operationId: "ope_123",
106
+ * locale: "en-US"
107
+ * });
108
+ * ```
109
+ *
110
+ * @param {GetShopOperationParameters} params - The parameters for retrieving the shop operation.
111
+ * @returns {Promise<GetShopOperationResponse>} A promise resolving to the operation details.
112
+ */
113
+ export declare function getShopOperation({ operationId, locale, }: GetShopOperationParameters): Promise<GetShopOperationResponse>;
114
+ /**
115
+ * 🔍 Gets a single operation by ID.
116
+ *
117
+ * This function retrieves detailed information about a specific operation
118
+ * including custom field values, owner information, and localized content.
119
+ *
120
+ * 🛠 **Endpoint**: `GET /v1/operations/{operationId}`
121
+ *
122
+ * | Parameter | Type | Required | Description |
123
+ * |------------------------|---------------------|----------|------------------------------------------|
124
+ * | `operationId` | `string` | ✅ | Operation identifier to retrieve. |
125
+ *
126
+ * 📤 **Returns**:
127
+ * A `Promise` resolving to a single `GetOperationResponse` object containing the operation details.
128
+ *
129
+ * 🛠 **Example usage**:
130
+ * ```ts
131
+ * const operation = await getOperation({
132
+ * operationId: "ope_123"
133
+ * });
134
+ * console.log(operation.name);
135
+ * ```
136
+ *
137
+ * @param {GetOperationParameters} params - The parameters for retrieving the operation.
138
+ * @returns {Promise<GetOperationResponse>} A promise resolving to the operation details.
139
+ */
140
+ export declare function getOperation({ operationId, }: GetOperationParameters): Promise<GetOperationResponse>;
141
+ /**
142
+ * ✏️ Updates an operation status.
143
+ *
144
+ * This function updates the status of an existing operation.
145
+ * The operation must exist and the user must have the appropriate permissions.
146
+ *
147
+ * 🛠 **Endpoint**: `PATCH /v1/operations/{operationId}`
148
+ *
149
+ * | Parameter | Type | Required | Description |
150
+ * |------------------------|---------------------|----------|------------------------------------------|
151
+ * | `operationId` | `string` | ✅ | Operation identifier to update. |
152
+ * | `status` | `OperationStatus` | ✅ | New status for the operation (OperationStatus.DRAFT, OperationStatus.ACTIVE, or OperationStatus.INACTIVE). |
153
+ *
154
+ * 📤 **Returns**:
155
+ * A `Promise` resolving to `void` when the operation status is successfully updated.
156
+ *
157
+ * 🛠 **Example usage**:
158
+ * ```ts
159
+ * await updateOperation({
160
+ * operationId: "ope_456",
161
+ * status: OperationStatus.ACTIVE
162
+ * });
163
+ * ```
164
+ *
165
+ * @param {UpdateOperationParameters} params - The parameters for updating the operation.
166
+ * @returns {Promise<void>} A promise that resolves when the operation is updated.
167
+ */
168
+ export declare function updateOperation({ operationId, status, }: UpdateOperationParameters): Promise<void>;
169
+ /**
170
+ * ✏️ Updates operation details.
171
+ *
172
+ * This function updates the details of an existing operation including
173
+ * custom field values, descriptions, names, and date ranges.
174
+ *
175
+ * 🛠 **Endpoint**: `PUT /v1/operations/{operationId}`
176
+ *
177
+ * | Parameter | Type | Required | Description |
178
+ * |------------------------|---------------------|----------|------------------------------------------|
179
+ * | `operationId` | `string` | ✅ | Operation identifier to update. |
180
+ * | `customFieldValues` | `object[]` | ❌ | Array of custom field values. |
181
+ * | `descriptions` | `string` | ❌ | Localized descriptions in JSON format. |
182
+ * | `endDate` | `string` | ❌ | End date of the operation in ISO format. |
183
+ * | `names` | `string` | ❌ | Localized names in JSON format. |
184
+ * | `startDate` | `string` | ❌ | Start date of the operation in ISO format. |
185
+ *
186
+ * 📤 **Returns**:
187
+ * A `Promise` resolving to a single `UpdateOperationDetailsResponse` object containing the updated operation ID.
188
+ *
189
+ * 🛠 **Example usage**:
190
+ * ```ts
191
+ * const updatedOperation = await updateOperationDetails({
192
+ * operationId: "ope_456",
193
+ * names: "{\"en-GB\": \"Updated Operation\", \"fr-FR\": \"Opération Mise à Jour\"}",
194
+ * descriptions: "{\"en-GB\": \"Updated Description\", \"fr-FR\": \"Description Mise à Jour\"}",
195
+ * startDate: "2025-12-01T00:00:00Z",
196
+ * endDate: "2025-12-31T23:59:59Z",
197
+ * customFieldValues: [
198
+ * {
199
+ * customFieldId: "field123",
200
+ * customFieldValue: "updated_value"
201
+ * }
202
+ * ]
203
+ * });
204
+ * ```
205
+ *
206
+ * @param {UpdateOperationDetailsParameters} params - The parameters for updating the operation details.
207
+ * @returns {Promise<UpdateOperationDetailsResponse>} A promise resolving to the response containing the operation ID.
208
+ */
209
+ export declare function updateOperationDetails({ operationId, customFieldValues, descriptions, endDate, names, startDate, }: UpdateOperationDetailsParameters): Promise<UpdateOperationDetailsResponse>;
210
+ /**
211
+ * 🗑️ Removes accounts from an operation.
212
+ *
213
+ * This function removes one or more accounts from an existing operation.
214
+ * The operation must exist and the user must have the appropriate permissions.
215
+ *
216
+ * 🛠 **Endpoint**: `DELETE /v1/operations/{operationId}/accounts`
217
+ *
218
+ * | Parameter | Type | Required | Description |
219
+ * |------------------------|---------------------|----------|------------------------------------------|
220
+ * | `operationId` | `string` | ✅ | Operation identifier to remove accounts from. |
221
+ * | `accountIds` | `string[]` | ✅ | Array of account identifiers to remove. |
222
+ *
223
+ * 📤 **Returns**:
224
+ * A `Promise` resolving to `void` when the accounts are successfully removed from the operation.
225
+ *
226
+ * 🛠 **Example usage**:
227
+ * ```ts
228
+ * await removeOperationAccounts({
229
+ * operationId: "ope_123",
230
+ * accountIds: ["acc_123", "acc_456"]
231
+ * });
232
+ * ```
233
+ *
234
+ * @param {RemoveOperationAccountsParameters} params - The parameters for removing accounts from the operation.
235
+ * @returns {Promise<void>} A promise that resolves when the accounts are removed.
236
+ */
237
+ export declare function removeOperationAccounts({ operationId, accountIds, }: RemoveOperationAccountsParameters): Promise<void>;
238
+ /**
239
+ * 👥 Gets accounts linked to an operation.
240
+ *
241
+ * This function retrieves a paginated list of accounts linked to a specific operation.
242
+ * The operation must be PRIVATE and the user must have the appropriate permissions.
243
+ *
244
+ * 🛠 **Endpoint**: `GET /v1/operations/{operationId}/accounts`
245
+ *
246
+ * | Parameter | Type | Required | Description |
247
+ * |------------------------|---------------------|----------|------------------------------------------|
248
+ * | `operationId` | `string` | ✅ | Operation identifier (must be PRIVATE). |
249
+ * | `page` | `number` | ❌ | The page number to retrieve (0-based). |
250
+ * | `size` | `number` | ❌ | The number of items per page. |
251
+ * | `sort` | `string[]` | ❌ | The sort to apply to the results. |
252
+ * | `accountIds` | `string[]` | ❌ | Filter by a list of external account identifiers. |
253
+ * | `accountName` | `string` | ❌ | Filter by account name (case-insensitive substring). |
254
+ *
255
+ * 📤 **Returns**:
256
+ * A `Promise` resolving to a single `GetOperationAccountsResponse` object representing the page of accounts.
257
+ *
258
+ * 🛠 **Example usage**:
259
+ * ```ts
260
+ * const accounts = await getOperationAccounts({
261
+ * operationId: "ope_123",
262
+ * page: 0,
263
+ * size: 20,
264
+ * accountName: "Store"
265
+ * });
266
+ * console.log('Linked accounts:', accounts.content);
267
+ * ```
268
+ *
269
+ * @param {GetOperationAccountsParameters} params - The parameters for the request.
270
+ * @returns {Promise<GetOperationAccountsResponse>} A promise resolving to the response containing page of accounts.
271
+ */
272
+ export declare function getOperationAccounts({ operationId, page, size, sort, accountIds, accountName, }: GetOperationAccountsParameters): Promise<GetOperationAccountsResponse>;
273
+ /**
274
+ * ➕ Adds accounts to an operation.
275
+ *
276
+ * This function adds one or more accounts to an existing operation.
277
+ * The operation must exist and the user must have the appropriate permissions.
278
+ *
279
+ * 🛠 **Endpoint**: `PUT /v1/operations/{operationId}/accounts`
280
+ *
281
+ * | Parameter | Type | Required | Description |
282
+ * |------------------------|---------------------|----------|------------------------------------------|
283
+ * | `operationId` | `string` | ✅ | Operation identifier to add accounts to. |
284
+ * | `accountIds` | `string[]` | ✅ | Array of account identifiers to add. |
285
+ *
286
+ * 📤 **Returns**:
287
+ * A `Promise` resolving to `void` when the accounts are successfully added to the operation.
288
+ *
289
+ * 🛠 **Example usage**:
290
+ * ```ts
291
+ * await addOperationAccounts({
292
+ * operationId: "ope_123",
293
+ * accountIds: ["ACC-001", "ACC-002", "ACC-XYZ"]
294
+ * });
295
+ * ```
296
+ *
297
+ * @param {AddOperationAccountsParameters} params - The parameters for adding accounts to the operation.
298
+ * @returns {Promise<void>} A promise that resolves when the accounts are added.
299
+ */
300
+ export declare function addOperationAccounts({ operationId, accountIds, }: AddOperationAccountsParameters): Promise<void>;
301
+ /**
302
+ * 🗑️ Removes variants from an operation.
303
+ *
304
+ * This function removes one or more variants from an existing operation.
305
+ * The operation must exist and the user must have the appropriate permissions.
306
+ *
307
+ * 🛠 **Endpoint**: `DELETE /v1/operations/{operationId}/lines`
308
+ *
309
+ * | Parameter | Type | Required | Description |
310
+ * |------------------------|---------------------|----------|------------------------------------------|
311
+ * | `operationId` | `string` | ✅ | Operation identifier to remove variants from. |
312
+ * | `variantIds` | `string[]` | ✅ | Array of variant identifiers to remove. |
313
+ *
314
+ * 📤 **Returns**:
315
+ * A `Promise` resolving to `void` when the variants are successfully removed from the operation.
316
+ *
317
+ * 🛠 **Example usage**:
318
+ * ```ts
319
+ * await removeOperationLines({
320
+ * operationId: "ope_123",
321
+ * variantIds: ["VAR-001", "VAR-002", "VAR-003"]
322
+ * });
323
+ * ```
324
+ *
325
+ * @param {RemoveOperationLinesParameters} params - The parameters for removing variants from the operation.
326
+ * @returns {Promise<void>} A promise that resolves when the variants are removed.
327
+ */
328
+ export declare function removeOperationLines({ operationId, variantIds, }: RemoveOperationLinesParameters): Promise<void>;
329
+ /**
330
+ * 📦 Gets variants linked to an operation.
331
+ *
332
+ * This function retrieves a paginated list of variants linked to a specific operation
333
+ * with various filtering options including quantity ranges and variant names.
334
+ *
335
+ * 🛠 **Endpoint**: `GET /v1/shop/operations/{operationId}/lines`
336
+ *
337
+ * | Parameter | Type | Required | Description |
338
+ * |------------------------|---------------------|----------|------------------------------------------|
339
+ * | `operationId` | `string` | ✅ | Operation identifier to retrieve lines from. |
340
+ * | `page` | `number` | ❌ | The page number to retrieve (0-based). |
341
+ * | `size` | `number` | ❌ | The number of items per page. |
342
+ * | `sort` | `string[]` | ❌ | The sort to apply to the results. |
343
+ * | `variantIds` | `string[]` | ❌ | Filter by a list of external variant IDs. |
344
+ * | `variantName` | `string` | ❌ | Filter by variant name (case-insensitive, partial or exact match). |
345
+ * | `locale` | `string` | ❌ | Locale to use for localized fields. |
346
+ *
347
+ * 📤 **Returns**:
348
+ * A `Promise` resolving to a single `GetShopOperationLinesResponse` object representing the page of variants.
349
+ *
350
+ * 🛠 **Example usage**:
351
+ * ```ts
352
+ * const variants = await getShopOperationLines({
353
+ * operationId: "ope_123",
354
+ * page: 0,
355
+ * size: 20,
356
+ * variantName: "Shirt",
357
+ * locale: "en-US"
358
+ * });
359
+ * ```
360
+ *
361
+ * @param {GetShopOperationLinesParameters} params - The parameters for the request.
362
+ * @returns {Promise<GetShopOperationLinesResponse>} A promise resolving to the response containing page of variants.
363
+ */
364
+ export declare function getShopOperationLines({ operationId, page, size, sort, variantIds, variantName, locale, }: GetShopOperationLinesParameters): Promise<GetShopOperationLinesResponse>;
365
+ /**
366
+ * 📦 Gets variants linked to an operation.
367
+ *
368
+ * This function retrieves a paginated list of variants linked to a specific operation
369
+ * with various filtering options including quantity ranges and variant names.
370
+ *
371
+ * 🛠 **Endpoint**: `GET /v1/operations/{operationId}/lines`
372
+ *
373
+ * | Parameter | Type | Required | Description |
374
+ * |------------------------|---------------------|----------|------------------------------------------|
375
+ * | `operationId` | `string` | ✅ | Operation identifier. |
376
+ * | `page` | `number` | ❌ | The page number to retrieve (0-based). |
377
+ * | `size` | `number` | ❌ | The number of items per page. |
378
+ * | `sort` | `string[]` | ❌ | The sort to apply to the results. |
379
+ * | `variantIds` | `string[]` | ❌ | Filter by a list of external variant IDs. |
380
+ * | `variantName` | `string` | ❌ | Filter by variant name (case-insensitive, partial or exact match). |
381
+ * | `minQuantity` | `number` | ❌ | Filter variants where minQuantity equals this value. |
382
+ * | `maxQuantity` | `number` | ❌ | Filter variants where maxQuantity equals this value. |
383
+ * | `recommendedQuantity` | `number` | ❌ | Filter variants where recommendedQuantity equals this value. |
384
+ * | `locale` | `string` | ❌ | Locale to use for localized fields. |
385
+ *
386
+ * 📤 **Returns**:
387
+ * A `Promise` resolving to a single `GetOperationLinesResponse` object representing the page of variants.
388
+ *
389
+ * 🛠 **Example usage**:
390
+ * ```ts
391
+ * const variants = await getOperationLines({
392
+ * operationId: "ope_123",
393
+ * page: 0,
394
+ * size: 20,
395
+ * variantName: "Shirt",
396
+ * minQuantity: 2,
397
+ * maxQuantity: 10
398
+ * });
399
+ * console.log('Linked variants:', variants.content);
400
+ * ```
401
+ *
402
+ * @param {GetOperationLinesParameters} params - The parameters for the request.
403
+ * @returns {Promise<GetOperationLinesResponse>} A promise resolving to the response containing page of variants.
404
+ */
405
+ export declare function getOperationLines({ operationId, page, size, sort, variantIds, variantName, minQuantity, maxQuantity, recommendedQuantity, locale, }: GetOperationLinesParameters): Promise<GetOperationLinesResponse>;
406
+ /**
407
+ * ➕ Adds variants to an operation.
408
+ *
409
+ * This function adds one or more variants to an existing operation with
410
+ * their associated quantity constraints (min, max, and recommended quantities).
411
+ *
412
+ * 🛠 **Endpoint**: `PUT /v1/operations/{operationId}/lines`
413
+ *
414
+ * | Parameter | Type | Required | Description |
415
+ * |------------------------|---------------------|----------|------------------------------------------|
416
+ * | `operationId` | `string` | ✅ | Operation identifier to add variants to. |
417
+ * | `lines` | `object[]` | ✅ | Array of variant lines with quantity constraints. |
418
+ * | `lines[].variantId` | `string` | ✅ | Variant identifier to add. |
419
+ * | `lines[].minQuantity` | `number` | ✅ | Minimum quantity for this variant. |
420
+ * | `lines[].maxQuantity` | `number` | ✅ | Maximum quantity for this variant. |
421
+ * | `lines[].recommendedQuantity` | `number` | ✅ | Recommended quantity for this variant. |
422
+ *
423
+ * 📤 **Returns**:
424
+ * A `Promise` resolving to `void` when the variants are successfully added to the operation.
425
+ *
426
+ * 🛠 **Example usage**:
427
+ * ```ts
428
+ * await addOperationLines({
429
+ * operationId: "ope_123",
430
+ * lines: [
431
+ * {
432
+ * variantId: "VAR-001",
433
+ * minQuantity: 2,
434
+ * maxQuantity: 10,
435
+ * recommendedQuantity: 5
436
+ * },
437
+ * {
438
+ * variantId: "VAR-002",
439
+ * minQuantity: 1,
440
+ * maxQuantity: 5,
441
+ * recommendedQuantity: 3
442
+ * }
443
+ * ]
444
+ * });
445
+ * ```
446
+ *
447
+ * @param {AddOperationLinesParameters} params - The parameters for adding variants to the operation.
448
+ * @returns {Promise<void>} A promise that resolves when the variants are added.
449
+ */
450
+ export declare function addOperationLines({ operationId, lines, }: AddOperationLinesParameters): Promise<void>;
451
+ /**
452
+ * ➕ Creates a new operation.
453
+ *
454
+ * This function creates a new operation with the provided parameters.
455
+ * The function supports custom field values, localized descriptions and names.
456
+ *
457
+ * 🛠 **Endpoint**: `POST /v1/operations`
458
+ *
459
+ * | Parameter | Type | Required | Description |
460
+ * |------------------------|---------------------|----------|------------------------------------------|
461
+ * | `customFieldValues` | `object[]` | ❌ | Array of custom field values. |
462
+ * | `descriptions` | `string` | ❌ | Localized descriptions in JSON format. |
463
+ * | `endDate` | `string` | ✅ | End date of the operation in ISO format. |
464
+ * | `externalId` | `string` | ✅ | External identifier for the operation. |
465
+ * | `names` | `string` | ✅ | Localized names in JSON format. |
466
+ * | `startDate` | `string` | ✅ | Start date of the operation in ISO format. |
467
+ * | `type` | `OperationType` | ✅ | Type of the operation (OperationType.PUBLIC or OperationType.PRIVATE). |
468
+ *
469
+ * 📤 **Returns**:
470
+ * A `Promise` resolving to a single `CreateOperationResponse` object containing the created operation ID.
471
+ *
472
+ * 🛠 **Example usage**:
473
+ * ```ts
474
+ * const operation = await createOperation({
475
+ * externalId: "SUMMER_OPE_0825",
476
+ * names: "{\"en-GB\": \"Summer Operation\", \"fr-FR\": \"Opération Été\"}",
477
+ * descriptions: "{\"en-GB\": \"Summer Operation · Fine Food\", \"fr-FR\": \"Opération Été · Produits raffinés\"}",
478
+ * startDate: "2025-11-21T00:00:00Z",
479
+ * endDate: "2025-11-28T23:59:59Z",
480
+ * type: OperationType.PRIVATE,
481
+ * customFieldValues: [
482
+ * {
483
+ * customFieldId: "field123",
484
+ * customFieldValue: "value456"
485
+ * }
486
+ * ]
487
+ * });
488
+ * ```
489
+ *
490
+ * @param {CreateOperationParameters} params - The parameters for creating the operation.
491
+ * @returns {Promise<CreateOperationResponse>} A promise resolving to the response containing the operation ID.
492
+ */
493
+ export declare function createOperation({ customFieldValues, descriptions, endDate, externalId, names, startDate, type, }: CreateOperationParameters): Promise<CreateOperationResponse>;
494
+ /**
495
+ * 🗑️ Deletes an operation.
496
+ *
497
+ * This function deletes an operation by its identifier.
498
+ * The operation must not be linked to carts or orders to be deletable.
499
+ *
500
+ * 🛠 **Endpoint**: `DELETE /v1/operations/{operationId}`
501
+ *
502
+ * | Parameter | Type | Required | Description |
503
+ * |------------------------|---------------------|----------|------------------------------------------|
504
+ * | `operationId` | `string` | ✅ | Operation identifier to delete. |
505
+ *
506
+ * 📤 **Returns**:
507
+ * A `Promise` resolving to `void` when the operation is successfully deleted.
508
+ *
509
+ * 🛠 **Example usage**:
510
+ * ```ts
511
+ * await deleteOperation({
512
+ * operationId: "ope_123"
513
+ * });
514
+ * ```
515
+ *
516
+ * @param {DeleteOperationParameters} params - The parameters for deleting the operation.
517
+ * @returns {Promise<void>} A promise that resolves when the operation is deleted.
518
+ */
519
+ export declare function deleteOperation({ operationId, }: DeleteOperationParameters): Promise<void>;
520
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/operation/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,2BAA2B,EAC3B,yBAAyB,EACzB,0BAA0B,EAC1B,wBAAwB,EACxB,+BAA+B,EAC/B,6BAA6B,EAC7B,uBAAuB,EACvB,qBAAqB,EACrB,yBAAyB,EACzB,uBAAuB,EACvB,yBAAyB,EACzB,sBAAsB,EACtB,oBAAoB,EACpB,yBAAyB,EACzB,gCAAgC,EAChC,8BAA8B,EAC9B,iCAAiC,EACjC,8BAA8B,EAC9B,4BAA4B,EAC5B,8BAA8B,EAC9B,8BAA8B,EAC9B,2BAA2B,EAC3B,yBAAyB,EACzB,2BAA2B,EAG5B,MAAM,eAAe,CAAC;AAEvB;;GAEG;AAEH;;;;;;;;;;;;;;;;;;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,GAAG,OAAO,CAAC,IAAI,CAAC,CAM7C;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,wBAAsB,eAAe,CAAC,EACpC,iBAAiB,EACjB,YAAY,EACZ,OAAO,EACP,UAAU,EACV,KAAK,EACL,SAAS,EACT,IAAI,GACL,EAAE,yBAAyB,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAgB9D;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAsB,eAAe,CAAC,EACpC,WAAW,GACZ,EAAE,yBAAyB,GAAG,OAAO,CAAC,IAAI,CAAC,CAK3C"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * DJUST SDK Operation Module
3
+ * Re-exports all operation-related types and service.
4
+ *
5
+ * @module services/operation
6
+ * @since 2.17.0
7
+ */
8
+ export type { OperationType, OperationStatus, IdType, CustomFieldValueRequest, OperationLineRequest, GetShopOperationsParams, GetOperationsParams, GetShopOperationParams, GetOperationParams, CreateOperationParams, UpdateOperationParams, UpdateOperationDetailsParams, DeleteOperationParams, GetOperationAccountsParams, AddOperationAccountsParams, RemoveOperationAccountsParams, GetShopOperationLinesParams, GetOperationLinesParams, AddOperationLinesParams, RemoveOperationLinesParams, Operation, OperationAccount, OperationLine, GetShopOperationsResponse, GetOperationsResponse, GetShopOperationResponse, GetOperationResponse, CreateOperationResponse, UpdateOperationDetailsResponse, GetOperationAccountsResponse, GetShopOperationLinesResponse, GetOperationLinesResponse, } from "./types";
9
+ export { OperationEndpoints, type OperationEndpoint } from "./endpoints";
10
+ export { OperationService } from "./operation.service";
11
+ //# sourceMappingURL=module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../src/services/operation/module.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,YAAY,EACV,aAAa,EACb,eAAe,EACf,MAAM,EACN,uBAAuB,EACvB,oBAAoB,EACpB,uBAAuB,EACvB,mBAAmB,EACnB,sBAAsB,EACtB,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,4BAA4B,EAC5B,qBAAqB,EACrB,0BAA0B,EAC1B,0BAA0B,EAC1B,6BAA6B,EAC7B,2BAA2B,EAC3B,uBAAuB,EACvB,uBAAuB,EACvB,0BAA0B,EAC1B,SAAS,EACT,gBAAgB,EAChB,aAAa,EACb,yBAAyB,EACzB,qBAAqB,EACrB,wBAAwB,EACxB,oBAAoB,EACpB,uBAAuB,EACvB,8BAA8B,EAC9B,4BAA4B,EAC5B,6BAA6B,EAC7B,yBAAyB,GAC1B,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,kBAAkB,EAAE,KAAK,iBAAiB,EAAE,MAAM,aAAa,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,32 @@
1
+ /**
2
+ * DJUST SDK Operation Service
3
+ * Service class for operation management.
4
+ *
5
+ * @module services/operation/service
6
+ * @since 2.17.0
7
+ */
8
+ import { BaseService } from "../base.service";
9
+ import type { RequestContext } from "../../client/transport";
10
+ import type { GetShopOperationsParams, GetOperationsParams, GetShopOperationParams, GetOperationParams, CreateOperationParams, UpdateOperationParams, UpdateOperationDetailsParams, DeleteOperationParams, GetOperationAccountsParams, AddOperationAccountsParams, RemoveOperationAccountsParams, GetShopOperationLinesParams, GetOperationLinesParams, AddOperationLinesParams, RemoveOperationLinesParams, GetShopOperationsResponse, GetOperationsResponse, GetShopOperationResponse, GetOperationResponse, CreateOperationResponse, UpdateOperationDetailsResponse, GetOperationAccountsResponse, GetShopOperationLinesResponse, GetOperationLinesResponse } from "./types";
11
+ /**
12
+ * Service for operation management.
13
+ */
14
+ export declare class OperationService extends BaseService {
15
+ readonly serviceName = "operation";
16
+ getShopOperations(params?: GetShopOperationsParams, context?: RequestContext): Promise<GetShopOperationsResponse>;
17
+ getOperations(params?: GetOperationsParams, context?: RequestContext): Promise<GetOperationsResponse>;
18
+ getShopOperation(params: GetShopOperationParams, context?: RequestContext): Promise<GetShopOperationResponse>;
19
+ getOperation(params: GetOperationParams, context?: RequestContext): Promise<GetOperationResponse>;
20
+ createOperation(params: CreateOperationParams, context?: RequestContext): Promise<CreateOperationResponse>;
21
+ updateOperation(params: UpdateOperationParams, context?: RequestContext): Promise<void>;
22
+ updateOperationDetails(params: UpdateOperationDetailsParams, context?: RequestContext): Promise<UpdateOperationDetailsResponse>;
23
+ deleteOperation(params: DeleteOperationParams, context?: RequestContext): Promise<void>;
24
+ getOperationAccounts(params: GetOperationAccountsParams, context?: RequestContext): Promise<GetOperationAccountsResponse>;
25
+ addOperationAccounts(params: AddOperationAccountsParams, context?: RequestContext): Promise<void>;
26
+ removeOperationAccounts(params: RemoveOperationAccountsParams, context?: RequestContext): Promise<void>;
27
+ getShopOperationLines(params: GetShopOperationLinesParams, context?: RequestContext): Promise<GetShopOperationLinesResponse>;
28
+ getOperationLines(params: GetOperationLinesParams, context?: RequestContext): Promise<GetOperationLinesResponse>;
29
+ addOperationLines(params: AddOperationLinesParams, context?: RequestContext): Promise<void>;
30
+ removeOperationLines(params: RemoveOperationLinesParams, context?: RequestContext): Promise<void>;
31
+ }
32
+ //# sourceMappingURL=operation.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operation.service.d.ts","sourceRoot":"","sources":["../../../src/services/operation/operation.service.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE7D,OAAO,KAAK,EACV,uBAAuB,EACvB,mBAAmB,EACnB,sBAAsB,EACtB,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,4BAA4B,EAC5B,qBAAqB,EACrB,0BAA0B,EAC1B,0BAA0B,EAC1B,6BAA6B,EAC7B,2BAA2B,EAC3B,uBAAuB,EACvB,uBAAuB,EACvB,0BAA0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