@floristcloud/api-lib 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/commands/action-log/create-action-log.command.d.ts +1439 -0
- package/build/commands/action-log/get-action-log-list-for-client.query.d.ts +1888 -0
- package/build/commands/action-log/get-action-log-list.query.d.ts +1893 -0
- package/build/commands/action-log/index.d.ts +3 -0
- package/build/commands/auth/index.d.ts +7 -0
- package/build/commands/auth/login-user.command.d.ts +51 -0
- package/build/commands/auth/register-user.command.d.ts +41 -0
- package/build/commands/auth/reset-password-by-admin.command.d.ts +19 -0
- package/build/commands/auth/reset-password-by-security-code.command.d.ts +77 -0
- package/build/commands/auth/reset-password-by-token.command.d.ts +97 -0
- package/build/commands/auth/reset-password-by-user.command.d.ts +19 -0
- package/build/commands/auth/restore-password-by-security-code.command.d.ts +39 -0
- package/build/commands/branch/create-branch.command.d.ts +100 -0
- package/build/commands/branch/delete-branch.command.d.ts +32 -0
- package/build/commands/branch/get-branch-list-all-by-client-uuid.query.d.ts +115 -0
- package/build/commands/branch/get-branch-list.query.d.ts +124 -0
- package/build/commands/branch/get-branch.query.d.ts +76 -0
- package/build/commands/branch/index.d.ts +6 -0
- package/build/commands/branch/update-branch.command.d.ts +100 -0
- package/build/commands/category/create-category.command.d.ts +84 -0
- package/build/commands/category/delete-category.command.d.ts +32 -0
- package/build/commands/category/get-category-by-uuid.query.d.ts +126 -0
- package/build/commands/category/get-category-list.query.d.ts +194 -0
- package/build/commands/category/index.d.ts +5 -0
- package/build/commands/category/update-category-command.d.ts +88 -0
- package/build/commands/category/webshop/get-category-list-for-client.query.d.ts +118 -0
- package/build/commands/category-alias/create-category-alias.command.d.ts +62 -0
- package/build/commands/category-alias/delete-category-alias.command.d.ts +32 -0
- package/build/commands/category-alias/get-category-alias-by-uuid.query.d.ts +62 -0
- package/build/commands/category-alias/get-category-alias-list-by-category-uuid.query.d.ts +58 -0
- package/build/commands/category-alias/get-category-alias-list.query.d.ts +64 -0
- package/build/commands/category-alias/index.d.ts +1 -0
- package/build/commands/category-alias/update-category-alias.command.d.ts +65 -0
- package/build/commands/category-template/create-category-template.command.d.ts +116 -0
- package/build/commands/category-template/get-category-template-by-uuid.query.d.ts +80 -0
- package/build/commands/category-template/get-category-template-list.query.d.ts +80 -0
- package/build/commands/category-template/index.d.ts +4 -0
- package/build/commands/category-template/update-category-template.command.d.ts +116 -0
- package/build/commands/client/attach-user-to-client.command.d.ts +152 -0
- package/build/commands/client/create-client.command.d.ts +202 -0
- package/build/commands/client/delete-client.command.d.ts +32 -0
- package/build/commands/client/detach-user-from-client.command.d.ts +146 -0
- package/build/commands/client/get-client-calculate.query.d.ts +39 -0
- package/build/commands/client/get-client-filters-values.query.d.ts +31 -0
- package/build/commands/client/get-client-list.query.d.ts +1257 -0
- package/build/commands/client/get-client.query.d.ts +938 -0
- package/build/commands/client/import-client.command.d.ts +75 -0
- package/build/commands/client/index.d.ts +17 -0
- package/build/commands/client/marking/create-client-marking.command.d.ts +37 -0
- package/build/commands/client/marking/delete-client-marking.command.d.ts +31 -0
- package/build/commands/client/marking/get-client-marking-by-client-list.command.d.ts +22 -0
- package/build/commands/client/marking/update-client-marking.command.d.ts +37 -0
- package/build/commands/client/profile/create-client-individual-profile.command.d.ts +71 -0
- package/build/commands/client/profile/create-client-legal-profile.command.d.ts +162 -0
- package/build/commands/client/profile/delete-client-individual-profile.command.d.ts +26 -0
- package/build/commands/client/profile/delete-client-legal-profile.command.d.ts +26 -0
- package/build/commands/client/profile/get-client-individual-profile.query.d.ts +62 -0
- package/build/commands/client/profile/index.d.ts +7 -0
- package/build/commands/client/profile/update-client-individual-profile.command.d.ts +71 -0
- package/build/commands/client/profile/update-client-legal-profile.command.d.ts +162 -0
- package/build/commands/client/set-balance-calculate-client.command.d.ts +144 -0
- package/build/commands/client/update-client.command.d.ts +208 -0
- package/build/commands/client/webshop/register-client-webshop.command.d.ts +168 -0
- package/build/commands/client/webshop/update-client-for-client.command.d.ts +164 -0
- package/build/commands/company/createCompany.command.d.ts +341 -0
- package/build/commands/company/createCompanyWithUser.command.d.ts +105 -0
- package/build/commands/company/deleteCompany.command.d.ts +32 -0
- package/build/commands/company/getCompany.query.d.ts +62 -0
- package/build/commands/company/getCompanyList.query.d.ts +96 -0
- package/build/commands/company/index.d.ts +6 -0
- package/build/commands/company/updateCompany.command.d.ts +62 -0
- package/build/commands/consignment/create-consignment.command.d.ts +119 -0
- package/build/commands/consignment/delete-consignment.command.d.ts +32 -0
- package/build/commands/consignment/export-consignment.command.d.ts +32 -0
- package/build/commands/consignment/get-access-clients-consignment.query.d.ts +144 -0
- package/build/commands/consignment/get-client-uuids-consignment.query.d.ts +24 -0
- package/build/commands/consignment/get-consignment-filters-values.query.d.ts +26 -0
- package/build/commands/consignment/get-consignment-list.query.d.ts +242 -0
- package/build/commands/consignment/get-consignment.query.d.ts +159 -0
- package/build/commands/consignment/import-consignment.command.d.ts +159 -0
- package/build/commands/consignment/import-packing-consignment.command.d.ts +123 -0
- package/build/commands/consignment/index.d.ts +13 -0
- package/build/commands/consignment/update-consignment.command.d.ts +119 -0
- package/build/commands/consignment/upsert-access-clients-consignment.command.d.ts +300 -0
- package/build/commands/consignment/validate-consignment-distribution.query.d.ts +1997 -0
- package/build/commands/consignment-import-schema/create-consignment-import-scheme.command.d.ts +60 -0
- package/build/commands/consignment-import-schema/get-all-consignment-import-schema.query.d.ts +88 -0
- package/build/commands/consignment-import-schema/get-cosignment-import-schema.query.d.ts +88 -0
- package/build/commands/consignment-import-schema/index.d.ts +2 -0
- package/build/commands/consignment-import-schema/update-consignment-import-schema.command.d.ts +47 -0
- package/build/commands/delivery-route/attach-order-list-to-delivery-route.command.d.ts +32 -0
- package/build/commands/delivery-route/create-delivery-route.command.d.ts +84 -0
- package/build/commands/delivery-route/delete-delivery-route.command.d.ts +24 -0
- package/build/commands/delivery-route/detach-order-list-to-delivery-route.command.d.ts +32 -0
- package/build/commands/delivery-route/get-delivery-route-list.query.d.ts +280 -0
- package/build/commands/delivery-route/get-delivery-route.query.d.ts +190 -0
- package/build/commands/delivery-route/index.d.ts +7 -0
- package/build/commands/delivery-route/update-delivery-route.command.d.ts +87 -0
- package/build/commands/discount-rules/create-discount-rules.command.d.ts +649 -0
- package/build/commands/discount-rules/delete-discount-rules.command.d.ts +24 -0
- package/build/commands/discount-rules/get-discount-rules-all.query.d.ts +286 -0
- package/build/commands/discount-rules/get-discount-rules-extended.query.d.ts +1213 -0
- package/build/commands/discount-rules/get-discount-rules-list.query.d.ts +391 -0
- package/build/commands/discount-rules/get-discount-rules.query.d.ts +347 -0
- package/build/commands/discount-rules/index.d.ts +9 -0
- package/build/commands/discount-rules/split-quantity-discount-rules-for-client.query.d.ts +71 -0
- package/build/commands/discount-rules/split-quantity-discount-rules.query.d.ts +73 -0
- package/build/commands/discount-rules/update-discount-rules.command.d.ts +662 -0
- package/build/commands/distribution/create-distribution.command.d.ts +72 -0
- package/build/commands/distribution/index.d.ts +3 -0
- package/build/commands/distribution/update-is-packed-distribution.command.d.ts +72 -0
- package/build/commands/distribution/validate-distribution-by-product.query.d.ts +36 -0
- package/build/commands/domain/create-domain.command.d.ts +60 -0
- package/build/commands/domain/delete-domain.command.d.ts +24 -0
- package/build/commands/domain/get-domain-by-uuid.query.d.ts +49 -0
- package/build/commands/domain/get-domain-list.query.d.ts +89 -0
- package/build/commands/domain/index.d.ts +5 -0
- package/build/commands/domain/update-domain.command.d.ts +57 -0
- package/build/commands/employee-schedule/create-employee-schedule.command.d.ts +92 -0
- package/build/commands/employee-schedule/delete-employee-schedule.command.d.ts +24 -0
- package/build/commands/employee-schedule/get-employee-schedule-extended-list.query.d.ts +237 -0
- package/build/commands/employee-schedule/get-employee-schedule-list.query.d.ts +133 -0
- package/build/commands/employee-schedule/index.d.ts +5 -0
- package/build/commands/employee-schedule/update-employee-schedule.command.d.ts +92 -0
- package/build/commands/file/deleteFile.command.d.ts +32 -0
- package/build/commands/file/deleteFile.command.js +1 -1
- package/build/commands/file/index.d.ts +2 -0
- package/build/commands/file/uploadFile.command.d.ts +11 -0
- package/build/commands/index.d.ts +44 -0
- package/build/commands/message/get-clients-messages-context-with-unread.query.d.ts +116 -0
- package/build/commands/message/get-context-unread-count.query.d.ts +39 -0
- package/build/commands/message/get-contexts-with-unread.query.d.ts +134 -0
- package/build/commands/message/index.d.ts +6 -0
- package/build/commands/message/list-context-messages.query.d.ts +152 -0
- package/build/commands/message/mark-context-read.command.d.ts +39 -0
- package/build/commands/message/send-context-message.command.d.ts +95 -0
- package/build/commands/money-account/create-money-account.command.d.ts +76 -0
- package/build/commands/money-account/delete-money-account.command.d.ts +24 -0
- package/build/commands/money-account/get-money-account-by-criteria.query.d.ts +61 -0
- package/build/commands/money-account/get-money-account-list.query.d.ts +103 -0
- package/build/commands/money-account/get-money-account.query.d.ts +59 -0
- package/build/commands/money-account/index.d.ts +6 -0
- package/build/commands/money-account/update-money-account.command.d.ts +78 -0
- package/build/commands/order/apply-order-discount.command.d.ts +32 -0
- package/build/commands/order/copy-order.command.d.ts +159 -0
- package/build/commands/order/create-order.command.d.ts +228 -0
- package/build/commands/order/delete-order.command.d.ts +24 -0
- package/build/commands/order/export-order-invoice.command.d.ts +14 -0
- package/build/commands/order/get-order-list.query.d.ts +864 -0
- package/build/commands/order/get-order.query.d.ts +578 -0
- package/build/commands/order/group/deletet-group-order.command.d.ts +32 -0
- package/build/commands/order/group/split-group-order.command.d.ts +167 -0
- package/build/commands/order/group/update-group-order-status.command.d.ts +36 -0
- package/build/commands/order/group/update-group-order-tag.command.d.ts +35 -0
- package/build/commands/order/group/update-group-order-type.command.d.ts +36 -0
- package/build/commands/order/index.d.ts +20 -0
- package/build/commands/order/send-order-invoice.command.d.ts +33 -0
- package/build/commands/order/update-order.command.d.ts +198 -0
- package/build/commands/order/webshop/create-cart.command.d.ts +153 -0
- package/build/commands/order/webshop/get-order-for-client.query.d.ts +498 -0
- package/build/commands/order/webshop/get-order-list-for-client.query.d.ts +705 -0
- package/build/commands/order/webshop/get-order-sales-by-month.query.d.ts +22 -0
- package/build/commands/order/webshop/update-cart.command.d.ts +185 -0
- package/build/commands/order/zeroing-receipt-delivery-order.command.d.ts +24 -0
- package/build/commands/order-delivery/create-order-delivery.command.d.ts +74 -0
- package/build/commands/order-delivery/delete-order-delivery.command.d.ts +26 -0
- package/build/commands/order-delivery/index.d.ts +3 -0
- package/build/commands/order-delivery/update-order-delivery.command.d.ts +78 -0
- package/build/commands/order-product/create-order-product.command.d.ts +347 -0
- package/build/commands/order-product/delete-order-product.command.d.ts +26 -0
- package/build/commands/order-product/get-order-product-list-all.query.d.ts +1378 -0
- package/build/commands/order-product/get-order-product-list-for-distribute.query.d.ts +1162 -0
- package/build/commands/order-product/get-order-product-list.query.d.ts +1390 -0
- package/build/commands/order-product/get-order-product.query.d.ts +1077 -0
- package/build/commands/order-product/group/delete-group-order-product.command.d.ts +32 -0
- package/build/commands/order-product/group/update-group-order-product-order.command.d.ts +56 -0
- package/build/commands/order-product/group/update-group-order-product-tag.command.d.ts +35 -0
- package/build/commands/order-product/group/verify-group-order-product.command.d.ts +35 -0
- package/build/commands/order-product/group/zeroing-receipt-order-product.command.d.ts +32 -0
- package/build/commands/order-product/index.d.ts +15 -0
- package/build/commands/order-product/update-order-product.command.d.ts +350 -0
- package/build/commands/order-product/verify-order-product.command.d.ts +326 -0
- package/build/commands/order-product/webshop/create-order-product-for-client.command.d.ts +323 -0
- package/build/commands/order-product/webshop/get-order-product-for-client-list.query.d.ts +670 -0
- package/build/commands/order-product/webshop/update-order-product-for-client.command.d.ts +326 -0
- package/build/commands/package/create-package.command.d.ts +96 -0
- package/build/commands/package/delete-package.command.d.ts +26 -0
- package/build/commands/package/get-package-by-uuid.query.d.ts +71 -0
- package/build/commands/package/get-package-filters-values.query.d.ts +99 -0
- package/build/commands/package/get-package-list.query.d.ts +753 -0
- package/build/commands/package/index.d.ts +7 -0
- package/build/commands/package/reorder-packages.command.d.ts +47 -0
- package/build/commands/package/update-package.command.d.ts +91 -0
- package/build/commands/package/validate-product-package.query.d.ts +36 -0
- package/build/commands/pre-order/create-order-from-pre-order.command.d.ts +240 -0
- package/build/commands/pre-order/create-pre-order.command.d.ts +79 -0
- package/build/commands/pre-order/delete-pre-order.command.d.ts +24 -0
- package/build/commands/pre-order/get-pre-order-by-pre-order-collection-uuid.command.d.ts +56 -0
- package/build/commands/pre-order/get-pre-order-list.query.d.ts +587 -0
- package/build/commands/pre-order/get-pre-order.query.d.ts +415 -0
- package/build/commands/pre-order/get-standing-order-import-template.command.d.ts +21 -0
- package/build/commands/pre-order/group/analyze-copy-pre-orders.command.d.ts +4582 -0
- package/build/commands/pre-order/group/analyze-create-orders-from-pre-orders.command.d.ts +3665 -0
- package/build/commands/pre-order/group/analyze-create-pre-orders-from-standing-orders.command.d.ts +2784 -0
- package/build/commands/pre-order/group/group-copy-pre-orders-to-collection.command.d.ts +221 -0
- package/build/commands/pre-order/group/group-create-orders-from-pre-orders.command.d.ts +415 -0
- package/build/commands/pre-order/group/group-create-pre-orders-from-standing-orders.command.d.ts +230 -0
- package/build/commands/pre-order/group/group-delete-pre-order.command.d.ts +32 -0
- package/build/commands/pre-order/group/group-update-pre-order.command.d.ts +65 -0
- package/build/commands/pre-order/group/index.d.ts +9 -0
- package/build/commands/pre-order/import-standing-order.command.d.ts +132 -0
- package/build/commands/pre-order/index.d.ts +12 -0
- package/build/commands/pre-order/update-pre-order.command.d.ts +79 -0
- package/build/commands/pre-order/webshop/checkout-pre-order-webshop.command.d.ts +61 -0
- package/build/commands/pre-order/webshop/create-pre-order-webshop.command.d.ts +73 -0
- package/build/commands/pre-order/webshop/delete-pre-order-webshop.command.d.ts +24 -0
- package/build/commands/pre-order/webshop/get-pre-order-list-webshop.command.d.ts +569 -0
- package/build/commands/pre-order/webshop/index.d.ts +5 -0
- package/build/commands/pre-order/webshop/update-pre-order-webshop.command.d.ts +70 -0
- package/build/commands/pre-order-collection/copy-pre-order-collection.command.d.ts +59 -0
- package/build/commands/pre-order-collection/create-pre-order-collection.command.d.ts +85 -0
- package/build/commands/pre-order-collection/delete-pre-order-collection.command.d.ts +24 -0
- package/build/commands/pre-order-collection/get-pre-order-collection-all.query.d.ts +59 -0
- package/build/commands/pre-order-collection/get-pre-order-collection-list.query.d.ts +168 -0
- package/build/commands/pre-order-collection/get-pre-order-collection.query.d.ts +99 -0
- package/build/commands/pre-order-collection/index.d.ts +8 -0
- package/build/commands/pre-order-collection/match-images-for-collection.command.d.ts +40 -0
- package/build/commands/pre-order-collection/update-pre-order-collection.command.d.ts +85 -0
- package/build/commands/pre-order-collection/webshop/get-pre-order-collection-list-with-categories.query.d.ts +85 -0
- package/build/commands/pre-order-collection-item/create-group-pre-order-collection-item.command.d.ts +101 -0
- package/build/commands/pre-order-collection-item/create-pre-order-collection-item.command.d.ts +236 -0
- package/build/commands/pre-order-collection-item/delete-group-pre-order-collection-item.command.d.ts +37 -0
- package/build/commands/pre-order-collection-item/delete-pre-order-collection-item.command.d.ts +24 -0
- package/build/commands/pre-order-collection-item/execute-pre-order-collection-item-update.command.d.ts +226 -0
- package/build/commands/pre-order-collection-item/export-pre-order-collection-item-with-clients-horizontal.query.d.ts +26 -0
- package/build/commands/pre-order-collection-item/export-pre-order-collection-item-with-clients-vertical.query.d.ts +33 -0
- package/build/commands/pre-order-collection-item/get-active-pre-order-collection-item-list.query.d.ts +693 -0
- package/build/commands/pre-order-collection-item/get-pre-order-collection-item-extended-with-clients-pre-order-product-list.query.d.ts +1031 -0
- package/build/commands/pre-order-collection-item/get-pre-order-collection-item-list-filter-values-for-client.query.d.ts +85 -0
- package/build/commands/pre-order-collection-item/get-pre-order-collection-item-list-filter-values.query.d.ts +77 -0
- package/build/commands/pre-order-collection-item/get-pre-order-collection-item-list-for-client.query.d.ts +760 -0
- package/build/commands/pre-order-collection-item/get-pre-order-collection-item-list.query.d.ts +708 -0
- package/build/commands/pre-order-collection-item/get-pre-order-collection-item.query.d.ts +504 -0
- package/build/commands/pre-order-collection-item/index.d.ts +23 -0
- package/build/commands/pre-order-collection-item/multiplicity-option/create-pre-order-collection-item-multiplicity-option.command.d.ts +61 -0
- package/build/commands/pre-order-collection-item/multiplicity-option/delete-pre-order-collection-item-multiplicity-option.command.d.ts +26 -0
- package/build/commands/pre-order-collection-item/multiplicity-option/get-pre-order-collection-item-multiplicity-option-titles.query.d.ts +16 -0
- package/build/commands/pre-order-collection-item/multiplicity-option/get-pre-order-collection-item-multiplicity-options.query.d.ts +68 -0
- package/build/commands/pre-order-collection-item/multiplicity-option/reorder-pre-order-collection-item-multiplicity-options.command.d.ts +47 -0
- package/build/commands/pre-order-collection-item/multiplicity-option/update-pre-order-collection-item-multiplicity-option.command.d.ts +61 -0
- package/build/commands/pre-order-collection-item/update-group-pre-order-collection-item.command.d.ts +165 -0
- package/build/commands/pre-order-collection-item/update-pre-order-collection-item-product-maching.command.d.ts +32 -0
- package/build/commands/pre-order-collection-item/update-pre-order-collection-item.command.d.ts +239 -0
- package/build/commands/pre-order-product/create-manually-pre-order-product-for-standing-order.command.d.ts +234 -0
- package/build/commands/pre-order-product/create-manually-pre-order-product.command.d.ts +262 -0
- package/build/commands/pre-order-product/create-pre-order-product-webshop.command.d.ts +214 -0
- package/build/commands/pre-order-product/create-pre-order-product.command.d.ts +242 -0
- package/build/commands/pre-order-product/delete-many-pre-order-product-by-pre-order-collection-item.command.d.ts +24 -0
- package/build/commands/pre-order-product/delete-pre-order-product-webshop.command.d.ts +24 -0
- package/build/commands/pre-order-product/delete-pre-order-product.command.d.ts +24 -0
- package/build/commands/pre-order-product/get-pre-order-product-extended-list.query.d.ts +1155 -0
- package/build/commands/pre-order-product/get-pre-order-product-list.query.d.ts +234 -0
- package/build/commands/pre-order-product/get-pre-order-product.query.d.ts +891 -0
- package/build/commands/pre-order-product/get-pre-order-products-by-pre-order-list.command.d.ts +899 -0
- package/build/commands/pre-order-product/get-pre-order-products-by-pre-order.command.d.ts +891 -0
- package/build/commands/pre-order-product/index.d.ts +15 -0
- package/build/commands/pre-order-product/purchase-many-pre-order-product-by-pre-order-collection-item.command.d.ts +39 -0
- package/build/commands/pre-order-product/update-pre-order-product-webshop.command.d.ts +179 -0
- package/build/commands/pre-order-product/update-pre-order-product.command.d.ts +242 -0
- package/build/commands/product/create-product.command.d.ts +630 -0
- package/build/commands/product/delete-product.command.d.ts +26 -0
- package/build/commands/product/generate-product-qr.query.d.ts +89 -0
- package/build/commands/product/get-all-product-by-consignment.query.d.ts +445 -0
- package/build/commands/product/get-product-list-filters-values.query.d.ts +102 -0
- package/build/commands/product/get-product-list.query.d.ts +784 -0
- package/build/commands/product/get-product-quantity-calculate.query.d.ts +57 -0
- package/build/commands/product/get-product.query.d.ts +555 -0
- package/build/commands/product/get-products-unique.query.d.ts +614 -0
- package/build/commands/product/group/delete-group-product.command.d.ts +58 -0
- package/build/commands/product/group/index.d.ts +7 -0
- package/build/commands/product/group/update-group-product-category.command.d.ts +35 -0
- package/build/commands/product/group/update-group-product-consignment.command.d.ts +35 -0
- package/build/commands/product/group/update-group-product-is-open-by-consignment.command.d.ts +32 -0
- package/build/commands/product/group/update-group-product-is-open.command.d.ts +35 -0
- package/build/commands/product/group/update-group-product-prices.command.d.ts +52 -0
- package/build/commands/product/group/update-group-product-update-batch.command.d.ts +141 -0
- package/build/commands/product/index.d.ts +19 -0
- package/build/commands/product/multiplicity-option/create-product-multiplicity-option.command.d.ts +61 -0
- package/build/commands/product/multiplicity-option/delete-product-multiplicity-option.command.d.ts +26 -0
- package/build/commands/product/multiplicity-option/get-product-multiplicity-option-titles.query.d.ts +16 -0
- package/build/commands/product/multiplicity-option/get-product-multiplicity-options.query.d.ts +68 -0
- package/build/commands/product/multiplicity-option/reorder-product-multiplicity-options.command.d.ts +47 -0
- package/build/commands/product/multiplicity-option/update-product-multiplicity-option.command.d.ts +61 -0
- package/build/commands/product/update-product.command.d.ts +630 -0
- package/build/commands/product/webshop/get-client-product-list-filters-values.query.d.ts +70 -0
- package/build/commands/product/webshop/get-product-for-client.query.d.ts +336 -0
- package/build/commands/product/webshop/get-product-list-for-client.query.d.ts +484 -0
- package/build/commands/product-configuration/create-product-configuration.command.d.ts +86 -0
- package/build/commands/product-configuration/delete-product-configuration.command.d.ts +26 -0
- package/build/commands/product-configuration/get-product-configuration-list.query.d.ts +119 -0
- package/build/commands/product-configuration/get-product-configuration.query.d.ts +61 -0
- package/build/commands/product-configuration/index.d.ts +5 -0
- package/build/commands/product-configuration/update-product-configuration.command.d.ts +82 -0
- package/build/commands/product-image/alias/create-product-image-alias.command.d.ts +37 -0
- package/build/commands/product-image/alias/delete-product-image-alias.command.d.ts +31 -0
- package/build/commands/product-image/alias/update-product-image-alias.command.d.ts +37 -0
- package/build/commands/product-image/create-product-image.command.d.ts +113 -0
- package/build/commands/product-image/delete-product-image.command.d.ts +84 -0
- package/build/commands/product-image/get-product-image-filter-values.query.d.ts +77 -0
- package/build/commands/product-image/get-product-image-list.query.d.ts +377 -0
- package/build/commands/product-image/get-product-image.query.d.ts +255 -0
- package/build/commands/product-image/group/delete-group-product-image.command.d.ts +32 -0
- package/build/commands/product-image/group/update-group-product-image.command.d.ts +80 -0
- package/build/commands/product-image/index.d.ts +12 -0
- package/build/commands/product-image/sync-product-image.command.d.ts +24 -0
- package/build/commands/product-image/update-product-image.command.d.ts +113 -0
- package/build/commands/product-image-template/create-product-image-template.command.d.ts +90 -0
- package/build/commands/product-image-template/delete-group-product-image-template.command.d.ts +32 -0
- package/build/commands/product-image-template/delete-product-image-template.command.d.ts +24 -0
- package/build/commands/product-image-template/get-product-image-template-list.query.d.ts +116 -0
- package/build/commands/product-image-template/get-product-image-template.query.d.ts +64 -0
- package/build/commands/product-image-template/index.d.ts +7 -0
- package/build/commands/product-image-template/start-parsing-product-image-template.command.d.ts +24 -0
- package/build/commands/product-image-template/update-product-image-template.command.d.ts +87 -0
- package/build/commands/product-in-package/create-product-in-package.command.d.ts +94 -0
- package/build/commands/product-in-package/delete-from-orders-by-package.command.d.ts +26 -0
- package/build/commands/product-in-package/delete-product-in-package.command.d.ts +24 -0
- package/build/commands/product-in-package/get-product-in-package-by-uuid.query.d.ts +69 -0
- package/build/commands/product-in-package/index.d.ts +5 -0
- package/build/commands/product-in-package/update-product-in-package.command.d.ts +92 -0
- package/build/commands/report/export-client-statement.query.d.ts +68 -0
- package/build/commands/report/export-inventory-movement.query.d.ts +124 -0
- package/build/commands/report/export-inventory-stock.query.d.ts +82 -0
- package/build/commands/report/export-inventory-turnover.query.d.ts +148 -0
- package/build/commands/report/export-sales-by-client.query.d.ts +83 -0
- package/build/commands/report/export-sales-revenue.query.d.ts +64 -0
- package/build/commands/report/get-report-by-client-weeks.query.d.ts +81 -0
- package/build/commands/report/get-report-for-period.query.d.ts +106 -0
- package/build/commands/report/get-report-group-by-client.query.d.ts +146 -0
- package/build/commands/report/get-report-group-by-position.query.d.ts +266 -0
- package/build/commands/report/index.d.ts +10 -0
- package/build/commands/settings/get-settings-for-admin.query.d.ts +352 -0
- package/build/commands/settings/get-settings.query.d.ts +312 -0
- package/build/commands/settings/index.d.ts +3 -0
- package/build/commands/settings/update-settings.command.d.ts +486 -0
- package/build/commands/transaction/create-transaction.command.d.ts +100 -0
- package/build/commands/transaction/delete-transaction.command.d.ts +26 -0
- package/build/commands/transaction/export-transactions.command.d.ts +62 -0
- package/build/commands/transaction/generate-check-transaction.command.d.ts +35 -0
- package/build/commands/transaction/generate-pre-payment-check.command.d.ts +35 -0
- package/build/commands/transaction/get-sum-transaction-by-money-account.query.d.ts +46 -0
- package/build/commands/transaction/get-transaction-list.query.d.ts +763 -0
- package/build/commands/transaction/get-transaction-summary.query.d.ts +77 -0
- package/build/commands/transaction/get-transaction.query.d.ts +539 -0
- package/build/commands/transaction/index.d.ts +11 -0
- package/build/commands/transaction/update-transaction.command.d.ts +85 -0
- package/build/commands/transaction/webshop/get-transaction-list-for-client.query.d.ts +742 -0
- package/build/commands/type/create-type.command.d.ts +60 -0
- package/build/commands/type/delete-type.command.d.ts +32 -0
- package/build/commands/type/get-type-by-criteria.query.d.ts +51 -0
- package/build/commands/type/get-type-by-uuid.query.d.ts +57 -0
- package/build/commands/type/get-type-list.query.d.ts +102 -0
- package/build/commands/type/index.d.ts +8 -0
- package/build/commands/type/update-type-rank-many.command.d.ts +72 -0
- package/build/commands/type/update-type-rank.command.d.ts +39 -0
- package/build/commands/type/update-type.command.d.ts +75 -0
- package/build/commands/user/attachUserToCompany.command.d.ts +84 -0
- package/build/commands/user/create-user-global.command.d.ts +101 -0
- package/build/commands/user/createUser.command.d.ts +107 -0
- package/build/commands/user/createUserByClientId.command.d.ts +138 -0
- package/build/commands/user/createUserForCompany.command.d.ts +105 -0
- package/build/commands/user/generate-and-send-password-by-admin.command.d.ts +20 -0
- package/build/commands/user/get-user-list.query.d.ts +149 -0
- package/build/commands/user/getUser.command.d.ts +107 -0
- package/build/commands/user/index.d.ts +10 -0
- package/build/commands/user/update-password-by-user.command.d.ts +19 -0
- package/build/commands/user/update-user.command.d.ts +98 -0
- package/build/commands/user/updateRole.command.d.ts +106 -0
- package/build/commands/work-session/close-work-session-for-employee.command.d.ts +69 -0
- package/build/commands/work-session/create-many-work-session.command.d.ts +108 -0
- package/build/commands/work-session/create-work-session-for-employee.command.d.ts +86 -0
- package/build/commands/work-session/delete-work-session.command.d.ts +24 -0
- package/build/commands/work-session/get-work-session-extended-list.query.d.ts +243 -0
- package/build/commands/work-session/index.d.ts +6 -0
- package/build/commands/work-session/update-work-session.command.d.ts +86 -0
- package/build/commands/wrire-off-archive/create-wrire-off-archive.command.d.ts +32 -0
- package/build/commands/wrire-off-archive/index.d.ts +2 -0
- package/build/commands/wrire-off-archive/info-wrire-off-archive.command.d.ts +32 -0
- package/build/commands/write-off/create-write-off-from-order.command.d.ts +1679 -0
- package/build/commands/write-off/create-write-off-from-pending.command.d.ts +1674 -0
- package/build/commands/write-off/create-write-off-images.command.d.ts +52 -0
- package/build/commands/write-off/create-write-off-images.command.js +1 -1
- package/build/commands/write-off/create-write-off.command.d.ts +1676 -0
- package/build/commands/write-off/delete-write-off-image.command.d.ts +26 -0
- package/build/commands/write-off/delete-write-off.command.d.ts +26 -0
- package/build/commands/write-off/get-write-off-list.query.d.ts +2144 -0
- package/build/commands/write-off/get-write-off-reason-list.query.d.ts +22 -0
- package/build/commands/write-off/get-write-off-sum-by-order.query.d.ts +16 -0
- package/build/commands/write-off/get-write-off.query.d.ts +1659 -0
- package/build/commands/write-off/index.d.ts +13 -0
- package/build/commands/write-off/update-write-off-price.command.d.ts +1670 -0
- package/build/commands/write-off/update-write-off-status.command.d.ts +1671 -0
- package/build/commands/write-off/webshop/create-write-off-from-order-for-client.command.d.ts +1676 -0
- package/build/commands/write-off/webshop/get-write-off-list-by-order.query.d.ts +1661 -0
- package/build/commands/write-off/webshop/index.d.ts +2 -0
- package/build/constant/error-i18n-key.d.ts +5 -0
- package/build/constant/error.d.ts +2047 -0
- package/build/constant/index.d.ts +2 -0
- package/build/constant/verbose.d.ts +42 -0
- package/build/enum/action-log-type.enum.d.ts +14 -0
- package/build/enum/category-status.enum.d.ts +4 -0
- package/build/enum/client-import-entity-property.enum.d.ts +30 -0
- package/build/enum/client-legal-type.enum.d.ts +4 -0
- package/build/enum/client-statement-type.enum.d.ts +5 -0
- package/build/enum/client-status.enum.d.ts +5 -0
- package/build/enum/client-type.enum.d.ts +4 -0
- package/build/enum/companyStatus.enum.d.ts +5 -0
- package/build/enum/consignment-access-client-status.enum.d.ts +4 -0
- package/build/enum/consignment-distribution-validation-status.enum.d.ts +4 -0
- package/build/enum/consignment-distribution-validation-type.enum.d.ts +4 -0
- package/build/enum/consignment-import-errors.enum.d.ts +5 -0
- package/build/enum/consignment-import-schema-relation-entity-property.enum.d.ts +30 -0
- package/build/enum/consignment-status.enum.d.ts +5 -0
- package/build/enum/consignment-write-off-archives-status.enum.d.ts +5 -0
- package/build/enum/context-message-context-type.enum.d.ts +5 -0
- package/build/enum/country-code.enum.d.ts +253 -0
- package/build/enum/delivery-route-status.enum.d.ts +5 -0
- package/build/enum/discount-price-routing.enum.d.ts +6 -0
- package/build/enum/discount-rules-apply-type.enum.d.ts +4 -0
- package/build/enum/discount-rules-mode-type.enum.d.ts +4 -0
- package/build/enum/discount-rules-status.enum.d.ts +4 -0
- package/build/enum/discount-rules-type.enum.d.ts +7 -0
- package/build/enum/file-expire-prefix.enum.d.ts +3 -0
- package/build/enum/file-expire-prefix.enum.js +7 -0
- package/build/enum/image-type.enum.d.ts +4 -0
- package/build/enum/import-error-code.enum.d.ts +7 -0
- package/build/enum/index.d.ts +59 -0
- package/build/enum/inventory-movement-type.enum.d.ts +6 -0
- package/build/enum/language.enum.d.ts +4 -0
- package/build/enum/menu-items-url.enum.d.ts +11 -0
- package/build/enum/money-account-status.enum.d.ts +4 -0
- package/build/enum/notification-channel.enum.d.ts +9 -0
- package/build/enum/notification-status.enum.d.ts +6 -0
- package/build/enum/notification-type.enum.d.ts +6 -0
- package/build/enum/order-active-status-list.d.ts +2 -0
- package/build/enum/order-balance-status-list.d.ts +2 -0
- package/build/enum/order-by.enum.d.ts +4 -0
- package/build/enum/order-delivery-status.enum.d.ts +4 -0
- package/build/enum/order-distribute-status-list.d.ts +2 -0
- package/build/enum/order-restricted-status-list.d.ts +2 -0
- package/build/enum/order-status.enum.d.ts +13 -0
- package/build/enum/order-type.enum.d.ts +4 -0
- package/build/enum/order-webshop-available-status-list.d.ts +2 -0
- package/build/enum/package-status.enum.d.ts +5 -0
- package/build/enum/package-type.enum.d.ts +32 -0
- package/build/enum/parse-status.enum.d.ts +5 -0
- package/build/enum/position-report-type.enum.d.ts +4 -0
- package/build/enum/pre-order-aggregation-mode.enum.d.ts +5 -0
- package/build/enum/pre-order-collection-item-import-entity-property.enum.d.ts +21 -0
- package/build/enum/pre-order-collection-status.enum.d.ts +4 -0
- package/build/enum/pre-order-status.enum.d.ts +8 -0
- package/build/enum/product-image-created-from.enum.d.ts +4 -0
- package/build/enum/product-image-order.enum.d.ts +4 -0
- package/build/enum/product-in-package-status.enum.d.ts +4 -0
- package/build/enum/report-period-type.enum.d.ts +5 -0
- package/build/enum/sales-unit.enum.d.ts +5 -0
- package/build/enum/security-code-status.enum.d.ts +7 -0
- package/build/enum/transaction-type-groups.d.ts +4 -0
- package/build/enum/transaction-type.enum.d.ts +6 -0
- package/build/enum/user-type.enum.d.ts +4 -0
- package/build/enum/userRole.enum.d.ts +12 -0
- package/build/enum/userStatus.enum.d.ts +5 -0
- package/build/enum/webshop-main-display-mode.enum.d.ts +4 -0
- package/build/enum/webshop-mode.enum.d.ts +4 -0
- package/build/enum/write-off-status.enum.d.ts +5 -0
- package/build/helpers/date.helper.d.ts +3 -0
- package/build/index.d.ts +5 -0
- package/build/schemas/action-log/action-log-payload.schema.d.ts +496 -0
- package/build/schemas/action-log/action-log.schema.d.ts +2439 -0
- package/build/schemas/action-log/index.d.ts +14 -0
- package/build/schemas/action-log/order-create-action-log.schema.d.ts +53 -0
- package/build/schemas/action-log/order-delete-action-log-payload.schema.d.ts +53 -0
- package/build/schemas/action-log/order-info.schema.d.ts +29 -0
- package/build/schemas/action-log/order-product-delete-action-log.schema.d.ts +63 -0
- package/build/schemas/action-log/order-product-info.schema.d.ts +35 -0
- package/build/schemas/action-log/order-product-update-action-log.schema.d.ts +69 -0
- package/build/schemas/action-log/order-update-action-log.schema.d.ts +12 -0
- package/build/schemas/action-log/pre-order-create-action-log.schema.d.ts +38 -0
- package/build/schemas/action-log/pre-order-delete-action-log.schema.d.ts +38 -0
- package/build/schemas/action-log/pre-order-info.schema.d.ts +20 -0
- package/build/schemas/action-log/pre-order-product-delete-action-log.schema.d.ts +48 -0
- package/build/schemas/action-log/pre-order-product-info.schema.d.ts +26 -0
- package/build/schemas/action-log/pre-order-product-update-action-log.schema.d.ts +57 -0
- package/build/schemas/action-log/transaction-add-action-log.schema.d.ts +43 -0
- package/build/schemas/action-log/transaction-delete-action-log.schema.d.ts +43 -0
- package/build/schemas/action-log/transaction-info.schema.d.ts +24 -0
- package/build/schemas/branch/branch-list.schema.d.ts +71 -0
- package/build/schemas/branch/branch.schema.d.ts +38 -0
- package/build/schemas/category/category.schema.d.ts +102 -0
- package/build/schemas/category-alias/category-alias.schema.d.ts +36 -0
- package/build/schemas/category-template/category-template.schema.d.ts +55 -0
- package/build/schemas/category-template/index.d.ts +1 -0
- package/build/schemas/client/client-individual-profile.schema.d.ts +26 -0
- package/build/schemas/client/client-legal-profile.schema.d.ts +60 -0
- package/build/schemas/client/client-marking.schema.d.ts +11 -0
- package/build/schemas/client/client.schema.d.ts +1665 -0
- package/build/schemas/client/index.d.ts +4 -0
- package/build/schemas/company/company.schema.d.ts +27 -0
- package/build/schemas/company/companyList.schema.d.ts +51 -0
- package/build/schemas/consignment/consignment-distribution-validation.schema.d.ts +2487 -0
- package/build/schemas/consignment/consignment-list.schema.d.ts +133 -0
- package/build/schemas/consignment/consignment.schema.d.ts +420 -0
- package/build/schemas/consignment-import-schema/consignment-import-schema.scheme.d.ts +136 -0
- package/build/schemas/consignment-import-schema/index.d.ts +1 -0
- package/build/schemas/consignment-import-schema-relation/consignment-import-schema-relation.schema.d.ts +21 -0
- package/build/schemas/delete-data-response.schema.d.ts +8 -0
- package/build/schemas/delivery-route/delivery-route.schema.d.ts +193 -0
- package/build/schemas/discount-rules/discount-rules.schema.d.ts +1794 -0
- package/build/schemas/distribution/distribution.schema.d.ts +55 -0
- package/build/schemas/distribution/validate-distribution-by-product.schema.d.ts +14 -0
- package/build/schemas/domain/domain.schema.d.ts +85 -0
- package/build/schemas/employee-schedule/employee-schedule.schema.d.ts +399 -0
- package/build/schemas/file/file.schema.d.ts +8 -0
- package/build/schemas/file/index.d.ts +1 -0
- package/build/schemas/index.d.ts +53 -0
- package/build/schemas/message/client-inbox-item.schema.d.ts +32 -0
- package/build/schemas/message/context-inbox.schema.d.ts +109 -0
- package/build/schemas/message/context-message-list.schema.d.ts +80 -0
- package/build/schemas/message/context-message.schema.d.ts +39 -0
- package/build/schemas/message/index.d.ts +4 -0
- package/build/schemas/money-account/money-account.schema.d.ts +31 -0
- package/build/schemas/order/order.schema.d.ts +884 -0
- package/build/schemas/order-delivery/order-delivery.schema.d.ts +27 -0
- package/build/schemas/order-product/order-product-list.schema.d.ts +1587 -0
- package/build/schemas/order-product/order-product-multiplicity-optiom.schema.d.ts +17 -0
- package/build/schemas/order-product/order-product.schema.d.ts +2173 -0
- package/build/schemas/package/package.schema.d.ts +1111 -0
- package/build/schemas/package/validate-package.schema.d.ts +14 -0
- package/build/schemas/pre-order/pre-order-copy.schema.d.ts +3083 -0
- package/build/schemas/pre-order/pre-order.schema.d.ts +1058 -0
- package/build/schemas/pre-order-collection/pre-order-collection.schema.d.ts +277 -0
- package/build/schemas/pre-order-collection-item/pre-order-collection-item-multiplicity-option.schema.d.ts +20 -0
- package/build/schemas/pre-order-collection-item/pre-order-collection-item.schema.d.ts +2725 -0
- package/build/schemas/pre-order-product/pre-order-product.schema.d.ts +2039 -0
- package/build/schemas/product/product-list.schema.d.ts +885 -0
- package/build/schemas/product/product-multiplicity-option.schema.d.ts +20 -0
- package/build/schemas/product/product.schema.d.ts +1383 -0
- package/build/schemas/product-configuration/product-configuration.schema.d.ts +78 -0
- package/build/schemas/product-image/product-image-alias.schema.d.ts +11 -0
- package/build/schemas/product-image/product-image.schema.d.ts +240 -0
- package/build/schemas/product-image-template/product-image-template.schema.d.ts +139 -0
- package/build/schemas/product-in-package/product-in-package.schema.d.ts +86 -0
- package/build/schemas/report/client-by-weeks.schema.d.ts +29 -0
- package/build/schemas/report/client-statement.schema.d.ts +24 -0
- package/build/schemas/settings/settings.schema.d.ts +770 -0
- package/build/schemas/transaction/transaction-list.schema.d.ts +1055 -0
- package/build/schemas/transaction/transaction.schema.d.ts +763 -0
- package/build/schemas/type/type.schema.d.ts +36 -0
- package/build/schemas/type/typeList.schema.d.ts +14 -0
- package/build/schemas/user/user.schema.d.ts +67 -0
- package/build/schemas/work-session/work-session.schema.d.ts +344 -0
- package/build/schemas/write-off/write-off-image.schema.d.ts +20 -0
- package/build/schemas/write-off/write-off-image.schema.js +1 -1
- package/build/schemas/write-off/write-off-list.schema.d.ts +1656 -0
- package/build/schemas/write-off/write-off.schema.d.ts +1214 -0
- package/build/types/client-import-data.type.d.ts +34 -0
- package/build/types/index.d.ts +1 -0
- package/commands/file/deleteFile.command.ts +1 -1
- package/commands/write-off/create-write-off-images.command.ts +1 -1
- package/enum/file-expire-prefix.enum.ts +3 -0
- package/package.json +9 -6
- package/schemas/write-off/write-off-image.schema.ts +1 -1
- package/tsconfig.json +3 -3
|
@@ -0,0 +1,1257 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ClientStatusEnum } from '../../enum/client-status.enum';
|
|
3
|
+
import { ClientTypeEnum } from '../../enum/client-type.enum';
|
|
4
|
+
export declare namespace GetClientListContractQuery {
|
|
5
|
+
const RequestSchema: z.ZodObject<{
|
|
6
|
+
page: z.ZodEffects<z.ZodString, number, string>;
|
|
7
|
+
count: z.ZodEffects<z.ZodString, number, string>;
|
|
8
|
+
clientStatus: z.ZodOptional<z.ZodNativeEnum<typeof ClientStatusEnum>>;
|
|
9
|
+
clientType: z.ZodOptional<z.ZodNativeEnum<typeof ClientTypeEnum>>;
|
|
10
|
+
group: z.ZodOptional<z.ZodString>;
|
|
11
|
+
city: z.ZodOptional<z.ZodString>;
|
|
12
|
+
searchQuery: z.ZodOptional<z.ZodString>;
|
|
13
|
+
sortByBalance: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"asc">, z.ZodLiteral<"desc">]>>;
|
|
14
|
+
responsibleUserUUID: z.ZodOptional<z.ZodString>;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
page: number;
|
|
17
|
+
count: number;
|
|
18
|
+
clientStatus?: ClientStatusEnum | undefined;
|
|
19
|
+
clientType?: ClientTypeEnum | undefined;
|
|
20
|
+
group?: string | undefined;
|
|
21
|
+
city?: string | undefined;
|
|
22
|
+
searchQuery?: string | undefined;
|
|
23
|
+
sortByBalance?: "asc" | "desc" | undefined;
|
|
24
|
+
responsibleUserUUID?: string | undefined;
|
|
25
|
+
}, {
|
|
26
|
+
page: string;
|
|
27
|
+
count: string;
|
|
28
|
+
clientStatus?: ClientStatusEnum | undefined;
|
|
29
|
+
clientType?: ClientTypeEnum | undefined;
|
|
30
|
+
group?: string | undefined;
|
|
31
|
+
city?: string | undefined;
|
|
32
|
+
searchQuery?: string | undefined;
|
|
33
|
+
sortByBalance?: "asc" | "desc" | undefined;
|
|
34
|
+
responsibleUserUUID?: string | undefined;
|
|
35
|
+
}>;
|
|
36
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
37
|
+
const ResponseSchema: z.ZodObject<{
|
|
38
|
+
message: z.ZodOptional<z.ZodString>;
|
|
39
|
+
data: z.ZodObject<{
|
|
40
|
+
clientList: z.ZodArray<z.ZodObject<{
|
|
41
|
+
email: z.ZodNullable<z.ZodString>;
|
|
42
|
+
phone: z.ZodNullable<z.ZodString>;
|
|
43
|
+
name: z.ZodString;
|
|
44
|
+
code: z.ZodNullable<z.ZodString>;
|
|
45
|
+
status: z.ZodNativeEnum<typeof ClientStatusEnum>;
|
|
46
|
+
uuid: z.ZodString;
|
|
47
|
+
contactName: z.ZodNullable<z.ZodString>;
|
|
48
|
+
address: z.ZodNullable<z.ZodString>;
|
|
49
|
+
city: z.ZodNullable<z.ZodString>;
|
|
50
|
+
createdAt: z.ZodDate;
|
|
51
|
+
updatedAt: z.ZodDate;
|
|
52
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
53
|
+
companyUUID: z.ZodString;
|
|
54
|
+
isCommon: z.ZodBoolean;
|
|
55
|
+
contractNumber: z.ZodNullable<z.ZodString>;
|
|
56
|
+
contractDate: z.ZodNullable<z.ZodDate>;
|
|
57
|
+
group: z.ZodNullable<z.ZodString>;
|
|
58
|
+
marking: z.ZodNullable<z.ZodString>;
|
|
59
|
+
alwaysRequiresDelivery: z.ZodBoolean;
|
|
60
|
+
additionalPhone: z.ZodNullable<z.ZodString>;
|
|
61
|
+
comment: z.ZodNullable<z.ZodString>;
|
|
62
|
+
balance: z.ZodNumber;
|
|
63
|
+
clientType: z.ZodNativeEnum<typeof ClientTypeEnum>;
|
|
64
|
+
responsibleUserUUID: z.ZodNullable<z.ZodString>;
|
|
65
|
+
responsibleSince: z.ZodNullable<z.ZodDate>;
|
|
66
|
+
user: z.ZodNullable<z.ZodObject<{
|
|
67
|
+
uuid: z.ZodString;
|
|
68
|
+
name: z.ZodString;
|
|
69
|
+
email: z.ZodNullable<z.ZodString>;
|
|
70
|
+
phone: z.ZodNullable<z.ZodString>;
|
|
71
|
+
roles: z.ZodArray<z.ZodNativeEnum<typeof import("../..").UserRoleEnum>, "many">;
|
|
72
|
+
companyUUID: z.ZodString;
|
|
73
|
+
status: z.ZodNativeEnum<typeof import("../..").UserStatusEnum>;
|
|
74
|
+
isGlobal: z.ZodBoolean;
|
|
75
|
+
restoreTokenHash: z.ZodNullable<z.ZodString>;
|
|
76
|
+
passwordHash: z.ZodString;
|
|
77
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
78
|
+
createdAt: z.ZodDate;
|
|
79
|
+
updatedAt: z.ZodDate;
|
|
80
|
+
}, "strip", z.ZodTypeAny, {
|
|
81
|
+
email: string | null;
|
|
82
|
+
phone: string | null;
|
|
83
|
+
name: string;
|
|
84
|
+
status: import("../..").UserStatusEnum;
|
|
85
|
+
uuid: string;
|
|
86
|
+
createdAt: Date;
|
|
87
|
+
updatedAt: Date;
|
|
88
|
+
deletedAt: Date | null;
|
|
89
|
+
roles: import("../..").UserRoleEnum[];
|
|
90
|
+
companyUUID: string;
|
|
91
|
+
isGlobal: boolean;
|
|
92
|
+
restoreTokenHash: string | null;
|
|
93
|
+
passwordHash: string;
|
|
94
|
+
}, {
|
|
95
|
+
email: string | null;
|
|
96
|
+
phone: string | null;
|
|
97
|
+
name: string;
|
|
98
|
+
status: import("../..").UserStatusEnum;
|
|
99
|
+
uuid: string;
|
|
100
|
+
createdAt: Date;
|
|
101
|
+
updatedAt: Date;
|
|
102
|
+
deletedAt: Date | null;
|
|
103
|
+
roles: import("../..").UserRoleEnum[];
|
|
104
|
+
companyUUID: string;
|
|
105
|
+
isGlobal: boolean;
|
|
106
|
+
restoreTokenHash: string | null;
|
|
107
|
+
passwordHash: string;
|
|
108
|
+
}>>;
|
|
109
|
+
clientIndividualProfile: z.ZodNullable<z.ZodObject<{
|
|
110
|
+
uuid: z.ZodString;
|
|
111
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
112
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
113
|
+
middleName: z.ZodNullable<z.ZodString>;
|
|
114
|
+
phone: z.ZodNullable<z.ZodString>;
|
|
115
|
+
createdAt: z.ZodDate;
|
|
116
|
+
updatedAt: z.ZodDate;
|
|
117
|
+
}, "strip", z.ZodTypeAny, {
|
|
118
|
+
phone: string | null;
|
|
119
|
+
uuid: string;
|
|
120
|
+
createdAt: Date;
|
|
121
|
+
updatedAt: Date;
|
|
122
|
+
firstName: string | null;
|
|
123
|
+
lastName: string | null;
|
|
124
|
+
middleName: string | null;
|
|
125
|
+
}, {
|
|
126
|
+
phone: string | null;
|
|
127
|
+
uuid: string;
|
|
128
|
+
createdAt: Date;
|
|
129
|
+
updatedAt: Date;
|
|
130
|
+
firstName: string | null;
|
|
131
|
+
lastName: string | null;
|
|
132
|
+
middleName: string | null;
|
|
133
|
+
}>>;
|
|
134
|
+
clientLegalProfile: z.ZodNullable<z.ZodObject<{
|
|
135
|
+
uuid: z.ZodString;
|
|
136
|
+
fullCompanyName: z.ZodNullable<z.ZodString>;
|
|
137
|
+
taxId: z.ZodNullable<z.ZodString>;
|
|
138
|
+
ogrn: z.ZodNullable<z.ZodString>;
|
|
139
|
+
ogrnip: z.ZodNullable<z.ZodString>;
|
|
140
|
+
kpp: z.ZodNullable<z.ZodString>;
|
|
141
|
+
bankName: z.ZodNullable<z.ZodString>;
|
|
142
|
+
bankAccountNumber: z.ZodNullable<z.ZodString>;
|
|
143
|
+
bankBic: z.ZodNullable<z.ZodString>;
|
|
144
|
+
directorName: z.ZodNullable<z.ZodString>;
|
|
145
|
+
directorPosition: z.ZodNullable<z.ZodString>;
|
|
146
|
+
directorAuthority: z.ZodNullable<z.ZodString>;
|
|
147
|
+
edoUsage: z.ZodBoolean;
|
|
148
|
+
edoId: z.ZodNullable<z.ZodString>;
|
|
149
|
+
address: z.ZodNullable<z.ZodString>;
|
|
150
|
+
legalType: z.ZodNativeEnum<typeof import("../..").ClientLegalTypeEnum>;
|
|
151
|
+
createdAt: z.ZodDate;
|
|
152
|
+
updatedAt: z.ZodDate;
|
|
153
|
+
}, "strip", z.ZodTypeAny, {
|
|
154
|
+
uuid: string;
|
|
155
|
+
address: string | null;
|
|
156
|
+
createdAt: Date;
|
|
157
|
+
updatedAt: Date;
|
|
158
|
+
fullCompanyName: string | null;
|
|
159
|
+
taxId: string | null;
|
|
160
|
+
ogrn: string | null;
|
|
161
|
+
ogrnip: string | null;
|
|
162
|
+
kpp: string | null;
|
|
163
|
+
bankName: string | null;
|
|
164
|
+
bankAccountNumber: string | null;
|
|
165
|
+
bankBic: string | null;
|
|
166
|
+
directorName: string | null;
|
|
167
|
+
directorPosition: string | null;
|
|
168
|
+
directorAuthority: string | null;
|
|
169
|
+
edoUsage: boolean;
|
|
170
|
+
edoId: string | null;
|
|
171
|
+
legalType: import("../..").ClientLegalTypeEnum;
|
|
172
|
+
}, {
|
|
173
|
+
uuid: string;
|
|
174
|
+
address: string | null;
|
|
175
|
+
createdAt: Date;
|
|
176
|
+
updatedAt: Date;
|
|
177
|
+
fullCompanyName: string | null;
|
|
178
|
+
taxId: string | null;
|
|
179
|
+
ogrn: string | null;
|
|
180
|
+
ogrnip: string | null;
|
|
181
|
+
kpp: string | null;
|
|
182
|
+
bankName: string | null;
|
|
183
|
+
bankAccountNumber: string | null;
|
|
184
|
+
bankBic: string | null;
|
|
185
|
+
directorName: string | null;
|
|
186
|
+
directorPosition: string | null;
|
|
187
|
+
directorAuthority: string | null;
|
|
188
|
+
edoUsage: boolean;
|
|
189
|
+
edoId: string | null;
|
|
190
|
+
legalType: import("../..").ClientLegalTypeEnum;
|
|
191
|
+
}>>;
|
|
192
|
+
discountRulesList: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
193
|
+
uuid: z.ZodString;
|
|
194
|
+
companyUUID: z.ZodString;
|
|
195
|
+
type: z.ZodNativeEnum<typeof import("../..").DiscountRulesTypeEnum>;
|
|
196
|
+
defaultApplyProduct: z.ZodNativeEnum<typeof import("../..").DiscountRulesApplyTypeEnum>;
|
|
197
|
+
defaultApplyClient: z.ZodNativeEnum<typeof import("../..").DiscountRulesApplyTypeEnum>;
|
|
198
|
+
status: z.ZodNativeEnum<typeof import("../..").DiscountRulesStatusEnum>;
|
|
199
|
+
createdAt: z.ZodDate;
|
|
200
|
+
updatedAt: z.ZodDate;
|
|
201
|
+
}, "strip", z.ZodTypeAny, {
|
|
202
|
+
type: import("../..").DiscountRulesTypeEnum;
|
|
203
|
+
status: import("../..").DiscountRulesStatusEnum;
|
|
204
|
+
uuid: string;
|
|
205
|
+
createdAt: Date;
|
|
206
|
+
updatedAt: Date;
|
|
207
|
+
companyUUID: string;
|
|
208
|
+
defaultApplyProduct: import("../..").DiscountRulesApplyTypeEnum;
|
|
209
|
+
defaultApplyClient: import("../..").DiscountRulesApplyTypeEnum;
|
|
210
|
+
}, {
|
|
211
|
+
type: import("../..").DiscountRulesTypeEnum;
|
|
212
|
+
status: import("../..").DiscountRulesStatusEnum;
|
|
213
|
+
uuid: string;
|
|
214
|
+
createdAt: Date;
|
|
215
|
+
updatedAt: Date;
|
|
216
|
+
companyUUID: string;
|
|
217
|
+
defaultApplyProduct: import("../..").DiscountRulesApplyTypeEnum;
|
|
218
|
+
defaultApplyClient: import("../..").DiscountRulesApplyTypeEnum;
|
|
219
|
+
}>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
220
|
+
type: z.ZodLiteral<import("../..").DiscountRulesTypeEnum.PERSONAL_DISCOUNT>;
|
|
221
|
+
data: z.ZodObject<{
|
|
222
|
+
discountPercent: z.ZodNumber;
|
|
223
|
+
}, "strip", z.ZodTypeAny, {
|
|
224
|
+
discountPercent: number;
|
|
225
|
+
}, {
|
|
226
|
+
discountPercent: number;
|
|
227
|
+
}>;
|
|
228
|
+
}, "strip", z.ZodTypeAny, {
|
|
229
|
+
type: import("../..").DiscountRulesTypeEnum.PERSONAL_DISCOUNT;
|
|
230
|
+
data: {
|
|
231
|
+
discountPercent: number;
|
|
232
|
+
};
|
|
233
|
+
}, {
|
|
234
|
+
type: import("../..").DiscountRulesTypeEnum.PERSONAL_DISCOUNT;
|
|
235
|
+
data: {
|
|
236
|
+
discountPercent: number;
|
|
237
|
+
};
|
|
238
|
+
}>, z.ZodObject<{
|
|
239
|
+
type: z.ZodLiteral<import("../..").DiscountRulesTypeEnum.MONTHLY_ORDER_SUM>;
|
|
240
|
+
data: z.ZodObject<{
|
|
241
|
+
range: z.ZodEffects<z.ZodArray<z.ZodNumber, "many">, number[], number[]>;
|
|
242
|
+
discountPercent: z.ZodNumber;
|
|
243
|
+
}, "strip", z.ZodTypeAny, {
|
|
244
|
+
discountPercent: number;
|
|
245
|
+
range: number[];
|
|
246
|
+
}, {
|
|
247
|
+
discountPercent: number;
|
|
248
|
+
range: number[];
|
|
249
|
+
}>;
|
|
250
|
+
}, "strip", z.ZodTypeAny, {
|
|
251
|
+
type: import("../..").DiscountRulesTypeEnum.MONTHLY_ORDER_SUM;
|
|
252
|
+
data: {
|
|
253
|
+
discountPercent: number;
|
|
254
|
+
range: number[];
|
|
255
|
+
};
|
|
256
|
+
}, {
|
|
257
|
+
type: import("../..").DiscountRulesTypeEnum.MONTHLY_ORDER_SUM;
|
|
258
|
+
data: {
|
|
259
|
+
discountPercent: number;
|
|
260
|
+
range: number[];
|
|
261
|
+
};
|
|
262
|
+
}>, z.ZodObject<{
|
|
263
|
+
type: z.ZodLiteral<import("../..").DiscountRulesTypeEnum.QUANTITY_BASED>;
|
|
264
|
+
data: z.ZodIntersection<z.ZodObject<{
|
|
265
|
+
multipleQuantity: z.ZodNumber;
|
|
266
|
+
}, "strip", z.ZodTypeAny, {
|
|
267
|
+
multipleQuantity: number;
|
|
268
|
+
}, {
|
|
269
|
+
multipleQuantity: number;
|
|
270
|
+
}>, z.ZodDiscriminatedUnion<"typeDiscount", [z.ZodObject<{
|
|
271
|
+
typeDiscount: z.ZodLiteral<import("../..").DiscountRulesModeTypeEnum.PERCENT>;
|
|
272
|
+
discountValue: z.ZodNumber;
|
|
273
|
+
}, "strip", z.ZodTypeAny, {
|
|
274
|
+
typeDiscount: import("../..").DiscountRulesModeTypeEnum.PERCENT;
|
|
275
|
+
discountValue: number;
|
|
276
|
+
}, {
|
|
277
|
+
typeDiscount: import("../..").DiscountRulesModeTypeEnum.PERCENT;
|
|
278
|
+
discountValue: number;
|
|
279
|
+
}>, z.ZodObject<{
|
|
280
|
+
typeDiscount: z.ZodLiteral<import("../..").DiscountRulesModeTypeEnum.FIXED>;
|
|
281
|
+
discountValue: z.ZodNumber;
|
|
282
|
+
}, "strip", z.ZodTypeAny, {
|
|
283
|
+
typeDiscount: import("../..").DiscountRulesModeTypeEnum.FIXED;
|
|
284
|
+
discountValue: number;
|
|
285
|
+
}, {
|
|
286
|
+
typeDiscount: import("../..").DiscountRulesModeTypeEnum.FIXED;
|
|
287
|
+
discountValue: number;
|
|
288
|
+
}>]>>;
|
|
289
|
+
}, "strip", z.ZodTypeAny, {
|
|
290
|
+
type: import("../..").DiscountRulesTypeEnum.QUANTITY_BASED;
|
|
291
|
+
data: ({
|
|
292
|
+
multipleQuantity: number;
|
|
293
|
+
} & {
|
|
294
|
+
typeDiscount: import("../..").DiscountRulesModeTypeEnum.PERCENT;
|
|
295
|
+
discountValue: number;
|
|
296
|
+
}) | ({
|
|
297
|
+
multipleQuantity: number;
|
|
298
|
+
} & {
|
|
299
|
+
typeDiscount: import("../..").DiscountRulesModeTypeEnum.FIXED;
|
|
300
|
+
discountValue: number;
|
|
301
|
+
});
|
|
302
|
+
}, {
|
|
303
|
+
type: import("../..").DiscountRulesTypeEnum.QUANTITY_BASED;
|
|
304
|
+
data: ({
|
|
305
|
+
multipleQuantity: number;
|
|
306
|
+
} & {
|
|
307
|
+
typeDiscount: import("../..").DiscountRulesModeTypeEnum.PERCENT;
|
|
308
|
+
discountValue: number;
|
|
309
|
+
}) | ({
|
|
310
|
+
multipleQuantity: number;
|
|
311
|
+
} & {
|
|
312
|
+
typeDiscount: import("../..").DiscountRulesModeTypeEnum.FIXED;
|
|
313
|
+
discountValue: number;
|
|
314
|
+
});
|
|
315
|
+
}>, z.ZodObject<{
|
|
316
|
+
type: z.ZodLiteral<import("../..").DiscountRulesTypeEnum.ITEM_DISCOUNT>;
|
|
317
|
+
data: z.ZodIntersection<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, z.ZodDiscriminatedUnion<"typeDiscount", [z.ZodObject<{
|
|
318
|
+
typeDiscount: z.ZodLiteral<import("../..").DiscountRulesModeTypeEnum.PERCENT>;
|
|
319
|
+
discountValue: z.ZodNumber;
|
|
320
|
+
}, "strip", z.ZodTypeAny, {
|
|
321
|
+
typeDiscount: import("../..").DiscountRulesModeTypeEnum.PERCENT;
|
|
322
|
+
discountValue: number;
|
|
323
|
+
}, {
|
|
324
|
+
typeDiscount: import("../..").DiscountRulesModeTypeEnum.PERCENT;
|
|
325
|
+
discountValue: number;
|
|
326
|
+
}>, z.ZodObject<{
|
|
327
|
+
typeDiscount: z.ZodLiteral<import("../..").DiscountRulesModeTypeEnum.FIXED>;
|
|
328
|
+
discountValue: z.ZodNumber;
|
|
329
|
+
}, "strip", z.ZodTypeAny, {
|
|
330
|
+
typeDiscount: import("../..").DiscountRulesModeTypeEnum.FIXED;
|
|
331
|
+
discountValue: number;
|
|
332
|
+
}, {
|
|
333
|
+
typeDiscount: import("../..").DiscountRulesModeTypeEnum.FIXED;
|
|
334
|
+
discountValue: number;
|
|
335
|
+
}>]>>;
|
|
336
|
+
}, "strip", z.ZodTypeAny, {
|
|
337
|
+
type: import("../..").DiscountRulesTypeEnum.ITEM_DISCOUNT;
|
|
338
|
+
data: ({} & {
|
|
339
|
+
typeDiscount: import("../..").DiscountRulesModeTypeEnum.PERCENT;
|
|
340
|
+
discountValue: number;
|
|
341
|
+
}) | ({} & {
|
|
342
|
+
typeDiscount: import("../..").DiscountRulesModeTypeEnum.FIXED;
|
|
343
|
+
discountValue: number;
|
|
344
|
+
});
|
|
345
|
+
}, {
|
|
346
|
+
type: import("../..").DiscountRulesTypeEnum.ITEM_DISCOUNT;
|
|
347
|
+
data: ({} & {
|
|
348
|
+
typeDiscount: import("../..").DiscountRulesModeTypeEnum.PERCENT;
|
|
349
|
+
discountValue: number;
|
|
350
|
+
}) | ({} & {
|
|
351
|
+
typeDiscount: import("../..").DiscountRulesModeTypeEnum.FIXED;
|
|
352
|
+
discountValue: number;
|
|
353
|
+
});
|
|
354
|
+
}>, z.ZodObject<{
|
|
355
|
+
type: z.ZodLiteral<import("../..").DiscountRulesTypeEnum.DISCOUNT_PROHIBITED>;
|
|
356
|
+
data: z.ZodDefault<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
357
|
+
}, "strip", z.ZodTypeAny, {
|
|
358
|
+
type: import("../..").DiscountRulesTypeEnum.DISCOUNT_PROHIBITED;
|
|
359
|
+
data: {};
|
|
360
|
+
}, {
|
|
361
|
+
type: import("../..").DiscountRulesTypeEnum.DISCOUNT_PROHIBITED;
|
|
362
|
+
data?: {} | undefined;
|
|
363
|
+
}>]>>, "many">>;
|
|
364
|
+
orderCount: z.ZodNumber;
|
|
365
|
+
responsibleUser: z.ZodNullable<z.ZodObject<{
|
|
366
|
+
uuid: z.ZodString;
|
|
367
|
+
name: z.ZodString;
|
|
368
|
+
email: z.ZodNullable<z.ZodString>;
|
|
369
|
+
phone: z.ZodNullable<z.ZodString>;
|
|
370
|
+
roles: z.ZodArray<z.ZodNativeEnum<typeof import("../..").UserRoleEnum>, "many">;
|
|
371
|
+
companyUUID: z.ZodString;
|
|
372
|
+
status: z.ZodNativeEnum<typeof import("../..").UserStatusEnum>;
|
|
373
|
+
isGlobal: z.ZodBoolean;
|
|
374
|
+
restoreTokenHash: z.ZodNullable<z.ZodString>;
|
|
375
|
+
passwordHash: z.ZodString;
|
|
376
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
377
|
+
createdAt: z.ZodDate;
|
|
378
|
+
updatedAt: z.ZodDate;
|
|
379
|
+
}, "strip", z.ZodTypeAny, {
|
|
380
|
+
email: string | null;
|
|
381
|
+
phone: string | null;
|
|
382
|
+
name: string;
|
|
383
|
+
status: import("../..").UserStatusEnum;
|
|
384
|
+
uuid: string;
|
|
385
|
+
createdAt: Date;
|
|
386
|
+
updatedAt: Date;
|
|
387
|
+
deletedAt: Date | null;
|
|
388
|
+
roles: import("../..").UserRoleEnum[];
|
|
389
|
+
companyUUID: string;
|
|
390
|
+
isGlobal: boolean;
|
|
391
|
+
restoreTokenHash: string | null;
|
|
392
|
+
passwordHash: string;
|
|
393
|
+
}, {
|
|
394
|
+
email: string | null;
|
|
395
|
+
phone: string | null;
|
|
396
|
+
name: string;
|
|
397
|
+
status: import("../..").UserStatusEnum;
|
|
398
|
+
uuid: string;
|
|
399
|
+
createdAt: Date;
|
|
400
|
+
updatedAt: Date;
|
|
401
|
+
deletedAt: Date | null;
|
|
402
|
+
roles: import("../..").UserRoleEnum[];
|
|
403
|
+
companyUUID: string;
|
|
404
|
+
isGlobal: boolean;
|
|
405
|
+
restoreTokenHash: string | null;
|
|
406
|
+
passwordHash: string;
|
|
407
|
+
}>>;
|
|
408
|
+
clientMarkingList: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
409
|
+
uuid: z.ZodString;
|
|
410
|
+
name: z.ZodString;
|
|
411
|
+
}, "strip", z.ZodTypeAny, {
|
|
412
|
+
name: string;
|
|
413
|
+
uuid: string;
|
|
414
|
+
}, {
|
|
415
|
+
name: string;
|
|
416
|
+
uuid: string;
|
|
417
|
+
}>, "many">>;
|
|
418
|
+
}, "strip", z.ZodTypeAny, {
|
|
419
|
+
email: string | null;
|
|
420
|
+
phone: string | null;
|
|
421
|
+
name: string;
|
|
422
|
+
code: string | null;
|
|
423
|
+
status: ClientStatusEnum;
|
|
424
|
+
user: {
|
|
425
|
+
email: string | null;
|
|
426
|
+
phone: string | null;
|
|
427
|
+
name: string;
|
|
428
|
+
status: import("../..").UserStatusEnum;
|
|
429
|
+
uuid: string;
|
|
430
|
+
createdAt: Date;
|
|
431
|
+
updatedAt: Date;
|
|
432
|
+
deletedAt: Date | null;
|
|
433
|
+
roles: import("../..").UserRoleEnum[];
|
|
434
|
+
companyUUID: string;
|
|
435
|
+
isGlobal: boolean;
|
|
436
|
+
restoreTokenHash: string | null;
|
|
437
|
+
passwordHash: string;
|
|
438
|
+
} | null;
|
|
439
|
+
uuid: string;
|
|
440
|
+
contactName: string | null;
|
|
441
|
+
address: string | null;
|
|
442
|
+
city: string | null;
|
|
443
|
+
createdAt: Date;
|
|
444
|
+
updatedAt: Date;
|
|
445
|
+
deletedAt: Date | null;
|
|
446
|
+
companyUUID: string;
|
|
447
|
+
isCommon: boolean;
|
|
448
|
+
contractNumber: string | null;
|
|
449
|
+
contractDate: Date | null;
|
|
450
|
+
group: string | null;
|
|
451
|
+
marking: string | null;
|
|
452
|
+
alwaysRequiresDelivery: boolean;
|
|
453
|
+
additionalPhone: string | null;
|
|
454
|
+
comment: string | null;
|
|
455
|
+
balance: number;
|
|
456
|
+
clientType: ClientTypeEnum;
|
|
457
|
+
responsibleUserUUID: string | null;
|
|
458
|
+
responsibleSince: Date | null;
|
|
459
|
+
clientIndividualProfile: {
|
|
460
|
+
phone: string | null;
|
|
461
|
+
uuid: string;
|
|
462
|
+
createdAt: Date;
|
|
463
|
+
updatedAt: Date;
|
|
464
|
+
firstName: string | null;
|
|
465
|
+
lastName: string | null;
|
|
466
|
+
middleName: string | null;
|
|
467
|
+
} | null;
|
|
468
|
+
clientLegalProfile: {
|
|
469
|
+
uuid: string;
|
|
470
|
+
address: string | null;
|
|
471
|
+
createdAt: Date;
|
|
472
|
+
updatedAt: Date;
|
|
473
|
+
fullCompanyName: string | null;
|
|
474
|
+
taxId: string | null;
|
|
475
|
+
ogrn: string | null;
|
|
476
|
+
ogrnip: string | null;
|
|
477
|
+
kpp: string | null;
|
|
478
|
+
bankName: string | null;
|
|
479
|
+
bankAccountNumber: string | null;
|
|
480
|
+
bankBic: string | null;
|
|
481
|
+
directorName: string | null;
|
|
482
|
+
directorPosition: string | null;
|
|
483
|
+
directorAuthority: string | null;
|
|
484
|
+
edoUsage: boolean;
|
|
485
|
+
edoId: string | null;
|
|
486
|
+
legalType: import("../..").ClientLegalTypeEnum;
|
|
487
|
+
} | null;
|
|
488
|
+
orderCount: number;
|
|
489
|
+
responsibleUser: {
|
|
490
|
+
email: string | null;
|
|
491
|
+
phone: string | null;
|
|
492
|
+
name: string;
|
|
493
|
+
status: import("../..").UserStatusEnum;
|
|
494
|
+
uuid: string;
|
|
495
|
+
createdAt: Date;
|
|
496
|
+
updatedAt: Date;
|
|
497
|
+
deletedAt: Date | null;
|
|
498
|
+
roles: import("../..").UserRoleEnum[];
|
|
499
|
+
companyUUID: string;
|
|
500
|
+
isGlobal: boolean;
|
|
501
|
+
restoreTokenHash: string | null;
|
|
502
|
+
passwordHash: string;
|
|
503
|
+
} | null;
|
|
504
|
+
discountRulesList?: ({
|
|
505
|
+
type: import("../..").DiscountRulesTypeEnum;
|
|
506
|
+
status: import("../..").DiscountRulesStatusEnum;
|
|
507
|
+
uuid: string;
|
|
508
|
+
createdAt: Date;
|
|
509
|
+
updatedAt: Date;
|
|
510
|
+
companyUUID: string;
|
|
511
|
+
defaultApplyProduct: import("../..").DiscountRulesApplyTypeEnum;
|
|
512
|
+
defaultApplyClient: import("../..").DiscountRulesApplyTypeEnum;
|
|
513
|
+
} & ({
|
|
514
|
+
type: import("../..").DiscountRulesTypeEnum.PERSONAL_DISCOUNT;
|
|
515
|
+
data: {
|
|
516
|
+
discountPercent: number;
|
|
517
|
+
};
|
|
518
|
+
} | {
|
|
519
|
+
type: import("../..").DiscountRulesTypeEnum.MONTHLY_ORDER_SUM;
|
|
520
|
+
data: {
|
|
521
|
+
discountPercent: number;
|
|
522
|
+
range: number[];
|
|
523
|
+
};
|
|
524
|
+
} | {
|
|
525
|
+
type: import("../..").DiscountRulesTypeEnum.QUANTITY_BASED;
|
|
526
|
+
data: ({
|
|
527
|
+
multipleQuantity: number;
|
|
528
|
+
} & {
|
|
529
|
+
typeDiscount: import("../..").DiscountRulesModeTypeEnum.PERCENT;
|
|
530
|
+
discountValue: number;
|
|
531
|
+
}) | ({
|
|
532
|
+
multipleQuantity: number;
|
|
533
|
+
} & {
|
|
534
|
+
typeDiscount: import("../..").DiscountRulesModeTypeEnum.FIXED;
|
|
535
|
+
discountValue: number;
|
|
536
|
+
});
|
|
537
|
+
} | {
|
|
538
|
+
type: import("../..").DiscountRulesTypeEnum.ITEM_DISCOUNT;
|
|
539
|
+
data: ({} & {
|
|
540
|
+
typeDiscount: import("../..").DiscountRulesModeTypeEnum.PERCENT;
|
|
541
|
+
discountValue: number;
|
|
542
|
+
}) | ({} & {
|
|
543
|
+
typeDiscount: import("../..").DiscountRulesModeTypeEnum.FIXED;
|
|
544
|
+
discountValue: number;
|
|
545
|
+
});
|
|
546
|
+
} | {
|
|
547
|
+
type: import("../..").DiscountRulesTypeEnum.DISCOUNT_PROHIBITED;
|
|
548
|
+
data: {};
|
|
549
|
+
}))[] | undefined;
|
|
550
|
+
clientMarkingList?: {
|
|
551
|
+
name: string;
|
|
552
|
+
uuid: string;
|
|
553
|
+
}[] | undefined;
|
|
554
|
+
}, {
|
|
555
|
+
email: string | null;
|
|
556
|
+
phone: string | null;
|
|
557
|
+
name: string;
|
|
558
|
+
code: string | null;
|
|
559
|
+
status: ClientStatusEnum;
|
|
560
|
+
user: {
|
|
561
|
+
email: string | null;
|
|
562
|
+
phone: string | null;
|
|
563
|
+
name: string;
|
|
564
|
+
status: import("../..").UserStatusEnum;
|
|
565
|
+
uuid: string;
|
|
566
|
+
createdAt: Date;
|
|
567
|
+
updatedAt: Date;
|
|
568
|
+
deletedAt: Date | null;
|
|
569
|
+
roles: import("../..").UserRoleEnum[];
|
|
570
|
+
companyUUID: string;
|
|
571
|
+
isGlobal: boolean;
|
|
572
|
+
restoreTokenHash: string | null;
|
|
573
|
+
passwordHash: string;
|
|
574
|
+
} | null;
|
|
575
|
+
uuid: string;
|
|
576
|
+
contactName: string | null;
|
|
577
|
+
address: string | null;
|
|
578
|
+
city: string | null;
|
|
579
|
+
createdAt: Date;
|
|
580
|
+
updatedAt: Date;
|
|
581
|
+
deletedAt: Date | null;
|
|
582
|
+
companyUUID: string;
|
|
583
|
+
isCommon: boolean;
|
|
584
|
+
contractNumber: string | null;
|
|
585
|
+
contractDate: Date | null;
|
|
586
|
+
group: string | null;
|
|
587
|
+
marking: string | null;
|
|
588
|
+
alwaysRequiresDelivery: boolean;
|
|
589
|
+
additionalPhone: string | null;
|
|
590
|
+
comment: string | null;
|
|
591
|
+
balance: number;
|
|
592
|
+
clientType: ClientTypeEnum;
|
|
593
|
+
responsibleUserUUID: string | null;
|
|
594
|
+
responsibleSince: Date | null;
|
|
595
|
+
clientIndividualProfile: {
|
|
596
|
+
phone: string | null;
|
|
597
|
+
uuid: string;
|
|
598
|
+
createdAt: Date;
|
|
599
|
+
updatedAt: Date;
|
|
600
|
+
firstName: string | null;
|
|
601
|
+
lastName: string | null;
|
|
602
|
+
middleName: string | null;
|
|
603
|
+
} | null;
|
|
604
|
+
clientLegalProfile: {
|
|
605
|
+
uuid: string;
|
|
606
|
+
address: string | null;
|
|
607
|
+
createdAt: Date;
|
|
608
|
+
updatedAt: Date;
|
|
609
|
+
fullCompanyName: string | null;
|
|
610
|
+
taxId: string | null;
|
|
611
|
+
ogrn: string | null;
|
|
612
|
+
ogrnip: string | null;
|
|
613
|
+
kpp: string | null;
|
|
614
|
+
bankName: string | null;
|
|
615
|
+
bankAccountNumber: string | null;
|
|
616
|
+
bankBic: string | null;
|
|
617
|
+
directorName: string | null;
|
|
618
|
+
directorPosition: string | null;
|
|
619
|
+
directorAuthority: string | null;
|
|
620
|
+
edoUsage: boolean;
|
|
621
|
+
edoId: string | null;
|
|
622
|
+
legalType: import("../..").ClientLegalTypeEnum;
|
|
623
|
+
} | null;
|
|
624
|
+
orderCount: number;
|
|
625
|
+
responsibleUser: {
|
|
626
|
+
email: string | null;
|
|
627
|
+
phone: string | null;
|
|
628
|
+
name: string;
|
|
629
|
+
status: import("../..").UserStatusEnum;
|
|
630
|
+
uuid: string;
|
|
631
|
+
createdAt: Date;
|
|
632
|
+
updatedAt: Date;
|
|
633
|
+
deletedAt: Date | null;
|
|
634
|
+
roles: import("../..").UserRoleEnum[];
|
|
635
|
+
companyUUID: string;
|
|
636
|
+
isGlobal: boolean;
|
|
637
|
+
restoreTokenHash: string | null;
|
|
638
|
+
passwordHash: string;
|
|
639
|
+
} | null;
|
|
640
|
+
discountRulesList?: ({
|
|
641
|
+
type: import("../..").DiscountRulesTypeEnum;
|
|
642
|
+
status: import("../..").DiscountRulesStatusEnum;
|
|
643
|
+
uuid: string;
|
|
644
|
+
createdAt: Date;
|
|
645
|
+
updatedAt: Date;
|
|
646
|
+
companyUUID: string;
|
|
647
|
+
defaultApplyProduct: import("../..").DiscountRulesApplyTypeEnum;
|
|
648
|
+
defaultApplyClient: import("../..").DiscountRulesApplyTypeEnum;
|
|
649
|
+
} & ({
|
|
650
|
+
type: import("../..").DiscountRulesTypeEnum.PERSONAL_DISCOUNT;
|
|
651
|
+
data: {
|
|
652
|
+
discountPercent: number;
|
|
653
|
+
};
|
|
654
|
+
} | {
|
|
655
|
+
type: import("../..").DiscountRulesTypeEnum.MONTHLY_ORDER_SUM;
|
|
656
|
+
data: {
|
|
657
|
+
discountPercent: number;
|
|
658
|
+
range: number[];
|
|
659
|
+
};
|
|
660
|
+
} | {
|
|
661
|
+
type: import("../..").DiscountRulesTypeEnum.QUANTITY_BASED;
|
|
662
|
+
data: ({
|
|
663
|
+
multipleQuantity: number;
|
|
664
|
+
} & {
|
|
665
|
+
typeDiscount: import("../..").DiscountRulesModeTypeEnum.PERCENT;
|
|
666
|
+
discountValue: number;
|
|
667
|
+
}) | ({
|
|
668
|
+
multipleQuantity: number;
|
|
669
|
+
} & {
|
|
670
|
+
typeDiscount: import("../..").DiscountRulesModeTypeEnum.FIXED;
|
|
671
|
+
discountValue: number;
|
|
672
|
+
});
|
|
673
|
+
} | {
|
|
674
|
+
type: import("../..").DiscountRulesTypeEnum.ITEM_DISCOUNT;
|
|
675
|
+
data: ({} & {
|
|
676
|
+
typeDiscount: import("../..").DiscountRulesModeTypeEnum.PERCENT;
|
|
677
|
+
discountValue: number;
|
|
678
|
+
}) | ({} & {
|
|
679
|
+
typeDiscount: import("../..").DiscountRulesModeTypeEnum.FIXED;
|
|
680
|
+
discountValue: number;
|
|
681
|
+
});
|
|
682
|
+
} | {
|
|
683
|
+
type: import("../..").DiscountRulesTypeEnum.DISCOUNT_PROHIBITED;
|
|
684
|
+
data?: {} | undefined;
|
|
685
|
+
}))[] | undefined;
|
|
686
|
+
clientMarkingList?: {
|
|
687
|
+
name: string;
|
|
688
|
+
uuid: string;
|
|
689
|
+
}[] | undefined;
|
|
690
|
+
}>, "many">;
|
|
691
|
+
total: z.ZodNumber;
|
|
692
|
+
}, "strip", z.ZodTypeAny, {
|
|
693
|
+
total: number;
|
|
694
|
+
clientList: {
|
|
695
|
+
email: string | null;
|
|
696
|
+
phone: string | null;
|
|
697
|
+
name: string;
|
|
698
|
+
code: string | null;
|
|
699
|
+
status: ClientStatusEnum;
|
|
700
|
+
user: {
|
|
701
|
+
email: string | null;
|
|
702
|
+
phone: string | null;
|
|
703
|
+
name: string;
|
|
704
|
+
status: import("../..").UserStatusEnum;
|
|
705
|
+
uuid: string;
|
|
706
|
+
createdAt: Date;
|
|
707
|
+
updatedAt: Date;
|
|
708
|
+
deletedAt: Date | null;
|
|
709
|
+
roles: import("../..").UserRoleEnum[];
|
|
710
|
+
companyUUID: string;
|
|
711
|
+
isGlobal: boolean;
|
|
712
|
+
restoreTokenHash: string | null;
|
|
713
|
+
passwordHash: string;
|
|
714
|
+
} | null;
|
|
715
|
+
uuid: string;
|
|
716
|
+
contactName: string | null;
|
|
717
|
+
address: string | null;
|
|
718
|
+
city: string | null;
|
|
719
|
+
createdAt: Date;
|
|
720
|
+
updatedAt: Date;
|
|
721
|
+
deletedAt: Date | null;
|
|
722
|
+
companyUUID: string;
|
|
723
|
+
isCommon: boolean;
|
|
724
|
+
contractNumber: string | null;
|
|
725
|
+
contractDate: Date | null;
|
|
726
|
+
group: string | null;
|
|
727
|
+
marking: string | null;
|
|
728
|
+
alwaysRequiresDelivery: boolean;
|
|
729
|
+
additionalPhone: string | null;
|
|
730
|
+
comment: string | null;
|
|
731
|
+
balance: number;
|
|
732
|
+
clientType: ClientTypeEnum;
|
|
733
|
+
responsibleUserUUID: string | null;
|
|
734
|
+
responsibleSince: Date | null;
|
|
735
|
+
clientIndividualProfile: {
|
|
736
|
+
phone: string | null;
|
|
737
|
+
uuid: string;
|
|
738
|
+
createdAt: Date;
|
|
739
|
+
updatedAt: Date;
|
|
740
|
+
firstName: string | null;
|
|
741
|
+
lastName: string | null;
|
|
742
|
+
middleName: string | null;
|
|
743
|
+
} | null;
|
|
744
|
+
clientLegalProfile: {
|
|
745
|
+
uuid: string;
|
|
746
|
+
address: string | null;
|
|
747
|
+
createdAt: Date;
|
|
748
|
+
updatedAt: Date;
|
|
749
|
+
fullCompanyName: string | null;
|
|
750
|
+
taxId: string | null;
|
|
751
|
+
ogrn: string | null;
|
|
752
|
+
ogrnip: string | null;
|
|
753
|
+
kpp: string | null;
|
|
754
|
+
bankName: string | null;
|
|
755
|
+
bankAccountNumber: string | null;
|
|
756
|
+
bankBic: string | null;
|
|
757
|
+
directorName: string | null;
|
|
758
|
+
directorPosition: string | null;
|
|
759
|
+
directorAuthority: string | null;
|
|
760
|
+
edoUsage: boolean;
|
|
761
|
+
edoId: string | null;
|
|
762
|
+
legalType: import("../..").ClientLegalTypeEnum;
|
|
763
|
+
} | null;
|
|
764
|
+
orderCount: number;
|
|
765
|
+
responsibleUser: {
|
|
766
|
+
email: string | null;
|
|
767
|
+
phone: string | null;
|
|
768
|
+
name: string;
|
|
769
|
+
status: import("../..").UserStatusEnum;
|
|
770
|
+
uuid: string;
|
|
771
|
+
createdAt: Date;
|
|
772
|
+
updatedAt: Date;
|
|
773
|
+
deletedAt: Date | null;
|
|
774
|
+
roles: import("../..").UserRoleEnum[];
|
|
775
|
+
companyUUID: string;
|
|
776
|
+
isGlobal: boolean;
|
|
777
|
+
restoreTokenHash: string | null;
|
|
778
|
+
passwordHash: string;
|
|
779
|
+
} | null;
|
|
780
|
+
discountRulesList?: ({
|
|
781
|
+
type: import("../..").DiscountRulesTypeEnum;
|
|
782
|
+
status: import("../..").DiscountRulesStatusEnum;
|
|
783
|
+
uuid: string;
|
|
784
|
+
createdAt: Date;
|
|
785
|
+
updatedAt: Date;
|
|
786
|
+
companyUUID: string;
|
|
787
|
+
defaultApplyProduct: import("../..").DiscountRulesApplyTypeEnum;
|
|
788
|
+
defaultApplyClient: import("../..").DiscountRulesApplyTypeEnum;
|
|
789
|
+
} & ({
|
|
790
|
+
type: import("../..").DiscountRulesTypeEnum.PERSONAL_DISCOUNT;
|
|
791
|
+
data: {
|
|
792
|
+
discountPercent: number;
|
|
793
|
+
};
|
|
794
|
+
} | {
|
|
795
|
+
type: import("../..").DiscountRulesTypeEnum.MONTHLY_ORDER_SUM;
|
|
796
|
+
data: {
|
|
797
|
+
discountPercent: number;
|
|
798
|
+
range: number[];
|
|
799
|
+
};
|
|
800
|
+
} | {
|
|
801
|
+
type: import("../..").DiscountRulesTypeEnum.QUANTITY_BASED;
|
|
802
|
+
data: ({
|
|
803
|
+
multipleQuantity: number;
|
|
804
|
+
} & {
|
|
805
|
+
typeDiscount: import("../..").DiscountRulesModeTypeEnum.PERCENT;
|
|
806
|
+
discountValue: number;
|
|
807
|
+
}) | ({
|
|
808
|
+
multipleQuantity: number;
|
|
809
|
+
} & {
|
|
810
|
+
typeDiscount: import("../..").DiscountRulesModeTypeEnum.FIXED;
|
|
811
|
+
discountValue: number;
|
|
812
|
+
});
|
|
813
|
+
} | {
|
|
814
|
+
type: import("../..").DiscountRulesTypeEnum.ITEM_DISCOUNT;
|
|
815
|
+
data: ({} & {
|
|
816
|
+
typeDiscount: import("../..").DiscountRulesModeTypeEnum.PERCENT;
|
|
817
|
+
discountValue: number;
|
|
818
|
+
}) | ({} & {
|
|
819
|
+
typeDiscount: import("../..").DiscountRulesModeTypeEnum.FIXED;
|
|
820
|
+
discountValue: number;
|
|
821
|
+
});
|
|
822
|
+
} | {
|
|
823
|
+
type: import("../..").DiscountRulesTypeEnum.DISCOUNT_PROHIBITED;
|
|
824
|
+
data: {};
|
|
825
|
+
}))[] | undefined;
|
|
826
|
+
clientMarkingList?: {
|
|
827
|
+
name: string;
|
|
828
|
+
uuid: string;
|
|
829
|
+
}[] | undefined;
|
|
830
|
+
}[];
|
|
831
|
+
}, {
|
|
832
|
+
total: number;
|
|
833
|
+
clientList: {
|
|
834
|
+
email: string | null;
|
|
835
|
+
phone: string | null;
|
|
836
|
+
name: string;
|
|
837
|
+
code: string | null;
|
|
838
|
+
status: ClientStatusEnum;
|
|
839
|
+
user: {
|
|
840
|
+
email: string | null;
|
|
841
|
+
phone: string | null;
|
|
842
|
+
name: string;
|
|
843
|
+
status: import("../..").UserStatusEnum;
|
|
844
|
+
uuid: string;
|
|
845
|
+
createdAt: Date;
|
|
846
|
+
updatedAt: Date;
|
|
847
|
+
deletedAt: Date | null;
|
|
848
|
+
roles: import("../..").UserRoleEnum[];
|
|
849
|
+
companyUUID: string;
|
|
850
|
+
isGlobal: boolean;
|
|
851
|
+
restoreTokenHash: string | null;
|
|
852
|
+
passwordHash: string;
|
|
853
|
+
} | null;
|
|
854
|
+
uuid: string;
|
|
855
|
+
contactName: string | null;
|
|
856
|
+
address: string | null;
|
|
857
|
+
city: string | null;
|
|
858
|
+
createdAt: Date;
|
|
859
|
+
updatedAt: Date;
|
|
860
|
+
deletedAt: Date | null;
|
|
861
|
+
companyUUID: string;
|
|
862
|
+
isCommon: boolean;
|
|
863
|
+
contractNumber: string | null;
|
|
864
|
+
contractDate: Date | null;
|
|
865
|
+
group: string | null;
|
|
866
|
+
marking: string | null;
|
|
867
|
+
alwaysRequiresDelivery: boolean;
|
|
868
|
+
additionalPhone: string | null;
|
|
869
|
+
comment: string | null;
|
|
870
|
+
balance: number;
|
|
871
|
+
clientType: ClientTypeEnum;
|
|
872
|
+
responsibleUserUUID: string | null;
|
|
873
|
+
responsibleSince: Date | null;
|
|
874
|
+
clientIndividualProfile: {
|
|
875
|
+
phone: string | null;
|
|
876
|
+
uuid: string;
|
|
877
|
+
createdAt: Date;
|
|
878
|
+
updatedAt: Date;
|
|
879
|
+
firstName: string | null;
|
|
880
|
+
lastName: string | null;
|
|
881
|
+
middleName: string | null;
|
|
882
|
+
} | null;
|
|
883
|
+
clientLegalProfile: {
|
|
884
|
+
uuid: string;
|
|
885
|
+
address: string | null;
|
|
886
|
+
createdAt: Date;
|
|
887
|
+
updatedAt: Date;
|
|
888
|
+
fullCompanyName: string | null;
|
|
889
|
+
taxId: string | null;
|
|
890
|
+
ogrn: string | null;
|
|
891
|
+
ogrnip: string | null;
|
|
892
|
+
kpp: string | null;
|
|
893
|
+
bankName: string | null;
|
|
894
|
+
bankAccountNumber: string | null;
|
|
895
|
+
bankBic: string | null;
|
|
896
|
+
directorName: string | null;
|
|
897
|
+
directorPosition: string | null;
|
|
898
|
+
directorAuthority: string | null;
|
|
899
|
+
edoUsage: boolean;
|
|
900
|
+
edoId: string | null;
|
|
901
|
+
legalType: import("../..").ClientLegalTypeEnum;
|
|
902
|
+
} | null;
|
|
903
|
+
orderCount: number;
|
|
904
|
+
responsibleUser: {
|
|
905
|
+
email: string | null;
|
|
906
|
+
phone: string | null;
|
|
907
|
+
name: string;
|
|
908
|
+
status: import("../..").UserStatusEnum;
|
|
909
|
+
uuid: string;
|
|
910
|
+
createdAt: Date;
|
|
911
|
+
updatedAt: Date;
|
|
912
|
+
deletedAt: Date | null;
|
|
913
|
+
roles: import("../..").UserRoleEnum[];
|
|
914
|
+
companyUUID: string;
|
|
915
|
+
isGlobal: boolean;
|
|
916
|
+
restoreTokenHash: string | null;
|
|
917
|
+
passwordHash: string;
|
|
918
|
+
} | null;
|
|
919
|
+
discountRulesList?: ({
|
|
920
|
+
type: import("../..").DiscountRulesTypeEnum;
|
|
921
|
+
status: import("../..").DiscountRulesStatusEnum;
|
|
922
|
+
uuid: string;
|
|
923
|
+
createdAt: Date;
|
|
924
|
+
updatedAt: Date;
|
|
925
|
+
companyUUID: string;
|
|
926
|
+
defaultApplyProduct: import("../..").DiscountRulesApplyTypeEnum;
|
|
927
|
+
defaultApplyClient: import("../..").DiscountRulesApplyTypeEnum;
|
|
928
|
+
} & ({
|
|
929
|
+
type: import("../..").DiscountRulesTypeEnum.PERSONAL_DISCOUNT;
|
|
930
|
+
data: {
|
|
931
|
+
discountPercent: number;
|
|
932
|
+
};
|
|
933
|
+
} | {
|
|
934
|
+
type: import("../..").DiscountRulesTypeEnum.MONTHLY_ORDER_SUM;
|
|
935
|
+
data: {
|
|
936
|
+
discountPercent: number;
|
|
937
|
+
range: number[];
|
|
938
|
+
};
|
|
939
|
+
} | {
|
|
940
|
+
type: import("../..").DiscountRulesTypeEnum.QUANTITY_BASED;
|
|
941
|
+
data: ({
|
|
942
|
+
multipleQuantity: number;
|
|
943
|
+
} & {
|
|
944
|
+
typeDiscount: import("../..").DiscountRulesModeTypeEnum.PERCENT;
|
|
945
|
+
discountValue: number;
|
|
946
|
+
}) | ({
|
|
947
|
+
multipleQuantity: number;
|
|
948
|
+
} & {
|
|
949
|
+
typeDiscount: import("../..").DiscountRulesModeTypeEnum.FIXED;
|
|
950
|
+
discountValue: number;
|
|
951
|
+
});
|
|
952
|
+
} | {
|
|
953
|
+
type: import("../..").DiscountRulesTypeEnum.ITEM_DISCOUNT;
|
|
954
|
+
data: ({} & {
|
|
955
|
+
typeDiscount: import("../..").DiscountRulesModeTypeEnum.PERCENT;
|
|
956
|
+
discountValue: number;
|
|
957
|
+
}) | ({} & {
|
|
958
|
+
typeDiscount: import("../..").DiscountRulesModeTypeEnum.FIXED;
|
|
959
|
+
discountValue: number;
|
|
960
|
+
});
|
|
961
|
+
} | {
|
|
962
|
+
type: import("../..").DiscountRulesTypeEnum.DISCOUNT_PROHIBITED;
|
|
963
|
+
data?: {} | undefined;
|
|
964
|
+
}))[] | undefined;
|
|
965
|
+
clientMarkingList?: {
|
|
966
|
+
name: string;
|
|
967
|
+
uuid: string;
|
|
968
|
+
}[] | undefined;
|
|
969
|
+
}[];
|
|
970
|
+
}>;
|
|
971
|
+
}, "strip", z.ZodTypeAny, {
|
|
972
|
+
data: {
|
|
973
|
+
total: number;
|
|
974
|
+
clientList: {
|
|
975
|
+
email: string | null;
|
|
976
|
+
phone: string | null;
|
|
977
|
+
name: string;
|
|
978
|
+
code: string | null;
|
|
979
|
+
status: ClientStatusEnum;
|
|
980
|
+
user: {
|
|
981
|
+
email: string | null;
|
|
982
|
+
phone: string | null;
|
|
983
|
+
name: string;
|
|
984
|
+
status: import("../..").UserStatusEnum;
|
|
985
|
+
uuid: string;
|
|
986
|
+
createdAt: Date;
|
|
987
|
+
updatedAt: Date;
|
|
988
|
+
deletedAt: Date | null;
|
|
989
|
+
roles: import("../..").UserRoleEnum[];
|
|
990
|
+
companyUUID: string;
|
|
991
|
+
isGlobal: boolean;
|
|
992
|
+
restoreTokenHash: string | null;
|
|
993
|
+
passwordHash: string;
|
|
994
|
+
} | null;
|
|
995
|
+
uuid: string;
|
|
996
|
+
contactName: string | null;
|
|
997
|
+
address: string | null;
|
|
998
|
+
city: string | null;
|
|
999
|
+
createdAt: Date;
|
|
1000
|
+
updatedAt: Date;
|
|
1001
|
+
deletedAt: Date | null;
|
|
1002
|
+
companyUUID: string;
|
|
1003
|
+
isCommon: boolean;
|
|
1004
|
+
contractNumber: string | null;
|
|
1005
|
+
contractDate: Date | null;
|
|
1006
|
+
group: string | null;
|
|
1007
|
+
marking: string | null;
|
|
1008
|
+
alwaysRequiresDelivery: boolean;
|
|
1009
|
+
additionalPhone: string | null;
|
|
1010
|
+
comment: string | null;
|
|
1011
|
+
balance: number;
|
|
1012
|
+
clientType: ClientTypeEnum;
|
|
1013
|
+
responsibleUserUUID: string | null;
|
|
1014
|
+
responsibleSince: Date | null;
|
|
1015
|
+
clientIndividualProfile: {
|
|
1016
|
+
phone: string | null;
|
|
1017
|
+
uuid: string;
|
|
1018
|
+
createdAt: Date;
|
|
1019
|
+
updatedAt: Date;
|
|
1020
|
+
firstName: string | null;
|
|
1021
|
+
lastName: string | null;
|
|
1022
|
+
middleName: string | null;
|
|
1023
|
+
} | null;
|
|
1024
|
+
clientLegalProfile: {
|
|
1025
|
+
uuid: string;
|
|
1026
|
+
address: string | null;
|
|
1027
|
+
createdAt: Date;
|
|
1028
|
+
updatedAt: Date;
|
|
1029
|
+
fullCompanyName: string | null;
|
|
1030
|
+
taxId: string | null;
|
|
1031
|
+
ogrn: string | null;
|
|
1032
|
+
ogrnip: string | null;
|
|
1033
|
+
kpp: string | null;
|
|
1034
|
+
bankName: string | null;
|
|
1035
|
+
bankAccountNumber: string | null;
|
|
1036
|
+
bankBic: string | null;
|
|
1037
|
+
directorName: string | null;
|
|
1038
|
+
directorPosition: string | null;
|
|
1039
|
+
directorAuthority: string | null;
|
|
1040
|
+
edoUsage: boolean;
|
|
1041
|
+
edoId: string | null;
|
|
1042
|
+
legalType: import("../..").ClientLegalTypeEnum;
|
|
1043
|
+
} | null;
|
|
1044
|
+
orderCount: number;
|
|
1045
|
+
responsibleUser: {
|
|
1046
|
+
email: string | null;
|
|
1047
|
+
phone: string | null;
|
|
1048
|
+
name: string;
|
|
1049
|
+
status: import("../..").UserStatusEnum;
|
|
1050
|
+
uuid: string;
|
|
1051
|
+
createdAt: Date;
|
|
1052
|
+
updatedAt: Date;
|
|
1053
|
+
deletedAt: Date | null;
|
|
1054
|
+
roles: import("../..").UserRoleEnum[];
|
|
1055
|
+
companyUUID: string;
|
|
1056
|
+
isGlobal: boolean;
|
|
1057
|
+
restoreTokenHash: string | null;
|
|
1058
|
+
passwordHash: string;
|
|
1059
|
+
} | null;
|
|
1060
|
+
discountRulesList?: ({
|
|
1061
|
+
type: import("../..").DiscountRulesTypeEnum;
|
|
1062
|
+
status: import("../..").DiscountRulesStatusEnum;
|
|
1063
|
+
uuid: string;
|
|
1064
|
+
createdAt: Date;
|
|
1065
|
+
updatedAt: Date;
|
|
1066
|
+
companyUUID: string;
|
|
1067
|
+
defaultApplyProduct: import("../..").DiscountRulesApplyTypeEnum;
|
|
1068
|
+
defaultApplyClient: import("../..").DiscountRulesApplyTypeEnum;
|
|
1069
|
+
} & ({
|
|
1070
|
+
type: import("../..").DiscountRulesTypeEnum.PERSONAL_DISCOUNT;
|
|
1071
|
+
data: {
|
|
1072
|
+
discountPercent: number;
|
|
1073
|
+
};
|
|
1074
|
+
} | {
|
|
1075
|
+
type: import("../..").DiscountRulesTypeEnum.MONTHLY_ORDER_SUM;
|
|
1076
|
+
data: {
|
|
1077
|
+
discountPercent: number;
|
|
1078
|
+
range: number[];
|
|
1079
|
+
};
|
|
1080
|
+
} | {
|
|
1081
|
+
type: import("../..").DiscountRulesTypeEnum.QUANTITY_BASED;
|
|
1082
|
+
data: ({
|
|
1083
|
+
multipleQuantity: number;
|
|
1084
|
+
} & {
|
|
1085
|
+
typeDiscount: import("../..").DiscountRulesModeTypeEnum.PERCENT;
|
|
1086
|
+
discountValue: number;
|
|
1087
|
+
}) | ({
|
|
1088
|
+
multipleQuantity: number;
|
|
1089
|
+
} & {
|
|
1090
|
+
typeDiscount: import("../..").DiscountRulesModeTypeEnum.FIXED;
|
|
1091
|
+
discountValue: number;
|
|
1092
|
+
});
|
|
1093
|
+
} | {
|
|
1094
|
+
type: import("../..").DiscountRulesTypeEnum.ITEM_DISCOUNT;
|
|
1095
|
+
data: ({} & {
|
|
1096
|
+
typeDiscount: import("../..").DiscountRulesModeTypeEnum.PERCENT;
|
|
1097
|
+
discountValue: number;
|
|
1098
|
+
}) | ({} & {
|
|
1099
|
+
typeDiscount: import("../..").DiscountRulesModeTypeEnum.FIXED;
|
|
1100
|
+
discountValue: number;
|
|
1101
|
+
});
|
|
1102
|
+
} | {
|
|
1103
|
+
type: import("../..").DiscountRulesTypeEnum.DISCOUNT_PROHIBITED;
|
|
1104
|
+
data: {};
|
|
1105
|
+
}))[] | undefined;
|
|
1106
|
+
clientMarkingList?: {
|
|
1107
|
+
name: string;
|
|
1108
|
+
uuid: string;
|
|
1109
|
+
}[] | undefined;
|
|
1110
|
+
}[];
|
|
1111
|
+
};
|
|
1112
|
+
message?: string | undefined;
|
|
1113
|
+
}, {
|
|
1114
|
+
data: {
|
|
1115
|
+
total: number;
|
|
1116
|
+
clientList: {
|
|
1117
|
+
email: string | null;
|
|
1118
|
+
phone: string | null;
|
|
1119
|
+
name: string;
|
|
1120
|
+
code: string | null;
|
|
1121
|
+
status: ClientStatusEnum;
|
|
1122
|
+
user: {
|
|
1123
|
+
email: string | null;
|
|
1124
|
+
phone: string | null;
|
|
1125
|
+
name: string;
|
|
1126
|
+
status: import("../..").UserStatusEnum;
|
|
1127
|
+
uuid: string;
|
|
1128
|
+
createdAt: Date;
|
|
1129
|
+
updatedAt: Date;
|
|
1130
|
+
deletedAt: Date | null;
|
|
1131
|
+
roles: import("../..").UserRoleEnum[];
|
|
1132
|
+
companyUUID: string;
|
|
1133
|
+
isGlobal: boolean;
|
|
1134
|
+
restoreTokenHash: string | null;
|
|
1135
|
+
passwordHash: string;
|
|
1136
|
+
} | null;
|
|
1137
|
+
uuid: string;
|
|
1138
|
+
contactName: string | null;
|
|
1139
|
+
address: string | null;
|
|
1140
|
+
city: string | null;
|
|
1141
|
+
createdAt: Date;
|
|
1142
|
+
updatedAt: Date;
|
|
1143
|
+
deletedAt: Date | null;
|
|
1144
|
+
companyUUID: string;
|
|
1145
|
+
isCommon: boolean;
|
|
1146
|
+
contractNumber: string | null;
|
|
1147
|
+
contractDate: Date | null;
|
|
1148
|
+
group: string | null;
|
|
1149
|
+
marking: string | null;
|
|
1150
|
+
alwaysRequiresDelivery: boolean;
|
|
1151
|
+
additionalPhone: string | null;
|
|
1152
|
+
comment: string | null;
|
|
1153
|
+
balance: number;
|
|
1154
|
+
clientType: ClientTypeEnum;
|
|
1155
|
+
responsibleUserUUID: string | null;
|
|
1156
|
+
responsibleSince: Date | null;
|
|
1157
|
+
clientIndividualProfile: {
|
|
1158
|
+
phone: string | null;
|
|
1159
|
+
uuid: string;
|
|
1160
|
+
createdAt: Date;
|
|
1161
|
+
updatedAt: Date;
|
|
1162
|
+
firstName: string | null;
|
|
1163
|
+
lastName: string | null;
|
|
1164
|
+
middleName: string | null;
|
|
1165
|
+
} | null;
|
|
1166
|
+
clientLegalProfile: {
|
|
1167
|
+
uuid: string;
|
|
1168
|
+
address: string | null;
|
|
1169
|
+
createdAt: Date;
|
|
1170
|
+
updatedAt: Date;
|
|
1171
|
+
fullCompanyName: string | null;
|
|
1172
|
+
taxId: string | null;
|
|
1173
|
+
ogrn: string | null;
|
|
1174
|
+
ogrnip: string | null;
|
|
1175
|
+
kpp: string | null;
|
|
1176
|
+
bankName: string | null;
|
|
1177
|
+
bankAccountNumber: string | null;
|
|
1178
|
+
bankBic: string | null;
|
|
1179
|
+
directorName: string | null;
|
|
1180
|
+
directorPosition: string | null;
|
|
1181
|
+
directorAuthority: string | null;
|
|
1182
|
+
edoUsage: boolean;
|
|
1183
|
+
edoId: string | null;
|
|
1184
|
+
legalType: import("../..").ClientLegalTypeEnum;
|
|
1185
|
+
} | null;
|
|
1186
|
+
orderCount: number;
|
|
1187
|
+
responsibleUser: {
|
|
1188
|
+
email: string | null;
|
|
1189
|
+
phone: string | null;
|
|
1190
|
+
name: string;
|
|
1191
|
+
status: import("../..").UserStatusEnum;
|
|
1192
|
+
uuid: string;
|
|
1193
|
+
createdAt: Date;
|
|
1194
|
+
updatedAt: Date;
|
|
1195
|
+
deletedAt: Date | null;
|
|
1196
|
+
roles: import("../..").UserRoleEnum[];
|
|
1197
|
+
companyUUID: string;
|
|
1198
|
+
isGlobal: boolean;
|
|
1199
|
+
restoreTokenHash: string | null;
|
|
1200
|
+
passwordHash: string;
|
|
1201
|
+
} | null;
|
|
1202
|
+
discountRulesList?: ({
|
|
1203
|
+
type: import("../..").DiscountRulesTypeEnum;
|
|
1204
|
+
status: import("../..").DiscountRulesStatusEnum;
|
|
1205
|
+
uuid: string;
|
|
1206
|
+
createdAt: Date;
|
|
1207
|
+
updatedAt: Date;
|
|
1208
|
+
companyUUID: string;
|
|
1209
|
+
defaultApplyProduct: import("../..").DiscountRulesApplyTypeEnum;
|
|
1210
|
+
defaultApplyClient: import("../..").DiscountRulesApplyTypeEnum;
|
|
1211
|
+
} & ({
|
|
1212
|
+
type: import("../..").DiscountRulesTypeEnum.PERSONAL_DISCOUNT;
|
|
1213
|
+
data: {
|
|
1214
|
+
discountPercent: number;
|
|
1215
|
+
};
|
|
1216
|
+
} | {
|
|
1217
|
+
type: import("../..").DiscountRulesTypeEnum.MONTHLY_ORDER_SUM;
|
|
1218
|
+
data: {
|
|
1219
|
+
discountPercent: number;
|
|
1220
|
+
range: number[];
|
|
1221
|
+
};
|
|
1222
|
+
} | {
|
|
1223
|
+
type: import("../..").DiscountRulesTypeEnum.QUANTITY_BASED;
|
|
1224
|
+
data: ({
|
|
1225
|
+
multipleQuantity: number;
|
|
1226
|
+
} & {
|
|
1227
|
+
typeDiscount: import("../..").DiscountRulesModeTypeEnum.PERCENT;
|
|
1228
|
+
discountValue: number;
|
|
1229
|
+
}) | ({
|
|
1230
|
+
multipleQuantity: number;
|
|
1231
|
+
} & {
|
|
1232
|
+
typeDiscount: import("../..").DiscountRulesModeTypeEnum.FIXED;
|
|
1233
|
+
discountValue: number;
|
|
1234
|
+
});
|
|
1235
|
+
} | {
|
|
1236
|
+
type: import("../..").DiscountRulesTypeEnum.ITEM_DISCOUNT;
|
|
1237
|
+
data: ({} & {
|
|
1238
|
+
typeDiscount: import("../..").DiscountRulesModeTypeEnum.PERCENT;
|
|
1239
|
+
discountValue: number;
|
|
1240
|
+
}) | ({} & {
|
|
1241
|
+
typeDiscount: import("../..").DiscountRulesModeTypeEnum.FIXED;
|
|
1242
|
+
discountValue: number;
|
|
1243
|
+
});
|
|
1244
|
+
} | {
|
|
1245
|
+
type: import("../..").DiscountRulesTypeEnum.DISCOUNT_PROHIBITED;
|
|
1246
|
+
data?: {} | undefined;
|
|
1247
|
+
}))[] | undefined;
|
|
1248
|
+
clientMarkingList?: {
|
|
1249
|
+
name: string;
|
|
1250
|
+
uuid: string;
|
|
1251
|
+
}[] | undefined;
|
|
1252
|
+
}[];
|
|
1253
|
+
};
|
|
1254
|
+
message?: string | undefined;
|
|
1255
|
+
}>;
|
|
1256
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
1257
|
+
}
|