@carsayo/types 1.1.892018 → 1.1.892021

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,5 +1,6 @@
1
1
  import { CarMakerId, SidoId, SellCarTagId } from "../../../data";
2
2
  import { SellMyCarOrderInspection, SellMyCarRegistry, SellMyCarRegistryLien } from "./interface";
3
+ import { DealerGrade } from "./interface-member";
3
4
  import { SellMyCarOrderStatus, SellMyCarOrderBidStatus, SellMyCarOrderMethod, SellMyCarFilterCategory, SellMyCarOrderKey, SellMyCarOrderPurchaseMethod, SellMyCarOrderRegistrationType, SellMyCarOrderStatus_Admin, SellMyCarOrderBidCancelType, SellMyCarOrderCancelType } from "./type";
4
5
  export interface ReqSellMyCarInspectorAuth {
5
6
  /** 인증 토큰
@@ -184,3 +185,26 @@ export interface ReqSellMyCarSettlementRequestExpenseProofDTO extends ReqSellMyC
184
185
  } | null;
185
186
  };
186
187
  }
188
+ /** 관리자 > 경고 생성 DTO */
189
+ export interface ReqCreateSellMyCarDealerPenalty {
190
+ /** 딜러 Id */
191
+ memberId: string;
192
+ /** 경고 사유 */
193
+ content: string;
194
+ }
195
+ /** 관리자 > 경고 생성 DTO */
196
+ export interface ReqUpdateSellMyCarDealerPenalty {
197
+ /** 경고 Id */
198
+ penaltyId: number;
199
+ /** 경고 적용 / 미적용 처리
200
+ * @note true이면 경고 적용으로 업데이트합니다.
201
+ */
202
+ is_warning: boolean;
203
+ }
204
+ /** 관리자 > 딜러 등급 변경 */
205
+ export interface ReqUpdateSellMyCarDealerGrade {
206
+ /** 딜러 Id */
207
+ memberId: string;
208
+ /** 변경 등급 */
209
+ grade: DealerGrade;
210
+ }
@@ -6,3 +6,4 @@ export * from "./dto";
6
6
  export * from "./dto-admin";
7
7
  export * from "./interface-faq";
8
8
  export * from "./interface-notice";
9
+ export * from "./interface-admin";
@@ -22,3 +22,4 @@ __exportStar(require("./dto"), exports);
22
22
  __exportStar(require("./dto-admin"), exports);
23
23
  __exportStar(require("./interface-faq"), exports);
24
24
  __exportStar(require("./interface-notice"), exports);
25
+ __exportStar(require("./interface-admin"), exports);
@@ -0,0 +1,36 @@
1
+ import { CurrentDealerPenaltyType } from "./type";
2
+ /** 관리자 > 경고 조회 데이터 */
3
+ export interface SellMyCar_Admin_DealerPenalty {
4
+ /** 경고 Id */
5
+ id: number;
6
+ /** 경고 발생 유형
7
+ * @example "시스템", "관리자명"
8
+ */
9
+ origin: string;
10
+ /** 경고 사유
11
+ * @note 여러 줄 문자열 가능
12
+ */
13
+ content: string;
14
+ /** 패널티가 발생한 주문 정보 */
15
+ sellCarOrder: {
16
+ /** 내차팔기 주문 Id */
17
+ id: string;
18
+ /** 차량번호 */
19
+ carNumber: string;
20
+ /** 주문 고객명 */
21
+ customerName: string;
22
+ } | null;
23
+ /** 이 경고로 인해 발생한 패널티 정보 */
24
+ penalty: {
25
+ type: CurrentDealerPenaltyType;
26
+ expired_at: Date;
27
+ } | null;
28
+ /** 경고 여부 (true일 때에만 경고로 취급됩니다.)
29
+ * @note 경고가 false일 경우 관리자가 임의로 해제한 경고입니다.
30
+ */
31
+ is_warning: boolean;
32
+ /** 경고 받은 시점 */
33
+ created_at: Date;
34
+ /** 수정일시 */
35
+ updated_at: Date;
36
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carsayo/types",
3
- "version": "1.1.892018",
3
+ "version": "1.1.892021",
4
4
  "description": "Carsayo app type",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",