@yolo-croket-dev/entity-v2 0.2.0-hj-1 → 0.2.1-jun.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/ad-center-storeitem-keyword/ad-center-storeitem-keyword-active.entity.d.ts +33 -0
- package/ad-center-storeitem-keyword/ad-center-storeitem-keyword-active.entity.js +2 -0
- package/ad-center-storeitem-keyword/ad-center-storeitem-keyword-daily-aggregation.entity.d.ts +17 -0
- package/ad-center-storeitem-keyword/ad-center-storeitem-keyword-daily-aggregation.entity.js +2 -0
- package/ad-center-storeitem-keyword/ad-center-storeitem-keyword-log.entity.d.ts +21 -0
- package/ad-center-storeitem-keyword/ad-center-storeitem-keyword-log.entity.js +2 -0
- package/ad-center-storeitem-keyword/ad-center-storeitem-keyword.entity.d.ts +9 -0
- package/ad-center-storeitem-keyword/ad-center-storeitem-keyword.entity.js +2 -0
- package/ad-center-storeitem-keyword/index.d.ts +4 -0
- package/ad-center-storeitem-keyword/index.js +20 -0
- package/brand/brand-for-buyer.entity.d.ts +8 -0
- package/brand/brand-for-buyer.entity.js +2 -0
- package/brand/index.d.ts +1 -0
- package/brand/index.js +1 -0
- package/exchange-rate/exchange-rate.entity.d.ts +4 -4
- package/exchange-rate/index.d.ts +1 -0
- package/exchange-rate/index.js +16 -0
- package/index.d.ts +2 -0
- package/index.js +2 -0
- package/package.json +2 -2
- package/store/store.entity.d.ts +17 -0
- package/store.moduels/index.d.ts +1 -0
- package/store.moduels/index.js +17 -0
- package/store.moduels/store-brand-fixed-content/index.d.ts +1 -0
- package/store.moduels/store-brand-fixed-content/index.js +17 -0
- package/store.moduels/store-brand-fixed-content/store-brand-fixed-content.entity.d.ts +25 -0
- package/store.moduels/store-brand-fixed-content/store-brand-fixed-content.entity.js +2 -0
- package/story/index.d.ts +1 -0
- package/story/index.js +17 -0
- package/story/story.entity.d.ts +67 -0
- package/story/story.entity.js +2 -0
- package/summer-black-friday.modules/index.d.ts +1 -0
- package/summer-black-friday.modules/index.js +17 -0
- package/summer-black-friday.modules/weekly-mega-deal-data/index.d.ts +1 -0
- package/summer-black-friday.modules/weekly-mega-deal-data/index.js +17 -0
- package/summer-black-friday.modules/weekly-mega-deal-data/weekly-mega-deal-data.entity.d.ts +36 -0
- package/summer-black-friday.modules/weekly-mega-deal-data/weekly-mega-deal-data.entity.js +9 -0
- package/time-deal/time-deal-for-buyer.entity.d.ts +1 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Types } from 'mongoose';
|
|
2
|
+
export interface AdCenterStoreItemKeywordActive {
|
|
3
|
+
/** 광고 센터 상품 키워드 활성 아이디 */
|
|
4
|
+
_id: Types.ObjectId | string;
|
|
5
|
+
/** 광고 센터 상품 키워드 아이디 */
|
|
6
|
+
adCenterStoreItemKeywordId: Types.ObjectId | string;
|
|
7
|
+
/** 노출수 */
|
|
8
|
+
adViewCount: number;
|
|
9
|
+
/** 클릭수 */
|
|
10
|
+
adClickCount: number;
|
|
11
|
+
/** 신청일 */
|
|
12
|
+
requestedDate: Date;
|
|
13
|
+
/** 시작일 */
|
|
14
|
+
startDate: Date;
|
|
15
|
+
/** 종료일 */
|
|
16
|
+
endDate: Date;
|
|
17
|
+
/** 광고 집행 비용 */
|
|
18
|
+
cpcPrice: number;
|
|
19
|
+
/** 활성화 여부 (default: true) */
|
|
20
|
+
isActive: boolean;
|
|
21
|
+
/** 마지막으로 비활성화 된 시간 */
|
|
22
|
+
lastDeactivatedDate?: Date;
|
|
23
|
+
/** 상품 아이디 */
|
|
24
|
+
storeItemId: Types.ObjectId | string;
|
|
25
|
+
/** 검색 키워드 */
|
|
26
|
+
keyword: string;
|
|
27
|
+
/** 어필 키워드 */
|
|
28
|
+
appealKeyword?: string;
|
|
29
|
+
/** 셀러 아이디 */
|
|
30
|
+
sellerId: Types.ObjectId | string;
|
|
31
|
+
/** 저장일 */
|
|
32
|
+
regDate: Date;
|
|
33
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Types } from 'mongoose';
|
|
2
|
+
export interface AdCenterStoreItemKeywordDailyAggregation {
|
|
3
|
+
/** 광고 센터 상품 키워드 일간 집계 아이디 */
|
|
4
|
+
_id: Types.ObjectId | string;
|
|
5
|
+
/** 광고 센터 상품 키워드 활동 아이디 */
|
|
6
|
+
adCenterStoreItemKeywordActiveId: Types.ObjectId | string;
|
|
7
|
+
/** 노출수 */
|
|
8
|
+
adViewCount: number;
|
|
9
|
+
/** 클릭수 */
|
|
10
|
+
adClickCount: number;
|
|
11
|
+
/** 셀러 아이디 */
|
|
12
|
+
sellerId: Types.ObjectId | string;
|
|
13
|
+
/** 상품 아이디 */
|
|
14
|
+
storeItemId: Types.ObjectId | string;
|
|
15
|
+
/** 집계일 */
|
|
16
|
+
aggregatedDate: Date;
|
|
17
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Types } from 'mongoose';
|
|
2
|
+
export interface AdCenterStoreItemKeywordLog {
|
|
3
|
+
/** 광고 센터 상품 키워드 로그 아이디 */
|
|
4
|
+
_id: Types.ObjectId | string;
|
|
5
|
+
/** 광고 센터 상품 키워드 아이디 */
|
|
6
|
+
adCenterStoreItemKeywordId: Types.ObjectId | string;
|
|
7
|
+
/** 로그 타입 */
|
|
8
|
+
logType: 'KEYWORD_ACTIVE_CREATE' | 'KEYWORD_ACTIVE_STOP' | 'KEYWORD_CREATE';
|
|
9
|
+
/** 저장일 */
|
|
10
|
+
regDate: Date;
|
|
11
|
+
/** 관리자 정보 */
|
|
12
|
+
managerInfo?: ManagerInfo;
|
|
13
|
+
adCenterStoreItemKeywordActiveId?: Types.ObjectId | string;
|
|
14
|
+
}
|
|
15
|
+
/** 관리자 정보 */
|
|
16
|
+
export interface ManagerInfo {
|
|
17
|
+
/** 관리자 아이디 */
|
|
18
|
+
managerId: Types.ObjectId | string;
|
|
19
|
+
/** 관리자 이름 */
|
|
20
|
+
managerUsername: string;
|
|
21
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
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("./ad-center-storeitem-keyword.entity"), exports);
|
|
18
|
+
__exportStar(require("./ad-center-storeitem-keyword-log.entity"), exports);
|
|
19
|
+
__exportStar(require("./ad-center-storeitem-keyword-active.entity"), exports);
|
|
20
|
+
__exportStar(require("./ad-center-storeitem-keyword-daily-aggregation.entity"), exports);
|
package/brand/index.d.ts
CHANGED
package/brand/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { Types } from 'mongoose';
|
|
|
3
3
|
export default interface ExchangeRateEntity {
|
|
4
4
|
_id: Types.ObjectId | string;
|
|
5
5
|
/** @description 환율 정보 */
|
|
6
|
-
|
|
6
|
+
exchangeRateInfos: ExchangeRateInfo[];
|
|
7
7
|
/** @description 환율 데이터 갱신 시간 */
|
|
8
8
|
renewedAt: Date;
|
|
9
9
|
/** @description 환율 데이터 api 호출 시간 */
|
|
@@ -16,11 +16,11 @@ export interface ExchangeRateInfo {
|
|
|
16
16
|
/** @description 국가/통화명 */
|
|
17
17
|
cur_nm: string;
|
|
18
18
|
/** @description 전신환(송금) 받으실 때 */
|
|
19
|
-
ttb:
|
|
19
|
+
ttb: number;
|
|
20
20
|
/** @description 전신환(송금) 보내실 때 */
|
|
21
|
-
tts:
|
|
21
|
+
tts: number;
|
|
22
22
|
/** @description 매매 기준율 */
|
|
23
|
-
deal_bas_r:
|
|
23
|
+
deal_bas_r: number;
|
|
24
24
|
/** @description 나라별 환율 정보 갱신 시간 */
|
|
25
25
|
renewedAt: Date;
|
|
26
26
|
}
|
package/exchange-rate/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './exchange-rate.entity';
|
package/exchange-rate/index.js
CHANGED
|
@@ -1 +1,17 @@
|
|
|
1
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("./exchange-rate.entity"), exports);
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -53,3 +53,5 @@ __exportStar(require("./changed-purhcased-option-log"), exports);
|
|
|
53
53
|
__exportStar(require("./brand"), exports);
|
|
54
54
|
__exportStar(require("./brand-cohort"), exports);
|
|
55
55
|
__exportStar(require("./brand-bookmark"), exports);
|
|
56
|
+
__exportStar(require("./exchange-rate"), exports);
|
|
57
|
+
__exportStar(require("./summer-black-friday.modules"), exports);
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yolo-croket-dev/entity-v2",
|
|
3
|
-
"version": "0.2.0
|
|
3
|
+
"version": "0.2.1-jun.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"author": "Yolo Co., Ltd.",
|
|
6
6
|
"description": "크로켓 nest 용 entity-v3",
|
|
7
7
|
"keywords": [
|
|
8
|
-
|
|
8
|
+
"entity",
|
|
9
9
|
"croket"
|
|
10
10
|
],
|
|
11
11
|
"homepage": "https://bitbucket.org/yolo_server/croket_monorepo/src",
|
package/store/store.entity.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Types } from 'mongoose';
|
|
2
|
+
import { FixedContentsPositionEnum } from '@yolo-croket-dev/entity/src/store-item';
|
|
2
3
|
import { AbroadAccount } from './abroad-account.entity';
|
|
3
4
|
export declare enum StoreLastActivityTypeEnum {
|
|
4
5
|
regStoreItem = "regStoreItem",
|
|
@@ -180,6 +181,20 @@ export declare class LastBeforeAccountInfo {
|
|
|
180
181
|
export declare class SupermarketInfo {
|
|
181
182
|
isSuperMarket: boolean;
|
|
182
183
|
}
|
|
184
|
+
/**
|
|
185
|
+
* @author jun
|
|
186
|
+
* @description 스토어 고정 콘텐츠
|
|
187
|
+
*/
|
|
188
|
+
export interface StoreFixedContent {
|
|
189
|
+
/** 고정 이미지 위치 */
|
|
190
|
+
position: FixedContentsPositionEnum;
|
|
191
|
+
/** 이미지 정보 */
|
|
192
|
+
imgUrl: string;
|
|
193
|
+
/** 이미지 가로 사이즈 */
|
|
194
|
+
width: number;
|
|
195
|
+
/** 이미지 세로 사이즈 */
|
|
196
|
+
height: number;
|
|
197
|
+
}
|
|
183
198
|
/** store schema inteface (아직 선언하다 말았음) */
|
|
184
199
|
export default class StoreEntity {
|
|
185
200
|
_id: Types.ObjectId | string;
|
|
@@ -205,5 +220,7 @@ export default class StoreEntity {
|
|
|
205
220
|
introduction: string;
|
|
206
221
|
/** @description 관리자가 지정한 셀러 자동 응답 메시지 */
|
|
207
222
|
adminDesignatedAutoReplyMessage?: string;
|
|
223
|
+
/** @description 스토어 고정 콘텐츠 */
|
|
224
|
+
storeFixedContents?: StoreFixedContent[];
|
|
208
225
|
}
|
|
209
226
|
export { StoreEntity };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './store-brand-fixed-content';
|
|
@@ -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-brand-fixed-content"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './store-brand-fixed-content.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-brand-fixed-content.entity"), exports);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { FixedContentsPositionEnum } from '@yolo-croket-dev/entity/src/store-item';
|
|
2
|
+
import { Types } from 'mongoose';
|
|
3
|
+
/**
|
|
4
|
+
* @author jun
|
|
5
|
+
* @description 스토어 브랜드 고정 콘텐츠
|
|
6
|
+
*/
|
|
7
|
+
export default interface StoreBrandFixedContent {
|
|
8
|
+
/** 고유 아이디 */
|
|
9
|
+
_id: string | Types.ObjectId;
|
|
10
|
+
/** 브랜드 이름 */
|
|
11
|
+
brandName: string;
|
|
12
|
+
/** 스토어 아이디 */
|
|
13
|
+
storeId: string | Types.ObjectId;
|
|
14
|
+
/** 셀러 아이디 */
|
|
15
|
+
sellerId: string | Types.ObjectId;
|
|
16
|
+
/** 고정 이미지 위치 */
|
|
17
|
+
position: FixedContentsPositionEnum;
|
|
18
|
+
/** 이미지 정보 */
|
|
19
|
+
imgUrl: string;
|
|
20
|
+
/** 이미지 가로 사이즈 */
|
|
21
|
+
width: number;
|
|
22
|
+
/** 이미지 세로 사이즈 */
|
|
23
|
+
height: number;
|
|
24
|
+
}
|
|
25
|
+
export { StoreBrandFixedContent };
|
package/story/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './story.entity';
|
package/story/index.js
ADDED
|
@@ -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("./story.entity"), exports);
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { Types } from 'mongoose';
|
|
2
|
+
export interface StoryImg {
|
|
3
|
+
imgUrl: string;
|
|
4
|
+
appLink: string;
|
|
5
|
+
link: string;
|
|
6
|
+
}
|
|
7
|
+
export interface MainStoryImg {
|
|
8
|
+
imgUrl: string;
|
|
9
|
+
imgName: string;
|
|
10
|
+
width: string;
|
|
11
|
+
height: string;
|
|
12
|
+
}
|
|
13
|
+
export interface StoryContentImg {
|
|
14
|
+
imgUrl: string;
|
|
15
|
+
imgName: string;
|
|
16
|
+
width: string;
|
|
17
|
+
height: string;
|
|
18
|
+
}
|
|
19
|
+
export interface StoryContentStoreItemCondition {
|
|
20
|
+
itemName: string[];
|
|
21
|
+
category: [
|
|
22
|
+
{
|
|
23
|
+
main: string;
|
|
24
|
+
sub: string;
|
|
25
|
+
}
|
|
26
|
+
];
|
|
27
|
+
bookNums: number;
|
|
28
|
+
}
|
|
29
|
+
export interface StoryContentInfo {
|
|
30
|
+
raw: string;
|
|
31
|
+
app: any[];
|
|
32
|
+
}
|
|
33
|
+
export interface StoryContentButtonInfo {
|
|
34
|
+
isExist: boolean;
|
|
35
|
+
text?: string;
|
|
36
|
+
appLink?: string;
|
|
37
|
+
webLink?: string;
|
|
38
|
+
}
|
|
39
|
+
export interface StoryContent {
|
|
40
|
+
imgList: StoryContentImg[];
|
|
41
|
+
storeItemCondition: StoryContentStoreItemCondition;
|
|
42
|
+
content: StoryContentInfo;
|
|
43
|
+
buttonInfo: StoryContentButtonInfo;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* @author ?
|
|
47
|
+
* @description 스토리 엔티티 (레거시에서 옮김)
|
|
48
|
+
*/
|
|
49
|
+
export default interface StoryEntity {
|
|
50
|
+
_id: string | Types.ObjectId;
|
|
51
|
+
version: string;
|
|
52
|
+
isView: boolean;
|
|
53
|
+
title: string;
|
|
54
|
+
itemName?: string;
|
|
55
|
+
regDate: Date;
|
|
56
|
+
lastModifiedDate: Date;
|
|
57
|
+
log: [];
|
|
58
|
+
sort: number;
|
|
59
|
+
viewNums: number;
|
|
60
|
+
previewImg: string;
|
|
61
|
+
storyImgList: StoryImg[];
|
|
62
|
+
subTitle: string;
|
|
63
|
+
mainImg: MainStoryImg;
|
|
64
|
+
contentList: StoryContent[];
|
|
65
|
+
storyType: string;
|
|
66
|
+
}
|
|
67
|
+
export { StoryEntity };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './weekly-mega-deal-data';
|
|
@@ -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("./weekly-mega-deal-data"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './weekly-mega-deal-data.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("./weekly-mega-deal-data.entity"), exports);
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Types } from 'mongoose';
|
|
2
|
+
export declare enum ExternalPriceNameEnum {
|
|
3
|
+
KREAM = "kream",
|
|
4
|
+
COUPANG = "coupang",
|
|
5
|
+
NAVER = "naver"
|
|
6
|
+
}
|
|
7
|
+
export interface ExternalPriceInfo {
|
|
8
|
+
name: ExternalPriceNameEnum;
|
|
9
|
+
price: number;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* @description 주간 메가딜 기간 그룹 데이터의 상품 데이터
|
|
13
|
+
* 보여주기 시작 -> 보여주기 종료
|
|
14
|
+
* 보여주기 종료 true 가 되기 위해서는 시작이 되어야 함
|
|
15
|
+
* */
|
|
16
|
+
export interface WeeklyMegaDealPeriodItemData {
|
|
17
|
+
itemId: string | Types.ObjectId;
|
|
18
|
+
/** 현재 보여주는지 여부 */
|
|
19
|
+
isShowNow: boolean;
|
|
20
|
+
}
|
|
21
|
+
/** 주간 메가딜 기간 그룹 데이터 */
|
|
22
|
+
export interface WeeklyMegaDealPeriodItemGroup {
|
|
23
|
+
externalPriceInfos: ExternalPriceInfo[];
|
|
24
|
+
itemInfos: WeeklyMegaDealPeriodItemData[];
|
|
25
|
+
}
|
|
26
|
+
/** 주간 메가딜 페이지 데이터 */
|
|
27
|
+
export default interface WeeklyMegaDealDataEntity {
|
|
28
|
+
_id: string | Types.ObjectId;
|
|
29
|
+
title: string;
|
|
30
|
+
periodSDate: Date;
|
|
31
|
+
periodEDate: Date;
|
|
32
|
+
itemGroups: WeeklyMegaDealPeriodItemGroup[];
|
|
33
|
+
lastModifyDate: Date;
|
|
34
|
+
regDate: Date;
|
|
35
|
+
}
|
|
36
|
+
export { WeeklyMegaDealDataEntity };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ExternalPriceNameEnum = void 0;
|
|
4
|
+
var ExternalPriceNameEnum;
|
|
5
|
+
(function (ExternalPriceNameEnum) {
|
|
6
|
+
ExternalPriceNameEnum["KREAM"] = "kream";
|
|
7
|
+
ExternalPriceNameEnum["COUPANG"] = "coupang";
|
|
8
|
+
ExternalPriceNameEnum["NAVER"] = "naver";
|
|
9
|
+
})(ExternalPriceNameEnum || (exports.ExternalPriceNameEnum = ExternalPriceNameEnum = {}));
|