@remkoj/optimizely-cms-api 6.0.0-pre1 → 6.0.0-pre2
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/dist/client/CmsIntegrationApiClient.d.ts +22 -0
- package/dist/client/CmsIntegrationApiClient.js +34 -0
- package/dist/client/core/ApiError.d.ts +10 -0
- package/dist/client/core/ApiError.js +15 -0
- package/dist/client/core/ApiRequestOptions.d.ts +13 -0
- package/dist/client/core/ApiRequestOptions.js +2 -0
- package/dist/client/core/ApiResult.d.ts +7 -0
- package/dist/client/core/ApiResult.js +2 -0
- package/dist/client/core/BaseHttpRequest.d.ts +8 -0
- package/dist/client/core/BaseHttpRequest.js +9 -0
- package/dist/client/core/CancelablePromise.d.ts +20 -0
- package/dist/client/core/CancelablePromise.js +116 -0
- package/dist/client/core/FetchHttpRequest.d.ts +14 -0
- package/dist/client/core/FetchHttpRequest.js +20 -0
- package/dist/client/core/OpenAPI.d.ts +16 -0
- package/dist/client/core/OpenAPI.js +14 -0
- package/dist/client/core/request.d.ts +30 -0
- package/dist/client/core/request.js +294 -0
- package/dist/client/models/BinaryProperty.d.ts +8 -0
- package/dist/client/models/BinaryProperty.js +2 -0
- package/dist/client/models/BooleanProperty.d.ts +5 -0
- package/dist/client/models/BooleanProperty.js +2 -0
- package/dist/client/models/Changeset.d.ts +26 -0
- package/dist/client/models/Changeset.js +2 -0
- package/dist/client/models/ChangesetItem.d.ts +11 -0
- package/dist/client/models/ChangesetItem.js +2 -0
- package/dist/client/models/ChangesetItemPage.d.ts +19 -0
- package/dist/client/models/ChangesetItemPage.js +2 -0
- package/dist/client/models/ChangesetPage.d.ts +19 -0
- package/dist/client/models/ChangesetPage.js +2 -0
- package/dist/client/models/ComponentListItem.d.ts +10 -0
- package/dist/client/models/ComponentListItem.js +2 -0
- package/dist/client/models/ComponentProperty.d.ts +10 -0
- package/dist/client/models/ComponentProperty.js +2 -0
- package/dist/client/models/CompositionBehavior.d.ts +7 -0
- package/dist/client/models/CompositionBehavior.js +15 -0
- package/dist/client/models/ContentBaseType.d.ts +14 -0
- package/dist/client/models/ContentBaseType.js +22 -0
- package/dist/client/models/ContentComponent.d.ts +30 -0
- package/dist/client/models/ContentComponent.js +2 -0
- package/dist/client/models/ContentItem.d.ts +60 -0
- package/dist/client/models/ContentItem.js +2 -0
- package/dist/client/models/ContentItemListWithContentTypes.d.ts +27 -0
- package/dist/client/models/ContentItemListWithContentTypes.js +2 -0
- package/dist/client/models/ContentItemPage.d.ts +19 -0
- package/dist/client/models/ContentItemPage.js +2 -0
- package/dist/client/models/ContentItemWithContentTypes.d.ts +12 -0
- package/dist/client/models/ContentItemWithContentTypes.js +2 -0
- package/dist/client/models/ContentListItem.d.ts +14 -0
- package/dist/client/models/ContentListItem.js +2 -0
- package/dist/client/models/ContentLocaleInfo.d.ts +19 -0
- package/dist/client/models/ContentLocaleInfo.js +2 -0
- package/dist/client/models/ContentMetadata.d.ts +38 -0
- package/dist/client/models/ContentMetadata.js +2 -0
- package/dist/client/models/ContentMetadataPage.d.ts +19 -0
- package/dist/client/models/ContentMetadataPage.js +2 -0
- package/dist/client/models/ContentProperty.d.ts +14 -0
- package/dist/client/models/ContentProperty.js +2 -0
- package/dist/client/models/ContentReference.d.ts +17 -0
- package/dist/client/models/ContentReference.js +2 -0
- package/dist/client/models/ContentReferenceListItem.d.ts +14 -0
- package/dist/client/models/ContentReferenceListItem.js +2 -0
- package/dist/client/models/ContentReferenceProperty.d.ts +14 -0
- package/dist/client/models/ContentReferenceProperty.js +2 -0
- package/dist/client/models/ContentType.d.ts +84 -0
- package/dist/client/models/ContentType.js +2 -0
- package/dist/client/models/ContentTypeFeature.d.ts +10 -0
- package/dist/client/models/ContentTypeFeature.js +18 -0
- package/dist/client/models/ContentTypePage.d.ts +19 -0
- package/dist/client/models/ContentTypePage.js +2 -0
- package/dist/client/models/ContentTypeProperty.d.ts +47 -0
- package/dist/client/models/ContentTypeProperty.js +2 -0
- package/dist/client/models/ContentTypeUsage.d.ts +7 -0
- package/dist/client/models/ContentTypeUsage.js +15 -0
- package/dist/client/models/CopyContentOptions.d.ts +21 -0
- package/dist/client/models/CopyContentOptions.js +2 -0
- package/dist/client/models/DateTimeListItem.d.ts +14 -0
- package/dist/client/models/DateTimeListItem.js +2 -0
- package/dist/client/models/DateTimeProperty.d.ts +14 -0
- package/dist/client/models/DateTimeProperty.js +2 -0
- package/dist/client/models/DisplaySetting.d.ts +22 -0
- package/dist/client/models/DisplaySetting.js +2 -0
- package/dist/client/models/DisplaySettingChoice.d.ts +13 -0
- package/dist/client/models/DisplaySettingChoice.js +2 -0
- package/dist/client/models/DisplayTemplate.d.ts +49 -0
- package/dist/client/models/DisplayTemplate.js +2 -0
- package/dist/client/models/DisplayTemplatePage.d.ts +19 -0
- package/dist/client/models/DisplayTemplatePage.js +2 -0
- package/dist/client/models/DoubleEnumerationSettings.d.ts +10 -0
- package/dist/client/models/DoubleEnumerationSettings.js +2 -0
- package/dist/client/models/DoubleEnumerationValue.d.ts +13 -0
- package/dist/client/models/DoubleEnumerationValue.js +2 -0
- package/dist/client/models/FloatListItem.d.ts +16 -0
- package/dist/client/models/FloatListItem.js +2 -0
- package/dist/client/models/FloatProperty.d.ts +16 -0
- package/dist/client/models/FloatProperty.js +2 -0
- package/dist/client/models/ImageDescriptor.d.ts +17 -0
- package/dist/client/models/ImageDescriptor.js +2 -0
- package/dist/client/models/IndexingType.d.ts +8 -0
- package/dist/client/models/IndexingType.js +16 -0
- package/dist/client/models/Int32EnumerationSettings.d.ts +10 -0
- package/dist/client/models/Int32EnumerationSettings.js +2 -0
- package/dist/client/models/Int32EnumerationValue.d.ts +13 -0
- package/dist/client/models/Int32EnumerationValue.js +2 -0
- package/dist/client/models/IntegerListItem.d.ts +16 -0
- package/dist/client/models/IntegerListItem.js +2 -0
- package/dist/client/models/IntegerProperty.d.ts +16 -0
- package/dist/client/models/IntegerProperty.js +2 -0
- package/dist/client/models/JsonStringProperty.d.ts +5 -0
- package/dist/client/models/JsonStringProperty.js +2 -0
- package/dist/client/models/ListProperty.d.ts +26 -0
- package/dist/client/models/ListProperty.js +2 -0
- package/dist/client/models/ListPropertyItem.d.ts +11 -0
- package/dist/client/models/ListPropertyItem.js +2 -0
- package/dist/client/models/LocaleStatus.d.ts +7 -0
- package/dist/client/models/LocaleStatus.js +15 -0
- package/dist/client/models/OauthToken.d.ts +18 -0
- package/dist/client/models/OauthToken.js +2 -0
- package/dist/client/models/OauthTokenError.d.ts +13 -0
- package/dist/client/models/OauthTokenError.js +2 -0
- package/dist/client/models/OauthTokenRequest.d.ts +21 -0
- package/dist/client/models/OauthTokenRequest.js +2 -0
- package/dist/client/models/ProblemDetails.d.ts +1 -0
- package/dist/client/models/ProblemDetails.js +2 -0
- package/dist/client/models/PropertyDataType.d.ts +18 -0
- package/dist/client/models/PropertyDataType.js +26 -0
- package/dist/client/models/PropertyFormat.d.ts +37 -0
- package/dist/client/models/PropertyFormat.js +2 -0
- package/dist/client/models/PropertyFormatPage.d.ts +19 -0
- package/dist/client/models/PropertyFormatPage.js +2 -0
- package/dist/client/models/PropertyGroup.d.ts +21 -0
- package/dist/client/models/PropertyGroup.js +2 -0
- package/dist/client/models/PropertyGroupPage.d.ts +19 -0
- package/dist/client/models/PropertyGroupPage.js +2 -0
- package/dist/client/models/StringEnumerationSettings.d.ts +10 -0
- package/dist/client/models/StringEnumerationSettings.js +2 -0
- package/dist/client/models/StringEnumerationValue.d.ts +13 -0
- package/dist/client/models/StringEnumerationValue.js +2 -0
- package/dist/client/models/StringListItem.d.ts +20 -0
- package/dist/client/models/StringListItem.js +2 -0
- package/dist/client/models/StringProperty.d.ts +20 -0
- package/dist/client/models/StringProperty.js +2 -0
- package/dist/client/models/UrlListItem.d.ts +5 -0
- package/dist/client/models/UrlListItem.js +2 -0
- package/dist/client/models/UrlProperty.d.ts +5 -0
- package/dist/client/models/UrlProperty.js +2 -0
- package/dist/client/models/VersionStatus.d.ts +12 -0
- package/dist/client/models/VersionStatus.js +20 -0
- package/dist/client/services/ChangesetsService.d.ts +105 -0
- package/dist/client/services/ChangesetsService.js +239 -0
- package/dist/client/services/ContentService.d.ts +172 -0
- package/dist/client/services/ContentService.js +409 -0
- package/dist/client/services/ContentTypesService.d.ts +66 -0
- package/dist/client/services/ContentTypesService.js +149 -0
- package/dist/client/services/DisplayTemplatesService.d.ts +60 -0
- package/dist/client/services/DisplayTemplatesService.js +135 -0
- package/dist/client/services/OauthService.d.ts +17 -0
- package/dist/client/services/OauthService.js +28 -0
- package/dist/client/services/PropertyFormatsService.d.ts +26 -0
- package/dist/client/services/PropertyFormatsService.js +53 -0
- package/dist/client/services/PropertyGroupsService.d.ts +61 -0
- package/dist/client/services/PropertyGroupsService.js +135 -0
- package/dist/client/types.gen.d.ts +17 -274
- package/dist/version.json +2 -2
- package/package.json +6 -6
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { DoubleEnumerationSettings } from './DoubleEnumerationSettings';
|
|
2
|
+
import type { ListPropertyItem } from './ListPropertyItem';
|
|
3
|
+
/**
|
|
4
|
+
* Describes a property list item that can contain a float number.
|
|
5
|
+
*/
|
|
6
|
+
export type FloatListItem = (ListPropertyItem & {
|
|
7
|
+
/**
|
|
8
|
+
* The minimum value that list items of this type should be able to contain.
|
|
9
|
+
*/
|
|
10
|
+
minimum?: number | null;
|
|
11
|
+
/**
|
|
12
|
+
* The maximum value that list items of this type should be able to contain.
|
|
13
|
+
*/
|
|
14
|
+
maximum?: number | null;
|
|
15
|
+
enum?: DoubleEnumerationSettings;
|
|
16
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ContentTypeProperty } from './ContentTypeProperty';
|
|
2
|
+
import type { DoubleEnumerationSettings } from './DoubleEnumerationSettings';
|
|
3
|
+
/**
|
|
4
|
+
* Describes a property that can contain a float number.
|
|
5
|
+
*/
|
|
6
|
+
export type FloatProperty = (ContentTypeProperty & {
|
|
7
|
+
/**
|
|
8
|
+
* The minimum value that properties of this type should be able to contain.
|
|
9
|
+
*/
|
|
10
|
+
minimum?: number | null;
|
|
11
|
+
/**
|
|
12
|
+
* The maximum value that properties of this type should be able to contain.
|
|
13
|
+
*/
|
|
14
|
+
maximum?: number | null;
|
|
15
|
+
enum?: DoubleEnumerationSettings;
|
|
16
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Instruction for generating an alternative image from the main binary of an image content item.
|
|
3
|
+
*/
|
|
4
|
+
export type ImageDescriptor = {
|
|
5
|
+
/**
|
|
6
|
+
* The image width in pixels.
|
|
7
|
+
*/
|
|
8
|
+
width?: number;
|
|
9
|
+
/**
|
|
10
|
+
* The image height in pixels.
|
|
11
|
+
*/
|
|
12
|
+
height?: number;
|
|
13
|
+
/**
|
|
14
|
+
* Indicates if the image should be pregenerated when a new image is uploaded rather than when first requested.
|
|
15
|
+
*/
|
|
16
|
+
pregenerated?: boolean;
|
|
17
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IndexingType = void 0;
|
|
4
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
5
|
+
/* istanbul ignore file */
|
|
6
|
+
/* tslint:disable */
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
/**
|
|
9
|
+
* Represents the indexing type of a content type property.
|
|
10
|
+
*/
|
|
11
|
+
var IndexingType;
|
|
12
|
+
(function (IndexingType) {
|
|
13
|
+
IndexingType["DISABLED"] = "disabled";
|
|
14
|
+
IndexingType["QUERYABLE"] = "queryable";
|
|
15
|
+
IndexingType["SEARCHABLE"] = "searchable";
|
|
16
|
+
})(IndexingType || (exports.IndexingType = IndexingType = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Int32EnumerationValue } from './Int32EnumerationValue';
|
|
2
|
+
/**
|
|
3
|
+
* Enumeration settings for a property or format.
|
|
4
|
+
*/
|
|
5
|
+
export type Int32EnumerationSettings = {
|
|
6
|
+
/**
|
|
7
|
+
* Enumeration values for this property or format.
|
|
8
|
+
*/
|
|
9
|
+
values?: Array<Int32EnumerationValue>;
|
|
10
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Int32EnumerationSettings } from './Int32EnumerationSettings';
|
|
2
|
+
import type { ListPropertyItem } from './ListPropertyItem';
|
|
3
|
+
/**
|
|
4
|
+
* Describes a property list item that can contain integers.
|
|
5
|
+
*/
|
|
6
|
+
export type IntegerListItem = (ListPropertyItem & {
|
|
7
|
+
/**
|
|
8
|
+
* The minimum value that list items of this type should be able to contain.
|
|
9
|
+
*/
|
|
10
|
+
minimum?: number | null;
|
|
11
|
+
/**
|
|
12
|
+
* The maximum value that list items of this type should be able to contain.
|
|
13
|
+
*/
|
|
14
|
+
maximum?: number | null;
|
|
15
|
+
enum?: Int32EnumerationSettings;
|
|
16
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ContentTypeProperty } from './ContentTypeProperty';
|
|
2
|
+
import type { Int32EnumerationSettings } from './Int32EnumerationSettings';
|
|
3
|
+
/**
|
|
4
|
+
* Describes a property that can contain an integer.
|
|
5
|
+
*/
|
|
6
|
+
export type IntegerProperty = (ContentTypeProperty & {
|
|
7
|
+
/**
|
|
8
|
+
* The minimum value that properties of this type should be able to contain.
|
|
9
|
+
*/
|
|
10
|
+
minimum?: number | null;
|
|
11
|
+
/**
|
|
12
|
+
* The maximum value that properties of this type should be able to contain.
|
|
13
|
+
*/
|
|
14
|
+
maximum?: number | null;
|
|
15
|
+
enum?: Int32EnumerationSettings;
|
|
16
|
+
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { ComponentListItem } from './ComponentListItem';
|
|
2
|
+
import type { ContentListItem } from './ContentListItem';
|
|
3
|
+
import type { ContentReferenceListItem } from './ContentReferenceListItem';
|
|
4
|
+
import type { ContentTypeProperty } from './ContentTypeProperty';
|
|
5
|
+
import type { DateTimeListItem } from './DateTimeListItem';
|
|
6
|
+
import type { FloatListItem } from './FloatListItem';
|
|
7
|
+
import type { IntegerListItem } from './IntegerListItem';
|
|
8
|
+
import type { StringListItem } from './StringListItem';
|
|
9
|
+
import type { UrlListItem } from './UrlListItem';
|
|
10
|
+
/**
|
|
11
|
+
* A property in the CMS that may hold a list of items.
|
|
12
|
+
*/
|
|
13
|
+
export type ListProperty = (ContentTypeProperty & {
|
|
14
|
+
/**
|
|
15
|
+
* Specifies the minimum number of items in this array property.
|
|
16
|
+
*/
|
|
17
|
+
minItems?: number | null;
|
|
18
|
+
/**
|
|
19
|
+
* Specifies the maximum number of items in this array property.
|
|
20
|
+
*/
|
|
21
|
+
maxItems?: number | null;
|
|
22
|
+
/**
|
|
23
|
+
* Describes the list item of a ListProperty in the CMS.
|
|
24
|
+
*/
|
|
25
|
+
items: (ComponentListItem | ContentListItem | ContentReferenceListItem | DateTimeListItem | FloatListItem | IntegerListItem | StringListItem | UrlListItem);
|
|
26
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { PropertyDataType } from './PropertyDataType';
|
|
2
|
+
/**
|
|
3
|
+
* Describes the list item of a ListProperty in the CMS.
|
|
4
|
+
*/
|
|
5
|
+
export type ListPropertyItem = {
|
|
6
|
+
type: PropertyDataType;
|
|
7
|
+
/**
|
|
8
|
+
* The key of the PropertyFormat that this property item is an instance of.
|
|
9
|
+
*/
|
|
10
|
+
format?: string | null;
|
|
11
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LocaleStatus = void 0;
|
|
4
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
5
|
+
/* istanbul ignore file */
|
|
6
|
+
/* tslint:disable */
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
/**
|
|
9
|
+
* Represent the different status values of a content locale.
|
|
10
|
+
*/
|
|
11
|
+
var LocaleStatus;
|
|
12
|
+
(function (LocaleStatus) {
|
|
13
|
+
LocaleStatus["DRAFT"] = "draft";
|
|
14
|
+
LocaleStatus["PUBLISHED"] = "published";
|
|
15
|
+
})(LocaleStatus || (exports.LocaleStatus = LocaleStatus = {}));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents an OAuth JSON Web Token (JWT) and
|
|
3
|
+
* its expiry in seconds.
|
|
4
|
+
*/
|
|
5
|
+
export type OauthToken = {
|
|
6
|
+
/**
|
|
7
|
+
* Gets or sets the access token.
|
|
8
|
+
*/
|
|
9
|
+
access_token?: string | null;
|
|
10
|
+
/**
|
|
11
|
+
* Gets or sets the expiry time in seconds.
|
|
12
|
+
*/
|
|
13
|
+
expires_in?: number;
|
|
14
|
+
/**
|
|
15
|
+
* Gets or sets the token type.
|
|
16
|
+
*/
|
|
17
|
+
token_type?: string;
|
|
18
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents an OAuth token request.
|
|
3
|
+
*/
|
|
4
|
+
export type OauthTokenRequest = {
|
|
5
|
+
/**
|
|
6
|
+
* Gets or sets the grant type.
|
|
7
|
+
*/
|
|
8
|
+
grant_type?: string | null;
|
|
9
|
+
/**
|
|
10
|
+
* Gets or sets the client id.
|
|
11
|
+
*/
|
|
12
|
+
client_id?: string | null;
|
|
13
|
+
/**
|
|
14
|
+
* Gets or sets the client secret.
|
|
15
|
+
*/
|
|
16
|
+
client_secret?: string | null;
|
|
17
|
+
/**
|
|
18
|
+
* Get or sets the subject to act as.
|
|
19
|
+
*/
|
|
20
|
+
act_as?: string | null;
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ProblemDetails = Record<string, any>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represent the basic type that a PropertyFormat
|
|
3
|
+
* is using for data storage and data transport.
|
|
4
|
+
*/
|
|
5
|
+
export declare enum PropertyDataType {
|
|
6
|
+
STRING = "string",
|
|
7
|
+
URL = "url",
|
|
8
|
+
BOOLEAN = "boolean",
|
|
9
|
+
INTEGER = "integer",
|
|
10
|
+
FLOAT = "float",
|
|
11
|
+
DATE_TIME = "dateTime",
|
|
12
|
+
CONTENT_REFERENCE = "contentReference",
|
|
13
|
+
CONTENT = "content",
|
|
14
|
+
BINARY = "binary",
|
|
15
|
+
JSON = "json",
|
|
16
|
+
ARRAY = "array",
|
|
17
|
+
COMPONENT = "component"
|
|
18
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PropertyDataType = void 0;
|
|
4
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
5
|
+
/* istanbul ignore file */
|
|
6
|
+
/* tslint:disable */
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
/**
|
|
9
|
+
* Represent the basic type that a PropertyFormat
|
|
10
|
+
* is using for data storage and data transport.
|
|
11
|
+
*/
|
|
12
|
+
var PropertyDataType;
|
|
13
|
+
(function (PropertyDataType) {
|
|
14
|
+
PropertyDataType["STRING"] = "string";
|
|
15
|
+
PropertyDataType["URL"] = "url";
|
|
16
|
+
PropertyDataType["BOOLEAN"] = "boolean";
|
|
17
|
+
PropertyDataType["INTEGER"] = "integer";
|
|
18
|
+
PropertyDataType["FLOAT"] = "float";
|
|
19
|
+
PropertyDataType["DATE_TIME"] = "dateTime";
|
|
20
|
+
PropertyDataType["CONTENT_REFERENCE"] = "contentReference";
|
|
21
|
+
PropertyDataType["CONTENT"] = "content";
|
|
22
|
+
PropertyDataType["BINARY"] = "binary";
|
|
23
|
+
PropertyDataType["JSON"] = "json";
|
|
24
|
+
PropertyDataType["ARRAY"] = "array";
|
|
25
|
+
PropertyDataType["COMPONENT"] = "component";
|
|
26
|
+
})(PropertyDataType || (exports.PropertyDataType = PropertyDataType = {}));
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { PropertyDataType } from './PropertyDataType';
|
|
2
|
+
/**
|
|
3
|
+
* Represent the definition of semantic property formats for content items.
|
|
4
|
+
*/
|
|
5
|
+
export type PropertyFormat = {
|
|
6
|
+
/**
|
|
7
|
+
* The key that identifies this PropertyFormat.
|
|
8
|
+
*/
|
|
9
|
+
key?: string;
|
|
10
|
+
dataType?: PropertyDataType;
|
|
11
|
+
itemType?: PropertyDataType;
|
|
12
|
+
/**
|
|
13
|
+
* The name and identifier of this PropertyFormat.
|
|
14
|
+
*/
|
|
15
|
+
displayName?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Editor used for managing properties with this format.
|
|
18
|
+
*/
|
|
19
|
+
editor?: string | null;
|
|
20
|
+
/**
|
|
21
|
+
* Indicates if this property format has been deleted.
|
|
22
|
+
*/
|
|
23
|
+
deleted?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Settings for the editor.
|
|
26
|
+
*/
|
|
27
|
+
editorSettings?: Record<string, Record<string, any>> | null;
|
|
28
|
+
/**
|
|
29
|
+
* Enumerations for the format.
|
|
30
|
+
*/
|
|
31
|
+
enum?: {
|
|
32
|
+
values?: Array<{
|
|
33
|
+
value?: (string | number);
|
|
34
|
+
displayName?: string;
|
|
35
|
+
}>;
|
|
36
|
+
} | null;
|
|
37
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { PropertyFormat } from './PropertyFormat';
|
|
2
|
+
export type PropertyFormatPage = {
|
|
3
|
+
/**
|
|
4
|
+
* The items in this paged collection.
|
|
5
|
+
*/
|
|
6
|
+
readonly items?: Array<PropertyFormat>;
|
|
7
|
+
/**
|
|
8
|
+
* The zero-based index of the current page.
|
|
9
|
+
*/
|
|
10
|
+
readonly pageIndex?: number;
|
|
11
|
+
/**
|
|
12
|
+
* The number of item in each page. Not necessarily the same as the number of items in this page.
|
|
13
|
+
*/
|
|
14
|
+
readonly pageSize?: number;
|
|
15
|
+
/**
|
|
16
|
+
* The estimated total number of items in the collection. May be omitted if the total item count is unknown.
|
|
17
|
+
*/
|
|
18
|
+
readonly totalItemCount?: number;
|
|
19
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Describes a property group of a ContentType in the CMS.
|
|
3
|
+
*/
|
|
4
|
+
export type PropertyGroup = {
|
|
5
|
+
/**
|
|
6
|
+
* The key that identifies this PropertyGroup.
|
|
7
|
+
*/
|
|
8
|
+
readonly key: string;
|
|
9
|
+
/**
|
|
10
|
+
* The display name of this PropertyGroup.
|
|
11
|
+
*/
|
|
12
|
+
displayName?: string;
|
|
13
|
+
/**
|
|
14
|
+
* A string that is used to indicate the source of this PropertyGroup.
|
|
15
|
+
*/
|
|
16
|
+
readonly source?: string;
|
|
17
|
+
/**
|
|
18
|
+
* An value that is used to when sorting PropertyGroup instances.
|
|
19
|
+
*/
|
|
20
|
+
sortOrder?: number;
|
|
21
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { PropertyGroup } from './PropertyGroup';
|
|
2
|
+
export type PropertyGroupPage = {
|
|
3
|
+
/**
|
|
4
|
+
* The items in this paged collection.
|
|
5
|
+
*/
|
|
6
|
+
readonly items?: Array<PropertyGroup>;
|
|
7
|
+
/**
|
|
8
|
+
* The zero-based index of the current page.
|
|
9
|
+
*/
|
|
10
|
+
readonly pageIndex?: number;
|
|
11
|
+
/**
|
|
12
|
+
* The number of item in each page. Not necessarily the same as the number of items in this page.
|
|
13
|
+
*/
|
|
14
|
+
readonly pageSize?: number;
|
|
15
|
+
/**
|
|
16
|
+
* The estimated total number of items in the collection. May be omitted if the total item count is unknown.
|
|
17
|
+
*/
|
|
18
|
+
readonly totalItemCount?: number;
|
|
19
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { StringEnumerationValue } from './StringEnumerationValue';
|
|
2
|
+
/**
|
|
3
|
+
* Enumeration settings for a property or format.
|
|
4
|
+
*/
|
|
5
|
+
export type StringEnumerationSettings = {
|
|
6
|
+
/**
|
|
7
|
+
* Enumeration values for this property or format.
|
|
8
|
+
*/
|
|
9
|
+
values?: Array<StringEnumerationValue>;
|
|
10
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ListPropertyItem } from './ListPropertyItem';
|
|
2
|
+
import type { StringEnumerationSettings } from './StringEnumerationSettings';
|
|
3
|
+
/**
|
|
4
|
+
* Describes a property list item that can contain a string.
|
|
5
|
+
*/
|
|
6
|
+
export type StringListItem = (ListPropertyItem & {
|
|
7
|
+
/**
|
|
8
|
+
* The minimum string length that list items of this type should be able to contain.
|
|
9
|
+
*/
|
|
10
|
+
minLength?: number | null;
|
|
11
|
+
/**
|
|
12
|
+
* The maximum string length that list items of this type should be able to contain.
|
|
13
|
+
*/
|
|
14
|
+
maxLength?: number | null;
|
|
15
|
+
/**
|
|
16
|
+
* Regular expression pattern that limits what strings that list items of this type should be able to contain.
|
|
17
|
+
*/
|
|
18
|
+
pattern?: string | null;
|
|
19
|
+
enum?: StringEnumerationSettings;
|
|
20
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ContentTypeProperty } from './ContentTypeProperty';
|
|
2
|
+
import type { StringEnumerationSettings } from './StringEnumerationSettings';
|
|
3
|
+
/**
|
|
4
|
+
* Describes a property that can contain strings.
|
|
5
|
+
*/
|
|
6
|
+
export type StringProperty = (ContentTypeProperty & {
|
|
7
|
+
/**
|
|
8
|
+
* The minimum string length that properties of this type should be able to contain.
|
|
9
|
+
*/
|
|
10
|
+
minLength?: number | null;
|
|
11
|
+
/**
|
|
12
|
+
* The maximum string length that properties of this type should be able to contain.
|
|
13
|
+
*/
|
|
14
|
+
maxLength?: number | null;
|
|
15
|
+
/**
|
|
16
|
+
* Regular expression pattern that limits what strings that properties of this type should be able to contain.
|
|
17
|
+
*/
|
|
18
|
+
pattern?: string | null;
|
|
19
|
+
enum?: StringEnumerationSettings;
|
|
20
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represent the different status values of a content version.
|
|
3
|
+
*/
|
|
4
|
+
export declare enum VersionStatus {
|
|
5
|
+
DRAFT = "draft",
|
|
6
|
+
READY = "ready",
|
|
7
|
+
PUBLISHED = "published",
|
|
8
|
+
PREVIOUS = "previous",
|
|
9
|
+
SCHEDULED = "scheduled",
|
|
10
|
+
REJECTED = "rejected",
|
|
11
|
+
IN_REVIEW = "inReview"
|
|
12
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VersionStatus = void 0;
|
|
4
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
5
|
+
/* istanbul ignore file */
|
|
6
|
+
/* tslint:disable */
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
/**
|
|
9
|
+
* Represent the different status values of a content version.
|
|
10
|
+
*/
|
|
11
|
+
var VersionStatus;
|
|
12
|
+
(function (VersionStatus) {
|
|
13
|
+
VersionStatus["DRAFT"] = "draft";
|
|
14
|
+
VersionStatus["READY"] = "ready";
|
|
15
|
+
VersionStatus["PUBLISHED"] = "published";
|
|
16
|
+
VersionStatus["PREVIOUS"] = "previous";
|
|
17
|
+
VersionStatus["SCHEDULED"] = "scheduled";
|
|
18
|
+
VersionStatus["REJECTED"] = "rejected";
|
|
19
|
+
VersionStatus["IN_REVIEW"] = "inReview";
|
|
20
|
+
})(VersionStatus || (exports.VersionStatus = VersionStatus = {}));
|