@remkoj/optimizely-cms-api 5.2.0 → 5.3.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/dist/api-client.js +11 -7
- package/dist/client/CmsIntegrationApiClient.d.ts +2 -2
- package/dist/client/CmsIntegrationApiClient.js +4 -4
- package/dist/client/core/OpenAPI.js +2 -2
- package/dist/client/index.d.ts +14 -45
- package/dist/client/index.js +13 -19
- package/dist/client/models/ArrayItem.d.ts +70 -0
- package/dist/client/models/ArrayItem.js +25 -0
- package/dist/client/models/Blueprint.d.ts +24 -0
- package/dist/client/models/BlueprintData.d.ts +11 -0
- package/dist/client/models/BlueprintPage.d.ts +19 -0
- package/dist/client/models/Changeset.d.ts +3 -3
- package/dist/client/models/ChangesetItemPage.d.ts +1 -1
- package/dist/client/models/ChangesetPage.d.ts +1 -1
- package/dist/client/models/CompositionDisplaySettings.d.ts +13 -0
- package/dist/client/models/CompositionNode.d.ts +41 -0
- package/dist/client/models/ContentComponent.d.ts +8 -8
- package/dist/client/models/ContentItem.d.ts +28 -5
- package/dist/client/models/ContentItem.js +17 -0
- package/dist/client/models/ContentItemPage.d.ts +1 -1
- package/dist/client/models/ContentLocaleInfo.d.ts +13 -2
- package/dist/client/models/ContentLocaleInfo.js +12 -0
- package/dist/client/models/ContentMetadataPage.d.ts +1 -1
- package/dist/client/models/ContentType.d.ts +11 -36
- package/dist/client/models/ContentTypePage.d.ts +1 -1
- package/dist/client/models/ContentTypeProperty.d.ts +84 -8
- package/dist/client/models/ContentTypeProperty.js +34 -0
- package/dist/client/models/DisplayTemplate.d.ts +6 -5
- package/dist/client/models/DisplayTemplatePage.d.ts +1 -1
- package/dist/client/models/EnumerationValue.d.ts +13 -0
- package/dist/client/models/ImageDescriptor.d.ts +1 -1
- package/dist/client/models/Link.d.ts +21 -0
- package/dist/client/models/Preview.d.ts +13 -0
- package/dist/client/models/PropertyFormat.d.ts +60 -16
- package/dist/client/models/PropertyFormat.js +44 -0
- package/dist/client/models/PropertyFormatPage.d.ts +1 -1
- package/dist/client/models/PropertyGroup.d.ts +14 -1
- package/dist/client/models/PropertyGroupPage.d.ts +1 -1
- package/dist/client/services/BlueprintsService.d.ts +56 -0
- package/dist/client/services/BlueprintsService.js +135 -0
- package/dist/client/services/ChangesetsService.d.ts +32 -30
- package/dist/client/services/ChangesetsService.js +73 -60
- package/dist/client/services/ContentService.d.ts +46 -35
- package/dist/client/services/ContentService.js +100 -55
- package/dist/client/services/ContentTypesService.d.ts +17 -23
- package/dist/client/services/ContentTypesService.js +34 -41
- package/dist/client/services/DisplayTemplatesService.d.ts +14 -18
- package/dist/client/services/DisplayTemplatesService.js +31 -31
- package/dist/client/services/PropertyFormatsService.d.ts +3 -1
- package/dist/client/services/PropertyFormatsService.js +9 -1
- package/dist/client/services/PropertyGroupsService.d.ts +15 -20
- package/dist/client/services/PropertyGroupsService.js +32 -33
- package/dist/enums.d.ts +35 -0
- package/dist/enums.js +40 -0
- package/dist/getaccesstoken.js +4 -3
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/version.json +3 -3
- package/package.json +2 -2
- package/dist/client/models/BinaryProperty.d.ts +0 -8
- package/dist/client/models/BooleanProperty.d.ts +0 -5
- package/dist/client/models/ComponentListItem.d.ts +0 -10
- package/dist/client/models/ComponentProperty.d.ts +0 -10
- 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/ContentItemListWithContentTypes.d.ts +0 -27
- package/dist/client/models/ContentItemWithContentTypes.d.ts +0 -12
- package/dist/client/models/ContentListItem.d.ts +0 -14
- package/dist/client/models/ContentProperty.d.ts +0 -14
- 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/ContentTypeFeature.d.ts +0 -10
- package/dist/client/models/ContentTypeFeature.js +0 -18
- package/dist/client/models/ContentTypeUsage.d.ts +0 -7
- package/dist/client/models/ContentTypeUsage.js +0 -15
- 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/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/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/PropertyDataType.d.ts +0 -18
- package/dist/client/models/PropertyDataType.js +0 -26
- 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/OauthService.d.ts +0 -17
- package/dist/client/services/OauthService.js +0 -28
- /package/dist/client/models/{BinaryProperty.js → Blueprint.js} +0 -0
- /package/dist/client/models/{BooleanProperty.js → BlueprintData.js} +0 -0
- /package/dist/client/models/{ComponentListItem.js → BlueprintPage.js} +0 -0
- /package/dist/client/models/{ComponentProperty.js → CompositionDisplaySettings.js} +0 -0
- /package/dist/client/models/{ContentItemListWithContentTypes.js → CompositionNode.js} +0 -0
- /package/dist/client/models/{ContentItemWithContentTypes.js → EnumerationValue.js} +0 -0
- /package/dist/client/models/{ContentListItem.js → Link.js} +0 -0
- /package/dist/client/models/{ContentProperty.js → Preview.js} +0 -0
|
@@ -7,11 +7,10 @@ export declare class ContentTypesService {
|
|
|
7
7
|
constructor(httpRequest: BaseHttpRequest);
|
|
8
8
|
/**
|
|
9
9
|
* List content types
|
|
10
|
-
* List content types using the provided
|
|
10
|
+
* List content types using the provided parameters.
|
|
11
11
|
* @param forContainerType Only include types that are available for creation under the provided container type
|
|
12
12
|
* @param sources Indicates which sources should be included when listing content types.
|
|
13
|
-
* Use
|
|
14
|
-
* Default to include content types without a specific sources.
|
|
13
|
+
* Use 'DEFAULT' to include content types without a specific source.
|
|
15
14
|
* @param pageIndex
|
|
16
15
|
* @param pageSize
|
|
17
16
|
* @returns ContentTypePage OK
|
|
@@ -21,8 +20,8 @@ export declare class ContentTypesService {
|
|
|
21
20
|
/**
|
|
22
21
|
* Create content type
|
|
23
22
|
* Create a new content type.
|
|
24
|
-
* @param requestBody The content type that should be created.
|
|
25
|
-
* @returns ContentType
|
|
23
|
+
* @param requestBody The content type that should be created or replaced.
|
|
24
|
+
* @returns ContentType Created
|
|
26
25
|
* @throws ApiError
|
|
27
26
|
*/
|
|
28
27
|
contentTypesCreate(requestBody: ContentType): CancelablePromise<ContentType>;
|
|
@@ -30,37 +29,32 @@ export declare class ContentTypesService {
|
|
|
30
29
|
* Get content type
|
|
31
30
|
* Get the content type with the provided key.
|
|
32
31
|
* @param key The key of the content type to retrieve.
|
|
32
|
+
* @param ifNoneMatch If provided and the value matches the RFC7232 ETag of the current resource a 304 NotModified response will be returned. Weak ETags will always be ignored.
|
|
33
|
+
* @param ifModifiedSince If provided and the resource has not been modified since the date a 304 NotModified response will be returned. This parameter will be ignored if an 'If-None-Match' parameter is also provided.
|
|
33
34
|
* @returns ContentType OK
|
|
34
35
|
* @throws ApiError
|
|
35
36
|
*/
|
|
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>;
|
|
37
|
+
contentTypesGet(key: string, ifNoneMatch?: string, ifModifiedSince?: string): CancelablePromise<ContentType>;
|
|
48
38
|
/**
|
|
49
|
-
*
|
|
50
|
-
*
|
|
39
|
+
* Patch content type
|
|
40
|
+
* Patch an existing content type. If a content type with the provided key does not exist an error is returned.
|
|
51
41
|
* @param key The key of the content type to patch.
|
|
52
|
-
* @param requestBody The values of the content type that should be
|
|
53
|
-
* @param
|
|
42
|
+
* @param requestBody The values of the content type that should be patched formatted according to RFC7396.
|
|
43
|
+
* @param cmsIgnoreDataLossWarnings Patch the content type even though the changes might result in data loss.
|
|
44
|
+
* @param ifMatch If provided, the PATCH request will only be considered if the value matches the RFC7232 ETag of the current resource. Weak ETags will always be ignored.
|
|
45
|
+
* @param ifUnmodifiedSince If provided, the PATCH request will only be considered if the resource has not been modified since the provided date. This parameter will be ignored if an 'If-Match' parameter is also provided.
|
|
54
46
|
* @returns ContentType OK
|
|
55
47
|
* @throws ApiError
|
|
56
48
|
*/
|
|
57
|
-
contentTypesPatch(key: string, requestBody: ContentType,
|
|
49
|
+
contentTypesPatch(key: string, requestBody: ContentType, cmsIgnoreDataLossWarnings?: boolean, ifMatch?: string, ifUnmodifiedSince?: string): CancelablePromise<ContentType>;
|
|
58
50
|
/**
|
|
59
51
|
* Delete content type
|
|
60
52
|
* Deletes the content type with the provided key. If a content type with the provided key does not exist an error is returned.
|
|
61
53
|
* @param key The key of the content type to delete.
|
|
54
|
+
* @param ifMatch If provided, the DELETE request will only be considered if the value matches the RFC7232 ETag of the current resource. Weak ETags will always be ignored.
|
|
55
|
+
* @param ifUnmodifiedSince If provided, the DELETE request will only be considered if the resource has not been modified since the provided date. This parameter will be ignored if an 'If-Match' parameter is also provided.
|
|
62
56
|
* @returns ContentType OK
|
|
63
57
|
* @throws ApiError
|
|
64
58
|
*/
|
|
65
|
-
contentTypesDelete(key: string): CancelablePromise<ContentType>;
|
|
59
|
+
contentTypesDelete(key: string, ifMatch?: string, ifUnmodifiedSince?: string): CancelablePromise<ContentType>;
|
|
66
60
|
}
|
|
@@ -7,11 +7,10 @@ class ContentTypesService {
|
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
9
|
* List content types
|
|
10
|
-
* List content types using the provided
|
|
10
|
+
* List content types using the provided parameters.
|
|
11
11
|
* @param forContainerType Only include types that are available for creation under the provided container type
|
|
12
12
|
* @param sources Indicates which sources should be included when listing content types.
|
|
13
|
-
* Use
|
|
14
|
-
* Default to include content types without a specific sources.
|
|
13
|
+
* Use 'DEFAULT' to include content types without a specific source.
|
|
15
14
|
* @param pageIndex
|
|
16
15
|
* @param pageSize
|
|
17
16
|
* @returns ContentTypePage OK
|
|
@@ -35,8 +34,8 @@ class ContentTypesService {
|
|
|
35
34
|
/**
|
|
36
35
|
* Create content type
|
|
37
36
|
* Create a new content type.
|
|
38
|
-
* @param requestBody The content type that should be created.
|
|
39
|
-
* @returns ContentType
|
|
37
|
+
* @param requestBody The content type that should be created or replaced.
|
|
38
|
+
* @returns ContentType Created
|
|
40
39
|
* @throws ApiError
|
|
41
40
|
*/
|
|
42
41
|
contentTypesCreate(requestBody) {
|
|
@@ -55,73 +54,59 @@ class ContentTypesService {
|
|
|
55
54
|
* Get content type
|
|
56
55
|
* Get the content type with the provided key.
|
|
57
56
|
* @param key The key of the content type to retrieve.
|
|
57
|
+
* @param ifNoneMatch If provided and the value matches the RFC7232 ETag of the current resource a 304 NotModified response will be returned. Weak ETags will always be ignored.
|
|
58
|
+
* @param ifModifiedSince If provided and the resource has not been modified since the date a 304 NotModified response will be returned. This parameter will be ignored if an 'If-None-Match' parameter is also provided.
|
|
58
59
|
* @returns ContentType OK
|
|
59
60
|
* @throws ApiError
|
|
60
61
|
*/
|
|
61
|
-
contentTypesGet(key) {
|
|
62
|
+
contentTypesGet(key, ifNoneMatch, ifModifiedSince) {
|
|
62
63
|
return this.httpRequest.request({
|
|
63
64
|
method: 'GET',
|
|
64
65
|
url: '/contenttypes/{key}',
|
|
65
66
|
path: {
|
|
66
67
|
'key': key,
|
|
67
68
|
},
|
|
68
|
-
|
|
69
|
-
|
|
69
|
+
headers: {
|
|
70
|
+
'If-None-Match': ifNoneMatch,
|
|
71
|
+
'If-Modified-Since': ifModifiedSince,
|
|
70
72
|
},
|
|
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
73
|
errors: {
|
|
96
|
-
|
|
74
|
+
304: `Not Modified`,
|
|
97
75
|
403: `Forbidden`,
|
|
76
|
+
404: `Not Found`,
|
|
98
77
|
},
|
|
99
78
|
});
|
|
100
79
|
}
|
|
101
80
|
/**
|
|
102
|
-
*
|
|
103
|
-
*
|
|
81
|
+
* Patch content type
|
|
82
|
+
* Patch an existing content type. If a content type with the provided key does not exist an error is returned.
|
|
104
83
|
* @param key The key of the content type to patch.
|
|
105
|
-
* @param requestBody The values of the content type that should be
|
|
106
|
-
* @param
|
|
84
|
+
* @param requestBody The values of the content type that should be patched formatted according to RFC7396.
|
|
85
|
+
* @param cmsIgnoreDataLossWarnings Patch the content type even though the changes might result in data loss.
|
|
86
|
+
* @param ifMatch If provided, the PATCH request will only be considered if the value matches the RFC7232 ETag of the current resource. Weak ETags will always be ignored.
|
|
87
|
+
* @param ifUnmodifiedSince If provided, the PATCH request will only be considered if the resource has not been modified since the provided date. This parameter will be ignored if an 'If-Match' parameter is also provided.
|
|
107
88
|
* @returns ContentType OK
|
|
108
89
|
* @throws ApiError
|
|
109
90
|
*/
|
|
110
|
-
contentTypesPatch(key, requestBody,
|
|
91
|
+
contentTypesPatch(key, requestBody, cmsIgnoreDataLossWarnings, ifMatch, ifUnmodifiedSince) {
|
|
111
92
|
return this.httpRequest.request({
|
|
112
93
|
method: 'PATCH',
|
|
113
94
|
url: '/contenttypes/{key}',
|
|
114
95
|
path: {
|
|
115
96
|
'key': key,
|
|
116
97
|
},
|
|
117
|
-
|
|
118
|
-
'
|
|
98
|
+
headers: {
|
|
99
|
+
'cms-ignore-data-loss-warnings': cmsIgnoreDataLossWarnings,
|
|
100
|
+
'If-Match': ifMatch,
|
|
101
|
+
'If-Unmodified-Since': ifUnmodifiedSince,
|
|
119
102
|
},
|
|
120
103
|
body: requestBody,
|
|
121
104
|
mediaType: 'application/merge-patch+json',
|
|
122
105
|
errors: {
|
|
123
106
|
400: `Bad Request`,
|
|
124
107
|
403: `Forbidden`,
|
|
108
|
+
404: `Not Found`,
|
|
109
|
+
412: `Precondition Failed`,
|
|
125
110
|
},
|
|
126
111
|
});
|
|
127
112
|
}
|
|
@@ -129,19 +114,27 @@ class ContentTypesService {
|
|
|
129
114
|
* Delete content type
|
|
130
115
|
* Deletes the content type with the provided key. If a content type with the provided key does not exist an error is returned.
|
|
131
116
|
* @param key The key of the content type to delete.
|
|
117
|
+
* @param ifMatch If provided, the DELETE request will only be considered if the value matches the RFC7232 ETag of the current resource. Weak ETags will always be ignored.
|
|
118
|
+
* @param ifUnmodifiedSince If provided, the DELETE request will only be considered if the resource has not been modified since the provided date. This parameter will be ignored if an 'If-Match' parameter is also provided.
|
|
132
119
|
* @returns ContentType OK
|
|
133
120
|
* @throws ApiError
|
|
134
121
|
*/
|
|
135
|
-
contentTypesDelete(key) {
|
|
122
|
+
contentTypesDelete(key, ifMatch, ifUnmodifiedSince) {
|
|
136
123
|
return this.httpRequest.request({
|
|
137
124
|
method: 'DELETE',
|
|
138
125
|
url: '/contenttypes/{key}',
|
|
139
126
|
path: {
|
|
140
127
|
'key': key,
|
|
141
128
|
},
|
|
129
|
+
headers: {
|
|
130
|
+
'If-Match': ifMatch,
|
|
131
|
+
'If-Unmodified-Since': ifUnmodifiedSince,
|
|
132
|
+
},
|
|
142
133
|
errors: {
|
|
143
134
|
400: `Bad Request`,
|
|
144
135
|
403: `Forbidden`,
|
|
136
|
+
404: `Not Found`,
|
|
137
|
+
412: `Precondition Failed`,
|
|
145
138
|
},
|
|
146
139
|
});
|
|
147
140
|
}
|
|
@@ -7,7 +7,7 @@ export declare class DisplayTemplatesService {
|
|
|
7
7
|
constructor(httpRequest: BaseHttpRequest);
|
|
8
8
|
/**
|
|
9
9
|
* List display templates
|
|
10
|
-
* List display templates using the provided
|
|
10
|
+
* List display templates using the provided parameters.
|
|
11
11
|
* @param pageIndex
|
|
12
12
|
* @param pageSize
|
|
13
13
|
* @returns DisplayTemplatePage OK
|
|
@@ -18,7 +18,7 @@ export declare class DisplayTemplatesService {
|
|
|
18
18
|
* Create display template
|
|
19
19
|
* Create a new display template.
|
|
20
20
|
* @param requestBody The display template that should be created.
|
|
21
|
-
* @returns DisplayTemplate
|
|
21
|
+
* @returns DisplayTemplate Created
|
|
22
22
|
* @throws ApiError
|
|
23
23
|
*/
|
|
24
24
|
displayTemplatesCreate(requestBody: DisplayTemplate): CancelablePromise<DisplayTemplate>;
|
|
@@ -26,35 +26,31 @@ export declare class DisplayTemplatesService {
|
|
|
26
26
|
* Get display template
|
|
27
27
|
* Get the display template with the provided key.
|
|
28
28
|
* @param key The key of the display template to retrieve.
|
|
29
|
+
* @param ifNoneMatch If provided and the value matches the RFC7232 ETag of the current resource a 304 NotModified response will be returned. Weak ETags will always be ignored.
|
|
30
|
+
* @param ifModifiedSince If provided and the resource has not been modified since the date a 304 NotModified response will be returned. This parameter will be ignored if an 'If-None-Match' parameter is also provided.
|
|
29
31
|
* @returns DisplayTemplate OK
|
|
30
32
|
* @throws ApiError
|
|
31
33
|
*/
|
|
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>;
|
|
34
|
+
displayTemplatesGet(key: string, ifNoneMatch?: string, ifModifiedSince?: string): CancelablePromise<DisplayTemplate>;
|
|
43
35
|
/**
|
|
44
|
-
*
|
|
45
|
-
*
|
|
36
|
+
* Patch display template
|
|
37
|
+
* Patch an existing display template.
|
|
46
38
|
* @param key The key of the display template to patch.
|
|
47
|
-
* @param requestBody The values of the display template that should be
|
|
39
|
+
* @param requestBody The values of the display template that should be patched formatted according to RFC7396.
|
|
40
|
+
* @param ifMatch If provided, the PATCH request will only be considered if the value matches the RFC7232 ETag of the current resource. Weak ETags will always be ignored.
|
|
41
|
+
* @param ifUnmodifiedSince If provided, the PATCH request will only be considered if the resource has not been modified since the provided date. This parameter will be ignored if an 'If-Match' parameter is also provided.
|
|
48
42
|
* @returns DisplayTemplate OK
|
|
49
43
|
* @throws ApiError
|
|
50
44
|
*/
|
|
51
|
-
displayTemplatesPatch(key: string, requestBody: DisplayTemplate): CancelablePromise<DisplayTemplate>;
|
|
45
|
+
displayTemplatesPatch(key: string, requestBody: DisplayTemplate, ifMatch?: string, ifUnmodifiedSince?: string): CancelablePromise<DisplayTemplate>;
|
|
52
46
|
/**
|
|
53
47
|
* Delete display template
|
|
54
48
|
* Deletes the display template with the provided key.
|
|
55
49
|
* @param key The key of the display template to delete.
|
|
50
|
+
* @param ifMatch If provided, the DELETE request will only be considered if the value matches the RFC7232 ETag of the current resource. Weak ETags will always be ignored.
|
|
51
|
+
* @param ifUnmodifiedSince If provided, the DELETE request will only be considered if the resource has not been modified since the provided date. This parameter will be ignored if an 'If-Match' parameter is also provided.
|
|
56
52
|
* @returns DisplayTemplate OK
|
|
57
53
|
* @throws ApiError
|
|
58
54
|
*/
|
|
59
|
-
displayTemplatesDelete(key: string): CancelablePromise<DisplayTemplate>;
|
|
55
|
+
displayTemplatesDelete(key: string, ifMatch?: string, ifUnmodifiedSince?: string): CancelablePromise<DisplayTemplate>;
|
|
60
56
|
}
|
|
@@ -7,7 +7,7 @@ class DisplayTemplatesService {
|
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
9
|
* List display templates
|
|
10
|
-
* List display templates using the provided
|
|
10
|
+
* List display templates using the provided parameters.
|
|
11
11
|
* @param pageIndex
|
|
12
12
|
* @param pageSize
|
|
13
13
|
* @returns DisplayTemplatePage OK
|
|
@@ -30,7 +30,7 @@ class DisplayTemplatesService {
|
|
|
30
30
|
* Create display template
|
|
31
31
|
* Create a new display template.
|
|
32
32
|
* @param requestBody The display template that should be created.
|
|
33
|
-
* @returns DisplayTemplate
|
|
33
|
+
* @returns DisplayTemplate Created
|
|
34
34
|
* @throws ApiError
|
|
35
35
|
*/
|
|
36
36
|
displayTemplatesCreate(requestBody) {
|
|
@@ -49,65 +49,57 @@ class DisplayTemplatesService {
|
|
|
49
49
|
* Get display template
|
|
50
50
|
* Get the display template with the provided key.
|
|
51
51
|
* @param key The key of the display template to retrieve.
|
|
52
|
+
* @param ifNoneMatch If provided and the value matches the RFC7232 ETag of the current resource a 304 NotModified response will be returned. Weak ETags will always be ignored.
|
|
53
|
+
* @param ifModifiedSince If provided and the resource has not been modified since the date a 304 NotModified response will be returned. This parameter will be ignored if an 'If-None-Match' parameter is also provided.
|
|
52
54
|
* @returns DisplayTemplate OK
|
|
53
55
|
* @throws ApiError
|
|
54
56
|
*/
|
|
55
|
-
displayTemplatesGet(key) {
|
|
57
|
+
displayTemplatesGet(key, ifNoneMatch, ifModifiedSince) {
|
|
56
58
|
return this.httpRequest.request({
|
|
57
59
|
method: 'GET',
|
|
58
60
|
url: '/displaytemplates/{key}',
|
|
59
61
|
path: {
|
|
60
62
|
'key': key,
|
|
61
63
|
},
|
|
62
|
-
|
|
63
|
-
|
|
64
|
+
headers: {
|
|
65
|
+
'If-None-Match': ifNoneMatch,
|
|
66
|
+
'If-Modified-Since': ifModifiedSince,
|
|
64
67
|
},
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Create or replace a display template
|
|
69
|
-
* Create or replace a display template. If a display template with the provided key exist it is replaced.
|
|
70
|
-
* Otherwise a new display template is created.
|
|
71
|
-
* @param key The key of the display template to update or create.
|
|
72
|
-
* @param requestBody The values of the created or replaced display template.
|
|
73
|
-
* @returns DisplayTemplate OK
|
|
74
|
-
* @throws ApiError
|
|
75
|
-
*/
|
|
76
|
-
displayTemplatesPut(key, requestBody) {
|
|
77
|
-
return this.httpRequest.request({
|
|
78
|
-
method: 'PUT',
|
|
79
|
-
url: '/displaytemplates/{key}',
|
|
80
|
-
path: {
|
|
81
|
-
'key': key,
|
|
82
|
-
},
|
|
83
|
-
body: requestBody,
|
|
84
|
-
mediaType: 'application/json',
|
|
85
68
|
errors: {
|
|
86
|
-
|
|
69
|
+
304: `Not Modified`,
|
|
87
70
|
403: `Forbidden`,
|
|
71
|
+
404: `Not Found`,
|
|
88
72
|
},
|
|
89
73
|
});
|
|
90
74
|
}
|
|
91
75
|
/**
|
|
92
|
-
*
|
|
93
|
-
*
|
|
76
|
+
* Patch display template
|
|
77
|
+
* Patch an existing display template.
|
|
94
78
|
* @param key The key of the display template to patch.
|
|
95
|
-
* @param requestBody The values of the display template that should be
|
|
79
|
+
* @param requestBody The values of the display template that should be patched formatted according to RFC7396.
|
|
80
|
+
* @param ifMatch If provided, the PATCH request will only be considered if the value matches the RFC7232 ETag of the current resource. Weak ETags will always be ignored.
|
|
81
|
+
* @param ifUnmodifiedSince If provided, the PATCH request will only be considered if the resource has not been modified since the provided date. This parameter will be ignored if an 'If-Match' parameter is also provided.
|
|
96
82
|
* @returns DisplayTemplate OK
|
|
97
83
|
* @throws ApiError
|
|
98
84
|
*/
|
|
99
|
-
displayTemplatesPatch(key, requestBody) {
|
|
85
|
+
displayTemplatesPatch(key, requestBody, ifMatch, ifUnmodifiedSince) {
|
|
100
86
|
return this.httpRequest.request({
|
|
101
87
|
method: 'PATCH',
|
|
102
88
|
url: '/displaytemplates/{key}',
|
|
103
89
|
path: {
|
|
104
90
|
'key': key,
|
|
105
91
|
},
|
|
92
|
+
headers: {
|
|
93
|
+
'If-Match': ifMatch,
|
|
94
|
+
'If-Unmodified-Since': ifUnmodifiedSince,
|
|
95
|
+
},
|
|
106
96
|
body: requestBody,
|
|
107
97
|
mediaType: 'application/merge-patch+json',
|
|
108
98
|
errors: {
|
|
109
99
|
400: `Bad Request`,
|
|
110
100
|
403: `Forbidden`,
|
|
101
|
+
404: `Not Found`,
|
|
102
|
+
412: `Precondition Failed`,
|
|
111
103
|
},
|
|
112
104
|
});
|
|
113
105
|
}
|
|
@@ -115,19 +107,27 @@ class DisplayTemplatesService {
|
|
|
115
107
|
* Delete display template
|
|
116
108
|
* Deletes the display template with the provided key.
|
|
117
109
|
* @param key The key of the display template to delete.
|
|
110
|
+
* @param ifMatch If provided, the DELETE request will only be considered if the value matches the RFC7232 ETag of the current resource. Weak ETags will always be ignored.
|
|
111
|
+
* @param ifUnmodifiedSince If provided, the DELETE request will only be considered if the resource has not been modified since the provided date. This parameter will be ignored if an 'If-Match' parameter is also provided.
|
|
118
112
|
* @returns DisplayTemplate OK
|
|
119
113
|
* @throws ApiError
|
|
120
114
|
*/
|
|
121
|
-
displayTemplatesDelete(key) {
|
|
115
|
+
displayTemplatesDelete(key, ifMatch, ifUnmodifiedSince) {
|
|
122
116
|
return this.httpRequest.request({
|
|
123
117
|
method: 'DELETE',
|
|
124
118
|
url: '/displaytemplates/{key}',
|
|
125
119
|
path: {
|
|
126
120
|
'key': key,
|
|
127
121
|
},
|
|
122
|
+
headers: {
|
|
123
|
+
'If-Match': ifMatch,
|
|
124
|
+
'If-Unmodified-Since': ifUnmodifiedSince,
|
|
125
|
+
},
|
|
128
126
|
errors: {
|
|
129
127
|
400: `Bad Request`,
|
|
130
128
|
403: `Forbidden`,
|
|
129
|
+
404: `Not Found`,
|
|
130
|
+
412: `Precondition Failed`,
|
|
131
131
|
},
|
|
132
132
|
});
|
|
133
133
|
}
|
|
@@ -19,8 +19,10 @@ export declare class PropertyFormatsService {
|
|
|
19
19
|
* Get the property format with the provided key.
|
|
20
20
|
* @param key The key of the property format to retrieve.
|
|
21
21
|
* @param allowDeleted Indicates that a deleted property format may be returned.
|
|
22
|
+
* @param ifNoneMatch If provided and the value matches the RFC7232 ETag of the current resource a 304 NotModified response will be returned. Weak ETags will always be ignored.
|
|
23
|
+
* @param ifModifiedSince If provided and the resource has not been modified since the date a 304 NotModified response will be returned. This parameter will be ignored if an 'If-None-Match' parameter is also provided.
|
|
22
24
|
* @returns PropertyFormat OK
|
|
23
25
|
* @throws ApiError
|
|
24
26
|
*/
|
|
25
|
-
propertyFormatsGet(key: string, allowDeleted?: boolean): CancelablePromise<PropertyFormat>;
|
|
27
|
+
propertyFormatsGet(key: string, allowDeleted?: boolean, ifNoneMatch?: string, ifModifiedSince?: string): CancelablePromise<PropertyFormat>;
|
|
26
28
|
}
|
|
@@ -31,21 +31,29 @@ class PropertyFormatsService {
|
|
|
31
31
|
* Get the property format with the provided key.
|
|
32
32
|
* @param key The key of the property format to retrieve.
|
|
33
33
|
* @param allowDeleted Indicates that a deleted property format may be returned.
|
|
34
|
+
* @param ifNoneMatch If provided and the value matches the RFC7232 ETag of the current resource a 304 NotModified response will be returned. Weak ETags will always be ignored.
|
|
35
|
+
* @param ifModifiedSince If provided and the resource has not been modified since the date a 304 NotModified response will be returned. This parameter will be ignored if an 'If-None-Match' parameter is also provided.
|
|
34
36
|
* @returns PropertyFormat OK
|
|
35
37
|
* @throws ApiError
|
|
36
38
|
*/
|
|
37
|
-
propertyFormatsGet(key, allowDeleted) {
|
|
39
|
+
propertyFormatsGet(key, allowDeleted, ifNoneMatch, ifModifiedSince) {
|
|
38
40
|
return this.httpRequest.request({
|
|
39
41
|
method: 'GET',
|
|
40
42
|
url: '/propertyformats/{key}',
|
|
41
43
|
path: {
|
|
42
44
|
'key': key,
|
|
43
45
|
},
|
|
46
|
+
headers: {
|
|
47
|
+
'If-None-Match': ifNoneMatch,
|
|
48
|
+
'If-Modified-Since': ifModifiedSince,
|
|
49
|
+
},
|
|
44
50
|
query: {
|
|
45
51
|
'allowDeleted': allowDeleted,
|
|
46
52
|
},
|
|
47
53
|
errors: {
|
|
54
|
+
304: `Not Modified`,
|
|
48
55
|
403: `Forbidden`,
|
|
56
|
+
404: `Not Found`,
|
|
49
57
|
},
|
|
50
58
|
});
|
|
51
59
|
}
|
|
@@ -8,9 +8,8 @@ export declare class PropertyGroupsService {
|
|
|
8
8
|
/**
|
|
9
9
|
* List property groups
|
|
10
10
|
* List property groups using the provided options.
|
|
11
|
-
* @param sources Indicates which property groups sources
|
|
12
|
-
* Use
|
|
13
|
-
* Default to include groups without a specific sources.
|
|
11
|
+
* @param sources Indicates which property groups sources should be listed.
|
|
12
|
+
* Use 'DEFAULT' to include groups without a specific sources.
|
|
14
13
|
* @returns PropertyGroupPage OK
|
|
15
14
|
* @throws ApiError
|
|
16
15
|
*/
|
|
@@ -19,7 +18,7 @@ export declare class PropertyGroupsService {
|
|
|
19
18
|
* Create property group
|
|
20
19
|
* Create a new property group.
|
|
21
20
|
* @param requestBody The property group that should be created.
|
|
22
|
-
* @returns PropertyGroup
|
|
21
|
+
* @returns PropertyGroup Created
|
|
23
22
|
* @throws ApiError
|
|
24
23
|
*/
|
|
25
24
|
propertyGroupsCreate(requestBody: PropertyGroup): CancelablePromise<PropertyGroup>;
|
|
@@ -27,35 +26,31 @@ export declare class PropertyGroupsService {
|
|
|
27
26
|
* Get property group
|
|
28
27
|
* Get the property group with the provided key.
|
|
29
28
|
* @param key The key of the property group to retrieve.
|
|
29
|
+
* @param ifNoneMatch If provided and the value matches the RFC7232 ETag of the current resource a 304 NotModified response will be returned. Weak ETags will always be ignored.
|
|
30
|
+
* @param ifModifiedSince If provided and the resource has not been modified since the date a 304 NotModified response will be returned. This parameter will be ignored if an 'If-None-Match' parameter is also provided.
|
|
30
31
|
* @returns PropertyGroup OK
|
|
31
32
|
* @throws ApiError
|
|
32
33
|
*/
|
|
33
|
-
propertyGroupsGet(key: string): CancelablePromise<PropertyGroup>;
|
|
34
|
-
/**
|
|
35
|
-
* Create or replace property group
|
|
36
|
-
* Create or replace a property group. If a property group with the provided key exist it is replaced.
|
|
37
|
-
* Otherwise a new property group is created.
|
|
38
|
-
* @param key The key of the property group to update or create.
|
|
39
|
-
* @param requestBody The values of the created or replaced property group.
|
|
40
|
-
* @returns PropertyGroup OK
|
|
41
|
-
* @throws ApiError
|
|
42
|
-
*/
|
|
43
|
-
propertyGroupsPut(key: string, requestBody: PropertyGroup): CancelablePromise<PropertyGroup>;
|
|
34
|
+
propertyGroupsGet(key: string, ifNoneMatch?: string, ifModifiedSince?: string): CancelablePromise<PropertyGroup>;
|
|
44
35
|
/**
|
|
45
|
-
*
|
|
46
|
-
*
|
|
36
|
+
* Patch property group
|
|
37
|
+
* Patch an existing property group.
|
|
47
38
|
* @param key The key of the property group to patch.
|
|
48
|
-
* @param requestBody The values of the property group that should be
|
|
39
|
+
* @param requestBody The values of the property group that should be patched formatted according to RFC7396.
|
|
40
|
+
* @param ifMatch If provided, the PATCH request will only be considered if the value matches the RFC7232 ETag of the current resource. Weak ETags will always be ignored.
|
|
41
|
+
* @param ifUnmodifiedSince If provided, the PATCH request will only be considered if the resource has not been modified since the provided date. This parameter will be ignored if an 'If-Match' parameter is also provided.
|
|
49
42
|
* @returns PropertyGroup OK
|
|
50
43
|
* @throws ApiError
|
|
51
44
|
*/
|
|
52
|
-
propertyGroupsPatch(key: string, requestBody: PropertyGroup): CancelablePromise<PropertyGroup>;
|
|
45
|
+
propertyGroupsPatch(key: string, requestBody: PropertyGroup, ifMatch?: string, ifUnmodifiedSince?: string): CancelablePromise<PropertyGroup>;
|
|
53
46
|
/**
|
|
54
47
|
* Delete property group
|
|
55
48
|
* Deletes the property group with the provided key.
|
|
56
49
|
* @param key The key of the property group to delete.
|
|
50
|
+
* @param ifMatch If provided, the DELETE request will only be considered if the value matches the RFC7232 ETag of the current resource. Weak ETags will always be ignored.
|
|
51
|
+
* @param ifUnmodifiedSince If provided, the DELETE request will only be considered if the resource has not been modified since the provided date. This parameter will be ignored if an 'If-Match' parameter is also provided.
|
|
57
52
|
* @returns PropertyGroup OK
|
|
58
53
|
* @throws ApiError
|
|
59
54
|
*/
|
|
60
|
-
propertyGroupsDelete(key: string): CancelablePromise<PropertyGroup>;
|
|
55
|
+
propertyGroupsDelete(key: string, ifMatch?: string, ifUnmodifiedSince?: string): CancelablePromise<PropertyGroup>;
|
|
61
56
|
}
|