@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/README.md +2 -2
- package/api.ts +870 -10
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +547 -9
- package/dist/api.js +516 -10
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +547 -9
- package/dist/esm/api.js +510 -9
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
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.
|
|
8
|
+
* The version of the OpenAPI document: 0.19.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,7 +22,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
25
|
+
exports.SearchApiFp = exports.SearchApiAxiosParamCreator = exports.RoutesApi = exports.RoutesApiFactory = exports.RoutesApiFp = exports.RoutesApiAxiosParamCreator = exports.ReviewsApi = exports.ReviewsApiFactory = exports.ReviewsApiFp = exports.ReviewsApiAxiosParamCreator = exports.PaymentApi = exports.PaymentApiFactory = exports.PaymentApiFp = exports.PaymentApiAxiosParamCreator = exports.PagesApi = exports.PagesApiFactory = exports.PagesApiFp = exports.PagesApiAxiosParamCreator = exports.MenuApi = exports.MenuApiFactory = exports.MenuApiFp = exports.MenuApiAxiosParamCreator = exports.CrossSellApi = exports.CrossSellApiFactory = exports.CrossSellApiFp = exports.CrossSellApiAxiosParamCreator = exports.CollectionsApi = exports.CollectionsApiFactory = exports.CollectionsApiFp = exports.CollectionsApiAxiosParamCreator = exports.BlogsApi = exports.BlogsApiFactory = exports.BlogsApiFp = exports.BlogsApiAxiosParamCreator = exports.UpdateMenuRequestItemSubmenuInnerImageTextShadowEnum = exports.UpdateMenuRequestItemSubmenuInnerImageTextAlignmentEnum = exports.UpdateMenuRequestItemSubmenuInnerImageButtonWidthEnum = exports.UpdateMenuRequestItemSubmenuInnerImageButtonBorderRadiusEnum = exports.UpdateMenuRequestItemSubmenuInnerModeEnum = exports.SubmenuInnerImageTextShadowEnum = exports.SubmenuInnerImageTextAlignmentEnum = exports.SubmenuInnerImageButtonWidthEnum = exports.SubmenuInnerImageButtonBorderRadiusEnum = exports.SubmenuInnerImageBorderRadiusEnum = exports.SubmenuInnerModeEnum = exports.PriceCurrencyCodeEnum = exports.PaymentAccountMethodEnum = exports.AttributeThumbnailTypeEnum = exports.ApplicationPlacementEnum = exports.ApplicationTechnologyEnum = void 0;
|
|
26
|
+
exports.SearchApi = exports.SearchApiFactory = void 0;
|
|
26
27
|
const axios_1 = require("axios");
|
|
27
28
|
// Some imports not used depending on template conditions
|
|
28
29
|
// @ts-ignore
|
|
@@ -121,6 +122,42 @@ exports.UpdateMenuRequestItemSubmenuInnerImageTextShadowEnum = {
|
|
|
121
122
|
*/
|
|
122
123
|
const BlogsApiAxiosParamCreator = function (configuration) {
|
|
123
124
|
return {
|
|
125
|
+
/**
|
|
126
|
+
* Export blogs as a CSV file.
|
|
127
|
+
* @summary Export blogs
|
|
128
|
+
* @param {string} project What project it is
|
|
129
|
+
* @param {*} [options] Override http request option.
|
|
130
|
+
* @throws {RequiredError}
|
|
131
|
+
*/
|
|
132
|
+
exportBlogs: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
|
|
133
|
+
// verify required parameter 'project' is not null or undefined
|
|
134
|
+
(0, common_1.assertParamExists)('exportBlogs', 'project', project);
|
|
135
|
+
const localVarPath = `/v1/website/blogs/export`;
|
|
136
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
137
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
138
|
+
let baseOptions;
|
|
139
|
+
if (configuration) {
|
|
140
|
+
baseOptions = configuration.baseOptions;
|
|
141
|
+
}
|
|
142
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
143
|
+
const localVarHeaderParameter = {};
|
|
144
|
+
const localVarQueryParameter = {};
|
|
145
|
+
// authentication session-oauth required
|
|
146
|
+
// oauth required
|
|
147
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
148
|
+
// authentication api-key required
|
|
149
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
150
|
+
if (project !== undefined) {
|
|
151
|
+
localVarQueryParameter['project'] = project;
|
|
152
|
+
}
|
|
153
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
154
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
155
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
156
|
+
return {
|
|
157
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
158
|
+
options: localVarRequestOptions,
|
|
159
|
+
};
|
|
160
|
+
}),
|
|
124
161
|
/**
|
|
125
162
|
*
|
|
126
163
|
* @summary Get website blog post
|
|
@@ -313,6 +350,22 @@ exports.BlogsApiAxiosParamCreator = BlogsApiAxiosParamCreator;
|
|
|
313
350
|
const BlogsApiFp = function (configuration) {
|
|
314
351
|
const localVarAxiosParamCreator = (0, exports.BlogsApiAxiosParamCreator)(configuration);
|
|
315
352
|
return {
|
|
353
|
+
/**
|
|
354
|
+
* Export blogs as a CSV file.
|
|
355
|
+
* @summary Export blogs
|
|
356
|
+
* @param {string} project What project it is
|
|
357
|
+
* @param {*} [options] Override http request option.
|
|
358
|
+
* @throws {RequiredError}
|
|
359
|
+
*/
|
|
360
|
+
exportBlogs(project, options) {
|
|
361
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
362
|
+
var _a, _b, _c;
|
|
363
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.exportBlogs(project, options);
|
|
364
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
365
|
+
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;
|
|
366
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
367
|
+
});
|
|
368
|
+
},
|
|
316
369
|
/**
|
|
317
370
|
*
|
|
318
371
|
* @summary Get website blog post
|
|
@@ -397,6 +450,16 @@ exports.BlogsApiFp = BlogsApiFp;
|
|
|
397
450
|
const BlogsApiFactory = function (configuration, basePath, axios) {
|
|
398
451
|
const localVarFp = (0, exports.BlogsApiFp)(configuration);
|
|
399
452
|
return {
|
|
453
|
+
/**
|
|
454
|
+
* Export blogs as a CSV file.
|
|
455
|
+
* @summary Export blogs
|
|
456
|
+
* @param {BlogsApiExportBlogsRequest} requestParameters Request parameters.
|
|
457
|
+
* @param {*} [options] Override http request option.
|
|
458
|
+
* @throws {RequiredError}
|
|
459
|
+
*/
|
|
460
|
+
exportBlogs(requestParameters, options) {
|
|
461
|
+
return localVarFp.exportBlogs(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
462
|
+
},
|
|
400
463
|
/**
|
|
401
464
|
*
|
|
402
465
|
* @summary Get website blog post
|
|
@@ -447,6 +510,17 @@ exports.BlogsApiFactory = BlogsApiFactory;
|
|
|
447
510
|
* @extends {BaseAPI}
|
|
448
511
|
*/
|
|
449
512
|
class BlogsApi extends base_1.BaseAPI {
|
|
513
|
+
/**
|
|
514
|
+
* Export blogs as a CSV file.
|
|
515
|
+
* @summary Export blogs
|
|
516
|
+
* @param {BlogsApiExportBlogsRequest} requestParameters Request parameters.
|
|
517
|
+
* @param {*} [options] Override http request option.
|
|
518
|
+
* @throws {RequiredError}
|
|
519
|
+
* @memberof BlogsApi
|
|
520
|
+
*/
|
|
521
|
+
exportBlogs(requestParameters, options) {
|
|
522
|
+
return (0, exports.BlogsApiFp)(this.configuration).exportBlogs(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
523
|
+
}
|
|
450
524
|
/**
|
|
451
525
|
*
|
|
452
526
|
* @summary Get website blog post
|
|
@@ -499,6 +573,42 @@ exports.BlogsApi = BlogsApi;
|
|
|
499
573
|
*/
|
|
500
574
|
const CollectionsApiAxiosParamCreator = function (configuration) {
|
|
501
575
|
return {
|
|
576
|
+
/**
|
|
577
|
+
* Export collections as a CSV file.
|
|
578
|
+
* @summary Export collections
|
|
579
|
+
* @param {string} project What project it is
|
|
580
|
+
* @param {*} [options] Override http request option.
|
|
581
|
+
* @throws {RequiredError}
|
|
582
|
+
*/
|
|
583
|
+
exportCollections: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
|
|
584
|
+
// verify required parameter 'project' is not null or undefined
|
|
585
|
+
(0, common_1.assertParamExists)('exportCollections', 'project', project);
|
|
586
|
+
const localVarPath = `/v1/website/collections/export`;
|
|
587
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
588
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
589
|
+
let baseOptions;
|
|
590
|
+
if (configuration) {
|
|
591
|
+
baseOptions = configuration.baseOptions;
|
|
592
|
+
}
|
|
593
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
594
|
+
const localVarHeaderParameter = {};
|
|
595
|
+
const localVarQueryParameter = {};
|
|
596
|
+
// authentication session-oauth required
|
|
597
|
+
// oauth required
|
|
598
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
599
|
+
// authentication api-key required
|
|
600
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
601
|
+
if (project !== undefined) {
|
|
602
|
+
localVarQueryParameter['project'] = project;
|
|
603
|
+
}
|
|
604
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
605
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
606
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
607
|
+
return {
|
|
608
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
609
|
+
options: localVarRequestOptions,
|
|
610
|
+
};
|
|
611
|
+
}),
|
|
502
612
|
/**
|
|
503
613
|
*
|
|
504
614
|
* @summary Get website collection
|
|
@@ -589,7 +699,7 @@ const CollectionsApiAxiosParamCreator = function (configuration) {
|
|
|
589
699
|
}),
|
|
590
700
|
/**
|
|
591
701
|
* AI SEO optimises collections by a set of given IDs.
|
|
592
|
-
* @summary AI SEO optimise collections
|
|
702
|
+
* @summary AI SEO optimise collections
|
|
593
703
|
* @param {string} project What project it is
|
|
594
704
|
* @param {SeoOptimiseCollectionsRequest} [seoOptimiseCollectionsRequest] A set of collection IDs to AI SEO optimise.
|
|
595
705
|
* @param {*} [options] Override http request option.
|
|
@@ -730,6 +840,22 @@ exports.CollectionsApiAxiosParamCreator = CollectionsApiAxiosParamCreator;
|
|
|
730
840
|
const CollectionsApiFp = function (configuration) {
|
|
731
841
|
const localVarAxiosParamCreator = (0, exports.CollectionsApiAxiosParamCreator)(configuration);
|
|
732
842
|
return {
|
|
843
|
+
/**
|
|
844
|
+
* Export collections as a CSV file.
|
|
845
|
+
* @summary Export collections
|
|
846
|
+
* @param {string} project What project it is
|
|
847
|
+
* @param {*} [options] Override http request option.
|
|
848
|
+
* @throws {RequiredError}
|
|
849
|
+
*/
|
|
850
|
+
exportCollections(project, options) {
|
|
851
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
852
|
+
var _a, _b, _c;
|
|
853
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.exportCollections(project, options);
|
|
854
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
855
|
+
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;
|
|
856
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
857
|
+
});
|
|
858
|
+
},
|
|
733
859
|
/**
|
|
734
860
|
*
|
|
735
861
|
* @summary Get website collection
|
|
@@ -768,7 +894,7 @@ const CollectionsApiFp = function (configuration) {
|
|
|
768
894
|
},
|
|
769
895
|
/**
|
|
770
896
|
* AI SEO optimises collections by a set of given IDs.
|
|
771
|
-
* @summary AI SEO optimise collections
|
|
897
|
+
* @summary AI SEO optimise collections
|
|
772
898
|
* @param {string} project What project it is
|
|
773
899
|
* @param {SeoOptimiseCollectionsRequest} [seoOptimiseCollectionsRequest] A set of collection IDs to AI SEO optimise.
|
|
774
900
|
* @param {*} [options] Override http request option.
|
|
@@ -831,6 +957,16 @@ exports.CollectionsApiFp = CollectionsApiFp;
|
|
|
831
957
|
const CollectionsApiFactory = function (configuration, basePath, axios) {
|
|
832
958
|
const localVarFp = (0, exports.CollectionsApiFp)(configuration);
|
|
833
959
|
return {
|
|
960
|
+
/**
|
|
961
|
+
* Export collections as a CSV file.
|
|
962
|
+
* @summary Export collections
|
|
963
|
+
* @param {CollectionsApiExportCollectionsRequest} requestParameters Request parameters.
|
|
964
|
+
* @param {*} [options] Override http request option.
|
|
965
|
+
* @throws {RequiredError}
|
|
966
|
+
*/
|
|
967
|
+
exportCollections(requestParameters, options) {
|
|
968
|
+
return localVarFp.exportCollections(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
969
|
+
},
|
|
834
970
|
/**
|
|
835
971
|
*
|
|
836
972
|
* @summary Get website collection
|
|
@@ -853,7 +989,7 @@ const CollectionsApiFactory = function (configuration, basePath, axios) {
|
|
|
853
989
|
},
|
|
854
990
|
/**
|
|
855
991
|
* AI SEO optimises collections by a set of given IDs.
|
|
856
|
-
* @summary AI SEO optimise collections
|
|
992
|
+
* @summary AI SEO optimise collections
|
|
857
993
|
* @param {CollectionsApiSeoOptimiseCollectionsRequest} requestParameters Request parameters.
|
|
858
994
|
* @param {*} [options] Override http request option.
|
|
859
995
|
* @throws {RequiredError}
|
|
@@ -891,6 +1027,17 @@ exports.CollectionsApiFactory = CollectionsApiFactory;
|
|
|
891
1027
|
* @extends {BaseAPI}
|
|
892
1028
|
*/
|
|
893
1029
|
class CollectionsApi extends base_1.BaseAPI {
|
|
1030
|
+
/**
|
|
1031
|
+
* Export collections as a CSV file.
|
|
1032
|
+
* @summary Export collections
|
|
1033
|
+
* @param {CollectionsApiExportCollectionsRequest} requestParameters Request parameters.
|
|
1034
|
+
* @param {*} [options] Override http request option.
|
|
1035
|
+
* @throws {RequiredError}
|
|
1036
|
+
* @memberof CollectionsApi
|
|
1037
|
+
*/
|
|
1038
|
+
exportCollections(requestParameters, options) {
|
|
1039
|
+
return (0, exports.CollectionsApiFp)(this.configuration).exportCollections(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
1040
|
+
}
|
|
894
1041
|
/**
|
|
895
1042
|
*
|
|
896
1043
|
* @summary Get website collection
|
|
@@ -915,7 +1062,7 @@ class CollectionsApi extends base_1.BaseAPI {
|
|
|
915
1062
|
}
|
|
916
1063
|
/**
|
|
917
1064
|
* AI SEO optimises collections by a set of given IDs.
|
|
918
|
-
* @summary AI SEO optimise collections
|
|
1065
|
+
* @summary AI SEO optimise collections
|
|
919
1066
|
* @param {CollectionsApiSeoOptimiseCollectionsRequest} requestParameters Request parameters.
|
|
920
1067
|
* @param {*} [options] Override http request option.
|
|
921
1068
|
* @throws {RequiredError}
|
|
@@ -1340,6 +1487,42 @@ exports.MenuApi = MenuApi;
|
|
|
1340
1487
|
*/
|
|
1341
1488
|
const PagesApiAxiosParamCreator = function (configuration) {
|
|
1342
1489
|
return {
|
|
1490
|
+
/**
|
|
1491
|
+
* Export pages as a CSV file.
|
|
1492
|
+
* @summary Export pages
|
|
1493
|
+
* @param {string} project What project it is
|
|
1494
|
+
* @param {*} [options] Override http request option.
|
|
1495
|
+
* @throws {RequiredError}
|
|
1496
|
+
*/
|
|
1497
|
+
exportPages: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
|
|
1498
|
+
// verify required parameter 'project' is not null or undefined
|
|
1499
|
+
(0, common_1.assertParamExists)('exportPages', 'project', project);
|
|
1500
|
+
const localVarPath = `/v1/website/pages/export`;
|
|
1501
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1502
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1503
|
+
let baseOptions;
|
|
1504
|
+
if (configuration) {
|
|
1505
|
+
baseOptions = configuration.baseOptions;
|
|
1506
|
+
}
|
|
1507
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1508
|
+
const localVarHeaderParameter = {};
|
|
1509
|
+
const localVarQueryParameter = {};
|
|
1510
|
+
// authentication session-oauth required
|
|
1511
|
+
// oauth required
|
|
1512
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
1513
|
+
// authentication api-key required
|
|
1514
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1515
|
+
if (project !== undefined) {
|
|
1516
|
+
localVarQueryParameter['project'] = project;
|
|
1517
|
+
}
|
|
1518
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1519
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1520
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1521
|
+
return {
|
|
1522
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1523
|
+
options: localVarRequestOptions,
|
|
1524
|
+
};
|
|
1525
|
+
}),
|
|
1343
1526
|
/**
|
|
1344
1527
|
*
|
|
1345
1528
|
* @summary Get website page
|
|
@@ -1430,7 +1613,7 @@ const PagesApiAxiosParamCreator = function (configuration) {
|
|
|
1430
1613
|
}),
|
|
1431
1614
|
/**
|
|
1432
1615
|
* AI SEO optimises pages by a set of given IDs.
|
|
1433
|
-
* @summary AI SEO optimise pages
|
|
1616
|
+
* @summary AI SEO optimise pages
|
|
1434
1617
|
* @param {string} project What project it is
|
|
1435
1618
|
* @param {SeoOptimisePagesRequest} [seoOptimisePagesRequest] A set of page IDs to AI SEO optimise.
|
|
1436
1619
|
* @param {*} [options] Override http request option.
|
|
@@ -1571,6 +1754,22 @@ exports.PagesApiAxiosParamCreator = PagesApiAxiosParamCreator;
|
|
|
1571
1754
|
const PagesApiFp = function (configuration) {
|
|
1572
1755
|
const localVarAxiosParamCreator = (0, exports.PagesApiAxiosParamCreator)(configuration);
|
|
1573
1756
|
return {
|
|
1757
|
+
/**
|
|
1758
|
+
* Export pages as a CSV file.
|
|
1759
|
+
* @summary Export pages
|
|
1760
|
+
* @param {string} project What project it is
|
|
1761
|
+
* @param {*} [options] Override http request option.
|
|
1762
|
+
* @throws {RequiredError}
|
|
1763
|
+
*/
|
|
1764
|
+
exportPages(project, options) {
|
|
1765
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1766
|
+
var _a, _b, _c;
|
|
1767
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.exportPages(project, options);
|
|
1768
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1769
|
+
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;
|
|
1770
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1771
|
+
});
|
|
1772
|
+
},
|
|
1574
1773
|
/**
|
|
1575
1774
|
*
|
|
1576
1775
|
* @summary Get website page
|
|
@@ -1609,7 +1808,7 @@ const PagesApiFp = function (configuration) {
|
|
|
1609
1808
|
},
|
|
1610
1809
|
/**
|
|
1611
1810
|
* AI SEO optimises pages by a set of given IDs.
|
|
1612
|
-
* @summary AI SEO optimise pages
|
|
1811
|
+
* @summary AI SEO optimise pages
|
|
1613
1812
|
* @param {string} project What project it is
|
|
1614
1813
|
* @param {SeoOptimisePagesRequest} [seoOptimisePagesRequest] A set of page IDs to AI SEO optimise.
|
|
1615
1814
|
* @param {*} [options] Override http request option.
|
|
@@ -1672,6 +1871,16 @@ exports.PagesApiFp = PagesApiFp;
|
|
|
1672
1871
|
const PagesApiFactory = function (configuration, basePath, axios) {
|
|
1673
1872
|
const localVarFp = (0, exports.PagesApiFp)(configuration);
|
|
1674
1873
|
return {
|
|
1874
|
+
/**
|
|
1875
|
+
* Export pages as a CSV file.
|
|
1876
|
+
* @summary Export pages
|
|
1877
|
+
* @param {PagesApiExportPagesRequest} requestParameters Request parameters.
|
|
1878
|
+
* @param {*} [options] Override http request option.
|
|
1879
|
+
* @throws {RequiredError}
|
|
1880
|
+
*/
|
|
1881
|
+
exportPages(requestParameters, options) {
|
|
1882
|
+
return localVarFp.exportPages(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
1883
|
+
},
|
|
1675
1884
|
/**
|
|
1676
1885
|
*
|
|
1677
1886
|
* @summary Get website page
|
|
@@ -1694,7 +1903,7 @@ const PagesApiFactory = function (configuration, basePath, axios) {
|
|
|
1694
1903
|
},
|
|
1695
1904
|
/**
|
|
1696
1905
|
* AI SEO optimises pages by a set of given IDs.
|
|
1697
|
-
* @summary AI SEO optimise pages
|
|
1906
|
+
* @summary AI SEO optimise pages
|
|
1698
1907
|
* @param {PagesApiSeoOptimisePagesRequest} requestParameters Request parameters.
|
|
1699
1908
|
* @param {*} [options] Override http request option.
|
|
1700
1909
|
* @throws {RequiredError}
|
|
@@ -1732,6 +1941,17 @@ exports.PagesApiFactory = PagesApiFactory;
|
|
|
1732
1941
|
* @extends {BaseAPI}
|
|
1733
1942
|
*/
|
|
1734
1943
|
class PagesApi extends base_1.BaseAPI {
|
|
1944
|
+
/**
|
|
1945
|
+
* Export pages as a CSV file.
|
|
1946
|
+
* @summary Export pages
|
|
1947
|
+
* @param {PagesApiExportPagesRequest} requestParameters Request parameters.
|
|
1948
|
+
* @param {*} [options] Override http request option.
|
|
1949
|
+
* @throws {RequiredError}
|
|
1950
|
+
* @memberof PagesApi
|
|
1951
|
+
*/
|
|
1952
|
+
exportPages(requestParameters, options) {
|
|
1953
|
+
return (0, exports.PagesApiFp)(this.configuration).exportPages(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
1954
|
+
}
|
|
1735
1955
|
/**
|
|
1736
1956
|
*
|
|
1737
1957
|
* @summary Get website page
|
|
@@ -1756,7 +1976,7 @@ class PagesApi extends base_1.BaseAPI {
|
|
|
1756
1976
|
}
|
|
1757
1977
|
/**
|
|
1758
1978
|
* AI SEO optimises pages by a set of given IDs.
|
|
1759
|
-
* @summary AI SEO optimise pages
|
|
1979
|
+
* @summary AI SEO optimise pages
|
|
1760
1980
|
* @param {PagesApiSeoOptimisePagesRequest} requestParameters Request parameters.
|
|
1761
1981
|
* @param {*} [options] Override http request option.
|
|
1762
1982
|
* @throws {RequiredError}
|
|
@@ -2046,6 +2266,292 @@ class PaymentApi extends base_1.BaseAPI {
|
|
|
2046
2266
|
}
|
|
2047
2267
|
}
|
|
2048
2268
|
exports.PaymentApi = PaymentApi;
|
|
2269
|
+
/**
|
|
2270
|
+
* ReviewsApi - axios parameter creator
|
|
2271
|
+
* @export
|
|
2272
|
+
*/
|
|
2273
|
+
const ReviewsApiAxiosParamCreator = function (configuration) {
|
|
2274
|
+
return {
|
|
2275
|
+
/**
|
|
2276
|
+
*
|
|
2277
|
+
* @summary Get review
|
|
2278
|
+
* @param {string} project What project it is
|
|
2279
|
+
* @param {string} reviewId Review\'s unique identifier
|
|
2280
|
+
* @param {*} [options] Override http request option.
|
|
2281
|
+
* @throws {RequiredError}
|
|
2282
|
+
*/
|
|
2283
|
+
getReview: (project_1, reviewId_1, ...args_1) => __awaiter(this, [project_1, reviewId_1, ...args_1], void 0, function* (project, reviewId, options = {}) {
|
|
2284
|
+
// verify required parameter 'project' is not null or undefined
|
|
2285
|
+
(0, common_1.assertParamExists)('getReview', 'project', project);
|
|
2286
|
+
// verify required parameter 'reviewId' is not null or undefined
|
|
2287
|
+
(0, common_1.assertParamExists)('getReview', 'reviewId', reviewId);
|
|
2288
|
+
const localVarPath = `/v1/website/reviews/{reviewId}`
|
|
2289
|
+
.replace(`{${"reviewId"}}`, encodeURIComponent(String(reviewId)));
|
|
2290
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2291
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2292
|
+
let baseOptions;
|
|
2293
|
+
if (configuration) {
|
|
2294
|
+
baseOptions = configuration.baseOptions;
|
|
2295
|
+
}
|
|
2296
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2297
|
+
const localVarHeaderParameter = {};
|
|
2298
|
+
const localVarQueryParameter = {};
|
|
2299
|
+
// authentication session-oauth required
|
|
2300
|
+
// oauth required
|
|
2301
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
2302
|
+
// authentication api-key required
|
|
2303
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
2304
|
+
if (project !== undefined) {
|
|
2305
|
+
localVarQueryParameter['project'] = project;
|
|
2306
|
+
}
|
|
2307
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2308
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2309
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2310
|
+
return {
|
|
2311
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2312
|
+
options: localVarRequestOptions,
|
|
2313
|
+
};
|
|
2314
|
+
}),
|
|
2315
|
+
/**
|
|
2316
|
+
*
|
|
2317
|
+
* @summary List Reviews
|
|
2318
|
+
* @param {string} project What project it is
|
|
2319
|
+
* @param {number} [pageToken] Page reference token
|
|
2320
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
2321
|
+
* @param {string} [search] Search term to filter results
|
|
2322
|
+
* @param {*} [options] Override http request option.
|
|
2323
|
+
* @throws {RequiredError}
|
|
2324
|
+
*/
|
|
2325
|
+
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 = {}) {
|
|
2326
|
+
// verify required parameter 'project' is not null or undefined
|
|
2327
|
+
(0, common_1.assertParamExists)('listReviews', 'project', project);
|
|
2328
|
+
const localVarPath = `/v1/website/reviews`;
|
|
2329
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2330
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2331
|
+
let baseOptions;
|
|
2332
|
+
if (configuration) {
|
|
2333
|
+
baseOptions = configuration.baseOptions;
|
|
2334
|
+
}
|
|
2335
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2336
|
+
const localVarHeaderParameter = {};
|
|
2337
|
+
const localVarQueryParameter = {};
|
|
2338
|
+
// authentication session-oauth required
|
|
2339
|
+
// oauth required
|
|
2340
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
2341
|
+
// authentication api-key required
|
|
2342
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
2343
|
+
if (project !== undefined) {
|
|
2344
|
+
localVarQueryParameter['project'] = project;
|
|
2345
|
+
}
|
|
2346
|
+
if (pageToken !== undefined) {
|
|
2347
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
2348
|
+
}
|
|
2349
|
+
if (pageSize !== undefined) {
|
|
2350
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
2351
|
+
}
|
|
2352
|
+
if (search !== undefined) {
|
|
2353
|
+
localVarQueryParameter['search'] = search;
|
|
2354
|
+
}
|
|
2355
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2356
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2357
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2358
|
+
return {
|
|
2359
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2360
|
+
options: localVarRequestOptions,
|
|
2361
|
+
};
|
|
2362
|
+
}),
|
|
2363
|
+
/**
|
|
2364
|
+
*
|
|
2365
|
+
* @summary Moderate review
|
|
2366
|
+
* @param {string} project What project it is
|
|
2367
|
+
* @param {string} reviewId Review\'s unique identifier
|
|
2368
|
+
* @param {ModerateReviewRequest} [moderateReviewRequest]
|
|
2369
|
+
* @param {*} [options] Override http request option.
|
|
2370
|
+
* @throws {RequiredError}
|
|
2371
|
+
*/
|
|
2372
|
+
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 = {}) {
|
|
2373
|
+
// verify required parameter 'project' is not null or undefined
|
|
2374
|
+
(0, common_1.assertParamExists)('moderateReview', 'project', project);
|
|
2375
|
+
// verify required parameter 'reviewId' is not null or undefined
|
|
2376
|
+
(0, common_1.assertParamExists)('moderateReview', 'reviewId', reviewId);
|
|
2377
|
+
const localVarPath = `/v1/website/reviews/{reviewId}/moderate`
|
|
2378
|
+
.replace(`{${"reviewId"}}`, encodeURIComponent(String(reviewId)));
|
|
2379
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2380
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2381
|
+
let baseOptions;
|
|
2382
|
+
if (configuration) {
|
|
2383
|
+
baseOptions = configuration.baseOptions;
|
|
2384
|
+
}
|
|
2385
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
2386
|
+
const localVarHeaderParameter = {};
|
|
2387
|
+
const localVarQueryParameter = {};
|
|
2388
|
+
// authentication session-oauth required
|
|
2389
|
+
// oauth required
|
|
2390
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
2391
|
+
// authentication api-key required
|
|
2392
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
2393
|
+
if (project !== undefined) {
|
|
2394
|
+
localVarQueryParameter['project'] = project;
|
|
2395
|
+
}
|
|
2396
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2397
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2398
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2399
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2400
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(moderateReviewRequest, localVarRequestOptions, configuration);
|
|
2401
|
+
return {
|
|
2402
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2403
|
+
options: localVarRequestOptions,
|
|
2404
|
+
};
|
|
2405
|
+
}),
|
|
2406
|
+
};
|
|
2407
|
+
};
|
|
2408
|
+
exports.ReviewsApiAxiosParamCreator = ReviewsApiAxiosParamCreator;
|
|
2409
|
+
/**
|
|
2410
|
+
* ReviewsApi - functional programming interface
|
|
2411
|
+
* @export
|
|
2412
|
+
*/
|
|
2413
|
+
const ReviewsApiFp = function (configuration) {
|
|
2414
|
+
const localVarAxiosParamCreator = (0, exports.ReviewsApiAxiosParamCreator)(configuration);
|
|
2415
|
+
return {
|
|
2416
|
+
/**
|
|
2417
|
+
*
|
|
2418
|
+
* @summary Get review
|
|
2419
|
+
* @param {string} project What project it is
|
|
2420
|
+
* @param {string} reviewId Review\'s unique identifier
|
|
2421
|
+
* @param {*} [options] Override http request option.
|
|
2422
|
+
* @throws {RequiredError}
|
|
2423
|
+
*/
|
|
2424
|
+
getReview(project, reviewId, options) {
|
|
2425
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2426
|
+
var _a, _b, _c;
|
|
2427
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getReview(project, reviewId, options);
|
|
2428
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2429
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ReviewsApi.getReview']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2430
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2431
|
+
});
|
|
2432
|
+
},
|
|
2433
|
+
/**
|
|
2434
|
+
*
|
|
2435
|
+
* @summary List Reviews
|
|
2436
|
+
* @param {string} project What project it is
|
|
2437
|
+
* @param {number} [pageToken] Page reference token
|
|
2438
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
2439
|
+
* @param {string} [search] Search term to filter results
|
|
2440
|
+
* @param {*} [options] Override http request option.
|
|
2441
|
+
* @throws {RequiredError}
|
|
2442
|
+
*/
|
|
2443
|
+
listReviews(project, pageToken, pageSize, search, options) {
|
|
2444
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2445
|
+
var _a, _b, _c;
|
|
2446
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listReviews(project, pageToken, pageSize, search, options);
|
|
2447
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2448
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ReviewsApi.listReviews']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2449
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2450
|
+
});
|
|
2451
|
+
},
|
|
2452
|
+
/**
|
|
2453
|
+
*
|
|
2454
|
+
* @summary Moderate review
|
|
2455
|
+
* @param {string} project What project it is
|
|
2456
|
+
* @param {string} reviewId Review\'s unique identifier
|
|
2457
|
+
* @param {ModerateReviewRequest} [moderateReviewRequest]
|
|
2458
|
+
* @param {*} [options] Override http request option.
|
|
2459
|
+
* @throws {RequiredError}
|
|
2460
|
+
*/
|
|
2461
|
+
moderateReview(project, reviewId, moderateReviewRequest, options) {
|
|
2462
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2463
|
+
var _a, _b, _c;
|
|
2464
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.moderateReview(project, reviewId, moderateReviewRequest, options);
|
|
2465
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2466
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ReviewsApi.moderateReview']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2467
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2468
|
+
});
|
|
2469
|
+
},
|
|
2470
|
+
};
|
|
2471
|
+
};
|
|
2472
|
+
exports.ReviewsApiFp = ReviewsApiFp;
|
|
2473
|
+
/**
|
|
2474
|
+
* ReviewsApi - factory interface
|
|
2475
|
+
* @export
|
|
2476
|
+
*/
|
|
2477
|
+
const ReviewsApiFactory = function (configuration, basePath, axios) {
|
|
2478
|
+
const localVarFp = (0, exports.ReviewsApiFp)(configuration);
|
|
2479
|
+
return {
|
|
2480
|
+
/**
|
|
2481
|
+
*
|
|
2482
|
+
* @summary Get review
|
|
2483
|
+
* @param {ReviewsApiGetReviewRequest} requestParameters Request parameters.
|
|
2484
|
+
* @param {*} [options] Override http request option.
|
|
2485
|
+
* @throws {RequiredError}
|
|
2486
|
+
*/
|
|
2487
|
+
getReview(requestParameters, options) {
|
|
2488
|
+
return localVarFp.getReview(requestParameters.project, requestParameters.reviewId, options).then((request) => request(axios, basePath));
|
|
2489
|
+
},
|
|
2490
|
+
/**
|
|
2491
|
+
*
|
|
2492
|
+
* @summary List Reviews
|
|
2493
|
+
* @param {ReviewsApiListReviewsRequest} requestParameters Request parameters.
|
|
2494
|
+
* @param {*} [options] Override http request option.
|
|
2495
|
+
* @throws {RequiredError}
|
|
2496
|
+
*/
|
|
2497
|
+
listReviews(requestParameters, options) {
|
|
2498
|
+
return localVarFp.listReviews(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
2499
|
+
},
|
|
2500
|
+
/**
|
|
2501
|
+
*
|
|
2502
|
+
* @summary Moderate review
|
|
2503
|
+
* @param {ReviewsApiModerateReviewRequest} requestParameters Request parameters.
|
|
2504
|
+
* @param {*} [options] Override http request option.
|
|
2505
|
+
* @throws {RequiredError}
|
|
2506
|
+
*/
|
|
2507
|
+
moderateReview(requestParameters, options) {
|
|
2508
|
+
return localVarFp.moderateReview(requestParameters.project, requestParameters.reviewId, requestParameters.moderateReviewRequest, options).then((request) => request(axios, basePath));
|
|
2509
|
+
},
|
|
2510
|
+
};
|
|
2511
|
+
};
|
|
2512
|
+
exports.ReviewsApiFactory = ReviewsApiFactory;
|
|
2513
|
+
/**
|
|
2514
|
+
* ReviewsApi - object-oriented interface
|
|
2515
|
+
* @export
|
|
2516
|
+
* @class ReviewsApi
|
|
2517
|
+
* @extends {BaseAPI}
|
|
2518
|
+
*/
|
|
2519
|
+
class ReviewsApi extends base_1.BaseAPI {
|
|
2520
|
+
/**
|
|
2521
|
+
*
|
|
2522
|
+
* @summary Get review
|
|
2523
|
+
* @param {ReviewsApiGetReviewRequest} requestParameters Request parameters.
|
|
2524
|
+
* @param {*} [options] Override http request option.
|
|
2525
|
+
* @throws {RequiredError}
|
|
2526
|
+
* @memberof ReviewsApi
|
|
2527
|
+
*/
|
|
2528
|
+
getReview(requestParameters, options) {
|
|
2529
|
+
return (0, exports.ReviewsApiFp)(this.configuration).getReview(requestParameters.project, requestParameters.reviewId, options).then((request) => request(this.axios, this.basePath));
|
|
2530
|
+
}
|
|
2531
|
+
/**
|
|
2532
|
+
*
|
|
2533
|
+
* @summary List Reviews
|
|
2534
|
+
* @param {ReviewsApiListReviewsRequest} requestParameters Request parameters.
|
|
2535
|
+
* @param {*} [options] Override http request option.
|
|
2536
|
+
* @throws {RequiredError}
|
|
2537
|
+
* @memberof ReviewsApi
|
|
2538
|
+
*/
|
|
2539
|
+
listReviews(requestParameters, options) {
|
|
2540
|
+
return (0, exports.ReviewsApiFp)(this.configuration).listReviews(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
2541
|
+
}
|
|
2542
|
+
/**
|
|
2543
|
+
*
|
|
2544
|
+
* @summary Moderate review
|
|
2545
|
+
* @param {ReviewsApiModerateReviewRequest} requestParameters Request parameters.
|
|
2546
|
+
* @param {*} [options] Override http request option.
|
|
2547
|
+
* @throws {RequiredError}
|
|
2548
|
+
* @memberof ReviewsApi
|
|
2549
|
+
*/
|
|
2550
|
+
moderateReview(requestParameters, options) {
|
|
2551
|
+
return (0, exports.ReviewsApiFp)(this.configuration).moderateReview(requestParameters.project, requestParameters.reviewId, requestParameters.moderateReviewRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2552
|
+
}
|
|
2553
|
+
}
|
|
2554
|
+
exports.ReviewsApi = ReviewsApi;
|
|
2049
2555
|
/**
|
|
2050
2556
|
* RoutesApi - axios parameter creator
|
|
2051
2557
|
* @export
|