@floristcloud/api-lib 1.1.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/commands/auth/index.ts +1 -0
- package/commands/auth/login-user.command.ts +0 -1
- package/commands/auth/mobile-login-user.command.ts +24 -0
- package/commands/auth/reset-password-by-security-code.command.ts +5 -2
- package/commands/index.ts +7 -1
- package/commands/session/create-ws-ticket.command.ts +10 -0
- package/commands/session/get-active-sessions.query.ts +11 -2
- package/commands/session/index.ts +2 -0
- package/commands/session/validate-ws-ticket-s2s.query.ts +12 -0
- package/package.json +5 -3
- package/schemas/index.ts +0 -1
- package/build/commands/action-log/create-action-log.command.js +0 -15
- package/build/commands/action-log/get-action-log-list-for-client.query.js +0 -34
- package/build/commands/action-log/get-action-log-list.query.js +0 -35
- package/build/commands/action-log/index.js +0 -19
- package/build/commands/auth/index.js +0 -23
- package/build/commands/auth/login-user.command.js +0 -23
- package/build/commands/auth/register-user.command.js +0 -21
- package/build/commands/auth/reset-password-by-admin.command.js +0 -15
- package/build/commands/auth/reset-password-by-security-code.command.js +0 -21
- package/build/commands/auth/reset-password-by-token.command.js +0 -26
- package/build/commands/auth/reset-password-by-user.command.js +0 -15
- package/build/commands/auth/restore-password-by-security-code.command.js +0 -16
- package/build/commands/bank-payment/apply-bank-payment-event.command.js +0 -18
- package/build/commands/bank-payment/get-bank-payment-list.query.js +0 -38
- package/build/commands/bank-payment/get-bank-payment-match-suggestions.query.js +0 -12
- package/build/commands/bank-payment/index.js +0 -20
- package/build/commands/bank-payment/update-bank-payment-status.query.js +0 -19
- package/build/commands/bank-payment-rule/create-bank-payment-rule.command.js +0 -22
- package/build/commands/bank-payment-rule/delete-bank-payment-rule.command.js +0 -14
- package/build/commands/bank-payment-rule/get-bank-payment-rule-list.query.js +0 -18
- package/build/commands/bank-payment-rule/get-bank-payment-rule.query.js +0 -13
- package/build/commands/bank-payment-rule/index.js +0 -21
- package/build/commands/bank-payment-rule/update-bank-payment-rule.command.js +0 -22
- package/build/commands/branch/create-branch.command.js +0 -23
- package/build/commands/branch/delete-branch.command.js +0 -19
- package/build/commands/branch/get-branch-list-all-by-client-uuid.query.js +0 -15
- package/build/commands/branch/get-branch-list.query.js +0 -18
- package/build/commands/branch/get-branch.query.js +0 -15
- package/build/commands/branch/index.js +0 -22
- package/build/commands/branch/update-branch.command.js +0 -23
- package/build/commands/category/create-category.command.js +0 -21
- package/build/commands/category/delete-category.command.js +0 -19
- package/build/commands/category/get-category-by-uuid.query.js +0 -17
- package/build/commands/category/get-category-list.query.js +0 -30
- package/build/commands/category/index.js +0 -22
- package/build/commands/category/update-category-command.js +0 -23
- package/build/commands/category/webshop/get-category-list-for-client.query.js +0 -13
- package/build/commands/category-alias/create-category-alias.command.js +0 -17
- package/build/commands/category-alias/delete-category-alias.command.js +0 -19
- package/build/commands/category-alias/get-category-alias-by-uuid.query.js +0 -17
- package/build/commands/category-alias/get-category-alias-list-by-category-uuid.query.js +0 -21
- package/build/commands/category-alias/get-category-alias-list.query.js +0 -23
- package/build/commands/category-alias/index.js +0 -17
- package/build/commands/category-alias/update-category-alias.command.js +0 -18
- package/build/commands/category-template/create-category-template.command.js +0 -20
- package/build/commands/category-template/get-category-template-by-uuid.query.js +0 -13
- package/build/commands/category-template/get-category-template-list.query.js +0 -13
- package/build/commands/category-template/index.js +0 -20
- package/build/commands/category-template/update-category-template.command.js +0 -20
- package/build/commands/client/attach-user-to-client.command.js +0 -17
- package/build/commands/client/create-client.command.js +0 -36
- package/build/commands/client/delete-client.command.js +0 -19
- package/build/commands/client/detach-user-from-client.command.js +0 -15
- package/build/commands/client/get-client-calculate.query.js +0 -17
- package/build/commands/client/get-client-debt-list.query.js +0 -25
- package/build/commands/client/get-client-filters-values.query.js +0 -17
- package/build/commands/client/get-client-list.query.js +0 -31
- package/build/commands/client/get-client.query.js +0 -15
- package/build/commands/client/import-client.command.js +0 -22
- package/build/commands/client/index.js +0 -36
- package/build/commands/client/marking/create-client-marking.command.js +0 -17
- package/build/commands/client/marking/delete-client-marking.command.js +0 -15
- package/build/commands/client/marking/get-client-marking-by-client-list.command.js +0 -16
- package/build/commands/client/marking/update-client-marking.command.js +0 -17
- package/build/commands/client/profile/create-client-individual-profile.command.js +0 -20
- package/build/commands/client/profile/create-client-legal-profile.command.js +0 -19
- package/build/commands/client/profile/delete-client-individual-profile.command.js +0 -17
- package/build/commands/client/profile/delete-client-legal-profile.command.js +0 -17
- package/build/commands/client/profile/get-client-individual-profile.query.js +0 -17
- package/build/commands/client/profile/index.js +0 -23
- package/build/commands/client/profile/update-client-individual-profile.command.js +0 -20
- package/build/commands/client/profile/update-client-legal-profile.command.js +0 -19
- package/build/commands/client/set-balance-calculate-client.command.js +0 -13
- package/build/commands/client/update-client.command.js +0 -38
- package/build/commands/client/webshop/register-client-webshop.command.js +0 -23
- package/build/commands/client/webshop/update-client-for-client.command.js +0 -21
- package/build/commands/client-payment-identifier/create-client-payment-identifier.command.js +0 -22
- package/build/commands/client-payment-identifier/delete-client-payment-identifier.command.js +0 -14
- package/build/commands/client-payment-identifier/get-client-payment-identifier-list.query.js +0 -27
- package/build/commands/client-payment-identifier/index.js +0 -19
- package/build/commands/company/createCompany.command.js +0 -20
- package/build/commands/company/createCompanyWithUser.command.js +0 -27
- package/build/commands/company/deleteCompany.command.js +0 -19
- package/build/commands/company/getCompany.query.js +0 -17
- package/build/commands/company/getCompanyList.query.js +0 -18
- package/build/commands/company/index.js +0 -22
- package/build/commands/company/updateCompany.command.js +0 -17
- package/build/commands/consignment/create-consignment.command.js +0 -25
- package/build/commands/consignment/delete-consignment.command.js +0 -18
- package/build/commands/consignment/execute-consignment-product-update.command.js +0 -53
- package/build/commands/consignment/export-consignment.command.js +0 -30
- package/build/commands/consignment/get-access-clients-consignment.query.js +0 -13
- package/build/commands/consignment/get-client-uuids-consignment.query.js +0 -14
- package/build/commands/consignment/get-consignment-filters-values.query.js +0 -16
- package/build/commands/consignment/get-consignment-list.query.js +0 -42
- package/build/commands/consignment/get-consignment.query.js +0 -15
- package/build/commands/consignment/import-consignment.command.js +0 -38
- package/build/commands/consignment/import-packing-consignment.command.js +0 -26
- package/build/commands/consignment/index.js +0 -30
- package/build/commands/consignment/update-consignment.command.js +0 -25
- package/build/commands/consignment/upsert-access-clients-consignment.command.js +0 -23
- package/build/commands/consignment/validate-consignment-distribution.query.js +0 -15
- package/build/commands/consignment-import-schema/create-consignment-import-scheme.command.js +0 -17
- package/build/commands/consignment-import-schema/get-all-consignment-import-schema.query.js +0 -15
- package/build/commands/consignment-import-schema/get-cosignment-import-schema.query.js +0 -15
- package/build/commands/consignment-import-schema/index.js +0 -18
- package/build/commands/consignment-import-schema/update-consignment-import-schema.command.js +0 -14
- package/build/commands/delivery-route/attach-order-list-to-delivery-route.command.js +0 -16
- package/build/commands/delivery-route/create-delivery-route.command.js +0 -14
- package/build/commands/delivery-route/delete-delivery-route.command.js +0 -14
- package/build/commands/delivery-route/detach-order-list-to-delivery-route.command.js +0 -17
- package/build/commands/delivery-route/get-delivery-route-list.query.js +0 -25
- package/build/commands/delivery-route/get-delivery-route.query.js +0 -15
- package/build/commands/delivery-route/index.js +0 -23
- package/build/commands/delivery-route/update-delivery-route.command.js +0 -14
- package/build/commands/discount-rules/create-discount-rules.command.js +0 -17
- package/build/commands/discount-rules/delete-discount-rules.command.js +0 -13
- package/build/commands/discount-rules/get-discount-rules-all.query.js +0 -20
- package/build/commands/discount-rules/get-discount-rules-extended.query.js +0 -13
- package/build/commands/discount-rules/get-discount-rules-list.query.js +0 -18
- package/build/commands/discount-rules/get-discount-rules.query.js +0 -13
- package/build/commands/discount-rules/index.js +0 -25
- package/build/commands/discount-rules/split-quantity-discount-rules-for-client.query.js +0 -15
- package/build/commands/discount-rules/split-quantity-discount-rules.query.js +0 -15
- package/build/commands/discount-rules/update-discount-rules.command.js +0 -17
- package/build/commands/distribution/create-distribution.command.js +0 -15
- package/build/commands/distribution/index.js +0 -19
- package/build/commands/distribution/update-is-packed-distribution.command.js +0 -17
- package/build/commands/distribution/validate-distribution-by-product.query.js +0 -15
- package/build/commands/domain/create-domain.command.js +0 -14
- package/build/commands/domain/delete-domain.command.js +0 -13
- package/build/commands/domain/get-domain-by-uuid.query.js +0 -13
- package/build/commands/domain/get-domain-list.query.js +0 -18
- package/build/commands/domain/index.js +0 -21
- package/build/commands/domain/update-domain.command.js +0 -14
- package/build/commands/employee-schedule/create-employee-schedule.command.js +0 -14
- package/build/commands/employee-schedule/delete-employee-schedule.command.js +0 -13
- package/build/commands/employee-schedule/get-employee-schedule-extended-list.query.js +0 -19
- package/build/commands/employee-schedule/get-employee-schedule-list.query.js +0 -38
- package/build/commands/employee-schedule/index.js +0 -21
- package/build/commands/employee-schedule/update-employee-schedule.command.js +0 -14
- package/build/commands/file/deleteFile.command.js +0 -17
- package/build/commands/file/index.js +0 -18
- package/build/commands/file/uploadFile.command.js +0 -8
- package/build/commands/index.js +0 -65
- package/build/commands/integration/index.js +0 -18
- package/build/commands/integration/telegram/generate-telegram-link.command.js +0 -17
- package/build/commands/integration/telegram/get-telegram-link-status.command.js +0 -19
- package/build/commands/integration/telegram/index.js +0 -19
- package/build/commands/integration/telegram/unlink-telegram.command.js +0 -14
- package/build/commands/integration/telegram-staff/generate-telegram-staff-link.command.js +0 -17
- package/build/commands/integration/telegram-staff/get-telegram-staff-link-status.command.js +0 -19
- package/build/commands/integration/telegram-staff/index.js +0 -19
- package/build/commands/integration/telegram-staff/unlink-telegram-staff.command.js +0 -16
- package/build/commands/message/get-clients-messages-context-with-unread.query.js +0 -23
- package/build/commands/message/get-context-unread-count.query.js +0 -21
- package/build/commands/message/get-contexts-with-unread.query.js +0 -22
- package/build/commands/message/index.js +0 -22
- package/build/commands/message/list-context-messages.query.js +0 -23
- package/build/commands/message/mark-context-read.command.js +0 -21
- package/build/commands/message/send-context-message.command.js +0 -22
- package/build/commands/money-account/create-money-account.command.js +0 -18
- package/build/commands/money-account/delete-money-account.command.js +0 -14
- package/build/commands/money-account/get-money-account-by-criteria.query.js +0 -15
- package/build/commands/money-account/get-money-account-list.query.js +0 -21
- package/build/commands/money-account/get-money-account.query.js +0 -13
- package/build/commands/money-account/index.js +0 -22
- package/build/commands/money-account/update-money-account.command.js +0 -19
- package/build/commands/notification/index.js +0 -17
- package/build/commands/notification/send-staff-notification-s2s.command.js +0 -21
- package/build/commands/order/apply-order-discount.command.js +0 -18
- package/build/commands/order/copy-order.command.js +0 -13
- package/build/commands/order/create-order.command.js +0 -26
- package/build/commands/order/delete-order.command.js +0 -14
- package/build/commands/order/export-order-invoice.command.js +0 -12
- package/build/commands/order/get-order-list.query.js +0 -49
- package/build/commands/order/get-order.query.js +0 -15
- package/build/commands/order/group/deletet-group-order.command.js +0 -18
- package/build/commands/order/group/get-group-order-invoice-info.query.js +0 -27
- package/build/commands/order/group/merge-orders.command.js +0 -26
- package/build/commands/order/group/send-group-order-invoice.command.js +0 -21
- package/build/commands/order/group/split-group-order.command.js +0 -17
- package/build/commands/order/group/update-group-order-status.command.js +0 -20
- package/build/commands/order/group/update-group-order-tag.command.js +0 -19
- package/build/commands/order/group/update-group-order-type.command.js +0 -20
- package/build/commands/order/index.js +0 -41
- package/build/commands/order/send-order-invoice.command.js +0 -26
- package/build/commands/order/update-order.command.js +0 -30
- package/build/commands/order/webshop/create-cart.command.js +0 -15
- package/build/commands/order/webshop/get-order-for-client.query.js +0 -15
- package/build/commands/order/webshop/get-order-list-for-client.query.js +0 -53
- package/build/commands/order/webshop/get-order-sales-by-month.query.js +0 -16
- package/build/commands/order/webshop/update-cart.command.js +0 -27
- package/build/commands/order/zeroing-receipt-delivery-order.command.js +0 -13
- package/build/commands/order-delivery/create-order-delivery.command.js +0 -21
- package/build/commands/order-delivery/delete-order-delivery.command.js +0 -16
- package/build/commands/order-delivery/index.js +0 -19
- package/build/commands/order-delivery/update-order-delivery.command.js +0 -25
- package/build/commands/order-product/create-order-product.command.js +0 -22
- package/build/commands/order-product/delete-order-product.command.js +0 -16
- package/build/commands/order-product/get-order-product-list-all.query.js +0 -15
- package/build/commands/order-product/get-order-product-list-for-distribute.query.js +0 -18
- package/build/commands/order-product/get-order-product-list.query.js +0 -19
- package/build/commands/order-product/get-order-product.query.js +0 -15
- package/build/commands/order-product/group/delete-group-order-product.command.js +0 -18
- package/build/commands/order-product/group/update-group-order-product-order.command.js +0 -24
- package/build/commands/order-product/group/update-group-order-product-tag.command.js +0 -19
- package/build/commands/order-product/group/verify-group-order-product.command.js +0 -19
- package/build/commands/order-product/group/zeroing-receipt-order-product.command.js +0 -17
- package/build/commands/order-product/index.js +0 -35
- package/build/commands/order-product/update-order-product.command.js +0 -23
- package/build/commands/order-product/verify-order-product.command.js +0 -15
- package/build/commands/order-product/webshop/create-order-product-for-client.command.js +0 -18
- package/build/commands/order-product/webshop/get-active-stepper-positions-order.query.js +0 -14
- package/build/commands/order-product/webshop/get-order-product-for-client-list.query.js +0 -15
- package/build/commands/order-product/webshop/set-order-product-quantity-webshop.command.js +0 -14
- package/build/commands/order-product/webshop/update-order-product-for-client.command.js +0 -19
- package/build/commands/package/create-package.command.js +0 -14
- package/build/commands/package/delete-package.command.js +0 -16
- package/build/commands/package/get-package-by-uuid.query.js +0 -12
- package/build/commands/package/get-package-filters-values.query.js +0 -27
- package/build/commands/package/get-package-list.query.js +0 -21
- package/build/commands/package/index.js +0 -23
- package/build/commands/package/reorder-packages.command.js +0 -21
- package/build/commands/package/update-package.command.js +0 -14
- package/build/commands/package/validate-product-package.query.js +0 -15
- package/build/commands/pre-order/create-order-from-pre-order.command.js +0 -20
- package/build/commands/pre-order/create-pre-order.command.js +0 -14
- package/build/commands/pre-order/delete-pre-order.command.js +0 -13
- package/build/commands/pre-order/export-pre-order.command.js +0 -12
- package/build/commands/pre-order/get-pre-order-by-pre-order-collection-uuid.command.js +0 -12
- package/build/commands/pre-order/get-pre-order-list.query.js +0 -26
- package/build/commands/pre-order/get-pre-order.query.js +0 -12
- package/build/commands/pre-order/get-standing-order-import-template.command.js +0 -13
- package/build/commands/pre-order/group/analyze-copy-pre-orders.command.js +0 -23
- package/build/commands/pre-order/group/analyze-create-orders-from-pre-orders.command.js +0 -41
- package/build/commands/pre-order/group/analyze-create-pre-orders-from-standing-orders.command.js +0 -38
- package/build/commands/pre-order/group/group-copy-pre-orders-to-collection.command.js +0 -40
- package/build/commands/pre-order/group/group-create-orders-from-pre-orders.command.js +0 -39
- package/build/commands/pre-order/group/group-create-pre-orders-from-standing-orders.command.js +0 -36
- package/build/commands/pre-order/group/group-delete-pre-order.command.js +0 -18
- package/build/commands/pre-order/group/group-update-pre-order.command.js +0 -20
- package/build/commands/pre-order/group/index.js +0 -26
- package/build/commands/pre-order/group/merge-pre-orders.command.js +0 -33
- package/build/commands/pre-order/import-standing-order.command.js +0 -24
- package/build/commands/pre-order/index.js +0 -29
- package/build/commands/pre-order/update-pre-order.command.js +0 -14
- package/build/commands/pre-order/webshop/checkout-pre-order-webshop.command.js +0 -20
- package/build/commands/pre-order/webshop/create-pre-order-webshop.command.js +0 -14
- package/build/commands/pre-order/webshop/delete-pre-order-webshop.command.js +0 -13
- package/build/commands/pre-order/webshop/get-pre-order-list-webshop.command.js +0 -19
- package/build/commands/pre-order/webshop/index.js +0 -21
- package/build/commands/pre-order/webshop/update-pre-order-webshop.command.js +0 -14
- package/build/commands/pre-order-collection/copy-pre-order-collection.command.js +0 -13
- package/build/commands/pre-order-collection/create-pre-order-collection.command.js +0 -14
- package/build/commands/pre-order-collection/delete-pre-order-collection.command.js +0 -14
- package/build/commands/pre-order-collection/get-pre-order-collection-all.query.js +0 -13
- package/build/commands/pre-order-collection/get-pre-order-collection-list.query.js +0 -23
- package/build/commands/pre-order-collection/get-pre-order-collection.query.js +0 -13
- package/build/commands/pre-order-collection/index.js +0 -24
- package/build/commands/pre-order-collection/match-images-for-collection.command.js +0 -20
- package/build/commands/pre-order-collection/update-pre-order-collection.command.js +0 -14
- package/build/commands/pre-order-collection/webshop/get-pre-order-collection-list-with-categories.query.js +0 -13
- package/build/commands/pre-order-collection-item/create-group-pre-order-collection-item.command.js +0 -16
- package/build/commands/pre-order-collection-item/create-pre-order-collection-item.command.js +0 -14
- package/build/commands/pre-order-collection-item/delete-group-pre-order-collection-item.command.js +0 -19
- package/build/commands/pre-order-collection-item/delete-pre-order-collection-item.command.js +0 -14
- package/build/commands/pre-order-collection-item/execute-pre-order-collection-item-update.command.js +0 -50
- package/build/commands/pre-order-collection-item/export-pre-order-collection-item-with-clients-horizontal.query.js +0 -16
- package/build/commands/pre-order-collection-item/export-pre-order-collection-item-with-clients-vertical.query.js +0 -19
- package/build/commands/pre-order-collection-item/get-active-pre-order-collection-item-list.query.js +0 -19
- package/build/commands/pre-order-collection-item/get-pre-order-collection-item-extended-with-clients-pre-order-product-list.query.js +0 -22
- package/build/commands/pre-order-collection-item/get-pre-order-collection-item-list-filter-values-for-client.query.js +0 -26
- package/build/commands/pre-order-collection-item/get-pre-order-collection-item-list-filter-values.query.js +0 -24
- package/build/commands/pre-order-collection-item/get-pre-order-collection-item-list-for-client.query.js +0 -24
- package/build/commands/pre-order-collection-item/get-pre-order-collection-item-list.query.js +0 -24
- package/build/commands/pre-order-collection-item/get-pre-order-collection-item.query.js +0 -13
- package/build/commands/pre-order-collection-item/index.js +0 -42
- package/build/commands/pre-order-collection-item/move-pre-order-collection-items-analyze.command.js +0 -51
- package/build/commands/pre-order-collection-item/move-pre-order-collection-items-execute.command.js +0 -16
- package/build/commands/pre-order-collection-item/multiplicity-option/create-pre-order-collection-item-multiplicity-option.command.js +0 -20
- package/build/commands/pre-order-collection-item/multiplicity-option/delete-pre-order-collection-item-multiplicity-option.command.js +0 -14
- package/build/commands/pre-order-collection-item/multiplicity-option/get-pre-order-collection-item-multiplicity-option-titles.query.js +0 -14
- package/build/commands/pre-order-collection-item/multiplicity-option/get-pre-order-collection-item-multiplicity-options.query.js +0 -15
- package/build/commands/pre-order-collection-item/multiplicity-option/reorder-pre-order-collection-item-multiplicity-options.command.js +0 -21
- package/build/commands/pre-order-collection-item/multiplicity-option/update-pre-order-collection-item-multiplicity-option.command.js +0 -22
- package/build/commands/pre-order-collection-item/update-group-pre-order-collection-item.command.js +0 -20
- package/build/commands/pre-order-collection-item/update-pre-order-collection-item-product-maching.command.js +0 -18
- package/build/commands/pre-order-collection-item/update-pre-order-collection-item.command.js +0 -14
- package/build/commands/pre-order-product/create-manually-pre-order-product-for-standing-order.command.js +0 -22
- package/build/commands/pre-order-product/create-manually-pre-order-product.command.js +0 -23
- package/build/commands/pre-order-product/create-pre-order-product-webshop.command.js +0 -14
- package/build/commands/pre-order-product/create-pre-order-product.command.js +0 -14
- package/build/commands/pre-order-product/delete-many-pre-order-product-by-pre-order-collection-item.command.js +0 -14
- package/build/commands/pre-order-product/delete-pre-order-product-webshop.command.js +0 -14
- package/build/commands/pre-order-product/delete-pre-order-product.command.js +0 -13
- package/build/commands/pre-order-product/get-active-stepper-positions.query.js +0 -17
- package/build/commands/pre-order-product/get-pre-order-product-extended-list.query.js +0 -18
- package/build/commands/pre-order-product/get-pre-order-product-list.query.js +0 -18
- package/build/commands/pre-order-product/get-pre-order-product.query.js +0 -13
- package/build/commands/pre-order-product/get-pre-order-products-by-pre-order-list.command.js +0 -17
- package/build/commands/pre-order-product/get-pre-order-products-by-pre-order.command.js +0 -13
- package/build/commands/pre-order-product/group/move-group-pre-order-product.command.js +0 -20
- package/build/commands/pre-order-product/index.js +0 -34
- package/build/commands/pre-order-product/purchase-many-pre-order-product-by-pre-order-collection-item.command.js +0 -18
- package/build/commands/pre-order-product/set-pre-order-product-quantity-webshop.command.js +0 -14
- package/build/commands/pre-order-product/update-pre-order-product-webshop.command.js +0 -14
- package/build/commands/pre-order-product/update-pre-order-product.command.js +0 -14
- package/build/commands/product/create-product.command.js +0 -43
- package/build/commands/product/delete-product.command.js +0 -16
- package/build/commands/product/generate-product-qr.query.js +0 -27
- package/build/commands/product/get-all-product-by-consignment.query.js +0 -15
- package/build/commands/product/get-product-list-filters-values.query.js +0 -38
- package/build/commands/product/get-product-list.query.js +0 -26
- package/build/commands/product/get-product-quantity-calculate.query.js +0 -25
- package/build/commands/product/get-product.query.js +0 -15
- package/build/commands/product/get-products-unique.query.js +0 -22
- package/build/commands/product/group/delete-group-product.command.js +0 -25
- package/build/commands/product/group/index.js +0 -23
- package/build/commands/product/group/update-group-product-category.command.js +0 -19
- package/build/commands/product/group/update-group-product-consignment.command.js +0 -19
- package/build/commands/product/group/update-group-product-is-open-by-consignment.command.js +0 -18
- package/build/commands/product/group/update-group-product-is-open.command.js +0 -19
- package/build/commands/product/group/update-group-product-prices.command.js +0 -24
- package/build/commands/product/group/update-group-product-update-batch.command.js +0 -44
- package/build/commands/product/index.js +0 -39
- package/build/commands/product/match-images-for-products.command.js +0 -20
- package/build/commands/product/multiplicity-option/create-product-multiplicity-option.command.js +0 -20
- package/build/commands/product/multiplicity-option/delete-product-multiplicity-option.command.js +0 -14
- package/build/commands/product/multiplicity-option/get-product-multiplicity-option-titles.query.js +0 -14
- package/build/commands/product/multiplicity-option/get-product-multiplicity-options.query.js +0 -15
- package/build/commands/product/multiplicity-option/reorder-product-multiplicity-options.command.js +0 -21
- package/build/commands/product/multiplicity-option/update-product-multiplicity-option.command.js +0 -22
- package/build/commands/product/update-product.command.js +0 -43
- package/build/commands/product/webshop/get-client-product-list-filters-values.query.js +0 -31
- package/build/commands/product/webshop/get-product-delivery-dates.query.js +0 -16
- package/build/commands/product/webshop/get-product-for-client.query.js +0 -15
- package/build/commands/product/webshop/get-product-list-for-client.query.js +0 -29
- package/build/commands/product-configuration/create-product-configuration.command.js +0 -14
- package/build/commands/product-configuration/delete-product-configuration.command.js +0 -15
- package/build/commands/product-configuration/find-product-configuration-by-attributes.query.js +0 -24
- package/build/commands/product-configuration/get-product-configuration-list.query.js +0 -28
- package/build/commands/product-configuration/get-product-configuration.query.js +0 -15
- package/build/commands/product-configuration/index.js +0 -22
- package/build/commands/product-configuration/update-product-configuration.command.js +0 -14
- package/build/commands/product-image/alias/create-product-image-alias.command.js +0 -17
- package/build/commands/product-image/alias/delete-product-image-alias.command.js +0 -15
- package/build/commands/product-image/alias/update-product-image-alias.command.js +0 -17
- package/build/commands/product-image/create-product-image.command.js +0 -23
- package/build/commands/product-image/delete-product-image.command.js +0 -13
- package/build/commands/product-image/get-product-image-filter-values.query.js +0 -24
- package/build/commands/product-image/get-product-image-list.query.js +0 -29
- package/build/commands/product-image/get-product-image.query.js +0 -13
- package/build/commands/product-image/group/delete-group-product-image.command.js +0 -18
- package/build/commands/product-image/group/update-group-product-image.command.js +0 -20
- package/build/commands/product-image/index.js +0 -28
- package/build/commands/product-image/sync-product-image.command.js +0 -14
- package/build/commands/product-image/update-product-image.command.js +0 -23
- package/build/commands/product-image-template/create-product-image-template.command.js +0 -15
- package/build/commands/product-image-template/delete-group-product-image-template.command.js +0 -17
- package/build/commands/product-image-template/delete-product-image-template.command.js +0 -13
- package/build/commands/product-image-template/get-product-image-template-list.query.js +0 -20
- package/build/commands/product-image-template/get-product-image-template.query.js +0 -13
- package/build/commands/product-image-template/index.js +0 -23
- package/build/commands/product-image-template/start-parsing-product-image-template.command.js +0 -14
- package/build/commands/product-image-template/update-product-image-template.command.js +0 -15
- package/build/commands/product-in-package/create-product-in-package.command.js +0 -15
- package/build/commands/product-in-package/delete-from-orders-by-package.command.js +0 -16
- package/build/commands/product-in-package/delete-product-in-package.command.js +0 -14
- package/build/commands/product-in-package/get-product-in-package-by-uuid.query.js +0 -13
- package/build/commands/product-in-package/index.js +0 -21
- package/build/commands/product-in-package/update-product-in-package.command.js +0 -15
- package/build/commands/report/export-client-statement.query.js +0 -31
- package/build/commands/report/export-inventory-movement.query.js +0 -52
- package/build/commands/report/export-inventory-stock.query.js +0 -32
- package/build/commands/report/export-inventory-turnover.query.js +0 -56
- package/build/commands/report/export-sales-by-client.query.js +0 -39
- package/build/commands/report/export-sales-revenue.query.js +0 -36
- package/build/commands/report/get-report-by-client-weeks.query.js +0 -31
- package/build/commands/report/get-report-for-period.query.js +0 -44
- package/build/commands/report/get-report-group-by-client.query.js +0 -46
- package/build/commands/report/get-report-group-by-position.query.js +0 -68
- package/build/commands/report/index.js +0 -26
- package/build/commands/session/get-active-sessions.query.js +0 -12
- package/build/commands/session/index.js +0 -11
- package/build/commands/session/session-logout.command.js +0 -11
- package/build/commands/session/session-revoke-all.command.js +0 -11
- package/build/commands/session/validate-session-s2s.query.js +0 -25
- package/build/commands/settings/get-settings-for-admin.query.js +0 -13
- package/build/commands/settings/get-settings.query.js +0 -13
- package/build/commands/settings/index.js +0 -19
- package/build/commands/settings/update-settings.command.js +0 -14
- package/build/commands/transaction/apply-prepayment-transaction.command.js +0 -17
- package/build/commands/transaction/create-transaction.command.js +0 -24
- package/build/commands/transaction/delete-transaction.command.js +0 -16
- package/build/commands/transaction/export-transactions.command.js +0 -36
- package/build/commands/transaction/generate-check-transaction.command.js +0 -18
- package/build/commands/transaction/generate-pre-payment-check.command.js +0 -18
- package/build/commands/transaction/get-sum-transaction-by-money-account.query.js +0 -32
- package/build/commands/transaction/get-transaction-list.query.js +0 -38
- package/build/commands/transaction/get-transaction-summary.query.js +0 -39
- package/build/commands/transaction/get-transaction.query.js +0 -15
- package/build/commands/transaction/index.js +0 -28
- package/build/commands/transaction/update-transaction.command.js +0 -19
- package/build/commands/transaction/webshop/get-transaction-list-for-client.query.js +0 -37
- package/build/commands/type/create-type.command.js +0 -18
- package/build/commands/type/delete-type.command.js +0 -17
- package/build/commands/type/get-type-by-criteria.query.js +0 -15
- package/build/commands/type/get-type-by-uuid.query.js +0 -17
- package/build/commands/type/get-type-list.query.js +0 -24
- package/build/commands/type/index.js +0 -24
- package/build/commands/type/update-type-rank-many.command.js +0 -22
- package/build/commands/type/update-type-rank.command.js +0 -19
- package/build/commands/type/update-type.command.js +0 -18
- package/build/commands/user/attachUserToCompany.command.js +0 -13
- package/build/commands/user/create-user-global.command.js +0 -28
- package/build/commands/user/createUser.command.js +0 -14
- package/build/commands/user/createUserByClientId.command.js +0 -29
- package/build/commands/user/createUserForCompany.command.js +0 -27
- package/build/commands/user/generate-and-send-password-by-admin.command.js +0 -16
- package/build/commands/user/get-user-list-s2s.query.js +0 -13
- package/build/commands/user/get-user-list.query.js +0 -26
- package/build/commands/user/getUser.command.js +0 -14
- package/build/commands/user/index.js +0 -27
- package/build/commands/user/update-password-by-user.command.js +0 -15
- package/build/commands/user/update-user.command.js +0 -19
- package/build/commands/user/updateRole.command.js +0 -18
- package/build/commands/work-session/close-work-session-for-employee.command.js +0 -13
- package/build/commands/work-session/create-many-work-session.command.js +0 -17
- package/build/commands/work-session/create-work-session-for-employee.command.js +0 -14
- package/build/commands/work-session/delete-work-session.command.js +0 -13
- package/build/commands/work-session/export-overtime.query.js +0 -26
- package/build/commands/work-session/get-work-session-extended-list.query.js +0 -21
- package/build/commands/work-session/index.js +0 -23
- package/build/commands/work-session/update-work-session.command.js +0 -14
- package/build/commands/wrire-off-archive/create-wrire-off-archive.command.js +0 -20
- package/build/commands/wrire-off-archive/get-write-off-archive-files.command.js +0 -22
- package/build/commands/wrire-off-archive/index.js +0 -19
- package/build/commands/wrire-off-archive/info-wrire-off-archive.command.js +0 -20
- package/build/commands/write-off/create-write-off-from-order.command.js +0 -21
- package/build/commands/write-off/create-write-off-from-pending.command.js +0 -30
- package/build/commands/write-off/create-write-off-images.command.js +0 -17
- package/build/commands/write-off/create-write-off.command.js +0 -20
- package/build/commands/write-off/delete-write-off-image.command.js +0 -15
- package/build/commands/write-off/delete-write-off.command.js +0 -16
- package/build/commands/write-off/get-write-off-list.query.js +0 -27
- package/build/commands/write-off/get-write-off-reason-list.query.js +0 -16
- package/build/commands/write-off/get-write-off-sum-by-order.query.js +0 -14
- package/build/commands/write-off/get-write-off.query.js +0 -13
- package/build/commands/write-off/index.js +0 -29
- package/build/commands/write-off/update-write-off-price.command.js +0 -18
- package/build/commands/write-off/update-write-off-status.command.js +0 -29
- package/build/commands/write-off/webshop/create-write-off-from-order-for-client.command.js +0 -20
- package/build/commands/write-off/webshop/get-write-off-list-by-order.query.js +0 -15
- package/build/commands/write-off/webshop/index.js +0 -18
- package/build/constant/error-i18n-key.js +0 -21
- package/build/constant/error.js +0 -915
- package/build/constant/index.js +0 -19
- package/build/constant/verbose.js +0 -22
- package/build/enum/action-log-type.enum.js +0 -18
- package/build/enum/bank-payment-event-status.enum.js +0 -9
- package/build/enum/bank-payment-rule-match-type.enum.js +0 -10
- package/build/enum/bank-provider.enum.js +0 -7
- package/build/enum/category-status.enum.js +0 -8
- package/build/enum/chat-has-manager-mode.enum.js +0 -9
- package/build/enum/chat-no-manager-mode.enum.js +0 -8
- package/build/enum/client-import-entity-property.enum.js +0 -37
- package/build/enum/client-legal-type.enum.js +0 -8
- package/build/enum/client-statement-type.enum.js +0 -9
- package/build/enum/client-status.enum.js +0 -9
- package/build/enum/client-type.enum.js +0 -8
- package/build/enum/companyStatus.enum.js +0 -9
- package/build/enum/consignment-access-client-status.enum.js +0 -8
- package/build/enum/consignment-distribution-validation-status.enum.js +0 -8
- package/build/enum/consignment-distribution-validation-type.enum.js +0 -8
- package/build/enum/consignment-import-errors.enum.js +0 -9
- package/build/enum/consignment-import-schema-relation-entity-property.enum.js +0 -38
- package/build/enum/consignment-status.enum.js +0 -9
- package/build/enum/consignment-write-off-archives-status.enum.js +0 -9
- package/build/enum/context-message-context-type.enum.js +0 -9
- package/build/enum/country-code.enum.js +0 -264
- package/build/enum/delivery-route-status.enum.js +0 -9
- package/build/enum/discount-price-routing.enum.js +0 -10
- package/build/enum/discount-rules-apply-type.enum.js +0 -8
- package/build/enum/discount-rules-mode-type.enum.js +0 -8
- package/build/enum/discount-rules-status.enum.js +0 -8
- package/build/enum/discount-rules-type.enum.js +0 -11
- package/build/enum/file-expire-prefix.enum.js +0 -8
- package/build/enum/image-type.enum.js +0 -8
- package/build/enum/import-error-code.enum.js +0 -11
- package/build/enum/index.js +0 -82
- package/build/enum/inventory-movement-type.enum.js +0 -10
- package/build/enum/language.enum.js +0 -8
- package/build/enum/match-confidence.enum.js +0 -9
- package/build/enum/menu-items-url.enum.js +0 -15
- package/build/enum/money-account-status.enum.js +0 -8
- package/build/enum/notification-channel.enum.js +0 -15
- package/build/enum/notification-status.enum.js +0 -10
- package/build/enum/notification-type.enum.js +0 -12
- package/build/enum/order-active-status-list.js +0 -13
- package/build/enum/order-balance-status-list.js +0 -11
- package/build/enum/order-by.enum.js +0 -8
- package/build/enum/order-delivery-status.enum.js +0 -8
- package/build/enum/order-distribute-status-list.js +0 -10
- package/build/enum/order-restricted-status-list.js +0 -5
- package/build/enum/order-status.enum.js +0 -17
- package/build/enum/order-type.enum.js +0 -8
- package/build/enum/order-webshop-available-status-list.js +0 -15
- package/build/enum/package-status.enum.js +0 -9
- package/build/enum/package-type.enum.js +0 -36
- package/build/enum/parse-status.enum.js +0 -9
- package/build/enum/position-report-type.enum.js +0 -8
- package/build/enum/pre-order-aggregation-mode.enum.js +0 -9
- package/build/enum/pre-order-collection-item-import-entity-property.enum.js +0 -29
- package/build/enum/pre-order-collection-status.enum.js +0 -8
- package/build/enum/pre-order-collection-type.enum.js +0 -8
- package/build/enum/pre-order-status.enum.js +0 -12
- package/build/enum/product-image-created-from.enum.js +0 -8
- package/build/enum/product-image-order.enum.js +0 -8
- package/build/enum/product-in-package-status.enum.js +0 -8
- package/build/enum/report-period-type.enum.js +0 -9
- package/build/enum/sales-unit.enum.js +0 -9
- package/build/enum/security-code-status.enum.js +0 -11
- package/build/enum/session-platform.enum.js +0 -8
- package/build/enum/transaction-type-groups.js +0 -16
- package/build/enum/transaction-type.enum.js +0 -10
- package/build/enum/user-type.enum.js +0 -8
- package/build/enum/userRole.enum.js +0 -17
- package/build/enum/userStatus.enum.js +0 -9
- package/build/enum/webshop-main-display-mode.enum.js +0 -8
- package/build/enum/webshop-mode.enum.js +0 -8
- package/build/enum/write-off-status.enum.js +0 -9
- package/build/helpers/date.helper.js +0 -15
- package/build/helpers/index.js +0 -17
- package/build/index.js +0 -22
- package/build/schemas/action-log/action-log-payload.schema.js +0 -29
- package/build/schemas/action-log/action-log.schema.js +0 -105
- package/build/schemas/action-log/index.js +0 -30
- package/build/schemas/action-log/order-create-action-log.schema.js +0 -8
- package/build/schemas/action-log/order-delete-action-log-payload.schema.js +0 -8
- package/build/schemas/action-log/order-info.schema.js +0 -14
- package/build/schemas/action-log/order-product-delete-action-log.schema.js +0 -8
- package/build/schemas/action-log/order-product-info.schema.js +0 -16
- package/build/schemas/action-log/order-product-update-action-log.schema.js +0 -10
- package/build/schemas/action-log/order-update-action-log.schema.js +0 -9
- package/build/schemas/action-log/pre-order-create-action-log.schema.js +0 -8
- package/build/schemas/action-log/pre-order-delete-action-log.schema.js +0 -8
- package/build/schemas/action-log/pre-order-info.schema.js +0 -11
- package/build/schemas/action-log/pre-order-product-delete-action-log.schema.js +0 -8
- package/build/schemas/action-log/pre-order-product-info.schema.js +0 -13
- package/build/schemas/action-log/pre-order-product-update-action-log.schema.js +0 -11
- package/build/schemas/action-log/transaction-add-action-log.schema.js +0 -8
- package/build/schemas/action-log/transaction-delete-action-log.schema.js +0 -8
- package/build/schemas/action-log/transaction-info.schema.js +0 -13
- package/build/schemas/bank-payment/bank-payment.schema.js +0 -26
- package/build/schemas/bank-payment/get-bank-payment-match-suggestions.schema.js +0 -18
- package/build/schemas/bank-payment/index.js +0 -17
- package/build/schemas/bank-payment-rule/bank-payment-rule.schema.js +0 -19
- package/build/schemas/branch/branch-list.schema.js +0 -9
- package/build/schemas/branch/branch.schema.js +0 -17
- package/build/schemas/category/category.schema.js +0 -20
- package/build/schemas/category-alias/category-alias.schema.js +0 -17
- package/build/schemas/category-template/category-template.schema.js +0 -19
- package/build/schemas/category-template/index.js +0 -17
- package/build/schemas/client/client-debt.schema.js +0 -22
- package/build/schemas/client/client-individual-profile.schema.js +0 -13
- package/build/schemas/client/client-legal-profile.schema.js +0 -25
- package/build/schemas/client/client-marking.schema.js +0 -8
- package/build/schemas/client/client.schema.js +0 -53
- package/build/schemas/client/index.js +0 -21
- package/build/schemas/client-payment-identifier/client-payment-identifier.schema.js +0 -20
- package/build/schemas/company/company.schema.js +0 -14
- package/build/schemas/company/companyList.schema.js +0 -9
- package/build/schemas/consignment/consignment-distribution-validation.schema.js +0 -20
- package/build/schemas/consignment/consignment-list.schema.js +0 -9
- package/build/schemas/consignment/consignment.schema.js +0 -55
- package/build/schemas/consignment-import-schema/consignment-import-schema.scheme.js +0 -32
- package/build/schemas/consignment-import-schema/index.js +0 -17
- package/build/schemas/consignment-import-schema-relation/consignment-import-schema-relation.schema.js +0 -12
- package/build/schemas/delete-data-response.schema.js +0 -7
- package/build/schemas/delivery-route/delivery-route.schema.js +0 -49
- package/build/schemas/discount-rules/discount-rules.schema.js +0 -108
- package/build/schemas/distribution/distribution.schema.js +0 -24
- package/build/schemas/distribution/validate-distribution-by-product.schema.js +0 -9
- package/build/schemas/domain/domain.schema.js +0 -23
- package/build/schemas/employee-schedule/employee-schedule.schema.js +0 -42
- package/build/schemas/error-message.schema.js +0 -10
- package/build/schemas/file/file.schema.js +0 -7
- package/build/schemas/file/index.js +0 -17
- package/build/schemas/index.js +0 -77
- package/build/schemas/message/client-inbox-item.schema.js +0 -15
- package/build/schemas/message/context-inbox.schema.js +0 -22
- package/build/schemas/message/context-message-list.schema.js +0 -12
- package/build/schemas/message/context-message.schema.js +0 -18
- package/build/schemas/message/index.js +0 -20
- package/build/schemas/messenger-profile/index.js +0 -17
- package/build/schemas/messenger-profile/user-messenger-profile.schema.js +0 -18
- package/build/schemas/money-account/money-account.schema.js +0 -16
- package/build/schemas/order/order.schema.js +0 -62
- package/build/schemas/order-delivery/order-delivery.schema.js +0 -14
- package/build/schemas/order-product/order-product-list.schema.js +0 -13
- package/build/schemas/order-product/order-product-multiplicity-optiom.schema.js +0 -10
- package/build/schemas/order-product/order-product.schema.js +0 -70
- package/build/schemas/package/package.schema.js +0 -93
- package/build/schemas/package/validate-package.schema.js +0 -9
- package/build/schemas/pre-order/pre-order-copy.schema.js +0 -21
- package/build/schemas/pre-order/pre-order.schema.js +0 -49
- package/build/schemas/pre-order-collection/pre-order-collection.schema.js +0 -53
- package/build/schemas/pre-order-collection-item/pre-order-collection-item-multiplicity-option.schema.js +0 -11
- package/build/schemas/pre-order-collection-item/pre-order-collection-item.schema.js +0 -132
- package/build/schemas/pre-order-product/pre-order-product.schema.js +0 -126
- package/build/schemas/product/product-list.schema.js +0 -13
- package/build/schemas/product/product-multiplicity-option.schema.js +0 -11
- package/build/schemas/product/product.schema.js +0 -107
- package/build/schemas/product-configuration/product-configuration.schema.js +0 -34
- package/build/schemas/product-image/product-image-alias.schema.js +0 -8
- package/build/schemas/product-image/product-image.schema.js +0 -32
- package/build/schemas/product-image-template/product-image-template.schema.js +0 -21
- package/build/schemas/product-in-package/product-in-package.schema.js +0 -30
- package/build/schemas/report/client-by-weeks.schema.js +0 -14
- package/build/schemas/report/client-statement.schema.js +0 -13
- package/build/schemas/session/session.schema.js +0 -13
- package/build/schemas/settings/settings.schema.js +0 -224
- package/build/schemas/transaction/transaction-list.schema.js +0 -13
- package/build/schemas/transaction/transaction.schema.js +0 -31
- package/build/schemas/type/type.schema.js +0 -17
- package/build/schemas/type/typeList.schema.js +0 -9
- package/build/schemas/user/user.schema.js +0 -30
- package/build/schemas/work-session/work-session.schema.js +0 -41
- package/build/schemas/write-off/write-off-image.schema.js +0 -11
- package/build/schemas/write-off/write-off-list.schema.js +0 -9
- package/build/schemas/write-off/write-off.schema.js +0 -31
- package/build/types/client-import-data.type.js +0 -3
- package/build/types/index.js +0 -17
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ApplyOrderDiscountContractCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const ApplyOrderDiscountRequestSchema = zod_1.z.object({
|
|
6
|
-
discount: zod_1.z.coerce.number().nullable(),
|
|
7
|
-
});
|
|
8
|
-
const ApplyOrderDiscountResponseSchema = zod_1.z.object({
|
|
9
|
-
message: zod_1.z.string().optional(),
|
|
10
|
-
data: zod_1.z.object({
|
|
11
|
-
isSuccess: zod_1.z.boolean(),
|
|
12
|
-
}),
|
|
13
|
-
});
|
|
14
|
-
var ApplyOrderDiscountContractCommand;
|
|
15
|
-
(function (ApplyOrderDiscountContractCommand) {
|
|
16
|
-
ApplyOrderDiscountContractCommand.RequestSchema = ApplyOrderDiscountRequestSchema;
|
|
17
|
-
ApplyOrderDiscountContractCommand.ResponseSchema = ApplyOrderDiscountResponseSchema;
|
|
18
|
-
})(ApplyOrderDiscountContractCommand || (exports.ApplyOrderDiscountContractCommand = ApplyOrderDiscountContractCommand = {}));
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CopyOrderContractCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const schemas_1 = require("../../schemas");
|
|
6
|
-
const CopyOrderResponseSchema = zod_1.z.object({
|
|
7
|
-
message: zod_1.z.string().optional(),
|
|
8
|
-
data: schemas_1.OrderSchema,
|
|
9
|
-
});
|
|
10
|
-
var CopyOrderContractCommand;
|
|
11
|
-
(function (CopyOrderContractCommand) {
|
|
12
|
-
CopyOrderContractCommand.ResponseSchema = CopyOrderResponseSchema;
|
|
13
|
-
})(CopyOrderContractCommand || (exports.CopyOrderContractCommand = CopyOrderContractCommand = {}));
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CreateOrderContractCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const enum_1 = require("../../enum");
|
|
6
|
-
const schemas_1 = require("../../schemas");
|
|
7
|
-
const CreateOrderRequestSchema = zod_1.z.object({
|
|
8
|
-
clientUUID: zod_1.z.uuid(),
|
|
9
|
-
branchUUID: zod_1.z.uuid().nullable(),
|
|
10
|
-
deliveryCost: zod_1.z.number(),
|
|
11
|
-
deliveryVat: zod_1.z.number().nullable(),
|
|
12
|
-
type: zod_1.z.nativeEnum(enum_1.OrderTypeEnum),
|
|
13
|
-
comment: zod_1.z.string().nullable(),
|
|
14
|
-
clientComment: zod_1.z.string().nullable(),
|
|
15
|
-
tag: zod_1.z.string().nullable(),
|
|
16
|
-
delivery: schemas_1.OrderDeliverySchema.omit({ uuid: true }).nullable(),
|
|
17
|
-
});
|
|
18
|
-
const CreateOrderResponseSchema = zod_1.z.object({
|
|
19
|
-
message: zod_1.z.string().optional(),
|
|
20
|
-
data: schemas_1.OrderSchema.nullable(),
|
|
21
|
-
});
|
|
22
|
-
var CreateOrderContractCommand;
|
|
23
|
-
(function (CreateOrderContractCommand) {
|
|
24
|
-
CreateOrderContractCommand.RequestSchema = CreateOrderRequestSchema;
|
|
25
|
-
CreateOrderContractCommand.ResponseSchema = CreateOrderResponseSchema;
|
|
26
|
-
})(CreateOrderContractCommand || (exports.CreateOrderContractCommand = CreateOrderContractCommand = {}));
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DeleteOrderContractCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const DeleteOrderResponseSchema = zod_1.z.object({
|
|
6
|
-
message: zod_1.z.string().optional(),
|
|
7
|
-
data: zod_1.z.object({
|
|
8
|
-
success: zod_1.z.boolean(),
|
|
9
|
-
}),
|
|
10
|
-
});
|
|
11
|
-
var DeleteOrderContractCommand;
|
|
12
|
-
(function (DeleteOrderContractCommand) {
|
|
13
|
-
DeleteOrderContractCommand.ResponseSchema = DeleteOrderResponseSchema;
|
|
14
|
-
})(DeleteOrderContractCommand || (exports.DeleteOrderContractCommand = DeleteOrderContractCommand = {}));
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ExportOrderInvoiceContractCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const ExportOrderInvoiceResponseSchema = zod_1.z.object({
|
|
6
|
-
message: zod_1.z.string().optional(),
|
|
7
|
-
data: zod_1.z.string(),
|
|
8
|
-
});
|
|
9
|
-
var ExportOrderInvoiceContractCommand;
|
|
10
|
-
(function (ExportOrderInvoiceContractCommand) {
|
|
11
|
-
ExportOrderInvoiceContractCommand.ResponseSchema = ExportOrderInvoiceResponseSchema;
|
|
12
|
-
})(ExportOrderInvoiceContractCommand || (exports.ExportOrderInvoiceContractCommand = ExportOrderInvoiceContractCommand = {}));
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetOrderListContractQuery = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const schemas_1 = require("../../schemas");
|
|
6
|
-
const date_helper_1 = require("../../helpers/date.helper");
|
|
7
|
-
const enum_1 = require("../../enum");
|
|
8
|
-
const GetOrderListRequestSchema = zod_1.z
|
|
9
|
-
.object({
|
|
10
|
-
page: zod_1.z.string().transform(val => Number(val) || 1),
|
|
11
|
-
count: zod_1.z.string().transform(val => Number(val) || 10),
|
|
12
|
-
startDate: zod_1.z.coerce.date().optional(),
|
|
13
|
-
endDate: zod_1.z.coerce.date().optional(),
|
|
14
|
-
isDelivery: zod_1.z.coerce.boolean().optional(),
|
|
15
|
-
isPaid: zod_1.z.coerce.boolean().optional(),
|
|
16
|
-
consignmentUUID: zod_1.z.string().optional(),
|
|
17
|
-
tag: zod_1.z.string().optional(),
|
|
18
|
-
clientUUID: zod_1.z.string().optional(),
|
|
19
|
-
searchQuery: zod_1.z.string().optional(),
|
|
20
|
-
consignmentDeliveryDate: zod_1.z.coerce.date().optional(),
|
|
21
|
-
byProductSearchQuery: zod_1.z.string().optional(),
|
|
22
|
-
statuses: zod_1.z.nativeEnum(enum_1.OrderStatusEnum).array().optional(),
|
|
23
|
-
type: zod_1.z.nativeEnum(enum_1.OrderTypeEnum).optional(),
|
|
24
|
-
city: zod_1.z.string().optional(),
|
|
25
|
-
responsibleUserUUID: zod_1.z.string().optional(),
|
|
26
|
-
group: zod_1.z.string().optional(),
|
|
27
|
-
})
|
|
28
|
-
.refine(value => {
|
|
29
|
-
const { startDate, endDate } = value;
|
|
30
|
-
if (startDate && endDate) {
|
|
31
|
-
return (0, date_helper_1.dateRangeCheck)(startDate, endDate);
|
|
32
|
-
}
|
|
33
|
-
return true;
|
|
34
|
-
}, {
|
|
35
|
-
message: 'End date must be greater than start date',
|
|
36
|
-
path: ['endDate', 'startDate'],
|
|
37
|
-
});
|
|
38
|
-
const GetOrderListResponseSchema = zod_1.z.object({
|
|
39
|
-
message: zod_1.z.string().optional(),
|
|
40
|
-
data: zod_1.z.object({
|
|
41
|
-
orderList: schemas_1.OrderExtendedSchema.array(),
|
|
42
|
-
total: zod_1.z.number(),
|
|
43
|
-
}),
|
|
44
|
-
});
|
|
45
|
-
var GetOrderListContractQuery;
|
|
46
|
-
(function (GetOrderListContractQuery) {
|
|
47
|
-
GetOrderListContractQuery.RequestSchema = GetOrderListRequestSchema;
|
|
48
|
-
GetOrderListContractQuery.ResponseSchema = GetOrderListResponseSchema;
|
|
49
|
-
})(GetOrderListContractQuery || (exports.GetOrderListContractQuery = GetOrderListContractQuery = {}));
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetOrderContractQuery = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const schemas_1 = require("../../schemas");
|
|
6
|
-
const GetOrderRequestSchema = zod_1.z.object({});
|
|
7
|
-
const GetOrderResponseSchema = zod_1.z.object({
|
|
8
|
-
message: zod_1.z.string().optional(),
|
|
9
|
-
data: schemas_1.OrderExtendedSchema,
|
|
10
|
-
});
|
|
11
|
-
var GetOrderContractQuery;
|
|
12
|
-
(function (GetOrderContractQuery) {
|
|
13
|
-
GetOrderContractQuery.RequestSchema = GetOrderRequestSchema;
|
|
14
|
-
GetOrderContractQuery.ResponseSchema = GetOrderResponseSchema;
|
|
15
|
-
})(GetOrderContractQuery || (exports.GetOrderContractQuery = GetOrderContractQuery = {}));
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DeleteGroupOrderContractCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const DeleteGroupOrderRequestSchema = zod_1.z.object({
|
|
6
|
-
orderUUIDList: zod_1.z.array(zod_1.z.string()),
|
|
7
|
-
});
|
|
8
|
-
const DeleteGroupOrderResponseSchema = zod_1.z.object({
|
|
9
|
-
message: zod_1.z.string().optional(),
|
|
10
|
-
data: zod_1.z.object({
|
|
11
|
-
success: zod_1.z.boolean(),
|
|
12
|
-
}),
|
|
13
|
-
});
|
|
14
|
-
var DeleteGroupOrderContractCommand;
|
|
15
|
-
(function (DeleteGroupOrderContractCommand) {
|
|
16
|
-
DeleteGroupOrderContractCommand.RequestSchema = DeleteGroupOrderRequestSchema;
|
|
17
|
-
DeleteGroupOrderContractCommand.ResponseSchema = DeleteGroupOrderResponseSchema;
|
|
18
|
-
})(DeleteGroupOrderContractCommand || (exports.DeleteGroupOrderContractCommand = DeleteGroupOrderContractCommand = {}));
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetGroupOrderInvoiceInfoContractQuery = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const enum_1 = require("../../../enum");
|
|
6
|
-
const GetGroupOrderInvoiceInfoRequestSchema = zod_1.z.object({
|
|
7
|
-
ordersUUIDList: zod_1.z.array(zod_1.z.string().uuid()),
|
|
8
|
-
});
|
|
9
|
-
const GetGroupOrderInvoiceInfoResponseSchema = zod_1.z.object({
|
|
10
|
-
orders: zod_1.z.array(zod_1.z.object({
|
|
11
|
-
uuid: zod_1.z.string(),
|
|
12
|
-
availableChannels: zod_1.z.array(zod_1.z.nativeEnum(enum_1.NotificationChannelEnum)),
|
|
13
|
-
history: zod_1.z.array(zod_1.z.object({
|
|
14
|
-
uuid: zod_1.z.string(),
|
|
15
|
-
channel: zod_1.z.nativeEnum(enum_1.NotificationChannelEnum).nullable(),
|
|
16
|
-
status: zod_1.z.nativeEnum(enum_1.NotificationStatusEnum),
|
|
17
|
-
sentAt: zod_1.z.date(),
|
|
18
|
-
errorMessage: zod_1.z.string().nullable(),
|
|
19
|
-
})),
|
|
20
|
-
lastSentAt: zod_1.z.date().nullable(),
|
|
21
|
-
})),
|
|
22
|
-
});
|
|
23
|
-
var GetGroupOrderInvoiceInfoContractQuery;
|
|
24
|
-
(function (GetGroupOrderInvoiceInfoContractQuery) {
|
|
25
|
-
GetGroupOrderInvoiceInfoContractQuery.RequestSchema = GetGroupOrderInvoiceInfoRequestSchema;
|
|
26
|
-
GetGroupOrderInvoiceInfoContractQuery.ResponseSchema = GetGroupOrderInvoiceInfoResponseSchema;
|
|
27
|
-
})(GetGroupOrderInvoiceInfoContractQuery || (exports.GetGroupOrderInvoiceInfoContractQuery = GetGroupOrderInvoiceInfoContractQuery = {}));
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MergeOrdersContractCommand = exports.MergeOrdersGroupAnalysisResponseSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const schemas_1 = require("../../../schemas");
|
|
6
|
-
const MergeOrdersRequestSchema = zod_1.z.object({
|
|
7
|
-
orderUUIDList: zod_1.z.array(zod_1.z.string().uuid()).min(2),
|
|
8
|
-
});
|
|
9
|
-
exports.MergeOrdersGroupAnalysisResponseSchema = zod_1.z.object({
|
|
10
|
-
clientUUID: zod_1.z.string(),
|
|
11
|
-
branchUUID: zod_1.z.string().nullable(),
|
|
12
|
-
isPossible: zod_1.z.boolean(),
|
|
13
|
-
targetOrderUUID: zod_1.z.string().nullable(),
|
|
14
|
-
sourceOrdersUUIDs: zod_1.z.array(zod_1.z.string()),
|
|
15
|
-
errors: zod_1.z.array(schemas_1.ErrorMessageSchema),
|
|
16
|
-
warnings: zod_1.z.array(schemas_1.ErrorMessageSchema),
|
|
17
|
-
});
|
|
18
|
-
const MergeOrdersAnalyzeResponseSchema = zod_1.z.object({
|
|
19
|
-
message: zod_1.z.string().optional(),
|
|
20
|
-
data: zod_1.z.array(exports.MergeOrdersGroupAnalysisResponseSchema),
|
|
21
|
-
});
|
|
22
|
-
var MergeOrdersContractCommand;
|
|
23
|
-
(function (MergeOrdersContractCommand) {
|
|
24
|
-
MergeOrdersContractCommand.RequestSchema = MergeOrdersRequestSchema;
|
|
25
|
-
MergeOrdersContractCommand.ResponseSchema = MergeOrdersAnalyzeResponseSchema;
|
|
26
|
-
})(MergeOrdersContractCommand || (exports.MergeOrdersContractCommand = MergeOrdersContractCommand = {}));
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SendGroupOrderInvoiceContractCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const enum_1 = require("../../../enum");
|
|
6
|
-
const SendGroupOrderInvoiceRequestSchema = zod_1.z.object({
|
|
7
|
-
orders: zod_1.z.array(zod_1.z.object({
|
|
8
|
-
uuid: zod_1.z.string().uuid(),
|
|
9
|
-
channel: zod_1.z.nativeEnum(enum_1.NotificationChannelEnum).optional(),
|
|
10
|
-
})),
|
|
11
|
-
});
|
|
12
|
-
const SendGroupOrderInvoiceResponseSchema = zod_1.z.object({
|
|
13
|
-
processed: zod_1.z.number(),
|
|
14
|
-
success: zod_1.z.number(),
|
|
15
|
-
failed: zod_1.z.number(),
|
|
16
|
-
});
|
|
17
|
-
var SendGroupOrderInvoiceContractCommand;
|
|
18
|
-
(function (SendGroupOrderInvoiceContractCommand) {
|
|
19
|
-
SendGroupOrderInvoiceContractCommand.RequestSchema = SendGroupOrderInvoiceRequestSchema;
|
|
20
|
-
SendGroupOrderInvoiceContractCommand.ResponseSchema = SendGroupOrderInvoiceResponseSchema;
|
|
21
|
-
})(SendGroupOrderInvoiceContractCommand || (exports.SendGroupOrderInvoiceContractCommand = SendGroupOrderInvoiceContractCommand = {}));
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SplitGroupOrderContractCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const schemas_1 = require("../../../schemas");
|
|
6
|
-
const SplitGroupOrderRequestSchema = zod_1.z.object({
|
|
7
|
-
orderUUIDList: zod_1.z.array(zod_1.z.string()),
|
|
8
|
-
});
|
|
9
|
-
const SplitGroupOrderResponseSchema = zod_1.z.object({
|
|
10
|
-
message: zod_1.z.string().optional(),
|
|
11
|
-
data: schemas_1.OrderSchema.array(),
|
|
12
|
-
});
|
|
13
|
-
var SplitGroupOrderContractCommand;
|
|
14
|
-
(function (SplitGroupOrderContractCommand) {
|
|
15
|
-
SplitGroupOrderContractCommand.RequestSchema = SplitGroupOrderRequestSchema;
|
|
16
|
-
SplitGroupOrderContractCommand.ResponseSchema = SplitGroupOrderResponseSchema;
|
|
17
|
-
})(SplitGroupOrderContractCommand || (exports.SplitGroupOrderContractCommand = SplitGroupOrderContractCommand = {}));
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateGroupOrderStatusContractCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const enum_1 = require("../../../enum");
|
|
6
|
-
const UpdateGroupOrderStatusRequestSchema = zod_1.z.object({
|
|
7
|
-
orderUUIDList: zod_1.z.array(zod_1.z.string()),
|
|
8
|
-
status: zod_1.z.nativeEnum(enum_1.OrderStatusEnum),
|
|
9
|
-
});
|
|
10
|
-
const UpdateGroupOrderStatusResponseSchema = zod_1.z.object({
|
|
11
|
-
message: zod_1.z.string().optional(),
|
|
12
|
-
data: zod_1.z.object({
|
|
13
|
-
success: zod_1.z.boolean(),
|
|
14
|
-
}),
|
|
15
|
-
});
|
|
16
|
-
var UpdateGroupOrderStatusContractCommand;
|
|
17
|
-
(function (UpdateGroupOrderStatusContractCommand) {
|
|
18
|
-
UpdateGroupOrderStatusContractCommand.RequestSchema = UpdateGroupOrderStatusRequestSchema;
|
|
19
|
-
UpdateGroupOrderStatusContractCommand.ResponseSchema = UpdateGroupOrderStatusResponseSchema;
|
|
20
|
-
})(UpdateGroupOrderStatusContractCommand || (exports.UpdateGroupOrderStatusContractCommand = UpdateGroupOrderStatusContractCommand = {}));
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateGroupOrderTagContractCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const UpdateGroupOrderTagRequestSchema = zod_1.z.object({
|
|
6
|
-
orderUUIDList: zod_1.z.array(zod_1.z.string()),
|
|
7
|
-
tag: zod_1.z.string().nullable(),
|
|
8
|
-
});
|
|
9
|
-
const UpdateGroupOrderTagResponseSchema = zod_1.z.object({
|
|
10
|
-
message: zod_1.z.string().optional(),
|
|
11
|
-
data: zod_1.z.object({
|
|
12
|
-
success: zod_1.z.boolean(),
|
|
13
|
-
}),
|
|
14
|
-
});
|
|
15
|
-
var UpdateGroupOrderTagContractCommand;
|
|
16
|
-
(function (UpdateGroupOrderTagContractCommand) {
|
|
17
|
-
UpdateGroupOrderTagContractCommand.RequestSchema = UpdateGroupOrderTagRequestSchema;
|
|
18
|
-
UpdateGroupOrderTagContractCommand.ResponseSchema = UpdateGroupOrderTagResponseSchema;
|
|
19
|
-
})(UpdateGroupOrderTagContractCommand || (exports.UpdateGroupOrderTagContractCommand = UpdateGroupOrderTagContractCommand = {}));
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateGroupOrderTypeContractCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const enum_1 = require("../../../enum");
|
|
6
|
-
const UpdateGroupOrderTypeRequestSchema = zod_1.z.object({
|
|
7
|
-
orderUUIDList: zod_1.z.array(zod_1.z.string()),
|
|
8
|
-
type: zod_1.z.nativeEnum(enum_1.OrderTypeEnum),
|
|
9
|
-
});
|
|
10
|
-
const UpdateGroupOrderTypeResponseSchema = zod_1.z.object({
|
|
11
|
-
message: zod_1.z.string().optional(),
|
|
12
|
-
data: zod_1.z.object({
|
|
13
|
-
success: zod_1.z.boolean(),
|
|
14
|
-
}),
|
|
15
|
-
});
|
|
16
|
-
var UpdateGroupOrderTypeContractCommand;
|
|
17
|
-
(function (UpdateGroupOrderTypeContractCommand) {
|
|
18
|
-
UpdateGroupOrderTypeContractCommand.RequestSchema = UpdateGroupOrderTypeRequestSchema;
|
|
19
|
-
UpdateGroupOrderTypeContractCommand.ResponseSchema = UpdateGroupOrderTypeResponseSchema;
|
|
20
|
-
})(UpdateGroupOrderTypeContractCommand || (exports.UpdateGroupOrderTypeContractCommand = UpdateGroupOrderTypeContractCommand = {}));
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./create-order.command"), exports);
|
|
18
|
-
__exportStar(require("./update-order.command"), exports);
|
|
19
|
-
__exportStar(require("./delete-order.command"), exports);
|
|
20
|
-
__exportStar(require("./get-order.query"), exports);
|
|
21
|
-
__exportStar(require("./get-order-list.query"), exports);
|
|
22
|
-
__exportStar(require("./copy-order.command"), exports);
|
|
23
|
-
__exportStar(require("./export-order-invoice.command"), exports);
|
|
24
|
-
__exportStar(require("./send-order-invoice.command"), exports);
|
|
25
|
-
__exportStar(require("./apply-order-discount.command"), exports);
|
|
26
|
-
__exportStar(require("./zeroing-receipt-delivery-order.command"), exports);
|
|
27
|
-
// group
|
|
28
|
-
__exportStar(require("./group/update-group-order-type.command"), exports);
|
|
29
|
-
__exportStar(require("./group/update-group-order-tag.command"), exports);
|
|
30
|
-
__exportStar(require("./group/deletet-group-order.command"), exports);
|
|
31
|
-
__exportStar(require("./group/update-group-order-status.command"), exports);
|
|
32
|
-
__exportStar(require("./group/split-group-order.command"), exports);
|
|
33
|
-
__exportStar(require("./group/merge-orders.command"), exports);
|
|
34
|
-
__exportStar(require("./group/get-group-order-invoice-info.query"), exports);
|
|
35
|
-
__exportStar(require("./group/send-group-order-invoice.command"), exports);
|
|
36
|
-
//webshop
|
|
37
|
-
__exportStar(require("./webshop/get-order-for-client.query"), exports);
|
|
38
|
-
__exportStar(require("./webshop/create-cart.command"), exports);
|
|
39
|
-
__exportStar(require("./webshop/get-order-list-for-client.query"), exports);
|
|
40
|
-
__exportStar(require("./webshop/update-cart.command"), exports);
|
|
41
|
-
__exportStar(require("./webshop/get-order-sales-by-month.query"), exports);
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SendOrderInvoiceContractCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const notification_channel_enum_1 = require("../../enum/notification-channel.enum");
|
|
6
|
-
const SendOrderInvoiceRequestSchema = zod_1.z.object({
|
|
7
|
-
channel: zod_1.z
|
|
8
|
-
.enum([
|
|
9
|
-
notification_channel_enum_1.NotificationChannelEnum.WHATSAPP,
|
|
10
|
-
notification_channel_enum_1.NotificationChannelEnum.EMAIL,
|
|
11
|
-
notification_channel_enum_1.NotificationChannelEnum.MAX,
|
|
12
|
-
notification_channel_enum_1.NotificationChannelEnum.TELEGRAM_BOT,
|
|
13
|
-
])
|
|
14
|
-
.optional(),
|
|
15
|
-
});
|
|
16
|
-
const SendOrderInvoiceResponseSchema = zod_1.z.object({
|
|
17
|
-
message: zod_1.z.string().optional(),
|
|
18
|
-
data: zod_1.z.object({
|
|
19
|
-
isSuccess: zod_1.z.boolean(),
|
|
20
|
-
}),
|
|
21
|
-
});
|
|
22
|
-
var SendOrderInvoiceContractCommand;
|
|
23
|
-
(function (SendOrderInvoiceContractCommand) {
|
|
24
|
-
SendOrderInvoiceContractCommand.RequestSchema = SendOrderInvoiceRequestSchema;
|
|
25
|
-
SendOrderInvoiceContractCommand.ResponseSchema = SendOrderInvoiceResponseSchema;
|
|
26
|
-
})(SendOrderInvoiceContractCommand || (exports.SendOrderInvoiceContractCommand = SendOrderInvoiceContractCommand = {}));
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateOrderContractCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const enum_1 = require("../../enum");
|
|
6
|
-
const schemas_1 = require("../../schemas");
|
|
7
|
-
const UpdateOrderRequestSchema = zod_1.z.object({
|
|
8
|
-
clientUUID: zod_1.z.uuid(),
|
|
9
|
-
branchUUID: zod_1.z.uuid().nullable(),
|
|
10
|
-
deliveryCost: zod_1.z.coerce.number(),
|
|
11
|
-
type: zod_1.z.nativeEnum(enum_1.OrderTypeEnum),
|
|
12
|
-
comment: zod_1.z.string().nullable(),
|
|
13
|
-
clientComment: zod_1.z.string().nullable(),
|
|
14
|
-
tag: zod_1.z.string().nullable(),
|
|
15
|
-
status: zod_1.z.nativeEnum(enum_1.OrderStatusEnum),
|
|
16
|
-
isPaid: zod_1.z.coerce.boolean(),
|
|
17
|
-
deliveryVat: zod_1.z.coerce.number().nullable(),
|
|
18
|
-
deliveryVatAmount: zod_1.z.coerce.number(),
|
|
19
|
-
completedAt: zod_1.z.coerce.date().nullable().optional(),
|
|
20
|
-
paymentDueAt: zod_1.z.coerce.date().nullable().optional(),
|
|
21
|
-
});
|
|
22
|
-
const UpdateOrderResponseSchema = zod_1.z.object({
|
|
23
|
-
message: zod_1.z.string().optional(),
|
|
24
|
-
data: schemas_1.OrderSchema.nullable(),
|
|
25
|
-
});
|
|
26
|
-
var UpdateOrderContractCommand;
|
|
27
|
-
(function (UpdateOrderContractCommand) {
|
|
28
|
-
UpdateOrderContractCommand.RequestSchema = UpdateOrderRequestSchema;
|
|
29
|
-
UpdateOrderContractCommand.ResponseSchema = UpdateOrderResponseSchema;
|
|
30
|
-
})(UpdateOrderContractCommand || (exports.UpdateOrderContractCommand = UpdateOrderContractCommand = {}));
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CreateCartContractCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const schemas_1 = require("../../../schemas");
|
|
6
|
-
const CreateCartRequestSchema = zod_1.z.object({});
|
|
7
|
-
const CreateCartResponseSchema = zod_1.z.object({
|
|
8
|
-
message: zod_1.z.string().optional(),
|
|
9
|
-
data: schemas_1.OrderForClientSchema,
|
|
10
|
-
});
|
|
11
|
-
var CreateCartContractCommand;
|
|
12
|
-
(function (CreateCartContractCommand) {
|
|
13
|
-
CreateCartContractCommand.RequestSchema = CreateCartRequestSchema;
|
|
14
|
-
CreateCartContractCommand.ResponseSchema = CreateCartResponseSchema;
|
|
15
|
-
})(CreateCartContractCommand || (exports.CreateCartContractCommand = CreateCartContractCommand = {}));
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetOrderForClientContractQuery = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const schemas_1 = require("../../../schemas");
|
|
6
|
-
const GetOrderForClientRequestSchema = zod_1.z.object({});
|
|
7
|
-
const GetOrderForClientResponseSchema = zod_1.z.object({
|
|
8
|
-
message: zod_1.z.string().optional(),
|
|
9
|
-
data: schemas_1.OrderExtendedForClientSchema.nullable(),
|
|
10
|
-
});
|
|
11
|
-
var GetOrderForClientContractQuery;
|
|
12
|
-
(function (GetOrderForClientContractQuery) {
|
|
13
|
-
GetOrderForClientContractQuery.RequestSchema = GetOrderForClientRequestSchema;
|
|
14
|
-
GetOrderForClientContractQuery.ResponseSchema = GetOrderForClientResponseSchema;
|
|
15
|
-
})(GetOrderForClientContractQuery || (exports.GetOrderForClientContractQuery = GetOrderForClientContractQuery = {}));
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetOrderForClientListContractQuery = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const schemas_1 = require("../../../schemas");
|
|
6
|
-
const date_helper_1 = require("../../../helpers/date.helper");
|
|
7
|
-
const order_status_enum_1 = require("../../../enum/order-status.enum");
|
|
8
|
-
const enum_1 = require("../../../enum");
|
|
9
|
-
const GetOrderForClientListRequestSchema = zod_1.z
|
|
10
|
-
.object({
|
|
11
|
-
page: zod_1.z.coerce.number().default(1),
|
|
12
|
-
count: zod_1.z.coerce.number().default(10),
|
|
13
|
-
startDate: zod_1.z.coerce
|
|
14
|
-
.date()
|
|
15
|
-
.optional()
|
|
16
|
-
.transform(val => (val ? (0, date_helper_1.setStartDay)(val) : val)),
|
|
17
|
-
endDate: zod_1.z.coerce
|
|
18
|
-
.date()
|
|
19
|
-
.optional()
|
|
20
|
-
.transform(val => (val ? (0, date_helper_1.setEndDay)(val) : val)),
|
|
21
|
-
isPaid: zod_1.z.coerce.boolean().optional(),
|
|
22
|
-
statuses: zod_1.z
|
|
23
|
-
.nativeEnum(order_status_enum_1.OrderStatusEnum)
|
|
24
|
-
.array()
|
|
25
|
-
.optional()
|
|
26
|
-
.transform(arr => (arr && arr.length === 0 ? enum_1.OrderWebshopAvailableStatusList : arr !== null && arr !== void 0 ? arr : enum_1.OrderWebshopAvailableStatusList))
|
|
27
|
-
.default(enum_1.OrderWebshopAvailableStatusList)
|
|
28
|
-
.refine(arr => arr.every(s => enum_1.OrderWebshopAvailableStatusList.includes(s)), {
|
|
29
|
-
message: 'Status is not allowed for webshop',
|
|
30
|
-
}),
|
|
31
|
-
})
|
|
32
|
-
.refine(value => {
|
|
33
|
-
const { startDate, endDate } = value;
|
|
34
|
-
if (startDate && endDate) {
|
|
35
|
-
return (0, date_helper_1.dateRangeCheck)(startDate, endDate);
|
|
36
|
-
}
|
|
37
|
-
return true;
|
|
38
|
-
}, {
|
|
39
|
-
message: 'End date must be greater than start date',
|
|
40
|
-
path: ['endDate', 'startDate'],
|
|
41
|
-
});
|
|
42
|
-
const GetOrderForClientListResponseSchema = zod_1.z.object({
|
|
43
|
-
message: zod_1.z.string().optional(),
|
|
44
|
-
data: zod_1.z.object({
|
|
45
|
-
orderList: schemas_1.OrderExtendedForClientSchema.array(),
|
|
46
|
-
total: zod_1.z.number(),
|
|
47
|
-
}),
|
|
48
|
-
});
|
|
49
|
-
var GetOrderForClientListContractQuery;
|
|
50
|
-
(function (GetOrderForClientListContractQuery) {
|
|
51
|
-
GetOrderForClientListContractQuery.RequestSchema = GetOrderForClientListRequestSchema;
|
|
52
|
-
GetOrderForClientListContractQuery.ResponseSchema = GetOrderForClientListResponseSchema;
|
|
53
|
-
})(GetOrderForClientListContractQuery || (exports.GetOrderForClientListContractQuery = GetOrderForClientListContractQuery = {}));
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetOrderSalesByMonthContractQuery = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const GetOrderSalesByMonthRequestSchema = zod_1.z.object({
|
|
6
|
-
month: zod_1.z.coerce.number().int().min(1).max(12),
|
|
7
|
-
});
|
|
8
|
-
const GetOrderSalesByMonthResponseSchema = zod_1.z.object({
|
|
9
|
-
message: zod_1.z.string().optional(),
|
|
10
|
-
data: zod_1.z.number(),
|
|
11
|
-
});
|
|
12
|
-
var GetOrderSalesByMonthContractQuery;
|
|
13
|
-
(function (GetOrderSalesByMonthContractQuery) {
|
|
14
|
-
GetOrderSalesByMonthContractQuery.RequestSchema = GetOrderSalesByMonthRequestSchema;
|
|
15
|
-
GetOrderSalesByMonthContractQuery.ResponseSchema = GetOrderSalesByMonthResponseSchema;
|
|
16
|
-
})(GetOrderSalesByMonthContractQuery || (exports.GetOrderSalesByMonthContractQuery = GetOrderSalesByMonthContractQuery = {}));
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateCartContractCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const schemas_1 = require("../../../schemas");
|
|
6
|
-
const UpdateCartRequestSchema = zod_1.z.object({
|
|
7
|
-
clientComment: zod_1.z.string().nullable().optional().default(null),
|
|
8
|
-
branchUUID: zod_1.z.uuid().optional().nullable().default(null),
|
|
9
|
-
delivery: zod_1.z
|
|
10
|
-
.object({
|
|
11
|
-
deliveryDate: zod_1.z.coerce.date().optional().nullable().default(null),
|
|
12
|
-
address: zod_1.z.string().nullable().optional().default(null),
|
|
13
|
-
time: zod_1.z.string().nullable().optional().default(null),
|
|
14
|
-
})
|
|
15
|
-
.optional()
|
|
16
|
-
.nullable()
|
|
17
|
-
.default(null),
|
|
18
|
-
});
|
|
19
|
-
const UpdateCartResponseSchema = zod_1.z.object({
|
|
20
|
-
message: zod_1.z.string().optional(),
|
|
21
|
-
data: schemas_1.OrderForClientSchema,
|
|
22
|
-
});
|
|
23
|
-
var UpdateCartContractCommand;
|
|
24
|
-
(function (UpdateCartContractCommand) {
|
|
25
|
-
UpdateCartContractCommand.RequestSchema = UpdateCartRequestSchema;
|
|
26
|
-
UpdateCartContractCommand.ResponseSchema = UpdateCartResponseSchema;
|
|
27
|
-
})(UpdateCartContractCommand || (exports.UpdateCartContractCommand = UpdateCartContractCommand = {}));
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ZeroingReceiptDeliveryOrderContractCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const schemas_1 = require("../../schemas");
|
|
6
|
-
const ZeroingReceiptDeliveryOrderResponseSchema = zod_1.z.object({
|
|
7
|
-
message: zod_1.z.string().optional(),
|
|
8
|
-
data: schemas_1.DeleteDataResponseSchema,
|
|
9
|
-
});
|
|
10
|
-
var ZeroingReceiptDeliveryOrderContractCommand;
|
|
11
|
-
(function (ZeroingReceiptDeliveryOrderContractCommand) {
|
|
12
|
-
ZeroingReceiptDeliveryOrderContractCommand.ResponseSchema = ZeroingReceiptDeliveryOrderResponseSchema;
|
|
13
|
-
})(ZeroingReceiptDeliveryOrderContractCommand || (exports.ZeroingReceiptDeliveryOrderContractCommand = ZeroingReceiptDeliveryOrderContractCommand = {}));
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CreateOrderDeliveryContractCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const schemas_1 = require("../../schemas");
|
|
6
|
-
const CreateOrderDeliveryRequestSchema = zod_1.z.object({
|
|
7
|
-
deliveryDate: zod_1.z.coerce.date().nullable(),
|
|
8
|
-
city: zod_1.z.string().nullable(),
|
|
9
|
-
address: zod_1.z.string().nullable(),
|
|
10
|
-
time: zod_1.z.string().nullable(),
|
|
11
|
-
comment: zod_1.z.string().nullable(),
|
|
12
|
-
});
|
|
13
|
-
const CreateOrderDeliveryResponseSchema = zod_1.z.object({
|
|
14
|
-
message: zod_1.z.string().optional(),
|
|
15
|
-
data: schemas_1.OrderDeliverySchema.nullable(),
|
|
16
|
-
});
|
|
17
|
-
var CreateOrderDeliveryContractCommand;
|
|
18
|
-
(function (CreateOrderDeliveryContractCommand) {
|
|
19
|
-
CreateOrderDeliveryContractCommand.RequestSchema = CreateOrderDeliveryRequestSchema;
|
|
20
|
-
CreateOrderDeliveryContractCommand.ResponseSchema = CreateOrderDeliveryResponseSchema;
|
|
21
|
-
})(CreateOrderDeliveryContractCommand || (exports.CreateOrderDeliveryContractCommand = CreateOrderDeliveryContractCommand = {}));
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DeleteOrderDeliveryContractCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const DeleteOrderDeliveryRequestSchema = zod_1.z.object({});
|
|
6
|
-
const DeleteOrderDeliveryResponseSchema = zod_1.z.object({
|
|
7
|
-
message: zod_1.z.string().optional(),
|
|
8
|
-
data: zod_1.z.object({
|
|
9
|
-
success: zod_1.z.boolean(),
|
|
10
|
-
}),
|
|
11
|
-
});
|
|
12
|
-
var DeleteOrderDeliveryContractCommand;
|
|
13
|
-
(function (DeleteOrderDeliveryContractCommand) {
|
|
14
|
-
DeleteOrderDeliveryContractCommand.RequestSchema = DeleteOrderDeliveryRequestSchema;
|
|
15
|
-
DeleteOrderDeliveryContractCommand.ResponseSchema = DeleteOrderDeliveryResponseSchema;
|
|
16
|
-
})(DeleteOrderDeliveryContractCommand || (exports.DeleteOrderDeliveryContractCommand = DeleteOrderDeliveryContractCommand = {}));
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./create-order-delivery.command"), exports);
|
|
18
|
-
__exportStar(require("./update-order-delivery.command"), exports);
|
|
19
|
-
__exportStar(require("./delete-order-delivery.command"), exports);
|