@carsayo/types 1.1.0 → 1.1.2

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 (106) hide show
  1. package/dist/data/bankcode.d.ts +167 -0
  2. package/dist/data/banner.d.ts +36 -0
  3. package/dist/data/board.d.ts +32 -0
  4. package/dist/data/car.d.ts +867 -0
  5. package/dist/data/carPopularCategory.d.ts +20 -0
  6. package/dist/data/collaborator.d.ts +8 -0
  7. package/dist/data/index.d.ts +12 -0
  8. package/dist/data/popup.d.ts +20 -0
  9. package/dist/data/purchase.d.ts +18 -0
  10. package/dist/data/region.d.ts +1224 -0
  11. package/dist/data/role.d.ts +91 -0
  12. package/dist/data/system.d.ts +19 -0
  13. package/dist/data/term.d.ts +153 -0
  14. package/dist/index.d.ts +2 -7
  15. package/dist/types/index.d.ts +2 -0
  16. package/dist/types/modules/banner/dto.d.ts +35 -0
  17. package/dist/types/modules/banner/index.d.ts +2 -0
  18. package/dist/types/modules/banner/interface.d.ts +50 -0
  19. package/dist/types/modules/board/dto.d.ts +189 -0
  20. package/dist/types/modules/board/index.d.ts +3 -0
  21. package/dist/types/modules/board/interface.d.ts +233 -0
  22. package/dist/types/modules/board/type.d.ts +29 -0
  23. package/dist/types/modules/car/dto.d.ts +72 -0
  24. package/dist/types/modules/car/index.d.ts +3 -0
  25. package/dist/types/modules/car/interface.d.ts +249 -0
  26. package/dist/types/modules/car/type.d.ts +11 -0
  27. package/dist/types/modules/collaborator/dto.d.ts +10 -0
  28. package/dist/types/modules/collaborator/index.d.ts +1 -0
  29. package/dist/types/modules/common/index.d.ts +2 -0
  30. package/dist/types/modules/common/interface.d.ts +23 -0
  31. package/dist/types/modules/common/type.d.ts +25 -0
  32. package/dist/types/modules/file/dto.d.ts +17 -0
  33. package/dist/types/modules/file/index.d.ts +3 -0
  34. package/dist/types/modules/file/interface.d.ts +26 -0
  35. package/dist/types/modules/file/type.d.ts +13 -0
  36. package/dist/types/modules/history/dto.d.ts +12 -0
  37. package/dist/types/modules/history/index.d.ts +2 -0
  38. package/dist/types/modules/history/interface.d.ts +12 -0
  39. package/dist/types/modules/index.d.ts +15 -0
  40. package/dist/types/modules/inquiry/dto.d.ts +79 -0
  41. package/dist/types/modules/inquiry/index.d.ts +3 -0
  42. package/dist/types/modules/inquiry/interface.d.ts +37 -0
  43. package/dist/types/modules/inquiry/type.d.ts +14 -0
  44. package/dist/types/modules/member/dto.d.ts +587 -0
  45. package/dist/types/modules/member/index.d.ts +3 -0
  46. package/dist/types/modules/member/interface.d.ts +582 -0
  47. package/dist/types/modules/member/type.d.ts +73 -0
  48. package/dist/types/modules/notification/dto.d.ts +13 -0
  49. package/dist/types/modules/notification/index.d.ts +3 -0
  50. package/dist/types/modules/notification/interface.d.ts +19 -0
  51. package/dist/types/modules/notification/type.d.ts +5 -0
  52. package/dist/types/modules/order/dto.d.ts +446 -0
  53. package/dist/types/modules/order/index.d.ts +3 -0
  54. package/dist/types/modules/order/interface.d.ts +905 -0
  55. package/dist/types/modules/order/type.d.ts +161 -0
  56. package/dist/types/modules/popup/dto.d.ts +33 -0
  57. package/dist/types/modules/popup/index.d.ts +2 -0
  58. package/dist/types/modules/popup/interface.d.ts +49 -0
  59. package/dist/types/modules/purchase/dto.d.ts +9 -0
  60. package/dist/types/modules/purchase/index.d.ts +3 -0
  61. package/dist/types/modules/purchase/interface.d.ts +22 -0
  62. package/dist/types/modules/purchase/type.d.ts +11 -0
  63. package/dist/types/modules/system/dto.d.ts +13 -0
  64. package/dist/types/modules/system/index.d.ts +2 -0
  65. package/dist/types/modules/system/interface.d.ts +18 -0
  66. package/dist/types/modules/term/dto.d.ts +175 -0
  67. package/dist/types/modules/term/index.d.ts +2 -0
  68. package/dist/types/modules/term/interface.d.ts +45 -0
  69. package/dist/types/providers/coocon-usedcar/dto.d.ts +23 -0
  70. package/dist/types/providers/coocon-usedcar/index.d.ts +2 -0
  71. package/dist/types/providers/coocon-usedcar/interface.d.ts +300 -0
  72. package/dist/types/providers/firebase-message/dto.d.ts +83 -0
  73. package/dist/types/providers/firebase-message/index.d.ts +2 -0
  74. package/dist/types/providers/firebase-message/interface.d.ts +4 -0
  75. package/dist/types/providers/gabia-sms/dto.d.ts +31 -0
  76. package/dist/types/providers/gabia-sms/index.d.ts +1 -0
  77. package/dist/types/providers/index.d.ts +7 -0
  78. package/dist/types/providers/mailer/dto.d.ts +4 -0
  79. package/dist/types/providers/mailer/index.d.ts +1 -0
  80. package/dist/types/providers/niceapi/dto.d.ts +15 -0
  81. package/dist/types/providers/niceapi/index.d.ts +2 -0
  82. package/dist/types/providers/niceapi/interface.d.ts +22 -0
  83. package/dist/types/providers/nicepayment/dto.d.ts +60 -0
  84. package/dist/types/providers/nicepayment/index.d.ts +3 -0
  85. package/dist/types/providers/nicepayment/interface.d.ts +168 -0
  86. package/dist/types/providers/nicepayment/type.d.ts +36 -0
  87. package/dist/validator/IsNullable.d.ts +3 -0
  88. package/package.json +5 -1
  89. package/dist/type/all.ts +0 -5402
  90. package/dist/type/data/bankcode.ts +0 -64
  91. package/dist/type/data/banner.ts +0 -45
  92. package/dist/type/data/board.ts +0 -37
  93. package/dist/type/data/car.ts +0 -1015
  94. package/dist/type/data/carPopularCategory.ts +0 -28
  95. package/dist/type/data/collaborator.ts +0 -13
  96. package/dist/type/data/popup.ts +0 -26
  97. package/dist/type/data/purchase.ts +0 -24
  98. package/dist/type/data/region.ts +0 -348
  99. package/dist/type/data/role.ts +0 -118
  100. package/dist/type/data/system.ts +0 -31
  101. package/dist/type/data/term.ts +0 -184
  102. package/dist/type/history.ts +0 -25
  103. package/dist/type/interface/type.ts +0 -43
  104. package/dist/type/order.ts +0 -696
  105. package/dist/type/purchase.ts +0 -286
  106. package/dist/type/selling.ts +0 -169
