@teemill/blog 0.1.1 → 0.3.0

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.
@@ -1,6 +1,5 @@
1
1
  .gitignore
2
2
  .npmignore
3
- .openapi-generator-ignore
4
3
  README.md
5
4
  api.ts
6
5
  base.ts
@@ -1 +1 @@
1
- 7.7.0
1
+ 7.8.0
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @teemill/blog@0.1.1
1
+ ## @teemill/blog@0.3.0
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @teemill/blog@0.1.1 --save
39
+ npm install @teemill/blog@0.3.0 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
package/api.ts CHANGED
@@ -2,10 +2,10 @@
2
2
  /* eslint-disable */
3
3
  /**
4
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)
5
+ * Read and write blogs on the PodOS platform.
6
6
  *
7
- * The version of the OpenAPI document: 0.1.1
8
- * Contact: hello@teemill.com
7
+ * The version of the OpenAPI document: 0.3.0
8
+ *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
@@ -72,12 +72,24 @@ export interface Blog {
72
72
  * @memberof Blog
73
73
  */
74
74
  'description': string;
75
+ /**
76
+ *
77
+ * @type {Array<string>}
78
+ * @memberof Blog
79
+ */
80
+ 'tags'?: Array<string>;
75
81
  /**
76
82
  *
77
83
  * @type {string}
78
84
  * @memberof Blog
79
85
  */
80
86
  'metaImage': string | null;
87
+ /**
88
+ *
89
+ * @type {BlogListingType}
90
+ * @memberof Blog
91
+ */
92
+ 'type': BlogListingType;
81
93
  /**
82
94
  *
83
95
  * @type {string}
@@ -103,6 +115,8 @@ export interface Blog {
103
115
  */
104
116
  'content': string;
105
117
  }
118
+
119
+
106
120
  /**
107
121
  *
108
122
  * @export
@@ -133,12 +147,24 @@ export interface BlogListing {
133
147
  * @memberof BlogListing
134
148
  */
135
149
  'description': string;
150
+ /**
151
+ *
152
+ * @type {Array<string>}
153
+ * @memberof BlogListing
154
+ */
155
+ 'tags'?: Array<string>;
136
156
  /**
137
157
  *
138
158
  * @type {string}
139
159
  * @memberof BlogListing
140
160
  */
141
161
  'metaImage': string | null;
162
+ /**
163
+ *
164
+ * @type {BlogListingType}
165
+ * @memberof BlogListing
166
+ */
167
+ 'type': BlogListingType;
142
168
  /**
143
169
  *
144
170
  * @type {string}
@@ -158,6 +184,23 @@ export interface BlogListing {
158
184
  */
159
185
  'updatedAt': string;
160
186
  }
187
+
188
+
189
+ /**
190
+ * 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.
191
+ * @export
192
+ * @enum {string}
193
+ */
194
+
195
+ export const BlogListingType = {
196
+ Project: 'project',
197
+ Platform: 'platform',
198
+ ParentPlatform: 'parent-platform'
199
+ } as const;
200
+
201
+ export type BlogListingType = typeof BlogListingType[keyof typeof BlogListingType];
202
+
203
+
161
204
  /**
162
205
  *
163
206
  * @export
@@ -188,6 +231,12 @@ export interface CreateBlogRequest {
188
231
  * @memberof CreateBlogRequest
189
232
  */
190
233
  'description': string;
234
+ /**
235
+ *
236
+ * @type {Array<string>}
237
+ * @memberof CreateBlogRequest
238
+ */
239
+ 'tags'?: Array<string>;
191
240
  /**
192
241
  *
193
242
  * @type {string}
@@ -200,7 +249,21 @@ export interface CreateBlogRequest {
200
249
  * @memberof CreateBlogRequest
201
250
  */
202
251
  'published'?: boolean;
252
+ /**
253
+ * 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.
254
+ * @type {string}
255
+ * @memberof CreateBlogRequest
256
+ */
257
+ 'type': CreateBlogRequestTypeEnum;
203
258
  }
259
+
260
+ export const CreateBlogRequestTypeEnum = {
261
+ Project: 'project',
262
+ Platform: 'platform'
263
+ } as const;
264
+
265
+ export type CreateBlogRequestTypeEnum = typeof CreateBlogRequestTypeEnum[keyof typeof CreateBlogRequestTypeEnum];
266
+
204
267
  /**
205
268
  *
206
269
  * @export
@@ -244,6 +307,12 @@ export interface UpdateBlogRequest {
244
307
  * @memberof UpdateBlogRequest
245
308
  */
246
309
  'description'?: string;
310
+ /**
311
+ *
312
+ * @type {Array<string>}
313
+ * @memberof UpdateBlogRequest
314
+ */
315
+ 'tags'?: Array<string>;
247
316
  /**
248
317
  *
249
318
  * @type {string}
@@ -414,10 +483,14 @@ export const BlogApiAxiosParamCreator = function (configuration?: Configuration)
414
483
  *
415
484
  * @summary List blogs
416
485
  * @param {string} project
486
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
487
+ * @param {number} [pageToken] Page reference token
488
+ * @param {Array<string>} [sortBy] An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending.
489
+ * @param {string} [search] Search term to filter results
417
490
  * @param {*} [options] Override http request option.
418
491
  * @throws {RequiredError}
419
492
  */
