@yolo-croket-dev/amqp-access 0.5.175 → 0.5.176-hj-1
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/notification-service/dto/notification-bulk-send/command/index.d.ts +1 -0
- package/notification-service/dto/notification-bulk-send/command/index.js +1 -0
- package/notification-service/dto/notification-bulk-send/command/send-daily-random-coupon-open.dto.d.ts +3 -0
- package/notification-service/dto/notification-bulk-send/command/send-daily-random-coupon-open.dto.js +21 -0
- package/notification-service/services/amqp.notification-bulk-send.service.d.ts +2 -0
- package/notification-service/services/amqp.notification-bulk-send.service.js +3 -0
- package/package.json +1 -1
|
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./send-expired-issued-receipt-coupon.dto"), exports);
|
|
18
18
|
__exportStar(require("./send-expired-issued-coupon.dto"), exports);
|
|
19
|
+
__exportStar(require("./send-daily-random-coupon-open.dto"), exports);
|
package/notification-service/dto/notification-bulk-send/command/send-daily-random-coupon-open.dto.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
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;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.SendDailyRandomCouponOpenPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class SendDailyRandomCouponOpenPayload {
|
|
15
|
+
}
|
|
16
|
+
exports.SendDailyRandomCouponOpenPayload = SendDailyRandomCouponOpenPayload;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsArray)(),
|
|
19
|
+
(0, class_validator_1.IsMongoId)({ each: true }),
|
|
20
|
+
__metadata("design:type", Array)
|
|
21
|
+
], SendDailyRandomCouponOpenPayload.prototype, "userIds", void 0);
|
|
@@ -2,10 +2,12 @@ import { ClientProxy } from '@nestjs/microservices';
|
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
3
|
import { SendExpiredIssuedReceiptCouponPayload } from '../dto/notification-bulk-send/command/send-expired-issued-receipt-coupon.dto';
|
|
4
4
|
import { SendExpiredIssuedCouponPayload } from '../dto/notification-bulk-send/command/send-expired-issued-coupon.dto';
|
|
5
|
+
import { SendDailyRandomCouponOpenPayload } from '../dto/notification-bulk-send/command/send-daily-random-coupon-open.dto';
|
|
5
6
|
export declare class AmqpNotificationBulkSendService {
|
|
6
7
|
private readonly client;
|
|
7
8
|
private readonly amqpManager;
|
|
8
9
|
constructor(client: ClientProxy);
|
|
9
10
|
sendExpiredIssuedReceiptCouponOnlyPublish(payload: SendExpiredIssuedReceiptCouponPayload, param: AbstractParam): Promise<boolean>;
|
|
10
11
|
sendExpiredIssuedCouponOnlyPublish(payload: SendExpiredIssuedCouponPayload, param: AbstractParam): Promise<boolean>;
|
|
12
|
+
sendDailyRandomCouponOpen(payload: SendDailyRandomCouponOpenPayload, param: AbstractParam): Promise<boolean>;
|
|
11
13
|
}
|
|
@@ -27,6 +27,9 @@ let AmqpNotificationBulkSendService = class AmqpNotificationBulkSendService {
|
|
|
27
27
|
async sendExpiredIssuedCouponOnlyPublish(payload, param) {
|
|
28
28
|
return this.amqpManager.onlyPublish('만료 발급 쿠폰 알림 대량 보내기', 'notification-bulk-send.send.expired-issued-coupon', payload, param, { isInternal: true });
|
|
29
29
|
}
|
|
30
|
+
async sendDailyRandomCouponOpen(payload, param) {
|
|
31
|
+
return this.amqpManager.onlyPublish('데일리 랜덤 쿠폰 알림 오픈 가능 대량 보내기', 'notification-bulk-send.send.daily-random-coupon-open', payload, param, { isInternal: true });
|
|
32
|
+
}
|
|
30
33
|
};
|
|
31
34
|
exports.AmqpNotificationBulkSendService = AmqpNotificationBulkSendService;
|
|
32
35
|
exports.AmqpNotificationBulkSendService = AmqpNotificationBulkSendService = __decorate([
|