@carsayo/types 1.1.8899 → 1.1.8901

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.
@@ -1,5 +1,5 @@
1
1
  /** DTO는 서버단에 요청을 보낼 때 사용하는 클래스 유형으로 서버단에서 이 곳에 정의된 대로 유효성 검사를 처리합니다. */
2
- import { CarMakerId, PopularCarCategoryId } from "../../../data";
2
+ import { CarCategoryId, CarMakerId, CarShapeId, PopularCarCategoryId } from "../../../data";
3
3
  export interface GetCarModelDTO {
4
4
  carMakerId: CarMakerId;
5
5
  /**
@@ -185,4 +185,40 @@ export interface ModifyCarSortOrderDTO {
185
185
  key: "maker" | "model" | "trim" | "grade";
186
186
  data: UpdateSortOrderDTO[];
187
187
  }
188
+ export interface CreateCarModelDTO {
189
+ /** 제조사 ID */
190
+ makerId: CarMakerId;
191
+ /** 모델 이름 */
192
+ name: string;
193
+ /** 모델 브랜드 이름 */
194
+ name_brand: string;
195
+ /** 모델 이미지 URL */
196
+ image_url: string;
197
+ /** YYYYMM 형식의 출시일 */
198
+ release_day: string;
199
+ /** 카테고리 */
200
+ car_category: CarCategoryId;
201
+ /** 전기차 모델 여부 (기본값 false) */
202
+ isElectric?: boolean;
203
+ }
204
+ export interface CreateCarTrimDTO {
205
+ /** 모델 ID */
206
+ modelId: number;
207
+ /** 트림 이름 */
208
+ name: string;
209
+ /** 트림 이미지 URL */
210
+ image_url: string;
211
+ /** 카테고리 */
212
+ car_shape: CarShapeId;
213
+ }
214
+ export interface CreateCarGradeDTO {
215
+ /** 트림 ID */
216
+ trimId: number;
217
+ /** 상세등급 이름 */
218
+ name: string;
219
+ /** 가격 */
220
+ price: number;
221
+ /** YYYYMM 형식의 출시년월 */
222
+ released_month: string;
223
+ }
188
224
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carsayo/types",
3
- "version": "1.1.8899",
3
+ "version": "1.1.8901",
4
4
  "description": "Carsayo app type",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",