@lyxa.ai/marketing 1.0.44 → 1.0.47
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 +170 -28
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/modules/coupon/routers/coupon.router.d.ts +169 -27
- package/dist/lib/modules/coupon/routers/coupon.router.d.ts.map +1 -1
- package/dist/lib/modules/coupon/routers/coupon.router.js +13 -4
- package/dist/lib/modules/coupon/routers/coupon.router.js.map +1 -1
- package/dist/lib/modules/coupon/services/coupon.service.d.ts +4 -1
- package/dist/lib/modules/coupon/services/coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/coupon.service.js +134 -15
- package/dist/lib/modules/coupon/services/coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/custom-coupon.service.d.ts +208 -3
- package/dist/lib/modules/coupon/services/custom-coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/global-coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/global-coupon.service.js +2 -0
- package/dist/lib/modules/coupon/services/global-coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/helper.service.d.ts +214 -4
- package/dist/lib/modules/coupon/services/helper.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/helper.service.js +114 -16
- package/dist/lib/modules/coupon/services/helper.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/individual-store-coupon.service.d.ts +208 -3
- package/dist/lib/modules/coupon/services/individual-store-coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/individual-user-coupon.service.d.ts +1 -1
- package/dist/lib/modules/coupon/services/individual-user-coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/individual-user-coupon.service.js +20 -11
- package/dist/lib/modules/coupon/services/individual-user-coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.d.ts +10 -4
- package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.js +90 -14
- package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.js.map +1 -1
- package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.d.ts +2 -2
- package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.js +151 -45
- package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.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 +17 -4
- package/dist/lib/modules/coupon/services/referral-reward-coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/shops-categories-coupon.service.d.ts +208 -3
- package/dist/lib/modules/coupon/services/shops-categories-coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/transformers/coupon.transformer.d.ts +5 -1
- package/dist/lib/modules/coupon/transformers/coupon.transformer.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/all-coupons.validation.d.ts +243 -23
- package/dist/lib/modules/coupon/validations/all-coupons.validation.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/coupon.validation.d.ts +412 -48
- package/dist/lib/modules/coupon/validations/coupon.validation.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/coupon.validation.js +39 -6
- package/dist/lib/modules/coupon/validations/coupon.validation.js.map +1 -1
- package/dist/lib/modules/coupon/validations/create-coupon.validation.d.ts +94 -6
- package/dist/lib/modules/coupon/validations/create-coupon.validation.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/custom-coupon.validation.d.ts +9 -0
- package/dist/lib/modules/coupon/validations/custom-coupon.validation.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/custom-coupon.validation.js +1 -0
- package/dist/lib/modules/coupon/validations/custom-coupon.validation.js.map +1 -1
- package/dist/lib/modules/coupon/validations/individual-store-coupon.validation.d.ts +200 -122
- package/dist/lib/modules/coupon/validations/individual-store-coupon.validation.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/individual-store-coupon.validation.js +20 -3
- package/dist/lib/modules/coupon/validations/individual-store-coupon.validation.js.map +1 -1
- package/dist/lib/modules/coupon/validations/individual-user-coupon.validation.d.ts +9 -0
- package/dist/lib/modules/coupon/validations/individual-user-coupon.validation.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/individual-user-coupon.validation.js +1 -0
- package/dist/lib/modules/coupon/validations/individual-user-coupon.validation.js.map +1 -1
- package/dist/lib/modules/coupon/validations/shops-categories-coupon.validation.d.ts +9 -0
- package/dist/lib/modules/coupon/validations/shops-categories-coupon.validation.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/shops-categories-coupon.validation.js +1 -0
- package/dist/lib/modules/coupon/validations/shops-categories-coupon.validation.js.map +1 -1
- package/dist/lib/modules/marketing/validations/buy1-get1-marketing.validation.d.ts +6 -6
- package/dist/lib/modules/marketing/validations/discount-marketing.validation.d.ts +6 -6
- package/dist/lib/modules/marketing/validations/product-marketing.validation.d.ts +2 -2
- package/dist/lib/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts +1 -1
- package/dist/lib/modules/punch-marketing-history/validations/punch-marketing-history.validation.d.ts +2 -2
- package/dist/types/index.d.ts +170 -28
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/modules/coupon/routers/coupon.router.d.ts +169 -27
- package/dist/types/modules/coupon/routers/coupon.router.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/coupon.service.d.ts +4 -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 +208 -3
- 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/helper.service.d.ts +214 -4
- package/dist/types/modules/coupon/services/helper.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/individual-store-coupon.service.d.ts +208 -3
- 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 +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/CouponMetricsRepository.d.ts +10 -4
- package/dist/types/modules/coupon/services/patterns/repository/CouponMetricsRepository.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/patterns/repository/CouponRepository.d.ts +2 -2
- package/dist/types/modules/coupon/services/patterns/repository/CouponRepository.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/services/shops-categories-coupon.service.d.ts +208 -3
- package/dist/types/modules/coupon/services/shops-categories-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/transformers/coupon.transformer.d.ts +5 -1
- package/dist/types/modules/coupon/transformers/coupon.transformer.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/all-coupons.validation.d.ts +243 -23
- package/dist/types/modules/coupon/validations/all-coupons.validation.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/coupon.validation.d.ts +412 -48
- package/dist/types/modules/coupon/validations/coupon.validation.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/create-coupon.validation.d.ts +94 -6
- package/dist/types/modules/coupon/validations/create-coupon.validation.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/custom-coupon.validation.d.ts +9 -0
- package/dist/types/modules/coupon/validations/custom-coupon.validation.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/individual-store-coupon.validation.d.ts +200 -122
- 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 +9 -0
- package/dist/types/modules/coupon/validations/individual-user-coupon.validation.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/shops-categories-coupon.validation.d.ts +9 -0
- package/dist/types/modules/coupon/validations/shops-categories-coupon.validation.d.ts.map +1 -1
- package/dist/types/modules/marketing/validations/buy1-get1-marketing.validation.d.ts +6 -6
- package/dist/types/modules/marketing/validations/discount-marketing.validation.d.ts +6 -6
- package/dist/types/modules/marketing/validations/product-marketing.validation.d.ts +2 -2
- package/dist/types/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts +1 -1
- package/dist/types/modules/punch-marketing-history/validations/punch-marketing-history.validation.d.ts +2 -2
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coupon.validation.d.ts","sourceRoot":"/","sources":["modules/coupon/validations/coupon.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGN,GAAG,EACH,MAAM,2DAA2D,CAAC;AACnE,OAAO,EACN,sBAAsB,EACtB,UAAU,EACV,SAAS,EACT,QAAQ,EACR,MAAM,EACN,SAAS,EACT,MAAM,mCAAmC,CAAC;AAO3C;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;CAkBxB,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCtB,CAAC;AASF;;GAEG;AACH,QAAA,MACa,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IACpB,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAChB,cAAc,mNACV,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAgB,CAAC,CAAC;AACzD,MAAM,MAAM,sBAAsB,GAAG,GAAG,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC3E,MAAM,MAAM,sBAAsB,GAAG,GAAG,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC3E,MAAM,MAAM,QAAQ,GAAG,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC;AAC/C,MAAM,MAAM,mBAAmB,GAAG,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
|
@@ -247,6 +247,7 @@ export declare const CreateCouponSchema: import("zod").ZodEffects<import("zod").
|
|
|
247
247
|
couponType: import("zod").ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.SHOPS_CATEGORIES>;
|
|
248
248
|
itemTypes: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>;
|
|
249
249
|
shops: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, import("mongoose").Types.ObjectId, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>;
|
|
250
|
+
vendors: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, import("mongoose").Types.ObjectId, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>;
|
|
250
251
|
isShopCoverExpenses: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
251
252
|
firstOrderOnly: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
252
253
|
valueType: import("zod").ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>;
|
|
@@ -317,6 +318,7 @@ export declare const CreateCouponSchema: import("zod").ZodEffects<import("zod").
|
|
|
317
318
|
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.SHOPS_CATEGORIES;
|
|
318
319
|
itemTypes: import("@lyxa.ai/core/dist/utilities/enum").ItemType[];
|
|
319
320
|
shops: import("mongoose").Types.ObjectId[];
|
|
321
|
+
vendors: import("mongoose").Types.ObjectId[];
|
|
320
322
|
isShopCoverExpenses: boolean;
|
|
321
323
|
firstOrderOnly: boolean;
|
|
322
324
|
secondaryCurrencyValue?: number | undefined;
|
|
@@ -359,11 +361,13 @@ export declare const CreateCouponSchema: import("zod").ZodEffects<import("zod").
|
|
|
359
361
|
isExpired?: boolean | undefined;
|
|
360
362
|
itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
|
|
361
363
|
shops?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
364
|
+
vendors?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
362
365
|
isShopCoverExpenses?: boolean | undefined;
|
|
363
366
|
firstOrderOnly?: boolean | undefined;
|
|
364
|
-
}>, import("zod").ZodObject<{
|
|
367
|
+
}>, import("zod").ZodEffects<import("zod").ZodObject<{
|
|
365
368
|
couponType: import("zod").ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE>;
|
|
366
|
-
shop: import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, import("mongoose").Types.ObjectId, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]
|
|
369
|
+
shop: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, import("mongoose").Types.ObjectId, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
370
|
+
vendor: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, import("mongoose").Types.ObjectId, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
367
371
|
isShopCoverExpenses: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
368
372
|
firstOrderOnly: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
369
373
|
valueType: import("zod").ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>;
|
|
@@ -431,7 +435,6 @@ export declare const CreateCouponSchema: import("zod").ZodEffects<import("zod").
|
|
|
431
435
|
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
432
436
|
orderLimitPerUser: number | null;
|
|
433
437
|
isOrderLimitPerUserEnabled: boolean;
|
|
434
|
-
shop: import("mongoose").Types.ObjectId;
|
|
435
438
|
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE;
|
|
436
439
|
isShopCoverExpenses: boolean;
|
|
437
440
|
firstOrderOnly: boolean;
|
|
@@ -443,6 +446,76 @@ export declare const CreateCouponSchema: import("zod").ZodEffects<import("zod").
|
|
|
443
446
|
} | undefined;
|
|
444
447
|
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
445
448
|
isExpired?: boolean | undefined;
|
|
449
|
+
shop?: import("mongoose").Types.ObjectId | undefined;
|
|
450
|
+
vendor?: import("mongoose").Types.ObjectId | undefined;
|
|
451
|
+
}, {
|
|
452
|
+
code: string;
|
|
453
|
+
value: number;
|
|
454
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
455
|
+
duration: {
|
|
456
|
+
start: string | Date;
|
|
457
|
+
end?: string | Date | undefined;
|
|
458
|
+
};
|
|
459
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE;
|
|
460
|
+
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
461
|
+
secondaryCurrencyValue?: number | undefined;
|
|
462
|
+
maxDiscountLimit?: number | null | undefined;
|
|
463
|
+
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
464
|
+
isMaxDiscountLimitEnabled?: boolean | undefined;
|
|
465
|
+
spendLimit?: number | null | undefined;
|
|
466
|
+
isSpendLimitEnabled?: boolean | undefined;
|
|
467
|
+
totalOrderLimit?: number | null | undefined;
|
|
468
|
+
isTotalOrderLimitEnabled?: boolean | undefined;
|
|
469
|
+
minOrderValue?: number | null | undefined;
|
|
470
|
+
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
471
|
+
isMinOrderValueEnabled?: boolean | undefined;
|
|
472
|
+
forNewUserOnly?: boolean | undefined;
|
|
473
|
+
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
474
|
+
referringUser?: {
|
|
475
|
+
name?: string | undefined;
|
|
476
|
+
} | undefined;
|
|
477
|
+
orderLimitPerUser?: number | null | undefined;
|
|
478
|
+
isOrderLimitPerUserEnabled?: boolean | undefined;
|
|
479
|
+
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
480
|
+
isExpired?: boolean | undefined;
|
|
481
|
+
shop?: string | import("mongoose").Types.ObjectId | undefined;
|
|
482
|
+
vendor?: string | import("mongoose").Types.ObjectId | undefined;
|
|
483
|
+
isShopCoverExpenses?: boolean | undefined;
|
|
484
|
+
firstOrderOnly?: boolean | undefined;
|
|
485
|
+
}>, {
|
|
486
|
+
code: string;
|
|
487
|
+
value: number;
|
|
488
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
489
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
490
|
+
maxDiscountLimit: number | null;
|
|
491
|
+
isMaxDiscountLimitEnabled: boolean;
|
|
492
|
+
duration: {
|
|
493
|
+
start: Date;
|
|
494
|
+
end?: Date | undefined;
|
|
495
|
+
};
|
|
496
|
+
spendLimit: number | null;
|
|
497
|
+
isSpendLimitEnabled: boolean;
|
|
498
|
+
totalOrderLimit: number | null;
|
|
499
|
+
isTotalOrderLimitEnabled: boolean;
|
|
500
|
+
minOrderValue: number | null;
|
|
501
|
+
isMinOrderValueEnabled: boolean;
|
|
502
|
+
forNewUserOnly: boolean;
|
|
503
|
+
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
504
|
+
orderLimitPerUser: number | null;
|
|
505
|
+
isOrderLimitPerUserEnabled: boolean;
|
|
506
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE;
|
|
507
|
+
isShopCoverExpenses: boolean;
|
|
508
|
+
firstOrderOnly: boolean;
|
|
509
|
+
secondaryCurrencyValue?: number | undefined;
|
|
510
|
+
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
511
|
+
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
512
|
+
referringUser?: {
|
|
513
|
+
name?: string | undefined;
|
|
514
|
+
} | undefined;
|
|
515
|
+
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
516
|
+
isExpired?: boolean | undefined;
|
|
517
|
+
shop?: import("mongoose").Types.ObjectId | undefined;
|
|
518
|
+
vendor?: import("mongoose").Types.ObjectId | undefined;
|
|
446
519
|
}, {
|
|
447
520
|
code: string;
|
|
448
521
|
value: number;
|
|
@@ -451,7 +524,6 @@ export declare const CreateCouponSchema: import("zod").ZodEffects<import("zod").
|
|
|
451
524
|
start: string | Date;
|
|
452
525
|
end?: string | Date | undefined;
|
|
453
526
|
};
|
|
454
|
-
shop: string | import("mongoose").Types.ObjectId;
|
|
455
527
|
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE;
|
|
456
528
|
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
457
529
|
secondaryCurrencyValue?: number | undefined;
|
|
@@ -474,6 +546,8 @@ export declare const CreateCouponSchema: import("zod").ZodEffects<import("zod").
|
|
|
474
546
|
isOrderLimitPerUserEnabled?: boolean | undefined;
|
|
475
547
|
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
476
548
|
isExpired?: boolean | undefined;
|
|
549
|
+
shop?: string | import("mongoose").Types.ObjectId | undefined;
|
|
550
|
+
vendor?: string | import("mongoose").Types.ObjectId | undefined;
|
|
477
551
|
isShopCoverExpenses?: boolean | undefined;
|
|
478
552
|
firstOrderOnly?: boolean | undefined;
|
|
479
553
|
}>, import("zod").ZodObject<{
|
|
@@ -481,6 +555,7 @@ export declare const CreateCouponSchema: import("zod").ZodEffects<import("zod").
|
|
|
481
555
|
users: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, import("mongoose").Types.ObjectId, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>, "atleastone">;
|
|
482
556
|
itemTypes: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>;
|
|
483
557
|
shops: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, import("mongoose").Types.ObjectId, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>;
|
|
558
|
+
vendors: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, import("mongoose").Types.ObjectId, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>;
|
|
484
559
|
valueType: import("zod").ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>;
|
|
485
560
|
value: import("zod").ZodNumber;
|
|
486
561
|
secondaryCurrencyValue: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
@@ -549,6 +624,7 @@ export declare const CreateCouponSchema: import("zod").ZodEffects<import("zod").
|
|
|
549
624
|
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER;
|
|
550
625
|
itemTypes: import("@lyxa.ai/core/dist/utilities/enum").ItemType[];
|
|
551
626
|
shops: import("mongoose").Types.ObjectId[];
|
|
627
|
+
vendors: import("mongoose").Types.ObjectId[];
|
|
552
628
|
users: [import("mongoose").Types.ObjectId, ...import("mongoose").Types.ObjectId[]];
|
|
553
629
|
secondaryCurrencyValue?: number | undefined;
|
|
554
630
|
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
@@ -591,11 +667,13 @@ export declare const CreateCouponSchema: import("zod").ZodEffects<import("zod").
|
|
|
591
667
|
isExpired?: boolean | undefined;
|
|
592
668
|
itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
|
|
593
669
|
shops?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
670
|
+
vendors?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
594
671
|
}>, import("zod").ZodObject<{
|
|
595
672
|
couponType: import("zod").ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON>;
|
|
596
673
|
influencer: import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, import("mongoose").Types.ObjectId, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>;
|
|
597
674
|
itemTypes: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>;
|
|
598
675
|
shops: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, import("mongoose").Types.ObjectId, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>;
|
|
676
|
+
vendors: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, import("mongoose").Types.ObjectId, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>;
|
|
599
677
|
valueType: import("zod").ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>;
|
|
600
678
|
value: import("zod").ZodNumber;
|
|
601
679
|
secondaryCurrencyValue: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
@@ -664,6 +742,7 @@ export declare const CreateCouponSchema: import("zod").ZodEffects<import("zod").
|
|
|
664
742
|
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON;
|
|
665
743
|
itemTypes: import("@lyxa.ai/core/dist/utilities/enum").ItemType[];
|
|
666
744
|
shops: import("mongoose").Types.ObjectId[];
|
|
745
|
+
vendors: import("mongoose").Types.ObjectId[];
|
|
667
746
|
influencer: import("mongoose").Types.ObjectId;
|
|
668
747
|
secondaryCurrencyValue?: number | undefined;
|
|
669
748
|
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
@@ -706,6 +785,7 @@ export declare const CreateCouponSchema: import("zod").ZodEffects<import("zod").
|
|
|
706
785
|
isExpired?: boolean | undefined;
|
|
707
786
|
itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
|
|
708
787
|
shops?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
788
|
+
vendors?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
709
789
|
}>]>, {
|
|
710
790
|
code: string;
|
|
711
791
|
value: number;
|
|
@@ -801,6 +881,7 @@ export declare const CreateCouponSchema: import("zod").ZodEffects<import("zod").
|
|
|
801
881
|
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.SHOPS_CATEGORIES;
|
|
802
882
|
itemTypes: import("@lyxa.ai/core/dist/utilities/enum").ItemType[];
|
|
803
883
|
shops: import("mongoose").Types.ObjectId[];
|
|
884
|
+
vendors: import("mongoose").Types.ObjectId[];
|
|
804
885
|
isShopCoverExpenses: boolean;
|
|
805
886
|
firstOrderOnly: boolean;
|
|
806
887
|
secondaryCurrencyValue?: number | undefined;
|
|
@@ -832,7 +913,6 @@ export declare const CreateCouponSchema: import("zod").ZodEffects<import("zod").
|
|
|
832
913
|
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
833
914
|
orderLimitPerUser: number | null;
|
|
834
915
|
isOrderLimitPerUserEnabled: boolean;
|
|
835
|
-
shop: import("mongoose").Types.ObjectId;
|
|
836
916
|
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE;
|
|
837
917
|
isShopCoverExpenses: boolean;
|
|
838
918
|
firstOrderOnly: boolean;
|
|
@@ -844,6 +924,8 @@ export declare const CreateCouponSchema: import("zod").ZodEffects<import("zod").
|
|
|
844
924
|
} | undefined;
|
|
845
925
|
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
846
926
|
isExpired?: boolean | undefined;
|
|
927
|
+
shop?: import("mongoose").Types.ObjectId | undefined;
|
|
928
|
+
vendor?: import("mongoose").Types.ObjectId | undefined;
|
|
847
929
|
} | {
|
|
848
930
|
code: string;
|
|
849
931
|
value: number;
|
|
@@ -868,6 +950,7 @@ export declare const CreateCouponSchema: import("zod").ZodEffects<import("zod").
|
|
|
868
950
|
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER;
|
|
869
951
|
itemTypes: import("@lyxa.ai/core/dist/utilities/enum").ItemType[];
|
|
870
952
|
shops: import("mongoose").Types.ObjectId[];
|
|
953
|
+
vendors: import("mongoose").Types.ObjectId[];
|
|
871
954
|
users: [import("mongoose").Types.ObjectId, ...import("mongoose").Types.ObjectId[]];
|
|
872
955
|
secondaryCurrencyValue?: number | undefined;
|
|
873
956
|
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
@@ -901,6 +984,7 @@ export declare const CreateCouponSchema: import("zod").ZodEffects<import("zod").
|
|
|
901
984
|
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON;
|
|
902
985
|
itemTypes: import("@lyxa.ai/core/dist/utilities/enum").ItemType[];
|
|
903
986
|
shops: import("mongoose").Types.ObjectId[];
|
|
987
|
+
vendors: import("mongoose").Types.ObjectId[];
|
|
904
988
|
influencer: import("mongoose").Types.ObjectId;
|
|
905
989
|
secondaryCurrencyValue?: number | undefined;
|
|
906
990
|
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
@@ -1013,6 +1097,7 @@ export declare const CreateCouponSchema: import("zod").ZodEffects<import("zod").
|
|
|
1013
1097
|
isExpired?: boolean | undefined;
|
|
1014
1098
|
itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
|
|
1015
1099
|
shops?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
1100
|
+
vendors?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
1016
1101
|
isShopCoverExpenses?: boolean | undefined;
|
|
1017
1102
|
firstOrderOnly?: boolean | undefined;
|
|
1018
1103
|
} | {
|
|
@@ -1023,7 +1108,6 @@ export declare const CreateCouponSchema: import("zod").ZodEffects<import("zod").
|
|
|
1023
1108
|
start: string | Date;
|
|
1024
1109
|
end?: string | Date | undefined;
|
|
1025
1110
|
};
|
|
1026
|
-
shop: string | import("mongoose").Types.ObjectId;
|
|
1027
1111
|
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE;
|
|
1028
1112
|
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
1029
1113
|
secondaryCurrencyValue?: number | undefined;
|
|
@@ -1046,6 +1130,8 @@ export declare const CreateCouponSchema: import("zod").ZodEffects<import("zod").
|
|
|
1046
1130
|
isOrderLimitPerUserEnabled?: boolean | undefined;
|
|
1047
1131
|
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
1048
1132
|
isExpired?: boolean | undefined;
|
|
1133
|
+
shop?: string | import("mongoose").Types.ObjectId | undefined;
|
|
1134
|
+
vendor?: string | import("mongoose").Types.ObjectId | undefined;
|
|
1049
1135
|
isShopCoverExpenses?: boolean | undefined;
|
|
1050
1136
|
firstOrderOnly?: boolean | undefined;
|
|
1051
1137
|
} | {
|
|
@@ -1081,6 +1167,7 @@ export declare const CreateCouponSchema: import("zod").ZodEffects<import("zod").
|
|
|
1081
1167
|
isExpired?: boolean | undefined;
|
|
1082
1168
|
itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
|
|
1083
1169
|
shops?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
1170
|
+
vendors?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
1084
1171
|
} | {
|
|
1085
1172
|
code: string;
|
|
1086
1173
|
value: number;
|
|
@@ -1114,5 +1201,6 @@ export declare const CreateCouponSchema: import("zod").ZodEffects<import("zod").
|
|
|
1114
1201
|
isExpired?: boolean | undefined;
|
|
1115
1202
|
itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
|
|
1116
1203
|
shops?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
1204
|
+
vendors?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
1117
1205
|
}>;
|
|
1118
1206
|
//# sourceMappingURL=create-coupon.validation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-coupon.validation.d.ts","sourceRoot":"/","sources":["modules/coupon/validations/create-coupon.validation.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"create-coupon.validation.d.ts","sourceRoot":"/","sources":["modules/coupon/validations/create-coupon.validation.ts"],"names":[],"mappings":"AAEA,e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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAS9B,CAAC"}
|
|
@@ -9,6 +9,7 @@ declare const CustomCouponValidationSchema: z.ZodObject<{
|
|
|
9
9
|
influencer: 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
10
|
itemTypes: z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof ItemType>, "many">>;
|
|
11
11
|
shops: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>;
|
|
12
|
+
vendors: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>;
|
|
12
13
|
valueType: z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>;
|
|
13
14
|
value: z.ZodNumber;
|
|
14
15
|
secondaryCurrencyValue: z.ZodOptional<z.ZodNumber>;
|
|
@@ -77,6 +78,7 @@ declare const CustomCouponValidationSchema: z.ZodObject<{
|
|
|
77
78
|
couponType: CouponType.CUSTOM_COUPON;
|
|
78
79
|
itemTypes: ItemType[];
|
|
79
80
|
shops: import("mongoose").Types.ObjectId[];
|
|
81
|
+
vendors: import("mongoose").Types.ObjectId[];
|
|
80
82
|
influencer: import("mongoose").Types.ObjectId;
|
|
81
83
|
secondaryCurrencyValue?: number | undefined;
|
|
82
84
|
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
@@ -119,11 +121,13 @@ declare const CustomCouponValidationSchema: z.ZodObject<{
|
|
|
119
121
|
isExpired?: boolean | undefined;
|
|
120
122
|
itemTypes?: ItemType[] | undefined;
|
|
121
123
|
shops?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
124
|
+
vendors?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
122
125
|
}>, CustomCouponSchema: z.ZodObject<{
|
|
123
126
|
couponType: z.ZodOptional<z.ZodLiteral<CouponType.CUSTOM_COUPON>>;
|
|
124
127
|
influencer: 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>]>>;
|
|
125
128
|
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof ItemType>, "many">>>;
|
|
126
129
|
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
|
|
130
|
+
vendors: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
|
|
127
131
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
128
132
|
value: z.ZodOptional<z.ZodNumber>;
|
|
129
133
|
secondaryCurrencyValue: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -174,6 +178,7 @@ declare const CustomCouponValidationSchema: z.ZodObject<{
|
|
|
174
178
|
influencer: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
175
179
|
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof ItemType>, "many">>>;
|
|
176
180
|
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
|
|
181
|
+
vendors: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
|
|
177
182
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
178
183
|
value: z.ZodOptional<z.ZodNumber>;
|
|
179
184
|
secondaryCurrencyValue: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -224,6 +229,7 @@ declare const CustomCouponValidationSchema: z.ZodObject<{
|
|
|
224
229
|
influencer: 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>]>>;
|
|
225
230
|
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof ItemType>, "many">>>;
|
|
226
231
|
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
|
|
232
|
+
vendors: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
|
|
227
233
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
228
234
|
value: z.ZodOptional<z.ZodNumber>;
|
|
229
235
|
secondaryCurrencyValue: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -280,6 +286,7 @@ declare const CustomCouponValidationSchema: z.ZodObject<{
|
|
|
280
286
|
influencer: 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>]>>;
|
|
281
287
|
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof ItemType>, "many">>>;
|
|
282
288
|
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
|
|
289
|
+
vendors: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
|
|
283
290
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
284
291
|
value: z.ZodOptional<z.ZodNumber>;
|
|
285
292
|
secondaryCurrencyValue: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -330,6 +337,7 @@ declare const CustomCouponValidationSchema: z.ZodObject<{
|
|
|
330
337
|
influencer: 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>]>>;
|
|
331
338
|
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof ItemType>, "many">>>;
|
|
332
339
|
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
|
|
340
|
+
vendors: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
|
|
333
341
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
334
342
|
value: z.ZodOptional<z.ZodNumber>;
|
|
335
343
|
secondaryCurrencyValue: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -380,6 +388,7 @@ declare const CustomCouponValidationSchema: z.ZodObject<{
|
|
|
380
388
|
influencer: 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>]>>;
|
|
381
389
|
itemTypes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof ItemType>, "many">>>;
|
|
382
390
|
shops: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
|
|
391
|
+
vendors: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">>>;
|
|
383
392
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
384
393
|
value: z.ZodOptional<z.ZodNumber>;
|
|
385
394
|
secondaryCurrencyValue: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-coupon.validation.d.ts","sourceRoot":"/","sources":["modules/coupon/validations/custom-coupon.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGN,GAAG,EACH,MAAM,2DAA2D,CAAC;AAEnE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"custom-coupon.validation.d.ts","sourceRoot":"/","sources":["modules/coupon/validations/custom-coupon.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGN,GAAG,EACH,MAAM,2DAA2D,CAAC;AAEnE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAA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