@floristcloud/api-lib 1.1.0 → 1.2.1

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 (645) hide show
  1. package/commands/auth/index.ts +1 -0
  2. package/commands/auth/login-user.command.ts +0 -1
  3. package/commands/auth/mobile-login-user.command.ts +24 -0
  4. package/commands/auth/reset-password-by-security-code.command.ts +5 -2
  5. package/commands/index.ts +7 -1
  6. package/commands/session/create-ws-ticket.command.ts +10 -0
  7. package/commands/session/get-active-sessions.query.ts +11 -2
  8. package/commands/session/index.ts +2 -0
  9. package/commands/session/validate-ws-ticket-s2s.query.ts +12 -0
  10. package/package.json +5 -3
  11. package/schemas/index.ts +0 -1
  12. package/build/commands/action-log/create-action-log.command.js +0 -15
  13. package/build/commands/action-log/get-action-log-list-for-client.query.js +0 -34
  14. package/build/commands/action-log/get-action-log-list.query.js +0 -35
  15. package/build/commands/action-log/index.js +0 -19
  16. package/build/commands/auth/index.js +0 -23
  17. package/build/commands/auth/login-user.command.js +0 -23
  18. package/build/commands/auth/register-user.command.js +0 -21
  19. package/build/commands/auth/reset-password-by-admin.command.js +0 -15
  20. package/build/commands/auth/reset-password-by-security-code.command.js +0 -21
  21. package/build/commands/auth/reset-password-by-token.command.js +0 -26
  22. package/build/commands/auth/reset-password-by-user.command.js +0 -15
  23. package/build/commands/auth/restore-password-by-security-code.command.js +0 -16
  24. package/build/commands/bank-payment/apply-bank-payment-event.command.js +0 -18
  25. package/build/commands/bank-payment/get-bank-payment-list.query.js +0 -38
  26. package/build/commands/bank-payment/get-bank-payment-match-suggestions.query.js +0 -12
  27. package/build/commands/bank-payment/index.js +0 -20
  28. package/build/commands/bank-payment/update-bank-payment-status.query.js +0 -19
  29. package/build/commands/bank-payment-rule/create-bank-payment-rule.command.js +0 -22
  30. package/build/commands/bank-payment-rule/delete-bank-payment-rule.command.js +0 -14
  31. package/build/commands/bank-payment-rule/get-bank-payment-rule-list.query.js +0 -18
  32. package/build/commands/bank-payment-rule/get-bank-payment-rule.query.js +0 -13
  33. package/build/commands/bank-payment-rule/index.js +0 -21
  34. package/build/commands/bank-payment-rule/update-bank-payment-rule.command.js +0 -22
  35. package/build/commands/branch/create-branch.command.js +0 -23
  36. package/build/commands/branch/delete-branch.command.js +0 -19
  37. package/build/commands/branch/get-branch-list-all-by-client-uuid.query.js +0 -15
  38. package/build/commands/branch/get-branch-list.query.js +0 -18
  39. package/build/commands/branch/get-branch.query.js +0 -15
  40. package/build/commands/branch/index.js +0 -22
  41. package/build/commands/branch/update-branch.command.js +0 -23
  42. package/build/commands/category/create-category.command.js +0 -21
  43. package/build/commands/category/delete-category.command.js +0 -19
  44. package/build/commands/category/get-category-by-uuid.query.js +0 -17
  45. package/build/commands/category/get-category-list.query.js +0 -30
  46. package/build/commands/category/index.js +0 -22
  47. package/build/commands/category/update-category-command.js +0 -23
  48. package/build/commands/category/webshop/get-category-list-for-client.query.js +0 -13
  49. package/build/commands/category-alias/create-category-alias.command.js +0 -17
  50. package/build/commands/category-alias/delete-category-alias.command.js +0 -19
  51. package/build/commands/category-alias/get-category-alias-by-uuid.query.js +0 -17
  52. package/build/commands/category-alias/get-category-alias-list-by-category-uuid.query.js +0 -21
  53. package/build/commands/category-alias/get-category-alias-list.query.js +0 -23
  54. package/build/commands/category-alias/index.js +0 -17
  55. package/build/commands/category-alias/update-category-alias.command.js +0 -18
  56. package/build/commands/category-template/create-category-template.command.js +0 -20
  57. package/build/commands/category-template/get-category-template-by-uuid.query.js +0 -13
  58. package/build/commands/category-template/get-category-template-list.query.js +0 -13
  59. package/build/commands/category-template/index.js +0 -20
  60. package/build/commands/category-template/update-category-template.command.js +0 -20
  61. package/build/commands/client/attach-user-to-client.command.js +0 -17
  62. package/build/commands/client/create-client.command.js +0 -36
  63. package/build/commands/client/delete-client.command.js +0 -19
  64. package/build/commands/client/detach-user-from-client.command.js +0 -15
  65. package/build/commands/client/get-client-calculate.query.js +0 -17
  66. package/build/commands/client/get-client-debt-list.query.js +0 -25
  67. package/build/commands/client/get-client-filters-values.query.js +0 -17
  68. package/build/commands/client/get-client-list.query.js +0 -31
  69. package/build/commands/client/get-client.query.js +0 -15
  70. package/build/commands/client/import-client.command.js +0 -22
  71. package/build/commands/client/index.js +0 -36
  72. package/build/commands/client/marking/create-client-marking.command.js +0 -17
  73. package/build/commands/client/marking/delete-client-marking.command.js +0 -15
  74. package/build/commands/client/marking/get-client-marking-by-client-list.command.js +0 -16
  75. package/build/commands/client/marking/update-client-marking.command.js +0 -17
  76. package/build/commands/client/profile/create-client-individual-profile.command.js +0 -20
  77. package/build/commands/client/profile/create-client-legal-profile.command.js +0 -19
  78. package/build/commands/client/profile/delete-client-individual-profile.command.js +0 -17
  79. package/build/commands/client/profile/delete-client-legal-profile.command.js +0 -17
  80. package/build/commands/client/profile/get-client-individual-profile.query.js +0 -17
  81. package/build/commands/client/profile/index.js +0 -23
  82. package/build/commands/client/profile/update-client-individual-profile.command.js +0 -20
  83. package/build/commands/client/profile/update-client-legal-profile.command.js +0 -19
  84. package/build/commands/client/set-balance-calculate-client.command.js +0 -13
  85. package/build/commands/client/update-client.command.js +0 -38
  86. package/build/commands/client/webshop/register-client-webshop.command.js +0 -23
  87. package/build/commands/client/webshop/update-client-for-client.command.js +0 -21
  88. package/build/commands/client-payment-identifier/create-client-payment-identifier.command.js +0 -22
  89. package/build/commands/client-payment-identifier/delete-client-payment-identifier.command.js +0 -14
  90. package/build/commands/client-payment-identifier/get-client-payment-identifier-list.query.js +0 -27
  91. package/build/commands/client-payment-identifier/index.js +0 -19
  92. package/build/commands/company/createCompany.command.js +0 -20
  93. package/build/commands/company/createCompanyWithUser.command.js +0 -27
  94. package/build/commands/company/deleteCompany.command.js +0 -19
  95. package/build/commands/company/getCompany.query.js +0 -17
  96. package/build/commands/company/getCompanyList.query.js +0 -18
  97. package/build/commands/company/index.js +0 -22
  98. package/build/commands/company/updateCompany.command.js +0 -17
  99. package/build/commands/consignment/create-consignment.command.js +0 -25
  100. package/build/commands/consignment/delete-consignment.command.js +0 -18
  101. package/build/commands/consignment/execute-consignment-product-update.command.js +0 -53
  102. package/build/commands/consignment/export-consignment.command.js +0 -30
  103. package/build/commands/consignment/get-access-clients-consignment.query.js +0 -13
  104. package/build/commands/consignment/get-client-uuids-consignment.query.js +0 -14
  105. package/build/commands/consignment/get-consignment-filters-values.query.js +0 -16
  106. package/build/commands/consignment/get-consignment-list.query.js +0 -42
  107. package/build/commands/consignment/get-consignment.query.js +0 -15
  108. package/build/commands/consignment/import-consignment.command.js +0 -38
  109. package/build/commands/consignment/import-packing-consignment.command.js +0 -26
  110. package/build/commands/consignment/index.js +0 -30
  111. package/build/commands/consignment/update-consignment.command.js +0 -25
  112. package/build/commands/consignment/upsert-access-clients-consignment.command.js +0 -23
  113. package/build/commands/consignment/validate-consignment-distribution.query.js +0 -15
  114. package/build/commands/consignment-import-schema/create-consignment-import-scheme.command.js +0 -17
  115. package/build/commands/consignment-import-schema/get-all-consignment-import-schema.query.js +0 -15
  116. package/build/commands/consignment-import-schema/get-cosignment-import-schema.query.js +0 -15
  117. package/build/commands/consignment-import-schema/index.js +0 -18
  118. package/build/commands/consignment-import-schema/update-consignment-import-schema.command.js +0 -14
  119. package/build/commands/delivery-route/attach-order-list-to-delivery-route.command.js +0 -16
  120. package/build/commands/delivery-route/create-delivery-route.command.js +0 -14
  121. package/build/commands/delivery-route/delete-delivery-route.command.js +0 -14
  122. package/build/commands/delivery-route/detach-order-list-to-delivery-route.command.js +0 -17
  123. package/build/commands/delivery-route/get-delivery-route-list.query.js +0 -25
  124. package/build/commands/delivery-route/get-delivery-route.query.js +0 -15
  125. package/build/commands/delivery-route/index.js +0 -23
  126. package/build/commands/delivery-route/update-delivery-route.command.js +0 -14
  127. package/build/commands/discount-rules/create-discount-rules.command.js +0 -17
  128. package/build/commands/discount-rules/delete-discount-rules.command.js +0 -13
  129. package/build/commands/discount-rules/get-discount-rules-all.query.js +0 -20
  130. package/build/commands/discount-rules/get-discount-rules-extended.query.js +0 -13
  131. package/build/commands/discount-rules/get-discount-rules-list.query.js +0 -18
  132. package/build/commands/discount-rules/get-discount-rules.query.js +0 -13
  133. package/build/commands/discount-rules/index.js +0 -25
  134. package/build/commands/discount-rules/split-quantity-discount-rules-for-client.query.js +0 -15
  135. package/build/commands/discount-rules/split-quantity-discount-rules.query.js +0 -15
  136. package/build/commands/discount-rules/update-discount-rules.command.js +0 -17
  137. package/build/commands/distribution/create-distribution.command.js +0 -15
  138. package/build/commands/distribution/index.js +0 -19
  139. package/build/commands/distribution/update-is-packed-distribution.command.js +0 -17
  140. package/build/commands/distribution/validate-distribution-by-product.query.js +0 -15
  141. package/build/commands/domain/create-domain.command.js +0 -14
  142. package/build/commands/domain/delete-domain.command.js +0 -13
  143. package/build/commands/domain/get-domain-by-uuid.query.js +0 -13
  144. package/build/commands/domain/get-domain-list.query.js +0 -18
  145. package/build/commands/domain/index.js +0 -21
  146. package/build/commands/domain/update-domain.command.js +0 -14
  147. package/build/commands/employee-schedule/create-employee-schedule.command.js +0 -14
  148. package/build/commands/employee-schedule/delete-employee-schedule.command.js +0 -13
  149. package/build/commands/employee-schedule/get-employee-schedule-extended-list.query.js +0 -19
  150. package/build/commands/employee-schedule/get-employee-schedule-list.query.js +0 -38
  151. package/build/commands/employee-schedule/index.js +0 -21
  152. package/build/commands/employee-schedule/update-employee-schedule.command.js +0 -14
  153. package/build/commands/file/deleteFile.command.js +0 -17
  154. package/build/commands/file/index.js +0 -18
  155. package/build/commands/file/uploadFile.command.js +0 -8
  156. package/build/commands/index.js +0 -65
  157. package/build/commands/integration/index.js +0 -18
  158. package/build/commands/integration/telegram/generate-telegram-link.command.js +0 -17
  159. package/build/commands/integration/telegram/get-telegram-link-status.command.js +0 -19
  160. package/build/commands/integration/telegram/index.js +0 -19
  161. package/build/commands/integration/telegram/unlink-telegram.command.js +0 -14
  162. package/build/commands/integration/telegram-staff/generate-telegram-staff-link.command.js +0 -17
  163. package/build/commands/integration/telegram-staff/get-telegram-staff-link-status.command.js +0 -19
  164. package/build/commands/integration/telegram-staff/index.js +0 -19
  165. package/build/commands/integration/telegram-staff/unlink-telegram-staff.command.js +0 -16
  166. package/build/commands/message/get-clients-messages-context-with-unread.query.js +0 -23
  167. package/build/commands/message/get-context-unread-count.query.js +0 -21
  168. package/build/commands/message/get-contexts-with-unread.query.js +0 -22
  169. package/build/commands/message/index.js +0 -22
  170. package/build/commands/message/list-context-messages.query.js +0 -23
  171. package/build/commands/message/mark-context-read.command.js +0 -21
  172. package/build/commands/message/send-context-message.command.js +0 -22
  173. package/build/commands/money-account/create-money-account.command.js +0 -18
  174. package/build/commands/money-account/delete-money-account.command.js +0 -14
  175. package/build/commands/money-account/get-money-account-by-criteria.query.js +0 -15
  176. package/build/commands/money-account/get-money-account-list.query.js +0 -21
  177. package/build/commands/money-account/get-money-account.query.js +0 -13
  178. package/build/commands/money-account/index.js +0 -22
  179. package/build/commands/money-account/update-money-account.command.js +0 -19
  180. package/build/commands/notification/index.js +0 -17
  181. package/build/commands/notification/send-staff-notification-s2s.command.js +0 -21
  182. package/build/commands/order/apply-order-discount.command.js +0 -18
  183. package/build/commands/order/copy-order.command.js +0 -13
  184. package/build/commands/order/create-order.command.js +0 -26
  185. package/build/commands/order/delete-order.command.js +0 -14
  186. package/build/commands/order/export-order-invoice.command.js +0 -12
  187. package/build/commands/order/get-order-list.query.js +0 -49
  188. package/build/commands/order/get-order.query.js +0 -15
  189. package/build/commands/order/group/deletet-group-order.command.js +0 -18
  190. package/build/commands/order/group/get-group-order-invoice-info.query.js +0 -27
  191. package/build/commands/order/group/merge-orders.command.js +0 -26
  192. package/build/commands/order/group/send-group-order-invoice.command.js +0 -21
  193. package/build/commands/order/group/split-group-order.command.js +0 -17
  194. package/build/commands/order/group/update-group-order-status.command.js +0 -20
  195. package/build/commands/order/group/update-group-order-tag.command.js +0 -19
  196. package/build/commands/order/group/update-group-order-type.command.js +0 -20
  197. package/build/commands/order/index.js +0 -41
  198. package/build/commands/order/send-order-invoice.command.js +0 -26
  199. package/build/commands/order/update-order.command.js +0 -30
  200. package/build/commands/order/webshop/create-cart.command.js +0 -15
  201. package/build/commands/order/webshop/get-order-for-client.query.js +0 -15
  202. package/build/commands/order/webshop/get-order-list-for-client.query.js +0 -53
  203. package/build/commands/order/webshop/get-order-sales-by-month.query.js +0 -16
  204. package/build/commands/order/webshop/update-cart.command.js +0 -27
  205. package/build/commands/order/zeroing-receipt-delivery-order.command.js +0 -13
  206. package/build/commands/order-delivery/create-order-delivery.command.js +0 -21
  207. package/build/commands/order-delivery/delete-order-delivery.command.js +0 -16
  208. package/build/commands/order-delivery/index.js +0 -19
  209. package/build/commands/order-delivery/update-order-delivery.command.js +0 -25
  210. package/build/commands/order-product/create-order-product.command.js +0 -22
  211. package/build/commands/order-product/delete-order-product.command.js +0 -16
  212. package/build/commands/order-product/get-order-product-list-all.query.js +0 -15
  213. package/build/commands/order-product/get-order-product-list-for-distribute.query.js +0 -18
  214. package/build/commands/order-product/get-order-product-list.query.js +0 -19
  215. package/build/commands/order-product/get-order-product.query.js +0 -15
  216. package/build/commands/order-product/group/delete-group-order-product.command.js +0 -18
  217. package/build/commands/order-product/group/update-group-order-product-order.command.js +0 -24
  218. package/build/commands/order-product/group/update-group-order-product-tag.command.js +0 -19
  219. package/build/commands/order-product/group/verify-group-order-product.command.js +0 -19
  220. package/build/commands/order-product/group/zeroing-receipt-order-product.command.js +0 -17
  221. package/build/commands/order-product/index.js +0 -35
  222. package/build/commands/order-product/update-order-product.command.js +0 -23
  223. package/build/commands/order-product/verify-order-product.command.js +0 -15
  224. package/build/commands/order-product/webshop/create-order-product-for-client.command.js +0 -18
  225. package/build/commands/order-product/webshop/get-active-stepper-positions-order.query.js +0 -14
  226. package/build/commands/order-product/webshop/get-order-product-for-client-list.query.js +0 -15
  227. package/build/commands/order-product/webshop/set-order-product-quantity-webshop.command.js +0 -14
  228. package/build/commands/order-product/webshop/update-order-product-for-client.command.js +0 -19
  229. package/build/commands/package/create-package.command.js +0 -14
  230. package/build/commands/package/delete-package.command.js +0 -16
  231. package/build/commands/package/get-package-by-uuid.query.js +0 -12
  232. package/build/commands/package/get-package-filters-values.query.js +0 -27
  233. package/build/commands/package/get-package-list.query.js +0 -21
  234. package/build/commands/package/index.js +0 -23
  235. package/build/commands/package/reorder-packages.command.js +0 -21
  236. package/build/commands/package/update-package.command.js +0 -14
  237. package/build/commands/package/validate-product-package.query.js +0 -15
  238. package/build/commands/pre-order/create-order-from-pre-order.command.js +0 -20
  239. package/build/commands/pre-order/create-pre-order.command.js +0 -14
  240. package/build/commands/pre-order/delete-pre-order.command.js +0 -13
  241. package/build/commands/pre-order/export-pre-order.command.js +0 -12
  242. package/build/commands/pre-order/get-pre-order-by-pre-order-collection-uuid.command.js +0 -12
  243. package/build/commands/pre-order/get-pre-order-list.query.js +0 -26
  244. package/build/commands/pre-order/get-pre-order.query.js +0 -12
  245. package/build/commands/pre-order/get-standing-order-import-template.command.js +0 -13
  246. package/build/commands/pre-order/group/analyze-copy-pre-orders.command.js +0 -23
  247. package/build/commands/pre-order/group/analyze-create-orders-from-pre-orders.command.js +0 -41
  248. package/build/commands/pre-order/group/analyze-create-pre-orders-from-standing-orders.command.js +0 -38
  249. package/build/commands/pre-order/group/group-copy-pre-orders-to-collection.command.js +0 -40
  250. package/build/commands/pre-order/group/group-create-orders-from-pre-orders.command.js +0 -39
  251. package/build/commands/pre-order/group/group-create-pre-orders-from-standing-orders.command.js +0 -36
  252. package/build/commands/pre-order/group/group-delete-pre-order.command.js +0 -18
  253. package/build/commands/pre-order/group/group-update-pre-order.command.js +0 -20
  254. package/build/commands/pre-order/group/index.js +0 -26
  255. package/build/commands/pre-order/group/merge-pre-orders.command.js +0 -33
  256. package/build/commands/pre-order/import-standing-order.command.js +0 -24
  257. package/build/commands/pre-order/index.js +0 -29
  258. package/build/commands/pre-order/update-pre-order.command.js +0 -14
  259. package/build/commands/pre-order/webshop/checkout-pre-order-webshop.command.js +0 -20
  260. package/build/commands/pre-order/webshop/create-pre-order-webshop.command.js +0 -14
  261. package/build/commands/pre-order/webshop/delete-pre-order-webshop.command.js +0 -13
  262. package/build/commands/pre-order/webshop/get-pre-order-list-webshop.command.js +0 -19
  263. package/build/commands/pre-order/webshop/index.js +0 -21
  264. package/build/commands/pre-order/webshop/update-pre-order-webshop.command.js +0 -14
  265. package/build/commands/pre-order-collection/copy-pre-order-collection.command.js +0 -13
  266. package/build/commands/pre-order-collection/create-pre-order-collection.command.js +0 -14
  267. package/build/commands/pre-order-collection/delete-pre-order-collection.command.js +0 -14
  268. package/build/commands/pre-order-collection/get-pre-order-collection-all.query.js +0 -13
  269. package/build/commands/pre-order-collection/get-pre-order-collection-list.query.js +0 -23
  270. package/build/commands/pre-order-collection/get-pre-order-collection.query.js +0 -13
  271. package/build/commands/pre-order-collection/index.js +0 -24
  272. package/build/commands/pre-order-collection/match-images-for-collection.command.js +0 -20
  273. package/build/commands/pre-order-collection/update-pre-order-collection.command.js +0 -14
  274. package/build/commands/pre-order-collection/webshop/get-pre-order-collection-list-with-categories.query.js +0 -13
  275. package/build/commands/pre-order-collection-item/create-group-pre-order-collection-item.command.js +0 -16
  276. package/build/commands/pre-order-collection-item/create-pre-order-collection-item.command.js +0 -14
  277. package/build/commands/pre-order-collection-item/delete-group-pre-order-collection-item.command.js +0 -19
  278. package/build/commands/pre-order-collection-item/delete-pre-order-collection-item.command.js +0 -14
  279. package/build/commands/pre-order-collection-item/execute-pre-order-collection-item-update.command.js +0 -50
  280. package/build/commands/pre-order-collection-item/export-pre-order-collection-item-with-clients-horizontal.query.js +0 -16
  281. package/build/commands/pre-order-collection-item/export-pre-order-collection-item-with-clients-vertical.query.js +0 -19
  282. package/build/commands/pre-order-collection-item/get-active-pre-order-collection-item-list.query.js +0 -19
  283. package/build/commands/pre-order-collection-item/get-pre-order-collection-item-extended-with-clients-pre-order-product-list.query.js +0 -22
  284. package/build/commands/pre-order-collection-item/get-pre-order-collection-item-list-filter-values-for-client.query.js +0 -26
  285. package/build/commands/pre-order-collection-item/get-pre-order-collection-item-list-filter-values.query.js +0 -24
  286. package/build/commands/pre-order-collection-item/get-pre-order-collection-item-list-for-client.query.js +0 -24
  287. package/build/commands/pre-order-collection-item/get-pre-order-collection-item-list.query.js +0 -24
  288. package/build/commands/pre-order-collection-item/get-pre-order-collection-item.query.js +0 -13
  289. package/build/commands/pre-order-collection-item/index.js +0 -42
  290. package/build/commands/pre-order-collection-item/move-pre-order-collection-items-analyze.command.js +0 -51
  291. package/build/commands/pre-order-collection-item/move-pre-order-collection-items-execute.command.js +0 -16
  292. package/build/commands/pre-order-collection-item/multiplicity-option/create-pre-order-collection-item-multiplicity-option.command.js +0 -20
  293. package/build/commands/pre-order-collection-item/multiplicity-option/delete-pre-order-collection-item-multiplicity-option.command.js +0 -14
  294. package/build/commands/pre-order-collection-item/multiplicity-option/get-pre-order-collection-item-multiplicity-option-titles.query.js +0 -14
  295. package/build/commands/pre-order-collection-item/multiplicity-option/get-pre-order-collection-item-multiplicity-options.query.js +0 -15
  296. package/build/commands/pre-order-collection-item/multiplicity-option/reorder-pre-order-collection-item-multiplicity-options.command.js +0 -21
  297. package/build/commands/pre-order-collection-item/multiplicity-option/update-pre-order-collection-item-multiplicity-option.command.js +0 -22
  298. package/build/commands/pre-order-collection-item/update-group-pre-order-collection-item.command.js +0 -20
  299. package/build/commands/pre-order-collection-item/update-pre-order-collection-item-product-maching.command.js +0 -18
  300. package/build/commands/pre-order-collection-item/update-pre-order-collection-item.command.js +0 -14
  301. package/build/commands/pre-order-product/create-manually-pre-order-product-for-standing-order.command.js +0 -22
  302. package/build/commands/pre-order-product/create-manually-pre-order-product.command.js +0 -23
  303. package/build/commands/pre-order-product/create-pre-order-product-webshop.command.js +0 -14
  304. package/build/commands/pre-order-product/create-pre-order-product.command.js +0 -14
  305. package/build/commands/pre-order-product/delete-many-pre-order-product-by-pre-order-collection-item.command.js +0 -14
  306. package/build/commands/pre-order-product/delete-pre-order-product-webshop.command.js +0 -14
  307. package/build/commands/pre-order-product/delete-pre-order-product.command.js +0 -13
  308. package/build/commands/pre-order-product/get-active-stepper-positions.query.js +0 -17
  309. package/build/commands/pre-order-product/get-pre-order-product-extended-list.query.js +0 -18
  310. package/build/commands/pre-order-product/get-pre-order-product-list.query.js +0 -18
  311. package/build/commands/pre-order-product/get-pre-order-product.query.js +0 -13
  312. package/build/commands/pre-order-product/get-pre-order-products-by-pre-order-list.command.js +0 -17
  313. package/build/commands/pre-order-product/get-pre-order-products-by-pre-order.command.js +0 -13
  314. package/build/commands/pre-order-product/group/move-group-pre-order-product.command.js +0 -20
  315. package/build/commands/pre-order-product/index.js +0 -34
  316. package/build/commands/pre-order-product/purchase-many-pre-order-product-by-pre-order-collection-item.command.js +0 -18
  317. package/build/commands/pre-order-product/set-pre-order-product-quantity-webshop.command.js +0 -14
  318. package/build/commands/pre-order-product/update-pre-order-product-webshop.command.js +0 -14
  319. package/build/commands/pre-order-product/update-pre-order-product.command.js +0 -14
  320. package/build/commands/product/create-product.command.js +0 -43
  321. package/build/commands/product/delete-product.command.js +0 -16
  322. package/build/commands/product/generate-product-qr.query.js +0 -27
  323. package/build/commands/product/get-all-product-by-consignment.query.js +0 -15
  324. package/build/commands/product/get-product-list-filters-values.query.js +0 -38
  325. package/build/commands/product/get-product-list.query.js +0 -26
  326. package/build/commands/product/get-product-quantity-calculate.query.js +0 -25
  327. package/build/commands/product/get-product.query.js +0 -15
  328. package/build/commands/product/get-products-unique.query.js +0 -22
  329. package/build/commands/product/group/delete-group-product.command.js +0 -25
  330. package/build/commands/product/group/index.js +0 -23
  331. package/build/commands/product/group/update-group-product-category.command.js +0 -19
  332. package/build/commands/product/group/update-group-product-consignment.command.js +0 -19
  333. package/build/commands/product/group/update-group-product-is-open-by-consignment.command.js +0 -18
  334. package/build/commands/product/group/update-group-product-is-open.command.js +0 -19
  335. package/build/commands/product/group/update-group-product-prices.command.js +0 -24
  336. package/build/commands/product/group/update-group-product-update-batch.command.js +0 -44
  337. package/build/commands/product/index.js +0 -39
  338. package/build/commands/product/match-images-for-products.command.js +0 -20
  339. package/build/commands/product/multiplicity-option/create-product-multiplicity-option.command.js +0 -20
  340. package/build/commands/product/multiplicity-option/delete-product-multiplicity-option.command.js +0 -14
  341. package/build/commands/product/multiplicity-option/get-product-multiplicity-option-titles.query.js +0 -14
  342. package/build/commands/product/multiplicity-option/get-product-multiplicity-options.query.js +0 -15
  343. package/build/commands/product/multiplicity-option/reorder-product-multiplicity-options.command.js +0 -21
  344. package/build/commands/product/multiplicity-option/update-product-multiplicity-option.command.js +0 -22
  345. package/build/commands/product/update-product.command.js +0 -43
  346. package/build/commands/product/webshop/get-client-product-list-filters-values.query.js +0 -31
  347. package/build/commands/product/webshop/get-product-delivery-dates.query.js +0 -16
  348. package/build/commands/product/webshop/get-product-for-client.query.js +0 -15
  349. package/build/commands/product/webshop/get-product-list-for-client.query.js +0 -29
  350. package/build/commands/product-configuration/create-product-configuration.command.js +0 -14
  351. package/build/commands/product-configuration/delete-product-configuration.command.js +0 -15
  352. package/build/commands/product-configuration/find-product-configuration-by-attributes.query.js +0 -24
  353. package/build/commands/product-configuration/get-product-configuration-list.query.js +0 -28
  354. package/build/commands/product-configuration/get-product-configuration.query.js +0 -15
  355. package/build/commands/product-configuration/index.js +0 -22
  356. package/build/commands/product-configuration/update-product-configuration.command.js +0 -14
  357. package/build/commands/product-image/alias/create-product-image-alias.command.js +0 -17
  358. package/build/commands/product-image/alias/delete-product-image-alias.command.js +0 -15
  359. package/build/commands/product-image/alias/update-product-image-alias.command.js +0 -17
  360. package/build/commands/product-image/create-product-image.command.js +0 -23
  361. package/build/commands/product-image/delete-product-image.command.js +0 -13
  362. package/build/commands/product-image/get-product-image-filter-values.query.js +0 -24
  363. package/build/commands/product-image/get-product-image-list.query.js +0 -29
  364. package/build/commands/product-image/get-product-image.query.js +0 -13
  365. package/build/commands/product-image/group/delete-group-product-image.command.js +0 -18
  366. package/build/commands/product-image/group/update-group-product-image.command.js +0 -20
  367. package/build/commands/product-image/index.js +0 -28
  368. package/build/commands/product-image/sync-product-image.command.js +0 -14
  369. package/build/commands/product-image/update-product-image.command.js +0 -23
  370. package/build/commands/product-image-template/create-product-image-template.command.js +0 -15
  371. package/build/commands/product-image-template/delete-group-product-image-template.command.js +0 -17
  372. package/build/commands/product-image-template/delete-product-image-template.command.js +0 -13
  373. package/build/commands/product-image-template/get-product-image-template-list.query.js +0 -20
  374. package/build/commands/product-image-template/get-product-image-template.query.js +0 -13
  375. package/build/commands/product-image-template/index.js +0 -23
  376. package/build/commands/product-image-template/start-parsing-product-image-template.command.js +0 -14
  377. package/build/commands/product-image-template/update-product-image-template.command.js +0 -15
  378. package/build/commands/product-in-package/create-product-in-package.command.js +0 -15
  379. package/build/commands/product-in-package/delete-from-orders-by-package.command.js +0 -16
  380. package/build/commands/product-in-package/delete-product-in-package.command.js +0 -14
  381. package/build/commands/product-in-package/get-product-in-package-by-uuid.query.js +0 -13
  382. package/build/commands/product-in-package/index.js +0 -21
  383. package/build/commands/product-in-package/update-product-in-package.command.js +0 -15
  384. package/build/commands/report/export-client-statement.query.js +0 -31
  385. package/build/commands/report/export-inventory-movement.query.js +0 -52
  386. package/build/commands/report/export-inventory-stock.query.js +0 -32
  387. package/build/commands/report/export-inventory-turnover.query.js +0 -56
  388. package/build/commands/report/export-sales-by-client.query.js +0 -39
  389. package/build/commands/report/export-sales-revenue.query.js +0 -36
  390. package/build/commands/report/get-report-by-client-weeks.query.js +0 -31
  391. package/build/commands/report/get-report-for-period.query.js +0 -44
  392. package/build/commands/report/get-report-group-by-client.query.js +0 -46
  393. package/build/commands/report/get-report-group-by-position.query.js +0 -68
  394. package/build/commands/report/index.js +0 -26
  395. package/build/commands/session/get-active-sessions.query.js +0 -12
  396. package/build/commands/session/index.js +0 -11
  397. package/build/commands/session/session-logout.command.js +0 -11
  398. package/build/commands/session/session-revoke-all.command.js +0 -11
  399. package/build/commands/session/validate-session-s2s.query.js +0 -25
  400. package/build/commands/settings/get-settings-for-admin.query.js +0 -13
  401. package/build/commands/settings/get-settings.query.js +0 -13
  402. package/build/commands/settings/index.js +0 -19
  403. package/build/commands/settings/update-settings.command.js +0 -14
  404. package/build/commands/transaction/apply-prepayment-transaction.command.js +0 -17
  405. package/build/commands/transaction/create-transaction.command.js +0 -24
  406. package/build/commands/transaction/delete-transaction.command.js +0 -16
  407. package/build/commands/transaction/export-transactions.command.js +0 -36
  408. package/build/commands/transaction/generate-check-transaction.command.js +0 -18
  409. package/build/commands/transaction/generate-pre-payment-check.command.js +0 -18
  410. package/build/commands/transaction/get-sum-transaction-by-money-account.query.js +0 -32
  411. package/build/commands/transaction/get-transaction-list.query.js +0 -38
  412. package/build/commands/transaction/get-transaction-summary.query.js +0 -39
  413. package/build/commands/transaction/get-transaction.query.js +0 -15
  414. package/build/commands/transaction/index.js +0 -28
  415. package/build/commands/transaction/update-transaction.command.js +0 -19
  416. package/build/commands/transaction/webshop/get-transaction-list-for-client.query.js +0 -37
  417. package/build/commands/type/create-type.command.js +0 -18
  418. package/build/commands/type/delete-type.command.js +0 -17
  419. package/build/commands/type/get-type-by-criteria.query.js +0 -15
  420. package/build/commands/type/get-type-by-uuid.query.js +0 -17
  421. package/build/commands/type/get-type-list.query.js +0 -24
  422. package/build/commands/type/index.js +0 -24
  423. package/build/commands/type/update-type-rank-many.command.js +0 -22
  424. package/build/commands/type/update-type-rank.command.js +0 -19
  425. package/build/commands/type/update-type.command.js +0 -18
  426. package/build/commands/user/attachUserToCompany.command.js +0 -13
  427. package/build/commands/user/create-user-global.command.js +0 -28
  428. package/build/commands/user/createUser.command.js +0 -14
  429. package/build/commands/user/createUserByClientId.command.js +0 -29
  430. package/build/commands/user/createUserForCompany.command.js +0 -27
  431. package/build/commands/user/generate-and-send-password-by-admin.command.js +0 -16
  432. package/build/commands/user/get-user-list-s2s.query.js +0 -13
  433. package/build/commands/user/get-user-list.query.js +0 -26
  434. package/build/commands/user/getUser.command.js +0 -14
  435. package/build/commands/user/index.js +0 -27
  436. package/build/commands/user/update-password-by-user.command.js +0 -15
  437. package/build/commands/user/update-user.command.js +0 -19
  438. package/build/commands/user/updateRole.command.js +0 -18
  439. package/build/commands/work-session/close-work-session-for-employee.command.js +0 -13
  440. package/build/commands/work-session/create-many-work-session.command.js +0 -17
  441. package/build/commands/work-session/create-work-session-for-employee.command.js +0 -14
  442. package/build/commands/work-session/delete-work-session.command.js +0 -13
  443. package/build/commands/work-session/export-overtime.query.js +0 -26
  444. package/build/commands/work-session/get-work-session-extended-list.query.js +0 -21
  445. package/build/commands/work-session/index.js +0 -23
  446. package/build/commands/work-session/update-work-session.command.js +0 -14
  447. package/build/commands/wrire-off-archive/create-wrire-off-archive.command.js +0 -20
  448. package/build/commands/wrire-off-archive/get-write-off-archive-files.command.js +0 -22
  449. package/build/commands/wrire-off-archive/index.js +0 -19
  450. package/build/commands/wrire-off-archive/info-wrire-off-archive.command.js +0 -20
  451. package/build/commands/write-off/create-write-off-from-order.command.js +0 -21
  452. package/build/commands/write-off/create-write-off-from-pending.command.js +0 -30
  453. package/build/commands/write-off/create-write-off-images.command.js +0 -17
  454. package/build/commands/write-off/create-write-off.command.js +0 -20
  455. package/build/commands/write-off/delete-write-off-image.command.js +0 -15
  456. package/build/commands/write-off/delete-write-off.command.js +0 -16
  457. package/build/commands/write-off/get-write-off-list.query.js +0 -27
  458. package/build/commands/write-off/get-write-off-reason-list.query.js +0 -16
  459. package/build/commands/write-off/get-write-off-sum-by-order.query.js +0 -14
  460. package/build/commands/write-off/get-write-off.query.js +0 -13
  461. package/build/commands/write-off/index.js +0 -29
  462. package/build/commands/write-off/update-write-off-price.command.js +0 -18
  463. package/build/commands/write-off/update-write-off-status.command.js +0 -29
  464. package/build/commands/write-off/webshop/create-write-off-from-order-for-client.command.js +0 -20
  465. package/build/commands/write-off/webshop/get-write-off-list-by-order.query.js +0 -15
  466. package/build/commands/write-off/webshop/index.js +0 -18
  467. package/build/constant/error-i18n-key.js +0 -21
  468. package/build/constant/error.js +0 -915
  469. package/build/constant/index.js +0 -19
  470. package/build/constant/verbose.js +0 -22
  471. package/build/enum/action-log-type.enum.js +0 -18
  472. package/build/enum/bank-payment-event-status.enum.js +0 -9
  473. package/build/enum/bank-payment-rule-match-type.enum.js +0 -10
  474. package/build/enum/bank-provider.enum.js +0 -7
  475. package/build/enum/category-status.enum.js +0 -8
  476. package/build/enum/chat-has-manager-mode.enum.js +0 -9
  477. package/build/enum/chat-no-manager-mode.enum.js +0 -8
  478. package/build/enum/client-import-entity-property.enum.js +0 -37
  479. package/build/enum/client-legal-type.enum.js +0 -8
  480. package/build/enum/client-statement-type.enum.js +0 -9
  481. package/build/enum/client-status.enum.js +0 -9
  482. package/build/enum/client-type.enum.js +0 -8
  483. package/build/enum/companyStatus.enum.js +0 -9
  484. package/build/enum/consignment-access-client-status.enum.js +0 -8
  485. package/build/enum/consignment-distribution-validation-status.enum.js +0 -8
  486. package/build/enum/consignment-distribution-validation-type.enum.js +0 -8
  487. package/build/enum/consignment-import-errors.enum.js +0 -9
  488. package/build/enum/consignment-import-schema-relation-entity-property.enum.js +0 -38
  489. package/build/enum/consignment-status.enum.js +0 -9
  490. package/build/enum/consignment-write-off-archives-status.enum.js +0 -9
  491. package/build/enum/context-message-context-type.enum.js +0 -9
  492. package/build/enum/country-code.enum.js +0 -264
  493. package/build/enum/delivery-route-status.enum.js +0 -9
  494. package/build/enum/discount-price-routing.enum.js +0 -10
  495. package/build/enum/discount-rules-apply-type.enum.js +0 -8
  496. package/build/enum/discount-rules-mode-type.enum.js +0 -8
  497. package/build/enum/discount-rules-status.enum.js +0 -8
  498. package/build/enum/discount-rules-type.enum.js +0 -11
  499. package/build/enum/file-expire-prefix.enum.js +0 -8
  500. package/build/enum/image-type.enum.js +0 -8
  501. package/build/enum/import-error-code.enum.js +0 -11
  502. package/build/enum/index.js +0 -82
  503. package/build/enum/inventory-movement-type.enum.js +0 -10
  504. package/build/enum/language.enum.js +0 -8
  505. package/build/enum/match-confidence.enum.js +0 -9
  506. package/build/enum/menu-items-url.enum.js +0 -15
  507. package/build/enum/money-account-status.enum.js +0 -8
  508. package/build/enum/notification-channel.enum.js +0 -15
  509. package/build/enum/notification-status.enum.js +0 -10
  510. package/build/enum/notification-type.enum.js +0 -12
  511. package/build/enum/order-active-status-list.js +0 -13
  512. package/build/enum/order-balance-status-list.js +0 -11
  513. package/build/enum/order-by.enum.js +0 -8
  514. package/build/enum/order-delivery-status.enum.js +0 -8
  515. package/build/enum/order-distribute-status-list.js +0 -10
  516. package/build/enum/order-restricted-status-list.js +0 -5
  517. package/build/enum/order-status.enum.js +0 -17
  518. package/build/enum/order-type.enum.js +0 -8
  519. package/build/enum/order-webshop-available-status-list.js +0 -15
  520. package/build/enum/package-status.enum.js +0 -9
  521. package/build/enum/package-type.enum.js +0 -36
  522. package/build/enum/parse-status.enum.js +0 -9
  523. package/build/enum/position-report-type.enum.js +0 -8
  524. package/build/enum/pre-order-aggregation-mode.enum.js +0 -9
  525. package/build/enum/pre-order-collection-item-import-entity-property.enum.js +0 -29
  526. package/build/enum/pre-order-collection-status.enum.js +0 -8
  527. package/build/enum/pre-order-collection-type.enum.js +0 -8
  528. package/build/enum/pre-order-status.enum.js +0 -12
  529. package/build/enum/product-image-created-from.enum.js +0 -8
  530. package/build/enum/product-image-order.enum.js +0 -8
  531. package/build/enum/product-in-package-status.enum.js +0 -8
  532. package/build/enum/report-period-type.enum.js +0 -9
  533. package/build/enum/sales-unit.enum.js +0 -9
  534. package/build/enum/security-code-status.enum.js +0 -11
  535. package/build/enum/session-platform.enum.js +0 -8
  536. package/build/enum/transaction-type-groups.js +0 -16
  537. package/build/enum/transaction-type.enum.js +0 -10
  538. package/build/enum/user-type.enum.js +0 -8
  539. package/build/enum/userRole.enum.js +0 -17
  540. package/build/enum/userStatus.enum.js +0 -9
  541. package/build/enum/webshop-main-display-mode.enum.js +0 -8
  542. package/build/enum/webshop-mode.enum.js +0 -8
  543. package/build/enum/write-off-status.enum.js +0 -9
  544. package/build/helpers/date.helper.js +0 -15
  545. package/build/helpers/index.js +0 -17
  546. package/build/index.js +0 -22
  547. package/build/schemas/action-log/action-log-payload.schema.js +0 -29
  548. package/build/schemas/action-log/action-log.schema.js +0 -105
  549. package/build/schemas/action-log/index.js +0 -30
  550. package/build/schemas/action-log/order-create-action-log.schema.js +0 -8
  551. package/build/schemas/action-log/order-delete-action-log-payload.schema.js +0 -8
  552. package/build/schemas/action-log/order-info.schema.js +0 -14
  553. package/build/schemas/action-log/order-product-delete-action-log.schema.js +0 -8
  554. package/build/schemas/action-log/order-product-info.schema.js +0 -16
  555. package/build/schemas/action-log/order-product-update-action-log.schema.js +0 -10
  556. package/build/schemas/action-log/order-update-action-log.schema.js +0 -9
  557. package/build/schemas/action-log/pre-order-create-action-log.schema.js +0 -8
  558. package/build/schemas/action-log/pre-order-delete-action-log.schema.js +0 -8
  559. package/build/schemas/action-log/pre-order-info.schema.js +0 -11
  560. package/build/schemas/action-log/pre-order-product-delete-action-log.schema.js +0 -8
  561. package/build/schemas/action-log/pre-order-product-info.schema.js +0 -13
  562. package/build/schemas/action-log/pre-order-product-update-action-log.schema.js +0 -11
  563. package/build/schemas/action-log/transaction-add-action-log.schema.js +0 -8
  564. package/build/schemas/action-log/transaction-delete-action-log.schema.js +0 -8
  565. package/build/schemas/action-log/transaction-info.schema.js +0 -13
  566. package/build/schemas/bank-payment/bank-payment.schema.js +0 -26
  567. package/build/schemas/bank-payment/get-bank-payment-match-suggestions.schema.js +0 -18
  568. package/build/schemas/bank-payment/index.js +0 -17
  569. package/build/schemas/bank-payment-rule/bank-payment-rule.schema.js +0 -19
  570. package/build/schemas/branch/branch-list.schema.js +0 -9
  571. package/build/schemas/branch/branch.schema.js +0 -17
  572. package/build/schemas/category/category.schema.js +0 -20
  573. package/build/schemas/category-alias/category-alias.schema.js +0 -17
  574. package/build/schemas/category-template/category-template.schema.js +0 -19
  575. package/build/schemas/category-template/index.js +0 -17
  576. package/build/schemas/client/client-debt.schema.js +0 -22
  577. package/build/schemas/client/client-individual-profile.schema.js +0 -13
  578. package/build/schemas/client/client-legal-profile.schema.js +0 -25
  579. package/build/schemas/client/client-marking.schema.js +0 -8
  580. package/build/schemas/client/client.schema.js +0 -53
  581. package/build/schemas/client/index.js +0 -21
  582. package/build/schemas/client-payment-identifier/client-payment-identifier.schema.js +0 -20
  583. package/build/schemas/company/company.schema.js +0 -14
  584. package/build/schemas/company/companyList.schema.js +0 -9
  585. package/build/schemas/consignment/consignment-distribution-validation.schema.js +0 -20
  586. package/build/schemas/consignment/consignment-list.schema.js +0 -9
  587. package/build/schemas/consignment/consignment.schema.js +0 -55
  588. package/build/schemas/consignment-import-schema/consignment-import-schema.scheme.js +0 -32
  589. package/build/schemas/consignment-import-schema/index.js +0 -17
  590. package/build/schemas/consignment-import-schema-relation/consignment-import-schema-relation.schema.js +0 -12
  591. package/build/schemas/delete-data-response.schema.js +0 -7
  592. package/build/schemas/delivery-route/delivery-route.schema.js +0 -49
  593. package/build/schemas/discount-rules/discount-rules.schema.js +0 -108
  594. package/build/schemas/distribution/distribution.schema.js +0 -24
  595. package/build/schemas/distribution/validate-distribution-by-product.schema.js +0 -9
  596. package/build/schemas/domain/domain.schema.js +0 -23
  597. package/build/schemas/employee-schedule/employee-schedule.schema.js +0 -42
  598. package/build/schemas/error-message.schema.js +0 -10
  599. package/build/schemas/file/file.schema.js +0 -7
  600. package/build/schemas/file/index.js +0 -17
  601. package/build/schemas/index.js +0 -77
  602. package/build/schemas/message/client-inbox-item.schema.js +0 -15
  603. package/build/schemas/message/context-inbox.schema.js +0 -22
  604. package/build/schemas/message/context-message-list.schema.js +0 -12
  605. package/build/schemas/message/context-message.schema.js +0 -18
  606. package/build/schemas/message/index.js +0 -20
  607. package/build/schemas/messenger-profile/index.js +0 -17
  608. package/build/schemas/messenger-profile/user-messenger-profile.schema.js +0 -18
  609. package/build/schemas/money-account/money-account.schema.js +0 -16
  610. package/build/schemas/order/order.schema.js +0 -62
  611. package/build/schemas/order-delivery/order-delivery.schema.js +0 -14
  612. package/build/schemas/order-product/order-product-list.schema.js +0 -13
  613. package/build/schemas/order-product/order-product-multiplicity-optiom.schema.js +0 -10
  614. package/build/schemas/order-product/order-product.schema.js +0 -70
  615. package/build/schemas/package/package.schema.js +0 -93
  616. package/build/schemas/package/validate-package.schema.js +0 -9
  617. package/build/schemas/pre-order/pre-order-copy.schema.js +0 -21
  618. package/build/schemas/pre-order/pre-order.schema.js +0 -49
  619. package/build/schemas/pre-order-collection/pre-order-collection.schema.js +0 -53
  620. package/build/schemas/pre-order-collection-item/pre-order-collection-item-multiplicity-option.schema.js +0 -11
  621. package/build/schemas/pre-order-collection-item/pre-order-collection-item.schema.js +0 -132
  622. package/build/schemas/pre-order-product/pre-order-product.schema.js +0 -126
  623. package/build/schemas/product/product-list.schema.js +0 -13
  624. package/build/schemas/product/product-multiplicity-option.schema.js +0 -11
  625. package/build/schemas/product/product.schema.js +0 -107
  626. package/build/schemas/product-configuration/product-configuration.schema.js +0 -34
  627. package/build/schemas/product-image/product-image-alias.schema.js +0 -8
  628. package/build/schemas/product-image/product-image.schema.js +0 -32
  629. package/build/schemas/product-image-template/product-image-template.schema.js +0 -21
  630. package/build/schemas/product-in-package/product-in-package.schema.js +0 -30
  631. package/build/schemas/report/client-by-weeks.schema.js +0 -14
  632. package/build/schemas/report/client-statement.schema.js +0 -13
  633. package/build/schemas/session/session.schema.js +0 -13
  634. package/build/schemas/settings/settings.schema.js +0 -224
  635. package/build/schemas/transaction/transaction-list.schema.js +0 -13
  636. package/build/schemas/transaction/transaction.schema.js +0 -31
  637. package/build/schemas/type/type.schema.js +0 -17
  638. package/build/schemas/type/typeList.schema.js +0 -9
  639. package/build/schemas/user/user.schema.js +0 -30
  640. package/build/schemas/work-session/work-session.schema.js +0 -41
  641. package/build/schemas/write-off/write-off-image.schema.js +0 -11
  642. package/build/schemas/write-off/write-off-list.schema.js +0 -9
  643. package/build/schemas/write-off/write-off.schema.js +0 -31
  644. package/build/types/client-import-data.type.js +0 -3
  645. package/build/types/index.js +0 -17
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UploadFileResponseSchema = void 0;
4
- const zod_1 = require("zod");
5
- exports.UploadFileResponseSchema = zod_1.z.object({
6
- url: zod_1.z.string(),
7
- });
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./file.schema"), exports);
@@ -1,77 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./company/company.schema"), exports);
18
- __exportStar(require("./client/client.schema"), exports);
19
- __exportStar(require("./user/user.schema"), exports);
20
- __exportStar(require("./product/product.schema"), exports);
21
- __exportStar(require("./product/product-list.schema"), exports);
22
- __exportStar(require("./write-off/write-off.schema"), exports);
23
- __exportStar(require("./write-off/write-off-list.schema"), exports);
24
- __exportStar(require("./order/order.schema"), exports);
25
- __exportStar(require("./order-delivery/order-delivery.schema"), exports);
26
- __exportStar(require("./order-product/order-product.schema"), exports);
27
- __exportStar(require("./order-product/order-product-list.schema"), exports);
28
- __exportStar(require("./order-product/order-product-multiplicity-optiom.schema"), exports);
29
- __exportStar(require("./transaction/transaction.schema"), exports);
30
- __exportStar(require("./transaction/transaction-list.schema"), exports);
31
- __exportStar(require("./file"), exports);
32
- __exportStar(require("./product-image/product-image.schema"), exports);
33
- __exportStar(require("./settings/settings.schema"), exports);
34
- __exportStar(require("./money-account/money-account.schema"), exports);
35
- __exportStar(require("./domain/domain.schema"), exports);
36
- __exportStar(require("./category/category.schema"), exports);
37
- __exportStar(require("./branch/branch.schema"), exports);
38
- __exportStar(require("./category-alias/category-alias.schema"), exports);
39
- __exportStar(require("./category-template/category-template.schema"), exports);
40
- __exportStar(require("./consignment/consignment.schema"), exports);
41
- __exportStar(require("./consignment-import-schema/consignment-import-schema.scheme"), exports);
42
- __exportStar(require("./money-account/money-account.schema"), exports);
43
- __exportStar(require("./type/type.schema"), exports);
44
- __exportStar(require("./package/package.schema"), exports);
45
- __exportStar(require("./product-in-package/product-in-package.schema"), exports);
46
- __exportStar(require("./category-template"), exports);
47
- __exportStar(require("./distribution/distribution.schema"), exports);
48
- __exportStar(require("./pre-order-collection/pre-order-collection.schema"), exports);
49
- __exportStar(require("./pre-order-collection-item/pre-order-collection-item.schema"), exports);
50
- __exportStar(require("./pre-order/pre-order.schema"), exports);
51
- __exportStar(require("./pre-order-product/pre-order-product.schema"), exports);
52
- __exportStar(require("./delete-data-response.schema"), exports);
53
- __exportStar(require("./consignment-import-schema-relation/consignment-import-schema-relation.schema"), exports);
54
- __exportStar(require("./employee-schedule/employee-schedule.schema"), exports);
55
- __exportStar(require("./work-session/work-session.schema"), exports);
56
- __exportStar(require("./discount-rules/discount-rules.schema"), exports);
57
- __exportStar(require("./package/validate-package.schema"), exports);
58
- __exportStar(require("./distribution/validate-distribution-by-product.schema"), exports);
59
- __exportStar(require("./consignment/consignment-distribution-validation.schema"), exports);
60
- __exportStar(require("./product-image-template/product-image-template.schema"), exports);
61
- __exportStar(require("./report/client-statement.schema"), exports);
62
- __exportStar(require("./report/client-by-weeks.schema"), exports);
63
- __exportStar(require("./action-log/index"), exports);
64
- __exportStar(require("./delivery-route/delivery-route.schema"), exports);
65
- __exportStar(require("./product/product-multiplicity-option.schema"), exports);
66
- __exportStar(require("./pre-order/pre-order-copy.schema"), exports);
67
- __exportStar(require("./pre-order-collection-item/pre-order-collection-item-multiplicity-option.schema"), exports);
68
- __exportStar(require("./message"), exports);
69
- __exportStar(require("./product-configuration/product-configuration.schema"), exports);
70
- __exportStar(require("./bank-payment"), exports);
71
- __exportStar(require("./bank-payment-rule/bank-payment-rule.schema"), exports);
72
- __exportStar(require("./client"), exports);
73
- __exportStar(require("./client-payment-identifier/client-payment-identifier.schema"), exports);
74
- __exportStar(require("./bank-payment/get-bank-payment-match-suggestions.schema"), exports);
75
- __exportStar(require("./messenger-profile"), exports);
76
- __exportStar(require("./error-message.schema"), exports);
77
- __exportStar(require("./session/session.schema"), exports);
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ClientInboxItemSchema = void 0;
4
- const zod_1 = require("zod");
5
- exports.ClientInboxItemSchema = zod_1.z.object({
6
- clientUUID: zod_1.z.uuid(),
7
- clientName: zod_1.z.string(),
8
- clientCode: zod_1.z.string().nullable(),
9
- clientGroup: zod_1.z.string().nullable(),
10
- clientRespomsibleUserName: zod_1.z.string().nullable(),
11
- lastMessageAt: zod_1.z.date(),
12
- lastMessagePreview: zod_1.z.string().nullable(),
13
- lastMessageIsFromClient: zod_1.z.boolean(),
14
- unreadCount: zod_1.z.number(),
15
- });
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ContextInboxListSchema = exports.ContextInboxItemSchema = void 0;
4
- const zod_1 = require("zod");
5
- const context_message_context_type_enum_1 = require("../../enum/context-message-context-type.enum");
6
- exports.ContextInboxItemSchema = zod_1.z.object({
7
- contextType: zod_1.z.nativeEnum(context_message_context_type_enum_1.ContextMessageContextTypeEnum),
8
- contextUUID: zod_1.z.uuid(),
9
- subjectUUID: zod_1.z.uuid().nullable().optional(),
10
- lastMessageAt: zod_1.z.date(),
11
- lastMessagePreview: zod_1.z.string().nullable(),
12
- lastMessageIsFromClient: zod_1.z.boolean(),
13
- unreadCount: zod_1.z.number(),
14
- orderId: zod_1.z.number().nullable().optional(),
15
- orderUUID: zod_1.z.uuid().nullable().optional(),
16
- clientName: zod_1.z.string().nullable().optional(),
17
- productName: zod_1.z.string().nullable().optional(),
18
- });
19
- exports.ContextInboxListSchema = zod_1.z.object({
20
- items: exports.ContextInboxItemSchema.array(),
21
- total: zod_1.z.number(),
22
- });
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ContextMessageListSchema = void 0;
4
- const zod_1 = require("zod");
5
- const context_message_schema_1 = require("./context-message.schema");
6
- exports.ContextMessageListSchema = zod_1.z.object({
7
- items: context_message_schema_1.ContextMessageSchema.array(),
8
- lastReadAt: zod_1.z.date().nullable().optional(),
9
- unreadCount: zod_1.z.number(),
10
- hasMoreBefore: zod_1.z.boolean(),
11
- hasMoreAfter: zod_1.z.boolean(),
12
- });
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ContextMessageSchema = void 0;
4
- const zod_1 = require("zod");
5
- const context_message_context_type_enum_1 = require("../../enum/context-message-context-type.enum");
6
- exports.ContextMessageSchema = zod_1.z.object({
7
- uuid: zod_1.z.uuid(),
8
- contextType: zod_1.z.nativeEnum(context_message_context_type_enum_1.ContextMessageContextTypeEnum),
9
- contextUUID: zod_1.z.uuid(),
10
- subjectUUID: zod_1.z.uuid().nullable().optional(),
11
- isFromClient: zod_1.z.boolean(),
12
- authorUserUUID: zod_1.z.uuid().nullable(),
13
- authorClientUUID: zod_1.z.uuid().nullable(),
14
- text: zod_1.z.string(),
15
- payload: zod_1.z.any().nullable().optional(),
16
- createdAt: zod_1.z.date(),
17
- updatedAt: zod_1.z.date(),
18
- });
@@ -1,20 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./client-inbox-item.schema"), exports);
18
- __exportStar(require("./context-message.schema"), exports);
19
- __exportStar(require("./context-message-list.schema"), exports);
20
- __exportStar(require("./context-inbox.schema"), exports);
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./user-messenger-profile.schema"), exports);
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UserMessengerProfileSchema = void 0;
4
- const zod_1 = require("zod");
5
- const notification_channel_enum_1 = require("../../enum/notification-channel.enum");
6
- exports.UserMessengerProfileSchema = zod_1.z.object({
7
- uuid: zod_1.z.uuid(),
8
- userUUID: zod_1.z.uuid(),
9
- companyUUID: zod_1.z.uuid(),
10
- channel: zod_1.z.nativeEnum(notification_channel_enum_1.NotificationChannelEnum),
11
- externalId: zod_1.z.string(),
12
- username: zod_1.z.string().nullable(),
13
- firstName: zod_1.z.string().nullable(),
14
- lastName: zod_1.z.string().nullable(),
15
- isActive: zod_1.z.boolean(),
16
- createdAt: zod_1.z.date(),
17
- updatedAt: zod_1.z.date(),
18
- });
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MoneyAccountSchema = void 0;
4
- const zod_1 = require("zod");
5
- const money_account_status_enum_1 = require("../../enum/money-account-status.enum");
6
- const enum_1 = require("../../enum");
7
- exports.MoneyAccountSchema = zod_1.z.object({
8
- uuid: zod_1.z.uuid(),
9
- name: zod_1.z.string(),
10
- companyUUID: zod_1.z.string(),
11
- roles: zod_1.z.nativeEnum(enum_1.UserRoleEnum).array(),
12
- status: zod_1.z.nativeEnum(money_account_status_enum_1.MoneyAccountStatusEnum),
13
- createdAt: zod_1.z.date(),
14
- updatedAt: zod_1.z.date(),
15
- deletedAt: zod_1.z.date().nullable(),
16
- });
@@ -1,62 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OrderExtendedForClientSchema = exports.OrderExtendedSchema = exports.OrderForClientSchema = exports.OrderSchema = void 0;
4
- const zod_1 = require("zod");
5
- const enum_1 = require("../../enum");
6
- const client_1 = require("../client");
7
- const branch_schema_1 = require("../branch/branch.schema");
8
- const order_delivery_schema_1 = require("../order-delivery/order-delivery.schema");
9
- const delivery_route_schema_1 = require("../delivery-route/delivery-route.schema");
10
- exports.OrderSchema = zod_1.z.object({
11
- uuid: zod_1.z.uuid(),
12
- orderNumber: zod_1.z.number(),
13
- clientUUID: zod_1.z.uuid(),
14
- branchUUID: zod_1.z.uuid().nullable(),
15
- creatorUserUUID: zod_1.z.uuid(),
16
- isSync: zod_1.z.boolean(),
17
- totalCost: zod_1.z.number(),
18
- subtotal: zod_1.z.number(),
19
- deliveryCost: zod_1.z.number(),
20
- deliveryCheckAmount: zod_1.z.number(),
21
- deliveryVatAmount: zod_1.z.number(),
22
- deliveryVat: zod_1.z.number().nullable(),
23
- vatAmount: zod_1.z.number(),
24
- discountAmount: zod_1.z.number(),
25
- discount: zod_1.z.number().nullable(),
26
- status: zod_1.z.nativeEnum(enum_1.OrderStatusEnum),
27
- type: zod_1.z.nativeEnum(enum_1.OrderTypeEnum),
28
- isPaid: zod_1.z.boolean(),
29
- comment: zod_1.z.string().nullable(),
30
- clientComment: zod_1.z.string().nullable(),
31
- tag: zod_1.z.string().nullable(),
32
- totalQuantity: zod_1.z.number(),
33
- totalProductNumber: zod_1.z.number(),
34
- invoiceSendAt: zod_1.z.date().nullable(),
35
- deliveryRouteUUID: zod_1.z.uuid().nullable(),
36
- completedAt: zod_1.z.date().nullable(),
37
- paymentDueAt: zod_1.z.date().nullable(),
38
- createdAt: zod_1.z.date(),
39
- updatedAt: zod_1.z.date(),
40
- deletedAt: zod_1.z.date().nullable(),
41
- });
42
- exports.OrderForClientSchema = exports.OrderSchema.omit({
43
- comment: true,
44
- tag: true,
45
- });
46
- exports.OrderExtendedSchema = exports.OrderSchema.extend({
47
- client: client_1.ClientSchema,
48
- branch: branch_schema_1.BranchSchema.nullable(),
49
- delivery: order_delivery_schema_1.OrderDeliverySchema.nullable(),
50
- consignmentDeliveryDates: zod_1.z.union([zod_1.z.date(), zod_1.z.literal('in-stock')]).array(),
51
- deliveryRoute: delivery_route_schema_1.DeliveryRouteSchema.nullable().optional(),
52
- canReceiveTelegramNotifications: zod_1.z.boolean(),
53
- clientHasOverdueDebt: zod_1.z.boolean().nullable(),
54
- responsibleUserName: zod_1.z.string().nullable().optional(),
55
- });
56
- exports.OrderExtendedForClientSchema = exports.OrderForClientSchema.extend({
57
- client: client_1.ClientSchema,
58
- branch: branch_schema_1.BranchSchema.nullable(),
59
- delivery: order_delivery_schema_1.OrderDeliverySchema.nullable(),
60
- writeOffSum: zod_1.z.number().nullable(),
61
- consignmentDeliveryDates: zod_1.z.union([zod_1.z.date(), zod_1.z.literal('in-stock')]).array(),
62
- });
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OrderDeliverySchema = void 0;
4
- const zod_1 = require("zod");
5
- const enum_1 = require("../../enum");
6
- exports.OrderDeliverySchema = zod_1.z.object({
7
- uuid: zod_1.z.uuid(),
8
- city: zod_1.z.string().nullable(),
9
- deliveryDate: zod_1.z.coerce.date().nullable(),
10
- address: zod_1.z.string().nullable(),
11
- time: zod_1.z.string().nullable(),
12
- comment: zod_1.z.string().nullable(),
13
- orderDeliveryStatus: zod_1.z.nativeEnum(enum_1.OrderDeliveryStatusEnum),
14
- });
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OrderProductForClientListSchema = exports.OrderProductListSchema = void 0;
4
- const zod_1 = require("zod");
5
- const order_product_schema_1 = require("./order-product.schema");
6
- exports.OrderProductListSchema = zod_1.z.object({
7
- orderProductList: order_product_schema_1.OrderProductExtendedSchema.array(),
8
- total: zod_1.z.number(),
9
- });
10
- exports.OrderProductForClientListSchema = zod_1.z.object({
11
- orderProductList: order_product_schema_1.OrderProductForClientExtendedSchema.array(),
12
- total: zod_1.z.number(),
13
- });
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OrderProductMultiplicityOptionSchema = void 0;
4
- const zod_1 = require("zod");
5
- exports.OrderProductMultiplicityOptionSchema = zod_1.z.object({
6
- uuid: zod_1.z.uuid(),
7
- title: zod_1.z.string().nullable(),
8
- optionMultiplicity: zod_1.z.coerce.number(),
9
- optionPrice: zod_1.z.coerce.number().nullable(),
10
- });
@@ -1,70 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SetOrderProductQuantityWebshopResponseSchema = exports.SetOrderProductQuantityWebshopRequestSchema = exports.ActiveStepperPositionsForOrderResponseSchema = exports.OrderProductStepperPositionSchema = exports.OrderProductForDistributeSchema = exports.OrderProductForClientExtendedSchema = exports.OrderProductExtendedSchema = exports.OrderProductForClientSchema = exports.OrderProductSchema = void 0;
4
- const zod_1 = require("zod");
5
- const product_schema_1 = require("../product/product.schema");
6
- const order_schema_1 = require("../order/order.schema");
7
- const client_1 = require("../client");
8
- const branch_schema_1 = require("../branch/branch.schema");
9
- const distribution_schema_1 = require("../distribution/distribution.schema");
10
- const order_product_multiplicity_optiom_schema_1 = require("./order-product-multiplicity-optiom.schema");
11
- exports.OrderProductSchema = zod_1.z.object({
12
- uuid: zod_1.z.uuid(),
13
- productUUID: zod_1.z.uuid(),
14
- orderUUID: zod_1.z.uuid(),
15
- multiplicityOptionUUID: zod_1.z.uuid().nullable().optional(),
16
- quantity: zod_1.z.number(),
17
- price: zod_1.z.number(),
18
- amount: zod_1.z.number(),
19
- vatAmount: zod_1.z.number(),
20
- vat: zod_1.z.number().nullable(),
21
- checkAmount: zod_1.z.number(),
22
- comment: zod_1.z.string().nullable(),
23
- tag: zod_1.z.string().nullable(),
24
- isVerified: zod_1.z.boolean(),
25
- isEditable: zod_1.z.boolean(),
26
- product: product_schema_1.ProductSchema,
27
- createdByUserUUID: zod_1.z.string(),
28
- verifiedByUserUUID: zod_1.z.string().nullable(),
29
- createdAt: zod_1.z.date(),
30
- updatedAt: zod_1.z.date(),
31
- });
32
- exports.OrderProductForClientSchema = exports.OrderProductSchema.omit({
33
- isVerified: true,
34
- verifiedByUserUUID: true,
35
- createdByUserUUID: true,
36
- });
37
- exports.OrderProductExtendedSchema = exports.OrderProductSchema.extend({
38
- product: product_schema_1.ProductExtendedForAdminSchema,
39
- order: order_schema_1.OrderSchema,
40
- multiplicityOption: order_product_multiplicity_optiom_schema_1.OrderProductMultiplicityOptionSchema.nullable().optional(),
41
- });
42
- exports.OrderProductForClientExtendedSchema = exports.OrderProductForClientSchema.extend({
43
- product: product_schema_1.ProductExtendedForClientSchema,
44
- multiplicityOptionUUID: zod_1.z.uuid().nullable().optional(),
45
- });
46
- exports.OrderProductForDistributeSchema = exports.OrderProductSchema.extend({
47
- order: order_schema_1.OrderSchema,
48
- client: client_1.ClientSchema,
49
- branch: branch_schema_1.BranchSchema.nullable(),
50
- distributionList: zod_1.z.array(distribution_schema_1.DistributionSchema),
51
- });
52
- exports.OrderProductStepperPositionSchema = zod_1.z.object({
53
- uuid: zod_1.z.string(),
54
- orderUUID: zod_1.z.string(),
55
- productUUID: zod_1.z.string(),
56
- multiplicityOptionUUID: zod_1.z.string().nullable().optional(),
57
- multiplicityOptionTitle: zod_1.z.string().nullable().optional(),
58
- quantity: zod_1.z.number(),
59
- });
60
- exports.ActiveStepperPositionsForOrderResponseSchema = zod_1.z.object({
61
- list: exports.OrderProductStepperPositionSchema.array(),
62
- });
63
- exports.SetOrderProductQuantityWebshopRequestSchema = zod_1.z.object({
64
- quantity: zod_1.z.number().int().min(0),
65
- });
66
- exports.SetOrderProductQuantityWebshopResponseSchema = zod_1.z.object({
67
- uuid: zod_1.z.string().optional(),
68
- quantity: zod_1.z.number().optional(),
69
- deleted: zod_1.z.boolean().optional(),
70
- });
@@ -1,93 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PackageListSchema = exports.UpdatePackageSchema = exports.CreatePackageSchema = exports.PackageExtendedSchema = exports.PackageSchema = void 0;
4
- const zod_1 = require("zod");
5
- const enum_1 = require("../../enum");
6
- exports.PackageSchema = zod_1.z.object({
7
- uuid: zod_1.z.string(),
8
- displayId: zod_1.z.string(),
9
- marking: zod_1.z.string(),
10
- type: zod_1.z.nativeEnum(enum_1.PackageTypeEnum),
11
- status: zod_1.z.nativeEnum(enum_1.PackageStatusEnum),
12
- rank: zod_1.z.number().nullable(),
13
- companyUUID: zod_1.z.string(),
14
- consignmentUUID: zod_1.z.string(),
15
- deletedAt: zod_1.z.date().nullable(),
16
- createdAt: zod_1.z.date(),
17
- updatedAt: zod_1.z.date(),
18
- });
19
- exports.PackageExtendedSchema = exports.PackageSchema.merge(zod_1.z.object({
20
- products: zod_1.z.array(zod_1.z.object({
21
- productInPackage: zod_1.z.object({
22
- uuid: zod_1.z.string(),
23
- quantity: zod_1.z.number(),
24
- quantityOfUnits: zod_1.z.number(),
25
- perUnits: zod_1.z.number(),
26
- status: zod_1.z.nativeEnum(enum_1.ProductInPackageStatusEnum),
27
- }),
28
- uuid: zod_1.z.string(),
29
- category: zod_1.z
30
- .object({
31
- name: zod_1.z.string(),
32
- })
33
- .nullable(),
34
- name: zod_1.z.string(),
35
- grower: zod_1.z.string().nullable(),
36
- country: zod_1.z.string().nullable(),
37
- balance: zod_1.z.number(),
38
- quantity: zod_1.z.number(),
39
- size: zod_1.z.string().nullable(),
40
- size2: zod_1.z.string().nullable(),
41
- size3: zod_1.z.string().nullable(),
42
- multiplicity: zod_1.z.number(),
43
- article: zod_1.z.string().nullable(),
44
- image: zod_1.z
45
- .object({
46
- productImageUrl: zod_1.z.string(),
47
- })
48
- .nullable(),
49
- distributions: zod_1.z.array(zod_1.z.object({
50
- uuid: zod_1.z.string(),
51
- isPacked: zod_1.z.boolean(),
52
- quantity: zod_1.z.number(),
53
- orderProduct: zod_1.z.object({
54
- uuid: zod_1.z.string(),
55
- quantity: zod_1.z.number(),
56
- comment: zod_1.z.string().nullable(),
57
- tag: zod_1.z.string().nullable(),
58
- order: zod_1.z.object({
59
- id: zod_1.z.number(),
60
- uuid: zod_1.z.string(),
61
- createdAt: zod_1.z.date(),
62
- client: zod_1.z.object({
63
- uuid: zod_1.z.string(),
64
- name: zod_1.z.string(),
65
- group: zod_1.z.string().nullable(),
66
- code: zod_1.z.string().nullable(),
67
- city: zod_1.z.string().nullable(),
68
- }),
69
- branch: zod_1.z
70
- .object({
71
- name: zod_1.z.string(),
72
- })
73
- .nullable(),
74
- }),
75
- }),
76
- })),
77
- })),
78
- }));
79
- exports.CreatePackageSchema = exports.PackageSchema.pick({
80
- displayId: true,
81
- marking: true,
82
- type: true,
83
- });
84
- exports.UpdatePackageSchema = exports.PackageSchema.pick({
85
- displayId: true,
86
- marking: true,
87
- type: true,
88
- status: true,
89
- }).partial();
90
- exports.PackageListSchema = zod_1.z.object({
91
- list: exports.PackageExtendedSchema.array(),
92
- total: zod_1.z.number(),
93
- });
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ValidatePackageSchema = void 0;
4
- const zod_1 = require("zod");
5
- exports.ValidatePackageSchema = zod_1.z.object({
6
- productUUID: zod_1.z.string(),
7
- totalQuantity: zod_1.z.number(),
8
- allocatedQuantity: zod_1.z.number(),
9
- });
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CopyAnalysisSchema = exports.CopyAnalysisMappingSchema = exports.CopyAnalysisMatchSchema = void 0;
4
- const zod_1 = require("zod");
5
- const pre_order_schema_1 = require("./pre-order.schema");
6
- const pre_order_product_schema_1 = require("../pre-order-product/pre-order-product.schema");
7
- const pre_order_collection_item_schema_1 = require("../pre-order-collection-item/pre-order-collection-item.schema");
8
- exports.CopyAnalysisMatchSchema = zod_1.z.object({
9
- collectionItem: pre_order_collection_item_schema_1.PreOrderCollectionItemSchema,
10
- quantity: zod_1.z.number(),
11
- });
12
- exports.CopyAnalysisMappingSchema = zod_1.z.object({
13
- sourceProduct: pre_order_product_schema_1.PreOrderProductExtendedSchema,
14
- matches: zod_1.z.array(exports.CopyAnalysisMatchSchema),
15
- remainingQuantity: zod_1.z.number(),
16
- });
17
- exports.CopyAnalysisSchema = zod_1.z.object({
18
- preOrder: pre_order_schema_1.PreOrderWithClientSchema,
19
- mappings: zod_1.z.record(zod_1.z.string(), exports.CopyAnalysisMappingSchema),
20
- warnings: zod_1.z.record(zod_1.z.string(), zod_1.z.array(zod_1.z.string())),
21
- });
@@ -1,49 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UpdatePreOrderWebshopSchema = exports.CreatePreOrderWebshopSchema = exports.UpdatePreOrderSchema = exports.CreatePreOrderSchema = exports.PreOrderListSchema = exports.PreOrderWithClientSchema = exports.PreOrderExtendedSchema = exports.PreOrderSchema = void 0;
4
- const zod_1 = require("zod");
5
- const enum_1 = require("../../enum");
6
- const client_1 = require("../client");
7
- const branch_schema_1 = require("../branch/branch.schema");
8
- const pre_order_collection_schema_1 = require("../pre-order-collection/pre-order-collection.schema");
9
- exports.PreOrderSchema = zod_1.z.object({
10
- uuid: zod_1.z.string(),
11
- clientUUID: zod_1.z.string(),
12
- branchUUID: zod_1.z.string().nullable(),
13
- status: zod_1.z.nativeEnum(enum_1.PreOrderStatusEnum),
14
- preOrderNum: zod_1.z.number(),
15
- comment: zod_1.z.string().nullable(),
16
- tag: zod_1.z.string().nullable(),
17
- createdAt: zod_1.z.coerce.date(),
18
- });
19
- exports.PreOrderExtendedSchema = exports.PreOrderSchema.extend({
20
- client: client_1.ClientSchema,
21
- branch: branch_schema_1.BranchSchema.nullable(),
22
- preOrderCollection: pre_order_collection_schema_1.PreOrderCollectionSchema.nullable(),
23
- totalPositions: zod_1.z.number(),
24
- totalQuantity: zod_1.z.number(),
25
- totalPrice: zod_1.z.number(),
26
- });
27
- exports.PreOrderWithClientSchema = exports.PreOrderSchema.extend({
28
- preOrderCollection: pre_order_collection_schema_1.PreOrderCollectionSchema.nullable(),
29
- client: client_1.ClientSchema,
30
- branch: branch_schema_1.BranchSchema.nullable(),
31
- });
32
- exports.PreOrderListSchema = zod_1.z.object({
33
- list: zod_1.z.array(exports.PreOrderExtendedSchema),
34
- total: zod_1.z.number(),
35
- });
36
- exports.CreatePreOrderSchema = zod_1.z.object({
37
- clientUUID: zod_1.z.string(),
38
- branchUUID: zod_1.z.string().nullable().optional(),
39
- comment: zod_1.z.string().nullable(),
40
- tag: zod_1.z.string().nullable(),
41
- status: zod_1.z.nativeEnum(enum_1.PreOrderStatusEnum),
42
- });
43
- exports.UpdatePreOrderSchema = exports.PreOrderSchema.omit({ uuid: true, preOrderNum: true, createdAt: true }).partial();
44
- exports.CreatePreOrderWebshopSchema = exports.PreOrderSchema.pick({ branchUUID: true, comment: true }).extend({
45
- preOrderCollectionUUID: zod_1.z.string(),
46
- branchUUID: zod_1.z.string().nullable().optional(),
47
- comment: zod_1.z.string().nullable().optional(),
48
- });
49
- exports.UpdatePreOrderWebshopSchema = exports.PreOrderSchema.pick({ branchUUID: true, comment: true }).partial();