@yolo-croket-dev/amqp-access 0.5.60-jun.7 → 0.5.60-jun.9

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.
@@ -24,6 +24,7 @@ AmqpCouponServerModule = __decorate([
24
24
  services_1.AmqpIssuedReceiptCouponService,
25
25
  services_1.AmqpIssuedReceiptCouponLogService,
26
26
  services_1.AmqpBrandBlackFridayCouponServiceByCouponServer,
27
+ services_1.AmqpIssuedReceiptCouponCronService,
27
28
  ],
28
29
  exports: [
29
30
  amqp_coupon_server_provider_1.CouponServerProvider,
@@ -35,6 +36,7 @@ AmqpCouponServerModule = __decorate([
35
36
  services_1.AmqpIssuedReceiptCouponService,
36
37
  services_1.AmqpIssuedReceiptCouponLogService,
37
38
  services_1.AmqpBrandBlackFridayCouponServiceByCouponServer,
39
+ services_1.AmqpIssuedReceiptCouponCronService,
38
40
  ],
39
41
  })
40
42
  ], AmqpCouponServerModule);
@@ -6,3 +6,4 @@ export * from './amqp.receipt-coupon-template-log.service';
6
6
  export * from './amqp.issued-receipt-coupon.service';
7
7
  export * from './amqp.issued-receipt-coupon-log.service';
8
8
  export * from './summer-black-friday.modules';
9
+ export * from './receipt-coupon.modules';
@@ -22,3 +22,4 @@ __exportStar(require("./amqp.receipt-coupon-template-log.service"), exports);
22
22
  __exportStar(require("./amqp.issued-receipt-coupon.service"), exports);
23
23
  __exportStar(require("./amqp.issued-receipt-coupon-log.service"), exports);
24
24
  __exportStar(require("./summer-black-friday.modules"), exports);
25
+ __exportStar(require("./receipt-coupon.modules"), exports);
@@ -0,0 +1,9 @@
1
+ import { ClientProxy } from '@nestjs/microservices';
2
+ import { AbstractParam } from '@yolo-croket-dev/core';
3
+ import { SendNotiExpiredIssuedReceiptCouponPayload } from '../../dto/receipt-coupon.modules/issued-receipt-coupon-cron';
4
+ export declare class AmqpIssuedReceiptCouponCronService {
5
+ private readonly client;
6
+ private readonly amqpManager;
7
+ constructor(client: ClientProxy);
8
+ sendNotiExpiredIssuedReceiptCoupon(payload: SendNotiExpiredIssuedReceiptCouponPayload, param: AbstractParam): Promise<any>;
9
+ }
@@ -0,0 +1,34 @@
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
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.AmqpIssuedReceiptCouponCronService = void 0;
16
+ /* eslint-disable max-len */
17
+ const common_1 = require("@nestjs/common");
18
+ const microservices_1 = require("@nestjs/microservices");
19
+ const functions_1 = require("@yolo-croket-dev/core/functions");
20
+ let AmqpIssuedReceiptCouponCronService = class AmqpIssuedReceiptCouponCronService {
21
+ constructor(client) {
22
+ this.client = client;
23
+ this.amqpManager = new functions_1.AmqpManagement(this.client);
24
+ }
25
+ async sendNotiExpiredIssuedReceiptCoupon(payload, param) {
26
+ return this.amqpManager.call('만료 발급 쿠폰 알림 대량 보내기', 'issued-receipt-coupon-cron.send-noti.expired', payload, param, { isErrorThrowing: true });
27
+ }
28
+ };
29
+ AmqpIssuedReceiptCouponCronService = __decorate([
30
+ (0, common_1.Injectable)(),
31
+ __param(0, (0, common_1.Inject)('COUPON_SERVER_PROVIDER')),
32
+ __metadata("design:paramtypes", [microservices_1.ClientProxy])
33
+ ], AmqpIssuedReceiptCouponCronService);
34
+ exports.AmqpIssuedReceiptCouponCronService = AmqpIssuedReceiptCouponCronService;
@@ -0,0 +1 @@
1
+ export * from './amqp.issued-receipt-coupon-cron.service';
@@ -0,0 +1,17 @@
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./amqp.issued-receipt-coupon-cron.service"), exports);
@@ -1 +1,2 @@
1
1
  export * from './send-expired-issued-receipt-coupon.dto';
