@lyxa.ai/marketing 1.0.26 → 1.0.28

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 (89) hide show
  1. package/dist/lib/index.d.ts +11 -4
  2. package/dist/lib/index.d.ts.map +1 -1
  3. package/dist/lib/modules/coupon/routers/coupon.router.d.ts +7 -0
  4. package/dist/lib/modules/coupon/routers/coupon.router.d.ts.map +1 -1
  5. package/dist/lib/modules/coupon/routers/coupon.router.js +6 -0
  6. package/dist/lib/modules/coupon/routers/coupon.router.js.map +1 -1
  7. package/dist/lib/modules/coupon/services/coupon.service.d.ts +1 -0
  8. package/dist/lib/modules/coupon/services/coupon.service.d.ts.map +1 -1
  9. package/dist/lib/modules/coupon/services/coupon.service.js +22 -0
  10. package/dist/lib/modules/coupon/services/coupon.service.js.map +1 -1
  11. package/dist/lib/modules/marketing/routers/marketing.router.d.ts +4 -4
  12. package/dist/lib/modules/marketing/routers/marketing.router.d.ts.map +1 -1
  13. package/dist/lib/modules/marketing/routers/marketing.router.js +0 -2
  14. package/dist/lib/modules/marketing/routers/marketing.router.js.map +1 -1
  15. package/dist/lib/modules/marketing/services/buy1-get1-marketing.service.d.ts.map +1 -1
  16. package/dist/lib/modules/marketing/services/buy1-get1-marketing.service.js +38 -18
  17. package/dist/lib/modules/marketing/services/buy1-get1-marketing.service.js.map +1 -1
  18. package/dist/lib/modules/marketing/services/discount-marketing.service.d.ts.map +1 -1
  19. package/dist/lib/modules/marketing/services/discount-marketing.service.js +37 -17
  20. package/dist/lib/modules/marketing/services/discount-marketing.service.js.map +1 -1
  21. package/dist/lib/modules/marketing/services/marketing.service.d.ts.map +1 -1
  22. package/dist/lib/modules/marketing/services/marketing.service.js +4 -1
  23. package/dist/lib/modules/marketing/services/marketing.service.js.map +1 -1
  24. package/dist/lib/modules/marketing/transformers/buy1-get1-marketing.transformer.d.ts +2 -0
  25. package/dist/lib/modules/marketing/transformers/buy1-get1-marketing.transformer.d.ts.map +1 -1
  26. package/dist/lib/modules/marketing/transformers/discount-marketing.transformer.d.ts +2 -0
  27. package/dist/lib/modules/marketing/transformers/discount-marketing.transformer.d.ts.map +1 -1
  28. package/dist/lib/modules/marketing/transformers/featured-marketing.transformer.d.ts +1 -0
  29. package/dist/lib/modules/marketing/transformers/featured-marketing.transformer.d.ts.map +1 -1
  30. package/dist/lib/modules/marketing/transformers/free-delivery-marketing.transformer.d.ts +1 -0
  31. package/dist/lib/modules/marketing/transformers/free-delivery-marketing.transformer.d.ts.map +1 -1
  32. package/dist/lib/modules/marketing/transformers/punch-marketing.transformer.d.ts +1 -0
  33. package/dist/lib/modules/marketing/transformers/punch-marketing.transformer.d.ts.map +1 -1
  34. package/dist/lib/modules/marketing/validations/buy1-get1-marketing.validation.d.ts +28 -0
  35. package/dist/lib/modules/marketing/validations/buy1-get1-marketing.validation.d.ts.map +1 -1
  36. package/dist/lib/modules/marketing/validations/buy1-get1-marketing.validation.js +1 -0
  37. package/dist/lib/modules/marketing/validations/buy1-get1-marketing.validation.js.map +1 -1
  38. package/dist/lib/modules/marketing/validations/discount-marketing.validation.d.ts +254 -123
  39. package/dist/lib/modules/marketing/validations/discount-marketing.validation.d.ts.map +1 -1
  40. package/dist/lib/modules/marketing/validations/discount-marketing.validation.js +19 -3
  41. package/dist/lib/modules/marketing/validations/discount-marketing.validation.js.map +1 -1
  42. package/dist/lib/modules/marketing/validations/featured-marketing.validation.d.ts +14 -0
  43. package/dist/lib/modules/marketing/validations/featured-marketing.validation.d.ts.map +1 -1
  44. package/dist/lib/modules/marketing/validations/free-delivery-marketing.validation.d.ts +107 -26
  45. package/dist/lib/modules/marketing/validations/free-delivery-marketing.validation.d.ts.map +1 -1
  46. package/dist/lib/modules/marketing/validations/free-delivery-marketing.validation.js +34 -2
  47. package/dist/lib/modules/marketing/validations/free-delivery-marketing.validation.js.map +1 -1
  48. package/dist/lib/modules/marketing/validations/marketing.validation.d.ts +10 -0
  49. package/dist/lib/modules/marketing/validations/marketing.validation.d.ts.map +1 -1
  50. package/dist/lib/modules/marketing/validations/marketing.validation.js +1 -0
  51. package/dist/lib/modules/marketing/validations/marketing.validation.js.map +1 -1
  52. package/dist/lib/modules/marketing/validations/punch-marketing.validation.d.ts +127 -30
  53. package/dist/lib/modules/marketing/validations/punch-marketing.validation.d.ts.map +1 -1
  54. package/dist/lib/modules/marketing/validations/punch-marketing.validation.js +80 -2
  55. package/dist/lib/modules/marketing/validations/punch-marketing.validation.js.map +1 -1
  56. package/dist/types/index.d.ts +11 -4
  57. package/dist/types/index.d.ts.map +1 -1
  58. package/dist/types/modules/coupon/routers/coupon.router.d.ts +7 -0
  59. package/dist/types/modules/coupon/routers/coupon.router.d.ts.map +1 -1
  60. package/dist/types/modules/coupon/services/coupon.service.d.ts +1 -0
  61. package/dist/types/modules/coupon/services/coupon.service.d.ts.map +1 -1
  62. package/dist/types/modules/marketing/routers/marketing.router.d.ts +4 -4
  63. package/dist/types/modules/marketing/routers/marketing.router.d.ts.map +1 -1
  64. package/dist/types/modules/marketing/services/buy1-get1-marketing.service.d.ts.map +1 -1
  65. package/dist/types/modules/marketing/services/discount-marketing.service.d.ts.map +1 -1
  66. package/dist/types/modules/marketing/services/marketing.service.d.ts.map +1 -1
  67. package/dist/types/modules/marketing/transformers/buy1-get1-marketing.transformer.d.ts +2 -0
  68. package/dist/types/modules/marketing/transformers/buy1-get1-marketing.transformer.d.ts.map +1 -1
  69. package/dist/types/modules/marketing/transformers/discount-marketing.transformer.d.ts +2 -0
  70. package/dist/types/modules/marketing/transformers/discount-marketing.transformer.d.ts.map +1 -1
  71. package/dist/types/modules/marketing/transformers/featured-marketing.transformer.d.ts +1 -0
  72. package/dist/types/modules/marketing/transformers/featured-marketing.transformer.d.ts.map +1 -1
  73. package/dist/types/modules/marketing/transformers/free-delivery-marketing.transformer.d.ts +1 -0
  74. package/dist/types/modules/marketing/transformers/free-delivery-marketing.transformer.d.ts.map +1 -1
  75. package/dist/types/modules/marketing/transformers/punch-marketing.transformer.d.ts +1 -0
  76. package/dist/types/modules/marketing/transformers/punch-marketing.transformer.d.ts.map +1 -1
  77. package/dist/types/modules/marketing/validations/buy1-get1-marketing.validation.d.ts +28 -0
  78. package/dist/types/modules/marketing/validations/buy1-get1-marketing.validation.d.ts.map +1 -1
  79. package/dist/types/modules/marketing/validations/discount-marketing.validation.d.ts +254 -123
  80. package/dist/types/modules/marketing/validations/discount-marketing.validation.d.ts.map +1 -1
  81. package/dist/types/modules/marketing/validations/featured-marketing.validation.d.ts +14 -0
  82. package/dist/types/modules/marketing/validations/featured-marketing.validation.d.ts.map +1 -1
  83. package/dist/types/modules/marketing/validations/free-delivery-marketing.validation.d.ts +107 -26
  84. package/dist/types/modules/marketing/validations/free-delivery-marketing.validation.d.ts.map +1 -1
  85. package/dist/types/modules/marketing/validations/marketing.validation.d.ts +10 -0
  86. package/dist/types/modules/marketing/validations/marketing.validation.d.ts.map +1 -1
  87. package/dist/types/modules/marketing/validations/punch-marketing.validation.d.ts +127 -30
  88. package/dist/types/modules/marketing/validations/punch-marketing.validation.d.ts.map +1 -1
  89. package/package.json +2 -2
