@teemill/website 0.17.0 → 0.18.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/api.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Website API
6
6
  * Manage your PodOS Website
7
7
  *
8
- * The version of the OpenAPI document: 0.17.0
8
+ * The version of the OpenAPI document: 0.18.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -121,6 +121,42 @@ exports.UpdateMenuRequestItemSubmenuInnerImageTextShadowEnum = {
121
121
  */
122
122
  const BlogsApiAxiosParamCreator = function (configuration) {
123
123
  return {
124
+ /**
125
+ * Export blogs as a CSV file.
126
+ * @summary Export blogs
127
+ * @param {string} project What project it is
128
+ * @param {*} [options] Override http request option.
129
+ * @throws {RequiredError}
130
+ */
131
+ exportBlogs: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
132
+ // verify required parameter 'project' is not null or undefined
133
+ (0, common_1.assertParamExists)('exportBlogs', 'project', project);
134
+ const localVarPath = `/v1/website/blogs/export`;
135
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
136
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
137
+ let baseOptions;
138
+ if (configuration) {
139
+ baseOptions = configuration.baseOptions;
140
+ }
141
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
142
+ const localVarHeaderParameter = {};
143
+ const localVarQueryParameter = {};
144
+ // authentication session-oauth required
145
+ // oauth required
146
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
147
+ // authentication api-key required
148
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
149
+ if (project !== undefined) {
150
+ localVarQueryParameter['project'] = project;
151
+ }
152
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
153
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
154
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
155
+ return {
156
+ url: (0, common_1.toPathString)(localVarUrlObj),
157
+ options: localVarRequestOptions,
158
+ };
159
+ }),
124
160
  /**
125
161
  *
126
162
  * @summary Get website blog post
@@ -313,6 +349,22 @@ exports.BlogsApiAxiosParamCreator = BlogsApiAxiosParamCreator;
313
349
  const BlogsApiFp = function (configuration) {
314
350
  const localVarAxiosParamCreator = (0, exports.BlogsApiAxiosParamCreator)(configuration);
315
351
  return {
352
+ /**
353
+ * Export blogs as a CSV file.
354
+ * @summary Export blogs
355
+ * @param {string} project What project it is
356
+ * @param {*} [options] Override http request option.
357
+ * @throws {RequiredError}
358
+ */
359
+ exportBlogs(project, options) {
360
+ return __awaiter(this, void 0, void 0, function* () {
361
+ var _a, _b, _c;
362
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.exportBlogs(project, options);
363
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
364
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BlogsApi.exportBlogs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
365
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
366
+ });
367
+ },
316
368
  /**
317
369
  *
318
370
  * @summary Get website blog post
@@ -397,6 +449,16 @@ exports.BlogsApiFp = BlogsApiFp;
397
449
  const BlogsApiFactory = function (configuration, basePath, axios) {
398
450
  const localVarFp = (0, exports.BlogsApiFp)(configuration);
399
451
  return {
452
+ /**
453
+ * Export blogs as a CSV file.
454
+ * @summary Export blogs
455
+ * @param {BlogsApiExportBlogsRequest} requestParameters Request parameters.
456
+ * @param {*} [options] Override http request option.
457
+ * @throws {RequiredError}
458
+ */
459
+ exportBlogs(requestParameters, options) {
460
+ return localVarFp.exportBlogs(requestParameters.project, options).then((request) => request(axios, basePath));
461
+ },
400
462
  /**
401
463
  *
402
464
  * @summary Get website blog post
@@ -447,6 +509,17 @@ exports.BlogsApiFactory = BlogsApiFactory;
447
509
  * @extends {BaseAPI}
448
510
  */
449
511
  class BlogsApi extends base_1.BaseAPI {
512
+ /**
513
+ * Export blogs as a CSV file.
514
+ * @summary Export blogs
515
+ * @param {BlogsApiExportBlogsRequest} requestParameters Request parameters.
516
+ * @param {*} [options] Override http request option.
517
+ * @throws {RequiredError}
518
+ * @memberof BlogsApi
519
+ */
520
+ exportBlogs(requestParameters, options) {
521
+ return (0, exports.BlogsApiFp)(this.configuration).exportBlogs(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
522
+ }
450
523
  /**
451
524
  *
452
525
  * @summary Get website blog post
@@ -499,6 +572,42 @@ exports.BlogsApi = BlogsApi;
499
572
  */
500
573
  const CollectionsApiAxiosParamCreator = function (configuration) {
501
574
  return {
575
+ /**
576
+ * Export collections as a CSV file.
577
+ * @summary Export collections
578
+ * @param {string} project What project it is
579
+ * @param {*} [options] Override http request option.
580
+ * @throws {RequiredError}
581
+ */
582
+ exportCollections: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
583
+ // verify required parameter 'project' is not null or undefined
584
+ (0, common_1.assertParamExists)('exportCollections', 'project', project);
585
+ const localVarPath = `/v1/website/collections/export`;
586
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
587
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
588
+ let baseOptions;
589
+ if (configuration) {
590
+ baseOptions = configuration.baseOptions;
591
+ }
592
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
593
+ const localVarHeaderParameter = {};
594
+ const localVarQueryParameter = {};
595
+ // authentication session-oauth required
596
+ // oauth required
597
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
598
+ // authentication api-key required
599
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
600
+ if (project !== undefined) {
601
+ localVarQueryParameter['project'] = project;
602
+ }
603
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
604
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
605
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
606
+ return {
607
+ url: (0, common_1.toPathString)(localVarUrlObj),
608
+ options: localVarRequestOptions,
609
+ };
610
+ }),
502
611
  /**
503
612
  *
504
613
  * @summary Get website collection
@@ -589,7 +698,7 @@ const CollectionsApiAxiosParamCreator = function (configuration) {
589
698
  }),
590
699
  /**
591
700
  * AI SEO optimises collections by a set of given IDs.
592
- * @summary AI SEO optimise collections.
701
+ * @summary AI SEO optimise collections
593
702
  * @param {string} project What project it is
594
703
  * @param {SeoOptimiseCollectionsRequest} [seoOptimiseCollectionsRequest] A set of collection IDs to AI SEO optimise.
595
704
  * @param {*} [options] Override http request option.
@@ -730,6 +839,22 @@ exports.CollectionsApiAxiosParamCreator = CollectionsApiAxiosParamCreator;
730
839
  const CollectionsApiFp = function (configuration) {
731
840
  const localVarAxiosParamCreator = (0, exports.CollectionsApiAxiosParamCreator)(configuration);
732
841
  return {
842
+ /**
843
+ * Export collections as a CSV file.
844
+ * @summary Export collections
845
+ * @param {string} project What project it is
846
+ * @param {*} [options] Override http request option.
847
+ * @throws {RequiredError}
848
+ */
849
+ exportCollections(project, options) {
850
+ return __awaiter(this, void 0, void 0, function* () {
851
+ var _a, _b, _c;
852
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.exportCollections(project, options);
853
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
854
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CollectionsApi.exportCollections']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
855
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
856
+ });
857
+ },
733
858
  /**
734
859
  *
735
860
  * @summary Get website collection
@@ -768,7 +893,7 @@ const CollectionsApiFp = function (configuration) {
768
893
  },
769
894
  /**
770
895
  * AI SEO optimises collections by a set of given IDs.
771
- * @summary AI SEO optimise collections.
896
+ * @summary AI SEO optimise collections
772
897
  * @param {string} project What project it is
773
898
  * @param {SeoOptimiseCollectionsRequest} [seoOptimiseCollectionsRequest] A set of collection IDs to AI SEO optimise.
774
899
  * @param {*} [options] Override http request option.
@@ -831,6 +956,16 @@ exports.CollectionsApiFp = CollectionsApiFp;
831
956
  const CollectionsApiFactory = function (configuration, basePath, axios) {
832
957
  const localVarFp = (0, exports.CollectionsApiFp)(configuration);
833
958
  return {
959
+ /**
960
+ * Export collections as a CSV file.
961
+ * @summary Export collections
962
+ * @param {CollectionsApiExportCollectionsRequest} requestParameters Request parameters.
963
+ * @param {*} [options] Override http request option.
964
+ * @throws {RequiredError}
965
+ */
966
+ exportCollections(requestParameters, options) {
967
+ return localVarFp.exportCollections(requestParameters.project, options).then((request) => request(axios, basePath));
968
+ },
834
969
  /**
835
970
  *
836
971
  * @summary Get website collection
@@ -853,7 +988,7 @@ const CollectionsApiFactory = function (configuration, basePath, axios) {
853
988
  },
854
989
  /**
855
990
  * AI SEO optimises collections by a set of given IDs.
856
- * @summary AI SEO optimise collections.
991
+ * @summary AI SEO optimise collections
857
992
  * @param {CollectionsApiSeoOptimiseCollectionsRequest} requestParameters Request parameters.
858
993
  * @param {*} [options] Override http request option.
859
994
  * @throws {RequiredError}
@@ -891,6 +1026,17 @@ exports.CollectionsApiFactory = CollectionsApiFactory;
891
1026
  * @extends {BaseAPI}
892
1027
  */
893
1028
  class CollectionsApi extends base_1.BaseAPI {
1029
+ /**
1030
+ * Export collections as a CSV file.
1031
+ * @summary Export collections
1032
+ * @param {CollectionsApiExportCollectionsRequest} requestParameters Request parameters.
1033
+ * @param {*} [options] Override http request option.
1034
+ * @throws {RequiredError}
1035
+ * @memberof CollectionsApi
1036
+ */
1037
+ exportCollections(requestParameters, options) {
1038
+ return (0, exports.CollectionsApiFp)(this.configuration).exportCollections(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
1039
+ }
894
1040
  /**
895
1041
  *
896
1042
  * @summary Get website collection
@@ -915,7 +1061,7 @@ class CollectionsApi extends base_1.BaseAPI {
915
1061
  }
916
1062
  /**
917
1063
  * AI SEO optimises collections by a set of given IDs.
918
- * @summary AI SEO optimise collections.
1064
+ * @summary AI SEO optimise collections
919
1065
  * @param {CollectionsApiSeoOptimiseCollectionsRequest} requestParameters Request parameters.
920
1066
  * @param {*} [options] Override http request option.
921
1067
  * @throws {RequiredError}
@@ -1340,6 +1486,42 @@ exports.MenuApi = MenuApi;
1340
1486
  */
1341
1487
  const PagesApiAxiosParamCreator = function (configuration) {
1342
1488
  return {
1489
+ /**
1490
+ * Export pages as a CSV file.
1491
+ * @summary Export pages
1492
+ * @param {string} project What project it is
1493
+ * @param {*} [options] Override http request option.
1494
+ * @throws {RequiredError}
1495
+ */
1496
+ exportPages: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
1497
+ // verify required parameter 'project' is not null or undefined
1498
+ (0, common_1.assertParamExists)('exportPages', 'project', project);
1499
+ const localVarPath = `/v1/website/pages/export`;
1500
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1501
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1502
+ let baseOptions;
1503
+ if (configuration) {
1504
+ baseOptions = configuration.baseOptions;
1505
+ }
1506
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1507
+ const localVarHeaderParameter = {};
1508
+ const localVarQueryParameter = {};
1509
+ // authentication session-oauth required
1510
+ // oauth required
1511
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
1512
+ // authentication api-key required
1513
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1514
+ if (project !== undefined) {
1515
+ localVarQueryParameter['project'] = project;
1516
+ }
1517
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1518
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1519
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1520
+ return {
1521
+ url: (0, common_1.toPathString)(localVarUrlObj),
1522
+ options: localVarRequestOptions,
1523
+ };
1524
+ }),
1343
1525
  /**
1344
1526
  *
1345
1527
  * @summary Get website page
@@ -1430,7 +1612,7 @@ const PagesApiAxiosParamCreator = function (configuration) {
1430
1612
  }),
1431
1613
  /**
1432
1614
  * AI SEO optimises pages by a set of given IDs.
1433
- * @summary AI SEO optimise pages.
1615
+ * @summary AI SEO optimise pages
1434
1616
  * @param {string} project What project it is
1435
1617
  * @param {SeoOptimisePagesRequest} [seoOptimisePagesRequest] A set of page IDs to AI SEO optimise.
1436
1618
  * @param {*} [options] Override http request option.
@@ -1571,6 +1753,22 @@ exports.PagesApiAxiosParamCreator = PagesApiAxiosParamCreator;
1571
1753
  const PagesApiFp = function (configuration) {
1572
1754
  const localVarAxiosParamCreator = (0, exports.PagesApiAxiosParamCreator)(configuration);
1573
1755
  return {
1756
+ /**
1757
+ * Export pages as a CSV file.
1758
+ * @summary Export pages
1759
+ * @param {string} project What project it is
1760
+ * @param {*} [options] Override http request option.
1761
+ * @throws {RequiredError}
1762
+ */
1763
+ exportPages(project, options) {
1764
+ return __awaiter(this, void 0, void 0, function* () {
1765
+ var _a, _b, _c;
1766
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.exportPages(project, options);
1767
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1768
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PagesApi.exportPages']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1769
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1770
+ });
1771
+ },
1574
1772
  /**
1575
1773
  *
1576
1774
  * @summary Get website page
@@ -1609,7 +1807,7 @@ const PagesApiFp = function (configuration) {
1609
1807
  },
1610
1808
  /**
1611
1809
  * AI SEO optimises pages by a set of given IDs.
1612
- * @summary AI SEO optimise pages.
1810
+ * @summary AI SEO optimise pages
1613
1811
  * @param {string} project What project it is
1614
1812
  * @param {SeoOptimisePagesRequest} [seoOptimisePagesRequest] A set of page IDs to AI SEO optimise.
1615
1813
  * @param {*} [options] Override http request option.
@@ -1672,6 +1870,16 @@ exports.PagesApiFp = PagesApiFp;
1672
1870
  const PagesApiFactory = function (configuration, basePath, axios) {
1673
1871
  const localVarFp = (0, exports.PagesApiFp)(configuration);
1674
1872
  return {
1873
+ /**
1874
+ * Export pages as a CSV file.
1875
+ * @summary Export pages
1876
+ * @param {PagesApiExportPagesRequest} requestParameters Request parameters.
1877
+ * @param {*} [options] Override http request option.
1878
+ * @throws {RequiredError}
1879
+ */
1880
+ exportPages(requestParameters, options) {
1881
+ return localVarFp.exportPages(requestParameters.project, options).then((request) => request(axios, basePath));
1882
+ },
1675
1883
  /**
1676
1884
  *
1677
1885
  * @summary Get website page
@@ -1694,7 +1902,7 @@ const PagesApiFactory = function (configuration, basePath, axios) {
1694
1902
  },
1695
1903
  /**
1696
1904
  * AI SEO optimises pages by a set of given IDs.
1697
- * @summary AI SEO optimise pages.
1905
+ * @summary AI SEO optimise pages
1698
1906
  * @param {PagesApiSeoOptimisePagesRequest} requestParameters Request parameters.
1699
1907
  * @param {*} [options] Override http request option.
1700
1908
  * @throws {RequiredError}
@@ -1732,6 +1940,17 @@ exports.PagesApiFactory = PagesApiFactory;
1732
1940
  * @extends {BaseAPI}
1733
1941
  */
1734
1942
  class PagesApi extends base_1.BaseAPI {
1943
+ /**
1944
+ * Export pages as a CSV file.
1945
+ * @summary Export pages
1946
+ * @param {PagesApiExportPagesRequest} requestParameters Request parameters.
1947
+ * @param {*} [options] Override http request option.
1948
+ * @throws {RequiredError}
1949
+ * @memberof PagesApi
1950
+ */
1951
+ exportPages(requestParameters, options) {
1952
+ return (0, exports.PagesApiFp)(this.configuration).exportPages(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
1953
+ }
1735
1954
  /**
1736
1955
  *
1737
1956
  * @summary Get website page
@@ -1756,7 +1975,7 @@ class PagesApi extends base_1.BaseAPI {
1756
1975
  }
1757
1976
  /**
1758
1977
  * AI SEO optimises pages by a set of given IDs.
1759
- * @summary AI SEO optimise pages.
1978
+ * @summary AI SEO optimise pages
1760
1979
  * @param {PagesApiSeoOptimisePagesRequest} requestParameters Request parameters.
1761
1980
  * @param {*} [options] Override http request option.
1762
1981
  * @throws {RequiredError}
package/dist/base.d.ts CHANGED
@@ -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.18.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/base.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Website API
6
6
  * Manage your PodOS Website
7
7
  *
8
- * The version of the OpenAPI document: 0.17.0
8
+ * The version of the OpenAPI document: 0.18.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.d.ts CHANGED
@@ -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.18.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Website API
6
6
  * Manage your PodOS Website
7
7
  *
8
- * The version of the OpenAPI document: 0.17.0
8
+ * The version of the OpenAPI document: 0.18.0
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
  * 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.18.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Website API
6
6
  * Manage your PodOS Website
7
7
  *
8
- * The version of the OpenAPI document: 0.17.0
8
+ * The version of the OpenAPI document: 0.18.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).