@floristcloud/api-lib 1.0.3 → 1.0.5

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 (567) hide show
  1. package/build/commands/pre-order/webshop/checkout-pre-order-webshop.command.js +4 -1
  2. package/commands/pre-order/webshop/checkout-pre-order-webshop.command.ts +4 -1
  3. package/package.json +6 -9
  4. package/tsconfig.json +3 -3
  5. package/build/commands/action-log/create-action-log.command.d.ts +0 -1439
  6. package/build/commands/action-log/get-action-log-list-for-client.query.d.ts +0 -1888
  7. package/build/commands/action-log/get-action-log-list.query.d.ts +0 -1893
  8. package/build/commands/action-log/index.d.ts +0 -3
  9. package/build/commands/auth/index.d.ts +0 -7
  10. package/build/commands/auth/login-user.command.d.ts +0 -51
  11. package/build/commands/auth/register-user.command.d.ts +0 -41
  12. package/build/commands/auth/reset-password-by-admin.command.d.ts +0 -19
  13. package/build/commands/auth/reset-password-by-security-code.command.d.ts +0 -77
  14. package/build/commands/auth/reset-password-by-token.command.d.ts +0 -97
  15. package/build/commands/auth/reset-password-by-user.command.d.ts +0 -19
  16. package/build/commands/auth/restore-password-by-security-code.command.d.ts +0 -39
  17. package/build/commands/branch/create-branch.command.d.ts +0 -100
  18. package/build/commands/branch/delete-branch.command.d.ts +0 -32
  19. package/build/commands/branch/get-branch-list-all-by-client-uuid.query.d.ts +0 -115
  20. package/build/commands/branch/get-branch-list.query.d.ts +0 -124
  21. package/build/commands/branch/get-branch.query.d.ts +0 -76
  22. package/build/commands/branch/index.d.ts +0 -6
  23. package/build/commands/branch/update-branch.command.d.ts +0 -100
  24. package/build/commands/category/create-category.command.d.ts +0 -84
  25. package/build/commands/category/delete-category.command.d.ts +0 -32
  26. package/build/commands/category/get-category-by-uuid.query.d.ts +0 -126
  27. package/build/commands/category/get-category-list.query.d.ts +0 -194
  28. package/build/commands/category/index.d.ts +0 -5
  29. package/build/commands/category/update-category-command.d.ts +0 -88
  30. package/build/commands/category/webshop/get-category-list-for-client.query.d.ts +0 -118
  31. package/build/commands/category-alias/create-category-alias.command.d.ts +0 -62
  32. package/build/commands/category-alias/delete-category-alias.command.d.ts +0 -32
  33. package/build/commands/category-alias/get-category-alias-by-uuid.query.d.ts +0 -62
  34. package/build/commands/category-alias/get-category-alias-list-by-category-uuid.query.d.ts +0 -58
  35. package/build/commands/category-alias/get-category-alias-list.query.d.ts +0 -64
  36. package/build/commands/category-alias/index.d.ts +0 -1
  37. package/build/commands/category-alias/update-category-alias.command.d.ts +0 -65
  38. package/build/commands/category-template/create-category-template.command.d.ts +0 -116
  39. package/build/commands/category-template/get-category-template-by-uuid.query.d.ts +0 -80
  40. package/build/commands/category-template/get-category-template-list.query.d.ts +0 -80
  41. package/build/commands/category-template/index.d.ts +0 -4
  42. package/build/commands/category-template/update-category-template.command.d.ts +0 -116
  43. package/build/commands/client/attach-user-to-client.command.d.ts +0 -152
  44. package/build/commands/client/create-client.command.d.ts +0 -202
  45. package/build/commands/client/delete-client.command.d.ts +0 -32
  46. package/build/commands/client/detach-user-from-client.command.d.ts +0 -146
  47. package/build/commands/client/get-client-calculate.query.d.ts +0 -39
  48. package/build/commands/client/get-client-filters-values.query.d.ts +0 -31
  49. package/build/commands/client/get-client-list.query.d.ts +0 -1257
  50. package/build/commands/client/get-client.query.d.ts +0 -938
  51. package/build/commands/client/import-client.command.d.ts +0 -75
  52. package/build/commands/client/index.d.ts +0 -17
  53. package/build/commands/client/marking/create-client-marking.command.d.ts +0 -37
  54. package/build/commands/client/marking/delete-client-marking.command.d.ts +0 -31
  55. package/build/commands/client/marking/get-client-marking-by-client-list.command.d.ts +0 -22
  56. package/build/commands/client/marking/update-client-marking.command.d.ts +0 -37
  57. package/build/commands/client/profile/create-client-individual-profile.command.d.ts +0 -71
  58. package/build/commands/client/profile/create-client-legal-profile.command.d.ts +0 -162
  59. package/build/commands/client/profile/delete-client-individual-profile.command.d.ts +0 -26
  60. package/build/commands/client/profile/delete-client-legal-profile.command.d.ts +0 -26
  61. package/build/commands/client/profile/get-client-individual-profile.query.d.ts +0 -62
  62. package/build/commands/client/profile/index.d.ts +0 -7
  63. package/build/commands/client/profile/update-client-individual-profile.command.d.ts +0 -71
  64. package/build/commands/client/profile/update-client-legal-profile.command.d.ts +0 -162
  65. package/build/commands/client/set-balance-calculate-client.command.d.ts +0 -144
  66. package/build/commands/client/update-client.command.d.ts +0 -208
  67. package/build/commands/client/webshop/register-client-webshop.command.d.ts +0 -168
  68. package/build/commands/client/webshop/update-client-for-client.command.d.ts +0 -164
  69. package/build/commands/company/createCompany.command.d.ts +0 -341
  70. package/build/commands/company/createCompanyWithUser.command.d.ts +0 -105
  71. package/build/commands/company/deleteCompany.command.d.ts +0 -32
  72. package/build/commands/company/getCompany.query.d.ts +0 -62
  73. package/build/commands/company/getCompanyList.query.d.ts +0 -96
  74. package/build/commands/company/index.d.ts +0 -6
  75. package/build/commands/company/updateCompany.command.d.ts +0 -62
  76. package/build/commands/consignment/create-consignment.command.d.ts +0 -119
  77. package/build/commands/consignment/delete-consignment.command.d.ts +0 -32
  78. package/build/commands/consignment/export-consignment.command.d.ts +0 -32
  79. package/build/commands/consignment/get-access-clients-consignment.query.d.ts +0 -144
  80. package/build/commands/consignment/get-client-uuids-consignment.query.d.ts +0 -24
  81. package/build/commands/consignment/get-consignment-filters-values.query.d.ts +0 -26
  82. package/build/commands/consignment/get-consignment-list.query.d.ts +0 -242
  83. package/build/commands/consignment/get-consignment.query.d.ts +0 -159
  84. package/build/commands/consignment/import-consignment.command.d.ts +0 -159
  85. package/build/commands/consignment/import-packing-consignment.command.d.ts +0 -123
  86. package/build/commands/consignment/index.d.ts +0 -13
  87. package/build/commands/consignment/update-consignment.command.d.ts +0 -119
  88. package/build/commands/consignment/upsert-access-clients-consignment.command.d.ts +0 -300
  89. package/build/commands/consignment/validate-consignment-distribution.query.d.ts +0 -1997
  90. package/build/commands/consignment-import-schema/create-consignment-import-scheme.command.d.ts +0 -60
  91. package/build/commands/consignment-import-schema/get-all-consignment-import-schema.query.d.ts +0 -88
  92. package/build/commands/consignment-import-schema/get-cosignment-import-schema.query.d.ts +0 -88
  93. package/build/commands/consignment-import-schema/index.d.ts +0 -2
  94. package/build/commands/consignment-import-schema/update-consignment-import-schema.command.d.ts +0 -47
  95. package/build/commands/delivery-route/attach-order-list-to-delivery-route.command.d.ts +0 -32
  96. package/build/commands/delivery-route/create-delivery-route.command.d.ts +0 -84
  97. package/build/commands/delivery-route/delete-delivery-route.command.d.ts +0 -24
  98. package/build/commands/delivery-route/detach-order-list-to-delivery-route.command.d.ts +0 -32
  99. package/build/commands/delivery-route/get-delivery-route-list.query.d.ts +0 -280
  100. package/build/commands/delivery-route/get-delivery-route.query.d.ts +0 -190
  101. package/build/commands/delivery-route/index.d.ts +0 -7
  102. package/build/commands/delivery-route/update-delivery-route.command.d.ts +0 -87
  103. package/build/commands/discount-rules/create-discount-rules.command.d.ts +0 -649
  104. package/build/commands/discount-rules/delete-discount-rules.command.d.ts +0 -24
  105. package/build/commands/discount-rules/get-discount-rules-all.query.d.ts +0 -286
  106. package/build/commands/discount-rules/get-discount-rules-extended.query.d.ts +0 -1213
  107. package/build/commands/discount-rules/get-discount-rules-list.query.d.ts +0 -391
  108. package/build/commands/discount-rules/get-discount-rules.query.d.ts +0 -347
  109. package/build/commands/discount-rules/index.d.ts +0 -9
  110. package/build/commands/discount-rules/split-quantity-discount-rules-for-client.query.d.ts +0 -71
  111. package/build/commands/discount-rules/split-quantity-discount-rules.query.d.ts +0 -73
  112. package/build/commands/discount-rules/update-discount-rules.command.d.ts +0 -662
  113. package/build/commands/distribution/create-distribution.command.d.ts +0 -72
  114. package/build/commands/distribution/index.d.ts +0 -3
  115. package/build/commands/distribution/update-is-packed-distribution.command.d.ts +0 -72
  116. package/build/commands/distribution/validate-distribution-by-product.query.d.ts +0 -36
  117. package/build/commands/domain/create-domain.command.d.ts +0 -60
  118. package/build/commands/domain/delete-domain.command.d.ts +0 -24
  119. package/build/commands/domain/get-domain-by-uuid.query.d.ts +0 -49
  120. package/build/commands/domain/get-domain-list.query.d.ts +0 -89
  121. package/build/commands/domain/index.d.ts +0 -5
  122. package/build/commands/domain/update-domain.command.d.ts +0 -57
  123. package/build/commands/employee-schedule/create-employee-schedule.command.d.ts +0 -92
  124. package/build/commands/employee-schedule/delete-employee-schedule.command.d.ts +0 -24
  125. package/build/commands/employee-schedule/get-employee-schedule-extended-list.query.d.ts +0 -237
  126. package/build/commands/employee-schedule/get-employee-schedule-list.query.d.ts +0 -133
  127. package/build/commands/employee-schedule/index.d.ts +0 -5
  128. package/build/commands/employee-schedule/update-employee-schedule.command.d.ts +0 -92
  129. package/build/commands/file/deleteFile.command.d.ts +0 -32
  130. package/build/commands/file/index.d.ts +0 -2
  131. package/build/commands/file/uploadFile.command.d.ts +0 -11
  132. package/build/commands/index.d.ts +0 -44
  133. package/build/commands/message/get-clients-messages-context-with-unread.query.d.ts +0 -116
  134. package/build/commands/message/get-context-unread-count.query.d.ts +0 -39
  135. package/build/commands/message/get-contexts-with-unread.query.d.ts +0 -134
  136. package/build/commands/message/index.d.ts +0 -6
  137. package/build/commands/message/list-context-messages.query.d.ts +0 -152
  138. package/build/commands/message/mark-context-read.command.d.ts +0 -39
  139. package/build/commands/message/send-context-message.command.d.ts +0 -95
  140. package/build/commands/money-account/create-money-account.command.d.ts +0 -76
  141. package/build/commands/money-account/delete-money-account.command.d.ts +0 -24
  142. package/build/commands/money-account/get-money-account-by-criteria.query.d.ts +0 -61
  143. package/build/commands/money-account/get-money-account-list.query.d.ts +0 -103
  144. package/build/commands/money-account/get-money-account.query.d.ts +0 -59
  145. package/build/commands/money-account/index.d.ts +0 -6
  146. package/build/commands/money-account/update-money-account.command.d.ts +0 -78
  147. package/build/commands/order/apply-order-discount.command.d.ts +0 -32
  148. package/build/commands/order/copy-order.command.d.ts +0 -159
  149. package/build/commands/order/create-order.command.d.ts +0 -228
  150. package/build/commands/order/delete-order.command.d.ts +0 -24
  151. package/build/commands/order/export-order-invoice.command.d.ts +0 -14
  152. package/build/commands/order/get-order-list.query.d.ts +0 -864
  153. package/build/commands/order/get-order.query.d.ts +0 -578
  154. package/build/commands/order/group/deletet-group-order.command.d.ts +0 -32
  155. package/build/commands/order/group/split-group-order.command.d.ts +0 -167
  156. package/build/commands/order/group/update-group-order-status.command.d.ts +0 -36
  157. package/build/commands/order/group/update-group-order-tag.command.d.ts +0 -35
  158. package/build/commands/order/group/update-group-order-type.command.d.ts +0 -36
  159. package/build/commands/order/index.d.ts +0 -20
  160. package/build/commands/order/send-order-invoice.command.d.ts +0 -33
  161. package/build/commands/order/update-order.command.d.ts +0 -198
  162. package/build/commands/order/webshop/create-cart.command.d.ts +0 -153
  163. package/build/commands/order/webshop/get-order-for-client.query.d.ts +0 -498
  164. package/build/commands/order/webshop/get-order-list-for-client.query.d.ts +0 -705
  165. package/build/commands/order/webshop/get-order-sales-by-month.query.d.ts +0 -22
  166. package/build/commands/order/webshop/update-cart.command.d.ts +0 -185
  167. package/build/commands/order/zeroing-receipt-delivery-order.command.d.ts +0 -24
  168. package/build/commands/order-delivery/create-order-delivery.command.d.ts +0 -74
  169. package/build/commands/order-delivery/delete-order-delivery.command.d.ts +0 -26
  170. package/build/commands/order-delivery/index.d.ts +0 -3
  171. package/build/commands/order-delivery/update-order-delivery.command.d.ts +0 -78
  172. package/build/commands/order-product/create-order-product.command.d.ts +0 -347
  173. package/build/commands/order-product/delete-order-product.command.d.ts +0 -26
  174. package/build/commands/order-product/get-order-product-list-all.query.d.ts +0 -1378
  175. package/build/commands/order-product/get-order-product-list-for-distribute.query.d.ts +0 -1162
  176. package/build/commands/order-product/get-order-product-list.query.d.ts +0 -1390
  177. package/build/commands/order-product/get-order-product.query.d.ts +0 -1077
  178. package/build/commands/order-product/group/delete-group-order-product.command.d.ts +0 -32
  179. package/build/commands/order-product/group/update-group-order-product-order.command.d.ts +0 -56
  180. package/build/commands/order-product/group/update-group-order-product-tag.command.d.ts +0 -35
  181. package/build/commands/order-product/group/verify-group-order-product.command.d.ts +0 -35
  182. package/build/commands/order-product/group/zeroing-receipt-order-product.command.d.ts +0 -32
  183. package/build/commands/order-product/index.d.ts +0 -15
  184. package/build/commands/order-product/update-order-product.command.d.ts +0 -350
  185. package/build/commands/order-product/verify-order-product.command.d.ts +0 -326
  186. package/build/commands/order-product/webshop/create-order-product-for-client.command.d.ts +0 -323
  187. package/build/commands/order-product/webshop/get-order-product-for-client-list.query.d.ts +0 -670
  188. package/build/commands/order-product/webshop/update-order-product-for-client.command.d.ts +0 -326
  189. package/build/commands/package/create-package.command.d.ts +0 -96
  190. package/build/commands/package/delete-package.command.d.ts +0 -26
  191. package/build/commands/package/get-package-by-uuid.query.d.ts +0 -71
  192. package/build/commands/package/get-package-filters-values.query.d.ts +0 -99
  193. package/build/commands/package/get-package-list.query.d.ts +0 -753
  194. package/build/commands/package/index.d.ts +0 -7
  195. package/build/commands/package/reorder-packages.command.d.ts +0 -47
  196. package/build/commands/package/update-package.command.d.ts +0 -91
  197. package/build/commands/package/validate-product-package.query.d.ts +0 -36
  198. package/build/commands/pre-order/create-order-from-pre-order.command.d.ts +0 -240
  199. package/build/commands/pre-order/create-pre-order.command.d.ts +0 -79
  200. package/build/commands/pre-order/delete-pre-order.command.d.ts +0 -24
  201. package/build/commands/pre-order/get-pre-order-by-pre-order-collection-uuid.command.d.ts +0 -56
  202. package/build/commands/pre-order/get-pre-order-list.query.d.ts +0 -587
  203. package/build/commands/pre-order/get-pre-order.query.d.ts +0 -415
  204. package/build/commands/pre-order/get-standing-order-import-template.command.d.ts +0 -21
  205. package/build/commands/pre-order/group/analyze-copy-pre-orders.command.d.ts +0 -4582
  206. package/build/commands/pre-order/group/analyze-create-orders-from-pre-orders.command.d.ts +0 -3665
  207. package/build/commands/pre-order/group/analyze-create-pre-orders-from-standing-orders.command.d.ts +0 -2784
  208. package/build/commands/pre-order/group/group-copy-pre-orders-to-collection.command.d.ts +0 -221
  209. package/build/commands/pre-order/group/group-create-orders-from-pre-orders.command.d.ts +0 -415
  210. package/build/commands/pre-order/group/group-create-pre-orders-from-standing-orders.command.d.ts +0 -230
  211. package/build/commands/pre-order/group/group-delete-pre-order.command.d.ts +0 -32
  212. package/build/commands/pre-order/group/group-update-pre-order.command.d.ts +0 -65
  213. package/build/commands/pre-order/group/index.d.ts +0 -9
  214. package/build/commands/pre-order/import-standing-order.command.d.ts +0 -132
  215. package/build/commands/pre-order/index.d.ts +0 -12
  216. package/build/commands/pre-order/update-pre-order.command.d.ts +0 -79
  217. package/build/commands/pre-order/webshop/checkout-pre-order-webshop.command.d.ts +0 -61
  218. package/build/commands/pre-order/webshop/create-pre-order-webshop.command.d.ts +0 -73
  219. package/build/commands/pre-order/webshop/delete-pre-order-webshop.command.d.ts +0 -24
  220. package/build/commands/pre-order/webshop/get-pre-order-list-webshop.command.d.ts +0 -569
  221. package/build/commands/pre-order/webshop/index.d.ts +0 -5
  222. package/build/commands/pre-order/webshop/update-pre-order-webshop.command.d.ts +0 -70
  223. package/build/commands/pre-order-collection/copy-pre-order-collection.command.d.ts +0 -59
  224. package/build/commands/pre-order-collection/create-pre-order-collection.command.d.ts +0 -85
  225. package/build/commands/pre-order-collection/delete-pre-order-collection.command.d.ts +0 -24
  226. package/build/commands/pre-order-collection/get-pre-order-collection-all.query.d.ts +0 -59
  227. package/build/commands/pre-order-collection/get-pre-order-collection-list.query.d.ts +0 -168
  228. package/build/commands/pre-order-collection/get-pre-order-collection.query.d.ts +0 -99
  229. package/build/commands/pre-order-collection/index.d.ts +0 -8
  230. package/build/commands/pre-order-collection/match-images-for-collection.command.d.ts +0 -40
  231. package/build/commands/pre-order-collection/update-pre-order-collection.command.d.ts +0 -85
  232. package/build/commands/pre-order-collection/webshop/get-pre-order-collection-list-with-categories.query.d.ts +0 -85
  233. package/build/commands/pre-order-collection-item/create-group-pre-order-collection-item.command.d.ts +0 -101
  234. package/build/commands/pre-order-collection-item/create-pre-order-collection-item.command.d.ts +0 -236
  235. package/build/commands/pre-order-collection-item/delete-group-pre-order-collection-item.command.d.ts +0 -37
  236. package/build/commands/pre-order-collection-item/delete-pre-order-collection-item.command.d.ts +0 -24
  237. package/build/commands/pre-order-collection-item/execute-pre-order-collection-item-update.command.d.ts +0 -226
  238. package/build/commands/pre-order-collection-item/export-pre-order-collection-item-with-clients-horizontal.query.d.ts +0 -26
  239. package/build/commands/pre-order-collection-item/export-pre-order-collection-item-with-clients-vertical.query.d.ts +0 -33
  240. package/build/commands/pre-order-collection-item/get-active-pre-order-collection-item-list.query.d.ts +0 -693
  241. package/build/commands/pre-order-collection-item/get-pre-order-collection-item-extended-with-clients-pre-order-product-list.query.d.ts +0 -1031
  242. package/build/commands/pre-order-collection-item/get-pre-order-collection-item-list-filter-values-for-client.query.d.ts +0 -85
  243. package/build/commands/pre-order-collection-item/get-pre-order-collection-item-list-filter-values.query.d.ts +0 -77
  244. package/build/commands/pre-order-collection-item/get-pre-order-collection-item-list-for-client.query.d.ts +0 -760
  245. package/build/commands/pre-order-collection-item/get-pre-order-collection-item-list.query.d.ts +0 -708
  246. package/build/commands/pre-order-collection-item/get-pre-order-collection-item.query.d.ts +0 -504
  247. package/build/commands/pre-order-collection-item/index.d.ts +0 -23
  248. package/build/commands/pre-order-collection-item/multiplicity-option/create-pre-order-collection-item-multiplicity-option.command.d.ts +0 -61
  249. package/build/commands/pre-order-collection-item/multiplicity-option/delete-pre-order-collection-item-multiplicity-option.command.d.ts +0 -26
  250. package/build/commands/pre-order-collection-item/multiplicity-option/get-pre-order-collection-item-multiplicity-option-titles.query.d.ts +0 -16
  251. package/build/commands/pre-order-collection-item/multiplicity-option/get-pre-order-collection-item-multiplicity-options.query.d.ts +0 -68
  252. package/build/commands/pre-order-collection-item/multiplicity-option/reorder-pre-order-collection-item-multiplicity-options.command.d.ts +0 -47
  253. package/build/commands/pre-order-collection-item/multiplicity-option/update-pre-order-collection-item-multiplicity-option.command.d.ts +0 -61
  254. package/build/commands/pre-order-collection-item/update-group-pre-order-collection-item.command.d.ts +0 -165
  255. package/build/commands/pre-order-collection-item/update-pre-order-collection-item-product-maching.command.d.ts +0 -32
  256. package/build/commands/pre-order-collection-item/update-pre-order-collection-item.command.d.ts +0 -239
  257. package/build/commands/pre-order-product/create-manually-pre-order-product-for-standing-order.command.d.ts +0 -234
  258. package/build/commands/pre-order-product/create-manually-pre-order-product.command.d.ts +0 -262
  259. package/build/commands/pre-order-product/create-pre-order-product-webshop.command.d.ts +0 -214
  260. package/build/commands/pre-order-product/create-pre-order-product.command.d.ts +0 -242
  261. package/build/commands/pre-order-product/delete-many-pre-order-product-by-pre-order-collection-item.command.d.ts +0 -24
  262. package/build/commands/pre-order-product/delete-pre-order-product-webshop.command.d.ts +0 -24
  263. package/build/commands/pre-order-product/delete-pre-order-product.command.d.ts +0 -24
  264. package/build/commands/pre-order-product/get-pre-order-product-extended-list.query.d.ts +0 -1155
  265. package/build/commands/pre-order-product/get-pre-order-product-list.query.d.ts +0 -234
  266. package/build/commands/pre-order-product/get-pre-order-product.query.d.ts +0 -891
  267. package/build/commands/pre-order-product/get-pre-order-products-by-pre-order-list.command.d.ts +0 -899
  268. package/build/commands/pre-order-product/get-pre-order-products-by-pre-order.command.d.ts +0 -891
  269. package/build/commands/pre-order-product/index.d.ts +0 -15
  270. package/build/commands/pre-order-product/purchase-many-pre-order-product-by-pre-order-collection-item.command.d.ts +0 -39
  271. package/build/commands/pre-order-product/update-pre-order-product-webshop.command.d.ts +0 -179
  272. package/build/commands/pre-order-product/update-pre-order-product.command.d.ts +0 -242
  273. package/build/commands/product/create-product.command.d.ts +0 -630
  274. package/build/commands/product/delete-product.command.d.ts +0 -26
  275. package/build/commands/product/generate-product-qr.query.d.ts +0 -89
  276. package/build/commands/product/get-all-product-by-consignment.query.d.ts +0 -445
  277. package/build/commands/product/get-product-list-filters-values.query.d.ts +0 -102
  278. package/build/commands/product/get-product-list.query.d.ts +0 -784
  279. package/build/commands/product/get-product-quantity-calculate.query.d.ts +0 -57
  280. package/build/commands/product/get-product.query.d.ts +0 -555
  281. package/build/commands/product/get-products-unique.query.d.ts +0 -614
  282. package/build/commands/product/group/delete-group-product.command.d.ts +0 -58
  283. package/build/commands/product/group/index.d.ts +0 -7
  284. package/build/commands/product/group/update-group-product-category.command.d.ts +0 -35
  285. package/build/commands/product/group/update-group-product-consignment.command.d.ts +0 -35
  286. package/build/commands/product/group/update-group-product-is-open-by-consignment.command.d.ts +0 -32
  287. package/build/commands/product/group/update-group-product-is-open.command.d.ts +0 -35
  288. package/build/commands/product/group/update-group-product-prices.command.d.ts +0 -52
  289. package/build/commands/product/group/update-group-product-update-batch.command.d.ts +0 -141
  290. package/build/commands/product/index.d.ts +0 -19
  291. package/build/commands/product/multiplicity-option/create-product-multiplicity-option.command.d.ts +0 -61
  292. package/build/commands/product/multiplicity-option/delete-product-multiplicity-option.command.d.ts +0 -26
  293. package/build/commands/product/multiplicity-option/get-product-multiplicity-option-titles.query.d.ts +0 -16
  294. package/build/commands/product/multiplicity-option/get-product-multiplicity-options.query.d.ts +0 -68
  295. package/build/commands/product/multiplicity-option/reorder-product-multiplicity-options.command.d.ts +0 -47
  296. package/build/commands/product/multiplicity-option/update-product-multiplicity-option.command.d.ts +0 -61
  297. package/build/commands/product/update-product.command.d.ts +0 -630
  298. package/build/commands/product/webshop/get-client-product-list-filters-values.query.d.ts +0 -70
  299. package/build/commands/product/webshop/get-product-for-client.query.d.ts +0 -336
  300. package/build/commands/product/webshop/get-product-list-for-client.query.d.ts +0 -484
  301. package/build/commands/product-configuration/create-product-configuration.command.d.ts +0 -86
  302. package/build/commands/product-configuration/delete-product-configuration.command.d.ts +0 -26
  303. package/build/commands/product-configuration/get-product-configuration-list.query.d.ts +0 -119
  304. package/build/commands/product-configuration/get-product-configuration.query.d.ts +0 -61
  305. package/build/commands/product-configuration/index.d.ts +0 -5
  306. package/build/commands/product-configuration/update-product-configuration.command.d.ts +0 -82
  307. package/build/commands/product-image/alias/create-product-image-alias.command.d.ts +0 -37
  308. package/build/commands/product-image/alias/delete-product-image-alias.command.d.ts +0 -31
  309. package/build/commands/product-image/alias/update-product-image-alias.command.d.ts +0 -37
  310. package/build/commands/product-image/create-product-image.command.d.ts +0 -113
  311. package/build/commands/product-image/delete-product-image.command.d.ts +0 -84
  312. package/build/commands/product-image/get-product-image-filter-values.query.d.ts +0 -77
  313. package/build/commands/product-image/get-product-image-list.query.d.ts +0 -377
  314. package/build/commands/product-image/get-product-image.query.d.ts +0 -255
  315. package/build/commands/product-image/group/delete-group-product-image.command.d.ts +0 -32
  316. package/build/commands/product-image/group/update-group-product-image.command.d.ts +0 -80
  317. package/build/commands/product-image/index.d.ts +0 -12
  318. package/build/commands/product-image/sync-product-image.command.d.ts +0 -24
  319. package/build/commands/product-image/update-product-image.command.d.ts +0 -113
  320. package/build/commands/product-image-template/create-product-image-template.command.d.ts +0 -90
  321. package/build/commands/product-image-template/delete-group-product-image-template.command.d.ts +0 -32
  322. package/build/commands/product-image-template/delete-product-image-template.command.d.ts +0 -24
  323. package/build/commands/product-image-template/get-product-image-template-list.query.d.ts +0 -116
  324. package/build/commands/product-image-template/get-product-image-template.query.d.ts +0 -64
  325. package/build/commands/product-image-template/index.d.ts +0 -7
  326. package/build/commands/product-image-template/start-parsing-product-image-template.command.d.ts +0 -24
  327. package/build/commands/product-image-template/update-product-image-template.command.d.ts +0 -87
  328. package/build/commands/product-in-package/create-product-in-package.command.d.ts +0 -94
  329. package/build/commands/product-in-package/delete-from-orders-by-package.command.d.ts +0 -26
  330. package/build/commands/product-in-package/delete-product-in-package.command.d.ts +0 -24
  331. package/build/commands/product-in-package/get-product-in-package-by-uuid.query.d.ts +0 -69
  332. package/build/commands/product-in-package/index.d.ts +0 -5
  333. package/build/commands/product-in-package/update-product-in-package.command.d.ts +0 -92
  334. package/build/commands/report/export-client-statement.query.d.ts +0 -68
  335. package/build/commands/report/export-inventory-movement.query.d.ts +0 -124
  336. package/build/commands/report/export-inventory-stock.query.d.ts +0 -82
  337. package/build/commands/report/export-inventory-turnover.query.d.ts +0 -148
  338. package/build/commands/report/export-sales-by-client.query.d.ts +0 -83
  339. package/build/commands/report/export-sales-revenue.query.d.ts +0 -64
  340. package/build/commands/report/get-report-by-client-weeks.query.d.ts +0 -81
  341. package/build/commands/report/get-report-for-period.query.d.ts +0 -106
  342. package/build/commands/report/get-report-group-by-client.query.d.ts +0 -146
  343. package/build/commands/report/get-report-group-by-position.query.d.ts +0 -266
  344. package/build/commands/report/index.d.ts +0 -10
  345. package/build/commands/settings/get-settings-for-admin.query.d.ts +0 -352
  346. package/build/commands/settings/get-settings.query.d.ts +0 -312
  347. package/build/commands/settings/index.d.ts +0 -3
  348. package/build/commands/settings/update-settings.command.d.ts +0 -486
  349. package/build/commands/transaction/create-transaction.command.d.ts +0 -100
  350. package/build/commands/transaction/delete-transaction.command.d.ts +0 -26
  351. package/build/commands/transaction/export-transactions.command.d.ts +0 -62
  352. package/build/commands/transaction/generate-check-transaction.command.d.ts +0 -35
  353. package/build/commands/transaction/generate-pre-payment-check.command.d.ts +0 -35
  354. package/build/commands/transaction/get-sum-transaction-by-money-account.query.d.ts +0 -46
  355. package/build/commands/transaction/get-transaction-list.query.d.ts +0 -763
  356. package/build/commands/transaction/get-transaction-summary.query.d.ts +0 -77
  357. package/build/commands/transaction/get-transaction.query.d.ts +0 -539
  358. package/build/commands/transaction/index.d.ts +0 -11
  359. package/build/commands/transaction/update-transaction.command.d.ts +0 -85
  360. package/build/commands/transaction/webshop/get-transaction-list-for-client.query.d.ts +0 -742
  361. package/build/commands/type/create-type.command.d.ts +0 -60
  362. package/build/commands/type/delete-type.command.d.ts +0 -32
  363. package/build/commands/type/get-type-by-criteria.query.d.ts +0 -51
  364. package/build/commands/type/get-type-by-uuid.query.d.ts +0 -57
  365. package/build/commands/type/get-type-list.query.d.ts +0 -102
  366. package/build/commands/type/index.d.ts +0 -8
  367. package/build/commands/type/update-type-rank-many.command.d.ts +0 -72
  368. package/build/commands/type/update-type-rank.command.d.ts +0 -39
  369. package/build/commands/type/update-type.command.d.ts +0 -75
  370. package/build/commands/user/attachUserToCompany.command.d.ts +0 -84
  371. package/build/commands/user/create-user-global.command.d.ts +0 -101
  372. package/build/commands/user/createUser.command.d.ts +0 -107
  373. package/build/commands/user/createUserByClientId.command.d.ts +0 -138
  374. package/build/commands/user/createUserForCompany.command.d.ts +0 -105
  375. package/build/commands/user/generate-and-send-password-by-admin.command.d.ts +0 -20
  376. package/build/commands/user/get-user-list.query.d.ts +0 -149
  377. package/build/commands/user/getUser.command.d.ts +0 -107
  378. package/build/commands/user/index.d.ts +0 -10
  379. package/build/commands/user/update-password-by-user.command.d.ts +0 -19
  380. package/build/commands/user/update-user.command.d.ts +0 -98
  381. package/build/commands/user/updateRole.command.d.ts +0 -106
  382. package/build/commands/work-session/close-work-session-for-employee.command.d.ts +0 -69
  383. package/build/commands/work-session/create-many-work-session.command.d.ts +0 -108
  384. package/build/commands/work-session/create-work-session-for-employee.command.d.ts +0 -86
  385. package/build/commands/work-session/delete-work-session.command.d.ts +0 -24
  386. package/build/commands/work-session/get-work-session-extended-list.query.d.ts +0 -243
  387. package/build/commands/work-session/index.d.ts +0 -6
  388. package/build/commands/work-session/update-work-session.command.d.ts +0 -86
  389. package/build/commands/wrire-off-archive/create-wrire-off-archive.command.d.ts +0 -32
  390. package/build/commands/wrire-off-archive/index.d.ts +0 -2
  391. package/build/commands/wrire-off-archive/info-wrire-off-archive.command.d.ts +0 -32
  392. package/build/commands/write-off/create-write-off-from-order.command.d.ts +0 -1679
  393. package/build/commands/write-off/create-write-off-from-pending.command.d.ts +0 -1674
  394. package/build/commands/write-off/create-write-off-images.command.d.ts +0 -52
  395. package/build/commands/write-off/create-write-off.command.d.ts +0 -1676
  396. package/build/commands/write-off/delete-write-off-image.command.d.ts +0 -26
  397. package/build/commands/write-off/delete-write-off.command.d.ts +0 -26
  398. package/build/commands/write-off/get-write-off-list.query.d.ts +0 -2144
  399. package/build/commands/write-off/get-write-off-reason-list.query.d.ts +0 -22
  400. package/build/commands/write-off/get-write-off-sum-by-order.query.d.ts +0 -16
  401. package/build/commands/write-off/get-write-off.query.d.ts +0 -1659
  402. package/build/commands/write-off/index.d.ts +0 -13
  403. package/build/commands/write-off/update-write-off-price.command.d.ts +0 -1670
  404. package/build/commands/write-off/update-write-off-status.command.d.ts +0 -1671
  405. package/build/commands/write-off/webshop/create-write-off-from-order-for-client.command.d.ts +0 -1676
  406. package/build/commands/write-off/webshop/get-write-off-list-by-order.query.d.ts +0 -1661
  407. package/build/commands/write-off/webshop/index.d.ts +0 -2
  408. package/build/constant/error-i18n-key.d.ts +0 -5
  409. package/build/constant/error.d.ts +0 -2047
  410. package/build/constant/index.d.ts +0 -2
  411. package/build/constant/verbose.d.ts +0 -42
  412. package/build/enum/action-log-type.enum.d.ts +0 -14
  413. package/build/enum/category-status.enum.d.ts +0 -4
  414. package/build/enum/client-import-entity-property.enum.d.ts +0 -30
  415. package/build/enum/client-legal-type.enum.d.ts +0 -4
  416. package/build/enum/client-statement-type.enum.d.ts +0 -5
  417. package/build/enum/client-status.enum.d.ts +0 -5
  418. package/build/enum/client-type.enum.d.ts +0 -4
  419. package/build/enum/companyStatus.enum.d.ts +0 -5
  420. package/build/enum/consignment-access-client-status.enum.d.ts +0 -4
  421. package/build/enum/consignment-distribution-validation-status.enum.d.ts +0 -4
  422. package/build/enum/consignment-distribution-validation-type.enum.d.ts +0 -4
  423. package/build/enum/consignment-import-errors.enum.d.ts +0 -5
  424. package/build/enum/consignment-import-schema-relation-entity-property.enum.d.ts +0 -30
  425. package/build/enum/consignment-status.enum.d.ts +0 -5
  426. package/build/enum/consignment-write-off-archives-status.enum.d.ts +0 -5
  427. package/build/enum/context-message-context-type.enum.d.ts +0 -5
  428. package/build/enum/country-code.enum.d.ts +0 -253
  429. package/build/enum/delivery-route-status.enum.d.ts +0 -5
  430. package/build/enum/discount-price-routing.enum.d.ts +0 -6
  431. package/build/enum/discount-rules-apply-type.enum.d.ts +0 -4
  432. package/build/enum/discount-rules-mode-type.enum.d.ts +0 -4
  433. package/build/enum/discount-rules-status.enum.d.ts +0 -4
  434. package/build/enum/discount-rules-type.enum.d.ts +0 -7
  435. package/build/enum/file-expire-prefix.enum.d.ts +0 -3
  436. package/build/enum/image-type.enum.d.ts +0 -4
  437. package/build/enum/import-error-code.enum.d.ts +0 -7
  438. package/build/enum/index.d.ts +0 -59
  439. package/build/enum/inventory-movement-type.enum.d.ts +0 -6
  440. package/build/enum/language.enum.d.ts +0 -4
  441. package/build/enum/menu-items-url.enum.d.ts +0 -11
  442. package/build/enum/money-account-status.enum.d.ts +0 -4
  443. package/build/enum/notification-channel.enum.d.ts +0 -9
  444. package/build/enum/notification-status.enum.d.ts +0 -6
  445. package/build/enum/notification-type.enum.d.ts +0 -6
  446. package/build/enum/order-active-status-list.d.ts +0 -2
  447. package/build/enum/order-balance-status-list.d.ts +0 -2
  448. package/build/enum/order-by.enum.d.ts +0 -4
  449. package/build/enum/order-delivery-status.enum.d.ts +0 -4
  450. package/build/enum/order-distribute-status-list.d.ts +0 -2
  451. package/build/enum/order-restricted-status-list.d.ts +0 -2
  452. package/build/enum/order-status.enum.d.ts +0 -13
  453. package/build/enum/order-type.enum.d.ts +0 -4
  454. package/build/enum/order-webshop-available-status-list.d.ts +0 -2
  455. package/build/enum/package-status.enum.d.ts +0 -5
  456. package/build/enum/package-type.enum.d.ts +0 -32
  457. package/build/enum/parse-status.enum.d.ts +0 -5
  458. package/build/enum/position-report-type.enum.d.ts +0 -4
  459. package/build/enum/pre-order-aggregation-mode.enum.d.ts +0 -5
  460. package/build/enum/pre-order-collection-item-import-entity-property.enum.d.ts +0 -21
  461. package/build/enum/pre-order-collection-status.enum.d.ts +0 -4
  462. package/build/enum/pre-order-status.enum.d.ts +0 -8
  463. package/build/enum/product-image-created-from.enum.d.ts +0 -4
  464. package/build/enum/product-image-order.enum.d.ts +0 -4
  465. package/build/enum/product-in-package-status.enum.d.ts +0 -4
  466. package/build/enum/report-period-type.enum.d.ts +0 -5
  467. package/build/enum/sales-unit.enum.d.ts +0 -5
  468. package/build/enum/security-code-status.enum.d.ts +0 -7
  469. package/build/enum/transaction-type-groups.d.ts +0 -4
  470. package/build/enum/transaction-type.enum.d.ts +0 -6
  471. package/build/enum/user-type.enum.d.ts +0 -4
  472. package/build/enum/userRole.enum.d.ts +0 -12
  473. package/build/enum/userStatus.enum.d.ts +0 -5
  474. package/build/enum/webshop-main-display-mode.enum.d.ts +0 -4
  475. package/build/enum/webshop-mode.enum.d.ts +0 -4
  476. package/build/enum/write-off-status.enum.d.ts +0 -5
  477. package/build/helpers/date.helper.d.ts +0 -3
  478. package/build/index.d.ts +0 -5
  479. package/build/schemas/action-log/action-log-payload.schema.d.ts +0 -496
  480. package/build/schemas/action-log/action-log.schema.d.ts +0 -2439
  481. package/build/schemas/action-log/index.d.ts +0 -14
  482. package/build/schemas/action-log/order-create-action-log.schema.d.ts +0 -53
  483. package/build/schemas/action-log/order-delete-action-log-payload.schema.d.ts +0 -53
  484. package/build/schemas/action-log/order-info.schema.d.ts +0 -29
  485. package/build/schemas/action-log/order-product-delete-action-log.schema.d.ts +0 -63
  486. package/build/schemas/action-log/order-product-info.schema.d.ts +0 -35
  487. package/build/schemas/action-log/order-product-update-action-log.schema.d.ts +0 -69
  488. package/build/schemas/action-log/order-update-action-log.schema.d.ts +0 -12
  489. package/build/schemas/action-log/pre-order-create-action-log.schema.d.ts +0 -38
  490. package/build/schemas/action-log/pre-order-delete-action-log.schema.d.ts +0 -38
  491. package/build/schemas/action-log/pre-order-info.schema.d.ts +0 -20
  492. package/build/schemas/action-log/pre-order-product-delete-action-log.schema.d.ts +0 -48
  493. package/build/schemas/action-log/pre-order-product-info.schema.d.ts +0 -26
  494. package/build/schemas/action-log/pre-order-product-update-action-log.schema.d.ts +0 -57
  495. package/build/schemas/action-log/transaction-add-action-log.schema.d.ts +0 -43
  496. package/build/schemas/action-log/transaction-delete-action-log.schema.d.ts +0 -43
  497. package/build/schemas/action-log/transaction-info.schema.d.ts +0 -24
  498. package/build/schemas/branch/branch-list.schema.d.ts +0 -71
  499. package/build/schemas/branch/branch.schema.d.ts +0 -38
  500. package/build/schemas/category/category.schema.d.ts +0 -102
  501. package/build/schemas/category-alias/category-alias.schema.d.ts +0 -36
  502. package/build/schemas/category-template/category-template.schema.d.ts +0 -55
  503. package/build/schemas/category-template/index.d.ts +0 -1
  504. package/build/schemas/client/client-individual-profile.schema.d.ts +0 -26
  505. package/build/schemas/client/client-legal-profile.schema.d.ts +0 -60
  506. package/build/schemas/client/client-marking.schema.d.ts +0 -11
  507. package/build/schemas/client/client.schema.d.ts +0 -1665
  508. package/build/schemas/client/index.d.ts +0 -4
  509. package/build/schemas/company/company.schema.d.ts +0 -27
  510. package/build/schemas/company/companyList.schema.d.ts +0 -51
  511. package/build/schemas/consignment/consignment-distribution-validation.schema.d.ts +0 -2487
  512. package/build/schemas/consignment/consignment-list.schema.d.ts +0 -133
  513. package/build/schemas/consignment/consignment.schema.d.ts +0 -420
  514. package/build/schemas/consignment-import-schema/consignment-import-schema.scheme.d.ts +0 -136
  515. package/build/schemas/consignment-import-schema/index.d.ts +0 -1
  516. package/build/schemas/consignment-import-schema-relation/consignment-import-schema-relation.schema.d.ts +0 -21
  517. package/build/schemas/delete-data-response.schema.d.ts +0 -8
  518. package/build/schemas/delivery-route/delivery-route.schema.d.ts +0 -193
  519. package/build/schemas/discount-rules/discount-rules.schema.d.ts +0 -1794
  520. package/build/schemas/distribution/distribution.schema.d.ts +0 -55
  521. package/build/schemas/distribution/validate-distribution-by-product.schema.d.ts +0 -14
  522. package/build/schemas/domain/domain.schema.d.ts +0 -85
  523. package/build/schemas/employee-schedule/employee-schedule.schema.d.ts +0 -399
  524. package/build/schemas/file/file.schema.d.ts +0 -8
  525. package/build/schemas/file/index.d.ts +0 -1
  526. package/build/schemas/index.d.ts +0 -53
  527. package/build/schemas/message/client-inbox-item.schema.d.ts +0 -32
  528. package/build/schemas/message/context-inbox.schema.d.ts +0 -109
  529. package/build/schemas/message/context-message-list.schema.d.ts +0 -80
  530. package/build/schemas/message/context-message.schema.d.ts +0 -39
  531. package/build/schemas/message/index.d.ts +0 -4
  532. package/build/schemas/money-account/money-account.schema.d.ts +0 -31
  533. package/build/schemas/order/order.schema.d.ts +0 -884
  534. package/build/schemas/order-delivery/order-delivery.schema.d.ts +0 -27
  535. package/build/schemas/order-product/order-product-list.schema.d.ts +0 -1587
  536. package/build/schemas/order-product/order-product-multiplicity-optiom.schema.d.ts +0 -17
  537. package/build/schemas/order-product/order-product.schema.d.ts +0 -2173
  538. package/build/schemas/package/package.schema.d.ts +0 -1111
  539. package/build/schemas/package/validate-package.schema.d.ts +0 -14
  540. package/build/schemas/pre-order/pre-order-copy.schema.d.ts +0 -3083
  541. package/build/schemas/pre-order/pre-order.schema.d.ts +0 -1058
  542. package/build/schemas/pre-order-collection/pre-order-collection.schema.d.ts +0 -277
  543. package/build/schemas/pre-order-collection-item/pre-order-collection-item-multiplicity-option.schema.d.ts +0 -20
  544. package/build/schemas/pre-order-collection-item/pre-order-collection-item.schema.d.ts +0 -2725
  545. package/build/schemas/pre-order-product/pre-order-product.schema.d.ts +0 -2039
  546. package/build/schemas/product/product-list.schema.d.ts +0 -885
  547. package/build/schemas/product/product-multiplicity-option.schema.d.ts +0 -20
  548. package/build/schemas/product/product.schema.d.ts +0 -1383
  549. package/build/schemas/product-configuration/product-configuration.schema.d.ts +0 -78
  550. package/build/schemas/product-image/product-image-alias.schema.d.ts +0 -11
  551. package/build/schemas/product-image/product-image.schema.d.ts +0 -240
  552. package/build/schemas/product-image-template/product-image-template.schema.d.ts +0 -139
  553. package/build/schemas/product-in-package/product-in-package.schema.d.ts +0 -86
  554. package/build/schemas/report/client-by-weeks.schema.d.ts +0 -29
  555. package/build/schemas/report/client-statement.schema.d.ts +0 -24
  556. package/build/schemas/settings/settings.schema.d.ts +0 -770
  557. package/build/schemas/transaction/transaction-list.schema.d.ts +0 -1055
  558. package/build/schemas/transaction/transaction.schema.d.ts +0 -763
  559. package/build/schemas/type/type.schema.d.ts +0 -36
  560. package/build/schemas/type/typeList.schema.d.ts +0 -14
  561. package/build/schemas/user/user.schema.d.ts +0 -67
  562. package/build/schemas/work-session/work-session.schema.d.ts +0 -344
  563. package/build/schemas/write-off/write-off-image.schema.d.ts +0 -20
  564. package/build/schemas/write-off/write-off-list.schema.d.ts +0 -1656
  565. package/build/schemas/write-off/write-off.schema.d.ts +0 -1214
  566. package/build/types/client-import-data.type.d.ts +0 -34
  567. package/build/types/index.d.ts +0 -1
