@enonic-types/lib-content
Advanced tools
Comparing version 7.12.0-B1 to 7.12.0-RC1
@@ -16,4 +16,4 @@ /** | ||
} | ||
import type { Aggregation, AggregationsResult, ByteSource, Content, Filter, FormItem, Highlight, HighlightResult, PublishInfo, QueryDsl, SortDsl } from '@enonic-types/core'; | ||
export type { Attachment, ByteSource, PublishInfo, Content, Component, Region, QueryDsl, InDslExpression, ExistsDslExpression, FulltextDslExpression, LikeDslExpression, StemmedDslExpression, TermDslExpression, RangeDslExpression, NgramDslExpression, BooleanDslExpression, MatchAllDslExpression, PathMatchDslExpression, DateBucket, BucketsAggregationResult, StatsAggregationResult, SingleValueMetricAggregationResult, AggregationsResult, Aggregation, TermsAggregation, HistogramAggregation, DateHistogramAggregation, NumericRange, NumericRangeAggregation, DateRange, DateRangeAggregation, StatsAggregation, GeoDistanceAggregation, MinAggregation, MaxAggregation, ValueCountAggregation, Highlight, HighlightResult, ExistsFilter, NotExistsFilter, HasValueFilter, IdsFilter, BooleanFilter, Filter, FormItemSet, FormItemLayout, FormItemInput, FormItemOptionSet, FormItemInlineMixin, FormItem, } from '@enonic-types/core'; | ||
import type { Aggregations, AggregationsResult, AggregationsToAggregationResults, ByteSource, Content, Filter, FormItem, Highlight, HighlightResult, PublishInfo, QueryDsl, SortDsl } from '@enonic-types/core'; | ||
export type { Aggregation, Aggregations, AggregationsResult, Attachment, BooleanDslExpression, BooleanFilter, BucketsAggregationResult, BucketsAggregationsUnion, ByteSource, Component, Content, DateBucket, DateHistogramAggregation, DateRange, DateRangeAggregation, ExistsDslExpression, ExistsFilter, Filter, FormItem, FormItemInlineMixin, FormItemInput, FormItemLayout, FormItemOptionSet, FormItemSet, FulltextDslExpression, GeoDistanceAggregation, HasValueFilter, Highlight, HighlightResult, HistogramAggregation, IdsFilter, InDslExpression, LikeDslExpression, MatchAllDslExpression, MaxAggregation, MinAggregation, NgramDslExpression, NotExistsFilter, NumericRange, NumericRangeAggregation, PathMatchDslExpression, PublishInfo, QueryDsl, RangeDslExpression, Region, SingleValueMetricAggregationResult, SingleValueMetricAggregationsUnion, StatsAggregation, StatsAggregationResult, StemmedDslExpression, TermDslExpression, TermsAggregation, ValueCountAggregation, } from '@enonic-types/core'; | ||
declare type Attachments = Content['attachments']; | ||
@@ -154,7 +154,7 @@ declare type ContentInheritType = Content['inherit']; | ||
export { _delete as delete, }; | ||
export interface ContentsResult<Hit extends Content<unknown>> { | ||
export interface ContentsResult<Hit extends Content<unknown>, AggregationOutput extends Record<string, AggregationsResult>> { | ||
total: number; | ||
count: number; | ||
hits: Hit[]; | ||
aggregations?: Record<string, AggregationsResult>; | ||
aggregations: AggregationOutput; | ||
highlight?: Record<string, HighlightResult>; | ||
@@ -181,3 +181,3 @@ } | ||
*/ | ||
export declare function getChildren<Hit extends Content<unknown> = Content>(params: GetChildContentParams): ContentsResult<Hit>; | ||
export declare function getChildren<Hit extends Content<unknown> = Content, AggregationOutput extends Record<string, AggregationsResult> = never>(params: GetChildContentParams): ContentsResult<Hit, AggregationOutput>; | ||
export declare type IdGeneratorSupplier = (value: string) => string; | ||
@@ -226,3 +226,3 @@ export interface CreateContentParams<Data, Type extends string> { | ||
export declare function create<Data = Record<string, unknown>, Type extends string = string>(params: CreateContentParams<Data, Type>): Content<Data, Type>; | ||
export interface QueryContentParams { | ||
export interface QueryContentParams<AggregationInput extends Aggregations> { | ||
start?: number; | ||
@@ -233,3 +233,3 @@ count?: number; | ||
filters?: Filter | Filter[]; | ||
aggregations?: Record<string, Aggregation>; | ||
aggregations?: AggregationInput; | ||
contentTypes?: string[]; | ||
@@ -254,3 +254,3 @@ highlight?: Highlight; | ||
*/ | ||
export declare function query<Hit extends Content<unknown> = Content>(params: QueryContentParams): ContentsResult<Hit>; | ||
export declare function query<Hit extends Content<unknown> = Content, AggregationInput extends Aggregations = never>(params: QueryContentParams<AggregationInput>): ContentsResult<Hit, AggregationsToAggregationResults<AggregationInput>>; | ||
export interface ModifyContentParams<Data, Type extends string> { | ||
@@ -257,0 +257,0 @@ key: string; |
{ | ||
"name": "@enonic-types/lib-content", | ||
"version": "7.12.0-B1", | ||
"version": "7.12.0-RC1", | ||
"description": "Type definitions for lib-content.", | ||
@@ -30,3 +30,3 @@ "types": "content.d.ts", | ||
"dependencies": { | ||
"@enonic-types/core": "7.12.0-B1" | ||
"@enonic-types/core": "7.12.0-RC1" | ||
}, | ||
@@ -33,0 +33,0 @@ "publishConfig": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27012
+ Added@enonic-types/core@7.12.0-RC1(transitive)
- Removed@enonic-types/core@7.12.0-B1(transitive)