@floristcloud/api-lib 1.2.159 → 1.2.161

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 (377) hide show
  1. package/build/commands/client/index.js +1 -0
  2. package/build/commands/client/webshop/get-client-me-webshop.query.js +8 -0
  3. package/build/commands/client/webshop/register-client-webshop.command.js +2 -16
  4. package/build/commands/client/webshop/update-client-for-client.command.js +2 -14
  5. package/build/commands/discount-rules/get-product-discount-price.query.js +2 -68
  6. package/build/commands/order/webshop/create-cart.command.js +2 -8
  7. package/build/commands/order/webshop/get-order-for-client.query.js +2 -8
  8. package/build/commands/order/webshop/get-order-list-for-client.query.js +2 -46
  9. package/build/commands/order/webshop/update-cart.command.js +2 -25
  10. package/build/commands/order-product/webshop/get-order-product-for-client-list.query.js +2 -8
  11. package/build/commands/pre-order/webshop/get-pre-order-list-webshop.command.js +2 -16
  12. package/build/commands/pre-order/webshop/get-pre-order-list-webshop.query.js +9 -0
  13. package/build/commands/pre-order/webshop/get-pre-order-webshop.query.js +8 -0
  14. package/build/commands/pre-order/webshop/index.js +2 -1
  15. package/build/commands/pre-order-collection-item/delete-group-pre-order-collection-item.command.js +3 -13
  16. package/build/commands/pre-order-collection-item/get-pre-order-collection-item-grouped-list-for-client.query.js +2 -18
  17. package/build/commands/pre-order-collection-item/get-pre-order-collection-item-list-for-client.query.js +2 -18
  18. package/build/commands/pre-order-product/create-pre-order-product-webshop.command.js +2 -7
  19. package/build/commands/pre-order-product/get-pre-order-product-extended-list-webshop.query.js +9 -0
  20. package/build/commands/pre-order-product/index.js +1 -0
  21. package/build/commands/pre-order-product/update-pre-order-product-webshop.command.js +2 -7
  22. package/build/commands/product/export-stock-products.query.js +11 -0
  23. package/build/commands/product/get-product-list.query.js +4 -25
  24. package/build/commands/product/index.js +1 -0
  25. package/build/commands/product/webshop/get-product-list-for-client.query.js +2 -31
  26. package/build/commands/transaction/webshop/get-transaction-list-for-client.query.js +2 -30
  27. package/build/commands/write-off/webshop/create-write-off-from-order-for-client.command.js +2 -14
  28. package/build/commands/write-off/webshop/get-write-off-list-by-order.query.js +2 -8
  29. package/build/constant/error.js +18 -0
  30. package/build/schemas/category/category-name.schema.js +6 -0
  31. package/build/schemas/category/index.js +23 -0
  32. package/build/schemas/client/client-base.schema.js +37 -0
  33. package/build/schemas/client/client-extended-for-client.schema.js +17 -0
  34. package/build/schemas/client/client-extended-list.schema.js +9 -0
  35. package/build/schemas/client/client-extended.schema.js +21 -0
  36. package/build/schemas/client/client-for-client.schema.js +30 -0
  37. package/build/schemas/client/client-name.schema.js +6 -0
  38. package/build/schemas/client/client.schema.js +6 -54
  39. package/build/schemas/client/get-client-me-webshop-response.schema.js +9 -0
  40. package/build/schemas/client/index.js +10 -0
  41. package/build/schemas/client/register-client-webshop-request.schema.js +13 -0
  42. package/build/schemas/client/register-client-webshop-response.schema.js +9 -0
  43. package/build/schemas/client/update-client-for-client-request.schema.js +11 -0
  44. package/build/schemas/client/update-client-for-client-response.schema.js +9 -0
  45. package/build/schemas/consignment/consignment-distribution-validation.schema.js +4 -4
  46. package/build/schemas/consignment/consignment.schema.js +2 -2
  47. package/build/schemas/discount-rules/discount-rules-data-for-client.schema.js +8 -0
  48. package/build/schemas/discount-rules/discount-rules-for-client.schema.js +11 -0
  49. package/build/schemas/discount-rules/discount-rules.schema.js +4 -4
  50. package/build/schemas/discount-rules/get-product-discount-price-request.schema.js +10 -0
  51. package/build/schemas/discount-rules/get-product-discount-price-response.schema.js +17 -0
  52. package/build/schemas/discount-rules/index.js +24 -0
  53. package/build/schemas/discount-rules/product-discount-price-data.schema.js +18 -0
  54. package/build/schemas/discount-rules/product-discount-price-item.schema.js +22 -0
  55. package/build/schemas/discount-rules/product-discount-price-multiplicity-option.schema.js +25 -0
  56. package/build/schemas/index.js +15 -37
  57. package/build/schemas/money-account/index.js +19 -0
  58. package/build/schemas/money-account/money-account-name.schema.js +6 -0
  59. package/build/schemas/order/create-cart-request.schema.js +5 -0
  60. package/build/schemas/order/create-cart-response.schema.js +9 -0
  61. package/build/schemas/order/get-order-for-client-list-request.schema.js +40 -0
  62. package/build/schemas/order/get-order-for-client-list-response.schema.js +9 -0
  63. package/build/schemas/order/get-order-for-client-request.schema.js +5 -0
  64. package/build/schemas/order/get-order-for-client-response.schema.js +9 -0
  65. package/build/schemas/order/index.js +30 -0
  66. package/build/schemas/order/order-base.schema.js +50 -0
  67. package/build/schemas/order/order-extended-for-client-list.schema.js +9 -0
  68. package/build/schemas/order/order-extended-for-client.schema.js +19 -0
  69. package/build/schemas/order/order-extended.schema.js +19 -0
  70. package/build/schemas/order/order-for-client.schema.js +36 -0
  71. package/build/schemas/order/order.schema.js +9 -81
  72. package/build/schemas/order/update-cart-delivery-request.schema.js +10 -0
  73. package/build/schemas/order/update-cart-request.schema.js +15 -0
  74. package/build/schemas/order/update-cart-response.schema.js +9 -0
  75. package/build/schemas/order-product/active-stepper-positions-for-order-response.schema.js +8 -0
  76. package/build/schemas/order-product/get-order-product-for-client-list-request.schema.js +5 -0
  77. package/build/schemas/order-product/get-order-product-for-client-list-response.schema.js +9 -0
  78. package/build/schemas/order-product/index.js +27 -0
  79. package/build/schemas/order-product/order-product-base.schema.js +27 -0
  80. package/build/schemas/order-product/order-product-extended-for-client-list.schema.js +9 -0
  81. package/build/schemas/order-product/order-product-extended-for-client.schema.js +10 -0
  82. package/build/schemas/order-product/order-product-extended.schema.js +12 -0
  83. package/build/schemas/order-product/order-product-for-client.schema.js +20 -0
  84. package/build/schemas/order-product/order-product-for-distribute.schema.js +15 -0
  85. package/build/schemas/order-product/order-product-list.schema.js +5 -6
  86. package/build/schemas/order-product/order-product-stepper-position.schema.js +13 -0
  87. package/build/schemas/order-product/order-product.schema.js +20 -70
  88. package/build/schemas/order-product/set-order-product-quantity-webshop-request.schema.js +7 -0
  89. package/build/schemas/order-product/set-order-product-quantity-webshop-response.schema.js +9 -0
  90. package/build/schemas/pagination-request.schema.js +9 -0
  91. package/build/schemas/pre-order/get-pre-order-list-webshop-request.schema.js +10 -0
  92. package/build/schemas/pre-order/get-pre-order-list-webshop-response.schema.js +8 -0
  93. package/build/schemas/pre-order/get-pre-order-webshop-response.schema.js +8 -0
  94. package/build/schemas/pre-order/index.js +25 -0
  95. package/build/schemas/pre-order/pre-order-copy.schema.js +4 -4
  96. package/build/schemas/pre-order/pre-order-extended-for-client-list.schema.js +9 -0
  97. package/build/schemas/pre-order/pre-order-extended-for-client.schema.js +15 -0
  98. package/build/schemas/pre-order/pre-order-for-client.schema.js +15 -0
  99. package/build/schemas/pre-order/pre-order-summary.schema.js +5 -0
  100. package/build/schemas/pre-order/pre-order.schema.js +3 -3
  101. package/build/schemas/pre-order-collection/index.js +18 -0
  102. package/build/schemas/pre-order-collection/pre-order-collection-summary-for-client.schema.js +10 -0
  103. package/build/schemas/pre-order-collection-item/create-pre-order-collection-item.schema.js +32 -0
  104. package/build/schemas/pre-order-collection-item/delete-group-pre-order-collection-item-request.schema.js +7 -0
  105. package/build/schemas/pre-order-collection-item/delete-group-pre-order-collection-item-response.schema.js +9 -0
  106. package/build/schemas/pre-order-collection-item/delete-group-pre-order-collection-item-result.schema.js +8 -0
  107. package/build/schemas/pre-order-collection-item/get-pre-order-collection-item-grouped-list-for-client-response.schema.js +9 -0
  108. package/build/schemas/pre-order-collection-item/get-pre-order-collection-item-list-for-client-response.schema.js +9 -0
  109. package/build/schemas/pre-order-collection-item/index.js +34 -0
  110. package/build/schemas/pre-order-collection-item/matching-product.schema.js +13 -0
  111. package/build/schemas/pre-order-collection-item/pre-order-collection-item-base.schema.js +36 -0
  112. package/build/schemas/pre-order-collection-item/pre-order-collection-item-catalog-filter-for-client-request.schema.js +15 -0
  113. package/build/schemas/pre-order-collection-item/pre-order-collection-item-catalog-for-client-list.schema.js +9 -0
  114. package/build/schemas/pre-order-collection-item/pre-order-collection-item-catalog-for-client.schema.js +11 -0
  115. package/build/schemas/pre-order-collection-item/pre-order-collection-item-catalog-grouped-for-client-list.schema.js +9 -0
  116. package/build/schemas/pre-order-collection-item/pre-order-collection-item-catalog-grouped-for-client.schema.js +9 -0
  117. package/build/schemas/pre-order-collection-item/pre-order-collection-item-category.schema.js +11 -0
  118. package/build/schemas/pre-order-collection-item/pre-order-collection-item-client-pre-order-product.schema.js +13 -0
  119. package/build/schemas/pre-order-collection-item/pre-order-collection-item-extended-list.schema.js +9 -0
  120. package/build/schemas/pre-order-collection-item/pre-order-collection-item-extended-with-clients-pre-order-product-list.schema.js +9 -0
  121. package/build/schemas/pre-order-collection-item/pre-order-collection-item-extended-with-clients-pre-order-product.schema.js +8 -0
  122. package/build/schemas/pre-order-collection-item/pre-order-collection-item-extended.schema.js +18 -0
  123. package/build/schemas/pre-order-collection-item/pre-order-collection-item-for-client.schema.js +34 -0
  124. package/build/schemas/pre-order-collection-item/pre-order-collection-item-image.schema.js +7 -0
  125. package/build/schemas/pre-order-collection-item/pre-order-collection-item.schema.js +31 -150
  126. package/build/schemas/pre-order-collection-item/update-pre-order-collection-item.schema.js +35 -0
  127. package/build/schemas/pre-order-product/active-stepper-positions-response.schema.js +8 -0
  128. package/build/schemas/pre-order-product/create-pre-order-product-webshop-request.schema.js +16 -0
  129. package/build/schemas/pre-order-product/create-pre-order-product-webshop-response.schema.js +9 -0
  130. package/build/schemas/pre-order-product/create-pre-order-product.schema.js +18 -0
  131. package/build/schemas/pre-order-product/get-pre-order-product-extended-list-webshop-response.schema.js +9 -0
  132. package/build/schemas/pre-order-product/index.js +25 -0
  133. package/build/schemas/pre-order-product/matching-config.schema.js +12 -0
  134. package/build/schemas/pre-order-product/pre-order-product-base.schema.js +27 -0
  135. package/build/schemas/pre-order-product/pre-order-product-extended-for-client-list.schema.js +9 -0
  136. package/build/schemas/pre-order-product/pre-order-product-extended-for-client.schema.js +15 -0
  137. package/build/schemas/pre-order-product/pre-order-product-extended-list.schema.js +9 -0
  138. package/build/schemas/pre-order-product/pre-order-product-extended.schema.js +14 -0
  139. package/build/schemas/pre-order-product/pre-order-product-for-client.schema.js +24 -0
  140. package/build/schemas/pre-order-product/pre-order-product-list.schema.js +9 -0
  141. package/build/schemas/pre-order-product/pre-order-product-stepper-position.schema.js +14 -0
  142. package/build/schemas/pre-order-product/pre-order-product.schema.js +29 -126
  143. package/build/schemas/pre-order-product/set-pre-order-product-quantity-webshop-request.schema.js +7 -0
  144. package/build/schemas/pre-order-product/set-pre-order-product-quantity-webshop-response.schema.js +9 -0
  145. package/build/schemas/pre-order-product/update-pre-order-product-webshop-request.schema.js +16 -0
  146. package/build/schemas/pre-order-product/update-pre-order-product-webshop-response.schema.js +9 -0
  147. package/build/schemas/pre-order-product/update-pre-order-product.schema.js +24 -0
  148. package/build/schemas/product/export-stock-products-request.schema.js +14 -0
  149. package/build/schemas/product/export-stock-products-response.schema.js +7 -0
  150. package/build/schemas/product/get-product-list-for-client-request.schema.js +28 -0
  151. package/build/schemas/product/get-product-list-for-client-response.schema.js +9 -0
  152. package/build/schemas/product/get-product-list-request.schema.js +21 -0
  153. package/build/schemas/product/get-product-list-response.schema.js +9 -0
  154. package/build/schemas/product/index.js +31 -0
  155. package/build/schemas/product/product-base.schema.js +38 -0
  156. package/build/schemas/product/product-catalog-name.schema.js +10 -0
  157. package/build/schemas/product/product-consignment-for-client.schema.js +8 -0
  158. package/build/schemas/product/product-discount-price-for-client.schema.js +8 -0
  159. package/build/schemas/product/product-extended-for-admin-with-statistic.schema.js +8 -0
  160. package/build/schemas/product/product-extended-for-admin.schema.js +9 -0
  161. package/build/schemas/product/product-extended-for-client.schema.js +31 -0
  162. package/build/schemas/product/product-extended.schema.js +15 -0
  163. package/build/schemas/product/product-for-client.schema.js +25 -0
  164. package/build/schemas/product/product-image-for-client.schema.js +7 -0
  165. package/build/schemas/product/product-list-extended-for-client.schema.js +9 -0
  166. package/build/schemas/product/product-list.schema.js +5 -7
  167. package/build/schemas/product/product.schema.js +12 -135
  168. package/build/schemas/transaction/get-transaction-list-for-client-request.schema.js +27 -0
  169. package/build/schemas/transaction/get-transaction-list-for-client-response.schema.js +9 -0
  170. package/build/schemas/transaction/index.js +23 -0
  171. package/build/schemas/transaction/transaction-base.schema.js +24 -0
  172. package/build/schemas/transaction/transaction-extended-for-client-list.schema.js +9 -0
  173. package/build/schemas/transaction/transaction-extended-for-client.schema.js +12 -0
  174. package/build/schemas/transaction/transaction-extended.schema.js +12 -0
  175. package/build/schemas/transaction/transaction-for-client.schema.js +19 -0
  176. package/build/schemas/transaction/transaction-list.schema.js +5 -6
  177. package/build/schemas/transaction/transaction.schema.js +7 -35
  178. package/build/schemas/user/index.js +19 -0
  179. package/build/schemas/user/user-contact-for-client.schema.js +10 -0
  180. package/build/schemas/user/user-name.schema.js +6 -0
  181. package/build/schemas/write-off/create-write-off-from-order-for-client-request.schema.js +11 -0
  182. package/build/schemas/write-off/create-write-off-from-order-for-client-response.schema.js +9 -0
  183. package/build/schemas/write-off/get-write-off-list-by-order-for-client-request.schema.js +5 -0
  184. package/build/schemas/write-off/get-write-off-list-by-order-for-client-response.schema.js +9 -0
  185. package/build/schemas/write-off/index.js +27 -0
  186. package/build/schemas/write-off/write-off-for-client.schema.js +26 -0
  187. package/build/schemas/write-off/write-off-order-product-for-client.schema.js +8 -0
  188. package/build/schemas/write-off/write-off.schema.js +8 -8
  189. package/commands/client/index.ts +1 -0
  190. package/commands/client/webshop/get-client-me-webshop.query.ts +7 -0
  191. package/commands/client/webshop/register-client-webshop.command.ts +1 -16
  192. package/commands/client/webshop/update-client-for-client.command.ts +1 -14
  193. package/commands/discount-rules/get-product-discount-price.query.ts +1 -69
  194. package/commands/order/webshop/create-cart.command.ts +1 -8
  195. package/commands/order/webshop/get-order-for-client.query.ts +1 -8
  196. package/commands/order/webshop/get-order-list-for-client.query.ts +1 -49
  197. package/commands/order/webshop/update-cart.command.ts +1 -25
  198. package/commands/order-product/webshop/get-order-product-for-client-list.query.ts +1 -8
  199. package/commands/pre-order/webshop/get-pre-order-list-webshop.command.ts +1 -21
  200. package/commands/pre-order/webshop/get-pre-order-list-webshop.query.ts +10 -0
  201. package/commands/pre-order/webshop/get-pre-order-webshop.query.ts +7 -0
  202. package/commands/pre-order/webshop/index.ts +2 -1
  203. package/commands/pre-order-collection-item/delete-group-pre-order-collection-item.command.ts +1 -12
  204. package/commands/pre-order-collection-item/get-pre-order-collection-item-grouped-list-for-client.query.ts +5 -19
  205. package/commands/pre-order-collection-item/get-pre-order-collection-item-list-for-client.query.ts +5 -19
  206. package/commands/pre-order-product/create-pre-order-product-webshop.command.ts +2 -7
  207. package/commands/pre-order-product/get-pre-order-product-extended-list-webshop.query.ts +10 -0
  208. package/commands/pre-order-product/index.ts +1 -0
  209. package/commands/pre-order-product/update-pre-order-product-webshop.command.ts +2 -7
  210. package/commands/product/export-stock-products.query.ts +13 -0
  211. package/commands/product/get-product-list.query.ts +3 -25
  212. package/commands/product/index.ts +1 -0
  213. package/commands/product/webshop/get-product-list-for-client.query.ts +1 -31
  214. package/commands/transaction/webshop/get-transaction-list-for-client.query.ts +1 -33
  215. package/commands/write-off/webshop/create-write-off-from-order-for-client.command.ts +1 -14
  216. package/commands/write-off/webshop/get-write-off-list-by-order.query.ts +1 -8
  217. package/constant/error.ts +18 -0
  218. package/package.json +1 -1
  219. package/schemas/category/category-name.schema.ts +4 -0
  220. package/schemas/category/index.ts +7 -0
  221. package/schemas/client/client-base.schema.ts +38 -0
  222. package/schemas/client/client-extended-for-client.schema.ts +15 -0
  223. package/schemas/client/client-extended-list.schema.ts +7 -0
  224. package/schemas/client/client-extended.schema.ts +20 -0
  225. package/schemas/client/client-for-client.schema.ts +28 -0
  226. package/schemas/client/client-name.schema.ts +4 -0
  227. package/schemas/client/client.schema.ts +3 -62
  228. package/schemas/client/get-client-me-webshop-response.schema.ts +7 -0
  229. package/schemas/client/index.ts +10 -0
  230. package/schemas/client/register-client-webshop-request.schema.ts +11 -0
  231. package/schemas/client/register-client-webshop-response.schema.ts +7 -0
  232. package/schemas/client/update-client-for-client-request.schema.ts +9 -0
  233. package/schemas/client/update-client-for-client-response.schema.ts +7 -0
  234. package/schemas/consignment/consignment-distribution-validation.schema.ts +2 -2
  235. package/schemas/consignment/consignment.schema.ts +1 -1
  236. package/schemas/discount-rules/discount-rules-data-for-client.schema.ts +6 -0
  237. package/schemas/discount-rules/discount-rules-for-client.schema.ts +9 -0
  238. package/schemas/discount-rules/discount-rules.schema.ts +2 -2
  239. package/schemas/discount-rules/get-product-discount-price-request.schema.ts +8 -0
  240. package/schemas/discount-rules/get-product-discount-price-response.schema.ts +15 -0
  241. package/schemas/discount-rules/index.ts +8 -0
  242. package/schemas/discount-rules/product-discount-price-data.schema.ts +16 -0
  243. package/schemas/discount-rules/product-discount-price-item.schema.ts +20 -0
  244. package/schemas/discount-rules/product-discount-price-multiplicity-option.schema.ts +23 -0
  245. package/schemas/index.ts +15 -37
  246. package/schemas/money-account/index.ts +3 -0
  247. package/schemas/money-account/money-account-name.schema.ts +4 -0
  248. package/schemas/order/create-cart-request.schema.ts +3 -0
  249. package/schemas/order/create-cart-response.schema.ts +7 -0
  250. package/schemas/order/get-order-for-client-list-request.schema.ts +41 -0
  251. package/schemas/order/get-order-for-client-list-response.schema.ts +7 -0
  252. package/schemas/order/get-order-for-client-request.schema.ts +3 -0
  253. package/schemas/order/get-order-for-client-response.schema.ts +7 -0
  254. package/schemas/order/index.ts +14 -0
  255. package/schemas/order/order-base.schema.ts +54 -0
  256. package/schemas/order/order-extended-for-client-list.schema.ts +7 -0
  257. package/schemas/order/order-extended-for-client.schema.ts +17 -0
  258. package/schemas/order/order-extended.schema.ts +17 -0
  259. package/schemas/order/order-for-client.schema.ts +34 -0
  260. package/schemas/order/order.schema.ts +4 -90
  261. package/schemas/order/update-cart-delivery-request.schema.ts +8 -0
  262. package/schemas/order/update-cart-request.schema.ts +13 -0
  263. package/schemas/order/update-cart-response.schema.ts +7 -0
  264. package/schemas/order-product/active-stepper-positions-for-order-response.schema.ts +6 -0
  265. package/schemas/order-product/get-order-product-for-client-list-request.schema.ts +3 -0
  266. package/schemas/order-product/get-order-product-for-client-list-response.schema.ts +7 -0
  267. package/schemas/order-product/index.ts +11 -0
  268. package/schemas/order-product/order-product-base.schema.ts +30 -0
  269. package/schemas/order-product/order-product-extended-for-client-list.schema.ts +7 -0
  270. package/schemas/order-product/order-product-extended-for-client.schema.ts +8 -0
  271. package/schemas/order-product/order-product-extended.schema.ts +10 -0
  272. package/schemas/order-product/order-product-for-client.schema.ts +18 -0
  273. package/schemas/order-product/order-product-for-distribute.schema.ts +13 -0
  274. package/schemas/order-product/order-product-list.schema.ts +5 -6
  275. package/schemas/order-product/order-product-stepper-position.schema.ts +11 -0
  276. package/schemas/order-product/order-product.schema.ts +12 -83
  277. package/schemas/order-product/set-order-product-quantity-webshop-request.schema.ts +5 -0
  278. package/schemas/order-product/set-order-product-quantity-webshop-response.schema.ts +7 -0
  279. package/schemas/pagination-request.schema.ts +7 -0
  280. package/schemas/pre-order/get-pre-order-list-webshop-request.schema.ts +8 -0
  281. package/schemas/pre-order/get-pre-order-list-webshop-response.schema.ts +6 -0
  282. package/schemas/pre-order/get-pre-order-webshop-response.schema.ts +6 -0
  283. package/schemas/pre-order/index.ts +9 -0
  284. package/schemas/pre-order/pre-order-copy.schema.ts +2 -2
  285. package/schemas/pre-order/pre-order-extended-for-client-list.schema.ts +7 -0
  286. package/schemas/pre-order/pre-order-extended-for-client.schema.ts +13 -0
  287. package/schemas/pre-order/pre-order-for-client.schema.ts +13 -0
  288. package/schemas/pre-order/pre-order-summary.schema.ts +3 -0
  289. package/schemas/pre-order/pre-order.schema.ts +1 -1
  290. package/schemas/pre-order-collection/index.ts +2 -0
  291. package/schemas/pre-order-collection/pre-order-collection-summary-for-client.schema.ts +8 -0
  292. package/schemas/pre-order-collection-item/create-pre-order-collection-item.schema.ts +30 -0
  293. package/schemas/pre-order-collection-item/delete-group-pre-order-collection-item-request.schema.ts +5 -0
  294. package/schemas/pre-order-collection-item/delete-group-pre-order-collection-item-response.schema.ts +7 -0
  295. package/schemas/pre-order-collection-item/delete-group-pre-order-collection-item-result.schema.ts +6 -0
  296. package/schemas/pre-order-collection-item/get-pre-order-collection-item-grouped-list-for-client-response.schema.ts +7 -0
  297. package/schemas/pre-order-collection-item/get-pre-order-collection-item-list-for-client-response.schema.ts +7 -0
  298. package/schemas/pre-order-collection-item/index.ts +18 -0
  299. package/schemas/pre-order-collection-item/matching-product.schema.ts +11 -0
  300. package/schemas/pre-order-collection-item/pre-order-collection-item-base.schema.ts +34 -0
  301. package/schemas/pre-order-collection-item/pre-order-collection-item-catalog-filter-for-client-request.schema.ts +13 -0
  302. package/schemas/pre-order-collection-item/pre-order-collection-item-catalog-for-client-list.schema.ts +7 -0
  303. package/schemas/pre-order-collection-item/pre-order-collection-item-catalog-for-client.schema.ts +9 -0
  304. package/schemas/pre-order-collection-item/pre-order-collection-item-catalog-grouped-for-client-list.schema.ts +7 -0
  305. package/schemas/pre-order-collection-item/pre-order-collection-item-catalog-grouped-for-client.schema.ts +7 -0
  306. package/schemas/pre-order-collection-item/pre-order-collection-item-category.schema.ts +9 -0
  307. package/schemas/pre-order-collection-item/pre-order-collection-item-client-pre-order-product.schema.ts +11 -0
  308. package/schemas/pre-order-collection-item/pre-order-collection-item-extended-list.schema.ts +7 -0
  309. package/schemas/pre-order-collection-item/pre-order-collection-item-extended-with-clients-pre-order-product-list.schema.ts +7 -0
  310. package/schemas/pre-order-collection-item/pre-order-collection-item-extended-with-clients-pre-order-product.schema.ts +6 -0
  311. package/schemas/pre-order-collection-item/pre-order-collection-item-extended.schema.ts +16 -0
  312. package/schemas/pre-order-collection-item/pre-order-collection-item-for-client.schema.ts +32 -0
  313. package/schemas/pre-order-collection-item/pre-order-collection-item-image.schema.ts +5 -0
  314. package/schemas/pre-order-collection-item/pre-order-collection-item.schema.ts +25 -162
  315. package/schemas/pre-order-collection-item/update-pre-order-collection-item.schema.ts +33 -0
  316. package/schemas/pre-order-product/active-stepper-positions-response.schema.ts +6 -0
  317. package/schemas/pre-order-product/create-pre-order-product-webshop-request.schema.ts +14 -0
  318. package/schemas/pre-order-product/create-pre-order-product-webshop-response.schema.ts +7 -0
  319. package/schemas/pre-order-product/create-pre-order-product.schema.ts +16 -0
  320. package/schemas/pre-order-product/get-pre-order-product-extended-list-webshop-response.schema.ts +7 -0
  321. package/schemas/pre-order-product/index.ts +9 -0
  322. package/schemas/pre-order-product/matching-config.schema.ts +10 -0
  323. package/schemas/pre-order-product/pre-order-product-base.schema.ts +25 -0
  324. package/schemas/pre-order-product/pre-order-product-extended-for-client-list.schema.ts +7 -0
  325. package/schemas/pre-order-product/pre-order-product-extended-for-client.schema.ts +13 -0
  326. package/schemas/pre-order-product/pre-order-product-extended-list.schema.ts +7 -0
  327. package/schemas/pre-order-product/pre-order-product-extended.schema.ts +12 -0
  328. package/schemas/pre-order-product/pre-order-product-for-client.schema.ts +22 -0
  329. package/schemas/pre-order-product/pre-order-product-list.schema.ts +7 -0
  330. package/schemas/pre-order-product/pre-order-product-stepper-position.schema.ts +12 -0
  331. package/schemas/pre-order-product/pre-order-product.schema.ts +19 -138
  332. package/schemas/pre-order-product/set-pre-order-product-quantity-webshop-request.schema.ts +5 -0
  333. package/schemas/pre-order-product/set-pre-order-product-quantity-webshop-response.schema.ts +7 -0
  334. package/schemas/pre-order-product/update-pre-order-product-webshop-request.schema.ts +14 -0
  335. package/schemas/pre-order-product/update-pre-order-product-webshop-response.schema.ts +7 -0
  336. package/schemas/pre-order-product/update-pre-order-product.schema.ts +22 -0
  337. package/schemas/product/export-stock-products-request.schema.ts +12 -0
  338. package/schemas/product/export-stock-products-response.schema.ts +5 -0
  339. package/schemas/product/get-product-list-for-client-request.schema.ts +26 -0
  340. package/schemas/product/get-product-list-for-client-response.schema.ts +7 -0
  341. package/schemas/product/get-product-list-request.schema.ts +19 -0
  342. package/schemas/product/get-product-list-response.schema.ts +7 -0
  343. package/schemas/product/index.ts +15 -0
  344. package/schemas/product/product-base.schema.ts +39 -0
  345. package/schemas/product/product-catalog-name.schema.ts +8 -0
  346. package/schemas/product/product-consignment-for-client.schema.ts +6 -0
  347. package/schemas/product/product-discount-price-for-client.schema.ts +6 -0
  348. package/schemas/product/product-extended-for-admin-with-statistic.schema.ts +8 -0
  349. package/schemas/product/product-extended-for-admin.schema.ts +9 -0
  350. package/schemas/product/product-extended-for-client.schema.ts +31 -0
  351. package/schemas/product/product-extended.schema.ts +15 -0
  352. package/schemas/product/product-for-client.schema.ts +23 -0
  353. package/schemas/product/product-image-for-client.schema.ts +5 -0
  354. package/schemas/product/product-list-extended-for-client.schema.ts +7 -0
  355. package/schemas/product/product-list.schema.ts +2 -6
  356. package/schemas/product/product.schema.ts +6 -152
  357. package/schemas/transaction/get-transaction-list-for-client-request.schema.ts +28 -0
  358. package/schemas/transaction/get-transaction-list-for-client-response.schema.ts +7 -0
  359. package/schemas/transaction/index.ts +7 -0
  360. package/schemas/transaction/transaction-base.schema.ts +27 -0
  361. package/schemas/transaction/transaction-extended-for-client-list.schema.ts +7 -0
  362. package/schemas/transaction/transaction-extended-for-client.schema.ts +10 -0
  363. package/schemas/transaction/transaction-extended.schema.ts +10 -0
  364. package/schemas/transaction/transaction-for-client.schema.ts +17 -0
  365. package/schemas/transaction/transaction-list.schema.ts +5 -6
  366. package/schemas/transaction/transaction.schema.ts +6 -43
  367. package/schemas/user/index.ts +3 -0
  368. package/schemas/user/user-contact-for-client.schema.ts +8 -0
  369. package/schemas/user/user-name.schema.ts +4 -0
  370. package/schemas/write-off/create-write-off-from-order-for-client-request.schema.ts +9 -0
  371. package/schemas/write-off/create-write-off-from-order-for-client-response.schema.ts +7 -0
  372. package/schemas/write-off/get-write-off-list-by-order-for-client-request.schema.ts +3 -0
  373. package/schemas/write-off/get-write-off-list-by-order-for-client-response.schema.ts +7 -0
  374. package/schemas/write-off/index.ts +11 -0
  375. package/schemas/write-off/write-off-for-client.schema.ts +26 -0
  376. package/schemas/write-off/write-off-order-product-for-client.schema.ts +6 -0
  377. package/schemas/write-off/write-off.schema.ts +4 -4
