@remkoj/optimizely-cms-api 6.0.0-pre12 → 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/api-client.js +2 -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.d.ts +188 -1
- package/dist/client/sdk.gen.js +482 -144
- package/dist/client/transformers.gen.d.ts +27 -1
- package/dist/client/transformers.gen.js +229 -29
- package/dist/client/types.gen.d.ts +1753 -29
- package/dist/client-config.js +1 -1
- 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
|
@@ -1,14 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ChangesetsCreateResponse, ChangesetsDeleteResponse, ChangesetsGetResponse, ChangesetsListResponse, ChangesetsPutResponse, ContentCopyResponse, ContentCreateResponse, ContentCreateVersionResponse, ContentDeleteLocaleResponse, ContentDeleteResponse, ContentDeleteVersionResponse, ContentGetMetadataResponse, ContentGetPathResponse, ContentGetVersionResponse, ContentListAllVersionsResponse, ContentListAssetsResponse, ContentListItemsResponse, ContentListVersionsResponse, ContentPatchMetadataResponse, ContentPatchVersionResponse, ContentTypesCreateResponse, ContentTypesDeleteResponse, ContentTypesGetResponse, ContentTypesListResponse, ContentTypesPatchResponse, ContentTypesPutResponse, ContentUndeleteResponse, DisplayTemplatesCreateResponse, DisplayTemplatesDeleteResponse, DisplayTemplatesGetResponse, DisplayTemplatesListResponse, DisplayTemplatesPatchResponse, DisplayTemplatesPutResponse } from './types.gen';
|
|
2
2
|
export declare const changesetsListResponseTransformer: (data: any) => Promise<ChangesetsListResponse>;
|
|
3
3
|
export declare const changesetsCreateResponseTransformer: (data: any) => Promise<ChangesetsCreateResponse>;
|
|
4
4
|
export declare const changesetsDeleteResponseTransformer: (data: any) => Promise<ChangesetsDeleteResponse>;
|
|
5
5
|
export declare const changesetsGetResponseTransformer: (data: any) => Promise<ChangesetsGetResponse>;
|
|
6
6
|
export declare const changesetsPutResponseTransformer: (data: any) => Promise<ChangesetsPutResponse>;
|
|
7
|
-
export declare const changesetsDeleteItemResponseTransformer: (data: any) => Promise<ChangesetsDeleteItemResponse>;
|
|
8
|
-
export declare const changesetsGetItemResponseTransformer: (data: any) => Promise<ChangesetsGetItemResponse>;
|
|
9
|
-
export declare const changesetsListItemsResponseTransformer: (data: any) => Promise<ChangesetsListItemsResponse>;
|
|
10
|
-
export declare const changesetsCreateItemResponseTransformer: (data: any) => Promise<ChangesetsCreateItemResponse>;
|
|
11
|
-
export declare const changesetsUpdateItemResponseTransformer: (data: any) => Promise<ChangesetsUpdateItemResponse>;
|
|
12
7
|
export declare const contentCreateResponseTransformer: (data: any) => Promise<ContentCreateResponse>;
|
|
13
8
|
export declare const contentDeleteResponseTransformer: (data: any) => Promise<ContentDeleteResponse>;
|
|
14
9
|
export declare const contentGetMetadataResponseTransformer: (data: any) => Promise<ContentGetMetadataResponse>;
|
|
@@ -37,12 +32,3 @@ export declare const displayTemplatesDeleteResponseTransformer: (data: any) => P
|
|
|
37
32
|
export declare const displayTemplatesGetResponseTransformer: (data: any) => Promise<DisplayTemplatesGetResponse>;
|
|
38
33
|
export declare const displayTemplatesPatchResponseTransformer: (data: any) => Promise<DisplayTemplatesPatchResponse>;
|
|
39
34
|
export declare const displayTemplatesPutResponseTransformer: (data: any) => Promise<DisplayTemplatesPutResponse>;
|
|
40
|
-
export declare const oauthTokenResponseTransformer: (data: any) => Promise<OauthTokenResponse>;
|
|
41
|
-
export declare const propertyFormatsListResponseTransformer: (data: any) => Promise<PropertyFormatsListResponse>;
|
|
42
|
-
export declare const propertyFormatsGetResponseTransformer: (data: any) => Promise<PropertyFormatsGetResponse>;
|
|
43
|
-
export declare const propertyGroupsListResponseTransformer: (data: any) => Promise<PropertyGroupsListResponse>;
|
|
44
|
-
export declare const propertyGroupsCreateResponseTransformer: (data: any) => Promise<PropertyGroupsCreateResponse>;
|
|
45
|
-
export declare const propertyGroupsDeleteResponseTransformer: (data: any) => Promise<PropertyGroupsDeleteResponse>;
|
|
46
|
-
export declare const propertyGroupsGetResponseTransformer: (data: any) => Promise<PropertyGroupsGetResponse>;
|
|
47
|
-
export declare const propertyGroupsPatchResponseTransformer: (data: any) => Promise<PropertyGroupsPatchResponse>;
|
|
48
|
-
export declare const propertyGroupsPutResponseTransformer: (data: any) => Promise<PropertyGroupsPutResponse>;
|
|
@@ -1,15 +1,7 @@
|
|
|
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 changesetPageSchemaResponseTransformer = (data) => {
|
|
6
|
-
if (data.items) {
|
|
7
|
-
data.items = data.items.map((item) => {
|
|
8
|
-
return changesetSchemaResponseTransformer(item);
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
return data;
|
|
12
|
-
};
|
|
4
|
+
exports.displayTemplatesPutResponseTransformer = exports.displayTemplatesPatchResponseTransformer = exports.displayTemplatesGetResponseTransformer = exports.displayTemplatesDeleteResponseTransformer = exports.displayTemplatesCreateResponseTransformer = exports.displayTemplatesListResponseTransformer = exports.contentTypesPutResponseTransformer = exports.contentTypesPatchResponseTransformer = exports.contentTypesGetResponseTransformer = exports.contentTypesDeleteResponseTransformer = exports.contentTypesCreateResponseTransformer = exports.contentTypesListResponseTransformer = exports.contentPatchVersionResponseTransformer = exports.contentGetVersionResponseTransformer = exports.contentDeleteVersionResponseTransformer = exports.contentCreateVersionResponseTransformer = exports.contentListVersionsResponseTransformer = exports.contentDeleteLocaleResponseTransformer = exports.contentListAllVersionsResponseTransformer = exports.contentUndeleteResponseTransformer = exports.contentCopyResponseTransformer = exports.contentListAssetsResponseTransformer = exports.contentListItemsResponseTransformer = exports.contentGetPathResponseTransformer = exports.contentPatchMetadataResponseTransformer = exports.contentGetMetadataResponseTransformer = exports.contentDeleteResponseTransformer = exports.contentCreateResponseTransformer = exports.changesetsPutResponseTransformer = exports.changesetsGetResponseTransformer = exports.changesetsDeleteResponseTransformer = exports.changesetsCreateResponseTransformer = exports.changesetsListResponseTransformer = void 0;
|
|
13
5
|
const changesetSchemaResponseTransformer = (data) => {
|
|
14
6
|
if (data.created) {
|
|
15
7
|
data.created = new Date(data.created);
|
|
@@ -19,6 +11,12 @@ const changesetSchemaResponseTransformer = (data) => {
|
|
|
19
11
|
}
|
|
20
12
|
return data;
|
|
21
13
|
};
|
|
14
|
+
const changesetPageSchemaResponseTransformer = (data) => {
|
|
15
|
+
if (data.items) {
|
|
16
|
+
data.items = data.items.map((item) => changesetSchemaResponseTransformer(item));
|
|
17
|
+
}
|
|
18
|
+
return data;
|
|
19
|
+
};
|
|
22
20
|
const changesetsListResponseTransformer = async (data) => {
|
|
23
21
|
data = changesetPageSchemaResponseTransformer(data);
|
|
24
22
|
return data;
|
|
@@ -44,73 +42,7 @@ const changesetsPutResponseTransformer = async (data) => {
|
|
|
44
42
|
return data;
|
|
45
43
|
};
|
|
46
44
|
exports.changesetsPutResponseTransformer = changesetsPutResponseTransformer;
|
|
47
|
-
const changesetItemSchemaResponseTransformer = (data) => {
|
|
48
|
-
data.reference = contentReferenceSchemaResponseTransformer(data.reference);
|
|
49
|
-
return data;
|
|
50
|
-
};
|
|
51
|
-
const changesetsDeleteItemResponseTransformer = async (data) => {
|
|
52
|
-
data = changesetItemSchemaResponseTransformer(data);
|
|
53
|
-
return data;
|
|
54
|
-
};
|
|
55
|
-
exports.changesetsDeleteItemResponseTransformer = changesetsDeleteItemResponseTransformer;
|
|
56
|
-
const changesetsGetItemResponseTransformer = async (data) => {
|
|
57
|
-
data = changesetItemSchemaResponseTransformer(data);
|
|
58
|
-
return data;
|
|
59
|
-
};
|
|
60
|
-
exports.changesetsGetItemResponseTransformer = changesetsGetItemResponseTransformer;
|
|
61
|
-
const changesetItemPageSchemaResponseTransformer = (data) => {
|
|
62
|
-
if (data.items) {
|
|
63
|
-
data.items = data.items.map((item) => {
|
|
64
|
-
return changesetItemSchemaResponseTransformer(item);
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
return data;
|
|
68
|
-
};
|
|
69
|
-
const changesetsListItemsResponseTransformer = async (data) => {
|
|
70
|
-
data = changesetItemPageSchemaResponseTransformer(data);
|
|
71
|
-
return data;
|
|
72
|
-
};
|
|
73
|
-
exports.changesetsListItemsResponseTransformer = changesetsListItemsResponseTransformer;
|
|
74
|
-
const changesetsCreateItemResponseTransformer = async (data) => {
|
|
75
|
-
data = changesetItemSchemaResponseTransformer(data);
|
|
76
|
-
return data;
|
|
77
|
-
};
|
|
78
|
-
exports.changesetsCreateItemResponseTransformer = changesetsCreateItemResponseTransformer;
|
|
79
|
-
const changesetsUpdateItemResponseTransformer = async (data) => {
|
|
80
|
-
data = changesetItemSchemaResponseTransformer(data);
|
|
81
|
-
return data;
|
|
82
|
-
};
|
|
83
|
-
exports.changesetsUpdateItemResponseTransformer = changesetsUpdateItemResponseTransformer;
|
|
84
|
-
const contentItemWithContentTypesSchemaResponseTransformer = (data) => {
|
|
85
|
-
if (data.contentTypes) {
|
|
86
|
-
data.contentTypes = data.contentTypes.map((item) => {
|
|
87
|
-
return contentTypeSchemaResponseTransformer(item);
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
if (data.item) {
|
|
91
|
-
data.item = contentItemSchemaResponseTransformer(data.item);
|
|
92
|
-
}
|
|
93
|
-
return data;
|
|
94
|
-
};
|
|
95
45
|
const contentTypeSchemaResponseTransformer = (data) => {
|
|
96
|
-
if (data.baseType) {
|
|
97
|
-
data.baseType = contentBaseTypeSchemaResponseTransformer(data.baseType);
|
|
98
|
-
}
|
|
99
|
-
if (data.features) {
|
|
100
|
-
data.features = data.features.map((item) => {
|
|
101
|
-
return contentTypeFeatureSchemaResponseTransformer(item);
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
if (data.usage) {
|
|
105
|
-
data.usage = data.usage.map((item) => {
|
|
106
|
-
return contentTypeUsageSchemaResponseTransformer(item);
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
if (data.compositionBehaviors) {
|
|
110
|
-
data.compositionBehaviors = data.compositionBehaviors.map((item) => {
|
|
111
|
-
return compositionBehaviorSchemaResponseTransformer(item);
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
46
|
if (data.created) {
|
|
115
47
|
data.created = new Date(data.created);
|
|
116
48
|
}
|
|
@@ -126,9 +58,6 @@ const contentItemSchemaResponseTransformer = (data) => {
|
|
|
126
58
|
if (data.expired) {
|
|
127
59
|
data.expired = new Date(data.expired);
|
|
128
60
|
}
|
|
129
|
-
if (data.status) {
|
|
130
|
-
data.status = versionStatusSchemaResponseTransformer(data.status);
|
|
131
|
-
}
|
|
132
61
|
if (data.delayPublishUntil) {
|
|
133
62
|
data.delayPublishUntil = new Date(data.delayPublishUntil);
|
|
134
63
|
}
|
|
@@ -137,6 +66,15 @@ const contentItemSchemaResponseTransformer = (data) => {
|
|
|
137
66
|
}
|
|
138
67
|
return data;
|
|
139
68
|
};
|
|
69
|
+
const contentItemWithContentTypesSchemaResponseTransformer = (data) => {
|
|
70
|
+
if (data.contentTypes) {
|
|
71
|
+
data.contentTypes = data.contentTypes.map((item) => contentTypeSchemaResponseTransformer(item));
|
|
72
|
+
}
|
|
73
|
+
if (data.item) {
|
|
74
|
+
data.item = contentItemSchemaResponseTransformer(data.item);
|
|
75
|
+
}
|
|
76
|
+
return data;
|
|
77
|
+
};
|
|
140
78
|
const contentCreateResponseTransformer = async (data) => {
|
|
141
79
|
data = contentItemWithContentTypesSchemaResponseTransformer(data);
|
|
142
80
|
return data;
|
|
@@ -165,9 +103,7 @@ const contentPatchMetadataResponseTransformer = async (data) => {
|
|
|
165
103
|
exports.contentPatchMetadataResponseTransformer = contentPatchMetadataResponseTransformer;
|
|
166
104
|
const contentMetadataPageSchemaResponseTransformer = (data) => {
|
|
167
105
|
if (data.items) {
|
|
168
|
-
data.items = data.items.map((item) =>
|
|
169
|
-
return contentMetadataSchemaResponseTransformer(item);
|
|
170
|
-
});
|
|
106
|
+
data.items = data.items.map((item) => contentMetadataSchemaResponseTransformer(item));
|
|
171
107
|
}
|
|
172
108
|
return data;
|
|
173
109
|
};
|
|
@@ -198,14 +134,10 @@ const contentUndeleteResponseTransformer = async (data) => {
|
|
|
198
134
|
exports.contentUndeleteResponseTransformer = contentUndeleteResponseTransformer;
|
|
199
135
|
const contentItemListWithContentTypesSchemaResponseTransformer = (data) => {
|
|
200
136
|
if (data.contentTypes) {
|
|
201
|
-
data.contentTypes = data.contentTypes.map((item) =>
|
|
202
|
-
return contentTypeSchemaResponseTransformer(item);
|
|
203
|
-
});
|
|
137
|
+
data.contentTypes = data.contentTypes.map((item) => contentTypeSchemaResponseTransformer(item));
|
|
204
138
|
}
|
|
205
139
|
if (data.items) {
|
|
206
|
-
data.items = data.items.map((item) =>
|
|
207
|
-
return contentItemSchemaResponseTransformer(item);
|
|
208
|
-
});
|
|
140
|
+
data.items = data.items.map((item) => contentItemSchemaResponseTransformer(item));
|
|
209
141
|
}
|
|
210
142
|
return data;
|
|
211
143
|
};
|
|
@@ -246,9 +178,7 @@ const contentPatchVersionResponseTransformer = async (data) => {
|
|
|
246
178
|
exports.contentPatchVersionResponseTransformer = contentPatchVersionResponseTransformer;
|
|
247
179
|
const contentTypePageSchemaResponseTransformer = (data) => {
|
|
248
180
|
if (data.items) {
|
|
249
|
-
data.items = data.items.map((item) =>
|
|
250
|
-
return contentTypeSchemaResponseTransformer(item);
|
|
251
|
-
});
|
|
181
|
+
data.items = data.items.map((item) => contentTypeSchemaResponseTransformer(item));
|
|
252
182
|
}
|
|
253
183
|
return data;
|
|
254
184
|
};
|
|
@@ -282,18 +212,7 @@ const contentTypesPutResponseTransformer = async (data) => {
|
|
|
282
212
|
return data;
|
|
283
213
|
};
|
|
284
214
|
exports.contentTypesPutResponseTransformer = contentTypesPutResponseTransformer;
|
|
285
|
-
const displayTemplatePageSchemaResponseTransformer = (data) => {
|
|
286
|
-
if (data.items) {
|
|
287
|
-
data.items = data.items.map((item) => {
|
|
288
|
-
return displayTemplateSchemaResponseTransformer(item);
|
|
289
|
-
});
|
|
290
|
-
}
|
|
291
|
-
return data;
|
|
292
|
-
};
|
|
293
215
|
const displayTemplateSchemaResponseTransformer = (data) => {
|
|
294
|
-
if (data.baseType) {
|
|
295
|
-
data.baseType = contentBaseTypeSchemaResponseTransformer(data.baseType);
|
|
296
|
-
}
|
|
297
216
|
if (data.created) {
|
|
298
217
|
data.created = new Date(data.created);
|
|
299
218
|
}
|
|
@@ -302,6 +221,12 @@ const displayTemplateSchemaResponseTransformer = (data) => {
|
|
|
302
221
|
}
|
|
303
222
|
return data;
|
|
304
223
|
};
|
|
224
|
+
const displayTemplatePageSchemaResponseTransformer = (data) => {
|
|
225
|
+
if (data.items) {
|
|
226
|
+
data.items = data.items.map((item) => displayTemplateSchemaResponseTransformer(item));
|
|
227
|
+
}
|
|
228
|
+
return data;
|
|
229
|
+
};
|
|
305
230
|
const displayTemplatesListResponseTransformer = async (data) => {
|
|
306
231
|
data = displayTemplatePageSchemaResponseTransformer(data);
|
|
307
232
|
return data;
|
|
@@ -332,100 +257,3 @@ const displayTemplatesPutResponseTransformer = async (data) => {
|
|
|
332
257
|
return data;
|
|
333
258
|
};
|
|
334
259
|
exports.displayTemplatesPutResponseTransformer = displayTemplatesPutResponseTransformer;
|
|
335
|
-
const oauthTokenResponseTransformer = async (data) => {
|
|
336
|
-
data = oauthTokenSchemaResponseTransformer(data);
|
|
337
|
-
return data;
|
|
338
|
-
};
|
|
339
|
-
exports.oauthTokenResponseTransformer = oauthTokenResponseTransformer;
|
|
340
|
-
const propertyFormatPageSchemaResponseTransformer = (data) => {
|
|
341
|
-
if (data.items) {
|
|
342
|
-
data.items = data.items.map((item) => {
|
|
343
|
-
return propertyFormatSchemaResponseTransformer(item);
|
|
344
|
-
});
|
|
345
|
-
}
|
|
346
|
-
return data;
|
|
347
|
-
};
|
|
348
|
-
const propertyFormatSchemaResponseTransformer = (data) => {
|
|
349
|
-
if (data.dataType) {
|
|
350
|
-
data.dataType = propertyDataTypeSchemaResponseTransformer(data.dataType);
|
|
351
|
-
}
|
|
352
|
-
if (data.itemType) {
|
|
353
|
-
data.itemType = propertyDataTypeSchemaResponseTransformer(data.itemType);
|
|
354
|
-
}
|
|
355
|
-
return data;
|
|
356
|
-
};
|
|
357
|
-
const propertyFormatsListResponseTransformer = async (data) => {
|
|
358
|
-
data = propertyFormatPageSchemaResponseTransformer(data);
|
|
359
|
-
return data;
|
|
360
|
-
};
|
|
361
|
-
exports.propertyFormatsListResponseTransformer = propertyFormatsListResponseTransformer;
|
|
362
|
-
const propertyFormatsGetResponseTransformer = async (data) => {
|
|
363
|
-
data = propertyFormatSchemaResponseTransformer(data);
|
|
364
|
-
return data;
|
|
365
|
-
};
|
|
366
|
-
exports.propertyFormatsGetResponseTransformer = propertyFormatsGetResponseTransformer;
|
|
367
|
-
const propertyGroupPageSchemaResponseTransformer = (data) => {
|
|
368
|
-
if (data.items) {
|
|
369
|
-
data.items = data.items.map((item) => {
|
|
370
|
-
return propertyGroupSchemaResponseTransformer(item);
|
|
371
|
-
});
|
|
372
|
-
}
|
|
373
|
-
return data;
|
|
374
|
-
};
|
|
375
|
-
const propertyGroupsListResponseTransformer = async (data) => {
|
|
376
|
-
data = propertyGroupPageSchemaResponseTransformer(data);
|
|
377
|
-
return data;
|
|
378
|
-
};
|
|
379
|
-
exports.propertyGroupsListResponseTransformer = propertyGroupsListResponseTransformer;
|
|
380
|
-
const propertyGroupsCreateResponseTransformer = async (data) => {
|
|
381
|
-
data = propertyGroupSchemaResponseTransformer(data);
|
|
382
|
-
return data;
|
|
383
|
-
};
|
|
384
|
-
exports.propertyGroupsCreateResponseTransformer = propertyGroupsCreateResponseTransformer;
|
|
385
|
-
const propertyGroupsDeleteResponseTransformer = async (data) => {
|
|
386
|
-
data = propertyGroupSchemaResponseTransformer(data);
|
|
387
|
-
return data;
|
|
388
|
-
};
|
|
389
|
-
exports.propertyGroupsDeleteResponseTransformer = propertyGroupsDeleteResponseTransformer;
|
|
390
|
-
const propertyGroupsGetResponseTransformer = async (data) => {
|
|
391
|
-
data = propertyGroupSchemaResponseTransformer(data);
|
|
392
|
-
return data;
|
|
393
|
-
};
|
|
394
|
-
exports.propertyGroupsGetResponseTransformer = propertyGroupsGetResponseTransformer;
|
|
395
|
-
const propertyGroupsPatchResponseTransformer = async (data) => {
|
|
396
|
-
data = propertyGroupSchemaResponseTransformer(data);
|
|
397
|
-
return data;
|
|
398
|
-
};
|
|
399
|
-
exports.propertyGroupsPatchResponseTransformer = propertyGroupsPatchResponseTransformer;
|
|
400
|
-
const propertyGroupsPutResponseTransformer = async (data) => {
|
|
401
|
-
data = propertyGroupSchemaResponseTransformer(data);
|
|
402
|
-
return data;
|
|
403
|
-
};
|
|
404
|
-
exports.propertyGroupsPutResponseTransformer = propertyGroupsPutResponseTransformer;
|
|
405
|
-
const propertyGroupSchemaResponseTransformer = (data) => {
|
|
406
|
-
return data;
|
|
407
|
-
};
|
|
408
|
-
const propertyDataTypeSchemaResponseTransformer = (data) => {
|
|
409
|
-
return data;
|
|
410
|
-
};
|
|
411
|
-
const contentBaseTypeSchemaResponseTransformer = (data) => {
|
|
412
|
-
return data;
|
|
413
|
-
};
|
|
414
|
-
const contentReferenceSchemaResponseTransformer = (data) => {
|
|
415
|
-
return data;
|
|
416
|
-
};
|
|
417
|
-
const oauthTokenSchemaResponseTransformer = (data) => {
|
|
418
|
-
return data;
|
|
419
|
-
};
|
|
420
|
-
const contentTypeFeatureSchemaResponseTransformer = (data) => {
|
|
421
|
-
return data;
|
|
422
|
-
};
|
|
423
|
-
const contentTypeUsageSchemaResponseTransformer = (data) => {
|
|
424
|
-
return data;
|
|
425
|
-
};
|
|
426
|
-
const compositionBehaviorSchemaResponseTransformer = (data) => {
|
|
427
|
-
return data;
|
|
428
|
-
};
|
|
429
|
-
const versionStatusSchemaResponseTransformer = (data) => {
|
|
430
|
-
return data;
|
|
431
|
-
};
|
|
@@ -4,17 +4,16 @@ export type ClientOptions = {
|
|
|
4
4
|
/**
|
|
5
5
|
* Describes a property that can contain a reference to binary data.
|
|
6
6
|
*/
|
|
7
|
-
export type BinaryProperty = ContentTypeProperty & {
|
|
8
|
-
type: 'BinaryProperty';
|
|
9
|
-
} & {
|
|
7
|
+
export type BinaryProperty = Omit<ContentTypeProperty, 'type'> & {
|
|
10
8
|
imageDescriptor?: ImageDescriptor;
|
|
9
|
+
type: 'BinaryProperty';
|
|
11
10
|
};
|
|
12
11
|
/**
|
|
13
12
|
* Describes a property that can contain a boolean value.
|
|
14
13
|
*/
|
|
15
|
-
export type BooleanProperty = ContentTypeProperty & {
|
|
14
|
+
export type BooleanProperty = Omit<ContentTypeProperty, 'type'> & {
|
|
16
15
|
type: 'BooleanProperty';
|
|
17
|
-
}
|
|
16
|
+
};
|
|
18
17
|
/**
|
|
19
18
|
* Changesets are used to group work on several content items together.
|
|
20
19
|
*/
|
|
@@ -90,24 +89,22 @@ export type ChangesetPage = {
|
|
|
90
89
|
/**
|
|
91
90
|
* Describes a property list item that can contain a component instance of a specific type.
|
|
92
91
|
*/
|
|
93
|
-
export type ComponentListItem = ListPropertyItem & {
|
|
94
|
-
type: 'ComponentListItem';
|
|
95
|
-
} & {
|
|
92
|
+
export type ComponentListItem = Omit<ListPropertyItem, 'type'> & {
|
|
96
93
|
/**
|
|
97
94
|
* The key of the ContentType that this ComponentListItem can contain.
|
|
98
95
|
*/
|
|
99
96
|
contentType: string;
|
|
97
|
+
type: 'ComponentListItem';
|
|
100
98
|
};
|
|
101
99
|
/**
|
|
102
100
|
* Describes a property that can contain a component instance of a specific type.
|
|
103
101
|
*/
|
|
104
|
-
export type ComponentProperty = ContentTypeProperty & {
|
|
105
|
-
type: 'ComponentProperty';
|
|
106
|
-
} & {
|
|
102
|
+
export type ComponentProperty = Omit<ContentTypeProperty, 'type'> & {
|
|
107
103
|
/**
|
|
108
104
|
* The key of the ContentType that this ComponentProperty can contain.
|
|
109
105
|
*/
|
|
110
106
|
contentType: string;
|
|
107
|
+
type: 'ComponentProperty';
|
|
111
108
|
};
|
|
112
109
|
/**
|
|
113
110
|
* Represent a Composition behavior for a ContentType.
|
|
@@ -264,9 +261,7 @@ export type ContentItemWithContentTypes = {
|
|
|
264
261
|
/**
|
|
265
262
|
* Describes a property list item that can hold a content item.
|
|
266
263
|
*/
|
|
267
|
-
export type ContentListItem = ListPropertyItem & {
|
|
268
|
-
type: 'ContentListItem';
|
|
269
|
-
} & {
|
|
264
|
+
export type ContentListItem = Omit<ListPropertyItem, 'type'> & {
|
|
270
265
|
/**
|
|
271
266
|
* Specifies which content types and base types these property items are allowed to contain.
|
|
272
267
|
*/
|
|
@@ -275,6 +270,7 @@ export type ContentListItem = ListPropertyItem & {
|
|
|
275
270
|
* Specifies which content types and base types these property items cannot contain.
|
|
276
271
|
*/
|
|
277
272
|
restrictedTypes?: Array<string>;
|
|
273
|
+
type: 'ContentListItem';
|
|
278
274
|
};
|
|
279
275
|
/**
|
|
280
276
|
* Describes information about a locale instance of a content item.
|
|
@@ -354,9 +350,7 @@ export type ContentMetadataPage = {
|
|
|
354
350
|
/**
|
|
355
351
|
* Describes a property that can contain a content item.
|
|
356
352
|
*/
|
|
357
|
-
export type ContentProperty = ContentTypeProperty & {
|
|
358
|
-
type: 'ContentProperty';
|
|
359
|
-
} & {
|
|
353
|
+
export type ContentProperty = Omit<ContentTypeProperty, 'type'> & {
|
|
360
354
|
/**
|
|
361
355
|
* Specifies which content types and base types this property is allowed to contain.
|
|
362
356
|
*/
|
|
@@ -365,6 +359,7 @@ export type ContentProperty = ContentTypeProperty & {
|
|
|
365
359
|
* Specifies which content types and base types this property cannot contain.
|
|
366
360
|
*/
|
|
367
361
|
restrictedTypes?: Array<string>;
|
|
362
|
+
type: 'ContentProperty';
|
|
368
363
|
};
|
|
369
364
|
/**
|
|
370
365
|
* A reference to a specific content instance.
|
|
@@ -386,9 +381,7 @@ export type ContentReference = {
|
|
|
386
381
|
/**
|
|
387
382
|
* Describes a property list item that can hold a reference to a content item.
|
|
388
383
|
*/
|
|
389
|
-
export type ContentReferenceListItem = ListPropertyItem & {
|
|
390
|
-
type: 'ContentReferenceListItem';
|
|
391
|
-
} & {
|
|
384
|
+
export type ContentReferenceListItem = Omit<ListPropertyItem, 'type'> & {
|
|
392
385
|
/**
|
|
393
386
|
* Specifies which content types and base types these list items are allowed to reference.
|
|
394
387
|
*/
|
|
@@ -397,13 +390,12 @@ export type ContentReferenceListItem = ListPropertyItem & {
|
|
|
397
390
|
* Specifies which content types and base types these list items cannot contain.
|
|
398
391
|
*/
|
|
399
392
|
restrictedTypes?: Array<string>;
|
|
393
|
+
type: 'ContentReferenceListItem';
|
|
400
394
|
};
|
|
401
395
|
/**
|
|
402
396
|
* Describes a property that can contain a reference to a content item.
|
|
403
397
|
*/
|
|
404
|
-
export type ContentReferenceProperty = ContentTypeProperty & {
|
|
405
|
-
type: 'ContentReferenceProperty';
|
|
406
|
-
} & {
|
|
398
|
+
export type ContentReferenceProperty = Omit<ContentTypeProperty, 'type'> & {
|
|
407
399
|
/**
|
|
408
400
|
* Specifies which content types and base types this property is allowed to reference.
|
|
409
401
|
*/
|
|
@@ -412,6 +404,7 @@ export type ContentReferenceProperty = ContentTypeProperty & {
|
|
|
412
404
|
* Specifies which content types and base types this property is restricted from referencing.
|
|
413
405
|
*/
|
|
414
406
|
restrictedTypes?: Array<string>;
|
|
407
|
+
type: 'ContentReferenceProperty';
|
|
415
408
|
};
|
|
416
409
|
/**
|
|
417
410
|
* A writable implementation of an ContentType.
|
|
@@ -601,9 +594,7 @@ export type CopyContentOptions = {
|
|
|
601
594
|
/**
|
|
602
595
|
* Describes a property list item that can contain a timestamp.
|
|
603
596
|
*/
|
|
604
|
-
export type DateTimeListItem = ListPropertyItem & {
|
|
605
|
-
type: 'DateTimeListItem';
|
|
606
|
-
} & {
|
|
597
|
+
export type DateTimeListItem = Omit<ListPropertyItem, 'type'> & {
|
|
607
598
|
/**
|
|
608
599
|
* The earliest timestamp that list items of this type should be able to contain.
|
|
609
600
|
*/
|
|
@@ -612,13 +603,12 @@ export type DateTimeListItem = ListPropertyItem & {
|
|
|
612
603
|
* The latest timestamp that list items of this type should be able to contain.
|
|
613
604
|
*/
|
|
614
605
|
maximum?: Date | null;
|
|
606
|
+
type: 'DateTimeListItem';
|
|
615
607
|
};
|
|
616
608
|
/**
|
|
617
609
|
* Describes a property that can contain a timestamp.
|
|
618
610
|
*/
|
|
619
|
-
export type DateTimeProperty = ContentTypeProperty & {
|
|
620
|
-
type: 'DateTimeProperty';
|
|
621
|
-
} & {
|
|
611
|
+
export type DateTimeProperty = Omit<ContentTypeProperty, 'type'> & {
|
|
622
612
|
/**
|
|
623
613
|
* The earliest timestamp that properties of this type should be able to contain.
|
|
624
614
|
*/
|
|
@@ -627,6 +617,7 @@ export type DateTimeProperty = ContentTypeProperty & {
|
|
|
627
617
|
* The latest timestamp that properties of this type should be able to contain.
|
|
628
618
|
*/
|
|
629
619
|
maximum?: Date | null;
|
|
620
|
+
type: 'DateTimeProperty';
|
|
630
621
|
};
|
|
631
622
|
/**
|
|
632
623
|
* Describes a setting for a display template.
|
|
@@ -756,9 +747,7 @@ export type DoubleEnumerationValue = {
|
|
|
756
747
|
/**
|
|
757
748
|
* Describes a property list item that can contain a float number.
|
|
758
749
|
*/
|
|
759
|
-
export type FloatListItem = ListPropertyItem & {
|
|
760
|
-
type: 'FloatListItem';
|
|
761
|
-
} & {
|
|
750
|
+
export type FloatListItem = Omit<ListPropertyItem, 'type'> & {
|
|
762
751
|
/**
|
|
763
752
|
* The minimum value that list items of this type should be able to contain.
|
|
764
753
|
*/
|
|
@@ -768,13 +757,12 @@ export type FloatListItem = ListPropertyItem & {
|
|
|
768
757
|
*/
|
|
769
758
|
maximum?: number | null;
|
|
770
759
|
enum?: DoubleEnumerationSettings;
|
|
760
|
+
type: 'FloatListItem';
|
|
771
761
|
};
|
|
772
762
|
/**
|
|
773
763
|
* Describes a property that can contain a float number.
|
|
774
764
|
*/
|
|
775
|
-
export type FloatProperty = ContentTypeProperty & {
|
|
776
|
-
type: 'FloatProperty';
|
|
777
|
-
} & {
|
|
765
|
+
export type FloatProperty = Omit<ContentTypeProperty, 'type'> & {
|
|
778
766
|
/**
|
|
779
767
|
* The minimum value that properties of this type should be able to contain.
|
|
780
768
|
*/
|
|
@@ -784,6 +772,7 @@ export type FloatProperty = ContentTypeProperty & {
|
|
|
784
772
|
*/
|
|
785
773
|
maximum?: number | null;
|
|
786
774
|
enum?: DoubleEnumerationSettings;
|
|
775
|
+
type: 'FloatProperty';
|
|
787
776
|
};
|
|
788
777
|
/**
|
|
789
778
|
* Instruction for generating an alternative image from the main binary of an image content item.
|
|
@@ -831,9 +820,7 @@ export type Int32EnumerationValue = {
|
|
|
831
820
|
/**
|
|
832
821
|
* Describes a property list item that can contain integers.
|
|
833
822
|
*/
|
|
834
|
-
export type IntegerListItem = ListPropertyItem & {
|
|
835
|
-
type: 'IntegerListItem';
|
|
836
|
-
} & {
|
|
823
|
+
export type IntegerListItem = Omit<ListPropertyItem, 'type'> & {
|
|
837
824
|
/**
|
|
838
825
|
* The minimum value that list items of this type should be able to contain.
|
|
839
826
|
*/
|
|
@@ -843,13 +830,12 @@ export type IntegerListItem = ListPropertyItem & {
|
|
|
843
830
|
*/
|
|
844
831
|
maximum?: number | null;
|
|
845
832
|
enum?: Int32EnumerationSettings;
|
|
833
|
+
type: 'IntegerListItem';
|
|
846
834
|
};
|
|
847
835
|
/**
|
|
848
836
|
* Describes a property that can contain an integer.
|
|
849
837
|
*/
|
|
850
|
-
export type IntegerProperty = ContentTypeProperty & {
|
|
851
|
-
type: 'IntegerProperty';
|
|
852
|
-
} & {
|
|
838
|
+
export type IntegerProperty = Omit<ContentTypeProperty, 'type'> & {
|
|
853
839
|
/**
|
|
854
840
|
* The minimum value that properties of this type should be able to contain.
|
|
855
841
|
*/
|
|
@@ -859,19 +845,18 @@ export type IntegerProperty = ContentTypeProperty & {
|
|
|
859
845
|
*/
|
|
860
846
|
maximum?: number | null;
|
|
861
847
|
enum?: Int32EnumerationSettings;
|
|
848
|
+
type: 'IntegerProperty';
|
|
862
849
|
};
|
|
863
850
|
/**
|
|
864
851
|
* Describes a property that can contain a JSON value in the form of a string.
|
|
865
852
|
*/
|
|
866
|
-
export type JsonStringProperty = ContentTypeProperty & {
|
|
853
|
+
export type JsonStringProperty = Omit<ContentTypeProperty, 'type'> & {
|
|
867
854
|
type: 'JsonStringProperty';
|
|
868
|
-
}
|
|
855
|
+
};
|
|
869
856
|
/**
|
|
870
857
|
* A property in the CMS that may hold a list of items.
|
|
871
858
|
*/
|
|
872
|
-
export type ListProperty = ContentTypeProperty & {
|
|
873
|
-
type: 'ListProperty';
|
|
874
|
-
} & {
|
|
859
|
+
export type ListProperty = Omit<ContentTypeProperty, 'type'> & {
|
|
875
860
|
/**
|
|
876
861
|
* Specifies the minimum number of items in this array property.
|
|
877
862
|
*/
|
|
@@ -900,6 +885,7 @@ export type ListProperty = ContentTypeProperty & {
|
|
|
900
885
|
} & StringListItem) | ({
|
|
901
886
|
type: 'UrlListItem';
|
|
902
887
|
} & UrlListItem);
|
|
888
|
+
type: 'ListProperty';
|
|
903
889
|
};
|
|
904
890
|
/**
|
|
905
891
|
* Describes the list item of a ListProperty in the CMS.
|
|
@@ -923,15 +909,15 @@ export type OauthToken = {
|
|
|
923
909
|
/**
|
|
924
910
|
* Gets or sets the access token.
|
|
925
911
|
*/
|
|
926
|
-
|
|
912
|
+
access_token?: string | null;
|
|
927
913
|
/**
|
|
928
914
|
* Gets or sets the expiry time in seconds.
|
|
929
915
|
*/
|
|
930
|
-
|
|
916
|
+
expires_in?: number;
|
|
931
917
|
/**
|
|
932
918
|
* Gets or sets the token type.
|
|
933
919
|
*/
|
|
934
|
-
|
|
920
|
+
token_type?: string;
|
|
935
921
|
};
|
|
936
922
|
/**
|
|
937
923
|
* Represents an OAuth error.
|
|
@@ -944,7 +930,7 @@ export type OauthTokenError = {
|
|
|
944
930
|
/**
|
|
945
931
|
* Gets or sets the error description.
|
|
946
932
|
*/
|
|
947
|
-
|
|
933
|
+
error_description?: string | null;
|
|
948
934
|
};
|
|
949
935
|
/**
|
|
950
936
|
* Represents an OAuth token request.
|
|
@@ -953,19 +939,19 @@ export type OauthTokenRequest = {
|
|
|
953
939
|
/**
|
|
954
940
|
* Gets or sets the grant type.
|
|
955
941
|
*/
|
|
956
|
-
|
|
942
|
+
grant_type?: string | null;
|
|
957
943
|
/**
|
|
958
944
|
* Gets or sets the client id.
|
|
959
945
|
*/
|
|
960
|
-
|
|
946
|
+
client_id?: string | null;
|
|
961
947
|
/**
|
|
962
948
|
* Gets or sets the client secret.
|
|
963
949
|
*/
|
|
964
|
-
|
|
950
|
+
client_secret?: string | null;
|
|
965
951
|
/**
|
|
966
952
|
* Get or sets the subject to act as.
|
|
967
953
|
*/
|
|
968
|
-
|
|
954
|
+
act_as?: string | null;
|
|
969
955
|
};
|
|
970
956
|
export type ProblemDetails = {
|
|
971
957
|
type?: string | null;
|
|
@@ -1108,9 +1094,7 @@ export type StringEnumerationValue = {
|
|
|
1108
1094
|
/**
|
|
1109
1095
|
* Describes a property list item that can contain a string.
|
|
1110
1096
|
*/
|
|
1111
|
-
export type StringListItem = ListPropertyItem & {
|
|
1112
|
-
type: 'StringListItem';
|
|
1113
|
-
} & {
|
|
1097
|
+
export type StringListItem = Omit<ListPropertyItem, 'type'> & {
|
|
1114
1098
|
/**
|
|
1115
1099
|
* The minimum string length that list items of this type should be able to contain.
|
|
1116
1100
|
*/
|
|
@@ -1124,13 +1108,12 @@ export type StringListItem = ListPropertyItem & {
|
|
|
1124
1108
|
*/
|
|
1125
1109
|
pattern?: string | null;
|
|
1126
1110
|
enum?: StringEnumerationSettings;
|
|
1111
|
+
type: 'StringListItem';
|
|
1127
1112
|
};
|
|
1128
1113
|
/**
|
|
1129
1114
|
* Describes a property that can contain strings.
|
|
1130
1115
|
*/
|
|
1131
|
-
export type StringProperty = ContentTypeProperty & {
|
|
1132
|
-
type: 'StringProperty';
|
|
1133
|
-
} & {
|
|
1116
|
+
export type StringProperty = Omit<ContentTypeProperty, 'type'> & {
|
|
1134
1117
|
/**
|
|
1135
1118
|
* The minimum string length that properties of this type should be able to contain.
|
|
1136
1119
|
*/
|
|
@@ -1144,19 +1127,20 @@ export type StringProperty = ContentTypeProperty & {
|
|
|
1144
1127
|
*/
|
|
1145
1128
|
pattern?: string | null;
|
|
1146
1129
|
enum?: StringEnumerationSettings;
|
|
1130
|
+
type: 'StringProperty';
|
|
1147
1131
|
};
|
|
1148
1132
|
/**
|
|
1149
1133
|
* Describes a property list item that can contain a URL.
|
|
1150
1134
|
*/
|
|
1151
|
-
export type UrlListItem = ListPropertyItem & {
|
|
1135
|
+
export type UrlListItem = Omit<ListPropertyItem, 'type'> & {
|
|
1152
1136
|
type: 'UrlListItem';
|
|
1153
|
-
}
|
|
1137
|
+
};
|
|
1154
1138
|
/**
|
|
1155
1139
|
* Describes a property that can contain URLs.
|
|
1156
1140
|
*/
|
|
1157
|
-
export type UrlProperty = ContentTypeProperty & {
|
|
1141
|
+
export type UrlProperty = Omit<ContentTypeProperty, 'type'> & {
|
|
1158
1142
|
type: 'UrlProperty';
|
|
1159
|
-
}
|
|
1143
|
+
};
|
|
1160
1144
|
/**
|
|
1161
1145
|
* Represent the different status values of a content version.
|
|
1162
1146
|
*/
|