@acorex/connectivity 20.1.0 → 20.2.0-next.1

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,274 +1,15 @@
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, AXPFileStorageService, AXPFileStorageCreateRequest, AXPFileStorageInfo, AXPFileStorageUpdateRequest, AXPFileStorageFindRequest, AXPReportCategory, AXPReportDefinition, AXPExecutionReportCommand, AXPLayoutExecutionContext, AXPExecutionReportCommandResult } from '@acorex/platform/common';
5
+ import { AXMCommonDashboardEntityModel } from '@acorex/modules/dashboard-management';
1
6
  import Dexie from 'dexie';
2
- import * as _acorex_platform_auth from '@acorex/platform/auth';
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, AXPExecutionReportCommand, AXPLayoutExecutionContext, AXPExecutionReportCommandResult } 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 { Router } from '@angular/router';
11
- import { AXMCommonDashboardEntityModel } from '@acorex/modules/dashboard-management';
12
11
  import { AXMTextTemplateManagementTemplateEntityModel } from '@acorex/modules/text-template-management';
13
12
 
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 _acorex_platform_auth.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 extends 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
- startAuthorizationFlow(tenantId: string, applicationId: string): Promise<void>;
193
- static ɵfac: i0.ɵɵFactoryDeclaration<MOCKStrategy, never>;
194
- static ɵprov: i0.ɵɵInjectableDeclaration<MOCKStrategy>;
195
- }
196
-
197
- declare class AXCAppTermDataSeeder implements AXPDataSeeder {
198
- private storageService;
199
- seed(): Promise<void>;
200
- static ɵfac: i0.ɵɵFactoryDeclaration<AXCAppTermDataSeeder, never>;
201
- static ɵprov: i0.ɵɵInjectableDeclaration<AXCAppTermDataSeeder>;
202
- }
203
-
204
- declare class AXCAppVersionDataSeeder implements AXPDataSeeder {
205
- private storageService;
206
- seed(): Promise<void>;
207
- static ɵfac: i0.ɵɵFactoryDeclaration<AXCAppVersionDataSeeder, never>;
208
- static ɵprov: i0.ɵɵInjectableDeclaration<AXCAppVersionDataSeeder>;
209
- }
210
-
211
- declare class AXCGlobalVariablesDataSeeder implements AXPDataSeeder {
212
- private storageService;
213
- seed(): Promise<void>;
214
- static ɵfac: i0.ɵɵFactoryDeclaration<AXCGlobalVariablesDataSeeder, never>;
215
- static ɵprov: i0.ɵɵInjectableDeclaration<AXCGlobalVariablesDataSeeder>;
216
- }
217
-
218
- declare const GLOBAL_VARIABLES: {
219
- id: string;
220
- name: string;
221
- title: string;
222
- dataType: string;
223
- value: string;
224
- }[];
225
-
226
- declare class AXCMetaDataDefinitionDataSeeder implements AXPDataSeeder {
227
- private storageService;
228
- seed(): Promise<void>;
229
- static ɵfac: i0.ɵɵFactoryDeclaration<AXCMetaDataDefinitionDataSeeder, never>;
230
- static ɵprov: i0.ɵɵInjectableDeclaration<AXCMetaDataDefinitionDataSeeder>;
231
- }
232
-
233
- declare class AXCFileStorageService implements AXPFileStorageService {
234
- private fileService;
235
- private mapToFileStorageInfo;
236
- save(request: AXPFileStorageCreateRequest): Promise<AXPFileStorageInfo>;
237
- commit(fileId: string): Promise<void>;
238
- markForDeletion(fileId: string): Promise<void>;
239
- update(request: AXPFileStorageUpdateRequest): Promise<AXPFileStorageInfo>;
240
- find(request: AXPFileStorageFindRequest): Promise<AXPFileStorageInfo[]>;
241
- getInfo(fileId: string): Promise<AXPFileStorageInfo>;
242
- remove(fileId: string): Promise<void>;
243
- private cleanupTemporaryFiles;
244
- private cleanupMarkedFiles;
245
- constructor();
246
- static ɵfac: i0.ɵɵFactoryDeclaration<AXCFileStorageService, never>;
247
- static ɵprov: i0.ɵɵInjectableDeclaration<AXCFileStorageService>;
248
- }
249
-
250
- declare class AXCMockOidcStrategy extends AXPAuthStrategy {
251
- sessionService: AXPSessionService;
252
- storageService: AXPEntityStorageService<any, any, any, any, any>;
253
- router: Router;
254
- applicationLoader: _acorex_platform_auth.AXPApplicationLoader;
255
- tenantLoader: _acorex_platform_auth.AXPTenantLoader;
256
- mockIdTokenValue: any;
257
- get name(): string;
258
- signin(credentials: AXPBaseCredentials): Promise<AXPSignInResult>;
259
- signout(): Promise<void>;
260
- refreshToken(context: AXPSessionContext): Promise<AXPRefreshTokenResult>;
261
- startAuthorizationFlow(tenantId: string, applicationId: string): Promise<void>;
262
- completeAuthorizationCodeFlow(options: {
263
- code: string;
264
- redirectUri: string;
265
- clientId?: string;
266
- tokenEndpoint?: string;
267
- }): Promise<void>;
268
- static ɵfac: i0.ɵɵFactoryDeclaration<AXCMockOidcStrategy, never>;
269
- static ɵprov: i0.ɵɵInjectableDeclaration<AXCMockOidcStrategy>;
270
- }
271
-
272
13
  declare const APPLICATIONS: {
273
14
  id: string;
274
15
  name: string;
@@ -344,6 +85,24 @@ declare class AXCApplicationTemplateDataSeeder implements AXPDataSeeder {
344
85
  static ɵprov: i0.ɵɵInjectableDeclaration<AXCApplicationTemplateDataSeeder>;
345
86
  }
346
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
+
347
106
  declare class AXCLockService implements AXPLockService {
348
107
  private className;
349
108
  private db;
@@ -381,6 +140,29 @@ declare class AXCLockService implements AXPLockService {
381
140
  static ɵprov: i0.ɵɵInjectableDeclaration<AXCLockService>;
382
141
  }
383
142
 
143
+ declare class AXCFileStorageService implements AXPFileStorageService {
144
+ private fileService;
145
+ private mapToFileStorageInfo;
146
+ save(request: AXPFileStorageCreateRequest): Promise<AXPFileStorageInfo>;
147
+ commit(fileId: string): Promise<void>;
148
+ markForDeletion(fileId: string): Promise<void>;
149
+ update(request: AXPFileStorageUpdateRequest): Promise<AXPFileStorageInfo>;
150
+ find(request: AXPFileStorageFindRequest): Promise<AXPFileStorageInfo[]>;
151
+ getInfo(fileId: string): Promise<AXPFileStorageInfo>;
152
+ remove(fileId: string): Promise<void>;
153
+ private cleanupTemporaryFiles;
154
+ private cleanupMarkedFiles;
155
+ constructor();
156
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCFileStorageService, never>;
157
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXCFileStorageService>;
158
+ }
159
+
160
+ declare class AXCContactManagementMockModule {
161
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCContactManagementMockModule, never>;
162
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXCContactManagementMockModule, never, never, never>;
163
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXCContactManagementMockModule>;
164
+ }
165
+
384
166
  declare class AXMAiResponderService {
385
167
  private readonly geminiApiKey;
386
168
  getAIResponse(prompt: string): Promise<string>;
@@ -410,6 +192,12 @@ declare class AXPRoomDataSeeder implements AXPDataSeeder {
410
192
  static ɵprov: i0.ɵɵInjectableDeclaration<AXPRoomDataSeeder>;
411
193
  }
412
194
 
195
+ declare class AXCConversationMockModule {
196
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCConversationMockModule, never>;
197
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXCConversationMockModule, never, never, never>;
198
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXCConversationMockModule>;
199
+ }
200
+
413
201
  declare function generateRandomDashboard(): AXMCommonDashboardEntityModel;
414
202
  declare const DASHBOARDS: AXMCommonDashboardEntityModel[];
415
203
 
@@ -420,6 +208,158 @@ declare class AXPDashboardDataSeeder implements AXPDataSeeder {
420
208
  static ɵprov: i0.ɵɵInjectableDeclaration<AXPDashboardDataSeeder>;
421
209
  }
422
210
 
211
+ declare class AXCDashboardManagementMockModule {
212
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCDashboardManagementMockModule, never>;
213
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXCDashboardManagementMockModule, never, never, never>;
214
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXCDashboardManagementMockModule>;
215
+ }
216
+
217
+ declare class AXCDataManagementMockModule {
218
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCDataManagementMockModule, never>;
219
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXCDataManagementMockModule, never, never, never>;
220
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXCDataManagementMockModule>;
221
+ }
222
+
223
+ declare class AXPDexieEntityStorageService extends Dexie implements AXPEntityStorageService<string, any> {
224
+ protected sessionService: AXPSessionService;
225
+ protected entityRegistryService: AXPEntityDefinitionRegistryService;
226
+ protected lockService: AXPLockService;
227
+ constructor();
228
+ get dbName(): string;
229
+ private detectChanges;
230
+ private addToHistory;
231
+ /**
232
+ * Seed the storage with the provided collection only if it has not been
233
+ * inserted before.
234
+ *
235
+ * Rather than relying on the total record count, we inspect whether the first
236
+ * item of the incoming collection (identified by its `id`) already exists in
237
+ * the table for the given `entityName`. If it exists, the data has already
238
+ * been seeded and no action is taken; otherwise, the entire collection is
239
+ * bulk-inserted.
240
+ */
241
+ initial<T = any>(entityName: string, collection: T[], options?: {
242
+ mergeType: 'merge' | 'replace';
243
+ uniqueKeys: string[];
244
+ }): Promise<T[]>;
245
+ getOne<T = any>(entityName: string, id: string): Promise<T>;
246
+ updateOne<T = any>(entityName: string, id: string, keyValue: {
247
+ [key: string]: any;
248
+ }): Promise<T>;
249
+ deleteOne(entityName: string, id: string): Promise<void>;
250
+ insertOne<T = any>(entityName: string, entity: T): Promise<string>;
251
+ getAll<T = any>(entityName: string): Promise<T[]>;
252
+ query<T = any>(entityName: string, request: AXPQueryRequest): Promise<AXPPagedListResult<T>>;
253
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXPDexieEntityStorageService, never>;
254
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXPDexieEntityStorageService>;
255
+ }
256
+
257
+ declare class AXCDocumentManagementMockModule {
258
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCDocumentManagementMockModule, never>;
259
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXCDocumentManagementMockModule, never, never, never>;
260
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXCDocumentManagementMockModule>;
261
+ }
262
+
263
+ declare class AXCFormTemplateManagementMockModule {
264
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCFormTemplateManagementMockModule, never>;
265
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXCFormTemplateManagementMockModule, never, never, never>;
266
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXCFormTemplateManagementMockModule>;
267
+ }
268
+
269
+ declare class AXCIssueManagementMockModule {
270
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCIssueManagementMockModule, never>;
271
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXCIssueManagementMockModule, never, never, never>;
272
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXCIssueManagementMockModule>;
273
+ }
274
+
275
+ declare class AXCLogManagementMockModule {
276
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCLogManagementMockModule, never>;
277
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXCLogManagementMockModule, never, never, never>;
278
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXCLogManagementMockModule>;
279
+ }
280
+
281
+ declare class AXCFOrganizationManagementMockModule {
282
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCFOrganizationManagementMockModule, never>;
283
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXCFOrganizationManagementMockModule, never, never, never>;
284
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXCFOrganizationManagementMockModule>;
285
+ }
286
+
287
+ declare class AXCReportManagementMockModule {
288
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCReportManagementMockModule, never>;
289
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXCReportManagementMockModule, never, [typeof i1.AXPRuntimeModule], never>;
290
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXCReportManagementMockModule>;
291
+ }
292
+
293
+ declare class AXCPlatformManagementMockModule {
294
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCPlatformManagementMockModule, never>;
295
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXCPlatformManagementMockModule, never, never, never>;
296
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXCPlatformManagementMockModule>;
297
+ }
298
+
299
+ declare class AXCTextTemplateManagementMockModule {
300
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCTextTemplateManagementMockModule, never>;
301
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXCTextTemplateManagementMockModule, never, never, never>;
302
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXCTextTemplateManagementMockModule>;
303
+ }
304
+
305
+ declare class AXCSecurityManagementMockModule {
306
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCSecurityManagementMockModule, never>;
307
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXCSecurityManagementMockModule, never, never, never>;
308
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXCSecurityManagementMockModule>;
309
+ }
310
+
311
+ declare class AXCSchedulerJobManagementMockModule {
312
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCSchedulerJobManagementMockModule, never>;
313
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXCSchedulerJobManagementMockModule, never, never, never>;
314
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXCSchedulerJobManagementMockModule>;
315
+ }
316
+
317
+ declare class AXCNotificationManagementMockModule {
318
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCNotificationManagementMockModule, never>;
319
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXCNotificationManagementMockModule, never, never, never>;
320
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXCNotificationManagementMockModule>;
321
+ }
322
+
323
+ declare class AXCTrainingManagementMockModule {
324
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCTrainingManagementMockModule, never>;
325
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXCTrainingManagementMockModule, never, never, never>;
326
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXCTrainingManagementMockModule>;
327
+ }
328
+
329
+ declare class AXCProjectManagementMockModule {
330
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCProjectManagementMockModule, never>;
331
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXCProjectManagementMockModule, never, never, never>;
332
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXCProjectManagementMockModule>;
333
+ }
334
+
335
+ declare class AXMCalendarManagementMockModule {
336
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXMCalendarManagementMockModule, never>;
337
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXMCalendarManagementMockModule, never, never, never>;
338
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXMCalendarManagementMockModule>;
339
+ }
340
+
341
+ declare class AXCMockModule {
342
+ constructor(appInitService: AXPAppStartUpService, injector: Injector);
343
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCMockModule, never>;
344
+ 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>;
345
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXCMockModule>;
346
+ }
347
+
348
+ interface MockUserPassCredentials extends AXPBaseCredentials {
349
+ username: string;
350
+ password: string;
351
+ }
352
+ declare class MOCKStrategy implements AXPAuthStrategy {
353
+ constructor();
354
+ private entityRegistery;
355
+ get name(): string;
356
+ signin(credentials: MockUserPassCredentials): Promise<AXPSignInResult>;
357
+ signout(): Promise<void>;
358
+ refreshToken(context: AXPSessionContext): Promise<AXPRefreshTokenResult>;
359
+ static ɵfac: i0.ɵɵFactoryDeclaration<MOCKStrategy, never>;
360
+ static ɵprov: i0.ɵɵInjectableDeclaration<MOCKStrategy>;
361
+ }
362
+
423
363
  declare const REPORT_CATEGORIES: AXPReportCategory[];
424
364
  declare const REPORT_DEFINITIONS: AXPReportDefinition[];
425
365
  declare const CATEGORY_REPORT_MAPPING: Map<string, AXPReportDefinition[]>;
@@ -469,6 +409,21 @@ declare class AXCSchedulerJobDataSeeder implements AXPDataSeeder {
469
409
  static ɵprov: i0.ɵɵInjectableDeclaration<AXCSchedulerJobDataSeeder>;
470
410
  }
471
411
 
412
+ declare class AXPSecurityManagementRoleDataSeeder implements AXPDataSeeder {
413
+ private storageService;
414
+ seed(): Promise<void>;
415
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXPSecurityManagementRoleDataSeeder, never>;
416
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXPSecurityManagementRoleDataSeeder>;
417
+ }
418
+
419
+ declare class AXPSecurityManagementUserDataSeeder implements AXPDataSeeder {
420
+ private storageService;
421
+ seed(): Promise<void>;
422
+ private generateUsers;
423
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXPSecurityManagementUserDataSeeder, never>;
424
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXPSecurityManagementUserDataSeeder>;
425
+ }
426
+
472
427
  declare class AXCTextTemplateCategoryDataSeeder implements AXPDataSeeder {
473
428
  private storageService;
474
429
  seed(): Promise<void>;
@@ -490,20 +445,5 @@ declare const TEXT_TEMPLATE_CATEGORY: {
490
445
  }[];
491
446
  declare const TEXT_TEMPLATES: AXMTextTemplateManagementTemplateEntityModel[];
492
447
 
493
- declare class AXPSecurityManagementRoleDataSeeder implements AXPDataSeeder {
494
- private storageService;
495
- seed(): Promise<void>;
496
- static ɵfac: i0.ɵɵFactoryDeclaration<AXPSecurityManagementRoleDataSeeder, never>;
497
- static ɵprov: i0.ɵɵInjectableDeclaration<AXPSecurityManagementRoleDataSeeder>;
498
- }
499
-
500
- declare class AXPSecurityManagementUserDataSeeder implements AXPDataSeeder {
501
- private storageService;
502
- seed(): Promise<void>;
503
- private generateUsers;
504
- static ɵfac: i0.ɵɵFactoryDeclaration<AXPSecurityManagementUserDataSeeder, never>;
505
- static ɵprov: i0.ɵɵInjectableDeclaration<AXPSecurityManagementUserDataSeeder>;
506
- }
507
-
508
- export { APPLICATIONS, APPLICATIONS_MODULES, AXCAppTermDataSeeder, AXCAppVersionDataSeeder, AXCApplicationManagementMockModule, AXCApplicationTemplateDataSeeder, AXCAuthMockModule, AXCCommonMockModule, AXCContactManagementMockModule, AXCConversationMockModule, AXCDashboardManagementMockModule, AXCDataManagementMockModule, AXCDocumentManagementMockModule, AXCFOrganizationManagementMockModule, AXCFileStorageService, AXCFormTemplateManagementMockModule, AXCGlobalVariablesDataSeeder, AXCIssueManagementMockModule, AXCLockService, AXCLogManagementMockModule, AXCMetaDataDefinitionDataSeeder, AXCMockModule, AXCMockOidcStrategy, AXCNotificationManagementMockModule, AXCPlatformManagementMockModule, 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, GLOBAL_VARIABLES, MOCKStrategy, MODULES, PERMISSIONS, PROPERTIES, REPORT_CATEGORIES, REPORT_DEFINITIONS, TEXT_TEMPLATES, TEXT_TEMPLATE_CATEGORY, generateRandomDashboard };
448
+ export { APPLICATIONS, APPLICATIONS_MODULES, AXCApplicationManagementMockModule, AXCApplicationTemplateDataSeeder, AXCAuthMockModule, AXCCommonMockModule, AXCContactManagementMockModule, AXCConversationMockModule, AXCDashboardManagementMockModule, AXCDataManagementMockModule, AXCDocumentManagementMockModule, AXCFOrganizationManagementMockModule, AXCFileStorageService, 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 };
509
449
  export type { MockUserPassCredentials };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acorex/connectivity",
3
- "version": "20.1.0",
3
+ "version": "20.2.0-next.1",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.0.0",
6
6
  "@angular/core": "^19.0.0"