@carsayo/types 1.1.892080 → 1.1.892082

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 (227) hide show
  1. package/dist/data/bankcode.d.ts +167 -0
  2. package/dist/data/bankcode.js +66 -0
  3. package/dist/data/board.d.ts +74 -0
  4. package/dist/data/board.js +56 -0
  5. package/dist/data/car.d.ts +822 -0
  6. package/dist/data/car.js +895 -0
  7. package/dist/data/carOptionRelationCategory.d.ts +20 -0
  8. package/dist/data/carOptionRelationCategory.js +28 -0
  9. package/dist/data/carPopularCategory.d.ts +20 -0
  10. package/dist/data/carPopularCategory.js +28 -0
  11. package/dist/data/collaborator.d.ts +9 -0
  12. package/dist/data/collaborator.js +18 -0
  13. package/dist/data/index.d.ts +11 -0
  14. package/dist/data/index.js +27 -0
  15. package/dist/data/purchase.d.ts +18 -0
  16. package/dist/data/purchase.js +25 -0
  17. package/dist/data/region.d.ts +1226 -0
  18. package/dist/data/region.js +267 -0
  19. package/dist/data/role.d.ts +121 -0
  20. package/dist/data/role.js +150 -0
  21. package/dist/data/sell_car.d.ts +57 -0
  22. package/dist/data/sell_car.js +71 -0
  23. package/dist/data/system.d.ts +19 -0
  24. package/dist/data/system.js +28 -0
  25. package/dist/data/term.d.ts +349 -0
  26. package/dist/data/term.js +395 -0
  27. package/dist/index.d.ts +2 -0
  28. package/dist/index.js +18 -0
  29. package/dist/types/index.d.ts +2 -0
  30. package/dist/types/index.js +18 -0
  31. package/dist/types/modules/accidentReport/dto.d.ts +73 -0
  32. package/dist/types/modules/accidentReport/dto.js +2 -0
  33. package/dist/types/modules/accidentReport/index.d.ts +3 -0
  34. package/dist/types/modules/accidentReport/index.js +19 -0
  35. package/dist/types/modules/accidentReport/interface.d.ts +309 -0
  36. package/dist/types/modules/accidentReport/interface.js +2 -0
  37. package/dist/types/modules/accidentReport/type.d.ts +36 -0
  38. package/dist/types/modules/accidentReport/type.js +35 -0
  39. package/dist/types/modules/board/dto.d.ts +189 -0
  40. package/dist/types/modules/board/dto.js +3 -0
  41. package/dist/types/modules/board/index.d.ts +3 -0
  42. package/dist/types/modules/board/index.js +19 -0
  43. package/dist/types/modules/board/interface.d.ts +233 -0
  44. package/dist/types/modules/board/interface.js +2 -0
  45. package/dist/types/modules/board/type.d.ts +30 -0
  46. package/dist/types/modules/board/type.js +8 -0
  47. package/dist/types/modules/car/dto.d.ts +404 -0
  48. package/dist/types/modules/car/dto.js +15 -0
  49. package/dist/types/modules/car/index.d.ts +3 -0
  50. package/dist/types/modules/car/index.js +19 -0
  51. package/dist/types/modules/car/interface.d.ts +594 -0
  52. package/dist/types/modules/car/interface.js +2 -0
  53. package/dist/types/modules/car/type.d.ts +11 -0
  54. package/dist/types/modules/car/type.js +13 -0
  55. package/dist/types/modules/chat/constants.d.ts +2 -0
  56. package/dist/types/modules/chat/constants.js +5 -0
  57. package/dist/types/modules/chat/dto.d.ts +4 -0
  58. package/dist/types/modules/chat/dto.js +2 -0
  59. package/dist/types/modules/chat/index.d.ts +6 -0
  60. package/dist/types/modules/chat/index.js +22 -0
  61. package/dist/types/modules/chat/type.d.ts +117 -0
  62. package/dist/types/modules/chat/type.js +17 -0
  63. package/dist/types/modules/chat/type.opponent.additionalInfo.d.ts +7 -0
  64. package/dist/types/modules/chat/type.opponent.additionalInfo.js +2 -0
  65. package/dist/types/modules/chat/type.room.additionalInfo.d.ts +52 -0
  66. package/dist/types/modules/chat/type.room.additionalInfo.js +2 -0
  67. package/dist/types/modules/chat/type.socket.d.ts +46 -0
  68. package/dist/types/modules/chat/type.socket.js +2 -0
  69. package/dist/types/modules/collaborator/dto.d.ts +10 -0
  70. package/dist/types/modules/collaborator/dto.js +3 -0
  71. package/dist/types/modules/collaborator/index.d.ts +1 -0
  72. package/dist/types/modules/collaborator/index.js +17 -0
  73. package/dist/types/modules/common/enum.d.ts +65 -0
  74. package/dist/types/modules/common/enum.js +69 -0
  75. package/dist/types/modules/common/index.d.ts +3 -0
  76. package/dist/types/modules/common/index.js +19 -0
  77. package/dist/types/modules/common/interface.d.ts +40 -0
  78. package/dist/types/modules/common/interface.js +2 -0
  79. package/dist/types/modules/common/type.d.ts +14 -0
  80. package/dist/types/modules/common/type.js +13 -0
  81. package/dist/types/modules/data/dto.d.ts +4 -0
  82. package/dist/types/modules/data/dto.js +7 -0
  83. package/dist/types/modules/data/index.d.ts +2 -0
  84. package/dist/types/modules/data/index.js +18 -0
  85. package/dist/types/modules/data/interface.d.ts +6 -0
  86. package/dist/types/modules/data/interface.js +2 -0
  87. package/dist/types/modules/file/dto.d.ts +18 -0
  88. package/dist/types/modules/file/dto.js +3 -0
  89. package/dist/types/modules/file/index.d.ts +3 -0
  90. package/dist/types/modules/file/index.js +19 -0
  91. package/dist/types/modules/file/interface.d.ts +26 -0
  92. package/dist/types/modules/file/interface.js +2 -0
  93. package/dist/types/modules/file/type.d.ts +13 -0
  94. package/dist/types/modules/file/type.js +15 -0
  95. package/dist/types/modules/history/dto.d.ts +13 -0
  96. package/dist/types/modules/history/dto.js +3 -0
  97. package/dist/types/modules/history/index.d.ts +2 -0
  98. package/dist/types/modules/history/index.js +18 -0
  99. package/dist/types/modules/history/interface.d.ts +12 -0
  100. package/dist/types/modules/history/interface.js +2 -0
  101. package/dist/types/modules/index.d.ts +20 -0
  102. package/dist/types/modules/index.js +36 -0
  103. package/dist/types/modules/inquiry/dto.d.ts +79 -0
  104. package/dist/types/modules/inquiry/dto.js +2 -0
  105. package/dist/types/modules/inquiry/index.d.ts +3 -0
  106. package/dist/types/modules/inquiry/index.js +19 -0
  107. package/dist/types/modules/inquiry/interface.d.ts +37 -0
  108. package/dist/types/modules/inquiry/interface.js +2 -0
  109. package/dist/types/modules/inquiry/type.d.ts +14 -0
  110. package/dist/types/modules/inquiry/type.js +15 -0
  111. package/dist/types/modules/insurance/dto.d.ts +88 -0
  112. package/dist/types/modules/insurance/dto.js +3 -0
  113. package/dist/types/modules/insurance/index.d.ts +2 -0
  114. package/dist/types/modules/insurance/index.js +18 -0
  115. package/dist/types/modules/insurance/interface.d.ts +58 -0
  116. package/dist/types/modules/insurance/interface.js +2 -0
  117. package/dist/types/modules/member/dto.d.ts +677 -0
  118. package/dist/types/modules/member/dto.js +3 -0
  119. package/dist/types/modules/member/index.d.ts +3 -0
  120. package/dist/types/modules/member/index.js +19 -0
  121. package/dist/types/modules/member/interface.d.ts +696 -0
  122. package/dist/types/modules/member/interface.js +2 -0
  123. package/dist/types/modules/member/type.d.ts +92 -0
  124. package/dist/types/modules/member/type.js +86 -0
  125. package/dist/types/modules/message/dto.d.ts +15 -0
  126. package/dist/types/modules/message/dto.js +2 -0
  127. package/dist/types/modules/message/index.d.ts +3 -0
  128. package/dist/types/modules/message/index.js +19 -0
  129. package/dist/types/modules/message/interface.d.ts +20 -0
  130. package/dist/types/modules/message/interface.js +2 -0
  131. package/dist/types/modules/message/type.d.ts +22 -0
  132. package/dist/types/modules/message/type.js +22 -0
  133. package/dist/types/modules/notification/dto.d.ts +13 -0
  134. package/dist/types/modules/notification/dto.js +3 -0
  135. package/dist/types/modules/notification/index.d.ts +3 -0
  136. package/dist/types/modules/notification/index.js +19 -0
  137. package/dist/types/modules/notification/interface.d.ts +19 -0
  138. package/dist/types/modules/notification/interface.js +2 -0
  139. package/dist/types/modules/notification/type.d.ts +5 -0
  140. package/dist/types/modules/notification/type.js +7 -0
  141. package/dist/types/modules/order/dto.d.ts +446 -0
  142. package/dist/types/modules/order/dto.js +16 -0
  143. package/dist/types/modules/order/index.d.ts +3 -0
  144. package/dist/types/modules/order/index.js +19 -0
  145. package/dist/types/modules/order/interface.d.ts +913 -0
  146. package/dist/types/modules/order/interface.js +2 -0
  147. package/dist/types/modules/order/type.d.ts +160 -0
  148. package/dist/types/modules/order/type.js +147 -0
  149. package/dist/types/modules/partners/dto.d.ts +37 -0
  150. package/dist/types/modules/partners/dto.js +11 -0
  151. package/dist/types/modules/partners/index.d.ts +3 -0
  152. package/dist/types/modules/partners/index.js +19 -0
  153. package/dist/types/modules/partners/interface.d.ts +40 -0
  154. package/dist/types/modules/partners/interface.js +2 -0
  155. package/dist/types/modules/partners/type.d.ts +12 -0
  156. package/dist/types/modules/partners/type.js +13 -0
  157. package/dist/types/modules/repair/constant.d.ts +28 -0
  158. package/dist/types/modules/repair/constant.js +139 -0
  159. package/dist/types/modules/repair/dto.d.ts +96 -0
  160. package/dist/types/modules/repair/dto.js +2 -0
  161. package/dist/types/modules/repair/index.d.ts +4 -0
  162. package/dist/types/modules/repair/index.js +20 -0
  163. package/dist/types/modules/repair/interface.d.ts +659 -0
  164. package/dist/types/modules/repair/interface.js +2 -0
  165. package/dist/types/modules/repair/type.d.ts +64 -0
  166. package/dist/types/modules/repair/type.js +71 -0
  167. package/dist/types/modules/sellMyCar/constant.d.ts +54 -0
  168. package/dist/types/modules/sellMyCar/constant.js +117 -0
  169. package/dist/types/modules/sellMyCar/dto-admin.d.ts +259 -0
  170. package/dist/types/modules/sellMyCar/dto-admin.js +2 -0
  171. package/dist/types/modules/sellMyCar/dto.d.ts +186 -0
  172. package/dist/types/modules/sellMyCar/dto.js +15 -0
  173. package/dist/types/modules/sellMyCar/index.d.ts +9 -0
  174. package/dist/types/modules/sellMyCar/index.js +25 -0
  175. package/dist/types/modules/sellMyCar/interface-admin.d.ts +85 -0
  176. package/dist/types/modules/sellMyCar/interface-admin.js +23 -0
  177. package/dist/types/modules/sellMyCar/interface-faq.d.ts +52 -0
  178. package/dist/types/modules/sellMyCar/interface-faq.js +22 -0
  179. package/dist/types/modules/sellMyCar/interface-member.d.ts +252 -0
  180. package/dist/types/modules/sellMyCar/interface-member.js +16 -0
  181. package/dist/types/modules/sellMyCar/interface-notice.d.ts +28 -0
  182. package/dist/types/modules/sellMyCar/interface-notice.js +2 -0
  183. package/dist/types/modules/sellMyCar/interface.d.ts +1075 -0
  184. package/dist/types/modules/sellMyCar/interface.js +7 -0
  185. package/dist/types/modules/sellMyCar/type.d.ts +203 -0
  186. package/dist/types/modules/sellMyCar/type.js +199 -0
  187. package/dist/types/modules/system/dto.d.ts +13 -0
  188. package/dist/types/modules/system/dto.js +3 -0
  189. package/dist/types/modules/system/index.d.ts +2 -0
  190. package/dist/types/modules/system/index.js +18 -0
  191. package/dist/types/modules/system/interface.d.ts +18 -0
  192. package/dist/types/modules/system/interface.js +2 -0
  193. package/dist/types/modules/term/dto.d.ts +171 -0
  194. package/dist/types/modules/term/dto.js +3 -0
  195. package/dist/types/modules/term/index.d.ts +3 -0
  196. package/dist/types/modules/term/index.js +19 -0
  197. package/dist/types/modules/term/interface.d.ts +52 -0
  198. package/dist/types/modules/term/interface.js +2 -0
  199. package/dist/types/modules/term/type.d.ts +11 -0
  200. package/dist/types/modules/term/type.js +13 -0
  201. package/dist/types/providers/coocon-usedcar/constant.d.ts +46 -0
  202. package/dist/types/providers/coocon-usedcar/constant.js +673 -0
  203. package/dist/types/providers/coocon-usedcar/dto.d.ts +23 -0
  204. package/dist/types/providers/coocon-usedcar/dto.js +3 -0
  205. package/dist/types/providers/coocon-usedcar/index.d.ts +3 -0
  206. package/dist/types/providers/coocon-usedcar/index.js +19 -0
  207. package/dist/types/providers/coocon-usedcar/interface.d.ts +305 -0
  208. package/dist/types/providers/coocon-usedcar/interface.js +2 -0
  209. package/dist/types/providers/firebase-message/dto.d.ts +56 -0
  210. package/dist/types/providers/firebase-message/dto.js +3 -0
  211. package/dist/types/providers/firebase-message/index.d.ts +2 -0
  212. package/dist/types/providers/firebase-message/index.js +18 -0
  213. package/dist/types/providers/firebase-message/interface.d.ts +4 -0
  214. package/dist/types/providers/firebase-message/interface.js +2 -0
  215. package/dist/types/providers/gabia-sms/dto.d.ts +31 -0
  216. package/dist/types/providers/gabia-sms/dto.js +3 -0
  217. package/dist/types/providers/gabia-sms/index.d.ts +1 -0
  218. package/dist/types/providers/gabia-sms/index.js +17 -0
  219. package/dist/types/providers/index.d.ts +5 -0
  220. package/dist/types/providers/index.js +21 -0
  221. package/dist/types/providers/niceapi/dto.d.ts +15 -0
  222. package/dist/types/providers/niceapi/dto.js +3 -0
  223. package/dist/types/providers/niceapi/index.d.ts +2 -0
  224. package/dist/types/providers/niceapi/index.js +18 -0
  225. package/dist/types/providers/niceapi/interface.d.ts +25 -0
  226. package/dist/types/providers/niceapi/interface.js +2 -0
  227. package/package.json +1 -1
