@teemill/website 0.22.2 → 0.23.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 +25 -2
- package/api.ts +874 -52
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +722 -17
- package/dist/api.js +175 -5
- 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 +722 -17
- package/dist/esm/api.js +175 -5
- 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/Banner.md +23 -0
- package/docs/BannerImage.md +22 -0
- package/docs/Collection.md +10 -6
- package/docs/CollectionProduct.md +24 -0
- package/docs/CollectionProductImage.md +22 -0
- package/docs/CollectionsApi.md +128 -0
- package/docs/CreateCollectionRequest.md +38 -0
- package/docs/CreateCollectionRequestBanner.md +22 -0
- package/docs/CreateCollectionRequestBannerImage.md +22 -0
- package/docs/CreateCollectionRequestBannerOverlay.md +26 -0
- package/docs/CreateCollectionRequestProductsInner.md +24 -0
- package/docs/CreateCollectionRequestSeoMetadata.md +24 -0
- package/docs/MetaImage.md +1 -1
- package/docs/NavigationTag.md +24 -0
- package/docs/NullableMetaImage.md +23 -0
- package/docs/Overlay.md +27 -0
- package/docs/UpdateCollectionRequest.md +7 -1
- package/docs/UpdateCollectionRequestBanner.md +22 -0
- package/docs/UpdateCollectionRequestBannerImage.md +22 -0
- package/docs/UpdateCollectionRequestProductsInner.md +24 -0
- package/docs/UpdateCollectionRequestSeoMetadata.md +24 -0
- package/docs/UpdateCollectionsRequestCollectionsInner.md +6 -0
- package/docs/UpdateCollectionsRequestCollectionsInnerBanner.md +22 -0
- package/docs/UpdateCollectionsRequestCollectionsInnerBannerImage.md +22 -0
- package/docs/UpdateCollectionsRequestCollectionsInnerBannerOverlay.md +26 -0
- package/docs/UpdateCollectionsRequestCollectionsInnerProductsInner.md +24 -0
- package/index.ts +1 -1
- 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.
|
|
7
|
+
* The version of the OpenAPI document: 0.23.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -565,6 +565,97 @@ export class BlogsApi extends BaseAPI {
|
|
|
565
565
|
*/
|
|
566
566
|
export const CollectionsApiAxiosParamCreator = function (configuration) {
|
|
567
567
|
return {
|
|
568
|
+
/**
|
|
569
|
+
* Create a new website collection.
|
|
570
|
+
* @summary Create website collection
|
|
571
|
+
* @param {string} project What project it is
|
|
572
|
+
* @param {number} [pageToken] Page reference token
|
|
573
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
574
|
+
* @param {string} [search] Search term to filter results
|
|
575
|
+
* @param {CreateCollectionRequest} [createCollectionRequest] Create a new collection
|
|
576
|
+
* @param {*} [options] Override http request option.
|
|
577
|
+
* @throws {RequiredError}
|
|
578
|
+
*/
|
|
579
|
+
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 = {}) {
|
|
580
|
+
// verify required parameter 'project' is not null or undefined
|
|
581
|
+
assertParamExists('createCollection', 'project', project);
|
|
582
|
+
const localVarPath = `/v1/website/collections`;
|
|
583
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
584
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
585
|
+
let baseOptions;
|
|
586
|
+
if (configuration) {
|
|
587
|
+
baseOptions = configuration.baseOptions;
|
|
588
|
+
}
|
|
589
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
590
|
+
const localVarHeaderParameter = {};
|
|
591
|
+
const localVarQueryParameter = {};
|
|
592
|
+
// authentication session-oauth required
|
|
593
|
+
// oauth required
|
|
594
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
595
|
+
// authentication api-key required
|
|
596
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
597
|
+
if (project !== undefined) {
|
|
598
|
+
localVarQueryParameter['project'] = project;
|
|
599
|
+
}
|
|
600
|
+
if (pageToken !== undefined) {
|
|
601
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
602
|
+
}
|
|
603
|
+
if (pageSize !== undefined) {
|
|
604
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
605
|
+
}
|
|
606
|
+
if (search !== undefined) {
|
|
607
|
+
localVarQueryParameter['search'] = search;
|
|
608
|
+
}
|
|
609
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
610
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
611
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
612
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
613
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createCollectionRequest, localVarRequestOptions, configuration);
|
|
614
|
+
return {
|
|
615
|
+
url: toPathString(localVarUrlObj),
|
|
616
|
+
options: localVarRequestOptions,
|
|
617
|
+
};
|
|
618
|
+
}),
|
|
619
|
+
/**
|
|
620
|
+
*
|
|
621
|
+
* @summary Delete website collection
|
|
622
|
+
* @param {string} project What project it is
|
|
623
|
+
* @param {string} collectionId Collection\'s unique identifier
|
|
624
|
+
* @param {*} [options] Override http request option.
|
|
625
|
+
* @throws {RequiredError}
|
|
626
|
+
*/
|
|
627
|
+
deleteCollection: (project_1, collectionId_1, ...args_1) => __awaiter(this, [project_1, collectionId_1, ...args_1], void 0, function* (project, collectionId, options = {}) {
|
|
628
|
+
// verify required parameter 'project' is not null or undefined
|
|
629
|
+
assertParamExists('deleteCollection', 'project', project);
|
|
630
|
+
// verify required parameter 'collectionId' is not null or undefined
|
|
631
|
+
assertParamExists('deleteCollection', 'collectionId', collectionId);
|
|
632
|
+
const localVarPath = `/v1/website/collections/{collectionId}`
|
|
633
|
+
.replace(`{${"collectionId"}}`, encodeURIComponent(String(collectionId)));
|
|
634
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
635
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
636
|
+
let baseOptions;
|
|
637
|
+
if (configuration) {
|
|
638
|
+
baseOptions = configuration.baseOptions;
|
|
639
|
+
}
|
|
640
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
641
|
+
const localVarHeaderParameter = {};
|
|
642
|
+
const localVarQueryParameter = {};
|
|
643
|
+
// authentication session-oauth required
|
|
644
|
+
// oauth required
|
|
645
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
646
|
+
// authentication api-key required
|
|
647
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
648
|
+
if (project !== undefined) {
|
|
649
|
+
localVarQueryParameter['project'] = project;
|
|
650
|
+
}
|
|
651
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
652
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
653
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
654
|
+
return {
|
|
655
|
+
url: toPathString(localVarUrlObj),
|
|
656
|
+
options: localVarRequestOptions,
|
|
657
|
+
};
|
|
658
|
+
}),
|
|
568
659
|
/**
|
|
569
660
|
* Export collections as a CSV file.
|
|
570
661
|
* @summary Export collections
|
|
@@ -772,7 +863,7 @@ export const CollectionsApiAxiosParamCreator = function (configuration) {
|
|
|
772
863
|
};
|
|
773
864
|
}),
|
|
774
865
|
/**
|
|
775
|
-
*
|
|
866
|
+
* Update a website collection.
|
|
776
867
|
* @summary Update website collections
|
|
777
868
|
* @param {string} project What project it is
|
|
778
869
|
* @param {number} [pageToken] Page reference token
|
|
@@ -831,6 +922,43 @@ export const CollectionsApiAxiosParamCreator = function (configuration) {
|
|
|
831
922
|
export const CollectionsApiFp = function (configuration) {
|
|
832
923
|
const localVarAxiosParamCreator = CollectionsApiAxiosParamCreator(configuration);
|
|
833
924
|
return {
|
|
925
|
+
/**
|
|
926
|
+
* Create a new website collection.
|
|
927
|
+
* @summary Create website collection
|
|
928
|
+
* @param {string} project What project it is
|
|
929
|
+
* @param {number} [pageToken] Page reference token
|
|
930
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
931
|
+
* @param {string} [search] Search term to filter results
|
|
932
|
+
* @param {CreateCollectionRequest} [createCollectionRequest] Create a new collection
|
|
933
|
+
* @param {*} [options] Override http request option.
|
|
934
|
+
* @throws {RequiredError}
|
|
935
|
+
*/
|
|
936
|
+
createCollection(project, pageToken, pageSize, search, createCollectionRequest, options) {
|
|
937
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
938
|
+
var _a, _b, _c;
|
|
939
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createCollection(project, pageToken, pageSize, search, createCollectionRequest, options);
|
|
940
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
941
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CollectionsApi.createCollection']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
942
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
943
|
+
});
|
|
944
|
+
},
|
|
945
|
+
/**
|
|
946
|
+
*
|
|
947
|
+
* @summary Delete website collection
|
|
948
|
+
* @param {string} project What project it is
|
|
949
|
+
* @param {string} collectionId Collection\'s unique identifier
|
|
950
|
+
* @param {*} [options] Override http request option.
|
|
951
|
+
* @throws {RequiredError}
|
|
952
|
+
*/
|
|
953
|
+
deleteCollection(project, collectionId, options) {
|
|
954
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
955
|
+
var _a, _b, _c;
|
|
956
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteCollection(project, collectionId, options);
|
|
957
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
958
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CollectionsApi.deleteCollection']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
959
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
960
|
+
});
|
|
961
|
+
},
|
|
834
962
|
/**
|
|
835
963
|
* Export collections as a CSV file.
|
|
836
964
|
* @summary Export collections
|
|
@@ -919,7 +1047,7 @@ export const CollectionsApiFp = function (configuration) {
|
|
|
919
1047
|
});
|
|
920
1048
|
},
|
|
921
1049
|
/**
|
|
922
|
-
*
|
|
1050
|
+
* Update a website collection.
|
|
923
1051
|
* @summary Update website collections
|
|
924
1052
|
* @param {string} project What project it is
|
|
925
1053
|
* @param {number} [pageToken] Page reference token
|
|
@@ -947,6 +1075,26 @@ export const CollectionsApiFp = function (configuration) {
|
|
|
947
1075
|
export const CollectionsApiFactory = function (configuration, basePath, axios) {
|
|
948
1076
|
const localVarFp = CollectionsApiFp(configuration);
|
|
949
1077
|
return {
|
|
1078
|
+
/**
|
|
1079
|
+
* Create a new website collection.
|
|
1080
|
+
* @summary Create website collection
|
|
1081
|
+
* @param {CollectionsApiCreateCollectionRequest} requestParameters Request parameters.
|
|
1082
|
+
* @param {*} [options] Override http request option.
|
|
1083
|
+
* @throws {RequiredError}
|
|
1084
|
+
*/
|
|
1085
|
+
createCollection(requestParameters, options) {
|
|
1086
|
+
return localVarFp.createCollection(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.createCollectionRequest, options).then((request) => request(axios, basePath));
|
|
1087
|
+
},
|
|
1088
|
+
/**
|
|
1089
|
+
*
|
|
1090
|
+
* @summary Delete website collection
|
|
1091
|
+
* @param {CollectionsApiDeleteCollectionRequest} requestParameters Request parameters.
|
|
1092
|
+
* @param {*} [options] Override http request option.
|
|
1093
|
+
* @throws {RequiredError}
|
|
1094
|
+
*/
|
|
1095
|
+
deleteCollection(requestParameters, options) {
|
|
1096
|
+
return localVarFp.deleteCollection(requestParameters.project, requestParameters.collectionId, options).then((request) => request(axios, basePath));
|
|
1097
|
+
},
|
|
950
1098
|
/**
|
|
951
1099
|
* Export collections as a CSV file.
|
|
952
1100
|
* @summary Export collections
|
|
@@ -998,7 +1146,7 @@ export const CollectionsApiFactory = function (configuration, basePath, axios) {
|
|
|
998
1146
|
return localVarFp.updateCollection(requestParameters.project, requestParameters.collectionId, requestParameters.updateCollectionRequest, options).then((request) => request(axios, basePath));
|
|
999
1147
|
},
|
|
1000
1148
|
/**
|
|
1001
|
-
*
|
|
1149
|
+
* Update a website collection.
|
|
1002
1150
|
* @summary Update website collections
|
|
1003
1151
|
* @param {CollectionsApiUpdateCollectionsRequest} requestParameters Request parameters.
|
|
1004
1152
|
* @param {*} [options] Override http request option.
|
|
@@ -1016,6 +1164,28 @@ export const CollectionsApiFactory = function (configuration, basePath, axios) {
|
|
|
1016
1164
|
* @extends {BaseAPI}
|
|
1017
1165
|
*/
|
|
1018
1166
|
export class CollectionsApi extends BaseAPI {
|
|
1167
|
+
/**
|
|
1168
|
+
* Create a new website collection.
|
|
1169
|
+
* @summary Create website collection
|
|
1170
|
+
* @param {CollectionsApiCreateCollectionRequest} requestParameters Request parameters.
|
|
1171
|
+
* @param {*} [options] Override http request option.
|
|
1172
|
+
* @throws {RequiredError}
|
|
1173
|
+
* @memberof CollectionsApi
|
|
1174
|
+
*/
|
|
1175
|
+
createCollection(requestParameters, options) {
|
|
1176
|
+
return CollectionsApiFp(this.configuration).createCollection(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.createCollectionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1177
|
+
}
|
|
1178
|
+
/**
|
|
1179
|
+
*
|
|
1180
|
+
* @summary Delete website collection
|
|
1181
|
+
* @param {CollectionsApiDeleteCollectionRequest} requestParameters Request parameters.
|
|
1182
|
+
* @param {*} [options] Override http request option.
|
|
1183
|
+
* @throws {RequiredError}
|
|
1184
|
+
* @memberof CollectionsApi
|
|
1185
|
+
*/
|
|
1186
|
+
deleteCollection(requestParameters, options) {
|
|
1187
|
+
return CollectionsApiFp(this.configuration).deleteCollection(requestParameters.project, requestParameters.collectionId, options).then((request) => request(this.axios, this.basePath));
|
|
1188
|
+
}
|
|
1019
1189
|
/**
|
|
1020
1190
|
* Export collections as a CSV file.
|
|
1021
1191
|
* @summary Export collections
|
|
@@ -1072,7 +1242,7 @@ export class CollectionsApi extends BaseAPI {
|
|
|
1072
1242
|
return CollectionsApiFp(this.configuration).updateCollection(requestParameters.project, requestParameters.collectionId, requestParameters.updateCollectionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1073
1243
|
}
|
|
1074
1244
|
/**
|
|
1075
|
-
*
|
|
1245
|
+
* Update a website collection.
|
|
1076
1246
|
* @summary Update website collections
|
|
1077
1247
|
* @param {CollectionsApiUpdateCollectionsRequest} requestParameters Request parameters.
|
|
1078
1248
|
* @param {*} [options] Override http request option.
|
package/dist/esm/base.d.ts
CHANGED
package/dist/esm/base.js
CHANGED
package/dist/esm/common.d.ts
CHANGED
package/dist/esm/common.js
CHANGED
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
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)
|
package/docs/Collection.md
CHANGED
|
@@ -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** | | [
|
|
10
|
-
**description** | **string** | | [
|
|
11
|
-
**slug** | **string** | | [
|
|
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) | | [
|
|
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
|
-
**
|
|
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
|
-
|
|
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)
|
package/docs/CollectionsApi.md
CHANGED
|
@@ -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)
|