@yolo-croket-dev/amqp-access 0.7.18 → 0.7.20

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.7.18",
3
+ "version": "0.7.20",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",
@@ -1,5 +1,5 @@
1
1
  /** 글로벌 상품 배송비 조회 Payload */
2
- export declare class GetGlobalShippingFeeByItemIdsPayload {
2
+ export declare class GetGlobalShippingFeeByItemIdPayload {
3
3
  /** 상품 아이디 리스트 */
4
4
  itemIds: string[];
5
5
  /** 배송지 지역 */
@@ -13,4 +13,4 @@ export interface GlobalShippingFeeItem {
13
13
  shippingFee: number | null;
14
14
  }
15
15
  /** 글로벌 상품 배송비 조회 Result */
16
- export type GetGlobalShippingFeeByItemIdsResult = GlobalShippingFeeItem[];
16
+ export type GetGlobalShippingFeeByItemIdResult = GlobalShippingFeeItem[];
@@ -9,17 +9,17 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.GetGlobalShippingFeeByItemIdsPayload = void 0;
12
+ exports.GetGlobalShippingFeeByItemIdPayload = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  /** 글로벌 상품 배송비 조회 Payload */
15
- class GetGlobalShippingFeeByItemIdsPayload {
15
+ class GetGlobalShippingFeeByItemIdPayload {
16
16
  }
17
- exports.GetGlobalShippingFeeByItemIdsPayload = GetGlobalShippingFeeByItemIdsPayload;
17
+ exports.GetGlobalShippingFeeByItemIdPayload = GetGlobalShippingFeeByItemIdPayload;
18
18
  __decorate([
19
19
  (0, class_validator_1.IsMongoId)({ each: true }),
20
20
  __metadata("design:type", Array)
21
- ], GetGlobalShippingFeeByItemIdsPayload.prototype, "itemIds", void 0);
21
+ ], GetGlobalShippingFeeByItemIdPayload.prototype, "itemIds", void 0);
22
22
  __decorate([
23
23
  (0, class_validator_1.IsString)(),
24
24
  __metadata("design:type", String)
25
- ], GetGlobalShippingFeeByItemIdsPayload.prototype, "area", void 0);
25
+ ], GetGlobalShippingFeeByItemIdPayload.prototype, "area", void 0);
@@ -0,0 +1,2 @@
1
+ export type GetShippingFeeAreasPayload = unknown;
2
+ export type GetShippingFeeAreasResult = string[];
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,2 @@
1
1
  export * from './get-global-shipping-fee-by-itemid.dto';
2
+ export * from './get-shipping-fee-areas.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("./get-global-shipping-fee-by-itemid.dto"), exports);
18
+ __exportStar(require("./get-shipping-fee-areas.dto"), exports);
@@ -1,9 +1,10 @@
1
1
  import { ClientProxy } from '@nestjs/microservices';
2
2
  import { AbstractParam } from '@yolo-croket-dev/core';
3
- import { GetGlobalShippingFeeByItemIdsPayload, GetGlobalShippingFeeByItemIdsResult } from '../../dto/store-item.moduels/store-item-global/query';
3
+ import { GetGlobalShippingFeeByItemIdPayload, GetGlobalShippingFeeByItemIdResult, GetShippingFeeAreasPayload, GetShippingFeeAreasResult } from '../../dto/store-item.moduels/store-item-global/query';
4
4
  export declare class AmqpStoreItemGlobalService {
5
5
  private readonly client;
6
6
  private readonly amqpManager;
7
7
  constructor(client: ClientProxy);
8
- getGlobalShippingFeeByItemIds(payload: GetGlobalShippingFeeByItemIdsPayload, param: AbstractParam): Promise<GetGlobalShippingFeeByItemIdsResult>;
8
+ getGlobalShippingFeeByItemId(payload: GetGlobalShippingFeeByItemIdPayload, param: AbstractParam): Promise<GetGlobalShippingFeeByItemIdResult>;
9
+ getShippingFeeAreas(payload: GetShippingFeeAreasPayload, param: AbstractParam): Promise<GetShippingFeeAreasResult>;
9
10
  }
@@ -21,9 +21,12 @@ let AmqpStoreItemGlobalService = class AmqpStoreItemGlobalService {
21
21
  this.client = client;
22
22
  this.amqpManager = new functions_1.AmqpManagement(this.client);
23
23
  }
24
- async getGlobalShippingFeeByItemIds(payload, param) {
24
+ async getGlobalShippingFeeByItemId(payload, param) {
25
25
  return this.amqpManager.call('글로벌 상품 배송비 조회', 'store-item-global.get.shipping-fee-by-itemid', payload, param, { isErrorThrowing: true });
26
26
  }
27
+ async getShippingFeeAreas(payload, param) {
28
+ return this.amqpManager.call('글로벌 배송비 지역 조회', 'store-item-global.get.shipping-fee-areas', payload, param, { isErrorThrowing: true });
29
+ }
27
30
  };
28
31
  exports.AmqpStoreItemGlobalService = AmqpStoreItemGlobalService;
29
32
  exports.AmqpStoreItemGlobalService = AmqpStoreItemGlobalService = __decorate([