@teemill/website 0.19.0 → 0.20.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 +608 -6
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +378 -3
- package/dist/api.js +389 -8
- 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 +378 -3
- package/dist/esm/api.js +379 -6
- 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.20.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,8 +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.
|
|
26
|
-
exports.SearchApi = exports.SearchApiFactory = void 0;
|
|
25
|
+
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.FooterApi = exports.FooterApiFactory = exports.FooterApiFp = exports.FooterApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = 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 = exports.SearchApiFp = exports.SearchApiAxiosParamCreator = exports.RoutesApi = exports.RoutesApiFactory = exports.RoutesApiFp = exports.RoutesApiAxiosParamCreator = exports.ReviewsApi = exports.ReviewsApiFactory = void 0;
|
|
27
27
|
const axios_1 = require("axios");
|
|
28
28
|
// Some imports not used depending on template conditions
|
|
29
29
|
// @ts-ignore
|
|
@@ -1293,6 +1293,382 @@ class CrossSellApi extends base_1.BaseAPI {
|
|
|
1293
1293
|
}
|
|
1294
1294
|
}
|
|
1295
1295
|
exports.CrossSellApi = CrossSellApi;
|
|
1296
|
+
/**
|
|
1297
|
+
* DefaultApi - axios parameter creator
|
|
1298
|
+
* @export
|
|
1299
|
+
*/
|
|
1300
|
+
const DefaultApiAxiosParamCreator = function (configuration) {
|
|
1301
|
+
return {
|
|
1302
|
+
/**
|
|
1303
|
+
* Get the brand for the project
|
|
1304
|
+
* @summary Get brand
|
|
1305
|
+
* @param {string} project What project it is
|
|
1306
|
+
* @param {*} [options] Override http request option.
|
|
1307
|
+
* @throws {RequiredError}
|
|
1308
|
+
*/
|
|
1309
|
+
getBrand: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
|
|
1310
|
+
// verify required parameter 'project' is not null or undefined
|
|
1311
|
+
(0, common_1.assertParamExists)('getBrand', 'project', project);
|
|
1312
|
+
const localVarPath = `/v1/website/brand`;
|
|
1313
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1314
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1315
|
+
let baseOptions;
|
|
1316
|
+
if (configuration) {
|
|
1317
|
+
baseOptions = configuration.baseOptions;
|
|
1318
|
+
}
|
|
1319
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1320
|
+
const localVarHeaderParameter = {};
|
|
1321
|
+
const localVarQueryParameter = {};
|
|
1322
|
+
// authentication session-oauth required
|
|
1323
|
+
// oauth required
|
|
1324
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
1325
|
+
// authentication api-key required
|
|
1326
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1327
|
+
if (project !== undefined) {
|
|
1328
|
+
localVarQueryParameter['project'] = project;
|
|
1329
|
+
}
|
|
1330
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1331
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1332
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1333
|
+
return {
|
|
1334
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1335
|
+
options: localVarRequestOptions,
|
|
1336
|
+
};
|
|
1337
|
+
}),
|
|
1338
|
+
/**
|
|
1339
|
+
* Update the brand for the project
|
|
1340
|
+
* @summary Update brand
|
|
1341
|
+
* @param {string} project What project it is
|
|
1342
|
+
* @param {UpdateBrandRequest} [updateBrandRequest] Update brand request
|
|
1343
|
+
* @param {*} [options] Override http request option.
|
|
1344
|
+
* @throws {RequiredError}
|
|
1345
|
+
*/
|
|
1346
|
+
updateBrand: (project_1, updateBrandRequest_1, ...args_1) => __awaiter(this, [project_1, updateBrandRequest_1, ...args_1], void 0, function* (project, updateBrandRequest, options = {}) {
|
|
1347
|
+
// verify required parameter 'project' is not null or undefined
|
|
1348
|
+
(0, common_1.assertParamExists)('updateBrand', 'project', project);
|
|
1349
|
+
const localVarPath = `/v1/website/brand`;
|
|
1350
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1351
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1352
|
+
let baseOptions;
|
|
1353
|
+
if (configuration) {
|
|
1354
|
+
baseOptions = configuration.baseOptions;
|
|
1355
|
+
}
|
|
1356
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
1357
|
+
const localVarHeaderParameter = {};
|
|
1358
|
+
const localVarQueryParameter = {};
|
|
1359
|
+
// authentication session-oauth required
|
|
1360
|
+
// oauth required
|
|
1361
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
1362
|
+
// authentication api-key required
|
|
1363
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1364
|
+
if (project !== undefined) {
|
|
1365
|
+
localVarQueryParameter['project'] = project;
|
|
1366
|
+
}
|
|
1367
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1368
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1369
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1370
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1371
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateBrandRequest, localVarRequestOptions, configuration);
|
|
1372
|
+
return {
|
|
1373
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1374
|
+
options: localVarRequestOptions,
|
|
1375
|
+
};
|
|
1376
|
+
}),
|
|
1377
|
+
};
|
|
1378
|
+
};
|
|
1379
|
+
exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator;
|
|
1380
|
+
/**
|
|
1381
|
+
* DefaultApi - functional programming interface
|
|
1382
|
+
* @export
|
|
1383
|
+
*/
|
|
1384
|
+
const DefaultApiFp = function (configuration) {
|
|
1385
|
+
const localVarAxiosParamCreator = (0, exports.DefaultApiAxiosParamCreator)(configuration);
|
|
1386
|
+
return {
|
|
1387
|
+
/**
|
|
1388
|
+
* Get the brand for the project
|
|
1389
|
+
* @summary Get brand
|
|
1390
|
+
* @param {string} project What project it is
|
|
1391
|
+
* @param {*} [options] Override http request option.
|
|
1392
|
+
* @throws {RequiredError}
|
|
1393
|
+
*/
|
|
1394
|
+
getBrand(project, options) {
|
|
1395
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1396
|
+
var _a, _b, _c;
|
|
1397
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBrand(project, options);
|
|
1398
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1399
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.getBrand']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1400
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1401
|
+
});
|
|
1402
|
+
},
|
|
1403
|
+
/**
|
|
1404
|
+
* Update the brand for the project
|
|
1405
|
+
* @summary Update brand
|
|
1406
|
+
* @param {string} project What project it is
|
|
1407
|
+
* @param {UpdateBrandRequest} [updateBrandRequest] Update brand request
|
|
1408
|
+
* @param {*} [options] Override http request option.
|
|
1409
|
+
* @throws {RequiredError}
|
|
1410
|
+
*/
|
|
1411
|
+
updateBrand(project, updateBrandRequest, options) {
|
|
1412
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1413
|
+
var _a, _b, _c;
|
|
1414
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateBrand(project, updateBrandRequest, options);
|
|
1415
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1416
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.updateBrand']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1417
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1418
|
+
});
|
|
1419
|
+
},
|
|
1420
|
+
};
|
|
1421
|
+
};
|
|
1422
|
+
exports.DefaultApiFp = DefaultApiFp;
|
|
1423
|
+
/**
|
|
1424
|
+
* DefaultApi - factory interface
|
|
1425
|
+
* @export
|
|
1426
|
+
*/
|
|
1427
|
+
const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
1428
|
+
const localVarFp = (0, exports.DefaultApiFp)(configuration);
|
|
1429
|
+
return {
|
|
1430
|
+
/**
|
|
1431
|
+
* Get the brand for the project
|
|
1432
|
+
* @summary Get brand
|
|
1433
|
+
* @param {DefaultApiGetBrandRequest} requestParameters Request parameters.
|
|
1434
|
+
* @param {*} [options] Override http request option.
|
|
1435
|
+
* @throws {RequiredError}
|
|
1436
|
+
*/
|
|
1437
|
+
getBrand(requestParameters, options) {
|
|
1438
|
+
return localVarFp.getBrand(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
1439
|
+
},
|
|
1440
|
+
/**
|
|
1441
|
+
* Update the brand for the project
|
|
1442
|
+
* @summary Update brand
|
|
1443
|
+
* @param {DefaultApiUpdateBrandRequest} requestParameters Request parameters.
|
|
1444
|
+
* @param {*} [options] Override http request option.
|
|
1445
|
+
* @throws {RequiredError}
|
|
1446
|
+
*/
|
|
1447
|
+
updateBrand(requestParameters, options) {
|
|
1448
|
+
return localVarFp.updateBrand(requestParameters.project, requestParameters.updateBrandRequest, options).then((request) => request(axios, basePath));
|
|
1449
|
+
},
|
|
1450
|
+
};
|
|
1451
|
+
};
|
|
1452
|
+
exports.DefaultApiFactory = DefaultApiFactory;
|
|
1453
|
+
/**
|
|
1454
|
+
* DefaultApi - object-oriented interface
|
|
1455
|
+
* @export
|
|
1456
|
+
* @class DefaultApi
|
|
1457
|
+
* @extends {BaseAPI}
|
|
1458
|
+
*/
|
|
1459
|
+
class DefaultApi extends base_1.BaseAPI {
|
|
1460
|
+
/**
|
|
1461
|
+
* Get the brand for the project
|
|
1462
|
+
* @summary Get brand
|
|
1463
|
+
* @param {DefaultApiGetBrandRequest} requestParameters Request parameters.
|
|
1464
|
+
* @param {*} [options] Override http request option.
|
|
1465
|
+
* @throws {RequiredError}
|
|
1466
|
+
* @memberof DefaultApi
|
|
1467
|
+
*/
|
|
1468
|
+
getBrand(requestParameters, options) {
|
|
1469
|
+
return (0, exports.DefaultApiFp)(this.configuration).getBrand(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
1470
|
+
}
|
|
1471
|
+
/**
|
|
1472
|
+
* Update the brand for the project
|
|
1473
|
+
* @summary Update brand
|
|
1474
|
+
* @param {DefaultApiUpdateBrandRequest} requestParameters Request parameters.
|
|
1475
|
+
* @param {*} [options] Override http request option.
|
|
1476
|
+
* @throws {RequiredError}
|
|
1477
|
+
* @memberof DefaultApi
|
|
1478
|
+
*/
|
|
1479
|
+
updateBrand(requestParameters, options) {
|
|
1480
|
+
return (0, exports.DefaultApiFp)(this.configuration).updateBrand(requestParameters.project, requestParameters.updateBrandRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1481
|
+
}
|
|
1482
|
+
}
|
|
1483
|
+
exports.DefaultApi = DefaultApi;
|
|
1484
|
+
/**
|
|
1485
|
+
* FooterApi - axios parameter creator
|
|
1486
|
+
* @export
|
|
1487
|
+
*/
|
|
1488
|
+
const FooterApiAxiosParamCreator = function (configuration) {
|
|
1489
|
+
return {
|
|
1490
|
+
/**
|
|
1491
|
+
* Get the footer for the project
|
|
1492
|
+
* @summary Get footer
|
|
1493
|
+
* @param {string} project What project it is
|
|
1494
|
+
* @param {*} [options] Override http request option.
|
|
1495
|
+
* @throws {RequiredError}
|
|
1496
|
+
*/
|
|
1497
|
+
getFooter: (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)('getFooter', 'project', project);
|
|
1500
|
+
const localVarPath = `/v1/website/footer`;
|
|
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
|
+
}),
|
|
1526
|
+
/**
|
|
1527
|
+
* Update a footer
|
|
1528
|
+
* @summary Update footer
|
|
1529
|
+
* @param {string} project What project it is
|
|
1530
|
+
* @param {UpdateFooterRequest} [updateFooterRequest] Update footer
|
|
1531
|
+
* @param {*} [options] Override http request option.
|
|
1532
|
+
* @throws {RequiredError}
|
|
1533
|
+
*/
|
|
1534
|
+
updateFooter: (project_1, updateFooterRequest_1, ...args_1) => __awaiter(this, [project_1, updateFooterRequest_1, ...args_1], void 0, function* (project, updateFooterRequest, options = {}) {
|
|
1535
|
+
// verify required parameter 'project' is not null or undefined
|
|
1536
|
+
(0, common_1.assertParamExists)('updateFooter', 'project', project);
|
|
1537
|
+
const localVarPath = `/v1/website/footer`;
|
|
1538
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1539
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1540
|
+
let baseOptions;
|
|
1541
|
+
if (configuration) {
|
|
1542
|
+
baseOptions = configuration.baseOptions;
|
|
1543
|
+
}
|
|
1544
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
1545
|
+
const localVarHeaderParameter = {};
|
|
1546
|
+
const localVarQueryParameter = {};
|
|
1547
|
+
// authentication session-oauth required
|
|
1548
|
+
// oauth required
|
|
1549
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
1550
|
+
// authentication api-key required
|
|
1551
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1552
|
+
if (project !== undefined) {
|
|
1553
|
+
localVarQueryParameter['project'] = project;
|
|
1554
|
+
}
|
|
1555
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1556
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1557
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1558
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1559
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateFooterRequest, localVarRequestOptions, configuration);
|
|
1560
|
+
return {
|
|
1561
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1562
|
+
options: localVarRequestOptions,
|
|
1563
|
+
};
|
|
1564
|
+
}),
|
|
1565
|
+
};
|
|
1566
|
+
};
|
|
1567
|
+
exports.FooterApiAxiosParamCreator = FooterApiAxiosParamCreator;
|
|
1568
|
+
/**
|
|
1569
|
+
* FooterApi - functional programming interface
|
|
1570
|
+
* @export
|
|
1571
|
+
*/
|
|
1572
|
+
const FooterApiFp = function (configuration) {
|
|
1573
|
+
const localVarAxiosParamCreator = (0, exports.FooterApiAxiosParamCreator)(configuration);
|
|
1574
|
+
return {
|
|
1575
|
+
/**
|
|
1576
|
+
* Get the footer for the project
|
|
1577
|
+
* @summary Get footer
|
|
1578
|
+
* @param {string} project What project it is
|
|
1579
|
+
* @param {*} [options] Override http request option.
|
|
1580
|
+
* @throws {RequiredError}
|
|
1581
|
+
*/
|
|
1582
|
+
getFooter(project, options) {
|
|
1583
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1584
|
+
var _a, _b, _c;
|
|
1585
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getFooter(project, options);
|
|
1586
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1587
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['FooterApi.getFooter']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1588
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1589
|
+
});
|
|
1590
|
+
},
|
|
1591
|
+
/**
|
|
1592
|
+
* Update a footer
|
|
1593
|
+
* @summary Update footer
|
|
1594
|
+
* @param {string} project What project it is
|
|
1595
|
+
* @param {UpdateFooterRequest} [updateFooterRequest] Update footer
|
|
1596
|
+
* @param {*} [options] Override http request option.
|
|
1597
|
+
* @throws {RequiredError}
|
|
1598
|
+
*/
|
|
1599
|
+
updateFooter(project, updateFooterRequest, options) {
|
|
1600
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1601
|
+
var _a, _b, _c;
|
|
1602
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateFooter(project, updateFooterRequest, options);
|
|
1603
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1604
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['FooterApi.updateFooter']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1605
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1606
|
+
});
|
|
1607
|
+
},
|
|
1608
|
+
};
|
|
1609
|
+
};
|
|
1610
|
+
exports.FooterApiFp = FooterApiFp;
|
|
1611
|
+
/**
|
|
1612
|
+
* FooterApi - factory interface
|
|
1613
|
+
* @export
|
|
1614
|
+
*/
|
|
1615
|
+
const FooterApiFactory = function (configuration, basePath, axios) {
|
|
1616
|
+
const localVarFp = (0, exports.FooterApiFp)(configuration);
|
|
1617
|
+
return {
|
|
1618
|
+
/**
|
|
1619
|
+
* Get the footer for the project
|
|
1620
|
+
* @summary Get footer
|
|
1621
|
+
* @param {FooterApiGetFooterRequest} requestParameters Request parameters.
|
|
1622
|
+
* @param {*} [options] Override http request option.
|
|
1623
|
+
* @throws {RequiredError}
|
|
1624
|
+
*/
|
|
1625
|
+
getFooter(requestParameters, options) {
|
|
1626
|
+
return localVarFp.getFooter(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
1627
|
+
},
|
|
1628
|
+
/**
|
|
1629
|
+
* Update a footer
|
|
1630
|
+
* @summary Update footer
|
|
1631
|
+
* @param {FooterApiUpdateFooterRequest} requestParameters Request parameters.
|
|
1632
|
+
* @param {*} [options] Override http request option.
|
|
1633
|
+
* @throws {RequiredError}
|
|
1634
|
+
*/
|
|
1635
|
+
updateFooter(requestParameters, options) {
|
|
1636
|
+
return localVarFp.updateFooter(requestParameters.project, requestParameters.updateFooterRequest, options).then((request) => request(axios, basePath));
|
|
1637
|
+
},
|
|
1638
|
+
};
|
|
1639
|
+
};
|
|
1640
|
+
exports.FooterApiFactory = FooterApiFactory;
|
|
1641
|
+
/**
|
|
1642
|
+
* FooterApi - object-oriented interface
|
|
1643
|
+
* @export
|
|
1644
|
+
* @class FooterApi
|
|
1645
|
+
* @extends {BaseAPI}
|
|
1646
|
+
*/
|
|
1647
|
+
class FooterApi extends base_1.BaseAPI {
|
|
1648
|
+
/**
|
|
1649
|
+
* Get the footer for the project
|
|
1650
|
+
* @summary Get footer
|
|
1651
|
+
* @param {FooterApiGetFooterRequest} requestParameters Request parameters.
|
|
1652
|
+
* @param {*} [options] Override http request option.
|
|
1653
|
+
* @throws {RequiredError}
|
|
1654
|
+
* @memberof FooterApi
|
|
1655
|
+
*/
|
|
1656
|
+
getFooter(requestParameters, options) {
|
|
1657
|
+
return (0, exports.FooterApiFp)(this.configuration).getFooter(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
1658
|
+
}
|
|
1659
|
+
/**
|
|
1660
|
+
* Update a footer
|
|
1661
|
+
* @summary Update footer
|
|
1662
|
+
* @param {FooterApiUpdateFooterRequest} requestParameters Request parameters.
|
|
1663
|
+
* @param {*} [options] Override http request option.
|
|
1664
|
+
* @throws {RequiredError}
|
|
1665
|
+
* @memberof FooterApi
|
|
1666
|
+
*/
|
|
1667
|
+
updateFooter(requestParameters, options) {
|
|
1668
|
+
return (0, exports.FooterApiFp)(this.configuration).updateFooter(requestParameters.project, requestParameters.updateFooterRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1669
|
+
}
|
|
1670
|
+
}
|
|
1671
|
+
exports.FooterApi = FooterApi;
|
|
1296
1672
|
/**
|
|
1297
1673
|
* MenuApi - axios parameter creator
|
|
1298
1674
|
* @export
|
|
@@ -2319,10 +2695,11 @@ const ReviewsApiAxiosParamCreator = function (configuration) {
|
|
|
2319
2695
|
* @param {number} [pageToken] Page reference token
|
|
2320
2696
|
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
2321
2697
|
* @param {string} [search] Search term to filter results
|
|
2698
|
+
* @param {Array<string>} [sortBy] An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending.
|
|
2322
2699
|
* @param {*} [options] Override http request option.
|
|
2323
2700
|
* @throws {RequiredError}
|
|
2324
2701
|
*/
|
|
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 = {}) {
|
|
2702
|
+
listReviews: (project_1, pageToken_1, pageSize_1, search_1, sortBy_1, ...args_1) => __awaiter(this, [project_1, pageToken_1, pageSize_1, search_1, sortBy_1, ...args_1], void 0, function* (project, pageToken, pageSize, search, sortBy, options = {}) {
|
|
2326
2703
|
// verify required parameter 'project' is not null or undefined
|
|
2327
2704
|
(0, common_1.assertParamExists)('listReviews', 'project', project);
|
|
2328
2705
|
const localVarPath = `/v1/website/reviews`;
|
|
@@ -2352,6 +2729,9 @@ const ReviewsApiAxiosParamCreator = function (configuration) {
|
|
|
2352
2729
|
if (search !== undefined) {
|
|
2353
2730
|
localVarQueryParameter['search'] = search;
|
|
2354
2731
|
}
|
|
2732
|
+
if (sortBy) {
|
|
2733
|
+
localVarQueryParameter['sortBy'] = sortBy;
|
|
2734
|
+
}
|
|
2355
2735
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2356
2736
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2357
2737
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -2437,13 +2817,14 @@ const ReviewsApiFp = function (configuration) {
|
|
|
2437
2817
|
* @param {number} [pageToken] Page reference token
|
|
2438
2818
|
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
2439
2819
|
* @param {string} [search] Search term to filter results
|
|
2820
|
+
* @param {Array<string>} [sortBy] An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending.
|
|
2440
2821
|
* @param {*} [options] Override http request option.
|
|
2441
2822
|
* @throws {RequiredError}
|
|
2442
2823
|
*/
|
|
2443
|
-
listReviews(project, pageToken, pageSize, search, options) {
|
|
2824
|
+
listReviews(project, pageToken, pageSize, search, sortBy, options) {
|
|
2444
2825
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2445
2826
|
var _a, _b, _c;
|
|
2446
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listReviews(project, pageToken, pageSize, search, options);
|
|
2827
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listReviews(project, pageToken, pageSize, search, sortBy, options);
|
|
2447
2828
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2448
2829
|
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
2830
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2495,7 +2876,7 @@ const ReviewsApiFactory = function (configuration, basePath, axios) {
|
|
|
2495
2876
|
* @throws {RequiredError}
|
|
2496
2877
|
*/
|
|
2497
2878
|
listReviews(requestParameters, options) {
|
|
2498
|
-
return localVarFp.listReviews(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
2879
|
+
return localVarFp.listReviews(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, options).then((request) => request(axios, basePath));
|
|
2499
2880
|
},
|
|
2500
2881
|
/**
|
|
2501
2882
|
*
|
|
@@ -2537,7 +2918,7 @@ class ReviewsApi extends base_1.BaseAPI {
|
|
|
2537
2918
|
* @memberof ReviewsApi
|
|
2538
2919
|
*/
|
|
2539
2920
|
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));
|
|
2921
|
+
return (0, exports.ReviewsApiFp)(this.configuration).listReviews(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, options).then((request) => request(this.axios, this.basePath));
|
|
2541
2922
|
}
|
|
2542
2923
|
/**
|
|
2543
2924
|
*
|
package/dist/base.d.ts
CHANGED
package/dist/base.js
CHANGED
package/dist/common.d.ts
CHANGED
package/dist/common.js
CHANGED
package/dist/configuration.d.ts
CHANGED
package/dist/configuration.js
CHANGED