@yolo-croket-dev/entity-v2 0.2.3 → 0.2.4

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.3",
3
+ "version": "0.2.4",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 nest 용 entity-v3",
@@ -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 StoreBrandFixedContentEntity {
8
+ /** 고유 아이디 */
9
+ _id: string | Types.ObjectId;
10
+ /** 브랜드 이름 */
11
+ brandName: string;
12
+ /** 셀러 아이디 */
13
+ sellerId: string | Types.ObjectId;
14
+ /** 고정 이미지 위치 */
15
+ position: FixedContentsPositionEnum;
16
+ /** 이미지 정보 */
17
+ imgUrl: string;
18
+ /** 이미지 가로 사이즈 */
19
+ width: number;
20
+ /** 이미지 세로 사이즈 */
21
+ height: number;
22
+ /** 등록 일시 */
23
+ regDate: Date;
24
+ }
25
+ export { StoreBrandFixedContentEntity };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });