@yolo-croket-dev/amqp-access 0.7.212 → 0.7.214
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/order-server/dto/purchasedinfos/query/search-seller-transaction-history-by-process.dto.d.ts +2 -0
- 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/resume-selling-bulk.dto.d.ts +28 -0
- package/store-item-server/dto/store-item/command/resume-selling-bulk.dto.js +43 -0
- package/store-item-server/dto/store-item/command/update-store-item-seller-memo.dto.d.ts +2 -1
- package/store-item-server/dto/store-item/command/update-store-item-seller-memo.dto.js +4 -3
- package/store-item-server/dto/store-item/query/search-selling-store-items.dto.d.ts +2 -0
- package/store-item-server/dto/store-item/query/search-selling-store-items.dto.js +7 -0
- package/store-item-server/services/amqp.store-item.service.d.ts +3 -1
- package/store-item-server/services/amqp.store-item.service.js +6 -0
package/package.json
CHANGED
|
@@ -39,3 +39,4 @@ __exportStar(require("./update-naver-enabled-bulk.dto"), exports);
|
|
|
39
39
|
__exportStar(require("./update-item-keywords-bulk.dto"), exports);
|
|
40
40
|
__exportStar(require("./update-is-required-pccc-bulk.dto"), exports);
|
|
41
41
|
__exportStar(require("./update-store-item-seller-memo.dto"), exports);
|
|
42
|
+
__exportStar(require("./resume-selling-bulk.dto"), exports);
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare enum ResumeSellingBulkErrorTypeEnum {
|
|
2
|
+
/** @description 로그인이 필요합니다. */
|
|
3
|
+
NEED_LOGIN = "NEED_LOGIN",
|
|
4
|
+
/** @description 이미 처리 중입니다. 잠시 후 다시 시도해주세요. */
|
|
5
|
+
ALREADY_PROCESSING = "ALREADY_PROCESSING"
|
|
6
|
+
}
|
|
7
|
+
export declare enum ResumeSellingFailReasonEnum {
|
|
8
|
+
NOT_OWNER = "NOT_OWNER",
|
|
9
|
+
NOT_FOUND = "NOT_FOUND",
|
|
10
|
+
HAS_DUE_DATE = "HAS_DUE_DATE",
|
|
11
|
+
RESERVATION_ITEM = "RESERVATION_ITEM",
|
|
12
|
+
ALREADY_SELLING = "ALREADY_SELLING",
|
|
13
|
+
UNKNOWN_ERROR = "UNKNOWN_ERROR"
|
|
14
|
+
}
|
|
15
|
+
export interface ResumeSellingFailedReason {
|
|
16
|
+
category: ResumeSellingFailReasonEnum;
|
|
17
|
+
count: number;
|
|
18
|
+
}
|
|
19
|
+
export interface ResumeSellingBulkResult {
|
|
20
|
+
succeededCount: number;
|
|
21
|
+
failedCount: number;
|
|
22
|
+
failedReasons: ResumeSellingFailedReason[];
|
|
23
|
+
}
|
|
24
|
+
export declare class ResumeSellingSelectedBulkPayload {
|
|
25
|
+
itemIds: string[];
|
|
26
|
+
}
|
|
27
|
+
export declare class ResumeSellingAllBulkPayload {
|
|
28
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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.ResumeSellingAllBulkPayload = exports.ResumeSellingSelectedBulkPayload = exports.ResumeSellingFailReasonEnum = exports.ResumeSellingBulkErrorTypeEnum = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
var ResumeSellingBulkErrorTypeEnum;
|
|
15
|
+
(function (ResumeSellingBulkErrorTypeEnum) {
|
|
16
|
+
/** @description 로그인이 필요합니다. */
|
|
17
|
+
ResumeSellingBulkErrorTypeEnum["NEED_LOGIN"] = "NEED_LOGIN";
|
|
18
|
+
/** @description 이미 처리 중입니다. 잠시 후 다시 시도해주세요. */
|
|
19
|
+
ResumeSellingBulkErrorTypeEnum["ALREADY_PROCESSING"] = "ALREADY_PROCESSING";
|
|
20
|
+
})(ResumeSellingBulkErrorTypeEnum || (exports.ResumeSellingBulkErrorTypeEnum = ResumeSellingBulkErrorTypeEnum = {}));
|
|
21
|
+
var ResumeSellingFailReasonEnum;
|
|
22
|
+
(function (ResumeSellingFailReasonEnum) {
|
|
23
|
+
ResumeSellingFailReasonEnum["NOT_OWNER"] = "NOT_OWNER";
|
|
24
|
+
ResumeSellingFailReasonEnum["NOT_FOUND"] = "NOT_FOUND";
|
|
25
|
+
ResumeSellingFailReasonEnum["HAS_DUE_DATE"] = "HAS_DUE_DATE";
|
|
26
|
+
ResumeSellingFailReasonEnum["RESERVATION_ITEM"] = "RESERVATION_ITEM";
|
|
27
|
+
ResumeSellingFailReasonEnum["ALREADY_SELLING"] = "ALREADY_SELLING";
|
|
28
|
+
ResumeSellingFailReasonEnum["UNKNOWN_ERROR"] = "UNKNOWN_ERROR";
|
|
29
|
+
})(ResumeSellingFailReasonEnum || (exports.ResumeSellingFailReasonEnum = ResumeSellingFailReasonEnum = {}));
|
|
30
|
+
class ResumeSellingSelectedBulkPayload {
|
|
31
|
+
}
|
|
32
|
+
exports.ResumeSellingSelectedBulkPayload = ResumeSellingSelectedBulkPayload;
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsArray)(),
|
|
35
|
+
(0, class_validator_1.ArrayMinSize)(1),
|
|
36
|
+
(0, class_validator_1.ArrayMaxSize)(5000),
|
|
37
|
+
(0, class_validator_1.ArrayUnique)(),
|
|
38
|
+
(0, class_validator_1.IsMongoId)({ each: true }),
|
|
39
|
+
__metadata("design:type", Array)
|
|
40
|
+
], ResumeSellingSelectedBulkPayload.prototype, "itemIds", void 0);
|
|
41
|
+
class ResumeSellingAllBulkPayload {
|
|
42
|
+
}
|
|
43
|
+
exports.ResumeSellingAllBulkPayload = ResumeSellingAllBulkPayload;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
export declare const STORE_ITEM_SELLER_MEMO_MAX_LENGTH = 1000;
|
|
1
2
|
/**
|
|
2
3
|
* @author jun
|
|
3
4
|
* @description 셀러 상품 관리 메모 수정 요청
|
|
4
|
-
* @process 상품 식별자와
|
|
5
|
+
* @process 상품 식별자와 1,000자 이하 메모를 검증한다.
|
|
5
6
|
*/
|
|
6
7
|
export declare class UpdateStoreItemSellerMemoPayload {
|
|
7
8
|
itemId: string;
|
|
@@ -9,12 +9,13 @@ 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.UpdateStoreItemSellerMemoPayload = void 0;
|
|
12
|
+
exports.UpdateStoreItemSellerMemoPayload = exports.STORE_ITEM_SELLER_MEMO_MAX_LENGTH = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
+
exports.STORE_ITEM_SELLER_MEMO_MAX_LENGTH = 1000;
|
|
14
15
|
/**
|
|
15
16
|
* @author jun
|
|
16
17
|
* @description 셀러 상품 관리 메모 수정 요청
|
|
17
|
-
* @process 상품 식별자와
|
|
18
|
+
* @process 상품 식별자와 1,000자 이하 메모를 검증한다.
|
|
18
19
|
*/
|
|
19
20
|
class UpdateStoreItemSellerMemoPayload {
|
|
20
21
|
}
|
|
@@ -25,6 +26,6 @@ __decorate([
|
|
|
25
26
|
], UpdateStoreItemSellerMemoPayload.prototype, "itemId", void 0);
|
|
26
27
|
__decorate([
|
|
27
28
|
(0, class_validator_1.IsString)(),
|
|
28
|
-
(0, class_validator_1.MaxLength)(
|
|
29
|
+
(0, class_validator_1.MaxLength)(exports.STORE_ITEM_SELLER_MEMO_MAX_LENGTH),
|
|
29
30
|
__metadata("design:type", String)
|
|
30
31
|
], UpdateStoreItemSellerMemoPayload.prototype, "sellerMemo", void 0);
|
|
@@ -42,6 +42,8 @@ export declare class SearchSellingStoreItemsPayload {
|
|
|
42
42
|
sellingType: SearchSellingStoreItemsSellingTypeEnum;
|
|
43
43
|
/** 검색어 */
|
|
44
44
|
searchText?: string;
|
|
45
|
+
/** true면 마감일이 있거나 예약 상품인 상품을 제외 (일괄 판매 개시 대상 조회용) */
|
|
46
|
+
isResumableOnly?: boolean;
|
|
45
47
|
}
|
|
46
48
|
export interface SearchSellingStoreItemsResult {
|
|
47
49
|
storeItems: StandSellingStoreItem[];
|
|
@@ -59,3 +59,10 @@ __decorate([
|
|
|
59
59
|
,
|
|
60
60
|
__metadata("design:type", String)
|
|
61
61
|
], SearchSellingStoreItemsPayload.prototype, "searchText", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, class_validator_1.IsBoolean)(),
|
|
64
|
+
(0, class_validator_1.IsOptional)()
|
|
65
|
+
/** true면 마감일이 있거나 예약 상품인 상품을 제외 (일괄 판매 개시 대상 조회용) */
|
|
66
|
+
,
|
|
67
|
+
__metadata("design:type", Boolean)
|
|
68
|
+
], SearchSellingStoreItemsPayload.prototype, "isResumableOnly", void 0);
|
|
@@ -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, 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, GetCroCareStoreItemInfoPayload, GetCroCareStoreItemInfoResult, GetStoreItemsForProductFeedPayload, GetStoreItemsForProductFeedResult, GetMetaProductFeedSyncStatusByItemIdsPayload, GetMetaProductFeedSyncStatusByItemIdsResult, UpdateItemKeywordsBulkPayload, UpdateItemKeywordsBulkResult, SearchStoreItemsForEnuriSummaryEpPayload, SearchStoreItemsForEnuriSummaryEpResult } 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, 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, ResumeSellingSelectedBulkPayload, ResumeSellingAllBulkPayload, ResumeSellingBulkResult, GetCroCareStoreItemInfoPayload, GetCroCareStoreItemInfoResult, GetStoreItemsForProductFeedPayload, GetStoreItemsForProductFeedResult, GetMetaProductFeedSyncStatusByItemIdsPayload, GetMetaProductFeedSyncStatusByItemIdsResult, UpdateItemKeywordsBulkPayload, UpdateItemKeywordsBulkResult, SearchStoreItemsForEnuriSummaryEpPayload, SearchStoreItemsForEnuriSummaryEpResult } from '../dto/store-item';
|
|
4
4
|
export declare class AmqpStoreItemService {
|
|
5
5
|
private readonly client;
|
|
6
6
|
private readonly amqpManager;
|
|
@@ -70,6 +70,8 @@ export declare class AmqpStoreItemService {
|
|
|
70
70
|
updateStoreItemGlobalInfoBulk(payload: UpdateStoreItemGlobalInfoBulkPayload, param: AbstractParam): Promise<string>;
|
|
71
71
|
updateNaverEnabledBulk(payload: UpdateNaverEnabledBulkPayload, param: AbstractParam): Promise<void>;
|
|
72
72
|
updateIsRequiredPCCCBulk(payload: UpdateIsRequiredPCCCBulkPayload, param: AbstractParam): Promise<UpdateIsRequiredPCCCBulkResult>;
|
|
73
|
+
resumeSellingSelectedBulk(payload: ResumeSellingSelectedBulkPayload, param: AbstractParam): Promise<ResumeSellingBulkResult>;
|
|
74
|
+
resumeSellingAllBulk(payload: ResumeSellingAllBulkPayload, param: AbstractParam): Promise<ResumeSellingBulkResult>;
|
|
73
75
|
getCroCareStoreItemInfo(payload: GetCroCareStoreItemInfoPayload, param: AbstractParam): Promise<GetCroCareStoreItemInfoResult>;
|
|
74
76
|
getStoreItemsForProductFeed(payload: GetStoreItemsForProductFeedPayload, param: AbstractParam): Promise<GetStoreItemsForProductFeedResult>;
|
|
75
77
|
searchStoreItemsForEnuriSummaryEp(payload: SearchStoreItemsForEnuriSummaryEpPayload, param: AbstractParam): Promise<SearchStoreItemsForEnuriSummaryEpResult>;
|
|
@@ -208,6 +208,12 @@ let AmqpStoreItemService = class AmqpStoreItemService {
|
|
|
208
208
|
async updateIsRequiredPCCCBulk(payload, param) {
|
|
209
209
|
return this.amqpManager.call('상품 개인통관고유부호 필요 여부 대량 업데이트 -관리자-', 'store-item.update.is-required-pccc-bulk', payload, param, { isErrorThrowing: true });
|
|
210
210
|
}
|
|
211
|
+
async resumeSellingSelectedBulk(payload, param) {
|
|
212
|
+
return this.amqpManager.call('선택한 상품 일괄 판매 개시', 'store-item.update.resume-selling-selected', payload, param, { isErrorThrowing: true });
|
|
213
|
+
}
|
|
214
|
+
async resumeSellingAllBulk(payload, param) {
|
|
215
|
+
return this.amqpManager.call('전체 상품 일괄 판매 개시', 'store-item.update.resume-selling-all', payload, param, { isErrorThrowing: true });
|
|
216
|
+
}
|
|
211
217
|
async getCroCareStoreItemInfo(payload, param) {
|
|
212
218
|
return this.amqpManager.call('크로케어 상품 정보 조회 -상품 상세 이벤트 배너 조회에서 사용 get-event-banner-for-buyer.service(manage-service)-', 'store-item.get.cro-care-store-item-info', payload, param, { isErrorThrowing: true });
|
|
213
219
|
}
|