@acorex/connectivity 20.6.7 → 20.7.2
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 +6 -65
- package/fesm2022/{acorex-connectivity-api-execute.command-CQt_HF1B.mjs → acorex-connectivity-api-execute.command-Di850KiF.mjs} +7 -7
- package/fesm2022/acorex-connectivity-api-execute.command-Di850KiF.mjs.map +1 -0
- package/fesm2022/acorex-connectivity-api.mjs +128 -206
- package/fesm2022/acorex-connectivity-api.mjs.map +1 -1
- package/fesm2022/{acorex-connectivity-mock-category-with-items.query-Dsxj98tX.mjs → acorex-connectivity-mock-category-with-items.query-KB7GIYeb.mjs} +4 -4
- package/fesm2022/{acorex-connectivity-mock-category-with-items.query-Dsxj98tX.mjs.map → acorex-connectivity-mock-category-with-items.query-KB7GIYeb.mjs.map} +1 -1
- package/fesm2022/acorex-connectivity-mock-complete-signature-process.command-CHci1rOa.mjs +80 -0
- package/fesm2022/acorex-connectivity-mock-complete-signature-process.command-CHci1rOa.mjs.map +1 -0
- package/fesm2022/{acorex-connectivity-mock-distribution-record.command-DRiDwlqN.mjs → acorex-connectivity-mock-distribution-record.command-DMoZvago.mjs} +4 -4
- package/fesm2022/{acorex-connectivity-mock-distribution-record.command-DRiDwlqN.mjs.map → acorex-connectivity-mock-distribution-record.command-DMoZvago.mjs.map} +1 -1
- package/fesm2022/acorex-connectivity-mock-get-application-versions-chart-data.query-B1TrIBvU.mjs +115 -0
- package/fesm2022/acorex-connectivity-mock-get-application-versions-chart-data.query-B1TrIBvU.mjs.map +1 -0
- package/fesm2022/acorex-connectivity-mock-get-application-versions-timeline.query-CvNjA4OH.mjs +163 -0
- package/fesm2022/acorex-connectivity-mock-get-application-versions-timeline.query-CvNjA4OH.mjs.map +1 -0
- package/fesm2022/acorex-connectivity-mock-get-product-chart-data.query-C7v7D4ep.mjs +186 -0
- package/fesm2022/acorex-connectivity-mock-get-product-chart-data.query-C7v7D4ep.mjs.map +1 -0
- package/fesm2022/acorex-connectivity-mock-get-product-list.query-DTj8RYwR.mjs +246 -0
- package/fesm2022/acorex-connectivity-mock-get-product-list.query-DTj8RYwR.mjs.map +1 -0
- package/fesm2022/acorex-connectivity-mock-get-product-pdf-data.query-DdLhRbP5.mjs +192 -0
- package/fesm2022/acorex-connectivity-mock-get-product-pdf-data.query-DdLhRbP5.mjs.map +1 -0
- package/fesm2022/acorex-connectivity-mock-get-subscriptions-chart-data.query-ybmzmVl5.mjs +56 -0
- package/fesm2022/acorex-connectivity-mock-get-subscriptions-chart-data.query-ybmzmVl5.mjs.map +1 -0
- package/fesm2022/acorex-connectivity-mock-get-subscriptions-timeline.query-kciEUx7d.mjs +246 -0
- package/fesm2022/acorex-connectivity-mock-get-subscriptions-timeline.query-kciEUx7d.mjs.map +1 -0
- package/fesm2022/acorex-connectivity-mock-get-tenant-application-access.query-BDfrwf5Z.mjs +258 -0
- package/fesm2022/acorex-connectivity-mock-get-tenant-application-access.query-BDfrwf5Z.mjs.map +1 -0
- package/fesm2022/acorex-connectivity-mock-get-tenant-registration-chart-data.query-BD4T2loB.mjs +56 -0
- package/fesm2022/acorex-connectivity-mock-get-tenant-registration-chart-data.query-BD4T2loB.mjs.map +1 -0
- package/fesm2022/acorex-connectivity-mock-get-tenant-registration-timeline.query-CMJ8W3Ns.mjs +294 -0
- package/fesm2022/acorex-connectivity-mock-get-tenant-registration-timeline.query-CMJ8W3Ns.mjs.map +1 -0
- package/fesm2022/acorex-connectivity-mock-get-tenant-user-distribution.query-C-gCUjbX.mjs +212 -0
- package/fesm2022/acorex-connectivity-mock-get-tenant-user-distribution.query-C-gCUjbX.mjs.map +1 -0
- package/fesm2022/acorex-connectivity-mock-notify-signers.command-DLMsWjWQ.mjs +69 -0
- package/fesm2022/acorex-connectivity-mock-notify-signers.command-DLMsWjWQ.mjs.map +1 -0
- package/fesm2022/acorex-connectivity-mock-request-signature.command-JNkj9-Yz.mjs +72 -0
- package/fesm2022/acorex-connectivity-mock-request-signature.command-JNkj9-Yz.mjs.map +1 -0
- package/fesm2022/{acorex-connectivity-mock-sample.command-CkH5bmEs.mjs → acorex-connectivity-mock-sample.command-CyrjdvEA.mjs} +4 -4
- package/fesm2022/{acorex-connectivity-mock-sample.command-CkH5bmEs.mjs.map → acorex-connectivity-mock-sample.command-CyrjdvEA.mjs.map} +1 -1
- package/fesm2022/acorex-connectivity-mock-validate-all-signatures.command-xKr94NrA.mjs +81 -0
- package/fesm2022/acorex-connectivity-mock-validate-all-signatures.command-xKr94NrA.mjs.map +1 -0
- package/fesm2022/acorex-connectivity-mock.mjs +47814 -44402
- package/fesm2022/acorex-connectivity-mock.mjs.map +1 -1
- package/fesm2022/acorex-connectivity-utils.mjs +7 -7
- package/fesm2022/acorex-connectivity-utils.mjs.map +1 -1
- package/mock/index.d.ts +847 -1855
- package/package.json +2 -2
- package/fesm2022/acorex-connectivity-api-execute.command-CQt_HF1B.mjs.map +0 -1
package/mock/index.d.ts
CHANGED
|
@@ -1,28 +1,27 @@
|
|
|
1
|
-
import * as _acorex_platform_core from '@acorex/platform/core';
|
|
2
1
|
import { AXPAppStartUpService, AXPQueryRequest, AXPPagedListResult, AXPCategorizedEntityDto, AXPCategoryEntity, AXPExecuteCommand, AXPExecuteCommandResult, AXPActionMenuItem, AXPDataSourceDefinitionProvider, AXPDataSourceDefinition, AXPFileListItem, AXPDistributedEventListenerProvider } from '@acorex/platform/core';
|
|
3
2
|
import * as i0 from '@angular/core';
|
|
4
3
|
import { Injector, Type } from '@angular/core';
|
|
5
4
|
import * as _acorex_platform_auth from '@acorex/platform/auth';
|
|
6
|
-
import { AXPBaseCredentials, AXPAuthStrategy, AXPSignInResult, AXPSessionContext, AXPLoginChallengeProvider, AXPChallengeCheckResult, AXPLoginChallengeData, AXPLoginChallengeComponentBase
|
|
5
|
+
import { AXPBaseCredentials, AXPAuthStrategy, AXPSignInResult, AXPSessionContext, AXPLoginChallengeProvider, AXPChallengeCheckResult, AXPLoginChallengeData, AXPLoginChallengeComponentBase } from '@acorex/platform/auth';
|
|
7
6
|
import * as i1 from '@acorex/platform/runtime';
|
|
8
|
-
import { AXPQuery
|
|
7
|
+
import { AXPQuery } from '@acorex/platform/runtime';
|
|
9
8
|
import { Router } from '@angular/router';
|
|
10
9
|
import { AXMAuthConfigs } from '@acorex/modules/auth';
|
|
11
10
|
import { AXPEntityStorageService, AXPDataSeeder, AXPEntityStorageMiddleware } from '@acorex/platform/layout/entity';
|
|
12
11
|
import Dexie, { Table } from 'dexie';
|
|
13
|
-
import { AXMApplicationManagementApplicationEntityModel, AXMApplicationManagementEditionEntityModel
|
|
14
|
-
import
|
|
15
|
-
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';
|
|
16
18
|
import { AXMWorkflowManagementWorkflowDefinitionEntityModel } from '@acorex/modules/workflow-management';
|
|
19
|
+
import { AXPActivityCategory, AXPActivityDefinition, AXPWorkflowCategory, AXPWorkflowCategoryProvider, AXPWorkflowInstance, AXPWorkflowEngine, AXPStartWorkflowRequest, AXPStartWorkflowResponse, AXPResumeWorkflowRequest, AXPResumeWorkflowResponse, AXPGetWorkflowStateRequest, AXPWorkflowInstanceState, AXPFrontActivityCompleteRequest, AXPFrontActivityCompleteResponse, AXPWorkflowDefinition } from '@acorex/platform/workflow';
|
|
17
20
|
import { AXPWorkflowTaskProvider, AXPTaskFilter, AXPTask, AXPExtraField, AXPTaskStatus } from '@acorex/modules/task-management';
|
|
18
21
|
import { AXMCommonDashboardEntityModel } from '@acorex/modules/dashboard-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 { AXMLocationManagementLocationEntityModel } from '@acorex/modules/location-management';
|
|
22
|
-
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';
|
|
23
|
-
import { AXPWorkflowInstance, AXPWorkflowExecutionService, AXPStartWorkflowExecutionRequest, AXPStartWorkflowExecutionResponse, AXPResumeWorkflowExecutionRequest, AXPResumeWorkflowExecutionResponse, AXPGetWorkflowExecutionStateRequest, AXPWorkflowExecutionState, AXPGetWorkflowDefinitionRequest, AXPGetWorkflowDefinitionResponse, AXPWorkflowDefinition } from '@acorex/platform/workflow';
|
|
24
24
|
import { AXPWidgetNode } from '@acorex/platform/layout/widget-core';
|
|
25
|
-
import { AXMSystemInsightAuditLogEntityModel } from '@acorex/modules/system-insight';
|
|
26
25
|
import { AXPIdentifierRule, AXPClockProvider, AXPChecksumProvider, AXPPolicyProvider, AXPLookupProvider, AXPSequenceProvider, AXPIdentifierService, AXPIdentifierRequest, AXPIdentifierResult, AXPIdentifierPeekResult } from '@acorex/modules/identifier-management';
|
|
27
26
|
|
|
28
27
|
declare class AXCCommonMockModule {
|
|
@@ -55,6 +54,30 @@ declare class AXCCustomerManagementMockModule {
|
|
|
55
54
|
static ɵinj: i0.ɵɵInjectorDeclaration<AXCCustomerManagementMockModule>;
|
|
56
55
|
}
|
|
57
56
|
|
|
57
|
+
declare class AXCSupplierManagementMockModule {
|
|
58
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCSupplierManagementMockModule, never>;
|
|
59
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXCSupplierManagementMockModule, never, never, never>;
|
|
60
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AXCSupplierManagementMockModule>;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
declare class AXCProcurementManagementMockModule {
|
|
64
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCProcurementManagementMockModule, never>;
|
|
65
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXCProcurementManagementMockModule, never, never, never>;
|
|
66
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AXCProcurementManagementMockModule>;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
declare class AXCOrderManagementMockModule {
|
|
70
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCOrderManagementMockModule, never>;
|
|
71
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXCOrderManagementMockModule, never, never, never>;
|
|
72
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AXCOrderManagementMockModule>;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
declare class AXCSubscriptionManagementMockModule {
|
|
76
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCSubscriptionManagementMockModule, never>;
|
|
77
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXCSubscriptionManagementMockModule, never, never, never>;
|
|
78
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AXCSubscriptionManagementMockModule>;
|
|
79
|
+
}
|
|
80
|
+
|
|
58
81
|
declare class AXCContactManagementMockModule {
|
|
59
82
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXCContactManagementMockModule, never>;
|
|
60
83
|
static ɵmod: i0.ɵɵNgModuleDeclaration<AXCContactManagementMockModule, never, never, never>;
|
|
@@ -121,6 +144,12 @@ declare class AXCApplicationManagementMockModule {
|
|
|
121
144
|
static ɵinj: i0.ɵɵInjectorDeclaration<AXCApplicationManagementMockModule>;
|
|
122
145
|
}
|
|
123
146
|
|
|
147
|
+
declare class AXCTenantManagementMockModule {
|
|
148
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCTenantManagementMockModule, never>;
|
|
149
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXCTenantManagementMockModule, never, never, never>;
|
|
150
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AXCTenantManagementMockModule>;
|
|
151
|
+
}
|
|
152
|
+
|
|
124
153
|
declare class AXCLearningManagementMockModule {
|
|
125
154
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXCLearningManagementMockModule, never>;
|
|
126
155
|
static ɵmod: i0.ɵɵNgModuleDeclaration<AXCLearningManagementMockModule, never, never, never>;
|
|
@@ -151,12 +180,6 @@ declare class AXCHelpDeskMockModule {
|
|
|
151
180
|
static ɵinj: i0.ɵɵInjectorDeclaration<AXCHelpDeskMockModule>;
|
|
152
181
|
}
|
|
153
182
|
|
|
154
|
-
declare class AXCSystemInsightMockModule {
|
|
155
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXCSystemInsightMockModule, never>;
|
|
156
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AXCSystemInsightMockModule, never, never, never>;
|
|
157
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<AXCSystemInsightMockModule>;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
183
|
declare class AXCCalendarManagementMockModule {
|
|
161
184
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXCCalendarManagementMockModule, never>;
|
|
162
185
|
static ɵmod: i0.ɵɵNgModuleDeclaration<AXCCalendarManagementMockModule, never, never, never>;
|
|
@@ -187,10 +210,10 @@ declare class AXCTaskManagementMockModule {
|
|
|
187
210
|
static ɵinj: i0.ɵɵInjectorDeclaration<AXCTaskManagementMockModule>;
|
|
188
211
|
}
|
|
189
212
|
|
|
190
|
-
declare class
|
|
191
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
192
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<
|
|
193
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<
|
|
213
|
+
declare class AXCPersonManagementMockModule {
|
|
214
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCPersonManagementMockModule, never>;
|
|
215
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXCPersonManagementMockModule, never, never, never>;
|
|
216
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AXCPersonManagementMockModule>;
|
|
194
217
|
}
|
|
195
218
|
|
|
196
219
|
declare class AXCContentManagementMockModule {
|
|
@@ -229,12 +252,24 @@ declare class AXCMeasurementCoreMockModule {
|
|
|
229
252
|
static ɵinj: i0.ɵɵInjectorDeclaration<AXCMeasurementCoreMockModule>;
|
|
230
253
|
}
|
|
231
254
|
|
|
255
|
+
declare class AXCBusinessCoreMockModule {
|
|
256
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCBusinessCoreMockModule, never>;
|
|
257
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXCBusinessCoreMockModule, never, never, never>;
|
|
258
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AXCBusinessCoreMockModule>;
|
|
259
|
+
}
|
|
260
|
+
|
|
232
261
|
declare class AXCProductCatalogMockModule {
|
|
233
262
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXCProductCatalogMockModule, never>;
|
|
234
263
|
static ɵmod: i0.ɵɵNgModuleDeclaration<AXCProductCatalogMockModule, never, never, never>;
|
|
235
264
|
static ɵinj: i0.ɵɵInjectorDeclaration<AXCProductCatalogMockModule>;
|
|
236
265
|
}
|
|
237
266
|
|
|
267
|
+
declare class AXCReservationManagementMockModule {
|
|
268
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCReservationManagementMockModule, never>;
|
|
269
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXCReservationManagementMockModule, never, never, never>;
|
|
270
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AXCReservationManagementMockModule>;
|
|
271
|
+
}
|
|
272
|
+
|
|
238
273
|
declare class AXCMiddlewaresModule {
|
|
239
274
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXCMiddlewaresModule, never>;
|
|
240
275
|
static ɵmod: i0.ɵɵNgModuleDeclaration<AXCMiddlewaresModule, never, never, never>;
|
|
@@ -244,7 +279,7 @@ declare class AXCMiddlewaresModule {
|
|
|
244
279
|
declare class AXCMockModule {
|
|
245
280
|
constructor(appInitService: AXPAppStartUpService, injector: Injector);
|
|
246
281
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXCMockModule, never>;
|
|
247
|
-
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 AXCLearningManagementMockModule, typeof AXCAssetManagementMockModule, typeof AXCProjectManagementMockModule, typeof AXCDocumentManagementMockModule, typeof AXCHelpDeskMockModule, typeof
|
|
282
|
+
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 AXCWorkflowManagementMockModule, typeof AXCNotificationManagementMockModule, typeof AXCTaskManagementMockModule, typeof AXCPersonManagementMockModule, typeof AXCContentManagementMockModule, typeof AXCMeetingManagementMockModule, typeof AXCSettingsManagementMockModule, typeof AXCAssessmentManagementMockModule, typeof AXCFinancialCoreMockModule, typeof AXCMeasurementCoreMockModule, typeof AXCBusinessCoreMockModule, typeof AXCProductCatalogMockModule, typeof AXCReservationManagementMockModule, typeof AXCMiddlewaresModule], never>;
|
|
248
283
|
static ɵinj: i0.ɵɵInjectorDeclaration<AXCMockModule>;
|
|
249
284
|
}
|
|
250
285
|
|
|
@@ -450,6 +485,24 @@ declare class AXCApplicationDataSeeder implements AXPDataSeeder {
|
|
|
450
485
|
}
|
|
451
486
|
|
|
452
487
|
declare const EDITIONS: AXMApplicationManagementEditionEntityModel[];
|
|
488
|
+
declare const SHOP_BASIC: AXMApplicationManagementEditionEntityModel;
|
|
489
|
+
declare const SHOP_PRO: AXMApplicationManagementEditionEntityModel;
|
|
490
|
+
declare const SHOP_ENTERPRISE: AXMApplicationManagementEditionEntityModel;
|
|
491
|
+
declare const FINANCE_BASIC: AXMApplicationManagementEditionEntityModel;
|
|
492
|
+
declare const FINANCE_PRO: AXMApplicationManagementEditionEntityModel;
|
|
493
|
+
declare const FINANCE_ENTERPRISE: AXMApplicationManagementEditionEntityModel;
|
|
494
|
+
declare const ORDERING_BASIC: AXMApplicationManagementEditionEntityModel;
|
|
495
|
+
declare const ORDERING_STANDARD: AXMApplicationManagementEditionEntityModel;
|
|
496
|
+
declare const ORDERING_ENTERPRISE: AXMApplicationManagementEditionEntityModel;
|
|
497
|
+
declare const PLATFORM_CONSOLE: AXMApplicationManagementEditionEntityModel;
|
|
498
|
+
declare const SAFETYMINDER_BASIC: AXMApplicationManagementEditionEntityModel;
|
|
499
|
+
declare const SAFETYMINDER_PROFESSIONAL: AXMApplicationManagementEditionEntityModel;
|
|
500
|
+
declare const SAFETYMINDER_ENTERPRISE: AXMApplicationManagementEditionEntityModel;
|
|
501
|
+
declare const COSTMANAGER_STANDARD: AXMApplicationManagementEditionEntityModel;
|
|
502
|
+
declare const COSTMANAGER_PROFESSIONAL: AXMApplicationManagementEditionEntityModel;
|
|
503
|
+
declare const COSTMANAGER_ENTERPRISE: AXMApplicationManagementEditionEntityModel;
|
|
504
|
+
declare const CRM_ENTERPRISE: AXMApplicationManagementEditionEntityModel;
|
|
505
|
+
declare const HR_ENTERPRISE: AXMApplicationManagementEditionEntityModel;
|
|
453
506
|
|
|
454
507
|
declare class AXCEditionDataSeeder implements AXPDataSeeder {
|
|
455
508
|
private readonly storageService;
|
|
@@ -458,22 +511,19 @@ declare class AXCEditionDataSeeder implements AXPDataSeeder {
|
|
|
458
511
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXCEditionDataSeeder>;
|
|
459
512
|
}
|
|
460
513
|
|
|
461
|
-
declare
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
private readonly storageService;
|
|
514
|
+
declare class AXCAppVersionDataSeeder implements AXPDataSeeder {
|
|
515
|
+
private storageService;
|
|
516
|
+
private appVersionService;
|
|
465
517
|
seed(): Promise<void>;
|
|
466
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
467
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
518
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCAppVersionDataSeeder, never>;
|
|
519
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXCAppVersionDataSeeder>;
|
|
468
520
|
}
|
|
469
521
|
|
|
470
|
-
declare
|
|
471
|
-
|
|
472
|
-
declare class AXCModuleDataSeeder implements AXPDataSeeder {
|
|
473
|
-
private readonly storageService;
|
|
522
|
+
declare class AXCAppTermDataSeeder implements AXPDataSeeder {
|
|
523
|
+
private storageService;
|
|
474
524
|
seed(): Promise<void>;
|
|
475
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
476
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
525
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCAppTermDataSeeder, never>;
|
|
526
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXCAppTermDataSeeder>;
|
|
477
527
|
}
|
|
478
528
|
|
|
479
529
|
interface QuestionBankItemMockDto extends AXPCategorizedEntityDto {
|
|
@@ -503,8 +553,35 @@ interface QuestionnaireMockDto extends AXPCategorizedEntityDto {
|
|
|
503
553
|
title: string;
|
|
504
554
|
description?: string;
|
|
505
555
|
type: 'questionnaire' | 'survey' | 'checklist' | 'test' | 'evaluation';
|
|
506
|
-
|
|
507
|
-
|
|
556
|
+
structure?: {
|
|
557
|
+
sections: Array<{
|
|
558
|
+
id: string;
|
|
559
|
+
title: string;
|
|
560
|
+
description?: string;
|
|
561
|
+
order: number;
|
|
562
|
+
visibilityCondition?: string;
|
|
563
|
+
scoringWeight?: number;
|
|
564
|
+
items: Array<{
|
|
565
|
+
id: string;
|
|
566
|
+
questionBankItemId: string;
|
|
567
|
+
order: number;
|
|
568
|
+
isRequired?: boolean;
|
|
569
|
+
visibilityCondition?: string;
|
|
570
|
+
requiredCondition?: string;
|
|
571
|
+
scoringOverride?: {
|
|
572
|
+
points?: number;
|
|
573
|
+
weight?: number;
|
|
574
|
+
};
|
|
575
|
+
}>;
|
|
576
|
+
}>;
|
|
577
|
+
displaySettings?: {
|
|
578
|
+
viewMode?: 'single-page' | 'page-per-group' | 'page-per-question';
|
|
579
|
+
showProgressBar?: boolean;
|
|
580
|
+
showTimer?: boolean;
|
|
581
|
+
showSectionTitles?: boolean;
|
|
582
|
+
showQuestionNumbers?: boolean;
|
|
583
|
+
};
|
|
584
|
+
};
|
|
508
585
|
scoringType: 'none' | 'cumulative' | 'weighted' | 'formula';
|
|
509
586
|
passingScore?: number;
|
|
510
587
|
scoringFormula?: string;
|
|
@@ -515,7 +592,6 @@ interface QuestionnaireMockDto extends AXPCategorizedEntityDto {
|
|
|
515
592
|
allowBackNavigation: boolean;
|
|
516
593
|
randomizeQuestions: boolean;
|
|
517
594
|
requireAllAnswers: boolean;
|
|
518
|
-
showProgressBar: boolean;
|
|
519
595
|
categoryIds: string[];
|
|
520
596
|
categories: {
|
|
521
597
|
id: string;
|
|
@@ -555,379 +631,303 @@ declare class AXMQuestionnaireDataSeeder implements AXPDataSeeder {
|
|
|
555
631
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXMQuestionnaireDataSeeder>;
|
|
556
632
|
}
|
|
557
633
|
|
|
558
|
-
declare const
|
|
559
|
-
id: string;
|
|
560
|
-
questionnaireId: string;
|
|
561
|
-
questionnaire: {
|
|
562
|
-
id: string;
|
|
563
|
-
title: string;
|
|
564
|
-
type: "test" | "checklist" | "questionnaire" | "survey" | "evaluation";
|
|
565
|
-
};
|
|
566
|
-
title: string;
|
|
567
|
-
description: string;
|
|
568
|
-
mode: string;
|
|
569
|
-
assignedToUserIds: never[];
|
|
570
|
-
assignedToUsers: never[];
|
|
571
|
-
validFrom: Date;
|
|
572
|
-
validTo: Date;
|
|
573
|
-
timerMode: string;
|
|
574
|
-
timeLimit: number;
|
|
575
|
-
allowMultipleSubmissions: boolean;
|
|
576
|
-
showResults: string;
|
|
577
|
-
requireReview: boolean;
|
|
578
|
-
createdAt: Date;
|
|
579
|
-
updatedAt: Date;
|
|
580
|
-
accessCode?: undefined;
|
|
581
|
-
isActive?: undefined;
|
|
582
|
-
} | {
|
|
634
|
+
declare const assessmentCaseMock: {
|
|
583
635
|
id: string;
|
|
584
636
|
questionnaireId: string;
|
|
585
637
|
questionnaire: {
|
|
586
638
|
id: string;
|
|
587
639
|
title: string;
|
|
588
|
-
type: "
|
|
640
|
+
type: "questionnaire" | "survey" | "checklist" | "test" | "evaluation";
|
|
589
641
|
};
|
|
590
642
|
title: string;
|
|
591
643
|
description: string;
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
validFrom: Date;
|
|
595
|
-
validTo: Date;
|
|
596
|
-
timerMode: string;
|
|
597
|
-
timeLimit: number;
|
|
598
|
-
allowMultipleSubmissions: boolean;
|
|
599
|
-
showResults: string;
|
|
600
|
-
requireReview: boolean;
|
|
601
|
-
isActive: boolean;
|
|
602
|
-
createdAt: Date;
|
|
603
|
-
updatedAt: Date;
|
|
604
|
-
assignedToUserIds?: undefined;
|
|
605
|
-
assignedToUsers?: undefined;
|
|
606
|
-
} | {
|
|
607
|
-
id: string;
|
|
608
|
-
questionnaireId: string;
|
|
609
|
-
questionnaire: {
|
|
644
|
+
subjectRef: {
|
|
645
|
+
type: string;
|
|
610
646
|
id: string;
|
|
611
647
|
title: string;
|
|
612
|
-
type: "test" | "checklist" | "questionnaire" | "survey" | "evaluation";
|
|
613
648
|
};
|
|
614
|
-
|
|
615
|
-
description: string;
|
|
616
|
-
mode: string;
|
|
617
|
-
assignedToUserIds: never[];
|
|
618
|
-
assignedToUsers: never[];
|
|
619
|
-
timerMode: string;
|
|
620
|
-
allowMultipleSubmissions: boolean;
|
|
621
|
-
showResults: string;
|
|
622
|
-
requireReview: boolean;
|
|
649
|
+
statusId: string;
|
|
623
650
|
createdAt: Date;
|
|
624
651
|
updatedAt: Date;
|
|
625
|
-
|
|
626
|
-
validTo?: undefined;
|
|
627
|
-
timeLimit?: undefined;
|
|
628
|
-
accessCode?: undefined;
|
|
629
|
-
isActive?: undefined;
|
|
630
|
-
})[];
|
|
652
|
+
}[];
|
|
631
653
|
|
|
632
|
-
declare class
|
|
654
|
+
declare class AXMAssessmentCaseDataSeeder implements AXPDataSeeder {
|
|
633
655
|
private storage;
|
|
634
656
|
seed(): Promise<void>;
|
|
635
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
636
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
657
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXMAssessmentCaseDataSeeder, never>;
|
|
658
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXMAssessmentCaseDataSeeder>;
|
|
637
659
|
}
|
|
638
660
|
|
|
639
|
-
declare const
|
|
661
|
+
declare const assessmentSessionMock: ({
|
|
640
662
|
id: string;
|
|
641
|
-
|
|
642
|
-
|
|
663
|
+
caseId: string;
|
|
664
|
+
case: {
|
|
643
665
|
id: string;
|
|
644
666
|
title: string;
|
|
645
667
|
};
|
|
646
|
-
|
|
647
|
-
|
|
668
|
+
responderId: string;
|
|
669
|
+
responder: {
|
|
648
670
|
id: string;
|
|
649
671
|
displayName: string;
|
|
650
672
|
};
|
|
651
|
-
|
|
673
|
+
role: string;
|
|
674
|
+
statusId: string;
|
|
652
675
|
startedAt: Date;
|
|
676
|
+
lastSavedAt: Date;
|
|
653
677
|
timeSpent: number;
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
}
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
678
|
+
progressPercentage: number;
|
|
679
|
+
answeredQuestionsCount: number;
|
|
680
|
+
answers: {
|
|
681
|
+
'item-1': {
|
|
682
|
+
value: string;
|
|
683
|
+
};
|
|
684
|
+
'item-2': {
|
|
685
|
+
value: number;
|
|
686
|
+
};
|
|
687
|
+
'item-3': {
|
|
688
|
+
value: string;
|
|
689
|
+
};
|
|
690
|
+
'item-4': {
|
|
691
|
+
value: string;
|
|
692
|
+
};
|
|
693
|
+
'item-5': {
|
|
694
|
+
value: string;
|
|
695
|
+
};
|
|
696
|
+
'item-6': {
|
|
697
|
+
value: string;
|
|
698
|
+
};
|
|
699
|
+
'item-7'?: undefined;
|
|
700
|
+
'item-8'?: undefined;
|
|
701
|
+
'item-9'?: undefined;
|
|
702
|
+
'item-10'?: undefined;
|
|
679
703
|
};
|
|
680
|
-
status: string;
|
|
681
|
-
startedAt: Date;
|
|
682
|
-
completedAt: Date;
|
|
683
|
-
submittedAt: Date;
|
|
684
|
-
timeSpent: number;
|
|
685
|
-
currentItemIndex: number;
|
|
686
|
-
completionPercentage: number;
|
|
687
|
-
totalScore: number;
|
|
688
|
-
maxScore: number;
|
|
689
|
-
percentage: number;
|
|
690
|
-
grade: string;
|
|
691
|
-
passed: boolean;
|
|
692
704
|
createdAt: Date;
|
|
693
705
|
updatedAt: Date;
|
|
694
|
-
|
|
695
|
-
reviewedBy?: undefined;
|
|
696
|
-
reviewer?: undefined;
|
|
706
|
+
previousId?: undefined;
|
|
697
707
|
} | {
|
|
698
708
|
id: string;
|
|
699
|
-
|
|
700
|
-
|
|
709
|
+
caseId: string;
|
|
710
|
+
case: {
|
|
701
711
|
id: string;
|
|
702
712
|
title: string;
|
|
703
713
|
};
|
|
704
|
-
|
|
705
|
-
|
|
714
|
+
responderId: string;
|
|
715
|
+
responder: {
|
|
706
716
|
id: string;
|
|
707
717
|
displayName: string;
|
|
708
718
|
};
|
|
709
|
-
|
|
719
|
+
role: string;
|
|
720
|
+
statusId: string;
|
|
710
721
|
startedAt: Date;
|
|
711
|
-
|
|
712
|
-
submittedAt: Date;
|
|
722
|
+
lastSavedAt: Date;
|
|
713
723
|
timeSpent: number;
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
id: string;
|
|
748
|
-
displayName: string;
|
|
724
|
+
progressPercentage: number;
|
|
725
|
+
answeredQuestionsCount: number;
|
|
726
|
+
answers: {
|
|
727
|
+
'item-1': {
|
|
728
|
+
value: string;
|
|
729
|
+
};
|
|
730
|
+
'item-2': {
|
|
731
|
+
value: number;
|
|
732
|
+
};
|
|
733
|
+
'item-3': {
|
|
734
|
+
value: string;
|
|
735
|
+
};
|
|
736
|
+
'item-4': {
|
|
737
|
+
value: string;
|
|
738
|
+
};
|
|
739
|
+
'item-5': {
|
|
740
|
+
value: string;
|
|
741
|
+
};
|
|
742
|
+
'item-6': {
|
|
743
|
+
value: string;
|
|
744
|
+
};
|
|
745
|
+
'item-7': {
|
|
746
|
+
value: string;
|
|
747
|
+
};
|
|
748
|
+
'item-8': {
|
|
749
|
+
value: string;
|
|
750
|
+
};
|
|
751
|
+
'item-9': {
|
|
752
|
+
value: string;
|
|
753
|
+
};
|
|
754
|
+
'item-10': {
|
|
755
|
+
value: string;
|
|
756
|
+
};
|
|
749
757
|
};
|
|
750
|
-
role: string;
|
|
751
|
-
canRespond: boolean;
|
|
752
|
-
canOverride: boolean;
|
|
753
|
-
canReview: boolean;
|
|
754
|
-
canView: boolean;
|
|
755
|
-
joinedAt: Date;
|
|
756
|
-
lastActiveAt: Date;
|
|
757
758
|
createdAt: Date;
|
|
758
759
|
updatedAt: Date;
|
|
760
|
+
previousId?: undefined;
|
|
759
761
|
} | {
|
|
760
762
|
id: string;
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
id: string;
|
|
764
|
-
publicationId: string;
|
|
765
|
-
};
|
|
766
|
-
userId: string;
|
|
767
|
-
user: {
|
|
768
|
-
id: string;
|
|
769
|
-
displayName: string;
|
|
770
|
-
};
|
|
771
|
-
role: string;
|
|
772
|
-
canRespond: boolean;
|
|
773
|
-
canOverride: boolean;
|
|
774
|
-
canReview: boolean;
|
|
775
|
-
canView: boolean;
|
|
776
|
-
joinedAt: Date;
|
|
777
|
-
createdAt: Date;
|
|
778
|
-
updatedAt: Date;
|
|
779
|
-
lastActiveAt?: undefined;
|
|
780
|
-
})[];
|
|
781
|
-
|
|
782
|
-
declare class AXMCollaboratorDataSeeder implements AXPDataSeeder {
|
|
783
|
-
private storage;
|
|
784
|
-
seed(): Promise<void>;
|
|
785
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXMCollaboratorDataSeeder, never>;
|
|
786
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXMCollaboratorDataSeeder>;
|
|
787
|
-
}
|
|
788
|
-
|
|
789
|
-
declare const responseEntryMock: ({
|
|
790
|
-
id: string;
|
|
791
|
-
sessionId: string;
|
|
792
|
-
session: {
|
|
763
|
+
caseId: string;
|
|
764
|
+
case: {
|
|
793
765
|
id: string;
|
|
794
|
-
|
|
766
|
+
title: string;
|
|
795
767
|
};
|
|
796
|
-
questionnaireItemId: string;
|
|
797
768
|
responderId: string;
|
|
798
769
|
responder: {
|
|
799
770
|
id: string;
|
|
800
771
|
displayName: string;
|
|
801
772
|
};
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
};
|
|
808
|
-
isOverridden: boolean;
|
|
809
|
-
score: number;
|
|
810
|
-
maxScore: number;
|
|
811
|
-
isCorrect: boolean;
|
|
812
|
-
answeredAt: Date;
|
|
773
|
+
role: string;
|
|
774
|
+
statusId: string;
|
|
775
|
+
previousId: string;
|
|
776
|
+
startedAt: Date;
|
|
777
|
+
lastSavedAt: Date;
|
|
813
778
|
timeSpent: number;
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
779
|
+
progressPercentage: number;
|
|
780
|
+
answeredQuestionsCount: number;
|
|
781
|
+
answers: {
|
|
782
|
+
'item-1': {
|
|
783
|
+
value: string;
|
|
784
|
+
};
|
|
785
|
+
'item-2': {
|
|
786
|
+
value: number;
|
|
787
|
+
};
|
|
788
|
+
'item-3': {
|
|
789
|
+
value: string;
|
|
790
|
+
};
|
|
791
|
+
'item-4': {
|
|
792
|
+
value: string;
|
|
793
|
+
};
|
|
794
|
+
'item-5': {
|
|
795
|
+
value: string;
|
|
796
|
+
};
|
|
797
|
+
'item-6': {
|
|
798
|
+
value: string;
|
|
799
|
+
};
|
|
800
|
+
'item-7': {
|
|
801
|
+
value: string;
|
|
802
|
+
};
|
|
803
|
+
'item-8': {
|
|
804
|
+
value: string;
|
|
805
|
+
};
|
|
806
|
+
'item-9': {
|
|
807
|
+
value: string;
|
|
808
|
+
};
|
|
809
|
+
'item-10': {
|
|
810
|
+
value: string;
|
|
811
|
+
};
|
|
812
|
+
};
|
|
817
813
|
createdAt: Date;
|
|
818
814
|
updatedAt: Date;
|
|
819
|
-
overriddenBy?: undefined;
|
|
820
|
-
overrider?: undefined;
|
|
821
|
-
overriddenAt?: undefined;
|
|
822
|
-
originalAnswer?: undefined;
|
|
823
|
-
overrideReason?: undefined;
|
|
824
815
|
} | {
|
|
825
816
|
id: string;
|
|
826
|
-
|
|
827
|
-
|
|
817
|
+
caseId: string;
|
|
818
|
+
case: {
|
|
828
819
|
id: string;
|
|
829
|
-
|
|
820
|
+
title: string;
|
|
830
821
|
};
|
|
831
|
-
questionnaireItemId: string;
|
|
832
822
|
responderId: string;
|
|
833
823
|
responder: {
|
|
834
824
|
id: string;
|
|
835
825
|
displayName: string;
|
|
836
826
|
};
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
827
|
+
role: string;
|
|
828
|
+
statusId: string;
|
|
829
|
+
progressPercentage: number;
|
|
830
|
+
answeredQuestionsCount: number;
|
|
831
|
+
answers: {
|
|
832
|
+
'item-1'?: undefined;
|
|
833
|
+
'item-2'?: undefined;
|
|
834
|
+
'item-3'?: undefined;
|
|
835
|
+
'item-4'?: undefined;
|
|
836
|
+
'item-5'?: undefined;
|
|
837
|
+
'item-6'?: undefined;
|
|
838
|
+
'item-7'?: undefined;
|
|
839
|
+
'item-8'?: undefined;
|
|
840
|
+
'item-9'?: undefined;
|
|
841
|
+
'item-10'?: undefined;
|
|
852
842
|
};
|
|
853
|
-
overrideReason: string;
|
|
854
|
-
score: number;
|
|
855
|
-
maxScore: number;
|
|
856
|
-
answeredAt: Date;
|
|
857
|
-
timeSpent: number;
|
|
858
|
-
attemptCount: number;
|
|
859
|
-
skipped: boolean;
|
|
860
|
-
flaggedForReview: boolean;
|
|
861
843
|
createdAt: Date;
|
|
862
844
|
updatedAt: Date;
|
|
863
|
-
|
|
845
|
+
startedAt?: undefined;
|
|
846
|
+
lastSavedAt?: undefined;
|
|
847
|
+
timeSpent?: undefined;
|
|
848
|
+
previousId?: undefined;
|
|
864
849
|
} | {
|
|
865
850
|
id: string;
|
|
866
|
-
|
|
867
|
-
|
|
851
|
+
caseId: string;
|
|
852
|
+
case: {
|
|
868
853
|
id: string;
|
|
869
|
-
|
|
854
|
+
title: string;
|
|
870
855
|
};
|
|
871
|
-
questionnaireItemId: string;
|
|
872
856
|
responderId: string;
|
|
873
857
|
responder: {
|
|
874
858
|
id: string;
|
|
875
859
|
displayName: string;
|
|
876
860
|
};
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
text?: undefined;
|
|
882
|
-
};
|
|
883
|
-
isOverridden: boolean;
|
|
884
|
-
score: number;
|
|
885
|
-
maxScore: number;
|
|
886
|
-
isCorrect: boolean;
|
|
887
|
-
answeredAt: Date;
|
|
861
|
+
role: string;
|
|
862
|
+
statusId: string;
|
|
863
|
+
startedAt: Date;
|
|
864
|
+
lastSavedAt: Date;
|
|
888
865
|
timeSpent: number;
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
866
|
+
progressPercentage: number;
|
|
867
|
+
answeredQuestionsCount: number;
|
|
868
|
+
answers: {
|
|
869
|
+
'item-1': {
|
|
870
|
+
value: string;
|
|
871
|
+
};
|
|
872
|
+
'item-2': {
|
|
873
|
+
value: string;
|
|
874
|
+
};
|
|
875
|
+
'item-3': {
|
|
876
|
+
value: string;
|
|
877
|
+
};
|
|
878
|
+
'item-4'?: undefined;
|
|
879
|
+
'item-5'?: undefined;
|
|
880
|
+
'item-6'?: undefined;
|
|
881
|
+
'item-7'?: undefined;
|
|
882
|
+
'item-8'?: undefined;
|
|
883
|
+
'item-9'?: undefined;
|
|
884
|
+
'item-10'?: undefined;
|
|
885
|
+
};
|
|
892
886
|
createdAt: Date;
|
|
893
887
|
updatedAt: Date;
|
|
894
|
-
|
|
895
|
-
overrider?: undefined;
|
|
896
|
-
overriddenAt?: undefined;
|
|
897
|
-
originalAnswer?: undefined;
|
|
898
|
-
overrideReason?: undefined;
|
|
888
|
+
previousId?: undefined;
|
|
899
889
|
})[];
|
|
900
890
|
|
|
901
|
-
declare class
|
|
891
|
+
declare class AXMAssessmentSessionDataSeeder implements AXPDataSeeder {
|
|
902
892
|
private storage;
|
|
903
893
|
seed(): Promise<void>;
|
|
904
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
905
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
906
|
-
}
|
|
907
|
-
|
|
908
|
-
declare class AXCAppVersionDataSeeder implements AXPDataSeeder {
|
|
909
|
-
private storageService;
|
|
910
|
-
private appVersionService;
|
|
911
|
-
seed(): Promise<void>;
|
|
912
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXCAppVersionDataSeeder, never>;
|
|
913
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXCAppVersionDataSeeder>;
|
|
894
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXMAssessmentSessionDataSeeder, never>;
|
|
895
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXMAssessmentSessionDataSeeder>;
|
|
914
896
|
}
|
|
915
897
|
|
|
916
|
-
declare class
|
|
898
|
+
declare class AXCTokensDataSeeder implements AXPDataSeeder {
|
|
917
899
|
private storageService;
|
|
918
900
|
seed(): Promise<void>;
|
|
919
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
920
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
901
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCTokensDataSeeder, never>;
|
|
902
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXCTokensDataSeeder>;
|
|
921
903
|
}
|
|
922
904
|
|
|
923
|
-
declare const
|
|
905
|
+
declare const TOKENS: {
|
|
924
906
|
id: string;
|
|
925
907
|
name: string;
|
|
926
908
|
title: string;
|
|
927
|
-
|
|
928
|
-
|
|
909
|
+
description: string;
|
|
910
|
+
type: "String" | "Integer" | "Boolean" | "Expression";
|
|
911
|
+
expression: string;
|
|
929
912
|
}[];
|
|
930
913
|
|
|
914
|
+
/**
|
|
915
|
+
* Tenant ID constants for use across mock data.
|
|
916
|
+
* These are generated once and exported to ensure consistency.
|
|
917
|
+
*/
|
|
918
|
+
declare const PLATFORM_TENANT_ID: string;
|
|
919
|
+
declare const TIMEPLICITY_TENANT_ID: string;
|
|
920
|
+
declare const LASER_PLUMBING_TENANT_ID: string;
|
|
921
|
+
|
|
922
|
+
declare const tenantMocks: AXMTenantManagementTenantEntityModel[];
|
|
923
|
+
|
|
924
|
+
declare class AXCTenantSeeder implements AXPDataSeeder {
|
|
925
|
+
private readonly storageService;
|
|
926
|
+
seed(): Promise<void>;
|
|
927
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCTenantSeeder, never>;
|
|
928
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXCTenantSeeder>;
|
|
929
|
+
}
|
|
930
|
+
|
|
931
931
|
declare class AXPSecurityManagementRoleDataSeeder implements AXPDataSeeder {
|
|
932
932
|
private storageService;
|
|
933
933
|
seed(): Promise<void>;
|
|
@@ -942,23 +942,13 @@ declare class AXPSecurityManagementUserDataSeeder implements AXPDataSeeder {
|
|
|
942
942
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXPSecurityManagementUserDataSeeder>;
|
|
943
943
|
}
|
|
944
944
|
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
declare const applications: AXPApplication[];
|
|
948
|
-
|
|
949
|
-
declare const mockRoleDefinitions: {
|
|
950
|
-
id: string;
|
|
951
|
-
name: string;
|
|
952
|
-
title: string;
|
|
953
|
-
description: string;
|
|
954
|
-
permissions: string[];
|
|
955
|
-
}[];
|
|
945
|
+
type RoleMockDto = AXMSecurityManagementRolesEntityModel;
|
|
946
|
+
declare const mockRoleDefinitions: RoleMockDto[];
|
|
956
947
|
|
|
957
|
-
interface AXCMockUserMockDto {
|
|
948
|
+
interface AXCMockUserMockDto extends AXMSecurityManagementUsersEntityModel {
|
|
958
949
|
id: string;
|
|
959
950
|
username: string;
|
|
960
951
|
displayName: string;
|
|
961
|
-
partyId: string;
|
|
962
952
|
roleIds: string[];
|
|
963
953
|
roles: {
|
|
964
954
|
id: string;
|
|
@@ -1016,15 +1006,15 @@ declare function findEmployeeById(employeeId: string): AXCEmployeeMockDto | unde
|
|
|
1016
1006
|
interface AXCEmployeeMockDto {
|
|
1017
1007
|
id: string;
|
|
1018
1008
|
userId?: string;
|
|
1019
|
-
|
|
1020
|
-
|
|
1009
|
+
personId: string;
|
|
1010
|
+
person: {
|
|
1021
1011
|
id: string;
|
|
1022
1012
|
displayName: string;
|
|
1023
1013
|
};
|
|
1024
1014
|
birthDate: Date;
|
|
1025
1015
|
employeeCode: string;
|
|
1026
|
-
|
|
1027
|
-
|
|
1016
|
+
jobDefinitionId: string;
|
|
1017
|
+
jobDefinition: {
|
|
1028
1018
|
id: string;
|
|
1029
1019
|
title: string;
|
|
1030
1020
|
};
|
|
@@ -1040,28 +1030,28 @@ interface AXCEmployeeMockDto {
|
|
|
1040
1030
|
}
|
|
1041
1031
|
declare const EMPLOYEES_MOCK: AXCEmployeeMockDto[];
|
|
1042
1032
|
|
|
1043
|
-
type AXCEmployeeMock = (typeof EMPLOYEES_MOCK)[number];
|
|
1033
|
+
type AXCEmployeeMock$1 = (typeof EMPLOYEES_MOCK)[number];
|
|
1044
1034
|
interface AXCTeamMockDto {
|
|
1045
1035
|
id: string;
|
|
1046
1036
|
title: string;
|
|
1047
1037
|
description: string;
|
|
1048
1038
|
leaderId: string;
|
|
1049
|
-
leader: AXCEmployeeMock;
|
|
1039
|
+
leader: AXCEmployeeMock$1;
|
|
1050
1040
|
managerId: string;
|
|
1051
|
-
manager: AXCEmployeeMock;
|
|
1041
|
+
manager: AXCEmployeeMock$1;
|
|
1052
1042
|
memberIds: string[];
|
|
1053
|
-
members: AXCEmployeeMock[];
|
|
1043
|
+
members: AXCEmployeeMock$1[];
|
|
1054
1044
|
}
|
|
1055
1045
|
interface AXCTeamMockDto {
|
|
1056
1046
|
id: string;
|
|
1057
1047
|
title: string;
|
|
1058
1048
|
description: string;
|
|
1059
1049
|
leaderId: string;
|
|
1060
|
-
leader: AXCEmployeeMock;
|
|
1050
|
+
leader: AXCEmployeeMock$1;
|
|
1061
1051
|
managerId: string;
|
|
1062
|
-
manager: AXCEmployeeMock;
|
|
1052
|
+
manager: AXCEmployeeMock$1;
|
|
1063
1053
|
memberIds: string[];
|
|
1064
|
-
members: AXCEmployeeMock[];
|
|
1054
|
+
members: AXCEmployeeMock$1[];
|
|
1065
1055
|
}
|
|
1066
1056
|
declare const TEAMS_MOCK: AXCTeamMockDto[];
|
|
1067
1057
|
|
|
@@ -1072,8 +1062,44 @@ declare class AXMTeamDataSeeder implements AXPDataSeeder {
|
|
|
1072
1062
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXMTeamDataSeeder>;
|
|
1073
1063
|
}
|
|
1074
1064
|
|
|
1065
|
+
interface AXCTeamMemberRoleMockDto {
|
|
1066
|
+
id: string;
|
|
1067
|
+
title: string;
|
|
1068
|
+
name: 'leader' | 'member' | 'co-leader' | 'advisor';
|
|
1069
|
+
}
|
|
1070
|
+
declare const TEAM_MEMBER_ROLES_MOCK: AXCTeamMemberRoleMockDto[];
|
|
1071
|
+
|
|
1072
|
+
declare class AXMTeamMemberRoleDataSeeder implements AXPDataSeeder {
|
|
1073
|
+
private storageService;
|
|
1074
|
+
seed(): Promise<void>;
|
|
1075
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXMTeamMemberRoleDataSeeder, never>;
|
|
1076
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXMTeamMemberRoleDataSeeder>;
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1079
|
+
type AXCEmployeeMock = (typeof EMPLOYEES_MOCK)[number];
|
|
1080
|
+
type AXCTeamMock = (typeof TEAMS_MOCK)[number];
|
|
1081
|
+
type AXCTeamMemberRoleMock = (typeof TEAM_MEMBER_ROLES_MOCK)[number];
|
|
1082
|
+
interface AXCTeamMemberMockDto {
|
|
1083
|
+
id: string;
|
|
1084
|
+
teamId: string;
|
|
1085
|
+
team: AXCTeamMock;
|
|
1086
|
+
employeeId: string;
|
|
1087
|
+
employee: AXCEmployeeMock;
|
|
1088
|
+
roleId: string;
|
|
1089
|
+
role: AXCTeamMemberRoleMock;
|
|
1090
|
+
}
|
|
1091
|
+
declare const TEAM_MEMBERS_MOCK: AXCTeamMemberMockDto[];
|
|
1092
|
+
|
|
1093
|
+
declare class AXMTeamMemberDataSeeder implements AXPDataSeeder {
|
|
1094
|
+
private storageService;
|
|
1095
|
+
seed(): Promise<void>;
|
|
1096
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXMTeamMemberDataSeeder, never>;
|
|
1097
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXMTeamMemberDataSeeder>;
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1075
1100
|
interface PositionMockDto extends AXPCategorizedEntityDto {
|
|
1076
1101
|
id: string;
|
|
1102
|
+
code: string;
|
|
1077
1103
|
title: string;
|
|
1078
1104
|
description: string;
|
|
1079
1105
|
categoryIds: string[];
|
|
@@ -1081,7 +1107,22 @@ interface PositionMockDto extends AXPCategorizedEntityDto {
|
|
|
1081
1107
|
id: string;
|
|
1082
1108
|
title: string;
|
|
1083
1109
|
}[];
|
|
1084
|
-
|
|
1110
|
+
jobLevelId: string;
|
|
1111
|
+
jobLevel?: {
|
|
1112
|
+
id: string;
|
|
1113
|
+
title: string;
|
|
1114
|
+
};
|
|
1115
|
+
jobDefinitionId?: string;
|
|
1116
|
+
jobDefinition?: {
|
|
1117
|
+
id: string;
|
|
1118
|
+
title: string;
|
|
1119
|
+
};
|
|
1120
|
+
businessUnitId?: string;
|
|
1121
|
+
businessUnit?: {
|
|
1122
|
+
id: string;
|
|
1123
|
+
title: string;
|
|
1124
|
+
};
|
|
1125
|
+
capacity?: number;
|
|
1085
1126
|
}
|
|
1086
1127
|
declare const POSITIONS_CATEGORY_MOCK: AXPCategoryEntity<string>[];
|
|
1087
1128
|
declare const POSITIONS_MOCK: PositionMockDto[];
|
|
@@ -1093,7 +1134,7 @@ declare class AXMPositionDataSeeder implements AXPDataSeeder {
|
|
|
1093
1134
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXMPositionDataSeeder>;
|
|
1094
1135
|
}
|
|
1095
1136
|
|
|
1096
|
-
interface
|
|
1137
|
+
interface JobDefinitionMockDto extends AXPCategorizedEntityDto {
|
|
1097
1138
|
id: string;
|
|
1098
1139
|
title: string;
|
|
1099
1140
|
description: string;
|
|
@@ -1102,25 +1143,38 @@ interface RoleMockDto extends AXPCategorizedEntityDto {
|
|
|
1102
1143
|
id: string;
|
|
1103
1144
|
title: string;
|
|
1104
1145
|
}[];
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
}[];
|
|
1110
|
-
responsibilitiesId: string[];
|
|
1111
|
-
responsibilities: {
|
|
1146
|
+
responsibilityLevelIds?: string[];
|
|
1147
|
+
responsibilities?: AXPSpreadsheetData;
|
|
1148
|
+
jobLevelIds?: string[];
|
|
1149
|
+
jobLevels?: {
|
|
1112
1150
|
id: string;
|
|
1113
1151
|
title: string;
|
|
1114
1152
|
}[];
|
|
1153
|
+
skillRequirements?: AXPSpreadsheetData;
|
|
1154
|
+
}
|
|
1155
|
+
declare const JOB_DEFINITIONS_CATEGORY_MOCK: AXPCategoryEntity<string>[];
|
|
1156
|
+
declare const JOB_DEFINITIONS_MOCK: JobDefinitionMockDto[];
|
|
1157
|
+
|
|
1158
|
+
declare class AXMJobDefinitionDataSeeder implements AXPDataSeeder {
|
|
1159
|
+
private storageService;
|
|
1160
|
+
seed(): Promise<void>;
|
|
1161
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXMJobDefinitionDataSeeder, never>;
|
|
1162
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXMJobDefinitionDataSeeder>;
|
|
1163
|
+
}
|
|
1164
|
+
|
|
1165
|
+
interface JobLevelMockDto {
|
|
1166
|
+
id: string;
|
|
1167
|
+
title: string;
|
|
1168
|
+
description?: string;
|
|
1169
|
+
level: number;
|
|
1115
1170
|
}
|
|
1116
|
-
declare const
|
|
1117
|
-
declare const ROLES_MOCK: RoleMockDto[];
|
|
1171
|
+
declare const JOB_LEVELS_MOCK: JobLevelMockDto[];
|
|
1118
1172
|
|
|
1119
|
-
declare class
|
|
1173
|
+
declare class AXMJobLevelDataSeeder implements AXPDataSeeder {
|
|
1120
1174
|
private storageService;
|
|
1121
1175
|
seed(): Promise<void>;
|
|
1122
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
1123
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
1176
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXMJobLevelDataSeeder, never>;
|
|
1177
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXMJobLevelDataSeeder>;
|
|
1124
1178
|
}
|
|
1125
1179
|
|
|
1126
1180
|
interface ResponsibilityMockDto extends AXPCategorizedEntityDto {
|
|
@@ -1172,116 +1226,49 @@ declare class AXMPositionAssignmentDataSeeder implements AXPDataSeeder {
|
|
|
1172
1226
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXMPositionAssignmentDataSeeder>;
|
|
1173
1227
|
}
|
|
1174
1228
|
|
|
1175
|
-
|
|
1176
|
-
id: string;
|
|
1177
|
-
title: string;
|
|
1178
|
-
description: string;
|
|
1179
|
-
categoryIds: string[];
|
|
1180
|
-
categories: {
|
|
1181
|
-
id: string;
|
|
1182
|
-
title: string;
|
|
1183
|
-
}[];
|
|
1184
|
-
}
|
|
1185
|
-
declare const SKILLS_CATEGORY_MOCK: AXPCategoryEntity<string>[];
|
|
1186
|
-
declare const SKILLS_MOCK: SkillMockDto[];
|
|
1229
|
+
declare const EMPLOYMENT_TYPES_MOCK: any[];
|
|
1187
1230
|
|
|
1188
|
-
declare class
|
|
1231
|
+
declare class AXMEmploymentTypeDataSeeder implements AXPDataSeeder {
|
|
1189
1232
|
private storageService;
|
|
1190
1233
|
seed(): Promise<void>;
|
|
1191
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
1192
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
1193
|
-
}
|
|
1194
|
-
|
|
1195
|
-
interface AXCSkillLevelMockDto {
|
|
1196
|
-
id: string;
|
|
1197
|
-
title: string;
|
|
1198
|
-
order: number;
|
|
1199
|
-
isActive: boolean;
|
|
1200
|
-
description?: string;
|
|
1201
|
-
}
|
|
1202
|
-
declare const SKILL_LEVELS_MOCK: AXCSkillLevelMockDto[];
|
|
1203
|
-
|
|
1204
|
-
declare class AXMSkillLevelDataSeeder implements AXPDataSeeder {
|
|
1205
|
-
private readonly storageService;
|
|
1206
|
-
seed(): Promise<void>;
|
|
1207
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXMSkillLevelDataSeeder, never>;
|
|
1208
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXMSkillLevelDataSeeder>;
|
|
1209
|
-
}
|
|
1210
|
-
|
|
1211
|
-
/**
|
|
1212
|
-
* Mock DTO for employee skill relation entries.
|
|
1213
|
-
*/
|
|
1214
|
-
interface AXCEmployeeSkillMockDto {
|
|
1215
|
-
id: string;
|
|
1216
|
-
employeeId: string;
|
|
1217
|
-
employee?: any;
|
|
1218
|
-
skillId: string;
|
|
1219
|
-
skill?: any;
|
|
1220
|
-
levelId: string;
|
|
1221
|
-
level?: any;
|
|
1222
|
-
yearsOfExperience?: number;
|
|
1223
|
-
lastUsedDate?: Date;
|
|
1224
|
-
validatedBy?: string;
|
|
1225
|
-
validationSource?: string;
|
|
1226
|
-
validationDate?: Date;
|
|
1227
|
-
notes?: string;
|
|
1228
|
-
}
|
|
1229
|
-
declare const EMPLOYEE_SKILLS_MOCK: AXCEmployeeSkillMockDto[];
|
|
1230
|
-
|
|
1231
|
-
declare class AXMEmployeeSkillDataSeeder implements AXPDataSeeder {
|
|
1232
|
-
private storageService;
|
|
1233
|
-
seed(): Promise<void>;
|
|
1234
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXMEmployeeSkillDataSeeder, never>;
|
|
1235
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXMEmployeeSkillDataSeeder>;
|
|
1236
|
-
}
|
|
1237
|
-
|
|
1238
|
-
declare const EMPLOYMENT_TYPES_MOCK: any[];
|
|
1239
|
-
|
|
1240
|
-
declare class AXMEmploymentTypeDataSeeder implements AXPDataSeeder {
|
|
1241
|
-
private storageService;
|
|
1242
|
-
seed(): Promise<void>;
|
|
1243
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXMEmploymentTypeDataSeeder, never>;
|
|
1244
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXMEmploymentTypeDataSeeder>;
|
|
1234
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXMEmploymentTypeDataSeeder, never>;
|
|
1235
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXMEmploymentTypeDataSeeder>;
|
|
1245
1236
|
}
|
|
1246
1237
|
|
|
1247
1238
|
declare const LEAVE_REQUEST_STATUS_DEFINITIONS: readonly [{
|
|
1248
|
-
readonly name:
|
|
1239
|
+
readonly name: _acorex_platform_common.AXPSystemStatusType.Pending;
|
|
1249
1240
|
readonly title: string;
|
|
1250
1241
|
readonly icon: "fa-light fa-clock";
|
|
1251
1242
|
readonly color: "warning";
|
|
1252
1243
|
readonly description: string;
|
|
1253
1244
|
readonly order: 1;
|
|
1254
|
-
readonly isActive: true;
|
|
1255
1245
|
readonly isInitial: true;
|
|
1256
1246
|
readonly isFinal: false;
|
|
1257
1247
|
}, {
|
|
1258
|
-
readonly name:
|
|
1248
|
+
readonly name: _acorex_platform_common.AXPSystemStatusType.Approved;
|
|
1259
1249
|
readonly title: string;
|
|
1260
1250
|
readonly icon: "fa-light fa-check-circle";
|
|
1261
1251
|
readonly color: "success";
|
|
1262
1252
|
readonly description: string;
|
|
1263
1253
|
readonly order: 3;
|
|
1264
|
-
readonly isActive: true;
|
|
1265
1254
|
readonly isInitial: false;
|
|
1266
1255
|
readonly isFinal: false;
|
|
1267
1256
|
}, {
|
|
1268
|
-
readonly name:
|
|
1257
|
+
readonly name: _acorex_platform_common.AXPSystemStatusType.Rejected;
|
|
1269
1258
|
readonly title: string;
|
|
1270
1259
|
readonly icon: "fa-light fa-times-circle";
|
|
1271
1260
|
readonly color: "danger";
|
|
1272
1261
|
readonly description: string;
|
|
1273
1262
|
readonly order: 6;
|
|
1274
|
-
readonly isActive: true;
|
|
1275
1263
|
readonly isInitial: false;
|
|
1276
1264
|
readonly isFinal: true;
|
|
1277
1265
|
}, {
|
|
1278
|
-
readonly name:
|
|
1266
|
+
readonly name: _acorex_platform_common.AXPSystemStatusType.Cancelled;
|
|
1279
1267
|
readonly title: string;
|
|
1280
1268
|
readonly icon: "fa-light fa-times-circle";
|
|
1281
1269
|
readonly color: "neutral";
|
|
1282
1270
|
readonly description: string;
|
|
1283
1271
|
readonly order: 6;
|
|
1284
|
-
readonly isActive: true;
|
|
1285
1272
|
readonly isInitial: false;
|
|
1286
1273
|
readonly isFinal: true;
|
|
1287
1274
|
}];
|
|
@@ -1311,111 +1298,7 @@ declare class AXMLeaveRequestDataSeeder implements AXPDataSeeder {
|
|
|
1311
1298
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXMLeaveRequestDataSeeder>;
|
|
1312
1299
|
}
|
|
1313
1300
|
|
|
1314
|
-
|
|
1315
|
-
getList(parentId?: string): Promise<AXPReportCategory[]>;
|
|
1316
|
-
getById(id: string): Promise<AXPReportCategory | undefined>;
|
|
1317
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXMEmployeeSkillsCategoryProvider, never>;
|
|
1318
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXMEmployeeSkillsCategoryProvider>;
|
|
1319
|
-
}
|
|
1320
|
-
declare class AXMEmployeeSkillsReportDefinitionProvider implements AXPReportDefinitionProvider {
|
|
1321
|
-
getList(categoryId: string): Promise<AXPReportDefinition[]>;
|
|
1322
|
-
getById(id: string): Promise<AXPReportDefinition | undefined>;
|
|
1323
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXMEmployeeSkillsReportDefinitionProvider, never>;
|
|
1324
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXMEmployeeSkillsReportDefinitionProvider>;
|
|
1325
|
-
}
|
|
1326
|
-
declare const AXM_EMPLOYEE_SKILLS_CATEGORY_PROVIDER: {
|
|
1327
|
-
provide: i0.InjectionToken<_acorex_modules_report_management.AXPReportCategoryProviderToken[]>;
|
|
1328
|
-
useClass: typeof AXMEmployeeSkillsCategoryProvider;
|
|
1329
|
-
multi: boolean;
|
|
1330
|
-
};
|
|
1331
|
-
declare const AXM_EMPLOYEE_SKILLS_DEFINITION_PROVIDER: {
|
|
1332
|
-
provide: i0.InjectionToken<_acorex_modules_report_management.AXPReportDefinitionProviderToken[]>;
|
|
1333
|
-
useClass: typeof AXMEmployeeSkillsReportDefinitionProvider;
|
|
1334
|
-
multi: boolean;
|
|
1335
|
-
};
|
|
1336
|
-
|
|
1337
|
-
type ListInput = {
|
|
1338
|
-
skillId?: string;
|
|
1339
|
-
levelId?: string;
|
|
1340
|
-
minYears?: number;
|
|
1341
|
-
startDate?: Date | string;
|
|
1342
|
-
endDate?: Date | string;
|
|
1343
|
-
skip?: number;
|
|
1344
|
-
take?: number;
|
|
1345
|
-
};
|
|
1346
|
-
declare class AXQEmployeeSkillsListQuery implements AXPQuery<ListInput, {
|
|
1347
|
-
items: any[];
|
|
1348
|
-
total: number;
|
|
1349
|
-
}> {
|
|
1350
|
-
private employeeSkillService;
|
|
1351
|
-
private skillLevelService;
|
|
1352
|
-
fetch(input: ListInput): Promise<{
|
|
1353
|
-
items: any[];
|
|
1354
|
-
total: number;
|
|
1355
|
-
}>;
|
|
1356
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXQEmployeeSkillsListQuery, never>;
|
|
1357
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXQEmployeeSkillsListQuery>;
|
|
1358
|
-
}
|
|
1359
|
-
type StatsInput = {
|
|
1360
|
-
skillId?: string;
|
|
1361
|
-
levelId?: string;
|
|
1362
|
-
minYears?: number;
|
|
1363
|
-
startDate?: Date | string;
|
|
1364
|
-
endDate?: Date | string;
|
|
1365
|
-
};
|
|
1366
|
-
declare class AXQEmployeeSkillsStatsQuery implements AXPQuery<StatsInput, Record<string, number>> {
|
|
1367
|
-
private employeeSkillService;
|
|
1368
|
-
fetch(input: StatsInput): Promise<Record<string, number>>;
|
|
1369
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXQEmployeeSkillsStatsQuery, never>;
|
|
1370
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXQEmployeeSkillsStatsQuery>;
|
|
1371
|
-
}
|
|
1372
|
-
type LevelsInput = {
|
|
1373
|
-
skillId?: string;
|
|
1374
|
-
levelId?: string;
|
|
1375
|
-
minYears?: number;
|
|
1376
|
-
startDate?: Date | string;
|
|
1377
|
-
endDate?: Date | string;
|
|
1378
|
-
};
|
|
1379
|
-
declare class AXQEmployeeSkillsLevelsQuery implements AXPQuery<LevelsInput, Record<string, number>> {
|
|
1380
|
-
private employeeSkillService;
|
|
1381
|
-
private skillLevelService;
|
|
1382
|
-
fetch(input: LevelsInput): Promise<Record<string, number>>;
|
|
1383
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXQEmployeeSkillsLevelsQuery, never>;
|
|
1384
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXQEmployeeSkillsLevelsQuery>;
|
|
1385
|
-
}
|
|
1386
|
-
type TrendInput = {
|
|
1387
|
-
startDate?: Date | string;
|
|
1388
|
-
endDate?: Date | string;
|
|
1389
|
-
skillId?: string;
|
|
1390
|
-
levelId?: string;
|
|
1391
|
-
};
|
|
1392
|
-
declare class AXQEmployeeSkillsTrendQuery implements AXPQuery<TrendInput, {
|
|
1393
|
-
month: string;
|
|
1394
|
-
value: number;
|
|
1395
|
-
}[]> {
|
|
1396
|
-
private employeeSkillService;
|
|
1397
|
-
fetch(input: TrendInput): Promise<{
|
|
1398
|
-
month: string;
|
|
1399
|
-
value: number;
|
|
1400
|
-
}[]>;
|
|
1401
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXQEmployeeSkillsTrendQuery, never>;
|
|
1402
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXQEmployeeSkillsTrendQuery>;
|
|
1403
|
-
}
|
|
1404
|
-
declare class AXQEmployeeSkillsSkillPercentagesQuery implements AXPQuery<StatsInput, Record<string, number>> {
|
|
1405
|
-
private employeeSkillService;
|
|
1406
|
-
fetch(input: StatsInput): Promise<Record<string, number>>;
|
|
1407
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXQEmployeeSkillsSkillPercentagesQuery, never>;
|
|
1408
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXQEmployeeSkillsSkillPercentagesQuery>;
|
|
1409
|
-
}
|
|
1410
|
-
declare class AXQEmployeeSkillsLevelPercentagesQuery implements AXPQuery<LevelsInput, Record<string, number>> {
|
|
1411
|
-
private employeeSkillService;
|
|
1412
|
-
private skillLevelService;
|
|
1413
|
-
fetch(input: LevelsInput): Promise<Record<string, number>>;
|
|
1414
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXQEmployeeSkillsLevelPercentagesQuery, never>;
|
|
1415
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXQEmployeeSkillsLevelPercentagesQuery>;
|
|
1416
|
-
}
|
|
1417
|
-
|
|
1418
|
-
interface PartyMockData {
|
|
1301
|
+
interface PersonMockData {
|
|
1419
1302
|
id: string;
|
|
1420
1303
|
firstName: string;
|
|
1421
1304
|
lastName: string;
|
|
@@ -1425,14 +1308,7 @@ interface PartyMockData {
|
|
|
1425
1308
|
gender: string;
|
|
1426
1309
|
type: string;
|
|
1427
1310
|
}
|
|
1428
|
-
declare function
|
|
1429
|
-
|
|
1430
|
-
declare class AXMIndustryDataSeeder implements AXPDataSeeder {
|
|
1431
|
-
private readonly storageService;
|
|
1432
|
-
seed(): Promise<void>;
|
|
1433
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXMIndustryDataSeeder, never>;
|
|
1434
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXMIndustryDataSeeder>;
|
|
1435
|
-
}
|
|
1311
|
+
declare function findPersonById(id: string): PersonMockData | null;
|
|
1436
1312
|
|
|
1437
1313
|
declare function findContactMethod(referenceId: string, type: string): string | undefined;
|
|
1438
1314
|
|
|
@@ -1516,6 +1392,9 @@ interface TaskTemplate {
|
|
|
1516
1392
|
}
|
|
1517
1393
|
declare const TASK_TEMPLATES: TaskTemplate[];
|
|
1518
1394
|
|
|
1395
|
+
/**
|
|
1396
|
+
* Mock workflow definition entities for the entity list.
|
|
1397
|
+
*/
|
|
1519
1398
|
/**
|
|
1520
1399
|
* Mock workflow definition entities for the entity list.
|
|
1521
1400
|
*/
|
|
@@ -1528,6 +1407,38 @@ declare class AXCWorkflowDefinitionDataSeeder implements AXPDataSeeder {
|
|
|
1528
1407
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXCWorkflowDefinitionDataSeeder>;
|
|
1529
1408
|
}
|
|
1530
1409
|
|
|
1410
|
+
declare const ACTIVITY_CATEGORIES: AXPActivityCategory[];
|
|
1411
|
+
|
|
1412
|
+
declare class AXCActivityCategorySeeder implements AXPDataSeeder {
|
|
1413
|
+
private readonly storageService;
|
|
1414
|
+
seed(): Promise<void>;
|
|
1415
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCActivityCategorySeeder, never>;
|
|
1416
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXCActivityCategorySeeder>;
|
|
1417
|
+
}
|
|
1418
|
+
|
|
1419
|
+
declare const ACTIVITY_DEFINITIONS: AXPActivityDefinition[];
|
|
1420
|
+
|
|
1421
|
+
declare class AXCActivityDefinitionSeeder implements AXPDataSeeder {
|
|
1422
|
+
private readonly storageService;
|
|
1423
|
+
seed(): Promise<void>;
|
|
1424
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCActivityDefinitionSeeder, never>;
|
|
1425
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXCActivityDefinitionSeeder>;
|
|
1426
|
+
}
|
|
1427
|
+
|
|
1428
|
+
declare const WORKFLOW_CATEGORIES: AXPWorkflowCategory[];
|
|
1429
|
+
|
|
1430
|
+
/**
|
|
1431
|
+
* Mock Workflow Category Provider
|
|
1432
|
+
*
|
|
1433
|
+
* Provides workflow categories from mock data.
|
|
1434
|
+
*/
|
|
1435
|
+
declare class AXCWorkflowCategoryProvider implements AXPWorkflowCategoryProvider {
|
|
1436
|
+
getList(parentId?: string): Promise<AXPWorkflowCategory[]>;
|
|
1437
|
+
getById(id: string): Promise<AXPWorkflowCategory | undefined>;
|
|
1438
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCWorkflowCategoryProvider, never>;
|
|
1439
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXCWorkflowCategoryProvider>;
|
|
1440
|
+
}
|
|
1441
|
+
|
|
1531
1442
|
type extraFields$1 = {
|
|
1532
1443
|
recievedDate: Date;
|
|
1533
1444
|
};
|
|
@@ -1594,13 +1505,6 @@ declare class AXPTaskBoardPlatformManagementTaskProvider extends AXPWorkflowTask
|
|
|
1594
1505
|
getStatuses(): Promise<AXPTaskStatus[]>;
|
|
1595
1506
|
}
|
|
1596
1507
|
|
|
1597
|
-
declare class AXCAppTermDataSeeder implements AXPDataSeeder {
|
|
1598
|
-
private storageService;
|
|
1599
|
-
seed(): Promise<void>;
|
|
1600
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXCAppTermDataSeeder, never>;
|
|
1601
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXCAppTermDataSeeder>;
|
|
1602
|
-
}
|
|
1603
|
-
|
|
1604
1508
|
declare class AXMAiResponderService {
|
|
1605
1509
|
private readonly geminiApiKey;
|
|
1606
1510
|
getAIResponse(prompt: string): Promise<string>;
|
|
@@ -1698,6 +1602,16 @@ declare class AXCQueryCategoryMetadataInheritanceQuery implements AXPQuery<Categ
|
|
|
1698
1602
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXCQueryCategoryMetadataInheritanceQuery>;
|
|
1699
1603
|
}
|
|
1700
1604
|
|
|
1605
|
+
type MetadataCategoryMockDto = AXPCategoryEntity;
|
|
1606
|
+
declare const metadataCategoryMocks: MetadataCategoryMockDto[];
|
|
1607
|
+
|
|
1608
|
+
declare class AXCMetadataCategorySeeder implements AXPDataSeeder {
|
|
1609
|
+
private readonly storageService;
|
|
1610
|
+
seed(): Promise<void>;
|
|
1611
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCMetadataCategorySeeder, never>;
|
|
1612
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXCMetadataCategorySeeder>;
|
|
1613
|
+
}
|
|
1614
|
+
|
|
1701
1615
|
interface AXMTag {
|
|
1702
1616
|
id: string;
|
|
1703
1617
|
title: string;
|
|
@@ -1731,76 +1645,6 @@ declare class AXPDashboardDataSeeder implements AXPDataSeeder {
|
|
|
1731
1645
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXPDashboardDataSeeder>;
|
|
1732
1646
|
}
|
|
1733
1647
|
|
|
1734
|
-
declare class AXMReportCategoryDataSeeder implements AXPDataSeeder {
|
|
1735
|
-
private storageService;
|
|
1736
|
-
seed(): Promise<void>;
|
|
1737
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXMReportCategoryDataSeeder, never>;
|
|
1738
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXMReportCategoryDataSeeder>;
|
|
1739
|
-
}
|
|
1740
|
-
|
|
1741
|
-
declare class AXMReportDefinitionDataSeeder implements AXPDataSeeder {
|
|
1742
|
-
private storageService;
|
|
1743
|
-
seed(): Promise<void>;
|
|
1744
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXMReportDefinitionDataSeeder, never>;
|
|
1745
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXMReportDefinitionDataSeeder>;
|
|
1746
|
-
}
|
|
1747
|
-
|
|
1748
|
-
declare class AXMReportExecuteCommand implements AXPExecutionReportCommand {
|
|
1749
|
-
private readonly queryService;
|
|
1750
|
-
private readonly mockDataService;
|
|
1751
|
-
private readonly reportDataCache;
|
|
1752
|
-
private readonly CACHE_TTL_MS;
|
|
1753
|
-
private readonly DEFAULT_TOTAL_ITEMS;
|
|
1754
|
-
private readonly reportDefinitionService;
|
|
1755
|
-
constructor();
|
|
1756
|
-
execute(context: AXPLayoutExecutionContext): Promise<AXPExecuteCommandResult<AXPExecutionReportCommandResult>>;
|
|
1757
|
-
private generateLayoutData;
|
|
1758
|
-
private generateTableData;
|
|
1759
|
-
private generateChartData;
|
|
1760
|
-
private generateLayoutDataFromQuery;
|
|
1761
|
-
private buildQueryInput;
|
|
1762
|
-
private assignByPath;
|
|
1763
|
-
private normalizeTableQueryResult;
|
|
1764
|
-
private normalizeChartQueryResult;
|
|
1765
|
-
private generateSystemHealthChartData;
|
|
1766
|
-
private readonly reportDefinitionFallback;
|
|
1767
|
-
private applyAuditTrailFilters;
|
|
1768
|
-
private applyLoginLogsFilters;
|
|
1769
|
-
private applyChangePasswordLogsFilters;
|
|
1770
|
-
private applyIdentityAuditLogErrorLogsFilters;
|
|
1771
|
-
private getCachedOrGenerateReportData;
|
|
1772
|
-
private generateCacheKey;
|
|
1773
|
-
private generateReportVersion;
|
|
1774
|
-
private isCacheValid;
|
|
1775
|
-
private clearExpiredCache;
|
|
1776
|
-
/**
|
|
1777
|
-
* Manually clear all cached report data (useful for debugging or forcing refresh)
|
|
1778
|
-
*/
|
|
1779
|
-
clearCache(): void;
|
|
1780
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXMReportExecuteCommand, never>;
|
|
1781
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXMReportExecuteCommand>;
|
|
1782
|
-
}
|
|
1783
|
-
|
|
1784
|
-
/**
|
|
1785
|
-
* Provides mock data generation for reports, separated from execution concerns.
|
|
1786
|
-
*/
|
|
1787
|
-
declare class AXMReportMockDataService {
|
|
1788
|
-
/**
|
|
1789
|
-
* Generate mock data based on report title heuristics.
|
|
1790
|
-
*/
|
|
1791
|
-
generateMockDataForReport(reportDefinition: AXPReportDefinition, parameters: Record<string, unknown>, pageSize: number): Record<string, unknown>[];
|
|
1792
|
-
private generateAuditTrailData;
|
|
1793
|
-
private generateFinancialData;
|
|
1794
|
-
private generateIncomeData;
|
|
1795
|
-
private generateEmployeeData;
|
|
1796
|
-
private generateSalesData;
|
|
1797
|
-
private generateSafetyData;
|
|
1798
|
-
private generateGenericData;
|
|
1799
|
-
private getRandomPastDate;
|
|
1800
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXMReportMockDataService, never>;
|
|
1801
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXMReportMockDataService>;
|
|
1802
|
-
}
|
|
1803
|
-
|
|
1804
1648
|
declare const calendarMock: ({
|
|
1805
1649
|
id: string;
|
|
1806
1650
|
name: string;
|
|
@@ -2280,945 +2124,101 @@ declare class AXMMeetingTypeFileTemplateDataSeeder implements AXPDataSeeder {
|
|
|
2280
2124
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXMMeetingTypeFileTemplateDataSeeder>;
|
|
2281
2125
|
}
|
|
2282
2126
|
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2127
|
+
declare class AXCLockService implements AXPLockService {
|
|
2128
|
+
private className;
|
|
2129
|
+
private db;
|
|
2130
|
+
constructor();
|
|
2131
|
+
private get lockTable();
|
|
2132
|
+
protected entityName: string;
|
|
2133
|
+
/**
|
|
2134
|
+
* Cache Time-To-Live in milliseconds. Default is 5 seconds but can be overridden
|
|
2135
|
+
* at runtime using {@link setCacheDuration}.
|
|
2136
|
+
*/
|
|
2137
|
+
private cacheTTL;
|
|
2138
|
+
/** In-memory cache for lock information. */
|
|
2139
|
+
private readonly cacheMap;
|
|
2140
|
+
/** Reference to the recurring cache-flush timer. */
|
|
2141
|
+
private cacheTimer;
|
|
2142
|
+
/**
|
|
2143
|
+
* Generates a unique cache key based on the lock request parameters.
|
|
2144
|
+
*/
|
|
2145
|
+
private getCacheKey;
|
|
2146
|
+
/**
|
|
2147
|
+
* Starts or restarts the interval that clears the cache.
|
|
2148
|
+
*/
|
|
2149
|
+
private startCacheTimer;
|
|
2150
|
+
/**
|
|
2151
|
+
* Allows consumers to change the cache duration (in milliseconds) at runtime.
|
|
2152
|
+
* The new duration is applied immediately.
|
|
2153
|
+
*/
|
|
2154
|
+
setCacheDuration(ms: number): void;
|
|
2155
|
+
lock(request: AXPLockRequest): Promise<AXPLockInfo>;
|
|
2156
|
+
unlock(request: AXPUnLockRequest): Promise<void>;
|
|
2157
|
+
check(request: AXPLockGetInfoRequest): Promise<boolean>;
|
|
2158
|
+
getInfo(request: AXPLockGetInfoRequest): Promise<AXPLockInfo>;
|
|
2159
|
+
getItems(request: AXPLockGetInfoRequest): Promise<AXPLockInfo[]>;
|
|
2160
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCLockService, never>;
|
|
2161
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXCLockService>;
|
|
2307
2162
|
}
|
|
2308
2163
|
|
|
2309
|
-
declare
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
}
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
title: string;
|
|
2329
|
-
description: string;
|
|
2330
|
-
code: string;
|
|
2331
|
-
categoryIds: string[];
|
|
2332
|
-
categories: {
|
|
2333
|
-
id: string;
|
|
2334
|
-
title: string;
|
|
2335
|
-
}[];
|
|
2336
|
-
relatedCourseIds: string[];
|
|
2337
|
-
}[];
|
|
2338
|
-
declare const learningCourseTypeMock: {
|
|
2164
|
+
declare class AXCFileStorageService implements AXPFileStorageService {
|
|
2165
|
+
private fileService;
|
|
2166
|
+
private mapToFileStorageInfo;
|
|
2167
|
+
save(request: AXPFileStorageCreateRequest): Promise<AXPFileStorageInfo>;
|
|
2168
|
+
commit(fileId: string): Promise<void>;
|
|
2169
|
+
markForDeletion(fileId: string): Promise<void>;
|
|
2170
|
+
update(request: AXPFileStorageUpdateRequest): Promise<AXPFileStorageInfo>;
|
|
2171
|
+
find(request: AXPFileStorageFindRequest): Promise<AXPFileStorageInfo[]>;
|
|
2172
|
+
getInfo(fileId: string): Promise<AXPFileStorageInfo>;
|
|
2173
|
+
remove(fileId: string): Promise<void>;
|
|
2174
|
+
private cleanupTemporaryFiles;
|
|
2175
|
+
private cleanupMarkedFiles;
|
|
2176
|
+
constructor();
|
|
2177
|
+
findMany(ids: string[]): Promise<AXPFileManyStorageInfo[]>;
|
|
2178
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCFileStorageService, never>;
|
|
2179
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXCFileStorageService>;
|
|
2180
|
+
}
|
|
2181
|
+
|
|
2182
|
+
interface AXPVersionStream {
|
|
2339
2183
|
id: string;
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
}
|
|
2344
|
-
declare
|
|
2184
|
+
entityType: string;
|
|
2185
|
+
entityId: string;
|
|
2186
|
+
createdAt: string;
|
|
2187
|
+
}
|
|
2188
|
+
declare enum AXVChangeType {
|
|
2189
|
+
Create = "Create",
|
|
2190
|
+
Update = "Update",
|
|
2191
|
+
Delete = "Delete"
|
|
2192
|
+
}
|
|
2193
|
+
type CanonicalChangeOp = 'add' | 'remove' | 'replace' | 'rename' | 'metadata';
|
|
2194
|
+
interface CanonicalChange {
|
|
2195
|
+
path: string;
|
|
2196
|
+
op: CanonicalChangeOp;
|
|
2197
|
+
oldValue?: unknown;
|
|
2198
|
+
newValue?: unknown;
|
|
2199
|
+
meta?: Record<string, unknown>;
|
|
2200
|
+
}
|
|
2201
|
+
interface AXPVersionEntry {
|
|
2345
2202
|
id: string;
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
title: string;
|
|
2366
|
-
}>;
|
|
2367
|
-
}[];
|
|
2368
|
-
declare const learningTrainingTypeMock: {
|
|
2369
|
-
id: string;
|
|
2370
|
-
name: string;
|
|
2371
|
-
description: string;
|
|
2372
|
-
}[];
|
|
2373
|
-
declare const learningTrainingDefinitionMock: ({
|
|
2374
|
-
id: string;
|
|
2375
|
-
title: string;
|
|
2376
|
-
description: string;
|
|
2377
|
-
courseId: string;
|
|
2378
|
-
course: {
|
|
2379
|
-
id: string;
|
|
2380
|
-
title: string;
|
|
2381
|
-
};
|
|
2382
|
-
trainingTypeId: string;
|
|
2383
|
-
trainingType: {
|
|
2384
|
-
id: string;
|
|
2385
|
-
name: string;
|
|
2386
|
-
description: string;
|
|
2387
|
-
};
|
|
2388
|
-
defaultDurationHours: number;
|
|
2389
|
-
defaultCapacity: number;
|
|
2390
|
-
defaultLocationId: string;
|
|
2391
|
-
defaultLocation: AXMLocationManagementLocationMockModel;
|
|
2392
|
-
isActive: boolean;
|
|
2393
|
-
} | {
|
|
2394
|
-
id: string;
|
|
2395
|
-
title: string;
|
|
2396
|
-
description: string;
|
|
2397
|
-
courseId: string;
|
|
2398
|
-
course: {
|
|
2399
|
-
id: string;
|
|
2400
|
-
title: string;
|
|
2401
|
-
};
|
|
2402
|
-
trainingTypeId: string;
|
|
2403
|
-
trainingType: {
|
|
2404
|
-
id: string;
|
|
2405
|
-
name: string;
|
|
2406
|
-
description: string;
|
|
2407
|
-
};
|
|
2408
|
-
defaultDurationHours: number;
|
|
2409
|
-
defaultCapacity: number;
|
|
2410
|
-
defaultLocationId: null;
|
|
2411
|
-
defaultLocation: null;
|
|
2412
|
-
isActive: boolean;
|
|
2413
|
-
})[];
|
|
2414
|
-
declare const learningTrainingMock: ({
|
|
2415
|
-
id: string;
|
|
2416
|
-
trainingDefinitionId: string;
|
|
2417
|
-
trainingDefinition: {
|
|
2418
|
-
id: string;
|
|
2419
|
-
title: string;
|
|
2420
|
-
};
|
|
2421
|
-
courseId: string;
|
|
2422
|
-
course: {
|
|
2423
|
-
id: string;
|
|
2424
|
-
code: string;
|
|
2425
|
-
title: string;
|
|
2426
|
-
description: string;
|
|
2427
|
-
courseTypeId: string;
|
|
2428
|
-
courseType: {
|
|
2429
|
-
id: string;
|
|
2430
|
-
name: string;
|
|
2431
|
-
description: string;
|
|
2432
|
-
deliveryMode: string;
|
|
2433
|
-
};
|
|
2434
|
-
durationHours: number;
|
|
2435
|
-
relatedSkillIds: string[];
|
|
2436
|
-
skills: {
|
|
2437
|
-
id: string;
|
|
2438
|
-
title: string;
|
|
2439
|
-
}[];
|
|
2440
|
-
certificateDefinitionIds: string[];
|
|
2441
|
-
certificateDefinitions: Array<{
|
|
2442
|
-
id: string;
|
|
2443
|
-
title: string;
|
|
2444
|
-
}>;
|
|
2445
|
-
};
|
|
2446
|
-
trainingTypeId: string;
|
|
2447
|
-
trainingType: {
|
|
2448
|
-
id: string;
|
|
2449
|
-
name: string;
|
|
2450
|
-
description: string;
|
|
2451
|
-
};
|
|
2452
|
-
startDate: Date;
|
|
2453
|
-
endDate: Date;
|
|
2454
|
-
locationId: string;
|
|
2455
|
-
location: AXMLocationManagementLocationMockModel;
|
|
2456
|
-
instructorId: string;
|
|
2457
|
-
instructor: {
|
|
2458
|
-
id: string;
|
|
2459
|
-
displayName: string;
|
|
2460
|
-
} | null;
|
|
2461
|
-
capacity: number;
|
|
2462
|
-
status: "Open";
|
|
2463
|
-
notes: string;
|
|
2464
|
-
} | {
|
|
2465
|
-
id: string;
|
|
2466
|
-
trainingDefinitionId: string;
|
|
2467
|
-
trainingDefinition: {
|
|
2468
|
-
id: string;
|
|
2469
|
-
title: string;
|
|
2470
|
-
};
|
|
2471
|
-
courseId: string;
|
|
2472
|
-
course: {
|
|
2473
|
-
id: string;
|
|
2474
|
-
code: string;
|
|
2475
|
-
title: string;
|
|
2476
|
-
description: string;
|
|
2477
|
-
courseTypeId: string;
|
|
2478
|
-
courseType: {
|
|
2479
|
-
id: string;
|
|
2480
|
-
name: string;
|
|
2481
|
-
description: string;
|
|
2482
|
-
deliveryMode: string;
|
|
2483
|
-
};
|
|
2484
|
-
durationHours: number;
|
|
2485
|
-
relatedSkillIds: string[];
|
|
2486
|
-
skills: {
|
|
2487
|
-
id: string;
|
|
2488
|
-
title: string;
|
|
2489
|
-
}[];
|
|
2490
|
-
certificateDefinitionIds: string[];
|
|
2491
|
-
certificateDefinitions: Array<{
|
|
2492
|
-
id: string;
|
|
2493
|
-
title: string;
|
|
2494
|
-
}>;
|
|
2495
|
-
};
|
|
2496
|
-
trainingTypeId: string;
|
|
2497
|
-
trainingType: {
|
|
2498
|
-
id: string;
|
|
2499
|
-
name: string;
|
|
2500
|
-
description: string;
|
|
2501
|
-
};
|
|
2502
|
-
startDate: Date;
|
|
2503
|
-
endDate: Date;
|
|
2504
|
-
locationId: null;
|
|
2505
|
-
location: null;
|
|
2506
|
-
instructorId: string;
|
|
2507
|
-
instructor: {
|
|
2508
|
-
id: string;
|
|
2509
|
-
displayName: string;
|
|
2510
|
-
} | null;
|
|
2511
|
-
capacity: number;
|
|
2512
|
-
status: "Draft";
|
|
2513
|
-
notes: string;
|
|
2514
|
-
})[];
|
|
2515
|
-
declare const learningEnrollmentMock: ({
|
|
2516
|
-
id: string;
|
|
2517
|
-
employeeId: string;
|
|
2518
|
-
employee: {
|
|
2519
|
-
id: string;
|
|
2520
|
-
displayName: string;
|
|
2521
|
-
} | null;
|
|
2522
|
-
trainingId: string;
|
|
2523
|
-
training: {
|
|
2524
|
-
id: string;
|
|
2525
|
-
title: string;
|
|
2526
|
-
};
|
|
2527
|
-
status: "Approved";
|
|
2528
|
-
workflowInstanceId: null;
|
|
2529
|
-
notes: string;
|
|
2530
|
-
} | {
|
|
2531
|
-
id: string;
|
|
2532
|
-
employeeId: string;
|
|
2533
|
-
employee: {
|
|
2534
|
-
id: string;
|
|
2535
|
-
displayName: string;
|
|
2536
|
-
} | null;
|
|
2537
|
-
trainingId: string;
|
|
2538
|
-
training: {
|
|
2539
|
-
id: string;
|
|
2540
|
-
title: string;
|
|
2541
|
-
};
|
|
2542
|
-
status: "Requested";
|
|
2543
|
-
workflowInstanceId: null;
|
|
2544
|
-
notes: string;
|
|
2545
|
-
})[];
|
|
2546
|
-
declare const learningAttendanceMock: ({
|
|
2547
|
-
id: string;
|
|
2548
|
-
enrollmentId: string;
|
|
2549
|
-
enrollment: {
|
|
2550
|
-
id: string;
|
|
2551
|
-
trainingId: string;
|
|
2552
|
-
};
|
|
2553
|
-
sessionDate: Date;
|
|
2554
|
-
status: "Present";
|
|
2555
|
-
notes: string;
|
|
2556
|
-
} | {
|
|
2557
|
-
id: string;
|
|
2558
|
-
enrollmentId: string;
|
|
2559
|
-
enrollment: {
|
|
2560
|
-
id: string;
|
|
2561
|
-
trainingId: string;
|
|
2562
|
-
};
|
|
2563
|
-
sessionDate: Date;
|
|
2564
|
-
status: "Late";
|
|
2565
|
-
notes: string;
|
|
2566
|
-
})[];
|
|
2567
|
-
declare const learningEmployeeSkillMock: ({
|
|
2568
|
-
id: string;
|
|
2569
|
-
employeeId: string;
|
|
2570
|
-
employee: {
|
|
2571
|
-
id: string;
|
|
2572
|
-
displayName: string;
|
|
2573
|
-
} | null;
|
|
2574
|
-
skillId: string;
|
|
2575
|
-
skill: {
|
|
2576
|
-
id: string;
|
|
2577
|
-
title: string;
|
|
2578
|
-
};
|
|
2579
|
-
levelId: string;
|
|
2580
|
-
level: {
|
|
2581
|
-
id: string;
|
|
2582
|
-
name: string;
|
|
2583
|
-
};
|
|
2584
|
-
source: "Training";
|
|
2585
|
-
verifiedBy: string;
|
|
2586
|
-
verifier: {
|
|
2587
|
-
id: string;
|
|
2588
|
-
displayName: string;
|
|
2589
|
-
} | null;
|
|
2590
|
-
verifiedAt: Date;
|
|
2591
|
-
notes: string;
|
|
2592
|
-
} | {
|
|
2593
|
-
id: string;
|
|
2594
|
-
employeeId: string;
|
|
2595
|
-
employee: {
|
|
2596
|
-
id: string;
|
|
2597
|
-
displayName: string;
|
|
2598
|
-
} | null;
|
|
2599
|
-
skillId: string;
|
|
2600
|
-
skill: {
|
|
2601
|
-
id: string;
|
|
2602
|
-
title: string;
|
|
2603
|
-
};
|
|
2604
|
-
levelId: string;
|
|
2605
|
-
level: {
|
|
2606
|
-
id: string;
|
|
2607
|
-
name: string;
|
|
2608
|
-
};
|
|
2609
|
-
source: "Assessment";
|
|
2610
|
-
verifiedBy: string;
|
|
2611
|
-
verifier: {
|
|
2612
|
-
id: string;
|
|
2613
|
-
displayName: string;
|
|
2614
|
-
} | null;
|
|
2615
|
-
verifiedAt: Date;
|
|
2616
|
-
notes: string;
|
|
2617
|
-
})[];
|
|
2618
|
-
declare const learningCertificateTypeMock: {
|
|
2619
|
-
id: string;
|
|
2620
|
-
name: string;
|
|
2621
|
-
description: string;
|
|
2622
|
-
validityDays: number;
|
|
2623
|
-
templateId: null;
|
|
2624
|
-
}[];
|
|
2625
|
-
declare const learningCertificateDefinitionMock: {
|
|
2626
|
-
id: string;
|
|
2627
|
-
title: string;
|
|
2628
|
-
description: string;
|
|
2629
|
-
certificateTypeId: string;
|
|
2630
|
-
certificateType: {
|
|
2631
|
-
id: string;
|
|
2632
|
-
name: string;
|
|
2633
|
-
description: string;
|
|
2634
|
-
validityDays: number;
|
|
2635
|
-
templateId: null;
|
|
2636
|
-
};
|
|
2637
|
-
courseId: string;
|
|
2638
|
-
course: {
|
|
2639
|
-
id: string;
|
|
2640
|
-
title: string;
|
|
2641
|
-
};
|
|
2642
|
-
validityDays: number;
|
|
2643
|
-
templateId: null;
|
|
2644
|
-
isActive: boolean;
|
|
2645
|
-
}[];
|
|
2646
|
-
declare const learningCertificateMock: {
|
|
2647
|
-
id: string;
|
|
2648
|
-
certificateDefinitionId: string;
|
|
2649
|
-
certificateDefinition: {
|
|
2650
|
-
id: string;
|
|
2651
|
-
title: string;
|
|
2652
|
-
};
|
|
2653
|
-
certificateTypeId: string;
|
|
2654
|
-
certificateType: {
|
|
2655
|
-
id: string;
|
|
2656
|
-
name: string;
|
|
2657
|
-
description: string;
|
|
2658
|
-
validityDays: number;
|
|
2659
|
-
templateId: null;
|
|
2660
|
-
};
|
|
2661
|
-
employeeId: string;
|
|
2662
|
-
employee: {
|
|
2663
|
-
id: string;
|
|
2664
|
-
displayName: string;
|
|
2665
|
-
} | null;
|
|
2666
|
-
courseId: string;
|
|
2667
|
-
course: {
|
|
2668
|
-
id: string;
|
|
2669
|
-
title: string;
|
|
2670
|
-
};
|
|
2671
|
-
issueDate: Date;
|
|
2672
|
-
expiryDate: Date;
|
|
2673
|
-
fileId: null;
|
|
2674
|
-
notes: string;
|
|
2675
|
-
}[];
|
|
2676
|
-
declare const learningLearningPathMock: {
|
|
2677
|
-
id: string;
|
|
2678
|
-
name: string;
|
|
2679
|
-
description: string;
|
|
2680
|
-
isActive: boolean;
|
|
2681
|
-
}[];
|
|
2682
|
-
declare const learningLearningPathCourseMock: {
|
|
2683
|
-
id: string;
|
|
2684
|
-
learningPathId: string;
|
|
2685
|
-
courseId: string;
|
|
2686
|
-
course: {
|
|
2687
|
-
id: string;
|
|
2688
|
-
title: string;
|
|
2689
|
-
};
|
|
2690
|
-
orderIndex: number;
|
|
2691
|
-
}[];
|
|
2692
|
-
declare const learningMandatoryTrainingRuleMock: {
|
|
2693
|
-
id: string;
|
|
2694
|
-
positionId: string;
|
|
2695
|
-
position: {
|
|
2696
|
-
id: string;
|
|
2697
|
-
title: string;
|
|
2698
|
-
} | null;
|
|
2699
|
-
courseId: string;
|
|
2700
|
-
course: {
|
|
2701
|
-
id: string;
|
|
2702
|
-
title: string;
|
|
2703
|
-
};
|
|
2704
|
-
frequencyMonths: number;
|
|
2705
|
-
notes: string;
|
|
2706
|
-
}[];
|
|
2707
|
-
declare const learningManagementMockData: {
|
|
2708
|
-
categories: ({
|
|
2709
|
-
id: string;
|
|
2710
|
-
title: string;
|
|
2711
|
-
description: string;
|
|
2712
|
-
parentId: null;
|
|
2713
|
-
} | {
|
|
2714
|
-
id: string;
|
|
2715
|
-
title: string;
|
|
2716
|
-
description: string;
|
|
2717
|
-
parentId: string;
|
|
2718
|
-
})[];
|
|
2719
|
-
skills: {
|
|
2720
|
-
id: string;
|
|
2721
|
-
title: string;
|
|
2722
|
-
description: string;
|
|
2723
|
-
code: string;
|
|
2724
|
-
categoryIds: string[];
|
|
2725
|
-
categories: {
|
|
2726
|
-
id: string;
|
|
2727
|
-
title: string;
|
|
2728
|
-
}[];
|
|
2729
|
-
relatedCourseIds: string[];
|
|
2730
|
-
}[];
|
|
2731
|
-
skillLevels: {
|
|
2732
|
-
id: string;
|
|
2733
|
-
name: string;
|
|
2734
|
-
levelNumber: number;
|
|
2735
|
-
description: string;
|
|
2736
|
-
}[];
|
|
2737
|
-
employeeSkills: ({
|
|
2738
|
-
id: string;
|
|
2739
|
-
employeeId: string;
|
|
2740
|
-
employee: {
|
|
2741
|
-
id: string;
|
|
2742
|
-
displayName: string;
|
|
2743
|
-
} | null;
|
|
2744
|
-
skillId: string;
|
|
2745
|
-
skill: {
|
|
2746
|
-
id: string;
|
|
2747
|
-
title: string;
|
|
2748
|
-
};
|
|
2749
|
-
levelId: string;
|
|
2750
|
-
level: {
|
|
2751
|
-
id: string;
|
|
2752
|
-
name: string;
|
|
2753
|
-
};
|
|
2754
|
-
source: "Training";
|
|
2755
|
-
verifiedBy: string;
|
|
2756
|
-
verifier: {
|
|
2757
|
-
id: string;
|
|
2758
|
-
displayName: string;
|
|
2759
|
-
} | null;
|
|
2760
|
-
verifiedAt: Date;
|
|
2761
|
-
notes: string;
|
|
2762
|
-
} | {
|
|
2763
|
-
id: string;
|
|
2764
|
-
employeeId: string;
|
|
2765
|
-
employee: {
|
|
2766
|
-
id: string;
|
|
2767
|
-
displayName: string;
|
|
2768
|
-
} | null;
|
|
2769
|
-
skillId: string;
|
|
2770
|
-
skill: {
|
|
2771
|
-
id: string;
|
|
2772
|
-
title: string;
|
|
2773
|
-
};
|
|
2774
|
-
levelId: string;
|
|
2775
|
-
level: {
|
|
2776
|
-
id: string;
|
|
2777
|
-
name: string;
|
|
2778
|
-
};
|
|
2779
|
-
source: "Assessment";
|
|
2780
|
-
verifiedBy: string;
|
|
2781
|
-
verifier: {
|
|
2782
|
-
id: string;
|
|
2783
|
-
displayName: string;
|
|
2784
|
-
} | null;
|
|
2785
|
-
verifiedAt: Date;
|
|
2786
|
-
notes: string;
|
|
2787
|
-
})[];
|
|
2788
|
-
courseTypes: {
|
|
2789
|
-
id: string;
|
|
2790
|
-
name: string;
|
|
2791
|
-
description: string;
|
|
2792
|
-
deliveryMode: string;
|
|
2793
|
-
}[];
|
|
2794
|
-
courses: {
|
|
2795
|
-
id: string;
|
|
2796
|
-
code: string;
|
|
2797
|
-
title: string;
|
|
2798
|
-
description: string;
|
|
2799
|
-
courseTypeId: string;
|
|
2800
|
-
courseType: {
|
|
2801
|
-
id: string;
|
|
2802
|
-
name: string;
|
|
2803
|
-
description: string;
|
|
2804
|
-
deliveryMode: string;
|
|
2805
|
-
};
|
|
2806
|
-
durationHours: number;
|
|
2807
|
-
relatedSkillIds: string[];
|
|
2808
|
-
skills: {
|
|
2809
|
-
id: string;
|
|
2810
|
-
title: string;
|
|
2811
|
-
}[];
|
|
2812
|
-
certificateDefinitionIds: string[];
|
|
2813
|
-
certificateDefinitions: Array<{
|
|
2814
|
-
id: string;
|
|
2815
|
-
title: string;
|
|
2816
|
-
}>;
|
|
2817
|
-
}[];
|
|
2818
|
-
trainingTypes: {
|
|
2819
|
-
id: string;
|
|
2820
|
-
name: string;
|
|
2821
|
-
description: string;
|
|
2822
|
-
}[];
|
|
2823
|
-
trainingDefinitions: ({
|
|
2824
|
-
id: string;
|
|
2825
|
-
title: string;
|
|
2826
|
-
description: string;
|
|
2827
|
-
courseId: string;
|
|
2828
|
-
course: {
|
|
2829
|
-
id: string;
|
|
2830
|
-
title: string;
|
|
2831
|
-
};
|
|
2832
|
-
trainingTypeId: string;
|
|
2833
|
-
trainingType: {
|
|
2834
|
-
id: string;
|
|
2835
|
-
name: string;
|
|
2836
|
-
description: string;
|
|
2837
|
-
};
|
|
2838
|
-
defaultDurationHours: number;
|
|
2839
|
-
defaultCapacity: number;
|
|
2840
|
-
defaultLocationId: string;
|
|
2841
|
-
defaultLocation: AXMLocationManagementLocationMockModel;
|
|
2842
|
-
isActive: boolean;
|
|
2843
|
-
} | {
|
|
2844
|
-
id: string;
|
|
2845
|
-
title: string;
|
|
2846
|
-
description: string;
|
|
2847
|
-
courseId: string;
|
|
2848
|
-
course: {
|
|
2849
|
-
id: string;
|
|
2850
|
-
title: string;
|
|
2851
|
-
};
|
|
2852
|
-
trainingTypeId: string;
|
|
2853
|
-
trainingType: {
|
|
2854
|
-
id: string;
|
|
2855
|
-
name: string;
|
|
2856
|
-
description: string;
|
|
2857
|
-
};
|
|
2858
|
-
defaultDurationHours: number;
|
|
2859
|
-
defaultCapacity: number;
|
|
2860
|
-
defaultLocationId: null;
|
|
2861
|
-
defaultLocation: null;
|
|
2862
|
-
isActive: boolean;
|
|
2863
|
-
})[];
|
|
2864
|
-
trainings: ({
|
|
2865
|
-
id: string;
|
|
2866
|
-
trainingDefinitionId: string;
|
|
2867
|
-
trainingDefinition: {
|
|
2868
|
-
id: string;
|
|
2869
|
-
title: string;
|
|
2870
|
-
};
|
|
2871
|
-
courseId: string;
|
|
2872
|
-
course: {
|
|
2873
|
-
id: string;
|
|
2874
|
-
code: string;
|
|
2875
|
-
title: string;
|
|
2876
|
-
description: string;
|
|
2877
|
-
courseTypeId: string;
|
|
2878
|
-
courseType: {
|
|
2879
|
-
id: string;
|
|
2880
|
-
name: string;
|
|
2881
|
-
description: string;
|
|
2882
|
-
deliveryMode: string;
|
|
2883
|
-
};
|
|
2884
|
-
durationHours: number;
|
|
2885
|
-
relatedSkillIds: string[];
|
|
2886
|
-
skills: {
|
|
2887
|
-
id: string;
|
|
2888
|
-
title: string;
|
|
2889
|
-
}[];
|
|
2890
|
-
certificateDefinitionIds: string[];
|
|
2891
|
-
certificateDefinitions: Array<{
|
|
2892
|
-
id: string;
|
|
2893
|
-
title: string;
|
|
2894
|
-
}>;
|
|
2895
|
-
};
|
|
2896
|
-
trainingTypeId: string;
|
|
2897
|
-
trainingType: {
|
|
2898
|
-
id: string;
|
|
2899
|
-
name: string;
|
|
2900
|
-
description: string;
|
|
2901
|
-
};
|
|
2902
|
-
startDate: Date;
|
|
2903
|
-
endDate: Date;
|
|
2904
|
-
locationId: string;
|
|
2905
|
-
location: AXMLocationManagementLocationMockModel;
|
|
2906
|
-
instructorId: string;
|
|
2907
|
-
instructor: {
|
|
2908
|
-
id: string;
|
|
2909
|
-
displayName: string;
|
|
2910
|
-
} | null;
|
|
2911
|
-
capacity: number;
|
|
2912
|
-
status: "Open";
|
|
2913
|
-
notes: string;
|
|
2914
|
-
} | {
|
|
2915
|
-
id: string;
|
|
2916
|
-
trainingDefinitionId: string;
|
|
2917
|
-
trainingDefinition: {
|
|
2918
|
-
id: string;
|
|
2919
|
-
title: string;
|
|
2920
|
-
};
|
|
2921
|
-
courseId: string;
|
|
2922
|
-
course: {
|
|
2923
|
-
id: string;
|
|
2924
|
-
code: string;
|
|
2925
|
-
title: string;
|
|
2926
|
-
description: string;
|
|
2927
|
-
courseTypeId: string;
|
|
2928
|
-
courseType: {
|
|
2929
|
-
id: string;
|
|
2930
|
-
name: string;
|
|
2931
|
-
description: string;
|
|
2932
|
-
deliveryMode: string;
|
|
2933
|
-
};
|
|
2934
|
-
durationHours: number;
|
|
2935
|
-
relatedSkillIds: string[];
|
|
2936
|
-
skills: {
|
|
2937
|
-
id: string;
|
|
2938
|
-
title: string;
|
|
2939
|
-
}[];
|
|
2940
|
-
certificateDefinitionIds: string[];
|
|
2941
|
-
certificateDefinitions: Array<{
|
|
2942
|
-
id: string;
|
|
2943
|
-
title: string;
|
|
2944
|
-
}>;
|
|
2945
|
-
};
|
|
2946
|
-
trainingTypeId: string;
|
|
2947
|
-
trainingType: {
|
|
2948
|
-
id: string;
|
|
2949
|
-
name: string;
|
|
2950
|
-
description: string;
|
|
2951
|
-
};
|
|
2952
|
-
startDate: Date;
|
|
2953
|
-
endDate: Date;
|
|
2954
|
-
locationId: null;
|
|
2955
|
-
location: null;
|
|
2956
|
-
instructorId: string;
|
|
2957
|
-
instructor: {
|
|
2958
|
-
id: string;
|
|
2959
|
-
displayName: string;
|
|
2960
|
-
} | null;
|
|
2961
|
-
capacity: number;
|
|
2962
|
-
status: "Draft";
|
|
2963
|
-
notes: string;
|
|
2964
|
-
})[];
|
|
2965
|
-
enrollments: ({
|
|
2966
|
-
id: string;
|
|
2967
|
-
employeeId: string;
|
|
2968
|
-
employee: {
|
|
2969
|
-
id: string;
|
|
2970
|
-
displayName: string;
|
|
2971
|
-
} | null;
|
|
2972
|
-
trainingId: string;
|
|
2973
|
-
training: {
|
|
2974
|
-
id: string;
|
|
2975
|
-
title: string;
|
|
2976
|
-
};
|
|
2977
|
-
status: "Approved";
|
|
2978
|
-
workflowInstanceId: null;
|
|
2979
|
-
notes: string;
|
|
2980
|
-
} | {
|
|
2981
|
-
id: string;
|
|
2982
|
-
employeeId: string;
|
|
2983
|
-
employee: {
|
|
2984
|
-
id: string;
|
|
2985
|
-
displayName: string;
|
|
2986
|
-
} | null;
|
|
2987
|
-
trainingId: string;
|
|
2988
|
-
training: {
|
|
2989
|
-
id: string;
|
|
2990
|
-
title: string;
|
|
2991
|
-
};
|
|
2992
|
-
status: "Requested";
|
|
2993
|
-
workflowInstanceId: null;
|
|
2994
|
-
notes: string;
|
|
2995
|
-
})[];
|
|
2996
|
-
attendance: ({
|
|
2997
|
-
id: string;
|
|
2998
|
-
enrollmentId: string;
|
|
2999
|
-
enrollment: {
|
|
3000
|
-
id: string;
|
|
3001
|
-
trainingId: string;
|
|
3002
|
-
};
|
|
3003
|
-
sessionDate: Date;
|
|
3004
|
-
status: "Present";
|
|
3005
|
-
notes: string;
|
|
3006
|
-
} | {
|
|
3007
|
-
id: string;
|
|
3008
|
-
enrollmentId: string;
|
|
3009
|
-
enrollment: {
|
|
3010
|
-
id: string;
|
|
3011
|
-
trainingId: string;
|
|
3012
|
-
};
|
|
3013
|
-
sessionDate: Date;
|
|
3014
|
-
status: "Late";
|
|
3015
|
-
notes: string;
|
|
3016
|
-
})[];
|
|
3017
|
-
certificateTypes: {
|
|
3018
|
-
id: string;
|
|
3019
|
-
name: string;
|
|
3020
|
-
description: string;
|
|
3021
|
-
validityDays: number;
|
|
3022
|
-
templateId: null;
|
|
3023
|
-
}[];
|
|
3024
|
-
certificateDefinitions: {
|
|
3025
|
-
id: string;
|
|
3026
|
-
title: string;
|
|
3027
|
-
description: string;
|
|
3028
|
-
certificateTypeId: string;
|
|
3029
|
-
certificateType: {
|
|
3030
|
-
id: string;
|
|
3031
|
-
name: string;
|
|
3032
|
-
description: string;
|
|
3033
|
-
validityDays: number;
|
|
3034
|
-
templateId: null;
|
|
3035
|
-
};
|
|
3036
|
-
courseId: string;
|
|
3037
|
-
course: {
|
|
3038
|
-
id: string;
|
|
3039
|
-
title: string;
|
|
3040
|
-
};
|
|
3041
|
-
validityDays: number;
|
|
3042
|
-
templateId: null;
|
|
3043
|
-
isActive: boolean;
|
|
3044
|
-
}[];
|
|
3045
|
-
certificates: {
|
|
3046
|
-
id: string;
|
|
3047
|
-
certificateDefinitionId: string;
|
|
3048
|
-
certificateDefinition: {
|
|
3049
|
-
id: string;
|
|
3050
|
-
title: string;
|
|
3051
|
-
};
|
|
3052
|
-
certificateTypeId: string;
|
|
3053
|
-
certificateType: {
|
|
3054
|
-
id: string;
|
|
3055
|
-
name: string;
|
|
3056
|
-
description: string;
|
|
3057
|
-
validityDays: number;
|
|
3058
|
-
templateId: null;
|
|
3059
|
-
};
|
|
3060
|
-
employeeId: string;
|
|
3061
|
-
employee: {
|
|
3062
|
-
id: string;
|
|
3063
|
-
displayName: string;
|
|
3064
|
-
} | null;
|
|
3065
|
-
courseId: string;
|
|
3066
|
-
course: {
|
|
3067
|
-
id: string;
|
|
3068
|
-
title: string;
|
|
3069
|
-
};
|
|
3070
|
-
issueDate: Date;
|
|
3071
|
-
expiryDate: Date;
|
|
3072
|
-
fileId: null;
|
|
3073
|
-
notes: string;
|
|
3074
|
-
}[];
|
|
3075
|
-
learningPaths: {
|
|
3076
|
-
id: string;
|
|
3077
|
-
name: string;
|
|
3078
|
-
description: string;
|
|
3079
|
-
isActive: boolean;
|
|
3080
|
-
}[];
|
|
3081
|
-
learningPathCourses: {
|
|
3082
|
-
id: string;
|
|
3083
|
-
learningPathId: string;
|
|
3084
|
-
courseId: string;
|
|
3085
|
-
course: {
|
|
3086
|
-
id: string;
|
|
3087
|
-
title: string;
|
|
3088
|
-
};
|
|
3089
|
-
orderIndex: number;
|
|
3090
|
-
}[];
|
|
3091
|
-
mandatoryTrainingRules: {
|
|
3092
|
-
id: string;
|
|
3093
|
-
positionId: string;
|
|
3094
|
-
position: {
|
|
3095
|
-
id: string;
|
|
3096
|
-
title: string;
|
|
3097
|
-
} | null;
|
|
3098
|
-
courseId: string;
|
|
3099
|
-
course: {
|
|
3100
|
-
id: string;
|
|
3101
|
-
title: string;
|
|
3102
|
-
};
|
|
3103
|
-
frequencyMonths: number;
|
|
3104
|
-
notes: string;
|
|
3105
|
-
}[];
|
|
3106
|
-
};
|
|
3107
|
-
declare const learningManagementEntityKeys: {
|
|
3108
|
-
skillCategory: string;
|
|
3109
|
-
skill: string;
|
|
3110
|
-
skillLevel: string;
|
|
3111
|
-
employeeSkill: string;
|
|
3112
|
-
courseType: string;
|
|
3113
|
-
course: string;
|
|
3114
|
-
trainingType: string;
|
|
3115
|
-
trainingDefinition: string;
|
|
3116
|
-
training: string;
|
|
3117
|
-
enrollment: string;
|
|
3118
|
-
attendance: string;
|
|
3119
|
-
certificateType: string;
|
|
3120
|
-
certificateDefinition: string;
|
|
3121
|
-
certificate: string;
|
|
3122
|
-
learningPath: string;
|
|
3123
|
-
learningPathCourse: string;
|
|
3124
|
-
mandatoryTrainingRule: string;
|
|
3125
|
-
};
|
|
3126
|
-
|
|
3127
|
-
declare class AXCLockService implements AXPLockService {
|
|
3128
|
-
private className;
|
|
3129
|
-
private db;
|
|
3130
|
-
constructor();
|
|
3131
|
-
private get lockTable();
|
|
3132
|
-
protected entityName: string;
|
|
3133
|
-
/**
|
|
3134
|
-
* Cache Time-To-Live in milliseconds. Default is 5 seconds but can be overridden
|
|
3135
|
-
* at runtime using {@link setCacheDuration}.
|
|
3136
|
-
*/
|
|
3137
|
-
private cacheTTL;
|
|
3138
|
-
/** In-memory cache for lock information. */
|
|
3139
|
-
private readonly cacheMap;
|
|
3140
|
-
/** Reference to the recurring cache-flush timer. */
|
|
3141
|
-
private cacheTimer;
|
|
3142
|
-
/**
|
|
3143
|
-
* Generates a unique cache key based on the lock request parameters.
|
|
3144
|
-
*/
|
|
3145
|
-
private getCacheKey;
|
|
3146
|
-
/**
|
|
3147
|
-
* Starts or restarts the interval that clears the cache.
|
|
3148
|
-
*/
|
|
3149
|
-
private startCacheTimer;
|
|
3150
|
-
/**
|
|
3151
|
-
* Allows consumers to change the cache duration (in milliseconds) at runtime.
|
|
3152
|
-
* The new duration is applied immediately.
|
|
3153
|
-
*/
|
|
3154
|
-
setCacheDuration(ms: number): void;
|
|
3155
|
-
lock(request: AXPLockRequest): Promise<AXPLockInfo>;
|
|
3156
|
-
unlock(request: AXPUnLockRequest): Promise<void>;
|
|
3157
|
-
check(request: AXPLockGetInfoRequest): Promise<boolean>;
|
|
3158
|
-
getInfo(request: AXPLockGetInfoRequest): Promise<AXPLockInfo>;
|
|
3159
|
-
getItems(request: AXPLockGetInfoRequest): Promise<AXPLockInfo[]>;
|
|
3160
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXCLockService, never>;
|
|
3161
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXCLockService>;
|
|
3162
|
-
}
|
|
3163
|
-
|
|
3164
|
-
declare class AXCFileStorageService implements AXPFileStorageService {
|
|
3165
|
-
private fileService;
|
|
3166
|
-
private mapToFileStorageInfo;
|
|
3167
|
-
save(request: AXPFileStorageCreateRequest): Promise<AXPFileStorageInfo>;
|
|
3168
|
-
commit(fileId: string): Promise<void>;
|
|
3169
|
-
markForDeletion(fileId: string): Promise<void>;
|
|
3170
|
-
update(request: AXPFileStorageUpdateRequest): Promise<AXPFileStorageInfo>;
|
|
3171
|
-
find(request: AXPFileStorageFindRequest): Promise<AXPFileStorageInfo[]>;
|
|
3172
|
-
getInfo(fileId: string): Promise<AXPFileStorageInfo>;
|
|
3173
|
-
remove(fileId: string): Promise<void>;
|
|
3174
|
-
private cleanupTemporaryFiles;
|
|
3175
|
-
private cleanupMarkedFiles;
|
|
3176
|
-
constructor();
|
|
3177
|
-
findMany(ids: string[]): Promise<AXPFileManyStorageInfo[]>;
|
|
3178
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXCFileStorageService, never>;
|
|
3179
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXCFileStorageService>;
|
|
3180
|
-
}
|
|
3181
|
-
|
|
3182
|
-
interface AXPVersionStream {
|
|
3183
|
-
id: string;
|
|
3184
|
-
entityType: string;
|
|
3185
|
-
entityId: string;
|
|
3186
|
-
createdAt: string;
|
|
3187
|
-
}
|
|
3188
|
-
declare enum AXVChangeType {
|
|
3189
|
-
Create = "Create",
|
|
3190
|
-
Update = "Update",
|
|
3191
|
-
Delete = "Delete"
|
|
3192
|
-
}
|
|
3193
|
-
type CanonicalChangeOp = 'add' | 'remove' | 'replace' | 'rename' | 'metadata';
|
|
3194
|
-
interface CanonicalChange {
|
|
3195
|
-
path: string;
|
|
3196
|
-
op: CanonicalChangeOp;
|
|
3197
|
-
oldValue?: unknown;
|
|
3198
|
-
newValue?: unknown;
|
|
3199
|
-
meta?: Record<string, unknown>;
|
|
3200
|
-
}
|
|
3201
|
-
interface AXPVersionEntry {
|
|
3202
|
-
id: string;
|
|
3203
|
-
streamId: string;
|
|
3204
|
-
versionNumber: number;
|
|
3205
|
-
changeType: AXVChangeType;
|
|
3206
|
-
changedBy: string;
|
|
3207
|
-
changedAt: string;
|
|
3208
|
-
snapshotJson: unknown;
|
|
3209
|
-
patchFromPrevJson: CanonicalChange[];
|
|
3210
|
-
summary?: string;
|
|
3211
|
-
metadataJson?: unknown;
|
|
3212
|
-
}
|
|
3213
|
-
interface AXPVersionChange {
|
|
3214
|
-
id?: number;
|
|
3215
|
-
versionEntryId: string;
|
|
3216
|
-
path: string;
|
|
3217
|
-
op: CanonicalChangeOp;
|
|
3218
|
-
oldValue?: unknown;
|
|
3219
|
-
newValue?: unknown;
|
|
3220
|
-
}
|
|
3221
|
-
interface VersionedFileInfo {
|
|
2203
|
+
streamId: string;
|
|
2204
|
+
versionNumber: number;
|
|
2205
|
+
changeType: AXVChangeType;
|
|
2206
|
+
changedBy: string;
|
|
2207
|
+
changedAt: string;
|
|
2208
|
+
snapshotJson: unknown;
|
|
2209
|
+
patchFromPrevJson: CanonicalChange[];
|
|
2210
|
+
summary?: string;
|
|
2211
|
+
metadataJson?: unknown;
|
|
2212
|
+
}
|
|
2213
|
+
interface AXPVersionChange {
|
|
2214
|
+
id?: number;
|
|
2215
|
+
versionEntryId: string;
|
|
2216
|
+
path: string;
|
|
2217
|
+
op: CanonicalChangeOp;
|
|
2218
|
+
oldValue?: unknown;
|
|
2219
|
+
newValue?: unknown;
|
|
2220
|
+
}
|
|
2221
|
+
interface VersionedFileInfo {
|
|
3222
2222
|
id: string;
|
|
3223
2223
|
name: string;
|
|
3224
2224
|
size: number;
|
|
@@ -3282,14 +2282,35 @@ declare function normalizeAnyFileArrayForView(arr: any[], fileStorage: AXPFileSt
|
|
|
3282
2282
|
declare function normalizeSnapshotFileFieldsForView(snapshot: any, fileStorage: AXPFileStorageService): Promise<any>;
|
|
3283
2283
|
|
|
3284
2284
|
/**
|
|
3285
|
-
*
|
|
2285
|
+
* Bookmark entity for IndexedDB storage.
|
|
2286
|
+
* Aligns with ERD: BOOKMARK table structure.
|
|
2287
|
+
*/
|
|
2288
|
+
interface AXCBookmarkEntity {
|
|
2289
|
+
id: string;
|
|
2290
|
+
instanceId: string;
|
|
2291
|
+
activityId: string;
|
|
2292
|
+
type: string;
|
|
2293
|
+
hash: string;
|
|
2294
|
+
payloadJson: string;
|
|
2295
|
+
isConsumed: boolean;
|
|
2296
|
+
createdAt: string;
|
|
2297
|
+
}
|
|
2298
|
+
/**
|
|
2299
|
+
* Dexie database for workflow instances and bookmarks.
|
|
2300
|
+
* Aligns with ERD structure: WORKFLOW_INSTANCE + BOOKMARK tables.
|
|
3286
2301
|
*/
|
|
3287
2302
|
declare class AXCWorkflowExecutionDB extends Dexie {
|
|
3288
2303
|
/**
|
|
3289
2304
|
* Table for workflow instances.
|
|
3290
2305
|
* Uses id as primary key.
|
|
2306
|
+
* Aligns with WORKFLOW_INSTANCE table in ERD.
|
|
3291
2307
|
*/
|
|
3292
2308
|
instances: Table<AXPWorkflowInstance, string>;
|
|
2309
|
+
/**
|
|
2310
|
+
* Table for workflow bookmarks.
|
|
2311
|
+
* Aligns with BOOKMARK table in ERD.
|
|
2312
|
+
*/
|
|
2313
|
+
bookmarks: Table<AXCBookmarkEntity, string>;
|
|
3293
2314
|
constructor();
|
|
3294
2315
|
}
|
|
3295
2316
|
/**
|
|
@@ -3298,75 +2319,117 @@ declare class AXCWorkflowExecutionDB extends Dexie {
|
|
|
3298
2319
|
declare const axWorkflowExecutionDB: AXCWorkflowExecutionDB;
|
|
3299
2320
|
|
|
3300
2321
|
/**
|
|
3301
|
-
* Mock implementation of
|
|
2322
|
+
* Mock implementation of AXPWorkflowEngine.
|
|
3302
2323
|
*
|
|
3303
|
-
* Uses IndexedDB (via Dexie) to store workflow
|
|
2324
|
+
* Uses IndexedDB (via Dexie) to store workflow instance states.
|
|
3304
2325
|
*
|
|
3305
2326
|
* @example
|
|
3306
2327
|
* ```typescript
|
|
3307
2328
|
* // In module providers
|
|
3308
2329
|
* {
|
|
3309
|
-
* provide:
|
|
3310
|
-
* useClass:
|
|
2330
|
+
* provide: AXP_WORKFLOW_ENGINE,
|
|
2331
|
+
* useClass: AXCWorkflowEngine,
|
|
3311
2332
|
* }
|
|
3312
2333
|
* ```
|
|
3313
2334
|
*/
|
|
3314
|
-
declare class
|
|
2335
|
+
declare class AXCWorkflowEngine implements AXPWorkflowEngine {
|
|
3315
2336
|
private readonly db;
|
|
3316
|
-
private readonly activityProviderService;
|
|
3317
2337
|
private readonly commandService;
|
|
3318
2338
|
private readonly entityStorageService;
|
|
2339
|
+
private readonly activityDefinitionService;
|
|
2340
|
+
private readonly workflowProviders;
|
|
2341
|
+
/**
|
|
2342
|
+
* Get workflow definition by name using workflow providers.
|
|
2343
|
+
* Falls back to entity storage query by name if providers fail.
|
|
2344
|
+
*
|
|
2345
|
+
* [AXCWorkflowRuntimeService] Uses workflow providers for consistency with Workflow Management UI.
|
|
2346
|
+
*/
|
|
2347
|
+
private getDefinition;
|
|
2348
|
+
/**
|
|
2349
|
+
* Secure task token storage.
|
|
2350
|
+
* Key: token (UUID)
|
|
2351
|
+
* Value: { instanceId, activityId, expiresAt }
|
|
2352
|
+
*/
|
|
2353
|
+
private taskTokens;
|
|
2354
|
+
/**
|
|
2355
|
+
* Token expiration time: 30 minutes
|
|
2356
|
+
*/
|
|
2357
|
+
private readonly TOKEN_EXPIRATION_MS;
|
|
2358
|
+
/**
|
|
2359
|
+
* Generate secure, non-guessable task token (UUID).
|
|
2360
|
+
*/
|
|
2361
|
+
private generateTaskToken;
|
|
2362
|
+
/**
|
|
2363
|
+
* Validate task token.
|
|
2364
|
+
* Returns true if token exists, not expired, and matches instanceId + activityId.
|
|
2365
|
+
*/
|
|
2366
|
+
private validateTaskToken;
|
|
2367
|
+
/**
|
|
2368
|
+
* Remove task token after completion to prevent replay.
|
|
2369
|
+
*/
|
|
2370
|
+
private removeTaskToken;
|
|
3319
2371
|
/**
|
|
3320
|
-
*
|
|
2372
|
+
* Cleanup expired tokens (lightweight).
|
|
2373
|
+
*/
|
|
2374
|
+
private cleanupExpiredTokens;
|
|
2375
|
+
/**
|
|
2376
|
+
* Start a new workflow instance.
|
|
3321
2377
|
* Creates a workflow instance and stores it in IndexedDB.
|
|
3322
2378
|
*/
|
|
3323
|
-
|
|
2379
|
+
start(request: AXPStartWorkflowRequest): Promise<AXPStartWorkflowResponse>;
|
|
3324
2380
|
/**
|
|
3325
|
-
* Find activity in
|
|
2381
|
+
* Find activity in Graph by ID.
|
|
3326
2382
|
*/
|
|
3327
|
-
private
|
|
2383
|
+
private findActivityInGraph;
|
|
3328
2384
|
/**
|
|
3329
|
-
* Resume a suspended workflow
|
|
2385
|
+
* Resume a suspended workflow instance.
|
|
3330
2386
|
*
|
|
3331
2387
|
* After frontend completes its task:
|
|
3332
|
-
* 1. Validates taskToken
|
|
3333
|
-
* 2.
|
|
3334
|
-
* 3.
|
|
3335
|
-
* 4.
|
|
2388
|
+
* 1. Validates taskToken (secure, non-guessable)
|
|
2389
|
+
* 2. Verifies resumed activity matches currentStepId/bookmark
|
|
2390
|
+
* 3. Marks related bookmark as consumed
|
|
2391
|
+
* 4. Applies frontend outputs into workflow state
|
|
2392
|
+
* 5. Traverses to next activity based on outcomes
|
|
2393
|
+
* 6. Executes ALL backend activities until hitting frontend activity or completion
|
|
2394
|
+
* 7. Returns either pendingTask (with new secure token) or completed status
|
|
3336
2395
|
*/
|
|
3337
|
-
|
|
2396
|
+
resume(request: AXPResumeWorkflowRequest): Promise<AXPResumeWorkflowResponse>;
|
|
3338
2397
|
/**
|
|
3339
2398
|
* Get current workflow execution state.
|
|
3340
2399
|
*/
|
|
3341
|
-
|
|
2400
|
+
getState(request: AXPGetWorkflowStateRequest): Promise<AXPWorkflowInstanceState>;
|
|
3342
2401
|
/**
|
|
3343
|
-
*
|
|
3344
|
-
*
|
|
3345
|
-
* In mock implementation, this retrieves workflow definition from localStorage.
|
|
3346
|
-
* In production, this would make an HTTP call to backend API.
|
|
3347
|
-
*
|
|
3348
|
-
* @param request - Get workflow definition request
|
|
3349
|
-
* @returns Workflow definition
|
|
2402
|
+
* Cache for activity definitions to avoid repeated queries.
|
|
3350
2403
|
*/
|
|
3351
|
-
|
|
2404
|
+
private activityDefinitionCache;
|
|
3352
2405
|
/**
|
|
3353
|
-
*
|
|
3354
|
-
* Inspired by Temporal's task tokens for secure task completion.
|
|
2406
|
+
* Cache TTL: 5 minutes
|
|
3355
2407
|
*/
|
|
3356
|
-
private
|
|
2408
|
+
private readonly CACHE_TTL_MS;
|
|
3357
2409
|
/**
|
|
3358
|
-
* Determine execution mode for an activity.
|
|
2410
|
+
* Determine execution mode for an activity (async).
|
|
3359
2411
|
*
|
|
3360
2412
|
* Priority (highest to lowest):
|
|
3361
2413
|
* 1. Activity instance's executionMode (from AXPActivity in workflow definition)
|
|
3362
|
-
* 2.
|
|
2414
|
+
* 2. ActivityDefinition's executionMode (from ActivityDefinitionService)
|
|
3363
2415
|
* 3. Default: 'frontend'
|
|
3364
2416
|
*
|
|
3365
|
-
* @param activityType - Activity type (e.g., 'workflow-activity:
|
|
2417
|
+
* @param activityType - Activity type (e.g., 'workflow-activity:show-toast')
|
|
3366
2418
|
* @param activity - Activity from workflow definition (AXPActivity)
|
|
3367
|
-
* @returns
|
|
2419
|
+
* @returns Promise of execution mode: 'frontend', 'backend', or 'both'
|
|
3368
2420
|
*/
|
|
3369
2421
|
private determineExecutionMode;
|
|
2422
|
+
/**
|
|
2423
|
+
* Evaluate expressions in activity inputs.
|
|
2424
|
+
* Supports ${var} and ${path.to.value} syntax.
|
|
2425
|
+
* Handles nested objects and arrays.
|
|
2426
|
+
* Supports mixed strings: "Hello ${user.name}"
|
|
2427
|
+
*
|
|
2428
|
+
* @param inputs - Activity inputs (may contain expressions)
|
|
2429
|
+
* @param context - Context object with variables (workflow input, variables, output)
|
|
2430
|
+
* @returns Evaluated inputs with expressions replaced
|
|
2431
|
+
*/
|
|
2432
|
+
private evaluateActivityInputs;
|
|
3370
2433
|
/**
|
|
3371
2434
|
* Create a task from a workflow activity.
|
|
3372
2435
|
* Inspired by Temporal's Activity Task and Elsa's Bookmark pattern.
|
|
@@ -3386,6 +2449,8 @@ declare class AXCWorkflowExecutionService implements AXPWorkflowExecutionService
|
|
|
3386
2449
|
*
|
|
3387
2450
|
* Backend activities are registered as Commands and executed via CommandService.
|
|
3388
2451
|
* This provides a unified execution channel for all activities.
|
|
2452
|
+
*
|
|
2453
|
+
* Supports expression evaluation in activity inputs before execution.
|
|
3389
2454
|
*/
|
|
3390
2455
|
private executeBackendActivityLocally;
|
|
3391
2456
|
/**
|
|
@@ -3398,13 +2463,61 @@ declare class AXCWorkflowExecutionService implements AXPWorkflowExecutionService
|
|
|
3398
2463
|
*/
|
|
3399
2464
|
private executeHttpRequest;
|
|
3400
2465
|
/**
|
|
3401
|
-
*
|
|
2466
|
+
* Create a bookmark for a workflow instance.
|
|
2467
|
+
* Aligns with ERD: BOOKMARK table structure.
|
|
2468
|
+
*
|
|
2469
|
+
* @param instanceId - Workflow instance ID
|
|
2470
|
+
* @param activityId - Activity ID where bookmark is created
|
|
2471
|
+
* @param type - Bookmark type (e.g., 'user-task', 'event', 'timer')
|
|
2472
|
+
* @param payload - Bookmark payload data
|
|
2473
|
+
* @returns Bookmark ID
|
|
2474
|
+
*/
|
|
2475
|
+
private createBookmark;
|
|
2476
|
+
/**
|
|
2477
|
+
* Create a work item from a bookmark (only for human-task activities).
|
|
2478
|
+
*
|
|
2479
|
+
* @param instanceId - Workflow instance ID
|
|
2480
|
+
* @param activityId - Activity ID
|
|
2481
|
+
* @param bookmarkId - Bookmark ID
|
|
2482
|
+
* @param activityDef - Activity definition (optional, for title)
|
|
2483
|
+
*/
|
|
2484
|
+
private createWorkItemFromBookmark;
|
|
2485
|
+
/**
|
|
2486
|
+
* Consume (mark as consumed) a bookmark for a workflow instance.
|
|
2487
|
+
*
|
|
2488
|
+
* @param instanceId - Workflow instance ID
|
|
2489
|
+
* @param activityId - Activity ID of the bookmark to consume
|
|
2490
|
+
*/
|
|
2491
|
+
private consumeBookmark;
|
|
2492
|
+
/**
|
|
2493
|
+
* Get active bookmarks for a workflow instance.
|
|
2494
|
+
*
|
|
2495
|
+
* @param instanceId - Workflow instance ID
|
|
2496
|
+
* @returns Array of active (non-consumed) bookmarks
|
|
3402
2497
|
*/
|
|
3403
|
-
private
|
|
2498
|
+
private getActiveBookmarks;
|
|
3404
2499
|
/**
|
|
3405
|
-
*
|
|
2500
|
+
* Convert workflow instance to instance state.
|
|
2501
|
+
*
|
|
2502
|
+
* Aligns with ERD structure:
|
|
2503
|
+
* - WORKFLOW_INSTANCE: header fields (status, subStatus, timestamps)
|
|
2504
|
+
* - WORKFLOW_INSTANCE_STATE: heavy state (input, output, properties, stateJson)
|
|
2505
|
+
* - BOOKMARK: separate table (used to derive currentStepId)
|
|
2506
|
+
*/
|
|
2507
|
+
private instanceToInstanceState;
|
|
2508
|
+
/**
|
|
2509
|
+
* Update instance state in instance and save to IndexedDB.
|
|
2510
|
+
*
|
|
2511
|
+
* Aligns with ERD structure:
|
|
2512
|
+
* - WORKFLOW_INSTANCE: header fields (status, subStatus, timestamps, correlationId)
|
|
2513
|
+
* - WORKFLOW_INSTANCE_STATE: heavy state (input, output, properties, stateJson)
|
|
2514
|
+
*
|
|
2515
|
+
* Handles status transitions correctly:
|
|
2516
|
+
* - running → suspended (when frontend activity encountered)
|
|
2517
|
+
* - suspended → running → completed (when workflow finishes)
|
|
2518
|
+
* - any → error (on errors)
|
|
3406
2519
|
*/
|
|
3407
|
-
private
|
|
2520
|
+
private updateInstanceFromState;
|
|
3408
2521
|
/**
|
|
3409
2522
|
* Get workflow instance from IndexedDB.
|
|
3410
2523
|
*/
|
|
@@ -3413,8 +2526,25 @@ declare class AXCWorkflowExecutionService implements AXPWorkflowExecutionService
|
|
|
3413
2526
|
* Update workflow instance in IndexedDB.
|
|
3414
2527
|
*/
|
|
3415
2528
|
private updateInstance;
|
|
3416
|
-
|
|
3417
|
-
|
|
2529
|
+
/**
|
|
2530
|
+
* Complete a frontend activity and continue workflow execution.
|
|
2531
|
+
*
|
|
2532
|
+
* This method is called when a frontend activity (ui-activity) completes execution.
|
|
2533
|
+
* It applies the frontend output to workflow state, finds the next activity based on outcome,
|
|
2534
|
+
* and executes all backend activities until reaching the next frontend activity or completion.
|
|
2535
|
+
*
|
|
2536
|
+
* Flow:
|
|
2537
|
+
* 1. Apply frontend output to workflow state
|
|
2538
|
+
* 2. Find next activity based on outcome from connections
|
|
2539
|
+
* 3. Execute ALL backend activities until hitting frontend activity or completion
|
|
2540
|
+
* 4. Return either nextTask (with new secure token) or completed status
|
|
2541
|
+
*
|
|
2542
|
+
* @param request - Front activity completion request with instanceId, activityNode, output, and outcome
|
|
2543
|
+
* @returns Response with nextTask (if frontend activity) or completion status
|
|
2544
|
+
*/
|
|
2545
|
+
frontActivtyComplete(request: AXPFrontActivityCompleteRequest): Promise<AXPFrontActivityCompleteResponse>;
|
|
2546
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCWorkflowEngine, never>;
|
|
2547
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXCWorkflowEngine>;
|
|
3418
2548
|
}
|
|
3419
2549
|
|
|
3420
2550
|
/**
|
|
@@ -3430,224 +2560,6 @@ declare const workflowDefinitionIds: {
|
|
|
3430
2560
|
dataProcessing: string;
|
|
3431
2561
|
};
|
|
3432
2562
|
|
|
3433
|
-
/**
|
|
3434
|
-
* Input for CheckPermission activity.
|
|
3435
|
-
*/
|
|
3436
|
-
interface CheckPermissionInput {
|
|
3437
|
-
/**
|
|
3438
|
-
* Permission key to check (e.g., "Users.Create")
|
|
3439
|
-
*/
|
|
3440
|
-
permission: string;
|
|
3441
|
-
/**
|
|
3442
|
-
* User ID to check (optional, defaults to current user)
|
|
3443
|
-
*/
|
|
3444
|
-
userId?: string;
|
|
3445
|
-
}
|
|
3446
|
-
/**
|
|
3447
|
-
* Output for CheckPermission activity.
|
|
3448
|
-
*/
|
|
3449
|
-
interface CheckPermissionOutput {
|
|
3450
|
-
/**
|
|
3451
|
-
* Whether user has the permission
|
|
3452
|
-
*/
|
|
3453
|
-
hasPermission: boolean;
|
|
3454
|
-
/**
|
|
3455
|
-
* User ID that was checked
|
|
3456
|
-
*/
|
|
3457
|
-
userId: string;
|
|
3458
|
-
/**
|
|
3459
|
-
* Permission that was checked
|
|
3460
|
-
*/
|
|
3461
|
-
permission: string;
|
|
3462
|
-
}
|
|
3463
|
-
/**
|
|
3464
|
-
* CheckPermission Activity (Backend)
|
|
3465
|
-
*
|
|
3466
|
-
* Checks if a user has specific permission.
|
|
3467
|
-
* This is a mock implementation that always grants permission for demo purposes.
|
|
3468
|
-
*
|
|
3469
|
-
* In production, this would check against real permission system.
|
|
3470
|
-
*
|
|
3471
|
-
* Execution Mode: backend
|
|
3472
|
-
* Activity Type: workflow-activity:check-permission
|
|
3473
|
-
*
|
|
3474
|
-
* Outcomes:
|
|
3475
|
-
* - HasPermission: User has the permission
|
|
3476
|
-
* - NoPermission: User does not have the permission
|
|
3477
|
-
*/
|
|
3478
|
-
declare class CheckPermissionActivity implements AXPCommand<CheckPermissionInput, {
|
|
3479
|
-
output: CheckPermissionOutput;
|
|
3480
|
-
outcomes: Record<string, any>;
|
|
3481
|
-
}> {
|
|
3482
|
-
execute(input: CheckPermissionInput): Promise<AXPExecuteCommandResult<{
|
|
3483
|
-
output: CheckPermissionOutput;
|
|
3484
|
-
outcomes: Record<string, any>;
|
|
3485
|
-
}>>;
|
|
3486
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CheckPermissionActivity, never>;
|
|
3487
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<CheckPermissionActivity>;
|
|
3488
|
-
}
|
|
3489
|
-
|
|
3490
|
-
/**
|
|
3491
|
-
* Input for ExecuteQuery activity.
|
|
3492
|
-
*/
|
|
3493
|
-
interface ExecuteQueryInput {
|
|
3494
|
-
/**
|
|
3495
|
-
* Query key to execute (e.g., "User:CheckEmailExists")
|
|
3496
|
-
*/
|
|
3497
|
-
queryKey: string;
|
|
3498
|
-
/**
|
|
3499
|
-
* Query parameters
|
|
3500
|
-
*/
|
|
3501
|
-
parameters?: Record<string, any>;
|
|
3502
|
-
}
|
|
3503
|
-
/**
|
|
3504
|
-
* Output for ExecuteQuery activity.
|
|
3505
|
-
*/
|
|
3506
|
-
interface ExecuteQueryOutput {
|
|
3507
|
-
/**
|
|
3508
|
-
* Query result data
|
|
3509
|
-
*/
|
|
3510
|
-
data: any;
|
|
3511
|
-
/**
|
|
3512
|
-
* Whether query executed successfully
|
|
3513
|
-
*/
|
|
3514
|
-
success: boolean;
|
|
3515
|
-
/**
|
|
3516
|
-
* Error message if query failed
|
|
3517
|
-
*/
|
|
3518
|
-
error?: string;
|
|
3519
|
-
}
|
|
3520
|
-
/**
|
|
3521
|
-
* ExecuteQuery Activity (Backend)
|
|
3522
|
-
*
|
|
3523
|
-
* Executes a query operation.
|
|
3524
|
-
* This is a mock implementation that simulates common queries.
|
|
3525
|
-
*
|
|
3526
|
-
* Execution Mode: backend
|
|
3527
|
-
* Activity Type: workflow-activity:execute-query
|
|
3528
|
-
*
|
|
3529
|
-
* Outcomes:
|
|
3530
|
-
* - Done: Query executed successfully
|
|
3531
|
-
* - Valid: Data is valid (for validation queries)
|
|
3532
|
-
* - Exists: Data exists (for existence checks)
|
|
3533
|
-
* - NotFound: Data not found
|
|
3534
|
-
* - Failed: Query execution failed
|
|
3535
|
-
*/
|
|
3536
|
-
declare class ExecuteQueryActivity implements AXPCommand<ExecuteQueryInput, {
|
|
3537
|
-
output: ExecuteQueryOutput;
|
|
3538
|
-
outcomes: Record<string, any>;
|
|
3539
|
-
}> {
|
|
3540
|
-
private readonly storageService;
|
|
3541
|
-
execute(input: ExecuteQueryInput): Promise<AXPExecuteCommandResult<{
|
|
3542
|
-
output: ExecuteQueryOutput;
|
|
3543
|
-
outcomes: Record<string, any>;
|
|
3544
|
-
}>>;
|
|
3545
|
-
/**
|
|
3546
|
-
* Routes query to appropriate handler based on queryKey.
|
|
3547
|
-
*/
|
|
3548
|
-
private routeQuery;
|
|
3549
|
-
/**
|
|
3550
|
-
* Checks if email already exists in database.
|
|
3551
|
-
*/
|
|
3552
|
-
private checkEmailExists;
|
|
3553
|
-
/**
|
|
3554
|
-
* Validates data structure and content.
|
|
3555
|
-
*/
|
|
3556
|
-
private validateData;
|
|
3557
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ExecuteQueryActivity, never>;
|
|
3558
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ExecuteQueryActivity>;
|
|
3559
|
-
}
|
|
3560
|
-
|
|
3561
|
-
/**
|
|
3562
|
-
* Input for ExecuteCommand activity.
|
|
3563
|
-
*/
|
|
3564
|
-
interface ExecuteCommandInput {
|
|
3565
|
-
/**
|
|
3566
|
-
* Command key to execute (e.g., "User:Create")
|
|
3567
|
-
*/
|
|
3568
|
-
commandKey: string;
|
|
3569
|
-
/**
|
|
3570
|
-
* Command input data
|
|
3571
|
-
*/
|
|
3572
|
-
input?: Record<string, any>;
|
|
3573
|
-
}
|
|
3574
|
-
/**
|
|
3575
|
-
* Output for ExecuteCommand activity.
|
|
3576
|
-
*/
|
|
3577
|
-
interface ExecuteCommandOutput {
|
|
3578
|
-
/**
|
|
3579
|
-
* Command result data
|
|
3580
|
-
*/
|
|
3581
|
-
result: any;
|
|
3582
|
-
/**
|
|
3583
|
-
* Whether command executed successfully
|
|
3584
|
-
*/
|
|
3585
|
-
success: boolean;
|
|
3586
|
-
/**
|
|
3587
|
-
* Error message if command failed
|
|
3588
|
-
*/
|
|
3589
|
-
error?: string;
|
|
3590
|
-
/**
|
|
3591
|
-
* Created/Updated entity ID (if applicable)
|
|
3592
|
-
*/
|
|
3593
|
-
entityId?: string;
|
|
3594
|
-
}
|
|
3595
|
-
/**
|
|
3596
|
-
* ExecuteCommand Activity (Backend)
|
|
3597
|
-
*
|
|
3598
|
-
* Executes a command operation.
|
|
3599
|
-
* This is a mock implementation that simulates common commands.
|
|
3600
|
-
*
|
|
3601
|
-
* Execution Mode: backend
|
|
3602
|
-
* Activity Type: workflow-activity:execute-command
|
|
3603
|
-
*
|
|
3604
|
-
* Outcomes:
|
|
3605
|
-
* - Done: Command executed successfully
|
|
3606
|
-
* - Failed: Command execution failed
|
|
3607
|
-
*/
|
|
3608
|
-
declare class ExecuteCommandActivity implements AXPCommand<ExecuteCommandInput, {
|
|
3609
|
-
output: ExecuteCommandOutput;
|
|
3610
|
-
outcomes: Record<string, any>;
|
|
3611
|
-
}> {
|
|
3612
|
-
private readonly storageService;
|
|
3613
|
-
execute(input: ExecuteCommandInput): Promise<AXPExecuteCommandResult<{
|
|
3614
|
-
output: ExecuteCommandOutput;
|
|
3615
|
-
outcomes: Record<string, any>;
|
|
3616
|
-
}>>;
|
|
3617
|
-
/**
|
|
3618
|
-
* Routes command to appropriate handler based on commandKey.
|
|
3619
|
-
*/
|
|
3620
|
-
private routeCommand;
|
|
3621
|
-
/**
|
|
3622
|
-
* Creates a new user in the system.
|
|
3623
|
-
*/
|
|
3624
|
-
private createUser;
|
|
3625
|
-
/**
|
|
3626
|
-
* Processes data according to business rules.
|
|
3627
|
-
*/
|
|
3628
|
-
private processData;
|
|
3629
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ExecuteCommandActivity, never>;
|
|
3630
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ExecuteCommandActivity>;
|
|
3631
|
-
}
|
|
3632
|
-
|
|
3633
|
-
/**
|
|
3634
|
-
* Provides all backend workflow activities as Commands.
|
|
3635
|
-
*
|
|
3636
|
-
* These activities are registered with the CommandBus and can be executed
|
|
3637
|
-
* by the workflow execution service.
|
|
3638
|
-
*
|
|
3639
|
-
* Usage:
|
|
3640
|
-
* ```typescript
|
|
3641
|
-
* @NgModule({
|
|
3642
|
-
* providers: [
|
|
3643
|
-
* provideWorkflowActivities(),
|
|
3644
|
-
* ]
|
|
3645
|
-
* })
|
|
3646
|
-
* export class AppModule {}
|
|
3647
|
-
* ```
|
|
3648
|
-
*/
|
|
3649
|
-
declare function provideWorkflowActivities(): i0.EnvironmentProviders;
|
|
3650
|
-
|
|
3651
2563
|
declare const titleInterface: AXPWidgetNode;
|
|
3652
2564
|
declare const descriptionInterface: AXPWidgetNode;
|
|
3653
2565
|
declare const versionInterface: AXPWidgetNode;
|
|
@@ -3683,38 +2595,6 @@ declare const multipleChoiceInterface: AXPWidgetNode;
|
|
|
3683
2595
|
declare const multipleSelectInterface: AXPWidgetNode;
|
|
3684
2596
|
declare const longTextAnswerInterface: AXPWidgetNode;
|
|
3685
2597
|
|
|
3686
|
-
declare class AXCSystemInsightReportCategoryProvider implements AXPReportCategoryProvider {
|
|
3687
|
-
getList(parentId?: string): Promise<AXPReportCategory[]>;
|
|
3688
|
-
getById(id: string): Promise<AXPReportCategory | undefined>;
|
|
3689
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXCSystemInsightReportCategoryProvider, never>;
|
|
3690
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXCSystemInsightReportCategoryProvider>;
|
|
3691
|
-
}
|
|
3692
|
-
declare class AXCSystemInsightReportDefinitionProvider implements AXPReportDefinitionProvider {
|
|
3693
|
-
getList(categoryId: string): Promise<AXPReportDefinition[]>;
|
|
3694
|
-
getById(id: string): Promise<AXPReportDefinition | undefined>;
|
|
3695
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXCSystemInsightReportDefinitionProvider, never>;
|
|
3696
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXCSystemInsightReportDefinitionProvider>;
|
|
3697
|
-
}
|
|
3698
|
-
declare const AXC_SYSTEM_INSIGHT_REPORT_CATEGORY_PROVIDER: {
|
|
3699
|
-
provide: i0.InjectionToken<_acorex_modules_report_management.AXPReportCategoryProviderToken[]>;
|
|
3700
|
-
useClass: typeof AXCSystemInsightReportCategoryProvider;
|
|
3701
|
-
multi: boolean;
|
|
3702
|
-
};
|
|
3703
|
-
declare const AXC_SYSTEM_INSIGHT_REPORT_DEFINITION_PROVIDER: {
|
|
3704
|
-
provide: i0.InjectionToken<_acorex_modules_report_management.AXPReportDefinitionProviderToken[]>;
|
|
3705
|
-
useClass: typeof AXCSystemInsightReportDefinitionProvider;
|
|
3706
|
-
multi: boolean;
|
|
3707
|
-
};
|
|
3708
|
-
|
|
3709
|
-
declare const auditLogMock: AXMSystemInsightAuditLogEntityModel[];
|
|
3710
|
-
|
|
3711
|
-
declare class AXMSystemInsightAuditLogDataSeeder implements AXPDataSeeder {
|
|
3712
|
-
private storageService;
|
|
3713
|
-
seed(): Promise<void>;
|
|
3714
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXMSystemInsightAuditLogDataSeeder, never>;
|
|
3715
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXMSystemInsightAuditLogDataSeeder>;
|
|
3716
|
-
}
|
|
3717
|
-
|
|
3718
2598
|
interface AXPRuleRow extends AXPIdentifierRule {
|
|
3719
2599
|
}
|
|
3720
2600
|
interface AXPSeqRow {
|
|
@@ -3794,6 +2674,17 @@ declare class AXPMockIdentifierService extends AXPIdentifierService {
|
|
|
3794
2674
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXPMockIdentifierService>;
|
|
3795
2675
|
}
|
|
3796
2676
|
|
|
2677
|
+
/**
|
|
2678
|
+
* Middleware that automatically tracks audit information for entity operations.
|
|
2679
|
+
*
|
|
2680
|
+
* Tracks:
|
|
2681
|
+
* - CREATE: Sets created and updated timestamps with user info, initializes stateInfo and ownershipInfo
|
|
2682
|
+
* - UPDATE: Updates the updated timestamp with current user info
|
|
2683
|
+
* - DELETE: Records deleted timestamp with user info (useful for soft delete or history tracking)
|
|
2684
|
+
*
|
|
2685
|
+
* The audit info follows the AXPAuditInfo interface with created, updated, and deleted events.
|
|
2686
|
+
* Ownership info includes tenantId and applicationId from the current session.
|
|
2687
|
+
*/
|
|
3797
2688
|
declare const auditLoggerMiddleware: AXPEntityStorageMiddleware;
|
|
3798
2689
|
|
|
3799
2690
|
declare const childCountMiddleware: AXPEntityStorageMiddleware;
|
|
@@ -3823,29 +2714,25 @@ declare const identifierCommitMiddleware: AXPEntityStorageMiddleware;
|
|
|
3823
2714
|
/**
|
|
3824
2715
|
* Lookup Resolver Middleware
|
|
3825
2716
|
*
|
|
3826
|
-
*
|
|
2717
|
+
* Resolves lookup field IDs to full objects based on entity property definitions or naming conventions.
|
|
3827
2718
|
*
|
|
3828
2719
|
* Behavior:
|
|
3829
2720
|
* - Runs on 'create' and 'update' operations
|
|
3830
|
-
* - Finds fields ending with 'Id'
|
|
2721
|
+
* - Finds fields ending with 'Id'/'Ids' (case-insensitive)
|
|
3831
2722
|
* - Resolves IDs to full objects from corresponding entity
|
|
3832
|
-
* -
|
|
2723
|
+
* - Skips fields that are already resolved or have explicit entity config failures
|
|
3833
2724
|
*
|
|
3834
2725
|
* Resolution Strategy (in order):
|
|
3835
|
-
* 1. Check entity property definition for LookupBox with entity option
|
|
3836
|
-
* 2.
|
|
3837
|
-
* 3. Use current module name (ModuleName.assign)
|
|
3838
|
-
* 4. Try name variants with common modules
|
|
2726
|
+
* 1. Check entity property definition for LookupBox with entity option (preferred)
|
|
2727
|
+
* 2. Use naming conventions: dotted path (X.assignId -> X.assign) or module fallback (ModuleName.entityName)
|
|
3839
2728
|
*
|
|
3840
2729
|
* Naming Convention:
|
|
3841
2730
|
* - testId -> creates 'test' object with full record
|
|
3842
2731
|
* - testIds -> creates 'testList' array with full records
|
|
3843
|
-
* - documentId -> creates 'document' object with full record
|
|
3844
|
-
* - categoryIds -> creates 'categoryList' array with full records
|
|
3845
2732
|
*
|
|
3846
2733
|
* Example:
|
|
3847
|
-
* Input: {
|
|
3848
|
-
* Result: {
|
|
2734
|
+
* Input: { brandId: "123" } with lookup to product-catalog.brand
|
|
2735
|
+
* Result: { brand: { id: "123", title: "Brand Name", ... } }
|
|
3849
2736
|
*/
|
|
3850
2737
|
declare const lookupResolverMiddleware: AXPEntityStorageMiddleware;
|
|
3851
2738
|
|
|
@@ -3888,7 +2775,112 @@ declare const signatureLoaderMiddleware: AXPEntityStorageMiddleware;
|
|
|
3888
2775
|
*/
|
|
3889
2776
|
declare const lockGuardMiddleware: AXPEntityStorageMiddleware;
|
|
3890
2777
|
|
|
2778
|
+
/**
|
|
2779
|
+
* Group Order Item Calculator Middleware
|
|
2780
|
+
*
|
|
2781
|
+
* Calculates quantityInOrder and quantityAvailable for group order items.
|
|
2782
|
+
* Also calculates total based on price, quantityInOrder, and GST (1.15).
|
|
2783
|
+
*
|
|
2784
|
+
* quantityInOrder = sum of all member order line quantities for this item
|
|
2785
|
+
* quantityAvailable = size - quantityInOrder
|
|
2786
|
+
* total = price * quantityInOrder * 1.15 (GST)
|
|
2787
|
+
*
|
|
2788
|
+
* Runs on:
|
|
2789
|
+
* - GroupOrderItem create/update: Calculate for the item itself
|
|
2790
|
+
* - MemberOrderLine create/update/delete: Recalculate the related group order item
|
|
2791
|
+
*/
|
|
2792
|
+
declare const groupOrderItemCalculatorMiddleware: AXPEntityStorageMiddleware;
|
|
2793
|
+
|
|
2794
|
+
/**
|
|
2795
|
+
* Key used in request params to bypass visibility filtering (isHidden flag).
|
|
2796
|
+
* Similar to ABP Framework's filter disabling mechanism.
|
|
2797
|
+
*
|
|
2798
|
+
* Usage:
|
|
2799
|
+
* ```typescript
|
|
2800
|
+
* await storageService.query(entityName, {
|
|
2801
|
+
* ...request,
|
|
2802
|
+
* params: { [VISIBILITY_FILTER_BYPASS]: 'true' }
|
|
2803
|
+
* });
|
|
2804
|
+
* ```
|
|
2805
|
+
*/
|
|
2806
|
+
declare const VISIBILITY_FILTER_BYPASS = "__bypassVisibilityFilter";
|
|
2807
|
+
/**
|
|
2808
|
+
* Key used in request params to bypass ownership filtering (tenantId/applicationId).
|
|
2809
|
+
* Similar to ABP Framework's filter disabling mechanism.
|
|
2810
|
+
*
|
|
2811
|
+
* Usage:
|
|
2812
|
+
* ```typescript
|
|
2813
|
+
* await storageService.query(entityName, {
|
|
2814
|
+
* ...request,
|
|
2815
|
+
* params: { [OWNERSHIP_FILTER_BYPASS]: 'true' }
|
|
2816
|
+
* });
|
|
2817
|
+
* ```
|
|
2818
|
+
*/
|
|
2819
|
+
declare const OWNERSHIP_FILTER_BYPASS = "__bypassOwnershipFilter";
|
|
2820
|
+
/**
|
|
2821
|
+
* Middleware that automatically filters out records with `isSystem` or `isHidden` flags
|
|
2822
|
+
* from query and getAll operations.
|
|
2823
|
+
*
|
|
2824
|
+
* This ensures that:
|
|
2825
|
+
* - System records (isSystem: true) are hidden from regular users
|
|
2826
|
+
* - Hidden records (isHidden: true) are not visible in lists
|
|
2827
|
+
* - Records are filtered by current tenant and application context
|
|
2828
|
+
* - Single record lookups (getOne) still work for direct access
|
|
2829
|
+
* - Filtering can be bypassed using VISIBILITY_FILTER_BYPASS or OWNERSHIP_FILTER_BYPASS in request params
|
|
2830
|
+
*
|
|
2831
|
+
* Bypass options:
|
|
2832
|
+
* - VISIBILITY_FILTER_BYPASS: Bypasses isHidden filtering only
|
|
2833
|
+
* - OWNERSHIP_FILTER_BYPASS: Bypasses tenantId/applicationId filtering only
|
|
2834
|
+
* - Both: Bypasses all filtering
|
|
2835
|
+
*
|
|
2836
|
+
* Note: This is applied AFTER the data is fetched from storage.
|
|
2837
|
+
*/
|
|
2838
|
+
declare const visibilityFilterMiddleware: AXPEntityStorageMiddleware;
|
|
2839
|
+
|
|
2840
|
+
/**
|
|
2841
|
+
* Helper function to create a query request that bypasses visibility filtering (isHidden flag).
|
|
2842
|
+
* Similar to ABP Framework's filter disabling pattern.
|
|
2843
|
+
*
|
|
2844
|
+
* @example
|
|
2845
|
+
* ```typescript
|
|
2846
|
+
* // Bypass visibility filter for authentication
|
|
2847
|
+
* const users = await storageService.query(
|
|
2848
|
+
* entityName,
|
|
2849
|
+
* bypassVisibilityFilter({ skip: 0, take: 1000 })
|
|
2850
|
+
* );
|
|
2851
|
+
* ```
|
|
2852
|
+
*/
|
|
2853
|
+
declare function bypassVisibilityFilter<T extends AXPQueryRequest>(request: T): T;
|
|
2854
|
+
/**
|
|
2855
|
+
* Helper function to create a query request that bypasses ownership filtering (tenantId/applicationId).
|
|
2856
|
+
* Similar to ABP Framework's filter disabling pattern.
|
|
2857
|
+
*
|
|
2858
|
+
* @example
|
|
2859
|
+
* ```typescript
|
|
2860
|
+
* // Bypass ownership filter to query across tenants/applications
|
|
2861
|
+
* const records = await storageService.query(
|
|
2862
|
+
* entityName,
|
|
2863
|
+
* bypassOwnershipFilter({ skip: 0, take: 1000 })
|
|
2864
|
+
* );
|
|
2865
|
+
* ```
|
|
2866
|
+
*/
|
|
2867
|
+
declare function bypassOwnershipFilter<T extends AXPQueryRequest>(request: T): T;
|
|
2868
|
+
/**
|
|
2869
|
+
* Helper function to create a query request that bypasses both visibility and ownership filtering.
|
|
2870
|
+
* Similar to ABP Framework's filter disabling pattern.
|
|
2871
|
+
*
|
|
2872
|
+
* @example
|
|
2873
|
+
* ```typescript
|
|
2874
|
+
* // Bypass all filters for system operations
|
|
2875
|
+
* const records = await storageService.query(
|
|
2876
|
+
* entityName,
|
|
2877
|
+
* bypassAllFilters({ skip: 0, take: 1000 })
|
|
2878
|
+
* );
|
|
2879
|
+
* ```
|
|
2880
|
+
*/
|
|
2881
|
+
declare function bypassAllFilters<T extends AXPQueryRequest>(request: T): T;
|
|
2882
|
+
|
|
3891
2883
|
declare const AXCMockEntityLogListener: AXPDistributedEventListenerProvider<any>;
|
|
3892
2884
|
|
|
3893
|
-
export { APPLICATIONS, AXCAppTermDataSeeder, AXCAppVersionDataSeeder, AXCApplicationDataSeeder, AXCApplicationManagementMockModule, AXCAssessmentManagementMockModule, AXCAssetManagementMockModule, AXCAuthMockModule, AXCCalendarDataSeeder, AXCCalendarEventDataSeeder, AXCCalendarManagementMockModule, AXCCommonMockModule, AXCContactManagementMockModule, AXCContentManagementMockModule, AXCConversationMockModule, AXCCustomerManagementMockModule, AXCDashboardManagementMockModule, AXCDataManagementMockModule, AXCDexieEntityStorageService, AXCDocumentManagementMockModule, AXCEditionDataSeeder,
|
|
3894
|
-
export type {
|
|
2885
|
+
export { ACTIVITY_CATEGORIES, ACTIVITY_DEFINITIONS, APPLICATIONS, AXCActivityCategorySeeder, AXCActivityDefinitionSeeder, 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, AXCImageCaptchaChallengeProviderMock, AXCJsaSeeder, AXCLearningManagementMockModule, AXCLocaleManagementMockModule, AXCLocationManagementMockModule, AXCLockService, AXCMeasurementCoreMockModule, AXCMeetingManagementMockModule, AXCMetaDataDefinitionDataSeeder, AXCMetadataCategorySeeder, AXCMiddlewaresModule, AXCMockCaptchaChallengeComponent, AXCMockEntityLogListener, AXCMockModule, AXCNotificationManagementMockModule, AXCOrderManagementMockModule, AXCOrganizationManagementMockModule, AXCPersonManagementMockModule, AXCPlatformManagementMockModule, AXCProcurementManagementMockModule, AXCProductCatalogMockModule, AXCProjectManagementMockModule, AXCQueryCategoryMetadataInheritanceQuery, AXCReportManagementMockModule, AXCSecurityManagementMockModule, AXCSubscriptionManagementMockModule, AXCSupplierManagementMockModule, AXCTaskManagementMockModule, AXCTenantManagementMockModule, AXCTenantSeeder, AXCTokensDataSeeder, AXCUserPassStrategyMock, AXCVersionDB, AXCVersioningService, AXCWorkflowCategoryProvider, AXCWorkflowDefinitionDataSeeder, AXCWorkflowEngine, AXCWorkflowExecutionDB, 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, AXMResponsibilityDataSeeder, AXMTagDataSeeder, AXMTeamDataSeeder, AXMTeamMemberDataSeeder, AXMTeamMemberRoleDataSeeder, 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, DASHBOARDS, EDITIONS, EMPLOYEES_MOCK, EMPLOYMENT_TYPES_MOCK, 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, 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, TEAM_MEMBERS_MOCK, TEAM_MEMBER_ROLES_MOCK, TIMEPLICITY_TENANT_ID, TOKENS, VISIBILITY_FILTER_BYPASS, WORKFLOW_CATEGORIES, 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, 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 };
|
|
2886
|
+
export type { AXCBookmarkEntity, AXCBusinessUnitMockDto, AXCLeaveRequestMockDto, AXCPositionAssignmentMockDto, AXCTeamMemberMockDto, AXCTeamMemberRoleMockDto, AXCTeamMockDto, AXMTag, AXPLogRow, AXPRuleRow, AXPSeqRow, AXPVersionChange, AXPVersionEntry, AXPVersionStream, CanonicalChange, CanonicalChangeOp, CategoryMetadataInheritanceGroupResult, CategoryMetadataInheritanceQueryParams, CategoryMetadataInheritanceResult, JobDefinitionMockDto, JobLevelMockDto, MockUserPassCredentials, PersonMockData, PositionMockDto, QuestionBankItemMockDto, QuestionnaireMockDto, ResponsibilityMockDto, Task, TaskStatus, TaskTemplate, TaskType, UIDiffRow, VersionedFileInfo };
|