@teemill/website 0.22.2 → 0.24.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 (55) hide show
  1. package/README.md +26 -2
  2. package/api.ts +901 -53
  3. package/base.ts +1 -1
  4. package/common.ts +1 -1
  5. package/configuration.ts +1 -1
  6. package/dist/api.d.ts +747 -19
  7. package/dist/api.js +180 -7
  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 +747 -19
  15. package/dist/esm/api.js +178 -5
  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/Banner.md +23 -0
  27. package/docs/BannerImage.md +22 -0
  28. package/docs/Collection.md +10 -6
  29. package/docs/CollectionProduct.md +24 -0
  30. package/docs/CollectionProductImage.md +22 -0
  31. package/docs/CollectionsApi.md +128 -0
  32. package/docs/CreateCollectionRequest.md +38 -0
  33. package/docs/CreateCollectionRequestBanner.md +22 -0
  34. package/docs/CreateCollectionRequestBannerImage.md +22 -0
  35. package/docs/CreateCollectionRequestBannerOverlay.md +26 -0
  36. package/docs/CreateCollectionRequestProductsInner.md +24 -0
  37. package/docs/CreateCollectionRequestSeoMetadata.md +24 -0
  38. package/docs/MetaImage.md +1 -1
  39. package/docs/NavigationTag.md +24 -0
  40. package/docs/NullableMetaImage.md +23 -0
  41. package/docs/Overlay.md +27 -0
  42. package/docs/SalePrice.md +23 -0
  43. package/docs/UpdateCollectionRequest.md +7 -1
  44. package/docs/UpdateCollectionRequestBanner.md +22 -0
  45. package/docs/UpdateCollectionRequestBannerImage.md +22 -0
  46. package/docs/UpdateCollectionRequestProductsInner.md +24 -0
  47. package/docs/UpdateCollectionRequestSeoMetadata.md +24 -0
  48. package/docs/UpdateCollectionsRequestCollectionsInner.md +6 -0
  49. package/docs/UpdateCollectionsRequestCollectionsInnerBanner.md +22 -0
  50. package/docs/UpdateCollectionsRequestCollectionsInnerBannerImage.md +22 -0
  51. package/docs/UpdateCollectionsRequestCollectionsInnerBannerOverlay.md +26 -0
  52. package/docs/UpdateCollectionsRequestCollectionsInnerProductsInner.md +24 -0
  53. package/docs/Variant.md +1 -1
  54. package/index.ts +1 -1
  55. package/package.json +1 -1
package/dist/esm/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Website API
5
5
  * Manage your PodOS Website
6
6
  *
