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

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.
@@ -1,7 +1,7 @@
1
1
  import { Types } from 'mongoose';
2
2
  /**
3
3
  * @author jun
4
- * @description 구해줘 게시글 */
4
+ * @description 수요 (구해줘 템즈) */
5
5
  export default interface DemandEntity {
6
6
  _id: Types.ObjectId | string;
7
7
  /** 작성자 아이디 */
@@ -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,2 +1 @@
1
1
  export * from './demand';
2
- export * from './demand-log';
@@ -15,4 +15,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./demand"), exports);
18
- __exportStar(require("./demand-log"), exports);
@@ -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.2",
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);
@@ -1,49 +0,0 @@
1
- import { Types } from 'mongoose';
2
- import { DemandEntity } from '../demand';
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"
11
- }
12
- /**
13
- * @author jun
14
- * @description 구해줘 게시글 관련 로그 */
15
- export default interface DemandLogEntity {
16
- _id: Types.ObjectId | string;
17
- /** 구해줘 게시글 아이디 */
18
- demandId: string | Types.ObjectId;
19
- /** 로그 타입 */
20
- logType: DemandLogTypeEnum;
21
- /** 등록 일자 */
22
- regDate: Date;
23
- /**
24
- * 관리자 아이디
25
- * 데이터 존재:
26
- * EDIT_BY_ADMIN
27
- * DELETE_HARD_BY_ADMIN
28
- * */
29
- manageUserId?: string | Types.ObjectId;
30
- /**
31
- * 수정 전 구해줘 게시글 정보
32
- * 데이터 존재:
33
- * EDIT_BY_USER
34
- * EDIT_BY_ADMIN
35
- * DELETE_HARD_BY_ADMIN
36
- * */
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;
48
- }
49
- export { DemandLogEntity };
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DemandLogTypeEnum = void 0;
4
- var DemandLogTypeEnum;
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";
13
- })(DemandLogTypeEnum = exports.DemandLogTypeEnum || (exports.DemandLogTypeEnum = {}));
@@ -1 +0,0 @@
1
- export * from './demand-log.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-log.entity"), exports);