Automated build 'Security' typescript-axios sdk: 4723017542

This commit is contained in:
GitHub Action Bot
2023-04-17 15:33:39 +00:00
parent 01738e4720
commit 866ca99ca2
16 changed files with 2144 additions and 3838 deletions

View File

@@ -1,4 +1,3 @@
"use strict";
/* tslint:disable */
/* eslint-disable */
/**
@@ -12,32 +11,15 @@
* https://openapi-generator.tech
* Do not edit the class manually.
*/
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
// Some imports not used depending on template conditions
// @ts-ignore
var axios_1 = require("axios");
exports.BASE_PATH = "http://10.10.10.47:32400".replace(/\/+$/, "");
import globalAxios from 'axios';
export const BASE_PATH = "http://10.10.10.47:32400".replace(/\/+$/, "");
/**
*
* @export
*/
exports.COLLECTION_FORMATS = {
export const COLLECTION_FORMATS = {
csv: ",",
ssv: " ",
tsv: "\t",
@@ -48,10 +30,11 @@ exports.COLLECTION_FORMATS = {
* @export
* @class BaseAPI
*/
var BaseAPI = /** @class */ (function () {
function BaseAPI(configuration, basePath, axios) {
if (basePath === void 0) { basePath = exports.BASE_PATH; }
if (axios === void 0) { axios = axios_1.default; }
export class BaseAPI {
basePath;
axios;
configuration;
constructor(configuration, basePath = BASE_PATH, axios = globalAxios) {
this.basePath = basePath;
this.axios = axios;
if (configuration) {
@@ -59,9 +42,7 @@ var BaseAPI = /** @class */ (function () {
this.basePath = configuration.basePath || this.basePath;
}
}
return BaseAPI;
}());
exports.BaseAPI = BaseAPI;
}
;
/**
*
@@ -69,15 +50,12 @@ exports.BaseAPI = BaseAPI;
* @class RequiredError
* @extends {Error}
*/
var RequiredError = /** @class */ (function (_super) {
__extends(RequiredError, _super);
function RequiredError(field, msg) {
var _this = _super.call(this, msg) || this;
_this.field = field;
_this.name = "RequiredError";
return _this;
export class RequiredError extends Error {
field;
name = "RequiredError";
constructor(field, msg) {
super(msg);
this.field = field;
}
return RequiredError;
}(Error));
exports.RequiredError = RequiredError;
}
//# sourceMappingURL=base.js.map