@yolo-croket-dev/entity-v2 0.2.34-jun.12 → 0.2.34-jun.3

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.
@@ -22,11 +22,5 @@ export default interface DemandEntity {
22
22
  regDate: Date;
23
23
  /** 수정 일자 */
24
24
  lastModifiedDate: Date;
25
- /** 좋아요 수 */
26
- likeCount: number;
27
- /** 예상 최소 가격 */
28
- expectMinPrice?: number;
29
- /** 예상 최대 가격 */
30
- expectMaxPrice?: number;
31
25
  }
32
26
  export { DemandEntity };
@@ -1,13 +1,11 @@
1
1
  import { Types } from 'mongoose';
2
2
  import { DemandEntity } from '../demand';
3
3
  export declare enum DemandLogTypeEnum {
4
- CREATE_BY_USER = "CREATE_BY_USER",
5
- EDIT_BY_USER = "EDIT_BY_USER",
6
- EDIT_BY_ADMIN = "EDIT_BY_ADMIN",
7
- DELETE_SOFT_BY_USER = "DELETE_SOFT_BY_USER",
8
- DELETE_HARD_BY_ADMIN = "DELETE_HARD_BY_ADMIN",
9
- LIKE_BY_USER = "LIKE_BY_USER",
10
- UNLIKE_BY_USER = "UNLIKE_BY_USER"
4
+ CREATE_USER = "CREATE_USER",
5
+ EDIT_USER = "EDIT_USER",
6
+ EDIT_ADMIN = "EDIT_ADMIN",
7
+ DELETE_SOFT_USER = "DELETE_SOFT_USER",
8
+ DELETE_HARD_ADMIN = "DELETE_HARD_ADMIN"
11
9
  }
12
10
  /**
13
11
  * @author jun
@@ -22,28 +20,13 @@ export default interface DemandLogEntity {
22
20
  regDate: Date;
23
21
  /**
24
22
  * 관리자 아이디
25
- * 데이터 존재:
26
- * EDIT_BY_ADMIN
27
- * DELETE_HARD_BY_ADMIN
23
+ * 데이터 존재: EDIT_ADMIN, DELETE_HARD_ADMIN
28
24
  * */
29
25
  manageUserId?: string | Types.ObjectId;
30
26
  /**
31
27
  * 수정 전 구해줘 게시글 정보
32
- * 데이터 존재:
33
- * EDIT_BY_USER
34
- * EDIT_BY_ADMIN
35
- * DELETE_HARD_BY_ADMIN
28
+ * 데이터 존재: EDIT_USER, EDIT_ADMIN, DELETE_HARD_ADMIN
36
29
  * */
37
- beforeDemandInfo?: DemandEntity;
38
- /**
39
- * 유저 아이디
40
- * 데이터 존재:
41
- * LIKE_BY_USER
42
- * UNLIKE_BY_USER
43
- * CREATE_BY_USER
44
- * EDIT_BY_USER
45
- * DELETE_SOFT_BY_USER
46
- * */
47
- userId?: string | Types.ObjectId;
30
+ beforeDemandInfo: DemandEntity;
48
31
  }
49
32
  export { DemandLogEntity };
@@ -3,11 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DemandLogTypeEnum = void 0;
4
4
  var DemandLogTypeEnum;
5
5
  (function (DemandLogTypeEnum) {
6
- DemandLogTypeEnum["CREATE_BY_USER"] = "CREATE_BY_USER";
7
- DemandLogTypeEnum["EDIT_BY_USER"] = "EDIT_BY_USER";
8
- DemandLogTypeEnum["EDIT_BY_ADMIN"] = "EDIT_BY_ADMIN";
9
- DemandLogTypeEnum["DELETE_SOFT_BY_USER"] = "DELETE_SOFT_BY_USER";
10
- DemandLogTypeEnum["DELETE_HARD_BY_ADMIN"] = "DELETE_HARD_BY_ADMIN";
11
- DemandLogTypeEnum["LIKE_BY_USER"] = "LIKE_BY_USER";
12
- DemandLogTypeEnum["UNLIKE_BY_USER"] = "UNLIKE_BY_USER";
6
+ DemandLogTypeEnum["CREATE_USER"] = "CREATE_USER";
7
+ DemandLogTypeEnum["EDIT_USER"] = "EDIT_USER";
8
+ DemandLogTypeEnum["EDIT_ADMIN"] = "EDIT_ADMIN";
9
+ DemandLogTypeEnum["DELETE_SOFT_USER"] = "DELETE_SOFT_USER";
10
+ DemandLogTypeEnum["DELETE_HARD_ADMIN"] = "DELETE_HARD_ADMIN";
13
11
  })(DemandLogTypeEnum = exports.DemandLogTypeEnum || (exports.DemandLogTypeEnum = {}));
@@ -19,9 +19,7 @@ export declare enum ImageUsageTypeEnum {
19
19
  'local_default' = "local_default",
20
20
  'before_image_item' = "before_image_item",
21
21
  /** 앱 팝업 이미지 */
22
- 'app_popup' = "app_popup",
23
- /** 구해줘 게시글 이미지 썸네일 */
24
- 'demand_thumbnail' = "demand_thumbnail"
22
+ 'app_popup' = "app_popup"
25
23
  }
26
24
  export declare enum envTypeEnum {
27
25
  develop = "develop",
@@ -27,8 +27,6 @@ var ImageUsageTypeEnum;
27
27
  ImageUsageTypeEnum["before_image_item"] = "before_image_item";
28
28
  /** 앱 팝업 이미지 */
29
29
  ImageUsageTypeEnum["app_popup"] = "app_popup";
30
- /** 구해줘 게시글 이미지 썸네일 */
31
- ImageUsageTypeEnum["demand_thumbnail"] = "demand_thumbnail";
32
30
  })(ImageUsageTypeEnum = exports.ImageUsageTypeEnum || (exports.ImageUsageTypeEnum = {}));
33
31
  var envTypeEnum;
34
32
  (function (envTypeEnum) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/entity-v2",
3
- "version": "0.2.34-jun.12",
3
+ "version": "0.2.34-jun.3",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 nest 용 entity-v3",
@@ -1,14 +0,0 @@
1
- import { Types } from 'mongoose';
2
- /**
3
- * @author jun
4
- * @description 구해줘 게시글 좋아요 */
5
- export default interface DemandLikeEntity {
6
- _id: Types.ObjectId | string;
7
- /** 구해줘 게시글 아이디 */
8
- demandId: string | Types.ObjectId;
9
- /** 좋아요 누른 유저 아이디 */
10
- userId: string | Types.ObjectId;
11
- /** 좋아요 등록 일자 */
12
- regDate: Date;
13
- }
14
- export { DemandLikeEntity };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +0,0 @@
1
- export * from './demand-like.entity';
@@ -1,17 +0,0 @@
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("./demand-like.entity"), exports);