@lyxa.ai/marketing 1.0.53 → 1.0.55
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 +679 -28
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/index.js +2 -2
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/modules/coupon/routers/coupon.router.d.ts +651 -0
- package/dist/lib/modules/coupon/routers/coupon.router.d.ts.map +1 -1
- package/dist/lib/modules/coupon/routers/coupon.router.js +8 -1
- package/dist/lib/modules/coupon/routers/coupon.router.js.map +1 -1
- package/dist/lib/modules/coupon/services/coupon.service.d.ts +8 -1
- package/dist/lib/modules/coupon/services/coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/coupon.service.js +234 -27
- package/dist/lib/modules/coupon/services/coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/custom-coupon.service.d.ts +5 -0
- package/dist/lib/modules/coupon/services/custom-coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/helper.service.d.ts +5 -0
- package/dist/lib/modules/coupon/services/helper.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/individual-store-coupon.service.d.ts +5 -0
- package/dist/lib/modules/coupon/services/individual-store-coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.d.ts +1 -0
- package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.js +27 -9
- package/dist/lib/modules/coupon/services/patterns/repository/CouponMetricsRepository.js.map +1 -1
- package/dist/lib/modules/coupon/services/shops-categories-coupon.service.d.ts +5 -0
- package/dist/lib/modules/coupon/services/shops-categories-coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/all-coupons.validation.d.ts +293 -1125
- package/dist/lib/modules/coupon/validations/all-coupons.validation.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/all-coupons.validation.js +2 -16
- package/dist/lib/modules/coupon/validations/all-coupons.validation.js.map +1 -1
- package/dist/lib/modules/coupon/validations/coupon.validation.d.ts +44 -0
- package/dist/lib/modules/coupon/validations/coupon.validation.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/coupon.validation.js +16 -1
- package/dist/lib/modules/coupon/validations/coupon.validation.js.map +1 -1
- package/dist/lib/modules/coupon/validations/create-coupon.validation.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/create-coupon.validation.js +4 -1
- package/dist/lib/modules/coupon/validations/create-coupon.validation.js.map +1 -1
- package/dist/lib/modules/coupon/validations/index.d.ts +1 -0
- package/dist/lib/modules/coupon/validations/index.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/index.js +1 -0
- package/dist/lib/modules/coupon/validations/index.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/campaign/campaign.router.d.ts +8 -8
- package/dist/lib/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts +34 -34
- package/dist/lib/modules/limited-time-offer/config/limited-time-offer-config.validation.d.ts +9 -1
- package/dist/lib/modules/limited-time-offer/config/limited-time-offer-config.validation.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/config/limited-time-offer-config.validation.js +26 -3
- package/dist/lib/modules/limited-time-offer/config/limited-time-offer-config.validation.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/limited-time-offer.router.d.ts +28 -28
- package/dist/lib/modules/limited-time-offer/limited-time-offer.service.d.ts +1 -0
- package/dist/lib/modules/limited-time-offer/limited-time-offer.service.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/limited-time-offer.service.js +6 -0
- package/dist/lib/modules/limited-time-offer/limited-time-offer.service.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/notification/limited-time-offer-notification.builder.d.ts +13 -0
- package/dist/lib/modules/limited-time-offer/notification/limited-time-offer-notification.builder.d.ts.map +1 -0
- package/dist/lib/modules/limited-time-offer/notification/limited-time-offer-notification.builder.js +22 -0
- package/dist/lib/modules/limited-time-offer/notification/limited-time-offer-notification.builder.js.map +1 -0
- package/dist/lib/modules/limited-time-offer/notification/limited-time-offer-notification.constants.d.ts +20 -0
- package/dist/lib/modules/limited-time-offer/notification/limited-time-offer-notification.constants.d.ts.map +1 -0
- package/dist/lib/modules/limited-time-offer/notification/limited-time-offer-notification.constants.js +26 -0
- package/dist/lib/modules/limited-time-offer/notification/limited-time-offer-notification.constants.js.map +1 -0
- package/dist/lib/modules/limited-time-offer/notification/limited-time-offer-notification.service.d.ts +8 -0
- package/dist/lib/modules/limited-time-offer/notification/limited-time-offer-notification.service.d.ts.map +1 -0
- package/dist/lib/modules/limited-time-offer/notification/limited-time-offer-notification.service.js +60 -0
- package/dist/lib/modules/limited-time-offer/notification/limited-time-offer-notification.service.js.map +1 -0
- package/dist/lib/modules/limited-time-offer/notification/limited-time-offer-notification.type.d.ts +5 -0
- package/dist/lib/modules/limited-time-offer/notification/limited-time-offer-notification.type.d.ts.map +1 -0
- package/dist/lib/modules/limited-time-offer/notification/limited-time-offer-notification.type.js +3 -0
- package/dist/lib/modules/limited-time-offer/notification/limited-time-offer-notification.type.js.map +1 -0
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.builder.js +1 -1
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.builder.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.repository.d.ts +1 -0
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.repository.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.repository.js +8 -1
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.repository.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.router.d.ts +20 -20
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts +82 -82
- package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.d.ts +2 -1
- package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.d.ts.map +1 -1
- package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.js +12 -5
- package/dist/lib/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.js.map +1 -1
- package/dist/lib/modules/marketing/services/marketing.service.d.ts +1 -0
- package/dist/lib/modules/marketing/services/marketing.service.d.ts.map +1 -1
- package/dist/lib/modules/marketing/services/marketing.service.js +9 -0
- package/dist/lib/modules/marketing/services/marketing.service.js.map +1 -1
- package/dist/lib/modules/tournament/match/events/evaluate-predictions.consumer.js +1 -1
- package/dist/lib/modules/tournament/match/events/evaluate-predictions.consumer.js.map +1 -1
- package/dist/lib/modules/tournament/notification/__tests__/notification.service.spec.d.ts +2 -0
- package/dist/lib/modules/tournament/notification/__tests__/notification.service.spec.d.ts.map +1 -0
- package/dist/lib/modules/tournament/notification/__tests__/notification.service.spec.js +266 -0
- package/dist/lib/modules/tournament/notification/__tests__/notification.service.spec.js.map +1 -0
- package/dist/lib/modules/tournament/notification/notification.service.d.ts +14 -3
- package/dist/lib/modules/tournament/notification/notification.service.d.ts.map +1 -1
- package/dist/lib/modules/tournament/notification/notification.service.js +89 -31
- package/dist/lib/modules/tournament/notification/notification.service.js.map +1 -1
- package/dist/lib/modules/tournament/participant/participant.repository.d.ts +1 -0
- package/dist/lib/modules/tournament/participant/participant.repository.d.ts.map +1 -1
- package/dist/lib/modules/tournament/participant/participant.repository.js +9 -0
- package/dist/lib/modules/tournament/participant/participant.repository.js.map +1 -1
- package/dist/lib/modules/tournament/participant/participant.service.d.ts +1 -0
- package/dist/lib/modules/tournament/participant/participant.service.d.ts.map +1 -1
- package/dist/lib/modules/tournament/participant/participant.service.js +6 -0
- package/dist/lib/modules/tournament/participant/participant.service.js.map +1 -1
- package/dist/lib/modules/tournament/reward/reward.builder.d.ts.map +1 -1
- package/dist/lib/modules/tournament/reward/reward.builder.js +3 -3
- package/dist/lib/modules/tournament/reward/reward.builder.js.map +1 -1
- package/dist/lib/modules/tournament/reward/reward.types.d.ts +1 -0
- package/dist/lib/modules/tournament/reward/reward.types.d.ts.map +1 -1
- package/dist/lib/modules/tournament/reward/reward.types.js.map +1 -1
- package/dist/lib/modules/tournament/schedule/schedule.service.d.ts +7 -0
- package/dist/lib/modules/tournament/schedule/schedule.service.d.ts.map +1 -1
- package/dist/lib/modules/tournament/schedule/schedule.service.js +52 -19
- package/dist/lib/modules/tournament/schedule/schedule.service.js.map +1 -1
- package/dist/lib/utility/utils.js +2 -2
- package/dist/lib/utility/utils.js.map +1 -1
- package/dist/types/index.d.ts +679 -28
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/modules/coupon/routers/coupon.router.d.ts +651 -0
- package/dist/types/modules/coupon/routers/coupon.router.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/coupon.service.d.ts +8 -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 +5 -0
- package/dist/types/modules/coupon/services/custom-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/helper.service.d.ts +5 -0
- 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 +5 -0
- package/dist/types/modules/coupon/services/individual-store-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/patterns/repository/CouponMetricsRepository.d.ts +1 -0
- package/dist/types/modules/coupon/services/patterns/repository/CouponMetricsRepository.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/shops-categories-coupon.service.d.ts +5 -0
- package/dist/types/modules/coupon/services/shops-categories-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/all-coupons.validation.d.ts +293 -1125
- package/dist/types/modules/coupon/validations/all-coupons.validation.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/coupon.validation.d.ts +44 -0
- package/dist/types/modules/coupon/validations/coupon.validation.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/create-coupon.validation.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/index.d.ts +1 -0
- package/dist/types/modules/coupon/validations/index.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/campaign/campaign.router.d.ts +8 -8
- package/dist/types/modules/limited-time-offer/campaign/limited-time-offer-campaign.validation.d.ts +34 -34
- package/dist/types/modules/limited-time-offer/config/limited-time-offer-config.validation.d.ts +9 -1
- package/dist/types/modules/limited-time-offer/config/limited-time-offer-config.validation.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/limited-time-offer.router.d.ts +28 -28
- package/dist/types/modules/limited-time-offer/limited-time-offer.service.d.ts +1 -0
- package/dist/types/modules/limited-time-offer/limited-time-offer.service.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/notification/limited-time-offer-notification.builder.d.ts +13 -0
- package/dist/types/modules/limited-time-offer/notification/limited-time-offer-notification.builder.d.ts.map +1 -0
- package/dist/types/modules/limited-time-offer/notification/limited-time-offer-notification.constants.d.ts +20 -0
- package/dist/types/modules/limited-time-offer/notification/limited-time-offer-notification.constants.d.ts.map +1 -0
- package/dist/types/modules/limited-time-offer/notification/limited-time-offer-notification.service.d.ts +8 -0
- package/dist/types/modules/limited-time-offer/notification/limited-time-offer-notification.service.d.ts.map +1 -0
- package/dist/types/modules/limited-time-offer/notification/limited-time-offer-notification.type.d.ts +5 -0
- package/dist/types/modules/limited-time-offer/notification/limited-time-offer-notification.type.d.ts.map +1 -0
- package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.repository.d.ts +1 -0
- package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.repository.d.ts.map +1 -1
- package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.router.d.ts +20 -20
- package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.validation.d.ts +82 -82
- package/dist/types/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.d.ts +2 -1
- package/dist/types/modules/limited-time-offer/participant/services/limited-time-offer-participant.service.d.ts.map +1 -1
- package/dist/types/modules/marketing/services/marketing.service.d.ts +1 -0
- package/dist/types/modules/marketing/services/marketing.service.d.ts.map +1 -1
- package/dist/types/modules/tournament/notification/notification.service.d.ts +14 -3
- package/dist/types/modules/tournament/notification/notification.service.d.ts.map +1 -1
- package/dist/types/modules/tournament/participant/participant.repository.d.ts +1 -0
- package/dist/types/modules/tournament/participant/participant.repository.d.ts.map +1 -1
- package/dist/types/modules/tournament/participant/participant.service.d.ts +1 -0
- package/dist/types/modules/tournament/participant/participant.service.d.ts.map +1 -1
- package/dist/types/modules/tournament/reward/reward.builder.d.ts.map +1 -1
- package/dist/types/modules/tournament/reward/reward.types.d.ts +1 -0
- package/dist/types/modules/tournament/reward/reward.types.d.ts.map +1 -1
- package/dist/types/modules/tournament/schedule/schedule.service.d.ts +7 -0
- package/dist/types/modules/tournament/schedule/schedule.service.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const AllCouponsValidationSchema: z.
|
|
2
|
+
export declare const AllCouponsValidationSchema: z.ZodUnion<[z.ZodObject<{
|
|
3
3
|
couponType: z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.GLOBAL>;
|
|
4
4
|
valueType: z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>;
|
|
5
5
|
value: z.ZodNumber;
|
|
@@ -787,423 +787,7 @@ export declare const AllCouponsValidationSchema: z.ZodEffects<z.ZodUnion<[z.ZodO
|
|
|
787
787
|
itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
|
|
788
788
|
shops?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
789
789
|
vendors?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
790
|
-
}>]
|
|
791
|
-
code: string;
|
|
792
|
-
value: number;
|
|
793
|
-
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
794
|
-
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
795
|
-
maxDiscountLimit: number | null;
|
|
796
|
-
isMaxDiscountLimitEnabled: boolean;
|
|
797
|
-
duration: {
|
|
798
|
-
start: Date;
|
|
799
|
-
end?: Date | undefined;
|
|
800
|
-
};
|
|
801
|
-
spendLimit: number | null;
|
|
802
|
-
isSpendLimitEnabled: boolean;
|
|
803
|
-
totalOrderLimit: number | null;
|
|
804
|
-
isTotalOrderLimitEnabled: boolean;
|
|
805
|
-
minOrderValue: number | null;
|
|
806
|
-
isMinOrderValueEnabled: boolean;
|
|
807
|
-
forNewUserOnly: boolean;
|
|
808
|
-
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
809
|
-
orderLimitPerUser: number | null;
|
|
810
|
-
isOrderLimitPerUserEnabled: boolean;
|
|
811
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.GLOBAL;
|
|
812
|
-
secondaryCurrencyValue?: number | undefined;
|
|
813
|
-
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
814
|
-
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
815
|
-
referringUser?: {
|
|
816
|
-
name?: string | undefined;
|
|
817
|
-
} | undefined;
|
|
818
|
-
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
819
|
-
isExpired?: boolean | undefined;
|
|
820
|
-
} | {
|
|
821
|
-
code: string;
|
|
822
|
-
orderLimitPerUser: 1;
|
|
823
|
-
isOrderLimitPerUserEnabled: boolean;
|
|
824
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE;
|
|
825
|
-
referralUser: import("mongoose").Types.ObjectId;
|
|
826
|
-
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
827
|
-
isExpired?: boolean | undefined;
|
|
828
|
-
} | {
|
|
829
|
-
code: string;
|
|
830
|
-
value: number;
|
|
831
|
-
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
832
|
-
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
833
|
-
maxDiscountLimit: number | null;
|
|
834
|
-
isMaxDiscountLimitEnabled: boolean;
|
|
835
|
-
duration: {
|
|
836
|
-
start: Date;
|
|
837
|
-
end?: Date | undefined;
|
|
838
|
-
};
|
|
839
|
-
spendLimit: number | null;
|
|
840
|
-
isSpendLimitEnabled: boolean;
|
|
841
|
-
totalOrderLimit: number | null;
|
|
842
|
-
isTotalOrderLimitEnabled: boolean;
|
|
843
|
-
minOrderValue: number | null;
|
|
844
|
-
isMinOrderValueEnabled: boolean;
|
|
845
|
-
forNewUserOnly: boolean;
|
|
846
|
-
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
847
|
-
orderLimitPerUser: number | null;
|
|
848
|
-
isOrderLimitPerUserEnabled: boolean;
|
|
849
|
-
user: import("mongoose").Types.ObjectId;
|
|
850
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD;
|
|
851
|
-
referralCodeUsedBy: import("mongoose").Types.ObjectId;
|
|
852
|
-
referralCodeUsedOnOrder: import("mongoose").Types.ObjectId;
|
|
853
|
-
secondaryCurrencyValue?: number | undefined;
|
|
854
|
-
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
855
|
-
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
856
|
-
referringUser?: {
|
|
857
|
-
name?: string | undefined;
|
|
858
|
-
} | undefined;
|
|
859
|
-
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
860
|
-
isExpired?: boolean | undefined;
|
|
861
|
-
} | {
|
|
862
|
-
code: string;
|
|
863
|
-
value: number;
|
|
864
|
-
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
865
|
-
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
866
|
-
maxDiscountLimit: number | null;
|
|
867
|
-
isMaxDiscountLimitEnabled: boolean;
|
|
868
|
-
duration: {
|
|
869
|
-
start: Date;
|
|
870
|
-
end?: Date | undefined;
|
|
871
|
-
};
|
|
872
|
-
spendLimit: number | null;
|
|
873
|
-
isSpendLimitEnabled: boolean;
|
|
874
|
-
totalOrderLimit: number | null;
|
|
875
|
-
isTotalOrderLimitEnabled: boolean;
|
|
876
|
-
minOrderValue: number | null;
|
|
877
|
-
isMinOrderValueEnabled: boolean;
|
|
878
|
-
forNewUserOnly: boolean;
|
|
879
|
-
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
880
|
-
orderLimitPerUser: number | null;
|
|
881
|
-
isOrderLimitPerUserEnabled: boolean;
|
|
882
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.SHOPS_CATEGORIES;
|
|
883
|
-
itemTypes: import("@lyxa.ai/core/dist/utilities/enum").ItemType[];
|
|
884
|
-
shops: import("mongoose").Types.ObjectId[];
|
|
885
|
-
vendors: import("mongoose").Types.ObjectId[];
|
|
886
|
-
isShopCoverExpenses: boolean;
|
|
887
|
-
firstOrderOnly: boolean;
|
|
888
|
-
secondaryCurrencyValue?: number | undefined;
|
|
889
|
-
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
890
|
-
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
891
|
-
referringUser?: {
|
|
892
|
-
name?: string | undefined;
|
|
893
|
-
} | undefined;
|
|
894
|
-
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
895
|
-
isExpired?: boolean | undefined;
|
|
896
|
-
} | {
|
|
897
|
-
code: string;
|
|
898
|
-
value: number;
|
|
899
|
-
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
900
|
-
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
901
|
-
maxDiscountLimit: number | null;
|
|
902
|
-
isMaxDiscountLimitEnabled: boolean;
|
|
903
|
-
duration: {
|
|
904
|
-
start: Date;
|
|
905
|
-
end?: Date | undefined;
|
|
906
|
-
};
|
|
907
|
-
spendLimit: number | null;
|
|
908
|
-
isSpendLimitEnabled: boolean;
|
|
909
|
-
totalOrderLimit: number | null;
|
|
910
|
-
isTotalOrderLimitEnabled: boolean;
|
|
911
|
-
minOrderValue: number | null;
|
|
912
|
-
isMinOrderValueEnabled: boolean;
|
|
913
|
-
forNewUserOnly: boolean;
|
|
914
|
-
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
915
|
-
orderLimitPerUser: number | null;
|
|
916
|
-
isOrderLimitPerUserEnabled: boolean;
|
|
917
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE;
|
|
918
|
-
isShopCoverExpenses: boolean;
|
|
919
|
-
firstOrderOnly: boolean;
|
|
920
|
-
secondaryCurrencyValue?: number | undefined;
|
|
921
|
-
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
922
|
-
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
923
|
-
referringUser?: {
|
|
924
|
-
name?: string | undefined;
|
|
925
|
-
} | undefined;
|
|
926
|
-
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
927
|
-
isExpired?: boolean | undefined;
|
|
928
|
-
shop?: import("mongoose").Types.ObjectId | undefined;
|
|
929
|
-
vendor?: import("mongoose").Types.ObjectId | undefined;
|
|
930
|
-
} | {
|
|
931
|
-
code: string;
|
|
932
|
-
value: number;
|
|
933
|
-
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
934
|
-
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
935
|
-
maxDiscountLimit: number | null;
|
|
936
|
-
isMaxDiscountLimitEnabled: boolean;
|
|
937
|
-
duration: {
|
|
938
|
-
start: Date;
|
|
939
|
-
end?: Date | undefined;
|
|
940
|
-
};
|
|
941
|
-
spendLimit: number | null;
|
|
942
|
-
isSpendLimitEnabled: boolean;
|
|
943
|
-
totalOrderLimit: number | null;
|
|
944
|
-
isTotalOrderLimitEnabled: boolean;
|
|
945
|
-
minOrderValue: number | null;
|
|
946
|
-
isMinOrderValueEnabled: boolean;
|
|
947
|
-
forNewUserOnly: boolean;
|
|
948
|
-
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
949
|
-
orderLimitPerUser: number | null;
|
|
950
|
-
isOrderLimitPerUserEnabled: boolean;
|
|
951
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER;
|
|
952
|
-
itemTypes: import("@lyxa.ai/core/dist/utilities/enum").ItemType[];
|
|
953
|
-
shops: import("mongoose").Types.ObjectId[];
|
|
954
|
-
vendors: import("mongoose").Types.ObjectId[];
|
|
955
|
-
users: [import("mongoose").Types.ObjectId, ...import("mongoose").Types.ObjectId[]];
|
|
956
|
-
secondaryCurrencyValue?: number | undefined;
|
|
957
|
-
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
958
|
-
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
959
|
-
referringUser?: {
|
|
960
|
-
name?: string | undefined;
|
|
961
|
-
} | undefined;
|
|
962
|
-
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
963
|
-
isExpired?: boolean | undefined;
|
|
964
|
-
} | {
|
|
965
|
-
code: string;
|
|
966
|
-
value: number;
|
|
967
|
-
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
968
|
-
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
969
|
-
maxDiscountLimit: number | null;
|
|
970
|
-
isMaxDiscountLimitEnabled: boolean;
|
|
971
|
-
duration: {
|
|
972
|
-
start: Date;
|
|
973
|
-
end?: Date | undefined;
|
|
974
|
-
};
|
|
975
|
-
spendLimit: number | null;
|
|
976
|
-
isSpendLimitEnabled: boolean;
|
|
977
|
-
totalOrderLimit: number | null;
|
|
978
|
-
isTotalOrderLimitEnabled: boolean;
|
|
979
|
-
minOrderValue: number | null;
|
|
980
|
-
isMinOrderValueEnabled: boolean;
|
|
981
|
-
forNewUserOnly: boolean;
|
|
982
|
-
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
983
|
-
orderLimitPerUser: number | null;
|
|
984
|
-
isOrderLimitPerUserEnabled: boolean;
|
|
985
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON;
|
|
986
|
-
itemTypes: import("@lyxa.ai/core/dist/utilities/enum").ItemType[];
|
|
987
|
-
shops: import("mongoose").Types.ObjectId[];
|
|
988
|
-
vendors: import("mongoose").Types.ObjectId[];
|
|
989
|
-
influencer: import("mongoose").Types.ObjectId;
|
|
990
|
-
secondaryCurrencyValue?: number | undefined;
|
|
991
|
-
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
992
|
-
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
993
|
-
referringUser?: {
|
|
994
|
-
name?: string | undefined;
|
|
995
|
-
} | undefined;
|
|
996
|
-
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
997
|
-
isExpired?: boolean | undefined;
|
|
998
|
-
}, {
|
|
999
|
-
code: string;
|
|
1000
|
-
value: number;
|
|
1001
|
-
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
1002
|
-
duration: {
|
|
1003
|
-
start: string | Date;
|
|
1004
|
-
end?: string | Date | undefined;
|
|
1005
|
-
};
|
|
1006
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.GLOBAL;
|
|
1007
|
-
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
1008
|
-
secondaryCurrencyValue?: number | undefined;
|
|
1009
|
-
maxDiscountLimit?: number | null | undefined;
|
|
1010
|
-
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
1011
|
-
isMaxDiscountLimitEnabled?: boolean | undefined;
|
|
1012
|
-
spendLimit?: number | null | undefined;
|
|
1013
|
-
isSpendLimitEnabled?: boolean | undefined;
|
|
1014
|
-
totalOrderLimit?: number | null | undefined;
|
|
1015
|
-
isTotalOrderLimitEnabled?: boolean | undefined;
|
|
1016
|
-
minOrderValue?: number | null | undefined;
|
|
1017
|
-
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
1018
|
-
isMinOrderValueEnabled?: boolean | undefined;
|
|
1019
|
-
forNewUserOnly?: boolean | undefined;
|
|
1020
|
-
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
1021
|
-
referringUser?: {
|
|
1022
|
-
name?: string | undefined;
|
|
1023
|
-
} | undefined;
|
|
1024
|
-
orderLimitPerUser?: number | null | undefined;
|
|
1025
|
-
isOrderLimitPerUserEnabled?: boolean | undefined;
|
|
1026
|
-
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
1027
|
-
isExpired?: boolean | undefined;
|
|
1028
|
-
} | {
|
|
1029
|
-
code: string;
|
|
1030
|
-
orderLimitPerUser: 1;
|
|
1031
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE;
|
|
1032
|
-
referralUser: string | import("mongoose").Types.ObjectId;
|
|
1033
|
-
isOrderLimitPerUserEnabled?: boolean | undefined;
|
|
1034
|
-
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
1035
|
-
isExpired?: boolean | undefined;
|
|
1036
|
-
} | {
|
|
1037
|
-
code: string;
|
|
1038
|
-
value: number;
|
|
1039
|
-
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
1040
|
-
duration: {
|
|
1041
|
-
start: string | Date;
|
|
1042
|
-
end?: string | Date | undefined;
|
|
1043
|
-
};
|
|
1044
|
-
user: string | import("mongoose").Types.ObjectId;
|
|
1045
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD;
|
|
1046
|
-
referralCodeUsedBy: string | import("mongoose").Types.ObjectId;
|
|
1047
|
-
referralCodeUsedOnOrder: string | import("mongoose").Types.ObjectId;
|
|
1048
|
-
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
1049
|
-
secondaryCurrencyValue?: number | undefined;
|
|
1050
|
-
maxDiscountLimit?: number | null | undefined;
|
|
1051
|
-
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
1052
|
-
isMaxDiscountLimitEnabled?: boolean | undefined;
|
|
1053
|
-
spendLimit?: number | null | undefined;
|
|
1054
|
-
isSpendLimitEnabled?: boolean | undefined;
|
|
1055
|
-
totalOrderLimit?: number | null | undefined;
|
|
1056
|
-
isTotalOrderLimitEnabled?: boolean | undefined;
|
|
1057
|
-
minOrderValue?: number | null | undefined;
|
|
1058
|
-
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
1059
|
-
isMinOrderValueEnabled?: boolean | undefined;
|
|
1060
|
-
forNewUserOnly?: boolean | undefined;
|
|
1061
|
-
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
1062
|
-
referringUser?: {
|
|
1063
|
-
name?: string | undefined;
|
|
1064
|
-
} | undefined;
|
|
1065
|
-
orderLimitPerUser?: number | null | undefined;
|
|
1066
|
-
isOrderLimitPerUserEnabled?: boolean | undefined;
|
|
1067
|
-
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
1068
|
-
isExpired?: boolean | undefined;
|
|
1069
|
-
} | {
|
|
1070
|
-
code: string;
|
|
1071
|
-
value: number;
|
|
1072
|
-
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
1073
|
-
duration: {
|
|
1074
|
-
start: string | Date;
|
|
1075
|
-
end?: string | Date | undefined;
|
|
1076
|
-
};
|
|
1077
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.SHOPS_CATEGORIES;
|
|
1078
|
-
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
1079
|
-
secondaryCurrencyValue?: number | undefined;
|
|
1080
|
-
maxDiscountLimit?: number | null | undefined;
|
|
1081
|
-
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
1082
|
-
isMaxDiscountLimitEnabled?: boolean | undefined;
|
|
1083
|
-
spendLimit?: number | null | undefined;
|
|
1084
|
-
isSpendLimitEnabled?: boolean | undefined;
|
|
1085
|
-
totalOrderLimit?: number | null | undefined;
|
|
1086
|
-
isTotalOrderLimitEnabled?: boolean | undefined;
|
|
1087
|
-
minOrderValue?: number | null | undefined;
|
|
1088
|
-
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
1089
|
-
isMinOrderValueEnabled?: boolean | undefined;
|
|
1090
|
-
forNewUserOnly?: boolean | undefined;
|
|
1091
|
-
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
1092
|
-
referringUser?: {
|
|
1093
|
-
name?: string | undefined;
|
|
1094
|
-
} | undefined;
|
|
1095
|
-
orderLimitPerUser?: number | null | undefined;
|
|
1096
|
-
isOrderLimitPerUserEnabled?: boolean | undefined;
|
|
1097
|
-
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
1098
|
-
isExpired?: boolean | undefined;
|
|
1099
|
-
itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
|
|
1100
|
-
shops?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
1101
|
-
vendors?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
1102
|
-
isShopCoverExpenses?: boolean | undefined;
|
|
1103
|
-
firstOrderOnly?: boolean | undefined;
|
|
1104
|
-
} | {
|
|
1105
|
-
code: string;
|
|
1106
|
-
value: number;
|
|
1107
|
-
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
1108
|
-
duration: {
|
|
1109
|
-
start: string | Date;
|
|
1110
|
-
end?: string | Date | undefined;
|
|
1111
|
-
};
|
|
1112
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE;
|
|
1113
|
-
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
1114
|
-
secondaryCurrencyValue?: number | undefined;
|
|
1115
|
-
maxDiscountLimit?: number | null | undefined;
|
|
1116
|
-
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
1117
|
-
isMaxDiscountLimitEnabled?: boolean | undefined;
|
|
1118
|
-
spendLimit?: number | null | undefined;
|
|
1119
|
-
isSpendLimitEnabled?: boolean | undefined;
|
|
1120
|
-
totalOrderLimit?: number | null | undefined;
|
|
1121
|
-
isTotalOrderLimitEnabled?: boolean | undefined;
|
|
1122
|
-
minOrderValue?: number | null | undefined;
|
|
1123
|
-
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
1124
|
-
isMinOrderValueEnabled?: boolean | undefined;
|
|
1125
|
-
forNewUserOnly?: boolean | undefined;
|
|
1126
|
-
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
1127
|
-
referringUser?: {
|
|
1128
|
-
name?: string | undefined;
|
|
1129
|
-
} | undefined;
|
|
1130
|
-
orderLimitPerUser?: number | null | undefined;
|
|
1131
|
-
isOrderLimitPerUserEnabled?: boolean | undefined;
|
|
1132
|
-
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
1133
|
-
isExpired?: boolean | undefined;
|
|
1134
|
-
shop?: string | import("mongoose").Types.ObjectId | undefined;
|
|
1135
|
-
vendor?: string | import("mongoose").Types.ObjectId | undefined;
|
|
1136
|
-
isShopCoverExpenses?: boolean | undefined;
|
|
1137
|
-
firstOrderOnly?: boolean | undefined;
|
|
1138
|
-
} | {
|
|
1139
|
-
code: string;
|
|
1140
|
-
value: number;
|
|
1141
|
-
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
1142
|
-
duration: {
|
|
1143
|
-
start: string | Date;
|
|
1144
|
-
end?: string | Date | undefined;
|
|
1145
|
-
};
|
|
1146
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER;
|
|
1147
|
-
users: [string | import("mongoose").Types.ObjectId, ...(string | import("mongoose").Types.ObjectId)[]];
|
|
1148
|
-
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
1149
|
-
secondaryCurrencyValue?: number | undefined;
|
|
1150
|
-
maxDiscountLimit?: number | null | undefined;
|
|
1151
|
-
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
1152
|
-
isMaxDiscountLimitEnabled?: boolean | undefined;
|
|
1153
|
-
spendLimit?: number | null | undefined;
|
|
1154
|
-
isSpendLimitEnabled?: boolean | undefined;
|
|
1155
|
-
totalOrderLimit?: number | null | undefined;
|
|
1156
|
-
isTotalOrderLimitEnabled?: boolean | undefined;
|
|
1157
|
-
minOrderValue?: number | null | undefined;
|
|
1158
|
-
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
1159
|
-
isMinOrderValueEnabled?: boolean | undefined;
|
|
1160
|
-
forNewUserOnly?: boolean | undefined;
|
|
1161
|
-
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
1162
|
-
referringUser?: {
|
|
1163
|
-
name?: string | undefined;
|
|
1164
|
-
} | undefined;
|
|
1165
|
-
orderLimitPerUser?: number | null | undefined;
|
|
1166
|
-
isOrderLimitPerUserEnabled?: boolean | undefined;
|
|
1167
|
-
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
1168
|
-
isExpired?: boolean | undefined;
|
|
1169
|
-
itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
|
|
1170
|
-
shops?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
1171
|
-
vendors?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
1172
|
-
} | {
|
|
1173
|
-
code: string;
|
|
1174
|
-
value: number;
|
|
1175
|
-
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
1176
|
-
duration: {
|
|
1177
|
-
start: string | Date;
|
|
1178
|
-
end?: string | Date | undefined;
|
|
1179
|
-
};
|
|
1180
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON;
|
|
1181
|
-
influencer: string | import("mongoose").Types.ObjectId;
|
|
1182
|
-
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
1183
|
-
secondaryCurrencyValue?: number | undefined;
|
|
1184
|
-
maxDiscountLimit?: number | null | undefined;
|
|
1185
|
-
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
1186
|
-
isMaxDiscountLimitEnabled?: boolean | undefined;
|
|
1187
|
-
spendLimit?: number | null | undefined;
|
|
1188
|
-
isSpendLimitEnabled?: boolean | undefined;
|
|
1189
|
-
totalOrderLimit?: number | null | undefined;
|
|
1190
|
-
isTotalOrderLimitEnabled?: boolean | undefined;
|
|
1191
|
-
minOrderValue?: number | null | undefined;
|
|
1192
|
-
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
1193
|
-
isMinOrderValueEnabled?: boolean | undefined;
|
|
1194
|
-
forNewUserOnly?: boolean | undefined;
|
|
1195
|
-
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
1196
|
-
referringUser?: {
|
|
1197
|
-
name?: string | undefined;
|
|
1198
|
-
} | undefined;
|
|
1199
|
-
orderLimitPerUser?: number | null | undefined;
|
|
1200
|
-
isOrderLimitPerUserEnabled?: boolean | undefined;
|
|
1201
|
-
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
1202
|
-
isExpired?: boolean | undefined;
|
|
1203
|
-
itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
|
|
1204
|
-
shops?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
1205
|
-
vendors?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
1206
|
-
}>;
|
|
790
|
+
}>]>;
|
|
1207
791
|
export declare const AllCouponsSchema: z.ZodUnion<[z.ZodObject<{
|
|
1208
792
|
couponType: z.ZodOptional<z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.GLOBAL>>;
|
|
1209
793
|
valueType: z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>>;
|
|
@@ -2125,273 +1709,23 @@ export declare const AllCouponsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
2125
1709
|
status: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>>;
|
|
2126
1710
|
expirationReason: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>>;
|
|
2127
1711
|
referringUser: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
2128
|
-
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2129
|
-
}, "strip", z.ZodTypeAny, {
|
|
2130
|
-
name?: string | undefined;
|
|
2131
|
-
}, {
|
|
2132
|
-
name?: string | undefined;
|
|
2133
|
-
}>>>;
|
|
2134
|
-
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2135
|
-
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
2136
|
-
isOrderLimitPerUserEnabled: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
2137
|
-
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
2138
|
-
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
2139
|
-
_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>]>>;
|
|
2140
|
-
}, z.ZodTypeAny, "passthrough">>]>;
|
|
2141
|
-
export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
2142
|
-
_id: 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>]>;
|
|
2143
|
-
data: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
2144
|
-
couponType: z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.GLOBAL>;
|
|
2145
|
-
valueType: z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>;
|
|
2146
|
-
value: z.ZodNumber;
|
|
2147
|
-
secondaryCurrencyValue: z.ZodOptional<z.ZodNumber>;
|
|
2148
|
-
maxDiscountLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
2149
|
-
secondaryCurrencyMaxDiscountLimit: z.ZodOptional<z.ZodNumber>;
|
|
2150
|
-
isMaxDiscountLimitEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2151
|
-
duration: z.ZodEffects<z.ZodObject<{
|
|
2152
|
-
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>;
|
|
2153
|
-
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>>;
|
|
2154
|
-
}, "strip", z.ZodTypeAny, {
|
|
2155
|
-
start: Date;
|
|
2156
|
-
end?: Date | undefined;
|
|
2157
|
-
}, {
|
|
2158
|
-
start: string | Date;
|
|
2159
|
-
end?: string | Date | undefined;
|
|
2160
|
-
}>, {
|
|
2161
|
-
start: Date;
|
|
2162
|
-
end?: Date | undefined;
|
|
2163
|
-
}, {
|
|
2164
|
-
start: string | Date;
|
|
2165
|
-
end?: string | Date | undefined;
|
|
2166
|
-
}>;
|
|
2167
|
-
spendLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
2168
|
-
isSpendLimitEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2169
|
-
totalOrderLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
2170
|
-
isTotalOrderLimitEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2171
|
-
minOrderValue: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
2172
|
-
secondaryCurrencyMinOrderValue: z.ZodOptional<z.ZodNumber>;
|
|
2173
|
-
isMinOrderValueEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2174
|
-
forNewUserOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2175
|
-
status: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>;
|
|
2176
|
-
expirationReason: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>;
|
|
2177
|
-
referringUser: z.ZodOptional<z.ZodObject<{
|
|
2178
|
-
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2179
|
-
}, "strip", z.ZodTypeAny, {
|
|
2180
|
-
name?: string | undefined;
|
|
2181
|
-
}, {
|
|
2182
|
-
name?: string | undefined;
|
|
2183
|
-
}>>;
|
|
2184
|
-
code: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2185
|
-
orderLimitPerUser: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
2186
|
-
isOrderLimitPerUserEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2187
|
-
createdBy: 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>]>>;
|
|
2188
|
-
isExpired: z.ZodOptional<z.ZodBoolean>;
|
|
2189
|
-
}, "strict", z.ZodTypeAny, {
|
|
2190
|
-
code: string;
|
|
2191
|
-
value: number;
|
|
2192
|
-
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
2193
|
-
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
2194
|
-
maxDiscountLimit: number | null;
|
|
2195
|
-
isMaxDiscountLimitEnabled: boolean;
|
|
2196
|
-
duration: {
|
|
2197
|
-
start: Date;
|
|
2198
|
-
end?: Date | undefined;
|
|
2199
|
-
};
|
|
2200
|
-
spendLimit: number | null;
|
|
2201
|
-
isSpendLimitEnabled: boolean;
|
|
2202
|
-
totalOrderLimit: number | null;
|
|
2203
|
-
isTotalOrderLimitEnabled: boolean;
|
|
2204
|
-
minOrderValue: number | null;
|
|
2205
|
-
isMinOrderValueEnabled: boolean;
|
|
2206
|
-
forNewUserOnly: boolean;
|
|
2207
|
-
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
2208
|
-
orderLimitPerUser: number | null;
|
|
2209
|
-
isOrderLimitPerUserEnabled: boolean;
|
|
2210
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.GLOBAL;
|
|
2211
|
-
secondaryCurrencyValue?: number | undefined;
|
|
2212
|
-
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
2213
|
-
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
2214
|
-
referringUser?: {
|
|
2215
|
-
name?: string | undefined;
|
|
2216
|
-
} | undefined;
|
|
2217
|
-
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
2218
|
-
isExpired?: boolean | undefined;
|
|
2219
|
-
}, {
|
|
2220
|
-
code: string;
|
|
2221
|
-
value: number;
|
|
2222
|
-
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
2223
|
-
duration: {
|
|
2224
|
-
start: string | Date;
|
|
2225
|
-
end?: string | Date | undefined;
|
|
2226
|
-
};
|
|
2227
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.GLOBAL;
|
|
2228
|
-
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
2229
|
-
secondaryCurrencyValue?: number | undefined;
|
|
2230
|
-
maxDiscountLimit?: number | null | undefined;
|
|
2231
|
-
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
2232
|
-
isMaxDiscountLimitEnabled?: boolean | undefined;
|
|
2233
|
-
spendLimit?: number | null | undefined;
|
|
2234
|
-
isSpendLimitEnabled?: boolean | undefined;
|
|
2235
|
-
totalOrderLimit?: number | null | undefined;
|
|
2236
|
-
isTotalOrderLimitEnabled?: boolean | undefined;
|
|
2237
|
-
minOrderValue?: number | null | undefined;
|
|
2238
|
-
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
2239
|
-
isMinOrderValueEnabled?: boolean | undefined;
|
|
2240
|
-
forNewUserOnly?: boolean | undefined;
|
|
2241
|
-
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
2242
|
-
referringUser?: {
|
|
2243
|
-
name?: string | undefined;
|
|
2244
|
-
} | undefined;
|
|
2245
|
-
orderLimitPerUser?: number | null | undefined;
|
|
2246
|
-
isOrderLimitPerUserEnabled?: boolean | undefined;
|
|
2247
|
-
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
2248
|
-
isExpired?: boolean | undefined;
|
|
2249
|
-
}>, z.ZodObject<{
|
|
2250
|
-
couponType: z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE>;
|
|
2251
|
-
orderLimitPerUser: z.ZodLiteral<1>;
|
|
2252
|
-
referralUser: 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>]>;
|
|
2253
|
-
code: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2254
|
-
isOrderLimitPerUserEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2255
|
-
createdBy: 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>]>>;
|
|
2256
|
-
isExpired: z.ZodOptional<z.ZodBoolean>;
|
|
2257
|
-
}, "strict", z.ZodTypeAny, {
|
|
2258
|
-
code: string;
|
|
2259
|
-
orderLimitPerUser: 1;
|
|
2260
|
-
isOrderLimitPerUserEnabled: boolean;
|
|
2261
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE;
|
|
2262
|
-
referralUser: import("mongoose").Types.ObjectId;
|
|
2263
|
-
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
2264
|
-
isExpired?: boolean | undefined;
|
|
2265
|
-
}, {
|
|
2266
|
-
code: string;
|
|
2267
|
-
orderLimitPerUser: 1;
|
|
2268
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE;
|
|
2269
|
-
referralUser: string | import("mongoose").Types.ObjectId;
|
|
2270
|
-
isOrderLimitPerUserEnabled?: boolean | undefined;
|
|
2271
|
-
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
2272
|
-
isExpired?: boolean | undefined;
|
|
2273
|
-
}>, z.ZodObject<{
|
|
2274
|
-
couponType: z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD>;
|
|
2275
|
-
user: 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>]>;
|
|
2276
|
-
referralCodeUsedBy: 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>]>;
|
|
2277
|
-
referralCodeUsedOnOrder: 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>]>;
|
|
2278
|
-
valueType: z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>;
|
|
2279
|
-
value: z.ZodNumber;
|
|
2280
|
-
secondaryCurrencyValue: z.ZodOptional<z.ZodNumber>;
|
|
2281
|
-
maxDiscountLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
2282
|
-
secondaryCurrencyMaxDiscountLimit: z.ZodOptional<z.ZodNumber>;
|
|
2283
|
-
isMaxDiscountLimitEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2284
|
-
duration: z.ZodEffects<z.ZodObject<{
|
|
2285
|
-
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>;
|
|
2286
|
-
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>>;
|
|
2287
|
-
}, "strip", z.ZodTypeAny, {
|
|
2288
|
-
start: Date;
|
|
2289
|
-
end?: Date | undefined;
|
|
2290
|
-
}, {
|
|
2291
|
-
start: string | Date;
|
|
2292
|
-
end?: string | Date | undefined;
|
|
2293
|
-
}>, {
|
|
2294
|
-
start: Date;
|
|
2295
|
-
end?: Date | undefined;
|
|
2296
|
-
}, {
|
|
2297
|
-
start: string | Date;
|
|
2298
|
-
end?: string | Date | undefined;
|
|
2299
|
-
}>;
|
|
2300
|
-
spendLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
2301
|
-
isSpendLimitEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2302
|
-
totalOrderLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
2303
|
-
isTotalOrderLimitEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2304
|
-
minOrderValue: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
2305
|
-
secondaryCurrencyMinOrderValue: z.ZodOptional<z.ZodNumber>;
|
|
2306
|
-
isMinOrderValueEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2307
|
-
forNewUserOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2308
|
-
status: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>;
|
|
2309
|
-
expirationReason: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>;
|
|
2310
|
-
referringUser: z.ZodOptional<z.ZodObject<{
|
|
2311
|
-
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2312
|
-
}, "strip", z.ZodTypeAny, {
|
|
2313
|
-
name?: string | undefined;
|
|
2314
|
-
}, {
|
|
2315
|
-
name?: string | undefined;
|
|
2316
|
-
}>>;
|
|
2317
|
-
code: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2318
|
-
orderLimitPerUser: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
2319
|
-
isOrderLimitPerUserEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2320
|
-
createdBy: 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>]>>;
|
|
2321
|
-
isExpired: z.ZodOptional<z.ZodBoolean>;
|
|
2322
|
-
}, "strict", z.ZodTypeAny, {
|
|
2323
|
-
code: string;
|
|
2324
|
-
value: number;
|
|
2325
|
-
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
2326
|
-
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
2327
|
-
maxDiscountLimit: number | null;
|
|
2328
|
-
isMaxDiscountLimitEnabled: boolean;
|
|
2329
|
-
duration: {
|
|
2330
|
-
start: Date;
|
|
2331
|
-
end?: Date | undefined;
|
|
2332
|
-
};
|
|
2333
|
-
spendLimit: number | null;
|
|
2334
|
-
isSpendLimitEnabled: boolean;
|
|
2335
|
-
totalOrderLimit: number | null;
|
|
2336
|
-
isTotalOrderLimitEnabled: boolean;
|
|
2337
|
-
minOrderValue: number | null;
|
|
2338
|
-
isMinOrderValueEnabled: boolean;
|
|
2339
|
-
forNewUserOnly: boolean;
|
|
2340
|
-
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
2341
|
-
orderLimitPerUser: number | null;
|
|
2342
|
-
isOrderLimitPerUserEnabled: boolean;
|
|
2343
|
-
user: import("mongoose").Types.ObjectId;
|
|
2344
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD;
|
|
2345
|
-
referralCodeUsedBy: import("mongoose").Types.ObjectId;
|
|
2346
|
-
referralCodeUsedOnOrder: import("mongoose").Types.ObjectId;
|
|
2347
|
-
secondaryCurrencyValue?: number | undefined;
|
|
2348
|
-
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
2349
|
-
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
2350
|
-
referringUser?: {
|
|
2351
|
-
name?: string | undefined;
|
|
2352
|
-
} | undefined;
|
|
2353
|
-
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
2354
|
-
isExpired?: boolean | undefined;
|
|
1712
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1713
|
+
}, "strip", z.ZodTypeAny, {
|
|
1714
|
+
name?: string | undefined;
|
|
2355
1715
|
}, {
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
maxDiscountLimit?: number | null | undefined;
|
|
2370
|
-
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
2371
|
-
isMaxDiscountLimitEnabled?: boolean | undefined;
|
|
2372
|
-
spendLimit?: number | null | undefined;
|
|
2373
|
-
isSpendLimitEnabled?: boolean | undefined;
|
|
2374
|
-
totalOrderLimit?: number | null | undefined;
|
|
2375
|
-
isTotalOrderLimitEnabled?: boolean | undefined;
|
|
2376
|
-
minOrderValue?: number | null | undefined;
|
|
2377
|
-
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
2378
|
-
isMinOrderValueEnabled?: boolean | undefined;
|
|
2379
|
-
forNewUserOnly?: boolean | undefined;
|
|
2380
|
-
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
2381
|
-
referringUser?: {
|
|
2382
|
-
name?: string | undefined;
|
|
2383
|
-
} | undefined;
|
|
2384
|
-
orderLimitPerUser?: number | null | undefined;
|
|
2385
|
-
isOrderLimitPerUserEnabled?: boolean | undefined;
|
|
2386
|
-
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
2387
|
-
isExpired?: boolean | undefined;
|
|
2388
|
-
}>, z.ZodObject<{
|
|
2389
|
-
couponType: z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.SHOPS_CATEGORIES>;
|
|
2390
|
-
itemTypes: z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>;
|
|
2391
|
-
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">>;
|
|
2392
|
-
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">>;
|
|
2393
|
-
isShopCoverExpenses: z.ZodDefault<z.ZodBoolean>;
|
|
2394
|
-
firstOrderOnly: z.ZodDefault<z.ZodBoolean>;
|
|
1716
|
+
name?: string | undefined;
|
|
1717
|
+
}>>>;
|
|
1718
|
+
code: z.ZodOptional<z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1719
|
+
orderLimitPerUser: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>>;
|
|
1720
|
+
isOrderLimitPerUserEnabled: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>>;
|
|
1721
|
+
createdBy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("mongoose").Types.ObjectId, string>, z.ZodType<import("mongoose").Types.ObjectId, z.ZodTypeDef, import("mongoose").Types.ObjectId>]>>>;
|
|
1722
|
+
isExpired: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
1723
|
+
_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>]>>;
|
|
1724
|
+
}, z.ZodTypeAny, "passthrough">>]>;
|
|
1725
|
+
export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
1726
|
+
_id: 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>]>;
|
|
1727
|
+
data: z.ZodUnion<[z.ZodObject<{
|
|
1728
|
+
couponType: z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.GLOBAL>;
|
|
2395
1729
|
valueType: z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>;
|
|
2396
1730
|
value: z.ZodNumber;
|
|
2397
1731
|
secondaryCurrencyValue: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2457,12 +1791,7 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
2457
1791
|
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
2458
1792
|
orderLimitPerUser: number | null;
|
|
2459
1793
|
isOrderLimitPerUserEnabled: boolean;
|
|
2460
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.
|
|
2461
|
-
itemTypes: import("@lyxa.ai/core/dist/utilities/enum").ItemType[];
|
|
2462
|
-
shops: import("mongoose").Types.ObjectId[];
|
|
2463
|
-
vendors: import("mongoose").Types.ObjectId[];
|
|
2464
|
-
isShopCoverExpenses: boolean;
|
|
2465
|
-
firstOrderOnly: boolean;
|
|
1794
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.GLOBAL;
|
|
2466
1795
|
secondaryCurrencyValue?: number | undefined;
|
|
2467
1796
|
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
2468
1797
|
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
@@ -2479,7 +1808,7 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
2479
1808
|
start: string | Date;
|
|
2480
1809
|
end?: string | Date | undefined;
|
|
2481
1810
|
};
|
|
2482
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.
|
|
1811
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.GLOBAL;
|
|
2483
1812
|
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
2484
1813
|
secondaryCurrencyValue?: number | undefined;
|
|
2485
1814
|
maxDiscountLimit?: number | null | undefined;
|
|
@@ -2501,203 +1830,35 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
2501
1830
|
isOrderLimitPerUserEnabled?: boolean | undefined;
|
|
2502
1831
|
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
2503
1832
|
isExpired?: boolean | undefined;
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
firstOrderOnly?: boolean | undefined;
|
|
2509
|
-
}>, z.ZodEffects<z.ZodObject<{
|
|
2510
|
-
couponType: z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE>;
|
|
2511
|
-
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>]>>;
|
|
2512
|
-
vendor: 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>]>>;
|
|
2513
|
-
isShopCoverExpenses: z.ZodDefault<z.ZodBoolean>;
|
|
2514
|
-
firstOrderOnly: z.ZodDefault<z.ZodBoolean>;
|
|
2515
|
-
valueType: z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>;
|
|
2516
|
-
value: z.ZodNumber;
|
|
2517
|
-
secondaryCurrencyValue: z.ZodOptional<z.ZodNumber>;
|
|
2518
|
-
maxDiscountLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
2519
|
-
secondaryCurrencyMaxDiscountLimit: z.ZodOptional<z.ZodNumber>;
|
|
2520
|
-
isMaxDiscountLimitEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2521
|
-
duration: z.ZodEffects<z.ZodObject<{
|
|
2522
|
-
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>;
|
|
2523
|
-
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>>;
|
|
2524
|
-
}, "strip", z.ZodTypeAny, {
|
|
2525
|
-
start: Date;
|
|
2526
|
-
end?: Date | undefined;
|
|
2527
|
-
}, {
|
|
2528
|
-
start: string | Date;
|
|
2529
|
-
end?: string | Date | undefined;
|
|
2530
|
-
}>, {
|
|
2531
|
-
start: Date;
|
|
2532
|
-
end?: Date | undefined;
|
|
2533
|
-
}, {
|
|
2534
|
-
start: string | Date;
|
|
2535
|
-
end?: string | Date | undefined;
|
|
2536
|
-
}>;
|
|
2537
|
-
spendLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
2538
|
-
isSpendLimitEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2539
|
-
totalOrderLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
2540
|
-
isTotalOrderLimitEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2541
|
-
minOrderValue: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
2542
|
-
secondaryCurrencyMinOrderValue: z.ZodOptional<z.ZodNumber>;
|
|
2543
|
-
isMinOrderValueEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2544
|
-
forNewUserOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2545
|
-
status: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>;
|
|
2546
|
-
expirationReason: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>;
|
|
2547
|
-
referringUser: z.ZodOptional<z.ZodObject<{
|
|
2548
|
-
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2549
|
-
}, "strip", z.ZodTypeAny, {
|
|
2550
|
-
name?: string | undefined;
|
|
2551
|
-
}, {
|
|
2552
|
-
name?: string | undefined;
|
|
2553
|
-
}>>;
|
|
1833
|
+
}>, z.ZodObject<{
|
|
1834
|
+
couponType: z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE>;
|
|
1835
|
+
orderLimitPerUser: z.ZodLiteral<1>;
|
|
1836
|
+
referralUser: 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>]>;
|
|
2554
1837
|
code: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2555
|
-
orderLimitPerUser: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
2556
1838
|
isOrderLimitPerUserEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2557
1839
|
createdBy: 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>]>>;
|
|
2558
1840
|
isExpired: z.ZodOptional<z.ZodBoolean>;
|
|
2559
1841
|
}, "strict", z.ZodTypeAny, {
|
|
2560
1842
|
code: string;
|
|
2561
|
-
|
|
2562
|
-
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
2563
|
-
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
2564
|
-
maxDiscountLimit: number | null;
|
|
2565
|
-
isMaxDiscountLimitEnabled: boolean;
|
|
2566
|
-
duration: {
|
|
2567
|
-
start: Date;
|
|
2568
|
-
end?: Date | undefined;
|
|
2569
|
-
};
|
|
2570
|
-
spendLimit: number | null;
|
|
2571
|
-
isSpendLimitEnabled: boolean;
|
|
2572
|
-
totalOrderLimit: number | null;
|
|
2573
|
-
isTotalOrderLimitEnabled: boolean;
|
|
2574
|
-
minOrderValue: number | null;
|
|
2575
|
-
isMinOrderValueEnabled: boolean;
|
|
2576
|
-
forNewUserOnly: boolean;
|
|
2577
|
-
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
2578
|
-
orderLimitPerUser: number | null;
|
|
2579
|
-
isOrderLimitPerUserEnabled: boolean;
|
|
2580
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE;
|
|
2581
|
-
isShopCoverExpenses: boolean;
|
|
2582
|
-
firstOrderOnly: boolean;
|
|
2583
|
-
secondaryCurrencyValue?: number | undefined;
|
|
2584
|
-
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
2585
|
-
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
2586
|
-
referringUser?: {
|
|
2587
|
-
name?: string | undefined;
|
|
2588
|
-
} | undefined;
|
|
2589
|
-
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
2590
|
-
isExpired?: boolean | undefined;
|
|
2591
|
-
shop?: import("mongoose").Types.ObjectId | undefined;
|
|
2592
|
-
vendor?: import("mongoose").Types.ObjectId | undefined;
|
|
2593
|
-
}, {
|
|
2594
|
-
code: string;
|
|
2595
|
-
value: number;
|
|
2596
|
-
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
2597
|
-
duration: {
|
|
2598
|
-
start: string | Date;
|
|
2599
|
-
end?: string | Date | undefined;
|
|
2600
|
-
};
|
|
2601
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE;
|
|
2602
|
-
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
2603
|
-
secondaryCurrencyValue?: number | undefined;
|
|
2604
|
-
maxDiscountLimit?: number | null | undefined;
|
|
2605
|
-
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
2606
|
-
isMaxDiscountLimitEnabled?: boolean | undefined;
|
|
2607
|
-
spendLimit?: number | null | undefined;
|
|
2608
|
-
isSpendLimitEnabled?: boolean | undefined;
|
|
2609
|
-
totalOrderLimit?: number | null | undefined;
|
|
2610
|
-
isTotalOrderLimitEnabled?: boolean | undefined;
|
|
2611
|
-
minOrderValue?: number | null | undefined;
|
|
2612
|
-
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
2613
|
-
isMinOrderValueEnabled?: boolean | undefined;
|
|
2614
|
-
forNewUserOnly?: boolean | undefined;
|
|
2615
|
-
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
2616
|
-
referringUser?: {
|
|
2617
|
-
name?: string | undefined;
|
|
2618
|
-
} | undefined;
|
|
2619
|
-
orderLimitPerUser?: number | null | undefined;
|
|
2620
|
-
isOrderLimitPerUserEnabled?: boolean | undefined;
|
|
2621
|
-
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
2622
|
-
isExpired?: boolean | undefined;
|
|
2623
|
-
shop?: string | import("mongoose").Types.ObjectId | undefined;
|
|
2624
|
-
vendor?: string | import("mongoose").Types.ObjectId | undefined;
|
|
2625
|
-
isShopCoverExpenses?: boolean | undefined;
|
|
2626
|
-
firstOrderOnly?: boolean | undefined;
|
|
2627
|
-
}>, {
|
|
2628
|
-
code: string;
|
|
2629
|
-
value: number;
|
|
2630
|
-
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
2631
|
-
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
2632
|
-
maxDiscountLimit: number | null;
|
|
2633
|
-
isMaxDiscountLimitEnabled: boolean;
|
|
2634
|
-
duration: {
|
|
2635
|
-
start: Date;
|
|
2636
|
-
end?: Date | undefined;
|
|
2637
|
-
};
|
|
2638
|
-
spendLimit: number | null;
|
|
2639
|
-
isSpendLimitEnabled: boolean;
|
|
2640
|
-
totalOrderLimit: number | null;
|
|
2641
|
-
isTotalOrderLimitEnabled: boolean;
|
|
2642
|
-
minOrderValue: number | null;
|
|
2643
|
-
isMinOrderValueEnabled: boolean;
|
|
2644
|
-
forNewUserOnly: boolean;
|
|
2645
|
-
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
2646
|
-
orderLimitPerUser: number | null;
|
|
1843
|
+
orderLimitPerUser: 1;
|
|
2647
1844
|
isOrderLimitPerUserEnabled: boolean;
|
|
2648
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.
|
|
2649
|
-
|
|
2650
|
-
firstOrderOnly: boolean;
|
|
2651
|
-
secondaryCurrencyValue?: number | undefined;
|
|
2652
|
-
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
2653
|
-
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
2654
|
-
referringUser?: {
|
|
2655
|
-
name?: string | undefined;
|
|
2656
|
-
} | undefined;
|
|
1845
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE;
|
|
1846
|
+
referralUser: import("mongoose").Types.ObjectId;
|
|
2657
1847
|
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
2658
1848
|
isExpired?: boolean | undefined;
|
|
2659
|
-
shop?: import("mongoose").Types.ObjectId | undefined;
|
|
2660
|
-
vendor?: import("mongoose").Types.ObjectId | undefined;
|
|
2661
1849
|
}, {
|
|
2662
1850
|
code: string;
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
start: string | Date;
|
|
2667
|
-
end?: string | Date | undefined;
|
|
2668
|
-
};
|
|
2669
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE;
|
|
2670
|
-
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
2671
|
-
secondaryCurrencyValue?: number | undefined;
|
|
2672
|
-
maxDiscountLimit?: number | null | undefined;
|
|
2673
|
-
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
2674
|
-
isMaxDiscountLimitEnabled?: boolean | undefined;
|
|
2675
|
-
spendLimit?: number | null | undefined;
|
|
2676
|
-
isSpendLimitEnabled?: boolean | undefined;
|
|
2677
|
-
totalOrderLimit?: number | null | undefined;
|
|
2678
|
-
isTotalOrderLimitEnabled?: boolean | undefined;
|
|
2679
|
-
minOrderValue?: number | null | undefined;
|
|
2680
|
-
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
2681
|
-
isMinOrderValueEnabled?: boolean | undefined;
|
|
2682
|
-
forNewUserOnly?: boolean | undefined;
|
|
2683
|
-
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
2684
|
-
referringUser?: {
|
|
2685
|
-
name?: string | undefined;
|
|
2686
|
-
} | undefined;
|
|
2687
|
-
orderLimitPerUser?: number | null | undefined;
|
|
1851
|
+
orderLimitPerUser: 1;
|
|
1852
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE;
|
|
1853
|
+
referralUser: string | import("mongoose").Types.ObjectId;
|
|
2688
1854
|
isOrderLimitPerUserEnabled?: boolean | undefined;
|
|
2689
1855
|
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
2690
1856
|
isExpired?: boolean | undefined;
|
|
2691
|
-
shop?: string | import("mongoose").Types.ObjectId | undefined;
|
|
2692
|
-
vendor?: string | import("mongoose").Types.ObjectId | undefined;
|
|
2693
|
-
isShopCoverExpenses?: boolean | undefined;
|
|
2694
|
-
firstOrderOnly?: boolean | undefined;
|
|
2695
1857
|
}>, z.ZodObject<{
|
|
2696
|
-
couponType: z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
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">>;
|
|
1858
|
+
couponType: z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD>;
|
|
1859
|
+
user: 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>]>;
|
|
1860
|
+
referralCodeUsedBy: 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>]>;
|
|
1861
|
+
referralCodeUsedOnOrder: 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>]>;
|
|
2701
1862
|
valueType: z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>;
|
|
2702
1863
|
value: z.ZodNumber;
|
|
2703
1864
|
secondaryCurrencyValue: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2763,11 +1924,10 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
2763
1924
|
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
2764
1925
|
orderLimitPerUser: number | null;
|
|
2765
1926
|
isOrderLimitPerUserEnabled: boolean;
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
users: [import("mongoose").Types.ObjectId, ...import("mongoose").Types.ObjectId[]];
|
|
1927
|
+
user: import("mongoose").Types.ObjectId;
|
|
1928
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD;
|
|
1929
|
+
referralCodeUsedBy: import("mongoose").Types.ObjectId;
|
|
1930
|
+
referralCodeUsedOnOrder: import("mongoose").Types.ObjectId;
|
|
2771
1931
|
secondaryCurrencyValue?: number | undefined;
|
|
2772
1932
|
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
2773
1933
|
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
@@ -2784,8 +1944,10 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
2784
1944
|
start: string | Date;
|
|
2785
1945
|
end?: string | Date | undefined;
|
|
2786
1946
|
};
|
|
2787
|
-
|
|
2788
|
-
|
|
1947
|
+
user: string | import("mongoose").Types.ObjectId;
|
|
1948
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD;
|
|
1949
|
+
referralCodeUsedBy: string | import("mongoose").Types.ObjectId;
|
|
1950
|
+
referralCodeUsedOnOrder: string | import("mongoose").Types.ObjectId;
|
|
2789
1951
|
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
2790
1952
|
secondaryCurrencyValue?: number | undefined;
|
|
2791
1953
|
maxDiscountLimit?: number | null | undefined;
|
|
@@ -2807,15 +1969,13 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
2807
1969
|
isOrderLimitPerUserEnabled?: boolean | undefined;
|
|
2808
1970
|
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
2809
1971
|
isExpired?: boolean | undefined;
|
|
2810
|
-
itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
|
|
2811
|
-
shops?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
2812
|
-
vendors?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
2813
1972
|
}>, z.ZodObject<{
|
|
2814
|
-
couponType: z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.
|
|
2815
|
-
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>]>;
|
|
1973
|
+
couponType: z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.SHOPS_CATEGORIES>;
|
|
2816
1974
|
itemTypes: z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>;
|
|
2817
1975
|
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">>;
|
|
2818
1976
|
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">>;
|
|
1977
|
+
isShopCoverExpenses: z.ZodDefault<z.ZodBoolean>;
|
|
1978
|
+
firstOrderOnly: z.ZodDefault<z.ZodBoolean>;
|
|
2819
1979
|
valueType: z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>;
|
|
2820
1980
|
value: z.ZodNumber;
|
|
2821
1981
|
secondaryCurrencyValue: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2881,11 +2041,12 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
2881
2041
|
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
2882
2042
|
orderLimitPerUser: number | null;
|
|
2883
2043
|
isOrderLimitPerUserEnabled: boolean;
|
|
2884
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.
|
|
2044
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.SHOPS_CATEGORIES;
|
|
2885
2045
|
itemTypes: import("@lyxa.ai/core/dist/utilities/enum").ItemType[];
|
|
2886
2046
|
shops: import("mongoose").Types.ObjectId[];
|
|
2887
2047
|
vendors: import("mongoose").Types.ObjectId[];
|
|
2888
|
-
|
|
2048
|
+
isShopCoverExpenses: boolean;
|
|
2049
|
+
firstOrderOnly: boolean;
|
|
2889
2050
|
secondaryCurrencyValue?: number | undefined;
|
|
2890
2051
|
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
2891
2052
|
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
@@ -2902,8 +2063,7 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
2902
2063
|
start: string | Date;
|
|
2903
2064
|
end?: string | Date | undefined;
|
|
2904
2065
|
};
|
|
2905
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.
|
|
2906
|
-
influencer: string | import("mongoose").Types.ObjectId;
|
|
2066
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.SHOPS_CATEGORIES;
|
|
2907
2067
|
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
2908
2068
|
secondaryCurrencyValue?: number | undefined;
|
|
2909
2069
|
maxDiscountLimit?: number | null | undefined;
|
|
@@ -2928,181 +2088,59 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
2928
2088
|
itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
|
|
2929
2089
|
shops?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
2930
2090
|
vendors?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
2950
|
-
orderLimitPerUser: number | null;
|
|
2951
|
-
isOrderLimitPerUserEnabled: boolean;
|
|
2952
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.GLOBAL;
|
|
2953
|
-
secondaryCurrencyValue?: number | undefined;
|
|
2954
|
-
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
2955
|
-
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
2956
|
-
referringUser?: {
|
|
2957
|
-
name?: string | undefined;
|
|
2958
|
-
} | undefined;
|
|
2959
|
-
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
2960
|
-
isExpired?: boolean | undefined;
|
|
2961
|
-
} | {
|
|
2962
|
-
code: string;
|
|
2963
|
-
orderLimitPerUser: 1;
|
|
2964
|
-
isOrderLimitPerUserEnabled: boolean;
|
|
2965
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_CODE;
|
|
2966
|
-
referralUser: import("mongoose").Types.ObjectId;
|
|
2967
|
-
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
2968
|
-
isExpired?: boolean | undefined;
|
|
2969
|
-
} | {
|
|
2970
|
-
code: string;
|
|
2971
|
-
value: number;
|
|
2972
|
-
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
2973
|
-
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
2974
|
-
maxDiscountLimit: number | null;
|
|
2975
|
-
isMaxDiscountLimitEnabled: boolean;
|
|
2976
|
-
duration: {
|
|
2977
|
-
start: Date;
|
|
2978
|
-
end?: Date | undefined;
|
|
2979
|
-
};
|
|
2980
|
-
spendLimit: number | null;
|
|
2981
|
-
isSpendLimitEnabled: boolean;
|
|
2982
|
-
totalOrderLimit: number | null;
|
|
2983
|
-
isTotalOrderLimitEnabled: boolean;
|
|
2984
|
-
minOrderValue: number | null;
|
|
2985
|
-
isMinOrderValueEnabled: boolean;
|
|
2986
|
-
forNewUserOnly: boolean;
|
|
2987
|
-
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
2988
|
-
orderLimitPerUser: number | null;
|
|
2989
|
-
isOrderLimitPerUserEnabled: boolean;
|
|
2990
|
-
user: import("mongoose").Types.ObjectId;
|
|
2991
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.REFERRAL_REWARD;
|
|
2992
|
-
referralCodeUsedBy: import("mongoose").Types.ObjectId;
|
|
2993
|
-
referralCodeUsedOnOrder: import("mongoose").Types.ObjectId;
|
|
2994
|
-
secondaryCurrencyValue?: number | undefined;
|
|
2995
|
-
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
2996
|
-
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
2997
|
-
referringUser?: {
|
|
2998
|
-
name?: string | undefined;
|
|
2999
|
-
} | undefined;
|
|
3000
|
-
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
3001
|
-
isExpired?: boolean | undefined;
|
|
3002
|
-
} | {
|
|
3003
|
-
code: string;
|
|
3004
|
-
value: number;
|
|
3005
|
-
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
3006
|
-
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
3007
|
-
maxDiscountLimit: number | null;
|
|
3008
|
-
isMaxDiscountLimitEnabled: boolean;
|
|
3009
|
-
duration: {
|
|
2091
|
+
isShopCoverExpenses?: boolean | undefined;
|
|
2092
|
+
firstOrderOnly?: boolean | undefined;
|
|
2093
|
+
}>, z.ZodEffects<z.ZodObject<{
|
|
2094
|
+
couponType: z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE>;
|
|
2095
|
+
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>]>>;
|
|
2096
|
+
vendor: 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>]>>;
|
|
2097
|
+
isShopCoverExpenses: z.ZodDefault<z.ZodBoolean>;
|
|
2098
|
+
firstOrderOnly: z.ZodDefault<z.ZodBoolean>;
|
|
2099
|
+
valueType: z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>;
|
|
2100
|
+
value: z.ZodNumber;
|
|
2101
|
+
secondaryCurrencyValue: z.ZodOptional<z.ZodNumber>;
|
|
2102
|
+
maxDiscountLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
2103
|
+
secondaryCurrencyMaxDiscountLimit: z.ZodOptional<z.ZodNumber>;
|
|
2104
|
+
isMaxDiscountLimitEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2105
|
+
duration: z.ZodEffects<z.ZodObject<{
|
|
2106
|
+
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>;
|
|
2107
|
+
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>>;
|
|
2108
|
+
}, "strip", z.ZodTypeAny, {
|
|
3010
2109
|
start: Date;
|
|
3011
2110
|
end?: Date | undefined;
|
|
3012
|
-
}
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
isTotalOrderLimitEnabled: boolean;
|
|
3017
|
-
minOrderValue: number | null;
|
|
3018
|
-
isMinOrderValueEnabled: boolean;
|
|
3019
|
-
forNewUserOnly: boolean;
|
|
3020
|
-
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
3021
|
-
orderLimitPerUser: number | null;
|
|
3022
|
-
isOrderLimitPerUserEnabled: boolean;
|
|
3023
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.SHOPS_CATEGORIES;
|
|
3024
|
-
itemTypes: import("@lyxa.ai/core/dist/utilities/enum").ItemType[];
|
|
3025
|
-
shops: import("mongoose").Types.ObjectId[];
|
|
3026
|
-
vendors: import("mongoose").Types.ObjectId[];
|
|
3027
|
-
isShopCoverExpenses: boolean;
|
|
3028
|
-
firstOrderOnly: boolean;
|
|
3029
|
-
secondaryCurrencyValue?: number | undefined;
|
|
3030
|
-
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
3031
|
-
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
3032
|
-
referringUser?: {
|
|
3033
|
-
name?: string | undefined;
|
|
3034
|
-
} | undefined;
|
|
3035
|
-
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
3036
|
-
isExpired?: boolean | undefined;
|
|
3037
|
-
} | {
|
|
3038
|
-
code: string;
|
|
3039
|
-
value: number;
|
|
3040
|
-
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
3041
|
-
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
3042
|
-
maxDiscountLimit: number | null;
|
|
3043
|
-
isMaxDiscountLimitEnabled: boolean;
|
|
3044
|
-
duration: {
|
|
2111
|
+
}, {
|
|
2112
|
+
start: string | Date;
|
|
2113
|
+
end?: string | Date | undefined;
|
|
2114
|
+
}>, {
|
|
3045
2115
|
start: Date;
|
|
3046
2116
|
end?: Date | undefined;
|
|
3047
|
-
}
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
referringUser?: {
|
|
2117
|
+
}, {
|
|
2118
|
+
start: string | Date;
|
|
2119
|
+
end?: string | Date | undefined;
|
|
2120
|
+
}>;
|
|
2121
|
+
spendLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
2122
|
+
isSpendLimitEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2123
|
+
totalOrderLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
2124
|
+
isTotalOrderLimitEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2125
|
+
minOrderValue: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
2126
|
+
secondaryCurrencyMinOrderValue: z.ZodOptional<z.ZodNumber>;
|
|
2127
|
+
isMinOrderValueEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2128
|
+
forNewUserOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2129
|
+
status: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>;
|
|
2130
|
+
expirationReason: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>;
|
|
2131
|
+
referringUser: z.ZodOptional<z.ZodObject<{
|
|
2132
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2133
|
+
}, "strip", z.ZodTypeAny, {
|
|
3065
2134
|
name?: string | undefined;
|
|
3066
|
-
}
|
|
3067
|
-
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
3068
|
-
isExpired?: boolean | undefined;
|
|
3069
|
-
shop?: import("mongoose").Types.ObjectId | undefined;
|
|
3070
|
-
vendor?: import("mongoose").Types.ObjectId | undefined;
|
|
3071
|
-
} | {
|
|
3072
|
-
code: string;
|
|
3073
|
-
value: number;
|
|
3074
|
-
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
3075
|
-
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
3076
|
-
maxDiscountLimit: number | null;
|
|
3077
|
-
isMaxDiscountLimitEnabled: boolean;
|
|
3078
|
-
duration: {
|
|
3079
|
-
start: Date;
|
|
3080
|
-
end?: Date | undefined;
|
|
3081
|
-
};
|
|
3082
|
-
spendLimit: number | null;
|
|
3083
|
-
isSpendLimitEnabled: boolean;
|
|
3084
|
-
totalOrderLimit: number | null;
|
|
3085
|
-
isTotalOrderLimitEnabled: boolean;
|
|
3086
|
-
minOrderValue: number | null;
|
|
3087
|
-
isMinOrderValueEnabled: boolean;
|
|
3088
|
-
forNewUserOnly: boolean;
|
|
3089
|
-
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
3090
|
-
orderLimitPerUser: number | null;
|
|
3091
|
-
isOrderLimitPerUserEnabled: boolean;
|
|
3092
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER;
|
|
3093
|
-
itemTypes: import("@lyxa.ai/core/dist/utilities/enum").ItemType[];
|
|
3094
|
-
shops: import("mongoose").Types.ObjectId[];
|
|
3095
|
-
vendors: import("mongoose").Types.ObjectId[];
|
|
3096
|
-
users: [import("mongoose").Types.ObjectId, ...import("mongoose").Types.ObjectId[]];
|
|
3097
|
-
secondaryCurrencyValue?: number | undefined;
|
|
3098
|
-
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
3099
|
-
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
3100
|
-
referringUser?: {
|
|
2135
|
+
}, {
|
|
3101
2136
|
name?: string | undefined;
|
|
3102
|
-
}
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
2137
|
+
}>>;
|
|
2138
|
+
code: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2139
|
+
orderLimitPerUser: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
2140
|
+
isOrderLimitPerUserEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2141
|
+
createdBy: 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>]>>;
|
|
2142
|
+
isExpired: z.ZodOptional<z.ZodBoolean>;
|
|
2143
|
+
}, "strict", z.ZodTypeAny, {
|
|
3106
2144
|
code: string;
|
|
3107
2145
|
value: number;
|
|
3108
2146
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
@@ -3121,13 +2159,11 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
3121
2159
|
isMinOrderValueEnabled: boolean;
|
|
3122
2160
|
forNewUserOnly: boolean;
|
|
3123
2161
|
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
3124
|
-
orderLimitPerUser: number | null;
|
|
3125
|
-
isOrderLimitPerUserEnabled: boolean;
|
|
3126
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
vendors: import("mongoose").Types.ObjectId[];
|
|
3130
|
-
influencer: import("mongoose").Types.ObjectId;
|
|
2162
|
+
orderLimitPerUser: number | null;
|
|
2163
|
+
isOrderLimitPerUserEnabled: boolean;
|
|
2164
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE;
|
|
2165
|
+
isShopCoverExpenses: boolean;
|
|
2166
|
+
firstOrderOnly: boolean;
|
|
3131
2167
|
secondaryCurrencyValue?: number | undefined;
|
|
3132
2168
|
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
3133
2169
|
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
@@ -3136,6 +2172,8 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
3136
2172
|
} | undefined;
|
|
3137
2173
|
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
3138
2174
|
isExpired?: boolean | undefined;
|
|
2175
|
+
shop?: import("mongoose").Types.ObjectId | undefined;
|
|
2176
|
+
vendor?: import("mongoose").Types.ObjectId | undefined;
|
|
3139
2177
|
}, {
|
|
3140
2178
|
code: string;
|
|
3141
2179
|
value: number;
|
|
@@ -3144,7 +2182,7 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
3144
2182
|
start: string | Date;
|
|
3145
2183
|
end?: string | Date | undefined;
|
|
3146
2184
|
};
|
|
3147
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.
|
|
2185
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE;
|
|
3148
2186
|
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
3149
2187
|
secondaryCurrencyValue?: number | undefined;
|
|
3150
2188
|
maxDiscountLimit?: number | null | undefined;
|
|
@@ -3166,48 +2204,45 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
3166
2204
|
isOrderLimitPerUserEnabled?: boolean | undefined;
|
|
3167
2205
|
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
3168
2206
|
isExpired?: boolean | undefined;
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
isOrderLimitPerUserEnabled?: boolean | undefined;
|
|
3175
|
-
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
3176
|
-
isExpired?: boolean | undefined;
|
|
3177
|
-
} | {
|
|
2207
|
+
shop?: string | import("mongoose").Types.ObjectId | undefined;
|
|
2208
|
+
vendor?: string | import("mongoose").Types.ObjectId | undefined;
|
|
2209
|
+
isShopCoverExpenses?: boolean | undefined;
|
|
2210
|
+
firstOrderOnly?: boolean | undefined;
|
|
2211
|
+
}>, {
|
|
3178
2212
|
code: string;
|
|
3179
2213
|
value: number;
|
|
2214
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
3180
2215
|
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
2216
|
+
maxDiscountLimit: number | null;
|
|
2217
|
+
isMaxDiscountLimitEnabled: boolean;
|
|
3181
2218
|
duration: {
|
|
3182
|
-
start:
|
|
3183
|
-
end?:
|
|
2219
|
+
start: Date;
|
|
2220
|
+
end?: Date | undefined;
|
|
3184
2221
|
};
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
2222
|
+
spendLimit: number | null;
|
|
2223
|
+
isSpendLimitEnabled: boolean;
|
|
2224
|
+
totalOrderLimit: number | null;
|
|
2225
|
+
isTotalOrderLimitEnabled: boolean;
|
|
2226
|
+
minOrderValue: number | null;
|
|
2227
|
+
isMinOrderValueEnabled: boolean;
|
|
2228
|
+
forNewUserOnly: boolean;
|
|
2229
|
+
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
2230
|
+
orderLimitPerUser: number | null;
|
|
2231
|
+
isOrderLimitPerUserEnabled: boolean;
|
|
2232
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE;
|
|
2233
|
+
isShopCoverExpenses: boolean;
|
|
2234
|
+
firstOrderOnly: boolean;
|
|
3190
2235
|
secondaryCurrencyValue?: number | undefined;
|
|
3191
|
-
maxDiscountLimit?: number | null | undefined;
|
|
3192
2236
|
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
3193
|
-
isMaxDiscountLimitEnabled?: boolean | undefined;
|
|
3194
|
-
spendLimit?: number | null | undefined;
|
|
3195
|
-
isSpendLimitEnabled?: boolean | undefined;
|
|
3196
|
-
totalOrderLimit?: number | null | undefined;
|
|
3197
|
-
isTotalOrderLimitEnabled?: boolean | undefined;
|
|
3198
|
-
minOrderValue?: number | null | undefined;
|
|
3199
2237
|
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
3200
|
-
isMinOrderValueEnabled?: boolean | undefined;
|
|
3201
|
-
forNewUserOnly?: boolean | undefined;
|
|
3202
|
-
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
3203
2238
|
referringUser?: {
|
|
3204
2239
|
name?: string | undefined;
|
|
3205
2240
|
} | undefined;
|
|
3206
|
-
|
|
3207
|
-
isOrderLimitPerUserEnabled?: boolean | undefined;
|
|
3208
|
-
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
2241
|
+
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
3209
2242
|
isExpired?: boolean | undefined;
|
|
3210
|
-
|
|
2243
|
+
shop?: import("mongoose").Types.ObjectId | undefined;
|
|
2244
|
+
vendor?: import("mongoose").Types.ObjectId | undefined;
|
|
2245
|
+
}, {
|
|
3211
2246
|
code: string;
|
|
3212
2247
|
value: number;
|
|
3213
2248
|
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
@@ -3215,7 +2250,7 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
3215
2250
|
start: string | Date;
|
|
3216
2251
|
end?: string | Date | undefined;
|
|
3217
2252
|
};
|
|
3218
|
-
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.
|
|
2253
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_STORE;
|
|
3219
2254
|
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
3220
2255
|
secondaryCurrencyValue?: number | undefined;
|
|
3221
2256
|
maxDiscountLimit?: number | null | undefined;
|
|
@@ -3237,46 +2272,95 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
3237
2272
|
isOrderLimitPerUserEnabled?: boolean | undefined;
|
|
3238
2273
|
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
3239
2274
|
isExpired?: boolean | undefined;
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
vendors?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
2275
|
+
shop?: string | import("mongoose").Types.ObjectId | undefined;
|
|
2276
|
+
vendor?: string | import("mongoose").Types.ObjectId | undefined;
|
|
3243
2277
|
isShopCoverExpenses?: boolean | undefined;
|
|
3244
2278
|
firstOrderOnly?: boolean | undefined;
|
|
3245
|
-
}
|
|
2279
|
+
}>, z.ZodObject<{
|
|
2280
|
+
couponType: z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER>;
|
|
2281
|
+
users: 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>]>, "atleastone">;
|
|
2282
|
+
itemTypes: z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>;
|
|
2283
|
+
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">>;
|
|
2284
|
+
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">>;
|
|
2285
|
+
valueType: z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>;
|
|
2286
|
+
value: z.ZodNumber;
|
|
2287
|
+
secondaryCurrencyValue: z.ZodOptional<z.ZodNumber>;
|
|
2288
|
+
maxDiscountLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
2289
|
+
secondaryCurrencyMaxDiscountLimit: z.ZodOptional<z.ZodNumber>;
|
|
2290
|
+
isMaxDiscountLimitEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2291
|
+
duration: z.ZodEffects<z.ZodObject<{
|
|
2292
|
+
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>;
|
|
2293
|
+
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>>;
|
|
2294
|
+
}, "strip", z.ZodTypeAny, {
|
|
2295
|
+
start: Date;
|
|
2296
|
+
end?: Date | undefined;
|
|
2297
|
+
}, {
|
|
2298
|
+
start: string | Date;
|
|
2299
|
+
end?: string | Date | undefined;
|
|
2300
|
+
}>, {
|
|
2301
|
+
start: Date;
|
|
2302
|
+
end?: Date | undefined;
|
|
2303
|
+
}, {
|
|
2304
|
+
start: string | Date;
|
|
2305
|
+
end?: string | Date | undefined;
|
|
2306
|
+
}>;
|
|
2307
|
+
spendLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
2308
|
+
isSpendLimitEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2309
|
+
totalOrderLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
2310
|
+
isTotalOrderLimitEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2311
|
+
minOrderValue: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
2312
|
+
secondaryCurrencyMinOrderValue: z.ZodOptional<z.ZodNumber>;
|
|
2313
|
+
isMinOrderValueEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2314
|
+
forNewUserOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2315
|
+
status: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>;
|
|
2316
|
+
expirationReason: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>;
|
|
2317
|
+
referringUser: z.ZodOptional<z.ZodObject<{
|
|
2318
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2319
|
+
}, "strip", z.ZodTypeAny, {
|
|
2320
|
+
name?: string | undefined;
|
|
2321
|
+
}, {
|
|
2322
|
+
name?: string | undefined;
|
|
2323
|
+
}>>;
|
|
2324
|
+
code: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2325
|
+
orderLimitPerUser: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
2326
|
+
isOrderLimitPerUserEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2327
|
+
createdBy: 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>]>>;
|
|
2328
|
+
isExpired: z.ZodOptional<z.ZodBoolean>;
|
|
2329
|
+
}, "strict", z.ZodTypeAny, {
|
|
3246
2330
|
code: string;
|
|
3247
2331
|
value: number;
|
|
2332
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
3248
2333
|
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
2334
|
+
maxDiscountLimit: number | null;
|
|
2335
|
+
isMaxDiscountLimitEnabled: boolean;
|
|
3249
2336
|
duration: {
|
|
3250
|
-
start:
|
|
3251
|
-
end?:
|
|
2337
|
+
start: Date;
|
|
2338
|
+
end?: Date | undefined;
|
|
3252
2339
|
};
|
|
3253
|
-
|
|
3254
|
-
|
|
2340
|
+
spendLimit: number | null;
|
|
2341
|
+
isSpendLimitEnabled: boolean;
|
|
2342
|
+
totalOrderLimit: number | null;
|
|
2343
|
+
isTotalOrderLimitEnabled: boolean;
|
|
2344
|
+
minOrderValue: number | null;
|
|
2345
|
+
isMinOrderValueEnabled: boolean;
|
|
2346
|
+
forNewUserOnly: boolean;
|
|
2347
|
+
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
2348
|
+
orderLimitPerUser: number | null;
|
|
2349
|
+
isOrderLimitPerUserEnabled: boolean;
|
|
2350
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.INDIVIDUAL_USER;
|
|
2351
|
+
itemTypes: import("@lyxa.ai/core/dist/utilities/enum").ItemType[];
|
|
2352
|
+
shops: import("mongoose").Types.ObjectId[];
|
|
2353
|
+
vendors: import("mongoose").Types.ObjectId[];
|
|
2354
|
+
users: [import("mongoose").Types.ObjectId, ...import("mongoose").Types.ObjectId[]];
|
|
3255
2355
|
secondaryCurrencyValue?: number | undefined;
|
|
3256
|
-
maxDiscountLimit?: number | null | undefined;
|
|
3257
2356
|
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
3258
|
-
isMaxDiscountLimitEnabled?: boolean | undefined;
|
|
3259
|
-
spendLimit?: number | null | undefined;
|
|
3260
|
-
isSpendLimitEnabled?: boolean | undefined;
|
|
3261
|
-
totalOrderLimit?: number | null | undefined;
|
|
3262
|
-
isTotalOrderLimitEnabled?: boolean | undefined;
|
|
3263
|
-
minOrderValue?: number | null | undefined;
|
|
3264
2357
|
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
3265
|
-
isMinOrderValueEnabled?: boolean | undefined;
|
|
3266
|
-
forNewUserOnly?: boolean | undefined;
|
|
3267
|
-
expirationReason?: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null | undefined;
|
|
3268
2358
|
referringUser?: {
|
|
3269
2359
|
name?: string | undefined;
|
|
3270
2360
|
} | undefined;
|
|
3271
|
-
|
|
3272
|
-
isOrderLimitPerUserEnabled?: boolean | undefined;
|
|
3273
|
-
createdBy?: string | import("mongoose").Types.ObjectId | undefined;
|
|
2361
|
+
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
3274
2362
|
isExpired?: boolean | undefined;
|
|
3275
|
-
|
|
3276
|
-
vendor?: string | import("mongoose").Types.ObjectId | undefined;
|
|
3277
|
-
isShopCoverExpenses?: boolean | undefined;
|
|
3278
|
-
firstOrderOnly?: boolean | undefined;
|
|
3279
|
-
} | {
|
|
2363
|
+
}, {
|
|
3280
2364
|
code: string;
|
|
3281
2365
|
value: number;
|
|
3282
2366
|
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
@@ -3310,7 +2394,91 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
3310
2394
|
itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
|
|
3311
2395
|
shops?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
3312
2396
|
vendors?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
3313
|
-
}
|
|
2397
|
+
}>, z.ZodObject<{
|
|
2398
|
+
couponType: z.ZodLiteral<import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON>;
|
|
2399
|
+
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>]>;
|
|
2400
|
+
itemTypes: z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ItemType>, "many">>;
|
|
2401
|
+
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">>;
|
|
2402
|
+
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">>;
|
|
2403
|
+
valueType: z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").ValueType>;
|
|
2404
|
+
value: z.ZodNumber;
|
|
2405
|
+
secondaryCurrencyValue: z.ZodOptional<z.ZodNumber>;
|
|
2406
|
+
maxDiscountLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
2407
|
+
secondaryCurrencyMaxDiscountLimit: z.ZodOptional<z.ZodNumber>;
|
|
2408
|
+
isMaxDiscountLimitEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2409
|
+
duration: z.ZodEffects<z.ZodObject<{
|
|
2410
|
+
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>;
|
|
2411
|
+
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>>;
|
|
2412
|
+
}, "strip", z.ZodTypeAny, {
|
|
2413
|
+
start: Date;
|
|
2414
|
+
end?: Date | undefined;
|
|
2415
|
+
}, {
|
|
2416
|
+
start: string | Date;
|
|
2417
|
+
end?: string | Date | undefined;
|
|
2418
|
+
}>, {
|
|
2419
|
+
start: Date;
|
|
2420
|
+
end?: Date | undefined;
|
|
2421
|
+
}, {
|
|
2422
|
+
start: string | Date;
|
|
2423
|
+
end?: string | Date | undefined;
|
|
2424
|
+
}>;
|
|
2425
|
+
spendLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
2426
|
+
isSpendLimitEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2427
|
+
totalOrderLimit: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
2428
|
+
isTotalOrderLimitEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2429
|
+
minOrderValue: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
2430
|
+
secondaryCurrencyMinOrderValue: z.ZodOptional<z.ZodNumber>;
|
|
2431
|
+
isMinOrderValueEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2432
|
+
forNewUserOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2433
|
+
status: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").Status>>>;
|
|
2434
|
+
expirationReason: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason>>>>;
|
|
2435
|
+
referringUser: z.ZodOptional<z.ZodObject<{
|
|
2436
|
+
name: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
2437
|
+
}, "strip", z.ZodTypeAny, {
|
|
2438
|
+
name?: string | undefined;
|
|
2439
|
+
}, {
|
|
2440
|
+
name?: string | undefined;
|
|
2441
|
+
}>>;
|
|
2442
|
+
code: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2443
|
+
orderLimitPerUser: z.ZodDefault<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
|
|
2444
|
+
isOrderLimitPerUserEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2445
|
+
createdBy: 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>]>>;
|
|
2446
|
+
isExpired: z.ZodOptional<z.ZodBoolean>;
|
|
2447
|
+
}, "strict", z.ZodTypeAny, {
|
|
2448
|
+
code: string;
|
|
2449
|
+
value: number;
|
|
2450
|
+
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
2451
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
2452
|
+
maxDiscountLimit: number | null;
|
|
2453
|
+
isMaxDiscountLimitEnabled: boolean;
|
|
2454
|
+
duration: {
|
|
2455
|
+
start: Date;
|
|
2456
|
+
end?: Date | undefined;
|
|
2457
|
+
};
|
|
2458
|
+
spendLimit: number | null;
|
|
2459
|
+
isSpendLimitEnabled: boolean;
|
|
2460
|
+
totalOrderLimit: number | null;
|
|
2461
|
+
isTotalOrderLimitEnabled: boolean;
|
|
2462
|
+
minOrderValue: number | null;
|
|
2463
|
+
isMinOrderValueEnabled: boolean;
|
|
2464
|
+
forNewUserOnly: boolean;
|
|
2465
|
+
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
2466
|
+
orderLimitPerUser: number | null;
|
|
2467
|
+
isOrderLimitPerUserEnabled: boolean;
|
|
2468
|
+
couponType: import("@lyxa.ai/core/dist/utilities/enum").CouponType.CUSTOM_COUPON;
|
|
2469
|
+
itemTypes: import("@lyxa.ai/core/dist/utilities/enum").ItemType[];
|
|
2470
|
+
shops: import("mongoose").Types.ObjectId[];
|
|
2471
|
+
vendors: import("mongoose").Types.ObjectId[];
|
|
2472
|
+
influencer: import("mongoose").Types.ObjectId;
|
|
2473
|
+
secondaryCurrencyValue?: number | undefined;
|
|
2474
|
+
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
2475
|
+
secondaryCurrencyMinOrderValue?: number | undefined;
|
|
2476
|
+
referringUser?: {
|
|
2477
|
+
name?: string | undefined;
|
|
2478
|
+
} | undefined;
|
|
2479
|
+
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
2480
|
+
isExpired?: boolean | undefined;
|
|
2481
|
+
}, {
|
|
3314
2482
|
code: string;
|
|
3315
2483
|
value: number;
|
|
3316
2484
|
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
@@ -3344,7 +2512,7 @@ export declare const AllCouponsUpdateSchema: z.ZodObject<{
|
|
|
3344
2512
|
itemTypes?: import("@lyxa.ai/core/dist/utilities/enum").ItemType[] | undefined;
|
|
3345
2513
|
shops?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
3346
2514
|
vendors?: (string | import("mongoose").Types.ObjectId)[] | undefined;
|
|
3347
|
-
}>;
|
|
2515
|
+
}>]>;
|
|
3348
2516
|
}, "strip", z.ZodTypeAny, {
|
|
3349
2517
|
_id: import("mongoose").Types.ObjectId;
|
|
3350
2518
|
data: {
|