@teemill/website 0.20.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.
Files changed (116) hide show
  1. package/README.md +151 -2
  2. package/api.ts +196 -6
  3. package/base.ts +1 -1
  4. package/common.ts +1 -1
  5. package/configuration.ts +1 -1
  6. package/dist/api.d.ts +118 -3
  7. package/dist/api.js +107 -6
  8. package/dist/base.d.ts +1 -1
  9. package/dist/base.js +1 -1
  10. package/dist/common.d.ts +1 -1
  11. package/dist/common.js +1 -1
  12. package/dist/configuration.d.ts +1 -1
  13. package/dist/configuration.js +1 -1
  14. package/dist/esm/api.d.ts +118 -3
  15. package/dist/esm/api.js +107 -6
  16. package/dist/esm/base.d.ts +1 -1
  17. package/dist/esm/base.js +1 -1
  18. package/dist/esm/common.d.ts +1 -1
  19. package/dist/esm/common.js +1 -1
  20. package/dist/esm/configuration.d.ts +1 -1
  21. package/dist/esm/configuration.js +1 -1
  22. package/dist/esm/index.d.ts +1 -1
  23. package/dist/esm/index.js +1 -1
  24. package/dist/index.d.ts +1 -1
  25. package/dist/index.js +1 -1
  26. package/docs/ApiError.md +22 -0
  27. package/docs/Application.md +28 -0
  28. package/docs/ApplicationMockup.md +22 -0
  29. package/docs/AttachCrossSellProductsRequest.md +20 -0
  30. package/docs/Attribute.md +26 -0
  31. package/docs/AttributeThumbnail.md +23 -0
  32. package/docs/AuthorizeStripe200Response.md +20 -0
  33. package/docs/Blog.md +34 -0
  34. package/docs/BlogsApi.md +317 -0
  35. package/docs/BlogsResponse.md +22 -0
  36. package/docs/Brand.md +20 -0
  37. package/docs/Collection.md +36 -0
  38. package/docs/CollectionsApi.md +378 -0
  39. package/docs/CollectionsResponse.md +22 -0
  40. package/docs/CreateSearchRedirectRequest.md +22 -0
  41. package/docs/CrossSellApi.md +128 -0
  42. package/docs/DefaultApi.md +123 -0
  43. package/docs/ExportPages202Response.md +20 -0
  44. package/docs/Footer.md +20 -0
  45. package/docs/FooterApi.md +123 -0
  46. package/docs/FooterItem.md +26 -0
  47. package/docs/Image.md +35 -0
  48. package/docs/ListRoutesResponse.md +22 -0
  49. package/docs/Menu.md +20 -0
  50. package/docs/MenuApi.md +122 -0
  51. package/docs/MenuItem.md +32 -0
  52. package/docs/MetaField.md +23 -0
  53. package/docs/MetaImage.md +23 -0
  54. package/docs/ModerateReviewRequest.md +20 -0
  55. package/docs/OptimisationHistoryItem.md +22 -0
  56. package/docs/Page.md +36 -0
  57. package/docs/PagesApi.md +378 -0
  58. package/docs/PagesResponse.md +22 -0
  59. package/docs/PaymentAccount.md +24 -0
  60. package/docs/PaymentApi.md +178 -0
  61. package/docs/Price.md +23 -0
  62. package/docs/Product.md +66 -0
  63. package/docs/ProductAdditionalFilesInner.md +22 -0
  64. package/docs/ProductApplicationSetsInner.md +24 -0
  65. package/docs/ProductWarehouseProduct.md +22 -0
  66. package/docs/Review.md +38 -0
  67. package/docs/ReviewAuthor.md +22 -0
  68. package/docs/ReviewImagesInner.md +22 -0
  69. package/docs/ReviewProduct.md +23 -0
  70. package/docs/ReviewReply.md +26 -0
  71. package/docs/ReviewReplyAuthor.md +20 -0
  72. package/docs/ReviewsApi.md +263 -0
  73. package/docs/ReviewsResponse.md +22 -0
  74. package/docs/Route.md +28 -0
  75. package/docs/RoutesApi.md +70 -0
  76. package/docs/SearchApi.md +319 -0
  77. package/docs/SearchRedirect.md +26 -0
  78. package/docs/SearchRedirectsResponse.md +22 -0
  79. package/docs/SeoMetadata.md +23 -0
  80. package/docs/SeoOptimiseCollectionsRequest.md +22 -0
  81. package/docs/SeoOptimisePages202Response.md +20 -0
  82. package/docs/SeoOptimisePagesRequest.md +22 -0
  83. package/docs/Stock.md +20 -0
  84. package/docs/SubmenuInner.md +32 -0
  85. package/docs/SubmenuInnerImage.md +36 -0
  86. package/docs/SubmenuInnerImageButton.md +30 -0
  87. package/docs/SubmenuInnerImageText.md +24 -0
  88. package/docs/SubmenuItem.md +30 -0
  89. package/docs/TargetSearchPhraseData.md +22 -0
  90. package/docs/UpdateBlogRequest.md +30 -0
  91. package/docs/UpdateBlogsRequest.md +20 -0
  92. package/docs/UpdateBlogsRequestBlogsInner.md +32 -0
  93. package/docs/UpdateBlogsRequestBlogsInnerSeoMetadata.md +22 -0
  94. package/docs/UpdateBrandRequest.md +20 -0
  95. package/docs/UpdateCollectionRequest.md +32 -0
  96. package/docs/UpdateCollectionsRequest.md +20 -0
  97. package/docs/UpdateCollectionsRequestCollectionsInner.md +34 -0
  98. package/docs/UpdateCollectionsRequestCollectionsInnerSeoMetadata.md +22 -0
  99. package/docs/UpdateFooterRequest.md +20 -0
  100. package/docs/UpdateFooterRequestItemsInner.md +24 -0
  101. package/docs/UpdateMenuRequest.md +20 -0
  102. package/docs/UpdateMenuRequestItem.md +32 -0
  103. package/docs/UpdateMenuRequestItemSubmenuInner.md +32 -0
  104. package/docs/UpdateMenuRequestItemSubmenuInnerImage.md +36 -0
  105. package/docs/UpdateMenuRequestItemSubmenuInnerImageButton.md +30 -0
  106. package/docs/UpdateMenuRequestItemSubmenuInnerImageText.md +24 -0
  107. package/docs/UpdateMenuRequestSubmenuItem.md +30 -0
  108. package/docs/UpdatePageRequest.md +28 -0
  109. package/docs/UpdatePagesRequest.md +20 -0
  110. package/docs/UpdatePagesRequestPagesInner.md +30 -0
  111. package/docs/UpdateSearchRedirectRequest.md +22 -0
  112. package/docs/Variant.md +52 -0
  113. package/docs/VariantProduct.md +22 -0
  114. package/docs/Video.md +31 -0
  115. package/index.ts +1 -1
  116. package/package.json +1 -1
