@teemill/platform 0.15.0 → 0.17.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 +95 -2
- package/api.ts +879 -4
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +596 -4
- package/dist/api.js +429 -4
- 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 +596 -4
- package/dist/esm/api.js +424 -3
- 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/Address.md +35 -0
- package/docs/ApiError.md +22 -0
- package/docs/AuthorizeStripe200Response.md +20 -0
- package/docs/ContactInformation.md +23 -0
- package/docs/Customer.md +33 -0
- package/docs/CustomersApi.md +229 -0
- package/docs/CustomersResponse.md +22 -0
- package/docs/DeliveryEstimates.md +22 -0
- package/docs/ExportOrders202Response.md +20 -0
- package/docs/Fulfiller.md +23 -0
- package/docs/FulfillerLocation.md +22 -0
- package/docs/FulfillersResponse.md +22 -0
- package/docs/Fulfillment.md +34 -0
- package/docs/FulfillmentItem.md +24 -0
- package/docs/Image.md +27 -0
- package/docs/ModerateReviewRequest.md +20 -0
- package/docs/Option.md +22 -0
- package/docs/Order.md +56 -0
- package/docs/OrderItem.md +42 -0
- package/docs/OrderStatus.md +16 -0
- package/docs/OrderTracking.md +24 -0
- package/docs/OrdersApi.md +410 -0
- package/docs/OrdersResponse.md +22 -0
- package/docs/Origin.md +22 -0
- package/docs/PaymentAccount.md +24 -0
- package/docs/PaymentApi.md +178 -0
- package/docs/PaymentAttempt.md +29 -0
- package/docs/Platform.md +38 -0
- package/docs/PlatformApi.md +122 -0
- package/docs/PlatformLogo.md +22 -0
- package/docs/Price.md +23 -0
- package/docs/Project.md +22 -0
- package/docs/Review.md +40 -0
- package/docs/ReviewAuthor.md +22 -0
- package/docs/ReviewImagesInner.md +22 -0
- package/docs/ReviewProduct.md +23 -0
- package/docs/ReviewReply.md +26 -0
- package/docs/ReviewReplyAuthor.md +20 -0
- package/docs/ReviewsApi.md +278 -0
- package/docs/ReviewsResponse.md +22 -0
- package/docs/ShippingMethod.md +34 -0
- package/docs/Statistics.md +24 -0
- package/docs/StatusHistoryItem.md +22 -0
- package/docs/UpdateFulfillmentRequest.md +20 -0
- package/docs/UpdatePlatformRequest.md +32 -0
- package/docs/ValidationError.md +20 -0
- package/docs/Variant.md +24 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/docs/Platform.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Platform
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [default to undefined]
|
|
9
|
+
**name** | **string** | | [default to undefined]
|
|
10
|
+
**domains** | **Array<string>** | | [default to undefined]
|
|
11
|
+
**logos** | [**Array<PlatformLogo>**](PlatformLogo.md) | | [default to undefined]
|
|
12
|
+
**favicon** | **string** | | [default to undefined]
|
|
13
|
+
**clientGiftWrapAvailable** | **boolean** | | [default to undefined]
|
|
14
|
+
**storeSubscriptionFee** | **number** | The subscription fee for the platform | [default to undefined]
|
|
15
|
+
**orderHandlingFee** | **number** | The order handling fee for the platform | [default to undefined]
|
|
16
|
+
**itemHandlingFee** | **number** | The item handling fee for the platform | [default to undefined]
|
|
17
|
+
**chargeClients** | **boolean** | Whether the platform can charge clients for orders | [default to undefined]
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import { Platform } from '@teemill/platform';
|
|
23
|
+
|
|
24
|
+
const instance: Platform = {
|
|
25
|
+
id,
|
|
26
|
+
name,
|
|
27
|
+
domains,
|
|
28
|
+
logos,
|
|
29
|
+
favicon,
|
|
30
|
+
clientGiftWrapAvailable,
|
|
31
|
+
storeSubscriptionFee,
|
|
32
|
+
orderHandlingFee,
|
|
33
|
+
itemHandlingFee,
|
|
34
|
+
chargeClients,
|
|
35
|
+
};
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
# PlatformApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://localhost:8080*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**getPlatform**](#getplatform) | **GET** /v1/platform | Get platform details|
|
|
8
|
+
|[**updatePlatform**](#updateplatform) | **PATCH** /v1/platform | Update platform|
|
|
9
|
+
|
|
10
|
+
# **getPlatform**
|
|
11
|
+
> Platform getPlatform()
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import {
|
|
18
|
+
PlatformApi,
|
|
19
|
+
Configuration
|
|
20
|
+
} from '@teemill/platform';
|
|
21
|
+
|
|
22
|
+
const configuration = new Configuration();
|
|
23
|
+
const apiInstance = new PlatformApi(configuration);
|
|
24
|
+
|
|
25
|
+
let project: string; //Project unique identifier (default to undefined)
|
|
26
|
+
|
|
27
|
+
const { status, data } = await apiInstance.getPlatform(
|
|
28
|
+
project
|
|
29
|
+
);
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### Parameters
|
|
33
|
+
|
|
34
|
+
|Name | Type | Description | Notes|
|
|
35
|
+
|------------- | ------------- | ------------- | -------------|
|
|
36
|
+
| **project** | [**string**] | Project unique identifier | defaults to undefined|
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### Return type
|
|
40
|
+
|
|
41
|
+
**Platform**
|
|
42
|
+
|
|
43
|
+
### Authorization
|
|
44
|
+
|
|
45
|
+
[session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
|
|
46
|
+
|
|
47
|
+
### HTTP request headers
|
|
48
|
+
|
|
49
|
+
- **Content-Type**: Not defined
|
|
50
|
+
- **Accept**: application/json
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
### HTTP response details
|
|
54
|
+
| Status code | Description | Response headers |
|
|
55
|
+
|-------------|-------------|------------------|
|
|
56
|
+
|**200** | Platform details | - |
|
|
57
|
+
|**401** | Not authorised to access this resource | - |
|
|
58
|
+
|**403** | Refuse to authorize | - |
|
|
59
|
+
|**404** | Resource not found | - |
|
|
60
|
+
|**500** | Unknown server error | - |
|
|
61
|
+
|
|
62
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
63
|
+
|
|
64
|
+
# **updatePlatform**
|
|
65
|
+
> Platform updatePlatform(updatePlatformRequest)
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
### Example
|
|
69
|
+
|
|
70
|
+
```typescript
|
|
71
|
+
import {
|
|
72
|
+
PlatformApi,
|
|
73
|
+
Configuration,
|
|
74
|
+
UpdatePlatformRequest
|
|
75
|
+
} from '@teemill/platform';
|
|
76
|
+
|
|
77
|
+
const configuration = new Configuration();
|
|
78
|
+
const apiInstance = new PlatformApi(configuration);
|
|
79
|
+
|
|
80
|
+
let project: string; //Project unique identifier (default to undefined)
|
|
81
|
+
let updatePlatformRequest: UpdatePlatformRequest; //
|
|
82
|
+
|
|
83
|
+
const { status, data } = await apiInstance.updatePlatform(
|
|
84
|
+
project,
|
|
85
|
+
updatePlatformRequest
|
|
86
|
+
);
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
### Parameters
|
|
90
|
+
|
|
91
|
+
|Name | Type | Description | Notes|
|
|
92
|
+
|------------- | ------------- | ------------- | -------------|
|
|
93
|
+
| **updatePlatformRequest** | **UpdatePlatformRequest**| | |
|
|
94
|
+
| **project** | [**string**] | Project unique identifier | defaults to undefined|
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
### Return type
|
|
98
|
+
|
|
99
|
+
**Platform**
|
|
100
|
+
|
|
101
|
+
### Authorization
|
|
102
|
+
|
|
103
|
+
[session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
|
|
104
|
+
|
|
105
|
+
### HTTP request headers
|
|
106
|
+
|
|
107
|
+
- **Content-Type**: application/json
|
|
108
|
+
- **Accept**: application/json
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
### HTTP response details
|
|
112
|
+
| Status code | Description | Response headers |
|
|
113
|
+
|-------------|-------------|------------------|
|
|
114
|
+
|**200** | Platform details | - |
|
|
115
|
+
|**401** | Not authorised to access this resource | - |
|
|
116
|
+
|**403** | Refuse to authorize | - |
|
|
117
|
+
|**404** | Resource not found | - |
|
|
118
|
+
|**422** | Failed validation | - |
|
|
119
|
+
|**500** | Unknown server error | - |
|
|
120
|
+
|
|
121
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
122
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# PlatformLogo
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**url** | **string** | | [default to undefined]
|
|
9
|
+
**meta** | **{ [key: string]: string; }** | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { PlatformLogo } from '@teemill/platform';
|
|
15
|
+
|
|
16
|
+
const instance: PlatformLogo = {
|
|
17
|
+
url,
|
|
18
|
+
meta,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/Price.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Price
|
|
2
|
+
|
|
3
|
+
Standard price definition that defines the amount and currency.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**amount** | **string** | Price including tax in the specified currency. | [optional] [default to undefined]
|
|
10
|
+
**currencyCode** | **string** | Currency code for the currency the price is valued in. | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { Price } from '@teemill/platform';
|
|
16
|
+
|
|
17
|
+
const instance: Price = {
|
|
18
|
+
amount,
|
|
19
|
+
currencyCode,
|
|
20
|
+
};
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/Project.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Project
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [default to undefined]
|
|
9
|
+
**name** | **string** | The name of the project | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { Project } from '@teemill/platform';
|
|
15
|
+
|
|
16
|
+
const instance: Project = {
|
|
17
|
+
id,
|
|
18
|
+
name,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/Review.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Review
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | Unique object identifier | [default to undefined]
|
|
9
|
+
**text** | **string** | Text content of the review | [default to undefined]
|
|
10
|
+
**product** | [**ReviewProduct**](ReviewProduct.md) | | [optional] [default to undefined]
|
|
11
|
+
**author** | [**ReviewAuthor**](ReviewAuthor.md) | | [optional] [default to undefined]
|
|
12
|
+
**rating** | **number** | Rating of the review | [optional] [default to undefined]
|
|
13
|
+
**sentiment** | **number** | Google\'s sentiment analysis score | [optional] [default to undefined]
|
|
14
|
+
**enabled** | **boolean** | Whether the review has been approved or not. If the review is not enabled, it will not be visible to the public. | [default to undefined]
|
|
15
|
+
**createdAt** | **string** | | [optional] [default to undefined]
|
|
16
|
+
**project** | [**Project**](Project.md) | | [default to undefined]
|
|
17
|
+
**images** | [**Array<ReviewImagesInner>**](ReviewImagesInner.md) | | [optional] [default to undefined]
|
|
18
|
+
**replies** | [**Array<ReviewReply>**](ReviewReply.md) | | [optional] [default to undefined]
|
|
19
|
+
|
|
20
|
+
## Example
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
import { Review } from '@teemill/platform';
|
|
24
|
+
|
|
25
|
+
const instance: Review = {
|
|
26
|
+
id,
|
|
27
|
+
text,
|
|
28
|
+
product,
|
|
29
|
+
author,
|
|
30
|
+
rating,
|
|
31
|
+
sentiment,
|
|
32
|
+
enabled,
|
|
33
|
+
createdAt,
|
|
34
|
+
project,
|
|
35
|
+
images,
|
|
36
|
+
replies,
|
|
37
|
+
};
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# ReviewAuthor
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**name** | **string** | Name of the review\'s author | [optional] [default to undefined]
|
|
9
|
+
**email** | **string** | Email of the review\'s author | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { ReviewAuthor } from '@teemill/platform';
|
|
15
|
+
|
|
16
|
+
const instance: ReviewAuthor = {
|
|
17
|
+
name,
|
|
18
|
+
email,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# ReviewImagesInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**src** | **string** | URL of the image | [optional] [default to undefined]
|
|
9
|
+
**alt** | **string** | Alternative text for the image | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { ReviewImagesInner } from '@teemill/platform';
|
|
15
|
+
|
|
16
|
+
const instance: ReviewImagesInner = {
|
|
17
|
+
src,
|
|
18
|
+
alt,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# ReviewProduct
|
|
2
|
+
|
|
3
|
+
The product that the review is for
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**id** | **string** | Unique object identifier | [optional] [default to undefined]
|
|
10
|
+
**title** | **string** | The title of the product | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { ReviewProduct } from '@teemill/platform';
|
|
16
|
+
|
|
17
|
+
const instance: ReviewProduct = {
|
|
18
|
+
id,
|
|
19
|
+
title,
|
|
20
|
+
};
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# ReviewReply
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | Unique object identifier | [default to undefined]
|
|
9
|
+
**text** | **string** | Text content of the reply | [default to undefined]
|
|
10
|
+
**author** | [**ReviewReplyAuthor**](ReviewReplyAuthor.md) | | [optional] [default to undefined]
|
|
11
|
+
**createdAt** | **string** | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { ReviewReply } from '@teemill/platform';
|
|
17
|
+
|
|
18
|
+
const instance: ReviewReply = {
|
|
19
|
+
id,
|
|
20
|
+
text,
|
|
21
|
+
author,
|
|
22
|
+
createdAt,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# ReviewReplyAuthor
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**name** | **string** | Name of the reply\'s author | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { ReviewReplyAuthor } from '@teemill/platform';
|
|
14
|
+
|
|
15
|
+
const instance: ReviewReplyAuthor = {
|
|
16
|
+
name,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
# ReviewsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://localhost:8080*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**exportReviews**](#exportreviews) | **GET** /v1/platform/{platformId}/reviews/export | Export reviews|
|
|
8
|
+
|[**getReview**](#getreview) | **GET** /v1/platform/{platformId}/reviews/{reviewId} | Get review|
|
|
9
|
+
|[**listReviews**](#listreviews) | **GET** /v1/platform/{platformId}/reviews | List reviews|
|
|
10
|
+
|[**moderateReview**](#moderatereview) | **PATCH** /v1/platform/{platformId}/reviews/{reviewId}/moderate | Moderate review|
|
|
11
|
+
|
|
12
|
+
# **exportReviews**
|
|
13
|
+
> File exportReviews()
|
|
14
|
+
|
|
15
|
+
Export reviews as a CSV file.
|
|
16
|
+
|
|
17
|
+
### Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import {
|
|
21
|
+
ReviewsApi,
|
|
22
|
+
Configuration
|
|
23
|
+
} from '@teemill/platform';
|
|
24
|
+
|
|
25
|
+
const configuration = new Configuration();
|
|
26
|
+
const apiInstance = new ReviewsApi(configuration);
|
|
27
|
+
|
|
28
|
+
let project: string; //Project unique identifier (default to undefined)
|
|
29
|
+
let platformId: string; //The platform identifier (default to undefined)
|
|
30
|
+
let start: string; //Start of date range to filter by (default to undefined)
|
|
31
|
+
let end: string; //End of date range to filter by (optional) (default to undefined)
|
|
32
|
+
|
|
33
|
+
const { status, data } = await apiInstance.exportReviews(
|
|
34
|
+
project,
|
|
35
|
+
platformId,
|
|
36
|
+
start,
|
|
37
|
+
end
|
|
38
|
+
);
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Parameters
|
|
42
|
+
|
|
43
|
+
|Name | Type | Description | Notes|
|
|
44
|
+
|------------- | ------------- | ------------- | -------------|
|
|
45
|
+
| **project** | [**string**] | Project unique identifier | defaults to undefined|
|
|
46
|
+
| **platformId** | [**string**] | The platform identifier | defaults to undefined|
|
|
47
|
+
| **start** | [**string**] | Start of date range to filter by | defaults to undefined|
|
|
48
|
+
| **end** | [**string**] | End of date range to filter by | (optional) defaults to undefined|
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
### Return type
|
|
52
|
+
|
|
53
|
+
**File**
|
|
54
|
+
|
|
55
|
+
### Authorization
|
|
56
|
+
|
|
57
|
+
[session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
|
|
58
|
+
|
|
59
|
+
### HTTP request headers
|
|
60
|
+
|
|
61
|
+
- **Content-Type**: Not defined
|
|
62
|
+
- **Accept**: text/csv; charset=utf-8, application/json
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
### HTTP response details
|
|
66
|
+
| Status code | Description | Response headers |
|
|
67
|
+
|-------------|-------------|------------------|
|
|
68
|
+
|**200** | Returns the CSV export | - |
|
|
69
|
+
|**202** | Export started. When complete, the export will be available for download from a notification within PodOS Dashboard. | - |
|
|
70
|
+
|**400** | Failed validation | - |
|
|
71
|
+
|**401** | Not authorised to access this resource | - |
|
|
72
|
+
|**403** | Refuse to authorize | - |
|
|
73
|
+
|**500** | Unknown server error | - |
|
|
74
|
+
|
|
75
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
76
|
+
|
|
77
|
+
# **getReview**
|
|
78
|
+
> Review getReview()
|
|
79
|
+
|
|
80
|
+
Get a review left on a platform by a given review ID.
|
|
81
|
+
|
|
82
|
+
### Example
|
|
83
|
+
|
|
84
|
+
```typescript
|
|
85
|
+
import {
|
|
86
|
+
ReviewsApi,
|
|
87
|
+
Configuration
|
|
88
|
+
} from '@teemill/platform';
|
|
89
|
+
|
|
90
|
+
const configuration = new Configuration();
|
|
91
|
+
const apiInstance = new ReviewsApi(configuration);
|
|
92
|
+
|
|
93
|
+
let project: string; //Project unique identifier (default to undefined)
|
|
94
|
+
let platformId: string; //The platform identifier (default to undefined)
|
|
95
|
+
let reviewId: string; //The review identifier (default to undefined)
|
|
96
|
+
|
|
97
|
+
const { status, data } = await apiInstance.getReview(
|
|
98
|
+
project,
|
|
99
|
+
platformId,
|
|
100
|
+
reviewId
|
|
101
|
+
);
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
### Parameters
|
|
105
|
+
|
|
106
|
+
|Name | Type | Description | Notes|
|
|
107
|
+
|------------- | ------------- | ------------- | -------------|
|
|
108
|
+
| **project** | [**string**] | Project unique identifier | defaults to undefined|
|
|
109
|
+
| **platformId** | [**string**] | The platform identifier | defaults to undefined|
|
|
110
|
+
| **reviewId** | [**string**] | The review identifier | defaults to undefined|
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
### Return type
|
|
114
|
+
|
|
115
|
+
**Review**
|
|
116
|
+
|
|
117
|
+
### Authorization
|
|
118
|
+
|
|
119
|
+
[session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
|
|
120
|
+
|
|
121
|
+
### HTTP request headers
|
|
122
|
+
|
|
123
|
+
- **Content-Type**: Not defined
|
|
124
|
+
- **Accept**: application/json
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
### HTTP response details
|
|
128
|
+
| Status code | Description | Response headers |
|
|
129
|
+
|-------------|-------------|------------------|
|
|
130
|
+
|**200** | Successfully retrieved a review. | - |
|
|
131
|
+
|**401** | Not authorised to access this resource | - |
|
|
132
|
+
|**403** | Refuse to authorize | - |
|
|
133
|
+
|**404** | Resource not found | - |
|
|
134
|
+
|**500** | Unknown server error | - |
|
|
135
|
+
|
|
136
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
137
|
+
|
|
138
|
+
# **listReviews**
|
|
139
|
+
> ReviewsResponse listReviews()
|
|
140
|
+
|
|
141
|
+
List reviews left on projects belonging to this platform, paginated into configurable chunks.
|
|
142
|
+
|
|
143
|
+
### Example
|
|
144
|
+
|
|
145
|
+
```typescript
|
|
146
|
+
import {
|
|
147
|
+
ReviewsApi,
|
|
148
|
+
Configuration
|
|
149
|
+
} from '@teemill/platform';
|
|
150
|
+
|
|
151
|
+
const configuration = new Configuration();
|
|
152
|
+
const apiInstance = new ReviewsApi(configuration);
|
|
153
|
+
|
|
154
|
+
let project: string; //Project unique identifier (default to undefined)
|
|
155
|
+
let platformId: string; //The platform identifier (default to undefined)
|
|
156
|
+
let pageToken: number; //Page reference token (optional) (default to 1)
|
|
157
|
+
let pageSize: number; //Max page size. This is the maximum page size that will be returned, but it might be smaller. (optional) (default to 100)
|
|
158
|
+
let search: string; //Search term to filter results (optional) (default to undefined)
|
|
159
|
+
let sortBy: Array<string>; //An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending. (optional) (default to undefined)
|
|
160
|
+
let start: string; //Start of date range to filter by (optional) (default to undefined)
|
|
161
|
+
let end: string; //End of date range to filter by (optional) (default to undefined)
|
|
162
|
+
|
|
163
|
+
const { status, data } = await apiInstance.listReviews(
|
|
164
|
+
project,
|
|
165
|
+
platformId,
|
|
166
|
+
pageToken,
|
|
167
|
+
pageSize,
|
|
168
|
+
search,
|
|
169
|
+
sortBy,
|
|
170
|
+
start,
|
|
171
|
+
end
|
|
172
|
+
);
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
### Parameters
|
|
176
|
+
|
|
177
|
+
|Name | Type | Description | Notes|
|
|
178
|
+
|------------- | ------------- | ------------- | -------------|
|
|
179
|
+
| **project** | [**string**] | Project unique identifier | defaults to undefined|
|
|
180
|
+
| **platformId** | [**string**] | The platform identifier | defaults to undefined|
|
|
181
|
+
| **pageToken** | [**number**] | Page reference token | (optional) defaults to 1|
|
|
182
|
+
| **pageSize** | [**number**] | Max page size. This is the maximum page size that will be returned, but it might be smaller. | (optional) defaults to 100|
|
|
183
|
+
| **search** | [**string**] | Search term to filter results | (optional) defaults to undefined|
|
|
184
|
+
| **sortBy** | **Array<string>** | An array of fields to sort by, prefixed with a \'-\' for descending order or \'+\' for ascending. Default is ascending. | (optional) defaults to undefined|
|
|
185
|
+
| **start** | [**string**] | Start of date range to filter by | (optional) defaults to undefined|
|
|
186
|
+
| **end** | [**string**] | End of date range to filter by | (optional) defaults to undefined|
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
### Return type
|
|
190
|
+
|
|
191
|
+
**ReviewsResponse**
|
|
192
|
+
|
|
193
|
+
### Authorization
|
|
194
|
+
|
|
195
|
+
[session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
|
|
196
|
+
|
|
197
|
+
### HTTP request headers
|
|
198
|
+
|
|
199
|
+
- **Content-Type**: Not defined
|
|
200
|
+
- **Accept**: application/json
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
### HTTP response details
|
|
204
|
+
| Status code | Description | Response headers |
|
|
205
|
+
|-------------|-------------|------------------|
|
|
206
|
+
|**200** | Successfully retrieved all reviews. | - |
|
|
207
|
+
|**401** | Not authorised to access this resource | - |
|
|
208
|
+
|**403** | Refuse to authorize | - |
|
|
209
|
+
|**500** | Unknown server error | - |
|
|
210
|
+
|
|
211
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
212
|
+
|
|
213
|
+
# **moderateReview**
|
|
214
|
+
> Review moderateReview()
|
|
215
|
+
|
|
216
|
+
Moderate a review left on a platform.
|
|
217
|
+
|
|
218
|
+
### Example
|
|
219
|
+
|
|
220
|
+
```typescript
|
|
221
|
+
import {
|
|
222
|
+
ReviewsApi,
|
|
223
|
+
Configuration,
|
|
224
|
+
ModerateReviewRequest
|
|
225
|
+
} from '@teemill/platform';
|
|
226
|
+
|
|
227
|
+
const configuration = new Configuration();
|
|
228
|
+
const apiInstance = new ReviewsApi(configuration);
|
|
229
|
+
|
|
230
|
+
let project: string; //Project unique identifier (default to undefined)
|
|
231
|
+
let platformId: string; //The platform identifier (default to undefined)
|
|
232
|
+
let reviewId: string; //The review identifier (default to undefined)
|
|
233
|
+
let moderateReviewRequest: ModerateReviewRequest; // (optional)
|
|
234
|
+
|
|
235
|
+
const { status, data } = await apiInstance.moderateReview(
|
|
236
|
+
project,
|
|
237
|
+
platformId,
|
|
238
|
+
reviewId,
|
|
239
|
+
moderateReviewRequest
|
|
240
|
+
);
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
### Parameters
|
|
244
|
+
|
|
245
|
+
|Name | Type | Description | Notes|
|
|
246
|
+
|------------- | ------------- | ------------- | -------------|
|
|
247
|
+
| **moderateReviewRequest** | **ModerateReviewRequest**| | |
|
|
248
|
+
| **project** | [**string**] | Project unique identifier | defaults to undefined|
|
|
249
|
+
| **platformId** | [**string**] | The platform identifier | defaults to undefined|
|
|
250
|
+
| **reviewId** | [**string**] | The review identifier | defaults to undefined|
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
### Return type
|
|
254
|
+
|
|
255
|
+
**Review**
|
|
256
|
+
|
|
257
|
+
### Authorization
|
|
258
|
+
|
|
259
|
+
[session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
|
|
260
|
+
|
|
261
|
+
### HTTP request headers
|
|
262
|
+
|
|
263
|
+
- **Content-Type**: application/json
|
|
264
|
+
- **Accept**: application/json
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
### HTTP response details
|
|
268
|
+
| Status code | Description | Response headers |
|
|
269
|
+
|-------------|-------------|------------------|
|
|
270
|
+
|**200** | Successfully retrieved a review. | - |
|
|
271
|
+
|**400** | Failed validation | - |
|
|
272
|
+
|**401** | Not authorised to access this resource | - |
|
|
273
|
+
|**403** | Refuse to authorize | - |
|
|
274
|
+
|**404** | Resource not found | - |
|
|
275
|
+
|**500** | Unknown server error | - |
|
|
276
|
+
|
|
277
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
278
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# ReviewsResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**reviews** | [**Array<Review>**](Review.md) | | [optional] [default to undefined]
|
|
9
|
+
**nextPageToken** | **number** | The token referencing the next page number | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { ReviewsResponse } from '@teemill/platform';
|
|
15
|
+
|
|
16
|
+
const instance: ReviewsResponse = {
|
|
17
|
+
reviews,
|
|
18
|
+
nextPageToken,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|