@@ -31,6 +31,7 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
31
31
  isBuy1Get1?: boolean | undefined;
32
32
  valueType?: ValueType | null | undefined;
33
33
  }>, "many">>>;
34
+ excludeProducts: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
34
35
  maxDiscountPerOrder: z.ZodDefault<z.ZodNumber>;
35
36
  isMaxDiscountPerOrderEnabled: z.ZodDefault<z.ZodBoolean>;
36
37
  spendLimit: z.ZodDefault<z.ZodNumber>;
@@ -50,6 +51,7 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
50
51
  }>;
51
52
  status: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>;
52
53
  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>>>>;
54
+ admin: z.ZodNullable<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>]>>>;
53
55
  }, "strict", z.ZodTypeAny, {
54
56
  isAppliedByCompany: boolean;
55
57
  shop: import("mongoose").Types.ObjectId;
@@ -69,12 +71,14 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
69
71
  }[];
70
72
  categories: import("mongoose").Types.ObjectId[];
71
73
  isEntireMenu: boolean;
74
+ excludeProducts: import("mongoose").Types.ObjectId[];
72
75
  spendLimit: number;
73
76
  isSpendLimitEnabled: boolean;
74
77
  isOnlyForSubscriber: boolean;
75
78
  maxDiscountPerOrder: number;
