@lyxa.ai/marketing 1.0.11 → 1.0.13
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.
- package/dist/lib/index.js +6 -8
- package/dist/types/index.d.ts +223 -1314
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/modules/coupon/routers/coupon.router.d.ts +23 -0
- package/dist/types/modules/coupon/routers/coupon.router.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/coupon.service.d.ts +2 -1
- package/dist/types/modules/coupon/services/coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/patterns/repository/CouponRepository.d.ts +1 -0
- package/dist/types/modules/coupon/services/patterns/repository/CouponRepository.d.ts.map +1 -1
- package/dist/types/modules/deal-setting/routers/deal-setting.router.d.ts.map +1 -1
- package/dist/types/modules/featured-setting/routers/featured-setting.router.d.ts.map +1 -1
- package/dist/types/modules/marketing/routers/marketing.router.d.ts.map +1 -1
- package/dist/types/modules/marketing/services/index.d.ts +0 -1
- package/dist/types/modules/marketing/services/index.d.ts.map +1 -1
- package/dist/types/modules/marketing/services/marketing.service.d.ts.map +1 -1
- package/dist/types/modules/marketing/transformers/buy1-get1-marketing.transformer.d.ts +0 -3
- package/dist/types/modules/marketing/transformers/buy1-get1-marketing.transformer.d.ts.map +1 -1
- package/dist/types/modules/marketing/transformers/discount-marketing.transformer.d.ts +0 -3
- package/dist/types/modules/marketing/transformers/discount-marketing.transformer.d.ts.map +1 -1
- package/dist/types/modules/marketing/transformers/index.d.ts +0 -1
- package/dist/types/modules/marketing/transformers/index.d.ts.map +1 -1
- package/dist/types/modules/marketing/transformers/product-marketing.transformer.d.ts +0 -1
- package/dist/types/modules/marketing/transformers/product-marketing.transformer.d.ts.map +1 -1
- package/dist/types/modules/marketing/validations/all-marketings.validation.d.ts.map +1 -1
- package/dist/types/modules/marketing/validations/buy1-get1-marketing.validation.d.ts +0 -30
- package/dist/types/modules/marketing/validations/buy1-get1-marketing.validation.d.ts.map +1 -1
- package/dist/types/modules/marketing/validations/discount-marketing.validation.d.ts +0 -30
- package/dist/types/modules/marketing/validations/discount-marketing.validation.d.ts.map +1 -1
- package/dist/types/modules/marketing/validations/index.d.ts +0 -1
- package/dist/types/modules/marketing/validations/index.d.ts.map +1 -1
- package/dist/types/modules/marketing/validations/product-marketing.validation.d.ts +0 -19
- package/dist/types/modules/marketing/validations/product-marketing.validation.d.ts.map +1 -1
- package/dist/types/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts +200 -994
- package/dist/types/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts.map +1 -1
- package/dist/types/modules/punch-marketing-history/services/punch-marketing-history.service.d.ts +6 -1
- package/dist/types/modules/punch-marketing-history/services/punch-marketing-history.service.d.ts.map +1 -1
- package/dist/types/modules/punch-marketing-history/transformers/punch-marketing-history.transformer.d.ts +11 -75
- package/dist/types/modules/punch-marketing-history/transformers/punch-marketing-history.transformer.d.ts.map +1 -1
- package/dist/types/modules/punch-marketing-history/validations/punch-marketing-history.validation.d.ts +221 -1325
- package/dist/types/modules/punch-marketing-history/validations/punch-marketing-history.validation.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -12,7 +12,6 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
|
|
|
12
12
|
products: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
13
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
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
15
|
isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
17
16
|
valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>;
|
|
18
17
|
value: z.ZodOptional<z.ZodNumber>;
|
|
@@ -20,14 +19,12 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
|
|
|
20
19
|
product: import("mongoose").Types.ObjectId;
|
|
21
20
|
value?: number | undefined;
|
|
22
21
|
marketing?: import("mongoose").Types.ObjectId | undefined;
|
|
23
|
-
loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
|
|
24
22
|
isBuy1Get1?: boolean | undefined;
|
|
25
23
|
valueType?: ValueType | null | undefined;
|
|
26
24
|
}, {
|
|
27
25
|
product: string | import("mongoose").Types.ObjectId;
|
|
28
26
|
value?: number | undefined;
|
|
29
27
|
marketing?: string | import("mongoose").Types.ObjectId | undefined;
|
|
30
|
-
loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
|
|
31
28
|
isBuy1Get1?: boolean | undefined;
|
|
32
29
|
valueType?: ValueType | null | undefined;
|
|
33
30
|
}>, "many">>>;
|
|
@@ -62,7 +59,6 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
|
|
|
62
59
|
product: import("mongoose").Types.ObjectId;
|
|
63
60
|
value?: number | undefined;
|
|
64
61
|
marketing?: import("mongoose").Types.ObjectId | undefined;
|
|
65
|
-
loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
|
|
66
62
|
isBuy1Get1?: boolean | undefined;
|
|
67
63
|
valueType?: ValueType | null | undefined;
|
|
68
64
|
}[];
|
|
@@ -88,7 +84,6 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
|
|
|
88
84
|
product: string | import("mongoose").Types.ObjectId;
|
|
89
85
|
value?: number | undefined;
|
|
90
86
|
marketing?: string | import("mongoose").Types.ObjectId | undefined;
|
|
91
|
-
loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
|
|
92
87
|
isBuy1Get1?: boolean | undefined;
|
|
93
88
|
valueType?: ValueType | null | undefined;
|
|
94
89
|
}[] | undefined;
|
|
@@ -104,7 +99,6 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
|
|
|
104
99
|
products: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
105
100
|
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
101
|
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
102
|
isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
109
103
|
valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>;
|
|
110
104
|
value: z.ZodOptional<z.ZodNumber>;
|
|
@@ -112,14 +106,12 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
|
|
|
112
106
|
product: import("mongoose").Types.ObjectId;
|
|
113
107
|
value?: number | undefined;
|
|
114
108
|
marketing?: import("mongoose").Types.ObjectId | undefined;
|
|
115
|
-
loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
|
|
116
109
|
isBuy1Get1?: boolean | undefined;
|
|
117
110
|
valueType?: ValueType | null | undefined;
|
|
118
111
|
}, {
|
|
119
112
|
product: string | import("mongoose").Types.ObjectId;
|
|
120
113
|
value?: number | undefined;
|
|
121
114
|
marketing?: string | import("mongoose").Types.ObjectId | undefined;
|
|
122
|
-
loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
|
|
123
115
|
isBuy1Get1?: boolean | undefined;
|
|
124
116
|
valueType?: ValueType | null | undefined;
|
|
125
117
|
}>, "many">>>>;
|
|
@@ -149,7 +141,6 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
|
|
|
149
141
|
products: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
150
142
|
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
143
|
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
144
|
isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
154
145
|
valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>;
|
|
155
146
|
value: z.ZodOptional<z.ZodNumber>;
|
|
@@ -157,14 +148,12 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
|
|
|
157
148
|
product: import("mongoose").Types.ObjectId;
|
|
158
149
|
value?: number | undefined;
|
|
159
150
|
marketing?: import("mongoose").Types.ObjectId | undefined;
|
|
160
|
-
loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
|
|
161
151
|
isBuy1Get1?: boolean | undefined;
|
|
162
152
|
valueType?: ValueType | null | undefined;
|
|
163
153
|
}, {
|
|
164
154
|
product: string | import("mongoose").Types.ObjectId;
|
|
165
155
|
value?: number | undefined;
|
|
166
156
|
marketing?: string | import("mongoose").Types.ObjectId | undefined;
|
|
167
|
-
loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
|
|
168
157
|
isBuy1Get1?: boolean | undefined;
|
|
169
158
|
valueType?: ValueType | null | undefined;
|
|
170
159
|
}>, "many">>>>;
|
|
@@ -194,7 +183,6 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
|
|
|
194
183
|
products: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
195
184
|
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
185
|
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
186
|
isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
199
187
|
valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>;
|
|
200
188
|
value: z.ZodOptional<z.ZodNumber>;
|
|
@@ -202,14 +190,12 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
|
|
|
202
190
|
product: import("mongoose").Types.ObjectId;
|
|
203
191
|
value?: number | undefined;
|
|
204
192
|
marketing?: import("mongoose").Types.ObjectId | undefined;
|
|
205
|
-
loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
|
|
206
193
|
isBuy1Get1?: boolean | undefined;
|
|
207
194
|
valueType?: ValueType | null | undefined;
|
|
208
195
|
}, {
|
|
209
196
|
product: string | import("mongoose").Types.ObjectId;
|
|
210
197
|
value?: number | undefined;
|
|
211
198
|
marketing?: string | import("mongoose").Types.ObjectId | undefined;
|
|
212
|
-
loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
|
|
213
199
|
isBuy1Get1?: boolean | undefined;
|
|
214
200
|
valueType?: ValueType | null | undefined;
|
|
215
201
|
}>, "many">>>>;
|
|
@@ -245,7 +231,6 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
|
|
|
245
231
|
products: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
246
232
|
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
233
|
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
234
|
isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
250
235
|
valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>;
|
|
251
236
|
value: z.ZodOptional<z.ZodNumber>;
|
|
@@ -253,14 +238,12 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
|
|
|
253
238
|
product: import("mongoose").Types.ObjectId;
|
|
254
239
|
value?: number | undefined;
|
|
255
240
|
marketing?: import("mongoose").Types.ObjectId | undefined;
|
|
256
|
-
loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
|
|
257
241
|
isBuy1Get1?: boolean | undefined;
|
|
258
242
|
valueType?: ValueType | null | undefined;
|
|
259
243
|
}, {
|
|
260
244
|
product: string | import("mongoose").Types.ObjectId;
|
|
261
245
|
value?: number | undefined;
|
|
262
246
|
marketing?: string | import("mongoose").Types.ObjectId | undefined;
|
|
263
|
-
loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
|
|
264
247
|
isBuy1Get1?: boolean | undefined;
|
|
265
248
|
valueType?: ValueType | null | undefined;
|
|
266
249
|
}>, "many">>>>;
|
|
@@ -290,7 +273,6 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
|
|
|
290
273
|
products: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
291
274
|
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
275
|
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
276
|
isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
295
277
|
valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>;
|
|
296
278
|
value: z.ZodOptional<z.ZodNumber>;
|
|
@@ -298,14 +280,12 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
|
|
|
298
280
|
product: import("mongoose").Types.ObjectId;
|
|
299
281
|
value?: number | undefined;
|
|
300
282
|
marketing?: import("mongoose").Types.ObjectId | undefined;
|
|
301
|
-
loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
|
|
302
283
|
isBuy1Get1?: boolean | undefined;
|
|
303
284
|
valueType?: ValueType | null | undefined;
|
|
304
285
|
}, {
|
|
305
286
|
product: string | import("mongoose").Types.ObjectId;
|
|
306
287
|
value?: number | undefined;
|
|
307
288
|
marketing?: string | import("mongoose").Types.ObjectId | undefined;
|
|
308
|
-
loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
|
|
309
289
|
isBuy1Get1?: boolean | undefined;
|
|
310
290
|
valueType?: ValueType | null | undefined;
|
|
311
291
|
}>, "many">>>>;
|
|
@@ -335,7 +315,6 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
|
|
|
335
315
|
products: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
336
316
|
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
317
|
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
318
|
isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
340
319
|
valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>;
|
|
341
320
|
value: z.ZodOptional<z.ZodNumber>;
|
|
@@ -343,14 +322,12 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
|
|
|
343
322
|
product: import("mongoose").Types.ObjectId;
|
|
344
323
|
value?: number | undefined;
|
|
345
324
|
marketing?: import("mongoose").Types.ObjectId | undefined;
|
|
346
|
-
loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
|
|
347
325
|
isBuy1Get1?: boolean | undefined;
|
|
348
326
|
valueType?: ValueType | null | undefined;
|
|
349
327
|
}, {
|
|
350
328
|
product: string | import("mongoose").Types.ObjectId;
|
|
351
329
|
value?: number | undefined;
|
|
352
330
|
marketing?: string | import("mongoose").Types.ObjectId | undefined;
|
|
353
|
-
loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
|
|
354
331
|
isBuy1Get1?: boolean | undefined;
|
|
355
332
|
valueType?: ValueType | null | undefined;
|
|
356
333
|
}>, "many">>>>;
|
|
@@ -381,7 +358,6 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
381
358
|
products: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
382
359
|
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
360
|
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
361
|
isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
386
362
|
valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>;
|
|
387
363
|
value: z.ZodOptional<z.ZodNumber>;
|
|
@@ -389,14 +365,12 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
389
365
|
product: import("mongoose").Types.ObjectId;
|
|
390
366
|
value?: number | undefined;
|
|
391
367
|
marketing?: import("mongoose").Types.ObjectId | undefined;
|
|
392
|
-
loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
|
|
393
368
|
isBuy1Get1?: boolean | undefined;
|
|
394
369
|
valueType?: ValueType | null | undefined;
|
|
395
370
|
}, {
|
|
396
371
|
product: string | import("mongoose").Types.ObjectId;
|
|
397
372
|
value?: number | undefined;
|
|
398
373
|
marketing?: string | import("mongoose").Types.ObjectId | undefined;
|
|
399
|
-
loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
|
|
400
374
|
isBuy1Get1?: boolean | undefined;
|
|
401
375
|
valueType?: ValueType | null | undefined;
|
|
402
376
|
}>, "many">>>;
|
|
@@ -431,7 +405,6 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
431
405
|
product: import("mongoose").Types.ObjectId;
|
|
432
406
|
value?: number | undefined;
|
|
433
407
|
marketing?: import("mongoose").Types.ObjectId | undefined;
|
|
434
|
-
loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
|
|
435
408
|
isBuy1Get1?: boolean | undefined;
|
|
436
409
|
valueType?: ValueType | null | undefined;
|
|
437
410
|
}[];
|
|
@@ -457,7 +430,6 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
457
430
|
product: string | import("mongoose").Types.ObjectId;
|
|
458
431
|
value?: number | undefined;
|
|
459
432
|
marketing?: string | import("mongoose").Types.ObjectId | undefined;
|
|
460
|
-
loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
|
|
461
433
|
isBuy1Get1?: boolean | undefined;
|
|
462
434
|
valueType?: ValueType | null | undefined;
|
|
463
435
|
}[] | undefined;
|
|
@@ -479,7 +451,6 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
479
451
|
product: import("mongoose").Types.ObjectId;
|
|
480
452
|
value?: number | undefined;
|
|
481
453
|
marketing?: import("mongoose").Types.ObjectId | undefined;
|
|
482
|
-
loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
|
|
483
454
|
isBuy1Get1?: boolean | undefined;
|
|
484
455
|
valueType?: ValueType | null | undefined;
|
|
485
456
|
}[];
|
|
@@ -505,7 +476,6 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
505
476
|
product: string | import("mongoose").Types.ObjectId;
|
|
506
477
|
value?: number | undefined;
|
|
507
478
|
marketing?: string | import("mongoose").Types.ObjectId | undefined;
|
|
508
|
-
loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
|
|
509
479
|
isBuy1Get1?: boolean | undefined;
|
|
510
480
|
valueType?: ValueType | null | undefined;
|
|
511
481
|
}[] | undefined;
|
|
@@ -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;AA0B7E;;GAEG;AACH,QAAA,MACa,iCAAiC
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4B7C,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"}
|
|
@@ -2,7 +2,6 @@ export * from './buy1-get1-marketing.validation';
|
|
|
2
2
|
export * from './discount-marketing.validation';
|
|
3
3
|
export * from './featured-marketing.validation';
|
|
4
4
|
export * from './free-delivery-marketing.validation';
|
|
5
|
-
export * from './loyalty-point-marketing.validation';
|
|
6
5
|
export * from './punch-marketing.validation';
|
|
7
6
|
export * from './product-marketing.validation';
|
|
8
7
|
export * from './marketing.validation';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["modules/marketing/validations/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AACjD,cAAc,iCAAiC,CAAC;AAChD,cAAc,iCAAiC,CAAC;AAChD,cAAc,sCAAsC,CAAC;AACrD,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["modules/marketing/validations/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AACjD,cAAc,iCAAiC,CAAC;AAChD,cAAc,iCAAiC,CAAC;AAChD,cAAc,sCAAsC,CAAC;AACrD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC"}
|
|
@@ -7,7 +7,6 @@ import { ValueType } from '@lyxa.ai/core/dist/utilities/enum';
|
|
|
7
7
|
export declare const baseFields: {
|
|
8
8
|
product: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
|
|
9
9
|
marketing: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
10
|
-
loyaltyPointCategory: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
11
10
|
isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
12
11
|
valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>;
|
|
13
12
|
value: z.ZodOptional<z.ZodNumber>;
|
|
@@ -18,7 +17,6 @@ export declare const baseFields: {
|
|
|
18
17
|
declare const ProductMarketingValidationSchema: z.ZodObject<{
|
|
19
18
|
product: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
|
|
20
19
|
marketing: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
21
|
-
loyaltyPointCategory: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
22
20
|
isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
23
21
|
valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>;
|
|
24
22
|
value: z.ZodOptional<z.ZodNumber>;
|
|
@@ -26,20 +24,17 @@ declare const ProductMarketingValidationSchema: z.ZodObject<{
|
|
|
26
24
|
product: import("mongoose").Types.ObjectId;
|
|
27
25
|
value?: number | undefined;
|
|
28
26
|
marketing?: import("mongoose").Types.ObjectId | undefined;
|
|
29
|
-
loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
|
|
30
27
|
isBuy1Get1?: boolean | undefined;
|
|
31
28
|
valueType?: ValueType | null | undefined;
|
|
32
29
|
}, {
|
|
33
30
|
product: string | import("mongoose").Types.ObjectId;
|
|
34
31
|
value?: number | undefined;
|
|
35
32
|
marketing?: string | import("mongoose").Types.ObjectId | undefined;
|
|
36
|
-
loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
|
|
37
33
|
isBuy1Get1?: boolean | undefined;
|
|
38
34
|
valueType?: ValueType | null | undefined;
|
|
39
35
|
}>, ProductMarketingSchema: z.ZodObject<{
|
|
40
36
|
product: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
41
37
|
marketing: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
42
|
-
loyaltyPointCategory: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
43
38
|
isBuy1Get1: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
|
|
44
39
|
valueType: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>>;
|
|
45
40
|
value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -47,7 +42,6 @@ declare const ProductMarketingValidationSchema: z.ZodObject<{
|
|
|
47
42
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
48
43
|
product: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
49
44
|
marketing: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
50
|
-
loyaltyPointCategory: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
51
45
|
isBuy1Get1: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
|
|
52
46
|
valueType: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>>;
|
|
53
47
|
value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -55,7 +49,6 @@ declare const ProductMarketingValidationSchema: z.ZodObject<{
|
|
|
55
49
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
56
50
|
product: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
57
51
|
marketing: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
58
|
-
loyaltyPointCategory: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
59
52
|
isBuy1Get1: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
|
|
60
53
|
valueType: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>>;
|
|
61
54
|
value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -69,7 +62,6 @@ declare const ProductMarketingValidationSchema: z.ZodObject<{
|
|
|
69
62
|
}> | z.ZodObject<{
|
|
70
63
|
product: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
71
64
|
marketing: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
72
|
-
loyaltyPointCategory: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
73
65
|
isBuy1Get1: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
|
|
74
66
|
valueType: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>>;
|
|
75
67
|
value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -77,7 +69,6 @@ declare const ProductMarketingValidationSchema: z.ZodObject<{
|
|
|
77
69
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
78
70
|
product: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
79
71
|
marketing: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
80
|
-
loyaltyPointCategory: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
81
72
|
isBuy1Get1: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
|
|
82
73
|
valueType: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>>;
|
|
83
74
|
value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -85,7 +76,6 @@ declare const ProductMarketingValidationSchema: z.ZodObject<{
|
|
|
85
76
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
86
77
|
product: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
87
78
|
marketing: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
88
|
-
loyaltyPointCategory: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
89
79
|
isBuy1Get1: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
|
|
90
80
|
valueType: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>>;
|
|
91
81
|
value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -94,7 +84,6 @@ declare const ProductMarketingValidationSchema: z.ZodObject<{
|
|
|
94
84
|
declare const QueryProductMarketingSchema: z.ZodObject<Pick<{
|
|
95
85
|
product: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
96
86
|
marketing: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
97
|
-
loyaltyPointCategory: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
98
87
|
isBuy1Get1: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
|
|
99
88
|
valueType: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>>;
|
|
100
89
|
value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -102,7 +91,6 @@ declare const QueryProductMarketingSchema: z.ZodObject<Pick<{
|
|
|
102
91
|
}, "product" | "marketing">, "passthrough", z.ZodTypeAny, z.objectOutputType<Pick<{
|
|
103
92
|
product: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
104
93
|
marketing: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
105
|
-
loyaltyPointCategory: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
106
94
|
isBuy1Get1: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
|
|
107
95
|
valueType: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>>;
|
|
108
96
|
value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -110,7 +98,6 @@ declare const QueryProductMarketingSchema: z.ZodObject<Pick<{
|
|
|
110
98
|
}, "product" | "marketing">, z.ZodTypeAny, "passthrough">, z.objectInputType<Pick<{
|
|
111
99
|
product: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
112
100
|
marketing: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
113
|
-
loyaltyPointCategory: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
114
101
|
isBuy1Get1: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
|
|
115
102
|
valueType: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>>;
|
|
116
103
|
value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -119,7 +106,6 @@ declare const QueryProductMarketingSchema: z.ZodObject<Pick<{
|
|
|
119
106
|
declare const QueryMultipleProductMarketingSchema: z.ZodObject<Pick<{
|
|
120
107
|
product: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
121
108
|
marketing: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
122
|
-
loyaltyPointCategory: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
123
109
|
isBuy1Get1: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
|
|
124
110
|
valueType: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>>;
|
|
125
111
|
value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -129,7 +115,6 @@ declare const QueryMultipleProductMarketingSchema: z.ZodObject<Pick<{
|
|
|
129
115
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<Pick<{
|
|
130
116
|
product: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
131
117
|
marketing: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
132
|
-
loyaltyPointCategory: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
133
118
|
isBuy1Get1: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
|
|
134
119
|
valueType: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>>;
|
|
135
120
|
value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -139,7 +124,6 @@ declare const QueryMultipleProductMarketingSchema: z.ZodObject<Pick<{
|
|
|
139
124
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<Pick<{
|
|
140
125
|
product: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
141
126
|
marketing: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
142
|
-
loyaltyPointCategory: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
143
127
|
isBuy1Get1: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodBoolean>>>;
|
|
144
128
|
valueType: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>>;
|
|
145
129
|
value: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -150,18 +134,15 @@ declare const QueryMultipleProductMarketingSchema: z.ZodObject<Pick<{
|
|
|
150
134
|
declare const UpdateMultipleProductMarketingSchema: z.ZodObject<Omit<{
|
|
151
135
|
product: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
|
|
152
136
|
marketing: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
153
|
-
loyaltyPointCategory: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
154
137
|
isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
155
138
|
valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof ValueType>>>>;
|
|
156
139
|
value: z.ZodOptional<z.ZodNumber>;
|
|
157
140
|
}, "product" | "marketing">, "strict", z.ZodTypeAny, {
|
|
158
141
|
value?: number | undefined;
|
|
159
|
-
loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
|
|
160
142
|
isBuy1Get1?: boolean | undefined;
|
|
161
143
|
valueType?: ValueType | null | undefined;
|
|
162
144
|
}, {
|
|
163
145
|
value?: number | undefined;
|
|
164
|
-
loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
|
|
165
146
|
isBuy1Get1?: boolean | undefined;
|
|
166
147
|
valueType?: ValueType | null | undefined;
|
|
167
148
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-marketing.validation.d.ts","sourceRoot":"/","sources":["modules/marketing/validations/product-marketing.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGN,GAAG,EACH,MAAM,2DAA2D,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAE9D;;GAEG;AACH,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"product-marketing.validation.d.ts","sourceRoot":"/","sources":["modules/marketing/validations/product-marketing.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGN,GAAG,EACH,MAAM,2DAA2D,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAE9D;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;CAStB,CAAC;AASF;;GAEG;AACH,QAAA,MACa,gCAAgC;;;;;;;;;;;;;;;;;;IAC9B,sBAAsB;;;;;;;;;;;;;;;;;;;;;kCAC1B,wBAAwB,mNACpB,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;gCACS,CAAC;AAErD,QAAA,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;0DAG/B,CAAC;AAEH,QAAA,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAIvC,CAAC;AAEH,QAAA,MAAM,oCAAoC;;;;;;;;;;;;;;EAGxC,CAAC;AAEH;;GAEG;AACH,OAAO,EACN,gCAAgC,EAChC,sBAAsB,EACtB,wBAAwB,IAAI,kCAAkC,EAC9D,4BAA4B,EAC5B,2BAA2B,GAC3B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,GAAG,CAAC,OAAO,gCAAgC,CAAC,CAAC;AACrF,MAAM,MAAM,mBAAmB,GAAG,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACrE,MAAM,MAAM,yBAAyB,GAAG,GAAG,CAAC,OAAO,4BAA4B,CAAC,CAAC;AACjF,MAAM,MAAM,iCAAiC,GAAG,GAAG,CAAC,OAAO,oCAAoC,CAAC,CAAC;AACjG,MAAM,MAAM,wBAAwB,GAAG,GAAG,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAC/E,MAAM,MAAM,gCAAgC,GAAG,GAAG,CAAC,OAAO,mCAAmC,CAAC,CAAC"}
|