@carsayo/types 1.1.892079 → 1.1.892080
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.
- package/package.json +1 -1
- package/dist/data/bankcode.d.ts +0 -167
- package/dist/data/bankcode.js +0 -66
- package/dist/data/board.d.ts +0 -74
- package/dist/data/board.js +0 -56
- package/dist/data/car.d.ts +0 -822
- package/dist/data/car.js +0 -895
- package/dist/data/carOptionRelationCategory.d.ts +0 -20
- package/dist/data/carOptionRelationCategory.js +0 -28
- package/dist/data/carPopularCategory.d.ts +0 -20
- package/dist/data/carPopularCategory.js +0 -28
- package/dist/data/collaborator.d.ts +0 -9
- package/dist/data/collaborator.js +0 -18
- package/dist/data/index.d.ts +0 -11
- package/dist/data/index.js +0 -27
- package/dist/data/purchase.d.ts +0 -18
- package/dist/data/purchase.js +0 -25
- package/dist/data/region.d.ts +0 -1226
- package/dist/data/region.js +0 -267
- package/dist/data/role.d.ts +0 -121
- package/dist/data/role.js +0 -150
- package/dist/data/sell_car.d.ts +0 -57
- package/dist/data/sell_car.js +0 -71
- package/dist/data/system.d.ts +0 -19
- package/dist/data/system.js +0 -28
- package/dist/data/term.d.ts +0 -349
- package/dist/data/term.js +0 -395
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -18
- package/dist/types/index.d.ts +0 -2
- package/dist/types/index.js +0 -18
- package/dist/types/modules/accidentReport/dto.d.ts +0 -73
- package/dist/types/modules/accidentReport/dto.js +0 -2
- package/dist/types/modules/accidentReport/index.d.ts +0 -3
- package/dist/types/modules/accidentReport/index.js +0 -19
- package/dist/types/modules/accidentReport/interface.d.ts +0 -309
- package/dist/types/modules/accidentReport/interface.js +0 -2
- package/dist/types/modules/accidentReport/type.d.ts +0 -36
- package/dist/types/modules/accidentReport/type.js +0 -35
- package/dist/types/modules/board/dto.d.ts +0 -189
- package/dist/types/modules/board/dto.js +0 -3
- package/dist/types/modules/board/index.d.ts +0 -3
- package/dist/types/modules/board/index.js +0 -19
- package/dist/types/modules/board/interface.d.ts +0 -233
- package/dist/types/modules/board/interface.js +0 -2
- package/dist/types/modules/board/type.d.ts +0 -30
- package/dist/types/modules/board/type.js +0 -8
- package/dist/types/modules/car/dto.d.ts +0 -404
- package/dist/types/modules/car/dto.js +0 -15
- package/dist/types/modules/car/index.d.ts +0 -3
- package/dist/types/modules/car/index.js +0 -19
- package/dist/types/modules/car/interface.d.ts +0 -594
- package/dist/types/modules/car/interface.js +0 -2
- package/dist/types/modules/car/type.d.ts +0 -11
- package/dist/types/modules/car/type.js +0 -13
- package/dist/types/modules/chat/constants.d.ts +0 -2
- package/dist/types/modules/chat/constants.js +0 -5
- package/dist/types/modules/chat/dto.d.ts +0 -4
- package/dist/types/modules/chat/dto.js +0 -2
- package/dist/types/modules/chat/index.d.ts +0 -6
- package/dist/types/modules/chat/index.js +0 -22
- package/dist/types/modules/chat/type.d.ts +0 -117
- package/dist/types/modules/chat/type.js +0 -17
- package/dist/types/modules/chat/type.opponent.additionalInfo.d.ts +0 -7
- package/dist/types/modules/chat/type.opponent.additionalInfo.js +0 -2
- package/dist/types/modules/chat/type.room.additionalInfo.d.ts +0 -52
- package/dist/types/modules/chat/type.room.additionalInfo.js +0 -2
- package/dist/types/modules/chat/type.socket.d.ts +0 -46
- package/dist/types/modules/chat/type.socket.js +0 -2
- package/dist/types/modules/collaborator/dto.d.ts +0 -10
- package/dist/types/modules/collaborator/dto.js +0 -3
- package/dist/types/modules/collaborator/index.d.ts +0 -1
- package/dist/types/modules/collaborator/index.js +0 -17
- package/dist/types/modules/common/enum.d.ts +0 -65
- package/dist/types/modules/common/enum.js +0 -69
- package/dist/types/modules/common/index.d.ts +0 -3
- package/dist/types/modules/common/index.js +0 -19
- package/dist/types/modules/common/interface.d.ts +0 -40
- package/dist/types/modules/common/interface.js +0 -2
- package/dist/types/modules/common/type.d.ts +0 -14
- package/dist/types/modules/common/type.js +0 -13
- package/dist/types/modules/data/dto.d.ts +0 -4
- package/dist/types/modules/data/dto.js +0 -7
- package/dist/types/modules/data/index.d.ts +0 -2
- package/dist/types/modules/data/index.js +0 -18
- package/dist/types/modules/data/interface.d.ts +0 -6
- package/dist/types/modules/data/interface.js +0 -2
- package/dist/types/modules/file/dto.d.ts +0 -18
- package/dist/types/modules/file/dto.js +0 -3
- package/dist/types/modules/file/index.d.ts +0 -3
- package/dist/types/modules/file/index.js +0 -19
- package/dist/types/modules/file/interface.d.ts +0 -26
- package/dist/types/modules/file/interface.js +0 -2
- package/dist/types/modules/file/type.d.ts +0 -13
- package/dist/types/modules/file/type.js +0 -15
- package/dist/types/modules/history/dto.d.ts +0 -13
- package/dist/types/modules/history/dto.js +0 -3
- package/dist/types/modules/history/index.d.ts +0 -2
- package/dist/types/modules/history/index.js +0 -18
- package/dist/types/modules/history/interface.d.ts +0 -12
- package/dist/types/modules/history/interface.js +0 -2
- package/dist/types/modules/index.d.ts +0 -20
- package/dist/types/modules/index.js +0 -36
- package/dist/types/modules/inquiry/dto.d.ts +0 -79
- package/dist/types/modules/inquiry/dto.js +0 -2
- package/dist/types/modules/inquiry/index.d.ts +0 -3
- package/dist/types/modules/inquiry/index.js +0 -19
- package/dist/types/modules/inquiry/interface.d.ts +0 -37
- package/dist/types/modules/inquiry/interface.js +0 -2
- package/dist/types/modules/inquiry/type.d.ts +0 -14
- package/dist/types/modules/inquiry/type.js +0 -15
- package/dist/types/modules/insurance/dto.d.ts +0 -88
- package/dist/types/modules/insurance/dto.js +0 -3
- package/dist/types/modules/insurance/index.d.ts +0 -2
- package/dist/types/modules/insurance/index.js +0 -18
- package/dist/types/modules/insurance/interface.d.ts +0 -58
- package/dist/types/modules/insurance/interface.js +0 -2
- package/dist/types/modules/member/dto.d.ts +0 -677
- package/dist/types/modules/member/dto.js +0 -3
- package/dist/types/modules/member/index.d.ts +0 -3
- package/dist/types/modules/member/index.js +0 -19
- package/dist/types/modules/member/interface.d.ts +0 -696
- package/dist/types/modules/member/interface.js +0 -2
- package/dist/types/modules/member/type.d.ts +0 -92
- package/dist/types/modules/member/type.js +0 -86
- package/dist/types/modules/message/dto.d.ts +0 -15
- package/dist/types/modules/message/dto.js +0 -2
- package/dist/types/modules/message/index.d.ts +0 -3
- package/dist/types/modules/message/index.js +0 -19
- package/dist/types/modules/message/interface.d.ts +0 -20
- package/dist/types/modules/message/interface.js +0 -2
- package/dist/types/modules/message/type.d.ts +0 -22
- package/dist/types/modules/message/type.js +0 -22
- package/dist/types/modules/notification/dto.d.ts +0 -13
- package/dist/types/modules/notification/dto.js +0 -3
- package/dist/types/modules/notification/index.d.ts +0 -3
- package/dist/types/modules/notification/index.js +0 -19
- package/dist/types/modules/notification/interface.d.ts +0 -19
- package/dist/types/modules/notification/interface.js +0 -2
- package/dist/types/modules/notification/type.d.ts +0 -5
- package/dist/types/modules/notification/type.js +0 -7
- package/dist/types/modules/order/dto.d.ts +0 -446
- package/dist/types/modules/order/dto.js +0 -16
- package/dist/types/modules/order/index.d.ts +0 -3
- package/dist/types/modules/order/index.js +0 -19
- package/dist/types/modules/order/interface.d.ts +0 -913
- package/dist/types/modules/order/interface.js +0 -2
- package/dist/types/modules/order/type.d.ts +0 -160
- package/dist/types/modules/order/type.js +0 -147
- package/dist/types/modules/partners/dto.d.ts +0 -37
- package/dist/types/modules/partners/dto.js +0 -11
- package/dist/types/modules/partners/index.d.ts +0 -3
- package/dist/types/modules/partners/index.js +0 -19
- package/dist/types/modules/partners/interface.d.ts +0 -40
- package/dist/types/modules/partners/interface.js +0 -2
- package/dist/types/modules/partners/type.d.ts +0 -12
- package/dist/types/modules/partners/type.js +0 -13
- package/dist/types/modules/purchase/dto.d.ts +0 -9
- package/dist/types/modules/purchase/dto.js +0 -3
- package/dist/types/modules/purchase/index.d.ts +0 -2
- package/dist/types/modules/purchase/index.js +0 -18
- package/dist/types/modules/purchase/interface.d.ts +0 -22
- package/dist/types/modules/purchase/interface.js +0 -2
- package/dist/types/modules/purchase/type.d.ts +0 -11
- package/dist/types/modules/purchase/type.js +0 -13
- package/dist/types/modules/repair/constant.d.ts +0 -28
- package/dist/types/modules/repair/constant.js +0 -139
- package/dist/types/modules/repair/constants.d.ts +0 -23
- package/dist/types/modules/repair/constants.js +0 -52
- package/dist/types/modules/repair/dto.d.ts +0 -96
- package/dist/types/modules/repair/dto.js +0 -2
- package/dist/types/modules/repair/index.d.ts +0 -4
- package/dist/types/modules/repair/index.js +0 -20
- package/dist/types/modules/repair/interface.d.ts +0 -659
- package/dist/types/modules/repair/interface.js +0 -2
- package/dist/types/modules/repair/type.d.ts +0 -64
- package/dist/types/modules/repair/type.js +0 -71
- package/dist/types/modules/sellMyCar/constant.d.ts +0 -54
- package/dist/types/modules/sellMyCar/constant.js +0 -117
- package/dist/types/modules/sellMyCar/dto-admin.d.ts +0 -258
- package/dist/types/modules/sellMyCar/dto-admin.js +0 -2
- package/dist/types/modules/sellMyCar/dto.d.ts +0 -186
- package/dist/types/modules/sellMyCar/dto.js +0 -15
- package/dist/types/modules/sellMyCar/index.d.ts +0 -9
- package/dist/types/modules/sellMyCar/index.js +0 -25
- package/dist/types/modules/sellMyCar/interface-admin.d.ts +0 -85
- package/dist/types/modules/sellMyCar/interface-admin.js +0 -23
- package/dist/types/modules/sellMyCar/interface-faq.d.ts +0 -52
- package/dist/types/modules/sellMyCar/interface-faq.js +0 -22
- package/dist/types/modules/sellMyCar/interface-member.d.ts +0 -252
- package/dist/types/modules/sellMyCar/interface-member.js +0 -16
- package/dist/types/modules/sellMyCar/interface-notice.d.ts +0 -28
- package/dist/types/modules/sellMyCar/interface-notice.js +0 -2
- package/dist/types/modules/sellMyCar/interface.d.ts +0 -1075
- package/dist/types/modules/sellMyCar/interface.js +0 -7
- package/dist/types/modules/sellMyCar/type.d.ts +0 -203
- package/dist/types/modules/sellMyCar/type.js +0 -199
- package/dist/types/modules/system/dto.d.ts +0 -13
- package/dist/types/modules/system/dto.js +0 -3
- package/dist/types/modules/system/index.d.ts +0 -2
- package/dist/types/modules/system/index.js +0 -18
- package/dist/types/modules/system/interface.d.ts +0 -18
- package/dist/types/modules/system/interface.js +0 -2
- package/dist/types/modules/term/dto.d.ts +0 -171
- package/dist/types/modules/term/dto.js +0 -3
- package/dist/types/modules/term/index.d.ts +0 -3
- package/dist/types/modules/term/index.js +0 -19
- package/dist/types/modules/term/interface.d.ts +0 -52
- package/dist/types/modules/term/interface.js +0 -2
- package/dist/types/modules/term/type.d.ts +0 -11
- package/dist/types/modules/term/type.js +0 -13
- package/dist/types/providers/coocon-usedcar/constant.d.ts +0 -46
- package/dist/types/providers/coocon-usedcar/constant.js +0 -673
- package/dist/types/providers/coocon-usedcar/constants.d.ts +0 -46
- package/dist/types/providers/coocon-usedcar/constants.js +0 -673
- package/dist/types/providers/coocon-usedcar/dto.d.ts +0 -23
- package/dist/types/providers/coocon-usedcar/dto.js +0 -3
- package/dist/types/providers/coocon-usedcar/index.d.ts +0 -3
- package/dist/types/providers/coocon-usedcar/index.js +0 -19
- package/dist/types/providers/coocon-usedcar/interface.d.ts +0 -305
- package/dist/types/providers/coocon-usedcar/interface.js +0 -2
- package/dist/types/providers/firebase-message/dto.d.ts +0 -56
- package/dist/types/providers/firebase-message/dto.js +0 -3
- package/dist/types/providers/firebase-message/index.d.ts +0 -2
- package/dist/types/providers/firebase-message/index.js +0 -18
- package/dist/types/providers/firebase-message/interface.d.ts +0 -4
- package/dist/types/providers/firebase-message/interface.js +0 -2
- package/dist/types/providers/gabia-sms/dto.d.ts +0 -31
- package/dist/types/providers/gabia-sms/dto.js +0 -3
- package/dist/types/providers/gabia-sms/index.d.ts +0 -1
- package/dist/types/providers/gabia-sms/index.js +0 -17
- package/dist/types/providers/index.d.ts +0 -5
- package/dist/types/providers/index.js +0 -21
- package/dist/types/providers/niceapi/dto.d.ts +0 -15
- package/dist/types/providers/niceapi/dto.js +0 -3
- package/dist/types/providers/niceapi/index.d.ts +0 -2
- package/dist/types/providers/niceapi/index.js +0 -18
- package/dist/types/providers/niceapi/interface.d.ts +0 -25
- package/dist/types/providers/niceapi/interface.js +0 -2
- package/dist/types/providers/nicepayment/dto.d.ts +0 -60
- package/dist/types/providers/nicepayment/dto.js +0 -9
- package/dist/types/providers/nicepayment/index.d.ts +0 -3
- package/dist/types/providers/nicepayment/index.js +0 -19
- package/dist/types/providers/nicepayment/interface.d.ts +0 -168
- package/dist/types/providers/nicepayment/interface.js +0 -2
- package/dist/types/providers/nicepayment/type.d.ts +0 -36
- package/dist/types/providers/nicepayment/type.js +0 -37
|
@@ -1,309 +0,0 @@
|
|
|
1
|
-
import { FileInfo } from "../file";
|
|
2
|
-
import { InsuranceCompany } from "../insurance";
|
|
3
|
-
import { MemberGender } from "../member";
|
|
4
|
-
import { AccidentReportCommissionState, AccidentReportState, RepairShopStatus, RepairShopWorkingStatus } from "./type";
|
|
5
|
-
/** 공업사 운영 시간
|
|
6
|
-
* @note 휴무일 경우 null
|
|
7
|
-
* @note 시간은 HHdd형태 (1200, 1230, ...)
|
|
8
|
-
*/
|
|
9
|
-
export type RepairShopWorkingTime = {
|
|
10
|
-
mon: {
|
|
11
|
-
start: string;
|
|
12
|
-
end: string;
|
|
13
|
-
} | null;
|
|
14
|
-
tue: {
|
|
15
|
-
start: string;
|
|
16
|
-
end: string;
|
|
17
|
-
} | null;
|
|
18
|
-
wed: {
|
|
19
|
-
start: string;
|
|
20
|
-
end: string;
|
|
21
|
-
} | null;
|
|
22
|
-
thu: {
|
|
23
|
-
start: string;
|
|
24
|
-
end: string;
|
|
25
|
-
} | null;
|
|
26
|
-
fri: {
|
|
27
|
-
start: string;
|
|
28
|
-
end: string;
|
|
29
|
-
} | null;
|
|
30
|
-
sat: {
|
|
31
|
-
start: string;
|
|
32
|
-
end: string;
|
|
33
|
-
} | null;
|
|
34
|
-
sun: {
|
|
35
|
-
start: string;
|
|
36
|
-
end: string;
|
|
37
|
-
} | null;
|
|
38
|
-
/** 공휴일 */
|
|
39
|
-
holiday: {
|
|
40
|
-
start: string;
|
|
41
|
-
end: string;
|
|
42
|
-
} | null;
|
|
43
|
-
/** 휴게시간 */
|
|
44
|
-
break: {
|
|
45
|
-
start: string;
|
|
46
|
-
end: string;
|
|
47
|
-
} | null;
|
|
48
|
-
};
|
|
49
|
-
export type RepairShop = {
|
|
50
|
-
/** 정비소 Id
|
|
51
|
-
* @note uuid
|
|
52
|
-
*/
|
|
53
|
-
id: string;
|
|
54
|
-
/** 정비소 이름 */
|
|
55
|
-
name: string;
|
|
56
|
-
/** 담당자 MemberId
|
|
57
|
-
* @note 정비소 담당자 MemberId
|
|
58
|
-
*/
|
|
59
|
-
manager_member_id: string;
|
|
60
|
-
/** 정비소 한줄소개 */
|
|
61
|
-
one_line_introduction: string;
|
|
62
|
-
/** 정비소 설명 */
|
|
63
|
-
description: string;
|
|
64
|
-
/** 정비소 대표번호 (전화번호) */
|
|
65
|
-
contact_number: string;
|
|
66
|
-
/** 정비소 영업 상태 */
|
|
67
|
-
working_status: RepairShopWorkingStatus;
|
|
68
|
-
/** 정비소 이미지 URL */
|
|
69
|
-
picture: {
|
|
70
|
-
main?: string;
|
|
71
|
-
sub?: string[];
|
|
72
|
-
};
|
|
73
|
-
/** 공업사 주소 */
|
|
74
|
-
address: {
|
|
75
|
-
main: string;
|
|
76
|
-
detail: string;
|
|
77
|
-
};
|
|
78
|
-
/** 공업사 위치 */
|
|
79
|
-
location: {
|
|
80
|
-
latitude: number | null;
|
|
81
|
-
longitude: number | null;
|
|
82
|
-
};
|
|
83
|
-
/** 리뷰 정보 */
|
|
84
|
-
review: {
|
|
85
|
-
/** 평균 점수 */
|
|
86
|
-
rating: number;
|
|
87
|
-
/** 리뷰 개수 */
|
|
88
|
-
count: number;
|
|
89
|
-
};
|
|
90
|
-
/** 정비 항목
|
|
91
|
-
* @example [{id: 1, name: "사고 수리", isVisiting: true, isAllCategory2: true, category_2: [{id: 1, name: "사고 차량 전체 수리"}]}]
|
|
92
|
-
*/
|
|
93
|
-
service_item: {
|
|
94
|
-
id: number;
|
|
95
|
-
name: string;
|
|
96
|
-
isVisiting: boolean;
|
|
97
|
-
isAllCategory2: boolean;
|
|
98
|
-
category_2: {
|
|
99
|
-
id: number;
|
|
100
|
-
name: string;
|
|
101
|
-
}[];
|
|
102
|
-
}[];
|
|
103
|
-
/** 태그
|
|
104
|
-
* @example [{id: 1, title: "카사요 인증", color: {bg: "#000000", text: "#ffffff"}}]
|
|
105
|
-
*/
|
|
106
|
-
verified_tags: {
|
|
107
|
-
id: number;
|
|
108
|
-
title: string;
|
|
109
|
-
color: {
|
|
110
|
-
bg: string;
|
|
111
|
-
text: string;
|
|
112
|
-
};
|
|
113
|
-
}[];
|
|
114
|
-
/** 공업사 운영 시간
|
|
115
|
-
* @note 공업사 운영 시간이 없는 경우 null
|
|
116
|
-
*/
|
|
117
|
-
workingTime: RepairShopWorkingTime | null;
|
|
118
|
-
/** 견인 가능 여부 */
|
|
119
|
-
towing_available: boolean;
|
|
120
|
-
};
|
|
121
|
-
export interface AccidentReportData_Cancel {
|
|
122
|
-
/** 취소 구분 */
|
|
123
|
-
type: string | null;
|
|
124
|
-
/** 취소 사유 */
|
|
125
|
-
reason: string | null;
|
|
126
|
-
/** 취소 일시 */
|
|
127
|
-
canceled_at: Date;
|
|
128
|
-
}
|
|
129
|
-
export interface AccidentReportData_In {
|
|
130
|
-
/** 입고일
|
|
131
|
-
* @note YYYYMMDD
|
|
132
|
-
*/
|
|
133
|
-
in_date: string;
|
|
134
|
-
/** 사고 사진 URL */
|
|
135
|
-
pictures: string[];
|
|
136
|
-
/** 수리 시작 예정일
|
|
137
|
-
* @note YYYYMMDD
|
|
138
|
-
*/
|
|
139
|
-
repair_expected_date: string | null;
|
|
140
|
-
/** 예상 수리비 */
|
|
141
|
-
repair_expected_cost: number | null;
|
|
142
|
-
/** 출고 예정일
|
|
143
|
-
* @note YYYYMMDD
|
|
144
|
-
*/
|
|
145
|
-
out_expected_date: string | null;
|
|
146
|
-
}
|
|
147
|
-
export interface AccidentReportData_Repair {
|
|
148
|
-
/** 수리 사진 URL */
|
|
149
|
-
pictures: string[];
|
|
150
|
-
}
|
|
151
|
-
export interface AccidentReportData_Repair_Finish {
|
|
152
|
-
/** 수리 완료 사진 URL */
|
|
153
|
-
pictures: string[];
|
|
154
|
-
/** 수리 비용 */
|
|
155
|
-
price: {
|
|
156
|
-
repairCost: {
|
|
157
|
-
parts: number;
|
|
158
|
-
labor: number;
|
|
159
|
-
};
|
|
160
|
-
discountCost: {
|
|
161
|
-
insurance: number;
|
|
162
|
-
};
|
|
163
|
-
claimAmount: {
|
|
164
|
-
subtotal: number;
|
|
165
|
-
tax: number;
|
|
166
|
-
total: number;
|
|
167
|
-
};
|
|
168
|
-
};
|
|
169
|
-
}
|
|
170
|
-
export interface AccidentReport {
|
|
171
|
-
id: string;
|
|
172
|
-
/** 자동차 등록번호 */
|
|
173
|
-
carNumber: string;
|
|
174
|
-
state: AccidentReportState;
|
|
175
|
-
/** 사진 업로드 시 url 리스트 */
|
|
176
|
-
pictures_url: string[];
|
|
177
|
-
/** 배정 공업사 정보 */
|
|
178
|
-
repairShop: RepairShop | null;
|
|
179
|
-
/** 보험사 정보 */
|
|
180
|
-
insuranceCompany: InsuranceCompany;
|
|
181
|
-
/** 견인 필요 여부 */
|
|
182
|
-
option_traction: boolean;
|
|
183
|
-
/** 사고 위치 */
|
|
184
|
-
info_location: {
|
|
185
|
-
address: string;
|
|
186
|
-
latitude: number;
|
|
187
|
-
longitude: number;
|
|
188
|
-
};
|
|
189
|
-
/** 사고접수 신청자명 */
|
|
190
|
-
info_name: string;
|
|
191
|
-
/** 사고접수 신청자 연락처 */
|
|
192
|
-
info_phoneNumber: string;
|
|
193
|
-
/** 사고접수 신청자 생년월일 */
|
|
194
|
-
info_birth: string;
|
|
195
|
-
/** 사고접수 신청자 성별 */
|
|
196
|
-
info_gender: MemberGender;
|
|
197
|
-
/** 취소 정보 */
|
|
198
|
-
info_cancel?: AccidentReportData_Cancel;
|
|
199
|
-
/** 입고 정보 */
|
|
200
|
-
info_in?: AccidentReportData_In;
|
|
201
|
-
/** 수리 정보 */
|
|
202
|
-
info_repair?: AccidentReportData_Repair;
|
|
203
|
-
/** 수리 완료 정보 */
|
|
204
|
-
info_repair_finish?: AccidentReportData_Repair_Finish;
|
|
205
|
-
/** 리뷰 정보 */
|
|
206
|
-
review: AccidentReport_Review | null;
|
|
207
|
-
/** 파트너스 납부 수수료
|
|
208
|
-
* @note 주문 종료 시점에 공업사가 납부하여야 하는 계산된 금액
|
|
209
|
-
*/
|
|
210
|
-
commissionAmount: number | null;
|
|
211
|
-
/** 생성 일시 */
|
|
212
|
-
created_at: Date;
|
|
213
|
-
/** 수정 일시 */
|
|
214
|
-
updated_at: Date;
|
|
215
|
-
/** 접수 일시 */
|
|
216
|
-
accepted_at: Date | null;
|
|
217
|
-
/** 취소 일시 */
|
|
218
|
-
canceled_at: Date | null;
|
|
219
|
-
/** 수리 완료 일시 */
|
|
220
|
-
finished_at: Date | null;
|
|
221
|
-
}
|
|
222
|
-
export interface AccidentReport_Review {
|
|
223
|
-
/** 리뷰 점수 */
|
|
224
|
-
rating: number;
|
|
225
|
-
/** 리뷰 내용 */
|
|
226
|
-
content: string;
|
|
227
|
-
/** 리뷰 작성 일시 */
|
|
228
|
-
created_at: Date;
|
|
229
|
-
file_1?: FileInfo;
|
|
230
|
-
file_2?: FileInfo;
|
|
231
|
-
file_3?: FileInfo;
|
|
232
|
-
file_4?: FileInfo;
|
|
233
|
-
file_5?: FileInfo;
|
|
234
|
-
}
|
|
235
|
-
export type AccidentReport_Commission = {
|
|
236
|
-
/** 접수할때 계산한 공임비 */
|
|
237
|
-
labor_cost: number;
|
|
238
|
-
/** 적용된 수수료 비율 */
|
|
239
|
-
rate: number;
|
|
240
|
-
/** 납부할 금액 */
|
|
241
|
-
amount: number;
|
|
242
|
-
/** 정산 상태 */
|
|
243
|
-
state: AccidentReportCommissionState;
|
|
244
|
-
/** 생성 일시 */
|
|
245
|
-
created_at: Date;
|
|
246
|
-
/** 정산 일시 */
|
|
247
|
-
paid_at: Date | null;
|
|
248
|
-
/** 정산 취소 일시 */
|
|
249
|
-
canceled_at: Date | null;
|
|
250
|
-
};
|
|
251
|
-
export type Admin_AccidentReport = Omit<AccidentReport, "repairShop"> & {
|
|
252
|
-
/** 배정 공업사 정보 */
|
|
253
|
-
repairShop: Admin_RepairShop | null;
|
|
254
|
-
/** 정산 정보 */
|
|
255
|
-
commission: AccidentReport_Commission | null;
|
|
256
|
-
};
|
|
257
|
-
/** 관리자가 조회하는 정비소 정보 */
|
|
258
|
-
export type Admin_RepairShop = RepairShop & {
|
|
259
|
-
/** 승인 상태 */
|
|
260
|
-
status: RepairShopStatus;
|
|
261
|
-
/** 사업자등록번호 */
|
|
262
|
-
business_registration_number: string;
|
|
263
|
-
/** 이메일 주소(세금계산서 발행용) */
|
|
264
|
-
business_email: string;
|
|
265
|
-
/** 정비소 은행 계좌 */
|
|
266
|
-
bank_account: {
|
|
267
|
-
bank: string;
|
|
268
|
-
account: string;
|
|
269
|
-
account_holder: string;
|
|
270
|
-
};
|
|
271
|
-
/** 수수료 비율 */
|
|
272
|
-
commission_rate: number;
|
|
273
|
-
/** 관리자 작성 메모 */
|
|
274
|
-
admin_memo: string;
|
|
275
|
-
/** 정비소 소유주 정보 */
|
|
276
|
-
owner: {
|
|
277
|
-
name: string;
|
|
278
|
-
contact_number: string;
|
|
279
|
-
};
|
|
280
|
-
/** 정비소 관리자 정보 */
|
|
281
|
-
manager: {
|
|
282
|
-
name: string;
|
|
283
|
-
contact_number: string;
|
|
284
|
-
};
|
|
285
|
-
/** 업종
|
|
286
|
-
* @note 입점신청시 선택한 항목입니다.
|
|
287
|
-
*/
|
|
288
|
-
business_category: string;
|
|
289
|
-
/** 정비소 주요 서비스
|
|
290
|
-
* @note 입점신청시 선택한 항목입니다.
|
|
291
|
-
*/
|
|
292
|
-
business_mainServices: string[];
|
|
293
|
-
/** 사업자등록증 */
|
|
294
|
-
businessCertificate: FileInfo | null;
|
|
295
|
-
/** 자동차관리사업등록증 */
|
|
296
|
-
carManageCertificate: FileInfo | null;
|
|
297
|
-
/** 사업자명의통장사본 */
|
|
298
|
-
businessBankAccount: FileInfo | null;
|
|
299
|
-
created_at: Date;
|
|
300
|
-
};
|
|
301
|
-
export type RepairShop_ServiceItem = {
|
|
302
|
-
id: number;
|
|
303
|
-
name: string;
|
|
304
|
-
isVisiting: boolean;
|
|
305
|
-
category_2: {
|
|
306
|
-
id: number;
|
|
307
|
-
name: string;
|
|
308
|
-
}[];
|
|
309
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
export declare const RepairShopWorkingStatus: {
|
|
2
|
-
readonly open: "open";
|
|
3
|
-
readonly closed: "closed";
|
|
4
|
-
};
|
|
5
|
-
export type RepairShopWorkingStatus = keyof typeof RepairShopWorkingStatus;
|
|
6
|
-
export declare const AccidentReportState: {
|
|
7
|
-
/** 접수 */
|
|
8
|
-
submitted: string;
|
|
9
|
-
/** 접수 완료 */
|
|
10
|
-
accepted: string;
|
|
11
|
-
/** 취소 */
|
|
12
|
-
canceled: string;
|
|
13
|
-
/** 완료 */
|
|
14
|
-
finished: string;
|
|
15
|
-
};
|
|
16
|
-
export type AccidentReportState = keyof typeof AccidentReportState;
|
|
17
|
-
export declare const AccidentReportCommissionState: {
|
|
18
|
-
/** 대기 */
|
|
19
|
-
pending: string;
|
|
20
|
-
/** 정산 완료 */
|
|
21
|
-
paid: string;
|
|
22
|
-
/** 정산 취소 */
|
|
23
|
-
canceled: string;
|
|
24
|
-
};
|
|
25
|
-
export type AccidentReportCommissionState = keyof typeof AccidentReportCommissionState;
|
|
26
|
-
export declare const RepairShopStatus: {
|
|
27
|
-
/** 입점 신청 */
|
|
28
|
-
submitted: string;
|
|
29
|
-
/** 입점 승인 */
|
|
30
|
-
accepted: string;
|
|
31
|
-
/** 입점 거절 */
|
|
32
|
-
rejected: string;
|
|
33
|
-
/** 정지 */
|
|
34
|
-
suspended: string;
|
|
35
|
-
};
|
|
36
|
-
export type RepairShopStatus = keyof typeof RepairShopStatus;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RepairShopStatus = exports.AccidentReportCommissionState = exports.AccidentReportState = exports.RepairShopWorkingStatus = void 0;
|
|
4
|
-
exports.RepairShopWorkingStatus = {
|
|
5
|
-
open: "open",
|
|
6
|
-
closed: "closed",
|
|
7
|
-
};
|
|
8
|
-
exports.AccidentReportState = {
|
|
9
|
-
/** 접수 */
|
|
10
|
-
submitted: "submitted",
|
|
11
|
-
/** 접수 완료 */
|
|
12
|
-
accepted: "accepted",
|
|
13
|
-
/** 취소 */
|
|
14
|
-
canceled: "canceled",
|
|
15
|
-
/** 완료 */
|
|
16
|
-
finished: "finished",
|
|
17
|
-
};
|
|
18
|
-
exports.AccidentReportCommissionState = {
|
|
19
|
-
/** 대기 */
|
|
20
|
-
pending: "정산 대기",
|
|
21
|
-
/** 정산 완료 */
|
|
22
|
-
paid: "정산 완료",
|
|
23
|
-
/** 정산 취소 */
|
|
24
|
-
canceled: "정산 취소",
|
|
25
|
-
};
|
|
26
|
-
exports.RepairShopStatus = {
|
|
27
|
-
/** 입점 신청 */
|
|
28
|
-
submitted: "입점 신청",
|
|
29
|
-
/** 입점 승인 */
|
|
30
|
-
accepted: "입점 승인",
|
|
31
|
-
/** 입점 거절 */
|
|
32
|
-
rejected: "입점 거절",
|
|
33
|
-
/** 정지 */
|
|
34
|
-
suspended: "정지",
|
|
35
|
-
};
|
|
@@ -1,189 +0,0 @@
|
|
|
1
|
-
/** DTO는 서버단에 요청을 보낼 때 사용하는 클래스 유형으로 서버단에서 이 곳에 정의된 대로 유효성 검사를 처리합니다. */
|
|
2
|
-
import { Post_LikeHateState } from "./type";
|
|
3
|
-
import { BoardKey } from "../../../data";
|
|
4
|
-
/** 게시판 상세정보 가져오기 */
|
|
5
|
-
export interface GetBoardInfoDTO {
|
|
6
|
-
boardKey: BoardKey;
|
|
7
|
-
}
|
|
8
|
-
/** 글 작성 */
|
|
9
|
-
export interface CreatePostDTO {
|
|
10
|
-
/** 글이 작성될 게시판 */
|
|
11
|
-
boardKey: BoardKey;
|
|
12
|
-
title: string;
|
|
13
|
-
content: string;
|
|
14
|
-
content_html: string;
|
|
15
|
-
/** 글이 작성될 카테고리 */
|
|
16
|
-
categoryId: number;
|
|
17
|
-
/** 공개글 여부 */
|
|
18
|
-
isPublic: boolean;
|
|
19
|
-
/** 상단 고정글 여부
|
|
20
|
-
* @notice 이 옵션은 "Admin" 권한인 회원만 사용 가능합니다
|
|
21
|
-
*/
|
|
22
|
-
isImportant?: boolean;
|
|
23
|
-
/** 이 값이 True일 경우 guest_name, guest_password가 정의되어야 합니다 */
|
|
24
|
-
isGuestPost: boolean;
|
|
25
|
-
guest_name?: string;
|
|
26
|
-
guest_password?: string;
|
|
27
|
-
}
|
|
28
|
-
/** 글 수정 */
|
|
29
|
-
export interface UpdatePostDTO {
|
|
30
|
-
boardKey: BoardKey;
|
|
31
|
-
postId: number;
|
|
32
|
-
title?: string;
|
|
33
|
-
content?: string;
|
|
34
|
-
content_html?: string;
|
|
35
|
-
categoryId?: number;
|
|
36
|
-
isPublic?: boolean;
|
|
37
|
-
/** 상단 고정글 여부
|
|
38
|
-
* @notice 이 옵션은 "Admin" 권한인 회원만 사용 가능합니다
|
|
39
|
-
*/
|
|
40
|
-
isImportant?: boolean;
|
|
41
|
-
guest_name?: string;
|
|
42
|
-
/**
|
|
43
|
-
* 비회원 글 수정 시 입력했던 비밀번호와 같은지 확인합니다
|
|
44
|
-
* @notice 비밀번호를 수정할 수는 없습니다
|
|
45
|
-
*/
|
|
46
|
-
guest_password?: string;
|
|
47
|
-
}
|
|
48
|
-
/** 글 제거 */
|
|
49
|
-
export interface DeletePostDTO {
|
|
50
|
-
boardKey: BoardKey;
|
|
51
|
-
postId: number;
|
|
52
|
-
/** 비회원 작성 글일 경우 삭제시 해당 글 비밀번호를 입력하여야 합니다 */
|
|
53
|
-
guest_password?: string;
|
|
54
|
-
}
|
|
55
|
-
export interface GetPostDTO {
|
|
56
|
-
boardKey: BoardKey;
|
|
57
|
-
postId: number;
|
|
58
|
-
/** 비회원 작성 글이며 비공개 글일 경우 해당 글의 비밀번호를 필요로 합니다 */
|
|
59
|
-
guest_password?: string;
|
|
60
|
-
}
|
|
61
|
-
/** 글 신고하기 */
|
|
62
|
-
export interface ReportPostDTO {
|
|
63
|
-
boardKey: BoardKey;
|
|
64
|
-
postId: number;
|
|
65
|
-
content: string;
|
|
66
|
-
}
|
|
67
|
-
/** 글 좋아요,싫어요 업데이트 */
|
|
68
|
-
export interface LikeHatePostDTO {
|
|
69
|
-
boardKey: BoardKey;
|
|
70
|
-
postId: number;
|
|
71
|
-
state: Post_LikeHateState;
|
|
72
|
-
}
|
|
73
|
-
/** 글 밴 먹이기
|
|
74
|
-
* @notice 어드민만 가능합니다
|
|
75
|
-
*/
|
|
76
|
-
export interface UpdatePostBanStatusDTO {
|
|
77
|
-
boardKey: BoardKey;
|
|
78
|
-
postId: number;
|
|
79
|
-
isBanned: boolean;
|
|
80
|
-
}
|
|
81
|
-
/** 댓글 작성 */
|
|
82
|
-
export interface CreateCommentDTO {
|
|
83
|
-
boardKey: BoardKey;
|
|
84
|
-
postId: number;
|
|
85
|
-
content: string;
|
|
86
|
-
/** 이 값이 True일 경우 guest_name, guest_password가 정의되어야 합니다 */
|
|
87
|
-
isGuestComment: boolean;
|
|
88
|
-
guest_name?: string;
|
|
89
|
-
guest_password?: string;
|
|
90
|
-
}
|
|
91
|
-
/** 대댓글 작성 */
|
|
92
|
-
export interface CreateCommentReplyDTO {
|
|
93
|
-
boardKey: BoardKey;
|
|
94
|
-
commentId: number;
|
|
95
|
-
content: string;
|
|
96
|
-
/** 이 값이 True일 경우 guest_name, guest_password가 정의되어야 합니다 */
|
|
97
|
-
isGuestComment: boolean;
|
|
98
|
-
guest_name?: string;
|
|
99
|
-
guest_password?: string;
|
|
100
|
-
}
|
|
101
|
-
/** 댓글 수정 */
|
|
102
|
-
export interface UpdateCommentDTO {
|
|
103
|
-
boardKey: BoardKey;
|
|
104
|
-
commentId: number;
|
|
105
|
-
content: string;
|
|
106
|
-
guest_name?: string;
|
|
107
|
-
/** 비회원 작성 댓글일 경우 수정시 해당 글 비밀번호를 입력하여야 합니다 */
|
|
108
|
-
guest_password?: string;
|
|
109
|
-
}
|
|
110
|
-
/** 대댓글 수정 */
|
|
111
|
-
export interface UpdateCommentReplyDTO {
|
|
112
|
-
boardKey: BoardKey;
|
|
113
|
-
replyId: number;
|
|
114
|
-
content: string;
|
|
115
|
-
guest_name?: string;
|
|
116
|
-
/** 비회원 작성 대댓글일 경우 수정시 해당 글 비밀번호를 입력하여야 합니다 */
|
|
117
|
-
guest_password?: string;
|
|
118
|
-
}
|
|
119
|
-
/** 댓글 삭제 */
|
|
120
|
-
export interface DeleteCommentDTO {
|
|
121
|
-
boardKey: BoardKey;
|
|
122
|
-
commentId: number;
|
|
123
|
-
/** 비회원 작성 댓글일 경우 삭제시 해당 글 비밀번호를 입력하여야 합니다 */
|
|
124
|
-
guest_password?: string;
|
|
125
|
-
}
|
|
126
|
-
/** 대댓글 삭제 */
|
|
127
|
-
export interface DeleteCommentReplyDTO {
|
|
128
|
-
boardKey: BoardKey;
|
|
129
|
-
replyId: number;
|
|
130
|
-
/** 비회원 작성 대댓글일 경우 삭제시 해당 글 비밀번호를 입력하여야 합니다 */
|
|
131
|
-
guest_password?: string;
|
|
132
|
-
}
|
|
133
|
-
/** 댓글 밴 먹이기 */
|
|
134
|
-
export interface UpdateCommentBanStatusDTO {
|
|
135
|
-
boardKey: BoardKey;
|
|
136
|
-
commentId: number;
|
|
137
|
-
isBanned: boolean;
|
|
138
|
-
}
|
|
139
|
-
/** 대댓글 밴 먹이기 */
|
|
140
|
-
export interface UpdateCommentReplyBanStatusDTO {
|
|
141
|
-
boardKey: BoardKey;
|
|
142
|
-
replyId: number;
|
|
143
|
-
isBanned: boolean;
|
|
144
|
-
}
|
|
145
|
-
/** 댓글, 대댓글 신고하기 */
|
|
146
|
-
export interface ReportCommentAndCommentReplyDTO {
|
|
147
|
-
boardKey: BoardKey;
|
|
148
|
-
commentId?: number;
|
|
149
|
-
replyId?: number;
|
|
150
|
-
content: string;
|
|
151
|
-
}
|
|
152
|
-
export interface SecrchPostOptionDTO {
|
|
153
|
-
/**
|
|
154
|
-
* isPublic이 false인 비공개 글도 검색해 리스트에 넣는지 여부
|
|
155
|
-
*/
|
|
156
|
-
showPrivate?: boolean;
|
|
157
|
-
/**
|
|
158
|
-
* isBanned이 true인 밴된 글도 검색해 리스트에 넣는지 여부
|
|
159
|
-
*/
|
|
160
|
-
showBanned?: boolean;
|
|
161
|
-
}
|
|
162
|
-
export interface SecrchPostDTO {
|
|
163
|
-
nickname?: string;
|
|
164
|
-
title?: string;
|
|
165
|
-
content?: string;
|
|
166
|
-
}
|
|
167
|
-
/**
|
|
168
|
-
* @description 글 리스트 검색
|
|
169
|
-
* @description Offset Paging 방식의 검색
|
|
170
|
-
*/
|
|
171
|
-
export interface GetPostListDTO {
|
|
172
|
-
boardKey: BoardKey;
|
|
173
|
-
skip?: number;
|
|
174
|
-
take: number;
|
|
175
|
-
categoryId?: number;
|
|
176
|
-
option: SecrchPostOptionDTO | null;
|
|
177
|
-
search: SecrchPostDTO | null;
|
|
178
|
-
}
|
|
179
|
-
/** 글 조회수 증가 */
|
|
180
|
-
export interface AddBoardClickCount {
|
|
181
|
-
boardKey: BoardKey;
|
|
182
|
-
postId: number;
|
|
183
|
-
}
|
|
184
|
-
/** 고정 글 설정 */
|
|
185
|
-
export interface SetImportantPostDTO {
|
|
186
|
-
boardKey: BoardKey;
|
|
187
|
-
postId: number;
|
|
188
|
-
isImportant: boolean;
|
|
189
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
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("./dto"), exports);
|
|
18
|
-
__exportStar(require("./interface"), exports);
|
|
19
|
-
__exportStar(require("./type"), exports);
|