@yolo-croket-dev/entity-v2 0.2.9-sj5 → 0.2.9-sj7

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.9-sj5",
3
+ "version": "0.2.9-sj7",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 nest 용 entity-v3",
@@ -0,0 +1 @@
1
+ export * from './store-item-banner.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-banner.entity"), exports);
@@ -0,0 +1,26 @@
1
+ import { Types } from 'mongoose';
2
+ interface BannerPlatformInfo {
3
+ /** @description 이미지 URL */
4
+ imgUrl: string;
5
+ /** @description 랜딩 URL */
6
+ landingUrl: string;
7
+ /** @description 이미지 width */
8
+ width: number;
9
+ /** @description 이미지 height */
10
+ height: number;
11
+ }
12
+ declare enum StoreItemBannerType {
13
+ /** @description 상품 배너 */
14
+ STORE_ITEM_BANNER = "STORE_ITEM_BANNER",
15
+ /** @description 스토어 배너 */
16
+ STORE_BANNER = "STORE_BANNER",
17
+ /** @description 브랜드 배너 */
18
+ BRAND_BANNER = "BRAND_BANNER"
19
+ }
20
+ export default interface StoreItemBannerEntity {
21
+ _id: string | Types.ObjectId;
22
+ web: BannerPlatformInfo;
23
+ app: BannerPlatformInfo;
24
+ type: StoreItemBannerType;
25
+ }
26
+ export { StoreItemBannerEntity };
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var StoreItemBannerType;
4
+ (function (StoreItemBannerType) {
5
+ /** @description 상품 배너 */
6
+ StoreItemBannerType["STORE_ITEM_BANNER"] = "STORE_ITEM_BANNER";
7
+ /** @description 스토어 배너 */
8
+ StoreItemBannerType["STORE_BANNER"] = "STORE_BANNER";
9
+ /** @description 브랜드 배너 */
10
+ StoreItemBannerType["BRAND_BANNER"] = "BRAND_BANNER";
11
+ })(StoreItemBannerType || (StoreItemBannerType = {}));
@@ -1,5 +1,5 @@
1
1
  import { Types } from 'mongoose';
2
- interface BannerPlatformInfo {
2
+ export interface StoreItemDetailBannerByStoreItemPlatformInfo {
3
3
  /** @description 이미지 URL */
4
4
  imgUrl: string;
5
5
  /** @description 랜딩 URL */
@@ -15,9 +15,9 @@ export default interface StoreItemDetailBannerByStoreItemEntity {
15
15
  /** @description 상품 아이디 */
16
16
  storeItemId: Types.ObjectId | string;
17
17
  /** @description 웹용 배너 정보 */
18
- web: BannerPlatformInfo;
18
+ web: StoreItemDetailBannerByStoreItemPlatformInfo;
19
19
  /** @description 앱용 배너 정보 */
20
- app: BannerPlatformInfo;
20
+ app: StoreItemDetailBannerByStoreItemPlatformInfo;
21
21
  /** @description 저장날짜 */
22
22
  regDate: Date;
23
23
  /** @description 배너 설명 */