@remkoj/optimizely-cms-api 6.0.0-pre9 → 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/README.md +6 -2
- package/dist/api-client.d.ts +10 -77
- package/dist/api-client.js +18 -171
- package/dist/client/client/client.gen.js +114 -102
- package/dist/client/client/index.d.ts +3 -1
- package/dist/client/client/types.gen.d.ts +9 -13
- package/dist/client/client/utils.gen.d.ts +8 -4
- package/dist/client/client/utils.gen.js +15 -17
- package/dist/client/client.gen.d.ts +2 -2
- package/dist/client/client.gen.js +2 -4
- package/dist/client/core/auth.gen.d.ts +7 -0
- package/dist/client/core/bodySerializer.gen.d.ts +16 -8
- package/dist/client/core/bodySerializer.gen.js +1 -1
- package/dist/client/core/params.gen.d.ts +12 -2
- package/dist/client/core/params.gen.js +40 -20
- package/dist/client/core/pathSerializer.gen.js +3 -11
- package/dist/client/core/queryKeySerializer.gen.d.ts +1 -1
- package/dist/client/core/queryKeySerializer.gen.js +4 -11
- package/dist/client/core/serverSentEvents.gen.d.ts +1 -1
- package/dist/client/core/serverSentEvents.gen.js +7 -11
- 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 +4 -4
- package/dist/client/index.js +140 -17
- package/dist/client/sdk.gen.d.ts +336 -23
- package/dist/client/sdk.gen.js +761 -148
- package/dist/client/transformers.gen.d.ts +49 -1
- package/dist/client/transformers.gen.js +491 -49
- package/dist/client/types.gen.d.ts +5323 -466
- 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 -2
- package/dist/index.js +18 -5
- package/dist/types.d.ts +1 -14
- package/dist/types.js +0 -7
- package/dist/version.json +3 -3
- package/package.json +23 -12
- package/dist/instance.client/client/client.gen.d.ts +0 -2
- package/dist/instance.client/client/client.gen.js +0 -208
- package/dist/instance.client/client/index.d.ts +0 -8
- package/dist/instance.client/client/index.js +0 -17
- package/dist/instance.client/client/types.gen.d.ts +0 -124
- package/dist/instance.client/client/types.gen.js +0 -3
- package/dist/instance.client/client/utils.gen.d.ts +0 -33
- package/dist/instance.client/client/utils.gen.js +0 -241
- package/dist/instance.client/client.gen.d.ts +0 -12
- package/dist/instance.client/client.gen.js +0 -9
- package/dist/instance.client/core/auth.gen.d.ts +0 -18
- package/dist/instance.client/core/auth.gen.js +0 -18
- package/dist/instance.client/core/bodySerializer.gen.d.ts +0 -17
- package/dist/instance.client/core/bodySerializer.gen.js +0 -60
- package/dist/instance.client/core/params.gen.d.ts +0 -33
- package/dist/instance.client/core/params.gen.js +0 -92
- package/dist/instance.client/core/pathSerializer.gen.d.ts +0 -33
- package/dist/instance.client/core/pathSerializer.gen.js +0 -123
- package/dist/instance.client/core/queryKeySerializer.gen.d.ts +0 -18
- package/dist/instance.client/core/queryKeySerializer.gen.js +0 -105
- package/dist/instance.client/core/serverSentEvents.gen.d.ts +0 -71
- package/dist/instance.client/core/serverSentEvents.gen.js +0 -139
- package/dist/instance.client/core/types.gen.d.ts +0 -78
- package/dist/instance.client/core/types.gen.js +0 -3
- package/dist/instance.client/core/utils.gen.d.ts +0 -19
- package/dist/instance.client/core/utils.gen.js +0 -93
- package/dist/instance.client/index.d.ts +0 -4
- package/dist/instance.client/index.js +0 -21
- package/dist/instance.client/sdk.gen.d.ts +0 -256
- package/dist/instance.client/sdk.gen.js +0 -638
- package/dist/instance.client/transformers.gen.d.ts +0 -34
- package/dist/instance.client/transformers.gen.js +0 -273
- package/dist/instance.client/types.gen.d.ts +0 -2838
- package/dist/instance.client/types.gen.js +0 -3
package/dist/client/sdk.gen.js
CHANGED
|
@@ -1,234 +1,847 @@
|
|
|
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;
|
|
71
|
+
/**
|
|
72
|
+
* List blueprints
|
|
73
|
+
*
|
|
74
|
+
* List blueprints using the provided parameters.
|
|
75
|
+
*/
|
|
76
|
+
const blueprintsList = (options) => (options?.client ?? client_gen_1.client).get({
|
|
77
|
+
responseTransformer: transformers_gen_1.blueprintsListResponseTransformer,
|
|
78
|
+
url: '/blueprints',
|
|
79
|
+
...options
|
|
80
|
+
});
|
|
81
|
+
exports.blueprintsList = blueprintsList;
|
|
82
|
+
/**
|
|
83
|
+
* Create blueprint
|
|
84
|
+
*
|
|
85
|
+
* Create a new blueprint.
|
|
86
|
+
*/
|
|
87
|
+
const blueprintsCreate = (options) => (options.client ?? client_gen_1.client).post({
|
|
88
|
+
responseTransformer: transformers_gen_1.blueprintsCreateResponseTransformer,
|
|
89
|
+
url: '/blueprints',
|
|
90
|
+
...options,
|
|
91
|
+
headers: {
|
|
92
|
+
'Content-Type': 'application/json',
|
|
93
|
+
...options.headers
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
exports.blueprintsCreate = blueprintsCreate;
|
|
97
|
+
/**
|
|
98
|
+
* Delete blueprint
|
|
99
|
+
*
|
|
100
|
+
* Deletes the blueprint with the provided key.
|
|
101
|
+
*/
|
|
102
|
+
const blueprintsDelete = (options) => (options.client ?? client_gen_1.client).delete({
|
|
103
|
+
responseTransformer: transformers_gen_1.blueprintsDeleteResponseTransformer,
|
|
104
|
+
url: '/blueprints/{key}',
|
|
105
|
+
...options
|
|
106
|
+
});
|
|
107
|
+
exports.blueprintsDelete = blueprintsDelete;
|
|
108
|
+
/**
|
|
109
|
+
* Get blueprint
|
|
110
|
+
*
|
|
111
|
+
* Get the blueprint with the provided key.
|
|
112
|
+
*/
|
|
113
|
+
const blueprintsGet = (options) => (options.client ?? client_gen_1.client).get({
|
|
114
|
+
responseTransformer: transformers_gen_1.blueprintsGetResponseTransformer,
|
|
115
|
+
url: '/blueprints/{key}',
|
|
116
|
+
...options
|
|
117
|
+
});
|
|
118
|
+
exports.blueprintsGet = blueprintsGet;
|
|
119
|
+
/**
|
|
120
|
+
* Patch blueprint
|
|
121
|
+
*
|
|
122
|
+
* Patch an existing blueprint.
|
|
123
|
+
*/
|
|
124
|
+
const blueprintsPatch = (options) => (options.client ?? client_gen_1.client).patch({
|
|
125
|
+
responseTransformer: transformers_gen_1.blueprintsPatchResponseTransformer,
|
|
126
|
+
url: '/blueprints/{key}',
|
|
127
|
+
...options,
|
|
128
|
+
headers: {
|
|
129
|
+
'Content-Type': 'application/merge-patch+json',
|
|
130
|
+
...options.headers
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
exports.blueprintsPatch = blueprintsPatch;
|
|
134
|
+
/**
|
|
135
|
+
* Create content
|
|
136
|
+
*
|
|
137
|
+
* Create a new content item.
|
|
138
|
+
*/
|
|
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
|
+
}
|
|
147
|
+
});
|
|
148
|
+
exports.contentCreate = contentCreate;
|
|
149
|
+
/**
|
|
150
|
+
* Copy content
|
|
151
|
+
*
|
|
152
|
+
* Create a copy of the content item with the provided key.
|
|
153
|
+
*/
|
|
154
|
+
const contentCopy = (options) => (options.client ?? client_gen_1.client).post({
|
|
155
|
+
responseTransformer: transformers_gen_1.contentCopyResponseTransformer,
|
|
156
|
+
url: '/content/{key}:copy',
|
|
157
|
+
...options,
|
|
158
|
+
headers: {
|
|
159
|
+
'Content-Type': 'application/json',
|
|
160
|
+
...options.headers
|
|
161
|
+
}
|
|
162
|
+
});
|
|
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;
|
|
175
|
+
/**
|
|
176
|
+
* Delete content
|
|
177
|
+
*
|
|
178
|
+
* Deletes the content item with the provided key. If a content item with the provided key does not exist an error is returned.
|
|
179
|
+
*/
|
|
180
|
+
const contentDelete = (options) => (options.client ?? client_gen_1.client).delete({
|
|
181
|
+
responseTransformer: transformers_gen_1.contentDeleteResponseTransformer,
|
|
182
|
+
url: '/content/{key}',
|
|
183
|
+
...options
|
|
184
|
+
});
|
|
185
|
+
exports.contentDelete = contentDelete;
|
|
186
|
+
/**
|
|
187
|
+
* Get content node
|
|
188
|
+
*
|
|
189
|
+
* Get content node with the provided key.
|
|
190
|
+
*/
|
|
191
|
+
const contentGetNode = (options) => (options.client ?? client_gen_1.client).get({
|
|
192
|
+
responseTransformer: transformers_gen_1.contentGetNodeResponseTransformer,
|
|
193
|
+
url: '/content/{key}',
|
|
194
|
+
...options
|
|
195
|
+
});
|
|
196
|
+
exports.contentGetNode = contentGetNode;
|
|
197
|
+
/**
|
|
198
|
+
* Patch content
|
|
199
|
+
*
|
|
200
|
+
* Patch an existing content item. If a content item with the provided key does not exist an error is returned.
|
|
201
|
+
*/
|
|
202
|
+
const contentPatchNode = (options) => (options.client ?? client_gen_1.client).patch({
|
|
203
|
+
responseTransformer: transformers_gen_1.contentPatchNodeResponseTransformer,
|
|
204
|
+
url: '/content/{key}',
|
|
205
|
+
...options,
|
|
206
|
+
headers: {
|
|
207
|
+
'Content-Type': 'application/merge-patch+json',
|
|
208
|
+
...options.headers
|
|
209
|
+
}
|
|
210
|
+
});
|
|
211
|
+
exports.contentPatchNode = contentPatchNode;
|
|
212
|
+
/**
|
|
213
|
+
* List assets
|
|
214
|
+
*
|
|
215
|
+
* List the assets that belongs to a content instance.
|
|
216
|
+
*/
|
|
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;
|
|
224
|
+
/**
|
|
225
|
+
* List content in container
|
|
226
|
+
*
|
|
227
|
+
* List the content items located in a specific container.
|
|
228
|
+
*/
|
|
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;
|
|
258
|
+
/**
|
|
259
|
+
* Get content path
|
|
260
|
+
*
|
|
261
|
+
* Get the content path with the provided key.
|
|
262
|
+
*/
|
|
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',
|
|
289
|
+
...options,
|
|
290
|
+
headers: {
|
|
291
|
+
'Content-Type': 'application/json',
|
|
292
|
+
...options.headers
|
|
293
|
+
}
|
|
294
|
+
});
|
|
295
|
+
exports.contentCreateVersion = contentCreateVersion;
|
|
296
|
+
/**
|
|
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.
|
|
298
|
+
*/
|
|
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;
|
|
309
|
+
/**
|
|
310
|
+
* Change content version into draft status.
|
|
311
|
+
*/
|
|
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',
|
|
324
|
+
...options,
|
|
325
|
+
headers: {
|
|
326
|
+
'Content-Type': 'application/json',
|
|
327
|
+
...options.headers
|
|
328
|
+
}
|
|
329
|
+
});
|
|
330
|
+
exports.contentPublish = contentPublish;
|
|
331
|
+
/**
|
|
332
|
+
* Make content ready to publish, if approvals are required the version will automatically be moved to in review.
|
|
333
|
+
*/
|
|
334
|
+
const contentReady = (options) => (options.client ?? client_gen_1.client).post({
|
|
335
|
+
responseTransformer: transformers_gen_1.contentReadyResponseTransformer,
|
|
336
|
+
url: '/content/{key}/versions/{version}:ready',
|
|
337
|
+
...options,
|
|
338
|
+
headers: {
|
|
339
|
+
'Content-Type': 'application/json',
|
|
340
|
+
...options.headers
|
|
341
|
+
}
|
|
342
|
+
});
|
|
343
|
+
exports.contentReady = contentReady;
|
|
344
|
+
/**
|
|
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
|
|
359
|
+
*
|
|
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.
|
|
361
|
+
*/
|
|
362
|
+
const contentDeleteVersion = (options) => (options.client ?? client_gen_1.client).delete({
|
|
363
|
+
responseTransformer: transformers_gen_1.contentDeleteVersionResponseTransformer,
|
|
364
|
+
url: '/content/{key}/versions/{version}',
|
|
365
|
+
...options
|
|
366
|
+
});
|
|
367
|
+
exports.contentDeleteVersion = contentDeleteVersion;
|
|
368
|
+
/**
|
|
369
|
+
* Get version
|
|
370
|
+
*
|
|
371
|
+
* Get the content item with the provided key and version.
|
|
372
|
+
*/
|
|
373
|
+
const contentGetVersion = (options) => (options.client ?? client_gen_1.client).get({
|
|
374
|
+
responseTransformer: transformers_gen_1.contentGetVersionResponseTransformer,
|
|
375
|
+
url: '/content/{key}/versions/{version}',
|
|
376
|
+
...options
|
|
377
|
+
});
|
|
378
|
+
exports.contentGetVersion = contentGetVersion;
|
|
379
|
+
/**
|
|
380
|
+
* Patch version
|
|
381
|
+
*
|
|
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.
|
|
383
|
+
*/
|
|
384
|
+
const contentPatchVersion = (options) => (options.client ?? client_gen_1.client).patch({
|
|
385
|
+
responseTransformer: transformers_gen_1.contentPatchVersionResponseTransformer,
|
|
386
|
+
url: '/content/{key}/versions/{version}',
|
|
387
|
+
...options,
|
|
388
|
+
headers: {
|
|
389
|
+
'Content-Type': 'application/merge-patch+json',
|
|
390
|
+
...options.headers
|
|
391
|
+
}
|
|
392
|
+
});
|
|
393
|
+
exports.contentPatchVersion = contentPatchVersion;
|
|
394
|
+
/**
|
|
395
|
+
* Download content media file.
|
|
396
|
+
*
|
|
397
|
+
* Download the media file for a specific content item version.
|
|
398
|
+
*/
|
|
399
|
+
const contentGetMedia = (options) => (options.client ?? client_gen_1.client).get({ url: '/content/{key}/versions/{version}/media', ...options });
|
|
400
|
+
exports.contentGetMedia = contentGetMedia;
|
|
401
|
+
/**
|
|
402
|
+
* Get preview URLs for a content item version.
|
|
403
|
+
*
|
|
404
|
+
* Generate preview URLs for the content item with fresh authentication tokens.
|
|
405
|
+
*/
|
|
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',
|
|
417
|
+
...options
|
|
418
|
+
});
|
|
419
|
+
exports.contentListAllVersions = contentListAllVersions;
|
|
420
|
+
/**
|
|
421
|
+
* List content sources
|
|
422
|
+
*
|
|
423
|
+
* List content sources using the provided options.
|
|
424
|
+
*/
|
|
425
|
+
const contentSourcesList = (options) => (options?.client ?? client_gen_1.client).get({
|
|
426
|
+
responseTransformer: transformers_gen_1.contentSourcesListResponseTransformer,
|
|
427
|
+
url: '/contentsources',
|
|
428
|
+
...options
|
|
429
|
+
});
|
|
430
|
+
exports.contentSourcesList = contentSourcesList;
|
|
431
|
+
/**
|
|
432
|
+
* Create contentsource
|
|
433
|
+
*
|
|
434
|
+
* Create a new contentsource.
|
|
435
|
+
*/
|
|
436
|
+
const contentSourcesCreate = (options) => (options.client ?? client_gen_1.client).post({
|
|
437
|
+
responseTransformer: transformers_gen_1.contentSourcesCreateResponseTransformer,
|
|
438
|
+
url: '/contentsources',
|
|
439
|
+
...options,
|
|
440
|
+
headers: {
|
|
441
|
+
'Content-Type': 'application/json',
|
|
442
|
+
...options.headers
|
|
443
|
+
}
|
|
444
|
+
});
|
|
445
|
+
exports.contentSourcesCreate = contentSourcesCreate;
|
|
446
|
+
/**
|
|
447
|
+
* Delete contentsource
|
|
448
|
+
*
|
|
449
|
+
* Deletes the contentsource with the provided key.
|
|
450
|
+
*/
|
|
451
|
+
const contentSourcesDelete = (options) => (options.client ?? client_gen_1.client).delete({
|
|
452
|
+
responseTransformer: transformers_gen_1.contentSourcesDeleteResponseTransformer,
|
|
453
|
+
url: '/contentsources/{key}',
|
|
454
|
+
...options
|
|
455
|
+
});
|
|
456
|
+
exports.contentSourcesDelete = contentSourcesDelete;
|
|
457
|
+
/**
|
|
458
|
+
* Get contentsource
|
|
459
|
+
*
|
|
460
|
+
* Get the contentsource with the provided key.
|
|
461
|
+
*/
|
|
462
|
+
const contentSourcesGet = (options) => (options.client ?? client_gen_1.client).get({
|
|
463
|
+
responseTransformer: transformers_gen_1.contentSourcesGetResponseTransformer,
|
|
464
|
+
url: '/contentsources/{key}',
|
|
465
|
+
...options
|
|
466
|
+
});
|
|
467
|
+
exports.contentSourcesGet = contentSourcesGet;
|
|
468
|
+
/**
|
|
469
|
+
* Patch contentsource
|
|
470
|
+
*
|
|
471
|
+
* Patch an existing contentsource.
|
|
472
|
+
*/
|
|
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
|
+
}
|
|
481
|
+
});
|
|
482
|
+
exports.contentSourcesPatch = contentSourcesPatch;
|
|
483
|
+
/**
|
|
484
|
+
* List content type bindings
|
|
485
|
+
*
|
|
486
|
+
* List type bindings using the provided options.
|
|
487
|
+
*/
|
|
488
|
+
const contentTypeBindingsList = (options) => (options?.client ?? client_gen_1.client).get({
|
|
489
|
+
responseTransformer: transformers_gen_1.contentTypeBindingsListResponseTransformer,
|
|
490
|
+
url: '/contenttypebindings',
|
|
491
|
+
...options
|
|
492
|
+
});
|
|
493
|
+
exports.contentTypeBindingsList = contentTypeBindingsList;
|
|
494
|
+
/**
|
|
495
|
+
* Create contenttypebinding
|
|
496
|
+
*
|
|
497
|
+
* Create a new contenttypebinding.
|
|
498
|
+
*/
|
|
499
|
+
const contentTypeBindingsCreate = (options) => (options.client ?? client_gen_1.client).post({
|
|
500
|
+
responseTransformer: transformers_gen_1.contentTypeBindingsCreateResponseTransformer,
|
|
501
|
+
url: '/contenttypebindings',
|
|
502
|
+
...options,
|
|
503
|
+
headers: {
|
|
504
|
+
'Content-Type': 'application/json',
|
|
505
|
+
...options.headers
|
|
506
|
+
}
|
|
507
|
+
});
|
|
508
|
+
exports.contentTypeBindingsCreate = contentTypeBindingsCreate;
|
|
509
|
+
/**
|
|
510
|
+
* Delete contenttypebinding
|
|
511
|
+
*
|
|
512
|
+
* Deletes the contenttypebinding with the provided key.
|
|
513
|
+
*/
|
|
514
|
+
const contentTypeBindingsDelete = (options) => (options.client ?? client_gen_1.client).delete({
|
|
515
|
+
responseTransformer: transformers_gen_1.contentTypeBindingsDeleteResponseTransformer,
|
|
516
|
+
url: '/contenttypebindings/{key}',
|
|
517
|
+
...options
|
|
518
|
+
});
|
|
519
|
+
exports.contentTypeBindingsDelete = contentTypeBindingsDelete;
|
|
520
|
+
/**
|
|
521
|
+
* Get contenttypebinding
|
|
522
|
+
*
|
|
523
|
+
* Get the contenttypebinding with the provided key.
|
|
524
|
+
*/
|
|
525
|
+
const contentTypeBindingsGet = (options) => (options.client ?? client_gen_1.client).get({
|
|
526
|
+
responseTransformer: transformers_gen_1.contentTypeBindingsGetResponseTransformer,
|
|
527
|
+
url: '/contenttypebindings/{key}',
|
|
528
|
+
...options
|
|
529
|
+
});
|
|
530
|
+
exports.contentTypeBindingsGet = contentTypeBindingsGet;
|
|
531
|
+
/**
|
|
532
|
+
* Patch contenttypebinding
|
|
533
|
+
*
|
|
534
|
+
* Patch an existing contenttypebinding.
|
|
535
|
+
*/
|
|
536
|
+
const contentTypeBindingsPatch = (options) => (options.client ?? client_gen_1.client).patch({
|
|
537
|
+
responseTransformer: transformers_gen_1.contentTypeBindingsPatchResponseTransformer,
|
|
538
|
+
url: '/contenttypebindings/{key}',
|
|
539
|
+
...options,
|
|
540
|
+
headers: {
|
|
541
|
+
'Content-Type': 'application/merge-patch+json',
|
|
542
|
+
...options.headers
|
|
543
|
+
}
|
|
544
|
+
});
|
|
545
|
+
exports.contentTypeBindingsPatch = contentTypeBindingsPatch;
|
|
7
546
|
/**
|
|
8
547
|
* List content types
|
|
548
|
+
*
|
|
9
549
|
* List content types using the provided parameters.
|
|
10
550
|
*/
|
|
11
|
-
const contentTypesList = (options) => {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
};
|
|
551
|
+
const contentTypesList = (options) => (options?.client ?? client_gen_1.client).get({
|
|
552
|
+
querySerializer: { parameters: { sources: { array: { explode: false } } } },
|
|
553
|
+
responseTransformer: transformers_gen_1.contentTypesListResponseTransformer,
|
|
554
|
+
url: '/contenttypes',
|
|
555
|
+
...options
|
|
556
|
+
});
|
|
18
557
|
exports.contentTypesList = contentTypesList;
|
|
19
558
|
/**
|
|
20
559
|
* Create content type
|
|
560
|
+
*
|
|
21
561
|
* Create a new content type.
|
|
22
562
|
*/
|
|
23
|
-
const contentTypesCreate = (options) => {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
});
|
|
33
|
-
};
|
|
563
|
+
const contentTypesCreate = (options) => (options.client ?? client_gen_1.client).post({
|
|
564
|
+
responseTransformer: transformers_gen_1.contentTypesCreateResponseTransformer,
|
|
565
|
+
url: '/contenttypes',
|
|
566
|
+
...options,
|
|
567
|
+
headers: {
|
|
568
|
+
'Content-Type': 'application/json',
|
|
569
|
+
...options.headers
|
|
570
|
+
}
|
|
571
|
+
});
|
|
34
572
|
exports.contentTypesCreate = contentTypesCreate;
|
|
35
573
|
/**
|
|
36
574
|
* Delete content type
|
|
37
|
-
*
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
};
|
|
575
|
+
*
|
|
576
|
+
* Deletes the content type with the provided key.
|
|
577
|
+
*/
|
|
578
|
+
const contentTypesDelete = (options) => (options.client ?? client_gen_1.client).delete({
|
|
579
|
+
responseTransformer: transformers_gen_1.contentTypesDeleteResponseTransformer,
|
|
580
|
+
url: '/contenttypes/{key}',
|
|
581
|
+
...options
|
|
582
|
+
});
|
|
46
583
|
exports.contentTypesDelete = contentTypesDelete;
|
|
47
584
|
/**
|
|
48
585
|
* Get content type
|
|
586
|
+
*
|
|
49
587
|
* Get the content type with the provided key.
|
|
50
588
|
*/
|
|
51
|
-
const contentTypesGet = (options) => {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
});
|
|
57
|
-
};
|
|
589
|
+
const contentTypesGet = (options) => (options.client ?? client_gen_1.client).get({
|
|
590
|
+
responseTransformer: transformers_gen_1.contentTypesGetResponseTransformer,
|
|
591
|
+
url: '/contenttypes/{key}',
|
|
592
|
+
...options
|
|
593
|
+
});
|
|
58
594
|
exports.contentTypesGet = contentTypesGet;
|
|
59
595
|
/**
|
|
60
596
|
* Patch content type
|
|
61
|
-
*
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
};
|
|
597
|
+
*
|
|
598
|
+
* Patch an existing content type.
|
|
599
|
+
*/
|
|
600
|
+
const contentTypesPatch = (options) => (options.client ?? client_gen_1.client).patch({
|
|
601
|
+
responseTransformer: transformers_gen_1.contentTypesPatchResponseTransformer,
|
|
602
|
+
url: '/contenttypes/{key}',
|
|
603
|
+
...options,
|
|
604
|
+
headers: {
|
|
605
|
+
'Content-Type': 'application/merge-patch+json',
|
|
606
|
+
...options.headers
|
|
607
|
+
}
|
|
608
|
+
});
|
|
74
609
|
exports.contentTypesPatch = contentTypesPatch;
|
|
75
610
|
/**
|
|
76
611
|
* List display templates
|
|
612
|
+
*
|
|
77
613
|
* List display templates using the provided parameters.
|
|
78
614
|
*/
|
|
79
|
-
const displayTemplatesList = (options) => {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
});
|
|
85
|
-
};
|
|
615
|
+
const displayTemplatesList = (options) => (options?.client ?? client_gen_1.client).get({
|
|
616
|
+
responseTransformer: transformers_gen_1.displayTemplatesListResponseTransformer,
|
|
617
|
+
url: '/displaytemplates',
|
|
618
|
+
...options
|
|
619
|
+
});
|
|
86
620
|
exports.displayTemplatesList = displayTemplatesList;
|
|
87
621
|
/**
|
|
88
622
|
* Create display template
|
|
623
|
+
*
|
|
89
624
|
* Create a new display template.
|
|
90
625
|
*/
|
|
91
|
-
const displayTemplatesCreate = (options) => {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
});
|
|
101
|
-
};
|
|
626
|
+
const displayTemplatesCreate = (options) => (options.client ?? client_gen_1.client).post({
|
|
627
|
+
responseTransformer: transformers_gen_1.displayTemplatesCreateResponseTransformer,
|
|
628
|
+
url: '/displaytemplates',
|
|
629
|
+
...options,
|
|
630
|
+
headers: {
|
|
631
|
+
'Content-Type': 'application/json',
|
|
632
|
+
...options.headers
|
|
633
|
+
}
|
|
634
|
+
});
|
|
102
635
|
exports.displayTemplatesCreate = displayTemplatesCreate;
|
|
103
636
|
/**
|
|
104
637
|
* Delete display template
|
|
638
|
+
*
|
|
105
639
|
* Deletes the display template with the provided key.
|
|
106
640
|
*/
|
|
107
|
-
const displayTemplatesDelete = (options) => {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
});
|
|
113
|
-
};
|
|
641
|
+
const displayTemplatesDelete = (options) => (options.client ?? client_gen_1.client).delete({
|
|
642
|
+
responseTransformer: transformers_gen_1.displayTemplatesDeleteResponseTransformer,
|
|
643
|
+
url: '/displaytemplates/{key}',
|
|
644
|
+
...options
|
|
645
|
+
});
|
|
114
646
|
exports.displayTemplatesDelete = displayTemplatesDelete;
|
|
115
647
|
/**
|
|
116
648
|
* Get display template
|
|
649
|
+
*
|
|
117
650
|
* Get the display template with the provided key.
|
|
118
651
|
*/
|
|
119
|
-
const displayTemplatesGet = (options) => {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
});
|
|
125
|
-
};
|
|
652
|
+
const displayTemplatesGet = (options) => (options.client ?? client_gen_1.client).get({
|
|
653
|
+
responseTransformer: transformers_gen_1.displayTemplatesGetResponseTransformer,
|
|
654
|
+
url: '/displaytemplates/{key}',
|
|
655
|
+
...options
|
|
656
|
+
});
|
|
126
657
|
exports.displayTemplatesGet = displayTemplatesGet;
|
|
127
658
|
/**
|
|
128
659
|
* Patch display template
|
|
660
|
+
*
|
|
129
661
|
* Patch an existing display template.
|
|
130
662
|
*/
|
|
131
|
-
const displayTemplatesPatch = (options) => {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
});
|
|
141
|
-
};
|
|
663
|
+
const displayTemplatesPatch = (options) => (options.client ?? client_gen_1.client).patch({
|
|
664
|
+
responseTransformer: transformers_gen_1.displayTemplatesPatchResponseTransformer,
|
|
665
|
+
url: '/displaytemplates/{key}',
|
|
666
|
+
...options,
|
|
667
|
+
headers: {
|
|
668
|
+
'Content-Type': 'application/merge-patch+json',
|
|
669
|
+
...options.headers
|
|
670
|
+
}
|
|
671
|
+
});
|
|
142
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;
|
|
143
762
|
/**
|
|
144
763
|
* List property formats
|
|
764
|
+
*
|
|
145
765
|
* List all property formats using the provided options.
|
|
146
766
|
*/
|
|
147
|
-
const propertyFormatsList = (options) => {
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
});
|
|
153
|
-
};
|
|
767
|
+
const propertyFormatsList = (options) => (options?.client ?? client_gen_1.client).get({
|
|
768
|
+
responseTransformer: transformers_gen_1.propertyFormatsListResponseTransformer,
|
|
769
|
+
url: '/propertyformats',
|
|
770
|
+
...options
|
|
771
|
+
});
|
|
154
772
|
exports.propertyFormatsList = propertyFormatsList;
|
|
155
773
|
/**
|
|
156
774
|
* Get property format
|
|
775
|
+
*
|
|
157
776
|
* Get the property format with the provided key.
|
|
158
777
|
*/
|
|
159
|
-
const propertyFormatsGet = (options) => {
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
});
|
|
165
|
-
};
|
|
778
|
+
const propertyFormatsGet = (options) => (options.client ?? client_gen_1.client).get({
|
|
779
|
+
responseTransformer: transformers_gen_1.propertyFormatsGetResponseTransformer,
|
|
780
|
+
url: '/propertyformats/{key}',
|
|
781
|
+
...options
|
|
782
|
+
});
|
|
166
783
|
exports.propertyFormatsGet = propertyFormatsGet;
|
|
167
784
|
/**
|
|
168
785
|
* List property groups
|
|
786
|
+
*
|
|
169
787
|
* List property groups using the provided options.
|
|
170
788
|
*/
|
|
171
|
-
const propertyGroupsList = (options) => {
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
};
|
|
789
|
+
const propertyGroupsList = (options) => (options?.client ?? client_gen_1.client).get({
|
|
790
|
+
querySerializer: { parameters: { sources: { array: { explode: false } } } },
|
|
791
|
+
responseTransformer: transformers_gen_1.propertyGroupsListResponseTransformer,
|
|
792
|
+
url: '/propertygroups',
|
|
793
|
+
...options
|
|
794
|
+
});
|
|
178
795
|
exports.propertyGroupsList = propertyGroupsList;
|
|
179
796
|
/**
|
|
180
797
|
* Create property group
|
|
798
|
+
*
|
|
181
799
|
* Create a new property group.
|
|
182
800
|
*/
|
|
183
|
-
const propertyGroupsCreate = (options) => {
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
});
|
|
193
|
-
};
|
|
801
|
+
const propertyGroupsCreate = (options) => (options.client ?? client_gen_1.client).post({
|
|
802
|
+
responseTransformer: transformers_gen_1.propertyGroupsCreateResponseTransformer,
|
|
803
|
+
url: '/propertygroups',
|
|
804
|
+
...options,
|
|
805
|
+
headers: {
|
|
806
|
+
'Content-Type': 'application/json',
|
|
807
|
+
...options.headers
|
|
808
|
+
}
|
|
809
|
+
});
|
|
194
810
|
exports.propertyGroupsCreate = propertyGroupsCreate;
|
|
195
811
|
/**
|
|
196
812
|
* Delete property group
|
|
813
|
+
*
|
|
197
814
|
* Deletes the property group with the provided key.
|
|
198
815
|
*/
|
|
199
|
-
const propertyGroupsDelete = (options) => {
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
});
|
|
205
|
-
};
|
|
816
|
+
const propertyGroupsDelete = (options) => (options.client ?? client_gen_1.client).delete({
|
|
817
|
+
responseTransformer: transformers_gen_1.propertyGroupsDeleteResponseTransformer,
|
|
818
|
+
url: '/propertygroups/{key}',
|
|
819
|
+
...options
|
|
820
|
+
});
|
|
206
821
|
exports.propertyGroupsDelete = propertyGroupsDelete;
|
|
207
822
|
/**
|
|
208
823
|
* Get property group
|
|
824
|
+
*
|
|
209
825
|
* Get the property group with the provided key.
|
|
210
826
|
*/
|
|
211
|
-
const propertyGroupsGet = (options) => {
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
});
|
|
217
|
-
};
|
|
827
|
+
const propertyGroupsGet = (options) => (options.client ?? client_gen_1.client).get({
|
|
828
|
+
responseTransformer: transformers_gen_1.propertyGroupsGetResponseTransformer,
|
|
829
|
+
url: '/propertygroups/{key}',
|
|
830
|
+
...options
|
|
831
|
+
});
|
|
218
832
|
exports.propertyGroupsGet = propertyGroupsGet;
|
|
219
833
|
/**
|
|
220
834
|
* Patch property group
|
|
835
|
+
*
|
|
221
836
|
* Patch an existing property group.
|
|
222
837
|
*/
|
|
223
|
-
const propertyGroupsPatch = (options) => {
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
});
|
|
233
|
-
};
|
|
838
|
+
const propertyGroupsPatch = (options) => (options.client ?? client_gen_1.client).patch({
|
|
839
|
+
responseTransformer: transformers_gen_1.propertyGroupsPatchResponseTransformer,
|
|
840
|
+
url: '/propertygroups/{key}',
|
|
841
|
+
...options,
|
|
842
|
+
headers: {
|
|
843
|
+
'Content-Type': 'application/merge-patch+json',
|
|
844
|
+
...options.headers
|
|
845
|
+
}
|
|
846
|
+
});
|
|
234
847
|
exports.propertyGroupsPatch = propertyGroupsPatch;
|