@@ -1,1794 +0,0 @@
1
- import { z } from 'zod';
2
- import { DiscountRulesTypeEnum, DiscountRulesApplyTypeEnum, DiscountRulesStatusEnum, DiscountRulesModeTypeEnum } from '../../enum';
3
- export declare const discountRulesModeSchema: z.ZodDiscriminatedUnion<"typeDiscount", [z.ZodObject<{
4
- typeDiscount: z.ZodLiteral<DiscountRulesModeTypeEnum.PERCENT>;
5
- discountValue: z.ZodNumber;
6
- }, "strip", z.ZodTypeAny, {
7
- typeDiscount: DiscountRulesModeTypeEnum.PERCENT;
8
- discountValue: number;
9
- }, {
10
- typeDiscount: DiscountRulesModeTypeEnum.PERCENT;
11
- discountValue: number;
12
- }>, z.ZodObject<{
13
- typeDiscount: z.ZodLiteral<DiscountRulesModeTypeEnum.FIXED>;
14
- discountValue: z.ZodNumber;
15
- }, "strip", z.ZodTypeAny, {
16
- typeDiscount: DiscountRulesModeTypeEnum.FIXED;
17
- discountValue: number;
18
- }, {
19
- typeDiscount: DiscountRulesModeTypeEnum.FIXED;
20
- discountValue: number;
21
- }>]>;
22
- export declare const DiscountRulesTypeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
23
- type: z.ZodLiteral<DiscountRulesTypeEnum.PERSONAL_DISCOUNT>;
24
- data: z.ZodObject<{
25
- discountPercent: z.ZodNumber;
26
- }, "strip", z.ZodTypeAny, {
27
- discountPercent: number;
28
- }, {
29
- discountPercent: number;
30
- }>;
31
- }, "strip", z.ZodTypeAny, {
32
- type: DiscountRulesTypeEnum.PERSONAL_DISCOUNT;
33
- data: {
34
- discountPercent: number;
35
- };
36
- }, {
37
- type: DiscountRulesTypeEnum.PERSONAL_DISCOUNT;
38
- data: {
39
- discountPercent: number;
40
- };
41
- }>, z.ZodObject<{
42
- type: z.ZodLiteral<DiscountRulesTypeEnum.MONTHLY_ORDER_SUM>;
43
- data: z.ZodObject<{
44
- range: z.ZodEffects<z.ZodArray<z.ZodNumber, "many">, number[], number[]>;
45
- discountPercent: z.ZodNumber;
46
- }, "strip", z.ZodTypeAny, {
47
- discountPercent: number;
48
- range: number[];
49
- }, {
50
- discountPercent: number;
51
- range: number[];
52
- }>;
53
- }, "strip", z.ZodTypeAny, {
54
- type: DiscountRulesTypeEnum.MONTHLY_ORDER_SUM;
55
- data: {
56
- discountPercent: number;
57
- range: number[];
58
- };
59
- }, {
60
- type: DiscountRulesTypeEnum.MONTHLY_ORDER_SUM;
61
- data: {
62
- discountPercent: number;
63
- range: number[];
64
- };
65
- }>, z.ZodObject<{
66
- type: z.ZodLiteral<DiscountRulesTypeEnum.QUANTITY_BASED>;
67
- data: z.ZodIntersection<z.ZodObject<{
68
- multipleQuantity: z.ZodNumber;
69
- }, "strip", z.ZodTypeAny, {
70
- multipleQuantity: number;
71
- }, {
72
- multipleQuantity: number;
73
- }>, z.ZodDiscriminatedUnion<"typeDiscount", [z.ZodObject<{
74
- typeDiscount: z.ZodLiteral<DiscountRulesModeTypeEnum.PERCENT>;
75
- discountValue: z.ZodNumber;
76
- }, "strip", z.ZodTypeAny, {
77
- typeDiscount: DiscountRulesModeTypeEnum.PERCENT;
78
- discountValue: number;
79
- }, {
80
- typeDiscount: DiscountRulesModeTypeEnum.PERCENT;
81
- discountValue: number;
82
- }>, z.ZodObject<{
83
- typeDiscount: z.ZodLiteral<DiscountRulesModeTypeEnum.FIXED>;
84
- discountValue: z.ZodNumber;
85
- }, "strip", z.ZodTypeAny, {
86
- typeDiscount: DiscountRulesModeTypeEnum.FIXED;
87
- discountValue: number;
88
- }, {
89
- typeDiscount: DiscountRulesModeTypeEnum.FIXED;
90
- discountValue: number;
91
- }>]>>;
92
- }, "strip", z.ZodTypeAny, {
93
- type: DiscountRulesTypeEnum.QUANTITY_BASED;
94
- data: ({
95
- multipleQuantity: number;
96
- } & {
97
- typeDiscount: DiscountRulesModeTypeEnum.PERCENT;
98
- discountValue: number;
99
- }) | ({
100
- multipleQuantity: number;
101
- } & {
102
- typeDiscount: DiscountRulesModeTypeEnum.FIXED;
103
- discountValue: number;
104
- });
105
- }, {
106
- type: DiscountRulesTypeEnum.QUANTITY_BASED;
107
- data: ({
108
- multipleQuantity: number;
109
- } & {
110
- typeDiscount: DiscountRulesModeTypeEnum.PERCENT;
111
- discountValue: number;
112
- }) | ({
113
- multipleQuantity: number;
114
- } & {
115
- typeDiscount: DiscountRulesModeTypeEnum.FIXED;
116
- discountValue: number;
117
- });
118
- }>, z.ZodObject<{
119
- type: z.ZodLiteral<DiscountRulesTypeEnum.ITEM_DISCOUNT>;
120
- data: z.ZodIntersection<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, z.ZodDiscriminatedUnion<"typeDiscount", [z.ZodObject<{
121
- typeDiscount: z.ZodLiteral<DiscountRulesModeTypeEnum.PERCENT>;
122
- discountValue: z.ZodNumber;
123
- }, "strip", z.ZodTypeAny, {
124
- typeDiscount: DiscountRulesModeTypeEnum.PERCENT;
125
- discountValue: number;
126
- }, {
127
- typeDiscount: DiscountRulesModeTypeEnum.PERCENT;
128
- discountValue: number;
129
- }>, z.ZodObject<{
130
- typeDiscount: z.ZodLiteral<DiscountRulesModeTypeEnum.FIXED>;
131
- discountValue: z.ZodNumber;
132
- }, "strip", z.ZodTypeAny, {
133
- typeDiscount: DiscountRulesModeTypeEnum.FIXED;
134
- discountValue: number;
135
- }, {
136
- typeDiscount: DiscountRulesModeTypeEnum.FIXED;
137
- discountValue: number;
138
- }>]>>;
139
- }, "strip", z.ZodTypeAny, {
140
- type: DiscountRulesTypeEnum.ITEM_DISCOUNT;
141
- data: ({} & {
142
- typeDiscount: DiscountRulesModeTypeEnum.PERCENT;
143
- discountValue: number;
144
- }) | ({} & {
145
- typeDiscount: DiscountRulesModeTypeEnum.FIXED;
146
- discountValue: number;
147
- });
148
- }, {
149
- type: DiscountRulesTypeEnum.ITEM_DISCOUNT;
150
- data: ({} & {
151
- typeDiscount: DiscountRulesModeTypeEnum.PERCENT;
152
- discountValue: number;
153
- }) | ({} & {
154
- typeDiscount: DiscountRulesModeTypeEnum.FIXED;
155
- discountValue: number;
156
- });
157
- }>, z.ZodObject<{
158
- type: z.ZodLiteral<DiscountRulesTypeEnum.DISCOUNT_PROHIBITED>;
159
- data: z.ZodDefault<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
160
- }, "strip", z.ZodTypeAny, {
161
- type: DiscountRulesTypeEnum.DISCOUNT_PROHIBITED;
162
- data: {};
163
- }, {
164
- type: DiscountRulesTypeEnum.DISCOUNT_PROHIBITED;
165
- data?: {} | undefined;
166
- }>]>;
167
- export declare const DiscountRulesBaseSchema: z.ZodObject<{
168
- uuid: z.ZodString;
169
- companyUUID: z.ZodString;
170
- type: z.ZodNativeEnum<typeof DiscountRulesTypeEnum>;
171
- defaultApplyProduct: z.ZodNativeEnum<typeof DiscountRulesApplyTypeEnum>;
172
- defaultApplyClient: z.ZodNativeEnum<typeof DiscountRulesApplyTypeEnum>;
173
- status: z.ZodNativeEnum<typeof DiscountRulesStatusEnum>;
174
- createdAt: z.ZodDate;
175
- updatedAt: z.ZodDate;
176
- }, "strip", z.ZodTypeAny, {
177
- type: DiscountRulesTypeEnum;
178
- status: DiscountRulesStatusEnum;
179
- uuid: string;
180
- createdAt: Date;
181
- updatedAt: Date;
182
- companyUUID: string;
183
- defaultApplyProduct: DiscountRulesApplyTypeEnum;
184
- defaultApplyClient: DiscountRulesApplyTypeEnum;
185
- }, {
186
- type: DiscountRulesTypeEnum;
187
- status: DiscountRulesStatusEnum;
188
- uuid: string;
189
- createdAt: Date;
190
- updatedAt: Date;
191
- companyUUID: string;
192
- defaultApplyProduct: DiscountRulesApplyTypeEnum;
193
- defaultApplyClient: DiscountRulesApplyTypeEnum;
194
- }>;
195
- export declare const DiscountRulesSchema: z.ZodIntersection<z.ZodObject<{
196
- uuid: z.ZodString;
197
- companyUUID: z.ZodString;
198
- type: z.ZodNativeEnum<typeof DiscountRulesTypeEnum>;
199
- defaultApplyProduct: z.ZodNativeEnum<typeof DiscountRulesApplyTypeEnum>;
200
- defaultApplyClient: z.ZodNativeEnum<typeof DiscountRulesApplyTypeEnum>;
201
- status: z.ZodNativeEnum<typeof DiscountRulesStatusEnum>;
202
- createdAt: z.ZodDate;
203
- updatedAt: z.ZodDate;
204
- }, "strip", z.ZodTypeAny, {
205
- type: DiscountRulesTypeEnum;
206
- status: DiscountRulesStatusEnum;
207
- uuid: string;
208
- createdAt: Date;
209
- updatedAt: Date;
210
- companyUUID: string;
211
- defaultApplyProduct: DiscountRulesApplyTypeEnum;
212
- defaultApplyClient: DiscountRulesApplyTypeEnum;
213
- }, {
214
- type: DiscountRulesTypeEnum;
215
- status: DiscountRulesStatusEnum;
216
- uuid: string;
217
- createdAt: Date;
218
- updatedAt: Date;
219
- companyUUID: string;
220
- defaultApplyProduct: DiscountRulesApplyTypeEnum;
221
- defaultApplyClient: DiscountRulesApplyTypeEnum;
222
- }>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
223
- type: z.ZodLiteral<DiscountRulesTypeEnum.PERSONAL_DISCOUNT>;
224
- data: z.ZodObject<{
225
- discountPercent: z.ZodNumber;
226
- }, "strip", z.ZodTypeAny, {
227
- discountPercent: number;
228
- }, {
229
- discountPercent: number;
230
- }>;
231
- }, "strip", z.ZodTypeAny, {
232
- type: DiscountRulesTypeEnum.PERSONAL_DISCOUNT;
233
- data: {
234
- discountPercent: number;
235
- };
236
- }, {
237
- type: DiscountRulesTypeEnum.PERSONAL_DISCOUNT;
238
- data: {
239
- discountPercent: number;
240
- };
241
- }>, z.ZodObject<{
242
- type: z.ZodLiteral<DiscountRulesTypeEnum.MONTHLY_ORDER_SUM>;
243
- data: z.ZodObject<{
244
- range: z.ZodEffects<z.ZodArray<z.ZodNumber, "many">, number[], number[]>;
245
- discountPercent: z.ZodNumber;
246
- }, "strip", z.ZodTypeAny, {
247
- discountPercent: number;
248
- range: number[];
249
- }, {
250
- discountPercent: number;
251
- range: number[];
252
- }>;
253
- }, "strip", z.ZodTypeAny, {
254
- type: DiscountRulesTypeEnum.MONTHLY_ORDER_SUM;
255
- data: {
256
- discountPercent: number;
257
- range: number[];
258
- };
259
- }, {
260
- type: DiscountRulesTypeEnum.MONTHLY_ORDER_SUM;
261
- data: {
262
- discountPercent: number;
263
- range: number[];
264
- };
265
- }>, z.ZodObject<{
266
- type: z.ZodLiteral<DiscountRulesTypeEnum.QUANTITY_BASED>;
267
- data: z.ZodIntersection<z.ZodObject<{
268
- multipleQuantity: z.ZodNumber;
269
- }, "strip", z.ZodTypeAny, {
270
- multipleQuantity: number;
271
- }, {
272
- multipleQuantity: number;
273
- }>, z.ZodDiscriminatedUnion<"typeDiscount", [z.ZodObject<{
274
- typeDiscount: z.ZodLiteral<DiscountRulesModeTypeEnum.PERCENT>;
275
- discountValue: z.ZodNumber;
276
- }, "strip", z.ZodTypeAny, {
277
- typeDiscount: DiscountRulesModeTypeEnum.PERCENT;
278
- discountValue: number;
279
- }, {
280
- typeDiscount: DiscountRulesModeTypeEnum.PERCENT;
281
- discountValue: number;
282
- }>, z.ZodObject<{
283
- typeDiscount: z.ZodLiteral<DiscountRulesModeTypeEnum.FIXED>;
284
- discountValue: z.ZodNumber;
285
- }, "strip", z.ZodTypeAny, {
286
- typeDiscount: DiscountRulesModeTypeEnum.FIXED;
287
- discountValue: number;
288
- }, {
289
- typeDiscount: DiscountRulesModeTypeEnum.FIXED;
290
- discountValue: number;
291
- }>]>>;
292
- }, "strip", z.ZodTypeAny, {
293
- type: DiscountRulesTypeEnum.QUANTITY_BASED;
294
- data: ({
295
- multipleQuantity: number;
296
- } & {
297
- typeDiscount: DiscountRulesModeTypeEnum.PERCENT;
298
- discountValue: number;
299
- }) | ({
300
- multipleQuantity: number;
301
- } & {
302
- typeDiscount: DiscountRulesModeTypeEnum.FIXED;
303
- discountValue: number;
304
- });
305
- }, {
306
- type: DiscountRulesTypeEnum.QUANTITY_BASED;
307
- data: ({
308
- multipleQuantity: number;
309
- } & {
310
- typeDiscount: DiscountRulesModeTypeEnum.PERCENT;
311
- discountValue: number;
312
- }) | ({
313
- multipleQuantity: number;
314
- } & {
315
- typeDiscount: DiscountRulesModeTypeEnum.FIXED;
316
- discountValue: number;
317
- });
318
- }>, z.ZodObject<{
319
- type: z.ZodLiteral<DiscountRulesTypeEnum.ITEM_DISCOUNT>;
320
- data: z.ZodIntersection<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, z.ZodDiscriminatedUnion<"typeDiscount", [z.ZodObject<{
321
- typeDiscount: z.ZodLiteral<DiscountRulesModeTypeEnum.PERCENT>;
322
- discountValue: z.ZodNumber;
323
- }, "strip", z.ZodTypeAny, {
324
- typeDiscount: DiscountRulesModeTypeEnum.PERCENT;
325
- discountValue: number;
326
- }, {
327
- typeDiscount: DiscountRulesModeTypeEnum.PERCENT;
328
- discountValue: number;
329
- }>, z.ZodObject<{
330
- typeDiscount: z.ZodLiteral<DiscountRulesModeTypeEnum.FIXED>;
331
- discountValue: z.ZodNumber;
332
- }, "strip", z.ZodTypeAny, {
333
- typeDiscount: DiscountRulesModeTypeEnum.FIXED;
334
- discountValue: number;
335
- }, {
336
- typeDiscount: DiscountRulesModeTypeEnum.FIXED;
337
- discountValue: number;
338
- }>]>>;
339
- }, "strip", z.ZodTypeAny, {
340
- type: DiscountRulesTypeEnum.ITEM_DISCOUNT;
341
- data: ({} & {
342
- typeDiscount: DiscountRulesModeTypeEnum.PERCENT;
343
- discountValue: number;
344
- }) | ({} & {
345
- typeDiscount: DiscountRulesModeTypeEnum.FIXED;
346
- discountValue: number;
347
- });
348
- }, {
349
- type: DiscountRulesTypeEnum.ITEM_DISCOUNT;
350
- data: ({} & {
351
- typeDiscount: DiscountRulesModeTypeEnum.PERCENT;
352
- discountValue: number;
353
- }) | ({} & {
354
- typeDiscount: DiscountRulesModeTypeEnum.FIXED;
355
- discountValue: number;
356
- });
357
- }>, z.ZodObject<{
358
- type: z.ZodLiteral<DiscountRulesTypeEnum.DISCOUNT_PROHIBITED>;
359
- data: z.ZodDefault<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
360
- }, "strip", z.ZodTypeAny, {
361
- type: DiscountRulesTypeEnum.DISCOUNT_PROHIBITED;
362
- data: {};
363
- }, {
364
- type: DiscountRulesTypeEnum.DISCOUNT_PROHIBITED;
365
- data?: {} | undefined;
366
- }>]>>;
367
- export declare const CreateDiscountRulesSchema: z.ZodIntersection<z.ZodObject<{
368
- type: z.ZodNativeEnum<typeof DiscountRulesTypeEnum>;
369
- defaultApplyProduct: z.ZodNativeEnum<typeof DiscountRulesApplyTypeEnum>;
370
- defaultApplyClient: z.ZodNativeEnum<typeof DiscountRulesApplyTypeEnum>;
371
- clientsUUID: z.ZodArray<z.ZodString, "many">;
372
- productsUUID: z.ZodArray<z.ZodString, "many">;
373
- }, "strip", z.ZodTypeAny, {
374
- type: DiscountRulesTypeEnum;
375
- defaultApplyProduct: DiscountRulesApplyTypeEnum;
376
- defaultApplyClient: DiscountRulesApplyTypeEnum;
377
- clientsUUID: string[];
378
- productsUUID: string[];
379
- }, {
380
- type: DiscountRulesTypeEnum;
381
- defaultApplyProduct: DiscountRulesApplyTypeEnum;
382
- defaultApplyClient: DiscountRulesApplyTypeEnum;
383
- clientsUUID: string[];
384
- productsUUID: string[];
385
- }>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
386
- type: z.ZodLiteral<DiscountRulesTypeEnum.PERSONAL_DISCOUNT>;
387
- data: z.ZodObject<{
388
- discountPercent: z.ZodNumber;
389
- }, "strip", z.ZodTypeAny, {
390
- discountPercent: number;
391
- }, {
392
- discountPercent: number;
393
- }>;
394
- }, "strip", z.ZodTypeAny, {
395
- type: DiscountRulesTypeEnum.PERSONAL_DISCOUNT;
396
- data: {
397
- discountPercent: number;
398
- };
399
- }, {
400
- type: DiscountRulesTypeEnum.PERSONAL_DISCOUNT;
401
- data: {
402
- discountPercent: number;
403
- };
404
- }>, z.ZodObject<{
405
- type: z.ZodLiteral<DiscountRulesTypeEnum.MONTHLY_ORDER_SUM>;
406
- data: z.ZodObject<{
407
- range: z.ZodEffects<z.ZodArray<z.ZodNumber, "many">, number[], number[]>;
408
- discountPercent: z.ZodNumber;
409
- }, "strip", z.ZodTypeAny, {
410
- discountPercent: number;
411
- range: number[];
412
- }, {
413
- discountPercent: number;
414
- range: number[];
415
- }>;
416
- }, "strip", z.ZodTypeAny, {
417
- type: DiscountRulesTypeEnum.MONTHLY_ORDER_SUM;
418
- data: {
419
- discountPercent: number;
420
- range: number[];
421
- };
422
- }, {
423
- type: DiscountRulesTypeEnum.MONTHLY_ORDER_SUM;
424
- data: {
425
- discountPercent: number;
426
- range: number[];
427
- };
428
- }>, z.ZodObject<{
429
- type: z.ZodLiteral<DiscountRulesTypeEnum.QUANTITY_BASED>;
430
- data: z.ZodIntersection<z.ZodObject<{
431
- multipleQuantity: z.ZodNumber;
432
- }, "strip", z.ZodTypeAny, {
433
- multipleQuantity: number;
434
- }, {
435
- multipleQuantity: number;
436
- }>, z.ZodDiscriminatedUnion<"typeDiscount", [z.ZodObject<{
437
- typeDiscount: z.ZodLiteral<DiscountRulesModeTypeEnum.PERCENT>;
438
- discountValue: z.ZodNumber;
439
- }, "strip", z.ZodTypeAny, {
440
- typeDiscount: DiscountRulesModeTypeEnum.PERCENT;
441
- discountValue: number;
442
- }, {
443
- typeDiscount: DiscountRulesModeTypeEnum.PERCENT;
444
- discountValue: number;
445
- }>, z.ZodObject<{
446
- typeDiscount: z.ZodLiteral<DiscountRulesModeTypeEnum.FIXED>;
447
- discountValue: z.ZodNumber;
448
- }, "strip", z.ZodTypeAny, {
449
- typeDiscount: DiscountRulesModeTypeEnum.FIXED;
450
- discountValue: number;
451
- }, {
452
- typeDiscount: DiscountRulesModeTypeEnum.FIXED;
453
- discountValue: number;
454
- }>]>>;
455
- }, "strip", z.ZodTypeAny, {
456
- type: DiscountRulesTypeEnum.QUANTITY_BASED;
457
- data: ({
458
- multipleQuantity: number;
459
- } & {
460
- typeDiscount: DiscountRulesModeTypeEnum.PERCENT;
461
- discountValue: number;
462
- }) | ({
463
- multipleQuantity: number;
464
- } & {
465
- typeDiscount: DiscountRulesModeTypeEnum.FIXED;
466
- discountValue: number;
467
- });
468
- }, {
469
- type: DiscountRulesTypeEnum.QUANTITY_BASED;
470
- data: ({
471
- multipleQuantity: number;
472
- } & {
473
- typeDiscount: DiscountRulesModeTypeEnum.PERCENT;
474
- discountValue: number;
475
- }) | ({
476
- multipleQuantity: number;
477
- } & {
478
- typeDiscount: DiscountRulesModeTypeEnum.FIXED;
479
- discountValue: number;
480
- });
481
- }>, z.ZodObject<{
482
- type: z.ZodLiteral<DiscountRulesTypeEnum.ITEM_DISCOUNT>;
483
- data: z.ZodIntersection<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, z.ZodDiscriminatedUnion<"typeDiscount", [z.ZodObject<{
484
- typeDiscount: z.ZodLiteral<DiscountRulesModeTypeEnum.PERCENT>;
485
- discountValue: z.ZodNumber;
486
- }, "strip", z.ZodTypeAny, {
487
- typeDiscount: DiscountRulesModeTypeEnum.PERCENT;
488
- discountValue: number;
489
- }, {
490
- typeDiscount: DiscountRulesModeTypeEnum.PERCENT;
491
- discountValue: number;
492
- }>, z.ZodObject<{
493
- typeDiscount: z.ZodLiteral<DiscountRulesModeTypeEnum.FIXED>;
494
- discountValue: z.ZodNumber;
495
- }, "strip", z.ZodTypeAny, {
496
- typeDiscount: DiscountRulesModeTypeEnum.FIXED;
497
- discountValue: number;
498
- }, {
499
- typeDiscount: DiscountRulesModeTypeEnum.FIXED;
500
- discountValue: number;
501
- }>]>>;
502
- }, "strip", z.ZodTypeAny, {
503
- type: DiscountRulesTypeEnum.ITEM_DISCOUNT;
504
- data: ({} & {
505
- typeDiscount: DiscountRulesModeTypeEnum.PERCENT;
506
- discountValue: number;
507
- }) | ({} & {
508
- typeDiscount: DiscountRulesModeTypeEnum.FIXED;
509
- discountValue: number;
510
- });
511
- }, {
512
- type: DiscountRulesTypeEnum.ITEM_DISCOUNT;
513
- data: ({} & {
514
- typeDiscount: DiscountRulesModeTypeEnum.PERCENT;
515
- discountValue: number;
516
- }) | ({} & {
517
- typeDiscount: DiscountRulesModeTypeEnum.FIXED;
518
- discountValue: number;
519
- });
520
- }>, z.ZodObject<{
521
- type: z.ZodLiteral<DiscountRulesTypeEnum.DISCOUNT_PROHIBITED>;
522
- data: z.ZodDefault<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
523
- }, "strip", z.ZodTypeAny, {
524
- type: DiscountRulesTypeEnum.DISCOUNT_PROHIBITED;
525
- data: {};
526
- }, {
527
- type: DiscountRulesTypeEnum.DISCOUNT_PROHIBITED;
528
- data?: {} | undefined;
529
- }>]>>;
530
- export declare const UpdateDiscountRulesSchema: z.ZodIntersection<z.ZodObject<{
531
- type: z.ZodOptional<z.ZodNativeEnum<typeof DiscountRulesTypeEnum>>;
532
- status: z.ZodOptional<z.ZodNativeEnum<typeof DiscountRulesStatusEnum>>;
533
- defaultApplyProduct: z.ZodOptional<z.ZodNativeEnum<typeof DiscountRulesApplyTypeEnum>>;
534
- defaultApplyClient: z.ZodOptional<z.ZodNativeEnum<typeof DiscountRulesApplyTypeEnum>>;
535
- clientsUUID: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
536
- productsUUID: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
537
- }, "strip", z.ZodTypeAny, {
538
- type?: DiscountRulesTypeEnum | undefined;
539
- status?: DiscountRulesStatusEnum | undefined;
540
- defaultApplyProduct?: DiscountRulesApplyTypeEnum | undefined;
541
- defaultApplyClient?: DiscountRulesApplyTypeEnum | undefined;
542
- clientsUUID?: string[] | undefined;
543
- productsUUID?: string[] | undefined;
544
- }, {
545
- type?: DiscountRulesTypeEnum | undefined;
546
- status?: DiscountRulesStatusEnum | undefined;
547
- defaultApplyProduct?: DiscountRulesApplyTypeEnum | undefined;
548
- defaultApplyClient?: DiscountRulesApplyTypeEnum | undefined;
549
- clientsUUID?: string[] | undefined;
550
- productsUUID?: string[] | undefined;
551
- }>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
552
- type: z.ZodLiteral<DiscountRulesTypeEnum.PERSONAL_DISCOUNT>;
553
- data: z.ZodObject<{
554
- discountPercent: z.ZodNumber;
555
- }, "strip", z.ZodTypeAny, {
556
- discountPercent: number;
557
- }, {
558
- discountPercent: number;
559
- }>;
560
- }, "strip", z.ZodTypeAny, {
561
- type: DiscountRulesTypeEnum.PERSONAL_DISCOUNT;
562
- data: {
563
- discountPercent: number;
564
- };
565
- }, {
566
- type: DiscountRulesTypeEnum.PERSONAL_DISCOUNT;
567
- data: {
568
- discountPercent: number;
569
- };
570
- }>, z.ZodObject<{
571
- type: z.ZodLiteral<DiscountRulesTypeEnum.MONTHLY_ORDER_SUM>;
572
- data: z.ZodObject<{
573
- range: z.ZodEffects<z.ZodArray<z.ZodNumber, "many">, number[], number[]>;
574
- discountPercent: z.ZodNumber;
575
- }, "strip", z.ZodTypeAny, {
576
- discountPercent: number;
577
- range: number[];
578
- }, {
579
- discountPercent: number;
580
- range: number[];
581
- }>;
582
- }, "strip", z.ZodTypeAny, {
583
- type: DiscountRulesTypeEnum.MONTHLY_ORDER_SUM;
584
- data: {
585
- discountPercent: number;
586
- range: number[];
587
- };
588
- }, {
589
- type: DiscountRulesTypeEnum.MONTHLY_ORDER_SUM;
590
- data: {
591
- discountPercent: number;
592
- range: number[];
593
- };
594
- }>, z.ZodObject<{
595
- type: z.ZodLiteral<DiscountRulesTypeEnum.QUANTITY_BASED>;
596
- data: z.ZodIntersection<z.ZodObject<{
597
- multipleQuantity: z.ZodNumber;
598
- }, "strip", z.ZodTypeAny, {
599
- multipleQuantity: number;
600
- }, {
601
- multipleQuantity: number;
602
- }>, z.ZodDiscriminatedUnion<"typeDiscount", [z.ZodObject<{
603
- typeDiscount: z.ZodLiteral<DiscountRulesModeTypeEnum.PERCENT>;
604
- discountValue: z.ZodNumber;
605
- }, "strip", z.ZodTypeAny, {
606
- typeDiscount: DiscountRulesModeTypeEnum.PERCENT;
607
- discountValue: number;
608
- }, {
609
- typeDiscount: DiscountRulesModeTypeEnum.PERCENT;
610
- discountValue: number;
611
- }>, z.ZodObject<{
612
- typeDiscount: z.ZodLiteral<DiscountRulesModeTypeEnum.FIXED>;
613
- discountValue: z.ZodNumber;
614
- }, "strip", z.ZodTypeAny, {
615
- typeDiscount: DiscountRulesModeTypeEnum.FIXED;
616
- discountValue: number;
617
- }, {
618
- typeDiscount: DiscountRulesModeTypeEnum.FIXED;
619
- discountValue: number;
620
- }>]>>;
621
- }, "strip", z.ZodTypeAny, {
622
- type: DiscountRulesTypeEnum.QUANTITY_BASED;
623
- data: ({
624
- multipleQuantity: number;
625
- } & {
626
- typeDiscount: DiscountRulesModeTypeEnum.PERCENT;
627
- discountValue: number;
628
- }) | ({
629
- multipleQuantity: number;
630
- } & {
631
- typeDiscount: DiscountRulesModeTypeEnum.FIXED;
632
- discountValue: number;
633
- });
634
- }, {
635
- type: DiscountRulesTypeEnum.QUANTITY_BASED;
636
- data: ({
637
- multipleQuantity: number;
638
- } & {
639
- typeDiscount: DiscountRulesModeTypeEnum.PERCENT;
640
- discountValue: number;
641
- }) | ({
642
- multipleQuantity: number;
643
- } & {
644
- typeDiscount: DiscountRulesModeTypeEnum.FIXED;
645
- discountValue: number;
646
- });
647
- }>, z.ZodObject<{
648
- type: z.ZodLiteral<DiscountRulesTypeEnum.ITEM_DISCOUNT>;
649
- data: z.ZodIntersection<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, z.ZodDiscriminatedUnion<"typeDiscount", [z.ZodObject<{
650
- typeDiscount: z.ZodLiteral<DiscountRulesModeTypeEnum.PERCENT>;
651
- discountValue: z.ZodNumber;
652
- }, "strip", z.ZodTypeAny, {
653
- typeDiscount: DiscountRulesModeTypeEnum.PERCENT;
654
- discountValue: number;
655
- }, {
656
- typeDiscount: DiscountRulesModeTypeEnum.PERCENT;
657
- discountValue: number;
658
- }>, z.ZodObject<{
659
- typeDiscount: z.ZodLiteral<DiscountRulesModeTypeEnum.FIXED>;
660
- discountValue: z.ZodNumber;
661
- }, "strip", z.ZodTypeAny, {
662
- typeDiscount: DiscountRulesModeTypeEnum.FIXED;
663
- discountValue: number;
664
- }, {
665
- typeDiscount: DiscountRulesModeTypeEnum.FIXED;
666
- discountValue: number;
667
- }>]>>;
668
- }, "strip", z.ZodTypeAny, {
669
- type: DiscountRulesTypeEnum.ITEM_DISCOUNT;
670
- data: ({} & {
671
- typeDiscount: DiscountRulesModeTypeEnum.PERCENT;
672
- discountValue: number;
673
- }) | ({} & {
674
- typeDiscount: DiscountRulesModeTypeEnum.FIXED;
675
- discountValue: number;
676
- });
677
- }, {
678
- type: DiscountRulesTypeEnum.ITEM_DISCOUNT;
679
- data: ({} & {
680
- typeDiscount: DiscountRulesModeTypeEnum.PERCENT;
681
- discountValue: number;
682
- }) | ({} & {
683
- typeDiscount: DiscountRulesModeTypeEnum.FIXED;
684
- discountValue: number;
685
- });
686
- }>, z.ZodObject<{
687
- type: z.ZodLiteral<DiscountRulesTypeEnum.DISCOUNT_PROHIBITED>;
688
- data: z.ZodDefault<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
689
- }, "strip", z.ZodTypeAny, {
690
- type: DiscountRulesTypeEnum.DISCOUNT_PROHIBITED;
691
- data: {};
692
- }, {
693
- type: DiscountRulesTypeEnum.DISCOUNT_PROHIBITED;
694
- data?: {} | undefined;
695
- }>]>>;
696
- export declare const DiscountRulesListSchema: z.ZodObject<{
697
- list: z.ZodArray<z.ZodIntersection<z.ZodObject<{
698
- uuid: z.ZodString;
699
- companyUUID: z.ZodString;
700
- type: z.ZodNativeEnum<typeof DiscountRulesTypeEnum>;
701
- defaultApplyProduct: z.ZodNativeEnum<typeof DiscountRulesApplyTypeEnum>;
702
- defaultApplyClient: z.ZodNativeEnum<typeof DiscountRulesApplyTypeEnum>;
703
- status: z.ZodNativeEnum<typeof DiscountRulesStatusEnum>;
704
- createdAt: z.ZodDate;
705
- updatedAt: z.ZodDate;
706
- }, "strip", z.ZodTypeAny, {
707
- type: DiscountRulesTypeEnum;
708
- status: DiscountRulesStatusEnum;
709
- uuid: string;
710
- createdAt: Date;
711
- updatedAt: Date;
712
- companyUUID: string;
713
- defaultApplyProduct: DiscountRulesApplyTypeEnum;
714
- defaultApplyClient: DiscountRulesApplyTypeEnum;
715
- }, {
716
- type: DiscountRulesTypeEnum;
717
- status: DiscountRulesStatusEnum;
718
- uuid: string;
719
- createdAt: Date;
720
- updatedAt: Date;
721
- companyUUID: string;
722
- defaultApplyProduct: DiscountRulesApplyTypeEnum;
723
- defaultApplyClient: DiscountRulesApplyTypeEnum;
724
- }>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
725
- type: z.ZodLiteral<DiscountRulesTypeEnum.PERSONAL_DISCOUNT>;
726
- data: z.ZodObject<{
727
- discountPercent: z.ZodNumber;
728
- }, "strip", z.ZodTypeAny, {
729
- discountPercent: number;
730
- }, {
731
- discountPercent: number;
732
- }>;
733
- }, "strip", z.ZodTypeAny, {
734
- type: DiscountRulesTypeEnum.PERSONAL_DISCOUNT;
735
- data: {
736
- discountPercent: number;
737
- };
738
- }, {
739
- type: DiscountRulesTypeEnum.PERSONAL_DISCOUNT;
740
- data: {
741
- discountPercent: number;
742
- };
743
- }>, z.ZodObject<{
744
- type: z.ZodLiteral<DiscountRulesTypeEnum.MONTHLY_ORDER_SUM>;
745
- data: z.ZodObject<{
746
- range: z.ZodEffects<z.ZodArray<z.ZodNumber, "many">, number[], number[]>;
747
- discountPercent: z.ZodNumber;
748
- }, "strip", z.ZodTypeAny, {
749
- discountPercent: number;
750
- range: number[];
751
- }, {
752
- discountPercent: number;
753
- range: number[];
754
- }>;
755
- }, "strip", z.ZodTypeAny, {
756
- type: DiscountRulesTypeEnum.MONTHLY_ORDER_SUM;
757
- data: {
758
- discountPercent: number;
759
- range: number[];
760
- };
761
- }, {
762
- type: DiscountRulesTypeEnum.MONTHLY_ORDER_SUM;
763
- data: {
764
- discountPercent: number;
765
- range: number[];
766
- };
767
- }>, z.ZodObject<{
768
- type: z.ZodLiteral<DiscountRulesTypeEnum.QUANTITY_BASED>;
769
- data: z.ZodIntersection<z.ZodObject<{
770
- multipleQuantity: z.ZodNumber;
771
- }, "strip", z.ZodTypeAny, {
772
- multipleQuantity: number;
773
- }, {
774
- multipleQuantity: number;
775
- }>, z.ZodDiscriminatedUnion<"typeDiscount", [z.ZodObject<{
776
- typeDiscount: z.ZodLiteral<DiscountRulesModeTypeEnum.PERCENT>;
777
- discountValue: z.ZodNumber;
778
- }, "strip", z.ZodTypeAny, {
779
- typeDiscount: DiscountRulesModeTypeEnum.PERCENT;
780
- discountValue: number;
781
- }, {
782
- typeDiscount: DiscountRulesModeTypeEnum.PERCENT;
783
- discountValue: number;
784
- }>, z.ZodObject<{
785
- typeDiscount: z.ZodLiteral<DiscountRulesModeTypeEnum.FIXED>;
786
- discountValue: z.ZodNumber;
787
- }, "strip", z.ZodTypeAny, {
788
- typeDiscount: DiscountRulesModeTypeEnum.FIXED;
789
- discountValue: number;
790
- }, {
791
- typeDiscount: DiscountRulesModeTypeEnum.FIXED;
792
- discountValue: number;
793
- }>]>>;
794
- }, "strip", z.ZodTypeAny, {
795
- type: DiscountRulesTypeEnum.QUANTITY_BASED;
796
- data: ({
797
- multipleQuantity: number;
798
- } & {
799
- typeDiscount: DiscountRulesModeTypeEnum.PERCENT;
800
- discountValue: number;
801
- }) | ({
802
- multipleQuantity: number;
803
- } & {
804
- typeDiscount: DiscountRulesModeTypeEnum.FIXED;
805
- discountValue: number;
806
- });
807
- }, {
808
- type: DiscountRulesTypeEnum.QUANTITY_BASED;
809
- data: ({
810
- multipleQuantity: number;
811
- } & {
812
- typeDiscount: DiscountRulesModeTypeEnum.PERCENT;
813
- discountValue: number;
814
- }) | ({
815
- multipleQuantity: number;
816
- } & {
817
- typeDiscount: DiscountRulesModeTypeEnum.FIXED;
818
- discountValue: number;
819
- });
820
- }>, z.ZodObject<{
821
- type: z.ZodLiteral<DiscountRulesTypeEnum.ITEM_DISCOUNT>;
822
- data: z.ZodIntersection<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, z.ZodDiscriminatedUnion<"typeDiscount", [z.ZodObject<{
823
- typeDiscount: z.ZodLiteral<DiscountRulesModeTypeEnum.PERCENT>;
824
- discountValue: z.ZodNumber;
825
- }, "strip", z.ZodTypeAny, {
826
- typeDiscount: DiscountRulesModeTypeEnum.PERCENT;
827
- discountValue: number;
828
- }, {
829
- typeDiscount: DiscountRulesModeTypeEnum.PERCENT;
830
- discountValue: number;
831
- }>, z.ZodObject<{
832
- typeDiscount: z.ZodLiteral<DiscountRulesModeTypeEnum.FIXED>;
833
- discountValue: z.ZodNumber;
834
- }, "strip", z.ZodTypeAny, {
835
- typeDiscount: DiscountRulesModeTypeEnum.FIXED;
836
- discountValue: number;
837
- }, {
838
- typeDiscount: DiscountRulesModeTypeEnum.FIXED;
839
- discountValue: number;
840
- }>]>>;
841
- }, "strip", z.ZodTypeAny, {
842
- type: DiscountRulesTypeEnum.ITEM_DISCOUNT;
843
- data: ({} & {
844
- typeDiscount: DiscountRulesModeTypeEnum.PERCENT;
845
- discountValue: number;
846
- }) | ({} & {
847
- typeDiscount: DiscountRulesModeTypeEnum.FIXED;
848
- discountValue: number;
849
- });
850
- }, {
851
- type: DiscountRulesTypeEnum.ITEM_DISCOUNT;
852
- data: ({} & {
853
- typeDiscount: DiscountRulesModeTypeEnum.PERCENT;
854
- discountValue: number;
855
- }) | ({} & {
856
- typeDiscount: DiscountRulesModeTypeEnum.FIXED;
857
- discountValue: number;
858
- });
859
- }>, z.ZodObject<{
860
- type: z.ZodLiteral<DiscountRulesTypeEnum.DISCOUNT_PROHIBITED>;
861
- data: z.ZodDefault<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
862
- }, "strip", z.ZodTypeAny, {
863
- type: DiscountRulesTypeEnum.DISCOUNT_PROHIBITED;
864
- data: {};
865
- }, {
866
- type: DiscountRulesTypeEnum.DISCOUNT_PROHIBITED;
867
- data?: {} | undefined;
868
- }>]>>, "many">;
869
- total: z.ZodNumber;
870
- }, "strip", z.ZodTypeAny, {
871
- total: number;
872
- list: ({
873
- type: DiscountRulesTypeEnum;
874
- status: DiscountRulesStatusEnum;
875
- uuid: string;
876
- createdAt: Date;
877
- updatedAt: Date;
878
- companyUUID: string;
879
- defaultApplyProduct: DiscountRulesApplyTypeEnum;
880
- defaultApplyClient: DiscountRulesApplyTypeEnum;
881
- } & ({
882
- type: DiscountRulesTypeEnum.PERSONAL_DISCOUNT;
883
- data: {
884
- discountPercent: number;
885
- };
886
- } | {
887
- type: DiscountRulesTypeEnum.MONTHLY_ORDER_SUM;
888
- data: {
889
- discountPercent: number;
890
- range: number[];
891
- };
892
- } | {
893
- type: DiscountRulesTypeEnum.QUANTITY_BASED;
894
- data: ({
895
- multipleQuantity: number;
896
- } & {
897
- typeDiscount: DiscountRulesModeTypeEnum.PERCENT;
898
- discountValue: number;
899
- }) | ({
900
- multipleQuantity: number;
901
- } & {
902
- typeDiscount: DiscountRulesModeTypeEnum.FIXED;
903
- discountValue: number;
904
- });
905
- } | {
906
- type: DiscountRulesTypeEnum.ITEM_DISCOUNT;
907
- data: ({} & {
908
- typeDiscount: DiscountRulesModeTypeEnum.PERCENT;
909
- discountValue: number;
910
- }) | ({} & {
911
- typeDiscount: DiscountRulesModeTypeEnum.FIXED;
912
- discountValue: number;
913
- });
914
- } | {
915
- type: DiscountRulesTypeEnum.DISCOUNT_PROHIBITED;
916
- data: {};
917
- }))[];
918
- }, {
919
- total: number;
920
- list: ({
921
- type: DiscountRulesTypeEnum;
922
- status: DiscountRulesStatusEnum;
923
- uuid: string;
924
- createdAt: Date;
925
- updatedAt: Date;
926
- companyUUID: string;
927
- defaultApplyProduct: DiscountRulesApplyTypeEnum;
928
- defaultApplyClient: DiscountRulesApplyTypeEnum;
929
- } & ({
930
- type: DiscountRulesTypeEnum.PERSONAL_DISCOUNT;
931
- data: {
932
- discountPercent: number;
933
- };
934
- } | {
935
- type: DiscountRulesTypeEnum.MONTHLY_ORDER_SUM;
936
- data: {
937
- discountPercent: number;
938
- range: number[];
939
- };
940
- } | {
941
- type: DiscountRulesTypeEnum.QUANTITY_BASED;
942
- data: ({
943
- multipleQuantity: number;
944
- } & {
945
- typeDiscount: DiscountRulesModeTypeEnum.PERCENT;
946
- discountValue: number;
947
- }) | ({
948
- multipleQuantity: number;
949
- } & {
950
- typeDiscount: DiscountRulesModeTypeEnum.FIXED;
951
- discountValue: number;
952
- });
953
- } | {
954
- type: DiscountRulesTypeEnum.ITEM_DISCOUNT;
955
- data: ({} & {
956
- typeDiscount: DiscountRulesModeTypeEnum.PERCENT;
957
- discountValue: number;
958
- }) | ({} & {
959
- typeDiscount: DiscountRulesModeTypeEnum.FIXED;
960
- discountValue: number;
961
- });
962
- } | {
963
- type: DiscountRulesTypeEnum.DISCOUNT_PROHIBITED;
964
- data?: {} | undefined;
965
- }))[];
966
- }>;
967
- export declare const DiscountRulesBaseExtendedSchema: z.ZodLazy<z.ZodObject<{
968
- type: z.ZodNativeEnum<typeof DiscountRulesTypeEnum>;
969
- status: z.ZodNativeEnum<typeof DiscountRulesStatusEnum>;
970
- uuid: z.ZodString;
971
- createdAt: z.ZodDate;
972
- updatedAt: z.ZodDate;
973
- companyUUID: z.ZodString;
974
- defaultApplyProduct: z.ZodNativeEnum<typeof DiscountRulesApplyTypeEnum>;
975
- defaultApplyClient: z.ZodNativeEnum<typeof DiscountRulesApplyTypeEnum>;
976
- clients: z.ZodArray<z.ZodObject<{
977
- uuid: z.ZodString;
978
- name: z.ZodString;
979
- contactName: z.ZodNullable<z.ZodString>;
980
- phone: z.ZodNullable<z.ZodString>;
981
- email: z.ZodNullable<z.ZodString>;
982
- status: z.ZodNativeEnum<typeof import("../../enum/client-status.enum").ClientStatusEnum>;
983
- isCommon: z.ZodBoolean;
984
- contractNumber: z.ZodNullable<z.ZodString>;
985
- contractDate: z.ZodNullable<z.ZodDate>;
986
- address: z.ZodNullable<z.ZodString>;
987
- city: z.ZodNullable<z.ZodString>;
988
- code: z.ZodNullable<z.ZodString>;
989
- group: z.ZodNullable<z.ZodString>;
990
- marking: z.ZodNullable<z.ZodString>;
991
- alwaysRequiresDelivery: z.ZodBoolean;
992
- additionalPhone: z.ZodNullable<z.ZodString>;
993
- comment: z.ZodNullable<z.ZodString>;
994
- balance: z.ZodNumber;
995
- deletedAt: z.ZodNullable<z.ZodDate>;
996
- createdAt: z.ZodDate;
997
- updatedAt: z.ZodDate;
998
- companyUUID: z.ZodString;
999
- clientType: z.ZodNativeEnum<typeof import("../../enum/client-type.enum").ClientTypeEnum>;
1000
- responsibleUserUUID: z.ZodNullable<z.ZodString>;
1001
- responsibleSince: z.ZodNullable<z.ZodDate>;
1002
- }, "strip", z.ZodTypeAny, {
1003
- email: string | null;
1004
- phone: string | null;
1005
- name: string;
1006
- code: string | null;
1007
- status: import("../../enum/client-status.enum").ClientStatusEnum;
1008
- uuid: string;
1009
- contactName: string | null;
1010
- address: string | null;
1011
- city: string | null;
1012
- createdAt: Date;
1013
- updatedAt: Date;
1014
- deletedAt: Date | null;
1015
- companyUUID: string;
1016
- isCommon: boolean;
1017
- contractNumber: string | null;
1018
- contractDate: Date | null;
1019
- group: string | null;
1020
- marking: string | null;
1021
- alwaysRequiresDelivery: boolean;
1022
- additionalPhone: string | null;
1023
- comment: string | null;
1024
- balance: number;
1025
- clientType: import("../../enum/client-type.enum").ClientTypeEnum;
1026
- responsibleUserUUID: string | null;
1027
- responsibleSince: Date | null;
1028
- }, {
1029
- email: string | null;
1030
- phone: string | null;
1031
- name: string;
1032
- code: string | null;
1033
- status: import("../../enum/client-status.enum").ClientStatusEnum;
1034
- uuid: string;
1035
- contactName: string | null;
1036
- address: string | null;
1037
- city: string | null;
1038
- createdAt: Date;
1039
- updatedAt: Date;
1040
- deletedAt: Date | null;
1041
- companyUUID: string;
1042
- isCommon: boolean;
1043
- contractNumber: string | null;
1044
- contractDate: Date | null;
1045
- group: string | null;
1046
- marking: string | null;
1047
- alwaysRequiresDelivery: boolean;
1048
- additionalPhone: string | null;
1049
- comment: string | null;
1050
- balance: number;
1051
- clientType: import("../../enum/client-type.enum").ClientTypeEnum;
1052
- responsibleUserUUID: string | null;
1053
- responsibleSince: Date | null;
1054
- }>, "many">;
1055
- products: z.ZodArray<z.ZodObject<{
1056
- uuid: z.ZodString;
1057
- dataSyncId: z.ZodNullable<z.ZodString>;
1058
- consignmentUUID: z.ZodString;
1059
- categoryUUID: z.ZodNullable<z.ZodString>;
1060
- name: z.ZodString;
1061
- balance: z.ZodNumber;
1062
- quantity: z.ZodNumber;
1063
- price: z.ZodNumber;
1064
- costPrice: z.ZodNumber;
1065
- multiplicity: z.ZodNumber;
1066
- isOpen: z.ZodBoolean;
1067
- article: z.ZodNullable<z.ZodString>;
1068
- vbn: z.ZodNullable<z.ZodString>;
1069
- barcode: z.ZodNullable<z.ZodString>;
1070
- color: z.ZodNullable<z.ZodString>;
1071
- size: z.ZodNullable<z.ZodString>;
1072
- size2: z.ZodNullable<z.ZodString>;
1073
- size3: z.ZodNullable<z.ZodString>;
1074
- invoicePrice: z.ZodNullable<z.ZodNumber>;
1075
- invoiceNumber: z.ZodNullable<z.ZodString>;
1076
- imageUUID: z.ZodNullable<z.ZodString>;
1077
- country: z.ZodNullable<z.ZodString>;
1078
- description: z.ZodNullable<z.ZodString>;
1079
- quality: z.ZodNullable<z.ZodString>;
1080
- grower: z.ZodNullable<z.ZodString>;
1081
- vat: z.ZodNullable<z.ZodNumber>;
1082
- createdAt: z.ZodDate;
1083
- updatedAt: z.ZodDate;
1084
- deletedAt: z.ZodNullable<z.ZodDate>;
1085
- }, "strip", z.ZodTypeAny, {
1086
- name: string;
1087
- uuid: string;
1088
- country: string | null;
1089
- createdAt: Date;
1090
- updatedAt: Date;
1091
- deletedAt: Date | null;
1092
- multiplicity: number;
1093
- categoryUUID: string | null;
1094
- color: string | null;
1095
- vbn: string | null;
1096
- grower: string | null;
1097
- description: string | null;
1098
- balance: number;
1099
- dataSyncId: string | null;
1100
- consignmentUUID: string;
1101
- quantity: number;
1102
- price: number;
1103
- costPrice: number;
1104
- isOpen: boolean;
1105
- article: string | null;
1106
- barcode: string | null;
1107
- size: string | null;
1108
- size2: string | null;
1109
- size3: string | null;
1110
- invoicePrice: number | null;
1111
- invoiceNumber: string | null;
1112
- imageUUID: string | null;
1113
- quality: string | null;
1114
- vat: number | null;
1115
- }, {
1116
- name: string;
1117
- uuid: string;
1118
- country: string | null;
1119
- createdAt: Date;
1120
- updatedAt: Date;
1121
- deletedAt: Date | null;
1122
- multiplicity: number;
1123
- categoryUUID: string | null;
1124
- color: string | null;
1125
- vbn: string | null;
1126
- grower: string | null;
1127
- description: string | null;
1128
- balance: number;
1129
- dataSyncId: string | null;
1130
- consignmentUUID: string;
1131
- quantity: number;
1132
- price: number;
1133
- costPrice: number;
1134
- isOpen: boolean;
1135
- article: string | null;
1136
- barcode: string | null;
1137
- size: string | null;
1138
- size2: string | null;
1139
- size3: string | null;
1140
- invoicePrice: number | null;
1141
- invoiceNumber: string | null;
1142
- imageUUID: string | null;
1143
- quality: string | null;
1144
- vat: number | null;
1145
- }>, "many">;
1146
- }, "strip", z.ZodTypeAny, {
1147
- type: DiscountRulesTypeEnum;
1148
- status: DiscountRulesStatusEnum;
1149
- uuid: string;
1150
- createdAt: Date;
1151
- updatedAt: Date;
1152
- companyUUID: string;
1153
- defaultApplyProduct: DiscountRulesApplyTypeEnum;
1154
- defaultApplyClient: DiscountRulesApplyTypeEnum;
1155
- clients: {
1156
- email: string | null;
1157
- phone: string | null;
1158
- name: string;
1159
- code: string | null;
1160
- status: import("../../enum/client-status.enum").ClientStatusEnum;
1161
- uuid: string;
1162
- contactName: string | null;
1163
- address: string | null;
1164
- city: string | null;
1165
- createdAt: Date;
1166
- updatedAt: Date;
1167
- deletedAt: Date | null;
1168
- companyUUID: string;
1169
- isCommon: boolean;
1170
- contractNumber: string | null;
1171
- contractDate: Date | null;
1172
- group: string | null;
1173
- marking: string | null;
1174
- alwaysRequiresDelivery: boolean;
1175
- additionalPhone: string | null;
1176
- comment: string | null;
1177
- balance: number;
1178
- clientType: import("../../enum/client-type.enum").ClientTypeEnum;
1179
- responsibleUserUUID: string | null;
1180
- responsibleSince: Date | null;
1181
- }[];
1182
- products: {
1183
- name: string;
1184
- uuid: string;
1185
- country: string | null;
1186
- createdAt: Date;
1187
- updatedAt: Date;
1188
- deletedAt: Date | null;
1189
- multiplicity: number;
1190
- categoryUUID: string | null;
1191
- color: string | null;
1192
- vbn: string | null;
1193
- grower: string | null;
1194
- description: string | null;
1195
- balance: number;
1196
- dataSyncId: string | null;
1197
- consignmentUUID: string;
1198
- quantity: number;
1199
- price: number;
1200
- costPrice: number;
1201
- isOpen: boolean;
1202
- article: string | null;
1203
- barcode: string | null;
1204
- size: string | null;
1205
- size2: string | null;
1206
- size3: string | null;
1207
- invoicePrice: number | null;
1208
- invoiceNumber: string | null;
1209
- imageUUID: string | null;
1210
- quality: string | null;
1211
- vat: number | null;
1212
- }[];
1213
- }, {
1214
- type: DiscountRulesTypeEnum;
1215
- status: DiscountRulesStatusEnum;
1216
- uuid: string;
1217
- createdAt: Date;
1218
- updatedAt: Date;
1219
- companyUUID: string;
1220
- defaultApplyProduct: DiscountRulesApplyTypeEnum;
1221
- defaultApplyClient: DiscountRulesApplyTypeEnum;
1222
- clients: {
1223
- email: string | null;
1224
- phone: string | null;
1225
- name: string;
1226
- code: string | null;
1227
- status: import("../../enum/client-status.enum").ClientStatusEnum;
1228
- uuid: string;
1229
- contactName: string | null;
1230
- address: string | null;
1231
- city: string | null;
1232
- createdAt: Date;
1233
- updatedAt: Date;
1234
- deletedAt: Date | null;
1235
- companyUUID: string;
1236
- isCommon: boolean;
1237
- contractNumber: string | null;
1238
- contractDate: Date | null;
1239
- group: string | null;
1240
- marking: string | null;
1241
- alwaysRequiresDelivery: boolean;
1242
- additionalPhone: string | null;
1243
- comment: string | null;
1244
- balance: number;
1245
- clientType: import("../../enum/client-type.enum").ClientTypeEnum;
1246
- responsibleUserUUID: string | null;
1247
- responsibleSince: Date | null;
1248
- }[];
1249
- products: {
1250
- name: string;
1251
- uuid: string;
1252
- country: string | null;
1253
- createdAt: Date;
1254
- updatedAt: Date;
1255
- deletedAt: Date | null;
1256
- multiplicity: number;
1257
- categoryUUID: string | null;
1258
- color: string | null;
1259
- vbn: string | null;
1260
- grower: string | null;
1261
- description: string | null;
1262
- balance: number;
1263
- dataSyncId: string | null;
1264
- consignmentUUID: string;
1265
- quantity: number;
1266
- price: number;
1267
- costPrice: number;
1268
- isOpen: boolean;
1269
- article: string | null;
1270
- barcode: string | null;
1271
- size: string | null;
1272
- size2: string | null;
1273
- size3: string | null;
1274
- invoicePrice: number | null;
1275
- invoiceNumber: string | null;
1276
- imageUUID: string | null;
1277
- quality: string | null;
1278
- vat: number | null;
1279
- }[];
1280
- }>>;
1281
- export declare const DiscountRulesSplitQuantitySchema: z.ZodObject<{
1282
- productUUID: z.ZodString;
1283
- quantity: z.ZodNumber;
1284
- clientUUID: z.ZodString;
1285
- }, "strip", z.ZodTypeAny, {
1286
- quantity: number;
1287
- productUUID: string;
1288
- clientUUID: string;
1289
- }, {
1290
- quantity: number;
1291
- productUUID: string;
1292
- clientUUID: string;
1293
- }>;
1294
- export declare const DiscountRulesSplitQuantityResponseSchema: z.ZodObject<{
1295
- split: z.ZodNullable<z.ZodArray<z.ZodObject<{
1296
- productUUID: z.ZodString;
1297
- quantity: z.ZodNumber;
1298
- withDiscount: z.ZodBoolean;
1299
- price: z.ZodNumber;
1300
- }, "strip", z.ZodTypeAny, {
1301
- quantity: number;
1302
- price: number;
1303
- productUUID: string;
1304
- withDiscount: boolean;
1305
- }, {
1306
- quantity: number;
1307
- price: number;
1308
- productUUID: string;
1309
- withDiscount: boolean;
1310
- }>, "many">>;
1311
- }, "strip", z.ZodTypeAny, {
1312
- split: {
1313
- quantity: number;
1314
- price: number;
1315
- productUUID: string;
1316
- withDiscount: boolean;
1317
- }[] | null;
1318
- }, {
1319
- split: {
1320
- quantity: number;
1321
- price: number;
1322
- productUUID: string;
1323
- withDiscount: boolean;
1324
- }[] | null;
1325
- }>;
1326
- export declare const DiscountRulesSplitQuantityForClientSchema: z.ZodObject<Omit<{
1327
- productUUID: z.ZodString;
1328
- quantity: z.ZodNumber;
1329
- clientUUID: z.ZodString;
1330
- }, "clientUUID">, "strip", z.ZodTypeAny, {
1331
- quantity: number;
1332
- productUUID: string;
1333
- }, {
1334
- quantity: number;
1335
- productUUID: string;
1336
- }>;
1337
- export declare const DiscountRulesExtendedSchema: z.ZodIntersection<z.ZodLazy<z.ZodObject<{
1338
- type: z.ZodNativeEnum<typeof DiscountRulesTypeEnum>;
1339
- status: z.ZodNativeEnum<typeof DiscountRulesStatusEnum>;
1340
- uuid: z.ZodString;
1341
- createdAt: z.ZodDate;
1342
- updatedAt: z.ZodDate;
1343
- companyUUID: z.ZodString;
1344
- defaultApplyProduct: z.ZodNativeEnum<typeof DiscountRulesApplyTypeEnum>;
1345
- defaultApplyClient: z.ZodNativeEnum<typeof DiscountRulesApplyTypeEnum>;
1346
- clients: z.ZodArray<z.ZodObject<{
1347
- uuid: z.ZodString;
1348
- name: z.ZodString;
1349
- contactName: z.ZodNullable<z.ZodString>;
1350
- phone: z.ZodNullable<z.ZodString>;
1351
- email: z.ZodNullable<z.ZodString>;
1352
- status: z.ZodNativeEnum<typeof import("../../enum/client-status.enum").ClientStatusEnum>;
1353
- isCommon: z.ZodBoolean;
1354
- contractNumber: z.ZodNullable<z.ZodString>;
1355
- contractDate: z.ZodNullable<z.ZodDate>;
1356
- address: z.ZodNullable<z.ZodString>;
1357
- city: z.ZodNullable<z.ZodString>;
1358
- code: z.ZodNullable<z.ZodString>;
1359
- group: z.ZodNullable<z.ZodString>;
1360
- marking: z.ZodNullable<z.ZodString>;
1361
- alwaysRequiresDelivery: z.ZodBoolean;
1362
- additionalPhone: z.ZodNullable<z.ZodString>;
1363
- comment: z.ZodNullable<z.ZodString>;
1364
- balance: z.ZodNumber;
1365
- deletedAt: z.ZodNullable<z.ZodDate>;
1366
- createdAt: z.ZodDate;
1367
- updatedAt: z.ZodDate;
1368
- companyUUID: z.ZodString;
1369
- clientType: z.ZodNativeEnum<typeof import("../../enum/client-type.enum").ClientTypeEnum>;
1370
- responsibleUserUUID: z.ZodNullable<z.ZodString>;
1371
- responsibleSince: z.ZodNullable<z.ZodDate>;
1372
- }, "strip", z.ZodTypeAny, {
1373
- email: string | null;
1374
- phone: string | null;
1375
- name: string;
1376
- code: string | null;
1377
- status: import("../../enum/client-status.enum").ClientStatusEnum;
1378
- uuid: string;
1379
- contactName: string | null;
1380
- address: string | null;
1381
- city: string | null;
1382
- createdAt: Date;
1383
- updatedAt: Date;
1384
- deletedAt: Date | null;
1385
- companyUUID: string;
1386
- isCommon: boolean;
1387
- contractNumber: string | null;
1388
- contractDate: Date | null;
1389
- group: string | null;
1390
- marking: string | null;
1391
- alwaysRequiresDelivery: boolean;
1392
- additionalPhone: string | null;
1393
- comment: string | null;
1394
- balance: number;
1395
- clientType: import("../../enum/client-type.enum").ClientTypeEnum;
1396
- responsibleUserUUID: string | null;
1397
- responsibleSince: Date | null;
1398
- }, {
1399
- email: string | null;
1400
- phone: string | null;
1401
- name: string;
1402
- code: string | null;
1403
- status: import("../../enum/client-status.enum").ClientStatusEnum;
1404
- uuid: string;
1405
- contactName: string | null;
1406
- address: string | null;
1407
- city: string | null;
1408
- createdAt: Date;
1409
- updatedAt: Date;
1410
- deletedAt: Date | null;
1411
- companyUUID: string;
1412
- isCommon: boolean;
1413
- contractNumber: string | null;
1414
- contractDate: Date | null;
1415
- group: string | null;
1416
- marking: string | null;
1417
- alwaysRequiresDelivery: boolean;
1418
- additionalPhone: string | null;
1419
- comment: string | null;
1420
- balance: number;
1421
- clientType: import("../../enum/client-type.enum").ClientTypeEnum;
1422
- responsibleUserUUID: string | null;
1423
- responsibleSince: Date | null;
1424
- }>, "many">;
1425
- products: z.ZodArray<z.ZodObject<{
1426
- uuid: z.ZodString;
1427
- dataSyncId: z.ZodNullable<z.ZodString>;
1428
- consignmentUUID: z.ZodString;
1429
- categoryUUID: z.ZodNullable<z.ZodString>;
1430
- name: z.ZodString;
1431
- balance: z.ZodNumber;
1432
- quantity: z.ZodNumber;
1433
- price: z.ZodNumber;
1434
- costPrice: z.ZodNumber;
1435
- multiplicity: z.ZodNumber;
1436
- isOpen: z.ZodBoolean;
1437
- article: z.ZodNullable<z.ZodString>;
1438
- vbn: z.ZodNullable<z.ZodString>;
1439
- barcode: z.ZodNullable<z.ZodString>;
1440
- color: z.ZodNullable<z.ZodString>;
1441
- size: z.ZodNullable<z.ZodString>;
1442
- size2: z.ZodNullable<z.ZodString>;
1443
- size3: z.ZodNullable<z.ZodString>;
1444
- invoicePrice: z.ZodNullable<z.ZodNumber>;
1445
- invoiceNumber: z.ZodNullable<z.ZodString>;
1446
- imageUUID: z.ZodNullable<z.ZodString>;
1447
- country: z.ZodNullable<z.ZodString>;
1448
- description: z.ZodNullable<z.ZodString>;
1449
- quality: z.ZodNullable<z.ZodString>;
1450
- grower: z.ZodNullable<z.ZodString>;
1451
- vat: z.ZodNullable<z.ZodNumber>;
1452
- createdAt: z.ZodDate;
1453
- updatedAt: z.ZodDate;
1454
- deletedAt: z.ZodNullable<z.ZodDate>;
1455
- }, "strip", z.ZodTypeAny, {
1456
- name: string;
1457
- uuid: string;
1458
- country: string | null;
1459
- createdAt: Date;
1460
- updatedAt: Date;
1461
- deletedAt: Date | null;
1462
- multiplicity: number;
1463
- categoryUUID: string | null;
1464
- color: string | null;
1465
- vbn: string | null;
1466
- grower: string | null;
1467
- description: string | null;
1468
- balance: number;
1469
- dataSyncId: string | null;
1470
- consignmentUUID: string;
1471
- quantity: number;
1472
- price: number;
1473
- costPrice: number;
1474
- isOpen: boolean;
1475
- article: string | null;
1476
- barcode: string | null;
1477
- size: string | null;
1478
- size2: string | null;
1479
- size3: string | null;
1480
- invoicePrice: number | null;
1481
- invoiceNumber: string | null;
1482
- imageUUID: string | null;
1483
- quality: string | null;
1484
- vat: number | null;
1485
- }, {
1486
- name: string;
1487
- uuid: string;
1488
- country: string | null;
1489
- createdAt: Date;
1490
- updatedAt: Date;
1491
- deletedAt: Date | null;
1492
- multiplicity: number;
1493
- categoryUUID: string | null;
1494
- color: string | null;
1495
- vbn: string | null;
1496
- grower: string | null;
1497
- description: string | null;
1498
- balance: number;
1499
- dataSyncId: string | null;
1500
- consignmentUUID: string;
1501
- quantity: number;
1502
- price: number;
1503
- costPrice: number;
1504
- isOpen: boolean;
1505
- article: string | null;
1506
- barcode: string | null;
1507
- size: string | null;
1508
- size2: string | null;
1509
- size3: string | null;
1510
- invoicePrice: number | null;
1511
- invoiceNumber: string | null;
1512
- imageUUID: string | null;
1513
- quality: string | null;
1514
- vat: number | null;
1515
- }>, "many">;
1516
- }, "strip", z.ZodTypeAny, {
1517
- type: DiscountRulesTypeEnum;
1518
- status: DiscountRulesStatusEnum;
1519
- uuid: string;
1520
- createdAt: Date;
1521
- updatedAt: Date;
1522
- companyUUID: string;
1523
- defaultApplyProduct: DiscountRulesApplyTypeEnum;
1524
- defaultApplyClient: DiscountRulesApplyTypeEnum;
1525
- clients: {
1526
- email: string | null;
1527
- phone: string | null;
1528
- name: string;
1529
- code: string | null;
1530
- status: import("../../enum/client-status.enum").ClientStatusEnum;
1531
- uuid: string;
1532
- contactName: string | null;
1533
- address: string | null;
1534
- city: string | null;
1535
- createdAt: Date;
1536
- updatedAt: Date;
1537
- deletedAt: Date | null;
1538
- companyUUID: string;
1539
- isCommon: boolean;
1540
- contractNumber: string | null;
1541
- contractDate: Date | null;
1542
- group: string | null;
1543
- marking: string | null;
1544
- alwaysRequiresDelivery: boolean;
1545
- additionalPhone: string | null;
1546
- comment: string | null;
1547
- balance: number;
1548
- clientType: import("../../enum/client-type.enum").ClientTypeEnum;
1549
- responsibleUserUUID: string | null;
1550
- responsibleSince: Date | null;
1551
- }[];
1552
- products: {
1553
- name: string;
1554
- uuid: string;
1555
- country: string | null;
1556
- createdAt: Date;
1557
- updatedAt: Date;
1558
- deletedAt: Date | null;
1559
- multiplicity: number;
1560
- categoryUUID: string | null;
1561
- color: string | null;
1562
- vbn: string | null;
1563
- grower: string | null;
1564
- description: string | null;
1565
- balance: number;
1566
- dataSyncId: string | null;
1567
- consignmentUUID: string;
1568
- quantity: number;
1569
- price: number;
1570
- costPrice: number;
1571
- isOpen: boolean;
1572
- article: string | null;
1573
- barcode: string | null;
1574
- size: string | null;
1575
- size2: string | null;
1576
- size3: string | null;
1577
- invoicePrice: number | null;
1578
- invoiceNumber: string | null;
1579
- imageUUID: string | null;
1580
- quality: string | null;
1581
- vat: number | null;
1582
- }[];
1583
- }, {
1584
- type: DiscountRulesTypeEnum;
1585
- status: DiscountRulesStatusEnum;
1586
- uuid: string;
1587
- createdAt: Date;
1588
- updatedAt: Date;
1589
- companyUUID: string;
1590
- defaultApplyProduct: DiscountRulesApplyTypeEnum;
1591
- defaultApplyClient: DiscountRulesApplyTypeEnum;
1592
- clients: {
1593
- email: string | null;
1594
- phone: string | null;
1595
- name: string;
1596
- code: string | null;
1597
- status: import("../../enum/client-status.enum").ClientStatusEnum;
1598
- uuid: string;
1599
- contactName: string | null;
1600
- address: string | null;
1601
- city: string | null;
1602
- createdAt: Date;
1603
- updatedAt: Date;
1604
- deletedAt: Date | null;
1605
- companyUUID: string;
1606
- isCommon: boolean;
1607
- contractNumber: string | null;
1608
- contractDate: Date | null;
1609
- group: string | null;
1610
- marking: string | null;
1611
- alwaysRequiresDelivery: boolean;
1612
- additionalPhone: string | null;
1613
- comment: string | null;
1614
- balance: number;
1615
- clientType: import("../../enum/client-type.enum").ClientTypeEnum;
1616
- responsibleUserUUID: string | null;
1617
- responsibleSince: Date | null;
1618
- }[];
1619
- products: {
1620
- name: string;
1621
- uuid: string;
1622
- country: string | null;
1623
- createdAt: Date;
1624
- updatedAt: Date;
1625
- deletedAt: Date | null;
1626
- multiplicity: number;
1627
- categoryUUID: string | null;
1628
- color: string | null;
1629
- vbn: string | null;
1630
- grower: string | null;
1631
- description: string | null;
1632
- balance: number;
1633
- dataSyncId: string | null;
1634
- consignmentUUID: string;
1635
- quantity: number;
1636
- price: number;
1637
- costPrice: number;
1638
- isOpen: boolean;
1639
- article: string | null;
1640
- barcode: string | null;
1641
- size: string | null;
1642
- size2: string | null;
1643
- size3: string | null;
1644
- invoicePrice: number | null;
1645
- invoiceNumber: string | null;
1646
- imageUUID: string | null;
1647
- quality: string | null;
1648
- vat: number | null;
1649
- }[];
1650
- }>>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1651
- type: z.ZodLiteral<DiscountRulesTypeEnum.PERSONAL_DISCOUNT>;
1652
- data: z.ZodObject<{
1653
- discountPercent: z.ZodNumber;
1654
- }, "strip", z.ZodTypeAny, {
1655
- discountPercent: number;
1656
- }, {
1657
- discountPercent: number;
1658
- }>;
1659
- }, "strip", z.ZodTypeAny, {
1660
- type: DiscountRulesTypeEnum.PERSONAL_DISCOUNT;
1661
- data: {
1662
- discountPercent: number;
1663
- };
1664
- }, {
1665
- type: DiscountRulesTypeEnum.PERSONAL_DISCOUNT;
1666
- data: {
1667
- discountPercent: number;
1668
- };
1669
- }>, z.ZodObject<{
1670
- type: z.ZodLiteral<DiscountRulesTypeEnum.MONTHLY_ORDER_SUM>;
1671
- data: z.ZodObject<{
1672
- range: z.ZodEffects<z.ZodArray<z.ZodNumber, "many">, number[], number[]>;
1673
- discountPercent: z.ZodNumber;
1674
- }, "strip", z.ZodTypeAny, {
1675
- discountPercent: number;
1676
- range: number[];
1677
- }, {
1678
- discountPercent: number;
1679
- range: number[];
1680
- }>;
1681
- }, "strip", z.ZodTypeAny, {
1682
- type: DiscountRulesTypeEnum.MONTHLY_ORDER_SUM;
1683
- data: {
1684
- discountPercent: number;
1685
- range: number[];
1686
- };
1687
- }, {
1688
- type: DiscountRulesTypeEnum.MONTHLY_ORDER_SUM;
1689
- data: {
1690
- discountPercent: number;
1691
- range: number[];
1692
- };
1693
- }>, z.ZodObject<{
1694
- type: z.ZodLiteral<DiscountRulesTypeEnum.QUANTITY_BASED>;
1695
- data: z.ZodIntersection<z.ZodObject<{
1696
- multipleQuantity: z.ZodNumber;
1697
- }, "strip", z.ZodTypeAny, {
1698
- multipleQuantity: number;
1699
- }, {
1700
- multipleQuantity: number;
1701
- }>, z.ZodDiscriminatedUnion<"typeDiscount", [z.ZodObject<{
1702
- typeDiscount: z.ZodLiteral<DiscountRulesModeTypeEnum.PERCENT>;
1703
- discountValue: z.ZodNumber;
1704
- }, "strip", z.ZodTypeAny, {
1705
- typeDiscount: DiscountRulesModeTypeEnum.PERCENT;
1706
- discountValue: number;
1707
- }, {
1708
- typeDiscount: DiscountRulesModeTypeEnum.PERCENT;
1709
- discountValue: number;
1710
- }>, z.ZodObject<{
1711
- typeDiscount: z.ZodLiteral<DiscountRulesModeTypeEnum.FIXED>;
1712
- discountValue: z.ZodNumber;
1713
- }, "strip", z.ZodTypeAny, {
1714
- typeDiscount: DiscountRulesModeTypeEnum.FIXED;
1715
- discountValue: number;
1716
- }, {
1717
- typeDiscount: DiscountRulesModeTypeEnum.FIXED;
1718
- discountValue: number;
1719
- }>]>>;
1720
- }, "strip", z.ZodTypeAny, {
1721
- type: DiscountRulesTypeEnum.QUANTITY_BASED;
1722
- data: ({
1723
- multipleQuantity: number;
1724
- } & {
1725
- typeDiscount: DiscountRulesModeTypeEnum.PERCENT;
1726
- discountValue: number;
1727
- }) | ({
1728
- multipleQuantity: number;
1729
- } & {
1730
- typeDiscount: DiscountRulesModeTypeEnum.FIXED;
1731
- discountValue: number;
1732
- });
1733
- }, {
1734
- type: DiscountRulesTypeEnum.QUANTITY_BASED;
1735
- data: ({
1736
- multipleQuantity: number;
1737
- } & {
1738
- typeDiscount: DiscountRulesModeTypeEnum.PERCENT;
1739
- discountValue: number;
1740
- }) | ({
1741
- multipleQuantity: number;
1742
- } & {
1743
- typeDiscount: DiscountRulesModeTypeEnum.FIXED;
1744
- discountValue: number;
1745
- });
1746
- }>, z.ZodObject<{
1747
- type: z.ZodLiteral<DiscountRulesTypeEnum.ITEM_DISCOUNT>;
1748
- data: z.ZodIntersection<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, z.ZodDiscriminatedUnion<"typeDiscount", [z.ZodObject<{
1749
- typeDiscount: z.ZodLiteral<DiscountRulesModeTypeEnum.PERCENT>;
1750
- discountValue: z.ZodNumber;
1751
- }, "strip", z.ZodTypeAny, {
1752
- typeDiscount: DiscountRulesModeTypeEnum.PERCENT;
1753
- discountValue: number;
1754
- }, {
1755
- typeDiscount: DiscountRulesModeTypeEnum.PERCENT;
1756
- discountValue: number;
1757
- }>, z.ZodObject<{
1758
- typeDiscount: z.ZodLiteral<DiscountRulesModeTypeEnum.FIXED>;
1759
- discountValue: z.ZodNumber;
1760
- }, "strip", z.ZodTypeAny, {
1761
- typeDiscount: DiscountRulesModeTypeEnum.FIXED;
1762
- discountValue: number;
1763
- }, {
1764
- typeDiscount: DiscountRulesModeTypeEnum.FIXED;
1765
- discountValue: number;
1766
- }>]>>;
1767
- }, "strip", z.ZodTypeAny, {
1768
- type: DiscountRulesTypeEnum.ITEM_DISCOUNT;
1769
- data: ({} & {
1770
- typeDiscount: DiscountRulesModeTypeEnum.PERCENT;
1771
- discountValue: number;
1772
- }) | ({} & {
1773
- typeDiscount: DiscountRulesModeTypeEnum.FIXED;
1774
- discountValue: number;
1775
- });
1776
- }, {
1777
- type: DiscountRulesTypeEnum.ITEM_DISCOUNT;
1778
- data: ({} & {
1779
- typeDiscount: DiscountRulesModeTypeEnum.PERCENT;
1780
- discountValue: number;
1781
- }) | ({} & {
1782
- typeDiscount: DiscountRulesModeTypeEnum.FIXED;
1783
- discountValue: number;
1784
- });
1785
- }>, z.ZodObject<{
1786
- type: z.ZodLiteral<DiscountRulesTypeEnum.DISCOUNT_PROHIBITED>;
1787
- data: z.ZodDefault<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
1788
- }, "strip", z.ZodTypeAny, {
1789
- type: DiscountRulesTypeEnum.DISCOUNT_PROHIBITED;
1790
- data: {};
1791
- }, {
1792
- type: DiscountRulesTypeEnum.DISCOUNT_PROHIBITED;
1793
- data?: {} | undefined;
1794
- }>]>>;