@carsayo/types 1.1.7708 → 1.1.7761

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.
@@ -121,6 +121,15 @@ export declare const TermCategoryData: readonly [{
121
121
  readonly isEssential: true;
122
122
  readonly isContent: true;
123
123
  readonly isActive: true;
124
+ }, {
125
+ readonly id: 94100;
126
+ readonly title: "위치기반서비스 이용 동의";
127
+ readonly description: "위치기반서비스 이용 약관";
128
+ readonly member_type: any;
129
+ readonly dealer_type: any;
130
+ readonly isEssential: false;
131
+ readonly isContent: true;
132
+ readonly isActive: true;
124
133
  }, {
125
134
  readonly id: 95100;
126
135
  readonly title: "푸시 알람 수신 동의";
@@ -149,5 +158,5 @@ export declare const TermCategoryData: readonly [{
149
158
  readonly isContent: true;
150
159
  readonly isActive: true;
151
160
  }];
152
- export declare const TermCategoryId: (10100 | 10200 | 10500 | 10600 | 10700 | 20100 | 20200 | 24090 | 24100 | 25090 | 25100 | 26090 | 26100 | 95100 | 95200 | 95300)[];
153
- export type TermCategoryId = (typeof TermCategoryData)[number]['id'];
161
+ export declare const TermCategoryId: (10100 | 10200 | 10500 | 10600 | 10700 | 20100 | 20200 | 24090 | 24100 | 25090 | 25100 | 26090 | 26100 | 94100 | 95100 | 95200 | 95300)[];
162
+ export type TermCategoryId = (typeof TermCategoryData)[number]["id"];
package/dist/data/term.js CHANGED
@@ -11,9 +11,9 @@ exports.TermCategoryData = [
11
11
  /** 일반회원 가입 약관 */
12
12
  {
13
13
  id: 10100,
14
- title: '서비스 이용약관',
15
- description: '일반 고객의 서비스 이용약관입니다',
16
- member_type: 'customer',
14
+ title: "서비스 이용약관",
15
+ description: "일반 고객의 서비스 이용약관입니다",
16
+ member_type: "customer",
17
17
  dealer_type: null,
18
18
  isEssential: true,
19
19
  isContent: true,
@@ -21,9 +21,9 @@ exports.TermCategoryData = [
21
21
  },
22
22
  {
23
23
  id: 10200,
24
- title: '개인정보 처리방침',
25
- description: '일반 고객의 개인정보 처리방침입니다',
26
- member_type: 'customer',
24
+ title: "개인정보 처리방침",
25
+ description: "일반 고객의 개인정보 처리방침입니다",
26
+ member_type: "customer",
27
27
  dealer_type: null,
28
28
  isEssential: true,
29
29
  isContent: true,
@@ -31,9 +31,9 @@ exports.TermCategoryData = [
31
31
  },
32
32
  {
33
33
  id: 10500,
34
- title: '미스터리 쇼퍼가 아닙니다',
35
- description: '일반 고객의 미스터리 쇼퍼가 아님을 나타내는 약관',
36
- member_type: 'customer',
34
+ title: "미스터리 쇼퍼가 아닙니다",
35
+ description: "일반 고객의 미스터리 쇼퍼가 아님을 나타내는 약관",
36
+ member_type: "customer",
37
37
  dealer_type: null,
38
38
  isEssential: true,
39
39
  isContent: true,
@@ -41,9 +41,9 @@ exports.TermCategoryData = [
41
41
  },
42
42
  {
43
43
  id: 10600,
44
- title: '실구매자 또는 실판매자입니다',
45
- description: '일반 고객의 실구매자 또는 실판매자임을 나타내는 약관',
46
- member_type: 'customer',
44
+ title: "실구매자 또는 실판매자입니다",
45
+ description: "일반 고객의 실구매자 또는 실판매자임을 나타내는 약관",
46
+ member_type: "customer",
47
47
  dealer_type: null,
48
48
  isEssential: true,
49
49
  isContent: true,
@@ -51,9 +51,9 @@ exports.TermCategoryData = [
51
51
  },
52
52
  {
53
53
  id: 10700,
54
- title: '무분별한 구매/판매 요청은 하지 않습니다',
55
- description: '일반 고객의 무분별한 구매/판매 요청은 하지 않겠다는 약관',
56
- member_type: 'customer',
54
+ title: "무분별한 구매/판매 요청은 하지 않습니다",
55
+ description: "일반 고객의 무분별한 구매/판매 요청은 하지 않겠다는 약관",
56
+ member_type: "customer",
57
57
  dealer_type: null,
58
58
  isEssential: true,
59
59
  isContent: false,
@@ -62,9 +62,9 @@ exports.TermCategoryData = [
62
62
  /** 카매니저 약관 */
63
63
  {
64
64
  id: 20100,
65
- title: '서비스 이용약관',
66
- description: '딜러 고객의 서비스 이용약관입니다',
67
- member_type: 'dealer',
65
+ title: "서비스 이용약관",
66
+ description: "딜러 고객의 서비스 이용약관입니다",
67
+ member_type: "dealer",
68
68
  dealer_type: null,
69
69
  isEssential: true,
70
70
  isContent: true,
@@ -72,9 +72,9 @@ exports.TermCategoryData = [
72
72
  },
73
73
  {
74
74
  id: 20200,
75
- title: '개인정보 처리방침',
76
- description: '카매니저의 수집이용 약관입니다',
77
- member_type: 'dealer',
75
+ title: "개인정보 처리방침",
76
+ description: "카매니저의 수집이용 약관입니다",
77
+ member_type: "dealer",
78
78
  dealer_type: null,
79
79
  isEssential: true,
80
80
  isContent: true,
@@ -83,20 +83,20 @@ exports.TermCategoryData = [
83
83
  /** 신차 카매니저 전용 */
84
84
  {
85
85
  id: 24090,
86
- title: '이용방법 & 거래 주의사항',
87
- description: '신차 카매니저의 서비스 이용 및 거래에 대한 약관입니다',
88
- member_type: 'dealer',
89
- dealer_type: 'newcar',
86
+ title: "이용방법 & 거래 주의사항",
87
+ description: "신차 카매니저의 서비스 이용 및 거래에 대한 약관입니다",
88
+ member_type: "dealer",
89
+ dealer_type: "newcar",
90
90
  isEssential: true,
91
91
  isContent: true,
92
92
  isActive: true,
93
93
  },
94
94
  {
95
95
  id: 24100,
96
- title: '국내차/수입차 공식 직원입니다.',
97
- description: '신차 공식 직원인지에 대한 확인',
98
- member_type: 'dealer',
99
- dealer_type: 'newcar',
96
+ title: "국내차/수입차 공식 직원입니다.",
97
+ description: "신차 공식 직원인지에 대한 확인",
98
+ member_type: "dealer",
99
+ dealer_type: "newcar",
100
100
  isEssential: true,
101
101
  isContent: true,
102
102
  isActive: true,
@@ -104,20 +104,20 @@ exports.TermCategoryData = [
104
104
  /** 중고차 카매니저 전용 */
105
105
  {
106
106
  id: 25090,
107
- title: '이용방법 & 거래 주의사항',
108
- description: '중고차 카매니저의 서비스 이용 및 거래에 대한 약관입니다',
109
- member_type: 'dealer',
110
- dealer_type: 'usedcar',
107
+ title: "이용방법 & 거래 주의사항",
108
+ description: "중고차 카매니저의 서비스 이용 및 거래에 대한 약관입니다",
109
+ member_type: "dealer",
110
+ dealer_type: "usedcar",
111
111
  isEssential: true,
112
112
  isContent: true,
113
113
  isActive: true,
114
114
  },
115
115
  {
116
116
  id: 25100,
117
- title: '자동차매매사업조합연합회 소속입니다.',
118
- description: '중고차 딜러가 자동차매매사업조합연합회 소속인지 여부를 선택합니다',
119
- member_type: 'dealer',
120
- dealer_type: 'usedcar',
117
+ title: "자동차매매사업조합연합회 소속입니다.",
118
+ description: "중고차 딜러가 자동차매매사업조합연합회 소속인지 여부를 선택합니다",
119
+ member_type: "dealer",
120
+ dealer_type: "usedcar",
121
121
  isEssential: true,
122
122
  isContent: true,
123
123
  isActive: true,
@@ -125,29 +125,39 @@ exports.TermCategoryData = [
125
125
  /** 리스렌트 카매니저 전용 */
126
126
  {
127
127
  id: 26090,
128
- title: '이용방법 & 거래 주의사항',
129
- description: '리스렌트 카매니저의 서비스 이용 및 거래에 대한 약관입니다',
130
- member_type: 'dealer',
131
- dealer_type: 'leaseRent',
128
+ title: "이용방법 & 거래 주의사항",
129
+ description: "리스렌트 카매니저의 서비스 이용 및 거래에 대한 약관입니다",
130
+ member_type: "dealer",
131
+ dealer_type: "leaseRent",
132
132
  isEssential: true,
133
133
  isContent: true,
134
134
  isActive: true,
135
135
  },
136
136
  {
137
137
  id: 26100,
138
- title: '대출성 상품 판매대리 중개업자입니다.',
139
- description: '대출성 상품 판매대리 중개업자 자격이 있다는 것에 동의합니다',
140
- member_type: 'dealer',
141
- dealer_type: 'leaseRent',
138
+ title: "대출성 상품 판매대리 중개업자입니다.",
139
+ description: "대출성 상품 판매대리 중개업자 자격이 있다는 것에 동의합니다",
140
+ member_type: "dealer",
141
+ dealer_type: "leaseRent",
142
142
  isEssential: true,
143
143
  isContent: true,
144
144
  isActive: true,
145
145
  },
146
146
  /** 공통 동의 내용 */
147
+ {
148
+ id: 94100,
149
+ title: "위치기반서비스 이용 동의",
150
+ description: "위치기반서비스 이용 약관",
151
+ member_type: null,
152
+ dealer_type: null,
153
+ isEssential: false,
154
+ isContent: true,
155
+ isActive: true,
156
+ },
147
157
  {
148
158
  id: 95100,
149
- title: '푸시 알람 수신 동의',
150
- description: '푸시 알람을 통해 광고성 메시지를 받겠다는 약관',
159
+ title: "푸시 알람 수신 동의",
160
+ description: "푸시 알람을 통해 광고성 메시지를 받겠다는 약관",
151
161
  member_type: null,
152
162
  dealer_type: null,
153
163
  isEssential: false,
@@ -156,8 +166,8 @@ exports.TermCategoryData = [
156
166
  },
157
167
  {
158
168
  id: 95200,
159
- title: '메시지 수신 동의',
160
- description: '문자 메시지를 통해 광고성 메시지를 받겠다는 약관',
169
+ title: "메시지 수신 동의",
170
+ description: "문자 메시지를 통해 광고성 메시지를 받겠다는 약관",
161
171
  member_type: null,
162
172
  dealer_type: null,
163
173
  isEssential: false,
@@ -166,8 +176,8 @@ exports.TermCategoryData = [
166
176
  },
167
177
  {
168
178
  id: 95300,
169
- title: '이메일 수신 동의',
170
- description: '이메일을 통해 광고성 메시지를 받겠다는 약관',
179
+ title: "이메일 수신 동의",
180
+ description: "이메일을 통해 광고성 메시지를 받겠다는 약관",
171
181
  member_type: null,
172
182
  dealer_type: null,
173
183
  isEssential: false,
@@ -1,10 +1,22 @@
1
1
  import { MemberGender } from "../member";
2
- export declare class AccidentRegistrationOptionDTO {
2
+ export interface AccidentRegistrationOptionDTO {
3
3
  /** 견인 필요 여부 */
4
4
  needTraction: boolean;
5
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
+ }
6
18
  /** 일반회원 - 사고접수 등록 */
7
- export declare class AccidentRegistrationCreateDTO {
19
+ export interface AccidentRegistrationCreateDTO {
8
20
  /** 접수자 본명 */
9
21
  name_real: string;
10
22
  /** 접수자 전화번호 */
@@ -23,5 +35,15 @@ export declare class AccidentRegistrationCreateDTO {
23
35
  * @notice InsuranceCompany의 Id
24
36
  */
25
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;
26
48
  option: AccidentRegistrationOptionDTO;
27
49
  }
@@ -1,10 +1,2 @@
1
1
  "use strict";
2
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;
@@ -17,8 +17,14 @@ export interface Member extends MemberShort {
17
17
  adminInfo?: AdminInfo;
18
18
  dealerInfo?: DealerInfo;
19
19
  customerInfo?: CustomerInfo;
20
- /** 해당 회원의 알람 개수 */
21
- notification: MemberNotification;
20
+ count: {
21
+ /** 해당 회원의 알람 개수 */
22
+ notification: MemberNotificationCount;
23
+ /** 해당 회원의 알람 개수 */
24
+ inquiry: MemberInquiryCount;
25
+ /** 해당 회원의 결제 개수 */
26
+ payment: MemberPaymentCount;
27
+ };
22
28
  }
23
29
  /**
24
30
  * @description 카사요 회원 간략 정보
@@ -86,9 +92,21 @@ export interface MemberSetting {
86
92
  /**
87
93
  * @description 회원 알람 개수
88
94
  */
89
- export interface MemberNotification {
95
+ export interface MemberNotificationCount {
90
96
  unreadCount: number;
91
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
+ }
92
110
  export interface CustomerInfo {
93
111
  amount: {
94
112
  /** 총 결재 금액을 의미합니다 */
@@ -117,6 +135,10 @@ export interface CustomerInfo {
117
135
  };
118
136
  /** 현재 좋아요한 차량 수 */
119
137
  likeCar: number;
138
+ /** 회원이 접수한 사고접수 개수 */
139
+ accidentRegistration: {
140
+ totalCount: number;
141
+ };
120
142
  };
121
143
  /** 등록 차량 정보 */
122
144
  registerCar: {
@@ -598,6 +620,17 @@ export interface RegisterCar {
598
620
  * @notice 한 회원당 하나만 가능합니다.
599
621
  */
600
622
  isRepresentative: boolean;
623
+ count: {
624
+ /** 해당 차량 사고 접수 횟수 */
625
+ accidentRegistration: number;
626
+ };
601
627
  created_at: Date;
602
628
  updated_at: Date;
603
629
  }
630
+ export interface Admin_SendMessageParam {
631
+ id: string;
632
+ name_real: string | null;
633
+ phoneNumber: string | null;
634
+ isFcmToken: boolean;
635
+ type: MemberType;
636
+ }
@@ -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
- * @notice 어드민만 사용합니다
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
  */
@@ -14,24 +14,20 @@ export interface GetTermDetailDTO extends TermCategoryIdDTO {
14
14
  /**
15
15
  * @description 광고성 메시지 수신 동의 약관 파트
16
16
  */
17
- export interface AdvertiseReceiveTermsDTO {
18
- /**
19
- * Optional - 광고성 푸시 알람 수신 동의
20
- */
17
+ export interface OptionalTermsAgreementDTO {
18
+ /** 위치기반서비스 이용 동의 */
19
+ 94100?: boolean;
20
+ /** 광고성 푸시 알람 수신 동의 */
21
21
  95100?: boolean;
22
- /**
23
- * Optional - 광고성 SMS 메시지 수신 동의
24
- */
22
+ /** 광고성 SMS 메시지 수신 동의 */
25
23
  95200?: boolean;
26
- /**
27
- * Optional - 광고성 이메일 수신 동의
28
- */
24
+ /** 광고성 이메일 수신 동의 */
29
25
  95300?: boolean;
30
26
  }
31
27
  /**
32
28
  * @description 고객 회원가입시 입력하는 약관
33
29
  */
34
- export interface CustomerSignupTermsDTO extends AdvertiseReceiveTermsDTO {
30
+ export interface CustomerSignupTermsDTO extends OptionalTermsAgreementDTO {
35
31
  /**
36
32
  * 서비스 이용약관
37
33
  */
@@ -56,7 +52,7 @@ export interface CustomerSignupTermsDTO extends AdvertiseReceiveTermsDTO {
56
52
  /**
57
53
  * @description 딜러 회원가입시 입력하는 약관
58
54
  */
59
- export interface DealerSignupTermsDTO extends AdvertiseReceiveTermsDTO {
55
+ export interface DealerSignupTermsDTO extends OptionalTermsAgreementDTO {
60
56
  /**
61
57
  * 서비스 이용약관
62
58
  */
@@ -103,7 +99,7 @@ export interface TermUpdateDTO extends TermCategoryIdDTO {
103
99
  export interface MemberChangeAgreeTermDTO {
104
100
  updateTerms: TermUpdateDTO[];
105
101
  }
106
- export interface DealerNewcarSignupTermsDTO extends AdvertiseReceiveTermsDTO {
102
+ export interface DealerNewcarSignupTermsDTO extends OptionalTermsAgreementDTO {
107
103
  /**
108
104
  * [딜러] 서비스 이용약관
109
105
  */
@@ -123,7 +119,7 @@ export interface DealerNewcarSignupTermsDTO extends AdvertiseReceiveTermsDTO {
123
119
  */
124
120
  24100: boolean;
125
121
  }
126
- export interface DealerUsedcarSignupTermsDTO extends AdvertiseReceiveTermsDTO {
122
+ export interface DealerUsedcarSignupTermsDTO extends OptionalTermsAgreementDTO {
127
123
  /**
128
124
  * [딜러] 서비스 이용약관
129
125
  */
@@ -143,7 +139,7 @@ export interface DealerUsedcarSignupTermsDTO extends AdvertiseReceiveTermsDTO {
143
139
  */
144
140
  25100: boolean;
145
141
  }
146
- export interface DealerLeaseRentSignupTermsDTO extends AdvertiseReceiveTermsDTO {
142
+ export interface DealerLeaseRentSignupTermsDTO extends OptionalTermsAgreementDTO {
147
143
  /**
148
144
  * [딜러] 서비스 이용약관
149
145
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carsayo/types",
3
- "version": "1.1.7708",
3
+ "version": "1.1.7761",
4
4
  "description": "Carsayo app type",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",