@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/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @teemill/website@0.
|
|
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.
|
|
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.
|
|
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).
|
|
@@ -567,6 +567,19 @@ export interface MetaImage {
|
|
|
567
567
|
*/
|
|
568
568
|
'alt'?: string;
|
|
569
569
|
}
|
|
570
|
+
/**
|
|
571
|
+
*
|
|
572
|
+
* @export
|
|
573
|
+
* @interface ModerateReviewRequest
|
|
574
|
+
*/
|
|
575
|
+
export interface ModerateReviewRequest {
|
|
576
|
+
/**
|
|
577
|
+
* Whether the review has been approved or not. If the review is not enabled, it will not be visible to the public.
|
|
578
|
+
* @type {boolean}
|
|
579
|
+
* @memberof ModerateReviewRequest
|
|
580
|
+
*/
|
|
581
|
+
'enabled'?: boolean;
|
|
582
|
+
}
|
|
570
583
|
/**
|
|
571
584
|
*
|
|
572
585
|
* @export
|
|
@@ -933,6 +946,168 @@ export interface ProductWarehouseProduct {
|
|
|
933
946
|
*/
|
|
934
947
|
'gfnProductRef'?: string;
|
|
935
948
|
}
|
|
949
|
+
/**
|
|
950
|
+
*
|
|
951
|
+
* @export
|
|
952
|
+
* @interface Review
|
|
953
|
+
*/
|
|
954
|
+
export interface Review {
|
|
955
|
+
/**
|
|
956
|
+
* Unique object identifier
|
|
957
|
+
* @type {string}
|
|
958
|
+
* @memberof Review
|
|
959
|
+
*/
|
|
960
|
+
'id': string;
|
|
961
|
+
/**
|
|
962
|
+
* Text content of the review
|
|
963
|
+
* @type {string}
|
|
964
|
+
* @memberof Review
|
|
965
|
+
*/
|
|
966
|
+
'text': string;
|
|
967
|
+
/**
|
|
968
|
+
*
|
|
969
|
+
* @type {ReviewAuthor}
|
|
970
|
+
* @memberof Review
|
|
971
|
+
*/
|
|
972
|
+
'author'?: ReviewAuthor;
|
|
973
|
+
/**
|
|
974
|
+
* Rating of the review
|
|
975
|
+
* @type {number}
|
|
976
|
+
* @memberof Review
|
|
977
|
+
*/
|
|
978
|
+
'rating'?: number;
|
|
979
|
+
/**
|
|
980
|
+
* Google\'s sentiment analysis score
|
|
981
|
+
* @type {number}
|
|
982
|
+
* @memberof Review
|
|
983
|
+
*/
|
|
984
|
+
'sentiment'?: number;
|
|
985
|
+
/**
|
|
986
|
+
* Whether the review has been approved or not. If the review is not enabled, it will not be visible to the public.
|
|
987
|
+
* @type {boolean}
|
|
988
|
+
* @memberof Review
|
|
989
|
+
*/
|
|
990
|
+
'enabled': boolean;
|
|
991
|
+
/**
|
|
992
|
+
*
|
|
993
|
+
* @type {string}
|
|
994
|
+
* @memberof Review
|
|
995
|
+
*/
|
|
996
|
+
'createdAt'?: string;
|
|
997
|
+
/**
|
|
998
|
+
*
|
|
999
|
+
* @type {Array<ReviewImagesInner>}
|
|
1000
|
+
* @memberof Review
|
|
1001
|
+
*/
|
|
1002
|
+
'images'?: Array<ReviewImagesInner>;
|
|
1003
|
+
/**
|
|
1004
|
+
*
|
|
1005
|
+
* @type {Array<ReviewReply>}
|
|
1006
|
+
* @memberof Review
|
|
1007
|
+
*/
|
|
1008
|
+
'replies'?: Array<ReviewReply>;
|
|
1009
|
+
}
|
|
1010
|
+
/**
|
|
1011
|
+
*
|
|
1012
|
+
* @export
|
|
1013
|
+
* @interface ReviewAuthor
|
|
1014
|
+
*/
|
|
1015
|
+
export interface ReviewAuthor {
|
|
1016
|
+
/**
|
|
1017
|
+
* Name of the review\'s author
|
|
1018
|
+
* @type {string}
|
|
1019
|
+
* @memberof ReviewAuthor
|
|
1020
|
+
*/
|
|
1021
|
+
'name'?: string;
|
|
1022
|
+
/**
|
|
1023
|
+
* Email of the review\'s author
|
|
1024
|
+
* @type {string}
|
|
1025
|
+
* @memberof ReviewAuthor
|
|
1026
|
+
*/
|
|
1027
|
+
'email'?: string;
|
|
1028
|
+
}
|
|
1029
|
+
/**
|
|
1030
|
+
*
|
|
1031
|
+
* @export
|
|
1032
|
+
* @interface ReviewImagesInner
|
|
1033
|
+
*/
|
|
1034
|
+
export interface ReviewImagesInner {
|
|
1035
|
+
/**
|
|
1036
|
+
* URL of the image
|
|
1037
|
+
* @type {string}
|
|
1038
|
+
* @memberof ReviewImagesInner
|
|
1039
|
+
*/
|
|
1040
|
+
'src'?: string;
|
|
1041
|
+
/**
|
|
1042
|
+
* Alternative text for the image
|
|
1043
|
+
* @type {string}
|
|
1044
|
+
* @memberof ReviewImagesInner
|
|
1045
|
+
*/
|
|
1046
|
+
'alt'?: string;
|
|
1047
|
+
}
|
|
1048
|
+
/**
|
|
1049
|
+
*
|
|
1050
|
+
* @export
|
|
1051
|
+
* @interface ReviewReply
|
|
1052
|
+
*/
|
|
1053
|
+
export interface ReviewReply {
|
|
1054
|
+
/**
|
|
1055
|
+
* Unique object identifier
|
|
1056
|
+
* @type {string}
|
|
1057
|
+
* @memberof ReviewReply
|
|
1058
|
+
*/
|
|
1059
|
+
'id': string;
|
|
1060
|
+
/**
|
|
1061
|
+
* Text content of the reply
|
|
1062
|
+
* @type {string}
|
|
1063
|
+
* @memberof ReviewReply
|
|
1064
|
+
*/
|
|
1065
|
+
'text': string;
|
|
1066
|
+
/**
|
|
1067
|
+
*
|
|
1068
|
+
* @type {ReviewReplyAuthor}
|
|
1069
|
+
* @memberof ReviewReply
|
|
1070
|
+
*/
|
|
1071
|
+
'author'?: ReviewReplyAuthor;
|
|
1072
|
+
/**
|
|
1073
|
+
*
|
|
1074
|
+
* @type {string}
|
|
1075
|
+
* @memberof ReviewReply
|
|
1076
|
+
*/
|
|
1077
|
+
'createdAt'?: string;
|
|
1078
|
+
}
|
|
1079
|
+
/**
|
|
1080
|
+
*
|
|
1081
|
+
* @export
|
|
1082
|
+
* @interface ReviewReplyAuthor
|
|
1083
|
+
*/
|
|
1084
|
+
export interface ReviewReplyAuthor {
|
|
1085
|
+
/**
|
|
1086
|
+
* Name of the reply\'s author
|
|
1087
|
+
* @type {string}
|
|
1088
|
+
* @memberof ReviewReplyAuthor
|
|
1089
|
+
*/
|
|
1090
|
+
'name'?: string;
|
|
1091
|
+
}
|
|
1092
|
+
/**
|
|
1093
|
+
*
|
|
1094
|
+
* @export
|
|
1095
|
+
* @interface ReviewsResponse
|
|
1096
|
+
*/
|
|
1097
|
+
export interface ReviewsResponse {
|
|
1098
|
+
/**
|
|
1099
|
+
*
|
|
1100
|
+
* @type {Array<Review>}
|
|
1101
|
+
* @memberof ReviewsResponse
|
|
1102
|
+
*/
|
|
1103
|
+
'reviews'?: Array<Review>;
|
|
1104
|
+
/**
|
|
1105
|
+
* The token referencing the next page number
|
|
1106
|
+
* @type {number}
|
|
1107
|
+
* @memberof ReviewsResponse
|
|
1108
|
+
*/
|
|
1109
|
+
'nextPageToken'?: number | null;
|
|
1110
|
+
}
|
|
936
1111
|
/**
|
|
937
1112
|
*
|
|
938
1113
|
* @export
|
|
@@ -5166,6 +5341,412 @@ export class PaymentApi extends BaseAPI {
|
|
|
5166
5341
|
|
|
5167
5342
|
|
|
5168
5343
|
|
|
5344
|
+
/**
|
|
5345
|
+
* ReviewsApi - axios parameter creator
|
|
5346
|
+
* @export
|
|
5347
|
+
*/
|
|
5348
|
+
export const ReviewsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
5349
|
+
return {
|
|
5350
|
+
/**
|
|
5351
|
+
*
|
|
5352
|
+
* @summary Get review
|
|
5353
|
+
* @param {string} project What project it is
|
|
5354
|
+
* @param {string} reviewId Review\'s unique identifier
|
|
5355
|
+
* @param {*} [options] Override http request option.
|
|
5356
|
+
* @throws {RequiredError}
|
|
5357
|
+
*/
|
|
5358
|
+
getReview: async (project: string, reviewId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5359
|
+
// verify required parameter 'project' is not null or undefined
|
|
5360
|
+
assertParamExists('getReview', 'project', project)
|
|
5361
|
+
// verify required parameter 'reviewId' is not null or undefined
|
|
5362
|
+
assertParamExists('getReview', 'reviewId', reviewId)
|
|
5363
|
+
const localVarPath = `/v1/website/reviews/{reviewId}`
|
|
5364
|
+
.replace(`{${"reviewId"}}`, encodeURIComponent(String(reviewId)));
|
|
5365
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5366
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5367
|
+
let baseOptions;
|
|
5368
|
+
if (configuration) {
|
|
5369
|
+
baseOptions = configuration.baseOptions;
|
|
5370
|
+
}
|
|
5371
|
+
|
|
5372
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
5373
|
+
const localVarHeaderParameter = {} as any;
|
|
5374
|
+
const localVarQueryParameter = {} as any;
|
|
5375
|
+
|
|
5376
|
+
// authentication session-oauth required
|
|
5377
|
+
// oauth required
|
|
5378
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
5379
|
+
|
|
5380
|
+
// authentication api-key required
|
|
5381
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
5382
|
+
|
|
5383
|
+
if (project !== undefined) {
|
|
5384
|
+
localVarQueryParameter['project'] = project;
|
|
5385
|
+
}
|
|
5386
|
+
|
|
5387
|
+
|
|
5388
|
+
|
|
5389
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5390
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5391
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5392
|
+
|
|
5393
|
+
return {
|
|
5394
|
+
url: toPathString(localVarUrlObj),
|
|
5395
|
+
options: localVarRequestOptions,
|
|
5396
|
+
};
|
|
5397
|
+
},
|
|
5398
|
+
/**
|
|
5399
|
+
*
|
|
5400
|
+
* @summary List Reviews
|
|
5401
|
+
* @param {string} project What project it is
|
|
5402
|
+
* @param {number} [pageToken] Page reference token
|
|
5403
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
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.
|
|
5406
|
+
* @param {*} [options] Override http request option.
|
|
5407
|
+
* @throws {RequiredError}
|
|
5408
|
+
*/
|
|
5409
|
+
listReviews: async (project: string, pageToken?: number, pageSize?: number, search?: string, sortBy?: Array<string>, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5410
|
+
// verify required parameter 'project' is not null or undefined
|
|
5411
|
+
assertParamExists('listReviews', 'project', project)
|
|
5412
|
+
const localVarPath = `/v1/website/reviews`;
|
|
5413
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5414
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5415
|
+
let baseOptions;
|
|
5416
|
+
if (configuration) {
|
|
5417
|
+
baseOptions = configuration.baseOptions;
|
|
5418
|
+
}
|
|
5419
|
+
|
|
5420
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
5421
|
+
const localVarHeaderParameter = {} as any;
|
|
5422
|
+
const localVarQueryParameter = {} as any;
|
|
5423
|
+
|
|
5424
|
+
// authentication session-oauth required
|
|
5425
|
+
// oauth required
|
|
5426
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
5427
|
+
|
|
5428
|
+
// authentication api-key required
|
|
5429
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
5430
|
+
|
|
5431
|
+
if (project !== undefined) {
|
|
5432
|
+
localVarQueryParameter['project'] = project;
|
|
5433
|
+
}
|
|
5434
|
+
|
|
5435
|
+
if (pageToken !== undefined) {
|
|
5436
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
5437
|
+
}
|
|
5438
|
+
|
|
5439
|
+
if (pageSize !== undefined) {
|
|
5440
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
5441
|
+
}
|
|
5442
|
+
|
|
5443
|
+
if (search !== undefined) {
|
|
5444
|
+
localVarQueryParameter['search'] = search;
|
|
5445
|
+
}
|
|
5446
|
+
|
|
5447
|
+
if (sortBy) {
|
|
5448
|
+
localVarQueryParameter['sortBy'] = sortBy;
|
|
5449
|
+
}
|
|
5450
|
+
|
|
5451
|
+
|
|
5452
|
+
|
|
5453
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5454
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5455
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5456
|
+
|
|
5457
|
+
return {
|
|
5458
|
+
url: toPathString(localVarUrlObj),
|
|
5459
|
+
options: localVarRequestOptions,
|
|
5460
|
+
};
|
|
5461
|
+
},
|
|
5462
|
+
/**
|
|
5463
|
+
*
|
|
5464
|
+
* @summary Moderate review
|
|
5465
|
+
* @param {string} project What project it is
|
|
5466
|
+
* @param {string} reviewId Review\'s unique identifier
|
|
5467
|
+
* @param {ModerateReviewRequest} [moderateReviewRequest]
|
|
5468
|
+
* @param {*} [options] Override http request option.
|
|
5469
|
+
* @throws {RequiredError}
|
|
5470
|
+
*/
|
|
5471
|
+
moderateReview: async (project: string, reviewId: string, moderateReviewRequest?: ModerateReviewRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5472
|
+
// verify required parameter 'project' is not null or undefined
|
|
5473
|
+
assertParamExists('moderateReview', 'project', project)
|
|
5474
|
+
// verify required parameter 'reviewId' is not null or undefined
|
|
5475
|
+
assertParamExists('moderateReview', 'reviewId', reviewId)
|
|
5476
|
+
const localVarPath = `/v1/website/reviews/{reviewId}/moderate`
|
|
5477
|
+
.replace(`{${"reviewId"}}`, encodeURIComponent(String(reviewId)));
|
|
5478
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5479
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5480
|
+
let baseOptions;
|
|
5481
|
+
if (configuration) {
|
|
5482
|
+
baseOptions = configuration.baseOptions;
|
|
5483
|
+
}
|
|
5484
|
+
|
|
5485
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
5486
|
+
const localVarHeaderParameter = {} as any;
|
|
5487
|
+
const localVarQueryParameter = {} as any;
|
|
5488
|
+
|
|
5489
|
+
// authentication session-oauth required
|
|
5490
|
+
// oauth required
|
|
5491
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
5492
|
+
|
|
5493
|
+
// authentication api-key required
|
|
5494
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
5495
|
+
|
|
5496
|
+
if (project !== undefined) {
|
|
5497
|
+
localVarQueryParameter['project'] = project;
|
|
5498
|
+
}
|
|
5499
|
+
|
|
5500
|
+
|
|
5501
|
+
|
|
5502
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5503
|
+
|
|
5504
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5505
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5506
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5507
|
+
localVarRequestOptions.data = serializeDataIfNeeded(moderateReviewRequest, localVarRequestOptions, configuration)
|
|
5508
|
+
|
|
5509
|
+
return {
|
|
5510
|
+
url: toPathString(localVarUrlObj),
|
|
5511
|
+
options: localVarRequestOptions,
|
|
5512
|
+
};
|
|
5513
|
+
},
|
|
5514
|
+
}
|
|
5515
|
+
};
|
|
5516
|
+
|
|
5517
|
+
/**
|
|
5518
|
+
* ReviewsApi - functional programming interface
|
|
5519
|
+
* @export
|
|
5520
|
+
*/
|
|
5521
|
+
export const ReviewsApiFp = function(configuration?: Configuration) {
|
|
5522
|
+
const localVarAxiosParamCreator = ReviewsApiAxiosParamCreator(configuration)
|
|
5523
|
+
return {
|
|
5524
|
+
/**
|
|
5525
|
+
*
|
|
5526
|
+
* @summary Get review
|
|
5527
|
+
* @param {string} project What project it is
|
|
5528
|
+
* @param {string} reviewId Review\'s unique identifier
|
|
5529
|
+
* @param {*} [options] Override http request option.
|
|
5530
|
+
* @throws {RequiredError}
|
|
5531
|
+
*/
|
|
5532
|
+
async getReview(project: string, reviewId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Review>> {
|
|
5533
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getReview(project, reviewId, options);
|
|
5534
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5535
|
+
const localVarOperationServerBasePath = operationServerMap['ReviewsApi.getReview']?.[localVarOperationServerIndex]?.url;
|
|
5536
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5537
|
+
},
|
|
5538
|
+
/**
|
|
5539
|
+
*
|
|
5540
|
+
* @summary List Reviews
|
|
5541
|
+
* @param {string} project What project it is
|
|
5542
|
+
* @param {number} [pageToken] Page reference token
|
|
5543
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
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.
|
|
5546
|
+
* @param {*} [options] Override http request option.
|
|
5547
|
+
* @throws {RequiredError}
|
|
5548
|
+
*/
|
|
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);
|
|
5551
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5552
|
+
const localVarOperationServerBasePath = operationServerMap['ReviewsApi.listReviews']?.[localVarOperationServerIndex]?.url;
|
|
5553
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5554
|
+
},
|
|
5555
|
+
/**
|
|
5556
|
+
*
|
|
5557
|
+
* @summary Moderate review
|
|
5558
|
+
* @param {string} project What project it is
|
|
5559
|
+
* @param {string} reviewId Review\'s unique identifier
|
|
5560
|
+
* @param {ModerateReviewRequest} [moderateReviewRequest]
|
|
5561
|
+
* @param {*} [options] Override http request option.
|
|
5562
|
+
* @throws {RequiredError}
|
|
5563
|
+
*/
|
|
5564
|
+
async moderateReview(project: string, reviewId: string, moderateReviewRequest?: ModerateReviewRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Review>> {
|
|
5565
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.moderateReview(project, reviewId, moderateReviewRequest, options);
|
|
5566
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5567
|
+
const localVarOperationServerBasePath = operationServerMap['ReviewsApi.moderateReview']?.[localVarOperationServerIndex]?.url;
|
|
5568
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5569
|
+
},
|
|
5570
|
+
}
|
|
5571
|
+
};
|
|
5572
|
+
|
|
5573
|
+
/**
|
|
5574
|
+
* ReviewsApi - factory interface
|
|
5575
|
+
* @export
|
|
5576
|
+
*/
|
|
5577
|
+
export const ReviewsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
5578
|
+
const localVarFp = ReviewsApiFp(configuration)
|
|
5579
|
+
return {
|
|
5580
|
+
/**
|
|
5581
|
+
*
|
|
5582
|
+
* @summary Get review
|
|
5583
|
+
* @param {ReviewsApiGetReviewRequest} requestParameters Request parameters.
|
|
5584
|
+
* @param {*} [options] Override http request option.
|
|
5585
|
+
* @throws {RequiredError}
|
|
5586
|
+
*/
|
|
5587
|
+
getReview(requestParameters: ReviewsApiGetReviewRequest, options?: RawAxiosRequestConfig): AxiosPromise<Review> {
|
|
5588
|
+
return localVarFp.getReview(requestParameters.project, requestParameters.reviewId, options).then((request) => request(axios, basePath));
|
|
5589
|
+
},
|
|
5590
|
+
/**
|
|
5591
|
+
*
|
|
5592
|
+
* @summary List Reviews
|
|
5593
|
+
* @param {ReviewsApiListReviewsRequest} requestParameters Request parameters.
|
|
5594
|
+
* @param {*} [options] Override http request option.
|
|
5595
|
+
* @throws {RequiredError}
|
|
5596
|
+
*/
|
|
5597
|
+
listReviews(requestParameters: ReviewsApiListReviewsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReviewsResponse> {
|
|
5598
|
+
return localVarFp.listReviews(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, options).then((request) => request(axios, basePath));
|
|
5599
|
+
},
|
|
5600
|
+
/**
|
|
5601
|
+
*
|
|
5602
|
+
* @summary Moderate review
|
|
5603
|
+
* @param {ReviewsApiModerateReviewRequest} requestParameters Request parameters.
|
|
5604
|
+
* @param {*} [options] Override http request option.
|
|
5605
|
+
* @throws {RequiredError}
|
|
5606
|
+
*/
|
|
5607
|
+
moderateReview(requestParameters: ReviewsApiModerateReviewRequest, options?: RawAxiosRequestConfig): AxiosPromise<Review> {
|
|
5608
|
+
return localVarFp.moderateReview(requestParameters.project, requestParameters.reviewId, requestParameters.moderateReviewRequest, options).then((request) => request(axios, basePath));
|
|
5609
|
+
},
|
|
5610
|
+
};
|
|
5611
|
+
};
|
|
5612
|
+
|
|
5613
|
+
/**
|
|
5614
|
+
* Request parameters for getReview operation in ReviewsApi.
|
|
5615
|
+
* @export
|
|
5616
|
+
* @interface ReviewsApiGetReviewRequest
|
|
5617
|
+
*/
|
|
5618
|
+
export interface ReviewsApiGetReviewRequest {
|
|
5619
|
+
/**
|
|
5620
|
+
* What project it is
|
|
5621
|
+
* @type {string}
|
|
5622
|
+
* @memberof ReviewsApiGetReview
|
|
5623
|
+
*/
|
|
5624
|
+
readonly project: string
|
|
5625
|
+
|
|
5626
|
+
/**
|
|
5627
|
+
* Review\'s unique identifier
|
|
5628
|
+
* @type {string}
|
|
5629
|
+
* @memberof ReviewsApiGetReview
|
|
5630
|
+
*/
|
|
5631
|
+
readonly reviewId: string
|
|
5632
|
+
}
|
|
5633
|
+
|
|
5634
|
+
/**
|
|
5635
|
+
* Request parameters for listReviews operation in ReviewsApi.
|
|
5636
|
+
* @export
|
|
5637
|
+
* @interface ReviewsApiListReviewsRequest
|
|
5638
|
+
*/
|
|
5639
|
+
export interface ReviewsApiListReviewsRequest {
|
|
5640
|
+
/**
|
|
5641
|
+
* What project it is
|
|
5642
|
+
* @type {string}
|
|
5643
|
+
* @memberof ReviewsApiListReviews
|
|
5644
|
+
*/
|
|
5645
|
+
readonly project: string
|
|
5646
|
+
|
|
5647
|
+
/**
|
|
5648
|
+
* Page reference token
|
|
5649
|
+
* @type {number}
|
|
5650
|
+
* @memberof ReviewsApiListReviews
|
|
5651
|
+
*/
|
|
5652
|
+
readonly pageToken?: number
|
|
5653
|
+
|
|
5654
|
+
/**
|
|
5655
|
+
* Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
5656
|
+
* @type {number}
|
|
5657
|
+
* @memberof ReviewsApiListReviews
|
|
5658
|
+
*/
|
|
5659
|
+
readonly pageSize?: number
|
|
5660
|
+
|
|
5661
|
+
/**
|
|
5662
|
+
* Search term to filter results
|
|
5663
|
+
* @type {string}
|
|
5664
|
+
* @memberof ReviewsApiListReviews
|
|
5665
|
+
*/
|
|
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>
|
|
5674
|
+
}
|
|
5675
|
+
|
|
5676
|
+
/**
|
|
5677
|
+
* Request parameters for moderateReview operation in ReviewsApi.
|
|
5678
|
+
* @export
|
|
5679
|
+
* @interface ReviewsApiModerateReviewRequest
|
|
5680
|
+
*/
|
|
5681
|
+
export interface ReviewsApiModerateReviewRequest {
|
|
5682
|
+
/**
|
|
5683
|
+
* What project it is
|
|
5684
|
+
* @type {string}
|
|
5685
|
+
* @memberof ReviewsApiModerateReview
|
|
5686
|
+
*/
|
|
5687
|
+
readonly project: string
|
|
5688
|
+
|
|
5689
|
+
/**
|
|
5690
|
+
* Review\'s unique identifier
|
|
5691
|
+
* @type {string}
|
|
5692
|
+
* @memberof ReviewsApiModerateReview
|
|
5693
|
+
*/
|
|
5694
|
+
readonly reviewId: string
|
|
5695
|
+
|
|
5696
|
+
/**
|
|
5697
|
+
*
|
|
5698
|
+
* @type {ModerateReviewRequest}
|
|
5699
|
+
* @memberof ReviewsApiModerateReview
|
|
5700
|
+
*/
|
|
5701
|
+
readonly moderateReviewRequest?: ModerateReviewRequest
|
|
5702
|
+
}
|
|
5703
|
+
|
|
5704
|
+
/**
|
|
5705
|
+
* ReviewsApi - object-oriented interface
|
|
5706
|
+
* @export
|
|
5707
|
+
* @class ReviewsApi
|
|
5708
|
+
* @extends {BaseAPI}
|
|
5709
|
+
*/
|
|
5710
|
+
export class ReviewsApi extends BaseAPI {
|
|
5711
|
+
/**
|
|
5712
|
+
*
|
|
5713
|
+
* @summary Get review
|
|
5714
|
+
* @param {ReviewsApiGetReviewRequest} requestParameters Request parameters.
|
|
5715
|
+
* @param {*} [options] Override http request option.
|
|
5716
|
+
* @throws {RequiredError}
|
|
5717
|
+
* @memberof ReviewsApi
|
|
5718
|
+
*/
|
|
5719
|
+
public getReview(requestParameters: ReviewsApiGetReviewRequest, options?: RawAxiosRequestConfig) {
|
|
5720
|
+
return ReviewsApiFp(this.configuration).getReview(requestParameters.project, requestParameters.reviewId, options).then((request) => request(this.axios, this.basePath));
|
|
5721
|
+
}
|
|
5722
|
+
|
|
5723
|
+
/**
|
|
5724
|
+
*
|
|
5725
|
+
* @summary List Reviews
|
|
5726
|
+
* @param {ReviewsApiListReviewsRequest} requestParameters Request parameters.
|
|
5727
|
+
* @param {*} [options] Override http request option.
|
|
5728
|
+
* @throws {RequiredError}
|
|
5729
|
+
* @memberof ReviewsApi
|
|
5730
|
+
*/
|
|
5731
|
+
public listReviews(requestParameters: ReviewsApiListReviewsRequest, options?: RawAxiosRequestConfig) {
|
|
5732
|
+
return ReviewsApiFp(this.configuration).listReviews(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, options).then((request) => request(this.axios, this.basePath));
|
|
5733
|
+
}
|
|
5734
|
+
|
|
5735
|
+
/**
|
|
5736
|
+
*
|
|
5737
|
+
* @summary Moderate review
|
|
5738
|
+
* @param {ReviewsApiModerateReviewRequest} requestParameters Request parameters.
|
|
5739
|
+
* @param {*} [options] Override http request option.
|
|
5740
|
+
* @throws {RequiredError}
|
|
5741
|
+
* @memberof ReviewsApi
|
|
5742
|
+
*/
|
|
5743
|
+
public moderateReview(requestParameters: ReviewsApiModerateReviewRequest, options?: RawAxiosRequestConfig) {
|
|
5744
|
+
return ReviewsApiFp(this.configuration).moderateReview(requestParameters.project, requestParameters.reviewId, requestParameters.moderateReviewRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5745
|
+
}
|
|
5746
|
+
}
|
|
5747
|
+
|
|
5748
|
+
|
|
5749
|
+
|
|
5169
5750
|
/**
|
|
5170
5751
|
* RoutesApi - axios parameter creator
|
|
5171
5752
|
* @export
|
package/base.ts
CHANGED
package/common.ts
CHANGED
package/configuration.ts
CHANGED