cat-documents-ng 0.1.28 → 0.1.30

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.
Files changed (92) hide show
  1. package/ng-package.json +11 -0
  2. package/package.json +20 -25
  3. package/{Shared/constant/ERROR.d.ts → src/Shared/constant/ERROR.ts} +38 -36
  4. package/src/Shared/constant/PERMISSIONS.ts +16 -0
  5. package/src/Shared/constant/SHARED.ts +312 -0
  6. package/{Shared/constant/URLS.d.ts → src/Shared/constant/URLS.ts} +65 -60
  7. package/src/Shared/services/app-config.service.spec.ts +19 -0
  8. package/src/Shared/services/app-config.service.ts +73 -0
  9. package/{Shared/services/global-error.handler.d.ts → src/Shared/services/global-error.handler.ts} +29 -27
  10. package/src/Shared/services/session.service.spec.ts +16 -0
  11. package/src/Shared/services/session.service.ts +76 -0
  12. package/src/assets/config/api.config.json +20 -0
  13. package/src/lib/document/components/document-container/document-container.component.html +14 -0
  14. package/src/lib/document/components/document-container/document-container.component.scss +8 -0
  15. package/src/lib/document/components/document-container/document-container.component.spec.ts +110 -0
  16. package/src/lib/document/components/document-container/document-container.component.ts +173 -0
  17. package/src/lib/document/components/document-list/document-list.component.html +81 -0
  18. package/src/lib/document/components/document-list/document-list.component.scss +82 -0
  19. package/src/lib/document/components/document-list/document-list.component.spec.ts +96 -0
  20. package/src/lib/document/components/document-list/document-list.component.ts +244 -0
  21. package/src/lib/document/components/document-list-item/document-list-item.component.html +36 -0
  22. package/src/lib/document/components/document-list-item/document-list-item.component.scss +34 -0
  23. package/src/lib/document/components/document-list-item/document-list-item.component.spec.ts +75 -0
  24. package/src/lib/document/components/document-list-item/document-list-item.component.ts +40 -0
  25. package/src/lib/document/components/document-upload/document-upload.component.html +56 -0
  26. package/src/lib/document/components/document-upload/document-upload.component.scss +32 -0
  27. package/src/lib/document/components/document-upload/document-upload.component.spec.ts +95 -0
  28. package/src/lib/document/components/document-upload/document-upload.component.ts +162 -0
  29. package/src/lib/document/components/document-viewer/document-viewer.component.html +98 -0
  30. package/src/lib/document/components/document-viewer/document-viewer.component.scss +54 -0
  31. package/src/lib/document/components/document-viewer/document-viewer.component.spec.ts +79 -0
  32. package/src/lib/document/components/document-viewer/document-viewer.component.ts +106 -0
  33. package/src/lib/document/components/folder-block/folder-block.component.html +46 -0
  34. package/src/lib/document/components/folder-block/folder-block.component.scss +9 -0
  35. package/src/lib/document/components/folder-block/folder-block.component.spec.ts +70 -0
  36. package/{lib/document/components/folder-block/folder-block.component.d.ts → src/lib/document/components/folder-block/folder-block.component.ts} +53 -37
  37. package/src/lib/document/components/folder-container/folder-container.component.html +2 -0
  38. package/src/lib/document/components/folder-container/folder-container.component.scss +0 -0
  39. package/src/lib/document/components/folder-container/folder-container.component.spec.ts +27 -0
  40. package/src/lib/document/components/folder-container/folder-container.component.ts +37 -0
  41. package/src/lib/document/components/linked-document/linked-document.component.html +23 -0
  42. package/src/lib/document/components/linked-document/linked-document.component.scss +10 -0
  43. package/src/lib/document/components/linked-document/linked-document.component.spec.ts +61 -0
  44. package/src/lib/document/components/linked-document/linked-document.component.ts +49 -0
  45. package/src/lib/document/directives/document.directive.ts +32 -0
  46. package/src/lib/document/directives/permission.directive.spec.ts +0 -0
  47. package/src/lib/document/directives/permission.directive.ts +66 -0
  48. package/src/lib/document/document.module.ts +241 -0
  49. package/{lib/document/models/document-alert.model.d.ts → src/lib/document/models/document-alert.model.ts} +45 -38
  50. package/src/lib/document/models/document-type.model.ts +44 -0
  51. package/src/lib/document/models/document.model.ts +53 -0
  52. package/{lib/document/models/folder.model.d.ts → src/lib/document/models/folder.model.ts} +35 -29
  53. package/src/lib/document/services/document-http.service.spec.ts +119 -0
  54. package/src/lib/document/services/document-http.service.ts +125 -0
  55. package/src/lib/document/services/document-upload.service.spec.ts +99 -0
  56. package/src/lib/document/services/document-upload.service.ts +127 -0
  57. package/src/lib/document/services/document.service.ts +29 -0
  58. package/src/lib/document/services/file-format.service.spec.ts +16 -0
  59. package/src/lib/document/services/file-format.service.ts +41 -0
  60. package/src/lib/document/state/document.query.ts +52 -0
  61. package/{lib/document/state/document.service.d.ts → src/lib/document/state/document.service.ts} +95 -64
  62. package/{lib/document/state/document.state.d.ts → src/lib/document/state/document.state.ts} +52 -36
  63. package/src/lib/document/state/document.store.ts +51 -0
  64. package/{public-api.d.ts → src/public-api.ts} +10 -6
  65. package/tsconfig.lib.json +15 -0
  66. package/tsconfig.lib.prod.json +11 -0
  67. package/tsconfig.spec.json +15 -0
  68. package/Shared/constant/PERMISSIONS.d.ts +0 -15
  69. package/Shared/constant/SHARED.d.ts +0 -209
  70. package/Shared/services/app-config.service.d.ts +0 -51
  71. package/Shared/services/session.service.d.ts +0 -46
  72. package/fesm2022/cat-documents-ng.mjs +0 -2538
  73. package/fesm2022/cat-documents-ng.mjs.map +0 -1
  74. package/index.d.ts +0 -5
  75. package/lib/document/components/document-container/document-container.component.d.ts +0 -85
  76. package/lib/document/components/document-list/document-list.component.d.ts +0 -160
  77. package/lib/document/components/document-list-item/document-list-item.component.d.ts +0 -28
  78. package/lib/document/components/document-upload/document-upload.component.d.ts +0 -120
  79. package/lib/document/components/document-viewer/document-viewer.component.d.ts +0 -73
  80. package/lib/document/components/folder-container/folder-container.component.d.ts +0 -29
  81. package/lib/document/components/linked-document/linked-document.component.d.ts +0 -38
  82. package/lib/document/directives/document.directive.d.ts +0 -20
  83. package/lib/document/directives/permission.directive.d.ts +0 -38
  84. package/lib/document/document.module.d.ts +0 -40
  85. package/lib/document/models/document-type.model.d.ts +0 -37
  86. package/lib/document/models/document.model.d.ts +0 -44
  87. package/lib/document/services/document-http.service.d.ts +0 -69
  88. package/lib/document/services/document-upload.service.d.ts +0 -67
  89. package/lib/document/services/document.service.d.ts +0 -20
  90. package/lib/document/services/file-format.service.d.ts +0 -23
  91. package/lib/document/state/document.query.d.ts +0 -42
  92. package/lib/document/state/document.store.d.ts +0 -29
