@enonic-types/lib-node 7.11.0-B4 → 7.11.0-RC1
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/node.d.ts +33 -25
- package/package.json +2 -2
package/node.d.ts
CHANGED
|
@@ -175,9 +175,9 @@ export interface IdsFilter {
|
|
|
175
175
|
}
|
|
176
176
|
export interface BooleanFilter {
|
|
177
177
|
boolean: {
|
|
178
|
-
must?: Filter[];
|
|
179
|
-
mustNot?: Filter[];
|
|
180
|
-
should?: Filter[];
|
|
178
|
+
must?: Filter | Filter[];
|
|
179
|
+
mustNot?: Filter | Filter[];
|
|
180
|
+
should?: Filter | Filter[];
|
|
181
181
|
};
|
|
182
182
|
}
|
|
183
183
|
export declare type Filter = ExistsFilter | NotExistsFilter | HasValueFilter | IdsFilter | BooleanFilter;
|
|
@@ -265,6 +265,8 @@ export declare type QueryDsl = {
|
|
|
265
265
|
boolean: BooleanDslExpression;
|
|
266
266
|
} | {
|
|
267
267
|
ngram: NgramDslExpression;
|
|
268
|
+
} | {
|
|
269
|
+
stemmed: StemmedDslExpression;
|
|
268
270
|
} | {
|
|
269
271
|
fulltext: FulltextDslExpression;
|
|
270
272
|
} | {
|
|
@@ -299,35 +301,41 @@ export interface Explanation {
|
|
|
299
301
|
description: string;
|
|
300
302
|
details: Explanation[];
|
|
301
303
|
}
|
|
304
|
+
export interface NodeQueryResultHit {
|
|
305
|
+
id: string;
|
|
306
|
+
score: number;
|
|
307
|
+
explanation?: Explanation;
|
|
308
|
+
highlight?: HighlightResult;
|
|
309
|
+
}
|
|
310
|
+
export interface NodeQueryResultSuggestion {
|
|
311
|
+
[suggestionName: string]: {
|
|
312
|
+
text: string;
|
|
313
|
+
length: number;
|
|
314
|
+
offset: number;
|
|
315
|
+
options: {
|
|
316
|
+
text: string;
|
|
317
|
+
score: number;
|
|
318
|
+
freq?: number;
|
|
319
|
+
}[];
|
|
320
|
+
}[];
|
|
321
|
+
}
|
|
302
322
|
export interface NodeQueryResult {
|
|
303
323
|
total: number;
|
|
304
324
|
count: number;
|
|
305
|
-
hits:
|
|
306
|
-
id: string;
|
|
307
|
-
score: number;
|
|
308
|
-
explanation?: Explanation;
|
|
309
|
-
highlight?: HighlightResult;
|
|
310
|
-
}[];
|
|
325
|
+
hits: NodeQueryResultHit[];
|
|
311
326
|
aggregations?: AggregationsResult;
|
|
312
|
-
suggestions?:
|
|
313
|
-
[suggestionName: string]: {
|
|
314
|
-
text: string;
|
|
315
|
-
length: number;
|
|
316
|
-
offset: number;
|
|
317
|
-
options: {
|
|
318
|
-
text: string;
|
|
319
|
-
score: number;
|
|
320
|
-
freq?: number;
|
|
321
|
-
}[];
|
|
322
|
-
}[];
|
|
323
|
-
}[];
|
|
327
|
+
suggestions?: NodeQueryResultSuggestion[];
|
|
324
328
|
}
|
|
325
|
-
export
|
|
326
|
-
|
|
329
|
+
export interface NodeMultiRepoQueryResult {
|
|
330
|
+
total: number;
|
|
331
|
+
count: number;
|
|
332
|
+
hits: (NodeQueryResultHit & {
|
|
327
333
|
repoId: string;
|
|
328
334
|
branch: string;
|
|
329
|
-
}[];
|
|
330
|
-
|
|
335
|
+
})[];
|
|
336
|
+
aggregations?: AggregationsResult;
|
|
337
|
+
suggestions?: NodeQueryResultSuggestion[];
|
|
338
|
+
}
|
|
331
339
|
export declare type CreateNodeParams<NodeData = unknown> = {
|
|
332
340
|
_name?: string;
|
|
333
341
|
_parentPath?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enonic-types/lib-node",
|
|
3
|
-
"version": "7.11.0-
|
|
3
|
+
"version": "7.11.0-RC1",
|
|
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.11.0-
|
|
30
|
+
"@enonic-types/core": "7.11.0-RC1"
|
|
31
31
|
},
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"access": "public"
|