2
+ export * from './send-expired-issued-coupon.dto';
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./send-expired-issued-receipt-coupon.dto"), exports);
18
+ __exportStar(require("./send-expired-issued-coupon.dto"), exports);
@@ -0,0 +1,15 @@
1
+ export declare class SendExpiredIssuedCouponPayloadData {
2
+ userId: string;
3
+ couponTitle: string;
4
+ discountAmount: string;
5
+ }
6
+ export declare class SendExpiredIssuedCouponPayload {
7
+ /** 알림 발송 데이터 */
8
+ datas: SendExpiredIssuedCouponPayloadData[];
9
+ /** 만료일자 년도 */
10
+ year: string;
11
+ /** 만료일자 월 */
12
+ month: string;
13
+ /** 만료일자 일 */
14
+ day: string;
15
+ }
@@ -0,0 +1,50 @@
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.SendExpiredIssuedCouponPayload = exports.SendExpiredIssuedCouponPayloadData = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const class_transformer_1 = require("class-transformer");
15
+ class SendExpiredIssuedCouponPayloadData {
16
+ }
17
+ __decorate([
18
+ (0, class_validator_1.IsMongoId)(),
19
+ __metadata("design:type", String)
20
+ ], SendExpiredIssuedCouponPayloadData.prototype, "userId", void 0);
21
+ __decorate([
22
+ (0, class_validator_1.IsString)(),
23
+ __metadata("design:type", String)
24
+ ], SendExpiredIssuedCouponPayloadData.prototype, "couponTitle", void 0);
25
+ __decorate([
26
+ (0, class_validator_1.IsString)(),
27
+ __metadata("design:type", String)
28
+ ], SendExpiredIssuedCouponPayloadData.prototype, "discountAmount", void 0);
29
+ exports.SendExpiredIssuedCouponPayloadData = SendExpiredIssuedCouponPayloadData;
30
+ class SendExpiredIssuedCouponPayload {
31
+ }
32
+ __decorate([
33
+ (0, class_validator_1.IsArray)(),
34
+ (0, class_validator_1.ValidateNested)({ each: true }),
35
+ (0, class_transformer_1.Type)(() => SendExpiredIssuedCouponPayloadData),
36
+ __metadata("design:type", Array)
37
+ ], SendExpiredIssuedCouponPayload.prototype, "datas", void 0);
38
+ __decorate([
39
+ (0, class_validator_1.IsString)(),
40
+ __metadata("design:type", String)
41
+ ], SendExpiredIssuedCouponPayload.prototype, "year", void 0);
42
+ __decorate([
43
+ (0, class_validator_1.IsString)(),
44
+ __metadata("design:type", String)
45
+ ], SendExpiredIssuedCouponPayload.prototype, "month", void 0);
46
+ __decorate([
47
+ (0, class_validator_1.IsString)(),
48
+ __metadata("design:type", String)
49
+ ], SendExpiredIssuedCouponPayload.prototype, "day", void 0);
50
+ exports.SendExpiredIssuedCouponPayload = SendExpiredIssuedCouponPayload;
@@ -1,9 +1,11 @@
1
1
  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
+ import { SendExpiredIssuedCouponPayload } from '../dto/notification-bulk-send/command/send-expired-issued-coupon.dto';
4
5
  export declare class AmqpNotificationBulkSendService {
5
6
  private readonly client;
6
7
  private readonly amqpManager;
7
8
  constructor(client: ClientProxy);
8
9
  sendExpiredIssuedReceiptCouponOnlyPublish(payload: SendExpiredIssuedReceiptCouponPayload, param: AbstractParam): Promise<boolean>;
10
+ sendExpiredIssuedCouponOnlyPublish(payload: SendExpiredIssuedCouponPayload, param: AbstractParam): Promise<boolean>;
9
11
  }
@@ -24,6 +24,9 @@ let AmqpNotificationBulkSendService = class AmqpNotificationBulkSendService {
24
24
  async sendExpiredIssuedReceiptCouponOnlyPublish(payload, param) {
25
25
  return this.amqpManager.onlyPublish('만료 발급 쿠폰 알림 대량 보내기', 'notification-bulk-send.send.expired-issued-receipt-coupon', payload, param, { isInternal: true });
26
26
  }
27
+ async sendExpiredIssuedCouponOnlyPublish(payload, param) {
28
+ return this.amqpManager.onlyPublish('만료 발급 쿠폰 알림 대량 보내기', 'notification-bulk-send.send.expired-issued-coupon', payload, param, { isInternal: true });
29
+ }
27
30
  };
28
31
  AmqpNotificationBulkSendService = __decorate([
29
32
  (0, common_1.Injectable)(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.5.60-jun.7",
3
+ "version": "0.5.60-jun.9",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",