@teemill/platform 0.30.5 → 0.32.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.
@@ -0,0 +1,36 @@
1
+ # CreateReviewRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **author** | [**CreateReviewPayloadAuthor**](CreateReviewPayloadAuthor.md) | | [default to undefined]
9
+ **title** | **string** | The title of the review | [optional] [default to undefined]
10
+ **text** | **string** | The text of the review | [default to undefined]
11
+ **productRef** | **string** | A reference to the product being ordered | [default to undefined]
12
+ **rating** | **number** | The rating of the review | [default to undefined]
13
+ **images** | [**Array<Image>**](Image.md) | | [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 false]
15
+ **projectRef** | **string** | A reference to the project being ordered | [default to undefined]
16
+ **reviews** | [**Array<CreateReviewPayload>**](CreateReviewPayload.md) | | [default to undefined]
17
+
18
+ ## Example
19
+
20
+ ```typescript
21
+ import { CreateReviewRequest } from '@teemill/platform';
22
+
23
+ const instance: CreateReviewRequest = {
24
+ author,
25
+ title,
26
+ text,
27
+ productRef,
28
+ rating,
29
+ images,
30
+ enabled,
31
+ projectRef,
32
+ reviews,
33
+ };
34
+ ```
35
+
36
+ [[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,127 @@
1
+ # DashboardApi
2
+
3
+ All URIs are relative to *https://localhost:8080*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**getDashboard**](#getdashboard) | **GET** /v1/platform/{platformId}/dashboard | Get the platform\'s dashboard|
8
+ |[**saveDashboard**](#savedashboard) | **PUT** /v1/platform/{platformId}/dashboard | Save the platform\'s dashboard|
9
+
10
+ # **getDashboard**
11
+ > GetDashboardResponse getDashboard()
12
+
13
+
14
+ ### Example
15
+
16
+ ```typescript
17
+ import {
18
+ DashboardApi,
19
+ Configuration
20
+ } from '@teemill/platform';
21
+
22
+ const configuration = new Configuration();
23
+ const apiInstance = new DashboardApi(configuration);
24
+
25
+ let project: string; //Project unique identifier (default to undefined)
26
+ let platformId: string; //The platform identifier (default to undefined)
27
+
28
+ const { status, data } = await apiInstance.getDashboard(
29
+ project,
30
+ platformId
31
+ );
32
+ ```
33
+
34
+ ### Parameters
35
+
36
+ |Name | Type | Description | Notes|
37
+ |------------- | ------------- | ------------- | -------------|
38
+ | **project** | [**string**] | Project unique identifier | defaults to undefined|
39
+ | **platformId** | [**string**] | The platform identifier | defaults to undefined|
40
+
41
+
42
+ ### Return type
43
+
44
+ **GetDashboardResponse**
45
+
46
+ ### Authorization
47
+
48
+ [session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
49
+
50
+ ### HTTP request headers
51
+
52
+ - **Content-Type**: Not defined
53
+ - **Accept**: application/json
54
+
55
+
56
+ ### HTTP response details
57
+ | Status code | Description | Response headers |
58
+ |-------------|-------------|------------------|
59
+ |**200** | Successfully retrieved the dashboard. | - |
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
+ # **saveDashboard**
68
+ > GetDashboardResponse saveDashboard(saveDashboardRequest)
69
+
70
+
71
+ ### Example
72
+
73
+ ```typescript
74
+ import {
75
+ DashboardApi,
76
+ Configuration,
77
+ SaveDashboardRequest
78
+ } from '@teemill/platform';
79
+
80
+ const configuration = new Configuration();
81
+ const apiInstance = new DashboardApi(configuration);
82
+
83
+ let project: string; //Project unique identifier (default to undefined)
84
+ let platformId: string; //The platform identifier (default to undefined)
85
+ let saveDashboardRequest: SaveDashboardRequest; //Save dashboard
86
+
87
+ const { status, data } = await apiInstance.saveDashboard(
88
+ project,
89
+ platformId,
90
+ saveDashboardRequest
91
+ );
92
+ ```
93
+
94
+ ### Parameters
95
+
96
+ |Name | Type | Description | Notes|
97
+ |------------- | ------------- | ------------- | -------------|
98
+ | **saveDashboardRequest** | **SaveDashboardRequest**| Save dashboard | |
99
+ | **project** | [**string**] | Project unique identifier | defaults to undefined|
100
+ | **platformId** | [**string**] | The platform identifier | defaults to undefined|
101
+
102
+
103
+ ### Return type
104
+
105
+ **GetDashboardResponse**
106
+
107
+ ### Authorization
108
+
109
+ [session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
110
+
111
+ ### HTTP request headers
112
+
113
+ - **Content-Type**: application/json
114
+ - **Accept**: application/json
115
+
116
+
117
+ ### HTTP response details
118
+ | Status code | Description | Response headers |
119
+ |-------------|-------------|------------------|
120
+ |**200** | Successfully retrieved the dashboard. | - |
121
+ |**401** | Not authorised to access this resource | - |
122
+ |**403** | Refuse to authorize | - |
123
+ |**404** | Resource not found | - |
124
+ |**500** | Unknown server error | - |
125
+
126
+ [[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)
127
+
@@ -0,0 +1,30 @@
1
+ # DashboardItem
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | | [default to undefined]
9
+ **type** | **string** | | [default to undefined]
10
+ **properties** | **{ [key: string]: any; }** | | [default to undefined]
11
+ **published** | **boolean** | | [default to undefined]
12
+ **sortOrder** | **number** | | [default to undefined]
13
+ **items** | [**Array<DashboardItem>**](DashboardItem.md) | | [optional] [default to undefined]
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import { DashboardItem } from '@teemill/platform';
19
+
20
+ const instance: DashboardItem = {
21
+ id,
22
+ type,
23
+ properties,
24
+ published,
25
+ sortOrder,
26
+ items,
27
+ };
28
+ ```
29
+
30
+ [[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
+ # GetDashboardResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **items** | [**Array<DashboardItem>**](DashboardItem.md) | | [optional] [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { GetDashboardResponse } from '@teemill/platform';
14
+
15
+ const instance: GetDashboardResponse = {
16
+ items,
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)
package/docs/OrderItem.md CHANGED
@@ -17,6 +17,7 @@ Name | Type | Description | Notes
17
17
  **subtotalPrice** | [**Price**](Price.md) | | [optional] [readonly] [default to undefined]
18
18
  **discountPrice** | [**Price**](Price.md) | | [optional] [readonly] [default to undefined]
19
19
  **recipientCost** | [**Price**](Price.md) | The price you charged the recipient for each item. It\'s highly recommended if you have international orders as it aids customs issues. | [optional] [default to undefined]
20
+ **amendmentLogs** | [**Array<AmendmentLog>**](AmendmentLog.md) | | [optional] [default to undefined]
20
21
 
21
22
  ## Example
22
23
 
@@ -36,6 +37,7 @@ const instance: OrderItem = {
36
37
  subtotalPrice,
37
38
  discountPrice,
38
39
  recipientCost,
40
+ amendmentLogs,
39
41
  };
40
42
  ```
41
43
 
@@ -4,11 +4,92 @@ All URIs are relative to *https://localhost:8080*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
+ |[**createReview**](#createreview) | **POST** /v1/platform/{platformId}/reviews | Create a review|
7
8
  |[**exportReviews**](#exportreviews) | **GET** /v1/platform/{platformId}/reviews/export | Export reviews|
8
9
  |[**getReview**](#getreview) | **GET** /v1/platform/{platformId}/reviews/{reviewId} | Get review|
9
10
  |[**listReviews**](#listreviews) | **GET** /v1/platform/{platformId}/reviews | List reviews|
10
11
  |[**moderateReview**](#moderatereview) | **PATCH** /v1/platform/{platformId}/reviews/{reviewId}/moderate | Moderate review|
11
12
 
13
+ # **createReview**
14
+ > CreateReview201Response createReview(createReviewRequest)
15
+
16
+
17
+ ### Example
18
+
19
+ ```typescript
20
+ import {
21
+ ReviewsApi,
22
+ Configuration,
23
+ CreateReviewRequest
24
+ } from '@teemill/platform';
25
+
26
+ const configuration = new Configuration();
27
+ const apiInstance = new ReviewsApi(configuration);
28
+
29
+ let project: string; //Project unique identifier (default to undefined)
30
+ let platformId: string; //The platform identifier (default to undefined)
31
+ let createReviewRequest: CreateReviewRequest; //
32
+ let pageToken: number; //Page reference token (optional) (default to 1)
33
+ 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)
34
+ let search: string; //Search term to filter results (optional) (default to undefined)
35
+ 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)
36
+ let start: string; //Start of date range to filter by (optional) (default to undefined)
37
+ let end: string; //End of date range to filter by (optional) (default to undefined)
38
+
39
+ const { status, data } = await apiInstance.createReview(
40
+ project,
41
+ platformId,
42
+ createReviewRequest,
43
+ pageToken,
44
+ pageSize,
45
+ search,
46
+ sortBy,
47
+ start,
48
+ end
49
+ );
50
+ ```
51
+
52
+ ### Parameters
53
+
54
+ |Name | Type | Description | Notes|
55
+ |------------- | ------------- | ------------- | -------------|
56
+ | **createReviewRequest** | **CreateReviewRequest**| | |
57
+ | **project** | [**string**] | Project unique identifier | defaults to undefined|
58
+ | **platformId** | [**string**] | The platform identifier | defaults to undefined|
59
+ | **pageToken** | [**number**] | Page reference token | (optional) defaults to 1|
60
+ | **pageSize** | [**number**] | Max page size. This is the maximum page size that will be returned, but it might be smaller. | (optional) defaults to 100|
61
+ | **search** | [**string**] | Search term to filter results | (optional) defaults to undefined|
62
+ | **sortBy** | **Array&lt;string&gt;** | An array of fields to sort by, prefixed with a \&#39;-\&#39; for descending order or \&#39;+\&#39; for ascending. Default is ascending. | (optional) defaults to undefined|
63
+ | **start** | [**string**] | Start of date range to filter by | (optional) defaults to undefined|
64
+ | **end** | [**string**] | End of date range to filter by | (optional) defaults to undefined|
65
+
66
+
67
+ ### Return type
68
+
69
+ **CreateReview201Response**
70
+
71
+ ### Authorization
72
+
73
+ [session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
74
+
75
+ ### HTTP request headers
76
+
77
+ - **Content-Type**: application/json
78
+ - **Accept**: application/json
79
+
80
+
81
+ ### HTTP response details
82
+ | Status code | Description | Response headers |
83
+ |-------------|-------------|------------------|
84
+ |**201** | Review created | - |
85
+ |**400** | Failed validation | - |
86
+ |**401** | Not authorised to access this resource | - |
87
+ |**403** | Refuse to authorize | - |
88
+ |**404** | Resource not found | - |
89
+ |**500** | Unknown server error | - |
90
+
91
+ [[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)
92
+
12
93
  # **exportReviews**
13
94
  > File exportReviews()
14
95
 
@@ -0,0 +1,20 @@
1
+ # SaveDashboardRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **items** | [**Array&lt;DashboardItem&gt;**](DashboardItem.md) | | [optional] [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { SaveDashboardRequest } from '@teemill/platform';
14
+
15
+ const instance: SaveDashboardRequest = {
16
+ items,
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)
package/index.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.30.5
7
+ * The version of the OpenAPI document: 0.32.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teemill/platform",
3
- "version": "0.30.5",
3
+ "version": "0.32.0",
4
4
  "description": "OpenAPI client for @teemill/platform",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {