byzip-v2-sdk 1.0.36 → 1.0.39
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.
- package/README.md +3 -95
- package/dist/generated.d.ts +295 -0
- package/dist/generated.js +31 -0
- package/dist/index.d.ts +16 -10
- package/dist/index.js +24 -9
- package/package.json +12 -5
- package/dist/auth.const.d.ts +0 -1
- package/dist/auth.const.js +0 -4
- package/dist/auth.dto.d.ts +0 -57
- package/dist/auth.dto.js +0 -5
- package/dist/bug-report.dto.d.ts +0 -94
- package/dist/bug-report.dto.js +0 -30
- package/dist/housing-supply.dto.d.ts +0 -149
- package/dist/housing-supply.dto.js +0 -2
- package/dist/jwt.types.d.ts +0 -10
- package/dist/jwt.types.js +0 -3
- package/dist/response.dto.d.ts +0 -8
- package/dist/response.dto.js +0 -5
- package/dist/response.helpers.d.ts +0 -12
- package/dist/response.helpers.js +0 -27
- package/dist/user.dto.d.ts +0 -142
- package/dist/user.dto.js +0 -24
package/README.md
CHANGED
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
# ByZip V2 SDK
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## 특징
|
|
6
|
-
|
|
7
|
-
- **런타임 의존성 없음** - 순수 TypeScript 타입 정의만 제공
|
|
8
|
-
- **가벼운 번들** - 추가 패키지 설치 불필요
|
|
9
|
-
- **타입 안전성** - 완전한 TypeScript 타입 체크 지원
|
|
10
|
-
- **범용 호환성** - 모든 JavaScript/TypeScript 환경에서 사용 가능
|
|
11
|
-
- **자동 업데이트** - `main` 또는 `dev` 브랜치 push 시 자동 배포
|
|
3
|
+
프론트엔드와 백엔드 간 타입 통일을 위한 TypeScript SDK입니다.
|
|
12
4
|
|
|
13
5
|
## 설치
|
|
14
6
|
|
|
@@ -16,92 +8,8 @@
|
|
|
16
8
|
npm install byzip-v2-sdk
|
|
17
9
|
```
|
|
18
10
|
|
|
19
|
-
##
|
|
20
|
-
|
|
21
|
-
### 공통 응답 처리
|
|
11
|
+
## 사용법
|
|
22
12
|
|
|
23
13
|
```typescript
|
|
24
|
-
import {
|
|
25
|
-
BaseResponseDto,
|
|
26
|
-
createSuccessResponse,
|
|
27
|
-
createErrorResponse,
|
|
28
|
-
} from 'byzip-v2-sdk';
|
|
29
|
-
|
|
30
|
-
// 성공 응답 생성
|
|
31
|
-
const successResponse = createSuccessResponse(
|
|
32
|
-
{ message: '처리 완료' },
|
|
33
|
-
'요청이 성공적으로 처리되었습니다.',
|
|
34
|
-
);
|
|
35
|
-
|
|
36
|
-
// 에러 응답 생성
|
|
37
|
-
const errorResponse = createErrorResponse('처리 중 오류가 발생했습니다.');
|
|
38
|
-
|
|
39
|
-
// 응답 타입 처리
|
|
40
|
-
const handleResponse = <T>(response: BaseResponseDto<T>) => {
|
|
41
|
-
if (response.success) {
|
|
42
|
-
console.log('성공:', response.data);
|
|
43
|
-
} else {
|
|
44
|
-
console.error('실패:', response.message);
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
## 자동 배포
|
|
50
|
-
|
|
51
|
-
이 패키지는 백엔드 저장소에 push할 때마다 GitHub Actions를 통해 자동으로 NPM에 배포됩니다.
|
|
52
|
-
|
|
53
|
-
### 배포 프로세스
|
|
54
|
-
|
|
55
|
-
1. 백엔드 코드의 DTO 타입 변경
|
|
56
|
-
2. `main` 또는 `dev` 브랜치에 push
|
|
57
|
-
3. GitHub Actions `Publish SDK to NPM` 워크플로우 자동 실행
|
|
58
|
-
4. `scripts/extract-types.js`로 타입 추출 (클래스 → 인터페이스 변환)
|
|
59
|
-
5. SDK 빌드 (`tsc`)
|
|
60
|
-
6. NPM 최신 버전 대비 패치 버전 자동 증가
|
|
61
|
-
7. NPM에 자동 배포
|
|
62
|
-
|
|
63
|
-
### 인증 방식
|
|
64
|
-
|
|
65
|
-
- **NPM Granular Access Token** 사용 (`NPM_TOKEN` GitHub Secret)
|
|
66
|
-
- 토큰 만료: 90일 주기 갱신 필요
|
|
67
|
-
- GitHub Repository Settings > Secrets > `NPM_TOKEN`에 등록
|
|
68
|
-
|
|
69
|
-
### 프론트엔드 개발 워크플로우
|
|
70
|
-
|
|
71
|
-
```
|
|
72
|
-
백엔드 타입 변경 → push → SDK 자동 배포 → 프론트엔드에서 npm update byzip-v2-sdk
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
## 로컬 개발
|
|
76
|
-
|
|
77
|
-
### 타입 추출
|
|
78
|
-
|
|
79
|
-
```bash
|
|
80
|
-
npm run sdk:extract
|
|
14
|
+
import { LoginRequestDto, ApiResponse } from 'byzip-v2-sdk';
|
|
81
15
|
```
|
|
82
|
-
|
|
83
|
-
### 빌드
|
|
84
|
-
|
|
85
|
-
```bash
|
|
86
|
-
npm run sdk:build
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
### 수동 배포
|
|
90
|
-
|
|
91
|
-
```bash
|
|
92
|
-
npm run sdk:publish
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
## 라이선스
|
|
96
|
-
|
|
97
|
-
ISC
|
|
98
|
-
|
|
99
|
-
---
|
|
100
|
-
|
|
101
|
-
## 변경 로그
|
|
102
|
-
|
|
103
|
-
- 모든 DTO 클래스를 인터페이스로 변환
|
|
104
|
-
- 런타임 의존성 제거 (`@nestjs/swagger` 제거)
|
|
105
|
-
- 타입 안전성 향상
|
|
106
|
-
- 번들 크기 최적화
|
|
107
|
-
- GitHub Actions 자동 배포 (NPM Granular Access Token)
|
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
export interface ApiResponse<T> {
|
|
2
|
+
data: T;
|
|
3
|
+
message: string;
|
|
4
|
+
success: boolean;
|
|
5
|
+
}
|
|
6
|
+
export interface BugReportCreateRequestDto {
|
|
7
|
+
assigneeId: string;
|
|
8
|
+
description: string;
|
|
9
|
+
errorCode: string;
|
|
10
|
+
errorMessage: string;
|
|
11
|
+
errorStack: string;
|
|
12
|
+
errorType: BugReportErrorType;
|
|
13
|
+
memo: string;
|
|
14
|
+
metadata: {
|
|
15
|
+
[index: string]: any;
|
|
16
|
+
};
|
|
17
|
+
severity: BugReportSeverity;
|
|
18
|
+
title: string;
|
|
19
|
+
url: string;
|
|
20
|
+
userAgent: string;
|
|
21
|
+
userId: string;
|
|
22
|
+
}
|
|
23
|
+
export interface BugReportResponseDto {
|
|
24
|
+
assigneeId: string;
|
|
25
|
+
createdAt: Date;
|
|
26
|
+
description: string;
|
|
27
|
+
errorCode: string;
|
|
28
|
+
errorMessage: string;
|
|
29
|
+
errorStack: string;
|
|
30
|
+
errorType: BugReportErrorType;
|
|
31
|
+
id: number;
|
|
32
|
+
memo: string;
|
|
33
|
+
metadata: {
|
|
34
|
+
[index: string]: any;
|
|
35
|
+
};
|
|
36
|
+
severity: BugReportSeverity;
|
|
37
|
+
status: BugReportStatus;
|
|
38
|
+
title: string;
|
|
39
|
+
updatedAt: Date;
|
|
40
|
+
url: string;
|
|
41
|
+
userAgent: string;
|
|
42
|
+
userId: string;
|
|
43
|
+
}
|
|
44
|
+
export interface BugReportUpdateRequestDto {
|
|
45
|
+
assigneeId: string;
|
|
46
|
+
description: string;
|
|
47
|
+
errorCode: string;
|
|
48
|
+
errorMessage: string;
|
|
49
|
+
errorStack: string;
|
|
50
|
+
errorType: BugReportErrorType;
|
|
51
|
+
memo: string;
|
|
52
|
+
metadata: {
|
|
53
|
+
[index: string]: any;
|
|
54
|
+
};
|
|
55
|
+
severity: BugReportSeverity;
|
|
56
|
+
status: BugReportStatus;
|
|
57
|
+
title: string;
|
|
58
|
+
}
|
|
59
|
+
export interface HousingSupplyCreateRequestDto {
|
|
60
|
+
bsnsMbyNm: string;
|
|
61
|
+
cnstrctEntrpsNm: string;
|
|
62
|
+
cntrctCnclsBgnde: Date;
|
|
63
|
+
cntrctCnclsEndde: Date;
|
|
64
|
+
gnrlRnk1CrspareaEndde: Date;
|
|
65
|
+
gnrlRnk1CrspareaRcptde: Date;
|
|
66
|
+
gnrlRnk1EtcAreaEndde: Date;
|
|
67
|
+
gnrlRnk1EtcAreaRcptde: Date;
|
|
68
|
+
gnrlRnk1EtcGgEndde: Date;
|
|
69
|
+
gnrlRnk1EtcGgRcptde: Date;
|
|
70
|
+
gnrlRnk2CrspareaEndde: Date;
|
|
71
|
+
gnrlRnk2CrspareaRcptde: Date;
|
|
72
|
+
gnrlRnk2EtcAreaEndde: Date;
|
|
73
|
+
gnrlRnk2EtcAreaRcptde: Date;
|
|
74
|
+
gnrlRnk2EtcGgEndde: Date;
|
|
75
|
+
gnrlRnk2EtcGgRcptde: Date;
|
|
76
|
+
hmpgAdres: string;
|
|
77
|
+
houseDtlSecd: string;
|
|
78
|
+
houseDtlSecdNm: string;
|
|
79
|
+
houseManageNo: string;
|
|
80
|
+
houseName: string;
|
|
81
|
+
houseSecd: string;
|
|
82
|
+
houseSecdNm: string;
|
|
83
|
+
hssplyAdres: string;
|
|
84
|
+
hssplyZip: string;
|
|
85
|
+
imprmnBsnsAt: string;
|
|
86
|
+
latitude: number;
|
|
87
|
+
longitude: number;
|
|
88
|
+
lrsclBldlndAt: string;
|
|
89
|
+
mdatTrgetAreaSecd: string;
|
|
90
|
+
mdhsTelno: string;
|
|
91
|
+
mvnPrearngeYm: Date;
|
|
92
|
+
nplnPrvoprPublicHouseAt: string;
|
|
93
|
+
nsprcNm: string;
|
|
94
|
+
parcprcUlsAt: string;
|
|
95
|
+
pblancNo: string;
|
|
96
|
+
pblancUrl: string;
|
|
97
|
+
przwnerPresnatnDe: Date;
|
|
98
|
+
publicHouseEarthAt: string;
|
|
99
|
+
publicHouseSpclwApplcAt: string;
|
|
100
|
+
rawData: {
|
|
101
|
+
[index: string]: any;
|
|
102
|
+
};
|
|
103
|
+
rceptBgnde: Date;
|
|
104
|
+
rceptEndde: Date;
|
|
105
|
+
rcritPblancDe: Date;
|
|
106
|
+
rentSecd: string;
|
|
107
|
+
rentSecdNm: string;
|
|
108
|
+
specltRdnEarthAt: string;
|
|
109
|
+
spsplyRceptBgnde: Date;
|
|
110
|
+
spsplyRceptEndde: Date;
|
|
111
|
+
subscrptAreaCode: string;
|
|
112
|
+
subscrptAreaCodeNm: string;
|
|
113
|
+
totSuplyHshldco: number;
|
|
114
|
+
}
|
|
115
|
+
export interface HousingSupplyResponseDto {
|
|
116
|
+
bsnsMbyNm: string;
|
|
117
|
+
cnstrctEntrpsNm: string;
|
|
118
|
+
cntrctCnclsBgnde: Date;
|
|
119
|
+
cntrctCnclsEndde: Date;
|
|
120
|
+
collectedAt: Date;
|
|
121
|
+
createdAt: Date;
|
|
122
|
+
gnrlRnk1CrspareaEndde: Date;
|
|
123
|
+
gnrlRnk1CrspareaRcptde: Date;
|
|
124
|
+
gnrlRnk1EtcAreaEndde: Date;
|
|
125
|
+
gnrlRnk1EtcAreaRcptde: Date;
|
|
126
|
+
gnrlRnk1EtcGgEndde: Date;
|
|
127
|
+
gnrlRnk1EtcGgRcptde: Date;
|
|
128
|
+
gnrlRnk2CrspareaEndde: Date;
|
|
129
|
+
gnrlRnk2CrspareaRcptde: Date;
|
|
130
|
+
gnrlRnk2EtcAreaEndde: Date;
|
|
131
|
+
gnrlRnk2EtcAreaRcptde: Date;
|
|
132
|
+
gnrlRnk2EtcGgEndde: Date;
|
|
133
|
+
gnrlRnk2EtcGgRcptde: Date;
|
|
134
|
+
hidden: boolean;
|
|
135
|
+
hmpgAdres: string;
|
|
136
|
+
houseDtlSecd: string;
|
|
137
|
+
houseDtlSecdNm: string;
|
|
138
|
+
houseManageNo: string;
|
|
139
|
+
houseName: string;
|
|
140
|
+
houseSecd: string;
|
|
141
|
+
houseSecdNm: string;
|
|
142
|
+
hssplyAdres: string;
|
|
143
|
+
hssplyZip: string;
|
|
144
|
+
id: number;
|
|
145
|
+
imprmnBsnsAt: string;
|
|
146
|
+
latitude: number;
|
|
147
|
+
longitude: number;
|
|
148
|
+
lrsclBldlndAt: string;
|
|
149
|
+
mdatTrgetAreaSecd: string;
|
|
150
|
+
mdhsTelno: string;
|
|
151
|
+
mvnPrearngeYm: Date;
|
|
152
|
+
nplnPrvoprPublicHouseAt: string;
|
|
153
|
+
nsprcNm: string;
|
|
154
|
+
parcprcUlsAt: string;
|
|
155
|
+
pblancNo: string;
|
|
156
|
+
pblancUrl: string;
|
|
157
|
+
przwnerPresnatnDe: Date;
|
|
158
|
+
publicHouseEarthAt: string;
|
|
159
|
+
publicHouseSpclwApplcAt: string;
|
|
160
|
+
rawData: {
|
|
161
|
+
[index: string]: any;
|
|
162
|
+
};
|
|
163
|
+
rceptBgnde: Date;
|
|
164
|
+
rceptEndde: Date;
|
|
165
|
+
rcritPblancDe: Date;
|
|
166
|
+
rentSecd: string;
|
|
167
|
+
rentSecdNm: string;
|
|
168
|
+
specltRdnEarthAt: string;
|
|
169
|
+
spsplyRceptBgnde: Date;
|
|
170
|
+
spsplyRceptEndde: Date;
|
|
171
|
+
subscrptAreaCode: string;
|
|
172
|
+
subscrptAreaCodeNm: string;
|
|
173
|
+
totSuplyHshldco: number;
|
|
174
|
+
updatedAt: Date;
|
|
175
|
+
}
|
|
176
|
+
export interface HousingSupplyUpdateRequestDto {
|
|
177
|
+
bsnsMbyNm: string;
|
|
178
|
+
cnstrctEntrpsNm: string;
|
|
179
|
+
cntrctCnclsBgnde: Date;
|
|
180
|
+
cntrctCnclsEndde: Date;
|
|
181
|
+
gnrlRnk1CrspareaEndde: Date;
|
|
182
|
+
gnrlRnk1CrspareaRcptde: Date;
|
|
183
|
+
gnrlRnk1EtcAreaEndde: Date;
|
|
184
|
+
gnrlRnk1EtcAreaRcptde: Date;
|
|
185
|
+
gnrlRnk1EtcGgEndde: Date;
|
|
186
|
+
gnrlRnk1EtcGgRcptde: Date;
|
|
187
|
+
gnrlRnk2CrspareaEndde: Date;
|
|
188
|
+
gnrlRnk2CrspareaRcptde: Date;
|
|
189
|
+
gnrlRnk2EtcAreaEndde: Date;
|
|
190
|
+
gnrlRnk2EtcAreaRcptde: Date;
|
|
191
|
+
gnrlRnk2EtcGgEndde: Date;
|
|
192
|
+
gnrlRnk2EtcGgRcptde: Date;
|
|
193
|
+
hmpgAdres: string;
|
|
194
|
+
houseDtlSecd: string;
|
|
195
|
+
houseDtlSecdNm: string;
|
|
196
|
+
houseManageNo: string;
|
|
197
|
+
houseName: string;
|
|
198
|
+
houseSecd: string;
|
|
199
|
+
houseSecdNm: string;
|
|
200
|
+
hssplyAdres: string;
|
|
201
|
+
hssplyZip: string;
|
|
202
|
+
imprmnBsnsAt: string;
|
|
203
|
+
isHidden: boolean;
|
|
204
|
+
latitude: number;
|
|
205
|
+
longitude: number;
|
|
206
|
+
lrsclBldlndAt: string;
|
|
207
|
+
mdatTrgetAreaSecd: string;
|
|
208
|
+
mdhsTelno: string;
|
|
209
|
+
mvnPrearngeYm: Date;
|
|
210
|
+
nplnPrvoprPublicHouseAt: string;
|
|
211
|
+
nsprcNm: string;
|
|
212
|
+
parcprcUlsAt: string;
|
|
213
|
+
pblancNo: string;
|
|
214
|
+
pblancUrl: string;
|
|
215
|
+
przwnerPresnatnDe: Date;
|
|
216
|
+
publicHouseEarthAt: string;
|
|
217
|
+
publicHouseSpclwApplcAt: string;
|
|
218
|
+
rawData: {
|
|
219
|
+
[index: string]: any;
|
|
220
|
+
};
|
|
221
|
+
rceptBgnde: Date;
|
|
222
|
+
rceptEndde: Date;
|
|
223
|
+
rcritPblancDe: Date;
|
|
224
|
+
rentSecd: string;
|
|
225
|
+
rentSecdNm: string;
|
|
226
|
+
specltRdnEarthAt: string;
|
|
227
|
+
spsplyRceptBgnde: Date;
|
|
228
|
+
spsplyRceptEndde: Date;
|
|
229
|
+
subscrptAreaCode: string;
|
|
230
|
+
subscrptAreaCodeNm: string;
|
|
231
|
+
totSuplyHshldco: number;
|
|
232
|
+
}
|
|
233
|
+
export interface LoginRequestDto {
|
|
234
|
+
password: string;
|
|
235
|
+
username: string;
|
|
236
|
+
}
|
|
237
|
+
export interface MemberResponseDto {
|
|
238
|
+
id: number;
|
|
239
|
+
name: string;
|
|
240
|
+
username: string;
|
|
241
|
+
}
|
|
242
|
+
export interface Meta {
|
|
243
|
+
itemCount: number;
|
|
244
|
+
limit: number;
|
|
245
|
+
page: number;
|
|
246
|
+
statusCounts: {
|
|
247
|
+
[index: string]: any;
|
|
248
|
+
};
|
|
249
|
+
total: number;
|
|
250
|
+
totalPages: number;
|
|
251
|
+
}
|
|
252
|
+
export interface PageResponseDto<T> {
|
|
253
|
+
data: T[];
|
|
254
|
+
meta: Meta;
|
|
255
|
+
}
|
|
256
|
+
export interface ReissueRequestDto {
|
|
257
|
+
refreshToken: string;
|
|
258
|
+
}
|
|
259
|
+
export interface SignupRequestDto {
|
|
260
|
+
name: string;
|
|
261
|
+
password: string;
|
|
262
|
+
username: string;
|
|
263
|
+
}
|
|
264
|
+
export interface SignupResponseDto {
|
|
265
|
+
memberInfo: MemberResponseDto;
|
|
266
|
+
tokenInfo: TokenResponseDto;
|
|
267
|
+
}
|
|
268
|
+
export interface TokenResponseDto {
|
|
269
|
+
accessToken: string;
|
|
270
|
+
grantType: string;
|
|
271
|
+
refreshToken: string;
|
|
272
|
+
}
|
|
273
|
+
export declare const enum BugReportErrorType {
|
|
274
|
+
UNKNOWN = "UNKNOWN",
|
|
275
|
+
CLIENT_ERROR = "CLIENT_ERROR",
|
|
276
|
+
SERVER_ERROR = "SERVER_ERROR",
|
|
277
|
+
NETWORK_ERROR = "NETWORK_ERROR",
|
|
278
|
+
RUNTIME_ERROR = "RUNTIME_ERROR",
|
|
279
|
+
VALIDATION_ERROR = "VALIDATION_ERROR",
|
|
280
|
+
SYNTAX_ERROR = "SYNTAX_ERROR",
|
|
281
|
+
REFERENCE_ERROR = "REFERENCE_ERROR",
|
|
282
|
+
TYPE_ERROR = "TYPE_ERROR"
|
|
283
|
+
}
|
|
284
|
+
export declare const enum BugReportSeverity {
|
|
285
|
+
LOW = "LOW",
|
|
286
|
+
MEDIUM = "MEDIUM",
|
|
287
|
+
HIGH = "HIGH",
|
|
288
|
+
CRITICAL = "CRITICAL"
|
|
289
|
+
}
|
|
290
|
+
export declare const enum BugReportStatus {
|
|
291
|
+
OPEN = "OPEN",
|
|
292
|
+
IN_PROGRESS = "IN_PROGRESS",
|
|
293
|
+
RESOLVED = "RESOLVED",
|
|
294
|
+
CLOSED = "CLOSED"
|
|
295
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.BugReportStatus = exports.BugReportSeverity = exports.BugReportErrorType = void 0;
|
|
6
|
+
var BugReportErrorType;
|
|
7
|
+
(function (BugReportErrorType) {
|
|
8
|
+
BugReportErrorType["UNKNOWN"] = "UNKNOWN";
|
|
9
|
+
BugReportErrorType["CLIENT_ERROR"] = "CLIENT_ERROR";
|
|
10
|
+
BugReportErrorType["SERVER_ERROR"] = "SERVER_ERROR";
|
|
11
|
+
BugReportErrorType["NETWORK_ERROR"] = "NETWORK_ERROR";
|
|
12
|
+
BugReportErrorType["RUNTIME_ERROR"] = "RUNTIME_ERROR";
|
|
13
|
+
BugReportErrorType["VALIDATION_ERROR"] = "VALIDATION_ERROR";
|
|
14
|
+
BugReportErrorType["SYNTAX_ERROR"] = "SYNTAX_ERROR";
|
|
15
|
+
BugReportErrorType["REFERENCE_ERROR"] = "REFERENCE_ERROR";
|
|
16
|
+
BugReportErrorType["TYPE_ERROR"] = "TYPE_ERROR";
|
|
17
|
+
})(BugReportErrorType || (exports.BugReportErrorType = BugReportErrorType = {}));
|
|
18
|
+
var BugReportSeverity;
|
|
19
|
+
(function (BugReportSeverity) {
|
|
20
|
+
BugReportSeverity["LOW"] = "LOW";
|
|
21
|
+
BugReportSeverity["MEDIUM"] = "MEDIUM";
|
|
22
|
+
BugReportSeverity["HIGH"] = "HIGH";
|
|
23
|
+
BugReportSeverity["CRITICAL"] = "CRITICAL";
|
|
24
|
+
})(BugReportSeverity || (exports.BugReportSeverity = BugReportSeverity = {}));
|
|
25
|
+
var BugReportStatus;
|
|
26
|
+
(function (BugReportStatus) {
|
|
27
|
+
BugReportStatus["OPEN"] = "OPEN";
|
|
28
|
+
BugReportStatus["IN_PROGRESS"] = "IN_PROGRESS";
|
|
29
|
+
BugReportStatus["RESOLVED"] = "RESOLVED";
|
|
30
|
+
BugReportStatus["CLOSED"] = "CLOSED";
|
|
31
|
+
})(BugReportStatus || (exports.BugReportStatus = BugReportStatus = {}));
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* ByZip V2 SDK
|
|
3
|
-
* 자동 생성된
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
export * from './
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export
|
|
11
|
-
|
|
12
|
-
|
|
3
|
+
* 자동 생성된 DTO와 헬퍼 함수들을 export 합니다.
|
|
4
|
+
*/
|
|
5
|
+
import { ApiResponse } from './generated';
|
|
6
|
+
export * from './generated';
|
|
7
|
+
/**
|
|
8
|
+
* 이전 버전과의 호환성을 위한 Type Alias
|
|
9
|
+
*/
|
|
10
|
+
export type BaseResponseDto<T> = ApiResponse<T>;
|
|
11
|
+
/**
|
|
12
|
+
* 성공 응답 생성 헬퍼 함수
|
|
13
|
+
*/
|
|
14
|
+
export declare function createSuccessResponse<T>(data: T, message?: string): ApiResponse<T>;
|
|
15
|
+
/**
|
|
16
|
+
* 에러 응답 생성 헬퍼 함수
|
|
17
|
+
*/
|
|
18
|
+
export declare function createErrorResponse<T = null>(message: string, data?: T): ApiResponse<T>;
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
3
|
* ByZip V2 SDK
|
|
4
|
-
* 자동 생성된
|
|
4
|
+
* 자동 생성된 DTO와 헬퍼 함수들을 export 합니다.
|
|
5
5
|
*/
|
|
6
6
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
7
|
if (k2 === undefined) k2 = k;
|
|
@@ -18,11 +18,26 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
18
18
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
19
19
|
};
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
__exportStar(require("./
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
21
|
+
exports.createSuccessResponse = createSuccessResponse;
|
|
22
|
+
exports.createErrorResponse = createErrorResponse;
|
|
23
|
+
__exportStar(require("./generated"), exports);
|
|
24
|
+
/**
|
|
25
|
+
* 성공 응답 생성 헬퍼 함수
|
|
26
|
+
*/
|
|
27
|
+
function createSuccessResponse(data, message = "요청이 성공적으로 처리되었습니다.") {
|
|
28
|
+
return {
|
|
29
|
+
success: true,
|
|
30
|
+
message,
|
|
31
|
+
data,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* 에러 응답 생성 헬퍼 함수
|
|
36
|
+
*/
|
|
37
|
+
function createErrorResponse(message, data = null) {
|
|
38
|
+
return {
|
|
39
|
+
success: false,
|
|
40
|
+
message,
|
|
41
|
+
data,
|
|
42
|
+
};
|
|
43
|
+
}
|
package/package.json
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "byzip-v2-sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.39",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
8
8
|
],
|
|
9
|
-
"repository": {
|
|
10
|
-
"type": "git",
|
|
11
|
-
"url": "git+https://github.com/byzip-v2/byzip-backend-v2.git"
|
|
12
|
-
},
|
|
13
9
|
"scripts": {
|
|
14
10
|
"build": "tsc",
|
|
15
11
|
"prepublishOnly": "npm run build"
|
|
@@ -24,6 +20,17 @@
|
|
|
24
20
|
"author": "",
|
|
25
21
|
"license": "ISC",
|
|
26
22
|
"description": "분양모음집 V2 SDK - 프론트엔드와 백엔드 간 타입 통일을 위한 TypeScript SDK",
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "https://github.com/byzip-v2/byzip-be-v2-spring"
|
|
26
|
+
},
|
|
27
|
+
"homepage": "https://github.com/byzip-v2/byzip-be-v2-spring#readme",
|
|
28
|
+
"bugs": {
|
|
29
|
+
"url": "https://github.com/byzip-v2/byzip-be-v2-spring/issues"
|
|
30
|
+
},
|
|
31
|
+
"publishConfig": {
|
|
32
|
+
"access": "public"
|
|
33
|
+
},
|
|
27
34
|
"devDependencies": {
|
|
28
35
|
"typescript": "^5.0.0"
|
|
29
36
|
}
|
package/dist/auth.const.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const SAMPLE = "sample";
|
package/dist/auth.const.js
DELETED
package/dist/auth.dto.d.ts
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 인증 관련 DTO 정의
|
|
3
|
-
*/
|
|
4
|
-
export interface LoginRequestDto {
|
|
5
|
-
userId: string;
|
|
6
|
-
password: string;
|
|
7
|
-
}
|
|
8
|
-
export interface TokenDataDto {
|
|
9
|
-
accessToken: string;
|
|
10
|
-
refreshToken: string;
|
|
11
|
-
}
|
|
12
|
-
export interface LoginResponseDto {
|
|
13
|
-
success: boolean;
|
|
14
|
-
message: string;
|
|
15
|
-
data: TokenDataDto;
|
|
16
|
-
}
|
|
17
|
-
export interface RegisterRequestDto {
|
|
18
|
-
userId: string;
|
|
19
|
-
name: string;
|
|
20
|
-
email: string;
|
|
21
|
-
password: string;
|
|
22
|
-
confirmPassword: string;
|
|
23
|
-
phoneNumber?: string;
|
|
24
|
-
}
|
|
25
|
-
export interface RegisterResponseDto {
|
|
26
|
-
success: boolean;
|
|
27
|
-
message: string;
|
|
28
|
-
data: TokenDataDto;
|
|
29
|
-
}
|
|
30
|
-
export interface DeleteUserRequestDto {
|
|
31
|
-
userId: string;
|
|
32
|
-
password: string;
|
|
33
|
-
}
|
|
34
|
-
export interface DeleteUserResponseDto {
|
|
35
|
-
success: boolean;
|
|
36
|
-
message: string;
|
|
37
|
-
data: {
|
|
38
|
-
userId: string;
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
export interface LogoutDataDto {
|
|
42
|
-
userId: string;
|
|
43
|
-
logoutAt: string;
|
|
44
|
-
}
|
|
45
|
-
export interface LogoutResponseDto {
|
|
46
|
-
success: boolean;
|
|
47
|
-
message: string;
|
|
48
|
-
data: LogoutDataDto;
|
|
49
|
-
}
|
|
50
|
-
export interface RefreshTokenRequestDto {
|
|
51
|
-
refreshToken: string;
|
|
52
|
-
}
|
|
53
|
-
export interface RefreshTokenResponseDto {
|
|
54
|
-
success: boolean;
|
|
55
|
-
message: string;
|
|
56
|
-
data: TokenDataDto;
|
|
57
|
-
}
|
package/dist/auth.dto.js
DELETED
package/dist/bug-report.dto.d.ts
DELETED
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
export declare enum BugReportStatus {
|
|
2
|
-
OPEN = "open",
|
|
3
|
-
IN_PROGRESS = "in_progress",
|
|
4
|
-
RESOLVED = "resolved",
|
|
5
|
-
CLOSED = "closed"
|
|
6
|
-
}
|
|
7
|
-
export declare enum BugReportSeverity {
|
|
8
|
-
LOW = "low",
|
|
9
|
-
MEDIUM = "medium",
|
|
10
|
-
HIGH = "high",
|
|
11
|
-
CRITICAL = "critical"
|
|
12
|
-
}
|
|
13
|
-
export declare enum BugReportErrorType {
|
|
14
|
-
UNKNOWN = "unknown",
|
|
15
|
-
CLIENT_ERROR = "client_error",
|
|
16
|
-
SERVER_ERROR = "server_error",
|
|
17
|
-
NETWORK_ERROR = "network_error",
|
|
18
|
-
RUNTIME_ERROR = "runtime_error",
|
|
19
|
-
VALIDATION_ERROR = "validation_error",
|
|
20
|
-
SYNTAX_ERROR = "syntax_error",
|
|
21
|
-
REFERENCE_ERROR = "reference_error",
|
|
22
|
-
TYPE_ERROR = "type_error"
|
|
23
|
-
}
|
|
24
|
-
export interface CreateBugReportDto {
|
|
25
|
-
title: string;
|
|
26
|
-
description: string;
|
|
27
|
-
errorMessage?: string;
|
|
28
|
-
errorStack?: string;
|
|
29
|
-
errorType?: BugReportErrorType;
|
|
30
|
-
errorCode?: string;
|
|
31
|
-
url?: string;
|
|
32
|
-
userAgent?: string;
|
|
33
|
-
severity?: BugReportSeverity;
|
|
34
|
-
userId?: string;
|
|
35
|
-
assigneeId?: string;
|
|
36
|
-
memo?: string;
|
|
37
|
-
metadata?: Record<string, any>;
|
|
38
|
-
}
|
|
39
|
-
export interface UpdateBugReportDto {
|
|
40
|
-
title?: string;
|
|
41
|
-
description?: string;
|
|
42
|
-
status?: BugReportStatus;
|
|
43
|
-
severity?: BugReportSeverity;
|
|
44
|
-
errorMessage?: string;
|
|
45
|
-
errorStack?: string;
|
|
46
|
-
errorType?: BugReportErrorType;
|
|
47
|
-
errorCode?: string;
|
|
48
|
-
assigneeId?: string;
|
|
49
|
-
memo?: string;
|
|
50
|
-
metadata?: Record<string, any>;
|
|
51
|
-
}
|
|
52
|
-
export interface BugReportDataDto {
|
|
53
|
-
id: number;
|
|
54
|
-
title: string;
|
|
55
|
-
description: string;
|
|
56
|
-
errorMessage?: string;
|
|
57
|
-
errorStack?: string;
|
|
58
|
-
errorType: BugReportErrorType;
|
|
59
|
-
errorCode?: string;
|
|
60
|
-
url?: string;
|
|
61
|
-
userAgent?: string;
|
|
62
|
-
status: BugReportStatus;
|
|
63
|
-
severity: BugReportSeverity;
|
|
64
|
-
userId?: string;
|
|
65
|
-
assigneeId?: string;
|
|
66
|
-
memo?: string;
|
|
67
|
-
metadata?: Record<string, any>;
|
|
68
|
-
createdAt: Date;
|
|
69
|
-
updatedAt: Date;
|
|
70
|
-
}
|
|
71
|
-
export interface GetBugReportResponseDto {
|
|
72
|
-
success: boolean;
|
|
73
|
-
message: string;
|
|
74
|
-
data: BugReportDataDto;
|
|
75
|
-
}
|
|
76
|
-
export interface GetBugReportsResponseDto {
|
|
77
|
-
success: boolean;
|
|
78
|
-
message: string;
|
|
79
|
-
data: BugReportDataDto[];
|
|
80
|
-
}
|
|
81
|
-
export interface CreateBugReportResponseDto {
|
|
82
|
-
success: boolean;
|
|
83
|
-
message: string;
|
|
84
|
-
data: BugReportDataDto;
|
|
85
|
-
}
|
|
86
|
-
export interface UpdateBugReportResponseDto {
|
|
87
|
-
success: boolean;
|
|
88
|
-
message: string;
|
|
89
|
-
data: BugReportDataDto;
|
|
90
|
-
}
|
|
91
|
-
export interface DeleteBugReportResponseDto {
|
|
92
|
-
success: boolean;
|
|
93
|
-
message: string;
|
|
94
|
-
}
|
package/dist/bug-report.dto.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// 버그 리포트 관련 타입 정의
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.BugReportErrorType = exports.BugReportSeverity = exports.BugReportStatus = void 0;
|
|
5
|
-
var BugReportStatus;
|
|
6
|
-
(function (BugReportStatus) {
|
|
7
|
-
BugReportStatus["OPEN"] = "open";
|
|
8
|
-
BugReportStatus["IN_PROGRESS"] = "in_progress";
|
|
9
|
-
BugReportStatus["RESOLVED"] = "resolved";
|
|
10
|
-
BugReportStatus["CLOSED"] = "closed";
|
|
11
|
-
})(BugReportStatus || (exports.BugReportStatus = BugReportStatus = {}));
|
|
12
|
-
var BugReportSeverity;
|
|
13
|
-
(function (BugReportSeverity) {
|
|
14
|
-
BugReportSeverity["LOW"] = "low";
|
|
15
|
-
BugReportSeverity["MEDIUM"] = "medium";
|
|
16
|
-
BugReportSeverity["HIGH"] = "high";
|
|
17
|
-
BugReportSeverity["CRITICAL"] = "critical";
|
|
18
|
-
})(BugReportSeverity || (exports.BugReportSeverity = BugReportSeverity = {}));
|
|
19
|
-
var BugReportErrorType;
|
|
20
|
-
(function (BugReportErrorType) {
|
|
21
|
-
BugReportErrorType["UNKNOWN"] = "unknown";
|
|
22
|
-
BugReportErrorType["CLIENT_ERROR"] = "client_error";
|
|
23
|
-
BugReportErrorType["SERVER_ERROR"] = "server_error";
|
|
24
|
-
BugReportErrorType["NETWORK_ERROR"] = "network_error";
|
|
25
|
-
BugReportErrorType["RUNTIME_ERROR"] = "runtime_error";
|
|
26
|
-
BugReportErrorType["VALIDATION_ERROR"] = "validation_error";
|
|
27
|
-
BugReportErrorType["SYNTAX_ERROR"] = "syntax_error";
|
|
28
|
-
BugReportErrorType["REFERENCE_ERROR"] = "reference_error";
|
|
29
|
-
BugReportErrorType["TYPE_ERROR"] = "type_error";
|
|
30
|
-
})(BugReportErrorType || (exports.BugReportErrorType = BugReportErrorType = {}));
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
export interface CreateHousingSupplyDto {
|
|
2
|
-
houseManageNo?: string;
|
|
3
|
-
pblancNo: string;
|
|
4
|
-
houseName?: string;
|
|
5
|
-
houseSecd?: string;
|
|
6
|
-
houseSecdNm?: string;
|
|
7
|
-
houseDtlSecd?: string;
|
|
8
|
-
houseDtlSecdNm?: string;
|
|
9
|
-
rentSecd?: string;
|
|
10
|
-
rentSecdNm?: string;
|
|
11
|
-
subscrptAreaCode?: string;
|
|
12
|
-
subscrptAreaCodeNm?: string;
|
|
13
|
-
hssplyZip?: string;
|
|
14
|
-
hssplyAdres?: string;
|
|
15
|
-
latitude?: number;
|
|
16
|
-
longitude?: number;
|
|
17
|
-
totSuplyHshldco?: number;
|
|
18
|
-
rcritPblancDe?: string;
|
|
19
|
-
rceptBgnde?: string;
|
|
20
|
-
rceptEndde?: string;
|
|
21
|
-
spsplyRceptBgnde?: string;
|
|
22
|
-
spsplyRceptEndde?: string;
|
|
23
|
-
przwnerPresnatnDe?: string;
|
|
24
|
-
cntrctCnclsBgnde?: string;
|
|
25
|
-
cntrctCnclsEndde?: string;
|
|
26
|
-
mvnPrearngeYm?: string;
|
|
27
|
-
hmpgAdres?: string;
|
|
28
|
-
pblancUrl?: string;
|
|
29
|
-
mdhsTelno?: string;
|
|
30
|
-
cnstrctEntrpsNm?: string;
|
|
31
|
-
bsnsMbyNm?: string;
|
|
32
|
-
nsprcNm?: string;
|
|
33
|
-
specltRdnEarthAt?: string;
|
|
34
|
-
mdatTrgetAreaSecd?: string;
|
|
35
|
-
parcprcUlsAt?: string;
|
|
36
|
-
imprmnBsnsAt?: string;
|
|
37
|
-
publicHouseEarthAt?: string;
|
|
38
|
-
lrsclBldlndAt?: string;
|
|
39
|
-
nplnPrvoprPublicHouseAt?: string;
|
|
40
|
-
publicHouseSpclwApplcAt?: string;
|
|
41
|
-
}
|
|
42
|
-
export interface UpdateHousingSupplyDto {
|
|
43
|
-
houseName?: string;
|
|
44
|
-
subscrptAreaCodeNm?: string;
|
|
45
|
-
hssplyAdres?: string;
|
|
46
|
-
latitude?: number;
|
|
47
|
-
longitude?: number;
|
|
48
|
-
totSuplyHshldco?: number;
|
|
49
|
-
rcritPblancDe?: string;
|
|
50
|
-
rceptBgnde?: string;
|
|
51
|
-
rceptEndde?: string;
|
|
52
|
-
mdhsTelno?: string;
|
|
53
|
-
}
|
|
54
|
-
export interface GetHousingSuppliesQueryDto {
|
|
55
|
-
search?: string;
|
|
56
|
-
houseSecd?: string;
|
|
57
|
-
houseSecdNm?: string;
|
|
58
|
-
houseDtlSecd?: string;
|
|
59
|
-
rentSecd?: string;
|
|
60
|
-
subscrptAreaCodeNm?: string;
|
|
61
|
-
rcritPblancDeFrom?: string;
|
|
62
|
-
rcritPblancDeTo?: string;
|
|
63
|
-
rceptBgndeFrom?: string;
|
|
64
|
-
rceptBgndeTo?: string;
|
|
65
|
-
parcprcUlsAt?: string;
|
|
66
|
-
specltRdnEarthAt?: string;
|
|
67
|
-
isHidden?: boolean;
|
|
68
|
-
page?: number;
|
|
69
|
-
limit?: number;
|
|
70
|
-
sortBy?: string;
|
|
71
|
-
sortOrder?: 'ASC' | 'DESC';
|
|
72
|
-
}
|
|
73
|
-
export interface PaginationMetaDto {
|
|
74
|
-
page: number;
|
|
75
|
-
limit: number;
|
|
76
|
-
total: number;
|
|
77
|
-
totalPages: number;
|
|
78
|
-
itemCount: number;
|
|
79
|
-
}
|
|
80
|
-
export interface HousingSupplyDataDto {
|
|
81
|
-
id: number;
|
|
82
|
-
houseManageNo?: string;
|
|
83
|
-
pblancNo?: string;
|
|
84
|
-
houseName?: string;
|
|
85
|
-
houseSecd?: string;
|
|
86
|
-
houseSecdNm?: string;
|
|
87
|
-
houseDtlSecd?: string;
|
|
88
|
-
houseDtlSecdNm?: string;
|
|
89
|
-
rentSecd?: string;
|
|
90
|
-
rentSecdNm?: string;
|
|
91
|
-
subscrptAreaCode?: string;
|
|
92
|
-
subscrptAreaCodeNm?: string;
|
|
93
|
-
hssplyZip?: string;
|
|
94
|
-
hssplyAdres?: string;
|
|
95
|
-
latitude?: number;
|
|
96
|
-
longitude?: number;
|
|
97
|
-
totSuplyHshldco?: number;
|
|
98
|
-
rcritPblancDe?: Date;
|
|
99
|
-
rceptBgnde?: Date;
|
|
100
|
-
rceptEndde?: Date;
|
|
101
|
-
spsplyRceptBgnde?: Date;
|
|
102
|
-
spsplyRceptEndde?: Date;
|
|
103
|
-
przwnerPresnatnDe?: Date;
|
|
104
|
-
cntrctCnclsBgnde?: Date;
|
|
105
|
-
cntrctCnclsEndde?: Date;
|
|
106
|
-
mvnPrearngeYm?: Date;
|
|
107
|
-
hmpgAdres?: string;
|
|
108
|
-
pblancUrl?: string;
|
|
109
|
-
mdhsTelno?: string;
|
|
110
|
-
cnstrctEntrpsNm?: string;
|
|
111
|
-
bsnsMbyNm?: string;
|
|
112
|
-
nsprcNm?: string;
|
|
113
|
-
specltRdnEarthAt?: string;
|
|
114
|
-
mdatTrgetAreaSecd?: string;
|
|
115
|
-
parcprcUlsAt?: string;
|
|
116
|
-
imprmnBsnsAt?: string;
|
|
117
|
-
publicHouseEarthAt?: string;
|
|
118
|
-
lrsclBldlndAt?: string;
|
|
119
|
-
nplnPrvoprPublicHouseAt?: string;
|
|
120
|
-
publicHouseSpclwApplcAt?: string;
|
|
121
|
-
collectedAt: Date;
|
|
122
|
-
createdAt: Date;
|
|
123
|
-
updatedAt: Date;
|
|
124
|
-
}
|
|
125
|
-
export interface GetHousingSupplyResponseDto {
|
|
126
|
-
success: boolean;
|
|
127
|
-
message: string;
|
|
128
|
-
data: HousingSupplyDataDto;
|
|
129
|
-
}
|
|
130
|
-
export interface GetHousingSuppliesResponseDto {
|
|
131
|
-
success: boolean;
|
|
132
|
-
message: string;
|
|
133
|
-
data: HousingSupplyDataDto[];
|
|
134
|
-
meta: PaginationMetaDto;
|
|
135
|
-
}
|
|
136
|
-
export interface CreateHousingSupplyResponseDto {
|
|
137
|
-
success: boolean;
|
|
138
|
-
message: string;
|
|
139
|
-
data: HousingSupplyDataDto;
|
|
140
|
-
}
|
|
141
|
-
export interface UpdateHousingSupplyResponseDto {
|
|
142
|
-
success: boolean;
|
|
143
|
-
message: string;
|
|
144
|
-
data: HousingSupplyDataDto;
|
|
145
|
-
}
|
|
146
|
-
export interface DeleteHousingSupplyResponseDto {
|
|
147
|
-
success: boolean;
|
|
148
|
-
message: string;
|
|
149
|
-
}
|
package/dist/jwt.types.d.ts
DELETED
package/dist/jwt.types.js
DELETED
package/dist/response.dto.d.ts
DELETED
package/dist/response.dto.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* API 응답 생성 헬퍼 함수
|
|
3
|
-
*/
|
|
4
|
-
import { BaseResponseDto } from './response.dto';
|
|
5
|
-
/**
|
|
6
|
-
* 성공 응답 생성
|
|
7
|
-
*/
|
|
8
|
-
export declare function createSuccessResponse<T>(data: T, message?: string): BaseResponseDto<T>;
|
|
9
|
-
/**
|
|
10
|
-
* 에러 응답 생성
|
|
11
|
-
*/
|
|
12
|
-
export declare function createErrorResponse<T = null>(message: string, data?: T): BaseResponseDto<T>;
|
package/dist/response.helpers.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* API 응답 생성 헬퍼 함수
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.createSuccessResponse = createSuccessResponse;
|
|
7
|
-
exports.createErrorResponse = createErrorResponse;
|
|
8
|
-
/**
|
|
9
|
-
* 성공 응답 생성
|
|
10
|
-
*/
|
|
11
|
-
function createSuccessResponse(data, message = '요청이 성공적으로 처리되었습니다.') {
|
|
12
|
-
return {
|
|
13
|
-
success: true,
|
|
14
|
-
message,
|
|
15
|
-
data
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* 에러 응답 생성
|
|
20
|
-
*/
|
|
21
|
-
function createErrorResponse(message, data = null) {
|
|
22
|
-
return {
|
|
23
|
-
success: false,
|
|
24
|
-
message,
|
|
25
|
-
data
|
|
26
|
-
};
|
|
27
|
-
}
|
package/dist/user.dto.d.ts
DELETED
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 사용자 프로필 관련 DTO 정의
|
|
3
|
-
*/
|
|
4
|
-
export declare enum UsersRolesEnum {
|
|
5
|
-
ADMIN = "ADMIN",
|
|
6
|
-
USER = "USER"
|
|
7
|
-
}
|
|
8
|
-
export declare enum UsersStatusEnum {
|
|
9
|
-
ACTIVE = "ACTIVE",
|
|
10
|
-
INACTIVE = "INACTIVE",
|
|
11
|
-
SUSPENDED = "SUSPENDED",
|
|
12
|
-
PENDING_VERIFICATION = "PENDING_VERIFICATION"
|
|
13
|
-
}
|
|
14
|
-
export declare enum UsersGenderEnum {
|
|
15
|
-
MALE = "MALE",
|
|
16
|
-
FEMALE = "FEMALE",
|
|
17
|
-
OTHER = "OTHER"
|
|
18
|
-
}
|
|
19
|
-
export interface UsersModelDto {
|
|
20
|
-
/** 사용자 고유 ID */
|
|
21
|
-
id: number;
|
|
22
|
-
/** 사용자 ID (로그인용) */
|
|
23
|
-
userId: string;
|
|
24
|
-
/** 사용자 비밀번호 */
|
|
25
|
-
password: string;
|
|
26
|
-
/** 사용자 이름 */
|
|
27
|
-
name: string;
|
|
28
|
-
/** 이메일 */
|
|
29
|
-
email: string;
|
|
30
|
-
/** 전화번호 */
|
|
31
|
-
phoneNumber?: string;
|
|
32
|
-
/** 프로필 이미지 URL */
|
|
33
|
-
profileImageUrl?: string;
|
|
34
|
-
/** 생년월일 */
|
|
35
|
-
birthDate?: string;
|
|
36
|
-
/** 성별 */
|
|
37
|
-
gender?: UsersGenderEnum;
|
|
38
|
-
/** 계정 생성일 */
|
|
39
|
-
createdAt: string;
|
|
40
|
-
/** 마지막 업데이트일 */
|
|
41
|
-
updatedAt: string;
|
|
42
|
-
/** 계정 상태 */
|
|
43
|
-
status: UsersStatusEnum;
|
|
44
|
-
/** 계정 역할 */
|
|
45
|
-
role: UsersRolesEnum;
|
|
46
|
-
/** 이메일 인증 여부 */
|
|
47
|
-
emailVerified: boolean;
|
|
48
|
-
/** 전화번호 인증 여부 */
|
|
49
|
-
phoneVerified: boolean;
|
|
50
|
-
}
|
|
51
|
-
export interface GetMeDataDto {
|
|
52
|
-
id: number;
|
|
53
|
-
userId: string;
|
|
54
|
-
name: string;
|
|
55
|
-
email: string;
|
|
56
|
-
phoneNumber?: string;
|
|
57
|
-
profileImageUrl?: string;
|
|
58
|
-
birthDate?: string;
|
|
59
|
-
gender?: UsersGenderEnum;
|
|
60
|
-
createdAt: string;
|
|
61
|
-
updatedAt: string;
|
|
62
|
-
status: UsersStatusEnum;
|
|
63
|
-
role: UsersRolesEnum;
|
|
64
|
-
emailVerified: boolean;
|
|
65
|
-
phoneVerified: boolean;
|
|
66
|
-
}
|
|
67
|
-
export interface GetMeResponseDto {
|
|
68
|
-
success: boolean;
|
|
69
|
-
message: string;
|
|
70
|
-
data: GetMeDataDto;
|
|
71
|
-
}
|
|
72
|
-
export interface ChangePasswordRequestDto {
|
|
73
|
-
currentPassword: string;
|
|
74
|
-
newPassword: string;
|
|
75
|
-
confirmPassword: string;
|
|
76
|
-
}
|
|
77
|
-
export interface ChangePasswordDataDto {
|
|
78
|
-
tokenRefreshRequired: boolean;
|
|
79
|
-
}
|
|
80
|
-
export interface ChangePasswordResponseDto {
|
|
81
|
-
success: boolean;
|
|
82
|
-
message: string;
|
|
83
|
-
data: ChangePasswordDataDto;
|
|
84
|
-
}
|
|
85
|
-
export interface DeleteAccountRequestDto {
|
|
86
|
-
password: string;
|
|
87
|
-
reason?: string;
|
|
88
|
-
}
|
|
89
|
-
export interface DeleteAccountDataDto {
|
|
90
|
-
scheduledDeletionDate: number;
|
|
91
|
-
}
|
|
92
|
-
export interface DeleteAccountResponseDto {
|
|
93
|
-
success: boolean;
|
|
94
|
-
message: string;
|
|
95
|
-
data: DeleteAccountDataDto;
|
|
96
|
-
}
|
|
97
|
-
export interface UserSummaryDto {
|
|
98
|
-
id: number;
|
|
99
|
-
userId: string;
|
|
100
|
-
name: string;
|
|
101
|
-
email: string;
|
|
102
|
-
phoneNumber?: string;
|
|
103
|
-
profileImageUrl?: string;
|
|
104
|
-
createdAt: string;
|
|
105
|
-
status: UsersStatusEnum;
|
|
106
|
-
role: UsersRolesEnum;
|
|
107
|
-
emailVerified: boolean;
|
|
108
|
-
}
|
|
109
|
-
export interface GetAllUsersResponseDto {
|
|
110
|
-
success: boolean;
|
|
111
|
-
message: string;
|
|
112
|
-
data: UserSummaryDto[];
|
|
113
|
-
}
|
|
114
|
-
export interface UpdateUserRequestDto {
|
|
115
|
-
name?: string;
|
|
116
|
-
email?: string;
|
|
117
|
-
phoneNumber?: string;
|
|
118
|
-
role?: UsersRolesEnum;
|
|
119
|
-
birthDate?: string;
|
|
120
|
-
gender?: UsersGenderEnum;
|
|
121
|
-
}
|
|
122
|
-
export interface UpdateUserDataDto {
|
|
123
|
-
id: number;
|
|
124
|
-
userId: string;
|
|
125
|
-
name: string;
|
|
126
|
-
email: string;
|
|
127
|
-
phoneNumber?: string;
|
|
128
|
-
profileImageUrl?: string;
|
|
129
|
-
birthDate?: string;
|
|
130
|
-
gender?: UsersGenderEnum;
|
|
131
|
-
createdAt: string;
|
|
132
|
-
updatedAt: string;
|
|
133
|
-
status: UsersStatusEnum;
|
|
134
|
-
role: UsersRolesEnum;
|
|
135
|
-
emailVerified: boolean;
|
|
136
|
-
phoneVerified: boolean;
|
|
137
|
-
}
|
|
138
|
-
export interface UpdateUserResponseDto {
|
|
139
|
-
success: boolean;
|
|
140
|
-
message: string;
|
|
141
|
-
data: UpdateUserDataDto;
|
|
142
|
-
}
|
package/dist/user.dto.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* 사용자 프로필 관련 DTO 정의
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.UsersGenderEnum = exports.UsersStatusEnum = exports.UsersRolesEnum = void 0;
|
|
7
|
-
var UsersRolesEnum;
|
|
8
|
-
(function (UsersRolesEnum) {
|
|
9
|
-
UsersRolesEnum["ADMIN"] = "ADMIN";
|
|
10
|
-
UsersRolesEnum["USER"] = "USER";
|
|
11
|
-
})(UsersRolesEnum || (exports.UsersRolesEnum = UsersRolesEnum = {}));
|
|
12
|
-
var UsersStatusEnum;
|
|
13
|
-
(function (UsersStatusEnum) {
|
|
14
|
-
UsersStatusEnum["ACTIVE"] = "ACTIVE";
|
|
15
|
-
UsersStatusEnum["INACTIVE"] = "INACTIVE";
|
|
16
|
-
UsersStatusEnum["SUSPENDED"] = "SUSPENDED";
|
|
17
|
-
UsersStatusEnum["PENDING_VERIFICATION"] = "PENDING_VERIFICATION";
|
|
18
|
-
})(UsersStatusEnum || (exports.UsersStatusEnum = UsersStatusEnum = {}));
|
|
19
|
-
var UsersGenderEnum;
|
|
20
|
-
(function (UsersGenderEnum) {
|
|
21
|
-
UsersGenderEnum["MALE"] = "MALE";
|
|
22
|
-
UsersGenderEnum["FEMALE"] = "FEMALE";
|
|
23
|
-
UsersGenderEnum["OTHER"] = "OTHER";
|
|
24
|
-
})(UsersGenderEnum || (exports.UsersGenderEnum = UsersGenderEnum = {}));
|