@teemill/blog 0.3.2 → 0.3.4
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.
- package/README.md +2 -2
- package/api.ts +1 -304
- package/base.ts +1 -25
- package/common.ts +1 -2
- package/configuration.ts +1 -18
- package/dist/api.d.ts +6 -309
- package/dist/api.js +1 -14
- package/dist/base.d.ts +1 -25
- package/dist/base.js +1 -20
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -18
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +6 -309
- package/dist/esm/api.js +1 -14
- package/dist/esm/base.d.ts +1 -25
- package/dist/esm/base.js +1 -20
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -18
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/index.ts +1 -1
- package/package.json +2 -2
package/dist/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Blog API
|
|
3
3
|
* Read and write blogs on the PodOS platform.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.3.
|
|
5
|
+
* The version of the OpenAPI document: 0.3.4
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -13,169 +13,37 @@ import type { Configuration } from './configuration';
|
|
|
13
13
|
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
import type { RequestArgs } from './base';
|
|
15
15
|
import { BaseAPI } from './base';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface ApiError
|
|
20
|
-
*/
|
|
21
16
|
export interface ApiError {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof ApiError
|
|
26
|
-
*/
|
|
27
17
|
'code'?: string;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof ApiError
|
|
32
|
-
*/
|
|
33
18
|
'message': string;
|
|
34
19
|
}
|
|
35
|
-
/**
|
|
36
|
-
*
|
|
37
|
-
* @export
|
|
38
|
-
* @interface Blog
|
|
39
|
-
*/
|
|
40
20
|
export interface Blog {
|
|
41
|
-
/**
|
|
42
|
-
*
|
|
43
|
-
* @type {string}
|
|
44
|
-
* @memberof Blog
|
|
45
|
-
*/
|
|
46
21
|
'id': string;
|
|
47
|
-
/**
|
|
48
|
-
*
|
|
49
|
-
* @type {string}
|
|
50
|
-
* @memberof Blog
|
|
51
|
-
*/
|
|
52
22
|
'title': string;
|
|
53
|
-
/**
|
|
54
|
-
*
|
|
55
|
-
* @type {string}
|
|
56
|
-
* @memberof Blog
|
|
57
|
-
*/
|
|
58
23
|
'slug': string;
|
|
59
|
-
/**
|
|
60
|
-
*
|
|
61
|
-
* @type {string}
|
|
62
|
-
* @memberof Blog
|
|
63
|
-
*/
|
|
64
24
|
'description': string;
|
|
65
|
-
/**
|
|
66
|
-
*
|
|
67
|
-
* @type {Array<string>}
|
|
68
|
-
* @memberof Blog
|
|
69
|
-
*/
|
|
70
25
|
'tags'?: Array<string>;
|
|
71
|
-
/**
|
|
72
|
-
*
|
|
73
|
-
* @type {string}
|
|
74
|
-
* @memberof Blog
|
|
75
|
-
*/
|
|
76
26
|
'metaImage': string | null;
|
|
77
|
-
/**
|
|
78
|
-
*
|
|
79
|
-
* @type {BlogListingType}
|
|
80
|
-
* @memberof Blog
|
|
81
|
-
*/
|
|
82
27
|
'type': BlogListingType;
|
|
83
|
-
/**
|
|
84
|
-
*
|
|
85
|
-
* @type {string}
|
|
86
|
-
* @memberof Blog
|
|
87
|
-
*/
|
|
88
28
|
'publishedAt': string | null;
|
|
89
|
-
/**
|
|
90
|
-
*
|
|
91
|
-
* @type {string}
|
|
92
|
-
* @memberof Blog
|
|
93
|
-
*/
|
|
94
29
|
'createdAt': string;
|
|
95
|
-
/**
|
|
96
|
-
*
|
|
97
|
-
* @type {string}
|
|
98
|
-
* @memberof Blog
|
|
99
|
-
*/
|
|
100
30
|
'updatedAt': string;
|
|
101
|
-
/**
|
|
102
|
-
*
|
|
103
|
-
* @type {string}
|
|
104
|
-
* @memberof Blog
|
|
105
|
-
*/
|
|
106
31
|
'content': string;
|
|
107
32
|
}
|
|
108
|
-
/**
|
|
109
|
-
*
|
|
110
|
-
* @export
|
|
111
|
-
* @interface BlogListing
|
|
112
|
-
*/
|
|
113
33
|
export interface BlogListing {
|
|
114
|
-
/**
|
|
115
|
-
*
|
|
116
|
-
* @type {string}
|
|
117
|
-
* @memberof BlogListing
|
|
118
|
-
*/
|
|
119
34
|
'id': string;
|
|
120
|
-
/**
|
|
121
|
-
*
|
|
122
|
-
* @type {string}
|
|
123
|
-
* @memberof BlogListing
|
|
124
|
-
*/
|
|
125
35
|
'title': string;
|
|
126
|
-
/**
|
|
127
|
-
*
|
|
128
|
-
* @type {string}
|
|
129
|
-
* @memberof BlogListing
|
|
130
|
-
*/
|
|
131
36
|
'slug': string;
|
|
132
|
-
/**
|
|
133
|
-
*
|
|
134
|
-
* @type {string}
|
|
135
|
-
* @memberof BlogListing
|
|
136
|
-
*/
|
|
137
37
|
'description': string;
|
|
138
|
-
/**
|
|
139
|
-
*
|
|
140
|
-
* @type {Array<string>}
|
|
141
|
-
* @memberof BlogListing
|
|
142
|
-
*/
|
|
143
38
|
'tags'?: Array<string>;
|
|
144
|
-
/**
|
|
145
|
-
*
|
|
146
|
-
* @type {string}
|
|
147
|
-
* @memberof BlogListing
|
|
148
|
-
*/
|
|
149
39
|
'metaImage': string | null;
|
|
150
|
-
/**
|
|
151
|
-
*
|
|
152
|
-
* @type {BlogListingType}
|
|
153
|
-
* @memberof BlogListing
|
|
154
|
-
*/
|
|
155
40
|
'type': BlogListingType;
|
|
156
|
-
/**
|
|
157
|
-
*
|
|
158
|
-
* @type {string}
|
|
159
|
-
* @memberof BlogListing
|
|
160
|
-
*/
|
|
161
41
|
'publishedAt': string | null;
|
|
162
|
-
/**
|
|
163
|
-
*
|
|
164
|
-
* @type {string}
|
|
165
|
-
* @memberof BlogListing
|
|
166
|
-
*/
|
|
167
42
|
'createdAt': string;
|
|
168
|
-
/**
|
|
169
|
-
*
|
|
170
|
-
* @type {string}
|
|
171
|
-
* @memberof BlogListing
|
|
172
|
-
*/
|
|
173
43
|
'updatedAt': string;
|
|
174
44
|
}
|
|
175
45
|
/**
|
|
176
46
|
* The type of blog. Project blogs are only visible to the project. Platform blogs are visible to all clients of the platform. Requires the Platform module to be installed. Parent platform blogs are published by the parent platform of the current project.
|
|
177
|
-
* @export
|
|
178
|
-
* @enum {string}
|
|
179
47
|
*/
|
|
180
48
|
export declare const BlogListingType: {
|
|
181
49
|
readonly Project: "project";
|
|
@@ -183,58 +51,16 @@ export declare const BlogListingType: {
|
|
|
183
51
|
readonly ParentPlatform: "parent-platform";
|
|
184
52
|
};
|
|
185
53
|
export type BlogListingType = typeof BlogListingType[keyof typeof BlogListingType];
|
|
186
|
-
/**
|
|
187
|
-
*
|
|
188
|
-
* @export
|
|
189
|
-
* @interface CreateBlogRequest
|
|
190
|
-
*/
|
|
191
54
|
export interface CreateBlogRequest {
|
|
192
|
-
/**
|
|
193
|
-
*
|
|
194
|
-
* @type {string}
|
|
195
|
-
* @memberof CreateBlogRequest
|
|
196
|
-
*/
|
|
197
55
|
'title': string;
|
|
198
|
-
/**
|
|
199
|
-
*
|
|
200
|
-
* @type {string}
|
|
201
|
-
* @memberof CreateBlogRequest
|
|
202
|
-
*/
|
|
203
56
|
'content': string;
|
|
204
|
-
/**
|
|
205
|
-
*
|
|
206
|
-
* @type {string}
|
|
207
|
-
* @memberof CreateBlogRequest
|
|
208
|
-
*/
|
|
209
57
|
'slug': string;
|
|
210
|
-
/**
|
|
211
|
-
*
|
|
212
|
-
* @type {string}
|
|
213
|
-
* @memberof CreateBlogRequest
|
|
214
|
-
*/
|
|
215
58
|
'description': string;
|
|
216
|
-
/**
|
|
217
|
-
*
|
|
218
|
-
* @type {Array<string>}
|
|
219
|
-
* @memberof CreateBlogRequest
|
|
220
|
-
*/
|
|
221
59
|
'tags'?: Array<string>;
|
|
222
|
-
/**
|
|
223
|
-
*
|
|
224
|
-
* @type {string}
|
|
225
|
-
* @memberof CreateBlogRequest
|
|
226
|
-
*/
|
|
227
60
|
'metaImage': string;
|
|
228
|
-
/**
|
|
229
|
-
*
|
|
230
|
-
* @type {boolean}
|
|
231
|
-
* @memberof CreateBlogRequest
|
|
232
|
-
*/
|
|
233
61
|
'published'?: boolean;
|
|
234
62
|
/**
|
|
235
63
|
* The type of blog. Project blogs are only visible to the project. Platform blogs are visible to all clients of the project\'s platform. Requires the Platform module to be installed.
|
|
236
|
-
* @type {string}
|
|
237
|
-
* @memberof CreateBlogRequest
|
|
238
64
|
*/
|
|
239
65
|
'type': CreateBlogRequestTypeEnum;
|
|
240
66
|
}
|
|
@@ -243,71 +69,20 @@ export declare const CreateBlogRequestTypeEnum: {
|
|
|
243
69
|
readonly Platform: "platform";
|
|
244
70
|
};
|
|
245
71
|
export type CreateBlogRequestTypeEnum = typeof CreateBlogRequestTypeEnum[keyof typeof CreateBlogRequestTypeEnum];
|
|
246
|
-
/**
|
|
247
|
-
*
|
|
248
|
-
* @export
|
|
249
|
-
* @interface ListBlogsResponse
|
|
250
|
-
*/
|
|
251
72
|
export interface ListBlogsResponse {
|
|
252
|
-
/**
|
|
253
|
-
*
|
|
254
|
-
* @type {Array<BlogListing>}
|
|
255
|
-
* @memberof ListBlogsResponse
|
|
256
|
-
*/
|
|
257
73
|
'blogs': Array<BlogListing>;
|
|
258
74
|
}
|
|
259
|
-
/**
|
|
260
|
-
*
|
|
261
|
-
* @export
|
|
262
|
-
* @interface UpdateBlogRequest
|
|
263
|
-
*/
|
|
264
75
|
export interface UpdateBlogRequest {
|
|
265
|
-
/**
|
|
266
|
-
*
|
|
267
|
-
* @type {string}
|
|
268
|
-
* @memberof UpdateBlogRequest
|
|
269
|
-
*/
|
|
270
76
|
'title'?: string;
|
|
271
|
-
/**
|
|
272
|
-
*
|
|
273
|
-
* @type {string}
|
|
274
|
-
* @memberof UpdateBlogRequest
|
|
275
|
-
*/
|
|
276
77
|
'content'?: string;
|
|
277
|
-
/**
|
|
278
|
-
*
|
|
279
|
-
* @type {string}
|
|
280
|
-
* @memberof UpdateBlogRequest
|
|
281
|
-
*/
|
|
282
78
|
'slug'?: string;
|
|
283
|
-
/**
|
|
284
|
-
*
|
|
285
|
-
* @type {string}
|
|
286
|
-
* @memberof UpdateBlogRequest
|
|
287
|
-
*/
|
|
288
79
|
'description'?: string;
|
|
289
|
-
/**
|
|
290
|
-
*
|
|
291
|
-
* @type {Array<string>}
|
|
292
|
-
* @memberof UpdateBlogRequest
|
|
293
|
-
*/
|
|
294
80
|
'tags'?: Array<string>;
|
|
295
|
-
/**
|
|
296
|
-
*
|
|
297
|
-
* @type {string}
|
|
298
|
-
* @memberof UpdateBlogRequest
|
|
299
|
-
*/
|
|
300
81
|
'metaImage'?: string;
|
|
301
|
-
/**
|
|
302
|
-
*
|
|
303
|
-
* @type {boolean}
|
|
304
|
-
* @memberof UpdateBlogRequest
|
|
305
|
-
*/
|
|
306
82
|
'published'?: boolean;
|
|
307
83
|
}
|
|
308
84
|
/**
|
|
309
85
|
* BlogApi - axios parameter creator
|
|
310
|
-
* @export
|
|
311
86
|
*/
|
|
312
87
|
export declare const BlogApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
313
88
|
/**
|
|
@@ -362,7 +137,6 @@ export declare const BlogApiAxiosParamCreator: (configuration?: Configuration) =
|
|
|
362
137
|
};
|
|
363
138
|
/**
|
|
364
139
|
* BlogApi - functional programming interface
|
|
365
|
-
* @export
|
|
366
140
|
*/
|
|
367
141
|
export declare const BlogApiFp: (configuration?: Configuration) => {
|
|
368
142
|
/**
|
|
@@ -417,7 +191,6 @@ export declare const BlogApiFp: (configuration?: Configuration) => {
|
|
|
417
191
|
};
|
|
418
192
|
/**
|
|
419
193
|
* BlogApi - factory interface
|
|
420
|
-
* @export
|
|
421
194
|
*/
|
|
422
195
|
export declare const BlogApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
423
196
|
/**
|
|
@@ -463,128 +236,57 @@ export declare const BlogApiFactory: (configuration?: Configuration, basePath?:
|
|
|
463
236
|
};
|
|
464
237
|
/**
|
|
465
238
|
* Request parameters for createBlog operation in BlogApi.
|
|
466
|
-
* @export
|
|
467
|
-
* @interface BlogApiCreateBlogRequest
|
|
468
239
|
*/
|
|
469
240
|
export interface BlogApiCreateBlogRequest {
|
|
470
|
-
/**
|
|
471
|
-
*
|
|
472
|
-
* @type {string}
|
|
473
|
-
* @memberof BlogApiCreateBlog
|
|
474
|
-
*/
|
|
475
241
|
readonly project: string;
|
|
476
|
-
/**
|
|
477
|
-
*
|
|
478
|
-
* @type {CreateBlogRequest}
|
|
479
|
-
* @memberof BlogApiCreateBlog
|
|
480
|
-
*/
|
|
481
242
|
readonly createBlogRequest: CreateBlogRequest;
|
|
482
243
|
}
|
|
483
244
|
/**
|
|
484
245
|
* Request parameters for deleteBlog operation in BlogApi.
|
|
485
|
-
* @export
|
|
486
|
-
* @interface BlogApiDeleteBlogRequest
|
|
487
246
|
*/
|
|
488
247
|
export interface BlogApiDeleteBlogRequest {
|
|
489
|
-
/**
|
|
490
|
-
*
|
|
491
|
-
* @type {string}
|
|
492
|
-
* @memberof BlogApiDeleteBlog
|
|
493
|
-
*/
|
|
494
248
|
readonly project: string;
|
|
495
|
-
/**
|
|
496
|
-
*
|
|
497
|
-
* @type {string}
|
|
498
|
-
* @memberof BlogApiDeleteBlog
|
|
499
|
-
*/
|
|
500
249
|
readonly blogId: string;
|
|
501
250
|
}
|
|
502
251
|
/**
|
|
503
252
|
* Request parameters for getBlog operation in BlogApi.
|
|
504
|
-
* @export
|
|
505
|
-
* @interface BlogApiGetBlogRequest
|
|
506
253
|
*/
|
|
507
254
|
export interface BlogApiGetBlogRequest {
|
|
508
|
-
/**
|
|
509
|
-
*
|
|
510
|
-
* @type {string}
|
|
511
|
-
* @memberof BlogApiGetBlog
|
|
512
|
-
*/
|
|
513
255
|
readonly project: string;
|
|
514
|
-
/**
|
|
515
|
-
*
|
|
516
|
-
* @type {string}
|
|
517
|
-
* @memberof BlogApiGetBlog
|
|
518
|
-
*/
|
|
519
256
|
readonly blogId: string;
|
|
520
257
|
}
|
|
521
258
|
/**
|
|
522
259
|
* Request parameters for listBlogs operation in BlogApi.
|
|
523
|
-
* @export
|
|
524
|
-
* @interface BlogApiListBlogsRequest
|
|
525
260
|
*/
|
|
526
261
|
export interface BlogApiListBlogsRequest {
|
|
527
|
-
/**
|
|
528
|
-
*
|
|
529
|
-
* @type {string}
|
|
530
|
-
* @memberof BlogApiListBlogs
|
|
531
|
-
*/
|
|
532
262
|
readonly project: string;
|
|
533
263
|
/**
|
|
534
264
|
* Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
535
|
-
* @type {number}
|
|
536
|
-
* @memberof BlogApiListBlogs
|
|
537
265
|
*/
|
|
538
266
|
readonly pageSize?: number;
|
|
539
267
|
/**
|
|
540
268
|
* Page reference token
|
|
541
|
-
* @type {number}
|
|
542
|
-
* @memberof BlogApiListBlogs
|
|
543
269
|
*/
|
|
544
270
|
readonly pageToken?: number;
|
|
545
271
|
/**
|
|
546
272
|
* An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending.
|
|
547
|
-
* @type {Array<string>}
|
|
548
|
-
* @memberof BlogApiListBlogs
|
|
549
273
|
*/
|
|
550
274
|
readonly sortBy?: Array<string>;
|
|
551
275
|
/**
|
|
552
276
|
* Search term to filter results
|
|
553
|
-
* @type {string}
|
|
554
|
-
* @memberof BlogApiListBlogs
|
|
555
277
|
*/
|
|
556
278
|
readonly search?: string;
|
|
557
279
|
}
|
|
558
280
|
/**
|
|
559
281
|
* Request parameters for updateBlog operation in BlogApi.
|
|
560
|
-
* @export
|
|
561
|
-
* @interface BlogApiUpdateBlogRequest
|
|
562
282
|
*/
|
|
563
283
|
export interface BlogApiUpdateBlogRequest {
|
|
564
|
-
/**
|
|
565
|
-
*
|
|
566
|
-
* @type {string}
|
|
567
|
-
* @memberof BlogApiUpdateBlog
|
|
568
|
-
*/
|
|
569
284
|
readonly project: string;
|
|
570
|
-
/**
|
|
571
|
-
*
|
|
572
|
-
* @type {string}
|
|
573
|
-
* @memberof BlogApiUpdateBlog
|
|
574
|
-
*/
|
|
575
285
|
readonly blogId: string;
|
|
576
|
-
/**
|
|
577
|
-
*
|
|
578
|
-
* @type {UpdateBlogRequest}
|
|
579
|
-
* @memberof BlogApiUpdateBlog
|
|
580
|
-
*/
|
|
581
286
|
readonly updateBlogRequest: UpdateBlogRequest;
|
|
582
287
|
}
|
|
583
288
|
/**
|
|
584
289
|
* BlogApi - object-oriented interface
|
|
585
|
-
* @export
|
|
586
|
-
* @class BlogApi
|
|
587
|
-
* @extends {BaseAPI}
|
|
588
290
|
*/
|
|
589
291
|
export declare class BlogApi extends BaseAPI {
|
|
590
292
|
/**
|
|
@@ -593,43 +295,38 @@ export declare class BlogApi extends BaseAPI {
|
|
|
593
295
|
* @param {BlogApiCreateBlogRequest} requestParameters Request parameters.
|
|
594
296
|
* @param {*} [options] Override http request option.
|
|
595
297
|
* @throws {RequiredError}
|
|
596
|
-
* @memberof BlogApi
|
|
597
298
|
*/
|
|
598
|
-
createBlog(requestParameters: BlogApiCreateBlogRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Blog, any>>;
|
|
299
|
+
createBlog(requestParameters: BlogApiCreateBlogRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Blog, any, {}>>;
|
|
599
300
|
/**
|
|
600
301
|
*
|
|
601
302
|
* @summary Delete a blog
|
|
602
303
|
* @param {BlogApiDeleteBlogRequest} requestParameters Request parameters.
|
|
603
304
|
* @param {*} [options] Override http request option.
|
|
604
305
|
* @throws {RequiredError}
|
|
605
|
-
* @memberof BlogApi
|
|
606
306
|
*/
|
|
607
|
-
deleteBlog(requestParameters: BlogApiDeleteBlogRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
307
|
+
deleteBlog(requestParameters: BlogApiDeleteBlogRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
608
308
|
/**
|
|
609
309
|
*
|
|
610
310
|
* @summary Get a blog
|
|
611
311
|
* @param {BlogApiGetBlogRequest} requestParameters Request parameters.
|
|
612
312
|
* @param {*} [options] Override http request option.
|
|
613
313
|
* @throws {RequiredError}
|
|
614
|
-
* @memberof BlogApi
|
|
615
314
|
*/
|
|
616
|
-
getBlog(requestParameters: BlogApiGetBlogRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Blog, any>>;
|
|
315
|
+
getBlog(requestParameters: BlogApiGetBlogRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Blog, any, {}>>;
|
|
617
316
|
/**
|
|
618
317
|
*
|
|
619
318
|
* @summary List blogs
|
|
620
319
|
* @param {BlogApiListBlogsRequest} requestParameters Request parameters.
|
|
621
320
|
* @param {*} [options] Override http request option.
|
|
622
321
|
* @throws {RequiredError}
|
|
623
|
-
* @memberof BlogApi
|
|
624
322
|
*/
|
|
625
|
-
listBlogs(requestParameters: BlogApiListBlogsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBlogsResponse, any>>;
|
|
323
|
+
listBlogs(requestParameters: BlogApiListBlogsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBlogsResponse, any, {}>>;
|
|
626
324
|
/**
|
|
627
325
|
*
|
|
628
326
|
* @summary Update a blog
|
|
629
327
|
* @param {BlogApiUpdateBlogRequest} requestParameters Request parameters.
|
|
630
328
|
* @param {*} [options] Override http request option.
|
|
631
329
|
* @throws {RequiredError}
|
|
632
|
-
* @memberof BlogApi
|
|
633
330
|
*/
|
|
634
|
-
updateBlog(requestParameters: BlogApiUpdateBlogRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Blog, any>>;
|
|
331
|
+
updateBlog(requestParameters: BlogApiUpdateBlogRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Blog, any, {}>>;
|
|
635
332
|
}
|
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Blog API
|
|
6
6
|
* Read and write blogs on the PodOS platform.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.3.
|
|
8
|
+
* The version of the OpenAPI document: 0.3.4
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -31,8 +31,6 @@ const common_1 = require("./common");
|
|
|
31
31
|
const base_1 = require("./base");
|
|
32
32
|
/**
|
|
33
33
|
* The type of blog. Project blogs are only visible to the project. Platform blogs are visible to all clients of the platform. Requires the Platform module to be installed. Parent platform blogs are published by the parent platform of the current project.
|
|
34
|
-
* @export
|
|
35
|
-
* @enum {string}
|
|
36
34
|
*/
|
|
37
35
|
exports.BlogListingType = {
|
|
38
36
|
Project: 'project',
|
|
@@ -45,7 +43,6 @@ exports.CreateBlogRequestTypeEnum = {
|
|
|
45
43
|
};
|
|
46
44
|
/**
|
|
47
45
|
* BlogApi - axios parameter creator
|
|
48
|
-
* @export
|
|
49
46
|
*/
|
|
50
47
|
const BlogApiAxiosParamCreator = function (configuration) {
|
|
51
48
|
return {
|
|
@@ -272,7 +269,6 @@ const BlogApiAxiosParamCreator = function (configuration) {
|
|
|
272
269
|
exports.BlogApiAxiosParamCreator = BlogApiAxiosParamCreator;
|
|
273
270
|
/**
|
|
274
271
|
* BlogApi - functional programming interface
|
|
275
|
-
* @export
|
|
276
272
|
*/
|
|
277
273
|
const BlogApiFp = function (configuration) {
|
|
278
274
|
const localVarAxiosParamCreator = (0, exports.BlogApiAxiosParamCreator)(configuration);
|
|
@@ -371,7 +367,6 @@ const BlogApiFp = function (configuration) {
|
|
|
371
367
|
exports.BlogApiFp = BlogApiFp;
|
|
372
368
|
/**
|
|
373
369
|
* BlogApi - factory interface
|
|
374
|
-
* @export
|
|
375
370
|
*/
|
|
376
371
|
const BlogApiFactory = function (configuration, basePath, axios) {
|
|
377
372
|
const localVarFp = (0, exports.BlogApiFp)(configuration);
|
|
@@ -431,9 +426,6 @@ const BlogApiFactory = function (configuration, basePath, axios) {
|
|
|
431
426
|
exports.BlogApiFactory = BlogApiFactory;
|
|
432
427
|
/**
|
|
433
428
|
* BlogApi - object-oriented interface
|
|
434
|
-
* @export
|
|
435
|
-
* @class BlogApi
|
|
436
|
-
* @extends {BaseAPI}
|
|
437
429
|
*/
|
|
438
430
|
class BlogApi extends base_1.BaseAPI {
|
|
439
431
|
/**
|
|
@@ -442,7 +434,6 @@ class BlogApi extends base_1.BaseAPI {
|
|
|
442
434
|
* @param {BlogApiCreateBlogRequest} requestParameters Request parameters.
|
|
443
435
|
* @param {*} [options] Override http request option.
|
|
444
436
|
* @throws {RequiredError}
|
|
445
|
-
* @memberof BlogApi
|
|
446
437
|
*/
|
|
447
438
|
createBlog(requestParameters, options) {
|
|
448
439
|
return (0, exports.BlogApiFp)(this.configuration).createBlog(requestParameters.project, requestParameters.createBlogRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -453,7 +444,6 @@ class BlogApi extends base_1.BaseAPI {
|
|
|
453
444
|
* @param {BlogApiDeleteBlogRequest} requestParameters Request parameters.
|
|
454
445
|
* @param {*} [options] Override http request option.
|
|
455
446
|
* @throws {RequiredError}
|
|
456
|
-
* @memberof BlogApi
|
|
457
447
|
*/
|
|
458
448
|
deleteBlog(requestParameters, options) {
|
|
459
449
|
return (0, exports.BlogApiFp)(this.configuration).deleteBlog(requestParameters.project, requestParameters.blogId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -464,7 +454,6 @@ class BlogApi extends base_1.BaseAPI {
|
|
|
464
454
|
* @param {BlogApiGetBlogRequest} requestParameters Request parameters.
|
|
465
455
|
* @param {*} [options] Override http request option.
|
|
466
456
|
* @throws {RequiredError}
|
|
467
|
-
* @memberof BlogApi
|
|
468
457
|
*/
|
|
469
458
|
getBlog(requestParameters, options) {
|
|
470
459
|
return (0, exports.BlogApiFp)(this.configuration).getBlog(requestParameters.project, requestParameters.blogId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -475,7 +464,6 @@ class BlogApi extends base_1.BaseAPI {
|
|
|
475
464
|
* @param {BlogApiListBlogsRequest} requestParameters Request parameters.
|
|
476
465
|
* @param {*} [options] Override http request option.
|
|
477
466
|
* @throws {RequiredError}
|
|
478
|
-
* @memberof BlogApi
|
|
479
467
|
*/
|
|
480
468
|
listBlogs(requestParameters, options) {
|
|
481
469
|
return (0, exports.BlogApiFp)(this.configuration).listBlogs(requestParameters.project, requestParameters.pageSize, requestParameters.pageToken, requestParameters.sortBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -486,7 +474,6 @@ class BlogApi extends base_1.BaseAPI {
|
|
|
486
474
|
* @param {BlogApiUpdateBlogRequest} requestParameters Request parameters.
|
|
487
475
|
* @param {*} [options] Override http request option.
|
|
488
476
|
* @throws {RequiredError}
|
|
489
|
-
* @memberof BlogApi
|
|
490
477
|
*/
|
|
491
478
|
updateBlog(requestParameters, options) {
|
|
492
479
|
return (0, exports.BlogApiFp)(this.configuration).updateBlog(requestParameters.project, requestParameters.blogId, requestParameters.updateBlogRequest, options).then((request) => request(this.axios, this.basePath));
|
package/dist/base.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Blog API
|
|
3
3
|
* Read and write blogs on the PodOS platform.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.3.
|
|
5
|
+
* The version of the OpenAPI document: 0.3.4
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -12,42 +12,22 @@
|
|
|
12
12
|
import type { Configuration } from './configuration';
|
|
13
13
|
import type { AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
export declare const BASE_PATH: string;
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @export
|
|
18
|
-
*/
|
|
19
15
|
export declare const COLLECTION_FORMATS: {
|
|
20
16
|
csv: string;
|
|
21
17
|
ssv: string;
|
|
22
18
|
tsv: string;
|
|
23
19
|
pipes: string;
|
|
24
20
|
};
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @export
|
|
28
|
-
* @interface RequestArgs
|
|
29
|
-
*/
|
|
30
21
|
export interface RequestArgs {
|
|
31
22
|
url: string;
|
|
32
23
|
options: RawAxiosRequestConfig;
|
|
33
24
|
}
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @export
|
|
37
|
-
* @class BaseAPI
|
|
38
|
-
*/
|
|
39
25
|
export declare class BaseAPI {
|
|
40
26
|
protected basePath: string;
|
|
41
27
|
protected axios: AxiosInstance;
|
|
42
28
|
protected configuration: Configuration | undefined;
|
|
43
29
|
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
44
30
|
}
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @export
|
|
48
|
-
* @class RequiredError
|
|
49
|
-
* @extends {Error}
|
|
50
|
-
*/
|
|
51
31
|
export declare class RequiredError extends Error {
|
|
52
32
|
field: string;
|
|
53
33
|
constructor(field: string, msg?: string);
|
|
@@ -58,9 +38,5 @@ interface ServerMap {
|
|
|
58
38
|
description: string;
|
|
59
39
|
}[];
|
|
60
40
|
}
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @export
|
|
64
|
-
*/
|
|
65
41
|
export declare const operationServerMap: ServerMap;
|
|
66
42
|
export {};
|
package/dist/base.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Blog API
|
|
6
6
|
* Read and write blogs on the PodOS platform.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.3.
|
|
8
|
+
* The version of the OpenAPI document: 0.3.4
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -16,21 +16,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
16
16
|
exports.operationServerMap = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
|
17
17
|
const axios_1 = require("axios");
|
|
18
18
|
exports.BASE_PATH = "https://localhost:8080".replace(/\/+$/, "");
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @export
|
|
22
|
-
*/
|
|
23
19
|
exports.COLLECTION_FORMATS = {
|
|
24
20
|
csv: ",",
|
|
25
21
|
ssv: " ",
|
|
26
22
|
tsv: "\t",
|
|
27
23
|
pipes: "|",
|
|
28
24
|
};
|
|
29
|
-
/**
|
|
30
|
-
*
|
|
31
|
-
* @export
|
|
32
|
-
* @class BaseAPI
|
|
33
|
-
*/
|
|
34
25
|
class BaseAPI {
|
|
35
26
|
constructor(configuration, basePath = exports.BASE_PATH, axios = axios_1.default) {
|
|
36
27
|
var _a;
|
|
@@ -44,12 +35,6 @@ class BaseAPI {
|
|
|
44
35
|
}
|
|
45
36
|
exports.BaseAPI = BaseAPI;
|
|
46
37
|
;
|
|
47
|
-
/**
|
|
48
|
-
*
|
|
49
|
-
* @export
|
|
50
|
-
* @class RequiredError
|
|
51
|
-
* @extends {Error}
|
|
52
|
-
*/
|
|
53
38
|
class RequiredError extends Error {
|
|
54
39
|
constructor(field, msg) {
|
|
55
40
|
super(msg);
|
|
@@ -58,8 +43,4 @@ class RequiredError extends Error {
|
|
|
58
43
|
}
|
|
59
44
|
}
|
|
60
45
|
exports.RequiredError = RequiredError;
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @export
|
|
64
|
-
*/
|
|
65
46
|
exports.operationServerMap = {};
|
package/dist/common.d.ts
CHANGED