@floristcloud/api-lib 1.0.19 → 1.0.21

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 (281) hide show
  1. package/build/commands/action-log/get-action-log-list-for-client.query.js +1 -1
  2. package/build/commands/action-log/get-action-log-list.query.js +1 -1
  3. package/build/commands/auth/login-user.command.js +3 -3
  4. package/build/commands/auth/register-user.command.js +1 -1
  5. package/build/commands/auth/reset-password-by-security-code.command.js +1 -1
  6. package/build/commands/auth/reset-password-by-token.command.js +1 -1
  7. package/build/commands/auth/restore-password-by-security-code.command.js +1 -1
  8. package/build/commands/bank-payment/get-bank-payment-list.query.js +1 -1
  9. package/build/commands/bank-payment/update-bank-payment-status.query.js +1 -1
  10. package/build/commands/branch/delete-branch.command.js +1 -1
  11. package/build/commands/category/delete-category.command.js +1 -1
  12. package/build/commands/category/get-category-by-uuid.query.js +1 -1
  13. package/build/commands/category/get-category-list.query.js +3 -3
  14. package/build/commands/category/update-category-command.js +2 -2
  15. package/build/commands/category-alias/delete-category-alias.command.js +1 -1
  16. package/build/commands/category-alias/get-category-alias-by-uuid.query.js +1 -1
  17. package/build/commands/category-alias/update-category-alias.command.js +1 -1
  18. package/build/commands/client/create-client.command.js +3 -3
  19. package/build/commands/client/delete-client.command.js +1 -1
  20. package/build/commands/client/get-client-list.query.js +2 -2
  21. package/build/commands/client/marking/get-client-marking-by-client-list.command.js +2 -2
  22. package/build/commands/client/profile/get-client-individual-profile.query.js +1 -1
  23. package/build/commands/client/update-client.command.js +4 -4
  24. package/build/commands/client/webshop/register-client-webshop.command.js +2 -2
  25. package/build/commands/client/webshop/update-client-for-client.command.js +1 -1
  26. package/build/commands/company/deleteCompany.command.js +1 -1
  27. package/build/commands/company/getCompany.query.js +1 -1
  28. package/build/commands/consignment/create-consignment.command.js +1 -1
  29. package/build/commands/consignment/delete-consignment.command.js +1 -1
  30. package/build/commands/consignment/update-consignment.command.js +1 -1
  31. package/build/commands/consignment/upsert-access-clients-consignment.command.js +1 -1
  32. package/build/commands/delivery-route/attach-order-list-to-delivery-route.command.js +1 -1
  33. package/build/commands/delivery-route/detach-order-list-to-delivery-route.command.js +1 -1
  34. package/build/commands/delivery-route/get-delivery-route-list.query.js +1 -1
  35. package/build/commands/discount-rules/get-discount-rules-all.query.js +2 -2
  36. package/build/commands/message/get-context-unread-count.query.js +3 -3
  37. package/build/commands/message/get-contexts-with-unread.query.js +2 -2
  38. package/build/commands/message/list-context-messages.query.js +5 -5
  39. package/build/commands/message/mark-context-read.command.js +3 -3
  40. package/build/commands/message/send-context-message.command.js +3 -3
  41. package/build/commands/order/create-order.command.js +3 -3
  42. package/build/commands/order/get-order-list.query.js +2 -2
  43. package/build/commands/order/group/update-group-order-status.command.js +1 -1
  44. package/build/commands/order/group/update-group-order-type.command.js +1 -1
  45. package/build/commands/order/update-order.command.js +4 -4
  46. package/build/commands/order/webshop/update-cart.command.js +1 -1
  47. package/build/commands/order-delivery/update-order-delivery.command.js +1 -1
  48. package/build/commands/order-product/create-order-product.command.js +1 -1
  49. package/build/commands/order-product/group/update-group-order-product-order.command.js +1 -1
  50. package/build/commands/order-product/update-order-product.command.js +2 -2
  51. package/build/commands/order-product/webshop/create-order-product-for-client.command.js +1 -1
  52. package/build/commands/order-product/webshop/update-order-product-for-client.command.js +1 -1
  53. package/build/commands/package/get-package-filters-values.query.js +2 -2
  54. package/build/commands/package/reorder-packages.command.js +1 -1
  55. package/build/commands/pre-order/create-order-from-pre-order.command.js +1 -1
  56. package/build/commands/pre-order/get-pre-order-list.query.js +1 -1
  57. package/build/commands/pre-order/group/analyze-copy-pre-orders.command.js +2 -2
  58. package/build/commands/pre-order/group/analyze-create-orders-from-pre-orders.command.js +2 -2
  59. package/build/commands/pre-order/group/analyze-create-pre-orders-from-standing-orders.command.js +2 -2
  60. package/build/commands/pre-order/group/group-copy-pre-orders-to-collection.command.js +2 -2
  61. package/build/commands/pre-order/group/group-create-orders-from-pre-orders.command.js +4 -4
  62. package/build/commands/pre-order/group/group-create-pre-orders-from-standing-orders.command.js +4 -4
  63. package/build/commands/pre-order/webshop/get-pre-order-list-webshop.command.js +1 -1
  64. package/build/commands/pre-order-collection/get-pre-order-collection-list.query.js +1 -1
  65. package/build/commands/pre-order-collection/match-images-for-collection.command.js +1 -1
  66. package/build/commands/pre-order-collection-item/export-pre-order-collection-item-with-clients-vertical.query.js +1 -1
  67. package/build/commands/pre-order-collection-item/get-pre-order-collection-item-extended-with-clients-pre-order-product-list.query.js +1 -1
  68. package/build/commands/pre-order-collection-item/multiplicity-option/reorder-pre-order-collection-item-multiplicity-options.command.js +1 -1
  69. package/build/commands/product/get-product-quantity-calculate.query.js +1 -1
  70. package/build/commands/product/group/update-group-product-update-batch.command.js +1 -1
  71. package/build/commands/product/multiplicity-option/reorder-product-multiplicity-options.command.js +1 -1
  72. package/build/commands/product-configuration/get-product-configuration-list.query.js +1 -1
  73. package/build/commands/product-image/get-product-image-list.query.js +1 -1
  74. package/build/commands/report/export-client-statement.query.js +1 -1
  75. package/build/commands/report/export-inventory-movement.query.js +3 -3
  76. package/build/commands/report/export-inventory-stock.query.js +1 -1
  77. package/build/commands/report/export-inventory-turnover.query.js +1 -1
  78. package/build/commands/report/export-sales-revenue.query.js +1 -1
  79. package/build/commands/transaction/apply-prepayment-transaction.command.js +1 -1
  80. package/build/commands/transaction/export-transactions.command.js +1 -1
  81. package/build/commands/transaction/get-transaction-list.query.js +1 -1
  82. package/build/commands/transaction/get-transaction-summary.query.js +1 -1
  83. package/build/commands/transaction/webshop/get-transaction-list-for-client.query.js +1 -1
  84. package/build/commands/type/delete-type.command.js +1 -1
  85. package/build/commands/type/get-type-by-uuid.query.js +1 -1
  86. package/build/commands/type/get-type-list.query.js +1 -1
  87. package/build/commands/user/createUserByClientId.command.js +3 -3
  88. package/build/commands/user/createUserForCompany.command.js +1 -1
  89. package/build/commands/user/get-user-list.query.js +2 -2
  90. package/build/commands/user/update-user.command.js +1 -1
  91. package/build/commands/wrire-off-archive/create-wrire-off-archive.command.js +1 -1
  92. package/build/commands/wrire-off-archive/info-wrire-off-archive.command.js +1 -1
  93. package/build/commands/write-off/get-write-off-list.query.js +1 -1
  94. package/build/constant/error.js +12 -0
  95. package/build/enum/index.js +2 -0
  96. package/build/schemas/action-log/action-log.schema.js +1 -1
  97. package/build/schemas/action-log/order-update-action-log.schema.js +2 -2
  98. package/build/schemas/action-log/transaction-info.schema.js +1 -1
  99. package/build/schemas/bank-payment/bank-payment.schema.js +6 -6
  100. package/build/schemas/branch/branch.schema.js +2 -2
  101. package/build/schemas/category/category.schema.js +2 -2
  102. package/build/schemas/category-alias/category-alias.schema.js +4 -4
  103. package/build/schemas/category-template/category-template.schema.js +2 -2
  104. package/build/schemas/client/client-debt.schema.js +1 -1
  105. package/build/schemas/client/client-individual-profile.schema.js +1 -1
  106. package/build/schemas/client/client-legal-profile.schema.js +2 -2
  107. package/build/schemas/client/client-marking.schema.js +1 -1
  108. package/build/schemas/client/client.schema.js +5 -5
  109. package/build/schemas/company/company.schema.js +2 -2
  110. package/build/schemas/consignment/consignment-distribution-validation.schema.js +2 -2
  111. package/build/schemas/consignment/consignment.schema.js +3 -3
  112. package/build/schemas/consignment-import-schema/consignment-import-schema.scheme.js +2 -2
  113. package/build/schemas/consignment-import-schema-relation/consignment-import-schema-relation.schema.js +3 -3
  114. package/build/schemas/delivery-route/delivery-route.schema.js +6 -6
  115. package/build/schemas/domain/domain.schema.js +1 -1
  116. package/build/schemas/message/client-inbox-item.schema.js +1 -1
  117. package/build/schemas/message/context-inbox.schema.js +4 -4
  118. package/build/schemas/message/context-message.schema.js +6 -6
  119. package/build/schemas/money-account/money-account.schema.js +3 -3
  120. package/build/schemas/order/order.schema.js +7 -7
  121. package/build/schemas/order-delivery/order-delivery.schema.js +2 -2
  122. package/build/schemas/order-product/order-product-multiplicity-optiom.schema.js +1 -1
  123. package/build/schemas/order-product/order-product.schema.js +5 -5
  124. package/build/schemas/package/package.schema.js +3 -3
  125. package/build/schemas/pre-order/pre-order.schema.js +2 -2
  126. package/build/schemas/pre-order-collection/pre-order-collection.schema.js +3 -3
  127. package/build/schemas/pre-order-collection-item/pre-order-collection-item.schema.js +3 -3
  128. package/build/schemas/pre-order-product/pre-order-product.schema.js +3 -3
  129. package/build/schemas/product/product-multiplicity-option.schema.js +1 -1
  130. package/build/schemas/product/product.schema.js +5 -5
  131. package/build/schemas/product-configuration/product-configuration.schema.js +3 -3
  132. package/build/schemas/product-in-package/product-in-package.schema.js +1 -1
  133. package/build/schemas/report/client-statement.schema.js +2 -2
  134. package/build/schemas/settings/settings.schema.js +18 -18
  135. package/build/schemas/transaction/transaction.schema.js +3 -3
  136. package/build/schemas/type/type.schema.js +2 -2
  137. package/build/schemas/type/typeList.schema.js +1 -1
  138. package/build/schemas/user/user.schema.js +5 -5
  139. package/build/schemas/write-off/write-off-image.schema.js +2 -2
  140. package/build/schemas/write-off/write-off.schema.js +2 -2
  141. package/commands/action-log/get-action-log-list-for-client.query.ts +1 -1
  142. package/commands/action-log/get-action-log-list.query.ts +1 -1
  143. package/commands/auth/login-user.command.ts +3 -3
  144. package/commands/auth/register-user.command.ts +1 -1
  145. package/commands/auth/reset-password-by-security-code.command.ts +1 -1
  146. package/commands/auth/reset-password-by-token.command.ts +1 -1
  147. package/commands/auth/restore-password-by-security-code.command.ts +1 -1
  148. package/commands/bank-payment/get-bank-payment-list.query.ts +1 -1
  149. package/commands/bank-payment/update-bank-payment-status.query.ts +1 -1
  150. package/commands/branch/delete-branch.command.ts +1 -1
  151. package/commands/category/delete-category.command.ts +1 -1
  152. package/commands/category/get-category-by-uuid.query.ts +1 -1
  153. package/commands/category/get-category-list.query.ts +3 -3
  154. package/commands/category/update-category-command.ts +2 -2
  155. package/commands/category-alias/delete-category-alias.command.ts +1 -1
  156. package/commands/category-alias/get-category-alias-by-uuid.query.ts +1 -1
  157. package/commands/category-alias/update-category-alias.command.ts +1 -1
  158. package/commands/client/create-client.command.ts +3 -3
  159. package/commands/client/delete-client.command.ts +1 -1
  160. package/commands/client/get-client-list.query.ts +2 -2
  161. package/commands/client/marking/get-client-marking-by-client-list.command.ts +2 -2
  162. package/commands/client/profile/get-client-individual-profile.query.ts +1 -1
  163. package/commands/client/update-client.command.ts +4 -4
  164. package/commands/client/webshop/register-client-webshop.command.ts +2 -2
  165. package/commands/client/webshop/update-client-for-client.command.ts +1 -1
  166. package/commands/company/deleteCompany.command.ts +1 -1
  167. package/commands/company/getCompany.query.ts +1 -1
  168. package/commands/consignment/create-consignment.command.ts +1 -1
  169. package/commands/consignment/delete-consignment.command.ts +1 -1
  170. package/commands/consignment/update-consignment.command.ts +1 -1
  171. package/commands/consignment/upsert-access-clients-consignment.command.ts +1 -1
  172. package/commands/delivery-route/attach-order-list-to-delivery-route.command.ts +1 -1
  173. package/commands/delivery-route/detach-order-list-to-delivery-route.command.ts +1 -1
  174. package/commands/delivery-route/get-delivery-route-list.query.ts +1 -1
  175. package/commands/discount-rules/get-discount-rules-all.query.ts +2 -2
  176. package/commands/message/get-context-unread-count.query.ts +3 -3
  177. package/commands/message/get-contexts-with-unread.query.ts +2 -2
  178. package/commands/message/list-context-messages.query.ts +5 -5
  179. package/commands/message/mark-context-read.command.ts +3 -3
  180. package/commands/message/send-context-message.command.ts +3 -3
  181. package/commands/order/create-order.command.ts +3 -3
  182. package/commands/order/get-order-list.query.ts +2 -2
  183. package/commands/order/group/update-group-order-status.command.ts +1 -1
  184. package/commands/order/group/update-group-order-type.command.ts +1 -1
  185. package/commands/order/update-order.command.ts +4 -4
  186. package/commands/order/webshop/update-cart.command.ts +1 -1
  187. package/commands/order-delivery/update-order-delivery.command.ts +1 -1
  188. package/commands/order-product/create-order-product.command.ts +1 -1
  189. package/commands/order-product/group/update-group-order-product-order.command.ts +1 -1
  190. package/commands/order-product/update-order-product.command.ts +2 -2
  191. package/commands/order-product/webshop/create-order-product-for-client.command.ts +1 -1
  192. package/commands/order-product/webshop/update-order-product-for-client.command.ts +1 -1
  193. package/commands/package/get-package-filters-values.query.ts +2 -2
  194. package/commands/package/reorder-packages.command.ts +1 -1
  195. package/commands/pre-order/create-order-from-pre-order.command.ts +1 -1
  196. package/commands/pre-order/get-pre-order-list.query.ts +1 -1
  197. package/commands/pre-order/group/analyze-copy-pre-orders.command.ts +2 -2
  198. package/commands/pre-order/group/analyze-create-orders-from-pre-orders.command.ts +2 -2
  199. package/commands/pre-order/group/analyze-create-pre-orders-from-standing-orders.command.ts +2 -2
  200. package/commands/pre-order/group/group-copy-pre-orders-to-collection.command.ts +2 -2
  201. package/commands/pre-order/group/group-create-orders-from-pre-orders.command.ts +4 -4
  202. package/commands/pre-order/group/group-create-pre-orders-from-standing-orders.command.ts +4 -4
  203. package/commands/pre-order/webshop/get-pre-order-list-webshop.command.ts +1 -1
  204. package/commands/pre-order-collection/get-pre-order-collection-list.query.ts +1 -1
  205. package/commands/pre-order-collection/match-images-for-collection.command.ts +1 -1
  206. package/commands/pre-order-collection-item/export-pre-order-collection-item-with-clients-vertical.query.ts +1 -1
  207. package/commands/pre-order-collection-item/get-pre-order-collection-item-extended-with-clients-pre-order-product-list.query.ts +1 -1
  208. package/commands/pre-order-collection-item/multiplicity-option/reorder-pre-order-collection-item-multiplicity-options.command.ts +1 -1
  209. package/commands/product/get-product-quantity-calculate.query.ts +1 -1
  210. package/commands/product/group/update-group-product-update-batch.command.ts +1 -1
  211. package/commands/product/multiplicity-option/reorder-product-multiplicity-options.command.ts +1 -1
  212. package/commands/product-configuration/get-product-configuration-list.query.ts +1 -1
  213. package/commands/product-image/get-product-image-list.query.ts +1 -1
  214. package/commands/report/export-client-statement.query.ts +1 -1
  215. package/commands/report/export-inventory-movement.query.ts +3 -3
  216. package/commands/report/export-inventory-stock.query.ts +1 -1
  217. package/commands/report/export-inventory-turnover.query.ts +1 -1
  218. package/commands/report/export-sales-revenue.query.ts +1 -1
  219. package/commands/transaction/apply-prepayment-transaction.command.ts +1 -1
  220. package/commands/transaction/export-transactions.command.ts +1 -1
  221. package/commands/transaction/get-transaction-list.query.ts +1 -1
  222. package/commands/transaction/get-transaction-summary.query.ts +1 -1
  223. package/commands/transaction/webshop/get-transaction-list-for-client.query.ts +1 -1
  224. package/commands/type/delete-type.command.ts +1 -1
  225. package/commands/type/get-type-by-uuid.query.ts +1 -1
  226. package/commands/type/get-type-list.query.ts +1 -1
  227. package/commands/user/createUserByClientId.command.ts +3 -3
  228. package/commands/user/createUserForCompany.command.ts +1 -1
  229. package/commands/user/get-user-list.query.ts +2 -2
  230. package/commands/user/update-user.command.ts +1 -1
  231. package/commands/wrire-off-archive/create-wrire-off-archive.command.ts +1 -1
  232. package/commands/wrire-off-archive/info-wrire-off-archive.command.ts +1 -1
  233. package/commands/write-off/get-write-off-list.query.ts +1 -1
  234. package/constant/error.ts +12 -0
  235. package/enum/index.ts +2 -0
  236. package/package.json +1 -1
  237. package/schemas/action-log/action-log.schema.ts +1 -1
  238. package/schemas/action-log/order-update-action-log.schema.ts +2 -2
  239. package/schemas/action-log/transaction-info.schema.ts +1 -1
  240. package/schemas/bank-payment/bank-payment.schema.ts +6 -6
  241. package/schemas/branch/branch.schema.ts +2 -2
  242. package/schemas/category/category.schema.ts +2 -2
  243. package/schemas/category-alias/category-alias.schema.ts +4 -4
  244. package/schemas/category-template/category-template.schema.ts +2 -2
  245. package/schemas/client/client-debt.schema.ts +1 -1
  246. package/schemas/client/client-individual-profile.schema.ts +1 -1
  247. package/schemas/client/client-legal-profile.schema.ts +2 -2
  248. package/schemas/client/client-marking.schema.ts +1 -1
  249. package/schemas/client/client.schema.ts +5 -5
  250. package/schemas/company/company.schema.ts +2 -2
  251. package/schemas/consignment/consignment-distribution-validation.schema.ts +2 -2
  252. package/schemas/consignment/consignment.schema.ts +3 -3
  253. package/schemas/consignment-import-schema/consignment-import-schema.scheme.ts +2 -2
  254. package/schemas/consignment-import-schema-relation/consignment-import-schema-relation.schema.ts +3 -3
  255. package/schemas/delivery-route/delivery-route.schema.ts +6 -6
  256. package/schemas/domain/domain.schema.ts +1 -1
  257. package/schemas/message/client-inbox-item.schema.ts +1 -1
  258. package/schemas/message/context-inbox.schema.ts +4 -4
  259. package/schemas/message/context-message.schema.ts +6 -6
  260. package/schemas/money-account/money-account.schema.ts +3 -3
  261. package/schemas/order/order.schema.ts +7 -7
  262. package/schemas/order-delivery/order-delivery.schema.ts +2 -2
  263. package/schemas/order-product/order-product-multiplicity-optiom.schema.ts +1 -1
  264. package/schemas/order-product/order-product.schema.ts +5 -5
  265. package/schemas/package/package.schema.ts +3 -3
  266. package/schemas/pre-order/pre-order.schema.ts +2 -2
  267. package/schemas/pre-order-collection/pre-order-collection.schema.ts +3 -3
  268. package/schemas/pre-order-collection-item/pre-order-collection-item.schema.ts +3 -3
  269. package/schemas/pre-order-product/pre-order-product.schema.ts +3 -3
  270. package/schemas/product/product-multiplicity-option.schema.ts +1 -1
  271. package/schemas/product/product.schema.ts +5 -5
  272. package/schemas/product-configuration/product-configuration.schema.ts +3 -3
  273. package/schemas/product-in-package/product-in-package.schema.ts +1 -1
  274. package/schemas/report/client-statement.schema.ts +2 -2
  275. package/schemas/settings/settings.schema.ts +18 -18
  276. package/schemas/transaction/transaction.schema.ts +3 -3
  277. package/schemas/type/type.schema.ts +2 -2
  278. package/schemas/type/typeList.schema.ts +1 -1
  279. package/schemas/user/user.schema.ts +5 -5
  280. package/schemas/write-off/write-off-image.schema.ts +2 -2
  281. package/schemas/write-off/write-off.schema.ts +2 -2
