@floristcloud/api-lib 1.0.20 → 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/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/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
|
@@ -17,8 +17,8 @@ exports.SettingsWorkingHoursSchema = zod_1.z.object({
|
|
|
17
17
|
});
|
|
18
18
|
exports.SettingsSchema = zod_1.z.object({
|
|
19
19
|
uuid: zod_1.z.string(),
|
|
20
|
-
language: zod_1.z.
|
|
21
|
-
additionalLanguage: zod_1.z.
|
|
20
|
+
language: zod_1.z.enum(enum_1.LanguageEnum),
|
|
21
|
+
additionalLanguage: zod_1.z.enum(enum_1.LanguageEnum).nullable(),
|
|
22
22
|
currency: zod_1.z.string().nullable(),
|
|
23
23
|
timeZone: zod_1.z.string().nullable(),
|
|
24
24
|
phoneFormat: zod_1.z.string().nullable(),
|
|
@@ -45,17 +45,17 @@ exports.SettingsSchema = zod_1.z.object({
|
|
|
45
45
|
orderExpirationMin: zod_1.z.number().nullable(),
|
|
46
46
|
paymentGraceDaysAfterCompletion: zod_1.z.number().nullable(),
|
|
47
47
|
writeOffAllowedHoursAfterCompletion: zod_1.z.number().nullable(),
|
|
48
|
-
discountPriceRounding: zod_1.z.
|
|
48
|
+
discountPriceRounding: zod_1.z.enum(enum_1.DiscountPriceRoundingEnum),
|
|
49
49
|
createdAt: zod_1.z.coerce.date(),
|
|
50
50
|
updatedAt: zod_1.z.coerce.date(),
|
|
51
51
|
isWhatsappActive: zod_1.z.boolean(),
|
|
52
52
|
isPostTerminalActive: zod_1.z.boolean(),
|
|
53
|
-
webshopMainDisplayMode: zod_1.z.
|
|
54
|
-
webshopMode: zod_1.z.
|
|
53
|
+
webshopMainDisplayMode: zod_1.z.enum(webshop_main_display_mode_enum_1.WebshopMainDisplayModeEnum).nullable(),
|
|
54
|
+
webshopMode: zod_1.z.enum(enum_1.WebshopModeEnum).nullable(),
|
|
55
55
|
phoneSales: zod_1.z.string().nullable(),
|
|
56
56
|
phoneWhatsappSales: zod_1.z.string().nullable(),
|
|
57
57
|
telegramChannel: zod_1.z.string().nullable(),
|
|
58
|
-
menuItemsSort: zod_1.z.array(zod_1.z.
|
|
58
|
+
menuItemsSort: zod_1.z.array(zod_1.z.enum(menu_items_url_enum_1.MenuItemsUrlEnum)).nullable(),
|
|
59
59
|
phoneCountryCode: zod_1.z.array(zod_1.z.string()),
|
|
60
60
|
aboutCompany: zod_1.z.string().nullable(),
|
|
61
61
|
companyRequisites: zod_1.z.string().nullable(),
|
|
@@ -82,8 +82,8 @@ exports.SettingsForAdminSchema = exports.SettingsSchema.extend({
|
|
|
82
82
|
whatsappApiTokenInstance: zod_1.z.string().nullable(),
|
|
83
83
|
});
|
|
84
84
|
exports.CreateSettingsSchema = zod_1.z.object({
|
|
85
|
-
language: zod_1.z.
|
|
86
|
-
additionalLanguage: zod_1.z.
|
|
85
|
+
language: zod_1.z.enum(enum_1.LanguageEnum),
|
|
86
|
+
additionalLanguage: zod_1.z.enum(enum_1.LanguageEnum).nullable().optional(),
|
|
87
87
|
currency: zod_1.z.string().optional(),
|
|
88
88
|
timeZone: zod_1.z.string().optional(),
|
|
89
89
|
phoneFormat: zod_1.z.string().optional(),
|
|
@@ -106,15 +106,15 @@ exports.CreateSettingsSchema = zod_1.z.object({
|
|
|
106
106
|
paymentGraceDaysAfterCompletion: zod_1.z.coerce.number().nullable().optional(),
|
|
107
107
|
writeOffAllowedHoursAfterCompletion: zod_1.z.coerce.number().nullable().optional(),
|
|
108
108
|
isShowPriceAnonymous: zod_1.z.coerce.boolean().optional(),
|
|
109
|
-
discountPriceRounding: zod_1.z.
|
|
109
|
+
discountPriceRounding: zod_1.z.enum(enum_1.DiscountPriceRoundingEnum).optional(),
|
|
110
110
|
vatTag: zod_1.z.string().nullable().optional(),
|
|
111
111
|
taxMode: zod_1.z.string().nullable().optional(),
|
|
112
112
|
integrationUrl: zod_1.z.string().nullable().optional(),
|
|
113
113
|
receiptLogin: zod_1.z.string().nullable().optional(),
|
|
114
114
|
receiptPassword: zod_1.z.string().nullable().optional(),
|
|
115
115
|
retailPointUuid: zod_1.z.string().nullable().optional(),
|
|
116
|
-
webshopMainDisplayMode: zod_1.z.
|
|
117
|
-
webshopMode: zod_1.z.
|
|
116
|
+
webshopMainDisplayMode: zod_1.z.enum(webshop_main_display_mode_enum_1.WebshopMainDisplayModeEnum).nullable().optional(),
|
|
117
|
+
webshopMode: zod_1.z.enum(enum_1.WebshopModeEnum).nullable().optional(),
|
|
118
118
|
workingHours: zod_1.z.array(zod_1.z.object({
|
|
119
119
|
dayOfWeek: zod_1.z.coerce.number(),
|
|
120
120
|
opensAt: zod_1.z.coerce.date().optional(),
|
|
@@ -124,7 +124,7 @@ exports.CreateSettingsSchema = zod_1.z.object({
|
|
|
124
124
|
phoneSales: zod_1.z.string().nullable().optional(),
|
|
125
125
|
phoneWhatsappSales: zod_1.z.string().nullable().optional(),
|
|
126
126
|
telegramChannel: zod_1.z.string().nullable().optional(),
|
|
127
|
-
menuItemsSort: zod_1.z.array(zod_1.z.
|
|
127
|
+
menuItemsSort: zod_1.z.array(zod_1.z.enum(menu_items_url_enum_1.MenuItemsUrlEnum)).nullable().optional(),
|
|
128
128
|
phoneCountryCode: zod_1.z.array(zod_1.z.string()).optional(),
|
|
129
129
|
aboutCompany: zod_1.z.string().nullable().optional(),
|
|
130
130
|
companyRequisites: zod_1.z.string().nullable().optional(),
|
|
@@ -137,8 +137,8 @@ exports.CreateSettingsSchema = zod_1.z.object({
|
|
|
137
137
|
loginImageKeyList: zod_1.z.array(zod_1.z.string()).optional(),
|
|
138
138
|
});
|
|
139
139
|
exports.UpdateSettingsRequestSchema = zod_1.z.object({
|
|
140
|
-
language: zod_1.z.
|
|
141
|
-
additionalLanguage: zod_1.z.
|
|
140
|
+
language: zod_1.z.enum(enum_1.LanguageEnum),
|
|
141
|
+
additionalLanguage: zod_1.z.enum(enum_1.LanguageEnum).nullable().optional(),
|
|
142
142
|
currency: zod_1.z.string().optional(),
|
|
143
143
|
timeZone: zod_1.z.string().optional(),
|
|
144
144
|
isImageTemplateSync: zod_1.z.coerce.boolean().optional(),
|
|
@@ -161,9 +161,9 @@ exports.UpdateSettingsRequestSchema = zod_1.z.object({
|
|
|
161
161
|
orderExpirationMin: zod_1.z.coerce.number().nullable().optional(),
|
|
162
162
|
paymentGraceDaysAfterCompletion: zod_1.z.coerce.number().nullable().optional(),
|
|
163
163
|
writeOffAllowedHoursAfterCompletion: zod_1.z.coerce.number().nullable().optional(),
|
|
164
|
-
discountPriceRounding: zod_1.z.
|
|
165
|
-
webshopMainDisplayMode: zod_1.z.
|
|
166
|
-
webshopMode: zod_1.z.
|
|
164
|
+
discountPriceRounding: zod_1.z.enum(enum_1.DiscountPriceRoundingEnum).optional(),
|
|
165
|
+
webshopMainDisplayMode: zod_1.z.enum(webshop_main_display_mode_enum_1.WebshopMainDisplayModeEnum).nullable().optional(),
|
|
166
|
+
webshopMode: zod_1.z.enum(enum_1.WebshopModeEnum).nullable().optional(),
|
|
167
167
|
workingHours: zod_1.z.array(zod_1.z.object({
|
|
168
168
|
dayOfWeek: zod_1.z.coerce.number(),
|
|
169
169
|
opensAt: zod_1.z.coerce.date().optional(),
|
|
@@ -173,7 +173,7 @@ exports.UpdateSettingsRequestSchema = zod_1.z.object({
|
|
|
173
173
|
phoneSales: zod_1.z.string().nullable().optional(),
|
|
174
174
|
phoneWhatsappSales: zod_1.z.string().nullable().optional(),
|
|
175
175
|
telegramChannel: zod_1.z.string().nullable().optional(),
|
|
176
|
-
menuItemsSort: zod_1.z.array(zod_1.z.
|
|
176
|
+
menuItemsSort: zod_1.z.array(zod_1.z.enum(menu_items_url_enum_1.MenuItemsUrlEnum)).nullable().optional(),
|
|
177
177
|
phoneCountryCode: zod_1.z.array(zod_1.z.string()).optional(),
|
|
178
178
|
aboutCompany: zod_1.z.string().nullable().optional(),
|
|
179
179
|
companyRequisites: zod_1.z.string().nullable().optional(),
|
|
@@ -7,13 +7,13 @@ const money_account_schema_1 = require("../money-account/money-account.schema");
|
|
|
7
7
|
const client_1 = require("../client");
|
|
8
8
|
const order_schema_1 = require("../order/order.schema");
|
|
9
9
|
exports.TransactionSchema = zod_1.z.object({
|
|
10
|
-
uuid: zod_1.z.
|
|
11
|
-
moneyAccountUUID: zod_1.z.
|
|
10
|
+
uuid: zod_1.z.uuid(),
|
|
11
|
+
moneyAccountUUID: zod_1.z.uuid(),
|
|
12
12
|
amount: zod_1.z.number(),
|
|
13
13
|
comment: zod_1.z.string(),
|
|
14
14
|
clientUUID: zod_1.z.string().nullable(),
|
|
15
15
|
orderUUID: zod_1.z.string().nullable(),
|
|
16
|
-
type: zod_1.z.
|
|
16
|
+
type: zod_1.z.enum(enum_1.TransactionTypeEnum),
|
|
17
17
|
createdByUserUUID: zod_1.z.string(),
|
|
18
18
|
createdAt: zod_1.z.date(),
|
|
19
19
|
updatedAt: zod_1.z.date(),
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.TypeInCategorySchema = exports.TypeSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.TypeSchema = zod_1.z.object({
|
|
6
|
-
uuid: zod_1.z.
|
|
6
|
+
uuid: zod_1.z.uuid(),
|
|
7
7
|
name: zod_1.z.string(),
|
|
8
8
|
rank: zod_1.z.number(),
|
|
9
9
|
deletedAt: zod_1.z.date().nullable(),
|
|
@@ -11,7 +11,7 @@ exports.TypeSchema = zod_1.z.object({
|
|
|
11
11
|
updatedAt: zod_1.z.date(),
|
|
12
12
|
});
|
|
13
13
|
exports.TypeInCategorySchema = zod_1.z.object({
|
|
14
|
-
uuid: zod_1.z.
|
|
14
|
+
uuid: zod_1.z.uuid(),
|
|
15
15
|
name: zod_1.z.string(),
|
|
16
16
|
rank: zod_1.z.number(),
|
|
17
17
|
});
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.TypeListSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.TypeListSchema = zod_1.z.object({
|
|
6
|
-
uuid: zod_1.z.
|
|
6
|
+
uuid: zod_1.z.uuid(),
|
|
7
7
|
name: zod_1.z.string(),
|
|
8
8
|
rank: zod_1.z.number(),
|
|
9
9
|
});
|
|
@@ -4,13 +4,13 @@ exports.CreateUserSchema = exports.UserSchema = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const enum_1 = require("../../enum");
|
|
6
6
|
exports.UserSchema = zod_1.z.object({
|
|
7
|
-
uuid: zod_1.z.
|
|
7
|
+
uuid: zod_1.z.uuid(),
|
|
8
8
|
name: zod_1.z.string(),
|
|
9
9
|
email: zod_1.z.string().nullable(),
|
|
10
10
|
phone: zod_1.z.string().nullable(),
|
|
11
|
-
roles: zod_1.z.array(zod_1.z.
|
|
11
|
+
roles: zod_1.z.array(zod_1.z.enum(enum_1.UserRoleEnum)),
|
|
12
12
|
companyUUID: zod_1.z.string(),
|
|
13
|
-
status: zod_1.z.
|
|
13
|
+
status: zod_1.z.enum(enum_1.UserStatusEnum),
|
|
14
14
|
isGlobal: zod_1.z.boolean(),
|
|
15
15
|
restoreTokenHash: zod_1.z.string().nullable(),
|
|
16
16
|
passwordHash: zod_1.z.string(),
|
|
@@ -23,6 +23,6 @@ exports.CreateUserSchema = zod_1.z.object({
|
|
|
23
23
|
email: zod_1.z.string(),
|
|
24
24
|
phone: zod_1.z.string(),
|
|
25
25
|
password: zod_1.z.string(),
|
|
26
|
-
roles: zod_1.z.array(zod_1.z.
|
|
27
|
-
status: zod_1.z.
|
|
26
|
+
roles: zod_1.z.array(zod_1.z.enum(enum_1.UserRoleEnum)).default([enum_1.UserRoleEnum.BUYER]),
|
|
27
|
+
status: zod_1.z.enum(enum_1.UserStatusEnum).default(enum_1.UserStatusEnum.INACTIVE),
|
|
28
28
|
});
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.WriteOffImageSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.WriteOffImageSchema = zod_1.z.object({
|
|
6
|
-
uuid: zod_1.z.
|
|
7
|
-
writeOffUUID: zod_1.z.
|
|
6
|
+
uuid: zod_1.z.uuid(),
|
|
7
|
+
writeOffUUID: zod_1.z.uuid(),
|
|
8
8
|
url: zod_1.z.string(),
|
|
9
9
|
createdAt: zod_1.z.date(),
|
|
10
10
|
deletedAt: zod_1.z.date().nullable(),
|
|
@@ -9,7 +9,7 @@ const write_off_image_schema_1 = require("./write-off-image.schema");
|
|
|
9
9
|
const enum_1 = require("../../enum");
|
|
10
10
|
const client_1 = require("../client");
|
|
11
11
|
exports.WriteOffSchema = zod_1.z.object({
|
|
12
|
-
uuid: zod_1.z.
|
|
12
|
+
uuid: zod_1.z.uuid(),
|
|
13
13
|
quantity: zod_1.z.number(),
|
|
14
14
|
reason: zod_1.z.string(),
|
|
15
15
|
comment: zod_1.z.string().nullable(),
|
|
@@ -19,7 +19,7 @@ exports.WriteOffSchema = zod_1.z.object({
|
|
|
19
19
|
orderUUID: zod_1.z.string().nullable(),
|
|
20
20
|
createdByUUID: zod_1.z.string(),
|
|
21
21
|
approvedByUUID: zod_1.z.string().nullable(),
|
|
22
|
-
status: zod_1.z.
|
|
22
|
+
status: zod_1.z.enum(enum_1.WriteOffStatusEnum),
|
|
23
23
|
createdAt: zod_1.z.date(),
|
|
24
24
|
updatedAt: zod_1.z.date(),
|
|
25
25
|
product: product_schema_1.ProductExtendedForAdminSchema,
|
|
@@ -9,7 +9,7 @@ const GetActionLogListForClientRequestSchema = 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
|
-
actionType: z.
|
|
12
|
+
actionType: z.enum(ActionLogTypeEnum).optional(),
|
|
13
13
|
})
|
|
14
14
|
.refine(
|
|
15
15
|
value => {
|
|
@@ -7,7 +7,7 @@ const GetActionLogListRequestSchema = z
|
|
|
7
7
|
.object({
|
|
8
8
|
page: z.coerce.number().optional().default(1),
|
|
9
9
|
count: z.coerce.number().optional().default(10),
|
|
10
|
-
actionType: z.
|
|
10
|
+
actionType: z.enum(ActionLogTypeEnum).optional(),
|
|
11
11
|
entityUUID: z.string().optional(),
|
|
12
12
|
startDate: z.coerce.date().optional(),
|
|
13
13
|
endDate: z.coerce.date().optional(),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
|
|
3
3
|
const LoginUserRequestSchema = z.object({
|
|
4
|
-
email: z.
|
|
4
|
+
email: z.email().toLowerCase().optional(),
|
|
5
5
|
phone: z.string().optional(),
|
|
6
6
|
password: z.string(),
|
|
7
7
|
isRemember: z.coerce.boolean(),
|
|
@@ -10,8 +10,8 @@ const LoginUserRequestSchema = z.object({
|
|
|
10
10
|
const LoginUserResponseSchema = z.object({
|
|
11
11
|
accessToken: z.string(),
|
|
12
12
|
user: z.object({
|
|
13
|
-
uuid: z.
|
|
14
|
-
email: z.
|
|
13
|
+
uuid: z.uuid(),
|
|
14
|
+
email: z.email().nullable(),
|
|
15
15
|
phone: z.string().nullable(),
|
|
16
16
|
}),
|
|
17
17
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
|
|
3
3
|
export const ResetPasswordBySecurityCodeRequestSchema = z.object({
|
|
4
|
-
email: z.
|
|
4
|
+
email: z.email().toLowerCase().optional(),
|
|
5
5
|
phone: z.string().optional(),
|
|
6
6
|
securityCode: z.string(),
|
|
7
7
|
password: z.string().min(6),
|
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
|
|
3
3
|
export const ResetPasswordByTokenRequestSchema = z
|
|
4
4
|
.object({
|
|
5
|
-
email: z.
|
|
5
|
+
email: z.email().toLowerCase().optional(),
|
|
6
6
|
phone: z.string().optional(),
|
|
7
7
|
restoreToken: z.string(),
|
|
8
8
|
password: z.string(),
|
|
@@ -7,7 +7,7 @@ const GetBankPaymentListRequestSchema = z
|
|
|
7
7
|
.object({
|
|
8
8
|
page: z.coerce.number().optional().default(1),
|
|
9
9
|
count: z.coerce.number().optional().default(20),
|
|
10
|
-
status: z.
|
|
10
|
+
status: z.enum(BankPaymentEventStatusEnum).optional(),
|
|
11
11
|
searchQuery: z.string().optional(),
|
|
12
12
|
startDate: z.coerce.date().optional(),
|
|
13
13
|
endDate: z.coerce.date().optional(),
|
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
import { BankPaymentEventStatusEnum } from '../../enum/bank-payment-event-status.enum';
|
|
3
3
|
|
|
4
4
|
const UpdateBankPaymentStatusRequestSchema = z.object({
|
|
5
|
-
status: z.
|
|
5
|
+
status: z.enum(BankPaymentEventStatusEnum),
|
|
6
6
|
});
|
|
7
7
|
|
|
8
8
|
const UpdateBankPaymentStatusResponseSchema = z.object({
|
|
@@ -10,9 +10,9 @@ const GetCategoryListRequestSchema = z.object({
|
|
|
10
10
|
.string()
|
|
11
11
|
.optional()
|
|
12
12
|
.refine(val => !val || val.length < Math.pow(10, 6)),
|
|
13
|
-
typeUUID: z.string().
|
|
14
|
-
statuses: z.array(z.
|
|
15
|
-
orderByType: z.
|
|
13
|
+
typeUUID: z.string().optional(),
|
|
14
|
+
statuses: z.array(z.enum(CategoryStatusEnum)).default([]),
|
|
15
|
+
orderByType: z.enum(OrderByEnum).default(OrderByEnum.ASC),
|
|
16
16
|
});
|
|
17
17
|
|
|
18
18
|
const GetCategoryResponseSchema = z.object({
|
|
@@ -4,11 +4,11 @@ import { CategoryStatusEnum } from '../../enum';
|
|
|
4
4
|
|
|
5
5
|
const UpdateCategoryRequestSchema = z.object({
|
|
6
6
|
name: z.string(),
|
|
7
|
-
typeUUID: z.string()
|
|
7
|
+
typeUUID: z.string(),
|
|
8
8
|
multiplicity: z.number(),
|
|
9
9
|
isSizeSeparate: z.coerce.boolean(),
|
|
10
10
|
isSaveCategoryName: z.coerce.boolean(),
|
|
11
|
-
status: z.
|
|
11
|
+
status: z.enum(CategoryStatusEnum),
|
|
12
12
|
});
|
|
13
13
|
|
|
14
14
|
const UpdateCategoryResponseSchema = z.object({
|
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
import { CategoryAliasSchema } from '../../schemas/category-alias/category-alias.schema';
|
|
3
3
|
|
|
4
4
|
const GetAliasByUUIDRequestSchema = z.object({
|
|
5
|
-
uuid: z.
|
|
5
|
+
uuid: z.uuid(),
|
|
6
6
|
});
|
|
7
7
|
|
|
8
8
|
const GetAliasByUUIDResponseSchema = z.object({
|
|
@@ -7,9 +7,9 @@ const CreateClientRequestSchema = z.object({
|
|
|
7
7
|
name: z.string(),
|
|
8
8
|
contactName: z.string().nullable(),
|
|
9
9
|
phone: z.string().nullable(),
|
|
10
|
-
email: z.
|
|
11
|
-
type: z.
|
|
12
|
-
status: z.
|
|
10
|
+
email: z.email().toLowerCase().nullable(),
|
|
11
|
+
type: z.enum(ClientTypeEnum),
|
|
12
|
+
status: z.enum(ClientStatusEnum),
|
|
13
13
|
isCommon: z.coerce.boolean(),
|
|
14
14
|
contractNumber: z.string().nullable().optional(),
|
|
15
15
|
contractDate: z.coerce.date().nullable().optional(),
|
|
@@ -6,8 +6,8 @@ import { ClientTypeEnum } from '../../enum/client-type.enum';
|
|
|
6
6
|
const GetClientListRequestSchema = z.object({
|
|
7
7
|
page: z.string().transform(val => Number(val) || 1),
|
|
8
8
|
count: z.string().transform(val => Number(val) || 10),
|
|
9
|
-
clientStatus: z.
|
|
10
|
-
clientType: z.
|
|
9
|
+
clientStatus: z.enum(ClientStatusEnum).optional(),
|
|
10
|
+
clientType: z.enum(ClientTypeEnum).optional(),
|
|
11
11
|
group: z.string().optional(),
|
|
12
12
|
city: z.string().optional(),
|
|
13
13
|
searchQuery: z.string().optional(),
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
|
|
3
3
|
const GetClientMarkingByClientListRequestSchema = z.object({
|
|
4
|
-
clientUUIDList: z.array(z.
|
|
4
|
+
clientUUIDList: z.array(z.uuid()).min(1),
|
|
5
5
|
});
|
|
6
6
|
|
|
7
7
|
const GetClientMarkingByClientListResponseSchema = z.object({
|
|
8
8
|
message: z.string().optional(),
|
|
9
|
-
data: z.record(z.
|
|
9
|
+
data: z.record(z.uuid(), z.array(z.string())),
|
|
10
10
|
});
|
|
11
11
|
|
|
12
12
|
export namespace GetClientMarkingByClientListContractCommand {
|
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
import { ClientIndividualProfileSchema } from '../../../schemas/client';
|
|
3
3
|
|
|
4
4
|
const GetClientIndividualProfileRequestSchema = z.object({
|
|
5
|
-
uuid: z.
|
|
5
|
+
uuid: z.uuid(),
|
|
6
6
|
});
|
|
7
7
|
|
|
8
8
|
const GetClientIndividualProfileResponseSchema = z.object({
|
|
@@ -7,17 +7,17 @@ const UpdateClientRequestSchema = z.object({
|
|
|
7
7
|
name: z.string(),
|
|
8
8
|
contactName: z.string().nullable(),
|
|
9
9
|
phone: z.string().nullable(),
|
|
10
|
-
email: z.
|
|
11
|
-
status: z.
|
|
10
|
+
email: z.email().toLowerCase().nullable(),
|
|
11
|
+
status: z.enum(ClientStatusEnum),
|
|
12
12
|
isCommon: z.coerce.boolean(),
|
|
13
|
-
type: z.
|
|
13
|
+
type: z.enum(ClientTypeEnum),
|
|
14
14
|
contractNumber: z.string().nullable(),
|
|
15
15
|
contractDate: z.coerce.date().nullable(),
|
|
16
16
|
address: z.string().nullable().optional(),
|
|
17
17
|
city: z.string().nullable().optional(),
|
|
18
18
|
code: z.string().nullable().optional(),
|
|
19
19
|
group: z.string().nullable().optional(),
|
|
20
|
-
responsibleUserUUID: z.
|
|
20
|
+
responsibleUserUUID: z.uuid().nullable().optional(),
|
|
21
21
|
responsibleSince: z.coerce.date().nullable().optional(),
|
|
22
22
|
marking: z.string().nullable().optional(),
|
|
23
23
|
alwaysRequiresDelivery: z.boolean().optional(),
|
|
@@ -7,8 +7,8 @@ const RegisterClientWebshopRequestSchema = z.object({
|
|
|
7
7
|
password: z.string(),
|
|
8
8
|
contactName: z.string().nullable(),
|
|
9
9
|
phone: z.string(),
|
|
10
|
-
email: z.
|
|
11
|
-
type: z.
|
|
10
|
+
email: z.email().toLowerCase(),
|
|
11
|
+
type: z.enum(ClientTypeEnum),
|
|
12
12
|
});
|
|
13
13
|
|
|
14
14
|
const RegisterClientWebshopResponseSchema = z.object({
|
|
@@ -9,7 +9,7 @@ const CreateConsignmentRequestSchema = z.object({
|
|
|
9
9
|
description: z.string().nullable(),
|
|
10
10
|
label: z.string().nullable(),
|
|
11
11
|
isInStock: z.coerce.boolean(),
|
|
12
|
-
status: z.
|
|
12
|
+
status: z.enum(ConsignmentStatusEnum),
|
|
13
13
|
url: z.string().optional(),
|
|
14
14
|
});
|
|
15
15
|
|
|
@@ -9,7 +9,7 @@ const UpdateConsignmentRequestSchema = z.object({
|
|
|
9
9
|
description: z.string().nullable().optional(),
|
|
10
10
|
label: z.string().nullable().optional(),
|
|
11
11
|
isInStock: z.coerce.boolean().optional(),
|
|
12
|
-
status: z.
|
|
12
|
+
status: z.enum(ConsignmentStatusEnum).optional(),
|
|
13
13
|
url: z.string().nullable().optional(),
|
|
14
14
|
});
|
|
15
15
|
|
|
@@ -5,7 +5,7 @@ import { DeliveryRouteStatusEnum } from '../../enum';
|
|
|
5
5
|
const GetDeliveryRouteListRequestSchema = z.object({
|
|
6
6
|
page: z.coerce.number().default(1),
|
|
7
7
|
count: z.coerce.number().default(10),
|
|
8
|
-
statuses: z.
|
|
8
|
+
statuses: z.enum(DeliveryRouteStatusEnum).array().optional(),
|
|
9
9
|
driverName: z.string().optional(),
|
|
10
10
|
date: z.coerce.date().optional(),
|
|
11
11
|
});
|
|
@@ -2,10 +2,10 @@ import { z } from 'zod';
|
|
|
2
2
|
import { DiscountRulesSchema } from '../../schemas';
|
|
3
3
|
|
|
4
4
|
const GetDiscountRulesAllRequestSchema = z.object({
|
|
5
|
-
productUUIDList: z.
|
|
5
|
+
productUUIDList: z.uuid().array().optional(),
|
|
6
6
|
clientUUID: z.preprocess(val => {
|
|
7
7
|
return val === 'null' ? null : val;
|
|
8
|
-
}, z.
|
|
8
|
+
}, z.uuid().nullable().optional()),
|
|
9
9
|
});
|
|
10
10
|
|
|
11
11
|
const GetDiscountRulesAllResponseSchema = 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 GetContextUnreadCountRequestSchema = 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 GetContextUnreadCountResponseSchema = z.object({
|