@yolo-croket-dev/entity-v2 0.2.103-jun.0 → 0.2.103

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.103-jun.0",
3
+ "version": "0.2.103",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 nest 용 entity-v3",
@@ -22,19 +22,14 @@ export interface StoryContentImg {
22
22
  height: string;
23
23
  }
24
24
  export interface StoryContentStoreItemCondition {
25
- /** v3 부터 상품 아이디만 지원 */
26
- itemIds?: Types.ObjectId[];
27
- /** @deprecated v3 부터 지원하지 않음 */
28
- itemName?: string[];
29
- /** @deprecated v3 부터 지원하지 않음 */
30
- category?: [
25
+ itemName: string[];
26
+ category: [
31
27
  {
32
28
  main: string;
33
29
  sub: string;
34
30
  }
35
31
  ];
36
- /** @deprecated v3 부터 지원하지 않음 */
37
- bookNums?: number;
32
+ bookNums: number;
38
33
  }
39
34
  export interface StoryContentInfo {
40
35
  raw: string;
@@ -47,8 +42,8 @@ export interface StoryContentButtonInfo {
47
42
  webLink?: string;
48
43
  }
49
44
  export interface StoryContent {
50
- imgList?: StoryContentImg[];
51
- storeItemCondition?: StoryContentStoreItemCondition;
45
+ imgList: StoryContentImg[];
46
+ storeItemCondition: StoryContentStoreItemCondition;
52
47
  content: StoryContentInfo;
53
48
  buttonInfo: StoryContentButtonInfo;
54
49
  }
@@ -58,20 +53,20 @@ export interface StoryContent {
58
53
  */
59
54
  export default interface StoryEntity {
60
55
  _id: string | Types.ObjectId;
61
- version: number;
56
+ version: string;
62
57
  isView: boolean;
63
58
  title: string;
64
59
  itemName?: string;
65
60
  regDate: Date;
66
- lastModifiedDate?: Date;
61
+ lastModifiedDate: Date;
67
62
  log: [];
68
63
  sort: number;
69
64
  viewNums: number;
70
- previewImg?: string;
71
- storyImgList?: StoryImg[];
65
+ previewImg: string;
66
+ storyImgList: StoryImg[];
72
67
  subTitle: string;
73
68
  mainImg: MainStoryImg;
74
- contentList?: StoryContent[];
69
+ contentList: StoryContent[];
75
70
  storyType: string;
76
71
  /** @description 삭제 여부 */
77
72
  isDeleted: boolean;