@enonic-types/lib-node 7.11.0-B4 → 7.11.0-RC3
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 +36 -29
- 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;
|
|
@@ -200,8 +200,7 @@ export interface TermSuggestionOptions {
|
|
|
200
200
|
minDocFreq?: number | null;
|
|
201
201
|
maxTermFreq?: number | null;
|
|
202
202
|
}
|
|
203
|
-
declare type
|
|
204
|
-
export declare type DslQueryType = LiteralUnion<'dateTime' | 'time'> | number | boolean;
|
|
203
|
+
export declare type DslQueryType = 'dateTime' | 'time';
|
|
205
204
|
export declare type DslOperator = 'OR' | 'AND';
|
|
206
205
|
export interface TermDslExpression {
|
|
207
206
|
field: string;
|
|
@@ -265,6 +264,8 @@ export declare type QueryDsl = {
|
|
|
265
264
|
boolean: BooleanDslExpression;
|
|
266
265
|
} | {
|
|
267
266
|
ngram: NgramDslExpression;
|
|
267
|
+
} | {
|
|
268
|
+
stemmed: StemmedDslExpression;
|
|
268
269
|
} | {
|
|
269
270
|
fulltext: FulltextDslExpression;
|
|
270
271
|
} | {
|
|
@@ -299,39 +300,45 @@ export interface Explanation {
|
|
|
299
300
|
description: string;
|
|
300
301
|
details: Explanation[];
|
|
301
302
|
}
|
|
303
|
+
export interface NodeQueryResultHit {
|
|
304
|
+
id: string;
|
|
305
|
+
score: number;
|
|
306
|
+
explanation?: Explanation;
|
|
307
|
+
highlight?: HighlightResult;
|
|
308
|
+
}
|
|
309
|
+
export interface NodeQueryResultSuggestion {
|
|
310
|
+
[suggestionName: string]: {
|
|
311
|
+
text: string;
|
|
312
|
+
length: number;
|
|
313
|
+
offset: number;
|
|
314
|
+
options: {
|
|
315
|
+
text: string;
|
|
316
|
+
score: number;
|
|
317
|
+
freq?: number;
|
|
318
|
+
}[];
|
|
319
|
+
}[];
|
|
320
|
+
}
|
|
302
321
|
export interface NodeQueryResult {
|
|
303
322
|
total: number;
|
|
304
323
|
count: number;
|
|
305
|
-
hits:
|
|
306
|
-
id: string;
|
|
307
|
-
score: number;
|
|
308
|
-
explanation?: Explanation;
|
|
309
|
-
highlight?: HighlightResult;
|
|
310
|
-
}[];
|
|
324
|
+
hits: NodeQueryResultHit[];
|
|
311
325
|
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
|
-
}[];
|
|
326
|
+
suggestions?: NodeQueryResultSuggestion[];
|
|
324
327
|
}
|
|
325
|
-
export
|
|
326
|
-
|
|
328
|
+
export interface NodeMultiRepoQueryResult {
|
|
329
|
+
total: number;
|
|
330
|
+
count: number;
|
|
331
|
+
hits: (NodeQueryResultHit & {
|
|
327
332
|
repoId: string;
|
|
328
333
|
branch: string;
|
|
329
|
-
}[];
|
|
330
|
-
|
|
334
|
+
})[];
|
|
335
|
+
aggregations?: AggregationsResult;
|
|
336
|
+
suggestions?: NodeQueryResultSuggestion[];
|
|
337
|
+
}
|
|
331
338
|
export declare type CreateNodeParams<NodeData = unknown> = {
|
|
332
339
|
_name?: string;
|
|
333
340
|
_parentPath?: string;
|
|
334
|
-
_indexConfig?:
|
|
341
|
+
_indexConfig?: Partial<NodeIndexConfig>;
|
|
335
342
|
_permissions?: AccessControlEntry[];
|
|
336
343
|
_inheritsPermissions?: boolean;
|
|
337
344
|
_manualOrderValue?: number;
|
|
@@ -454,7 +461,7 @@ export interface SetRootPermissionsParams {
|
|
|
454
461
|
}
|
|
455
462
|
export declare type Permission = 'READ' | 'CREATE' | 'MODIFY' | 'DELETE' | 'PUBLISH' | 'READ_PERMISSIONS' | 'WRITE_PERMISSIONS';
|
|
456
463
|
export interface AccessControlEntry {
|
|
457
|
-
principal:
|
|
464
|
+
principal: PrincipalKey;
|
|
458
465
|
allow?: Permission[];
|
|
459
466
|
deny?: Permission[];
|
|
460
467
|
}
|
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-RC3",
|
|
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-RC3"
|
|
31
31
|
},
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"access": "public"
|