@@ -1,286 +0,0 @@
1
- import {
2
- CarMaker,
3
- CarModel,
4
- CarTrim,
5
- CarGrade,
6
- CarColor,
7
- CarOption,
8
- FileInfo,
9
- } from './all';
10
- import { CarMakerId } from './data/car';
11
- import { SigunguId } from './data/region';
12
- import { BuyerType, DutyFreeCondition } from './interface/type';
13
-
14
- export interface PurchaseAdditionalInfo {
15
- /** 구매 방법 */
16
- method: '리스' | '렌트' | '할부' | '일시불';
17
-
18
- 리스: {
19
- /** 계약 기간
20
- * @notice 리스, 장기렌트시 값이 필요합니다
21
- * @case 24, 36, 48, 60
22
- */
23
- contractTerm?: number;
24
-
25
- /** 보증금 */
26
- price_deposit?: number;
27
-
28
- /** 선납금 */
29
- price_advancedPayment?: number;
30
-
31
- /** 잔존가치 */
32
- price_residual?: number;
33
-
34
- /** 약정거리 */
35
- agreeDistace?: number;
36
-
37
- /** 구매시 인수지역 */
38
- deliveryRegion?: SigunguId;
39
-
40
- /** 구매 주체 */
41
- buyerType?: BuyerType;
42
-
43
- /** 자동차세 포함여부 */
44
- isIncludingCarTax?: boolean;
45
- };
46
-
47
- 렌트: {
48
- /** 계약 기간
49
- * @notice 리스, 장기렌트시 값이 필요합니다
50
- * @case 24, 36, 48, 60
51
- */
52
- contractTerm?: number;
53
-
54
- /** 보증금
55
- * @notice 리스, 장기렌트시 값이 필요합니다
56
- */
57
- price_deposit?: number;
58
-
59
- /** 선납금
60
- * @notice 리스, 장기렌트시 값이 필요합니다
61
- */
62
- price_advancedPayment?: number;
63
-
64
- /** 잔존가치
65
- * @notice 리스, 장기렌트시 값이 필요합니다
66
- */
67
- price_residual?: number;
68
-
69
- /** 약정거리
70
- * @notice 리스, 장기렌트시 값이 필요
71
- */
72
- agreeDistace?: number;
73
-
74
- /** 정비 플랜
75
- * @notice 장기렌트시 정의
76
- * @case 일반형: 셀프 정비
77
- * @case 고급형: 입고 정비
78
- * @case 최고급형: 순회 정비
79
- */
80
- maintenancePlan?: '일반형' | '고급형' | '최고급형';
81
-
82
- /** 운전자 최소 연령
83
- * @notice 운전자 21세이상, 26세 이상 여부 처리용
84
- */
85
- driverMiniumAge?: number;
86
-
87
- /** 면책금
88
- * @notice 장기렌트시 값 필요
89
- */
90
- indemnityAmount?: number;
91
-
92
- /** 대물보험담보
93
- * @notice 장기렌트시 값 필요
94
- */
95
- propertyDamageCoverage?: number;
96
-
97
- /** 자손보험담보
98
- * @notice 장기렌트시 값 필요
99
- */
100
- personalInjuryCoverage?: number;
101
-
102
- /** 구매 주체 */
103
- buyerType?: BuyerType;
104
-
105
- /** 구매시 인수지역 */
106
- deliveryRegion?: SigunguId;
107
- };
108
-
109
- 할부: {
110
- /** 할부 개월
111
- * @notice 할부 선택시 값이 필요합니다
112
- */
113
- installmentTerm?: number;
114
-
115
- /** 구매자 거주지역 */
116
- residenceRegion?: SigunguId;
117
-
118
- /** 구매시 인수지역 */
119
- deliveryRegion?: SigunguId;
120
-
121
- /** 구매 주체 */
122
- buyerType?: BuyerType;
123
-
124
- /** 면세조건 */
125
- dutyFreeCondition: DutyFreeCondition;
126
-
127
- /** 선수금 (인도금)
128
- * @description 원 단위입니다
129
- */
130
- prepaidPrincipalAmount?: number;
131
-
132
- /** 등록비 포함/미포함 */
133
- isRegistrationFee?: boolean;
134
-
135
- /** 할부원금
136
- * @description 원 단위입니다
137
- * @notice null일 경우 "생략" 입니다.
138
- */
139
- installmentPrincipal?: number | null;
140
-
141
- /** 구입시기 (일자)
142
- * @description YYYYMMDD형식입니다
143
- * @notice null일 경우 "1개월 이내" 입니다.
144
- */
145
- purchaseDate?: string | null;
146
- };
147
-
148
- 일시불: {
149
- /** 구매자 거주지역 */
150
- residenceRegion?: SigunguId;
151
-
152
- /** 구매시 인수지역 */
153
- deliveryRegion?: SigunguId;
154
-
155
- /** 구매 주체 */
156
- buyerType?: BuyerType;
157
-
158
- /** 면세조건 */
159
- dutyFreeCondition?: DutyFreeCondition;
160
-
161
- /** 구입시기 (일자)
162
- * @description YYYYMMDD형식입니다
163
- * @notice null일 경우 "1개월 이내" 입니다.
164
- */
165
- purchaseDate?: string | null;
166
- };
167
- }
168
-
169
- /**
170
- * @description 주문 정보를 업데이트할 때 값을 입력해 주세요
171
- * @description 값이 입력되면 업데이트되며, Null일 경우 값을 제거합니다
172
- */
173
- export interface PurchaseOrderUpdateDTO {
174
- /** 진척도(0~100 사이 float) */
175
- progress?: number;
176
-
177
- /** 임시저장된 path
178
- * @example /purchase/brand
179
- */
180
- currentPath?: string;
181
-
182
- carMakerId?: CarMakerId | null;
183
-
184
- carModelId?: number | null;
185
-
186
- carTrimId?: number | null;
187
-
188
- carGradeId?: number | null;
189
-
190
- carColorId?: number | null;
191
-
192
- /** "색상은 나중에 결정할게요" 선택시 */
193
- isNotSelectColor?: boolean | null;
194
-
195
- carOptionIdList?: number[] | null;
196
-
197
- /** 타사 견적서 혜택내용 (선택)
198
- * @notice isSuperCar일 경우 입력받지 않습니다.
199
- */
200
- otherCompanyEstimateContent?: string | null;
201
- /** 타사 견적서 파일
202
- * @notice isSuperCar === true일 경우 타사에서 제시한 리스렌트 견적서가 아니라, 차량 구매 계약서가 됩니다.
203
- */
204
- otherCompanyEstimateFileId?: string | null;
205
-
206
- /** 요청내용 (선택) */
207
- additionalRequest?: string | null;
208
-
209
- /** 추가적인 내용을 자유롭게 저장합니다 */
210
- additionalInfo?: PurchaseAdditionalInfo | null;
211
- }
212
-
213
- /** 작성중인 주문 상세정보 */
214
- export interface PurchaseOrderInfo {
215
- /** 제출된 주문인지 */
216
- isSubmitted: boolean;
217
-
218
- /** 진척도(0~100 사이 float) */
219
- progress: number;
220
-
221
- /** 슈퍼카 브랜드 여부
222
- * @notice 리스/렌트에서만 선택 가능합니다.
223
- */
224
- isSuperCar: boolean;
225
-
226
- /** 임시저장된 시점의 path
227
- * 주문 이어하기 기능을 위해 저장하는 값입니다
228
- * @example /purchase/brand
229
- */
230
- currentPath: string;
231
-
232
- carMaker?: CarMaker;
233
- carModel?: CarModel;
234
- carTrim?: CarTrim;
235
- carGrade?: CarGrade;
236
- carColor?: CarColor;
237
-
238
- /** "색상은 나중에 결정할게요" 선택 여부 */
239
- isNotSelectColor?: boolean;
240
-
241
- carOptionList: CarOption[];
242
-
243
- /** 타사 견적서 혜택내용 (선택)
244
- * @notice isSuperCar일 경우 입력받지 않습니다.
245
- */
246
- otherCompanyEstimateContent?: string | null;
247
- /** 타사 견적서 파일
248
- * @notice isSuperCar === true일 경우 타사에서 제시한 리스렌트 견적서가 아니라, 차량 구매 계약서가 됩니다.
249
- */
250
- otherCompanyEstimateFile?: FileInfo;
251
-
252
- /** 요청내용 (선택) */
253
- additionalRequest?: string;
254
-
255
- /** 추가적인 내용을 자유롭게 저장합니다 */
256
- additionalInfo: PurchaseAdditionalInfo;
257
-
258
- created_at: Date;
259
- updated_at: Date;
260
- }
261
-
262
- /** 차량 주문 DTO */
263
- export interface PurchaseOrderDTO {
264
- id: string;
265
-
266
- type: 'leaseRent' | 'newCar';
267
-
268
- /**
269
- * 차량 주문에 대한 상세정보
270
- * @notice 요청시 사용하거나, 유효성 검사를 하지 않는 단순 데이터입니다
271
- * @notice 요청 응답시에는 무조건 값이 정의됩니다!!
272
- */
273
- orderData?: PurchaseOrderInfo;
274
-
275
- /**
276
- * @description 이 객체에 값이 입력되면 업데이트되며, Null일 경우 값을 제거합니다.
277
- */
278
- update?: PurchaseOrderUpdateDTO;
279
- }
280
-
281
- /** 차량 주문 시작 DTO */
282
- export interface PurchaseInitDTO {
283
- type: 'leaseRent' | 'newCar';
284
-
285
- carModelId?: number;
286
- }
@@ -1,169 +0,0 @@
1
- import { CooconAccidentHistoryInfo, CooconUsedCarInfo, FileInfo } from './all';
2
- import { SigunguId } from './data/region';
3
- import { SellCarBoughtMethod } from './interface/type';
4
-
5
- /** 내차팔기 주문 작성 시작 */
6
- export interface SellingInitDTO {
7
- /** 쿠콘 소유자검증차량정보 API 상세조회 결과 Id */
8
- usedCarInfoId: string;
9
-
10
- /** 쿠콘 사고이력조회 결과 Id */
11
- accidentHistoryId?: string;
12
- }
13
-
14
- export interface SellingAdditionalInfo {
15
- /** 차량에 장착된 추가 옵션을 선택해주세요 내용 */
16
- optionSelect: {
17
- optionList: { optname: string; optprice: number }[];
18
- /** 옵션 없음 */
19
- 옵션없음: boolean;
20
- /** 직접 입력 */
21
- 직접입력: {
22
- selected: boolean;
23
- content?: string;
24
- };
25
- };
26
-
27
- carState: {
28
- 타이어교체: {
29
- selected: boolean;
30
- content?: string;
31
- };
32
-
33
- 외관스크래치: {
34
- selected: boolean;
35
- content?: string;
36
- };
37
-
38
- 정비수리필요: {
39
- selected: boolean;
40
- content?: string;
41
- additional?: string;
42
- };
43
-
44
- 차량장단점: {
45
- selected: boolean;
46
- content?: string;
47
- };
48
- };
49
-
50
- accident: {
51
- 사고없음: {
52
- selected: boolean;
53
- content?: string;
54
- };
55
-
56
- 판금교환: {
57
- selected: boolean;
58
- content?: string;
59
- };
60
-
61
- 모름: {
62
- selected: boolean;
63
- content?: string;
64
- };
65
- };
66
- }
67
-
68
- /**
69
- * @description 주문 정보를 업데이트할 때 값을 입력해 주세요
70
- * @description 값이 입력되면 업데이트되며, Null일 경우 값을 제거합니다
71
- */
72
- export class SellingOrderUpdateDTO {
73
- /** 진척도(0~100 사이 float) */
74
- progress?: number;
75
-
76
- /** 주문 작성 임시저장 Step
77
- * @description Step은 클라이언트단에서 진행상태를 나타내기 위해 사용하는 값입니다
78
- */
79
- currentStep?: number;
80
-
81
- /** 입력받은 주행거리 */
82
- drivenDistance?: number | null;
83
-
84
- /** 판매 지역 */
85
- sellRegionId?: SigunguId | null;
86
-
87
- /** 차량 구매 방식 */
88
- boughtMethod?: SellCarBoughtMethod | null;
89
-
90
- /** 요청내용 (선택) */
91
- additionalRequest?: string | null;
92
-
93
- /** 추가적인 내용을 자유롭게 저장합니다 */
94
- additionalInfo?: SellingAdditionalInfo | null;
95
-
96
- file_1_id?: string | null;
97
- file_2_id?: string | null;
98
- file_3_id?: string | null;
99
- file_4_id?: string | null;
100
- file_5_id?: string | null;
101
- file_6_id?: string | null;
102
- }
103
-
104
- /** 작성중인 주문 상세정보 */
105
- export interface SellingOrderInfo {
106
- /** 해당 주문 Id
107
- * @uuid
108
- */
109
- id: string;
110
-
111
- /** 제출된 주문인지 */
112
- isSubmitted: boolean;
113
-
114
- /** 진척도(0~100 사이 float) */
115
- progress: number;
116
-
117
- /** 주문 작성 임시저장 Step
118
- * @description Step은 클라이언트단에서 진행상태를 나타내기 위해 사용하는 값입니다
119
- */
120
- currentStep: number;
121
-
122
- /** 쿠콘에서 조회하여 DB에 기록된 차량 정보 */
123
- usedCarInfo: CooconUsedCarInfo;
124
- /** 쿠콘에서 조회하여 DB에 기록된 사고이력 정보 */
125
- accidentHistory: CooconAccidentHistoryInfo | null;
126
-
127
- /** 입력받은 주행거리 */
128
- drivenDistance: number | null;
129
-
130
- /** 판매 지역 */
131
- sellRegionId: SigunguId | null;
132
-
133
- /** 차량 구매 방식 */
134
- boughtMethod: SellCarBoughtMethod | null;
135
-
136
- /** 요청내용 (선택) */
137
- additionalRequest: string | null;
138
-
139
- /** 추가적인 내용을 자유롭게 저장합니다 */
140
- additionalInfo: SellingAdditionalInfo;
141
-
142
- /** 업로드된 사진 리스트 */
143
- file: {
144
- file_1: FileInfo | null;
145
- file_2: FileInfo | null;
146
- file_3: FileInfo | null;
147
- file_4: FileInfo | null;
148
- file_5: FileInfo | null;
149
- file_6: FileInfo | null;
150
- };
151
-
152
- created_at: Date;
153
- updated_at: Date;
154
- }
155
-
156
- /** 차량 주문 DTO */
157
- export interface SellingOrderDTO {
158
- /**
159
- * 차량 주문에 대한 상세정보
160
- * @notice 요청시 사용하거나, 유효성 검사를 하지 않는 단순 데이터입니다
161
- * @notice 요청 응답시에는 무조건 값이 정의됩니다!!
162
- */
163
- orderData: SellingOrderInfo;
164
-
165
- /**
166
- * @description 이 객체에 값이 입력되면 업데이트되며, Null일 경우 값을 제거합니다.
167
- */
168
- update?: SellingOrderUpdateDTO;
169
- }