7
- * The version of the OpenAPI document: 0.22.2
7
+ * The version of the OpenAPI document: 0.24.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -56,6 +56,9 @@ export const PaymentAccountMethodEnum = {
56
56
  export const PriceCurrencyCodeEnum = {
57
57
  Gbp: 'GBP'
58
58
  };
59
+ export const SalePriceCurrencyCodeEnum = {
60
+ Gbp: 'GBP'
61
+ };
59
62
  export const SubmenuInnerModeEnum = {
60
63
  Image: 'image',
61
64
  List: 'list'
@@ -565,6 +568,97 @@ export class BlogsApi extends BaseAPI {
565
568
  */
566
569
  export const CollectionsApiAxiosParamCreator = function (configuration) {
567
570
  return {
571
+ /**
572
+ * Create a new website collection.
573
+ * @summary Create website collection
574
+ * @param {string} project What project it is
575
+ * @param {number} [pageToken] Page reference token
576
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
577
+ * @param {string} [search] Search term to filter results
578
+ * @param {CreateCollectionRequest} [createCollectionRequest] Create a new collection
579
+ * @param {*} [options] Override http request option.
580
+ * @throws {RequiredError}
581
+ */
582
+ createCollection: (project_1, pageToken_1, pageSize_1, search_1, createCollectionRequest_1, ...args_1) => __awaiter(this, [project_1, pageToken_1, pageSize_1, search_1, createCollectionRequest_1, ...args_1], void 0, function* (project, pageToken, pageSize, search, createCollectionRequest, options = {}) {
583
+ // verify required parameter 'project' is not null or undefined
584
+ assertParamExists('createCollection', 'project', project);
585
+ const localVarPath = `/v1/website/collections`;
586
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
587
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
588
+ let baseOptions;
589
+ if (configuration) {
590
+ baseOptions = configuration.baseOptions;
591
+ }
592
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
593
+ const localVarHeaderParameter = {};
594
+ const localVarQueryParameter = {};
595
+ // authentication session-oauth required
596
+ // oauth required
597
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
598
+ // authentication api-key required
599
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
600
+ if (project !== undefined) {
601
+ localVarQueryParameter['project'] = project;
602
+ }
603
+ if (pageToken !== undefined) {
604
+ localVarQueryParameter['pageToken'] = pageToken;
605
+ }
606
+ if (pageSize !== undefined) {
607
+ localVarQueryParameter['pageSize'] = pageSize;
608
+ }
609
+ if (search !== undefined) {
610
+ localVarQueryParameter['search'] = search;
611
+ }
612
+ localVarHeaderParameter['Content-Type'] = 'application/json';
613
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
614
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
615
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
616
+ localVarRequestOptions.data = serializeDataIfNeeded(createCollectionRequest, localVarRequestOptions, configuration);
617
+ return {
618
+ url: toPathString(localVarUrlObj),
619
+ options: localVarRequestOptions,
620
+ };
621
+ }),
622
+ /**
623
+ *
624
+ * @summary Delete website collection
625
+ * @param {string} project What project it is
626
+ * @param {string} collectionId Collection\'s unique identifier
627
+ * @param {*} [options] Override http request option.
628
+ * @throws {RequiredError}
629
+ */
630
+ deleteCollection: (project_1, collectionId_1, ...args_1) => __awaiter(this, [project_1, collectionId_1, ...args_1], void 0, function* (project, collectionId, options = {}) {
631
+ // verify required parameter 'project' is not null or undefined
632
+ assertParamExists('deleteCollection', 'project', project);
633
+ // verify required parameter 'collectionId' is not null or undefined
634
+ assertParamExists('deleteCollection', 'collectionId', collectionId);
635
+ const localVarPath = `/v1/website/collections/{collectionId}`
636
+ .replace(`{${"collectionId"}}`, encodeURIComponent(String(collectionId)));
637
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
638
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
639
+ let baseOptions;
640
+ if (configuration) {
641
+ baseOptions = configuration.baseOptions;
642
+ }
643
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
644
+ const localVarHeaderParameter = {};
645
+ const localVarQueryParameter = {};
646
+ // authentication session-oauth required
647
+ // oauth required
648
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
649
+ // authentication api-key required
650
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
651
+ if (project !== undefined) {
652
+ localVarQueryParameter['project'] = project;
653
+ }
654
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
655
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
656
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
657
+ return {
658
+ url: toPathString(localVarUrlObj),
659
+ options: localVarRequestOptions,
660
+ };
661
+ }),
568
662
  /**
569
663
  * Export collections as a CSV file.
570
664
  * @summary Export collections
@@ -772,7 +866,7 @@ export const CollectionsApiAxiosParamCreator = function (configuration) {
772
866
  };
773
867
  }),
774
868
  /**
775
- *
869
+ * Update a website collection.
776
870
  * @summary Update website collections
777
871
  * @param {string} project What project it is
778
872
  * @param {number} [pageToken] Page reference token
@@ -831,6 +925,43 @@ export const CollectionsApiAxiosParamCreator = function (configuration) {
831
925
  export const CollectionsApiFp = function (configuration) {
832
926
  const localVarAxiosParamCreator = CollectionsApiAxiosParamCreator(configuration);
833
927
  return {
928
+ /**
929
+ * Create a new website collection.
930
+ * @summary Create website collection
931
+ * @param {string} project What project it is
932
+ * @param {number} [pageToken] Page reference token
933
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
934
+ * @param {string} [search] Search term to filter results
935
+ * @param {CreateCollectionRequest} [createCollectionRequest] Create a new collection
936
+ * @param {*} [options] Override http request option.
937
+ * @throws {RequiredError}
938
+ */
939
+ createCollection(project, pageToken, pageSize, search, createCollectionRequest, options) {
940
+ return __awaiter(this, void 0, void 0, function* () {
941
+ var _a, _b, _c;
942
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createCollection(project, pageToken, pageSize, search, createCollectionRequest, options);
943
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
944
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CollectionsApi.createCollection']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
945
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
946
+ });
947
+ },
948
+ /**
949
+ *
950
+ * @summary Delete website collection
951
+ * @param {string} project What project it is
952
+ * @param {string} collectionId Collection\'s unique identifier
953
+ * @param {*} [options] Override http request option.
954
+ * @throws {RequiredError}
955
+ */
956
+ deleteCollection(project, collectionId, options) {
957
+ return __awaiter(this, void 0, void 0, function* () {
958
+ var _a, _b, _c;
959
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteCollection(project, collectionId, options);
960
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
961
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CollectionsApi.deleteCollection']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
962
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
963
+ });
964
+ },
834
965
  /**
835
966
  * Export collections as a CSV file.
836
967
  * @summary Export collections
@@ -919,7 +1050,7 @@ export const CollectionsApiFp = function (configuration) {
919
1050
  });
920
1051
  },
921
1052
  /**
922
- *
1053
+ * Update a website collection.
923
1054
  * @summary Update website collections
924
1055
  * @param {string} project What project it is
925
1056
  * @param {number} [pageToken] Page reference token
@@ -947,6 +1078,26 @@ export const CollectionsApiFp = function (configuration) {
947
1078
  export const CollectionsApiFactory = function (configuration, basePath, axios) {
948
1079
  const localVarFp = CollectionsApiFp(configuration);
949
1080
  return {
1081
+ /**
1082
+ * Create a new website collection.
1083
+ * @summary Create website collection
1084
+ * @param {CollectionsApiCreateCollectionRequest} requestParameters Request parameters.
1085
+ * @param {*} [options] Override http request option.
1086
+ * @throws {RequiredError}
1087
+ */
1088
+ createCollection(requestParameters, options) {
1089
+ return localVarFp.createCollection(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.createCollectionRequest, options).then((request) => request(axios, basePath));
1090
+ },
1091
+ /**
1092
+ *
1093
+ * @summary Delete website collection
1094
+ * @param {CollectionsApiDeleteCollectionRequest} requestParameters Request parameters.
1095
+ * @param {*} [options] Override http request option.
1096
+ * @throws {RequiredError}
1097
+ */
1098
+ deleteCollection(requestParameters, options) {
1099
+ return localVarFp.deleteCollection(requestParameters.project, requestParameters.collectionId, options).then((request) => request(axios, basePath));
1100
+ },
950
1101
  /**
951
1102
  * Export collections as a CSV file.
952
1103
  * @summary Export collections
@@ -998,7 +1149,7 @@ export const CollectionsApiFactory = function (configuration, basePath, axios) {
998
1149
  return localVarFp.updateCollection(requestParameters.project, requestParameters.collectionId, requestParameters.updateCollectionRequest, options).then((request) => request(axios, basePath));
999
1150
  },
1000
1151
  /**
1001
- *
1152
+ * Update a website collection.
1002
1153
  * @summary Update website collections
1003
1154
  * @param {CollectionsApiUpdateCollectionsRequest} requestParameters Request parameters.
1004
1155
  * @param {*} [options] Override http request option.
@@ -1016,6 +1167,28 @@ export const CollectionsApiFactory = function (configuration, basePath, axios) {
1016
1167
  * @extends {BaseAPI}
1017
1168
  */
1018
1169
  export class CollectionsApi extends BaseAPI {
1170
+ /**
1171
+ * Create a new website collection.
1172
+ * @summary Create website collection
1173
+ * @param {CollectionsApiCreateCollectionRequest} requestParameters Request parameters.
1174
+ * @param {*} [options] Override http request option.
1175
+ * @throws {RequiredError}
1176
+ * @memberof CollectionsApi
1177
+ */
1178
+ createCollection(requestParameters, options) {
1179
+ return CollectionsApiFp(this.configuration).createCollection(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.createCollectionRequest, options).then((request) => request(this.axios, this.basePath));
1180
+ }
1181
+ /**
1182
+ *
1183
+ * @summary Delete website collection
1184
+ * @param {CollectionsApiDeleteCollectionRequest} requestParameters Request parameters.
1185
+ * @param {*} [options] Override http request option.
1186
+ * @throws {RequiredError}
1187
+ * @memberof CollectionsApi
1188
+ */
1189
+ deleteCollection(requestParameters, options) {
1190
+ return CollectionsApiFp(this.configuration).deleteCollection(requestParameters.project, requestParameters.collectionId, options).then((request) => request(this.axios, this.basePath));
1191
+ }
1019
1192
  /**
1020
1193
  * Export collections as a CSV file.
1021
1194
  * @summary Export collections
@@ -1072,7 +1245,7 @@ export class CollectionsApi extends BaseAPI {
1072
1245
  return CollectionsApiFp(this.configuration).updateCollection(requestParameters.project, requestParameters.collectionId, requestParameters.updateCollectionRequest, options).then((request) => request(this.axios, this.basePath));
1073
1246
  }
1074
1247
  /**
1075
- *
1248
+ * Update a website collection.
1076
1249
  * @summary Update website collections
1077
1250
  * @param {CollectionsApiUpdateCollectionsRequest} requestParameters Request parameters.
1078
1251
  * @param {*} [options] Override http request option.
@@ -2,7 +2,7 @@
2
2
  * Website API
3
3
  * Manage your PodOS Website
4
4
  *
5
- * The version of the OpenAPI document: 0.22.2
5
+ * The version of the OpenAPI document: 0.24.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/base.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Website API
5
5
  * Manage your PodOS Website
6
6
  *
7
- * The version of the OpenAPI document: 0.22.2
7
+ * The version of the OpenAPI document: 0.24.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Website API
3
3
  * Manage your PodOS Website
4
4
  *
5
- * The version of the OpenAPI document: 0.22.2
5
+ * The version of the OpenAPI document: 0.24.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Website API
5
5
  * Manage your PodOS Website
6
6
  *
7
- * The version of the OpenAPI document: 0.22.2
7
+ * The version of the OpenAPI document: 0.24.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Website API
3
3
  * Manage your PodOS Website
4
4
  *
5
- * The version of the OpenAPI document: 0.22.2
5
+ * The version of the OpenAPI document: 0.24.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Website API
5
5
  * Manage your PodOS Website
6
6
  *
7
- * The version of the OpenAPI document: 0.22.2
7
+ * The version of the OpenAPI document: 0.24.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Website API
3
3
  * Manage your PodOS Website
4
4
  *
5
- * The version of the OpenAPI document: 0.22.2
5
+ * The version of the OpenAPI document: 0.24.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Website API
5
5
  * Manage your PodOS Website
6
6
  *
7
- * The version of the OpenAPI document: 0.22.2
7
+ * The version of the OpenAPI document: 0.24.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Website API
3
3
  * Manage your PodOS Website
4
4
  *
5
- * The version of the OpenAPI document: 0.22.2
5
+ * The version of the OpenAPI document: 0.24.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Website API
6
6
  * Manage your PodOS Website
7
7
  *
8
- * The version of the OpenAPI document: 0.22.2
8
+ * The version of the OpenAPI document: 0.24.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/docs/Banner.md ADDED
@@ -0,0 +1,23 @@
1
+ # Banner
2
+
3
+ The banner image that is used to display the collection
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **overlay** | [**Overlay**](Overlay.md) | | [optional] [default to undefined]
10
+ **image** | [**BannerImage**](BannerImage.md) | | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { Banner } from '@teemill/website';
16
+
17
+ const instance: Banner = {
18
+ overlay,
19
+ image,
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,22 @@
1
+ # BannerImage
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **src** | **string** | | [default to undefined]
9
+ **alt** | **string** | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { BannerImage } from '@teemill/website';
15
+
16
+ const instance: BannerImage = {
17
+ src,
18
+ alt,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -6,14 +6,16 @@
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **id** | **string** | Unique object identifier | [optional] [default to undefined]
9
- **title** | **string** | | [optional] [default to undefined]
10
- **description** | **string** | | [optional] [default to undefined]
11
- **slug** | **string** | | [optional] [default to undefined]
9
+ **title** | **string** | | [default to undefined]
10
+ **description** | **string** | | [default to undefined]
11
+ **slug** | **string** | | [default to undefined]
12
12
  **longDescription** | **string** | | [optional] [default to undefined]
13
+ **banner** | [**Banner**](Banner.md) | | [default to undefined]
13
14
  **seoMetadata** | [**SeoMetadata**](SeoMetadata.md) | | [optional] [default to undefined]
14
- **targetSearchPhraseData** | [**TargetSearchPhraseData**](TargetSearchPhraseData.md) | | [optional] [default to undefined]
15
+ **targetSearchPhraseData** | [**TargetSearchPhraseData**](TargetSearchPhraseData.md) | | [default to undefined]
15
16
  **optimisationHistory** | [**Array<OptimisationHistoryItem>**](OptimisationHistoryItem.md) | History of AI optimisations performed on the collection | [optional] [default to undefined]
16
- **metaImage** | [**MetaImage**](MetaImage.md) | | [optional] [default to undefined]
17
+ **navigationTags** | [**Array<NavigationTag>**](NavigationTag.md) | Tags that are used to link to other collections, pages and products. | [optional] [default to undefined]
18
+ **products** | [**Array<CollectionProduct>**](CollectionProduct.md) | A set of products to include in the collection. | [default to undefined]
17
19
 
18
20
  ## Example
19
21
 
@@ -26,10 +28,12 @@ const instance: Collection = {
26
28
  description,
27
29
  slug,
28
30
  longDescription,
31
+ banner,
29
32
  seoMetadata,
30
33
  targetSearchPhraseData,
31
34
  optimisationHistory,
32
- metaImage,
35
+ navigationTags,
36
+ products,
33
37
  };
34
38
  ```
35
39
 
@@ -0,0 +1,24 @@
1
+ # CollectionProduct
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **ref** | **string** | A reference to the catalog product | [default to undefined]
9
+ **image** | [**CollectionProductImage**](CollectionProductImage.md) | | [default to undefined]
10
+ **order** | **number** | The sort order of the product in the collection | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { CollectionProduct } from '@teemill/website';
16
+
17
+ const instance: CollectionProduct = {
18
+ ref,
19
+ image,
20
+ order,
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,22 @@
1
+ # CollectionProductImage
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **src** | **string** | An image for the product to be used in the collection | [default to undefined]
9
+ **alt** | **string** | Alternative text for the image | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { CollectionProductImage } from '@teemill/website';
15
+
16
+ const instance: CollectionProductImage = {
17
+ src,
18
+ alt,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -4,6 +4,8 @@ All URIs are relative to *https://api.localhost:8080*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
+ |[**createCollection**](#createcollection) | **POST** /v1/website/collections | Create website collection|
8
+ |[**deleteCollection**](#deletecollection) | **DELETE** /v1/website/collections/{collectionId} | Delete website collection|
7
9
  |[**exportCollections**](#exportcollections) | **GET** /v1/website/collections/export | Export collections|
8
10
  |[**getCollection**](#getcollection) | **GET** /v1/website/collections/{collectionId} | Get website collection|
9
11
  |[**listCollections**](#listcollections) | **GET** /v1/website/collections | List website collections|
@@ -11,6 +13,131 @@ All URIs are relative to *https://api.localhost:8080*
11
13
  |[**updateCollection**](#updatecollection) | **PATCH** /v1/website/collections/{collectionId} | Update website collection|
12
14
  |[**updateCollections**](#updatecollections) | **PATCH** /v1/website/collections | Update website collections|
13
15
 
16
+ # **createCollection**
17
+ > Collection createCollection()
18
+
19
+ Create a new website collection.
20
+
21
+ ### Example
22
+
23
+ ```typescript
24
+ import {
25
+ CollectionsApi,
26
+ Configuration,
27
+ CreateCollectionRequest
28
+ } from '@teemill/website';
29
+
30
+ const configuration = new Configuration();
31
+ const apiInstance = new CollectionsApi(configuration);
32
+
33
+ let project: string; //What project it is (default to undefined)
34
+ let pageToken: number; //Page reference token (optional) (default to 1)
35
+ 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)
36
+ let search: string; //Search term to filter results (optional) (default to undefined)
37
+ let createCollectionRequest: CreateCollectionRequest; //Create a new collection (optional)
38
+
39
+ const { status, data } = await apiInstance.createCollection(
40
+ project,
41
+ pageToken,
42
+ pageSize,
43
+ search,
44
+ createCollectionRequest
45
+ );
46
+ ```
47
+
48
+ ### Parameters
49
+
50
+ |Name | Type | Description | Notes|
51
+ |------------- | ------------- | ------------- | -------------|
52
+ | **createCollectionRequest** | **CreateCollectionRequest**| Create a new collection | |
53
+ | **project** | [**string**] | What project it is | defaults to undefined|
54
+ | **pageToken** | [**number**] | Page reference token | (optional) defaults to 1|
55
+ | **pageSize** | [**number**] | Max page size. This is the maximum page size that will be returned, but it might be smaller. | (optional) defaults to 100|
56
+ | **search** | [**string**] | Search term to filter results | (optional) defaults to undefined|
57
+
58
+
59
+ ### Return type
60
+
61
+ **Collection**
62
+
63
+ ### Authorization
64
+
65
+ [session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
66
+
67
+ ### HTTP request headers
68
+
69
+ - **Content-Type**: application/json
70
+ - **Accept**: application/json
71
+
72
+
73
+ ### HTTP response details
74
+ | Status code | Description | Response headers |
75
+ |-------------|-------------|------------------|
76
+ |**201** | Successfully retrieved a website collection. | - |
77
+ |**400** | Failed validation | - |
78
+ |**401** | Not authorised to access this resource | - |
79
+ |**403** | Refuse to authorize | - |
80
+ |**500** | Unknown server error | - |
81
+
82
+ [[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)
83
+
84
+ # **deleteCollection**
85
+ > deleteCollection()
86
+
87
+
88
+ ### Example
89
+
90
+ ```typescript
91
+ import {
92
+ CollectionsApi,
93
+ Configuration
94
+ } from '@teemill/website';
95
+
96
+ const configuration = new Configuration();
97
+ const apiInstance = new CollectionsApi(configuration);
98
+
99
+ let project: string; //What project it is (default to undefined)
100
+ let collectionId: string; //Collection\'s unique identifier (default to undefined)
101
+
102
+ const { status, data } = await apiInstance.deleteCollection(
103
+ project,
104
+ collectionId
105
+ );
106
+ ```
107
+
108
+ ### Parameters
109
+
110
+ |Name | Type | Description | Notes|
111
+ |------------- | ------------- | ------------- | -------------|
112
+ | **project** | [**string**] | What project it is | defaults to undefined|
113
+ | **collectionId** | [**string**] | Collection\'s unique identifier | defaults to undefined|
114
+
115
+
116
+ ### Return type
117
+
118
+ void (empty response body)
119
+
120
+ ### Authorization
121
+
122
+ [session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
123
+
124
+ ### HTTP request headers
125
+
126
+ - **Content-Type**: Not defined
127
+ - **Accept**: application/json
128
+
129
+
130
+ ### HTTP response details
131
+ | Status code | Description | Response headers |
132
+ |-------------|-------------|------------------|
133
+ |**204** | Collection deleted | - |
134
+ |**401** | Not authorised to access this resource | - |
135
+ |**403** | Refuse to authorize | - |
136
+ |**404** | Resource not found | - |
137
+ |**500** | Unknown server error | - |
138
+
139
+ [[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)
140
+
14
141
  # **exportCollections**
15
142
  > File exportCollections()
16
143
 
@@ -311,6 +438,7 @@ const { status, data } = await apiInstance.updateCollection(
311
438
  # **updateCollections**
312
439
  > CollectionsResponse updateCollections()
313
440
 
441
+ Update a website collection.
314
442
 
315
443
  ### Example
316
444
 
@@ -0,0 +1,38 @@
1
+ # CreateCollectionRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **banner** | [**CreateCollectionRequestBanner**](CreateCollectionRequestBanner.md) | | [default to undefined]
9
+ **title** | **string** | Collection title | [default to undefined]
10
+ **description** | **string** | Collection description | [default to undefined]
11
+ **slug** | **string** | URL slug. This must be unique for each collection on the website. | [default to undefined]
12
+ **longDescription** | **string** | Long-form description for the collection used for SEO. | [optional] [default to undefined]
13
+ **seoMetadata** | [**CreateCollectionRequestSeoMetadata**](CreateCollectionRequestSeoMetadata.md) | | [optional] [default to undefined]
14
+ **targetSearchPhrase** | **string** | The primary target search phrase for the collection that you wish to rank for in search engine results. | [optional] [default to undefined]
15
+ **targetSearchPhraseSynonyms** | **Array<string>** | Synonyms for the target search phrase. | [optional] [default to undefined]
16
+ **products** | [**Array<CreateCollectionRequestProductsInner>**](CreateCollectionRequestProductsInner.md) | A set of products to include in the collection. | [default to undefined]
17
+ **navigationTags** | [**Array<NavigationTag>**](NavigationTag.md) | Tags that are used to link to other collections, pages and products. | [optional] [default to undefined]
18
+
19
+ ## Example
20
+
21
+ ```typescript
22
+ import { CreateCollectionRequest } from '@teemill/website';
23
+
24
+ const instance: CreateCollectionRequest = {
25
+ banner,
26
+ title,
27
+ description,
28
+ slug,
29
+ longDescription,
30
+ seoMetadata,
31
+ targetSearchPhrase,
32
+ targetSearchPhraseSynonyms,
33
+ products,
34
+ navigationTags,
35
+ };
36
+ ```
37
+
38
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)