@ject-2-test/backend-api-client 1.2.0 → 1.3.0
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/api/auth-api.d.ts +68 -0
- package/dist/api/auth-api.js +124 -0
- package/dist/api/{default-api.d.ts → user-api.d.ts} +8 -42
- package/dist/api/{default-api.js → user-api.js} +19 -86
- package/dist/api.d.ts +2 -1
- package/dist/api.js +2 -1
- package/package.json +1 -1
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Backend API
|
|
3
|
+
* 간단한 사용자 관리 API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Configuration } from '../configuration';
|
|
13
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
|
+
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import type { LoginRequest } from '../models';
|
|
16
|
+
import type { LoginResponse } from '../models';
|
|
17
|
+
/**
|
|
18
|
+
* AuthApi - axios parameter creator
|
|
19
|
+
*/
|
|
20
|
+
export declare const AuthApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
21
|
+
/**
|
|
22
|
+
* 이메일/비밀번호로 로그인하여 JWT 토큰을 발급받습니다.
|
|
23
|
+
* @summary 로그인
|
|
24
|
+
* @param {LoginRequest} loginRequest
|
|
25
|
+
* @param {*} [options] Override http request option.
|
|
26
|
+
* @throws {RequiredError}
|
|
27
|
+
*/
|
|
28
|
+
login: (loginRequest: LoginRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* AuthApi - functional programming interface
|
|
32
|
+
*/
|
|
33
|
+
export declare const AuthApiFp: (configuration?: Configuration) => {
|
|
34
|
+
/**
|
|
35
|
+
* 이메일/비밀번호로 로그인하여 JWT 토큰을 발급받습니다.
|
|
36
|
+
* @summary 로그인
|
|
37
|
+
* @param {LoginRequest} loginRequest
|
|
38
|
+
* @param {*} [options] Override http request option.
|
|
39
|
+
* @throws {RequiredError}
|
|
40
|
+
*/
|
|
41
|
+
login(loginRequest: LoginRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponse>>;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* AuthApi - factory interface
|
|
45
|
+
*/
|
|
46
|
+
export declare const AuthApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
47
|
+
/**
|
|
48
|
+
* 이메일/비밀번호로 로그인하여 JWT 토큰을 발급받습니다.
|
|
49
|
+
* @summary 로그인
|
|
50
|
+
* @param {LoginRequest} loginRequest
|
|
51
|
+
* @param {*} [options] Override http request option.
|
|
52
|
+
* @throws {RequiredError}
|
|
53
|
+
*/
|
|
54
|
+
login(loginRequest: LoginRequest, options?: RawAxiosRequestConfig): AxiosPromise<LoginResponse>;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* AuthApi - object-oriented interface
|
|
58
|
+
*/
|
|
59
|
+
export declare class AuthApi extends BaseAPI {
|
|
60
|
+
/**
|
|
61
|
+
* 이메일/비밀번호로 로그인하여 JWT 토큰을 발급받습니다.
|
|
62
|
+
* @summary 로그인
|
|
63
|
+
* @param {LoginRequest} loginRequest
|
|
64
|
+
* @param {*} [options] Override http request option.
|
|
65
|
+
* @throws {RequiredError}
|
|
66
|
+
*/
|
|
67
|
+
login(loginRequest: LoginRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<LoginResponse, any, {}>>;
|
|
68
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Backend API
|
|
6
|
+
* 간단한 사용자 관리 API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
16
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
|
+
};
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.AuthApi = exports.AuthApiFactory = exports.AuthApiFp = exports.AuthApiAxiosParamCreator = void 0;
|
|
20
|
+
const axios_1 = __importDefault(require("axios"));
|
|
21
|
+
// Some imports not used depending on template conditions
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
const common_1 = require("../common");
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
const base_1 = require("../base");
|
|
26
|
+
/**
|
|
27
|
+
* AuthApi - axios parameter creator
|
|
28
|
+
*/
|
|
29
|
+
const AuthApiAxiosParamCreator = function (configuration) {
|
|
30
|
+
return {
|
|
31
|
+
/**
|
|
32
|
+
* 이메일/비밀번호로 로그인하여 JWT 토큰을 발급받습니다.
|
|
33
|
+
* @summary 로그인
|
|
34
|
+
* @param {LoginRequest} loginRequest
|
|
35
|
+
* @param {*} [options] Override http request option.
|
|
36
|
+
* @throws {RequiredError}
|
|
37
|
+
*/
|
|
38
|
+
login: async (loginRequest, options = {}) => {
|
|
39
|
+
// verify required parameter 'loginRequest' is not null or undefined
|
|
40
|
+
(0, common_1.assertParamExists)('login', 'loginRequest', loginRequest);
|
|
41
|
+
const localVarPath = `/api/auth/login`;
|
|
42
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
43
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
44
|
+
let baseOptions;
|
|
45
|
+
if (configuration) {
|
|
46
|
+
baseOptions = configuration.baseOptions;
|
|
47
|
+
}
|
|
48
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
49
|
+
const localVarHeaderParameter = {};
|
|
50
|
+
const localVarQueryParameter = {};
|
|
51
|
+
// authentication bearerAuth required
|
|
52
|
+
// http bearer authentication required
|
|
53
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
54
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
55
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
56
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
57
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
58
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
59
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(loginRequest, localVarRequestOptions, configuration);
|
|
60
|
+
return {
|
|
61
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
62
|
+
options: localVarRequestOptions,
|
|
63
|
+
};
|
|
64
|
+
},
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
exports.AuthApiAxiosParamCreator = AuthApiAxiosParamCreator;
|
|
68
|
+
/**
|
|
69
|
+
* AuthApi - functional programming interface
|
|
70
|
+
*/
|
|
71
|
+
const AuthApiFp = function (configuration) {
|
|
72
|
+
const localVarAxiosParamCreator = (0, exports.AuthApiAxiosParamCreator)(configuration);
|
|
73
|
+
return {
|
|
74
|
+
/**
|
|
75
|
+
* 이메일/비밀번호로 로그인하여 JWT 토큰을 발급받습니다.
|
|
76
|
+
* @summary 로그인
|
|
77
|
+
* @param {LoginRequest} loginRequest
|
|
78
|
+
* @param {*} [options] Override http request option.
|
|
79
|
+
* @throws {RequiredError}
|
|
80
|
+
*/
|
|
81
|
+
async login(loginRequest, options) {
|
|
82
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.login(loginRequest, options);
|
|
83
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
84
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['AuthApi.login']?.[localVarOperationServerIndex]?.url;
|
|
85
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
86
|
+
},
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
exports.AuthApiFp = AuthApiFp;
|
|
90
|
+
/**
|
|
91
|
+
* AuthApi - factory interface
|
|
92
|
+
*/
|
|
93
|
+
const AuthApiFactory = function (configuration, basePath, axios) {
|
|
94
|
+
const localVarFp = (0, exports.AuthApiFp)(configuration);
|
|
95
|
+
return {
|
|
96
|
+
/**
|
|
97
|
+
* 이메일/비밀번호로 로그인하여 JWT 토큰을 발급받습니다.
|
|
98
|
+
* @summary 로그인
|
|
99
|
+
* @param {LoginRequest} loginRequest
|
|
100
|
+
* @param {*} [options] Override http request option.
|
|
101
|
+
* @throws {RequiredError}
|
|
102
|
+
*/
|
|
103
|
+
login(loginRequest, options) {
|
|
104
|
+
return localVarFp.login(loginRequest, options).then((request) => request(axios, basePath));
|
|
105
|
+
},
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
exports.AuthApiFactory = AuthApiFactory;
|
|
109
|
+
/**
|
|
110
|
+
* AuthApi - object-oriented interface
|
|
111
|
+
*/
|
|
112
|
+
class AuthApi extends base_1.BaseAPI {
|
|
113
|
+
/**
|
|
114
|
+
* 이메일/비밀번호로 로그인하여 JWT 토큰을 발급받습니다.
|
|
115
|
+
* @summary 로그인
|
|
116
|
+
* @param {LoginRequest} loginRequest
|
|
117
|
+
* @param {*} [options] Override http request option.
|
|
118
|
+
* @throws {RequiredError}
|
|
119
|
+
*/
|
|
120
|
+
login(loginRequest, options) {
|
|
121
|
+
return (0, exports.AuthApiFp)(this.configuration).login(loginRequest, options).then((request) => request(this.axios, this.basePath));
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
exports.AuthApi = AuthApi;
|
|
@@ -12,13 +12,11 @@
|
|
|
12
12
|
import type { Configuration } from '../configuration';
|
|
13
13
|
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
|
-
import type { LoginRequest } from '../models';
|
|
16
|
-
import type { LoginResponse } from '../models';
|
|
17
15
|
import type { UserResponse } from '../models';
|
|
18
16
|
/**
|
|
19
|
-
*
|
|
17
|
+
* UserApi - axios parameter creator
|
|
20
18
|
*/
|
|
21
|
-
export declare const
|
|
19
|
+
export declare const UserApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
22
20
|
/**
|
|
23
21
|
* 등록된 모든 사용자 목록을 조회합니다.
|
|
24
22
|
* @summary 사용자 전체 조회
|
|
@@ -34,19 +32,11 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
34
32
|
* @throws {RequiredError}
|
|
35
33
|
*/
|
|
36
34
|
getUserById: (id: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
37
|
-
/**
|
|
38
|
-
* 이메일/비밀번호로 로그인하여 JWT 토큰을 발급받습니다.
|
|
39
|
-
* @summary 로그인
|
|
40
|
-
* @param {LoginRequest} loginRequest
|
|
41
|
-
* @param {*} [options] Override http request option.
|
|
42
|
-
* @throws {RequiredError}
|
|
43
|
-
*/
|
|
44
|
-
login: (loginRequest: LoginRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
45
35
|
};
|
|
46
36
|
/**
|
|
47
|
-
*
|
|
37
|
+
* UserApi - functional programming interface
|
|
48
38
|
*/
|
|
49
|
-
export declare const
|
|
39
|
+
export declare const UserApiFp: (configuration?: Configuration) => {
|
|
50
40
|
/**
|
|
51
41
|
* 등록된 모든 사용자 목록을 조회합니다.
|
|
52
42
|
* @summary 사용자 전체 조회
|
|
@@ -62,19 +52,11 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
62
52
|
* @throws {RequiredError}
|
|
63
53
|
*/
|
|
64
54
|
getUserById(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponse>>;
|
|
65
|
-
/**
|
|
66
|
-
* 이메일/비밀번호로 로그인하여 JWT 토큰을 발급받습니다.
|
|
67
|
-
* @summary 로그인
|
|
68
|
-
* @param {LoginRequest} loginRequest
|
|
69
|
-
* @param {*} [options] Override http request option.
|
|
70
|
-
* @throws {RequiredError}
|
|
71
|
-
*/
|
|
72
|
-
login(loginRequest: LoginRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponse>>;
|
|
73
55
|
};
|
|
74
56
|
/**
|
|
75
|
-
*
|
|
57
|
+
* UserApi - factory interface
|
|
76
58
|
*/
|
|
77
|
-
export declare const
|
|
59
|
+
export declare const UserApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
78
60
|
/**
|
|
79
61
|
* 등록된 모든 사용자 목록을 조회합니다.
|
|
80
62
|
* @summary 사용자 전체 조회
|
|
@@ -90,19 +72,11 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
90
72
|
* @throws {RequiredError}
|
|
91
73
|
*/
|
|
92
74
|
getUserById(id: number, options?: RawAxiosRequestConfig): AxiosPromise<UserResponse>;
|
|
93
|
-
/**
|
|
94
|
-
* 이메일/비밀번호로 로그인하여 JWT 토큰을 발급받습니다.
|
|
95
|
-
* @summary 로그인
|
|
96
|
-
* @param {LoginRequest} loginRequest
|
|
97
|
-
* @param {*} [options] Override http request option.
|
|
98
|
-
* @throws {RequiredError}
|
|
99
|
-
*/
|
|
100
|
-
login(loginRequest: LoginRequest, options?: RawAxiosRequestConfig): AxiosPromise<LoginResponse>;
|
|
101
75
|
};
|
|
102
76
|
/**
|
|
103
|
-
*
|
|
77
|
+
* UserApi - object-oriented interface
|
|
104
78
|
*/
|
|
105
|
-
export declare class
|
|
79
|
+
export declare class UserApi extends BaseAPI {
|
|
106
80
|
/**
|
|
107
81
|
* 등록된 모든 사용자 목록을 조회합니다.
|
|
108
82
|
* @summary 사용자 전체 조회
|
|
@@ -118,12 +92,4 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
118
92
|
* @throws {RequiredError}
|
|
119
93
|
*/
|
|
120
94
|
getUserById(id: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserResponse, any, {}>>;
|
|
121
|
-
/**
|
|
122
|
-
* 이메일/비밀번호로 로그인하여 JWT 토큰을 발급받습니다.
|
|
123
|
-
* @summary 로그인
|
|
124
|
-
* @param {LoginRequest} loginRequest
|
|
125
|
-
* @param {*} [options] Override http request option.
|
|
126
|
-
* @throws {RequiredError}
|
|
127
|
-
*/
|
|
128
|
-
login(loginRequest: LoginRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<LoginResponse, any, {}>>;
|
|
129
95
|
}
|
|
@@ -16,7 +16,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
17
|
};
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.
|
|
19
|
+
exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = void 0;
|
|
20
20
|
const axios_1 = __importDefault(require("axios"));
|
|
21
21
|
// Some imports not used depending on template conditions
|
|
22
22
|
// @ts-ignore
|
|
@@ -24,9 +24,9 @@ const common_1 = require("../common");
|
|
|
24
24
|
// @ts-ignore
|
|
25
25
|
const base_1 = require("../base");
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* UserApi - axios parameter creator
|
|
28
28
|
*/
|
|
29
|
-
const
|
|
29
|
+
const UserApiAxiosParamCreator = function (configuration) {
|
|
30
30
|
return {
|
|
31
31
|
/**
|
|
32
32
|
* 등록된 모든 사용자 목록을 조회합니다.
|
|
@@ -90,48 +90,14 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
90
90
|
options: localVarRequestOptions,
|
|
91
91
|
};
|
|
92
92
|
},
|
|
93
|
-
/**
|
|
94
|
-
* 이메일/비밀번호로 로그인하여 JWT 토큰을 발급받습니다.
|
|
95
|
-
* @summary 로그인
|
|
96
|
-
* @param {LoginRequest} loginRequest
|
|
97
|
-
* @param {*} [options] Override http request option.
|
|
98
|
-
* @throws {RequiredError}
|
|
99
|
-
*/
|
|
100
|
-
login: async (loginRequest, options = {}) => {
|
|
101
|
-
// verify required parameter 'loginRequest' is not null or undefined
|
|
102
|
-
(0, common_1.assertParamExists)('login', 'loginRequest', loginRequest);
|
|
103
|
-
const localVarPath = `/api/auth/login`;
|
|
104
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
105
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
106
|
-
let baseOptions;
|
|
107
|
-
if (configuration) {
|
|
108
|
-
baseOptions = configuration.baseOptions;
|
|
109
|
-
}
|
|
110
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
111
|
-
const localVarHeaderParameter = {};
|
|
112
|
-
const localVarQueryParameter = {};
|
|
113
|
-
// authentication bearerAuth required
|
|
114
|
-
// http bearer authentication required
|
|
115
|
-
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
116
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
117
|
-
localVarHeaderParameter['Accept'] = '*/*';
|
|
118
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
119
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
120
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
121
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(loginRequest, localVarRequestOptions, configuration);
|
|
122
|
-
return {
|
|
123
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
124
|
-
options: localVarRequestOptions,
|
|
125
|
-
};
|
|
126
|
-
},
|
|
127
93
|
};
|
|
128
94
|
};
|
|
129
|
-
exports.
|
|
95
|
+
exports.UserApiAxiosParamCreator = UserApiAxiosParamCreator;
|
|
130
96
|
/**
|
|
131
|
-
*
|
|
97
|
+
* UserApi - functional programming interface
|
|
132
98
|
*/
|
|
133
|
-
const
|
|
134
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
99
|
+
const UserApiFp = function (configuration) {
|
|
100
|
+
const localVarAxiosParamCreator = (0, exports.UserApiAxiosParamCreator)(configuration);
|
|
135
101
|
return {
|
|
136
102
|
/**
|
|
137
103
|
* 등록된 모든 사용자 목록을 조회합니다.
|
|
@@ -142,7 +108,7 @@ const DefaultApiFp = function (configuration) {
|
|
|
142
108
|
async getAllUsers(options) {
|
|
143
109
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllUsers(options);
|
|
144
110
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
145
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['
|
|
111
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['UserApi.getAllUsers']?.[localVarOperationServerIndex]?.url;
|
|
146
112
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
147
113
|
},
|
|
148
114
|
/**
|
|
@@ -155,30 +121,17 @@ const DefaultApiFp = function (configuration) {
|
|
|
155
121
|
async getUserById(id, options) {
|
|
156
122
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getUserById(id, options);
|
|
157
123
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
158
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['
|
|
159
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
160
|
-
},
|
|
161
|
-
/**
|
|
162
|
-
* 이메일/비밀번호로 로그인하여 JWT 토큰을 발급받습니다.
|
|
163
|
-
* @summary 로그인
|
|
164
|
-
* @param {LoginRequest} loginRequest
|
|
165
|
-
* @param {*} [options] Override http request option.
|
|
166
|
-
* @throws {RequiredError}
|
|
167
|
-
*/
|
|
168
|
-
async login(loginRequest, options) {
|
|
169
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.login(loginRequest, options);
|
|
170
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
171
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.login']?.[localVarOperationServerIndex]?.url;
|
|
124
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['UserApi.getUserById']?.[localVarOperationServerIndex]?.url;
|
|
172
125
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
173
126
|
},
|
|
174
127
|
};
|
|
175
128
|
};
|
|
176
|
-
exports.
|
|
129
|
+
exports.UserApiFp = UserApiFp;
|
|
177
130
|
/**
|
|
178
|
-
*
|
|
131
|
+
* UserApi - factory interface
|
|
179
132
|
*/
|
|
180
|
-
const
|
|
181
|
-
const localVarFp = (0, exports.
|
|
133
|
+
const UserApiFactory = function (configuration, basePath, axios) {
|
|
134
|
+
const localVarFp = (0, exports.UserApiFp)(configuration);
|
|
182
135
|
return {
|
|
183
136
|
/**
|
|
184
137
|
* 등록된 모든 사용자 목록을 조회합니다.
|
|
@@ -199,23 +152,13 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
199
152
|
getUserById(id, options) {
|
|
200
153
|
return localVarFp.getUserById(id, options).then((request) => request(axios, basePath));
|
|
201
154
|
},
|
|
202
|
-
/**
|
|
203
|
-
* 이메일/비밀번호로 로그인하여 JWT 토큰을 발급받습니다.
|
|
204
|
-
* @summary 로그인
|
|
205
|
-
* @param {LoginRequest} loginRequest
|
|
206
|
-
* @param {*} [options] Override http request option.
|
|
207
|
-
* @throws {RequiredError}
|
|
208
|
-
*/
|
|
209
|
-
login(loginRequest, options) {
|
|
210
|
-
return localVarFp.login(loginRequest, options).then((request) => request(axios, basePath));
|
|
211
|
-
},
|
|
212
155
|
};
|
|
213
156
|
};
|
|
214
|
-
exports.
|
|
157
|
+
exports.UserApiFactory = UserApiFactory;
|
|
215
158
|
/**
|
|
216
|
-
*
|
|
159
|
+
* UserApi - object-oriented interface
|
|
217
160
|
*/
|
|
218
|
-
class
|
|
161
|
+
class UserApi extends base_1.BaseAPI {
|
|
219
162
|
/**
|
|
220
163
|
* 등록된 모든 사용자 목록을 조회합니다.
|
|
221
164
|
* @summary 사용자 전체 조회
|
|
@@ -223,7 +166,7 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
223
166
|
* @throws {RequiredError}
|
|
224
167
|
*/
|
|
225
168
|
getAllUsers(options) {
|
|
226
|
-
return (0, exports.
|
|
169
|
+
return (0, exports.UserApiFp)(this.configuration).getAllUsers(options).then((request) => request(this.axios, this.basePath));
|
|
227
170
|
}
|
|
228
171
|
/**
|
|
229
172
|
* ID로 특정 사용자를 조회합니다.
|
|
@@ -233,17 +176,7 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
233
176
|
* @throws {RequiredError}
|
|
234
177
|
*/
|
|
235
178
|
getUserById(id, options) {
|
|
236
|
-
return (0, exports.
|
|
237
|
-
}
|
|
238
|
-
/**
|
|
239
|
-
* 이메일/비밀번호로 로그인하여 JWT 토큰을 발급받습니다.
|
|
240
|
-
* @summary 로그인
|
|
241
|
-
* @param {LoginRequest} loginRequest
|
|
242
|
-
* @param {*} [options] Override http request option.
|
|
243
|
-
* @throws {RequiredError}
|
|
244
|
-
*/
|
|
245
|
-
login(loginRequest, options) {
|
|
246
|
-
return (0, exports.DefaultApiFp)(this.configuration).login(loginRequest, options).then((request) => request(this.axios, this.basePath));
|
|
179
|
+
return (0, exports.UserApiFp)(this.configuration).getUserById(id, options).then((request) => request(this.axios, this.basePath));
|
|
247
180
|
}
|
|
248
181
|
}
|
|
249
|
-
exports.
|
|
182
|
+
exports.UserApi = UserApi;
|
package/dist/api.d.ts
CHANGED
package/dist/api.js
CHANGED
|
@@ -27,4 +27,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
27
27
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
-
__exportStar(require("./api/
|
|
30
|
+
__exportStar(require("./api/auth-api"), exports);
|
|
31
|
+
__exportStar(require("./api/user-api"), exports);
|