@@ -30,6 +30,7 @@ __exportStar(require("./detach-user-from-client.command"), exports);
30
30
  //webshop
31
31
  __exportStar(require("./webshop/register-client-webshop.command"), exports);
32
32
  __exportStar(require("./webshop/update-client-for-client.command"), exports);
33
+ __exportStar(require("./webshop/get-client-me-webshop.query"), exports);
33
34
  //marking
34
35
  __exportStar(require("./marking/create-client-marking.command"), exports);
35
36
  __exportStar(require("./marking/update-client-marking.command"), exports);
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetClientMeWebshopContractQuery = void 0;
4
+ const schemas_1 = require("../../../schemas");
5
+ var GetClientMeWebshopContractQuery;
6
+ (function (GetClientMeWebshopContractQuery) {
7
+ GetClientMeWebshopContractQuery.ResponseSchema = schemas_1.GetClientMeWebshopResponseSchema;
8
+ })(GetClientMeWebshopContractQuery || (exports.GetClientMeWebshopContractQuery = GetClientMeWebshopContractQuery = {}));
@@ -1,23 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.RegisterClientWebshopContractCommand = void 0;
4
- const zod_1 = require("zod");
5
4
  const schemas_1 = require("../../../schemas");
6
- const client_type_enum_1 = require("../../../enum/client-type.enum");
7
- const RegisterClientWebshopRequestSchema = zod_1.z.object({
8
- name: zod_1.z.string(),
9
- password: zod_1.z.string(),
10
- contactName: zod_1.z.string().nullable(),
11
- phone: zod_1.z.string(),
12
- email: zod_1.z.email().toLowerCase(),
13
- type: zod_1.z.nativeEnum(client_type_enum_1.ClientTypeEnum),
14
- });
15
- const RegisterClientWebshopResponseSchema = zod_1.z.object({
16
- message: zod_1.z.string().optional(),
17
- data: schemas_1.ClientSchema.nullable(),
18
- });
19
5
  var RegisterClientWebshopContractCommand;
