@yolo-croket-dev/amqp-access 0.7.243 → 0.7.244
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/command/index.d.ts +1 -0
- package/store-item-server/dto/store-item/command/index.js +1 -0
- package/store-item-server/dto/store-item/command/used-selling-bulk.dto.d.ts +26 -0
- package/store-item-server/dto/store-item/command/used-selling-bulk.dto.js +41 -0
- package/store-item-server/services/amqp.store-item.service.d.ts +9 -1
- package/store-item-server/services/amqp.store-item.service.js +16 -0
- package/.claude/settings.local.json +0 -11
package/package.json
CHANGED
|
@@ -25,4 +25,5 @@ export * from './update-is-required-pccc-bulk.dto';
|
|
|
25
25
|
export * from './update-store-item-seller-memo.dto';
|
|
26
26
|
export * from './resume-selling-bulk.dto';
|
|
27
27
|
export * from './stop-selling-bulk.dto';
|
|
28
|
+
export * from './used-selling-bulk.dto';
|
|
28
29
|
export * from './refresh-shipping-lead-time-stats.dto';
|
|
@@ -41,4 +41,5 @@ __exportStar(require("./update-is-required-pccc-bulk.dto"), exports);
|
|
|
41
41
|
__exportStar(require("./update-store-item-seller-memo.dto"), exports);
|
|
42
42
|
__exportStar(require("./resume-selling-bulk.dto"), exports);
|
|
43
43
|
__exportStar(require("./stop-selling-bulk.dto"), exports);
|
|
44
|
+
__exportStar(require("./used-selling-bulk.dto"), exports);
|
|
44
45
|
__exportStar(require("./refresh-shipping-lead-time-stats.dto"), exports);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare enum UsedSellingBulkErrorTypeEnum {
|
|
2
|
+
NEED_LOGIN = "NEED_LOGIN"
|
|
3
|
+
}
|
|
4
|
+
export declare enum UsedSellingBulkFailReasonEnum {
|
|
5
|
+
NOT_OWNER = "NOT_OWNER",
|
|
6
|
+
NOT_FOUND = "NOT_FOUND",
|
|
7
|
+
NOT_USED_ITEM = "NOT_USED_ITEM",
|
|
8
|
+
ALREADY_STOPPED = "ALREADY_STOPPED",
|
|
9
|
+
ALREADY_SELLING = "ALREADY_SELLING",
|
|
10
|
+
DIRECT_ONLY_DELIVERY = "DIRECT_ONLY_DELIVERY",
|
|
11
|
+
UNKNOWN_ERROR = "UNKNOWN_ERROR"
|
|
12
|
+
}
|
|
13
|
+
export interface UsedSellingBulkFailedReason {
|
|
14
|
+
category: UsedSellingBulkFailReasonEnum;
|
|
15
|
+
count: number;
|
|
16
|
+
}
|
|
17
|
+
export interface UsedSellingBulkResult {
|
|
18
|
+
succeededCount: number;
|
|
19
|
+
failedCount: number;
|
|
20
|
+
failedReasons: UsedSellingBulkFailedReason[];
|
|
21
|
+
}
|
|
22
|
+
export declare class UsedSellingSelectedBulkPayload {
|
|
23
|
+
itemIds: string[];
|
|
24
|
+
}
|
|
25
|
+
export declare class UsedSellingAllBulkPayload {
|
|
26
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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.UsedSellingAllBulkPayload = exports.UsedSellingSelectedBulkPayload = exports.UsedSellingBulkFailReasonEnum = exports.UsedSellingBulkErrorTypeEnum = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
var UsedSellingBulkErrorTypeEnum;
|
|
15
|
+
(function (UsedSellingBulkErrorTypeEnum) {
|
|
16
|
+
UsedSellingBulkErrorTypeEnum["NEED_LOGIN"] = "NEED_LOGIN";
|
|
17
|
+
})(UsedSellingBulkErrorTypeEnum || (exports.UsedSellingBulkErrorTypeEnum = UsedSellingBulkErrorTypeEnum = {}));
|
|
18
|
+
var UsedSellingBulkFailReasonEnum;
|
|
19
|
+
(function (UsedSellingBulkFailReasonEnum) {
|
|
20
|
+
UsedSellingBulkFailReasonEnum["NOT_OWNER"] = "NOT_OWNER";
|
|
21
|
+
UsedSellingBulkFailReasonEnum["NOT_FOUND"] = "NOT_FOUND";
|
|
22
|
+
UsedSellingBulkFailReasonEnum["NOT_USED_ITEM"] = "NOT_USED_ITEM";
|
|
23
|
+
UsedSellingBulkFailReasonEnum["ALREADY_STOPPED"] = "ALREADY_STOPPED";
|
|
24
|
+
UsedSellingBulkFailReasonEnum["ALREADY_SELLING"] = "ALREADY_SELLING";
|
|
25
|
+
UsedSellingBulkFailReasonEnum["DIRECT_ONLY_DELIVERY"] = "DIRECT_ONLY_DELIVERY";
|
|
26
|
+
UsedSellingBulkFailReasonEnum["UNKNOWN_ERROR"] = "UNKNOWN_ERROR";
|
|
27
|
+
})(UsedSellingBulkFailReasonEnum || (exports.UsedSellingBulkFailReasonEnum = UsedSellingBulkFailReasonEnum = {}));
|
|
28
|
+
class UsedSellingSelectedBulkPayload {
|
|
29
|
+
}
|
|
30
|
+
exports.UsedSellingSelectedBulkPayload = UsedSellingSelectedBulkPayload;
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_validator_1.IsArray)(),
|
|
33
|
+
(0, class_validator_1.ArrayMinSize)(1),
|
|
34
|
+
(0, class_validator_1.ArrayMaxSize)(200),
|
|
35
|
+
(0, class_validator_1.ArrayUnique)(),
|
|
36
|
+
(0, class_validator_1.IsMongoId)({ each: true }),
|
|
37
|
+
__metadata("design:type", Array)
|
|
38
|
+
], UsedSellingSelectedBulkPayload.prototype, "itemIds", void 0);
|
|
39
|
+
class UsedSellingAllBulkPayload {
|
|
40
|
+
}
|
|
41
|
+
exports.UsedSellingAllBulkPayload = UsedSellingAllBulkPayload;
|
|
@@ -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, SearchNormalSellingStoreItemsForBulkStopPayload, SearchNormalSellingStoreItemsForBulkStopResult, 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, 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, CopyStoreItemPayload, CopyStoreItemListPayload, GetCouponCodesBySellingItemPayload, GetCouponCodesBySellingItemResult, UpdateStoreItemSecretPayload, GetSellingStoreItemsForChatPayload, GetSellingStoreItemsForChatResult, GetStoreItemsByPreBlackFridayIdPayload, GetStoreItemsByPreBlackFridayIdResult, UpdateBrandInfosPayload, UpdateBrandInfosResult, SearchRegularPriceItemsForAdminResult, SearchRegularPriceItemsForAdminPayload, UpdateRegularPriceByAdminPayload, RegRegularPriceBulkByAdminPayload, DeleteRegularPriceByAdminPayload, SearchSecretItemsForAdminPayload, SearchSecretItemsForAdminResult, RegItemNameEngBulkByAdminPayload, UpdateStoreItemGlobalInfoBulkPayload, UpdateNaverEnabledBulkPayload, UpdateIsRequiredPCCCBulkPayload, UpdateIsRequiredPCCCBulkResult, UpdateStoreItemSellerMemoPayload, UpdateStoreItemSellerMemoResult, GetStoreItemSellerMemoPayload, GetStoreItemSellerMemoResult, ResumeSellingSelectedBulkPayload, ResumeSellingAllBulkPayload, ResumeSellingBulkResult, StopSellingSelectedBulkPayload, StopSellingAllBulkPayload, StopSellingBulkResult, GetCroCareStoreItemInfoPayload, GetCroCareStoreItemInfoResult, GetStoreItemsForProductFeedPayload, GetStoreItemsForProductFeedResult, GetMetaProductFeedSyncStatusByItemIdsPayload, GetMetaProductFeedSyncStatusByItemIdsResult, UpdateItemKeywordsBulkPayload, UpdateItemKeywordsBulkResult, SearchStoreItemsForEnuriSummaryEpPayload, SearchStoreItemsForEnuriSummaryEpResult, RefreshShippingLeadTimeStatsPayload } from '../dto/store-item';
|
|
3
|
+
import { GetStoreItemLegaciesPayload, GetStoreItemLegaciesResult, GetSellingItemIdsByStoreIdPayload, GetSellingItemIdsByStoreIdResult, SearchSellingStoreItemsPayload, SearchSellingStoreItemsResult, SearchNormalSellingStoreItemsForBulkStopPayload, SearchNormalSellingStoreItemsForBulkStopResult, 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, 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, CopyStoreItemPayload, CopyStoreItemListPayload, GetCouponCodesBySellingItemPayload, GetCouponCodesBySellingItemResult, UpdateStoreItemSecretPayload, GetSellingStoreItemsForChatPayload, GetSellingStoreItemsForChatResult, GetStoreItemsByPreBlackFridayIdPayload, GetStoreItemsByPreBlackFridayIdResult, UpdateBrandInfosPayload, UpdateBrandInfosResult, SearchRegularPriceItemsForAdminResult, SearchRegularPriceItemsForAdminPayload, UpdateRegularPriceByAdminPayload, RegRegularPriceBulkByAdminPayload, DeleteRegularPriceByAdminPayload, SearchSecretItemsForAdminPayload, SearchSecretItemsForAdminResult, RegItemNameEngBulkByAdminPayload, UpdateStoreItemGlobalInfoBulkPayload, UpdateNaverEnabledBulkPayload, UpdateIsRequiredPCCCBulkPayload, UpdateIsRequiredPCCCBulkResult, UpdateStoreItemSellerMemoPayload, UpdateStoreItemSellerMemoResult, GetStoreItemSellerMemoPayload, GetStoreItemSellerMemoResult, ResumeSellingSelectedBulkPayload, ResumeSellingAllBulkPayload, ResumeSellingBulkResult, StopSellingSelectedBulkPayload, StopSellingAllBulkPayload, StopSellingBulkResult, UsedSellingSelectedBulkPayload, UsedSellingAllBulkPayload, UsedSellingBulkResult, GetCroCareStoreItemInfoPayload, GetCroCareStoreItemInfoResult, GetStoreItemsForProductFeedPayload, GetStoreItemsForProductFeedResult, GetMetaProductFeedSyncStatusByItemIdsPayload, GetMetaProductFeedSyncStatusByItemIdsResult, UpdateItemKeywordsBulkPayload, UpdateItemKeywordsBulkResult, SearchStoreItemsForEnuriSummaryEpPayload, SearchStoreItemsForEnuriSummaryEpResult, RefreshShippingLeadTimeStatsPayload } from '../dto/store-item';
|
|
4
4
|
export declare class AmqpStoreItemService {
|
|
5
5
|
private readonly client;
|
|
6
6
|
private readonly amqpManager;
|
|
@@ -88,6 +88,14 @@ export declare class AmqpStoreItemService {
|
|
|
88
88
|
stopSellingSelectedBulk(payload: StopSellingSelectedBulkPayload, param: AbstractParam): Promise<StopSellingBulkResult>;
|
|
89
89
|
/** 판매중인 일반 상품 전체를 일괄 판매 중지한다. */
|
|
90
90
|
stopSellingAllBulk(payload: StopSellingAllBulkPayload, param: AbstractParam): Promise<StopSellingBulkResult>;
|
|
91
|
+
/** 선택한 중고 상품을 일괄 판매 중지한다. */
|
|
92
|
+
stopUsedSellingSelectedBulk(payload: UsedSellingSelectedBulkPayload, param: AbstractParam): Promise<UsedSellingBulkResult>;
|
|
93
|
+
/** 판매중인 중고 상품 전체를 일괄 판매 중지한다. */
|
|
94
|
+
stopUsedSellingAllBulk(payload: UsedSellingAllBulkPayload, param: AbstractParam): Promise<UsedSellingBulkResult>;
|
|
95
|
+
/** 선택한 중고 상품을 일괄 판매 개시한다. */
|
|
96
|
+
resumeUsedSellingSelectedBulk(payload: UsedSellingSelectedBulkPayload, param: AbstractParam): Promise<UsedSellingBulkResult>;
|
|
97
|
+
/** 판매중지 중고 상품 전체를 일괄 판매 개시한다. */
|
|
98
|
+
resumeUsedSellingAllBulk(payload: UsedSellingAllBulkPayload, param: AbstractParam): Promise<UsedSellingBulkResult>;
|
|
91
99
|
getCroCareStoreItemInfo(payload: GetCroCareStoreItemInfoPayload, param: AbstractParam): Promise<GetCroCareStoreItemInfoResult>;
|
|
92
100
|
getStoreItemsForProductFeed(payload: GetStoreItemsForProductFeedPayload, param: AbstractParam): Promise<GetStoreItemsForProductFeedResult>;
|
|
93
101
|
searchStoreItemsForEnuriSummaryEp(payload: SearchStoreItemsForEnuriSummaryEpPayload, param: AbstractParam): Promise<SearchStoreItemsForEnuriSummaryEpResult>;
|
|
@@ -242,6 +242,22 @@ let AmqpStoreItemService = class AmqpStoreItemService {
|
|
|
242
242
|
async stopSellingAllBulk(payload, param) {
|
|
243
243
|
return this.amqpManager.call('일반 상품 전체 일괄 판매 중지', 'store-item.update.stop-selling-all', payload, param, { isErrorThrowing: true });
|
|
244
244
|
}
|
|
245
|
+
/** 선택한 중고 상품을 일괄 판매 중지한다. */
|
|
246
|
+
async stopUsedSellingSelectedBulk(payload, param) {
|
|
247
|
+
return this.amqpManager.call('선택한 중고 상품 일괄 판매 중지', 'store-item.update.used-selling-stop-selected', payload, param, { isErrorThrowing: true });
|
|
248
|
+
}
|
|
249
|
+
/** 판매중인 중고 상품 전체를 일괄 판매 중지한다. */
|
|
250
|
+
async stopUsedSellingAllBulk(payload, param) {
|
|
251
|
+
return this.amqpManager.call('판매중인 중고 상품 전체 일괄 판매 중지', 'store-item.update.used-selling-stop-all', payload, param, { isErrorThrowing: true });
|
|
252
|
+
}
|
|
253
|
+
/** 선택한 중고 상품을 일괄 판매 개시한다. */
|
|
254
|
+
async resumeUsedSellingSelectedBulk(payload, param) {
|
|
255
|
+
return this.amqpManager.call('선택한 중고 상품 일괄 판매 개시', 'store-item.update.used-selling-resume-selected', payload, param, { isErrorThrowing: true });
|
|
256
|
+
}
|
|
257
|
+
/** 판매중지 중고 상품 전체를 일괄 판매 개시한다. */
|
|
258
|
+
async resumeUsedSellingAllBulk(payload, param) {
|
|
259
|
+
return this.amqpManager.call('판매중지 중고 상품 전체 일괄 판매 개시', 'store-item.update.used-selling-resume-all', payload, param, { isErrorThrowing: true });
|
|
260
|
+
}
|
|
245
261
|
async getCroCareStoreItemInfo(payload, param) {
|
|
246
262
|
return this.amqpManager.call('크로케어 상품 정보 조회 -상품 상세 이벤트 배너 조회에서 사용 get-event-banner-for-buyer.service(manage-service)-', 'store-item.get.cro-care-store-item-info', payload, param, { isErrorThrowing: true });
|
|
247
263
|
}
|