@enonic-types/lib-node 8.0.2 → 8.0.4-B1
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 -0
- package/package.json +2 -2
package/node.d.ts
CHANGED
|
@@ -237,6 +237,10 @@ export interface NodeIndexConfig {
|
|
|
237
237
|
path: string;
|
|
238
238
|
config: NodeConfigEntry;
|
|
239
239
|
}[];
|
|
240
|
+
/**
|
|
241
|
+
* Indexing config for the generated `_allText` property. See {@link NodeAllTextConfig}.
|
|
242
|
+
*/
|
|
243
|
+
allText: NodeAllTextConfig;
|
|
240
244
|
}
|
|
241
245
|
export type NodeIndexConfigTemplates = 'none' | 'byType' | 'fulltext' | 'path' | 'minimal';
|
|
242
246
|
export interface NodeIndexConfigParams {
|
|
@@ -246,6 +250,11 @@ export interface NodeIndexConfigParams {
|
|
|
246
250
|
path: string;
|
|
247
251
|
config: Partial<NodeConfigEntry> | NodeIndexConfigTemplates;
|
|
248
252
|
}[];
|
|
253
|
+
/**
|
|
254
|
+
* Indexing config for the generated `_allText` property. Any omitted fields keep their defaults.
|
|
255
|
+
* See {@link NodeAllTextConfig}.
|
|
256
|
+
*/
|
|
257
|
+
allText?: Partial<NodeAllTextConfig>;
|
|
249
258
|
}
|
|
250
259
|
export interface NodeConfigEntry {
|
|
251
260
|
decideByType: boolean;
|
|
@@ -257,6 +266,29 @@ export interface NodeConfigEntry {
|
|
|
257
266
|
indexValueProcessors: string[];
|
|
258
267
|
languages: string[];
|
|
259
268
|
}
|
|
269
|
+
/**
|
|
270
|
+
* Customizes the indexing of the generated `_allText` system property, which aggregates the text
|
|
271
|
+
* content of all indexed `String` properties on a node and is commonly used in "search everything" queries.
|
|
272
|
+
*/
|
|
273
|
+
export interface NodeAllTextConfig {
|
|
274
|
+
/**
|
|
275
|
+
* If `false`, indexing of the `_allText` property is disabled. Defaults to `true`.
|
|
276
|
+
*/
|
|
277
|
+
enabled: boolean;
|
|
278
|
+
/**
|
|
279
|
+
* If `true`, values are indexed as `ngram`, enabling the nGram-function in queries. Defaults to `true`.
|
|
280
|
+
*/
|
|
281
|
+
nGram: boolean;
|
|
282
|
+
/**
|
|
283
|
+
* If `true`, values are indexed as `analyzed`, enabling the fulltext query expression. Defaults to `true`.
|
|
284
|
+
*/
|
|
285
|
+
fulltext: boolean;
|
|
286
|
+
/**
|
|
287
|
+
* Generates a stemming index (where supported) and a collation index for each specified language.
|
|
288
|
+
* Language codes use the `la[-co]` format (ISO-639 language code, optional ISO-3166 country code).
|
|
289
|
+
*/
|
|
290
|
+
languages: string[];
|
|
291
|
+
}
|
|
260
292
|
export interface CommonNodeProperties {
|
|
261
293
|
_childOrder: string;
|
|
262
294
|
_manualOrderValue?: number;
|
|
@@ -305,6 +337,7 @@ export type Node<Data = Record<string, unknown>> = NodePropertiesOnRead & Data;
|
|
|
305
337
|
export interface RepoConnection {
|
|
306
338
|
create<NodeData = Record<string, unknown>>(params: CreateNodeParams<NodeData>): Node<NodeData>;
|
|
307
339
|
update<NodeData = Record<string, unknown>>(params: UpdateNodeParams<NodeData>): Node<NodeData>;
|
|
340
|
+
patch(params: PatchNodeParams): PatchNodeResult;
|
|
308
341
|
get<NodeData = Record<string, unknown>>(key: string | GetNodeParams): Node<NodeData> | null;
|
|
309
342
|
get<NodeData = Record<string, unknown>>(keys: (string | GetNodeParams)[]): Node<NodeData> | Node<NodeData>[] | null;
|
|
310
343
|
get<NodeData = Record<string, unknown>>(...keys: (string | GetNodeParams | (string | GetNodeParams)[])[]): Node<NodeData> | Node<NodeData>[] | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enonic-types/lib-node",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.4-B1",
|
|
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.
|
|
30
|
+
"@enonic-types/core": "8.0.4-B1"
|
|
31
31
|
},
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"access": "public"
|