76
79
  isMaxDiscountPerOrderEnabled: boolean;
77
80
  value?: number | undefined;
81
+ admin?: import("mongoose").Types.ObjectId | null | undefined;
78
82
  valueType?: ValueType | undefined;
79
83
  categoryValueType?: ValueType | undefined;
80
84
  categoryValue?: number | undefined;
@@ -89,6 +93,7 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
89
93
  value?: number | undefined;
90
94
  status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
91
95
  pausedAt?: string | Date | null | undefined;
96
+ admin?: string | import("mongoose").Types.ObjectId | null | undefined;
92
97
  valueType?: ValueType | undefined;
93
98
  products?: {
94
99
  product: string | import("mongoose").Types.ObjectId;
@@ -99,6 +104,7 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
99
104
  }[] | undefined;
100
105
  categories?: (string | import("mongoose").Types.ObjectId)[] | undefined;
101
106
  isEntireMenu?: boolean | undefined;
107
+ excludeProducts?: (string | import("mongoose").Types.ObjectId)[] | undefined;
102
108
  spendLimit?: number | undefined;
103
109
  isSpendLimitEnabled?: boolean | undefined;
104
110
  isOnlyForSubscriber?: boolean | undefined;
@@ -133,6 +139,7 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
133
139
  isBuy1Get1?: boolean | undefined;
134
140
  valueType?: ValueType | null | undefined;
135
141
  }>, "many">>>>;
142
+ excludeProducts: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>>;
136
143
  maxDiscountPerOrder: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
137
144
  isMaxDiscountPerOrderEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
138
145
  spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
@@ -152,6 +159,7 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
152
159
  }>>;
153
160
  status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
154
161
  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>>>>>;
162
+ admin: z.ZodOptional<z.ZodNullable<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>]>>>>;
155
163
  _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>]>>;
156
164
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
157
165
  marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.DISCOUNT>>;
@@ -180,6 +188,7 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
180
188
  isBuy1Get1?: boolean | undefined;
181
189
  valueType?: ValueType | null | undefined;
182
190
  }>, "many">>>>;
191
+ excludeProducts: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>>;
183
192
  maxDiscountPerOrder: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
184
193
  isMaxDiscountPerOrderEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
185
194
  spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
@@ -199,6 +208,7 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
199
208
  }>>;
200
209
  status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
201
210
  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>>>>>;
211
+ admin: z.ZodOptional<z.ZodNullable<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>]>>>>;
202
212
  _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>]>>;
