@carsayo/types 1.1.0 → 1.1.2

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.
Files changed (106) hide show
  1. package/dist/data/bankcode.d.ts +167 -0
  2. package/dist/data/banner.d.ts +36 -0
  3. package/dist/data/board.d.ts +32 -0
  4. package/dist/data/car.d.ts +867 -0
  5. package/dist/data/carPopularCategory.d.ts +20 -0
  6. package/dist/data/collaborator.d.ts +8 -0
  7. package/dist/data/index.d.ts +12 -0
  8. package/dist/data/popup.d.ts +20 -0
  9. package/dist/data/purchase.d.ts +18 -0
  10. package/dist/data/region.d.ts +1224 -0
  11. package/dist/data/role.d.ts +91 -0
  12. package/dist/data/system.d.ts +19 -0
  13. package/dist/data/term.d.ts +153 -0
  14. package/dist/index.d.ts +2 -7
  15. package/dist/types/index.d.ts +2 -0
  16. package/dist/types/modules/banner/dto.d.ts +35 -0
  17. package/dist/types/modules/banner/index.d.ts +2 -0
  18. package/dist/types/modules/banner/interface.d.ts +50 -0
  19. package/dist/types/modules/board/dto.d.ts +189 -0
  20. package/dist/types/modules/board/index.d.ts +3 -0
  21. package/dist/types/modules/board/interface.d.ts +233 -0
  22. package/dist/types/modules/board/type.d.ts +29 -0
  23. package/dist/types/modules/car/dto.d.ts +72 -0
  24. package/dist/types/modules/car/index.d.ts +3 -0
  25. package/dist/types/modules/car/interface.d.ts +249 -0
  26. package/dist/types/modules/car/type.d.ts +11 -0
  27. package/dist/types/modules/collaborator/dto.d.ts +10 -0
  28. package/dist/types/modules/collaborator/index.d.ts +1 -0
  29. package/dist/types/modules/common/index.d.ts +2 -0
  30. package/dist/types/modules/common/interface.d.ts +23 -0
  31. package/dist/types/modules/common/type.d.ts +25 -0
  32. package/dist/types/modules/file/dto.d.ts +17 -0
  33. package/dist/types/modules/file/index.d.ts +3 -0
  34. package/dist/types/modules/file/interface.d.ts +26 -0
  35. package/dist/types/modules/file/type.d.ts +13 -0
  36. package/dist/types/modules/history/dto.d.ts +12 -0
  37. package/dist/types/modules/history/index.d.ts +2 -0
  38. package/dist/types/modules/history/interface.d.ts +12 -0
  39. package/dist/types/modules/index.d.ts +15 -0
  40. package/dist/types/modules/inquiry/dto.d.ts +79 -0
  41. package/dist/types/modules/inquiry/index.d.ts +3 -0
  42. package/dist/types/modules/inquiry/interface.d.ts +37 -0
  43. package/dist/types/modules/inquiry/type.d.ts +14 -0
  44. package/dist/types/modules/member/dto.d.ts +587 -0
  45. package/dist/types/modules/member/index.d.ts +3 -0
  46. package/dist/types/modules/member/interface.d.ts +582 -0
  47. package/dist/types/modules/member/type.d.ts +73 -0
  48. package/dist/types/modules/notification/dto.d.ts +13 -0
  49. package/dist/types/modules/notification/index.d.ts +3 -0
  50. package/dist/types/modules/notification/interface.d.ts +19 -0
  51. package/dist/types/modules/notification/type.d.ts +5 -0
  52. package/dist/types/modules/order/dto.d.ts +446 -0
  53. package/dist/types/modules/order/index.d.ts +3 -0
  54. package/dist/types/modules/order/interface.d.ts +905 -0
  55. package/dist/types/modules/order/type.d.ts +161 -0
  56. package/dist/types/modules/popup/dto.d.ts +33 -0
  57. package/dist/types/modules/popup/index.d.ts +2 -0
  58. package/dist/types/modules/popup/interface.d.ts +49 -0
  59. package/dist/types/modules/purchase/dto.d.ts +9 -0
  60. package/dist/types/modules/purchase/index.d.ts +3 -0
  61. package/dist/types/modules/purchase/interface.d.ts +22 -0
  62. package/dist/types/modules/purchase/type.d.ts +11 -0
  63. package/dist/types/modules/system/dto.d.ts +13 -0
  64. package/dist/types/modules/system/index.d.ts +2 -0
  65. package/dist/types/modules/system/interface.d.ts +18 -0
  66. package/dist/types/modules/term/dto.d.ts +175 -0
  67. package/dist/types/modules/term/index.d.ts +2 -0
  68. package/dist/types/modules/term/interface.d.ts +45 -0
  69. package/dist/types/providers/coocon-usedcar/dto.d.ts +23 -0
  70. package/dist/types/providers/coocon-usedcar/index.d.ts +2 -0
  71. package/dist/types/providers/coocon-usedcar/interface.d.ts +300 -0
  72. package/dist/types/providers/firebase-message/dto.d.ts +83 -0
  73. package/dist/types/providers/firebase-message/index.d.ts +2 -0
  74. package/dist/types/providers/firebase-message/interface.d.ts +4 -0
  75. package/dist/types/providers/gabia-sms/dto.d.ts +31 -0
  76. package/dist/types/providers/gabia-sms/index.d.ts +1 -0
  77. package/dist/types/providers/index.d.ts +7 -0
  78. package/dist/types/providers/mailer/dto.d.ts +4 -0
  79. package/dist/types/providers/mailer/index.d.ts +1 -0
  80. package/dist/types/providers/niceapi/dto.d.ts +15 -0
  81. package/dist/types/providers/niceapi/index.d.ts +2 -0
  82. package/dist/types/providers/niceapi/interface.d.ts +22 -0
  83. package/dist/types/providers/nicepayment/dto.d.ts +60 -0
  84. package/dist/types/providers/nicepayment/index.d.ts +3 -0
  85. package/dist/types/providers/nicepayment/interface.d.ts +168 -0
  86. package/dist/types/providers/nicepayment/type.d.ts +36 -0
  87. package/dist/validator/IsNullable.d.ts +3 -0
  88. package/package.json +5 -1
  89. package/dist/type/all.ts +0 -5402
  90. package/dist/type/data/bankcode.ts +0 -64
  91. package/dist/type/data/banner.ts +0 -45
  92. package/dist/type/data/board.ts +0 -37
  93. package/dist/type/data/car.ts +0 -1015
  94. package/dist/type/data/carPopularCategory.ts +0 -28
  95. package/dist/type/data/collaborator.ts +0 -13
  96. package/dist/type/data/popup.ts +0 -26
  97. package/dist/type/data/purchase.ts +0 -24
  98. package/dist/type/data/region.ts +0 -348
  99. package/dist/type/data/role.ts +0 -118
  100. package/dist/type/data/system.ts +0 -31
  101. package/dist/type/data/term.ts +0 -184
  102. package/dist/type/history.ts +0 -25
  103. package/dist/type/interface/type.ts +0 -43
  104. package/dist/type/order.ts +0 -696
  105. package/dist/type/purchase.ts +0 -286
  106. package/dist/type/selling.ts +0 -169
