@yolo-croket-dev/amqp-access 0.7.439 → 0.7.440-sj2

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.
Files changed (26) hide show
  1. package/order-server/dto/purchasedinfos/query/atlas/store-item/get-purchased-item-payment-counts-by-window.dto.d.ts +16 -0
  2. package/order-server/dto/purchasedinfos/query/atlas/store-item/get-purchased-item-payment-counts-by-window.dto.js +41 -0
  3. package/order-server/dto/purchasedinfos/query/atlas/store-item/index.d.ts +1 -0
  4. package/order-server/dto/purchasedinfos/query/atlas/store-item/index.js +1 -0
  5. package/order-server/services/amqp.purchased-info.service.d.ts +2 -1
  6. package/order-server/services/amqp.purchased-info.service.js +3 -0
  7. package/package.json +2 -2
  8. package/store-item-server/dto/store-item/query/get-store-item-ranking-candidate-metas.dto.d.ts +16 -0
  9. package/store-item-server/dto/store-item/query/get-store-item-ranking-candidate-metas.dto.js +25 -0
  10. package/store-item-server/dto/store-item/query/index.d.ts +1 -0
  11. package/store-item-server/dto/store-item/query/index.js +1 -0
  12. package/store-item-server/services/amqp.store-item.service.d.ts +4 -1
  13. package/store-item-server/services/amqp.store-item.service.js +7 -0
  14. package/user-service/dto/store-md-theme/command/index.d.ts +1 -0
  15. package/user-service/dto/store-md-theme/command/index.js +1 -0
  16. package/user-service/dto/store-md-theme/command/refresh-store-md-theme-ranking-snapshot.dto.d.ts +27 -0
  17. package/user-service/dto/store-md-theme/command/refresh-store-md-theme-ranking-snapshot.dto.js +72 -0
  18. package/user-service/dto/store-md-theme/query/get-store-md-theme-real-time-ranking.dto.d.ts +13 -0
  19. package/user-service/dto/store-md-theme/query/get-store-md-theme-real-time-ranking.dto.js +28 -0
  20. package/user-service/dto/store-md-theme/query/get-store-md-theme-time-deal.dto.d.ts +4 -0
  21. package/user-service/dto/store-md-theme/query/get-store-md-theme-time-deal.dto.js +21 -0
  22. package/user-service/dto/store-md-theme/query/index.d.ts +2 -0
  23. package/user-service/dto/store-md-theme/query/index.js +2 -0
  24. package/user-service/dto/store-md-theme/query/store-md-theme-item-index.result.d.ts +11 -1
  25. package/user-service/services/amqp.store-md-theme.service.d.ts +7 -1
  26. package/user-service/services/amqp.store-md-theme.service.js +12 -0
@@ -0,0 +1,16 @@
1
+ /** 최근 1시간 랭킹용 결제 완료 건 집계 요청입니다. */
2
+ export declare class GetPurchasedItemPaymentCountsByWindowPayload {
3
+ startedAt: string;
4
+ endedAt: string;
5
+ runId: string;
6
+ /** 테마전 실시간 랭킹에 실제로 포함된 bounded 후보만 집계합니다. */
7
+ storeItemIds: string[];
8
+ }
9
+ export declare class PurchasedItemPaymentCount {
10
+ storeItemId: string;
11
+ /** 옵션 수량이 아닌 결제 문서 기준 건수입니다. */
12
+ paymentCount: number;
13
+ }
14
+ export declare class GetPurchasedItemPaymentCountsByWindowResult {
15
+ counts: PurchasedItemPaymentCount[];
16
+ }
@@ -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.GetPurchasedItemPaymentCountsByWindowResult = exports.PurchasedItemPaymentCount = exports.GetPurchasedItemPaymentCountsByWindowPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ /** 최근 1시간 랭킹용 결제 완료 건 집계 요청입니다. */
15
+ class GetPurchasedItemPaymentCountsByWindowPayload {
16
+ }
17
+ exports.GetPurchasedItemPaymentCountsByWindowPayload = GetPurchasedItemPaymentCountsByWindowPayload;
18
+ __decorate([
19
+ (0, class_validator_1.IsDateString)(),
20
+ __metadata("design:type", String)
21
+ ], GetPurchasedItemPaymentCountsByWindowPayload.prototype, "startedAt", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsDateString)(),
24
+ __metadata("design:type", String)
25
+ ], GetPurchasedItemPaymentCountsByWindowPayload.prototype, "endedAt", void 0);
26
+ __decorate([
27
+ (0, class_validator_1.IsUUID)(),
28
+ __metadata("design:type", String)
29
+ ], GetPurchasedItemPaymentCountsByWindowPayload.prototype, "runId", void 0);
30
+ __decorate([
31
+ (0, class_validator_1.IsArray)(),
32
+ (0, class_validator_1.ArrayMaxSize)(500),
33
+ (0, class_validator_1.IsMongoId)({ each: true }),
34
+ __metadata("design:type", Array)
35
+ ], GetPurchasedItemPaymentCountsByWindowPayload.prototype, "storeItemIds", void 0);
36
+ class PurchasedItemPaymentCount {
37
+ }
38
+ exports.PurchasedItemPaymentCount = PurchasedItemPaymentCount;
39
+ class GetPurchasedItemPaymentCountsByWindowResult {
40
+ }
41
+ exports.GetPurchasedItemPaymentCountsByWindowResult = GetPurchasedItemPaymentCountsByWindowResult;
@@ -1 +1,2 @@
1
1
  export * from './get-p-nums-group-item-id.dto';
2
+ export * from './get-purchased-item-payment-counts-by-window.dto';
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./get-p-nums-group-item-id.dto"), exports);
18
+ __exportStar(require("./get-purchased-item-payment-counts-by-window.dto"), exports);
@@ -1,6 +1,6 @@
1
1
  import { ClientProxy } from '@nestjs/microservices';