@@ -6,7 +6,7 @@ const schemas_1 = require("../../../schemas");
6
6
  const UpdateOrderProductForClientRequestSchema = zod_1.z.object({
7
7
  quantity: zod_1.z.coerce.number().optional(),
8
8
  comment: zod_1.z.string().optional(),
9
- optionUUID: zod_1.z.string().uuid().nullable().optional(),
9
+ optionUUID: zod_1.z.uuid().nullable().optional(),
10
10
  });
11
11
  const UpdateOrderProductForClientResponseSchema = zod_1.z.object({
12
12
  message: zod_1.z.string().optional(),
@@ -10,8 +10,8 @@ const GetPackageFiltersValuesResponseSchema = zod_1.z.object({
10
10
  uuid: zod_1.z.string(),
11
11
  displayId: zod_1.z.string(),
12
12
  marking: zod_1.z.string().nullable(),
13
- type: zod_1.z.nativeEnum(enum_1.PackageTypeEnum),
14
- status: zod_1.z.nativeEnum(enum_1.PackageStatusEnum),
13
+ type: zod_1.z.enum(enum_1.PackageTypeEnum),
14
+ status: zod_1.z.enum(enum_1.PackageStatusEnum),
15
15
  })),
16
16
  clientList: zod_1.z.array(zod_1.z.object({
17
17
  uuid: zod_1.z.string(),
@@ -5,7 +5,7 @@ const zod_1 = require("zod");
5
5
  const ReorderPackagesRequestSchema = zod_1.z.object({
6
6
  items: zod_1.z
7
7
  .array(zod_1.z.object({
8
- uuid: zod_1.z.string().uuid(),
8
+ uuid: zod_1.z.uuid(),
9
9
  rank: zod_1.z.coerce.number().int().min(0),
10
10
  }))
11
11
  .min(1),
@@ -4,7 +4,7 @@ exports.CreateOrderFromPreOrderContractCommand = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const schemas_1 = require("../../schemas");
6
6
  const CreateOrderFromPreOrderRequestSchema = zod_1.z.object({
7
- consignmentUUIDList: zod_1.z.string().uuid().array(),
7
+ consignmentUUIDList: zod_1.z.uuid().array(),
8
8
  });
9
9
  const CreateOrderFromPreOrderResponseSchema = zod_1.z.object({
10
10
  message: zod_1.z.string().optional(),
@@ -9,7 +9,7 @@ const GetPreOrderListRequestSchema = zod_1.z.object({
9
9
  count: zod_1.z.coerce.number().optional().default(10),
10
10
  searchQuery: zod_1.z.string().optional(),
11
11
  preOrderCollectionUUID: zod_1.z.string().optional(),
12
- status: zod_1.z.nativeEnum(enum_1.PreOrderStatusEnum).array().optional(),
12
+ status: zod_1.z.enum(enum_1.PreOrderStatusEnum).array().optional(),
13
13
  createdAtFrom: zod_1.z.coerce.date().optional(),
14
14
  createdAtTo: zod_1.z.coerce.date().optional(),
15
15
  responsibleUserUUID: zod_1.z.string().optional(),
@@ -4,8 +4,8 @@ exports.AnalyzeCopyPreOrdersContractCommand = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const schemas_1 = require("../../../schemas");
6
6
  const AnalyzeCopyPreOrdersRequestSchema = zod_1.z.object({
7
- preOrderUUIDList: zod_1.z.array(zod_1.z.string().uuid()),
8
- targetPreOrderCollectionUUID: zod_1.z.string().uuid(),
7
+ preOrderUUIDList: zod_1.z.array(zod_1.z.uuid()),
8
+ targetPreOrderCollectionUUID: zod_1.z.uuid(),
9
9
  matchingConfig: schemas_1.MatchingConfigSchema.optional().nullable(),
10
10
  });
11
11
  const AnalyzeCopyPreOrdersResponseSchema = zod_1.z.object({
@@ -4,8 +4,8 @@ exports.AnalyzeCreateOrdersFromPreOrdersContractCommand = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const schemas_1 = require("../../../schemas");
6
6
  const AnalyzeCreateOrdersFromPreOrdersRequestSchema = zod_1.z.object({
7
- preOrderUUIDs: zod_1.z.string().uuid().array(),
8
- consignmentUUIDs: zod_1.z.string().uuid().array(),
7
+ preOrderUUIDs: zod_1.z.uuid().array(),
8
+ consignmentUUIDs: zod_1.z.uuid().array(),
9
9
  matchingConfig: schemas_1.MatchingConfigSchema.optional().nullable(),
10
10
  isProportionalAllocation: zod_1.z.coerce.boolean().optional(),
11
11
  });
@@ -4,8 +4,8 @@ exports.AnalyzeCreatePreOrdersFromStandingOrdersContractCommand = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const schemas_1 = require("../../../schemas");
6
6
  const AnalyzeCreatePreOrdersFromStandingOrdersRequestSchema = zod_1.z.object({
7
- standingOrderUUIDs: zod_1.z.string().uuid().array(),
8
- preOrderCollectionUUIDs: zod_1.z.string().uuid().array(),
7
+ standingOrderUUIDs: zod_1.z.uuid().array(),
8
+ preOrderCollectionUUIDs: zod_1.z.uuid().array(),
9
9
  matchingConfig: schemas_1.MatchingConfigSchema.optional().nullable(),
10
10
  });
11
11
  const AnalyzeCreatePreOrdersFromStandingOrdersResponseSchema = zod_1.z.object({
@@ -4,8 +4,8 @@ exports.GroupCopyPreOrdersToCollectionContractCommand = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const pre_order_product_schema_1 = require("../../../schemas/pre-order-product/pre-order-product.schema");
6
6
  const GroupCopyPreOrdersToCollectionRequestSchema = zod_1.z.object({
7
- preOrderUUIDList: zod_1.z.array(zod_1.z.string().uuid()),
8
- targetPreOrderCollectionUUID: zod_1.z.string().uuid(),
7
+ preOrderUUIDList: zod_1.z.array(zod_1.z.uuid()),
8
+ targetPreOrderCollectionUUID: zod_1.z.uuid(),
9
9
  matchingConfig: pre_order_product_schema_1.MatchingConfigSchema.optional().nullable(),
10
10
  });
11
11
  const GroupCopyPreOrdersToCollectionResponseSchema = zod_1.z.object({
@@ -4,8 +4,8 @@ exports.GroupCreateOrdersFromPreOrdersContractCommand = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const schemas_1 = require("../../../schemas");
6
6
  const GroupCreateOrdersFromPreOrdersRequestSchema = zod_1.z.object({
7
- preOrderUUIDs: zod_1.z.string().uuid().array(),
8
- consignmentUUIDs: zod_1.z.string().uuid().array(),
7
+ preOrderUUIDs: zod_1.z.uuid().array(),
8
+ consignmentUUIDs: zod_1.z.uuid().array(),
9
9
  matchingConfig: schemas_1.MatchingConfigSchema.optional().nullable(),
10
10
  isProportionalAllocation: zod_1.z.coerce.boolean().optional(),
11
11
  });
@@ -14,7 +14,7 @@ const GroupCreateOrdersFromPreOrdersResponseSchema = zod_1.z.object({
14
14
  data: zod_1.z.object({
15
15
  created: zod_1.z
16
16
  .object({
17
- preOrderUUID: zod_1.z.string().uuid(),
17
+ preOrderUUID: zod_1.z.uuid(),
18
18
  orders: schemas_1.OrderSchema.extend({
19
19
  warnings: zod_1.z.string().array(),
20
20
  }).array(),
@@ -22,7 +22,7 @@ const GroupCreateOrdersFromPreOrdersResponseSchema = zod_1.z.object({
22
22
  .array(),
23
23
  failed: zod_1.z
24
24
  .object({
25
- preOrderUUID: zod_1.z.string().uuid(),
25
+ preOrderUUID: zod_1.z.uuid(),
26
26
  error: zod_1.z.object({
27
27
  code: zod_1.z.string(),
28
28
  message: zod_1.z.string(),
@@ -4,8 +4,8 @@ exports.GroupCreatePreOrdersFromStandingOrdersContractCommand = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const schemas_1 = require("../../../schemas");
6
6
  const GroupCreatePreOrdersFromStandingOrdersRequestSchema = zod_1.z.object({
7
- standingOrderUUIDs: zod_1.z.string().uuid().array(),
8
- preOrderCollectionUUIDs: zod_1.z.string().uuid().array(),
7
+ standingOrderUUIDs: zod_1.z.uuid().array(),
8
+ preOrderCollectionUUIDs: zod_1.z.uuid().array(),
9
9
  matchingConfig: schemas_1.MatchingConfigSchema.optional().nullable(),
10
10
  });
11
11
  const GroupCreatePreOrdersFromStandingOrdersResponseSchema = zod_1.z.object({
@@ -13,14 +13,14 @@ const GroupCreatePreOrdersFromStandingOrdersResponseSchema = zod_1.z.object({
13
13
  data: zod_1.z.object({
14
14
  created: zod_1.z
15
15
  .object({
16
- standingOrderUUID: zod_1.z.string().uuid(),
16
+ standingOrderUUID: zod_1.z.uuid(),
17
17
  preOrders: schemas_1.PreOrderSchema.array(),
18
18
  warnings: zod_1.z.string().array(),
19
19
  })
20
20
  .array(),
21
21
  failed: zod_1.z
22
22
  .object({
23
- standingOrderUUID: zod_1.z.string().uuid(),
23
+ standingOrderUUID: zod_1.z.uuid(),
24
24
  error: zod_1.z.object({
25
25
  code: zod_1.z.string(),
26
26
  message: zod_1.z.string(),
@@ -7,7 +7,7 @@ const schemas_1 = require("../../../schemas");
7
7
  const GetPreOrderListWebshopRequestSchema = zod_1.z.object({
8
8
  page: zod_1.z.coerce.number().optional().default(1),
9
9
  count: zod_1.z.coerce.number().optional().default(10),
10
- statuses: zod_1.z.array(zod_1.z.nativeEnum(enum_1.PreOrderStatusEnum)).optional(),
10
+ statuses: zod_1.z.array(zod_1.z.enum(enum_1.PreOrderStatusEnum)).optional(),
11
11
  });
12
12
  const GetPreOrderListResponseSchema = zod_1.z.object({
13
13
  data: schemas_1.PreOrderListSchema,
@@ -8,7 +8,7 @@ const GetPreOrderCollectionListRequestSchema = zod_1.z.object({
8
8
  page: zod_1.z.coerce.number().optional().default(1),
9
9
  count: zod_1.z.coerce.number().optional().default(10),
10
10
  searchQuery: zod_1.z.string().optional(),
11
- status: zod_1.z.nativeEnum(enum_1.PreOrderCollectionStatusEnum).optional(),
11
+ status: zod_1.z.enum(enum_1.PreOrderCollectionStatusEnum).optional(),
12
12
  startDate: zod_1.z.coerce.date().optional(),
13
13
  endDate: zod_1.z.coerce.date().optional(),
14
14
  });
@@ -4,7 +4,7 @@ exports.MatchImagesForCollectionContractCommand = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const MatchImagesRequestSchema = zod_1.z.object({
6
6
  onlyWithoutImages: zod_1.z.coerce.boolean().default(true),
7
- uuidList: zod_1.z.array(zod_1.z.string().uuid()).optional(),
7
+ uuidList: zod_1.z.array(zod_1.z.uuid()).optional(),
8
8
  });
9
9
  const MatchImagesResponseSchema = zod_1.z.object({
10
10
  message: zod_1.z.string().optional(),
@@ -4,7 +4,7 @@ exports.ExportPreOrderCollectionItemWithClientsVerticalContractQuery = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const enum_1 = require("../../enum");
6
6
  const ExportPreOrderCollectionItemWithClientsVerticalRequestSchema = zod_1.z.object({
7
- aggregationMode: zod_1.z.nativeEnum(enum_1.PreOrderAggregationModeEnum).optional().default(enum_1.PreOrderAggregationModeEnum.ITEM),
7
+ aggregationMode: zod_1.z.enum(enum_1.PreOrderAggregationModeEnum).optional().default(enum_1.PreOrderAggregationModeEnum.ITEM),
8
8
  });
9
9
  const ExportPreOrderCollectionItemWithClientsVerticalResponseSchema = zod_1.z.object({
10
10
  message: zod_1.z.string().optional(),
@@ -7,7 +7,7 @@ const enum_1 = require("../../enum");
7
7
  const GetPreOrderCollectionItemExtendedWithClientsPreOrderProductListRequestSchema = zod_1.z.object({
8
8
  preOrderCollectionUUID: zod_1.z.string().optional(),
9
9
  searchQuery: zod_1.z.string().optional(),
10
- statuses: zod_1.z.nativeEnum(enum_1.PreOrderStatusEnum).array().optional(),
10
+ statuses: zod_1.z.enum(enum_1.PreOrderStatusEnum).array().optional(),
11
11
  preOrderCreatedAtFrom: zod_1.z.coerce.date().optional(),
12
12
  preOrderCreatedAtTo: zod_1.z.coerce.date().optional(),
13
13
  });
@@ -5,7 +5,7 @@ const zod_1 = require("zod");
5
5
  const ReorderPreOrderCollectionItemMultiplicityOptionsRequestSchema = zod_1.z.object({
6
6
  items: zod_1.z
7
7
  .array(zod_1.z.object({
8
- optionUUID: zod_1.z.string().uuid(),
8
+ optionUUID: zod_1.z.uuid(),
9
9
  rank: zod_1.z.coerce.number().int().min(0),
10
10
  }))
11
11
  .min(1),
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetProductQuantityCalculateContractQuery = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const GetProductQuantityCalculateRequestSchema = zod_1.z.object({
6
- productUUIDList: zod_1.z.string().uuid().array(),
6
+ productUUIDList: zod_1.z.uuid().array(),
7
7
  });
8
8
  const GetProductQuantityCalculateResponseSchema = zod_1.z.object({
9
9
  message: zod_1.z.string().optional(),
@@ -31,7 +31,7 @@ const UpdateGroupProductUpdateBatchResponseSchema = zod_1.z.object({
31
31
  failedCount: zod_1.z.number().optional(),
32
32
  errors: zod_1.z
33
33
  .array(zod_1.z.object({
34
- productUUID: zod_1.z.string().uuid(),
34
+ productUUID: zod_1.z.uuid(),
35
35
  message: zod_1.z.string(),
36
36
  }))
37
37
  .optional(),
@@ -5,7 +5,7 @@ const zod_1 = require("zod");
5
5
  const ReorderProductMultiplicityOptionsRequestSchema = zod_1.z.object({
6
6
  items: zod_1.z
7
7
  .array(zod_1.z.object({
8
- optionUUID: zod_1.z.string().uuid(),
8
+ optionUUID: zod_1.z.uuid(),
9
9
  rank: zod_1.z.coerce.number().int().min(0),
10
10
  }))
11
11
  .min(1),
@@ -8,7 +8,7 @@ const GetProductConfigurationListRequestSchema = zod_1.z.object({
8
8
  page: zod_1.z.coerce.number().optional().default(1),
9
9
  count: zod_1.z.coerce.number().optional().default(10),
10
10
  categoryUUID: zod_1.z.string().optional(),
11
- country: zod_1.z.nativeEnum(enum_1.CountryCodeEnum).optional(),
11
+ country: zod_1.z.enum(enum_1.CountryCodeEnum).optional(),
12
12
  grower: zod_1.z.string().optional(),
13
13
  size: zod_1.z.coerce.number().optional(),
14
14
  isOptional: zod_1.z.coerce.boolean().optional(),
@@ -7,7 +7,7 @@ const enum_1 = require("../../enum");
7
7
  const GetProductImageListRequestSchema = zod_1.z.object({
8
8
  page: zod_1.z.string().transform(val => Number(val) || 1),
9
9
  count: zod_1.z.string().transform(val => Number(val) || 10),
10
- orderBy: zod_1.z.nativeEnum(enum_1.ProductImageOrderByEnum).optional(),
10
+ orderBy: zod_1.z.enum(enum_1.ProductImageOrderByEnum).optional(),
11
11
  searchQuery: zod_1.z.string().optional(),
12
12
  productUUID: zod_1.z.string().optional(),
13
13
  categoryUUID: zod_1.z.string().optional(),
@@ -8,7 +8,7 @@ const ExportClientStatementRequestSchema = zod_1.z
8
8
  .object({
9
9
  startDate: zod_1.z.coerce.date().optional(),
10
10
  endDate: zod_1.z.coerce.date().optional(),
11
- clientUUID: zod_1.z.string().uuid(),
11
+ clientUUID: zod_1.z.uuid(),
12
12
  })
13
13
  .refine(value => {
14
14
  const { startDate, endDate } = value;
@@ -8,7 +8,7 @@ const ExportInventoryMovementRequestSchema = zod_1.z
8
8
  .object({
9
9
  startDate: zod_1.z.coerce.date().optional(),
10
10
  endDate: zod_1.z.coerce.date().optional(),
11
- categoryUUID: zod_1.z.string().uuid().optional(), // Фильтр по категории
11
+ categoryUUID: zod_1.z.uuid().optional(), // Фильтр по категории
12
12
  detailed: zod_1.z.coerce.boolean().optional().default(false), // Флаг для детализации
13
13
  })
14
14
  .refine(value => {
@@ -26,7 +26,7 @@ const CategoryMovementItemSchema = zod_1.z.object({
26
26
  date: zod_1.z.string(),
27
27
  categoryUUID: zod_1.z.string(),
28
28
  categoryName: zod_1.z.string(),
29
- movementType: zod_1.z.nativeEnum(inventory_movement_type_enum_1.InventoryMovementTypeEnum), // тип движения как enum
29
+ movementType: zod_1.z.enum(inventory_movement_type_enum_1.InventoryMovementTypeEnum), // тип движения как enum
30
30
  quantity: zod_1.z.number(),
31
31
  });
32
32
  // Ответ для детализированного отчета (с группировкой по name, size, grower)
@@ -38,7 +38,7 @@ const DetailedMovementItemSchema = zod_1.z.object({
38
38
  color: zod_1.z.string().nullable(),
39
39
  size: zod_1.z.string().nullable(),
40
40
  grower: zod_1.z.string().nullable(),
41
- movementType: zod_1.z.nativeEnum(inventory_movement_type_enum_1.InventoryMovementTypeEnum), // тип движения как enum
41
+ movementType: zod_1.z.enum(inventory_movement_type_enum_1.InventoryMovementTypeEnum), // тип движения как enum
42
42
  quantity: zod_1.z.number(),
43
43
  documentNumber: zod_1.z.string().nullable(), // номер документа
44
44
  });
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ExportInventoryStockContractQuery = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const ExportInventoryStockRequestSchema = zod_1.z.object({
6
- categoryUUID: zod_1.z.string().uuid().optional(), // Фильтр по категории
6
+ categoryUUID: zod_1.z.uuid().optional(), // Фильтр по категории
7
7
  detailed: zod_1.z.coerce.boolean().optional().default(false), // Флаг для детализации (группировка по name, size, grower)
8
8
  });
9
9
  // Ответ для обычного отчета (по категориям)
@@ -7,7 +7,7 @@ const ExportInventoryTurnoverRequestSchema = zod_1.z
7
7
  .object({
8
8
  startDate: zod_1.z.coerce.date().optional(),
9
9
  endDate: zod_1.z.coerce.date().optional(),
10
- categoryUUID: zod_1.z.string().uuid().optional(), // Фильтр по категории
10
+ categoryUUID: zod_1.z.uuid().optional(), // Фильтр по категории
11
11
  detailed: zod_1.z.coerce.boolean().optional().default(false), // Флаг для детализации
12
12
  })
13
13
  .refine(value => {
@@ -8,7 +8,7 @@ const ExportSalesRevenueRequestSchema = zod_1.z
8
8
  .object({
9
9
  startDate: zod_1.z.coerce.date().optional(),
10
10
  endDate: zod_1.z.coerce.date().optional(),
11
- periodType: zod_1.z.nativeEnum(report_period_type_enum_1.ReportPeriodTypeEnum).default(report_period_type_enum_1.ReportPeriodTypeEnum.DAY),
11
+ periodType: zod_1.z.enum(report_period_type_enum_1.ReportPeriodTypeEnum).default(report_period_type_enum_1.ReportPeriodTypeEnum.DAY),
12
12
  })
13
13
  .refine(value => {
14
14
  const { startDate, endDate } = value;
@@ -4,7 +4,7 @@ exports.ApplyPrepaymentTransactionContractCommand = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const schemas_1 = require("../../schemas");
6
6
  const ApplyPrepaymentTransactionRequestSchema = zod_1.z.object({
7
- orderUUID: zod_1.z.string().uuid().optional(),
7
+ orderUUID: zod_1.z.uuid().optional(),
8
8
  });
9
9
  const ApplyPrepaymentTransactionResponseSchema = zod_1.z.object({
10
10
  message: zod_1.z.string().optional(),
@@ -8,7 +8,7 @@ const ExportTransactionsRequestSchema = zod_1.z
8
8
  .object({
9
9
  startDate: zod_1.z.coerce.date(),
10
10
  endDate: zod_1.z.coerce.date(),
11
- transactionType: zod_1.z.nativeEnum(enum_1.TransactionTypeEnum).optional(),
11
+ transactionType: zod_1.z.enum(enum_1.TransactionTypeEnum).optional(),
12
12
  moneyAccountUUID: zod_1.z.string().optional(),
13
13
  clientUUID: zod_1.z.string().optional(),
14
14
  orderUUID: zod_1.z.string().optional(),
@@ -11,7 +11,7 @@ const GetTransactionListRequestSchema = zod_1.z
11
11
  count: zod_1.z.coerce.number().optional().default(10),
12
12
  startDate: zod_1.z.coerce.date().optional(),
13
13
  endDate: zod_1.z.coerce.date().optional(),
14
- transactionType: zod_1.z.nativeEnum(enum_1.TransactionTypeEnum).optional(),
14
+ transactionType: zod_1.z.enum(enum_1.TransactionTypeEnum).optional(),
15
15
  moneyAccountUUID: zod_1.z.string().optional(),
16
16
  clientUUID: zod_1.z.string().optional(),
17
17
  orderUUID: zod_1.z.string().optional(),
@@ -8,7 +8,7 @@ const GetTransactionSummaryRequestSchema = zod_1.z
8
8
  .object({
9
9
  startDate: zod_1.z.coerce.date().optional(),
10
10
  endDate: zod_1.z.coerce.date().optional(),
11
- transactionType: zod_1.z.nativeEnum(enum_1.TransactionTypeEnum).optional(),
11
+ transactionType: zod_1.z.enum(enum_1.TransactionTypeEnum).optional(),
12
12
  moneyAccountUUID: zod_1.z.string().optional(),
13
13
  clientUUID: zod_1.z.string().optional(),
14
14
  orderUUID: zod_1.z.string().optional(),
@@ -11,7 +11,7 @@ const GetTransactionListForClientRequestSchema = zod_1.z
11
11
  count: zod_1.z.coerce.number().optional().default(10),
12
12
  startDate: zod_1.z.coerce.date().optional(),
13
13
  endDate: zod_1.z.coerce.date().optional(),
14
- transactionType: zod_1.z.nativeEnum(enum_1.TransactionTypeEnum).optional(),
14
+ transactionType: zod_1.z.enum(enum_1.TransactionTypeEnum).optional(),
15
15
  moneyAccountUUID: zod_1.z.string().optional(),
16
16
  orderUUID: zod_1.z.string().optional(),
17
17
  searchQuery: zod_1.z.string().optional(),
@@ -4,7 +4,7 @@ exports.DeleteTypeContractCommand = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const delete_data_response_schema_1 = require("../../schemas/delete-data-response.schema");
6
6
  const DeleteTypeRequestSchema = zod_1.z.object({
7
- uuid: zod_1.z.string().uuid(),
7
+ uuid: zod_1.z.uuid(),
8
8
  });
9
9
  const DeleteTypeResponseSchema = zod_1.z.object({
10
10
  message: zod_1.z.string().optional(),
@@ -4,7 +4,7 @@ exports.GetTypeByUUIDhContractQuery = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const type_schema_1 = require("../../schemas/type/type.schema");
6
6
  const GetTypeByUUIDRequestSchema = zod_1.z.object({
7
- uuid: zod_1.z.string().uuid(),
7
+ uuid: zod_1.z.uuid(),
8
8
  });
9
9
  const GetTypeByUUIDResponseSchema = zod_1.z.object({
10
10
  message: zod_1.z.string().optional(),
@@ -7,7 +7,7 @@ const order_by_enum_1 = require("../../enum/order-by.enum");
7
7
  const GetTypeListRequestSchema = zod_1.z.object({
8
8
  page: zod_1.z.string().transform(val => Number(val) || 1),
9
9
  count: zod_1.z.string().transform(val => Number(val) || 10),
10
- orderBy: zod_1.z.nativeEnum(order_by_enum_1.OrderByEnum).optional().default(order_by_enum_1.OrderByEnum.ASC),
10
+ orderBy: zod_1.z.enum(order_by_enum_1.OrderByEnum).optional().default(order_by_enum_1.OrderByEnum.ASC),
11
11
  });
12
12
  exports.TypeListSchemaWithTotal = zod_1.z.object({
13
13
  typeList: typeList_schema_1.TypeListSchema.array(),
@@ -9,14 +9,14 @@ const CreateUserByClientIdRequestSchema = zod_1.z.object({
9
9
  .object({
10
10
  password: zod_1.z.string(),
11
11
  name: zod_1.z.string(),
12
- email: zod_1.z.string().email().toLowerCase().nullable().optional(),
12
+ email: zod_1.z.email().toLowerCase().nullable().optional(),
13
13
  phone: zod_1.z.string().nullable().optional(),
14
- roles: zod_1.z.array(zod_1.z.nativeEnum(enum_1.UserRoleEnum)).optional().default([enum_1.UserRoleEnum.BUYER]),
14
+ roles: zod_1.z.array(zod_1.z.enum(enum_1.UserRoleEnum)).optional().default([enum_1.UserRoleEnum.BUYER]),
15
15
  })
16
16
  .refine(data => data.email || data.phone, {
17
17
  message: 'Either email or phone must be provided',
18
18
  }),
19
- clientUuid: zod_1.z.string().uuid(),
19
+ clientUuid: zod_1.z.uuid(),
20
20
  });
21
21
  const CreateUserByClientIdResponseSchema = zod_1.z.object({
22
22
  message: zod_1.z.string().optional(),
@@ -4,7 +4,7 @@ exports.CreateUserForCompanyCommand = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const schemas_1 = require("../../schemas");
6
6
  const enum_1 = require("../../enum");
7
- const UserRoles = zod_1.z.nativeEnum(enum_1.UserRoleEnum);
7
+ const UserRoles = zod_1.z.enum(enum_1.UserRoleEnum);
8
8
  const AllowedRoles = UserRoles.refine(role => role !== enum_1.UserRoleEnum.BUYER, {
9
9
  message: 'Allowed roles are: Admin, Manager, Employee',
10
10
  });
@@ -9,8 +9,8 @@ const GetUserListRequestSchema = zod_1.z.object({
9
9
  page: zod_1.z.coerce.number().optional().default(1),
10
10
  count: zod_1.z.coerce.number().optional().default(10),
11
11
  searchQuery: zod_1.z.string().optional().nullable().default(null),
12
- orderBy: zod_1.z.nativeEnum(order_by_enum_1.OrderByEnum).default(order_by_enum_1.OrderByEnum.ASC),
13
- roles: zod_1.z.array(zod_1.z.nativeEnum(enum_1.UserRoleEnum)).optional().nullable().default(null),
12
+ orderBy: zod_1.z.enum(order_by_enum_1.OrderByEnum).default(order_by_enum_1.OrderByEnum.ASC),
13
+ roles: zod_1.z.array(zod_1.z.enum(enum_1.UserRoleEnum)).optional().nullable().default(null),
14
14
  });
15
15
  const GetUserListResponseSchema = zod_1.z.object({
16
16
  message: zod_1.z.string().optional(),
@@ -4,7 +4,7 @@ exports.UpdateUserContractCommand = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const schemas_1 = require("../../schemas");
6
6
  const UpdateUserRequestSchema = zod_1.z.object({
7
- email: zod_1.z.string().email().toLowerCase().nullable().optional(),
7
+ email: zod_1.z.email().toLowerCase().nullable().optional(),
8
8
  name: zod_1.z.string().optional(),
9
9
  phone: zod_1.z.string().nullable().optional(),
10
10
  });
@@ -8,7 +8,7 @@ const CreateWriteOffArchiveResponseSchema = zod_1.z.object({
8
8
  message: zod_1.z.string().optional(),
9
9
  data: zod_1.z
10
10
  .object({
11
- status: zod_1.z.nativeEnum(enum_1.ConsignmentWriteOffArchivesStatusEnum),
11
+ status: zod_1.z.enum(enum_1.ConsignmentWriteOffArchivesStatusEnum),
12
12
  url: zod_1.z.string().nullable().optional(),
13
13
  })
14
14
  .nullable(),
@@ -8,7 +8,7 @@ const InfoWriteOffArchiveResponseSchema = zod_1.z.object({
8
8
  message: zod_1.z.string().optional(),
9
9
  data: zod_1.z
10
10
  .object({
11
- status: zod_1.z.nativeEnum(enum_1.ConsignmentWriteOffArchivesStatusEnum),
11
+ status: zod_1.z.enum(enum_1.ConsignmentWriteOffArchivesStatusEnum),
12
12
  url: zod_1.z.string().nullable().optional(),
13
13
  })
14
14
  .nullable(),
@@ -12,7 +12,7 @@ const GetWriteOffListRequestSchema = zod_1.z.object({
12
12
  clientUUID: zod_1.z.string().optional(),
13
13
  searchQuery: zod_1.z.string().optional(),
14
14
  responsibleUserUUID: zod_1.z.string().optional(),
15
- status: zod_1.z.nativeEnum(enum_1.WriteOffStatusEnum).optional(),
15
+ status: zod_1.z.enum(enum_1.WriteOffStatusEnum).optional(),
16
16
  page: zod_1.z.coerce.number().optional().default(1),
17
17
  count: zod_1.z.coerce.number().optional().default(10),
18
18
  });
@@ -198,6 +198,8 @@ exports.ERRORS = {
198
198
  httpCode: 400,
199
199
  },
200
200
  PRODUCT_MULTIPLICITY_OPTION_NOT_FOUND: { code: 'P017', message: 'Product multiplicity option not found', httpCode: 404 },
201
+ PRODUCT_MULTIPLICITY_OPTION_USED_IN_ORDER: { code: 'P018', message: 'Product multiplicity option used in order', httpCode: 400 },
202
+ PRODUCT_MULTIPLICITY_OPTION_NOT_DELETED: { code: 'P019', message: 'Failed to delete product multiplicity option', httpCode: 500 },
201
203
  // PRODUCT CONFIGURATION
202
204
  PRODUCT_CONFIGURATION_NOT_CREATED: { code: 'PCFG001', message: 'Failed to create product configuration', httpCode: 500 },
203
205
  PRODUCT_CONFIGURATION_NOT_DELETED: { code: 'PCFG002', message: 'Failed to delete product configuration', httpCode: 500 },
@@ -683,6 +685,16 @@ exports.ERRORS = {
683
685
  httpCode: 400,
684
686
  },
685
687
  PRE_ORDER_COLLECTION_ITEM_EXPORT_FAILED: { code: 'POCI017', message: 'Failed to export pre order collection item', httpCode: 500 },
688
+ PRE_ORDER_COLLECTION_ITEM_MULTIPLICITY_OPTION_USED_IN_PRE_ORDER: {
689
+ code: 'POCI018',
690
+ message: 'Multiplicity option used in pre order',
691
+ httpCode: 400,
692
+ },
693
+ PRE_ORDER_COLLECTION_ITEM_MULTIPLICITY_OPTION_NOT_DELETED: {
694
+ code: 'POCI019',
695
+ message: 'Failed to delete multiplicity option',
696
+ httpCode: 500,
697
+ },
686
698
  // EMPLOYEE SCHEDULE
687
699
  EMPLOYEE_SCHEDULE_NOT_CREATED: { code: 'ES001', message: 'Failed to create employee schedule', httpCode: 500 },
688
700
  EMPLOYEE_SCHEDULE_NOT_DELETED: { code: 'ES002', message: 'Failed to delete employee schedule', httpCode: 500 },
@@ -42,6 +42,8 @@ __exportStar(require("./discount-rules-type.enum"), exports);
42
42
  __exportStar(require("./discount-rules-mode-type.enum"), exports);
43
43
  __exportStar(require("./order-distribute-status-list"), exports);
44
44
  __exportStar(require("./order-active-status-list"), exports);
45
+ __exportStar(require("./client-status.enum"), exports);
46
+ __exportStar(require("./client-type.enum"), exports);
45
47
  __exportStar(require("./consignment-distribution-validation-status.enum"), exports);
46
48
  __exportStar(require("./consignment-distribution-validation-type.enum"), exports);
47
49
  __exportStar(require("./consignment-access-client-status.enum"), exports);
@@ -96,7 +96,7 @@ exports.ActionLogSchema = zod_1.z.discriminatedUnion('actionType', [
96
96
  .merge(BaseActionFields),
97
97
  ]);
98
98
  exports.CreateActionLogSchema = zod_1.z.object({
99
- actionType: zod_1.z.nativeEnum(enum_1.ActionLogTypeEnum),
99
+ actionType: zod_1.z.enum(enum_1.ActionLogTypeEnum),
100
100
  entityUUID: zod_1.z.string(),
101
101
  });
102
102
  exports.ActionLogListSchema = zod_1.z.object({
@@ -4,6 +4,6 @@ exports.OrderUpdateActionLogSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const enum_1 = require("../../enum");
6
6
  exports.OrderUpdateActionLogSchema = zod_1.z.object({
7
- oldStatus: zod_1.z.nativeEnum(enum_1.OrderStatusEnum),
8
- newStatus: zod_1.z.nativeEnum(enum_1.OrderStatusEnum),
7
+ oldStatus: zod_1.z.enum(enum_1.OrderStatusEnum),
8
+ newStatus: zod_1.z.enum(enum_1.OrderStatusEnum),
9
9
  });
@@ -8,6 +8,6 @@ exports.TransactionInfoSchema = zod_1.z.object({
8
8
  createdAt: zod_1.z.coerce.date(),
9
9
  amount: zod_1.z.coerce.number(),
10
10
  moneyAccountName: zod_1.z.string(),
11
- type: zod_1.z.nativeEnum(enum_1.TransactionTypeEnum),
11
+ type: zod_1.z.enum(enum_1.TransactionTypeEnum),
12
12
  clientName: zod_1.z.string().nullable(),
13
13
  });
@@ -5,22 +5,22 @@ const zod_1 = require("zod");
5
5
  const bank_provider_enum_1 = require("../../enum/bank-provider.enum");
6
6
  const bank_payment_event_status_enum_1 = require("../../enum/bank-payment-event-status.enum");
7
7
  exports.BankPaymentSchema = zod_1.z.object({
8
- uuid: zod_1.z.string().uuid(),
9
- provider: zod_1.z.nativeEnum(bank_provider_enum_1.BankProviderEnum),
8
+ uuid: zod_1.z.uuid(),
9
+ provider: zod_1.z.enum(bank_provider_enum_1.BankProviderEnum),
10
10
  externalEventId: zod_1.z.string(),
11
11
  accountNumber: zod_1.z.string(),
12
12
  amount: zod_1.z.coerce.number(),
13
13
  currency: zod_1.z.string(),
14
14
  purpose: zod_1.z.string(),
15
- status: zod_1.z.nativeEnum(bank_payment_event_status_enum_1.BankPaymentEventStatusEnum),
15
+ status: zod_1.z.enum(bank_payment_event_status_enum_1.BankPaymentEventStatusEnum),
16
16
  docNumber: zod_1.z.string().nullable(),
17
17
  clientName: zod_1.z.string().nullable(),
18
18
  clientInn: zod_1.z.string().nullable(),
19
19
  valueDate: zod_1.z.coerce.date(),
20
- clientUUID: zod_1.z.string().uuid().nullable(),
21
- moneyAccountUUID: zod_1.z.string().uuid().nullable(),
20
+ clientUUID: zod_1.z.uuid().nullable(),
21
+ moneyAccountUUID: zod_1.z.uuid().nullable(),
22
22
  moneyAccountName: zod_1.z.string().nullable(),
23
23
  payload: zod_1.z.unknown(),
24
- appliedTransactionUUID: zod_1.z.string().uuid().nullable(),
24
+ appliedTransactionUUID: zod_1.z.uuid().nullable(),
25
25
  receivedAt: zod_1.z.coerce.date(),
26
26
  });
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BranchSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.BranchSchema = zod_1.z.object({
6
- uuid: zod_1.z.string().uuid(),
6
+ uuid: zod_1.z.uuid(),
7
7
  name: zod_1.z.string(),
8
8
  contactName: zod_1.z.string().nullable(),
9
9
  contactPhone: zod_1.z.string().nullable(),
@@ -11,7 +11,7 @@ exports.BranchSchema = zod_1.z.object({
11
11
  city: zod_1.z.string().nullable(),
12
12
  region: zod_1.z.string().nullable(),
13
13
  country: zod_1.z.string().nullable(),
14
- clientId: zod_1.z.string().uuid(),
14
+ clientId: zod_1.z.uuid(),
15
15
  createdAt: zod_1.z.date(),
16
16
  updatedAt: zod_1.z.date(),
17
17
  });