@lyxa.ai/marketing 1.0.56 → 1.0.58
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-listeners/event-listeners.d.ts.map +1 -1
- package/dist/lib/event/event-listeners/event-listeners.js +19 -2
- package/dist/lib/event/event-listeners/event-listeners.js.map +1 -1
- package/dist/lib/index.d.ts +29 -0
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/index.js +4 -0
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/modules/coupon/queues/coupon-notification.queue.d.ts +8 -0
- package/dist/lib/modules/coupon/queues/coupon-notification.queue.d.ts.map +1 -0
- package/dist/lib/modules/coupon/queues/coupon-notification.queue.js +54 -0
- package/dist/lib/modules/coupon/queues/coupon-notification.queue.js.map +1 -0
- package/dist/lib/modules/coupon/queues/coupon-notification.worker.d.ts +8 -0
- package/dist/lib/modules/coupon/queues/coupon-notification.worker.d.ts.map +1 -0
- package/dist/lib/modules/coupon/queues/coupon-notification.worker.js +83 -0
- package/dist/lib/modules/coupon/queues/coupon-notification.worker.js.map +1 -0
- package/dist/lib/modules/coupon/routers/coupon.router.d.ts +29 -0
- package/dist/lib/modules/coupon/routers/coupon.router.d.ts.map +1 -1
- package/dist/lib/modules/coupon/routers/coupon.router.js +6 -0
- package/dist/lib/modules/coupon/routers/coupon.router.js.map +1 -1
- package/dist/lib/modules/coupon/services/coupon.service.d.ts +11 -2
- package/dist/lib/modules/coupon/services/coupon.service.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/coupon.service.js +20 -3
- package/dist/lib/modules/coupon/services/coupon.service.js.map +1 -1
- package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.d.ts +11 -2
- package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.d.ts.map +1 -1
- package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.js +234 -47
- package/dist/lib/modules/coupon/services/patterns/repository/CouponRepository.js.map +1 -1
- package/dist/lib/modules/coupon/validations/coupon.validation.d.ts +117 -0
- package/dist/lib/modules/coupon/validations/coupon.validation.d.ts.map +1 -1
- package/dist/lib/modules/coupon/validations/coupon.validation.js +33 -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 +1 -4
- package/dist/lib/modules/coupon/validations/create-coupon.validation.js.map +1 -1
- package/dist/lib/modules/limited-time-offer/config/limited-time-offer-config.validation.d.ts +2 -2
- package/dist/lib/modules/marketing/queues/marketing-product-sync.queue.d.ts +7 -0
- package/dist/lib/modules/marketing/queues/marketing-product-sync.queue.d.ts.map +1 -0
- package/dist/lib/modules/marketing/queues/marketing-product-sync.queue.js +62 -0
- package/dist/lib/modules/marketing/queues/marketing-product-sync.queue.js.map +1 -0
- package/dist/lib/modules/marketing/queues/marketing-product-sync.worker.d.ts +7 -0
- package/dist/lib/modules/marketing/queues/marketing-product-sync.worker.d.ts.map +1 -0
- package/dist/lib/modules/marketing/queues/marketing-product-sync.worker.js +94 -0
- package/dist/lib/modules/marketing/queues/marketing-product-sync.worker.js.map +1 -0
- package/dist/lib/modules/marketing/services/marketing.service.d.ts +2 -1
- package/dist/lib/modules/marketing/services/marketing.service.d.ts.map +1 -1
- package/dist/lib/modules/marketing/services/marketing.service.js +37 -29
- package/dist/lib/modules/marketing/services/marketing.service.js.map +1 -1
- package/dist/types/event/event-listeners/event-listeners.d.ts.map +1 -1
- package/dist/types/index.d.ts +29 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/modules/coupon/queues/coupon-notification.queue.d.ts +8 -0
- package/dist/types/modules/coupon/queues/coupon-notification.queue.d.ts.map +1 -0
- package/dist/types/modules/coupon/queues/coupon-notification.worker.d.ts +8 -0
- package/dist/types/modules/coupon/queues/coupon-notification.worker.d.ts.map +1 -0
- package/dist/types/modules/coupon/routers/coupon.router.d.ts +29 -0
- package/dist/types/modules/coupon/routers/coupon.router.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/coupon.service.d.ts +11 -2
- package/dist/types/modules/coupon/services/coupon.service.d.ts.map +1 -1
- package/dist/types/modules/coupon/services/patterns/repository/CouponRepository.d.ts +11 -2
- package/dist/types/modules/coupon/services/patterns/repository/CouponRepository.d.ts.map +1 -1
- package/dist/types/modules/coupon/validations/coupon.validation.d.ts +117 -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/limited-time-offer/config/limited-time-offer-config.validation.d.ts +2 -2
- package/dist/types/modules/marketing/queues/marketing-product-sync.queue.d.ts +7 -0
- package/dist/types/modules/marketing/queues/marketing-product-sync.queue.d.ts.map +1 -0
- package/dist/types/modules/marketing/queues/marketing-product-sync.worker.d.ts +7 -0
- package/dist/types/modules/marketing/queues/marketing-product-sync.worker.d.ts.map +1 -0
- package/dist/types/modules/marketing/services/marketing.service.d.ts +2 -1
- package/dist/types/modules/marketing/services/marketing.service.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.d.ts +0 -1
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.d.ts.map +0 -1
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.js +0 -2
- package/dist/lib/modules/limited-time-offer/participant/limited-time-offer-participant.service.js.map +0 -1
- package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.service.d.ts +0 -1
- package/dist/types/modules/limited-time-offer/participant/limited-time-offer-participant.service.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event-listeners.d.ts","sourceRoot":"/","sources":["event/event-listeners/event-listeners.ts"],"names":[],"mappings":"AAaA,wBAAsB,0DAA0D,kBAI/E;
|
|
1
|
+
{"version":3,"file":"event-listeners.d.ts","sourceRoot":"/","sources":["event/event-listeners/event-listeners.ts"],"names":[],"mappings":"AAaA,wBAAsB,0DAA0D,kBAI/E;AAgBD,wBAAsB,uCAAuC,kBA4D5D;AAED,wBAAsB,0CAA0C,kBAI/D"}
|
|
@@ -17,10 +17,27 @@ async function subscribeToSyncAllProductsProductMarketingInfoProcessEvent() {
|
|
|
17
17
|
services_1.synchronizeProductMarketingService.processAllProductsProductMarketingInfoEvent(payload);
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
|
+
const noRequeue = (label, handler) => async (payload) => {
|
|
21
|
+
try {
|
|
22
|
+
await handler(payload);
|
|
23
|
+
}
|
|
24
|
+
catch (err) {
|
|
25
|
+
(0, core_1.getLibraries)().getLoggerKit().error(`${label}: handler failed — dropping (no requeue)`, err, {
|
|
26
|
+
tag: 'event.no-requeue',
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
};
|
|
20
30
|
async function subscribeToMarketingEntireMenuSeedEvent() {
|
|
21
|
-
await (0, event_1.subscribeToEvent)(marketing_product_seed_event_1.MARKETING_ENTIRE_MENU_SEED_EVENT, async (payload) => {
|
|
31
|
+
await (0, event_1.subscribeToEvent)(marketing_product_seed_event_1.MARKETING_ENTIRE_MENU_SEED_EVENT, noRequeue('entire-menu-seed', async (payload) => {
|
|
22
32
|
const logger = (0, core_1.getLibraries)().getLoggerKit();
|
|
23
33
|
const { marketingId: mid, shopId: sid, page, pageSize } = payload;
|
|
34
|
+
if (!typegoose_1.mongoose.isValidObjectId(mid) || !typegoose_1.mongoose.isValidObjectId(sid)) {
|
|
35
|
+
logger.error('entire-menu seed: invalid ids — dropping message', null, {
|
|
36
|
+
tag: 'marketing.seed.entire-menu',
|
|
37
|
+
data: { marketingId: mid, shopId: sid, page, pageSize },
|
|
38
|
+
});
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
24
41
|
const marketingId = new typegoose_1.mongoose.Types.ObjectId(mid);
|
|
25
42
|
const shopId = new typegoose_1.mongoose.Types.ObjectId(sid);
|
|
26
43
|
const MAX_ATTEMPTS = 3;
|
|
@@ -61,7 +78,7 @@ async function subscribeToMarketingEntireMenuSeedEvent() {
|
|
|
61
78
|
tag: 'marketing.seed.entire-menu',
|
|
62
79
|
data: { marketingId: mid, shopId: sid, page, pageSize },
|
|
63
80
|
});
|
|
64
|
-
});
|
|
81
|
+
}));
|
|
65
82
|
}
|
|
66
83
|
async function subscribeToMarketingReturnPunchCouponEvent() {
|
|
67
84
|
await (0, event_1.subscribeToEvent)(EventEnums_1.PublishEventEnums.MARKETING_RETURN_PUNCH_COUPON_EVENT, async (payload) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event-listeners.js","sourceRoot":"/","sources":["event/event-listeners/event-listeners.ts"],"names":[],"mappings":";;AAaA,gIAIC;
|
|
1
|
+
{"version":3,"file":"event-listeners.js","sourceRoot":"/","sources":["event/event-listeners/event-listeners.ts"],"names":[],"mappings":";;AAaA,gIAIC;AAgBD,0FA4DC;AAED,gGAIC;AAnGD,8DAAsE;AACtE,wCAA6C;AAC7C,0DAA0G;AAC1G,8EAAkF;AAClF,oDAAgD;AAChD,6JAAsI;AACtI,8FAAsH;AACtH,yFAGgD;AAChD,wEAAyF;AAElF,KAAK,UAAU,0DAA0D;IAC/E,MAAM,IAAA,wBAAgB,EAAC,8BAAiB,CAAC,8CAA8C,EAAE,KAAK,EAAC,OAAO,EAAC,EAAE;QACxG,6CAAkC,CAAC,2CAA2C,CAAC,OAAO,CAAC,CAAC;IACzF,CAAC,CAAC,CAAC;AACJ,CAAC;AAID,MAAM,SAAS,GACd,CAAI,KAAa,EAAE,OAAsC,EAAE,EAAE,CAC7D,KAAK,EAAE,OAAU,EAAiB,EAAE;IACnC,IAAI,CAAC;QACJ,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;IACxB,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACd,IAAA,mBAAY,GAAE,CAAC,YAAY,EAAE,CAAC,KAAK,CAAC,GAAG,KAAK,0CAA0C,EAAE,GAA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AAiB,CAAC,mCAAmC,EAAE,KAAK,EAAC,OAAO,EAAC,EAAE;QAC7F,uCAA4B,CAAC,iBAAiB,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IACjE,CAAC,CAAC,CAAC;AACJ,CAAC","sourcesContent":["import { subscribeToEvent } from '@lyxa.ai/core/dist/libraries/event';\nimport { getLibraries } from '@lyxa.ai/core';\nimport { productMarketingService, synchronizeProductMarketingService } from '@modules/marketing/services';\nimport { PublishEventEnums } from '@lyxa.ai/core/dist/libraries/event/EventEnums';\nimport { mongoose } from '@typegoose/typegoose';\nimport { ChangeStreamOperationTypes } from '@lyxa.ai/core/dist/libraries/event/events/mongo-stream-changes-batch-process-shops-event';\nimport { publishSyncSingleShopSectionsInCacheProcessEvent } from '@lyxa.ai/core/dist/utilities/events-common-methods';\nimport {\n\tMARKETING_ENTIRE_MENU_SEED_EVENT,\n\tMarketingProductSeedPayload,\n} from '../events/marketing-product-seed.event';\nimport { punchMarketingHistoryService } from '@modules/punch-marketing-history/services';\n\nexport async function subscribeToSyncAllProductsProductMarketingInfoProcessEvent() {\n\tawait subscribeToEvent(PublishEventEnums.SYNC_ALL_PRODUCTS_PRODUCT_MARKETING_INFO_EVENT, async payload => {\n\t\tsynchronizeProductMarketingService.processAllProductsProductMarketingInfoEvent(payload);\n\t});\n}\n\n// subscribeToEvent nacks with requeue=true on a thrown handler, so a failing message\n// bounces back to the queue forever. Swallow throws here -> handler returns -> message acked.\nconst noRequeue =\n\t<T>(label: string, handler: (payload: T) => Promise<void>) =>\n\tasync (payload: T): Promise<void> => {\n\t\ttry {\n\t\t\tawait handler(payload);\n\t\t} catch (err) {\n\t\t\tgetLibraries().getLoggerKit().error(`${label}: handler failed — dropping (no requeue)`, err, {\n\t\t\t\ttag: 'event.no-requeue',\n\t\t\t});\n\t\t}\n\t};\n\nexport async function subscribeToMarketingEntireMenuSeedEvent() {\n\tawait subscribeToEvent(MARKETING_ENTIRE_MENU_SEED_EVENT, noRequeue('entire-menu-seed', async (payload: MarketingProductSeedPayload) => {\n\t\tconst logger = getLibraries().getLoggerKit();\n\t\tconst { marketingId: mid, shopId: sid, page, pageSize } = payload;\n\n\t\tif (!mongoose.isValidObjectId(mid) || !mongoose.isValidObjectId(sid)) {\n\t\t\tlogger.error('entire-menu seed: invalid ids — dropping message', null, {\n\t\t\t\ttag: 'marketing.seed.entire-menu',\n\t\t\t\tdata: { marketingId: mid, shopId: sid, page, pageSize },\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\n\t\tconst marketingId = new mongoose.Types.ObjectId(mid);\n\t\tconst shopId = new mongoose.Types.ObjectId(sid);\n\n\t\tconst MAX_ATTEMPTS = 3;\n\t\tlet lastError: unknown;\n\n\t\tfor (let attempt = 1; attempt <= MAX_ATTEMPTS; attempt++) {\n\t\t\ttry {\n\t\t\t\tconst productIds = await productMarketingService.upsertProductMarketingsForPage({\n\t\t\t\t\tshop: shopId,\n\t\t\t\t\tmarketingId,\n\t\t\t\t\tpage,\n\t\t\t\t\tpageSize,\n\t\t\t\t\tisAppliedByCompany: payload.isAppliedByCompany,\n\t\t\t\t\tisBuy1Get1: payload.isBuy1Get1,\n\t\t\t\t\tvalue: payload.value,\n\t\t\t\t\tvalueType: payload.valueType,\n\t\t\t\t});\n\n\t\t\t\tif (productIds.length) {\n\t\t\t\t\tawait synchronizeProductMarketingService.syncProductMarketingInfoByProductIds(productIds);\n\t\t\t\t}\n\n\t\t\t\tpublishSyncSingleShopSectionsInCacheProcessEvent({\n\t\t\t\t\tshopId,\n\t\t\t\t\toperation: ChangeStreamOperationTypes.UPDATE,\n\t\t\t\t});\n\n\t\t\t\tlogger.debug(`page ${page} seeded — ${productIds.length} products updated`, {\n\t\t\t\t\ttag: 'marketing.seed.entire-menu',\n\t\t\t\t\tdata: { marketingId: mid, shopId: sid, page, count: productIds.length },\n\t\t\t\t});\n\n\t\t\t\treturn;\n\t\t\t} catch (error) {\n\t\t\t\tlastError = error;\n\t\t\t\tif (attempt < MAX_ATTEMPTS) {\n\t\t\t\t\tawait new Promise(resolve => setTimeout(resolve, 2000 * attempt));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tlogger.error(`page ${page} seed failed after ${MAX_ATTEMPTS} attempts — manual reseed required`, lastError, {\n\t\t\ttag: 'marketing.seed.entire-menu',\n\t\t\tdata: { marketingId: mid, shopId: sid, page, pageSize },\n\t\t});\n\t}));\n}\n\nexport async function subscribeToMarketingReturnPunchCouponEvent() {\n\tawait subscribeToEvent(PublishEventEnums.MARKETING_RETURN_PUNCH_COUPON_EVENT, async payload => {\n\t\tpunchMarketingHistoryService.returnPunchCoupon(payload.orderId);\n\t});\n}\n"]}
|
package/dist/lib/index.d.ts
CHANGED
|
@@ -7760,6 +7760,8 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
7760
7760
|
sort?: Record<string, 1 | -1> | undefined;
|
|
7761
7761
|
page?: number | undefined;
|
|
7762
7762
|
size?: number | undefined;
|
|
7763
|
+
startDate?: Date | undefined;
|
|
7764
|
+
endDate?: Date | undefined;
|
|
7763
7765
|
search?: string | undefined;
|
|
7764
7766
|
zone?: string | undefined;
|
|
7765
7767
|
};
|
|
@@ -8400,6 +8402,33 @@ declare const marketingMicroServiceRouter: import("@trpc/server").TRPCBuiltRoute
|
|
|
8400
8402
|
};
|
|
8401
8403
|
meta: object;
|
|
8402
8404
|
}>;
|
|
8405
|
+
getSingleCouponOrders: import("@trpc/server").TRPCQueryProcedure<{
|
|
8406
|
+
input: {
|
|
8407
|
+
couponId: string;
|
|
8408
|
+
sort?: Record<string, 1 | -1> | undefined;
|
|
8409
|
+
page?: number | undefined;
|
|
8410
|
+
size?: number | undefined;
|
|
8411
|
+
startDate?: Date | undefined;
|
|
8412
|
+
endDate?: Date | undefined;
|
|
8413
|
+
search?: string | undefined;
|
|
8414
|
+
zone?: string | undefined;
|
|
8415
|
+
userId?: string | undefined;
|
|
8416
|
+
};
|
|
8417
|
+
output: {
|
|
8418
|
+
success: boolean;
|
|
8419
|
+
message: string;
|
|
8420
|
+
data: {
|
|
8421
|
+
metadata: {
|
|
8422
|
+
page: number;
|
|
8423
|
+
size: number;
|
|
8424
|
+
totalElements: any;
|
|
8425
|
+
totalPages: number;
|
|
8426
|
+
};
|
|
8427
|
+
documents: any;
|
|
8428
|
+
} | undefined;
|
|
8429
|
+
};
|
|
8430
|
+
meta: object;
|
|
8431
|
+
}>;
|
|
8403
8432
|
}>>;
|
|
8404
8433
|
punchMarketingHistoryRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
8405
8434
|
ctx: import("@lyxa.ai/core/dist/libraries/trpc/context").LyxaHTTPContext;
|
package/dist/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["index.ts"],"names":[],"mappings":"AAoBA,QAAA,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAY2C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAId,CAAC;AAyCH,MAAM,MAAM,2BAA2B,GAAG,OAAO,2BAA2B,CAAC"}
|
package/dist/lib/index.js
CHANGED
|
@@ -15,6 +15,8 @@ const cors_1 = require("@lyxa.ai/core/dist/libraries/trpc/middlewares/cors");
|
|
|
15
15
|
const routers_5 = require("./modules/punch-marketing-history/routers");
|
|
16
16
|
const limited_time_offer_router_1 = require("./modules/limited-time-offer/limited-time-offer.router");
|
|
17
17
|
const trpc_1 = require("@lyxa.ai/core/dist/libraries/trpc");
|
|
18
|
+
const coupon_notification_worker_1 = require("./modules/coupon/queues/coupon-notification.worker");
|
|
19
|
+
const marketing_product_sync_worker_1 = require("./modules/marketing/queues/marketing-product-sync.worker");
|
|
18
20
|
const marketingMicroServiceRouter = (0, trpc_1.createTRPCRouter)({
|
|
19
21
|
dealSettingRouter: routers_2.dealSettingRouter,
|
|
20
22
|
featuredSettingRouter: routers_4.featuredSettingRouter,
|
|
@@ -42,6 +44,8 @@ const startServer = async () => {
|
|
|
42
44
|
middleware: (0, cors_1.corsMiddleware)(),
|
|
43
45
|
});
|
|
44
46
|
await (0, event_initializations_1.initEventListeners)();
|
|
47
|
+
await coupon_notification_worker_1.couponWorkerService.startWorker();
|
|
48
|
+
await marketing_product_sync_worker_1.marketingProductSyncWorkerService.startWorker();
|
|
45
49
|
(0, http_1.createServer)((req, res) => {
|
|
46
50
|
if (req.url === '/health') {
|
|
47
51
|
res.writeHead(200, { 'Content-Type': 'application/json' });
|
package/dist/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"/","sources":["index.ts"],"names":[],"mappings":";;AAEA,+BAAoC;AACpC,qDAAuD;AACvD,2DAAkE;AAClE,yEAAmE;AACnE,+DAA0E;AAC1E,+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C,CAAC,CAAC;AACjB,CAAC,CAAC,CAAC","sourcesContent":["// index entry point for migration tracking\nimport dotenv from 'dotenv';\nimport { createServer } from 'http';\nimport { couponRouter } from '@modules/coupon/routers';\nimport { dealSettingRouter } from '@modules/deal-setting/routers';\nimport { initEventListeners } from './event/event-initializations';\nimport { referralSettingRouter } from '@modules/referral-setting/routers';\nimport { featuredSettingRouter } from '@modules/featured-setting/routers';\nimport { tournamentRouter } from '@modules/tournament/tournament.router';\nimport { bootstrapCore, EnvironmentConfigurationType } from '@lyxa.ai/core';\nimport { createLyxaContext } from '@lyxa.ai/core/dist/libraries/trpc/context';\nimport { marketingRouter } from '@modules/marketing/routers/marketing.router';\nimport { handleTRPCError } from '@lyxa.ai/core/dist/utilities/error-middleware';\nimport { corsMiddleware } from '@lyxa.ai/core/dist/libraries/trpc/middlewares/cors';\nimport { punchMarketingHistoryRouter } from '@modules/punch-marketing-history/routers';\nimport { limitedTimeOfferRouter } from '@modules/limited-time-offer/limited-time-offer.router';\nimport { createTRPCRouter, createHTTPHandler } from '@lyxa.ai/core/dist/libraries/trpc';\nimport { couponWorkerService } from '@modules/coupon/queues/coupon-notification.worker';\nimport { marketingProductSyncWorkerService } from '@modules/marketing/queues/marketing-product-sync.worker';\n\n// dotenv.config();\n\nconst marketingMicroServiceRouter = createTRPCRouter({\n\tdealSettingRouter,\n\tfeaturedSettingRouter,\n\tmarketingRouter,\n\tcouponRouter,\n\tpunchMarketingHistoryRouter,\n\treferralSettingRouter,\n\tlimitedTimeOfferRouter,\n\ttournamentRouter,\n});\n\nconst startServer = async () => {\n\tconst environment = (process.env.NODE_ENV || 'DEV') as keyof typeof EnvironmentConfigurationType;\n\tconst tenet = process.env.TENET || 'lb';\n\tconst port = parseInt(process.env.PORT || '3006', 10);\n\n\tawait bootstrapCore({\n\t\tenvironment: EnvironmentConfigurationType[environment] || EnvironmentConfigurationType.PREPROD,\n\t\tinstanceType: 'marketing',\n\t\ttenet,\n\t\tmongooseDebug: false,\n\t});\n\n\tconst handler = createHTTPHandler({\n\t\trouter: marketingMicroServiceRouter,\n\t\tcreateContext: createLyxaContext,\n\t\tonError: handleTRPCError,\n\t\tmiddleware: corsMiddleware(),\n\t});\n\n\tawait initEventListeners();\n\tawait couponWorkerService.startWorker();\n\tawait marketingProductSyncWorkerService.startWorker();\n\n\tcreateServer((req, res) => {\n\t\tif (req.url === '/health') {\n\t\t\tres.writeHead(200, { 'Content-Type': 'application/json' });\n\t\t\tres.end(JSON.stringify({ status: 'ok', timestamp: new Date().toISOString() }));\n\t\t\treturn;\n\t\t}\n\n\t\thandler(req, res);\n\t}).listen(port, () => {\n\t\tconst RED = '\\x1b[31m';\n\t\tconst GREEN = '\\x1b[32m';\n\t\tconst RESET = '\\x1b[0m';\n\t\tconsole.log(`${GREEN}Server started on port ${RED}${port}${GREEN} with health check endpoint${RESET}`);\n\t});\n};\n\nexport type MarketingMicroServiceRouter = typeof marketingMicroServiceRouter;\n\nstartServer().catch(err => {\n\tconsole.error('Failed to start server:', err);\n\tprocess.exit(1);\n});\n"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Queue } from 'bullmq';
|
|
2
|
+
export declare const COUPON_NOTIFICATION_QUEUE_NAME = "coupon-schedule-notifications";
|
|
3
|
+
export declare const COUPON_NOTIFICATION_JOB_NAME = "coupon-schedule-notification";
|
|
4
|
+
export declare function getCouponNotificationQueue(): Queue;
|
|
5
|
+
export declare function scheduleCouponNotification(couponId: string, delayMs: number): Promise<void>;
|
|
6
|
+
export declare function removeScheduleCouponNotification(couponId: string): Promise<void>;
|
|
7
|
+
export declare function rescheduleCouponNotification(oldCouponId: string, newCouponId: string, delayMs: number): Promise<void>;
|
|
8
|
+
//# sourceMappingURL=coupon-notification.queue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coupon-notification.queue.d.ts","sourceRoot":"/","sources":["modules/coupon/queues/coupon-notification.queue.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAE/B,eAAO,MAAM,8BAA8B,kCAAkC,CAAC;AAC9E,eAAO,MAAM,4BAA4B,iCAAiC,CAAC;AAI3E,wBAAgB,0BAA0B,IAAI,KAAK,CAKlD;AAoBD,wBAAsB,0BAA0B,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAQjG;AAED,wBAAsB,gCAAgC,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAOtF;AAED,wBAAsB,4BAA4B,CACjD,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,GACb,OAAO,CAAC,IAAI,CAAC,CASf"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.COUPON_NOTIFICATION_JOB_NAME = exports.COUPON_NOTIFICATION_QUEUE_NAME = void 0;
|
|
4
|
+
exports.getCouponNotificationQueue = getCouponNotificationQueue;
|
|
5
|
+
exports.scheduleCouponNotification = scheduleCouponNotification;
|
|
6
|
+
exports.removeScheduleCouponNotification = removeScheduleCouponNotification;
|
|
7
|
+
exports.rescheduleCouponNotification = rescheduleCouponNotification;
|
|
8
|
+
const core_1 = require("@lyxa.ai/core");
|
|
9
|
+
exports.COUPON_NOTIFICATION_QUEUE_NAME = 'coupon-schedule-notifications';
|
|
10
|
+
exports.COUPON_NOTIFICATION_JOB_NAME = 'coupon-schedule-notification';
|
|
11
|
+
let _queue = null;
|
|
12
|
+
function getCouponNotificationQueue() {
|
|
13
|
+
if (!_queue) {
|
|
14
|
+
_queue = (0, core_1.getLibraries)().getBullMQService().createQueue(exports.COUPON_NOTIFICATION_QUEUE_NAME);
|
|
15
|
+
}
|
|
16
|
+
return _queue;
|
|
17
|
+
}
|
|
18
|
+
function buildJobId(couponId) {
|
|
19
|
+
return `coupon-schedule-notification-${couponId}`;
|
|
20
|
+
}
|
|
21
|
+
async function addToQueue(queue, couponId, delayMs) {
|
|
22
|
+
await queue.add(exports.COUPON_NOTIFICATION_JOB_NAME, { couponId }, {
|
|
23
|
+
delay: delayMs,
|
|
24
|
+
attempts: 3,
|
|
25
|
+
removeOnComplete: true,
|
|
26
|
+
removeOnFail: { age: 86400 },
|
|
27
|
+
jobId: buildJobId(couponId),
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
async function scheduleCouponNotification(couponId, delayMs) {
|
|
31
|
+
const queue = getCouponNotificationQueue();
|
|
32
|
+
const existing = await queue.getJob(buildJobId(couponId));
|
|
33
|
+
if (existing) {
|
|
34
|
+
await existing.remove();
|
|
35
|
+
}
|
|
36
|
+
await addToQueue(queue, couponId, delayMs);
|
|
37
|
+
}
|
|
38
|
+
async function removeScheduleCouponNotification(couponId) {
|
|
39
|
+
const queue = getCouponNotificationQueue();
|
|
40
|
+
const jobId = buildJobId(couponId);
|
|
41
|
+
const existing = await queue.getJob(jobId);
|
|
42
|
+
if (existing) {
|
|
43
|
+
await existing.remove();
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
async function rescheduleCouponNotification(oldCouponId, newCouponId, delayMs) {
|
|
47
|
+
const queue = getCouponNotificationQueue();
|
|
48
|
+
const oldJob = await queue.getJob(buildJobId(oldCouponId));
|
|
49
|
+
if (oldJob) {
|
|
50
|
+
await oldJob.remove();
|
|
51
|
+
}
|
|
52
|
+
await addToQueue(queue, newCouponId, delayMs);
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=coupon-notification.queue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coupon-notification.queue.js","sourceRoot":"/","sources":["modules/coupon/queues/coupon-notification.queue.ts"],"names":[],"mappings":";;;AAQA,gEAKC;AAoBD,gEAQC;AAED,4EAOC;AAED,oEAaC;AAjED,wCAA6C;AAGhC,QAAA,8BAA8B,GAAG,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M,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC3C,IAAI,QAAQ,EAAE,CAAC;QACd,MAAM,QAAQ,CAAC,MAAM,EAAE,CAAC;IACzB,CAAC;AACF,CAAC;AAEM,KAAK,UAAU,4BAA4B,CACjD,WAAmB,EACnB,WAAmB,EACnB,OAAe;IAEf,MAAM,KAAK,GAAG,0BAA0B,EAAE,CAAC;IAE3C,MAAM,MAAM,GAAG,MAAM,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC,CAAC;IAC3D,IAAI,MAAM,EAAE,CAAC;QACZ,MAAM,MAAM,CAAC,MAAM,EAAE,CAAC;IACvB,CAAC;IAED,MAAM,UAAU,CAAC,KAAK,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;AAC/C,CAAC","sourcesContent":["import { getLibraries } from '@lyxa.ai/core';\nimport { Queue } from 'bullmq';\n\nexport const COUPON_NOTIFICATION_QUEUE_NAME = 'coupon-schedule-notifications';\nexport const COUPON_NOTIFICATION_JOB_NAME = 'coupon-schedule-notification';\n\nlet _queue: Queue | null = null;\n\nexport function getCouponNotificationQueue(): Queue {\n\tif (!_queue) {\n\t\t_queue = getLibraries().getBullMQService().createQueue(COUPON_NOTIFICATION_QUEUE_NAME);\n\t}\n\treturn _queue as Queue;\n}\n\nfunction buildJobId(couponId: string): string {\n\treturn `coupon-schedule-notification-${couponId}`;\n}\n\nasync function addToQueue(queue: Queue, couponId: string, delayMs: number): Promise<void> {\n\tawait queue.add(\n\t\tCOUPON_NOTIFICATION_JOB_NAME,\n\t\t{ couponId },\n\t\t{\n\t\t\tdelay: delayMs,\n\t\t\tattempts: 3,\n\t\t\tremoveOnComplete: true,\n\t\t\tremoveOnFail: { age: 86400 },\n\t\t\tjobId: buildJobId(couponId),\n\t\t}\n\t);\n}\n\nexport async function scheduleCouponNotification(couponId: string, delayMs: number): Promise<void> {\n\tconst queue = getCouponNotificationQueue();\n\tconst existing = await queue.getJob(buildJobId(couponId));\n\tif (existing) {\n\t\tawait existing.remove();\n\t}\n\n\tawait addToQueue(queue, couponId, delayMs);\n}\n\nexport async function removeScheduleCouponNotification(couponId: string): Promise<void> {\n\tconst queue = getCouponNotificationQueue();\n\tconst jobId = buildJobId(couponId);\n\tconst existing = await queue.getJob(jobId);\n\tif (existing) {\n\t\tawait existing.remove();\n\t}\n}\n\nexport async function rescheduleCouponNotification(\n\toldCouponId: string,\n\tnewCouponId: string,\n\tdelayMs: number\n): Promise<void> {\n\tconst queue = getCouponNotificationQueue();\n\n\tconst oldJob = await queue.getJob(buildJobId(oldCouponId));\n\tif (oldJob) {\n\t\tawait oldJob.remove();\n\t}\n\n\tawait addToQueue(queue, newCouponId, delayMs);\n}\n"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare class CouponWorkerService {
|
|
2
|
+
private worker;
|
|
3
|
+
private couponModel;
|
|
4
|
+
private couponService;
|
|
5
|
+
startWorker(): Promise<void>;
|
|
6
|
+
}
|
|
7
|
+
export declare const couponWorkerService: CouponWorkerService;
|
|
8
|
+
//# sourceMappingURL=coupon-notification.worker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coupon-notification.worker.d.ts","sourceRoot":"/","sources":["modules/coupon/queues/coupon-notification.worker.ts"],"names":[],"mappings":"AAOA,qBACa,mBAAmB;IAC/B,OAAO,CAAC,MAAM,CAA6C;IAC3D,OAAO,CAAC,WAAW,CAAqC;IACxD,OAAO,CAAC,aAAa,CAAiB;IAEzB,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;CA2BzC;AAED,eAAO,MAAM,mBAAmB,qBAAqC,CAAC"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
19
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
21
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
22
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23
|
+
};
|
|
24
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
25
|
+
var ownKeys = function(o) {
|
|
26
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
27
|
+
var ar = [];
|
|
28
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
29
|
+
return ar;
|
|
30
|
+
};
|
|
31
|
+
return ownKeys(o);
|
|
32
|
+
};
|
|
33
|
+
return function (mod) {
|
|
34
|
+
if (mod && mod.__esModule) return mod;
|
|
35
|
+
var result = {};
|
|
36
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
37
|
+
__setModuleDefault(result, mod);
|
|
38
|
+
return result;
|
|
39
|
+
};
|
|
40
|
+
})();
|
|
41
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
+
exports.couponWorkerService = exports.CouponWorkerService = void 0;
|
|
43
|
+
const typedi_1 = __importStar(require("typedi"));
|
|
44
|
+
const core_1 = require("@lyxa.ai/core");
|
|
45
|
+
const coupon_notification_queue_1 = require("./coupon-notification.queue");
|
|
46
|
+
const models_1 = require("@lyxa.ai/core/dist/libraries/mongo/models");
|
|
47
|
+
const services_1 = require("../services");
|
|
48
|
+
let CouponWorkerService = class CouponWorkerService {
|
|
49
|
+
worker = null;
|
|
50
|
+
couponModel = models_1.CouponModel;
|
|
51
|
+
couponService = services_1.couponService;
|
|
52
|
+
async startWorker() {
|
|
53
|
+
if (this.worker) {
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
const bullmq = (0, core_1.getLibraries)().getBullMQService();
|
|
57
|
+
this.worker = bullmq.createWorker(coupon_notification_queue_1.COUPON_NOTIFICATION_QUEUE_NAME, async (job) => {
|
|
58
|
+
const { couponId } = job.data;
|
|
59
|
+
try {
|
|
60
|
+
const coupon = await this.couponModel.findById(couponId);
|
|
61
|
+
if (coupon) {
|
|
62
|
+
await this.couponService.notifyForCoupon(coupon);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
catch (err) {
|
|
66
|
+
console.error(`Failed to send coupon schedule notification ${couponId}:`, err);
|
|
67
|
+
throw err;
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
this.worker.on('completed', job => {
|
|
71
|
+
console.log(`Coupon notification job completed: ${job.id}`);
|
|
72
|
+
});
|
|
73
|
+
this.worker.on('failed', (job, err) => {
|
|
74
|
+
console.warn(`Coupon notification job failed: ${job?.id}`, err?.message || err);
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
exports.CouponWorkerService = CouponWorkerService;
|
|
79
|
+
exports.CouponWorkerService = CouponWorkerService = __decorate([
|
|
80
|
+
(0, typedi_1.Service)()
|
|
81
|
+
], CouponWorkerService);
|
|
82
|
+
exports.couponWorkerService = typedi_1.default.get(CouponWorkerService);
|
|
83
|
+
//# sourceMappingURL=coupon-notification.worker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coupon-notification.worker.js","sourceRoot":"/","sources":["modules/coupon/queues/coupon-notification.worker.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iDAA4C;AAC5C,wCAA6C;AAE7C,2EAA6E;AAC7E,sEAAwE;AACxE,0CAA4C;AAGrC,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IACvB,MAAM,GAAwC,IAAI,CAAC;IACnD,WAAW,GAAG,oBAAiC,CAAC;IAChD,aAAa,GAAG,wBAAa,CAAC;IAE/B,KAAK,CAAC,WAAW;QACvB,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;YACjB,OAAO;QACR,CAAC;QAED,MAAM,MAAM,GAAG,IAAA,mBAAY,GAAE,CAAC,gBAAgB,EAAE,CAAC;QACjD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,YAAY,CAAC,0DAA8B,EAAE,KAAK,EAAE,GAAQ,EAAE,EAAE;YACpF,MAAM,EAAE,QAAQ,EAAE,GAAG,GAAG,CAAC,IAAI,CAAC;YAC9B,IAAI,CAAC;gBACJ,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;gBACzD,IAAI,MAAM,EAAE,CAAC;oBACZ,MAAM,IAAI,CAAC,aAAa,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;gBAClD,CAAC;YACF,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACd,OAAO,CAAC,KAAK,CAAC,+CAA+C,QAAQ,GAAG,EAAE,GAAG,CAAC,CAAC;gBAC/E,MAAM,GAAG,CAAC;YACX,CAAC;QACF,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,WAAW,EAAE,GAAG,CAAC,EAAE;YACjC,OAAO,CAAC,GAAG,CAAC,sCAAsC,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC;QAC7D,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;YACrC,OAAO,CAAC,IAAI,CAAC,mCAAmC,GAAG,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,OAAO,IAAI,GAAG,CAAC,CAAC;QACjF,CAAC,CAAC,CAAC;IACJ,CAAC;CACD,CAAA;AAhCY,kDAAmB;8BAAnB,mBAAmB;IAD/B,IAAA,gBAAO,GAAE;GACG,mBAAmB,CAgC/B;AAEY,QAAA,mBAAmB,GAAG,gBAAS,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC","sourcesContent":["import Container, { Service } from 'typedi';\nimport { getLibraries } from '@lyxa.ai/core';\nimport { Job, Worker } from 'bullmq';\nimport { COUPON_NOTIFICATION_QUEUE_NAME } from './coupon-notification.queue';\nimport { CouponModel } from '@lyxa.ai/core/dist/libraries/mongo/models';\nimport { couponService } from '../services';\n\n@Service()\nexport class CouponWorkerService {\n\tprivate worker: Worker<{ couponId: string }> | null = null;\n\tprivate couponModel = CouponModel as typeof CouponModel;\n\tprivate couponService = couponService;\n\n\tpublic async startWorker(): Promise<void> {\n\t\tif (this.worker) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst bullmq = getLibraries().getBullMQService();\n\t\tthis.worker = bullmq.createWorker(COUPON_NOTIFICATION_QUEUE_NAME, async (job: Job) => {\n\t\t\tconst { couponId } = job.data;\n\t\t\ttry {\n\t\t\t\tconst coupon = await this.couponModel.findById(couponId);\n\t\t\t\tif (coupon) {\n\t\t\t\t\tawait this.couponService.notifyForCoupon(coupon);\n\t\t\t\t}\n\t\t\t} catch (err) {\n\t\t\t\tconsole.error(`Failed to send coupon schedule notification ${couponId}:`, err);\n\t\t\t\tthrow err;\n\t\t\t}\n\t\t});\n\n\t\tthis.worker.on('completed', job => {\n\t\t\tconsole.log(`Coupon notification job completed: ${job.id}`);\n\t\t});\n\n\t\tthis.worker.on('failed', (job, err) => {\n\t\t\tconsole.warn(`Coupon notification job failed: ${job?.id}`, err?.message || err);\n\t\t});\n\t}\n}\n\nexport const couponWorkerService = Container.get(CouponWorkerService);\n"]}
|
|
@@ -6958,6 +6958,8 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6958
6958
|
sort?: Record<string, 1 | -1> | undefined;
|
|
6959
6959
|
page?: number | undefined;
|
|
6960
6960
|
size?: number | undefined;
|
|
6961
|
+
startDate?: Date | undefined;
|
|
6962
|
+
endDate?: Date | undefined;
|
|
6961
6963
|
search?: string | undefined;
|
|
6962
6964
|
zone?: string | undefined;
|
|
6963
6965
|
};
|
|
@@ -7598,5 +7600,32 @@ export declare const couponRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7598
7600
|
};
|
|
7599
7601
|
meta: object;
|
|
7600
7602
|
}>;
|
|
7603
|
+
getSingleCouponOrders: import("@trpc/server").TRPCQueryProcedure<{
|
|
7604
|
+
input: {
|
|
7605
|
+
couponId: string;
|
|
7606
|
+
sort?: Record<string, 1 | -1> | undefined;
|
|
7607
|
+
page?: number | undefined;
|
|
7608
|
+
size?: number | undefined;
|
|
7609
|
+
startDate?: Date | undefined;
|
|
7610
|
+
endDate?: Date | undefined;
|
|
7611
|
+
search?: string | undefined;
|
|
7612
|
+
zone?: string | undefined;
|
|
7613
|
+
userId?: string | undefined;
|
|
7614
|
+
};
|
|
7615
|
+
output: {
|
|
7616
|
+
success: boolean;
|
|
7617
|
+
message: string;
|
|
7618
|
+
data: {
|
|
7619
|
+
metadata: {
|
|
7620
|
+
page: number;
|
|
7621
|
+
size: number;
|
|
7622
|
+
totalElements: any;
|
|
7623
|
+
totalPages: number;
|
|
7624
|
+
};
|
|
7625
|
+
documents: any;
|
|
7626
|
+
} | undefined;
|
|
7627
|
+
};
|
|
7628
|
+
meta: object;
|
|
7629
|
+
}>;
|
|
7601
7630
|
}>>;
|
|
7602
7631
|
//# sourceMappingURL=coupon.router.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coupon.router.d.ts","sourceRoot":"/","sources":["modules/coupon/routers/coupon.router.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"coupon.router.d.ts","sourceRoot":"/","sources":["modules/coupon/routers/coupon.router.ts"],"names":[],"mappings":"AAuCA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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response_1.response)('Coupon users fetched successfully', result);
|
|
226
226
|
})),
|
|
227
|
+
getSingleCouponOrders: (0, auth_1.createAuthenticatedProcedure)({ entityTypes: [auth_2.AuthEntityType.CRM] })
|
|
228
|
+
.input(validations_1.singleCouponOrdersRequestSchema)
|
|
229
|
+
.query(async ({ input }) => error_handler_1.ErrorHandler.wrapAsync(async () => {
|
|
230
|
+
const result = await services_1.couponService.getSingleCouponOrders(input);
|
|
231
|
+
return (0, response_1.response)('Coupon all user orders fetched successfully', result);
|
|
232
|
+
})),
|
|
227
233
|
});
|
|
228
234
|
//# sourceMappingURL=coupon.router.js.map
|