420
- listBlogs: async (project: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
493
+ listBlogs: async (project: string, pageSize?: number, pageToken?: number, sortBy?: Array<string>, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
421
494
  // verify required parameter 'project' is not null or undefined
422
495
  assertParamExists('listBlogs', 'project', project)
423
496
  const localVarPath = `/v1/blog/blogs`;
@@ -443,6 +516,22 @@ export const BlogApiAxiosParamCreator = function (configuration?: Configuration)
443
516
  localVarQueryParameter['project'] = project;
444
517
  }
445
518
 
519
+ if (pageSize !== undefined) {
520
+ localVarQueryParameter['pageSize'] = pageSize;
521
+ }
522
+
523
+ if (pageToken !== undefined) {
524
+ localVarQueryParameter['pageToken'] = pageToken;
525
+ }
526
+
527
+ if (sortBy) {
528
+ localVarQueryParameter['sortBy'] = sortBy;
529
+ }
530
+
531
+ if (search !== undefined) {
532
+ localVarQueryParameter['search'] = search;
533
+ }
534
+
446
535
 
447
536
 
448
537
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -564,11 +653,15 @@ export const BlogApiFp = function(configuration?: Configuration) {
564
653
  *
565
654
  * @summary List blogs
566
655
  * @param {string} project
656
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
657
+ * @param {number} [pageToken] Page reference token
658
+ * @param {Array<string>} [sortBy] An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending.
659
+ * @param {string} [search] Search term to filter results
567
660
  * @param {*} [options] Override http request option.
568
661
  * @throws {RequiredError}
569
662
  */
570
- async listBlogs(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBlogsResponse>> {
571
- const localVarAxiosArgs = await localVarAxiosParamCreator.listBlogs(project, options);
663
+ async listBlogs(project: string, pageSize?: number, pageToken?: number, sortBy?: Array<string>, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBlogsResponse>> {
664
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listBlogs(project, pageSize, pageToken, sortBy, search, options);
572
665
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
573
666
  const localVarOperationServerBasePath = operationServerMap['BlogApi.listBlogs']?.[localVarOperationServerIndex]?.url;
574
667
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -636,7 +729,7 @@ export const BlogApiFactory = function (configuration?: Configuration, basePath?
636
729
  * @throws {RequiredError}
637
730
  */
638
731
  listBlogs(requestParameters: BlogApiListBlogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListBlogsResponse> {
639
- return localVarFp.listBlogs(requestParameters.project, options).then((request) => request(axios, basePath));
732
+ return localVarFp.listBlogs(requestParameters.project, requestParameters.pageSize, requestParameters.pageToken, requestParameters.sortBy, requestParameters.search, options).then((request) => request(axios, basePath));
640
733
  },
641
734
  /**
642
735
  *
@@ -726,6 +819,34 @@ export interface BlogApiListBlogsRequest {
726
819
  * @memberof BlogApiListBlogs
727
820
  */
728
821
  readonly project: string
822
+
823
+ /**
824
+ * Max page size. This is the maximum page size that will be returned, but it might be smaller.
825
+ * @type {number}
826
+ * @memberof BlogApiListBlogs
827
+ */
828
+ readonly pageSize?: number
829
+
830
+ /**
831
+ * Page reference token
832
+ * @type {number}
833
+ * @memberof BlogApiListBlogs
834
+ */
835
+ readonly pageToken?: number
836
+
837
+ /**
838
+ * An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending.
839
+ * @type {Array<string>}
840
+ * @memberof BlogApiListBlogs
841
+ */
842
+ readonly sortBy?: Array<string>
843
+
844
+ /**
845
+ * Search term to filter results
846
+ * @type {string}
847
+ * @memberof BlogApiListBlogs
848
+ */
849
+ readonly search?: string
729
850
  }
730
851
 
731
852
  /**
@@ -808,7 +929,7 @@ export class BlogApi extends BaseAPI {
808
929
  * @memberof BlogApi
809
930
  */
810
931
  public listBlogs(requestParameters: BlogApiListBlogsRequest, options?: RawAxiosRequestConfig) {
811
- return BlogApiFp(this.configuration).listBlogs(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
932
+ return BlogApiFp(this.configuration).listBlogs(requestParameters.project, requestParameters.pageSize, requestParameters.pageToken, requestParameters.sortBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
812
933
  }
813
934
 
814
935
  /**
package/base.ts CHANGED
@@ -2,10 +2,10 @@
2
2
  /* eslint-disable */
3
3
  /**
4
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)
5
+ * Read and write blogs on the PodOS platform.
6
6
  *
7
- * The version of the OpenAPI document: 0.1.1
8
- * Contact: hello@teemill.com
7
+ * The version of the OpenAPI document: 0.3.0
8
+ *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
package/common.ts CHANGED
@@ -2,10 +2,10 @@
2
2
  /* eslint-disable */
3
3
  /**
4
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)
5
+ * Read and write blogs on the PodOS platform.
6
6
  *
7
- * The version of the OpenAPI document: 0.1.1
8
- * Contact: hello@teemill.com
7
+ * The version of the OpenAPI document: 0.3.0
8
+ *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
package/configuration.ts CHANGED
@@ -2,10 +2,10 @@
2
2
  /* eslint-disable */
3
3
  /**
4
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)
5
+ * Read and write blogs on the PodOS platform.
6
6
  *
7
- * The version of the OpenAPI document: 0.1.1
8
- * Contact: hello@teemill.com
7
+ * The version of the OpenAPI document: 0.3.0
8
+ *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
@@ -89,7 +89,12 @@ export class Configuration {
89
89
  this.accessToken = param.accessToken;
90
90
  this.basePath = param.basePath;
91
91
  this.serverIndex = param.serverIndex;
92
- this.baseOptions = param.baseOptions;
92
+ this.baseOptions = {
93
+ ...param.baseOptions,
94
+ headers: {
95
+ ...param.baseOptions?.headers,
96
+ },
97
+ };
93
98
  this.formDataCtor = param.formDataCtor;
94
99
  }
95
100
 
package/dist/api.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
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)
3
+ * Read and write blogs on the PodOS platform.
4
+ *
5
+ * The version of the OpenAPI document: 0.3.0
4
6
  *
5
- * The version of the OpenAPI document: 0.1.1
6
- * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
9
  * https://openapi-generator.tech
@@ -62,12 +62,24 @@ export interface Blog {
62
62
  * @memberof Blog
63
63
  */
64
64
  'description': string;
65
+ /**
66
+ *
67
+ * @type {Array<string>}
68
+ * @memberof Blog
69
+ */
70
+ 'tags'?: Array<string>;
65
71
  /**
66
72
  *
67
73
  * @type {string}
68
74
  * @memberof Blog
69
75
  */
70
76
  'metaImage': string | null;
77
+ /**
78
+ *
79
+ * @type {BlogListingType}
80
+ * @memberof Blog
81
+ */
82
+ 'type': BlogListingType;
71
83
  /**
72
84
  *
73
85
  * @type {string}
@@ -123,12 +135,24 @@ export interface BlogListing {
123
135
  * @memberof BlogListing
124
136
  */
125
137
  'description': string;
138
+ /**
139
+ *
140
+ * @type {Array<string>}
141
+ * @memberof BlogListing
142
+ */
143
+ 'tags'?: Array<string>;
126
144
  /**
127
145
  *
128
146
  * @type {string}
129
147
  * @memberof BlogListing
130
148
  */
131
149
  'metaImage': string | null;
150
+ /**
151
+ *
152
+ * @type {BlogListingType}
153
+ * @memberof BlogListing
154
+ */
155
+ 'type': BlogListingType;
132
156
  /**
133
157
  *
134
158
  * @type {string}
@@ -148,6 +172,17 @@ export interface BlogListing {
148
172
  */
149
173
  'updatedAt': string;
150
174
  }
175
+ /**
176
+ * 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
+ */
180
+ export declare const BlogListingType: {
181
+ readonly Project: "project";
182
+ readonly Platform: "platform";
183
+ readonly ParentPlatform: "parent-platform";
184
+ };
185
+ export type BlogListingType = typeof BlogListingType[keyof typeof BlogListingType];
151
186
  /**
152
187
  *
153
188
  * @export
@@ -178,6 +213,12 @@ export interface CreateBlogRequest {
178
213
  * @memberof CreateBlogRequest
179
214
  */
180
215
  'description': string;
216
+ /**
217
+ *
218
+ * @type {Array<string>}
219
+ * @memberof CreateBlogRequest
220
+ */
221
+ 'tags'?: Array<string>;
181
222
  /**
182
223
  *
183
224
  * @type {string}
@@ -190,7 +231,18 @@ export interface CreateBlogRequest {
190
231
  * @memberof CreateBlogRequest
191
232
  */
192
233
  'published'?: boolean;
234
+ /**
235
+ * 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
+ */
239
+ 'type': CreateBlogRequestTypeEnum;
193
240
  }
241
+ export declare const CreateBlogRequestTypeEnum: {
242
+ readonly Project: "project";
243
+ readonly Platform: "platform";
244
+ };
245
+ export type CreateBlogRequestTypeEnum = typeof CreateBlogRequestTypeEnum[keyof typeof CreateBlogRequestTypeEnum];
194
246
  /**
195
247
  *
196
248
  * @export
@@ -234,6 +286,12 @@ export interface UpdateBlogRequest {
234
286
  * @memberof UpdateBlogRequest
235
287
  */
236
288
  'description'?: string;
289
+ /**
290
+ *
291
+ * @type {Array<string>}
292
+ * @memberof UpdateBlogRequest
293
+ */
294
+ 'tags'?: Array<string>;
237
295
  /**
238
296
  *
239
297
  * @type {string}
@@ -283,10 +341,14 @@ export declare const BlogApiAxiosParamCreator: (configuration?: Configuration) =
283
341
  *
284
342
  * @summary List blogs
285
343
  * @param {string} project
344
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
345
+ * @param {number} [pageToken] Page reference token
346
+ * @param {Array<string>} [sortBy] An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending.
347
+ * @param {string} [search] Search term to filter results
286
348
  * @param {*} [options] Override http request option.
287
349
  * @throws {RequiredError}
288
350
  */
289
- listBlogs: (project: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
351
+ listBlogs: (project: string, pageSize?: number, pageToken?: number, sortBy?: Array<string>, search?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
290
352
  /**
291
353
  *
292
354
  * @summary Update a blog
@@ -334,10 +396,14 @@ export declare const BlogApiFp: (configuration?: Configuration) => {
334
396
  *
335
397
  * @summary List blogs
336
398
  * @param {string} project
399
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
400
+ * @param {number} [pageToken] Page reference token
401
+ * @param {Array<string>} [sortBy] An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending.
402
+ * @param {string} [search] Search term to filter results
337
403
  * @param {*} [options] Override http request option.
338
404
  * @throws {RequiredError}
339
405
  */
340
- listBlogs(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBlogsResponse>>;
406
+ listBlogs(project: string, pageSize?: number, pageToken?: number, sortBy?: Array<string>, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBlogsResponse>>;
341
407
  /**
342
408
  *
343
409
  * @summary Update a blog
@@ -464,6 +530,30 @@ export interface BlogApiListBlogsRequest {
464
530
  * @memberof BlogApiListBlogs
465
531
  */
466
532
  readonly project: string;
533
+ /**
534
+ * 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
+ */
538
+ readonly pageSize?: number;
539
+ /**
540
+ * Page reference token
541
+ * @type {number}
542
+ * @memberof BlogApiListBlogs
543
+ */
544
+ readonly pageToken?: number;
545
+ /**
546
+ * 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
+ */
550
+ readonly sortBy?: Array<string>;
551
+ /**
552
+ * Search term to filter results
553
+ * @type {string}
554
+ * @memberof BlogApiListBlogs
555
+ */
556
+ readonly search?: string;
467
557
  }
468
558
  /**
469
559
  * Request parameters for updateBlog operation in BlogApi.
package/dist/api.js CHANGED
@@ -3,10 +3,10 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Blog API
6
- * 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
+ * Read and write blogs on the PodOS platform.
7
+ *
8
+ * The version of the OpenAPI document: 0.3.0
7
9
  *
8
- * The version of the OpenAPI document: 0.1.1
9
- * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
12
  * https://openapi-generator.tech
@@ -22,13 +22,27 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.BlogApi = exports.BlogApiFactory = exports.BlogApiFp = exports.BlogApiAxiosParamCreator = void 0;
25
+ exports.BlogApi = exports.BlogApiFactory = exports.BlogApiFp = exports.BlogApiAxiosParamCreator = exports.CreateBlogRequestTypeEnum = exports.BlogListingType = void 0;
26
26
  const axios_1 = require("axios");
27
27
  // Some imports not used depending on template conditions
28
28
  // @ts-ignore
29
29
  const common_1 = require("./common");
30
30
  // @ts-ignore
31
31
  const base_1 = require("./base");
32
+ /**
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
+ */
37
+ exports.BlogListingType = {
38
+ Project: 'project',
39
+ Platform: 'platform',
40
+ ParentPlatform: 'parent-platform'
41
+ };
42
+ exports.CreateBlogRequestTypeEnum = {
43
+ Project: 'project',
44
+ Platform: 'platform'
45
+ };
32
46
  /**
33
47
  * BlogApi - axios parameter creator
34
48
  * @export
@@ -160,10 +174,14 @@ const BlogApiAxiosParamCreator = function (configuration) {
160
174
  *
161
175
  * @summary List blogs
162
176
  * @param {string} project
177
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
178
+ * @param {number} [pageToken] Page reference token
179
+ * @param {Array<string>} [sortBy] An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending.
180
+ * @param {string} [search] Search term to filter results
163
181
  * @param {*} [options] Override http request option.
164
182
  * @throws {RequiredError}
165
183
  */
166
- listBlogs: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
184
+ listBlogs: (project_1, pageSize_1, pageToken_1, sortBy_1, search_1, ...args_1) => __awaiter(this, [project_1, pageSize_1, pageToken_1, sortBy_1, search_1, ...args_1], void 0, function* (project, pageSize, pageToken, sortBy, search, options = {}) {
167
185
  // verify required parameter 'project' is not null or undefined
168
186
  (0, common_1.assertParamExists)('listBlogs', 'project', project);
169
187
  const localVarPath = `/v1/blog/blogs`;
@@ -184,6 +202,18 @@ const BlogApiAxiosParamCreator = function (configuration) {
184
202
  if (project !== undefined) {
185
203
  localVarQueryParameter['project'] = project;
186
204
  }
205
+ if (pageSize !== undefined) {
206
+ localVarQueryParameter['pageSize'] = pageSize;
207
+ }
208
+ if (pageToken !== undefined) {
209
+ localVarQueryParameter['pageToken'] = pageToken;
210
+ }
211
+ if (sortBy) {
212
+ localVarQueryParameter['sortBy'] = sortBy;
213
+ }
214
+ if (search !== undefined) {
215
+ localVarQueryParameter['search'] = search;
216
+ }
187
217
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
188
218
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
189
219
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -302,13 +332,17 @@ const BlogApiFp = function (configuration) {
302
332
  *
303
333
  * @summary List blogs
304
334
  * @param {string} project
335
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
336
+ * @param {number} [pageToken] Page reference token
337
+ * @param {Array<string>} [sortBy] An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending.
338
+ * @param {string} [search] Search term to filter results
305
339
  * @param {*} [options] Override http request option.
306
340
  * @throws {RequiredError}
307
341
  */
308
- listBlogs(project, options) {
342
+ listBlogs(project, pageSize, pageToken, sortBy, search, options) {
309
343
  return __awaiter(this, void 0, void 0, function* () {
310
344
  var _a, _b, _c;
311
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listBlogs(project, options);
345
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listBlogs(project, pageSize, pageToken, sortBy, search, options);
312
346
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
313
347
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BlogApi.listBlogs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
314
348
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -380,7 +414,7 @@ const BlogApiFactory = function (configuration, basePath, axios) {
380
414
  * @throws {RequiredError}
381
415
  */
382
416
  listBlogs(requestParameters, options) {
383
- return localVarFp.listBlogs(requestParameters.project, options).then((request) => request(axios, basePath));
417
+ return localVarFp.listBlogs(requestParameters.project, requestParameters.pageSize, requestParameters.pageToken, requestParameters.sortBy, requestParameters.search, options).then((request) => request(axios, basePath));
384
418
  },
385
419
  /**
386
420
  *
@@ -444,7 +478,7 @@ class BlogApi extends base_1.BaseAPI {
444
478
  * @memberof BlogApi
445
479
  */
446
480
  listBlogs(requestParameters, options) {
447
- return (0, exports.BlogApiFp)(this.configuration).listBlogs(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
481
+ 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));
448
482
  }
449
483
  /**
450
484
  *
package/dist/base.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
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)
3
+ * Read and write blogs on the PodOS platform.
4
+ *
5
+ * The version of the OpenAPI document: 0.3.0
4
6
  *
5
- * The version of the OpenAPI document: 0.1.1
6
- * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
9
  * https://openapi-generator.tech
package/dist/base.js CHANGED
@@ -3,10 +3,10 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Blog API
6
- * 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
+ * Read and write blogs on the PodOS platform.
7
+ *
8
+ * The version of the OpenAPI document: 0.3.0
7
9
  *
8
- * The version of the OpenAPI document: 0.1.1
9
- * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
12
  * https://openapi-generator.tech
package/dist/common.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
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)
3
+ * Read and write blogs on the PodOS platform.
4
+ *
5
+ * The version of the OpenAPI document: 0.3.0
4
6
  *
5
- * The version of the OpenAPI document: 0.1.1
6
- * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
9
  * https://openapi-generator.tech
@@ -62,4 +62,4 @@ export declare const toPathString: (url: URL) => string;
62
62
  *
63
63
  * @export
64
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>;
65
+ export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
package/dist/common.js CHANGED
@@ -3,10 +3,10 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Blog API
6
- * 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
+ * Read and write blogs on the PodOS platform.
7
+ *
8
+ * The version of the OpenAPI document: 0.3.0
7
9
  *
8
- * The version of the OpenAPI document: 0.1.1
9
- * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
12
  * https://openapi-generator.tech
@@ -1,9 +1,9 @@
1
1
  /**
2
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)
3
+ * Read and write blogs on the PodOS platform.
4
+ *
5
+ * The version of the OpenAPI document: 0.3.0
4
6
  *
5
- * The version of the OpenAPI document: 0.1.1
6
- * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
9
  * https://openapi-generator.tech
@@ -3,10 +3,10 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Blog API
6
- * 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
+ * Read and write blogs on the PodOS platform.
7
+ *
8
+ * The version of the OpenAPI document: 0.3.0
7
9
  *
8
- * The version of the OpenAPI document: 0.1.1
9
- * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
12
  * https://openapi-generator.tech
@@ -16,13 +16,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.Configuration = void 0;
17
17
  class Configuration {
18
18
  constructor(param = {}) {
19
+ var _a;
19
20
  this.apiKey = param.apiKey;
20
21
  this.username = param.username;
21
22
  this.password = param.password;
22
23
  this.accessToken = param.accessToken;
23
24
  this.basePath = param.basePath;
24
25
  this.serverIndex = param.serverIndex;
25
- this.baseOptions = param.baseOptions;
26
+ this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({}, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
26
27
  this.formDataCtor = param.formDataCtor;
27
28
  }
28
29
  /**
package/dist/esm/api.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
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)
3
+ * Read and write blogs on the PodOS platform.
4
+ *
5
+ * The version of the OpenAPI document: 0.3.0
4
6
  *
5
- * The version of the OpenAPI document: 0.1.1
6
- * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
9
  * https://openapi-generator.tech
@@ -62,12 +62,24 @@ export interface Blog {
62
62
  * @memberof Blog
63
63
  */
64
64
  'description': string;
65
+ /**
66
+ *
67
+ * @type {Array<string>}
68
+ * @memberof Blog
69
+ */
70
+ 'tags'?: Array<string>;
65
71
  /**
66
72
  *
67
73
  * @type {string}
68
74
  * @memberof Blog
69
75
  */
70
76
  'metaImage': string | null;
77
+ /**
78
+ *
79
+ * @type {BlogListingType}
80
+ * @memberof Blog
81
+ */
82
+ 'type': BlogListingType;
71
83
  /**
72
84
  *
73
85
  * @type {string}
@@ -123,12 +135,24 @@ export interface BlogListing {
123
135
  * @memberof BlogListing
124
136
  */
125
137
  'description': string;
138
+ /**
139
+ *
140
+ * @type {Array<string>}
141
+ * @memberof BlogListing
142
+ */
143
+ 'tags'?: Array<string>;
126
144
  /**
127
145
  *
128
146
  * @type {string}
129
147
  * @memberof BlogListing
130
148
  */
131
149
  'metaImage': string | null;
150
+ /**
151
+ *
152
+ * @type {BlogListingType}
153
+ * @memberof BlogListing
154
+ */
155
+ 'type': BlogListingType;
132
156
  /**
133
157
  *
134
158
  * @type {string}
@@ -148,6 +172,17 @@ export interface BlogListing {
148
172
  */
149
173
  'updatedAt': string;
150
174
  }
175
+ /**
176
+ * 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
+ */
180
+ export declare const BlogListingType: {
181
+ readonly Project: "project";
182
+ readonly Platform: "platform";
183
+ readonly ParentPlatform: "parent-platform";
184
+ };
185
+ export type BlogListingType = typeof BlogListingType[keyof typeof BlogListingType];
151
186
  /**
152
187
  *
153
188
  * @export
@@ -178,6 +213,12 @@ export interface CreateBlogRequest {
178
213
  * @memberof CreateBlogRequest
179
214
  */
180
215
  'description': string;
216
+ /**
217
+ *
218
+ * @type {Array<string>}
219
+ * @memberof CreateBlogRequest
220
+ */
221
+ 'tags'?: Array<string>;
181
222
  /**
182
223
  *
183
224
  * @type {string}
@@ -190,7 +231,18 @@ export interface CreateBlogRequest {
190
231
  * @memberof CreateBlogRequest
191
232
  */
192
233
  'published'?: boolean;
234
+ /**
235
+ * 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
+ */
239
+ 'type': CreateBlogRequestTypeEnum;
193
240
  }
241
+ export declare const CreateBlogRequestTypeEnum: {
242
+ readonly Project: "project";
243
+ readonly Platform: "platform";
244
+ };
245
+ export type CreateBlogRequestTypeEnum = typeof CreateBlogRequestTypeEnum[keyof typeof CreateBlogRequestTypeEnum];
194
246
  /**
195
247
  *
196
248
  * @export
@@ -234,6 +286,12 @@ export interface UpdateBlogRequest {
234
286
  * @memberof UpdateBlogRequest
235
287
  */
236
288
  'description'?: string;
289
+ /**
290
+ *
291
+ * @type {Array<string>}
292
+ * @memberof UpdateBlogRequest
293
+ */
294
+ 'tags'?: Array<string>;
237
295
  /**
238
296
  *
239
297
  * @type {string}
@@ -283,10 +341,14 @@ export declare const BlogApiAxiosParamCreator: (configuration?: Configuration) =
283
341
  *
284
342
  * @summary List blogs
285
343
  * @param {string} project
344
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
345
+ * @param {number} [pageToken] Page reference token
346
+ * @param {Array<string>} [sortBy] An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending.
347
+ * @param {string} [search] Search term to filter results
286
348
  * @param {*} [options] Override http request option.
287
349
  * @throws {RequiredError}
288
350
  */
289
- listBlogs: (project: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
351
+ listBlogs: (project: string, pageSize?: number, pageToken?: number, sortBy?: Array<string>, search?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
290
352
  /**
291
353
  *
292
354
  * @summary Update a blog
@@ -334,10 +396,14 @@ export declare const BlogApiFp: (configuration?: Configuration) => {
334
396
  *
335
397
  * @summary List blogs
336
398
  * @param {string} project
399
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
400
+ * @param {number} [pageToken] Page reference token
401
+ * @param {Array<string>} [sortBy] An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending.
402
+ * @param {string} [search] Search term to filter results
337
403
  * @param {*} [options] Override http request option.
338
404
  * @throws {RequiredError}
339
405
  */
340
- listBlogs(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBlogsResponse>>;
406
+ listBlogs(project: string, pageSize?: number, pageToken?: number, sortBy?: Array<string>, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBlogsResponse>>;
341
407
  /**
342
408
  *
343
409
  * @summary Update a blog
@@ -464,6 +530,30 @@ export interface BlogApiListBlogsRequest {
464
530
  * @memberof BlogApiListBlogs
465
531
  */
466
532
  readonly project: string;
533
+ /**
534
+ * 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
+ */
538
+ readonly pageSize?: number;
539
+ /**
540
+ * Page reference token
541
+ * @type {number}
542
+ * @memberof BlogApiListBlogs
543
+ */
544
+ readonly pageToken?: number;
545
+ /**
546
+ * 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
+ */
550
+ readonly sortBy?: Array<string>;
551
+ /**
552
+ * Search term to filter results
553
+ * @type {string}
554
+ * @memberof BlogApiListBlogs
555
+ */
556
+ readonly search?: string;
467
557
  }
468
558
  /**
469
559
  * Request parameters for updateBlog operation in BlogApi.
package/dist/esm/api.js CHANGED
@@ -2,10 +2,10 @@
2
2
  /* eslint-disable */
3
3
  /**
4
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)
5
+ * Read and write blogs on the PodOS platform.
6
+ *
7
+ * The version of the OpenAPI document: 0.3.0
6
8
  *
7
- * The version of the OpenAPI document: 0.1.1
8
- * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
@@ -26,6 +26,20 @@ import globalAxios from 'axios';
26
26
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
27
27
  // @ts-ignore
28
28
  import { BASE_PATH, BaseAPI, operationServerMap } from './base';
29
+ /**
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
+ */
34
+ export const BlogListingType = {
35
+ Project: 'project',
36
+ Platform: 'platform',
37
+ ParentPlatform: 'parent-platform'
38
+ };
39
+ export const CreateBlogRequestTypeEnum = {
40
+ Project: 'project',
41
+ Platform: 'platform'
42
+ };
29
43
  /**
30
44
  * BlogApi - axios parameter creator
31
45
  * @export
@@ -157,10 +171,14 @@ export const BlogApiAxiosParamCreator = function (configuration) {
157
171
  *
158
172
  * @summary List blogs
159
173
  * @param {string} project
174
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
175
+ * @param {number} [pageToken] Page reference token
176
+ * @param {Array<string>} [sortBy] An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending.
177
+ * @param {string} [search] Search term to filter results
160
178
  * @param {*} [options] Override http request option.
161
179
  * @throws {RequiredError}
162
180
  */
163
- listBlogs: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
181
+ listBlogs: (project_1, pageSize_1, pageToken_1, sortBy_1, search_1, ...args_1) => __awaiter(this, [project_1, pageSize_1, pageToken_1, sortBy_1, search_1, ...args_1], void 0, function* (project, pageSize, pageToken, sortBy, search, options = {}) {
164
182
  // verify required parameter 'project' is not null or undefined
165
183
  assertParamExists('listBlogs', 'project', project);
166
184
  const localVarPath = `/v1/blog/blogs`;
@@ -181,6 +199,18 @@ export const BlogApiAxiosParamCreator = function (configuration) {
181
199
  if (project !== undefined) {
182
200
  localVarQueryParameter['project'] = project;
183
201
  }
202
+ if (pageSize !== undefined) {
203
+ localVarQueryParameter['pageSize'] = pageSize;
204
+ }
205
+ if (pageToken !== undefined) {
206
+ localVarQueryParameter['pageToken'] = pageToken;
207
+ }
208
+ if (sortBy) {
209
+ localVarQueryParameter['sortBy'] = sortBy;
210
+ }
211
+ if (search !== undefined) {
212
+ localVarQueryParameter['search'] = search;
213
+ }
184
214
  setSearchParams(localVarUrlObj, localVarQueryParameter);
185
215
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
186
216
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -298,13 +328,17 @@ export const BlogApiFp = function (configuration) {
298
328
  *
299
329
  * @summary List blogs
300
330
  * @param {string} project
331
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
332
+ * @param {number} [pageToken] Page reference token
333
+ * @param {Array<string>} [sortBy] An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending.
334
+ * @param {string} [search] Search term to filter results
301
335
  * @param {*} [options] Override http request option.
302
336
  * @throws {RequiredError}
303
337
  */
304
- listBlogs(project, options) {
338
+ listBlogs(project, pageSize, pageToken, sortBy, search, options) {
305
339
  return __awaiter(this, void 0, void 0, function* () {
306
340
  var _a, _b, _c;
307
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listBlogs(project, options);
341
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listBlogs(project, pageSize, pageToken, sortBy, search, options);
308
342
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
309
343
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BlogApi.listBlogs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
310
344
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -375,7 +409,7 @@ export const BlogApiFactory = function (configuration, basePath, axios) {
375
409
  * @throws {RequiredError}
376
410
  */
377
411
  listBlogs(requestParameters, options) {
378
- return localVarFp.listBlogs(requestParameters.project, options).then((request) => request(axios, basePath));
412
+ return localVarFp.listBlogs(requestParameters.project, requestParameters.pageSize, requestParameters.pageToken, requestParameters.sortBy, requestParameters.search, options).then((request) => request(axios, basePath));
379
413
  },
380
414
  /**
381
415
  *
@@ -438,7 +472,7 @@ export class BlogApi extends BaseAPI {
438
472
  * @memberof BlogApi
439
473
  */
440
474
  listBlogs(requestParameters, options) {
441
- return BlogApiFp(this.configuration).listBlogs(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
475
+ return BlogApiFp(this.configuration).listBlogs(requestParameters.project, requestParameters.pageSize, requestParameters.pageToken, requestParameters.sortBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
442
476
  }
443
477
  /**
444
478
  *
@@ -1,9 +1,9 @@
1
1
  /**
2
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)
3
+ * Read and write blogs on the PodOS platform.
4
+ *
5
+ * The version of the OpenAPI document: 0.3.0
4
6
  *
5
- * The version of the OpenAPI document: 0.1.1
6
- * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
9
  * https://openapi-generator.tech
package/dist/esm/base.js CHANGED
@@ -2,10 +2,10 @@
2
2
  /* eslint-disable */
3
3
  /**
4
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)
5
+ * Read and write blogs on the PodOS platform.
6
+ *
7
+ * The version of the OpenAPI document: 0.3.0
6
8
  *
7
- * The version of the OpenAPI document: 0.1.1
8
- * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
@@ -1,9 +1,9 @@
1
1
  /**
2
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)
3
+ * Read and write blogs on the PodOS platform.
4
+ *
5
+ * The version of the OpenAPI document: 0.3.0
4
6
  *
5
- * The version of the OpenAPI document: 0.1.1
6
- * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
9
  * https://openapi-generator.tech
@@ -62,4 +62,4 @@ export declare const toPathString: (url: URL) => string;
62
62
  *
63
63
  * @export
64
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>;
65
+ export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
@@ -2,10 +2,10 @@
2
2
  /* eslint-disable */
3
3
  /**
4
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)
5
+ * Read and write blogs on the PodOS platform.
6
+ *
7
+ * The version of the OpenAPI document: 0.3.0
6
8
  *
7
- * The version of the OpenAPI document: 0.1.1
8
- * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
@@ -1,9 +1,9 @@
1
1
  /**
2
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)
3
+ * Read and write blogs on the PodOS platform.
4
+ *
5
+ * The version of the OpenAPI document: 0.3.0
4
6
  *
5
- * The version of the OpenAPI document: 0.1.1
6
- * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
9
  * https://openapi-generator.tech
@@ -2,10 +2,10 @@
2
2
  /* eslint-disable */
3
3
  /**
4
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)
5
+ * Read and write blogs on the PodOS platform.
6
+ *
7
+ * The version of the OpenAPI document: 0.3.0
6
8
  *
7
- * The version of the OpenAPI document: 0.1.1
8
- * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
@@ -13,13 +13,14 @@
13
13
  */
14
14
  export class Configuration {
15
15
  constructor(param = {}) {
16
+ var _a;
16
17
  this.apiKey = param.apiKey;
17
18
  this.username = param.username;
18
19
  this.password = param.password;
19
20
  this.accessToken = param.accessToken;
20
21
  this.basePath = param.basePath;
21
22
  this.serverIndex = param.serverIndex;
22
- this.baseOptions = param.baseOptions;
23
+ this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({}, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
23
24
  this.formDataCtor = param.formDataCtor;
24
25
  }
25
26
  /**
@@ -1,9 +1,9 @@
1
1
  /**
2
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)
3
+ * Read and write blogs on the PodOS platform.
4
+ *
5
+ * The version of the OpenAPI document: 0.3.0
4
6
  *
5
- * The version of the OpenAPI document: 0.1.1
6
- * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
9
  * https://openapi-generator.tech
package/dist/esm/index.js CHANGED
@@ -2,10 +2,10 @@
2
2
  /* eslint-disable */
3
3
  /**
4
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)
5
+ * Read and write blogs on the PodOS platform.
6
+ *
7
+ * The version of the OpenAPI document: 0.3.0
6
8
  *
7
- * The version of the OpenAPI document: 0.1.1
8
- * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
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)
3
+ * Read and write blogs on the PodOS platform.
4
+ *
5
+ * The version of the OpenAPI document: 0.3.0
4
6
  *
5
- * The version of the OpenAPI document: 0.1.1
6
- * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
9
  * https://openapi-generator.tech
package/dist/index.js CHANGED
@@ -3,10 +3,10 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Blog API
6
- * 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
+ * Read and write blogs on the PodOS platform.
7
+ *
8
+ * The version of the OpenAPI document: 0.3.0
7
9
  *
8
- * The version of the OpenAPI document: 0.1.1
9
- * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
12
  * https://openapi-generator.tech
package/index.ts CHANGED
@@ -2,10 +2,10 @@
2
2
  /* eslint-disable */
3
3
  /**
4
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)
5
+ * Read and write blogs on the PodOS platform.
6
6
  *
7
- * The version of the OpenAPI document: 0.1.1
8
- * Contact: hello@teemill.com
7
+ * The version of the OpenAPI document: 0.3.0
8
+ *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teemill/blog",
3
- "version": "0.1.1",
3
+ "version": "0.3.0",
4
4
  "description": "OpenAPI client for @teemill/blog",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {