@teemill/website 0.20.0 → 0.22.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 +151 -2
- package/api.ts +203 -6
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +125 -3
- package/dist/api.js +107 -6
- 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 +125 -3
- package/dist/esm/api.js +107 -6
- 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/ApiError.md +22 -0
- package/docs/Application.md +28 -0
- package/docs/ApplicationMockup.md +22 -0
- package/docs/AttachCrossSellProductsRequest.md +20 -0
- package/docs/Attribute.md +26 -0
- package/docs/AttributeThumbnail.md +23 -0
- package/docs/AuthorizeStripe200Response.md +20 -0
- package/docs/Blog.md +34 -0
- package/docs/BlogsApi.md +317 -0
- package/docs/BlogsResponse.md +22 -0
- package/docs/Brand.md +20 -0
- package/docs/Collection.md +36 -0
- package/docs/CollectionsApi.md +378 -0
- package/docs/CollectionsResponse.md +22 -0
- package/docs/CreateSearchRedirectRequest.md +22 -0
- package/docs/CrossSellApi.md +128 -0
- package/docs/DefaultApi.md +123 -0
- package/docs/ExportPages202Response.md +20 -0
- package/docs/Footer.md +20 -0
- package/docs/FooterApi.md +123 -0
- package/docs/FooterItem.md +26 -0
- package/docs/Image.md +35 -0
- package/docs/ListRoutesResponse.md +22 -0
- package/docs/Menu.md +20 -0
- package/docs/MenuApi.md +122 -0
- package/docs/MenuItem.md +32 -0
- package/docs/MetaField.md +23 -0
- package/docs/MetaImage.md +23 -0
- package/docs/ModerateReviewRequest.md +20 -0
- package/docs/OptimisationHistoryItem.md +22 -0
- package/docs/Page.md +38 -0
- package/docs/PagesApi.md +378 -0
- package/docs/PagesResponse.md +22 -0
- package/docs/PaymentAccount.md +24 -0
- package/docs/PaymentApi.md +178 -0
- package/docs/Price.md +23 -0
- package/docs/Product.md +66 -0
- package/docs/ProductAdditionalFilesInner.md +22 -0
- package/docs/ProductApplicationSetsInner.md +24 -0
- package/docs/ProductWarehouseProduct.md +22 -0
- package/docs/Review.md +38 -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 +263 -0
- package/docs/ReviewsResponse.md +22 -0
- package/docs/Route.md +28 -0
- package/docs/RoutesApi.md +70 -0
- package/docs/SearchApi.md +319 -0
- package/docs/SearchRedirect.md +26 -0
- package/docs/SearchRedirectsResponse.md +22 -0
- package/docs/SeoMetadata.md +23 -0
- package/docs/SeoOptimiseCollectionsRequest.md +22 -0
- package/docs/SeoOptimisePages202Response.md +20 -0
- package/docs/SeoOptimisePagesRequest.md +22 -0
- package/docs/Stock.md +20 -0
- package/docs/SubmenuInner.md +32 -0
- package/docs/SubmenuInnerImage.md +36 -0
- package/docs/SubmenuInnerImageButton.md +30 -0
- package/docs/SubmenuInnerImageText.md +24 -0
- package/docs/SubmenuItem.md +30 -0
- package/docs/TargetSearchPhraseData.md +22 -0
- package/docs/UpdateBlogRequest.md +30 -0
- package/docs/UpdateBlogsRequest.md +20 -0
- package/docs/UpdateBlogsRequestBlogsInner.md +32 -0
- package/docs/UpdateBlogsRequestBlogsInnerSeoMetadata.md +22 -0
- package/docs/UpdateBrandRequest.md +20 -0
- package/docs/UpdateCollectionRequest.md +32 -0
- package/docs/UpdateCollectionsRequest.md +20 -0
- package/docs/UpdateCollectionsRequestCollectionsInner.md +34 -0
- package/docs/UpdateCollectionsRequestCollectionsInnerSeoMetadata.md +22 -0
- package/docs/UpdateFooterRequest.md +20 -0
- package/docs/UpdateFooterRequestItemsInner.md +24 -0
- package/docs/UpdateMenuRequest.md +20 -0
- package/docs/UpdateMenuRequestItem.md +32 -0
- package/docs/UpdateMenuRequestItemSubmenuInner.md +32 -0
- package/docs/UpdateMenuRequestItemSubmenuInnerImage.md +36 -0
- package/docs/UpdateMenuRequestItemSubmenuInnerImageButton.md +30 -0
- package/docs/UpdateMenuRequestItemSubmenuInnerImageText.md +24 -0
- package/docs/UpdateMenuRequestSubmenuItem.md +30 -0
- package/docs/UpdatePageRequest.md +28 -0
- package/docs/UpdatePagesRequest.md +20 -0
- package/docs/UpdatePagesRequestPagesInner.md +30 -0
- package/docs/UpdateSearchRedirectRequest.md +22 -0
- package/docs/Variant.md +52 -0
- package/docs/VariantProduct.md +22 -0
- package/docs/Video.md +31 -0
- package/index.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,378 @@
|
|
|
1
|
+
# CollectionsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.localhost:8080*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**exportCollections**](#exportcollections) | **GET** /v1/website/collections/export | Export collections|
|
|
8
|
+
|[**getCollection**](#getcollection) | **GET** /v1/website/collections/{collectionId} | Get website collection|
|
|
9
|
+
|[**listCollections**](#listcollections) | **GET** /v1/website/collections | List website collections|
|
|
10
|
+
|[**seoOptimiseCollections**](#seooptimisecollections) | **POST** /v1/website/collections/ai-seo-optimise | AI SEO optimise collections|
|
|
11
|
+
|[**updateCollection**](#updatecollection) | **PATCH** /v1/website/collections/{collectionId} | Update website collection|
|
|
12
|
+
|[**updateCollections**](#updatecollections) | **PATCH** /v1/website/collections | Update website collections|
|
|
13
|
+
|
|
14
|
+
# **exportCollections**
|
|
15
|
+
> File exportCollections()
|
|
16
|
+
|
|
17
|
+
Export collections as a CSV file.
|
|
18
|
+
|
|
19
|
+
### Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import {
|
|
23
|
+
CollectionsApi,
|
|
24
|
+
Configuration
|
|
25
|
+
} from '@teemill/website';
|
|
26
|
+
|
|
27
|
+
const configuration = new Configuration();
|
|
28
|
+
const apiInstance = new CollectionsApi(configuration);
|
|
29
|
+
|
|
30
|
+
let project: string; //What project it is (default to undefined)
|
|
31
|
+
|
|
32
|
+
const { status, data } = await apiInstance.exportCollections(
|
|
33
|
+
project
|
|
34
|
+
);
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### Parameters
|
|
38
|
+
|
|
39
|
+
|Name | Type | Description | Notes|
|
|
40
|
+
|------------- | ------------- | ------------- | -------------|
|
|
41
|
+
| **project** | [**string**] | What project it is | defaults to undefined|
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
### Return type
|
|
45
|
+
|
|
46
|
+
**File**
|
|
47
|
+
|
|
48
|
+
### Authorization
|
|
49
|
+
|
|
50
|
+
[session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
|
|
51
|
+
|
|
52
|
+
### HTTP request headers
|
|
53
|
+
|
|
54
|
+
- **Content-Type**: Not defined
|
|
55
|
+
- **Accept**: text/csv; charset=utf-8, application/json
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
### HTTP response details
|
|
59
|
+
| Status code | Description | Response headers |
|
|
60
|
+
|-------------|-------------|------------------|
|
|
61
|
+
|**200** | Returns the CSV export | - |
|
|
62
|
+
|**202** | Export started. When complete, the export will be available for download from a notification within PodOS Dashboard. | - |
|
|
63
|
+
|**400** | Failed validation | - |
|
|
64
|
+
|**401** | Not authorised to access this resource | - |
|
|
65
|
+
|**403** | Refuse to authorize | - |
|
|
66
|
+
|**500** | Unknown server error | - |
|
|
67
|
+
|
|
68
|
+
[[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)
|
|
69
|
+
|
|
70
|
+
# **getCollection**
|
|
71
|
+
> Collection getCollection()
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
### Example
|
|
75
|
+
|
|
76
|
+
```typescript
|
|
77
|
+
import {
|
|
78
|
+
CollectionsApi,
|
|
79
|
+
Configuration
|
|
80
|
+
} from '@teemill/website';
|
|
81
|
+
|
|
82
|
+
const configuration = new Configuration();
|
|
83
|
+
const apiInstance = new CollectionsApi(configuration);
|
|
84
|
+
|
|
85
|
+
let project: string; //What project it is (default to undefined)
|
|
86
|
+
let collectionId: string; //Collection\'s unique identifier (default to undefined)
|
|
87
|
+
|
|
88
|
+
const { status, data } = await apiInstance.getCollection(
|
|
89
|
+
project,
|
|
90
|
+
collectionId
|
|
91
|
+
);
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
### Parameters
|
|
95
|
+
|
|
96
|
+
|Name | Type | Description | Notes|
|
|
97
|
+
|------------- | ------------- | ------------- | -------------|
|
|
98
|
+
| **project** | [**string**] | What project it is | defaults to undefined|
|
|
99
|
+
| **collectionId** | [**string**] | Collection\'s unique identifier | defaults to undefined|
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
### Return type
|
|
103
|
+
|
|
104
|
+
**Collection**
|
|
105
|
+
|
|
106
|
+
### Authorization
|
|
107
|
+
|
|
108
|
+
[session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
|
|
109
|
+
|
|
110
|
+
### HTTP request headers
|
|
111
|
+
|
|
112
|
+
- **Content-Type**: Not defined
|
|
113
|
+
- **Accept**: application/json
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
### HTTP response details
|
|
117
|
+
| Status code | Description | Response headers |
|
|
118
|
+
|-------------|-------------|------------------|
|
|
119
|
+
|**200** | Successfully retrieved a website collection. | - |
|
|
120
|
+
|**401** | Not authorised to access this resource | - |
|
|
121
|
+
|**403** | Refuse to authorize | - |
|
|
122
|
+
|**404** | Resource not found | - |
|
|
123
|
+
|**500** | Unknown server error | - |
|
|
124
|
+
|
|
125
|
+
[[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)
|
|
126
|
+
|
|
127
|
+
# **listCollections**
|
|
128
|
+
> CollectionsResponse listCollections()
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
### Example
|
|
132
|
+
|
|
133
|
+
```typescript
|
|
134
|
+
import {
|
|
135
|
+
CollectionsApi,
|
|
136
|
+
Configuration
|
|
137
|
+
} from '@teemill/website';
|
|
138
|
+
|
|
139
|
+
const configuration = new Configuration();
|
|
140
|
+
const apiInstance = new CollectionsApi(configuration);
|
|
141
|
+
|
|
142
|
+
let project: string; //What project it is (default to undefined)
|
|
143
|
+
let pageToken: number; //Page reference token (optional) (default to 1)
|
|
144
|
+
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)
|
|
145
|
+
let search: string; //Search term to filter results (optional) (default to undefined)
|
|
146
|
+
|
|
147
|
+
const { status, data } = await apiInstance.listCollections(
|
|
148
|
+
project,
|
|
149
|
+
pageToken,
|
|
150
|
+
pageSize,
|
|
151
|
+
search
|
|
152
|
+
);
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
### Parameters
|
|
156
|
+
|
|
157
|
+
|Name | Type | Description | Notes|
|
|
158
|
+
|------------- | ------------- | ------------- | -------------|
|
|
159
|
+
| **project** | [**string**] | What project it is | defaults to undefined|
|
|
160
|
+
| **pageToken** | [**number**] | Page reference token | (optional) defaults to 1|
|
|
161
|
+
| **pageSize** | [**number**] | Max page size. This is the maximum page size that will be returned, but it might be smaller. | (optional) defaults to 100|
|
|
162
|
+
| **search** | [**string**] | Search term to filter results | (optional) defaults to undefined|
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
### Return type
|
|
166
|
+
|
|
167
|
+
**CollectionsResponse**
|
|
168
|
+
|
|
169
|
+
### Authorization
|
|
170
|
+
|
|
171
|
+
[session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
|
|
172
|
+
|
|
173
|
+
### HTTP request headers
|
|
174
|
+
|
|
175
|
+
- **Content-Type**: Not defined
|
|
176
|
+
- **Accept**: application/json
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
### HTTP response details
|
|
180
|
+
| Status code | Description | Response headers |
|
|
181
|
+
|-------------|-------------|------------------|
|
|
182
|
+
|**200** | Successfully retrieved all website collections. | - |
|
|
183
|
+
|**401** | Not authorised to access this resource | - |
|
|
184
|
+
|**403** | Refuse to authorize | - |
|
|
185
|
+
|**500** | Unknown server error | - |
|
|
186
|
+
|
|
187
|
+
[[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)
|
|
188
|
+
|
|
189
|
+
# **seoOptimiseCollections**
|
|
190
|
+
> SeoOptimisePages202Response seoOptimiseCollections()
|
|
191
|
+
|
|
192
|
+
AI SEO optimises collections by a set of given IDs.
|
|
193
|
+
|
|
194
|
+
### Example
|
|
195
|
+
|
|
196
|
+
```typescript
|
|
197
|
+
import {
|
|
198
|
+
CollectionsApi,
|
|
199
|
+
Configuration,
|
|
200
|
+
SeoOptimiseCollectionsRequest
|
|
201
|
+
} from '@teemill/website';
|
|
202
|
+
|
|
203
|
+
const configuration = new Configuration();
|
|
204
|
+
const apiInstance = new CollectionsApi(configuration);
|
|
205
|
+
|
|
206
|
+
let project: string; //What project it is (default to undefined)
|
|
207
|
+
let seoOptimiseCollectionsRequest: SeoOptimiseCollectionsRequest; //A set of collection IDs to AI SEO optimise. (optional)
|
|
208
|
+
|
|
209
|
+
const { status, data } = await apiInstance.seoOptimiseCollections(
|
|
210
|
+
project,
|
|
211
|
+
seoOptimiseCollectionsRequest
|
|
212
|
+
);
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
### Parameters
|
|
216
|
+
|
|
217
|
+
|Name | Type | Description | Notes|
|
|
218
|
+
|------------- | ------------- | ------------- | -------------|
|
|
219
|
+
| **seoOptimiseCollectionsRequest** | **SeoOptimiseCollectionsRequest**| A set of collection IDs to AI SEO optimise. | |
|
|
220
|
+
| **project** | [**string**] | What project it is | defaults to undefined|
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
### Return type
|
|
224
|
+
|
|
225
|
+
**SeoOptimisePages202Response**
|
|
226
|
+
|
|
227
|
+
### Authorization
|
|
228
|
+
|
|
229
|
+
[session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
|
|
230
|
+
|
|
231
|
+
### HTTP request headers
|
|
232
|
+
|
|
233
|
+
- **Content-Type**: application/json
|
|
234
|
+
- **Accept**: application/json
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
### HTTP response details
|
|
238
|
+
| Status code | Description | Response headers |
|
|
239
|
+
|-------------|-------------|------------------|
|
|
240
|
+
|**202** | Collections queued for optimisation. | - |
|
|
241
|
+
|**400** | Failed validation | - |
|
|
242
|
+
|**401** | Not authorised to access this resource | - |
|
|
243
|
+
|**403** | Refuse to authorize | - |
|
|
244
|
+
|**404** | Resource not found | - |
|
|
245
|
+
|**500** | Unknown server error | - |
|
|
246
|
+
|
|
247
|
+
[[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)
|
|
248
|
+
|
|
249
|
+
# **updateCollection**
|
|
250
|
+
> Collection updateCollection()
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
### Example
|
|
254
|
+
|
|
255
|
+
```typescript
|
|
256
|
+
import {
|
|
257
|
+
CollectionsApi,
|
|
258
|
+
Configuration,
|
|
259
|
+
UpdateCollectionRequest
|
|
260
|
+
} from '@teemill/website';
|
|
261
|
+
|
|
262
|
+
const configuration = new Configuration();
|
|
263
|
+
const apiInstance = new CollectionsApi(configuration);
|
|
264
|
+
|
|
265
|
+
let project: string; //What project it is (default to undefined)
|
|
266
|
+
let collectionId: string; //Collection\'s unique identifier (default to undefined)
|
|
267
|
+
let updateCollectionRequest: UpdateCollectionRequest; // (optional)
|
|
268
|
+
|
|
269
|
+
const { status, data } = await apiInstance.updateCollection(
|
|
270
|
+
project,
|
|
271
|
+
collectionId,
|
|
272
|
+
updateCollectionRequest
|
|
273
|
+
);
|
|
274
|
+
```
|
|
275
|
+
|
|
276
|
+
### Parameters
|
|
277
|
+
|
|
278
|
+
|Name | Type | Description | Notes|
|
|
279
|
+
|------------- | ------------- | ------------- | -------------|
|
|
280
|
+
| **updateCollectionRequest** | **UpdateCollectionRequest**| | |
|
|
281
|
+
| **project** | [**string**] | What project it is | defaults to undefined|
|
|
282
|
+
| **collectionId** | [**string**] | Collection\'s unique identifier | defaults to undefined|
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
### Return type
|
|
286
|
+
|
|
287
|
+
**Collection**
|
|
288
|
+
|
|
289
|
+
### Authorization
|
|
290
|
+
|
|
291
|
+
[session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
|
|
292
|
+
|
|
293
|
+
### HTTP request headers
|
|
294
|
+
|
|
295
|
+
- **Content-Type**: application/json
|
|
296
|
+
- **Accept**: application/json
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
### HTTP response details
|
|
300
|
+
| Status code | Description | Response headers |
|
|
301
|
+
|-------------|-------------|------------------|
|
|
302
|
+
|**200** | Successfully retrieved a website collection. | - |
|
|
303
|
+
|**400** | Failed validation | - |
|
|
304
|
+
|**401** | Not authorised to access this resource | - |
|
|
305
|
+
|**403** | Refuse to authorize | - |
|
|
306
|
+
|**404** | Resource not found | - |
|
|
307
|
+
|**500** | Unknown server error | - |
|
|
308
|
+
|
|
309
|
+
[[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)
|
|
310
|
+
|
|
311
|
+
# **updateCollections**
|
|
312
|
+
> CollectionsResponse updateCollections()
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
### Example
|
|
316
|
+
|
|
317
|
+
```typescript
|
|
318
|
+
import {
|
|
319
|
+
CollectionsApi,
|
|
320
|
+
Configuration,
|
|
321
|
+
UpdateCollectionsRequest
|
|
322
|
+
} from '@teemill/website';
|
|
323
|
+
|
|
324
|
+
const configuration = new Configuration();
|
|
325
|
+
const apiInstance = new CollectionsApi(configuration);
|
|
326
|
+
|
|
327
|
+
let project: string; //What project it is (default to undefined)
|
|
328
|
+
let pageToken: number; //Page reference token (optional) (default to 1)
|
|
329
|
+
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)
|
|
330
|
+
let search: string; //Search term to filter results (optional) (default to undefined)
|
|
331
|
+
let updateCollectionsRequest: UpdateCollectionsRequest; //Update collections in bulk. (optional)
|
|
332
|
+
|
|
333
|
+
const { status, data } = await apiInstance.updateCollections(
|
|
334
|
+
project,
|
|
335
|
+
pageToken,
|
|
336
|
+
pageSize,
|
|
337
|
+
search,
|
|
338
|
+
updateCollectionsRequest
|
|
339
|
+
);
|
|
340
|
+
```
|
|
341
|
+
|
|
342
|
+
### Parameters
|
|
343
|
+
|
|
344
|
+
|Name | Type | Description | Notes|
|
|
345
|
+
|------------- | ------------- | ------------- | -------------|
|
|
346
|
+
| **updateCollectionsRequest** | **UpdateCollectionsRequest**| Update collections in bulk. | |
|
|
347
|
+
| **project** | [**string**] | What project it is | defaults to undefined|
|
|
348
|
+
| **pageToken** | [**number**] | Page reference token | (optional) defaults to 1|
|
|
349
|
+
| **pageSize** | [**number**] | Max page size. This is the maximum page size that will be returned, but it might be smaller. | (optional) defaults to 100|
|
|
350
|
+
| **search** | [**string**] | Search term to filter results | (optional) defaults to undefined|
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
### Return type
|
|
354
|
+
|
|
355
|
+
**CollectionsResponse**
|
|
356
|
+
|
|
357
|
+
### Authorization
|
|
358
|
+
|
|
359
|
+
[session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
|
|
360
|
+
|
|
361
|
+
### HTTP request headers
|
|
362
|
+
|
|
363
|
+
- **Content-Type**: application/json
|
|
364
|
+
- **Accept**: application/json
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
### HTTP response details
|
|
368
|
+
| Status code | Description | Response headers |
|
|
369
|
+
|-------------|-------------|------------------|
|
|
370
|
+
|**200** | Successfully retrieved all website collections. | - |
|
|
371
|
+
|**400** | Failed validation | - |
|
|
372
|
+
|**401** | Not authorised to access this resource | - |
|
|
373
|
+
|**403** | Refuse to authorize | - |
|
|
374
|
+
|**404** | Resource not found | - |
|
|
375
|
+
|**500** | Unknown server error | - |
|
|
376
|
+
|
|
377
|
+
[[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)
|
|
378
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# CollectionsResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**collections** | [**Array<Collection>**](Collection.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 { CollectionsResponse } from '@teemill/website';
|
|
15
|
+
|
|
16
|
+
const instance: CollectionsResponse = {
|
|
17
|
+
collections,
|
|
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,22 @@
|
|
|
1
|
+
# CreateSearchRedirectRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**searchTerm** | **string** | | [default to undefined]
|
|
9
|
+
**destinationUrl** | **string** | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { CreateSearchRedirectRequest } from '@teemill/website';
|
|
15
|
+
|
|
16
|
+
const instance: CreateSearchRedirectRequest = {
|
|
17
|
+
searchTerm,
|
|
18
|
+
destinationUrl,
|
|
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,128 @@
|
|
|
1
|
+
# CrossSellApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.localhost:8080*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**attachCrossSellProducts**](#attachcrosssellproducts) | **PUT** /v1/website/products/{productId}/cross-sell/products | Attach cross-sell products|
|
|
8
|
+
|[**getCrossSellProducts**](#getcrosssellproducts) | **GET** /v1/website/products/{productId}/cross-sell/products | Get cross-sell products linked to a product|
|
|
9
|
+
|
|
10
|
+
# **attachCrossSellProducts**
|
|
11
|
+
> Array<Product> attachCrossSellProducts()
|
|
12
|
+
|
|
13
|
+
Attaches a list of products to the given product as cross-sell products.
|
|
14
|
+
|
|
15
|
+
### Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import {
|
|
19
|
+
CrossSellApi,
|
|
20
|
+
Configuration,
|
|
21
|
+
AttachCrossSellProductsRequest
|
|
22
|
+
} from '@teemill/website';
|
|
23
|
+
|
|
24
|
+
const configuration = new Configuration();
|
|
25
|
+
const apiInstance = new CrossSellApi(configuration);
|
|
26
|
+
|
|
27
|
+
let project: string; //What project it is (default to undefined)
|
|
28
|
+
let productId: string; //Product\'s unique identifier (default to undefined)
|
|
29
|
+
let attachCrossSellProductsRequest: AttachCrossSellProductsRequest; // (optional)
|
|
30
|
+
|
|
31
|
+
const { status, data } = await apiInstance.attachCrossSellProducts(
|
|
32
|
+
project,
|
|
33
|
+
productId,
|
|
34
|
+
attachCrossSellProductsRequest
|
|
35
|
+
);
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### Parameters
|
|
39
|
+
|
|
40
|
+
|Name | Type | Description | Notes|
|
|
41
|
+
|------------- | ------------- | ------------- | -------------|
|
|
42
|
+
| **attachCrossSellProductsRequest** | **AttachCrossSellProductsRequest**| | |
|
|
43
|
+
| **project** | [**string**] | What project it is | defaults to undefined|
|
|
44
|
+
| **productId** | [**string**] | Product\'s unique identifier | defaults to undefined|
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
### Return type
|
|
48
|
+
|
|
49
|
+
**Array<Product>**
|
|
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**: application/json
|
|
58
|
+
- **Accept**: application/json
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
### HTTP response details
|
|
62
|
+
| Status code | Description | Response headers |
|
|
63
|
+
|-------------|-------------|------------------|
|
|
64
|
+
|**200** | A list of the products that are attached as cross-sell products. | - |
|
|
65
|
+
|**401** | Not authorised to access this resource | - |
|
|
66
|
+
|**403** | Refuse to authorize | - |
|
|
67
|
+
|**422** | Failed validation | - |
|
|
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
|
+
# **getCrossSellProducts**
|
|
73
|
+
> Array<Product> getCrossSellProducts()
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
### Example
|
|
77
|
+
|
|
78
|
+
```typescript
|
|
79
|
+
import {
|
|
80
|
+
CrossSellApi,
|
|
81
|
+
Configuration
|
|
82
|
+
} from '@teemill/website';
|
|
83
|
+
|
|
84
|
+
const configuration = new Configuration();
|
|
85
|
+
const apiInstance = new CrossSellApi(configuration);
|
|
86
|
+
|
|
87
|
+
let project: string; //What project it is (default to undefined)
|
|
88
|
+
let productId: string; //Product\'s unique identifier (default to undefined)
|
|
89
|
+
|
|
90
|
+
const { status, data } = await apiInstance.getCrossSellProducts(
|
|
91
|
+
project,
|
|
92
|
+
productId
|
|
93
|
+
);
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### Parameters
|
|
97
|
+
|
|
98
|
+
|Name | Type | Description | Notes|
|
|
99
|
+
|------------- | ------------- | ------------- | -------------|
|
|
100
|
+
| **project** | [**string**] | What project it is | defaults to undefined|
|
|
101
|
+
| **productId** | [**string**] | Product\'s unique identifier | defaults to undefined|
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
### Return type
|
|
105
|
+
|
|
106
|
+
**Array<Product>**
|
|
107
|
+
|
|
108
|
+
### Authorization
|
|
109
|
+
|
|
110
|
+
[session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
|
|
111
|
+
|
|
112
|
+
### HTTP request headers
|
|
113
|
+
|
|
114
|
+
- **Content-Type**: Not defined
|
|
115
|
+
- **Accept**: application/json
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
### HTTP response details
|
|
119
|
+
| Status code | Description | Response headers |
|
|
120
|
+
|-------------|-------------|------------------|
|
|
121
|
+
|**200** | A list of the products that are attached as cross-sell products. | - |
|
|
122
|
+
|**401** | Not authorised to access this resource | - |
|
|
123
|
+
|**403** | Refuse to authorize | - |
|
|
124
|
+
|**422** | Failed validation | - |
|
|
125
|
+
|**500** | Unknown server error | - |
|
|
126
|
+
|
|
127
|
+
[[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)
|
|
128
|
+
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
# DefaultApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.localhost:8080*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**getBrand**](#getbrand) | **GET** /v1/website/brand | Get brand|
|
|
8
|
+
|[**updateBrand**](#updatebrand) | **PATCH** /v1/website/brand | Update brand|
|
|
9
|
+
|
|
10
|
+
# **getBrand**
|
|
11
|
+
> Brand getBrand()
|
|
12
|
+
|
|
13
|
+
Get the brand for the project
|
|
14
|
+
|
|
15
|
+
### Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import {
|
|
19
|
+
DefaultApi,
|
|
20
|
+
Configuration
|
|
21
|
+
} from '@teemill/website';
|
|
22
|
+
|
|
23
|
+
const configuration = new Configuration();
|
|
24
|
+
const apiInstance = new DefaultApi(configuration);
|
|
25
|
+
|
|
26
|
+
let project: string; //What project it is (default to undefined)
|
|
27
|
+
|
|
28
|
+
const { status, data } = await apiInstance.getBrand(
|
|
29
|
+
project
|
|
30
|
+
);
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Parameters
|
|
34
|
+
|
|
35
|
+
|Name | Type | Description | Notes|
|
|
36
|
+
|------------- | ------------- | ------------- | -------------|
|
|
37
|
+
| **project** | [**string**] | What project it is | defaults to undefined|
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### Return type
|
|
41
|
+
|
|
42
|
+
**Brand**
|
|
43
|
+
|
|
44
|
+
### Authorization
|
|
45
|
+
|
|
46
|
+
[session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
|
|
47
|
+
|
|
48
|
+
### HTTP request headers
|
|
49
|
+
|
|
50
|
+
- **Content-Type**: Not defined
|
|
51
|
+
- **Accept**: application/json
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
### HTTP response details
|
|
55
|
+
| Status code | Description | Response headers |
|
|
56
|
+
|-------------|-------------|------------------|
|
|
57
|
+
|**200** | Brand | - |
|
|
58
|
+
|**401** | Not authorised to access this resource | - |
|
|
59
|
+
|**403** | Refuse to authorize | - |
|
|
60
|
+
|**404** | Resource not found | - |
|
|
61
|
+
|**500** | Unknown server error | - |
|
|
62
|
+
|
|
63
|
+
[[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)
|
|
64
|
+
|
|
65
|
+
# **updateBrand**
|
|
66
|
+
> Brand updateBrand()
|
|
67
|
+
|
|
68
|
+
Update the brand for the project
|
|
69
|
+
|
|
70
|
+
### Example
|
|
71
|
+
|
|
72
|
+
```typescript
|
|
73
|
+
import {
|
|
74
|
+
DefaultApi,
|
|
75
|
+
Configuration,
|
|
76
|
+
UpdateBrandRequest
|
|
77
|
+
} from '@teemill/website';
|
|
78
|
+
|
|
79
|
+
const configuration = new Configuration();
|
|
80
|
+
const apiInstance = new DefaultApi(configuration);
|
|
81
|
+
|
|
82
|
+
let project: string; //What project it is (default to undefined)
|
|
83
|
+
let updateBrandRequest: UpdateBrandRequest; //Update brand request (optional)
|
|
84
|
+
|
|
85
|
+
const { status, data } = await apiInstance.updateBrand(
|
|
86
|
+
project,
|
|
87
|
+
updateBrandRequest
|
|
88
|
+
);
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### Parameters
|
|
92
|
+
|
|
93
|
+
|Name | Type | Description | Notes|
|
|
94
|
+
|------------- | ------------- | ------------- | -------------|
|
|
95
|
+
| **updateBrandRequest** | **UpdateBrandRequest**| Update brand request | |
|
|
96
|
+
| **project** | [**string**] | What project it is | defaults to undefined|
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
### Return type
|
|
100
|
+
|
|
101
|
+
**Brand**
|
|
102
|
+
|
|
103
|
+
### Authorization
|
|
104
|
+
|
|
105
|
+
[session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
|
|
106
|
+
|
|
107
|
+
### HTTP request headers
|
|
108
|
+
|
|
109
|
+
- **Content-Type**: application/json
|
|
110
|
+
- **Accept**: application/json
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
### HTTP response details
|
|
114
|
+
| Status code | Description | Response headers |
|
|
115
|
+
|-------------|-------------|------------------|
|
|
116
|
+
|**200** | Brand | - |
|
|
117
|
+
|**401** | Not authorised to access this resource | - |
|
|
118
|
+
|**403** | Refuse to authorize | - |
|
|
119
|
+
|**404** | Resource not found | - |
|
|
120
|
+
|**500** | Unknown server error | - |
|
|
121
|
+
|
|
122
|
+
[[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)
|
|
123
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# ExportPages202Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**message** | **string** | A message describing the export status | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { ExportPages202Response } from '@teemill/website';
|
|
14
|
+
|
|
15
|
+
const instance: ExportPages202Response = {
|
|
16
|
+
message,
|
|
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)
|