203
213
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
204
214
  marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.DISCOUNT>>;
@@ -227,6 +237,7 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
227
237
  isBuy1Get1?: boolean | undefined;
228
238
  valueType?: ValueType | null | undefined;
229
239
  }>, "many">>>>;
240
+ excludeProducts: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>>;
230
241
  maxDiscountPerOrder: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
231
242
  isMaxDiscountPerOrderEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
232
243
  spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
@@ -246,14 +257,189 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
246
257
  }>>;
247
258
  status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
248
259
  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>>>>>;
260
+ admin: z.ZodOptional<z.ZodNullable<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
261
  _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>]>>;
250
- }, 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<{
262
+ }, 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>]>;
263
+ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject<{
264
+ marketingType: z.ZodLiteral<MarketingType.DISCOUNT>;
265
+ categoryValueType: z.ZodOptional<z.ZodNativeEnum<typeof ValueType>>;
266
+ categoryValue: z.ZodOptional<z.ZodNumber>;
267
+ categories: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
268
+ isEntireMenu: z.ZodDefault<z.ZodBoolean>;
269
+ valueType: z.ZodOptional<z.ZodNativeEnum<typeof ValueType>>;
270
+ value: z.ZodOptional<z.ZodNumber>;
271
+ products: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
272
+ 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>]>;
273
+ 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>]>>;
274
+ isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
275
+ valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>;
276
+ value: z.ZodOptional<z.ZodNumber>;
277
+ }, "strip", z.ZodTypeAny, {
278
+ product: import("mongoose").Types.ObjectId;
279
+ value?: number | undefined;
280
+ marketing?: import("mongoose").Types.ObjectId | undefined;
281
+ isBuy1Get1?: boolean | undefined;
282
+ valueType?: ValueType | null | undefined;
283
+ }, {
284
+ product: string | import("mongoose").Types.ObjectId;
285
+ value?: number | undefined;
286
+ marketing?: string | import("mongoose").Types.ObjectId | undefined;
287
+ isBuy1Get1?: boolean | undefined;
288
+ valueType?: ValueType | null | undefined;
289
+ }>, "many">>>;
290
+ excludeProducts: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
291
+ maxDiscountPerOrder: z.ZodDefault<z.ZodNumber>;
292
+ isMaxDiscountPerOrderEnabled: z.ZodDefault<z.ZodBoolean>;
293
+ spendLimit: z.ZodDefault<z.ZodNumber>;
294
+ isSpendLimitEnabled: z.ZodDefault<z.ZodBoolean>;
295
+ isOnlyForSubscriber: z.ZodDefault<z.ZodBoolean>;
296
+ 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>]>;
297
+ isAppliedByCompany: z.ZodBoolean;
298
+ duration: z.ZodObject<{
299
+ 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>;
300
+ 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>>;
301
+ }, "strip", z.ZodTypeAny, {
302
+ start: Date;
303
+ end?: Date | undefined;
304
+ }, {
305
+ start: string | Date;
306
+ end?: string | Date | undefined;
307
+ }>;
308
+ status: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>;
309
+ 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>>>>;
310
+ admin: z.ZodNullable<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>]>>>;
311
+ }, "strict", z.ZodTypeAny, {
312
+ isAppliedByCompany: boolean;
313
+ shop: import("mongoose").Types.ObjectId;
314
+ status: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus;
315
+ marketingType: MarketingType.DISCOUNT;
316
+ duration: {
317
+ start: Date;
318
+ end?: Date | undefined;
319
+ };
320
+ pausedAt: Date | null;
321
+ products: {
322
+ product: import("mongoose").Types.ObjectId;
323
+ value?: number | undefined;
324
+ marketing?: import("mongoose").Types.ObjectId | undefined;
325
+ isBuy1Get1?: boolean | undefined;
326
+ valueType?: ValueType | null | undefined;
327
+ }[];
328
+ categories: import("mongoose").Types.ObjectId[];
329
+ isEntireMenu: boolean;
330
+ excludeProducts: import("mongoose").Types.ObjectId[];
331
+ spendLimit: number;
332
+ isSpendLimitEnabled: boolean;
333
+ isOnlyForSubscriber: boolean;
334
+ maxDiscountPerOrder: number;
335
+ isMaxDiscountPerOrderEnabled: boolean;
336
+ value?: number | undefined;
337
+ admin?: import("mongoose").Types.ObjectId | null | undefined;
338
+ valueType?: ValueType | undefined;
339
+ categoryValueType?: ValueType | undefined;
340
+ categoryValue?: number | undefined;
341
+ }, {
342
+ isAppliedByCompany: boolean;
343
+ shop: string | import("mongoose").Types.ObjectId;
344
+ marketingType: MarketingType.DISCOUNT;
345
+ duration: {
346
+ start: string | Date;
347
+ end?: string | Date | undefined;
348
+ };
349
+ value?: number | undefined;
350
+ status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
351
+ pausedAt?: string | Date | null | undefined;
352
+ admin?: string | import("mongoose").Types.ObjectId | null | undefined;
353
+ valueType?: ValueType | undefined;
354
+ products?: {
355
+ product: string | import("mongoose").Types.ObjectId;
356
+ value?: number | undefined;
357
+ marketing?: string | import("mongoose").Types.ObjectId | undefined;
358
+ isBuy1Get1?: boolean | undefined;
359
+ valueType?: ValueType | null | undefined;
360
+ }[] | undefined;
361
+ categories?: (string | import("mongoose").Types.ObjectId)[] | undefined;
362
+ isEntireMenu?: boolean | undefined;
363
+ excludeProducts?: (string | import("mongoose").Types.ObjectId)[] | undefined;
364
+ spendLimit?: number | undefined;
365
+ isSpendLimitEnabled?: boolean | undefined;
366
+ isOnlyForSubscriber?: boolean | undefined;
367
+ categoryValueType?: ValueType | undefined;
368
+ categoryValue?: number | undefined;
369
+ maxDiscountPerOrder?: number | undefined;
370
+ isMaxDiscountPerOrderEnabled?: boolean | undefined;
371
+ }>, {
372
+ isAppliedByCompany: boolean;
373
+ shop: import("mongoose").Types.ObjectId;
374
+ status: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus;
375
+ marketingType: MarketingType.DISCOUNT;
376
+ duration: {
377
+ start: Date;
378
+ end?: Date | undefined;
379
+ };
380
+ pausedAt: Date | null;
381
+ products: {
382
+ product: import("mongoose").Types.ObjectId;
383
+ value?: number | undefined;
384
+ marketing?: import("mongoose").Types.ObjectId | undefined;
385
+ isBuy1Get1?: boolean | undefined;
386
+ valueType?: ValueType | null | undefined;
387
+ }[];
388
+ categories: import("mongoose").Types.ObjectId[];
389
+ isEntireMenu: boolean;
390
+ excludeProducts: import("mongoose").Types.ObjectId[];
391
+ spendLimit: number;
392
+ isSpendLimitEnabled: boolean;
393
+ isOnlyForSubscriber: boolean;
394
+ maxDiscountPerOrder: number;
395
+ isMaxDiscountPerOrderEnabled: boolean;
396
+ value?: number | undefined;
397
+ admin?: import("mongoose").Types.ObjectId | null | undefined;
398
+ valueType?: ValueType | undefined;
399
+ categoryValueType?: ValueType | undefined;
400
+ categoryValue?: number | undefined;
401
+ }, {
402
+ isAppliedByCompany: boolean;
403
+ shop: string | import("mongoose").Types.ObjectId;
404
+ marketingType: MarketingType.DISCOUNT;
405
+ duration: {
406
+ start: string | Date;
407
+ end?: string | Date | undefined;
408
+ };
409
+ value?: number | undefined;
410
+ status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
411
+ pausedAt?: string | Date | null | undefined;
412
+ admin?: string | import("mongoose").Types.ObjectId | null | undefined;
413
+ valueType?: ValueType | undefined;
414
+ products?: {
415
+ product: string | import("mongoose").Types.ObjectId;
416
+ value?: number | undefined;
417
+ marketing?: string | import("mongoose").Types.ObjectId | undefined;
418
+ isBuy1Get1?: boolean | undefined;
419
+ valueType?: ValueType | null | undefined;
420
+ }[] | undefined;
421
+ categories?: (string | import("mongoose").Types.ObjectId)[] | undefined;
422
+ isEntireMenu?: boolean | undefined;
423
+ excludeProducts?: (string | import("mongoose").Types.ObjectId)[] | undefined;
424
+ spendLimit?: number | undefined;
425
+ isSpendLimitEnabled?: boolean | undefined;
426
+ isOnlyForSubscriber?: boolean | undefined;
427
+ categoryValueType?: ValueType | undefined;
428
+ categoryValue?: number | undefined;
429
+ maxDiscountPerOrder?: number | undefined;
430
+ isMaxDiscountPerOrderEnabled?: boolean | undefined;
431
+ }>;
432
+ declare const UpdateDiscountMarketingSchema: z.ZodEffects<z.ZodObject<{
251
433
  [x: string]: z.ZodOptional<z.ZodTypeAny>;
252
434
  }, "strict", z.ZodTypeAny, {
253
435
  [x: string]: any;
254
436
  }, {
255
437
  [x: string]: any;
256
- }> | z.ZodObject<{
438
+ }>, {
439
+ [x: string]: any;
440
+ }, {
441
+ [x: string]: any;
442
+ }> | z.ZodEffects<z.ZodObject<{
257
443
  marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.DISCOUNT>>;
258
444
  categoryValueType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ValueType>>>;
259
445
  categoryValue: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
@@ -280,6 +466,7 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
280
466
  isBuy1Get1?: boolean | undefined;
281
467
  valueType?: ValueType | null | undefined;
282
468
  }>, "many">>>>;
