@remkoj/optimizely-cms-api 2.0.0-pre2 → 2.0.0-pre4
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/client/CmsIntegrationApiClient.d.ts +24 -22
- package/dist/client/CmsIntegrationApiClient.js +36 -34
- 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 -76
- package/dist/client/index.js +48 -46
- 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 +10 -10
- package/dist/client/models/ComponentListItem.js +2 -2
- package/dist/client/models/ComponentProperty.d.ts +10 -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 +14 -14
- package/dist/client/models/ContentListItem.js +2 -2
- package/dist/client/models/ContentLocaleInfo.d.ts +11 -11
- package/dist/client/models/ContentLocaleInfo.js +2 -2
- package/dist/client/models/ContentMetadata.d.ts +46 -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 +14 -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 +14 -14
- package/dist/client/models/ContentReferenceListItem.js +2 -2
- package/dist/client/models/ContentReferenceProperty.d.ts +14 -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 +14 -14
- package/dist/client/models/DateTimeListItem.js +2 -2
- package/dist/client/models/DateTimeProperty.d.ts +14 -14
- package/dist/client/models/DateTimeProperty.js +2 -2
- package/dist/client/models/DisplaySetting.d.ts +22 -0
- package/dist/client/models/DisplaySetting.js +2 -0
- package/dist/client/models/DisplaySettingChoice.d.ts +13 -0
- package/dist/client/models/DisplaySettingChoice.js +2 -0
- package/dist/client/models/DisplayTemplate.d.ts +49 -0
- package/dist/client/models/DisplayTemplate.js +2 -0
- package/dist/client/models/DisplayTemplatePage.d.ts +19 -0
- package/dist/client/models/DisplayTemplatePage.js +2 -0
- package/dist/client/models/DoubleEnumerationSettings.d.ts +9 -9
- package/dist/client/models/DoubleEnumerationSettings.js +2 -2
- package/dist/client/models/FloatListItem.d.ts +16 -16
- package/dist/client/models/FloatListItem.js +2 -2
- package/dist/client/models/FloatProperty.d.ts +16 -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 +16 -16
- package/dist/client/models/IntegerListItem.js +2 -2
- package/dist/client/models/IntegerProperty.d.ts +16 -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 -19
- 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 +14 -14
- package/dist/client/models/StringListItem.js +2 -2
- package/dist/client/models/StringProperty.d.ts +14 -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 -0
- package/dist/client/services/DisplayTemplatesService.js +135 -0
- 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 -36
- package/dist/index.d.ts +15 -15
- package/dist/index.js +95 -95
- package/package.json +4 -3
|
@@ -1,239 +1,239 @@
|
|
|
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 Success
|
|
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 Success
|
|
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 Success
|
|
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 Success
|
|
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 Success
|
|
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 Success
|
|
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 Success
|
|
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 Success
|
|
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 Success
|
|
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 Success
|
|
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
|
+
"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 Success
|
|
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 Success
|
|
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 Success
|
|
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 Success
|
|
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 Success
|
|
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 Success
|
|
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 Success
|
|
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 Success
|
|
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 Success
|
|
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 Success
|
|
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;
|