@lyxa.ai/marketing 1.0.0

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 (192) hide show
  1. package/dist/lib/index.js +66 -0
  2. package/dist/types/index.d.ts +8229 -0
  3. package/dist/types/index.d.ts.map +1 -0
  4. package/dist/types/modules/coupon/routers/coupon.router.d.ts +4676 -0
  5. package/dist/types/modules/coupon/routers/coupon.router.d.ts.map +1 -0
  6. package/dist/types/modules/coupon/routers/index.d.ts +2 -0
  7. package/dist/types/modules/coupon/routers/index.d.ts.map +1 -0
  8. package/dist/types/modules/coupon/services/coupon.service.d.ts +73 -0
  9. package/dist/types/modules/coupon/services/coupon.service.d.ts.map +1 -0
  10. package/dist/types/modules/coupon/services/custom-coupon.service.d.ts +20 -0
  11. package/dist/types/modules/coupon/services/custom-coupon.service.d.ts.map +1 -0
  12. package/dist/types/modules/coupon/services/global-coupon.service.d.ts +20 -0
  13. package/dist/types/modules/coupon/services/global-coupon.service.d.ts.map +1 -0
  14. package/dist/types/modules/coupon/services/index.d.ts +8 -0
  15. package/dist/types/modules/coupon/services/index.d.ts.map +1 -0
  16. package/dist/types/modules/coupon/services/individual-store-coupon.service.d.ts +20 -0
  17. package/dist/types/modules/coupon/services/individual-store-coupon.service.d.ts.map +1 -0
  18. package/dist/types/modules/coupon/services/individual-user-coupon.service.d.ts +20 -0
  19. package/dist/types/modules/coupon/services/individual-user-coupon.service.d.ts.map +1 -0
  20. package/dist/types/modules/coupon/services/referral-code-coupon.service.d.ts +20 -0
  21. package/dist/types/modules/coupon/services/referral-code-coupon.service.d.ts.map +1 -0
  22. package/dist/types/modules/coupon/services/referral-reward-coupon.service.d.ts +20 -0
  23. package/dist/types/modules/coupon/services/referral-reward-coupon.service.d.ts.map +1 -0
  24. package/dist/types/modules/coupon/transformers/coupon.transformer.d.ts +171 -0
  25. package/dist/types/modules/coupon/transformers/coupon.transformer.d.ts.map +1 -0
  26. package/dist/types/modules/coupon/transformers/index.d.ts +2 -0
  27. package/dist/types/modules/coupon/transformers/index.d.ts.map +1 -0
  28. package/dist/types/modules/coupon/validations/all-coupons.validation.d.ts +3161 -0
  29. package/dist/types/modules/coupon/validations/all-coupons.validation.d.ts.map +1 -0
  30. package/dist/types/modules/coupon/validations/coupon.validation.d.ts +311 -0
  31. package/dist/types/modules/coupon/validations/coupon.validation.d.ts.map +1 -0
  32. package/dist/types/modules/coupon/validations/custom-coupon.validation.d.ts +294 -0
  33. package/dist/types/modules/coupon/validations/custom-coupon.validation.d.ts.map +1 -0
  34. package/dist/types/modules/coupon/validations/global-coupon.validation.d.ts +267 -0
  35. package/dist/types/modules/coupon/validations/global-coupon.validation.d.ts.map +1 -0
  36. package/dist/types/modules/coupon/validations/index.d.ts +9 -0
  37. package/dist/types/modules/coupon/validations/index.d.ts.map +1 -0
  38. package/dist/types/modules/coupon/validations/individual-store-coupon.validation.d.ts +294 -0
  39. package/dist/types/modules/coupon/validations/individual-store-coupon.validation.d.ts.map +1 -0
  40. package/dist/types/modules/coupon/validations/individual-user-coupon.validation.d.ts +294 -0
  41. package/dist/types/modules/coupon/validations/individual-user-coupon.validation.d.ts.map +1 -0
  42. package/dist/types/modules/coupon/validations/referral-code-coupon.validation.d.ts +75 -0
  43. package/dist/types/modules/coupon/validations/referral-code-coupon.validation.d.ts.map +1 -0
  44. package/dist/types/modules/coupon/validations/referral-reward-coupon.validation.d.ts +294 -0
  45. package/dist/types/modules/coupon/validations/referral-reward-coupon.validation.d.ts.map +1 -0
  46. package/dist/types/modules/deal-setting/routers/deal-setting.router.d.ts +516 -0
  47. package/dist/types/modules/deal-setting/routers/deal-setting.router.d.ts.map +1 -0
  48. package/dist/types/modules/deal-setting/routers/index.d.ts +2 -0
  49. package/dist/types/modules/deal-setting/routers/index.d.ts.map +1 -0
  50. package/dist/types/modules/deal-setting/services/deal-setting.service.d.ts +37 -0
  51. package/dist/types/modules/deal-setting/services/deal-setting.service.d.ts.map +1 -0
  52. package/dist/types/modules/deal-setting/services/index.d.ts +2 -0
  53. package/dist/types/modules/deal-setting/services/index.d.ts.map +1 -0
  54. package/dist/types/modules/deal-setting/transformers/deal-setting.transformer.d.ts +11 -0
  55. package/dist/types/modules/deal-setting/transformers/deal-setting.transformer.d.ts.map +1 -0
  56. package/dist/types/modules/deal-setting/transformers/index.d.ts +2 -0
  57. package/dist/types/modules/deal-setting/transformers/index.d.ts.map +1 -0
  58. package/dist/types/modules/deal-setting/validations/deal-setting.validation.d.ts +236 -0
  59. package/dist/types/modules/deal-setting/validations/deal-setting.validation.d.ts.map +1 -0
  60. package/dist/types/modules/deal-setting/validations/index.d.ts +2 -0
  61. package/dist/types/modules/deal-setting/validations/index.d.ts.map +1 -0
  62. package/dist/types/modules/featured-setting/routers/featured-setting.router.d.ts +692 -0
  63. package/dist/types/modules/featured-setting/routers/featured-setting.router.d.ts.map +1 -0
  64. package/dist/types/modules/featured-setting/routers/index.d.ts +2 -0
  65. package/dist/types/modules/featured-setting/routers/index.d.ts.map +1 -0
  66. package/dist/types/modules/featured-setting/services/featured-setting.service.d.ts +37 -0
  67. package/dist/types/modules/featured-setting/services/featured-setting.service.d.ts.map +1 -0
  68. package/dist/types/modules/featured-setting/services/index.d.ts +2 -0
  69. package/dist/types/modules/featured-setting/services/index.d.ts.map +1 -0
  70. package/dist/types/modules/featured-setting/transformers/featured-setting.transformer.d.ts +19 -0
  71. package/dist/types/modules/featured-setting/transformers/featured-setting.transformer.d.ts.map +1 -0
  72. package/dist/types/modules/featured-setting/transformers/index.d.ts +2 -0
  73. package/dist/types/modules/featured-setting/transformers/index.d.ts.map +1 -0
  74. package/dist/types/modules/featured-setting/validations/featured-setting.validation.d.ts +372 -0
  75. package/dist/types/modules/featured-setting/validations/featured-setting.validation.d.ts.map +1 -0
  76. package/dist/types/modules/featured-setting/validations/index.d.ts +2 -0
  77. package/dist/types/modules/featured-setting/validations/index.d.ts.map +1 -0
  78. package/dist/types/modules/loyalty-point-setting/routers/index.d.ts +2 -0
  79. package/dist/types/modules/loyalty-point-setting/routers/index.d.ts.map +1 -0
  80. package/dist/types/modules/loyalty-point-setting/routers/loyalty-point-setting.router.d.ts +822 -0
  81. package/dist/types/modules/loyalty-point-setting/routers/loyalty-point-setting.router.d.ts.map +1 -0
  82. package/dist/types/modules/loyalty-point-setting/services/index.d.ts +3 -0
  83. package/dist/types/modules/loyalty-point-setting/services/index.d.ts.map +1 -0
  84. package/dist/types/modules/loyalty-point-setting/services/loyalty-point-category.service.d.ts +37 -0
  85. package/dist/types/modules/loyalty-point-setting/services/loyalty-point-category.service.d.ts.map +1 -0
  86. package/dist/types/modules/loyalty-point-setting/services/loyalty-point-setting.service.d.ts +32 -0
  87. package/dist/types/modules/loyalty-point-setting/services/loyalty-point-setting.service.d.ts.map +1 -0
  88. package/dist/types/modules/loyalty-point-setting/transformers/index.d.ts +3 -0
  89. package/dist/types/modules/loyalty-point-setting/transformers/index.d.ts.map +1 -0
  90. package/dist/types/modules/loyalty-point-setting/transformers/loyalty-point-category.transformer.d.ts +8 -0
  91. package/dist/types/modules/loyalty-point-setting/transformers/loyalty-point-category.transformer.d.ts.map +1 -0
  92. package/dist/types/modules/loyalty-point-setting/transformers/loyalty-point-setting.transformer.d.ts +9 -0
  93. package/dist/types/modules/loyalty-point-setting/transformers/loyalty-point-setting.transformer.d.ts.map +1 -0
  94. package/dist/types/modules/loyalty-point-setting/validations/index.d.ts +3 -0
  95. package/dist/types/modules/loyalty-point-setting/validations/index.d.ts.map +1 -0
  96. package/dist/types/modules/loyalty-point-setting/validations/loyalty-point-category.validation.d.ts +179 -0
  97. package/dist/types/modules/loyalty-point-setting/validations/loyalty-point-category.validation.d.ts.map +1 -0
  98. package/dist/types/modules/loyalty-point-setting/validations/loyalty-point-setting.validation.d.ts +197 -0
  99. package/dist/types/modules/loyalty-point-setting/validations/loyalty-point-setting.validation.d.ts.map +1 -0
  100. package/dist/types/modules/marketing/routers/index.d.ts +2 -0
  101. package/dist/types/modules/marketing/routers/index.d.ts.map +1 -0
  102. package/dist/types/modules/marketing/routers/marketing.router.d.ts +296 -0
  103. package/dist/types/modules/marketing/routers/marketing.router.d.ts.map +1 -0
  104. package/dist/types/modules/marketing/services/buy1-get1-marketing.service.d.ts +21 -0
  105. package/dist/types/modules/marketing/services/buy1-get1-marketing.service.d.ts.map +1 -0
  106. package/dist/types/modules/marketing/services/discount-marketing.service.d.ts +21 -0
  107. package/dist/types/modules/marketing/services/discount-marketing.service.d.ts.map +1 -0
  108. package/dist/types/modules/marketing/services/featured-marketing.service.d.ts +20 -0
  109. package/dist/types/modules/marketing/services/featured-marketing.service.d.ts.map +1 -0
  110. package/dist/types/modules/marketing/services/free-delivery-marketing.service.d.ts +21 -0
  111. package/dist/types/modules/marketing/services/free-delivery-marketing.service.d.ts.map +1 -0
  112. package/dist/types/modules/marketing/services/index.d.ts +9 -0
  113. package/dist/types/modules/marketing/services/index.d.ts.map +1 -0
  114. package/dist/types/modules/marketing/services/loyalty-point-marketing.service.d.ts +21 -0
  115. package/dist/types/modules/marketing/services/loyalty-point-marketing.service.d.ts.map +1 -0
  116. package/dist/types/modules/marketing/services/marketing.service.d.ts +37 -0
  117. package/dist/types/modules/marketing/services/marketing.service.d.ts.map +1 -0
  118. package/dist/types/modules/marketing/services/product-marketing.service.d.ts +42 -0
  119. package/dist/types/modules/marketing/services/product-marketing.service.d.ts.map +1 -0
  120. package/dist/types/modules/marketing/services/punch-marketing.service.d.ts +20 -0
  121. package/dist/types/modules/marketing/services/punch-marketing.service.d.ts.map +1 -0
  122. package/dist/types/modules/marketing/transformers/buy1-get1-marketing.transformer.d.ts +45 -0
  123. package/dist/types/modules/marketing/transformers/buy1-get1-marketing.transformer.d.ts.map +1 -0
  124. package/dist/types/modules/marketing/transformers/discount-marketing.transformer.d.ts +48 -0
  125. package/dist/types/modules/marketing/transformers/discount-marketing.transformer.d.ts.map +1 -0
  126. package/dist/types/modules/marketing/transformers/featured-marketing.transformer.d.ts +21 -0
  127. package/dist/types/modules/marketing/transformers/featured-marketing.transformer.d.ts.map +1 -0
  128. package/dist/types/modules/marketing/transformers/free-delivery-marketing.transformer.d.ts +21 -0
  129. package/dist/types/modules/marketing/transformers/free-delivery-marketing.transformer.d.ts.map +1 -0
  130. package/dist/types/modules/marketing/transformers/index.d.ts +9 -0
  131. package/dist/types/modules/marketing/transformers/index.d.ts.map +1 -0
  132. package/dist/types/modules/marketing/transformers/loyalty-point-marketing.transformer.d.ts +47 -0
  133. package/dist/types/modules/marketing/transformers/loyalty-point-marketing.transformer.d.ts.map +1 -0
  134. package/dist/types/modules/marketing/transformers/marketing.transformer.d.ts +3 -0
  135. package/dist/types/modules/marketing/transformers/marketing.transformer.d.ts.map +1 -0
  136. package/dist/types/modules/marketing/transformers/product-marketing.transformer.d.ts +11 -0
  137. package/dist/types/modules/marketing/transformers/product-marketing.transformer.d.ts.map +1 -0
  138. package/dist/types/modules/marketing/transformers/punch-marketing.transformer.d.ts +26 -0
  139. package/dist/types/modules/marketing/transformers/punch-marketing.transformer.d.ts.map +1 -0
  140. package/dist/types/modules/marketing/validations/all-marketings.validation.d.ts +52 -0
  141. package/dist/types/modules/marketing/validations/all-marketings.validation.d.ts.map +1 -0
  142. package/dist/types/modules/marketing/validations/buy1-get1-marketing.validation.d.ts +359 -0
  143. package/dist/types/modules/marketing/validations/buy1-get1-marketing.validation.d.ts.map +1 -0
  144. package/dist/types/modules/marketing/validations/discount-marketing.validation.d.ts +527 -0
  145. package/dist/types/modules/marketing/validations/discount-marketing.validation.d.ts.map +1 -0
  146. package/dist/types/modules/marketing/validations/featured-marketing.validation.d.ts +233 -0
  147. package/dist/types/modules/marketing/validations/featured-marketing.validation.d.ts.map +1 -0
  148. package/dist/types/modules/marketing/validations/free-delivery-marketing.validation.d.ts +171 -0
  149. package/dist/types/modules/marketing/validations/free-delivery-marketing.validation.d.ts.map +1 -0
  150. package/dist/types/modules/marketing/validations/index.d.ts +10 -0
  151. package/dist/types/modules/marketing/validations/index.d.ts.map +1 -0
  152. package/dist/types/modules/marketing/validations/loyalty-point-marketing.validation.d.ts +513 -0
  153. package/dist/types/modules/marketing/validations/loyalty-point-marketing.validation.d.ts.map +1 -0
  154. package/dist/types/modules/marketing/validations/marketing.validation.d.ts +182 -0
  155. package/dist/types/modules/marketing/validations/marketing.validation.d.ts.map +1 -0
  156. package/dist/types/modules/marketing/validations/product-marketing.validation.d.ts +181 -0
  157. package/dist/types/modules/marketing/validations/product-marketing.validation.d.ts.map +1 -0
  158. package/dist/types/modules/marketing/validations/punch-marketing.validation.d.ts +216 -0
  159. package/dist/types/modules/marketing/validations/punch-marketing.validation.d.ts.map +1 -0
  160. package/dist/types/modules/punch-marketing-history/routers/index.d.ts +2 -0
  161. package/dist/types/modules/punch-marketing-history/routers/index.d.ts.map +1 -0
  162. package/dist/types/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts +468 -0
  163. package/dist/types/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts.map +1 -0
  164. package/dist/types/modules/punch-marketing-history/services/index.d.ts +2 -0
  165. package/dist/types/modules/punch-marketing-history/services/index.d.ts.map +1 -0
  166. package/dist/types/modules/punch-marketing-history/services/punch-marketing-history.service.d.ts +37 -0
  167. package/dist/types/modules/punch-marketing-history/services/punch-marketing-history.service.d.ts.map +1 -0
  168. package/dist/types/modules/punch-marketing-history/transformers/index.d.ts +2 -0
  169. package/dist/types/modules/punch-marketing-history/transformers/index.d.ts.map +1 -0
  170. package/dist/types/modules/punch-marketing-history/transformers/punch-marketing-history.transformer.d.ts +9 -0
  171. package/dist/types/modules/punch-marketing-history/transformers/punch-marketing-history.transformer.d.ts.map +1 -0
  172. package/dist/types/modules/punch-marketing-history/validations/index.d.ts +2 -0
  173. package/dist/types/modules/punch-marketing-history/validations/index.d.ts.map +1 -0
  174. package/dist/types/modules/punch-marketing-history/validations/punch-marketing-history.validation.d.ts +197 -0
  175. package/dist/types/modules/punch-marketing-history/validations/punch-marketing-history.validation.d.ts.map +1 -0
  176. package/dist/types/modules/referral-setting/routers/index.d.ts +2 -0
  177. package/dist/types/modules/referral-setting/routers/index.d.ts.map +1 -0
  178. package/dist/types/modules/referral-setting/routers/referral-setting.router.d.ts +746 -0
  179. package/dist/types/modules/referral-setting/routers/referral-setting.router.d.ts.map +1 -0
  180. package/dist/types/modules/referral-setting/services/index.d.ts +2 -0
  181. package/dist/types/modules/referral-setting/services/index.d.ts.map +1 -0
  182. package/dist/types/modules/referral-setting/services/referral-setting.service.d.ts +31 -0
  183. package/dist/types/modules/referral-setting/services/referral-setting.service.d.ts.map +1 -0
  184. package/dist/types/modules/referral-setting/transformers/index.d.ts +2 -0
  185. package/dist/types/modules/referral-setting/transformers/index.d.ts.map +1 -0
  186. package/dist/types/modules/referral-setting/transformers/referral-setting.transformer.d.ts +31 -0
  187. package/dist/types/modules/referral-setting/transformers/referral-setting.transformer.d.ts.map +1 -0
  188. package/dist/types/modules/referral-setting/validations/index.d.ts +2 -0
  189. package/dist/types/modules/referral-setting/validations/index.d.ts.map +1 -0
  190. package/dist/types/modules/referral-setting/validations/referral-setting.validation.d.ts +584 -0
  191. package/dist/types/modules/referral-setting/validations/referral-setting.validation.d.ts.map +1 -0
  192. package/package.json +48 -0
