@carsayo/types 1.1.892081 → 1.1.892083

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 +262 -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,117 @@
1
+ import { MemberType } from "../member";
2
+ import { ChatOpponentAdditionalInfo } from "./type.opponent.additionalInfo";
3
+ import { ChatRoomAdditionalInfo } from "./type.room.additionalInfo";
4
+ export type ChatOpponent = {
5
+ id: string;
6
+ name: string;
7
+ name_real: string;
8
+ type: MemberType;
9
+ profileImage: string | null;
10
+ phoneNumber: string;
11
+ /** 입맛대로 저장하는 추가 정보 */
12
+ additionalInfo?: ChatOpponentAdditionalInfo;
13
+ /** 차단 여부 */
14
+ isBlocked: boolean;
15
+ /** 채팅 푸시 메시지 수신 설정 여부
16
+ * @note isRecipientNotiEnabled에서 사용합니다.
17
+ */
18
+ isRecipientNotiEnabled: boolean;
19
+ };
20
+ export declare const ChatRoomType: {
21
+ /** 사고수리 서비스 채팅 */
22
+ readonly repair_service: "repair_service";
23
+ /** 사고수리 공업사 직접문의 채팅 */
24
+ readonly repair_direct: "repair_direct";
25
+ /** [고객용] 내차팔기 관리자 1:1 문의 */
26
+ readonly inquiry_sellcar_customer: "inquiry_sellcar_customer";
27
+ /** [딜러용] 내차팔기 관리자 1:1 문의 */
28
+ readonly inquiry_sellcar_dealer: "inquiry_sellcar_dealer";
29
+ };
30
+ export type ChatRoomType = keyof typeof ChatRoomType;
31
+ export type ChatCreateRoomInfo = {
32
+ roomId: string;
33
+ carsayoId: string;
34
+ partnerId: string;
35
+ tags: string[];
36
+ additionalInfo?: ChatRoomAdditionalInfo;
37
+ type: ChatRoomType;
38
+ };
39
+ export type ChatRoom = {
40
+ id: string;
41
+ type: ChatRoomType;
42
+ opponent: ChatOpponent;
43
+ tag: string[];
44
+ additionalInfo?: ChatRoomAdditionalInfo;
45
+ /** 룸 생성자 member_id */
46
+ creatorId: string;
47
+ lastChat: {
48
+ content: string;
49
+ createdAt: Date;
50
+ isRead: boolean;
51
+ } | null;
52
+ option: {
53
+ isAlert: boolean;
54
+ isExited: boolean;
55
+ };
56
+ /** Create OR Update 시간 */
57
+ updatedAt: Date;
58
+ };
59
+ export type ChatMessage = {
60
+ id: string;
61
+ type: "txt" | "file";
62
+ /** 첨부파일 */
63
+ files: ChatFile[] | null;
64
+ /** 메시지 내용 */
65
+ content: string | null;
66
+ createdAt: Date;
67
+ /** 발송중 여부, 메시지 조회 성공 시 false처리 */
68
+ isSending: boolean;
69
+ isMyChat: boolean;
70
+ isDeleted: boolean;
71
+ };
72
+ export type ChatBlockMember = {
73
+ /** 차단한 사람 id */
74
+ blockerId: string;
75
+ /** 차단당한 사람 id */
76
+ blockedId: string;
77
+ blockedAt: Date;
78
+ };
79
+ /** 서버(MainService)에서 조회한 상대방 정보
80
+ * @note 차단 여부 제외 (차단여부는 채팅서버에 있음)
81
+ */
82
+ export type ChatMemberInfo = Omit<ChatOpponent, "isBlocked">;
83
+ export type ChatFile = {
84
+ id: string;
85
+ name: string;
86
+ size: string;
87
+ contentType: string;
88
+ extension: string;
89
+ url: string;
90
+ };
91
+ export interface SendChatMessageResponse {
92
+ /** 상대방에게 푸시 알림 보낼지 여부
93
+ * @note true일 경우 상대방에게 푸시 알림 보냄 (API 요청 발송)
94
+ */
95
+ shouldNotifyRecipient: boolean;
96
+ }
97
+ export declare const TargetApp: {
98
+ readonly carsayo: "카사요";
99
+ readonly partners: "파트너스";
100
+ };
101
+ export type TargetApp = keyof typeof TargetApp;
102
+ export interface SendChatPushDTO {
103
+ /** 푸시 수신 대상 멤버 id */
104
+ memberId: string;
105
+ /** 푸시 수신 대상 앱
106
+ * @deprecated
107
+ */
108
+ targetApp?: TargetApp;
109
+ /** 푸시 제목
110
+ * @deprecated
111
+ */
112
+ title?: string;
113
+ /** 푸시 내용 */
114
+ content: string;
115
+ /** 푸시 클릭 시 이동할 페이지 */
116
+ redirectUrl?: string;
117
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TargetApp = exports.ChatRoomType = void 0;
4
+ exports.ChatRoomType = {
5
+ /** 사고수리 서비스 채팅 */
6
+ repair_service: "repair_service",
7
+ /** 사고수리 공업사 직접문의 채팅 */
8
+ repair_direct: "repair_direct",
9
+ /** [고객용] 내차팔기 관리자 1:1 문의 */
10
+ inquiry_sellcar_customer: "inquiry_sellcar_customer",
11
+ /** [딜러용] 내차팔기 관리자 1:1 문의 */
12
+ inquiry_sellcar_dealer: "inquiry_sellcar_dealer",
13
+ };
14
+ exports.TargetApp = {
15
+ carsayo: "카사요",
16
+ partners: "파트너스",
17
+ };
@@ -0,0 +1,7 @@
1
+ import { RepairShop } from "../accidentReport";
2
+ import { MemberShort } from "../member";
3
+ export type ChatOpponentAdditionalInfo = ChatOpponentAdditionalInfo_Repair;
4
+ export type ChatOpponentAdditionalInfo_Repair = {
5
+ repairShop: RepairShop | null;
6
+ customer: MemberShort | null;
7
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,52 @@
1
+ import { RepairEstimate } from "../repair";
2
+ import { SellCarComplexes, SellMyCarOrderMethod } from "../sellMyCar";
3
+ export type ChatRoomAdditionalInfo = ChatRoomAdditionalInfo_Repair | ChatRoomAdditionalInfo_SellcarInquiry;
4
+ export type ChatRoomAdditionalInfo_Repair = {
5
+ /** 견적 요청 ID */
6
+ repairId: string;
7
+ /** 견적서 Id */
8
+ repairBidId: string;
9
+ /** 공업사 Id */
10
+ repairShopId: string;
11
+ /** 고객 Id */
12
+ customerId: string;
13
+ /** 예상 수리일 */
14
+ estimatedPeriod: RepairEstimate["estimatedPeriod"];
15
+ };
16
+ export type ChatRoomAdditionalInfo_SellcarInquiry = {
17
+ /** 견적 요청 ID */
18
+ sell_car_order_id: string;
19
+ /** 차량명 */
20
+ carName: string;
21
+ /** 브랜드명 */
22
+ makerName: string;
23
+ /** 모델명 */
24
+ modelName: string;
25
+ /** 연식 */
26
+ year: number;
27
+ /** 주행거리 */
28
+ distance: number;
29
+ /** 위치 */
30
+ location: string;
31
+ /** 견적 요청 방법 */
32
+ method: SellMyCarOrderMethod;
33
+ /** 대화 대상 유형 */
34
+ inquiryTargetType: "customer" | "dealer";
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;
52
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,46 @@
1
+ import { ChatFile, ChatRoomType } from "./type";
2
+ import { ChatRoomAdditionalInfo } from "./type.room.additionalInfo";
3
+ export interface SocketChatRoomMeta {
4
+ type: ChatRoomType;
5
+ carsayoId?: string;
6
+ partnerId?: string;
7
+ tags: string[];
8
+ }
9
+ export interface SocketChatRoomItem extends SocketChatRoomMeta {
10
+ roomId: string;
11
+ createdAt: string;
12
+ creatorId: string;
13
+ additionalInfo?: ChatRoomAdditionalInfo;
14
+ carsayo: {
15
+ isNotiEnabled: boolean;
16
+ lastReadAt: string;
17
+ leaveAt?: string;
18
+ };
19
+ partner: {
20
+ isNotiEnabled: boolean;
21
+ lastReadAt: string;
22
+ leaveAt?: string;
23
+ };
24
+ lastInfo: {
25
+ lastMsgId?: string;
26
+ lastMsgContent: {
27
+ type?: string;
28
+ msg?: string;
29
+ };
30
+ lastSenderId?: string;
31
+ lastSentAt?: string;
32
+ };
33
+ }
34
+ export interface SocketChatContent {
35
+ type: "file" | "txt";
36
+ msg: string;
37
+ fileInfos?: ChatFile[];
38
+ }
39
+ export interface SocketChatMessageItem {
40
+ messageId: string;
41
+ content: SocketChatContent;
42
+ sentAt: string;
43
+ isDelete: boolean;
44
+ roomId: string;
45
+ senderId: string;
46
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ /** DTO는 서버단에 요청을 보낼 때 사용하는 클래스 유형으로 서버단에서 이 곳에 정의된 대로 유효성 검사를 처리합니다. */
2
+ import { CollaboratorId } from "../../../data";
3
+ import { OrderIdDTO } from "../order";
4
+ /** 협력사 관리자 - 주문 상세정보 확인 */
5
+ export interface GetCollaboratorOrderDetailDTO extends OrderIdDTO {
6
+ /**
7
+ * @description 해당 소속사 카매니저가 입찰한 주문 리스트 검색
8
+ */
9
+ collaboratorId: CollaboratorId;
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ /** DTO는 서버단에 요청을 보낼 때 사용하는 클래스 유형으로 서버단에서 이 곳에 정의된 대로 유효성 검사를 처리합니다. */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from "./dto";
@@ -0,0 +1,17 @@
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);
@@ -0,0 +1,65 @@
1
+ export declare enum HttpStatusCode {
2
+ Continue = 100,
3
+ SwitchingProtocols = 101,
4
+ Processing = 102,
5
+ EarlyHints = 103,
6
+ Ok = 200,
7
+ Created = 201,
8
+ Accepted = 202,
9
+ NonAuthoritativeInformation = 203,
10
+ NoContent = 204,
11
+ ResetContent = 205,
12
+ PartialContent = 206,
13
+ MultiStatus = 207,
14
+ AlreadyReported = 208,
15
+ ImUsed = 226,
16
+ MultipleChoices = 300,
17
+ MovedPermanently = 301,
18
+ Found = 302,
19
+ SeeOther = 303,
20
+ NotModified = 304,
21
+ UseProxy = 305,
22
+ Unused = 306,
23
+ TemporaryRedirect = 307,
24
+ PermanentRedirect = 308,
25
+ BadRequest = 400,
26
+ Unauthorized = 401,
27
+ PaymentRequired = 402,
28
+ Forbidden = 403,
29
+ NotFound = 404,
30
+ MethodNotAllowed = 405,
31
+ NotAcceptable = 406,
32
+ ProxyAuthenticationRequired = 407,
33
+ RequestTimeout = 408,
34
+ Conflict = 409,
35
+ Gone = 410,
36
+ LengthRequired = 411,
37
+ PreconditionFailed = 412,
38
+ PayloadTooLarge = 413,
39
+ UriTooLong = 414,
40
+ UnsupportedMediaType = 415,
41
+ RangeNotSatisfiable = 416,
42
+ ExpectationFailed = 417,
43
+ ImATeapot = 418,
44
+ MisdirectedRequest = 421,
45
+ UnprocessableEntity = 422,
46
+ Locked = 423,
47
+ FailedDependency = 424,
48
+ TooEarly = 425,
49
+ UpgradeRequired = 426,
50
+ PreconditionRequired = 428,
51
+ TooManyRequests = 429,
52
+ RequestHeaderFieldsTooLarge = 431,
53
+ UnavailableForLegalReasons = 451,
54
+ InternalServerError = 500,
55
+ NotImplemented = 501,
56
+ BadGateway = 502,
57
+ ServiceUnavailable = 503,
58
+ GatewayTimeout = 504,
59
+ HttpVersionNotSupported = 505,
60
+ VariantAlsoNegotiates = 506,
61
+ InsufficientStorage = 507,
62
+ LoopDetected = 508,
63
+ NotExtended = 510,
64
+ NetworkAuthenticationRequired = 511
65
+ }
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HttpStatusCode = void 0;
4
+ var HttpStatusCode;
5
+ (function (HttpStatusCode) {
6
+ HttpStatusCode[HttpStatusCode["Continue"] = 100] = "Continue";
7
+ HttpStatusCode[HttpStatusCode["SwitchingProtocols"] = 101] = "SwitchingProtocols";
8
+ HttpStatusCode[HttpStatusCode["Processing"] = 102] = "Processing";
9
+ HttpStatusCode[HttpStatusCode["EarlyHints"] = 103] = "EarlyHints";
10
+ HttpStatusCode[HttpStatusCode["Ok"] = 200] = "Ok";
11
+ HttpStatusCode[HttpStatusCode["Created"] = 201] = "Created";
12
+ HttpStatusCode[HttpStatusCode["Accepted"] = 202] = "Accepted";
13
+ HttpStatusCode[HttpStatusCode["NonAuthoritativeInformation"] = 203] = "NonAuthoritativeInformation";
14
+ HttpStatusCode[HttpStatusCode["NoContent"] = 204] = "NoContent";
15
+ HttpStatusCode[HttpStatusCode["ResetContent"] = 205] = "ResetContent";
16
+ HttpStatusCode[HttpStatusCode["PartialContent"] = 206] = "PartialContent";
17
+ HttpStatusCode[HttpStatusCode["MultiStatus"] = 207] = "MultiStatus";
18
+ HttpStatusCode[HttpStatusCode["AlreadyReported"] = 208] = "AlreadyReported";
19
+ HttpStatusCode[HttpStatusCode["ImUsed"] = 226] = "ImUsed";
20
+ HttpStatusCode[HttpStatusCode["MultipleChoices"] = 300] = "MultipleChoices";
21
+ HttpStatusCode[HttpStatusCode["MovedPermanently"] = 301] = "MovedPermanently";
22
+ HttpStatusCode[HttpStatusCode["Found"] = 302] = "Found";
23
+ HttpStatusCode[HttpStatusCode["SeeOther"] = 303] = "SeeOther";
24
+ HttpStatusCode[HttpStatusCode["NotModified"] = 304] = "NotModified";
25
+ HttpStatusCode[HttpStatusCode["UseProxy"] = 305] = "UseProxy";
26
+ HttpStatusCode[HttpStatusCode["Unused"] = 306] = "Unused";
27
+ HttpStatusCode[HttpStatusCode["TemporaryRedirect"] = 307] = "TemporaryRedirect";
28
+ HttpStatusCode[HttpStatusCode["PermanentRedirect"] = 308] = "PermanentRedirect";
29
+ HttpStatusCode[HttpStatusCode["BadRequest"] = 400] = "BadRequest";
30
+ HttpStatusCode[HttpStatusCode["Unauthorized"] = 401] = "Unauthorized";
31
+ HttpStatusCode[HttpStatusCode["PaymentRequired"] = 402] = "PaymentRequired";
32
+ HttpStatusCode[HttpStatusCode["Forbidden"] = 403] = "Forbidden";
33
+ HttpStatusCode[HttpStatusCode["NotFound"] = 404] = "NotFound";
34
+ HttpStatusCode[HttpStatusCode["MethodNotAllowed"] = 405] = "MethodNotAllowed";
35
+ HttpStatusCode[HttpStatusCode["NotAcceptable"] = 406] = "NotAcceptable";
36
+ HttpStatusCode[HttpStatusCode["ProxyAuthenticationRequired"] = 407] = "ProxyAuthenticationRequired";
37
+ HttpStatusCode[HttpStatusCode["RequestTimeout"] = 408] = "RequestTimeout";
38
+ HttpStatusCode[HttpStatusCode["Conflict"] = 409] = "Conflict";
39
+ HttpStatusCode[HttpStatusCode["Gone"] = 410] = "Gone";
40
+ HttpStatusCode[HttpStatusCode["LengthRequired"] = 411] = "LengthRequired";
41
+ HttpStatusCode[HttpStatusCode["PreconditionFailed"] = 412] = "PreconditionFailed";
42
+ HttpStatusCode[HttpStatusCode["PayloadTooLarge"] = 413] = "PayloadTooLarge";
43
+ HttpStatusCode[HttpStatusCode["UriTooLong"] = 414] = "UriTooLong";
44
+ HttpStatusCode[HttpStatusCode["UnsupportedMediaType"] = 415] = "UnsupportedMediaType";
45
+ HttpStatusCode[HttpStatusCode["RangeNotSatisfiable"] = 416] = "RangeNotSatisfiable";
46
+ HttpStatusCode[HttpStatusCode["ExpectationFailed"] = 417] = "ExpectationFailed";
47
+ HttpStatusCode[HttpStatusCode["ImATeapot"] = 418] = "ImATeapot";
48
+ HttpStatusCode[HttpStatusCode["MisdirectedRequest"] = 421] = "MisdirectedRequest";
49
+ HttpStatusCode[HttpStatusCode["UnprocessableEntity"] = 422] = "UnprocessableEntity";
50
+ HttpStatusCode[HttpStatusCode["Locked"] = 423] = "Locked";
51
+ HttpStatusCode[HttpStatusCode["FailedDependency"] = 424] = "FailedDependency";
52
+ HttpStatusCode[HttpStatusCode["TooEarly"] = 425] = "TooEarly";
53
+ HttpStatusCode[HttpStatusCode["UpgradeRequired"] = 426] = "UpgradeRequired";
54
+ HttpStatusCode[HttpStatusCode["PreconditionRequired"] = 428] = "PreconditionRequired";
55
+ HttpStatusCode[HttpStatusCode["TooManyRequests"] = 429] = "TooManyRequests";
56
+ HttpStatusCode[HttpStatusCode["RequestHeaderFieldsTooLarge"] = 431] = "RequestHeaderFieldsTooLarge";
57
+ HttpStatusCode[HttpStatusCode["UnavailableForLegalReasons"] = 451] = "UnavailableForLegalReasons";
58
+ HttpStatusCode[HttpStatusCode["InternalServerError"] = 500] = "InternalServerError";
59
+ HttpStatusCode[HttpStatusCode["NotImplemented"] = 501] = "NotImplemented";
60
+ HttpStatusCode[HttpStatusCode["BadGateway"] = 502] = "BadGateway";
61
+ HttpStatusCode[HttpStatusCode["ServiceUnavailable"] = 503] = "ServiceUnavailable";
62
+ HttpStatusCode[HttpStatusCode["GatewayTimeout"] = 504] = "GatewayTimeout";
63
+ HttpStatusCode[HttpStatusCode["HttpVersionNotSupported"] = 505] = "HttpVersionNotSupported";
64
+ HttpStatusCode[HttpStatusCode["VariantAlsoNegotiates"] = 506] = "VariantAlsoNegotiates";
65
+ HttpStatusCode[HttpStatusCode["InsufficientStorage"] = 507] = "InsufficientStorage";
66
+ HttpStatusCode[HttpStatusCode["LoopDetected"] = 508] = "LoopDetected";
67
+ HttpStatusCode[HttpStatusCode["NotExtended"] = 510] = "NotExtended";
68
+ HttpStatusCode[HttpStatusCode["NetworkAuthenticationRequired"] = 511] = "NetworkAuthenticationRequired";
69
+ })(HttpStatusCode || (exports.HttpStatusCode = HttpStatusCode = {}));
@@ -0,0 +1,3 @@
1
+ export * from "./interface";
2
+ export * from "./type";
3
+ export * from "./enum";
@@ -0,0 +1,19 @@
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);
19
+ __exportStar(require("./enum"), exports);
@@ -0,0 +1,40 @@
1
+ import { SidoId, SigunguId } from "../../../data";
2
+ import { HttpStatusCode } from "./enum";
3
+ /**
4
+ * @description 시도 정보
5
+ */
6
+ export interface Sido {
7
+ id: SidoId;
8
+ name: string;
9
+ name_short: string;
10
+ }
11
+ export interface Sigungu {
12
+ id: SigunguId;
13
+ sido: Sido;
14
+ name: string | null;
15
+ }
16
+ /**
17
+ * @description 지역 정보
18
+ */
19
+ export interface Region {
20
+ sidoId: SidoId;
21
+ sido: string;
22
+ sigunguId: SigunguId;
23
+ sigungu: string | null;
24
+ }
25
+ /** 카사요 앱에서 발생된 모든 에러 응답은 이 양식을 따릅니다. */
26
+ export interface CarsayoErrorResponse {
27
+ /** 에러 코드
28
+ * @example E-EDFOKD1443
29
+ */
30
+ error: string;
31
+ /** 에러 메시지 */
32
+ message: string;
33
+ statusCode: HttpStatusCode;
34
+ /** 에러 발생 요청 경로
35
+ * @example /order/commission/finish
36
+ */
37
+ path: string;
38
+ /** 에러 발생 시간 */
39
+ timestamp: Date;
40
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ import { MemberType } from "../member";
2
+ export type ContentTarget = null | MemberType;
3
+ export declare const DeviceType: {
4
+ readonly IOS: "IOS";
5
+ readonly Android: "Android";
6
+ readonly Web: "Web";
7
+ readonly MobileWeb: "MobileWeb";
8
+ };
9
+ export type DeviceType = keyof typeof DeviceType;
10
+ export declare const OrderMethod: {
11
+ readonly desc: "desc";
12
+ readonly asc: "asc";
13
+ };
14
+ export type OrderMethod = keyof typeof OrderMethod;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrderMethod = exports.DeviceType = void 0;
4
+ exports.DeviceType = {
5
+ IOS: "IOS",
6
+ Android: "Android",
7
+ Web: "Web",
8
+ MobileWeb: "MobileWeb",
9
+ };
10
+ exports.OrderMethod = {
11
+ desc: "desc",
12
+ asc: "asc",
13
+ };
@@ -0,0 +1,4 @@
1
+ /** DTO는 서버단에 요청을 보낼 때 사용하는 클래스 유형으로 서버단에서 이 곳에 정의된 대로 유효성 검사를 처리합니다. */
2
+ export declare class GetHolidayDTO {
3
+ year: number;
4
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ /** DTO는 서버단에 요청을 보낼 때 사용하는 클래스 유형으로 서버단에서 이 곳에 정의된 대로 유효성 검사를 처리합니다. */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.GetHolidayDTO = void 0;
5
+ class GetHolidayDTO {
6
+ }
7
+ exports.GetHolidayDTO = GetHolidayDTO;
@@ -0,0 +1,2 @@
1
+ export * from "./dto";
2
+ export * from "./interface";
@@ -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("./dto"), exports);
18
+ __exportStar(require("./interface"), exports);
@@ -0,0 +1,6 @@
1
+ export interface Holiday {
2
+ year: number;
3
+ month: number;
4
+ locdate: string;
5
+ dateName: string;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,18 @@
1
+ /** DTO는 서버단에 요청을 보낼 때 사용하는 클래스 유형으로 서버단에서 이 곳에 정의된 대로 유효성 검사를 처리합니다. */
2
+ export interface FileIdDTO {
3
+ fileId: string;
4
+ }
5
+ export interface GetFileUploadUrlDTO {
6
+ fileName: string;
7
+ /** @example png */
8
+ extension: string;
9
+ /**
10
+ * @public 공개파일
11
+ * @private 비공개 파일, 소유자와 어드민만 확인 가능
12
+ */
13
+ isPublic: "true" | "false";
14
+ /** 적절한 파일 유형을 영문으로 입력해 주세용
15
+ * @notice "profileImage"일 경우에는 서버단에서 추가적인 이미지 처리를 합니다. 프로필 이미지 업로드에는 무조건 해 주세용
16
+ */
17
+ fileType: string | "profileImage";
18
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ /** DTO는 서버단에 요청을 보낼 때 사용하는 클래스 유형으로 서버단에서 이 곳에 정의된 대로 유효성 검사를 처리합니다. */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export * from "./dto";
2
+ export * from "./interface";
3
+ export * from "./type";
@@ -0,0 +1,19 @@
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);
@@ -0,0 +1,26 @@
1
+ import { FileState } from "./type";
2
+ export interface FileInfo {
3
+ id: string;
4
+ member_id: string | null;
5
+ name: string;
6
+ /** filesize (byte단위) */
7
+ size: number | null;
8
+ /** image/png */
9
+ contentType: string;
10
+ /** png */
11
+ extension: string;
12
+ url: string;
13
+ type: string;
14
+ state: FileState;
15
+ isPublic: boolean;
16
+ created_at: Date;
17
+ deleted_at: Date | null;
18
+ updated_at: Date;
19
+ }
20
+ export interface GetFileUploadUrlResponseDTO {
21
+ /** AWS PUT request Presigned URL */
22
+ presignedUrl: string;
23
+ fileId: string;
24
+ fileUrl: string;
25
+ isPublic: boolean;
26
+ }