enonic-types
Advanced tools
Comparing version 0.0.53 to 0.0.54
@@ -58,2 +58,6 @@ /** | ||
/** | ||
* Search for principals matching the specified criteria. | ||
*/ | ||
findPrincipals(params: FindPrincipalsParams): FindPrincipalsResult; | ||
/** | ||
* Returns the list of principals which the specified principal is a member of. | ||
@@ -89,3 +93,3 @@ */ | ||
*/ | ||
getProfile<A>(principalKey: string, scope?: string): A; | ||
getProfile<A>(params: GetProfileParams): A; | ||
/** | ||
@@ -148,2 +152,15 @@ * This function retrieves the profile of a user and updates it. | ||
} | ||
export interface FindPrincipalsParams { | ||
readonly type?: string; | ||
readonly idProvider?: string; | ||
readonly start?: string; | ||
readonly count?: string; | ||
readonly name?: string; | ||
readonly searchText?: string; | ||
} | ||
export interface FindPrincipalsResult { | ||
readonly total: number; | ||
readonly count: number; | ||
readonly hits: ReadonlyArray<Principal>; | ||
} | ||
export interface FindUsersParams { | ||
@@ -165,2 +182,6 @@ readonly start?: number; | ||
} | ||
export interface GetProfileParams { | ||
readonly principalKey: string; | ||
readonly scope?: string; | ||
} | ||
export interface ModifyProfileParams<A> { | ||
@@ -167,0 +188,0 @@ readonly key: string; |
{ | ||
"name": "enonic-types", | ||
"version": "0.0.53", | ||
"version": "0.0.54", | ||
"description": "TypeScript types for Enonic XP", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
48234
1373