20
6
  (function (RegisterClientWebshopContractCommand) {
21
- RegisterClientWebshopContractCommand.RequestSchema = RegisterClientWebshopRequestSchema;
22
- RegisterClientWebshopContractCommand.ResponseSchema = RegisterClientWebshopResponseSchema;
7
+ RegisterClientWebshopContractCommand.RequestSchema = schemas_1.RegisterClientWebshopRequestSchema;
8
+ RegisterClientWebshopContractCommand.ResponseSchema = schemas_1.RegisterClientWebshopResponseSchema;
23
9
  })(RegisterClientWebshopContractCommand || (exports.RegisterClientWebshopContractCommand = RegisterClientWebshopContractCommand = {}));
@@ -1,21 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UpdateClientForClientContractCommand = void 0;
4
- const zod_1 = require("zod");
5
4
  const schemas_1 = require("../../../schemas");
6
- const UpdateClientForClientRequestSchema = zod_1.z.object({
7
- name: zod_1.z.string(),
8
- contactName: zod_1.z.string().nullable(),
9
- phone: zod_1.z.string(),
10
- email: zod_1.z.email().toLowerCase(),
11
- alwaysRequiresDelivery: zod_1.z.boolean(),
12
- });
13
- const UpdateClientForClientResponseSchema = zod_1.z.object({
14
- message: zod_1.z.string().optional(),
15
- data: schemas_1.ClientSchema,
16
- });
17
5
  var UpdateClientForClientContractCommand;
