@teemill/blog 0.3.2 → 0.3.3

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/dist/common.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.2
8
+ * The version of the OpenAPI document: 0.3.3
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.2
5
+ * The version of the OpenAPI document: 0.3.3
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -23,49 +23,32 @@ export declare class Configuration {
23
23
  /**
24
24
  * parameter for apiKey security
25
25
  * @param name security name
26
- * @memberof Configuration
27
26
  */
28
27
  apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
29
28
  /**
30
29
  * parameter for basic security
31
- *
32
- * @type {string}
33
- * @memberof Configuration
34
30
  */
35
31
  username?: string;
36
32
  /**
37
33
  * parameter for basic security
38
- *
39
- * @type {string}
40
- * @memberof Configuration
41
34
  */
42
35
  password?: string;
43
36
  /**
44
37
  * parameter for oauth2 security
45
38
  * @param name security name
46
39
  * @param scopes oauth2 scope
47
- * @memberof Configuration
48
40
  */
49
41
  accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
50
42
  /**
51
43
  * override base path
52
- *
53
- * @type {string}
54
- * @memberof Configuration
55
44
  */
56
45
  basePath?: string;
57
46
  /**
58
47
  * override server index
59
- *
60
- * @type {number}
61
- * @memberof Configuration
62
48
  */
63
49
  serverIndex?: number;
64
50
  /**
65
51
  * base options for axios calls
66
- *
67
- * @type {any}
68
- * @memberof Configuration
69
52
  */
70
53
  baseOptions?: any;
71
54
  /**
@@ -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.2
8
+ * The version of the OpenAPI document: 0.3.3
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/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.2
5
+ * The version of the OpenAPI document: 0.3.3
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 \&#39;-\&#39; for descending order or \&#39;+\&#39; 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/esm/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Blog API
5
5
  * Read and write blogs on the PodOS platform.
6
6
  *
7
- * The version of the OpenAPI document: 0.3.2
7
+ * The version of the OpenAPI document: 0.3.3
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -28,8 +28,6 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setOAuthToObject,
28
28
  import { BASE_PATH, BaseAPI, operationServerMap } from './base';
29
29
  /**
30
30
  * 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.
31
- * @export
32
- * @enum {string}
33
31
  */
34
32
  export const BlogListingType = {
35
33
  Project: 'project',
@@ -42,7 +40,6 @@ export const CreateBlogRequestTypeEnum = {
42
40
  };
43
41
  /**
44
42
  * BlogApi - axios parameter creator
45
- * @export
46
43
  */
47
44
  export const BlogApiAxiosParamCreator = function (configuration) {
48
45
  return {
@@ -268,7 +265,6 @@ export const BlogApiAxiosParamCreator = function (configuration) {
268
265
  };
269
266
  /**
270
267
  * BlogApi - functional programming interface
271
- * @export
272
268
  */
273
269
  export const BlogApiFp = function (configuration) {
274
270
  const localVarAxiosParamCreator = BlogApiAxiosParamCreator(configuration);
@@ -366,7 +362,6 @@ export const BlogApiFp = function (configuration) {
366
362
  };
367
363
  /**
368
364
  * BlogApi - factory interface
369
- * @export
370
365
  */
371
366
  export const BlogApiFactory = function (configuration, basePath, axios) {
372
367
  const localVarFp = BlogApiFp(configuration);
@@ -425,9 +420,6 @@ export const BlogApiFactory = function (configuration, basePath, axios) {
425
420
  };
426
421
  /**
427
422
  * BlogApi - object-oriented interface
428
- * @export
429
- * @class BlogApi
430
- * @extends {BaseAPI}
431
423
  */
432
424
  export class BlogApi extends BaseAPI {
433
425
  /**
@@ -436,7 +428,6 @@ export class BlogApi extends BaseAPI {
436
428
  * @param {BlogApiCreateBlogRequest} requestParameters Request parameters.
437
429
  * @param {*} [options] Override http request option.
438
430
  * @throws {RequiredError}
439
- * @memberof BlogApi
440
431
  */
441
432
  createBlog(requestParameters, options) {
442
433
  return BlogApiFp(this.configuration).createBlog(requestParameters.project, requestParameters.createBlogRequest, options).then((request) => request(this.axios, this.basePath));
@@ -447,7 +438,6 @@ export class BlogApi extends BaseAPI {
447
438
  * @param {BlogApiDeleteBlogRequest} requestParameters Request parameters.
448
439
  * @param {*} [options] Override http request option.
449
440
  * @throws {RequiredError}
450
- * @memberof BlogApi
451
441
  */
452
442
  deleteBlog(requestParameters, options) {
453
443
  return BlogApiFp(this.configuration).deleteBlog(requestParameters.project, requestParameters.blogId, options).then((request) => request(this.axios, this.basePath));
@@ -458,7 +448,6 @@ export class BlogApi extends BaseAPI {
458
448
  * @param {BlogApiGetBlogRequest} requestParameters Request parameters.
459
449
  * @param {*} [options] Override http request option.
460
450
  * @throws {RequiredError}
461
- * @memberof BlogApi
462
451
  */
463
452
  getBlog(requestParameters, options) {
464
453
  return BlogApiFp(this.configuration).getBlog(requestParameters.project, requestParameters.blogId, options).then((request) => request(this.axios, this.basePath));
@@ -469,7 +458,6 @@ export class BlogApi extends BaseAPI {
469
458
  * @param {BlogApiListBlogsRequest} requestParameters Request parameters.
470
459
  * @param {*} [options] Override http request option.
471
460
  * @throws {RequiredError}
472
- * @memberof BlogApi
473
461
  */
474
462
  listBlogs(requestParameters, options) {
475
463
  return BlogApiFp(this.configuration).listBlogs(requestParameters.project, requestParameters.pageSize, requestParameters.pageToken, requestParameters.sortBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
@@ -480,7 +468,6 @@ export class BlogApi extends BaseAPI {
480
468
  * @param {BlogApiUpdateBlogRequest} requestParameters Request parameters.
481
469
  * @param {*} [options] Override http request option.
482
470
  * @throws {RequiredError}
483
- * @memberof BlogApi
484
471
  */
485
472
  updateBlog(requestParameters, options) {
486
473
  return BlogApiFp(this.configuration).updateBlog(requestParameters.project, requestParameters.blogId, requestParameters.updateBlogRequest, options).then((request) => request(this.axios, this.basePath));