@yolo-croket-dev/amqp-access 0.4.119-jun.6 → 0.4.119-jun.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.4.119-jun.6",
3
+ "version": "0.4.119-jun.7",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",
@@ -1 +1,2 @@
1
1
  export * from './summer-black-friday';
2
+ export * from './sns-hot-issue';
@@ -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("./summer-black-friday"), exports);
18
+ __exportStar(require("./sns-hot-issue"), exports);
@@ -0,0 +1,5 @@
1
+ import { PreviewStory } from '@yolo-croket-dev/domain/story/interface';
2
+ export declare class GetSnsHotIssuePageResult {
3
+ topImg: string;
4
+ previewStories: PreviewStory[];
5
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetSnsHotIssuePageResult = void 0;
4
+ class GetSnsHotIssuePageResult {
5
+ }
6
+ exports.GetSnsHotIssuePageResult = GetSnsHotIssuePageResult;
@@ -0,0 +1 @@
1
+ export * from './get-sns-hot-issue-page.dto';
@@ -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("./get-sns-hot-issue-page.dto"), exports);
@@ -0,0 +1,9 @@
1
+ import { ClientProxy } from '@nestjs/microservices';
2
+ import { AbstractParam } from '@yolo-croket-dev/core';
3
+ import { GetSnsHotIssuePageResult } from '../../dto/summer-black-friday.modules/sns-hot-issue';
4
+ export declare class AmqpSnsHotIssueService {
5
+ private readonly client;
6
+ private readonly amqpManager;
7
+ constructor(client: ClientProxy);
8
+ getSnsHotIssuePage(payload: void, param: AbstractParam): Promise<GetSnsHotIssuePageResult>;
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.AmqpSnsHotIssueService = 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 AmqpSnsHotIssueService = class AmqpSnsHotIssueService {
20
+ constructor(client) {
21
+ this.client = client;
22
+ this.amqpManager = new functions_1.AmqpManagement(this.client);
23
+ }
24
+ async getSnsHotIssuePage(payload, param) {
25
+ return this.amqpManager.call('SNS 핫 이슈 페이지 조회', 'sns-hot-issue.get.page', payload, param, { isErrorThrowing: true });
26
+ }
27
+ };
28
+ exports.AmqpSnsHotIssueService = AmqpSnsHotIssueService;
29
+ exports.AmqpSnsHotIssueService = AmqpSnsHotIssueService = __decorate([
30
+ (0, common_1.Injectable)(),
31
+ __param(0, (0, common_1.Inject)('STORE_ITEM_SERVER_PROVIDER')),
32
+ __metadata("design:paramtypes", [microservices_1.ClientProxy])
33
+ ], AmqpSnsHotIssueService);
@@ -1 +1,2 @@
1
1
  export * from './amqp.summer-black-friday.service';
2
+ export * from './amqp.sns-hot-issue.service';
@@ -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("./amqp.summer-black-friday.service"), exports);
18
+ __exportStar(require("./amqp.sns-hot-issue.service"), exports);