@yolo-croket-dev/amqp-access 0.4.121 → 0.4.122-hj-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.
@@ -0,0 +1,4 @@
1
+ import { ExchangeRateInfo } from '@yolo-croket-dev/entity-v2';
2
+ /** @description isArray */
3
+ export interface GetExchangeRateResult extends Pick<ExchangeRateInfo, 'cur_unit' | 'cur_nm' | 'deal_bas_r'> {
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1 @@
1
- export * from './get-exchange-rate-by-currency-code.dto';
1
+ export * from './get-exchange-rate.dto';
@@ -14,4 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./get-exchange-rate-by-currency-code.dto"), exports);
17
+ __exportStar(require("./get-exchange-rate.dto"), exports);
@@ -1,9 +1,9 @@
1
1
  import { ClientProxy } from '@nestjs/microservices';
2
2
  import { AbstractParam } from '@yolo-croket-dev/core';
3
- import { GetExchangeRateByCurrencyCodePayload, GetExchangeRateByCurrencyCodeResult } from '../dto';
3
+ import { GetExchangeRateResult } from '../dto';
4
4
  export declare class AmqpExchangeRateService {
5
5
  private readonly client;
6
6
  private readonly amqpManager;
7
7
  constructor(client: ClientProxy);
8
- getExchangeRateByCurrencyCode(payload: GetExchangeRateByCurrencyCodePayload, param: AbstractParam): Promise<GetExchangeRateByCurrencyCodeResult>;
8
+ getExchangeRate(param: AbstractParam): Promise<GetExchangeRateResult>;
9
9
  }
@@ -21,8 +21,8 @@ let AmqpExchangeRateService = class AmqpExchangeRateService {
21
21
  this.client = client;
22
22
  this.amqpManager = new functions_1.AmqpManagement(this.client);
23
23
  }
24
- async getExchangeRateByCurrencyCode(payload, param) {
25
- return this.amqpManager.call('환율 조회', 'exchange-rate.get.by-currency-code', payload, param, { isErrorThrowing: true });
24
+ async getExchangeRate(param) {
25
+ return this.amqpManager.call('환율 조회', 'exchange-rate.get.by-currency-code', {}, param, { isErrorThrowing: true });
26
26
  }
27
27
  };
28
28
  exports.AmqpExchangeRateService = AmqpExchangeRateService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.4.121",
3
+ "version": "0.4.122-hj-2",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",
@@ -1,7 +0,0 @@
1
- export declare class GetExchangeRateByCurrencyCodePayload {
2
- currencyCode: string;
3
- }
4
- export declare class GetExchangeRateByCurrencyCodeResult {
5
- /** @description deal_bas_r */
6
- dealBaseRate?: number;
7
- }
@@ -1,24 +0,0 @@
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.GetExchangeRateByCurrencyCodeResult = exports.GetExchangeRateByCurrencyCodePayload = void 0;
13
- const class_validator_1 = require("class-validator");
14
- class GetExchangeRateByCurrencyCodePayload {
15
- }
16
- exports.GetExchangeRateByCurrencyCodePayload = GetExchangeRateByCurrencyCodePayload;
17
- __decorate([
18
- (0, class_validator_1.IsString)(),
19
- (0, class_validator_1.IsNotEmpty)(),
20
- __metadata("design:type", String)
21
- ], GetExchangeRateByCurrencyCodePayload.prototype, "currencyCode", void 0);
22
- class GetExchangeRateByCurrencyCodeResult {
23
- }
24
- exports.GetExchangeRateByCurrencyCodeResult = GetExchangeRateByCurrencyCodeResult;