18
6
  (function (UpdateClientForClientContractCommand) {
19
- UpdateClientForClientContractCommand.RequestSchema = UpdateClientForClientRequestSchema;
20
- UpdateClientForClientContractCommand.ResponseSchema = UpdateClientForClientResponseSchema;
7
+ UpdateClientForClientContractCommand.RequestSchema = schemas_1.UpdateClientForClientRequestSchema;
8
+ UpdateClientForClientContractCommand.ResponseSchema = schemas_1.UpdateClientForClientResponseSchema;
21
9
  })(UpdateClientForClientContractCommand || (exports.UpdateClientForClientContractCommand = UpdateClientForClientContractCommand = {}));
@@ -1,75 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetProductDiscountPriceContractQuery = void 0;
4
- const zod_1 = require("zod");
5
- const enum_1 = require("../../enum");
6
4
  const schemas_1 = require("../../schemas");
7
- const money_schema_1 = require("../../schemas/money.schema");
8
- const GetProductDiscountPriceRequestSchema = zod_1.z.object({
9
- productUUID: zod_1.z.uuid(),
10
- clientUUID: zod_1.z.preprocess(val => {
11
- return val === 'null' ? null : val;
12
- }, zod_1.z.uuid().nullable().optional()),
13
- });
14
- /**
15
- * Цена товара по одному правилу — для показа вариантов.
16
- *
17
- * `discountValueData` описывает, чем правило обернулось для этого товара, а не как оно настроено:
18
- * у правила от себестоимости это готовая цена, и самой наценки здесь нет.
19
- *
20
- * В списки попадают только варианты, которые действительно снижают цену: правило, оставляющее базу
21
- * как есть, выбором не является.
22
- */
23
- const ProductDiscountPriceItemSchema = zod_1.z.object({
24
- discountRulesUUID: zod_1.z.string(),
25
- type: zod_1.z.nativeEnum(enum_1.DiscountRulesTypeEnum),
26
- discountValueData: schemas_1.discountPriceOutcomeSchema,
27
- priceWithDiscount: money_schema_1.MoneySchema,
28
- });
29
- /**
30
- * Готовые цены товара для клиента: то, что нужно при работе с товаром, а не при настройке правил.
31
- *
32
- * Считает бэк тем же движком, что и для витрины, — панель формулу скидок не повторяет и
33
- * себестоимость не получает. Настройка правил живёт отдельно, в `GetDiscountRulesAllContractQuery`.
34
- *
35
- * `null` в ценах со скидкой означает «скидка неприменима», а не «ноль».
36
- */
37
- const GetProductDiscountPriceResponseSchema = zod_1.z.object({
38
- message: zod_1.z.string().optional(),
39
- data: zod_1.z.object({
40
- productUUID: zod_1.z.string(),
41
- price: money_schema_1.MoneySchema,
42
- priceWithBestDiscount: money_schema_1.MoneySchema.nullable(),
43
- multiplicityOptions: zod_1.z
44
- .object({
45
- uuid: zod_1.z.string(),
46
- optionPrice: money_schema_1.MoneySchema.nullable(),
47
- optionPriceWithDiscount: money_schema_1.MoneySchema.nullable(),
48
- isDiscountApplicable: zod_1.z.boolean(),
49
- /**
50
- * Варианты по этой фасовке: те же правила, но посчитанные от её цены.
51
- *
52
- * Список свой у каждой кратности, потому что база у них разная — у правила нет
53
- * одной цены на товар, пока не выбрана форма отгрузки. Пустой список означает
54
- * «выбирать нечего»: скидки к этой кратности запрещены продавцом либо ни одно
55
- * правило её цену не снижает.
56
- *
57
- * Порядок элементов не отсортирован по цене — он унаследован от сортировки правил
58
- * товара, а база у фасовки другая. Лучшую цену берите из `optionPriceWithDiscount`,
59
- * а не из первого элемента.
60
- */
61
- discountDataList: ProductDiscountPriceItemSchema.array(),
62
- })
63
- .array(),
64
- /**
65
- * Варианты по базовой цене товара. Как и у фасовок, порядок не гарантирован: лучшую цену
66
- * отдаёт `priceWithBestDiscount`.
67
- */
68
- discountDataList: ProductDiscountPriceItemSchema.array(),
69
- }),
70
- });
71
5
  var GetProductDiscountPriceContractQuery;
