@floristcloud/api-lib 1.0.19 → 1.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/commands/action-log/get-action-log-list-for-client.query.js +1 -1
- package/build/commands/action-log/get-action-log-list.query.js +1 -1
- package/build/commands/auth/login-user.command.js +3 -3
- package/build/commands/auth/register-user.command.js +1 -1
- package/build/commands/auth/reset-password-by-security-code.command.js +1 -1
- package/build/commands/auth/reset-password-by-token.command.js +1 -1
- package/build/commands/auth/restore-password-by-security-code.command.js +1 -1
- package/build/commands/bank-payment/get-bank-payment-list.query.js +1 -1
- package/build/commands/bank-payment/update-bank-payment-status.query.js +1 -1
- package/build/commands/branch/delete-branch.command.js +1 -1
- package/build/commands/category/delete-category.command.js +1 -1
- package/build/commands/category/get-category-by-uuid.query.js +1 -1
- package/build/commands/category/get-category-list.query.js +3 -3
- package/build/commands/category/update-category-command.js +2 -2
- package/build/commands/category-alias/delete-category-alias.command.js +1 -1
- package/build/commands/category-alias/get-category-alias-by-uuid.query.js +1 -1
- package/build/commands/category-alias/update-category-alias.command.js +1 -1
- package/build/commands/client/create-client.command.js +3 -3
- package/build/commands/client/delete-client.command.js +1 -1
- package/build/commands/client/get-client-list.query.js +2 -2
- package/build/commands/client/marking/get-client-marking-by-client-list.command.js +2 -2
- package/build/commands/client/profile/get-client-individual-profile.query.js +1 -1
- package/build/commands/client/update-client.command.js +4 -4
- package/build/commands/client/webshop/register-client-webshop.command.js +2 -2
- package/build/commands/client/webshop/update-client-for-client.command.js +1 -1
- package/build/commands/company/deleteCompany.command.js +1 -1
- package/build/commands/company/getCompany.query.js +1 -1
- package/build/commands/consignment/create-consignment.command.js +1 -1
- package/build/commands/consignment/delete-consignment.command.js +1 -1
- package/build/commands/consignment/update-consignment.command.js +1 -1
- package/build/commands/consignment/upsert-access-clients-consignment.command.js +1 -1
- package/build/commands/delivery-route/attach-order-list-to-delivery-route.command.js +1 -1
- package/build/commands/delivery-route/detach-order-list-to-delivery-route.command.js +1 -1
- package/build/commands/delivery-route/get-delivery-route-list.query.js +1 -1
- package/build/commands/discount-rules/get-discount-rules-all.query.js +2 -2
- package/build/commands/message/get-context-unread-count.query.js +3 -3
- package/build/commands/message/get-contexts-with-unread.query.js +2 -2
- package/build/commands/message/list-context-messages.query.js +5 -5
- package/build/commands/message/mark-context-read.command.js +3 -3
- package/build/commands/message/send-context-message.command.js +3 -3
- package/build/commands/order/create-order.command.js +3 -3
- package/build/commands/order/get-order-list.query.js +2 -2
- package/build/commands/order/group/update-group-order-status.command.js +1 -1
- package/build/commands/order/group/update-group-order-type.command.js +1 -1
- package/build/commands/order/update-order.command.js +4 -4
- package/build/commands/order/webshop/update-cart.command.js +1 -1
- package/build/commands/order-delivery/update-order-delivery.command.js +1 -1
- package/build/commands/order-product/create-order-product.command.js +1 -1
- package/build/commands/order-product/group/update-group-order-product-order.command.js +1 -1
- package/build/commands/order-product/update-order-product.command.js +2 -2
- package/build/commands/order-product/webshop/create-order-product-for-client.command.js +1 -1
- package/build/commands/order-product/webshop/update-order-product-for-client.command.js +1 -1
- package/build/commands/package/get-package-filters-values.query.js +2 -2
- package/build/commands/package/reorder-packages.command.js +1 -1
- package/build/commands/pre-order/create-order-from-pre-order.command.js +1 -1
- package/build/commands/pre-order/get-pre-order-list.query.js +1 -1
- package/build/commands/pre-order/group/analyze-copy-pre-orders.command.js +2 -2
- package/build/commands/pre-order/group/analyze-create-orders-from-pre-orders.command.js +2 -2
- package/build/commands/pre-order/group/analyze-create-pre-orders-from-standing-orders.command.js +2 -2
- package/build/commands/pre-order/group/group-copy-pre-orders-to-collection.command.js +2 -2
- package/build/commands/pre-order/group/group-create-orders-from-pre-orders.command.js +4 -4
- package/build/commands/pre-order/group/group-create-pre-orders-from-standing-orders.command.js +4 -4
- package/build/commands/pre-order/webshop/get-pre-order-list-webshop.command.js +1 -1
- package/build/commands/pre-order-collection/get-pre-order-collection-list.query.js +1 -1
- package/build/commands/pre-order-collection/match-images-for-collection.command.js +1 -1
- package/build/commands/pre-order-collection-item/export-pre-order-collection-item-with-clients-vertical.query.js +1 -1
- package/build/commands/pre-order-collection-item/get-pre-order-collection-item-extended-with-clients-pre-order-product-list.query.js +1 -1
- package/build/commands/pre-order-collection-item/multiplicity-option/reorder-pre-order-collection-item-multiplicity-options.command.js +1 -1
- package/build/commands/product/get-product-quantity-calculate.query.js +1 -1
- package/build/commands/product/group/update-group-product-update-batch.command.js +1 -1
- package/build/commands/product/multiplicity-option/reorder-product-multiplicity-options.command.js +1 -1
- package/build/commands/product-configuration/get-product-configuration-list.query.js +1 -1
- package/build/commands/product-image/get-product-image-list.query.js +1 -1
- package/build/commands/report/export-client-statement.query.js +1 -1
- package/build/commands/report/export-inventory-movement.query.js +3 -3
- package/build/commands/report/export-inventory-stock.query.js +1 -1
- package/build/commands/report/export-inventory-turnover.query.js +1 -1
- package/build/commands/report/export-sales-revenue.query.js +1 -1
- package/build/commands/transaction/apply-prepayment-transaction.command.js +1 -1
- package/build/commands/transaction/export-transactions.command.js +1 -1
- package/build/commands/transaction/get-transaction-list.query.js +1 -1
- package/build/commands/transaction/get-transaction-summary.query.js +1 -1
- package/build/commands/transaction/webshop/get-transaction-list-for-client.query.js +1 -1
- package/build/commands/type/delete-type.command.js +1 -1
- package/build/commands/type/get-type-by-uuid.query.js +1 -1
- package/build/commands/type/get-type-list.query.js +1 -1
- package/build/commands/user/createUserByClientId.command.js +3 -3
- package/build/commands/user/createUserForCompany.command.js +1 -1
- package/build/commands/user/get-user-list.query.js +2 -2
- package/build/commands/user/update-user.command.js +1 -1
- package/build/commands/wrire-off-archive/create-wrire-off-archive.command.js +1 -1
- package/build/commands/wrire-off-archive/info-wrire-off-archive.command.js +1 -1
- package/build/commands/write-off/get-write-off-list.query.js +1 -1
- package/build/constant/error.js +12 -0
- package/build/enum/index.js +2 -0
- package/build/schemas/action-log/action-log.schema.js +1 -1
- package/build/schemas/action-log/order-update-action-log.schema.js +2 -2
- package/build/schemas/action-log/transaction-info.schema.js +1 -1
- package/build/schemas/bank-payment/bank-payment.schema.js +6 -6
- package/build/schemas/branch/branch.schema.js +2 -2
- package/build/schemas/category/category.schema.js +2 -2
- package/build/schemas/category-alias/category-alias.schema.js +4 -4
- package/build/schemas/category-template/category-template.schema.js +2 -2
- package/build/schemas/client/client-debt.schema.js +1 -1
- package/build/schemas/client/client-individual-profile.schema.js +1 -1
- package/build/schemas/client/client-legal-profile.schema.js +2 -2
- package/build/schemas/client/client-marking.schema.js +1 -1
- package/build/schemas/client/client.schema.js +5 -5
- package/build/schemas/company/company.schema.js +2 -2
- package/build/schemas/consignment/consignment-distribution-validation.schema.js +2 -2
- package/build/schemas/consignment/consignment.schema.js +3 -3
- package/build/schemas/consignment-import-schema/consignment-import-schema.scheme.js +2 -2
- package/build/schemas/consignment-import-schema-relation/consignment-import-schema-relation.schema.js +3 -3
- package/build/schemas/delivery-route/delivery-route.schema.js +6 -6
- package/build/schemas/domain/domain.schema.js +1 -1
- package/build/schemas/message/client-inbox-item.schema.js +1 -1
- package/build/schemas/message/context-inbox.schema.js +4 -4
- package/build/schemas/message/context-message.schema.js +6 -6
- package/build/schemas/money-account/money-account.schema.js +3 -3
- package/build/schemas/order/order.schema.js +7 -7
- package/build/schemas/order-delivery/order-delivery.schema.js +2 -2
- package/build/schemas/order-product/order-product-multiplicity-optiom.schema.js +1 -1
- package/build/schemas/order-product/order-product.schema.js +5 -5
- package/build/schemas/package/package.schema.js +3 -3
- package/build/schemas/pre-order/pre-order.schema.js +2 -2
- package/build/schemas/pre-order-collection/pre-order-collection.schema.js +3 -3
- package/build/schemas/pre-order-collection-item/pre-order-collection-item.schema.js +3 -3
- package/build/schemas/pre-order-product/pre-order-product.schema.js +3 -3
- package/build/schemas/product/product-multiplicity-option.schema.js +1 -1
- package/build/schemas/product/product.schema.js +5 -5
- package/build/schemas/product-configuration/product-configuration.schema.js +3 -3
- package/build/schemas/product-in-package/product-in-package.schema.js +1 -1
- package/build/schemas/report/client-statement.schema.js +2 -2
- package/build/schemas/settings/settings.schema.js +18 -18
- package/build/schemas/transaction/transaction.schema.js +3 -3
- package/build/schemas/type/type.schema.js +2 -2
- package/build/schemas/type/typeList.schema.js +1 -1
- package/build/schemas/user/user.schema.js +5 -5
- package/build/schemas/write-off/write-off-image.schema.js +2 -2
- package/build/schemas/write-off/write-off.schema.js +2 -2
- package/commands/action-log/get-action-log-list-for-client.query.ts +1 -1
- package/commands/action-log/get-action-log-list.query.ts +1 -1
- package/commands/auth/login-user.command.ts +3 -3
- package/commands/auth/register-user.command.ts +1 -1
- package/commands/auth/reset-password-by-security-code.command.ts +1 -1
- package/commands/auth/reset-password-by-token.command.ts +1 -1
- package/commands/auth/restore-password-by-security-code.command.ts +1 -1
- package/commands/bank-payment/get-bank-payment-list.query.ts +1 -1
- package/commands/bank-payment/update-bank-payment-status.query.ts +1 -1
- package/commands/branch/delete-branch.command.ts +1 -1
- package/commands/category/delete-category.command.ts +1 -1
- package/commands/category/get-category-by-uuid.query.ts +1 -1
- package/commands/category/get-category-list.query.ts +3 -3
- package/commands/category/update-category-command.ts +2 -2
- package/commands/category-alias/delete-category-alias.command.ts +1 -1
- package/commands/category-alias/get-category-alias-by-uuid.query.ts +1 -1
- package/commands/category-alias/update-category-alias.command.ts +1 -1
- package/commands/client/create-client.command.ts +3 -3
- package/commands/client/delete-client.command.ts +1 -1
- package/commands/client/get-client-list.query.ts +2 -2
- package/commands/client/marking/get-client-marking-by-client-list.command.ts +2 -2
- package/commands/client/profile/get-client-individual-profile.query.ts +1 -1
- package/commands/client/update-client.command.ts +4 -4
- package/commands/client/webshop/register-client-webshop.command.ts +2 -2
- package/commands/client/webshop/update-client-for-client.command.ts +1 -1
- package/commands/company/deleteCompany.command.ts +1 -1
- package/commands/company/getCompany.query.ts +1 -1
- package/commands/consignment/create-consignment.command.ts +1 -1
- package/commands/consignment/delete-consignment.command.ts +1 -1
- package/commands/consignment/update-consignment.command.ts +1 -1
- package/commands/consignment/upsert-access-clients-consignment.command.ts +1 -1
- package/commands/delivery-route/attach-order-list-to-delivery-route.command.ts +1 -1
- package/commands/delivery-route/detach-order-list-to-delivery-route.command.ts +1 -1
- package/commands/delivery-route/get-delivery-route-list.query.ts +1 -1
- package/commands/discount-rules/get-discount-rules-all.query.ts +2 -2
- package/commands/message/get-context-unread-count.query.ts +3 -3
- package/commands/message/get-contexts-with-unread.query.ts +2 -2
- package/commands/message/list-context-messages.query.ts +5 -5
- package/commands/message/mark-context-read.command.ts +3 -3
- package/commands/message/send-context-message.command.ts +3 -3
- package/commands/order/create-order.command.ts +3 -3
- package/commands/order/get-order-list.query.ts +2 -2
- package/commands/order/group/update-group-order-status.command.ts +1 -1
- package/commands/order/group/update-group-order-type.command.ts +1 -1
- package/commands/order/update-order.command.ts +4 -4
- package/commands/order/webshop/update-cart.command.ts +1 -1
- package/commands/order-delivery/update-order-delivery.command.ts +1 -1
- package/commands/order-product/create-order-product.command.ts +1 -1
- package/commands/order-product/group/update-group-order-product-order.command.ts +1 -1
- package/commands/order-product/update-order-product.command.ts +2 -2
- package/commands/order-product/webshop/create-order-product-for-client.command.ts +1 -1
- package/commands/order-product/webshop/update-order-product-for-client.command.ts +1 -1
- package/commands/package/get-package-filters-values.query.ts +2 -2
- package/commands/package/reorder-packages.command.ts +1 -1
- package/commands/pre-order/create-order-from-pre-order.command.ts +1 -1
- package/commands/pre-order/get-pre-order-list.query.ts +1 -1
- package/commands/pre-order/group/analyze-copy-pre-orders.command.ts +2 -2
- package/commands/pre-order/group/analyze-create-orders-from-pre-orders.command.ts +2 -2
- package/commands/pre-order/group/analyze-create-pre-orders-from-standing-orders.command.ts +2 -2
- package/commands/pre-order/group/group-copy-pre-orders-to-collection.command.ts +2 -2
- package/commands/pre-order/group/group-create-orders-from-pre-orders.command.ts +4 -4
- package/commands/pre-order/group/group-create-pre-orders-from-standing-orders.command.ts +4 -4
- package/commands/pre-order/webshop/get-pre-order-list-webshop.command.ts +1 -1
- package/commands/pre-order-collection/get-pre-order-collection-list.query.ts +1 -1
- package/commands/pre-order-collection/match-images-for-collection.command.ts +1 -1
- package/commands/pre-order-collection-item/export-pre-order-collection-item-with-clients-vertical.query.ts +1 -1
- package/commands/pre-order-collection-item/get-pre-order-collection-item-extended-with-clients-pre-order-product-list.query.ts +1 -1
- package/commands/pre-order-collection-item/multiplicity-option/reorder-pre-order-collection-item-multiplicity-options.command.ts +1 -1
- package/commands/product/get-product-quantity-calculate.query.ts +1 -1
- package/commands/product/group/update-group-product-update-batch.command.ts +1 -1
- package/commands/product/multiplicity-option/reorder-product-multiplicity-options.command.ts +1 -1
- package/commands/product-configuration/get-product-configuration-list.query.ts +1 -1
- package/commands/product-image/get-product-image-list.query.ts +1 -1
- package/commands/report/export-client-statement.query.ts +1 -1
- package/commands/report/export-inventory-movement.query.ts +3 -3
- package/commands/report/export-inventory-stock.query.ts +1 -1
- package/commands/report/export-inventory-turnover.query.ts +1 -1
- package/commands/report/export-sales-revenue.query.ts +1 -1
- package/commands/transaction/apply-prepayment-transaction.command.ts +1 -1
- package/commands/transaction/export-transactions.command.ts +1 -1
- package/commands/transaction/get-transaction-list.query.ts +1 -1
- package/commands/transaction/get-transaction-summary.query.ts +1 -1
- package/commands/transaction/webshop/get-transaction-list-for-client.query.ts +1 -1
- package/commands/type/delete-type.command.ts +1 -1
- package/commands/type/get-type-by-uuid.query.ts +1 -1
- package/commands/type/get-type-list.query.ts +1 -1
- package/commands/user/createUserByClientId.command.ts +3 -3
- package/commands/user/createUserForCompany.command.ts +1 -1
- package/commands/user/get-user-list.query.ts +2 -2
- package/commands/user/update-user.command.ts +1 -1
- package/commands/wrire-off-archive/create-wrire-off-archive.command.ts +1 -1
- package/commands/wrire-off-archive/info-wrire-off-archive.command.ts +1 -1
- package/commands/write-off/get-write-off-list.query.ts +1 -1
- package/constant/error.ts +12 -0
- package/enum/index.ts +2 -0
- package/package.json +1 -1
- package/schemas/action-log/action-log.schema.ts +1 -1
- package/schemas/action-log/order-update-action-log.schema.ts +2 -2
- package/schemas/action-log/transaction-info.schema.ts +1 -1
- package/schemas/bank-payment/bank-payment.schema.ts +6 -6
- package/schemas/branch/branch.schema.ts +2 -2
- package/schemas/category/category.schema.ts +2 -2
- package/schemas/category-alias/category-alias.schema.ts +4 -4
- package/schemas/category-template/category-template.schema.ts +2 -2
- package/schemas/client/client-debt.schema.ts +1 -1
- package/schemas/client/client-individual-profile.schema.ts +1 -1
- package/schemas/client/client-legal-profile.schema.ts +2 -2
- package/schemas/client/client-marking.schema.ts +1 -1
- package/schemas/client/client.schema.ts +5 -5
- package/schemas/company/company.schema.ts +2 -2
- package/schemas/consignment/consignment-distribution-validation.schema.ts +2 -2
- package/schemas/consignment/consignment.schema.ts +3 -3
- package/schemas/consignment-import-schema/consignment-import-schema.scheme.ts +2 -2
- package/schemas/consignment-import-schema-relation/consignment-import-schema-relation.schema.ts +3 -3
- package/schemas/delivery-route/delivery-route.schema.ts +6 -6
- package/schemas/domain/domain.schema.ts +1 -1
- package/schemas/message/client-inbox-item.schema.ts +1 -1
- package/schemas/message/context-inbox.schema.ts +4 -4
- package/schemas/message/context-message.schema.ts +6 -6
- package/schemas/money-account/money-account.schema.ts +3 -3
- package/schemas/order/order.schema.ts +7 -7
- package/schemas/order-delivery/order-delivery.schema.ts +2 -2
- package/schemas/order-product/order-product-multiplicity-optiom.schema.ts +1 -1
- package/schemas/order-product/order-product.schema.ts +5 -5
- package/schemas/package/package.schema.ts +3 -3
- package/schemas/pre-order/pre-order.schema.ts +2 -2
- package/schemas/pre-order-collection/pre-order-collection.schema.ts +3 -3
- package/schemas/pre-order-collection-item/pre-order-collection-item.schema.ts +3 -3
- package/schemas/pre-order-product/pre-order-product.schema.ts +3 -3
- package/schemas/product/product-multiplicity-option.schema.ts +1 -1
- package/schemas/product/product.schema.ts +5 -5
- package/schemas/product-configuration/product-configuration.schema.ts +3 -3
- package/schemas/product-in-package/product-in-package.schema.ts +1 -1
- package/schemas/report/client-statement.schema.ts +2 -2
- package/schemas/settings/settings.schema.ts +18 -18
- package/schemas/transaction/transaction.schema.ts +3 -3
- package/schemas/type/type.schema.ts +2 -2
- package/schemas/type/typeList.schema.ts +1 -1
- package/schemas/user/user.schema.ts +5 -5
- package/schemas/write-off/write-off-image.schema.ts +2 -2
- package/schemas/write-off/write-off.schema.ts +2 -2
|
@@ -3,8 +3,8 @@ import { ContextMessageContextTypeEnum } from '../../enum/context-message-contex
|
|
|
3
3
|
import { ContextInboxListSchema } from '../../schemas/message/context-inbox.schema';
|
|
4
4
|
|
|
5
5
|
const GetContextsWithUnreadRequestSchema = z.object({
|
|
6
|
-
contextType: z.
|
|
7
|
-
clientUUID: z.
|
|
6
|
+
contextType: z.enum(ContextMessageContextTypeEnum).optional(),
|
|
7
|
+
clientUUID: z.uuid().optional(),
|
|
8
8
|
onlyMy: z.coerce.boolean().optional().default(false),
|
|
9
9
|
page: z.coerce.number().optional().default(1),
|
|
10
10
|
count: z.coerce.number().optional().default(20),
|
|
@@ -3,12 +3,12 @@ import { ContextMessageListSchema } from '../../schemas/message/context-message-
|
|
|
3
3
|
import { ContextMessageContextTypeEnum } from '../../enum/context-message-context-type.enum';
|
|
4
4
|
|
|
5
5
|
const ListContextMessagesRequestSchema = z.object({
|
|
6
|
-
contextType: z.
|
|
7
|
-
contextUUID: z.
|
|
8
|
-
subjectUUID: z.
|
|
6
|
+
contextType: z.enum(ContextMessageContextTypeEnum),
|
|
7
|
+
contextUUID: z.uuid(),
|
|
8
|
+
subjectUUID: z.uuid().optional(),
|
|
9
9
|
limit: z.coerce.number().optional().default(50),
|
|
10
|
-
before: z.string().
|
|
11
|
-
after: z.string().
|
|
10
|
+
before: z.string().optional(),
|
|
11
|
+
after: z.string().optional(),
|
|
12
12
|
});
|
|
13
13
|
|
|
14
14
|
const ListContextMessagesResponseSchema = z.object({
|
|
@@ -2,9 +2,9 @@ import { z } from 'zod';
|
|
|
2
2
|
import { ContextMessageContextTypeEnum } from '../../enum/context-message-context-type.enum';
|
|
3
3
|
|
|
4
4
|
const MarkContextReadRequestSchema = z.object({
|
|
5
|
-
contextType: z.
|
|
6
|
-
contextUUID: z.
|
|
7
|
-
subjectUUID: z.
|
|
5
|
+
contextType: z.enum(ContextMessageContextTypeEnum),
|
|
6
|
+
contextUUID: z.uuid(),
|
|
7
|
+
subjectUUID: z.uuid().optional(),
|
|
8
8
|
});
|
|
9
9
|
|
|
10
10
|
const MarkContextReadResponseSchema = z.object({
|
|
@@ -3,9 +3,9 @@ import { ContextMessageSchema } from '../../schemas/message/context-message.sche
|
|
|
3
3
|
import { ContextMessageContextTypeEnum } from '../../enum/context-message-context-type.enum';
|
|
4
4
|
|
|
5
5
|
const SendContextMessageRequestSchema = z.object({
|
|
6
|
-
contextType: z.
|
|
7
|
-
contextUUID: z.
|
|
8
|
-
subjectUUID: z.
|
|
6
|
+
contextType: z.enum(ContextMessageContextTypeEnum),
|
|
7
|
+
contextUUID: z.uuid(),
|
|
8
|
+
subjectUUID: z.uuid().optional(),
|
|
9
9
|
text: z.string().min(1).max(2000),
|
|
10
10
|
payload: z.any().optional(),
|
|
11
11
|
});
|
|
@@ -3,11 +3,11 @@ import { OrderTypeEnum } from '../../enum';
|
|
|
3
3
|
import { OrderDeliverySchema, OrderSchema } from '../../schemas';
|
|
4
4
|
|
|
5
5
|
const CreateOrderRequestSchema = z.object({
|
|
6
|
-
clientUUID: z.
|
|
7
|
-
branchUUID: z.
|
|
6
|
+
clientUUID: z.uuid(),
|
|
7
|
+
branchUUID: z.uuid().nullable(),
|
|
8
8
|
deliveryCost: z.number(),
|
|
9
9
|
deliveryVat: z.number().nullable(),
|
|
10
|
-
type: z.
|
|
10
|
+
type: z.enum(OrderTypeEnum),
|
|
11
11
|
comment: z.string().nullable(),
|
|
12
12
|
clientComment: z.string().nullable(),
|
|
13
13
|
tag: z.string().nullable(),
|
|
@@ -17,8 +17,8 @@ const GetOrderListRequestSchema = z
|
|
|
17
17
|
searchQuery: z.string().optional(),
|
|
18
18
|
consignmentDeliveryDate: z.coerce.date().optional(),
|
|
19
19
|
byProductSearchQuery: z.string().optional(),
|
|
20
|
-
statuses: z.
|
|
21
|
-
type: z.
|
|
20
|
+
statuses: z.enum(OrderStatusEnum).array().optional(),
|
|
21
|
+
type: z.enum(OrderTypeEnum).optional(),
|
|
22
22
|
city: z.string().optional(),
|
|
23
23
|
responsibleUserUUID: z.string().optional(),
|
|
24
24
|
group: z.string().optional(),
|
|
@@ -3,7 +3,7 @@ import { OrderStatusEnum } from '../../../enum';
|
|
|
3
3
|
|
|
4
4
|
const UpdateGroupOrderStatusRequestSchema = z.object({
|
|
5
5
|
orderUUIDList: z.array(z.string()),
|
|
6
|
-
status: z.
|
|
6
|
+
status: z.enum(OrderStatusEnum),
|
|
7
7
|
});
|
|
8
8
|
|
|
9
9
|
const UpdateGroupOrderStatusResponseSchema = z.object({
|
|
@@ -3,7 +3,7 @@ import { OrderTypeEnum } from '../../../enum';
|
|
|
3
3
|
|
|
4
4
|
const UpdateGroupOrderTypeRequestSchema = z.object({
|
|
5
5
|
orderUUIDList: z.array(z.string()),
|
|
6
|
-
type: z.
|
|
6
|
+
type: z.enum(OrderTypeEnum),
|
|
7
7
|
});
|
|
8
8
|
|
|
9
9
|
const UpdateGroupOrderTypeResponseSchema = z.object({
|
|
@@ -3,14 +3,14 @@ import { OrderStatusEnum, OrderTypeEnum } from '../../enum';
|
|
|
3
3
|
import { OrderSchema } from '../../schemas';
|
|
4
4
|
|
|
5
5
|
const UpdateOrderRequestSchema = z.object({
|
|
6
|
-
clientUUID: z.
|
|
7
|
-
branchUUID: z.
|
|
6
|
+
clientUUID: z.uuid(),
|
|
7
|
+
branchUUID: z.uuid().nullable(),
|
|
8
8
|
deliveryCost: z.coerce.number(),
|
|
9
|
-
type: z.
|
|
9
|
+
type: z.enum(OrderTypeEnum),
|
|
10
10
|
comment: z.string().nullable(),
|
|
11
11
|
clientComment: z.string().nullable(),
|
|
12
12
|
tag: z.string().nullable(),
|
|
13
|
-
status: z.
|
|
13
|
+
status: z.enum(OrderStatusEnum),
|
|
14
14
|
isPaid: z.coerce.boolean(),
|
|
15
15
|
deliveryVat: z.coerce.number().nullable(),
|
|
16
16
|
deliveryVatAmount: z.coerce.number(),
|
|
@@ -3,7 +3,7 @@ import { OrderForClientSchema } from '../../../schemas';
|
|
|
3
3
|
|
|
4
4
|
const UpdateCartRequestSchema = z.object({
|
|
5
5
|
clientComment: z.string().nullable().optional().default(null),
|
|
6
|
-
branchUUID: z.
|
|
6
|
+
branchUUID: z.uuid().optional().nullable().default(null),
|
|
7
7
|
delivery: z
|
|
8
8
|
.object({
|
|
9
9
|
deliveryDate: z.coerce.date().optional().nullable().default(null),
|
|
@@ -9,7 +9,7 @@ const UpdateOrderDeliveryRequestSchema = z
|
|
|
9
9
|
address: z.string().nullable(),
|
|
10
10
|
time: z.string().nullable(),
|
|
11
11
|
comment: z.string().nullable(),
|
|
12
|
-
orderDeliveryStatus: z.
|
|
12
|
+
orderDeliveryStatus: z.enum(OrderDeliveryStatusEnum),
|
|
13
13
|
})
|
|
14
14
|
.partial();
|
|
15
15
|
|
|
@@ -7,7 +7,7 @@ const CreateOrderProductRequestSchema = z.object({
|
|
|
7
7
|
comment: z.string().nullable(),
|
|
8
8
|
tag: z.string().nullable(),
|
|
9
9
|
isEditable: z.coerce.boolean(),
|
|
10
|
-
multiplicityOptionUUID: z.
|
|
10
|
+
multiplicityOptionUUID: z.uuid().nullable().optional(),
|
|
11
11
|
});
|
|
12
12
|
|
|
13
13
|
const CreateOrderProductResponseSchema = z.object({
|
|
@@ -7,7 +7,7 @@ const UpdateGroupOrderProductOrderRequestSchema = z.object({
|
|
|
7
7
|
quantity: z.coerce.number(),
|
|
8
8
|
}),
|
|
9
9
|
),
|
|
10
|
-
newOrderUUID: z.
|
|
10
|
+
newOrderUUID: z.uuid(),
|
|
11
11
|
isDelete: z.coerce.boolean().optional().default(true),
|
|
12
12
|
isComment: z.coerce.boolean().optional().default(true),
|
|
13
13
|
});
|
|
@@ -2,13 +2,13 @@ import { z } from 'zod';
|
|
|
2
2
|
import { OrderProductSchema } from '../../schemas';
|
|
3
3
|
|
|
4
4
|
const UpdateOrderProductRequestSchema = z.object({
|
|
5
|
-
productUUID: z.
|
|
5
|
+
productUUID: z.uuid(),
|
|
6
6
|
quantity: z.number(),
|
|
7
7
|
price: z.number(),
|
|
8
8
|
comment: z.string().nullable(),
|
|
9
9
|
tag: z.string().nullable(),
|
|
10
10
|
isEditable: z.coerce.boolean(),
|
|
11
|
-
multiplicityOptionUUID: z.
|
|
11
|
+
multiplicityOptionUUID: z.uuid().nullable().optional(),
|
|
12
12
|
});
|
|
13
13
|
|
|
14
14
|
const UpdateOrderProductResponseSchema = z.object({
|
|
@@ -3,7 +3,7 @@ import { OrderProductForClientSchema } from '../../../schemas';
|
|
|
3
3
|
|
|
4
4
|
const CreateOrderProductClientRequestSchema = z.object({
|
|
5
5
|
quantity: z.number().positive({ message: 'Количество должно быть больше нуля' }),
|
|
6
|
-
optionUUID: z.
|
|
6
|
+
optionUUID: z.uuid().optional().nullable(),
|
|
7
7
|
});
|
|
8
8
|
|
|
9
9
|
const CreateOrderProductClientResponseSchema = z.object({
|
|
@@ -4,7 +4,7 @@ import { OrderProductForClientSchema } from '../../../schemas';
|
|
|
4
4
|
const UpdateOrderProductForClientRequestSchema = z.object({
|
|
5
5
|
quantity: z.coerce.number().optional(),
|
|
6
6
|
comment: z.string().optional(),
|
|
7
|
-
optionUUID: z.
|
|
7
|
+
optionUUID: z.uuid().nullable().optional(),
|
|
8
8
|
});
|
|
9
9
|
|
|
10
10
|
const UpdateOrderProductForClientResponseSchema = z.object({
|
|
@@ -10,8 +10,8 @@ const GetPackageFiltersValuesResponseSchema = z.object({
|
|
|
10
10
|
uuid: z.string(),
|
|
11
11
|
displayId: z.string(),
|
|
12
12
|
marking: z.string().nullable(),
|
|
13
|
-
type: z.
|
|
14
|
-
status: z.
|
|
13
|
+
type: z.enum(PackageTypeEnum),
|
|
14
|
+
status: z.enum(PackageStatusEnum),
|
|
15
15
|
}),
|
|
16
16
|
),
|
|
17
17
|
clientList: z.array(
|
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
import { OrderSchema } from '../../schemas';
|
|
3
3
|
|
|
4
4
|
const CreateOrderFromPreOrderRequestSchema = z.object({
|
|
5
|
-
consignmentUUIDList: z.
|
|
5
|
+
consignmentUUIDList: z.uuid().array(),
|
|
6
6
|
});
|
|
7
7
|
|
|
8
8
|
const CreateOrderFromPreOrderResponseSchema = z.object({
|
|
@@ -7,7 +7,7 @@ const GetPreOrderListRequestSchema = z.object({
|
|
|
7
7
|
count: z.coerce.number().optional().default(10),
|
|
8
8
|
searchQuery: z.string().optional(),
|
|
9
9
|
preOrderCollectionUUID: z.string().optional(),
|
|
10
|
-
status: z.
|
|
10
|
+
status: z.enum(PreOrderStatusEnum).array().optional(),
|
|
11
11
|
createdAtFrom: z.coerce.date().optional(),
|
|
12
12
|
createdAtTo: z.coerce.date().optional(),
|
|
13
13
|
responsibleUserUUID: z.string().optional(),
|
|
@@ -2,8 +2,8 @@ import { z } from 'zod';
|
|
|
2
2
|
import { MatchingConfigSchema, CopyAnalysisSchema } from '../../../schemas';
|
|
3
3
|
|
|
4
4
|
const AnalyzeCopyPreOrdersRequestSchema = z.object({
|
|
5
|
-
preOrderUUIDList: z.array(z.
|
|
6
|
-
targetPreOrderCollectionUUID: z.
|
|
5
|
+
preOrderUUIDList: z.array(z.uuid()),
|
|
6
|
+
targetPreOrderCollectionUUID: z.uuid(),
|
|
7
7
|
matchingConfig: MatchingConfigSchema.optional().nullable(),
|
|
8
8
|
});
|
|
9
9
|
|
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
} from '../../../schemas';
|
|
8
8
|
|
|
9
9
|
const AnalyzeCreateOrdersFromPreOrdersRequestSchema = z.object({
|
|
10
|
-
preOrderUUIDs: z.
|
|
11
|
-
consignmentUUIDs: z.
|
|
10
|
+
preOrderUUIDs: z.uuid().array(),
|
|
11
|
+
consignmentUUIDs: z.uuid().array(),
|
|
12
12
|
matchingConfig: MatchingConfigSchema.optional().nullable(),
|
|
13
13
|
isProportionalAllocation: z.coerce.boolean().optional(),
|
|
14
14
|
});
|
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
} from '../../../schemas';
|
|
8
8
|
|
|
9
9
|
const AnalyzeCreatePreOrdersFromStandingOrdersRequestSchema = z.object({
|
|
10
|
-
standingOrderUUIDs: z.
|
|
11
|
-
preOrderCollectionUUIDs: z.
|
|
10
|
+
standingOrderUUIDs: z.uuid().array(),
|
|
11
|
+
preOrderCollectionUUIDs: z.uuid().array(),
|
|
12
12
|
matchingConfig: MatchingConfigSchema.optional().nullable(),
|
|
13
13
|
});
|
|
14
14
|
|
|
@@ -2,8 +2,8 @@ import { z } from 'zod';
|
|
|
2
2
|
import { MatchingConfigSchema } from '../../../schemas/pre-order-product/pre-order-product.schema';
|
|
3
3
|
|
|
4
4
|
const GroupCopyPreOrdersToCollectionRequestSchema = z.object({
|
|
5
|
-
preOrderUUIDList: z.array(z.
|
|
6
|
-
targetPreOrderCollectionUUID: z.
|
|
5
|
+
preOrderUUIDList: z.array(z.uuid()),
|
|
6
|
+
targetPreOrderCollectionUUID: z.uuid(),
|
|
7
7
|
matchingConfig: MatchingConfigSchema.optional().nullable(),
|
|
8
8
|
});
|
|
9
9
|
|
|
@@ -2,8 +2,8 @@ import { z } from 'zod';
|
|
|
2
2
|
import { MatchingConfigSchema, OrderSchema } from '../../../schemas';
|
|
3
3
|
|
|
4
4
|
const GroupCreateOrdersFromPreOrdersRequestSchema = z.object({
|
|
5
|
-
preOrderUUIDs: z.
|
|
6
|
-
consignmentUUIDs: z.
|
|
5
|
+
preOrderUUIDs: z.uuid().array(),
|
|
6
|
+
consignmentUUIDs: z.uuid().array(),
|
|
7
7
|
matchingConfig: MatchingConfigSchema.optional().nullable(),
|
|
8
8
|
isProportionalAllocation: z.coerce.boolean().optional(),
|
|
9
9
|
});
|
|
@@ -13,7 +13,7 @@ const GroupCreateOrdersFromPreOrdersResponseSchema = z.object({
|
|
|
13
13
|
data: z.object({
|
|
14
14
|
created: z
|
|
15
15
|
.object({
|
|
16
|
-
preOrderUUID: z.
|
|
16
|
+
preOrderUUID: z.uuid(),
|
|
17
17
|
orders: OrderSchema.extend({
|
|
18
18
|
warnings: z.string().array(),
|
|
19
19
|
}).array(),
|
|
@@ -21,7 +21,7 @@ const GroupCreateOrdersFromPreOrdersResponseSchema = z.object({
|
|
|
21
21
|
.array(),
|
|
22
22
|
failed: z
|
|
23
23
|
.object({
|
|
24
|
-
preOrderUUID: z.
|
|
24
|
+
preOrderUUID: z.uuid(),
|
|
25
25
|
error: z.object({
|
|
26
26
|
code: z.string(),
|
|
27
27
|
message: z.string(),
|
|
@@ -2,8 +2,8 @@ import { z } from 'zod';
|
|
|
2
2
|
import { MatchingConfigSchema, PreOrderSchema } from '../../../schemas';
|
|
3
3
|
|
|
4
4
|
const GroupCreatePreOrdersFromStandingOrdersRequestSchema = z.object({
|
|
5
|
-
standingOrderUUIDs: z.
|
|
6
|
-
preOrderCollectionUUIDs: z.
|
|
5
|
+
standingOrderUUIDs: z.uuid().array(),
|
|
6
|
+
preOrderCollectionUUIDs: z.uuid().array(),
|
|
7
7
|
matchingConfig: MatchingConfigSchema.optional().nullable(),
|
|
8
8
|
});
|
|
9
9
|
|
|
@@ -12,14 +12,14 @@ const GroupCreatePreOrdersFromStandingOrdersResponseSchema = z.object({
|
|
|
12
12
|
data: z.object({
|
|
13
13
|
created: z
|
|
14
14
|
.object({
|
|
15
|
-
standingOrderUUID: z.
|
|
15
|
+
standingOrderUUID: z.uuid(),
|
|
16
16
|
preOrders: PreOrderSchema.array(),
|
|
17
17
|
warnings: z.string().array(),
|
|
18
18
|
})
|
|
19
19
|
.array(),
|
|
20
20
|
failed: z
|
|
21
21
|
.object({
|
|
22
|
-
standingOrderUUID: z.
|
|
22
|
+
standingOrderUUID: z.uuid(),
|
|
23
23
|
error: z.object({
|
|
24
24
|
code: z.string(),
|
|
25
25
|
message: z.string(),
|
|
@@ -5,7 +5,7 @@ import { PreOrderListSchema } from '../../../schemas';
|
|
|
5
5
|
const GetPreOrderListWebshopRequestSchema = z.object({
|
|
6
6
|
page: z.coerce.number().optional().default(1),
|
|
7
7
|
count: z.coerce.number().optional().default(10),
|
|
8
|
-
statuses: z.array(z.
|
|
8
|
+
statuses: z.array(z.enum(PreOrderStatusEnum)).optional(),
|
|
9
9
|
});
|
|
10
10
|
|
|
11
11
|
const GetPreOrderListResponseSchema = z.object({
|
|
@@ -6,7 +6,7 @@ const GetPreOrderCollectionListRequestSchema = z.object({
|
|
|
6
6
|
page: z.coerce.number().optional().default(1),
|
|
7
7
|
count: z.coerce.number().optional().default(10),
|
|
8
8
|
searchQuery: z.string().optional(),
|
|
9
|
-
status: z.
|
|
9
|
+
status: z.enum(PreOrderCollectionStatusEnum).optional(),
|
|
10
10
|
startDate: z.coerce.date().optional(),
|
|
11
11
|
endDate: z.coerce.date().optional(),
|
|
12
12
|
});
|
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
|
|
3
3
|
const MatchImagesRequestSchema = z.object({
|
|
4
4
|
onlyWithoutImages: z.coerce.boolean().default(true),
|
|
5
|
-
uuidList: z.array(z.
|
|
5
|
+
uuidList: z.array(z.uuid()).optional(),
|
|
6
6
|
});
|
|
7
7
|
|
|
8
8
|
const MatchImagesResponseSchema = z.object({
|
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
import { PreOrderAggregationModeEnum } from '../../enum';
|
|
3
3
|
|
|
4
4
|
const ExportPreOrderCollectionItemWithClientsVerticalRequestSchema = z.object({
|
|
5
|
-
aggregationMode: z.
|
|
5
|
+
aggregationMode: z.enum(PreOrderAggregationModeEnum).optional().default(PreOrderAggregationModeEnum.ITEM),
|
|
6
6
|
});
|
|
7
7
|
|
|
8
8
|
const ExportPreOrderCollectionItemWithClientsVerticalResponseSchema = z.object({
|
|
@@ -5,7 +5,7 @@ import { PreOrderStatusEnum } from '../../enum';
|
|
|
5
5
|
const GetPreOrderCollectionItemExtendedWithClientsPreOrderProductListRequestSchema = z.object({
|
|
6
6
|
preOrderCollectionUUID: z.string().optional(),
|
|
7
7
|
searchQuery: z.string().optional(),
|
|
8
|
-
statuses: z.
|
|
8
|
+
statuses: z.enum(PreOrderStatusEnum).array().optional(),
|
|
9
9
|
preOrderCreatedAtFrom: z.coerce.date().optional(),
|
|
10
10
|
preOrderCreatedAtTo: z.coerce.date().optional(),
|
|
11
11
|
});
|
|
@@ -6,7 +6,7 @@ const GetProductConfigurationListRequestSchema = z.object({
|
|
|
6
6
|
page: z.coerce.number().optional().default(1),
|
|
7
7
|
count: z.coerce.number().optional().default(10),
|
|
8
8
|
categoryUUID: z.string().optional(),
|
|
9
|
-
country: z.
|
|
9
|
+
country: z.enum(CountryCodeEnum).optional(),
|
|
10
10
|
grower: z.string().optional(),
|
|
11
11
|
size: z.coerce.number().optional(),
|
|
12
12
|
isOptional: z.coerce.boolean().optional(),
|
|
@@ -5,7 +5,7 @@ import { ProductImageOrderByEnum } from '../../enum';
|
|
|
5
5
|
const GetProductImageListRequestSchema = z.object({
|
|
6
6
|
page: z.string().transform(val => Number(val) || 1),
|
|
7
7
|
count: z.string().transform(val => Number(val) || 10),
|
|
8
|
-
orderBy: z.
|
|
8
|
+
orderBy: z.enum(ProductImageOrderByEnum).optional(),
|
|
9
9
|
searchQuery: z.string().optional(),
|
|
10
10
|
productUUID: z.string().optional(),
|
|
11
11
|
categoryUUID: z.string().optional(),
|
|
@@ -6,7 +6,7 @@ const ExportInventoryMovementRequestSchema = z
|
|
|
6
6
|
.object({
|
|
7
7
|
startDate: z.coerce.date().optional(),
|
|
8
8
|
endDate: z.coerce.date().optional(),
|
|
9
|
-
categoryUUID: z.
|
|
9
|
+
categoryUUID: z.uuid().optional(), // Фильтр по категории
|
|
10
10
|
detailed: z.coerce.boolean().optional().default(false), // Флаг для детализации
|
|
11
11
|
})
|
|
12
12
|
.refine(
|
|
@@ -28,7 +28,7 @@ const CategoryMovementItemSchema = z.object({
|
|
|
28
28
|
date: z.string(),
|
|
29
29
|
categoryUUID: z.string(),
|
|
30
30
|
categoryName: z.string(),
|
|
31
|
-
movementType: z.
|
|
31
|
+
movementType: z.enum(InventoryMovementTypeEnum), // тип движения как enum
|
|
32
32
|
quantity: z.number(),
|
|
33
33
|
});
|
|
34
34
|
|
|
@@ -41,7 +41,7 @@ const DetailedMovementItemSchema = z.object({
|
|
|
41
41
|
color: z.string().nullable(),
|
|
42
42
|
size: z.string().nullable(),
|
|
43
43
|
grower: z.string().nullable(),
|
|
44
|
-
movementType: z.
|
|
44
|
+
movementType: z.enum(InventoryMovementTypeEnum), // тип движения как enum
|
|
45
45
|
quantity: z.number(),
|
|
46
46
|
documentNumber: z.string().nullable(), // номер документа
|
|
47
47
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
|
|
3
3
|
const ExportInventoryStockRequestSchema = z.object({
|
|
4
|
-
categoryUUID: z.
|
|
4
|
+
categoryUUID: z.uuid().optional(), // Фильтр по категории
|
|
5
5
|
detailed: z.coerce.boolean().optional().default(false), // Флаг для детализации (группировка по name, size, grower)
|
|
6
6
|
});
|
|
7
7
|
|
|
@@ -5,7 +5,7 @@ const ExportInventoryTurnoverRequestSchema = z
|
|
|
5
5
|
.object({
|
|
6
6
|
startDate: z.coerce.date().optional(),
|
|
7
7
|
endDate: z.coerce.date().optional(),
|
|
8
|
-
categoryUUID: z.
|
|
8
|
+
categoryUUID: z.uuid().optional(), // Фильтр по категории
|
|
9
9
|
detailed: z.coerce.boolean().optional().default(false), // Флаг для детализации
|
|
10
10
|
})
|
|
11
11
|
.refine(
|
|
@@ -6,7 +6,7 @@ const ExportSalesRevenueRequestSchema = z
|
|
|
6
6
|
.object({
|
|
7
7
|
startDate: z.coerce.date().optional(),
|
|
8
8
|
endDate: z.coerce.date().optional(),
|
|
9
|
-
periodType: z.
|
|
9
|
+
periodType: z.enum(ReportPeriodTypeEnum).default(ReportPeriodTypeEnum.DAY),
|
|
10
10
|
})
|
|
11
11
|
.refine(
|
|
12
12
|
value => {
|
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
import { TransactionSchema } from '../../schemas';
|
|
3
3
|
|
|
4
4
|
const ApplyPrepaymentTransactionRequestSchema = z.object({
|
|
5
|
-
orderUUID: z.
|
|
5
|
+
orderUUID: z.uuid().optional(),
|
|
6
6
|
});
|
|
7
7
|
|
|
8
8
|
const ApplyPrepaymentTransactionResponseSchema = z.object({
|
|
@@ -6,7 +6,7 @@ const ExportTransactionsRequestSchema = z
|
|
|
6
6
|
.object({
|
|
7
7
|
startDate: z.coerce.date(),
|
|
8
8
|
endDate: z.coerce.date(),
|
|
9
|
-
transactionType: z.
|
|
9
|
+
transactionType: z.enum(TransactionTypeEnum).optional(),
|
|
10
10
|
moneyAccountUUID: z.string().optional(),
|
|
11
11
|
clientUUID: z.string().optional(),
|
|
12
12
|
orderUUID: z.string().optional(),
|
|
@@ -9,7 +9,7 @@ const GetTransactionListRequestSchema = z
|
|
|
9
9
|
count: z.coerce.number().optional().default(10),
|
|
10
10
|
startDate: z.coerce.date().optional(),
|
|
11
11
|
endDate: z.coerce.date().optional(),
|
|
12
|
-
transactionType: z.
|
|
12
|
+
transactionType: z.enum(TransactionTypeEnum).optional(),
|
|
13
13
|
moneyAccountUUID: z.string().optional(),
|
|
14
14
|
clientUUID: z.string().optional(),
|
|
15
15
|
orderUUID: z.string().optional(),
|
|
@@ -6,7 +6,7 @@ const GetTransactionSummaryRequestSchema = z
|
|
|
6
6
|
.object({
|
|
7
7
|
startDate: z.coerce.date().optional(),
|
|
8
8
|
endDate: z.coerce.date().optional(),
|
|
9
|
-
transactionType: z.
|
|
9
|
+
transactionType: z.enum(TransactionTypeEnum).optional(),
|
|
10
10
|
moneyAccountUUID: z.string().optional(),
|
|
11
11
|
clientUUID: z.string().optional(),
|
|
12
12
|
orderUUID: z.string().optional(),
|
|
@@ -9,7 +9,7 @@ const GetTransactionListForClientRequestSchema = z
|
|
|
9
9
|
count: z.coerce.number().optional().default(10),
|
|
10
10
|
startDate: z.coerce.date().optional(),
|
|
11
11
|
endDate: z.coerce.date().optional(),
|
|
12
|
-
transactionType: z.
|
|
12
|
+
transactionType: z.enum(TransactionTypeEnum).optional(),
|
|
13
13
|
moneyAccountUUID: z.string().optional(),
|
|
14
14
|
orderUUID: z.string().optional(),
|
|
15
15
|
searchQuery: z.string().optional(),
|
|
@@ -5,7 +5,7 @@ import { OrderByEnum } from '../../enum/order-by.enum';
|
|
|
5
5
|
const GetTypeListRequestSchema = z.object({
|
|
6
6
|
page: z.string().transform(val => Number(val) || 1),
|
|
7
7
|
count: z.string().transform(val => Number(val) || 10),
|
|
8
|
-
orderBy: z.
|
|
8
|
+
orderBy: z.enum(OrderByEnum).optional().default(OrderByEnum.ASC),
|
|
9
9
|
});
|
|
10
10
|
|
|
11
11
|
export const TypeListSchemaWithTotal = z.object({
|