@carsayo/types 1.1.892071 → 1.1.892073

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.
Files changed (29) hide show
  1. package/dist/types/modules/chat/dto.d.ts +4 -0
  2. package/dist/types/modules/chat/dto.js +2 -0
  3. package/dist/types/modules/chat/index.d.ts +1 -0
  4. package/dist/types/modules/chat/index.js +1 -0
  5. package/dist/types/modules/chat/type.d.ts +1 -0
  6. package/dist/types/modules/chat/type.room.additionalInfo.d.ts +28 -3
  7. package/dist/types/modules/purchase/dto.d.ts +9 -0
  8. package/dist/types/modules/purchase/dto.js +3 -0
  9. package/dist/types/modules/purchase/index.d.ts +2 -0
  10. package/dist/types/modules/purchase/index.js +18 -0
  11. package/dist/types/modules/purchase/interface.d.ts +22 -0
  12. package/dist/types/modules/purchase/interface.js +2 -0
  13. package/dist/types/modules/purchase/type.d.ts +11 -0
  14. package/dist/types/modules/purchase/type.js +13 -0
  15. package/dist/types/modules/repair/constants.d.ts +23 -0
  16. package/dist/types/modules/repair/constants.js +52 -0
  17. package/dist/types/modules/sellMyCar/dto-admin.d.ts +5 -5
  18. package/dist/types/modules/sellMyCar/interface.d.ts +8 -0
  19. package/dist/types/providers/coocon-usedcar/constants.d.ts +46 -0
  20. package/dist/types/providers/coocon-usedcar/constants.js +673 -0
  21. package/dist/types/providers/nicepayment/dto.d.ts +60 -0
  22. package/dist/types/providers/nicepayment/dto.js +9 -0
  23. package/dist/types/providers/nicepayment/index.d.ts +3 -0
  24. package/dist/types/providers/nicepayment/index.js +19 -0
  25. package/dist/types/providers/nicepayment/interface.d.ts +168 -0
  26. package/dist/types/providers/nicepayment/interface.js +2 -0
  27. package/dist/types/providers/nicepayment/type.d.ts +36 -0
  28. package/dist/types/providers/nicepayment/type.js +37 -0
  29. package/package.json +1 -1
