@yolo-croket-dev/entity-v2 0.2.34-jun.2 → 0.2.34-jun.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.
@@ -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
  /** 작성자 아이디 */
@@ -0,0 +1,32 @@
1
+ import { Types } from 'mongoose';
2
+ import { DemandEntity } from '../demand';
3
+ export declare enum DemandLogTypeEnum {
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"
9
+ }
10
+ /**
11
+ * @author jun
12
+ * @description 구해줘 게시글 관련 로그 */
13
+ export default interface DemandLogEntity {
14
+ _id: Types.ObjectId | string;
15
+ /** 구해줘 게시글 아이디 */
16
+ demandId: string | Types.ObjectId;
17
+ /** 로그 타입 */
18
+ logType: DemandLogTypeEnum;
19
+ /** 등록 일자 */
20
+ regDate: Date;
21
+ /**
22
+ * 관리자 아이디
23
+ * 데이터 존재: EDIT_ADMIN, DELETE_HARD_ADMIN
24
+ * */
25
+ manageUserId?: string | Types.ObjectId;
26
+ /**
27
+ * 수정 전 구해줘 게시글 정보
28
+ * 데이터 존재: EDIT_USER, EDIT_ADMIN, DELETE_HARD_ADMIN
29
+ * */
30
+ beforeDemandInfo?: DemandEntity;
31
+ }
32
+ export { DemandLogEntity };
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DemandLogTypeEnum = void 0;
4
+ var DemandLogTypeEnum;
5
+ (function (DemandLogTypeEnum) {
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";
11
+ })(DemandLogTypeEnum = exports.DemandLogTypeEnum || (exports.DemandLogTypeEnum = {}));
@@ -0,0 +1 @@
1
+ export * from './demand-log.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("./demand-log.entity"), exports);
@@ -1 +1,2 @@
1
1
  export * from './demand';
2
+ export * from './demand-log';
@@ -15,3 +15,4 @@ 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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/entity-v2",
3
- "version": "0.2.34-jun.2",
3
+ "version": "0.2.34-jun.4",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 nest 용 entity-v3",