@carsayo/types 1.1.892060 → 1.1.892062
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.
|
@@ -3,6 +3,11 @@ import { ChatRoomAdditionalInfo } from "./type.room.additionalInfo";
|
|
|
3
3
|
export type ChatOpponent = {
|
|
4
4
|
id: string;
|
|
5
5
|
name: string;
|
|
6
|
+
/** 유형에 따라 푸시메시지 발송 방법이 달라짐
|
|
7
|
+
* customer, dealer: 회원에 등록된 fcm 토큰 사용
|
|
8
|
+
* partner: 파트너스 공업사에 등록된 fcm 토큰 사용
|
|
9
|
+
*/
|
|
10
|
+
type: "customer" | "dealer" | "partner";
|
|
6
11
|
profileImage: string | null;
|
|
7
12
|
/** 입맛대로 저장하는 추가 정보 */
|
|
8
13
|
additionalInfo?: ChatOpponentAdditionalInfo;
|
|
@@ -18,8 +23,10 @@ export declare const ChatRoomType: {
|
|
|
18
23
|
readonly repair_service: "repair_service";
|
|
19
24
|
/** 사고수리 공업사 직접문의 채팅 */
|
|
20
25
|
readonly repair_direct: "repair_direct";
|
|
21
|
-
/** 내차팔기 관리자 1:1 문의 */
|
|
22
|
-
readonly
|
|
26
|
+
/** [고객용] 내차팔기 관리자 1:1 문의 */
|
|
27
|
+
readonly inquiry_sellcar_customer: "inquiry_sellcar_customer";
|
|
28
|
+
/** [딜러용] 내차팔기 관리자 1:1 문의 */
|
|
29
|
+
readonly inquiry_sellcar_dealer: "inquiry_sellcar_dealer";
|
|
23
30
|
};
|
|
24
31
|
export type ChatRoomType = keyof typeof ChatRoomType;
|
|
25
32
|
export type ChatCreateRoomInfo = {
|
|
@@ -6,8 +6,10 @@ exports.ChatRoomType = {
|
|
|
6
6
|
repair_service: "repair_service",
|
|
7
7
|
/** 사고수리 공업사 직접문의 채팅 */
|
|
8
8
|
repair_direct: "repair_direct",
|
|
9
|
-
/** 내차팔기 관리자 1:1 문의 */
|
|
10
|
-
|
|
9
|
+
/** [고객용] 내차팔기 관리자 1:1 문의 */
|
|
10
|
+
inquiry_sellcar_customer: "inquiry_sellcar_customer",
|
|
11
|
+
/** [딜러용] 내차팔기 관리자 1:1 문의 */
|
|
12
|
+
inquiry_sellcar_dealer: "inquiry_sellcar_dealer",
|
|
11
13
|
};
|
|
12
14
|
exports.TargetApp = {
|
|
13
15
|
carsayo: "카사요",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { RepairEstimate } from "../repair";
|
|
2
|
-
|
|
2
|
+
import { SellMyCarOrderMethod } from "../sellMyCar";
|
|
3
|
+
export type ChatRoomAdditionalInfo = ChatRoomAdditionalInfo_Repair | ChatRoomAdditionalInfo_SellcarInquiry;
|
|
3
4
|
export type ChatRoomAdditionalInfo_Repair = {
|
|
4
5
|
/** 견적 요청 ID */
|
|
5
6
|
repairId: string;
|
|
@@ -12,3 +13,15 @@ export type ChatRoomAdditionalInfo_Repair = {
|
|
|
12
13
|
/** 예상 수리일 */
|
|
13
14
|
estimatedPeriod: RepairEstimate["estimatedPeriod"];
|
|
14
15
|
};
|
|
16
|
+
export type ChatRoomAdditionalInfo_SellcarInquiry = {
|
|
17
|
+
/** 견적 요청 ID */
|
|
18
|
+
sell_car_order_id: string;
|
|
19
|
+
/** 차량명 */
|
|
20
|
+
carName: string;
|
|
21
|
+
/** 견적 요청 방법 */
|
|
22
|
+
method: SellMyCarOrderMethod;
|
|
23
|
+
/** 대화 대상 유형 */
|
|
24
|
+
inquiryTargetType: "customer" | "dealer";
|
|
25
|
+
/** 대화 대상 본명 */
|
|
26
|
+
real_name: string;
|
|
27
|
+
};
|
package/package.json
CHANGED