@yolo-croket-dev/amqp-access 0.7.136 → 0.7.138

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.
@@ -27,6 +27,7 @@ exports.AmqpCouponServerModule = AmqpCouponServerModule = __decorate([
27
27
  services_1.AmqpBrandBlackFridayCouponServiceByCouponServer,
28
28
  services_1.AmqpIssuedReceiptCouponCronService,
29
29
  services_1.AmqpIssuedCouponCronService,
30
+ services_1.AmqpDailyRandomCouponService,
30
31
  ],
31
32
  exports: [
32
33
  amqp_coupon_server_provider_1.CouponServerProvider,
@@ -40,6 +41,7 @@ exports.AmqpCouponServerModule = AmqpCouponServerModule = __decorate([
40
41
  services_1.AmqpBrandBlackFridayCouponServiceByCouponServer,
41
42
  services_1.AmqpIssuedReceiptCouponCronService,
42
43
  services_1.AmqpIssuedCouponCronService,
44
+ services_1.AmqpDailyRandomCouponService,
43
45
  ],
44
46
  })
45
47
  ], AmqpCouponServerModule);
@@ -0,0 +1,9 @@
1
+ import { ClientProxy } from '@nestjs/microservices';
2
+ import { AbstractParam } from '@yolo-croket-dev/core';
3
+ import { DailyRandomCouponEntity } from '@yolo-croket-dev/entity-v2';
4
+ export declare class AmqpDailyRandomCouponService {
5
+ private readonly client;
6
+ private readonly amqpManager;
7
+ constructor(client: ClientProxy);
8
+ getIssueableDailyRandomCoupons(param: AbstractParam): Promise<DailyRandomCouponEntity[]>;
9
+ }
@@ -0,0 +1,33 @@
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.AmqpDailyRandomCouponService = void 0;
16
+ const common_1 = require("@nestjs/common");
17
+ const microservices_1 = require("@nestjs/microservices");
18
+ const functions_1 = require("@yolo-croket-dev/core/functions");
19
+ let AmqpDailyRandomCouponService = class AmqpDailyRandomCouponService {
20
+ constructor(client) {
21
+ this.client = client;
22
+ this.amqpManager = new functions_1.AmqpManagement(this.client);
23
+ }
24
+ async getIssueableDailyRandomCoupons(param) {
25
+ return this.amqpManager.call('데일리 랜덤 쿠폰 알림 유저 생성', 'daily-random-coupon.get.issueable-coupons', {}, param, { isErrorThrowing: true });
26
+ }
27
+ };
28
+ exports.AmqpDailyRandomCouponService = AmqpDailyRandomCouponService;
29
+ exports.AmqpDailyRandomCouponService = AmqpDailyRandomCouponService = __decorate([
30
+ (0, common_1.Injectable)(),
31
+ __param(0, (0, common_1.Inject)('COUPON_SERVER_PROVIDER')),
32
+ __metadata("design:paramtypes", [microservices_1.ClientProxy])
33
+ ], AmqpDailyRandomCouponService);
@@ -8,3 +8,4 @@ export * from './amqp.issued-receipt-coupon-log.service';
8
8
  export * from './summer-black-friday.modules';
9
9
  export * from './receipt-coupon.modules';
10
10
  export * from './coupon.modules';
11
+ export * from './amqp.daily-random-coupon.service';
@@ -24,3 +24,4 @@ __exportStar(require("./amqp.issued-receipt-coupon-log.service"), exports);
24
24
  __exportStar(require("./summer-black-friday.modules"), exports);
25
25
  __exportStar(require("./receipt-coupon.modules"), exports);
26
26
  __exportStar(require("./coupon.modules"), exports);
27
+ __exportStar(require("./amqp.daily-random-coupon.service"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.7.136",
3
+ "version": "0.7.138",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",
@@ -22,7 +22,7 @@
22
22
  "@yolo-croket-dev/domain": "0.2.38",
23
23
  "@yolo-croket-dev/dto-v2": "^0.2.15",
24
24
  "@yolo-croket-dev/entity": "0.2.74",
25
- "@yolo-croket-dev/entity-v2": "0.2.149",
25
+ "@yolo-croket-dev/entity-v2": "0.2.152",
26
26
  "class-transformer": "^0.5.1",
27
27
  "class-validator": "^0.13.2",
28
28
  "dotenv": "^16.3.1"