@yolo-croket-dev/entity-v2 0.2.14 → 0.2.15

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/entity-v2",
3
- "version": "0.2.14",
3
+ "version": "0.2.15",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 nest 용 entity-v3",
@@ -24,3 +24,19 @@ export interface StoreItemBannerEntity {
24
24
  type: StoreItemBannerType;
25
25
  description: string;
26
26
  }
27
+ export interface BaseBannerEntity {
28
+ /** @description 배너 고유 아이디 */
29
+ _id: Types.ObjectId | string;
30
+ /** @description 웹용 배너 정보 */
31
+ web: BannerPlatformInfo;
32
+ /** @description 앱용 배너 정보 */
33
+ app: BannerPlatformInfo;
34
+ /** @description 저장날짜 */
35
+ regDate: Date;
36
+ /** @description 배너 설명 */
37
+ description: string;
38
+ /** @description 배너 시작일 (예약) */
39
+ displayStartDate?: Date;
40
+ /** @description 배너 종료일 (예약) */
41
+ displayEndDate?: Date;
42
+ }
@@ -10,4 +10,3 @@ var StoreItemBannerType;
10
10
  /** @description 브랜드 배너 */
11
11
  StoreItemBannerType["BRAND_BANNER"] = "BRAND_BANNER";
12
12
  })(StoreItemBannerType || (exports.StoreItemBannerType = StoreItemBannerType = {}));
13
- // export { StoreItemBannerEntity };
@@ -1,21 +1,7 @@
1
1
  import { Types } from 'mongoose';
2
- import { BannerPlatformInfo } from '../store-item-banner/store-item-banner.entity';
3
- export default interface StoreItemDetailBannerByStoreItemEntity {
4
- /** @description 상품 배너 고유 아이디 */
5
- _id: Types.ObjectId | string;
2
+ import { BaseBannerEntity } from '../store-item-banner/store-item-banner.entity';
3
+ export default interface StoreItemDetailBannerByStoreItemEntity extends BaseBannerEntity {
6
4
  /** @description 상품 아이디 */
7
5
  storeItemId: Types.ObjectId | string;
8
- /** @description 웹용 배너 정보 */
9
- web: BannerPlatformInfo;
10
- /** @description 앱용 배너 정보 */
11
- app: BannerPlatformInfo;
12
- /** @description 저장날짜 */
13
- regDate: Date;
14
- /** @description 배너 설명 */
15
- description: string;
16
- /** @description 배너 시작일 (예약) */
17
- displayStartDate?: Date;
18
- /** @description 배너 종료일 (예약) */
19
- displayEndDate?: Date;
20
6
  }
21
7
  export { StoreItemDetailBannerByStoreItemEntity };