@teemill/platform 0.19.0 → 0.21.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,204 @@
1
+ # EnquiriesApi
2
+
3
+ All URIs are relative to *https://localhost:8080*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**getCustomerEnquiry**](#getcustomerenquiry) | **GET** /v1/platform/{platformId}/customers/enquiries/{enquiryId} | Get customer enquiry|
8
+ |[**listCustomerEnquiries**](#listcustomerenquiries) | **GET** /v1/platform/{platformId}/customers/enquiries | List customer enquiries|
9
+ |[**listCustomerEnquiryLogs**](#listcustomerenquirylogs) | **GET** /v1/platform/{platformId}/customers/enquiries/{enquiryId}/logs | List customer enquiry Logs|
10
+
11
+ # **getCustomerEnquiry**
12
+ > Enquiry getCustomerEnquiry()
13
+
14
+ Get a customer enquiry
15
+
16
+ ### Example
17
+
18
+ ```typescript
19
+ import {
20
+ EnquiriesApi,
21
+ Configuration
22
+ } from '@teemill/platform';
23
+
24
+ const configuration = new Configuration();
25
+ const apiInstance = new EnquiriesApi(configuration);
26
+
27
+ let project: string; //Project unique identifier (default to undefined)
28
+ let platformId: string; //The platform identifier (default to undefined)
29
+ let enquiryId: string; // (default to undefined)
30
+
31
+ const { status, data } = await apiInstance.getCustomerEnquiry(
32
+ project,
33
+ platformId,
34
+ enquiryId
35
+ );
36
+ ```
37
+
38
+ ### Parameters
39
+
40
+ |Name | Type | Description | Notes|
41
+ |------------- | ------------- | ------------- | -------------|
42
+ | **project** | [**string**] | Project unique identifier | defaults to undefined|
43
+ | **platformId** | [**string**] | The platform identifier | defaults to undefined|
44
+ | **enquiryId** | [**string**] | | defaults to undefined|
45
+
46
+
47
+ ### Return type
48
+
49
+ **Enquiry**
50
+
51
+ ### Authorization
52
+
53
+ [session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
54
+
55
+ ### HTTP request headers
56
+
57
+ - **Content-Type**: Not defined
58
+ - **Accept**: application/json
59
+
60
+
61
+ ### HTTP response details
62
+ | Status code | Description | Response headers |
63
+ |-------------|-------------|------------------|
64
+ |**200** | A customer enquiry | - |
65
+ |**401** | Not authorised to access this resource | - |
66
+ |**403** | Refuse to authorize | - |
67
+ |**404** | Resource not found | - |
68
+ |**500** | Unknown server error | - |
69
+
70
+ [[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)
71
+
72
+ # **listCustomerEnquiries**
73
+ > ListCustomerEnquiries200Response listCustomerEnquiries()
74
+
75
+ List customer enquiries
76
+
77
+ ### Example
78
+
79
+ ```typescript
80
+ import {
81
+ EnquiriesApi,
82
+ Configuration
83
+ } from '@teemill/platform';
84
+
85
+ const configuration = new Configuration();
86
+ const apiInstance = new EnquiriesApi(configuration);
87
+
88
+ let project: string; //Project unique identifier (default to undefined)
89
+ let platformId: string; //The platform identifier (default to undefined)
90
+ let pageToken: number; //Page reference token (optional) (default to 1)
91
+ 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)
92
+ let search: string; //Search term to filter based on enquiry title, content, customer name and customer email. (optional) (default to undefined)
93
+ let start: string; //Start of date range to filter by (optional) (default to undefined)
94
+ let end: string; //End of date range to filter by (optional) (default to undefined)
95
+
96
+ const { status, data } = await apiInstance.listCustomerEnquiries(
97
+ project,
98
+ platformId,
99
+ pageToken,
100
+ pageSize,
101
+ search,
102
+ start,
103
+ end
104
+ );
105
+ ```
106
+
107
+ ### Parameters
108
+
109
+ |Name | Type | Description | Notes|
110
+ |------------- | ------------- | ------------- | -------------|
111
+ | **project** | [**string**] | Project unique identifier | defaults to undefined|
112
+ | **platformId** | [**string**] | The platform identifier | defaults to undefined|
113
+ | **pageToken** | [**number**] | Page reference token | (optional) defaults to 1|
114
+ | **pageSize** | [**number**] | Max page size. This is the maximum page size that will be returned, but it might be smaller. | (optional) defaults to 100|
115
+ | **search** | [**string**] | Search term to filter based on enquiry title, content, customer name and customer email. | (optional) defaults to undefined|
116
+ | **start** | [**string**] | Start of date range to filter by | (optional) defaults to undefined|
117
+ | **end** | [**string**] | End of date range to filter by | (optional) defaults to undefined|
118
+
119
+
120
+ ### Return type
121
+
122
+ **ListCustomerEnquiries200Response**
123
+
124
+ ### Authorization
125
+
126
+ [session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
127
+
128
+ ### HTTP request headers
129
+
130
+ - **Content-Type**: Not defined
131
+ - **Accept**: application/json
132
+
133
+
134
+ ### HTTP response details
135
+ | Status code | Description | Response headers |
136
+ |-------------|-------------|------------------|
137
+ |**200** | A list of customer enquiries | - |
138
+ |**400** | Failed validation | - |
139
+ |**401** | Not authorised to access this resource | - |
140
+ |**403** | Refuse to authorize | - |
141
+ |**500** | Unknown server error | - |
142
+
143
+ [[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)
144
+
145
+ # **listCustomerEnquiryLogs**
146
+ > ListCustomerEnquiryLogs200Response listCustomerEnquiryLogs()
147
+
148
+ Lists all customer enquiry Logs
149
+
150
+ ### Example
151
+
152
+ ```typescript
153
+ import {
154
+ EnquiriesApi,
155
+ Configuration
156
+ } from '@teemill/platform';
157
+
158
+ const configuration = new Configuration();
159
+ const apiInstance = new EnquiriesApi(configuration);
160
+
161
+ let project: string; //Project unique identifier (default to undefined)
162
+ let platformId: string; //The platform identifier (default to undefined)
163
+ let enquiryId: string; // (default to undefined)
164
+
165
+ const { status, data } = await apiInstance.listCustomerEnquiryLogs(
166
+ project,
167
+ platformId,
168
+ enquiryId
169
+ );
170
+ ```
171
+
172
+ ### Parameters
173
+
174
+ |Name | Type | Description | Notes|
175
+ |------------- | ------------- | ------------- | -------------|
176
+ | **project** | [**string**] | Project unique identifier | defaults to undefined|
177
+ | **platformId** | [**string**] | The platform identifier | defaults to undefined|
178
+ | **enquiryId** | [**string**] | | defaults to undefined|
179
+
180
+
181
+ ### Return type
182
+
183
+ **ListCustomerEnquiryLogs200Response**
184
+
185
+ ### Authorization
186
+
187
+ [session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
188
+
189
+ ### HTTP request headers
190
+
191
+ - **Content-Type**: Not defined
192
+ - **Accept**: application/json
193
+
194
+
195
+ ### HTTP response details
196
+ | Status code | Description | Response headers |
197
+ |-------------|-------------|------------------|
198
+ |**200** | A list of customer enquiry logs belonging to the enquiry | - |
199
+ |**401** | Not authorised to access this resource | - |
200
+ |**403** | Refuse to authorize | - |
201
+ |**500** | Unknown server error | - |
202
+
203
+ [[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)
204
+
@@ -0,0 +1,42 @@
1
+ # Enquiry
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | | [default to undefined]
9
+ **ref** | **string** | API reference for the enquiry | [default to undefined]
10
+ **customer** | [**ListCustomerEnquiryLogs200ResponseLogsInnerCustomer**](ListCustomerEnquiryLogs200ResponseLogsInnerCustomer.md) | | [default to undefined]
11
+ **client** | [**Client**](Client.md) | | [default to undefined]
12
+ **subject** | **string** | | [default to undefined]
13
+ **body** | **string** | | [default to undefined]
14
+ **createdAt** | **string** | | [default to undefined]
15
+ **updatedAt** | **string** | | [default to undefined]
16
+ **tags** | **Array<string>** | | [default to undefined]
17
+ **status** | **string** | | [default to undefined]
18
+ **read** | **boolean** | | [default to undefined]
19
+ **extraInputs** | [**Array<EnquiryExtraInputsInner>**](EnquiryExtraInputsInner.md) | | [default to undefined]
20
+
21
+ ## Example
22
+
23
+ ```typescript
24
+ import { Enquiry } from '@teemill/platform';
25
+
26
+ const instance: Enquiry = {
27
+ id,
28
+ ref,
29
+ customer,
30
+ client,
31
+ subject,
32
+ body,
33
+ createdAt,
34
+ updatedAt,
35
+ tags,
36
+ status,
37
+ read,
38
+ extraInputs,
39
+ };
40
+ ```
41
+
42
+ [[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,24 @@
1
+ # EnquiryExtraInputsInner
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **name** | **string** | | [default to undefined]
9
+ **type** | **string** | | [default to undefined]
10
+ **value** | [**EnquiryExtraInputsInnerValue**](EnquiryExtraInputsInnerValue.md) | | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { EnquiryExtraInputsInner } from '@teemill/platform';
16
+
17
+ const instance: EnquiryExtraInputsInner = {
18
+ name,
19
+ type,
20
+ value,
21
+ };
22
+ ```
23
+
24
+ [[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,18 @@
1
+ # EnquiryExtraInputsInnerValue
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+
9
+ ## Example
10
+
11
+ ```typescript
12
+ import { EnquiryExtraInputsInnerValue } from '@teemill/platform';
13
+
14
+ const instance: EnquiryExtraInputsInnerValue = {
15
+ };
16
+ ```
17
+
18
+ [[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
+ # ListCustomerEnquiries200Response
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **enquiries** | [**Array<Enquiry>**](Enquiry.md) | | [optional] [default to undefined]
9
+ **nextPageToken** | **number** | | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { ListCustomerEnquiries200Response } from '@teemill/platform';
15
+
16
+ const instance: ListCustomerEnquiries200Response = {
17
+ enquiries,
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)
@@ -0,0 +1,20 @@
1
+ # ListCustomerEnquiryLogs200Response
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **logs** | [**Array<ListCustomerEnquiryLogs200ResponseLogsInner>**](ListCustomerEnquiryLogs200ResponseLogsInner.md) | | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { ListCustomerEnquiryLogs200Response } from '@teemill/platform';
14
+
15
+ const instance: ListCustomerEnquiryLogs200Response = {
16
+ logs,
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,22 @@
1
+ # ListCustomerEnquiryLogs200ResponseLogsInner
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **customer** | [**ListCustomerEnquiryLogs200ResponseLogsInnerCustomer**](ListCustomerEnquiryLogs200ResponseLogsInnerCustomer.md) | | [default to undefined]
9
+ **createdAt** | **string** | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { ListCustomerEnquiryLogs200ResponseLogsInner } from '@teemill/platform';
15
+
16
+ const instance: ListCustomerEnquiryLogs200ResponseLogsInner = {
17
+ customer,
18
+ createdAt,
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,28 @@
1
+ # ListCustomerEnquiryLogs200ResponseLogsInnerCustomer
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | | [optional] [default to undefined]
9
+ **ref** | **string** | API reference for the customer | [optional] [default to undefined]
10
+ **firstName** | **string** | | [optional] [default to undefined]
11
+ **lastName** | **string** | | [optional] [default to undefined]
12
+ **email** | **string** | | [optional] [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { ListCustomerEnquiryLogs200ResponseLogsInnerCustomer } from '@teemill/platform';
18
+
19
+ const instance: ListCustomerEnquiryLogs200ResponseLogsInnerCustomer = {
20
+ id,
21
+ ref,
22
+ firstName,
23
+ lastName,
24
+ email,
25
+ };
26
+ ```
27
+
28
+ [[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,24 @@
1
+ # SaveTermsRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **title** | **string** | | [default to undefined]
9
+ **content** | **string** | | [default to undefined]
10
+ **enabled** | **boolean** | | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { SaveTermsRequest } from '@teemill/platform';
16
+
17
+ const instance: SaveTermsRequest = {
18
+ title,
19
+ content,
20
+ enabled,
21
+ };
22
+ ```
23
+
24
+ [[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/Terms.md ADDED
@@ -0,0 +1,32 @@
1
+ # Terms
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | | [default to undefined]
9
+ **title** | **string** | | [default to undefined]
10
+ **content** | **string** | | [default to undefined]
11
+ **version** | **number** | | [default to undefined]
12
+ **enabled** | **boolean** | | [default to undefined]
13
+ **createdAt** | **string** | | [default to undefined]
14
+ **updatedAt** | **string** | | [default to undefined]
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import { Terms } from '@teemill/platform';
20
+
21
+ const instance: Terms = {
22
+ id,
23
+ title,
24
+ content,
25
+ version,
26
+ enabled,
27
+ createdAt,
28
+ updatedAt,
29
+ };
30
+ ```
31
+
32
+ [[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
+ # TermsApi
2
+
3
+ All URIs are relative to *https://localhost:8080*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**getTerms**](#getterms) | **GET** /v1/platform/{platformId}/terms | Get the platform\'s terms|
8
+ |[**saveTerms**](#saveterms) | **POST** /v1/platform/{platformId}/terms | Save the platform\'s terms|
9
+
10
+ # **getTerms**
11
+ > Terms getTerms()
12
+
13
+
14
+ ### Example
15
+
16
+ ```typescript
17
+ import {
18
+ TermsApi,
19
+ Configuration
20
+ } from '@teemill/platform';
21
+
22
+ const configuration = new Configuration();
23
+ const apiInstance = new TermsApi(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.getTerms(
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
+ **Terms**
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 terms. | - |
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
+ # **saveTerms**
68
+ > Terms saveTerms(saveTermsRequest)
69
+
70
+
71
+ ### Example
72
+
73
+ ```typescript
74
+ import {
75
+ TermsApi,
76
+ Configuration,
77
+ SaveTermsRequest
78
+ } from '@teemill/platform';
79
+
80
+ const configuration = new Configuration();
81
+ const apiInstance = new TermsApi(configuration);
82
+
83
+ let project: string; //Project unique identifier (default to undefined)
84
+ let platformId: string; //The platform identifier (default to undefined)
85
+ let saveTermsRequest: SaveTermsRequest; //Save terms
86
+
87
+ const { status, data } = await apiInstance.saveTerms(
88
+ project,
89
+ platformId,
90
+ saveTermsRequest
91
+ );
92
+ ```
93
+
94
+ ### Parameters
95
+
96
+ |Name | Type | Description | Notes|
97
+ |------------- | ------------- | ------------- | -------------|
98
+ | **saveTermsRequest** | **SaveTermsRequest**| Save terms | |
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
+ **Terms**
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 terms. | - |
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
+
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.19.0
7
+ * The version of the OpenAPI document: 0.21.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.19.0",
3
+ "version": "0.21.0",
4
4
  "description": "OpenAPI client for @teemill/platform",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {