@remkoj/optimizely-cms-api 5.1.5 → 6.0.0-pre10
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 +3 -5
- package/dist/api-client.d.ts +70 -11
- package/dist/api-client.js +208 -48
- package/dist/client/client/client.gen.d.ts +2 -0
- package/dist/client/client/client.gen.js +208 -0
- package/dist/client/client/index.d.ts +8 -0
- package/dist/client/client/index.js +17 -0
- package/dist/client/client/types.gen.d.ts +124 -0
- package/dist/client/{core/ApiRequestOptions.js → client/types.gen.js} +1 -0
- package/dist/client/client/utils.gen.d.ts +33 -0
- package/dist/client/client/utils.gen.js +242 -0
- package/dist/client/client.gen.d.ts +12 -0
- package/dist/client/client.gen.js +9 -0
- package/dist/client/core/auth.gen.d.ts +18 -0
- package/dist/client/core/auth.gen.js +18 -0
- package/dist/client/core/bodySerializer.gen.d.ts +25 -0
- package/dist/client/core/bodySerializer.gen.js +60 -0
- package/dist/client/core/params.gen.d.ts +33 -0
- package/dist/client/core/params.gen.js +92 -0
- package/dist/client/core/pathSerializer.gen.d.ts +33 -0
- package/dist/client/core/pathSerializer.gen.js +123 -0
- package/dist/client/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/client/core/queryKeySerializer.gen.js +105 -0
- package/dist/client/core/serverSentEvents.gen.d.ts +71 -0
- package/dist/client/core/serverSentEvents.gen.js +139 -0
- package/dist/client/core/types.gen.d.ts +78 -0
- package/dist/client/core/{ApiResult.js → types.gen.js} +1 -0
- package/dist/client/core/utils.gen.d.ts +19 -0
- package/dist/client/core/utils.gen.js +93 -0
- package/dist/client/index.d.ts +4 -78
- package/dist/client/index.js +18 -46
- package/dist/client/sdk.gen.d.ts +117 -0
- package/dist/client/sdk.gen.js +251 -0
- package/dist/client/transformers.gen.d.ts +18 -0
- package/dist/client/transformers.gen.js +157 -0
- package/dist/client/types.gen.d.ts +1285 -0
- package/dist/client/{models/BooleanProperty.js → types.gen.js} +1 -0
- package/dist/client-config.d.ts +5 -0
- package/dist/client-config.js +55 -0
- package/dist/config.d.ts +5 -2
- package/dist/config.js +26 -18
- package/dist/getaccesstoken.d.ts +1 -1
- package/dist/getaccesstoken.js +10 -9
- package/dist/index.d.ts +7 -6
- package/dist/index.js +15 -8
- package/dist/instance.client/client/client.gen.d.ts +2 -0
- package/dist/instance.client/client/client.gen.js +208 -0
- package/dist/instance.client/client/index.d.ts +8 -0
- package/dist/instance.client/client/index.js +17 -0
- package/dist/instance.client/client/types.gen.d.ts +124 -0
- package/dist/{client/models/BinaryProperty.js → instance.client/client/types.gen.js} +1 -0
- package/dist/instance.client/client/utils.gen.d.ts +33 -0
- package/dist/instance.client/client/utils.gen.js +242 -0
- package/dist/instance.client/client.gen.d.ts +12 -0
- package/dist/instance.client/client.gen.js +9 -0
- package/dist/instance.client/core/auth.gen.d.ts +18 -0
- package/dist/instance.client/core/auth.gen.js +18 -0
- package/dist/instance.client/core/bodySerializer.gen.d.ts +25 -0
- package/dist/instance.client/core/bodySerializer.gen.js +60 -0
- package/dist/instance.client/core/params.gen.d.ts +33 -0
- package/dist/instance.client/core/params.gen.js +92 -0
- package/dist/instance.client/core/pathSerializer.gen.d.ts +33 -0
- package/dist/instance.client/core/pathSerializer.gen.js +123 -0
- package/dist/instance.client/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/instance.client/core/queryKeySerializer.gen.js +105 -0
- package/dist/instance.client/core/serverSentEvents.gen.d.ts +71 -0
- package/dist/instance.client/core/serverSentEvents.gen.js +139 -0
- package/dist/instance.client/core/types.gen.d.ts +78 -0
- package/dist/instance.client/core/types.gen.js +3 -0
- package/dist/instance.client/core/utils.gen.d.ts +19 -0
- package/dist/instance.client/core/utils.gen.js +93 -0
- package/dist/instance.client/index.d.ts +4 -0
- package/dist/instance.client/index.js +21 -0
- package/dist/instance.client/sdk.gen.d.ts +303 -0
- package/dist/instance.client/sdk.gen.js +699 -0
- package/dist/instance.client/transformers.gen.d.ts +48 -0
- package/dist/instance.client/transformers.gen.js +431 -0
- package/dist/instance.client/types.gen.d.ts +2838 -0
- package/dist/instance.client/types.gen.js +3 -0
- package/dist/types.d.ts +3 -1
- package/dist/types.js +1 -0
- package/dist/version.json +3 -3
- package/package.json +16 -11
- package/dist/client/CmsIntegrationApiClient.d.ts +0 -22
- package/dist/client/CmsIntegrationApiClient.js +0 -34
- package/dist/client/core/ApiError.d.ts +0 -10
- package/dist/client/core/ApiError.js +0 -15
- package/dist/client/core/ApiRequestOptions.d.ts +0 -13
- package/dist/client/core/ApiResult.d.ts +0 -7
- package/dist/client/core/BaseHttpRequest.d.ts +0 -8
- package/dist/client/core/BaseHttpRequest.js +0 -9
- package/dist/client/core/CancelablePromise.d.ts +0 -20
- package/dist/client/core/CancelablePromise.js +0 -116
- package/dist/client/core/FetchHttpRequest.d.ts +0 -14
- package/dist/client/core/FetchHttpRequest.js +0 -20
- package/dist/client/core/OpenAPI.d.ts +0 -16
- package/dist/client/core/OpenAPI.js +0 -14
- package/dist/client/core/request.d.ts +0 -30
- package/dist/client/core/request.js +0 -294
- package/dist/client/models/BinaryProperty.d.ts +0 -8
- package/dist/client/models/BooleanProperty.d.ts +0 -5
- package/dist/client/models/Changeset.d.ts +0 -26
- package/dist/client/models/Changeset.js +0 -2
- package/dist/client/models/ChangesetItem.d.ts +0 -11
- package/dist/client/models/ChangesetItem.js +0 -2
- package/dist/client/models/ChangesetItemPage.d.ts +0 -19
- package/dist/client/models/ChangesetItemPage.js +0 -2
- package/dist/client/models/ChangesetPage.d.ts +0 -19
- package/dist/client/models/ChangesetPage.js +0 -2
- package/dist/client/models/ComponentListItem.d.ts +0 -10
- package/dist/client/models/ComponentListItem.js +0 -2
- package/dist/client/models/ComponentProperty.d.ts +0 -10
- package/dist/client/models/ComponentProperty.js +0 -2
- package/dist/client/models/CompositionBehavior.d.ts +0 -7
- package/dist/client/models/CompositionBehavior.js +0 -15
- package/dist/client/models/ContentBaseType.d.ts +0 -14
- package/dist/client/models/ContentBaseType.js +0 -22
- package/dist/client/models/ContentComponent.d.ts +0 -30
- package/dist/client/models/ContentComponent.js +0 -2
- package/dist/client/models/ContentItem.d.ts +0 -60
- package/dist/client/models/ContentItem.js +0 -2
- package/dist/client/models/ContentItemListWithContentTypes.d.ts +0 -27
- package/dist/client/models/ContentItemListWithContentTypes.js +0 -2
- package/dist/client/models/ContentItemPage.d.ts +0 -19
- package/dist/client/models/ContentItemPage.js +0 -2
- package/dist/client/models/ContentItemWithContentTypes.d.ts +0 -12
- package/dist/client/models/ContentItemWithContentTypes.js +0 -2
- package/dist/client/models/ContentListItem.d.ts +0 -14
- package/dist/client/models/ContentListItem.js +0 -2
- package/dist/client/models/ContentLocaleInfo.d.ts +0 -19
- package/dist/client/models/ContentLocaleInfo.js +0 -2
- package/dist/client/models/ContentMetadata.d.ts +0 -38
- package/dist/client/models/ContentMetadata.js +0 -2
- package/dist/client/models/ContentMetadataPage.d.ts +0 -19
- package/dist/client/models/ContentMetadataPage.js +0 -2
- package/dist/client/models/ContentProperty.d.ts +0 -14
- package/dist/client/models/ContentProperty.js +0 -2
- package/dist/client/models/ContentReference.d.ts +0 -17
- package/dist/client/models/ContentReference.js +0 -2
- package/dist/client/models/ContentReferenceListItem.d.ts +0 -14
- package/dist/client/models/ContentReferenceListItem.js +0 -2
- package/dist/client/models/ContentReferenceProperty.d.ts +0 -14
- package/dist/client/models/ContentReferenceProperty.js +0 -2
- package/dist/client/models/ContentType.d.ts +0 -84
- package/dist/client/models/ContentType.js +0 -2
- package/dist/client/models/ContentTypeFeature.d.ts +0 -10
- package/dist/client/models/ContentTypeFeature.js +0 -18
- package/dist/client/models/ContentTypePage.d.ts +0 -19
- package/dist/client/models/ContentTypePage.js +0 -2
- package/dist/client/models/ContentTypeProperty.d.ts +0 -47
- package/dist/client/models/ContentTypeProperty.js +0 -2
- package/dist/client/models/ContentTypeUsage.d.ts +0 -7
- package/dist/client/models/ContentTypeUsage.js +0 -15
- package/dist/client/models/CopyContentOptions.d.ts +0 -21
- package/dist/client/models/CopyContentOptions.js +0 -2
- package/dist/client/models/DateTimeListItem.d.ts +0 -14
- package/dist/client/models/DateTimeListItem.js +0 -2
- package/dist/client/models/DateTimeProperty.d.ts +0 -14
- package/dist/client/models/DateTimeProperty.js +0 -2
- package/dist/client/models/DisplaySetting.d.ts +0 -22
- package/dist/client/models/DisplaySetting.js +0 -2
- package/dist/client/models/DisplaySettingChoice.d.ts +0 -13
- package/dist/client/models/DisplaySettingChoice.js +0 -2
- package/dist/client/models/DisplayTemplate.d.ts +0 -49
- package/dist/client/models/DisplayTemplate.js +0 -2
- package/dist/client/models/DisplayTemplatePage.d.ts +0 -19
- package/dist/client/models/DisplayTemplatePage.js +0 -2
- package/dist/client/models/DoubleEnumerationSettings.d.ts +0 -10
- package/dist/client/models/DoubleEnumerationSettings.js +0 -2
- package/dist/client/models/DoubleEnumerationValue.d.ts +0 -13
- package/dist/client/models/DoubleEnumerationValue.js +0 -2
- package/dist/client/models/FloatListItem.d.ts +0 -16
- package/dist/client/models/FloatListItem.js +0 -2
- package/dist/client/models/FloatProperty.d.ts +0 -16
- package/dist/client/models/FloatProperty.js +0 -2
- package/dist/client/models/ImageDescriptor.d.ts +0 -17
- package/dist/client/models/ImageDescriptor.js +0 -2
- package/dist/client/models/IndexingType.d.ts +0 -8
- package/dist/client/models/IndexingType.js +0 -16
- package/dist/client/models/Int32EnumerationSettings.d.ts +0 -10
- package/dist/client/models/Int32EnumerationSettings.js +0 -2
- package/dist/client/models/Int32EnumerationValue.d.ts +0 -13
- package/dist/client/models/Int32EnumerationValue.js +0 -2
- package/dist/client/models/IntegerListItem.d.ts +0 -16
- package/dist/client/models/IntegerListItem.js +0 -2
- package/dist/client/models/IntegerProperty.d.ts +0 -16
- package/dist/client/models/IntegerProperty.js +0 -2
- package/dist/client/models/JsonStringProperty.d.ts +0 -5
- package/dist/client/models/JsonStringProperty.js +0 -2
- package/dist/client/models/ListProperty.d.ts +0 -26
- package/dist/client/models/ListProperty.js +0 -2
- package/dist/client/models/ListPropertyItem.d.ts +0 -11
- package/dist/client/models/ListPropertyItem.js +0 -2
- package/dist/client/models/LocaleStatus.d.ts +0 -7
- package/dist/client/models/LocaleStatus.js +0 -15
- package/dist/client/models/OauthToken.d.ts +0 -18
- package/dist/client/models/OauthToken.js +0 -2
- package/dist/client/models/OauthTokenError.d.ts +0 -13
- package/dist/client/models/OauthTokenError.js +0 -2
- package/dist/client/models/OauthTokenRequest.d.ts +0 -21
- package/dist/client/models/OauthTokenRequest.js +0 -2
- package/dist/client/models/ProblemDetails.d.ts +0 -1
- package/dist/client/models/ProblemDetails.js +0 -2
- package/dist/client/models/PropertyDataType.d.ts +0 -18
- package/dist/client/models/PropertyDataType.js +0 -26
- package/dist/client/models/PropertyFormat.d.ts +0 -37
- package/dist/client/models/PropertyFormat.js +0 -2
- package/dist/client/models/PropertyFormatPage.d.ts +0 -19
- package/dist/client/models/PropertyFormatPage.js +0 -2
- package/dist/client/models/PropertyGroup.d.ts +0 -21
- package/dist/client/models/PropertyGroup.js +0 -2
- package/dist/client/models/PropertyGroupPage.d.ts +0 -19
- package/dist/client/models/PropertyGroupPage.js +0 -2
- package/dist/client/models/StringEnumerationSettings.d.ts +0 -10
- package/dist/client/models/StringEnumerationSettings.js +0 -2
- package/dist/client/models/StringEnumerationValue.d.ts +0 -13
- package/dist/client/models/StringEnumerationValue.js +0 -2
- package/dist/client/models/StringListItem.d.ts +0 -20
- package/dist/client/models/StringListItem.js +0 -2
- package/dist/client/models/StringProperty.d.ts +0 -20
- package/dist/client/models/StringProperty.js +0 -2
- package/dist/client/models/UrlListItem.d.ts +0 -5
- package/dist/client/models/UrlListItem.js +0 -2
- package/dist/client/models/UrlProperty.d.ts +0 -5
- package/dist/client/models/UrlProperty.js +0 -2
- package/dist/client/models/VersionStatus.d.ts +0 -12
- package/dist/client/models/VersionStatus.js +0 -20
- package/dist/client/services/ChangesetsService.d.ts +0 -105
- package/dist/client/services/ChangesetsService.js +0 -239
- package/dist/client/services/ContentService.d.ts +0 -172
- package/dist/client/services/ContentService.js +0 -409
- package/dist/client/services/ContentTypesService.d.ts +0 -66
- package/dist/client/services/ContentTypesService.js +0 -149
- package/dist/client/services/DisplayTemplatesService.d.ts +0 -60
- package/dist/client/services/DisplayTemplatesService.js +0 -135
- package/dist/client/services/OauthService.d.ts +0 -17
- package/dist/client/services/OauthService.js +0 -28
- package/dist/client/services/PropertyFormatsService.d.ts +0 -26
- package/dist/client/services/PropertyFormatsService.js +0 -53
- package/dist/client/services/PropertyGroupsService.d.ts +0 -61
- package/dist/client/services/PropertyGroupsService.js +0 -135
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import type { Changeset } from '../models/Changeset';
|
|
2
|
-
import type { ChangesetItem } from '../models/ChangesetItem';
|
|
3
|
-
import type { ChangesetItemPage } from '../models/ChangesetItemPage';
|
|
4
|
-
import type { ChangesetPage } from '../models/ChangesetPage';
|
|
5
|
-
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
6
|
-
import type { BaseHttpRequest } from '../core/BaseHttpRequest';
|
|
7
|
-
export declare class ChangesetsService {
|
|
8
|
-
readonly httpRequest: BaseHttpRequest;
|
|
9
|
-
constructor(httpRequest: BaseHttpRequest);
|
|
10
|
-
/**
|
|
11
|
-
* List changeset
|
|
12
|
-
* Lists all changeset using the provided options.
|
|
13
|
-
* @param pageIndex
|
|
14
|
-
* @param pageSize
|
|
15
|
-
* @returns ChangesetPage OK
|
|
16
|
-
* @throws ApiError
|
|
17
|
-
*/
|
|
18
|
-
changesetsList(pageIndex?: number, pageSize?: number): CancelablePromise<ChangesetPage>;
|
|
19
|
-
/**
|
|
20
|
-
* Create changeset
|
|
21
|
-
* Creates a new changeset.
|
|
22
|
-
* @param requestBody The changeset that should be created.
|
|
23
|
-
* @returns Changeset OK
|
|
24
|
-
* @throws ApiError
|
|
25
|
-
*/
|
|
26
|
-
changesetsCreate(requestBody: Changeset): CancelablePromise<Changeset>;
|
|
27
|
-
/**
|
|
28
|
-
* Get changeset
|
|
29
|
-
* Gets the changeset with the provided key.
|
|
30
|
-
* @param key The key of the changeset to retrieve.
|
|
31
|
-
* @returns Changeset OK
|
|
32
|
-
* @throws ApiError
|
|
33
|
-
*/
|
|
34
|
-
changesetsGet(key: string): CancelablePromise<Changeset>;
|
|
35
|
-
/**
|
|
36
|
-
* Delete changeset
|
|
37
|
-
* Deletes the changeset with the provided key. If a changeset with the provided key does not exist an error is returned.
|
|
38
|
-
* @param key The key of the changeset to delete.
|
|
39
|
-
* @returns Changeset OK
|
|
40
|
-
* @throws ApiError
|
|
41
|
-
*/
|
|
42
|
-
changesetsDelete(key: string): CancelablePromise<Changeset>;
|
|
43
|
-
/**
|
|
44
|
-
* Create or replace changeset
|
|
45
|
-
* Creates or replaces a changeset. If a changeset with the provided key exist it is replaced.
|
|
46
|
-
* Otherwise a new changeset is created.
|
|
47
|
-
* @param key The key of the changeset to update or create.
|
|
48
|
-
* @param requestBody The values of the created or replaced changeset.
|
|
49
|
-
* @returns Changeset OK
|
|
50
|
-
* @throws ApiError
|
|
51
|
-
*/
|
|
52
|
-
changesetsPut(key: string, requestBody: Changeset): CancelablePromise<Changeset>;
|
|
53
|
-
/**
|
|
54
|
-
* Get changeset item
|
|
55
|
-
* Gets the changeset item for the specified content reference.
|
|
56
|
-
* @param changeset The changeset key
|
|
57
|
-
* @param key The content key
|
|
58
|
-
* @param version The content version
|
|
59
|
-
* @returns ChangesetItem OK
|
|
60
|
-
* @throws ApiError
|
|
61
|
-
*/
|
|
62
|
-
changesetsGetItem(changeset: string, key: string, version: string): CancelablePromise<ChangesetItem>;
|
|
63
|
-
/**
|
|
64
|
-
* Delete changeset item
|
|
65
|
-
* Deletes the specified changeset item from the changeset.
|
|
66
|
-
* @param changeset The changeset key
|
|
67
|
-
* @param key The content key
|
|
68
|
-
* @param version The content version
|
|
69
|
-
* @returns ChangesetItem OK
|
|
70
|
-
* @throws ApiError
|
|
71
|
-
*/
|
|
72
|
-
changesetsDeleteItem(changeset: string, key: string, version: string): CancelablePromise<ChangesetItem>;
|
|
73
|
-
/**
|
|
74
|
-
* List changeset items
|
|
75
|
-
* Lists the available changeset items for the specified changeset using
|
|
76
|
-
* the provided options.
|
|
77
|
-
* @param changeset The changeset key
|
|
78
|
-
* @param pageIndex
|
|
79
|
-
* @param pageSize
|
|
80
|
-
* @returns ChangesetItemPage OK
|
|
81
|
-
* @throws ApiError
|
|
82
|
-
*/
|
|
83
|
-
changesetsListItems(changeset: string, pageIndex?: number, pageSize?: number): CancelablePromise<ChangesetItemPage>;
|
|
84
|
-
/**
|
|
85
|
-
* Create changeset item
|
|
86
|
-
* Creates the given changeset item.
|
|
87
|
-
* @param changeset The changeset key
|
|
88
|
-
* @param requestBody The changeset item
|
|
89
|
-
* @returns ChangesetItem OK
|
|
90
|
-
* @throws ApiError
|
|
91
|
-
*/
|
|
92
|
-
changesetsCreateItem(changeset: string, requestBody: ChangesetItem): CancelablePromise<ChangesetItem>;
|
|
93
|
-
/**
|
|
94
|
-
* Update changeset item
|
|
95
|
-
* Updates the given changeset item.
|
|
96
|
-
* @param changeset The changeset key
|
|
97
|
-
* @param contentKey The content key
|
|
98
|
-
* @param contentVersion The content version
|
|
99
|
-
* @param requestBody The changeset item
|
|
100
|
-
* @param allowCreate Indicates if a new changeset item should be created if it does not exist
|
|
101
|
-
* @returns ChangesetItem OK
|
|
102
|
-
* @throws ApiError
|
|
103
|
-
*/
|
|
104
|
-
changesetsUpdateItem(changeset: string, contentKey: string, contentVersion: string, requestBody: ChangesetItem, allowCreate?: boolean): CancelablePromise<ChangesetItem>;
|
|
105
|
-
}
|
|
@@ -1,239 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ChangesetsService = void 0;
|
|
4
|
-
class ChangesetsService {
|
|
5
|
-
constructor(httpRequest) {
|
|
6
|
-
this.httpRequest = httpRequest;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* List changeset
|
|
10
|
-
* Lists all changeset using the provided options.
|
|
11
|
-
* @param pageIndex
|
|
12
|
-
* @param pageSize
|
|
13
|
-
* @returns ChangesetPage OK
|
|
14
|
-
* @throws ApiError
|
|
15
|
-
*/
|
|
16
|
-
changesetsList(pageIndex, pageSize) {
|
|
17
|
-
return this.httpRequest.request({
|
|
18
|
-
method: 'GET',
|
|
19
|
-
url: '/changesets',
|
|
20
|
-
query: {
|
|
21
|
-
'pageIndex': pageIndex,
|
|
22
|
-
'pageSize': pageSize,
|
|
23
|
-
},
|
|
24
|
-
errors: {
|
|
25
|
-
403: `Forbidden`,
|
|
26
|
-
},
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Create changeset
|
|
31
|
-
* Creates a new changeset.
|
|
32
|
-
* @param requestBody The changeset that should be created.
|
|
33
|
-
* @returns Changeset OK
|
|
34
|
-
* @throws ApiError
|
|
35
|
-
*/
|
|
36
|
-
changesetsCreate(requestBody) {
|
|
37
|
-
return this.httpRequest.request({
|
|
38
|
-
method: 'POST',
|
|
39
|
-
url: '/changesets',
|
|
40
|
-
body: requestBody,
|
|
41
|
-
mediaType: 'application/json',
|
|
42
|
-
errors: {
|
|
43
|
-
400: `Bad Request`,
|
|
44
|
-
403: `Forbidden`,
|
|
45
|
-
},
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Get changeset
|
|
50
|
-
* Gets the changeset with the provided key.
|
|
51
|
-
* @param key The key of the changeset to retrieve.
|
|
52
|
-
* @returns Changeset OK
|
|
53
|
-
* @throws ApiError
|
|
54
|
-
*/
|
|
55
|
-
changesetsGet(key) {
|
|
56
|
-
return this.httpRequest.request({
|
|
57
|
-
method: 'GET',
|
|
58
|
-
url: '/changesets/{key}',
|
|
59
|
-
path: {
|
|
60
|
-
'key': key,
|
|
61
|
-
},
|
|
62
|
-
errors: {
|
|
63
|
-
403: `Forbidden`,
|
|
64
|
-
},
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Delete changeset
|
|
69
|
-
* Deletes the changeset with the provided key. If a changeset with the provided key does not exist an error is returned.
|
|
70
|
-
* @param key The key of the changeset to delete.
|
|
71
|
-
* @returns Changeset OK
|
|
72
|
-
* @throws ApiError
|
|
73
|
-
*/
|
|
74
|
-
changesetsDelete(key) {
|
|
75
|
-
return this.httpRequest.request({
|
|
76
|
-
method: 'DELETE',
|
|
77
|
-
url: '/changesets/{key}',
|
|
78
|
-
path: {
|
|
79
|
-
'key': key,
|
|
80
|
-
},
|
|
81
|
-
errors: {
|
|
82
|
-
400: `Bad Request`,
|
|
83
|
-
403: `Forbidden`,
|
|
84
|
-
},
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* Create or replace changeset
|
|
89
|
-
* Creates or replaces a changeset. If a changeset with the provided key exist it is replaced.
|
|
90
|
-
* Otherwise a new changeset is created.
|
|
91
|
-
* @param key The key of the changeset to update or create.
|
|
92
|
-
* @param requestBody The values of the created or replaced changeset.
|
|
93
|
-
* @returns Changeset OK
|
|
94
|
-
* @throws ApiError
|
|
95
|
-
*/
|
|
96
|
-
changesetsPut(key, requestBody) {
|
|
97
|
-
return this.httpRequest.request({
|
|
98
|
-
method: 'PUT',
|
|
99
|
-
url: '/changesets/{key}',
|
|
100
|
-
path: {
|
|
101
|
-
'key': key,
|
|
102
|
-
},
|
|
103
|
-
body: requestBody,
|
|
104
|
-
mediaType: 'application/json',
|
|
105
|
-
errors: {
|
|
106
|
-
400: `Bad Request`,
|
|
107
|
-
403: `Forbidden`,
|
|
108
|
-
},
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* Get changeset item
|
|
113
|
-
* Gets the changeset item for the specified content reference.
|
|
114
|
-
* @param changeset The changeset key
|
|
115
|
-
* @param key The content key
|
|
116
|
-
* @param version The content version
|
|
117
|
-
* @returns ChangesetItem OK
|
|
118
|
-
* @throws ApiError
|
|
119
|
-
*/
|
|
120
|
-
changesetsGetItem(changeset, key, version) {
|
|
121
|
-
return this.httpRequest.request({
|
|
122
|
-
method: 'GET',
|
|
123
|
-
url: '/changesets/{changeset}/items/{key}/versions/{version}',
|
|
124
|
-
path: {
|
|
125
|
-
'changeset': changeset,
|
|
126
|
-
'key': key,
|
|
127
|
-
'version': version,
|
|
128
|
-
},
|
|
129
|
-
errors: {
|
|
130
|
-
403: `Forbidden`,
|
|
131
|
-
},
|
|
132
|
-
});
|
|
133
|
-
}
|
|
134
|
-
/**
|
|
135
|
-
* Delete changeset item
|
|
136
|
-
* Deletes the specified changeset item from the changeset.
|
|
137
|
-
* @param changeset The changeset key
|
|
138
|
-
* @param key The content key
|
|
139
|
-
* @param version The content version
|
|
140
|
-
* @returns ChangesetItem OK
|
|
141
|
-
* @throws ApiError
|
|
142
|
-
*/
|
|
143
|
-
changesetsDeleteItem(changeset, key, version) {
|
|
144
|
-
return this.httpRequest.request({
|
|
145
|
-
method: 'DELETE',
|
|
146
|
-
url: '/changesets/{changeset}/items/{key}/versions/{version}',
|
|
147
|
-
path: {
|
|
148
|
-
'changeset': changeset,
|
|
149
|
-
'key': key,
|
|
150
|
-
'version': version,
|
|
151
|
-
},
|
|
152
|
-
errors: {
|
|
153
|
-
400: `Bad Request`,
|
|
154
|
-
403: `Forbidden`,
|
|
155
|
-
},
|
|
156
|
-
});
|
|
157
|
-
}
|
|
158
|
-
/**
|
|
159
|
-
* List changeset items
|
|
160
|
-
* Lists the available changeset items for the specified changeset using
|
|
161
|
-
* the provided options.
|
|
162
|
-
* @param changeset The changeset key
|
|
163
|
-
* @param pageIndex
|
|
164
|
-
* @param pageSize
|
|
165
|
-
* @returns ChangesetItemPage OK
|
|
166
|
-
* @throws ApiError
|
|
167
|
-
*/
|
|
168
|
-
changesetsListItems(changeset, pageIndex, pageSize) {
|
|
169
|
-
return this.httpRequest.request({
|
|
170
|
-
method: 'GET',
|
|
171
|
-
url: '/changesets/{changeset}/items',
|
|
172
|
-
path: {
|
|
173
|
-
'changeset': changeset,
|
|
174
|
-
},
|
|
175
|
-
query: {
|
|
176
|
-
'pageIndex': pageIndex,
|
|
177
|
-
'pageSize': pageSize,
|
|
178
|
-
},
|
|
179
|
-
errors: {
|
|
180
|
-
403: `Forbidden`,
|
|
181
|
-
},
|
|
182
|
-
});
|
|
183
|
-
}
|
|
184
|
-
/**
|
|
185
|
-
* Create changeset item
|
|
186
|
-
* Creates the given changeset item.
|
|
187
|
-
* @param changeset The changeset key
|
|
188
|
-
* @param requestBody The changeset item
|
|
189
|
-
* @returns ChangesetItem OK
|
|
190
|
-
* @throws ApiError
|
|
191
|
-
*/
|
|
192
|
-
changesetsCreateItem(changeset, requestBody) {
|
|
193
|
-
return this.httpRequest.request({
|
|
194
|
-
method: 'POST',
|
|
195
|
-
url: '/changesets/{changeset}/items',
|
|
196
|
-
path: {
|
|
197
|
-
'changeset': changeset,
|
|
198
|
-
},
|
|
199
|
-
body: requestBody,
|
|
200
|
-
mediaType: 'application/json',
|
|
201
|
-
errors: {
|
|
202
|
-
400: `Bad Request`,
|
|
203
|
-
403: `Forbidden`,
|
|
204
|
-
},
|
|
205
|
-
});
|
|
206
|
-
}
|
|
207
|
-
/**
|
|
208
|
-
* Update changeset item
|
|
209
|
-
* Updates the given changeset item.
|
|
210
|
-
* @param changeset The changeset key
|
|
211
|
-
* @param contentKey The content key
|
|
212
|
-
* @param contentVersion The content version
|
|
213
|
-
* @param requestBody The changeset item
|
|
214
|
-
* @param allowCreate Indicates if a new changeset item should be created if it does not exist
|
|
215
|
-
* @returns ChangesetItem OK
|
|
216
|
-
* @throws ApiError
|
|
217
|
-
*/
|
|
218
|
-
changesetsUpdateItem(changeset, contentKey, contentVersion, requestBody, allowCreate) {
|
|
219
|
-
return this.httpRequest.request({
|
|
220
|
-
method: 'PUT',
|
|
221
|
-
url: '/changesets/{changeset}/items/{contentKey}/versions/{contentVersion}',
|
|
222
|
-
path: {
|
|
223
|
-
'changeset': changeset,
|
|
224
|
-
'contentKey': contentKey,
|
|
225
|
-
'contentVersion': contentVersion,
|
|
226
|
-
},
|
|
227
|
-
query: {
|
|
228
|
-
'allowCreate': allowCreate,
|
|
229
|
-
},
|
|
230
|
-
body: requestBody,
|
|
231
|
-
mediaType: 'application/json',
|
|
232
|
-
errors: {
|
|
233
|
-
400: `Bad Request`,
|
|
234
|
-
403: `Forbidden`,
|
|
235
|
-
},
|
|
236
|
-
});
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
exports.ChangesetsService = ChangesetsService;
|
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
import type { ContentItem } from '../models/ContentItem';
|
|
2
|
-
import type { ContentItemPage } from '../models/ContentItemPage';
|
|
3
|
-
import type { ContentMetadata } from '../models/ContentMetadata';
|
|
4
|
-
import type { ContentMetadataPage } from '../models/ContentMetadataPage';
|
|
5
|
-
import type { CopyContentOptions } from '../models/CopyContentOptions';
|
|
6
|
-
import type { VersionStatus } from '../models/VersionStatus';
|
|
7
|
-
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
8
|
-
import type { BaseHttpRequest } from '../core/BaseHttpRequest';
|
|
9
|
-
export declare class ContentService {
|
|
10
|
-
readonly httpRequest: BaseHttpRequest;
|
|
11
|
-
constructor(httpRequest: BaseHttpRequest);
|
|
12
|
-
/**
|
|
13
|
-
* Create content
|
|
14
|
-
* Create a new content item.
|
|
15
|
-
* @param requestBody The content item that should be created.
|
|
16
|
-
* @param skipValidation Indicates that the content validation should be ignored.
|
|
17
|
-
* @returns ContentItem Created
|
|
18
|
-
* @throws ApiError
|
|
19
|
-
*/
|
|
20
|
-
contentCreate(requestBody: ContentItem, skipValidation?: boolean): CancelablePromise<ContentItem>;
|
|
21
|
-
/**
|
|
22
|
-
* Get content
|
|
23
|
-
* Get shared metadata about the content instance with the provided key.
|
|
24
|
-
* @param key The key of the content to retrieve metadata for.
|
|
25
|
-
* @param allowDeleted Indicates that metadata for a deleted content may be returned.
|
|
26
|
-
* @returns ContentMetadata OK
|
|
27
|
-
* @throws ApiError
|
|
28
|
-
*/
|
|
29
|
-
contentGetMetadata(key: string, allowDeleted?: boolean): CancelablePromise<ContentMetadata>;
|
|
30
|
-
/**
|
|
31
|
-
* Update content
|
|
32
|
-
* Update an existing content item. If a content item with the provided key does not exist an error is returned.
|
|
33
|
-
* @param key The key of the content item to patch.
|
|
34
|
-
* @param requestBody The values of the content item that should be updated.
|
|
35
|
-
* @returns ContentMetadata OK
|
|
36
|
-
* @throws ApiError
|
|
37
|
-
*/
|
|
38
|
-
contentPatchMetadata(key: string, requestBody: ContentMetadata): CancelablePromise<ContentMetadata>;
|
|
39
|
-
/**
|
|
40
|
-
* Delete content
|
|
41
|
-
* Deletes the content item with the provided key. If a content item with the provided key does not exist an error is returned.
|
|
42
|
-
* @param key The key of the content item to delete.
|
|
43
|
-
* @param permanent Indicates that the content item should be permanently deleted immediately or if it should be soft deleted first.
|
|
44
|
-
* @returns ContentMetadata OK
|
|
45
|
-
* @throws ApiError
|
|
46
|
-
*/
|
|
47
|
-
contentDelete(key: string, permanent?: boolean): CancelablePromise<ContentMetadata>;
|
|
48
|
-
/**
|
|
49
|
-
* Get content path
|
|
50
|
-
* Get the content path with the provided key.
|
|
51
|
-
* @param key The key of the content path to retrieve.
|
|
52
|
-
* @param pageIndex
|
|
53
|
-
* @param pageSize
|
|
54
|
-
* @returns ContentMetadataPage OK
|
|
55
|
-
* @throws ApiError
|
|
56
|
-
*/
|
|
57
|
-
contentGetPath(key: string, pageIndex?: number, pageSize?: number): CancelablePromise<ContentMetadataPage>;
|
|
58
|
-
/**
|
|
59
|
-
* List content in container
|
|
60
|
-
* List the content items located in a specific container.
|
|
61
|
-
* @param key The key of the content to retrieve items for.
|
|
62
|
-
* @param contentTypes Indicates which content types or base types to include in the list.
|
|
63
|
-
* @param pageIndex
|
|
64
|
-
* @param pageSize
|
|
65
|
-
* @returns ContentMetadataPage OK
|
|
66
|
-
* @throws ApiError
|
|
67
|
-
*/
|
|
68
|
-
contentListItems(key: string, contentTypes?: Array<string>, pageIndex?: number, pageSize?: number): CancelablePromise<ContentMetadataPage>;
|
|
69
|
-
/**
|
|
70
|
-
* List assets
|
|
71
|
-
* List the assets that belongs to a content instance.
|
|
72
|
-
* @param key The key of the content to retrieve assets for.
|
|
73
|
-
* @param contentTypes Indicates which content types or base types to include in the list.
|
|
74
|
-
* @param pageIndex
|
|
75
|
-
* @param pageSize
|
|
76
|
-
* @returns ContentMetadataPage OK
|
|
77
|
-
* @throws ApiError
|
|
78
|
-
*/
|
|
79
|
-
contentListAssets(key: string, contentTypes?: Array<string>, pageIndex?: number, pageSize?: number): CancelablePromise<ContentMetadataPage>;
|
|
80
|
-
/**
|
|
81
|
-
* Copy content
|
|
82
|
-
* Create a copy of the content item with the provided key.
|
|
83
|
-
* @param key The key of the content item to copy.
|
|
84
|
-
* @param requestBody Optional instructions for how to copy content.
|
|
85
|
-
* @returns ContentMetadata OK
|
|
86
|
-
* @throws ApiError
|
|
87
|
-
*/
|
|
88
|
-
contentCopy(key: string, requestBody?: CopyContentOptions): CancelablePromise<ContentMetadata>;
|
|
89
|
-
/**
|
|
90
|
-
* Restore content
|
|
91
|
-
* Restore the deleted content item with the provided key. If a content item with the provided key is not deleted an error is returned.
|
|
92
|
-
* @param key The key of the content item to undelete.
|
|
93
|
-
* @returns ContentMetadata OK
|
|
94
|
-
* @throws ApiError
|
|
95
|
-
*/
|
|
96
|
-
contentUndelete(key: string): CancelablePromise<ContentMetadata>;
|
|
97
|
-
/**
|
|
98
|
-
* Query versions
|
|
99
|
-
* List content versions based on the provided query options.
|
|
100
|
-
* @param locales Indicates which content locales that should be listed. Use 'NEUTRAL' to include locale-neutral content.
|
|
101
|
-
* Locale must be a valid IETF BCP-47 language tag.
|
|
102
|
-
* @param statuses Indicates which status content versions must have to be listed.
|
|
103
|
-
* @param pageIndex
|
|
104
|
-
* @param pageSize
|
|
105
|
-
* @returns ContentItemPage OK
|
|
106
|
-
* @throws ApiError
|
|
107
|
-
*/
|
|
108
|
-
contentListAllVersions(locales?: Array<string>, statuses?: Array<VersionStatus>, pageIndex?: number, pageSize?: number): CancelablePromise<ContentItemPage>;
|
|
109
|
-
/**
|
|
110
|
-
* List versions
|
|
111
|
-
* List versions of the content item with the provided key and the provided options.
|
|
112
|
-
* @param key
|
|
113
|
-
* @param locales Indicates which content locales that should be listed. Use 'NEUTRAL' to include locale-neutral content.
|
|
114
|
-
* Locale must be a valid IETF BCP-47 language tag.
|
|
115
|
-
* @param statuses Indicates which status content versions must have to be listed.
|
|
116
|
-
* @param pageIndex
|
|
117
|
-
* @param pageSize
|
|
118
|
-
* @returns ContentItemPage OK
|
|
119
|
-
* @throws ApiError
|
|
120
|
-
*/
|
|
121
|
-
contentListVersions(key: string, locales?: Array<string>, statuses?: Array<VersionStatus>, pageIndex?: number, pageSize?: number): CancelablePromise<ContentItemPage>;
|
|
122
|
-
/**
|
|
123
|
-
* Create version
|
|
124
|
-
* Create a new version of a content item.
|
|
125
|
-
* @param key The key of the content item for which a new content version should be created.
|
|
126
|
-
* @param requestBody The content version that should be created.
|
|
127
|
-
* @param skipValidation Indicates that the content validation should be ignored.
|
|
128
|
-
* @returns ContentItem Created
|
|
129
|
-
* @throws ApiError
|
|
130
|
-
*/
|
|
131
|
-
contentCreateVersion(key: string, requestBody: ContentItem, skipValidation?: boolean): CancelablePromise<ContentItem>;
|
|
132
|
-
/**
|
|
133
|
-
* Delete locale
|
|
134
|
-
* Deletes the content item with the provided key. If a content item with the provided key does not exist an error is returned.
|
|
135
|
-
* @param key
|
|
136
|
-
* @param locale
|
|
137
|
-
* @returns ContentItem OK
|
|
138
|
-
* @throws ApiError
|
|
139
|
-
*/
|
|
140
|
-
contentDeleteLocale(key: string, locale?: string): CancelablePromise<ContentItem>;
|
|
141
|
-
/**
|
|
142
|
-
* Get version
|
|
143
|
-
* Get the content item with the provided key and version.
|
|
144
|
-
* @param key
|
|
145
|
-
* @param version
|
|
146
|
-
* @param locale
|
|
147
|
-
* @returns ContentItem OK
|
|
148
|
-
* @throws ApiError
|
|
149
|
-
*/
|
|
150
|
-
contentGetVersion(key: string, version: string, locale?: string): CancelablePromise<ContentItem>;
|
|
151
|
-
/**
|
|
152
|
-
* Update version
|
|
153
|
-
* Update an existing content item. If a content item with the provided key does not exist an error is returned.
|
|
154
|
-
* @param key The key of the content item that should be updated.
|
|
155
|
-
* @param version The version of the content that should be updated.
|
|
156
|
-
* @param requestBody The content information that should be updated.
|
|
157
|
-
* @param locale The locale of the content that should be updated.
|
|
158
|
-
* @param skipValidation Indicates that the content validation should be ignored.
|
|
159
|
-
* @returns ContentItem OK
|
|
160
|
-
* @throws ApiError
|
|
161
|
-
*/
|
|
162
|
-
contentPatchVersion(key: string, version: string, requestBody: ContentItem, locale?: string, skipValidation?: boolean): CancelablePromise<ContentItem>;
|
|
163
|
-
/**
|
|
164
|
-
* Delete version
|
|
165
|
-
* Deletes the content item with the provided key. If a content item with the provided key does not exist an error is returned.
|
|
166
|
-
* @param key
|
|
167
|
-
* @param version
|
|
168
|
-
* @returns ContentItem OK
|
|
169
|
-
* @throws ApiError
|
|
170
|
-
*/
|
|
171
|
-
contentDeleteVersion(key: string, version: string): CancelablePromise<ContentItem>;
|
|
172
|
-
}
|