@lyxa.ai/marketing 1.0.19 → 1.0.21
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.d.ts +390 -1
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/modules/coupon/routers/coupon.router.d.ts +386 -1
- package/dist/lib/modules/coupon/routers/coupon.router.d.ts.map +1 -1
- package/dist/lib/modules/coupon/routers/coupon.router.js +7 -0
- package/dist/lib/modules/coupon/routers/coupon.router.js.map +1 -1
- package/dist/lib/modules/coupon/services/referral-code-coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/referral-code-coupon.service.js +1 -0
- package/dist/lib/modules/coupon/services/referral-code-coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/referral-reward-coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/referral-reward-coupon.service.js +5 -0
- package/dist/lib/modules/coupon/services/referral-reward-coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/transformers/coupon.transformer.d.ts +26 -0
- package/dist/lib/modules/coupon/transformers/coupon.transformer.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/all-coupons.validation.d.ts +546 -0
- package/dist/lib/modules/coupon/validations/all-coupons.validation.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/coupon.validation.d.ts +126 -0
- package/dist/lib/modules/coupon/validations/coupon.validation.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/coupon.validation.js +5 -0
- package/dist/lib/modules/coupon/validations/coupon.validation.js.map +1 -1
- package/dist/lib/modules/coupon/validations/custom-coupon.validation.d.ts +45 -0
- package/dist/lib/modules/coupon/validations/custom-coupon.validation.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/global-coupon.validation.d.ts +45 -0
- package/dist/lib/modules/coupon/validations/global-coupon.validation.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/individual-store-coupon.validation.d.ts +45 -0
- package/dist/lib/modules/coupon/validations/individual-store-coupon.validation.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/individual-user-coupon.validation.d.ts +45 -0
- package/dist/lib/modules/coupon/validations/individual-user-coupon.validation.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/referral-code-coupon.validation.d.ts +9 -0
- package/dist/lib/modules/coupon/validations/referral-code-coupon.validation.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/referral-reward-coupon.validation.d.ts +45 -0
- package/dist/lib/modules/coupon/validations/referral-reward-coupon.validation.d.ts.map +1 -1
- package/dist/lib/modules/deal-setting/routers/deal-setting.router.d.ts.map +1 -1
- package/dist/lib/modules/featured-setting/routers/featured-setting.router.d.ts.map +1 -1
- package/dist/lib/modules/marketing/routers/marketing.router.d.ts +6 -2
- package/dist/lib/modules/marketing/routers/marketing.router.d.ts.map +1 -1
- package/dist/lib/modules/marketing/routers/marketing.router.js +1 -1
- package/dist/lib/modules/marketing/routers/marketing.router.js.map +1 -1
- package/dist/lib/modules/marketing/services/marketing.service.d.ts +2 -2
- package/dist/lib/modules/marketing/services/marketing.service.d.ts.map +1 -1
- package/dist/lib/modules/marketing/services/marketing.service.js +2 -5
- package/dist/lib/modules/marketing/services/marketing.service.js.map +1 -1
- package/dist/lib/modules/marketing/transformers/buy1-get1-marketing.transformer.d.ts +1 -0
- package/dist/lib/modules/marketing/transformers/buy1-get1-marketing.transformer.d.ts.map +1 -1
- package/dist/lib/modules/marketing/transformers/discount-marketing.transformer.d.ts +2 -0
- package/dist/lib/modules/marketing/transformers/discount-marketing.transformer.d.ts.map +1 -1
- package/dist/lib/modules/marketing/transformers/free-delivery-marketing.transformer.d.ts +1 -0
- package/dist/lib/modules/marketing/transformers/free-delivery-marketing.transformer.d.ts.map +1 -1
- package/dist/lib/modules/marketing/validations/buy1-get1-marketing.validation.d.ts +14 -0
- package/dist/lib/modules/marketing/validations/buy1-get1-marketing.validation.d.ts.map +1 -1
- package/dist/lib/modules/marketing/validations/buy1-get1-marketing.validation.js +1 -0
- package/dist/lib/modules/marketing/validations/buy1-get1-marketing.validation.js.map +1 -1
- package/dist/lib/modules/marketing/validations/discount-marketing.validation.d.ts +28 -0
- package/dist/lib/modules/marketing/validations/discount-marketing.validation.d.ts.map +1 -1
- package/dist/lib/modules/marketing/validations/discount-marketing.validation.js +2 -0
- package/dist/lib/modules/marketing/validations/discount-marketing.validation.js.map +1 -1
- package/dist/lib/modules/marketing/validations/free-delivery-marketing.validation.d.ts +9 -0
- package/dist/lib/modules/marketing/validations/free-delivery-marketing.validation.d.ts.map +1 -1
- package/dist/lib/modules/marketing/validations/free-delivery-marketing.validation.js +1 -0
- package/dist/lib/modules/marketing/validations/free-delivery-marketing.validation.js.map +1 -1
- package/dist/lib/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts.map +1 -1
- package/dist/types/index.d.ts +390 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/modules/coupon/routers/coupon.router.d.ts +386 -1
- package/dist/types/modules/coupon/routers/coupon.router.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 +26 -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 +546 -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 +126 -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 +45 -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 +45 -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 +45 -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 +45 -0
- package/dist/types/modules/coupon/validations/individual-user-coupon.validation.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/referral-code-coupon.validation.d.ts +9 -0
- package/dist/types/modules/coupon/validations/referral-code-coupon.validation.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/referral-reward-coupon.validation.d.ts +45 -0
- package/dist/types/modules/coupon/validations/referral-reward-coupon.validation.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 +6 -2
- package/dist/types/modules/marketing/routers/marketing.router.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/transformers/buy1-get1-marketing.transformer.d.ts +1 -0
- 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 -0
- package/dist/types/modules/marketing/transformers/discount-marketing.transformer.d.ts.map +1 -1
- package/dist/types/modules/marketing/transformers/free-delivery-marketing.transformer.d.ts +1 -0
- package/dist/types/modules/marketing/transformers/free-delivery-marketing.transformer.d.ts.map +1 -1
- package/dist/types/modules/marketing/validations/buy1-get1-marketing.validation.d.ts +14 -0
- 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 -0
- package/dist/types/modules/marketing/validations/discount-marketing.validation.d.ts.map +1 -1
- package/dist/types/modules/marketing/validations/free-delivery-marketing.validation.d.ts +9 -0
- package/dist/types/modules/marketing/validations/free-delivery-marketing.validation.d.ts.map +1 -1
- package/dist/types/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -32,7 +32,9 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
|
|
|
32
32
|
valueType?: ValueType | null | undefined;
|
|
33
33
|
}>, "many">>>;
|
|
34
34
|
maxDiscountPerOrder: z.ZodDefault<z.ZodNumber>;
|
|
35
|
+
isMaxDiscountPerOrderEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
35
36
|
spendLimit: z.ZodDefault<z.ZodNumber>;
|
|
37
|
+
isSpendLimitEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
36
38
|
isOnlyForSubscriber: z.ZodDefault<z.ZodBoolean>;
|
|
37
39
|
shop: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
|
|
38
40
|
isAppliedByCompany: z.ZodBoolean;
|
|
@@ -68,8 +70,10 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
|
|
|
68
70
|
categories: import("mongoose").Types.ObjectId[];
|
|
69
71
|
isEntireMenu: boolean;
|
|
70
72
|
spendLimit: number;
|
|
73
|
+
isSpendLimitEnabled: boolean;
|
|
71
74
|
isOnlyForSubscriber: boolean;
|
|
72
75
|
maxDiscountPerOrder: number;
|
|
76
|
+
isMaxDiscountPerOrderEnabled: boolean;
|
|
73
77
|
value?: number | undefined;
|
|
74
78
|
valueType?: ValueType | undefined;
|
|
75
79
|
categoryValueType?: ValueType | undefined;
|
|
@@ -96,10 +100,12 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
|
|
|
96
100
|
categories?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
97
101
|
isEntireMenu?: boolean | undefined;
|
|
98
102
|
spendLimit?: number | undefined;
|
|
103
|
+
isSpendLimitEnabled?: boolean | undefined;
|
|
99
104
|
isOnlyForSubscriber?: boolean | undefined;
|
|
100
105
|
categoryValueType?: ValueType | undefined;
|
|
101
106
|
categoryValue?: number | undefined;
|
|
102
107
|
maxDiscountPerOrder?: number | undefined;
|
|
108
|
+
isMaxDiscountPerOrderEnabled?: boolean | undefined;
|
|
103
109
|
}>, DiscountMarketingSchema: z.ZodObject<{
|
|
104
110
|
marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.DISCOUNT>>;
|
|
105
111
|
categoryValueType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof ValueType>>>;
|
|
@@ -128,7 +134,9 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
|
|
|
128
134
|
valueType?: ValueType | null | undefined;
|
|
129
135
|
}>, "many">>>>;
|
|
130
136
|
maxDiscountPerOrder: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
137
|
+
isMaxDiscountPerOrderEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
131
138
|
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
139
|
+
isSpendLimitEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
132
140
|
isOnlyForSubscriber: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
133
141
|
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>]>>;
|
|
134
142
|
isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -173,7 +181,9 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
|
|
|
173
181
|
valueType?: ValueType | null | undefined;
|
|
174
182
|
}>, "many">>>>;
|
|
175
183
|
maxDiscountPerOrder: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
184
|
+
isMaxDiscountPerOrderEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
176
185
|
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
186
|
+
isSpendLimitEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
177
187
|
isOnlyForSubscriber: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
178
188
|
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>]>>;
|
|
179
189
|
isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -218,7 +228,9 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
|
|
|
218
228
|
valueType?: ValueType | null | undefined;
|
|
219
229
|
}>, "many">>>>;
|
|
220
230
|
maxDiscountPerOrder: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
231
|
+
isMaxDiscountPerOrderEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
221
232
|
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
233
|
+
isSpendLimitEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
222
234
|
isOnlyForSubscriber: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
223
235
|
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>]>>;
|
|
224
236
|
isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -269,7 +281,9 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
|
|
|
269
281
|
valueType?: ValueType | null | undefined;
|
|
270
282
|
}>, "many">>>>;
|
|
271
283
|
maxDiscountPerOrder: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
284
|
+
isMaxDiscountPerOrderEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
272
285
|
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
286
|
+
isSpendLimitEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
273
287
|
isOnlyForSubscriber: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
274
288
|
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>]>>;
|
|
275
289
|
isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -314,7 +328,9 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
|
|
|
314
328
|
valueType?: ValueType | null | undefined;
|
|
315
329
|
}>, "many">>>>;
|
|
316
330
|
maxDiscountPerOrder: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
331
|
+
isMaxDiscountPerOrderEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
317
332
|
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
333
|
+
isSpendLimitEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
318
334
|
isOnlyForSubscriber: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
319
335
|
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>]>>;
|
|
320
336
|
isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -359,7 +375,9 @@ declare const DiscountMarketingValidationSchema: z.ZodObject<{
|
|
|
359
375
|
valueType?: ValueType | null | undefined;
|
|
360
376
|
}>, "many">>>>;
|
|
361
377
|
maxDiscountPerOrder: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
378
|
+
isMaxDiscountPerOrderEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
362
379
|
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
380
|
+
isSpendLimitEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
363
381
|
isOnlyForSubscriber: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
364
382
|
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>]>>;
|
|
365
383
|
isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -405,7 +423,9 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
405
423
|
valueType?: ValueType | null | undefined;
|
|
406
424
|
}>, "many">>>;
|
|
407
425
|
maxDiscountPerOrder: z.ZodDefault<z.ZodNumber>;
|
|
426
|
+
isMaxDiscountPerOrderEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
408
427
|
spendLimit: z.ZodDefault<z.ZodNumber>;
|
|
428
|
+
isSpendLimitEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
409
429
|
isOnlyForSubscriber: z.ZodDefault<z.ZodBoolean>;
|
|
410
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>]>;
|
|
411
431
|
isAppliedByCompany: z.ZodBoolean;
|
|
@@ -441,8 +461,10 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
441
461
|
categories: import("mongoose").Types.ObjectId[];
|
|
442
462
|
isEntireMenu: boolean;
|
|
443
463
|
spendLimit: number;
|
|
464
|
+
isSpendLimitEnabled: boolean;
|
|
444
465
|
isOnlyForSubscriber: boolean;
|
|
445
466
|
maxDiscountPerOrder: number;
|
|
467
|
+
isMaxDiscountPerOrderEnabled: boolean;
|
|
446
468
|
value?: number | undefined;
|
|
447
469
|
valueType?: ValueType | undefined;
|
|
448
470
|
categoryValueType?: ValueType | undefined;
|
|
@@ -469,10 +491,12 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
469
491
|
categories?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
470
492
|
isEntireMenu?: boolean | undefined;
|
|
471
493
|
spendLimit?: number | undefined;
|
|
494
|
+
isSpendLimitEnabled?: boolean | undefined;
|
|
472
495
|
isOnlyForSubscriber?: boolean | undefined;
|
|
473
496
|
categoryValueType?: ValueType | undefined;
|
|
474
497
|
categoryValue?: number | undefined;
|
|
475
498
|
maxDiscountPerOrder?: number | undefined;
|
|
499
|
+
isMaxDiscountPerOrderEnabled?: boolean | undefined;
|
|
476
500
|
}>, {
|
|
477
501
|
isAppliedByCompany: boolean;
|
|
478
502
|
shop: import("mongoose").Types.ObjectId;
|
|
@@ -493,8 +517,10 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
493
517
|
categories: import("mongoose").Types.ObjectId[];
|
|
494
518
|
isEntireMenu: boolean;
|
|
495
519
|
spendLimit: number;
|
|
520
|
+
isSpendLimitEnabled: boolean;
|
|
496
521
|
isOnlyForSubscriber: boolean;
|
|
497
522
|
maxDiscountPerOrder: number;
|
|
523
|
+
isMaxDiscountPerOrderEnabled: boolean;
|
|
498
524
|
value?: number | undefined;
|
|
499
525
|
valueType?: ValueType | undefined;
|
|
500
526
|
categoryValueType?: ValueType | undefined;
|
|
@@ -521,10 +547,12 @@ declare const DiscountMarketingValidationSchemaRefined: z.ZodEffects<z.ZodObject
|
|
|
521
547
|
categories?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
522
548
|
isEntireMenu?: boolean | undefined;
|
|
523
549
|
spendLimit?: number | undefined;
|
|
550
|
+
isSpendLimitEnabled?: boolean | undefined;
|
|
524
551
|
isOnlyForSubscriber?: boolean | undefined;
|
|
525
552
|
categoryValueType?: ValueType | undefined;
|
|
526
553
|
categoryValue?: number | undefined;
|
|
527
554
|
maxDiscountPerOrder?: number | undefined;
|
|
555
|
+
isMaxDiscountPerOrderEnabled?: boolean | undefined;
|
|
528
556
|
}>;
|
|
529
557
|
/**
|
|
530
558
|
* Export schemas
|
|
@@ -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;
|
|
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"}
|
|
@@ -7,6 +7,7 @@ import { MarketingType } from '@lyxa.ai/core/dist/utilities/enum';
|
|
|
7
7
|
declare const FreeDeliveryMarketingValidationSchema: z.ZodObject<{
|
|
8
8
|
marketingType: z.ZodLiteral<MarketingType.FREE_DELIVERY>;
|
|
9
9
|
spendLimit: z.ZodDefault<z.ZodNumber>;
|
|
10
|
+
isSpendLimitEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
10
11
|
shop: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>;
|
|
11
12
|
isAppliedByCompany: z.ZodBoolean;
|
|
12
13
|
duration: z.ZodObject<{
|
|
@@ -32,6 +33,7 @@ declare const FreeDeliveryMarketingValidationSchema: z.ZodObject<{
|
|
|
32
33
|
};
|
|
33
34
|
pausedAt: Date | null;
|
|
34
35
|
spendLimit: number;
|
|
36
|
+
isSpendLimitEnabled: boolean;
|
|
35
37
|
}, {
|
|
36
38
|
isAppliedByCompany: boolean;
|
|
37
39
|
shop: string | import("mongoose").Types.ObjectId;
|
|
@@ -43,9 +45,11 @@ declare const FreeDeliveryMarketingValidationSchema: z.ZodObject<{
|
|
|
43
45
|
status?: import("@lyxa.ai/core/dist/utilities/enum").MarketingStatus | undefined;
|
|
44
46
|
pausedAt?: string | Date | null | undefined;
|
|
45
47
|
spendLimit?: number | undefined;
|
|
48
|
+
isSpendLimitEnabled?: boolean | undefined;
|
|
46
49
|
}>, FreeDeliveryMarketingSchema: z.ZodObject<{
|
|
47
50
|
marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.FREE_DELIVERY>>;
|
|
48
51
|
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
52
|
+
isSpendLimitEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
49
53
|
shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
50
54
|
isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
|
|
51
55
|
duration: z.ZodOptional<z.ZodObject<{
|
|
@@ -64,6 +68,7 @@ declare const FreeDeliveryMarketingValidationSchema: z.ZodObject<{
|
|
|
64
68
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
65
69
|
marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.FREE_DELIVERY>>;
|
|
66
70
|
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
71
|
+
isSpendLimitEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
67
72
|
shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
68
73
|
isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
|
|
69
74
|
duration: z.ZodOptional<z.ZodObject<{
|
|
@@ -82,6 +87,7 @@ declare const FreeDeliveryMarketingValidationSchema: z.ZodObject<{
|
|
|
82
87
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
83
88
|
marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.FREE_DELIVERY>>;
|
|
84
89
|
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
90
|
+
isSpendLimitEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
85
91
|
shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
86
92
|
isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
|
|
87
93
|
duration: z.ZodOptional<z.ZodObject<{
|
|
@@ -106,6 +112,7 @@ declare const FreeDeliveryMarketingValidationSchema: z.ZodObject<{
|
|
|
106
112
|
}> | z.ZodObject<{
|
|
107
113
|
marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.FREE_DELIVERY>>;
|
|
108
114
|
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
115
|
+
isSpendLimitEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
109
116
|
shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
110
117
|
isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
|
|
111
118
|
duration: z.ZodOptional<z.ZodObject<{
|
|
@@ -124,6 +131,7 @@ declare const FreeDeliveryMarketingValidationSchema: z.ZodObject<{
|
|
|
124
131
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
125
132
|
marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.FREE_DELIVERY>>;
|
|
126
133
|
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
134
|
+
isSpendLimitEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
127
135
|
shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
128
136
|
isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
|
|
129
137
|
duration: z.ZodOptional<z.ZodObject<{
|
|
@@ -142,6 +150,7 @@ declare const FreeDeliveryMarketingValidationSchema: z.ZodObject<{
|
|
|
142
150
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
143
151
|
marketingType: z.ZodOptional<z.ZodLiteral<MarketingType.FREE_DELIVERY>>;
|
|
144
152
|
spendLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
153
|
+
isSpendLimitEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
145
154
|
shop: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
146
155
|
isAppliedByCompany: z.ZodOptional<z.ZodBoolean>;
|
|
147
156
|
duration: z.ZodOptional<z.ZodObject<{
|
package/dist/types/modules/marketing/validations/free-delivery-marketing.validation.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"free-delivery-marketing.validation.d.ts","sourceRoot":"/","sources":["modules/marketing/validations/free-delivery-marketing.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGN,GAAG,EACH,MAAM,2DAA2D,CAAC;AAEnE,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"free-delivery-marketing.validation.d.ts","sourceRoot":"/","sources":["modules/marketing/validations/free-delivery-marketing.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGN,GAAG,EACH,MAAM,2DAA2D,CAAC;AAEnE,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAmBlE;;GAEG;AACH,QAAA,MACa,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IACnC,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAC/B,6BAA6B,mNACzB,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCACI,CAAC;AAErD;;GAEG;AACH,OAAO,EACN,qCAAqC,EACrC,2BAA2B,EAC3B,6BAA6B,IAAI,uCAAuC,EACxE,iCAAiC,GACjC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG,GAAG,CAAC,OAAO,qCAAqC,CAAC,CAAC;AAC/F,MAAM,MAAM,wBAAwB,GAAG,GAAG,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAC/E,MAAM,MAAM,8BAA8B,GAAG,GAAG,CAAC,OAAO,iCAAiC,CAAC,CAAC"}
|
package/dist/types/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"punch-marketing-history.router.d.ts","sourceRoot":"/","sources":["modules/punch-marketing-history/routers/punch-marketing-history.router.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"punch-marketing-history.router.d.ts","sourceRoot":"/","sources":["modules/punch-marketing-history/routers/punch-marketing-history.router.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAef,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqExB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lyxa.ai/marketing",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.21",
|
|
4
4
|
"description": "The Lyxa Marketing microservice",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/lib/index.js",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"test:watch": "jest --watch"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@lyxa.ai/core": "1.1.
|
|
22
|
+
"@lyxa.ai/core": "1.1.72",
|
|
23
23
|
"@lyxa.ai/notification": "^1.0.7",
|
|
24
24
|
"@trpc/client": "^11.4.3",
|
|
25
25
|
"@trpc/server": "^11.4.3",
|