@remkoj/optimizely-cms-api 5.1.5 → 6.0.0-pre10
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 +3 -5
- package/dist/api-client.d.ts +70 -11
- package/dist/api-client.js +208 -48
- package/dist/client/client/client.gen.d.ts +2 -0
- package/dist/client/client/client.gen.js +208 -0
- package/dist/client/client/index.d.ts +8 -0
- package/dist/client/client/index.js +17 -0
- package/dist/client/client/types.gen.d.ts +124 -0
- package/dist/client/{core/ApiRequestOptions.js → client/types.gen.js} +1 -0
- package/dist/client/client/utils.gen.d.ts +33 -0
- package/dist/client/client/utils.gen.js +242 -0
- package/dist/client/client.gen.d.ts +12 -0
- package/dist/client/client.gen.js +9 -0
- package/dist/client/core/auth.gen.d.ts +18 -0
- package/dist/client/core/auth.gen.js +18 -0
- package/dist/client/core/bodySerializer.gen.d.ts +25 -0
- package/dist/client/core/bodySerializer.gen.js +60 -0
- package/dist/client/core/params.gen.d.ts +33 -0
- package/dist/client/core/params.gen.js +92 -0
- package/dist/client/core/pathSerializer.gen.d.ts +33 -0
- package/dist/client/core/pathSerializer.gen.js +123 -0
- package/dist/client/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/client/core/queryKeySerializer.gen.js +105 -0
- package/dist/client/core/serverSentEvents.gen.d.ts +71 -0
- package/dist/client/core/serverSentEvents.gen.js +139 -0
- package/dist/client/core/types.gen.d.ts +78 -0
- package/dist/client/core/{ApiResult.js → 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 -78
- package/dist/client/index.js +18 -46
- package/dist/client/sdk.gen.d.ts +117 -0
- package/dist/client/sdk.gen.js +251 -0
- package/dist/client/transformers.gen.d.ts +18 -0
- package/dist/client/transformers.gen.js +157 -0
- package/dist/client/types.gen.d.ts +1285 -0
- package/dist/client/{models/BooleanProperty.js → types.gen.js} +1 -0
- package/dist/client-config.d.ts +5 -0
- package/dist/client-config.js +55 -0
- package/dist/config.d.ts +5 -2
- package/dist/config.js +26 -18
- package/dist/getaccesstoken.d.ts +1 -1
- package/dist/getaccesstoken.js +10 -9
- package/dist/index.d.ts +7 -6
- package/dist/index.js +15 -8
- package/dist/instance.client/client/client.gen.d.ts +2 -0
- package/dist/instance.client/client/client.gen.js +208 -0
- package/dist/instance.client/client/index.d.ts +8 -0
- package/dist/instance.client/client/index.js +17 -0
- package/dist/instance.client/client/types.gen.d.ts +124 -0
- package/dist/{client/models/BinaryProperty.js → instance.client/client/types.gen.js} +1 -0
- package/dist/instance.client/client/utils.gen.d.ts +33 -0
- package/dist/instance.client/client/utils.gen.js +242 -0
- package/dist/instance.client/client.gen.d.ts +12 -0
- package/dist/instance.client/client.gen.js +9 -0
- package/dist/instance.client/core/auth.gen.d.ts +18 -0
- package/dist/instance.client/core/auth.gen.js +18 -0
- package/dist/instance.client/core/bodySerializer.gen.d.ts +25 -0
- package/dist/instance.client/core/bodySerializer.gen.js +60 -0
- package/dist/instance.client/core/params.gen.d.ts +33 -0
- package/dist/instance.client/core/params.gen.js +92 -0
- package/dist/instance.client/core/pathSerializer.gen.d.ts +33 -0
- package/dist/instance.client/core/pathSerializer.gen.js +123 -0
- package/dist/instance.client/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/instance.client/core/queryKeySerializer.gen.js +105 -0
- package/dist/instance.client/core/serverSentEvents.gen.d.ts +71 -0
- package/dist/instance.client/core/serverSentEvents.gen.js +139 -0
- package/dist/instance.client/core/types.gen.d.ts +78 -0
- package/dist/instance.client/core/types.gen.js +3 -0
- package/dist/instance.client/core/utils.gen.d.ts +19 -0
- package/dist/instance.client/core/utils.gen.js +93 -0
- package/dist/instance.client/index.d.ts +4 -0
- package/dist/instance.client/index.js +21 -0
- package/dist/instance.client/sdk.gen.d.ts +303 -0
- package/dist/instance.client/sdk.gen.js +699 -0
- package/dist/instance.client/transformers.gen.d.ts +48 -0
- package/dist/instance.client/transformers.gen.js +431 -0
- package/dist/instance.client/types.gen.d.ts +2838 -0
- package/dist/instance.client/types.gen.js +3 -0
- package/dist/types.d.ts +3 -1
- package/dist/types.js +1 -0
- package/dist/version.json +3 -3
- package/package.json +16 -11
- package/dist/client/CmsIntegrationApiClient.d.ts +0 -22
- package/dist/client/CmsIntegrationApiClient.js +0 -34
- package/dist/client/core/ApiError.d.ts +0 -10
- package/dist/client/core/ApiError.js +0 -15
- package/dist/client/core/ApiRequestOptions.d.ts +0 -13
- package/dist/client/core/ApiResult.d.ts +0 -7
- package/dist/client/core/BaseHttpRequest.d.ts +0 -8
- package/dist/client/core/BaseHttpRequest.js +0 -9
- package/dist/client/core/CancelablePromise.d.ts +0 -20
- package/dist/client/core/CancelablePromise.js +0 -116
- package/dist/client/core/FetchHttpRequest.d.ts +0 -14
- package/dist/client/core/FetchHttpRequest.js +0 -20
- package/dist/client/core/OpenAPI.d.ts +0 -16
- package/dist/client/core/OpenAPI.js +0 -14
- package/dist/client/core/request.d.ts +0 -30
- package/dist/client/core/request.js +0 -294
- package/dist/client/models/BinaryProperty.d.ts +0 -8
- package/dist/client/models/BooleanProperty.d.ts +0 -5
- package/dist/client/models/Changeset.d.ts +0 -26
- package/dist/client/models/Changeset.js +0 -2
- package/dist/client/models/ChangesetItem.d.ts +0 -11
- package/dist/client/models/ChangesetItem.js +0 -2
- package/dist/client/models/ChangesetItemPage.d.ts +0 -19
- package/dist/client/models/ChangesetItemPage.js +0 -2
- package/dist/client/models/ChangesetPage.d.ts +0 -19
- package/dist/client/models/ChangesetPage.js +0 -2
- package/dist/client/models/ComponentListItem.d.ts +0 -10
- package/dist/client/models/ComponentListItem.js +0 -2
- package/dist/client/models/ComponentProperty.d.ts +0 -10
- package/dist/client/models/ComponentProperty.js +0 -2
- package/dist/client/models/CompositionBehavior.d.ts +0 -7
- package/dist/client/models/CompositionBehavior.js +0 -15
- package/dist/client/models/ContentBaseType.d.ts +0 -14
- package/dist/client/models/ContentBaseType.js +0 -22
- package/dist/client/models/ContentComponent.d.ts +0 -30
- package/dist/client/models/ContentComponent.js +0 -2
- package/dist/client/models/ContentItem.d.ts +0 -60
- package/dist/client/models/ContentItem.js +0 -2
- package/dist/client/models/ContentItemListWithContentTypes.d.ts +0 -27
- package/dist/client/models/ContentItemListWithContentTypes.js +0 -2
- package/dist/client/models/ContentItemPage.d.ts +0 -19
- package/dist/client/models/ContentItemPage.js +0 -2
- package/dist/client/models/ContentItemWithContentTypes.d.ts +0 -12
- package/dist/client/models/ContentItemWithContentTypes.js +0 -2
- package/dist/client/models/ContentListItem.d.ts +0 -14
- package/dist/client/models/ContentListItem.js +0 -2
- package/dist/client/models/ContentLocaleInfo.d.ts +0 -19
- package/dist/client/models/ContentLocaleInfo.js +0 -2
- package/dist/client/models/ContentMetadata.d.ts +0 -38
- package/dist/client/models/ContentMetadata.js +0 -2
- package/dist/client/models/ContentMetadataPage.d.ts +0 -19
- package/dist/client/models/ContentMetadataPage.js +0 -2
- package/dist/client/models/ContentProperty.d.ts +0 -14
- package/dist/client/models/ContentProperty.js +0 -2
- package/dist/client/models/ContentReference.d.ts +0 -17
- package/dist/client/models/ContentReference.js +0 -2
- package/dist/client/models/ContentReferenceListItem.d.ts +0 -14
- package/dist/client/models/ContentReferenceListItem.js +0 -2
- package/dist/client/models/ContentReferenceProperty.d.ts +0 -14
- package/dist/client/models/ContentReferenceProperty.js +0 -2
- package/dist/client/models/ContentType.d.ts +0 -84
- package/dist/client/models/ContentType.js +0 -2
- package/dist/client/models/ContentTypeFeature.d.ts +0 -10
- package/dist/client/models/ContentTypeFeature.js +0 -18
- package/dist/client/models/ContentTypePage.d.ts +0 -19
- package/dist/client/models/ContentTypePage.js +0 -2
- package/dist/client/models/ContentTypeProperty.d.ts +0 -47
- package/dist/client/models/ContentTypeProperty.js +0 -2
- package/dist/client/models/ContentTypeUsage.d.ts +0 -7
- package/dist/client/models/ContentTypeUsage.js +0 -15
- package/dist/client/models/CopyContentOptions.d.ts +0 -21
- package/dist/client/models/CopyContentOptions.js +0 -2
- package/dist/client/models/DateTimeListItem.d.ts +0 -14
- package/dist/client/models/DateTimeListItem.js +0 -2
- package/dist/client/models/DateTimeProperty.d.ts +0 -14
- package/dist/client/models/DateTimeProperty.js +0 -2
- package/dist/client/models/DisplaySetting.d.ts +0 -22
- package/dist/client/models/DisplaySetting.js +0 -2
- package/dist/client/models/DisplaySettingChoice.d.ts +0 -13
- package/dist/client/models/DisplaySettingChoice.js +0 -2
- package/dist/client/models/DisplayTemplate.d.ts +0 -49
- package/dist/client/models/DisplayTemplate.js +0 -2
- package/dist/client/models/DisplayTemplatePage.d.ts +0 -19
- package/dist/client/models/DisplayTemplatePage.js +0 -2
- package/dist/client/models/DoubleEnumerationSettings.d.ts +0 -10
- package/dist/client/models/DoubleEnumerationSettings.js +0 -2
- package/dist/client/models/DoubleEnumerationValue.d.ts +0 -13
- package/dist/client/models/DoubleEnumerationValue.js +0 -2
- package/dist/client/models/FloatListItem.d.ts +0 -16
- package/dist/client/models/FloatListItem.js +0 -2
- package/dist/client/models/FloatProperty.d.ts +0 -16
- package/dist/client/models/FloatProperty.js +0 -2
- package/dist/client/models/ImageDescriptor.d.ts +0 -17
- package/dist/client/models/ImageDescriptor.js +0 -2
- package/dist/client/models/IndexingType.d.ts +0 -8
- package/dist/client/models/IndexingType.js +0 -16
- package/dist/client/models/Int32EnumerationSettings.d.ts +0 -10
- package/dist/client/models/Int32EnumerationSettings.js +0 -2
- package/dist/client/models/Int32EnumerationValue.d.ts +0 -13
- package/dist/client/models/Int32EnumerationValue.js +0 -2
- package/dist/client/models/IntegerListItem.d.ts +0 -16
- package/dist/client/models/IntegerListItem.js +0 -2
- package/dist/client/models/IntegerProperty.d.ts +0 -16
- package/dist/client/models/IntegerProperty.js +0 -2
- package/dist/client/models/JsonStringProperty.d.ts +0 -5
- package/dist/client/models/JsonStringProperty.js +0 -2
- package/dist/client/models/ListProperty.d.ts +0 -26
- package/dist/client/models/ListProperty.js +0 -2
- package/dist/client/models/ListPropertyItem.d.ts +0 -11
- package/dist/client/models/ListPropertyItem.js +0 -2
- package/dist/client/models/LocaleStatus.d.ts +0 -7
- package/dist/client/models/LocaleStatus.js +0 -15
- package/dist/client/models/OauthToken.d.ts +0 -18
- package/dist/client/models/OauthToken.js +0 -2
- package/dist/client/models/OauthTokenError.d.ts +0 -13
- package/dist/client/models/OauthTokenError.js +0 -2
- package/dist/client/models/OauthTokenRequest.d.ts +0 -21
- package/dist/client/models/OauthTokenRequest.js +0 -2
- package/dist/client/models/ProblemDetails.d.ts +0 -1
- package/dist/client/models/ProblemDetails.js +0 -2
- package/dist/client/models/PropertyDataType.d.ts +0 -18
- package/dist/client/models/PropertyDataType.js +0 -26
- package/dist/client/models/PropertyFormat.d.ts +0 -37
- package/dist/client/models/PropertyFormat.js +0 -2
- package/dist/client/models/PropertyFormatPage.d.ts +0 -19
- package/dist/client/models/PropertyFormatPage.js +0 -2
- package/dist/client/models/PropertyGroup.d.ts +0 -21
- package/dist/client/models/PropertyGroup.js +0 -2
- package/dist/client/models/PropertyGroupPage.d.ts +0 -19
- package/dist/client/models/PropertyGroupPage.js +0 -2
- package/dist/client/models/StringEnumerationSettings.d.ts +0 -10
- package/dist/client/models/StringEnumerationSettings.js +0 -2
- package/dist/client/models/StringEnumerationValue.d.ts +0 -13
- package/dist/client/models/StringEnumerationValue.js +0 -2
- package/dist/client/models/StringListItem.d.ts +0 -20
- package/dist/client/models/StringListItem.js +0 -2
- package/dist/client/models/StringProperty.d.ts +0 -20
- package/dist/client/models/StringProperty.js +0 -2
- package/dist/client/models/UrlListItem.d.ts +0 -5
- package/dist/client/models/UrlListItem.js +0 -2
- package/dist/client/models/UrlProperty.d.ts +0 -5
- package/dist/client/models/UrlProperty.js +0 -2
- package/dist/client/models/VersionStatus.d.ts +0 -12
- package/dist/client/models/VersionStatus.js +0 -20
- package/dist/client/services/ChangesetsService.d.ts +0 -105
- package/dist/client/services/ChangesetsService.js +0 -239
- package/dist/client/services/ContentService.d.ts +0 -172
- package/dist/client/services/ContentService.js +0 -409
- package/dist/client/services/ContentTypesService.d.ts +0 -66
- package/dist/client/services/ContentTypesService.js +0 -149
- package/dist/client/services/DisplayTemplatesService.d.ts +0 -60
- package/dist/client/services/DisplayTemplatesService.js +0 -135
- package/dist/client/services/OauthService.d.ts +0 -17
- package/dist/client/services/OauthService.js +0 -28
- package/dist/client/services/PropertyFormatsService.d.ts +0 -26
- package/dist/client/services/PropertyFormatsService.js +0 -53
- package/dist/client/services/PropertyGroupsService.d.ts +0 -61
- package/dist/client/services/PropertyGroupsService.js +0 -135
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.getUrl = exports.defaultPathSerializer = exports.PATH_PARAM_RE = void 0;
|
|
5
|
+
exports.getValidRequestBody = getValidRequestBody;
|
|
6
|
+
const pathSerializer_gen_1 = require("./pathSerializer.gen");
|
|
7
|
+
exports.PATH_PARAM_RE = /\{[^{}]+\}/g;
|
|
8
|
+
const defaultPathSerializer = ({ path, url: _url }) => {
|
|
9
|
+
let url = _url;
|
|
10
|
+
const matches = _url.match(exports.PATH_PARAM_RE);
|
|
11
|
+
if (matches) {
|
|
12
|
+
for (const match of matches) {
|
|
13
|
+
let explode = false;
|
|
14
|
+
let name = match.substring(1, match.length - 1);
|
|
15
|
+
let style = 'simple';
|
|
16
|
+
if (name.endsWith('*')) {
|
|
17
|
+
explode = true;
|
|
18
|
+
name = name.substring(0, name.length - 1);
|
|
19
|
+
}
|
|
20
|
+
if (name.startsWith('.')) {
|
|
21
|
+
name = name.substring(1);
|
|
22
|
+
style = 'label';
|
|
23
|
+
}
|
|
24
|
+
else if (name.startsWith(';')) {
|
|
25
|
+
name = name.substring(1);
|
|
26
|
+
style = 'matrix';
|
|
27
|
+
}
|
|
28
|
+
const value = path[name];
|
|
29
|
+
if (value === undefined || value === null) {
|
|
30
|
+
continue;
|
|
31
|
+
}
|
|
32
|
+
if (Array.isArray(value)) {
|
|
33
|
+
url = url.replace(match, (0, pathSerializer_gen_1.serializeArrayParam)({ explode, name, style, value }));
|
|
34
|
+
continue;
|
|
35
|
+
}
|
|
36
|
+
if (typeof value === 'object') {
|
|
37
|
+
url = url.replace(match, (0, pathSerializer_gen_1.serializeObjectParam)({
|
|
38
|
+
explode,
|
|
39
|
+
name,
|
|
40
|
+
style,
|
|
41
|
+
value: value,
|
|
42
|
+
valueOnly: true,
|
|
43
|
+
}));
|
|
44
|
+
continue;
|
|
45
|
+
}
|
|
46
|
+
if (style === 'matrix') {
|
|
47
|
+
url = url.replace(match, `;${(0, pathSerializer_gen_1.serializePrimitiveParam)({
|
|
48
|
+
name,
|
|
49
|
+
value: value,
|
|
50
|
+
})}`);
|
|
51
|
+
continue;
|
|
52
|
+
}
|
|
53
|
+
const replaceValue = encodeURIComponent(style === 'label' ? `.${value}` : value);
|
|
54
|
+
url = url.replace(match, replaceValue);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
return url;
|
|
58
|
+
};
|
|
59
|
+
exports.defaultPathSerializer = defaultPathSerializer;
|
|
60
|
+
const getUrl = ({ baseUrl, path, query, querySerializer, url: _url, }) => {
|
|
61
|
+
const pathUrl = _url.startsWith('/') ? _url : `/${_url}`;
|
|
62
|
+
let url = (baseUrl ?? '') + pathUrl;
|
|
63
|
+
if (path) {
|
|
64
|
+
url = (0, exports.defaultPathSerializer)({ path, url });
|
|
65
|
+
}
|
|
66
|
+
let search = query ? querySerializer(query) : '';
|
|
67
|
+
if (search.startsWith('?')) {
|
|
68
|
+
search = search.substring(1);
|
|
69
|
+
}
|
|
70
|
+
if (search) {
|
|
71
|
+
url += `?${search}`;
|
|
72
|
+
}
|
|
73
|
+
return url;
|
|
74
|
+
};
|
|
75
|
+
exports.getUrl = getUrl;
|
|
76
|
+
function getValidRequestBody(options) {
|
|
77
|
+
const hasBody = options.body !== undefined;
|
|
78
|
+
const isSerializedBody = hasBody && options.bodySerializer;
|
|
79
|
+
if (isSerializedBody) {
|
|
80
|
+
if ('serializedBody' in options) {
|
|
81
|
+
const hasSerializedBody = options.serializedBody !== undefined && options.serializedBody !== '';
|
|
82
|
+
return hasSerializedBody ? options.serializedBody : null;
|
|
83
|
+
}
|
|
84
|
+
// not all clients implement a serializedBody property (i.e. client-axios)
|
|
85
|
+
return options.body !== '' ? options.body : null;
|
|
86
|
+
}
|
|
87
|
+
// plain/text body
|
|
88
|
+
if (hasBody) {
|
|
89
|
+
return options.body;
|
|
90
|
+
}
|
|
91
|
+
// no body was provided
|
|
92
|
+
return undefined;
|
|
93
|
+
}
|
package/dist/client/index.d.ts
CHANGED
|
@@ -1,78 +1,4 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export { OpenAPI } from './core/OpenAPI';
|
|
6
|
-
export type { OpenAPIConfig } from './core/OpenAPI';
|
|
7
|
-
export type { BinaryProperty } from './models/BinaryProperty';
|
|
8
|
-
export type { BooleanProperty } from './models/BooleanProperty';
|
|
9
|
-
export type { Changeset } from './models/Changeset';
|
|
10
|
-
export type { ChangesetItem } from './models/ChangesetItem';
|
|
11
|
-
export type { ChangesetItemPage } from './models/ChangesetItemPage';
|
|
12
|
-
export type { ChangesetPage } from './models/ChangesetPage';
|
|
13
|
-
export type { ComponentListItem } from './models/ComponentListItem';
|
|
14
|
-
export type { ComponentProperty } from './models/ComponentProperty';
|
|
15
|
-
export { CompositionBehavior } from './models/CompositionBehavior';
|
|
16
|
-
export { ContentBaseType } from './models/ContentBaseType';
|
|
17
|
-
export type { ContentComponent } from './models/ContentComponent';
|
|
18
|
-
export type { ContentItem } from './models/ContentItem';
|
|
19
|
-
export type { ContentItemListWithContentTypes } from './models/ContentItemListWithContentTypes';
|
|
20
|
-
export type { ContentItemPage } from './models/ContentItemPage';
|
|
21
|
-
export type { ContentItemWithContentTypes } from './models/ContentItemWithContentTypes';
|
|
22
|
-
export type { ContentListItem } from './models/ContentListItem';
|
|
23
|
-
export type { ContentLocaleInfo } from './models/ContentLocaleInfo';
|
|
24
|
-
export type { ContentMetadata } from './models/ContentMetadata';
|
|
25
|
-
export type { ContentMetadataPage } from './models/ContentMetadataPage';
|
|
26
|
-
export type { ContentProperty } from './models/ContentProperty';
|
|
27
|
-
export type { ContentReference } from './models/ContentReference';
|
|
28
|
-
export type { ContentReferenceListItem } from './models/ContentReferenceListItem';
|
|
29
|
-
export type { ContentReferenceProperty } from './models/ContentReferenceProperty';
|
|
30
|
-
export type { ContentType } from './models/ContentType';
|
|
31
|
-
export { ContentTypeFeature } from './models/ContentTypeFeature';
|
|
32
|
-
export type { ContentTypePage } from './models/ContentTypePage';
|
|
33
|
-
export type { ContentTypeProperty } from './models/ContentTypeProperty';
|
|
34
|
-
export { ContentTypeUsage } from './models/ContentTypeUsage';
|
|
35
|
-
export type { CopyContentOptions } from './models/CopyContentOptions';
|
|
36
|
-
export type { DateTimeListItem } from './models/DateTimeListItem';
|
|
37
|
-
export type { DateTimeProperty } from './models/DateTimeProperty';
|
|
38
|
-
export type { DisplaySetting } from './models/DisplaySetting';
|
|
39
|
-
export type { DisplaySettingChoice } from './models/DisplaySettingChoice';
|
|
40
|
-
export type { DisplayTemplate } from './models/DisplayTemplate';
|
|
41
|
-
export type { DisplayTemplatePage } from './models/DisplayTemplatePage';
|
|
42
|
-
export type { DoubleEnumerationSettings } from './models/DoubleEnumerationSettings';
|
|
43
|
-
export type { DoubleEnumerationValue } from './models/DoubleEnumerationValue';
|
|
44
|
-
export type { FloatListItem } from './models/FloatListItem';
|
|
45
|
-
export type { FloatProperty } from './models/FloatProperty';
|
|
46
|
-
export type { ImageDescriptor } from './models/ImageDescriptor';
|
|
47
|
-
export { IndexingType } from './models/IndexingType';
|
|
48
|
-
export type { Int32EnumerationSettings } from './models/Int32EnumerationSettings';
|
|
49
|
-
export type { Int32EnumerationValue } from './models/Int32EnumerationValue';
|
|
50
|
-
export type { IntegerListItem } from './models/IntegerListItem';
|
|
51
|
-
export type { IntegerProperty } from './models/IntegerProperty';
|
|
52
|
-
export type { JsonStringProperty } from './models/JsonStringProperty';
|
|
53
|
-
export type { ListProperty } from './models/ListProperty';
|
|
54
|
-
export type { ListPropertyItem } from './models/ListPropertyItem';
|
|
55
|
-
export { LocaleStatus } from './models/LocaleStatus';
|
|
56
|
-
export type { OauthToken } from './models/OauthToken';
|
|
57
|
-
export type { OauthTokenError } from './models/OauthTokenError';
|
|
58
|
-
export type { OauthTokenRequest } from './models/OauthTokenRequest';
|
|
59
|
-
export type { ProblemDetails } from './models/ProblemDetails';
|
|
60
|
-
export { PropertyDataType } from './models/PropertyDataType';
|
|
61
|
-
export type { PropertyFormat } from './models/PropertyFormat';
|
|
62
|
-
export type { PropertyFormatPage } from './models/PropertyFormatPage';
|
|
63
|
-
export type { PropertyGroup } from './models/PropertyGroup';
|
|
64
|
-
export type { PropertyGroupPage } from './models/PropertyGroupPage';
|
|
65
|
-
export type { StringEnumerationSettings } from './models/StringEnumerationSettings';
|
|
66
|
-
export type { StringEnumerationValue } from './models/StringEnumerationValue';
|
|
67
|
-
export type { StringListItem } from './models/StringListItem';
|
|
68
|
-
export type { StringProperty } from './models/StringProperty';
|
|
69
|
-
export type { UrlListItem } from './models/UrlListItem';
|
|
70
|
-
export type { UrlProperty } from './models/UrlProperty';
|
|
71
|
-
export { VersionStatus } from './models/VersionStatus';
|
|
72
|
-
export { ChangesetsService } from './services/ChangesetsService';
|
|
73
|
-
export { ContentService } from './services/ContentService';
|
|
74
|
-
export { ContentTypesService } from './services/ContentTypesService';
|
|
75
|
-
export { DisplayTemplatesService } from './services/DisplayTemplatesService';
|
|
76
|
-
export { OauthService } from './services/OauthService';
|
|
77
|
-
export { PropertyFormatsService } from './services/PropertyFormatsService';
|
|
78
|
-
export { PropertyGroupsService } from './services/PropertyGroupsService';
|
|
1
|
+
export type * from './types.gen';
|
|
2
|
+
export * from './client.gen';
|
|
3
|
+
export * from './transformers.gen';
|
|
4
|
+
export * from './sdk.gen';
|
package/dist/client/index.js
CHANGED
|
@@ -1,48 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
+
};
|
|
2
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
/* tslint:disable */
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
var CmsIntegrationApiClient_1 = require("./CmsIntegrationApiClient");
|
|
9
|
-
Object.defineProperty(exports, "CmsIntegrationApiClient", { enumerable: true, get: function () { return CmsIntegrationApiClient_1.CmsIntegrationApiClient; } });
|
|
10
|
-
var ApiError_1 = require("./core/ApiError");
|
|
11
|
-
Object.defineProperty(exports, "ApiError", { enumerable: true, get: function () { return ApiError_1.ApiError; } });
|
|
12
|
-
var BaseHttpRequest_1 = require("./core/BaseHttpRequest");
|
|
13
|
-
Object.defineProperty(exports, "BaseHttpRequest", { enumerable: true, get: function () { return BaseHttpRequest_1.BaseHttpRequest; } });
|
|
14
|
-
var CancelablePromise_1 = require("./core/CancelablePromise");
|
|
15
|
-
Object.defineProperty(exports, "CancelablePromise", { enumerable: true, get: function () { return CancelablePromise_1.CancelablePromise; } });
|
|
16
|
-
Object.defineProperty(exports, "CancelError", { enumerable: true, get: function () { return CancelablePromise_1.CancelError; } });
|
|
17
|
-
var OpenAPI_1 = require("./core/OpenAPI");
|
|
18
|
-
Object.defineProperty(exports, "OpenAPI", { enumerable: true, get: function () { return OpenAPI_1.OpenAPI; } });
|
|
19
|
-
var CompositionBehavior_1 = require("./models/CompositionBehavior");
|
|
20
|
-
Object.defineProperty(exports, "CompositionBehavior", { enumerable: true, get: function () { return CompositionBehavior_1.CompositionBehavior; } });
|
|
21
|
-
var ContentBaseType_1 = require("./models/ContentBaseType");
|
|
22
|
-
Object.defineProperty(exports, "ContentBaseType", { enumerable: true, get: function () { return ContentBaseType_1.ContentBaseType; } });
|
|
23
|
-
var ContentTypeFeature_1 = require("./models/ContentTypeFeature");
|
|
24
|
-
Object.defineProperty(exports, "ContentTypeFeature", { enumerable: true, get: function () { return ContentTypeFeature_1.ContentTypeFeature; } });
|
|
25
|
-
var ContentTypeUsage_1 = require("./models/ContentTypeUsage");
|
|
26
|
-
Object.defineProperty(exports, "ContentTypeUsage", { enumerable: true, get: function () { return ContentTypeUsage_1.ContentTypeUsage; } });
|
|
27
|
-
var IndexingType_1 = require("./models/IndexingType");
|
|
28
|
-
Object.defineProperty(exports, "IndexingType", { enumerable: true, get: function () { return IndexingType_1.IndexingType; } });
|
|
29
|
-
var LocaleStatus_1 = require("./models/LocaleStatus");
|
|
30
|
-
Object.defineProperty(exports, "LocaleStatus", { enumerable: true, get: function () { return LocaleStatus_1.LocaleStatus; } });
|
|
31
|
-
var PropertyDataType_1 = require("./models/PropertyDataType");
|
|
32
|
-
Object.defineProperty(exports, "PropertyDataType", { enumerable: true, get: function () { return PropertyDataType_1.PropertyDataType; } });
|
|
33
|
-
var VersionStatus_1 = require("./models/VersionStatus");
|
|
34
|
-
Object.defineProperty(exports, "VersionStatus", { enumerable: true, get: function () { return VersionStatus_1.VersionStatus; } });
|
|
35
|
-
var ChangesetsService_1 = require("./services/ChangesetsService");
|
|
36
|
-
Object.defineProperty(exports, "ChangesetsService", { enumerable: true, get: function () { return ChangesetsService_1.ChangesetsService; } });
|
|
37
|
-
var ContentService_1 = require("./services/ContentService");
|
|
38
|
-
Object.defineProperty(exports, "ContentService", { enumerable: true, get: function () { return ContentService_1.ContentService; } });
|
|
39
|
-
var ContentTypesService_1 = require("./services/ContentTypesService");
|
|
40
|
-
Object.defineProperty(exports, "ContentTypesService", { enumerable: true, get: function () { return ContentTypesService_1.ContentTypesService; } });
|
|
41
|
-
var DisplayTemplatesService_1 = require("./services/DisplayTemplatesService");
|
|
42
|
-
Object.defineProperty(exports, "DisplayTemplatesService", { enumerable: true, get: function () { return DisplayTemplatesService_1.DisplayTemplatesService; } });
|
|
43
|
-
var OauthService_1 = require("./services/OauthService");
|
|
44
|
-
Object.defineProperty(exports, "OauthService", { enumerable: true, get: function () { return OauthService_1.OauthService; } });
|
|
45
|
-
var PropertyFormatsService_1 = require("./services/PropertyFormatsService");
|
|
46
|
-
Object.defineProperty(exports, "PropertyFormatsService", { enumerable: true, get: function () { return PropertyFormatsService_1.PropertyFormatsService; } });
|
|
47
|
-
var PropertyGroupsService_1 = require("./services/PropertyGroupsService");
|
|
48
|
-
Object.defineProperty(exports, "PropertyGroupsService", { enumerable: true, get: function () { return PropertyGroupsService_1.PropertyGroupsService; } });
|
|
18
|
+
__exportStar(require("./client.gen"), exports);
|
|
19
|
+
__exportStar(require("./transformers.gen"), exports);
|
|
20
|
+
__exportStar(require("./sdk.gen"), exports);
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import type { Client, Options as Options2, TDataShape } from './client';
|
|
2
|
+
import type { ContentTypesCreateData, ContentTypesCreateErrors, ContentTypesCreateResponses, ContentTypesDeleteData, ContentTypesDeleteErrors, ContentTypesDeleteResponses, ContentTypesGetData, ContentTypesGetErrors, ContentTypesGetResponses, ContentTypesListData, ContentTypesListErrors, ContentTypesListResponses, ContentTypesPatchData, ContentTypesPatchErrors, ContentTypesPatchResponses, DisplayTemplatesCreateData, DisplayTemplatesCreateErrors, DisplayTemplatesCreateResponses, DisplayTemplatesDeleteData, DisplayTemplatesDeleteErrors, DisplayTemplatesDeleteResponses, DisplayTemplatesGetData, DisplayTemplatesGetErrors, DisplayTemplatesGetResponses, DisplayTemplatesListData, DisplayTemplatesListErrors, DisplayTemplatesListResponses, DisplayTemplatesPatchData, DisplayTemplatesPatchErrors, DisplayTemplatesPatchResponses, PropertyFormatsGetData, PropertyFormatsGetErrors, PropertyFormatsGetResponses, PropertyFormatsListData, PropertyFormatsListErrors, PropertyFormatsListResponses, PropertyGroupsCreateData, PropertyGroupsCreateErrors, PropertyGroupsCreateResponses, PropertyGroupsDeleteData, PropertyGroupsDeleteErrors, PropertyGroupsDeleteResponses, PropertyGroupsGetData, PropertyGroupsGetErrors, PropertyGroupsGetResponses, PropertyGroupsListData, PropertyGroupsListErrors, PropertyGroupsListResponses, PropertyGroupsPatchData, PropertyGroupsPatchErrors, PropertyGroupsPatchResponses } from './types.gen';
|
|
3
|
+
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {
|
|
4
|
+
/**
|
|
5
|
+
* You can provide a client instance returned by `createClient()` instead of
|
|
6
|
+
* individual options. This might be also useful if you want to implement a
|
|
7
|
+
* custom client.
|
|
8
|
+
*/
|
|
9
|
+
client?: Client;
|
|
10
|
+
/**
|
|
11
|
+
* You can pass arbitrary values through the `meta` object. This can be
|
|
12
|
+
* used to access values that aren't defined as part of the SDK function.
|
|
13
|
+
*/
|
|
14
|
+
meta?: Record<string, unknown>;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* List content types
|
|
18
|
+
*
|
|
19
|
+
* List content types using the provided parameters.
|
|
20
|
+
*/
|
|
21
|
+
export declare const contentTypesList: <ThrowOnError extends boolean = false>(options?: Options<ContentTypesListData, ThrowOnError>) => import("./client").RequestResult<ContentTypesListResponses, ContentTypesListErrors, ThrowOnError, "fields">;
|
|
22
|
+
/**
|
|
23
|
+
* Create content type
|
|
24
|
+
*
|
|
25
|
+
* Create a new content type.
|
|
26
|
+
*/
|
|
27
|
+
export declare const contentTypesCreate: <ThrowOnError extends boolean = false>(options: Options<ContentTypesCreateData, ThrowOnError>) => import("./client").RequestResult<ContentTypesCreateResponses, ContentTypesCreateErrors, ThrowOnError, "fields">;
|
|
28
|
+
/**
|
|
29
|
+
* Delete content type
|
|
30
|
+
*
|
|
31
|
+
* Deletes the content type with the provided key. If a content type with the provided key does not exist an error is returned.
|
|
32
|
+
*/
|
|
33
|
+
export declare const contentTypesDelete: <ThrowOnError extends boolean = false>(options: Options<ContentTypesDeleteData, ThrowOnError>) => import("./client").RequestResult<ContentTypesDeleteResponses, ContentTypesDeleteErrors, ThrowOnError, "fields">;
|
|
34
|
+
/**
|
|
35
|
+
* Get content type
|
|
36
|
+
*
|
|
37
|
+
* Get the content type with the provided key.
|
|
38
|
+
*/
|
|
39
|
+
export declare const contentTypesGet: <ThrowOnError extends boolean = false>(options: Options<ContentTypesGetData, ThrowOnError>) => import("./client").RequestResult<ContentTypesGetResponses, ContentTypesGetErrors, ThrowOnError, "fields">;
|
|
40
|
+
/**
|
|
41
|
+
* Patch content type
|
|
42
|
+
*
|
|
43
|
+
* Patch an existing content type. If a content type with the provided key does not exist an error is returned.
|
|
44
|
+
*/
|
|
45
|
+
export declare const contentTypesPatch: <ThrowOnError extends boolean = false>(options: Options<ContentTypesPatchData, ThrowOnError>) => import("./client").RequestResult<ContentTypesPatchResponses, ContentTypesPatchErrors, ThrowOnError, "fields">;
|
|
46
|
+
/**
|
|
47
|
+
* List display templates
|
|
48
|
+
*
|
|
49
|
+
* List display templates using the provided parameters.
|
|
50
|
+
*/
|
|
51
|
+
export declare const displayTemplatesList: <ThrowOnError extends boolean = false>(options?: Options<DisplayTemplatesListData, ThrowOnError>) => import("./client").RequestResult<DisplayTemplatesListResponses, DisplayTemplatesListErrors, ThrowOnError, "fields">;
|
|
52
|
+
/**
|
|
53
|
+
* Create display template
|
|
54
|
+
*
|
|
55
|
+
* Create a new display template.
|
|
56
|
+
*/
|
|
57
|
+
export declare const displayTemplatesCreate: <ThrowOnError extends boolean = false>(options: Options<DisplayTemplatesCreateData, ThrowOnError>) => import("./client").RequestResult<DisplayTemplatesCreateResponses, DisplayTemplatesCreateErrors, ThrowOnError, "fields">;
|
|
58
|
+
/**
|
|
59
|
+
* Delete display template
|
|
60
|
+
*
|
|
61
|
+
* Deletes the display template with the provided key.
|
|
62
|
+
*/
|
|
63
|
+
export declare const displayTemplatesDelete: <ThrowOnError extends boolean = false>(options: Options<DisplayTemplatesDeleteData, ThrowOnError>) => import("./client").RequestResult<DisplayTemplatesDeleteResponses, DisplayTemplatesDeleteErrors, ThrowOnError, "fields">;
|
|
64
|
+
/**
|
|
65
|
+
* Get display template
|
|
66
|
+
*
|
|
67
|
+
* Get the display template with the provided key.
|
|
68
|
+
*/
|
|
69
|
+
export declare const displayTemplatesGet: <ThrowOnError extends boolean = false>(options: Options<DisplayTemplatesGetData, ThrowOnError>) => import("./client").RequestResult<DisplayTemplatesGetResponses, DisplayTemplatesGetErrors, ThrowOnError, "fields">;
|
|
70
|
+
/**
|
|
71
|
+
* Patch display template
|
|
72
|
+
*
|
|
73
|
+
* Patch an existing display template.
|
|
74
|
+
*/
|
|
75
|
+
export declare const displayTemplatesPatch: <ThrowOnError extends boolean = false>(options: Options<DisplayTemplatesPatchData, ThrowOnError>) => import("./client").RequestResult<DisplayTemplatesPatchResponses, DisplayTemplatesPatchErrors, ThrowOnError, "fields">;
|
|
76
|
+
/**
|
|
77
|
+
* List property formats
|
|
78
|
+
*
|
|
79
|
+
* List all property formats using the provided options.
|
|
80
|
+
*/
|
|
81
|
+
export declare const propertyFormatsList: <ThrowOnError extends boolean = false>(options?: Options<PropertyFormatsListData, ThrowOnError>) => import("./client").RequestResult<PropertyFormatsListResponses, PropertyFormatsListErrors, ThrowOnError, "fields">;
|
|
82
|
+
/**
|
|
83
|
+
* Get property format
|
|
84
|
+
*
|
|
85
|
+
* Get the property format with the provided key.
|
|
86
|
+
*/
|
|
87
|
+
export declare const propertyFormatsGet: <ThrowOnError extends boolean = false>(options: Options<PropertyFormatsGetData, ThrowOnError>) => import("./client").RequestResult<PropertyFormatsGetResponses, PropertyFormatsGetErrors, ThrowOnError, "fields">;
|
|
88
|
+
/**
|
|
89
|
+
* List property groups
|
|
90
|
+
*
|
|
91
|
+
* List property groups using the provided options.
|
|
92
|
+
*/
|
|
93
|
+
export declare const propertyGroupsList: <ThrowOnError extends boolean = false>(options?: Options<PropertyGroupsListData, ThrowOnError>) => import("./client").RequestResult<PropertyGroupsListResponses, PropertyGroupsListErrors, ThrowOnError, "fields">;
|
|
94
|
+
/**
|
|
95
|
+
* Create property group
|
|
96
|
+
*
|
|
97
|
+
* Create a new property group.
|
|
98
|
+
*/
|
|
99
|
+
export declare const propertyGroupsCreate: <ThrowOnError extends boolean = false>(options: Options<PropertyGroupsCreateData, ThrowOnError>) => import("./client").RequestResult<PropertyGroupsCreateResponses, PropertyGroupsCreateErrors, ThrowOnError, "fields">;
|
|
100
|
+
/**
|
|
101
|
+
* Delete property group
|
|
102
|
+
*
|
|
103
|
+
* Deletes the property group with the provided key.
|
|
104
|
+
*/
|
|
105
|
+
export declare const propertyGroupsDelete: <ThrowOnError extends boolean = false>(options: Options<PropertyGroupsDeleteData, ThrowOnError>) => import("./client").RequestResult<PropertyGroupsDeleteResponses, PropertyGroupsDeleteErrors, ThrowOnError, "fields">;
|
|
106
|
+
/**
|
|
107
|
+
* Get property group
|
|
108
|
+
*
|
|
109
|
+
* Get the property group with the provided key.
|
|
110
|
+
*/
|
|
111
|
+
export declare const propertyGroupsGet: <ThrowOnError extends boolean = false>(options: Options<PropertyGroupsGetData, ThrowOnError>) => import("./client").RequestResult<PropertyGroupsGetResponses, PropertyGroupsGetErrors, ThrowOnError, "fields">;
|
|
112
|
+
/**
|
|
113
|
+
* Patch property group
|
|
114
|
+
*
|
|
115
|
+
* Patch an existing property group.
|
|
116
|
+
*/
|
|
117
|
+
export declare const propertyGroupsPatch: <ThrowOnError extends boolean = false>(options: Options<PropertyGroupsPatchData, ThrowOnError>) => import("./client").RequestResult<PropertyGroupsPatchResponses, PropertyGroupsPatchErrors, ThrowOnError, "fields">;
|
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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 = void 0;
|
|
5
|
+
const client_gen_1 = require("./client.gen");
|
|
6
|
+
const transformers_gen_1 = require("./transformers.gen");
|
|
7
|
+
/**
|
|
8
|
+
* List content types
|
|
9
|
+
*
|
|
10
|
+
* List content types using the provided parameters.
|
|
11
|
+
*/
|
|
12
|
+
const contentTypesList = (options) => {
|
|
13
|
+
return (options?.client ?? client_gen_1.client).get({
|
|
14
|
+
responseTransformer: transformers_gen_1.contentTypesListResponseTransformer,
|
|
15
|
+
url: '/contenttypes',
|
|
16
|
+
...options
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
exports.contentTypesList = contentTypesList;
|
|
20
|
+
/**
|
|
21
|
+
* Create content type
|
|
22
|
+
*
|
|
23
|
+
* Create a new content type.
|
|
24
|
+
*/
|
|
25
|
+
const contentTypesCreate = (options) => {
|
|
26
|
+
return (options.client ?? client_gen_1.client).post({
|
|
27
|
+
responseTransformer: transformers_gen_1.contentTypesCreateResponseTransformer,
|
|
28
|
+
url: '/contenttypes',
|
|
29
|
+
...options,
|
|
30
|
+
headers: {
|
|
31
|
+
'Content-Type': 'application/json',
|
|
32
|
+
...options.headers
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
exports.contentTypesCreate = contentTypesCreate;
|
|
37
|
+
/**
|
|
38
|
+
* Delete content type
|
|
39
|
+
*
|
|
40
|
+
* Deletes the content type with the provided key. If a content type with the provided key does not exist an error is returned.
|
|
41
|
+
*/
|
|
42
|
+
const contentTypesDelete = (options) => {
|
|
43
|
+
return (options.client ?? client_gen_1.client).delete({
|
|
44
|
+
responseTransformer: transformers_gen_1.contentTypesDeleteResponseTransformer,
|
|
45
|
+
url: '/contenttypes/{key}',
|
|
46
|
+
...options
|
|
47
|
+
});
|
|
48
|
+
};
|
|
49
|
+
exports.contentTypesDelete = contentTypesDelete;
|
|
50
|
+
/**
|
|
51
|
+
* Get content type
|
|
52
|
+
*
|
|
53
|
+
* Get the content type with the provided key.
|
|
54
|
+
*/
|
|
55
|
+
const contentTypesGet = (options) => {
|
|
56
|
+
return (options.client ?? client_gen_1.client).get({
|
|
57
|
+
responseTransformer: transformers_gen_1.contentTypesGetResponseTransformer,
|
|
58
|
+
url: '/contenttypes/{key}',
|
|
59
|
+
...options
|
|
60
|
+
});
|
|
61
|
+
};
|
|
62
|
+
exports.contentTypesGet = contentTypesGet;
|
|
63
|
+
/**
|
|
64
|
+
* Patch content type
|
|
65
|
+
*
|
|
66
|
+
* Patch an existing content type. If a content type with the provided key does not exist an error is returned.
|
|
67
|
+
*/
|
|
68
|
+
const contentTypesPatch = (options) => {
|
|
69
|
+
return (options.client ?? client_gen_1.client).patch({
|
|
70
|
+
responseTransformer: transformers_gen_1.contentTypesPatchResponseTransformer,
|
|
71
|
+
url: '/contenttypes/{key}',
|
|
72
|
+
...options,
|
|
73
|
+
headers: {
|
|
74
|
+
'Content-Type': 'application/merge-patch+json',
|
|
75
|
+
...options.headers
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
};
|
|
79
|
+
exports.contentTypesPatch = contentTypesPatch;
|
|
80
|
+
/**
|
|
81
|
+
* List display templates
|
|
82
|
+
*
|
|
83
|
+
* List display templates using the provided parameters.
|
|
84
|
+
*/
|
|
85
|
+
const displayTemplatesList = (options) => {
|
|
86
|
+
return (options?.client ?? client_gen_1.client).get({
|
|
87
|
+
responseTransformer: transformers_gen_1.displayTemplatesListResponseTransformer,
|
|
88
|
+
url: '/displaytemplates',
|
|
89
|
+
...options
|
|
90
|
+
});
|
|
91
|
+
};
|
|
92
|
+
exports.displayTemplatesList = displayTemplatesList;
|
|
93
|
+
/**
|
|
94
|
+
* Create display template
|
|
95
|
+
*
|
|
96
|
+
* Create a new display template.
|
|
97
|
+
*/
|
|
98
|
+
const displayTemplatesCreate = (options) => {
|
|
99
|
+
return (options.client ?? client_gen_1.client).post({
|
|
100
|
+
responseTransformer: transformers_gen_1.displayTemplatesCreateResponseTransformer,
|
|
101
|
+
url: '/displaytemplates',
|
|
102
|
+
...options,
|
|
103
|
+
headers: {
|
|
104
|
+
'Content-Type': 'application/json',
|
|
105
|
+
...options.headers
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
};
|
|
109
|
+
exports.displayTemplatesCreate = displayTemplatesCreate;
|
|
110
|
+
/**
|
|
111
|
+
* Delete display template
|
|
112
|
+
*
|
|
113
|
+
* Deletes the display template with the provided key.
|
|
114
|
+
*/
|
|
115
|
+
const displayTemplatesDelete = (options) => {
|
|
116
|
+
return (options.client ?? client_gen_1.client).delete({
|
|
117
|
+
responseTransformer: transformers_gen_1.displayTemplatesDeleteResponseTransformer,
|
|
118
|
+
url: '/displaytemplates/{key}',
|
|
119
|
+
...options
|
|
120
|
+
});
|
|
121
|
+
};
|
|
122
|
+
exports.displayTemplatesDelete = displayTemplatesDelete;
|
|
123
|
+
/**
|
|
124
|
+
* Get display template
|
|
125
|
+
*
|
|
126
|
+
* Get the display template with the provided key.
|
|
127
|
+
*/
|
|
128
|
+
const displayTemplatesGet = (options) => {
|
|
129
|
+
return (options.client ?? client_gen_1.client).get({
|
|
130
|
+
responseTransformer: transformers_gen_1.displayTemplatesGetResponseTransformer,
|
|
131
|
+
url: '/displaytemplates/{key}',
|
|
132
|
+
...options
|
|
133
|
+
});
|
|
134
|
+
};
|
|
135
|
+
exports.displayTemplatesGet = displayTemplatesGet;
|
|
136
|
+
/**
|
|
137
|
+
* Patch display template
|
|
138
|
+
*
|
|
139
|
+
* Patch an existing display template.
|
|
140
|
+
*/
|
|
141
|
+
const displayTemplatesPatch = (options) => {
|
|
142
|
+
return (options.client ?? client_gen_1.client).patch({
|
|
143
|
+
responseTransformer: transformers_gen_1.displayTemplatesPatchResponseTransformer,
|
|
144
|
+
url: '/displaytemplates/{key}',
|
|
145
|
+
...options,
|
|
146
|
+
headers: {
|
|
147
|
+
'Content-Type': 'application/merge-patch+json',
|
|
148
|
+
...options.headers
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
};
|
|
152
|
+
exports.displayTemplatesPatch = displayTemplatesPatch;
|
|
153
|
+
/**
|
|
154
|
+
* List property formats
|
|
155
|
+
*
|
|
156
|
+
* List all property formats using the provided options.
|
|
157
|
+
*/
|
|
158
|
+
const propertyFormatsList = (options) => {
|
|
159
|
+
return (options?.client ?? client_gen_1.client).get({
|
|
160
|
+
responseTransformer: transformers_gen_1.propertyFormatsListResponseTransformer,
|
|
161
|
+
url: '/propertyformats',
|
|
162
|
+
...options
|
|
163
|
+
});
|
|
164
|
+
};
|
|
165
|
+
exports.propertyFormatsList = propertyFormatsList;
|
|
166
|
+
/**
|
|
167
|
+
* Get property format
|
|
168
|
+
*
|
|
169
|
+
* Get the property format with the provided key.
|
|
170
|
+
*/
|
|
171
|
+
const propertyFormatsGet = (options) => {
|
|
172
|
+
return (options.client ?? client_gen_1.client).get({
|
|
173
|
+
responseTransformer: transformers_gen_1.propertyFormatsGetResponseTransformer,
|
|
174
|
+
url: '/propertyformats/{key}',
|
|
175
|
+
...options
|
|
176
|
+
});
|
|
177
|
+
};
|
|
178
|
+
exports.propertyFormatsGet = propertyFormatsGet;
|
|
179
|
+
/**
|
|
180
|
+
* List property groups
|
|
181
|
+
*
|
|
182
|
+
* List property groups using the provided options.
|
|
183
|
+
*/
|
|
184
|
+
const propertyGroupsList = (options) => {
|
|
185
|
+
return (options?.client ?? client_gen_1.client).get({
|
|
186
|
+
responseTransformer: transformers_gen_1.propertyGroupsListResponseTransformer,
|
|
187
|
+
url: '/propertygroups',
|
|
188
|
+
...options
|
|
189
|
+
});
|
|
190
|
+
};
|
|
191
|
+
exports.propertyGroupsList = propertyGroupsList;
|
|
192
|
+
/**
|
|
193
|
+
* Create property group
|
|
194
|
+
*
|
|
195
|
+
* Create a new property group.
|
|
196
|
+
*/
|
|
197
|
+
const propertyGroupsCreate = (options) => {
|
|
198
|
+
return (options.client ?? client_gen_1.client).post({
|
|
199
|
+
responseTransformer: transformers_gen_1.propertyGroupsCreateResponseTransformer,
|
|
200
|
+
url: '/propertygroups',
|
|
201
|
+
...options,
|
|
202
|
+
headers: {
|
|
203
|
+
'Content-Type': 'application/json',
|
|
204
|
+
...options.headers
|
|
205
|
+
}
|
|
206
|
+
});
|
|
207
|
+
};
|
|
208
|
+
exports.propertyGroupsCreate = propertyGroupsCreate;
|
|
209
|
+
/**
|
|
210
|
+
* Delete property group
|
|
211
|
+
*
|
|
212
|
+
* Deletes the property group with the provided key.
|
|
213
|
+
*/
|
|
214
|
+
const propertyGroupsDelete = (options) => {
|
|
215
|
+
return (options.client ?? client_gen_1.client).delete({
|
|
216
|
+
responseTransformer: transformers_gen_1.propertyGroupsDeleteResponseTransformer,
|
|
217
|
+
url: '/propertygroups/{key}',
|
|
218
|
+
...options
|
|
219
|
+
});
|
|
220
|
+
};
|
|
221
|
+
exports.propertyGroupsDelete = propertyGroupsDelete;
|
|
222
|
+
/**
|
|
223
|
+
* Get property group
|
|
224
|
+
*
|
|
225
|
+
* Get the property group with the provided key.
|
|
226
|
+
*/
|
|
227
|
+
const propertyGroupsGet = (options) => {
|
|
228
|
+
return (options.client ?? client_gen_1.client).get({
|
|
229
|
+
responseTransformer: transformers_gen_1.propertyGroupsGetResponseTransformer,
|
|
230
|
+
url: '/propertygroups/{key}',
|
|
231
|
+
...options
|
|
232
|
+
});
|
|
233
|
+
};
|
|
234
|
+
exports.propertyGroupsGet = propertyGroupsGet;
|
|
235
|
+
/**
|
|
236
|
+
* Patch property group
|
|
237
|
+
*
|
|
238
|
+
* Patch an existing property group.
|
|
239
|
+
*/
|
|
240
|
+
const propertyGroupsPatch = (options) => {
|
|
241
|
+
return (options.client ?? client_gen_1.client).patch({
|
|
242
|
+
responseTransformer: transformers_gen_1.propertyGroupsPatchResponseTransformer,
|
|
243
|
+
url: '/propertygroups/{key}',
|
|
244
|
+
...options,
|
|
245
|
+
headers: {
|
|
246
|
+
'Content-Type': 'application/merge-patch+json',
|
|
247
|
+
...options.headers
|
|
248
|
+
}
|
|
249
|
+
});
|
|
250
|
+
};
|
|
251
|
+
exports.propertyGroupsPatch = propertyGroupsPatch;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ContentTypesCreateResponse, ContentTypesDeleteResponse, ContentTypesGetResponse, ContentTypesListResponse, ContentTypesPatchResponse, DisplayTemplatesCreateResponse, DisplayTemplatesDeleteResponse, DisplayTemplatesGetResponse, DisplayTemplatesListResponse, DisplayTemplatesPatchResponse, PropertyFormatsGetResponse, PropertyFormatsListResponse, PropertyGroupsCreateResponse, PropertyGroupsDeleteResponse, PropertyGroupsGetResponse, PropertyGroupsListResponse, PropertyGroupsPatchResponse } from './types.gen';
|
|
2
|
+
export declare const contentTypesListResponseTransformer: (data: any) => Promise<ContentTypesListResponse>;
|
|
3
|
+
export declare const contentTypesCreateResponseTransformer: (data: any) => Promise<ContentTypesCreateResponse>;
|
|
4
|
+
export declare const contentTypesDeleteResponseTransformer: (data: any) => Promise<ContentTypesDeleteResponse>;
|
|
5
|
+
export declare const contentTypesGetResponseTransformer: (data: any) => Promise<ContentTypesGetResponse>;
|
|
6
|
+
export declare const contentTypesPatchResponseTransformer: (data: any) => Promise<ContentTypesPatchResponse>;
|
|
7
|
+
export declare const displayTemplatesListResponseTransformer: (data: any) => Promise<DisplayTemplatesListResponse>;
|
|
8
|
+
export declare const displayTemplatesCreateResponseTransformer: (data: any) => Promise<DisplayTemplatesCreateResponse>;
|
|
9
|
+
export declare const displayTemplatesDeleteResponseTransformer: (data: any) => Promise<DisplayTemplatesDeleteResponse>;
|
|
10
|
+
export declare const displayTemplatesGetResponseTransformer: (data: any) => Promise<DisplayTemplatesGetResponse>;
|
|
11
|
+
export declare const displayTemplatesPatchResponseTransformer: (data: any) => Promise<DisplayTemplatesPatchResponse>;
|
|
12
|
+
export declare const propertyFormatsListResponseTransformer: (data: any) => Promise<PropertyFormatsListResponse>;
|
|
13
|
+
export declare const propertyFormatsGetResponseTransformer: (data: any) => Promise<PropertyFormatsGetResponse>;
|
|
14
|
+
export declare const propertyGroupsListResponseTransformer: (data: any) => Promise<PropertyGroupsListResponse>;
|
|
15
|
+
export declare const propertyGroupsCreateResponseTransformer: (data: any) => Promise<PropertyGroupsCreateResponse>;
|
|
16
|
+
export declare const propertyGroupsDeleteResponseTransformer: (data: any) => Promise<PropertyGroupsDeleteResponse>;
|
|
17
|
+
export declare const propertyGroupsGetResponseTransformer: (data: any) => Promise<PropertyGroupsGetResponse>;
|
|
18
|
+
export declare const propertyGroupsPatchResponseTransformer: (data: any) => Promise<PropertyGroupsPatchResponse>;
|