Initial commit for the js version

This commit is contained in:
2020-12-22 15:17:25 +01:00
commit 94d26fcafc
182 changed files with 2524 additions and 0 deletions

52
dist/services/AuthService.js vendored Normal file
View File

@@ -0,0 +1,52 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AuthService = void 0;
const request_1 = require("../core/request");
class AuthService {
/**
* Login
* Create a new access token object
* @param requestBody CreateAuth
* @result any
* @throws ApiError
*/
static async authControllerLogin(requestBody) {
const result = await request_1.request({
method: 'POST',
path: `/api/auth/login`,
body: requestBody,
});
return result.body;
}
/**
* Logout
* Create a new access token object
* @param requestBody HandleLogout
* @result any
* @throws ApiError
*/
static async authControllerLogout(requestBody) {
const result = await request_1.request({
method: 'POST',
path: `/api/auth/logout`,
body: requestBody,
});
return result.body;
}
/**
* Refresh
* refresh a access token
* @param requestBody RefreshAuth
* @result any
* @throws ApiError
*/
static async authControllerRefresh(requestBody) {
const result = await request_1.request({
method: 'POST',
path: `/api/auth/refresh`,
body: requestBody,
});
return result.body;
}
}
exports.AuthService = AuthService;