@remkoj/optimizely-cms-api 6.0.0-rc.1 → 6.0.0-rc.3
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/AGENTS.md +66 -0
- package/dist/api-client.d.ts +10 -65
- package/dist/api-client.js +18 -124
- package/dist/client/client/client.gen.js +107 -126
- package/dist/client/client/index.d.ts +2 -0
- package/dist/client/client/types.gen.d.ts +6 -3
- package/dist/client/client/utils.gen.d.ts +8 -4
- package/dist/client/client/utils.gen.js +6 -6
- package/dist/client/client.gen.d.ts +2 -2
- package/dist/client/client.gen.js +1 -1
- package/dist/client/core/auth.gen.d.ts +7 -0
- package/dist/client/core/params.gen.d.ts +2 -2
- package/dist/client/core/params.gen.js +24 -16
- package/dist/client/core/queryKeySerializer.gen.d.ts +1 -1
- package/dist/client/core/serverSentEvents.gen.d.ts +1 -1
- package/dist/client/core/serverSentEvents.gen.js +4 -6
- package/dist/client/core/types.gen.d.ts +6 -1
- package/dist/client/core/utils.gen.js +1 -1
- package/dist/client/index.d.ts +3 -3
- package/dist/client/index.js +63 -21
- package/dist/client/sdk.gen.d.ts +221 -118
- package/dist/client/sdk.gen.js +431 -180
- package/dist/client/transformers.gen.d.ts +35 -13
- package/dist/client/transformers.gen.js +341 -99
- package/dist/client/types.gen.d.ts +4383 -1300
- package/dist/client-config.d.ts +11 -0
- package/dist/client-config.js +21 -10
- package/dist/config.d.ts +39 -4
- package/dist/config.js +44 -18
- package/dist/getaccesstoken.js +22 -4
- package/dist/index.d.ts +20 -1
- package/dist/index.js +18 -4
- package/dist/types.d.ts +1 -14
- package/dist/types.js +0 -7
- package/dist/version.json +3 -3
- package/package.json +19 -8
package/dist/client/sdk.gen.js
CHANGED
|
@@ -1,28 +1,92 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
4
|
+
exports.displayTemplatesList = exports.contentTypesPatch = exports.contentTypesGet = exports.contentTypesDelete = exports.contentTypesCreate = exports.contentTypesList = exports.contentTypeBindingsPatch = exports.contentTypeBindingsGet = exports.contentTypeBindingsDelete = exports.contentTypeBindingsCreate = exports.contentTypeBindingsList = exports.contentSourcesPatch = exports.contentSourcesGet = exports.contentSourcesDelete = exports.contentSourcesCreate = exports.contentSourcesList = exports.contentListAllVersions = exports.contentGetPreviews = exports.contentGetMedia = exports.contentPatchVersion = exports.contentGetVersion = exports.contentDeleteVersion = exports.contentReject = exports.contentReady = exports.contentPublish = exports.contentDraft = exports.contentApprove = exports.contentCreateVersion = exports.contentListVersions = exports.contentGetPath = exports.contentListLocaleVersions = exports.contentDeleteLocale = exports.contentListItems = exports.contentListAssets = exports.contentPatchNode = exports.contentGetNode = exports.contentDelete = exports.contentUndelete = exports.contentCopy = exports.contentCreate = exports.blueprintsPatch = exports.blueprintsGet = exports.blueprintsDelete = exports.blueprintsCreate = exports.blueprintsList = exports.applicationsPatch = exports.applicationsGet = exports.applicationsDelete = exports.applicationsCreate = exports.applicationsList = void 0;
|
|
5
|
+
exports.propertyGroupsPatch = exports.propertyGroupsGet = exports.propertyGroupsDelete = exports.propertyGroupsCreate = exports.propertyGroupsList = exports.propertyFormatsGet = exports.propertyFormatsList = exports.manifestImport = exports.manifestExport = exports.localesPatch = exports.localesGet = exports.localesDelete = exports.localesCreate = exports.localesList = exports.displayTemplatesPatch = exports.displayTemplatesGet = exports.displayTemplatesDelete = exports.displayTemplatesCreate = void 0;
|
|
5
6
|
const client_gen_1 = require("./client.gen");
|
|
6
7
|
const transformers_gen_1 = require("./transformers.gen");
|
|
8
|
+
/**
|
|
9
|
+
* List applications
|
|
10
|
+
*
|
|
11
|
+
* List all applications available in the CMS.
|
|
12
|
+
*/
|
|
13
|
+
const applicationsList = (options) => (options?.client ?? client_gen_1.client).get({
|
|
14
|
+
responseTransformer: transformers_gen_1.applicationsListResponseTransformer,
|
|
15
|
+
url: '/applications',
|
|
16
|
+
...options
|
|
17
|
+
});
|
|
18
|
+
exports.applicationsList = applicationsList;
|
|
19
|
+
/**
|
|
20
|
+
* Create application
|
|
21
|
+
*
|
|
22
|
+
* Create a new application.
|
|
23
|
+
*/
|
|
24
|
+
const applicationsCreate = (options) => (options.client ?? client_gen_1.client).post({
|
|
25
|
+
responseTransformer: transformers_gen_1.applicationsCreateResponseTransformer,
|
|
26
|
+
url: '/applications',
|
|
27
|
+
...options,
|
|
28
|
+
headers: {
|
|
29
|
+
'Content-Type': 'application/json',
|
|
30
|
+
...options.headers
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
exports.applicationsCreate = applicationsCreate;
|
|
34
|
+
/**
|
|
35
|
+
* Delete application
|
|
36
|
+
*
|
|
37
|
+
* Deletes the application with the provided key.
|
|
38
|
+
*/
|
|
39
|
+
const applicationsDelete = (options) => (options.client ?? client_gen_1.client).delete({
|
|
40
|
+
responseTransformer: transformers_gen_1.applicationsDeleteResponseTransformer,
|
|
41
|
+
url: '/applications/{key}',
|
|
42
|
+
...options
|
|
43
|
+
});
|
|
44
|
+
exports.applicationsDelete = applicationsDelete;
|
|
45
|
+
/**
|
|
46
|
+
* Get application
|
|
47
|
+
*
|
|
48
|
+
* Get the application with the provided key.
|
|
49
|
+
*/
|
|
50
|
+
const applicationsGet = (options) => (options.client ?? client_gen_1.client).get({
|
|
51
|
+
responseTransformer: transformers_gen_1.applicationsGetResponseTransformer,
|
|
52
|
+
url: '/applications/{key}',
|
|
53
|
+
...options
|
|
54
|
+
});
|
|
55
|
+
exports.applicationsGet = applicationsGet;
|
|
56
|
+
/**
|
|
57
|
+
* Patch application
|
|
58
|
+
*
|
|
59
|
+
* Patch an existing application.
|
|
60
|
+
*/
|
|
61
|
+
const applicationsPatch = (options) => (options.client ?? client_gen_1.client).patch({
|
|
62
|
+
responseTransformer: transformers_gen_1.applicationsPatchResponseTransformer,
|
|
63
|
+
url: '/applications/{key}',
|
|
64
|
+
...options,
|
|
65
|
+
headers: {
|
|
66
|
+
'Content-Type': 'application/merge-patch+json',
|
|
67
|
+
...options.headers
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
exports.applicationsPatch = applicationsPatch;
|
|
7
71
|
/**
|
|
8
72
|
* List blueprints
|
|
9
73
|
*
|
|
10
|
-
* List blueprints using the provided parameters.
|
|
74
|
+
* List blueprints using the provided parameters.
|
|
11
75
|
*/
|
|
12
76
|
const blueprintsList = (options) => (options?.client ?? client_gen_1.client).get({
|
|
13
77
|
responseTransformer: transformers_gen_1.blueprintsListResponseTransformer,
|
|
14
|
-
url: '/
|
|
78
|
+
url: '/blueprints',
|
|
15
79
|
...options
|
|
16
80
|
});
|
|
17
81
|
exports.blueprintsList = blueprintsList;
|
|
18
82
|
/**
|
|
19
|
-
* Create
|
|
83
|
+
* Create blueprint
|
|
20
84
|
*
|
|
21
|
-
* Create a new blueprint.
|
|
85
|
+
* Create a new blueprint.
|
|
22
86
|
*/
|
|
23
87
|
const blueprintsCreate = (options) => (options.client ?? client_gen_1.client).post({
|
|
24
88
|
responseTransformer: transformers_gen_1.blueprintsCreateResponseTransformer,
|
|
25
|
-
url: '/
|
|
89
|
+
url: '/blueprints',
|
|
26
90
|
...options,
|
|
27
91
|
headers: {
|
|
28
92
|
'Content-Type': 'application/json',
|
|
@@ -31,35 +95,35 @@ const blueprintsCreate = (options) => (options.client ?? client_gen_1.client).po
|
|
|
31
95
|
});
|
|
32
96
|
exports.blueprintsCreate = blueprintsCreate;
|
|
33
97
|
/**
|
|
34
|
-
* Delete
|
|
98
|
+
* Delete blueprint
|
|
35
99
|
*
|
|
36
|
-
* Deletes the blueprint with the provided key.
|
|
100
|
+
* Deletes the blueprint with the provided key.
|
|
37
101
|
*/
|
|
38
102
|
const blueprintsDelete = (options) => (options.client ?? client_gen_1.client).delete({
|
|
39
103
|
responseTransformer: transformers_gen_1.blueprintsDeleteResponseTransformer,
|
|
40
|
-
url: '/
|
|
104
|
+
url: '/blueprints/{key}',
|
|
41
105
|
...options
|
|
42
106
|
});
|
|
43
107
|
exports.blueprintsDelete = blueprintsDelete;
|
|
44
108
|
/**
|
|
45
|
-
* Get
|
|
109
|
+
* Get blueprint
|
|
46
110
|
*
|
|
47
|
-
* Get the blueprint with the provided key.
|
|
111
|
+
* Get the blueprint with the provided key.
|
|
48
112
|
*/
|
|
49
113
|
const blueprintsGet = (options) => (options.client ?? client_gen_1.client).get({
|
|
50
114
|
responseTransformer: transformers_gen_1.blueprintsGetResponseTransformer,
|
|
51
|
-
url: '/
|
|
115
|
+
url: '/blueprints/{key}',
|
|
52
116
|
...options
|
|
53
117
|
});
|
|
54
118
|
exports.blueprintsGet = blueprintsGet;
|
|
55
119
|
/**
|
|
56
120
|
* Patch blueprint
|
|
57
121
|
*
|
|
58
|
-
* Patch an existing blueprint.
|
|
122
|
+
* Patch an existing blueprint.
|
|
59
123
|
*/
|
|
60
124
|
const blueprintsPatch = (options) => (options.client ?? client_gen_1.client).patch({
|
|
61
125
|
responseTransformer: transformers_gen_1.blueprintsPatchResponseTransformer,
|
|
62
|
-
url: '/
|
|
126
|
+
url: '/blueprints/{key}',
|
|
63
127
|
...options,
|
|
64
128
|
headers: {
|
|
65
129
|
'Content-Type': 'application/merge-patch+json',
|
|
@@ -68,327 +132,424 @@ const blueprintsPatch = (options) => (options.client ?? client_gen_1.client).pat
|
|
|
68
132
|
});
|
|
69
133
|
exports.blueprintsPatch = blueprintsPatch;
|
|
70
134
|
/**
|
|
71
|
-
*
|
|
135
|
+
* Create content
|
|
72
136
|
*
|
|
73
|
-
*
|
|
137
|
+
* Create a new content item.
|
|
74
138
|
*/
|
|
75
|
-
const
|
|
76
|
-
responseTransformer: transformers_gen_1.
|
|
77
|
-
url: '/
|
|
78
|
-
...options
|
|
139
|
+
const contentCreate = (options) => (options.client ?? client_gen_1.client).post({
|
|
140
|
+
responseTransformer: transformers_gen_1.contentCreateResponseTransformer,
|
|
141
|
+
url: '/content',
|
|
142
|
+
...options,
|
|
143
|
+
headers: {
|
|
144
|
+
'Content-Type': 'application/json',
|
|
145
|
+
...options.headers
|
|
146
|
+
}
|
|
79
147
|
});
|
|
80
|
-
exports.
|
|
148
|
+
exports.contentCreate = contentCreate;
|
|
81
149
|
/**
|
|
82
|
-
*
|
|
150
|
+
* Copy content
|
|
83
151
|
*
|
|
84
|
-
*
|
|
152
|
+
* Create a copy of the content item with the provided key.
|
|
85
153
|
*/
|
|
86
|
-
const
|
|
87
|
-
responseTransformer: transformers_gen_1.
|
|
88
|
-
url: '/
|
|
154
|
+
const contentCopy = (options) => (options.client ?? client_gen_1.client).post({
|
|
155
|
+
responseTransformer: transformers_gen_1.contentCopyResponseTransformer,
|
|
156
|
+
url: '/content/{key}:copy',
|
|
89
157
|
...options,
|
|
90
158
|
headers: {
|
|
91
159
|
'Content-Type': 'application/json',
|
|
92
160
|
...options.headers
|
|
93
161
|
}
|
|
94
162
|
});
|
|
95
|
-
exports.
|
|
163
|
+
exports.contentCopy = contentCopy;
|
|
164
|
+
/**
|
|
165
|
+
* Restore content
|
|
166
|
+
*
|
|
167
|
+
* Restore the deleted content item with the provided key. If a content item with the provided key is not deleted an error is returned.
|
|
168
|
+
*/
|
|
169
|
+
const contentUndelete = (options) => (options.client ?? client_gen_1.client).post({
|
|
170
|
+
responseTransformer: transformers_gen_1.contentUndeleteResponseTransformer,
|
|
171
|
+
url: '/content/{key}:undelete',
|
|
172
|
+
...options
|
|
173
|
+
});
|
|
174
|
+
exports.contentUndelete = contentUndelete;
|
|
96
175
|
/**
|
|
97
|
-
* Delete
|
|
176
|
+
* Delete content
|
|
98
177
|
*
|
|
99
|
-
* Deletes the
|
|
178
|
+
* Deletes the content item with the provided key. If a content item with the provided key does not exist an error is returned.
|
|
100
179
|
*/
|
|
101
|
-
const
|
|
102
|
-
responseTransformer: transformers_gen_1.
|
|
103
|
-
url: '/
|
|
180
|
+
const contentDelete = (options) => (options.client ?? client_gen_1.client).delete({
|
|
181
|
+
responseTransformer: transformers_gen_1.contentDeleteResponseTransformer,
|
|
182
|
+
url: '/content/{key}',
|
|
104
183
|
...options
|
|
105
184
|
});
|
|
106
|
-
exports.
|
|
185
|
+
exports.contentDelete = contentDelete;
|
|
107
186
|
/**
|
|
108
|
-
* Get
|
|
187
|
+
* Get content node
|
|
109
188
|
*
|
|
110
|
-
*
|
|
189
|
+
* Get content node with the provided key.
|
|
111
190
|
*/
|
|
112
|
-
const
|
|
113
|
-
responseTransformer: transformers_gen_1.
|
|
114
|
-
url: '/
|
|
191
|
+
const contentGetNode = (options) => (options.client ?? client_gen_1.client).get({
|
|
192
|
+
responseTransformer: transformers_gen_1.contentGetNodeResponseTransformer,
|
|
193
|
+
url: '/content/{key}',
|
|
115
194
|
...options
|
|
116
195
|
});
|
|
117
|
-
exports.
|
|
196
|
+
exports.contentGetNode = contentGetNode;
|
|
118
197
|
/**
|
|
119
|
-
* Patch
|
|
198
|
+
* Patch content
|
|
120
199
|
*
|
|
121
|
-
* Patch an existing
|
|
200
|
+
* Patch an existing content item. If a content item with the provided key does not exist an error is returned.
|
|
122
201
|
*/
|
|
123
|
-
const
|
|
124
|
-
responseTransformer: transformers_gen_1.
|
|
125
|
-
url: '/
|
|
202
|
+
const contentPatchNode = (options) => (options.client ?? client_gen_1.client).patch({
|
|
203
|
+
responseTransformer: transformers_gen_1.contentPatchNodeResponseTransformer,
|
|
204
|
+
url: '/content/{key}',
|
|
126
205
|
...options,
|
|
127
206
|
headers: {
|
|
128
207
|
'Content-Type': 'application/merge-patch+json',
|
|
129
208
|
...options.headers
|
|
130
209
|
}
|
|
131
210
|
});
|
|
132
|
-
exports.
|
|
211
|
+
exports.contentPatchNode = contentPatchNode;
|
|
133
212
|
/**
|
|
134
|
-
*
|
|
213
|
+
* List assets
|
|
135
214
|
*
|
|
136
|
-
*
|
|
215
|
+
* List the assets that belongs to a content instance.
|
|
137
216
|
*/
|
|
138
|
-
const
|
|
139
|
-
|
|
217
|
+
const contentListAssets = (options) => (options.client ?? client_gen_1.client).get({
|
|
218
|
+
querySerializer: { parameters: { contentTypes: { array: { explode: false } } } },
|
|
219
|
+
responseTransformer: transformers_gen_1.contentListAssetsResponseTransformer,
|
|
220
|
+
url: '/content/{key}/assets',
|
|
221
|
+
...options
|
|
222
|
+
});
|
|
223
|
+
exports.contentListAssets = contentListAssets;
|
|
140
224
|
/**
|
|
141
|
-
*
|
|
225
|
+
* List content in container
|
|
142
226
|
*
|
|
143
|
-
*
|
|
227
|
+
* List the content items located in a specific container.
|
|
144
228
|
*/
|
|
145
|
-
const
|
|
146
|
-
|
|
229
|
+
const contentListItems = (options) => (options.client ?? client_gen_1.client).get({
|
|
230
|
+
querySerializer: { parameters: { contentTypes: { array: { explode: false } } } },
|
|
231
|
+
responseTransformer: transformers_gen_1.contentListItemsResponseTransformer,
|
|
232
|
+
url: '/content/{key}/items',
|
|
233
|
+
...options
|
|
234
|
+
});
|
|
235
|
+
exports.contentListItems = contentListItems;
|
|
236
|
+
/**
|
|
237
|
+
* Delete locale
|
|
238
|
+
*
|
|
239
|
+
* Deletes a branch of the content with the provided key and locale. Returns the published or latest content item in the locale that was deleted. If a content item with the provided key does not exist an error is returned.
|
|
240
|
+
*/
|
|
241
|
+
const contentDeleteLocale = (options) => (options.client ?? client_gen_1.client).delete({
|
|
242
|
+
responseTransformer: transformers_gen_1.contentDeleteLocaleResponseTransformer,
|
|
243
|
+
url: '/content/{key}/locales/{locale}',
|
|
244
|
+
...options
|
|
245
|
+
});
|
|
246
|
+
exports.contentDeleteLocale = contentDeleteLocale;
|
|
247
|
+
/**
|
|
248
|
+
* List locale versions
|
|
249
|
+
*
|
|
250
|
+
* List versions of the content with the provided key and locale.
|
|
251
|
+
*/
|
|
252
|
+
const contentListLocaleVersions = (options) => (options.client ?? client_gen_1.client).get({
|
|
253
|
+
responseTransformer: transformers_gen_1.contentListLocaleVersionsResponseTransformer,
|
|
254
|
+
url: '/content/{key}/locales/{locale}',
|
|
255
|
+
...options
|
|
256
|
+
});
|
|
257
|
+
exports.contentListLocaleVersions = contentListLocaleVersions;
|
|
147
258
|
/**
|
|
148
|
-
*
|
|
259
|
+
* Get content path
|
|
149
260
|
*
|
|
150
|
-
*
|
|
261
|
+
* Get the content path with the provided key.
|
|
151
262
|
*/
|
|
152
|
-
const
|
|
153
|
-
|
|
263
|
+
const contentGetPath = (options) => (options.client ?? client_gen_1.client).get({
|
|
264
|
+
responseTransformer: transformers_gen_1.contentGetPathResponseTransformer,
|
|
265
|
+
url: '/content/{key}/path',
|
|
266
|
+
...options
|
|
267
|
+
});
|
|
268
|
+
exports.contentGetPath = contentGetPath;
|
|
269
|
+
/**
|
|
270
|
+
* List versions
|
|
271
|
+
*
|
|
272
|
+
* List versions of the content item with the provided key and the provided options.
|
|
273
|
+
*/
|
|
274
|
+
const contentListVersions = (options) => (options.client ?? client_gen_1.client).get({
|
|
275
|
+
querySerializer: { parameters: { locales: { array: { explode: false } }, statuses: { array: { explode: false } } } },
|
|
276
|
+
responseTransformer: transformers_gen_1.contentListVersionsResponseTransformer,
|
|
277
|
+
url: '/content/{key}/versions',
|
|
278
|
+
...options
|
|
279
|
+
});
|
|
280
|
+
exports.contentListVersions = contentListVersions;
|
|
281
|
+
/**
|
|
282
|
+
* Create version
|
|
283
|
+
*
|
|
284
|
+
* Create a new version of a content item.
|
|
285
|
+
*/
|
|
286
|
+
const contentCreateVersion = (options) => (options.client ?? client_gen_1.client).post({
|
|
287
|
+
responseTransformer: transformers_gen_1.contentCreateVersionResponseTransformer,
|
|
288
|
+
url: '/content/{key}/versions',
|
|
154
289
|
...options,
|
|
155
290
|
headers: {
|
|
156
|
-
'Content-Type': 'application/
|
|
291
|
+
'Content-Type': 'application/json',
|
|
157
292
|
...options.headers
|
|
158
293
|
}
|
|
159
294
|
});
|
|
160
|
-
exports.
|
|
295
|
+
exports.contentCreateVersion = contentCreateVersion;
|
|
161
296
|
/**
|
|
162
|
-
*
|
|
163
|
-
*
|
|
164
|
-
* Lists the available changeset items for the specified changeset using
|
|
165
|
-
* the provided options. This API is experimental and may change in future releases.
|
|
297
|
+
* Approve the active step of an approval for a content version that is in review. For multi-step approvals, the version remains in review until all steps are approved.
|
|
166
298
|
*/
|
|
167
|
-
const
|
|
168
|
-
|
|
299
|
+
const contentApprove = (options) => (options.client ?? client_gen_1.client).post({
|
|
300
|
+
responseTransformer: transformers_gen_1.contentApproveResponseTransformer,
|
|
301
|
+
url: '/content/{key}/versions/{version}:approve',
|
|
302
|
+
...options,
|
|
303
|
+
headers: {
|
|
304
|
+
'Content-Type': 'application/json',
|
|
305
|
+
...options.headers
|
|
306
|
+
}
|
|
307
|
+
});
|
|
308
|
+
exports.contentApprove = contentApprove;
|
|
169
309
|
/**
|
|
170
|
-
*
|
|
171
|
-
*
|
|
172
|
-
* Creates the given changeset item. This API is experimental and may change in future releases.
|
|
310
|
+
* Change content version into draft status.
|
|
173
311
|
*/
|
|
174
|
-
const
|
|
175
|
-
|
|
312
|
+
const contentDraft = (options) => (options.client ?? client_gen_1.client).post({
|
|
313
|
+
responseTransformer: transformers_gen_1.contentDraftResponseTransformer,
|
|
314
|
+
url: '/content/{key}/versions/{version}:draft',
|
|
315
|
+
...options
|
|
316
|
+
});
|
|
317
|
+
exports.contentDraft = contentDraft;
|
|
318
|
+
/**
|
|
319
|
+
* Publish content version
|
|
320
|
+
*/
|
|
321
|
+
const contentPublish = (options) => (options.client ?? client_gen_1.client).post({
|
|
322
|
+
responseTransformer: transformers_gen_1.contentPublishResponseTransformer,
|
|
323
|
+
url: '/content/{key}/versions/{version}:publish',
|
|
176
324
|
...options,
|
|
177
325
|
headers: {
|
|
178
326
|
'Content-Type': 'application/json',
|
|
179
327
|
...options.headers
|
|
180
328
|
}
|
|
181
329
|
});
|
|
182
|
-
exports.
|
|
330
|
+
exports.contentPublish = contentPublish;
|
|
183
331
|
/**
|
|
184
|
-
*
|
|
185
|
-
*
|
|
186
|
-
* Create a new content item. This API is experimental and may change in future releases.
|
|
332
|
+
* Make content ready to publish, if approvals are required the version will automatically be moved to in review.
|
|
187
333
|
*/
|
|
188
|
-
const
|
|
189
|
-
responseTransformer: transformers_gen_1.
|
|
190
|
-
url: '/
|
|
334
|
+
const contentReady = (options) => (options.client ?? client_gen_1.client).post({
|
|
335
|
+
responseTransformer: transformers_gen_1.contentReadyResponseTransformer,
|
|
336
|
+
url: '/content/{key}/versions/{version}:ready',
|
|
191
337
|
...options,
|
|
192
338
|
headers: {
|
|
193
339
|
'Content-Type': 'application/json',
|
|
194
340
|
...options.headers
|
|
195
341
|
}
|
|
196
342
|
});
|
|
197
|
-
exports.
|
|
343
|
+
exports.contentReady = contentReady;
|
|
198
344
|
/**
|
|
199
|
-
*
|
|
345
|
+
* Reject a content version that is in review. The version transitions to rejected status regardless of remaining approval steps.
|
|
346
|
+
*/
|
|
347
|
+
const contentReject = (options) => (options.client ?? client_gen_1.client).post({
|
|
348
|
+
responseTransformer: transformers_gen_1.contentRejectResponseTransformer,
|
|
349
|
+
url: '/content/{key}/versions/{version}:reject',
|
|
350
|
+
...options,
|
|
351
|
+
headers: {
|
|
352
|
+
'Content-Type': 'application/json',
|
|
353
|
+
...options.headers
|
|
354
|
+
}
|
|
355
|
+
});
|
|
356
|
+
exports.contentReject = contentReject;
|
|
357
|
+
/**
|
|
358
|
+
* Delete version
|
|
200
359
|
*
|
|
201
|
-
* Deletes the content item with the provided key. If a content item with the provided key does not exist an error is returned.
|
|
360
|
+
* Deletes the content item with the provided key and version and returns the deleted item. If a content item with the provided key does not exist an error is returned.
|
|
202
361
|
*/
|
|
203
|
-
const
|
|
204
|
-
responseTransformer: transformers_gen_1.
|
|
205
|
-
url: '/
|
|
362
|
+
const contentDeleteVersion = (options) => (options.client ?? client_gen_1.client).delete({
|
|
363
|
+
responseTransformer: transformers_gen_1.contentDeleteVersionResponseTransformer,
|
|
364
|
+
url: '/content/{key}/versions/{version}',
|
|
206
365
|
...options
|
|
207
366
|
});
|
|
208
|
-
exports.
|
|
367
|
+
exports.contentDeleteVersion = contentDeleteVersion;
|
|
209
368
|
/**
|
|
210
|
-
* Get
|
|
369
|
+
* Get version
|
|
211
370
|
*
|
|
212
|
-
* Get
|
|
371
|
+
* Get the content item with the provided key and version.
|
|
213
372
|
*/
|
|
214
|
-
const
|
|
215
|
-
responseTransformer: transformers_gen_1.
|
|
216
|
-
url: '/
|
|
373
|
+
const contentGetVersion = (options) => (options.client ?? client_gen_1.client).get({
|
|
374
|
+
responseTransformer: transformers_gen_1.contentGetVersionResponseTransformer,
|
|
375
|
+
url: '/content/{key}/versions/{version}',
|
|
217
376
|
...options
|
|
218
377
|
});
|
|
219
|
-
exports.
|
|
378
|
+
exports.contentGetVersion = contentGetVersion;
|
|
220
379
|
/**
|
|
221
|
-
* Patch
|
|
380
|
+
* Patch version
|
|
222
381
|
*
|
|
223
|
-
* Patch an existing content item. If a content item with the provided key does not exist an error is returned.
|
|
382
|
+
* Patch an existing content item and returns the updated content item. If a content item with the provided key does not exist an error is returned.
|
|
224
383
|
*/
|
|
225
|
-
const
|
|
226
|
-
responseTransformer: transformers_gen_1.
|
|
227
|
-
url: '/
|
|
384
|
+
const contentPatchVersion = (options) => (options.client ?? client_gen_1.client).patch({
|
|
385
|
+
responseTransformer: transformers_gen_1.contentPatchVersionResponseTransformer,
|
|
386
|
+
url: '/content/{key}/versions/{version}',
|
|
228
387
|
...options,
|
|
229
388
|
headers: {
|
|
230
389
|
'Content-Type': 'application/merge-patch+json',
|
|
231
390
|
...options.headers
|
|
232
391
|
}
|
|
233
392
|
});
|
|
234
|
-
exports.
|
|
393
|
+
exports.contentPatchVersion = contentPatchVersion;
|
|
235
394
|
/**
|
|
236
|
-
*
|
|
395
|
+
* Download content media file.
|
|
237
396
|
*
|
|
238
|
-
*
|
|
397
|
+
* Download the media file for a specific content item version.
|
|
239
398
|
*/
|
|
240
|
-
const
|
|
241
|
-
|
|
242
|
-
url: '/experimental/content/{key}/path',
|
|
243
|
-
...options
|
|
244
|
-
});
|
|
245
|
-
exports.contentGetPath = contentGetPath;
|
|
399
|
+
const contentGetMedia = (options) => (options.client ?? client_gen_1.client).get({ url: '/content/{key}/versions/{version}/media', ...options });
|
|
400
|
+
exports.contentGetMedia = contentGetMedia;
|
|
246
401
|
/**
|
|
247
|
-
*
|
|
402
|
+
* Get preview URLs for a content item version.
|
|
248
403
|
*
|
|
249
|
-
*
|
|
404
|
+
* Generate preview URLs for the content item with fresh authentication tokens.
|
|
250
405
|
*/
|
|
251
|
-
const
|
|
252
|
-
|
|
253
|
-
|
|
406
|
+
const contentGetPreviews = (options) => (options.client ?? client_gen_1.client).get({ url: '/content/{key}/versions/{version}/previews', ...options });
|
|
407
|
+
exports.contentGetPreviews = contentGetPreviews;
|
|
408
|
+
/**
|
|
409
|
+
* Query versions
|
|
410
|
+
*
|
|
411
|
+
* List content versions based on the provided query options.
|
|
412
|
+
*/
|
|
413
|
+
const contentListAllVersions = (options) => (options?.client ?? client_gen_1.client).get({
|
|
414
|
+
querySerializer: { parameters: { locales: { array: { explode: false } }, statuses: { array: { explode: false } } } },
|
|
415
|
+
responseTransformer: transformers_gen_1.contentListAllVersionsResponseTransformer,
|
|
416
|
+
url: '/content/versions',
|
|
254
417
|
...options
|
|
255
418
|
});
|
|
256
|
-
exports.
|
|
419
|
+
exports.contentListAllVersions = contentListAllVersions;
|
|
257
420
|
/**
|
|
258
|
-
* List
|
|
421
|
+
* List content sources
|
|
259
422
|
*
|
|
260
|
-
* List
|
|
423
|
+
* List content sources using the provided options.
|
|
261
424
|
*/
|
|
262
|
-
const
|
|
263
|
-
responseTransformer: transformers_gen_1.
|
|
264
|
-
url: '/
|
|
425
|
+
const contentSourcesList = (options) => (options?.client ?? client_gen_1.client).get({
|
|
426
|
+
responseTransformer: transformers_gen_1.contentSourcesListResponseTransformer,
|
|
427
|
+
url: '/contentsources',
|
|
265
428
|
...options
|
|
266
429
|
});
|
|
267
|
-
exports.
|
|
430
|
+
exports.contentSourcesList = contentSourcesList;
|
|
268
431
|
/**
|
|
269
|
-
*
|
|
432
|
+
* Create contentsource
|
|
270
433
|
*
|
|
271
|
-
* Create a
|
|
434
|
+
* Create a new contentsource.
|
|
272
435
|
*/
|
|
273
|
-
const
|
|
274
|
-
responseTransformer: transformers_gen_1.
|
|
275
|
-
url: '/
|
|
436
|
+
const contentSourcesCreate = (options) => (options.client ?? client_gen_1.client).post({
|
|
437
|
+
responseTransformer: transformers_gen_1.contentSourcesCreateResponseTransformer,
|
|
438
|
+
url: '/contentsources',
|
|
276
439
|
...options,
|
|
277
440
|
headers: {
|
|
278
441
|
'Content-Type': 'application/json',
|
|
279
442
|
...options.headers
|
|
280
443
|
}
|
|
281
444
|
});
|
|
282
|
-
exports.
|
|
445
|
+
exports.contentSourcesCreate = contentSourcesCreate;
|
|
283
446
|
/**
|
|
284
|
-
*
|
|
447
|
+
* Delete contentsource
|
|
285
448
|
*
|
|
286
|
-
*
|
|
449
|
+
* Deletes the contentsource with the provided key.
|
|
287
450
|
*/
|
|
288
|
-
const
|
|
289
|
-
responseTransformer: transformers_gen_1.
|
|
290
|
-
url: '/
|
|
451
|
+
const contentSourcesDelete = (options) => (options.client ?? client_gen_1.client).delete({
|
|
452
|
+
responseTransformer: transformers_gen_1.contentSourcesDeleteResponseTransformer,
|
|
453
|
+
url: '/contentsources/{key}',
|
|
291
454
|
...options
|
|
292
455
|
});
|
|
293
|
-
exports.
|
|
456
|
+
exports.contentSourcesDelete = contentSourcesDelete;
|
|
294
457
|
/**
|
|
295
|
-
*
|
|
458
|
+
* Get contentsource
|
|
296
459
|
*
|
|
297
|
-
*
|
|
460
|
+
* Get the contentsource with the provided key.
|
|
298
461
|
*/
|
|
299
|
-
const
|
|
300
|
-
responseTransformer: transformers_gen_1.
|
|
301
|
-
url: '/
|
|
462
|
+
const contentSourcesGet = (options) => (options.client ?? client_gen_1.client).get({
|
|
463
|
+
responseTransformer: transformers_gen_1.contentSourcesGetResponseTransformer,
|
|
464
|
+
url: '/contentsources/{key}',
|
|
302
465
|
...options
|
|
303
466
|
});
|
|
304
|
-
exports.
|
|
467
|
+
exports.contentSourcesGet = contentSourcesGet;
|
|
305
468
|
/**
|
|
306
|
-
*
|
|
469
|
+
* Patch contentsource
|
|
307
470
|
*
|
|
308
|
-
*
|
|
471
|
+
* Patch an existing contentsource.
|
|
309
472
|
*/
|
|
310
|
-
const
|
|
311
|
-
responseTransformer: transformers_gen_1.
|
|
312
|
-
url: '/
|
|
313
|
-
...options
|
|
473
|
+
const contentSourcesPatch = (options) => (options.client ?? client_gen_1.client).patch({
|
|
474
|
+
responseTransformer: transformers_gen_1.contentSourcesPatchResponseTransformer,
|
|
475
|
+
url: '/contentsources/{key}',
|
|
476
|
+
...options,
|
|
477
|
+
headers: {
|
|
478
|
+
'Content-Type': 'application/merge-patch+json',
|
|
479
|
+
...options.headers
|
|
480
|
+
}
|
|
314
481
|
});
|
|
315
|
-
exports.
|
|
482
|
+
exports.contentSourcesPatch = contentSourcesPatch;
|
|
316
483
|
/**
|
|
317
|
-
* List
|
|
484
|
+
* List content type bindings
|
|
318
485
|
*
|
|
319
|
-
* List
|
|
486
|
+
* List type bindings using the provided options.
|
|
320
487
|
*/
|
|
321
|
-
const
|
|
322
|
-
responseTransformer: transformers_gen_1.
|
|
323
|
-
url: '/
|
|
488
|
+
const contentTypeBindingsList = (options) => (options?.client ?? client_gen_1.client).get({
|
|
489
|
+
responseTransformer: transformers_gen_1.contentTypeBindingsListResponseTransformer,
|
|
490
|
+
url: '/contenttypebindings',
|
|
324
491
|
...options
|
|
325
492
|
});
|
|
326
|
-
exports.
|
|
493
|
+
exports.contentTypeBindingsList = contentTypeBindingsList;
|
|
327
494
|
/**
|
|
328
|
-
* Create
|
|
495
|
+
* Create contenttypebinding
|
|
329
496
|
*
|
|
330
|
-
* Create a new
|
|
497
|
+
* Create a new contenttypebinding.
|
|
331
498
|
*/
|
|
332
|
-
const
|
|
333
|
-
responseTransformer: transformers_gen_1.
|
|
334
|
-
url: '/
|
|
499
|
+
const contentTypeBindingsCreate = (options) => (options.client ?? client_gen_1.client).post({
|
|
500
|
+
responseTransformer: transformers_gen_1.contentTypeBindingsCreateResponseTransformer,
|
|
501
|
+
url: '/contenttypebindings',
|
|
335
502
|
...options,
|
|
336
503
|
headers: {
|
|
337
504
|
'Content-Type': 'application/json',
|
|
338
505
|
...options.headers
|
|
339
506
|
}
|
|
340
507
|
});
|
|
341
|
-
exports.
|
|
508
|
+
exports.contentTypeBindingsCreate = contentTypeBindingsCreate;
|
|
342
509
|
/**
|
|
343
|
-
* Delete
|
|
510
|
+
* Delete contenttypebinding
|
|
344
511
|
*
|
|
345
|
-
* Deletes the
|
|
512
|
+
* Deletes the contenttypebinding with the provided key.
|
|
346
513
|
*/
|
|
347
|
-
const
|
|
348
|
-
responseTransformer: transformers_gen_1.
|
|
349
|
-
url: '/
|
|
514
|
+
const contentTypeBindingsDelete = (options) => (options.client ?? client_gen_1.client).delete({
|
|
515
|
+
responseTransformer: transformers_gen_1.contentTypeBindingsDeleteResponseTransformer,
|
|
516
|
+
url: '/contenttypebindings/{key}',
|
|
350
517
|
...options
|
|
351
518
|
});
|
|
352
|
-
exports.
|
|
519
|
+
exports.contentTypeBindingsDelete = contentTypeBindingsDelete;
|
|
353
520
|
/**
|
|
354
|
-
* Get
|
|
521
|
+
* Get contenttypebinding
|
|
355
522
|
*
|
|
356
|
-
* Get the
|
|
523
|
+
* Get the contenttypebinding with the provided key.
|
|
357
524
|
*/
|
|
358
|
-
const
|
|
359
|
-
responseTransformer: transformers_gen_1.
|
|
360
|
-
url: '/
|
|
525
|
+
const contentTypeBindingsGet = (options) => (options.client ?? client_gen_1.client).get({
|
|
526
|
+
responseTransformer: transformers_gen_1.contentTypeBindingsGetResponseTransformer,
|
|
527
|
+
url: '/contenttypebindings/{key}',
|
|
361
528
|
...options
|
|
362
529
|
});
|
|
363
|
-
exports.
|
|
530
|
+
exports.contentTypeBindingsGet = contentTypeBindingsGet;
|
|
364
531
|
/**
|
|
365
|
-
* Patch
|
|
532
|
+
* Patch contenttypebinding
|
|
366
533
|
*
|
|
367
|
-
* Patch an existing
|
|
534
|
+
* Patch an existing contenttypebinding.
|
|
368
535
|
*/
|
|
369
|
-
const
|
|
370
|
-
responseTransformer: transformers_gen_1.
|
|
371
|
-
url: '/
|
|
536
|
+
const contentTypeBindingsPatch = (options) => (options.client ?? client_gen_1.client).patch({
|
|
537
|
+
responseTransformer: transformers_gen_1.contentTypeBindingsPatchResponseTransformer,
|
|
538
|
+
url: '/contenttypebindings/{key}',
|
|
372
539
|
...options,
|
|
373
540
|
headers: {
|
|
374
541
|
'Content-Type': 'application/merge-patch+json',
|
|
375
542
|
...options.headers
|
|
376
543
|
}
|
|
377
544
|
});
|
|
378
|
-
exports.
|
|
379
|
-
/**
|
|
380
|
-
* Get previews
|
|
381
|
-
*
|
|
382
|
-
* Generate preview URLs for the content item with fresh authentication tokens. This API is experimental and may change in future releases.
|
|
383
|
-
*/
|
|
384
|
-
const contentGetPreviews = (options) => (options.client ?? client_gen_1.client).get({ url: '/experimental/content/{key}/versions/{version}/previews', ...options });
|
|
385
|
-
exports.contentGetPreviews = contentGetPreviews;
|
|
545
|
+
exports.contentTypeBindingsPatch = contentTypeBindingsPatch;
|
|
386
546
|
/**
|
|
387
547
|
* List content types
|
|
388
548
|
*
|
|
389
549
|
* List content types using the provided parameters.
|
|
390
550
|
*/
|
|
391
551
|
const contentTypesList = (options) => (options?.client ?? client_gen_1.client).get({
|
|
552
|
+
querySerializer: { parameters: { sources: { array: { explode: false } } } },
|
|
392
553
|
responseTransformer: transformers_gen_1.contentTypesListResponseTransformer,
|
|
393
554
|
url: '/contenttypes',
|
|
394
555
|
...options
|
|
@@ -412,7 +573,7 @@ exports.contentTypesCreate = contentTypesCreate;
|
|
|
412
573
|
/**
|
|
413
574
|
* Delete content type
|
|
414
575
|
*
|
|
415
|
-
* Deletes the content type with the provided key.
|
|
576
|
+
* Deletes the content type with the provided key.
|
|
416
577
|
*/
|
|
417
578
|
const contentTypesDelete = (options) => (options.client ?? client_gen_1.client).delete({
|
|
418
579
|
responseTransformer: transformers_gen_1.contentTypesDeleteResponseTransformer,
|
|
@@ -434,7 +595,7 @@ exports.contentTypesGet = contentTypesGet;
|
|
|
434
595
|
/**
|
|
435
596
|
* Patch content type
|
|
436
597
|
*
|
|
437
|
-
* Patch an existing content type.
|
|
598
|
+
* Patch an existing content type.
|
|
438
599
|
*/
|
|
439
600
|
const contentTypesPatch = (options) => (options.client ?? client_gen_1.client).patch({
|
|
440
601
|
responseTransformer: transformers_gen_1.contentTypesPatchResponseTransformer,
|
|
@@ -509,6 +670,95 @@ const displayTemplatesPatch = (options) => (options.client ?? client_gen_1.clien
|
|
|
509
670
|
}
|
|
510
671
|
});
|
|
511
672
|
exports.displayTemplatesPatch = displayTemplatesPatch;
|
|
673
|
+
/**
|
|
674
|
+
* List locales
|
|
675
|
+
*
|
|
676
|
+
* List all locales (language branches) available in the CMS.
|
|
677
|
+
*/
|
|
678
|
+
const localesList = (options) => (options?.client ?? client_gen_1.client).get({
|
|
679
|
+
responseTransformer: transformers_gen_1.localesListResponseTransformer,
|
|
680
|
+
url: '/locales',
|
|
681
|
+
...options
|
|
682
|
+
});
|
|
683
|
+
exports.localesList = localesList;
|
|
684
|
+
/**
|
|
685
|
+
* Create locale
|
|
686
|
+
*
|
|
687
|
+
* Create a new locale.
|
|
688
|
+
*/
|
|
689
|
+
const localesCreate = (options) => (options.client ?? client_gen_1.client).post({
|
|
690
|
+
responseTransformer: transformers_gen_1.localesCreateResponseTransformer,
|
|
691
|
+
url: '/locales',
|
|
692
|
+
...options,
|
|
693
|
+
headers: {
|
|
694
|
+
'Content-Type': 'application/json',
|
|
695
|
+
...options.headers
|
|
696
|
+
}
|
|
697
|
+
});
|
|
698
|
+
exports.localesCreate = localesCreate;
|
|
699
|
+
/**
|
|
700
|
+
* Delete locale
|
|
701
|
+
*
|
|
702
|
+
* Deletes the locale with the provided key.
|
|
703
|
+
*/
|
|
704
|
+
const localesDelete = (options) => (options.client ?? client_gen_1.client).delete({
|
|
705
|
+
responseTransformer: transformers_gen_1.localesDeleteResponseTransformer,
|
|
706
|
+
url: '/locales/{key}',
|
|
707
|
+
...options
|
|
708
|
+
});
|
|
709
|
+
exports.localesDelete = localesDelete;
|
|
710
|
+
/**
|
|
711
|
+
* Get locale
|
|
712
|
+
*
|
|
713
|
+
* Get the locale with the provided key.
|
|
714
|
+
*/
|
|
715
|
+
const localesGet = (options) => (options.client ?? client_gen_1.client).get({
|
|
716
|
+
responseTransformer: transformers_gen_1.localesGetResponseTransformer,
|
|
717
|
+
url: '/locales/{key}',
|
|
718
|
+
...options
|
|
719
|
+
});
|
|
720
|
+
exports.localesGet = localesGet;
|
|
721
|
+
/**
|
|
722
|
+
* Patch locale
|
|
723
|
+
*
|
|
724
|
+
* Patch an existing locale.
|
|
725
|
+
*/
|
|
726
|
+
const localesPatch = (options) => (options.client ?? client_gen_1.client).patch({
|
|
727
|
+
responseTransformer: transformers_gen_1.localesPatchResponseTransformer,
|
|
728
|
+
url: '/locales/{key}',
|
|
729
|
+
...options,
|
|
730
|
+
headers: {
|
|
731
|
+
'Content-Type': 'application/merge-patch+json',
|
|
732
|
+
...options.headers
|
|
733
|
+
}
|
|
734
|
+
});
|
|
735
|
+
exports.localesPatch = localesPatch;
|
|
736
|
+
/**
|
|
737
|
+
* Export manifest
|
|
738
|
+
*
|
|
739
|
+
* Export a CMS content manifest.
|
|
740
|
+
*/
|
|
741
|
+
const manifestExport = (options) => (options?.client ?? client_gen_1.client).get({
|
|
742
|
+
querySerializer: { parameters: { sections: { array: { explode: false } } } },
|
|
743
|
+
responseTransformer: transformers_gen_1.manifestExportResponseTransformer,
|
|
744
|
+
url: '/manifest',
|
|
745
|
+
...options
|
|
746
|
+
});
|
|
747
|
+
exports.manifestExport = manifestExport;
|
|
748
|
+
/**
|
|
749
|
+
* Import manifest
|
|
750
|
+
*
|
|
751
|
+
* Import a CMS content manifest.
|
|
752
|
+
*/
|
|
753
|
+
const manifestImport = (options) => (options.client ?? client_gen_1.client).post({
|
|
754
|
+
url: '/manifest',
|
|
755
|
+
...options,
|
|
756
|
+
headers: {
|
|
757
|
+
'Content-Type': 'application/json',
|
|
758
|
+
...options.headers
|
|
759
|
+
}
|
|
760
|
+
});
|
|
761
|
+
exports.manifestImport = manifestImport;
|
|
512
762
|
/**
|
|
513
763
|
* List property formats
|
|
514
764
|
*
|
|
@@ -537,6 +787,7 @@ exports.propertyFormatsGet = propertyFormatsGet;
|
|
|
537
787
|
* List property groups using the provided options.
|
|
538
788
|
*/
|
|
539
789
|
const propertyGroupsList = (options) => (options?.client ?? client_gen_1.client).get({
|
|
790
|
+
querySerializer: { parameters: { sources: { array: { explode: false } } } },
|
|
540
791
|
responseTransformer: transformers_gen_1.propertyGroupsListResponseTransformer,
|
|
541
792
|
url: '/propertygroups',
|
|
542
793
|
...options
|