@floristcloud/api-lib 1.2.1 → 1.2.3

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 (638) hide show
  1. package/build/commands/action-log/create-action-log.command.js +15 -0
  2. package/build/commands/action-log/get-action-log-list-for-client.query.js +34 -0
  3. package/build/commands/action-log/get-action-log-list.query.js +35 -0
  4. package/build/commands/action-log/index.js +19 -0
  5. package/build/commands/auth/index.js +24 -0
  6. package/build/commands/auth/login-user.command.js +22 -0
  7. package/build/commands/auth/mobile-login-user.command.js +22 -0
  8. package/build/commands/auth/register-user.command.js +21 -0
  9. package/build/commands/auth/reset-password-by-admin.command.js +15 -0
  10. package/build/commands/auth/reset-password-by-security-code.command.js +24 -0
  11. package/build/commands/auth/reset-password-by-token.command.js +26 -0
  12. package/build/commands/auth/reset-password-by-user.command.js +15 -0
  13. package/build/commands/auth/restore-password-by-security-code.command.js +16 -0
  14. package/build/commands/bank-payment/apply-bank-payment-event.command.js +18 -0
  15. package/build/commands/bank-payment/get-bank-payment-list.query.js +38 -0
  16. package/build/commands/bank-payment/get-bank-payment-match-suggestions.query.js +12 -0
  17. package/build/commands/bank-payment/index.js +20 -0
  18. package/build/commands/bank-payment/update-bank-payment-status.query.js +19 -0
  19. package/build/commands/bank-payment-rule/create-bank-payment-rule.command.js +22 -0
  20. package/build/commands/bank-payment-rule/delete-bank-payment-rule.command.js +14 -0
  21. package/build/commands/bank-payment-rule/get-bank-payment-rule-list.query.js +18 -0
  22. package/build/commands/bank-payment-rule/get-bank-payment-rule.query.js +13 -0
  23. package/build/commands/bank-payment-rule/index.js +21 -0
  24. package/build/commands/bank-payment-rule/update-bank-payment-rule.command.js +22 -0
  25. package/build/commands/branch/create-branch.command.js +23 -0
  26. package/build/commands/branch/delete-branch.command.js +19 -0
  27. package/build/commands/branch/get-branch-list-all-by-client-uuid.query.js +15 -0
  28. package/build/commands/branch/get-branch-list.query.js +18 -0
  29. package/build/commands/branch/get-branch.query.js +15 -0
  30. package/build/commands/branch/index.js +22 -0
  31. package/build/commands/branch/update-branch.command.js +23 -0
  32. package/build/commands/category/create-category.command.js +21 -0
  33. package/build/commands/category/delete-category.command.js +19 -0
  34. package/build/commands/category/get-category-by-uuid.query.js +17 -0
  35. package/build/commands/category/get-category-list.query.js +30 -0
  36. package/build/commands/category/index.js +22 -0
  37. package/build/commands/category/update-category-command.js +23 -0
  38. package/build/commands/category/webshop/get-category-list-for-client.query.js +13 -0
  39. package/build/commands/category-alias/create-category-alias.command.js +17 -0
  40. package/build/commands/category-alias/delete-category-alias.command.js +19 -0
  41. package/build/commands/category-alias/get-category-alias-by-uuid.query.js +17 -0
  42. package/build/commands/category-alias/get-category-alias-list-by-category-uuid.query.js +21 -0
  43. package/build/commands/category-alias/get-category-alias-list.query.js +23 -0
  44. package/build/commands/category-alias/index.js +17 -0
  45. package/build/commands/category-alias/update-category-alias.command.js +18 -0
  46. package/build/commands/category-template/create-category-template.command.js +20 -0
  47. package/build/commands/category-template/get-category-template-by-uuid.query.js +13 -0
  48. package/build/commands/category-template/get-category-template-list.query.js +13 -0
  49. package/build/commands/category-template/index.js +20 -0
  50. package/build/commands/category-template/update-category-template.command.js +20 -0
  51. package/build/commands/client/attach-user-to-client.command.js +17 -0
  52. package/build/commands/client/create-client.command.js +36 -0
  53. package/build/commands/client/delete-client.command.js +19 -0
  54. package/build/commands/client/detach-user-from-client.command.js +15 -0
  55. package/build/commands/client/get-client-calculate.query.js +17 -0
  56. package/build/commands/client/get-client-debt-list.query.js +25 -0
  57. package/build/commands/client/get-client-filters-values.query.js +17 -0
  58. package/build/commands/client/get-client-list.query.js +31 -0
  59. package/build/commands/client/get-client.query.js +15 -0
  60. package/build/commands/client/import-client.command.js +22 -0
  61. package/build/commands/client/index.js +36 -0
  62. package/build/commands/client/marking/create-client-marking.command.js +17 -0
  63. package/build/commands/client/marking/delete-client-marking.command.js +15 -0
  64. package/build/commands/client/marking/get-client-marking-by-client-list.command.js +16 -0
  65. package/build/commands/client/marking/update-client-marking.command.js +17 -0
  66. package/build/commands/client/profile/create-client-individual-profile.command.js +20 -0
  67. package/build/commands/client/profile/create-client-legal-profile.command.js +19 -0
  68. package/build/commands/client/profile/delete-client-individual-profile.command.js +17 -0
  69. package/build/commands/client/profile/delete-client-legal-profile.command.js +17 -0
  70. package/build/commands/client/profile/get-client-individual-profile.query.js +17 -0
  71. package/build/commands/client/profile/index.js +23 -0
  72. package/build/commands/client/profile/update-client-individual-profile.command.js +20 -0
  73. package/build/commands/client/profile/update-client-legal-profile.command.js +19 -0
  74. package/build/commands/client/set-balance-calculate-client.command.js +13 -0
  75. package/build/commands/client/update-client.command.js +38 -0
  76. package/build/commands/client/webshop/register-client-webshop.command.js +23 -0
  77. package/build/commands/client/webshop/update-client-for-client.command.js +21 -0
  78. package/build/commands/client-payment-identifier/create-client-payment-identifier.command.js +22 -0
  79. package/build/commands/client-payment-identifier/delete-client-payment-identifier.command.js +14 -0
  80. package/build/commands/client-payment-identifier/get-client-payment-identifier-list.query.js +27 -0
  81. package/build/commands/client-payment-identifier/index.js +19 -0
  82. package/build/commands/company/createCompany.command.js +20 -0
  83. package/build/commands/company/createCompanyWithUser.command.js +27 -0
  84. package/build/commands/company/deleteCompany.command.js +19 -0
  85. package/build/commands/company/getCompany.query.js +17 -0
  86. package/build/commands/company/getCompanyList.query.js +18 -0
  87. package/build/commands/company/index.js +22 -0
  88. package/build/commands/company/updateCompany.command.js +17 -0
  89. package/build/commands/consignment/create-consignment.command.js +25 -0
  90. package/build/commands/consignment/delete-consignment.command.js +18 -0
  91. package/build/commands/consignment/execute-consignment-product-update.command.js +53 -0
  92. package/build/commands/consignment/export-consignment.command.js +30 -0
  93. package/build/commands/consignment/get-access-clients-consignment.query.js +13 -0
  94. package/build/commands/consignment/get-client-uuids-consignment.query.js +14 -0
  95. package/build/commands/consignment/get-consignment-filters-values.query.js +16 -0
  96. package/build/commands/consignment/get-consignment-list.query.js +42 -0
  97. package/build/commands/consignment/get-consignment.query.js +15 -0
  98. package/build/commands/consignment/import-consignment.command.js +38 -0
  99. package/build/commands/consignment/import-packing-consignment.command.js +26 -0
  100. package/build/commands/consignment/index.js +30 -0
  101. package/build/commands/consignment/update-consignment.command.js +25 -0
  102. package/build/commands/consignment/upsert-access-clients-consignment.command.js +23 -0
  103. package/build/commands/consignment/validate-consignment-distribution.query.js +15 -0
  104. package/build/commands/consignment-import-schema/create-consignment-import-scheme.command.js +17 -0
  105. package/build/commands/consignment-import-schema/get-all-consignment-import-schema.query.js +15 -0
  106. package/build/commands/consignment-import-schema/get-cosignment-import-schema.query.js +15 -0
  107. package/build/commands/consignment-import-schema/index.js +18 -0
  108. package/build/commands/consignment-import-schema/update-consignment-import-schema.command.js +14 -0
  109. package/build/commands/delivery-route/attach-order-list-to-delivery-route.command.js +16 -0
  110. package/build/commands/delivery-route/create-delivery-route.command.js +14 -0
  111. package/build/commands/delivery-route/delete-delivery-route.command.js +14 -0
  112. package/build/commands/delivery-route/detach-order-list-to-delivery-route.command.js +17 -0
  113. package/build/commands/delivery-route/get-delivery-route-list.query.js +25 -0
  114. package/build/commands/delivery-route/get-delivery-route.query.js +15 -0
  115. package/build/commands/delivery-route/index.js +23 -0
  116. package/build/commands/delivery-route/update-delivery-route.command.js +14 -0
  117. package/build/commands/discount-rules/create-discount-rules.command.js +17 -0
  118. package/build/commands/discount-rules/delete-discount-rules.command.js +13 -0
  119. package/build/commands/discount-rules/get-discount-rules-all.query.js +20 -0
  120. package/build/commands/discount-rules/get-discount-rules-extended.query.js +13 -0
  121. package/build/commands/discount-rules/get-discount-rules-list.query.js +18 -0
  122. package/build/commands/discount-rules/get-discount-rules.query.js +13 -0
  123. package/build/commands/discount-rules/index.js +25 -0
  124. package/build/commands/discount-rules/split-quantity-discount-rules-for-client.query.js +15 -0
  125. package/build/commands/discount-rules/split-quantity-discount-rules.query.js +15 -0
  126. package/build/commands/discount-rules/update-discount-rules.command.js +17 -0
  127. package/build/commands/distribution/create-distribution.command.js +15 -0
  128. package/build/commands/distribution/index.js +19 -0
  129. package/build/commands/distribution/update-is-packed-distribution.command.js +17 -0
  130. package/build/commands/distribution/validate-distribution-by-product.query.js +15 -0
  131. package/build/commands/domain/create-domain.command.js +14 -0
  132. package/build/commands/domain/delete-domain.command.js +13 -0
  133. package/build/commands/domain/get-domain-by-uuid.query.js +13 -0
  134. package/build/commands/domain/get-domain-list.query.js +18 -0
  135. package/build/commands/domain/index.js +21 -0
  136. package/build/commands/domain/update-domain.command.js +14 -0
  137. package/build/commands/employee-schedule/create-employee-schedule.command.js +14 -0
  138. package/build/commands/employee-schedule/delete-employee-schedule.command.js +13 -0
  139. package/build/commands/employee-schedule/get-employee-schedule-extended-list.query.js +19 -0
  140. package/build/commands/employee-schedule/get-employee-schedule-list.query.js +38 -0
  141. package/build/commands/employee-schedule/index.js +21 -0
  142. package/build/commands/employee-schedule/update-employee-schedule.command.js +14 -0
  143. package/build/commands/file/deleteFile.command.js +17 -0
  144. package/build/commands/file/index.js +18 -0
  145. package/build/commands/file/uploadFile.command.js +8 -0
  146. package/build/commands/index.js +78 -0
  147. package/build/commands/integration/index.js +18 -0
  148. package/build/commands/integration/telegram/generate-telegram-link.command.js +17 -0
  149. package/build/commands/integration/telegram/get-telegram-link-status.command.js +19 -0
  150. package/build/commands/integration/telegram/index.js +19 -0
  151. package/build/commands/integration/telegram/unlink-telegram.command.js +14 -0
  152. package/build/commands/integration/telegram-staff/generate-telegram-staff-link.command.js +17 -0
  153. package/build/commands/integration/telegram-staff/get-telegram-staff-link-status.command.js +19 -0
  154. package/build/commands/integration/telegram-staff/index.js +19 -0
  155. package/build/commands/integration/telegram-staff/unlink-telegram-staff.command.js +16 -0
  156. package/build/commands/message/get-clients-messages-context-with-unread.query.js +23 -0
  157. package/build/commands/message/get-context-unread-count.query.js +21 -0
  158. package/build/commands/message/get-contexts-with-unread.query.js +22 -0
  159. package/build/commands/message/index.js +22 -0
  160. package/build/commands/message/list-context-messages.query.js +23 -0
  161. package/build/commands/message/mark-context-read.command.js +21 -0
  162. package/build/commands/message/send-context-message.command.js +22 -0
  163. package/build/commands/money-account/create-money-account.command.js +18 -0
  164. package/build/commands/money-account/delete-money-account.command.js +14 -0
  165. package/build/commands/money-account/get-money-account-by-criteria.query.js +15 -0
  166. package/build/commands/money-account/get-money-account-list.query.js +21 -0
  167. package/build/commands/money-account/get-money-account.query.js +13 -0
  168. package/build/commands/money-account/index.js +22 -0
  169. package/build/commands/money-account/update-money-account.command.js +19 -0
  170. package/build/commands/notification/index.js +17 -0
  171. package/build/commands/notification/send-staff-notification-s2s.command.js +21 -0
  172. package/build/commands/order/apply-order-discount.command.js +18 -0
  173. package/build/commands/order/copy-order.command.js +13 -0
  174. package/build/commands/order/create-order.command.js +26 -0
  175. package/build/commands/order/delete-order.command.js +14 -0
  176. package/build/commands/order/export-order-invoice.command.js +12 -0
  177. package/build/commands/order/get-order-list.query.js +49 -0
  178. package/build/commands/order/get-order.query.js +15 -0
  179. package/build/commands/order/group/deletet-group-order.command.js +18 -0
  180. package/build/commands/order/group/get-group-order-invoice-info.query.js +27 -0
  181. package/build/commands/order/group/merge-orders.command.js +26 -0
  182. package/build/commands/order/group/send-group-order-invoice.command.js +21 -0
  183. package/build/commands/order/group/split-group-order.command.js +17 -0
  184. package/build/commands/order/group/update-group-order-status.command.js +20 -0
  185. package/build/commands/order/group/update-group-order-tag.command.js +19 -0
  186. package/build/commands/order/group/update-group-order-type.command.js +20 -0
  187. package/build/commands/order/index.js +41 -0
  188. package/build/commands/order/send-order-invoice.command.js +26 -0
  189. package/build/commands/order/update-order.command.js +30 -0
  190. package/build/commands/order/webshop/create-cart.command.js +15 -0
  191. package/build/commands/order/webshop/get-order-for-client.query.js +15 -0
  192. package/build/commands/order/webshop/get-order-list-for-client.query.js +53 -0
  193. package/build/commands/order/webshop/get-order-sales-by-month.query.js +16 -0
  194. package/build/commands/order/webshop/update-cart.command.js +27 -0
  195. package/build/commands/order/zeroing-receipt-delivery-order.command.js +13 -0
  196. package/build/commands/order-delivery/create-order-delivery.command.js +21 -0
  197. package/build/commands/order-delivery/delete-order-delivery.command.js +16 -0
  198. package/build/commands/order-delivery/index.js +19 -0
  199. package/build/commands/order-delivery/update-order-delivery.command.js +25 -0
  200. package/build/commands/order-product/create-order-product.command.js +22 -0
  201. package/build/commands/order-product/delete-order-product.command.js +16 -0
  202. package/build/commands/order-product/get-order-product-list-all.query.js +15 -0
  203. package/build/commands/order-product/get-order-product-list-for-distribute.query.js +18 -0
  204. package/build/commands/order-product/get-order-product-list.query.js +19 -0
  205. package/build/commands/order-product/get-order-product.query.js +15 -0
  206. package/build/commands/order-product/group/delete-group-order-product.command.js +18 -0
  207. package/build/commands/order-product/group/update-group-order-product-order.command.js +24 -0
  208. package/build/commands/order-product/group/update-group-order-product-tag.command.js +19 -0
  209. package/build/commands/order-product/group/verify-group-order-product.command.js +19 -0
  210. package/build/commands/order-product/group/zeroing-receipt-order-product.command.js +17 -0
  211. package/build/commands/order-product/index.js +35 -0
  212. package/build/commands/order-product/update-order-product.command.js +23 -0
  213. package/build/commands/order-product/verify-order-product.command.js +15 -0
  214. package/build/commands/order-product/webshop/create-order-product-for-client.command.js +18 -0
  215. package/build/commands/order-product/webshop/get-active-stepper-positions-order.query.js +14 -0
  216. package/build/commands/order-product/webshop/get-order-product-for-client-list.query.js +15 -0
  217. package/build/commands/order-product/webshop/set-order-product-quantity-webshop.command.js +14 -0
  218. package/build/commands/order-product/webshop/update-order-product-for-client.command.js +19 -0
  219. package/build/commands/package/create-package.command.js +14 -0
  220. package/build/commands/package/delete-package.command.js +16 -0
  221. package/build/commands/package/get-package-by-uuid.query.js +12 -0
  222. package/build/commands/package/get-package-filters-values.query.js +27 -0
  223. package/build/commands/package/get-package-list.query.js +21 -0
  224. package/build/commands/package/index.js +23 -0
  225. package/build/commands/package/reorder-packages.command.js +21 -0
  226. package/build/commands/package/update-package.command.js +14 -0
  227. package/build/commands/package/validate-product-package.query.js +15 -0
  228. package/build/commands/pre-order/create-order-from-pre-order.command.js +20 -0
  229. package/build/commands/pre-order/create-pre-order.command.js +14 -0
  230. package/build/commands/pre-order/delete-pre-order.command.js +13 -0
  231. package/build/commands/pre-order/export-pre-order.command.js +12 -0
  232. package/build/commands/pre-order/get-pre-order-by-pre-order-collection-uuid.command.js +12 -0
  233. package/build/commands/pre-order/get-pre-order-list.query.js +26 -0
  234. package/build/commands/pre-order/get-pre-order.query.js +12 -0
  235. package/build/commands/pre-order/get-standing-order-import-template.command.js +13 -0
  236. package/build/commands/pre-order/group/analyze-copy-pre-orders.command.js +23 -0
  237. package/build/commands/pre-order/group/analyze-create-orders-from-pre-orders.command.js +41 -0
  238. package/build/commands/pre-order/group/analyze-create-pre-orders-from-standing-orders.command.js +38 -0
  239. package/build/commands/pre-order/group/group-copy-pre-orders-to-collection.command.js +40 -0
  240. package/build/commands/pre-order/group/group-create-orders-from-pre-orders.command.js +39 -0
  241. package/build/commands/pre-order/group/group-create-pre-orders-from-standing-orders.command.js +36 -0
  242. package/build/commands/pre-order/group/group-delete-pre-order.command.js +18 -0
  243. package/build/commands/pre-order/group/group-update-pre-order.command.js +20 -0
  244. package/build/commands/pre-order/group/index.js +26 -0
  245. package/build/commands/pre-order/group/merge-pre-orders.command.js +33 -0
  246. package/build/commands/pre-order/import-standing-order.command.js +24 -0
  247. package/build/commands/pre-order/index.js +29 -0
  248. package/build/commands/pre-order/update-pre-order.command.js +14 -0
  249. package/build/commands/pre-order/webshop/checkout-pre-order-webshop.command.js +20 -0
  250. package/build/commands/pre-order/webshop/create-pre-order-webshop.command.js +14 -0
  251. package/build/commands/pre-order/webshop/delete-pre-order-webshop.command.js +13 -0
  252. package/build/commands/pre-order/webshop/get-pre-order-list-webshop.command.js +19 -0
  253. package/build/commands/pre-order/webshop/index.js +21 -0
  254. package/build/commands/pre-order/webshop/update-pre-order-webshop.command.js +14 -0
  255. package/build/commands/pre-order-collection/copy-pre-order-collection.command.js +13 -0
  256. package/build/commands/pre-order-collection/create-pre-order-collection.command.js +14 -0
  257. package/build/commands/pre-order-collection/delete-pre-order-collection.command.js +14 -0
  258. package/build/commands/pre-order-collection/get-pre-order-collection-all.query.js +13 -0
  259. package/build/commands/pre-order-collection/get-pre-order-collection-list.query.js +23 -0
  260. package/build/commands/pre-order-collection/get-pre-order-collection.query.js +13 -0
  261. package/build/commands/pre-order-collection/index.js +24 -0
  262. package/build/commands/pre-order-collection/match-images-for-collection.command.js +20 -0
  263. package/build/commands/pre-order-collection/update-pre-order-collection.command.js +14 -0
  264. package/build/commands/pre-order-collection/webshop/get-pre-order-collection-list-with-categories.query.js +13 -0
  265. package/build/commands/pre-order-collection-item/create-group-pre-order-collection-item.command.js +16 -0
  266. package/build/commands/pre-order-collection-item/create-pre-order-collection-item.command.js +14 -0
  267. package/build/commands/pre-order-collection-item/delete-group-pre-order-collection-item.command.js +19 -0
  268. package/build/commands/pre-order-collection-item/delete-pre-order-collection-item.command.js +14 -0
  269. package/build/commands/pre-order-collection-item/execute-pre-order-collection-item-update.command.js +50 -0
  270. package/build/commands/pre-order-collection-item/export-pre-order-collection-item-with-clients-horizontal.query.js +16 -0
  271. package/build/commands/pre-order-collection-item/export-pre-order-collection-item-with-clients-vertical.query.js +19 -0
  272. package/build/commands/pre-order-collection-item/get-active-pre-order-collection-item-list.query.js +19 -0
  273. package/build/commands/pre-order-collection-item/get-pre-order-collection-item-extended-with-clients-pre-order-product-list.query.js +22 -0
  274. package/build/commands/pre-order-collection-item/get-pre-order-collection-item-list-filter-values-for-client.query.js +26 -0
  275. package/build/commands/pre-order-collection-item/get-pre-order-collection-item-list-filter-values.query.js +24 -0
  276. package/build/commands/pre-order-collection-item/get-pre-order-collection-item-list-for-client.query.js +24 -0
  277. package/build/commands/pre-order-collection-item/get-pre-order-collection-item-list.query.js +24 -0
  278. package/build/commands/pre-order-collection-item/get-pre-order-collection-item.query.js +13 -0
  279. package/build/commands/pre-order-collection-item/index.js +42 -0
  280. package/build/commands/pre-order-collection-item/move-pre-order-collection-items-analyze.command.js +51 -0
  281. package/build/commands/pre-order-collection-item/move-pre-order-collection-items-execute.command.js +16 -0
  282. package/build/commands/pre-order-collection-item/multiplicity-option/create-pre-order-collection-item-multiplicity-option.command.js +20 -0
  283. package/build/commands/pre-order-collection-item/multiplicity-option/delete-pre-order-collection-item-multiplicity-option.command.js +14 -0
  284. package/build/commands/pre-order-collection-item/multiplicity-option/get-pre-order-collection-item-multiplicity-option-titles.query.js +14 -0
  285. package/build/commands/pre-order-collection-item/multiplicity-option/get-pre-order-collection-item-multiplicity-options.query.js +15 -0
  286. package/build/commands/pre-order-collection-item/multiplicity-option/reorder-pre-order-collection-item-multiplicity-options.command.js +21 -0
  287. package/build/commands/pre-order-collection-item/multiplicity-option/update-pre-order-collection-item-multiplicity-option.command.js +22 -0
  288. package/build/commands/pre-order-collection-item/update-group-pre-order-collection-item.command.js +20 -0
  289. package/build/commands/pre-order-collection-item/update-pre-order-collection-item-product-maching.command.js +18 -0
  290. package/build/commands/pre-order-collection-item/update-pre-order-collection-item.command.js +14 -0
  291. package/build/commands/pre-order-product/create-manually-pre-order-product-for-standing-order.command.js +22 -0
  292. package/build/commands/pre-order-product/create-manually-pre-order-product.command.js +23 -0
  293. package/build/commands/pre-order-product/create-pre-order-product-webshop.command.js +14 -0
  294. package/build/commands/pre-order-product/create-pre-order-product.command.js +14 -0
  295. package/build/commands/pre-order-product/delete-many-pre-order-product-by-pre-order-collection-item.command.js +14 -0
  296. package/build/commands/pre-order-product/delete-pre-order-product-webshop.command.js +14 -0
  297. package/build/commands/pre-order-product/delete-pre-order-product.command.js +13 -0
  298. package/build/commands/pre-order-product/get-active-stepper-positions.query.js +17 -0
  299. package/build/commands/pre-order-product/get-pre-order-product-extended-list.query.js +18 -0
  300. package/build/commands/pre-order-product/get-pre-order-product-list.query.js +18 -0
  301. package/build/commands/pre-order-product/get-pre-order-product.query.js +13 -0
  302. package/build/commands/pre-order-product/get-pre-order-products-by-pre-order-list.command.js +17 -0
  303. package/build/commands/pre-order-product/get-pre-order-products-by-pre-order.command.js +13 -0
  304. package/build/commands/pre-order-product/group/move-group-pre-order-product.command.js +20 -0
  305. package/build/commands/pre-order-product/index.js +34 -0
  306. package/build/commands/pre-order-product/purchase-many-pre-order-product-by-pre-order-collection-item.command.js +18 -0
  307. package/build/commands/pre-order-product/set-pre-order-product-quantity-webshop.command.js +14 -0
  308. package/build/commands/pre-order-product/update-pre-order-product-webshop.command.js +14 -0
  309. package/build/commands/pre-order-product/update-pre-order-product.command.js +14 -0
  310. package/build/commands/product/create-product.command.js +43 -0
  311. package/build/commands/product/delete-product.command.js +16 -0
  312. package/build/commands/product/generate-product-qr.query.js +27 -0
  313. package/build/commands/product/get-all-product-by-consignment.query.js +15 -0
  314. package/build/commands/product/get-product-list-filters-values.query.js +38 -0
  315. package/build/commands/product/get-product-list.query.js +26 -0
  316. package/build/commands/product/get-product-quantity-calculate.query.js +25 -0
  317. package/build/commands/product/get-product.query.js +15 -0
  318. package/build/commands/product/get-products-unique.query.js +22 -0
  319. package/build/commands/product/group/delete-group-product.command.js +25 -0
  320. package/build/commands/product/group/index.js +23 -0
  321. package/build/commands/product/group/update-group-product-category.command.js +19 -0
  322. package/build/commands/product/group/update-group-product-consignment.command.js +19 -0
  323. package/build/commands/product/group/update-group-product-is-open-by-consignment.command.js +18 -0
  324. package/build/commands/product/group/update-group-product-is-open.command.js +19 -0
  325. package/build/commands/product/group/update-group-product-prices.command.js +24 -0
  326. package/build/commands/product/group/update-group-product-update-batch.command.js +44 -0
  327. package/build/commands/product/index.js +39 -0
  328. package/build/commands/product/match-images-for-products.command.js +20 -0
  329. package/build/commands/product/multiplicity-option/create-product-multiplicity-option.command.js +20 -0
  330. package/build/commands/product/multiplicity-option/delete-product-multiplicity-option.command.js +14 -0
  331. package/build/commands/product/multiplicity-option/get-product-multiplicity-option-titles.query.js +14 -0
  332. package/build/commands/product/multiplicity-option/get-product-multiplicity-options.query.js +15 -0
  333. package/build/commands/product/multiplicity-option/reorder-product-multiplicity-options.command.js +21 -0
  334. package/build/commands/product/multiplicity-option/update-product-multiplicity-option.command.js +22 -0
  335. package/build/commands/product/update-product.command.js +43 -0
  336. package/build/commands/product/webshop/get-client-product-list-filters-values.query.js +31 -0
  337. package/build/commands/product/webshop/get-product-delivery-dates.query.js +16 -0
  338. package/build/commands/product/webshop/get-product-for-client.query.js +15 -0
  339. package/build/commands/product/webshop/get-product-list-for-client.query.js +29 -0
  340. package/build/commands/product-configuration/create-product-configuration.command.js +14 -0
  341. package/build/commands/product-configuration/delete-product-configuration.command.js +15 -0
  342. package/build/commands/product-configuration/find-product-configuration-by-attributes.query.js +24 -0
  343. package/build/commands/product-configuration/get-product-configuration-list.query.js +28 -0
  344. package/build/commands/product-configuration/get-product-configuration.query.js +15 -0
  345. package/build/commands/product-configuration/index.js +22 -0
  346. package/build/commands/product-configuration/update-product-configuration.command.js +14 -0
  347. package/build/commands/product-image/alias/create-product-image-alias.command.js +17 -0
  348. package/build/commands/product-image/alias/delete-product-image-alias.command.js +15 -0
  349. package/build/commands/product-image/alias/update-product-image-alias.command.js +17 -0
  350. package/build/commands/product-image/create-product-image.command.js +23 -0
  351. package/build/commands/product-image/delete-product-image.command.js +13 -0
  352. package/build/commands/product-image/get-product-image-filter-values.query.js +24 -0
  353. package/build/commands/product-image/get-product-image-list.query.js +29 -0
  354. package/build/commands/product-image/get-product-image.query.js +13 -0
  355. package/build/commands/product-image/group/delete-group-product-image.command.js +18 -0
  356. package/build/commands/product-image/group/update-group-product-image.command.js +20 -0
  357. package/build/commands/product-image/index.js +28 -0
  358. package/build/commands/product-image/sync-product-image.command.js +14 -0
  359. package/build/commands/product-image/update-product-image.command.js +23 -0
  360. package/build/commands/product-image-template/create-product-image-template.command.js +15 -0
  361. package/build/commands/product-image-template/delete-group-product-image-template.command.js +17 -0
  362. package/build/commands/product-image-template/delete-product-image-template.command.js +13 -0
  363. package/build/commands/product-image-template/get-product-image-template-list.query.js +20 -0
  364. package/build/commands/product-image-template/get-product-image-template.query.js +13 -0
  365. package/build/commands/product-image-template/index.js +23 -0
  366. package/build/commands/product-image-template/start-parsing-product-image-template.command.js +14 -0
  367. package/build/commands/product-image-template/update-product-image-template.command.js +15 -0
  368. package/build/commands/product-in-package/create-product-in-package.command.js +15 -0
  369. package/build/commands/product-in-package/delete-from-orders-by-package.command.js +16 -0
  370. package/build/commands/product-in-package/delete-product-in-package.command.js +14 -0
  371. package/build/commands/product-in-package/get-product-in-package-by-uuid.query.js +13 -0
  372. package/build/commands/product-in-package/index.js +21 -0
  373. package/build/commands/product-in-package/update-product-in-package.command.js +15 -0
  374. package/build/commands/report/export-client-statement.query.js +31 -0
  375. package/build/commands/report/export-inventory-movement.query.js +52 -0
  376. package/build/commands/report/export-inventory-stock.query.js +32 -0
  377. package/build/commands/report/export-inventory-turnover.query.js +56 -0
  378. package/build/commands/report/export-sales-by-client.query.js +39 -0
  379. package/build/commands/report/export-sales-revenue.query.js +36 -0
  380. package/build/commands/report/get-report-by-client-weeks.query.js +31 -0
  381. package/build/commands/report/get-report-for-period.query.js +44 -0
  382. package/build/commands/report/get-report-group-by-client.query.js +46 -0
  383. package/build/commands/report/get-report-group-by-position.query.js +68 -0
  384. package/build/commands/report/index.js +26 -0
  385. package/build/commands/session/create-ws-ticket.command.js +11 -0
  386. package/build/commands/session/get-active-sessions.query.js +20 -0
  387. package/build/commands/session/index.js +15 -0
  388. package/build/commands/session/session-logout.command.js +11 -0
  389. package/build/commands/session/session-revoke-all.command.js +11 -0
  390. package/build/commands/session/validate-session-s2s.query.js +25 -0
  391. package/build/commands/session/validate-ws-ticket-s2s.query.js +12 -0
  392. package/build/commands/settings/get-settings-for-admin.query.js +13 -0
  393. package/build/commands/settings/get-settings.query.js +13 -0
  394. package/build/commands/settings/index.js +19 -0
  395. package/build/commands/settings/update-settings.command.js +14 -0
  396. package/build/commands/transaction/apply-prepayment-transaction.command.js +17 -0
  397. package/build/commands/transaction/create-transaction.command.js +24 -0
  398. package/build/commands/transaction/delete-transaction.command.js +16 -0
  399. package/build/commands/transaction/export-transactions.command.js +36 -0
  400. package/build/commands/transaction/generate-check-transaction.command.js +18 -0
  401. package/build/commands/transaction/generate-pre-payment-check.command.js +18 -0
  402. package/build/commands/transaction/get-sum-transaction-by-money-account.query.js +32 -0
  403. package/build/commands/transaction/get-transaction-list.query.js +38 -0
  404. package/build/commands/transaction/get-transaction-summary.query.js +39 -0
  405. package/build/commands/transaction/get-transaction.query.js +15 -0
  406. package/build/commands/transaction/index.js +28 -0
  407. package/build/commands/transaction/update-transaction.command.js +19 -0
  408. package/build/commands/transaction/webshop/get-transaction-list-for-client.query.js +37 -0
  409. package/build/commands/type/create-type.command.js +18 -0
  410. package/build/commands/type/delete-type.command.js +17 -0
  411. package/build/commands/type/get-type-by-criteria.query.js +15 -0
  412. package/build/commands/type/get-type-by-uuid.query.js +17 -0
  413. package/build/commands/type/get-type-list.query.js +24 -0
  414. package/build/commands/type/index.js +24 -0
  415. package/build/commands/type/update-type-rank-many.command.js +22 -0
  416. package/build/commands/type/update-type-rank.command.js +19 -0
  417. package/build/commands/type/update-type.command.js +18 -0
  418. package/build/commands/user/attachUserToCompany.command.js +13 -0
  419. package/build/commands/user/create-user-global.command.js +28 -0
  420. package/build/commands/user/createUser.command.js +14 -0
  421. package/build/commands/user/createUserByClientId.command.js +29 -0
  422. package/build/commands/user/createUserForCompany.command.js +27 -0
  423. package/build/commands/user/generate-and-send-password-by-admin.command.js +16 -0
  424. package/build/commands/user/get-user-list-s2s.query.js +13 -0
  425. package/build/commands/user/get-user-list.query.js +26 -0
  426. package/build/commands/user/getUser.command.js +14 -0
  427. package/build/commands/user/index.js +27 -0
  428. package/build/commands/user/update-password-by-user.command.js +15 -0
  429. package/build/commands/user/update-user.command.js +19 -0
  430. package/build/commands/user/updateRole.command.js +18 -0
  431. package/build/commands/work-session/close-work-session-for-employee.command.js +13 -0
  432. package/build/commands/work-session/create-many-work-session.command.js +17 -0
  433. package/build/commands/work-session/create-work-session-for-employee.command.js +14 -0
  434. package/build/commands/work-session/delete-work-session.command.js +13 -0
  435. package/build/commands/work-session/export-overtime.query.js +26 -0
  436. package/build/commands/work-session/get-work-session-extended-list.query.js +21 -0
  437. package/build/commands/work-session/index.js +23 -0
  438. package/build/commands/work-session/update-work-session.command.js +14 -0
  439. package/build/commands/wrire-off-archive/create-wrire-off-archive.command.js +20 -0
  440. package/build/commands/wrire-off-archive/get-write-off-archive-files.command.js +22 -0
  441. package/build/commands/wrire-off-archive/index.js +19 -0
  442. package/build/commands/wrire-off-archive/info-wrire-off-archive.command.js +20 -0
  443. package/build/commands/write-off/create-write-off-from-order.command.js +21 -0
  444. package/build/commands/write-off/create-write-off-from-pending.command.js +30 -0
  445. package/build/commands/write-off/create-write-off-images.command.js +17 -0
  446. package/build/commands/write-off/create-write-off.command.js +20 -0
  447. package/build/commands/write-off/delete-write-off-image.command.js +15 -0
  448. package/build/commands/write-off/delete-write-off.command.js +16 -0
  449. package/build/commands/write-off/get-write-off-list.query.js +27 -0
  450. package/build/commands/write-off/get-write-off-reason-list.query.js +16 -0
  451. package/build/commands/write-off/get-write-off-sum-by-order.query.js +14 -0
  452. package/build/commands/write-off/get-write-off.query.js +13 -0
  453. package/build/commands/write-off/index.js +29 -0
  454. package/build/commands/write-off/update-write-off-price.command.js +18 -0
  455. package/build/commands/write-off/update-write-off-status.command.js +29 -0
  456. package/build/commands/write-off/webshop/create-write-off-from-order-for-client.command.js +20 -0
  457. package/build/commands/write-off/webshop/get-write-off-list-by-order.query.js +15 -0
  458. package/build/commands/write-off/webshop/index.js +18 -0
  459. package/build/constant/error-i18n-key.js +21 -0
  460. package/build/constant/error.js +915 -0
  461. package/build/constant/index.js +19 -0
  462. package/build/constant/verbose.js +22 -0
  463. package/build/enum/action-log-type.enum.js +18 -0
  464. package/build/enum/bank-payment-event-status.enum.js +9 -0
  465. package/build/enum/bank-payment-rule-match-type.enum.js +10 -0
  466. package/build/enum/bank-provider.enum.js +7 -0
  467. package/build/enum/category-status.enum.js +8 -0
  468. package/build/enum/chat-has-manager-mode.enum.js +9 -0
  469. package/build/enum/chat-no-manager-mode.enum.js +8 -0
  470. package/build/enum/client-import-entity-property.enum.js +37 -0
  471. package/build/enum/client-legal-type.enum.js +8 -0
  472. package/build/enum/client-statement-type.enum.js +9 -0
  473. package/build/enum/client-status.enum.js +9 -0
  474. package/build/enum/client-type.enum.js +8 -0
  475. package/build/enum/companyStatus.enum.js +9 -0
  476. package/build/enum/consignment-access-client-status.enum.js +8 -0
  477. package/build/enum/consignment-distribution-validation-status.enum.js +8 -0
  478. package/build/enum/consignment-distribution-validation-type.enum.js +8 -0
  479. package/build/enum/consignment-import-errors.enum.js +9 -0
  480. package/build/enum/consignment-import-schema-relation-entity-property.enum.js +38 -0
  481. package/build/enum/consignment-status.enum.js +9 -0
  482. package/build/enum/consignment-write-off-archives-status.enum.js +9 -0
  483. package/build/enum/context-message-context-type.enum.js +9 -0
  484. package/build/enum/country-code.enum.js +264 -0
  485. package/build/enum/delivery-route-status.enum.js +9 -0
  486. package/build/enum/discount-price-routing.enum.js +10 -0
  487. package/build/enum/discount-rules-apply-type.enum.js +8 -0
  488. package/build/enum/discount-rules-mode-type.enum.js +8 -0
  489. package/build/enum/discount-rules-status.enum.js +8 -0
  490. package/build/enum/discount-rules-type.enum.js +11 -0
  491. package/build/enum/file-expire-prefix.enum.js +8 -0
  492. package/build/enum/image-type.enum.js +8 -0
  493. package/build/enum/import-error-code.enum.js +11 -0
  494. package/build/enum/index.js +82 -0
  495. package/build/enum/inventory-movement-type.enum.js +10 -0
  496. package/build/enum/language.enum.js +8 -0
  497. package/build/enum/match-confidence.enum.js +9 -0
  498. package/build/enum/menu-items-url.enum.js +15 -0
  499. package/build/enum/money-account-status.enum.js +8 -0
  500. package/build/enum/notification-channel.enum.js +15 -0
  501. package/build/enum/notification-status.enum.js +10 -0
  502. package/build/enum/notification-type.enum.js +12 -0
  503. package/build/enum/order-active-status-list.js +13 -0
  504. package/build/enum/order-balance-status-list.js +11 -0
  505. package/build/enum/order-by.enum.js +8 -0
  506. package/build/enum/order-delivery-status.enum.js +8 -0
  507. package/build/enum/order-distribute-status-list.js +10 -0
  508. package/build/enum/order-restricted-status-list.js +5 -0
  509. package/build/enum/order-status.enum.js +17 -0
  510. package/build/enum/order-type.enum.js +8 -0
  511. package/build/enum/order-webshop-available-status-list.js +15 -0
  512. package/build/enum/package-status.enum.js +9 -0
  513. package/build/enum/package-type.enum.js +36 -0
  514. package/build/enum/parse-status.enum.js +9 -0
  515. package/build/enum/position-report-type.enum.js +8 -0
  516. package/build/enum/pre-order-aggregation-mode.enum.js +9 -0
  517. package/build/enum/pre-order-collection-item-import-entity-property.enum.js +29 -0
  518. package/build/enum/pre-order-collection-status.enum.js +8 -0
  519. package/build/enum/pre-order-collection-type.enum.js +8 -0
  520. package/build/enum/pre-order-status.enum.js +12 -0
  521. package/build/enum/product-image-created-from.enum.js +8 -0
  522. package/build/enum/product-image-order.enum.js +8 -0
  523. package/build/enum/product-in-package-status.enum.js +8 -0
  524. package/build/enum/report-period-type.enum.js +9 -0
  525. package/build/enum/sales-unit.enum.js +9 -0
  526. package/build/enum/security-code-status.enum.js +11 -0
  527. package/build/enum/session-platform.enum.js +8 -0
  528. package/build/enum/transaction-type-groups.js +16 -0
  529. package/build/enum/transaction-type.enum.js +10 -0
  530. package/build/enum/user-type.enum.js +8 -0
  531. package/build/enum/userRole.enum.js +17 -0
  532. package/build/enum/userStatus.enum.js +9 -0
  533. package/build/enum/webshop-main-display-mode.enum.js +8 -0
  534. package/build/enum/webshop-mode.enum.js +8 -0
  535. package/build/enum/write-off-status.enum.js +9 -0
  536. package/build/helpers/date.helper.js +15 -0
  537. package/build/helpers/index.js +17 -0
  538. package/build/index.js +22 -0
  539. package/build/schemas/action-log/action-log-payload.schema.js +29 -0
  540. package/build/schemas/action-log/action-log.schema.js +105 -0
  541. package/build/schemas/action-log/index.js +30 -0
  542. package/build/schemas/action-log/order-create-action-log.schema.js +8 -0
  543. package/build/schemas/action-log/order-delete-action-log-payload.schema.js +8 -0
  544. package/build/schemas/action-log/order-info.schema.js +14 -0
  545. package/build/schemas/action-log/order-product-delete-action-log.schema.js +8 -0
  546. package/build/schemas/action-log/order-product-info.schema.js +16 -0
  547. package/build/schemas/action-log/order-product-update-action-log.schema.js +10 -0
  548. package/build/schemas/action-log/order-update-action-log.schema.js +9 -0
  549. package/build/schemas/action-log/pre-order-create-action-log.schema.js +8 -0
  550. package/build/schemas/action-log/pre-order-delete-action-log.schema.js +8 -0
  551. package/build/schemas/action-log/pre-order-info.schema.js +11 -0
  552. package/build/schemas/action-log/pre-order-product-delete-action-log.schema.js +8 -0
  553. package/build/schemas/action-log/pre-order-product-info.schema.js +13 -0
  554. package/build/schemas/action-log/pre-order-product-update-action-log.schema.js +11 -0
  555. package/build/schemas/action-log/transaction-add-action-log.schema.js +8 -0
  556. package/build/schemas/action-log/transaction-delete-action-log.schema.js +8 -0
  557. package/build/schemas/action-log/transaction-info.schema.js +13 -0
  558. package/build/schemas/bank-payment/bank-payment.schema.js +26 -0
  559. package/build/schemas/bank-payment/get-bank-payment-match-suggestions.schema.js +18 -0
  560. package/build/schemas/bank-payment/index.js +17 -0
  561. package/build/schemas/bank-payment-rule/bank-payment-rule.schema.js +19 -0
  562. package/build/schemas/branch/branch-list.schema.js +9 -0
  563. package/build/schemas/branch/branch.schema.js +17 -0
  564. package/build/schemas/category/category.schema.js +20 -0
  565. package/build/schemas/category-alias/category-alias.schema.js +17 -0
  566. package/build/schemas/category-template/category-template.schema.js +19 -0
  567. package/build/schemas/category-template/index.js +17 -0
  568. package/build/schemas/client/client-debt.schema.js +22 -0
  569. package/build/schemas/client/client-individual-profile.schema.js +13 -0
  570. package/build/schemas/client/client-legal-profile.schema.js +25 -0
  571. package/build/schemas/client/client-marking.schema.js +8 -0
  572. package/build/schemas/client/client.schema.js +53 -0
  573. package/build/schemas/client/index.js +21 -0
  574. package/build/schemas/client-payment-identifier/client-payment-identifier.schema.js +20 -0
  575. package/build/schemas/company/company.schema.js +14 -0
  576. package/build/schemas/company/companyList.schema.js +9 -0
  577. package/build/schemas/consignment/consignment-distribution-validation.schema.js +20 -0
  578. package/build/schemas/consignment/consignment-list.schema.js +9 -0
  579. package/build/schemas/consignment/consignment.schema.js +55 -0
  580. package/build/schemas/consignment-import-schema/consignment-import-schema.scheme.js +32 -0
  581. package/build/schemas/consignment-import-schema/index.js +17 -0
  582. package/build/schemas/consignment-import-schema-relation/consignment-import-schema-relation.schema.js +12 -0
  583. package/build/schemas/delete-data-response.schema.js +7 -0
  584. package/build/schemas/delivery-route/delivery-route.schema.js +49 -0
  585. package/build/schemas/discount-rules/discount-rules.schema.js +108 -0
  586. package/build/schemas/distribution/distribution.schema.js +24 -0
  587. package/build/schemas/distribution/validate-distribution-by-product.schema.js +9 -0
  588. package/build/schemas/domain/domain.schema.js +23 -0
  589. package/build/schemas/employee-schedule/employee-schedule.schema.js +42 -0
  590. package/build/schemas/error-message.schema.js +10 -0
  591. package/build/schemas/file/file.schema.js +7 -0
  592. package/build/schemas/file/index.js +17 -0
  593. package/build/schemas/index.js +76 -0
  594. package/build/schemas/message/client-inbox-item.schema.js +15 -0
  595. package/build/schemas/message/context-inbox.schema.js +22 -0
  596. package/build/schemas/message/context-message-list.schema.js +12 -0
  597. package/build/schemas/message/context-message.schema.js +18 -0
  598. package/build/schemas/message/index.js +20 -0
  599. package/build/schemas/messenger-profile/index.js +17 -0
  600. package/build/schemas/messenger-profile/user-messenger-profile.schema.js +18 -0
  601. package/build/schemas/money-account/money-account.schema.js +16 -0
  602. package/build/schemas/order/order.schema.js +62 -0
  603. package/build/schemas/order-delivery/order-delivery.schema.js +14 -0
  604. package/build/schemas/order-product/order-product-list.schema.js +13 -0
  605. package/build/schemas/order-product/order-product-multiplicity-optiom.schema.js +10 -0
  606. package/build/schemas/order-product/order-product.schema.js +70 -0
  607. package/build/schemas/package/package.schema.js +93 -0
  608. package/build/schemas/package/validate-package.schema.js +9 -0
  609. package/build/schemas/pre-order/pre-order-copy.schema.js +21 -0
  610. package/build/schemas/pre-order/pre-order.schema.js +49 -0
  611. package/build/schemas/pre-order-collection/pre-order-collection.schema.js +53 -0
  612. package/build/schemas/pre-order-collection-item/pre-order-collection-item-multiplicity-option.schema.js +11 -0
  613. package/build/schemas/pre-order-collection-item/pre-order-collection-item.schema.js +132 -0
  614. package/build/schemas/pre-order-product/pre-order-product.schema.js +126 -0
  615. package/build/schemas/product/product-list.schema.js +13 -0
  616. package/build/schemas/product/product-multiplicity-option.schema.js +11 -0
  617. package/build/schemas/product/product.schema.js +107 -0
  618. package/build/schemas/product-configuration/product-configuration.schema.js +34 -0
  619. package/build/schemas/product-image/product-image-alias.schema.js +8 -0
  620. package/build/schemas/product-image/product-image.schema.js +32 -0
  621. package/build/schemas/product-image-template/product-image-template.schema.js +21 -0
  622. package/build/schemas/product-in-package/product-in-package.schema.js +30 -0
  623. package/build/schemas/report/client-by-weeks.schema.js +14 -0
  624. package/build/schemas/report/client-statement.schema.js +13 -0
  625. package/build/schemas/session/session.schema.js +13 -0
  626. package/build/schemas/settings/settings.schema.js +224 -0
  627. package/build/schemas/transaction/transaction-list.schema.js +13 -0
  628. package/build/schemas/transaction/transaction.schema.js +31 -0
  629. package/build/schemas/type/type.schema.js +17 -0
  630. package/build/schemas/type/typeList.schema.js +9 -0
  631. package/build/schemas/user/user.schema.js +30 -0
  632. package/build/schemas/work-session/work-session.schema.js +41 -0
  633. package/build/schemas/write-off/write-off-image.schema.js +11 -0
  634. package/build/schemas/write-off/write-off-list.schema.js +9 -0
  635. package/build/schemas/write-off/write-off.schema.js +31 -0
  636. package/build/types/client-import-data.type.js +3 -0
  637. package/build/types/index.js +17 -0
  638. package/package.json +3 -5
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PreOrderCollectionWithCategoriesSchema = exports.PreOrderCollectionListSchema = exports.PreOrderCollectionWithStatisticSchema = exports.UpdatePreOrderCollectionSchema = exports.CreatePreOrderCollectionSchema = exports.PreOrderCollectionSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const enum_1 = require("../../enum");
6
+ exports.PreOrderCollectionSchema = zod_1.z.object({
7
+ uuid: zod_1.z.string(),
8
+ status: zod_1.z.nativeEnum(enum_1.PreOrderCollectionStatusEnum),
9
+ description: zod_1.z.string(),
10
+ availableUntil: zod_1.z.date(),
11
+ deliveryDate: zod_1.z.date(),
12
+ label: zod_1.z.string().nullable(),
13
+ imageUrl: zod_1.z.string().nullable(),
14
+ hideItemOptions: zod_1.z.coerce.boolean(),
15
+ });
16
+ exports.CreatePreOrderCollectionSchema = zod_1.z.object({
17
+ status: zod_1.z.nativeEnum(enum_1.PreOrderCollectionStatusEnum),
18
+ description: zod_1.z.string(),
19
+ availableUntil: zod_1.z.coerce.date(),
20
+ deliveryDate: zod_1.z.coerce.date(),
21
+ label: zod_1.z.string().nullable(),
22
+ imageUrl: zod_1.z.string().nullable(),
23
+ hideItemOptions: zod_1.z.coerce.boolean(),
24
+ });
25
+ exports.UpdatePreOrderCollectionSchema = zod_1.z.object({
26
+ status: zod_1.z.nativeEnum(enum_1.PreOrderCollectionStatusEnum),
27
+ description: zod_1.z.string(),
28
+ availableUntil: zod_1.z.coerce.date(),
29
+ deliveryDate: zod_1.z.coerce.date(),
30
+ label: zod_1.z.string().nullable(),
31
+ imageUrl: zod_1.z.string().nullable(),
32
+ hideItemOptions: zod_1.z.coerce.boolean(),
33
+ });
34
+ exports.PreOrderCollectionWithStatisticSchema = exports.PreOrderCollectionSchema.merge(zod_1.z.object({
35
+ statistic: zod_1.z.object({
36
+ positionsAmount: zod_1.z.number(),
37
+ purchasedAmount: zod_1.z.number(),
38
+ preOrdersAmount: zod_1.z.number(),
39
+ preOrdersProductsAmount: zod_1.z.number(),
40
+ }),
41
+ }));
42
+ exports.PreOrderCollectionListSchema = zod_1.z.object({
43
+ list: zod_1.z.array(exports.PreOrderCollectionWithStatisticSchema),
44
+ total: zod_1.z.number(),
45
+ });
46
+ exports.PreOrderCollectionWithCategoriesSchema = exports.PreOrderCollectionSchema.merge(zod_1.z.object({
47
+ categories: zod_1.z
48
+ .object({
49
+ name: zod_1.z.string(),
50
+ uuid: zod_1.z.string(),
51
+ })
52
+ .array(),
53
+ }));
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PreOrderCollectionItemMultiplicityOptionSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.PreOrderCollectionItemMultiplicityOptionSchema = zod_1.z.object({
6
+ uuid: zod_1.z.string(),
7
+ title: zod_1.z.string().max(100).nullable(),
8
+ optionMultiplicity: zod_1.z.number().int().min(1),
9
+ optionPrice: zod_1.z.number().min(0).nullable(),
10
+ rank: zod_1.z.number().int().min(0),
11
+ });
@@ -0,0 +1,132 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PreOrderCollectionItemExtendedWithPreOrderCollectionListSchema = exports.PreOrderCollectionItemExtendedWithPreOrderCollectionSchema = exports.PreOrderCollectionItemExtendedListSchema = exports.PreOrderCollectionItemExtendedWithClientsPreOrderProductSchema = exports.PreOrderCollectionItemExtendedSchema = exports.MatchingProductSchema = exports.UpdatePreOrderCollectionItemSchema = exports.CreatePreOrderCollectionItemSchema = exports.PreOrderCollectionItemSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const type_schema_1 = require("../type/type.schema");
6
+ const category_schema_1 = require("../category/category.schema");
7
+ const product_image_schema_1 = require("../product-image/product-image.schema");
8
+ const client_1 = require("../client");
9
+ const pre_order_product_schema_1 = require("../pre-order-product/pre-order-product.schema");
10
+ const enum_1 = require("../../enum");
11
+ const pre_order_collection_item_multiplicity_option_schema_1 = require("./pre-order-collection-item-multiplicity-option.schema");
12
+ exports.PreOrderCollectionItemSchema = zod_1.z.object({
13
+ uuid: zod_1.z.string(),
14
+ productUUID: zod_1.z.string().nullable(),
15
+ categoryUUID: zod_1.z.string(),
16
+ isOpen: zod_1.z.boolean(),
17
+ preOrderCollectionUUID: zod_1.z.string(),
18
+ name: zod_1.z.string(),
19
+ multiplicity: zod_1.z.number(),
20
+ quantity: zod_1.z.number().nullable(),
21
+ balance: zod_1.z.number().nullable(),
22
+ imageUUID: zod_1.z.string().nullable(),
23
+ price: zod_1.z.number(),
24
+ advancedPrice: zod_1.z.string().nullable(),
25
+ grower: zod_1.z.string().nullable(),
26
+ size: zod_1.z.string().nullable(),
27
+ isSizeCustomizable: zod_1.z.boolean().default(false),
28
+ size2: zod_1.z.string().nullable(),
29
+ size3: zod_1.z.string().nullable(),
30
+ color: zod_1.z.string().nullable(),
31
+ isColorCustomizable: zod_1.z.boolean().default(false),
32
+ country: zod_1.z.string().nullable(),
33
+ vat: zod_1.z.number().nullable(),
34
+ description: zod_1.z.string().nullable(),
35
+ salesUnit: zod_1.z.nativeEnum(enum_1.SalesUnitEnum).nullable(),
36
+ article: zod_1.z.string().nullable(),
37
+ group: zod_1.z.string().nullable(),
38
+ multiplicityDescription: zod_1.z.string().nullable(),
39
+ createdAt: zod_1.z.coerce.date(),
40
+ updatedAt: zod_1.z.coerce.date(),
41
+ });
42
+ exports.CreatePreOrderCollectionItemSchema = zod_1.z.object({
43
+ productUUID: zod_1.z.string().optional(),
44
+ categoryUUID: zod_1.z.string(),
45
+ isOpen: zod_1.z.boolean().optional().default(false),
46
+ name: zod_1.z.string(),
47
+ multiplicity: zod_1.z.coerce.number(),
48
+ quantity: zod_1.z.coerce.number().nullable().optional(),
49
+ balance: zod_1.z.coerce.number().nullable().optional(),
50
+ imageUUID: zod_1.z.string().nullable().optional(),
51
+ price: zod_1.z.coerce.number(),
52
+ advancedPrice: zod_1.z.string().nullable().optional(),
53
+ grower: zod_1.z.string().nullable().optional(),
54
+ size: zod_1.z.string().nullable().optional(),
55
+ isSizeCustomizable: zod_1.z.boolean().optional().default(false),
56
+ size2: zod_1.z.string().nullable().optional(),
57
+ size3: zod_1.z.string().nullable().optional(),
58
+ color: zod_1.z.string().nullable().optional(),
59
+ isColorCustomizable: zod_1.z.boolean().optional().default(false),
60
+ country: zod_1.z.string().optional(),
61
+ vat: zod_1.z.coerce.number().nullable().optional(),
62
+ description: zod_1.z.string().nullable().optional(),
63
+ article: zod_1.z.string().nullable().optional(),
64
+ salesUnit: zod_1.z.nativeEnum(enum_1.SalesUnitEnum).optional(),
65
+ group: zod_1.z.string().nullable().optional(),
66
+ multiplicityDescription: zod_1.z.string().nullable().optional(),
67
+ });
68
+ exports.UpdatePreOrderCollectionItemSchema = zod_1.z
69
+ .object({
70
+ productUUID: zod_1.z.string().nullable(),
71
+ categoryUUID: zod_1.z.string(),
72
+ isOpen: zod_1.z.boolean(),
73
+ preOrderCollectionUUID: zod_1.z.string(),
74
+ name: zod_1.z.string(),
75
+ multiplicity: zod_1.z.coerce.number(),
76
+ quantity: zod_1.z.coerce.number().nullable(),
77
+ balance: zod_1.z.coerce.number().nullable(),
78
+ imageUUID: zod_1.z.string().nullable(),
79
+ price: zod_1.z.coerce.number(),
80
+ advancedPrice: zod_1.z.string().nullable(),
81
+ grower: zod_1.z.string().nullable(),
82
+ size: zod_1.z.string().nullable(),
83
+ isSizeCustomizable: zod_1.z.boolean(),
84
+ size2: zod_1.z.string().nullable(),
85
+ size3: zod_1.z.string().nullable(),
86
+ color: zod_1.z.string().nullable(),
87
+ isColorCustomizable: zod_1.z.boolean(),
88
+ country: zod_1.z.string().nullable(),
89
+ vat: zod_1.z.coerce.number().nullable(),
90
+ description: zod_1.z.string().nullable(),
91
+ salesUnit: zod_1.z.nativeEnum(enum_1.SalesUnitEnum),
92
+ article: zod_1.z.string().nullable(),
93
+ group: zod_1.z.string().nullable(),
94
+ multiplicityDescription: zod_1.z.string().nullable(),
95
+ })
96
+ .partial();
97
+ exports.MatchingProductSchema = zod_1.z.object({
98
+ uuid: zod_1.z.string(),
99
+ name: zod_1.z.string(),
100
+ size: zod_1.z.string().nullable(),
101
+ grower: zod_1.z.string().nullable(),
102
+ color: zod_1.z.string().nullable(),
103
+ country: zod_1.z.string().nullable(),
104
+ deliveryDate: zod_1.z.coerce.date(),
105
+ });
106
+ exports.PreOrderCollectionItemExtendedSchema = exports.PreOrderCollectionItemSchema.extend({
107
+ image: product_image_schema_1.ProductImageSchema.nullable(),
108
+ category: category_schema_1.CategorySchema.nullable(),
109
+ type: type_schema_1.TypeSchema.nullable(),
110
+ matchingProducts: zod_1.z.array(exports.MatchingProductSchema),
111
+ multiplicityOptions: zod_1.z.array(pre_order_collection_item_multiplicity_option_schema_1.PreOrderCollectionItemMultiplicityOptionSchema).optional(),
112
+ preOrderedQuantity: zod_1.z.number().optional(),
113
+ });
114
+ exports.PreOrderCollectionItemExtendedWithClientsPreOrderProductSchema = exports.PreOrderCollectionItemExtendedSchema.extend({
115
+ clientsWithPreOrderProduct: zod_1.z.array(zod_1.z.object({ client: client_1.ClientSchema, preOrderProduct: pre_order_product_schema_1.PreOrderProductSchema })),
116
+ });
117
+ exports.PreOrderCollectionItemExtendedListSchema = zod_1.z.object({
118
+ list: zod_1.z.array(exports.PreOrderCollectionItemExtendedSchema),
119
+ total: zod_1.z.number(),
120
+ });
121
+ exports.PreOrderCollectionItemExtendedWithPreOrderCollectionSchema = exports.PreOrderCollectionItemExtendedSchema.extend({
122
+ preOrderCollection: zod_1.z.object({
123
+ uuid: zod_1.z.string(),
124
+ description: zod_1.z.string(),
125
+ availableUntil: zod_1.z.coerce.date(),
126
+ deliveryDate: zod_1.z.coerce.date(),
127
+ }),
128
+ });
129
+ exports.PreOrderCollectionItemExtendedWithPreOrderCollectionListSchema = zod_1.z.object({
130
+ list: zod_1.z.array(exports.PreOrderCollectionItemExtendedWithPreOrderCollectionSchema),
131
+ total: zod_1.z.number(),
132
+ });
@@ -0,0 +1,126 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SetPreOrderProductQuantityWebshopResponseSchema = exports.SetPreOrderProductQuantityWebshopRequestSchema = exports.ActiveStepperPositionsResponseSchema = exports.PreOrderProductStepperPositionSchema = exports.preOrderProductExtendedListSchema = exports.PreOrderProductListSchema = exports.UpdatePreOrderProductWebshopSchema = exports.CreatePreOrderProductWebshopSchema = exports.UpdatePreOrderProductSchema = exports.CreatePreOrderProductSchema = exports.PreOrderProductExtendedSchema = exports.PreOrderProductSchema = exports.MatchingConfigSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const pre_order_collection_item_schema_1 = require("../pre-order-collection-item/pre-order-collection-item.schema");
6
+ const category_schema_1 = require("../category/category.schema");
7
+ const pre_order_collection_item_multiplicity_option_schema_1 = require("../pre-order-collection-item/pre-order-collection-item-multiplicity-option.schema");
8
+ exports.MatchingConfigSchema = zod_1.z.object({
9
+ matchByName: zod_1.z.coerce.boolean(),
10
+ matchByCategory: zod_1.z.coerce.boolean(),
11
+ matchByColor: zod_1.z.coerce.boolean(),
12
+ matchBySize: zod_1.z.coerce.boolean(),
13
+ matchByGrower: zod_1.z.coerce.boolean(),
14
+ usePreOrderMultiplicity: zod_1.z.coerce.boolean().optional(),
15
+ });
16
+ exports.PreOrderProductSchema = zod_1.z.object({
17
+ uuid: zod_1.z.string(),
18
+ preOrderCollectionItemUUID: zod_1.z.string().nullable(),
19
+ preOrderUUID: zod_1.z.string(),
20
+ multiplicityOptionUUID: zod_1.z.uuid().nullable().optional(),
21
+ quantity: zod_1.z.number(),
22
+ comment: zod_1.z.string().nullable(),
23
+ tag: zod_1.z.string().nullable(),
24
+ isPurchased: zod_1.z.boolean(),
25
+ isReplaceable: zod_1.z.boolean(),
26
+ stopPrice: zod_1.z.number().nullable(),
27
+ highAttention: zod_1.z.boolean(),
28
+ categoryUUID: zod_1.z.string().nullable(),
29
+ name: zod_1.z.string().nullable(),
30
+ grower: zod_1.z.string().nullable(),
31
+ size: zod_1.z.string().nullable(),
32
+ price: zod_1.z.number().nullable(),
33
+ color: zod_1.z.string().nullable(),
34
+ parentPreOrderProductUUID: zod_1.z.string().nullable(),
35
+ matchingConfig: exports.MatchingConfigSchema.optional().nullable(),
36
+ });
37
+ exports.PreOrderProductExtendedSchema = exports.PreOrderProductSchema.extend({
38
+ preOrderCollectionItem: pre_order_collection_item_schema_1.PreOrderCollectionItemExtendedSchema,
39
+ category: category_schema_1.CategorySchema.nullable(),
40
+ deliveryDate: zod_1.z.coerce.date().nullable(),
41
+ multiplicityOption: pre_order_collection_item_multiplicity_option_schema_1.PreOrderCollectionItemMultiplicityOptionSchema.nullable().optional(),
42
+ });
43
+ exports.CreatePreOrderProductSchema = exports.PreOrderProductSchema.omit({ uuid: true, preOrderUUID: true }).extend({
44
+ multiplicityOptionUUID: zod_1.z.uuid().nullable().optional(),
45
+ categoryUUID: zod_1.z.string().nullable().optional(),
46
+ name: zod_1.z.string().nullable().optional(),
47
+ grower: zod_1.z.string().nullable().optional(),
48
+ size: zod_1.z.string().nullable().optional(),
49
+ price: zod_1.z.number().nullable().optional(),
50
+ color: zod_1.z.string().nullable().optional(),
51
+ parentPreOrderProductUUID: zod_1.z.string().nullable().optional(),
52
+ matchingConfig: exports.MatchingConfigSchema.optional().nullable(),
53
+ });
54
+ exports.UpdatePreOrderProductSchema = exports.PreOrderProductSchema.omit({
55
+ uuid: true,
56
+ preOrderUUID: true,
57
+ })
58
+ .extend({
59
+ multiplicityOptionUUID: zod_1.z.uuid().nullable().optional(),
60
+ categoryUUID: zod_1.z.string().nullable().optional(),
61
+ name: zod_1.z.string().nullable().optional(),
62
+ grower: zod_1.z.string().nullable().optional(),
63
+ size: zod_1.z.string().nullable().optional(),
64
+ price: zod_1.z.number().nullable().optional(),
65
+ color: zod_1.z.string().nullable().optional(),
66
+ parentPreOrderProductUUID: zod_1.z.string().nullable().optional(),
67
+ matchingConfig: exports.MatchingConfigSchema.optional().nullable(),
68
+ imageUUID: zod_1.z.string().uuid().nullable().optional(),
69
+ })
70
+ .partial();
71
+ exports.CreatePreOrderProductWebshopSchema = exports.PreOrderProductSchema.omit({
72
+ uuid: true,
73
+ tag: true,
74
+ isPurchased: true,
75
+ categoryUUID: true,
76
+ name: true,
77
+ grower: true,
78
+ size: true,
79
+ price: true,
80
+ color: true,
81
+ parentPreOrderProductUUID: true,
82
+ matchingConfig: true,
83
+ });
84
+ exports.UpdatePreOrderProductWebshopSchema = exports.PreOrderProductSchema.omit({
85
+ uuid: true,
86
+ tag: true,
87
+ isPurchased: true,
88
+ preOrderUUID: true,
89
+ preOrderCollectionItemUUID: true,
90
+ categoryUUID: true,
91
+ name: true,
92
+ grower: true,
93
+ size: true,
94
+ price: true,
95
+ color: true,
96
+ parentPreOrderProductUUID: true,
97
+ matchingConfig: true,
98
+ }).partial();
99
+ exports.PreOrderProductListSchema = zod_1.z.object({
100
+ list: exports.PreOrderProductSchema.array(),
101
+ total: zod_1.z.number(),
102
+ });
103
+ exports.preOrderProductExtendedListSchema = zod_1.z.object({
104
+ list: exports.PreOrderProductExtendedSchema.array(),
105
+ total: zod_1.z.number(),
106
+ });
107
+ exports.PreOrderProductStepperPositionSchema = zod_1.z.object({
108
+ uuid: zod_1.z.string(),
109
+ preOrderUUID: zod_1.z.string(),
110
+ preOrderCollectionUUID: zod_1.z.string().nullable(),
111
+ preOrderCollectionItemUUID: zod_1.z.string().nullable(),
112
+ multiplicityOptionUUID: zod_1.z.string().nullable().optional(),
113
+ multiplicityOptionTitle: zod_1.z.string().nullable().optional(),
114
+ quantity: zod_1.z.number(),
115
+ });
116
+ exports.ActiveStepperPositionsResponseSchema = zod_1.z.object({
117
+ list: exports.PreOrderProductStepperPositionSchema.array(),
118
+ });
119
+ exports.SetPreOrderProductQuantityWebshopRequestSchema = zod_1.z.object({
120
+ quantity: zod_1.z.number().int().min(0),
121
+ });
122
+ exports.SetPreOrderProductQuantityWebshopResponseSchema = zod_1.z.object({
123
+ uuid: zod_1.z.string().optional(),
124
+ quantity: zod_1.z.number().optional(),
125
+ deleted: zod_1.z.boolean().optional(),
126
+ });
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProductListSchema = exports.ProductListExtendedForClientSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const product_schema_1 = require("./product.schema");
6
+ exports.ProductListExtendedForClientSchema = zod_1.z.object({
7
+ productList: product_schema_1.ProductExtendedForClientSchema.array(),
8
+ total: zod_1.z.number(),
9
+ });
10
+ exports.ProductListSchema = zod_1.z.object({
11
+ productList: product_schema_1.ProductExtendedForAdminWithStatistic.array(),
12
+ total: zod_1.z.number(),
13
+ });
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProductMultiplicityOptionSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.ProductMultiplicityOptionSchema = zod_1.z.object({
6
+ uuid: zod_1.z.uuid(),
7
+ title: zod_1.z.string().nullable(),
8
+ optionMultiplicity: zod_1.z.number(),
9
+ optionPrice: zod_1.z.number().nullable(),
10
+ rank: zod_1.z.number(),
11
+ });
@@ -0,0 +1,107 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProductExtendedForAdminWithStatistic = exports.ProductExtendedForAdminSchema = exports.ProductExtendedForClientSchema = exports.ProductForClientSchema = exports.ProductExtendedSchema = exports.ProductSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const product_image_schema_1 = require("../product-image/product-image.schema");
6
+ const category_schema_1 = require("../category/category.schema");
7
+ const type_schema_1 = require("../type/type.schema");
8
+ const consignment_schema_1 = require("../consignment/consignment.schema");
9
+ const enum_1 = require("../../enum");
10
+ const discount_rules_schema_1 = require("../discount-rules/discount-rules.schema");
11
+ const __1 = require("../..");
12
+ exports.ProductSchema = zod_1.z.object({
13
+ uuid: zod_1.z.uuid(),
14
+ dataSyncId: zod_1.z.string().nullable(),
15
+ consignmentUUID: zod_1.z.uuid(),
16
+ categoryUUID: zod_1.z.uuid().nullable(),
17
+ name: zod_1.z.string(),
18
+ balance: zod_1.z.number(),
19
+ quantity: zod_1.z.number(),
20
+ price: zod_1.z.number(),
21
+ costPrice: zod_1.z.number(),
22
+ multiplicity: zod_1.z.number(),
23
+ isOpen: zod_1.z.boolean(),
24
+ article: zod_1.z.string().nullable(),
25
+ vbn: zod_1.z.string().nullable(),
26
+ barcode: zod_1.z.string().nullable(),
27
+ color: zod_1.z.string().nullable(),
28
+ size: zod_1.z.string().nullable(),
29
+ size2: zod_1.z.string().nullable(),
30
+ size3: zod_1.z.string().nullable(),
31
+ invoicePrice: zod_1.z.number().nullable(),
32
+ invoiceNumber: zod_1.z.string().nullable(),
33
+ imageUUID: zod_1.z.string().nullable(),
34
+ country: zod_1.z.string().nullable(),
35
+ description: zod_1.z.string().nullable(),
36
+ quality: zod_1.z.string().nullable(),
37
+ grower: zod_1.z.string().nullable(),
38
+ vat: zod_1.z.number().nullable(),
39
+ multiplicityDescription: zod_1.z.string().nullable(),
40
+ salesUnit: zod_1.z.nativeEnum(enum_1.SalesUnitEnum).nullable(),
41
+ createdAt: zod_1.z.date(),
42
+ updatedAt: zod_1.z.date(),
43
+ });
44
+ exports.ProductExtendedSchema = exports.ProductSchema.merge(zod_1.z.object({
45
+ category: category_schema_1.CategorySchema.nullable(),
46
+ type: type_schema_1.TypeSchema.nullable(),
47
+ image: product_image_schema_1.ProductImageSchema.nullable(),
48
+ multiplicityOptions: zod_1.z.array(__1.ProductMultiplicityOptionSchema).optional(),
49
+ }));
50
+ exports.ProductForClientSchema = zod_1.z.object({
51
+ uuid: zod_1.z.uuid(),
52
+ name: zod_1.z.string(),
53
+ balance: zod_1.z.number(),
54
+ price: zod_1.z.number(),
55
+ multiplicity: zod_1.z.number(),
56
+ article: zod_1.z.string().nullable(),
57
+ barcode: zod_1.z.string().nullable(),
58
+ color: zod_1.z.string().nullable(),
59
+ size: zod_1.z.string().nullable(),
60
+ size2: zod_1.z.string().nullable(),
61
+ size3: zod_1.z.string().nullable(),
62
+ country: zod_1.z.string().nullable(),
63
+ description: zod_1.z.string().nullable(),
64
+ grower: zod_1.z.string().nullable(),
65
+ multiplicityDescription: zod_1.z.string().nullable(),
66
+ salesUnit: zod_1.z.nativeEnum(enum_1.SalesUnitEnum).nullable(),
67
+ });
68
+ exports.ProductExtendedForClientSchema = exports.ProductForClientSchema.merge(zod_1.z.object({
69
+ category: zod_1.z
70
+ .object({
71
+ uuid: zod_1.z.string(),
72
+ name: zod_1.z.string(),
73
+ })
74
+ .nullable(),
75
+ type: zod_1.z
76
+ .object({
77
+ uuid: zod_1.z.string(),
78
+ name: zod_1.z.string(),
79
+ })
80
+ .nullable(),
81
+ image: zod_1.z
82
+ .object({
83
+ productImageUrl: zod_1.z.string(),
84
+ })
85
+ .nullable(),
86
+ consignment: zod_1.z.object({
87
+ deliveryDate: zod_1.z.date(),
88
+ isInStock: zod_1.z.boolean(),
89
+ }),
90
+ multiplicityOptions: zod_1.z.array(__1.ProductMultiplicityOptionSchema).optional(),
91
+ discountDataList: zod_1.z
92
+ .object({
93
+ discountRulesUUID: zod_1.z.string(),
94
+ type: zod_1.z.nativeEnum(enum_1.DiscountRulesTypeEnum),
95
+ discountValueData: discount_rules_schema_1.discountRulesModeSchema,
96
+ priceWithDiscount: zod_1.z.number(),
97
+ multipleQuantity: zod_1.z.number().optional(),
98
+ })
99
+ .array()
100
+ .optional(),
101
+ }));
102
+ exports.ProductExtendedForAdminSchema = exports.ProductExtendedSchema.merge(zod_1.z.object({
103
+ consignment: consignment_schema_1.ConsignmentSchema,
104
+ }));
105
+ exports.ProductExtendedForAdminWithStatistic = exports.ProductExtendedForAdminSchema.merge(zod_1.z.object({
106
+ writeOffQuantity: zod_1.z.number(),
107
+ }));
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateProductConfigurationRequestSchema = exports.CreateProductConfigurationRequestSchema = exports.ProductConfigurationSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const enum_1 = require("../../enum");
6
+ exports.ProductConfigurationSchema = zod_1.z.object({
7
+ uuid: zod_1.z.uuid(),
8
+ categoryUUID: zod_1.z.uuid(),
9
+ country: zod_1.z.nativeEnum(enum_1.CountryCodeEnum).nullable(),
10
+ grower: zod_1.z.string().nullable(),
11
+ size: zod_1.z.coerce.number().nullable(),
12
+ isOptional: zod_1.z.coerce.boolean(),
13
+ multiplicity: zod_1.z.coerce.number(),
14
+ multiplicityDescription: zod_1.z.string().nullable(),
15
+ });
16
+ exports.CreateProductConfigurationRequestSchema = zod_1.z.object({
17
+ categoryUUID: zod_1.z.uuid(),
18
+ country: zod_1.z.string().nullable().optional(),
19
+ grower: zod_1.z.string().nullable().optional(),
20
+ size: zod_1.z.coerce.number().nullable().optional(),
21
+ isOptional: zod_1.z.coerce.boolean().optional().default(false),
22
+ multiplicity: zod_1.z.coerce.number(),
23
+ multiplicityDescription: zod_1.z.string().nullable().optional(),
24
+ });
25
+ exports.UpdateProductConfigurationRequestSchema = zod_1.z
26
+ .object({
27
+ country: zod_1.z.string().nullable(),
28
+ grower: zod_1.z.string().nullable(),
29
+ size: zod_1.z.coerce.number().nullable(),
30
+ isOptional: zod_1.z.coerce.boolean(),
31
+ multiplicity: zod_1.z.coerce.number(),
32
+ multiplicityDescription: zod_1.z.string().nullable(),
33
+ })
34
+ .partial();
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProductImageAliasSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.ProductImageAliasSchema = zod_1.z.object({
6
+ uuid: zod_1.z.string(),
7
+ name: zod_1.z.string(),
8
+ });
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateProductImageSchema = exports.ProductImageExtendedSchema = exports.ProductImageSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const category_schema_1 = require("../category/category.schema");
6
+ const product_image_alias_schema_1 = require("./product-image-alias.schema");
7
+ exports.ProductImageSchema = zod_1.z.object({
8
+ uuid: zod_1.z.string(),
9
+ categoryUUID: zod_1.z.string().nullable(),
10
+ name: zod_1.z.string(),
11
+ color: zod_1.z.string().nullable(),
12
+ vbn: zod_1.z.string().nullable(),
13
+ externalUUID: zod_1.z.string().nullable(),
14
+ productImageUrl: zod_1.z.string(),
15
+ companyUUID: zod_1.z.string(),
16
+ country: zod_1.z.string().nullable(),
17
+ grower: zod_1.z.string().nullable(),
18
+ createdAt: zod_1.z.date(),
19
+ updatedAt: zod_1.z.date(),
20
+ deletedAt: zod_1.z.date().nullable(),
21
+ });
22
+ exports.ProductImageExtendedSchema = exports.ProductImageSchema.extend({
23
+ category: category_schema_1.CategoryExtendedSchema.nullable(),
24
+ aliasList: zod_1.z.array(product_image_alias_schema_1.ProductImageAliasSchema).optional(),
25
+ });
26
+ exports.UpdateProductImageSchema = exports.ProductImageSchema.omit({
27
+ uuid: true,
28
+ deletedAt: true,
29
+ createdAt: true,
30
+ updatedAt: true,
31
+ companyUUID: true,
32
+ }).partial();
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProductImageTemplateListSchema = exports.UpdateProductImageTemplateSchema = exports.CreateProductImageTemplateSchema = exports.ProductImageTemplateSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.ProductImageTemplateSchema = zod_1.z.object({
6
+ uuid: zod_1.z.string(),
7
+ name: zod_1.z.string(),
8
+ categoryTemlpateUUID: zod_1.z.string(),
9
+ color: zod_1.z.string().nullable(),
10
+ grower: zod_1.z.string().nullable(),
11
+ country: zod_1.z.string().nullable(),
12
+ imageUrl: zod_1.z.string(),
13
+ createdAt: zod_1.z.date(),
14
+ updatedAt: zod_1.z.date(),
15
+ });
16
+ exports.CreateProductImageTemplateSchema = exports.ProductImageTemplateSchema.omit({ createdAt: true, updatedAt: true, uuid: true });
17
+ exports.UpdateProductImageTemplateSchema = exports.CreateProductImageTemplateSchema.partial();
18
+ exports.ProductImageTemplateListSchema = zod_1.z.object({
19
+ list: zod_1.z.array(exports.ProductImageTemplateSchema),
20
+ total: zod_1.z.number(),
21
+ });
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateProductInPackageSchema = exports.CreateProductInPackageSchema = exports.ProductInPackageSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const enum_1 = require("../../enum");
6
+ exports.ProductInPackageSchema = zod_1.z.object({
7
+ uuid: zod_1.z.string(),
8
+ productUUID: zod_1.z.string(),
9
+ packageUUID: zod_1.z.string(),
10
+ quantityOfUnits: zod_1.z.number(),
11
+ perUnits: zod_1.z.number(),
12
+ quantity: zod_1.z.number(),
13
+ status: zod_1.z.nativeEnum(enum_1.ProductInPackageStatusEnum),
14
+ deletedAt: zod_1.z.date().nullable(),
15
+ createdAt: zod_1.z.date(),
16
+ updatedAt: zod_1.z.date(),
17
+ });
18
+ exports.CreateProductInPackageSchema = exports.ProductInPackageSchema.omit({
19
+ uuid: true,
20
+ deletedAt: true,
21
+ createdAt: true,
22
+ updatedAt: true,
23
+ status: true,
24
+ });
25
+ exports.UpdateProductInPackageSchema = exports.ProductInPackageSchema.omit({
26
+ uuid: true,
27
+ deletedAt: true,
28
+ createdAt: true,
29
+ updatedAt: true,
30
+ });
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ClientByWeeksSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.ClientByWeeksSchema = zod_1.z.object({
6
+ weekStart: zod_1.z.coerce.date(),
7
+ weekEnd: zod_1.z.coerce.date(),
8
+ clientUUID: zod_1.z.string(),
9
+ clientName: zod_1.z.string(),
10
+ clientGroup: zod_1.z.string().nullable(),
11
+ hasOrders: zod_1.z.boolean(),
12
+ ordersCount: zod_1.z.number(),
13
+ totalAmount: zod_1.z.number(),
14
+ });
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ClientStatementItemSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const enum_1 = require("../../enum");
6
+ exports.ClientStatementItemSchema = zod_1.z.object({
7
+ date: zod_1.z.coerce.date(),
8
+ type: zod_1.z.nativeEnum(enum_1.ClientStatementTypeEnum),
9
+ amount: zod_1.z.coerce.number(),
10
+ description: zod_1.z.string(),
11
+ documentNumber: zod_1.z.string().nullable(),
12
+ transactionType: zod_1.z.nativeEnum(enum_1.TransactionTypeEnum).nullable(),
13
+ });
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SessionSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const enum_1 = require("../../enum");
6
+ exports.SessionSchema = zod_1.z.object({
7
+ id: zod_1.z.string(),
8
+ platform: zod_1.z.nativeEnum(enum_1.SessionPlatformEnum),
9
+ userAgent: zod_1.z.string().nullable(),
10
+ ipAddress: zod_1.z.string().nullable(),
11
+ lastActiveAt: zod_1.z.coerce.date(),
12
+ createdAt: zod_1.z.coerce.date(),
13
+ });