@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,233 @@
1
+ import { z } from 'zod';
2
+ import { DTO } from '@lyxa.ai/core/dist/utilities/validation/global-validation';
3
+ import { MarketingType } from '@lyxa.ai/core/dist/utilities/enum';
4
+ /**
5
+ * Get all schemas for the Parent entity
6
+ */
7
+ declare const FeaturedMarketingValidationSchema: z.ZodObject<{
8
+ marketingType: z.ZodLiteral<MarketingType.FEATURED>;
9
+ amount: z.ZodNumber;
10
+ 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>]>;
11
+ isAppliedByCompany: z.ZodBoolean;
12
+ duration: z.ZodObject<{
13
+ 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>;
14
+ 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>>;
15
+ }, "strip", z.ZodTypeAny, {
16
+ start: Date;
17
+ end?: Date | undefined;
18
+ }, {
19
+ start: string | Date;
20
+ end?: string | Date | undefined;
21
+ }>;
22
+ status: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>;
23
+ 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>>>>;
24
+ }, "strict", z.ZodTypeAny, {
25
+ isAppliedByCompany: boolean;
26
+ shop: import("mongoose").Types.ObjectId;
27
+ status: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus;
28
+ marketingType: MarketingType.FEATURED;
29
+ duration: {
30
+ start: Date;
31
+ end?: Date | undefined;
32
+ };
33
+ pausedAt: Date | null;
34
+ amount: number;
35
+ }, {
36
+ isAppliedByCompany: boolean;
37
+ shop: string | import("mongoose").Types.ObjectId;
38
+ marketingType: MarketingType.FEATURED;
39
+ duration: {
40
+ start: string | Date;
41
+ end?: string | Date | undefined;
42
+ };
43
+ amount: number;
44
+ status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
45
+ pausedAt?: string | Date | null | undefined;
46
+ }>, FeaturedMarketingSchema: z.ZodObject<{
47
+ marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.FEATURED>>;
48
+ amount: z.ZodOptional<z.ZodNumber>;
49
+ 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>]>>;
50
+ isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
51
+ duration: z.ZodOptional<z.ZodObject<{
52
+ 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>;
53
+ 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>>;
54
+ }, "strip", z.ZodTypeAny, {
55
+ start: Date;
56
+ end?: Date | undefined;
57
+ }, {
58
+ start: string | Date;
59
+ end?: string | Date | undefined;
60
+ }>>;
61
+ status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
62
+ 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>>>>>;
63
+ _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>]>>;
64
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
65
+ marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.FEATURED>>;
66
+ amount: z.ZodOptional<z.ZodNumber>;
67
+ 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>]>>;
68
+ isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
69
+ duration: z.ZodOptional<z.ZodObject<{
70
+ 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>;
71
+ 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>>;
72
+ }, "strip", z.ZodTypeAny, {
73
+ start: Date;
74
+ end?: Date | undefined;
75
+ }, {
76
+ start: string | Date;
77
+ end?: string | Date | undefined;
78
+ }>>;
79
+ status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
80
+ 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>>>>>;
81
+ _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>]>>;
82
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
83
+ marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.FEATURED>>;
84
+ amount: z.ZodOptional<z.ZodNumber>;
85
+ 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>]>>;
86
+ isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
87
+ duration: z.ZodOptional<z.ZodObject<{
88
+ 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>;
89
+ 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>>;
90
+ }, "strip", z.ZodTypeAny, {
91
+ start: Date;
92
+ end?: Date | undefined;
93
+ }, {
94
+ start: string | Date;
95
+ end?: string | Date | undefined;
96
+ }>>;
97
+ status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
98
+ 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>>>>>;
99
+ _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>]>>;
100
+ }, z.ZodTypeAny, "passthrough">>, FeaturedMarketingIdSchema: 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>]>, UpdateFeaturedMarketingSchema: z.ZodObject<{
101
+ [x: string]: z.ZodOptional<z.ZodTypeAny>;
102
+ }, "strict", z.ZodTypeAny, {
103
+ [x: string]: any;
104
+ }, {
105
+ [x: string]: any;
106
+ }> | z.ZodObject<{
107
+ marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.FEATURED>>;
108
+ amount: z.ZodOptional<z.ZodNumber>;
109
+ 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>]>>;
110
+ isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
111
+ duration: z.ZodOptional<z.ZodObject<{
112
+ 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>;
113
+ 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>>;
114
+ }, "strip", z.ZodTypeAny, {
115
+ start: Date;
116
+ end?: Date | undefined;
117
+ }, {
118
+ start: string | Date;
119
+ end?: string | Date | undefined;
120
+ }>>;
121
+ status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
122
+ 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>>>>>;
123
+ _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>]>>;
124
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
125
+ marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.FEATURED>>;
126
+ amount: z.ZodOptional<z.ZodNumber>;
127
+ 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>]>>;
128
+ isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
129
+ duration: z.ZodOptional<z.ZodObject<{
130
+ 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>;
131
+ 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>>;
132
+ }, "strip", z.ZodTypeAny, {
133
+ start: Date;
134
+ end?: Date | undefined;
135
+ }, {
136
+ start: string | Date;
137
+ end?: string | Date | undefined;
138
+ }>>;
139
+ status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
140
+ 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>>>>>;
141
+ _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>]>>;
142
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
143
+ marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.FEATURED>>;
144
+ amount: z.ZodOptional<z.ZodNumber>;
145
+ 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>]>>;
146
+ isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
147
+ duration: z.ZodOptional<z.ZodObject<{
148
+ 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>;
149
+ 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>>;
150
+ }, "strip", z.ZodTypeAny, {
151
+ start: Date;
152
+ end?: Date | undefined;
153
+ }, {
154
+ start: string | Date;
155
+ end?: string | Date | undefined;
156
+ }>>;
157
+ status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
158
+ 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>>>>>;
159
+ _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>]>>;
160
+ }, z.ZodTypeAny, "passthrough">>;
161
+ declare const FeaturedMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject<{
162
+ marketingType: z.ZodLiteral<MarketingType.FEATURED>;
163
+ amount: z.ZodNumber;
164
+ 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>]>;
165
+ isAppliedByCompany: z.ZodBoolean;
166
+ duration: z.ZodObject<{
167
+ 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>;
168
+ 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>>;
169
+ }, "strip", z.ZodTypeAny, {
170
+ start: Date;
171
+ end?: Date | undefined;
172
+ }, {
173
+ start: string | Date;
174
+ end?: string | Date | undefined;
175
+ }>;
176
+ status: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>;
177
+ 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>>>>;
178
+ }, "strict", z.ZodTypeAny, {
179
+ isAppliedByCompany: boolean;
180
+ shop: import("mongoose").Types.ObjectId;
181
+ status: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus;
182
+ marketingType: MarketingType.FEATURED;
183
+ duration: {
184
+ start: Date;
185
+ end?: Date | undefined;
186
+ };
187
+ pausedAt: Date | null;
188
+ amount: number;
189
+ }, {
190
+ isAppliedByCompany: boolean;
191
+ shop: string | import("mongoose").Types.ObjectId;
192
+ marketingType: MarketingType.FEATURED;
193
+ duration: {
194
+ start: string | Date;
195
+ end?: string | Date | undefined;
196
+ };
197
+ amount: number;
198
+ status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
199
+ pausedAt?: string | Date | null | undefined;
200
+ }>, {
201
+ isAppliedByCompany: boolean;
202
+ shop: import("mongoose").Types.ObjectId;
203
+ status: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus;
204
+ marketingType: MarketingType.FEATURED;
205
+ duration: {
206
+ start: Date;
207
+ end?: Date | undefined;
208
+ };
209
+ pausedAt: Date | null;
210
+ amount: number;
211
+ }, {
212
+ isAppliedByCompany: boolean;
213
+ shop: string | import("mongoose").Types.ObjectId;
214
+ marketingType: MarketingType.FEATURED;
215
+ duration: {
216
+ start: string | Date;
217
+ end?: string | Date | undefined;
218
+ };
219
+ amount: number;
220
+ status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
221
+ pausedAt?: string | Date | null | undefined;
222
+ }>;
223
+ /**
224
+ * Export schemas
225
+ */
226
+ export { FeaturedMarketingValidationSchemaRefined as FeaturedMarketingValidationSchema, FeaturedMarketingSchema, FeaturedMarketingIdSchema as FeaturedMarketingIdValidationSchema, UpdateFeaturedMarketingSchema, };
227
+ /**
228
+ * Export DTO types
229
+ */
230
+ export type CreateFeaturedMarketingDTO = DTO<typeof FeaturedMarketingValidationSchema>;
231
+ export type FeaturedMarketingDTO = DTO<typeof FeaturedMarketingSchema>;
232
+ export type UpdateFeaturedMarketingDTO = DTO<typeof UpdateFeaturedMarketingSchema>;
233
+ //# sourceMappingURL=featured-marketing.validation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"featured-marketing.validation.d.ts","sourceRoot":"/","sources":["modules/marketing/validations/featured-marketing.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGN,GAAG,EACH,MAAM,2DAA2D,CAAC;AAEnE,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAmBlE;;GAEG;AACH,QAAA,MACa,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAC/B,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAC3B,yBAAyB,mNACrB,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCACQ,CAAC;AAErD,QAAA,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsB7C,CAAC;AAEF;;GAEG;AACH,OAAO,EACN,wCAAwC,IAAI,iCAAiC,EAC7E,uBAAuB,EACvB,yBAAyB,IAAI,mCAAmC,EAChE,6BAA6B,GAC7B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,GAAG,CAAC,OAAO,iCAAiC,CAAC,CAAC;AACvF,MAAM,MAAM,oBAAoB,GAAG,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACvE,MAAM,MAAM,0BAA0B,GAAG,GAAG,CAAC,OAAO,6BAA6B,CAAC,CAAC"}
@@ -0,0 +1,171 @@
1
+ import { z } from 'zod';
2
+ import { DTO } from '@lyxa.ai/core/dist/utilities/validation/global-validation';
3
+ import { MarketingType } from '@lyxa.ai/core/dist/utilities/enum';
4
+ /**
5
+ * Get all schemas for the Parent entity
6
+ */
7
+ declare const FreeDeliveryMarketingValidationSchema: z.ZodObject<{
8
+ marketingType: z.ZodLiteral<MarketingType.FREE_DELIVERY>;
9
+ spendLimit: z.ZodDefault<z.ZodNumber>;
10
+ 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>]>;
11
+ isAppliedByCompany: z.ZodBoolean;
12
+ duration: z.ZodObject<{
13
+ 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>;
14
+ 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>>;
15
+ }, "strip", z.ZodTypeAny, {
16
+ start: Date;
17
+ end?: Date | undefined;
18
+ }, {
19
+ start: string | Date;
20
+ end?: string | Date | undefined;
21
+ }>;
22
+ status: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>;
23
+ 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>>>>;
24
+ }, "strict", z.ZodTypeAny, {
25
+ isAppliedByCompany: boolean;
26
+ shop: import("mongoose").Types.ObjectId;
27
+ status: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus;
28
+ marketingType: MarketingType.FREE_DELIVERY;
29
+ duration: {
30
+ start: Date;
31
+ end?: Date | undefined;
32
+ };
33
+ pausedAt: Date | null;
34
+ spendLimit: number;
35
+ }, {
36
+ isAppliedByCompany: boolean;
37
+ shop: string | import("mongoose").Types.ObjectId;
38
+ marketingType: MarketingType.FREE_DELIVERY;
39
+ duration: {
40
+ start: string | Date;
41
+ end?: string | Date | undefined;
42
+ };
43
+ status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
44
+ pausedAt?: string | Date | null | undefined;
45
+ spendLimit?: number | undefined;
46
+ }>, FreeDeliveryMarketingSchema: z.ZodObject<{
47
+ marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.FREE_DELIVERY>>;
48
+ spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
49
+ 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>]>>;
50
+ isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
51
+ duration: z.ZodOptional<z.ZodObject<{
52
+ 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>;
53
+ 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>>;
54
+ }, "strip", z.ZodTypeAny, {
55
+ start: Date;
56
+ end?: Date | undefined;
57
+ }, {
58
+ start: string | Date;
59
+ end?: string | Date | undefined;
60
+ }>>;
61
+ status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
62
+ 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>>>>>;
63
+ _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>]>>;
64
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
65
+ marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.FREE_DELIVERY>>;
66
+ spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
67
+ 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>]>>;
68
+ isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
69
+ duration: z.ZodOptional<z.ZodObject<{
70
+ 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>;
71
+ 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>>;
72
+ }, "strip", z.ZodTypeAny, {
73
+ start: Date;
74
+ end?: Date | undefined;
75
+ }, {
76
+ start: string | Date;
77
+ end?: string | Date | undefined;
78
+ }>>;
79
+ status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
80
+ 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>>>>>;
81
+ _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>]>>;
82
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
83
+ marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.FREE_DELIVERY>>;
84
+ spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
85
+ 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>]>>;
86
+ isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
87
+ duration: z.ZodOptional<z.ZodObject<{
88
+ 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>;
89
+ 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>>;
90
+ }, "strip", z.ZodTypeAny, {
91
+ start: Date;
92
+ end?: Date | undefined;
93
+ }, {
94
+ start: string | Date;
95
+ end?: string | Date | undefined;
96
+ }>>;
97
+ status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
98
+ 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>>>>>;
99
+ _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>]>>;
100
+ }, z.ZodTypeAny, "passthrough">>, FreeDeliveryMarketingIdSchema: 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>]>, UpdateFreeDeliveryMarketingSchema: z.ZodObject<{
101
+ [x: string]: z.ZodOptional<z.ZodTypeAny>;
102
+ }, "strict", z.ZodTypeAny, {
103
+ [x: string]: any;
104
+ }, {
105
+ [x: string]: any;
106
+ }> | z.ZodObject<{
107
+ marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.FREE_DELIVERY>>;
108
+ spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
109
+ 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>]>>;
110
+ isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
111
+ duration: z.ZodOptional<z.ZodObject<{
112
+ 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>;
113
+ 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>>;
114
+ }, "strip", z.ZodTypeAny, {
115
+ start: Date;
116
+ end?: Date | undefined;
117
+ }, {
118
+ start: string | Date;
119
+ end?: string | Date | undefined;
120
+ }>>;
121
+ status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
122
+ 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>>>>>;
123
+ _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>]>>;
124
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
125
+ marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.FREE_DELIVERY>>;
126
+ spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
127
+ 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>]>>;
128
+ isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
129
+ duration: z.ZodOptional<z.ZodObject<{
130
+ 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>;
131
+ 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>>;
132
+ }, "strip", z.ZodTypeAny, {
133
+ start: Date;
134
+ end?: Date | undefined;
135
+ }, {
136
+ start: string | Date;
137
+ end?: string | Date | undefined;
138
+ }>>;
139
+ status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
140
+ 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>>>>>;
141
+ _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>]>>;
142
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
143
+ marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.FREE_DELIVERY>>;
144
+ spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
145
+ 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>]>>;
146
+ isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
147
+ duration: z.ZodOptional<z.ZodObject<{
148
+ 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>;
149
+ 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>>;
150
+ }, "strip", z.ZodTypeAny, {
151
+ start: Date;
152
+ end?: Date | undefined;
153
+ }, {
154
+ start: string | Date;
155
+ end?: string | Date | undefined;
156
+ }>>;
157
+ status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
158
+ 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>>>>>;
159
+ _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>]>>;
160
+ }, z.ZodTypeAny, "passthrough">>;
161
+ /**
162
+ * Export schemas
163
+ */
164
+ export { FreeDeliveryMarketingValidationSchema, FreeDeliveryMarketingSchema, FreeDeliveryMarketingIdSchema as FreeDeliveryMarketingIdValidationSchema, UpdateFreeDeliveryMarketingSchema, };
165
+ /**
166
+ * Export DTO types
167
+ */
168
+ export type CreateFreeDeliveryMarketingDTO = DTO<typeof FreeDeliveryMarketingValidationSchema>;
169
+ export type FreeDeliveryMarketingDTO = DTO<typeof FreeDeliveryMarketingSchema>;
170
+ export type UpdateFreeDeliveryMarketingDTO = DTO<typeof UpdateFreeDeliveryMarketingSchema>;
171
+ //# sourceMappingURL=free-delivery-marketing.validation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"free-delivery-marketing.validation.d.ts","sourceRoot":"/","sources":["modules/marketing/validations/free-delivery-marketing.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGN,GAAG,EACH,MAAM,2DAA2D,CAAC;AAEnE,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAkBlE;;GAEG;AACH,QAAA,MACa,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IACnC,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAC/B,6BAA6B,mNACzB,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCACI,CAAC;AAErD;;GAEG;AACH,OAAO,EACN,qCAAqC,EACrC,2BAA2B,EAC3B,6BAA6B,IAAI,uCAAuC,EACxE,iCAAiC,GACjC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG,GAAG,CAAC,OAAO,qCAAqC,CAAC,CAAC;AAC/F,MAAM,MAAM,wBAAwB,GAAG,GAAG,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAC/E,MAAM,MAAM,8BAA8B,GAAG,GAAG,CAAC,OAAO,iCAAiC,CAAC,CAAC"}
@@ -0,0 +1,10 @@
1
+ export * from './buy1-get1-marketing.validation';
2
+ export * from './discount-marketing.validation';
3
+ export * from './featured-marketing.validation';
4
+ export * from './free-delivery-marketing.validation';
5
+ export * from './loyalty-point-marketing.validation';
6
+ export * from './punch-marketing.validation';
7
+ export * from './product-marketing.validation';
8
+ export * from './marketing.validation';
9
+ export * from './all-marketings.validation';
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["modules/marketing/validations/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AACjD,cAAc,iCAAiC,CAAC;AAChD,cAAc,iCAAiC,CAAC;AAChD,cAAc,sCAAsC,CAAC;AACrD,cAAc,sCAAsC,CAAC;AACrD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC"}