@teemill/website 0.17.0 → 0.19.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.
package/dist/esm/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Website API
5
5
  * Manage your PodOS Website
6
6
  *
7
- * The version of the OpenAPI document: 0.17.0
7
+ * The version of the OpenAPI document: 0.19.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -118,6 +118,42 @@ export const UpdateMenuRequestItemSubmenuInnerImageTextShadowEnum = {
118
118
  */
119
119
  export const BlogsApiAxiosParamCreator = function (configuration) {
120
120
  return {
121
+ /**
122
+ * Export blogs as a CSV file.
123
+ * @summary Export blogs
124
+ * @param {string} project What project it is
125
+ * @param {*} [options] Override http request option.
126
+ * @throws {RequiredError}
127
+ */
128
+ exportBlogs: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
129
+ // verify required parameter 'project' is not null or undefined
130
+ assertParamExists('exportBlogs', 'project', project);
131
+ const localVarPath = `/v1/website/blogs/export`;
132
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
133
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
134
+ let baseOptions;
135
+ if (configuration) {
136
+ baseOptions = configuration.baseOptions;
137
+ }
138
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
139
+ const localVarHeaderParameter = {};
140
+ const localVarQueryParameter = {};
141
+ // authentication session-oauth required
142
+ // oauth required
143
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
144
+ // authentication api-key required
145
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
146
+ if (project !== undefined) {
147
+ localVarQueryParameter['project'] = project;
148
+ }
149
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
150
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
151
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
152
+ return {
153
+ url: toPathString(localVarUrlObj),
154
+ options: localVarRequestOptions,
155
+ };
156
+ }),
121
157
  /**
122
158
  *
123
159
  * @summary Get website blog post
@@ -309,6 +345,22 @@ export const BlogsApiAxiosParamCreator = function (configuration) {
309
345
  export const BlogsApiFp = function (configuration) {
310
346
  const localVarAxiosParamCreator = BlogsApiAxiosParamCreator(configuration);
311
347
  return {
348
+ /**
349
+ * Export blogs as a CSV file.
350
+ * @summary Export blogs
351
+ * @param {string} project What project it is
352
+ * @param {*} [options] Override http request option.
353
+ * @throws {RequiredError}
354
+ */
355
+ exportBlogs(project, options) {
356
+ return __awaiter(this, void 0, void 0, function* () {
357
+ var _a, _b, _c;
358
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.exportBlogs(project, options);
359
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
360
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BlogsApi.exportBlogs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
361
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
362
+ });
363
+ },
312
364
  /**
313
365
  *
314
366
  * @summary Get website blog post
@@ -392,6 +444,16 @@ export const BlogsApiFp = function (configuration) {
392
444
  export const BlogsApiFactory = function (configuration, basePath, axios) {
393
445
  const localVarFp = BlogsApiFp(configuration);
394
446
  return {
447
+ /**
448
+ * Export blogs as a CSV file.
449
+ * @summary Export blogs
450
+ * @param {BlogsApiExportBlogsRequest} requestParameters Request parameters.
451
+ * @param {*} [options] Override http request option.
452
+ * @throws {RequiredError}
453
+ */
454
+ exportBlogs(requestParameters, options) {
455
+ return localVarFp.exportBlogs(requestParameters.project, options).then((request) => request(axios, basePath));
456
+ },
395
457
  /**
396
458
  *
397
459
  * @summary Get website blog post
@@ -441,6 +503,17 @@ export const BlogsApiFactory = function (configuration, basePath, axios) {
441
503
  * @extends {BaseAPI}
442
504
  */
443
505
  export class BlogsApi extends BaseAPI {
506
+ /**
507
+ * Export blogs as a CSV file.
508
+ * @summary Export blogs
509
+ * @param {BlogsApiExportBlogsRequest} requestParameters Request parameters.
510
+ * @param {*} [options] Override http request option.
511
+ * @throws {RequiredError}
512
+ * @memberof BlogsApi
513
+ */
514
+ exportBlogs(requestParameters, options) {
515
+ return BlogsApiFp(this.configuration).exportBlogs(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
516
+ }
444
517
  /**
445
518
  *
446
519
  * @summary Get website blog post
@@ -492,6 +565,42 @@ export class BlogsApi extends BaseAPI {
492
565
  */
493
566
  export const CollectionsApiAxiosParamCreator = function (configuration) {
494
567
  return {
568
+ /**
569
+ * Export collections as a CSV file.
570
+ * @summary Export collections
571
+ * @param {string} project What project it is
572
+ * @param {*} [options] Override http request option.
573
+ * @throws {RequiredError}
574
+ */
575
+ exportCollections: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
576
+ // verify required parameter 'project' is not null or undefined
577
+ assertParamExists('exportCollections', 'project', project);
578
+ const localVarPath = `/v1/website/collections/export`;
579
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
580
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
581
+ let baseOptions;
582
+ if (configuration) {
583
+ baseOptions = configuration.baseOptions;
584
+ }
585
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
586
+ const localVarHeaderParameter = {};
587
+ const localVarQueryParameter = {};
588
+ // authentication session-oauth required
589
+ // oauth required
590
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
591
+ // authentication api-key required
592
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
593
+ if (project !== undefined) {
594
+ localVarQueryParameter['project'] = project;
595
+ }
596
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
597
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
598
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
599
+ return {
600
+ url: toPathString(localVarUrlObj),
601
+ options: localVarRequestOptions,
602
+ };
603
+ }),
495
604
  /**
496
605
  *
497
606
  * @summary Get website collection
@@ -582,7 +691,7 @@ export const CollectionsApiAxiosParamCreator = function (configuration) {
582
691
  }),
583
692
  /**
584
693
  * AI SEO optimises collections by a set of given IDs.
585
- * @summary AI SEO optimise collections.
694
+ * @summary AI SEO optimise collections
586
695
  * @param {string} project What project it is
587
696
  * @param {SeoOptimiseCollectionsRequest} [seoOptimiseCollectionsRequest] A set of collection IDs to AI SEO optimise.
588
697
  * @param {*} [options] Override http request option.
@@ -722,6 +831,22 @@ export const CollectionsApiAxiosParamCreator = function (configuration) {
722
831
  export const CollectionsApiFp = function (configuration) {
723
832
  const localVarAxiosParamCreator = CollectionsApiAxiosParamCreator(configuration);
724
833
  return {
834
+ /**
835
+ * Export collections as a CSV file.
836
+ * @summary Export collections
837
+ * @param {string} project What project it is
838
+ * @param {*} [options] Override http request option.
839
+ * @throws {RequiredError}
840
+ */
841
+ exportCollections(project, options) {
842
+ return __awaiter(this, void 0, void 0, function* () {
843
+ var _a, _b, _c;
844
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.exportCollections(project, options);
845
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
846
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CollectionsApi.exportCollections']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
847
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
848
+ });
849
+ },
725
850
  /**
726
851
  *
727
852
  * @summary Get website collection
@@ -760,7 +885,7 @@ export const CollectionsApiFp = function (configuration) {
760
885
  },
761
886
  /**
762
887
  * AI SEO optimises collections by a set of given IDs.
763
- * @summary AI SEO optimise collections.
888
+ * @summary AI SEO optimise collections
764
889
  * @param {string} project What project it is
765
890
  * @param {SeoOptimiseCollectionsRequest} [seoOptimiseCollectionsRequest] A set of collection IDs to AI SEO optimise.
766
891
  * @param {*} [options] Override http request option.
@@ -822,6 +947,16 @@ export const CollectionsApiFp = function (configuration) {
822
947
  export const CollectionsApiFactory = function (configuration, basePath, axios) {
823
948
  const localVarFp = CollectionsApiFp(configuration);
824
949
  return {
950
+ /**
951
+ * Export collections as a CSV file.
952
+ * @summary Export collections
953
+ * @param {CollectionsApiExportCollectionsRequest} requestParameters Request parameters.
954
+ * @param {*} [options] Override http request option.
955
+ * @throws {RequiredError}
956
+ */
957
+ exportCollections(requestParameters, options) {
958
+ return localVarFp.exportCollections(requestParameters.project, options).then((request) => request(axios, basePath));
959
+ },
825
960
  /**
826
961
  *
827
962
  * @summary Get website collection
@@ -844,7 +979,7 @@ export const CollectionsApiFactory = function (configuration, basePath, axios) {
844
979
  },
845
980
  /**
846
981
  * AI SEO optimises collections by a set of given IDs.
847
- * @summary AI SEO optimise collections.
982
+ * @summary AI SEO optimise collections
848
983
  * @param {CollectionsApiSeoOptimiseCollectionsRequest} requestParameters Request parameters.
849
984
  * @param {*} [options] Override http request option.
850
985
  * @throws {RequiredError}
@@ -881,6 +1016,17 @@ export const CollectionsApiFactory = function (configuration, basePath, axios) {
881
1016
  * @extends {BaseAPI}
882
1017
  */
883
1018
  export class CollectionsApi extends BaseAPI {
1019
+ /**
1020
+ * Export collections as a CSV file.
1021
+ * @summary Export collections
1022
+ * @param {CollectionsApiExportCollectionsRequest} requestParameters Request parameters.
1023
+ * @param {*} [options] Override http request option.
1024
+ * @throws {RequiredError}
1025
+ * @memberof CollectionsApi
1026
+ */
1027
+ exportCollections(requestParameters, options) {
1028
+ return CollectionsApiFp(this.configuration).exportCollections(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
1029
+ }
884
1030
  /**
885
1031
  *
886
1032
  * @summary Get website collection
@@ -905,7 +1051,7 @@ export class CollectionsApi extends BaseAPI {
905
1051
  }
906
1052
  /**
907
1053
  * AI SEO optimises collections by a set of given IDs.
908
- * @summary AI SEO optimise collections.
1054
+ * @summary AI SEO optimise collections
909
1055
  * @param {CollectionsApiSeoOptimiseCollectionsRequest} requestParameters Request parameters.
910
1056
  * @param {*} [options] Override http request option.
911
1057
  * @throws {RequiredError}
@@ -1321,6 +1467,42 @@ export class MenuApi extends BaseAPI {
1321
1467
  */
1322
1468
  export const PagesApiAxiosParamCreator = function (configuration) {
1323
1469
  return {
1470
+ /**
1471
+ * Export pages as a CSV file.
1472
+ * @summary Export pages
1473
+ * @param {string} project What project it is
1474
+ * @param {*} [options] Override http request option.
1475
+ * @throws {RequiredError}
1476
+ */
1477
+ exportPages: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
1478
+ // verify required parameter 'project' is not null or undefined
1479
+ assertParamExists('exportPages', 'project', project);
1480
+ const localVarPath = `/v1/website/pages/export`;
1481
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1482
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1483
+ let baseOptions;
1484
+ if (configuration) {
1485
+ baseOptions = configuration.baseOptions;
1486
+ }
1487
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1488
+ const localVarHeaderParameter = {};
1489
+ const localVarQueryParameter = {};
1490
+ // authentication session-oauth required
1491
+ // oauth required
1492
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
1493
+ // authentication api-key required
1494
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1495
+ if (project !== undefined) {
1496
+ localVarQueryParameter['project'] = project;
1497
+ }
1498
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1499
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1500
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1501
+ return {
1502
+ url: toPathString(localVarUrlObj),
1503
+ options: localVarRequestOptions,
1504
+ };
1505
+ }),
1324
1506
  /**
1325
1507
  *
1326
1508
  * @summary Get website page
@@ -1411,7 +1593,7 @@ export const PagesApiAxiosParamCreator = function (configuration) {
1411
1593
  }),
1412
1594
  /**
1413
1595
  * AI SEO optimises pages by a set of given IDs.
1414
- * @summary AI SEO optimise pages.
1596
+ * @summary AI SEO optimise pages
1415
1597
  * @param {string} project What project it is
1416
1598
  * @param {SeoOptimisePagesRequest} [seoOptimisePagesRequest] A set of page IDs to AI SEO optimise.
1417
1599
  * @param {*} [options] Override http request option.
@@ -1551,6 +1733,22 @@ export const PagesApiAxiosParamCreator = function (configuration) {
1551
1733
  export const PagesApiFp = function (configuration) {
1552
1734
  const localVarAxiosParamCreator = PagesApiAxiosParamCreator(configuration);
1553
1735
  return {
1736
+ /**
1737
+ * Export pages as a CSV file.
1738
+ * @summary Export pages
1739
+ * @param {string} project What project it is
1740
+ * @param {*} [options] Override http request option.
1741
+ * @throws {RequiredError}
1742
+ */
1743
+ exportPages(project, options) {
1744
+ return __awaiter(this, void 0, void 0, function* () {
1745
+ var _a, _b, _c;
1746
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.exportPages(project, options);
1747
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1748
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PagesApi.exportPages']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1749
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1750
+ });
1751
+ },
1554
1752
  /**
1555
1753
  *
1556
1754
  * @summary Get website page
@@ -1589,7 +1787,7 @@ export const PagesApiFp = function (configuration) {
1589
1787
  },
1590
1788
  /**
1591
1789
  * AI SEO optimises pages by a set of given IDs.
1592
- * @summary AI SEO optimise pages.
1790
+ * @summary AI SEO optimise pages
1593
1791
  * @param {string} project What project it is
1594
1792
  * @param {SeoOptimisePagesRequest} [seoOptimisePagesRequest] A set of page IDs to AI SEO optimise.
1595
1793
  * @param {*} [options] Override http request option.
@@ -1651,6 +1849,16 @@ export const PagesApiFp = function (configuration) {
1651
1849
  export const PagesApiFactory = function (configuration, basePath, axios) {
1652
1850
  const localVarFp = PagesApiFp(configuration);
1653
1851
  return {
1852
+ /**
1853
+ * Export pages as a CSV file.
1854
+ * @summary Export pages
1855
+ * @param {PagesApiExportPagesRequest} requestParameters Request parameters.
1856
+ * @param {*} [options] Override http request option.
1857
+ * @throws {RequiredError}
1858
+ */
1859
+ exportPages(requestParameters, options) {
1860
+ return localVarFp.exportPages(requestParameters.project, options).then((request) => request(axios, basePath));
1861
+ },
1654
1862
  /**
1655
1863
  *
1656
1864
  * @summary Get website page
@@ -1673,7 +1881,7 @@ export const PagesApiFactory = function (configuration, basePath, axios) {
1673
1881
  },
1674
1882
  /**
1675
1883
  * AI SEO optimises pages by a set of given IDs.
1676
- * @summary AI SEO optimise pages.
1884
+ * @summary AI SEO optimise pages
1677
1885
  * @param {PagesApiSeoOptimisePagesRequest} requestParameters Request parameters.
1678
1886
  * @param {*} [options] Override http request option.
1679
1887
  * @throws {RequiredError}
@@ -1710,6 +1918,17 @@ export const PagesApiFactory = function (configuration, basePath, axios) {
1710
1918
  * @extends {BaseAPI}
1711
1919
  */
1712
1920
  export class PagesApi extends BaseAPI {
1921
+ /**
1922
+ * Export pages as a CSV file.
1923
+ * @summary Export pages
1924
+ * @param {PagesApiExportPagesRequest} requestParameters Request parameters.
1925
+ * @param {*} [options] Override http request option.
1926
+ * @throws {RequiredError}
1927
+ * @memberof PagesApi
1928
+ */
1929
+ exportPages(requestParameters, options) {
1930
+ return PagesApiFp(this.configuration).exportPages(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
1931
+ }
1713
1932
  /**
1714
1933
  *
1715
1934
  * @summary Get website page
@@ -1734,7 +1953,7 @@ export class PagesApi extends BaseAPI {
1734
1953
  }
1735
1954
  /**
1736
1955
  * AI SEO optimises pages by a set of given IDs.
1737
- * @summary AI SEO optimise pages.
1956
+ * @summary AI SEO optimise pages
1738
1957
  * @param {PagesApiSeoOptimisePagesRequest} requestParameters Request parameters.
1739
1958
  * @param {*} [options] Override http request option.
1740
1959
  * @throws {RequiredError}
@@ -2019,6 +2238,288 @@ export class PaymentApi extends BaseAPI {
2019
2238
  return PaymentApiFp(this.configuration).getStripePaymentAccount(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
2020
2239
  }
2021
2240
  }
2241
+ /**
2242
+ * ReviewsApi - axios parameter creator
2243
+ * @export
2244
+ */
2245
+ export const ReviewsApiAxiosParamCreator = function (configuration) {
2246
+ return {
2247
+ /**
2248
+ *
2249
+ * @summary Get review
2250
+ * @param {string} project What project it is
2251
+ * @param {string} reviewId Review\'s unique identifier
2252
+ * @param {*} [options] Override http request option.
2253
+ * @throws {RequiredError}
2254
+ */
2255
+ getReview: (project_1, reviewId_1, ...args_1) => __awaiter(this, [project_1, reviewId_1, ...args_1], void 0, function* (project, reviewId, options = {}) {
2256
+ // verify required parameter 'project' is not null or undefined
2257
+ assertParamExists('getReview', 'project', project);
2258
+ // verify required parameter 'reviewId' is not null or undefined
2259
+ assertParamExists('getReview', 'reviewId', reviewId);
2260
+ const localVarPath = `/v1/website/reviews/{reviewId}`
2261
+ .replace(`{${"reviewId"}}`, encodeURIComponent(String(reviewId)));
2262
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2263
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2264
+ let baseOptions;
2265
+ if (configuration) {
2266
+ baseOptions = configuration.baseOptions;
2267
+ }
2268
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2269
+ const localVarHeaderParameter = {};
2270
+ const localVarQueryParameter = {};
2271
+ // authentication session-oauth required
2272
+ // oauth required
2273
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
2274
+ // authentication api-key required
2275
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
2276
+ if (project !== undefined) {
2277
+ localVarQueryParameter['project'] = project;
2278
+ }
2279
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2280
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2281
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2282
+ return {
2283
+ url: toPathString(localVarUrlObj),
2284
+ options: localVarRequestOptions,
2285
+ };
2286
+ }),
2287
+ /**
2288
+ *
2289
+ * @summary List Reviews
2290
+ * @param {string} project What project it is
2291
+ * @param {number} [pageToken] Page reference token
2292
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
2293
+ * @param {string} [search] Search term to filter results
2294
+ * @param {*} [options] Override http request option.
2295
+ * @throws {RequiredError}
2296
+ */
2297
+ listReviews: (project_1, pageToken_1, pageSize_1, search_1, ...args_1) => __awaiter(this, [project_1, pageToken_1, pageSize_1, search_1, ...args_1], void 0, function* (project, pageToken, pageSize, search, options = {}) {
2298
+ // verify required parameter 'project' is not null or undefined
2299
+ assertParamExists('listReviews', 'project', project);
2300
+ const localVarPath = `/v1/website/reviews`;
2301
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2302
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2303
+ let baseOptions;
2304
+ if (configuration) {
2305
+ baseOptions = configuration.baseOptions;
2306
+ }
2307
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2308
+ const localVarHeaderParameter = {};
2309
+ const localVarQueryParameter = {};
2310
+ // authentication session-oauth required
2311
+ // oauth required
2312
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
2313
+ // authentication api-key required
2314
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
2315
+ if (project !== undefined) {
2316
+ localVarQueryParameter['project'] = project;
2317
+ }
2318
+ if (pageToken !== undefined) {
2319
+ localVarQueryParameter['pageToken'] = pageToken;
2320
+ }
2321
+ if (pageSize !== undefined) {
2322
+ localVarQueryParameter['pageSize'] = pageSize;
2323
+ }
2324
+ if (search !== undefined) {
2325
+ localVarQueryParameter['search'] = search;
2326
+ }
2327
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2328
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2329
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2330
+ return {
2331
+ url: toPathString(localVarUrlObj),
2332
+ options: localVarRequestOptions,
2333
+ };
2334
+ }),
2335
+ /**
2336
+ *
2337
+ * @summary Moderate review
2338
+ * @param {string} project What project it is
2339
+ * @param {string} reviewId Review\'s unique identifier
2340
+ * @param {ModerateReviewRequest} [moderateReviewRequest]
2341
+ * @param {*} [options] Override http request option.
2342
+ * @throws {RequiredError}
2343
+ */
2344
+ moderateReview: (project_1, reviewId_1, moderateReviewRequest_1, ...args_1) => __awaiter(this, [project_1, reviewId_1, moderateReviewRequest_1, ...args_1], void 0, function* (project, reviewId, moderateReviewRequest, options = {}) {
2345
+ // verify required parameter 'project' is not null or undefined
2346
+ assertParamExists('moderateReview', 'project', project);
2347
+ // verify required parameter 'reviewId' is not null or undefined
2348
+ assertParamExists('moderateReview', 'reviewId', reviewId);
2349
+ const localVarPath = `/v1/website/reviews/{reviewId}/moderate`
2350
+ .replace(`{${"reviewId"}}`, encodeURIComponent(String(reviewId)));
2351
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2352
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2353
+ let baseOptions;
2354
+ if (configuration) {
2355
+ baseOptions = configuration.baseOptions;
2356
+ }
2357
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
2358
+ const localVarHeaderParameter = {};
2359
+ const localVarQueryParameter = {};
2360
+ // authentication session-oauth required
2361
+ // oauth required
2362
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
2363
+ // authentication api-key required
2364
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
2365
+ if (project !== undefined) {
2366
+ localVarQueryParameter['project'] = project;
2367
+ }
2368
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2369
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2370
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2371
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2372
+ localVarRequestOptions.data = serializeDataIfNeeded(moderateReviewRequest, localVarRequestOptions, configuration);
2373
+ return {
2374
+ url: toPathString(localVarUrlObj),
2375
+ options: localVarRequestOptions,
2376
+ };
2377
+ }),
2378
+ };
2379
+ };
2380
+ /**
2381
+ * ReviewsApi - functional programming interface
2382
+ * @export
2383
+ */
2384
+ export const ReviewsApiFp = function (configuration) {
2385
+ const localVarAxiosParamCreator = ReviewsApiAxiosParamCreator(configuration);
2386
+ return {
2387
+ /**
2388
+ *
2389
+ * @summary Get review
2390
+ * @param {string} project What project it is
2391
+ * @param {string} reviewId Review\'s unique identifier
2392
+ * @param {*} [options] Override http request option.
2393
+ * @throws {RequiredError}
2394
+ */
2395
+ getReview(project, reviewId, options) {
2396
+ return __awaiter(this, void 0, void 0, function* () {
2397
+ var _a, _b, _c;
2398
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getReview(project, reviewId, options);
2399
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2400
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ReviewsApi.getReview']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2401
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2402
+ });
2403
+ },
2404
+ /**
2405
+ *
2406
+ * @summary List Reviews
2407
+ * @param {string} project What project it is
2408
+ * @param {number} [pageToken] Page reference token
2409
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
2410
+ * @param {string} [search] Search term to filter results
2411
+ * @param {*} [options] Override http request option.
2412
+ * @throws {RequiredError}
2413
+ */
2414
+ listReviews(project, pageToken, pageSize, search, options) {
2415
+ return __awaiter(this, void 0, void 0, function* () {
2416
+ var _a, _b, _c;
2417
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listReviews(project, pageToken, pageSize, search, options);
2418
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2419
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ReviewsApi.listReviews']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2420
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2421
+ });
2422
+ },
2423
+ /**
2424
+ *
2425
+ * @summary Moderate review
2426
+ * @param {string} project What project it is
2427
+ * @param {string} reviewId Review\'s unique identifier
2428
+ * @param {ModerateReviewRequest} [moderateReviewRequest]
2429
+ * @param {*} [options] Override http request option.
2430
+ * @throws {RequiredError}
2431
+ */
2432
+ moderateReview(project, reviewId, moderateReviewRequest, options) {
2433
+ return __awaiter(this, void 0, void 0, function* () {
2434
+ var _a, _b, _c;
2435
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.moderateReview(project, reviewId, moderateReviewRequest, options);
2436
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2437
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ReviewsApi.moderateReview']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2438
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2439
+ });
2440
+ },
2441
+ };
2442
+ };
2443
+ /**
2444
+ * ReviewsApi - factory interface
2445
+ * @export
2446
+ */
2447
+ export const ReviewsApiFactory = function (configuration, basePath, axios) {
2448
+ const localVarFp = ReviewsApiFp(configuration);
2449
+ return {
2450
+ /**
2451
+ *
2452
+ * @summary Get review
2453
+ * @param {ReviewsApiGetReviewRequest} requestParameters Request parameters.
2454
+ * @param {*} [options] Override http request option.
2455
+ * @throws {RequiredError}
2456
+ */
2457
+ getReview(requestParameters, options) {
2458
+ return localVarFp.getReview(requestParameters.project, requestParameters.reviewId, options).then((request) => request(axios, basePath));
2459
+ },
2460
+ /**
2461
+ *
2462
+ * @summary List Reviews
2463
+ * @param {ReviewsApiListReviewsRequest} requestParameters Request parameters.
2464
+ * @param {*} [options] Override http request option.
2465
+ * @throws {RequiredError}
2466
+ */
2467
+ listReviews(requestParameters, options) {
2468
+ return localVarFp.listReviews(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
2469
+ },
2470
+ /**
2471
+ *
2472
+ * @summary Moderate review
2473
+ * @param {ReviewsApiModerateReviewRequest} requestParameters Request parameters.
2474
+ * @param {*} [options] Override http request option.
2475
+ * @throws {RequiredError}
2476
+ */
2477
+ moderateReview(requestParameters, options) {
2478
+ return localVarFp.moderateReview(requestParameters.project, requestParameters.reviewId, requestParameters.moderateReviewRequest, options).then((request) => request(axios, basePath));
2479
+ },
2480
+ };
2481
+ };
2482
+ /**
2483
+ * ReviewsApi - object-oriented interface
2484
+ * @export
2485
+ * @class ReviewsApi
2486
+ * @extends {BaseAPI}
2487
+ */
2488
+ export class ReviewsApi extends BaseAPI {
2489
+ /**
2490
+ *
2491
+ * @summary Get review
2492
+ * @param {ReviewsApiGetReviewRequest} requestParameters Request parameters.
2493
+ * @param {*} [options] Override http request option.
2494
+ * @throws {RequiredError}
2495
+ * @memberof ReviewsApi
2496
+ */
2497
+ getReview(requestParameters, options) {
2498
+ return ReviewsApiFp(this.configuration).getReview(requestParameters.project, requestParameters.reviewId, options).then((request) => request(this.axios, this.basePath));
2499
+ }
2500
+ /**
2501
+ *
2502
+ * @summary List Reviews
2503
+ * @param {ReviewsApiListReviewsRequest} requestParameters Request parameters.
2504
+ * @param {*} [options] Override http request option.
2505
+ * @throws {RequiredError}
2506
+ * @memberof ReviewsApi
2507
+ */
2508
+ listReviews(requestParameters, options) {
2509
+ return ReviewsApiFp(this.configuration).listReviews(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
2510
+ }
2511
+ /**
2512
+ *
2513
+ * @summary Moderate review
2514
+ * @param {ReviewsApiModerateReviewRequest} requestParameters Request parameters.
2515
+ * @param {*} [options] Override http request option.
2516
+ * @throws {RequiredError}
2517
+ * @memberof ReviewsApi
2518
+ */
2519
+ moderateReview(requestParameters, options) {
2520
+ return ReviewsApiFp(this.configuration).moderateReview(requestParameters.project, requestParameters.reviewId, requestParameters.moderateReviewRequest, options).then((request) => request(this.axios, this.basePath));
2521
+ }
2522
+ }
2022
2523
  /**
2023
2524
  * RoutesApi - axios parameter creator
2024
2525
  * @export
@@ -2,7 +2,7 @@
2
2
  * Website API
3
3
  * Manage your PodOS Website
4
4
  *
5
- * The version of the OpenAPI document: 0.17.0
5
+ * The version of the OpenAPI document: 0.19.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).