2
2
  import { AbstractParam } from '@yolo-croket-dev/core';
3
- import { GetPInfoSettleAmountInfoByAtlasPayload, GetPInfoSettleAmountInfoByAtlasResult, GetPInfoAllSettleAmountByAtlasResult, GetPInfoLegacySettleLogsByAtlasPayload, GetPInfoLegacySettleLogsByAtlasResult, GetPInfoAccumulatedSettleAmountByAtlasPayload, GetPInfoAccumulatedSettleAmountByAtlasResult, GetPInfoDoneSettleAmountByAtlasPayload, GetPInfoDoneSettleAmountByAtlasResult, GetPInfoExpectSettleAmountByAtlasPayload, GetPInfoExpectSettleAmountByAtlasResult, GetPartialRefundProcessesByPublicIdsPayload, GetPartialRefundProcessesByPublicIdsResult, GetPInfosForManageBuyerByAtlasPayload, GetPInfosForManageBuyerByAtlasResult, GetFacetPInfosForManageBuyerByAtlasPayload, GetFacetPInfosForManageBuyerByAtlasResult, ReloadPInfosForManageBuyerPayload, ReloadPInfosForManageBuyerResult, UpdateAdCenterCouponInfoPayload, UpdateDoneAdCenterCouponInfosPayload, CancelDoneAdCenterCouponInfosPayload, RequestCreateAdCenterCouponSettlePayload, PatchProcessV2ToCheckingStockPayload, PatchProcessV2ToCheckingStockResult, GetItemSaleInfosForSalesTeamByAtlasPayload, GetItemSaleInfosForSalesTeamByAtlasResult, GetItemSaleMergeDataForSalesTeamByAtlasPayload, GetItemSaleMergeDataForSalesTeamByAtlasResult, GetPNumsForShowAdCenterInflowResult, GetPNumsGroupItemIdPayload, GetPNumsGroupItemIdResult, GetPInfoIdsForPredictSettlePayload, GetPInfoIdsForPredictSettleResult, GetPInfosForBeforeDeliveryExcelPayload, GetPInfosForBeforeDeliveryExcelResult, GetPurchasedInfosForUnconfirmedWaitingOrderSellersExcelResult, IsPurchaseStoreItemByUserBulkPayload, IsPurchaseStoreItemByUserBulkResponse, CheckCanChangePurchasedOptionPayload, CheckCanChangePurchasedOptionResult, ChangePurchasedOptionPayload, CheckCanChangePurchasedOptionsByPayTryLogIdPayload, CheckCanChangePurchasedOptionsByPayTryLogIdResult, GetPurchasedInfoItemsForExtractionByTypeResult, GetPInfoForExpectSettleByAtlasResult, GetExpectSettleAmountResult, GetPInfoForExpectSettleByAtlasPayload, GetChangedOptionPublicIdsByIdsPayload, GetChangedOptionPublicIdsByIdsResult, GetPInfosByIdsPayload, GetPInfosByIdsResult, GetPInfosForLuxuryAppraisalPayload, GetPInfosForLuxuryAppraisalResult, GetRefundRatePayload, GetRefundRateResult, ExtendWaitingReceiveByChannelTalkPayload, UpdatePInfoAttributionHistoryIdBulkPayload, CheckBuyerStorePaymentHistoryPayload, SendStoreSellerSaveInvoiceLaterAbroadShippingToBuyerResult, GetPInfoAdditionalPaymentInfoResult, GetPInfoAdditionalPaymentInfoPayload } from '../dto/purchasedinfos';
3
+ import { GetPInfoSettleAmountInfoByAtlasPayload, GetPInfoSettleAmountInfoByAtlasResult, GetPInfoAllSettleAmountByAtlasResult, GetPInfoLegacySettleLogsByAtlasPayload, GetPInfoLegacySettleLogsByAtlasResult, GetPInfoAccumulatedSettleAmountByAtlasPayload, GetPInfoAccumulatedSettleAmountByAtlasResult, GetPInfoDoneSettleAmountByAtlasPayload, GetPInfoDoneSettleAmountByAtlasResult, GetPInfoExpectSettleAmountByAtlasPayload, GetPInfoExpectSettleAmountByAtlasResult, GetPartialRefundProcessesByPublicIdsPayload, GetPartialRefundProcessesByPublicIdsResult, GetPInfosForManageBuyerByAtlasPayload, GetPInfosForManageBuyerByAtlasResult, GetFacetPInfosForManageBuyerByAtlasPayload, GetFacetPInfosForManageBuyerByAtlasResult, ReloadPInfosForManageBuyerPayload, ReloadPInfosForManageBuyerResult, UpdateAdCenterCouponInfoPayload, UpdateDoneAdCenterCouponInfosPayload, CancelDoneAdCenterCouponInfosPayload, RequestCreateAdCenterCouponSettlePayload, PatchProcessV2ToCheckingStockPayload, PatchProcessV2ToCheckingStockResult, GetItemSaleInfosForSalesTeamByAtlasPayload, GetItemSaleInfosForSalesTeamByAtlasResult, GetItemSaleMergeDataForSalesTeamByAtlasPayload, GetItemSaleMergeDataForSalesTeamByAtlasResult, GetPNumsForShowAdCenterInflowResult, GetPNumsGroupItemIdPayload, GetPNumsGroupItemIdResult, GetPurchasedItemPaymentCountsByWindowPayload, GetPurchasedItemPaymentCountsByWindowResult, GetPInfoIdsForPredictSettlePayload, GetPInfoIdsForPredictSettleResult, GetPInfosForBeforeDeliveryExcelPayload, GetPInfosForBeforeDeliveryExcelResult, GetPurchasedInfosForUnconfirmedWaitingOrderSellersExcelResult, IsPurchaseStoreItemByUserBulkPayload, IsPurchaseStoreItemByUserBulkResponse, CheckCanChangePurchasedOptionPayload, CheckCanChangePurchasedOptionResult, ChangePurchasedOptionPayload, CheckCanChangePurchasedOptionsByPayTryLogIdPayload, CheckCanChangePurchasedOptionsByPayTryLogIdResult, GetPurchasedInfoItemsForExtractionByTypeResult, GetPInfoForExpectSettleByAtlasResult, GetExpectSettleAmountResult, GetPInfoForExpectSettleByAtlasPayload, GetChangedOptionPublicIdsByIdsPayload, GetChangedOptionPublicIdsByIdsResult, GetPInfosByIdsPayload, GetPInfosByIdsResult, GetPInfosForLuxuryAppraisalPayload, GetPInfosForLuxuryAppraisalResult, GetRefundRatePayload, GetRefundRateResult, ExtendWaitingReceiveByChannelTalkPayload, UpdatePInfoAttributionHistoryIdBulkPayload, CheckBuyerStorePaymentHistoryPayload, SendStoreSellerSaveInvoiceLaterAbroadShippingToBuyerResult, GetPInfoAdditionalPaymentInfoResult, GetPInfoAdditionalPaymentInfoPayload } from '../dto/purchasedinfos';
4
4
  export declare class AmqpPurchasedInfoService {
5
5
  private readonly client;
6
6
  private readonly amqpManager;
@@ -29,6 +29,7 @@ export declare class AmqpPurchasedInfoService {
29
29
  sendStoreSellerSaveInvoiceLaterAbroadShippingToBuyer(payload: void, param: AbstractParam): Promise<SendStoreSellerSaveInvoiceLaterAbroadShippingToBuyerResult>;
30
30
  getPNumsForShowAdCenterInflow(payload: void, param: AbstractParam): Promise<GetPNumsForShowAdCenterInflowResult>;
31
31
  getPNumsGroupItemId(payload: GetPNumsGroupItemIdPayload, param: AbstractParam): Promise<GetPNumsGroupItemIdResult>;
32
+ getPurchasedItemPaymentCountsByWindow(payload: GetPurchasedItemPaymentCountsByWindowPayload, param: AbstractParam): Promise<GetPurchasedItemPaymentCountsByWindowResult>;
32
33
  getPInfoIdsForPredictSettle(payload: GetPInfoIdsForPredictSettlePayload, param: AbstractParam): Promise<GetPInfoIdsForPredictSettleResult>;
33
34
  getPInfosForBeforeDeliveryExcel(payload: GetPInfosForBeforeDeliveryExcelPayload, param: AbstractParam): Promise<GetPInfosForBeforeDeliveryExcelResult[]>;
34
35
  migrationPayTryLogIdV2(param: AbstractParam): Promise<void>;
@@ -91,6 +91,9 @@ let AmqpPurchasedInfoService = class AmqpPurchasedInfoService {
91
91
  async getPNumsGroupItemId(payload, param) {
92
92
  return this.amqpManager.call('상품별 결제 수 조회', 'purchased-info.get.p-nums-group-item-id', payload, param, { isErrorThrowing: true });
93
93
  }
94
+ async getPurchasedItemPaymentCountsByWindow(payload, param) {
95
+ return this.amqpManager.call('시간 구간별 상품 결제 건 수 조회', 'purchased-info.get.payment-counts-by-window', payload, param, { isErrorThrowing: true });
96
+ }
94
97
  async getPInfoIdsForPredictSettle(payload, param) {
95
98
  return this.amqpManager.call('정산 예측을 위한 p-info ids 조회', 'purchased-info.get.p-info-ids-for-predict-settle', payload, param, { isErrorThrowing: true });
96
99
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.7.439",
3
+ "version": "0.7.440-sj2",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",
@@ -23,7 +23,7 @@
23
23
  "@yolo-croket-dev/core": "1.10.2",
24
24
  "@yolo-croket-dev/domain": "0.2.51",
25
25
  "@yolo-croket-dev/dto-v2": "0.2.38",
26
- "@yolo-croket-dev/entity": "0.2.113",
26
+ "@yolo-croket-dev/entity": "0.2.115-sj",
27
27
  "@yolo-croket-dev/entity-v2": "0.3.76",
28
28
  "class-transformer": "^0.5.1",
29
29
  "class-validator": "^0.13.2",
@@ -0,0 +1,16 @@
1
+ /** 호출 측(user-service)이 chunk 단위로 나눠 요청합니다. 후보 수 자체에는 상한을 두지 않습니다. */
2
+ export declare class GetStoreItemRankingCandidateMetasPayload {
3
+ storeItemIds: string[];
4
+ }
5
+ export declare class GetStoreItemRankingCandidateMetasResult {
6
+ items: Array<{
7
+ itemId: string;
8
+ mainCategory: string;
9
+ popularitySortValues: {
10
+ clickNums: number;
11
+ soldNumsLastNdays: number;
12
+ reviewCount: number;
13
+ regDate: string;
14
+ };
15
+ }>;
16
+ }
@@ -0,0 +1,25 @@
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.GetStoreItemRankingCandidateMetasResult = exports.GetStoreItemRankingCandidateMetasPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ /** 호출 측(user-service)이 chunk 단위로 나눠 요청합니다. 후보 수 자체에는 상한을 두지 않습니다. */
15
+ class GetStoreItemRankingCandidateMetasPayload {
16
+ }
17
+ exports.GetStoreItemRankingCandidateMetasPayload = GetStoreItemRankingCandidateMetasPayload;
18
+ __decorate([
19
+ (0, class_validator_1.IsArray)(),
20
+ (0, class_validator_1.IsMongoId)({ each: true }),
21
+ __metadata("design:type", Array)
22
+ ], GetStoreItemRankingCandidateMetasPayload.prototype, "storeItemIds", void 0);
23
+ class GetStoreItemRankingCandidateMetasResult {
24
+ }
25
+ exports.GetStoreItemRankingCandidateMetasResult = GetStoreItemRankingCandidateMetasResult;
@@ -38,3 +38,4 @@ export * from './get-used-store-items-by-brand-category.dto';
38
38
  export * from './check-customs-duty-and-tax-occurrence.dto';
39
39
  export * from './get-selling-store-item-ids.dto';
40
40
  export * from './get-store-items-for-admin-excel.dto';
41
+ export * from './get-store-item-ranking-candidate-metas.dto';
@@ -54,3 +54,4 @@ __exportStar(require("./get-used-store-items-by-brand-category.dto"), exports);
54
54
  __exportStar(require("./check-customs-duty-and-tax-occurrence.dto"), exports);
55
55
  __exportStar(require("./get-selling-store-item-ids.dto"), exports);
56
56
  __exportStar(require("./get-store-items-for-admin-excel.dto"), exports);
57
+ __exportStar(require("./get-store-item-ranking-candidate-metas.dto"), exports);
@@ -1,7 +1,7 @@
1
1
  import { ClientProxy } from '@nestjs/microservices';
2
2
  import { AbstractParam } from '@yolo-croket-dev/core';
3
3
  import { GetSellingStoreItemIdsPayload, GetSellingStoreItemIdsResult } from '../dto/store-item/query/get-selling-store-item-ids.dto';
4
- import { GetStoreItemLegaciesPayload, GetStoreItemLegaciesResult, GetSellingItemIdsByStoreIdPayload, GetSellingItemIdsByStoreIdResult, GetSellerStoreCouponRegistrationStatusResult, SearchSellingStoreItemsPayload, SearchSellingStoreItemsResult, GetStoreItemsForAdminExcelPayload, GetStoreItemsForAdminExcelResult, 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, CheckCustomsDutyAndTaxOccurrencePayload, CheckCustomsDutyAndTaxOccurrenceResult, 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
+ import { GetStoreItemLegaciesPayload, GetStoreItemLegaciesResult, GetSellingItemIdsByStoreIdPayload, GetSellingItemIdsByStoreIdResult, GetSellerStoreCouponRegistrationStatusResult, SearchSellingStoreItemsPayload, SearchSellingStoreItemsResult, GetStoreItemsForAdminExcelPayload, GetStoreItemsForAdminExcelResult, SearchNormalSellingStoreItemsForBulkStopPayload, SearchNormalSellingStoreItemsForBulkStopResult, GetStoreItemsForESPayload, GetStoreItemsForESResult, GetLegacyStoreItemsByAtlasSearchPayload, GetLegacyStoreItemsByAtlasSearchResult, GetStoreItemIdsByAtlasSearchPayload, GetStoreItemIdsByAtlasSearchResult, GetStoreItemRankingCandidateMetasPayload, GetStoreItemRankingCandidateMetasResult, GetStoreItemInfoByIdPayload, GetStoreItemInfoByIdResult, GetSellingItemIdsByThemeIdPayload, GetSellingItemIdsByThemeIdResult, SearchStoreItemNameByIdPayload, SearchStoreItemNameByIdResult, GetSellerOwnedStoreItemByIdPayload, GetSellerOwnedStoreItemByIdResult, GetItemGroupNumsPayload, GetItemGroupNumsResult, GetRandomItemIdsPayload, GetRandomItemIdsResult, GetUsedImgItemIdsPayload, GetUsedImgItemIdsResult, GetUsedImgsItemIdsPayload, GetUsedImgsItemIdsResult, GetSellingItemIdsByCatagoryPayload, GetSellingItemIdsByCatagoryResult, PatchSoldOutItemOptionsPayload, PatchSoldOutItemOptionsResult, RegStoreItemPayload, RegStoreItemResult, EditStoreItemPayload, EditItemResult, CheckCustomsDutyAndTaxOccurrencePayload, CheckCustomsDutyAndTaxOccurrenceResult, 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';
5
5
  export declare class AmqpStoreItemService {
6
6
  private readonly client;
7
7
  private readonly amqpManager;
@@ -26,6 +26,8 @@ export declare class AmqpStoreItemService {
26
26
  getLegacyStoreItemsByAtlasSearch(payload: GetLegacyStoreItemsByAtlasSearchPayload, param: AbstractParam): Promise<GetLegacyStoreItemsByAtlasSearchResult>;
27
27
  /** atlas 상품 itemIds 검색 */
28
28
  getStoreItemIdsByAtlasSearch(payload: GetStoreItemIdsByAtlasSearchPayload, param: AbstractParam): Promise<GetStoreItemIdsByAtlasSearchResult>;
29
+ /** MD 테마전 랭킹의 bounded 후보에 대한 현재 판매 가능·인기순 메타만 조회한다. */
30
+ getStoreItemRankingCandidateMetas(payload: GetStoreItemRankingCandidateMetasPayload, param: AbstractParam): Promise<GetStoreItemRankingCandidateMetasResult>;
29
31
  getSellingItemIdsByStoreId(payload: GetSellingItemIdsByStoreIdPayload, param: AbstractParam): Promise<GetSellingItemIdsByStoreIdResult>;
30
32
  getSellerStoreCouponRegistrationStatus(param: AbstractParam): Promise<GetSellerStoreCouponRegistrationStatusResult>;
31
33
  getSellingItemIdsByThemeId(payload: GetSellingItemIdsByThemeIdPayload, param: AbstractParam): Promise<GetSellingItemIdsByThemeIdResult>;
@@ -62,6 +64,7 @@ export declare class AmqpStoreItemService {
62
64
  getSellerOwnedStoreItemById(payload: GetSellerOwnedStoreItemByIdPayload, param: AbstractParam): Promise<GetSellerOwnedStoreItemByIdResult>;
63
65
  migrationStoreItemBrandInfo(param: AbstractParam): Promise<void>;
64
66
  processSoldNumsLastNDays(param: AbstractParam): Promise<void>;
67
+ processStoreMDThemeLastHourRanking(param: AbstractParam): Promise<void>;
65
68
  processBookNumsLastNDays(param: AbstractParam): Promise<void>;
66
69
  processReviewNumsLastNDays(param: AbstractParam): Promise<void>;
67
70
  getItemGroupNums(payload: GetItemGroupNumsPayload, param: AbstractParam): Promise<GetItemGroupNumsResult>;
@@ -59,6 +59,10 @@ let AmqpStoreItemService = class AmqpStoreItemService {
59
59
  async getStoreItemIdsByAtlasSearch(payload, param) {
60
60
  return this.amqpManager.call('atlas 상품 itemIds 검색', 'store-item.get.store-item-ids-by-atlas-search', payload, param, { isErrorThrowing: true });
61
61
  }
62
+ /** MD 테마전 랭킹의 bounded 후보에 대한 현재 판매 가능·인기순 메타만 조회한다. */
63
+ async getStoreItemRankingCandidateMetas(payload, param) {
64
+ return this.amqpManager.call('MD 테마전 랭킹 후보 메타 조회', 'store-item.get.ranking-candidate-metas', payload, param, { isErrorThrowing: true });
65
+ }
62
66
  async getSellingItemIdsByStoreId(payload, param) {
63
67
  return this.amqpManager.call('해당 스토어에 판매중인 상품 아이디 리스트 호출', 'store-item.get.selling-item-ids-by-store-id', payload, param, { isErrorThrowing: true });
64
68
  }
@@ -129,6 +133,9 @@ let AmqpStoreItemService = class AmqpStoreItemService {
129
133
  async processSoldNumsLastNDays(param) {
130
134
  return this.amqpManager.call('상품 판매량 N일간 집계', 'store-item.process.sold-nums-last-n-days', {}, param, { isErrorThrowing: true });
131
135
  }
136
+ async processStoreMDThemeLastHourRanking(param) {
137
+ return this.amqpManager.call('MDTheme 최근 1시간 랭킹 집계', 'store-item.process.store-md-theme-last-hour-ranking', undefined, param, { isErrorThrowing: true });
138
+ }
132
139
  async processBookNumsLastNDays(param) {
133
140
  return this.amqpManager.call('상품 찜수 N일간 집계', 'store-item.process.book-nums-last-n-days', {}, param, { isErrorThrowing: true });
134
141
  }
@@ -2,3 +2,4 @@ export * from './delete-md-theme-brand-id.dto';
2
2
  export * from './block-store-md-theme-item-index.dto';
3
3
  export * from './enqueue-due-store-md-theme-item-index-rebuilds.dto';
4
4
  export * from './request-store-md-theme-item-index-rebuild.dto';
5
+ export * from './refresh-store-md-theme-ranking-snapshot.dto';
@@ -18,3 +18,4 @@ __exportStar(require("./delete-md-theme-brand-id.dto"), exports);
18
18
  __exportStar(require("./block-store-md-theme-item-index.dto"), exports);
19
19
  __exportStar(require("./enqueue-due-store-md-theme-item-index-rebuilds.dto"), exports);
20
20
  __exportStar(require("./request-store-md-theme-item-index-rebuild.dto"), exports);
21
+ __exportStar(require("./refresh-store-md-theme-ranking-snapshot.dto"), exports);
@@ -0,0 +1,27 @@
1
+ /** 실시간 랭킹 집계 대상으로 공개 중인 테마전의 active generation 후보입니다. */
2
+ export declare class StoreMDThemeRankingCandidate {
3
+ storeMDThemeId: string;
4
+ generationId: string;
5
+ storeItemIds: string[];
6
+ }
7
+ export declare class GetStoreMDThemeRankingCandidatesResult {
8
+ themes: StoreMDThemeRankingCandidate[];
9
+ }
10
+ export declare class StoreMDThemeRankingScore {
11
+ storeItemId: string;
12
+ paymentCount: number;
13
+ }
14
+ export declare class StoreMDThemeRankingSnapshotTheme {
15
+ storeMDThemeId: string;
16
+ generationId: string;
17
+ scores: StoreMDThemeRankingScore[];
18
+ }
19
+ /**
20
+ * store-item-server가 최근 완료 1시간 구간의 결제 건수를 계산한 뒤 user-service에 전달하는 payload입니다.
21
+ * 후보에 없는 상품과 stale generation은 user-service가 저장하지 않습니다.
22
+ */
23
+ export declare class RefreshStoreMDThemeRankingSnapshotsPayload {
24
+ windowEndedAt: string;
25
+ processedAt: string;
26
+ themes: StoreMDThemeRankingSnapshotTheme[];
27
+ }
@@ -0,0 +1,72 @@
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.RefreshStoreMDThemeRankingSnapshotsPayload = exports.StoreMDThemeRankingSnapshotTheme = exports.StoreMDThemeRankingScore = exports.GetStoreMDThemeRankingCandidatesResult = exports.StoreMDThemeRankingCandidate = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const class_transformer_1 = require("class-transformer");
15
+ /** 실시간 랭킹 집계 대상으로 공개 중인 테마전의 active generation 후보입니다. */
16
+ class StoreMDThemeRankingCandidate {
17
+ }
18
+ exports.StoreMDThemeRankingCandidate = StoreMDThemeRankingCandidate;
19
+ class GetStoreMDThemeRankingCandidatesResult {
20
+ }
21
+ exports.GetStoreMDThemeRankingCandidatesResult = GetStoreMDThemeRankingCandidatesResult;
22
+ class StoreMDThemeRankingScore {
23
+ }
24
+ exports.StoreMDThemeRankingScore = StoreMDThemeRankingScore;
25
+ __decorate([
26
+ (0, class_validator_1.IsMongoId)(),
27
+ __metadata("design:type", String)
28
+ ], StoreMDThemeRankingScore.prototype, "storeItemId", void 0);
29
+ __decorate([
30
+ (0, class_validator_1.IsInt)(),
31
+ (0, class_validator_1.Min)(1),
32
+ (0, class_validator_1.Max)(Number.MAX_SAFE_INTEGER),
33
+ __metadata("design:type", Number)
34
+ ], StoreMDThemeRankingScore.prototype, "paymentCount", void 0);
35
+ class StoreMDThemeRankingSnapshotTheme {
36
+ }
37
+ exports.StoreMDThemeRankingSnapshotTheme = StoreMDThemeRankingSnapshotTheme;
38
+ __decorate([
39
+ (0, class_validator_1.IsMongoId)(),
40
+ __metadata("design:type", String)
41
+ ], StoreMDThemeRankingSnapshotTheme.prototype, "storeMDThemeId", void 0);
42
+ __decorate([
43
+ (0, class_validator_1.IsString)(),
44
+ __metadata("design:type", String)
45
+ ], StoreMDThemeRankingSnapshotTheme.prototype, "generationId", void 0);
46
+ __decorate([
47
+ (0, class_validator_1.IsArray)(),
48
+ (0, class_validator_1.ValidateNested)({ each: true }),
49
+ (0, class_transformer_1.Type)(() => StoreMDThemeRankingScore),
50
+ __metadata("design:type", Array)
51
+ ], StoreMDThemeRankingSnapshotTheme.prototype, "scores", void 0);
52
+ /**
53
+ * store-item-server가 최근 완료 1시간 구간의 결제 건수를 계산한 뒤 user-service에 전달하는 payload입니다.
54
+ * 후보에 없는 상품과 stale generation은 user-service가 저장하지 않습니다.
55
+ */
56
+ class RefreshStoreMDThemeRankingSnapshotsPayload {
57
+ }
58
+ exports.RefreshStoreMDThemeRankingSnapshotsPayload = RefreshStoreMDThemeRankingSnapshotsPayload;
59
+ __decorate([
60
+ (0, class_validator_1.IsDateString)(),
61
+ __metadata("design:type", String)
62
+ ], RefreshStoreMDThemeRankingSnapshotsPayload.prototype, "windowEndedAt", void 0);
63
+ __decorate([
64
+ (0, class_validator_1.IsDateString)(),
65
+ __metadata("design:type", String)
66
+ ], RefreshStoreMDThemeRankingSnapshotsPayload.prototype, "processedAt", void 0);
67
+ __decorate([
68
+ (0, class_validator_1.IsArray)(),
69
+ (0, class_validator_1.ValidateNested)({ each: true }),
70
+ (0, class_transformer_1.Type)(() => StoreMDThemeRankingSnapshotTheme),
71
+ __metadata("design:type", Array)
72
+ ], RefreshStoreMDThemeRankingSnapshotsPayload.prototype, "themes", void 0);
@@ -0,0 +1,13 @@
1
+ export declare class GetStoreMDThemeRealTimeRankingPayload {
2
+ storeMDThemeId: string;
3
+ mainCategory?: string;
4
+ }
5
+ export declare class GetStoreMDThemeRealTimeRankingResult {
6
+ items: unknown[];
7
+ categories: Array<{
8
+ mainCategory: string;
9
+ }>;
10
+ sortSource: 'LAST_HOUR_SALES' | 'POPULARITY_FALLBACK';
11
+ windowEndedAt: string | null;
12
+ processedAt: string | null;
13
+ }
@@ -0,0 +1,28 @@
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.GetStoreMDThemeRealTimeRankingResult = exports.GetStoreMDThemeRealTimeRankingPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class GetStoreMDThemeRealTimeRankingPayload {
15
+ }
16
+ exports.GetStoreMDThemeRealTimeRankingPayload = GetStoreMDThemeRealTimeRankingPayload;
17
+ __decorate([
18
+ (0, class_validator_1.IsMongoId)(),
19
+ __metadata("design:type", String)
20
+ ], GetStoreMDThemeRealTimeRankingPayload.prototype, "storeMDThemeId", void 0);
21
+ __decorate([
22
+ (0, class_validator_1.IsString)(),
23
+ (0, class_validator_1.IsOptional)(),
24
+ __metadata("design:type", String)
25
+ ], GetStoreMDThemeRealTimeRankingPayload.prototype, "mainCategory", void 0);
26
+ class GetStoreMDThemeRealTimeRankingResult {
27
+ }
28
+ exports.GetStoreMDThemeRealTimeRankingResult = GetStoreMDThemeRealTimeRankingResult;
@@ -0,0 +1,4 @@
1
+ /** 테마전에 연결된 타임딜 buyer 상세 조회 요청입니다. */
2
+ export declare class GetStoreMDThemeTimeDealPayload {
3
+ storeMDThemeId: string;
4
+ }
@@ -0,0 +1,21 @@
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.GetStoreMDThemeTimeDealPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ /** 테마전에 연결된 타임딜 buyer 상세 조회 요청입니다. */
15
+ class GetStoreMDThemeTimeDealPayload {
16
+ }
17
+ exports.GetStoreMDThemeTimeDealPayload = GetStoreMDThemeTimeDealPayload;
18
+ __decorate([
19
+ (0, class_validator_1.IsMongoId)(),
20
+ __metadata("design:type", String)
21
+ ], GetStoreMDThemeTimeDealPayload.prototype, "storeMDThemeId", void 0);
@@ -1,5 +1,7 @@
1
1
  export * from './get-store-md-theme-by-id.dto';
2
2
  export * from './get-store-md-theme-paged.dto';
3
+ export * from './get-store-md-theme-time-deal.dto';
4
+ export * from './get-store-md-theme-real-time-ranking.dto';
3
5
  export * from './get-store-md-theme-group-items.dto';
4
6
  export * from './get-store-md-theme-group-category-facets.dto';
5
7
  export * from './search-store-md-theme-items.dto';
@@ -16,6 +16,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./get-store-md-theme-by-id.dto"), exports);
18
18
  __exportStar(require("./get-store-md-theme-paged.dto"), exports);
19
+ __exportStar(require("./get-store-md-theme-time-deal.dto"), exports);
20
+ __exportStar(require("./get-store-md-theme-real-time-ranking.dto"), exports);
19
21
  __exportStar(require("./get-store-md-theme-group-items.dto"), exports);
20
22
  __exportStar(require("./get-store-md-theme-group-category-facets.dto"), exports);
21
23
  __exportStar(require("./search-store-md-theme-items.dto"), exports);
@@ -1,5 +1,5 @@
1
1
  import StoreItemLegacyEntity from '@yolo-croket-dev/entity/src/store-item/store-item-legacy.entity';
2
- import { StoreMDThemeBanner, StoreMDThemeLinkImgList, StoreMDThemeTabStyle } from '@yolo-croket-dev/entity/src/storemdtheme';
2
+ import { StoreMDThemeContentOrder, StoreMDThemeBanner, StoreMDThemeLinkImgList, StoreMDThemeMainDeal, StoreMDThemeRealTimeRanking, StoreMDThemeTabStyle, StoreMDThemeTimeDeal, StoreMDThemeTimer } from '@yolo-croket-dev/entity/src/storemdtheme';
3
3
  export interface StoreMDThemeGroupTabResult {
4
4
  groupId: string;
5
5
  sortNumber: number;
@@ -7,6 +7,8 @@ export interface StoreMDThemeGroupTabResult {
7
7
  subTitle: string;
8
8
  banner?: StoreMDThemeBanner;
9
9
  isCategoryFilterEnabled: boolean;
10
+ categoryFilterMainCategories: string[];
11
+ categoryFilterHideCount: number;
10
12
  }
11
13
  export interface GetStoreMDThemePagedResult {
12
14
  theme: {
@@ -17,6 +19,12 @@ export interface GetStoreMDThemePagedResult {
17
19
  MDThemeSubTitle: string;
18
20
  MDThemeLinkImgList: StoreMDThemeLinkImgList[];
19
21
  MDThemeTabStyle?: StoreMDThemeTabStyle;
22
+ timer?: StoreMDThemeTimer;
23
+ timeDeal?: StoreMDThemeTimeDeal;
24
+ mainDeals?: StoreMDThemeMainDeal[];
25
+ contentOrder?: StoreMDThemeContentOrder[];
26
+ /** 항상 반환하며 false면 실시간 랭킹 탭을 노출하지 않습니다. */
27
+ realTimeRanking: StoreMDThemeRealTimeRanking;
20
28
  };
21
29
  groups: StoreMDThemeGroupTabResult[];
22
30
  initialGroup: {
@@ -31,6 +39,8 @@ export interface GetStoreMDThemeGroupItemsResult {
31
39
  items: StoreItemLegacyEntity[];
32
40
  hasNext: boolean;
33
41
  nextCursor?: string;
42
+ /** cursor generation이 갱신되어 active generation checkpoint로 재기준화됐습니다. */
43
+ cursorRebased?: boolean;
34
44
  }
35
45
  export interface GetStoreMDThemeGroupCategoryFacetsResult {
36
46
  groupId: string;
@@ -1,7 +1,7 @@
1
1
  import { ClientProxy } from '@nestjs/microservices';
2
2
  import { AbstractParam } from '@yolo-croket-dev/core';
3
3
  import { StoreMDThemeEntity } from '@yolo-croket-dev/entity/src/storemdtheme';
4
- import { GetStoreMDThemeByIdPayload, GetStoreMDThemeAdminPreviewPayload, GetStoreMDThemeAdminPreviewResult, SearchStoreMDThemeDetailByIdPayload, SearchStoreMDThemeDetailByIdResult, SearchStoreMDThemeIdsByItemIdPayload, SearchStoreMDThemeIdsByItemIdResult, GetStoreMDThemesByBrandNamePayload, GetStoreMDThemesByBrandNameResult, DeleteMDThemeBrandIdPayload, BlockStoreMDThemeItemIndexPayload, GetStoreMDThemePagedPayload, GetStoreMDThemeGroupItemsPayload, GetStoreMDThemeGroupCategoryFacetsPayload, SearchStoreMDThemeItemsPayload, EnqueueDueStoreMDThemeItemIndexRebuildsPayload, EnqueueDueStoreMDThemeItemIndexRebuildsResult, RequestStoreMDThemeItemIndexRebuildPayload, RequestStoreMDThemeItemIndexRebuildResult, GetStoreMDThemePagedResult, GetStoreMDThemeGroupItemsResult, GetStoreMDThemeGroupCategoryFacetsResult, SearchStoreMDThemeItemsResult } from '../dto/store-md-theme';
4
+ import { GetStoreMDThemeByIdPayload, GetStoreMDThemeAdminPreviewPayload, GetStoreMDThemeAdminPreviewResult, SearchStoreMDThemeDetailByIdPayload, SearchStoreMDThemeDetailByIdResult, SearchStoreMDThemeIdsByItemIdPayload, SearchStoreMDThemeIdsByItemIdResult, GetStoreMDThemesByBrandNamePayload, GetStoreMDThemesByBrandNameResult, DeleteMDThemeBrandIdPayload, BlockStoreMDThemeItemIndexPayload, GetStoreMDThemePagedPayload, GetStoreMDThemeTimeDealPayload, GetStoreMDThemeRealTimeRankingPayload, GetStoreMDThemeRealTimeRankingResult, GetStoreMDThemeGroupItemsPayload, GetStoreMDThemeGroupCategoryFacetsPayload, SearchStoreMDThemeItemsPayload, EnqueueDueStoreMDThemeItemIndexRebuildsPayload, EnqueueDueStoreMDThemeItemIndexRebuildsResult, RequestStoreMDThemeItemIndexRebuildPayload, GetStoreMDThemeRankingCandidatesResult, RefreshStoreMDThemeRankingSnapshotsPayload, RequestStoreMDThemeItemIndexRebuildResult, GetStoreMDThemePagedResult, GetStoreMDThemeGroupItemsResult, GetStoreMDThemeGroupCategoryFacetsResult, SearchStoreMDThemeItemsResult } from '../dto/store-md-theme';
5
5
  export declare class AmqpStoreMdThemeService {
6
6
  private readonly client;
7
7
  private readonly amqpManager;
@@ -13,6 +13,10 @@ export declare class AmqpStoreMdThemeService {
13
13
  getStoreMDThemesByBrandName(payload: GetStoreMDThemesByBrandNamePayload, param: AbstractParam): Promise<GetStoreMDThemesByBrandNameResult>;
14
14
  deleteMDThemeBrandId(payload: DeleteMDThemeBrandIdPayload, param: AbstractParam): Promise<void>;
15
15
  getStoreMDThemePaged(payload: GetStoreMDThemePagedPayload, param: AbstractParam): Promise<GetStoreMDThemePagedResult>;
16
+ getStoreMDThemeTimeDeal(payload: GetStoreMDThemeTimeDealPayload, param: AbstractParam): Promise<{
17
+ timeDeal: unknown | null;
18
+ }>;
19
+ getStoreMDThemeRealTimeRanking(payload: GetStoreMDThemeRealTimeRankingPayload, param: AbstractParam): Promise<GetStoreMDThemeRealTimeRankingResult>;
16
20
  getStoreMDThemeGroupItems(payload: GetStoreMDThemeGroupItemsPayload, param: AbstractParam): Promise<GetStoreMDThemeGroupItemsResult>;
17
21
  getStoreMDThemeGroupCategoryFacets(payload: GetStoreMDThemeGroupCategoryFacetsPayload, param: AbstractParam): Promise<GetStoreMDThemeGroupCategoryFacetsResult>;
18
22
  searchStoreMDThemeItems(payload: SearchStoreMDThemeItemsPayload, param: AbstractParam): Promise<SearchStoreMDThemeItemsResult>;
@@ -22,4 +26,6 @@ export declare class AmqpStoreMdThemeService {
22
26
  blockStoreMDThemeItemIndex(payload: BlockStoreMDThemeItemIndexPayload, param: AbstractParam): Promise<void>;
23
27
  enqueueDueStoreMDThemeItemIndexRebuilds(payload: EnqueueDueStoreMDThemeItemIndexRebuildsPayload, param: AbstractParam): Promise<EnqueueDueStoreMDThemeItemIndexRebuildsResult>;
24
28
  requestStoreMDThemeItemIndexRebuild(payload: RequestStoreMDThemeItemIndexRebuildPayload, param: AbstractParam): Promise<RequestStoreMDThemeItemIndexRebuildResult>;
29
+ getStoreMDThemeRankingCandidates(param: AbstractParam): Promise<GetStoreMDThemeRankingCandidatesResult>;
30
+ refreshStoreMDThemeRankingSnapshots(payload: RefreshStoreMDThemeRankingSnapshotsPayload, param: AbstractParam): Promise<void>;
25
31
  }
@@ -42,6 +42,12 @@ let AmqpStoreMdThemeService = class AmqpStoreMdThemeService {
42
42
  async getStoreMDThemePaged(payload, param) {
43
43
  return this.amqpManager.call('MDTheme 페이지 조회', 'store-md-theme.get.paged', payload, param, { isErrorThrowing: true });
44
44
  }
45
+ async getStoreMDThemeTimeDeal(payload, param) {
46
+ return this.amqpManager.call('MDTheme 연결 타임딜 조회', 'store-md-theme.get.time-deal', payload, param, { isErrorThrowing: true });
47
+ }
48
+ async getStoreMDThemeRealTimeRanking(payload, param) {
49
+ return this.amqpManager.call('MDTheme 실시간 랭킹 조회', 'store-md-theme.get.real-time-ranking', payload, param, { isErrorThrowing: true });
50
+ }
45
51
  async getStoreMDThemeGroupItems(payload, param) {
46
52
  return this.amqpManager.call('MDTheme 그룹 상품 조회', 'store-md-theme.get.group-items', payload, param, { isErrorThrowing: true });
47
53
  }
@@ -63,6 +69,12 @@ let AmqpStoreMdThemeService = class AmqpStoreMdThemeService {
63
69
  async requestStoreMDThemeItemIndexRebuild(payload, param) {
64
70
  return this.amqpManager.call('MDTheme item index rebuild request', 'store-md-theme.request-item-index-rebuild', payload, param, { isErrorThrowing: true });
65
71
  }
72
+ async getStoreMDThemeRankingCandidates(param) {
73
+ return this.amqpManager.call('MDTheme 실시간 랭킹 후보 조회', 'store-md-theme.get.ranking-candidates', undefined, param, { isErrorThrowing: true });
74
+ }
75
+ async refreshStoreMDThemeRankingSnapshots(payload, param) {
76
+ return this.amqpManager.call('MDTheme 실시간 랭킹 snapshot 갱신', 'store-md-theme.refresh.ranking-snapshots', payload, param, { isErrorThrowing: true });
77
+ }
66
78
  };
67
79
  exports.AmqpStoreMdThemeService = AmqpStoreMdThemeService;
68
80
  exports.AmqpStoreMdThemeService = AmqpStoreMdThemeService = __decorate([