@yolo-croket-dev/entity-v2 0.1.50 → 0.1.51-jun.1

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.1.50",
3
+ "version": "0.1.51-jun.1",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 nest 용 entity-v3",
@@ -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,68 @@
1
+ export interface StoryImg {
2
+ imgUrl: string;
3
+ appLink: string;
4
+ link: string;
5
+ }
6
+ export interface MainStoryImg {
7
+ imgUrl: string;
8
+ imgName: string;
9
+ width: string;
10
+ height: string;
11
+ }
12
+ export interface StoryContentImg {
13
+ imgUrl: string;
14
+ imgName: string;
15
+ width: string;
16
+ height: string;
17
+ }
18
+ export interface StoryContentStoreItemCondition {
19
+ itemName: string[];
20
+ category: [
21
+ {
22
+ main: string;
23
+ sub: string;
24
+ }
25
+ ];
26
+ bookNums: {
27
+ type: number;
28
+ default: 0;
29
+ };
30
+ }
31
+ export interface StoryContentInfo {
32
+ raw: string;
33
+ app: any[];
34
+ }
35
+ export interface StoryContentButtonInfo {
36
+ isExist: boolean;
37
+ text?: string;
38
+ appLink?: string;
39
+ webLink?: string;
40
+ }
41
+ export interface StoryContent {
42
+ imgList: StoryContentImg[];
43
+ storeItemCondition: StoryContentStoreItemCondition;
44
+ content: StoryContentInfo;
45
+ buttonInfo: StoryContentButtonInfo;
46
+ }
47
+ /**
48
+ * @author ?
49
+ * @description 스토리 엔티티 (레거시에서 옮김)
50
+ */
51
+ export default interface StoryEntity {
52
+ version: string;
53
+ isView: boolean;
54
+ title: string;
55
+ itemName?: string;
56
+ regDate: Date;
57
+ lastModifiedDate: Date;
58
+ log: [];
59
+ sort: number;
60
+ viewNums: number;
61
+ previewImg: string;
62
+ storyImgList: StoryImg[];
63
+ subTitle: string;
64
+ mainImg: MainStoryImg;
65
+ contentList: StoryContent[];
66
+ storyType: string;
67
+ }
68
+ export { StoryEntity };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });