byzip-v2-sdk 1.0.37 → 1.0.43

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 CHANGED
@@ -1,14 +1,6 @@
1
1
  # ByZip V2 SDK
2
2
 
3
- 분양모음집 V2 프로젝트의 프론트엔드와 백엔드 간 타입 통일을 위한 TypeScript SDK입니다.
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
- export * from './auth.const';
6
- export * from './auth.dto';
7
- export * from './bug-report.dto';
8
- export * from './housing-supply.dto';
9
- export * from './jwt.types';
10
- export * from './response.dto';
11
- export * from './response.helpers';
12
- export * from './user.dto';
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
- __exportStar(require("./auth.const"), exports);
22
- __exportStar(require("./auth.dto"), exports);
23
- __exportStar(require("./bug-report.dto"), exports);
24
- __exportStar(require("./housing-supply.dto"), exports);
25
- __exportStar(require("./jwt.types"), exports);
26
- __exportStar(require("./response.dto"), exports);
27
- __exportStar(require("./response.helpers"), exports);
28
- __exportStar(require("./user.dto"), exports);
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.37",
3
+ "version": "1.0.43",
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,18 @@
24
20
  "author": "",
25
21
  "license": "ISC",
26
22
  "description": "분양모음집 V2 SDK - 프론트엔드와 백엔드 간 타입 통일을 위한 TypeScript SDK",
23
+ "repository": {
24
+ "type": "git",
25
+ "url": "git+https://github.com/byzip-v2/byzip-be-v2-spring.git",
26
+ "directory": "sdk-package"
27
+ },
28
+ "homepage": "https://github.com/byzip-v2/byzip-be-v2-spring#readme",
29
+ "bugs": {
30
+ "url": "https://github.com/byzip-v2/byzip-be-v2-spring/issues"
31
+ },
32
+ "publishConfig": {
33
+ "access": "public"
34
+ },
27
35
  "devDependencies": {
28
36
  "typescript": "^5.0.0"
29
37
  }
@@ -1 +0,0 @@
1
- export declare const SAMPLE = "sample";
@@ -1,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SAMPLE = void 0;
4
- exports.SAMPLE = 'sample';
@@ -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
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * 인증 관련 DTO 정의
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -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
- }
@@ -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,150 +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
- recruiting?: boolean;
69
- page?: number;
70
- limit?: number;
71
- sortBy?: string;
72
- sortOrder?: 'ASC' | 'DESC';
73
- }
74
- export interface PaginationMetaDto {
75
- page: number;
76
- limit: number;
77
- total: number;
78
- totalPages: number;
79
- itemCount: number;
80
- }
81
- export interface HousingSupplyDataDto {
82
- id: number;
83
- houseManageNo?: string;
84
- pblancNo?: string;
85
- houseName?: string;
86
- houseSecd?: string;
87
- houseSecdNm?: string;
88
- houseDtlSecd?: string;
89
- houseDtlSecdNm?: string;
90
- rentSecd?: string;
91
- rentSecdNm?: string;
92
- subscrptAreaCode?: string;
93
- subscrptAreaCodeNm?: string;
94
- hssplyZip?: string;
95
- hssplyAdres?: string;
96
- latitude?: number;
97
- longitude?: number;
98
- totSuplyHshldco?: number;
99
- rcritPblancDe?: Date;
100
- rceptBgnde?: Date;
101
- rceptEndde?: Date;
102
- spsplyRceptBgnde?: Date;
103
- spsplyRceptEndde?: Date;
104
- przwnerPresnatnDe?: Date;
105
- cntrctCnclsBgnde?: Date;
106
- cntrctCnclsEndde?: Date;
107
- mvnPrearngeYm?: Date;
108
- hmpgAdres?: string;
109
- pblancUrl?: string;
110
- mdhsTelno?: string;
111
- cnstrctEntrpsNm?: string;
112
- bsnsMbyNm?: string;
113
- nsprcNm?: string;
114
- specltRdnEarthAt?: string;
115
- mdatTrgetAreaSecd?: string;
116
- parcprcUlsAt?: string;
117
- imprmnBsnsAt?: string;
118
- publicHouseEarthAt?: string;
119
- lrsclBldlndAt?: string;
120
- nplnPrvoprPublicHouseAt?: string;
121
- publicHouseSpclwApplcAt?: string;
122
- collectedAt: Date;
123
- createdAt: Date;
124
- updatedAt: Date;
125
- }
126
- export interface GetHousingSupplyResponseDto {
127
- success: boolean;
128
- message: string;
129
- data: HousingSupplyDataDto;
130
- }
131
- export interface GetHousingSuppliesResponseDto {
132
- success: boolean;
133
- message: string;
134
- data: HousingSupplyDataDto[];
135
- meta: PaginationMetaDto;
136
- }
137
- export interface CreateHousingSupplyResponseDto {
138
- success: boolean;
139
- message: string;
140
- data: HousingSupplyDataDto;
141
- }
142
- export interface UpdateHousingSupplyResponseDto {
143
- success: boolean;
144
- message: string;
145
- data: HousingSupplyDataDto;
146
- }
147
- export interface DeleteHousingSupplyResponseDto {
148
- success: boolean;
149
- message: string;
150
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +0,0 @@
1
- export interface JwtPayload {
2
- /** 사용자 ID (subject) */
3
- sub: string;
4
- /** 토큰 타입 */
5
- type: 'access' | 'refresh';
6
- /** 토큰 발급 시간 (issued at) */
7
- iat?: number;
8
- /** 토큰 만료 시간 (expiration time) */
9
- exp?: number;
10
- }
package/dist/jwt.types.js DELETED
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- // GitHub Actions 테스트
@@ -1,8 +0,0 @@
1
- /**
2
- * 공통 API 응답 구조 DTO
3
- */
4
- export interface BaseResponseDto<T = any> {
5
- success: boolean;
6
- message: string;
7
- data: T;
8
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * 공통 API 응답 구조 DTO
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -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>;
@@ -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
- }
@@ -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 = {}));