@floristcloud/api-lib 1.2.160 → 1.2.161
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/client/index.js +1 -0
- package/build/commands/client/webshop/get-client-me-webshop.query.js +8 -0
- package/build/commands/client/webshop/register-client-webshop.command.js +2 -16
- package/build/commands/client/webshop/update-client-for-client.command.js +2 -14
- package/build/commands/discount-rules/get-product-discount-price.query.js +2 -68
- package/build/commands/order/webshop/create-cart.command.js +2 -8
- package/build/commands/order/webshop/get-order-for-client.query.js +2 -8
- package/build/commands/order/webshop/get-order-list-for-client.query.js +2 -46
- package/build/commands/order/webshop/update-cart.command.js +2 -25
- package/build/commands/order-product/webshop/get-order-product-for-client-list.query.js +2 -8
- package/build/commands/pre-order/webshop/get-pre-order-list-webshop.command.js +2 -16
- package/build/commands/pre-order/webshop/get-pre-order-list-webshop.query.js +9 -0
- package/build/commands/pre-order/webshop/get-pre-order-webshop.query.js +8 -0
- package/build/commands/pre-order/webshop/index.js +2 -1
- package/build/commands/pre-order-collection-item/delete-group-pre-order-collection-item.command.js +3 -13
- package/build/commands/pre-order-collection-item/get-pre-order-collection-item-grouped-list-for-client.query.js +2 -18
- package/build/commands/pre-order-collection-item/get-pre-order-collection-item-list-for-client.query.js +2 -18
- package/build/commands/pre-order-product/create-pre-order-product-webshop.command.js +2 -7
- package/build/commands/pre-order-product/get-pre-order-product-extended-list-webshop.query.js +9 -0
- package/build/commands/pre-order-product/index.js +1 -0
- package/build/commands/pre-order-product/update-pre-order-product-webshop.command.js +2 -7
- package/build/commands/product/webshop/get-product-list-for-client.query.js +2 -31
- package/build/commands/transaction/webshop/get-transaction-list-for-client.query.js +2 -30
- package/build/commands/write-off/webshop/create-write-off-from-order-for-client.command.js +2 -14
- package/build/commands/write-off/webshop/get-write-off-list-by-order.query.js +2 -8
- package/build/constant/error.js +13 -0
- package/build/schemas/category/category-name.schema.js +6 -0
- package/build/schemas/category/index.js +23 -0
- package/build/schemas/client/client-base.schema.js +37 -0
- package/build/schemas/client/client-extended-for-client.schema.js +17 -0
- package/build/schemas/client/client-extended-list.schema.js +9 -0
- package/build/schemas/client/client-extended.schema.js +21 -0
- package/build/schemas/client/client-for-client.schema.js +30 -0
- package/build/schemas/client/client-name.schema.js +6 -0
- package/build/schemas/client/client.schema.js +6 -54
- package/build/schemas/client/get-client-me-webshop-response.schema.js +9 -0
- package/build/schemas/client/index.js +10 -0
- package/build/schemas/client/register-client-webshop-request.schema.js +13 -0
- package/build/schemas/client/register-client-webshop-response.schema.js +9 -0
- package/build/schemas/client/update-client-for-client-request.schema.js +11 -0
- package/build/schemas/client/update-client-for-client-response.schema.js +9 -0
- package/build/schemas/consignment/consignment-distribution-validation.schema.js +4 -4
- package/build/schemas/consignment/consignment.schema.js +2 -2
- package/build/schemas/discount-rules/discount-rules-data-for-client.schema.js +8 -0
- package/build/schemas/discount-rules/discount-rules-for-client.schema.js +11 -0
- package/build/schemas/discount-rules/discount-rules.schema.js +4 -4
- package/build/schemas/discount-rules/get-product-discount-price-request.schema.js +10 -0
- package/build/schemas/discount-rules/get-product-discount-price-response.schema.js +17 -0
- package/build/schemas/discount-rules/index.js +24 -0
- package/build/schemas/discount-rules/product-discount-price-data.schema.js +18 -0
- package/build/schemas/discount-rules/product-discount-price-item.schema.js +22 -0
- package/build/schemas/discount-rules/product-discount-price-multiplicity-option.schema.js +25 -0
- package/build/schemas/index.js +15 -41
- package/build/schemas/money-account/index.js +19 -0
- package/build/schemas/money-account/money-account-name.schema.js +6 -0
- package/build/schemas/order/create-cart-request.schema.js +5 -0
- package/build/schemas/order/create-cart-response.schema.js +9 -0
- package/build/schemas/order/get-order-for-client-list-request.schema.js +40 -0
- package/build/schemas/order/get-order-for-client-list-response.schema.js +9 -0
- package/build/schemas/order/get-order-for-client-request.schema.js +5 -0
- package/build/schemas/order/get-order-for-client-response.schema.js +9 -0
- package/build/schemas/order/index.js +30 -0
- package/build/schemas/order/order-base.schema.js +50 -0
- package/build/schemas/order/order-extended-for-client-list.schema.js +9 -0
- package/build/schemas/order/order-extended-for-client.schema.js +19 -0
- package/build/schemas/order/order-extended.schema.js +19 -0
- package/build/schemas/order/order-for-client.schema.js +36 -0
- package/build/schemas/order/order.schema.js +9 -81
- package/build/schemas/order/update-cart-delivery-request.schema.js +10 -0
- package/build/schemas/order/update-cart-request.schema.js +15 -0
- package/build/schemas/order/update-cart-response.schema.js +9 -0
- package/build/schemas/order-product/active-stepper-positions-for-order-response.schema.js +8 -0
- package/build/schemas/order-product/get-order-product-for-client-list-request.schema.js +5 -0
- package/build/schemas/order-product/get-order-product-for-client-list-response.schema.js +9 -0
- package/build/schemas/order-product/index.js +27 -0
- package/build/schemas/order-product/order-product-base.schema.js +27 -0
- package/build/schemas/order-product/order-product-extended-for-client-list.schema.js +9 -0
- package/build/schemas/order-product/order-product-extended-for-client.schema.js +10 -0
- package/build/schemas/order-product/order-product-extended.schema.js +12 -0
- package/build/schemas/order-product/order-product-for-client.schema.js +20 -0
- package/build/schemas/order-product/order-product-for-distribute.schema.js +15 -0
- package/build/schemas/order-product/order-product-list.schema.js +5 -6
- package/build/schemas/order-product/order-product-stepper-position.schema.js +13 -0
- package/build/schemas/order-product/order-product.schema.js +20 -70
- package/build/schemas/order-product/set-order-product-quantity-webshop-request.schema.js +7 -0
- package/build/schemas/order-product/set-order-product-quantity-webshop-response.schema.js +9 -0
- package/build/schemas/pagination-request.schema.js +9 -0
- package/build/schemas/pre-order/get-pre-order-list-webshop-request.schema.js +10 -0
- package/build/schemas/pre-order/get-pre-order-list-webshop-response.schema.js +8 -0
- package/build/schemas/pre-order/get-pre-order-webshop-response.schema.js +8 -0
- package/build/schemas/pre-order/index.js +25 -0
- package/build/schemas/pre-order/pre-order-copy.schema.js +4 -4
- package/build/schemas/pre-order/pre-order-extended-for-client-list.schema.js +9 -0
- package/build/schemas/pre-order/pre-order-extended-for-client.schema.js +15 -0
- package/build/schemas/pre-order/pre-order-for-client.schema.js +15 -0
- package/build/schemas/pre-order/pre-order-summary.schema.js +5 -0
- package/build/schemas/pre-order/pre-order.schema.js +3 -3
- package/build/schemas/pre-order-collection/index.js +18 -0
- package/build/schemas/pre-order-collection/pre-order-collection-summary-for-client.schema.js +10 -0
- package/build/schemas/pre-order-collection-item/create-pre-order-collection-item.schema.js +32 -0
- package/build/schemas/pre-order-collection-item/delete-group-pre-order-collection-item-request.schema.js +7 -0
- package/build/schemas/pre-order-collection-item/delete-group-pre-order-collection-item-response.schema.js +9 -0
- package/build/schemas/pre-order-collection-item/delete-group-pre-order-collection-item-result.schema.js +8 -0
- package/build/schemas/pre-order-collection-item/get-pre-order-collection-item-grouped-list-for-client-response.schema.js +9 -0
- package/build/schemas/pre-order-collection-item/get-pre-order-collection-item-list-for-client-response.schema.js +9 -0
- package/build/schemas/pre-order-collection-item/index.js +34 -0
- package/build/schemas/pre-order-collection-item/matching-product.schema.js +13 -0
- package/build/schemas/pre-order-collection-item/pre-order-collection-item-base.schema.js +36 -0
- package/build/schemas/pre-order-collection-item/pre-order-collection-item-catalog-filter-for-client-request.schema.js +15 -0
- package/build/schemas/pre-order-collection-item/pre-order-collection-item-catalog-for-client-list.schema.js +9 -0
- package/build/schemas/pre-order-collection-item/pre-order-collection-item-catalog-for-client.schema.js +11 -0
- package/build/schemas/pre-order-collection-item/pre-order-collection-item-catalog-grouped-for-client-list.schema.js +9 -0
- package/build/schemas/pre-order-collection-item/pre-order-collection-item-catalog-grouped-for-client.schema.js +9 -0
- package/build/schemas/pre-order-collection-item/pre-order-collection-item-category.schema.js +11 -0
- package/build/schemas/pre-order-collection-item/pre-order-collection-item-client-pre-order-product.schema.js +13 -0
- package/build/schemas/pre-order-collection-item/pre-order-collection-item-extended-list.schema.js +9 -0
- package/build/schemas/pre-order-collection-item/pre-order-collection-item-extended-with-clients-pre-order-product-list.schema.js +9 -0
- package/build/schemas/pre-order-collection-item/pre-order-collection-item-extended-with-clients-pre-order-product.schema.js +8 -0
- package/build/schemas/pre-order-collection-item/pre-order-collection-item-extended.schema.js +18 -0
- package/build/schemas/pre-order-collection-item/pre-order-collection-item-for-client.schema.js +34 -0
- package/build/schemas/pre-order-collection-item/pre-order-collection-item-image.schema.js +7 -0
- package/build/schemas/pre-order-collection-item/pre-order-collection-item.schema.js +31 -150
- package/build/schemas/pre-order-collection-item/update-pre-order-collection-item.schema.js +35 -0
- package/build/schemas/pre-order-product/active-stepper-positions-response.schema.js +8 -0
- package/build/schemas/pre-order-product/create-pre-order-product-webshop-request.schema.js +16 -0
- package/build/schemas/pre-order-product/create-pre-order-product-webshop-response.schema.js +9 -0
- package/build/schemas/pre-order-product/create-pre-order-product.schema.js +18 -0
- package/build/schemas/pre-order-product/get-pre-order-product-extended-list-webshop-response.schema.js +9 -0
- package/build/schemas/pre-order-product/index.js +25 -0
- package/build/schemas/pre-order-product/matching-config.schema.js +12 -0
- package/build/schemas/pre-order-product/pre-order-product-base.schema.js +27 -0
- package/build/schemas/pre-order-product/pre-order-product-extended-for-client-list.schema.js +9 -0
- package/build/schemas/pre-order-product/pre-order-product-extended-for-client.schema.js +15 -0
- package/build/schemas/pre-order-product/pre-order-product-extended-list.schema.js +9 -0
- package/build/schemas/pre-order-product/pre-order-product-extended.schema.js +14 -0
- package/build/schemas/pre-order-product/pre-order-product-for-client.schema.js +24 -0
- package/build/schemas/pre-order-product/pre-order-product-list.schema.js +9 -0
- package/build/schemas/pre-order-product/pre-order-product-stepper-position.schema.js +14 -0
- package/build/schemas/pre-order-product/pre-order-product.schema.js +29 -126
- package/build/schemas/pre-order-product/set-pre-order-product-quantity-webshop-request.schema.js +7 -0
- package/build/schemas/pre-order-product/set-pre-order-product-quantity-webshop-response.schema.js +9 -0
- package/build/schemas/pre-order-product/update-pre-order-product-webshop-request.schema.js +16 -0
- package/build/schemas/pre-order-product/update-pre-order-product-webshop-response.schema.js +9 -0
- package/build/schemas/pre-order-product/update-pre-order-product.schema.js +24 -0
- package/build/schemas/product/get-product-list-for-client-request.schema.js +28 -0
- package/build/schemas/product/get-product-list-for-client-response.schema.js +9 -0
- package/build/schemas/product/index.js +31 -0
- package/build/schemas/product/product-base.schema.js +38 -0
- package/build/schemas/product/product-catalog-name.schema.js +10 -0
- package/build/schemas/product/product-consignment-for-client.schema.js +8 -0
- package/build/schemas/product/product-discount-price-for-client.schema.js +8 -0
- package/build/schemas/product/product-extended-for-admin-with-statistic.schema.js +8 -0
- package/build/schemas/product/product-extended-for-admin.schema.js +9 -0
- package/build/schemas/product/product-extended-for-client.schema.js +31 -0
- package/build/schemas/product/product-extended.schema.js +15 -0
- package/build/schemas/product/product-for-client.schema.js +25 -0
- package/build/schemas/product/product-image-for-client.schema.js +7 -0
- package/build/schemas/product/product-list-extended-for-client.schema.js +9 -0
- package/build/schemas/product/product-list.schema.js +5 -7
- package/build/schemas/product/product.schema.js +12 -135
- package/build/schemas/transaction/get-transaction-list-for-client-request.schema.js +27 -0
- package/build/schemas/transaction/get-transaction-list-for-client-response.schema.js +9 -0
- package/build/schemas/transaction/index.js +23 -0
- package/build/schemas/transaction/transaction-base.schema.js +24 -0
- package/build/schemas/transaction/transaction-extended-for-client-list.schema.js +9 -0
- package/build/schemas/transaction/transaction-extended-for-client.schema.js +12 -0
- package/build/schemas/transaction/transaction-extended.schema.js +12 -0
- package/build/schemas/transaction/transaction-for-client.schema.js +19 -0
- package/build/schemas/transaction/transaction-list.schema.js +5 -6
- package/build/schemas/transaction/transaction.schema.js +7 -35
- package/build/schemas/user/index.js +19 -0
- package/build/schemas/user/user-contact-for-client.schema.js +10 -0
- package/build/schemas/user/user-name.schema.js +6 -0
- package/build/schemas/write-off/create-write-off-from-order-for-client-request.schema.js +11 -0
- package/build/schemas/write-off/create-write-off-from-order-for-client-response.schema.js +9 -0
- package/build/schemas/write-off/get-write-off-list-by-order-for-client-request.schema.js +5 -0
- package/build/schemas/write-off/get-write-off-list-by-order-for-client-response.schema.js +9 -0
- package/build/schemas/write-off/index.js +27 -0
- package/build/schemas/write-off/write-off-for-client.schema.js +26 -0
- package/build/schemas/write-off/write-off-order-product-for-client.schema.js +8 -0
- package/build/schemas/write-off/write-off.schema.js +8 -8
- package/commands/client/index.ts +1 -0
- package/commands/client/webshop/get-client-me-webshop.query.ts +7 -0
- package/commands/client/webshop/register-client-webshop.command.ts +1 -16
- package/commands/client/webshop/update-client-for-client.command.ts +1 -14
- package/commands/discount-rules/get-product-discount-price.query.ts +1 -69
- package/commands/order/webshop/create-cart.command.ts +1 -8
- package/commands/order/webshop/get-order-for-client.query.ts +1 -8
- package/commands/order/webshop/get-order-list-for-client.query.ts +1 -49
- package/commands/order/webshop/update-cart.command.ts +1 -25
- package/commands/order-product/webshop/get-order-product-for-client-list.query.ts +1 -8
- package/commands/pre-order/webshop/get-pre-order-list-webshop.command.ts +1 -21
- package/commands/pre-order/webshop/get-pre-order-list-webshop.query.ts +10 -0
- package/commands/pre-order/webshop/get-pre-order-webshop.query.ts +7 -0
- package/commands/pre-order/webshop/index.ts +2 -1
- package/commands/pre-order-collection-item/delete-group-pre-order-collection-item.command.ts +1 -12
- package/commands/pre-order-collection-item/get-pre-order-collection-item-grouped-list-for-client.query.ts +5 -19
- package/commands/pre-order-collection-item/get-pre-order-collection-item-list-for-client.query.ts +5 -19
- package/commands/pre-order-product/create-pre-order-product-webshop.command.ts +2 -7
- package/commands/pre-order-product/get-pre-order-product-extended-list-webshop.query.ts +10 -0
- package/commands/pre-order-product/index.ts +1 -0
- package/commands/pre-order-product/update-pre-order-product-webshop.command.ts +2 -7
- package/commands/product/webshop/get-product-list-for-client.query.ts +1 -31
- package/commands/transaction/webshop/get-transaction-list-for-client.query.ts +1 -33
- package/commands/write-off/webshop/create-write-off-from-order-for-client.command.ts +1 -14
- package/commands/write-off/webshop/get-write-off-list-by-order.query.ts +1 -8
- package/constant/error.ts +13 -0
- package/package.json +1 -1
- package/schemas/category/category-name.schema.ts +4 -0
- package/schemas/category/index.ts +7 -0
- package/schemas/client/client-base.schema.ts +38 -0
- package/schemas/client/client-extended-for-client.schema.ts +15 -0
- package/schemas/client/client-extended-list.schema.ts +7 -0
- package/schemas/client/client-extended.schema.ts +20 -0
- package/schemas/client/client-for-client.schema.ts +28 -0
- package/schemas/client/client-name.schema.ts +4 -0
- package/schemas/client/client.schema.ts +3 -62
- package/schemas/client/get-client-me-webshop-response.schema.ts +7 -0
- package/schemas/client/index.ts +10 -0
- package/schemas/client/register-client-webshop-request.schema.ts +11 -0
- package/schemas/client/register-client-webshop-response.schema.ts +7 -0
- package/schemas/client/update-client-for-client-request.schema.ts +9 -0
- package/schemas/client/update-client-for-client-response.schema.ts +7 -0
- package/schemas/consignment/consignment-distribution-validation.schema.ts +2 -2
- package/schemas/consignment/consignment.schema.ts +1 -1
- package/schemas/discount-rules/discount-rules-data-for-client.schema.ts +6 -0
- package/schemas/discount-rules/discount-rules-for-client.schema.ts +9 -0
- package/schemas/discount-rules/discount-rules.schema.ts +2 -2
- package/schemas/discount-rules/get-product-discount-price-request.schema.ts +8 -0
- package/schemas/discount-rules/get-product-discount-price-response.schema.ts +15 -0
- package/schemas/discount-rules/index.ts +8 -0
- package/schemas/discount-rules/product-discount-price-data.schema.ts +16 -0
- package/schemas/discount-rules/product-discount-price-item.schema.ts +20 -0
- package/schemas/discount-rules/product-discount-price-multiplicity-option.schema.ts +23 -0
- package/schemas/index.ts +15 -41
- package/schemas/money-account/index.ts +3 -0
- package/schemas/money-account/money-account-name.schema.ts +4 -0
- package/schemas/order/create-cart-request.schema.ts +3 -0
- package/schemas/order/create-cart-response.schema.ts +7 -0
- package/schemas/order/get-order-for-client-list-request.schema.ts +41 -0
- package/schemas/order/get-order-for-client-list-response.schema.ts +7 -0
- package/schemas/order/get-order-for-client-request.schema.ts +3 -0
- package/schemas/order/get-order-for-client-response.schema.ts +7 -0
- package/schemas/order/index.ts +14 -0
- package/schemas/order/order-base.schema.ts +54 -0
- package/schemas/order/order-extended-for-client-list.schema.ts +7 -0
- package/schemas/order/order-extended-for-client.schema.ts +17 -0
- package/schemas/order/order-extended.schema.ts +17 -0
- package/schemas/order/order-for-client.schema.ts +34 -0
- package/schemas/order/order.schema.ts +4 -90
- package/schemas/order/update-cart-delivery-request.schema.ts +8 -0
- package/schemas/order/update-cart-request.schema.ts +13 -0
- package/schemas/order/update-cart-response.schema.ts +7 -0
- package/schemas/order-product/active-stepper-positions-for-order-response.schema.ts +6 -0
- package/schemas/order-product/get-order-product-for-client-list-request.schema.ts +3 -0
- package/schemas/order-product/get-order-product-for-client-list-response.schema.ts +7 -0
- package/schemas/order-product/index.ts +11 -0
- package/schemas/order-product/order-product-base.schema.ts +30 -0
- package/schemas/order-product/order-product-extended-for-client-list.schema.ts +7 -0
- package/schemas/order-product/order-product-extended-for-client.schema.ts +8 -0
- package/schemas/order-product/order-product-extended.schema.ts +10 -0
- package/schemas/order-product/order-product-for-client.schema.ts +18 -0
- package/schemas/order-product/order-product-for-distribute.schema.ts +13 -0
- package/schemas/order-product/order-product-list.schema.ts +5 -6
- package/schemas/order-product/order-product-stepper-position.schema.ts +11 -0
- package/schemas/order-product/order-product.schema.ts +12 -83
- package/schemas/order-product/set-order-product-quantity-webshop-request.schema.ts +5 -0
- package/schemas/order-product/set-order-product-quantity-webshop-response.schema.ts +7 -0
- package/schemas/pagination-request.schema.ts +7 -0
- package/schemas/pre-order/get-pre-order-list-webshop-request.schema.ts +8 -0
- package/schemas/pre-order/get-pre-order-list-webshop-response.schema.ts +6 -0
- package/schemas/pre-order/get-pre-order-webshop-response.schema.ts +6 -0
- package/schemas/pre-order/index.ts +9 -0
- package/schemas/pre-order/pre-order-copy.schema.ts +2 -2
- package/schemas/pre-order/pre-order-extended-for-client-list.schema.ts +7 -0
- package/schemas/pre-order/pre-order-extended-for-client.schema.ts +13 -0
- package/schemas/pre-order/pre-order-for-client.schema.ts +13 -0
- package/schemas/pre-order/pre-order-summary.schema.ts +3 -0
- package/schemas/pre-order/pre-order.schema.ts +1 -1
- package/schemas/pre-order-collection/index.ts +2 -0
- package/schemas/pre-order-collection/pre-order-collection-summary-for-client.schema.ts +8 -0
- package/schemas/pre-order-collection-item/create-pre-order-collection-item.schema.ts +30 -0
- package/schemas/pre-order-collection-item/delete-group-pre-order-collection-item-request.schema.ts +5 -0
- package/schemas/pre-order-collection-item/delete-group-pre-order-collection-item-response.schema.ts +7 -0
- package/schemas/pre-order-collection-item/delete-group-pre-order-collection-item-result.schema.ts +6 -0
- package/schemas/pre-order-collection-item/get-pre-order-collection-item-grouped-list-for-client-response.schema.ts +7 -0
- package/schemas/pre-order-collection-item/get-pre-order-collection-item-list-for-client-response.schema.ts +7 -0
- package/schemas/pre-order-collection-item/index.ts +18 -0
- package/schemas/pre-order-collection-item/matching-product.schema.ts +11 -0
- package/schemas/pre-order-collection-item/pre-order-collection-item-base.schema.ts +34 -0
- package/schemas/pre-order-collection-item/pre-order-collection-item-catalog-filter-for-client-request.schema.ts +13 -0
- package/schemas/pre-order-collection-item/pre-order-collection-item-catalog-for-client-list.schema.ts +7 -0
- package/schemas/pre-order-collection-item/pre-order-collection-item-catalog-for-client.schema.ts +9 -0
- package/schemas/pre-order-collection-item/pre-order-collection-item-catalog-grouped-for-client-list.schema.ts +7 -0
- package/schemas/pre-order-collection-item/pre-order-collection-item-catalog-grouped-for-client.schema.ts +7 -0
- package/schemas/pre-order-collection-item/pre-order-collection-item-category.schema.ts +9 -0
- package/schemas/pre-order-collection-item/pre-order-collection-item-client-pre-order-product.schema.ts +11 -0
- package/schemas/pre-order-collection-item/pre-order-collection-item-extended-list.schema.ts +7 -0
- package/schemas/pre-order-collection-item/pre-order-collection-item-extended-with-clients-pre-order-product-list.schema.ts +7 -0
- package/schemas/pre-order-collection-item/pre-order-collection-item-extended-with-clients-pre-order-product.schema.ts +6 -0
- package/schemas/pre-order-collection-item/pre-order-collection-item-extended.schema.ts +16 -0
- package/schemas/pre-order-collection-item/pre-order-collection-item-for-client.schema.ts +32 -0
- package/schemas/pre-order-collection-item/pre-order-collection-item-image.schema.ts +5 -0
- package/schemas/pre-order-collection-item/pre-order-collection-item.schema.ts +25 -162
- package/schemas/pre-order-collection-item/update-pre-order-collection-item.schema.ts +33 -0
- package/schemas/pre-order-product/active-stepper-positions-response.schema.ts +6 -0
- package/schemas/pre-order-product/create-pre-order-product-webshop-request.schema.ts +14 -0
- package/schemas/pre-order-product/create-pre-order-product-webshop-response.schema.ts +7 -0
- package/schemas/pre-order-product/create-pre-order-product.schema.ts +16 -0
- package/schemas/pre-order-product/get-pre-order-product-extended-list-webshop-response.schema.ts +7 -0
- package/schemas/pre-order-product/index.ts +9 -0
- package/schemas/pre-order-product/matching-config.schema.ts +10 -0
- package/schemas/pre-order-product/pre-order-product-base.schema.ts +25 -0
- package/schemas/pre-order-product/pre-order-product-extended-for-client-list.schema.ts +7 -0
- package/schemas/pre-order-product/pre-order-product-extended-for-client.schema.ts +13 -0
- package/schemas/pre-order-product/pre-order-product-extended-list.schema.ts +7 -0
- package/schemas/pre-order-product/pre-order-product-extended.schema.ts +12 -0
- package/schemas/pre-order-product/pre-order-product-for-client.schema.ts +22 -0
- package/schemas/pre-order-product/pre-order-product-list.schema.ts +7 -0
- package/schemas/pre-order-product/pre-order-product-stepper-position.schema.ts +12 -0
- package/schemas/pre-order-product/pre-order-product.schema.ts +19 -138
- package/schemas/pre-order-product/set-pre-order-product-quantity-webshop-request.schema.ts +5 -0
- package/schemas/pre-order-product/set-pre-order-product-quantity-webshop-response.schema.ts +7 -0
- package/schemas/pre-order-product/update-pre-order-product-webshop-request.schema.ts +14 -0
- package/schemas/pre-order-product/update-pre-order-product-webshop-response.schema.ts +7 -0
- package/schemas/pre-order-product/update-pre-order-product.schema.ts +22 -0
- package/schemas/product/get-product-list-for-client-request.schema.ts +26 -0
- package/schemas/product/get-product-list-for-client-response.schema.ts +7 -0
- package/schemas/product/index.ts +15 -0
- package/schemas/product/product-base.schema.ts +39 -0
- package/schemas/product/product-catalog-name.schema.ts +8 -0
- package/schemas/product/product-consignment-for-client.schema.ts +6 -0
- package/schemas/product/product-discount-price-for-client.schema.ts +6 -0
- package/schemas/product/product-extended-for-admin-with-statistic.schema.ts +8 -0
- package/schemas/product/product-extended-for-admin.schema.ts +9 -0
- package/schemas/product/product-extended-for-client.schema.ts +31 -0
- package/schemas/product/product-extended.schema.ts +15 -0
- package/schemas/product/product-for-client.schema.ts +23 -0
- package/schemas/product/product-image-for-client.schema.ts +5 -0
- package/schemas/product/product-list-extended-for-client.schema.ts +7 -0
- package/schemas/product/product-list.schema.ts +2 -6
- package/schemas/product/product.schema.ts +6 -152
- package/schemas/transaction/get-transaction-list-for-client-request.schema.ts +28 -0
- package/schemas/transaction/get-transaction-list-for-client-response.schema.ts +7 -0
- package/schemas/transaction/index.ts +7 -0
- package/schemas/transaction/transaction-base.schema.ts +27 -0
- package/schemas/transaction/transaction-extended-for-client-list.schema.ts +7 -0
- package/schemas/transaction/transaction-extended-for-client.schema.ts +10 -0
- package/schemas/transaction/transaction-extended.schema.ts +10 -0
- package/schemas/transaction/transaction-for-client.schema.ts +17 -0
- package/schemas/transaction/transaction-list.schema.ts +5 -6
- package/schemas/transaction/transaction.schema.ts +6 -43
- package/schemas/user/index.ts +3 -0
- package/schemas/user/user-contact-for-client.schema.ts +8 -0
- package/schemas/user/user-name.schema.ts +4 -0
- package/schemas/write-off/create-write-off-from-order-for-client-request.schema.ts +9 -0
- package/schemas/write-off/create-write-off-from-order-for-client-response.schema.ts +7 -0
- package/schemas/write-off/get-write-off-list-by-order-for-client-request.schema.ts +3 -0
- package/schemas/write-off/get-write-off-list-by-order-for-client-response.schema.ts +7 -0
- package/schemas/write-off/index.ts +11 -0
- package/schemas/write-off/write-off-for-client.schema.ts +26 -0
- package/schemas/write-off/write-off-order-product-for-client.schema.ts +6 -0
- package/schemas/write-off/write-off.schema.ts +4 -4
|
@@ -30,6 +30,7 @@ __exportStar(require("./detach-user-from-client.command"), exports);
|
|
|
30
30
|
//webshop
|
|
31
31
|
__exportStar(require("./webshop/register-client-webshop.command"), exports);
|
|
32
32
|
__exportStar(require("./webshop/update-client-for-client.command"), exports);
|
|
33
|
+
__exportStar(require("./webshop/get-client-me-webshop.query"), exports);
|
|
33
34
|
//marking
|
|
34
35
|
__exportStar(require("./marking/create-client-marking.command"), exports);
|
|
35
36
|
__exportStar(require("./marking/update-client-marking.command"), exports);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetClientMeWebshopContractQuery = void 0;
|
|
4
|
+
const schemas_1 = require("../../../schemas");
|
|
5
|
+
var GetClientMeWebshopContractQuery;
|
|
6
|
+
(function (GetClientMeWebshopContractQuery) {
|
|
7
|
+
GetClientMeWebshopContractQuery.ResponseSchema = schemas_1.GetClientMeWebshopResponseSchema;
|
|
8
|
+
})(GetClientMeWebshopContractQuery || (exports.GetClientMeWebshopContractQuery = GetClientMeWebshopContractQuery = {}));
|
|
@@ -1,23 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.RegisterClientWebshopContractCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
4
|
const schemas_1 = require("../../../schemas");
|
|
6
|
-
const client_type_enum_1 = require("../../../enum/client-type.enum");
|
|
7
|
-
const RegisterClientWebshopRequestSchema = zod_1.z.object({
|
|
8
|
-
name: zod_1.z.string(),
|
|
9
|
-
password: zod_1.z.string(),
|
|
10
|
-
contactName: zod_1.z.string().nullable(),
|
|
11
|
-
phone: zod_1.z.string(),
|
|
12
|
-
email: zod_1.z.email().toLowerCase(),
|
|
13
|
-
type: zod_1.z.nativeEnum(client_type_enum_1.ClientTypeEnum),
|
|
14
|
-
});
|
|
15
|
-
const RegisterClientWebshopResponseSchema = zod_1.z.object({
|
|
16
|
-
message: zod_1.z.string().optional(),
|
|
17
|
-
data: schemas_1.ClientSchema.nullable(),
|
|
18
|
-
});
|
|
19
5
|
var RegisterClientWebshopContractCommand;
|
|
20
6
|
(function (RegisterClientWebshopContractCommand) {
|
|
21
|
-
RegisterClientWebshopContractCommand.RequestSchema = RegisterClientWebshopRequestSchema;
|
|
22
|
-
RegisterClientWebshopContractCommand.ResponseSchema = RegisterClientWebshopResponseSchema;
|
|
7
|
+
RegisterClientWebshopContractCommand.RequestSchema = schemas_1.RegisterClientWebshopRequestSchema;
|
|
8
|
+
RegisterClientWebshopContractCommand.ResponseSchema = schemas_1.RegisterClientWebshopResponseSchema;
|
|
23
9
|
})(RegisterClientWebshopContractCommand || (exports.RegisterClientWebshopContractCommand = RegisterClientWebshopContractCommand = {}));
|
|
@@ -1,21 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.UpdateClientForClientContractCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
4
|
const schemas_1 = require("../../../schemas");
|
|
6
|
-
const UpdateClientForClientRequestSchema = zod_1.z.object({
|
|
7
|
-
name: zod_1.z.string(),
|
|
8
|
-
contactName: zod_1.z.string().nullable(),
|
|
9
|
-
phone: zod_1.z.string(),
|
|
10
|
-
email: zod_1.z.email().toLowerCase(),
|
|
11
|
-
alwaysRequiresDelivery: zod_1.z.boolean(),
|
|
12
|
-
});
|
|
13
|
-
const UpdateClientForClientResponseSchema = zod_1.z.object({
|
|
14
|
-
message: zod_1.z.string().optional(),
|
|
15
|
-
data: schemas_1.ClientSchema,
|
|
16
|
-
});
|
|
17
5
|
var UpdateClientForClientContractCommand;
|
|
18
6
|
(function (UpdateClientForClientContractCommand) {
|
|
19
|
-
UpdateClientForClientContractCommand.RequestSchema = UpdateClientForClientRequestSchema;
|
|
20
|
-
UpdateClientForClientContractCommand.ResponseSchema = UpdateClientForClientResponseSchema;
|
|
7
|
+
UpdateClientForClientContractCommand.RequestSchema = schemas_1.UpdateClientForClientRequestSchema;
|
|
8
|
+
UpdateClientForClientContractCommand.ResponseSchema = schemas_1.UpdateClientForClientResponseSchema;
|
|
21
9
|
})(UpdateClientForClientContractCommand || (exports.UpdateClientForClientContractCommand = UpdateClientForClientContractCommand = {}));
|
|
@@ -1,75 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetProductDiscountPriceContractQuery = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const enum_1 = require("../../enum");
|
|
6
4
|
const schemas_1 = require("../../schemas");
|
|
7
|
-
const money_schema_1 = require("../../schemas/money.schema");
|
|
8
|
-
const GetProductDiscountPriceRequestSchema = zod_1.z.object({
|
|
9
|
-
productUUID: zod_1.z.uuid(),
|
|
10
|
-
clientUUID: zod_1.z.preprocess(val => {
|
|
11
|
-
return val === 'null' ? null : val;
|
|
12
|
-
}, zod_1.z.uuid().nullable().optional()),
|
|
13
|
-
});
|
|
14
|
-
/**
|
|
15
|
-
* Цена товара по одному правилу — для показа вариантов.
|
|
16
|
-
*
|
|
17
|
-
* `discountValueData` описывает, чем правило обернулось для этого товара, а не как оно настроено:
|
|
18
|
-
* у правила от себестоимости это готовая цена, и самой наценки здесь нет.
|
|
19
|
-
*
|
|
20
|
-
* В списки попадают только варианты, которые действительно снижают цену: правило, оставляющее базу
|
|
21
|
-
* как есть, выбором не является.
|
|
22
|
-
*/
|
|
23
|
-
const ProductDiscountPriceItemSchema = zod_1.z.object({
|
|
24
|
-
discountRulesUUID: zod_1.z.string(),
|
|
25
|
-
type: zod_1.z.nativeEnum(enum_1.DiscountRulesTypeEnum),
|
|
26
|
-
discountValueData: schemas_1.discountPriceOutcomeSchema,
|
|
27
|
-
priceWithDiscount: money_schema_1.MoneySchema,
|
|
28
|
-
});
|
|
29
|
-
/**
|
|
30
|
-
* Готовые цены товара для клиента: то, что нужно при работе с товаром, а не при настройке правил.
|
|
31
|
-
*
|
|
32
|
-
* Считает бэк тем же движком, что и для витрины, — панель формулу скидок не повторяет и
|
|
33
|
-
* себестоимость не получает. Настройка правил живёт отдельно, в `GetDiscountRulesAllContractQuery`.
|
|
34
|
-
*
|
|
35
|
-
* `null` в ценах со скидкой означает «скидка неприменима», а не «ноль».
|
|
36
|
-
*/
|
|
37
|
-
const GetProductDiscountPriceResponseSchema = zod_1.z.object({
|
|
38
|
-
message: zod_1.z.string().optional(),
|
|
39
|
-
data: zod_1.z.object({
|
|
40
|
-
productUUID: zod_1.z.string(),
|
|
41
|
-
price: money_schema_1.MoneySchema,
|
|
42
|
-
priceWithBestDiscount: money_schema_1.MoneySchema.nullable(),
|
|
43
|
-
multiplicityOptions: zod_1.z
|
|
44
|
-
.object({
|
|
45
|
-
uuid: zod_1.z.string(),
|
|
46
|
-
optionPrice: money_schema_1.MoneySchema.nullable(),
|
|
47
|
-
optionPriceWithDiscount: money_schema_1.MoneySchema.nullable(),
|
|
48
|
-
isDiscountApplicable: zod_1.z.boolean(),
|
|
49
|
-
/**
|
|
50
|
-
* Варианты по этой фасовке: те же правила, но посчитанные от её цены.
|
|
51
|
-
*
|
|
52
|
-
* Список свой у каждой кратности, потому что база у них разная — у правила нет
|
|
53
|
-
* одной цены на товар, пока не выбрана форма отгрузки. Пустой список означает
|
|
54
|
-
* «выбирать нечего»: скидки к этой кратности запрещены продавцом либо ни одно
|
|
55
|
-
* правило её цену не снижает.
|
|
56
|
-
*
|
|
57
|
-
* Порядок элементов не отсортирован по цене — он унаследован от сортировки правил
|
|
58
|
-
* товара, а база у фасовки другая. Лучшую цену берите из `optionPriceWithDiscount`,
|
|
59
|
-
* а не из первого элемента.
|
|
60
|
-
*/
|
|
61
|
-
discountDataList: ProductDiscountPriceItemSchema.array(),
|
|
62
|
-
})
|
|
63
|
-
.array(),
|
|
64
|
-
/**
|
|
65
|
-
* Варианты по базовой цене товара. Как и у фасовок, порядок не гарантирован: лучшую цену
|
|
66
|
-
* отдаёт `priceWithBestDiscount`.
|
|
67
|
-
*/
|
|
68
|
-
discountDataList: ProductDiscountPriceItemSchema.array(),
|
|
69
|
-
}),
|
|
70
|
-
});
|
|
71
5
|
var GetProductDiscountPriceContractQuery;
|
|
72
6
|
(function (GetProductDiscountPriceContractQuery) {
|
|
73
|
-
GetProductDiscountPriceContractQuery.RequestSchema = GetProductDiscountPriceRequestSchema;
|
|
74
|
-
GetProductDiscountPriceContractQuery.ResponseSchema = GetProductDiscountPriceResponseSchema;
|
|
7
|
+
GetProductDiscountPriceContractQuery.RequestSchema = schemas_1.GetProductDiscountPriceRequestSchema;
|
|
8
|
+
GetProductDiscountPriceContractQuery.ResponseSchema = schemas_1.GetProductDiscountPriceResponseSchema;
|
|
75
9
|
})(GetProductDiscountPriceContractQuery || (exports.GetProductDiscountPriceContractQuery = GetProductDiscountPriceContractQuery = {}));
|
|
@@ -1,15 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CreateCartContractCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
4
|
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
5
|
var CreateCartContractCommand;
|
|
12
6
|
(function (CreateCartContractCommand) {
|
|
13
|
-
CreateCartContractCommand.RequestSchema = CreateCartRequestSchema;
|
|
14
|
-
CreateCartContractCommand.ResponseSchema = CreateCartResponseSchema;
|
|
7
|
+
CreateCartContractCommand.RequestSchema = schemas_1.CreateCartRequestSchema;
|
|
8
|
+
CreateCartContractCommand.ResponseSchema = schemas_1.CreateCartResponseSchema;
|
|
15
9
|
})(CreateCartContractCommand || (exports.CreateCartContractCommand = CreateCartContractCommand = {}));
|
|
@@ -1,15 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetOrderForClientContractQuery = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
4
|
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
5
|
var GetOrderForClientContractQuery;
|
|
12
6
|
(function (GetOrderForClientContractQuery) {
|
|
13
|
-
GetOrderForClientContractQuery.RequestSchema = GetOrderForClientRequestSchema;
|
|
14
|
-
GetOrderForClientContractQuery.ResponseSchema = GetOrderForClientResponseSchema;
|
|
7
|
+
GetOrderForClientContractQuery.RequestSchema = schemas_1.GetOrderForClientRequestSchema;
|
|
8
|
+
GetOrderForClientContractQuery.ResponseSchema = schemas_1.GetOrderForClientResponseSchema;
|
|
15
9
|
})(GetOrderForClientContractQuery || (exports.GetOrderForClientContractQuery = GetOrderForClientContractQuery = {}));
|
|
@@ -1,53 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetOrderForClientListContractQuery = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
4
|
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: 'validation.statusNotAllowedWebshop',
|
|
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: 'validation.dateRange',
|
|
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
5
|
var GetOrderForClientListContractQuery;
|
|
50
6
|
(function (GetOrderForClientListContractQuery) {
|
|
51
|
-
GetOrderForClientListContractQuery.RequestSchema = GetOrderForClientListRequestSchema;
|
|
52
|
-
GetOrderForClientListContractQuery.ResponseSchema = GetOrderForClientListResponseSchema;
|
|
7
|
+
GetOrderForClientListContractQuery.RequestSchema = schemas_1.GetOrderForClientListRequestSchema;
|
|
8
|
+
GetOrderForClientListContractQuery.ResponseSchema = schemas_1.GetOrderForClientListResponseSchema;
|
|
53
9
|
})(GetOrderForClientListContractQuery || (exports.GetOrderForClientListContractQuery = GetOrderForClientListContractQuery = {}));
|
|
@@ -1,32 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.UpdateCartContractCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
4
|
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
|
-
// Дата выдачи/доставки заказа — одна для самовывоза и доставки. Относится к товару в наличии:
|
|
10
|
-
// заказы с товаром в пути после оформления получают дату прихода. Имеет приоритет над
|
|
11
|
-
// устаревшим `delivery.deliveryDate`.
|
|
12
|
-
plannedShipmentDate: schemas_1.CalendarDaySchema.nullable().optional(),
|
|
13
|
-
delivery: zod_1.z
|
|
14
|
-
.object({
|
|
15
|
-
/** @deprecated Используйте `plannedShipmentDate` — единую дату для самовывоза и доставки. */
|
|
16
|
-
deliveryDate: zod_1.z.coerce.date().optional().nullable().default(null),
|
|
17
|
-
address: zod_1.z.string().nullable().optional().default(null),
|
|
18
|
-
time: zod_1.z.string().nullable().optional().default(null),
|
|
19
|
-
})
|
|
20
|
-
.optional()
|
|
21
|
-
.nullable()
|
|
22
|
-
.default(null),
|
|
23
|
-
});
|
|
24
|
-
const UpdateCartResponseSchema = zod_1.z.object({
|
|
25
|
-
message: zod_1.z.string().optional(),
|
|
26
|
-
data: schemas_1.OrderForClientSchema,
|
|
27
|
-
});
|
|
28
5
|
var UpdateCartContractCommand;
|
|
29
6
|
(function (UpdateCartContractCommand) {
|
|
30
|
-
UpdateCartContractCommand.RequestSchema = UpdateCartRequestSchema;
|
|
31
|
-
UpdateCartContractCommand.ResponseSchema = UpdateCartResponseSchema;
|
|
7
|
+
UpdateCartContractCommand.RequestSchema = schemas_1.UpdateCartRequestSchema;
|
|
8
|
+
UpdateCartContractCommand.ResponseSchema = schemas_1.UpdateCartResponseSchema;
|
|
32
9
|
})(UpdateCartContractCommand || (exports.UpdateCartContractCommand = UpdateCartContractCommand = {}));
|
|
@@ -1,15 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetOrderProductForClientListContractQuery = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
4
|
const schemas_1 = require("../../../schemas");
|
|
6
|
-
const GetOrderProductForClientListRequestSchema = zod_1.z.object({});
|
|
7
|
-
const GetOrderProductForClientListResponseSchema = zod_1.z.object({
|
|
8
|
-
message: zod_1.z.string().optional(),
|
|
9
|
-
data: schemas_1.OrderProductForClientListSchema,
|
|
10
|
-
});
|
|
11
5
|
var GetOrderProductForClientListContractQuery;
|
|
12
6
|
(function (GetOrderProductForClientListContractQuery) {
|
|
13
|
-
GetOrderProductForClientListContractQuery.RequestSchema = GetOrderProductForClientListRequestSchema;
|
|
14
|
-
GetOrderProductForClientListContractQuery.ResponseSchema = GetOrderProductForClientListResponseSchema;
|
|
7
|
+
GetOrderProductForClientListContractQuery.RequestSchema = schemas_1.GetOrderProductForClientListRequestSchema;
|
|
8
|
+
GetOrderProductForClientListContractQuery.ResponseSchema = schemas_1.GetOrderProductForClientListResponseSchema;
|
|
15
9
|
})(GetOrderProductForClientListContractQuery || (exports.GetOrderProductForClientListContractQuery = GetOrderProductForClientListContractQuery = {}));
|
|
@@ -1,19 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetPreOrderListWebshopContractCommand = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const schemas_1 = require("../../../schemas");
|
|
7
|
-
const GetPreOrderListWebshopRequestSchema = zod_1.z.object({
|
|
8
|
-
page: zod_1.z.coerce.number().optional().default(1),
|
|
9
|
-
count: zod_1.z.coerce.number().optional().default(10),
|
|
10
|
-
statuses: zod_1.z.array(zod_1.z.nativeEnum(enum_1.PreOrderStatusEnum)).optional(),
|
|
11
|
-
});
|
|
12
|
-
const GetPreOrderListResponseSchema = zod_1.z.object({
|
|
13
|
-
data: schemas_1.PreOrderListSchema,
|
|
14
|
-
});
|
|
15
|
-
var GetPreOrderListWebshopContractCommand;
|
|
16
|
-
(function (GetPreOrderListWebshopContractCommand) {
|
|
17
|
-
GetPreOrderListWebshopContractCommand.RequestSchema = GetPreOrderListWebshopRequestSchema;
|
|
18
|
-
GetPreOrderListWebshopContractCommand.ResponseSchema = GetPreOrderListResponseSchema;
|
|
19
|
-
})(GetPreOrderListWebshopContractCommand || (exports.GetPreOrderListWebshopContractCommand = GetPreOrderListWebshopContractCommand = {}));
|
|
4
|
+
var get_pre_order_list_webshop_query_1 = require("./get-pre-order-list-webshop.query");
|
|
5
|
+
Object.defineProperty(exports, "GetPreOrderListWebshopContractCommand", { enumerable: true, get: function () { return get_pre_order_list_webshop_query_1.GetPreOrderListWebshopContractCommand; } });
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetPreOrderListWebshopContractCommand = void 0;
|
|
4
|
+
const schemas_1 = require("../../../schemas");
|
|
5
|
+
var GetPreOrderListWebshopContractCommand;
|
|
6
|
+
(function (GetPreOrderListWebshopContractCommand) {
|
|
7
|
+
GetPreOrderListWebshopContractCommand.RequestSchema = schemas_1.GetPreOrderListWebshopRequestSchema;
|
|
8
|
+
GetPreOrderListWebshopContractCommand.ResponseSchema = schemas_1.GetPreOrderListWebshopResponseSchema;
|
|
9
|
+
})(GetPreOrderListWebshopContractCommand || (exports.GetPreOrderListWebshopContractCommand = GetPreOrderListWebshopContractCommand = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetPreOrderWebshopContractQuery = void 0;
|
|
4
|
+
const schemas_1 = require("../../../schemas");
|
|
5
|
+
var GetPreOrderWebshopContractQuery;
|
|
6
|
+
(function (GetPreOrderWebshopContractQuery) {
|
|
7
|
+
GetPreOrderWebshopContractQuery.ResponseSchema = schemas_1.GetPreOrderWebshopResponseSchema;
|
|
8
|
+
})(GetPreOrderWebshopContractQuery || (exports.GetPreOrderWebshopContractQuery = GetPreOrderWebshopContractQuery = {}));
|
|
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./update-pre-order-webshop.command"), exports);
|
|
18
18
|
__exportStar(require("./create-pre-order-webshop.command"), exports);
|
|
19
|
-
__exportStar(require("./get-pre-order-list-webshop.
|
|
19
|
+
__exportStar(require("./get-pre-order-list-webshop.query"), exports);
|
|
20
20
|
__exportStar(require("./delete-pre-order-webshop.command"), exports);
|
|
21
21
|
__exportStar(require("./checkout-pre-order-webshop.command"), exports);
|
|
22
|
+
__exportStar(require("./get-pre-order-webshop.query"), exports);
|
package/build/commands/pre-order-collection-item/delete-group-pre-order-collection-item.command.js
CHANGED
|
@@ -1,19 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DeleteGroupPreOrderCollectionItemContractCommand = void 0;
|
|
4
|
-
const
|
|
5
|
-
const DeleteGroupPreOrderCollectionItemRequestSchema = zod_1.z.object({
|
|
6
|
-
preOrderCollectionItemUUIDs: zod_1.z.array(zod_1.z.string()),
|
|
7
|
-
});
|
|
8
|
-
const DeleteGroupPreOrderCollectionItemResponseSchema = zod_1.z.object({
|
|
9
|
-
message: zod_1.z.string().optional(),
|
|
10
|
-
data: zod_1.z.object({
|
|
11
|
-
success: zod_1.z.boolean(),
|
|
12
|
-
missedItems: zod_1.z.array(zod_1.z.string()).optional(),
|
|
13
|
-
}),
|
|
14
|
-
});
|
|
4
|
+
const schemas_1 = require("../../schemas");
|
|
15
5
|
var DeleteGroupPreOrderCollectionItemContractCommand;
|
|
16
6
|
(function (DeleteGroupPreOrderCollectionItemContractCommand) {
|
|
17
|
-
DeleteGroupPreOrderCollectionItemContractCommand.RequestSchema = DeleteGroupPreOrderCollectionItemRequestSchema;
|
|
18
|
-
DeleteGroupPreOrderCollectionItemContractCommand.ResponseSchema = DeleteGroupPreOrderCollectionItemResponseSchema;
|
|
7
|
+
DeleteGroupPreOrderCollectionItemContractCommand.RequestSchema = schemas_1.DeleteGroupPreOrderCollectionItemRequestSchema;
|
|
8
|
+
DeleteGroupPreOrderCollectionItemContractCommand.ResponseSchema = schemas_1.DeleteGroupPreOrderCollectionItemResponseSchema;
|
|
19
9
|
})(DeleteGroupPreOrderCollectionItemContractCommand || (exports.DeleteGroupPreOrderCollectionItemContractCommand = DeleteGroupPreOrderCollectionItemContractCommand = {}));
|
|
@@ -1,25 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetPreOrderCollectionItemGroupedListForClientContractQuery = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
4
|
const schemas_1 = require("../../schemas");
|
|
6
|
-
const GetPreOrderCollectionItemGroupedListForClientRequestSchema = zod_1.z.object({
|
|
7
|
-
sizes: zod_1.z.array(zod_1.z.string()).optional(),
|
|
8
|
-
colors: zod_1.z.array(zod_1.z.string()).optional(),
|
|
9
|
-
preOrderCollectionsUUID: zod_1.z.array(zod_1.z.string()).optional(),
|
|
10
|
-
categoriesUUID: zod_1.z.array(zod_1.z.string()).optional(),
|
|
11
|
-
growers: zod_1.z.array(zod_1.z.string()).optional(),
|
|
12
|
-
countries: zod_1.z.array(zod_1.z.string()).optional(),
|
|
13
|
-
searchQuery: zod_1.z.string().optional(),
|
|
14
|
-
page: zod_1.z.coerce.number().optional().default(1),
|
|
15
|
-
count: zod_1.z.coerce.number().optional().default(10),
|
|
16
|
-
});
|
|
17
|
-
const GetPreOrderCollectionItemGroupedListForClientResponseSchema = zod_1.z.object({
|
|
18
|
-
message: zod_1.z.string().optional(),
|
|
19
|
-
data: schemas_1.PreOrderCollectionItemGroupedListSchema,
|
|
20
|
-
});
|
|
21
5
|
var GetPreOrderCollectionItemGroupedListForClientContractQuery;
|
|
22
6
|
(function (GetPreOrderCollectionItemGroupedListForClientContractQuery) {
|
|
23
|
-
GetPreOrderCollectionItemGroupedListForClientContractQuery.RequestSchema =
|
|
24
|
-
GetPreOrderCollectionItemGroupedListForClientContractQuery.ResponseSchema = GetPreOrderCollectionItemGroupedListForClientResponseSchema;
|
|
7
|
+
GetPreOrderCollectionItemGroupedListForClientContractQuery.RequestSchema = schemas_1.PreOrderCollectionItemCatalogFilterForClientRequestSchema;
|
|
8
|
+
GetPreOrderCollectionItemGroupedListForClientContractQuery.ResponseSchema = schemas_1.GetPreOrderCollectionItemGroupedListForClientResponseSchema;
|
|
25
9
|
})(GetPreOrderCollectionItemGroupedListForClientContractQuery || (exports.GetPreOrderCollectionItemGroupedListForClientContractQuery = GetPreOrderCollectionItemGroupedListForClientContractQuery = {}));
|
|
@@ -1,25 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetPreOrderCollectionItemListForClientContractQuery = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
4
|
const schemas_1 = require("../../schemas");
|
|
6
|
-
const GetPreOrderCollectionItemListForClientRequestSchema = zod_1.z.object({
|
|
7
|
-
sizes: zod_1.z.array(zod_1.z.string()).optional(),
|
|
8
|
-
colors: zod_1.z.array(zod_1.z.string()).optional(),
|
|
9
|
-
preOrderCollectionsUUID: zod_1.z.array(zod_1.z.string()).optional(),
|
|
10
|
-
categoriesUUID: zod_1.z.array(zod_1.z.string()).optional(),
|
|
11
|
-
growers: zod_1.z.array(zod_1.z.string()).optional(),
|
|
12
|
-
countries: zod_1.z.array(zod_1.z.string()).optional(),
|
|
13
|
-
searchQuery: zod_1.z.string().optional(),
|
|
14
|
-
page: zod_1.z.coerce.number().optional().default(1),
|
|
15
|
-
count: zod_1.z.coerce.number().optional().default(10),
|
|
16
|
-
});
|
|
17
|
-
const GetPreOrderCollectionItemListForClientResponseSchema = zod_1.z.object({
|
|
18
|
-
message: zod_1.z.string().optional(),
|
|
19
|
-
data: schemas_1.PreOrderCollectionItemExtendedWithPreOrderCollectionListSchema,
|
|
20
|
-
});
|
|
21
5
|
var GetPreOrderCollectionItemListForClientContractQuery;
|
|
22
6
|
(function (GetPreOrderCollectionItemListForClientContractQuery) {
|
|
23
|
-
GetPreOrderCollectionItemListForClientContractQuery.RequestSchema =
|
|
24
|
-
GetPreOrderCollectionItemListForClientContractQuery.ResponseSchema = GetPreOrderCollectionItemListForClientResponseSchema;
|
|
7
|
+
GetPreOrderCollectionItemListForClientContractQuery.RequestSchema = schemas_1.PreOrderCollectionItemCatalogFilterForClientRequestSchema;
|
|
8
|
+
GetPreOrderCollectionItemListForClientContractQuery.ResponseSchema = schemas_1.GetPreOrderCollectionItemListForClientResponseSchema;
|
|
25
9
|
})(GetPreOrderCollectionItemListForClientContractQuery || (exports.GetPreOrderCollectionItemListForClientContractQuery = GetPreOrderCollectionItemListForClientContractQuery = {}));
|
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CreatePreOrderProductWebshopContractCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
4
|
const schemas_1 = require("../../schemas");
|
|
6
|
-
const CreatePreOrderProductWebshopResponseSchema = zod_1.z.object({
|
|
7
|
-
message: zod_1.z.string().optional(),
|
|
8
|
-
data: schemas_1.PreOrderProductSchema,
|
|
9
|
-
});
|
|
10
5
|
var CreatePreOrderProductWebshopContractCommand;
|
|
11
6
|
(function (CreatePreOrderProductWebshopContractCommand) {
|
|
12
|
-
CreatePreOrderProductWebshopContractCommand.RequestSchema = schemas_1.
|
|
13
|
-
CreatePreOrderProductWebshopContractCommand.ResponseSchema = CreatePreOrderProductWebshopResponseSchema;
|
|
7
|
+
CreatePreOrderProductWebshopContractCommand.RequestSchema = schemas_1.CreatePreOrderProductWebshopRequestSchema;
|
|
8
|
+
CreatePreOrderProductWebshopContractCommand.ResponseSchema = schemas_1.CreatePreOrderProductWebshopResponseSchema;
|
|
14
9
|
})(CreatePreOrderProductWebshopContractCommand || (exports.CreatePreOrderProductWebshopContractCommand = CreatePreOrderProductWebshopContractCommand = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetPreOrderProductExtendedListWebshopContractQuery = void 0;
|
|
4
|
+
const schemas_1 = require("../../schemas");
|
|
5
|
+
var GetPreOrderProductExtendedListWebshopContractQuery;
|
|
6
|
+
(function (GetPreOrderProductExtendedListWebshopContractQuery) {
|
|
7
|
+
GetPreOrderProductExtendedListWebshopContractQuery.RequestSchema = schemas_1.PaginationRequestSchema;
|
|
8
|
+
GetPreOrderProductExtendedListWebshopContractQuery.ResponseSchema = schemas_1.GetPreOrderProductExtendedListWebshopResponseSchema;
|
|
9
|
+
})(GetPreOrderProductExtendedListWebshopContractQuery || (exports.GetPreOrderProductExtendedListWebshopContractQuery = GetPreOrderProductExtendedListWebshopContractQuery = {}));
|
|
@@ -27,6 +27,7 @@ __exportStar(require("./delete-pre-order-product-webshop.command"), exports);
|
|
|
27
27
|
__exportStar(require("./update-pre-order-product-webshop.command"), exports);
|
|
28
28
|
__exportStar(require("./get-pre-order-product-list.query"), exports);
|
|
29
29
|
__exportStar(require("./get-pre-order-product-extended-list.query"), exports);
|
|
30
|
+
__exportStar(require("./get-pre-order-product-extended-list-webshop.query"), exports);
|
|
30
31
|
__exportStar(require("./get-active-stepper-positions.query"), exports);
|
|
31
32
|
__exportStar(require("./create-manually-pre-order-product-for-standing-order.command"), exports);
|
|
32
33
|
__exportStar(require("./get-pre-order-products-by-pre-order-list.command"), exports);
|
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.UpdatePreOrderProductWebshopContractCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
4
|
const schemas_1 = require("../../schemas");
|
|
6
|
-
const UpdatePreOrderProductWebshopResponseSchema = zod_1.z.object({
|
|
7
|
-
message: zod_1.z.string().optional(),
|
|
8
|
-
data: schemas_1.PreOrderProductSchema,
|
|
9
|
-
});
|
|
10
5
|
var UpdatePreOrderProductWebshopContractCommand;
|
|
11
6
|
(function (UpdatePreOrderProductWebshopContractCommand) {
|
|
12
|
-
UpdatePreOrderProductWebshopContractCommand.RequestSchema = schemas_1.
|
|
13
|
-
UpdatePreOrderProductWebshopContractCommand.ResponseSchema = UpdatePreOrderProductWebshopResponseSchema;
|
|
7
|
+
UpdatePreOrderProductWebshopContractCommand.RequestSchema = schemas_1.UpdatePreOrderProductWebshopRequestSchema;
|
|
8
|
+
UpdatePreOrderProductWebshopContractCommand.ResponseSchema = schemas_1.UpdatePreOrderProductWebshopResponseSchema;
|
|
14
9
|
})(UpdatePreOrderProductWebshopContractCommand || (exports.UpdatePreOrderProductWebshopContractCommand = UpdatePreOrderProductWebshopContractCommand = {}));
|
|
@@ -1,38 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetProductListForClientContractQuery = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const enum_1 = require("../../../enum");
|
|
6
4
|
const schemas_1 = require("../../../schemas");
|
|
7
|
-
const GetProductListForClientRequestSchema = zod_1.z.object({
|
|
8
|
-
page: zod_1.z.string().transform(val => Number(val) || 1),
|
|
9
|
-
count: zod_1.z.string().transform(val => Number(val) || 10),
|
|
10
|
-
stock: zod_1.z
|
|
11
|
-
.string()
|
|
12
|
-
.transform(val => (val === 'true' ? true : val === 'false' ? false : undefined))
|
|
13
|
-
.optional(),
|
|
14
|
-
deliveryDates: zod_1.z.coerce.date().array().optional(),
|
|
15
|
-
sizes: zod_1.z.string().array().optional(),
|
|
16
|
-
colors: zod_1.z.string().array().optional(),
|
|
17
|
-
growers: zod_1.z.string().array().optional(),
|
|
18
|
-
countries: zod_1.z.string().array().optional(),
|
|
19
|
-
categoryUUID: zod_1.z.string().optional(),
|
|
20
|
-
typeUUID: zod_1.z.string().optional(),
|
|
21
|
-
searchQuery: zod_1.z.string().optional(),
|
|
22
|
-
marks: zod_1.z.nativeEnum(enum_1.ProductMarkEnum).array().optional(),
|
|
23
|
-
// Без `sortBy` порядок остаётся прежним — по категории, названию и размеру. Сортировка по цене
|
|
24
|
-
// идёт по базовому прайсу, скидки клиента её не двигают: см. ProductClientSortByEnum.
|
|
25
|
-
sortBy: zod_1.z.nativeEnum(enum_1.ProductClientSortByEnum).optional(),
|
|
26
|
-
// Без `.default()`: он уезжает в `_output`, а значит и в опубликованный `Request`, делая поле
|
|
27
|
-
// обязательным для клиентов. Отсутствующее направление билдер и так читает как ASC.
|
|
28
|
-
sortOrder: zod_1.z.nativeEnum(enum_1.OrderByEnum).optional(),
|
|
29
|
-
});
|
|
30
|
-
const GetProductListForClientResponseSchema = zod_1.z.object({
|
|
31
|
-
message: zod_1.z.string().optional(),
|
|
32
|
-
data: schemas_1.ProductListExtendedForClientSchema,
|
|
33
|
-
});
|
|
34
5
|
var GetProductListForClientContractQuery;
|
|
35
6
|
(function (GetProductListForClientContractQuery) {
|
|
36
|
-
GetProductListForClientContractQuery.RequestSchema = GetProductListForClientRequestSchema;
|
|
37
|
-
GetProductListForClientContractQuery.ResponseSchema = GetProductListForClientResponseSchema;
|
|
7
|
+
GetProductListForClientContractQuery.RequestSchema = schemas_1.GetProductListForClientRequestSchema;
|
|
8
|
+
GetProductListForClientContractQuery.ResponseSchema = schemas_1.GetProductListForClientResponseSchema;
|
|
38
9
|
})(GetProductListForClientContractQuery || (exports.GetProductListForClientContractQuery = GetProductListForClientContractQuery = {}));
|
|
@@ -1,37 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetTransactionListForClientContractQuery = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
4
|
const schemas_1 = require("../../../schemas");
|
|
6
|
-
const date_helper_1 = require("../../../helpers/date.helper");
|
|
7
|
-
const enum_1 = require("../../../enum");
|
|
8
|
-
const GetTransactionListForClientRequestSchema = zod_1.z
|
|
9
|
-
.object({
|
|
10
|
-
page: zod_1.z.coerce.number().optional().default(1),
|
|
11
|
-
count: zod_1.z.coerce.number().optional().default(10),
|
|
12
|
-
startDate: zod_1.z.coerce.date().optional(),
|
|
13
|
-
endDate: zod_1.z.coerce.date().optional(),
|
|
14
|
-
transactionType: zod_1.z.nativeEnum(enum_1.TransactionTypeEnum).optional(),
|
|
15
|
-
moneyAccountUUID: zod_1.z.string().optional(),
|
|
16
|
-
orderUUID: zod_1.z.string().optional(),
|
|
17
|
-
searchQuery: zod_1.z.string().optional(),
|
|
18
|
-
})
|
|
19
|
-
.refine(value => {
|
|
20
|
-
const { startDate, endDate } = value;
|
|
21
|
-
if (startDate && endDate) {
|
|
22
|
-
return (0, date_helper_1.dateRangeCheck)(startDate, endDate);
|
|
23
|
-
}
|
|
24
|
-
return true;
|
|
25
|
-
}, {
|
|
26
|
-
message: 'validation.dateRange',
|
|
27
|
-
path: ['endDate', 'startDate'],
|
|
28
|
-
});
|
|
29
|
-
const GetTransactionListForClientResponseSchema = zod_1.z.object({
|
|
30
|
-
message: zod_1.z.string().optional(),
|
|
31
|
-
data: schemas_1.TransactionListForClientSchema,
|
|
32
|
-
});
|
|
33
5
|
var GetTransactionListForClientContractQuery;
|
|
34
6
|
(function (GetTransactionListForClientContractQuery) {
|
|
35
|
-
GetTransactionListForClientContractQuery.RequestSchema = GetTransactionListForClientRequestSchema;
|
|
36
|
-
GetTransactionListForClientContractQuery.ResponseSchema = GetTransactionListForClientResponseSchema;
|
|
7
|
+
GetTransactionListForClientContractQuery.RequestSchema = schemas_1.GetTransactionListForClientRequestSchema;
|
|
8
|
+
GetTransactionListForClientContractQuery.ResponseSchema = schemas_1.GetTransactionListForClientResponseSchema;
|
|
37
9
|
})(GetTransactionListForClientContractQuery || (exports.GetTransactionListForClientContractQuery = GetTransactionListForClientContractQuery = {}));
|
|
@@ -1,21 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CreateWriteOffFromOrderForClientContractCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
4
|
const schemas_1 = require("../../../schemas");
|
|
6
|
-
const CreateWriteOffFromOrderForClientRequestSchema = zod_1.z.object({
|
|
7
|
-
// Колонка `WriteOff.quantity` — Int: дробное значение доходило до Prisma и падало общей ошибкой.
|
|
8
|
-
quantity: zod_1.z.coerce.number().int().positive(),
|
|
9
|
-
comment: zod_1.z.string().nullable(),
|
|
10
|
-
productUUID: zod_1.z.string(),
|
|
11
|
-
orderProductUUID: zod_1.z.string(),
|
|
12
|
-
});
|
|
13
|
-
const CreateWriteOffFromOrderForClientResponseSchema = zod_1.z.object({
|
|
14
|
-
message: zod_1.z.string().optional(),
|
|
15
|
-
data: schemas_1.WriteOffSchema.nullable(),
|
|
16
|
-
});
|
|
17
5
|
var CreateWriteOffFromOrderForClientContractCommand;
|
|
18
6
|
(function (CreateWriteOffFromOrderForClientContractCommand) {
|
|
19
|
-
CreateWriteOffFromOrderForClientContractCommand.RequestSchema = CreateWriteOffFromOrderForClientRequestSchema;
|
|
20
|
-
CreateWriteOffFromOrderForClientContractCommand.ResponseSchema = CreateWriteOffFromOrderForClientResponseSchema;
|
|
7
|
+
CreateWriteOffFromOrderForClientContractCommand.RequestSchema = schemas_1.CreateWriteOffFromOrderForClientRequestSchema;
|
|
8
|
+
CreateWriteOffFromOrderForClientContractCommand.ResponseSchema = schemas_1.CreateWriteOffFromOrderForClientResponseSchema;
|
|
21
9
|
})(CreateWriteOffFromOrderForClientContractCommand || (exports.CreateWriteOffFromOrderForClientContractCommand = CreateWriteOffFromOrderForClientContractCommand = {}));
|
|
@@ -1,15 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetWriteOffListByOrderForClientContractQuery = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
4
|
const schemas_1 = require("../../../schemas");
|
|
6
|
-
const GetWriteOffListByOrderForClientRequestSchema = zod_1.z.object({});
|
|
7
|
-
const GetWriteOffListByOrderForClientResponseSchema = zod_1.z.object({
|
|
8
|
-
message: zod_1.z.string().optional(),
|
|
9
|
-
data: schemas_1.WriteOffSchema.array(),
|
|
10
|
-
});
|
|
11
5
|
var GetWriteOffListByOrderForClientContractQuery;
|
|
12
6
|
(function (GetWriteOffListByOrderForClientContractQuery) {
|
|
13
|
-
GetWriteOffListByOrderForClientContractQuery.RequestSchema = GetWriteOffListByOrderForClientRequestSchema;
|
|
14
|
-
GetWriteOffListByOrderForClientContractQuery.ResponseSchema = GetWriteOffListByOrderForClientResponseSchema;
|
|
7
|
+
GetWriteOffListByOrderForClientContractQuery.RequestSchema = schemas_1.GetWriteOffListByOrderForClientRequestSchema;
|
|
8
|
+
GetWriteOffListByOrderForClientContractQuery.ResponseSchema = schemas_1.GetWriteOffListByOrderForClientResponseSchema;
|
|
15
9
|
})(GetWriteOffListByOrderForClientContractQuery || (exports.GetWriteOffListByOrderForClientContractQuery = GetWriteOffListByOrderForClientContractQuery = {}));
|