@enonic-types/lib-content 7.12.0 → 7.12.2
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 +2 -2
- package/package.json +2 -2
package/content.d.ts
CHANGED
|
@@ -150,7 +150,7 @@ export interface DeleteContentParams {
|
|
|
150
150
|
*/
|
|
151
151
|
declare function _delete(params: DeleteContentParams): boolean;
|
|
152
152
|
export { _delete as delete, };
|
|
153
|
-
export interface ContentsResult<Hit extends Content<unknown>, AggregationOutput extends Record<string, AggregationsResult
|
|
153
|
+
export interface ContentsResult<Hit extends Content<unknown>, AggregationOutput extends Record<string, AggregationsResult> | undefined = undefined> {
|
|
154
154
|
total: number;
|
|
155
155
|
count: number;
|
|
156
156
|
hits: Hit[];
|
|
@@ -220,7 +220,7 @@ export interface CreateContentParams<Data, Type extends string> {
|
|
|
220
220
|
* @returns {object} Content created as JSON.
|
|
221
221
|
*/
|
|
222
222
|
export declare function create<Data = Record<string, unknown>, Type extends string = string>(params: CreateContentParams<Data, Type>): Content<Data, Type>;
|
|
223
|
-
export interface QueryContentParams<AggregationInput extends Aggregations> {
|
|
223
|
+
export interface QueryContentParams<AggregationInput extends Aggregations = never> {
|
|
224
224
|
start?: number;
|
|
225
225
|
count?: number;
|
|
226
226
|
query?: QueryDsl | string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enonic-types/lib-content",
|
|
3
|
-
"version": "7.12.
|
|
3
|
+
"version": "7.12.2",
|
|
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": "7.12.
|
|
30
|
+
"@enonic-types/core": "7.12.2"
|
|
31
31
|
},
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"access": "public"
|