@gentrace/core
Version:
Core Gentrace Node.JS library
48 lines (45 loc) • 1.15 kB
JavaScript
import axiosWithOptionalFetch from './axios-instance.mjs';
/* tslint:disable */
/* eslint-disable */
/**
* Gentrace API
* These API routes are designed to ingest events from clients.
*
* The version of the OpenAPI document: 0.27.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
const BASE_PATH = "https://gentrace.ai/api".replace(/\/+$/, "");
/**
*
* @export
* @class BaseAPI
*/
class BaseAPI {
constructor(configuration, basePath = BASE_PATH, axios = axiosWithOptionalFetch) {
this.basePath = basePath;
this.axios = axios;
if (configuration) {
this.configuration = configuration;
this.basePath = configuration.basePath || this.basePath;
}
}
}
/**
*
* @export
* @class RequiredError
* @extends {Error}
*/
class RequiredError extends Error {
constructor(field, msg) {
super(msg);
this.field = field;
this.name = "RequiredError";
}
}
export { BASE_PATH, BaseAPI, RequiredError };
//# sourceMappingURL=base.mjs.map