@yolo-croket-dev/entity-v2 0.2.69 → 0.2.70-item-group-0
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/index.d.ts +1 -0
- package/index.js +1 -0
- package/package.json +1 -1
- package/store-item-group.modules/index.d.ts +2 -0
- package/store-item-group.modules/index.js +18 -0
- package/store-item-group.modules/store-item-group/index.d.ts +1 -0
- package/store-item-group.modules/store-item-group/index.js +17 -0
- package/store-item-group.modules/store-item-group/store-item-group.entity.d.ts +32 -0
- package/store-item-group.modules/store-item-group/store-item-group.entity.js +2 -0
- package/store-item-group.modules/store-item-group-log/index.d.ts +1 -0
- package/store-item-group.modules/store-item-group-log/index.js +17 -0
- package/store-item-group.modules/store-item-group-log/store-item-group-log.entity.d.ts +42 -0
- package/store-item-group.modules/store-item-group-log/store-item-group-log.entity.js +15 -0
- package/store-item.modules/index.d.ts +1 -0
- package/store-item.modules/index.js +1 -0
- package/store-item.modules/store-item-group-view-item/index.d.ts +1 -0
- package/store-item.modules/store-item-group-view-item/index.js +17 -0
- package/store-item.modules/store-item-group-view-item/store-item-group-view-item.entity.d.ts +29 -0
- package/store-item.modules/store-item-group-view-item/store-item-group-view-item.entity.js +2 -0
- package/user/index.d.ts +1 -0
- package/user/index.js +1 -0
- package/user/user-shipping-addresses.entity.d.ts +23 -0
- package/user/user-shipping-addresses.entity.js +2 -0
- package/user/user.entity.d.ts +3 -0
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -66,3 +66,4 @@ __exportStar(require("./brand.modules/brand-cohort"), exports);
|
|
|
66
66
|
__exportStar(require("./brand.modules/brand-bookmark"), exports);
|
|
67
67
|
__exportStar(require("./brand.modules/brand-log"), exports);
|
|
68
68
|
__exportStar(require("./daily-random-coupon-noti-user"), exports);
|
|
69
|
+
__exportStar(require("./store-item.modules"), exports);
|
package/package.json
CHANGED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./store-item-group"), exports);
|
|
18
|
+
__exportStar(require("./store-item-group-log"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './store-item-group.entity';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./store-item-group.entity"), exports);
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Types } from 'mongoose';
|
|
2
|
+
export interface StoreItemGroupEntity {
|
|
3
|
+
/** @description 상품 그룹 고유 아이디 */
|
|
4
|
+
_id: Types.ObjectId | string;
|
|
5
|
+
/**
|
|
6
|
+
* @description 상품 그룹 이름
|
|
7
|
+
* - unique
|
|
8
|
+
*/
|
|
9
|
+
itemGroupName: string;
|
|
10
|
+
/** @description 상품 그룹 상품 개수 */
|
|
11
|
+
itemCount: number;
|
|
12
|
+
/** @description 상품 아이디 리스트 */
|
|
13
|
+
itemIds: Types.ObjectId[];
|
|
14
|
+
/** @description 상품 그룹 브랜드 */
|
|
15
|
+
itemGroupBrand: string;
|
|
16
|
+
/** @description 상품 메인 카테고리 */
|
|
17
|
+
mainCategory: string;
|
|
18
|
+
/** @description 상품 그룹 메인 품번 */
|
|
19
|
+
mainSku?: string;
|
|
20
|
+
/** @description 상품 그룹 관련 품번 리스트 */
|
|
21
|
+
relatedSkus: string[];
|
|
22
|
+
/** @description 상품 그룹 매칭 키워드 */
|
|
23
|
+
matchKeywords: string[];
|
|
24
|
+
/** @description 마지막 수정일 */
|
|
25
|
+
lastModifiedDate: Date;
|
|
26
|
+
/** @description 생성일 */
|
|
27
|
+
regDate: Date;
|
|
28
|
+
/** @description 상품 리뷰 통합 아이디 리스트 */
|
|
29
|
+
itemIntegrationReviewId?: Types.ObjectId;
|
|
30
|
+
/** @description 메모 */
|
|
31
|
+
memo?: string;
|
|
32
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './store-item-group-log.entity';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./store-item-group-log.entity"), exports);
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Types } from 'mongoose';
|
|
2
|
+
export declare enum StoreItemGroupLogTypeEnum {
|
|
3
|
+
reg = "reg",
|
|
4
|
+
edit_group_name = "edit_group_name",
|
|
5
|
+
edit_brand = "edit_brand",
|
|
6
|
+
edit_skus = "edit_skus",
|
|
7
|
+
edit_item_ids = "edit_item_ids",
|
|
8
|
+
edit_match_keywords = "edit_match_keywords",
|
|
9
|
+
edit_main_category = "edit_main_category",
|
|
10
|
+
edit_memo = "edit_memo",
|
|
11
|
+
delete = "delete"
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @author sj
|
|
15
|
+
* @description 상품 그룹 로그 */
|
|
16
|
+
export default interface StoreItemGroupLogEntity {
|
|
17
|
+
_id: Types.ObjectId | string;
|
|
18
|
+
/** 로그 타입 */
|
|
19
|
+
logType: StoreItemGroupLogTypeEnum;
|
|
20
|
+
/** 상품 그룹 아이디 */
|
|
21
|
+
storeItemGroupId: string | Types.ObjectId;
|
|
22
|
+
/** 변경 전 상품 그룹 브랜드 */
|
|
23
|
+
pastItemGroupBrand?: string;
|
|
24
|
+
/** 변경 전 상품 그룹 메인 카테고리 */
|
|
25
|
+
pastMainCategory?: string;
|
|
26
|
+
/** 변경 전 상품 그룹 이름 */
|
|
27
|
+
pastItemGroupName?: string;
|
|
28
|
+
/** 변경 전 상품 그룹 아이디 리스트 */
|
|
29
|
+
pastItemGroupItemIds?: Types.ObjectId[];
|
|
30
|
+
/** 변경 전 상품 그룹 품번 리스트 */
|
|
31
|
+
pastMainSku?: string;
|
|
32
|
+
/** 변경 전 상품 그룹 관련 품번 리스트 */
|
|
33
|
+
pastRelatedSkus?: string[];
|
|
34
|
+
/** 변경 전 상품 그룹 매칭 키워드 리스트 */
|
|
35
|
+
pastItemGroupMatchKeywords?: string[];
|
|
36
|
+
/** 변경 전 상품 그룹 메모 */
|
|
37
|
+
pastItemGroupMemo?: string;
|
|
38
|
+
/** 등록 일자 */
|
|
39
|
+
regDate: Date;
|
|
40
|
+
manageUserId: Types.ObjectId;
|
|
41
|
+
}
|
|
42
|
+
export { StoreItemGroupLogEntity };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StoreItemGroupLogTypeEnum = void 0;
|
|
4
|
+
var StoreItemGroupLogTypeEnum;
|
|
5
|
+
(function (StoreItemGroupLogTypeEnum) {
|
|
6
|
+
StoreItemGroupLogTypeEnum["reg"] = "reg";
|
|
7
|
+
StoreItemGroupLogTypeEnum["edit_group_name"] = "edit_group_name";
|
|
8
|
+
StoreItemGroupLogTypeEnum["edit_brand"] = "edit_brand";
|
|
9
|
+
StoreItemGroupLogTypeEnum["edit_skus"] = "edit_skus";
|
|
10
|
+
StoreItemGroupLogTypeEnum["edit_item_ids"] = "edit_item_ids";
|
|
11
|
+
StoreItemGroupLogTypeEnum["edit_match_keywords"] = "edit_match_keywords";
|
|
12
|
+
StoreItemGroupLogTypeEnum["edit_main_category"] = "edit_main_category";
|
|
13
|
+
StoreItemGroupLogTypeEnum["edit_memo"] = "edit_memo";
|
|
14
|
+
StoreItemGroupLogTypeEnum["delete"] = "delete";
|
|
15
|
+
})(StoreItemGroupLogTypeEnum || (exports.StoreItemGroupLogTypeEnum = StoreItemGroupLogTypeEnum = {}));
|
|
@@ -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("./store-item-popular-search-keyword"), exports);
|
|
18
|
+
__exportStar(require("./store-item-group-view-item"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './store-item-group-view-item.entity';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./store-item-group-view-item.entity"), exports);
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { MaxDiscountCouponPriceInfo } from '@yolo-croket-dev/entity-v2/store-item-connected-coupon';
|
|
2
|
+
/**
|
|
3
|
+
* @author sj
|
|
4
|
+
* @description 상품 그룹 뷰 아이템 데이터
|
|
5
|
+
*/
|
|
6
|
+
export interface StoreItemGroupViewItemEntity {
|
|
7
|
+
/** @description 상품 아이디 */
|
|
8
|
+
_id: string;
|
|
9
|
+
/** @description 상품 이름 */
|
|
10
|
+
itemName: string;
|
|
11
|
+
/** @description 상품 이미지 */
|
|
12
|
+
itemImg: string;
|
|
13
|
+
/** @description 상품 가격 */
|
|
14
|
+
itemPrice: number;
|
|
15
|
+
/** @description 구매자용 상품 가격 */
|
|
16
|
+
itemPriceForBuyer: number;
|
|
17
|
+
/** @description 선불 여부 */
|
|
18
|
+
isPrepay: boolean;
|
|
19
|
+
/** @description 해외 배송 여부 */
|
|
20
|
+
isAbroadShipping: boolean;
|
|
21
|
+
/** @description 배송비 */
|
|
22
|
+
shippingFee: number;
|
|
23
|
+
/** @description 최대 할인 쿠폰 가격 정보 */
|
|
24
|
+
maxDiscountCouponPriceInfo?: MaxDiscountCouponPriceInfo;
|
|
25
|
+
/** @description 정가 */
|
|
26
|
+
regularPrice?: number;
|
|
27
|
+
/** @description 페이지 토큰 */
|
|
28
|
+
paginationToken?: string;
|
|
29
|
+
}
|
package/user/index.d.ts
CHANGED
package/user/index.js
CHANGED
|
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./user.entity"), exports);
|
|
18
18
|
__exportStar(require("./user-for-admin.entity"), exports);
|
|
19
|
+
__exportStar(require("./user-shipping-addresses.entity"), exports);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Types } from 'mongoose';
|
|
2
|
+
/** 유저 배송지 정보 목록 엔티티 */
|
|
3
|
+
export interface UserShippingAddressesEntity {
|
|
4
|
+
_id: Types.ObjectId;
|
|
5
|
+
/** 수령인 이름 */
|
|
6
|
+
buyerName: string;
|
|
7
|
+
/** 우편번호 */
|
|
8
|
+
buyerPostCode: string;
|
|
9
|
+
/** 영문명 성 */
|
|
10
|
+
buyerEngLastName?: string;
|
|
11
|
+
/** 영문명 이름 */
|
|
12
|
+
buyerEngFirstName?: string;
|
|
13
|
+
/** 휴대폰번호 */
|
|
14
|
+
buyerPhoneNumber: string;
|
|
15
|
+
/** 기본 주소 */
|
|
16
|
+
buyerAddress1: string;
|
|
17
|
+
/** 상세 주소 */
|
|
18
|
+
buyerAddress2: string;
|
|
19
|
+
/** 개인통관고유부호 */
|
|
20
|
+
PCCC?: string;
|
|
21
|
+
/** 별칭 (기본값: 공백) */
|
|
22
|
+
alias?: string;
|
|
23
|
+
}
|
package/user/user.entity.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Types } from 'mongoose';
|
|
2
|
+
import { UserShippingAddressesEntity } from './user-shipping-addresses.entity';
|
|
2
3
|
export declare enum DEVICE_TYPE {
|
|
3
4
|
AND = "AND",
|
|
4
5
|
IOS = "IOS"
|
|
@@ -234,5 +235,7 @@ export default interface UserEntity {
|
|
|
234
235
|
isGuest?: boolean;
|
|
235
236
|
/** @description 휴대폰 인증 필요한 유저 (SNS 간편 가입 유저일 경우 1회 휴대폰 인증 필요 - 이후 인증한 휴대폰 번호로 phoneNumber 업데이트) */
|
|
236
237
|
needsPhoneVerification?: boolean;
|
|
238
|
+
/** @description 유저 배송지 정보 목록 */
|
|
239
|
+
shippingAddresses?: UserShippingAddressesEntity[];
|
|
237
240
|
}
|
|
238
241
|
export { UserEntity };
|