@carsayo/types 1.1.768 → 1.1.771
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/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/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 +71 -0
- package/dist/types/modules/member/interface.d.ts +51 -0
- 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/package.json +1 -1
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { MemberGender } from "../member";
|
|
2
|
+
export interface AccidentRegistrationOptionDTO {
|
|
3
|
+
/** 견인 필요 여부 */
|
|
4
|
+
needTraction: boolean;
|
|
5
|
+
}
|
|
6
|
+
/** 기존 등록된 차량이 없을 경우 차량 등록을 위한 데이터 */
|
|
7
|
+
export interface AccidentRegistration_CreateRegisterCarDTO {
|
|
8
|
+
/**
|
|
9
|
+
* 자동차 등록번호
|
|
10
|
+
* @example 03가0000
|
|
11
|
+
*/
|
|
12
|
+
carName: string;
|
|
13
|
+
/** 보험사 아이디값
|
|
14
|
+
* @notice InsuranceCompany의 Id
|
|
15
|
+
*/
|
|
16
|
+
insurance_company_id: number;
|
|
17
|
+
}
|
|
18
|
+
/** 일반회원 - 사고접수 등록 */
|
|
19
|
+
export interface AccidentRegistrationCreateDTO {
|
|
20
|
+
/** 접수자 본명 */
|
|
21
|
+
name_real: string;
|
|
22
|
+
/** 접수자 전화번호 */
|
|
23
|
+
phoneNumber: string;
|
|
24
|
+
/** 접수자 생년월일
|
|
25
|
+
* @example 19930424 */
|
|
26
|
+
birth: string;
|
|
27
|
+
/** 접수자 성별 */
|
|
28
|
+
gender: MemberGender;
|
|
29
|
+
/**
|
|
30
|
+
* 자동차 등록번호
|
|
31
|
+
* @example 03가0000
|
|
32
|
+
*/
|
|
33
|
+
carName: string;
|
|
34
|
+
/** 보험사 아이디값
|
|
35
|
+
* @notice InsuranceCompany의 Id
|
|
36
|
+
*/
|
|
37
|
+
insurance_company_id: number;
|
|
38
|
+
/** 차량 정보 아이디
|
|
39
|
+
* @description 기존 등록된 회원 차량이 있을 경우
|
|
40
|
+
* @notice registerCarId 혹은 createRegisterCar는 둘중 하나가 정의되어야 합니다.
|
|
41
|
+
*/
|
|
42
|
+
registerCarId?: string;
|
|
43
|
+
/** 신규 차량 등록 시
|
|
44
|
+
* @description 사고 접수 시 기존에 등록된 회원 차량이 없을 경우 회원 차량을 생성 후 사고접수처리합니다.
|
|
45
|
+
* @notice registerCarId 혹은 createRegisterCar는 둘중 하나가 정의되어야 합니다.
|
|
46
|
+
*/
|
|
47
|
+
createRegisterCar?: AccidentRegistration_CreateRegisterCarDTO;
|
|
48
|
+
option: AccidentRegistrationOptionDTO;
|
|
49
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -606,3 +606,74 @@ export interface AdminSigninIdPwDTO {
|
|
|
606
606
|
loginId: string;
|
|
607
607
|
loginPw: string;
|
|
608
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,46 @@ 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
|
+
count: {
|
|
602
|
+
/** 해당 차량 사고 접수 횟수 */
|
|
603
|
+
accidentRegistration: number;
|
|
604
|
+
};
|
|
605
|
+
created_at: Date;
|
|
606
|
+
updated_at: Date;
|
|
607
|
+
}
|
|
608
|
+
export interface Admin_SendMessageParam {
|
|
609
|
+
id: string;
|
|
610
|
+
name_real: string | null;
|
|
611
|
+
phoneNumber: string | null;
|
|
612
|
+
isFcmToken: boolean;
|
|
613
|
+
type: MemberType;
|
|
614
|
+
}
|
|
@@ -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
|
*/
|