@teemill/website 0.19.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 +19 -6
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +11 -3
- package/dist/api.js +11 -6
- 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 +11 -3
- package/dist/esm/api.js +11 -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/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @teemill/website@0.19.
|
|
1
|
+
## @teemill/website@0.19.1
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @teemill/website@0.19.
|
|
39
|
+
npm install @teemill/website@0.19.1 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
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.19.
|
|
7
|
+
* The version of the OpenAPI document: 0.19.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5402,10 +5402,11 @@ export const ReviewsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
5402
5402
|
* @param {number} [pageToken] Page reference token
|
|
5403
5403
|
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
5404
5404
|
* @param {string} [search] Search term to filter results
|
|
5405
|
+
* @param {Array<string>} [sortBy] An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending.
|
|
5405
5406
|
* @param {*} [options] Override http request option.
|
|
5406
5407
|
* @throws {RequiredError}
|
|
5407
5408
|
*/
|
|
5408
|
-
listReviews: async (project: string, pageToken?: number, pageSize?: number, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5409
|
+
listReviews: async (project: string, pageToken?: number, pageSize?: number, search?: string, sortBy?: Array<string>, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5409
5410
|
// verify required parameter 'project' is not null or undefined
|
|
5410
5411
|
assertParamExists('listReviews', 'project', project)
|
|
5411
5412
|
const localVarPath = `/v1/website/reviews`;
|
|
@@ -5443,6 +5444,10 @@ export const ReviewsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
5443
5444
|
localVarQueryParameter['search'] = search;
|
|
5444
5445
|
}
|
|
5445
5446
|
|
|
5447
|
+
if (sortBy) {
|
|
5448
|
+
localVarQueryParameter['sortBy'] = sortBy;
|
|
5449
|
+
}
|
|
5450
|
+
|
|
5446
5451
|
|
|
5447
5452
|
|
|
5448
5453
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -5537,11 +5542,12 @@ export const ReviewsApiFp = function(configuration?: Configuration) {
|
|
|
5537
5542
|
* @param {number} [pageToken] Page reference token
|
|
5538
5543
|
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
5539
5544
|
* @param {string} [search] Search term to filter results
|
|
5545
|
+
* @param {Array<string>} [sortBy] An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending.
|
|
5540
5546
|
* @param {*} [options] Override http request option.
|
|
5541
5547
|
* @throws {RequiredError}
|
|
5542
5548
|
*/
|
|
5543
|
-
async listReviews(project: string, pageToken?: number, pageSize?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReviewsResponse>> {
|
|
5544
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listReviews(project, pageToken, pageSize, search, options);
|
|
5549
|
+
async listReviews(project: string, pageToken?: number, pageSize?: number, search?: string, sortBy?: Array<string>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReviewsResponse>> {
|
|
5550
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listReviews(project, pageToken, pageSize, search, sortBy, options);
|
|
5545
5551
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5546
5552
|
const localVarOperationServerBasePath = operationServerMap['ReviewsApi.listReviews']?.[localVarOperationServerIndex]?.url;
|
|
5547
5553
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -5589,7 +5595,7 @@ export const ReviewsApiFactory = function (configuration?: Configuration, basePa
|
|
|
5589
5595
|
* @throws {RequiredError}
|
|
5590
5596
|
*/
|
|
5591
5597
|
listReviews(requestParameters: ReviewsApiListReviewsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReviewsResponse> {
|
|
5592
|
-
return localVarFp.listReviews(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
5598
|
+
return localVarFp.listReviews(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, options).then((request) => request(axios, basePath));
|
|
5593
5599
|
},
|
|
5594
5600
|
/**
|
|
5595
5601
|
*
|
|
@@ -5658,6 +5664,13 @@ export interface ReviewsApiListReviewsRequest {
|
|
|
5658
5664
|
* @memberof ReviewsApiListReviews
|
|
5659
5665
|
*/
|
|
5660
5666
|
readonly search?: string
|
|
5667
|
+
|
|
5668
|
+
/**
|
|
5669
|
+
* An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending.
|
|
5670
|
+
* @type {Array<string>}
|
|
5671
|
+
* @memberof ReviewsApiListReviews
|
|
5672
|
+
*/
|
|
5673
|
+
readonly sortBy?: Array<string>
|
|
5661
5674
|
}
|
|
5662
5675
|
|
|
5663
5676
|
/**
|
|
@@ -5716,7 +5729,7 @@ export class ReviewsApi extends BaseAPI {
|
|
|
5716
5729
|
* @memberof ReviewsApi
|
|
5717
5730
|
*/
|
|
5718
5731
|
public listReviews(requestParameters: ReviewsApiListReviewsRequest, options?: RawAxiosRequestConfig) {
|
|
5719
|
-
return ReviewsApiFp(this.configuration).listReviews(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
5732
|
+
return ReviewsApiFp(this.configuration).listReviews(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, options).then((request) => request(this.axios, this.basePath));
|
|
5720
5733
|
}
|
|
5721
5734
|
|
|
5722
5735
|
/**
|
package/base.ts
CHANGED
package/common.ts
CHANGED
package/configuration.ts
CHANGED
package/dist/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Website API
|
|
3
3
|
* Manage your PodOS Website
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.19.
|
|
5
|
+
* The version of the OpenAPI document: 0.19.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -3947,10 +3947,11 @@ export declare const ReviewsApiAxiosParamCreator: (configuration?: Configuration
|
|
|
3947
3947
|
* @param {number} [pageToken] Page reference token
|
|
3948
3948
|
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
3949
3949
|
* @param {string} [search] Search term to filter results
|
|
3950
|
+
* @param {Array<string>} [sortBy] An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending.
|
|
3950
3951
|
* @param {*} [options] Override http request option.
|
|
3951
3952
|
* @throws {RequiredError}
|
|
3952
3953
|
*/
|
|
3953
|
-
listReviews: (project: string, pageToken?: number, pageSize?: number, search?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3954
|
+
listReviews: (project: string, pageToken?: number, pageSize?: number, search?: string, sortBy?: Array<string>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3954
3955
|
/**
|
|
3955
3956
|
*
|
|
3956
3957
|
* @summary Moderate review
|
|
@@ -3983,10 +3984,11 @@ export declare const ReviewsApiFp: (configuration?: Configuration) => {
|
|
|
3983
3984
|
* @param {number} [pageToken] Page reference token
|
|
3984
3985
|
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
3985
3986
|
* @param {string} [search] Search term to filter results
|
|
3987
|
+
* @param {Array<string>} [sortBy] An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending.
|
|
3986
3988
|
* @param {*} [options] Override http request option.
|
|
3987
3989
|
* @throws {RequiredError}
|
|
3988
3990
|
*/
|
|
3989
|
-
listReviews(project: string, pageToken?: number, pageSize?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReviewsResponse>>;
|
|
3991
|
+
listReviews(project: string, pageToken?: number, pageSize?: number, search?: string, sortBy?: Array<string>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReviewsResponse>>;
|
|
3990
3992
|
/**
|
|
3991
3993
|
*
|
|
3992
3994
|
* @summary Moderate review
|
|
@@ -4077,6 +4079,12 @@ export interface ReviewsApiListReviewsRequest {
|
|
|
4077
4079
|
* @memberof ReviewsApiListReviews
|
|
4078
4080
|
*/
|
|
4079
4081
|
readonly search?: string;
|
|
4082
|
+
/**
|
|
4083
|
+
* An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending.
|
|
4084
|
+
* @type {Array<string>}
|
|
4085
|
+
* @memberof ReviewsApiListReviews
|
|
4086
|
+
*/
|
|
4087
|
+
readonly sortBy?: Array<string>;
|
|
4080
4088
|
}
|
|
4081
4089
|
/**
|
|
4082
4090
|
* Request parameters for moderateReview operation in ReviewsApi.
|
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.19.
|
|
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).
|
|
@@ -2319,10 +2319,11 @@ const ReviewsApiAxiosParamCreator = function (configuration) {
|
|
|
2319
2319
|
* @param {number} [pageToken] Page reference token
|
|
2320
2320
|
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
2321
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.
|
|
2322
2323
|
* @param {*} [options] Override http request option.
|
|
2323
2324
|
* @throws {RequiredError}
|
|
2324
2325
|
*/
|
|
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
|
+
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
2327
|
// verify required parameter 'project' is not null or undefined
|
|
2327
2328
|
(0, common_1.assertParamExists)('listReviews', 'project', project);
|
|
2328
2329
|
const localVarPath = `/v1/website/reviews`;
|
|
@@ -2352,6 +2353,9 @@ const ReviewsApiAxiosParamCreator = function (configuration) {
|
|
|
2352
2353
|
if (search !== undefined) {
|
|
2353
2354
|
localVarQueryParameter['search'] = search;
|
|
2354
2355
|
}
|
|
2356
|
+
if (sortBy) {
|
|
2357
|
+
localVarQueryParameter['sortBy'] = sortBy;
|
|
2358
|
+
}
|
|
2355
2359
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2356
2360
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2357
2361
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -2437,13 +2441,14 @@ const ReviewsApiFp = function (configuration) {
|
|
|
2437
2441
|
* @param {number} [pageToken] Page reference token
|
|
2438
2442
|
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
2439
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.
|
|
2440
2445
|
* @param {*} [options] Override http request option.
|
|
2441
2446
|
* @throws {RequiredError}
|
|
2442
2447
|
*/
|
|
2443
|
-
listReviews(project, pageToken, pageSize, search, options) {
|
|
2448
|
+
listReviews(project, pageToken, pageSize, search, sortBy, options) {
|
|
2444
2449
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2445
2450
|
var _a, _b, _c;
|
|
2446
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listReviews(project, pageToken, pageSize, search, options);
|
|
2451
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listReviews(project, pageToken, pageSize, search, sortBy, options);
|
|
2447
2452
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2448
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;
|
|
2449
2454
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2495,7 +2500,7 @@ const ReviewsApiFactory = function (configuration, basePath, axios) {
|
|
|
2495
2500
|
* @throws {RequiredError}
|
|
2496
2501
|
*/
|
|
2497
2502
|
listReviews(requestParameters, options) {
|
|
2498
|
-
return localVarFp.listReviews(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
2503
|
+
return localVarFp.listReviews(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, options).then((request) => request(axios, basePath));
|
|
2499
2504
|
},
|
|
2500
2505
|
/**
|
|
2501
2506
|
*
|
|
@@ -2537,7 +2542,7 @@ class ReviewsApi extends base_1.BaseAPI {
|
|
|
2537
2542
|
* @memberof ReviewsApi
|
|
2538
2543
|
*/
|
|
2539
2544
|
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));
|
|
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));
|
|
2541
2546
|
}
|
|
2542
2547
|
/**
|
|
2543
2548
|
*
|
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
package/dist/esm/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Website API
|
|
3
3
|
* Manage your PodOS Website
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.19.
|
|
5
|
+
* The version of the OpenAPI document: 0.19.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -3947,10 +3947,11 @@ export declare const ReviewsApiAxiosParamCreator: (configuration?: Configuration
|
|
|
3947
3947
|
* @param {number} [pageToken] Page reference token
|
|
3948
3948
|
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
3949
3949
|
* @param {string} [search] Search term to filter results
|
|
3950
|
+
* @param {Array<string>} [sortBy] An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending.
|
|
3950
3951
|
* @param {*} [options] Override http request option.
|
|
3951
3952
|
* @throws {RequiredError}
|
|
3952
3953
|
*/
|
|
3953
|
-
listReviews: (project: string, pageToken?: number, pageSize?: number, search?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3954
|
+
listReviews: (project: string, pageToken?: number, pageSize?: number, search?: string, sortBy?: Array<string>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3954
3955
|
/**
|
|
3955
3956
|
*
|
|
3956
3957
|
* @summary Moderate review
|
|
@@ -3983,10 +3984,11 @@ export declare const ReviewsApiFp: (configuration?: Configuration) => {
|
|
|
3983
3984
|
* @param {number} [pageToken] Page reference token
|
|
3984
3985
|
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
3985
3986
|
* @param {string} [search] Search term to filter results
|
|
3987
|
+
* @param {Array<string>} [sortBy] An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending.
|
|
3986
3988
|
* @param {*} [options] Override http request option.
|
|
3987
3989
|
* @throws {RequiredError}
|
|
3988
3990
|
*/
|
|
3989
|
-
listReviews(project: string, pageToken?: number, pageSize?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReviewsResponse>>;
|
|
3991
|
+
listReviews(project: string, pageToken?: number, pageSize?: number, search?: string, sortBy?: Array<string>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReviewsResponse>>;
|
|
3990
3992
|
/**
|
|
3991
3993
|
*
|
|
3992
3994
|
* @summary Moderate review
|
|
@@ -4077,6 +4079,12 @@ export interface ReviewsApiListReviewsRequest {
|
|
|
4077
4079
|
* @memberof ReviewsApiListReviews
|
|
4078
4080
|
*/
|
|
4079
4081
|
readonly search?: string;
|
|
4082
|
+
/**
|
|
4083
|
+
* An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending.
|
|
4084
|
+
* @type {Array<string>}
|
|
4085
|
+
* @memberof ReviewsApiListReviews
|
|
4086
|
+
*/
|
|
4087
|
+
readonly sortBy?: Array<string>;
|
|
4080
4088
|
}
|
|
4081
4089
|
/**
|
|
4082
4090
|
* Request parameters for moderateReview operation in ReviewsApi.
|
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.19.
|
|
7
|
+
* The version of the OpenAPI document: 0.19.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2291,10 +2291,11 @@ export const ReviewsApiAxiosParamCreator = function (configuration) {
|
|
|
2291
2291
|
* @param {number} [pageToken] Page reference token
|
|
2292
2292
|
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
2293
2293
|
* @param {string} [search] Search term to filter results
|
|
2294
|
+
* @param {Array<string>} [sortBy] An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending.
|
|
2294
2295
|
* @param {*} [options] Override http request option.
|
|
2295
2296
|
* @throws {RequiredError}
|
|
2296
2297
|
*/
|
|
2297
|
-
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 = {}) {
|
|
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 = {}) {
|
|
2298
2299
|
// verify required parameter 'project' is not null or undefined
|
|
2299
2300
|
assertParamExists('listReviews', 'project', project);
|
|
2300
2301
|
const localVarPath = `/v1/website/reviews`;
|
|
@@ -2324,6 +2325,9 @@ export const ReviewsApiAxiosParamCreator = function (configuration) {
|
|
|
2324
2325
|
if (search !== undefined) {
|
|
2325
2326
|
localVarQueryParameter['search'] = search;
|
|
2326
2327
|
}
|
|
2328
|
+
if (sortBy) {
|
|
2329
|
+
localVarQueryParameter['sortBy'] = sortBy;
|
|
2330
|
+
}
|
|
2327
2331
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2328
2332
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2329
2333
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -2408,13 +2412,14 @@ export const ReviewsApiFp = function (configuration) {
|
|
|
2408
2412
|
* @param {number} [pageToken] Page reference token
|
|
2409
2413
|
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
2410
2414
|
* @param {string} [search] Search term to filter results
|
|
2415
|
+
* @param {Array<string>} [sortBy] An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending.
|
|
2411
2416
|
* @param {*} [options] Override http request option.
|
|
2412
2417
|
* @throws {RequiredError}
|
|
2413
2418
|
*/
|
|
2414
|
-
listReviews(project, pageToken, pageSize, search, options) {
|
|
2419
|
+
listReviews(project, pageToken, pageSize, search, sortBy, options) {
|
|
2415
2420
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2416
2421
|
var _a, _b, _c;
|
|
2417
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listReviews(project, pageToken, pageSize, search, options);
|
|
2422
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listReviews(project, pageToken, pageSize, search, sortBy, options);
|
|
2418
2423
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2419
2424
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ReviewsApi.listReviews']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2420
2425
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2465,7 +2470,7 @@ export const ReviewsApiFactory = function (configuration, basePath, axios) {
|
|
|
2465
2470
|
* @throws {RequiredError}
|
|
2466
2471
|
*/
|
|
2467
2472
|
listReviews(requestParameters, options) {
|
|
2468
|
-
return localVarFp.listReviews(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
2473
|
+
return localVarFp.listReviews(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, options).then((request) => request(axios, basePath));
|
|
2469
2474
|
},
|
|
2470
2475
|
/**
|
|
2471
2476
|
*
|
|
@@ -2506,7 +2511,7 @@ export class ReviewsApi extends BaseAPI {
|
|
|
2506
2511
|
* @memberof ReviewsApi
|
|
2507
2512
|
*/
|
|
2508
2513
|
listReviews(requestParameters, options) {
|
|
2509
|
-
return ReviewsApiFp(this.configuration).listReviews(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
2514
|
+
return ReviewsApiFp(this.configuration).listReviews(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, options).then((request) => request(this.axios, this.basePath));
|
|
2510
2515
|
}
|
|
2511
2516
|
/**
|
|
2512
2517
|
*
|
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
package/index.ts
CHANGED