@yolo-croket-dev/amqp-access 0.7.434 → 0.7.435
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/excel-upload-server/dto/store-item-excel/query/generate-store-item-admin-excel.dto.d.ts +41 -0
- package/excel-upload-server/dto/store-item-excel/query/generate-store-item-admin-excel.dto.js +134 -0
- package/excel-upload-server/dto/store-item-excel/query/index.d.ts +1 -0
- package/excel-upload-server/dto/store-item-excel/query/index.js +1 -0
- package/excel-upload-server/services/amqp.store-item-excel.service.d.ts +2 -1
- package/excel-upload-server/services/amqp.store-item-excel.service.js +3 -0
- package/order-server/dto/purchasedinfos/command/auto-change-agreed-seller-waiting-orders-to-checking-stock.dto.d.ts +6 -0
- package/order-server/dto/purchasedinfos/command/auto-change-agreed-seller-waiting-orders-to-checking-stock.dto.js +10 -0
- package/package.json +2 -2
- package/store-item-server/dto/store-item/query/get-store-items-for-admin-excel.dto.d.ts +57 -0
- package/store-item-server/dto/store-item/query/get-store-items-for-admin-excel.dto.js +106 -0
- package/store-item-server/dto/store-item/query/get-store-items-for-kakao-catalog.dto.d.ts +20 -0
- package/store-item-server/dto/store-item/query/get-store-items-for-kakao-catalog.dto.js +57 -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/services/amqp.store-item.service.d.ts +2 -1
- package/store-item-server/services/amqp.store-item.service.js +3 -0
- package/user-service/dto/user/command/email-signup.dto.d.ts +41 -0
- package/user-service/dto/user/command/email-signup.dto.js +106 -0
package/excel-upload-server/dto/store-item-excel/query/generate-store-item-admin-excel.dto.d.ts
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/** @author sj @description 관리자 상품 데이터 엑셀 추출 입력 계약 */
|
|
2
|
+
export declare enum StoreItemAdminExcelSourceTypeEnum {
|
|
3
|
+
ITEM_IDS = "ITEM_IDS",
|
|
4
|
+
CONDITIONS = "CONDITIONS"
|
|
5
|
+
}
|
|
6
|
+
export declare enum StoreItemAdminExcelSortEnum {
|
|
7
|
+
LATEST = "LATEST",
|
|
8
|
+
POPULAR = "POPULAR",
|
|
9
|
+
CLICK = "CLICK",
|
|
10
|
+
SOLD = "SOLD",
|
|
11
|
+
PRICE_ASC = "PRICE_ASC",
|
|
12
|
+
PRICE_DESC = "PRICE_DESC"
|
|
13
|
+
}
|
|
14
|
+
export declare enum StoreItemAdminExcelColumnKeyEnum {
|
|
15
|
+
ITEM_NAME = "itemName",
|
|
16
|
+
ITEM_LINK = "itemLink",
|
|
17
|
+
ITEM_PRICE = "itemPrice",
|
|
18
|
+
ITEM_PRICE_FOR_BUYER = "itemPriceForBuyer",
|
|
19
|
+
SHIPPING_FEE = "shippingFee",
|
|
20
|
+
REMAIN_COUNT = "remainCount",
|
|
21
|
+
THUMBNAIL_URLS = "thumbnailUrls",
|
|
22
|
+
IS_SELLING = "isSelling",
|
|
23
|
+
IS_DELETE = "isDelete"
|
|
24
|
+
}
|
|
25
|
+
export declare class GenerateStoreItemAdminExcelPayload {
|
|
26
|
+
sourceType: StoreItemAdminExcelSourceTypeEnum;
|
|
27
|
+
itemIds?: string[];
|
|
28
|
+
registeredAtStart?: string;
|
|
29
|
+
registeredAtEnd?: string;
|
|
30
|
+
sort?: StoreItemAdminExcelSortEnum;
|
|
31
|
+
limit?: number;
|
|
32
|
+
sellerIds?: string[];
|
|
33
|
+
brandNames?: string[];
|
|
34
|
+
minItemPrice?: number;
|
|
35
|
+
maxItemPrice?: number;
|
|
36
|
+
minDiscountedPrice?: number;
|
|
37
|
+
maxDiscountedPrice?: number;
|
|
38
|
+
isSelling?: boolean;
|
|
39
|
+
isDelete?: boolean;
|
|
40
|
+
columnKeys?: StoreItemAdminExcelColumnKeyEnum[];
|
|
41
|
+
}
|
|
@@ -0,0 +1,134 @@
|
|
|
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.GenerateStoreItemAdminExcelPayload = exports.StoreItemAdminExcelColumnKeyEnum = exports.StoreItemAdminExcelSortEnum = exports.StoreItemAdminExcelSourceTypeEnum = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
/** @author sj @description 관리자 상품 데이터 엑셀 추출 입력 계약 */
|
|
15
|
+
var StoreItemAdminExcelSourceTypeEnum;
|
|
16
|
+
(function (StoreItemAdminExcelSourceTypeEnum) {
|
|
17
|
+
StoreItemAdminExcelSourceTypeEnum["ITEM_IDS"] = "ITEM_IDS";
|
|
18
|
+
StoreItemAdminExcelSourceTypeEnum["CONDITIONS"] = "CONDITIONS";
|
|
19
|
+
})(StoreItemAdminExcelSourceTypeEnum || (exports.StoreItemAdminExcelSourceTypeEnum = StoreItemAdminExcelSourceTypeEnum = {}));
|
|
20
|
+
var StoreItemAdminExcelSortEnum;
|
|
21
|
+
(function (StoreItemAdminExcelSortEnum) {
|
|
22
|
+
StoreItemAdminExcelSortEnum["LATEST"] = "LATEST";
|
|
23
|
+
StoreItemAdminExcelSortEnum["POPULAR"] = "POPULAR";
|
|
24
|
+
StoreItemAdminExcelSortEnum["CLICK"] = "CLICK";
|
|
25
|
+
StoreItemAdminExcelSortEnum["SOLD"] = "SOLD";
|
|
26
|
+
StoreItemAdminExcelSortEnum["PRICE_ASC"] = "PRICE_ASC";
|
|
27
|
+
StoreItemAdminExcelSortEnum["PRICE_DESC"] = "PRICE_DESC";
|
|
28
|
+
})(StoreItemAdminExcelSortEnum || (exports.StoreItemAdminExcelSortEnum = StoreItemAdminExcelSortEnum = {}));
|
|
29
|
+
var StoreItemAdminExcelColumnKeyEnum;
|
|
30
|
+
(function (StoreItemAdminExcelColumnKeyEnum) {
|
|
31
|
+
StoreItemAdminExcelColumnKeyEnum["ITEM_NAME"] = "itemName";
|
|
32
|
+
StoreItemAdminExcelColumnKeyEnum["ITEM_LINK"] = "itemLink";
|
|
33
|
+
StoreItemAdminExcelColumnKeyEnum["ITEM_PRICE"] = "itemPrice";
|
|
34
|
+
StoreItemAdminExcelColumnKeyEnum["ITEM_PRICE_FOR_BUYER"] = "itemPriceForBuyer";
|
|
35
|
+
StoreItemAdminExcelColumnKeyEnum["SHIPPING_FEE"] = "shippingFee";
|
|
36
|
+
StoreItemAdminExcelColumnKeyEnum["REMAIN_COUNT"] = "remainCount";
|
|
37
|
+
StoreItemAdminExcelColumnKeyEnum["THUMBNAIL_URLS"] = "thumbnailUrls";
|
|
38
|
+
StoreItemAdminExcelColumnKeyEnum["IS_SELLING"] = "isSelling";
|
|
39
|
+
StoreItemAdminExcelColumnKeyEnum["IS_DELETE"] = "isDelete";
|
|
40
|
+
})(StoreItemAdminExcelColumnKeyEnum || (exports.StoreItemAdminExcelColumnKeyEnum = StoreItemAdminExcelColumnKeyEnum = {}));
|
|
41
|
+
class GenerateStoreItemAdminExcelPayload {
|
|
42
|
+
}
|
|
43
|
+
exports.GenerateStoreItemAdminExcelPayload = GenerateStoreItemAdminExcelPayload;
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, class_validator_1.IsEnum)(StoreItemAdminExcelSourceTypeEnum),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], GenerateStoreItemAdminExcelPayload.prototype, "sourceType", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_validator_1.ValidateIf)((value) => value.sourceType === StoreItemAdminExcelSourceTypeEnum.ITEM_IDS),
|
|
50
|
+
(0, class_validator_1.IsArray)(),
|
|
51
|
+
(0, class_validator_1.ArrayNotEmpty)(),
|
|
52
|
+
(0, class_validator_1.ArrayMaxSize)(5000),
|
|
53
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
54
|
+
(0, class_validator_1.MaxLength)(100, { each: true }),
|
|
55
|
+
__metadata("design:type", Array)
|
|
56
|
+
], GenerateStoreItemAdminExcelPayload.prototype, "itemIds", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, class_validator_1.ValidateIf)((value) => value.sourceType === StoreItemAdminExcelSourceTypeEnum.CONDITIONS),
|
|
59
|
+
(0, class_validator_1.IsDateString)(),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], GenerateStoreItemAdminExcelPayload.prototype, "registeredAtStart", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, class_validator_1.ValidateIf)((value) => value.sourceType === StoreItemAdminExcelSourceTypeEnum.CONDITIONS),
|
|
64
|
+
(0, class_validator_1.IsDateString)(),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], GenerateStoreItemAdminExcelPayload.prototype, "registeredAtEnd", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, class_validator_1.IsEnum)(StoreItemAdminExcelSortEnum),
|
|
69
|
+
(0, class_validator_1.IsOptional)(),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], GenerateStoreItemAdminExcelPayload.prototype, "sort", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, class_validator_1.IsInt)(),
|
|
74
|
+
(0, class_validator_1.Min)(1),
|
|
75
|
+
(0, class_validator_1.Max)(5000),
|
|
76
|
+
(0, class_validator_1.IsOptional)(),
|
|
77
|
+
__metadata("design:type", Number)
|
|
78
|
+
], GenerateStoreItemAdminExcelPayload.prototype, "limit", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, class_validator_1.IsArray)(),
|
|
81
|
+
(0, class_validator_1.ArrayMaxSize)(100),
|
|
82
|
+
(0, class_validator_1.IsMongoId)({ each: true }),
|
|
83
|
+
(0, class_validator_1.IsOptional)(),
|
|
84
|
+
__metadata("design:type", Array)
|
|
85
|
+
], GenerateStoreItemAdminExcelPayload.prototype, "sellerIds", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, class_validator_1.IsArray)(),
|
|
88
|
+
(0, class_validator_1.ArrayMaxSize)(100),
|
|
89
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
90
|
+
(0, class_validator_1.MaxLength)(100, { each: true }),
|
|
91
|
+
(0, class_validator_1.IsOptional)(),
|
|
92
|
+
__metadata("design:type", Array)
|
|
93
|
+
], GenerateStoreItemAdminExcelPayload.prototype, "brandNames", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, class_validator_1.IsInt)(),
|
|
96
|
+
(0, class_validator_1.Min)(0),
|
|
97
|
+
(0, class_validator_1.IsOptional)(),
|
|
98
|
+
__metadata("design:type", Number)
|
|
99
|
+
], GenerateStoreItemAdminExcelPayload.prototype, "minItemPrice", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
(0, class_validator_1.IsInt)(),
|
|
102
|
+
(0, class_validator_1.Min)(0),
|
|
103
|
+
(0, class_validator_1.IsOptional)(),
|
|
104
|
+
__metadata("design:type", Number)
|
|
105
|
+
], GenerateStoreItemAdminExcelPayload.prototype, "maxItemPrice", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
(0, class_validator_1.IsInt)(),
|
|
108
|
+
(0, class_validator_1.Min)(0),
|
|
109
|
+
(0, class_validator_1.IsOptional)(),
|
|
110
|
+
__metadata("design:type", Number)
|
|
111
|
+
], GenerateStoreItemAdminExcelPayload.prototype, "minDiscountedPrice", void 0);
|
|
112
|
+
__decorate([
|
|
113
|
+
(0, class_validator_1.IsInt)(),
|
|
114
|
+
(0, class_validator_1.Min)(0),
|
|
115
|
+
(0, class_validator_1.IsOptional)(),
|
|
116
|
+
__metadata("design:type", Number)
|
|
117
|
+
], GenerateStoreItemAdminExcelPayload.prototype, "maxDiscountedPrice", void 0);
|
|
118
|
+
__decorate([
|
|
119
|
+
(0, class_validator_1.IsBoolean)(),
|
|
120
|
+
(0, class_validator_1.IsOptional)(),
|
|
121
|
+
__metadata("design:type", Boolean)
|
|
122
|
+
], GenerateStoreItemAdminExcelPayload.prototype, "isSelling", void 0);
|
|
123
|
+
__decorate([
|
|
124
|
+
(0, class_validator_1.IsBoolean)(),
|
|
125
|
+
(0, class_validator_1.IsOptional)(),
|
|
126
|
+
__metadata("design:type", Boolean)
|
|
127
|
+
], GenerateStoreItemAdminExcelPayload.prototype, "isDelete", void 0);
|
|
128
|
+
__decorate([
|
|
129
|
+
(0, class_validator_1.IsArray)(),
|
|
130
|
+
(0, class_validator_1.ArrayNotEmpty)(),
|
|
131
|
+
(0, class_validator_1.IsEnum)(StoreItemAdminExcelColumnKeyEnum, { each: true }),
|
|
132
|
+
(0, class_validator_1.IsOptional)(),
|
|
133
|
+
__metadata("design:type", Array)
|
|
134
|
+
], GenerateStoreItemAdminExcelPayload.prototype, "columnKeys", void 0);
|
|
@@ -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("./generate-store-item-naver-feed-excel.dto"), exports);
|
|
18
|
+
__exportStar(require("./generate-store-item-admin-excel.dto"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
-
import { UploadRegStoreItemBulkByExcelForAdminPayload, UploadRegStoreItemBulkByExcelForAdminResult, MakeAndUploadRegStoreItemResultByLogPayload, MakeAndUploadItemsForExpectGroupCreatePayload, MakeAndUploadItemsForExpectGroupCreateResult, GenerateStoreItemNaverFeedExcelPayload } from '../dto/store-item-excel';
|
|
3
|
+
import { UploadRegStoreItemBulkByExcelForAdminPayload, UploadRegStoreItemBulkByExcelForAdminResult, MakeAndUploadRegStoreItemResultByLogPayload, MakeAndUploadItemsForExpectGroupCreatePayload, MakeAndUploadItemsForExpectGroupCreateResult, GenerateStoreItemNaverFeedExcelPayload, GenerateStoreItemAdminExcelPayload } from '../dto/store-item-excel';
|
|
4
4
|
export declare class AmqpStoreItemExcelService {
|
|
5
5
|
private readonly client;
|
|
6
6
|
private readonly amqpManager;
|
|
@@ -15,4 +15,5 @@ export declare class AmqpStoreItemExcelService {
|
|
|
15
15
|
syncGoogleProductFeed(payload: unknown, param: AbstractParam): Promise<void>;
|
|
16
16
|
syncKakaoCatalogSpreadsheets(payload: unknown, param: AbstractParam): Promise<void>;
|
|
17
17
|
generateStoreItemNaverFeedExcel(payload: GenerateStoreItemNaverFeedExcelPayload, param: AbstractParam): Promise<void>;
|
|
18
|
+
generateStoreItemAdminExcel(payload: GenerateStoreItemAdminExcelPayload, param: AbstractParam): Promise<void>;
|
|
18
19
|
}
|
|
@@ -71,6 +71,9 @@ let AmqpStoreItemExcelService = class AmqpStoreItemExcelService {
|
|
|
71
71
|
async generateStoreItemNaverFeedExcel(payload, param) {
|
|
72
72
|
return this.amqpManager.call('네이버 피드 상품 엑셀 생성 및 슬랙 전송', 'store-item-excel.generate.naver-feed-excel', payload, param, { isErrorThrowing: true });
|
|
73
73
|
}
|
|
74
|
+
async generateStoreItemAdminExcel(payload, param) {
|
|
75
|
+
return this.amqpManager.call('관리자 상품 데이터 엑셀 생성 및 슬랙 전송', 'store-item-excel.generate.admin-export', payload, param, { isErrorThrowing: true });
|
|
76
|
+
}
|
|
74
77
|
};
|
|
75
78
|
exports.AmqpStoreItemExcelService = AmqpStoreItemExcelService;
|
|
76
79
|
exports.AmqpStoreItemExcelService = AmqpStoreItemExcelService = __decorate([
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AutoChangeAgreedSellerWaitingOrdersToCheckingStockPayload = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* @author sj
|
|
6
|
+
* @description 사전 협의 셀러 주문의 재고 확인중 자동 전환 요청이다.
|
|
7
|
+
*/
|
|
8
|
+
class AutoChangeAgreedSellerWaitingOrdersToCheckingStockPayload {
|
|
9
|
+
}
|
|
10
|
+
exports.AutoChangeAgreedSellerWaitingOrdersToCheckingStockPayload = AutoChangeAgreedSellerWaitingOrdersToCheckingStockPayload;
|
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.435",
|
|
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
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { StoreItemAdminExcelSortEnum, StoreItemAdminExcelSourceTypeEnum } from '@yolo-croket-dev/amqp-access/excel-upload-server/dto/store-item-excel/query/generate-store-item-admin-excel.dto';
|
|
2
|
+
/** @author sj @description 관리자 상품 엑셀 페이지 조회 계약 */
|
|
3
|
+
export declare class GetStoreItemsForAdminExcelPayload {
|
|
4
|
+
sourceType: StoreItemAdminExcelSourceTypeEnum;
|
|
5
|
+
itemIds?: string[];
|
|
6
|
+
registeredAtStart?: string;
|
|
7
|
+
registeredAtEnd?: string;
|
|
8
|
+
sort?: StoreItemAdminExcelSortEnum;
|
|
9
|
+
sellerIds?: string[];
|
|
10
|
+
brandNames?: string[];
|
|
11
|
+
minItemPrice?: number;
|
|
12
|
+
maxItemPrice?: number;
|
|
13
|
+
minDiscountedPrice?: number;
|
|
14
|
+
maxDiscountedPrice?: number;
|
|
15
|
+
isSelling?: boolean;
|
|
16
|
+
isDelete?: boolean;
|
|
17
|
+
searchAfter?: string;
|
|
18
|
+
limit: number;
|
|
19
|
+
}
|
|
20
|
+
export interface StoreItemAdminExcelShippingFeeSection {
|
|
21
|
+
untilShippingFee?: number;
|
|
22
|
+
}
|
|
23
|
+
export interface StoreItemAdminExcelShippingInfo {
|
|
24
|
+
isPrepay?: boolean;
|
|
25
|
+
prepayPrice?: number;
|
|
26
|
+
isShippingTerms?: boolean;
|
|
27
|
+
shippingTermsInfo?: {
|
|
28
|
+
shippingFeeBySection?: {
|
|
29
|
+
shippingFeeSectionList?: StoreItemAdminExcelShippingFeeSection[];
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export declare class StoreItemAdminExcelRow {
|
|
34
|
+
itemId: string;
|
|
35
|
+
itemName?: string;
|
|
36
|
+
itemPrice?: number;
|
|
37
|
+
itemPriceForBuyer?: number;
|
|
38
|
+
itemPriceForBuyerWithShippingFeeAndCouponDiscount?: number;
|
|
39
|
+
remainCount?: number;
|
|
40
|
+
itemImg?: string[];
|
|
41
|
+
isSelling?: boolean;
|
|
42
|
+
isDelete?: boolean;
|
|
43
|
+
sellingInfo?: {
|
|
44
|
+
shippingInfo?: StoreItemAdminExcelShippingInfo;
|
|
45
|
+
};
|
|
46
|
+
paginationToken?: string;
|
|
47
|
+
}
|
|
48
|
+
export interface StoreItemAdminExcelUnresolvedItem {
|
|
49
|
+
itemId: string;
|
|
50
|
+
rowNumber: number;
|
|
51
|
+
reason: 'INVALID_ID' | 'DUPLICATED_ID' | 'NOT_FOUND';
|
|
52
|
+
}
|
|
53
|
+
export declare class GetStoreItemsForAdminExcelResult {
|
|
54
|
+
rows: StoreItemAdminExcelRow[];
|
|
55
|
+
nextSearchAfter?: string;
|
|
56
|
+
unresolvedItems?: StoreItemAdminExcelUnresolvedItem[];
|
|
57
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
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.GetStoreItemsForAdminExcelResult = exports.StoreItemAdminExcelRow = exports.GetStoreItemsForAdminExcelPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const generate_store_item_admin_excel_dto_1 = require("@yolo-croket-dev/amqp-access/excel-upload-server/dto/store-item-excel/query/generate-store-item-admin-excel.dto");
|
|
15
|
+
/** @author sj @description 관리자 상품 엑셀 페이지 조회 계약 */
|
|
16
|
+
class GetStoreItemsForAdminExcelPayload {
|
|
17
|
+
}
|
|
18
|
+
exports.GetStoreItemsForAdminExcelPayload = GetStoreItemsForAdminExcelPayload;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_validator_1.IsEnum)(generate_store_item_admin_excel_dto_1.StoreItemAdminExcelSourceTypeEnum),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], GetStoreItemsForAdminExcelPayload.prototype, "sourceType", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsArray)(),
|
|
25
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
26
|
+
(0, class_validator_1.IsOptional)(),
|
|
27
|
+
__metadata("design:type", Array)
|
|
28
|
+
], GetStoreItemsForAdminExcelPayload.prototype, "itemIds", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsDateString)(),
|
|
31
|
+
(0, class_validator_1.IsOptional)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], GetStoreItemsForAdminExcelPayload.prototype, "registeredAtStart", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_1.IsDateString)(),
|
|
36
|
+
(0, class_validator_1.IsOptional)(),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], GetStoreItemsForAdminExcelPayload.prototype, "registeredAtEnd", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_validator_1.IsEnum)(generate_store_item_admin_excel_dto_1.StoreItemAdminExcelSortEnum),
|
|
41
|
+
(0, class_validator_1.IsOptional)(),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], GetStoreItemsForAdminExcelPayload.prototype, "sort", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, class_validator_1.IsArray)(),
|
|
46
|
+
(0, class_validator_1.IsMongoId)({ each: true }),
|
|
47
|
+
(0, class_validator_1.IsOptional)(),
|
|
48
|
+
__metadata("design:type", Array)
|
|
49
|
+
], GetStoreItemsForAdminExcelPayload.prototype, "sellerIds", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, class_validator_1.IsArray)(),
|
|
52
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
53
|
+
(0, class_validator_1.IsOptional)(),
|
|
54
|
+
__metadata("design:type", Array)
|
|
55
|
+
], GetStoreItemsForAdminExcelPayload.prototype, "brandNames", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, class_validator_1.IsInt)(),
|
|
58
|
+
(0, class_validator_1.Min)(0),
|
|
59
|
+
(0, class_validator_1.IsOptional)(),
|
|
60
|
+
__metadata("design:type", Number)
|
|
61
|
+
], GetStoreItemsForAdminExcelPayload.prototype, "minItemPrice", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, class_validator_1.IsInt)(),
|
|
64
|
+
(0, class_validator_1.Min)(0),
|
|
65
|
+
(0, class_validator_1.IsOptional)(),
|
|
66
|
+
__metadata("design:type", Number)
|
|
67
|
+
], GetStoreItemsForAdminExcelPayload.prototype, "maxItemPrice", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, class_validator_1.IsInt)(),
|
|
70
|
+
(0, class_validator_1.Min)(0),
|
|
71
|
+
(0, class_validator_1.IsOptional)(),
|
|
72
|
+
__metadata("design:type", Number)
|
|
73
|
+
], GetStoreItemsForAdminExcelPayload.prototype, "minDiscountedPrice", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, class_validator_1.IsInt)(),
|
|
76
|
+
(0, class_validator_1.Min)(0),
|
|
77
|
+
(0, class_validator_1.IsOptional)(),
|
|
78
|
+
__metadata("design:type", Number)
|
|
79
|
+
], GetStoreItemsForAdminExcelPayload.prototype, "maxDiscountedPrice", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, class_validator_1.IsBoolean)(),
|
|
82
|
+
(0, class_validator_1.IsOptional)(),
|
|
83
|
+
__metadata("design:type", Boolean)
|
|
84
|
+
], GetStoreItemsForAdminExcelPayload.prototype, "isSelling", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, class_validator_1.IsBoolean)(),
|
|
87
|
+
(0, class_validator_1.IsOptional)(),
|
|
88
|
+
__metadata("design:type", Boolean)
|
|
89
|
+
], GetStoreItemsForAdminExcelPayload.prototype, "isDelete", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, class_validator_1.IsString)(),
|
|
92
|
+
(0, class_validator_1.IsOptional)(),
|
|
93
|
+
__metadata("design:type", String)
|
|
94
|
+
], GetStoreItemsForAdminExcelPayload.prototype, "searchAfter", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, class_validator_1.IsInt)(),
|
|
97
|
+
(0, class_validator_1.Min)(1),
|
|
98
|
+
(0, class_validator_1.Max)(500),
|
|
99
|
+
__metadata("design:type", Number)
|
|
100
|
+
], GetStoreItemsForAdminExcelPayload.prototype, "limit", void 0);
|
|
101
|
+
class StoreItemAdminExcelRow {
|
|
102
|
+
}
|
|
103
|
+
exports.StoreItemAdminExcelRow = StoreItemAdminExcelRow;
|
|
104
|
+
class GetStoreItemsForAdminExcelResult {
|
|
105
|
+
}
|
|
106
|
+
exports.GetStoreItemsForAdminExcelResult = GetStoreItemsForAdminExcelResult;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { StoreItemEntity as StoreItem } from '@yolo-croket-dev/entity-v2/store-item';
|
|
2
|
+
export declare enum GetStoreItemsForKakaoCatalogKeywordMatchTypeEnum {
|
|
3
|
+
PHRASE = "PHRASE"
|
|
4
|
+
}
|
|
5
|
+
export declare class GetStoreItemsForKakaoCatalogPayload {
|
|
6
|
+
mainCategories?: string[];
|
|
7
|
+
excludedSubCategories?: string[];
|
|
8
|
+
itemNameKeywords?: string[];
|
|
9
|
+
itemNameKeywordMatchType?: GetStoreItemsForKakaoCatalogKeywordMatchTypeEnum;
|
|
10
|
+
limit: number;
|
|
11
|
+
paginationToken?: string;
|
|
12
|
+
}
|
|
13
|
+
export type GetStoreItemsForKakaoCatalogItem = Pick<StoreItem, '_id' | 'itemName' | 'contents' | 'itemPriceForBuyer' | 'itemPrice' | 'itemImg' | 'mainCategory' | 'subCategory' | 'brandInfo' | 'mainSku' | 'nation' | 'isSelling' | 'isDelete' | 'remainCount' | 'itemType' | 'isSecret'> & {
|
|
14
|
+
paginationToken?: string;
|
|
15
|
+
};
|
|
16
|
+
export declare class GetStoreItemsForKakaoCatalogResult {
|
|
17
|
+
storeItems: GetStoreItemsForKakaoCatalogItem[];
|
|
18
|
+
lastPaginationToken?: string;
|
|
19
|
+
maxPage?: number;
|
|
20
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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.GetStoreItemsForKakaoCatalogResult = exports.GetStoreItemsForKakaoCatalogPayload = exports.GetStoreItemsForKakaoCatalogKeywordMatchTypeEnum = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
var GetStoreItemsForKakaoCatalogKeywordMatchTypeEnum;
|
|
16
|
+
(function (GetStoreItemsForKakaoCatalogKeywordMatchTypeEnum) {
|
|
17
|
+
GetStoreItemsForKakaoCatalogKeywordMatchTypeEnum["PHRASE"] = "PHRASE";
|
|
18
|
+
})(GetStoreItemsForKakaoCatalogKeywordMatchTypeEnum || (exports.GetStoreItemsForKakaoCatalogKeywordMatchTypeEnum = GetStoreItemsForKakaoCatalogKeywordMatchTypeEnum = {}));
|
|
19
|
+
class GetStoreItemsForKakaoCatalogPayload {
|
|
20
|
+
}
|
|
21
|
+
exports.GetStoreItemsForKakaoCatalogPayload = GetStoreItemsForKakaoCatalogPayload;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsArray)(),
|
|
24
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
25
|
+
(0, class_validator_1.IsOptional)(),
|
|
26
|
+
__metadata("design:type", Array)
|
|
27
|
+
], GetStoreItemsForKakaoCatalogPayload.prototype, "mainCategories", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsArray)(),
|
|
30
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
31
|
+
(0, class_validator_1.IsOptional)(),
|
|
32
|
+
__metadata("design:type", Array)
|
|
33
|
+
], GetStoreItemsForKakaoCatalogPayload.prototype, "excludedSubCategories", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_1.IsArray)(),
|
|
36
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
37
|
+
(0, class_validator_1.IsOptional)(),
|
|
38
|
+
__metadata("design:type", Array)
|
|
39
|
+
], GetStoreItemsForKakaoCatalogPayload.prototype, "itemNameKeywords", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, class_validator_1.IsEnum)(GetStoreItemsForKakaoCatalogKeywordMatchTypeEnum),
|
|
42
|
+
(0, class_validator_1.IsOptional)(),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], GetStoreItemsForKakaoCatalogPayload.prototype, "itemNameKeywordMatchType", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_validator_1.IsNumber)(),
|
|
47
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
48
|
+
__metadata("design:type", Number)
|
|
49
|
+
], GetStoreItemsForKakaoCatalogPayload.prototype, "limit", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, class_validator_1.IsString)(),
|
|
52
|
+
(0, class_validator_1.IsOptional)(),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], GetStoreItemsForKakaoCatalogPayload.prototype, "paginationToken", void 0);
|
|
55
|
+
class GetStoreItemsForKakaoCatalogResult {
|
|
56
|
+
}
|
|
57
|
+
exports.GetStoreItemsForKakaoCatalogResult = GetStoreItemsForKakaoCatalogResult;
|
|
@@ -37,3 +37,4 @@ export * from './get-abroad-shipping-store-item-exists.dto';
|
|
|
37
37
|
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
|
+
export * from './get-store-items-for-admin-excel.dto';
|
|
@@ -53,3 +53,4 @@ __exportStar(require("./get-abroad-shipping-store-item-exists.dto"), exports);
|
|
|
53
53
|
__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
|
+
__exportStar(require("./get-store-items-for-admin-excel.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, 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, 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;
|
|
@@ -94,6 +94,7 @@ export declare class AmqpStoreItemService {
|
|
|
94
94
|
dalphaUpdateBrandNameBulk(payload: DalphaUpdateBrandNameBulkPayload, param: AbstractParam): Promise<void>;
|
|
95
95
|
syncSeduceAddCartItemIds(param: AbstractParam): Promise<void>;
|
|
96
96
|
getStoreItemsForExtractionByType(param: AbstractParam): Promise<GetStoreItemsForExtractionByTypeResult>;
|
|
97
|
+
getStoreItemsForAdminExcel(payload: GetStoreItemsForAdminExcelPayload, param: AbstractParam): Promise<GetStoreItemsForAdminExcelResult>;
|
|
97
98
|
resizeItemImg(payload: ResizeItemImgPayload, param: AbstractParam): Promise<void>;
|
|
98
99
|
resizeItemImgOnlyPublish(payload: ResizeItemImgPayload, param: AbstractParam): Promise<boolean>;
|
|
99
100
|
getStoreInfosByItemIds(payload: GetStoreInfosByItemIdsPayload, param: AbstractParam): Promise<GetStoreInfosByItemIdsResult[]>;
|
|
@@ -225,6 +225,9 @@ let AmqpStoreItemService = class AmqpStoreItemService {
|
|
|
225
225
|
async getStoreItemsForExtractionByType(param) {
|
|
226
226
|
return this.amqpManager.call('상품 추출 타입별 조회', 'store-item.get.store-items-for-extraction-by-type', {}, param, { isErrorThrowing: true });
|
|
227
227
|
}
|
|
228
|
+
async getStoreItemsForAdminExcel(payload, param) {
|
|
229
|
+
return this.amqpManager.call('관리자 상품 데이터 엑셀 조회', 'store-item.get.admin-excel-page', payload, param, { isErrorThrowing: true });
|
|
230
|
+
}
|
|
228
231
|
async resizeItemImg(payload, param) {
|
|
229
232
|
return this.amqpManager.call('상품 썸네일 이미지 리사이징 (version 0)', 'store-item.resize.item-img', payload, param, { isErrorThrowing: true });
|
|
230
233
|
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/** @author sj @description 이메일 전용 가입 인증 메일 발송 입력 @process user-service가 가입 전 Redis 인증 세션을 만들고 인증 메일 발송을 요청한다. */
|
|
2
|
+
export declare class RequestEmailSignupVerificationPayload {
|
|
3
|
+
email: string;
|
|
4
|
+
locale?: string;
|
|
5
|
+
}
|
|
6
|
+
/** @author sj @description 이메일 전용 가입 인증 메일 발송 결과 @process 클라이언트는 verificationId만 인증번호 확인 요청에 사용한다. */
|
|
7
|
+
export declare class RequestEmailSignupVerificationResult {
|
|
8
|
+
verificationId: string;
|
|
9
|
+
expiresAt: string;
|
|
10
|
+
retryAfterSeconds: number;
|
|
11
|
+
}
|
|
12
|
+
/** @author sj @description 이메일 가입 인증번호 검증 입력 @process 인증 세션 식별자와 6자리 코드만 전달하며 이메일 원문은 다시 받지 않는다. */
|
|
13
|
+
export declare class ConfirmEmailSignupVerificationPayload {
|
|
14
|
+
verificationId: string;
|
|
15
|
+
code: string;
|
|
16
|
+
}
|
|
17
|
+
/** @author sj @description 이메일 가입 인증번호 검증 결과 @process 가입 API에서 한 번만 사용할 불투명 verificationToken을 반환한다. */
|
|
18
|
+
export declare class ConfirmEmailSignupVerificationResult {
|
|
19
|
+
verificationToken: string;
|
|
20
|
+
expiresAt: string;
|
|
21
|
+
}
|
|
22
|
+
/** @author sj @description 전화번호 없는 이메일 전용 회원가입 입력 @process 인증 완료 token과 기존 가입 동의 필드로 User를 생성한다. */
|
|
23
|
+
export declare class CreateEmailSignupPayload {
|
|
24
|
+
email: string;
|
|
25
|
+
password: string;
|
|
26
|
+
username: string;
|
|
27
|
+
verificationToken: string;
|
|
28
|
+
event_email?: boolean;
|
|
29
|
+
event_sms?: boolean;
|
|
30
|
+
event_appPush?: boolean;
|
|
31
|
+
from?: string;
|
|
32
|
+
afterAgreementAD?: boolean;
|
|
33
|
+
}
|
|
34
|
+
/** @author sj @description 이메일 전용 회원가입 결과 @process 생성 User와 즉시 로그인에 필요한 JWT만 반환한다. */
|
|
35
|
+
export declare class CreateEmailSignupResult {
|
|
36
|
+
result: true;
|
|
37
|
+
userId: string;
|
|
38
|
+
userid: string;
|
|
39
|
+
access_token: string;
|
|
40
|
+
refresh_token: string;
|
|
41
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
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.CreateEmailSignupResult = exports.CreateEmailSignupPayload = exports.ConfirmEmailSignupVerificationResult = exports.ConfirmEmailSignupVerificationPayload = exports.RequestEmailSignupVerificationResult = exports.RequestEmailSignupVerificationPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
/** @author sj @description 이메일 전용 가입 인증 메일 발송 입력 @process user-service가 가입 전 Redis 인증 세션을 만들고 인증 메일 발송을 요청한다. */
|
|
15
|
+
class RequestEmailSignupVerificationPayload {
|
|
16
|
+
}
|
|
17
|
+
exports.RequestEmailSignupVerificationPayload = RequestEmailSignupVerificationPayload;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsEmail)(),
|
|
20
|
+
(0, class_validator_1.MaxLength)(320),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], RequestEmailSignupVerificationPayload.prototype, "email", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsOptional)(),
|
|
25
|
+
(0, class_validator_1.IsString)(),
|
|
26
|
+
(0, class_validator_1.MaxLength)(20),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], RequestEmailSignupVerificationPayload.prototype, "locale", void 0);
|
|
29
|
+
/** @author sj @description 이메일 전용 가입 인증 메일 발송 결과 @process 클라이언트는 verificationId만 인증번호 확인 요청에 사용한다. */
|
|
30
|
+
class RequestEmailSignupVerificationResult {
|
|
31
|
+
}
|
|
32
|
+
exports.RequestEmailSignupVerificationResult = RequestEmailSignupVerificationResult;
|
|
33
|
+
/** @author sj @description 이메일 가입 인증번호 검증 입력 @process 인증 세션 식별자와 6자리 코드만 전달하며 이메일 원문은 다시 받지 않는다. */
|
|
34
|
+
class ConfirmEmailSignupVerificationPayload {
|
|
35
|
+
}
|
|
36
|
+
exports.ConfirmEmailSignupVerificationPayload = ConfirmEmailSignupVerificationPayload;
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsString)(),
|
|
39
|
+
(0, class_validator_1.Matches)(/^[A-Za-z0-9_-]{21}$/),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], ConfirmEmailSignupVerificationPayload.prototype, "verificationId", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.IsString)(),
|
|
44
|
+
(0, class_validator_1.Matches)(/^\d{6}$/),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], ConfirmEmailSignupVerificationPayload.prototype, "code", void 0);
|
|
47
|
+
/** @author sj @description 이메일 가입 인증번호 검증 결과 @process 가입 API에서 한 번만 사용할 불투명 verificationToken을 반환한다. */
|
|
48
|
+
class ConfirmEmailSignupVerificationResult {
|
|
49
|
+
}
|
|
50
|
+
exports.ConfirmEmailSignupVerificationResult = ConfirmEmailSignupVerificationResult;
|
|
51
|
+
/** @author sj @description 전화번호 없는 이메일 전용 회원가입 입력 @process 인증 완료 token과 기존 가입 동의 필드로 User를 생성한다. */
|
|
52
|
+
class CreateEmailSignupPayload {
|
|
53
|
+
}
|
|
54
|
+
exports.CreateEmailSignupPayload = CreateEmailSignupPayload;
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, class_validator_1.IsEmail)(),
|
|
57
|
+
(0, class_validator_1.MaxLength)(320),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], CreateEmailSignupPayload.prototype, "email", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, class_validator_1.IsString)(),
|
|
62
|
+
(0, class_validator_1.MinLength)(8),
|
|
63
|
+
(0, class_validator_1.MaxLength)(20),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], CreateEmailSignupPayload.prototype, "password", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, class_validator_1.IsString)(),
|
|
68
|
+
(0, class_validator_1.MinLength)(1),
|
|
69
|
+
(0, class_validator_1.MaxLength)(100),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], CreateEmailSignupPayload.prototype, "username", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, class_validator_1.IsString)(),
|
|
74
|
+
(0, class_validator_1.Matches)(/^[A-Za-z0-9_-]{43}$/),
|
|
75
|
+
__metadata("design:type", String)
|
|
76
|
+
], CreateEmailSignupPayload.prototype, "verificationToken", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, class_validator_1.IsOptional)(),
|
|
79
|
+
(0, class_validator_1.IsBoolean)(),
|
|
80
|
+
__metadata("design:type", Boolean)
|
|
81
|
+
], CreateEmailSignupPayload.prototype, "event_email", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, class_validator_1.IsOptional)(),
|
|
84
|
+
(0, class_validator_1.IsBoolean)(),
|
|
85
|
+
__metadata("design:type", Boolean)
|
|
86
|
+
], CreateEmailSignupPayload.prototype, "event_sms", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, class_validator_1.IsOptional)(),
|
|
89
|
+
(0, class_validator_1.IsBoolean)(),
|
|
90
|
+
__metadata("design:type", Boolean)
|
|
91
|
+
], CreateEmailSignupPayload.prototype, "event_appPush", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, class_validator_1.IsOptional)(),
|
|
94
|
+
(0, class_validator_1.IsString)(),
|
|
95
|
+
(0, class_validator_1.MaxLength)(100),
|
|
96
|
+
__metadata("design:type", String)
|
|
97
|
+
], CreateEmailSignupPayload.prototype, "from", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, class_validator_1.IsOptional)(),
|
|
100
|
+
(0, class_validator_1.IsBoolean)(),
|
|
101
|
+
__metadata("design:type", Boolean)
|
|
102
|
+
], CreateEmailSignupPayload.prototype, "afterAgreementAD", void 0);
|
|
103
|
+
/** @author sj @description 이메일 전용 회원가입 결과 @process 생성 User와 즉시 로그인에 필요한 JWT만 반환한다. */
|
|
104
|
+
class CreateEmailSignupResult {
|
|
105
|
+
}
|
|
106
|
+
exports.CreateEmailSignupResult = CreateEmailSignupResult;
|