@teemill/platform 0.30.5 → 0.31.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 +10 -2
- package/api.ts +372 -2
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +276 -2
- package/dist/api.js +124 -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 +276 -2
- package/dist/esm/api.js +123 -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/docs/AmendmentLog.md +30 -0
- package/docs/BulkCreateReviewPayload.md +20 -0
- package/docs/BulkCreatedReviews.md +20 -0
- package/docs/CreateReview201Response.md +42 -0
- package/docs/CreateReviewPayload.md +34 -0
- package/docs/CreateReviewPayloadAuthor.md +22 -0
- package/docs/CreateReviewRequest.md +36 -0
- package/docs/OrderItem.md +2 -0
- package/docs/ReviewsApi.md +81 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @teemill/platform@0.
|
|
1
|
+
## @teemill/platform@0.31.0
|
|
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/platform@0.
|
|
39
|
+
npm install @teemill/platform@0.31.0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -83,6 +83,7 @@ Class | Method | HTTP request | Description
|
|
|
83
83
|
*PlatformApi* | [**listClientDomains**](docs/PlatformApi.md#listclientdomains) | **GET** /v1/platform/client/domains | List platform client domains
|
|
84
84
|
*PlatformApi* | [**listDomains**](docs/PlatformApi.md#listdomains) | **GET** /v1/platform/domains | List platform domains
|
|
85
85
|
*PlatformApi* | [**updatePlatform**](docs/PlatformApi.md#updateplatform) | **PATCH** /v1/platform | Update platform
|
|
86
|
+
*ReviewsApi* | [**createReview**](docs/ReviewsApi.md#createreview) | **POST** /v1/platform/{platformId}/reviews | Create a review
|
|
86
87
|
*ReviewsApi* | [**exportReviews**](docs/ReviewsApi.md#exportreviews) | **GET** /v1/platform/{platformId}/reviews/export | Export reviews
|
|
87
88
|
*ReviewsApi* | [**getReview**](docs/ReviewsApi.md#getreview) | **GET** /v1/platform/{platformId}/reviews/{reviewId} | Get review
|
|
88
89
|
*ReviewsApi* | [**listReviews**](docs/ReviewsApi.md#listreviews) | **GET** /v1/platform/{platformId}/reviews | List reviews
|
|
@@ -96,7 +97,10 @@ Class | Method | HTTP request | Description
|
|
|
96
97
|
- [Address](docs/Address.md)
|
|
97
98
|
- [AmendOrderRequest](docs/AmendOrderRequest.md)
|
|
98
99
|
- [AmendOrderRequestAmendmentsInner](docs/AmendOrderRequestAmendmentsInner.md)
|
|
100
|
+
- [AmendmentLog](docs/AmendmentLog.md)
|
|
99
101
|
- [ApiError](docs/ApiError.md)
|
|
102
|
+
- [BulkCreateReviewPayload](docs/BulkCreateReviewPayload.md)
|
|
103
|
+
- [BulkCreatedReviews](docs/BulkCreatedReviews.md)
|
|
100
104
|
- [Client](docs/Client.md)
|
|
101
105
|
- [ConfirmOrderFulfillment](docs/ConfirmOrderFulfillment.md)
|
|
102
106
|
- [ConfirmOrderFulfillmentShipment](docs/ConfirmOrderFulfillmentShipment.md)
|
|
@@ -107,6 +111,10 @@ Class | Method | HTTP request | Description
|
|
|
107
111
|
- [CreateDomainRequest](docs/CreateDomainRequest.md)
|
|
108
112
|
- [CreateOrder](docs/CreateOrder.md)
|
|
109
113
|
- [CreateOrderContactInformation](docs/CreateOrderContactInformation.md)
|
|
114
|
+
- [CreateReview201Response](docs/CreateReview201Response.md)
|
|
115
|
+
- [CreateReviewPayload](docs/CreateReviewPayload.md)
|
|
116
|
+
- [CreateReviewPayloadAuthor](docs/CreateReviewPayloadAuthor.md)
|
|
117
|
+
- [CreateReviewRequest](docs/CreateReviewRequest.md)
|
|
110
118
|
- [Customer](docs/Customer.md)
|
|
111
119
|
- [CustomersResponse](docs/CustomersResponse.md)
|
|
112
120
|
- [CustomsInformation](docs/CustomsInformation.md)
|
package/api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Platform API
|
|
5
5
|
* Manage Your podOS platform
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.
|
|
7
|
+
* The version of the OpenAPI document: 0.31.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -130,6 +130,57 @@ export const AmendOrderRequestAmendmentsInnerActionEnum = {
|
|
|
130
130
|
|
|
131
131
|
export type AmendOrderRequestAmendmentsInnerActionEnum = typeof AmendOrderRequestAmendmentsInnerActionEnum[keyof typeof AmendOrderRequestAmendmentsInnerActionEnum];
|
|
132
132
|
|
|
133
|
+
/**
|
|
134
|
+
*
|
|
135
|
+
* @export
|
|
136
|
+
* @interface AmendmentLog
|
|
137
|
+
*/
|
|
138
|
+
export interface AmendmentLog {
|
|
139
|
+
/**
|
|
140
|
+
* Unique object identifier
|
|
141
|
+
* @type {string}
|
|
142
|
+
* @memberof AmendmentLog
|
|
143
|
+
*/
|
|
144
|
+
'id': string;
|
|
145
|
+
/**
|
|
146
|
+
* A reference to the order item that was amended.
|
|
147
|
+
* @type {string}
|
|
148
|
+
* @memberof AmendmentLog
|
|
149
|
+
*/
|
|
150
|
+
'orderItemId': string;
|
|
151
|
+
/**
|
|
152
|
+
* A reference to the top level order item that was amended, useful for finding the original item within a chain of exchanges, for example.
|
|
153
|
+
* @type {string}
|
|
154
|
+
* @memberof AmendmentLog
|
|
155
|
+
*/
|
|
156
|
+
'originalOrderItemId': string;
|
|
157
|
+
/**
|
|
158
|
+
*
|
|
159
|
+
* @type {string}
|
|
160
|
+
* @memberof AmendmentLog
|
|
161
|
+
*/
|
|
162
|
+
'amendmentType': AmendmentLogAmendmentTypeEnum;
|
|
163
|
+
/**
|
|
164
|
+
*
|
|
165
|
+
* @type {number}
|
|
166
|
+
* @memberof AmendmentLog
|
|
167
|
+
*/
|
|
168
|
+
'quantity': number;
|
|
169
|
+
/**
|
|
170
|
+
* ISO 8601 Timestamp
|
|
171
|
+
* @type {string}
|
|
172
|
+
* @memberof AmendmentLog
|
|
173
|
+
*/
|
|
174
|
+
'createdAt': string;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export const AmendmentLogAmendmentTypeEnum = {
|
|
178
|
+
Refund: 'refund',
|
|
179
|
+
Exchange: 'exchange'
|
|
180
|
+
} as const;
|
|
181
|
+
|
|
182
|
+
export type AmendmentLogAmendmentTypeEnum = typeof AmendmentLogAmendmentTypeEnum[keyof typeof AmendmentLogAmendmentTypeEnum];
|
|
183
|
+
|
|
133
184
|
/**
|
|
134
185
|
*
|
|
135
186
|
* @export
|
|
@@ -149,6 +200,32 @@ export interface ApiError {
|
|
|
149
200
|
*/
|
|
150
201
|
'message': string;
|
|
151
202
|
}
|
|
203
|
+
/**
|
|
204
|
+
*
|
|
205
|
+
* @export
|
|
206
|
+
* @interface BulkCreateReviewPayload
|
|
207
|
+
*/
|
|
208
|
+
export interface BulkCreateReviewPayload {
|
|
209
|
+
/**
|
|
210
|
+
*
|
|
211
|
+
* @type {Array<CreateReviewPayload>}
|
|
212
|
+
* @memberof BulkCreateReviewPayload
|
|
213
|
+
*/
|
|
214
|
+
'reviews': Array<CreateReviewPayload>;
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
*
|
|
218
|
+
* @export
|
|
219
|
+
* @interface BulkCreatedReviews
|
|
220
|
+
*/
|
|
221
|
+
export interface BulkCreatedReviews {
|
|
222
|
+
/**
|
|
223
|
+
*
|
|
224
|
+
* @type {Array<Review>}
|
|
225
|
+
* @memberof BulkCreatedReviews
|
|
226
|
+
*/
|
|
227
|
+
'reviews': Array<Review>;
|
|
228
|
+
}
|
|
152
229
|
/**
|
|
153
230
|
*
|
|
154
231
|
* @export
|
|
@@ -357,6 +434,92 @@ export interface CreateOrderContactInformation {
|
|
|
357
434
|
*/
|
|
358
435
|
'phone'?: string | null;
|
|
359
436
|
}
|
|
437
|
+
/**
|
|
438
|
+
* @type CreateReview201Response
|
|
439
|
+
* @export
|
|
440
|
+
*/
|
|
441
|
+
export type CreateReview201Response = BulkCreatedReviews | Review;
|
|
442
|
+
|
|
443
|
+
/**
|
|
444
|
+
*
|
|
445
|
+
* @export
|
|
446
|
+
* @interface CreateReviewPayload
|
|
447
|
+
*/
|
|
448
|
+
export interface CreateReviewPayload {
|
|
449
|
+
/**
|
|
450
|
+
*
|
|
451
|
+
* @type {CreateReviewPayloadAuthor}
|
|
452
|
+
* @memberof CreateReviewPayload
|
|
453
|
+
*/
|
|
454
|
+
'author': CreateReviewPayloadAuthor;
|
|
455
|
+
/**
|
|
456
|
+
* The title of the review
|
|
457
|
+
* @type {string}
|
|
458
|
+
* @memberof CreateReviewPayload
|
|
459
|
+
*/
|
|
460
|
+
'title'?: string;
|
|
461
|
+
/**
|
|
462
|
+
* The text of the review
|
|
463
|
+
* @type {string}
|
|
464
|
+
* @memberof CreateReviewPayload
|
|
465
|
+
*/
|
|
466
|
+
'text': string;
|
|
467
|
+
/**
|
|
468
|
+
* A reference to the product being ordered
|
|
469
|
+
* @type {string}
|
|
470
|
+
* @memberof CreateReviewPayload
|
|
471
|
+
*/
|
|
472
|
+
'productRef': string;
|
|
473
|
+
/**
|
|
474
|
+
* The rating of the review
|
|
475
|
+
* @type {number}
|
|
476
|
+
* @memberof CreateReviewPayload
|
|
477
|
+
*/
|
|
478
|
+
'rating': number;
|
|
479
|
+
/**
|
|
480
|
+
*
|
|
481
|
+
* @type {Array<Image>}
|
|
482
|
+
* @memberof CreateReviewPayload
|
|
483
|
+
*/
|
|
484
|
+
'images'?: Array<Image>;
|
|
485
|
+
/**
|
|
486
|
+
* Whether the review has been approved or not. If the review is not enabled, it will not be visible to the public.
|
|
487
|
+
* @type {boolean}
|
|
488
|
+
* @memberof CreateReviewPayload
|
|
489
|
+
*/
|
|
490
|
+
'enabled': boolean;
|
|
491
|
+
/**
|
|
492
|
+
* A reference to the project being ordered
|
|
493
|
+
* @type {string}
|
|
494
|
+
* @memberof CreateReviewPayload
|
|
495
|
+
*/
|
|
496
|
+
'projectRef': string;
|
|
497
|
+
}
|
|
498
|
+
/**
|
|
499
|
+
*
|
|
500
|
+
* @export
|
|
501
|
+
* @interface CreateReviewPayloadAuthor
|
|
502
|
+
*/
|
|
503
|
+
export interface CreateReviewPayloadAuthor {
|
|
504
|
+
/**
|
|
505
|
+
* The name of the author
|
|
506
|
+
* @type {string}
|
|
507
|
+
* @memberof CreateReviewPayloadAuthor
|
|
508
|
+
*/
|
|
509
|
+
'name'?: string;
|
|
510
|
+
/**
|
|
511
|
+
* The email of the author
|
|
512
|
+
* @type {string}
|
|
513
|
+
* @memberof CreateReviewPayloadAuthor
|
|
514
|
+
*/
|
|
515
|
+
'email'?: string;
|
|
516
|
+
}
|
|
517
|
+
/**
|
|
518
|
+
* @type CreateReviewRequest
|
|
519
|
+
* @export
|
|
520
|
+
*/
|
|
521
|
+
export type CreateReviewRequest = BulkCreateReviewPayload | CreateReviewPayload;
|
|
522
|
+
|
|
360
523
|
/**
|
|
361
524
|
* The customer that has placed an order on your platform
|
|
362
525
|
* @export
|
|
@@ -1193,6 +1356,12 @@ export interface OrderItem {
|
|
|
1193
1356
|
* @memberof OrderItem
|
|
1194
1357
|
*/
|
|
1195
1358
|
'recipientCost'?: Price;
|
|
1359
|
+
/**
|
|
1360
|
+
*
|
|
1361
|
+
* @type {Array<AmendmentLog>}
|
|
1362
|
+
* @memberof OrderItem
|
|
1363
|
+
*/
|
|
1364
|
+
'amendmentLogs'?: Array<AmendmentLog>;
|
|
1196
1365
|
}
|
|
1197
1366
|
/**
|
|
1198
1367
|
*
|
|
@@ -1612,7 +1781,7 @@ export interface Review {
|
|
|
1612
1781
|
* @type {Array<ReviewReply>}
|
|
1613
1782
|
* @memberof Review
|
|
1614
1783
|
*/
|
|
1615
|
-
'replies'?: Array<ReviewReply
|
|
1784
|
+
'replies'?: Array<ReviewReply> | null;
|
|
1616
1785
|
}
|
|
1617
1786
|
/**
|
|
1618
1787
|
*
|
|
@@ -6488,6 +6657,94 @@ export class PlatformApi extends BaseAPI {
|
|
|
6488
6657
|
*/
|
|
6489
6658
|
export const ReviewsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
6490
6659
|
return {
|
|
6660
|
+
/**
|
|
6661
|
+
*
|
|
6662
|
+
* @summary Create a review
|
|
6663
|
+
* @param {string} project Project unique identifier
|
|
6664
|
+
* @param {string} platformId The platform identifier
|
|
6665
|
+
* @param {CreateReviewRequest} createReviewRequest
|
|
6666
|
+
* @param {number} [pageToken] Page reference token
|
|
6667
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
6668
|
+
* @param {string} [search] Search term to filter results
|
|
6669
|
+
* @param {Array<string>} [sortBy] An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending.
|
|
6670
|
+
* @param {string} [start] Start of date range to filter by
|
|
6671
|
+
* @param {string} [end] End of date range to filter by
|
|
6672
|
+
* @param {*} [options] Override http request option.
|
|
6673
|
+
* @throws {RequiredError}
|
|
6674
|
+
*/
|
|
6675
|
+
createReview: async (project: string, platformId: string, createReviewRequest: CreateReviewRequest, pageToken?: number, pageSize?: number, search?: string, sortBy?: Array<string>, start?: string, end?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6676
|
+
// verify required parameter 'project' is not null or undefined
|
|
6677
|
+
assertParamExists('createReview', 'project', project)
|
|
6678
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
6679
|
+
assertParamExists('createReview', 'platformId', platformId)
|
|
6680
|
+
// verify required parameter 'createReviewRequest' is not null or undefined
|
|
6681
|
+
assertParamExists('createReview', 'createReviewRequest', createReviewRequest)
|
|
6682
|
+
const localVarPath = `/v1/platform/{platformId}/reviews`
|
|
6683
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
|
|
6684
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6685
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6686
|
+
let baseOptions;
|
|
6687
|
+
if (configuration) {
|
|
6688
|
+
baseOptions = configuration.baseOptions;
|
|
6689
|
+
}
|
|
6690
|
+
|
|
6691
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
6692
|
+
const localVarHeaderParameter = {} as any;
|
|
6693
|
+
const localVarQueryParameter = {} as any;
|
|
6694
|
+
|
|
6695
|
+
// authentication session-oauth required
|
|
6696
|
+
// oauth required
|
|
6697
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
6698
|
+
|
|
6699
|
+
// authentication api-key required
|
|
6700
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
6701
|
+
|
|
6702
|
+
if (project !== undefined) {
|
|
6703
|
+
localVarQueryParameter['project'] = project;
|
|
6704
|
+
}
|
|
6705
|
+
|
|
6706
|
+
if (pageToken !== undefined) {
|
|
6707
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
6708
|
+
}
|
|
6709
|
+
|
|
6710
|
+
if (pageSize !== undefined) {
|
|
6711
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
6712
|
+
}
|
|
6713
|
+
|
|
6714
|
+
if (search !== undefined) {
|
|
6715
|
+
localVarQueryParameter['search'] = search;
|
|
6716
|
+
}
|
|
6717
|
+
|
|
6718
|
+
if (sortBy) {
|
|
6719
|
+
localVarQueryParameter['sortBy'] = sortBy;
|
|
6720
|
+
}
|
|
6721
|
+
|
|
6722
|
+
if (start !== undefined) {
|
|
6723
|
+
localVarQueryParameter['start'] = (start as any instanceof Date) ?
|
|
6724
|
+
(start as any).toISOString() :
|
|
6725
|
+
start;
|
|
6726
|
+
}
|
|
6727
|
+
|
|
6728
|
+
if (end !== undefined) {
|
|
6729
|
+
localVarQueryParameter['end'] = (end as any instanceof Date) ?
|
|
6730
|
+
(end as any).toISOString() :
|
|
6731
|
+
end;
|
|
6732
|
+
}
|
|
6733
|
+
|
|
6734
|
+
|
|
6735
|
+
|
|
6736
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6737
|
+
|
|
6738
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6739
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6740
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
6741
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createReviewRequest, localVarRequestOptions, configuration)
|
|
6742
|
+
|
|
6743
|
+
return {
|
|
6744
|
+
url: toPathString(localVarUrlObj),
|
|
6745
|
+
options: localVarRequestOptions,
|
|
6746
|
+
};
|
|
6747
|
+
},
|
|
6491
6748
|
/**
|
|
6492
6749
|
* Export reviews as a CSV file.
|
|
6493
6750
|
* @summary Export reviews
|
|
@@ -6752,6 +7009,27 @@ export const ReviewsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
6752
7009
|
export const ReviewsApiFp = function(configuration?: Configuration) {
|
|
6753
7010
|
const localVarAxiosParamCreator = ReviewsApiAxiosParamCreator(configuration)
|
|
6754
7011
|
return {
|
|
7012
|
+
/**
|
|
7013
|
+
*
|
|
7014
|
+
* @summary Create a review
|
|
7015
|
+
* @param {string} project Project unique identifier
|
|
7016
|
+
* @param {string} platformId The platform identifier
|
|
7017
|
+
* @param {CreateReviewRequest} createReviewRequest
|
|
7018
|
+
* @param {number} [pageToken] Page reference token
|
|
7019
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
7020
|
+
* @param {string} [search] Search term to filter results
|
|
7021
|
+
* @param {Array<string>} [sortBy] An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending.
|
|
7022
|
+
* @param {string} [start] Start of date range to filter by
|
|
7023
|
+
* @param {string} [end] End of date range to filter by
|
|
7024
|
+
* @param {*} [options] Override http request option.
|
|
7025
|
+
* @throws {RequiredError}
|
|
7026
|
+
*/
|
|
7027
|
+
async createReview(project: string, platformId: string, createReviewRequest: CreateReviewRequest, pageToken?: number, pageSize?: number, search?: string, sortBy?: Array<string>, start?: string, end?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateReview201Response>> {
|
|
7028
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createReview(project, platformId, createReviewRequest, pageToken, pageSize, search, sortBy, start, end, options);
|
|
7029
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7030
|
+
const localVarOperationServerBasePath = operationServerMap['ReviewsApi.createReview']?.[localVarOperationServerIndex]?.url;
|
|
7031
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7032
|
+
},
|
|
6755
7033
|
/**
|
|
6756
7034
|
* Export reviews as a CSV file.
|
|
6757
7035
|
* @summary Export reviews
|
|
@@ -6829,6 +7107,16 @@ export const ReviewsApiFp = function(configuration?: Configuration) {
|
|
|
6829
7107
|
export const ReviewsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
6830
7108
|
const localVarFp = ReviewsApiFp(configuration)
|
|
6831
7109
|
return {
|
|
7110
|
+
/**
|
|
7111
|
+
*
|
|
7112
|
+
* @summary Create a review
|
|
7113
|
+
* @param {ReviewsApiCreateReviewRequest} requestParameters Request parameters.
|
|
7114
|
+
* @param {*} [options] Override http request option.
|
|
7115
|
+
* @throws {RequiredError}
|
|
7116
|
+
*/
|
|
7117
|
+
createReview(requestParameters: ReviewsApiCreateReviewRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateReview201Response> {
|
|
7118
|
+
return localVarFp.createReview(requestParameters.project, requestParameters.platformId, requestParameters.createReviewRequest, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
|
|
7119
|
+
},
|
|
6832
7120
|
/**
|
|
6833
7121
|
* Export reviews as a CSV file.
|
|
6834
7122
|
* @summary Export reviews
|
|
@@ -6872,6 +7160,76 @@ export const ReviewsApiFactory = function (configuration?: Configuration, basePa
|
|
|
6872
7160
|
};
|
|
6873
7161
|
};
|
|
6874
7162
|
|
|
7163
|
+
/**
|
|
7164
|
+
* Request parameters for createReview operation in ReviewsApi.
|
|
7165
|
+
* @export
|
|
7166
|
+
* @interface ReviewsApiCreateReviewRequest
|
|
7167
|
+
*/
|
|
7168
|
+
export interface ReviewsApiCreateReviewRequest {
|
|
7169
|
+
/**
|
|
7170
|
+
* Project unique identifier
|
|
7171
|
+
* @type {string}
|
|
7172
|
+
* @memberof ReviewsApiCreateReview
|
|
7173
|
+
*/
|
|
7174
|
+
readonly project: string
|
|
7175
|
+
|
|
7176
|
+
/**
|
|
7177
|
+
* The platform identifier
|
|
7178
|
+
* @type {string}
|
|
7179
|
+
* @memberof ReviewsApiCreateReview
|
|
7180
|
+
*/
|
|
7181
|
+
readonly platformId: string
|
|
7182
|
+
|
|
7183
|
+
/**
|
|
7184
|
+
*
|
|
7185
|
+
* @type {CreateReviewRequest}
|
|
7186
|
+
* @memberof ReviewsApiCreateReview
|
|
7187
|
+
*/
|
|
7188
|
+
readonly createReviewRequest: CreateReviewRequest
|
|
7189
|
+
|
|
7190
|
+
/**
|
|
7191
|
+
* Page reference token
|
|
7192
|
+
* @type {number}
|
|
7193
|
+
* @memberof ReviewsApiCreateReview
|
|
7194
|
+
*/
|
|
7195
|
+
readonly pageToken?: number
|
|
7196
|
+
|
|
7197
|
+
/**
|
|
7198
|
+
* Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
7199
|
+
* @type {number}
|
|
7200
|
+
* @memberof ReviewsApiCreateReview
|
|
7201
|
+
*/
|
|
7202
|
+
readonly pageSize?: number
|
|
7203
|
+
|
|
7204
|
+
/**
|
|
7205
|
+
* Search term to filter results
|
|
7206
|
+
* @type {string}
|
|
7207
|
+
* @memberof ReviewsApiCreateReview
|
|
7208
|
+
*/
|
|
7209
|
+
readonly search?: string
|
|
7210
|
+
|
|
7211
|
+
/**
|
|
7212
|
+
* An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending.
|
|
7213
|
+
* @type {Array<string>}
|
|
7214
|
+
* @memberof ReviewsApiCreateReview
|
|
7215
|
+
*/
|
|
7216
|
+
readonly sortBy?: Array<string>
|
|
7217
|
+
|
|
7218
|
+
/**
|
|
7219
|
+
* Start of date range to filter by
|
|
7220
|
+
* @type {string}
|
|
7221
|
+
* @memberof ReviewsApiCreateReview
|
|
7222
|
+
*/
|
|
7223
|
+
readonly start?: string
|
|
7224
|
+
|
|
7225
|
+
/**
|
|
7226
|
+
* End of date range to filter by
|
|
7227
|
+
* @type {string}
|
|
7228
|
+
* @memberof ReviewsApiCreateReview
|
|
7229
|
+
*/
|
|
7230
|
+
readonly end?: string
|
|
7231
|
+
}
|
|
7232
|
+
|
|
6875
7233
|
/**
|
|
6876
7234
|
* Request parameters for exportReviews operation in ReviewsApi.
|
|
6877
7235
|
* @export
|
|
@@ -7040,6 +7398,18 @@ export interface ReviewsApiModerateReviewRequest {
|
|
|
7040
7398
|
* @extends {BaseAPI}
|
|
7041
7399
|
*/
|
|
7042
7400
|
export class ReviewsApi extends BaseAPI {
|
|
7401
|
+
/**
|
|
7402
|
+
*
|
|
7403
|
+
* @summary Create a review
|
|
7404
|
+
* @param {ReviewsApiCreateReviewRequest} requestParameters Request parameters.
|
|
7405
|
+
* @param {*} [options] Override http request option.
|
|
7406
|
+
* @throws {RequiredError}
|
|
7407
|
+
* @memberof ReviewsApi
|
|
7408
|
+
*/
|
|
7409
|
+
public createReview(requestParameters: ReviewsApiCreateReviewRequest, options?: RawAxiosRequestConfig) {
|
|
7410
|
+
return ReviewsApiFp(this.configuration).createReview(requestParameters.project, requestParameters.platformId, requestParameters.createReviewRequest, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.sortBy, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
|
|
7411
|
+
}
|
|
7412
|
+
|
|
7043
7413
|
/**
|
|
7044
7414
|
* Export reviews as a CSV file.
|
|
7045
7415
|
* @summary Export reviews
|
package/base.ts
CHANGED
package/common.ts
CHANGED
package/configuration.ts
CHANGED