byzip-v2-sdk 1.0.48 → 1.0.50
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/dist/generated.d.ts +2 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.js +4 -2
- package/package.json +1 -1
package/dist/generated.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export interface ApiResponse<T> {
|
|
2
2
|
data: T;
|
|
3
3
|
message: string;
|
|
4
|
+
meta: Meta;
|
|
4
5
|
success: boolean;
|
|
5
6
|
}
|
|
6
7
|
export interface BugReportCreateRequestDto {
|
|
@@ -143,6 +144,7 @@ export interface HousingSupplyResponseDto {
|
|
|
143
144
|
hssplyZip: string;
|
|
144
145
|
id: number;
|
|
145
146
|
imprmnBsnsAt: string;
|
|
147
|
+
isHidden: boolean;
|
|
146
148
|
latitude: number;
|
|
147
149
|
longitude: number;
|
|
148
150
|
lrsclBldlndAt: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* ByZip V2 SDK
|
|
3
3
|
* 자동 생성된 DTO와 헬퍼 함수들을 export 합니다.
|
|
4
4
|
*/
|
|
5
|
-
import { ApiResponse } from './generated';
|
|
5
|
+
import { ApiResponse, Meta } from './generated';
|
|
6
6
|
export * from './generated';
|
|
7
7
|
/**
|
|
8
8
|
* 이전 버전과의 호환성을 위한 Type Alias
|
|
@@ -11,8 +11,8 @@ export type BaseResponseDto<T> = ApiResponse<T>;
|
|
|
11
11
|
/**
|
|
12
12
|
* 성공 응답 생성 헬퍼 함수
|
|
13
13
|
*/
|
|
14
|
-
export declare function createSuccessResponse<T>(data: T, message?: string): ApiResponse<T>;
|
|
14
|
+
export declare function createSuccessResponse<T>(data: T, message?: string, meta?: Meta | null): ApiResponse<T>;
|
|
15
15
|
/**
|
|
16
16
|
* 에러 응답 생성 헬퍼 함수
|
|
17
17
|
*/
|
|
18
|
-
export declare function createErrorResponse<T = null>(message: string, data?: T): ApiResponse<T>;
|
|
18
|
+
export declare function createErrorResponse<T = null>(message: string, data?: T, meta?: Meta | null): ApiResponse<T>;
|
package/dist/index.js
CHANGED
|
@@ -24,20 +24,22 @@ __exportStar(require("./generated"), exports);
|
|
|
24
24
|
/**
|
|
25
25
|
* 성공 응답 생성 헬퍼 함수
|
|
26
26
|
*/
|
|
27
|
-
function createSuccessResponse(data, message = "요청이 성공적으로 처리되었습니다.") {
|
|
27
|
+
function createSuccessResponse(data, message = "요청이 성공적으로 처리되었습니다.", meta) {
|
|
28
28
|
return {
|
|
29
29
|
success: true,
|
|
30
30
|
message,
|
|
31
31
|
data,
|
|
32
|
+
meta: meta,
|
|
32
33
|
};
|
|
33
34
|
}
|
|
34
35
|
/**
|
|
35
36
|
* 에러 응답 생성 헬퍼 함수
|
|
36
37
|
*/
|
|
37
|
-
function createErrorResponse(message, data = null) {
|
|
38
|
+
function createErrorResponse(message, data = null, meta) {
|
|
38
39
|
return {
|
|
39
40
|
success: false,
|
|
40
41
|
message,
|
|
41
42
|
data,
|
|
43
|
+
meta: meta,
|
|
42
44
|
};
|
|
43
45
|
}
|