@teemill/blog 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,454 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Blog API
5
+ * Read and write blogs on the 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
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import globalAxios from 'axios';
24
+ // Some imports not used depending on template conditions
25
+ // @ts-ignore
26
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
27
+ // @ts-ignore
28
+ import { BASE_PATH, BaseAPI, operationServerMap } from './base';
29
+ /**
30
+ * BlogApi - axios parameter creator
31
+ * @export
32
+ */
33
+ export const BlogApiAxiosParamCreator = function (configuration) {
34
+ return {
35
+ /**
36
+ *
37
+ * @summary Create a blog
38
+ * @param {string} project
39
+ * @param {CreateBlogRequest} createBlogRequest
40
+ * @param {*} [options] Override http request option.
41
+ * @throws {RequiredError}
42
+ */
43
+ createBlog: (project_1, createBlogRequest_1, ...args_1) => __awaiter(this, [project_1, createBlogRequest_1, ...args_1], void 0, function* (project, createBlogRequest, options = {}) {
44
+ // verify required parameter 'project' is not null or undefined
45
+ assertParamExists('createBlog', 'project', project);
46
+ // verify required parameter 'createBlogRequest' is not null or undefined
47
+ assertParamExists('createBlog', 'createBlogRequest', createBlogRequest);
48
+ const localVarPath = `/v1/blog/blogs`;
49
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
50
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
51
+ let baseOptions;
52
+ if (configuration) {
53
+ baseOptions = configuration.baseOptions;
54
+ }
55
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
56
+ const localVarHeaderParameter = {};
57
+ const localVarQueryParameter = {};
58
+ // authentication session-oauth required
59
+ // oauth required
60
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
61
+ // authentication api-key required
62
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
63
+ if (project !== undefined) {
64
+ localVarQueryParameter['project'] = project;
65
+ }
66
+ localVarHeaderParameter['Content-Type'] = 'application/json';
67
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
68
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
69
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
70
+ localVarRequestOptions.data = serializeDataIfNeeded(createBlogRequest, localVarRequestOptions, configuration);
71
+ return {
72
+ url: toPathString(localVarUrlObj),
73
+ options: localVarRequestOptions,
74
+ };
75
+ }),
76
+ /**
77
+ *
78
+ * @summary Delete a blog
79
+ * @param {string} project
80
+ * @param {string} blogId
81
+ * @param {*} [options] Override http request option.
82
+ * @throws {RequiredError}
83
+ */
84
+ deleteBlog: (project_1, blogId_1, ...args_1) => __awaiter(this, [project_1, blogId_1, ...args_1], void 0, function* (project, blogId, options = {}) {
85
+ // verify required parameter 'project' is not null or undefined
86
+ assertParamExists('deleteBlog', 'project', project);
87
+ // verify required parameter 'blogId' is not null or undefined
88
+ assertParamExists('deleteBlog', 'blogId', blogId);
89
+ const localVarPath = `/v1/blog/blogs/{blogId}`
90
+ .replace(`{${"blogId"}}`, encodeURIComponent(String(blogId)));
91
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
92
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
93
+ let baseOptions;
94
+ if (configuration) {
95
+ baseOptions = configuration.baseOptions;
96
+ }
97
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
98
+ const localVarHeaderParameter = {};
99
+ const localVarQueryParameter = {};
100
+ // authentication session-oauth required
101
+ // oauth required
102
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
103
+ // authentication api-key required
104
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
105
+ if (project !== undefined) {
106
+ localVarQueryParameter['project'] = project;
107
+ }
108
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
109
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
110
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
111
+ return {
112
+ url: toPathString(localVarUrlObj),
113
+ options: localVarRequestOptions,
114
+ };
115
+ }),
116
+ /**
117
+ *
118
+ * @summary Get a blog
119
+ * @param {string} project
120
+ * @param {string} blogId
121
+ * @param {*} [options] Override http request option.
122
+ * @throws {RequiredError}
123
+ */
124
+ getBlog: (project_1, blogId_1, ...args_1) => __awaiter(this, [project_1, blogId_1, ...args_1], void 0, function* (project, blogId, options = {}) {
125
+ // verify required parameter 'project' is not null or undefined
126
+ assertParamExists('getBlog', 'project', project);
127
+ // verify required parameter 'blogId' is not null or undefined
128
+ assertParamExists('getBlog', 'blogId', blogId);
129
+ const localVarPath = `/v1/blog/blogs/{blogId}`
130
+ .replace(`{${"blogId"}}`, encodeURIComponent(String(blogId)));
131
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
132
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
133
+ let baseOptions;
134
+ if (configuration) {
135
+ baseOptions = configuration.baseOptions;
136
+ }
137
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
138
+ const localVarHeaderParameter = {};
139
+ const localVarQueryParameter = {};
140
+ // authentication session-oauth required
141
+ // oauth required
142
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
143
+ // authentication api-key required
144
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
145
+ if (project !== undefined) {
146
+ localVarQueryParameter['project'] = project;
147
+ }
148
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
149
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
150
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
151
+ return {
152
+ url: toPathString(localVarUrlObj),
153
+ options: localVarRequestOptions,
154
+ };
155
+ }),
156
+ /**
157
+ *
158
+ * @summary List blogs
159
+ * @param {string} project
160
+ * @param {*} [options] Override http request option.
161
+ * @throws {RequiredError}
162
+ */
163
+ listBlogs: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
164
+ // verify required parameter 'project' is not null or undefined
165
+ assertParamExists('listBlogs', 'project', project);
166
+ const localVarPath = `/v1/blog/blogs`;
167
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
168
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
169
+ let baseOptions;
170
+ if (configuration) {
171
+ baseOptions = configuration.baseOptions;
172
+ }
173
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
174
+ const localVarHeaderParameter = {};
175
+ const localVarQueryParameter = {};
176
+ // authentication session-oauth required
177
+ // oauth required
178
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
179
+ // authentication api-key required
180
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
181
+ if (project !== undefined) {
182
+ localVarQueryParameter['project'] = project;
183
+ }
184
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
185
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
186
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
187
+ return {
188
+ url: toPathString(localVarUrlObj),
189
+ options: localVarRequestOptions,
190
+ };
191
+ }),
192
+ /**
193
+ *
194
+ * @summary Update a blog
195
+ * @param {string} project
196
+ * @param {string} blogId
197
+ * @param {UpdateBlogRequest} updateBlogRequest
198
+ * @param {*} [options] Override http request option.
199
+ * @throws {RequiredError}
200
+ */
201
+ updateBlog: (project_1, blogId_1, updateBlogRequest_1, ...args_1) => __awaiter(this, [project_1, blogId_1, updateBlogRequest_1, ...args_1], void 0, function* (project, blogId, updateBlogRequest, options = {}) {
202
+ // verify required parameter 'project' is not null or undefined
203
+ assertParamExists('updateBlog', 'project', project);
204
+ // verify required parameter 'blogId' is not null or undefined
205
+ assertParamExists('updateBlog', 'blogId', blogId);
206
+ // verify required parameter 'updateBlogRequest' is not null or undefined
207
+ assertParamExists('updateBlog', 'updateBlogRequest', updateBlogRequest);
208
+ const localVarPath = `/v1/blog/blogs/{blogId}`
209
+ .replace(`{${"blogId"}}`, encodeURIComponent(String(blogId)));
210
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
211
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
212
+ let baseOptions;
213
+ if (configuration) {
214
+ baseOptions = configuration.baseOptions;
215
+ }
216
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
217
+ const localVarHeaderParameter = {};
218
+ const localVarQueryParameter = {};
219
+ // authentication session-oauth required
220
+ // oauth required
221
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
222
+ // authentication api-key required
223
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
224
+ if (project !== undefined) {
225
+ localVarQueryParameter['project'] = project;
226
+ }
227
+ localVarHeaderParameter['Content-Type'] = 'application/json';
228
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
229
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
230
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
231
+ localVarRequestOptions.data = serializeDataIfNeeded(updateBlogRequest, localVarRequestOptions, configuration);
232
+ return {
233
+ url: toPathString(localVarUrlObj),
234
+ options: localVarRequestOptions,
235
+ };
236
+ }),
237
+ };
238
+ };
239
+ /**
240
+ * BlogApi - functional programming interface
241
+ * @export
242
+ */
243
+ export const BlogApiFp = function (configuration) {
244
+ const localVarAxiosParamCreator = BlogApiAxiosParamCreator(configuration);
245
+ return {
246
+ /**
247
+ *
248
+ * @summary Create a blog
249
+ * @param {string} project
250
+ * @param {CreateBlogRequest} createBlogRequest
251
+ * @param {*} [options] Override http request option.
252
+ * @throws {RequiredError}
253
+ */
254
+ createBlog(project, createBlogRequest, options) {
255
+ return __awaiter(this, void 0, void 0, function* () {
256
+ var _a, _b, _c;
257
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createBlog(project, createBlogRequest, options);
258
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
259
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BlogApi.createBlog']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
260
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
261
+ });
262
+ },
263
+ /**
264
+ *
265
+ * @summary Delete a blog
266
+ * @param {string} project
267
+ * @param {string} blogId
268
+ * @param {*} [options] Override http request option.
269
+ * @throws {RequiredError}
270
+ */
271
+ deleteBlog(project, blogId, options) {
272
+ return __awaiter(this, void 0, void 0, function* () {
273
+ var _a, _b, _c;
274
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteBlog(project, blogId, options);
275
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
276
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BlogApi.deleteBlog']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
277
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
278
+ });
279
+ },
280
+ /**
281
+ *
282
+ * @summary Get a blog
283
+ * @param {string} project
284
+ * @param {string} blogId
285
+ * @param {*} [options] Override http request option.
286
+ * @throws {RequiredError}
287
+ */
288
+ getBlog(project, blogId, options) {
289
+ return __awaiter(this, void 0, void 0, function* () {
290
+ var _a, _b, _c;
291
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getBlog(project, blogId, options);
292
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
293
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BlogApi.getBlog']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
294
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
295
+ });
296
+ },
297
+ /**
298
+ *
299
+ * @summary List blogs
300
+ * @param {string} project
301
+ * @param {*} [options] Override http request option.
302
+ * @throws {RequiredError}
303
+ */
304
+ listBlogs(project, options) {
305
+ return __awaiter(this, void 0, void 0, function* () {
306
+ var _a, _b, _c;
307
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listBlogs(project, options);
308
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
309
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BlogApi.listBlogs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
310
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
311
+ });
312
+ },
313
+ /**
314
+ *
315
+ * @summary Update a blog
316
+ * @param {string} project
317
+ * @param {string} blogId
318
+ * @param {UpdateBlogRequest} updateBlogRequest
319
+ * @param {*} [options] Override http request option.
320
+ * @throws {RequiredError}
321
+ */
322
+ updateBlog(project, blogId, updateBlogRequest, options) {
323
+ return __awaiter(this, void 0, void 0, function* () {
324
+ var _a, _b, _c;
325
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateBlog(project, blogId, updateBlogRequest, options);
326
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
327
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BlogApi.updateBlog']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
328
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
329
+ });
330
+ },
331
+ };
332
+ };
333
+ /**
334
+ * BlogApi - factory interface
335
+ * @export
336
+ */
337
+ export const BlogApiFactory = function (configuration, basePath, axios) {
338
+ const localVarFp = BlogApiFp(configuration);
339
+ return {
340
+ /**
341
+ *
342
+ * @summary Create a blog
343
+ * @param {BlogApiCreateBlogRequest} requestParameters Request parameters.
344
+ * @param {*} [options] Override http request option.
345
+ * @throws {RequiredError}
346
+ */
347
+ createBlog(requestParameters, options) {
348
+ return localVarFp.createBlog(requestParameters.project, requestParameters.createBlogRequest, options).then((request) => request(axios, basePath));
349
+ },
350
+ /**
351
+ *
352
+ * @summary Delete a blog
353
+ * @param {BlogApiDeleteBlogRequest} requestParameters Request parameters.
354
+ * @param {*} [options] Override http request option.
355
+ * @throws {RequiredError}
356
+ */
357
+ deleteBlog(requestParameters, options) {
358
+ return localVarFp.deleteBlog(requestParameters.project, requestParameters.blogId, options).then((request) => request(axios, basePath));
359
+ },
360
+ /**
361
+ *
362
+ * @summary Get a blog
363
+ * @param {BlogApiGetBlogRequest} requestParameters Request parameters.
364
+ * @param {*} [options] Override http request option.
365
+ * @throws {RequiredError}
366
+ */
367
+ getBlog(requestParameters, options) {
368
+ return localVarFp.getBlog(requestParameters.project, requestParameters.blogId, options).then((request) => request(axios, basePath));
369
+ },
370
+ /**
371
+ *
372
+ * @summary List blogs
373
+ * @param {BlogApiListBlogsRequest} requestParameters Request parameters.
374
+ * @param {*} [options] Override http request option.
375
+ * @throws {RequiredError}
376
+ */
377
+ listBlogs(requestParameters, options) {
378
+ return localVarFp.listBlogs(requestParameters.project, options).then((request) => request(axios, basePath));
379
+ },
380
+ /**
381
+ *
382
+ * @summary Update a blog
383
+ * @param {BlogApiUpdateBlogRequest} requestParameters Request parameters.
384
+ * @param {*} [options] Override http request option.
385
+ * @throws {RequiredError}
386
+ */
387
+ updateBlog(requestParameters, options) {
388
+ return localVarFp.updateBlog(requestParameters.project, requestParameters.blogId, requestParameters.updateBlogRequest, options).then((request) => request(axios, basePath));
389
+ },
390
+ };
391
+ };
392
+ /**
393
+ * BlogApi - object-oriented interface
394
+ * @export
395
+ * @class BlogApi
396
+ * @extends {BaseAPI}
397
+ */
398
+ export class BlogApi extends BaseAPI {
399
+ /**
400
+ *
401
+ * @summary Create a blog
402
+ * @param {BlogApiCreateBlogRequest} requestParameters Request parameters.
403
+ * @param {*} [options] Override http request option.
404
+ * @throws {RequiredError}
405
+ * @memberof BlogApi
406
+ */
407
+ createBlog(requestParameters, options) {
408
+ return BlogApiFp(this.configuration).createBlog(requestParameters.project, requestParameters.createBlogRequest, options).then((request) => request(this.axios, this.basePath));
409
+ }
410
+ /**
411
+ *
412
+ * @summary Delete a blog
413
+ * @param {BlogApiDeleteBlogRequest} requestParameters Request parameters.
414
+ * @param {*} [options] Override http request option.
415
+ * @throws {RequiredError}
416
+ * @memberof BlogApi
417
+ */
418
+ deleteBlog(requestParameters, options) {
419
+ return BlogApiFp(this.configuration).deleteBlog(requestParameters.project, requestParameters.blogId, options).then((request) => request(this.axios, this.basePath));
420
+ }
421
+ /**
422
+ *
423
+ * @summary Get a blog
424
+ * @param {BlogApiGetBlogRequest} requestParameters Request parameters.
425
+ * @param {*} [options] Override http request option.
426
+ * @throws {RequiredError}
427
+ * @memberof BlogApi
428
+ */
429
+ getBlog(requestParameters, options) {
430
+ return BlogApiFp(this.configuration).getBlog(requestParameters.project, requestParameters.blogId, options).then((request) => request(this.axios, this.basePath));
431
+ }
432
+ /**
433
+ *
434
+ * @summary List blogs
435
+ * @param {BlogApiListBlogsRequest} requestParameters Request parameters.
436
+ * @param {*} [options] Override http request option.
437
+ * @throws {RequiredError}
438
+ * @memberof BlogApi
439
+ */
440
+ listBlogs(requestParameters, options) {
441
+ return BlogApiFp(this.configuration).listBlogs(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
442
+ }
443
+ /**
444
+ *
445
+ * @summary Update a blog
446
+ * @param {BlogApiUpdateBlogRequest} requestParameters Request parameters.
447
+ * @param {*} [options] Override http request option.
448
+ * @throws {RequiredError}
449
+ * @memberof BlogApi
450
+ */
451
+ updateBlog(requestParameters, options) {
452
+ return BlogApiFp(this.configuration).updateBlog(requestParameters.project, requestParameters.blogId, requestParameters.updateBlogRequest, options).then((request) => request(this.axios, this.basePath));
453
+ }
454
+ }
@@ -0,0 +1,66 @@
1
+ /**
2
+ * Blog API
3
+ * Read and write blogs on the 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 {};
@@ -0,0 +1,60 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Blog API
5
+ * Read and write blogs on the 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
+ import globalAxios from 'axios';
15
+ export const BASE_PATH = "https://localhost:8080".replace(/\/+$/, "");
16
+ /**
17
+ *
18
+ * @export
19
+ */
20
+ export const COLLECTION_FORMATS = {
21
+ csv: ",",
22
+ ssv: " ",
23
+ tsv: "\t",
24
+ pipes: "|",
25
+ };
26
+ /**
27
+ *
28
+ * @export
29
+ * @class BaseAPI
30
+ */
31
+ export class BaseAPI {
32
+ constructor(configuration, basePath = BASE_PATH, axios = globalAxios) {
33
+ var _a;
34
+ this.basePath = basePath;
35
+ this.axios = axios;
36
+ if (configuration) {
37
+ this.configuration = configuration;
38
+ this.basePath = (_a = configuration.basePath) !== null && _a !== void 0 ? _a : basePath;
39
+ }
40
+ }
41
+ }
42
+ ;
43
+ /**
44
+ *
45
+ * @export
46
+ * @class RequiredError
47
+ * @extends {Error}
48
+ */
49
+ export class RequiredError extends Error {
50
+ constructor(field, msg) {
51
+ super(msg);
52
+ this.field = field;
53
+ this.name = "RequiredError";
54
+ }
55
+ }
56
+ /**
57
+ *
58
+ * @export
59
+ */
60
+ export const operationServerMap = {};
@@ -0,0 +1,65 @@
1
+ /**
2
+ * Blog API
3
+ * Read and write blogs on the 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 { RequestArgs } from "./base";
14
+ import type { AxiosInstance, AxiosResponse } from 'axios';
15
+ /**
16
+ *
17
+ * @export
18
+ */
19
+ export declare const DUMMY_BASE_URL = "https://example.com";
20
+ /**
21
+ *
22
+ * @throws {RequiredError}
23
+ * @export
24
+ */
25
+ export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void;
26
+ /**
27
+ *
28
+ * @export
29
+ */
30
+ export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise<void>;
31
+ /**
32
+ *
33
+ * @export
34
+ */
35
+ export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void;
36
+ /**
37
+ *
38
+ * @export
39
+ */
40
+ export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise<void>;
41
+ /**
42
+ *
43
+ * @export
44
+ */
45
+ export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise<void>;
46
+ /**
47
+ *
48
+ * @export
49
+ */
50
+ export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
51
+ /**
52
+ *
53
+ * @export
54
+ */
55
+ export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
56
+ /**
57
+ *
58
+ * @export
59
+ */
60
+ export declare const toPathString: (url: URL) => string;
61
+ /**
62
+ *
63
+ * @export
64
+ */
65
+ export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;