72
6
  (function (GetProductDiscountPriceContractQuery) {
73
- GetProductDiscountPriceContractQuery.RequestSchema = GetProductDiscountPriceRequestSchema;
74
- GetProductDiscountPriceContractQuery.ResponseSchema = GetProductDiscountPriceResponseSchema;
7
+ GetProductDiscountPriceContractQuery.RequestSchema = schemas_1.GetProductDiscountPriceRequestSchema;
8
+ GetProductDiscountPriceContractQuery.ResponseSchema = schemas_1.GetProductDiscountPriceResponseSchema;
75
9
  })(GetProductDiscountPriceContractQuery || (exports.GetProductDiscountPriceContractQuery = GetProductDiscountPriceContractQuery = {}));
@@ -1,15 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CreateCartContractCommand = void 0;
4
- const zod_1 = require("zod");
5
4
  const schemas_1 = require("../../../schemas");
6
- const CreateCartRequestSchema = zod_1.z.object({});
7
- const CreateCartResponseSchema = zod_1.z.object({
8
- message: zod_1.z.string().optional(),
9
- data: schemas_1.OrderForClientSchema,
10
- });
11
5
  var CreateCartContractCommand;
12
6
  (function (CreateCartContractCommand) {
13
- CreateCartContractCommand.RequestSchema = CreateCartRequestSchema;
14
- CreateCartContractCommand.ResponseSchema = CreateCartResponseSchema;
7
+ CreateCartContractCommand.RequestSchema = schemas_1.CreateCartRequestSchema;
8
+ CreateCartContractCommand.ResponseSchema = schemas_1.CreateCartResponseSchema;
15
9
  })(CreateCartContractCommand || (exports.CreateCartContractCommand = CreateCartContractCommand = {}));
@@ -1,15 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetOrderForClientContractQuery = void 0;
4
- const zod_1 = require("zod");
5
4
  const schemas_1 = require("../../../schemas");
6
- const GetOrderForClientRequestSchema = zod_1.z.object({});
7
- const GetOrderForClientResponseSchema = zod_1.z.object({
8
- message: zod_1.z.string().optional(),
9
- data: schemas_1.OrderExtendedForClientSchema.nullable(),
10
- });
11
5
  var GetOrderForClientContractQuery;
12
6
  (function (GetOrderForClientContractQuery) {
13
- GetOrderForClientContractQuery.RequestSchema = GetOrderForClientRequestSchema;
14
- GetOrderForClientContractQuery.ResponseSchema = GetOrderForClientResponseSchema;
7
+ GetOrderForClientContractQuery.RequestSchema = schemas_1.GetOrderForClientRequestSchema;
8
+ GetOrderForClientContractQuery.ResponseSchema = schemas_1.GetOrderForClientResponseSchema;
15
9
  })(GetOrderForClientContractQuery || (exports.GetOrderForClientContractQuery = GetOrderForClientContractQuery = {}));
@@ -1,53 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetOrderForClientListContractQuery = void 0;
4
- const zod_1 = require("zod");
5
4
  const schemas_1 = require("../../../schemas");
6
- const date_helper_1 = require("../../../helpers/date.helper");
7
- const order_status_enum_1 = require("../../../enum/order-status.enum");
8
- const enum_1 = require("../../../enum");
9
- const GetOrderForClientListRequestSchema = zod_1.z
10
- .object({
11
- page: zod_1.z.coerce.number().default(1),
12
- count: zod_1.z.coerce.number().default(10),
13
- startDate: zod_1.z.coerce
14
- .date()
15
- .optional()
16
- .transform(val => (val ? (0, date_helper_1.setStartDay)(val) : val)),
17
- endDate: zod_1.z.coerce
18
- .date()
19
- .optional()
20
- .transform(val => (val ? (0, date_helper_1.setEndDay)(val) : val)),
21
- isPaid: zod_1.z.coerce.boolean().optional(),
22
- statuses: zod_1.z
23
- .nativeEnum(order_status_enum_1.OrderStatusEnum)
24
- .array()
25
- .optional()
26
- .transform(arr => (arr && arr.length === 0 ? enum_1.OrderWebshopAvailableStatusList : (arr !== null && arr !== void 0 ? arr : enum_1.OrderWebshopAvailableStatusList)))
27
- .default(enum_1.OrderWebshopAvailableStatusList)
28
- .refine(arr => arr.every(s => enum_1.OrderWebshopAvailableStatusList.includes(s)), {
29
- message: 'validation.statusNotAllowedWebshop',
30
- }),
31
- })
32
- .refine(value => {
33
- const { startDate, endDate } = value;
34
- if (startDate && endDate) {
35
- return (0, date_helper_1.dateRangeCheck)(startDate, endDate);
36
- }
37
- return true;
38
- }, {
39
- message: 'validation.dateRange',
40
- path: ['endDate', 'startDate'],
41
- });
42
- const GetOrderForClientListResponseSchema = zod_1.z.object({
43
- message: zod_1.z.string().optional(),
44
- data: zod_1.z.object({
45
- orderList: schemas_1.OrderExtendedForClientSchema.array(),
46
- total: zod_1.z.number(),
47
- }),
48
- });
49
5
  var GetOrderForClientListContractQuery;