469
+ excludeProducts: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>>;
283
470
  maxDiscountPerOrder: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
284
471
  isMaxDiscountPerOrderEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
285
472
  spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
@@ -299,6 +486,7 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
299
486
  }>>;
300
487
  status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
301
488
  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>>>>>;
489
+ admin: z.ZodOptional<z.ZodNullable<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>]>>>>;
302
490
  _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>]>>;
303
491
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
304
492
  marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.DISCOUNT>>;
@@ -327,6 +515,7 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
327
515
  isBuy1Get1?: boolean | undefined;
328
516
  valueType?: ValueType | null | undefined;
329
517
  }>, "many">>>>;
518
+ excludeProducts: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>>;
330
519
  maxDiscountPerOrder: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
331
520
  isMaxDiscountPerOrderEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
332
521
  spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
@@ -346,6 +535,7 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
346
535
  }>>;
347
536
  status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
348
537
  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>>>>>;
538
+ admin: z.ZodOptional<z.ZodNullable<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>]>>>>;
349
539
  _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>]>>;
350
540
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
351
541
  marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.DISCOUNT>>;
@@ -374,6 +564,7 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
374
564
  isBuy1Get1?: boolean | undefined;
375
565
  valueType?: ValueType | null | undefined;
376
566
  }>, "many">>>>;
