@lyxa.ai/marketing 1.0.10 → 1.0.12
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 +413 -320
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/modules/coupon/routers/coupon.router.d.ts +413 -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/custom-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/global-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/individual-store-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/individual-user-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/patterns/repository/CouponRepository.d.ts +3 -0
- package/dist/types/modules/coupon/services/patterns/repository/CouponRepository.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/referral-code-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/referral-reward-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/transformers/coupon.transformer.d.ts +35 -0
- package/dist/types/modules/coupon/transformers/coupon.transformer.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/all-coupons.validation.d.ts +615 -0
- package/dist/types/modules/coupon/validations/all-coupons.validation.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/coupon.validation.d.ts +255 -0
- package/dist/types/modules/coupon/validations/coupon.validation.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/custom-coupon.validation.d.ts +55 -0
- package/dist/types/modules/coupon/validations/custom-coupon.validation.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/global-coupon.validation.d.ts +55 -0
- package/dist/types/modules/coupon/validations/global-coupon.validation.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/individual-store-coupon.validation.d.ts +55 -0
- package/dist/types/modules/coupon/validations/individual-store-coupon.validation.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/individual-user-coupon.validation.d.ts +55 -0
- package/dist/types/modules/coupon/validations/individual-user-coupon.validation.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/referral-reward-coupon.validation.d.ts +55 -0
- package/dist/types/modules/coupon/validations/referral-reward-coupon.validation.d.ts.map +1 -1
- package/dist/types/modules/marketing/services/free-delivery-marketing.service.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 +2 -2
- package/dist/types/modules/marketing/services/marketing.service.d.ts.map +1 -1
- package/dist/types/modules/marketing/services/product-marketing.service.d.ts +5 -0
- package/dist/types/modules/marketing/services/product-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 +2 -5
- 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 +1 -0
- 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 +120 -24
- 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 +28 -58
- 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/services/punch-marketing-history.service.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -10,7 +10,6 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
|
|
|
10
10
|
products: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11
11
|
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>]>;
|
|
12
12
|
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>]>>;
|
|
13
|
-
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>]>>;
|
|
14
13
|
isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
15
14
|
valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>>>;
|
|
16
15
|
value: z.ZodOptional<z.ZodNumber>;
|
|
@@ -18,14 +17,12 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
|
|
|
18
17
|
product: import("mongoose").Types.ObjectId;
|
|
19
18
|
value?: number | undefined;
|
|
20
19
|
marketing?: import("mongoose").Types.ObjectId | undefined;
|
|
21
|
-
loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
|
|
22
20
|
isBuy1Get1?: boolean | undefined;
|
|
23
21
|
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
|
|
24
22
|
}, {
|
|
25
23
|
product: string | import("mongoose").Types.ObjectId;
|
|
26
24
|
value?: number | undefined;
|
|
27
25
|
marketing?: string | import("mongoose").Types.ObjectId | undefined;
|
|
28
|
-
loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
|
|
29
26
|
isBuy1Get1?: boolean | undefined;
|
|
30
27
|
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
|
|
31
28
|
}>, "many">>>;
|
|
@@ -59,7 +56,6 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
|
|
|
59
56
|
product: import("mongoose").Types.ObjectId;
|
|
60
57
|
value?: number | undefined;
|
|
61
58
|
marketing?: import("mongoose").Types.ObjectId | undefined;
|
|
62
|
-
loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
|
|
63
59
|
isBuy1Get1?: boolean | undefined;
|
|
64
60
|
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
|
|
65
61
|
}[];
|
|
@@ -80,7 +76,6 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
|
|
|
80
76
|
product: string | import("mongoose").Types.ObjectId;
|
|
81
77
|
value?: number | undefined;
|
|
82
78
|
marketing?: string | import("mongoose").Types.ObjectId | undefined;
|
|
83
|
-
loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
|
|
84
79
|
isBuy1Get1?: boolean | undefined;
|
|
85
80
|
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
|
|
86
81
|
}[] | undefined;
|
|
@@ -93,7 +88,6 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
|
|
|
93
88
|
products: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
94
89
|
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>]>;
|
|
95
90
|
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>]>>;
|
|
96
|
-
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>]>>;
|
|
97
91
|
isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
98
92
|
valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>>>;
|
|
99
93
|
value: z.ZodOptional<z.ZodNumber>;
|
|
@@ -101,14 +95,12 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
|
|
|
101
95
|
product: import("mongoose").Types.ObjectId;
|
|
102
96
|
value?: number | undefined;
|
|
103
97
|
marketing?: import("mongoose").Types.ObjectId | undefined;
|
|
104
|
-
loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
|
|
105
98
|
isBuy1Get1?: boolean | undefined;
|
|
106
99
|
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
|
|
107
100
|
}, {
|
|
108
101
|
product: string | import("mongoose").Types.ObjectId;
|
|
109
102
|
value?: number | undefined;
|
|
110
103
|
marketing?: string | import("mongoose").Types.ObjectId | undefined;
|
|
111
|
-
loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
|
|
112
104
|
isBuy1Get1?: boolean | undefined;
|
|
113
105
|
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
|
|
114
106
|
}>, "many">>>>;
|
|
@@ -135,7 +127,6 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
|
|
|
135
127
|
products: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
136
128
|
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>]>;
|
|
137
129
|
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>]>>;
|
|
138
|
-
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>]>>;
|
|
139
130
|
isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
140
131
|
valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>>>;
|
|
141
132
|
value: z.ZodOptional<z.ZodNumber>;
|
|
@@ -143,14 +134,12 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
|
|
|
143
134
|
product: import("mongoose").Types.ObjectId;
|
|
144
135
|
value?: number | undefined;
|
|
145
136
|
marketing?: import("mongoose").Types.ObjectId | undefined;
|
|
146
|
-
loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
|
|
147
137
|
isBuy1Get1?: boolean | undefined;
|
|
148
138
|
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
|
|
149
139
|
}, {
|
|
150
140
|
product: string | import("mongoose").Types.ObjectId;
|
|
151
141
|
value?: number | undefined;
|
|
152
142
|
marketing?: string | import("mongoose").Types.ObjectId | undefined;
|
|
153
|
-
loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
|
|
154
143
|
isBuy1Get1?: boolean | undefined;
|
|
155
144
|
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
|
|
156
145
|
}>, "many">>>>;
|
|
@@ -177,7 +166,6 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
|
|
|
177
166
|
products: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
178
167
|
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>]>;
|
|
179
168
|
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>]>>;
|
|
180
|
-
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>]>>;
|
|
181
169
|
isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
182
170
|
valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>>>;
|
|
183
171
|
value: z.ZodOptional<z.ZodNumber>;
|
|
@@ -185,14 +173,12 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
|
|
|
185
173
|
product: import("mongoose").Types.ObjectId;
|
|
186
174
|
value?: number | undefined;
|
|
187
175
|
marketing?: import("mongoose").Types.ObjectId | undefined;
|
|
188
|
-
loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
|
|
189
176
|
isBuy1Get1?: boolean | undefined;
|
|
190
177
|
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
|
|
191
178
|
}, {
|
|
192
179
|
product: string | import("mongoose").Types.ObjectId;
|
|
193
180
|
value?: number | undefined;
|
|
194
181
|
marketing?: string | import("mongoose").Types.ObjectId | undefined;
|
|
195
|
-
loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
|
|
196
182
|
isBuy1Get1?: boolean | undefined;
|
|
197
183
|
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
|
|
198
184
|
}>, "many">>>>;
|
|
@@ -225,7 +211,6 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
|
|
|
225
211
|
products: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
226
212
|
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>]>;
|
|
227
213
|
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>]>>;
|
|
228
|
-
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>]>>;
|
|
229
214
|
isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
230
215
|
valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>>>;
|
|
231
216
|
value: z.ZodOptional<z.ZodNumber>;
|
|
@@ -233,14 +218,12 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
|
|
|
233
218
|
product: import("mongoose").Types.ObjectId;
|
|
234
219
|
value?: number | undefined;
|
|
235
220
|
marketing?: import("mongoose").Types.ObjectId | undefined;
|
|
236
|
-
loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
|
|
237
221
|
isBuy1Get1?: boolean | undefined;
|
|
238
222
|
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
|
|
239
223
|
}, {
|
|
240
224
|
product: string | import("mongoose").Types.ObjectId;
|
|
241
225
|
value?: number | undefined;
|
|
242
226
|
marketing?: string | import("mongoose").Types.ObjectId | undefined;
|
|
243
|
-
loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
|
|
244
227
|
isBuy1Get1?: boolean | undefined;
|
|
245
228
|
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
|
|
246
229
|
}>, "many">>>>;
|
|
@@ -267,7 +250,6 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
|
|
|
267
250
|
products: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
268
251
|
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>]>;
|
|
269
252
|
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>]>>;
|
|
270
|
-
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>]>>;
|
|
271
253
|
isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
272
254
|
valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>>>;
|
|
273
255
|
value: z.ZodOptional<z.ZodNumber>;
|
|
@@ -275,14 +257,12 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
|
|
|
275
257
|
product: import("mongoose").Types.ObjectId;
|
|
276
258
|
value?: number | undefined;
|
|
277
259
|
marketing?: import("mongoose").Types.ObjectId | undefined;
|
|
278
|
-
loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
|
|
279
260
|
isBuy1Get1?: boolean | undefined;
|
|
280
261
|
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
|
|
281
262
|
}, {
|
|
282
263
|
product: string | import("mongoose").Types.ObjectId;
|
|
283
264
|
value?: number | undefined;
|
|
284
265
|
marketing?: string | import("mongoose").Types.ObjectId | undefined;
|
|
285
|
-
loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
|
|
286
266
|
isBuy1Get1?: boolean | undefined;
|
|
287
267
|
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
|
|
288
268
|
}>, "many">>>>;
|
|
@@ -309,7 +289,6 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
|
|
|
309
289
|
products: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
310
290
|
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>]>;
|
|
311
291
|
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>]>>;
|
|
312
|
-
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>]>>;
|
|
313
292
|
isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
314
293
|
valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>>>;
|
|
315
294
|
value: z.ZodOptional<z.ZodNumber>;
|
|
@@ -317,14 +296,12 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
|
|
|
317
296
|
product: import("mongoose").Types.ObjectId;
|
|
318
297
|
value?: number | undefined;
|
|
319
298
|
marketing?: import("mongoose").Types.ObjectId | undefined;
|
|
320
|
-
loyaltyPointCategory?: import("mongoose").Types.ObjectId | undefined;
|
|
321
299
|
isBuy1Get1?: boolean | undefined;
|
|
322
300
|
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
|
|
323
301
|
}, {
|
|
324
302
|
product: string | import("mongoose").Types.ObjectId;
|
|
325
303
|
value?: number | undefined;
|
|
326
304
|
marketing?: string | import("mongoose").Types.ObjectId | undefined;
|
|
327
|
-
loyaltyPointCategory?: string | import("mongoose").Types.ObjectId | undefined;
|
|
328
305
|
isBuy1Get1?: boolean | undefined;
|
|
329
306
|
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
|
|
330
307
|
}>, "many">>>>;
|
|
@@ -346,10 +323,129 @@ declare const Buy1Get1MarketingValidationSchema: z.ZodObject<{
|
|
|
346
323
|
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>>>>>;
|
|
347
324
|
_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>]>>;
|
|
348
325
|
}, z.ZodTypeAny, "passthrough">>;
|
|
326
|
+
declare const Buy1Get1MarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject<{
|
|
327
|
+
marketingType: z.ZodLiteral<MarketingType.BUY1GET1>;
|
|
328
|
+
isEntireMenu: z.ZodDefault<z.ZodBoolean>;
|
|
329
|
+
products: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
330
|
+
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>]>;
|
|
331
|
+
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>]>>;
|
|
332
|
+
isBuy1Get1: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
333
|
+
valueType: z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>>>;
|
|
334
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
335
|
+
}, "strip", z.ZodTypeAny, {
|
|
336
|
+
product: import("mongoose").Types.ObjectId;
|
|
337
|
+
value?: number | undefined;
|
|
338
|
+
marketing?: import("mongoose").Types.ObjectId | undefined;
|
|
339
|
+
isBuy1Get1?: boolean | undefined;
|
|
340
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
|
|
341
|
+
}, {
|
|
342
|
+
product: string | import("mongoose").Types.ObjectId;
|
|
343
|
+
value?: number | undefined;
|
|
344
|
+
marketing?: string | import("mongoose").Types.ObjectId | undefined;
|
|
345
|
+
isBuy1Get1?: boolean | undefined;
|
|
346
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
|
|
347
|
+
}>, "many">>>;
|
|
348
|
+
spendLimit: z.ZodDefault<z.ZodNumber>;
|
|
349
|
+
isOnlyForSubscriber: z.ZodDefault<z.ZodBoolean>;
|
|
350
|
+
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>]>;
|
|
351
|
+
isAppliedByCompany: z.ZodBoolean;
|
|
352
|
+
duration: z.ZodObject<{
|
|
353
|
+
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>;
|
|
354
|
+
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>>;
|
|
355
|
+
}, "strip", z.ZodTypeAny, {
|
|
356
|
+
start: Date;
|
|
357
|
+
end?: Date | undefined;
|
|
358
|
+
}, {
|
|
359
|
+
start: string | Date;
|
|
360
|
+
end?: string | Date | undefined;
|
|
361
|
+
}>;
|
|
362
|
+
status: z.ZodDefault<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus>>;
|
|
363
|
+
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>>>>;
|
|
364
|
+
}, "strict", z.ZodTypeAny, {
|
|
365
|
+
isAppliedByCompany: boolean;
|
|
366
|
+
shop: import("mongoose").Types.ObjectId;
|
|
367
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus;
|
|
368
|
+
marketingType: MarketingType.BUY1GET1;
|
|
369
|
+
duration: {
|
|
370
|
+
start: Date;
|
|
371
|
+
end?: Date | undefined;
|
|
372
|
+
};
|
|
373
|
+
pausedAt: Date | null;
|
|
374
|
+
products: {
|
|
375
|
+
product: import("mongoose").Types.ObjectId;
|
|
376
|
+
value?: number | undefined;
|
|
377
|
+
marketing?: import("mongoose").Types.ObjectId | undefined;
|
|
378
|
+
isBuy1Get1?: boolean | undefined;
|
|
379
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
|
|
380
|
+
}[];
|
|
381
|
+
isEntireMenu: boolean;
|
|
382
|
+
spendLimit: number;
|
|
383
|
+
isOnlyForSubscriber: boolean;
|
|
384
|
+
}, {
|
|
385
|
+
isAppliedByCompany: boolean;
|
|
386
|
+
shop: string | import("mongoose").Types.ObjectId;
|
|
387
|
+
marketingType: MarketingType.BUY1GET1;
|
|
388
|
+
duration: {
|
|
389
|
+
start: string | Date;
|
|
390
|
+
end?: string | Date | undefined;
|
|
391
|
+
};
|
|
392
|
+
status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
|
|
393
|
+
pausedAt?: string | Date | null | undefined;
|
|
394
|
+
products?: {
|
|
395
|
+
product: string | import("mongoose").Types.ObjectId;
|
|
396
|
+
value?: number | undefined;
|
|
397
|
+
marketing?: string | import("mongoose").Types.ObjectId | undefined;
|
|
398
|
+
isBuy1Get1?: boolean | undefined;
|
|
399
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
|
|
400
|
+
}[] | undefined;
|
|
401
|
+
isEntireMenu?: boolean | undefined;
|
|
402
|
+
spendLimit?: number | undefined;
|
|
403
|
+
isOnlyForSubscriber?: boolean | undefined;
|
|
404
|
+
}>, {
|
|
405
|
+
isAppliedByCompany: boolean;
|
|
406
|
+
shop: import("mongoose").Types.ObjectId;
|
|
407
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus;
|
|
408
|
+
marketingType: MarketingType.BUY1GET1;
|
|
409
|
+
duration: {
|
|
410
|
+
start: Date;
|
|
411
|
+
end?: Date | undefined;
|
|
412
|
+
};
|
|
413
|
+
pausedAt: Date | null;
|
|
414
|
+
products: {
|
|
415
|
+
product: import("mongoose").Types.ObjectId;
|
|
416
|
+
value?: number | undefined;
|
|
417
|
+
marketing?: import("mongoose").Types.ObjectId | undefined;
|
|
418
|
+
isBuy1Get1?: boolean | undefined;
|
|
419
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
|
|
420
|
+
}[];
|
|
421
|
+
isEntireMenu: boolean;
|
|
422
|
+
spendLimit: number;
|
|
423
|
+
isOnlyForSubscriber: boolean;
|
|
424
|
+
}, {
|
|
425
|
+
isAppliedByCompany: boolean;
|
|
426
|
+
shop: string | import("mongoose").Types.ObjectId;
|
|
427
|
+
marketingType: MarketingType.BUY1GET1;
|
|
428
|
+
duration: {
|
|
429
|
+
start: string | Date;
|
|
430
|
+
end?: string | Date | undefined;
|
|
431
|
+
};
|
|
432
|
+
status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
|
|
433
|
+
pausedAt?: string | Date | null | undefined;
|
|
434
|
+
products?: {
|
|
435
|
+
product: string | import("mongoose").Types.ObjectId;
|
|
436
|
+
value?: number | undefined;
|
|
437
|
+
marketing?: string | import("mongoose").Types.ObjectId | undefined;
|
|
438
|
+
isBuy1Get1?: boolean | undefined;
|
|
439
|
+
valueType?: import("@lyxa.ai/core/dist/utilities/enum").ValueType | null | undefined;
|
|
440
|
+
}[] | undefined;
|
|
441
|
+
isEntireMenu?: boolean | undefined;
|
|
442
|
+
spendLimit?: number | undefined;
|
|
443
|
+
isOnlyForSubscriber?: boolean | undefined;
|
|
444
|
+
}>;
|
|
349
445
|
/**
|
|
350
446
|
* Export schemas
|
|
351
447
|
*/
|
|
352
|
-
export { Buy1Get1MarketingValidationSchema, Buy1Get1MarketingSchema, Buy1Get1MarketingIdSchema as Buy1Get1MarketingIdValidationSchema, UpdateBuy1Get1MarketingSchema, };
|
|
448
|
+
export { Buy1Get1MarketingValidationSchemaRefined as Buy1Get1MarketingValidationSchema, Buy1Get1MarketingSchema, Buy1Get1MarketingIdSchema as Buy1Get1MarketingIdValidationSchema, UpdateBuy1Get1MarketingSchema, };
|
|
353
449
|
/**
|
|
354
450
|
* Export DTO types
|
|
355
451
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buy1-get1-marketing.validation.d.ts","sourceRoot":"/","sources":["modules/marketing/validations/buy1-get1-marketing.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGN,GAAG,EACH,MAAM,2DAA2D,CAAC;AAEnE,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAsBlE;;GAEG;AACH,QAAA,MACa,iCAAiC
|
|
1
|
+
{"version":3,"file":"buy1-get1-marketing.validation.d.ts","sourceRoot":"/","sources":["modules/marketing/validations/buy1-get1-marketing.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGN,GAAG,EACH,MAAM,2DAA2D,CAAC;AAEnE,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAsBlE;;GAEG;AACH,QAAA,MACa,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAC/B,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAC3B,yBAAyB,mNACrB,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCACQ,CAAC;AAErD,QAAA,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmB7C,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"}
|