@yolo-croket-dev/amqp-access 0.5.64-jun.0 → 0.5.64-jun.2

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.5.64-jun.0",
3
+ "version": "0.5.64-jun.2",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",
@@ -40,6 +40,7 @@ AmqpStoreItemServerModule = __decorate([
40
40
  services_1.AmqpAdCenterStoreItemKeywordService,
41
41
  services_1.AmqpStoreItemMigrationService,
42
42
  services_1.AmqpStoreItemDetailBannerService,
43
+ services_1.AmqpStoreItemPopularSearchKeywordService,
43
44
  ],
44
45
  exports: [
45
46
  amqp_store_item_server_provider_1.StoreItemServerProvider,
@@ -67,6 +68,7 @@ AmqpStoreItemServerModule = __decorate([
67
68
  services_1.AmqpAdCenterStoreItemKeywordService,
68
69
  services_1.AmqpStoreItemMigrationService,
69
70
  services_1.AmqpStoreItemDetailBannerService,
71
+ services_1.AmqpStoreItemPopularSearchKeywordService,
70
72
  ],
71
73
  })
72
74
  ], AmqpStoreItemServerModule);
@@ -0,0 +1,10 @@
1
+ import { ClientProxy } from '@nestjs/microservices';
2
+ import { AbstractParam } from '@yolo-croket-dev/core';
3
+ import { CreatePopularSearchKeywordPayload, GetLastPopularSearchKeywordResult } from '../../dto/store-item.moduels/store-item-popular-search-keyword';
4
+ export declare class AmqpStoreItemPopularSearchKeywordService {
5
+ private readonly client;
6
+ private readonly amqpManager;
7
+ constructor(client: ClientProxy);
8
+ createPopularSearchKeyword(payload: CreatePopularSearchKeywordPayload, param: AbstractParam): Promise<void>;
9
+ getLastPopularSearchKeyword(payload: void, param: AbstractParam): Promise<GetLastPopularSearchKeywordResult>;
10
+ }
@@ -0,0 +1,36 @@
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.AmqpStoreItemPopularSearchKeywordService = 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 AmqpStoreItemPopularSearchKeywordService = class AmqpStoreItemPopularSearchKeywordService {
20
+ constructor(client) {
21
+ this.client = client;
22
+ this.amqpManager = new functions_1.AmqpManagement(this.client);
23
+ }
24
+ async createPopularSearchKeyword(payload, param) {
25
+ return this.amqpManager.call('스토어 인기 검색어 생성', 'store-item-popular-search-keyword.create', payload, param, { isErrorThrowing: true });
26
+ }
27
+ async getLastPopularSearchKeyword(payload, param) {
28
+ return this.amqpManager.call('스토어 인기 검색어 조회', 'store-item-popular-search-keyword.get.last', payload, param, { isErrorThrowing: true });
29
+ }
30
+ };
31
+ AmqpStoreItemPopularSearchKeywordService = __decorate([
32
+ (0, common_1.Injectable)(),
33
+ __param(0, (0, common_1.Inject)('STORE_ITEM_SERVER_PROVIDER')),
34
+ __metadata("design:paramtypes", [microservices_1.ClientProxy])
35
+ ], AmqpStoreItemPopularSearchKeywordService);
36
+ exports.AmqpStoreItemPopularSearchKeywordService = AmqpStoreItemPopularSearchKeywordService;
@@ -1,2 +1,3 @@
1
1
  export * from './amqp.store-item-sabang.service';
2
2
  export * from './amqp.store-item-migration.service';
3
+ export * from './amqp.store-item-popular-search-keyword.service';
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./amqp.store-item-sabang.service"), exports);
18
18
  __exportStar(require("./amqp.store-item-migration.service"), exports);
19
+ __exportStar(require("./amqp.store-item-popular-search-keyword.service"), exports);