@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,527 @@
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 DiscountMarketingValidationSchema: z.ZodObject<{
8
+ marketingType: z.ZodLiteral<MarketingType.DISCOUNT>;
9
+ isEntireMenu: z.ZodDefault<z.ZodBoolean>;
10
+ valueType: z.ZodNativeEnum<typeof ValueType>;
11
+ value: z.ZodNumber;
12
+ products: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
13
+ 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>]>;
14
+ 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>]>>;
15
+ 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>]>>;
16
+ isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
17
+ valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>;
18
+ value: z.ZodOptional<z.ZodNumber>;
19
+ }, "strip", z.ZodTypeAny, {
20
+ product: import("mongoose").Types.ObjectId;
21
+ value?: number | undefined;
22
+ marketing?: import("mongoose").Types.ObjectId | undefined;
23
+ loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
24
+ isBuy1Get1?: boolean | undefined;
25
+ valueType?: ValueType | null | undefined;
26
+ }, {
27
+ product: string | import("mongoose").Types.ObjectId;
28
+ value?: number | undefined;
29
+ marketing?: string | import("mongoose").Types.ObjectId | undefined;
30
+ loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
31
+ isBuy1Get1?: boolean | undefined;
32
+ valueType?: ValueType | null | undefined;
33
+ }>, "many">>>;
34
+ maxDiscountPerOrder: z.ZodDefault<z.ZodNumber>;
35
+ spendLimit: z.ZodDefault<z.ZodNumber>;
36
+ isOnlyForSubscriber: z.ZodDefault<z.ZodBoolean>;
37
+ 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>]>;
38
+ isAppliedByCompany: z.ZodBoolean;
39
+ duration: z.ZodObject<{
40
+ 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>;
41
+ 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>>;
42
+ }, "strip", z.ZodTypeAny, {
43
+ start: Date;
44
+ end?: Date | undefined;
45
+ }, {
46
+ start: string | Date;
47
+ end?: string | Date | undefined;
48
+ }>;
49
+ status: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>;
50
+ 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>>>>;
51
+ }, "strict", z.ZodTypeAny, {
52
+ isAppliedByCompany: boolean;
53
+ shop: import("mongoose").Types.ObjectId;
54
+ value: number;
55
+ status: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus;
56
+ marketingType: MarketingType.DISCOUNT;
57
+ duration: {
58
+ start: Date;
59
+ end?: Date | undefined;
60
+ };
61
+ pausedAt: Date | null;
62
+ valueType: ValueType;
63
+ products: {
64
+ product: import("mongoose").Types.ObjectId;
65
+ value?: number | undefined;
66
+ marketing?: import("mongoose").Types.ObjectId | undefined;
67
+ loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
68
+ isBuy1Get1?: boolean | undefined;
69
+ valueType?: ValueType | null | undefined;
70
+ }[];
71
+ isEntireMenu: boolean;
72
+ spendLimit: number;
73
+ isOnlyForSubscriber: boolean;
74
+ maxDiscountPerOrder: number;
75
+ }, {
76
+ isAppliedByCompany: boolean;
77
+ shop: string | import("mongoose").Types.ObjectId;
78
+ value: number;
79
+ marketingType: MarketingType.DISCOUNT;
80
+ duration: {
81
+ start: string | Date;
82
+ end?: string | Date | undefined;
83
+ };
84
+ valueType: ValueType;
85
+ status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
86
+ pausedAt?: string | Date | null | undefined;
87
+ products?: {
88
+ product: string | import("mongoose").Types.ObjectId;
89
+ value?: number | undefined;
90
+ marketing?: string | import("mongoose").Types.ObjectId | undefined;
91
+ loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
92
+ isBuy1Get1?: boolean | undefined;
93
+ valueType?: ValueType | null | undefined;
94
+ }[] | undefined;
95
+ isEntireMenu?: boolean | undefined;
96
+ spendLimit?: number | undefined;
97
+ isOnlyForSubscriber?: boolean | undefined;
98
+ maxDiscountPerOrder?: number | undefined;
99
+ }>, DiscountMarketingSchema: z.ZodObject<{
100
+ marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.DISCOUNT>>;
101
+ isEntireMenu: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
102
+ valueType: z.ZodOptional<z.ZodNativeEnum<typeof ValueType>>;
103
+ value: z.ZodOptional<z.ZodNumber>;
104
+ products: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
105
+ 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>]>;
106
+ 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>]>>;
107
+ 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>]>>;
108
+ isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
109
+ valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>;
110
+ value: z.ZodOptional<z.ZodNumber>;
111
+ }, "strip", z.ZodTypeAny, {
112
+ product: import("mongoose").Types.ObjectId;
113
+ value?: number | undefined;
114
+ marketing?: import("mongoose").Types.ObjectId | undefined;
115
+ loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
116
+ isBuy1Get1?: boolean | undefined;
117
+ valueType?: ValueType | null | undefined;
118
+ }, {
119
+ product: string | import("mongoose").Types.ObjectId;
120
+ value?: number | undefined;
121
+ marketing?: string | import("mongoose").Types.ObjectId | undefined;
122
+ loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
123
+ isBuy1Get1?: boolean | undefined;
124
+ valueType?: ValueType | null | undefined;
125
+ }>, "many">>>>;
126
+ maxDiscountPerOrder: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
127
+ spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
128
+ isOnlyForSubscriber: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
129
+ 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>]>>;
130
+ isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
131
+ duration: z.ZodOptional<z.ZodObject<{
132
+ 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>;
133
+ 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>>;
134
+ }, "strip", z.ZodTypeAny, {
135
+ start: Date;
136
+ end?: Date | undefined;
137
+ }, {
138
+ start: string | Date;
139
+ end?: string | Date | undefined;
140
+ }>>;
141
+ status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
142
+ 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>>>>>;
143
+ _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>]>>;
144
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
145
+ marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.DISCOUNT>>;
146
+ isEntireMenu: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
147
+ valueType: z.ZodOptional<z.ZodNativeEnum<typeof ValueType>>;
148
+ value: z.ZodOptional<z.ZodNumber>;
149
+ products: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
150
+ 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>]>;
151
+ 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>]>>;
152
+ 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>]>>;
153
+ isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
154
+ valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>;
155
+ value: z.ZodOptional<z.ZodNumber>;
156
+ }, "strip", z.ZodTypeAny, {
157
+ product: import("mongoose").Types.ObjectId;
158
+ value?: number | undefined;
159
+ marketing?: import("mongoose").Types.ObjectId | undefined;
160
+ loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
161
+ isBuy1Get1?: boolean | undefined;
162
+ valueType?: ValueType | null | undefined;
163
+ }, {
164
+ product: string | import("mongoose").Types.ObjectId;
165
+ value?: number | undefined;
166
+ marketing?: string | import("mongoose").Types.ObjectId | undefined;
167
+ loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
168
+ isBuy1Get1?: boolean | undefined;
169
+ valueType?: ValueType | null | undefined;
170
+ }>, "many">>>>;
171
+ maxDiscountPerOrder: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
172
+ spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
173
+ isOnlyForSubscriber: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
174
+ 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>]>>;
175
+ isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
176
+ duration: z.ZodOptional<z.ZodObject<{
177
+ 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>;
178
+ 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>>;
179
+ }, "strip", z.ZodTypeAny, {
180
+ start: Date;
181
+ end?: Date | undefined;
182
+ }, {
183
+ start: string | Date;
184
+ end?: string | Date | undefined;
185
+ }>>;
186
+ status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
187
+ 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>>>>>;
188
+ _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>]>>;
189
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
190
+ marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.DISCOUNT>>;
191
+ isEntireMenu: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
192
+ valueType: z.ZodOptional<z.ZodNativeEnum<typeof ValueType>>;
193
+ value: z.ZodOptional<z.ZodNumber>;
194
+ products: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
195
+ 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>]>;
196
+ 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>]>>;
197
+ 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>]>>;
198
+ isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
199
+ valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>;
200
+ value: z.ZodOptional<z.ZodNumber>;
201
+ }, "strip", z.ZodTypeAny, {
202
+ product: import("mongoose").Types.ObjectId;
203
+ value?: number | undefined;
204
+ marketing?: import("mongoose").Types.ObjectId | undefined;
205
+ loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
206
+ isBuy1Get1?: boolean | undefined;
207
+ valueType?: ValueType | null | undefined;
208
+ }, {
209
+ product: string | import("mongoose").Types.ObjectId;
210
+ value?: number | undefined;
211
+ marketing?: string | import("mongoose").Types.ObjectId | undefined;
212
+ loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
213
+ isBuy1Get1?: boolean | undefined;
214
+ valueType?: ValueType | null | undefined;
215
+ }>, "many">>>>;
216
+ maxDiscountPerOrder: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
217
+ spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
218
+ isOnlyForSubscriber: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
219
+ 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>]>>;
220
+ isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
221
+ duration: z.ZodOptional<z.ZodObject<{
222
+ 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>;
223
+ 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>>;
224
+ }, "strip", z.ZodTypeAny, {
225
+ start: Date;
226
+ end?: Date | undefined;
227
+ }, {
228
+ start: string | Date;
229
+ end?: string | Date | undefined;
230
+ }>>;
231
+ status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
232
+ 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>>>>>;
233
+ _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>]>>;
234
+ }, z.ZodTypeAny, "passthrough">>, DiscountMarketingIdSchema: 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>]>, UpdateDiscountMarketingSchema: z.ZodObject<{
235
+ [x: string]: z.ZodOptional<z.ZodTypeAny>;
236
+ }, "strict", z.ZodTypeAny, {
237
+ [x: string]: any;
238
+ }, {
239
+ [x: string]: any;
240
+ }> | z.ZodObject<{
241
+ marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.DISCOUNT>>;
242
+ isEntireMenu: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
243
+ valueType: z.ZodOptional<z.ZodNativeEnum<typeof ValueType>>;
244
+ value: z.ZodOptional<z.ZodNumber>;
245
+ products: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
246
+ 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>]>;
247
+ 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>]>>;
248
+ 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>]>>;
249
+ isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
250
+ valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>;
251
+ value: z.ZodOptional<z.ZodNumber>;
252
+ }, "strip", z.ZodTypeAny, {
253
+ product: import("mongoose").Types.ObjectId;
254
+ value?: number | undefined;
255
+ marketing?: import("mongoose").Types.ObjectId | undefined;
256
+ loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
257
+ isBuy1Get1?: boolean | undefined;
258
+ valueType?: ValueType | null | undefined;
259
+ }, {
260
+ product: string | import("mongoose").Types.ObjectId;
261
+ value?: number | undefined;
262
+ marketing?: string | import("mongoose").Types.ObjectId | undefined;
263
+ loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
264
+ isBuy1Get1?: boolean | undefined;
265
+ valueType?: ValueType | null | undefined;
266
+ }>, "many">>>>;
267
+ maxDiscountPerOrder: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
268
+ spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
269
+ isOnlyForSubscriber: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
270
+ 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>]>>;
271
+ isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
272
+ duration: z.ZodOptional<z.ZodObject<{
273
+ 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>;
274
+ 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>>;
275
+ }, "strip", z.ZodTypeAny, {
276
+ start: Date;
277
+ end?: Date | undefined;
278
+ }, {
279
+ start: string | Date;
280
+ end?: string | Date | undefined;
281
+ }>>;
282
+ status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
283
+ 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>>>>>;
284
+ _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>]>>;
285
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
286
+ marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.DISCOUNT>>;
287
+ isEntireMenu: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
288
+ valueType: z.ZodOptional<z.ZodNativeEnum<typeof ValueType>>;
289
+ value: z.ZodOptional<z.ZodNumber>;
290
+ products: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
291
+ 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>]>;
292
+ 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>]>>;
293
+ 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>]>>;
294
+ isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
295
+ valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>;
296
+ value: z.ZodOptional<z.ZodNumber>;
297
+ }, "strip", z.ZodTypeAny, {
298
+ product: import("mongoose").Types.ObjectId;
299
+ value?: number | undefined;
300
+ marketing?: import("mongoose").Types.ObjectId | undefined;
301
+ loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
302
+ isBuy1Get1?: boolean | undefined;
303
+ valueType?: ValueType | null | undefined;
304
+ }, {
305
+ product: string | import("mongoose").Types.ObjectId;
306
+ value?: number | undefined;
307
+ marketing?: string | import("mongoose").Types.ObjectId | undefined;
308
+ loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
309
+ isBuy1Get1?: boolean | undefined;
310
+ valueType?: ValueType | null | undefined;
311
+ }>, "many">>>>;
312
+ maxDiscountPerOrder: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
313
+ spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
314
+ isOnlyForSubscriber: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
315
+ 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>]>>;
316
+ isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
317
+ duration: z.ZodOptional<z.ZodObject<{
318
+ 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>;
319
+ 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>>;
320
+ }, "strip", z.ZodTypeAny, {
321
+ start: Date;
322
+ end?: Date | undefined;
323
+ }, {
324
+ start: string | Date;
325
+ end?: string | Date | undefined;
326
+ }>>;
327
+ status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
328
+ 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>>>>>;
329
+ _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>]>>;
330
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
331
+ marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.DISCOUNT>>;
332
+ isEntireMenu: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
333
+ valueType: z.ZodOptional<z.ZodNativeEnum<typeof ValueType>>;
334
+ value: z.ZodOptional<z.ZodNumber>;
335
+ products: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
336
+ 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>]>;
337
+ 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>]>>;
338
+ 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>]>>;
339
+ isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
340
+ valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>;
341
+ value: z.ZodOptional<z.ZodNumber>;
342
+ }, "strip", z.ZodTypeAny, {
343
+ product: import("mongoose").Types.ObjectId;
344
+ value?: number | undefined;
345
+ marketing?: import("mongoose").Types.ObjectId | undefined;
346
+ loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
347
+ isBuy1Get1?: boolean | undefined;
348
+ valueType?: ValueType | null | undefined;
349
+ }, {
350
+ product: string | import("mongoose").Types.ObjectId;
351
+ value?: number | undefined;
352
+ marketing?: string | import("mongoose").Types.ObjectId | undefined;
353
+ loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
354
+ isBuy1Get1?: boolean | undefined;
355
+ valueType?: ValueType | null | undefined;
356
+ }>, "many">>>>;
357
+ maxDiscountPerOrder: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
358
+ spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
359
+ isOnlyForSubscriber: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
360
+ 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>]>>;
361
+ isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
362
+ duration: z.ZodOptional<z.ZodObject<{
363
+ 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>;
364
+ 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>>;
365
+ }, "strip", z.ZodTypeAny, {
366
+ start: Date;
367
+ end?: Date | undefined;
368
+ }, {
369
+ start: string | Date;
370
+ end?: string | Date | undefined;
371
+ }>>;
372
+ status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
373
+ 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>>>>>;
374
+ _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>]>>;
375
+ }, z.ZodTypeAny, "passthrough">>;
376
+ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject<{
377
+ marketingType: z.ZodLiteral<MarketingType.DISCOUNT>;
378
+ isEntireMenu: z.ZodDefault<z.ZodBoolean>;
379
+ valueType: z.ZodNativeEnum<typeof ValueType>;
380
+ value: z.ZodNumber;
381
+ products: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
382
+ 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>]>;
383
+ 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>]>>;
384
+ 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>]>>;
385
+ isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
386
+ valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>;
387
+ value: z.ZodOptional<z.ZodNumber>;
388
+ }, "strip", z.ZodTypeAny, {
389
+ product: import("mongoose").Types.ObjectId;
390
+ value?: number | undefined;
391
+ marketing?: import("mongoose").Types.ObjectId | undefined;
392
+ loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
393
+ isBuy1Get1?: boolean | undefined;
394
+ valueType?: ValueType | null | undefined;
395
+ }, {
396
+ product: string | import("mongoose").Types.ObjectId;
397
+ value?: number | undefined;
398
+ marketing?: string | import("mongoose").Types.ObjectId | undefined;
399
+ loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
400
+ isBuy1Get1?: boolean | undefined;
401
+ valueType?: ValueType | null | undefined;
402
+ }>, "many">>>;
403
+ maxDiscountPerOrder: z.ZodDefault<z.ZodNumber>;
404
+ spendLimit: z.ZodDefault<z.ZodNumber>;
405
+ isOnlyForSubscriber: z.ZodDefault<z.ZodBoolean>;
406
+ 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>]>;
407
+ isAppliedByCompany: z.ZodBoolean;
408
+ duration: z.ZodObject<{
409
+ 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>;
410
+ 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>>;
411
+ }, "strip", z.ZodTypeAny, {
412
+ start: Date;
413
+ end?: Date | undefined;
414
+ }, {
415
+ start: string | Date;
416
+ end?: string | Date | undefined;
417
+ }>;
418
+ status: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>;
419
+ 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>>>>;
420
+ }, "strict", z.ZodTypeAny, {
421
+ isAppliedByCompany: boolean;
422
+ shop: import("mongoose").Types.ObjectId;
423
+ value: number;
424
+ status: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus;
425
+ marketingType: MarketingType.DISCOUNT;
426
+ duration: {
427
+ start: Date;
428
+ end?: Date | undefined;
429
+ };
430
+ pausedAt: Date | null;
431
+ valueType: ValueType;
432
+ products: {
433
+ product: import("mongoose").Types.ObjectId;
434
+ value?: number | undefined;
435
+ marketing?: import("mongoose").Types.ObjectId | undefined;
436
+ loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
437
+ isBuy1Get1?: boolean | undefined;
438
+ valueType?: ValueType | null | undefined;
439
+ }[];
440
+ isEntireMenu: boolean;
441
+ spendLimit: number;
442
+ isOnlyForSubscriber: boolean;
443
+ maxDiscountPerOrder: number;
444
+ }, {
445
+ isAppliedByCompany: boolean;
446
+ shop: string | import("mongoose").Types.ObjectId;
447
+ value: number;
448
+ marketingType: MarketingType.DISCOUNT;
449
+ duration: {
450
+ start: string | Date;
451
+ end?: string | Date | undefined;
452
+ };
453
+ valueType: ValueType;
454
+ status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
455
+ pausedAt?: string | Date | null | undefined;
456
+ products?: {
457
+ product: string | import("mongoose").Types.ObjectId;
458
+ value?: number | undefined;
459
+ marketing?: string | import("mongoose").Types.ObjectId | undefined;
460
+ loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
461
+ isBuy1Get1?: boolean | undefined;
462
+ valueType?: ValueType | null | undefined;
463
+ }[] | undefined;
464
+ isEntireMenu?: boolean | undefined;
465
+ spendLimit?: number | undefined;
466
+ isOnlyForSubscriber?: boolean | undefined;
467
+ maxDiscountPerOrder?: number | undefined;
468
+ }>, {
469
+ isAppliedByCompany: boolean;
470
+ shop: import("mongoose").Types.ObjectId;
471
+ value: number;
472
+ status: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus;
473
+ marketingType: MarketingType.DISCOUNT;
474
+ duration: {
475
+ start: Date;
476
+ end?: Date | undefined;
477
+ };
478
+ pausedAt: Date | null;
479
+ valueType: ValueType;
480
+ products: {
481
+ product: import("mongoose").Types.ObjectId;
482
+ value?: number | undefined;
483
+ marketing?: import("mongoose").Types.ObjectId | undefined;
484
+ loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
485
+ isBuy1Get1?: boolean | undefined;
486
+ valueType?: ValueType | null | undefined;
487
+ }[];
488
+ isEntireMenu: boolean;
489
+ spendLimit: number;
490
+ isOnlyForSubscriber: boolean;
491
+ maxDiscountPerOrder: number;
492
+ }, {
493
+ isAppliedByCompany: boolean;
494
+ shop: string | import("mongoose").Types.ObjectId;
495
+ value: number;
496
+ marketingType: MarketingType.DISCOUNT;
497
+ duration: {
498
+ start: string | Date;
499
+ end?: string | Date | undefined;
500
+ };
501
+ valueType: ValueType;
502
+ status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
503
+ pausedAt?: string | Date | null | undefined;
504
+ products?: {
505
+ product: string | import("mongoose").Types.ObjectId;
506
+ value?: number | undefined;
507
+ marketing?: string | import("mongoose").Types.ObjectId | undefined;
508
+ loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
509
+ isBuy1Get1?: boolean | undefined;
510
+ valueType?: ValueType | null | undefined;
511
+ }[] | undefined;
512
+ isEntireMenu?: boolean | undefined;
513
+ spendLimit?: number | undefined;
514
+ isOnlyForSubscriber?: boolean | undefined;
515
+ maxDiscountPerOrder?: number | undefined;
516
+ }>;
517
+ /**
518
+ * Export schemas
519
+ */
520
+ export { DiscountMarketingValidationSchemaRefined as DiscountMarketingValidationSchema, DiscountMarketingSchema, DiscountMarketingIdSchema as DiscountMarketingIdValidationSchema, UpdateDiscountMarketingSchema, };
521
+ /**
522
+ * Export DTO types
523
+ */
524
+ export type CreateDiscountMarketingDTO = DTO<typeof DiscountMarketingValidationSchema>;
525
+ export type DiscountMarketingDTO = DTO<typeof DiscountMarketingSchema>;
526
+ export type UpdateDiscountMarketingDTO = DTO<typeof UpdateDiscountMarketingSchema>;
527
+ //# sourceMappingURL=discount-marketing.validation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"discount-marketing.validation.d.ts","sourceRoot":"/","sources":["modules/marketing/validations/discount-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;AA0B7E;;GAEG;AACH,QAAA,MACa,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAC/B,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAC3B,yBAAyB,mNACrB,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCACQ,CAAC;AAErD,QAAA,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAY7C,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"}