@cotofe/service-of-system
Version:
OpenAPI client for @cotofe/service-of-system
64 lines (63 loc) • 2.55 kB
JavaScript
;
/**
* Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.InnerLogModuleApi = void 0;
const runtime = require("../runtime");
/**
*
*/
class InnerLogModuleApi extends runtime.BaseAPI {
/**
*
* writeLogs
*/
writeLogsUsingPOSTRaw(requestParameters, initOverrides) {
return __awaiter(this, void 0, void 0, function* () {
const queryParameters = {};
const headerParameters = {};
headerParameters['Content-Type'] = 'application/json';
if (this.configuration && this.configuration.apiKey) {
headerParameters.authorization =
yield this.configuration.apiKey('authorization'); // apikey-header-authorization authentication
}
const response = yield this.request({
path: `/inner/log/writeLogs`,
method: 'POST',
headers: headerParameters,
query: queryParameters,
body: requestParameters.createLogRequest,
}, initOverrides);
return new runtime.JSONApiResponse(response);
});
}
/**
*
* writeLogs
*/
writeLogsUsingPOST() {
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
const response = yield this.writeLogsUsingPOSTRaw(requestParameters, initOverrides);
return yield response.value();
});
}
}
exports.InnerLogModuleApi = InnerLogModuleApi;