@teemill/website 0.18.0 → 0.19.1
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 +582 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +396 -1
- package/dist/api.js +294 -2
- 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 +396 -1
- package/dist/esm/api.js +288 -1
- 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.1
|
|
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
|
|
@@ -2265,6 +2266,297 @@ class PaymentApi extends base_1.BaseAPI {
|
|
|
2265
2266
|
}
|
|
2266
2267
|
}
|
|
2267
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 {Array<string>} [sortBy] An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending.
|
|
2323
|
+
* @param {*} [options] Override http request option.
|
|
2324
|
+
* @throws {RequiredError}
|
|
2325
|
+
*/
|
|
2326
|
+
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 = {}) {
|
|
2327
|
+
// verify required parameter 'project' is not null or undefined
|
|
2328
|
+
(0, common_1.assertParamExists)('listReviews', 'project', project);
|
|
2329
|
+
const localVarPath = `/v1/website/reviews`;
|
|
2330
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2331
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2332
|
+
let baseOptions;
|
|
2333
|
+
if (configuration) {
|
|
2334
|
+
baseOptions = configuration.baseOptions;
|
|
2335
|
+
}
|
|
2336
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2337
|
+
const localVarHeaderParameter = {};
|
|
2338
|
+
const localVarQueryParameter = {};
|
|
2339
|
+
// authentication session-oauth required
|
|
2340
|
+
// oauth required
|
|
2341
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
2342
|
+
// authentication api-key required
|
|
2343
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
2344
|
+
if (project !== undefined) {
|
|
2345
|
+
localVarQueryParameter['project'] = project;
|
|
2346
|
+
}
|
|
2347
|
+
if (pageToken !== undefined) {
|
|
2348
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
2349
|
+
}
|
|
2350
|
+
if (pageSize !== undefined) {
|
|
2351
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
2352
|
+
}
|
|
2353
|
+
if (search !== undefined) {
|
|
2354
|
+
localVarQueryParameter['search'] = search;
|
|
2355
|
+
}
|
|
2356
|
+
if (sortBy) {
|
|
2357
|
+
localVarQueryParameter['sortBy'] = sortBy;
|
|
2358
|
+
}
|
|
2359
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2360
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2361
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2362
|
+
return {
|
|
2363
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2364
|
+
options: localVarRequestOptions,
|
|
2365
|
+
};
|
|
2366
|
+
}),
|
|
2367
|
+
/**
|
|
2368
|
+
*
|
|
2369
|
+
* @summary Moderate review
|
|
2370
|
+
* @param {string} project What project it is
|
|
2371
|
+
* @param {string} reviewId Review\'s unique identifier
|
|
2372
|
+
* @param {ModerateReviewRequest} [moderateReviewRequest]
|
|
2373
|
+
* @param {*} [options] Override http request option.
|
|
2374
|
+
* @throws {RequiredError}
|
|
2375
|
+
*/
|
|
2376
|
+
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 = {}) {
|
|
2377
|
+
// verify required parameter 'project' is not null or undefined
|
|
2378
|
+
(0, common_1.assertParamExists)('moderateReview', 'project', project);
|
|
2379
|
+
// verify required parameter 'reviewId' is not null or undefined
|
|
2380
|
+
(0, common_1.assertParamExists)('moderateReview', 'reviewId', reviewId);
|
|
2381
|
+
const localVarPath = `/v1/website/reviews/{reviewId}/moderate`
|
|
2382
|
+
.replace(`{${"reviewId"}}`, encodeURIComponent(String(reviewId)));
|
|
2383
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2384
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2385
|
+
let baseOptions;
|
|
2386
|
+
if (configuration) {
|
|
2387
|
+
baseOptions = configuration.baseOptions;
|
|
2388
|
+
}
|
|
2389
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
2390
|
+
const localVarHeaderParameter = {};
|
|
2391
|
+
const localVarQueryParameter = {};
|
|
2392
|
+
// authentication session-oauth required
|
|
2393
|
+
// oauth required
|
|
2394
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
2395
|
+
// authentication api-key required
|
|
2396
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
2397
|
+
if (project !== undefined) {
|
|
2398
|
+
localVarQueryParameter['project'] = project;
|
|
2399
|
+
}
|
|
2400
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2401
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2402
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2403
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2404
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(moderateReviewRequest, localVarRequestOptions, configuration);
|
|
2405
|
+
return {
|
|
2406
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2407
|
+
options: localVarRequestOptions,
|
|
2408
|
+
};
|
|
2409
|
+
}),
|
|
2410
|
+
};
|
|
2411
|
+
};
|
|
2412
|
+
exports.ReviewsApiAxiosParamCreator = ReviewsApiAxiosParamCreator;
|
|
2413
|
+
/**
|
|
2414
|
+
* ReviewsApi - functional programming interface
|
|
2415
|
+
* @export
|
|
2416
|
+
*/
|
|
2417
|
+
const ReviewsApiFp = function (configuration) {
|
|
2418
|
+
const localVarAxiosParamCreator = (0, exports.ReviewsApiAxiosParamCreator)(configuration);
|
|
2419
|
+
return {
|
|
2420
|
+
/**
|
|
2421
|
+
*
|
|
2422
|
+
* @summary Get review
|
|
2423
|
+
* @param {string} project What project it is
|
|
2424
|
+
* @param {string} reviewId Review\'s unique identifier
|
|
2425
|
+
* @param {*} [options] Override http request option.
|
|
2426
|
+
* @throws {RequiredError}
|
|
2427
|
+
*/
|
|
2428
|
+
getReview(project, reviewId, options) {
|
|
2429
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2430
|
+
var _a, _b, _c;
|
|
2431
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getReview(project, reviewId, options);
|
|
2432
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2433
|
+
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;
|
|
2434
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2435
|
+
});
|
|
2436
|
+
},
|
|
2437
|
+
/**
|
|
2438
|
+
*
|
|
2439
|
+
* @summary List Reviews
|
|
2440
|
+
* @param {string} project What project it is
|
|
2441
|
+
* @param {number} [pageToken] Page reference token
|
|
2442
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
2443
|
+
* @param {string} [search] Search term to filter results
|
|
2444
|
+
* @param {Array<string>} [sortBy] An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending.
|
|
2445
|
+
* @param {*} [options] Override http request option.
|
|
2446
|
+
* @throws {RequiredError}
|
|
2447
|
+
*/
|
|
2448
|
+
listReviews(project, pageToken, pageSize, search, sortBy, options) {
|
|
2449
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2450
|
+
var _a, _b, _c;
|
|
2451
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listReviews(project, pageToken, pageSize, search, sortBy, options);
|
|
2452
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2453
|
+
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;
|
|
2454
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2455
|
+
});
|
|
2456
|
+
},
|
|
2457
|
+
/**
|
|
2458
|
+
*
|
|
2459
|
+
* @summary Moderate review
|
|
2460
|
+
* @param {string} project What project it is
|
|
2461
|
+
* @param {string} reviewId Review\'s unique identifier
|
|
2462
|
+
* @param {ModerateReviewRequest} [moderateReviewRequest]
|
|
2463
|
+
* @param {*} [options] Override http request option.
|
|
2464
|
+
* @throws {RequiredError}
|
|
2465
|
+
*/
|
|
2466
|
+
moderateReview(project, reviewId, moderateReviewRequest, options) {
|
|
2467
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2468
|
+
var _a, _b, _c;
|
|
2469
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.moderateReview(project, reviewId, moderateReviewRequest, options);
|
|
2470
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2471
|
+
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;
|
|
2472
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2473
|
+
});
|
|
2474
|
+
},
|
|
2475
|
+
};
|
|
2476
|
+
};
|
|
2477
|
+
exports.ReviewsApiFp = ReviewsApiFp;
|
|
2478
|
+
/**
|
|
2479
|
+
* ReviewsApi - factory interface
|
|
2480
|
+
* @export
|
|
2481
|
+
*/
|
|
2482
|
+
const ReviewsApiFactory = function (configuration, basePath, axios) {
|
|
2483
|
+
const localVarFp = (0, exports.ReviewsApiFp)(configuration);
|
|
2484
|
+
return {
|
|
2485
|
+
/**
|
|
2486
|
+
*
|
|
2487
|
+
* @summary Get review
|
|
2488
|
+
* @param {ReviewsApiGetReviewRequest} requestParameters Request parameters.
|
|
2489
|
+
* @param {*} [options] Override http request option.
|
|
2490
|
+
* @throws {RequiredError}
|
|
2491
|
+
*/
|
|
2492
|
+
getReview(requestParameters, options) {
|
|
2493
|
+
return localVarFp.getReview(requestParameters.project, requestParameters.reviewId, options).then((request) => request(axios, basePath));
|
|
2494
|
+
},
|
|
2495
|
+
/**
|
|
2496
|
+
*
|
|
2497
|
+
* @summary List Reviews
|
|
2498
|
+
* @param {ReviewsApiListReviewsRequest} requestParameters Request parameters.
|
|
2499
|
+
* @param {*} [options] Override http request option.
|
|
2500
|
+
* @throws {RequiredError}
|
|
2501
|
+
*/
|
|
2502
|
+
listReviews(requestParameters, options) {
|
|
2503
|
+
return localVarFp.listReviews(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, options).then((request) => request(axios, basePath));
|
|
2504
|
+
},
|
|
2505
|
+
/**
|
|
2506
|
+
*
|
|
2507
|
+
* @summary Moderate review
|
|
2508
|
+
* @param {ReviewsApiModerateReviewRequest} requestParameters Request parameters.
|
|
2509
|
+
* @param {*} [options] Override http request option.
|
|
2510
|
+
* @throws {RequiredError}
|
|
2511
|
+
*/
|
|
2512
|
+
moderateReview(requestParameters, options) {
|
|
2513
|
+
return localVarFp.moderateReview(requestParameters.project, requestParameters.reviewId, requestParameters.moderateReviewRequest, options).then((request) => request(axios, basePath));
|
|
2514
|
+
},
|
|
2515
|
+
};
|
|
2516
|
+
};
|
|
2517
|
+
exports.ReviewsApiFactory = ReviewsApiFactory;
|
|
2518
|
+
/**
|
|
2519
|
+
* ReviewsApi - object-oriented interface
|
|
2520
|
+
* @export
|
|
2521
|
+
* @class ReviewsApi
|
|
2522
|
+
* @extends {BaseAPI}
|
|
2523
|
+
*/
|
|
2524
|
+
class ReviewsApi extends base_1.BaseAPI {
|
|
2525
|
+
/**
|
|
2526
|
+
*
|
|
2527
|
+
* @summary Get review
|
|
2528
|
+
* @param {ReviewsApiGetReviewRequest} requestParameters Request parameters.
|
|
2529
|
+
* @param {*} [options] Override http request option.
|
|
2530
|
+
* @throws {RequiredError}
|
|
2531
|
+
* @memberof ReviewsApi
|
|
2532
|
+
*/
|
|
2533
|
+
getReview(requestParameters, options) {
|
|
2534
|
+
return (0, exports.ReviewsApiFp)(this.configuration).getReview(requestParameters.project, requestParameters.reviewId, options).then((request) => request(this.axios, this.basePath));
|
|
2535
|
+
}
|
|
2536
|
+
/**
|
|
2537
|
+
*
|
|
2538
|
+
* @summary List Reviews
|
|
2539
|
+
* @param {ReviewsApiListReviewsRequest} requestParameters Request parameters.
|
|
2540
|
+
* @param {*} [options] Override http request option.
|
|
2541
|
+
* @throws {RequiredError}
|
|
2542
|
+
* @memberof ReviewsApi
|
|
2543
|
+
*/
|
|
2544
|
+
listReviews(requestParameters, options) {
|
|
2545
|
+
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));
|
|
2546
|
+
}
|
|
2547
|
+
/**
|
|
2548
|
+
*
|
|
2549
|
+
* @summary Moderate review
|
|
2550
|
+
* @param {ReviewsApiModerateReviewRequest} requestParameters Request parameters.
|
|
2551
|
+
* @param {*} [options] Override http request option.
|
|
2552
|
+
* @throws {RequiredError}
|
|
2553
|
+
* @memberof ReviewsApi
|
|
2554
|
+
*/
|
|
2555
|
+
moderateReview(requestParameters, options) {
|
|
2556
|
+
return (0, exports.ReviewsApiFp)(this.configuration).moderateReview(requestParameters.project, requestParameters.reviewId, requestParameters.moderateReviewRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2557
|
+
}
|
|
2558
|
+
}
|
|
2559
|
+
exports.ReviewsApi = ReviewsApi;
|
|
2268
2560
|
/**
|
|
2269
2561
|
* RoutesApi - axios parameter creator
|
|
2270
2562
|
* @export
|
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