enonic-types
Advanced tools
Comparing version 0.3.9 to 0.3.10
@@ -45,3 +45,3 @@ declare module "*/lib/xp/auditlog" { | ||
*/ | ||
user: string; | ||
user: import("/lib/xp/auth").PrincipalKeyUser; | ||
/** | ||
@@ -48,0 +48,0 @@ * URIs to objects that relate to this log entry. |
{ | ||
"name": "enonic-types", | ||
"sideEffects": false, | ||
"version": "0.3.9", | ||
"version": "0.3.10", | ||
"description": "TypeScript types for Enonic XP", | ||
@@ -27,4 +27,4 @@ "typings": "index.d.ts", | ||
"devDependencies": { | ||
"@typescript-eslint/eslint-plugin": "^5.6.0", | ||
"@typescript-eslint/parser": "^5.6.0", | ||
"@typescript-eslint/eslint-plugin": "^5.7.0", | ||
"@typescript-eslint/parser": "^5.7.0", | ||
"eslint": "^8.4.1", | ||
@@ -35,4 +35,4 @@ "eslint-config-prettier": "^8.3.0", | ||
"rimraf": "^3.0.2", | ||
"typescript": "^4.5.3" | ||
"typescript": "^4.5.4" | ||
} | ||
} |
declare module "*/lib/xp/scheduler" { | ||
namespace schedulerLib { | ||
type PrincipalKeyUser = import("/lib/xp/auth").PrincipalKeyUser; | ||
/** | ||
@@ -10,3 +11,3 @@ * @since 7.7.0 | ||
*/ | ||
get<Config = never>(params: GetScheduledJobParams): ScheduledJob<Config>; | ||
get<Config = never>(params: GetScheduledJobParams): ScheduledJob<Config> | null; | ||
/** | ||
@@ -83,3 +84,3 @@ * Returns the list of scheduled jobs. | ||
*/ | ||
user?: unknown; | ||
user?: PrincipalKeyUser; | ||
/** | ||
@@ -90,3 +91,3 @@ * Job is active or not. | ||
} | ||
interface ModifyScheduledJobParams<Config> { | ||
interface ModifyScheduledJobParams<Config = never> { | ||
/** | ||
@@ -107,3 +108,3 @@ * Unique job name. | ||
} | ||
interface ScheduledJob<Config> { | ||
interface ScheduledJob<Config = never> { | ||
/** | ||
@@ -132,3 +133,3 @@ * Job name | ||
*/ | ||
user: string; | ||
user: PrincipalKeyUser; | ||
/** | ||
@@ -141,7 +142,7 @@ * Job is active or not | ||
*/ | ||
creator: string; | ||
creator: PrincipalKeyUser; | ||
/** | ||
* Principal key of the last user that modified the task | ||
*/ | ||
modifier: string; | ||
modifier: PrincipalKeyUser; | ||
/** | ||
@@ -148,0 +149,0 @@ * Time of the task creation |
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
190380
4870