@carsayo/types 1.1.821 → 1.1.822

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.
@@ -1,4 +1,6 @@
1
1
  import { MemberGender } from "../member";
2
+ import { AccidentReportData_Cancel, AccidentReportData_In, AccidentReportData_Repair, AccidentReportData_Repair_Finish } from "./interface";
3
+ import { AccidentReportState } from "./type";
2
4
  /** 일반회원 - 사고접수 등록 */
3
5
  export interface AccidentReportCreateDTO {
4
6
  /** 접수자 본명 */
@@ -24,3 +26,14 @@ export interface AccidentReportCreateDTO {
24
26
  /** 협력 정비소 아이디 */
25
27
  partner_repairshop_id: string;
26
28
  }
29
+ /** 사고접수 업데이트 */
30
+ export interface AccidentReportUpdateDTO {
31
+ /** 사고접수 아이디 */
32
+ id: string;
33
+ /** 사고접수 상태 */
34
+ state: AccidentReportState;
35
+ info_cancel?: AccidentReportData_Cancel;
36
+ info_in?: AccidentReportData_In;
37
+ info_repair?: AccidentReportData_Repair;
38
+ info_repair_finish?: AccidentReportData_Repair_Finish;
39
+ }
@@ -1,4 +1,6 @@
1
- import { RepairShopWorkingStatus } from "./type";
1
+ import { InsuranceCompany } from "../insurance";
2
+ import { MemberGender } from "../member";
3
+ import { AccidentReportState, RepairShopWorkingStatus } from "./type";
2
4
  /** 공업사 운영 시간 */
3
5
  export type RepairShopWorkingTime = {
4
6
  mon?: {
@@ -70,3 +72,96 @@ export type RepairShop = {
70
72
  /** 견인 가능 여부 */
71
73
  towing_available: boolean;
72
74
  };
75
+ export interface AccidentReportData_Cancel {
76
+ /** 취소 구분 */
77
+ type: string | null;
78
+ /** 취소 사유 */
79
+ reason: string | null;
80
+ /** 취소 일시 */
81
+ canceled_at: Date;
82
+ }
83
+ export interface AccidentReportData_In {
84
+ /** 입고일
85
+ * @note YYYYMMDD
86
+ */
87
+ in_date: string;
88
+ /** 사고 사진 URL */
89
+ pictures: string[];
90
+ /** 수리 시작 예정일
91
+ * @note YYYYMMDD
92
+ */
93
+ repair_expected_date: string | null;
94
+ /** 예상 수리비 */
95
+ repair_expected_cost: number | null;
96
+ /** 출고 예정일
97
+ * @note YYYYMMDD
98
+ */
99
+ out_expected_date: string | null;
100
+ }
101
+ export interface AccidentReportData_Repair {
102
+ /** 수리 사진 URL */
103
+ pictures: string[];
104
+ }
105
+ export interface AccidentReportData_Repair_Finish {
106
+ /** 수리 완료 사진 URL */
107
+ pictures: string[];
108
+ /** 수리 비용 */
109
+ price: {
110
+ repairCost: {
111
+ parts: number;
112
+ labor: number;
113
+ };
114
+ discountCost: {
115
+ insurance: number;
116
+ };
117
+ claimAmount: {
118
+ subtotal: number;
119
+ tax: number;
120
+ total: number;
121
+ };
122
+ };
123
+ }
124
+ export interface AccidentReport {
125
+ id: string;
126
+ state: AccidentReportState;
127
+ /** 배정 공업사 정보 */
128
+ repairShop: RepairShop;
129
+ /** 보험사 정보 */
130
+ insuranceCompany: InsuranceCompany;
131
+ /** 견인 필요 여부 */
132
+ option_traction: boolean;
133
+ /** 사고접수 신청자명 */
134
+ info_name: string;
135
+ /** 사고접수 신청자 연락처 */
136
+ info_phoneNumber: string;
137
+ /** 사고접수 신청자 생년월일 */
138
+ info_birth: string;
139
+ /** 사고접수 신청자 성별 */
140
+ info_gender: MemberGender;
141
+ /** 취소 정보 */
142
+ info_cancel?: AccidentReportData_Cancel;
143
+ /** 입고 정보 */
144
+ info_in?: AccidentReportData_In;
145
+ /** 수리 정보 */
146
+ info_repair?: AccidentReportData_Repair;
147
+ /** 수리 완료 정보 */
148
+ info_repair_finish?: AccidentReportData_Repair_Finish;
149
+ /** 리뷰 정보 */
150
+ review: AccidentReport_Review | null;
151
+ /** 생성 일시 */
152
+ created_at: Date;
153
+ /** 수정 일시 */
154
+ updated_at: Date;
155
+ /** 취소 일시 */
156
+ canceled_at: Date | null;
157
+ /** 수리 완료 일시 */
158
+ finished_at: Date | null;
159
+ }
160
+ export interface AccidentReport_Review {
161
+ /** 리뷰 점수 */
162
+ rating: number;
163
+ /** 리뷰 제목 */
164
+ title: string;
165
+ /** 리뷰 내용 */
166
+ content: string;
167
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carsayo/types",
3
- "version": "1.1.821",
3
+ "version": "1.1.822",
4
4
  "description": "Carsayo app type",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",