@@ -0,0 +1,182 @@
1
+ import { z } from 'zod';
2
+ import { DTO } from '@lyxa.ai/core/dist/utilities/validation/global-validation';
3
+ import { MarketingStatus, MarketingType } from '@lyxa.ai/core/dist/utilities/enum';
4
+ /**
5
+ * Define the base parent schema fields
6
+ */
7
+ export declare const baseMarketingFields: {
8
+ shop: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
9
+ marketingType: z.ZodNativeEnum<typeof MarketingType>;
10
+ isAppliedByCompany: z.ZodBoolean;
11
+ duration: z.ZodObject<{
12
+ start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
13
+ end: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>;
14
+ }, "strip", z.ZodTypeAny, {
15
+ start: Date;
16
+ end?: Date | undefined;
17
+ }, {
18
+ start: string | Date;
19
+ end?: string | Date | undefined;
20
+ }>;
21
+ status: z.ZodDefault<z.ZodNativeEnum<typeof MarketingStatus>>;
22
+ pausedAt: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>>>;
23
+ };
24
+ /**
25
+ * Get all schemas for the Parent entity
26
+ */
27
+ declare const MarketingValidationSchema: z.ZodObject<{
28
+ shop: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
29
+ marketingType: z.ZodNativeEnum<typeof MarketingType>;
30
+ isAppliedByCompany: z.ZodBoolean;
31
+ duration: z.ZodObject<{
32
+ start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
33
+ end: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>;
34
+ }, "strip", z.ZodTypeAny, {
35
+ start: Date;
36
+ end?: Date | undefined;
37
+ }, {
38
+ start: string | Date;
39
+ end?: string | Date | undefined;
40
+ }>;
41
+ status: z.ZodDefault<z.ZodNativeEnum<typeof MarketingStatus>>;
42
+ pausedAt: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>>>;
43
+ }, "strict", z.ZodTypeAny, {
44
+ isAppliedByCompany: boolean;
45
+ shop: import("mongoose").Types.ObjectId;
46
+ status: MarketingStatus;
47
+ marketingType: MarketingType;
48
+ duration: {
49
+ start: Date;
50
+ end?: Date | undefined;
51
+ };
52
+ pausedAt: Date | null;
53
+ }, {
54
+ isAppliedByCompany: boolean;
55
+ shop: string | import("mongoose").Types.ObjectId;
56
+ marketingType: MarketingType;
57
+ duration: {
58
+ start: string | Date;
59
+ end?: string | Date | undefined;
60
+ };
61
+ status?: MarketingStatus | undefined;
62
+ pausedAt?: string | Date | null | undefined;
63
+ }>, MarketingSchema: z.ZodObject<{
64
+ shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
65
+ marketingType: z.ZodOptional<z.ZodNativeEnum<typeof MarketingType>>;
66
+ isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
67
+ duration: z.ZodOptional<z.ZodObject<{
68
+ start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
69
+ end: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>;
70
+ }, "strip", z.ZodTypeAny, {
71
+ start: Date;
72
+ end?: Date | undefined;
73
+ }, {
74
+ start: string | Date;
75
+ end?: string | Date | undefined;
76
+ }>>;
77
+ status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof MarketingStatus>>>;
78
+ pausedAt: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>>>>;
79
+ _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
80
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
81
+ shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
82
+ marketingType: z.ZodOptional<z.ZodNativeEnum<typeof MarketingType>>;
83
+ isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
84
+ duration: z.ZodOptional<z.ZodObject<{
85
+ start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
86
+ end: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>;
87
+ }, "strip", z.ZodTypeAny, {
88
+ start: Date;
89
+ end?: Date | undefined;
90
+ }, {
91
+ start: string | Date;
92
+ end?: string | Date | undefined;
93
+ }>>;
94
+ status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof MarketingStatus>>>;
95
+ pausedAt: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>>>>;
96
+ _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
97
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
98
+ shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
99
+ marketingType: z.ZodOptional<z.ZodNativeEnum<typeof MarketingType>>;
100
+ isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
101
+ duration: z.ZodOptional<z.ZodObject<{
102
+ start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
103
+ end: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>;
104
+ }, "strip", z.ZodTypeAny, {
105
+ start: Date;
106
+ end?: Date | undefined;
107
+ }, {
108
+ start: string | Date;
109
+ end?: string | Date | undefined;
110
+ }>>;
111
+ status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof MarketingStatus>>>;
112
+ pausedAt: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>>>>;
113
+ _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
114
+ }, z.ZodTypeAny, "passthrough">>, MarketingIdSchema: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, UpdateMarketingSchema: z.ZodObject<{
115
+ [x: string]: z.ZodOptional<z.ZodTypeAny>;
116
+ }, "strict", z.ZodTypeAny, {
117
+ [x: string]: any;
118
+ }, {
119
+ [x: string]: any;
120
+ }> | z.ZodObject<{
121
+ shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
122
+ marketingType: z.ZodOptional<z.ZodNativeEnum<typeof MarketingType>>;
123
+ isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
124
+ duration: z.ZodOptional<z.ZodObject<{
125
+ start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
126
+ end: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>;
127
+ }, "strip", z.ZodTypeAny, {
128
+ start: Date;
129
+ end?: Date | undefined;
130
+ }, {
131
+ start: string | Date;
132
+ end?: string | Date | undefined;
133
+ }>>;
134
+ status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof MarketingStatus>>>;
135
+ pausedAt: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>>>>;
136
+ _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
137
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
138
+ shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
139
+ marketingType: z.ZodOptional<z.ZodNativeEnum<typeof MarketingType>>;
140
+ isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
141
+ duration: z.ZodOptional<z.ZodObject<{
142
+ start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
143
+ end: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>;
144
+ }, "strip", z.ZodTypeAny, {
145
+ start: Date;
146
+ end?: Date | undefined;
147
+ }, {
148
+ start: string | Date;
149
+ end?: string | Date | undefined;
150
+ }>>;
151
+ status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof MarketingStatus>>>;
152
+ pausedAt: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>>>>;
153
+ _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
154
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
155
+ shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
156
+ marketingType: z.ZodOptional<z.ZodNativeEnum<typeof MarketingType>>;
157
+ isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
158
+ duration: z.ZodOptional<z.ZodObject<{
159
+ start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
160
+ end: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>;
161
+ }, "strip", z.ZodTypeAny, {
162
+ start: Date;
163
+ end?: Date | undefined;
164
+ }, {
165
+ start: string | Date;
166
+ end?: string | Date | undefined;
167
+ }>>;
168
+ status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof MarketingStatus>>>;
169
+ pausedAt: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>>>>;
170
+ _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
171
+ }, z.ZodTypeAny, "passthrough">>;
172
+ /**
173
+ * Export schemas
174
+ */
175
+ export { MarketingValidationSchema, MarketingSchema, MarketingIdSchema as MarketingIdValidationSchema, UpdateMarketingSchema, };
176
+ /**
177
+ * Export DTO types
178
+ */
179
+ export type CreateMarketingDTO = DTO<typeof MarketingValidationSchema>;
180
+ export type MarketingDTO = DTO<typeof MarketingSchema>;
181
+ export type UpdateMarketingDTO = DTO<typeof UpdateMarketingSchema>;
182
+ //# sourceMappingURL=marketing.validation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"marketing.validation.d.ts","sourceRoot":"/","sources":["modules/marketing/validations/marketing.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGN,GAAG,EACH,MAAM,2DAA2D,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAGnF;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;CAO/B,CAAC;AASF;;GAEG;AACH,QAAA,MACa,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IACvB,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCACnB,iBAAiB,mNACb,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCACgB,CAAC;AAErD;;GAEG;AACH,OAAO,EACN,yBAAyB,EACzB,eAAe,EACf,iBAAiB,IAAI,2BAA2B,EAChD,qBAAqB,GACrB,CAAC;AAGF;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,GAAG,CAAC,OAAO,yBAAyB,CAAC,CAAC;AACvE,MAAM,MAAM,YAAY,GAAG,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC;AACvD,MAAM,MAAM,kBAAkB,GAAG,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
@@ -0,0 +1,181 @@
1
+ import { z } from 'zod';
2
+ import { DTO } from '@lyxa.ai/core/dist/utilities/validation/global-validation';
3
+ import { ValueType } from '@lyxa.ai/core/dist/utilities/enum';
4
+ /**
5
+ * Define the base schema fields
6
+ */
7
+ export declare const baseFields: {
8
+ product: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
9
+ marketing: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
10
+ loyaltyPointCategory: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
11
+ isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
12
+ valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>;
13
+ value: z.ZodOptional<z.ZodNumber>;
14
+ };
15
+ /**
16
+ * Get all schemas for the entity
17
+ */
18
+ declare const ProductMarketingValidationSchema: z.ZodObject<{
19
+ product: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
20
+ marketing: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
21
+ loyaltyPointCategory: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
22
+ isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
23
+ valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>;
24
+ value: z.ZodOptional<z.ZodNumber>;
25
+ }, "strict", z.ZodTypeAny, {
26
+ product: import("mongoose").Types.ObjectId;
27
+ value?: number | undefined;
28
+ marketing?: import("mongoose").Types.ObjectId | undefined;
29
+ loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
30
+ isBuy1Get1?: boolean | undefined;
31
+ valueType?: ValueType | null | undefined;
32
+ }, {
33
+ product: string | import("mongoose").Types.ObjectId;
34
+ value?: number | undefined;
35
+ marketing?: string | import("mongoose").Types.ObjectId | undefined;
36
+ loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
37
+ isBuy1Get1?: boolean | undefined;
38
+ valueType?: ValueType | null | undefined;
39
+ }>, ProductMarketingSchema: z.ZodObject<{
40
+ product: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
41
+ marketing: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
42
+ loyaltyPointCategory: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
43
+ isBuy1Get1: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
44
+ valueType: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>>;
45
+ value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
46
+ _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
47
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
48
+ product: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
49
+ marketing: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
50
+ loyaltyPointCategory: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
51
+ isBuy1Get1: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
52
+ valueType: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>>;
53
+ value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
54
+ _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
55
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
56
+ product: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
57
+ marketing: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
58
+ loyaltyPointCategory: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
59
+ isBuy1Get1: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
60
+ valueType: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>>;
61
+ value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
62
+ _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
63
+ }, z.ZodTypeAny, "passthrough">>, ProductMarketingIdSchema: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, UpdateProductMarketingSchema: z.ZodObject<{
64
+ [x: string]: z.ZodOptional<z.ZodTypeAny>;
65
+ }, "strict", z.ZodTypeAny, {
66
+ [x: string]: any;
67
+ }, {
68
+ [x: string]: any;
69
+ }> | z.ZodObject<{
70
+ product: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
71
+ marketing: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
72
+ loyaltyPointCategory: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
73
+ isBuy1Get1: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
74
+ valueType: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>>;
75
+ value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
76
+ _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
77
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
78
+ product: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
79
+ marketing: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
80
+ loyaltyPointCategory: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
81
+ isBuy1Get1: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
82
+ valueType: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>>;
83
+ value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
84
+ _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
85
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
86
+ product: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
87
+ marketing: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
88
+ loyaltyPointCategory: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
89
+ isBuy1Get1: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
90
+ valueType: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>>;
91
+ value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
92
+ _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
93
+ }, z.ZodTypeAny, "passthrough">>;
94
+ declare const QueryProductMarketingSchema: z.ZodObject<Pick<{
95
+ product: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
96
+ marketing: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
97
+ loyaltyPointCategory: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
98
+ isBuy1Get1: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
99
+ valueType: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>>;
100
+ value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
101
+ _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
102
+ }, "product" | "marketing">, "passthrough", z.ZodTypeAny, z.objectOutputType<Pick<{
103
+ product: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
104
+ marketing: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
105
+ loyaltyPointCategory: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
106
+ isBuy1Get1: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
107
+ valueType: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>>;
108
+ value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
109
+ _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
110
+ }, "product" | "marketing">, z.ZodTypeAny, "passthrough">, z.objectInputType<Pick<{
111
+ product: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
112
+ marketing: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
113
+ loyaltyPointCategory: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
114
+ isBuy1Get1: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
115
+ valueType: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>>;
116
+ value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
117
+ _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
118
+ }, "product" | "marketing">, z.ZodTypeAny, "passthrough">>;
119
+ declare const QueryMultipleProductMarketingSchema: z.ZodObject<Pick<{
120
+ product: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
121
+ marketing: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
122
+ loyaltyPointCategory: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
123
+ isBuy1Get1: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
124
+ valueType: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>>;
125
+ value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
126
+ _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
127
+ }, "marketing"> & {
128
+ products: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>;
129
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<Pick<{
130
+ product: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
131
+ marketing: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
132
+ loyaltyPointCategory: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
133
+ isBuy1Get1: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
134
+ valueType: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>>;
135
+ value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
136
+ _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
137
+ }, "marketing"> & {
138
+ products: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>;
139
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<Pick<{
140
+ product: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
141
+ marketing: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
142
+ loyaltyPointCategory: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
143
+ isBuy1Get1: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
144
+ valueType: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>>;
145
+ value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
146
+ _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
147
+ }, "marketing"> & {
148
+ products: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>;
149
+ }, z.ZodTypeAny, "passthrough">>;
150
+ declare const UpdateMultipleProductMarketingSchema: z.ZodObject<Omit<{
151
+ product: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
152
+ marketing: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
153
+ loyaltyPointCategory: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
154
+ isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
155
+ valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>;
156
+ value: z.ZodOptional<z.ZodNumber>;
157
+ }, "product" | "marketing">, "strict", z.ZodTypeAny, {
158
+ value?: number | undefined;
159
+ loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
160
+ isBuy1Get1?: boolean | undefined;
161
+ valueType?: ValueType | null | undefined;
162
+ }, {
163
+ value?: number | undefined;
164
+ loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
165
+ isBuy1Get1?: boolean | undefined;
166
+ valueType?: ValueType | null | undefined;
167
+ }>;
168
+ /**
169
+ * Export schemas
170
+ */
171
+ export { ProductMarketingValidationSchema, ProductMarketingSchema, ProductMarketingIdSchema as ProductMarketingIdValidationSchema, UpdateProductMarketingSchema, QueryProductMarketingSchema, };
172
+ /**
173
+ * Export DTO types
174
+ */
175
+ export type CreateProductMarketingDTO = DTO<typeof ProductMarketingValidationSchema>;
176
+ export type ProductMarketingDTO = DTO<typeof ProductMarketingSchema>;
177
+ export type UpdateProductMarketingDTO = DTO<typeof UpdateProductMarketingSchema>;
178
+ export type UpdateMultipleProductMarketingDTO = DTO<typeof UpdateMultipleProductMarketingSchema>;
179
+ export type QueryProductMarketingDTO = DTO<typeof QueryProductMarketingSchema>;
180
+ export type QueryMultipleProductMarketingDTO = DTO<typeof QueryMultipleProductMarketingSchema>;
181
+ //# sourceMappingURL=product-marketing.validation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-marketing.validation.d.ts","sourceRoot":"/","sources":["modules/marketing/validations/product-marketing.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGN,GAAG,EACH,MAAM,2DAA2D,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAE9D;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;;CAUtB,CAAC;AASF;;GAEG;AACH,QAAA,MACa,gCAAgC;;;;;;;;;;;;;;;;;;;;;IAC9B,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;kCAC1B,wBAAwB,mNACpB,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCACS,CAAC;AAErD,QAAA,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;0DAG/B,CAAC;AAEH,QAAA,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAIvC,CAAC;AAEH,QAAA,MAAM,oCAAoC;;;;;;;;;;;;;;;;;EAGxC,CAAC;AAEH;;GAEG;AACH,OAAO,EACN,gCAAgC,EAChC,sBAAsB,EACtB,wBAAwB,IAAI,kCAAkC,EAC9D,4BAA4B,EAC5B,2BAA2B,GAC3B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,GAAG,CAAC,OAAO,gCAAgC,CAAC,CAAC;AACrF,MAAM,MAAM,mBAAmB,GAAG,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACrE,MAAM,MAAM,yBAAyB,GAAG,GAAG,CAAC,OAAO,4BAA4B,CAAC,CAAC;AACjF,MAAM,MAAM,iCAAiC,GAAG,GAAG,CAAC,OAAO,oCAAoC,CAAC,CAAC;AACjG,MAAM,MAAM,wBAAwB,GAAG,GAAG,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAC/E,MAAM,MAAM,gCAAgC,GAAG,GAAG,CAAC,OAAO,mCAAmC,CAAC,CAAC"}
@@ -0,0 +1,216 @@
1
+ import { z } from 'zod';
2
+ import { DTO } from '@lyxa.ai/core/dist/utilities/validation/global-validation';
3
+ import { MarketingType, ValueType } from '@lyxa.ai/core/dist/utilities/enum';
4
+ /**
5
+ * Get all schemas for the Parent entity
6
+ */
7
+ declare const PunchMarketingValidationSchema: z.ZodObject<{
8
+ marketingType: z.ZodLiteral<MarketingType.PUNCH_MARKETING>;
9
+ targetOrders: z.ZodNumber;
10
+ minimumOrderValue: z.ZodNumber;
11
+ dayLimit: z.ZodNumber;
12
+ couponValueType: z.ZodNativeEnum<typeof ValueType>;
13
+ couponValue: z.ZodNumber;
14
+ couponDurationInDays: z.ZodNumber;
15
+ shop: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
16
+ isAppliedByCompany: z.ZodBoolean;
17
+ duration: z.ZodObject<{
18
+ start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
19
+ end: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>;
20
+ }, "strip", z.ZodTypeAny, {
21
+ start: Date;
22
+ end?: Date | undefined;
23
+ }, {
24
+ start: string | Date;
25
+ end?: string | Date | undefined;
26
+ }>;
27
+ status: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>;
28
+ pausedAt: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>>>;
29
+ }, "strict", z.ZodTypeAny, {
30
+ isAppliedByCompany: boolean;
31
+ shop: import("mongoose").Types.ObjectId;
32
+ status: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus;
33
+ marketingType: MarketingType.PUNCH_MARKETING;
34
+ duration: {
35
+ start: Date;
36
+ end?: Date | undefined;
37
+ };
38
+ pausedAt: Date | null;
39
+ targetOrders: number;
40
+ minimumOrderValue: number;
41
+ dayLimit: number;
42
+ couponValueType: ValueType;
43
+ couponValue: number;
44
+ couponDurationInDays: number;
45
+ }, {
46
+ isAppliedByCompany: boolean;
47
+ shop: string | import("mongoose").Types.ObjectId;
48
+ marketingType: MarketingType.PUNCH_MARKETING;
49
+ duration: {
50
+ start: string | Date;
51
+ end?: string | Date | undefined;
52
+ };
53
+ targetOrders: number;
54
+ minimumOrderValue: number;
55
+ dayLimit: number;
56
+ couponValueType: ValueType;
57
+ couponValue: number;
58
+ couponDurationInDays: number;
59
+ status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
60
+ pausedAt?: string | Date | null | undefined;
61
+ }>, PunchMarketingSchema: z.ZodObject<{
62
+ marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.PUNCH_MARKETING>>;
63
+ targetOrders: z.ZodOptional<z.ZodNumber>;
64
+ minimumOrderValue: z.ZodOptional<z.ZodNumber>;
65
+ dayLimit: z.ZodOptional<z.ZodNumber>;
66
+ couponValueType: z.ZodOptional<z.ZodNativeEnum<typeof ValueType>>;
67
+ couponValue: z.ZodOptional<z.ZodNumber>;
68
+ couponDurationInDays: z.ZodOptional<z.ZodNumber>;
69
+ shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
70
+ isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
71
+ duration: z.ZodOptional<z.ZodObject<{
72
+ start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
73
+ end: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>;
74
+ }, "strip", z.ZodTypeAny, {
75
+ start: Date;
76
+ end?: Date | undefined;
77
+ }, {
78
+ start: string | Date;
79
+ end?: string | Date | undefined;
80
+ }>>;
81
+ status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
82
+ pausedAt: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>>>>;
83
+ _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
84
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
85
+ marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.PUNCH_MARKETING>>;
86
+ targetOrders: z.ZodOptional<z.ZodNumber>;
87
+ minimumOrderValue: z.ZodOptional<z.ZodNumber>;
88
+ dayLimit: z.ZodOptional<z.ZodNumber>;
89
+ couponValueType: z.ZodOptional<z.ZodNativeEnum<typeof ValueType>>;
90
+ couponValue: z.ZodOptional<z.ZodNumber>;
91
+ couponDurationInDays: z.ZodOptional<z.ZodNumber>;
92
+ shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
93
+ isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
94
+ duration: z.ZodOptional<z.ZodObject<{
95
+ start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
96
+ end: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>;
97
+ }, "strip", z.ZodTypeAny, {
98
+ start: Date;
99
+ end?: Date | undefined;
100
+ }, {
101
+ start: string | Date;
102
+ end?: string | Date | undefined;
103
+ }>>;
104
+ status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
105
+ pausedAt: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>>>>;
106
+ _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
107
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
108
+ marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.PUNCH_MARKETING>>;
109
+ targetOrders: z.ZodOptional<z.ZodNumber>;
110
+ minimumOrderValue: z.ZodOptional<z.ZodNumber>;
111
+ dayLimit: z.ZodOptional<z.ZodNumber>;
112
+ couponValueType: z.ZodOptional<z.ZodNativeEnum<typeof ValueType>>;
113
+ couponValue: z.ZodOptional<z.ZodNumber>;
114
+ couponDurationInDays: z.ZodOptional<z.ZodNumber>;
115
+ shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
116
+ isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
117
+ duration: z.ZodOptional<z.ZodObject<{
118
+ start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
119
+ end: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>;
120
+ }, "strip", z.ZodTypeAny, {
121
+ start: Date;
122
+ end?: Date | undefined;
123
+ }, {
124
+ start: string | Date;
125
+ end?: string | Date | undefined;
126
+ }>>;
127
+ status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
128
+ pausedAt: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>>>>;
129
+ _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
130
+ }, z.ZodTypeAny, "passthrough">>, PunchMarketingIdSchema: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, UpdatePunchMarketingSchema: z.ZodObject<{
131
+ [x: string]: z.ZodOptional<z.ZodTypeAny>;
132
+ }, "strict", z.ZodTypeAny, {
133
+ [x: string]: any;
134
+ }, {
135
+ [x: string]: any;
136
+ }> | z.ZodObject<{
137
+ marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.PUNCH_MARKETING>>;
138
+ targetOrders: z.ZodOptional<z.ZodNumber>;
139
+ minimumOrderValue: z.ZodOptional<z.ZodNumber>;
140
+ dayLimit: z.ZodOptional<z.ZodNumber>;
141
+ couponValueType: z.ZodOptional<z.ZodNativeEnum<typeof ValueType>>;
142
+ couponValue: z.ZodOptional<z.ZodNumber>;
143
+ couponDurationInDays: z.ZodOptional<z.ZodNumber>;
144
+ shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
145
+ isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
146
+ duration: z.ZodOptional<z.ZodObject<{
147
+ start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
148
+ end: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>;
149
+ }, "strip", z.ZodTypeAny, {
150
+ start: Date;
151
+ end?: Date | undefined;
152
+ }, {
153
+ start: string | Date;
154
+ end?: string | Date | undefined;
155
+ }>>;
156
+ status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
157
+ pausedAt: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>>>>;
158
+ _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
159
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
160
+ marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.PUNCH_MARKETING>>;
161
+ targetOrders: z.ZodOptional<z.ZodNumber>;
162
+ minimumOrderValue: z.ZodOptional<z.ZodNumber>;
163
+ dayLimit: z.ZodOptional<z.ZodNumber>;
164
+ couponValueType: z.ZodOptional<z.ZodNativeEnum<typeof ValueType>>;
165
+ couponValue: z.ZodOptional<z.ZodNumber>;
166
+ couponDurationInDays: z.ZodOptional<z.ZodNumber>;
167
+ shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
168
+ isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
169
+ duration: z.ZodOptional<z.ZodObject<{
170
+ start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
171
+ end: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>;
172
+ }, "strip", z.ZodTypeAny, {
173
+ start: Date;
174
+ end?: Date | undefined;
175
+ }, {
176
+ start: string | Date;
177
+ end?: string | Date | undefined;
178
+ }>>;
179
+ status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
180
+ pausedAt: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>>>>;
181
+ _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
182
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
183
+ marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.PUNCH_MARKETING>>;
184
+ targetOrders: z.ZodOptional<z.ZodNumber>;
185
+ minimumOrderValue: z.ZodOptional<z.ZodNumber>;
186
+ dayLimit: z.ZodOptional<z.ZodNumber>;
187
+ couponValueType: z.ZodOptional<z.ZodNativeEnum<typeof ValueType>>;
188
+ couponValue: z.ZodOptional<z.ZodNumber>;
189
+ couponDurationInDays: z.ZodOptional<z.ZodNumber>;
190
+ shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
191
+ isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
192
+ duration: z.ZodOptional<z.ZodObject<{
193
+ start: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
194
+ end: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>;
195
+ }, "strip", z.ZodTypeAny, {
196
+ start: Date;
197
+ end?: Date | undefined;
198
+ }, {
199
+ start: string | Date;
200
+ end?: string | Date | undefined;
201
+ }>>;
202
+ status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
203
+ pausedAt: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>>>>>;
204
+ _id: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
205
+ }, z.ZodTypeAny, "passthrough">>;
206
+ /**
207
+ * Export schemas
208
+ */
209
+ export { PunchMarketingValidationSchema, PunchMarketingSchema, PunchMarketingIdSchema as PunchMarketingIdValidationSchema, UpdatePunchMarketingSchema, };
210
+ /**
211
+ * Export DTO types
212
+ */
213
+ export type CreatePunchMarketingDTO = DTO<typeof PunchMarketingValidationSchema>;
214
+ export type PunchMarketingDTO = DTO<typeof PunchMarketingSchema>;
215
+ export type UpdatePunchMarketingDTO = DTO<typeof UpdatePunchMarketingSchema>;
216
+ //# sourceMappingURL=punch-marketing.validation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"punch-marketing.validation.d.ts","sourceRoot":"/","sources":["modules/marketing/validations/punch-marketing.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGN,GAAG,EACH,MAAM,2DAA2D,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAwB7E;;GAEG;AACH,QAAA,MACa,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAC5B,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCACxB,sBAAsB,mNAClB,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCACW,CAAC;AAErD;;GAEG;AACH,OAAO,EACN,8BAA8B,EAC9B,oBAAoB,EACpB,sBAAsB,IAAI,gCAAgC,EAC1D,0BAA0B,GAC1B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,GAAG,CAAC,OAAO,8BAA8B,CAAC,CAAC;AACjF,MAAM,MAAM,iBAAiB,GAAG,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC;AACjE,MAAM,MAAM,uBAAuB,GAAG,GAAG,CAAC,OAAO,0BAA0B,CAAC,CAAC"}