@carsayo/types 1.1.891915 → 1.1.891917

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.
@@ -1,7 +1,7 @@
1
1
  import { SidoId } from "../../../data";
2
2
  import { FileInfo } from "../file";
3
3
  import { Member, MemberDealerType } from "../member";
4
- import { CurrentDealerPenaltyReason, SellMyCarType } from "./type";
4
+ import { CurrentDealerPenaltyReason, CurrentDealerPenaltyType, SellMyCarType } from "./type";
5
5
  export interface UsedCarDealerDisableInfo {
6
6
  /** 회원탈퇴 신청중일 경우 */
7
7
  signout: {
@@ -9,19 +9,14 @@ export interface UsedCarDealerDisableInfo {
9
9
  } | null;
10
10
  /** 관리자가 정지멕였을 경우 (기한, 사유없음) */
11
11
  ban: true | null;
12
- /** 패널티로 인하여 정지되었을 경우 */
13
- ban_by_penalty: {
12
+ /** 내차팔기 서비스 패널티 관련 정보 */
13
+ sell_car_penalty: {
14
+ /** 패널티 유형 */
15
+ type: CurrentDealerPenaltyType;
14
16
  /** 패널티 사유 */
15
- reason: string;
16
- /** 정지 종료 기간 */
17
- ban_finished_at: Date;
18
- } | null;
19
- /** 패널티로 인하여 입찰 금지되었을 경우 */
20
- bid_ban_by_penalty: {
21
- /** 패널티 사유 */
22
- reason: string;
23
- /** 입찰 금지 해제 시점 */
24
- ban_finished_at: Date;
17
+ reason: CurrentDealerPenaltyReason;
18
+ /** 패널티 만료 시점 */
19
+ expired_at: Date;
25
20
  } | null;
26
21
  }
27
22
  /** 딜러 등급 초기값 */
@@ -137,9 +132,18 @@ export interface UsedCarDealerMyselfInfo extends UsedCarDealerInfo {
137
132
  }
138
133
  /** 딜러 패널티 리스트 (견적실수, 경고 등) */
139
134
  export interface CurrentDealerPenalty {
140
- /** 구분 */
135
+ /** 패널티 사유 */
141
136
  reason: CurrentDealerPenaltyReason;
142
- /** 경고여부 */
137
+ /** 패널티 내용 */
138
+ content: string;
139
+ /** 이 경고로 인해 발생한 패널티 정보 */
140
+ penalty: {
141
+ type: CurrentDealerPenaltyType;
142
+ expired_at: Date;
143
+ } | null;
144
+ /** 경고 여부
145
+ * @note 경고가 false일 경우 관리자가 임의로 해제한 경고입니다.
146
+ */
143
147
  is_warning: boolean;
144
148
  /** 경고 받은 시점 */
145
149
  created_at: Date;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carsayo/types",
3
- "version": "1.1.891915",
3
+ "version": "1.1.891917",
4
4
  "description": "Carsayo app type",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",