@carsayo/types 1.1.891918 → 1.1.891920

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.
@@ -84,7 +84,7 @@ export interface SellMyCarRegistry {
84
84
  /** 생성일 */
85
85
  created_at: Date;
86
86
  }
87
- /** 압류/저당 정보 */
87
+ /** 원부정보 > 압류/저당 정보 */
88
88
  export interface SellMyCarRegistryLien {
89
89
  /** 고유 식별자 */
90
90
  id: number;
@@ -162,10 +162,6 @@ export interface SellMyCarOrderBid {
162
162
  * @case SellMyCarOrderBidCancelType
163
163
  */
164
164
  cancelInfo: SellMyCarOrderCancelInfo<SellMyCarOrderBidCancelType> | null;
165
- /** 종료 정보
166
- * @note status: "finished" 일 때 존재하는 정보
167
- */
168
- finishInfo: SellMyCarOrderFinishInfo | null;
169
165
  /** 해당 입찰에 대하여 취할 수 있는 동작 */
170
166
  avaliableAction: {
171
167
  customer: SellMyCarOrderBidAvaliableAction_Customer;
@@ -345,55 +341,89 @@ export interface SellMyCarOrderInspection {
345
341
  canceledAt: Date;
346
342
  } | null;
347
343
  }
348
- /** 딜러방문 / 차량인도 정보
349
- * @deprecated
350
- */
351
- export interface SellMyCarOrderVisit {
352
- /** 직접등록 > 방문정보 (딜러가 지정) */
344
+ /** 내차팔기 진행 과정
345
+ * @note 딜러 입찰 승인 이후 - 구매 완료까지의 프로세스입니다 */
346
+ export interface SellMyCarOrderPurchaseProcess {
353
347
  direct: {
354
- /** 방문 일자 (Date 형식, 예상 방문 시점)
355
- * @note visitedDay와 visitedTime를 가지고 계산한 값과 같습니다.
356
- */
357
- visitedAt: Date;
358
- /** 방문 일자 (m월 d일 ddd 형식, 예상 방문 일자)
359
- * @example '7월 1일 금요일'
360
- */
361
- visitedDay: string;
362
- /** 방문 시간(분)
363
- * @example 600: 10:00 (10시)
364
- */
365
- visitedTime: number;
366
- /** 방문 신주소 */
367
- visitedNewAddress: string;
368
- /** 방문 구주소 */
369
- visitedOldAddress: string;
370
- /** 방문 상세 주소 */
371
- visitedDetailAddress: string;
372
- /** 방문 완료 날짜
373
- * @note DB상에서는 종료 날짜와 같습니다. (finished_at)
348
+ /** [Direct] 딜러 방문 정보
349
+ * @note 입찰받지 못한 딜러에게는 null
350
+ * @note 직접등록일 경우에만 사용됩니다.
351
+ * @note 딜러가 판매 요청 승인 후 방문 일정을 등록한 내용입니다.
374
352
  */
375
- visitedCompletedAt: Date | null;
353
+ visit: SellMyCarOrderDirectVisit | null;
376
354
  } | null;
377
- /** 카사요 퍼펙트 > 차량 인도 정보 (딜러가 지정) */
378
355
  agency: {
379
- /** 차량 인도 일자
380
- * @example '7월 1일 금요일'
356
+ /** [Agency] 탁송 정보 (ㄴㄴㄴㄴㄴㄴㄴㄴㄴㄴ)
357
+ * @note 입찰받지 못한 딜러에게는 null
358
+ * @note 탁송일 경우에만 사용됩니다.
359
+ * @note 딜러가 판매 요청 승인 후 탁송 일정을 등록한 내용입니다.
381
360
  */
382
- deliveryDay: string;
383
- /** 차량 인도 시간 */
384
- deliveryTime: number;
385
- /** 차량 인도 신주소 */
386
- deliveryNewAddress: string;
387
- /** 차량 인도 구주소 */
388
- deliveryOldAddress: string;
389
- /** 차량 인도 상세 주소 */
390
- deliveryDetailAddress: string;
391
- /** 차량 인도 완료 날짜 */
392
- deliveryCompletedAt: Date | null;
361
+ transport: SellMyCarOrderAgencyTransport | null;
362
+ };
363
+ /** 매수자 정보 (방문 일정 등록 후 딜러가 등록) */
364
+ buyer: SellMyCarOrderBuyer | null;
365
+ /** 압류/저당 해지 동의 (null일 경우 미동의)
366
+ * @note 압류/저당 해지 동의 정보는 고객이 등록한 정보입니다.
367
+ * @condition 원부정보 > 압류/저당 정보가 존재할 경우, 고객이 등록할 수 있습니다.
368
+ */
369
+ lien_release_agreement: {
370
+ /** 압류 / 저당일 경우 고객이 올린 서명 파일 */
371
+ signature_file: FileInfo;
372
+ /** 압류/저당 해지 동의 날짜 */
373
+ agreed_at: Date;
374
+ } | null;
375
+ /**
376
+ * 해외수출용 고객 신분증 업로드 정보
377
+ * @note 고객이 입력하는 정보
378
+ * @condition 딜러가 해외수출용으로 구매할 경우 필수 조건입니다.
379
+ */
380
+ export_identification: {
381
+ /**
382
+ * 고객 신분증 파일 정보
383
+ * @note 최대 5개 */
384
+ files: FileInfo[];
385
+ /** 업로드 날짜 */
386
+ uploaded_at: Date;
393
387
  } | null;
394
388
  }
389
+ /** 내차팔기 구매 정보 */
390
+ export interface SellMyCarOrderPurchaseInfo {
391
+ /** 실제 판매가
392
+ * @direct 직접등록에서 검차결과 후
393
+ * @agency 진단대행은 입찰가 그대로 등록
394
+ * */
395
+ price_real: number;
396
+ /** 감가상각 정보
397
+ * @direct 직접등록에서 검차결과 후 감가상각이 있을 경우 값 존재
398
+ * @agency 진단대행은 무조건 Null
399
+ */
400
+ depreciation: {
401
+ /** 감가상각된 금액 */
402
+ price_depreciation: number;
403
+ /** 가격조정근거(검차결과)
404
+ * @note Stringified JSON
405
+ */
406
+ price_adjustment: string | null;
407
+ } | null;
408
+ /** 딜러 구매 완료 시점 */
409
+ purchase_completed_at: Date;
410
+ }
411
+ /** 딜러 구매 완료 이후 프로세스 */
412
+ export interface SellMyCarOrderAfterPurchase {
413
+ /** 등록증 정보 */
414
+ registration: SellMyCarOrderRegistration;
415
+ /** 딜러가 구매 완료 이후 업로드하는 파일 정보 */
416
+ files: {
417
+ /** 계약서 이미지 파일 리스트 */
418
+ contract: string[] | null;
419
+ /** 성능검사서 이미지 파일 리스트 */
420
+ performanceCheck: string[] | null;
421
+ };
422
+ /** 관리자가 종결처리 했는지 여부 */
423
+ admin_finished_at: Date | null;
424
+ }
395
425
  /** 딜러 방문 정보 */
396
- export interface SellMyCarOrderVisitDealer {
426
+ export interface SellMyCarOrderDirectVisit {
397
427
  /** 방문 일자 (Date 형식, 예상 방문 시점)
398
428
  * @note visitedDay와 visitedTime를 가지고 계산한 값과 같습니다.
399
429
  */
@@ -419,13 +449,37 @@ export interface SellMyCarOrderVisitDealer {
419
449
  */
420
450
  visitedCompletedAt: Date | null;
421
451
  }
452
+ /** 탁송 정보
453
+ * @note 프로세스가 정립되지 않습니다
454
+ */
455
+ export interface SellMyCarOrderAgencyTransport {
456
+ /** 차량 인도 일자
457
+ * @example '7월 1일 금요일'
458
+ */
459
+ deliveryDay: string;
460
+ /** 차량 인도 시간 */
461
+ deliveryTime: number;
462
+ /** 차량 인도 신주소 */
463
+ deliveryNewAddress: string;
464
+ /** 차량 인도 구주소 */
465
+ deliveryOldAddress: string;
466
+ /** 차량 인도 상세 주소 */
467
+ deliveryDetailAddress: string;
468
+ /** 차량 인도 완료 날짜 */
469
+ deliveryCompletedAt: Date | null;
470
+ }
422
471
  export interface SellMyCarOrderRegistration {
423
- /** 딜러가 등록한 등록증 처리 예정일 */
424
- expectedAt: Date;
425
- /** 등록증 타입 */
426
- type: SellMyCarOrderRegistrationType | null;
427
- /** 이전등록증 이미지 파일 리스트 */
428
- files: string[] | null;
472
+ /** 딜러가 등록한 등록증(이전 또는 말소) 처리 예정일 */
473
+ expected_at: Date;
474
+ /** 등록증 정보
475
+ * @note 딜러가 등록증을 업로드 한 이후 값이 등록됩니다.
476
+ */
477
+ registration: {
478
+ /** 등록증 타입 */
479
+ type: SellMyCarOrderRegistrationType;
480
+ /** 이전등록증 이미지 파일 리스트 */
481
+ files: string[];
482
+ } | null;
429
483
  }
430
484
  /** 매수자(딜러) 정보 */
431
485
  export interface SellMyCarOrderBuyer {
@@ -448,23 +502,6 @@ export interface SellMyCarOrderBuyer {
448
502
  /** 매수자 상세주소 */
449
503
  detailAddress: string;
450
504
  }
451
- /** @note FileInfo or string[] (url list) */
452
- export interface SellMyCarOrderFiles {
453
- /** 고객 신분증 파일 정보
454
- * @note 수출일 때에만 받습니다.
455
- */
456
- identification: {
457
- /** 최대 5개 */
458
- files: FileInfo[];
459
- uploaded_at: Date;
460
- } | null;
461
- /** 압류 / 저당일 경우 고객이 올린 서명 파일 */
462
- customerSignature: FileInfo | null;
463
- /** 계약서 이미지 파일 리스트 */
464
- contract: string[] | null;
465
- /** 성능검사서 이미지 파일 리스트 */
466
- performanceCheck: string[] | null;
467
- }
468
505
  /** 고객이 작성한 판매 요청 정보
469
506
  * @note 딜러 선택 시 입력한 내용입니다.
470
507
  */
@@ -526,21 +563,6 @@ export interface SellMyCarOrderCustomer {
526
563
  /** 고객 전화번호 */
527
564
  phoneNumber: string;
528
565
  }
529
- /** @note status: "finished" 일 때 존재하는 정보 */
530
- export interface SellMyCarOrderFinishInfo {
531
- direct: {
532
- /** 가격조정근거(검차결과)
533
- * @note sell-car-direct.price_adjustment에서 조회
534
- * @note Stringified JSON
535
- */
536
- priceAdjustment: string | null;
537
- } | null;
538
- agency: {} | null;
539
- /** 관리자가 종결처리 했는지 여부 */
540
- admin_finished_at: Date | null;
541
- /** 딜러가 판매(딜러입장에서 구매)를 완료한 날짜 */
542
- finishedAt: Date;
543
- }
544
566
  export interface SellMyCarOrderBookmark {
545
567
  /** 북마크 여부 */
546
568
  is_bookmarked: boolean;
@@ -608,28 +630,19 @@ export interface SellMyCarOrder {
608
630
  * @note 입찰받지 못한 딜러에게는 null
609
631
  */
610
632
  sell_request: SellMyCarOrderCustomerSellRequest | null;
611
- /** [Direct] 딜러 방문 정보
633
+ /** 내차팔기 진행 과정
612
634
  * @note 입찰받지 못한 딜러에게는 null
613
- * @note 직접등록일 경우에만 사용됩니다.
614
- * @note 딜러가 판매 요청 승인 후 방문 일정을 등록한 내용입니다.
615
635
  */
616
- visit_dealer: SellMyCarOrderVisitDealer | null;
617
- /** 방문 정보 (딜러가 결정)
618
- * @note 입찰받지 못한 딜러에게는 null
619
- */
620
- visit: SellMyCarOrderVisit | null;
621
- /** 매수자 정보
622
- * @note 입찰받지 못한 딜러에게는 null
623
- */
624
- buyer: SellMyCarOrderBuyer | null;
625
- /** 등록증 정보
636
+ purchase_process: SellMyCarOrderPurchaseProcess | null;
637
+ /** 내차팔기 구매 정보 (딜러 구매 완료시 등록되는 정보)
626
638
  * @note 입찰받지 못한 딜러에게는 null
627
639
  */
628
- registration: SellMyCarOrderRegistration | null;
629
- /** 파일 정보
640
+ purchase_info: SellMyCarOrderPurchaseInfo | null;
641
+ /** 딜러 구매 완료 이후 프로세스
630
642
  * @note 입찰받지 못한 딜러에게는 null
643
+ * @note 딜러가 구매 완료 이후 프로세스입니다.
631
644
  */
632
- files: SellMyCarOrderFiles | null;
645
+ after_purchase: SellMyCarOrderAfterPurchase | null;
633
646
  /** 리뷰 정보 */
634
647
  review: SellMyCarOrderReview | null;
635
648
  /** 태그 정보
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carsayo/types",
3
- "version": "1.1.891918",
3
+ "version": "1.1.891920",
4
4
  "description": "Carsayo app type",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",