@acorex/connectivity 20.6.0-next.8 → 21.0.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/api/index.d.ts +40 -68
- package/fesm2022/{acorex-connectivity-api-execute.command-BwXw_Kn7.mjs → acorex-connectivity-api-execute.command-SGNBLcOi.mjs} +14 -5
- package/fesm2022/acorex-connectivity-api-execute.command-SGNBLcOi.mjs.map +1 -0
- package/fesm2022/acorex-connectivity-api.mjs +210 -296
- package/fesm2022/acorex-connectivity-api.mjs.map +1 -1
- package/fesm2022/{acorex-connectivity-mock-category-with-items.query-NY9J0cQ0.mjs → acorex-connectivity-mock-category-with-items.query-Dsxj98tX.mjs} +2 -2
- package/fesm2022/acorex-connectivity-mock-category-with-items.query-Dsxj98tX.mjs.map +1 -0
- package/fesm2022/{acorex-connectivity-mock-distribution-record.command-B-Xviv6G.mjs → acorex-connectivity-mock-distribution-record.command-DRiDwlqN.mjs} +12 -3
- package/fesm2022/acorex-connectivity-mock-distribution-record.command-DRiDwlqN.mjs.map +1 -0
- package/fesm2022/{acorex-connectivity-mock-sample.command-BkxMgq1C.mjs → acorex-connectivity-mock-sample.command-CkH5bmEs.mjs} +4 -1
- package/fesm2022/acorex-connectivity-mock-sample.command-CkH5bmEs.mjs.map +1 -0
- package/fesm2022/acorex-connectivity-mock.mjs +22194 -14850
- package/fesm2022/acorex-connectivity-mock.mjs.map +1 -1
- package/mock/index.d.ts +660 -636
- package/package.json +2 -2
- package/fesm2022/acorex-connectivity-api-execute.command-BwXw_Kn7.mjs.map +0 -1
- package/fesm2022/acorex-connectivity-mock-category-with-items.query-NY9J0cQ0.mjs.map +0 -1
- package/fesm2022/acorex-connectivity-mock-distribution-record.command-B-Xviv6G.mjs.map +0 -1
- package/fesm2022/acorex-connectivity-mock-sample.command-BkxMgq1C.mjs.map +0 -1
package/mock/index.d.ts
CHANGED
|
@@ -1,25 +1,28 @@
|
|
|
1
|
-
import { AXPAppStartUpService, AXPQueryRequest, AXPPagedListResult, AXPCategorizedEntityDto, AXPCategoryEntity, AXPExecuteCommand, AXPExecuteCommandResult, AXPActionMenuItem, AXPDataSourceDefinitionProvider, AXPDataSourceDefinition, AXPFileListItem, AXPDistributedEventListenerProvider } from '@acorex/platform/core';
|
|
1
|
+
import { AXPAppStartUpService, AXPQueryRequest, AXPPagedListResult, AXPModuleAccessControlService, AXPModuleAccessContext, AXPCategorizedEntityDto, AXPCategoryEntity, AXPExecuteCommand, AXPExecuteCommandResult, AXPActionMenuItem, AXPDataSourceDefinitionProvider, AXPDataSourceDefinition, AXPFileListItem, AXPDistributedEventListenerProvider } from '@acorex/platform/core';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
3
|
import { Injector } from '@angular/core';
|
|
4
4
|
import * as _acorex_platform_auth from '@acorex/platform/auth';
|
|
5
|
-
import { AXPBaseCredentials, AXPAuthStrategy, AXPSignInResult, AXPSessionContext
|
|
5
|
+
import { AXPBaseCredentials, AXPAuthStrategy, AXPSignInResult, AXPSessionContext } from '@acorex/platform/auth';
|
|
6
6
|
import * as i1 from '@acorex/platform/runtime';
|
|
7
7
|
import { AXPQuery, AXPCommand } from '@acorex/platform/runtime';
|
|
8
8
|
import { Router } from '@angular/router';
|
|
9
9
|
import { AXMAuthConfigs } from '@acorex/modules/auth';
|
|
10
10
|
import { AXPEntityStorageService, AXPDataSeeder, AXPEntityStorageMiddleware } from '@acorex/platform/layout/entity';
|
|
11
11
|
import Dexie, { Table } from 'dexie';
|
|
12
|
-
import { AXMApplicationManagementApplicationEntityModel, AXMApplicationManagementEditionEntityModel
|
|
13
|
-
import
|
|
14
|
-
import {
|
|
12
|
+
import { AXMApplicationManagementApplicationEntityModel, AXMApplicationManagementEditionEntityModel } from '@acorex/modules/application-management';
|
|
13
|
+
import { AXMTenantManagementTenantEntityModel } from '@acorex/modules/tenant-management';
|
|
14
|
+
import { AXMSecurityManagementRolesEntityModel, AXMSecurityManagementUsersEntityModel } from '@acorex/modules/security-management';
|
|
15
|
+
import { AXPSpreadsheetData } from '@acorex/platform/layout/components';
|
|
16
|
+
import * as _acorex_platform_common from '@acorex/platform/common';
|
|
17
|
+
import { AXPLockService, AXPLockRequest, AXPLockInfo, AXPUnLockRequest, AXPLockGetInfoRequest, AXPFileStorageService, AXPFileStorageCreateRequest, AXPFileStorageInfo, AXPFileStorageUpdateRequest, AXPFileStorageFindRequest, AXPFileManyStorageInfo, CanonicalChange as CanonicalChange$1, AXPVersioningService, AXPVersionEntry as AXPVersionEntry$1, AXVChangeType as AXVChangeType$1 } from '@acorex/platform/common';
|
|
15
18
|
import { AXMWorkflowManagementWorkflowDefinitionEntityModel } from '@acorex/modules/workflow-management';
|
|
16
19
|
import { AXPWorkflowTaskProvider, AXPTaskFilter, AXPTask, AXPExtraField, AXPTaskStatus } from '@acorex/modules/task-management';
|
|
17
|
-
import { AXMMetaDataDefinitionEntityModel } from '@acorex/modules/data-management';
|
|
18
20
|
import { AXMCommonDashboardEntityModel } from '@acorex/modules/dashboard-management';
|
|
21
|
+
import { AXPExecutionReportCommand, AXPLayoutExecutionContext, AXPExecutionReportCommandResult } from '@acorex/modules/report-management';
|
|
19
22
|
import * as _acorex_modules_calendar_management from '@acorex/modules/calendar-management';
|
|
20
23
|
import { AXMCalendarManagementCalendarEventTypeEntityModel } from '@acorex/modules/calendar-management';
|
|
21
|
-
import { AXPLockService, AXPLockRequest, AXPLockInfo, AXPUnLockRequest, AXPLockGetInfoRequest, AXPFileStorageService, AXPFileStorageCreateRequest, AXPFileStorageInfo, AXPFileStorageUpdateRequest, AXPFileStorageFindRequest, AXPFileManyStorageInfo, CanonicalChange as CanonicalChange$1, AXPVersioningService, AXPVersionEntry as AXPVersionEntry$1, AXVChangeType as AXVChangeType$1 } from '@acorex/platform/common';
|
|
22
24
|
import { AXPWorkflowInstance, AXPWorkflowExecutionService, AXPStartWorkflowExecutionRequest, AXPStartWorkflowExecutionResponse, AXPResumeWorkflowExecutionRequest, AXPResumeWorkflowExecutionResponse, AXPGetWorkflowExecutionStateRequest, AXPWorkflowExecutionState, AXPGetWorkflowDefinitionRequest, AXPGetWorkflowDefinitionResponse, AXPWorkflowDefinition } from '@acorex/platform/workflow';
|
|
25
|
+
import { AXPWidgetNode } from '@acorex/platform/layout/widget-core';
|
|
23
26
|
import { AXPIdentifierRule, AXPClockProvider, AXPChecksumProvider, AXPPolicyProvider, AXPLookupProvider, AXPSequenceProvider, AXPIdentifierService, AXPIdentifierRequest, AXPIdentifierResult, AXPIdentifierPeekResult } from '@acorex/modules/identifier-management';
|
|
24
27
|
|
|
25
28
|
declare class AXCCommonMockModule {
|
|
@@ -52,6 +55,30 @@ declare class AXCCustomerManagementMockModule {
|
|
|
52
55
|
static ɵinj: i0.ɵɵInjectorDeclaration<AXCCustomerManagementMockModule>;
|
|
53
56
|
}
|
|
54
57
|
|
|
58
|
+
declare class AXCSupplierManagementMockModule {
|
|
59
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCSupplierManagementMockModule, never>;
|
|
60
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXCSupplierManagementMockModule, never, never, never>;
|
|
61
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AXCSupplierManagementMockModule>;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
declare class AXCProcurementManagementMockModule {
|
|
65
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCProcurementManagementMockModule, never>;
|
|
66
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXCProcurementManagementMockModule, never, never, never>;
|
|
67
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AXCProcurementManagementMockModule>;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
declare class AXCOrderManagementMockModule {
|
|
71
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCOrderManagementMockModule, never>;
|
|
72
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXCOrderManagementMockModule, never, never, never>;
|
|
73
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AXCOrderManagementMockModule>;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
declare class AXCSubscriptionManagementMockModule {
|
|
77
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCSubscriptionManagementMockModule, never>;
|
|
78
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXCSubscriptionManagementMockModule, never, never, never>;
|
|
79
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AXCSubscriptionManagementMockModule>;
|
|
80
|
+
}
|
|
81
|
+
|
|
55
82
|
declare class AXCContactManagementMockModule {
|
|
56
83
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXCContactManagementMockModule, never>;
|
|
57
84
|
static ɵmod: i0.ɵɵNgModuleDeclaration<AXCContactManagementMockModule, never, never, never>;
|
|
@@ -118,10 +145,22 @@ declare class AXCApplicationManagementMockModule {
|
|
|
118
145
|
static ɵinj: i0.ɵɵInjectorDeclaration<AXCApplicationManagementMockModule>;
|
|
119
146
|
}
|
|
120
147
|
|
|
121
|
-
declare class
|
|
122
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
123
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<
|
|
124
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<
|
|
148
|
+
declare class AXCTenantManagementMockModule {
|
|
149
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCTenantManagementMockModule, never>;
|
|
150
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXCTenantManagementMockModule, never, never, never>;
|
|
151
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AXCTenantManagementMockModule>;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
declare class AXCLearningManagementMockModule {
|
|
155
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCLearningManagementMockModule, never>;
|
|
156
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXCLearningManagementMockModule, never, never, never>;
|
|
157
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AXCLearningManagementMockModule>;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
declare class AXCAssetManagementMockModule {
|
|
161
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCAssetManagementMockModule, never>;
|
|
162
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXCAssetManagementMockModule, never, never, never>;
|
|
163
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AXCAssetManagementMockModule>;
|
|
125
164
|
}
|
|
126
165
|
|
|
127
166
|
declare class AXCProjectManagementMockModule {
|
|
@@ -142,12 +181,6 @@ declare class AXCHelpDeskMockModule {
|
|
|
142
181
|
static ɵinj: i0.ɵɵInjectorDeclaration<AXCHelpDeskMockModule>;
|
|
143
182
|
}
|
|
144
183
|
|
|
145
|
-
declare class AXCLogManagementMockModule {
|
|
146
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXCLogManagementMockModule, never>;
|
|
147
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AXCLogManagementMockModule, never, never, never>;
|
|
148
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<AXCLogManagementMockModule>;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
184
|
declare class AXCCalendarManagementMockModule {
|
|
152
185
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXCCalendarManagementMockModule, never>;
|
|
153
186
|
static ɵmod: i0.ɵɵNgModuleDeclaration<AXCCalendarManagementMockModule, never, never, never>;
|
|
@@ -160,12 +193,6 @@ declare class AXCDataManagementMockModule {
|
|
|
160
193
|
static ɵinj: i0.ɵɵInjectorDeclaration<AXCDataManagementMockModule>;
|
|
161
194
|
}
|
|
162
195
|
|
|
163
|
-
declare class AXCWorkflowManagementMockModule {
|
|
164
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXCWorkflowManagementMockModule, never>;
|
|
165
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AXCWorkflowManagementMockModule, never, never, never>;
|
|
166
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<AXCWorkflowManagementMockModule>;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
196
|
declare class AXCNotificationManagementMockModule {
|
|
170
197
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXCNotificationManagementMockModule, never>;
|
|
171
198
|
static ɵmod: i0.ɵɵNgModuleDeclaration<AXCNotificationManagementMockModule, never, never, never>;
|
|
@@ -178,10 +205,10 @@ declare class AXCTaskManagementMockModule {
|
|
|
178
205
|
static ɵinj: i0.ɵɵInjectorDeclaration<AXCTaskManagementMockModule>;
|
|
179
206
|
}
|
|
180
207
|
|
|
181
|
-
declare class
|
|
182
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
183
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<
|
|
184
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<
|
|
208
|
+
declare class AXCPersonManagementMockModule {
|
|
209
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCPersonManagementMockModule, never>;
|
|
210
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXCPersonManagementMockModule, never, never, never>;
|
|
211
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AXCPersonManagementMockModule>;
|
|
185
212
|
}
|
|
186
213
|
|
|
187
214
|
declare class AXCContentManagementMockModule {
|
|
@@ -208,6 +235,24 @@ declare class AXCAssessmentManagementMockModule {
|
|
|
208
235
|
static ɵinj: i0.ɵɵInjectorDeclaration<AXCAssessmentManagementMockModule>;
|
|
209
236
|
}
|
|
210
237
|
|
|
238
|
+
declare class AXCFinancialCoreMockModule {
|
|
239
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCFinancialCoreMockModule, never>;
|
|
240
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXCFinancialCoreMockModule, never, never, never>;
|
|
241
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AXCFinancialCoreMockModule>;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
declare class AXCMeasurementCoreMockModule {
|
|
245
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCMeasurementCoreMockModule, never>;
|
|
246
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXCMeasurementCoreMockModule, never, never, never>;
|
|
247
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AXCMeasurementCoreMockModule>;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
declare class AXCProductCatalogMockModule {
|
|
251
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCProductCatalogMockModule, never>;
|
|
252
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXCProductCatalogMockModule, never, never, never>;
|
|
253
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AXCProductCatalogMockModule>;
|
|
254
|
+
}
|
|
255
|
+
|
|
211
256
|
declare class AXCMiddlewaresModule {
|
|
212
257
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXCMiddlewaresModule, never>;
|
|
213
258
|
static ɵmod: i0.ɵɵNgModuleDeclaration<AXCMiddlewaresModule, never, never, never>;
|
|
@@ -217,7 +262,7 @@ declare class AXCMiddlewaresModule {
|
|
|
217
262
|
declare class AXCMockModule {
|
|
218
263
|
constructor(appInitService: AXPAppStartUpService, injector: Injector);
|
|
219
264
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXCMockModule, never>;
|
|
220
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AXCMockModule, never, [typeof _acorex_platform_auth.AXPAuthModule, typeof AXCCommonMockModule, typeof AXCIdentifierManagementMockModule, typeof AXCSecurityManagementMockModule, typeof AXCFormTemplateManagementMockModule, typeof AXCCustomerManagementMockModule, typeof AXCContactManagementMockModule, typeof AXCLocationManagementMockModule, typeof AXCOrganizationManagementMockModule, typeof AXCHumanCapitalManagementMockModule, typeof AXCReportManagementMockModule, typeof AXCLocaleManagementMockModule, typeof AXCDashboardManagementMockModule, typeof AXCConversationMockModule, typeof AXCAuthMockModule, typeof AXCPlatformManagementMockModule, typeof AXCApplicationManagementMockModule, typeof
|
|
265
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXCMockModule, never, [typeof _acorex_platform_auth.AXPAuthModule, typeof AXCCommonMockModule, typeof AXCIdentifierManagementMockModule, typeof AXCSecurityManagementMockModule, typeof AXCFormTemplateManagementMockModule, typeof AXCCustomerManagementMockModule, typeof AXCSupplierManagementMockModule, typeof AXCProcurementManagementMockModule, typeof AXCOrderManagementMockModule, typeof AXCSubscriptionManagementMockModule, typeof AXCContactManagementMockModule, typeof AXCLocationManagementMockModule, typeof AXCOrganizationManagementMockModule, typeof AXCHumanCapitalManagementMockModule, typeof AXCReportManagementMockModule, typeof AXCLocaleManagementMockModule, typeof AXCDashboardManagementMockModule, typeof AXCConversationMockModule, typeof AXCAuthMockModule, typeof AXCPlatformManagementMockModule, typeof AXCApplicationManagementMockModule, typeof AXCTenantManagementMockModule, typeof AXCLearningManagementMockModule, typeof AXCAssetManagementMockModule, typeof AXCProjectManagementMockModule, typeof AXCDocumentManagementMockModule, typeof AXCHelpDeskMockModule, typeof AXCCalendarManagementMockModule, typeof AXCDataManagementMockModule, typeof AXCNotificationManagementMockModule, typeof AXCTaskManagementMockModule, typeof AXCPersonManagementMockModule, typeof AXCContentManagementMockModule, typeof AXCMeetingManagementMockModule, typeof AXCSettingsManagementMockModule, typeof AXCAssessmentManagementMockModule, typeof AXCFinancialCoreMockModule, typeof AXCMeasurementCoreMockModule, typeof AXCProductCatalogMockModule, typeof AXCMiddlewaresModule], never>;
|
|
221
266
|
static ɵinj: i0.ɵɵInjectorDeclaration<AXCMockModule>;
|
|
222
267
|
}
|
|
223
268
|
|
|
@@ -296,9 +341,9 @@ declare class AXCDexieEntityStorageService extends Dexie implements AXPEntitySto
|
|
|
296
341
|
*/
|
|
297
342
|
private isCategoryEntity;
|
|
298
343
|
/**
|
|
299
|
-
* Calculate
|
|
344
|
+
* Calculate childrenCount for each category entity
|
|
300
345
|
*/
|
|
301
|
-
private
|
|
346
|
+
private calculateChildrenCounts;
|
|
302
347
|
/**
|
|
303
348
|
* Get the count of direct children for a category
|
|
304
349
|
*/
|
|
@@ -320,6 +365,17 @@ declare class AXCDexieEntityStorageService extends Dexie implements AXPEntitySto
|
|
|
320
365
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXCDexieEntityStorageService>;
|
|
321
366
|
}
|
|
322
367
|
|
|
368
|
+
/**
|
|
369
|
+
* Mock implementation of module access control service.
|
|
370
|
+
* Checks if module is enabled in edition.modulesAndFeatures.modules.
|
|
371
|
+
* This is the default behavior - modules are accessible if they're in the edition configuration.
|
|
372
|
+
*/
|
|
373
|
+
declare class MockModuleAccessControlService implements AXPModuleAccessControlService {
|
|
374
|
+
checkAccess(moduleName: string, context: AXPModuleAccessContext): boolean;
|
|
375
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MockModuleAccessControlService, never>;
|
|
376
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MockModuleAccessControlService>;
|
|
377
|
+
}
|
|
378
|
+
|
|
323
379
|
declare const APPLICATIONS: AXMApplicationManagementApplicationEntityModel[];
|
|
324
380
|
|
|
325
381
|
declare class AXCApplicationDataSeeder implements AXPDataSeeder {
|
|
@@ -330,6 +386,24 @@ declare class AXCApplicationDataSeeder implements AXPDataSeeder {
|
|
|
330
386
|
}
|
|
331
387
|
|
|
332
388
|
declare const EDITIONS: AXMApplicationManagementEditionEntityModel[];
|
|
389
|
+
declare const SHOP_BASIC: AXMApplicationManagementEditionEntityModel;
|
|
390
|
+
declare const SHOP_PRO: AXMApplicationManagementEditionEntityModel;
|
|
391
|
+
declare const SHOP_ENTERPRISE: AXMApplicationManagementEditionEntityModel;
|
|
392
|
+
declare const FINANCE_BASIC: AXMApplicationManagementEditionEntityModel;
|
|
393
|
+
declare const FINANCE_PRO: AXMApplicationManagementEditionEntityModel;
|
|
394
|
+
declare const FINANCE_ENTERPRISE: AXMApplicationManagementEditionEntityModel;
|
|
395
|
+
declare const ORDERING_BASIC: AXMApplicationManagementEditionEntityModel;
|
|
396
|
+
declare const ORDERING_STANDARD: AXMApplicationManagementEditionEntityModel;
|
|
397
|
+
declare const ORDERING_ENTERPRISE: AXMApplicationManagementEditionEntityModel;
|
|
398
|
+
declare const PLATFORM_CONSOLE: AXMApplicationManagementEditionEntityModel;
|
|
399
|
+
declare const SAFETYMINDER_BASIC: AXMApplicationManagementEditionEntityModel;
|
|
400
|
+
declare const SAFETYMINDER_PROFESSIONAL: AXMApplicationManagementEditionEntityModel;
|
|
401
|
+
declare const SAFETYMINDER_ENTERPRISE: AXMApplicationManagementEditionEntityModel;
|
|
402
|
+
declare const COSTMANAGER_STANDARD: AXMApplicationManagementEditionEntityModel;
|
|
403
|
+
declare const COSTMANAGER_PROFESSIONAL: AXMApplicationManagementEditionEntityModel;
|
|
404
|
+
declare const COSTMANAGER_ENTERPRISE: AXMApplicationManagementEditionEntityModel;
|
|
405
|
+
declare const CRM_ENTERPRISE: AXMApplicationManagementEditionEntityModel;
|
|
406
|
+
declare const HR_ENTERPRISE: AXMApplicationManagementEditionEntityModel;
|
|
333
407
|
|
|
334
408
|
declare class AXCEditionDataSeeder implements AXPDataSeeder {
|
|
335
409
|
private readonly storageService;
|
|
@@ -338,30 +412,26 @@ declare class AXCEditionDataSeeder implements AXPDataSeeder {
|
|
|
338
412
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXCEditionDataSeeder>;
|
|
339
413
|
}
|
|
340
414
|
|
|
341
|
-
declare
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
private readonly storageService;
|
|
415
|
+
declare class AXCAppVersionDataSeeder implements AXPDataSeeder {
|
|
416
|
+
private storageService;
|
|
417
|
+
private appVersionService;
|
|
345
418
|
seed(): Promise<void>;
|
|
346
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
347
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
419
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCAppVersionDataSeeder, never>;
|
|
420
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXCAppVersionDataSeeder>;
|
|
348
421
|
}
|
|
349
422
|
|
|
350
|
-
declare
|
|
351
|
-
|
|
352
|
-
declare class AXCModuleDataSeeder implements AXPDataSeeder {
|
|
353
|
-
private readonly storageService;
|
|
423
|
+
declare class AXCAppTermDataSeeder implements AXPDataSeeder {
|
|
424
|
+
private storageService;
|
|
354
425
|
seed(): Promise<void>;
|
|
355
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
356
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
426
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCAppTermDataSeeder, never>;
|
|
427
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXCAppTermDataSeeder>;
|
|
357
428
|
}
|
|
358
429
|
|
|
359
430
|
interface QuestionBankItemMockDto extends AXPCategorizedEntityDto {
|
|
360
431
|
id: string;
|
|
361
432
|
title: string;
|
|
362
433
|
description?: string;
|
|
363
|
-
|
|
364
|
-
widgetOptions?: any;
|
|
434
|
+
interface?: any;
|
|
365
435
|
scoringType?: 'none' | 'points' | 'weighted' | 'formula';
|
|
366
436
|
points?: number;
|
|
367
437
|
weight?: number;
|
|
@@ -384,8 +454,35 @@ interface QuestionnaireMockDto extends AXPCategorizedEntityDto {
|
|
|
384
454
|
title: string;
|
|
385
455
|
description?: string;
|
|
386
456
|
type: 'questionnaire' | 'survey' | 'checklist' | 'test' | 'evaluation';
|
|
387
|
-
|
|
388
|
-
|
|
457
|
+
structure?: {
|
|
458
|
+
sections: Array<{
|
|
459
|
+
id: string;
|
|
460
|
+
title: string;
|
|
461
|
+
description?: string;
|
|
462
|
+
order: number;
|
|
463
|
+
visibilityCondition?: string;
|
|
464
|
+
scoringWeight?: number;
|
|
465
|
+
items: Array<{
|
|
466
|
+
id: string;
|
|
467
|
+
questionBankItemId: string;
|
|
468
|
+
order: number;
|
|
469
|
+
isRequired?: boolean;
|
|
470
|
+
visibilityCondition?: string;
|
|
471
|
+
requiredCondition?: string;
|
|
472
|
+
scoringOverride?: {
|
|
473
|
+
points?: number;
|
|
474
|
+
weight?: number;
|
|
475
|
+
};
|
|
476
|
+
}>;
|
|
477
|
+
}>;
|
|
478
|
+
displaySettings?: {
|
|
479
|
+
viewMode?: 'single-page' | 'page-per-group' | 'page-per-question';
|
|
480
|
+
showProgressBar?: boolean;
|
|
481
|
+
showTimer?: boolean;
|
|
482
|
+
showSectionTitles?: boolean;
|
|
483
|
+
showQuestionNumbers?: boolean;
|
|
484
|
+
};
|
|
485
|
+
};
|
|
389
486
|
scoringType: 'none' | 'cumulative' | 'weighted' | 'formula';
|
|
390
487
|
passingScore?: number;
|
|
391
488
|
scoringFormula?: string;
|
|
@@ -396,7 +493,6 @@ interface QuestionnaireMockDto extends AXPCategorizedEntityDto {
|
|
|
396
493
|
allowBackNavigation: boolean;
|
|
397
494
|
randomizeQuestions: boolean;
|
|
398
495
|
requireAllAnswers: boolean;
|
|
399
|
-
showProgressBar: boolean;
|
|
400
496
|
categoryIds: string[];
|
|
401
497
|
categories: {
|
|
402
498
|
id: string;
|
|
@@ -436,379 +532,303 @@ declare class AXMQuestionnaireDataSeeder implements AXPDataSeeder {
|
|
|
436
532
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXMQuestionnaireDataSeeder>;
|
|
437
533
|
}
|
|
438
534
|
|
|
439
|
-
declare const
|
|
535
|
+
declare const assessmentCaseMock: {
|
|
440
536
|
id: string;
|
|
441
537
|
questionnaireId: string;
|
|
442
538
|
questionnaire: {
|
|
443
539
|
id: string;
|
|
444
540
|
title: string;
|
|
445
|
-
type: "
|
|
541
|
+
type: "checklist" | "questionnaire" | "survey" | "test" | "evaluation";
|
|
446
542
|
};
|
|
447
543
|
title: string;
|
|
448
544
|
description: string;
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
assignedToUsers: never[];
|
|
452
|
-
validFrom: Date;
|
|
453
|
-
validTo: Date;
|
|
454
|
-
timerMode: string;
|
|
455
|
-
timeLimit: number;
|
|
456
|
-
allowMultipleSubmissions: boolean;
|
|
457
|
-
showResults: string;
|
|
458
|
-
requireReview: boolean;
|
|
459
|
-
createdAt: Date;
|
|
460
|
-
updatedAt: Date;
|
|
461
|
-
accessCode?: undefined;
|
|
462
|
-
isActive?: undefined;
|
|
463
|
-
} | {
|
|
464
|
-
id: string;
|
|
465
|
-
questionnaireId: string;
|
|
466
|
-
questionnaire: {
|
|
467
|
-
id: string;
|
|
468
|
-
title: string;
|
|
469
|
-
type: "test" | "checklist" | "questionnaire" | "survey" | "evaluation";
|
|
470
|
-
};
|
|
471
|
-
title: string;
|
|
472
|
-
description: string;
|
|
473
|
-
mode: string;
|
|
474
|
-
accessCode: string;
|
|
475
|
-
validFrom: Date;
|
|
476
|
-
validTo: Date;
|
|
477
|
-
timerMode: string;
|
|
478
|
-
timeLimit: number;
|
|
479
|
-
allowMultipleSubmissions: boolean;
|
|
480
|
-
showResults: string;
|
|
481
|
-
requireReview: boolean;
|
|
482
|
-
isActive: boolean;
|
|
483
|
-
createdAt: Date;
|
|
484
|
-
updatedAt: Date;
|
|
485
|
-
assignedToUserIds?: undefined;
|
|
486
|
-
assignedToUsers?: undefined;
|
|
487
|
-
} | {
|
|
488
|
-
id: string;
|
|
489
|
-
questionnaireId: string;
|
|
490
|
-
questionnaire: {
|
|
545
|
+
subjectRef: {
|
|
546
|
+
type: string;
|
|
491
547
|
id: string;
|
|
492
548
|
title: string;
|
|
493
|
-
type: "test" | "checklist" | "questionnaire" | "survey" | "evaluation";
|
|
494
549
|
};
|
|
495
|
-
|
|
496
|
-
description: string;
|
|
497
|
-
mode: string;
|
|
498
|
-
assignedToUserIds: never[];
|
|
499
|
-
assignedToUsers: never[];
|
|
500
|
-
timerMode: string;
|
|
501
|
-
allowMultipleSubmissions: boolean;
|
|
502
|
-
showResults: string;
|
|
503
|
-
requireReview: boolean;
|
|
550
|
+
statusId: string;
|
|
504
551
|
createdAt: Date;
|
|
505
552
|
updatedAt: Date;
|
|
506
|
-
|
|
507
|
-
validTo?: undefined;
|
|
508
|
-
timeLimit?: undefined;
|
|
509
|
-
accessCode?: undefined;
|
|
510
|
-
isActive?: undefined;
|
|
511
|
-
})[];
|
|
553
|
+
}[];
|
|
512
554
|
|
|
513
|
-
declare class
|
|
555
|
+
declare class AXMAssessmentCaseDataSeeder implements AXPDataSeeder {
|
|
514
556
|
private storage;
|
|
515
557
|
seed(): Promise<void>;
|
|
516
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
517
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
558
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXMAssessmentCaseDataSeeder, never>;
|
|
559
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXMAssessmentCaseDataSeeder>;
|
|
518
560
|
}
|
|
519
561
|
|
|
520
|
-
declare const
|
|
562
|
+
declare const assessmentSessionMock: ({
|
|
521
563
|
id: string;
|
|
522
|
-
|
|
523
|
-
|
|
564
|
+
caseId: string;
|
|
565
|
+
case: {
|
|
524
566
|
id: string;
|
|
525
567
|
title: string;
|
|
526
568
|
};
|
|
527
|
-
|
|
528
|
-
|
|
569
|
+
responderId: string;
|
|
570
|
+
responder: {
|
|
529
571
|
id: string;
|
|
530
572
|
displayName: string;
|
|
531
573
|
};
|
|
532
|
-
|
|
574
|
+
role: string;
|
|
575
|
+
statusId: string;
|
|
533
576
|
startedAt: Date;
|
|
577
|
+
lastSavedAt: Date;
|
|
534
578
|
timeSpent: number;
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
}
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
579
|
+
progressPercentage: number;
|
|
580
|
+
answeredQuestionsCount: number;
|
|
581
|
+
answers: {
|
|
582
|
+
'item-1': {
|
|
583
|
+
value: string;
|
|
584
|
+
};
|
|
585
|
+
'item-2': {
|
|
586
|
+
value: number;
|
|
587
|
+
};
|
|
588
|
+
'item-3': {
|
|
589
|
+
value: string;
|
|
590
|
+
};
|
|
591
|
+
'item-4': {
|
|
592
|
+
value: string;
|
|
593
|
+
};
|
|
594
|
+
'item-5': {
|
|
595
|
+
value: string;
|
|
596
|
+
};
|
|
597
|
+
'item-6': {
|
|
598
|
+
value: string;
|
|
599
|
+
};
|
|
600
|
+
'item-7'?: undefined;
|
|
601
|
+
'item-8'?: undefined;
|
|
602
|
+
'item-9'?: undefined;
|
|
603
|
+
'item-10'?: undefined;
|
|
555
604
|
};
|
|
556
|
-
primaryResponderId: string;
|
|
557
|
-
primaryResponder: {
|
|
558
|
-
id: string;
|
|
559
|
-
displayName: string;
|
|
560
|
-
};
|
|
561
|
-
status: string;
|
|
562
|
-
startedAt: Date;
|
|
563
|
-
completedAt: Date;
|
|
564
|
-
submittedAt: Date;
|
|
565
|
-
timeSpent: number;
|
|
566
|
-
currentItemIndex: number;
|
|
567
|
-
completionPercentage: number;
|
|
568
|
-
totalScore: number;
|
|
569
|
-
maxScore: number;
|
|
570
|
-
percentage: number;
|
|
571
|
-
grade: string;
|
|
572
|
-
passed: boolean;
|
|
573
605
|
createdAt: Date;
|
|
574
606
|
updatedAt: Date;
|
|
575
|
-
|
|
576
|
-
reviewedBy?: undefined;
|
|
577
|
-
reviewer?: undefined;
|
|
607
|
+
previousId?: undefined;
|
|
578
608
|
} | {
|
|
579
609
|
id: string;
|
|
580
|
-
|
|
581
|
-
|
|
610
|
+
caseId: string;
|
|
611
|
+
case: {
|
|
582
612
|
id: string;
|
|
583
613
|
title: string;
|
|
584
614
|
};
|
|
585
|
-
|
|
586
|
-
|
|
615
|
+
responderId: string;
|
|
616
|
+
responder: {
|
|
587
617
|
id: string;
|
|
588
618
|
displayName: string;
|
|
589
619
|
};
|
|
590
|
-
|
|
620
|
+
role: string;
|
|
621
|
+
statusId: string;
|
|
591
622
|
startedAt: Date;
|
|
592
|
-
|
|
593
|
-
submittedAt: Date;
|
|
623
|
+
lastSavedAt: Date;
|
|
594
624
|
timeSpent: number;
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
id: string;
|
|
629
|
-
displayName: string;
|
|
625
|
+
progressPercentage: number;
|
|
626
|
+
answeredQuestionsCount: number;
|
|
627
|
+
answers: {
|
|
628
|
+
'item-1': {
|
|
629
|
+
value: string;
|
|
630
|
+
};
|
|
631
|
+
'item-2': {
|
|
632
|
+
value: number;
|
|
633
|
+
};
|
|
634
|
+
'item-3': {
|
|
635
|
+
value: string;
|
|
636
|
+
};
|
|
637
|
+
'item-4': {
|
|
638
|
+
value: string;
|
|
639
|
+
};
|
|
640
|
+
'item-5': {
|
|
641
|
+
value: string;
|
|
642
|
+
};
|
|
643
|
+
'item-6': {
|
|
644
|
+
value: string;
|
|
645
|
+
};
|
|
646
|
+
'item-7': {
|
|
647
|
+
value: string;
|
|
648
|
+
};
|
|
649
|
+
'item-8': {
|
|
650
|
+
value: string;
|
|
651
|
+
};
|
|
652
|
+
'item-9': {
|
|
653
|
+
value: string;
|
|
654
|
+
};
|
|
655
|
+
'item-10': {
|
|
656
|
+
value: string;
|
|
657
|
+
};
|
|
630
658
|
};
|
|
631
|
-
role: string;
|
|
632
|
-
canRespond: boolean;
|
|
633
|
-
canOverride: boolean;
|
|
634
|
-
canReview: boolean;
|
|
635
|
-
canView: boolean;
|
|
636
|
-
joinedAt: Date;
|
|
637
|
-
lastActiveAt: Date;
|
|
638
659
|
createdAt: Date;
|
|
639
660
|
updatedAt: Date;
|
|
661
|
+
previousId?: undefined;
|
|
640
662
|
} | {
|
|
641
663
|
id: string;
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
id: string;
|
|
645
|
-
publicationId: string;
|
|
646
|
-
};
|
|
647
|
-
userId: string;
|
|
648
|
-
user: {
|
|
664
|
+
caseId: string;
|
|
665
|
+
case: {
|
|
649
666
|
id: string;
|
|
650
|
-
|
|
651
|
-
};
|
|
652
|
-
role: string;
|
|
653
|
-
canRespond: boolean;
|
|
654
|
-
canOverride: boolean;
|
|
655
|
-
canReview: boolean;
|
|
656
|
-
canView: boolean;
|
|
657
|
-
joinedAt: Date;
|
|
658
|
-
createdAt: Date;
|
|
659
|
-
updatedAt: Date;
|
|
660
|
-
lastActiveAt?: undefined;
|
|
661
|
-
})[];
|
|
662
|
-
|
|
663
|
-
declare class AXMCollaboratorDataSeeder implements AXPDataSeeder {
|
|
664
|
-
private storage;
|
|
665
|
-
seed(): Promise<void>;
|
|
666
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXMCollaboratorDataSeeder, never>;
|
|
667
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXMCollaboratorDataSeeder>;
|
|
668
|
-
}
|
|
669
|
-
|
|
670
|
-
declare const responseEntryMock: ({
|
|
671
|
-
id: string;
|
|
672
|
-
sessionId: string;
|
|
673
|
-
session: {
|
|
674
|
-
id: string;
|
|
675
|
-
publicationId: string;
|
|
667
|
+
title: string;
|
|
676
668
|
};
|
|
677
|
-
questionnaireItemId: string;
|
|
678
669
|
responderId: string;
|
|
679
670
|
responder: {
|
|
680
671
|
id: string;
|
|
681
672
|
displayName: string;
|
|
682
673
|
};
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
};
|
|
689
|
-
isOverridden: boolean;
|
|
690
|
-
score: number;
|
|
691
|
-
maxScore: number;
|
|
692
|
-
isCorrect: boolean;
|
|
693
|
-
answeredAt: Date;
|
|
674
|
+
role: string;
|
|
675
|
+
statusId: string;
|
|
676
|
+
previousId: string;
|
|
677
|
+
startedAt: Date;
|
|
678
|
+
lastSavedAt: Date;
|
|
694
679
|
timeSpent: number;
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
680
|
+
progressPercentage: number;
|
|
681
|
+
answeredQuestionsCount: number;
|
|
682
|
+
answers: {
|
|
683
|
+
'item-1': {
|
|
684
|
+
value: string;
|
|
685
|
+
};
|
|
686
|
+
'item-2': {
|
|
687
|
+
value: number;
|
|
688
|
+
};
|
|
689
|
+
'item-3': {
|
|
690
|
+
value: string;
|
|
691
|
+
};
|
|
692
|
+
'item-4': {
|
|
693
|
+
value: string;
|
|
694
|
+
};
|
|
695
|
+
'item-5': {
|
|
696
|
+
value: string;
|
|
697
|
+
};
|
|
698
|
+
'item-6': {
|
|
699
|
+
value: string;
|
|
700
|
+
};
|
|
701
|
+
'item-7': {
|
|
702
|
+
value: string;
|
|
703
|
+
};
|
|
704
|
+
'item-8': {
|
|
705
|
+
value: string;
|
|
706
|
+
};
|
|
707
|
+
'item-9': {
|
|
708
|
+
value: string;
|
|
709
|
+
};
|
|
710
|
+
'item-10': {
|
|
711
|
+
value: string;
|
|
712
|
+
};
|
|
713
|
+
};
|
|
698
714
|
createdAt: Date;
|
|
699
715
|
updatedAt: Date;
|
|
700
|
-
overriddenBy?: undefined;
|
|
701
|
-
overrider?: undefined;
|
|
702
|
-
overriddenAt?: undefined;
|
|
703
|
-
originalAnswer?: undefined;
|
|
704
|
-
overrideReason?: undefined;
|
|
705
716
|
} | {
|
|
706
717
|
id: string;
|
|
707
|
-
|
|
708
|
-
|
|
718
|
+
caseId: string;
|
|
719
|
+
case: {
|
|
709
720
|
id: string;
|
|
710
|
-
|
|
721
|
+
title: string;
|
|
711
722
|
};
|
|
712
|
-
questionnaireItemId: string;
|
|
713
723
|
responderId: string;
|
|
714
724
|
responder: {
|
|
715
725
|
id: string;
|
|
716
726
|
displayName: string;
|
|
717
727
|
};
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
728
|
+
role: string;
|
|
729
|
+
statusId: string;
|
|
730
|
+
progressPercentage: number;
|
|
731
|
+
answeredQuestionsCount: number;
|
|
732
|
+
answers: {
|
|
733
|
+
'item-1'?: undefined;
|
|
734
|
+
'item-2'?: undefined;
|
|
735
|
+
'item-3'?: undefined;
|
|
736
|
+
'item-4'?: undefined;
|
|
737
|
+
'item-5'?: undefined;
|
|
738
|
+
'item-6'?: undefined;
|
|
739
|
+
'item-7'?: undefined;
|
|
740
|
+
'item-8'?: undefined;
|
|
741
|
+
'item-9'?: undefined;
|
|
742
|
+
'item-10'?: undefined;
|
|
733
743
|
};
|
|
734
|
-
overrideReason: string;
|
|
735
|
-
score: number;
|
|
736
|
-
maxScore: number;
|
|
737
|
-
answeredAt: Date;
|
|
738
|
-
timeSpent: number;
|
|
739
|
-
attemptCount: number;
|
|
740
|
-
skipped: boolean;
|
|
741
|
-
flaggedForReview: boolean;
|
|
742
744
|
createdAt: Date;
|
|
743
745
|
updatedAt: Date;
|
|
744
|
-
|
|
746
|
+
startedAt?: undefined;
|
|
747
|
+
lastSavedAt?: undefined;
|
|
748
|
+
timeSpent?: undefined;
|
|
749
|
+
previousId?: undefined;
|
|
745
750
|
} | {
|
|
746
751
|
id: string;
|
|
747
|
-
|
|
748
|
-
|
|
752
|
+
caseId: string;
|
|
753
|
+
case: {
|
|
749
754
|
id: string;
|
|
750
|
-
|
|
755
|
+
title: string;
|
|
751
756
|
};
|
|
752
|
-
questionnaireItemId: string;
|
|
753
757
|
responderId: string;
|
|
754
758
|
responder: {
|
|
755
759
|
id: string;
|
|
756
760
|
displayName: string;
|
|
757
761
|
};
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
text?: undefined;
|
|
763
|
-
};
|
|
764
|
-
isOverridden: boolean;
|
|
765
|
-
score: number;
|
|
766
|
-
maxScore: number;
|
|
767
|
-
isCorrect: boolean;
|
|
768
|
-
answeredAt: Date;
|
|
762
|
+
role: string;
|
|
763
|
+
statusId: string;
|
|
764
|
+
startedAt: Date;
|
|
765
|
+
lastSavedAt: Date;
|
|
769
766
|
timeSpent: number;
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
767
|
+
progressPercentage: number;
|
|
768
|
+
answeredQuestionsCount: number;
|
|
769
|
+
answers: {
|
|
770
|
+
'item-1': {
|
|
771
|
+
value: string;
|
|
772
|
+
};
|
|
773
|
+
'item-2': {
|
|
774
|
+
value: string;
|
|
775
|
+
};
|
|
776
|
+
'item-3': {
|
|
777
|
+
value: string;
|
|
778
|
+
};
|
|
779
|
+
'item-4'?: undefined;
|
|
780
|
+
'item-5'?: undefined;
|
|
781
|
+
'item-6'?: undefined;
|
|
782
|
+
'item-7'?: undefined;
|
|
783
|
+
'item-8'?: undefined;
|
|
784
|
+
'item-9'?: undefined;
|
|
785
|
+
'item-10'?: undefined;
|
|
786
|
+
};
|
|
773
787
|
createdAt: Date;
|
|
774
788
|
updatedAt: Date;
|
|
775
|
-
|
|
776
|
-
overrider?: undefined;
|
|
777
|
-
overriddenAt?: undefined;
|
|
778
|
-
originalAnswer?: undefined;
|
|
779
|
-
overrideReason?: undefined;
|
|
789
|
+
previousId?: undefined;
|
|
780
790
|
})[];
|
|
781
791
|
|
|
782
|
-
declare class
|
|
792
|
+
declare class AXMAssessmentSessionDataSeeder implements AXPDataSeeder {
|
|
783
793
|
private storage;
|
|
784
794
|
seed(): Promise<void>;
|
|
785
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
786
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
787
|
-
}
|
|
788
|
-
|
|
789
|
-
declare class AXCAppVersionDataSeeder implements AXPDataSeeder {
|
|
790
|
-
private storageService;
|
|
791
|
-
private appVersionService;
|
|
792
|
-
seed(): Promise<void>;
|
|
793
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXCAppVersionDataSeeder, never>;
|
|
794
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXCAppVersionDataSeeder>;
|
|
795
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXMAssessmentSessionDataSeeder, never>;
|
|
796
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXMAssessmentSessionDataSeeder>;
|
|
795
797
|
}
|
|
796
798
|
|
|
797
|
-
declare class
|
|
799
|
+
declare class AXCTokensDataSeeder implements AXPDataSeeder {
|
|
798
800
|
private storageService;
|
|
799
801
|
seed(): Promise<void>;
|
|
800
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
801
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
802
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCTokensDataSeeder, never>;
|
|
803
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXCTokensDataSeeder>;
|
|
802
804
|
}
|
|
803
805
|
|
|
804
|
-
declare const
|
|
806
|
+
declare const TOKENS: {
|
|
805
807
|
id: string;
|
|
806
808
|
name: string;
|
|
807
809
|
title: string;
|
|
808
|
-
|
|
809
|
-
|
|
810
|
+
description: string;
|
|
811
|
+
type: "Expression" | "String" | "Integer" | "Boolean";
|
|
812
|
+
expression: string;
|
|
810
813
|
}[];
|
|
811
814
|
|
|
815
|
+
/**
|
|
816
|
+
* Tenant ID constants for use across mock data.
|
|
817
|
+
* These are generated once and exported to ensure consistency.
|
|
818
|
+
*/
|
|
819
|
+
declare const PLATFORM_TENANT_ID: string;
|
|
820
|
+
declare const TIMEPLICITY_TENANT_ID: string;
|
|
821
|
+
declare const LASER_PLUMBING_TENANT_ID: string;
|
|
822
|
+
|
|
823
|
+
declare const tenantMocks: AXMTenantManagementTenantEntityModel[];
|
|
824
|
+
|
|
825
|
+
declare class AXCTenantSeeder implements AXPDataSeeder {
|
|
826
|
+
private readonly storageService;
|
|
827
|
+
seed(): Promise<void>;
|
|
828
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCTenantSeeder, never>;
|
|
829
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXCTenantSeeder>;
|
|
830
|
+
}
|
|
831
|
+
|
|
812
832
|
declare class AXPSecurityManagementRoleDataSeeder implements AXPDataSeeder {
|
|
813
833
|
private storageService;
|
|
814
834
|
seed(): Promise<void>;
|
|
@@ -823,23 +843,13 @@ declare class AXPSecurityManagementUserDataSeeder implements AXPDataSeeder {
|
|
|
823
843
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXPSecurityManagementUserDataSeeder>;
|
|
824
844
|
}
|
|
825
845
|
|
|
826
|
-
|
|
846
|
+
type RoleMockDto = AXMSecurityManagementRolesEntityModel;
|
|
847
|
+
declare const mockRoleDefinitions: RoleMockDto[];
|
|
827
848
|
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
declare const mockRoleDefinitions: {
|
|
831
|
-
id: string;
|
|
832
|
-
name: string;
|
|
833
|
-
title: string;
|
|
834
|
-
description: string;
|
|
835
|
-
permissions: string[];
|
|
836
|
-
}[];
|
|
837
|
-
|
|
838
|
-
interface AXCMockUserMockDto {
|
|
849
|
+
interface AXCMockUserMockDto extends AXMSecurityManagementUsersEntityModel {
|
|
839
850
|
id: string;
|
|
840
851
|
username: string;
|
|
841
852
|
displayName: string;
|
|
842
|
-
partyId: string;
|
|
843
853
|
roleIds: string[];
|
|
844
854
|
roles: {
|
|
845
855
|
id: string;
|
|
@@ -897,15 +907,15 @@ declare function findEmployeeById(employeeId: string): AXCEmployeeMockDto | unde
|
|
|
897
907
|
interface AXCEmployeeMockDto {
|
|
898
908
|
id: string;
|
|
899
909
|
userId?: string;
|
|
900
|
-
|
|
901
|
-
|
|
910
|
+
personId: string;
|
|
911
|
+
person: {
|
|
902
912
|
id: string;
|
|
903
913
|
displayName: string;
|
|
904
914
|
};
|
|
905
915
|
birthDate: Date;
|
|
906
916
|
employeeCode: string;
|
|
907
|
-
|
|
908
|
-
|
|
917
|
+
jobDefinitionId: string;
|
|
918
|
+
jobDefinition: {
|
|
909
919
|
id: string;
|
|
910
920
|
title: string;
|
|
911
921
|
};
|
|
@@ -955,6 +965,7 @@ declare class AXMTeamDataSeeder implements AXPDataSeeder {
|
|
|
955
965
|
|
|
956
966
|
interface PositionMockDto extends AXPCategorizedEntityDto {
|
|
957
967
|
id: string;
|
|
968
|
+
code: string;
|
|
958
969
|
title: string;
|
|
959
970
|
description: string;
|
|
960
971
|
categoryIds: string[];
|
|
@@ -962,7 +973,22 @@ interface PositionMockDto extends AXPCategorizedEntityDto {
|
|
|
962
973
|
id: string;
|
|
963
974
|
title: string;
|
|
964
975
|
}[];
|
|
965
|
-
|
|
976
|
+
jobLevelId: string;
|
|
977
|
+
jobLevel?: {
|
|
978
|
+
id: string;
|
|
979
|
+
title: string;
|
|
980
|
+
};
|
|
981
|
+
jobDefinitionId?: string;
|
|
982
|
+
jobDefinition?: {
|
|
983
|
+
id: string;
|
|
984
|
+
title: string;
|
|
985
|
+
};
|
|
986
|
+
businessUnitId?: string;
|
|
987
|
+
businessUnit?: {
|
|
988
|
+
id: string;
|
|
989
|
+
title: string;
|
|
990
|
+
};
|
|
991
|
+
capacity?: number;
|
|
966
992
|
}
|
|
967
993
|
declare const POSITIONS_CATEGORY_MOCK: AXPCategoryEntity<string>[];
|
|
968
994
|
declare const POSITIONS_MOCK: PositionMockDto[];
|
|
@@ -974,7 +1000,7 @@ declare class AXMPositionDataSeeder implements AXPDataSeeder {
|
|
|
974
1000
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXMPositionDataSeeder>;
|
|
975
1001
|
}
|
|
976
1002
|
|
|
977
|
-
interface
|
|
1003
|
+
interface JobDefinitionMockDto extends AXPCategorizedEntityDto {
|
|
978
1004
|
id: string;
|
|
979
1005
|
title: string;
|
|
980
1006
|
description: string;
|
|
@@ -983,25 +1009,36 @@ interface RoleMockDto extends AXPCategorizedEntityDto {
|
|
|
983
1009
|
id: string;
|
|
984
1010
|
title: string;
|
|
985
1011
|
}[];
|
|
986
|
-
skillsId: string[];
|
|
987
|
-
skills: {
|
|
988
|
-
id: string;
|
|
989
|
-
title: string;
|
|
990
|
-
}[];
|
|
991
1012
|
responsibilitiesId: string[];
|
|
992
1013
|
responsibilities: {
|
|
993
1014
|
id: string;
|
|
994
1015
|
title: string;
|
|
995
1016
|
}[];
|
|
1017
|
+
skillRequirements?: AXPSpreadsheetData;
|
|
1018
|
+
}
|
|
1019
|
+
declare const JOB_DEFINITIONS_CATEGORY_MOCK: AXPCategoryEntity<string>[];
|
|
1020
|
+
declare const JOB_DEFINITIONS_MOCK: JobDefinitionMockDto[];
|
|
1021
|
+
|
|
1022
|
+
declare class AXMJobDefinitionDataSeeder implements AXPDataSeeder {
|
|
1023
|
+
private storageService;
|
|
1024
|
+
seed(): Promise<void>;
|
|
1025
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXMJobDefinitionDataSeeder, never>;
|
|
1026
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXMJobDefinitionDataSeeder>;
|
|
996
1027
|
}
|
|
997
|
-
declare const ROLES_CATEGORY_MOCK: AXPCategoryEntity<string>[];
|
|
998
|
-
declare const ROLES_MOCK: RoleMockDto[];
|
|
999
1028
|
|
|
1000
|
-
|
|
1029
|
+
interface JobLevelMockDto {
|
|
1030
|
+
id: string;
|
|
1031
|
+
title: string;
|
|
1032
|
+
description?: string;
|
|
1033
|
+
order: number;
|
|
1034
|
+
}
|
|
1035
|
+
declare const JOB_LEVELS_MOCK: JobLevelMockDto[];
|
|
1036
|
+
|
|
1037
|
+
declare class AXMJobLevelDataSeeder implements AXPDataSeeder {
|
|
1001
1038
|
private storageService;
|
|
1002
1039
|
seed(): Promise<void>;
|
|
1003
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
1004
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
1040
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXMJobLevelDataSeeder, never>;
|
|
1041
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXMJobLevelDataSeeder>;
|
|
1005
1042
|
}
|
|
1006
1043
|
|
|
1007
1044
|
interface ResponsibilityMockDto extends AXPCategorizedEntityDto {
|
|
@@ -1053,69 +1090,6 @@ declare class AXMPositionAssignmentDataSeeder implements AXPDataSeeder {
|
|
|
1053
1090
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXMPositionAssignmentDataSeeder>;
|
|
1054
1091
|
}
|
|
1055
1092
|
|
|
1056
|
-
interface SkillMockDto extends AXPCategorizedEntityDto {
|
|
1057
|
-
id: string;
|
|
1058
|
-
title: string;
|
|
1059
|
-
description: string;
|
|
1060
|
-
categoryIds: string[];
|
|
1061
|
-
categories: {
|
|
1062
|
-
id: string;
|
|
1063
|
-
title: string;
|
|
1064
|
-
}[];
|
|
1065
|
-
}
|
|
1066
|
-
declare const SKILLS_CATEGORY_MOCK: AXPCategoryEntity<string>[];
|
|
1067
|
-
declare const SKILLS_MOCK: SkillMockDto[];
|
|
1068
|
-
|
|
1069
|
-
declare class AXMSkillDataSeeder implements AXPDataSeeder {
|
|
1070
|
-
private storageService;
|
|
1071
|
-
seed(): Promise<void>;
|
|
1072
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXMSkillDataSeeder, never>;
|
|
1073
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXMSkillDataSeeder>;
|
|
1074
|
-
}
|
|
1075
|
-
|
|
1076
|
-
interface AXCSkillLevelMockDto {
|
|
1077
|
-
id: string;
|
|
1078
|
-
title: string;
|
|
1079
|
-
order: number;
|
|
1080
|
-
isActive: boolean;
|
|
1081
|
-
description?: string;
|
|
1082
|
-
}
|
|
1083
|
-
declare const SKILL_LEVELS_MOCK: AXCSkillLevelMockDto[];
|
|
1084
|
-
|
|
1085
|
-
declare class AXMSkillLevelDataSeeder implements AXPDataSeeder {
|
|
1086
|
-
private readonly storageService;
|
|
1087
|
-
seed(): Promise<void>;
|
|
1088
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXMSkillLevelDataSeeder, never>;
|
|
1089
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXMSkillLevelDataSeeder>;
|
|
1090
|
-
}
|
|
1091
|
-
|
|
1092
|
-
/**
|
|
1093
|
-
* Mock DTO for employee skill relation entries.
|
|
1094
|
-
*/
|
|
1095
|
-
interface AXCEmployeeSkillMockDto {
|
|
1096
|
-
id: string;
|
|
1097
|
-
employeeId: string;
|
|
1098
|
-
employee?: any;
|
|
1099
|
-
skillId: string;
|
|
1100
|
-
skill?: any;
|
|
1101
|
-
levelId: string;
|
|
1102
|
-
level?: any;
|
|
1103
|
-
yearsOfExperience?: number;
|
|
1104
|
-
lastUsedDate?: Date;
|
|
1105
|
-
validatedBy?: string;
|
|
1106
|
-
validationSource?: string;
|
|
1107
|
-
validationDate?: Date;
|
|
1108
|
-
notes?: string;
|
|
1109
|
-
}
|
|
1110
|
-
declare const EMPLOYEE_SKILLS_MOCK: AXCEmployeeSkillMockDto[];
|
|
1111
|
-
|
|
1112
|
-
declare class AXMEmployeeSkillDataSeeder implements AXPDataSeeder {
|
|
1113
|
-
private storageService;
|
|
1114
|
-
seed(): Promise<void>;
|
|
1115
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXMEmployeeSkillDataSeeder, never>;
|
|
1116
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXMEmployeeSkillDataSeeder>;
|
|
1117
|
-
}
|
|
1118
|
-
|
|
1119
1093
|
declare const EMPLOYMENT_TYPES_MOCK: any[];
|
|
1120
1094
|
|
|
1121
1095
|
declare class AXMEmploymentTypeDataSeeder implements AXPDataSeeder {
|
|
@@ -1125,6 +1099,44 @@ declare class AXMEmploymentTypeDataSeeder implements AXPDataSeeder {
|
|
|
1125
1099
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXMEmploymentTypeDataSeeder>;
|
|
1126
1100
|
}
|
|
1127
1101
|
|
|
1102
|
+
declare const LEAVE_REQUEST_STATUS_DEFINITIONS: readonly [{
|
|
1103
|
+
readonly name: _acorex_platform_common.AXPSystemStatusType.Pending;
|
|
1104
|
+
readonly title: string;
|
|
1105
|
+
readonly icon: "fa-light fa-clock";
|
|
1106
|
+
readonly color: "warning";
|
|
1107
|
+
readonly description: string;
|
|
1108
|
+
readonly order: 1;
|
|
1109
|
+
readonly isInitial: true;
|
|
1110
|
+
readonly isFinal: false;
|
|
1111
|
+
}, {
|
|
1112
|
+
readonly name: _acorex_platform_common.AXPSystemStatusType.Approved;
|
|
1113
|
+
readonly title: string;
|
|
1114
|
+
readonly icon: "fa-light fa-check-circle";
|
|
1115
|
+
readonly color: "success";
|
|
1116
|
+
readonly description: string;
|
|
1117
|
+
readonly order: 3;
|
|
1118
|
+
readonly isInitial: false;
|
|
1119
|
+
readonly isFinal: false;
|
|
1120
|
+
}, {
|
|
1121
|
+
readonly name: _acorex_platform_common.AXPSystemStatusType.Rejected;
|
|
1122
|
+
readonly title: string;
|
|
1123
|
+
readonly icon: "fa-light fa-times-circle";
|
|
1124
|
+
readonly color: "danger";
|
|
1125
|
+
readonly description: string;
|
|
1126
|
+
readonly order: 6;
|
|
1127
|
+
readonly isInitial: false;
|
|
1128
|
+
readonly isFinal: true;
|
|
1129
|
+
}, {
|
|
1130
|
+
readonly name: _acorex_platform_common.AXPSystemStatusType.Cancelled;
|
|
1131
|
+
readonly title: string;
|
|
1132
|
+
readonly icon: "fa-light fa-times-circle";
|
|
1133
|
+
readonly color: "neutral";
|
|
1134
|
+
readonly description: string;
|
|
1135
|
+
readonly order: 6;
|
|
1136
|
+
readonly isInitial: false;
|
|
1137
|
+
readonly isFinal: true;
|
|
1138
|
+
}];
|
|
1139
|
+
type LeaveRequestStatusId = (typeof LEAVE_REQUEST_STATUS_DEFINITIONS)[number]['name'];
|
|
1128
1140
|
interface AXCLeaveRequestMockDto {
|
|
1129
1141
|
id: string;
|
|
1130
1142
|
employeeId: string;
|
|
@@ -1135,14 +1147,11 @@ interface AXCLeaveRequestMockDto {
|
|
|
1135
1147
|
endDate: Date;
|
|
1136
1148
|
durationDays: number;
|
|
1137
1149
|
reason?: string;
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
changedBy: string;
|
|
1144
|
-
note?: string;
|
|
1145
|
-
}>;
|
|
1150
|
+
statusId: LeaveRequestStatusId;
|
|
1151
|
+
status?: {
|
|
1152
|
+
id: LeaveRequestStatusId;
|
|
1153
|
+
title: string;
|
|
1154
|
+
};
|
|
1146
1155
|
}
|
|
1147
1156
|
declare const LEAVE_REQUESTS_MOCK: AXCLeaveRequestMockDto[];
|
|
1148
1157
|
|
|
@@ -1153,111 +1162,7 @@ declare class AXMLeaveRequestDataSeeder implements AXPDataSeeder {
|
|
|
1153
1162
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXMLeaveRequestDataSeeder>;
|
|
1154
1163
|
}
|
|
1155
1164
|
|
|
1156
|
-
|
|
1157
|
-
getList(parentId?: string): Promise<AXPReportCategory[]>;
|
|
1158
|
-
getById(id: string): Promise<AXPReportCategory | undefined>;
|
|
1159
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXMEmployeeSkillsCategoryProvider, never>;
|
|
1160
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXMEmployeeSkillsCategoryProvider>;
|
|
1161
|
-
}
|
|
1162
|
-
declare class AXMEmployeeSkillsReportDefinitionProvider implements AXPReportDefinitionProvider {
|
|
1163
|
-
getList(categoryId: string): Promise<AXPReportDefinition[]>;
|
|
1164
|
-
getById(id: string): Promise<AXPReportDefinition | undefined>;
|
|
1165
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXMEmployeeSkillsReportDefinitionProvider, never>;
|
|
1166
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXMEmployeeSkillsReportDefinitionProvider>;
|
|
1167
|
-
}
|
|
1168
|
-
declare const AXM_EMPLOYEE_SKILLS_CATEGORY_PROVIDER: {
|
|
1169
|
-
provide: i0.InjectionToken<_acorex_modules_report_management.AXPReportCategoryProviderToken[]>;
|
|
1170
|
-
useClass: typeof AXMEmployeeSkillsCategoryProvider;
|
|
1171
|
-
multi: boolean;
|
|
1172
|
-
};
|
|
1173
|
-
declare const AXM_EMPLOYEE_SKILLS_DEFINITION_PROVIDER: {
|
|
1174
|
-
provide: i0.InjectionToken<_acorex_modules_report_management.AXPReportDefinitionProviderToken[]>;
|
|
1175
|
-
useClass: typeof AXMEmployeeSkillsReportDefinitionProvider;
|
|
1176
|
-
multi: boolean;
|
|
1177
|
-
};
|
|
1178
|
-
|
|
1179
|
-
type ListInput = {
|
|
1180
|
-
skillId?: string;
|
|
1181
|
-
levelId?: string;
|
|
1182
|
-
minYears?: number;
|
|
1183
|
-
startDate?: Date | string;
|
|
1184
|
-
endDate?: Date | string;
|
|
1185
|
-
skip?: number;
|
|
1186
|
-
take?: number;
|
|
1187
|
-
};
|
|
1188
|
-
declare class AXQEmployeeSkillsListQuery implements AXPQuery<ListInput, {
|
|
1189
|
-
items: any[];
|
|
1190
|
-
total: number;
|
|
1191
|
-
}> {
|
|
1192
|
-
private employeeSkillService;
|
|
1193
|
-
private skillLevelService;
|
|
1194
|
-
fetch(input: ListInput): Promise<{
|
|
1195
|
-
items: any[];
|
|
1196
|
-
total: number;
|
|
1197
|
-
}>;
|
|
1198
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXQEmployeeSkillsListQuery, never>;
|
|
1199
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXQEmployeeSkillsListQuery>;
|
|
1200
|
-
}
|
|
1201
|
-
type StatsInput = {
|
|
1202
|
-
skillId?: string;
|
|
1203
|
-
levelId?: string;
|
|
1204
|
-
minYears?: number;
|
|
1205
|
-
startDate?: Date | string;
|
|
1206
|
-
endDate?: Date | string;
|
|
1207
|
-
};
|
|
1208
|
-
declare class AXQEmployeeSkillsStatsQuery implements AXPQuery<StatsInput, Record<string, number>> {
|
|
1209
|
-
private employeeSkillService;
|
|
1210
|
-
fetch(input: StatsInput): Promise<Record<string, number>>;
|
|
1211
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXQEmployeeSkillsStatsQuery, never>;
|
|
1212
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXQEmployeeSkillsStatsQuery>;
|
|
1213
|
-
}
|
|
1214
|
-
type LevelsInput = {
|
|
1215
|
-
skillId?: string;
|
|
1216
|
-
levelId?: string;
|
|
1217
|
-
minYears?: number;
|
|
1218
|
-
startDate?: Date | string;
|
|
1219
|
-
endDate?: Date | string;
|
|
1220
|
-
};
|
|
1221
|
-
declare class AXQEmployeeSkillsLevelsQuery implements AXPQuery<LevelsInput, Record<string, number>> {
|
|
1222
|
-
private employeeSkillService;
|
|
1223
|
-
private skillLevelService;
|
|
1224
|
-
fetch(input: LevelsInput): Promise<Record<string, number>>;
|
|
1225
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXQEmployeeSkillsLevelsQuery, never>;
|
|
1226
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXQEmployeeSkillsLevelsQuery>;
|
|
1227
|
-
}
|
|
1228
|
-
type TrendInput = {
|
|
1229
|
-
startDate?: Date | string;
|
|
1230
|
-
endDate?: Date | string;
|
|
1231
|
-
skillId?: string;
|
|
1232
|
-
levelId?: string;
|
|
1233
|
-
};
|
|
1234
|
-
declare class AXQEmployeeSkillsTrendQuery implements AXPQuery<TrendInput, {
|
|
1235
|
-
month: string;
|
|
1236
|
-
value: number;
|
|
1237
|
-
}[]> {
|
|
1238
|
-
private employeeSkillService;
|
|
1239
|
-
fetch(input: TrendInput): Promise<{
|
|
1240
|
-
month: string;
|
|
1241
|
-
value: number;
|
|
1242
|
-
}[]>;
|
|
1243
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXQEmployeeSkillsTrendQuery, never>;
|
|
1244
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXQEmployeeSkillsTrendQuery>;
|
|
1245
|
-
}
|
|
1246
|
-
declare class AXQEmployeeSkillsSkillPercentagesQuery implements AXPQuery<StatsInput, Record<string, number>> {
|
|
1247
|
-
private employeeSkillService;
|
|
1248
|
-
fetch(input: StatsInput): Promise<Record<string, number>>;
|
|
1249
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXQEmployeeSkillsSkillPercentagesQuery, never>;
|
|
1250
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXQEmployeeSkillsSkillPercentagesQuery>;
|
|
1251
|
-
}
|
|
1252
|
-
declare class AXQEmployeeSkillsLevelPercentagesQuery implements AXPQuery<LevelsInput, Record<string, number>> {
|
|
1253
|
-
private employeeSkillService;
|
|
1254
|
-
private skillLevelService;
|
|
1255
|
-
fetch(input: LevelsInput): Promise<Record<string, number>>;
|
|
1256
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXQEmployeeSkillsLevelPercentagesQuery, never>;
|
|
1257
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXQEmployeeSkillsLevelPercentagesQuery>;
|
|
1258
|
-
}
|
|
1259
|
-
|
|
1260
|
-
interface PartyMockData {
|
|
1165
|
+
interface PersonMockData {
|
|
1261
1166
|
id: string;
|
|
1262
1167
|
firstName: string;
|
|
1263
1168
|
lastName: string;
|
|
@@ -1267,14 +1172,7 @@ interface PartyMockData {
|
|
|
1267
1172
|
gender: string;
|
|
1268
1173
|
type: string;
|
|
1269
1174
|
}
|
|
1270
|
-
declare function
|
|
1271
|
-
|
|
1272
|
-
declare class AXMIndustryDataSeeder implements AXPDataSeeder {
|
|
1273
|
-
private readonly storageService;
|
|
1274
|
-
seed(): Promise<void>;
|
|
1275
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXMIndustryDataSeeder, never>;
|
|
1276
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXMIndustryDataSeeder>;
|
|
1277
|
-
}
|
|
1175
|
+
declare function findPersonById(id: string): PersonMockData | null;
|
|
1278
1176
|
|
|
1279
1177
|
declare function findContactMethod(referenceId: string, type: string): string | undefined;
|
|
1280
1178
|
|
|
@@ -1358,6 +1256,12 @@ interface TaskTemplate {
|
|
|
1358
1256
|
}
|
|
1359
1257
|
declare const TASK_TEMPLATES: TaskTemplate[];
|
|
1360
1258
|
|
|
1259
|
+
declare class AXCWorkflowManagementMockModule {
|
|
1260
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCWorkflowManagementMockModule, never>;
|
|
1261
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXCWorkflowManagementMockModule, never, never, never>;
|
|
1262
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AXCWorkflowManagementMockModule>;
|
|
1263
|
+
}
|
|
1264
|
+
|
|
1361
1265
|
/**
|
|
1362
1266
|
* Mock workflow definition entities for the entity list.
|
|
1363
1267
|
*/
|
|
@@ -1436,13 +1340,6 @@ declare class AXPTaskBoardPlatformManagementTaskProvider extends AXPWorkflowTask
|
|
|
1436
1340
|
getStatuses(): Promise<AXPTaskStatus[]>;
|
|
1437
1341
|
}
|
|
1438
1342
|
|
|
1439
|
-
declare class AXCAppTermDataSeeder implements AXPDataSeeder {
|
|
1440
|
-
private storageService;
|
|
1441
|
-
seed(): Promise<void>;
|
|
1442
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXCAppTermDataSeeder, never>;
|
|
1443
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXCAppTermDataSeeder>;
|
|
1444
|
-
}
|
|
1445
|
-
|
|
1446
1343
|
declare class AXMAiResponderService {
|
|
1447
1344
|
private readonly geminiApiKey;
|
|
1448
1345
|
getAIResponse(prompt: string): Promise<string>;
|
|
@@ -1504,18 +1401,52 @@ interface CategoryMetadataInheritanceQueryParams {
|
|
|
1504
1401
|
entityName: string;
|
|
1505
1402
|
categoryId: string;
|
|
1506
1403
|
}
|
|
1507
|
-
|
|
1404
|
+
/**
|
|
1405
|
+
* Result structure that preserves groups organization
|
|
1406
|
+
*/
|
|
1407
|
+
interface CategoryMetadataInheritanceGroupResult {
|
|
1408
|
+
name: string;
|
|
1409
|
+
title?: string;
|
|
1410
|
+
description?: string;
|
|
1411
|
+
order: number;
|
|
1412
|
+
fields: Array<{
|
|
1413
|
+
id: string;
|
|
1414
|
+
name: string;
|
|
1415
|
+
title: string;
|
|
1416
|
+
description?: string;
|
|
1417
|
+
interface: string;
|
|
1418
|
+
configuration?: any;
|
|
1419
|
+
defaultValue?: any;
|
|
1420
|
+
order: number;
|
|
1421
|
+
}>;
|
|
1422
|
+
}
|
|
1423
|
+
type CategoryMetadataInheritanceResult = CategoryMetadataInheritanceGroupResult[];
|
|
1508
1424
|
declare class AXCQueryCategoryMetadataInheritanceQuery implements AXPQuery<CategoryMetadataInheritanceQueryParams, CategoryMetadataInheritanceResult> {
|
|
1509
1425
|
private injector;
|
|
1510
1426
|
private metaDataService;
|
|
1511
1427
|
fetch(params: CategoryMetadataInheritanceQueryParams): Promise<CategoryMetadataInheritanceResult>;
|
|
1512
1428
|
private findCategoryById;
|
|
1513
1429
|
private buildCategoryHierarchy;
|
|
1430
|
+
/**
|
|
1431
|
+
* Merge metadata groups from category hierarchy, preserving group structure
|
|
1432
|
+
* Groups are merged by name, with fields from child categories taking precedence
|
|
1433
|
+
*/
|
|
1434
|
+
private mergeMetadataGroupsFromHierarchy;
|
|
1514
1435
|
private collectInheritedMetadata;
|
|
1515
1436
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXCQueryCategoryMetadataInheritanceQuery, never>;
|
|
1516
1437
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXCQueryCategoryMetadataInheritanceQuery>;
|
|
1517
1438
|
}
|
|
1518
1439
|
|
|
1440
|
+
type MetadataCategoryMockDto = AXPCategoryEntity;
|
|
1441
|
+
declare const metadataCategoryMocks: MetadataCategoryMockDto[];
|
|
1442
|
+
|
|
1443
|
+
declare class AXCMetadataCategorySeeder implements AXPDataSeeder {
|
|
1444
|
+
private readonly storageService;
|
|
1445
|
+
seed(): Promise<void>;
|
|
1446
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCMetadataCategorySeeder, never>;
|
|
1447
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXCMetadataCategorySeeder>;
|
|
1448
|
+
}
|
|
1449
|
+
|
|
1519
1450
|
interface AXMTag {
|
|
1520
1451
|
id: string;
|
|
1521
1452
|
title: string;
|
|
@@ -1565,60 +1496,19 @@ declare class AXMReportDefinitionDataSeeder implements AXPDataSeeder {
|
|
|
1565
1496
|
|
|
1566
1497
|
declare class AXMReportExecuteCommand implements AXPExecutionReportCommand {
|
|
1567
1498
|
private readonly queryService;
|
|
1568
|
-
private readonly mockDataService;
|
|
1569
|
-
private readonly reportDataCache;
|
|
1570
|
-
private readonly CACHE_TTL_MS;
|
|
1571
|
-
private readonly DEFAULT_TOTAL_ITEMS;
|
|
1572
1499
|
private readonly reportDefinitionService;
|
|
1573
|
-
|
|
1574
|
-
execute(context: AXPLayoutExecutionContext): Promise<AXPExecutionReportCommandResult>;
|
|
1575
|
-
private generateLayoutData;
|
|
1576
|
-
private generateTableData;
|
|
1577
|
-
private generateChartData;
|
|
1578
|
-
private generateLayoutDataFromQuery;
|
|
1579
|
-
private buildQueryInput;
|
|
1580
|
-
private assignByPath;
|
|
1581
|
-
private normalizeTableQueryResult;
|
|
1582
|
-
private normalizeChartQueryResult;
|
|
1583
|
-
private generateSystemHealthChartData;
|
|
1584
|
-
private readonly reportDefinitionFallback;
|
|
1585
|
-
private applyAuditTrailFilters;
|
|
1586
|
-
private applyLoginLogsFilters;
|
|
1587
|
-
private applyChangePasswordLogsFilters;
|
|
1588
|
-
private applyIdentityAuditLogErrorLogsFilters;
|
|
1589
|
-
private getCachedOrGenerateReportData;
|
|
1590
|
-
private generateCacheKey;
|
|
1591
|
-
private generateReportVersion;
|
|
1592
|
-
private isCacheValid;
|
|
1593
|
-
private clearExpiredCache;
|
|
1500
|
+
execute(context: AXPLayoutExecutionContext): Promise<AXPExecuteCommandResult<AXPExecutionReportCommandResult>>;
|
|
1594
1501
|
/**
|
|
1595
|
-
*
|
|
1502
|
+
* Extract filters from AXPFilterClause and convert to query filters
|
|
1503
|
+
* Maps report parameter paths to actual entity field names
|
|
1596
1504
|
*/
|
|
1597
|
-
|
|
1505
|
+
private extractFiltersFromParameters;
|
|
1506
|
+
private normalizeTableResult;
|
|
1507
|
+
private normalizeChartResult;
|
|
1598
1508
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXMReportExecuteCommand, never>;
|
|
1599
1509
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXMReportExecuteCommand>;
|
|
1600
1510
|
}
|
|
1601
1511
|
|
|
1602
|
-
/**
|
|
1603
|
-
* Provides mock data generation for reports, separated from execution concerns.
|
|
1604
|
-
*/
|
|
1605
|
-
declare class AXMReportMockDataService {
|
|
1606
|
-
/**
|
|
1607
|
-
* Generate mock data based on report title heuristics.
|
|
1608
|
-
*/
|
|
1609
|
-
generateMockDataForReport(reportDefinition: AXPReportDefinition, parameters: Record<string, unknown>, pageSize: number): Record<string, unknown>[];
|
|
1610
|
-
private generateAuditTrailData;
|
|
1611
|
-
private generateFinancialData;
|
|
1612
|
-
private generateIncomeData;
|
|
1613
|
-
private generateEmployeeData;
|
|
1614
|
-
private generateSalesData;
|
|
1615
|
-
private generateSafetyData;
|
|
1616
|
-
private generateGenericData;
|
|
1617
|
-
private getRandomPastDate;
|
|
1618
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXMReportMockDataService, never>;
|
|
1619
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXMReportMockDataService>;
|
|
1620
|
-
}
|
|
1621
|
-
|
|
1622
1512
|
declare const calendarMock: ({
|
|
1623
1513
|
id: string;
|
|
1624
1514
|
name: string;
|
|
@@ -2226,6 +2116,7 @@ declare class AXCWorkflowExecutionService implements AXPWorkflowExecutionService
|
|
|
2226
2116
|
private readonly db;
|
|
2227
2117
|
private readonly activityProviderService;
|
|
2228
2118
|
private readonly commandService;
|
|
2119
|
+
private readonly entityStorageService;
|
|
2229
2120
|
/**
|
|
2230
2121
|
* Start a new workflow execution.
|
|
2231
2122
|
* Creates a workflow instance and stores it in IndexedDB.
|
|
@@ -2282,6 +2173,15 @@ declare class AXCWorkflowExecutionService implements AXPWorkflowExecutionService
|
|
|
2282
2173
|
* Inspired by Temporal's Activity Task and Elsa's Bookmark pattern.
|
|
2283
2174
|
*/
|
|
2284
2175
|
private createTaskFromActivity;
|
|
2176
|
+
/**
|
|
2177
|
+
* Save workflow instance to entity service for entity-based access.
|
|
2178
|
+
*/
|
|
2179
|
+
private saveInstanceToEntityService;
|
|
2180
|
+
/**
|
|
2181
|
+
* Update workflow instance in entity service.
|
|
2182
|
+
* Uses upsert pattern: try update first, if fails then insert.
|
|
2183
|
+
*/
|
|
2184
|
+
private updateInstanceInEntityService;
|
|
2285
2185
|
/**
|
|
2286
2186
|
* Execute backend activities locally using CommandBus.
|
|
2287
2187
|
*
|
|
@@ -2380,10 +2280,10 @@ declare class CheckPermissionActivity implements AXPCommand<CheckPermissionInput
|
|
|
2380
2280
|
output: CheckPermissionOutput;
|
|
2381
2281
|
outcomes: Record<string, any>;
|
|
2382
2282
|
}> {
|
|
2383
|
-
execute(input: CheckPermissionInput): Promise<{
|
|
2283
|
+
execute(input: CheckPermissionInput): Promise<AXPExecuteCommandResult<{
|
|
2384
2284
|
output: CheckPermissionOutput;
|
|
2385
2285
|
outcomes: Record<string, any>;
|
|
2386
|
-
}
|
|
2286
|
+
}>>;
|
|
2387
2287
|
static ɵfac: i0.ɵɵFactoryDeclaration<CheckPermissionActivity, never>;
|
|
2388
2288
|
static ɵprov: i0.ɵɵInjectableDeclaration<CheckPermissionActivity>;
|
|
2389
2289
|
}
|
|
@@ -2439,10 +2339,10 @@ declare class ExecuteQueryActivity implements AXPCommand<ExecuteQueryInput, {
|
|
|
2439
2339
|
outcomes: Record<string, any>;
|
|
2440
2340
|
}> {
|
|
2441
2341
|
private readonly storageService;
|
|
2442
|
-
execute(input: ExecuteQueryInput): Promise<{
|
|
2342
|
+
execute(input: ExecuteQueryInput): Promise<AXPExecuteCommandResult<{
|
|
2443
2343
|
output: ExecuteQueryOutput;
|
|
2444
2344
|
outcomes: Record<string, any>;
|
|
2445
|
-
}
|
|
2345
|
+
}>>;
|
|
2446
2346
|
/**
|
|
2447
2347
|
* Routes query to appropriate handler based on queryKey.
|
|
2448
2348
|
*/
|
|
@@ -2511,10 +2411,10 @@ declare class ExecuteCommandActivity implements AXPCommand<ExecuteCommandInput,
|
|
|
2511
2411
|
outcomes: Record<string, any>;
|
|
2512
2412
|
}> {
|
|
2513
2413
|
private readonly storageService;
|
|
2514
|
-
execute(input: ExecuteCommandInput): Promise<{
|
|
2414
|
+
execute(input: ExecuteCommandInput): Promise<AXPExecuteCommandResult<{
|
|
2515
2415
|
output: ExecuteCommandOutput;
|
|
2516
2416
|
outcomes: Record<string, any>;
|
|
2517
|
-
}
|
|
2417
|
+
}>>;
|
|
2518
2418
|
/**
|
|
2519
2419
|
* Routes command to appropriate handler based on commandKey.
|
|
2520
2420
|
*/
|
|
@@ -2549,28 +2449,40 @@ declare class ExecuteCommandActivity implements AXPCommand<ExecuteCommandInput,
|
|
|
2549
2449
|
*/
|
|
2550
2450
|
declare function provideWorkflowActivities(): i0.EnvironmentProviders;
|
|
2551
2451
|
|
|
2552
|
-
declare
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
declare
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
declare const
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
declare const
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2452
|
+
declare const titleInterface: AXPWidgetNode;
|
|
2453
|
+
declare const descriptionInterface: AXPWidgetNode;
|
|
2454
|
+
declare const versionInterface: AXPWidgetNode;
|
|
2455
|
+
declare const dateInterface: AXPWidgetNode;
|
|
2456
|
+
declare const dateTimeInterface: AXPWidgetNode;
|
|
2457
|
+
declare const numberInterface: AXPWidgetNode;
|
|
2458
|
+
declare const selectInterface: AXPWidgetNode;
|
|
2459
|
+
declare const checkboxInterface: AXPWidgetNode;
|
|
2460
|
+
declare const toggleInterface: AXPWidgetNode;
|
|
2461
|
+
declare const richTextInterface: AXPWidgetNode;
|
|
2462
|
+
declare const emailInterface: AXPWidgetNode;
|
|
2463
|
+
declare const urlInterface: AXPWidgetNode;
|
|
2464
|
+
declare const passwordInterface: AXPWidgetNode;
|
|
2465
|
+
declare const phoneInterface: AXPWidgetNode;
|
|
2466
|
+
declare const colorInterface: AXPWidgetNode;
|
|
2467
|
+
declare const tagInterface: AXPWidgetNode;
|
|
2468
|
+
declare const textInterface: AXPWidgetNode;
|
|
2469
|
+
declare const textAreaInterface: AXPWidgetNode;
|
|
2470
|
+
declare const fileUploaderInterface: AXPWidgetNode;
|
|
2471
|
+
declare const lookupInterface: AXPWidgetNode;
|
|
2472
|
+
declare const selectionListInterface: AXPWidgetNode;
|
|
2473
|
+
declare const contactInterface: AXPWidgetNode;
|
|
2474
|
+
declare const mapInterface: AXPWidgetNode;
|
|
2475
|
+
declare const signatureInterface: AXPWidgetNode;
|
|
2476
|
+
declare const qrcodeInterface: AXPWidgetNode;
|
|
2477
|
+
declare const avatarInterface: AXPWidgetNode;
|
|
2478
|
+
declare const imageInterface: AXPWidgetNode;
|
|
2479
|
+
declare const timeDurationInterface: AXPWidgetNode;
|
|
2480
|
+
declare const ratingInterface: AXPWidgetNode;
|
|
2481
|
+
declare const scaleInterface: AXPWidgetNode;
|
|
2482
|
+
declare const yesNoInterface: AXPWidgetNode;
|
|
2483
|
+
declare const multipleChoiceInterface: AXPWidgetNode;
|
|
2484
|
+
declare const multipleSelectInterface: AXPWidgetNode;
|
|
2485
|
+
declare const longTextAnswerInterface: AXPWidgetNode;
|
|
2574
2486
|
|
|
2575
2487
|
interface AXPRuleRow extends AXPIdentifierRule {
|
|
2576
2488
|
}
|
|
@@ -2651,6 +2563,17 @@ declare class AXPMockIdentifierService extends AXPIdentifierService {
|
|
|
2651
2563
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXPMockIdentifierService>;
|
|
2652
2564
|
}
|
|
2653
2565
|
|
|
2566
|
+
/**
|
|
2567
|
+
* Middleware that automatically tracks audit information for entity operations.
|
|
2568
|
+
*
|
|
2569
|
+
* Tracks:
|
|
2570
|
+
* - CREATE: Sets created and updated timestamps with user info, initializes stateInfo and ownershipInfo
|
|
2571
|
+
* - UPDATE: Updates the updated timestamp with current user info
|
|
2572
|
+
* - DELETE: Records deleted timestamp with user info (useful for soft delete or history tracking)
|
|
2573
|
+
*
|
|
2574
|
+
* The audit info follows the AXPAuditInfo interface with created, updated, and deleted events.
|
|
2575
|
+
* Ownership info includes tenantId and applicationId from the current session.
|
|
2576
|
+
*/
|
|
2654
2577
|
declare const auditLoggerMiddleware: AXPEntityStorageMiddleware;
|
|
2655
2578
|
|
|
2656
2579
|
declare const childCountMiddleware: AXPEntityStorageMiddleware;
|
|
@@ -2669,7 +2592,7 @@ declare const childCountMiddleware: AXPEntityStorageMiddleware;
|
|
|
2669
2592
|
* - Converts file IDs back to AXPFileListItem objects for UI display
|
|
2670
2593
|
*
|
|
2671
2594
|
* File Status Handling:
|
|
2672
|
-
* - 'uploaded'/'remote': Keep existing file ID
|
|
2595
|
+
* - 'uploaded'/'remote'/'editing': Keep existing file ID
|
|
2673
2596
|
* - 'deleted': Remove from storage, exclude from entity
|
|
2674
2597
|
* - 'attached'/'uploading': Upload new file
|
|
2675
2598
|
*/
|
|
@@ -2680,29 +2603,25 @@ declare const identifierCommitMiddleware: AXPEntityStorageMiddleware;
|
|
|
2680
2603
|
/**
|
|
2681
2604
|
* Lookup Resolver Middleware
|
|
2682
2605
|
*
|
|
2683
|
-
*
|
|
2606
|
+
* Resolves lookup field IDs to full objects based on entity property definitions or naming conventions.
|
|
2684
2607
|
*
|
|
2685
2608
|
* Behavior:
|
|
2686
2609
|
* - Runs on 'create' and 'update' operations
|
|
2687
|
-
* - Finds fields ending with 'Id'
|
|
2610
|
+
* - Finds fields ending with 'Id'/'Ids' (case-insensitive)
|
|
2688
2611
|
* - Resolves IDs to full objects from corresponding entity
|
|
2689
|
-
* -
|
|
2612
|
+
* - Skips fields that are already resolved or have explicit entity config failures
|
|
2690
2613
|
*
|
|
2691
2614
|
* Resolution Strategy (in order):
|
|
2692
|
-
* 1. Check entity property definition for LookupBox with entity option
|
|
2693
|
-
* 2.
|
|
2694
|
-
* 3. Use current module name (ModuleName.assign)
|
|
2695
|
-
* 4. Try name variants with common modules
|
|
2615
|
+
* 1. Check entity property definition for LookupBox with entity option (preferred)
|
|
2616
|
+
* 2. Use naming conventions: dotted path (X.assignId -> X.assign) or module fallback (ModuleName.entityName)
|
|
2696
2617
|
*
|
|
2697
2618
|
* Naming Convention:
|
|
2698
2619
|
* - testId -> creates 'test' object with full record
|
|
2699
2620
|
* - testIds -> creates 'testList' array with full records
|
|
2700
|
-
* - documentId -> creates 'document' object with full record
|
|
2701
|
-
* - categoryIds -> creates 'categoryList' array with full records
|
|
2702
2621
|
*
|
|
2703
2622
|
* Example:
|
|
2704
|
-
* Input: {
|
|
2705
|
-
* Result: {
|
|
2623
|
+
* Input: { brandId: "123" } with lookup to product-catalog.brand
|
|
2624
|
+
* Result: { brand: { id: "123", title: "Brand Name", ... } }
|
|
2706
2625
|
*/
|
|
2707
2626
|
declare const lookupResolverMiddleware: AXPEntityStorageMiddleware;
|
|
2708
2627
|
|
|
@@ -2745,7 +2664,112 @@ declare const signatureLoaderMiddleware: AXPEntityStorageMiddleware;
|
|
|
2745
2664
|
*/
|
|
2746
2665
|
declare const lockGuardMiddleware: AXPEntityStorageMiddleware;
|
|
2747
2666
|
|
|
2667
|
+
/**
|
|
2668
|
+
* Group Order Item Calculator Middleware
|
|
2669
|
+
*
|
|
2670
|
+
* Calculates quantityInOrder and quantityAvailable for group order items.
|
|
2671
|
+
* Also calculates total based on price, quantityInOrder, and GST (1.15).
|
|
2672
|
+
*
|
|
2673
|
+
* quantityInOrder = sum of all member order line quantities for this item
|
|
2674
|
+
* quantityAvailable = size - quantityInOrder
|
|
2675
|
+
* total = price * quantityInOrder * 1.15 (GST)
|
|
2676
|
+
*
|
|
2677
|
+
* Runs on:
|
|
2678
|
+
* - GroupOrderItem create/update: Calculate for the item itself
|
|
2679
|
+
* - MemberOrderLine create/update/delete: Recalculate the related group order item
|
|
2680
|
+
*/
|
|
2681
|
+
declare const groupOrderItemCalculatorMiddleware: AXPEntityStorageMiddleware;
|
|
2682
|
+
|
|
2683
|
+
/**
|
|
2684
|
+
* Key used in request params to bypass visibility filtering (isHidden flag).
|
|
2685
|
+
* Similar to ABP Framework's filter disabling mechanism.
|
|
2686
|
+
*
|
|
2687
|
+
* Usage:
|
|
2688
|
+
* ```typescript
|
|
2689
|
+
* await storageService.query(entityName, {
|
|
2690
|
+
* ...request,
|
|
2691
|
+
* params: { [VISIBILITY_FILTER_BYPASS]: 'true' }
|
|
2692
|
+
* });
|
|
2693
|
+
* ```
|
|
2694
|
+
*/
|
|
2695
|
+
declare const VISIBILITY_FILTER_BYPASS = "__bypassVisibilityFilter";
|
|
2696
|
+
/**
|
|
2697
|
+
* Key used in request params to bypass ownership filtering (tenantId/applicationId).
|
|
2698
|
+
* Similar to ABP Framework's filter disabling mechanism.
|
|
2699
|
+
*
|
|
2700
|
+
* Usage:
|
|
2701
|
+
* ```typescript
|
|
2702
|
+
* await storageService.query(entityName, {
|
|
2703
|
+
* ...request,
|
|
2704
|
+
* params: { [OWNERSHIP_FILTER_BYPASS]: 'true' }
|
|
2705
|
+
* });
|
|
2706
|
+
* ```
|
|
2707
|
+
*/
|
|
2708
|
+
declare const OWNERSHIP_FILTER_BYPASS = "__bypassOwnershipFilter";
|
|
2709
|
+
/**
|
|
2710
|
+
* Middleware that automatically filters out records with `isSystem` or `isHidden` flags
|
|
2711
|
+
* from query and getAll operations.
|
|
2712
|
+
*
|
|
2713
|
+
* This ensures that:
|
|
2714
|
+
* - System records (isSystem: true) are hidden from regular users
|
|
2715
|
+
* - Hidden records (isHidden: true) are not visible in lists
|
|
2716
|
+
* - Records are filtered by current tenant and application context
|
|
2717
|
+
* - Single record lookups (getOne) still work for direct access
|
|
2718
|
+
* - Filtering can be bypassed using VISIBILITY_FILTER_BYPASS or OWNERSHIP_FILTER_BYPASS in request params
|
|
2719
|
+
*
|
|
2720
|
+
* Bypass options:
|
|
2721
|
+
* - VISIBILITY_FILTER_BYPASS: Bypasses isHidden filtering only
|
|
2722
|
+
* - OWNERSHIP_FILTER_BYPASS: Bypasses tenantId/applicationId filtering only
|
|
2723
|
+
* - Both: Bypasses all filtering
|
|
2724
|
+
*
|
|
2725
|
+
* Note: This is applied AFTER the data is fetched from storage.
|
|
2726
|
+
*/
|
|
2727
|
+
declare const visibilityFilterMiddleware: AXPEntityStorageMiddleware;
|
|
2728
|
+
|
|
2729
|
+
/**
|
|
2730
|
+
* Helper function to create a query request that bypasses visibility filtering (isHidden flag).
|
|
2731
|
+
* Similar to ABP Framework's filter disabling pattern.
|
|
2732
|
+
*
|
|
2733
|
+
* @example
|
|
2734
|
+
* ```typescript
|
|
2735
|
+
* // Bypass visibility filter for authentication
|
|
2736
|
+
* const users = await storageService.query(
|
|
2737
|
+
* entityName,
|
|
2738
|
+
* bypassVisibilityFilter({ skip: 0, take: 1000 })
|
|
2739
|
+
* );
|
|
2740
|
+
* ```
|
|
2741
|
+
*/
|
|
2742
|
+
declare function bypassVisibilityFilter<T extends AXPQueryRequest>(request: T): T;
|
|
2743
|
+
/**
|
|
2744
|
+
* Helper function to create a query request that bypasses ownership filtering (tenantId/applicationId).
|
|
2745
|
+
* Similar to ABP Framework's filter disabling pattern.
|
|
2746
|
+
*
|
|
2747
|
+
* @example
|
|
2748
|
+
* ```typescript
|
|
2749
|
+
* // Bypass ownership filter to query across tenants/applications
|
|
2750
|
+
* const records = await storageService.query(
|
|
2751
|
+
* entityName,
|
|
2752
|
+
* bypassOwnershipFilter({ skip: 0, take: 1000 })
|
|
2753
|
+
* );
|
|
2754
|
+
* ```
|
|
2755
|
+
*/
|
|
2756
|
+
declare function bypassOwnershipFilter<T extends AXPQueryRequest>(request: T): T;
|
|
2757
|
+
/**
|
|
2758
|
+
* Helper function to create a query request that bypasses both visibility and ownership filtering.
|
|
2759
|
+
* Similar to ABP Framework's filter disabling pattern.
|
|
2760
|
+
*
|
|
2761
|
+
* @example
|
|
2762
|
+
* ```typescript
|
|
2763
|
+
* // Bypass all filters for system operations
|
|
2764
|
+
* const records = await storageService.query(
|
|
2765
|
+
* entityName,
|
|
2766
|
+
* bypassAllFilters({ skip: 0, take: 1000 })
|
|
2767
|
+
* );
|
|
2768
|
+
* ```
|
|
2769
|
+
*/
|
|
2770
|
+
declare function bypassAllFilters<T extends AXPQueryRequest>(request: T): T;
|
|
2771
|
+
|
|
2748
2772
|
declare const AXCMockEntityLogListener: AXPDistributedEventListenerProvider<any>;
|
|
2749
2773
|
|
|
2750
|
-
export { APPLICATIONS, AXCAppTermDataSeeder, AXCAppVersionDataSeeder, AXCApplicationDataSeeder, AXCApplicationManagementMockModule, AXCAssessmentManagementMockModule, AXCAuthMockModule, AXCCalendarDataSeeder, AXCCalendarEventDataSeeder, AXCCalendarManagementMockModule, AXCCommonMockModule, AXCContactManagementMockModule, AXCContentManagementMockModule, AXCConversationMockModule, AXCCustomerManagementMockModule, AXCDashboardManagementMockModule, AXCDataManagementMockModule, AXCDexieEntityStorageService, AXCDocumentManagementMockModule, AXCEditionDataSeeder,
|
|
2751
|
-
export type { AXCBusinessUnitMockDto,
|
|
2774
|
+
export { APPLICATIONS, AXCAppTermDataSeeder, AXCAppVersionDataSeeder, AXCApplicationDataSeeder, AXCApplicationManagementMockModule, AXCAssessmentManagementMockModule, AXCAssetManagementMockModule, AXCAuthMockModule, AXCCalendarDataSeeder, AXCCalendarEventDataSeeder, AXCCalendarManagementMockModule, AXCCommonMockModule, AXCContactManagementMockModule, AXCContentManagementMockModule, AXCConversationMockModule, AXCCustomerManagementMockModule, AXCDashboardManagementMockModule, AXCDataManagementMockModule, AXCDexieEntityStorageService, AXCDocumentManagementMockModule, AXCEditionDataSeeder, AXCFileStorageService, AXCFinancialCoreMockModule, AXCFormTemplateManagementMockModule, AXCGoogleStrategyMock, AXCHelpDeskMockModule, AXCHumanCapitalManagementMockModule, AXCIdentifierManagementMockModule, AXCJsaSeeder, AXCLearningManagementMockModule, AXCLocaleManagementMockModule, AXCLocationManagementMockModule, AXCLockService, AXCMeasurementCoreMockModule, AXCMeetingManagementMockModule, AXCMetaDataDefinitionDataSeeder, AXCMetadataCategorySeeder, AXCMiddlewaresModule, AXCMockEntityLogListener, AXCMockModule, AXCNotificationManagementMockModule, AXCOrderManagementMockModule, AXCOrganizationManagementMockModule, AXCPersonManagementMockModule, AXCPlatformManagementMockModule, AXCProcurementManagementMockModule, AXCProductCatalogMockModule, AXCProjectManagementMockModule, AXCQueryCategoryMetadataInheritanceQuery, AXCReportManagementMockModule, AXCSecurityManagementMockModule, AXCSubscriptionManagementMockModule, AXCSupplierManagementMockModule, AXCTaskManagementMockModule, AXCTenantManagementMockModule, AXCTenantSeeder, AXCTokensDataSeeder, AXCUserPassStrategyMock, AXCVersionDB, AXCVersioningService, AXCWorkflowDefinitionDataSeeder, AXCWorkflowExecutionDB, AXCWorkflowExecutionService, AXCWorkflowManagementMockModule, AXMAiResponderService, AXMAssessmentCaseDataSeeder, AXMAssessmentSessionDataSeeder, AXMBusinessUnitDataSeeder, AXMCalendarEventTypeSeeder, AXMEmployeeDataSeeder, AXMEmploymentTypeDataSeeder, AXMFormDataSourcesProvider, AXMJobDefinitionDataSeeder, AXMJobLevelDataSeeder, AXMLeaveRequestDataSeeder, AXMMeetingDataSeeder, AXMMeetingFilesDataSeeder, AXMMeetingParticipantDataSeeder, AXMMeetingRoleTypeDataSeeder, AXMMeetingSessionDataSeeder, AXMMeetingTypeDataSeeder, AXMMeetingTypeFileTemplateDataSeeder, AXMPositionAssignmentDataSeeder, AXMPositionDataSeeder, AXMQuestionBankItemCategoryDataSeeder, AXMQuestionBankItemDataSeeder, AXMQuestionnaireCategoryDataSeeder, AXMQuestionnaireDataSeeder, AXMReportCategoryDataSeeder, AXMReportDefinitionDataSeeder, AXMReportExecuteCommand, AXMResponsibilityDataSeeder, AXMTagDataSeeder, AXMTeamDataSeeder, AXPDashboardDataSeeder, AXPIdentifierDB, AXPMessageDataSeeder, AXPMockChecksumProvider, AXPMockClockProvider, AXPMockIdentifierService, AXPMockLookupProvider, AXPMockPolicyProvider, AXPMockSequenceProvider, AXPRoomDataSeeder, AXPSecurityManagementRoleDataSeeder, AXPSecurityManagementUserDataSeeder, AXPTaskBoardPlatformManagementTaskProvider, AXPTaskBoardProjectManagementTaskProvider, AXVChangeType, BUSINESS_UNITS_MOCK, COSTMANAGER_ENTERPRISE, COSTMANAGER_PROFESSIONAL, COSTMANAGER_STANDARD, CRM_ENTERPRISE, CheckPermissionActivity, DASHBOARDS, EDITIONS, EMPLOYEES_MOCK, EMPLOYMENT_TYPES_MOCK, ExecuteCommandActivity, ExecuteQueryActivity, FINANCE_BASIC, FINANCE_ENTERPRISE, FINANCE_PRO, HR_ENTERPRISE, JOB_DEFINITIONS_CATEGORY_MOCK, JOB_DEFINITIONS_MOCK, JOB_LEVELS_MOCK, LASER_PLUMBING_TENANT_ID, LEAVE_REQUESTS_MOCK, MockModuleAccessControlService, ORDERING_BASIC, ORDERING_ENTERPRISE, ORDERING_STANDARD, OWNERSHIP_FILTER_BYPASS, PLATFORM_CONSOLE, PLATFORM_TENANT_ID, POSITIONS_CATEGORY_MOCK, POSITIONS_MOCK, POSITION_ASSIGNMENTS_MOCK, QUESTIONNAIRE_CATEGORY_MOCK, QUESTION_BANK_ITEM_CATEGORY_MOCK, RESPONSIBILITIES_CATEGORY_MOCK, RESPONSIBILITIES_MOCK, SAFETYMINDER_BASIC, SAFETYMINDER_ENTERPRISE, SAFETYMINDER_PROFESSIONAL, SHOP_BASIC, SHOP_ENTERPRISE, SHOP_PRO, TAGS_MOCK, TASKS, TASK_STATUSES, TASK_TEMPLATES, TASK_TYPES, TEAMS_MOCK, TIMEPLICITY_TENANT_ID, TOKENS, VISIBILITY_FILTER_BYPASS, assessmentCaseMock, assessmentSessionMock, auditLoggerMiddleware, avatarInterface, axVersionDB, axWorkflowExecutionDB, bypassAllFilters, bypassOwnershipFilter, bypassVisibilityFilter, calendarEventMock, calendarEventTypeMockData, calendarMock, checkboxInterface, childCountMiddleware, colorInterface, computeDiff, contactInterface, createAndSaveDashboardForUser, createDashboardForUser, createFileCastMiddleware, dateInterface, dateTimeInterface, descriptionInterface, emailInterface, fileUploaderInterface, findContactMethod, findEmployeeById, findPersonById, generateUserDashboard, groupOrderItemCalculatorMiddleware, historyLoggerMiddleware, identifierCommitMiddleware, imageInterface, lockGuardMiddleware, longTextAnswerInterface, lookupInterface, lookupResolverMiddleware, mapInterface, meetingFilesMock, meetingIds, meetingMock, meetingParticipantMock, meetingRoleTypeMock, meetingSessionMock, meetingTimeSlotMock, meetingTypeFileTemplateMock, meetingTypeMock, mergeDetailRelationMiddleware, metadataCategoryMocks, mockRoleDefinitions, mockUsers, multipleChoiceInterface, multipleSelectInterface, normalizeAnyFileArrayForView, normalizeSnapshotFileFieldsForView, numberInterface, participantIds, passwordInterface, phoneInterface, primaryMiddleware, provideWorkflowActivities, qrcodeInterface, questionBankItemMock, questionnaireMock, ratingInterface, richTextInterface, scaleInterface, selectInterface, selectionListInterface, signatureInterface, signatureLoaderMiddleware, tagInterface, tenantMocks, textAreaInterface, textInterface, timeDurationInterface, titleInterface, toUiRows, toggleInterface, urlInterface, versionInterface, visibilityFilterMiddleware, workflowDefinitionEntityMock, workflowDefinitionIds, workflowDefinitionMock, yesNoInterface };
|
|
2775
|
+
export type { AXCBusinessUnitMockDto, AXCLeaveRequestMockDto, AXCPositionAssignmentMockDto, AXCTeamMockDto, AXMTag, AXPLogRow, AXPRuleRow, AXPSeqRow, AXPVersionChange, AXPVersionEntry, AXPVersionStream, CanonicalChange, CanonicalChangeOp, CategoryMetadataInheritanceGroupResult, CategoryMetadataInheritanceQueryParams, CategoryMetadataInheritanceResult, CheckPermissionInput, CheckPermissionOutput, ExecuteCommandInput, ExecuteCommandOutput, ExecuteQueryInput, ExecuteQueryOutput, JobDefinitionMockDto, JobLevelMockDto, MockUserPassCredentials, PersonMockData, PositionMockDto, QuestionBankItemMockDto, QuestionnaireMockDto, ResponsibilityMockDto, Task, TaskStatus, TaskTemplate, TaskType, UIDiffRow, VersionedFileInfo };
|