@enonic-types/lib-auth 7.12.0-B1 → 7.12.0-RC2
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/auth.d.ts +0 -32
- package/package.json +2 -2
package/auth.d.ts
CHANGED
|
@@ -54,16 +54,6 @@ export declare function logout(): void;
|
|
|
54
54
|
export interface GetUserParams {
|
|
55
55
|
includeProfile?: boolean;
|
|
56
56
|
}
|
|
57
|
-
/**
|
|
58
|
-
* Returns the logged-in user. If not logged-in, this will return *undefined*.
|
|
59
|
-
*
|
|
60
|
-
* @example-ref examples/auth/getUser.js
|
|
61
|
-
*
|
|
62
|
-
* @param {object} [params] JSON parameters.
|
|
63
|
-
* @param {boolean} [params.includeProfile=false] Include profile.
|
|
64
|
-
*
|
|
65
|
-
* @returns {User} Information for logged-in user.
|
|
66
|
-
*/
|
|
67
57
|
export declare function getUser(params?: {
|
|
68
58
|
includeProfile?: false;
|
|
69
59
|
}): User | null;
|
|
@@ -101,14 +91,6 @@ export interface ChangePasswordParams {
|
|
|
101
91
|
* @param {string} params.password New password to set.
|
|
102
92
|
*/
|
|
103
93
|
export declare function changePassword(params: ChangePasswordParams): void;
|
|
104
|
-
/**
|
|
105
|
-
* Returns the principal with the specified key.
|
|
106
|
-
*
|
|
107
|
-
* @example-ref examples/auth/getPrincipal.js
|
|
108
|
-
*
|
|
109
|
-
* @param {string} principalKey Principal key to look for.
|
|
110
|
-
* @returns {User | Group | Role} the principal specified, or null if it doesn't exist.
|
|
111
|
-
*/
|
|
112
94
|
export declare function getPrincipal(userKey: UserKey): User | null;
|
|
113
95
|
export declare function getPrincipal(groupKey: GroupKey): Group | null;
|
|
114
96
|
export declare function getPrincipal(roleKey: RoleKey): Role | null;
|
|
@@ -300,20 +282,6 @@ export interface FindUsersParams {
|
|
|
300
282
|
sort?: string;
|
|
301
283
|
includeProfile?: boolean;
|
|
302
284
|
}
|
|
303
|
-
/**
|
|
304
|
-
* Search for users matching the specified query.
|
|
305
|
-
*
|
|
306
|
-
* @example-ref examples/auth/findUsers.js
|
|
307
|
-
*
|
|
308
|
-
* @param {object} params JSON with the parameters.
|
|
309
|
-
* @param {number} [params.start=0] Start index (used for paging).
|
|
310
|
-
* @param {number} [params.count=10] Number of contents to fetch.
|
|
311
|
-
* @param {string} params.query Query expression.
|
|
312
|
-
* @param {string} [params.sort] Sorting expression.
|
|
313
|
-
* @param {boolean} [params.includeProfile=false] Include profile.
|
|
314
|
-
*
|
|
315
|
-
* @returns {FindPrincipalsResult} Result of query.
|
|
316
|
-
*/
|
|
317
285
|
export declare function findUsers(params: FindUsersParams & {
|
|
318
286
|
includeProfile?: false;
|
|
319
287
|
}): FindPrincipalsResult<User>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enonic-types/lib-auth",
|
|
3
|
-
"version": "7.12.0-
|
|
3
|
+
"version": "7.12.0-RC2",
|
|
4
4
|
"description": "Type definitions for lib-auth.",
|
|
5
5
|
"types": "auth.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.12.0-
|
|
30
|
+
"@enonic-types/core": "7.12.0-RC2"
|
|
31
31
|
},
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"access": "public"
|