@carsayo/types 1.1.891775 → 1.1.891777

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.
@@ -18,21 +18,6 @@ export type ChatCreateRoomInfo = {
18
18
  additionalInfo?: ChatRoomAdditionalInfo;
19
19
  type: ChatRoomType;
20
20
  };
21
- export type ChatOpponentAdditionalInfo_Repair = {
22
- location?: {
23
- address: string;
24
- latitude: number;
25
- longitude: number;
26
- };
27
- review?: {
28
- count: number;
29
- average: number;
30
- };
31
- /** 단순 문장
32
- * @example "예상 수리 기간: 1일"
33
- */
34
- estimateFixTermText?: string;
35
- };
36
21
  export type ChatRoom = {
37
22
  id: string;
38
23
  type: ChatRoomType;
@@ -128,15 +128,20 @@ export interface RepairHistory {
128
128
  content: Date | string;
129
129
  additionalInfo?: {
130
130
  content: string;
131
- color?: string;
131
+ color?: {
132
+ accent?: string;
133
+ text?: string;
134
+ };
132
135
  };
133
136
  }[];
134
137
  features: RepairHistoryFeature[];
135
138
  }
136
139
  export type RepairHistoryFeature = {
140
+ title: string;
137
141
  type: "copy";
138
142
  value: string;
139
143
  } | {
144
+ title: string;
140
145
  type: "download";
141
146
  value: string;
142
147
  };
@@ -442,7 +447,9 @@ export interface RepairProgress {
442
447
  price: {
443
448
  부품비: number;
444
449
  공임비: number;
445
- /** 차감되는 비용 (값이 -로 들어옴) */
450
+ /** 차감되는 비용 (값이 -로 들어옴)
451
+ * @example 보험 차감금액이 "50000"이면 "-50000"을 저장
452
+ */
446
453
  보험: number;
447
454
  /** 총 비용
448
455
  * @note VAT 포함 가격
@@ -468,7 +475,9 @@ export interface RepairProgress {
468
475
  finish_date: string;
469
476
  /** 교체 완료 사진 URL */
470
477
  pictures: string[];
471
- /** 부품 */
478
+ /** 부품
479
+ * @note 타이어일 때에는 빈Array를 넣어주세요
480
+ */
472
481
  part: {
473
482
  /** 부품명 */
474
483
  name: string;
@@ -477,8 +486,22 @@ export interface RepairProgress {
477
486
  /** 부품비 */
478
487
  price: number;
479
488
  }[];
489
+ /** 타이어 교체 정보 */
490
+ tire: {
491
+ /** 타이어 브랜드 */
492
+ brandName: string;
493
+ /** 타이어 사이즈 */
494
+ size: TireSize;
495
+ /** 타이어 개수 */
496
+ count: number;
497
+ /** 타이어 비용
498
+ * @note 이 가격은 타이어 총 가격입니다. (타이어 한짝 가격 = price/count)
499
+ * @note VAT 포함 가격
500
+ */
501
+ price: number;
502
+ }[];
480
503
  price: {
481
- /** 상기 part 비용 합계 */
504
+ /** @notice 상기 part 비용과 무관합니다!!! */
482
505
  부품비: number;
483
506
  공임비: number;
484
507
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carsayo/types",
3
- "version": "1.1.891775",
3
+ "version": "1.1.891777",
4
4
  "description": "Carsayo app type",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",