@acorex/connectivity 20.0.25 → 20.2.0-next.0

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/mock/index.d.ts CHANGED
@@ -1,250 +1,14 @@
1
+ import { AXPDataSeeder, AXPEntityStorageService, AXPEntityDefinitionRegistryService } from '@acorex/platform/layout/entity';
2
+ import * as i0 from '@angular/core';
3
+ import { Injector } from '@angular/core';
4
+ import { AXPLockService, AXPLockRequest, AXPLockInfo, AXPUnLockRequest, AXPLockGetInfoRequest, AXPReportCategory, AXPReportDefinition, AXPExecutionReportCommand, AXPLayoutExecutionContext, AXPExecutionReportCommandResult } from '@acorex/platform/common';
5
+ import { AXMCommonDashboardEntityModel } from '@acorex/modules/dashboard-management';
1
6
  import Dexie from 'dexie';
2
7
  import * as i1$1 from '@acorex/platform/auth';
3
8
  import { AXPSessionService, AXPBaseCredentials, AXPAuthStrategy, AXPSignInResult, AXPSessionContext, AXPRefreshTokenResult } from '@acorex/platform/auth';
4
- import { AXPLockService, AXPFileStorageService, AXPFileStorageCreateRequest, AXPFileStorageInfo, AXPFileStorageUpdateRequest, AXPFileStorageFindRequest, AXPLockRequest, AXPLockInfo, AXPUnLockRequest, AXPLockGetInfoRequest, AXPReportCategory, AXPReportDefinition } from '@acorex/platform/common';
5
9
  import { AXPQueryRequest, AXPPagedListResult, AXPAppStartUpService } from '@acorex/platform/core';
6
- import { AXPEntityStorageService, AXPEntityDefinitionRegistryService, AXPDataSeeder } from '@acorex/platform/layout/entity';
7
- import * as i0 from '@angular/core';
8
- import { Injector } from '@angular/core';
9
10
  import * as i1 from '@acorex/platform/runtime';
10
- import { AXMCommonDashboardEntityModel } from '@acorex/modules/dashboard-management';
11
11
  import { AXMTextTemplateManagementTemplateEntityModel } from '@acorex/modules/text-template-management';