@@ -0,0 +1,233 @@
1
+ import { BoardKey } from "../../../data";
2
+ import { MemberType } from "../member";
3
+ import { Board_watchableMemberType, Board_writableMemberType, Post_LikeHateState } from "./type";
4
+ /** 글 리스트 검색 결과 */
5
+ export interface PostList {
6
+ totalCount: number;
7
+ /** 해당 게시판 카테고리 내 중요 글(상단 고정글) */
8
+ importantPost: PostShortInfo[];
9
+ /** 검색 결과(고정글 제외) */
10
+ searchedPost: PostShortInfo[];
11
+ }
12
+ /** 글 상세정보 */
13
+ export interface PostShortInfo {
14
+ /**
15
+ * 글 Id
16
+ * @description Autoincrement Integer
17
+ */
18
+ id: number;
19
+ /** 글 카테고리 */
20
+ board_category: Board_Category;
21
+ title: string;
22
+ content: string;
23
+ /** 작성 회원 정보, 비회원 글이 아닐 경우 정의됩니다 */
24
+ member: {
25
+ id: string;
26
+ name_nick: string;
27
+ type: MemberType;
28
+ } | null;
29
+ /** 비회원 작성 글일 경우 정의됩니다 */
30
+ guest: {
31
+ name: string;
32
+ } | null;
33
+ /**
34
+ * 공개글인지 여부
35
+ * 비공개글일 경우 본인과 관리자만 읽을 수 있습니다.
36
+ */
37
+ isPublic: boolean;
38
+ /**
39
+ * 중요한 글인지 여부
40
+ * 게시판에서 important한 글은 상단에 고정되어야 합니다!!
41
+ */
42
+ isImportant: boolean;
43
+ /** 밴된 글인지 여부. 관리자가 밴먹인 글인지 여부입니다. */
44
+ isBanned: boolean;
45
+ /**
46
+ * 조회수
47
+ */
48
+ count_read: number;
49
+ /**
50
+ * 좋아요 개수
51
+ */
52
+ count_like: number;
53
+ /**
54
+ * 싫어요 개수
55
+ */
56
+ count_hate: number;
57
+ /**
58
+ * 댓글 개수
59
+ */
60
+ count_comment: number;
61
+ created_at: Date;
62
+ updated_at: Date;
63
+ }
64
+ /** 글 상세정보 */
65
+ export interface PostDetailInfo {
66
+ /**
67
+ * 글 Id
68
+ * @description Autoincrement Integer
69
+ */
70
+ id: number;
71
+ /** 게시판 정보 */
72
+ board: {
73
+ id: number;
74
+ name: string;
75
+ key: BoardKey;
76
+ description: string;
77
+ /** 게시판을 볼 수 있는 회원 타입 */
78
+ watchableMemberType: Board_watchableMemberType;
79
+ /** 게시판에 글을 쓸 수 있는 회원 타입 */
80
+ writableMemberType: Board_writableMemberType;
81
+ };
82
+ /** 글 카테고리 */
83
+ board_category: Board_Category;
84
+ title: string;
85
+ content: string;
86
+ content_html: string;
87
+ /** 댓글 리스트 */
88
+ comment: PostComment[];
89
+ /** 작성 회원 정보, 비회원 글이 아닐 경우 정의됩니다 */
90
+ member: {
91
+ id: string;
92
+ name_nick: string;
93
+ type: MemberType;
94
+ } | null;
95
+ /** 비회원 작성 글일 경우 정의됩니다 */
96
+ guest: {
97
+ name: string;
98
+ } | null;
99
+ /**
100
+ * 공개글인지 여부
101
+ * 비공개글일 경우 본인과 관리자만 읽을 수 있습니다.
102
+ */
103
+ isPublic: boolean;
104
+ /**
105
+ * 중요한 글인지 여부
106
+ * 게시판에서 important한 글은 상단에 고정되어야 합니다!!
107
+ */
108
+ isImportant: boolean;
109
+ /** 밴된 글인지 여부. 관리자가 밴먹인 글인지 여부입니다. */
110
+ isBanned: boolean;
111
+ /** 요청자가 이 글을 좋아요/싫어요했는지 여부
112
+ * @normal 비회원이거나, 좋아요/싫어요 상태가 아닌 것을 의미합니다
113
+ */
114
+ likeStatus: Post_LikeHateState;
115
+ /**
116
+ * 조회수
117
+ */
118
+ count_read: number;
119
+ /**
120
+ * 좋아요 개수
121
+ */
122
+ count_like: number;
123
+ /**
124
+ * 싫어요 개수
125
+ */
126
+ count_hate: number;
127
+ /**
128
+ * 댓글 개수
129
+ */
130
+ count_comment: number;
131
+ created_at: Date;
132
+ updated_at: Date;
133
+ }
134
+ /** 댓글 상세정보 */
135
+ export interface PostComment {
136
+ /**
137
+ * 댓글 Id
138
+ * @description Autoincrement Integer
139
+ */
140
+ id: number;
141
+ /** 어느 글의 댓글인지 */
142
+ board_postId: number;
143
+ /** 작성 회원 정보, 비회원 댓글이 아닐 경우 정의됩니다 */
144
+ member: {
145
+ id: string;
146
+ name_nick: string;
147
+ type: MemberType;
148
+ } | null;
149
+ /** 비회원 작성 댓글일 경우 정의됩니다 */
150
+ guest: {
151
+ name: string;
152
+ } | null;
153
+ content: string;
154
+ isBanned: boolean;
155
+ /** 대댓글 리스트 */
156
+ post_comment_reply: PostCommentReply[];
157
+ created_at: Date;
158
+ updated_at: Date;
159
+ /** 댓글 삭제 여부 판단은 이걸루 하세용 */
160
+ deleted_at: Date | null;
161
+ }
162
+ export interface PostCommentReply {
163
+ id: number;
164
+ /** 어느 댓글의 댓글인지 */
165
+ board_post_commentId: number;
166
+ /** 작성 회원 정보, 비회원 대댓글이 아닐 경우 정의됩니다 */
167
+ member: {
168
+ id: string;
169
+ name_nick: string;
170
+ type: MemberType;
171
+ } | null;
172
+ /** 비회원 작성 대댓글일 경우 정의됩니다 */
173
+ guest: {
174
+ name: string;
175
+ } | null;
176
+ content: string;
177
+ isBanned: boolean;
178
+ created_at: Date;
179
+ updated_at: Date;
180
+ /** 대댓글 삭제 여부 판단은 이걸루 하세용 */
181
+ deleted_at: Date | null;
182
+ }
183
+ /** 게시판 정보 */
184
+ export interface BoardInfo {
185
+ /**
186
+ * 게시판 ID
187
+ */
188
+ id: number;
189
+ /**
190
+ * 게시판 키값. 중요합니다.
191
+ */
192
+ key: BoardKey;
193
+ /**
194
+ * 게시판 이름
195
+ */
196
+ name: string;
197
+ /**
198
+ * 게시판 설명
199
+ */
200
+ description: string;
201
+ /**
202
+ * 게시판을 볼 수 있는 회원 타입
203
+ */
204
+ watchableMemberType: Board_watchableMemberType;
205
+ /**
206
+ * 게시판에 글을 작성할 수 있는 회원 타입
207
+ */
208
+ writableMemberType: Board_writableMemberType;
209
+ /**
210
+ * 댓글 작성 가능 게시판 여부
211
+ */
212
+ commentAble: boolean;
213
+ /**
214
+ * 신고 기능 가능 여부
215
+ */
216
+ reportAble: boolean;
217
+ /**
218
+ * 싫어요 가능 여부
219
+ */
220
+ hateAble: boolean;
221
+ /**
222
+ * 좋아요 가능 여부
223
+ */
224
+ likeAble: boolean;
225
+ board_category_list: Board_Category[];
226
+ }
227
+ /** 게시판 카테고리 */
228
+ export interface Board_Category {
229
+ id: number;
230
+ name: string;
231
+ /** 해당 게시판을 볼 수 있는 회원 타입 */
232
+ watchableMemberType: Board_watchableMemberType;
233
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,30 @@
1
+ import { MemberType } from "../member";
2
+ /**
3
+ * @case like: 좋아요
4
+ * @case normal: 기본 (좋아요도 싫어요도 아님)
5
+ * @case hate: 싫어요
6
+ */
7
+ export type Post_LikeHateState = "like" | "hate" | "normal";
8
+ export declare const Post_LikeHateState: {
9
+ like: string;
10
+ hate: string;
11
+ normal: string;
12
+ };
13
+ /**
14
+ * @description 해당 컨텐츠를 볼 수 있는 회원 타입
15
+ * @notice 어드민은 모든 컨텐츠를 볼 수 있습니다
16
+ * @case common: 모든 회원 타입에 대하여 허용된 컨텐츠
17
+ * @case customer: 일반 회원에 대하여 허용된 컨텐츠
18
+ * @case dealer: 딜러에게만 허용된 컨텐츠
19
+ * @case admin: 어드민에 대하여만 허용된 컨텐츠
20
+ */
21
+ export type Board_watchableMemberType = null | MemberType;
22
+ /**
23
+ * @description 글을 작성할 수 있는 회원 유형
24
+ * @notice 어드민은 모든 컨텐츠 작성이 가능합니다
25
+ * @case null: 모든 회원 타입에 대하여 작성이 허용된 컨텐츠
26
+ * @case customer: 일반 회원에 대하여만 작성이 허용된 컨텐츠
27
+ * @case dealer: 딜러에게 대하여만 작성이 허용된 컨텐츠
28
+ * @case admin: 어드민에 대하여만 작성이 허용된 컨텐츠
29
+ */
30
+ export type Board_writableMemberType = null | MemberType;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Post_LikeHateState = void 0;
4
+ exports.Post_LikeHateState = {
5
+ like: "like",
6
+ hate: "hate",
7
+ normal: "normal",
8
+ };
@@ -0,0 +1,404 @@
1
+ /** DTO는 서버단에 요청을 보낼 때 사용하는 클래스 유형으로 서버단에서 이 곳에 정의된 대로 유효성 검사를 처리합니다. */
2
+ import { CarCategoryId, CarMakerId, CarShapeId, PopularCarCategoryId } from "../../../data";
3
+ import { CarAdminAdditionalInfo, CarColorInternalSelection, CarColorRestrictions } from "./interface";
4
+ export interface GetCarModelDTO {
5
+ carMakerId: CarMakerId;
6
+ /**
7
+ * 가격 정보가 없는 모델도 같이 검색하는 옵션
8
+ * @notice 기본값은 false입니다
9
+ * @description 슈퍼카에서만 사용합니다
10
+ */
11
+ withoutPriceModel?: boolean;
12
+ }
13
+ export interface GetCarTrimDTO {
14
+ carModelId: number;
15
+ }
16
+ export interface GetCarGradeDTO {
17
+ carTrimId: number;
18
+ }
19
+ export interface GetCarColorDTO {
20
+ carGradeId: number;
21
+ }
22
+ export interface GetCarOptionDTO {
23
+ carGradeId: number;
24
+ }
25
+ export interface GetCarOptionDescriptionDTO {
26
+ carOptionDescriptionId: number;
27
+ }
28
+ /** 차량 좋아요 정보 업데이트 */
29
+ export interface UpdateInterestCarDTO {
30
+ carModelId: number;
31
+ isInterest: boolean;
32
+ }
33
+ /** 인기차량 설정 */
34
+ export interface SetCarPopularDTO {
35
+ name: string;
36
+ description: string;
37
+ carModelId: number;
38
+ popularCategoryId: PopularCarCategoryId;
39
+ /** 인기차량 정렬을 위한 가중치
40
+ * @notice 높은 값이 먼저 정렬되어 나옵니다
41
+ */
42
+ orderWeight?: number;
43
+ }
44
+ /** 인기차량 제거 */
45
+ export interface DeleteCarPopularDTO {
46
+ id: number;
47
+ }
48
+ export interface GetCarDTO {
49
+ carId: string;
50
+ }
51
+ export interface CarDataDTO {
52
+ id: string;
53
+ isPublic: boolean;
54
+ isForeign: boolean | null;
55
+ car_makerId: number | null;
56
+ car_modelId: number | null;
57
+ car_trimId: number | null;
58
+ car_gradeId: number | null;
59
+ car_colorId: number | null;
60
+ car_LINK_option: CarOptionDTO[] | null;
61
+ isDefaultOption: boolean | null;
62
+ }
63
+ export interface CarOptionDTO {
64
+ car_optionId: number;
65
+ }
66
+ export interface GetCarOptionColorListDTO {
67
+ carGradeId: number;
68
+ }
69
+ export declare class ModifyCarMakerDTO {
70
+ id: number;
71
+ name_changed?: string | null;
72
+ isHidden: boolean;
73
+ /** 관리자용 추가정보 */
74
+ admin_additional_info?: CarAdminAdditionalInfo[];
75
+ }
76
+ export interface ModifyCarModelDTO {
77
+ id: number;
78
+ modelName: string;
79
+ /** 모델 브랜드 이름 */
80
+ name_brand: string;
81
+ isHidden: boolean;
82
+ /** 모델 이미지 URL */
83
+ image_url?: string;
84
+ /** 사전예약 차량 여부 */
85
+ isPreorder: boolean;
86
+ /** 전기차 모델 여부 */
87
+ isElectric: boolean;
88
+ /** 카테고리 */
89
+ car_category?: CarCategoryId;
90
+ /** 신규 모델 기간 */
91
+ newCarPeriod?: Date | null;
92
+ /** 관리자용 추가정보 */
93
+ admin_additional_info?: CarAdminAdditionalInfo[];
94
+ }
95
+ export interface ModifyCarTrimDTO {
96
+ id: number;
97
+ trimName: string;
98
+ isHidden: boolean;
99
+ /** 해당 트림을 연결할 모델 id */
100
+ car_modelId?: number;
101
+ /** 관리자용 추가정보 */
102
+ admin_additional_info?: CarAdminAdditionalInfo[];
103
+ }
104
+ export interface ModifyCarGradeDTO {
105
+ id: number;
106
+ gradeName: string;
107
+ gradePrice: number;
108
+ /**
109
+ * @description 탑승 인원 수
110
+ * @db 0일 경우 빈 문자열 DB에 삽입
111
+ * @note 직접 생성한 데이터에만 업데이트 가능합니다
112
+ * @note 해당 데이터는 NiceDNR CarData 업데이트 앱에서 덮어씌우기 때문임
113
+ */
114
+ seatingCapacity: number;
115
+ /**
116
+ * @description 연료 타입 string
117
+ * @note 빈 문자열일 경우 빈 문자열 db에 삽입
118
+ * @note 직접 생성한 데이터에만 업데이트 가능합니다
119
+ * @note 해당 데이터는 NiceDNR CarData 업데이트 앱에서 덮어씌우기 때문임
120
+ */
121
+ fuel: string;
122
+ /**
123
+ * @description 엔진 배기량
124
+ * @db 0일 경우 빈 문자열 DB에 삽입
125
+ * @note 직접 생성한 데이터에만 업데이트 가능합니다
126
+ * @note 해당 데이터는 NiceDNR CarData 업데이트 앱에서 덮어씌우기 때문임
127
+ */
128
+ displace: number;
129
+ /** 해당 등급을 연결할 트림 id
130
+ * @note 직접 생성한 데이터에만 업데이트 가능합니다
131
+ * @note 해당 데이터는 NiceDNR CarData 업데이트 앱에서 덮어씌우기 때문임
132
+ */
133
+ car_trimId?: number;
134
+ isHidden: boolean;
135
+ /** 관리자용 추가정보 */
136
+ admin_additional_info?: CarAdminAdditionalInfo[];
137
+ }
138
+ export interface ModifyCarGradeOptionDTO {
139
+ gradeId: number;
140
+ /** 필수 옵션 카테고리 */
141
+ essential_category: string[];
142
+ /** 선택 옵션 카테고리 */
143
+ radio_category: string[];
144
+ }
145
+ export interface ModifyCarOptionDTO {
146
+ /** 옵션Id */
147
+ id: number;
148
+ /** 해당 등급Id
149
+ * @Note 필수 옵션 처리에 사용합니다.
150
+ */
151
+ gradeId: number;
152
+ optionName: string;
153
+ optionPrice: number;
154
+ /** 카테고리 */
155
+ category: string | null;
156
+ /** 옵션 짧은 설명 (한줄내외) */
157
+ optionInfo: string | null;
158
+ isHidden: boolean;
159
+ isEssential: boolean;
160
+ /** 관리자용 추가정보 */
161
+ admin_additional_info?: CarAdminAdditionalInfo[];
162
+ }
163
+ export declare class ModifyCarColorDTO {
164
+ id: number;
165
+ gradeId: number;
166
+ /** 색상 이름 */
167
+ colorName: string;
168
+ /** 색상 가격 */
169
+ colorPrice: number;
170
+ /** 색상 설명 */
171
+ description: string | null;
172
+ /** 카테고리 */
173
+ category: string | null;
174
+ /** 색상 이미지 URL */
175
+ image_url?: string | null;
176
+ /** 색상 코드 (주색)
177
+ * @example "#222"
178
+ * @note null일 경우 제거
179
+ */
180
+ color_code_main?: string | null;
181
+ /** 색상 코드 (보조색)
182
+ * @example "#222"
183
+ * @note 다중 색상일 경우(2개 색상이 섞이는 경우) 정의
184
+ * @note null일 경우 제거
185
+ */
186
+ color_code_sub?: string | null;
187
+ /** 경고 문구
188
+ * @example 프리미엄 셀렉션 2 필수
189
+ * @note null일 경우 제거
190
+ */
191
+ warning_text?: string | null;
192
+ /** 외장색상 여부
193
+ * @note 외장색상일 경우 false, 내장색상일 경우 true
194
+ * @default false
195
+ */
196
+ is_interior?: boolean;
197
+ isHidden: boolean;
198
+ /** 해당 색상 선택 시 걸리는 제한 사항 */
199
+ restrictions: CarColorRestrictions | null;
200
+ /** 색상 하위 선택항목 목록
201
+ * @note 현재 내장색상에서만 정상동작합니다.
202
+ */
203
+ internalSelection: CarColorInternalSelection[] | null;
204
+ /** 관리자용 추가정보 */
205
+ admin_additional_info?: CarAdminAdditionalInfo[];
206
+ }
207
+ export interface ModifyCarOptionRelationDTO {
208
+ /** 대상 옵션 Id */
209
+ id: number;
210
+ /** 대상 등급 Id */
211
+ gradeId: number;
212
+ include: number[];
213
+ nessary: number[];
214
+ incompatible: number[];
215
+ }
216
+ /** 옵션에 대한 상세 설명 */
217
+ export interface ModifyCarOptionDescriptionDTO {
218
+ /** descriptionId */
219
+ id: number;
220
+ car_optionId: number;
221
+ car_makerId: number;
222
+ car_modelIdList: number[];
223
+ /** 옵션 설명 제목 */
224
+ name: string;
225
+ /** 상세 설명 내용,
226
+ * @notice 빈 String이 올 수 있습니다.
227
+ */
228
+ content: string;
229
+ /** 옵션 설명 이미지 url
230
+ * @example https://cdn.carsayo.net/resource/car/option/description/image/13181.jpg
231
+ */
232
+ imgSrc: string | null;
233
+ include: CarOptionDescriptionIncludeDTO[];
234
+ }
235
+ interface CarOptionDescriptionIncludeDTO {
236
+ id: number;
237
+ car_makerId: number;
238
+ car_modelIdList: number[];
239
+ /** 옵션 하위 내용 제목 */
240
+ name: string;
241
+ /** 옵션 하위 내용 상세 설명
242
+ * @notice 빈 String이 올 수 있습니다.
243
+ */
244
+ content: string;
245
+ /** 옵션 설명 이미지 url
246
+ * @example https://cdn.carsayo.net/resource/car/option/description/image/13181.jpg
247
+ */
248
+ imgSrc: string | null;
249
+ }
250
+ export interface UpdateSortOrderDTO {
251
+ id: number;
252
+ sort_order: number;
253
+ }
254
+ export interface ModifyCarSortOrderDTO {
255
+ key: "maker" | "model" | "trim" | "grade" | "option" | "color";
256
+ /** @note key: option, color일 때 필수조건 */
257
+ gradeId?: number;
258
+ data: UpdateSortOrderDTO[];
259
+ }
260
+ export interface CreateCarModelDTO {
261
+ /** 제조사 ID */
262
+ makerId: CarMakerId;
263
+ /** 모델 이름 */
264
+ name: string;
265
+ /** 모델 브랜드 이름 */
266
+ name_brand: string;
267
+ /** 모델 이미지 URL */
268
+ image_url: string;
269
+ /** YYYYMM 형식의 출시일
270
+ * @note Optional
271
+ */
272
+ release_day?: string;
273
+ /** 카테고리 */
274
+ car_category: CarCategoryId;
275
+ /** 전기차 모델 여부
276
+ * @default false
277
+ */
278
+ isElectric?: boolean;
279
+ /** 신규 모델 기간 */
280
+ newCarPeriod?: Date | null;
281
+ /** 사전예약 차량 여부
282
+ * @default false
283
+ */
284
+ isPreorder?: boolean;
285
+ }
286
+ export interface CreateCarTrimDTO {
287
+ /** 모델 ID */
288
+ modelId: number;
289
+ /** 트림 이름 */
290
+ name: string;
291
+ /** 트림 이미지 URL */
292
+ image_url: string;
293
+ /** 카테고리 */
294
+ car_shape: CarShapeId;
295
+ }
296
+ export interface CreateCarGradeDTO {
297
+ /** 트림 ID */
298
+ trimId: number;
299
+ /** 상세등급 이름 */
300
+ name: string;
301
+ /** 가격 */
302
+ price: number;
303
+ /** YYYYMM 형식의 출시년월
304
+ * @note Optional
305
+ */
306
+ released_month?: string;
307
+ /**
308
+ * @description 탑승 인원 수
309
+ * @db 0일 경우 빈 문자열 DB에 삽입
310
+ */
311
+ seatingCapacity: number | 0;
312
+ /**
313
+ * @description 연료 타입 string
314
+ * @note 빈 문자열일 경우 빈 문자열 db에 삽입
315
+ */
316
+ fuel: string | "";
317
+ /**
318
+ * @description 엔진 배기량
319
+ * @db 0일 경우 빈 문자열 DB에 삽입
320
+ */
321
+ displace: number | 0;
322
+ }
323
+ export interface DeleteCarDataDTO {
324
+ id: number;
325
+ key: "model" | "trim" | "grade";
326
+ }
327
+ export declare class DeleteCarOptionDataDTO {
328
+ optionId: number;
329
+ gradeId: number;
330
+ }
331
+ export declare class DeleteCarColorDataDTO {
332
+ colorId: number;
333
+ gradeId: number;
334
+ }
335
+ export interface CopyCarGradeDTO {
336
+ id: number;
337
+ }
338
+ export interface CopyCarColorDTO {
339
+ colorId: number;
340
+ gradeId: number;
341
+ }
342
+ export interface CopyCarOptionDTO {
343
+ optionId: number;
344
+ gradeId: number;
345
+ }
346
+ export interface CreateCarOptionDTO {
347
+ /** 옵션을 생성 후 연결할 상세등급 id 목록 */
348
+ gradeIdList: number[];
349
+ /** 옵션 이름 */
350
+ name: string;
351
+ price: number;
352
+ /** 카테고리 */
353
+ category: string | null;
354
+ /** 옵션 짧은 설명 (한줄내외) */
355
+ info: string | null;
356
+ }
357
+ export interface CreateCarColorDTO {
358
+ /** 색상을 생성 후 연결할 상세등급 id 목록 */
359
+ gradeIdList: number[];
360
+ /** 색상 이름 */
361
+ name: string;
362
+ /** 색상 가격 */
363
+ price: number;
364
+ /** 색상 설명 */
365
+ description: string | null;
366
+ /** 색상 카테고리 */
367
+ category: string | null;
368
+ /** 색상 이미지 URL */
369
+ image_url?: string;
370
+ /** 색상 코드 (주색)
371
+ * @example "#222"
372
+ */
373
+ color_code_main?: string;
374
+ /** 색상 코드 (보조색)
375
+ * @example "#222"
376
+ * @note 다중 색상일 경우(2개 색상이 섞이는 경우) 정의
377
+ */
378
+ color_code_sub?: string;
379
+ /** 경고 문구
380
+ * @example 프리미엄 셀렉션 2 필수
381
+ * @note null일 경우 제거
382
+ */
383
+ warning_text?: string | null;
384
+ /** 외장색상 여부
385
+ * @note 외장색상일 경우 false, 내장색상일 경우 true
386
+ * @default false
387
+ */
388
+ is_interior: boolean;
389
+ }
390
+ export interface ConnectCarOptionDTO {
391
+ gradeId: number;
392
+ /** @250409 배열 형태로 전달합니다. */
393
+ optionId: number[];
394
+ }
395
+ export interface ConnectCarColorDTO {
396
+ gradeId: number;
397
+ /** @250409 배열 형태로 전달합니다. */
398
+ colorId: number[];
399
+ }
400
+ /** 특정 모델 내 유효한 모든 옵션을 조회합니다. */
401
+ export interface GetCarModelOptionColorDTO {
402
+ modelId: number;
403
+ }
404
+ export {};
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteCarColorDataDTO = exports.DeleteCarOptionDataDTO = exports.ModifyCarColorDTO = exports.ModifyCarMakerDTO = void 0;
4
+ class ModifyCarMakerDTO {
5
+ }
6
+ exports.ModifyCarMakerDTO = ModifyCarMakerDTO;
7
+ class ModifyCarColorDTO {
8
+ }
9
+ exports.ModifyCarColorDTO = ModifyCarColorDTO;
10
+ class DeleteCarOptionDataDTO {
11
+ }
12
+ exports.DeleteCarOptionDataDTO = DeleteCarOptionDataDTO;
13
+ class DeleteCarColorDataDTO {
14
+ }
15
+ exports.DeleteCarColorDataDTO = DeleteCarColorDataDTO;
@@ -0,0 +1,3 @@
1
+ export * from "./dto";
2
+ export * from "./interface";
3
+ export * from "./type";