UNPKG

@novo-learning/novo-sdk

Version:

SDK for the Novolanguage Speech Analysis API

32 lines 952 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0; const axios_1 = require("axios"); exports.BASE_PATH = "http://localhost".replace(/\/+$/, ""); exports.COLLECTION_FORMATS = { csv: ",", ssv: " ", tsv: "\t", pipes: "|", }; class BaseAPI { constructor(configuration, basePath = exports.BASE_PATH, axios = axios_1.default) { this.basePath = basePath; this.axios = axios; if (configuration) { this.configuration = configuration; this.basePath = configuration.basePath || this.basePath; } } } exports.BaseAPI = BaseAPI; ; class RequiredError extends Error { constructor(field, msg) { super(msg); this.field = field; this.name = "RequiredError"; } } exports.RequiredError = RequiredError; //# sourceMappingURL=base.js.map