@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.
Files changed (111) hide show
  1. package/dist/api-client.d.ts +35 -0
  2. package/dist/api-client.js +67 -0
  3. package/dist/client/CmsIntegrationApiClient.d.ts +24 -22
  4. package/dist/client/CmsIntegrationApiClient.js +2 -0
  5. package/dist/client/core/ApiError.d.ts +10 -10
  6. package/dist/client/core/ApiRequestOptions.d.ts +13 -13
  7. package/dist/client/core/ApiResult.d.ts +7 -7
  8. package/dist/client/core/BaseHttpRequest.d.ts +8 -8
  9. package/dist/client/core/CancelablePromise.d.ts +20 -20
  10. package/dist/client/core/FetchHttpRequest.d.ts +14 -14
  11. package/dist/client/core/OpenAPI.d.ts +16 -16
  12. package/dist/client/core/request.d.ts +30 -30
  13. package/dist/client/index.d.ts +81 -76
  14. package/dist/client/index.js +3 -1
  15. package/dist/client/models/BinaryProperty.d.ts +8 -8
  16. package/dist/client/models/BooleanProperty.d.ts +5 -5
  17. package/dist/client/models/Changeset.d.ts +26 -26
  18. package/dist/client/models/ChangesetItem.d.ts +11 -11
  19. package/dist/client/models/ChangesetItemPage.d.ts +19 -19
  20. package/dist/client/models/ChangesetPage.d.ts +19 -19
  21. package/dist/client/models/ComponentListItem.d.ts +7 -10
  22. package/dist/client/models/ComponentProperty.d.ts +7 -10
  23. package/dist/client/models/ContentBaseType.d.ts +11 -11
  24. package/dist/client/models/ContentComponent.d.ts +34 -34
  25. package/dist/client/models/ContentItem.d.ts +60 -60
  26. package/dist/client/models/ContentItemListWithContentTypes.d.ts +27 -27
  27. package/dist/client/models/ContentItemPage.d.ts +19 -19
  28. package/dist/client/models/ContentItemWithContentTypes.d.ts +12 -12
  29. package/dist/client/models/ContentListItem.d.ts +8 -14
  30. package/dist/client/models/ContentLocaleInfo.d.ts +19 -11
  31. package/dist/client/models/ContentMetadata.d.ts +38 -46
  32. package/dist/client/models/ContentMetadataPage.d.ts +19 -19
  33. package/dist/client/models/ContentProperty.d.ts +8 -14
  34. package/dist/client/models/ContentReference.d.ts +17 -17
  35. package/dist/client/models/ContentReferenceListItem.d.ts +8 -14
  36. package/dist/client/models/ContentReferenceProperty.d.ts +8 -14
  37. package/dist/client/models/ContentType.d.ts +79 -79
  38. package/dist/client/models/ContentTypeFeature.d.ts +10 -10
  39. package/dist/client/models/ContentTypePage.d.ts +19 -19
  40. package/dist/client/models/ContentTypeProperty.d.ts +47 -47
  41. package/dist/client/models/ContentTypeUsage.d.ts +7 -7
  42. package/dist/client/models/CopyContentOptions.d.ts +21 -21
  43. package/dist/client/models/DateTimeListItem.d.ts +8 -14
  44. package/dist/client/models/DateTimeProperty.d.ts +8 -14
  45. package/dist/client/models/DisplaySetting.d.ts +22 -0
  46. package/dist/client/models/DisplaySetting.js +2 -0
  47. package/dist/client/models/DisplaySettingChoice.d.ts +13 -0
  48. package/dist/client/models/DisplaySettingChoice.js +2 -0
  49. package/dist/client/models/DisplayTemplate.d.ts +49 -0
  50. package/dist/client/models/DisplayTemplate.js +2 -0
  51. package/dist/client/models/DisplayTemplatePage.d.ts +19 -0
  52. package/dist/client/models/DisplayTemplatePage.js +2 -0
  53. package/dist/client/models/DoubleEnumerationSettings.d.ts +9 -9
  54. package/dist/client/models/FloatListItem.d.ts +10 -16
  55. package/dist/client/models/FloatProperty.d.ts +10 -16
  56. package/dist/client/models/ImageDescriptor.d.ts +17 -17
  57. package/dist/client/models/ImportPackageMessage.d.ts +17 -17
  58. package/dist/client/models/ImportPackageResult.d.ts +22 -22
  59. package/dist/client/models/IndexingType.d.ts +8 -8
  60. package/dist/client/models/Int32EnumerationSettings.d.ts +9 -9
  61. package/dist/client/models/IntegerListItem.d.ts +10 -16
  62. package/dist/client/models/IntegerProperty.d.ts +10 -16
  63. package/dist/client/models/JsonStringProperty.d.ts +5 -5
  64. package/dist/client/models/ListProperty.d.ts +26 -26
  65. package/dist/client/models/ListPropertyItem.d.ts +11 -11
  66. package/dist/client/models/LocaleStatus.d.ts +7 -7
  67. package/dist/client/models/Manifest.d.ts +24 -19
  68. package/dist/client/models/OauthToken.d.ts +18 -18
  69. package/dist/client/models/OauthTokenError.d.ts +13 -13
  70. package/dist/client/models/OauthTokenRequest.d.ts +21 -21
  71. package/dist/client/models/PackageJob.d.ts +28 -28
  72. package/dist/client/models/PackageJobMessage.d.ts +17 -17
  73. package/dist/client/models/PackageJobStatus.d.ts +4 -4
  74. package/dist/client/models/ProblemDetails.d.ts +1 -1
  75. package/dist/client/models/PropertyDataType.d.ts +18 -18
  76. package/dist/client/models/PropertyFormat.d.ts +34 -34
  77. package/dist/client/models/PropertyFormatPage.d.ts +19 -19
  78. package/dist/client/models/PropertyGroup.d.ts +21 -21
  79. package/dist/client/models/PropertyGroupPage.d.ts +19 -19
  80. package/dist/client/models/StringEnumerationSettings.d.ts +9 -9
  81. package/dist/client/models/StringListItem.d.ts +11 -14
  82. package/dist/client/models/StringProperty.d.ts +11 -14
  83. package/dist/client/models/UrlListItem.d.ts +5 -5
  84. package/dist/client/models/UrlProperty.d.ts +5 -5
  85. package/dist/client/models/VersionStatus.d.ts +12 -12
  86. package/dist/client/services/ChangesetsService.d.ts +105 -105
  87. package/dist/client/services/ChangesetsService.js +10 -10
  88. package/dist/client/services/ContentService.d.ts +172 -172
  89. package/dist/client/services/ContentService.js +14 -14
  90. package/dist/client/services/ContentTypesService.d.ts +66 -66
  91. package/dist/client/services/ContentTypesService.js +6 -6
  92. package/dist/client/services/DisplayTemplatesService.d.ts +60 -0
  93. package/dist/client/services/DisplayTemplatesService.js +135 -0
  94. package/dist/client/services/OauthService.d.ts +17 -17
  95. package/dist/client/services/OauthService.js +1 -1
  96. package/dist/client/services/PackagesService.d.ts +41 -41
  97. package/dist/client/services/PackagesService.js +3 -3
  98. package/dist/client/services/PropertyFormatsService.d.ts +26 -26
  99. package/dist/client/services/PropertyFormatsService.js +2 -2
  100. package/dist/client/services/PropertyGroupsService.d.ts +61 -61
  101. package/dist/client/services/PropertyGroupsService.js +6 -6
  102. package/dist/config.d.ts +8 -7
  103. package/dist/config.js +2 -1
  104. package/dist/getaccesstoken.d.ts +3 -0
  105. package/dist/getaccesstoken.js +43 -0
  106. package/dist/index.d.ts +16 -15
  107. package/dist/index.js +8 -51
  108. package/dist/types.d.ts +8 -0
  109. package/dist/types.js +2 -0
  110. package/dist/version.json +5 -0
  111. package/package.json +11 -7
