@enonic-types/lib-node 7.11.0-RC1 → 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.
Files changed (2) hide show
  1. package/node.d.ts +3 -4
  2. package/package.json +2 -2
package/node.d.ts CHANGED
@@ -200,8 +200,7 @@ export interface TermSuggestionOptions {
200
200
  minDocFreq?: number | null;
201
201
  maxTermFreq?: number | null;
202
202
  }
203
- declare type LiteralUnion<T extends U, U = string> = T | (U & Record<never, never>);
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;
@@ -339,7 +338,7 @@ export interface NodeMultiRepoQueryResult {
339
338
  export declare type CreateNodeParams<NodeData = unknown> = {
340
339
  _name?: string;
341
340
  _parentPath?: string;
342
- _indexConfig?: NodeConfigEntry;
341
+ _indexConfig?: Partial<NodeIndexConfig>;
343
342
  _permissions?: AccessControlEntry[];
344
343
  _inheritsPermissions?: boolean;
345
344
  _manualOrderValue?: number;
@@ -462,7 +461,7 @@ export interface SetRootPermissionsParams {
462
461
  }
463
462
  export declare type Permission = 'READ' | 'CREATE' | 'MODIFY' | 'DELETE' | 'PUBLISH' | 'READ_PERMISSIONS' | 'WRITE_PERMISSIONS';
464
463
  export interface AccessControlEntry {
465
- principal: string;
464
+ principal: PrincipalKey;
466
465
  allow?: Permission[];
467
466
  deny?: Permission[];
468
467
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enonic-types/lib-node",
3
- "version": "7.11.0-RC1",
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-RC1"
30
+ "@enonic-types/core": "7.11.0-RC3"
31
31
  },
32
32
  "publishConfig": {
33
33
  "access": "public"