@carsayo/types 1.1.763 → 1.1.765

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.
@@ -0,0 +1,20 @@
1
+ /** 카사요 서비스 내 인기 차량 카테고리
2
+ * @relation RDB 내 car_popular_catrgory
3
+ * @frontend 카사요 앱 리액트 프로젝트, 카사요 어드민 웹
4
+ * @backend Prisma, Main_Service
5
+ */
6
+ export declare const CarOptionRelationCategory: readonly [{
7
+ readonly id: 0;
8
+ readonly title: "포함 관계";
9
+ readonly description: "car_option_1은 car_option_2를 포함하고 있습니다.";
10
+ }, {
11
+ readonly id: 1;
12
+ readonly title: "필요 관계";
13
+ readonly description: "car_option_1을 선택하기 위해서는 car_option_2를 필요로 합니다.";
14
+ }, {
15
+ readonly id: 2;
16
+ readonly title: "양립 불가 관계";
17
+ readonly description: "car_option_1는 car_option_2와 동시 선택될 수 없습니다.";
18
+ }];
19
+ export declare const CarOptionRelationCategoryId: (0 | 1 | 2)[];
20
+ export type CarOptionRelationCategoryId = (typeof CarOptionRelationCategory)[number]["id"];
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ /** 카사요 서비스 내 인기 차량 카테고리
3
+ * @relation RDB 내 car_popular_catrgory
4
+ * @frontend 카사요 앱 리액트 프로젝트, 카사요 어드민 웹
5
+ * @backend Prisma, Main_Service
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.CarOptionRelationCategoryId = exports.CarOptionRelationCategory = void 0;
9
+ exports.CarOptionRelationCategory = [
10
+ {
11
+ id: 0,
12
+ title: "포함 관계",
13
+ description: "car_option_1은 car_option_2를 포함하고 있습니다.",
14
+ },
15
+ {
16
+ id: 1,
17
+ title: "필요 관계",
18
+ description: "car_option_1을 선택하기 위해서는 car_option_2를 필요로 합니다.",
19
+ },
20
+ {
21
+ id: 2,
22
+ title: "양립 불가 관계",
23
+ description: "car_option_1는 car_option_2와 동시 선택될 수 없습니다.",
24
+ },
25
+ ];
26
+ exports.CarOptionRelationCategoryId = exports.CarOptionRelationCategory.map((el) => {
27
+ return el.id;
28
+ });
@@ -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,64 @@ 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
+ /** 이 옵션의 상위 옵션 목록
141
+ * @notice CarOption의 Id값 리스트입니다.
142
+ * @example "드라이브 와이즈 1" 이 "파퓰러 패키지", "프레스티지 패키지"에 포함될 경우, "파퓰러 패키지", "프레스티지 패키지"의 id값 두 개가 포함됩니다.
143
+ */
144
+ parent: number[];
145
+ /** 이 옵션이 선택되려면 먼저 선택되어야 하는 옵션 리스트
146
+ * @notice CarOption의 Id값 리스트입니다.
147
+ */
148
+ nessary: number[];
149
+ /** 동시에 선택할 수 없는 옵션 리스트
150
+ * @notice CarOption의 Id값 리스트입니다.
151
+ */
152
+ incompatible: number[];
153
+ } | null;
154
+ }
155
+ /** 옵션에 대한 상세 설명 */
156
+ export interface CarOptionDescription {
157
+ id: number;
158
+ /** 옵션 설명 제목 */
159
+ name: string;
160
+ /** 상세 설명 내용,
161
+ * @notice 빈 String이 올 수 있습니다.
162
+ */
163
+ content: string;
164
+ /** 옵션 설명 이미지 url
165
+ * @example https://cdn.carsayo.net/resource/car/option/description/image/13181.jpg
166
+ */
167
+ imgSrc: string | null;
168
+ include: {
169
+ /** 옵션 하위 내용 제목 */
170
+ name: string;
171
+ /** 옵션 하위 내용 상세 설명
172
+ * @notice 빈 String이 올 수 있습니다.
173
+ */
174
+ content: string;
175
+ /** 옵션 설명 이미지 url
176
+ * @example https://cdn.carsayo.net/resource/car/option/description/image/13181.jpg
177
+ */
178
+ imgSrc: string | null;
179
+ }[];
131
180
  }
132
181
  export interface InterestCarInfo extends CarModel {
133
182
  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.765",
4
4
  "description": "Carsayo app type",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",