enonic-types
Advanced tools
Comparing version 0.0.54 to 0.0.55
@@ -11,4 +11,5 @@ module.exports = { | ||
rules: { | ||
"@typescript-eslint/no-explicit-any": "off" | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/ban-types": "off" | ||
}, | ||
}; |
@@ -149,2 +149,28 @@ import { PermissionsParams } from "./content"; | ||
} | ||
export interface NodeFindChildrenParams { | ||
/** | ||
* Path or ID of parent to get children of | ||
*/ | ||
readonly parentKey: string; | ||
/** | ||
* start index used for paging - default: 0 | ||
*/ | ||
readonly start?: number; | ||
/** | ||
* number of content to fetch, used for paging - default: 10 | ||
*/ | ||
readonly count?: number; | ||
/** | ||
* How to order the children - default is value stored on parent | ||
*/ | ||
readonly childOrder?: string; | ||
/** | ||
* Optimize for count children only - default is false | ||
*/ | ||
readonly countOnly?: boolean; | ||
/** | ||
* Do recursive fetching of all children of children - default is false | ||
*/ | ||
readonly recursive?: boolean; | ||
} | ||
export interface RepoNode { | ||
@@ -165,2 +191,3 @@ readonly _id: string; | ||
modify<A>(params: NodeModifyParams<A>): A & RepoNode; | ||
findChildren(params: NodeFindChildrenParams): NodeQueryResponse; | ||
} |
{ | ||
"name": "enonic-types", | ||
"version": "0.0.54", | ||
"version": "0.0.55", | ||
"description": "TypeScript types for Enonic XP", | ||
@@ -27,5 +27,5 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"@typescript-eslint/eslint-plugin": "^2.34.0", | ||
"@typescript-eslint/parser": "^2.34.0", | ||
"eslint": "^7.0.0", | ||
"@typescript-eslint/eslint-plugin": "^3.0.2", | ||
"@typescript-eslint/parser": "^3.0.2", | ||
"eslint": "^7.1.0", | ||
"rimraf": "^3.0.2", | ||
@@ -32,0 +32,0 @@ "typescript": "^3.9.3" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
49040
1401