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