@carsayo/types 1.1.891905 → 1.1.891907

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,4 +1,6 @@
1
+ import { CarMakerId, SidoId, SellCarTagId } from "../../../data";
1
2
  import { SellMyCarOrderInspection, SellMyCarRegistry } from "./interface";
3
+ import { SellMyCarOrderStatus, SellMyCarOrderBidStatus, SellMyCarOrderMethod, SellMyCarFilterCategory, SellMyCarOrderKey } from "./type";
2
4
  export interface ReqSellMyCarInspectorAuth {
3
5
  /** 인증 토큰
4
6
  * @note 쿼리스트링으로 전달받은 바로 그 값
@@ -30,3 +32,44 @@ export interface ReqSellMyCarUpdateRegistry extends ReqSellMyCarId {
30
32
  /** 원부조회 정보 */
31
33
  data: Exclude<SellMyCarRegistry, "created_at" | "sell_car_order_id">;
32
34
  }
35
+ /** 딜러용 주문 검색 요청 DTO */
36
+ export interface SellMyCarAuctionSearchDTO {
37
+ /** 스킵 개수 */
38
+ skip: number;
39
+ /** 조회 개수 */
40
+ take: number;
41
+ /** 검색 필터 */
42
+ filter?: SellMyCarAuctionSearchFilter;
43
+ /** 정렬 키 목록 */
44
+ order: {
45
+ key: SellMyCarOrderKey;
46
+ direction: "asc" | "desc";
47
+ }[];
48
+ }
49
+ /** 딜러용 주문 검색 필터 */
50
+ export interface SellMyCarAuctionSearchFilter {
51
+ /** 주문 상태 */
52
+ orderStatus?: SellMyCarOrderStatus[];
53
+ /** 내 입찰 상태 */
54
+ myBidStatus?: SellMyCarOrderBidStatus[];
55
+ /** 북마크(좋아요) 여부 */
56
+ isBookmark?: boolean;
57
+ /** 차량번호 검색 */
58
+ carNumber?: string;
59
+ /** 진행방법 (selecting 제외) */
60
+ type?: Exclude<SellMyCarOrderMethod, "selecting">[];
61
+ /** 제조사 */
62
+ maker?: CarMakerId[];
63
+ /** 분류 */
64
+ category?: SellMyCarFilterCategory[];
65
+ /** 지역 (시도) */
66
+ region?: SidoId[];
67
+ /** 재경매 여부 */
68
+ isReAuction?: boolean;
69
+ /** 내 입찰 여부 */
70
+ isMyBid?: boolean;
71
+ /** 구매 방식 (selecting 제외) */
72
+ buyMethod?: Exclude<SellMyCarOrderMethod, "selecting">[];
73
+ /** 태그 검색 */
74
+ tags?: SellCarTagId[];
75
+ }
@@ -125,3 +125,7 @@ export declare const SellMyCarOrderBidCancelType: {
125
125
  readonly dealer_changed: "dealer_changed";
126
126
  };
127
127
  export type SellMyCarOrderBidCancelType = keyof typeof SellMyCarOrderBidCancelType;
128
+ export declare const SellMyCarFilterCategory: readonly ["국산차", "수입차", "화물특장기타"];
129
+ export type SellMyCarFilterCategory = (typeof SellMyCarFilterCategory)[number];
130
+ export declare const SellMyCarOrderKey: readonly ["auction_start_at", "totalBidCount", "accept_at"];
131
+ export type SellMyCarOrderKey = (typeof SellMyCarOrderKey)[number];
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SellMyCarOrderBidCancelType = exports.SellMyCarOrderCancelType = exports.SellMyCarOrderBidSubject = exports.SellMyCarOrderRegistrationType = exports.SellMyCarOrderPurchaseMethod = exports.SellMyCarOrderType = exports.SellMyCarOrderBidStatus = exports.SellMyCarOrderStatus = exports.SellMyCarOrderMethod = exports.SellMyCarOrderBidType = exports.CurrentDealerPenaltyReason = exports.SellMyCarType = exports.SellMyCarRegistryLienType = exports.SellMyCarCommissionStatus = void 0;
3
+ exports.SellMyCarOrderKey = exports.SellMyCarFilterCategory = exports.SellMyCarOrderBidCancelType = exports.SellMyCarOrderCancelType = exports.SellMyCarOrderBidSubject = exports.SellMyCarOrderRegistrationType = exports.SellMyCarOrderPurchaseMethod = exports.SellMyCarOrderType = exports.SellMyCarOrderBidStatus = exports.SellMyCarOrderStatus = exports.SellMyCarOrderMethod = exports.SellMyCarOrderBidType = exports.CurrentDealerPenaltyReason = exports.SellMyCarType = exports.SellMyCarRegistryLienType = exports.SellMyCarCommissionStatus = void 0;
4
4
  exports.SellMyCarCommissionStatus = {
5
5
  pending: "입금 대기",
6
6
  completed: "입금 완료",
@@ -114,3 +114,20 @@ exports.SellMyCarOrderBidCancelType = {
114
114
  /** 딜러가 변경되어 취소되었을 경우 */
115
115
  dealer_changed: "dealer_changed",
116
116
  };
117
+ exports.SellMyCarFilterCategory = [
118
+ "국산차",
119
+ "수입차",
120
+ "화물특장기타",
121
+ ];
122
+ exports.SellMyCarOrderKey = [
123
+ /** 경매장 > 등록일순, 마감일순 정렬용
124
+ * @note 경매 시작 시간 기준 정렬
125
+ */
126
+ "auction_start_at",
127
+ /** 입찰수 정렬용 */
128
+ "totalBidCount",
129
+ /** 내 입찰 > 등록일순 정렬용
130
+ * @note 딜러가 승인한 날짜 기준 정렬
131
+ */
132
+ "accept_at",
133
+ ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carsayo/types",
3
- "version": "1.1.891905",
3
+ "version": "1.1.891907",
4
4
  "description": "Carsayo app type",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",