@carsayo/types 1.1.763 → 1.1.764

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.
@@ -21,6 +21,9 @@ export interface GetCarColorDTO {
21
21
  export interface GetCarOptionDTO {
22
22
  carGradeId: number;
23
23
  }
24
+ export interface GetCarOptionDescriptionDTO {
25
+ carOptionDescriptionId: number;
26
+ }
24
27
  /** 차량 좋아요 정보 업데이트 */
25
28
  export interface UpdateInterestCarDTO {
26
29
  carModelId: number;
@@ -119,15 +119,56 @@ export interface CarColor {
119
119
  price: number;
120
120
  image_url: string;
121
121
  }
122
- /**
123
- * @description 차량 옵션
124
- */
122
+ /** 차량 옵션 */
125
123
  export interface CarOption {
126
124
  id: number;
127
125
  name: string;
128
126
  price: number;
129
127
  position: number;
130
128
  updated_day: string;
129
+ /** 옵션 설명 존재 시 옵션 설명 Id값 */
130
+ descriptionId: number | null;
131
+ relation: {
132
+ /** 이 옵션의 하위 옵션 리스트
133
+ * @notice CarOption의 Id값 리스트입니다.
134
+ * @example "파퓰러 패키지" 안에 "드라이브 와이즈 1"이 포함될 경우, "드라이브 와이즈 1"의 id값이 포함됩니다.
135
+ */
136
+ include: number[];
137
+ /** 이 옵션이 선택되려면 먼저 선택되어야 하는 옵션 리스트
138
+ * @notice CarOption의 Id값 리스트입니다.
139
+ */
140
+ nessary: number[];
141
+ /** 동시에 선택할 수 없는 옵션 리스트
142
+ * @notice CarOption의 Id값 리스트입니다.
143
+ */
144
+ incompatible: number[];
145
+ } | null;
146
+ }
147
+ /** 옵션에 대한 상세 설명 */
148
+ export interface CarOptionDescription {
149
+ id: number;
150
+ /** 옵션 설명 제목 */
151
+ name: string;
152
+ /** 상세 설명 내용,
153
+ * @notice 빈 String이 올 수 있습니다.
154
+ */
155
+ content: string;
156
+ /** 옵션 설명 이미지 url
157
+ * @example https://cdn.carsayo.net/resource/car/option/description/image/13181.jpg
158
+ */
159
+ imgSrc: string | null;
160
+ include: {
161
+ /** 옵션 하위 내용 제목 */
162
+ name: string;
163
+ /** 옵션 하위 내용 상세 설명
164
+ * @notice 빈 String이 올 수 있습니다.
165
+ */
166
+ content: string;
167
+ /** 옵션 설명 이미지 url
168
+ * @example https://cdn.carsayo.net/resource/car/option/description/image/13181.jpg
169
+ */
170
+ imgSrc: string | null;
171
+ }[];
131
172
  }
132
173
  export interface InterestCarInfo extends CarModel {
133
174
  created_at: Date;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carsayo/types",
3
- "version": "1.1.763",
3
+ "version": "1.1.764",
4
4
  "description": "Carsayo app type",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",