@carsayo/types 1.1.7691 → 1.1.7702

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,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,3 @@
1
+ export * from "./dto";
2
+ export * from "./interface";
3
+ export * from "./type";
@@ -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
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export declare const AccidentRegistrationState: {
2
+ readonly submitted: "submitted";
3
+ };
4
+ export type AccidentRegistrationState = "submitted";
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AccidentRegistrationState = void 0;
4
+ exports.AccidentRegistrationState = {
5
+ submitted: "submitted",
6
+ };
@@ -15,3 +15,5 @@ export * from "./purchase";
15
15
  export * from "./system";
16
16
  export * from "./term";
17
17
  export * from "./promotion";
18
+ export * from "./insurance";
19
+ export * from "./accidentRegistration";
@@ -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,51 @@
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
+ direct_title: string;
15
+ /** 설명 */
16
+ direct_description: string;
17
+ /** 긴급출동번호 (NumberString)
18
+ * @example 15880100
19
+ */
20
+ direct_emergency_contact: string;
21
+ /** 웹 가입 URL */
22
+ direct_signup_url_web?: string;
23
+ /** 모바일 웹 가입 URL */
24
+ direct_signup_url_mobile?: string;
25
+ }
26
+ export interface InsuranceCompanyUpdateDTO extends InsuranceCompanyIdDTO {
27
+ /** 생성 보험사 이름 */
28
+ name?: string;
29
+ /** 보험사 로고 이미지 URL
30
+ * @example https://cdn.carsayo.net/resource/insurance/company/logo/meritz.svg
31
+ */
32
+ logo_url?: string;
33
+ /** 다이렉트 보험명 */
34
+ direct_title?: string;
35
+ /** 설명 */
36
+ direct_description?: string;
37
+ /** 긴급출동번호 (NumberString)
38
+ * @example 15880100
39
+ */
40
+ direct_emergency_contact?: string;
41
+ /** 웹 가입 URL */
42
+ direct_signup_url_web?: string;
43
+ /** 모바일 웹 가입 URL */
44
+ direct_signup_url_mobile?: string;
45
+ /** 활성화된 보험사 여부
46
+ * @description 일반 회원이 보험사 리스트 조회 시 isValid=true인 보험사만 조회합니다.
47
+ */
48
+ isValid?: boolean;
49
+ /** 정렬용 값 */
50
+ order_index?: number;
51
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ /** DTO는 서버단에 요청을 보낼 때 사용하는 클래스 유형으로 서버단에서 이 곳에 정의된 대로 유효성 검사를 처리합니다. */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export * from "./dto";
2
+ export * from "./interface";
@@ -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
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -610,3 +610,70 @@ export interface AdminSigninIdPwDTO {
610
610
  export interface CustomerAddOrderCountDTO extends MemberIdDTO {
611
611
  type: "purchase" | "selling";
612
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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carsayo/types",
3
- "version": "1.1.7691",
3
+ "version": "1.1.7702",
4
4
  "description": "Carsayo app type",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",