@teemill/platform 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,110 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Platform API
5
+ * Manage Your podOS platform Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
+ *
7
+ * The version of the OpenAPI document: 0.1.1
8
+ * Contact: hello@teemill.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ export interface ConfigurationParameters {
17
+ apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
18
+ username?: string;
19
+ password?: string;
20
+ accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
21
+ basePath?: string;
22
+ serverIndex?: number;
23
+ baseOptions?: any;
24
+ formDataCtor?: new () => any;
25
+ }
26
+
27
+ export class Configuration {
28
+ /**
29
+ * parameter for apiKey security
30
+ * @param name security name
31
+ * @memberof Configuration
32
+ */
33
+ apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
34
+ /**
35
+ * parameter for basic security
36
+ *
37
+ * @type {string}
38
+ * @memberof Configuration
39
+ */
40
+ username?: string;
41
+ /**
42
+ * parameter for basic security
43
+ *
44
+ * @type {string}
45
+ * @memberof Configuration
46
+ */
47
+ password?: string;
48
+ /**
49
+ * parameter for oauth2 security
50
+ * @param name security name
51
+ * @param scopes oauth2 scope
52
+ * @memberof Configuration
53
+ */
54
+ accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
55
+ /**
56
+ * override base path
57
+ *
58
+ * @type {string}
59
+ * @memberof Configuration
60
+ */
61
+ basePath?: string;
62
+ /**
63
+ * override server index
64
+ *
65
+ * @type {number}
66
+ * @memberof Configuration
67
+ */
68
+ serverIndex?: number;
69
+ /**
70
+ * base options for axios calls
71
+ *
72
+ * @type {any}
73
+ * @memberof Configuration
74
+ */
75
+ baseOptions?: any;
76
+ /**
77
+ * The FormData constructor that will be used to create multipart form data
78
+ * requests. You can inject this here so that execution environments that
79
+ * do not support the FormData class can still run the generated client.
80
+ *
81
+ * @type {new () => FormData}
82
+ */
83
+ formDataCtor?: new () => any;
84
+
85
+ constructor(param: ConfigurationParameters = {}) {
86
+ this.apiKey = param.apiKey;
87
+ this.username = param.username;
88
+ this.password = param.password;
89
+ this.accessToken = param.accessToken;
90
+ this.basePath = param.basePath;
91
+ this.serverIndex = param.serverIndex;
92
+ this.baseOptions = param.baseOptions;
93
+ this.formDataCtor = param.formDataCtor;
94
+ }
95
+
96
+ /**
97
+ * Check if the given MIME is a JSON MIME.
98
+ * JSON MIME examples:
99
+ * application/json
100
+ * application/json; charset=UTF8
101
+ * APPLICATION/JSON
102
+ * application/vnd.company+json
103
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
104
+ * @return True if the given MIME is JSON, false otherwise.
105
+ */
106
+ public isJsonMime(mime: string): boolean {
107
+ const jsonMime: RegExp = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
108
+ return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
109
+ }
110
+ }
package/dist/api.d.ts ADDED
@@ -0,0 +1,185 @@
1
+ /**
2
+ * Platform API
3
+ * Manage Your podOS platform Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
+ *
5
+ * The version of the OpenAPI document: 0.1.1
6
+ * Contact: hello@teemill.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Configuration } from './configuration';
13
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
+ import type { RequestArgs } from './base';
15
+ import { BaseAPI } from './base';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ApiError
20
+ */
21
+ export interface ApiError {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ApiError
26
+ */
27
+ 'code'?: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ApiError
32
+ */
33
+ 'message': string;
34
+ }
35
+ /**
36
+ *
37
+ * @export
38
+ * @interface Platform
39
+ */
40
+ export interface Platform {
41
+ /**
42
+ *
43
+ * @type {Array<PlatformLogo>}
44
+ * @memberof Platform
45
+ */
46
+ 'logos': Array<PlatformLogo>;
47
+ }
48
+ /**
49
+ *
50
+ * @export
51
+ * @interface PlatformLogo
52
+ */
53
+ export interface PlatformLogo {
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof PlatformLogo
58
+ */
59
+ 'url': string;
60
+ /**
61
+ *
62
+ * @type {{ [key: string]: string; }}
63
+ * @memberof PlatformLogo
64
+ */
65
+ 'meta': {
66
+ [key: string]: string;
67
+ };
68
+ }
69
+ /**
70
+ *
71
+ * @export
72
+ * @interface ValidationError
73
+ */
74
+ export interface ValidationError {
75
+ /**
76
+ *
77
+ * @type {string}
78
+ * @memberof ValidationError
79
+ */
80
+ 'message': string;
81
+ /**
82
+ *
83
+ * @type {{ [key: string]: Array<string>; }}
84
+ * @memberof ValidationError
85
+ */
86
+ 'errors': {
87
+ [key: string]: Array<string>;
88
+ };
89
+ }
90
+ /**
91
+ * PlatformApi - axios parameter creator
92
+ * @export
93
+ */
94
+ export declare const PlatformApiAxiosParamCreator: (configuration?: Configuration) => {
95
+ /**
96
+ *
97
+ * @summary Get platform details
98
+ * @param {string} project Project unique identifier
99
+ * @param {*} [options] Override http request option.
100
+ * @throws {RequiredError}
101
+ */
102
+ getPlatform: (project: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
103
+ /**
104
+ *
105
+ * @summary Update platform
106
+ * @param {string} project Project unique identifier
107
+ * @param {Platform} platform
108
+ * @param {*} [options] Override http request option.
109
+ * @throws {RequiredError}
110
+ */
111
+ updatePlatform: (project: string, platform: Platform, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
112
+ };
113
+ /**
114
+ * PlatformApi - functional programming interface
115
+ * @export
116
+ */
117
+ export declare const PlatformApiFp: (configuration?: Configuration) => {
118
+ /**
119
+ *
120
+ * @summary Get platform details
121
+ * @param {string} project Project unique identifier
122
+ * @param {*} [options] Override http request option.
123
+ * @throws {RequiredError}
124
+ */
125
+ getPlatform(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Platform>>;
126
+ /**
127
+ *
128
+ * @summary Update platform
129
+ * @param {string} project Project unique identifier
130
+ * @param {Platform} platform
131
+ * @param {*} [options] Override http request option.
132
+ * @throws {RequiredError}
133
+ */
134
+ updatePlatform(project: string, platform: Platform, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Platform>>;
135
+ };
136
+ /**
137
+ * PlatformApi - factory interface
138
+ * @export
139
+ */
140
+ export declare const PlatformApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
141
+ /**
142
+ *
143
+ * @summary Get platform details
144
+ * @param {string} project Project unique identifier
145
+ * @param {*} [options] Override http request option.
146
+ * @throws {RequiredError}
147
+ */
148
+ getPlatform(project: string, options?: any): AxiosPromise<Platform>;
149
+ /**
150
+ *
151
+ * @summary Update platform
152
+ * @param {string} project Project unique identifier
153
+ * @param {Platform} platform
154
+ * @param {*} [options] Override http request option.
155
+ * @throws {RequiredError}
156
+ */
157
+ updatePlatform(project: string, platform: Platform, options?: any): AxiosPromise<Platform>;
158
+ };
159
+ /**
160
+ * PlatformApi - object-oriented interface
161
+ * @export
162
+ * @class PlatformApi
163
+ * @extends {BaseAPI}
164
+ */
165
+ export declare class PlatformApi extends BaseAPI {
166
+ /**
167
+ *
168
+ * @summary Get platform details
169
+ * @param {string} project Project unique identifier
170
+ * @param {*} [options] Override http request option.
171
+ * @throws {RequiredError}
172
+ * @memberof PlatformApi
173
+ */
174
+ getPlatform(project: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Platform, any>>;
175
+ /**
176
+ *
177
+ * @summary Update platform
178
+ * @param {string} project Project unique identifier
179
+ * @param {Platform} platform
180
+ * @param {*} [options] Override http request option.
181
+ * @throws {RequiredError}
182
+ * @memberof PlatformApi
183
+ */
184
+ updatePlatform(project: string, platform: Platform, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Platform, any>>;
185
+ }
package/dist/api.js ADDED
@@ -0,0 +1,223 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Platform API
6
+ * Manage Your podOS platform Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
+ *
8
+ * The version of the OpenAPI document: 0.1.1
9
+ * Contact: hello@teemill.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.PlatformApi = exports.PlatformApiFactory = exports.PlatformApiFp = exports.PlatformApiAxiosParamCreator = void 0;
26
+ const axios_1 = require("axios");
27
+ // Some imports not used depending on template conditions
28
+ // @ts-ignore
29
+ const common_1 = require("./common");
30
+ // @ts-ignore
31
+ const base_1 = require("./base");
32
+ /**
33
+ * PlatformApi - axios parameter creator
34
+ * @export
35
+ */
36
+ const PlatformApiAxiosParamCreator = function (configuration) {
37
+ return {
38
+ /**
39
+ *
40
+ * @summary Get platform details
41
+ * @param {string} project Project unique identifier
42
+ * @param {*} [options] Override http request option.
43
+ * @throws {RequiredError}
44
+ */
45
+ getPlatform: (project, options = {}) => __awaiter(this, void 0, void 0, function* () {
46
+ // verify required parameter 'project' is not null or undefined
47
+ (0, common_1.assertParamExists)('getPlatform', 'project', project);
48
+ const localVarPath = `/v1/platform`;
49
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
50
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
51
+ let baseOptions;
52
+ if (configuration) {
53
+ baseOptions = configuration.baseOptions;
54
+ }
55
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
56
+ const localVarHeaderParameter = {};
57
+ const localVarQueryParameter = {};
58
+ // authentication session-oauth required
59
+ // oauth required
60
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
61
+ // authentication api-key required
62
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
63
+ if (project !== undefined) {
64
+ localVarQueryParameter['project'] = project;
65
+ }
66
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
67
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
68
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
69
+ return {
70
+ url: (0, common_1.toPathString)(localVarUrlObj),
71
+ options: localVarRequestOptions,
72
+ };
73
+ }),
74
+ /**
75
+ *
76
+ * @summary Update platform
77
+ * @param {string} project Project unique identifier
78
+ * @param {Platform} platform
79
+ * @param {*} [options] Override http request option.
80
+ * @throws {RequiredError}
81
+ */
82
+ updatePlatform: (project, platform, options = {}) => __awaiter(this, void 0, void 0, function* () {
83
+ // verify required parameter 'project' is not null or undefined
84
+ (0, common_1.assertParamExists)('updatePlatform', 'project', project);
85
+ // verify required parameter 'platform' is not null or undefined
86
+ (0, common_1.assertParamExists)('updatePlatform', 'platform', platform);
87
+ const localVarPath = `/v1/platform`;
88
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
89
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
90
+ let baseOptions;
91
+ if (configuration) {
92
+ baseOptions = configuration.baseOptions;
93
+ }
94
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
95
+ const localVarHeaderParameter = {};
96
+ const localVarQueryParameter = {};
97
+ // authentication session-oauth required
98
+ // oauth required
99
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
100
+ // authentication api-key required
101
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
102
+ if (project !== undefined) {
103
+ localVarQueryParameter['project'] = project;
104
+ }
105
+ localVarHeaderParameter['Content-Type'] = 'application/json';
106
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
107
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
108
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
109
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(platform, localVarRequestOptions, configuration);
110
+ return {
111
+ url: (0, common_1.toPathString)(localVarUrlObj),
112
+ options: localVarRequestOptions,
113
+ };
114
+ }),
115
+ };
116
+ };
117
+ exports.PlatformApiAxiosParamCreator = PlatformApiAxiosParamCreator;
118
+ /**
119
+ * PlatformApi - functional programming interface
120
+ * @export
121
+ */
122
+ const PlatformApiFp = function (configuration) {
123
+ const localVarAxiosParamCreator = (0, exports.PlatformApiAxiosParamCreator)(configuration);
124
+ return {
125
+ /**
126
+ *
127
+ * @summary Get platform details
128
+ * @param {string} project Project unique identifier
129
+ * @param {*} [options] Override http request option.
130
+ * @throws {RequiredError}
131
+ */
132
+ getPlatform(project, options) {
133
+ var _a, _b, _c;
134
+ return __awaiter(this, void 0, void 0, function* () {
135
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPlatform(project, options);
136
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
137
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PlatformApi.getPlatform']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
138
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
139
+ });
140
+ },
141
+ /**
142
+ *
143
+ * @summary Update platform
144
+ * @param {string} project Project unique identifier
145
+ * @param {Platform} platform
146
+ * @param {*} [options] Override http request option.
147
+ * @throws {RequiredError}
148
+ */
149
+ updatePlatform(project, platform, options) {
150
+ var _a, _b, _c;
151
+ return __awaiter(this, void 0, void 0, function* () {
152
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePlatform(project, platform, options);
153
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
154
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PlatformApi.updatePlatform']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
155
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
156
+ });
157
+ },
158
+ };
159
+ };
160
+ exports.PlatformApiFp = PlatformApiFp;
161
+ /**
162
+ * PlatformApi - factory interface
163
+ * @export
164
+ */
165
+ const PlatformApiFactory = function (configuration, basePath, axios) {
166
+ const localVarFp = (0, exports.PlatformApiFp)(configuration);
167
+ return {
168
+ /**
169
+ *
170
+ * @summary Get platform details
171
+ * @param {string} project Project unique identifier
172
+ * @param {*} [options] Override http request option.
173
+ * @throws {RequiredError}
174
+ */
175
+ getPlatform(project, options) {
176
+ return localVarFp.getPlatform(project, options).then((request) => request(axios, basePath));
177
+ },
178
+ /**
179
+ *
180
+ * @summary Update platform
181
+ * @param {string} project Project unique identifier
182
+ * @param {Platform} platform
183
+ * @param {*} [options] Override http request option.
184
+ * @throws {RequiredError}
185
+ */
186
+ updatePlatform(project, platform, options) {
187
+ return localVarFp.updatePlatform(project, platform, options).then((request) => request(axios, basePath));
188
+ },
189
+ };
190
+ };
191
+ exports.PlatformApiFactory = PlatformApiFactory;
192
+ /**
193
+ * PlatformApi - object-oriented interface
194
+ * @export
195
+ * @class PlatformApi
196
+ * @extends {BaseAPI}
197
+ */
198
+ class PlatformApi extends base_1.BaseAPI {
199
+ /**
200
+ *
201
+ * @summary Get platform details
202
+ * @param {string} project Project unique identifier
203
+ * @param {*} [options] Override http request option.
204
+ * @throws {RequiredError}
205
+ * @memberof PlatformApi
206
+ */
207
+ getPlatform(project, options) {
208
+ return (0, exports.PlatformApiFp)(this.configuration).getPlatform(project, options).then((request) => request(this.axios, this.basePath));
209
+ }
210
+ /**
211
+ *
212
+ * @summary Update platform
213
+ * @param {string} project Project unique identifier
214
+ * @param {Platform} platform
215
+ * @param {*} [options] Override http request option.
216
+ * @throws {RequiredError}
217
+ * @memberof PlatformApi
218
+ */
219
+ updatePlatform(project, platform, options) {
220
+ return (0, exports.PlatformApiFp)(this.configuration).updatePlatform(project, platform, options).then((request) => request(this.axios, this.basePath));
221
+ }
222
+ }
223
+ exports.PlatformApi = PlatformApi;
package/dist/base.d.ts ADDED
@@ -0,0 +1,66 @@
1
+ /**
2
+ * Platform API
3
+ * Manage Your podOS platform Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
+ *
5
+ * The version of the OpenAPI document: 0.1.1
6
+ * Contact: hello@teemill.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Configuration } from './configuration';
13
+ import type { AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
+ export declare const BASE_PATH: string;
15
+ /**
16
+ *
17
+ * @export
18
+ */
19
+ export declare const COLLECTION_FORMATS: {
20
+ csv: string;
21
+ ssv: string;
22
+ tsv: string;
23
+ pipes: string;
24
+ };
25
+ /**
26
+ *
27
+ * @export
28
+ * @interface RequestArgs
29
+ */
30
+ export interface RequestArgs {
31
+ url: string;
32
+ options: RawAxiosRequestConfig;
33
+ }
34
+ /**
35
+ *
36
+ * @export
37
+ * @class BaseAPI
38
+ */
39
+ export declare class BaseAPI {
40
+ protected basePath: string;
41
+ protected axios: AxiosInstance;
42
+ protected configuration: Configuration | undefined;
43
+ constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
44
+ }
45
+ /**
46
+ *
47
+ * @export
48
+ * @class RequiredError
49
+ * @extends {Error}
50
+ */
51
+ export declare class RequiredError extends Error {
52
+ field: string;
53
+ constructor(field: string, msg?: string);
54
+ }
55
+ interface ServerMap {
56
+ [key: string]: {
57
+ url: string;
58
+ description: string;
59
+ }[];
60
+ }
61
+ /**
62
+ *
63
+ * @export
64
+ */
65
+ export declare const operationServerMap: ServerMap;
66
+ export {};
package/dist/base.js ADDED
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Platform API
6
+ * Manage Your podOS platform Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
+ *
8
+ * The version of the OpenAPI document: 0.1.1
9
+ * Contact: hello@teemill.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.operationServerMap = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
17
+ const axios_1 = require("axios");
18
+ exports.BASE_PATH = "https://localhost:8080".replace(/\/+$/, "");
19
+ /**
20
+ *
21
+ * @export
22
+ */
23
+ exports.COLLECTION_FORMATS = {
24
+ csv: ",",
25
+ ssv: " ",
26
+ tsv: "\t",
27
+ pipes: "|",
28
+ };
29
+ /**
30
+ *
31
+ * @export
32
+ * @class BaseAPI
33
+ */
34
+ class BaseAPI {
35
+ constructor(configuration, basePath = exports.BASE_PATH, axios = axios_1.default) {
36
+ var _a;
37
+ this.basePath = basePath;
38
+ this.axios = axios;
39
+ if (configuration) {
40
+ this.configuration = configuration;
41
+ this.basePath = (_a = configuration.basePath) !== null && _a !== void 0 ? _a : basePath;
42
+ }
43
+ }
44
+ }
45
+ exports.BaseAPI = BaseAPI;
46
+ ;
47
+ /**
48
+ *
49
+ * @export
50
+ * @class RequiredError
51
+ * @extends {Error}
52
+ */
53
+ class RequiredError extends Error {
54
+ constructor(field, msg) {
55
+ super(msg);
56
+ this.field = field;
57
+ this.name = "RequiredError";
58
+ }
59
+ }
60
+ exports.RequiredError = RequiredError;
61
+ /**
62
+ *
63
+ * @export
64
+ */
65
+ exports.operationServerMap = {};