@yolo-croket-dev/entity-v2 0.3.3 → 0.3.5
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
CHANGED
|
@@ -2,6 +2,7 @@ import { Types } from 'mongoose';
|
|
|
2
2
|
import { PurchasedInfoEntity } from '@yolo-croket-dev/entity/src/purchased-info/purchased-info.entity';
|
|
3
3
|
import { StoreItemKeyword } from '@yolo-croket-dev/entity/src/store-item';
|
|
4
4
|
import { CustomPurchasedInfo } from './custom-purchased-info.entity';
|
|
5
|
+
import { StoreItemTypeEnum } from '../store-item/store-item.entity';
|
|
5
6
|
import { UserEntity } from '../user/user.entity';
|
|
6
7
|
import { RefundEntity } from '../refund/refund.entity';
|
|
7
8
|
export default interface PurchasedInfoForSeller {
|
|
@@ -16,6 +17,8 @@ export type PInfoPickedForSeller = Pick<PurchasedInfoEntity, '_id' | 'publicId'
|
|
|
16
17
|
itemKeywords?: StoreItemKeyword[];
|
|
17
18
|
isPcccDeferred?: boolean;
|
|
18
19
|
isReceiveInfoChangedInBeforeDelivery?: boolean;
|
|
20
|
+
/** 구매 당시 상품 타입 */
|
|
21
|
+
itemType?: StoreItemTypeEnum;
|
|
19
22
|
};
|
|
20
23
|
export type PurchasedInfoForSellerDetail = {
|
|
21
24
|
pInfo: PInfoPickedForSeller;
|
|
@@ -7,6 +7,7 @@ import { NicepayBillingApproveResponse } from '../nicepay-billing-log/nicepay-bi
|
|
|
7
7
|
import { PartialRefundProcessEnum } from '../partial-refund';
|
|
8
8
|
import { AttributionDeviceTypeEnum } from '../attribution-touch';
|
|
9
9
|
import { PurchasedInfoTosspaymentsRefund } from './purchased-info.entity/p-info-tosspayments-refund.vo';
|
|
10
|
+
import { StoreItemTypeEnum } from '../store-item/store-item.entity';
|
|
10
11
|
export declare enum CardQuotaEnum {
|
|
11
12
|
일시불 = "00",
|
|
12
13
|
'1개월' = "01",
|
|
@@ -621,6 +622,8 @@ export interface PastStoreItemInfo {
|
|
|
621
622
|
itemPriceForBuyerWithShippingFee: number;
|
|
622
623
|
itemImg: string[];
|
|
623
624
|
itemName: string;
|
|
625
|
+
/** @description 구매 당시 상품 타입 */
|
|
626
|
+
itemType?: StoreItemTypeEnum;
|
|
624
627
|
isDelete: boolean;
|
|
625
628
|
sellingInfo: PastSellingInfo;
|
|
626
629
|
itemKeywords?: StoreItemKeyword[];
|
|
@@ -3,8 +3,52 @@ export declare enum StoreItemTypeEnum {
|
|
|
3
3
|
/** 일반 상품 */
|
|
4
4
|
'normal' = "normal",
|
|
5
5
|
/** 예약 상품 */
|
|
6
|
-
'reservation' = "reservation"
|
|
6
|
+
'reservation' = "reservation",
|
|
7
|
+
/** 중고 상품 */
|
|
8
|
+
'used' = "used"
|
|
7
9
|
}
|
|
10
|
+
export declare enum StoreItemUsedRarityEnum {
|
|
11
|
+
VERY_RARE = "VERY_RARE",
|
|
12
|
+
RARE = "RARE",
|
|
13
|
+
UNCOMMON = "UNCOMMON",
|
|
14
|
+
COMMON = "COMMON"
|
|
15
|
+
}
|
|
16
|
+
export declare enum StoreItemUsedConditionGradeEnum {
|
|
17
|
+
S = "S",
|
|
18
|
+
A = "A",
|
|
19
|
+
B = "B",
|
|
20
|
+
C = "C",
|
|
21
|
+
D = "D"
|
|
22
|
+
}
|
|
23
|
+
export declare enum StoreItemUsedCurrencyCodeEnum {
|
|
24
|
+
USD = "USD",
|
|
25
|
+
KRW = "KRW",
|
|
26
|
+
JPY = "JPY"
|
|
27
|
+
}
|
|
28
|
+
export interface StoreItemUsedReleasePriceInfo {
|
|
29
|
+
/** 발매가 통화 코드 */
|
|
30
|
+
currencyCode: StoreItemUsedCurrencyCodeEnum;
|
|
31
|
+
/** 발매가 */
|
|
32
|
+
amount: number;
|
|
33
|
+
}
|
|
34
|
+
export interface StoreItemUsedInfo {
|
|
35
|
+
/** 제작 연도 */
|
|
36
|
+
productionYear?: number;
|
|
37
|
+
/** 상품 발견 국가 코드 */
|
|
38
|
+
discoveryCountryCode?: string;
|
|
39
|
+
/** 희귀도 */
|
|
40
|
+
rarity?: StoreItemUsedRarityEnum;
|
|
41
|
+
/** 상품 상태 등급 */
|
|
42
|
+
conditionGrade?: StoreItemUsedConditionGradeEnum;
|
|
43
|
+
/** 발매 가격 정보 */
|
|
44
|
+
releasePriceInfo?: StoreItemUsedReleasePriceInfo;
|
|
45
|
+
/** USED 정보 등록일 */
|
|
46
|
+
regDate: Date;
|
|
47
|
+
/** USED 정보 수정일 */
|
|
48
|
+
lastModifyDate: Date;
|
|
49
|
+
}
|
|
50
|
+
/** 구매자에게 공개하는 중고 상품 추가 정보 */
|
|
51
|
+
export type UsedItemInfoForBuyer = Pick<StoreItemUsedInfo, 'productionYear' | 'discoveryCountryCode' | 'rarity' | 'conditionGrade' | 'releasePriceInfo'>;
|
|
8
52
|
/**
|
|
9
53
|
* @author jun
|
|
10
54
|
* @description 예약 상품 재고 모드
|
|
@@ -499,8 +543,6 @@ export interface StoreItemEntity {
|
|
|
499
543
|
sellerId: Types.ObjectId | string;
|
|
500
544
|
/** 셀러가 상품 관리에 사용하는 비공개 메모 */
|
|
501
545
|
sellerMemo?: string;
|
|
502
|
-
/** 중고 상품 여부 (미설정 시 신상품으로 해석) */
|
|
503
|
-
isUsedProduct?: boolean;
|
|
504
546
|
/** 크롤링 원본 상품 식별 정보 */
|
|
505
547
|
crawling?: StoreItemCrawlingInfo;
|
|
506
548
|
/**
|
|
@@ -912,6 +954,10 @@ export interface StoreItemEntity {
|
|
|
912
954
|
matchKeywordsUpdateDate?: Date;
|
|
913
955
|
/** 상품 타입 */
|
|
914
956
|
itemType?: StoreItemTypeEnum;
|
|
957
|
+
/** 대표 품번 */
|
|
958
|
+
mainSku?: string;
|
|
959
|
+
/** 중고 상품 추가 정보 */
|
|
960
|
+
usedItemInfo?: StoreItemUsedInfo;
|
|
915
961
|
/** @description 예약 상품 정보 */
|
|
916
962
|
reservationInfo?: StoreItemReservationInfo;
|
|
917
963
|
/** @description 예약 상품 통계 */
|
|
@@ -1,13 +1,36 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StoreItemContentsTypeEnum = exports.FixedContentsPositionEnum = exports.StoreItemOptionTypeEnum = exports.PrecautionCodeEnum = exports.StoreItemImgVersionEnum = exports.ReservationStockModeEnum = exports.StoreItemTypeEnum = void 0;
|
|
3
|
+
exports.StoreItemContentsTypeEnum = exports.FixedContentsPositionEnum = exports.StoreItemOptionTypeEnum = exports.PrecautionCodeEnum = exports.StoreItemImgVersionEnum = exports.ReservationStockModeEnum = exports.StoreItemUsedCurrencyCodeEnum = exports.StoreItemUsedConditionGradeEnum = exports.StoreItemUsedRarityEnum = exports.StoreItemTypeEnum = void 0;
|
|
4
4
|
var StoreItemTypeEnum;
|
|
5
5
|
(function (StoreItemTypeEnum) {
|
|
6
6
|
/** 일반 상품 */
|
|
7
7
|
StoreItemTypeEnum["normal"] = "normal";
|
|
8
8
|
/** 예약 상품 */
|
|
9
9
|
StoreItemTypeEnum["reservation"] = "reservation";
|
|
10
|
+
/** 중고 상품 */
|
|
11
|
+
StoreItemTypeEnum["used"] = "used";
|
|
10
12
|
})(StoreItemTypeEnum || (exports.StoreItemTypeEnum = StoreItemTypeEnum = {}));
|
|
13
|
+
var StoreItemUsedRarityEnum;
|
|
14
|
+
(function (StoreItemUsedRarityEnum) {
|
|
15
|
+
StoreItemUsedRarityEnum["VERY_RARE"] = "VERY_RARE";
|
|
16
|
+
StoreItemUsedRarityEnum["RARE"] = "RARE";
|
|
17
|
+
StoreItemUsedRarityEnum["UNCOMMON"] = "UNCOMMON";
|
|
18
|
+
StoreItemUsedRarityEnum["COMMON"] = "COMMON";
|
|
19
|
+
})(StoreItemUsedRarityEnum || (exports.StoreItemUsedRarityEnum = StoreItemUsedRarityEnum = {}));
|
|
20
|
+
var StoreItemUsedConditionGradeEnum;
|
|
21
|
+
(function (StoreItemUsedConditionGradeEnum) {
|
|
22
|
+
StoreItemUsedConditionGradeEnum["S"] = "S";
|
|
23
|
+
StoreItemUsedConditionGradeEnum["A"] = "A";
|
|
24
|
+
StoreItemUsedConditionGradeEnum["B"] = "B";
|
|
25
|
+
StoreItemUsedConditionGradeEnum["C"] = "C";
|
|
26
|
+
StoreItemUsedConditionGradeEnum["D"] = "D";
|
|
27
|
+
})(StoreItemUsedConditionGradeEnum || (exports.StoreItemUsedConditionGradeEnum = StoreItemUsedConditionGradeEnum = {}));
|
|
28
|
+
var StoreItemUsedCurrencyCodeEnum;
|
|
29
|
+
(function (StoreItemUsedCurrencyCodeEnum) {
|
|
30
|
+
StoreItemUsedCurrencyCodeEnum["USD"] = "USD";
|
|
31
|
+
StoreItemUsedCurrencyCodeEnum["KRW"] = "KRW";
|
|
32
|
+
StoreItemUsedCurrencyCodeEnum["JPY"] = "JPY";
|
|
33
|
+
})(StoreItemUsedCurrencyCodeEnum || (exports.StoreItemUsedCurrencyCodeEnum = StoreItemUsedCurrencyCodeEnum = {}));
|
|
11
34
|
/**
|
|
12
35
|
* @author jun
|
|
13
36
|
* @description 예약 상품 재고 모드
|