50
6
  (function (GetOrderForClientListContractQuery) {
51
- GetOrderForClientListContractQuery.RequestSchema = GetOrderForClientListRequestSchema;
52
- GetOrderForClientListContractQuery.ResponseSchema = GetOrderForClientListResponseSchema;
7
+ GetOrderForClientListContractQuery.RequestSchema = schemas_1.GetOrderForClientListRequestSchema;
8
+ GetOrderForClientListContractQuery.ResponseSchema = schemas_1.GetOrderForClientListResponseSchema;
53
9
  })(GetOrderForClientListContractQuery || (exports.GetOrderForClientListContractQuery = GetOrderForClientListContractQuery = {}));
@@ -1,32 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UpdateCartContractCommand = void 0;
4
- const zod_1 = require("zod");
5
4
  const schemas_1 = require("../../../schemas");
6
- const UpdateCartRequestSchema = zod_1.z.object({
7
- clientComment: zod_1.z.string().nullable().optional().default(null),
8
- branchUUID: zod_1.z.uuid().optional().nullable().default(null),
9
- // Дата выдачи/доставки заказа — одна для самовывоза и доставки. Относится к товару в наличии:
10
- // заказы с товаром в пути после оформления получают дату прихода. Имеет приоритет над
11
- // устаревшим `delivery.deliveryDate`.
12
- plannedShipmentDate: schemas_1.CalendarDaySchema.nullable().optional(),
13
- delivery: zod_1.z
14
- .object({
15
- /** @deprecated Используйте `plannedShipmentDate` — единую дату для самовывоза и доставки. */
16
- deliveryDate: zod_1.z.coerce.date().optional().nullable().default(null),
17
- address: zod_1.z.string().nullable().optional().default(null),
18
- time: zod_1.z.string().nullable().optional().default(null),
19
- })
20
- .optional()
21
- .nullable()
22
- .default(null),
23
- });
24
- const UpdateCartResponseSchema = zod_1.z.object({
25
- message: zod_1.z.string().optional(),
26
- data: schemas_1.OrderForClientSchema,
27
- });
28
5
  var UpdateCartContractCommand;
29
6
  (function (UpdateCartContractCommand) {
30
- UpdateCartContractCommand.RequestSchema = UpdateCartRequestSchema;
31
- UpdateCartContractCommand.ResponseSchema = UpdateCartResponseSchema;
7
+ UpdateCartContractCommand.RequestSchema = schemas_1.UpdateCartRequestSchema;
8
+ UpdateCartContractCommand.ResponseSchema = schemas_1.UpdateCartResponseSchema;
32
9
  })(UpdateCartContractCommand || (exports.UpdateCartContractCommand = UpdateCartContractCommand = {}));
@@ -1,15 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetOrderProductForClientListContractQuery = void 0;
4
- const zod_1 = require("zod");
5
4
  const schemas_1 = require("../../../schemas");
6
- const GetOrderProductForClientListRequestSchema = zod_1.z.object({});
7
- const GetOrderProductForClientListResponseSchema = zod_1.z.object({
8
- message: zod_1.z.string().optional(),
9
- data: schemas_1.OrderProductForClientListSchema,
10
- });
11
5
  var GetOrderProductForClientListContractQuery;
12
6
  (function (GetOrderProductForClientListContractQuery) {
13
- GetOrderProductForClientListContractQuery.RequestSchema = GetOrderProductForClientListRequestSchema;
14
- GetOrderProductForClientListContractQuery.ResponseSchema = GetOrderProductForClientListResponseSchema;
7
+ GetOrderProductForClientListContractQuery.RequestSchema = schemas_1.GetOrderProductForClientListRequestSchema;
8
+ GetOrderProductForClientListContractQuery.ResponseSchema = schemas_1.GetOrderProductForClientListResponseSchema;
15
9
  })(GetOrderProductForClientListContractQuery || (exports.GetOrderProductForClientListContractQuery = GetOrderProductForClientListContractQuery = {}));
@@ -1,19 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetPreOrderListWebshopContractCommand = void 0;
4
- const zod_1 = require("zod");
5
- const enum_1 = require("../../../enum");
6
- const schemas_1 = require("../../../schemas");
7
- const GetPreOrderListWebshopRequestSchema = zod_1.z.object({
8
- page: zod_1.z.coerce.number().optional().default(1),
9
- count: zod_1.z.coerce.number().optional().default(10),
10
- statuses: zod_1.z.array(zod_1.z.nativeEnum(enum_1.PreOrderStatusEnum)).optional(),
11
- });
12
- const GetPreOrderListResponseSchema = zod_1.z.object({
13
- data: schemas_1.PreOrderListSchema,
14
- });
15
- var GetPreOrderListWebshopContractCommand;
16
- (function (GetPreOrderListWebshopContractCommand) {
17
- GetPreOrderListWebshopContractCommand.RequestSchema = GetPreOrderListWebshopRequestSchema;
18
- GetPreOrderListWebshopContractCommand.ResponseSchema = GetPreOrderListResponseSchema;
19
- })(GetPreOrderListWebshopContractCommand || (exports.GetPreOrderListWebshopContractCommand = GetPreOrderListWebshopContractCommand = {}));
4
+ var get_pre_order_list_webshop_query_1 = require("./get-pre-order-list-webshop.query");
5
+ Object.defineProperty(exports, "GetPreOrderListWebshopContractCommand", { enumerable: true, get: function () { return get_pre_order_list_webshop_query_1.GetPreOrderListWebshopContractCommand; } });
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetPreOrderListWebshopContractCommand = void 0;
4
+ const schemas_1 = require("../../../schemas");
5
+ var GetPreOrderListWebshopContractCommand;
6
+ (function (GetPreOrderListWebshopContractCommand) {
7
+ GetPreOrderListWebshopContractCommand.RequestSchema = schemas_1.GetPreOrderListWebshopRequestSchema;
8
+ GetPreOrderListWebshopContractCommand.ResponseSchema = schemas_1.GetPreOrderListWebshopResponseSchema;
9
+ })(GetPreOrderListWebshopContractCommand || (exports.GetPreOrderListWebshopContractCommand = GetPreOrderListWebshopContractCommand = {}));
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetPreOrderWebshopContractQuery = void 0;
4
+ const schemas_1 = require("../../../schemas");
5
+ var GetPreOrderWebshopContractQuery;
6
+ (function (GetPreOrderWebshopContractQuery) {
7
+ GetPreOrderWebshopContractQuery.ResponseSchema = schemas_1.GetPreOrderWebshopResponseSchema;
8
+ })(GetPreOrderWebshopContractQuery || (exports.GetPreOrderWebshopContractQuery = GetPreOrderWebshopContractQuery = {}));
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./update-pre-order-webshop.command"), exports);
18
18
  __exportStar(require("./create-pre-order-webshop.command"), exports);
19
- __exportStar(require("./get-pre-order-list-webshop.command"), exports);
19
+ __exportStar(require("./get-pre-order-list-webshop.query"), exports);
20
20
  __exportStar(require("./delete-pre-order-webshop.command"), exports);
21
21
  __exportStar(require("./checkout-pre-order-webshop.command"), exports);
22
+ __exportStar(require("./get-pre-order-webshop.query"), exports);
@@ -1,19 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DeleteGroupPreOrderCollectionItemContractCommand = void 0;
4
- const zod_1 = require("zod");
5
- const DeleteGroupPreOrderCollectionItemRequestSchema = zod_1.z.object({
6
- preOrderCollectionItemUUIDs: zod_1.z.array(zod_1.z.string()),
7
- });
8
- const DeleteGroupPreOrderCollectionItemResponseSchema = zod_1.z.object({
9
- message: zod_1.z.string().optional(),
10
- data: zod_1.z.object({
11
- success: zod_1.z.boolean(),
12
- missedItems: zod_1.z.array(zod_1.z.string()).optional(),
13
- }),
14
- });
4
+ const schemas_1 = require("../../schemas");
15
5
  var DeleteGroupPreOrderCollectionItemContractCommand;
