@teemill/website 0.19.1 → 0.21.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 +151 -2
- package/api.ts +924 -145
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +485 -3
- package/dist/api.js +485 -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 +485 -3
- package/dist/esm/api.js +475 -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/docs/ApiError.md +22 -0
- package/docs/Application.md +28 -0
- package/docs/ApplicationMockup.md +22 -0
- package/docs/AttachCrossSellProductsRequest.md +20 -0
- package/docs/Attribute.md +26 -0
- package/docs/AttributeThumbnail.md +23 -0
- package/docs/AuthorizeStripe200Response.md +20 -0
- package/docs/Blog.md +34 -0
- package/docs/BlogsApi.md +317 -0
- package/docs/BlogsResponse.md +22 -0
- package/docs/Brand.md +20 -0
- package/docs/Collection.md +36 -0
- package/docs/CollectionsApi.md +378 -0
- package/docs/CollectionsResponse.md +22 -0
- package/docs/CreateSearchRedirectRequest.md +22 -0
- package/docs/CrossSellApi.md +128 -0
- package/docs/DefaultApi.md +123 -0
- package/docs/ExportPages202Response.md +20 -0
- package/docs/Footer.md +20 -0
- package/docs/FooterApi.md +123 -0
- package/docs/FooterItem.md +26 -0
- package/docs/Image.md +35 -0
- package/docs/ListRoutesResponse.md +22 -0
- package/docs/Menu.md +20 -0
- package/docs/MenuApi.md +122 -0
- package/docs/MenuItem.md +32 -0
- package/docs/MetaField.md +23 -0
- package/docs/MetaImage.md +23 -0
- package/docs/ModerateReviewRequest.md +20 -0
- package/docs/OptimisationHistoryItem.md +22 -0
- package/docs/Page.md +36 -0
- package/docs/PagesApi.md +378 -0
- package/docs/PagesResponse.md +22 -0
- package/docs/PaymentAccount.md +24 -0
- package/docs/PaymentApi.md +178 -0
- package/docs/Price.md +23 -0
- package/docs/Product.md +66 -0
- package/docs/ProductAdditionalFilesInner.md +22 -0
- package/docs/ProductApplicationSetsInner.md +24 -0
- package/docs/ProductWarehouseProduct.md +22 -0
- package/docs/Review.md +38 -0
- package/docs/ReviewAuthor.md +22 -0
- package/docs/ReviewImagesInner.md +22 -0
- package/docs/ReviewProduct.md +23 -0
- package/docs/ReviewReply.md +26 -0
- package/docs/ReviewReplyAuthor.md +20 -0
- package/docs/ReviewsApi.md +263 -0
- package/docs/ReviewsResponse.md +22 -0
- package/docs/Route.md +28 -0
- package/docs/RoutesApi.md +70 -0
- package/docs/SearchApi.md +319 -0
- package/docs/SearchRedirect.md +26 -0
- package/docs/SearchRedirectsResponse.md +22 -0
- package/docs/SeoMetadata.md +23 -0
- package/docs/SeoOptimiseCollectionsRequest.md +22 -0
- package/docs/SeoOptimisePages202Response.md +20 -0
- package/docs/SeoOptimisePagesRequest.md +22 -0
- package/docs/Stock.md +20 -0
- package/docs/SubmenuInner.md +32 -0
- package/docs/SubmenuInnerImage.md +36 -0
- package/docs/SubmenuInnerImageButton.md +30 -0
- package/docs/SubmenuInnerImageText.md +24 -0
- package/docs/SubmenuItem.md +30 -0
- package/docs/TargetSearchPhraseData.md +22 -0
- package/docs/UpdateBlogRequest.md +30 -0
- package/docs/UpdateBlogsRequest.md +20 -0
- package/docs/UpdateBlogsRequestBlogsInner.md +32 -0
- package/docs/UpdateBlogsRequestBlogsInnerSeoMetadata.md +22 -0
- package/docs/UpdateBrandRequest.md +20 -0
- package/docs/UpdateCollectionRequest.md +32 -0
- package/docs/UpdateCollectionsRequest.md +20 -0
- package/docs/UpdateCollectionsRequestCollectionsInner.md +34 -0
- package/docs/UpdateCollectionsRequestCollectionsInnerSeoMetadata.md +22 -0
- package/docs/UpdateFooterRequest.md +20 -0
- package/docs/UpdateFooterRequestItemsInner.md +24 -0
- package/docs/UpdateMenuRequest.md +20 -0
- package/docs/UpdateMenuRequestItem.md +32 -0
- package/docs/UpdateMenuRequestItemSubmenuInner.md +32 -0
- package/docs/UpdateMenuRequestItemSubmenuInnerImage.md +36 -0
- package/docs/UpdateMenuRequestItemSubmenuInnerImageButton.md +30 -0
- package/docs/UpdateMenuRequestItemSubmenuInnerImageText.md +24 -0
- package/docs/UpdateMenuRequestSubmenuItem.md +30 -0
- package/docs/UpdatePageRequest.md +28 -0
- package/docs/UpdatePagesRequest.md +20 -0
- package/docs/UpdatePagesRequestPagesInner.md +30 -0
- package/docs/UpdateSearchRedirectRequest.md +22 -0
- package/docs/Variant.md +52 -0
- package/docs/VariantProduct.md +22 -0
- package/docs/Video.md +31 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/esm/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Website API
|
|
5
5
|
* Manage your PodOS Website
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.
|
|
7
|
+
* The version of the OpenAPI document: 0.21.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1277,6 +1277,374 @@ export class CrossSellApi extends BaseAPI {
|
|
|
1277
1277
|
return CrossSellApiFp(this.configuration).getCrossSellProducts(requestParameters.project, requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
|
|
1278
1278
|
}
|
|
1279
1279
|
}
|
|
1280
|
+
/**
|
|
1281
|
+
* DefaultApi - axios parameter creator
|
|
1282
|
+
* @export
|
|
1283
|
+
*/
|
|
1284
|
+
export const DefaultApiAxiosParamCreator = function (configuration) {
|
|
1285
|
+
return {
|
|
1286
|
+
/**
|
|
1287
|
+
* Get the brand for the project
|
|
1288
|
+
* @summary Get brand
|
|
1289
|
+
* @param {string} project What project it is
|
|
1290
|
+
* @param {*} [options] Override http request option.
|
|
1291
|
+
* @throws {RequiredError}
|
|
1292
|
+
*/
|
|
1293
|
+
getBrand: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
|
|
1294
|
+
// verify required parameter 'project' is not null or undefined
|
|
1295
|
+
assertParamExists('getBrand', 'project', project);
|
|
1296
|
+
const localVarPath = `/v1/website/brand`;
|
|
1297
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1298
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1299
|
+
let baseOptions;
|
|
1300
|
+
if (configuration) {
|
|
1301
|
+
baseOptions = configuration.baseOptions;
|
|
1302
|
+
}
|
|
1303
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1304
|
+
const localVarHeaderParameter = {};
|
|
1305
|
+
const localVarQueryParameter = {};
|
|
1306
|
+
// authentication session-oauth required
|
|
1307
|
+
// oauth required
|
|
1308
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
1309
|
+
// authentication api-key required
|
|
1310
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
1311
|
+
if (project !== undefined) {
|
|
1312
|
+
localVarQueryParameter['project'] = project;
|
|
1313
|
+
}
|
|
1314
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1315
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1316
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1317
|
+
return {
|
|
1318
|
+
url: toPathString(localVarUrlObj),
|
|
1319
|
+
options: localVarRequestOptions,
|
|
1320
|
+
};
|
|
1321
|
+
}),
|
|
1322
|
+
/**
|
|
1323
|
+
* Update the brand for the project
|
|
1324
|
+
* @summary Update brand
|
|
1325
|
+
* @param {string} project What project it is
|
|
1326
|
+
* @param {UpdateBrandRequest} [updateBrandRequest] Update brand request
|
|
1327
|
+
* @param {*} [options] Override http request option.
|
|
1328
|
+
* @throws {RequiredError}
|
|
1329
|
+
*/
|
|
1330
|
+
updateBrand: (project_1, updateBrandRequest_1, ...args_1) => __awaiter(this, [project_1, updateBrandRequest_1, ...args_1], void 0, function* (project, updateBrandRequest, options = {}) {
|
|
1331
|
+
// verify required parameter 'project' is not null or undefined
|
|
1332
|
+
assertParamExists('updateBrand', 'project', project);
|
|
1333
|
+
const localVarPath = `/v1/website/brand`;
|
|
1334
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1335
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1336
|
+
let baseOptions;
|
|
1337
|
+
if (configuration) {
|
|
1338
|
+
baseOptions = configuration.baseOptions;
|
|
1339
|
+
}
|
|
1340
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
1341
|
+
const localVarHeaderParameter = {};
|
|
1342
|
+
const localVarQueryParameter = {};
|
|
1343
|
+
// authentication session-oauth required
|
|
1344
|
+
// oauth required
|
|
1345
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
1346
|
+
// authentication api-key required
|
|
1347
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
1348
|
+
if (project !== undefined) {
|
|
1349
|
+
localVarQueryParameter['project'] = project;
|
|
1350
|
+
}
|
|
1351
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1352
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1353
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1354
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1355
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateBrandRequest, localVarRequestOptions, configuration);
|
|
1356
|
+
return {
|
|
1357
|
+
url: toPathString(localVarUrlObj),
|
|
1358
|
+
options: localVarRequestOptions,
|
|
1359
|
+
};
|
|
1360
|
+
}),
|
|
1361
|
+
};
|
|
1362
|
+
};
|
|
1363
|
+
/**
|
|
1364
|
+
* DefaultApi - functional programming interface
|
|
1365
|
+
* @export
|
|
1366
|
+
*/
|
|
1367
|
+
export const DefaultApiFp = function (configuration) {
|
|
1368
|
+
const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration);
|
|
1369
|
+
return {
|
|
1370
|
+
/**
|
|
1371
|
+
* Get the brand for the project
|
|
1372
|
+
* @summary Get brand
|
|
1373
|
+
* @param {string} project What project it is
|
|
1374
|
+
* @param {*} [options] Override http request option.
|
|
1375
|
+
* @throws {RequiredError}
|
|
1376
|
+
*/
|
|
1377
|
+
getBrand(project, options) {
|
|
1378
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1379
|
+
var _a, _b, _c;
|
|
1380
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBrand(project, options);
|
|
1381
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1382
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DefaultApi.getBrand']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1383
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1384
|
+
});
|
|
1385
|
+
},
|
|
1386
|
+
/**
|
|
1387
|
+
* Update the brand for the project
|
|
1388
|
+
* @summary Update brand
|
|
1389
|
+
* @param {string} project What project it is
|
|
1390
|
+
* @param {UpdateBrandRequest} [updateBrandRequest] Update brand request
|
|
1391
|
+
* @param {*} [options] Override http request option.
|
|
1392
|
+
* @throws {RequiredError}
|
|
1393
|
+
*/
|
|
1394
|
+
updateBrand(project, updateBrandRequest, options) {
|
|
1395
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1396
|
+
var _a, _b, _c;
|
|
1397
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateBrand(project, updateBrandRequest, 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 = operationServerMap['DefaultApi.updateBrand']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1400
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1401
|
+
});
|
|
1402
|
+
},
|
|
1403
|
+
};
|
|
1404
|
+
};
|
|
1405
|
+
/**
|
|
1406
|
+
* DefaultApi - factory interface
|
|
1407
|
+
* @export
|
|
1408
|
+
*/
|
|
1409
|
+
export const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
1410
|
+
const localVarFp = DefaultApiFp(configuration);
|
|
1411
|
+
return {
|
|
1412
|
+
/**
|
|
1413
|
+
* Get the brand for the project
|
|
1414
|
+
* @summary Get brand
|
|
1415
|
+
* @param {DefaultApiGetBrandRequest} requestParameters Request parameters.
|
|
1416
|
+
* @param {*} [options] Override http request option.
|
|
1417
|
+
* @throws {RequiredError}
|
|
1418
|
+
*/
|
|
1419
|
+
getBrand(requestParameters, options) {
|
|
1420
|
+
return localVarFp.getBrand(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
1421
|
+
},
|
|
1422
|
+
/**
|
|
1423
|
+
* Update the brand for the project
|
|
1424
|
+
* @summary Update brand
|
|
1425
|
+
* @param {DefaultApiUpdateBrandRequest} requestParameters Request parameters.
|
|
1426
|
+
* @param {*} [options] Override http request option.
|
|
1427
|
+
* @throws {RequiredError}
|
|
1428
|
+
*/
|
|
1429
|
+
updateBrand(requestParameters, options) {
|
|
1430
|
+
return localVarFp.updateBrand(requestParameters.project, requestParameters.updateBrandRequest, options).then((request) => request(axios, basePath));
|
|
1431
|
+
},
|
|
1432
|
+
};
|
|
1433
|
+
};
|
|
1434
|
+
/**
|
|
1435
|
+
* DefaultApi - object-oriented interface
|
|
1436
|
+
* @export
|
|
1437
|
+
* @class DefaultApi
|
|
1438
|
+
* @extends {BaseAPI}
|
|
1439
|
+
*/
|
|
1440
|
+
export class DefaultApi extends BaseAPI {
|
|
1441
|
+
/**
|
|
1442
|
+
* Get the brand for the project
|
|
1443
|
+
* @summary Get brand
|
|
1444
|
+
* @param {DefaultApiGetBrandRequest} requestParameters Request parameters.
|
|
1445
|
+
* @param {*} [options] Override http request option.
|
|
1446
|
+
* @throws {RequiredError}
|
|
1447
|
+
* @memberof DefaultApi
|
|
1448
|
+
*/
|
|
1449
|
+
getBrand(requestParameters, options) {
|
|
1450
|
+
return DefaultApiFp(this.configuration).getBrand(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
1451
|
+
}
|
|
1452
|
+
/**
|
|
1453
|
+
* Update the brand for the project
|
|
1454
|
+
* @summary Update brand
|
|
1455
|
+
* @param {DefaultApiUpdateBrandRequest} requestParameters Request parameters.
|
|
1456
|
+
* @param {*} [options] Override http request option.
|
|
1457
|
+
* @throws {RequiredError}
|
|
1458
|
+
* @memberof DefaultApi
|
|
1459
|
+
*/
|
|
1460
|
+
updateBrand(requestParameters, options) {
|
|
1461
|
+
return DefaultApiFp(this.configuration).updateBrand(requestParameters.project, requestParameters.updateBrandRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1462
|
+
}
|
|
1463
|
+
}
|
|
1464
|
+
/**
|
|
1465
|
+
* FooterApi - axios parameter creator
|
|
1466
|
+
* @export
|
|
1467
|
+
*/
|
|
1468
|
+
export const FooterApiAxiosParamCreator = function (configuration) {
|
|
1469
|
+
return {
|
|
1470
|
+
/**
|
|
1471
|
+
* Get the footer for the project
|
|
1472
|
+
* @summary Get footer
|
|
1473
|
+
* @param {string} project What project it is
|
|
1474
|
+
* @param {*} [options] Override http request option.
|
|
1475
|
+
* @throws {RequiredError}
|
|
1476
|
+
*/
|
|
1477
|
+
getFooter: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
|
|
1478
|
+
// verify required parameter 'project' is not null or undefined
|
|
1479
|
+
assertParamExists('getFooter', 'project', project);
|
|
1480
|
+
const localVarPath = `/v1/website/footer`;
|
|
1481
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1482
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1483
|
+
let baseOptions;
|
|
1484
|
+
if (configuration) {
|
|
1485
|
+
baseOptions = configuration.baseOptions;
|
|
1486
|
+
}
|
|
1487
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1488
|
+
const localVarHeaderParameter = {};
|
|
1489
|
+
const localVarQueryParameter = {};
|
|
1490
|
+
// authentication session-oauth required
|
|
1491
|
+
// oauth required
|
|
1492
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
1493
|
+
// authentication api-key required
|
|
1494
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
1495
|
+
if (project !== undefined) {
|
|
1496
|
+
localVarQueryParameter['project'] = project;
|
|
1497
|
+
}
|
|
1498
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1499
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1500
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1501
|
+
return {
|
|
1502
|
+
url: toPathString(localVarUrlObj),
|
|
1503
|
+
options: localVarRequestOptions,
|
|
1504
|
+
};
|
|
1505
|
+
}),
|
|
1506
|
+
/**
|
|
1507
|
+
* Update a footer
|
|
1508
|
+
* @summary Update footer
|
|
1509
|
+
* @param {string} project What project it is
|
|
1510
|
+
* @param {UpdateFooterRequest} [updateFooterRequest] Update footer
|
|
1511
|
+
* @param {*} [options] Override http request option.
|
|
1512
|
+
* @throws {RequiredError}
|
|
1513
|
+
*/
|
|
1514
|
+
updateFooter: (project_1, updateFooterRequest_1, ...args_1) => __awaiter(this, [project_1, updateFooterRequest_1, ...args_1], void 0, function* (project, updateFooterRequest, options = {}) {
|
|
1515
|
+
// verify required parameter 'project' is not null or undefined
|
|
1516
|
+
assertParamExists('updateFooter', 'project', project);
|
|
1517
|
+
const localVarPath = `/v1/website/footer`;
|
|
1518
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1519
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1520
|
+
let baseOptions;
|
|
1521
|
+
if (configuration) {
|
|
1522
|
+
baseOptions = configuration.baseOptions;
|
|
1523
|
+
}
|
|
1524
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
1525
|
+
const localVarHeaderParameter = {};
|
|
1526
|
+
const localVarQueryParameter = {};
|
|
1527
|
+
// authentication session-oauth required
|
|
1528
|
+
// oauth required
|
|
1529
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
1530
|
+
// authentication api-key required
|
|
1531
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
1532
|
+
if (project !== undefined) {
|
|
1533
|
+
localVarQueryParameter['project'] = project;
|
|
1534
|
+
}
|
|
1535
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1536
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1537
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1538
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1539
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateFooterRequest, localVarRequestOptions, configuration);
|
|
1540
|
+
return {
|
|
1541
|
+
url: toPathString(localVarUrlObj),
|
|
1542
|
+
options: localVarRequestOptions,
|
|
1543
|
+
};
|
|
1544
|
+
}),
|
|
1545
|
+
};
|
|
1546
|
+
};
|
|
1547
|
+
/**
|
|
1548
|
+
* FooterApi - functional programming interface
|
|
1549
|
+
* @export
|
|
1550
|
+
*/
|
|
1551
|
+
export const FooterApiFp = function (configuration) {
|
|
1552
|
+
const localVarAxiosParamCreator = FooterApiAxiosParamCreator(configuration);
|
|
1553
|
+
return {
|
|
1554
|
+
/**
|
|
1555
|
+
* Get the footer for the project
|
|
1556
|
+
* @summary Get footer
|
|
1557
|
+
* @param {string} project What project it is
|
|
1558
|
+
* @param {*} [options] Override http request option.
|
|
1559
|
+
* @throws {RequiredError}
|
|
1560
|
+
*/
|
|
1561
|
+
getFooter(project, options) {
|
|
1562
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1563
|
+
var _a, _b, _c;
|
|
1564
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getFooter(project, options);
|
|
1565
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1566
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FooterApi.getFooter']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1567
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1568
|
+
});
|
|
1569
|
+
},
|
|
1570
|
+
/**
|
|
1571
|
+
* Update a footer
|
|
1572
|
+
* @summary Update footer
|
|
1573
|
+
* @param {string} project What project it is
|
|
1574
|
+
* @param {UpdateFooterRequest} [updateFooterRequest] Update footer
|
|
1575
|
+
* @param {*} [options] Override http request option.
|
|
1576
|
+
* @throws {RequiredError}
|
|
1577
|
+
*/
|
|
1578
|
+
updateFooter(project, updateFooterRequest, options) {
|
|
1579
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1580
|
+
var _a, _b, _c;
|
|
1581
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateFooter(project, updateFooterRequest, options);
|
|
1582
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1583
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FooterApi.updateFooter']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1584
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1585
|
+
});
|
|
1586
|
+
},
|
|
1587
|
+
};
|
|
1588
|
+
};
|
|
1589
|
+
/**
|
|
1590
|
+
* FooterApi - factory interface
|
|
1591
|
+
* @export
|
|
1592
|
+
*/
|
|
1593
|
+
export const FooterApiFactory = function (configuration, basePath, axios) {
|
|
1594
|
+
const localVarFp = FooterApiFp(configuration);
|
|
1595
|
+
return {
|
|
1596
|
+
/**
|
|
1597
|
+
* Get the footer for the project
|
|
1598
|
+
* @summary Get footer
|
|
1599
|
+
* @param {FooterApiGetFooterRequest} requestParameters Request parameters.
|
|
1600
|
+
* @param {*} [options] Override http request option.
|
|
1601
|
+
* @throws {RequiredError}
|
|
1602
|
+
*/
|
|
1603
|
+
getFooter(requestParameters, options) {
|
|
1604
|
+
return localVarFp.getFooter(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
1605
|
+
},
|
|
1606
|
+
/**
|
|
1607
|
+
* Update a footer
|
|
1608
|
+
* @summary Update footer
|
|
1609
|
+
* @param {FooterApiUpdateFooterRequest} requestParameters Request parameters.
|
|
1610
|
+
* @param {*} [options] Override http request option.
|
|
1611
|
+
* @throws {RequiredError}
|
|
1612
|
+
*/
|
|
1613
|
+
updateFooter(requestParameters, options) {
|
|
1614
|
+
return localVarFp.updateFooter(requestParameters.project, requestParameters.updateFooterRequest, options).then((request) => request(axios, basePath));
|
|
1615
|
+
},
|
|
1616
|
+
};
|
|
1617
|
+
};
|
|
1618
|
+
/**
|
|
1619
|
+
* FooterApi - object-oriented interface
|
|
1620
|
+
* @export
|
|
1621
|
+
* @class FooterApi
|
|
1622
|
+
* @extends {BaseAPI}
|
|
1623
|
+
*/
|
|
1624
|
+
export class FooterApi extends BaseAPI {
|
|
1625
|
+
/**
|
|
1626
|
+
* Get the footer for the project
|
|
1627
|
+
* @summary Get footer
|
|
1628
|
+
* @param {FooterApiGetFooterRequest} requestParameters Request parameters.
|
|
1629
|
+
* @param {*} [options] Override http request option.
|
|
1630
|
+
* @throws {RequiredError}
|
|
1631
|
+
* @memberof FooterApi
|
|
1632
|
+
*/
|
|
1633
|
+
getFooter(requestParameters, options) {
|
|
1634
|
+
return FooterApiFp(this.configuration).getFooter(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
1635
|
+
}
|
|
1636
|
+
/**
|
|
1637
|
+
* Update a footer
|
|
1638
|
+
* @summary Update footer
|
|
1639
|
+
* @param {FooterApiUpdateFooterRequest} requestParameters Request parameters.
|
|
1640
|
+
* @param {*} [options] Override http request option.
|
|
1641
|
+
* @throws {RequiredError}
|
|
1642
|
+
* @memberof FooterApi
|
|
1643
|
+
*/
|
|
1644
|
+
updateFooter(requestParameters, options) {
|
|
1645
|
+
return FooterApiFp(this.configuration).updateFooter(requestParameters.project, requestParameters.updateFooterRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1646
|
+
}
|
|
1647
|
+
}
|
|
1280
1648
|
/**
|
|
1281
1649
|
* MenuApi - axios parameter creator
|
|
1282
1650
|
* @export
|
|
@@ -2244,6 +2612,54 @@ export class PaymentApi extends BaseAPI {
|
|
|
2244
2612
|
*/
|
|
2245
2613
|
export const ReviewsApiAxiosParamCreator = function (configuration) {
|
|
2246
2614
|
return {
|
|
2615
|
+
/**
|
|
2616
|
+
* Export reviews as a CSV file.
|
|
2617
|
+
* @summary Export reviews
|
|
2618
|
+
* @param {string} project What project it is
|
|
2619
|
+
* @param {string} [start] Start of date range to filter by
|
|
2620
|
+
* @param {string} [end] End of date range to filter by
|
|
2621
|
+
* @param {*} [options] Override http request option.
|
|
2622
|
+
* @throws {RequiredError}
|
|
2623
|
+
*/
|
|
2624
|
+
exportReviews: (project_1, start_1, end_1, ...args_1) => __awaiter(this, [project_1, start_1, end_1, ...args_1], void 0, function* (project, start, end, options = {}) {
|
|
2625
|
+
// verify required parameter 'project' is not null or undefined
|
|
2626
|
+
assertParamExists('exportReviews', 'project', project);
|
|
2627
|
+
const localVarPath = `/v1/website/reviews/export`;
|
|
2628
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2629
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2630
|
+
let baseOptions;
|
|
2631
|
+
if (configuration) {
|
|
2632
|
+
baseOptions = configuration.baseOptions;
|
|
2633
|
+
}
|
|
2634
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2635
|
+
const localVarHeaderParameter = {};
|
|
2636
|
+
const localVarQueryParameter = {};
|
|
2637
|
+
// authentication session-oauth required
|
|
2638
|
+
// oauth required
|
|
2639
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
2640
|
+
// authentication api-key required
|
|
2641
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
2642
|
+
if (project !== undefined) {
|
|
2643
|
+
localVarQueryParameter['project'] = project;
|
|
2644
|
+
}
|
|
2645
|
+
if (start !== undefined) {
|
|
2646
|
+
localVarQueryParameter['start'] = (start instanceof Date) ?
|
|
2647
|
+
start.toISOString() :
|
|
2648
|
+
start;
|
|
2649
|
+
}
|
|
2650
|
+
if (end !== undefined) {
|
|
2651
|
+
localVarQueryParameter['end'] = (end instanceof Date) ?
|
|
2652
|
+
end.toISOString() :
|
|
2653
|
+
end;
|
|
2654
|
+
}
|
|
2655
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2656
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2657
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2658
|
+
return {
|
|
2659
|
+
url: toPathString(localVarUrlObj),
|
|
2660
|
+
options: localVarRequestOptions,
|
|
2661
|
+
};
|
|
2662
|
+
}),
|
|
2247
2663
|
/**
|
|
2248
2664
|
*
|
|
2249
2665
|
* @summary Get review
|
|
@@ -2292,10 +2708,12 @@ export const ReviewsApiAxiosParamCreator = function (configuration) {
|
|
|
2292
2708
|
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
2293
2709
|
* @param {string} [search] Search term to filter results
|
|
2294
2710
|
* @param {Array<string>} [sortBy] An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending.
|
|
2711
|
+
* @param {string} [start] Start of date range to filter by
|
|
2712
|
+
* @param {string} [end] End of date range to filter by
|
|
2295
2713
|
* @param {*} [options] Override http request option.
|
|
2296
2714
|
* @throws {RequiredError}
|
|
2297
2715
|
*/
|
|
2298
|
-
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 = {}) {
|
|
2716
|
+
listReviews: (project_1, pageToken_1, pageSize_1, search_1, sortBy_1, start_1, end_1, ...args_1) => __awaiter(this, [project_1, pageToken_1, pageSize_1, search_1, sortBy_1, start_1, end_1, ...args_1], void 0, function* (project, pageToken, pageSize, search, sortBy, start, end, options = {}) {
|
|
2299
2717
|
// verify required parameter 'project' is not null or undefined
|
|
2300
2718
|
assertParamExists('listReviews', 'project', project);
|
|
2301
2719
|
const localVarPath = `/v1/website/reviews`;
|
|
@@ -2328,6 +2746,16 @@ export const ReviewsApiAxiosParamCreator = function (configuration) {
|
|
|
2328
2746
|
if (sortBy) {
|
|
2329
2747
|
localVarQueryParameter['sortBy'] = sortBy;
|
|
2330
2748
|
}
|
|
2749
|
+
if (start !== undefined) {
|
|
2750
|
+
localVarQueryParameter['start'] = (start instanceof Date) ?
|
|
2751
|
+
start.toISOString() :
|
|
2752
|
+
start;
|
|
2753
|
+
}
|
|
2754
|
+
if (end !== undefined) {
|
|
2755
|
+
localVarQueryParameter['end'] = (end instanceof Date) ?
|
|
2756
|
+
end.toISOString() :
|
|
2757
|
+
end;
|
|
2758
|
+
}
|
|
2331
2759
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2332
2760
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2333
2761
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -2388,6 +2816,24 @@ export const ReviewsApiAxiosParamCreator = function (configuration) {
|
|
|
2388
2816
|
export const ReviewsApiFp = function (configuration) {
|
|
2389
2817
|
const localVarAxiosParamCreator = ReviewsApiAxiosParamCreator(configuration);
|
|
2390
2818
|
return {
|
|
2819
|
+
/**
|
|
2820
|
+
* Export reviews as a CSV file.
|
|
2821
|
+
* @summary Export reviews
|
|
2822
|
+
* @param {string} project What project it is
|
|
2823
|
+
* @param {string} [start] Start of date range to filter by
|
|
2824
|
+
* @param {string} [end] End of date range to filter by
|
|
2825
|
+
* @param {*} [options] Override http request option.
|
|
2826
|
+
* @throws {RequiredError}
|
|
2827
|
+
*/
|
|
2828
|
+
exportReviews(project, start, end, options) {
|
|
2829
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2830
|
+
var _a, _b, _c;
|
|
2831
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.exportReviews(project, start, end, options);
|
|
2832
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2833
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ReviewsApi.exportReviews']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2834
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2835
|
+
});
|
|
2836
|
+
},
|
|
2391
2837
|
/**
|
|
2392
2838
|
*
|
|
2393
2839
|
* @summary Get review
|
|
@@ -2413,13 +2859,15 @@ export const ReviewsApiFp = function (configuration) {
|
|
|
2413
2859
|
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
2414
2860
|
* @param {string} [search] Search term to filter results
|
|
2415
2861
|
* @param {Array<string>} [sortBy] An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending.
|
|
2862
|
+
* @param {string} [start] Start of date range to filter by
|
|
2863
|
+
* @param {string} [end] End of date range to filter by
|
|
2416
2864
|
* @param {*} [options] Override http request option.
|
|
2417
2865
|
* @throws {RequiredError}
|
|
2418
2866
|
*/
|
|
2419
|
-
listReviews(project, pageToken, pageSize, search, sortBy, options) {
|
|
2867
|
+
listReviews(project, pageToken, pageSize, search, sortBy, start, end, options) {
|
|
2420
2868
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2421
2869
|
var _a, _b, _c;
|
|
2422
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listReviews(project, pageToken, pageSize, search, sortBy, options);
|
|
2870
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listReviews(project, pageToken, pageSize, search, sortBy, start, end, options);
|
|
2423
2871
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2424
2872
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ReviewsApi.listReviews']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2425
2873
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2452,6 +2900,16 @@ export const ReviewsApiFp = function (configuration) {
|
|
|
2452
2900
|
export const ReviewsApiFactory = function (configuration, basePath, axios) {
|
|
2453
2901
|
const localVarFp = ReviewsApiFp(configuration);
|
|
2454
2902
|
return {
|
|
2903
|
+
/**
|
|
2904
|
+
* Export reviews as a CSV file.
|
|
2905
|
+
* @summary Export reviews
|
|
2906
|
+
* @param {ReviewsApiExportReviewsRequest} requestParameters Request parameters.
|
|
2907
|
+
* @param {*} [options] Override http request option.
|
|
2908
|
+
* @throws {RequiredError}
|
|
2909
|
+
*/
|
|
2910
|
+
exportReviews(requestParameters, options) {
|
|
2911
|
+
return localVarFp.exportReviews(requestParameters.project, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
|
|
2912
|
+
},
|
|
2455
2913
|
/**
|
|
2456
2914
|
*
|
|
2457
2915
|
* @summary Get review
|
|
@@ -2470,7 +2928,7 @@ export const ReviewsApiFactory = function (configuration, basePath, axios) {
|
|
|
2470
2928
|
* @throws {RequiredError}
|
|
2471
2929
|
*/
|
|
2472
2930
|
listReviews(requestParameters, options) {
|
|
2473
|
-
return localVarFp.listReviews(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, options).then((request) => request(axios, basePath));
|
|
2931
|
+
return localVarFp.listReviews(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
|
|
2474
2932
|
},
|
|
2475
2933
|
/**
|
|
2476
2934
|
*
|
|
@@ -2491,6 +2949,17 @@ export const ReviewsApiFactory = function (configuration, basePath, axios) {
|
|
|
2491
2949
|
* @extends {BaseAPI}
|
|
2492
2950
|
*/
|
|
2493
2951
|
export class ReviewsApi extends BaseAPI {
|
|
2952
|
+
/**
|
|
2953
|
+
* Export reviews as a CSV file.
|
|
2954
|
+
* @summary Export reviews
|
|
2955
|
+
* @param {ReviewsApiExportReviewsRequest} requestParameters Request parameters.
|
|
2956
|
+
* @param {*} [options] Override http request option.
|
|
2957
|
+
* @throws {RequiredError}
|
|
2958
|
+
* @memberof ReviewsApi
|
|
2959
|
+
*/
|
|
2960
|
+
exportReviews(requestParameters, options) {
|
|
2961
|
+
return ReviewsApiFp(this.configuration).exportReviews(requestParameters.project, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
|
|
2962
|
+
}
|
|
2494
2963
|
/**
|
|
2495
2964
|
*
|
|
2496
2965
|
* @summary Get review
|
|
@@ -2511,7 +2980,7 @@ export class ReviewsApi extends BaseAPI {
|
|
|
2511
2980
|
* @memberof ReviewsApi
|
|
2512
2981
|
*/
|
|
2513
2982
|
listReviews(requestParameters, options) {
|
|
2514
|
-
return ReviewsApiFp(this.configuration).listReviews(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, options).then((request) => request(this.axios, this.basePath));
|
|
2983
|
+
return ReviewsApiFp(this.configuration).listReviews(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
|
|
2515
2984
|
}
|
|
2516
2985
|
/**
|
|
2517
2986
|
*
|
package/dist/esm/base.d.ts
CHANGED
package/dist/esm/base.js
CHANGED
package/dist/esm/common.d.ts
CHANGED
package/dist/esm/common.js
CHANGED
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED