@yolo-croket-dev/amqp-access 0.4.54 → 0.4.55-sj1
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/query/get-store-items-by-brand-name.dto.d.ts +24 -0
- package/store-item-server/dto/store-item/query/get-store-items-by-brand-name.dto.js +31 -0
- package/store-item-server/dto/store-item/query/index.d.ts +1 -0
- package/store-item-server/dto/store-item/query/index.js +1 -0
- package/store-item-server/services/amqp.store-item.service.d.ts +2 -1
- package/store-item-server/services/amqp.store-item.service.js +3 -0
package/package.json
CHANGED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface StoreItemsByBrandName {
|
|
2
|
+
_id: string;
|
|
3
|
+
itemName: string;
|
|
4
|
+
brandName: string;
|
|
5
|
+
subBrandName?: string;
|
|
6
|
+
engBrandName?: string;
|
|
7
|
+
sellerId: string;
|
|
8
|
+
storeTitle: string;
|
|
9
|
+
mainCategory: string;
|
|
10
|
+
subCategory: string;
|
|
11
|
+
sellingStatus: string;
|
|
12
|
+
clickNums?: number;
|
|
13
|
+
bookNums: number;
|
|
14
|
+
soldNums: number;
|
|
15
|
+
itemUrl: string;
|
|
16
|
+
}
|
|
17
|
+
export declare class GetStoreItemsByBrandNamePayload {
|
|
18
|
+
brandName: string;
|
|
19
|
+
page: number;
|
|
20
|
+
limit: number;
|
|
21
|
+
}
|
|
22
|
+
export declare class GetStoreItemsByBrandNameResult {
|
|
23
|
+
storeItems: StoreItemsByBrandName[];
|
|
24
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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.GetStoreItemsByBrandNameResult = exports.GetStoreItemsByBrandNamePayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class GetStoreItemsByBrandNamePayload {
|
|
15
|
+
}
|
|
16
|
+
exports.GetStoreItemsByBrandNamePayload = GetStoreItemsByBrandNamePayload;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsString)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], GetStoreItemsByBrandNamePayload.prototype, "brandName", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsNumber)(),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], GetStoreItemsByBrandNamePayload.prototype, "page", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsNumber)(),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], GetStoreItemsByBrandNamePayload.prototype, "limit", void 0);
|
|
29
|
+
class GetStoreItemsByBrandNameResult {
|
|
30
|
+
}
|
|
31
|
+
exports.GetStoreItemsByBrandNameResult = GetStoreItemsByBrandNameResult;
|
|
@@ -14,3 +14,4 @@ export * from './search-store-items-for-seduce-add-cart.dto';
|
|
|
14
14
|
export * from './get-store-item-bind-issued-coupon-for-payment.dto';
|
|
15
15
|
export * from './get-stale-store-items-for-excel.dto';
|
|
16
16
|
export * from './get-store-item-tooltip-for-cart.dto';
|
|
17
|
+
export * from './get-store-items-by-brand-name.dto';
|
|
@@ -30,3 +30,4 @@ __exportStar(require("./search-store-items-for-seduce-add-cart.dto"), exports);
|
|
|
30
30
|
__exportStar(require("./get-store-item-bind-issued-coupon-for-payment.dto"), exports);
|
|
31
31
|
__exportStar(require("./get-stale-store-items-for-excel.dto"), exports);
|
|
32
32
|
__exportStar(require("./get-store-item-tooltip-for-cart.dto"), exports);
|
|
33
|
+
__exportStar(require("./get-store-items-by-brand-name.dto"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
-
import { GetStoreItemLegaciesPayload, GetStoreItemLegaciesResult, GetSellingItemIdsByStoreIdPayload, GetSellingItemIdsByStoreIdResult, SearchSellingStoreItemsPayload, SearchSellingStoreItemsResult, GetStoreItemsForESPayload, GetStoreItemsForESResult, GetLegacyStoreItemsByAtlasSearchPayload, GetLegacyStoreItemsByAtlasSearchResult, GetStoreItemIdsByAtlasSearchPayload, GetStoreItemIdsByAtlasSearchResult, GetStoreItemInfoByIdPayload, GetStoreItemInfoByIdResult, GetSellingItemIdsByThemeIdPayload, GetSellingItemIdsByThemeIdResult, SearchStoreItemNameByIdPayload, SearchStoreItemNameByIdResult, GetItemGroupNumsPayload, GetItemGroupNumsResult, GetRandomItemIdsPayload, GetRandomItemIdsResult, GetUsedImgItemIdsPayload, GetUsedImgItemIdsResult, GetUsedImgsItemIdsPayload, GetUsedImgsItemIdsResult, GetSellingItemIdsByCatagoryPayload, GetSellingItemIdsByCatagoryResult, PatchSoldOutItemOptionsPayload, PatchSoldOutItemOptionsResult, RegStoreItemPayload, RegStoreItemResult, EditStoreItemPayload, EditItemResult, UpdateBrandInfosPayload, GetStoreItemsForUpdateBrandPayload, GetStoreItemsForUpdateBrandResult, RegStoreItemBulkPayload, RegStoreItemBulkResult, GetStoreItemInfoByIdsPayload, GetStoreItemInfoByIdsResult, SearchStoreItemsForSeduceAddCartPayload, SearchStoreItemsForSeduceAddCartResult, GetStoreItemBindIssuedCouponForPaymentPayload, GetStoreItemBindIssuedCouponForPaymentResult, GetStaleStoreItemsForExcelResult, GetStaleStoreItemsForExcelPayload, GetStoreItemTooltipForCartPayload, GetStoreItemTooltipForCartResult } from '../dto/store-item';
|
|
3
|
+
import { GetStoreItemLegaciesPayload, GetStoreItemLegaciesResult, GetSellingItemIdsByStoreIdPayload, GetSellingItemIdsByStoreIdResult, SearchSellingStoreItemsPayload, SearchSellingStoreItemsResult, GetStoreItemsForESPayload, GetStoreItemsForESResult, GetLegacyStoreItemsByAtlasSearchPayload, GetLegacyStoreItemsByAtlasSearchResult, GetStoreItemIdsByAtlasSearchPayload, GetStoreItemIdsByAtlasSearchResult, GetStoreItemInfoByIdPayload, GetStoreItemInfoByIdResult, GetSellingItemIdsByThemeIdPayload, GetSellingItemIdsByThemeIdResult, SearchStoreItemNameByIdPayload, SearchStoreItemNameByIdResult, GetItemGroupNumsPayload, GetItemGroupNumsResult, GetRandomItemIdsPayload, GetRandomItemIdsResult, GetUsedImgItemIdsPayload, GetUsedImgItemIdsResult, GetUsedImgsItemIdsPayload, GetUsedImgsItemIdsResult, GetSellingItemIdsByCatagoryPayload, GetSellingItemIdsByCatagoryResult, PatchSoldOutItemOptionsPayload, PatchSoldOutItemOptionsResult, RegStoreItemPayload, RegStoreItemResult, EditStoreItemPayload, EditItemResult, UpdateBrandInfosPayload, GetStoreItemsForUpdateBrandPayload, GetStoreItemsForUpdateBrandResult, RegStoreItemBulkPayload, RegStoreItemBulkResult, GetStoreItemInfoByIdsPayload, GetStoreItemInfoByIdsResult, SearchStoreItemsForSeduceAddCartPayload, SearchStoreItemsForSeduceAddCartResult, GetStoreItemBindIssuedCouponForPaymentPayload, GetStoreItemBindIssuedCouponForPaymentResult, GetStaleStoreItemsForExcelResult, GetStaleStoreItemsForExcelPayload, GetStoreItemTooltipForCartPayload, GetStoreItemTooltipForCartResult, GetStoreItemsByBrandNamePayload, GetStoreItemsByBrandNameResult } from '../dto/store-item';
|
|
4
4
|
export declare class AmqpStoreItemService {
|
|
5
5
|
private readonly client;
|
|
6
6
|
private readonly amqpManager;
|
|
@@ -37,4 +37,5 @@ export declare class AmqpStoreItemService {
|
|
|
37
37
|
getStoreItemBindIssuedCouponForPayment(payload: GetStoreItemBindIssuedCouponForPaymentPayload, param: AbstractParam): Promise<GetStoreItemBindIssuedCouponForPaymentResult>;
|
|
38
38
|
getStaleStoreItemsForExcel(payload: GetStaleStoreItemsForExcelPayload, param: AbstractParam): Promise<GetStaleStoreItemsForExcelResult>;
|
|
39
39
|
getStoreItemTooltipForCart(payload: GetStoreItemTooltipForCartPayload, param: AbstractParam): Promise<GetStoreItemTooltipForCartResult>;
|
|
40
|
+
getStoreItemsByBrandName(payload: GetStoreItemsByBrandNamePayload, param: AbstractParam): Promise<GetStoreItemsByBrandNameResult>;
|
|
40
41
|
}
|
|
@@ -111,6 +111,9 @@ let AmqpStoreItemService = class AmqpStoreItemService {
|
|
|
111
111
|
async getStoreItemTooltipForCart(payload, param) {
|
|
112
112
|
return this.amqpManager.call('상품 장바구니 툴팁', 'store-item.get.tooltip-for-cart', payload, param, { isErrorThrowing: true });
|
|
113
113
|
}
|
|
114
|
+
async getStoreItemsByBrandName(payload, param) {
|
|
115
|
+
return this.amqpManager.call('브랜드 이름으로 관련 상품 조회', 'store-item.get.by-brand-name', payload, param, { isErrorThrowing: true });
|
|
116
|
+
}
|
|
114
117
|
};
|
|
115
118
|
exports.AmqpStoreItemService = AmqpStoreItemService;
|
|
116
119
|
exports.AmqpStoreItemService = AmqpStoreItemService = __decorate([
|