@enonic-types/lib-node 8.0.4 → 8.1.0-B2

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 +10 -0
  2. package/package.json +2 -2
package/node.d.ts CHANGED
@@ -41,6 +41,7 @@ export interface NodeQueryResultHit {
41
41
  score: number;
42
42
  explanation?: Explanation;
43
43
  highlight?: HighlightResult;
44
+ fields?: Record<string, unknown>;
44
45
  }
45
46
  export interface SuggestionResult {
46
47
  text: string;
@@ -143,6 +144,9 @@ export interface SortNodeResult<NodeData> {
143
144
  export interface QueryNodeParams<AggregationInput extends Aggregations = never> {
144
145
  start?: number;
145
146
  count?: number;
147
+ parent?: string;
148
+ recursive?: boolean;
149
+ returns?: string[];
146
150
  query?: QueryDsl | string;
147
151
  sort?: string | SortDsl | SortDsl[];
148
152
  filters?: Filter | Filter[];
@@ -172,6 +176,9 @@ export interface GetNodeVersionsResult {
172
176
  export interface GetActiveVersionParams {
173
177
  key: string;
174
178
  }
179
+ /**
180
+ * @deprecated Use {@link QueryNodeParams} with `parent` instead.
181
+ */
175
182
  export interface FindChildrenParams {
176
183
  parentKey: string;
177
184
  start?: number | null;
@@ -351,6 +358,9 @@ export interface RepoConnection {
351
358
  exists(key: string): boolean;
352
359
  getVersions(params: GetVersionsParams): GetNodeVersionsResult;
353
360
  getActiveVersion(params: GetActiveVersionParams): NodeVersion | null;
361
+ /**
362
+ * @deprecated Use {@link RepoConnection.query} with `parent` instead.
363
+ */
354
364
  findChildren(params: FindChildrenParams): FindNodesByParentResult;
355
365
  refresh(mode?: RefreshMode): void;
356
366
  applyPermissions(params: ApplyPermissionsParams): ApplyPermissionsResult;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enonic-types/lib-node",
3
- "version": "8.0.4",
3
+ "version": "8.1.0-B2",
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": "8.0.4"
30
+ "@enonic-types/core": "8.1.0-B2"
31
31
  },
32
32
  "publishConfig": {
33
33
  "access": "public"