@@ -1,5 +1,5 @@
1
- import type { ContentTypeProperty } from './ContentTypeProperty';
2
- /**
3
- * Describes a property that can contain a boolean value.
4
- */
5
- export type BooleanProperty = ContentTypeProperty;
1
+ import type { ContentTypeProperty } from './ContentTypeProperty';
2
+ /**
3
+ * Describes a property that can contain a boolean value.
4
+ */
5
+ export type BooleanProperty = (ContentTypeProperty & Record<string, any>);
@@ -1,26 +1,26 @@
1
- /**
2
- * A writable implementation of an Changeset.
3
- */
4
- export type Changeset = {
5
- /**
6
- * The unique key of this Changeset
7
- */
8
- key: string;
9
- /**
10
- * The source of this Changeset
11
- */
12
- source?: string;
13
- /**
14
- * The name of this Changeset.
15
- */
16
- displayName: string;
17
- /**
18
- * A timestamp indicating when this changeset was first created.
19
- */
20
- readonly created?: string;
21
- /**
22
- * The username of the user that created this changeset.
23
- */
24
- readonly createdBy?: string;
25
- readonly lastModified?: string;
26
- };
1
+ /**
2
+ * A writable implementation of an Changeset.
3
+ */
4
+ export type Changeset = {
5
+ /**
6
+ * The unique key of this Changeset
7
+ */
8
+ key: string;
9
+ /**
10
+ * The source of this Changeset
11
+ */
12
+ source?: string;
13
+ /**
14
+ * The name of this Changeset.
15
+ */
16
+ displayName: string;
17
+ /**
18
+ * A timestamp indicating when this changeset was first created.
19
+ */
20
+ readonly created?: string;
21
+ /**
22
+ * The username of the user that created this changeset.
23
+ */
24
+ readonly createdBy?: string;
25
+ readonly lastModified?: string;
26
+ };
@@ -1,11 +1,11 @@
1
- import type { ContentReference } from './ContentReference';
2
- /**
3
- * A writable implementation of an ChangesetItem.
4
- */
5
- export type ChangesetItem = {
6
- reference: ContentReference;
7
- /**
8
- * Gets/sets item category.
9
- */
10
- category?: string;
11
- };
1
+ import type { ContentReference } from './ContentReference';
2
+ /**
3
+ * A writable implementation of an ChangesetItem.
4
+ */
5
+ export type ChangesetItem = {
6
+ reference: ContentReference;
7
+ /**
8
+ * Gets/sets item category.
9
+ */
10
+ category?: string;
11
+ };
@@ -1,19 +1,19 @@
1
- import type { ChangesetItem } from './ChangesetItem';
2
- export type ChangesetItemPage = {
3
- /**
4
- * The items in this paged collection.
5
- */
6
- readonly items?: Array<ChangesetItem>;
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 { ChangesetItem } from './ChangesetItem';
2
+ export type ChangesetItemPage = {
3
+ /**
4
+ * The items in this paged collection.
5
+ */
6
+ readonly items?: Array<ChangesetItem>;
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,19 +1,19 @@
1
- import type { Changeset } from './Changeset';
2
- export type ChangesetPage = {
3
- /**
4
- * The items in this paged collection.
5
- */
6
- readonly items?: Array<Changeset>;
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 { Changeset } from './Changeset';
2
+ export type ChangesetPage = {
3
+ /**
4
+ * The items in this paged collection.
5
+ */
6
+ readonly items?: Array<Changeset>;
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,10 +1,7 @@
1
- import type { ListPropertyItem } from './ListPropertyItem';
2
- /**
3
- * Describes a property list item that can contain a component instance of a specific type.
4
- */
5
- export type ComponentListItem = (ListPropertyItem & {
6
- /**
7
- * The key of the ContentType that this ComponentProperty can contain.
8
- */
9
- contentType: string;
10
- });
1
+ import type { ListPropertyItem } from './ListPropertyItem';
2
+ /**
3
+ * Describes a property list item that can contain a component instance of a specific type.
4
+ */
5
+ export type ComponentListItem = (ListPropertyItem & {
6
+ contentType: string;
7
+ });
@@ -1,10 +1,7 @@
1
- import type { ContentTypeProperty } from './ContentTypeProperty';
2
- /**
3
- * Describes a property that can contain a component instance of a specific type.
4
- */
5
- export type ComponentProperty = (ContentTypeProperty & {
6
- /**
7
- * The key of the ContentType that this ComponentProperty can contain.
8
- */
9
- contentType: string;
10
- });
1
+ import type { ContentTypeProperty } from './ContentTypeProperty';
2
+ /**
3
+ * Describes a property that can contain a component instance of a specific type.
4
+ */
5
+ export type ComponentProperty = (ContentTypeProperty & {
6
+ contentType: string;
7
+ });
@@ -1,11 +1,11 @@
1
- /**
2
- * Represent the base type of a ContentType.
3
- */
4
- export declare enum ContentBaseType {
5
- PAGE = "page",
6
- COMPONENT = "component",
7
- MEDIA = "media",
8
- IMAGE = "image",
9
- VIDEO = "video",
10
- FOLDER = "folder"
11
- }
1
+ /**
2
+ * Represent the base type of a ContentType.
3
+ */
4
+ export declare enum ContentBaseType {
5
+ PAGE = "page",
6
+ COMPONENT = "component",
7
+ MEDIA = "media",
8
+ IMAGE = "image",
9
+ VIDEO = "video",
10
+ FOLDER = "folder"
11
+ }
@@ -1,34 +1,34 @@
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
- };
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
+ };
@@ -1,60 +1,60 @@
1
- import type { VersionStatus } from './VersionStatus';
2
- /**
3
- * Represents a version of a content item.
4
- */
5
- export type ContentItem = {
6
- /**
7
- * Set of content type properties.
8
- */
9
- properties?: Record<string, any>;
10
- /**
11
- * The key that identifies this content item.
12
- */
13
- readonly key: string;
14
- /**
15
- * The locale of this content instance.
16
- */
17
- readonly locale?: string;
18
- /**
19
- * The version identifier of this content instance.
20
- */
21
- readonly version?: string;
22
- /**
23
- * The content type of this content item.
24
- */
25
- readonly contentType?: string;
26
- /**
27
- * The display name of this content item.
28
- */
29
- displayName: string;
30
- /**
31
- * Indicates a time when this content was published or should be published.
32
- */
33
- published?: string | null;
34
- /**
35
- * Indicates a time when this content expired or should expire.
36
- */
37
- expired?: string | null;
38
- status?: VersionStatus;
39
- /**
40
- * Indicates a time when this content version should transition to published status. Must only be assigned when Status is set to Scheduled.
41
- */
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
- /**
49
- * The key that identifies the container content that this content item belongs to.
50
- */
51
- container?: string | null;
52
- /**
53
- * The key that identifies the owner of this content. Content that is own by another content is also known as an asset.
54
- */
55
- owner?: string | null;
56
- /**
57
- * A string that represents the segment that should be used when routing or generate routes to the current content instance.
58
- */
59
- routeSegment?: string | null;
60
- };
1
+ import type { VersionStatus } from './VersionStatus';
2
+ /**
3
+ * Represents a version of a content item.
4
+ */
5
+ export type ContentItem = {
6
+ /**
7
+ * Set of content type properties.
8
+ */
9
+ properties?: Record<string, any>;
10
+ /**
11
+ * The key that identifies this content item.
12
+ */
13
+ readonly key: string;
14
+ /**
15
+ * The locale of this content instance.
16
+ */
17
+ readonly locale?: string;
18
+ /**
19
+ * The version identifier of this content instance.
20
+ */
21
+ readonly version?: string;
22
+ /**
23
+ * The content type of this content item.
24
+ */
25
+ readonly contentType?: string;
26
+ /**
27
+ * The display name of this content item.
28
+ */
29
+ displayName: string;
30
+ /**
31
+ * Indicates a time when this content was published or should be published.
32
+ */
33
+ published?: string | null;
34
+ /**
35
+ * Indicates a time when this content expired or should expire.
36
+ */
37
+ expired?: string | null;
38
+ status?: VersionStatus;
39
+ /**
40
+ * Indicates a time when this content version should transition to published status. Must only be assigned when Status is set to Scheduled.
41
+ */
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
+ /**
49
+ * The key that identifies the container content that this content item belongs to.
50
+ */
51
+ container?: string | null;
52
+ /**
53
+ * The key that identifies the owner of this content. Content that is own by another content is also known as an asset.
54
+ */
55
+ owner?: string | null;
56
+ /**
57
+ * A string that represents the segment that should be used when routing or generate routes to the current content instance.
58
+ */
59
+ routeSegment?: string | null;
60
+ };
@@ -1,27 +1,27 @@
1
- import type { ContentItem } from './ContentItem';
2
- import type { ContentType } from './ContentType';
3
- /**
4
- * The response object for Page`1 when used ContentType are included.
5
- */
6
- export type ContentItemListWithContentTypes = {
7
- /**
8
- * The content types that are used by the content items in the response.
9
- */
10
- readonly contentTypes?: Array<ContentType>;
11
- /**
12
- * The content items in this paged collection.
13
- */
14
- readonly items?: Array<ContentItem>;
15
- /**
16
- * The zero-based index of the current page.
17
- */
18
- readonly pageIndex?: number;
19
- /**
20
- * The number of item in each page. Not necessarily the same as the number of items in this page.
21
- */
22
- readonly pageSize?: number;
23
- /**
24
- * The estimated total number of items in the collection. May be omitted if the total item count is unknown.
25
- */
26
- readonly totalItemCount?: number;
27
- };
1
+ import type { ContentItem } from './ContentItem';
2
+ import type { ContentType } from './ContentType';
3
+ /**
4
+ * The response object for Page`1 when used ContentType are included.
5
+ */
6
+ export type ContentItemListWithContentTypes = {
7
+ /**
8
+ * The content types that are used by the content items in the response.
9
+ */
10
+ readonly contentTypes?: Array<ContentType>;
11
+ /**
12
+ * The content items in this paged collection.
13
+ */
14
+ readonly items?: Array<ContentItem>;
15
+ /**
16
+ * The zero-based index of the current page.
17
+ */
18
+ readonly pageIndex?: number;
19
+ /**
20
+ * The number of item in each page. Not necessarily the same as the number of items in this page.
21
+ */
22
+ readonly pageSize?: number;
23
+ /**
24
+ * The estimated total number of items in the collection. May be omitted if the total item count is unknown.
25
+ */
26
+ readonly totalItemCount?: number;
27
+ };
@@ -1,19 +1,19 @@
1
- import type { ContentItem } from './ContentItem';
2
- export type ContentItemPage = {
3
- /**
4
- * The items in this paged collection.
5
- */
6
- readonly items?: Array<ContentItem>;
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 { ContentItem } from './ContentItem';
2
+ export type ContentItemPage = {
3
+ /**
4
+ * The items in this paged collection.
5
+ */
6
+ readonly items?: Array<ContentItem>;
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,12 +1,12 @@
1
- import type { ContentItem } from './ContentItem';
2
- import type { ContentType } from './ContentType';
3
- /**
4
- * The response object for ContentItem when used ContentType are included.
5
- */
6
- export type ContentItemWithContentTypes = {
7
- /**
8
- * The content types that are used by the content item in the response.
9
- */
10
- readonly contentTypes?: Array<ContentType>;
11
- item?: ContentItem;
12
- };
1
+ import type { ContentItem } from './ContentItem';
2
+ import type { ContentType } from './ContentType';
3
+ /**
4
+ * The response object for ContentItem when used ContentType are included.
5
+ */
6
+ export type ContentItemWithContentTypes = {
7
+ /**
8
+ * The content types that are used by the content item in the response.
9
+ */
10
+ readonly contentTypes?: Array<ContentType>;
11
+ item?: ContentItem;
12
+ };
@@ -1,14 +1,8 @@
1
- import type { ListPropertyItem } from './ListPropertyItem';
2
- /**
3
- * Describes a property list item that can hold a content item.
4
- */
5
- export type ContentListItem = (ListPropertyItem & {
6
- /**
7
- * Specifies which content types and base types these property items are allowed to contain.
8
- */
9
- allowedTypes?: Array<string>;
10
- /**
11
- * Specifies which content types and base types these property items cannot contain.
12
- */
13
- restrictedTypes?: Array<string>;
14
- });
1
+ import type { ListPropertyItem } from './ListPropertyItem';
2
+ /**
3
+ * Describes a property list item that can hold a content item.
4
+ */
5
+ export type ContentListItem = (ListPropertyItem & {
6
+ allowedTypes?: Array<string>;
7
+ restrictedTypes?: Array<string>;
8
+ });
@@ -1,11 +1,19 @@
1
- import type { LocaleStatus } from './LocaleStatus';
2
- /**
3
- * Describes information about a locale instance of a content item.
4
- */
5
- export type ContentLocaleInfo = {
6
- /**
7
- * The display name of the content.
8
- */
9
- readonly displayName?: string;
10
- status?: LocaleStatus;
11
- };
1
+ import type { LocaleStatus } from './LocaleStatus';
2
+ /**
3
+ * Describes information about a locale instance of a content item.
4
+ */
5
+ export type ContentLocaleInfo = {
6
+ /**
7
+ * The display name of the content.
8
+ */
9
+ readonly displayName?: string;
10
+ /**
11
+ * The date and time when the first locale version for the content was created.
12
+ */
13
+ readonly created?: string;
14
+ /**
15
+ * The username of the user that created this locale version of content.
16
+ */
17
+ readonly createdBy?: string;
18
+ status?: LocaleStatus;
19
+ };