@@ -0,0 +1,4 @@
1
+ export interface ConnectChatSellCarInfoDTO {
2
+ sell_car_order_id: string;
3
+ chat_room_inquiry_id: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -3,3 +3,4 @@ export * from "./type.opponent.additionalInfo";
3
3
  export * from "./type.socket";
4
4
  export * from "./type";
5
5
  export * from "./constants";
6
+ export * from "./dto";
@@ -19,3 +19,4 @@ __exportStar(require("./type.opponent.additionalInfo"), exports);
19
19
  __exportStar(require("./type.socket"), exports);
20
20
  __exportStar(require("./type"), exports);
21
21
  __exportStar(require("./constants"), exports);
22
+ __exportStar(require("./dto"), exports);
@@ -7,6 +7,7 @@ export type ChatOpponent = {
7
7
  name_real: string;
8
8
  type: MemberType;
9
9
  profileImage: string | null;
10
+ phoneNumber: string;
10
11
  /** 입맛대로 저장하는 추가 정보 */
11
12
  additionalInfo?: ChatOpponentAdditionalInfo;
12
13
  /** 차단 여부 */
@@ -1,5 +1,5 @@
1
1
  import { RepairEstimate } from "../repair";
2
- import { SellMyCarOrderMethod } from "../sellMyCar";
2
+ import { SellCarComplexes, SellMyCarOrderMethod } from "../sellMyCar";
3
3
  export type ChatRoomAdditionalInfo = ChatRoomAdditionalInfo_Repair | ChatRoomAdditionalInfo_SellcarInquiry;
4
4
  export type ChatRoomAdditionalInfo_Repair = {
5
5
  /** 견적 요청 ID */
@@ -18,10 +18,35 @@ export type ChatRoomAdditionalInfo_SellcarInquiry = {
18
18
  sell_car_order_id: string;
19
19
  /** 차량명 */
20
20
  carName: string;
21
+ /** 브랜드명 */
22
+ makerName: string;
23
+ /** 모델명 */
24
+ modelName: string;
25
+ /** 연식 */
26
+ year: number;
27
+ /** 주행거리 */
28
+ distance: number;
29
+ /** 위치 */
30
+ location: string;
21
31
  /** 견적 요청 방법 */
22
32
  method: SellMyCarOrderMethod;
23
33
  /** 대화 대상 유형 */
24
34
  inquiryTargetType: "customer" | "dealer";
25
- /** 대화 대상 본명 */
26
- real_name: string;
35
+ customer: {
36
+ phone: string;
37
+ name_real: string;
38
+ };
39
+ /** 딜러 채팅방에만 존재 */
40
+ dealer: {
41
+ phone: string;
42
+ name_real: string;
43
+ /** 내차팔기 - 소속 매매단지 */
44
+ sell_car_complexes: SellCarComplexes | null;
45
+ /** 내차팔기 - 소속상사명 */
46
+ sell_car_complexes_name: string | null;
47
+ /** 내차팔기 - 소속상사 전화번호 */
48
+ sell_car_complexes_contact: string | null;
49
+ /** 직함 */
50
+ sell_car_job_title: string | null;
51
+ } | null;
27
52
  };
@@ -0,0 +1,9 @@
1
+ /** DTO는 서버단에 요청을 보낼 때 사용하는 클래스 유형으로 서버단에서 이 곳에 정의된 대로 유효성 검사를 처리합니다. */
2
+ import { PurchaseItemId } from "../../../data";
3
+ export interface GetPurchaseItemDTO {
4
+ termCategoryId: PurchaseItemId;
5
+ }
6
+ export interface PurchaseItemDTO {
7
+ termCategoryId: PurchaseItemId;
8
+ paymentId: string;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ /** DTO는 서버단에 요청을 보낼 때 사용하는 클래스 유형으로 서버단에서 이 곳에 정의된 대로 유효성 검사를 처리합니다. */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export * from "./interface";
2
+ export * from "./type";
@@ -0,0 +1,18 @@
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("./interface"), exports);
18
+ __exportStar(require("./type"), exports);
@@ -0,0 +1,22 @@
1
+ import { PurchaseItemId } from "../../../data";
2
+ import { PaymentVirtualBankInfo } from "../../providers";
3
+ import { PurchaseState } from "./type";
4
+ /** 구매할 아이템 정보 */
5
+ export interface PurchaseItemInfo {
6
+ id: PurchaseItemId;
7
+ title: string;
8
+ description: string;
9
+ price: number;
10
+ created_at: Date;
11
+ updated_at: Date;
12
+ }
13
+ export interface PurchaseResult {
14
+ /** purchaseID */
15
+ id: string;
16
+ state: PurchaseState;
17
+ title: string;
18
+ description: string;
19
+ price: number;
20
+ created_at: Date;
21
+ virtualBank?: PaymentVirtualBankInfo;
22
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @virtualAccountWaiting 가상계좌 입금 대기
3
+ * @bought 구매 완료
4
+ * @canceled 취소
5
+ */
6
+ export declare const PurchaseState: {
7
+ virtualAccountWaiting: string;
8
+ bought: string;
9
+ canceled: string;
10
+ };
11
+ export type PurchaseState = keyof typeof PurchaseState;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PurchaseState = void 0;
4
+ /**
5
+ * @virtualAccountWaiting 가상계좌 입금 대기
6
+ * @bought 구매 완료
7
+ * @canceled 취소
8
+ */
9
+ exports.PurchaseState = {
10
+ virtualAccountWaiting: "virtualAccountWaiting",
11
+ bought: "bought",
12
+ canceled: "canceled",
13
+ };
@@ -0,0 +1,23 @@
1
+ export declare const REPAIR_METHOD_DESCRIPTION_MAP: {
2
+ readonly "\uD310\uAE08/\uBCF4\uC218 \uB3C4\uC7A5": "손상된 부분을 복원하고, 색차이가 나지 않도록 해당 부위가 속한 판전체(앞 문 전체 등)에 색을 입히는 작업";
3
+ readonly "\uBD80\uBD84 \uB3C4\uC7A5": "손상된 부분을 복원하고, 복원한 부분만 색을 입 히는 작업";
4
+ readonly "\uD3F4\uB9AC\uC2F1(\uAD11\uD0DD)": "경미한 손상(실기스 등)을 연마하여 제거하고 광 택을 내는 작업";
5
+ readonly 덴트: "색 작업이 불필요한 정도의 손상(문콕 등찍힘 수 준)을 도구를 활용하여 복원하는 작업";
6
+ readonly "\uC11C\uC2A4\uD39C\uC158 \uC218\uB9AC/\uAD50\uD658": "사고나 충격으로 손상된 서스펜션 부품(쇽업소버, 로워암 등)을 수리 또는 교체하는 작업";
7
+ readonly "\uC5D4\uC9C4 \uB9C8\uC6B4\uD2B8 \uC218\uB9AC": "엔진의 진동을 줄이고 차체에 단단히 고정해주는 부품";
8
+ readonly "\uB77C\uB514\uC5D0\uC774\uD130 / \uB0C9\uAC01\uACC4 \uC218\uB9AC": "엔진이 과열되지 않도록 열을 식혀주는 부품들을 점검하고, 손상된 라디에이터나 냉각수 호스, 워터펌프 등을 수리 또는 교체하는 작업";
9
+ readonly 헤드램프: "사고나 충격으로 파손된 전조등(헤드램프)을 교체하는 작업";
10
+ readonly "\uD14C\uC77C\uB7A8\uD504 \uAD50\uD658": "사고나 충격으로 파손된 후미등(테일램프)을 교체하는 작업";
11
+ readonly "\uC13C\uC11C \uAD50\uCCB4": "차량에는 사고 감지, 브레이크, 에어백, 주행 안전 등 다양한 전자 센서를 교체 또는 수리";
12
+ readonly "\uBC30\uC120 / \uD4E8\uC988 \uC218\uB9AC": "차량 내부 전기장치가 작동하지 않거나, 특정 기능을 수리";
13
+ readonly "\uCC28\uB300 \uAD50\uC815(\uD504\uB808\uC784 \uC815\uB82C)": "사고 충격으로 차량의 뼈대(프레임)가 틀어진 경우, 전문 장비로 원래 위치로 정밀하게 바로잡는 작업";
14
+ readonly "\uC6A9\uC811/\uC808\uB2E8 \uBCF4\uAC15": "차체 손상이나 부식이 심한 경우, 강성 확보를 위해 용접 및 절단 보강 작업";
15
+ readonly "\uC5B8\uB354\uBC14\uB514 \uC218\uB9AC": "차량 하부 손상을 직접 점검하고 필요한 수리를 진행";
16
+ readonly "\uC5D0\uC5B4\uBC31 \uAD50\uCCB4": "에어백 모듈, 센서, 커넥터 등 관련 부품을 함께 점검하고 교체하여 안전 기능을 복원";
17
+ readonly "\uB3C4\uC5B4 / \uD2B8\uB801\uD06C \uC815\uB82C": "도어 또는 트렁크의 닫힘이 어긋나거나 유격이 생긴 경우, 또는 히든 경첩, 힌지, 스트라이커 등을 조정해 제대로 닫히고 맞물리도록 복원";
18
+ readonly "\uD720 \uC5BC\uB77C\uC774\uBA3C\uD2B8 / \uBC38\uB7F0\uC2A4": "주행 중 쏠림, 진동, 타이어 편마모 등이 발생 등 차량의 직진성을 점검";
19
+ };
20
+ export type REPAIR_METHOD = keyof typeof REPAIR_METHOD_DESCRIPTION_MAP;
21
+ export declare const ESTIMATED_PERIOD_DESCRIPTION = "\uCD9C\uACE0\uC77C\uC740 \uC5C5\uCCB4 \uC77C\uC815\uC5D0 \uB530\uB77C \uC870\uAE08 \uB2EC\uB77C\uC9C8 \uC218 \uC788\uC5B4\uC694.";
22
+ export declare const ALL_REPAIR_METHODS: (REPAIR_METHOD | "직접 입력")[];
23
+ export declare const EXTERIOR_REPAIR_METHODS: (REPAIR_METHOD | "직접 입력")[];
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EXTERIOR_REPAIR_METHODS = exports.ALL_REPAIR_METHODS = exports.ESTIMATED_PERIOD_DESCRIPTION = exports.REPAIR_METHOD_DESCRIPTION_MAP = void 0;
4
+ // 수리방법 - 설명 데이터
5
+ exports.REPAIR_METHOD_DESCRIPTION_MAP = {
6
+ "판금/보수 도장": "손상된 부분을 복원하고, 색차이가 나지 않도록 해당 부위가 속한 판전체(앞 문 전체 등)에 색을 입히는 작업",
7
+ "부분 도장": "손상된 부분을 복원하고, 복원한 부분만 색을 입 히는 작업",
8
+ "폴리싱(광택)": "경미한 손상(실기스 등)을 연마하여 제거하고 광 택을 내는 작업",
9
+ 덴트: "색 작업이 불필요한 정도의 손상(문콕 등찍힘 수 준)을 도구를 활용하여 복원하는 작업",
10
+ "서스펜션 수리/교환": "사고나 충격으로 손상된 서스펜션 부품(쇽업소버, 로워암 등)을 수리 또는 교체하는 작업",
11
+ "엔진 마운트 수리": "엔진의 진동을 줄이고 차체에 단단히 고정해주는 부품",
12
+ "라디에이터 / 냉각계 수리": "엔진이 과열되지 않도록 열을 식혀주는 부품들을 점검하고, 손상된 라디에이터나 냉각수 호스, 워터펌프 등을 수리 또는 교체하는 작업",
13
+ 헤드램프: "사고나 충격으로 파손된 전조등(헤드램프)을 교체하는 작업",
14
+ "테일램프 교환": "사고나 충격으로 파손된 후미등(테일램프)을 교체하는 작업",
15
+ "센서 교체": "차량에는 사고 감지, 브레이크, 에어백, 주행 안전 등 다양한 전자 센서를 교체 또는 수리",
16
+ "배선 / 퓨즈 수리": "차량 내부 전기장치가 작동하지 않거나, 특정 기능을 수리",
17
+ "차대 교정(프레임 정렬)": "사고 충격으로 차량의 뼈대(프레임)가 틀어진 경우, 전문 장비로 원래 위치로 정밀하게 바로잡는 작업",
18
+ "용접/절단 보강": "차체 손상이나 부식이 심한 경우, 강성 확보를 위해 용접 및 절단 보강 작업",
19
+ "언더바디 수리": "차량 하부 손상을 직접 점검하고 필요한 수리를 진행",
20
+ "에어백 교체": "에어백 모듈, 센서, 커넥터 등 관련 부품을 함께 점검하고 교체하여 안전 기능을 복원",
21
+ "도어 / 트렁크 정렬": "도어 또는 트렁크의 닫힘이 어긋나거나 유격이 생긴 경우, 또는 히든 경첩, 힌지, 스트라이커 등을 조정해 제대로 닫히고 맞물리도록 복원",
22
+ "휠 얼라이먼트 / 밸런스": "주행 중 쏠림, 진동, 타이어 편마모 등이 발생 등 차량의 직진성을 점검",
23
+ };
24
+ // 예상기간에 대한 설명 내용
25
+ exports.ESTIMATED_PERIOD_DESCRIPTION = "출고일은 업체 일정에 따라 조금 달라질 수 있어요.";
26
+ exports.ALL_REPAIR_METHODS = [
27
+ "판금/보수 도장",
28
+ "부분 도장",
29
+ "폴리싱(광택)",
30
+ "덴트",
31
+ "서스펜션 수리/교환",
32
+ "엔진 마운트 수리",
33
+ "라디에이터 / 냉각계 수리",
34
+ "헤드램프",
35
+ "테일램프 교환",
36
+ "센서 교체",
37
+ "배선 / 퓨즈 수리",
38
+ "차대 교정(프레임 정렬)",
39
+ "용접/절단 보강",
40
+ "언더바디 수리",
41
+ "에어백 교체",
42
+ "도어 / 트렁크 정렬",
43
+ "휠 얼라이먼트 / 밸런스",
44
+ "직접 입력",
45
+ ];
46
+ exports.EXTERIOR_REPAIR_METHODS = [
47
+ "판금/보수 도장",
48
+ "부분 도장",
49
+ "폴리싱(광택)",
50
+ "덴트",
51
+ "직접 입력",
52
+ ];
@@ -80,11 +80,11 @@ export interface ReqSetMyCarTransport extends ReqSellMyCarId {
80
80
  * 관리자에서 입력되어 오는 값
81
81
  * 값이 없으면 new Date(), '' 와 같은 초기값이 넘어옴
82
82
  */
83
- customerVisitedAt: Date;
84
- customerVisitedNewAddress: string;
85
- customerVisitedOldAddress: string;
86
- customerVisitedDetailAddress: string;
87
- customerSettedAt: Date;
83
+ customerVisitedAt?: Date;
84
+ customerVisitedNewAddress?: string;
85
+ customerVisitedOldAddress?: string;
86
+ customerVisitedDetailAddress?: string;
87
+ customerSettedAt?: Date;
88
88
  }
89
89
  /** 관리자 > 탁송기사 정보 변경 요청 DTO */
90
90
  export interface ReqUpdateMyCarTransport extends ReqSellMyCarId {
@@ -857,6 +857,10 @@ export interface SellMyCarOrder_Customer extends SellMyCarOrder {
857
857
  selected_bid: SellMyCarOrderBid | null;
858
858
  /** 고객의 이력 정보 */
859
859
  history: SellMyCarOrderHistory[];
860
+ /** 1:1 문의 채팅방 ID (고객용)
861
+ * @note sell-car-order.chat_room_inquiry_id
862
+ */
863
+ customer_chat_room_id: string | null;
860
864
  }
861
865
  export interface SellMyCarOrder_Dealer extends SellMyCarOrder {
862
866
  method: Exclude<SellMyCarOrderMethod, "selecting">;
@@ -887,6 +891,10 @@ export interface SellMyCarOrder_Dealer extends SellMyCarOrder {
887
891
  is_blacklist_requested: boolean;
888
892
  created_at: Date;
889
893
  } | null;
894
+ /** 1:1 문의 채팅방 ID (딜러용)
895
+ * @note sell-car-bid.chat_room_inquiry_id
896
+ */
897
+ dealer_chat_room_id: string | null;
890
898
  }
891
899
  /** 관리자용 */
892
900
  export interface SellMyCarOrder_Admin extends SellMyCarOrder {
@@ -0,0 +1,46 @@
1
+ /** Coocon 차량 유형 정보 */
2
+ export declare const CooconUsedCarInfoCategory: readonly [{
3
+ readonly bg_name: "경차";
4
+ readonly bg_no: "1";
5
+ }, {
6
+ readonly bg_name: "소형차";
7
+ readonly bg_no: "2";
8
+ }, {
9
+ readonly bg_name: "준중형차";
10
+ readonly bg_no: "3";
11
+ }, {
12
+ readonly bg_name: "중형차";
13
+ readonly bg_no: "4";
14
+ }, {
15
+ readonly bg_name: "대형차";
16
+ readonly bg_no: "5";
17
+ }, {
18
+ readonly bg_name: "스포츠카";
19
+ readonly bg_no: "6";
20
+ }, {
21
+ readonly bg_name: "RV";
22
+ readonly bg_no: "7";
23
+ }, {
24
+ readonly bg_name: "SUV";
25
+ readonly bg_no: "8";
26
+ }, {
27
+ readonly bg_name: "승합차";
28
+ readonly bg_no: "9";
29
+ }, {
30
+ readonly bg_name: "화물차";
31
+ readonly bg_no: "10";
32
+ }, {
33
+ readonly bg_name: "버스";
34
+ readonly bg_no: "11";
35
+ }, {
36
+ readonly bg_name: "특장차";
37
+ readonly bg_no: "21";
38
+ }, {
39
+ readonly bg_name: "기타";
40
+ readonly bg_no: "20";
41
+ }];
42
+ /** Coocon 제조사 정보 */
43
+ export declare const CooconUsedCarInfoMaker: {
44
+ bm_no: string;
45
+ bm_name: string;
46
+ }[];