@yolo-croket-dev/amqp-access 0.7.403 → 0.7.405
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/CHANGELOG.md +6 -0
- package/manage-service/dto/manage-user/command/update-manage-page-favorites.dto.js +1 -0
- package/package.json +1 -1
- package/payment-service/dto/ad-center-settle/query/get-ad-center-settles-for-google-sheet.dto.d.ts +1 -1
- package/store-item-server/dto/store-item/query/get-selling-store-item-ids.dto.d.ts +16 -0
- package/store-item-server/dto/store-item/query/get-selling-store-item-ids.dto.js +18 -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/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 +7 -0
- package/store-item-server/services/amqp.store-item.service.js +8 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.7.404 — 즐겨찾기 중첩 배열 검증 보완
|
|
4
|
+
|
|
5
|
+
- 즐겨찾기 각 항목을 단일 객체로 제한해 중첩 배열이 입력 검증을 통과하지 못하게 합니다.
|
|
6
|
+
- 빈 중첩 배열과 객체가 들어 있는 중첩 배열의 회귀 테스트를 추가합니다.
|
|
7
|
+
- entity-v2 의존 버전은 0.3.65를 유지합니다.
|
|
8
|
+
|
|
3
9
|
## 0.7.403 — 관리자 개인 즐겨찾기
|
|
4
10
|
|
|
5
11
|
- `AmqpManageUserService.getManagePageFavorites`, `updateManagePageFavorites`와 DTO를 공개합니다.
|
|
@@ -39,6 +39,7 @@ __decorate([
|
|
|
39
39
|
(0, class_validator_1.IsArray)(),
|
|
40
40
|
(0, class_validator_1.ArrayMaxSize)(100),
|
|
41
41
|
(0, class_validator_1.ArrayUnique)((favorite) => favorite === null || favorite === void 0 ? void 0 : favorite.path),
|
|
42
|
+
(0, class_validator_1.IsObject)({ each: true }),
|
|
42
43
|
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
43
44
|
(0, class_transformer_1.Type)(() => ManagePageFavoritePayload),
|
|
44
45
|
__metadata("design:type", Array)
|
package/package.json
CHANGED
package/payment-service/dto/ad-center-settle/query/get-ad-center-settles-for-google-sheet.dto.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AdCenterSettle } from '@yolo-croket-dev/entity/src/ad-center-settle/ad-center-settle.schema';
|
|
2
2
|
import { BusinessInfo } from '@yolo-croket-dev/entity/src/store';
|
|
3
|
-
declare const AdCenterSettleForGoogleSheet_base: import("@nestjs/common").Type<Pick<AdCenterSettle, "_id" | "sellerId" | "couponInfo" | "publicId" | "pastStoreInfo" | "expectedSettleDateString" | "adType" | "adCenterStartDateString" | "adCenterEndDateString" | "actualSettleDateString" | "PInfoId" | "transactionInfo" | "subtractionSettleAmountInfo" | "bizMemo" | "financeMemo" | "settlementManagerInfo" | "googleSheetInfo">>;
|
|
3
|
+
declare const AdCenterSettleForGoogleSheet_base: import("@nestjs/common/interfaces").Type<Pick<AdCenterSettle, "_id" | "sellerId" | "couponInfo" | "publicId" | "pastStoreInfo" | "expectedSettleDateString" | "adType" | "adCenterStartDateString" | "adCenterEndDateString" | "actualSettleDateString" | "PInfoId" | "transactionInfo" | "subtractionSettleAmountInfo" | "bizMemo" | "financeMemo" | "settlementManagerInfo" | "googleSheetInfo">>;
|
|
4
4
|
/** 구글 시트용 광고센터정산 데이터 */
|
|
5
5
|
export declare class AdCenterSettleForGoogleSheet extends AdCenterSettleForGoogleSheet_base {
|
|
6
6
|
storeInfo: {
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SearchSellingStoreItemsPayload } from './search-selling-store-items.dto';
|
|
2
|
+
export declare const MAX_SELLER_BULK_EXPORT_ITEMS = 5000;
|
|
3
|
+
declare const GetSellingStoreItemIdsPayload_base: import("@nestjs/mapped-types").MappedType<Pick<SearchSellingStoreItemsPayload, "searchText" | "isSoldOut" | "sellingType">>;
|
|
4
|
+
/**
|
|
5
|
+
* @author 홍준
|
|
6
|
+
* @description 수정용 Excel 전체 선택에 사용할 셀러 상품 검색 조건입니다.
|
|
7
|
+
* @process 공용 목록의 판매 상태·상품 검색·품절 필터 검증을 재사용합니다.
|
|
8
|
+
*/
|
|
9
|
+
export declare class GetSellingStoreItemIdsPayload extends GetSellingStoreItemIdsPayload_base {
|
|
10
|
+
}
|
|
11
|
+
export interface GetSellingStoreItemIdsResult {
|
|
12
|
+
itemIds: string[];
|
|
13
|
+
/** 5000개 초과 시 부분 목록을 선택하지 않고 사용자에게 범위 축소를 안내합니다. */
|
|
14
|
+
hasMore: boolean;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetSellingStoreItemIdsPayload = exports.MAX_SELLER_BULK_EXPORT_ITEMS = void 0;
|
|
4
|
+
const mapped_types_1 = require("@nestjs/mapped-types");
|
|
5
|
+
const search_selling_store_items_dto_1 = require("./search-selling-store-items.dto");
|
|
6
|
+
exports.MAX_SELLER_BULK_EXPORT_ITEMS = 5000;
|
|
7
|
+
/**
|
|
8
|
+
* @author 홍준
|
|
9
|
+
* @description 수정용 Excel 전체 선택에 사용할 셀러 상품 검색 조건입니다.
|
|
10
|
+
* @process 공용 목록의 판매 상태·상품 검색·품절 필터 검증을 재사용합니다.
|
|
11
|
+
*/
|
|
12
|
+
class GetSellingStoreItemIdsPayload extends (0, mapped_types_1.PickType)(search_selling_store_items_dto_1.SearchSellingStoreItemsPayload, [
|
|
13
|
+
'sellingType',
|
|
14
|
+
'searchText',
|
|
15
|
+
'isSoldOut',
|
|
16
|
+
]) {
|
|
17
|
+
}
|
|
18
|
+
exports.GetSellingStoreItemIdsPayload = GetSellingStoreItemIdsPayload;
|
|
@@ -35,3 +35,4 @@ export * from './search-store-items-for-enuri-summary-ep.dto';
|
|
|
35
35
|
export * from './get-store-item-seller-memo.dto';
|
|
36
36
|
export * from './get-abroad-shipping-store-item-exists.dto';
|
|
37
37
|
export * from './get-used-store-items-by-brand-category.dto';
|
|
38
|
+
export * from './get-selling-store-item-ids.dto';
|
|
@@ -51,3 +51,4 @@ __exportStar(require("./search-store-items-for-enuri-summary-ep.dto"), exports);
|
|
|
51
51
|
__exportStar(require("./get-store-item-seller-memo.dto"), exports);
|
|
52
52
|
__exportStar(require("./get-abroad-shipping-store-item-exists.dto"), exports);
|
|
53
53
|
__exportStar(require("./get-used-store-items-by-brand-category.dto"), exports);
|
|
54
|
+
__exportStar(require("./get-selling-store-item-ids.dto"), exports);
|
|
@@ -45,6 +45,8 @@ export declare class SearchSellingStoreItemsPayload {
|
|
|
45
45
|
searchText?: string;
|
|
46
46
|
/** 셀러 메모 검색어 */
|
|
47
47
|
sellerMemoSearchText?: string;
|
|
48
|
+
/** true면 품절 상품, false면 재고가 있는 상품만 조회 */
|
|
49
|
+
isSoldOut?: boolean;
|
|
48
50
|
/** true면 마감일이 있거나 예약 상품인 상품을 제외 (일괄 판매 개시 대상 조회용) */
|
|
49
51
|
isResumableOnly?: boolean;
|
|
50
52
|
}
|
|
@@ -79,6 +79,13 @@ __decorate([
|
|
|
79
79
|
,
|
|
80
80
|
__metadata("design:type", String)
|
|
81
81
|
], SearchSellingStoreItemsPayload.prototype, "sellerMemoSearchText", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, class_validator_1.IsBoolean)(),
|
|
84
|
+
(0, class_validator_1.IsOptional)()
|
|
85
|
+
/** true면 품절 상품, false면 재고가 있는 상품만 조회 */
|
|
86
|
+
,
|
|
87
|
+
__metadata("design:type", Boolean)
|
|
88
|
+
], SearchSellingStoreItemsPayload.prototype, "isSoldOut", void 0);
|
|
82
89
|
__decorate([
|
|
83
90
|
(0, class_validator_1.IsBoolean)(),
|
|
84
91
|
(0, class_validator_1.IsOptional)()
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
+
import { GetSellingStoreItemIdsPayload, GetSellingStoreItemIdsResult } from '../dto/store-item/query/get-selling-store-item-ids.dto';
|
|
3
4
|
import { GetStoreItemLegaciesPayload, GetStoreItemLegaciesResult, GetSellingItemIdsByStoreIdPayload, GetSellingItemIdsByStoreIdResult, GetSellerStoreCouponRegistrationStatusResult, SearchSellingStoreItemsPayload, SearchSellingStoreItemsResult, SearchNormalSellingStoreItemsForBulkStopPayload, SearchNormalSellingStoreItemsForBulkStopResult, GetStoreItemsForESPayload, GetStoreItemsForESResult, GetLegacyStoreItemsByAtlasSearchPayload, GetLegacyStoreItemsByAtlasSearchResult, GetStoreItemIdsByAtlasSearchPayload, GetStoreItemIdsByAtlasSearchResult, GetStoreItemInfoByIdPayload, GetStoreItemInfoByIdResult, GetSellingItemIdsByThemeIdPayload, GetSellingItemIdsByThemeIdResult, SearchStoreItemNameByIdPayload, SearchStoreItemNameByIdResult, GetSellerOwnedStoreItemByIdPayload, GetSellerOwnedStoreItemByIdResult, 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, PatchStoreItemOptionRemainCountByChangePurchasedOptionResult, 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, GetStoreItemsForKakaoCatalogPayload, GetStoreItemsForKakaoCatalogResult, GetMetaProductFeedSyncStatusByItemIdsPayload, GetMetaProductFeedSyncStatusByItemIdsResult, UpdateItemKeywordsBulkPayload, UpdateItemKeywordsBulkResult, SearchStoreItemsForEnuriSummaryEpPayload, SearchStoreItemsForEnuriSummaryEpResult, RefreshShippingLeadTimeStatsPayload, GetAbroadShippingStoreItemExistsResult, CreateAdditionalPaymentStoreItemPayload, CreateAdditionalPaymentStoreItemResult, GetUsedStoreItemsByBrandCategoryPayload, GetUsedStoreItemsByBrandCategoryResult, RunInstantSelectionSyncPayload, RunInstantSelectionSyncResult, BackfillInstantSelectionSyncPayload, BackfillInstantSelectionSyncResult, ResetInstantSelectionSyncPayload, ResetInstantSelectionSyncResult } from '../dto/store-item';
|
|
4
5
|
export declare class AmqpStoreItemService {
|
|
5
6
|
private readonly client;
|
|
@@ -28,6 +29,12 @@ export declare class AmqpStoreItemService {
|
|
|
28
29
|
getSellingItemIdsByStoreId(payload: GetSellingItemIdsByStoreIdPayload, param: AbstractParam): Promise<GetSellingItemIdsByStoreIdResult>;
|
|
29
30
|
getSellerStoreCouponRegistrationStatus(param: AbstractParam): Promise<GetSellerStoreCouponRegistrationStatusResult>;
|
|
30
31
|
getSellingItemIdsByThemeId(payload: GetSellingItemIdsByThemeIdPayload, param: AbstractParam): Promise<GetSellingItemIdsByThemeIdResult>;
|
|
32
|
+
/**
|
|
33
|
+
* @author 홍준
|
|
34
|
+
* @description 셀러 상품의 전체 선택을 위해 상세 데이터 없이 ID만 조회합니다.
|
|
35
|
+
* @process 인증 컨텍스트와 공용 검색 조건을 상품 소유 서비스에 전달합니다.
|
|
36
|
+
*/
|
|
37
|
+
getSellingStoreItemIds(payload: GetSellingStoreItemIdsPayload, param: AbstractParam): Promise<GetSellingStoreItemIdsResult>;
|
|
31
38
|
searchSellingStoreItems(payload: SearchSellingStoreItemsPayload, param: AbstractParam): Promise<SearchSellingStoreItemsResult>;
|
|
32
39
|
/**
|
|
33
40
|
* @author 홍준
|
|
@@ -68,6 +68,14 @@ let AmqpStoreItemService = class AmqpStoreItemService {
|
|
|
68
68
|
async getSellingItemIdsByThemeId(payload, param) {
|
|
69
69
|
return this.amqpManager.call('매거진에 연결되어져 있는 판매중인 상품 아이디 리스트 호출', 'store-item.get.selling-item-ids-by-theme-id', payload, param, { isErrorThrowing: true });
|
|
70
70
|
}
|
|
71
|
+
/**
|
|
72
|
+
* @author 홍준
|
|
73
|
+
* @description 셀러 상품의 전체 선택을 위해 상세 데이터 없이 ID만 조회합니다.
|
|
74
|
+
* @process 인증 컨텍스트와 공용 검색 조건을 상품 소유 서비스에 전달합니다.
|
|
75
|
+
*/
|
|
76
|
+
async getSellingStoreItemIds(payload, param) {
|
|
77
|
+
return this.amqpManager.call('셀러 상품 전체 선택 ID 조회', 'store-item.get.selling-store-item-ids', payload, param, { isErrorThrowing: true });
|
|
78
|
+
}
|
|
71
79
|
async searchSellingStoreItems(payload, param) {
|
|
72
80
|
return this.amqpManager.call('셀러 판매 상품 관리 리스트 호출', 'store-item.get.selling-store-item-list', payload, param, { isErrorThrowing: true });
|
|
73
81
|
}
|