@floristcloud/api-lib 1.2.159 → 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/export-stock-products.query.js +11 -0
- package/build/commands/product/get-product-list.query.js +4 -25
- package/build/commands/product/index.js +1 -0
- 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 +18 -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 -37
- 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/export-stock-products-request.schema.js +14 -0
- package/build/schemas/product/export-stock-products-response.schema.js +7 -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/get-product-list-request.schema.js +21 -0
- package/build/schemas/product/get-product-list-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/export-stock-products.query.ts +13 -0
- package/commands/product/get-product-list.query.ts +3 -25
- package/commands/product/index.ts +1 -0
- 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 +18 -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 -37
- 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/export-stock-products-request.schema.ts +12 -0
- package/schemas/product/export-stock-products-response.schema.ts +5 -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/get-product-list-request.schema.ts +19 -0
- package/schemas/product/get-product-list-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
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { OrderStatusEnum, OrderTypeEnum } from '../../enum';
|
|
3
|
+
import { MoneySchema } from '../money.schema';
|
|
4
|
+
import { CalendarDaySchema } from '../calendar-day.schema';
|
|
5
|
+
|
|
6
|
+
export const OrderSchema = z.object({
|
|
7
|
+
uuid: z.uuid(),
|
|
8
|
+
orderNumber: z.number(),
|
|
9
|
+
clientUUID: z.uuid(),
|
|
10
|
+
branchUUID: z.uuid().nullable(),
|
|
11
|
+
creatorUserUUID: z.uuid(),
|
|
12
|
+
|
|
13
|
+
totalCost: MoneySchema,
|
|
14
|
+
subtotal: MoneySchema,
|
|
15
|
+
deliveryCost: MoneySchema,
|
|
16
|
+
deliveryCheckAmount: MoneySchema,
|
|
17
|
+
deliveryVatAmount: MoneySchema,
|
|
18
|
+
deliveryVat: z.number().nullable(),
|
|
19
|
+
vatAmount: MoneySchema,
|
|
20
|
+
discountAmount: MoneySchema,
|
|
21
|
+
discount: z.number().nullable(),
|
|
22
|
+
|
|
23
|
+
status: z.nativeEnum(OrderStatusEnum),
|
|
24
|
+
type: z.nativeEnum(OrderTypeEnum),
|
|
25
|
+
isPaid: z.boolean(),
|
|
26
|
+
|
|
27
|
+
comment: z.string().nullable(),
|
|
28
|
+
clientComment: z.string().nullable(),
|
|
29
|
+
tag: z.string().nullable(),
|
|
30
|
+
|
|
31
|
+
totalQuantity: z.number(),
|
|
32
|
+
totalProductNumber: z.number(),
|
|
33
|
+
invoiceSendAt: z.date().nullable(),
|
|
34
|
+
deliveryRouteUUID: z.uuid().nullable(),
|
|
35
|
+
// Счёт на оплату, в который включён заказ. Сам счёт (номер, файл, статус оплаты) читается
|
|
36
|
+
// отдельным запросом GET /payment-invoice/:uuid — здесь только ссылка, чтобы не утяжелять список заказов.
|
|
37
|
+
paymentInvoiceUUID: z.uuid().nullable(),
|
|
38
|
+
// Передаточный документ (УПД), в который включён заказ. Тем же приёмом, что и счёт: здесь только
|
|
39
|
+
// ссылка, документ читается через GET /transfer-document/:uuid. Непустое значение означает, что
|
|
40
|
+
// заказ заморожен — состав, статус, доставка, дата отгрузки и скидка ему уже недоступны.
|
|
41
|
+
transferDocumentUUID: z.uuid().nullable(),
|
|
42
|
+
// Номер заказа в ERP/CRM компании, которым сотрудники сверяют заказ со своей учётной системой.
|
|
43
|
+
externalNumber: z.string().nullable(),
|
|
44
|
+
|
|
45
|
+
completedAt: z.date().nullable(),
|
|
46
|
+
paymentDueAt: z.date().nullable(),
|
|
47
|
+
// План отгрузки/выдачи — одна дата для самовывоза и доставки, календарный день `YYYY-MM-DD`.
|
|
48
|
+
// Не путать с `completedAt` (факт отгрузки) и датой прихода партии.
|
|
49
|
+
plannedShipmentDate: CalendarDaySchema.nullable(),
|
|
50
|
+
|
|
51
|
+
createdAt: z.date(),
|
|
52
|
+
updatedAt: z.date(),
|
|
53
|
+
deletedAt: z.date().nullable(),
|
|
54
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { OrderForClientSchema } from './order-for-client.schema';
|
|
3
|
+
import { ClientForClientSchema } from '../client/client-for-client.schema';
|
|
4
|
+
import { BranchSchema } from '../branch/branch.schema';
|
|
5
|
+
import { OrderDeliverySchema } from '../order-delivery/order-delivery.schema';
|
|
6
|
+
import { MoneySchema } from '../money.schema';
|
|
7
|
+
|
|
8
|
+
export const OrderExtendedForClientSchema = OrderForClientSchema.extend({
|
|
9
|
+
client: ClientForClientSchema,
|
|
10
|
+
branch: BranchSchema.nullable(),
|
|
11
|
+
delivery: OrderDeliverySchema.nullable(),
|
|
12
|
+
writeOffSum: MoneySchema,
|
|
13
|
+
consignmentDeliveryDates: z.union([z.date(), z.literal('in-stock')]).array(),
|
|
14
|
+
// Server-computed delivery cost for the current subtotal when the tier rule is on (null when off).
|
|
15
|
+
// Convenience preview for the cart page; the storefront still recomputes locally on the delivery/pickup toggle.
|
|
16
|
+
deliveryCostPreview: MoneySchema.nullable(),
|
|
17
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ClientSchema } from '../client/client-base.schema';
|
|
3
|
+
import { BranchSchema } from '../branch/branch.schema';
|
|
4
|
+
import { OrderDeliverySchema } from '../order-delivery/order-delivery.schema';
|
|
5
|
+
import { DeliveryRouteSchema } from '../delivery-route/delivery-route.schema';
|
|
6
|
+
import { OrderSchema } from './order-base.schema';
|
|
7
|
+
|
|
8
|
+
export const OrderExtendedSchema = OrderSchema.extend({
|
|
9
|
+
client: ClientSchema,
|
|
10
|
+
branch: BranchSchema.nullable(),
|
|
11
|
+
delivery: OrderDeliverySchema.nullable(),
|
|
12
|
+
consignmentDeliveryDates: z.union([z.date(), z.literal('in-stock')]).array(),
|
|
13
|
+
deliveryRoute: DeliveryRouteSchema.nullable().optional(),
|
|
14
|
+
canReceiveTelegramNotifications: z.boolean(),
|
|
15
|
+
clientHasOverdueDebt: z.boolean().nullable(),
|
|
16
|
+
responsibleUserName: z.string().nullable().optional(),
|
|
17
|
+
});
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { OrderStatusEnum, OrderTypeEnum } from '../../enum';
|
|
3
|
+
import { MoneySchema } from '../money.schema';
|
|
4
|
+
import { CalendarDaySchema } from '../calendar-day.schema';
|
|
5
|
+
|
|
6
|
+
// Витрина клиента не показывает внутреннюю кухню документов, поэтому ссылки на счёт и на УПД
|
|
7
|
+
// сюда не попадают. Номер в ERP компании — тоже её внутренний учёт.
|
|
8
|
+
export const OrderForClientSchema = z.object({
|
|
9
|
+
uuid: z.uuid(),
|
|
10
|
+
orderNumber: z.number(),
|
|
11
|
+
clientUUID: z.uuid(),
|
|
12
|
+
branchUUID: z.uuid().nullable(),
|
|
13
|
+
creatorUserUUID: z.uuid(),
|
|
14
|
+
totalCost: MoneySchema,
|
|
15
|
+
subtotal: MoneySchema,
|
|
16
|
+
deliveryCost: MoneySchema,
|
|
17
|
+
deliveryVatAmount: MoneySchema,
|
|
18
|
+
deliveryVat: z.number().nullable(),
|
|
19
|
+
vatAmount: MoneySchema,
|
|
20
|
+
discountAmount: MoneySchema,
|
|
21
|
+
discount: z.number().nullable(),
|
|
22
|
+
status: z.nativeEnum(OrderStatusEnum),
|
|
23
|
+
type: z.nativeEnum(OrderTypeEnum),
|
|
24
|
+
isPaid: z.boolean(),
|
|
25
|
+
clientComment: z.string().nullable(),
|
|
26
|
+
totalQuantity: z.number(),
|
|
27
|
+
totalProductNumber: z.number(),
|
|
28
|
+
completedAt: z.date().nullable(),
|
|
29
|
+
paymentDueAt: z.date().nullable(),
|
|
30
|
+
plannedShipmentDate: CalendarDaySchema.nullable(),
|
|
31
|
+
createdAt: z.date(),
|
|
32
|
+
updatedAt: z.date(),
|
|
33
|
+
deletedAt: z.date().nullable(),
|
|
34
|
+
});
|
|
@@ -1,90 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { OrderDeliverySchema } from '../order-delivery/order-delivery.schema';
|
|
6
|
-
import { DeliveryRouteSchema } from '../delivery-route/delivery-route.schema';
|
|
7
|
-
import { MoneySchema } from '../money.schema';
|
|
8
|
-
import { CalendarDaySchema } from '../calendar-day.schema';
|
|
9
|
-
|
|
10
|
-
export const OrderSchema = z.object({
|
|
11
|
-
uuid: z.uuid(),
|
|
12
|
-
orderNumber: z.number(),
|
|
13
|
-
clientUUID: z.uuid(),
|
|
14
|
-
branchUUID: z.uuid().nullable(),
|
|
15
|
-
creatorUserUUID: z.uuid(),
|
|
16
|
-
|
|
17
|
-
totalCost: MoneySchema,
|
|
18
|
-
subtotal: MoneySchema,
|
|
19
|
-
deliveryCost: MoneySchema,
|
|
20
|
-
deliveryCheckAmount: MoneySchema,
|
|
21
|
-
deliveryVatAmount: MoneySchema,
|
|
22
|
-
deliveryVat: z.number().nullable(),
|
|
23
|
-
vatAmount: MoneySchema,
|
|
24
|
-
discountAmount: MoneySchema,
|
|
25
|
-
discount: z.number().nullable(),
|
|
26
|
-
|
|
27
|
-
status: z.nativeEnum(OrderStatusEnum),
|
|
28
|
-
type: z.nativeEnum(OrderTypeEnum),
|
|
29
|
-
isPaid: z.boolean(),
|
|
30
|
-
|
|
31
|
-
comment: z.string().nullable(),
|
|
32
|
-
clientComment: z.string().nullable(),
|
|
33
|
-
tag: z.string().nullable(),
|
|
34
|
-
|
|
35
|
-
totalQuantity: z.number(),
|
|
36
|
-
totalProductNumber: z.number(),
|
|
37
|
-
invoiceSendAt: z.date().nullable(),
|
|
38
|
-
deliveryRouteUUID: z.uuid().nullable(),
|
|
39
|
-
// Счёт на оплату, в который включён заказ. Сам счёт (номер, файл, статус оплаты) читается
|
|
40
|
-
// отдельным запросом GET /payment-invoice/:uuid — здесь только ссылка, чтобы не утяжелять список заказов.
|
|
41
|
-
paymentInvoiceUUID: z.uuid().nullable(),
|
|
42
|
-
// Передаточный документ (УПД), в который включён заказ. Тем же приёмом, что и счёт: здесь только
|
|
43
|
-
// ссылка, документ читается через GET /transfer-document/:uuid. Непустое значение означает, что
|
|
44
|
-
// заказ заморожен — состав, статус, доставка, дата отгрузки и скидка ему уже недоступны.
|
|
45
|
-
transferDocumentUUID: z.uuid().nullable(),
|
|
46
|
-
// Номер заказа в ERP/CRM компании, которым сотрудники сверяют заказ со своей учётной системой.
|
|
47
|
-
externalNumber: z.string().nullable(),
|
|
48
|
-
|
|
49
|
-
completedAt: z.date().nullable(),
|
|
50
|
-
paymentDueAt: z.date().nullable(),
|
|
51
|
-
// План отгрузки/выдачи — одна дата для самовывоза и доставки, календарный день `YYYY-MM-DD`.
|
|
52
|
-
// Не путать с `completedAt` (факт отгрузки) и датой прихода партии.
|
|
53
|
-
plannedShipmentDate: CalendarDaySchema.nullable(),
|
|
54
|
-
|
|
55
|
-
createdAt: z.date(),
|
|
56
|
-
updatedAt: z.date(),
|
|
57
|
-
deletedAt: z.date().nullable(),
|
|
58
|
-
});
|
|
59
|
-
|
|
60
|
-
// Витрина клиента не показывает внутреннюю кухню документов, поэтому ссылки на счёт и на УПД
|
|
61
|
-
// сюда не попадают. Номер в ERP компании — тоже её внутренний учёт.
|
|
62
|
-
export const OrderForClientSchema = OrderSchema.omit({
|
|
63
|
-
comment: true,
|
|
64
|
-
tag: true,
|
|
65
|
-
paymentInvoiceUUID: true,
|
|
66
|
-
transferDocumentUUID: true,
|
|
67
|
-
externalNumber: true,
|
|
68
|
-
});
|
|
69
|
-
|
|
70
|
-
export const OrderExtendedSchema = OrderSchema.extend({
|
|
71
|
-
client: ClientSchema,
|
|
72
|
-
branch: BranchSchema.nullable(),
|
|
73
|
-
delivery: OrderDeliverySchema.nullable(),
|
|
74
|
-
consignmentDeliveryDates: z.union([z.date(), z.literal('in-stock')]).array(),
|
|
75
|
-
deliveryRoute: DeliveryRouteSchema.nullable().optional(),
|
|
76
|
-
canReceiveTelegramNotifications: z.boolean(),
|
|
77
|
-
clientHasOverdueDebt: z.boolean().nullable(),
|
|
78
|
-
responsibleUserName: z.string().nullable().optional(),
|
|
79
|
-
});
|
|
80
|
-
|
|
81
|
-
export const OrderExtendedForClientSchema = OrderForClientSchema.extend({
|
|
82
|
-
client: ClientSchema,
|
|
83
|
-
branch: BranchSchema.nullable(),
|
|
84
|
-
delivery: OrderDeliverySchema.nullable(),
|
|
85
|
-
writeOffSum: MoneySchema.nullable(),
|
|
86
|
-
consignmentDeliveryDates: z.union([z.date(), z.literal('in-stock')]).array(),
|
|
87
|
-
// Server-computed delivery cost for the current subtotal when the tier rule is on (null when off).
|
|
88
|
-
// Convenience preview for the cart page; the storefront still recomputes locally on the delivery/pickup toggle.
|
|
89
|
-
deliveryCostPreview: MoneySchema.nullable(),
|
|
90
|
-
});
|
|
1
|
+
export { OrderSchema } from './order-base.schema';
|
|
2
|
+
export { OrderExtendedSchema } from './order-extended.schema';
|
|
3
|
+
export { OrderForClientSchema } from './order-for-client.schema';
|
|
4
|
+
export { OrderExtendedForClientSchema } from './order-extended-for-client.schema';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
export const UpdateCartDeliveryRequestSchema = z.object({
|
|
4
|
+
/** @deprecated Используйте `plannedShipmentDate` — единую дату для самовывоза и доставки. */
|
|
5
|
+
deliveryDate: z.coerce.date().optional().nullable().default(null),
|
|
6
|
+
address: z.string().nullable().optional().default(null),
|
|
7
|
+
time: z.string().nullable().optional().default(null),
|
|
8
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { CalendarDaySchema } from '../calendar-day.schema';
|
|
3
|
+
import { UpdateCartDeliveryRequestSchema } from './update-cart-delivery-request.schema';
|
|
4
|
+
|
|
5
|
+
export const UpdateCartRequestSchema = z.object({
|
|
6
|
+
clientComment: z.string().nullable().optional().default(null),
|
|
7
|
+
branchUUID: z.uuid().optional().nullable().default(null),
|
|
8
|
+
// Дата выдачи/доставки заказа — одна для самовывоза и доставки. Относится к товару в наличии:
|
|
9
|
+
// заказы с товаром в пути после оформления получают дату прихода. Имеет приоритет над
|
|
10
|
+
// устаревшим `delivery.deliveryDate`.
|
|
11
|
+
plannedShipmentDate: CalendarDaySchema.nullable().optional(),
|
|
12
|
+
delivery: UpdateCartDeliveryRequestSchema.optional().nullable().default(null),
|
|
13
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { OrderProductExtendedForClientListSchema } from './order-product-extended-for-client-list.schema';
|
|
3
|
+
|
|
4
|
+
export const GetOrderProductForClientListResponseSchema = z.object({
|
|
5
|
+
message: z.string().optional(),
|
|
6
|
+
data: OrderProductExtendedForClientListSchema,
|
|
7
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './order-product.schema';
|
|
2
|
+
export * from './order-product-for-client.schema';
|
|
3
|
+
export * from './order-product-extended-for-client.schema';
|
|
4
|
+
export * from './order-product-list.schema';
|
|
5
|
+
export * from './order-product-multiplicity-optiom.schema';
|
|
6
|
+
export * from './price-correction-analyze-item.schema';
|
|
7
|
+
export * from './price-correction-execute-result-item.schema';
|
|
8
|
+
export * from './price-correction-execute-order-item.schema';
|
|
9
|
+
export * from './order-product-extended-for-client-list.schema';
|
|
10
|
+
export * from './get-order-product-for-client-list-request.schema';
|
|
11
|
+
export * from './get-order-product-for-client-list-response.schema';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ProductSchema } from '../product/product-base.schema';
|
|
3
|
+
import { MoneySchema } from '../money.schema';
|
|
4
|
+
|
|
5
|
+
export const OrderProductSchema = z.object({
|
|
6
|
+
uuid: z.uuid(),
|
|
7
|
+
productUUID: z.uuid(),
|
|
8
|
+
orderUUID: z.uuid(),
|
|
9
|
+
multiplicityOptionUUID: z.uuid().nullable().optional(),
|
|
10
|
+
|
|
11
|
+
quantity: z.number(),
|
|
12
|
+
price: MoneySchema,
|
|
13
|
+
amount: MoneySchema,
|
|
14
|
+
vatAmount: MoneySchema,
|
|
15
|
+
vat: z.number().nullable(),
|
|
16
|
+
checkAmount: MoneySchema,
|
|
17
|
+
|
|
18
|
+
comment: z.string().nullable(),
|
|
19
|
+
tag: z.string().nullable(),
|
|
20
|
+
isVerified: z.boolean(),
|
|
21
|
+
isEditable: z.boolean(),
|
|
22
|
+
|
|
23
|
+
product: ProductSchema,
|
|
24
|
+
|
|
25
|
+
createdByUserUUID: z.string(),
|
|
26
|
+
verifiedByUserUUID: z.string().nullable(),
|
|
27
|
+
|
|
28
|
+
createdAt: z.date(),
|
|
29
|
+
updatedAt: z.date(),
|
|
30
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { OrderProductExtendedForClientSchema } from './order-product-extended-for-client.schema';
|
|
3
|
+
|
|
4
|
+
export const OrderProductExtendedForClientListSchema = z.object({
|
|
5
|
+
orderProductList: OrderProductExtendedForClientSchema.array(),
|
|
6
|
+
total: z.number(),
|
|
7
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { OrderProductForClientSchema } from './order-product-for-client.schema';
|
|
3
|
+
import { ProductExtendedForClientSchema } from '../product/product-extended-for-client.schema';
|
|
4
|
+
|
|
5
|
+
export const OrderProductExtendedForClientSchema = OrderProductForClientSchema.extend({
|
|
6
|
+
product: ProductExtendedForClientSchema,
|
|
7
|
+
tag: z.string().nullable(),
|
|
8
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ProductExtendedForAdminSchema } from '../product/product-extended-for-admin.schema';
|
|
2
|
+
import { OrderSchema } from '../order/order-base.schema';
|
|
3
|
+
import { OrderProductMultiplicityOptionSchema } from './order-product-multiplicity-optiom.schema';
|
|
4
|
+
import { OrderProductSchema } from './order-product-base.schema';
|
|
5
|
+
|
|
6
|
+
export const OrderProductExtendedSchema = OrderProductSchema.extend({
|
|
7
|
+
product: ProductExtendedForAdminSchema,
|
|
8
|
+
order: OrderSchema,
|
|
9
|
+
multiplicityOption: OrderProductMultiplicityOptionSchema.nullable().optional(),
|
|
10
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { MoneySchema } from '../money.schema';
|
|
3
|
+
|
|
4
|
+
export const OrderProductForClientSchema = z.object({
|
|
5
|
+
uuid: z.uuid(),
|
|
6
|
+
productUUID: z.uuid(),
|
|
7
|
+
orderUUID: z.uuid(),
|
|
8
|
+
multiplicityOptionUUID: z.uuid().nullable().optional(),
|
|
9
|
+
quantity: z.number(),
|
|
10
|
+
price: MoneySchema,
|
|
11
|
+
amount: MoneySchema,
|
|
12
|
+
vatAmount: MoneySchema,
|
|
13
|
+
vat: z.number().nullable(),
|
|
14
|
+
comment: z.string().nullable(),
|
|
15
|
+
isEditable: z.boolean(),
|
|
16
|
+
createdAt: z.date(),
|
|
17
|
+
updatedAt: z.date(),
|
|
18
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { OrderSchema } from '../order/order-base.schema';
|
|
3
|
+
import { ClientSchema } from '../client/client-base.schema';
|
|
4
|
+
import { BranchSchema } from '../branch/branch.schema';
|
|
5
|
+
import { DistributionSchema } from '../distribution/distribution.schema';
|
|
6
|
+
import { OrderProductSchema } from './order-product-base.schema';
|
|
7
|
+
|
|
8
|
+
export const OrderProductForDistributeSchema = OrderProductSchema.extend({
|
|
9
|
+
order: OrderSchema,
|
|
10
|
+
client: ClientSchema,
|
|
11
|
+
branch: BranchSchema.nullable(),
|
|
12
|
+
distributionList: z.array(DistributionSchema),
|
|
13
|
+
});
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { OrderProductExtendedSchema
|
|
2
|
+
import { OrderProductExtendedSchema } from './order-product-extended.schema';
|
|
3
3
|
|
|
4
4
|
export const OrderProductListSchema = z.object({
|
|
5
5
|
orderProductList: OrderProductExtendedSchema.array(),
|
|
6
6
|
total: z.number(),
|
|
7
7
|
});
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
});
|
|
8
|
+
export {
|
|
9
|
+
/** @deprecated Используйте OrderProductExtendedForClientListSchema. */
|
|
10
|
+
OrderProductExtendedForClientListSchema as OrderProductForClientListSchema,
|
|
11
|
+
} from './order-product-extended-for-client-list.schema';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
export const OrderProductStepperPositionSchema = z.object({
|
|
4
|
+
uuid: z.string(),
|
|
5
|
+
orderUUID: z.string(),
|
|
6
|
+
productUUID: z.string(),
|
|
7
|
+
multiplicityOptionUUID: z.string().nullable().optional(),
|
|
8
|
+
multiplicityOptionTitle: z.string().nullable().optional(),
|
|
9
|
+
quantity: z.number(),
|
|
10
|
+
balance: z.number(),
|
|
11
|
+
});
|
|
@@ -1,83 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
orderUUID: z.uuid(),
|
|
14
|
-
multiplicityOptionUUID: z.uuid().nullable().optional(),
|
|
15
|
-
|
|
16
|
-
quantity: z.number(),
|
|
17
|
-
price: MoneySchema,
|
|
18
|
-
amount: MoneySchema,
|
|
19
|
-
vatAmount: MoneySchema,
|
|
20
|
-
vat: z.number().nullable(),
|
|
21
|
-
checkAmount: MoneySchema,
|
|
22
|
-
|
|
23
|
-
comment: z.string().nullable(),
|
|
24
|
-
tag: z.string().nullable(),
|
|
25
|
-
isVerified: z.boolean(),
|
|
26
|
-
isEditable: z.boolean(),
|
|
27
|
-
|
|
28
|
-
product: ProductSchema,
|
|
29
|
-
|
|
30
|
-
createdByUserUUID: z.string(),
|
|
31
|
-
verifiedByUserUUID: z.string().nullable(),
|
|
32
|
-
|
|
33
|
-
createdAt: z.date(),
|
|
34
|
-
updatedAt: z.date(),
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
export const OrderProductForClientSchema = OrderProductSchema.omit({
|
|
38
|
-
isVerified: true,
|
|
39
|
-
verifiedByUserUUID: true,
|
|
40
|
-
createdByUserUUID: true,
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
export const OrderProductExtendedSchema = OrderProductSchema.extend({
|
|
44
|
-
product: ProductExtendedForAdminSchema,
|
|
45
|
-
order: OrderSchema,
|
|
46
|
-
multiplicityOption: OrderProductMultiplicityOptionSchema.nullable().optional(),
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
export const OrderProductForClientExtendedSchema = OrderProductForClientSchema.extend({
|
|
50
|
-
product: ProductExtendedForClientSchema,
|
|
51
|
-
multiplicityOptionUUID: z.uuid().nullable().optional(),
|
|
52
|
-
});
|
|
53
|
-
|
|
54
|
-
export const OrderProductForDistributeSchema = OrderProductSchema.extend({
|
|
55
|
-
order: OrderSchema,
|
|
56
|
-
client: ClientSchema,
|
|
57
|
-
branch: BranchSchema.nullable(),
|
|
58
|
-
distributionList: z.array(DistributionSchema),
|
|
59
|
-
});
|
|
60
|
-
|
|
61
|
-
export const OrderProductStepperPositionSchema = z.object({
|
|
62
|
-
uuid: z.string(),
|
|
63
|
-
orderUUID: z.string(),
|
|
64
|
-
productUUID: z.string(),
|
|
65
|
-
multiplicityOptionUUID: z.string().nullable().optional(),
|
|
66
|
-
multiplicityOptionTitle: z.string().nullable().optional(),
|
|
67
|
-
quantity: z.number(),
|
|
68
|
-
balance: z.number(),
|
|
69
|
-
});
|
|
70
|
-
|
|
71
|
-
export const ActiveStepperPositionsForOrderResponseSchema = z.object({
|
|
72
|
-
list: OrderProductStepperPositionSchema.array(),
|
|
73
|
-
});
|
|
74
|
-
|
|
75
|
-
export const SetOrderProductQuantityWebshopRequestSchema = z.object({
|
|
76
|
-
quantity: z.number().int().min(0),
|
|
77
|
-
});
|
|
78
|
-
|
|
79
|
-
export const SetOrderProductQuantityWebshopResponseSchema = z.object({
|
|
80
|
-
uuid: z.string().optional(),
|
|
81
|
-
quantity: z.number().optional(),
|
|
82
|
-
deleted: z.boolean().optional(),
|
|
83
|
-
});
|
|
1
|
+
export { OrderProductSchema } from './order-product-base.schema';
|
|
2
|
+
export { OrderProductExtendedSchema } from './order-product-extended.schema';
|
|
3
|
+
export { OrderProductForDistributeSchema } from './order-product-for-distribute.schema';
|
|
4
|
+
export { OrderProductStepperPositionSchema } from './order-product-stepper-position.schema';
|
|
5
|
+
export { ActiveStepperPositionsForOrderResponseSchema } from './active-stepper-positions-for-order-response.schema';
|
|
6
|
+
export { SetOrderProductQuantityWebshopRequestSchema } from './set-order-product-quantity-webshop-request.schema';
|
|
7
|
+
export { SetOrderProductQuantityWebshopResponseSchema } from './set-order-product-quantity-webshop-response.schema';
|
|
8
|
+
export { OrderProductForClientSchema } from './order-product-for-client.schema';
|
|
9
|
+
export {
|
|
10
|
+
/** @deprecated Используйте OrderProductExtendedForClientSchema. */
|
|
11
|
+
OrderProductExtendedForClientSchema as OrderProductForClientExtendedSchema,
|
|
12
|
+
} from './order-product-extended-for-client.schema';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { PreOrderStatusEnum } from '../../enum';
|
|
3
|
+
|
|
4
|
+
export const GetPreOrderListWebshopRequestSchema = z.object({
|
|
5
|
+
page: z.coerce.number().optional().default(1),
|
|
6
|
+
count: z.coerce.number().optional().default(10),
|
|
7
|
+
statuses: z.array(z.nativeEnum(PreOrderStatusEnum)).optional(),
|
|
8
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './pre-order.schema';
|
|
2
|
+
export * from './pre-order-summary.schema';
|
|
3
|
+
export * from './pre-order-extended-for-client.schema';
|
|
4
|
+
export * from './pre-order-extended-for-client-list.schema';
|
|
5
|
+
export * from './get-pre-order-webshop-response.schema';
|
|
6
|
+
export * from './get-pre-order-list-webshop-request.schema';
|
|
7
|
+
export * from './get-pre-order-list-webshop-response.schema';
|
|
8
|
+
export * from './pre-order-copy.schema';
|
|
9
|
+
export * from './pre-order-for-client.schema';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { PreOrderWithClientSchema } from './pre-order.schema';
|
|
3
|
-
import { PreOrderProductExtendedSchema } from '../pre-order-product/pre-order-product.schema';
|
|
4
|
-
import { PreOrderCollectionItemSchema } from '../pre-order-collection-item/pre-order-collection-item.schema';
|
|
3
|
+
import { PreOrderProductExtendedSchema } from '../pre-order-product/pre-order-product-extended.schema';
|
|
4
|
+
import { PreOrderCollectionItemSchema } from '../pre-order-collection-item/pre-order-collection-item-base.schema';
|
|
5
5
|
import { ErrorMessageSchema } from '../error-message.schema';
|
|
6
6
|
|
|
7
7
|
export const CopyAnalysisMatchSchema = z.object({
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { PreOrderForClientSchema } from './pre-order-for-client.schema';
|
|
3
|
+
import { BranchSchema } from '../branch/branch.schema';
|
|
4
|
+
import { PreOrderCollectionSchema } from '../pre-order-collection/pre-order-collection.schema';
|
|
5
|
+
import { MoneySchema } from '../money.schema';
|
|
6
|
+
|
|
7
|
+
export const PreOrderExtendedForClientSchema = PreOrderForClientSchema.extend({
|
|
8
|
+
branch: BranchSchema.nullable(),
|
|
9
|
+
preOrderCollection: PreOrderCollectionSchema.nullable(),
|
|
10
|
+
totalPositions: z.number(),
|
|
11
|
+
totalQuantity: z.number(),
|
|
12
|
+
totalPrice: MoneySchema,
|
|
13
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { PreOrderStatusEnum } from '../../enum';
|
|
3
|
+
|
|
4
|
+
export const PreOrderForClientSchema = z.object({
|
|
5
|
+
uuid: z.string(),
|
|
6
|
+
clientUUID: z.string(),
|
|
7
|
+
branchUUID: z.string().nullable(),
|
|
8
|
+
status: z.nativeEnum(PreOrderStatusEnum),
|
|
9
|
+
preOrderNum: z.number(),
|
|
10
|
+
comment: z.string().nullable(),
|
|
11
|
+
tag: z.string().nullable(),
|
|
12
|
+
createdAt: z.coerce.date(),
|
|
13
|
+
});
|