@carsayo/types 1.1.891747 → 1.1.891749

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.
@@ -651,10 +651,13 @@ export interface CustomerCarInfo {
651
651
  id: string;
652
652
  /**
653
653
  * 쿠콘 차량 정보 (JSON String 형식, 클라이언트에서 파싱해서 사용)
654
+ * @note 쿠콘 차량 정보가 없을 경우 null
655
+ * @type JSON.parse(car_info)하면
654
656
  */
655
657
  car_info: string | null;
656
658
  /**
657
659
  * 쿠콘 이외 추가 정보 (JSON String 형식, 클라이언트에서 파싱해서 사용)
660
+ * @note 쿠콘 이외 추가 정보가 없을 경우 null
658
661
  */
659
662
  additional_info: string | null;
660
663
  /**
@@ -1,7 +1,7 @@
1
1
  import { RepairShop } from "../accidentReport";
2
2
  import { FileInfo } from "../file";
3
3
  import { CustomerCarInfo, MemberShort } from "../member";
4
- import { CarPartitionKey, RepairBidState, RepairState, RequestRepairType, TireSize } from "./type";
4
+ import { CarPartitionKey, RepairBidState, RepairRequestType, RepairState, RepairType, TireSize } from "./type";
5
5
  /** 고객이 수리 요청시 생성 */
6
6
  export interface Repair {
7
7
  /** 견적 번호
@@ -10,6 +10,7 @@ export interface Repair {
10
10
  */
11
11
  id: string;
12
12
  state: RepairState;
13
+ type: RepairType;
13
14
  /** 견적 요청 내용 */
14
15
  request: RepairRequest;
15
16
  /** 요청 고객 정보 */
@@ -112,7 +113,7 @@ export interface RepairReservation {
112
113
  /** 견적 요청 내용 */
113
114
  export type RepairRequest = {
114
115
  /** 수리 요청 타입 */
115
- type: RequestRepairType;
116
+ type: RepairRequestType;
116
117
  /** 선택 차량 정보 */
117
118
  selectedCar: CustomerCarInfo;
118
119
  사고수리: {
@@ -1,4 +1,11 @@
1
- /** 수리 진행 상태
1
+ export declare const RepairType: {
2
+ readonly accident: "사고수리";
3
+ readonly exterior: "외부수리";
4
+ readonly engineOil: "엔진오일";
5
+ readonly tire: "타이어";
6
+ };
7
+ export type RepairType = keyof typeof RepairType;
8
+ /** 스마트 정비 진행 상태
2
9
  * @note 고객 입장에서의 상태
3
10
  */
4
11
  export declare const RepairState: {
@@ -21,12 +28,12 @@ export declare const RepairBidState: {
21
28
  readonly canceled: "취소";
22
29
  };
23
30
  export type RepairBidState = keyof typeof RepairBidState;
24
- export declare const RequestRepairType: readonly ["사고수리", "외부수리", "엔진오일", "타이어"];
25
- export type RequestRepairType = (typeof RequestRepairType)[number];
31
+ export declare const RepairRequestType: readonly ["사고수리", "외부수리", "엔진오일", "타이어"];
32
+ export type RepairRequestType = (typeof RepairRequestType)[number];
26
33
  export declare const CarPartitionKey: readonly ["앞범퍼", "뒷범퍼", "후드", "트렁크", "루프", "운전석 전도어", "운전석 후도어", "운전석 전펜더", "운전석 후펜더", "운전석 스텝", "조수석 전도어", "조수석 후도어", "조수석 전펜더", "조수석 후펜더", "조수석 스텝", "사이드미러/유리/휠/라이트"];
27
34
  export type CarPartitionKey = (typeof CarPartitionKey)[number];
28
35
  export type TireSize = {
29
- /** 단면적 (155 ~ 305 (5단위 → 총 31개)) */
36
+ /** 단면폭 (155 ~ 305 (5단위 → 총 31개)) */
30
37
  width: number;
31
38
  /** 편평비 (30 ~ 80 (5단위 → 총 11개)) */
32
39
  ratio: number;
@@ -1,7 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CarPartitionKey = exports.RequestRepairType = exports.RepairBidState = exports.RepairState = void 0;
4
- /** 수리 진행 상태
3
+ exports.CarPartitionKey = exports.RepairRequestType = exports.RepairBidState = exports.RepairState = exports.RepairType = void 0;
4
+ exports.RepairType = {
5
+ accident: "사고수리",
6
+ exterior: "외부수리",
7
+ engineOil: "엔진오일",
8
+ tire: "타이어",
9
+ };
10
+ /** 스마트 정비 진행 상태
5
11
  * @note 고객 입장에서의 상태
6
12
  */
7
13
  exports.RepairState = {
@@ -22,7 +28,7 @@ exports.RepairBidState = {
22
28
  reserve_canceled: "예약취소",
23
29
  canceled: "취소",
24
30
  };
25
- exports.RequestRepairType = [
31
+ exports.RepairRequestType = [
26
32
  "사고수리",
27
33
  "외부수리",
28
34
  "엔진오일",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carsayo/types",
3
- "version": "1.1.891747",
3
+ "version": "1.1.891749",
4
4
  "description": "Carsayo app type",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",