16
6
  (function (DeleteGroupPreOrderCollectionItemContractCommand) {
17
- DeleteGroupPreOrderCollectionItemContractCommand.RequestSchema = DeleteGroupPreOrderCollectionItemRequestSchema;
18
- DeleteGroupPreOrderCollectionItemContractCommand.ResponseSchema = DeleteGroupPreOrderCollectionItemResponseSchema;
7
+ DeleteGroupPreOrderCollectionItemContractCommand.RequestSchema = schemas_1.DeleteGroupPreOrderCollectionItemRequestSchema;
8
+ DeleteGroupPreOrderCollectionItemContractCommand.ResponseSchema = schemas_1.DeleteGroupPreOrderCollectionItemResponseSchema;
19
9
  })(DeleteGroupPreOrderCollectionItemContractCommand || (exports.DeleteGroupPreOrderCollectionItemContractCommand = DeleteGroupPreOrderCollectionItemContractCommand = {}));
@@ -1,25 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetPreOrderCollectionItemGroupedListForClientContractQuery = void 0;
4
- const zod_1 = require("zod");
5
4
  const schemas_1 = require("../../schemas");
6
- const GetPreOrderCollectionItemGroupedListForClientRequestSchema = zod_1.z.object({
7
- sizes: zod_1.z.array(zod_1.z.string()).optional(),
8
- colors: zod_1.z.array(zod_1.z.string()).optional(),
9
- preOrderCollectionsUUID: zod_1.z.array(zod_1.z.string()).optional(),
10
- categoriesUUID: zod_1.z.array(zod_1.z.string()).optional(),
11
- growers: zod_1.z.array(zod_1.z.string()).optional(),
12
- countries: zod_1.z.array(zod_1.z.string()).optional(),
13
- searchQuery: zod_1.z.string().optional(),
14
- page: zod_1.z.coerce.number().optional().default(1),
15
- count: zod_1.z.coerce.number().optional().default(10),
16
- });
17
- const GetPreOrderCollectionItemGroupedListForClientResponseSchema = zod_1.z.object({
18
- message: zod_1.z.string().optional(),
19
- data: schemas_1.PreOrderCollectionItemGroupedListSchema,
20
- });
21
5
  var GetPreOrderCollectionItemGroupedListForClientContractQuery;
22
6
  (function (GetPreOrderCollectionItemGroupedListForClientContractQuery) {
23
- GetPreOrderCollectionItemGroupedListForClientContractQuery.RequestSchema = GetPreOrderCollectionItemGroupedListForClientRequestSchema;
24
- GetPreOrderCollectionItemGroupedListForClientContractQuery.ResponseSchema = GetPreOrderCollectionItemGroupedListForClientResponseSchema;
7
+ GetPreOrderCollectionItemGroupedListForClientContractQuery.RequestSchema = schemas_1.PreOrderCollectionItemCatalogFilterForClientRequestSchema;
8
+ GetPreOrderCollectionItemGroupedListForClientContractQuery.ResponseSchema = schemas_1.GetPreOrderCollectionItemGroupedListForClientResponseSchema;
25
9
  })(GetPreOrderCollectionItemGroupedListForClientContractQuery || (exports.GetPreOrderCollectionItemGroupedListForClientContractQuery = GetPreOrderCollectionItemGroupedListForClientContractQuery = {}));
@@ -1,25 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetPreOrderCollectionItemListForClientContractQuery = void 0;
4
- const zod_1 = require("zod");
5
4
  const schemas_1 = require("../../schemas");
6
- const GetPreOrderCollectionItemListForClientRequestSchema = zod_1.z.object({
7
- sizes: zod_1.z.array(zod_1.z.string()).optional(),
8
- colors: zod_1.z.array(zod_1.z.string()).optional(),
9
- preOrderCollectionsUUID: zod_1.z.array(zod_1.z.string()).optional(),
10
- categoriesUUID: zod_1.z.array(zod_1.z.string()).optional(),
11
- growers: zod_1.z.array(zod_1.z.string()).optional(),
12
- countries: zod_1.z.array(zod_1.z.string()).optional(),
13
- searchQuery: zod_1.z.string().optional(),
14
- page: zod_1.z.coerce.number().optional().default(1),
15
- count: zod_1.z.coerce.number().optional().default(10),
16
- });
17
- const GetPreOrderCollectionItemListForClientResponseSchema = zod_1.z.object({
18
- message: zod_1.z.string().optional(),
19
- data: schemas_1.PreOrderCollectionItemExtendedWithPreOrderCollectionListSchema,
20
- });
21
5
  var GetPreOrderCollectionItemListForClientContractQuery;
22
6
  (function (GetPreOrderCollectionItemListForClientContractQuery) {
23
- GetPreOrderCollectionItemListForClientContractQuery.RequestSchema = GetPreOrderCollectionItemListForClientRequestSchema;
24
- GetPreOrderCollectionItemListForClientContractQuery.ResponseSchema = GetPreOrderCollectionItemListForClientResponseSchema;
7
+ GetPreOrderCollectionItemListForClientContractQuery.RequestSchema = schemas_1.PreOrderCollectionItemCatalogFilterForClientRequestSchema;
8
+ GetPreOrderCollectionItemListForClientContractQuery.ResponseSchema = schemas_1.GetPreOrderCollectionItemListForClientResponseSchema;
25
9
  })(GetPreOrderCollectionItemListForClientContractQuery || (exports.GetPreOrderCollectionItemListForClientContractQuery = GetPreOrderCollectionItemListForClientContractQuery = {}));
@@ -1,14 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CreatePreOrderProductWebshopContractCommand = void 0;
4
- const zod_1 = require("zod");
5
4
  const schemas_1 = require("../../schemas");
6
- const CreatePreOrderProductWebshopResponseSchema = zod_1.z.object({
7
- message: zod_1.z.string().optional(),
8
- data: schemas_1.PreOrderProductSchema,
9
- });
10
5
  var CreatePreOrderProductWebshopContractCommand;
11
6
  (function (CreatePreOrderProductWebshopContractCommand) {
12
- CreatePreOrderProductWebshopContractCommand.RequestSchema = schemas_1.CreatePreOrderProductWebshopSchema;
13
- CreatePreOrderProductWebshopContractCommand.ResponseSchema = CreatePreOrderProductWebshopResponseSchema;
7
+ CreatePreOrderProductWebshopContractCommand.RequestSchema = schemas_1.CreatePreOrderProductWebshopRequestSchema;
8
+ CreatePreOrderProductWebshopContractCommand.ResponseSchema = schemas_1.CreatePreOrderProductWebshopResponseSchema;
14
9
  })(CreatePreOrderProductWebshopContractCommand || (exports.CreatePreOrderProductWebshopContractCommand = CreatePreOrderProductWebshopContractCommand = {}));
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetPreOrderProductExtendedListWebshopContractQuery = void 0;
4
+ const schemas_1 = require("../../schemas");
5
+ var GetPreOrderProductExtendedListWebshopContractQuery;
6
+ (function (GetPreOrderProductExtendedListWebshopContractQuery) {
7
+ GetPreOrderProductExtendedListWebshopContractQuery.RequestSchema = schemas_1.PaginationRequestSchema;
8
+ GetPreOrderProductExtendedListWebshopContractQuery.ResponseSchema = schemas_1.GetPreOrderProductExtendedListWebshopResponseSchema;
9
+ })(GetPreOrderProductExtendedListWebshopContractQuery || (exports.GetPreOrderProductExtendedListWebshopContractQuery = GetPreOrderProductExtendedListWebshopContractQuery = {}));
@@ -27,6 +27,7 @@ __exportStar(require("./delete-pre-order-product-webshop.command"), exports);
27
27
  __exportStar(require("./update-pre-order-product-webshop.command"), exports);
28
28
  __exportStar(require("./get-pre-order-product-list.query"), exports);
29
29
  __exportStar(require("./get-pre-order-product-extended-list.query"), exports);
30
+ __exportStar(require("./get-pre-order-product-extended-list-webshop.query"), exports);
30
31
  __exportStar(require("./get-active-stepper-positions.query"), exports);
31
32
  __exportStar(require("./create-manually-pre-order-product-for-standing-order.command"), exports);
32
33
  __exportStar(require("./get-pre-order-products-by-pre-order-list.command"), exports);
@@ -1,14 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UpdatePreOrderProductWebshopContractCommand = void 0;
4
- const zod_1 = require("zod");
5
4
  const schemas_1 = require("../../schemas");
6
- const UpdatePreOrderProductWebshopResponseSchema = zod_1.z.object({
7
- message: zod_1.z.string().optional(),
8
- data: schemas_1.PreOrderProductSchema,
9
- });
10
5
  var UpdatePreOrderProductWebshopContractCommand;