@@ -0,0 +1,378 @@
1
+ # PagesApi
2
+
3
+ All URIs are relative to *https://api.localhost:8080*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**exportPages**](#exportpages) | **GET** /v1/website/pages/export | Export pages|
8
+ |[**getPage**](#getpage) | **GET** /v1/website/pages/{pageId} | Get website page|
9
+ |[**listPages**](#listpages) | **GET** /v1/website/pages | List website pages|
10
+ |[**seoOptimisePages**](#seooptimisepages) | **POST** /v1/website/pages/ai-seo-optimise | AI SEO optimise pages|
11
+ |[**updatePage**](#updatepage) | **PATCH** /v1/website/pages/{pageId} | Update website page|
12
+ |[**updatePages**](#updatepages) | **PATCH** /v1/website/pages | Update website pages|
13
+
14
+ # **exportPages**
15
+ > File exportPages()
16
+
17
+ Export pages as a CSV file.
18
+
19
+ ### Example
20
+
21
+ ```typescript
22
+ import {
23
+ PagesApi,
24
+ Configuration
25
+ } from '@teemill/website';
26
+
27
+ const configuration = new Configuration();
28
+ const apiInstance = new PagesApi(configuration);
29
+
30
+ let project: string; //What project it is (default to undefined)
31
+
32
+ const { status, data } = await apiInstance.exportPages(
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
+ # **getPage**
71
+ > Page getPage()
72
+
73
+
74
+ ### Example
75
+
76
+ ```typescript
77
+ import {
78
+ PagesApi,
79
+ Configuration
80
+ } from '@teemill/website';
81
+
82
+ const configuration = new Configuration();
83
+ const apiInstance = new PagesApi(configuration);
84
+
85
+ let project: string; //What project it is (default to undefined)
86
+ let pageId: string; //Page\'s unique identifier (default to undefined)
87
+
88
+ const { status, data } = await apiInstance.getPage(
89
+ project,
90
+ pageId
91
+ );
92
+ ```
93
+
94
+ ### Parameters
95
+
96
+ |Name | Type | Description | Notes|
97
+ |------------- | ------------- | ------------- | -------------|
98
+ | **project** | [**string**] | What project it is | defaults to undefined|
99
+ | **pageId** | [**string**] | Page\'s unique identifier | defaults to undefined|
100
+
101
+
102
+ ### Return type
103
+
104
+ **Page**
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 page. | - |
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
+ # **listPages**
128
+ > PagesResponse listPages()
129
+
130
+
131
+ ### Example
132
+
133
+ ```typescript
134
+ import {
135
+ PagesApi,
136
+ Configuration
137
+ } from '@teemill/website';
138
+
139
+ const configuration = new Configuration();
140
+ const apiInstance = new PagesApi(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.listPages(
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
+ **PagesResponse**
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 pages. | - |
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
+ # **seoOptimisePages**
190
+ > SeoOptimisePages202Response seoOptimisePages()
191
+
192
+ AI SEO optimises pages by a set of given IDs.
193
+
194
+ ### Example
195
+
196
+ ```typescript
197
+ import {
198
+ PagesApi,
199
+ Configuration,
200
+ SeoOptimisePagesRequest
201
+ } from '@teemill/website';
202
+
203
+ const configuration = new Configuration();
204
+ const apiInstance = new PagesApi(configuration);
205
+
206
+ let project: string; //What project it is (default to undefined)
207
+ let seoOptimisePagesRequest: SeoOptimisePagesRequest; //A set of page IDs to AI SEO optimise. (optional)
208
+
209
+ const { status, data } = await apiInstance.seoOptimisePages(
210
+ project,
211
+ seoOptimisePagesRequest
212
+ );
213
+ ```
214
+
215
+ ### Parameters
216
+
217
+ |Name | Type | Description | Notes|
218
+ |------------- | ------------- | ------------- | -------------|
219
+ | **seoOptimisePagesRequest** | **SeoOptimisePagesRequest**| A set of page 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** | Pages 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
+ # **updatePage**
250
+ > Page updatePage()
251
+
252
+
253
+ ### Example
254
+
255
+ ```typescript
256
+ import {
257
+ PagesApi,
258
+ Configuration,
259
+ UpdatePageRequest
260
+ } from '@teemill/website';
261
+
262
+ const configuration = new Configuration();
263
+ const apiInstance = new PagesApi(configuration);
264
+
265
+ let project: string; //What project it is (default to undefined)
266
+ let pageId: string; //Page\'s unique identifier (default to undefined)
267
+ let updatePageRequest: UpdatePageRequest; // (optional)
268
+
269
+ const { status, data } = await apiInstance.updatePage(
270
+ project,
271
+ pageId,
272
+ updatePageRequest
273
+ );
274
+ ```
275
+
276
+ ### Parameters
277
+
278
+ |Name | Type | Description | Notes|
279
+ |------------- | ------------- | ------------- | -------------|
280
+ | **updatePageRequest** | **UpdatePageRequest**| | |
281
+ | **project** | [**string**] | What project it is | defaults to undefined|
282
+ | **pageId** | [**string**] | Page\'s unique identifier | defaults to undefined|
283
+
284
+
285
+ ### Return type
286
+
287
+ **Page**
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 page. | - |
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
+ # **updatePages**
312
+ > PagesResponse updatePages()
313
+
314
+
315
+ ### Example
316
+
317
+ ```typescript
318
+ import {
319
+ PagesApi,
320
+ Configuration,
321
+ UpdatePagesRequest
322
+ } from '@teemill/website';
323
+
324
+ const configuration = new Configuration();
325
+ const apiInstance = new PagesApi(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 updatePagesRequest: UpdatePagesRequest; //Update pages in bulk. (optional)
332
+
333
+ const { status, data } = await apiInstance.updatePages(
334
+ project,
335
+ pageToken,
336
+ pageSize,
337
+ search,
338
+ updatePagesRequest
339
+ );
340
+ ```
341
+
342
+ ### Parameters
343
+
344
+ |Name | Type | Description | Notes|
345
+ |------------- | ------------- | ------------- | -------------|
346
+ | **updatePagesRequest** | **UpdatePagesRequest**| Update pages 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
+ **PagesResponse**
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 pages. | - |
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
+ # PagesResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **pages** | [**Array<Page>**](Page.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 { PagesResponse } from '@teemill/website';
15
+
16
+ const instance: PagesResponse = {
17
+ pages,
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,24 @@
1
+ # PaymentAccount
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **name** | **string** | The name of the payment account | [default to undefined]
9
+ **method** | **string** | The payment method | [default to undefined]
10
+ **config** | **{ [key: string]: string; }** | The configuration for the payment account | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { PaymentAccount } from '@teemill/website';
16
+
17
+ const instance: PaymentAccount = {
18
+ name,
19
+ method,
20
+ config,
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,178 @@
1
+ # PaymentApi
2
+
3
+ All URIs are relative to *https://api.localhost:8080*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**authorizeStripe**](#authorizestripe) | **GET** /v1/website/payment/stripe/authorize | Authorize Stripe|
8
+ |[**deauthorizeStripe**](#deauthorizestripe) | **DELETE** /v1/website/payment/stripe/deauthorize | Deauthorize Stripe|
9
+ |[**getStripePaymentAccount**](#getstripepaymentaccount) | **GET** /v1/website/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/website';
23
+
24
+ const configuration = new Configuration();
25
+ const apiInstance = new PaymentApi(configuration);
26
+
27
+ let project: string; //What project it is (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**] | What project it is | 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/website';
79
+
80
+ const configuration = new Configuration();
81
+ const apiInstance = new PaymentApi(configuration);
82
+
83
+ let project: string; //What project it is (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**] | What project it is | 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/website';
135
+
136
+ const configuration = new Configuration();
137
+ const apiInstance = new PaymentApi(configuration);
138
+
139
+ let project: string; //What project it is (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**] | What project it is | 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/Price.md ADDED
@@ -0,0 +1,23 @@
1
+ # Price
2
+
3
+ Standard price definition that defines the amount, tax rate and currency.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **amount** | **number** | 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/website';
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)
@@ -0,0 +1,66 @@
1
+ # Product
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | Unique object identifier | [optional] [default to undefined]
9
+ **ref** | **string** | A reference to the resource location | [optional] [default to undefined]
10
+ **title** | **string** | | [default to undefined]
11
+ **description** | **string** | | [default to undefined]
12
+ **slug** | **string** | | [optional] [readonly] [default to undefined]
13
+ **enabled** | **boolean** | | [optional] [default to undefined]
14
+ **seoMetadata** | [**SeoMetadata**](SeoMetadata.md) | | [optional] [default to undefined]
15
+ **tags** | **Array<string>** | | [optional] [default to undefined]
16
+ **internalTags** | **Array<string>** | | [optional] [default to undefined]
17
+ **createdAt** | **string** | | [optional] [default to undefined]
18
+ **updatedAt** | **string** | | [optional] [default to undefined]
19
+ **publishedAt** | **string** | | [optional] [default to undefined]
20
+ **images** | [**Array<Image>**](Image.md) | Images | [optional] [default to undefined]
21
+ **videos** | [**Array<Video>**](Video.md) | Videos | [optional] [default to undefined]
22
+ **variants** | [**Array<Variant>**](Variant.md) | Variants | [optional] [default to undefined]
23
+ **additionalFiles** | [**Array<ProductAdditionalFilesInner>**](ProductAdditionalFilesInner.md) | Additional files attached to the product. | [optional] [default to undefined]
24
+ **applicationSets** | [**Array<ProductApplicationSetsInner>**](ProductApplicationSetsInner.md) | List of application sets associated with this product | [optional] [default to undefined]
25
+ **reviewScore** | **number** | The average review rating. This field is only present if included in the fields query parameter | [optional] [default to undefined]
26
+ **reviewCount** | **number** | A count of reviews. This field is only present if included in the fields query parameter | [optional] [default to undefined]
27
+ **sku** | **string** | | [optional] [default to undefined]
28
+ **sales** | **number** | A count of sales. This field is only present if included in the fields query parameter | [optional] [default to undefined]
29
+ **includeInDataFeeds** | **boolean** | | [optional] [default to undefined]
30
+ **warehouseProduct** | [**ProductWarehouseProduct**](ProductWarehouseProduct.md) | | [optional] [default to undefined]
31
+ **metafields** | [**Array<MetaField>**](MetaField.md) | | [optional] [default to undefined]
32
+
33
+ ## Example
34
+
35
+ ```typescript
36
+ import { Product } from '@teemill/website';
37
+
38
+ const instance: Product = {
39
+ id,
40
+ ref,
41
+ title,
42
+ description,
43
+ slug,
44
+ enabled,
45
+ seoMetadata,
46
+ tags,
47
+ internalTags,
48
+ createdAt,
49
+ updatedAt,
50
+ publishedAt,
51
+ images,
52
+ videos,
53
+ variants,
54
+ additionalFiles,
55
+ applicationSets,
56
+ reviewScore,
57
+ reviewCount,
58
+ sku,
59
+ sales,
60
+ includeInDataFeeds,
61
+ warehouseProduct,
62
+ metafields,
63
+ };
64
+ ```
65
+
66
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)