@floristcloud/api-lib 1.0.20 → 1.0.22

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.
Files changed (197) hide show
  1. package/build/commands/auth/login-user.command.js +3 -3
  2. package/build/commands/auth/register-user.command.js +1 -1
  3. package/build/commands/auth/reset-password-by-security-code.command.js +1 -1
  4. package/build/commands/auth/reset-password-by-token.command.js +1 -1
  5. package/build/commands/auth/restore-password-by-security-code.command.js +1 -1
  6. package/build/commands/branch/delete-branch.command.js +1 -1
  7. package/build/commands/category/delete-category.command.js +1 -1
  8. package/build/commands/category/get-category-by-uuid.query.js +1 -1
  9. package/build/commands/category/get-category-list.query.js +1 -1
  10. package/build/commands/category/update-category-command.js +1 -1
  11. package/build/commands/category-alias/delete-category-alias.command.js +1 -1
  12. package/build/commands/category-alias/get-category-alias-by-uuid.query.js +1 -1
  13. package/build/commands/category-alias/update-category-alias.command.js +1 -1
  14. package/build/commands/client/create-client.command.js +1 -1
  15. package/build/commands/client/delete-client.command.js +1 -1
  16. package/build/commands/client/marking/get-client-marking-by-client-list.command.js +2 -2
  17. package/build/commands/client/profile/get-client-individual-profile.query.js +1 -1
  18. package/build/commands/client/update-client.command.js +2 -2
  19. package/build/commands/client/webshop/register-client-webshop.command.js +1 -1
  20. package/build/commands/client/webshop/update-client-for-client.command.js +1 -1
  21. package/build/commands/company/deleteCompany.command.js +1 -1
  22. package/build/commands/company/getCompany.query.js +1 -1
  23. package/build/commands/consignment/delete-consignment.command.js +1 -1
  24. package/build/commands/delivery-route/attach-order-list-to-delivery-route.command.js +1 -1
  25. package/build/commands/delivery-route/detach-order-list-to-delivery-route.command.js +1 -1
  26. package/build/commands/discount-rules/get-discount-rules-all.query.js +2 -2
  27. package/build/commands/message/get-context-unread-count.query.js +2 -2
  28. package/build/commands/message/get-contexts-with-unread.query.js +1 -1
  29. package/build/commands/message/list-context-messages.query.js +4 -4
  30. package/build/commands/message/mark-context-read.command.js +2 -2
  31. package/build/commands/message/send-context-message.command.js +2 -2
  32. package/build/commands/order/create-order.command.js +2 -2
  33. package/build/commands/order/update-order.command.js +2 -2
  34. package/build/commands/order/webshop/update-cart.command.js +1 -1
  35. package/build/commands/order-product/create-order-product.command.js +1 -1
  36. package/build/commands/order-product/group/update-group-order-product-order.command.js +1 -1
  37. package/build/commands/order-product/update-order-product.command.js +2 -2
  38. package/build/commands/order-product/webshop/create-order-product-for-client.command.js +1 -1
  39. package/build/commands/order-product/webshop/update-order-product-for-client.command.js +1 -1
  40. package/build/commands/package/reorder-packages.command.js +1 -1
  41. package/build/commands/pre-order/create-order-from-pre-order.command.js +1 -1
  42. package/build/commands/pre-order/group/analyze-copy-pre-orders.command.js +2 -2
  43. package/build/commands/pre-order/group/analyze-create-orders-from-pre-orders.command.js +2 -2
  44. package/build/commands/pre-order/group/analyze-create-pre-orders-from-standing-orders.command.js +2 -2
  45. package/build/commands/pre-order/group/group-copy-pre-orders-to-collection.command.js +2 -2
  46. package/build/commands/pre-order/group/group-create-orders-from-pre-orders.command.js +4 -4
  47. package/build/commands/pre-order/group/group-create-pre-orders-from-standing-orders.command.js +4 -4
  48. package/build/commands/pre-order-collection/match-images-for-collection.command.js +1 -1
  49. package/build/commands/pre-order-collection-item/multiplicity-option/reorder-pre-order-collection-item-multiplicity-options.command.js +1 -1
  50. package/build/commands/product/get-product-quantity-calculate.query.js +1 -1
  51. package/build/commands/product/group/update-group-product-update-batch.command.js +1 -1
  52. package/build/commands/product/multiplicity-option/reorder-product-multiplicity-options.command.js +1 -1
  53. package/build/commands/report/export-client-statement.query.js +1 -1
  54. package/build/commands/report/export-inventory-movement.query.js +1 -1
  55. package/build/commands/report/export-inventory-stock.query.js +1 -1
  56. package/build/commands/report/export-inventory-turnover.query.js +1 -1
  57. package/build/commands/report/get-report-group-by-position.query.js +1 -1
  58. package/build/commands/transaction/apply-prepayment-transaction.command.js +1 -1
  59. package/build/commands/type/delete-type.command.js +1 -1
  60. package/build/commands/type/get-type-by-uuid.query.js +1 -1
  61. package/build/commands/user/createUserByClientId.command.js +2 -2
  62. package/build/commands/user/update-user.command.js +1 -1
  63. package/build/enum/index.js +2 -0
  64. package/build/schemas/bank-payment/bank-payment.schema.js +4 -4
  65. package/build/schemas/branch/branch.schema.js +2 -2
  66. package/build/schemas/category/category.schema.js +1 -1
  67. package/build/schemas/category-alias/category-alias.schema.js +4 -4
  68. package/build/schemas/category-template/category-template.schema.js +1 -1
  69. package/build/schemas/client/client-debt.schema.js +1 -1
  70. package/build/schemas/client/client-individual-profile.schema.js +1 -1
  71. package/build/schemas/client/client-legal-profile.schema.js +1 -1
  72. package/build/schemas/client/client-marking.schema.js +1 -1
  73. package/build/schemas/client/client.schema.js +3 -3
  74. package/build/schemas/company/company.schema.js +1 -1
  75. package/build/schemas/consignment/consignment.schema.js +1 -1
  76. package/build/schemas/consignment-import-schema/consignment-import-schema.scheme.js +2 -2
  77. package/build/schemas/consignment-import-schema-relation/consignment-import-schema-relation.schema.js +2 -2
  78. package/build/schemas/delivery-route/delivery-route.schema.js +3 -3
  79. package/build/schemas/discount-rules/discount-rules.schema.js +4 -4
  80. package/build/schemas/domain/domain.schema.js +1 -1
  81. package/build/schemas/message/client-inbox-item.schema.js +1 -1
  82. package/build/schemas/message/context-inbox.schema.js +3 -3
  83. package/build/schemas/message/context-message.schema.js +5 -5
  84. package/build/schemas/money-account/money-account.schema.js +1 -1
  85. package/build/schemas/order/order.schema.js +5 -5
  86. package/build/schemas/order-delivery/order-delivery.schema.js +1 -1
  87. package/build/schemas/order-product/order-product-multiplicity-optiom.schema.js +1 -1
  88. package/build/schemas/order-product/order-product.schema.js +5 -5
  89. package/build/schemas/pre-order-product/pre-order-product.schema.js +3 -3
  90. package/build/schemas/product/product-multiplicity-option.schema.js +1 -1
  91. package/build/schemas/product/product.schema.js +4 -4
  92. package/build/schemas/product-configuration/product-configuration.schema.js +2 -2
  93. package/build/schemas/transaction/transaction.schema.js +2 -2
  94. package/build/schemas/type/type.schema.js +2 -2
  95. package/build/schemas/type/typeList.schema.js +1 -1
  96. package/build/schemas/user/user.schema.js +1 -1
  97. package/build/schemas/write-off/write-off-image.schema.js +2 -2
  98. package/build/schemas/write-off/write-off.schema.js +1 -1
  99. package/commands/auth/login-user.command.ts +3 -3
  100. package/commands/auth/register-user.command.ts +1 -1
  101. package/commands/auth/reset-password-by-security-code.command.ts +1 -1
  102. package/commands/auth/reset-password-by-token.command.ts +1 -1
  103. package/commands/auth/restore-password-by-security-code.command.ts +1 -1
  104. package/commands/branch/delete-branch.command.ts +1 -1
  105. package/commands/category/delete-category.command.ts +1 -1
  106. package/commands/category/get-category-by-uuid.query.ts +1 -1
  107. package/commands/category/get-category-list.query.ts +1 -1
  108. package/commands/category/update-category-command.ts +1 -1
  109. package/commands/category-alias/delete-category-alias.command.ts +1 -1
  110. package/commands/category-alias/get-category-alias-by-uuid.query.ts +1 -1
  111. package/commands/category-alias/update-category-alias.command.ts +1 -1
  112. package/commands/client/create-client.command.ts +1 -1
  113. package/commands/client/delete-client.command.ts +1 -1
  114. package/commands/client/marking/get-client-marking-by-client-list.command.ts +2 -2
  115. package/commands/client/profile/get-client-individual-profile.query.ts +1 -1
  116. package/commands/client/update-client.command.ts +2 -2
  117. package/commands/client/webshop/register-client-webshop.command.ts +1 -1
  118. package/commands/client/webshop/update-client-for-client.command.ts +1 -1
  119. package/commands/company/deleteCompany.command.ts +1 -1
  120. package/commands/company/getCompany.query.ts +1 -1
  121. package/commands/consignment/delete-consignment.command.ts +1 -1
  122. package/commands/delivery-route/attach-order-list-to-delivery-route.command.ts +1 -1
  123. package/commands/delivery-route/detach-order-list-to-delivery-route.command.ts +1 -1
  124. package/commands/discount-rules/get-discount-rules-all.query.ts +2 -2
  125. package/commands/message/get-context-unread-count.query.ts +2 -2
  126. package/commands/message/get-contexts-with-unread.query.ts +1 -1
  127. package/commands/message/list-context-messages.query.ts +4 -4
  128. package/commands/message/mark-context-read.command.ts +2 -2
  129. package/commands/message/send-context-message.command.ts +2 -2
  130. package/commands/order/create-order.command.ts +2 -2
  131. package/commands/order/update-order.command.ts +2 -2
  132. package/commands/order/webshop/update-cart.command.ts +1 -1
  133. package/commands/order-product/create-order-product.command.ts +1 -1
  134. package/commands/order-product/group/update-group-order-product-order.command.ts +1 -1
  135. package/commands/order-product/update-order-product.command.ts +2 -2
  136. package/commands/order-product/webshop/create-order-product-for-client.command.ts +1 -1
  137. package/commands/order-product/webshop/update-order-product-for-client.command.ts +1 -1
  138. package/commands/package/reorder-packages.command.ts +1 -1
  139. package/commands/pre-order/create-order-from-pre-order.command.ts +1 -1
  140. package/commands/pre-order/group/analyze-copy-pre-orders.command.ts +2 -2
  141. package/commands/pre-order/group/analyze-create-orders-from-pre-orders.command.ts +2 -2
  142. package/commands/pre-order/group/analyze-create-pre-orders-from-standing-orders.command.ts +2 -2
  143. package/commands/pre-order/group/group-copy-pre-orders-to-collection.command.ts +2 -2
  144. package/commands/pre-order/group/group-create-orders-from-pre-orders.command.ts +4 -4
  145. package/commands/pre-order/group/group-create-pre-orders-from-standing-orders.command.ts +4 -4
  146. package/commands/pre-order-collection/match-images-for-collection.command.ts +1 -1
  147. package/commands/pre-order-collection-item/multiplicity-option/reorder-pre-order-collection-item-multiplicity-options.command.ts +1 -1
  148. package/commands/product/get-product-quantity-calculate.query.ts +1 -1
  149. package/commands/product/group/update-group-product-update-batch.command.ts +1 -1
  150. package/commands/product/multiplicity-option/reorder-product-multiplicity-options.command.ts +1 -1
  151. package/commands/report/export-client-statement.query.ts +1 -1
  152. package/commands/report/export-inventory-movement.query.ts +1 -1
  153. package/commands/report/export-inventory-stock.query.ts +1 -1
  154. package/commands/report/export-inventory-turnover.query.ts +1 -1
  155. package/commands/report/get-report-group-by-position.query.ts +1 -1
  156. package/commands/transaction/apply-prepayment-transaction.command.ts +1 -1
  157. package/commands/type/delete-type.command.ts +1 -1
  158. package/commands/type/get-type-by-uuid.query.ts +1 -1
  159. package/commands/user/createUserByClientId.command.ts +2 -2
  160. package/commands/user/update-user.command.ts +1 -1
  161. package/enum/index.ts +2 -0
  162. package/package.json +1 -1
  163. package/schemas/bank-payment/bank-payment.schema.ts +4 -4
  164. package/schemas/branch/branch.schema.ts +2 -2
  165. package/schemas/category/category.schema.ts +1 -1
  166. package/schemas/category-alias/category-alias.schema.ts +4 -4
  167. package/schemas/category-template/category-template.schema.ts +1 -1
  168. package/schemas/client/client-debt.schema.ts +1 -1
  169. package/schemas/client/client-individual-profile.schema.ts +1 -1
  170. package/schemas/client/client-legal-profile.schema.ts +1 -1
  171. package/schemas/client/client-marking.schema.ts +1 -1
  172. package/schemas/client/client.schema.ts +3 -3
  173. package/schemas/company/company.schema.ts +1 -1
  174. package/schemas/consignment/consignment.schema.ts +1 -1
  175. package/schemas/consignment-import-schema/consignment-import-schema.scheme.ts +2 -2
  176. package/schemas/consignment-import-schema-relation/consignment-import-schema-relation.schema.ts +2 -2
  177. package/schemas/delivery-route/delivery-route.schema.ts +3 -3
  178. package/schemas/discount-rules/discount-rules.schema.ts +4 -4
  179. package/schemas/domain/domain.schema.ts +1 -1
  180. package/schemas/message/client-inbox-item.schema.ts +1 -1
  181. package/schemas/message/context-inbox.schema.ts +3 -3
  182. package/schemas/message/context-message.schema.ts +5 -5
  183. package/schemas/money-account/money-account.schema.ts +1 -1
  184. package/schemas/order/order.schema.ts +5 -5
  185. package/schemas/order-delivery/order-delivery.schema.ts +1 -1
  186. package/schemas/order-product/order-product-multiplicity-optiom.schema.ts +1 -1
  187. package/schemas/order-product/order-product.schema.ts +5 -5
  188. package/schemas/pre-order-product/pre-order-product.schema.ts +3 -3
  189. package/schemas/product/product-multiplicity-option.schema.ts +1 -1
  190. package/schemas/product/product.schema.ts +4 -4
  191. package/schemas/product-configuration/product-configuration.schema.ts +2 -2
  192. package/schemas/transaction/transaction.schema.ts +2 -2
  193. package/schemas/type/type.schema.ts +2 -2
  194. package/schemas/type/typeList.schema.ts +1 -1
  195. package/schemas/user/user.schema.ts +1 -1
  196. package/schemas/write-off/write-off-image.schema.ts +2 -2
  197. package/schemas/write-off/write-off.schema.ts +1 -1