@@ -0,0 +1,26 @@
1
+ import { FileState } from "./type";
2
+ export interface FileInfo {
3
+ id: string;
4
+ member_id: string | null;
5
+ name: string;
6
+ /** filesize (byte단위) */
7
+ size: number | null;
8
+ /** image/png */
9
+ contentType: string;
10
+ /** png */
11
+ extension: string;
12
+ url: string;
13
+ type: string;
14
+ state: FileState;
15
+ isPublic: boolean;
16
+ created_at: Date;
17
+ deleted_at: Date | null;
18
+ updated_at: Date;
19
+ }
20
+ export interface GetFileUploadUrlResponseDTO {
21
+ /** AWS PUT request Presigned URL */
22
+ presignedUrl: string;
23
+ fileId: string;
24
+ fileUrl: string;
25
+ isPublic: boolean;
26
+ }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @init PresignedUrl이 생성된 상태
3
+ * @uploaded 파일이 S3에 있음을 보장할 수 있는 상태입니다
4
+ * @start_remove 파일 삭제중입니다
5
+ * @removed 파일이 S3에서 진짜로 삭제되었습니다
6
+ */
7
+ export declare const FileState: {
8
+ readonly init: "init";
9
+ readonly uploaded: "uploaded";
10
+ readonly start_remove: "start_remove";
11
+ readonly removed: "removed";
12
+ };
13
+ export type FileState = keyof typeof FileState;
@@ -0,0 +1,12 @@
1
+ /** 보험 링크 클릭 로그 생성 */
2
+ export declare class HistoryInsuranceClickDTO {
3
+ target: string;
4
+ from?: string;
5
+ }
6
+ /**
7
+ * @description 글 리스트 검색
8
+ */
9
+ export declare class GetInsuranceListDTO {
10
+ skip?: number;
11
+ take: number;
12
+ }
@@ -0,0 +1,2 @@
1
+ export * from "./dto";
2
+ export * from "./interface";
@@ -0,0 +1,12 @@
1
+ import { DeviceType } from "../common";
2
+ import { MemberShort } from "../member";
3
+ export interface HistoryInsuranceClick {
4
+ member: MemberShort | null;
5
+ /** 클릭 대상 */
6
+ target: string;
7
+ /** 링크 클릭이 발생된 곳 */
8
+ from: string | null;
9
+ device: DeviceType;
10
+ ip: string;
11
+ created_at: Date;
12
+ }
@@ -0,0 +1,15 @@
1
+ export * from "./banner";
2
+ export * from "./board";
3
+ export * from "./car";
4
+ export * from "./collaborator";
5
+ export * from "./common";
6
+ export * from "./file";
7
+ export * from "./history";
8
+ export * from "./inquiry";
9
+ export * from "./member";
10
+ export * from "./notification";
11
+ export * from "./order";
12
+ export * from "./popup";
13
+ export * from "./purchase";
14
+ export * from "./system";
15
+ export * from "./term";
@@ -0,0 +1,79 @@
1
+ /** DTO는 서버단에 요청을 보낼 때 사용하는 클래스 유형으로 서버단에서 이 곳에 정의된 대로 유효성 검사를 처리합니다. */
2
+ import { MemberType } from "../member";
3
+ import { InquiryIntervalTarget, InquiryState } from "./type";
4
+ export declare class InquiryIdDTO {
5
+ inquiryId: string;
6
+ }
7
+ /** 일반 회원, 카매니저 회원이 일대일 문의를 제출합니다 */
8
+ export declare class InquirySubmitDTO {
9
+ /** 해당 일대일 문의의 유형입니다. 임의의 String을 받습니다 */
10
+ type: string;
11
+ /** 일대일 문의 제목 */
12
+ title: string;
13
+ /** 일대일 문의 내용 */
14
+ content: string;
15
+ /** 일대일 문의 내 파일 1 */
16
+ file_1_id?: string | null;
17
+ /** 일대일 문의 내 파일 2 */
18
+ file_2_id?: string | null;
19
+ }
20
+ /**
21
+ * 일반 회원, 카매니저 회원이 일대일 문의를 수정합니다
22
+ * @description 이미 응답 완료된 문의는 수정할 수 없습니다
23
+ */
24
+ export declare class InquiryUpdateDTO extends InquiryIdDTO {
25
+ /** 해당 일대일 문의의 유형입니다. 임의의 String을 받습니다 */
26
+ type?: string;
27
+ /** 일대일 문의 제목 */
28
+ title?: string;
29
+ /** 일대일 문의 내용 */
30
+ content?: string;
31
+ /** 일대일 문의 내 파일 1 */
32
+ file_id_1?: string | null;
33
+ /** 일대일 문의 내 파일 2 */
34
+ file_id_2?: string | null;
35
+ }
36
+ export declare class InquiryIntervalDTO {
37
+ target: InquiryIntervalTarget;
38
+ start: Date | null;
39
+ end: Date | null;
40
+ }
41
+ export declare class InquiryOptionDTO {
42
+ inquiryStateList?: InquiryState[];
43
+ memberTypeList?: MemberType[];
44
+ memberId?: string;
45
+ }
46
+ export declare class InquirySearchDTO {
47
+ /**
48
+ * 성명 검색시 값 입력
49
+ */
50
+ name_real?: string;
51
+ /**
52
+ * 닉네임 검색시 값 입력
53
+ */
54
+ name_nick?: string;
55
+ /**
56
+ * 제목 검색 시
57
+ */
58
+ title?: string;
59
+ /**
60
+ * 내용 검색 시
61
+ */
62
+ content?: string;
63
+ }
64
+ export declare class InquiryAdditionalInfoDTO {
65
+ /** true일 경우 응답 내에 state별 숫자가 나옵니다. */
66
+ inquiryState?: boolean;
67
+ }
68
+ /** 어드민이 일대일 문의 리스트 검색하여 출력 */
69
+ export declare class InquiryGetListDTO {
70
+ skip?: number;
71
+ take: number;
72
+ interval?: InquiryIntervalDTO;
73
+ option?: InquiryOptionDTO;
74
+ search?: InquirySearchDTO;
75
+ additionalInfo?: InquiryAdditionalInfoDTO;
76
+ }
77
+ export declare class InquiryAnswerDTO extends InquiryIdDTO {
78
+ answerContent: string;
79
+ }
@@ -0,0 +1,3 @@
1
+ export * from "./dto";
2
+ export * from "./interface";
3
+ export * from "./type";
@@ -0,0 +1,37 @@
1
+ import { FileInfo } from "../file";
2
+ import { MemberShort } from "../member";
3
+ import { InquiryState } from "./type";
4
+ /** 일대일 문의 상세 내용 */
5
+ export interface InquiryDetailInfo extends InquiryShortInfo {
6
+ /** 문의 내용 */
7
+ content: string;
8
+ /** 첨부파일 */
9
+ file_1: FileInfo | null;
10
+ file_2: FileInfo | null;
11
+ /** 답변 내용 */
12
+ answerContent: string | null;
13
+ }
14
+ /** 일대일 문의 리스트 내 내용 */
15
+ export interface InquiryShortInfo {
16
+ id: string;
17
+ member: MemberShort;
18
+ /** 답변자 정보 */
19
+ answerer: MemberShort | null;
20
+ state: InquiryState;
21
+ type: string;
22
+ title: string;
23
+ submitted_at: Date;
24
+ answered_at: Date | null;
25
+ }
26
+ /** 일대일 문의 리스트 검색 결과 */
27
+ export declare class InquirySearchList {
28
+ totalCount: number;
29
+ data: InquiryShortInfo[];
30
+ additionalInfo: {
31
+ /** 요청시 inquiryState: true일 경우 정의됩니다 */
32
+ state?: {
33
+ submitted: number;
34
+ answered: number;
35
+ };
36
+ };
37
+ }
@@ -0,0 +1,14 @@
1
+ export declare const InquiryIntervalTarget: {
2
+ readonly submitted_at: "submitted_at";
3
+ readonly answered_at: "answered_at";
4
+ };
5
+ export type InquiryIntervalTarget = keyof typeof InquiryIntervalTarget;
6
+ /**
7
+ * @submitted 제출된 상태
8
+ * @answered 관리자가 답변을 준 상태
9
+ */
10
+ export declare const InquiryState: {
11
+ readonly submitted: "submitted";
12
+ readonly answered: "answered";
13
+ };
14
+ export type InquiryState = keyof typeof InquiryState;