@remkoj/optimizely-cms-api 4.0.0 → 4.2.0
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/index.d.ts +1 -1
- package/dist/client/index.js +3 -1
- package/dist/client/models/Changeset.d.ts +3 -3
- package/dist/client/models/ChangesetItem.d.ts +2 -2
- package/dist/client/models/ComponentListItem.d.ts +3 -0
- package/dist/client/models/ComponentProperty.d.ts +3 -0
- package/dist/client/models/CompositionBehavior.d.ts +7 -0
- package/dist/client/models/CompositionBehavior.js +15 -0
- package/dist/client/models/ContentItem.d.ts +6 -6
- package/dist/client/models/ContentListItem.d.ts +6 -0
- package/dist/client/models/ContentMetadata.d.ts +4 -4
- package/dist/client/models/ContentProperty.d.ts +6 -0
- package/dist/client/models/ContentReferenceListItem.d.ts +6 -0
- package/dist/client/models/ContentReferenceProperty.d.ts +6 -0
- package/dist/client/models/ContentType.d.ts +9 -4
- package/dist/client/models/ContentTypeProperty.d.ts +5 -5
- package/dist/client/models/DateTimeListItem.d.ts +6 -0
- package/dist/client/models/DateTimeProperty.d.ts +6 -0
- package/dist/client/models/DisplaySettingChoice.d.ts +1 -1
- package/dist/client/models/DoubleEnumerationSettings.d.ts +1 -1
- package/dist/client/models/DoubleEnumerationValue.d.ts +2 -2
- package/dist/client/models/FloatListItem.d.ts +6 -0
- package/dist/client/models/FloatProperty.d.ts +6 -0
- package/dist/client/models/IndexingType.d.ts +1 -1
- package/dist/client/models/IndexingType.js +1 -1
- package/dist/client/models/Int32EnumerationSettings.d.ts +1 -1
- package/dist/client/models/Int32EnumerationValue.d.ts +2 -2
- package/dist/client/models/IntegerListItem.d.ts +6 -0
- package/dist/client/models/IntegerProperty.d.ts +6 -0
- package/dist/client/models/Manifest.d.ts +4 -4
- package/dist/client/models/PropertyFormat.d.ts +3 -0
- package/dist/client/models/StringEnumerationSettings.d.ts +1 -1
- package/dist/client/models/StringEnumerationValue.d.ts +2 -2
- package/dist/client/models/StringListItem.d.ts +9 -0
- package/dist/client/models/StringProperty.d.ts +9 -0
- package/dist/version.json +2 -2
- package/package.json +4 -4
- package/dist/client/models/ContentComponent.d.ts +0 -34
- package/dist/client/models/ContentComponent.js +0 -2
package/dist/client/index.d.ts
CHANGED
|
@@ -12,8 +12,8 @@ export type { ChangesetItemPage } from './models/ChangesetItemPage';
|
|
|
12
12
|
export type { ChangesetPage } from './models/ChangesetPage';
|
|
13
13
|
export type { ComponentListItem } from './models/ComponentListItem';
|
|
14
14
|
export type { ComponentProperty } from './models/ComponentProperty';
|
|
15
|
+
export { CompositionBehavior } from './models/CompositionBehavior';
|
|
15
16
|
export { ContentBaseType } from './models/ContentBaseType';
|
|
16
|
-
export type { ContentComponent } from './models/ContentComponent';
|
|
17
17
|
export type { ContentItem } from './models/ContentItem';
|
|
18
18
|
export type { ContentItemListWithContentTypes } from './models/ContentItemListWithContentTypes';
|
|
19
19
|
export type { ContentItemPage } from './models/ContentItemPage';
|
package/dist/client/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PropertyGroupsService = exports.PropertyFormatsService = exports.PackagesService = exports.OauthService = exports.DisplayTemplatesService = exports.ContentTypesService = exports.ContentService = exports.ChangesetsService = exports.VersionStatus = exports.PropertyDataType = exports.LocaleStatus = exports.IndexingType = exports.ContentTypeUsage = exports.ContentTypeFeature = exports.ContentBaseType = exports.OpenAPI = exports.CancelError = exports.CancelablePromise = exports.BaseHttpRequest = exports.ApiError = exports.CmsIntegrationApiClient = void 0;
|
|
3
|
+
exports.PropertyGroupsService = exports.PropertyFormatsService = exports.PackagesService = exports.OauthService = exports.DisplayTemplatesService = exports.ContentTypesService = exports.ContentService = exports.ChangesetsService = exports.VersionStatus = exports.PropertyDataType = exports.LocaleStatus = exports.IndexingType = exports.ContentTypeUsage = exports.ContentTypeFeature = exports.ContentBaseType = exports.CompositionBehavior = exports.OpenAPI = exports.CancelError = exports.CancelablePromise = exports.BaseHttpRequest = exports.ApiError = exports.CmsIntegrationApiClient = void 0;
|
|
4
4
|
/* generated using openapi-typescript-codegen -- do not edit */
|
|
5
5
|
/* istanbul ignore file */
|
|
6
6
|
/* tslint:disable */
|
|
@@ -16,6 +16,8 @@ Object.defineProperty(exports, "CancelablePromise", { enumerable: true, get: fun
|
|
|
16
16
|
Object.defineProperty(exports, "CancelError", { enumerable: true, get: function () { return CancelablePromise_1.CancelError; } });
|
|
17
17
|
var OpenAPI_1 = require("./core/OpenAPI");
|
|
18
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; } });
|
|
19
21
|
var ContentBaseType_1 = require("./models/ContentBaseType");
|
|
20
22
|
Object.defineProperty(exports, "ContentBaseType", { enumerable: true, get: function () { return ContentBaseType_1.ContentBaseType; } });
|
|
21
23
|
var ContentTypeFeature_1 = require("./models/ContentTypeFeature");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Changesets are used to group work on several content items together.
|
|
3
3
|
*/
|
|
4
4
|
export type Changeset = {
|
|
5
5
|
/**
|
|
6
|
-
* The unique key of this Changeset
|
|
6
|
+
* The unique key of this Changeset.
|
|
7
7
|
*/
|
|
8
8
|
key: string;
|
|
9
9
|
/**
|
|
@@ -22,5 +22,5 @@ export type Changeset = {
|
|
|
22
22
|
* The username of the user that created this changeset.
|
|
23
23
|
*/
|
|
24
24
|
readonly createdBy?: string;
|
|
25
|
-
|
|
25
|
+
lastModified?: string;
|
|
26
26
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { ContentReference } from './ContentReference';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Items in an changeset that contains a link to the specific content version.
|
|
4
4
|
*/
|
|
5
5
|
export type ChangesetItem = {
|
|
6
6
|
reference: ContentReference;
|
|
7
7
|
/**
|
|
8
|
-
* Gets/sets item category.
|
|
8
|
+
* Gets/sets the changeset item category.
|
|
9
9
|
*/
|
|
10
10
|
category?: string;
|
|
11
11
|
};
|
|
@@ -3,5 +3,8 @@ import type { ListPropertyItem } from './ListPropertyItem';
|
|
|
3
3
|
* Describes a property list item that can contain a component instance of a specific type.
|
|
4
4
|
*/
|
|
5
5
|
export type ComponentListItem = (ListPropertyItem & {
|
|
6
|
+
/**
|
|
7
|
+
* The key of the ContentType that this ComponentListItem can contain.
|
|
8
|
+
*/
|
|
6
9
|
contentType: string;
|
|
7
10
|
});
|
|
@@ -3,5 +3,8 @@ import type { ContentTypeProperty } from './ContentTypeProperty';
|
|
|
3
3
|
* Describes a property that can contain a component instance of a specific type.
|
|
4
4
|
*/
|
|
5
5
|
export type ComponentProperty = (ContentTypeProperty & {
|
|
6
|
+
/**
|
|
7
|
+
* The key of the ContentType that this ComponentProperty can contain.
|
|
8
|
+
*/
|
|
6
9
|
contentType: string;
|
|
7
10
|
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CompositionBehavior = void 0;
|
|
4
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
5
|
+
/* istanbul ignore file */
|
|
6
|
+
/* tslint:disable */
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
/**
|
|
9
|
+
* Represent a Composition behavior for a ContentType.
|
|
10
|
+
*/
|
|
11
|
+
var CompositionBehavior;
|
|
12
|
+
(function (CompositionBehavior) {
|
|
13
|
+
CompositionBehavior["SECTION_ENABLED"] = "sectionEnabled";
|
|
14
|
+
CompositionBehavior["ELEMENT_ENABLED"] = "elementEnabled";
|
|
15
|
+
})(CompositionBehavior || (exports.CompositionBehavior = CompositionBehavior = {}));
|
|
@@ -4,7 +4,7 @@ import type { VersionStatus } from './VersionStatus';
|
|
|
4
4
|
*/
|
|
5
5
|
export type ContentItem = {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Properties as they are defined by corresponding component or content type.
|
|
8
8
|
*/
|
|
9
9
|
properties?: Record<string, any>;
|
|
10
10
|
/**
|
|
@@ -40,11 +40,6 @@ export type ContentItem = {
|
|
|
40
40
|
* Indicates a time when this content version should transition to published status. Must only be assigned when Status is set to Scheduled.
|
|
41
41
|
*/
|
|
42
42
|
delayPublishUntil?: string | null;
|
|
43
|
-
readonly lastModified?: string;
|
|
44
|
-
/**
|
|
45
|
-
* The username of the user that made the latest modification to this content instance.
|
|
46
|
-
*/
|
|
47
|
-
readonly lastModifiedBy?: string;
|
|
48
43
|
/**
|
|
49
44
|
* The key that identifies the container content that this content item belongs to.
|
|
50
45
|
*/
|
|
@@ -57,4 +52,9 @@ export type ContentItem = {
|
|
|
57
52
|
* A string that represents the segment that should be used when routing or generate routes to the current content instance.
|
|
58
53
|
*/
|
|
59
54
|
routeSegment?: string | null;
|
|
55
|
+
lastModified?: string;
|
|
56
|
+
/**
|
|
57
|
+
* The username of the user that made the latest modification to this content instance.
|
|
58
|
+
*/
|
|
59
|
+
readonly lastModifiedBy?: string;
|
|
60
60
|
};
|
|
@@ -3,6 +3,12 @@ import type { ListPropertyItem } from './ListPropertyItem';
|
|
|
3
3
|
* Describes a property list item that can hold a content item.
|
|
4
4
|
*/
|
|
5
5
|
export type ContentListItem = (ListPropertyItem & {
|
|
6
|
+
/**
|
|
7
|
+
* Specifies which content types and base types these property items are allowed to contain.
|
|
8
|
+
*/
|
|
6
9
|
allowedTypes?: Array<string>;
|
|
10
|
+
/**
|
|
11
|
+
* Specifies which content types and base types these property items cannot contain.
|
|
12
|
+
*/
|
|
7
13
|
restrictedTypes?: Array<string>;
|
|
8
14
|
});
|
|
@@ -11,6 +11,10 @@ export type ContentMetadata = {
|
|
|
11
11
|
* The content type of this content.
|
|
12
12
|
*/
|
|
13
13
|
contentType?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Set of locales that this content has been created for.
|
|
16
|
+
*/
|
|
17
|
+
readonly locales?: Record<string, ContentLocaleInfo>;
|
|
14
18
|
/**
|
|
15
19
|
* The key that identifies the container content that this content belongs to.
|
|
16
20
|
*/
|
|
@@ -23,10 +27,6 @@ export type ContentMetadata = {
|
|
|
23
27
|
* The key that identifies the owner of this content. Content that is own by another content is also known as an asset.
|
|
24
28
|
*/
|
|
25
29
|
owner?: string | null;
|
|
26
|
-
/**
|
|
27
|
-
* Set of locales that the content item has been created for.
|
|
28
|
-
*/
|
|
29
|
-
readonly locales?: Record<string, ContentLocaleInfo>;
|
|
30
30
|
/**
|
|
31
31
|
* A timestamp, which if provided, indicates when this content was deleted.
|
|
32
32
|
*/
|
|
@@ -3,6 +3,12 @@ import type { ContentTypeProperty } from './ContentTypeProperty';
|
|
|
3
3
|
* Describes a property that can contain a content item.
|
|
4
4
|
*/
|
|
5
5
|
export type ContentProperty = (ContentTypeProperty & {
|
|
6
|
+
/**
|
|
7
|
+
* Specifies which content types and base types this property is allowed to contain.
|
|
8
|
+
*/
|
|
6
9
|
allowedTypes?: Array<string>;
|
|
10
|
+
/**
|
|
11
|
+
* Specifies which content types and base types this property cannot contain.
|
|
12
|
+
*/
|
|
7
13
|
restrictedTypes?: Array<string>;
|
|
8
14
|
});
|
|
@@ -3,6 +3,12 @@ import type { ListPropertyItem } from './ListPropertyItem';
|
|
|
3
3
|
* Describes a property list item that can hold a reference to a content item.
|
|
4
4
|
*/
|
|
5
5
|
export type ContentReferenceListItem = (ListPropertyItem & {
|
|
6
|
+
/**
|
|
7
|
+
* Specifies which content types and base types these list items are allowed to reference.
|
|
8
|
+
*/
|
|
6
9
|
allowedTypes?: Array<string>;
|
|
10
|
+
/**
|
|
11
|
+
* Specifies which content types and base types these list items cannot contain.
|
|
12
|
+
*/
|
|
7
13
|
restrictedTypes?: Array<string>;
|
|
8
14
|
});
|
|
@@ -3,6 +3,12 @@ import type { ContentTypeProperty } from './ContentTypeProperty';
|
|
|
3
3
|
* Describes a property that can contain a reference to a content item.
|
|
4
4
|
*/
|
|
5
5
|
export type ContentReferenceProperty = (ContentTypeProperty & {
|
|
6
|
+
/**
|
|
7
|
+
* Specifies which content types and base types this property is allowed to reference.
|
|
8
|
+
*/
|
|
6
9
|
allowedTypes?: Array<string>;
|
|
10
|
+
/**
|
|
11
|
+
* Specifies which content types and base types this property is restricted from referencing.
|
|
12
|
+
*/
|
|
7
13
|
restrictedTypes?: Array<string>;
|
|
8
14
|
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { BinaryProperty } from './BinaryProperty';
|
|
2
2
|
import type { BooleanProperty } from './BooleanProperty';
|
|
3
3
|
import type { ComponentProperty } from './ComponentProperty';
|
|
4
|
+
import type { CompositionBehavior } from './CompositionBehavior';
|
|
4
5
|
import type { ContentBaseType } from './ContentBaseType';
|
|
5
6
|
import type { ContentProperty } from './ContentProperty';
|
|
6
7
|
import type { ContentReferenceProperty } from './ContentReferenceProperty';
|
|
@@ -56,17 +57,21 @@ export type ContentType = {
|
|
|
56
57
|
*/
|
|
57
58
|
mediaFileExtensions?: Array<string>;
|
|
58
59
|
/**
|
|
59
|
-
*
|
|
60
|
+
* Provides a set of composition behaviors specifying how this content type can be used within compositions.
|
|
60
61
|
*/
|
|
61
|
-
|
|
62
|
+
compositionBehaviors?: Array<CompositionBehavior>;
|
|
62
63
|
/**
|
|
63
|
-
*
|
|
64
|
+
* A timestamp indicating when this ContentType was first created.
|
|
64
65
|
*/
|
|
65
|
-
readonly
|
|
66
|
+
readonly created?: string;
|
|
66
67
|
/**
|
|
67
68
|
* Indicates the last time this content type was modified.
|
|
68
69
|
*/
|
|
69
70
|
readonly lastModified?: string;
|
|
71
|
+
/**
|
|
72
|
+
* The username of the user that made the latest modification to this ContentType.
|
|
73
|
+
*/
|
|
74
|
+
readonly lastModifiedBy?: string;
|
|
70
75
|
/**
|
|
71
76
|
* Dictionary with all custom properties of this ContentType.
|
|
72
77
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { IndexingType } from './IndexingType';
|
|
2
2
|
import type { PropertyDataType } from './PropertyDataType';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Describes a property of a ContentType in the CMS.
|
|
5
5
|
*/
|
|
6
6
|
export type ContentTypeProperty = {
|
|
7
7
|
type: PropertyDataType;
|
|
@@ -17,15 +17,15 @@ export type ContentTypeProperty = {
|
|
|
17
17
|
* A description of this ContentTypeProperty.
|
|
18
18
|
*/
|
|
19
19
|
description?: string;
|
|
20
|
-
/**
|
|
21
|
-
* Indicates if a property instance of this type must always be assigned a value.
|
|
22
|
-
*/
|
|
23
|
-
required?: boolean;
|
|
24
20
|
/**
|
|
25
21
|
* Indicates if a property instance of this type should be localized for each locale
|
|
26
22
|
* or if values are shared between all locales.
|
|
27
23
|
*/
|
|
28
24
|
localized?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Indicates if a property instance of this type must always be assigned a value.
|
|
27
|
+
*/
|
|
28
|
+
required?: boolean;
|
|
29
29
|
/**
|
|
30
30
|
* A reference to the PropertyGroup that this ContentTypeProperty is part of.
|
|
31
31
|
* If this value is empty, a group may be assigned by the system.
|
|
@@ -3,6 +3,12 @@ import type { ListPropertyItem } from './ListPropertyItem';
|
|
|
3
3
|
* Describes a property list item that can contain a timestamp.
|
|
4
4
|
*/
|
|
5
5
|
export type DateTimeListItem = (ListPropertyItem & {
|
|
6
|
+
/**
|
|
7
|
+
* The earliest timestamp that list items of this type should be able to contain.
|
|
8
|
+
*/
|
|
6
9
|
minimum?: string | null;
|
|
10
|
+
/**
|
|
11
|
+
* The latest timestamp that list items of this type should be able to contain.
|
|
12
|
+
*/
|
|
7
13
|
maximum?: string | null;
|
|
8
14
|
});
|
|
@@ -3,6 +3,12 @@ import type { ContentTypeProperty } from './ContentTypeProperty';
|
|
|
3
3
|
* Describes a property that can contain a timestamp.
|
|
4
4
|
*/
|
|
5
5
|
export type DateTimeProperty = (ContentTypeProperty & {
|
|
6
|
+
/**
|
|
7
|
+
* The earliest timestamp that properties of this type should be able to contain.
|
|
8
|
+
*/
|
|
6
9
|
minimum?: string | null;
|
|
10
|
+
/**
|
|
11
|
+
* The latest timestamp that properties of this type should be able to contain.
|
|
12
|
+
*/
|
|
7
13
|
maximum?: string | null;
|
|
8
14
|
});
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export type DoubleEnumerationValue = {
|
|
5
5
|
/**
|
|
6
|
-
* The display name of the
|
|
6
|
+
* The display name of the value.
|
|
7
7
|
*/
|
|
8
8
|
displayName?: string;
|
|
9
9
|
/**
|
|
10
|
-
* The
|
|
10
|
+
* The underlying enumeration value.
|
|
11
11
|
*/
|
|
12
12
|
value?: number;
|
|
13
13
|
};
|
|
@@ -4,7 +4,13 @@ import type { ListPropertyItem } from './ListPropertyItem';
|
|
|
4
4
|
* Describes a property list item that can contain a float number.
|
|
5
5
|
*/
|
|
6
6
|
export type FloatListItem = (ListPropertyItem & {
|
|
7
|
+
/**
|
|
8
|
+
* The minimum value that list items of this type should be able to contain.
|
|
9
|
+
*/
|
|
7
10
|
minimum?: number | null;
|
|
11
|
+
/**
|
|
12
|
+
* The maximum value that list items of this type should be able to contain.
|
|
13
|
+
*/
|
|
8
14
|
maximum?: number | null;
|
|
9
15
|
enum?: DoubleEnumerationSettings;
|
|
10
16
|
});
|
|
@@ -4,7 +4,13 @@ import type { DoubleEnumerationSettings } from './DoubleEnumerationSettings';
|
|
|
4
4
|
* Describes a property that can contain a float number.
|
|
5
5
|
*/
|
|
6
6
|
export type FloatProperty = (ContentTypeProperty & {
|
|
7
|
+
/**
|
|
8
|
+
* The minimum value that properties of this type should be able to contain.
|
|
9
|
+
*/
|
|
7
10
|
minimum?: number | null;
|
|
11
|
+
/**
|
|
12
|
+
* The maximum value that properties of this type should be able to contain.
|
|
13
|
+
*/
|
|
8
14
|
maximum?: number | null;
|
|
9
15
|
enum?: DoubleEnumerationSettings;
|
|
10
16
|
});
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export type Int32EnumerationValue = {
|
|
5
5
|
/**
|
|
6
|
-
* The display name of the
|
|
6
|
+
* The display name of the value.
|
|
7
7
|
*/
|
|
8
8
|
displayName?: string;
|
|
9
9
|
/**
|
|
10
|
-
* The
|
|
10
|
+
* The underlying enumeration value.
|
|
11
11
|
*/
|
|
12
12
|
value?: number;
|
|
13
13
|
};
|
|
@@ -4,7 +4,13 @@ import type { ListPropertyItem } from './ListPropertyItem';
|
|
|
4
4
|
* Describes a property list item that can contain integers.
|
|
5
5
|
*/
|
|
6
6
|
export type IntegerListItem = (ListPropertyItem & {
|
|
7
|
+
/**
|
|
8
|
+
* The minimum value that list items of this type should be able to contain.
|
|
9
|
+
*/
|
|
7
10
|
minimum?: number | null;
|
|
11
|
+
/**
|
|
12
|
+
* The maximum value that list items of this type should be able to contain.
|
|
13
|
+
*/
|
|
8
14
|
maximum?: number | null;
|
|
9
15
|
enum?: Int32EnumerationSettings;
|
|
10
16
|
});
|
|
@@ -4,7 +4,13 @@ import type { Int32EnumerationSettings } from './Int32EnumerationSettings';
|
|
|
4
4
|
* Describes a property that can contain an integer.
|
|
5
5
|
*/
|
|
6
6
|
export type IntegerProperty = (ContentTypeProperty & {
|
|
7
|
+
/**
|
|
8
|
+
* The minimum value that properties of this type should be able to contain.
|
|
9
|
+
*/
|
|
7
10
|
minimum?: number | null;
|
|
11
|
+
/**
|
|
12
|
+
* The maximum value that properties of this type should be able to contain.
|
|
13
|
+
*/
|
|
8
14
|
maximum?: number | null;
|
|
9
15
|
enum?: Int32EnumerationSettings;
|
|
10
16
|
});
|
|
@@ -2,19 +2,19 @@ import type { ContentType } from './ContentType';
|
|
|
2
2
|
import type { DisplayTemplate } from './DisplayTemplate';
|
|
3
3
|
import type { PropertyGroup } from './PropertyGroup';
|
|
4
4
|
/**
|
|
5
|
-
* Manifest that
|
|
5
|
+
* Manifest that describe CMS definitions.
|
|
6
6
|
*/
|
|
7
7
|
export type Manifest = {
|
|
8
8
|
/**
|
|
9
|
-
* List of content type property groups.
|
|
9
|
+
* List of content type property groups that are part of this manifest.
|
|
10
10
|
*/
|
|
11
11
|
propertyGroups?: Array<PropertyGroup>;
|
|
12
12
|
/**
|
|
13
|
-
* List of content types.
|
|
13
|
+
* List of content types that are part of this manifest.
|
|
14
14
|
*/
|
|
15
15
|
contentTypes?: Array<ContentType>;
|
|
16
16
|
/**
|
|
17
|
-
* List of display templates.
|
|
17
|
+
* List of display templates that are part of this manifest.
|
|
18
18
|
*/
|
|
19
19
|
displayTemplates?: Array<DisplayTemplate>;
|
|
20
20
|
/**
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export type StringEnumerationValue = {
|
|
5
5
|
/**
|
|
6
|
-
* The display name of the
|
|
6
|
+
* The display name of the value.
|
|
7
7
|
*/
|
|
8
8
|
displayName?: string;
|
|
9
9
|
/**
|
|
10
|
-
* The
|
|
10
|
+
* The underlying enumeration value.
|
|
11
11
|
*/
|
|
12
12
|
value?: string;
|
|
13
13
|
};
|
|
@@ -4,8 +4,17 @@ import type { StringEnumerationSettings } from './StringEnumerationSettings';
|
|
|
4
4
|
* Describes a property list item that can contain a string.
|
|
5
5
|
*/
|
|
6
6
|
export type StringListItem = (ListPropertyItem & {
|
|
7
|
+
/**
|
|
8
|
+
* The minimum string length that list items of this type should be able to contain.
|
|
9
|
+
*/
|
|
7
10
|
minLength?: number | null;
|
|
11
|
+
/**
|
|
12
|
+
* The maximum string length that list items of this type should be able to contain.
|
|
13
|
+
*/
|
|
8
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
|
+
*/
|
|
9
18
|
pattern?: string | null;
|
|
10
19
|
enum?: StringEnumerationSettings;
|
|
11
20
|
});
|
|
@@ -4,8 +4,17 @@ import type { StringEnumerationSettings } from './StringEnumerationSettings';
|
|
|
4
4
|
* Describes a property that can contain strings.
|
|
5
5
|
*/
|
|
6
6
|
export type StringProperty = (ContentTypeProperty & {
|
|
7
|
+
/**
|
|
8
|
+
* The minimum string length that properties of this type should be able to contain.
|
|
9
|
+
*/
|
|
7
10
|
minLength?: number | null;
|
|
11
|
+
/**
|
|
12
|
+
* The maximum string length that properties of this type should be able to contain.
|
|
13
|
+
*/
|
|
8
14
|
maxLength?: number | null;
|
|
15
|
+
/**
|
|
16
|
+
* Regular expression pattern that limits what strings that properties of this type should be able to contain.
|
|
17
|
+
*/
|
|
9
18
|
pattern?: string | null;
|
|
10
19
|
enum?: StringEnumerationSettings;
|
|
11
20
|
});
|
package/dist/version.json
CHANGED
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@remkoj/optimizely-cms-api",
|
|
3
3
|
"displayName": "Optimizely CMS - Integration API Client",
|
|
4
4
|
"description": "A Javascript client for the Integration API provided by the Optimizely CMS.",
|
|
5
|
-
"version": "4.
|
|
5
|
+
"version": "4.2.0",
|
|
6
6
|
"type": "commonjs",
|
|
7
7
|
"license": "Apache-2.0",
|
|
8
8
|
"main": "./dist/index.js",
|
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
"./dist"
|
|
12
12
|
],
|
|
13
13
|
"devDependencies": {
|
|
14
|
-
"@types/node": "^22.10.
|
|
14
|
+
"@types/node": "^22.10.7",
|
|
15
15
|
"dotenv": "^16.4.7",
|
|
16
|
-
"glob": "^11.0.
|
|
16
|
+
"glob": "^11.0.1",
|
|
17
17
|
"openapi-typescript-codegen": "^0.29.0",
|
|
18
18
|
"tslib": "^2.8.1",
|
|
19
|
-
"typescript": "^5.7.
|
|
19
|
+
"typescript": "^5.7.3"
|
|
20
20
|
},
|
|
21
21
|
"scripts": {
|
|
22
22
|
"clean": "tsc --build --clean",
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Represents a content component.
|
|
3
|
-
*/
|
|
4
|
-
export type ContentComponent = {
|
|
5
|
-
/**
|
|
6
|
-
* The name of the content component. If Reference is set, the name is automatically set to the name of the referenced content.
|
|
7
|
-
*/
|
|
8
|
-
name?: string;
|
|
9
|
-
/**
|
|
10
|
-
* An optional display option for the content component.
|
|
11
|
-
*/
|
|
12
|
-
displayOption?: string;
|
|
13
|
-
/**
|
|
14
|
-
* An optional group for the personalizable component.
|
|
15
|
-
*/
|
|
16
|
-
segmentationGroup?: string;
|
|
17
|
-
/**
|
|
18
|
-
* Specifies the settings for the content component.
|
|
19
|
-
*/
|
|
20
|
-
segments?: Array<string>;
|
|
21
|
-
/**
|
|
22
|
-
* A reference to the content of this component.
|
|
23
|
-
* Cannot be assigned together with Content.
|
|
24
|
-
*/
|
|
25
|
-
reference?: string;
|
|
26
|
-
/**
|
|
27
|
-
* The key of the content type that this is an embedded instance of.
|
|
28
|
-
*/
|
|
29
|
-
contentType?: string;
|
|
30
|
-
/**
|
|
31
|
-
* Dictionary with all custom properties as specified by associated ContentType
|
|
32
|
-
*/
|
|
33
|
-
content?: any;
|
|
34
|
-
};
|