12
- import { AXPWidgetDataSourceProvider, AXPWidgetDataSource } from '@acorex/platform/layout/builder';
13
-
14
- declare class AXPDexieEntityStorageService extends Dexie implements AXPEntityStorageService<string, any> {
15
- protected sessionService: AXPSessionService;
16
- protected entityRegistryService: AXPEntityDefinitionRegistryService;
17
- protected lockService: AXPLockService;
18
- constructor();
19
- get dbName(): string;
20
- private detectChanges;
21
- private addToHistory;
22
- /**
23
- * Seed the storage with the provided collection only if it has not been
24
- * inserted before.
25
- *
26
- * Rather than relying on the total record count, we inspect whether the first
27
- * item of the incoming collection (identified by its `id`) already exists in
28
- * the table for the given `entityName`. If it exists, the data has already
29
- * been seeded and no action is taken; otherwise, the entire collection is
30
- * bulk-inserted.
31
- */
32
- initial<T = any>(entityName: string, collection: T[], options?: {
33
- mergeType: 'merge' | 'replace';
34
- uniqueKeys: string[];
35
- }): Promise<T[]>;
36
- getOne<T = any>(entityName: string, id: string): Promise<T>;
37
- updateOne<T = any>(entityName: string, id: string, keyValue: {
38
- [key: string]: any;
39
- }): Promise<T>;
40
- deleteOne(entityName: string, id: string): Promise<void>;
41
- insertOne<T = any>(entityName: string, entity: T): Promise<string>;
42
- getAll<T = any>(entityName: string): Promise<T[]>;
43
- query<T = any>(entityName: string, request: AXPQueryRequest): Promise<AXPPagedListResult<T>>;
44
- static ɵfac: i0.ɵɵFactoryDeclaration<AXPDexieEntityStorageService, never>;
45
- static ɵprov: i0.ɵɵInjectableDeclaration<AXPDexieEntityStorageService>;
46
- }
47
-
48
- declare class AXCCommonMockModule {
49
- static ɵfac: i0.ɵɵFactoryDeclaration<AXCCommonMockModule, never>;
50
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXCCommonMockModule, never, never, never>;
51
- static ɵinj: i0.ɵɵInjectorDeclaration<AXCCommonMockModule>;
52
- }
53
-
54
- declare class AXCFormTemplateManagementMockModule {
55
- static ɵfac: i0.ɵɵFactoryDeclaration<AXCFormTemplateManagementMockModule, never>;
56
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXCFormTemplateManagementMockModule, never, never, never>;
57
- static ɵinj: i0.ɵɵInjectorDeclaration<AXCFormTemplateManagementMockModule>;
58
- }
59
-
60
- declare class AXCFOrganizationManagementMockModule {
61
- static ɵfac: i0.ɵɵFactoryDeclaration<AXCFOrganizationManagementMockModule, never>;
62
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXCFOrganizationManagementMockModule, never, never, never>;
63
- static ɵinj: i0.ɵɵInjectorDeclaration<AXCFOrganizationManagementMockModule>;
64
- }
65
-
66
- declare class AXCReportManagementMockModule {
67
- static ɵfac: i0.ɵɵFactoryDeclaration<AXCReportManagementMockModule, never>;
68
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXCReportManagementMockModule, never, [typeof i1.AXPRuntimeModule], never>;
69
- static ɵinj: i0.ɵɵInjectorDeclaration<AXCReportManagementMockModule>;
70
- }
71
-
72
- declare class AXCContactManagementMockModule {
73
- static ɵfac: i0.ɵɵFactoryDeclaration<AXCContactManagementMockModule, never>;
74
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXCContactManagementMockModule, never, never, never>;
75
- static ɵinj: i0.ɵɵInjectorDeclaration<AXCContactManagementMockModule>;
76
- }
77
-
78
- declare class AXCDashboardManagementMockModule {
79
- static ɵfac: i0.ɵɵFactoryDeclaration<AXCDashboardManagementMockModule, never>;
80
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXCDashboardManagementMockModule, never, never, never>;
81
- static ɵinj: i0.ɵɵInjectorDeclaration<AXCDashboardManagementMockModule>;
82
- }
83
-
84
- declare class AXCConversationMockModule {
85
- static ɵfac: i0.ɵɵFactoryDeclaration<AXCConversationMockModule, never>;
86
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXCConversationMockModule, never, never, never>;
87
- static ɵinj: i0.ɵɵInjectorDeclaration<AXCConversationMockModule>;
88
- }
89
-
90
- declare class AXCAuthMockModule {
91
- static ɵfac: i0.ɵɵFactoryDeclaration<AXCAuthMockModule, never>;
92
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXCAuthMockModule, never, never, never>;
93
- static ɵinj: i0.ɵɵInjectorDeclaration<AXCAuthMockModule>;
94
- }
95
-
96
- declare class AXCPlatformManagementMockModule {
97
- static ɵfac: i0.ɵɵFactoryDeclaration<AXCPlatformManagementMockModule, never>;
98
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXCPlatformManagementMockModule, never, never, never>;
99
- static ɵinj: i0.ɵɵInjectorDeclaration<AXCPlatformManagementMockModule>;
100
- }
101
-
102
- declare class AXCTextTemplateManagementMockModule {
103
- static ɵfac: i0.ɵɵFactoryDeclaration<AXCTextTemplateManagementMockModule, never>;
104
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXCTextTemplateManagementMockModule, never, never, never>;
105
- static ɵinj: i0.ɵɵInjectorDeclaration<AXCTextTemplateManagementMockModule>;
106
- }
107
-
108
- declare class AXCSecurityManagementMockModule {
109
- static ɵfac: i0.ɵɵFactoryDeclaration<AXCSecurityManagementMockModule, never>;
110
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXCSecurityManagementMockModule, never, never, never>;
111
- static ɵinj: i0.ɵɵInjectorDeclaration<AXCSecurityManagementMockModule>;
112
- }
113
-
114
- declare class AXCSchedulerJobManagementMockModule {
115
- static ɵfac: i0.ɵɵFactoryDeclaration<AXCSchedulerJobManagementMockModule, never>;
116
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXCSchedulerJobManagementMockModule, never, never, never>;
117
- static ɵinj: i0.ɵɵInjectorDeclaration<AXCSchedulerJobManagementMockModule>;
118
- }
119
-
120
- declare class AXCNotificationManagementMockModule {
121
- static ɵfac: i0.ɵɵFactoryDeclaration<AXCNotificationManagementMockModule, never>;
122
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXCNotificationManagementMockModule, never, never, never>;
123
- static ɵinj: i0.ɵɵInjectorDeclaration<AXCNotificationManagementMockModule>;
124
- }
125
-
126
- declare class AXCApplicationManagementMockModule {
127
- static ɵfac: i0.ɵɵFactoryDeclaration<AXCApplicationManagementMockModule, never>;
128
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXCApplicationManagementMockModule, never, never, never>;
129
- static ɵinj: i0.ɵɵInjectorDeclaration<AXCApplicationManagementMockModule>;
130
- }
131
-
132
- declare class AXCTrainingManagementMockModule {
133
- static ɵfac: i0.ɵɵFactoryDeclaration<AXCTrainingManagementMockModule, never>;
134
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXCTrainingManagementMockModule, never, never, never>;
135
- static ɵinj: i0.ɵɵInjectorDeclaration<AXCTrainingManagementMockModule>;
136
- }
137
-
138
- declare class AXCProjectManagementMockModule {
139
- static ɵfac: i0.ɵɵFactoryDeclaration<AXCProjectManagementMockModule, never>;
140
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXCProjectManagementMockModule, never, never, never>;
141
- static ɵinj: i0.ɵɵInjectorDeclaration<AXCProjectManagementMockModule>;
142
- }
143
-
144
- declare class AXCDocumentManagementMockModule {
145
- static ɵfac: i0.ɵɵFactoryDeclaration<AXCDocumentManagementMockModule, never>;
146
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXCDocumentManagementMockModule, never, never, never>;
147
- static ɵinj: i0.ɵɵInjectorDeclaration<AXCDocumentManagementMockModule>;
148
- }
149
-
150
- declare class AXCIssueManagementMockModule {
151
- static ɵfac: i0.ɵɵFactoryDeclaration<AXCIssueManagementMockModule, never>;
152
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXCIssueManagementMockModule, never, never, never>;
153
- static ɵinj: i0.ɵɵInjectorDeclaration<AXCIssueManagementMockModule>;
154
- }
155
-
156
- declare class AXCLogManagementMockModule {
157
- static ɵfac: i0.ɵɵFactoryDeclaration<AXCLogManagementMockModule, never>;
158
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXCLogManagementMockModule, never, never, never>;
159
- static ɵinj: i0.ɵɵInjectorDeclaration<AXCLogManagementMockModule>;
160
- }
161
-
162
- declare class AXMCalendarManagementMockModule {
163
- static ɵfac: i0.ɵɵFactoryDeclaration<AXMCalendarManagementMockModule, never>;
164
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXMCalendarManagementMockModule, never, never, never>;
165
- static ɵinj: i0.ɵɵInjectorDeclaration<AXMCalendarManagementMockModule>;
166
- }
167
-
168
- declare class AXCDataManagementMockModule {
169
- static ɵfac: i0.ɵɵFactoryDeclaration<AXCDataManagementMockModule, never>;
170
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXCDataManagementMockModule, never, never, never>;
171
- static ɵinj: i0.ɵɵInjectorDeclaration<AXCDataManagementMockModule>;
172
- }
173
-
174
- declare class AXCMockModule {
175
- constructor(appInitService: AXPAppStartUpService, injector: Injector);
176
- static ɵfac: i0.ɵɵFactoryDeclaration<AXCMockModule, never>;
177
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXCMockModule, never, [typeof i1$1.AXPAuthModule, typeof AXCCommonMockModule, typeof AXCFormTemplateManagementMockModule, typeof AXCFOrganizationManagementMockModule, typeof AXCReportManagementMockModule, typeof AXCContactManagementMockModule, typeof AXCDashboardManagementMockModule, typeof AXCConversationMockModule, typeof AXCAuthMockModule, typeof AXCPlatformManagementMockModule, typeof AXCTextTemplateManagementMockModule, typeof AXCSecurityManagementMockModule, typeof AXCSchedulerJobManagementMockModule, typeof AXCNotificationManagementMockModule, typeof AXCApplicationManagementMockModule, typeof AXCTrainingManagementMockModule, typeof AXCProjectManagementMockModule, typeof AXCDocumentManagementMockModule, typeof AXCIssueManagementMockModule, typeof AXCLogManagementMockModule, typeof AXMCalendarManagementMockModule, typeof AXCDataManagementMockModule], never>;
178
- static ɵinj: i0.ɵɵInjectorDeclaration<AXCMockModule>;
179
- }
180
-
181
- interface MockUserPassCredentials extends AXPBaseCredentials {
182
- username: string;
183
- password: string;
184
- }
185
- declare class MOCKStrategy implements AXPAuthStrategy {
186
- constructor();
187
- private entityRegistery;
188
- get name(): string;
189
- signin(credentials: MockUserPassCredentials): Promise<AXPSignInResult>;
190
- signout(): Promise<void>;
191
- refreshToken(context: AXPSessionContext): Promise<AXPRefreshTokenResult>;
192
- static ɵfac: i0.ɵɵFactoryDeclaration<MOCKStrategy, never>;
193
- static ɵprov: i0.ɵɵInjectableDeclaration<MOCKStrategy>;
194
- }
195
-
196
- declare class AXCAppTermDataSeeder implements AXPDataSeeder {
197
- private storageService;
198
- seed(): Promise<void>;
199
- static ɵfac: i0.ɵɵFactoryDeclaration<AXCAppTermDataSeeder, never>;
200
- static ɵprov: i0.ɵɵInjectableDeclaration<AXCAppTermDataSeeder>;
201
- }
202
-
203
- declare class AXCAppVersionDataSeeder implements AXPDataSeeder {
204
- private storageService;
205
- seed(): Promise<void>;
206
- static ɵfac: i0.ɵɵFactoryDeclaration<AXCAppVersionDataSeeder, never>;
207
- static ɵprov: i0.ɵɵInjectableDeclaration<AXCAppVersionDataSeeder>;
208
- }
209
-
210
- declare class AXCGlobalVariablesDataSeeder implements AXPDataSeeder {
211
- private storageService;
212
- seed(): Promise<void>;
213
- static ɵfac: i0.ɵɵFactoryDeclaration<AXCGlobalVariablesDataSeeder, never>;
214
- static ɵprov: i0.ɵɵInjectableDeclaration<AXCGlobalVariablesDataSeeder>;
215
- }
216
-
217
- declare const GLOBAL_VARIABLES: {
218
- id: string;
219
- name: string;
220
- title: string;
221
- dataType: string;
222
- value: string;
223
- }[];
224
-
225
- declare class AXCMetaDataDefinitionDataSeeder implements AXPDataSeeder {
226
- private storageService;
227
- seed(): Promise<void>;
228
- static ɵfac: i0.ɵɵFactoryDeclaration<AXCMetaDataDefinitionDataSeeder, never>;
229
- static ɵprov: i0.ɵɵInjectableDeclaration<AXCMetaDataDefinitionDataSeeder>;
230
- }
231
-
232
- declare class AXCFileStorageService implements AXPFileStorageService {
233
- private fileService;
234
- private mapToFileStorageInfo;
235
- save(request: AXPFileStorageCreateRequest): Promise<AXPFileStorageInfo>;
236
- commit(fileId: string): Promise<void>;
237
- markForDeletion(fileId: string): Promise<void>;
238
- update(request: AXPFileStorageUpdateRequest): Promise<AXPFileStorageInfo>;
239
- find(request: AXPFileStorageFindRequest): Promise<AXPFileStorageInfo[]>;
240
- getInfo(fileId: string): Promise<AXPFileStorageInfo>;
241
- remove(fileId: string): Promise<void>;
242
- private cleanupTemporaryFiles;
243
- private cleanupMarkedFiles;
244
- constructor();
245
- static ɵfac: i0.ɵɵFactoryDeclaration<AXCFileStorageService, never>;
246
- static ɵprov: i0.ɵɵInjectableDeclaration<AXCFileStorageService>;
247
- }
248
12
 