@@ -4,7 +4,7 @@ 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.string().uuid(),
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(),
@@ -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.string().uuid(),
7
- writeOffUUID: zod_1.z.string().uuid(),
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.string().uuid(),
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(),
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
2
 
3
3
  const LoginUserRequestSchema = z.object({
4
- email: z.string().email().toLowerCase().optional(),
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.string().uuid(),
14
- email: z.string().email().nullable(),
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
  const RegisterUserRequestSchema = z.object({
4
- email: z.string().email().toLowerCase(),
4
+ email: z.email().toLowerCase(),
5
5
  phone: z.string(),
6
6
  name: z.string(),
7
7
  password: z.string(),
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
2
 
3
3
  export const ResetPasswordBySecurityCodeRequestSchema = z.object({
4
- email: z.string().email().toLowerCase().optional(),
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.string().email().toLowerCase().optional(),
5
+ email: z.email().toLowerCase().optional(),
6
6
  phone: z.string().optional(),
7
7
  restoreToken: z.string(),
8
8
  password: z.string(),
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
2
 
3
3
  export const RestorePasswordBySecurityCodeRequestSchema = z.object({
4
- email: z.string().email().toLowerCase().optional(),
4
+ email: z.email().toLowerCase().optional(),
5
5
  phone: z.string().optional(),
6
6
  });
7
7
 
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
2
 
3
3
  const DeleteBranchRequestSchema = z.object({
4
- uuid: z.string().uuid(),
4
+ uuid: z.uuid(),
5
5
  });
6
6
 
7
7
  const DeleteDataResponseSchema = z.object({
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
2
 
3
3
  const DeleteCategoryRequestSchema = z.object({
4
- uuid: z.string().uuid(),
4
+ uuid: z.uuid(),
5
5
  });
6
6
 
7
7
  const DeleteCategoryDataResponseSchema = z.object({
@@ -2,7 +2,7 @@ import { z } from 'zod';
2
2
  import { CategoryExtendedSchema } from '../../schemas/category/category.schema';
3
3
 
4
4
  const GetCategoryByUUIDRequestSchema = z.object({
5
- uuid: z.string().uuid(),
5
+ uuid: z.uuid(),
6
6
  });
7
7
 
8
8
  const GetCategoryByUUIDResponseSchema = z.object({
@@ -10,7 +10,7 @@ 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().uuid().optional(),
13
+ typeUUID: z.uuid().optional(),
14
14
  statuses: z.array(z.nativeEnum(CategoryStatusEnum)).default([]),
15
15
  orderByType: z.nativeEnum(OrderByEnum).default(OrderByEnum.ASC),
16
16
  });
@@ -4,7 +4,7 @@ import { CategoryStatusEnum } from '../../enum';
4
4
 
5
5
  const UpdateCategoryRequestSchema = z.object({
6
6
  name: z.string(),
7
- typeUUID: z.string().uuid(),
7
+ typeUUID: z.string(),
8
8
  multiplicity: z.number(),
9
9
  isSizeSeparate: z.coerce.boolean(),
10
10
  isSaveCategoryName: z.coerce.boolean(),
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
2
 
3
3
  const DeleteAliasRequestSchema = z.object({
4
- uuid: z.string().uuid(),
4
+ uuid: z.uuid(),
5
5
  });
6
6
 
7
7
  const DeleteAliasDataResponseSchema = 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.string().uuid(),
5
+ uuid: z.uuid(),
6
6
  });
7
7
 
8
8
  const GetAliasByUUIDResponseSchema = z.object({
@@ -3,7 +3,7 @@ import { CategoryAliasSchema } from '../../schemas/category-alias/category-alias
3
3
 
4
4
  const UpdateAliasRequestSchema = z.object({
5
5
  name: z.string(),
6
- categoryUUID: z.string().uuid(),
6
+ categoryUUID: z.uuid(),
7
7
  });
8
8
 
9
9
  const UpdateAliasResponseSchema = z.object({
@@ -7,7 +7,7 @@ const CreateClientRequestSchema = z.object({
7
7
  name: z.string(),
8
8
  contactName: z.string().nullable(),
9
9
  phone: z.string().nullable(),
10
- email: z.string().email().toLowerCase().nullable(),
10
+ email: z.email().toLowerCase().nullable(),
11
11
  type: z.nativeEnum(ClientTypeEnum),
12
12
  status: z.nativeEnum(ClientStatusEnum),
13
13
  isCommon: z.coerce.boolean(),
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
2
 
3
3
  const DeleteClientRequestSchema = z.object({
4
- uuid: z.string().uuid(),
4
+ uuid: z.uuid(),
5
5
  });
6
6
 
7
7
  const DeleteDataResponseSchema = z.object({
@@ -1,12 +1,12 @@
1
1
  import { z } from 'zod';
2
2
 
3
3
  const GetClientMarkingByClientListRequestSchema = z.object({
4
- clientUUIDList: z.array(z.string().uuid()).min(1),
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.string().uuid(), z.array(z.string())),
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.string().uuid(),
5
+ uuid: z.uuid(),
6
6
  });
7
7
 
8
8
  const GetClientIndividualProfileResponseSchema = z.object({
@@ -7,7 +7,7 @@ const UpdateClientRequestSchema = z.object({
7
7
  name: z.string(),
8
8
  contactName: z.string().nullable(),
9
9
  phone: z.string().nullable(),
10
- email: z.string().email().toLowerCase().nullable(),
10
+ email: z.email().toLowerCase().nullable(),
11
11
  status: z.nativeEnum(ClientStatusEnum),
12
12
  isCommon: z.coerce.boolean(),
13
13
  type: z.nativeEnum(ClientTypeEnum),
@@ -17,7 +17,7 @@ const UpdateClientRequestSchema = z.object({
17
17
  city: z.string().nullable().optional(),
18
18
  code: z.string().nullable().optional(),
19
19
  group: z.string().nullable().optional(),
20
- responsibleUserUUID: z.string().uuid().nullable().optional(),
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,7 +7,7 @@ const RegisterClientWebshopRequestSchema = z.object({
7
7
  password: z.string(),
8
8
  contactName: z.string().nullable(),
9
9
  phone: z.string(),
10
- email: z.string().email().toLowerCase(),
10
+ email: z.email().toLowerCase(),
11
11
  type: z.nativeEnum(ClientTypeEnum),
12
12
  });
13
13
 
@@ -5,7 +5,7 @@ const UpdateClientForClientRequestSchema = z.object({
5
5
  name: z.string(),
6
6
  contactName: z.string().nullable(),
7
7
  phone: z.string(),
8
- email: z.string().email().toLowerCase(),
8
+ email: z.email().toLowerCase(),
9
9
  alwaysRequiresDelivery: z.boolean(),
10
10
  });
11
11
 
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
2
 
3
3
  const DeleteCompanyRequestSchema = z.object({
4
- uuid: z.string().uuid(),
4
+ uuid: z.uuid(),
5
5
  });
6
6
 
7
7
  const DeleteCompanyDataResponseSchema = z.object({
@@ -2,7 +2,7 @@ import { z } from 'zod';
2
2
  import { CompanySchema } from '../../schemas';
3
3
 
4
4
  const GetCompanyRequestSchema = z.object({
5
- uuid: z.string().uuid(),
5
+ uuid: z.uuid(),
6
6
  });
7
7
 
8
8
  const GetCompanyResponseSchema = z.object({
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
2
 
3
3
  const DeleteConsignmentRequestSchema = z.object({
4
- uuid: z.string().uuid(),
4
+ uuid: z.uuid(),
5
5
  });
6
6
 
7
7
  const DeleteConsignmentResponseSchema = z.object({
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
2
 
3
3
  const AttachOrderListToDeliveryRouteRequestSchema = z.object({
4
- orderUUIDList: z.array(z.string().uuid()).min(1),
4
+ orderUUIDList: z.array(z.uuid()).min(1),
5
5
  });
6
6
 
7
7
  const AttachOrderListToDeliveryRouteResponseSchema = z.object({
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
2
 
3
3
  const DetachOrderListToDeliveryRouteRequestSchema = z.object({
4
- orderUUIDList: z.array(z.string().uuid()).min(1),
4
+ orderUUIDList: z.array(z.uuid()).min(1),
5
5
  });
6
6
 
7
7
  const DetachOrderListToDeliveryRouteResponseSchema = z.object({
@@ -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.string().uuid().array().optional(),
5
+ productUUIDList: z.uuid().array().optional(),
6
6
  clientUUID: z.preprocess(val => {
7
7
  return val === 'null' ? null : val;
8
- }, z.string().uuid().nullable().optional()),
8
+ }, z.uuid().nullable().optional()),
9
9
  });
10
10
 
11
11
  const GetDiscountRulesAllResponseSchema = z.object({
@@ -3,8 +3,8 @@ import { ContextMessageContextTypeEnum } from '../../enum/context-message-contex
3
3
 
4
4
  const GetContextUnreadCountRequestSchema = z.object({
5
5
  contextType: z.nativeEnum(ContextMessageContextTypeEnum),
6
- contextUUID: z.string().uuid(),
7
- subjectUUID: z.string().uuid().optional(),
6
+ contextUUID: z.uuid(),
7
+ subjectUUID: z.uuid().optional(),
8
8
  });
9
9
 
10
10
  const GetContextUnreadCountResponseSchema = z.object({
@@ -4,7 +4,7 @@ import { ContextInboxListSchema } from '../../schemas/message/context-inbox.sche
4
4
 
5
5
  const GetContextsWithUnreadRequestSchema = z.object({
6
6
  contextType: z.nativeEnum(ContextMessageContextTypeEnum).optional(),
7
- clientUUID: z.string().uuid().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),
@@ -4,11 +4,11 @@ import { ContextMessageContextTypeEnum } from '../../enum/context-message-contex
4
4
 
5
5
  const ListContextMessagesRequestSchema = z.object({
6
6
  contextType: z.nativeEnum(ContextMessageContextTypeEnum),
7
- contextUUID: z.string().uuid(),
8
- subjectUUID: z.string().uuid().optional(),
7
+ contextUUID: z.uuid(),
8
+ subjectUUID: z.uuid().optional(),
9
9
  limit: z.coerce.number().optional().default(50),
10
- before: z.string().datetime().optional(),
11
- after: z.string().datetime().optional(),
10
+ before: z.string().optional(),
11
+ after: z.string().optional(),
12
12
  });
13
13
 
14
14
  const ListContextMessagesResponseSchema = z.object({
@@ -3,8 +3,8 @@ import { ContextMessageContextTypeEnum } from '../../enum/context-message-contex
3
3
 
4
4
  const MarkContextReadRequestSchema = z.object({
5
5
  contextType: z.nativeEnum(ContextMessageContextTypeEnum),
6
- contextUUID: z.string().uuid(),
7
- subjectUUID: z.string().uuid().optional(),
6
+ contextUUID: z.uuid(),
7
+ subjectUUID: z.uuid().optional(),
8
8
  });
9
9
 
10
10
  const MarkContextReadResponseSchema = z.object({
@@ -4,8 +4,8 @@ import { ContextMessageContextTypeEnum } from '../../enum/context-message-contex
4
4
 
5
5
  const SendContextMessageRequestSchema = z.object({
6
6
  contextType: z.nativeEnum(ContextMessageContextTypeEnum),
7
- contextUUID: z.string().uuid(),
8
- subjectUUID: z.string().uuid().optional(),
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,8 +3,8 @@ import { OrderTypeEnum } from '../../enum';
3
3
  import { OrderDeliverySchema, OrderSchema } from '../../schemas';
4
4
 
5
5
  const CreateOrderRequestSchema = z.object({
6
- clientUUID: z.string().uuid(),
7
- branchUUID: z.string().uuid().nullable(),
6
+ clientUUID: z.uuid(),
7
+ branchUUID: z.uuid().nullable(),
8
8
  deliveryCost: z.number(),
9
9
  deliveryVat: z.number().nullable(),
10
10
  type: z.nativeEnum(OrderTypeEnum),
@@ -3,8 +3,8 @@ import { OrderStatusEnum, OrderTypeEnum } from '../../enum';
3
3
  import { OrderSchema } from '../../schemas';
4
4
 
5
5
  const UpdateOrderRequestSchema = z.object({
6
- clientUUID: z.string().uuid(),
7
- branchUUID: z.string().uuid().nullable(),
6
+ clientUUID: z.uuid(),
7
+ branchUUID: z.uuid().nullable(),
8
8
  deliveryCost: z.coerce.number(),
9
9
  type: z.nativeEnum(OrderTypeEnum),
10
10
  comment: z.string().nullable(),
@@ -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.string().uuid().optional().nullable().default(null),
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),
@@ -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.string().uuid().nullable().optional(),
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.string().uuid(),
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.string().uuid(),
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.string().uuid().nullable().optional(),
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.string().uuid().optional().nullable(),
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.string().uuid().nullable().optional(),
7
+ optionUUID: z.uuid().nullable().optional(),
8
8
  });
9
9
 
10
10
  const UpdateOrderProductForClientResponseSchema = z.object({
@@ -4,7 +4,7 @@ const ReorderPackagesRequestSchema = z.object({
4
4
  items: z
5
5
  .array(
6
6
  z.object({
7
- uuid: z.string().uuid(),
7
+ uuid: z.uuid(),
8
8
  rank: z.coerce.number().int().min(0),
9
9
  }),
10
10
  )
@@ -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.string().uuid().array(),
5
+ consignmentUUIDList: z.uuid().array(),
6
6
  });
7
7
 
8
8
  const CreateOrderFromPreOrderResponseSchema = z.object({
@@ -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.string().uuid()),
6
- targetPreOrderCollectionUUID: z.string().uuid(),
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.string().uuid().array(),
11
- consignmentUUIDs: z.string().uuid().array(),
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.string().uuid().array(),
11
- preOrderCollectionUUIDs: z.string().uuid().array(),
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.string().uuid()),
6
- targetPreOrderCollectionUUID: z.string().uuid(),
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.string().uuid().array(),
6
- consignmentUUIDs: z.string().uuid().array(),
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.string().uuid(),
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.string().uuid(),
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.string().uuid().array(),
6
- preOrderCollectionUUIDs: z.string().uuid().array(),
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.string().uuid(),
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.string().uuid(),
22
+ standingOrderUUID: z.uuid(),
23
23
  error: z.object({
24
24
  code: z.string(),
25
25
  message: z.string(),
@@ -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.string().uuid()).optional(),
5
+ uuidList: z.array(z.uuid()).optional(),
6
6
  });
7
7
 
8
8
  const MatchImagesResponseSchema = z.object({
@@ -4,7 +4,7 @@ const ReorderPreOrderCollectionItemMultiplicityOptionsRequestSchema = z.object({
4
4
  items: z
5
5
  .array(
6
6
  z.object({
7
- optionUUID: z.string().uuid(),
7
+ optionUUID: z.uuid(),
8
8
  rank: z.coerce.number().int().min(0),
9
9
  }),
10
10
  )
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
2
 
3
3
  const GetProductQuantityCalculateRequestSchema = z.object({
4
- productUUIDList: z.string().uuid().array(),
4
+ productUUIDList: z.uuid().array(),
5
5
  });
6
6
 
7
7
  const GetProductQuantityCalculateResponseSchema = z.object({