@lyxa.ai/marketing 1.0.40 → 1.0.41
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 +9 -0
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/modules/coupon/routers/coupon.router.d.ts +4 -0
- package/dist/lib/modules/coupon/routers/coupon.router.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/coupon.service.js +13 -25
- package/dist/lib/modules/coupon/services/coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/custom-coupon.service.d.ts +28 -2
- package/dist/lib/modules/coupon/services/custom-coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/custom-coupon.service.js +13 -33
- package/dist/lib/modules/coupon/services/custom-coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/helper.service.d.ts +30 -2
- package/dist/lib/modules/coupon/services/helper.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/helper.service.js +112 -4
- package/dist/lib/modules/coupon/services/helper.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/individual-store-coupon.service.d.ts +29 -3
- 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 +10 -62
- package/dist/lib/modules/coupon/services/individual-store-coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.js +9 -6
- 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 +9 -0
- 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 +96 -29
- package/dist/lib/modules/coupon/services/referral-code-coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/shops-categories-coupon.service.d.ts +29 -3
- 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 +10 -63
- package/dist/lib/modules/coupon/services/shops-categories-coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/validations/coupon.validation.d.ts +13 -0
- package/dist/lib/modules/coupon/validations/coupon.validation.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/coupon.validation.js +3 -2
- package/dist/lib/modules/coupon/validations/coupon.validation.js.map +1 -1
- package/dist/lib/modules/deal-setting/services/deal-setting.service.d.ts.map +1 -1
- package/dist/lib/modules/deal-setting/services/deal-setting.service.js +4 -4
- package/dist/lib/modules/deal-setting/services/deal-setting.service.js.map +1 -1
- package/dist/lib/modules/marketing/patterns/repository/MarketingMetricsRepository.d.ts.map +1 -1
- package/dist/lib/modules/marketing/patterns/repository/MarketingMetricsRepository.js.map +1 -1
- package/dist/lib/modules/marketing/routers/marketing.router.d.ts +5 -0
- package/dist/lib/modules/marketing/routers/marketing.router.d.ts.map +1 -1
- package/dist/lib/modules/marketing/routers/marketing.router.js +3 -0
- package/dist/lib/modules/marketing/routers/marketing.router.js.map +1 -1
- package/dist/lib/modules/marketing/services/synchronize-product-marketing.service.d.ts.map +1 -1
- package/dist/lib/modules/marketing/services/synchronize-product-marketing.service.js +28 -7
- package/dist/lib/modules/marketing/services/synchronize-product-marketing.service.js.map +1 -1
- package/dist/lib/modules/marketing/validations/buy1-get1-marketing.validation.d.ts +12 -12
- package/dist/lib/modules/marketing/validations/discount-marketing.validation.d.ts +12 -12
- package/dist/types/index.d.ts +9 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/modules/coupon/routers/coupon.router.d.ts +4 -0
- package/dist/types/modules/coupon/routers/coupon.router.d.ts.map +1 -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 +28 -2
- package/dist/types/modules/coupon/services/custom-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/helper.service.d.ts +30 -2
- 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 +29 -3
- package/dist/types/modules/coupon/services/individual-store-coupon.service.d.ts.map +1 -1
- 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 +57 -0
- package/dist/types/modules/coupon/services/referral-code-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/shops-categories-coupon.service.d.ts +29 -3
- package/dist/types/modules/coupon/services/shops-categories-coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/coupon.validation.d.ts +13 -0
- package/dist/types/modules/coupon/validations/coupon.validation.d.ts.map +1 -1
- package/dist/types/modules/deal-setting/services/deal-setting.service.d.ts.map +1 -1
- package/dist/types/modules/marketing/patterns/repository/MarketingMetricsRepository.d.ts.map +1 -1
- package/dist/types/modules/marketing/routers/marketing.router.d.ts +5 -0
- package/dist/types/modules/marketing/routers/marketing.router.d.ts.map +1 -1
- package/dist/types/modules/marketing/services/synchronize-product-marketing.service.d.ts.map +1 -1
- package/dist/types/modules/marketing/validations/buy1-get1-marketing.validation.d.ts +12 -12
- package/dist/types/modules/marketing/validations/discount-marketing.validation.d.ts +12 -12
- package/package.json +2 -2
package/dist/lib/index.d.ts
CHANGED
|
@@ -666,6 +666,11 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
666
666
|
output: string;
|
|
667
667
|
meta: object;
|
|
668
668
|
}>;
|
|
669
|
+
syncAllProductsMarketingInfoLocal: import("@trpc/server").TRPCMutationProcedure<{
|
|
670
|
+
input: void;
|
|
671
|
+
output: any;
|
|
672
|
+
meta: object;
|
|
673
|
+
}>;
|
|
669
674
|
syncProductMarketingInfoByProductId: import("@trpc/server").TRPCQueryProcedure<{
|
|
670
675
|
input: void;
|
|
671
676
|
output: string;
|
|
@@ -6011,6 +6016,7 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
6011
6016
|
shopCut?: number | undefined;
|
|
6012
6017
|
secondaryShopCut?: number | undefined;
|
|
6013
6018
|
} | undefined;
|
|
6019
|
+
couponDetails?: Record<string, unknown> | undefined;
|
|
6014
6020
|
} | {
|
|
6015
6021
|
documents: {
|
|
6016
6022
|
message?: string | undefined;
|
|
@@ -6025,6 +6031,7 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
6025
6031
|
shopCut?: number | undefined;
|
|
6026
6032
|
secondaryShopCut?: number | undefined;
|
|
6027
6033
|
} | undefined;
|
|
6034
|
+
couponDetails?: Record<string, unknown> | undefined;
|
|
6028
6035
|
}[];
|
|
6029
6036
|
metadata?: {
|
|
6030
6037
|
page: number;
|
|
@@ -6061,6 +6068,7 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
6061
6068
|
shopCut?: number | undefined;
|
|
6062
6069
|
secondaryShopCut?: number | undefined;
|
|
6063
6070
|
} | undefined;
|
|
6071
|
+
couponDetails?: Record<string, unknown> | undefined;
|
|
6064
6072
|
} | {
|
|
6065
6073
|
documents: {
|
|
6066
6074
|
message?: string | undefined;
|
|
@@ -6075,6 +6083,7 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
6075
6083
|
shopCut?: number | undefined;
|
|
6076
6084
|
secondaryShopCut?: number | undefined;
|
|
6077
6085
|
} | undefined;
|
|
6086
|
+
couponDetails?: Record<string, unknown> | undefined;
|
|
6078
6087
|
}[];
|
|
6079
6088
|
metadata?: {
|
|
6080
6089
|
page: number;
|
package/dist/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["index.ts"],"names":[],"mappings":"AAkBA,QAAA,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAR/B,CAAC;AAoCH,MAAM,MAAM,2BAA2B,GAAG,OAAO,2BAA2B,CAAC"}
|
|
@@ -5223,6 +5223,7 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5223
5223
|
shopCut?: number | undefined;
|
|
5224
5224
|
secondaryShopCut?: number | undefined;
|
|
5225
5225
|
} | undefined;
|
|
5226
|
+
couponDetails?: Record<string, unknown> | undefined;
|
|
5226
5227
|
} | {
|
|
5227
5228
|
documents: {
|
|
5228
5229
|
message?: string | undefined;
|
|
@@ -5237,6 +5238,7 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5237
5238
|
shopCut?: number | undefined;
|
|
5238
5239
|
secondaryShopCut?: number | undefined;
|
|
5239
5240
|
} | undefined;
|
|
5241
|
+
couponDetails?: Record<string, unknown> | undefined;
|
|
5240
5242
|
}[];
|
|
5241
5243
|
metadata?: {
|
|
5242
5244
|
page: number;
|
|
@@ -5273,6 +5275,7 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5273
5275
|
shopCut?: number | undefined;
|
|
5274
5276
|
secondaryShopCut?: number | undefined;
|
|
5275
5277
|
} | undefined;
|
|
5278
|
+
couponDetails?: Record<string, unknown> | undefined;
|
|
5276
5279
|
} | {
|
|
5277
5280
|
documents: {
|
|
5278
5281
|
message?: string | undefined;
|
|
@@ -5287,6 +5290,7 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5287
5290
|
shopCut?: number | undefined;
|
|
5288
5291
|
secondaryShopCut?: number | undefined;
|
|
5289
5292
|
} | undefined;
|
|
5293
|
+
couponDetails?: Record<string, unknown> | undefined;
|
|
5290
5294
|
}[];
|
|
5291
5295
|
metadata?: {
|
|
5292
5296
|
page: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coupon.router.d.ts","sourceRoot":"/","sources":["modules/coupon/routers/coupon.router.ts"],"names":[],"mappings":"AAiCA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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B,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ;IAsC3D,sBAAsB,IAAI,OAAO,CAAC,YAAY,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC;IAqBlE,2CAA2C,IAAI,OAAO,CAAC,YAAY,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC;IAgGvF,0BAA0B,IAAI,OAAO,CAAC,mCAAmC,CAAC;YAUzE,YAAY;IAQb,mBAAmB,CAC/B,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAAG,IAAI,GACpC,OAAO,CAAC,YAAY,CAAC,YAAY,CAAC,EAAE,CAAC;YAkD1B,wBAAwB;IAczB,wBAAwB,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,IAAI,EAAE,GAAG,GAAG,OAAO,CAAC,MAAM,CAAC;CAsBlG;AAED,eAAO,MAAM,aAAa,eAA+B,CAAC"}
|
|
@@ -484,6 +484,9 @@ let CouponService = class CouponService {
|
|
|
484
484
|
if (!coupon) {
|
|
485
485
|
(0, error_common_1.notFoundError)('Coupon not found');
|
|
486
486
|
}
|
|
487
|
+
this.userModel.findByIdAndUpdate(user._id, {
|
|
488
|
+
$addToSet: { coupons: coupon._id },
|
|
489
|
+
});
|
|
487
490
|
}
|
|
488
491
|
if (coupon.couponType == enum_1.CouponType.REFERRAL_CODE) {
|
|
489
492
|
return await _1.referralCodeCouponService.validateCoupon(data, coupon);
|
|
@@ -548,7 +551,7 @@ let CouponService = class CouponService {
|
|
|
548
551
|
const orderLimitPerUser = coupon.orderLimitPerUser;
|
|
549
552
|
if (forNewUserOnly) {
|
|
550
553
|
if (isOrderLimitPerUserEnabled && orderLimitPerUser) {
|
|
551
|
-
const orderCount = await helper_service_1.couponHelperService.
|
|
554
|
+
const orderCount = await helper_service_1.couponHelperService.getSameDeviceOrdersWithCoupon(user, coupon);
|
|
552
555
|
return orderLimitPerUser > orderCount;
|
|
553
556
|
}
|
|
554
557
|
return await helper_service_1.couponHelperService.isNewUser(user);
|
|
@@ -976,17 +979,14 @@ let CouponService = class CouponService {
|
|
|
976
979
|
couponType: enum_1.CouponType.GLOBAL,
|
|
977
980
|
forNewUserOnly: true,
|
|
978
981
|
deletedAt: null,
|
|
979
|
-
$or: [
|
|
980
|
-
{ expirationReason: { $exists: false } },
|
|
981
|
-
{ expirationReason: null },
|
|
982
|
-
],
|
|
982
|
+
$or: [{ expirationReason: { $exists: false } }, { expirationReason: null }],
|
|
983
983
|
'duration.end': { $gte: currentDate },
|
|
984
984
|
updatedVersion: { $exists: false },
|
|
985
985
|
},
|
|
986
986
|
},
|
|
987
987
|
{
|
|
988
988
|
$addFields: {
|
|
989
|
-
|
|
989
|
+
secondaryCurrencyValue: {
|
|
990
990
|
$cond: [
|
|
991
991
|
{
|
|
992
992
|
$eq: ['$valueType', enum_1.ValueType.PERCENTAGE],
|
|
@@ -997,10 +997,7 @@ let CouponService = class CouponService {
|
|
|
997
997
|
branches: [
|
|
998
998
|
{
|
|
999
999
|
case: {
|
|
1000
|
-
$eq: [
|
|
1001
|
-
'$couponType',
|
|
1002
|
-
enum_1.CouponType.REFERRAL_CODE,
|
|
1003
|
-
],
|
|
1000
|
+
$eq: ['$couponType', enum_1.CouponType.REFERRAL_CODE],
|
|
1004
1001
|
},
|
|
1005
1002
|
then: secondaryReferralReceiverValue,
|
|
1006
1003
|
},
|
|
@@ -1012,15 +1009,12 @@ let CouponService = class CouponService {
|
|
|
1012
1009
|
},
|
|
1013
1010
|
],
|
|
1014
1011
|
},
|
|
1015
|
-
|
|
1012
|
+
secondaryCurrencyMaxDiscountLimit: {
|
|
1016
1013
|
$switch: {
|
|
1017
1014
|
branches: [
|
|
1018
1015
|
{
|
|
1019
1016
|
case: {
|
|
1020
|
-
$eq: [
|
|
1021
|
-
'$couponType',
|
|
1022
|
-
enum_1.CouponType.REFERRAL_CODE,
|
|
1023
|
-
],
|
|
1017
|
+
$eq: ['$couponType', enum_1.CouponType.REFERRAL_CODE],
|
|
1024
1018
|
},
|
|
1025
1019
|
then: null,
|
|
1026
1020
|
},
|
|
@@ -1030,15 +1024,12 @@ let CouponService = class CouponService {
|
|
|
1030
1024
|
}),
|
|
1031
1025
|
},
|
|
1032
1026
|
},
|
|
1033
|
-
|
|
1027
|
+
secondaryCurrencyMinOrderValue: {
|
|
1034
1028
|
$switch: {
|
|
1035
1029
|
branches: [
|
|
1036
1030
|
{
|
|
1037
1031
|
case: {
|
|
1038
|
-
$eq: [
|
|
1039
|
-
'$couponType',
|
|
1040
|
-
enum_1.CouponType.REFERRAL_CODE,
|
|
1041
|
-
],
|
|
1032
|
+
$eq: ['$couponType', enum_1.CouponType.REFERRAL_CODE],
|
|
1042
1033
|
},
|
|
1043
1034
|
then: secondaryReferralReceiverMinOrderAmount,
|
|
1044
1035
|
},
|
|
@@ -1048,7 +1039,7 @@ let CouponService = class CouponService {
|
|
|
1048
1039
|
}),
|
|
1049
1040
|
},
|
|
1050
1041
|
},
|
|
1051
|
-
}
|
|
1042
|
+
},
|
|
1052
1043
|
},
|
|
1053
1044
|
{ $limit: 1 },
|
|
1054
1045
|
]);
|
|
@@ -1103,10 +1094,7 @@ let CouponService = class CouponService {
|
|
|
1103
1094
|
}
|
|
1104
1095
|
async updateCouponGiftBoxShown(userId, data) {
|
|
1105
1096
|
const user = await this.userModel.findById(userId);
|
|
1106
|
-
const users = await this.userModel
|
|
1107
|
-
.find({ deviceId: user?.deviceId })
|
|
1108
|
-
.select('_id')
|
|
1109
|
-
.lean();
|
|
1097
|
+
const users = await this.userModel.find({ deviceId: user?.deviceId }).select('_id').lean();
|
|
1110
1098
|
const userIds = users.map(u => u._id);
|
|
1111
1099
|
const result = await this.userModel.updateMany({ _id: { $in: userIds } }, {
|
|
1112
1100
|
$set: {
|