@yolo-croket-dev/entity-v2 0.2.65 → 0.2.67

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.
@@ -0,0 +1,81 @@
1
+ /**
2
+ * @author jun
3
+ * @description 활동 내역(알림 액티비티) 엔티티
4
+ * @process 사용자의 활동 내역 저장 및 조회
5
+ */
6
+ import { Types } from 'mongoose';
7
+ /**
8
+ * @description 활동 타입 열거형
9
+ * @readonly
10
+ * @enum {string}
11
+ */
12
+ export declare enum ActivityTypeEnum {
13
+ /** 상품 문의 */
14
+ storeItemQna = "storeItemQna",
15
+ /** 결제 */
16
+ dealing = "dealing",
17
+ /** 환불 */
18
+ refund = "refund",
19
+ /** 리뷰 */
20
+ review = "review",
21
+ /** 기타 */
22
+ etc = "etc"
23
+ }
24
+ /**
25
+ * @interface ActivityEntity
26
+ * @description 활동 내역 엔티티
27
+ */
28
+ export interface ActivityEntity {
29
+ /** @description 알림 액티비티 고유 아이디 */
30
+ _id: Types.ObjectId;
31
+ /** @description 주인 아이디 */
32
+ _author: Types.ObjectId;
33
+ /** @description 알림 템플릿 메소드명 */
34
+ method: string;
35
+ /** @description 알림 내용 */
36
+ content: string;
37
+ /** @description 활동 내역 제목 */
38
+ title?: string;
39
+ /** @description 활동내역 분류 */
40
+ type: ActivityTypeEnum;
41
+ /** @description 활동 내역의 중요도 (1 < 2 < 3) */
42
+ level: number;
43
+ /** @description 해당 활동을 읽었는지 여부 */
44
+ read: boolean;
45
+ /** @description 활동 내역의 삭제 여부 */
46
+ isDelete: boolean;
47
+ /** @description 저장된 시간 */
48
+ lastTime: Date;
49
+ /** @description 관련 유저 아이디 */
50
+ otherUserId?: Types.ObjectId;
51
+ /** @description 관련 여행 아이디 */
52
+ relateTravelId?: Types.ObjectId;
53
+ /** @description 관련 요청 아이디 */
54
+ relateRequestId?: Types.ObjectId;
55
+ /** @description 관련 결제 아이디 */
56
+ relatePInfoId?: Types.ObjectId;
57
+ /** @description 관련 환불 아이디 */
58
+ relateRefundId?: Types.ObjectId;
59
+ /** @description 관련 상품 아이디 */
60
+ relateItemId?: Types.ObjectId;
61
+ /** @description 관련 메시지 아이디 */
62
+ relateMsgId?: Types.ObjectId;
63
+ /** @description 관련 채팅 아이디 */
64
+ relateChatRoomId?: Types.ObjectId;
65
+ /** @description 관련 요청 아이디 */
66
+ relateAskId?: Types.ObjectId;
67
+ /** @description 관련 선택된 판매정보 아이디 */
68
+ relateSelectedSellingId?: Types.ObjectId;
69
+ /** @description 관련 QNA 아이디 */
70
+ relateQnaId?: Types.ObjectId;
71
+ /** @description 관련 스토어 아이디 */
72
+ relateStoreId?: Types.ObjectId;
73
+ /** @description 관련 QNA URL */
74
+ qnaUri?: string | null;
75
+ /** @description 미리보기 이미지 */
76
+ previewImg?: string;
77
+ /** @description 앱 이동 URL */
78
+ appUrl?: string | null;
79
+ /** @description 웹 이동 URL */
80
+ webUrl?: string | null;
81
+ }
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ /**
3
+ * @author jun
4
+ * @description 활동 내역(알림 액티비티) 엔티티
5
+ * @process 사용자의 활동 내역 저장 및 조회
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.ActivityTypeEnum = void 0;
9
+ /**
10
+ * @description 활동 타입 열거형
11
+ * @readonly
12
+ * @enum {string}
13
+ */
14
+ var ActivityTypeEnum;
15
+ (function (ActivityTypeEnum) {
16
+ /** 상품 문의 */
17
+ ActivityTypeEnum["storeItemQna"] = "storeItemQna";
18
+ /** 결제 */
19
+ ActivityTypeEnum["dealing"] = "dealing";
20
+ /** 환불 */
21
+ ActivityTypeEnum["refund"] = "refund";
22
+ /** 리뷰 */
23
+ ActivityTypeEnum["review"] = "review";
24
+ /** 기타 */
25
+ ActivityTypeEnum["etc"] = "etc";
26
+ })(ActivityTypeEnum || (exports.ActivityTypeEnum = ActivityTypeEnum = {}));
@@ -0,0 +1 @@
1
+ export * from './activity.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("./activity.entity"), exports);
@@ -5,8 +5,8 @@ export declare enum EventBannerType {
5
5
  CART = "CART",
6
6
  /** @description 결제 완료 페이지 노출 */
7
7
  ORDER_COMPLETE = "ORDER_COMPLETE",
8
- /** @description 명품 라올스 배너 */
9
- LUXURY_APPRAISAL_ITEM_BANNER = "LUXURY_APPRAISAL_ITEM_BANNER"
8
+ /** @description 상품 상세 페이지 노출 */
9
+ STORE_ITEM_INFO = "STORE_ITEM_INFO"
10
10
  }
11
11
  export interface EventBannerEntity {
12
12
  _id: string | Types.ObjectId;
@@ -7,6 +7,6 @@ var EventBannerType;
7
7
  EventBannerType["CART"] = "CART";
8
8
  /** @description 결제 완료 페이지 노출 */
9
9
  EventBannerType["ORDER_COMPLETE"] = "ORDER_COMPLETE";
10
- /** @description 명품 라올스 배너 */
11
- EventBannerType["LUXURY_APPRAISAL_ITEM_BANNER"] = "LUXURY_APPRAISAL_ITEM_BANNER";
10
+ /** @description 상품 상세 페이지 노출 */
11
+ EventBannerType["STORE_ITEM_INFO"] = "STORE_ITEM_INFO";
12
12
  })(EventBannerType || (exports.EventBannerType = EventBannerType = {}));
package/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export * from './activity';
1
2
  export * from './app-bulk-push-log';
2
3
  export * from './app-bulk-push-log-click';
3
4
  export * from './lologin';
package/index.js CHANGED
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./activity"), exports);
17
18
  __exportStar(require("./app-bulk-push-log"), exports);
18
19
  __exportStar(require("./app-bulk-push-log-click"), exports);
19
20
  __exportStar(require("./lologin"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/entity-v2",
3
- "version": "0.2.65",
3
+ "version": "0.2.67",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 nest 용 entity-v3",