@enonic-types/lib-content 8.0.0-A2 → 8.0.0-A3
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/content.d.ts +6 -6
- package/package.json +2 -2
package/content.d.ts
CHANGED
|
@@ -11,8 +11,8 @@ declare global {
|
|
|
11
11
|
'/lib/xp/content': typeof import('./content');
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
import { Aggregations, AggregationsResult, AggregationsToAggregationResults, Attachment, ByteSource, Content, ContentComponent, ContentComponentConstraint, ContentInheritValue, Filter, FormItem, Highlight, HighlightResult, Layout, LayoutComponent, Page, PageComponent, Part, PartComponent, PublishInfo, QueryDsl, SortDsl, UserKey, ValidationError, Workflow, WorkflowState } from '@enonic-types/core';
|
|
15
|
-
export type { Aggregation, Aggregations, AggregationsResult, Attachment, BooleanDslExpression, BooleanFilter, Bucket, BucketsAggregationResult, BucketsAggregationsUnion, ByteSource, Component, Content, ContentComponent, ContentComponentConstraint, DateBucket, DateHistogramAggregation, DateRange, DateRangeAggregation, DistanceUnit, DslOperator, DslQueryType, ExistsDslExpression, ExistsFilter, FieldSortDsl, Filter, FormItem, FormItemFormFragment, FormItemInput, FormItemLayout, FormItemOptionSet, FormItemSet, FulltextDslExpression, GeoDistanceAggregation, GeoDistanceSortDsl, GroupKey, HasValueFilter, Highlight, HighlightResult, HistogramAggregation, IdsFilter, InDslExpression, InputType, LikeDslExpression, MatchAllDslExpression, MaxAggregation, MinAggregation, NgramDslExpression, NotExistsFilter, NumericBucket, NumericRange, NumericRangeAggregation, PathMatchDslExpression, PublishInfo, QueryDsl, RangeDslExpression, Region, RoleKey, ScriptValue, SingleValueMetricAggregationResult, SingleValueMetricAggregationsUnion, SortDirection, SortDsl, StatsAggregation, StatsAggregationResult, StemmedDslExpression, TermDslExpression, TermsAggregation, UserKey, ValueCountAggregation, ValueType, } from '@enonic-types/core';
|
|
14
|
+
import { Aggregations, AggregationsResult, AggregationsToAggregationResults, Attachment, ByteSource, Content, ContentComponent, ContentComponentConstraint, ContentInheritValue, Filter, FormItem, Highlight, HighlightResult, Layout, LayoutComponent, Page, PageComponent, Part, PartComponent, PublishInfo, QueryDsl, SortDsl, UserKey, ValidationError, Workflow, WorkflowState, ConfigValue } from '@enonic-types/core';
|
|
15
|
+
export type { Aggregation, Aggregations, AggregationsResult, Attachment, BooleanDslExpression, BooleanFilter, Bucket, BucketsAggregationResult, BucketsAggregationsUnion, ByteSource, Component, Content, ContentComponent, ContentComponentConstraint, DateBucket, DateHistogramAggregation, DateRange, DateRangeAggregation, DistanceUnit, DslOperator, DslQueryType, ExistsDslExpression, ExistsFilter, FieldSortDsl, Filter, FormItem, FormItemFormFragment, FormItemInput, FormItemLayout, FormItemOptionSet, FormItemSet, FulltextDslExpression, GeoDistanceAggregation, GeoDistanceSortDsl, GroupKey, HasValueFilter, Highlight, HighlightResult, HistogramAggregation, IdsFilter, InDslExpression, InputType, LikeDslExpression, MatchAllDslExpression, MaxAggregation, MinAggregation, NgramDslExpression, NotExistsFilter, NumericBucket, NumericRange, NumericRangeAggregation, PathMatchDslExpression, PublishInfo, QueryDsl, RangeDslExpression, Region, RoleKey, ScriptValue, SingleValueMetricAggregationResult, SingleValueMetricAggregationsUnion, SortDirection, SortDsl, StatsAggregation, StatsAggregationResult, StemmedDslExpression, TermDslExpression, TermsAggregation, UserKey, ValueCountAggregation, ValueType, ConfigValue, } from '@enonic-types/core';
|
|
16
16
|
type Attachments = Content['attachments'];
|
|
17
17
|
export type PageComponentWhenAutomaticTemplate = Record<string, never>;
|
|
18
18
|
export interface PageComponentWhenSpecificTemplate {
|
|
@@ -589,31 +589,31 @@ export interface Icon {
|
|
|
589
589
|
* @typedef ContentType
|
|
590
590
|
* @type Object
|
|
591
591
|
* @property {string} name Name of the content type.
|
|
592
|
-
* @property {string}
|
|
592
|
+
* @property {string} title Title of the content type.
|
|
593
593
|
* @property {string} description Description of the content type.
|
|
594
594
|
* @property {string} superType Name of the super type, or null if it has no super type.
|
|
595
595
|
* @property {boolean} abstract Whether or not content of this type may be instantiated.
|
|
596
596
|
* @property {boolean} final Whether or not it may be used as super type of other content types.
|
|
597
597
|
* @property {boolean} allowChildContent Whether or not allow creating child items on content of this type.
|
|
598
|
-
* @property {string} displayNameExpression ES6 string template for generating the content name based on values in the content form.
|
|
599
598
|
* @property {object} [icon] Icon of the content type.
|
|
600
599
|
* @property {object} [icon.data] Stream with the binary data for the icon.
|
|
601
600
|
* @property {string} [icon.mimeType] Mime type of the icon image.
|
|
602
601
|
* @property {string} [icon.modifiedTime] Modified time of the icon. May be used for caching.
|
|
603
602
|
* @property {object[]} form Form schema represented as an array of form items: Input, ItemSet, Layout, OptionSet.
|
|
603
|
+
* @property {object} config Custom schema configuration for the descriptor.
|
|
604
604
|
*/
|
|
605
605
|
export interface ContentType {
|
|
606
606
|
name: string;
|
|
607
|
-
|
|
607
|
+
title: string;
|
|
608
608
|
description: string;
|
|
609
609
|
superType: string;
|
|
610
610
|
abstract: boolean;
|
|
611
611
|
final: boolean;
|
|
612
612
|
allowChildContent: boolean;
|
|
613
|
-
displayNameExpression: string;
|
|
614
613
|
modifiedTime: string;
|
|
615
614
|
icon?: Icon;
|
|
616
615
|
form: FormItem[];
|
|
616
|
+
config: Record<string, ConfigValue>;
|
|
617
617
|
}
|
|
618
618
|
/**
|
|
619
619
|
* Returns the properties and icon of the specified content type.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enonic-types/lib-content",
|
|
3
|
-
"version": "8.0.0-
|
|
3
|
+
"version": "8.0.0-A3",
|
|
4
4
|
"description": "Type definitions for lib-content.",
|
|
5
5
|
"types": "content.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"homepage": "https://github.com/enonic/xp/tree/master#readme",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@enonic-types/core": "8.0.0-
|
|
30
|
+
"@enonic-types/core": "8.0.0-A3"
|
|
31
31
|
},
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"access": "public"
|