@remkoj/optimizely-cms-api 2.0.0-pre4 → 2.0.0-pre5
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/dist/api-client.d.ts +35 -0
- package/dist/api-client.js +67 -0
- package/dist/client/CmsIntegrationApiClient.d.ts +24 -24
- package/dist/client/CmsIntegrationApiClient.js +36 -36
- package/dist/client/core/ApiError.d.ts +10 -10
- package/dist/client/core/ApiError.js +15 -15
- package/dist/client/core/ApiRequestOptions.d.ts +13 -13
- package/dist/client/core/ApiRequestOptions.js +2 -2
- package/dist/client/core/ApiResult.d.ts +7 -7
- package/dist/client/core/ApiResult.js +2 -2
- package/dist/client/core/BaseHttpRequest.d.ts +8 -8
- package/dist/client/core/BaseHttpRequest.js +9 -9
- package/dist/client/core/CancelablePromise.d.ts +20 -20
- package/dist/client/core/CancelablePromise.js +116 -116
- package/dist/client/core/FetchHttpRequest.d.ts +14 -14
- package/dist/client/core/FetchHttpRequest.js +20 -20
- package/dist/client/core/OpenAPI.d.ts +16 -16
- package/dist/client/core/OpenAPI.js +14 -14
- package/dist/client/core/request.d.ts +30 -30
- package/dist/client/core/request.js +294 -294
- package/dist/client/index.d.ts +81 -81
- package/dist/client/index.js +48 -48
- package/dist/client/models/BinaryProperty.d.ts +8 -8
- package/dist/client/models/BinaryProperty.js +2 -2
- package/dist/client/models/BooleanProperty.d.ts +5 -5
- package/dist/client/models/BooleanProperty.js +2 -2
- package/dist/client/models/Changeset.d.ts +26 -26
- package/dist/client/models/Changeset.js +2 -2
- package/dist/client/models/ChangesetItem.d.ts +11 -11
- package/dist/client/models/ChangesetItem.js +2 -2
- package/dist/client/models/ChangesetItemPage.d.ts +19 -19
- package/dist/client/models/ChangesetItemPage.js +2 -2
- package/dist/client/models/ChangesetPage.d.ts +19 -19
- package/dist/client/models/ChangesetPage.js +2 -2
- package/dist/client/models/ComponentListItem.d.ts +7 -10
- package/dist/client/models/ComponentListItem.js +2 -2
- package/dist/client/models/ComponentProperty.d.ts +7 -10
- package/dist/client/models/ComponentProperty.js +2 -2
- package/dist/client/models/ContentBaseType.d.ts +11 -11
- package/dist/client/models/ContentBaseType.js +19 -19
- package/dist/client/models/ContentComponent.d.ts +34 -34
- package/dist/client/models/ContentComponent.js +2 -2
- package/dist/client/models/ContentItem.d.ts +60 -60
- package/dist/client/models/ContentItem.js +2 -2
- package/dist/client/models/ContentItemListWithContentTypes.d.ts +27 -27
- package/dist/client/models/ContentItemListWithContentTypes.js +2 -2
- package/dist/client/models/ContentItemPage.d.ts +19 -19
- package/dist/client/models/ContentItemPage.js +2 -2
- package/dist/client/models/ContentItemWithContentTypes.d.ts +12 -12
- package/dist/client/models/ContentItemWithContentTypes.js +2 -2
- package/dist/client/models/ContentListItem.d.ts +8 -14
- package/dist/client/models/ContentListItem.js +2 -2
- package/dist/client/models/ContentLocaleInfo.d.ts +19 -11
- package/dist/client/models/ContentLocaleInfo.js +2 -2
- package/dist/client/models/ContentMetadata.d.ts +38 -46
- package/dist/client/models/ContentMetadata.js +2 -2
- package/dist/client/models/ContentMetadataPage.d.ts +19 -19
- package/dist/client/models/ContentMetadataPage.js +2 -2
- package/dist/client/models/ContentProperty.d.ts +8 -14
- package/dist/client/models/ContentProperty.js +2 -2
- package/dist/client/models/ContentReference.d.ts +17 -17
- package/dist/client/models/ContentReference.js +2 -2
- package/dist/client/models/ContentReferenceListItem.d.ts +8 -14
- package/dist/client/models/ContentReferenceListItem.js +2 -2
- package/dist/client/models/ContentReferenceProperty.d.ts +8 -14
- package/dist/client/models/ContentReferenceProperty.js +2 -2
- package/dist/client/models/ContentType.d.ts +79 -79
- package/dist/client/models/ContentType.js +2 -2
- package/dist/client/models/ContentTypeFeature.d.ts +10 -10
- package/dist/client/models/ContentTypeFeature.js +18 -18
- package/dist/client/models/ContentTypePage.d.ts +19 -19
- package/dist/client/models/ContentTypePage.js +2 -2
- package/dist/client/models/ContentTypeProperty.d.ts +47 -47
- package/dist/client/models/ContentTypeProperty.js +2 -2
- package/dist/client/models/ContentTypeUsage.d.ts +7 -7
- package/dist/client/models/ContentTypeUsage.js +15 -15
- package/dist/client/models/CopyContentOptions.d.ts +21 -21
- package/dist/client/models/CopyContentOptions.js +2 -2
- package/dist/client/models/DateTimeListItem.d.ts +8 -14
- package/dist/client/models/DateTimeListItem.js +2 -2
- package/dist/client/models/DateTimeProperty.d.ts +8 -14
- package/dist/client/models/DateTimeProperty.js +2 -2
- package/dist/client/models/DisplaySetting.d.ts +22 -22
- package/dist/client/models/DisplaySetting.js +2 -2
- package/dist/client/models/DisplaySettingChoice.d.ts +13 -13
- package/dist/client/models/DisplaySettingChoice.js +2 -2
- package/dist/client/models/DisplayTemplate.d.ts +49 -49
- package/dist/client/models/DisplayTemplate.js +2 -2
- package/dist/client/models/DisplayTemplatePage.d.ts +19 -19
- package/dist/client/models/DisplayTemplatePage.js +2 -2
- package/dist/client/models/DoubleEnumerationSettings.d.ts +9 -9
- package/dist/client/models/DoubleEnumerationSettings.js +2 -2
- package/dist/client/models/FloatListItem.d.ts +10 -16
- package/dist/client/models/FloatListItem.js +2 -2
- package/dist/client/models/FloatProperty.d.ts +10 -16
- package/dist/client/models/FloatProperty.js +2 -2
- package/dist/client/models/ImageDescriptor.d.ts +17 -17
- package/dist/client/models/ImageDescriptor.js +2 -2
- package/dist/client/models/ImportPackageMessage.d.ts +17 -17
- package/dist/client/models/ImportPackageMessage.js +2 -2
- package/dist/client/models/ImportPackageResult.d.ts +22 -22
- package/dist/client/models/ImportPackageResult.js +2 -2
- package/dist/client/models/IndexingType.d.ts +8 -8
- package/dist/client/models/IndexingType.js +16 -16
- package/dist/client/models/Int32EnumerationSettings.d.ts +9 -9
- package/dist/client/models/Int32EnumerationSettings.js +2 -2
- package/dist/client/models/IntegerListItem.d.ts +10 -16
- package/dist/client/models/IntegerListItem.js +2 -2
- package/dist/client/models/IntegerProperty.d.ts +10 -16
- package/dist/client/models/IntegerProperty.js +2 -2
- package/dist/client/models/JsonStringProperty.d.ts +5 -5
- package/dist/client/models/JsonStringProperty.js +2 -2
- package/dist/client/models/ListProperty.d.ts +26 -26
- package/dist/client/models/ListProperty.js +2 -2
- package/dist/client/models/ListPropertyItem.d.ts +11 -11
- package/dist/client/models/ListPropertyItem.js +2 -2
- package/dist/client/models/LocaleStatus.d.ts +7 -7
- package/dist/client/models/LocaleStatus.js +15 -15
- package/dist/client/models/Manifest.d.ts +24 -24
- package/dist/client/models/Manifest.js +2 -2
- package/dist/client/models/OauthToken.d.ts +18 -18
- package/dist/client/models/OauthToken.js +2 -2
- package/dist/client/models/OauthTokenError.d.ts +13 -13
- package/dist/client/models/OauthTokenError.js +2 -2
- package/dist/client/models/OauthTokenRequest.d.ts +21 -21
- package/dist/client/models/OauthTokenRequest.js +2 -2
- package/dist/client/models/PackageJob.d.ts +28 -28
- package/dist/client/models/PackageJob.js +2 -2
- package/dist/client/models/PackageJobMessage.d.ts +17 -17
- package/dist/client/models/PackageJobMessage.js +2 -2
- package/dist/client/models/PackageJobStatus.d.ts +4 -4
- package/dist/client/models/PackageJobStatus.js +2 -2
- package/dist/client/models/ProblemDetails.d.ts +1 -1
- package/dist/client/models/ProblemDetails.js +2 -2
- package/dist/client/models/PropertyDataType.d.ts +18 -18
- package/dist/client/models/PropertyDataType.js +26 -26
- package/dist/client/models/PropertyFormat.d.ts +34 -34
- package/dist/client/models/PropertyFormat.js +2 -2
- package/dist/client/models/PropertyFormatPage.d.ts +19 -19
- package/dist/client/models/PropertyFormatPage.js +2 -2
- package/dist/client/models/PropertyGroup.d.ts +21 -21
- package/dist/client/models/PropertyGroup.js +2 -2
- package/dist/client/models/PropertyGroupPage.d.ts +19 -19
- package/dist/client/models/PropertyGroupPage.js +2 -2
- package/dist/client/models/StringEnumerationSettings.d.ts +9 -9
- package/dist/client/models/StringEnumerationSettings.js +2 -2
- package/dist/client/models/StringListItem.d.ts +11 -14
- package/dist/client/models/StringListItem.js +2 -2
- package/dist/client/models/StringProperty.d.ts +11 -14
- package/dist/client/models/StringProperty.js +2 -2
- package/dist/client/models/UrlListItem.d.ts +5 -5
- package/dist/client/models/UrlListItem.js +2 -2
- package/dist/client/models/UrlProperty.d.ts +5 -5
- package/dist/client/models/UrlProperty.js +2 -2
- package/dist/client/models/VersionStatus.d.ts +12 -12
- package/dist/client/models/VersionStatus.js +20 -20
- package/dist/client/services/ChangesetsService.d.ts +105 -105
- package/dist/client/services/ChangesetsService.js +239 -239
- package/dist/client/services/ContentService.d.ts +172 -172
- package/dist/client/services/ContentService.js +409 -409
- package/dist/client/services/ContentTypesService.d.ts +66 -66
- package/dist/client/services/ContentTypesService.js +149 -149
- package/dist/client/services/DisplayTemplatesService.d.ts +60 -60
- package/dist/client/services/DisplayTemplatesService.js +135 -135
- package/dist/client/services/OauthService.d.ts +17 -17
- package/dist/client/services/OauthService.js +28 -28
- package/dist/client/services/PackagesService.d.ts +41 -41
- package/dist/client/services/PackagesService.js +80 -80
- package/dist/client/services/PropertyFormatsService.d.ts +26 -26
- package/dist/client/services/PropertyFormatsService.js +53 -53
- package/dist/client/services/PropertyGroupsService.d.ts +61 -61
- package/dist/client/services/PropertyGroupsService.js +135 -135
- package/dist/config.d.ts +8 -8
- package/dist/config.js +40 -40
- package/dist/getaccesstoken.d.ts +3 -0
- package/dist/getaccesstoken.js +43 -0
- package/dist/index.d.ts +16 -15
- package/dist/index.js +52 -95
- package/dist/types.d.ts +8 -0
- package/dist/types.js +2 -0
- package/dist/version.json +5 -0
- package/package.json +11 -7
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
import type { ContentType } from '../models/ContentType';
|
|
2
|
-
import type { ContentTypePage } from '../models/ContentTypePage';
|
|
3
|
-
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
4
|
-
import type { BaseHttpRequest } from '../core/BaseHttpRequest';
|
|
5
|
-
export declare class ContentTypesService {
|
|
6
|
-
readonly httpRequest: BaseHttpRequest;
|
|
7
|
-
constructor(httpRequest: BaseHttpRequest);
|
|
8
|
-
/**
|
|
9
|
-
* List content types
|
|
10
|
-
* List content types using the provided options.
|
|
11
|
-
* @param forContainerType Only include types that are available for creation under the provided container type
|
|
12
|
-
* @param sources Indicates which sources should be included when listing content types.
|
|
13
|
-
* Use All to include content types from all sources or
|
|
14
|
-
* Default to include content types without a specific sources.
|
|
15
|
-
* @param pageIndex
|
|
16
|
-
* @param pageSize
|
|
17
|
-
* @returns ContentTypePage
|
|
18
|
-
* @throws ApiError
|
|
19
|
-
*/
|
|
20
|
-
contentTypesList(forContainerType?: string, sources?: Array<string>, pageIndex?: number, pageSize?: number): CancelablePromise<ContentTypePage>;
|
|
21
|
-
/**
|
|
22
|
-
* Create content type
|
|
23
|
-
* Create a new content type.
|
|
24
|
-
* @param requestBody The content type that should be created.
|
|
25
|
-
* @returns ContentType
|
|
26
|
-
* @throws ApiError
|
|
27
|
-
*/
|
|
28
|
-
contentTypesCreate(requestBody: ContentType): CancelablePromise<ContentType>;
|
|
29
|
-
/**
|
|
30
|
-
* Get content type
|
|
31
|
-
* Get the content type with the provided key.
|
|
32
|
-
* @param key The key of the content type to retrieve.
|
|
33
|
-
* @returns ContentType
|
|
34
|
-
* @throws ApiError
|
|
35
|
-
*/
|
|
36
|
-
contentTypesGet(key: string): CancelablePromise<ContentType>;
|
|
37
|
-
/**
|
|
38
|
-
* Create or replace content type
|
|
39
|
-
* Create or replace a content type. If a content type with the provided key exist it is replaced.
|
|
40
|
-
* Otherwise a new content type is created.
|
|
41
|
-
* @param key The key of the content type to update or create.
|
|
42
|
-
* @param requestBody The values of the created or replaced content type.
|
|
43
|
-
* @param ignoreDataLossWarnings Update the content type even though the changes might result in data loss.
|
|
44
|
-
* @returns ContentType
|
|
45
|
-
* @throws ApiError
|
|
46
|
-
*/
|
|
47
|
-
contentTypesPut(key: string, requestBody: ContentType, ignoreDataLossWarnings?: boolean): CancelablePromise<ContentType>;
|
|
48
|
-
/**
|
|
49
|
-
* Update content type
|
|
50
|
-
* Update an existing content type. If a content type with the provided key does not exist an error is returned.
|
|
51
|
-
* @param key The key of the content type to patch.
|
|
52
|
-
* @param requestBody The values of the content type that should be updated.
|
|
53
|
-
* @param ignoreDataLossWarnings Update the content type even though the changes might result in data loss.
|
|
54
|
-
* @returns ContentType
|
|
55
|
-
* @throws ApiError
|
|
56
|
-
*/
|
|
57
|
-
contentTypesPatch(key: string, requestBody: ContentType, ignoreDataLossWarnings?: boolean): CancelablePromise<ContentType>;
|
|
58
|
-
/**
|
|
59
|
-
* Delete content type
|
|
60
|
-
* Deletes the content type with the provided key. If a content type with the provided key does not exist an error is returned.
|
|
61
|
-
* @param key The key of the content type to delete.
|
|
62
|
-
* @returns ContentType
|
|
63
|
-
* @throws ApiError
|
|
64
|
-
*/
|
|
65
|
-
contentTypesDelete(key: string): CancelablePromise<ContentType>;
|
|
66
|
-
}
|
|
1
|
+
import type { ContentType } from '../models/ContentType';
|
|
2
|
+
import type { ContentTypePage } from '../models/ContentTypePage';
|
|
3
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
4
|
+
import type { BaseHttpRequest } from '../core/BaseHttpRequest';
|
|
5
|
+
export declare class ContentTypesService {
|
|
6
|
+
readonly httpRequest: BaseHttpRequest;
|
|
7
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
8
|
+
/**
|
|
9
|
+
* List content types
|
|
10
|
+
* List content types using the provided options.
|
|
11
|
+
* @param forContainerType Only include types that are available for creation under the provided container type
|
|
12
|
+
* @param sources Indicates which sources should be included when listing content types.
|
|
13
|
+
* Use All to include content types from all sources or
|
|
14
|
+
* Default to include content types without a specific sources.
|
|
15
|
+
* @param pageIndex
|
|
16
|
+
* @param pageSize
|
|
17
|
+
* @returns ContentTypePage OK
|
|
18
|
+
* @throws ApiError
|
|
19
|
+
*/
|
|
20
|
+
contentTypesList(forContainerType?: string, sources?: Array<string>, pageIndex?: number, pageSize?: number): CancelablePromise<ContentTypePage>;
|
|
21
|
+
/**
|
|
22
|
+
* Create content type
|
|
23
|
+
* Create a new content type.
|
|
24
|
+
* @param requestBody The content type that should be created.
|
|
25
|
+
* @returns ContentType OK
|
|
26
|
+
* @throws ApiError
|
|
27
|
+
*/
|
|
28
|
+
contentTypesCreate(requestBody: ContentType): CancelablePromise<ContentType>;
|
|
29
|
+
/**
|
|
30
|
+
* Get content type
|
|
31
|
+
* Get the content type with the provided key.
|
|
32
|
+
* @param key The key of the content type to retrieve.
|
|
33
|
+
* @returns ContentType OK
|
|
34
|
+
* @throws ApiError
|
|
35
|
+
*/
|
|
36
|
+
contentTypesGet(key: string): CancelablePromise<ContentType>;
|
|
37
|
+
/**
|
|
38
|
+
* Create or replace content type
|
|
39
|
+
* Create or replace a content type. If a content type with the provided key exist it is replaced.
|
|
40
|
+
* Otherwise a new content type is created.
|
|
41
|
+
* @param key The key of the content type to update or create.
|
|
42
|
+
* @param requestBody The values of the created or replaced content type.
|
|
43
|
+
* @param ignoreDataLossWarnings Update the content type even though the changes might result in data loss.
|
|
44
|
+
* @returns ContentType OK
|
|
45
|
+
* @throws ApiError
|
|
46
|
+
*/
|
|
47
|
+
contentTypesPut(key: string, requestBody: ContentType, ignoreDataLossWarnings?: boolean): CancelablePromise<ContentType>;
|
|
48
|
+
/**
|
|
49
|
+
* Update content type
|
|
50
|
+
* Update an existing content type. If a content type with the provided key does not exist an error is returned.
|
|
51
|
+
* @param key The key of the content type to patch.
|
|
52
|
+
* @param requestBody The values of the content type that should be updated.
|
|
53
|
+
* @param ignoreDataLossWarnings Update the content type even though the changes might result in data loss.
|
|
54
|
+
* @returns ContentType OK
|
|
55
|
+
* @throws ApiError
|
|
56
|
+
*/
|
|
57
|
+
contentTypesPatch(key: string, requestBody: ContentType, ignoreDataLossWarnings?: boolean): CancelablePromise<ContentType>;
|
|
58
|
+
/**
|
|
59
|
+
* Delete content type
|
|
60
|
+
* Deletes the content type with the provided key. If a content type with the provided key does not exist an error is returned.
|
|
61
|
+
* @param key The key of the content type to delete.
|
|
62
|
+
* @returns ContentType OK
|
|
63
|
+
* @throws ApiError
|
|
64
|
+
*/
|
|
65
|
+
contentTypesDelete(key: string): CancelablePromise<ContentType>;
|
|
66
|
+
}
|
|
@@ -1,149 +1,149 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ContentTypesService = void 0;
|
|
4
|
-
class ContentTypesService {
|
|
5
|
-
constructor(httpRequest) {
|
|
6
|
-
this.httpRequest = httpRequest;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* List content types
|
|
10
|
-
* List content types using the provided options.
|
|
11
|
-
* @param forContainerType Only include types that are available for creation under the provided container type
|
|
12
|
-
* @param sources Indicates which sources should be included when listing content types.
|
|
13
|
-
* Use All to include content types from all sources or
|
|
14
|
-
* Default to include content types without a specific sources.
|
|
15
|
-
* @param pageIndex
|
|
16
|
-
* @param pageSize
|
|
17
|
-
* @returns ContentTypePage
|
|
18
|
-
* @throws ApiError
|
|
19
|
-
*/
|
|
20
|
-
contentTypesList(forContainerType, sources, pageIndex, pageSize) {
|
|
21
|
-
return this.httpRequest.request({
|
|
22
|
-
method: 'GET',
|
|
23
|
-
url: '/contenttypes',
|
|
24
|
-
query: {
|
|
25
|
-
'forContainerType': forContainerType,
|
|
26
|
-
'sources': sources,
|
|
27
|
-
'pageIndex': pageIndex,
|
|
28
|
-
'pageSize': pageSize,
|
|
29
|
-
},
|
|
30
|
-
errors: {
|
|
31
|
-
403: `Forbidden`,
|
|
32
|
-
},
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Create content type
|
|
37
|
-
* Create a new content type.
|
|
38
|
-
* @param requestBody The content type that should be created.
|
|
39
|
-
* @returns ContentType
|
|
40
|
-
* @throws ApiError
|
|
41
|
-
*/
|
|
42
|
-
contentTypesCreate(requestBody) {
|
|
43
|
-
return this.httpRequest.request({
|
|
44
|
-
method: 'POST',
|
|
45
|
-
url: '/contenttypes',
|
|
46
|
-
body: requestBody,
|
|
47
|
-
mediaType: 'application/json',
|
|
48
|
-
errors: {
|
|
49
|
-
400: `Bad Request`,
|
|
50
|
-
403: `Forbidden`,
|
|
51
|
-
},
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Get content type
|
|
56
|
-
* Get the content type with the provided key.
|
|
57
|
-
* @param key The key of the content type to retrieve.
|
|
58
|
-
* @returns ContentType
|
|
59
|
-
* @throws ApiError
|
|
60
|
-
*/
|
|
61
|
-
contentTypesGet(key) {
|
|
62
|
-
return this.httpRequest.request({
|
|
63
|
-
method: 'GET',
|
|
64
|
-
url: '/contenttypes/{key}',
|
|
65
|
-
path: {
|
|
66
|
-
'key': key,
|
|
67
|
-
},
|
|
68
|
-
errors: {
|
|
69
|
-
403: `Forbidden`,
|
|
70
|
-
},
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* Create or replace content type
|
|
75
|
-
* Create or replace a content type. If a content type with the provided key exist it is replaced.
|
|
76
|
-
* Otherwise a new content type is created.
|
|
77
|
-
* @param key The key of the content type to update or create.
|
|
78
|
-
* @param requestBody The values of the created or replaced content type.
|
|
79
|
-
* @param ignoreDataLossWarnings Update the content type even though the changes might result in data loss.
|
|
80
|
-
* @returns ContentType
|
|
81
|
-
* @throws ApiError
|
|
82
|
-
*/
|
|
83
|
-
contentTypesPut(key, requestBody, ignoreDataLossWarnings) {
|
|
84
|
-
return this.httpRequest.request({
|
|
85
|
-
method: 'PUT',
|
|
86
|
-
url: '/contenttypes/{key}',
|
|
87
|
-
path: {
|
|
88
|
-
'key': key,
|
|
89
|
-
},
|
|
90
|
-
query: {
|
|
91
|
-
'ignoreDataLossWarnings': ignoreDataLossWarnings,
|
|
92
|
-
},
|
|
93
|
-
body: requestBody,
|
|
94
|
-
mediaType: 'application/json',
|
|
95
|
-
errors: {
|
|
96
|
-
400: `Bad Request`,
|
|
97
|
-
403: `Forbidden`,
|
|
98
|
-
},
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* Update content type
|
|
103
|
-
* Update an existing content type. If a content type with the provided key does not exist an error is returned.
|
|
104
|
-
* @param key The key of the content type to patch.
|
|
105
|
-
* @param requestBody The values of the content type that should be updated.
|
|
106
|
-
* @param ignoreDataLossWarnings Update the content type even though the changes might result in data loss.
|
|
107
|
-
* @returns ContentType
|
|
108
|
-
* @throws ApiError
|
|
109
|
-
*/
|
|
110
|
-
contentTypesPatch(key, requestBody, ignoreDataLossWarnings) {
|
|
111
|
-
return this.httpRequest.request({
|
|
112
|
-
method: 'PATCH',
|
|
113
|
-
url: '/contenttypes/{key}',
|
|
114
|
-
path: {
|
|
115
|
-
'key': key,
|
|
116
|
-
},
|
|
117
|
-
query: {
|
|
118
|
-
'ignoreDataLossWarnings': ignoreDataLossWarnings,
|
|
119
|
-
},
|
|
120
|
-
body: requestBody,
|
|
121
|
-
mediaType: 'application/merge-patch+json',
|
|
122
|
-
errors: {
|
|
123
|
-
400: `Bad Request`,
|
|
124
|
-
403: `Forbidden`,
|
|
125
|
-
},
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
/**
|
|
129
|
-
* Delete content type
|
|
130
|
-
* Deletes the content type with the provided key. If a content type with the provided key does not exist an error is returned.
|
|
131
|
-
* @param key The key of the content type to delete.
|
|
132
|
-
* @returns ContentType
|
|
133
|
-
* @throws ApiError
|
|
134
|
-
*/
|
|
135
|
-
contentTypesDelete(key) {
|
|
136
|
-
return this.httpRequest.request({
|
|
137
|
-
method: 'DELETE',
|
|
138
|
-
url: '/contenttypes/{key}',
|
|
139
|
-
path: {
|
|
140
|
-
'key': key,
|
|
141
|
-
},
|
|
142
|
-
errors: {
|
|
143
|
-
400: `Bad Request`,
|
|
144
|
-
403: `Forbidden`,
|
|
145
|
-
},
|
|
146
|
-
});
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
exports.ContentTypesService = ContentTypesService;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ContentTypesService = void 0;
|
|
4
|
+
class ContentTypesService {
|
|
5
|
+
constructor(httpRequest) {
|
|
6
|
+
this.httpRequest = httpRequest;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* List content types
|
|
10
|
+
* List content types using the provided options.
|
|
11
|
+
* @param forContainerType Only include types that are available for creation under the provided container type
|
|
12
|
+
* @param sources Indicates which sources should be included when listing content types.
|
|
13
|
+
* Use All to include content types from all sources or
|
|
14
|
+
* Default to include content types without a specific sources.
|
|
15
|
+
* @param pageIndex
|
|
16
|
+
* @param pageSize
|
|
17
|
+
* @returns ContentTypePage OK
|
|
18
|
+
* @throws ApiError
|
|
19
|
+
*/
|
|
20
|
+
contentTypesList(forContainerType, sources, pageIndex, pageSize) {
|
|
21
|
+
return this.httpRequest.request({
|
|
22
|
+
method: 'GET',
|
|
23
|
+
url: '/contenttypes',
|
|
24
|
+
query: {
|
|
25
|
+
'forContainerType': forContainerType,
|
|
26
|
+
'sources': sources,
|
|
27
|
+
'pageIndex': pageIndex,
|
|
28
|
+
'pageSize': pageSize,
|
|
29
|
+
},
|
|
30
|
+
errors: {
|
|
31
|
+
403: `Forbidden`,
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Create content type
|
|
37
|
+
* Create a new content type.
|
|
38
|
+
* @param requestBody The content type that should be created.
|
|
39
|
+
* @returns ContentType OK
|
|
40
|
+
* @throws ApiError
|
|
41
|
+
*/
|
|
42
|
+
contentTypesCreate(requestBody) {
|
|
43
|
+
return this.httpRequest.request({
|
|
44
|
+
method: 'POST',
|
|
45
|
+
url: '/contenttypes',
|
|
46
|
+
body: requestBody,
|
|
47
|
+
mediaType: 'application/json',
|
|
48
|
+
errors: {
|
|
49
|
+
400: `Bad Request`,
|
|
50
|
+
403: `Forbidden`,
|
|
51
|
+
},
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Get content type
|
|
56
|
+
* Get the content type with the provided key.
|
|
57
|
+
* @param key The key of the content type to retrieve.
|
|
58
|
+
* @returns ContentType OK
|
|
59
|
+
* @throws ApiError
|
|
60
|
+
*/
|
|
61
|
+
contentTypesGet(key) {
|
|
62
|
+
return this.httpRequest.request({
|
|
63
|
+
method: 'GET',
|
|
64
|
+
url: '/contenttypes/{key}',
|
|
65
|
+
path: {
|
|
66
|
+
'key': key,
|
|
67
|
+
},
|
|
68
|
+
errors: {
|
|
69
|
+
403: `Forbidden`,
|
|
70
|
+
},
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Create or replace content type
|
|
75
|
+
* Create or replace a content type. If a content type with the provided key exist it is replaced.
|
|
76
|
+
* Otherwise a new content type is created.
|
|
77
|
+
* @param key The key of the content type to update or create.
|
|
78
|
+
* @param requestBody The values of the created or replaced content type.
|
|
79
|
+
* @param ignoreDataLossWarnings Update the content type even though the changes might result in data loss.
|
|
80
|
+
* @returns ContentType OK
|
|
81
|
+
* @throws ApiError
|
|
82
|
+
*/
|
|
83
|
+
contentTypesPut(key, requestBody, ignoreDataLossWarnings) {
|
|
84
|
+
return this.httpRequest.request({
|
|
85
|
+
method: 'PUT',
|
|
86
|
+
url: '/contenttypes/{key}',
|
|
87
|
+
path: {
|
|
88
|
+
'key': key,
|
|
89
|
+
},
|
|
90
|
+
query: {
|
|
91
|
+
'ignoreDataLossWarnings': ignoreDataLossWarnings,
|
|
92
|
+
},
|
|
93
|
+
body: requestBody,
|
|
94
|
+
mediaType: 'application/json',
|
|
95
|
+
errors: {
|
|
96
|
+
400: `Bad Request`,
|
|
97
|
+
403: `Forbidden`,
|
|
98
|
+
},
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Update content type
|
|
103
|
+
* Update an existing content type. If a content type with the provided key does not exist an error is returned.
|
|
104
|
+
* @param key The key of the content type to patch.
|
|
105
|
+
* @param requestBody The values of the content type that should be updated.
|
|
106
|
+
* @param ignoreDataLossWarnings Update the content type even though the changes might result in data loss.
|
|
107
|
+
* @returns ContentType OK
|
|
108
|
+
* @throws ApiError
|
|
109
|
+
*/
|
|
110
|
+
contentTypesPatch(key, requestBody, ignoreDataLossWarnings) {
|
|
111
|
+
return this.httpRequest.request({
|
|
112
|
+
method: 'PATCH',
|
|
113
|
+
url: '/contenttypes/{key}',
|
|
114
|
+
path: {
|
|
115
|
+
'key': key,
|
|
116
|
+
},
|
|
117
|
+
query: {
|
|
118
|
+
'ignoreDataLossWarnings': ignoreDataLossWarnings,
|
|
119
|
+
},
|
|
120
|
+
body: requestBody,
|
|
121
|
+
mediaType: 'application/merge-patch+json',
|
|
122
|
+
errors: {
|
|
123
|
+
400: `Bad Request`,
|
|
124
|
+
403: `Forbidden`,
|
|
125
|
+
},
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Delete content type
|
|
130
|
+
* Deletes the content type with the provided key. If a content type with the provided key does not exist an error is returned.
|
|
131
|
+
* @param key The key of the content type to delete.
|
|
132
|
+
* @returns ContentType OK
|
|
133
|
+
* @throws ApiError
|
|
134
|
+
*/
|
|
135
|
+
contentTypesDelete(key) {
|
|
136
|
+
return this.httpRequest.request({
|
|
137
|
+
method: 'DELETE',
|
|
138
|
+
url: '/contenttypes/{key}',
|
|
139
|
+
path: {
|
|
140
|
+
'key': key,
|
|
141
|
+
},
|
|
142
|
+
errors: {
|
|
143
|
+
400: `Bad Request`,
|
|
144
|
+
403: `Forbidden`,
|
|
145
|
+
},
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
exports.ContentTypesService = ContentTypesService;
|
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
import type { DisplayTemplate } from '../models/DisplayTemplate';
|
|
2
|
-
import type { DisplayTemplatePage } from '../models/DisplayTemplatePage';
|
|
3
|
-
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
4
|
-
import type { BaseHttpRequest } from '../core/BaseHttpRequest';
|
|
5
|
-
export declare class DisplayTemplatesService {
|
|
6
|
-
readonly httpRequest: BaseHttpRequest;
|
|
7
|
-
constructor(httpRequest: BaseHttpRequest);
|
|
8
|
-
/**
|
|
9
|
-
* List display templates
|
|
10
|
-
* List display templates using the provided options.
|
|
11
|
-
* @param pageIndex
|
|
12
|
-
* @param pageSize
|
|
13
|
-
* @returns DisplayTemplatePage
|
|
14
|
-
* @throws ApiError
|
|
15
|
-
*/
|
|
16
|
-
displayTemplatesList(pageIndex?: number, pageSize?: number): CancelablePromise<DisplayTemplatePage>;
|
|
17
|
-
/**
|
|
18
|
-
* Create display template
|
|
19
|
-
* Create a new display template.
|
|
20
|
-
* @param requestBody The display template that should be created.
|
|
21
|
-
* @returns DisplayTemplate
|
|
22
|
-
* @throws ApiError
|
|
23
|
-
*/
|
|
24
|
-
displayTemplatesCreate(requestBody: DisplayTemplate): CancelablePromise<DisplayTemplate>;
|
|
25
|
-
/**
|
|
26
|
-
* Get display template
|
|
27
|
-
* Get the display template with the provided key.
|
|
28
|
-
* @param key The key of the display template to retrieve.
|
|
29
|
-
* @returns DisplayTemplate
|
|
30
|
-
* @throws ApiError
|
|
31
|
-
*/
|
|
32
|
-
displayTemplatesGet(key: string): CancelablePromise<DisplayTemplate>;
|
|
33
|
-
/**
|
|
34
|
-
* Create or replace a display template
|
|
35
|
-
* Create or replace a display template. If a display template with the provided key exist it is replaced.
|
|
36
|
-
* Otherwise a new display template is created.
|
|
37
|
-
* @param key The key of the display template to update or create.
|
|
38
|
-
* @param requestBody The values of the created or replaced display template.
|
|
39
|
-
* @returns DisplayTemplate
|
|
40
|
-
* @throws ApiError
|
|
41
|
-
*/
|
|
42
|
-
displayTemplatesPut(key: string, requestBody: DisplayTemplate): CancelablePromise<DisplayTemplate>;
|
|
43
|
-
/**
|
|
44
|
-
* Update display template
|
|
45
|
-
* Update an existing display template.
|
|
46
|
-
* @param key The key of the display template to patch.
|
|
47
|
-
* @param requestBody The values of the display template that should be updated.
|
|
48
|
-
* @returns DisplayTemplate
|
|
49
|
-
* @throws ApiError
|
|
50
|
-
*/
|
|
51
|
-
displayTemplatesPatch(key: string, requestBody: DisplayTemplate): CancelablePromise<DisplayTemplate>;
|
|
52
|
-
/**
|
|
53
|
-
* Delete display template
|
|
54
|
-
* Deletes the display template with the provided key.
|
|
55
|
-
* @param key The key of the display template to delete.
|
|
56
|
-
* @returns DisplayTemplate
|
|
57
|
-
* @throws ApiError
|
|
58
|
-
*/
|
|
59
|
-
displayTemplatesDelete(key: string): CancelablePromise<DisplayTemplate>;
|
|
60
|
-
}
|
|
1
|
+
import type { DisplayTemplate } from '../models/DisplayTemplate';
|
|
2
|
+
import type { DisplayTemplatePage } from '../models/DisplayTemplatePage';
|
|
3
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
4
|
+
import type { BaseHttpRequest } from '../core/BaseHttpRequest';
|
|
5
|
+
export declare class DisplayTemplatesService {
|
|
6
|
+
readonly httpRequest: BaseHttpRequest;
|
|
7
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
8
|
+
/**
|
|
9
|
+
* List display templates
|
|
10
|
+
* List display templates using the provided options.
|
|
11
|
+
* @param pageIndex
|
|
12
|
+
* @param pageSize
|
|
13
|
+
* @returns DisplayTemplatePage OK
|
|
14
|
+
* @throws ApiError
|
|
15
|
+
*/
|
|
16
|
+
displayTemplatesList(pageIndex?: number, pageSize?: number): CancelablePromise<DisplayTemplatePage>;
|
|
17
|
+
/**
|
|
18
|
+
* Create display template
|
|
19
|
+
* Create a new display template.
|
|
20
|
+
* @param requestBody The display template that should be created.
|
|
21
|
+
* @returns DisplayTemplate OK
|
|
22
|
+
* @throws ApiError
|
|
23
|
+
*/
|
|
24
|
+
displayTemplatesCreate(requestBody: DisplayTemplate): CancelablePromise<DisplayTemplate>;
|
|
25
|
+
/**
|
|
26
|
+
* Get display template
|
|
27
|
+
* Get the display template with the provided key.
|
|
28
|
+
* @param key The key of the display template to retrieve.
|
|
29
|
+
* @returns DisplayTemplate OK
|
|
30
|
+
* @throws ApiError
|
|
31
|
+
*/
|
|
32
|
+
displayTemplatesGet(key: string): CancelablePromise<DisplayTemplate>;
|
|
33
|
+
/**
|
|
34
|
+
* Create or replace a display template
|
|
35
|
+
* Create or replace a display template. If a display template with the provided key exist it is replaced.
|
|
36
|
+
* Otherwise a new display template is created.
|
|
37
|
+
* @param key The key of the display template to update or create.
|
|
38
|
+
* @param requestBody The values of the created or replaced display template.
|
|
39
|
+
* @returns DisplayTemplate OK
|
|
40
|
+
* @throws ApiError
|
|
41
|
+
*/
|
|
42
|
+
displayTemplatesPut(key: string, requestBody: DisplayTemplate): CancelablePromise<DisplayTemplate>;
|
|
43
|
+
/**
|
|
44
|
+
* Update display template
|
|
45
|
+
* Update an existing display template.
|
|
46
|
+
* @param key The key of the display template to patch.
|
|
47
|
+
* @param requestBody The values of the display template that should be updated.
|
|
48
|
+
* @returns DisplayTemplate OK
|
|
49
|
+
* @throws ApiError
|
|
50
|
+
*/
|
|
51
|
+
displayTemplatesPatch(key: string, requestBody: DisplayTemplate): CancelablePromise<DisplayTemplate>;
|
|
52
|
+
/**
|
|
53
|
+
* Delete display template
|
|
54
|
+
* Deletes the display template with the provided key.
|
|
55
|
+
* @param key The key of the display template to delete.
|
|
56
|
+
* @returns DisplayTemplate OK
|
|
57
|
+
* @throws ApiError
|
|
58
|
+
*/
|
|
59
|
+
displayTemplatesDelete(key: string): CancelablePromise<DisplayTemplate>;
|
|
60
|
+
}
|