@carsayo/types 1.1.76 → 1.1.77
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.
- package/dist/data/carOptionRelationCategory.d.ts +20 -0
- package/dist/data/carOptionRelationCategory.js +28 -0
- package/dist/types/modules/accidentRegistration/dto.d.ts +27 -0
- package/dist/types/modules/accidentRegistration/dto.js +10 -0
- package/dist/types/modules/accidentRegistration/index.d.ts +3 -0
- package/dist/types/modules/accidentRegistration/index.js +19 -0
- package/dist/types/modules/accidentRegistration/interface.d.ts +34 -0
- package/dist/types/modules/accidentRegistration/interface.js +2 -0
- package/dist/types/modules/accidentRegistration/type.d.ts +4 -0
- package/dist/types/modules/accidentRegistration/type.js +6 -0
- package/dist/types/modules/car/dto.d.ts +3 -0
- package/dist/types/modules/car/interface.d.ts +56 -7
- package/dist/types/modules/index.d.ts +2 -0
- package/dist/types/modules/index.js +2 -0
- package/dist/types/modules/insurance/dto.d.ts +43 -0
- package/dist/types/modules/insurance/dto.js +3 -0
- package/dist/types/modules/insurance/index.d.ts +2 -0
- package/dist/types/modules/insurance/index.js +18 -0
- package/dist/types/modules/insurance/interface.d.ts +33 -0
- package/dist/types/modules/insurance/interface.js +2 -0
- package/dist/types/modules/member/dto.d.ts +91 -0
- package/dist/types/modules/member/interface.d.ts +40 -0
- package/dist/types/modules/member/type.d.ts +4 -0
- package/dist/types/modules/member/type.js +5 -1
- package/dist/types/modules/promotion/24090500/interface.d.ts +5 -0
- package/package.json +1 -1
|
@@ -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
|
+
});
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { MemberGender } from "../member";
|
|
2
|
+
export declare class AccidentRegistrationOptionDTO {
|
|
3
|
+
/** 견인 필요 여부 */
|
|
4
|
+
needTraction: boolean;
|
|
5
|
+
}
|
|
6
|
+
/** 일반회원 - 사고접수 등록 */
|
|
7
|
+
export declare class AccidentRegistrationCreateDTO {
|
|
8
|
+
/** 접수자 본명 */
|
|
9
|
+
name_real: string;
|
|
10
|
+
/** 접수자 전화번호 */
|
|
11
|
+
phoneNumber: string;
|
|
12
|
+
/** 접수자 생년월일
|
|
13
|
+
* @example 19930424 */
|
|
14
|
+
birth: string;
|
|
15
|
+
/** 접수자 성별 */
|
|
16
|
+
gender: MemberGender;
|
|
17
|
+
/**
|
|
18
|
+
* 자동차 등록번호
|
|
19
|
+
* @example 03가0000
|
|
20
|
+
*/
|
|
21
|
+
carName: string;
|
|
22
|
+
/** 보험사 아이디값
|
|
23
|
+
* @notice InsuranceCompany의 Id
|
|
24
|
+
*/
|
|
25
|
+
insurance_company_id: number;
|
|
26
|
+
option: AccidentRegistrationOptionDTO;
|
|
27
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AccidentRegistrationCreateDTO = exports.AccidentRegistrationOptionDTO = void 0;
|
|
4
|
+
class AccidentRegistrationOptionDTO {
|
|
5
|
+
}
|
|
6
|
+
exports.AccidentRegistrationOptionDTO = AccidentRegistrationOptionDTO;
|
|
7
|
+
/** 일반회원 - 사고접수 등록 */
|
|
8
|
+
class AccidentRegistrationCreateDTO {
|
|
9
|
+
}
|
|
10
|
+
exports.AccidentRegistrationCreateDTO = AccidentRegistrationCreateDTO;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./dto"), exports);
|
|
18
|
+
__exportStar(require("./interface"), exports);
|
|
19
|
+
__exportStar(require("./type"), exports);
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { InsuranceCompany } from "../insurance";
|
|
2
|
+
import { MemberGender } from "../member";
|
|
3
|
+
import { AccidentRegistrationState } from "./type";
|
|
4
|
+
/** 사고접수 내역 */
|
|
5
|
+
export interface AccidentRegistration {
|
|
6
|
+
/** UUID형식의 ID */
|
|
7
|
+
id: string;
|
|
8
|
+
/** 사고접수 회원Id */
|
|
9
|
+
memberId: string;
|
|
10
|
+
state: AccidentRegistrationState;
|
|
11
|
+
carName: string;
|
|
12
|
+
/** 해당 사고접수자 정보
|
|
13
|
+
* @notice 로그인 회원과 다를 수 있습니다.
|
|
14
|
+
*/
|
|
15
|
+
orderer: {
|
|
16
|
+
/** 접수자 본명 */
|
|
17
|
+
name: string;
|
|
18
|
+
/** 접수자 전화번호 */
|
|
19
|
+
phoneNumber: string;
|
|
20
|
+
/** 접수자 생년월일
|
|
21
|
+
* @example 19930424 */
|
|
22
|
+
birth: string;
|
|
23
|
+
/** 접수자 성별 */
|
|
24
|
+
gender: MemberGender;
|
|
25
|
+
};
|
|
26
|
+
/** 사고접수 보험사 */
|
|
27
|
+
insuranceCompany: InsuranceCompany;
|
|
28
|
+
option: {
|
|
29
|
+
/** 견인 필요 여부 */
|
|
30
|
+
needTraction: boolean;
|
|
31
|
+
};
|
|
32
|
+
created_at: Date;
|
|
33
|
+
updated_at: Date;
|
|
34
|
+
}
|
|
@@ -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;
|
|
@@ -82,10 +82,6 @@ export interface CarTrim {
|
|
|
82
82
|
id: number;
|
|
83
83
|
name: string;
|
|
84
84
|
image_url: string;
|
|
85
|
-
car_purpose: {
|
|
86
|
-
id: number;
|
|
87
|
-
name: string;
|
|
88
|
-
} | null;
|
|
89
85
|
car_shape: {
|
|
90
86
|
id: number;
|
|
91
87
|
name: string;
|
|
@@ -104,6 +100,10 @@ export interface CarGrade {
|
|
|
104
100
|
price: number;
|
|
105
101
|
updated_day: string;
|
|
106
102
|
released_month: string;
|
|
103
|
+
car_purpose: {
|
|
104
|
+
id: number;
|
|
105
|
+
name: string;
|
|
106
|
+
} | null;
|
|
107
107
|
/** 연식
|
|
108
108
|
* @notice 23년 7월 모델: 24
|
|
109
109
|
*/
|
|
@@ -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;
|
|
@@ -31,3 +31,5 @@ __exportStar(require("./purchase"), exports);
|
|
|
31
31
|
__exportStar(require("./system"), exports);
|
|
32
32
|
__exportStar(require("./term"), exports);
|
|
33
33
|
__exportStar(require("./promotion"), exports);
|
|
34
|
+
__exportStar(require("./insurance"), exports);
|
|
35
|
+
__exportStar(require("./accidentRegistration"), exports);
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/** DTO는 서버단에 요청을 보낼 때 사용하는 클래스 유형으로 서버단에서 이 곳에 정의된 대로 유효성 검사를 처리합니다. */
|
|
2
|
+
export interface InsuranceCompanyIdDTO {
|
|
3
|
+
/** 보험사 아이디값 */
|
|
4
|
+
id: number;
|
|
5
|
+
}
|
|
6
|
+
export interface InsuranceCompanyCreateDTO {
|
|
7
|
+
/** 생성 보험사 이름 */
|
|
8
|
+
name: string;
|
|
9
|
+
/** 보험사 로고 이미지 URL
|
|
10
|
+
* @example https://cdn.carsayo.net/resource/insurance/company/logo/meritz.svg
|
|
11
|
+
*/
|
|
12
|
+
logo_url: string;
|
|
13
|
+
/** 긴급출동 전화번호
|
|
14
|
+
* @example 15880100
|
|
15
|
+
*/
|
|
16
|
+
direct_emergency_contact: string;
|
|
17
|
+
}
|
|
18
|
+
export interface InsuranceCompanyUpdateDTO extends InsuranceCompanyIdDTO {
|
|
19
|
+
/** 생성 보험사 이름 */
|
|
20
|
+
name?: string;
|
|
21
|
+
/** 보험사 로고 이미지 URL
|
|
22
|
+
* @example https://cdn.carsayo.net/resource/insurance/company/logo/meritz.svg
|
|
23
|
+
*/
|
|
24
|
+
logo_url?: string;
|
|
25
|
+
/** 다이렉트 보험명 */
|
|
26
|
+
direct_title: string;
|
|
27
|
+
/** 설명 */
|
|
28
|
+
direct_description: string;
|
|
29
|
+
/** 긴급출동번호 (NumberString)
|
|
30
|
+
* @example 15880100
|
|
31
|
+
*/
|
|
32
|
+
direct_emergency_contact: string;
|
|
33
|
+
/** 웹 가입 URL */
|
|
34
|
+
direct_signup_url_web: string;
|
|
35
|
+
/** 모바일 웹 가입 URL */
|
|
36
|
+
direct_signup_url_mobile: string;
|
|
37
|
+
/** 활성화된 보험사 여부
|
|
38
|
+
* @description 일반 회원이 보험사 리스트 조회 시 isValid=true인 보험사만 조회합니다.
|
|
39
|
+
*/
|
|
40
|
+
isValid?: boolean;
|
|
41
|
+
/** 정렬용 값 */
|
|
42
|
+
order_index?: number;
|
|
43
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./dto"), exports);
|
|
18
|
+
__exportStar(require("./interface"), exports);
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export interface InsuranceCompany {
|
|
2
|
+
/** 보험사 아이디값 */
|
|
3
|
+
id: number;
|
|
4
|
+
/** 보험사 이름 */
|
|
5
|
+
name: string;
|
|
6
|
+
/** 보험사 로고 URL
|
|
7
|
+
* @example https://cdn.carsayo.net/resource/insurance/company/logo/meritz.svg
|
|
8
|
+
*/
|
|
9
|
+
logo_url: string;
|
|
10
|
+
/** 다이렉트 자동차보험 */
|
|
11
|
+
direct: InsuranceCompanyDirect;
|
|
12
|
+
/** 활성화된 보험사 여부
|
|
13
|
+
* @description 일반 회원이 보험사 리스트 조회 시 isValid=true인 보험사만 조회합니다.
|
|
14
|
+
*/
|
|
15
|
+
isValid: boolean;
|
|
16
|
+
/** 정렬용 값 */
|
|
17
|
+
order_index: number;
|
|
18
|
+
created_at: Date;
|
|
19
|
+
updated_at: Date;
|
|
20
|
+
}
|
|
21
|
+
/** 보험사 제공 다이렉트 보험 서비스 */
|
|
22
|
+
export interface InsuranceCompanyDirect {
|
|
23
|
+
/** 다이렉트 보험명 */
|
|
24
|
+
title: string;
|
|
25
|
+
/** 설명 */
|
|
26
|
+
description: string;
|
|
27
|
+
/** 긴급출동번호 */
|
|
28
|
+
emergency_contact: string;
|
|
29
|
+
/** 웹 가입 URL */
|
|
30
|
+
signup_url_web: string;
|
|
31
|
+
/** 모바일 웹 가입 URL */
|
|
32
|
+
signup_url_mobile: string;
|
|
33
|
+
}
|
|
@@ -57,7 +57,25 @@ export interface DealerInfoUpdateDataDTO {
|
|
|
57
57
|
experienceYears?: number;
|
|
58
58
|
/** 소속사 */
|
|
59
59
|
organization?: string;
|
|
60
|
+
/** 국산차 딜러 여부
|
|
61
|
+
* @notice 리스/렌트/중고차 매니저만 사용
|
|
62
|
+
*/
|
|
63
|
+
isDomestic?: boolean;
|
|
64
|
+
/** 수입차 딜러 여부
|
|
65
|
+
* @notice 리스/렌트/중고차 매니저만 사용
|
|
66
|
+
*/
|
|
67
|
+
isImported?: boolean;
|
|
68
|
+
/** 리스 매니저 여부
|
|
69
|
+
* @notice 리스/렌트 매니저만 사용
|
|
70
|
+
*/
|
|
71
|
+
isLease?: boolean;
|
|
72
|
+
/** 장기렌트 딜러 여부
|
|
73
|
+
* @notice 리스/렌트 매니저만 사용
|
|
74
|
+
*/
|
|
75
|
+
isRent?: boolean;
|
|
60
76
|
signupStatus?: DealerSignupFormStatusUpdateDTO;
|
|
77
|
+
/** 소속 협력사 */
|
|
78
|
+
collaboratorId?: CollaboratorId | null;
|
|
61
79
|
/** 취급 차량 제조사 */
|
|
62
80
|
target_makerIdList?: number[];
|
|
63
81
|
/** 영업 지역 시도 리스트 */
|
|
@@ -258,6 +276,8 @@ export interface Admin_SearchDealerDTO {
|
|
|
258
276
|
additionalInfo?: SearchMemberListAdditionalInfoDTO;
|
|
259
277
|
}
|
|
260
278
|
export interface SearchMemberListKeywordDTO_V3 {
|
|
279
|
+
/** 닉네임 검색시 값 입력 */
|
|
280
|
+
name_nick?: string;
|
|
261
281
|
/** 이름 검색시 값 입력 */
|
|
262
282
|
name_real?: string;
|
|
263
283
|
/** 카매니저 소속사 검색시 값 입력 */
|
|
@@ -586,3 +606,74 @@ export interface AdminSigninIdPwDTO {
|
|
|
586
606
|
loginId: string;
|
|
587
607
|
loginPw: string;
|
|
588
608
|
}
|
|
609
|
+
/** 어드민 - 일반회원에 대하여 주문권 추가 */
|
|
610
|
+
export interface CustomerAddOrderCountDTO extends MemberIdDTO {
|
|
611
|
+
type: "purchase" | "selling";
|
|
612
|
+
}
|
|
613
|
+
/** 일반회원 - 등록 차량 정보 등록 */
|
|
614
|
+
export interface RegisterCarIdDTO {
|
|
615
|
+
/** 차량 정보 아이디 */
|
|
616
|
+
id: string;
|
|
617
|
+
}
|
|
618
|
+
/** 일반회원 - 등록 차량 정보 등록 */
|
|
619
|
+
export interface RegisterCarCreateDTO {
|
|
620
|
+
/**
|
|
621
|
+
* 자동차 등록번호
|
|
622
|
+
* @example 03가0000
|
|
623
|
+
* @notice 한 회원에 대하여 동일한 차량 등록번호가 존재하는지 검증합니다.
|
|
624
|
+
*/
|
|
625
|
+
carName: string;
|
|
626
|
+
/** 제조사명(임의입력)
|
|
627
|
+
* @notice Optional
|
|
628
|
+
*/
|
|
629
|
+
carMaker?: string;
|
|
630
|
+
/** 차량 모델명(임의입력)
|
|
631
|
+
* @notice Optional
|
|
632
|
+
*/
|
|
633
|
+
carModel?: string;
|
|
634
|
+
/** 보험사 아이디값
|
|
635
|
+
* @notice InsuranceCompany의 Id
|
|
636
|
+
*/
|
|
637
|
+
insurance_company_id: number;
|
|
638
|
+
/** 보험 가입일
|
|
639
|
+
* @notice ISOString
|
|
640
|
+
*/
|
|
641
|
+
insurance_start_date: Date;
|
|
642
|
+
/** 대표차량으로 생성할지 여부
|
|
643
|
+
* @true true로 보낼 경우 생성된 차량이 대표차량으로 설정되어 생성됩니다.
|
|
644
|
+
* @false 생성된 차량이 대표차량으로 설정되지 않습니다.
|
|
645
|
+
* @undefined 생성된 차량이 대표차량으로 설정되지 않습니다.
|
|
646
|
+
*/
|
|
647
|
+
isRepresentative: boolean;
|
|
648
|
+
}
|
|
649
|
+
/** 일반회원 - 등록 차량 정보 업데이트 */
|
|
650
|
+
export interface RegisterCarUpdateDTO extends RegisterCarIdDTO {
|
|
651
|
+
/**
|
|
652
|
+
* 자동차 등록번호
|
|
653
|
+
* @example 03가0000
|
|
654
|
+
* @notice 한 회원에 대하여 동일한 차량 등록번호가 존재하는지 검증합니다.
|
|
655
|
+
*/
|
|
656
|
+
carName?: string;
|
|
657
|
+
/** 제조사명(임의입력)
|
|
658
|
+
* @notice Optional
|
|
659
|
+
*/
|
|
660
|
+
carMaker?: string;
|
|
661
|
+
/** 차량 모델명(임의입력)
|
|
662
|
+
* @notice Optional
|
|
663
|
+
*/
|
|
664
|
+
carModel?: string;
|
|
665
|
+
/** 보험사 아이디값
|
|
666
|
+
* @notice InsuranceCompany의 Id
|
|
667
|
+
*/
|
|
668
|
+
insurance_company_id?: number;
|
|
669
|
+
/** 보험 가입일
|
|
670
|
+
* @notice ISOString
|
|
671
|
+
*/
|
|
672
|
+
insurance_start_date?: Date;
|
|
673
|
+
/** 대표차량으로 생성할지 여부
|
|
674
|
+
* @true true로 보낼 경우 생성된 차량이 대표차량으로 설정되어 생성됩니다.
|
|
675
|
+
* @false 생성된 차량이 대표차량으로 설정되지 않습니다.
|
|
676
|
+
* @undefined 생성된 차량이 대표차량으로 설정되지 않습니다.
|
|
677
|
+
*/
|
|
678
|
+
isRepresentative?: boolean;
|
|
679
|
+
}
|
|
@@ -2,6 +2,7 @@ import { CollaboratorId, RoleGroupId, RoleId, SidoId } from "../../../data";
|
|
|
2
2
|
import { CarMaker } from "../car";
|
|
3
3
|
import { Region, Sido } from "../common";
|
|
4
4
|
import { FileInfo } from "../file";
|
|
5
|
+
import { InsuranceCompany } from "../insurance";
|
|
5
6
|
import { MemberType, MemberDealerType, MemberDealerSignupState, MemberState, MemberGender, MemberSignupMethod } from "./type";
|
|
6
7
|
/**
|
|
7
8
|
* @description 카사요 로그인 회원 정보
|
|
@@ -117,6 +118,13 @@ export interface CustomerInfo {
|
|
|
117
118
|
/** 현재 좋아요한 차량 수 */
|
|
118
119
|
likeCar: number;
|
|
119
120
|
};
|
|
121
|
+
/** 등록 차량 정보 */
|
|
122
|
+
registerCar: {
|
|
123
|
+
/** 대표 차량 */
|
|
124
|
+
representative: RegisterCar | null;
|
|
125
|
+
/** 등록 차량 리스트 (대표 차량 포함) */
|
|
126
|
+
list: RegisterCar[];
|
|
127
|
+
};
|
|
120
128
|
}
|
|
121
129
|
export interface DealerInfo {
|
|
122
130
|
/** 딜러 타입 (신차, 중고차, 리스렌트) */
|
|
@@ -561,3 +569,35 @@ export interface MemberMemo {
|
|
|
561
569
|
created_at: Date;
|
|
562
570
|
updated_at: Date | null;
|
|
563
571
|
}
|
|
572
|
+
/** 일반회원 등록 차량 정보 */
|
|
573
|
+
export interface RegisterCar {
|
|
574
|
+
/** UUID */
|
|
575
|
+
id: string;
|
|
576
|
+
/** 소유자 아이디 */
|
|
577
|
+
memberId: string;
|
|
578
|
+
/**
|
|
579
|
+
* @description 자동차 등록번호
|
|
580
|
+
* @example 03가0000
|
|
581
|
+
*/
|
|
582
|
+
carName: string;
|
|
583
|
+
/** 제조사명(회원 임의입력) */
|
|
584
|
+
carMaker: string | null;
|
|
585
|
+
/** 차량 모델명(회원 임의입력) */
|
|
586
|
+
carModel: string | null;
|
|
587
|
+
/** 가입 보험사 */
|
|
588
|
+
insuranceCompany: InsuranceCompany | null;
|
|
589
|
+
/** 보험 가입일
|
|
590
|
+
* @notice ISOString
|
|
591
|
+
*/
|
|
592
|
+
insurance_start_date: Date | null;
|
|
593
|
+
/** 보험 가입일
|
|
594
|
+
* @notice ISOString
|
|
595
|
+
*/
|
|
596
|
+
insurance_expiration_date: Date | null;
|
|
597
|
+
/** 대표차량 여부
|
|
598
|
+
* @notice 한 회원당 하나만 가능합니다.
|
|
599
|
+
*/
|
|
600
|
+
isRepresentative: boolean;
|
|
601
|
+
created_at: Date;
|
|
602
|
+
updated_at: Date;
|
|
603
|
+
}
|
|
@@ -13,6 +13,10 @@ export declare const MemberState: {
|
|
|
13
13
|
readonly signout: "signout";
|
|
14
14
|
};
|
|
15
15
|
export type MemberState = keyof typeof MemberState;
|
|
16
|
+
export declare const MemberGender: {
|
|
17
|
+
readonly male: "male";
|
|
18
|
+
readonly female: "female";
|
|
19
|
+
};
|
|
16
20
|
export type MemberGender = "male" | "female";
|
|
17
21
|
export declare const MemberType: {
|
|
18
22
|
readonly customer: "customer";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MemberSignupMethod = exports.SearchMemberMode = exports.SearchMemberSort = exports.SearchMemberListInterval = exports.MemberDealerSignupState = exports.MemberDealerType = exports.MemberType = exports.MemberState = void 0;
|
|
3
|
+
exports.MemberSignupMethod = exports.SearchMemberMode = exports.SearchMemberSort = exports.SearchMemberListInterval = exports.MemberDealerSignupState = exports.MemberDealerType = exports.MemberType = exports.MemberGender = exports.MemberState = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* @activate 활성회된 계정입니다 (이 계정만 API를 정상적으로 사용할 수 있습니다)
|
|
6
6
|
* @banned 관리자가 밴먹인 계정으로 해당 회원은 어떤 API도 사용할 수 없습니다
|
|
@@ -15,6 +15,10 @@ exports.MemberState = {
|
|
|
15
15
|
missing: "missing",
|
|
16
16
|
signout: "signout",
|
|
17
17
|
};
|
|
18
|
+
exports.MemberGender = {
|
|
19
|
+
male: "male",
|
|
20
|
+
female: "female",
|
|
21
|
+
};
|
|
18
22
|
exports.MemberType = {
|
|
19
23
|
customer: "customer",
|
|
20
24
|
dealer: "dealer",
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { DeviceType } from "../../common";
|
|
2
2
|
import { FileInfo } from "../../file";
|
|
3
3
|
import { Promotion_24090500_State, Promotion_24090500_PaymentState } from "./type";
|
|
4
|
+
/** 관리자 리스트 검색 결과 */
|
|
5
|
+
export interface Promotion_24090500_List {
|
|
6
|
+
totalCount: number;
|
|
7
|
+
data: Promotion_24090500_Detail[];
|
|
8
|
+
}
|
|
4
9
|
export interface Promotion_24090500_Detail {
|
|
5
10
|
id: string;
|
|
6
11
|
/** 프로모션 주문 유형
|