567
+ excludeProducts: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>>;
377
568
  maxDiscountPerOrder: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
378
569
  isMaxDiscountPerOrderEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
379
570
  spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
@@ -393,17 +584,17 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
393
584
  }>>;
394
585
  status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
395
586
  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>>>>>;
587
+ admin: z.ZodOptional<z.ZodNullable<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>]>>>>;
396
588
  _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>]>>;
397
- }, z.ZodTypeAny, "passthrough">>;
398
- declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject<{
399
- marketingType: z.ZodLiteral<MarketingType.DISCOUNT>;
400
- categoryValueType: z.ZodOptional<z.ZodNativeEnum<typeof ValueType>>;
401
- categoryValue: z.ZodOptional<z.ZodNumber>;
402
- categories: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
403
- isEntireMenu: z.ZodDefault<z.ZodBoolean>;
404
- valueType: z.ZodOptional<z.ZodNativeEnum<typeof ValueType>>;
405
- value: z.ZodOptional<z.ZodNumber>;
406
- products: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
589
+ }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
590
+ marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.DISCOUNT>>;
591
+ categoryValueType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ValueType>>>;
592
+ categoryValue: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
593
+ categories: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>>;
594
+ isEntireMenu: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
595
+ valueType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ValueType>>>;
596
+ value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
597
+ products: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
407
598
  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>]>;
408
599
  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>]>>;
409
600
  isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
@@ -421,15 +612,16 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
421
612
  marketing?: string | import("mongoose").Types.ObjectId | undefined;
