@carsayo/types 1.1.892061 → 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;
@@ -1,5 +1,6 @@
1
1
  import { RepairEstimate } from "../repair";
2
- export type ChatRoomAdditionalInfo = ChatRoomAdditionalInfo_Repair;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carsayo/types",
3
- "version": "1.1.892061",
3
+ "version": "1.1.892062",
4
4
  "description": "Carsayo app type",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",