@carsayo/types 1.1.76 → 1.1.78
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/data/term.d.ts +11 -2
- package/dist/data/term.js +61 -51
- package/dist/types/modules/accidentRegistration/dto.d.ts +49 -0
- package/dist/types/modules/accidentRegistration/dto.js +2 -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/common/enum.d.ts +65 -0
- package/dist/types/modules/common/enum.js +69 -0
- package/dist/types/modules/common/index.d.ts +1 -0
- package/dist/types/modules/common/index.js +1 -0
- package/dist/types/modules/common/interface.d.ts +17 -0
- 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 +84 -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 +55 -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 +132 -3
- package/dist/types/modules/member/type.d.ts +4 -0
- package/dist/types/modules/member/type.js +5 -1
- package/dist/types/modules/order/dto.d.ts +33 -11
- package/dist/types/modules/promotion/24090500/interface.d.ts +5 -0
- package/dist/types/modules/term/dto.d.ts +11 -15
- package/package.json +1 -1
|
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./interface"), exports);
|
|
18
18
|
__exportStar(require("./type"), exports);
|
|
19
|
+
__exportStar(require("./enum"), exports);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SidoId, SigunguId } from "../../../data";
|
|
2
|
+
import { HttpStatusCode } from "./enum";
|
|
2
3
|
/**
|
|
3
4
|
* @description 시도 정보
|
|
4
5
|
*/
|
|
@@ -21,3 +22,19 @@ export interface Region {
|
|
|
21
22
|
sigunguId: SigunguId;
|
|
22
23
|
sigungu: string | null;
|
|
23
24
|
}
|
|
25
|
+
/** 카사요 앱에서 발생된 모든 에러 응답은 이 양식을 따릅니다. */
|
|
26
|
+
export interface CarsayoErrorResponse {
|
|
27
|
+
/** 에러 코드
|
|
28
|
+
* @example E-EDFOKD1443
|
|
29
|
+
*/
|
|
30
|
+
error: string;
|
|
31
|
+
/** 에러 메시지 */
|
|
32
|
+
message: string;
|
|
33
|
+
statusCode: HttpStatusCode;
|
|
34
|
+
/** 에러 발생 요청 경로
|
|
35
|
+
* @example /order/commission/finish
|
|
36
|
+
*/
|
|
37
|
+
path: string;
|
|
38
|
+
/** 에러 발생 시간 */
|
|
39
|
+
timestamp: Date;
|
|
40
|
+
}
|
|
@@ -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,84 @@
|
|
|
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
|
+
/** 보험사 테마 색상(HEX) */
|
|
14
|
+
theme_color: string;
|
|
15
|
+
/** 다이렉트 보험명 */
|
|
16
|
+
direct_title: string;
|
|
17
|
+
/** 설명 */
|
|
18
|
+
direct_description: string;
|
|
19
|
+
/** 긴급출동번호 (NumberString)
|
|
20
|
+
* @example 15880100
|
|
21
|
+
*/
|
|
22
|
+
direct_emergency_contact: string;
|
|
23
|
+
/** 웹 가입 URL */
|
|
24
|
+
direct_signup_url_web?: string;
|
|
25
|
+
/** 모바일 웹 가입 URL */
|
|
26
|
+
direct_signup_url_mobile?: string;
|
|
27
|
+
/**
|
|
28
|
+
* 보험사 광고 문구
|
|
29
|
+
* @example 무이자 3개월 제공
|
|
30
|
+
*/
|
|
31
|
+
direct_advertise?: string;
|
|
32
|
+
/** 심의필 문구
|
|
33
|
+
* @example 메리츠화재 준법감시인심의필 제2023-광고-1427호 (2023.07.14 ~ 2024.07.13)
|
|
34
|
+
*/
|
|
35
|
+
direct_certification?: string;
|
|
36
|
+
}
|
|
37
|
+
export interface InsuranceCompanyUpdateDTO extends InsuranceCompanyIdDTO {
|
|
38
|
+
/** 생성 보험사 이름 */
|
|
39
|
+
name?: string;
|
|
40
|
+
/** 보험사 로고 이미지 URL
|
|
41
|
+
* @example https://cdn.carsayo.net/resource/insurance/company/logo/meritz.svg
|
|
42
|
+
*/
|
|
43
|
+
logo_url?: string;
|
|
44
|
+
/** 보험사 테마 색상(HEX) */
|
|
45
|
+
theme_color?: string;
|
|
46
|
+
/** 다이렉트 보험명 */
|
|
47
|
+
direct_title?: string;
|
|
48
|
+
/** 설명 */
|
|
49
|
+
direct_description?: string;
|
|
50
|
+
/** 긴급출동번호 (NumberString)
|
|
51
|
+
* @example 15880100
|
|
52
|
+
*/
|
|
53
|
+
direct_emergency_contact?: string;
|
|
54
|
+
/** 웹 가입 URL */
|
|
55
|
+
direct_signup_url_web?: string;
|
|
56
|
+
/** 모바일 웹 가입 URL */
|
|
57
|
+
direct_signup_url_mobile?: string;
|
|
58
|
+
/**
|
|
59
|
+
* 보험사 광고 문구
|
|
60
|
+
* @example 무이자 3개월 제공
|
|
61
|
+
*/
|
|
62
|
+
direct_advertise?: string;
|
|
63
|
+
/** 심의필 문구
|
|
64
|
+
* @example 메리츠화재 준법감시인심의필 제2023-광고-1427호 (2023.07.14 ~ 2024.07.13)
|
|
65
|
+
*/
|
|
66
|
+
direct_certification?: string;
|
|
67
|
+
/** 활성화된 보험사 여부
|
|
68
|
+
* @description 일반 회원이 보험사 리스트 조회 시 isValid=true인 보험사만 조회합니다.
|
|
69
|
+
*/
|
|
70
|
+
isValid?: boolean;
|
|
71
|
+
/** 정렬용 값 */
|
|
72
|
+
order_index?: number;
|
|
73
|
+
}
|
|
74
|
+
export interface InsuranceCompanyOrderDTO extends InsuranceCompanyIdDTO {
|
|
75
|
+
/** 정렬용 값
|
|
76
|
+
* @notice 큰 값이 먼저 출력됩니다.
|
|
77
|
+
*/
|
|
78
|
+
order_index: number;
|
|
79
|
+
}
|
|
80
|
+
/** 보험사 순서 데이터 일괄변경용 */
|
|
81
|
+
export interface InsuranceCompanyOrderUpdateDTO {
|
|
82
|
+
/** 최소 1개 이상의 값이 존재하여야 합니다 */
|
|
83
|
+
data: InsuranceCompanyOrderDTO[];
|
|
84
|
+
}
|
|
@@ -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,55 @@
|
|
|
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
|
+
/** 보험사 테마 색상(HEX) */
|
|
11
|
+
theme_color: string;
|
|
12
|
+
/** 다이렉트 자동차보험 */
|
|
13
|
+
direct: InsuranceCompanyDirect;
|
|
14
|
+
}
|
|
15
|
+
/** 보험사 제공 다이렉트 보험 서비스 */
|
|
16
|
+
export interface InsuranceCompanyDirect {
|
|
17
|
+
/** 다이렉트 보험명 */
|
|
18
|
+
title: string;
|
|
19
|
+
/** 설명
|
|
20
|
+
* @notice html형태입니다.
|
|
21
|
+
*/
|
|
22
|
+
description: string;
|
|
23
|
+
/** 긴급출동번호 */
|
|
24
|
+
emergency_contact: string;
|
|
25
|
+
/**
|
|
26
|
+
* 보험사 광고 문구
|
|
27
|
+
* @example 무이자 3개월 제공
|
|
28
|
+
*/
|
|
29
|
+
advertise: string | null;
|
|
30
|
+
/** 심의필 문구
|
|
31
|
+
* @example 메리츠화재 준법감시인심의필 제2023-광고-1427호 (2023.07.14 ~ 2024.07.13)
|
|
32
|
+
*/
|
|
33
|
+
certification: string | null;
|
|
34
|
+
/** 웹 가입 URL */
|
|
35
|
+
signup_url_web: string | null;
|
|
36
|
+
/** 모바일 웹 가입 URL */
|
|
37
|
+
signup_url_mobile: string | null;
|
|
38
|
+
}
|
|
39
|
+
/** 관리자용 추가데이터 */
|
|
40
|
+
export interface InsuranceCompany_Admin extends InsuranceCompany {
|
|
41
|
+
/** 활성화된 보험사 여부
|
|
42
|
+
* @description 일반 회원이 보험사 리스트 조회 시 isValid=true인 보험사만 조회합니다.
|
|
43
|
+
*/
|
|
44
|
+
isValid: boolean;
|
|
45
|
+
count: {
|
|
46
|
+
/** 등록된 차량 수(일반회원이 등록한 차량) */
|
|
47
|
+
registeredCar: number;
|
|
48
|
+
/** 사고 접수 수 */
|
|
49
|
+
accidentRegistered: number;
|
|
50
|
+
};
|
|
51
|
+
/** 정렬용 값 */
|
|
52
|
+
order_index: number;
|
|
53
|
+
created_at: Date;
|
|
54
|
+
updated_at: Date;
|
|
55
|
+
}
|
|
@@ -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 카사요 로그인 회원 정보
|
|
@@ -16,8 +17,14 @@ export interface Member extends MemberShort {
|
|
|
16
17
|
adminInfo?: AdminInfo;
|
|
17
18
|
dealerInfo?: DealerInfo;
|
|
18
19
|
customerInfo?: CustomerInfo;
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
count: {
|
|
21
|
+
/** 해당 회원의 알람 개수 */
|
|
22
|
+
notification: MemberNotificationCount;
|
|
23
|
+
/** 해당 회원의 알람 개수 */
|
|
24
|
+
inquiry: MemberInquiryCount;
|
|
25
|
+
/** 해당 회원의 결제 개수 */
|
|
26
|
+
payment: MemberPaymentCount;
|
|
27
|
+
};
|
|
21
28
|
}
|
|
22
29
|
/**
|
|
23
30
|
* @description 카사요 회원 간략 정보
|
|
@@ -85,9 +92,21 @@ export interface MemberSetting {
|
|
|
85
92
|
/**
|
|
86
93
|
* @description 회원 알람 개수
|
|
87
94
|
*/
|
|
88
|
-
export interface
|
|
95
|
+
export interface MemberNotificationCount {
|
|
89
96
|
unreadCount: number;
|
|
90
97
|
}
|
|
98
|
+
/**
|
|
99
|
+
* @description 회원 1대1 문의 개수
|
|
100
|
+
*/
|
|
101
|
+
export interface MemberInquiryCount {
|
|
102
|
+
totalCount: number;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* @description 회원 결제내역
|
|
106
|
+
*/
|
|
107
|
+
export interface MemberPaymentCount {
|
|
108
|
+
totalCount: number;
|
|
109
|
+
}
|
|
91
110
|
export interface CustomerInfo {
|
|
92
111
|
amount: {
|
|
93
112
|
/** 총 결재 금액을 의미합니다 */
|
|
@@ -116,6 +135,17 @@ export interface CustomerInfo {
|
|
|
116
135
|
};
|
|
117
136
|
/** 현재 좋아요한 차량 수 */
|
|
118
137
|
likeCar: number;
|
|
138
|
+
/** 회원이 접수한 사고접수 개수 */
|
|
139
|
+
accidentRegistration: {
|
|
140
|
+
totalCount: number;
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
/** 등록 차량 정보 */
|
|
144
|
+
registerCar: {
|
|
145
|
+
/** 대표 차량 */
|
|
146
|
+
representative: RegisterCar | null;
|
|
147
|
+
/** 등록 차량 리스트 (대표 차량 포함) */
|
|
148
|
+
list: RegisterCar[];
|
|
119
149
|
};
|
|
120
150
|
}
|
|
121
151
|
export interface DealerInfo {
|
|
@@ -553,6 +583,62 @@ export interface Admin_MemberListData_V3 extends MemberShort {
|
|
|
553
583
|
/** 관리자 정보 */
|
|
554
584
|
adminInfo: AdminInfo | null;
|
|
555
585
|
}
|
|
586
|
+
/**
|
|
587
|
+
* @description 어드민 - 회원 리스트 검색 결과 - 탈퇴 회원 정보 추가
|
|
588
|
+
*/
|
|
589
|
+
export interface Admin_MemberList_V4 {
|
|
590
|
+
totalCount: number;
|
|
591
|
+
data: Admin_MemberListData_V4[];
|
|
592
|
+
additionalInfo: Admin_MemberList_AdditionalInfo;
|
|
593
|
+
}
|
|
594
|
+
export interface Admin_MemberListData_V4 extends MemberShort {
|
|
595
|
+
/** 앱에서 최종 로그인한 기기 정보입니다
|
|
596
|
+
* @example android | iOS
|
|
597
|
+
*/
|
|
598
|
+
device: string | null;
|
|
599
|
+
/** 앱에서 최종 로그인한 기기 정보입니다
|
|
600
|
+
* @example SM-G99N
|
|
601
|
+
*/
|
|
602
|
+
model: string | null;
|
|
603
|
+
/** 어드민에서 입력한 메모 내용 */
|
|
604
|
+
memoContent: string | null;
|
|
605
|
+
/** 회원가입방법 */
|
|
606
|
+
signupMethod: MemberSignupMethod;
|
|
607
|
+
/** 밴 먹인 시간 */
|
|
608
|
+
banned_at: Date | null;
|
|
609
|
+
/** 푸시메시지 전송 가능 여부 */
|
|
610
|
+
isFcmToken: boolean;
|
|
611
|
+
/** 회원이 등록된 권한 그룹 리스트 */
|
|
612
|
+
roleGroup: RoleGroupId[];
|
|
613
|
+
/** 타입이 카매니저일 때 정의됩니다 */
|
|
614
|
+
customerInfo?: CustomerInfo;
|
|
615
|
+
/** 타입이 카매니저일 때 정의됩니다 */
|
|
616
|
+
dealerInfo?: Admin_MemberListData_DealerInfo;
|
|
617
|
+
/** 회원 계좌 정보 */
|
|
618
|
+
member_account: MemberAccountInfo | null;
|
|
619
|
+
/** 관리자 정보 */
|
|
620
|
+
adminInfo: AdminInfo | null;
|
|
621
|
+
signoutInfo: SignoutMemberInfo | null;
|
|
622
|
+
}
|
|
623
|
+
/** 탈퇴 회원 정보 */
|
|
624
|
+
export interface SignoutMemberInfo {
|
|
625
|
+
/** 회원탈퇴사유 */
|
|
626
|
+
signoutReason: string | null;
|
|
627
|
+
name_nick: string;
|
|
628
|
+
name_real: string | null;
|
|
629
|
+
phoneNumber: string | null;
|
|
630
|
+
description: string | null;
|
|
631
|
+
birth: string | null;
|
|
632
|
+
gender: MemberGender;
|
|
633
|
+
email: string | null;
|
|
634
|
+
isForeigner: boolean | null;
|
|
635
|
+
device: string | null;
|
|
636
|
+
deviceVersion: string | null;
|
|
637
|
+
model: string | null;
|
|
638
|
+
ip: string;
|
|
639
|
+
/** 회원탈퇴시점 */
|
|
640
|
+
signout_at: Date;
|
|
641
|
+
}
|
|
556
642
|
export interface MemberMemo {
|
|
557
643
|
memberId: string;
|
|
558
644
|
writer: MemberShort;
|
|
@@ -561,3 +647,46 @@ export interface MemberMemo {
|
|
|
561
647
|
created_at: Date;
|
|
562
648
|
updated_at: Date | null;
|
|
563
649
|
}
|
|
650
|
+
/** 일반회원 등록 차량 정보 */
|
|
651
|
+
export interface RegisterCar {
|
|
652
|
+
/** UUID */
|
|
653
|
+
id: string;
|
|
654
|
+
/** 소유자 아이디 */
|
|
655
|
+
memberId: string;
|
|
656
|
+
/**
|
|
657
|
+
* @description 자동차 등록번호
|
|
658
|
+
* @example 03가0000
|
|
659
|
+
*/
|
|
660
|
+
carName: string;
|
|
661
|
+
/** 제조사명(회원 임의입력) */
|
|
662
|
+
carMaker: string | null;
|
|
663
|
+
/** 차량 모델명(회원 임의입력) */
|
|
664
|
+
carModel: string | null;
|
|
665
|
+
/** 가입 보험사 */
|
|
666
|
+
insuranceCompany: InsuranceCompany | null;
|
|
667
|
+
/** 보험 가입일
|
|
668
|
+
* @notice ISOString
|
|
669
|
+
*/
|
|
670
|
+
insurance_start_date: Date | null;
|
|
671
|
+
/** 보험 가입일
|
|
672
|
+
* @notice ISOString
|
|
673
|
+
*/
|
|
674
|
+
insurance_expiration_date: Date | null;
|
|
675
|
+
/** 대표차량 여부
|
|
676
|
+
* @notice 한 회원당 하나만 가능합니다.
|
|
677
|
+
*/
|
|
678
|
+
isRepresentative: boolean;
|
|
679
|
+
count: {
|
|
680
|
+
/** 해당 차량 사고 접수 횟수 */
|
|
681
|
+
accidentRegistration: number;
|
|
682
|
+
};
|
|
683
|
+
created_at: Date;
|
|
684
|
+
updated_at: Date;
|
|
685
|
+
}
|
|
686
|
+
export interface Admin_SendMessageParam {
|
|
687
|
+
id: string;
|
|
688
|
+
name_real: string | null;
|
|
689
|
+
phoneNumber: string | null;
|
|
690
|
+
isFcmToken: boolean;
|
|
691
|
+
type: MemberType;
|
|
692
|
+
}
|
|
@@ -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",
|
|
@@ -15,9 +15,17 @@ export interface OrderListIntervalDTO {
|
|
|
15
15
|
end: Date | null;
|
|
16
16
|
}
|
|
17
17
|
export interface OrderListOptionDTO {
|
|
18
|
-
/** 어드민에서만 사용하는 조건입니다 */
|
|
19
|
-
orderType?: OrderCategory;
|
|
20
18
|
orderStateList?: OrderState[];
|
|
19
|
+
}
|
|
20
|
+
export interface DealerOrderListOptionExceptionDTO {
|
|
21
|
+
/** 비관심주문: 다음 조건의 주문을 검색 결과에서 제외합니다.
|
|
22
|
+
* 입찰중인 주문이며, 북마크, 본인 입찰이 아닌 주문
|
|
23
|
+
*/
|
|
24
|
+
notInterested?: boolean;
|
|
25
|
+
}
|
|
26
|
+
export interface DealerOrderListOptionDTO extends OrderListOptionDTO {
|
|
27
|
+
/** 다음 조건중 하나라도(지금은 조건 한개) 만족하는 주문을 검색 결과에서 제외합니다. */
|
|
28
|
+
exception?: DealerOrderListOptionExceptionDTO;
|
|
21
29
|
/** 카매니저가 해당 주문을 읽었는지 여부를 검색조건에 추가합니다
|
|
22
30
|
* @case true: 읽었던 주문만 검색
|
|
23
31
|
* @case false: 읽지 않은 주문만 검색
|
|
@@ -42,6 +50,9 @@ export interface OrderListOptionDTO {
|
|
|
42
50
|
* @csae null: 검색 조건에서 뺍니다
|
|
43
51
|
*/
|
|
44
52
|
isAccepted?: boolean;
|
|
53
|
+
}
|
|
54
|
+
export interface AdminOrderListOptionDTO extends OrderListOptionDTO {
|
|
55
|
+
orderType?: OrderCategory;
|
|
45
56
|
/**
|
|
46
57
|
* @description 해당 소속사 카매니저가 입찰한 주문 리스트 검색
|
|
47
58
|
*/
|
|
@@ -52,17 +63,13 @@ export interface OrderListSearchDTO {
|
|
|
52
63
|
code?: string;
|
|
53
64
|
/** 주문 제목 검색 */
|
|
54
65
|
title?: string;
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
66
|
+
}
|
|
67
|
+
export interface AdminOrderListSearchDTO extends OrderListSearchDTO {
|
|
68
|
+
/** 담당자 이름 검색시 값 입력 */
|
|
58
69
|
manager_name?: string;
|
|
59
|
-
/** 성명 검색시 값 입력
|
|
60
|
-
* @notice 어드민만 사용합니다
|
|
61
|
-
*/
|
|
70
|
+
/** 성명 검색시 값 입력 */
|
|
62
71
|
name_real?: string;
|
|
63
|
-
/** 닉네임 검색시 값 입력
|
|
64
|
-
* @notice 어드민만 사용합니다
|
|
65
|
-
*/
|
|
72
|
+
/** 닉네임 검색시 값 입력 */
|
|
66
73
|
name_nick?: string;
|
|
67
74
|
}
|
|
68
75
|
/**
|
|
@@ -77,6 +84,21 @@ export interface GetOrderListDTO {
|
|
|
77
84
|
search?: OrderListSearchDTO;
|
|
78
85
|
additionalInfo?: OrderListAdditionalInfoDTO;
|
|
79
86
|
}
|
|
87
|
+
/**
|
|
88
|
+
* @description 주문 리스트 검색 (카매니저용)
|
|
89
|
+
* @description Offset Paging 방식의 검색
|
|
90
|
+
*/
|
|
91
|
+
export interface DealerGetOrderListDTO extends GetOrderListDTO {
|
|
92
|
+
option?: DealerOrderListOptionDTO;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* @description 주문 리스트 검색 (어드민용)
|
|
96
|
+
* @description Offset Paging 방식의 검색
|
|
97
|
+
*/
|
|
98
|
+
export interface AdminGetOrderListDTO extends GetOrderListDTO {
|
|
99
|
+
option?: AdminOrderListOptionDTO;
|
|
100
|
+
search?: AdminOrderListSearchDTO;
|
|
101
|
+
}
|
|
80
102
|
/**
|
|
81
103
|
* 딜러가 입찰하기 위한 DTO
|
|
82
104
|
*/
|
|
@@ -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
|
/** 프로모션 주문 유형
|