@yolo-croket-dev/amqp-access 0.7.18 → 0.7.19
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 +1 -1
- package/store-item-server/dto/store-item.moduels/store-item-global/index.d.ts +0 -0
- package/store-item-server/dto/store-item.moduels/store-item-global/index.js +1 -0
- package/store-item-server/dto/store-item.moduels/store-item-global/query/get-global-shipping-fee-by-itemid.dto.d.ts +2 -2
- package/store-item-server/dto/store-item.moduels/store-item-global/query/get-global-shipping-fee-by-itemid.dto.js +5 -5
- package/store-item-server/services/store-item.moduels/amqp.store-item-global.service.d.ts +2 -2
- package/store-item-server/services/store-item.moduels/amqp.store-item-global.service.js +1 -1
package/package.json
CHANGED
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** 글로벌 상품 배송비 조회 Payload */
|
|
2
|
-
export declare class
|
|
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
|
|
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.
|
|
12
|
+
exports.GetGlobalShippingFeeByItemIdPayload = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
/** 글로벌 상품 배송비 조회 Payload */
|
|
15
|
-
class
|
|
15
|
+
class GetGlobalShippingFeeByItemIdPayload {
|
|
16
16
|
}
|
|
17
|
-
exports.
|
|
17
|
+
exports.GetGlobalShippingFeeByItemIdPayload = GetGlobalShippingFeeByItemIdPayload;
|
|
18
18
|
__decorate([
|
|
19
19
|
(0, class_validator_1.IsMongoId)({ each: true }),
|
|
20
20
|
__metadata("design:type", Array)
|
|
21
|
-
],
|
|
21
|
+
], GetGlobalShippingFeeByItemIdPayload.prototype, "itemIds", void 0);
|
|
22
22
|
__decorate([
|
|
23
23
|
(0, class_validator_1.IsString)(),
|
|
24
24
|
__metadata("design:type", String)
|
|
25
|
-
],
|
|
25
|
+
], GetGlobalShippingFeeByItemIdPayload.prototype, "area", void 0);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
-
import {
|
|
3
|
+
import { GetGlobalShippingFeeByItemIdPayload, GetGlobalShippingFeeByItemIdResult } 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
|
-
|
|
8
|
+
getGlobalShippingFeeByItemId(payload: GetGlobalShippingFeeByItemIdPayload, param: AbstractParam): Promise<GetGlobalShippingFeeByItemIdResult>;
|
|
9
9
|
}
|
|
@@ -21,7 +21,7 @@ let AmqpStoreItemGlobalService = class AmqpStoreItemGlobalService {
|
|
|
21
21
|
this.client = client;
|
|
22
22
|
this.amqpManager = new functions_1.AmqpManagement(this.client);
|
|
23
23
|
}
|
|
24
|
-
async
|
|
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
27
|
};
|