@yolo-croket-dev/amqp-access 0.7.440-sj2 → 0.7.441-sj
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 +2 -2
- 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/process-store-md-theme-last-hour-ranking.dto.d.ts +10 -0
- package/store-item-server/dto/store-item/command/process-store-md-theme-last-hour-ranking.dto.js +27 -0
- package/store-item-server/dto/store-item.moduels/store-item-by-excel/command/edit-store-item-by-excel.dto.d.ts +4 -1
- package/store-item-server/dto/store-item.moduels/store-item-by-excel/command/edit-store-item-by-excel.dto.js +11 -0
- package/store-item-server/dto/store-item.moduels/store-item-by-excel/command/reg-store-item-by-excel.dto.d.ts +2 -1
- package/store-item-server/dto/store-item.moduels/store-item-by-excel/command/reg-store-item-by-excel.dto.js +6 -0
- package/store-item-server/dto/store-item.moduels/store-item-by-excel/query/get-store-items-for-seller-bulk-export.dto.d.ts +13 -0
- package/store-item-server/services/amqp.store-item.service.d.ts +2 -1
- package/store-item-server/services/amqp.store-item.service.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yolo-croket-dev/amqp-access",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.441-sj",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"author": "Yolo Co., Ltd.",
|
|
6
6
|
"description": "크로켓 amqp-access npm",
|
|
@@ -30,4 +30,4 @@
|
|
|
30
30
|
"dotenv": "^16.3.1",
|
|
31
31
|
"@yolo-croket-dev/function": "0.3.7"
|
|
32
32
|
}
|
|
33
|
-
}
|
|
33
|
+
}
|
|
@@ -29,3 +29,4 @@ export * from './used-selling-bulk.dto';
|
|
|
29
29
|
export * from './refresh-shipping-lead-time-stats.dto';
|
|
30
30
|
export * from './create-additional-payment-store-item.dto';
|
|
31
31
|
export * from './instant-selection-sync.dto';
|
|
32
|
+
export * from './process-store-md-theme-last-hour-ranking.dto';
|
|
@@ -45,3 +45,4 @@ __exportStar(require("./used-selling-bulk.dto"), exports);
|
|
|
45
45
|
__exportStar(require("./refresh-shipping-lead-time-stats.dto"), exports);
|
|
46
46
|
__exportStar(require("./create-additional-payment-store-item.dto"), exports);
|
|
47
47
|
__exportStar(require("./instant-selection-sync.dto"), exports);
|
|
48
|
+
__exportStar(require("./process-store-md-theme-last-hour-ranking.dto"), exports);
|
package/store-item-server/dto/store-item/command/process-store-md-theme-last-hour-ranking.dto.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author sj
|
|
3
|
+
* @description 매 정시 테마전 실시간 랭킹 집계 요청입니다.
|
|
4
|
+
* scheduler가 실행된 시각을 함께 보내면 store-item-server는 그 시각에 가장 가까운 정시를 집계 구간 종료 시각으로 사용합니다.
|
|
5
|
+
* 수신 서버와 scheduler의 시계가 조금 달라도 정시 경계에서 구간이 누락되지 않게 하기 위함입니다.
|
|
6
|
+
*/
|
|
7
|
+
export declare class ProcessStoreMDThemeLastHourRankingPayload {
|
|
8
|
+
/** scheduler 실행 시각(UTC ISO-8601). 없으면 수신 서버의 현재 시각을 사용합니다. */
|
|
9
|
+
requestedAt?: string;
|
|
10
|
+
}
|
package/store-item-server/dto/store-item/command/process-store-md-theme-last-hour-ranking.dto.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
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.ProcessStoreMDThemeLastHourRankingPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
/**
|
|
15
|
+
* @author sj
|
|
16
|
+
* @description 매 정시 테마전 실시간 랭킹 집계 요청입니다.
|
|
17
|
+
* scheduler가 실행된 시각을 함께 보내면 store-item-server는 그 시각에 가장 가까운 정시를 집계 구간 종료 시각으로 사용합니다.
|
|
18
|
+
* 수신 서버와 scheduler의 시계가 조금 달라도 정시 경계에서 구간이 누락되지 않게 하기 위함입니다.
|
|
19
|
+
*/
|
|
20
|
+
class ProcessStoreMDThemeLastHourRankingPayload {
|
|
21
|
+
}
|
|
22
|
+
exports.ProcessStoreMDThemeLastHourRankingPayload = ProcessStoreMDThemeLastHourRankingPayload;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsOptional)(),
|
|
25
|
+
(0, class_validator_1.IsDateString)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], ProcessStoreMDThemeLastHourRankingPayload.prototype, "requestedAt", void 0);
|
|
@@ -21,7 +21,10 @@ export declare class EditStoreItemByExcelPayloadData extends EditStoreItemByExce
|
|
|
21
21
|
city: string;
|
|
22
22
|
expectedSendDays: number;
|
|
23
23
|
isAbroadShipping: boolean;
|
|
24
|
-
|
|
24
|
+
isPrepay?: boolean;
|
|
25
|
+
/** 구간별 요금 등 상품의 기존 배송 조건을 그대로 사용합니다. */
|
|
26
|
+
keepExistingShipping?: boolean;
|
|
27
|
+
shippingFee?: number;
|
|
25
28
|
isBundleShipping: boolean;
|
|
26
29
|
bundleShippingFee?: number;
|
|
27
30
|
}
|
|
@@ -69,8 +69,19 @@ __decorate([
|
|
|
69
69
|
(0, class_validator_1.IsBoolean)(),
|
|
70
70
|
__metadata("design:type", Boolean)
|
|
71
71
|
], EditStoreItemByExcelPayloadData.prototype, "isAbroadShipping", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, class_validator_1.IsBoolean)(),
|
|
74
|
+
(0, class_validator_1.IsOptional)(),
|
|
75
|
+
__metadata("design:type", Boolean)
|
|
76
|
+
], EditStoreItemByExcelPayloadData.prototype, "isPrepay", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, class_validator_1.IsBoolean)(),
|
|
79
|
+
(0, class_validator_1.IsOptional)(),
|
|
80
|
+
__metadata("design:type", Boolean)
|
|
81
|
+
], EditStoreItemByExcelPayloadData.prototype, "keepExistingShipping", void 0);
|
|
72
82
|
__decorate([
|
|
73
83
|
(0, class_validator_1.IsNumber)(),
|
|
84
|
+
(0, class_validator_1.IsOptional)(),
|
|
74
85
|
__metadata("design:type", Number)
|
|
75
86
|
], EditStoreItemByExcelPayloadData.prototype, "shippingFee", void 0);
|
|
76
87
|
__decorate([
|
|
@@ -7,6 +7,7 @@ export declare class RegStoreItemByExcelPayloadData extends RegStoreItemPayload
|
|
|
7
7
|
city: string;
|
|
8
8
|
expectedSendDays: number;
|
|
9
9
|
isAbroadShipping: boolean;
|
|
10
|
+
isPrepay?: boolean;
|
|
10
11
|
shippingFee?: number;
|
|
11
12
|
isShippingTerms?: boolean;
|
|
12
13
|
shippingTermsType?: SellingInfoLogShippingTermsTypeEnum;
|
|
@@ -33,7 +34,7 @@ export declare class RegStoreItemByExcelResult {
|
|
|
33
34
|
export declare class ResolveStoreItemByExcelSellingInfoLogResult {
|
|
34
35
|
sellingInfoLogId: string;
|
|
35
36
|
}
|
|
36
|
-
declare const StoreItemByExcelShippingData_base: import("@nestjs/mapped-types").MappedType<Pick<RegStoreItemByExcelPayloadData, "shippingFee" | "area" | "nation" | "city" | "isAbroadShipping" | "bundleShippingFee" | "isShippingTerms" | "isBundleShipping" | "expectedSendDays" | "shippingFeeSectionList" | "lastSectionShippingFee" | "shippingTermsType">>;
|
|
37
|
+
declare const StoreItemByExcelShippingData_base: import("@nestjs/mapped-types").MappedType<Pick<RegStoreItemByExcelPayloadData, "shippingFee" | "area" | "nation" | "city" | "isAbroadShipping" | "bundleShippingFee" | "isPrepay" | "isShippingTerms" | "isBundleShipping" | "expectedSendDays" | "shippingFeeSectionList" | "lastSectionShippingFee" | "shippingTermsType">>;
|
|
37
38
|
/** @author 홍준 @description Excel 등록의 판매·배송 로그에 필요한 조건만 선택합니다. */
|
|
38
39
|
export declare class StoreItemByExcelShippingData extends StoreItemByExcelShippingData_base {
|
|
39
40
|
}
|
|
@@ -39,6 +39,11 @@ __decorate([
|
|
|
39
39
|
(0, class_validator_1.IsBoolean)(),
|
|
40
40
|
__metadata("design:type", Boolean)
|
|
41
41
|
], RegStoreItemByExcelPayloadData.prototype, "isAbroadShipping", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.IsBoolean)(),
|
|
44
|
+
(0, class_validator_1.IsOptional)(),
|
|
45
|
+
__metadata("design:type", Boolean)
|
|
46
|
+
], RegStoreItemByExcelPayloadData.prototype, "isPrepay", void 0);
|
|
42
47
|
__decorate([
|
|
43
48
|
(0, class_validator_1.IsNumber)(),
|
|
44
49
|
(0, class_validator_1.IsOptional)(),
|
|
@@ -115,6 +120,7 @@ class StoreItemByExcelShippingData extends (0, mapped_types_1.PickType)(RegStore
|
|
|
115
120
|
'expectedSendDays',
|
|
116
121
|
'isAbroadShipping',
|
|
117
122
|
'shippingFee',
|
|
123
|
+
'isPrepay',
|
|
118
124
|
'isBundleShipping',
|
|
119
125
|
'bundleShippingFee',
|
|
120
126
|
'isShippingTerms',
|
|
@@ -43,6 +43,19 @@ export interface StoreItemBulkExportRow {
|
|
|
43
43
|
expectedSendDays: number;
|
|
44
44
|
isAbroadShipping: boolean;
|
|
45
45
|
shippingFee: number;
|
|
46
|
+
isPrepay?: boolean;
|
|
47
|
+
keepExistingShipping?: boolean;
|
|
48
|
+
existingShippingFeeBySection?: {
|
|
49
|
+
shippingFeeSectionList: Array<{
|
|
50
|
+
until: number;
|
|
51
|
+
untilShippingFee: number;
|
|
52
|
+
}>;
|
|
53
|
+
lastSectionShippingFee?: number;
|
|
54
|
+
};
|
|
55
|
+
isCustomsDutyAndTaxIncluded?: boolean;
|
|
56
|
+
isCustomsDutyAndTaxNotOccurred?: boolean;
|
|
57
|
+
precautionCodeList?: string[];
|
|
58
|
+
precautionEtc?: string;
|
|
46
59
|
isBundleShipping: boolean;
|
|
47
60
|
bundleShippingFee?: number;
|
|
48
61
|
lastModifyDate: Date;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
+
import { ProcessStoreMDThemeLastHourRankingPayload } from '../dto/store-item/command/process-store-md-theme-last-hour-ranking.dto';
|
|
3
4
|
import { GetSellingStoreItemIdsPayload, GetSellingStoreItemIdsResult } from '../dto/store-item/query/get-selling-store-item-ids.dto';
|
|
4
5
|
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
6
|
export declare class AmqpStoreItemService {
|
|
@@ -64,7 +65,7 @@ export declare class AmqpStoreItemService {
|
|
|
64
65
|
getSellerOwnedStoreItemById(payload: GetSellerOwnedStoreItemByIdPayload, param: AbstractParam): Promise<GetSellerOwnedStoreItemByIdResult>;
|
|
65
66
|
migrationStoreItemBrandInfo(param: AbstractParam): Promise<void>;
|
|
66
67
|
processSoldNumsLastNDays(param: AbstractParam): Promise<void>;
|
|
67
|
-
processStoreMDThemeLastHourRanking(param: AbstractParam): Promise<void>;
|
|
68
|
+
processStoreMDThemeLastHourRanking(payload: ProcessStoreMDThemeLastHourRankingPayload, param: AbstractParam): Promise<void>;
|
|
68
69
|
processBookNumsLastNDays(param: AbstractParam): Promise<void>;
|
|
69
70
|
processReviewNumsLastNDays(param: AbstractParam): Promise<void>;
|
|
70
71
|
getItemGroupNums(payload: GetItemGroupNumsPayload, param: AbstractParam): Promise<GetItemGroupNumsResult>;
|
|
@@ -133,8 +133,8 @@ let AmqpStoreItemService = class AmqpStoreItemService {
|
|
|
133
133
|
async processSoldNumsLastNDays(param) {
|
|
134
134
|
return this.amqpManager.call('상품 판매량 N일간 집계', 'store-item.process.sold-nums-last-n-days', {}, param, { isErrorThrowing: true });
|
|
135
135
|
}
|
|
136
|
-
async processStoreMDThemeLastHourRanking(param) {
|
|
137
|
-
return this.amqpManager.call('MDTheme 최근 1시간 랭킹 집계', 'store-item.process.store-md-theme-last-hour-ranking',
|
|
136
|
+
async processStoreMDThemeLastHourRanking(payload, param) {
|
|
137
|
+
return this.amqpManager.call('MDTheme 최근 1시간 랭킹 집계', 'store-item.process.store-md-theme-last-hour-ranking', payload, param, { isErrorThrowing: true });
|
|
138
138
|
}
|
|
139
139
|
async processBookNumsLastNDays(param) {
|
|
140
140
|
return this.amqpManager.call('상품 찜수 N일간 집계', 'store-item.process.book-nums-last-n-days', {}, param, { isErrorThrowing: true });
|