11
6
  (function (UpdatePreOrderProductWebshopContractCommand) {
12
- UpdatePreOrderProductWebshopContractCommand.RequestSchema = schemas_1.UpdatePreOrderProductWebshopSchema;
13
- UpdatePreOrderProductWebshopContractCommand.ResponseSchema = UpdatePreOrderProductWebshopResponseSchema;
7
+ UpdatePreOrderProductWebshopContractCommand.RequestSchema = schemas_1.UpdatePreOrderProductWebshopRequestSchema;
8
+ UpdatePreOrderProductWebshopContractCommand.ResponseSchema = schemas_1.UpdatePreOrderProductWebshopResponseSchema;
14
9
  })(UpdatePreOrderProductWebshopContractCommand || (exports.UpdatePreOrderProductWebshopContractCommand = UpdatePreOrderProductWebshopContractCommand = {}));
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ExportStockProductsContractQuery = void 0;
4
+ const export_stock_products_request_schema_1 = require("../../schemas/product/export-stock-products-request.schema");
5
+ const export_stock_products_response_schema_1 = require("../../schemas/product/export-stock-products-response.schema");
6
+ var ExportStockProductsContractQuery;
7
+ (function (ExportStockProductsContractQuery) {
8
+ ExportStockProductsContractQuery.MAX_PRODUCTS = 10000;
9
+ ExportStockProductsContractQuery.RequestSchema = export_stock_products_request_schema_1.ExportStockProductsRequestSchema;
10
+ ExportStockProductsContractQuery.ResponseSchema = export_stock_products_response_schema_1.ExportStockProductsResponseSchema;
11
+ })(ExportStockProductsContractQuery || (exports.ExportStockProductsContractQuery = ExportStockProductsContractQuery = {}));
@@ -1,31 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetProductListContractQuery = void 0;
4
- const zod_1 = require("zod");
5
- const enum_1 = require("../../enum");
6
- const schemas_1 = require("../../schemas");
7
- const GetProductListRequestSchema = zod_1.z.object({
8
- page: zod_1.z.coerce.number().optional().default(1),
9
- count: zod_1.z.coerce.number().optional().default(10),
10
- stock: zod_1.z.coerce.boolean().optional(),
11
- consignmentUUID: zod_1.z.string().optional(),
12
- searchQuery: zod_1.z.string().optional(),
13
- onlyAvailable: zod_1.z.coerce.boolean().optional(),
14
- categoryUUID: zod_1.z.string().optional(),
15
- typeUUID: zod_1.z.string().optional(),
16
- grower: zod_1.z.string().optional(),
17
- country: zod_1.z.string().optional(),
18
- color: zod_1.z.string().optional(),
19
- size: zod_1.z.string().optional(),
20
- deliveryDates: zod_1.z.array(zod_1.z.coerce.date()).optional(),
21
- marks: zod_1.z.enum(enum_1.ProductMarkEnum).array().optional(),
22
- });
23
- const GetProductListResponseSchema = zod_1.z.object({
24
- message: zod_1.z.string().optional(),
25
- data: schemas_1.ProductListSchema,
26
- });
4
+ const get_product_list_request_schema_1 = require("../../schemas/product/get-product-list-request.schema");
5
+ const get_product_list_response_schema_1 = require("../../schemas/product/get-product-list-response.schema");
27
6
  var GetProductListContractQuery;
28
7
  (function (GetProductListContractQuery) {
29
- GetProductListContractQuery.RequestSchema = GetProductListRequestSchema;
30
- GetProductListContractQuery.ResponseSchema = GetProductListResponseSchema;
8
+ GetProductListContractQuery.RequestSchema = get_product_list_request_schema_1.GetProductListRequestSchema;
9
+ GetProductListContractQuery.ResponseSchema = get_product_list_response_schema_1.GetProductListResponseSchema;
31
10
  })(GetProductListContractQuery || (exports.GetProductListContractQuery = GetProductListContractQuery = {}));
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./get-product.query"), exports);
18
18
  __exportStar(require("./get-product-list.query"), exports);
19
+ __exportStar(require("./export-stock-products.query"), exports);
19
20
  __exportStar(require("./create-product.command"), exports);
20
21
  __exportStar(require("./update-product.command"), exports);
21
22
  __exportStar(require("./delete-product.command"), exports);
@@ -1,38 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetProductListForClientContractQuery = void 0;
4
- const zod_1 = require("zod");
5
- const enum_1 = require("../../../enum");
6
4
  const schemas_1 = require("../../../schemas");
7
- const GetProductListForClientRequestSchema = zod_1.z.object({
8
- page: zod_1.z.string().transform(val => Number(val) || 1),
9
- count: zod_1.z.string().transform(val => Number(val) || 10),
10
- stock: zod_1.z
11
- .string()
12
- .transform(val => (val === 'true' ? true : val === 'false' ? false : undefined))
13
- .optional(),
14
- deliveryDates: zod_1.z.coerce.date().array().optional(),
15
- sizes: zod_1.z.string().array().optional(),
16
- colors: zod_1.z.string().array().optional(),
17
- growers: zod_1.z.string().array().optional(),
18
- countries: zod_1.z.string().array().optional(),
19
- categoryUUID: zod_1.z.string().optional(),
20
- typeUUID: zod_1.z.string().optional(),
21
- searchQuery: zod_1.z.string().optional(),
22
- marks: zod_1.z.nativeEnum(enum_1.ProductMarkEnum).array().optional(),
23
- // Без `sortBy` порядок остаётся прежним — по категории, названию и размеру. Сортировка по цене
24
- // идёт по базовому прайсу, скидки клиента её не двигают: см. ProductClientSortByEnum.
25
- sortBy: zod_1.z.nativeEnum(enum_1.ProductClientSortByEnum).optional(),
26
- // Без `.default()`: он уезжает в `_output`, а значит и в опубликованный `Request`, делая поле
27
- // обязательным для клиентов. Отсутствующее направление билдер и так читает как ASC.
28
- sortOrder: zod_1.z.nativeEnum(enum_1.OrderByEnum).optional(),
29
- });
30
- const GetProductListForClientResponseSchema = zod_1.z.object({
31
- message: zod_1.z.string().optional(),
32
- data: schemas_1.ProductListExtendedForClientSchema,
33
- });
34
5
  var GetProductListForClientContractQuery;
35
6
  (function (GetProductListForClientContractQuery) {
36
- GetProductListForClientContractQuery.RequestSchema = GetProductListForClientRequestSchema;
37
- GetProductListForClientContractQuery.ResponseSchema = GetProductListForClientResponseSchema;
7
+ GetProductListForClientContractQuery.RequestSchema = schemas_1.GetProductListForClientRequestSchema;
8
+ GetProductListForClientContractQuery.ResponseSchema = schemas_1.GetProductListForClientResponseSchema;
38
9
  })(GetProductListForClientContractQuery || (exports.GetProductListForClientContractQuery = GetProductListForClientContractQuery = {}));
@@ -1,37 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetTransactionListForClientContractQuery = void 0;
4
- const zod_1 = require("zod");
5
4
  const schemas_1 = require("../../../schemas");
6
- const date_helper_1 = require("../../../helpers/date.helper");
7
- const enum_1 = require("../../../enum");
8
- const GetTransactionListForClientRequestSchema = zod_1.z
9
- .object({
10
- page: zod_1.z.coerce.number().optional().default(1),
11
- count: zod_1.z.coerce.number().optional().default(10),
12
- startDate: zod_1.z.coerce.date().optional(),
13
- endDate: zod_1.z.coerce.date().optional(),
14
- transactionType: zod_1.z.nativeEnum(enum_1.TransactionTypeEnum).optional(),
15
- moneyAccountUUID: zod_1.z.string().optional(),
16
- orderUUID: zod_1.z.string().optional(),
17
- searchQuery: zod_1.z.string().optional(),
18
- })
19
- .refine(value => {
20
- const { startDate, endDate } = value;
21
- if (startDate && endDate) {
22
- return (0, date_helper_1.dateRangeCheck)(startDate, endDate);
23
- }
24
- return true;
25
- }, {
26
- message: 'validation.dateRange',
27
- path: ['endDate', 'startDate'],
28
- });
29
- const GetTransactionListForClientResponseSchema = zod_1.z.object({
30
- message: zod_1.z.string().optional(),
31
- data: schemas_1.TransactionListForClientSchema,
32
- });
33
5
  var GetTransactionListForClientContractQuery;
34
6
  (function (GetTransactionListForClientContractQuery) {
35
- GetTransactionListForClientContractQuery.RequestSchema = GetTransactionListForClientRequestSchema;
36
- GetTransactionListForClientContractQuery.ResponseSchema = GetTransactionListForClientResponseSchema;
7
+ GetTransactionListForClientContractQuery.RequestSchema = schemas_1.GetTransactionListForClientRequestSchema;
8
+ GetTransactionListForClientContractQuery.ResponseSchema = schemas_1.GetTransactionListForClientResponseSchema;
37
9
  })(GetTransactionListForClientContractQuery || (exports.GetTransactionListForClientContractQuery = GetTransactionListForClientContractQuery = {}));