@remkoj/optimizely-cms-api 2.0.0-pre3 → 2.0.0-pre5
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/api-client.d.ts +35 -0
- package/dist/api-client.js +67 -0
- package/dist/client/CmsIntegrationApiClient.d.ts +24 -22
- package/dist/client/CmsIntegrationApiClient.js +2 -0
- package/dist/client/core/ApiError.d.ts +10 -10
- package/dist/client/core/ApiRequestOptions.d.ts +13 -13
- package/dist/client/core/ApiResult.d.ts +7 -7
- package/dist/client/core/BaseHttpRequest.d.ts +8 -8
- package/dist/client/core/CancelablePromise.d.ts +20 -20
- package/dist/client/core/FetchHttpRequest.d.ts +14 -14
- package/dist/client/core/OpenAPI.d.ts +16 -16
- package/dist/client/core/request.d.ts +30 -30
- package/dist/client/index.d.ts +81 -76
- package/dist/client/index.js +3 -1
- package/dist/client/models/BinaryProperty.d.ts +8 -8
- package/dist/client/models/BooleanProperty.d.ts +5 -5
- package/dist/client/models/Changeset.d.ts +26 -26
- package/dist/client/models/ChangesetItem.d.ts +11 -11
- package/dist/client/models/ChangesetItemPage.d.ts +19 -19
- package/dist/client/models/ChangesetPage.d.ts +19 -19
- package/dist/client/models/ComponentListItem.d.ts +7 -10
- package/dist/client/models/ComponentProperty.d.ts +7 -10
- package/dist/client/models/ContentBaseType.d.ts +11 -11
- package/dist/client/models/ContentComponent.d.ts +34 -34
- package/dist/client/models/ContentItem.d.ts +60 -60
- package/dist/client/models/ContentItemListWithContentTypes.d.ts +27 -27
- package/dist/client/models/ContentItemPage.d.ts +19 -19
- package/dist/client/models/ContentItemWithContentTypes.d.ts +12 -12
- package/dist/client/models/ContentListItem.d.ts +8 -14
- package/dist/client/models/ContentLocaleInfo.d.ts +19 -11
- package/dist/client/models/ContentMetadata.d.ts +38 -46
- package/dist/client/models/ContentMetadataPage.d.ts +19 -19
- package/dist/client/models/ContentProperty.d.ts +8 -14
- package/dist/client/models/ContentReference.d.ts +17 -17
- package/dist/client/models/ContentReferenceListItem.d.ts +8 -14
- package/dist/client/models/ContentReferenceProperty.d.ts +8 -14
- package/dist/client/models/ContentType.d.ts +79 -79
- package/dist/client/models/ContentTypeFeature.d.ts +10 -10
- package/dist/client/models/ContentTypePage.d.ts +19 -19
- package/dist/client/models/ContentTypeProperty.d.ts +47 -47
- package/dist/client/models/ContentTypeUsage.d.ts +7 -7
- package/dist/client/models/CopyContentOptions.d.ts +21 -21
- package/dist/client/models/DateTimeListItem.d.ts +8 -14
- package/dist/client/models/DateTimeProperty.d.ts +8 -14
- 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 +9 -9
- package/dist/client/models/FloatListItem.d.ts +10 -16
- package/dist/client/models/FloatProperty.d.ts +10 -16
- package/dist/client/models/ImageDescriptor.d.ts +17 -17
- package/dist/client/models/ImportPackageMessage.d.ts +17 -17
- package/dist/client/models/ImportPackageResult.d.ts +22 -22
- package/dist/client/models/IndexingType.d.ts +8 -8
- package/dist/client/models/Int32EnumerationSettings.d.ts +9 -9
- package/dist/client/models/IntegerListItem.d.ts +10 -16
- package/dist/client/models/IntegerProperty.d.ts +10 -16
- package/dist/client/models/JsonStringProperty.d.ts +5 -5
- package/dist/client/models/ListProperty.d.ts +26 -26
- package/dist/client/models/ListPropertyItem.d.ts +11 -11
- package/dist/client/models/LocaleStatus.d.ts +7 -7
- package/dist/client/models/Manifest.d.ts +24 -19
- package/dist/client/models/OauthToken.d.ts +18 -18
- package/dist/client/models/OauthTokenError.d.ts +13 -13
- package/dist/client/models/OauthTokenRequest.d.ts +21 -21
- package/dist/client/models/PackageJob.d.ts +28 -28
- package/dist/client/models/PackageJobMessage.d.ts +17 -17
- package/dist/client/models/PackageJobStatus.d.ts +4 -4
- package/dist/client/models/ProblemDetails.d.ts +1 -1
- package/dist/client/models/PropertyDataType.d.ts +18 -18
- package/dist/client/models/PropertyFormat.d.ts +34 -34
- package/dist/client/models/PropertyFormatPage.d.ts +19 -19
- package/dist/client/models/PropertyGroup.d.ts +21 -21
- package/dist/client/models/PropertyGroupPage.d.ts +19 -19
- package/dist/client/models/StringEnumerationSettings.d.ts +9 -9
- package/dist/client/models/StringListItem.d.ts +11 -14
- package/dist/client/models/StringProperty.d.ts +11 -14
- package/dist/client/models/UrlListItem.d.ts +5 -5
- package/dist/client/models/UrlProperty.d.ts +5 -5
- package/dist/client/models/VersionStatus.d.ts +12 -12
- package/dist/client/services/ChangesetsService.d.ts +105 -105
- package/dist/client/services/ChangesetsService.js +10 -10
- package/dist/client/services/ContentService.d.ts +172 -172
- package/dist/client/services/ContentService.js +14 -14
- package/dist/client/services/ContentTypesService.d.ts +66 -66
- package/dist/client/services/ContentTypesService.js +6 -6
- 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 -17
- package/dist/client/services/OauthService.js +1 -1
- package/dist/client/services/PackagesService.d.ts +41 -41
- package/dist/client/services/PackagesService.js +3 -3
- package/dist/client/services/PropertyFormatsService.d.ts +26 -26
- package/dist/client/services/PropertyFormatsService.js +2 -2
- package/dist/client/services/PropertyGroupsService.d.ts +61 -61
- package/dist/client/services/PropertyGroupsService.js +6 -6
- package/dist/config.d.ts +8 -7
- package/dist/config.js +2 -1
- package/dist/getaccesstoken.d.ts +3 -0
- package/dist/getaccesstoken.js +43 -0
- package/dist/index.d.ts +16 -15
- package/dist/index.js +8 -51
- package/dist/types.d.ts +8 -0
- package/dist/types.js +2 -0
- package/dist/version.json +5 -0
- package/package.json +11 -7
|
@@ -1,21 +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
|
-
};
|
|
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
|
+
};
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import type { PackageJobMessage } from './PackageJobMessage';
|
|
2
|
-
import type { PackageJobStatus } from './PackageJobStatus';
|
|
3
|
-
/**
|
|
4
|
-
* Describes the status of a package job.
|
|
5
|
-
*/
|
|
6
|
-
export type PackageJob = {
|
|
7
|
-
/**
|
|
8
|
-
* An unique key that can be used to track the staus of a package job.
|
|
9
|
-
*/
|
|
10
|
-
readonly key?: string;
|
|
11
|
-
status?: PackageJobStatus;
|
|
12
|
-
/**
|
|
13
|
-
* List of messages describing the outcome from the package job.
|
|
14
|
-
*/
|
|
15
|
-
outcomes?: Array<PackageJobMessage>;
|
|
16
|
-
/**
|
|
17
|
-
* List of error messages from the package job.
|
|
18
|
-
*/
|
|
19
|
-
errors?: Array<PackageJobMessage>;
|
|
20
|
-
/**
|
|
21
|
-
* List of warning messages from the package job.
|
|
22
|
-
*/
|
|
23
|
-
warnings?: Array<PackageJobMessage>;
|
|
24
|
-
/**
|
|
25
|
-
* A timestamp indicates when this task was first created.
|
|
26
|
-
*/
|
|
27
|
-
readonly created?: string;
|
|
28
|
-
};
|
|
1
|
+
import type { PackageJobMessage } from './PackageJobMessage';
|
|
2
|
+
import type { PackageJobStatus } from './PackageJobStatus';
|
|
3
|
+
/**
|
|
4
|
+
* Describes the status of a package job.
|
|
5
|
+
*/
|
|
6
|
+
export type PackageJob = {
|
|
7
|
+
/**
|
|
8
|
+
* An unique key that can be used to track the staus of a package job.
|
|
9
|
+
*/
|
|
10
|
+
readonly key?: string;
|
|
11
|
+
status?: PackageJobStatus;
|
|
12
|
+
/**
|
|
13
|
+
* List of messages describing the outcome from the package job.
|
|
14
|
+
*/
|
|
15
|
+
outcomes?: Array<PackageJobMessage>;
|
|
16
|
+
/**
|
|
17
|
+
* List of error messages from the package job.
|
|
18
|
+
*/
|
|
19
|
+
errors?: Array<PackageJobMessage>;
|
|
20
|
+
/**
|
|
21
|
+
* List of warning messages from the package job.
|
|
22
|
+
*/
|
|
23
|
+
warnings?: Array<PackageJobMessage>;
|
|
24
|
+
/**
|
|
25
|
+
* A timestamp indicates when this task was first created.
|
|
26
|
+
*/
|
|
27
|
+
readonly created?: string;
|
|
28
|
+
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Describes a status message from a package job.
|
|
3
|
-
*/
|
|
4
|
-
export type PackageJobMessage = {
|
|
5
|
-
/**
|
|
6
|
-
* The section where the message originated from.
|
|
7
|
-
*/
|
|
8
|
-
readonly section?: string;
|
|
9
|
-
/**
|
|
10
|
-
* The message describing an outcome.
|
|
11
|
-
*/
|
|
12
|
-
readonly message?: string;
|
|
13
|
-
/**
|
|
14
|
-
* The identifier of the resource that was the reason for this message to be created.
|
|
15
|
-
*/
|
|
16
|
-
readonly identifier?: string | null;
|
|
17
|
-
};
|
|
1
|
+
/**
|
|
2
|
+
* Describes a status message from a package job.
|
|
3
|
+
*/
|
|
4
|
+
export type PackageJobMessage = {
|
|
5
|
+
/**
|
|
6
|
+
* The section where the message originated from.
|
|
7
|
+
*/
|
|
8
|
+
readonly section?: string;
|
|
9
|
+
/**
|
|
10
|
+
* The message describing an outcome.
|
|
11
|
+
*/
|
|
12
|
+
readonly message?: string;
|
|
13
|
+
/**
|
|
14
|
+
* The identifier of the resource that was the reason for this message to be created.
|
|
15
|
+
*/
|
|
16
|
+
readonly identifier?: string | null;
|
|
17
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Represent the status of a package job.
|
|
3
|
-
*/
|
|
4
|
-
export type PackageJobStatus = Record<string, any>;
|
|
1
|
+
/**
|
|
2
|
+
* Represent the status of a package job.
|
|
3
|
+
*/
|
|
4
|
+
export type PackageJobStatus = Record<string, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type ProblemDetails = Record<string, any>;
|
|
1
|
+
export type ProblemDetails = Record<string, any>;
|
|
@@ -1,18 +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
|
-
}
|
|
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
|
+
}
|
|
@@ -1,34 +1,34 @@
|
|
|
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
|
-
deleted?: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* Settings for the editor.
|
|
23
|
-
*/
|
|
24
|
-
editorSettings?: Record<string, Record<string, any>> | null;
|
|
25
|
-
/**
|
|
26
|
-
* Enumerations for the format.
|
|
27
|
-
*/
|
|
28
|
-
enum?: {
|
|
29
|
-
values?: Array<{
|
|
30
|
-
value?: (string | number);
|
|
31
|
-
displayName?: string;
|
|
32
|
-
}>;
|
|
33
|
-
} | null;
|
|
34
|
-
};
|
|
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
|
+
deleted?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Settings for the editor.
|
|
23
|
+
*/
|
|
24
|
+
editorSettings?: Record<string, Record<string, any>> | null;
|
|
25
|
+
/**
|
|
26
|
+
* Enumerations for the format.
|
|
27
|
+
*/
|
|
28
|
+
enum?: {
|
|
29
|
+
values?: Array<{
|
|
30
|
+
value?: (string | number);
|
|
31
|
+
displayName?: string;
|
|
32
|
+
}>;
|
|
33
|
+
} | null;
|
|
34
|
+
};
|
|
@@ -1,19 +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
|
-
};
|
|
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
|
+
};
|
|
@@ -1,21 +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
|
-
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
|
-
};
|
|
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
|
+
};
|
|
@@ -1,19 +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
|
-
};
|
|
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
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A writable implementation of an EnumerationSettings`1.
|
|
3
|
-
*/
|
|
4
|
-
export type StringEnumerationSettings = {
|
|
5
|
-
/**
|
|
6
|
-
* Enumeration values for this property or format.
|
|
7
|
-
*/
|
|
8
|
-
values?: Record<string, string>;
|
|
9
|
-
};
|
|
1
|
+
/**
|
|
2
|
+
* A writable implementation of an EnumerationSettings`1.
|
|
3
|
+
*/
|
|
4
|
+
export type StringEnumerationSettings = {
|
|
5
|
+
/**
|
|
6
|
+
* Enumeration values for this property or format.
|
|
7
|
+
*/
|
|
8
|
+
values?: Record<string, string>;
|
|
9
|
+
};
|
|
@@ -1,14 +1,11 @@
|
|
|
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
|
-
minLength?: number | null;
|
|
8
|
-
maxLength?: number | null;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
pattern?: string | null;
|
|
13
|
-
enum?: StringEnumerationSettings;
|
|
14
|
-
});
|
|
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
|
+
minLength?: number | null;
|
|
8
|
+
maxLength?: number | null;
|
|
9
|
+
pattern?: string | null;
|
|
10
|
+
enum?: StringEnumerationSettings;
|
|
11
|
+
});
|
|
@@ -1,14 +1,11 @@
|
|
|
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
|
-
minLength?: number | null;
|
|
8
|
-
maxLength?: number | null;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
pattern?: string | null;
|
|
13
|
-
enum?: StringEnumerationSettings;
|
|
14
|
-
});
|
|
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
|
+
minLength?: number | null;
|
|
8
|
+
maxLength?: number | null;
|
|
9
|
+
pattern?: string | null;
|
|
10
|
+
enum?: StringEnumerationSettings;
|
|
11
|
+
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ListPropertyItem } from './ListPropertyItem';
|
|
2
|
-
/**
|
|
3
|
-
* Describes a property list item that can contain a URL.
|
|
4
|
-
*/
|
|
5
|
-
export type UrlListItem = ListPropertyItem;
|
|
1
|
+
import type { ListPropertyItem } from './ListPropertyItem';
|
|
2
|
+
/**
|
|
3
|
+
* Describes a property list item that can contain a URL.
|
|
4
|
+
*/
|
|
5
|
+
export type UrlListItem = (ListPropertyItem & Record<string, any>);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ContentTypeProperty } from './ContentTypeProperty';
|
|
2
|
-
/**
|
|
3
|
-
* Describes a property that can contain URLs.
|
|
4
|
-
*/
|
|
5
|
-
export type UrlProperty = ContentTypeProperty;
|
|
1
|
+
import type { ContentTypeProperty } from './ContentTypeProperty';
|
|
2
|
+
/**
|
|
3
|
+
* Describes a property that can contain URLs.
|
|
4
|
+
*/
|
|
5
|
+
export type UrlProperty = (ContentTypeProperty & Record<string, any>);
|
|
@@ -1,12 +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
|
-
}
|
|
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
|
+
}
|