@yolo-croket-dev/amqp-access 0.5.6 → 0.5.7-jun.0
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-infos-by-item-ids.dto.d.ts +9 -0
- package/store-item-server/dto/store-item/query/get-store-infos-by-item-ids.dto.js +24 -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/dto/summer-black-friday.modules/weekly-mega-deal/command/create-weekly-mega-deal-data.dto.d.ts +8 -0
- package/store-item-server/dto/summer-black-friday.modules/weekly-mega-deal/command/create-weekly-mega-deal-data.dto.js +8 -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
|
+
"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.GetStoreInfosByItemIdsResult = exports.GetStoreInfosByItemIdsPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class GetStoreInfosByItemIdsPayload {
|
|
15
|
+
}
|
|
16
|
+
exports.GetStoreInfosByItemIdsPayload = GetStoreInfosByItemIdsPayload;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
19
|
+
__metadata("design:type", Array)
|
|
20
|
+
], GetStoreInfosByItemIdsPayload.prototype, "itemIds", void 0);
|
|
21
|
+
/** @description isArray */
|
|
22
|
+
class GetStoreInfosByItemIdsResult {
|
|
23
|
+
}
|
|
24
|
+
exports.GetStoreInfosByItemIdsResult = GetStoreInfosByItemIdsResult;
|
|
@@ -20,3 +20,4 @@ export * from '../../store-item.moduels/store-item-data/query/area-nation-city';
|
|
|
20
20
|
export * from './get-store-items-for-extraction-by-type.dto';
|
|
21
21
|
export * from './resize-item-img.dto';
|
|
22
22
|
export * from './get-store-item-count-for-brand.dto';
|
|
23
|
+
export * from './get-store-infos-by-item-ids.dto';
|
|
@@ -36,3 +36,4 @@ __exportStar(require("../../store-item.moduels/store-item-data/query/area-nation
|
|
|
36
36
|
__exportStar(require("./get-store-items-for-extraction-by-type.dto"), exports);
|
|
37
37
|
__exportStar(require("./resize-item-img.dto"), exports);
|
|
38
38
|
__exportStar(require("./get-store-item-count-for-brand.dto"), exports);
|
|
39
|
+
__exportStar(require("./get-store-infos-by-item-ids.dto"), exports);
|
|
@@ -28,6 +28,14 @@ import { Types } from 'mongoose';
|
|
|
28
28
|
export declare class WeeklyMegaDealPeriodItemDataDto implements WeeklyMegaDealPeriodItemData {
|
|
29
29
|
itemId: string | Types.ObjectId;
|
|
30
30
|
isShowNow: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* @description 판매 개수 제한
|
|
33
|
+
*/
|
|
34
|
+
sellingNumsLimit?: number;
|
|
35
|
+
/**
|
|
36
|
+
* @description 현재 판매된 수 초기화 여부
|
|
37
|
+
*/
|
|
38
|
+
isCurrentSoldNumsInit?: boolean;
|
|
31
39
|
}
|
|
32
40
|
export declare class ExternalPriceInfoDto implements ExternalPriceInfo {
|
|
33
41
|
name: ExternalPriceNameEnum;
|
|
@@ -25,6 +25,14 @@ __decorate([
|
|
|
25
25
|
(0, class_validator_1.IsBoolean)(),
|
|
26
26
|
__metadata("design:type", Boolean)
|
|
27
27
|
], WeeklyMegaDealPeriodItemDataDto.prototype, "isShowNow", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsNumber)(),
|
|
30
|
+
__metadata("design:type", Number)
|
|
31
|
+
], WeeklyMegaDealPeriodItemDataDto.prototype, "sellingNumsLimit", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsBoolean)(),
|
|
34
|
+
__metadata("design:type", Boolean)
|
|
35
|
+
], WeeklyMegaDealPeriodItemDataDto.prototype, "isCurrentSoldNumsInit", void 0);
|
|
28
36
|
class ExternalPriceInfoDto {
|
|
29
37
|
}
|
|
30
38
|
exports.ExternalPriceInfoDto = ExternalPriceInfoDto;
|
|
@@ -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, GetStoreItemsByBrandNamePayload, GetStoreItemsByBrandNameResult, SearchStoreItemsForTestApiPayload, SearchStoreItemsForTestApiResult, UpdateBrandNameBulkPayload, UpdateBrandEngNameBulkPayload, DeleteBrandInfoBulkPayload, DalphaUpdateBrandNameBulkPayload, PatchStoreItemOptionRemainCountByChangePurchasedOptionPayload, UpdateIsSellingBulkPayload, GetAreaResult, GetCityPayload, GetCityResult, GetNationPayload, GetNationResult, GetStoreItemsForExtractionByTypeResult, ResizeItemImgPayload } 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, SearchStoreItemsForTestApiPayload, SearchStoreItemsForTestApiResult, UpdateBrandNameBulkPayload, UpdateBrandEngNameBulkPayload, DeleteBrandInfoBulkPayload, DalphaUpdateBrandNameBulkPayload, PatchStoreItemOptionRemainCountByChangePurchasedOptionPayload, UpdateIsSellingBulkPayload, GetAreaResult, GetCityPayload, GetCityResult, GetNationPayload, GetNationResult, GetStoreItemsForExtractionByTypeResult, ResizeItemImgPayload, GetStoreInfosByItemIdsPayload, GetStoreInfosByItemIdsResult } from '../dto/store-item';
|
|
4
4
|
export declare class AmqpStoreItemService {
|
|
5
5
|
private readonly client;
|
|
6
6
|
private readonly amqpManager;
|
|
@@ -52,4 +52,5 @@ export declare class AmqpStoreItemService {
|
|
|
52
52
|
getStoreItemsForExtractionByType(param: AbstractParam): Promise<GetStoreItemsForExtractionByTypeResult>;
|
|
53
53
|
resizeItemImg(payload: ResizeItemImgPayload, param: AbstractParam): Promise<void>;
|
|
54
54
|
resizeItemImgOnlyPublish(payload: ResizeItemImgPayload, param: AbstractParam): Promise<boolean>;
|
|
55
|
+
getStoreInfosByItemIds(payload: GetStoreInfosByItemIdsPayload, param: AbstractParam): Promise<GetStoreInfosByItemIdsResult[]>;
|
|
55
56
|
}
|
|
@@ -156,6 +156,9 @@ let AmqpStoreItemService = class AmqpStoreItemService {
|
|
|
156
156
|
async resizeItemImgOnlyPublish(payload, param) {
|
|
157
157
|
return this.amqpManager.onlyPublish('상품 썸네일 이미지 리사이징 (version 0)', 'store-item.resize.item-img', payload, param);
|
|
158
158
|
}
|
|
159
|
+
async getStoreInfosByItemIds(payload, param) {
|
|
160
|
+
return this.amqpManager.call('상품 아이디 리스트로 해당 상품 스토어 정보 검색', 'store-item.get.store-infos-by-item-ids', payload, param, { isErrorThrowing: true });
|
|
161
|
+
}
|
|
159
162
|
};
|
|
160
163
|
exports.AmqpStoreItemService = AmqpStoreItemService;
|
|
161
164
|
exports.AmqpStoreItemService = AmqpStoreItemService = __decorate([
|