@remkoj/optimizely-cms-api 6.0.0-pre13 → 6.0.0-pre14
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/README.md +6 -2
- package/dist/client/client/client.gen.js +26 -1
- package/dist/client/client/index.d.ts +1 -1
- package/dist/client/client/types.gen.d.ts +2 -9
- package/dist/client/client.gen.js +2 -4
- package/dist/client/core/params.gen.d.ts +10 -0
- package/dist/client/core/params.gen.js +17 -5
- package/dist/client/core/serverSentEvents.gen.js +2 -0
- package/dist/client/index.d.ts +4 -4
- package/dist/client/index.js +97 -17
- package/dist/client/sdk.gen.js +294 -404
- package/dist/client/transformers.gen.d.ts +1 -6
- package/dist/client/transformers.gen.js +45 -105
- package/dist/client/types.gen.d.ts +35 -35
- package/dist/instance.client/client/client.gen.js +26 -1
- package/dist/instance.client/client/index.d.ts +1 -1
- package/dist/instance.client/client/types.gen.d.ts +2 -9
- package/dist/instance.client/client.gen.js +2 -4
- package/dist/instance.client/core/params.gen.d.ts +10 -0
- package/dist/instance.client/core/params.gen.js +17 -5
- package/dist/instance.client/core/serverSentEvents.gen.js +2 -0
- package/dist/instance.client/index.d.ts +4 -4
- package/dist/instance.client/index.js +86 -18
- package/dist/instance.client/sdk.gen.js +273 -405
- package/dist/instance.client/transformers.gen.d.ts +1 -15
- package/dist/instance.client/transformers.gen.js +26 -198
- package/dist/instance.client/types.gen.d.ts +48 -64
- package/dist/version.json +2 -2
- package/package.json +7 -7
package/dist/client/sdk.gen.js
CHANGED
|
@@ -9,189 +9,154 @@ const transformers_gen_1 = require("./transformers.gen");
|
|
|
9
9
|
*
|
|
10
10
|
* List blueprints using the provided parameters. This API is experimental and may change in future releases.
|
|
11
11
|
*/
|
|
12
|
-
const blueprintsList = (options) => {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
});
|
|
18
|
-
};
|
|
12
|
+
const blueprintsList = (options) => (options?.client ?? client_gen_1.client).get({
|
|
13
|
+
responseTransformer: transformers_gen_1.blueprintsListResponseTransformer,
|
|
14
|
+
url: '/experimental/blueprints',
|
|
15
|
+
...options
|
|
16
|
+
});
|
|
19
17
|
exports.blueprintsList = blueprintsList;
|
|
20
18
|
/**
|
|
21
19
|
* Create a blueprint
|
|
22
20
|
*
|
|
23
21
|
* Create a new blueprint. This API is experimental and may change in future releases.
|
|
24
22
|
*/
|
|
25
|
-
const blueprintsCreate = (options) => {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
});
|
|
35
|
-
};
|
|
23
|
+
const blueprintsCreate = (options) => (options.client ?? client_gen_1.client).post({
|
|
24
|
+
responseTransformer: transformers_gen_1.blueprintsCreateResponseTransformer,
|
|
25
|
+
url: '/experimental/blueprints',
|
|
26
|
+
...options,
|
|
27
|
+
headers: {
|
|
28
|
+
'Content-Type': 'application/json',
|
|
29
|
+
...options.headers
|
|
30
|
+
}
|
|
31
|
+
});
|
|
36
32
|
exports.blueprintsCreate = blueprintsCreate;
|
|
37
33
|
/**
|
|
38
34
|
* Delete a blueprint
|
|
39
35
|
*
|
|
40
36
|
* Deletes the blueprint with the provided key. This API is experimental and may change in future releases.
|
|
41
37
|
*/
|
|
42
|
-
const blueprintsDelete = (options) => {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
});
|
|
48
|
-
};
|
|
38
|
+
const blueprintsDelete = (options) => (options.client ?? client_gen_1.client).delete({
|
|
39
|
+
responseTransformer: transformers_gen_1.blueprintsDeleteResponseTransformer,
|
|
40
|
+
url: '/experimental/blueprints/{key}',
|
|
41
|
+
...options
|
|
42
|
+
});
|
|
49
43
|
exports.blueprintsDelete = blueprintsDelete;
|
|
50
44
|
/**
|
|
51
45
|
* Get a specific blueprint
|
|
52
46
|
*
|
|
53
47
|
* Get the blueprint with the provided key. This API is experimental and may change in future releases.
|
|
54
48
|
*/
|
|
55
|
-
const blueprintsGet = (options) => {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
});
|
|
61
|
-
};
|
|
49
|
+
const blueprintsGet = (options) => (options.client ?? client_gen_1.client).get({
|
|
50
|
+
responseTransformer: transformers_gen_1.blueprintsGetResponseTransformer,
|
|
51
|
+
url: '/experimental/blueprints/{key}',
|
|
52
|
+
...options
|
|
53
|
+
});
|
|
62
54
|
exports.blueprintsGet = blueprintsGet;
|
|
63
55
|
/**
|
|
64
56
|
* Patch blueprint
|
|
65
57
|
*
|
|
66
58
|
* Patch an existing blueprint. This API is experimental and may change in future releases.
|
|
67
59
|
*/
|
|
68
|
-
const blueprintsPatch = (options) => {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
});
|
|
78
|
-
};
|
|
60
|
+
const blueprintsPatch = (options) => (options.client ?? client_gen_1.client).patch({
|
|
61
|
+
responseTransformer: transformers_gen_1.blueprintsPatchResponseTransformer,
|
|
62
|
+
url: '/experimental/blueprints/{key}',
|
|
63
|
+
...options,
|
|
64
|
+
headers: {
|
|
65
|
+
'Content-Type': 'application/merge-patch+json',
|
|
66
|
+
...options.headers
|
|
67
|
+
}
|
|
68
|
+
});
|
|
79
69
|
exports.blueprintsPatch = blueprintsPatch;
|
|
80
70
|
/**
|
|
81
71
|
* List changeset
|
|
82
72
|
*
|
|
83
73
|
* Lists all changeset using the provided options. This API is experimental and may change in future releases.
|
|
84
74
|
*/
|
|
85
|
-
const changesetsList = (options) => {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
});
|
|
91
|
-
};
|
|
75
|
+
const changesetsList = (options) => (options?.client ?? client_gen_1.client).get({
|
|
76
|
+
responseTransformer: transformers_gen_1.changesetsListResponseTransformer,
|
|
77
|
+
url: '/experimental/changesets',
|
|
78
|
+
...options
|
|
79
|
+
});
|
|
92
80
|
exports.changesetsList = changesetsList;
|
|
93
81
|
/**
|
|
94
82
|
* Create changeset
|
|
95
83
|
*
|
|
96
84
|
* Creates a new changeset. This API is experimental and may change in future releases.
|
|
97
85
|
*/
|
|
98
|
-
const changesetsCreate = (options) => {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
});
|
|
108
|
-
};
|
|
86
|
+
const changesetsCreate = (options) => (options.client ?? client_gen_1.client).post({
|
|
87
|
+
responseTransformer: transformers_gen_1.changesetsCreateResponseTransformer,
|
|
88
|
+
url: '/experimental/changesets',
|
|
89
|
+
...options,
|
|
90
|
+
headers: {
|
|
91
|
+
'Content-Type': 'application/json',
|
|
92
|
+
...options.headers
|
|
93
|
+
}
|
|
94
|
+
});
|
|
109
95
|
exports.changesetsCreate = changesetsCreate;
|
|
110
96
|
/**
|
|
111
97
|
* Delete changeset
|
|
112
98
|
*
|
|
113
99
|
* Deletes the changeset with the provided key. If a changeset with the provided key does not exist an error is returned. This API is experimental and may change in future releases.
|
|
114
100
|
*/
|
|
115
|
-
const changesetsDelete = (options) => {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
});
|
|
121
|
-
};
|
|
101
|
+
const changesetsDelete = (options) => (options.client ?? client_gen_1.client).delete({
|
|
102
|
+
responseTransformer: transformers_gen_1.changesetsDeleteResponseTransformer,
|
|
103
|
+
url: '/experimental/changesets/{key}',
|
|
104
|
+
...options
|
|
105
|
+
});
|
|
122
106
|
exports.changesetsDelete = changesetsDelete;
|
|
123
107
|
/**
|
|
124
108
|
* Get changeset
|
|
125
109
|
*
|
|
126
110
|
* Gets the changeset with the provided key. This API is experimental and may change in future releases.
|
|
127
111
|
*/
|
|
128
|
-
const changesetsGet = (options) => {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
});
|
|
134
|
-
};
|
|
112
|
+
const changesetsGet = (options) => (options.client ?? client_gen_1.client).get({
|
|
113
|
+
responseTransformer: transformers_gen_1.changesetsGetResponseTransformer,
|
|
114
|
+
url: '/experimental/changesets/{key}',
|
|
115
|
+
...options
|
|
116
|
+
});
|
|
135
117
|
exports.changesetsGet = changesetsGet;
|
|
136
118
|
/**
|
|
137
119
|
* Patch changeset
|
|
138
120
|
*
|
|
139
121
|
* Patch an existing changeset. This API is experimental and may change in future releases.
|
|
140
122
|
*/
|
|
141
|
-
const changesetsPatch = (options) => {
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
});
|
|
151
|
-
};
|
|
123
|
+
const changesetsPatch = (options) => (options.client ?? client_gen_1.client).patch({
|
|
124
|
+
responseTransformer: transformers_gen_1.changesetsPatchResponseTransformer,
|
|
125
|
+
url: '/experimental/changesets/{key}',
|
|
126
|
+
...options,
|
|
127
|
+
headers: {
|
|
128
|
+
'Content-Type': 'application/merge-patch+json',
|
|
129
|
+
...options.headers
|
|
130
|
+
}
|
|
131
|
+
});
|
|
152
132
|
exports.changesetsPatch = changesetsPatch;
|
|
153
133
|
/**
|
|
154
134
|
* Delete changeset item
|
|
155
135
|
*
|
|
156
136
|
* Deletes the specified changeset item from the changeset. This API is experimental and may change in future releases.
|
|
157
137
|
*/
|
|
158
|
-
const changesetsDeleteItem = (options) => {
|
|
159
|
-
return (options.client ?? client_gen_1.client).delete({
|
|
160
|
-
responseTransformer: transformers_gen_1.changesetsDeleteItemResponseTransformer,
|
|
161
|
-
url: '/experimental/changesets/{changeset}/items/{key}/versions/{version}',
|
|
162
|
-
...options
|
|
163
|
-
});
|
|
164
|
-
};
|
|
138
|
+
const changesetsDeleteItem = (options) => (options.client ?? client_gen_1.client).delete({ url: '/experimental/changesets/{changeset}/items/{key}/versions/{version}', ...options });
|
|
165
139
|
exports.changesetsDeleteItem = changesetsDeleteItem;
|
|
166
140
|
/**
|
|
167
141
|
* Get changeset item
|
|
168
142
|
*
|
|
169
143
|
* Gets the changeset item for the specified content reference. This API is experimental and may change in future releases.
|
|
170
144
|
*/
|
|
171
|
-
const changesetsGetItem = (options) => {
|
|
172
|
-
return (options.client ?? client_gen_1.client).get({
|
|
173
|
-
responseTransformer: transformers_gen_1.changesetsGetItemResponseTransformer,
|
|
174
|
-
url: '/experimental/changesets/{changeset}/items/{key}/versions/{version}',
|
|
175
|
-
...options
|
|
176
|
-
});
|
|
177
|
-
};
|
|
145
|
+
const changesetsGetItem = (options) => (options.client ?? client_gen_1.client).get({ url: '/experimental/changesets/{changeset}/items/{key}/versions/{version}', ...options });
|
|
178
146
|
exports.changesetsGetItem = changesetsGetItem;
|
|
179
147
|
/**
|
|
180
148
|
* Patch changeset item
|
|
181
149
|
*
|
|
182
150
|
* Patch the given changeset item. This API is experimental and may change in future releases.
|
|
183
151
|
*/
|
|
184
|
-
const changesetsPatchItem = (options) => {
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
headers
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
}
|
|
193
|
-
});
|
|
194
|
-
};
|
|
152
|
+
const changesetsPatchItem = (options) => (options.client ?? client_gen_1.client).patch({
|
|
153
|
+
url: '/experimental/changesets/{changeset}/items/{key}/versions/{version}',
|
|
154
|
+
...options,
|
|
155
|
+
headers: {
|
|
156
|
+
'Content-Type': 'application/merge-patch+json',
|
|
157
|
+
...options.headers
|
|
158
|
+
}
|
|
159
|
+
});
|
|
195
160
|
exports.changesetsPatchItem = changesetsPatchItem;
|
|
196
161
|
/**
|
|
197
162
|
* List changeset items
|
|
@@ -199,501 +164,426 @@ exports.changesetsPatchItem = changesetsPatchItem;
|
|
|
199
164
|
* Lists the available changeset items for the specified changeset using
|
|
200
165
|
* the provided options. This API is experimental and may change in future releases.
|
|
201
166
|
*/
|
|
202
|
-
const changesetsListItems = (options) => {
|
|
203
|
-
return (options.client ?? client_gen_1.client).get({
|
|
204
|
-
responseTransformer: transformers_gen_1.changesetsListItemsResponseTransformer,
|
|
205
|
-
url: '/experimental/changesets/{changeset}/items',
|
|
206
|
-
...options
|
|
207
|
-
});
|
|
208
|
-
};
|
|
167
|
+
const changesetsListItems = (options) => (options.client ?? client_gen_1.client).get({ url: '/experimental/changesets/{changeset}/items', ...options });
|
|
209
168
|
exports.changesetsListItems = changesetsListItems;
|
|
210
169
|
/**
|
|
211
170
|
* Create changeset item
|
|
212
171
|
*
|
|
213
172
|
* Creates the given changeset item. This API is experimental and may change in future releases.
|
|
214
173
|
*/
|
|
215
|
-
const changesetsCreateItem = (options) => {
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
headers
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
}
|
|
224
|
-
});
|
|
225
|
-
};
|
|
174
|
+
const changesetsCreateItem = (options) => (options.client ?? client_gen_1.client).post({
|
|
175
|
+
url: '/experimental/changesets/{changeset}/items',
|
|
176
|
+
...options,
|
|
177
|
+
headers: {
|
|
178
|
+
'Content-Type': 'application/json',
|
|
179
|
+
...options.headers
|
|
180
|
+
}
|
|
181
|
+
});
|
|
226
182
|
exports.changesetsCreateItem = changesetsCreateItem;
|
|
227
183
|
/**
|
|
228
184
|
* Create content
|
|
229
185
|
*
|
|
230
186
|
* Create a new content item. This API is experimental and may change in future releases.
|
|
231
187
|
*/
|
|
232
|
-
const contentCreate = (options) => {
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
});
|
|
242
|
-
};
|
|
188
|
+
const contentCreate = (options) => (options.client ?? client_gen_1.client).post({
|
|
189
|
+
responseTransformer: transformers_gen_1.contentCreateResponseTransformer,
|
|
190
|
+
url: '/experimental/content',
|
|
191
|
+
...options,
|
|
192
|
+
headers: {
|
|
193
|
+
'Content-Type': 'application/json',
|
|
194
|
+
...options.headers
|
|
195
|
+
}
|
|
196
|
+
});
|
|
243
197
|
exports.contentCreate = contentCreate;
|
|
244
198
|
/**
|
|
245
199
|
* Delete content
|
|
246
200
|
*
|
|
247
201
|
* Deletes the content item with the provided key. If a content item with the provided key does not exist an error is returned. This API is experimental and may change in future releases.
|
|
248
202
|
*/
|
|
249
|
-
const contentDelete = (options) => {
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
});
|
|
255
|
-
};
|
|
203
|
+
const contentDelete = (options) => (options.client ?? client_gen_1.client).delete({
|
|
204
|
+
responseTransformer: transformers_gen_1.contentDeleteResponseTransformer,
|
|
205
|
+
url: '/experimental/content/{key}',
|
|
206
|
+
...options
|
|
207
|
+
});
|
|
256
208
|
exports.contentDelete = contentDelete;
|
|
257
209
|
/**
|
|
258
210
|
* Get content
|
|
259
211
|
*
|
|
260
212
|
* Get shared metadata about the content instance with the provided key. This API is experimental and may change in future releases.
|
|
261
213
|
*/
|
|
262
|
-
const contentGetMetadata = (options) => {
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
});
|
|
268
|
-
};
|
|
214
|
+
const contentGetMetadata = (options) => (options.client ?? client_gen_1.client).get({
|
|
215
|
+
responseTransformer: transformers_gen_1.contentGetMetadataResponseTransformer,
|
|
216
|
+
url: '/experimental/content/{key}',
|
|
217
|
+
...options
|
|
218
|
+
});
|
|
269
219
|
exports.contentGetMetadata = contentGetMetadata;
|
|
270
220
|
/**
|
|
271
221
|
* Patch content
|
|
272
222
|
*
|
|
273
223
|
* Patch an existing content item. If a content item with the provided key does not exist an error is returned. This API is experimental and may change in future releases.
|
|
274
224
|
*/
|
|
275
|
-
const contentPatchMetadata = (options) => {
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
});
|
|
285
|
-
};
|
|
225
|
+
const contentPatchMetadata = (options) => (options.client ?? client_gen_1.client).patch({
|
|
226
|
+
responseTransformer: transformers_gen_1.contentPatchMetadataResponseTransformer,
|
|
227
|
+
url: '/experimental/content/{key}',
|
|
228
|
+
...options,
|
|
229
|
+
headers: {
|
|
230
|
+
'Content-Type': 'application/merge-patch+json',
|
|
231
|
+
...options.headers
|
|
232
|
+
}
|
|
233
|
+
});
|
|
286
234
|
exports.contentPatchMetadata = contentPatchMetadata;
|
|
287
235
|
/**
|
|
288
236
|
* Get content path
|
|
289
237
|
*
|
|
290
238
|
* Get the content path with the provided key. This API is experimental and may change in future releases.
|
|
291
239
|
*/
|
|
292
|
-
const contentGetPath = (options) => {
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
});
|
|
298
|
-
};
|
|
240
|
+
const contentGetPath = (options) => (options.client ?? client_gen_1.client).get({
|
|
241
|
+
responseTransformer: transformers_gen_1.contentGetPathResponseTransformer,
|
|
242
|
+
url: '/experimental/content/{key}/path',
|
|
243
|
+
...options
|
|
244
|
+
});
|
|
299
245
|
exports.contentGetPath = contentGetPath;
|
|
300
246
|
/**
|
|
301
247
|
* List content in container
|
|
302
248
|
*
|
|
303
249
|
* List the content items located in a specific container. This API is experimental and may change in future releases.
|
|
304
250
|
*/
|
|
305
|
-
const contentListItems = (options) => {
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
});
|
|
311
|
-
};
|
|
251
|
+
const contentListItems = (options) => (options.client ?? client_gen_1.client).get({
|
|
252
|
+
responseTransformer: transformers_gen_1.contentListItemsResponseTransformer,
|
|
253
|
+
url: '/experimental/content/{key}/items',
|
|
254
|
+
...options
|
|
255
|
+
});
|
|
312
256
|
exports.contentListItems = contentListItems;
|
|
313
257
|
/**
|
|
314
258
|
* List assets
|
|
315
259
|
*
|
|
316
260
|
* List the assets that belongs to a content instance. This API is experimental and may change in future releases.
|
|
317
261
|
*/
|
|
318
|
-
const contentListAssets = (options) => {
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
});
|
|
324
|
-
};
|
|
262
|
+
const contentListAssets = (options) => (options.client ?? client_gen_1.client).get({
|
|
263
|
+
responseTransformer: transformers_gen_1.contentListAssetsResponseTransformer,
|
|
264
|
+
url: '/experimental/content/{key}/assets',
|
|
265
|
+
...options
|
|
266
|
+
});
|
|
325
267
|
exports.contentListAssets = contentListAssets;
|
|
326
268
|
/**
|
|
327
269
|
* Copy content
|
|
328
270
|
*
|
|
329
271
|
* Create a copy of the content item with the provided key. This API is experimental and may change in future releases.
|
|
330
272
|
*/
|
|
331
|
-
const contentCopy = (options) => {
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
});
|
|
341
|
-
};
|
|
273
|
+
const contentCopy = (options) => (options.client ?? client_gen_1.client).post({
|
|
274
|
+
responseTransformer: transformers_gen_1.contentCopyResponseTransformer,
|
|
275
|
+
url: '/experimental/content/{key}:copy',
|
|
276
|
+
...options,
|
|
277
|
+
headers: {
|
|
278
|
+
'Content-Type': 'application/json',
|
|
279
|
+
...options.headers
|
|
280
|
+
}
|
|
281
|
+
});
|
|
342
282
|
exports.contentCopy = contentCopy;
|
|
343
283
|
/**
|
|
344
284
|
* Restore content
|
|
345
285
|
*
|
|
346
286
|
* Restore the deleted content item with the provided key. If a content item with the provided key is not deleted an error is returned. This API is experimental and may change in future releases.
|
|
347
287
|
*/
|
|
348
|
-
const contentUndelete = (options) => {
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
});
|
|
354
|
-
};
|
|
288
|
+
const contentUndelete = (options) => (options.client ?? client_gen_1.client).post({
|
|
289
|
+
responseTransformer: transformers_gen_1.contentUndeleteResponseTransformer,
|
|
290
|
+
url: '/experimental/content/{key}:undelete',
|
|
291
|
+
...options
|
|
292
|
+
});
|
|
355
293
|
exports.contentUndelete = contentUndelete;
|
|
356
294
|
/**
|
|
357
295
|
* Query versions
|
|
358
296
|
*
|
|
359
297
|
* List content versions based on the provided query options. This API is experimental and may change in future releases.
|
|
360
298
|
*/
|
|
361
|
-
const contentListAllVersions = (options) => {
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
});
|
|
367
|
-
};
|
|
299
|
+
const contentListAllVersions = (options) => (options?.client ?? client_gen_1.client).get({
|
|
300
|
+
responseTransformer: transformers_gen_1.contentListAllVersionsResponseTransformer,
|
|
301
|
+
url: '/experimental/content/versions',
|
|
302
|
+
...options
|
|
303
|
+
});
|
|
368
304
|
exports.contentListAllVersions = contentListAllVersions;
|
|
369
305
|
/**
|
|
370
306
|
* Delete locale
|
|
371
307
|
*
|
|
372
308
|
* Deletes the content item with the provided key. If a content item with the provided key does not exist an error is returned. This API is experimental and may change in future releases.
|
|
373
309
|
*/
|
|
374
|
-
const contentDeleteLocale = (options) => {
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
});
|
|
380
|
-
};
|
|
310
|
+
const contentDeleteLocale = (options) => (options.client ?? client_gen_1.client).delete({
|
|
311
|
+
responseTransformer: transformers_gen_1.contentDeleteLocaleResponseTransformer,
|
|
312
|
+
url: '/experimental/content/{key}/versions',
|
|
313
|
+
...options
|
|
314
|
+
});
|
|
381
315
|
exports.contentDeleteLocale = contentDeleteLocale;
|
|
382
316
|
/**
|
|
383
317
|
* List versions
|
|
384
318
|
*
|
|
385
319
|
* List versions of the content item with the provided key and the provided options. This API is experimental and may change in future releases.
|
|
386
320
|
*/
|
|
387
|
-
const contentListVersions = (options) => {
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
});
|
|
393
|
-
};
|
|
321
|
+
const contentListVersions = (options) => (options.client ?? client_gen_1.client).get({
|
|
322
|
+
responseTransformer: transformers_gen_1.contentListVersionsResponseTransformer,
|
|
323
|
+
url: '/experimental/content/{key}/versions',
|
|
324
|
+
...options
|
|
325
|
+
});
|
|
394
326
|
exports.contentListVersions = contentListVersions;
|
|
395
327
|
/**
|
|
396
328
|
* Create version
|
|
397
329
|
*
|
|
398
330
|
* Create a new version of a content item. This API is experimental and may change in future releases.
|
|
399
331
|
*/
|
|
400
|
-
const contentCreateVersion = (options) => {
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
});
|
|
410
|
-
};
|
|
332
|
+
const contentCreateVersion = (options) => (options.client ?? client_gen_1.client).post({
|
|
333
|
+
responseTransformer: transformers_gen_1.contentCreateVersionResponseTransformer,
|
|
334
|
+
url: '/experimental/content/{key}/versions',
|
|
335
|
+
...options,
|
|
336
|
+
headers: {
|
|
337
|
+
'Content-Type': 'application/json',
|
|
338
|
+
...options.headers
|
|
339
|
+
}
|
|
340
|
+
});
|
|
411
341
|
exports.contentCreateVersion = contentCreateVersion;
|
|
412
342
|
/**
|
|
413
343
|
* Delete version
|
|
414
344
|
*
|
|
415
345
|
* Deletes the content item with the provided key. If a content item with the provided key does not exist an error is returned. This API is experimental and may change in future releases.
|
|
416
346
|
*/
|
|
417
|
-
const contentDeleteVersion = (options) => {
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
});
|
|
423
|
-
};
|
|
347
|
+
const contentDeleteVersion = (options) => (options.client ?? client_gen_1.client).delete({
|
|
348
|
+
responseTransformer: transformers_gen_1.contentDeleteVersionResponseTransformer,
|
|
349
|
+
url: '/experimental/content/{key}/versions/{version}',
|
|
350
|
+
...options
|
|
351
|
+
});
|
|
424
352
|
exports.contentDeleteVersion = contentDeleteVersion;
|
|
425
353
|
/**
|
|
426
354
|
* Get version
|
|
427
355
|
*
|
|
428
356
|
* Get the content item with the provided key and version. This API is experimental and may change in future releases.
|
|
429
357
|
*/
|
|
430
|
-
const contentGetVersion = (options) => {
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
});
|
|
436
|
-
};
|
|
358
|
+
const contentGetVersion = (options) => (options.client ?? client_gen_1.client).get({
|
|
359
|
+
responseTransformer: transformers_gen_1.contentGetVersionResponseTransformer,
|
|
360
|
+
url: '/experimental/content/{key}/versions/{version}',
|
|
361
|
+
...options
|
|
362
|
+
});
|
|
437
363
|
exports.contentGetVersion = contentGetVersion;
|
|
438
364
|
/**
|
|
439
365
|
* Patch version
|
|
440
366
|
*
|
|
441
367
|
* Patch an existing content item. If a content item with the provided key does not exist an error is returned. This API is experimental and may change in future releases.
|
|
442
368
|
*/
|
|
443
|
-
const contentPatchVersion = (options) => {
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
});
|
|
453
|
-
};
|
|
369
|
+
const contentPatchVersion = (options) => (options.client ?? client_gen_1.client).patch({
|
|
370
|
+
responseTransformer: transformers_gen_1.contentPatchVersionResponseTransformer,
|
|
371
|
+
url: '/experimental/content/{key}/versions/{version}',
|
|
372
|
+
...options,
|
|
373
|
+
headers: {
|
|
374
|
+
'Content-Type': 'application/merge-patch+json',
|
|
375
|
+
...options.headers
|
|
376
|
+
}
|
|
377
|
+
});
|
|
454
378
|
exports.contentPatchVersion = contentPatchVersion;
|
|
455
379
|
/**
|
|
456
380
|
* List content types
|
|
457
381
|
*
|
|
458
382
|
* List content types using the provided parameters.
|
|
459
383
|
*/
|
|
460
|
-
const contentTypesList = (options) => {
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
});
|
|
466
|
-
};
|
|
384
|
+
const contentTypesList = (options) => (options?.client ?? client_gen_1.client).get({
|
|
385
|
+
responseTransformer: transformers_gen_1.contentTypesListResponseTransformer,
|
|
386
|
+
url: '/contenttypes',
|
|
387
|
+
...options
|
|
388
|
+
});
|
|
467
389
|
exports.contentTypesList = contentTypesList;
|
|
468
390
|
/**
|
|
469
391
|
* Create content type
|
|
470
392
|
*
|
|
471
393
|
* Create a new content type.
|
|
472
394
|
*/
|
|
473
|
-
const contentTypesCreate = (options) => {
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
});
|
|
483
|
-
};
|
|
395
|
+
const contentTypesCreate = (options) => (options.client ?? client_gen_1.client).post({
|
|
396
|
+
responseTransformer: transformers_gen_1.contentTypesCreateResponseTransformer,
|
|
397
|
+
url: '/contenttypes',
|
|
398
|
+
...options,
|
|
399
|
+
headers: {
|
|
400
|
+
'Content-Type': 'application/json',
|
|
401
|
+
...options.headers
|
|
402
|
+
}
|
|
403
|
+
});
|
|
484
404
|
exports.contentTypesCreate = contentTypesCreate;
|
|
485
405
|
/**
|
|
486
406
|
* Delete content type
|
|
487
407
|
*
|
|
488
408
|
* Deletes the content type with the provided key. If a content type with the provided key does not exist an error is returned.
|
|
489
409
|
*/
|
|
490
|
-
const contentTypesDelete = (options) => {
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
});
|
|
496
|
-
};
|
|
410
|
+
const contentTypesDelete = (options) => (options.client ?? client_gen_1.client).delete({
|
|
411
|
+
responseTransformer: transformers_gen_1.contentTypesDeleteResponseTransformer,
|
|
412
|
+
url: '/contenttypes/{key}',
|
|
413
|
+
...options
|
|
414
|
+
});
|
|
497
415
|
exports.contentTypesDelete = contentTypesDelete;
|
|
498
416
|
/**
|
|
499
417
|
* Get content type
|
|
500
418
|
*
|
|
501
419
|
* Get the content type with the provided key.
|
|
502
420
|
*/
|
|
503
|
-
const contentTypesGet = (options) => {
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
});
|
|
509
|
-
};
|
|
421
|
+
const contentTypesGet = (options) => (options.client ?? client_gen_1.client).get({
|
|
422
|
+
responseTransformer: transformers_gen_1.contentTypesGetResponseTransformer,
|
|
423
|
+
url: '/contenttypes/{key}',
|
|
424
|
+
...options
|
|
425
|
+
});
|
|
510
426
|
exports.contentTypesGet = contentTypesGet;
|
|
511
427
|
/**
|
|
512
428
|
* Patch content type
|
|
513
429
|
*
|
|
514
430
|
* Patch an existing content type. If a content type with the provided key does not exist an error is returned.
|
|
515
431
|
*/
|
|
516
|
-
const contentTypesPatch = (options) => {
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
});
|
|
526
|
-
};
|
|
432
|
+
const contentTypesPatch = (options) => (options.client ?? client_gen_1.client).patch({
|
|
433
|
+
responseTransformer: transformers_gen_1.contentTypesPatchResponseTransformer,
|
|
434
|
+
url: '/contenttypes/{key}',
|
|
435
|
+
...options,
|
|
436
|
+
headers: {
|
|
437
|
+
'Content-Type': 'application/merge-patch+json',
|
|
438
|
+
...options.headers
|
|
439
|
+
}
|
|
440
|
+
});
|
|
527
441
|
exports.contentTypesPatch = contentTypesPatch;
|
|
528
442
|
/**
|
|
529
443
|
* List display templates
|
|
530
444
|
*
|
|
531
445
|
* List display templates using the provided parameters.
|
|
532
446
|
*/
|
|
533
|
-
const displayTemplatesList = (options) => {
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
});
|
|
539
|
-
};
|
|
447
|
+
const displayTemplatesList = (options) => (options?.client ?? client_gen_1.client).get({
|
|
448
|
+
responseTransformer: transformers_gen_1.displayTemplatesListResponseTransformer,
|
|
449
|
+
url: '/displaytemplates',
|
|
450
|
+
...options
|
|
451
|
+
});
|
|
540
452
|
exports.displayTemplatesList = displayTemplatesList;
|
|
541
453
|
/**
|
|
542
454
|
* Create display template
|
|
543
455
|
*
|
|
544
456
|
* Create a new display template.
|
|
545
457
|
*/
|
|
546
|
-
const displayTemplatesCreate = (options) => {
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
});
|
|
556
|
-
};
|
|
458
|
+
const displayTemplatesCreate = (options) => (options.client ?? client_gen_1.client).post({
|
|
459
|
+
responseTransformer: transformers_gen_1.displayTemplatesCreateResponseTransformer,
|
|
460
|
+
url: '/displaytemplates',
|
|
461
|
+
...options,
|
|
462
|
+
headers: {
|
|
463
|
+
'Content-Type': 'application/json',
|
|
464
|
+
...options.headers
|
|
465
|
+
}
|
|
466
|
+
});
|
|
557
467
|
exports.displayTemplatesCreate = displayTemplatesCreate;
|
|
558
468
|
/**
|
|
559
469
|
* Delete display template
|
|
560
470
|
*
|
|
561
471
|
* Deletes the display template with the provided key.
|
|
562
472
|
*/
|
|
563
|
-
const displayTemplatesDelete = (options) => {
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
});
|
|
569
|
-
};
|
|
473
|
+
const displayTemplatesDelete = (options) => (options.client ?? client_gen_1.client).delete({
|
|
474
|
+
responseTransformer: transformers_gen_1.displayTemplatesDeleteResponseTransformer,
|
|
475
|
+
url: '/displaytemplates/{key}',
|
|
476
|
+
...options
|
|
477
|
+
});
|
|
570
478
|
exports.displayTemplatesDelete = displayTemplatesDelete;
|
|
571
479
|
/**
|
|
572
480
|
* Get display template
|
|
573
481
|
*
|
|
574
482
|
* Get the display template with the provided key.
|
|
575
483
|
*/
|
|
576
|
-
const displayTemplatesGet = (options) => {
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
});
|
|
582
|
-
};
|
|
484
|
+
const displayTemplatesGet = (options) => (options.client ?? client_gen_1.client).get({
|
|
485
|
+
responseTransformer: transformers_gen_1.displayTemplatesGetResponseTransformer,
|
|
486
|
+
url: '/displaytemplates/{key}',
|
|
487
|
+
...options
|
|
488
|
+
});
|
|
583
489
|
exports.displayTemplatesGet = displayTemplatesGet;
|
|
584
490
|
/**
|
|
585
491
|
* Patch display template
|
|
586
492
|
*
|
|
587
493
|
* Patch an existing display template.
|
|
588
494
|
*/
|
|
589
|
-
const displayTemplatesPatch = (options) => {
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
});
|
|
599
|
-
};
|
|
495
|
+
const displayTemplatesPatch = (options) => (options.client ?? client_gen_1.client).patch({
|
|
496
|
+
responseTransformer: transformers_gen_1.displayTemplatesPatchResponseTransformer,
|
|
497
|
+
url: '/displaytemplates/{key}',
|
|
498
|
+
...options,
|
|
499
|
+
headers: {
|
|
500
|
+
'Content-Type': 'application/merge-patch+json',
|
|
501
|
+
...options.headers
|
|
502
|
+
}
|
|
503
|
+
});
|
|
600
504
|
exports.displayTemplatesPatch = displayTemplatesPatch;
|
|
601
505
|
/**
|
|
602
506
|
* List property formats
|
|
603
507
|
*
|
|
604
508
|
* List all property formats using the provided options.
|
|
605
509
|
*/
|
|
606
|
-
const propertyFormatsList = (options) => {
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
});
|
|
612
|
-
};
|
|
510
|
+
const propertyFormatsList = (options) => (options?.client ?? client_gen_1.client).get({
|
|
511
|
+
responseTransformer: transformers_gen_1.propertyFormatsListResponseTransformer,
|
|
512
|
+
url: '/propertyformats',
|
|
513
|
+
...options
|
|
514
|
+
});
|
|
613
515
|
exports.propertyFormatsList = propertyFormatsList;
|
|
614
516
|
/**
|
|
615
517
|
* Get property format
|
|
616
518
|
*
|
|
617
519
|
* Get the property format with the provided key.
|
|
618
520
|
*/
|
|
619
|
-
const propertyFormatsGet = (options) => {
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
});
|
|
625
|
-
};
|
|
521
|
+
const propertyFormatsGet = (options) => (options.client ?? client_gen_1.client).get({
|
|
522
|
+
responseTransformer: transformers_gen_1.propertyFormatsGetResponseTransformer,
|
|
523
|
+
url: '/propertyformats/{key}',
|
|
524
|
+
...options
|
|
525
|
+
});
|
|
626
526
|
exports.propertyFormatsGet = propertyFormatsGet;
|
|
627
527
|
/**
|
|
628
528
|
* List property groups
|
|
629
529
|
*
|
|
630
530
|
* List property groups using the provided options.
|
|
631
531
|
*/
|
|
632
|
-
const propertyGroupsList = (options) => {
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
});
|
|
638
|
-
};
|
|
532
|
+
const propertyGroupsList = (options) => (options?.client ?? client_gen_1.client).get({
|
|
533
|
+
responseTransformer: transformers_gen_1.propertyGroupsListResponseTransformer,
|
|
534
|
+
url: '/propertygroups',
|
|
535
|
+
...options
|
|
536
|
+
});
|
|
639
537
|
exports.propertyGroupsList = propertyGroupsList;
|
|
640
538
|
/**
|
|
641
539
|
* Create property group
|
|
642
540
|
*
|
|
643
541
|
* Create a new property group.
|
|
644
542
|
*/
|
|
645
|
-
const propertyGroupsCreate = (options) => {
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
});
|
|
655
|
-
};
|
|
543
|
+
const propertyGroupsCreate = (options) => (options.client ?? client_gen_1.client).post({
|
|
544
|
+
responseTransformer: transformers_gen_1.propertyGroupsCreateResponseTransformer,
|
|
545
|
+
url: '/propertygroups',
|
|
546
|
+
...options,
|
|
547
|
+
headers: {
|
|
548
|
+
'Content-Type': 'application/json',
|
|
549
|
+
...options.headers
|
|
550
|
+
}
|
|
551
|
+
});
|
|
656
552
|
exports.propertyGroupsCreate = propertyGroupsCreate;
|
|
657
553
|
/**
|
|
658
554
|
* Delete property group
|
|
659
555
|
*
|
|
660
556
|
* Deletes the property group with the provided key.
|
|
661
557
|
*/
|
|
662
|
-
const propertyGroupsDelete = (options) => {
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
});
|
|
668
|
-
};
|
|
558
|
+
const propertyGroupsDelete = (options) => (options.client ?? client_gen_1.client).delete({
|
|
559
|
+
responseTransformer: transformers_gen_1.propertyGroupsDeleteResponseTransformer,
|
|
560
|
+
url: '/propertygroups/{key}',
|
|
561
|
+
...options
|
|
562
|
+
});
|
|
669
563
|
exports.propertyGroupsDelete = propertyGroupsDelete;
|
|
670
564
|
/**
|
|
671
565
|
* Get property group
|
|
672
566
|
*
|
|
673
567
|
* Get the property group with the provided key.
|
|
674
568
|
*/
|
|
675
|
-
const propertyGroupsGet = (options) => {
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
});
|
|
681
|
-
};
|
|
569
|
+
const propertyGroupsGet = (options) => (options.client ?? client_gen_1.client).get({
|
|
570
|
+
responseTransformer: transformers_gen_1.propertyGroupsGetResponseTransformer,
|
|
571
|
+
url: '/propertygroups/{key}',
|
|
572
|
+
...options
|
|
573
|
+
});
|
|
682
574
|
exports.propertyGroupsGet = propertyGroupsGet;
|
|
683
575
|
/**
|
|
684
576
|
* Patch property group
|
|
685
577
|
*
|
|
686
578
|
* Patch an existing property group.
|
|
687
579
|
*/
|
|
688
|
-
const propertyGroupsPatch = (options) => {
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
});
|
|
698
|
-
};
|
|
580
|
+
const propertyGroupsPatch = (options) => (options.client ?? client_gen_1.client).patch({
|
|
581
|
+
responseTransformer: transformers_gen_1.propertyGroupsPatchResponseTransformer,
|
|
582
|
+
url: '/propertygroups/{key}',
|
|
583
|
+
...options,
|
|
584
|
+
headers: {
|
|
585
|
+
'Content-Type': 'application/merge-patch+json',
|
|
586
|
+
...options.headers
|
|
587
|
+
}
|
|
588
|
+
});
|
|
699
589
|
exports.propertyGroupsPatch = propertyGroupsPatch;
|