@yolo-croket-dev/amqp-access 0.0.31-jun.11 → 0.0.31-jun.13
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,9 +1,11 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
-
import { GetStoreItemLegaciesPayload, GetStoreItemLegaciesResult } from '../dto/store-item
|
|
3
|
+
import { GetStoreItemLegaciesPayload, GetStoreItemLegaciesResult, GetSellingItemIdsByStoreIdPayload, GetSellingItemIdsByStoreIdResult, UpdateItemMaxDiscountCouponPayload } from '../dto/store-item';
|
|
4
4
|
export declare class AmqpStoreItemService {
|
|
5
5
|
private readonly client;
|
|
6
6
|
private readonly amqpManager;
|
|
7
7
|
constructor(client: ClientProxy);
|
|
8
8
|
getStoreItemLegacies(payload: GetStoreItemLegaciesPayload, param: AbstractParam): Promise<GetStoreItemLegaciesResult>;
|
|
9
|
+
updateItemMaxDiscountCoupon(payload: UpdateItemMaxDiscountCouponPayload, param: AbstractParam): Promise<void>;
|
|
10
|
+
getSellingItemIdsByStoreId(payload: GetSellingItemIdsByStoreIdPayload, param: AbstractParam): Promise<GetSellingItemIdsByStoreIdResult>;
|
|
9
11
|
}
|
|
@@ -24,6 +24,12 @@ let AmqpStoreItemService = class AmqpStoreItemService {
|
|
|
24
24
|
async getStoreItemLegacies(payload, param) {
|
|
25
25
|
return this.amqpManager.call('store item 레거시 조회', 'store-item.get.store-item-leyacies', payload, param, { isErrorThrowing: true });
|
|
26
26
|
}
|
|
27
|
+
async updateItemMaxDiscountCoupon(payload, param) {
|
|
28
|
+
return this.amqpManager.call('최대 쿠폰 할인가 업데이트', 'store-item.update.max-discount-coupon', payload, param, { isErrorThrowing: true });
|
|
29
|
+
}
|
|
30
|
+
async getSellingItemIdsByStoreId(payload, param) {
|
|
31
|
+
return this.amqpManager.call('해당 스토어에 판매중인 상품 아이디 리스트 호출', 'store-item.get.selling-item-ids-by-store-id', payload, param, { isErrorThrowing: true });
|
|
32
|
+
}
|
|
27
33
|
};
|
|
28
34
|
exports.AmqpStoreItemService = AmqpStoreItemService;
|
|
29
35
|
exports.AmqpStoreItemService = AmqpStoreItemService = __decorate([
|