@lyxa.ai/marketing 1.0.29 → 1.0.31
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/event/event-initializations.d.ts +2 -0
- package/dist/lib/event/event-initializations.d.ts.map +1 -0
- package/dist/lib/event/event-initializations.js +8 -0
- package/dist/lib/event/event-initializations.js.map +1 -0
- package/dist/lib/event/event-listeners/event-listeners.d.ts +2 -0
- package/dist/lib/event/event-listeners/event-listeners.d.ts.map +1 -0
- package/dist/lib/event/event-listeners/event-listeners.js +12 -0
- package/dist/lib/event/event-listeners/event-listeners.js.map +1 -0
- package/dist/lib/index.d.ts +734 -78
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/index.js +17 -17
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/modules/coupon/routers/coupon.router.d.ts +710 -75
- package/dist/lib/modules/coupon/routers/coupon.router.d.ts.map +1 -1
- package/dist/lib/modules/coupon/routers/coupon.router.js +4 -0
- package/dist/lib/modules/coupon/routers/coupon.router.js.map +1 -1
- package/dist/lib/modules/coupon/services/coupon.service.d.ts +2 -1
- package/dist/lib/modules/coupon/services/coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/coupon.service.js +42 -18
- package/dist/lib/modules/coupon/services/coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/global-coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/global-coupon.service.js +2 -1
- package/dist/lib/modules/coupon/services/global-coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/helper.service.js +1 -1
- package/dist/lib/modules/coupon/services/helper.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/individual-store-coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/individual-store-coupon.service.js +4 -1
- package/dist/lib/modules/coupon/services/individual-store-coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/individual-user-coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/individual-user-coupon.service.js +1 -0
- package/dist/lib/modules/coupon/services/individual-user-coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.d.ts +1 -0
- package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.js +123 -5
- package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.js.map +1 -1
- package/dist/lib/modules/coupon/services/referral-code-coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/referral-code-coupon.service.js +2 -0
- package/dist/lib/modules/coupon/services/referral-code-coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/referral-reward-coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/referral-reward-coupon.service.js +4 -1
- package/dist/lib/modules/coupon/services/referral-reward-coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/shops-categories-coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/shops-categories-coupon.service.js +4 -1
- package/dist/lib/modules/coupon/services/shops-categories-coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/validations/all-coupons.validation.d.ts +153 -153
- package/dist/lib/modules/coupon/validations/all-coupons.validation.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/all-coupons.validation.js.map +1 -1
- package/dist/lib/modules/coupon/validations/coupon.validation.d.ts +33 -12
- package/dist/lib/modules/coupon/validations/coupon.validation.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/coupon.validation.js +12 -5
- package/dist/lib/modules/coupon/validations/coupon.validation.js.map +1 -1
- package/dist/lib/modules/coupon/validations/custom-coupon.validation.d.ts +8 -8
- package/dist/lib/modules/coupon/validations/global-coupon.validation.d.ts +8 -8
- package/dist/lib/modules/coupon/validations/individual-store-coupon.validation.d.ts +10 -10
- package/dist/lib/modules/coupon/validations/individual-user-coupon.validation.d.ts +8 -8
- package/dist/lib/modules/coupon/validations/referral-reward-coupon.validation.d.ts +9 -9
- package/dist/lib/modules/coupon/validations/shops-categories-coupon.validation.d.ts +8 -8
- package/dist/lib/modules/deal-setting/validations/deal-setting.validation.d.ts +1 -1
- package/dist/lib/modules/marketing/routers/marketing.router.d.ts +21 -0
- package/dist/lib/modules/marketing/routers/marketing.router.d.ts.map +1 -1
- package/dist/lib/modules/marketing/routers/marketing.router.js +19 -8
- package/dist/lib/modules/marketing/routers/marketing.router.js.map +1 -1
- package/dist/lib/modules/marketing/services/buy1-get1-marketing.service.d.ts +2 -1
- package/dist/lib/modules/marketing/services/buy1-get1-marketing.service.d.ts.map +1 -1
- package/dist/lib/modules/marketing/services/buy1-get1-marketing.service.js +45 -102
- package/dist/lib/modules/marketing/services/buy1-get1-marketing.service.js.map +1 -1
- package/dist/lib/modules/marketing/services/discount-marketing.service.d.ts +2 -1
- package/dist/lib/modules/marketing/services/discount-marketing.service.d.ts.map +1 -1
- package/dist/lib/modules/marketing/services/discount-marketing.service.js +54 -163
- package/dist/lib/modules/marketing/services/discount-marketing.service.js.map +1 -1
- package/dist/lib/modules/marketing/services/featured-marketing.service.d.ts +2 -0
- package/dist/lib/modules/marketing/services/featured-marketing.service.d.ts.map +1 -1
- package/dist/lib/modules/marketing/services/featured-marketing.service.js +30 -2
- package/dist/lib/modules/marketing/services/featured-marketing.service.js.map +1 -1
- package/dist/lib/modules/marketing/services/free-delivery-marketing.service.d.ts.map +1 -1
- package/dist/lib/modules/marketing/services/free-delivery-marketing.service.js +6 -1
- package/dist/lib/modules/marketing/services/free-delivery-marketing.service.js.map +1 -1
- package/dist/lib/modules/marketing/services/index.d.ts +1 -0
- package/dist/lib/modules/marketing/services/index.d.ts.map +1 -1
- package/dist/lib/modules/marketing/services/index.js +1 -0
- package/dist/lib/modules/marketing/services/index.js.map +1 -1
- package/dist/lib/modules/marketing/services/marketing.service.d.ts +6 -0
- package/dist/lib/modules/marketing/services/marketing.service.d.ts.map +1 -1
- package/dist/lib/modules/marketing/services/marketing.service.js +230 -8
- package/dist/lib/modules/marketing/services/marketing.service.js.map +1 -1
- package/dist/lib/modules/marketing/services/product-marketing.service.d.ts +1 -0
- package/dist/lib/modules/marketing/services/product-marketing.service.d.ts.map +1 -1
- package/dist/lib/modules/marketing/services/product-marketing.service.js +21 -3
- package/dist/lib/modules/marketing/services/product-marketing.service.js.map +1 -1
- package/dist/lib/modules/marketing/services/punch-marketing.service.d.ts.map +1 -1
- package/dist/lib/modules/marketing/services/punch-marketing.service.js +6 -1
- package/dist/lib/modules/marketing/services/punch-marketing.service.js.map +1 -1
- package/dist/lib/modules/marketing/services/synchronize-product-marketing.service.d.ts +14 -0
- package/dist/lib/modules/marketing/services/synchronize-product-marketing.service.d.ts.map +1 -0
- package/dist/lib/modules/marketing/services/synchronize-product-marketing.service.js +209 -0
- package/dist/lib/modules/marketing/services/synchronize-product-marketing.service.js.map +1 -0
- package/dist/lib/modules/marketing/transformers/buy1-get1-marketing.transformer.d.ts +2 -2
- package/dist/lib/modules/marketing/transformers/discount-marketing.transformer.d.ts +2 -2
- package/dist/lib/modules/marketing/validations/buy1-get1-marketing.validation.d.ts +58 -58
- package/dist/lib/modules/marketing/validations/discount-marketing.validation.d.ts +68 -68
- package/dist/lib/modules/marketing/validations/featured-marketing.validation.d.ts +21 -21
- package/dist/lib/modules/marketing/validations/free-delivery-marketing.validation.d.ts +18 -18
- package/dist/lib/modules/marketing/validations/marketing.validation.d.ts +14 -7
- package/dist/lib/modules/marketing/validations/marketing.validation.d.ts.map +1 -1
- package/dist/lib/modules/marketing/validations/marketing.validation.js +4 -1
- package/dist/lib/modules/marketing/validations/marketing.validation.js.map +1 -1
- package/dist/lib/modules/marketing/validations/product-marketing.validation.d.ts +4 -4
- package/dist/lib/modules/marketing/validations/punch-marketing.validation.d.ts +22 -22
- package/dist/lib/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts +3 -3
- package/dist/lib/modules/punch-marketing-history/services/punch-marketing-history.service.js +2 -2
- package/dist/lib/modules/punch-marketing-history/services/punch-marketing-history.service.js.map +1 -1
- package/dist/lib/modules/punch-marketing-history/validations/punch-marketing-history.validation.d.ts +6 -6
- package/dist/types/event/event-initializations.d.ts +2 -0
- package/dist/types/event/event-initializations.d.ts.map +1 -0
- package/dist/types/event/event-listeners/event-listeners.d.ts +2 -0
- package/dist/types/event/event-listeners/event-listeners.d.ts.map +1 -0
- package/dist/types/index.d.ts +734 -78
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/modules/coupon/routers/coupon.router.d.ts +710 -75
- package/dist/types/modules/coupon/routers/coupon.router.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/coupon.service.d.ts +2 -1
- package/dist/types/modules/coupon/services/coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/global-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/individual-store-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/individual-user-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/patterns/repository/CouponRepository.d.ts +1 -0
- package/dist/types/modules/coupon/services/patterns/repository/CouponRepository.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/referral-code-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/referral-reward-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/shops-categories-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/all-coupons.validation.d.ts +153 -153
- package/dist/types/modules/coupon/validations/all-coupons.validation.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/coupon.validation.d.ts +33 -12
- package/dist/types/modules/coupon/validations/coupon.validation.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/custom-coupon.validation.d.ts +8 -8
- package/dist/types/modules/coupon/validations/global-coupon.validation.d.ts +8 -8
- package/dist/types/modules/coupon/validations/individual-store-coupon.validation.d.ts +10 -10
- package/dist/types/modules/coupon/validations/individual-user-coupon.validation.d.ts +8 -8
- package/dist/types/modules/coupon/validations/referral-reward-coupon.validation.d.ts +9 -9
- package/dist/types/modules/coupon/validations/shops-categories-coupon.validation.d.ts +8 -8
- package/dist/types/modules/deal-setting/validations/deal-setting.validation.d.ts +1 -1
- package/dist/types/modules/marketing/routers/marketing.router.d.ts +21 -0
- package/dist/types/modules/marketing/routers/marketing.router.d.ts.map +1 -1
- package/dist/types/modules/marketing/services/buy1-get1-marketing.service.d.ts +2 -1
- package/dist/types/modules/marketing/services/buy1-get1-marketing.service.d.ts.map +1 -1
- package/dist/types/modules/marketing/services/discount-marketing.service.d.ts +2 -1
- package/dist/types/modules/marketing/services/discount-marketing.service.d.ts.map +1 -1
- package/dist/types/modules/marketing/services/featured-marketing.service.d.ts +2 -0
- package/dist/types/modules/marketing/services/featured-marketing.service.d.ts.map +1 -1
- package/dist/types/modules/marketing/services/free-delivery-marketing.service.d.ts.map +1 -1
- package/dist/types/modules/marketing/services/index.d.ts +1 -0
- package/dist/types/modules/marketing/services/index.d.ts.map +1 -1
- package/dist/types/modules/marketing/services/marketing.service.d.ts +6 -0
- package/dist/types/modules/marketing/services/marketing.service.d.ts.map +1 -1
- package/dist/types/modules/marketing/services/product-marketing.service.d.ts +1 -0
- package/dist/types/modules/marketing/services/product-marketing.service.d.ts.map +1 -1
- package/dist/types/modules/marketing/services/punch-marketing.service.d.ts.map +1 -1
- package/dist/types/modules/marketing/services/synchronize-product-marketing.service.d.ts +14 -0
- package/dist/types/modules/marketing/services/synchronize-product-marketing.service.d.ts.map +1 -0
- package/dist/types/modules/marketing/transformers/buy1-get1-marketing.transformer.d.ts +2 -2
- package/dist/types/modules/marketing/transformers/discount-marketing.transformer.d.ts +2 -2
- package/dist/types/modules/marketing/validations/buy1-get1-marketing.validation.d.ts +58 -58
- package/dist/types/modules/marketing/validations/discount-marketing.validation.d.ts +68 -68
- package/dist/types/modules/marketing/validations/featured-marketing.validation.d.ts +21 -21
- package/dist/types/modules/marketing/validations/free-delivery-marketing.validation.d.ts +18 -18
- package/dist/types/modules/marketing/validations/marketing.validation.d.ts +14 -7
- package/dist/types/modules/marketing/validations/marketing.validation.d.ts.map +1 -1
- package/dist/types/modules/marketing/validations/product-marketing.validation.d.ts +4 -4
- package/dist/types/modules/marketing/validations/punch-marketing.validation.d.ts +22 -22
- package/dist/types/modules/punch-marketing-history/routers/punch-marketing-history.router.d.ts +3 -3
- package/dist/types/modules/punch-marketing-history/validations/punch-marketing-history.validation.d.ts +6 -6
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"all-coupons.validation.d.ts","sourceRoot":"/","sources":["modules/coupon/validations/all-coupons.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"all-coupons.validation.d.ts","sourceRoot":"/","sources":["modules/coupon/validations/all-coupons.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAmBxB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAyC,CAAC;AAE3E,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC7D,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AACjF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
|
@@ -106,18 +106,18 @@ declare const CouponValidationSchema: z.ZodObject<{
|
|
|
106
106
|
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>]>>;
|
|
107
107
|
isExpired: z.ZodOptional<z.ZodBoolean>;
|
|
108
108
|
}, "strict", z.ZodTypeAny, {
|
|
109
|
-
value: number;
|
|
110
109
|
code: string;
|
|
110
|
+
value: number;
|
|
111
111
|
status: Status;
|
|
112
|
+
valueType: ValueType;
|
|
113
|
+
maxDiscountLimit: number | null;
|
|
114
|
+
isMaxDiscountLimitEnabled: boolean;
|
|
112
115
|
duration: {
|
|
113
116
|
start: Date;
|
|
114
117
|
end?: Date | undefined;
|
|
115
118
|
};
|
|
116
|
-
valueType: ValueType;
|
|
117
119
|
spendLimit: number | null;
|
|
118
120
|
isSpendLimitEnabled: boolean;
|
|
119
|
-
maxDiscountLimit: number | null;
|
|
120
|
-
isMaxDiscountLimitEnabled: boolean;
|
|
121
121
|
totalOrderLimit: number | null;
|
|
122
122
|
isTotalOrderLimitEnabled: boolean;
|
|
123
123
|
minOrderValue: number | null;
|
|
@@ -135,20 +135,20 @@ declare const CouponValidationSchema: z.ZodObject<{
|
|
|
135
135
|
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
136
136
|
isExpired?: boolean | undefined;
|
|
137
137
|
}, {
|
|
138
|
-
value: number;
|
|
139
138
|
code: string;
|
|
139
|
+
value: number;
|
|
140
|
+
valueType: ValueType;
|
|
140
141
|
duration: {
|
|
141
142
|
start: string | Date;
|
|
142
143
|
end?: string | Date | undefined;
|
|
143
144
|
};
|
|
144
|
-
valueType: ValueType;
|
|
145
145
|
status?: Status | undefined;
|
|
146
|
-
spendLimit?: number | null | undefined;
|
|
147
|
-
isSpendLimitEnabled?: boolean | undefined;
|
|
148
146
|
secondaryCurrencyValue?: number | undefined;
|
|
149
147
|
maxDiscountLimit?: number | null | undefined;
|
|
150
148
|
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
151
149
|
isMaxDiscountLimitEnabled?: boolean | undefined;
|
|
150
|
+
spendLimit?: number | null | undefined;
|
|
151
|
+
isSpendLimitEnabled?: boolean | undefined;
|
|
152
152
|
totalOrderLimit?: number | null | undefined;
|
|
153
153
|
isTotalOrderLimitEnabled?: boolean | undefined;
|
|
154
154
|
minOrderValue?: number | null | undefined;
|
|
@@ -1164,11 +1164,11 @@ export declare const GetUserCouponSchema: z.ZodObject<{
|
|
|
1164
1164
|
}, "strip", z.ZodTypeAny, {
|
|
1165
1165
|
page: number;
|
|
1166
1166
|
size: number;
|
|
1167
|
-
shop?: import("mongoose").Types.ObjectId | undefined;
|
|
1168
1167
|
user?: import("mongoose").Types.ObjectId | undefined;
|
|
1168
|
+
shop?: import("mongoose").Types.ObjectId | undefined;
|
|
1169
1169
|
}, {
|
|
1170
|
-
shop?: string | import("mongoose").Types.ObjectId | undefined;
|
|
1171
1170
|
user?: string | import("mongoose").Types.ObjectId | undefined;
|
|
1171
|
+
shop?: string | import("mongoose").Types.ObjectId | undefined;
|
|
1172
1172
|
page?: number | undefined;
|
|
1173
1173
|
size?: number | undefined;
|
|
1174
1174
|
}>;
|
|
@@ -1182,14 +1182,14 @@ export declare const ValidateCouponSchema: z.ZodObject<{
|
|
|
1182
1182
|
amountBeforeCoupon: z.ZodNumber;
|
|
1183
1183
|
secondaryAmountBeforeCoupon: z.ZodNumber;
|
|
1184
1184
|
}, "strip", z.ZodTypeAny, {
|
|
1185
|
-
shop: string | import("mongoose").Types.ObjectId;
|
|
1186
1185
|
user: string | import("mongoose").Types.ObjectId;
|
|
1186
|
+
shop: string | import("mongoose").Types.ObjectId;
|
|
1187
1187
|
amountBeforeCoupon: number;
|
|
1188
1188
|
secondaryAmountBeforeCoupon: number;
|
|
1189
1189
|
coupon?: string | undefined;
|
|
1190
1190
|
}, {
|
|
1191
|
-
shop: string | import("mongoose").Types.ObjectId;
|
|
1192
1191
|
user: string | import("mongoose").Types.ObjectId;
|
|
1192
|
+
shop: string | import("mongoose").Types.ObjectId;
|
|
1193
1193
|
amountBeforeCoupon: number;
|
|
1194
1194
|
secondaryAmountBeforeCoupon: number;
|
|
1195
1195
|
coupon?: string | undefined;
|
|
@@ -1199,6 +1199,7 @@ export declare const ValidateCouponSchema: z.ZodObject<{
|
|
|
1199
1199
|
*/
|
|
1200
1200
|
export declare const CouponValidationOutputSchema: z.ZodObject<{
|
|
1201
1201
|
isValid: z.ZodDefault<z.ZodBoolean>;
|
|
1202
|
+
message: z.ZodOptional<z.ZodString> | z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
1202
1203
|
amountAfterCoupon: z.ZodOptional<z.ZodNumber>;
|
|
1203
1204
|
secondaryAmountAfterCoupon: z.ZodOptional<z.ZodNumber>;
|
|
1204
1205
|
discountAmount: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1221,6 +1222,7 @@ export declare const CouponValidationOutputSchema: z.ZodObject<{
|
|
|
1221
1222
|
}>>;
|
|
1222
1223
|
}, "strip", z.ZodTypeAny, {
|
|
1223
1224
|
isValid: boolean;
|
|
1225
|
+
message?: string | undefined;
|
|
1224
1226
|
amountAfterCoupon?: number | undefined;
|
|
1225
1227
|
secondaryAmountAfterCoupon?: number | undefined;
|
|
1226
1228
|
discountAmount?: number | undefined;
|
|
@@ -1232,6 +1234,7 @@ export declare const CouponValidationOutputSchema: z.ZodObject<{
|
|
|
1232
1234
|
secondaryShopCut?: number | undefined;
|
|
1233
1235
|
} | undefined;
|
|
1234
1236
|
}, {
|
|
1237
|
+
message?: string | undefined;
|
|
1235
1238
|
isValid?: boolean | undefined;
|
|
1236
1239
|
amountAfterCoupon?: number | undefined;
|
|
1237
1240
|
secondaryAmountAfterCoupon?: number | undefined;
|
|
@@ -1261,6 +1264,13 @@ export declare const UpdateCouponStatusSchema: z.ZodObject<{
|
|
|
1261
1264
|
_id: string | import("mongoose").Types.ObjectId;
|
|
1262
1265
|
status?: Status | undefined;
|
|
1263
1266
|
}>;
|
|
1267
|
+
export declare const CheckExistingNewUserCouponOutputSchema: z.ZodObject<{
|
|
1268
|
+
exists: z.ZodDefault<z.ZodBoolean>;
|
|
1269
|
+
}, "strip", z.ZodTypeAny, {
|
|
1270
|
+
exists: boolean;
|
|
1271
|
+
}, {
|
|
1272
|
+
exists?: boolean | undefined;
|
|
1273
|
+
}>;
|
|
1264
1274
|
export declare const CouponValidationResponseSchema: z.ZodObject<{
|
|
1265
1275
|
success: z.ZodBoolean;
|
|
1266
1276
|
message: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
@@ -1282,6 +1292,7 @@ export declare const CouponValidationResponseSchema: z.ZodObject<{
|
|
|
1282
1292
|
totalPages: number;
|
|
1283
1293
|
}>>;
|
|
1284
1294
|
documents: z.ZodArray<z.ZodType<{
|
|
1295
|
+
message?: string | undefined;
|
|
1285
1296
|
isValid?: boolean | undefined;
|
|
1286
1297
|
amountAfterCoupon?: number | undefined;
|
|
1287
1298
|
secondaryAmountAfterCoupon?: number | undefined;
|
|
@@ -1294,6 +1305,7 @@ export declare const CouponValidationResponseSchema: z.ZodObject<{
|
|
|
1294
1305
|
secondaryShopCut?: number | undefined;
|
|
1295
1306
|
} | undefined;
|
|
1296
1307
|
}, z.ZodTypeDef, {
|
|
1308
|
+
message?: string | undefined;
|
|
1297
1309
|
isValid?: boolean | undefined;
|
|
1298
1310
|
amountAfterCoupon?: number | undefined;
|
|
1299
1311
|
secondaryAmountAfterCoupon?: number | undefined;
|
|
@@ -1308,6 +1320,7 @@ export declare const CouponValidationResponseSchema: z.ZodObject<{
|
|
|
1308
1320
|
}>, "many">;
|
|
1309
1321
|
}, "strip", z.ZodTypeAny, {
|
|
1310
1322
|
documents: {
|
|
1323
|
+
message?: string | undefined;
|
|
1311
1324
|
isValid?: boolean | undefined;
|
|
1312
1325
|
amountAfterCoupon?: number | undefined;
|
|
1313
1326
|
secondaryAmountAfterCoupon?: number | undefined;
|
|
@@ -1328,6 +1341,7 @@ export declare const CouponValidationResponseSchema: z.ZodObject<{
|
|
|
1328
1341
|
} | undefined;
|
|
1329
1342
|
}, {
|
|
1330
1343
|
documents: {
|
|
1344
|
+
message?: string | undefined;
|
|
1331
1345
|
isValid?: boolean | undefined;
|
|
1332
1346
|
amountAfterCoupon?: number | undefined;
|
|
1333
1347
|
secondaryAmountAfterCoupon?: number | undefined;
|
|
@@ -1347,6 +1361,7 @@ export declare const CouponValidationResponseSchema: z.ZodObject<{
|
|
|
1347
1361
|
totalPages: number;
|
|
1348
1362
|
} | undefined;
|
|
1349
1363
|
}>, z.ZodType<{
|
|
1364
|
+
message?: string | undefined;
|
|
1350
1365
|
isValid?: boolean | undefined;
|
|
1351
1366
|
amountAfterCoupon?: number | undefined;
|
|
1352
1367
|
secondaryAmountAfterCoupon?: number | undefined;
|
|
@@ -1359,6 +1374,7 @@ export declare const CouponValidationResponseSchema: z.ZodObject<{
|
|
|
1359
1374
|
secondaryShopCut?: number | undefined;
|
|
1360
1375
|
} | undefined;
|
|
1361
1376
|
}, z.ZodTypeDef, {
|
|
1377
|
+
message?: string | undefined;
|
|
1362
1378
|
isValid?: boolean | undefined;
|
|
1363
1379
|
amountAfterCoupon?: number | undefined;
|
|
1364
1380
|
secondaryAmountAfterCoupon?: number | undefined;
|
|
@@ -1375,6 +1391,7 @@ export declare const CouponValidationResponseSchema: z.ZodObject<{
|
|
|
1375
1391
|
message: string;
|
|
1376
1392
|
success: boolean;
|
|
1377
1393
|
data?: {
|
|
1394
|
+
message?: string | undefined;
|
|
1378
1395
|
isValid?: boolean | undefined;
|
|
1379
1396
|
amountAfterCoupon?: number | undefined;
|
|
1380
1397
|
secondaryAmountAfterCoupon?: number | undefined;
|
|
@@ -1388,6 +1405,7 @@ export declare const CouponValidationResponseSchema: z.ZodObject<{
|
|
|
1388
1405
|
} | undefined;
|
|
1389
1406
|
} | {
|
|
1390
1407
|
documents: {
|
|
1408
|
+
message?: string | undefined;
|
|
1391
1409
|
isValid?: boolean | undefined;
|
|
1392
1410
|
amountAfterCoupon?: number | undefined;
|
|
1393
1411
|
secondaryAmountAfterCoupon?: number | undefined;
|
|
@@ -1411,6 +1429,7 @@ export declare const CouponValidationResponseSchema: z.ZodObject<{
|
|
|
1411
1429
|
message: string;
|
|
1412
1430
|
success: boolean;
|
|
1413
1431
|
data?: {
|
|
1432
|
+
message?: string | undefined;
|
|
1414
1433
|
isValid?: boolean | undefined;
|
|
1415
1434
|
amountAfterCoupon?: number | undefined;
|
|
1416
1435
|
secondaryAmountAfterCoupon?: number | undefined;
|
|
@@ -1424,6 +1443,7 @@ export declare const CouponValidationResponseSchema: z.ZodObject<{
|
|
|
1424
1443
|
} | undefined;
|
|
1425
1444
|
} | {
|
|
1426
1445
|
documents: {
|
|
1446
|
+
message?: string | undefined;
|
|
1427
1447
|
isValid?: boolean | undefined;
|
|
1428
1448
|
amountAfterCoupon?: number | undefined;
|
|
1429
1449
|
secondaryAmountAfterCoupon?: number | undefined;
|
|
@@ -1455,4 +1475,5 @@ export type ValidateCouponDTO = DTO<typeof ValidateCouponSchema>;
|
|
|
1455
1475
|
export type CouponValidationOutputDTO = DTO<typeof CouponValidationOutputSchema>;
|
|
1456
1476
|
export type GetUserCouponsResponseDTO = DTO<typeof GetUserCouponsResponseSchema>;
|
|
1457
1477
|
export type UpdateCouponStatusDTO = DTO<typeof UpdateCouponStatusSchema>;
|
|
1478
|
+
export type CheckExistingNewUserCouponOutputDTO = DTO<typeof CheckExistingNewUserCouponOutputSchema>;
|
|
1458
1479
|
//# sourceMappingURL=coupon.validation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coupon.validation.d.ts","sourceRoot":"/","sources":["modules/coupon/validations/coupon.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGN,GAAG,EACH,MAAM,2DAA2D,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAc,MAAM,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAO1G;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;
|
|
1
|
+
{"version":3,"file":"coupon.validation.d.ts","sourceRoot":"/","sources":["modules/coupon/validations/coupon.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAGN,GAAG,EACH,MAAM,2DAA2D,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAc,MAAM,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAO1G;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;CAmBxB,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCtB,CAAC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mBAAmB,CAAC,CAAC;AAC/D,MAAM,MAAM,iBAAiB,GAAG,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC;AACjE,MAAM,MAAM,yBAAyB,GAAG,GAAG,CAAC,OAAO,4BAA4B,CAAC,CAAC;AACjF,MAAM,MAAM,yBAAyB,GAAG,GAAG,CAAC,OAAO,4BAA4B,CAAC,CAAC;AACjF,MAAM,MAAM,qBAAqB,GAAG,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC;AACzE,MAAM,MAAM,mCAAmC,GAAG,GAAG,CAAC,OAAO,sCAAsC,CAAC,CAAC"}
|
|
@@ -54,18 +54,18 @@ declare const CustomCouponValidationSchema: z.ZodObject<{
|
|
|
54
54
|
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>]>>;
|
|
55
55
|
isExpired: z.ZodOptional<z.ZodBoolean>;
|
|
56
56
|
}, "strict", z.ZodTypeAny, {
|
|
57
|
-
value: number;
|
|
58
57
|
code: string;
|
|
58
|
+
value: number;
|
|
59
59
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
60
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
61
|
+
maxDiscountLimit: number | null;
|
|
62
|
+
isMaxDiscountLimitEnabled: boolean;
|
|
60
63
|
duration: {
|
|
61
64
|
start: Date;
|
|
62
65
|
end?: Date | undefined;
|
|
63
66
|
};
|
|
64
|
-
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
65
67
|
spendLimit: number | null;
|
|
66
68
|
isSpendLimitEnabled: boolean;
|
|
67
|
-
maxDiscountLimit: number | null;
|
|
68
|
-
isMaxDiscountLimitEnabled: boolean;
|
|
69
69
|
totalOrderLimit: number | null;
|
|
70
70
|
isTotalOrderLimitEnabled: boolean;
|
|
71
71
|
minOrderValue: number | null;
|
|
@@ -87,22 +87,22 @@ declare const CustomCouponValidationSchema: z.ZodObject<{
|
|
|
87
87
|
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
88
88
|
isExpired?: boolean | undefined;
|
|
89
89
|
}, {
|
|
90
|
-
value: number;
|
|
91
90
|
code: string;
|
|
91
|
+
value: number;
|
|
92
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
92
93
|
duration: {
|
|
93
94
|
start: string | Date;
|
|
94
95
|
end?: string | Date | undefined;
|
|
95
96
|
};
|
|
96
|
-
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
97
97
|
couponType: CouponType.CUSTOM_COUPON;
|
|
98
98
|
influencer: string | import("mongoose").Types.ObjectId;
|
|
99
99
|
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
100
|
-
spendLimit?: number | null | undefined;
|
|
101
|
-
isSpendLimitEnabled?: boolean | undefined;
|
|
102
100
|
secondaryCurrencyValue?: number | undefined;
|
|
103
101
|
maxDiscountLimit?: number | null | undefined;
|
|
104
102
|
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
105
103
|
isMaxDiscountLimitEnabled?: boolean | undefined;
|
|
104
|
+
spendLimit?: number | null | undefined;
|
|
105
|
+
isSpendLimitEnabled?: boolean | undefined;
|
|
106
106
|
totalOrderLimit?: number | null | undefined;
|
|
107
107
|
isTotalOrderLimitEnabled?: boolean | undefined;
|
|
108
108
|
minOrderValue?: number | null | undefined;
|
|
@@ -51,18 +51,18 @@ declare const GlobalCouponValidationSchema: z.ZodObject<{
|
|
|
51
51
|
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>]>>;
|
|
52
52
|
isExpired: z.ZodOptional<z.ZodBoolean>;
|
|
53
53
|
}, "strict", z.ZodTypeAny, {
|
|
54
|
-
value: number;
|
|
55
54
|
code: string;
|
|
55
|
+
value: number;
|
|
56
56
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
57
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
58
|
+
maxDiscountLimit: number | null;
|
|
59
|
+
isMaxDiscountLimitEnabled: boolean;
|
|
57
60
|
duration: {
|
|
58
61
|
start: Date;
|
|
59
62
|
end?: Date | undefined;
|
|
60
63
|
};
|
|
61
|
-
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
62
64
|
spendLimit: number | null;
|
|
63
65
|
isSpendLimitEnabled: boolean;
|
|
64
|
-
maxDiscountLimit: number | null;
|
|
65
|
-
isMaxDiscountLimitEnabled: boolean;
|
|
66
66
|
totalOrderLimit: number | null;
|
|
67
67
|
isTotalOrderLimitEnabled: boolean;
|
|
68
68
|
minOrderValue: number | null;
|
|
@@ -81,21 +81,21 @@ declare const GlobalCouponValidationSchema: z.ZodObject<{
|
|
|
81
81
|
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
82
82
|
isExpired?: boolean | undefined;
|
|
83
83
|
}, {
|
|
84
|
-
value: number;
|
|
85
84
|
code: string;
|
|
85
|
+
value: number;
|
|
86
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
86
87
|
duration: {
|
|
87
88
|
start: string | Date;
|
|
88
89
|
end?: string | Date | undefined;
|
|
89
90
|
};
|
|
90
|
-
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
91
91
|
couponType: CouponType.GLOBAL;
|
|
92
92
|
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
93
|
-
spendLimit?: number | null | undefined;
|
|
94
|
-
isSpendLimitEnabled?: boolean | undefined;
|
|
95
93
|
secondaryCurrencyValue?: number | undefined;
|
|
96
94
|
maxDiscountLimit?: number | null | undefined;
|
|
97
95
|
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
98
96
|
isMaxDiscountLimitEnabled?: boolean | undefined;
|
|
97
|
+
spendLimit?: number | null | undefined;
|
|
98
|
+
isSpendLimitEnabled?: boolean | undefined;
|
|
99
99
|
totalOrderLimit?: number | null | undefined;
|
|
100
100
|
isTotalOrderLimitEnabled?: boolean | undefined;
|
|
101
101
|
minOrderValue?: number | null | undefined;
|
|
@@ -54,19 +54,18 @@ declare const IndividualStoreCouponValidationSchema: z.ZodObject<{
|
|
|
54
54
|
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>]>>;
|
|
55
55
|
isExpired: z.ZodOptional<z.ZodBoolean>;
|
|
56
56
|
}, "strict", z.ZodTypeAny, {
|
|
57
|
-
shop: import("mongoose").Types.ObjectId;
|
|
58
|
-
value: number;
|
|
59
57
|
code: string;
|
|
58
|
+
value: number;
|
|
60
59
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
60
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
61
|
+
maxDiscountLimit: number | null;
|
|
62
|
+
isMaxDiscountLimitEnabled: boolean;
|
|
61
63
|
duration: {
|
|
62
64
|
start: Date;
|
|
63
65
|
end?: Date | undefined;
|
|
64
66
|
};
|
|
65
|
-
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
66
67
|
spendLimit: number | null;
|
|
67
68
|
isSpendLimitEnabled: boolean;
|
|
68
|
-
maxDiscountLimit: number | null;
|
|
69
|
-
isMaxDiscountLimitEnabled: boolean;
|
|
70
69
|
totalOrderLimit: number | null;
|
|
71
70
|
isTotalOrderLimitEnabled: boolean;
|
|
72
71
|
minOrderValue: number | null;
|
|
@@ -75,6 +74,7 @@ declare const IndividualStoreCouponValidationSchema: z.ZodObject<{
|
|
|
75
74
|
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
76
75
|
orderLimitPerUser: number | null;
|
|
77
76
|
isOrderLimitPerUserEnabled: boolean;
|
|
77
|
+
shop: import("mongoose").Types.ObjectId;
|
|
78
78
|
couponType: CouponType.INDIVIDUAL_STORE;
|
|
79
79
|
isShopCoverExpenses: boolean;
|
|
80
80
|
firstOrderOnly: boolean;
|
|
@@ -87,22 +87,22 @@ declare const IndividualStoreCouponValidationSchema: z.ZodObject<{
|
|
|
87
87
|
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
88
88
|
isExpired?: boolean | undefined;
|
|
89
89
|
}, {
|
|
90
|
-
shop: string | import("mongoose").Types.ObjectId;
|
|
91
|
-
value: number;
|
|
92
90
|
code: string;
|
|
91
|
+
value: number;
|
|
92
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
93
93
|
duration: {
|
|
94
94
|
start: string | Date;
|
|
95
95
|
end?: string | Date | undefined;
|
|
96
96
|
};
|
|
97
|
-
|
|
97
|
+
shop: string | import("mongoose").Types.ObjectId;
|
|
98
98
|
couponType: CouponType.INDIVIDUAL_STORE;
|
|
99
99
|
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
100
|
-
spendLimit?: number | null | undefined;
|
|
101
|
-
isSpendLimitEnabled?: boolean | undefined;
|
|
102
100
|
secondaryCurrencyValue?: number | undefined;
|
|
103
101
|
maxDiscountLimit?: number | null | undefined;
|
|
104
102
|
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
105
103
|
isMaxDiscountLimitEnabled?: boolean | undefined;
|
|
104
|
+
spendLimit?: number | null | undefined;
|
|
105
|
+
isSpendLimitEnabled?: boolean | undefined;
|
|
106
106
|
totalOrderLimit?: number | null | undefined;
|
|
107
107
|
isTotalOrderLimitEnabled?: boolean | undefined;
|
|
108
108
|
minOrderValue?: number | null | undefined;
|
|
@@ -54,18 +54,18 @@ declare const IndividualUserCouponValidationSchema: z.ZodObject<{
|
|
|
54
54
|
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>]>>;
|
|
55
55
|
isExpired: z.ZodOptional<z.ZodBoolean>;
|
|
56
56
|
}, "strict", z.ZodTypeAny, {
|
|
57
|
-
value: number;
|
|
58
57
|
code: string;
|
|
58
|
+
value: number;
|
|
59
59
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
60
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
61
|
+
maxDiscountLimit: number | null;
|
|
62
|
+
isMaxDiscountLimitEnabled: boolean;
|
|
60
63
|
duration: {
|
|
61
64
|
start: Date;
|
|
62
65
|
end?: Date | undefined;
|
|
63
66
|
};
|
|
64
|
-
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
65
67
|
spendLimit: number | null;
|
|
66
68
|
isSpendLimitEnabled: boolean;
|
|
67
|
-
maxDiscountLimit: number | null;
|
|
68
|
-
isMaxDiscountLimitEnabled: boolean;
|
|
69
69
|
totalOrderLimit: number | null;
|
|
70
70
|
isTotalOrderLimitEnabled: boolean;
|
|
71
71
|
minOrderValue: number | null;
|
|
@@ -87,22 +87,22 @@ declare const IndividualUserCouponValidationSchema: z.ZodObject<{
|
|
|
87
87
|
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
88
88
|
isExpired?: boolean | undefined;
|
|
89
89
|
}, {
|
|
90
|
-
value: number;
|
|
91
90
|
code: string;
|
|
91
|
+
value: number;
|
|
92
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
92
93
|
duration: {
|
|
93
94
|
start: string | Date;
|
|
94
95
|
end?: string | Date | undefined;
|
|
95
96
|
};
|
|
96
|
-
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
97
97
|
couponType: CouponType.INDIVIDUAL_USER;
|
|
98
98
|
users: [string | import("mongoose").Types.ObjectId, ...(string | import("mongoose").Types.ObjectId)[]];
|
|
99
99
|
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
100
|
-
spendLimit?: number | null | undefined;
|
|
101
|
-
isSpendLimitEnabled?: boolean | undefined;
|
|
102
100
|
secondaryCurrencyValue?: number | undefined;
|
|
103
101
|
maxDiscountLimit?: number | null | undefined;
|
|
104
102
|
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
105
103
|
isMaxDiscountLimitEnabled?: boolean | undefined;
|
|
104
|
+
spendLimit?: number | null | undefined;
|
|
105
|
+
isSpendLimitEnabled?: boolean | undefined;
|
|
106
106
|
totalOrderLimit?: number | null | undefined;
|
|
107
107
|
isTotalOrderLimitEnabled?: boolean | undefined;
|
|
108
108
|
minOrderValue?: number | null | undefined;
|
|
@@ -54,19 +54,18 @@ declare const ReferralRewardCouponValidationSchema: z.ZodObject<{
|
|
|
54
54
|
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>]>>;
|
|
55
55
|
isExpired: z.ZodOptional<z.ZodBoolean>;
|
|
56
56
|
}, "strict", z.ZodTypeAny, {
|
|
57
|
-
value: number;
|
|
58
57
|
code: string;
|
|
58
|
+
value: number;
|
|
59
59
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
60
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
61
|
+
maxDiscountLimit: number | null;
|
|
62
|
+
isMaxDiscountLimitEnabled: boolean;
|
|
60
63
|
duration: {
|
|
61
64
|
start: Date;
|
|
62
65
|
end?: Date | undefined;
|
|
63
66
|
};
|
|
64
|
-
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
65
67
|
spendLimit: number | null;
|
|
66
68
|
isSpendLimitEnabled: boolean;
|
|
67
|
-
user: import("mongoose").Types.ObjectId;
|
|
68
|
-
maxDiscountLimit: number | null;
|
|
69
|
-
isMaxDiscountLimitEnabled: boolean;
|
|
70
69
|
totalOrderLimit: number | null;
|
|
71
70
|
isTotalOrderLimitEnabled: boolean;
|
|
72
71
|
minOrderValue: number | null;
|
|
@@ -75,6 +74,7 @@ declare const ReferralRewardCouponValidationSchema: z.ZodObject<{
|
|
|
75
74
|
expirationReason: import("@lyxa.ai/core/dist/utilities/enum").CouponExpirationReason | null;
|
|
76
75
|
orderLimitPerUser: number | null;
|
|
77
76
|
isOrderLimitPerUserEnabled: boolean;
|
|
77
|
+
user: import("mongoose").Types.ObjectId;
|
|
78
78
|
couponType: CouponType.REFERRAL_REWARD;
|
|
79
79
|
referralCodeUsedBy: import("mongoose").Types.ObjectId;
|
|
80
80
|
referralCodeUsedOnOrder: import("mongoose").Types.ObjectId;
|
|
@@ -87,24 +87,24 @@ declare const ReferralRewardCouponValidationSchema: z.ZodObject<{
|
|
|
87
87
|
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
88
88
|
isExpired?: boolean | undefined;
|
|
89
89
|
}, {
|
|
90
|
-
value: number;
|
|
91
90
|
code: string;
|
|
91
|
+
value: number;
|
|
92
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
92
93
|
duration: {
|
|
93
94
|
start: string | Date;
|
|
94
95
|
end?: string | Date | undefined;
|
|
95
96
|
};
|
|
96
|
-
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
97
97
|
user: string | import("mongoose").Types.ObjectId;
|
|
98
98
|
couponType: CouponType.REFERRAL_REWARD;
|
|
99
99
|
referralCodeUsedBy: string | import("mongoose").Types.ObjectId;
|
|
100
100
|
referralCodeUsedOnOrder: string | import("mongoose").Types.ObjectId;
|
|
101
101
|
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
102
|
-
spendLimit?: number | null | undefined;
|
|
103
|
-
isSpendLimitEnabled?: boolean | undefined;
|
|
104
102
|
secondaryCurrencyValue?: number | undefined;
|
|
105
103
|
maxDiscountLimit?: number | null | undefined;
|
|
106
104
|
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
107
105
|
isMaxDiscountLimitEnabled?: boolean | undefined;
|
|
106
|
+
spendLimit?: number | null | undefined;
|
|
107
|
+
isSpendLimitEnabled?: boolean | undefined;
|
|
108
108
|
totalOrderLimit?: number | null | undefined;
|
|
109
109
|
isTotalOrderLimitEnabled?: boolean | undefined;
|
|
110
110
|
minOrderValue?: number | null | undefined;
|
|
@@ -55,18 +55,18 @@ declare const ShopsCategoriesCouponValidationSchema: z.ZodObject<{
|
|
|
55
55
|
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>]>>;
|
|
56
56
|
isExpired: z.ZodOptional<z.ZodBoolean>;
|
|
57
57
|
}, "strict", z.ZodTypeAny, {
|
|
58
|
-
value: number;
|
|
59
58
|
code: string;
|
|
59
|
+
value: number;
|
|
60
60
|
status: import("@lyxa.ai/core/dist/utilities/enum").Status;
|
|
61
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
62
|
+
maxDiscountLimit: number | null;
|
|
63
|
+
isMaxDiscountLimitEnabled: boolean;
|
|
61
64
|
duration: {
|
|
62
65
|
start: Date;
|
|
63
66
|
end?: Date | undefined;
|
|
64
67
|
};
|
|
65
|
-
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
66
68
|
spendLimit: number | null;
|
|
67
69
|
isSpendLimitEnabled: boolean;
|
|
68
|
-
maxDiscountLimit: number | null;
|
|
69
|
-
isMaxDiscountLimitEnabled: boolean;
|
|
70
70
|
totalOrderLimit: number | null;
|
|
71
71
|
isTotalOrderLimitEnabled: boolean;
|
|
72
72
|
minOrderValue: number | null;
|
|
@@ -89,21 +89,21 @@ declare const ShopsCategoriesCouponValidationSchema: z.ZodObject<{
|
|
|
89
89
|
createdBy?: import("mongoose").Types.ObjectId | undefined;
|
|
90
90
|
isExpired?: boolean | undefined;
|
|
91
91
|
}, {
|
|
92
|
-
value: number;
|
|
93
92
|
code: string;
|
|
93
|
+
value: number;
|
|
94
|
+
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
94
95
|
duration: {
|
|
95
96
|
start: string | Date;
|
|
96
97
|
end?: string | Date | undefined;
|
|
97
98
|
};
|
|
98
|
-
valueType: import("@lyxa.ai/core/dist/utilities/enum").ValueType;
|
|
99
99
|
couponType: CouponType.SHOPS_CATEGORIES;
|
|
100
100
|
status?: import("@lyxa.ai/core/dist/utilities/enum").Status | undefined;
|
|
101
|
-
spendLimit?: number | null | undefined;
|
|
102
|
-
isSpendLimitEnabled?: boolean | undefined;
|
|
103
101
|
secondaryCurrencyValue?: number | undefined;
|
|
104
102
|
maxDiscountLimit?: number | null | undefined;
|
|
105
103
|
secondaryCurrencyMaxDiscountLimit?: number | undefined;
|
|
106
104
|
isMaxDiscountLimitEnabled?: boolean | undefined;
|
|
105
|
+
spendLimit?: number | null | undefined;
|
|
106
|
+
isSpendLimitEnabled?: boolean | undefined;
|
|
107
107
|
totalOrderLimit?: number | null | undefined;
|
|
108
108
|
isTotalOrderLimitEnabled?: boolean | undefined;
|
|
109
109
|
minOrderValue?: number | null | undefined;
|
|
@@ -12,8 +12,8 @@ declare const DealSettingValidationSchema: z.ZodObject<{
|
|
|
12
12
|
isFreeDelivery: z.ZodDefault<z.ZodBoolean>;
|
|
13
13
|
isPunchMarketing: z.ZodDefault<z.ZodBoolean>;
|
|
14
14
|
}, "strict", z.ZodTypeAny, {
|
|
15
|
-
isBuy1Get1: boolean;
|
|
16
15
|
itemType: ItemType;
|
|
16
|
+
isBuy1Get1: boolean;
|
|
17
17
|
percentageBundles: number[];
|
|
18
18
|
isDiscount: boolean;
|
|
19
19
|
isFreeDelivery: boolean;
|
|
@@ -90,5 +90,26 @@ export declare const marketingRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
90
90
|
};
|
|
91
91
|
meta: object;
|
|
92
92
|
}>;
|
|
93
|
+
syncAllProductsMarketingInfo: import("@trpc/server").TRPCQueryProcedure<{
|
|
94
|
+
input: void;
|
|
95
|
+
output: string;
|
|
96
|
+
meta: object;
|
|
97
|
+
}>;
|
|
98
|
+
syncProductMarketingInfoByProductId: import("@trpc/server").TRPCQueryProcedure<{
|
|
99
|
+
input: void;
|
|
100
|
+
output: string;
|
|
101
|
+
meta: object;
|
|
102
|
+
}>;
|
|
103
|
+
evaluateMarketingSpendLimits: import("@trpc/server").TRPCMutationProcedure<{
|
|
104
|
+
input: {
|
|
105
|
+
marketings: (string | mongoose.Types.ObjectId)[];
|
|
106
|
+
};
|
|
107
|
+
output: {
|
|
108
|
+
success: boolean;
|
|
109
|
+
message: string;
|
|
110
|
+
data: unknown;
|
|
111
|
+
};
|
|
112
|
+
meta: object;
|
|
113
|
+
}>;
|
|
93
114
|
}>>;
|
|
94
115
|
//# sourceMappingURL=marketing.router.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"marketing.router.d.ts","sourceRoot":"/","sources":["modules/marketing/routers/marketing.router.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"marketing.router.d.ts","sourceRoot":"/","sources":["modules/marketing/routers/marketing.router.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAYD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoE1B,CAAC"}
|
|
@@ -16,7 +16,8 @@ export declare class Buy1Get1MarketingService {
|
|
|
16
16
|
* @param data Data to update
|
|
17
17
|
*/
|
|
18
18
|
update(_id: mongoose.Types.ObjectId, data: UpdateDTO): Promise<DocumentType<Model>>;
|
|
19
|
-
|
|
19
|
+
private createSingleProductMarketing;
|
|
20
|
+
private createProductMarketings;
|
|
20
21
|
}
|
|
21
22
|
export declare const buy1Get1MarketingService: Buy1Get1MarketingService;
|
|
22
23
|
//# sourceMappingURL=buy1-get1-marketing.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buy1-get1-marketing.service.d.ts","sourceRoot":"/","sources":["modules/marketing/services/buy1-get1-marketing.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAEN,iBAAiB,IAAI,KAAK,EAE1B,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACN,0BAA0B,IAAI,SAAS,EACvC,0BAA0B,IAAI,SAAS,EACvC,MAAM,gCAAgC,CAAC;AAIxC,qBACa,wBAAwB;IACpC,OAAO,CAAC,KAAK,CAAgC;IAC7C,OAAO,CAAC,YAAY,CAAsB;;IAO1C;;;OAGG;IACU,MAAM,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"buy1-get1-marketing.service.d.ts","sourceRoot":"/","sources":["modules/marketing/services/buy1-get1-marketing.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAEN,iBAAiB,IAAI,KAAK,EAE1B,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACN,0BAA0B,IAAI,SAAS,EACvC,0BAA0B,IAAI,SAAS,EACvC,MAAM,gCAAgC,CAAC;AAIxC,qBACa,wBAAwB;IACpC,OAAO,CAAC,KAAK,CAAgC;IAC7C,OAAO,CAAC,YAAY,CAAsB;;IAO1C;;;OAGG;IACU,MAAM,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAkBlE;;;;OAIG;IACU,MAAM,CAAC,GAAG,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;YA6ClF,4BAA4B;YAW5B,uBAAuB;CAoCrC;AAED,eAAO,MAAM,wBAAwB,0BAA0C,CAAC"}
|
|
@@ -17,7 +17,8 @@ export declare class DiscountMarketingService {
|
|
|
17
17
|
* @param data Data to update
|
|
18
18
|
*/
|
|
19
19
|
update(_id: mongoose.Types.ObjectId, data: UpdateDTO): Promise<DocumentType<Model>>;
|
|
20
|
-
|
|
20
|
+
createSingleProductMarketing(marketingId: mongoose.Types.ObjectId, productId: mongoose.Types.ObjectId, value: number, valueType: ValueType): Promise<void>;
|
|
21
|
+
private createProductMarketings;
|
|
21
22
|
}
|
|
22
23
|
export declare const discountMarketingService: DiscountMarketingService;
|
|
23
24
|
//# sourceMappingURL=discount-marketing.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discount-marketing.service.d.ts","sourceRoot":"/","sources":["modules/marketing/services/discount-marketing.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAEN,iBAAiB,IAAI,KAAK,EAE1B,MAAM,2CAA2C,CAAC;AACnD,OAAO,EACN,0BAA0B,IAAI,SAAS,EACvC,0BAA0B,IAAI,SAAS,EACvC,MAAM,gCAAgC,CAAC;AAExC,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"discount-marketing.service.d.ts","sourceRoot":"/","sources":["modules/marketing/services/discount-marketing.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAEN,iBAAiB,IAAI,KAAK,EAE1B,MAAM,2CAA2C,CAAC;AACnD,OAAO,EACN,0BAA0B,IAAI,SAAS,EACvC,0BAA0B,IAAI,SAAS,EACvC,MAAM,gCAAgC,CAAC;AAExC,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAO9D,qBACa,wBAAwB;IACpC,OAAO,CAAC,KAAK,CAAgC;IAC7C,OAAO,CAAC,YAAY,CAAsB;;IAO1C;;;OAGG;IACU,MAAM,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAkBlE;;;;OAIG;IACU,MAAM,CAAC,GAAG,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAiDnF,4BAA4B,CACxC,WAAW,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EACpC,SAAS,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAClC,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,SAAS,GAClB,OAAO,CAAC,IAAI,CAAC;YASF,uBAAuB;CAkErC;AAED,eAAO,MAAM,wBAAwB,0BAA0C,CAAC"}
|