@yolo-croket-dev/entity-v2 0.2.20 → 0.2.22-hj-1
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/chat.modules/chat-content-group.entity.d.ts +27 -0
- package/chat.modules/chat-content-group.entity.js +2 -0
- package/chat.modules/chat-content.entity.d.ts +4 -0
- package/chat.modules/chat-room.entity.d.ts +77 -0
- package/chat.modules/chat-room.entity.js +13 -0
- package/chat.modules/index.d.ts +2 -0
- package/chat.modules/index.js +2 -0
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/package.json +1 -1
- package/store-item-option-restock-log/index.d.ts +1 -0
- package/store-item-option-restock-log/index.js +17 -0
- package/store-item-option-restock-log/store-item-option-restock-log.entity.d.ts +16 -0
- package/store-item-option-restock-log/store-item-option-restock-log.entity.js +2 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Types } from 'mongoose';
|
|
2
|
+
export interface ChatContentGroupEntity {
|
|
3
|
+
_id: Types.ObjectId | string;
|
|
4
|
+
/**
|
|
5
|
+
* 유니크 키
|
|
6
|
+
* ${chatRoomId}_${chatContentGroupIndex}
|
|
7
|
+
* */
|
|
8
|
+
uniqueKey: string;
|
|
9
|
+
/** 채팅 그룹 순서 (1부터 시작) */
|
|
10
|
+
chatContentGroupIndex: number;
|
|
11
|
+
/** 메시지 룸 아이디 */
|
|
12
|
+
chatRoomId: Types.ObjectId | string;
|
|
13
|
+
buyerId: Types.ObjectId | string;
|
|
14
|
+
sellerId: Types.ObjectId | string;
|
|
15
|
+
itemId: Types.ObjectId | string;
|
|
16
|
+
/** 당시 상품명 */
|
|
17
|
+
pastItemName: string;
|
|
18
|
+
chatTitle: string;
|
|
19
|
+
chatDetail?: string;
|
|
20
|
+
chatContentIds: Types.ObjectId[];
|
|
21
|
+
isSellerAnswer: boolean;
|
|
22
|
+
sellerAnswer?: string;
|
|
23
|
+
sellerAnswerDate?: Date;
|
|
24
|
+
firstChatContentDate: Date;
|
|
25
|
+
lastChatContentDate: Date;
|
|
26
|
+
regDate: Date;
|
|
27
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { Types } from 'mongoose';
|
|
2
|
+
export declare enum ChatRoomTypeEnum {
|
|
3
|
+
ASK = "ask",
|
|
4
|
+
STORE = "store"
|
|
5
|
+
}
|
|
6
|
+
export declare enum ChatRoomProcessEnum {
|
|
7
|
+
QUESTION = "question",
|
|
8
|
+
PAID = "paid"
|
|
9
|
+
}
|
|
10
|
+
export interface ChatRoomBuyerInfo {
|
|
11
|
+
userId: Types.ObjectId | string;
|
|
12
|
+
buyerName: string;
|
|
13
|
+
unread: number;
|
|
14
|
+
isOut: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface ChatRoomSellerInfo {
|
|
17
|
+
userId: Types.ObjectId | string;
|
|
18
|
+
storeId: Types.ObjectId | string;
|
|
19
|
+
unread: number;
|
|
20
|
+
isOut: boolean;
|
|
21
|
+
}
|
|
22
|
+
export interface ChatRoomPastItemInfo {
|
|
23
|
+
pastItemName: string;
|
|
24
|
+
pastItemImg: string;
|
|
25
|
+
}
|
|
26
|
+
export interface ChatRoomPastAskInfo {
|
|
27
|
+
pastAskTitle: string;
|
|
28
|
+
pastAskImg: string;
|
|
29
|
+
}
|
|
30
|
+
export interface ChatRoomRelateAskInfo {
|
|
31
|
+
askProcess: string;
|
|
32
|
+
}
|
|
33
|
+
export interface ChatRoomRelatePInfo {
|
|
34
|
+
PInfoProcess: string;
|
|
35
|
+
PInfoProcess_v2: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @author jun
|
|
39
|
+
* @description 채팅 룸 엔티티
|
|
40
|
+
*/
|
|
41
|
+
export interface ChatRoomEntity {
|
|
42
|
+
_id: Types.ObjectId | string;
|
|
43
|
+
/** 메시지 타입 <ask, store> */
|
|
44
|
+
chatType: ChatRoomTypeEnum;
|
|
45
|
+
/** 마지막 메세지 인덱스 (총 메시지 content 수) */
|
|
46
|
+
chatLastIndex: number;
|
|
47
|
+
/** 메시지 프로세스 < question, paid > */
|
|
48
|
+
chatProcess: ChatRoomProcessEnum;
|
|
49
|
+
/** 최초 생성자 유저 아이디 */
|
|
50
|
+
initRegUserId: Types.ObjectId | string;
|
|
51
|
+
/** 키 `_${상품 또는 요청, 결제 아이디}-${구매자아이디}-${셀러아이디}_` */
|
|
52
|
+
chatRoomKey: string;
|
|
53
|
+
buyerInfo: ChatRoomBuyerInfo;
|
|
54
|
+
sellerInfo: ChatRoomSellerInfo;
|
|
55
|
+
/** 관련 구매 정보 아이디 */
|
|
56
|
+
relatedPInfoId?: Types.ObjectId | string;
|
|
57
|
+
/** 관련 뉴 요청 아이디 */
|
|
58
|
+
relatedAskId?: Types.ObjectId | string;
|
|
59
|
+
/** 관련 상품 아이디 */
|
|
60
|
+
relatedItemId?: Types.ObjectId | string;
|
|
61
|
+
pastItemInfo?: ChatRoomPastItemInfo;
|
|
62
|
+
pastAskInfo?: ChatRoomPastAskInfo;
|
|
63
|
+
relateAsk?: ChatRoomRelateAskInfo;
|
|
64
|
+
relatePInfo?: ChatRoomRelatePInfo;
|
|
65
|
+
/** 미리 보기 텍스트 */
|
|
66
|
+
preview?: string;
|
|
67
|
+
/** 미리 보기 종류 <text, img> */
|
|
68
|
+
previewType?: string;
|
|
69
|
+
/** 마지막 문자 시간 */
|
|
70
|
+
lastMsgDate?: Date;
|
|
71
|
+
/** 저장 일 */
|
|
72
|
+
regDate: Date;
|
|
73
|
+
/** 메시지 룸 로그 */
|
|
74
|
+
log: any[];
|
|
75
|
+
/** 복사한 메시지 아이디 */
|
|
76
|
+
relatedMsgId?: Types.ObjectId | string;
|
|
77
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ChatRoomProcessEnum = exports.ChatRoomTypeEnum = void 0;
|
|
4
|
+
var ChatRoomTypeEnum;
|
|
5
|
+
(function (ChatRoomTypeEnum) {
|
|
6
|
+
ChatRoomTypeEnum["ASK"] = "ask";
|
|
7
|
+
ChatRoomTypeEnum["STORE"] = "store";
|
|
8
|
+
})(ChatRoomTypeEnum || (exports.ChatRoomTypeEnum = ChatRoomTypeEnum = {}));
|
|
9
|
+
var ChatRoomProcessEnum;
|
|
10
|
+
(function (ChatRoomProcessEnum) {
|
|
11
|
+
ChatRoomProcessEnum["QUESTION"] = "question";
|
|
12
|
+
ChatRoomProcessEnum["PAID"] = "paid";
|
|
13
|
+
})(ChatRoomProcessEnum || (exports.ChatRoomProcessEnum = ChatRoomProcessEnum = {}));
|
package/chat.modules/index.d.ts
CHANGED
package/chat.modules/index.js
CHANGED
|
@@ -15,3 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./chat-content.entity"), exports);
|
|
18
|
+
__exportStar(require("./chat-content-group.entity"), exports);
|
|
19
|
+
__exportStar(require("./chat-room.entity"), exports);
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -59,3 +59,4 @@ __exportStar(require("./public-holiday"), exports);
|
|
|
59
59
|
__exportStar(require("./store-item-detail-banner"), exports);
|
|
60
60
|
__exportStar(require("./store-item-banner"), exports);
|
|
61
61
|
__exportStar(require("./store-item-detail-banner-by-store-item"), exports);
|
|
62
|
+
__exportStar(require("./store-item-option-restock-log"), exports);
|
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './store-item-option-restock-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("./store-item-option-restock-log.entity"), exports);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Types } from 'mongoose';
|
|
2
|
+
import { StoreItemOptionList } from '@yolo-croket-dev/entity/src/store-item';
|
|
3
|
+
/** @description 상품 옵션 재입고 로그 */
|
|
4
|
+
export interface StoreItemOptionRestockLogEntity {
|
|
5
|
+
_id: Types.ObjectId | string;
|
|
6
|
+
/** @description 유저 아이디 */
|
|
7
|
+
userId: string;
|
|
8
|
+
/** @description 스토어 아이디 */
|
|
9
|
+
storeId: string;
|
|
10
|
+
/** @description 상품 아이디 */
|
|
11
|
+
storeItemId: string;
|
|
12
|
+
/** @description 재입고 옵션 리스트 */
|
|
13
|
+
restockOptions: StoreItemOptionList[];
|
|
14
|
+
/** @description 등록일 */
|
|
15
|
+
regDate: Date;
|
|
16
|
+
}
|