@enonic-types/lib-node 7.12.1 → 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.
Files changed (2) hide show
  1. package/node.d.ts +3 -3
  2. package/package.json +2 -2
package/node.d.ts CHANGED
@@ -55,14 +55,14 @@ export interface SuggestionResult {
55
55
  freq?: number;
56
56
  }[];
57
57
  }
58
- export interface NodeQueryResult<AggregationOutput extends Record<string, AggregationsResult>> {
58
+ export interface NodeQueryResult<AggregationOutput extends Record<string, AggregationsResult> | undefined = undefined> {
59
59
  total: number;
60
60
  count: number;
61
61
  hits: NodeQueryResultHit[];
62
62
  aggregations: AggregationOutput;
63
63
  suggestions?: Record<string, SuggestionResult[]>;
64
64
  }
65
- export interface NodeMultiRepoQueryResult<AggregationOutput extends Record<string, AggregationsResult>> {
65
+ export interface NodeMultiRepoQueryResult<AggregationOutput extends Record<string, AggregationsResult> | undefined = undefined> {
66
66
  total: number;
67
67
  count: number;
68
68
  hits: (NodeQueryResultHit & {
@@ -120,7 +120,7 @@ export interface SetChildOrderParams {
120
120
  key: string;
121
121
  childOrder: string;
122
122
  }
123
- export interface QueryNodeParams<AggregationInput extends Aggregations> {
123
+ export interface QueryNodeParams<AggregationInput extends Aggregations = never> {
124
124
  start?: number;
125
125
  count?: number;
126
126
  query?: QueryDsl | string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enonic-types/lib-node",
3
- "version": "7.12.1",
3
+ "version": "7.12.2",
4
4
  "description": "Type definitions for lib-node.",
5
5
  "types": "node.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.1"
30
+ "@enonic-types/core": "7.12.2"
31
31
  },
32
32
  "publishConfig": {
33
33
  "access": "public"