@@ -1,36 +1,52 @@
1
- import { EntityState } from '@datorama/akita';
2
- import { DocumentModel } from '../models/document.model';
3
- import { DocumentTypeModel } from '../models/document-type.model';
4
- import { DocumentAlertModel } from '../models/document-alert.model';
5
- import { FolderBlockModel } from '../models/folder.model';
6
- import { Message } from 'primeng/api';
7
- /**
8
- * Represents the state of the documents in the application.
9
- * This interface extends Akita's `EntityState` to include additional properties
10
- * for managing document-specific data, such as `records`, `filteredRecords` and `folderId`.
11
- * @interface DocumentState
12
- * @property {any[]} records - A collection of records related to documents.
13
- * @property {any[]} filteredRecords - A collection of filteredRecords related to documents.
14
- * @property {string | null} folderId - The ID of the currently selected folder, or `null` if no folder is selected.
15
- * @property {boolean} isDialogOpen - A flag indicating whether a dialog is open.
16
- */
17
- export interface DocumentState extends EntityState<DocumentModel, string> {
18
- records: DocumentModel[];
19
- folderId: string | null;
20
- isDialogOpen: boolean;
21
- filteredRecords: DocumentModel[];
22
- dropdownOptions: DocumentTypeModel[];
23
- uploadedDocumentFiles: DocumentModel[];
24
- parentDocumentTypeId: string | null;
25
- documentAlert: DocumentAlertModel;
26
- folders: FolderBlockModel[];
27
- messages: Message[];
28
- documentList: DocumentModel[];
29
- }
30
- /**
31
- * Creates the initial state for the `DocumentState` store.
32
- * This function provides default values for all properties in the `DocumentState` interface,
33
- * ensuring the store starts with a consistent initial structure.
34
- * @returns {DocumentState} The initial state of the document store.
35
- */
36
- export declare function createInitialState(): DocumentState;
1
+ import { EntityState } from '@datorama/akita';
2
+ import { DocumentModel } from '../models/document.model';
3
+ import { DocumentTypeModel } from '../models/document-type.model';
4
+ import { DocumentAlertModel } from '../models/document-alert.model';
5
+ import { FolderBlockModel } from '../models/folder.model';
6
+ import { Message } from 'primeng/api';
7
+
8
+ /**
9
+ * Represents the state of the documents in the application.
10
+ * This interface extends Akita's `EntityState` to include additional properties
11
+ * for managing document-specific data, such as `records`, `filteredRecords` and `folderId`.
12
+ * @interface DocumentState
13
+ * @property {any[]} records - A collection of records related to documents.
14
+ * @property {any[]} filteredRecords - A collection of filteredRecords related to documents.
15
+ * @property {string | null} folderId - The ID of the currently selected folder, or `null` if no folder is selected.
16
+ * @property {boolean} isDialogOpen - A flag indicating whether a dialog is open.
17
+ */
18
+ export interface DocumentState extends EntityState<DocumentModel, string> {
19
+ records: DocumentModel[];
20
+ folderId: string | null;
21
+ isDialogOpen: boolean;
22
+ filteredRecords:DocumentModel[];
23
+ dropdownOptions: DocumentTypeModel[];
24
+ uploadedDocumentFiles: DocumentModel[];
25
+ parentDocumentTypeId: string | null;
26
+ documentAlert:DocumentAlertModel
27
+ folders:FolderBlockModel[]
28
+ messages: Message[]
29
+ documentList : DocumentModel[]
30
+ }
31
+
32
+ /**
33
+ * Creates the initial state for the `DocumentState` store.
34
+ * This function provides default values for all properties in the `DocumentState` interface,
35
+ * ensuring the store starts with a consistent initial structure.
36
+ * @returns {DocumentState} The initial state of the document store.
37
+ */
38
+ export function createInitialState(): DocumentState {
39
+ return {
40
+ records: [],
41
+ filteredRecords: [],
42
+ folderId: null,
43
+ isDialogOpen: false,
44
+ dropdownOptions: [],
45
+ uploadedDocumentFiles: [],
46
+ parentDocumentTypeId: null,
47
+ documentAlert: {_id:''},
48
+ folders:[],
49
+ messages:[],
50
+ documentList : []
51
+ };
52
+ }
@@ -0,0 +1,51 @@
1
+ import { Injectable } from '@angular/core';
2
+ import { EntityStore, StoreConfig } from '@datorama/akita';
3
+ import { createInitialState, DocumentState } from './document.state';
4
+ import { DocumentTypeModel } from '../models/document-type.model';
5
+ import { Message } from 'primeng/api';
6
+ import { DocumentModel } from '../models/document.model';
7
+
8
+ /**
9
+ * Store that manages the state of documents in the application.
10
+ * The `DocumentStore` class extends Akita's `EntityStore` to manage the entity state for documents.
11
+ * It uses the `createInitialState` function to initialize the store with default values and
12
+ * is configured with the name `'documents'`.
13
+ * @augments EntityStore<DocumentState>
14
+ */
15
+ @Injectable({ providedIn: 'root' })
16
+ @StoreConfig({ name: 'documents' })
17
+ export class DocumentStore extends EntityStore<DocumentState> {
18
+ /**
19
+ * Creates an instance of `DocumentStore` with the initial state of the documents.
20
+ */
21
+ constructor() {
22
+ super(createInitialState());
23
+ }
24
+
25
+ setUploadedDocumentFiles(files: any[]) {
26
+ this.update({ uploadedDocumentFiles: files });
27
+ }
28
+
29
+ setFolders(folders: any) {
30
+ this.update({ folders: folders });
31
+ }
32
+ setDocumentTypes(documentType: any) {
33
+ this.update({ uploadedDocumentFiles: documentType });
34
+ }
35
+
36
+ setDocumentAlert(documentAlert: any) {
37
+ this.update({ documentAlert : documentAlert });
38
+ }
39
+
40
+ setParentDocumentTypeId(parentDocumentTypeId: string) {
41
+ this.update({ parentDocumentTypeId });
42
+ }
43
+
44
+ setMessage(message: Message[]) {
45
+ this.update({ messages : message });
46
+ }
47
+
48
+ setDocumentList(documents: DocumentModel[]) {
49
+ this.update({ documents : documents });
50
+ }
51
+ }
@@ -1,6 +1,10 @@
1
- export * from './lib/document/document.module';
2
- export * from './lib/document/components/document-container/document-container.component';
3
- export * from './lib/document/components/document-viewer/document-viewer.component';
4
- export * from './lib/document/components/document-list/document-list.component';
5
- export * from './lib/document/directives/document.directive';
6
- export * from './lib/document/directives/permission.directive';
1
+ /*
2
+ * Public API Surface of cat-document-lib
3
+ */
4
+
5
+ export * from './lib/document/document.module';
6
+ export * from './lib/document/components/document-container/document-container.component';
7
+ export * from './lib/document/components/document-viewer/document-viewer.component';
8
+ export * from './lib/document/components/document-list/document-list.component';
9
+ export * from './lib/document/directives/document.directive';
10
+ export * from './lib/document/directives/permission.directive';
@@ -0,0 +1,15 @@
1
+ /* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
2
+ /* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
3
+ {
4
+ "extends": "../../tsconfig.json",
5
+ "compilerOptions": {
6
+ "outDir": "../../out-tsc/lib",
7
+ "declaration": true,
8
+ "declarationMap": true,
9
+ "inlineSources": true,
10
+ "types": []
11
+ },
12
+ "exclude": [
13
+ "**/*.spec.ts"
14
+ ]
15
+ }
@@ -0,0 +1,11 @@
1
+ /* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
2
+ /* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
3
+ {
4
+ "extends": "./tsconfig.lib.json",
5
+ "compilerOptions": {
6
+ "declarationMap": false
7
+ },
8
+ "angularCompilerOptions": {
9
+ "compilationMode": "partial"
10
+ }
11
+ }
@@ -0,0 +1,15 @@
1
+ /* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
2
+ /* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
3
+ {
4
+ "extends": "../../tsconfig.json",
5
+ "compilerOptions": {
6
+ "outDir": "../../out-tsc/spec",
7
+ "types": [
8
+ "jasmine"
9
+ ]
10
+ },
11
+ "include": [
12
+ "**/*.spec.ts",
13
+ "**/*.d.ts"
14
+ ]
15
+ }
@@ -1,15 +0,0 @@
1
- /**
2
- * Storing all permission properties.
3
- * @export
4
- * @class PERMISSIONS
5
- * @typedef {PERMISSIONS}
6
- */
7
- export declare class PERMISSIONS {
8
- /**
9
- * Access permission.
10
- * @static
11
- * @type {string}
12
- */
13
- static DOCUMENT_POST: string;
14
- static DOCUMENT_PUT: string;
15
- }
@@ -1,209 +0,0 @@
1
- /**
2
- * The `SHARED` class contains shared constants used across the application.
3
- * These constants are related to document statuses and other shared data.
4
- */
5
- export declare class SHARED {
6
- /**
7
- * Represents the stores userData.
8
- */
9
- static SESSIONKEY: string;
10
- /**
11
- * Represents the count of missing files.
12
- */
13
- static MISSINGCOUNT: number;
14
- /**
15
- * Represents the count of pending files.
16
- */
17
- static PENDINGCOUNT: number;
18
- /**
19
- * Represents an empty string.
20
- */
21
- static EMPTY: string;
22
- /**
23
- * Represents an true.
24
- * @static
25
- * @type {boolean}
26
- */
27
- static TRUE: boolean;
28
- /**
29
- * Represents an false.
30
- * @static
31
- * @type {boolean}
32
- */
33
- static FALSE: boolean;
34
- /**
35
- * Represents an INITIAL_COUNT.
36
- */
37
- static INITIAL_COUNT: number;
38
- /**
39
- * Represents an INITIAL_VALUE.
40
- */
41
- static INITIAL_VALUE: number;
42
- /**
43
- * Represents the constant value for one (1).
44
- * @static
45
- * @type {number}
46
- */
47
- static ONE: number;
48
- /**
49
- * Represents the constant value for two (2).
50
- * @static
51
- * @type {number}
52
- */
53
- static TWO: number;
54
- /**
55
- * Represents the constant value for ten (10).
56
- * @static
57
- * @type {number}
58
- */
59
- static TEN: number;
60
- /**
61
- * Represents the constant string value 'files' used for file-related operations.
62
- * @static
63
- * @type {string}
64
- */
65
- static FILE: string;
66
- /**
67
- * Represents the array of file size units ('B', 'KB', 'MB') used for file size formatting.
68
- * @static
69
- * @type {string[]}
70
- */
71
- static FILE_SIZE_UNITS: string[];
72
- /**
73
- * Show SEVERITY value.
74
- * @static
75
- * @type {'error'}
76
- */
77
- static SEVERITY: string;
78
- /**
79
- * Show SEVERITY value.
80
- * @static
81
- * @type {'error'}
82
- */
83
- static SUCCESS_SEVERITY: string;
84
- /**
85
- * Show upload summery if it's failed.
86
- * @static
87
- * @type {'Upload Failed'}
88
- */
89
- static UPLOAD_SUMMERY: string;
90
- /**
91
- * Show upload summery if it's success.
92
- * @static
93
- * @type {'Document uploaded successfully.'}
94
- */
95
- static UPLOAD_SUCCESS: string;
96
- /**
97
- * Represent empty array.
98
- * @static
99
- * @type {{}}
100
- */
101
- static EMPTY_ARRAY: never[];
102
- /**
103
- * Represent contextId.
104
- * @static
105
- * @type {string}
106
- */
107
- static CONTEXT_ID: string;
108
- /**
109
- * Represent fileSize.
110
- * @static
111
- * @type {string}
112
- */
113
- static FILE_SIZE: string;
114
- /**
115
- * Represent documentName.
116
- * @static
117
- * @type {string}
118
- */
119
- static DOCUMENT_NAME: string;
120
- /**
121
- * Represent documentTypeId.
122
- * @static
123
- * @type {string}
124
- */
125
- static DOCUMENT_TYPE_ID: string;
126
- /**
127
- * Represent upload summery.
128
- * @static
129
- * @type {string}
130
- */
131
- static UPLOAD_ERROR_SUMMERY: string;
132
- /**
133
- * Represent upload error details.
134
- * @static
135
- * @type {string}
136
- */
137
- static UPLOAD_ERROR_DETAILS: string;
138
- /**
139
- * Represents the message prefix for a successful document name update.
140
- * @static
141
- * @type {string}
142
- */
143
- static UPDATE_DOCUMENT_NAME: string;
144
- }
145
- /**
146
- * `DUMMYDOCUMENTLIST` is a mock list of document objects used for testing and development purposes.
147
- * Each document includes an ID, file name, status, and document URL.
148
- */
149
- export declare const DUMMYDOCUMENTLIST: {
150
- _id: number;
151
- fileName: string;
152
- status: string;
153
- documentUrl: string;
154
- }[];
155
- /**
156
- * `FOLDERPANEL` is a mock list of folder data representing various folders in the application.
157
- * Each folder contains an ID, file count, text description, missing files count, and pending files count.
158
- */
159
- export declare const FOLDERPANEL: {
160
- _id: string;
161
- fileCount: number;
162
- text: string;
163
- missingFiles: number;
164
- pendingFiles: number;
165
- }[];
166
- /**
167
- * Dummy data for sumaery.
168
- * @type {{}}
169
- */
170
- export declare const DUMMYSUMMARY: ({
171
- status: string;
172
- date: string;
173
- icon: string;
174
- color: string;
175
- image: string;
176
- } | {
177
- status: string;
178
- date: string;
179
- icon: string;
180
- color: string;
181
- image?: undefined;
182
- })[];
183
- /**
184
- * Dummy data for list box.
185
- * @type {{}}
186
- */
187
- export declare const COUNTRIES: {
188
- name: string;
189
- code: string;
190
- checked: boolean;
191
- }[];
192
- /**
193
- * Default supported image types.
194
- * @type {{}}
195
- */
196
- export declare const SUPPORTED_IMAGE_TYPES: string[];
197
- /**
198
- * @constant {Array<{label: string, value: string, files: string[]}>} DOCUMENTTYPES
199
- * An array of document type objects containing labels, values, and associated files.
200
- */
201
- export declare const DOCUMENTTYPES: {
202
- label: string;
203
- value: string;
204
- }[];
205
- export declare const DocumentAlertList: {
206
- status: string;
207
- isAlert: boolean;
208
- alertMessage: string;
209
- }[];
@@ -1,51 +0,0 @@
1
- import { HttpClient } from '@angular/common/http';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * Service that handles loading and providing configuration settings for the application.
5
- * It fetches configuration data from a remote server and exposes various configuration options.
6
- * @class AppConfigService
7
- * @typedef {AppConfigService}
8
- */
9
- export declare class AppConfigService {
10
- private http;
11
- /**
12
- * Holds the configuration data loaded from the server.
13
- * @private
14
- * @type {*}
15
- */
16
- private appConfig;
17
- /**
18
- * Creates an instance of AppConfigService.
19
- * Initializes the HttpClient for making HTTP requests.
20
- * @class
21
- * @param {HttpClient} http - The HttpClient service used for making HTTP requests.
22
- */
23
- constructor(http: HttpClient);
24
- /**
25
- * Loads the application configuration from the server by making an HTTP request to the configuration URL.
26
- * This method retrieves the configuration data and assigns it to the appConfig property.
27
- * @async
28
- * @returns {*}
29
- */
30
- loadAppConfig(): Promise<void>;
31
- /**
32
- * Returns the base URL for the API from the loaded configuration.
33
- * @readonly
34
- * @type {*}
35
- */
36
- get apiBaseUrl(): any;
37
- /**
38
- * Returns the local server API URL from the loaded configuration.
39
- * @readonly
40
- * @type {*}
41
- */
42
- get localServerApi(): any;
43
- /**
44
- * Returns the visibility options from the loaded configuration.
45
- * @readonly
46
- * @type {*}
47
- */
48
- get visibilityOptions(): any;
49
- static ɵfac: i0.ɵɵFactoryDeclaration<AppConfigService, never>;
50
- static ɵprov: i0.ɵɵInjectableDeclaration<AppConfigService>;
51
- }
@@ -1,46 +0,0 @@
1
- import { Router } from '@angular/router';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * Service for managing user session details.
5
- * @class SessionService
6
- * @typedef {SessionService}
7
- */
8
- export declare class SessionService {
9
- router: Router;
10
- /**
11
- * Creates an instance of SessionService.
12
- * @param {Router} router - Angular Router for navigation.
13
- */
14
- constructor(router: Router);
15
- /**
16
- * Retrieves the current user's role from local storage.
17
- * @returns {string | null} The user's role, or null if not found.
18
- */
19
- getUserRole(): string | null;
20
- /**
21
- * Stores the user session data in local storage.
22
- * @param {any} data - The session data to store.
23
- */
24
- setUserSession(data: any): void;
25
- /**
26
- * Retrieves the stored user session data.
27
- * @returns {any | null} The parsed session data, or null if not found.
28
- */
29
- getUserSession(): any | null;
30
- /**
31
- * Retrieves the user's permissions from the stored session data.
32
- * @returns {any | null} The user's permissions, or null if not found.
33
- */
34
- getUserPermissions(): any | null;
35
- /**
36
- * Retrieves the session ID from the stored session data.
37
- * @returns {any | null} The session ID, or null if not found.
38
- */
39
- getSessionID(): any | null;
40
- /**
41
- * Clears all stored session data from local storage.
42
- */
43
- clearSession(): void;
44
- static ɵfac: i0.ɵɵFactoryDeclaration<SessionService, never>;
45
- static ɵprov: i0.ɵɵInjectableDeclaration<SessionService>;
46
- }