lambdaorm-client-node
Version:
Client form lambda ORM service
61 lines • 1.47 kB
JavaScript
;
/* tslint:disable */
/* eslint-disable */
/**
* λORM Service
* service of lambda orm
*
* The version of the OpenAPI document: 0.3.0
* Contact: flaviolrita@hotmail.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = void 0;
// Some imports not used depending on template conditions
// @ts-ignore
const axios_1 = __importDefault(require("axios"));
/**
*
* @export
*/
exports.COLLECTION_FORMATS = {
csv: ",",
ssv: " ",
tsv: "\t",
pipes: "|",
};
/**
*
* @export
* @class BaseAPI
*/
class BaseAPI {
constructor(configuration, axios = axios_1.default) {
this.axios = axios;
this.configuration = configuration;
this.basePath = configuration.basePath || 'http://0.0.0.0/9291';
}
}
exports.BaseAPI = BaseAPI;
;
/**
*
* @export
* @class RequiredError
* @extends {Error}
*/
class RequiredError extends Error {
constructor(field, msg) {
super(msg);
this.field = field;
this.name = "RequiredError";
}
}
exports.RequiredError = RequiredError;
//# sourceMappingURL=base.js.map