@teemill/platform 0.14.4 → 0.16.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 +94 -2
- package/api.ts +571 -893
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +460 -903
- package/dist/api.js +296 -164
- 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 +460 -903
- package/dist/esm/api.js +291 -155
- 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 +54 -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/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
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
# PaymentApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://localhost:8080*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**authorizeStripe**](#authorizestripe) | **GET** /v1/platform/payment/stripe/authorize | Authorize Stripe|
|
|
8
|
+
|[**deauthorizeStripe**](#deauthorizestripe) | **DELETE** /v1/platform/payment/stripe/deauthorize | Deauthorize Stripe|
|
|
9
|
+
|[**getStripePaymentAccount**](#getstripepaymentaccount) | **GET** /v1/platform/payment/stripe | Get Stripe Payment Account|
|
|
10
|
+
|
|
11
|
+
# **authorizeStripe**
|
|
12
|
+
> AuthorizeStripe200Response authorizeStripe()
|
|
13
|
+
|
|
14
|
+
Authorize a Stripe payment account
|
|
15
|
+
|
|
16
|
+
### Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import {
|
|
20
|
+
PaymentApi,
|
|
21
|
+
Configuration
|
|
22
|
+
} from '@teemill/platform';
|
|
23
|
+
|
|
24
|
+
const configuration = new Configuration();
|
|
25
|
+
const apiInstance = new PaymentApi(configuration);
|
|
26
|
+
|
|
27
|
+
let project: string; //Project unique identifier (default to undefined)
|
|
28
|
+
|
|
29
|
+
const { status, data } = await apiInstance.authorizeStripe(
|
|
30
|
+
project
|
|
31
|
+
);
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Parameters
|
|
35
|
+
|
|
36
|
+
|Name | Type | Description | Notes|
|
|
37
|
+
|------------- | ------------- | ------------- | -------------|
|
|
38
|
+
| **project** | [**string**] | Project unique identifier | defaults to undefined|
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
### Return type
|
|
42
|
+
|
|
43
|
+
**AuthorizeStripe200Response**
|
|
44
|
+
|
|
45
|
+
### Authorization
|
|
46
|
+
|
|
47
|
+
[session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
|
|
48
|
+
|
|
49
|
+
### HTTP request headers
|
|
50
|
+
|
|
51
|
+
- **Content-Type**: Not defined
|
|
52
|
+
- **Accept**: application/json
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
### HTTP response details
|
|
56
|
+
| Status code | Description | Response headers |
|
|
57
|
+
|-------------|-------------|------------------|
|
|
58
|
+
|**200** | Redirect to authorize Stripe | - |
|
|
59
|
+
|**400** | Failed validation | - |
|
|
60
|
+
|**401** | Not authorised to access this resource | - |
|
|
61
|
+
|**403** | Refuse to authorize | - |
|
|
62
|
+
|**404** | Resource not found | - |
|
|
63
|
+
|**500** | Unknown server error | - |
|
|
64
|
+
|
|
65
|
+
[[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)
|
|
66
|
+
|
|
67
|
+
# **deauthorizeStripe**
|
|
68
|
+
> deauthorizeStripe()
|
|
69
|
+
|
|
70
|
+
Deauthorize a Stripe payment account
|
|
71
|
+
|
|
72
|
+
### Example
|
|
73
|
+
|
|
74
|
+
```typescript
|
|
75
|
+
import {
|
|
76
|
+
PaymentApi,
|
|
77
|
+
Configuration
|
|
78
|
+
} from '@teemill/platform';
|
|
79
|
+
|
|
80
|
+
const configuration = new Configuration();
|
|
81
|
+
const apiInstance = new PaymentApi(configuration);
|
|
82
|
+
|
|
83
|
+
let project: string; //Project unique identifier (default to undefined)
|
|
84
|
+
|
|
85
|
+
const { status, data } = await apiInstance.deauthorizeStripe(
|
|
86
|
+
project
|
|
87
|
+
);
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
### Parameters
|
|
91
|
+
|
|
92
|
+
|Name | Type | Description | Notes|
|
|
93
|
+
|------------- | ------------- | ------------- | -------------|
|
|
94
|
+
| **project** | [**string**] | Project unique identifier | defaults to undefined|
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
### Return type
|
|
98
|
+
|
|
99
|
+
void (empty response body)
|
|
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**: Not defined
|
|
108
|
+
- **Accept**: application/json
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
### HTTP response details
|
|
112
|
+
| Status code | Description | Response headers |
|
|
113
|
+
|-------------|-------------|------------------|
|
|
114
|
+
|**204** | Successfully deauthorized Stripe payment account | - |
|
|
115
|
+
|**400** | Failed validation | - |
|
|
116
|
+
|**401** | Not authorised to access this resource | - |
|
|
117
|
+
|**403** | Refuse to authorize | - |
|
|
118
|
+
|**404** | Resource not found | - |
|
|
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
|
+
|
|
123
|
+
# **getStripePaymentAccount**
|
|
124
|
+
> PaymentAccount getStripePaymentAccount()
|
|
125
|
+
|
|
126
|
+
Get the Stripe payment account for the project
|
|
127
|
+
|
|
128
|
+
### Example
|
|
129
|
+
|
|
130
|
+
```typescript
|
|
131
|
+
import {
|
|
132
|
+
PaymentApi,
|
|
133
|
+
Configuration
|
|
134
|
+
} from '@teemill/platform';
|
|
135
|
+
|
|
136
|
+
const configuration = new Configuration();
|
|
137
|
+
const apiInstance = new PaymentApi(configuration);
|
|
138
|
+
|
|
139
|
+
let project: string; //Project unique identifier (default to undefined)
|
|
140
|
+
|
|
141
|
+
const { status, data } = await apiInstance.getStripePaymentAccount(
|
|
142
|
+
project
|
|
143
|
+
);
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
### Parameters
|
|
147
|
+
|
|
148
|
+
|Name | Type | Description | Notes|
|
|
149
|
+
|------------- | ------------- | ------------- | -------------|
|
|
150
|
+
| **project** | [**string**] | Project unique identifier | defaults to undefined|
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
### Return type
|
|
154
|
+
|
|
155
|
+
**PaymentAccount**
|
|
156
|
+
|
|
157
|
+
### Authorization
|
|
158
|
+
|
|
159
|
+
[session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
|
|
160
|
+
|
|
161
|
+
### HTTP request headers
|
|
162
|
+
|
|
163
|
+
- **Content-Type**: Not defined
|
|
164
|
+
- **Accept**: application/json
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
### HTTP response details
|
|
168
|
+
| Status code | Description | Response headers |
|
|
169
|
+
|-------------|-------------|------------------|
|
|
170
|
+
|**200** | Successfully connected Stripe payment account | - |
|
|
171
|
+
|**400** | Failed validation | - |
|
|
172
|
+
|**401** | Not authorised to access this resource | - |
|
|
173
|
+
|**403** | Refuse to authorize | - |
|
|
174
|
+
|**404** | Resource not found | - |
|
|
175
|
+
|**500** | Unknown server error | - |
|
|
176
|
+
|
|
177
|
+
[[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)
|
|
178
|
+
|
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)
|