249
13
  declare const APPLICATIONS: {
250
14
  id: string;
@@ -321,6 +85,24 @@ declare class AXCApplicationTemplateDataSeeder implements AXPDataSeeder {
321
85
  static ɵprov: i0.ɵɵInjectableDeclaration<AXCApplicationTemplateDataSeeder>;
322
86
  }
323
87
 
88
+ declare class AXCApplicationManagementMockModule {
89
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCApplicationManagementMockModule, never>;
90
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXCApplicationManagementMockModule, never, never, never>;
91
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXCApplicationManagementMockModule>;
92
+ }
93
+
94
+ declare class AXCAuthMockModule {
95
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCAuthMockModule, never>;
96
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXCAuthMockModule, never, never, never>;
97
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXCAuthMockModule>;
98
+ }
99
+
100
+ declare class AXCCommonMockModule {
101
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCCommonMockModule, never>;
102
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXCCommonMockModule, never, never, never>;
103
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXCCommonMockModule>;
104
+ }
105
+
324
106
  declare class AXCLockService implements AXPLockService {
325
107
  private className;
326
108
  private db;
@@ -358,6 +140,12 @@ declare class AXCLockService implements AXPLockService {
358
140
  static ɵprov: i0.ɵɵInjectableDeclaration<AXCLockService>;
359
141
  }
360
142
 
143
+ declare class AXCContactManagementMockModule {
144
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCContactManagementMockModule, never>;
145
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXCContactManagementMockModule, never, never, never>;
146
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXCContactManagementMockModule>;
147
+ }
148
+
361
149
  declare class AXMAiResponderService {
362
150
  private readonly geminiApiKey;
363
151
  getAIResponse(prompt: string): Promise<string>;
@@ -387,6 +175,12 @@ declare class AXPRoomDataSeeder implements AXPDataSeeder {
387
175
  static ɵprov: i0.ɵɵInjectableDeclaration<AXPRoomDataSeeder>;
388
176
  }
389
177
 
178
+ declare class AXCConversationMockModule {
179
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCConversationMockModule, never>;
180
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXCConversationMockModule, never, never, never>;
181
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXCConversationMockModule>;
182
+ }
183
+
390
184
  declare function generateRandomDashboard(): AXMCommonDashboardEntityModel;
391
185
  declare const DASHBOARDS: AXMCommonDashboardEntityModel[];
392
186
 
@@ -397,6 +191,158 @@ declare class AXPDashboardDataSeeder implements AXPDataSeeder {
397
191
  static ɵprov: i0.ɵɵInjectableDeclaration<AXPDashboardDataSeeder>;
398
192
  }
399
193
 
194
+ declare class AXCDashboardManagementMockModule {
195
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCDashboardManagementMockModule, never>;
196
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXCDashboardManagementMockModule, never, never, never>;
197
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXCDashboardManagementMockModule>;
198
+ }
199
+
200
+ declare class AXCDataManagementMockModule {
201
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCDataManagementMockModule, never>;
202
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXCDataManagementMockModule, never, never, never>;
203
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXCDataManagementMockModule>;
204
+ }
205
+
206
+ declare class AXPDexieEntityStorageService extends Dexie implements AXPEntityStorageService<string, any> {
207
+ protected sessionService: AXPSessionService;
208
+ protected entityRegistryService: AXPEntityDefinitionRegistryService;
209
+ protected lockService: AXPLockService;
210
+ constructor();
211
+ get dbName(): string;
212
+ private detectChanges;
213
+ private addToHistory;
214
+ /**
215
+ * Seed the storage with the provided collection only if it has not been
216
+ * inserted before.
217
+ *
218
+ * Rather than relying on the total record count, we inspect whether the first
219
+ * item of the incoming collection (identified by its `id`) already exists in
220
+ * the table for the given `entityName`. If it exists, the data has already
221
+ * been seeded and no action is taken; otherwise, the entire collection is
222
+ * bulk-inserted.
223
+ */
224
+ initial<T = any>(entityName: string, collection: T[], options?: {
225
+ mergeType: 'merge' | 'replace';
226
+ uniqueKeys: string[];
227
+ }): Promise<T[]>;
228
+ getOne<T = any>(entityName: string, id: string): Promise<T>;
229
+ updateOne<T = any>(entityName: string, id: string, keyValue: {
230
+ [key: string]: any;
231
+ }): Promise<T>;
232
+ deleteOne(entityName: string, id: string): Promise<void>;
233
+ insertOne<T = any>(entityName: string, entity: T): Promise<string>;
234
+ getAll<T = any>(entityName: string): Promise<T[]>;
235
+ query<T = any>(entityName: string, request: AXPQueryRequest): Promise<AXPPagedListResult<T>>;
236
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXPDexieEntityStorageService, never>;
237
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXPDexieEntityStorageService>;
238
+ }
239
+
240
+ declare class AXCDocumentManagementMockModule {
241
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCDocumentManagementMockModule, never>;
242
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXCDocumentManagementMockModule, never, never, never>;
243
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXCDocumentManagementMockModule>;
244
+ }
245
+
246
+ declare class AXCFormTemplateManagementMockModule {
247
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCFormTemplateManagementMockModule, never>;
248
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXCFormTemplateManagementMockModule, never, never, never>;
249
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXCFormTemplateManagementMockModule>;
250
+ }
251
+
252
+ declare class AXCIssueManagementMockModule {
253
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCIssueManagementMockModule, never>;
254
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXCIssueManagementMockModule, never, never, never>;
255
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXCIssueManagementMockModule>;
256
+ }
257
+
258
+ declare class AXCLogManagementMockModule {
259
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCLogManagementMockModule, never>;
260
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXCLogManagementMockModule, never, never, never>;
261
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXCLogManagementMockModule>;
262
+ }
263
+
264
+ declare class AXCFOrganizationManagementMockModule {
265
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCFOrganizationManagementMockModule, never>;
266
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXCFOrganizationManagementMockModule, never, never, never>;
267
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXCFOrganizationManagementMockModule>;
268
+ }
269
+
270
+ declare class AXCReportManagementMockModule {
271
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCReportManagementMockModule, never>;
272
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXCReportManagementMockModule, never, [typeof i1.AXPRuntimeModule], never>;
273
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXCReportManagementMockModule>;
274
+ }
275
+
276
+ declare class AXCPlatformManagementMockModule {
277
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCPlatformManagementMockModule, never>;
278
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXCPlatformManagementMockModule, never, never, never>;
279
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXCPlatformManagementMockModule>;
280
+ }
281
+
282
+ declare class AXCTextTemplateManagementMockModule {
283
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCTextTemplateManagementMockModule, never>;
284
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXCTextTemplateManagementMockModule, never, never, never>;
285
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXCTextTemplateManagementMockModule>;
286
+ }
287
+
288
+ declare class AXCSecurityManagementMockModule {
289
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCSecurityManagementMockModule, never>;
290
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXCSecurityManagementMockModule, never, never, never>;
291
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXCSecurityManagementMockModule>;
292
+ }
293
+
294
+ declare class AXCSchedulerJobManagementMockModule {
295
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCSchedulerJobManagementMockModule, never>;
296
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXCSchedulerJobManagementMockModule, never, never, never>;
297
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXCSchedulerJobManagementMockModule>;
298
+ }
299
+
300
+ declare class AXCNotificationManagementMockModule {
301
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCNotificationManagementMockModule, never>;
302
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXCNotificationManagementMockModule, never, never, never>;
303
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXCNotificationManagementMockModule>;
304
+ }
305
+
306
+ declare class AXCTrainingManagementMockModule {
307
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCTrainingManagementMockModule, never>;
308
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXCTrainingManagementMockModule, never, never, never>;
309
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXCTrainingManagementMockModule>;
310
+ }
311
+
312
+ declare class AXCProjectManagementMockModule {
313
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCProjectManagementMockModule, never>;
314
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXCProjectManagementMockModule, never, never, never>;
315
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXCProjectManagementMockModule>;
316
+ }
317
+
318
+ declare class AXMCalendarManagementMockModule {
319
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXMCalendarManagementMockModule, never>;
320
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXMCalendarManagementMockModule, never, never, never>;
321
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXMCalendarManagementMockModule>;
322
+ }
323
+
324
+ declare class AXCMockModule {
325
+ constructor(appInitService: AXPAppStartUpService, injector: Injector);
326
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCMockModule, never>;
327
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXCMockModule, never, [typeof i1$1.AXPAuthModule, typeof AXCCommonMockModule, typeof AXCFormTemplateManagementMockModule, typeof AXCFOrganizationManagementMockModule, typeof AXCReportManagementMockModule, typeof AXCContactManagementMockModule, typeof AXCDashboardManagementMockModule, typeof AXCConversationMockModule, typeof AXCAuthMockModule, typeof AXCPlatformManagementMockModule, typeof AXCTextTemplateManagementMockModule, typeof AXCSecurityManagementMockModule, typeof AXCSchedulerJobManagementMockModule, typeof AXCNotificationManagementMockModule, typeof AXCApplicationManagementMockModule, typeof AXCTrainingManagementMockModule, typeof AXCProjectManagementMockModule, typeof AXCDocumentManagementMockModule, typeof AXCIssueManagementMockModule, typeof AXCLogManagementMockModule, typeof AXMCalendarManagementMockModule, typeof AXCDataManagementMockModule], never>;
328
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXCMockModule>;
329
+ }
330
+
331
+ interface MockUserPassCredentials extends AXPBaseCredentials {
332
+ username: string;
333
+ password: string;
334
+ }
335
+ declare class MOCKStrategy implements AXPAuthStrategy {
336
+ constructor();
337
+ private entityRegistery;
338
+ get name(): string;
339
+ signin(credentials: MockUserPassCredentials): Promise<AXPSignInResult>;
340
+ signout(): Promise<void>;
341
+ refreshToken(context: AXPSessionContext): Promise<AXPRefreshTokenResult>;
342
+ static ɵfac: i0.ɵɵFactoryDeclaration<MOCKStrategy, never>;
343
+ static ɵprov: i0.ɵɵInjectableDeclaration<MOCKStrategy>;
344
+ }
345
+
400
346
  declare const REPORT_CATEGORIES: AXPReportCategory[];
401
347
  declare const REPORT_DEFINITIONS: AXPReportDefinition[];
402
348
  declare const CATEGORY_REPORT_MAPPING: Map<string, AXPReportDefinition[]>;
@@ -408,21 +354,25 @@ declare class AXPReportManagementDataSeeder implements AXPDataSeeder {
408
354
  static ɵprov: i0.ɵɵInjectableDeclaration<AXPReportManagementDataSeeder>;
409
355
  }
410
356
 
411
- interface AXMReportExecuteCommandInput {
412
- reportId: string;
413
- parameters: Record<string, any>;
414
- page?: number;
415
- pageSize?: number;
416
- }
417
- interface AXMReportExecuteCommandOutput {
418
- data: any[];
419
- total: number;
420
- page: number;
421
- pageSize: number;
422
- }
423
- declare class AXMReportExecuteCommand {
357
+ declare class AXMReportExecuteCommand implements AXPExecutionReportCommand {
424
358
  private readonly queryService;
425
- execute(input: AXMReportExecuteCommandInput): Promise<AXMReportExecuteCommandOutput>;
359
+ private readonly reportDataCache;
360
+ private readonly CACHE_TTL_MS;
361
+ private readonly DEFAULT_TOTAL_ITEMS;
362
+ constructor();
363
+ execute(context: AXPLayoutExecutionContext): Promise<AXPExecutionReportCommandResult>;
364
+ private generateLayoutData;
365
+ private generateTableData;
366
+ private generateChartData;
367
+ private getCachedOrGenerateReportData;
368
+ private generateCacheKey;
369
+ private generateReportVersion;
370
+ private isCacheValid;
371
+ private clearExpiredCache;
372
+ /**
373
+ * Manually clear all cached report data (useful for debugging or forcing refresh)
374
+ */
375
+ clearCache(): void;
426
376
  private generateMockDataForReport;
427
377
  private generateFinancialData;
428
378
  private generateIncomeData;
@@ -442,6 +392,21 @@ declare class AXCSchedulerJobDataSeeder implements AXPDataSeeder {
442
392
  static ɵprov: i0.ɵɵInjectableDeclaration<AXCSchedulerJobDataSeeder>;
443
393
  }
444
394
 
395
+ declare class AXPSecurityManagementRoleDataSeeder implements AXPDataSeeder {
396
+ private storageService;
397
+ seed(): Promise<void>;
398
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXPSecurityManagementRoleDataSeeder, never>;
399
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXPSecurityManagementRoleDataSeeder>;
400
+ }
401
+
402
+ declare class AXPSecurityManagementUserDataSeeder implements AXPDataSeeder {
403
+ private storageService;
404
+ seed(): Promise<void>;
405
+ private generateUsers;
406
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXPSecurityManagementUserDataSeeder, never>;
407
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXPSecurityManagementUserDataSeeder>;
408
+ }
409
+
445
410
  declare class AXCTextTemplateCategoryDataSeeder implements AXPDataSeeder {
446
411
  private storageService;
447
412
  seed(): Promise<void>;
@@ -463,24 +428,5 @@ declare const TEXT_TEMPLATE_CATEGORY: {
463
428
  }[];
464
429
  declare const TEXT_TEMPLATES: AXMTextTemplateManagementTemplateEntityModel[];
465
430
 
466
- declare class AXPSecurityManagementMockWidgetDataSourceProvider implements AXPWidgetDataSourceProvider {
467
- items(): Promise<AXPWidgetDataSource[]>;
468
- }
469
-
470
- declare class AXPSecurityManagementRoleDataSeeder implements AXPDataSeeder {
471
- private storageService;
472
- seed(): Promise<void>;
473
- static ɵfac: i0.ɵɵFactoryDeclaration<AXPSecurityManagementRoleDataSeeder, never>;
474
- static ɵprov: i0.ɵɵInjectableDeclaration<AXPSecurityManagementRoleDataSeeder>;
475
- }
476
-
477
- declare class AXPSecurityManagementUserDataSeeder implements AXPDataSeeder {
478
- private storageService;
479
- seed(): Promise<void>;
480
- private generateUsers;
481
- static ɵfac: i0.ɵɵFactoryDeclaration<AXPSecurityManagementUserDataSeeder, never>;
482
- static ɵprov: i0.ɵɵInjectableDeclaration<AXPSecurityManagementUserDataSeeder>;
483
- }
484
-
485
- export { APPLICATIONS, APPLICATIONS_MODULES, AXCAppTermDataSeeder, AXCAppVersionDataSeeder, AXCApplicationManagementMockModule, AXCApplicationTemplateDataSeeder, AXCAuthMockModule, AXCCommonMockModule, AXCContactManagementMockModule, AXCConversationMockModule, AXCDashboardManagementMockModule, AXCDataManagementMockModule, AXCDocumentManagementMockModule, AXCFOrganizationManagementMockModule, AXCFileStorageService, AXCFormTemplateManagementMockModule, AXCGlobalVariablesDataSeeder, AXCIssueManagementMockModule, AXCLockService, AXCLogManagementMockModule, AXCMetaDataDefinitionDataSeeder, AXCMockModule, AXCNotificationManagementMockModule, AXCPlatformManagementMockModule, AXCProjectManagementMockModule, AXCReportManagementMockModule, AXCSchedulerJobDataSeeder, AXCSchedulerJobManagementMockModule, AXCSecurityManagementMockModule, AXCTextTemplateCategoryDataSeeder, AXCTextTemplateDataSeeder, AXCTextTemplateManagementMockModule, AXCTrainingManagementMockModule, AXMAiResponderService, AXMReportExecuteCommand, AXPDashboardDataSeeder, AXPDexieEntityStorageService, AXPMessageDataSeeder, AXPReportManagementDataSeeder, AXPRoomDataSeeder, AXPSecurityManagementMockWidgetDataSourceProvider, AXPSecurityManagementRoleDataSeeder, AXPSecurityManagementUserDataSeeder, CATEGORY_REPORT_MAPPING, DASHBOARDS, EDITIONS, ENTITIES, FEATURES, GLOBAL_VARIABLES, MOCKStrategy, MODULES, PERMISSIONS, PROPERTIES, REPORT_CATEGORIES, REPORT_DEFINITIONS, TEXT_TEMPLATES, TEXT_TEMPLATE_CATEGORY, generateRandomDashboard };
486
- export type { AXMReportExecuteCommandInput, AXMReportExecuteCommandOutput, MockUserPassCredentials };
431
+ export { APPLICATIONS, APPLICATIONS_MODULES, AXCApplicationManagementMockModule, AXCApplicationTemplateDataSeeder, AXCAuthMockModule, AXCCommonMockModule, AXCContactManagementMockModule, AXCConversationMockModule, AXCDashboardManagementMockModule, AXCDataManagementMockModule, AXCDocumentManagementMockModule, AXCFOrganizationManagementMockModule, AXCFormTemplateManagementMockModule, AXCIssueManagementMockModule, AXCLockService, AXCLogManagementMockModule, AXCMockModule, AXCNotificationManagementMockModule, AXCProjectManagementMockModule, AXCReportManagementMockModule, AXCSchedulerJobDataSeeder, AXCSchedulerJobManagementMockModule, AXCSecurityManagementMockModule, AXCTextTemplateCategoryDataSeeder, AXCTextTemplateDataSeeder, AXCTextTemplateManagementMockModule, AXCTrainingManagementMockModule, AXMAiResponderService, AXMReportExecuteCommand, AXPDashboardDataSeeder, AXPDexieEntityStorageService, AXPMessageDataSeeder, AXPReportManagementDataSeeder, AXPRoomDataSeeder, AXPSecurityManagementRoleDataSeeder, AXPSecurityManagementUserDataSeeder, CATEGORY_REPORT_MAPPING, DASHBOARDS, EDITIONS, ENTITIES, FEATURES, MOCKStrategy, MODULES, PERMISSIONS, PROPERTIES, REPORT_CATEGORIES, REPORT_DEFINITIONS, TEXT_TEMPLATES, TEXT_TEMPLATE_CATEGORY, generateRandomDashboard };
432
+ export type { MockUserPassCredentials };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acorex/connectivity",
3
- "version": "20.0.25",
3
+ "version": "20.2.0-next.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.0.0",
6
6
  "@angular/core": "^19.0.0"