@carsayo/types 1.1.891919 → 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,6 +341,87 @@ export interface SellMyCarOrderInspection {
345
341
  canceledAt: Date;
346
342
  } | null;
347
343
  }
344
+ /** 내차팔기 진행 과정
345
+ * @note 딜러 입찰 승인 이후 - 구매 완료까지의 프로세스입니다 */
346
+ export interface SellMyCarOrderPurchaseProcess {
347
+ direct: {
348
+ /** [Direct] 딜러 방문 정보
349
+ * @note 입찰받지 못한 딜러에게는 null
350
+ * @note 직접등록일 경우에만 사용됩니다.
351
+ * @note 딜러가 판매 요청 승인 후 방문 일정을 등록한 내용입니다.
352
+ */
353
+ visit: SellMyCarOrderDirectVisit | null;
354
+ } | null;
355
+ agency: {
356
+ /** [Agency] 탁송 정보 (ㄴㄴㄴㄴㄴㄴㄴㄴㄴㄴ)
357
+ * @note 입찰받지 못한 딜러에게는 null
358
+ * @note 탁송일 경우에만 사용됩니다.
359
+ * @note 딜러가 판매 요청 승인 후 탁송 일정을 등록한 내용입니다.
360
+ */
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;
387
+ } | null;
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
+ }
348
425
  /** 딜러 방문 정보 */
349
426
  export interface SellMyCarOrderDirectVisit {
350
427
  /** 방문 일자 (Date 형식, 예상 방문 시점)
@@ -372,7 +449,7 @@ export interface SellMyCarOrderDirectVisit {
372
449
  */
373
450
  visitedCompletedAt: Date | null;
374
451
  }
375
- /** 탁송 방문 정보
452
+ /** 탁송 정보
376
453
  * @note 프로세스가 정립되지 않습니다
377
454
  */
378
455
  export interface SellMyCarOrderAgencyTransport {
@@ -392,12 +469,17 @@ export interface SellMyCarOrderAgencyTransport {
392
469
  deliveryCompletedAt: Date | null;
393
470
  }
394
471
  export interface SellMyCarOrderRegistration {
395
- /** 딜러가 등록한 등록증 처리 예정일 */
396
- expectedAt: Date;
397
- /** 등록증 타입 */
398
- type: SellMyCarOrderRegistrationType | null;
399
- /** 이전등록증 이미지 파일 리스트 */
400
- files: string[] | null;
472
+ /** 딜러가 등록한 등록증(이전 또는 말소) 처리 예정일 */
473
+ expected_at: Date;
474
+ /** 등록증 정보
475
+ * @note 딜러가 등록증을 업로드 한 이후 값이 등록됩니다.
476
+ */
477
+ registration: {
478
+ /** 등록증 타입 */
479
+ type: SellMyCarOrderRegistrationType;
480
+ /** 이전등록증 이미지 파일 리스트 */
481
+ files: string[];
482
+ } | null;
401
483
  }
402
484
  /** 매수자(딜러) 정보 */
403
485
  export interface SellMyCarOrderBuyer {
@@ -420,23 +502,6 @@ export interface SellMyCarOrderBuyer {
420
502
  /** 매수자 상세주소 */
421
503
  detailAddress: string;
422
504
  }
423
- /** @note FileInfo or string[] (url list) */
424
- export interface SellMyCarOrderFiles {
425
- /** 고객 신분증 파일 정보
426
- * @note 수출일 때에만 받습니다.
427
- */
428
- identification: {
429
- /** 최대 5개 */
430
- files: FileInfo[];
431
- uploaded_at: Date;
432
- } | null;
433
- /** 압류 / 저당일 경우 고객이 올린 서명 파일 */
434
- customerSignature: FileInfo | null;
435
- /** 계약서 이미지 파일 리스트 */
436
- contract: string[] | null;
437
- /** 성능검사서 이미지 파일 리스트 */
438
- performanceCheck: string[] | null;
439
- }
440
505
  /** 고객이 작성한 판매 요청 정보
441
506
  * @note 딜러 선택 시 입력한 내용입니다.
442
507
  */
@@ -498,21 +563,6 @@ export interface SellMyCarOrderCustomer {
498
563
  /** 고객 전화번호 */
499
564
  phoneNumber: string;
500
565
  }
501
- /** @note status: "finished" 일 때 존재하는 정보 */
502
- export interface SellMyCarOrderFinishInfo {
503
- direct: {
504
- /** 가격조정근거(검차결과)
505
- * @note sell-car-direct.price_adjustment에서 조회
506
- * @note Stringified JSON
507
- */
508
- priceAdjustment: string | null;
509
- } | null;
510
- agency: {} | null;
511
- /** 관리자가 종결처리 했는지 여부 */
512
- admin_finished_at: Date | null;
513
- /** 딜러가 판매(딜러입장에서 구매)를 완료한 날짜 */
514
- finishedAt: Date;
515
- }
516
566
  export interface SellMyCarOrderBookmark {
517
567
  /** 북마크 여부 */
518
568
  is_bookmarked: boolean;
@@ -580,30 +630,19 @@ export interface SellMyCarOrder {
580
630
  * @note 입찰받지 못한 딜러에게는 null
581
631
  */
582
632
  sell_request: SellMyCarOrderCustomerSellRequest | null;
583
- /** [Direct] 딜러 방문 정보
584
- * @note 입찰받지 못한 딜러에게는 null
585
- * @note 직접등록일 경우에만 사용됩니다.
586
- * @note 딜러가 판매 요청 승인 후 방문 일정을 등록한 내용입니다.
587
- */
588
- direct_visit: SellMyCarOrderDirectVisit | null;
589
- /** [Agency] 탁송 정보
590
- * @note 입찰받지 못한 딜러에게는 null
591
- * @note 탁송일 경우에만 사용됩니다.
592
- * @note 딜러가 판매 요청 승인 후 탁송 일정을 등록한 내용입니다.
593
- */
594
- agency_transport: SellMyCarOrderAgencyTransport | null;
595
- /** 매수자 정보
633
+ /** 내차팔기 진행 과정
596
634
  * @note 입찰받지 못한 딜러에게는 null
597
635
  */
598
- buyer: SellMyCarOrderBuyer | null;
599
- /** 등록증 정보
636
+ purchase_process: SellMyCarOrderPurchaseProcess | null;
637
+ /** 내차팔기 구매 정보 (딜러 구매 완료시 등록되는 정보)
600
638
  * @note 입찰받지 못한 딜러에게는 null
601
639
  */
602
- registration: SellMyCarOrderRegistration | null;
603
- /** 파일 정보
640
+ purchase_info: SellMyCarOrderPurchaseInfo | null;
641
+ /** 딜러 구매 완료 이후 프로세스
604
642
  * @note 입찰받지 못한 딜러에게는 null
643
+ * @note 딜러가 구매 완료 이후 프로세스입니다.
605
644
  */
606
- files: SellMyCarOrderFiles | null;
645
+ after_purchase: SellMyCarOrderAfterPurchase | null;
607
646
  /** 리뷰 정보 */
608
647
  review: SellMyCarOrderReview | null;
609
648
  /** 태그 정보
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carsayo/types",
3
- "version": "1.1.891919",
3
+ "version": "1.1.891920",
4
4
  "description": "Carsayo app type",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",