422
613
  isBuy1Get1?: boolean | undefined;
423
614
  valueType?: ValueType | null | undefined;
424
- }>, "many">>>;
425
- maxDiscountPerOrder: z.ZodDefault<z.ZodNumber>;
426
- isMaxDiscountPerOrderEnabled: z.ZodDefault<z.ZodBoolean>;
427
- spendLimit: z.ZodDefault<z.ZodNumber>;
428
- isSpendLimitEnabled: z.ZodDefault<z.ZodBoolean>;
429
- isOnlyForSubscriber: z.ZodDefault<z.ZodBoolean>;
430
- 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>]>;
431
- isAppliedByCompany: z.ZodBoolean;
432
- duration: z.ZodObject<{
615
+ }>, "many">>>>;
616
+ excludeProducts: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>>;
617
+ maxDiscountPerOrder: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
618
+ isMaxDiscountPerOrderEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
619
+ spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
620
+ isSpendLimitEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
621
+ isOnlyForSubscriber: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
622
+ 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>]>>;
623
+ isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
624
+ duration: z.ZodOptional<z.ZodObject<{
433
625
  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>;
434
626
  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>>;
435
627
  }, "strip", z.ZodTypeAny, {
@@ -438,122 +630,61 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
438
630
  }, {
439
631
  start: string | Date;
440
632
  end?: string | Date | undefined;
441
- }>;
442
- status: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>;
443
- 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>>>>;
444
- }, "strict", z.ZodTypeAny, {
445
- isAppliedByCompany: boolean;
446
- shop: import("mongoose").Types.ObjectId;
447
- status: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus;
448
- marketingType: MarketingType.DISCOUNT;
449
- duration: {
450
- start: Date;
451
- end?: Date | undefined;
452
- };
453
- pausedAt: Date | null;
454
- products: {
633
+ }>>;
634
+ status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
635
+ 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>>>>>;
636
+ admin: z.ZodOptional<z.ZodNullable<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>]>>>>;
637
+ _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>]>>;
638
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
639
+ marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.DISCOUNT>>;
640
+ categoryValueType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ValueType>>>;
641
+ categoryValue: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
642
+ categories: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>>;
643
+ isEntireMenu: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
644
+ valueType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ValueType>>>;
645
+ value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
646
+ products: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
647
+ 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>]>;
648
+ 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>]>>;
649
+ isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
650
+ valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>;
651
+ value: z.ZodOptional<z.ZodNumber>;
652
+ }, "strip", z.ZodTypeAny, {
455
653
  product: import("mongoose").Types.ObjectId;
456
654
  value?: number | undefined;
457
655
  marketing?: import("mongoose").Types.ObjectId | undefined;
458
656
  isBuy1Get1?: boolean | undefined;
459
657
  valueType?: ValueType | null | undefined;
460
- }[];
461
- categories: import("mongoose").Types.ObjectId[];
462
- isEntireMenu: boolean;
463
- spendLimit: number;
464
- isSpendLimitEnabled: boolean;
465
- isOnlyForSubscriber: boolean;
466
- maxDiscountPerOrder: number;
467
- isMaxDiscountPerOrderEnabled: boolean;
468
- value?: number | undefined;
469
- valueType?: ValueType | undefined;
470
- categoryValueType?: ValueType | undefined;
471
- categoryValue?: number | undefined;
472
- }, {
473
- isAppliedByCompany: boolean;
474
- shop: string | import("mongoose").Types.ObjectId;
475
- marketingType: MarketingType.DISCOUNT;
476
- duration: {
477
- start: string | Date;
478
- end?: string | Date | undefined;
479
- };
480
- value?: number | undefined;
481
- status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
482
- pausedAt?: string | Date | null | undefined;
483
- valueType?: ValueType | undefined;
484
- products?: {
658
+ }, {
485
659
  product: string | import("mongoose").Types.ObjectId;
486
660
  value?: number | undefined;
487
661
  marketing?: string | import("mongoose").Types.ObjectId | undefined;
488
662
  isBuy1Get1?: boolean | undefined;
489
663
  valueType?: ValueType | null | undefined;
490
- }[] | undefined;
491
- categories?: (string | import("mongoose").Types.ObjectId)[] | undefined;
492
- isEntireMenu?: boolean | undefined;
493
- spendLimit?: number | undefined;
494
- isSpendLimitEnabled?: boolean | undefined;
495
- isOnlyForSubscriber?: boolean | undefined;
496
- categoryValueType?: ValueType | undefined;
497
- categoryValue?: number | undefined;
498
- maxDiscountPerOrder?: number | undefined;
499
- isMaxDiscountPerOrderEnabled?: boolean | undefined;
500
- }>, {
501
- isAppliedByCompany: boolean;
502
- shop: import("mongoose").Types.ObjectId;
503
- status: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus;
504
- marketingType: MarketingType.DISCOUNT;
505
- duration: {
664
+ }>, "many">>>>;
665
+ excludeProducts: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>>;
666
+ maxDiscountPerOrder: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
667
+ isMaxDiscountPerOrderEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
668
+ spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
669
+ isSpendLimitEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
670
+ isOnlyForSubscriber: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
671
+ 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>]>>;
672
+ isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
673
+ duration: z.ZodOptional<z.ZodObject<{
674
+ 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>;
675
+ 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>>;
676
+ }, "strip", z.ZodTypeAny, {
506
677
  start: Date;
507
678
  end?: Date | undefined;
508
- };
509
- pausedAt: Date | null;
510
- products: {
511
- product: import("mongoose").Types.ObjectId;
512
- value?: number | undefined;
513
- marketing?: import("mongoose").Types.ObjectId | undefined;
514
- isBuy1Get1?: boolean | undefined;
515
- valueType?: ValueType | null | undefined;
516
- }[];
517
- categories: import("mongoose").Types.ObjectId[];
518
- isEntireMenu: boolean;
519
- spendLimit: number;
520
- isSpendLimitEnabled: boolean;
521
- isOnlyForSubscriber: boolean;
522
- maxDiscountPerOrder: number;
523
- isMaxDiscountPerOrderEnabled: boolean;
524
- value?: number | undefined;
525
- valueType?: ValueType | undefined;
526
- categoryValueType?: ValueType | undefined;
527
- categoryValue?: number | undefined;
528
- }, {
529
- isAppliedByCompany: boolean;
530
- shop: string | import("mongoose").Types.ObjectId;
531
- marketingType: MarketingType.DISCOUNT;
532
- duration: {
679
+ }, {
533
680
  start: string | Date;
534
681
  end?: string | Date | undefined;
535
- };
536
- value?: number | undefined;
537
- status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
538
- pausedAt?: string | Date | null | undefined;
539
- valueType?: ValueType | undefined;
540
- products?: {
541
- product: string | import("mongoose").Types.ObjectId;
542
- value?: number | undefined;
543
- marketing?: string | import("mongoose").Types.ObjectId | undefined;
544
- isBuy1Get1?: boolean | undefined;
545
- valueType?: ValueType | null | undefined;
546
- }[] | undefined;
547
- categories?: (string | import("mongoose").Types.ObjectId)[] | undefined;
548
- isEntireMenu?: boolean | undefined;
549
- spendLimit?: number | undefined;
550
- isSpendLimitEnabled?: boolean | undefined;
551
- isOnlyForSubscriber?: boolean | undefined;
552
- categoryValueType?: ValueType | undefined;
553
- categoryValue?: number | undefined;
554
- maxDiscountPerOrder?: number | undefined;
555
- isMaxDiscountPerOrderEnabled?: boolean | undefined;
556
- }>;
682
+ }>>;
683
+ status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>>;
684
+ 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>>>>>;
685
+ admin: z.ZodOptional<z.ZodNullable<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>]>>>>;
686
+ _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>]>>;
687
+ }, z.ZodTypeAny, "passthrough">>;
557
688
  /**
558
689
  * Export schemas
559
690
  */
@@ -1 +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;AA+B7E;;GAEG;AACH,QAAA,MACa,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAC/B,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAC3B,yBAAyB,mNACrB,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCACQ,CAAC;AAErD,QAAA,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoC7C,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"}
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;AAkC7E;;GAEG;AACH,QAAA,MACa,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAC/B,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAC3B,yBAAyB,iNAEgB,CAAC;AAErD,QAAA,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyC7C,CAAC;AAEF,QAAA,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAYlC,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"}