cat-documents-ng 1.0.58 → 1.0.60
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/Shared/services/session.service.d.ts +0 -14
- package/fesm2022/cat-documents-ng.mjs +84 -126
- package/fesm2022/cat-documents-ng.mjs.map +1 -1
- package/lib/document/components/document-actions/document-actions.component.d.ts +0 -5
- package/lib/document/components/document-search/document-search.component.d.ts +1 -7
- package/lib/document/services/document-http.service.d.ts +2 -2
- package/package.json +1 -1
- package/Shared/constant/PERMISSIONS.d.ts +0 -17
|
@@ -37,25 +37,11 @@ export declare class SessionService {
|
|
|
37
37
|
* @returns {string[] | null} Trait strings, or null if not found.
|
|
38
38
|
*/
|
|
39
39
|
getUserTraits(): string[] | null;
|
|
40
|
-
/**
|
|
41
|
-
* Checks if the current user has a specific trait (case-insensitive).
|
|
42
|
-
* @param trait Trait string, e.g. "Documents-PUT"
|
|
43
|
-
*/
|
|
44
|
-
hasTrait(trait: string): boolean;
|
|
45
|
-
/**
|
|
46
|
-
* Checks if the current user has any trait from the provided list (case-insensitive).
|
|
47
|
-
*/
|
|
48
|
-
hasAnyTrait(traits: string[]): boolean;
|
|
49
40
|
/**
|
|
50
41
|
* Retrieves the session ID from the stored session data.
|
|
51
42
|
* @returns {any | null} The session ID, or null if not found.
|
|
52
43
|
*/
|
|
53
44
|
getSessionID(): any | null;
|
|
54
|
-
/**
|
|
55
|
-
* Retrieves the user's roles from the stored session data.
|
|
56
|
-
* @returns {string[]} Array of user roles, empty array if no roles found.
|
|
57
|
-
*/
|
|
58
|
-
getUserRoles(): string[];
|
|
59
45
|
/**
|
|
60
46
|
* Clears all stored session data from local storage.
|
|
61
47
|
*/
|