@carsayo/types 1.1.89101 → 1.1.89103

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.
@@ -131,7 +131,7 @@ export interface ModifyCarGradeDTO {
131
131
  gradeName: string;
132
132
  gradePrice: number;
133
133
  /**
134
- * @description 탑승 인원 수 numberString
134
+ * @description 탑승 인원 수
135
135
  * @db 0일 경우 빈 문자열 DB에 삽입
136
136
  */
137
137
  seatingCapacity: number;
@@ -141,7 +141,7 @@ export interface ModifyCarGradeDTO {
141
141
  */
142
142
  fuel: string;
143
143
  /**
144
- * @description 엔진 배기량 numberString
144
+ * @description 엔진 배기량
145
145
  * @db 0일 경우 빈 문자열 DB에 삽입
146
146
  */
147
147
  displace: number;
@@ -162,8 +162,26 @@ export interface ModifyCarOptionDTO {
162
162
  export declare class ModifyCarColorDTO {
163
163
  id: number;
164
164
  gradeId: number;
165
+ /** 색상 이름 */
165
166
  colorName: string;
167
+ /** 색상 가격 */
166
168
  colorPrice: number;
169
+ /** 색상 코드 (주색)
170
+ * @example "#222"
171
+ * @note null일 경우 제거
172
+ */
173
+ color_code_main?: string | null;
174
+ /** 색상 코드 (보조색)
175
+ * @example "#222"
176
+ * @note 다중 색상일 경우(2개 색상이 섞이는 경우) 정의
177
+ * @note null일 경우 제거
178
+ */
179
+ color_code_sub?: string | null;
180
+ /** 외장색상 여부
181
+ * @note 외장색상일 경우 false, 내장색상일 경우 true
182
+ * @default false
183
+ */
184
+ is_interior?: boolean;
167
185
  isHidden: boolean;
168
186
  }
169
187
  export interface ModifyCarOptionRelationDTO {
@@ -259,7 +277,7 @@ export interface CreateCarGradeDTO {
259
277
  */
260
278
  released_month?: string;
261
279
  /**
262
- * @description 탑승 인원 수 numberString
280
+ * @description 탑승 인원 수
263
281
  * @db 0일 경우 빈 문자열 DB에 삽입
264
282
  */
265
283
  seatingCapacity: number | 0;
@@ -269,7 +287,7 @@ export interface CreateCarGradeDTO {
269
287
  */
270
288
  fuel: string | "";
271
289
  /**
272
- * @description 엔진 배기량 numberString
290
+ * @description 엔진 배기량
273
291
  * @db 0일 경우 빈 문자열 DB에 삽입
274
292
  */
275
293
  displace: number | 0;
@@ -295,6 +313,27 @@ export interface CreateCarOptionDTO {
295
313
  name: string;
296
314
  price: number;
297
315
  }
316
+ export interface CreateCarColorDTO {
317
+ gradeId: number;
318
+ /** 색상 이름 */
319
+ name: string;
320
+ /** 색상 가격 */
321
+ price: number;
322
+ /** 색상 코드 (주색)
323
+ * @example "#222"
324
+ */
325
+ color_code_main?: string;
326
+ /** 색상 코드 (보조색)
327
+ * @example "#222"
328
+ * @note 다중 색상일 경우(2개 색상이 섞이는 경우) 정의
329
+ */
330
+ color_code_sub?: string;
331
+ /** 외장색상 여부
332
+ * @note 외장색상일 경우 false, 내장색상일 경우 true
333
+ * @default false
334
+ */
335
+ is_interior: boolean;
336
+ }
298
337
  export interface ConnectCarOptionDTO {
299
338
  gradeId: number;
300
339
  optionId: number;
@@ -116,7 +116,25 @@ export interface CarColor {
116
116
  name: string;
117
117
  name_short: string;
118
118
  price: number;
119
+ /** NiceDNR에서 제공하는 색상 이미지
120
+ * @note color_code가 우선적으로 사용되고, 해당 값이 없을 경우 이 이미지를 사용합니다.
121
+ */
119
122
  image_url: string;
123
+ /** 색상 코드 (주색)
124
+ * @example "#222"
125
+ * @note 관리자 페이지에서 색상 정의했을 경우 사용
126
+ */
127
+ color_code_main: string | null;
128
+ /** 색상 코드 (보조색)
129
+ * @example "#222"
130
+ * @note 다중 색상일 경우(2개 색상이 섞이는 경우) 정의
131
+ */
132
+ color_code_sub: string | null;
133
+ /** 외장색상 여부
134
+ * @note 외장색상일 경우 false, 내장색상일 경우 true
135
+ * @default false
136
+ */
137
+ is_interior: boolean;
120
138
  /** 숨김처리 여부 */
121
139
  isHidden: boolean;
122
140
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carsayo/types",
3
- "version": "1.1.89101",
3
+ "version": "1.1.89103",
4
4
  "description": "Carsayo app type",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",