@acorex/connectivity 21.0.0-next.0 → 21.0.0-next.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/api/index.d.ts +1 -59
  2. package/fesm2022/{acorex-connectivity-api-execute.command-SGNBLcOi.mjs → acorex-connectivity-api-execute.command-gIRQPxtq.mjs} +6 -6
  3. package/fesm2022/acorex-connectivity-api-execute.command-gIRQPxtq.mjs.map +1 -0
  4. package/fesm2022/acorex-connectivity-api.mjs +101 -185
  5. package/fesm2022/acorex-connectivity-api.mjs.map +1 -1
  6. package/fesm2022/{acorex-connectivity-mock-category-with-items.query-Dsxj98tX.mjs → acorex-connectivity-mock-category-with-items.query-Cl7T-rSS.mjs} +4 -4
  7. package/fesm2022/{acorex-connectivity-mock-category-with-items.query-Dsxj98tX.mjs.map → acorex-connectivity-mock-category-with-items.query-Cl7T-rSS.mjs.map} +1 -1
  8. package/fesm2022/acorex-connectivity-mock-complete-signature-process.command-MIKenDnl.mjs +80 -0
  9. package/fesm2022/acorex-connectivity-mock-complete-signature-process.command-MIKenDnl.mjs.map +1 -0
  10. package/fesm2022/{acorex-connectivity-mock-distribution-record.command-DRiDwlqN.mjs → acorex-connectivity-mock-distribution-record.command-D9MRsoPw.mjs} +4 -4
  11. package/fesm2022/{acorex-connectivity-mock-distribution-record.command-DRiDwlqN.mjs.map → acorex-connectivity-mock-distribution-record.command-D9MRsoPw.mjs.map} +1 -1
  12. package/fesm2022/acorex-connectivity-mock-get-application-versions-chart-data.query-H6rrh30t.mjs +115 -0
  13. package/fesm2022/acorex-connectivity-mock-get-application-versions-chart-data.query-H6rrh30t.mjs.map +1 -0
  14. package/fesm2022/acorex-connectivity-mock-get-application-versions-timeline.query-zuGKLAbn.mjs +163 -0
  15. package/fesm2022/acorex-connectivity-mock-get-application-versions-timeline.query-zuGKLAbn.mjs.map +1 -0
  16. package/fesm2022/acorex-connectivity-mock-get-product-chart-data.query-CQ75e_tN.mjs +186 -0
  17. package/fesm2022/acorex-connectivity-mock-get-product-chart-data.query-CQ75e_tN.mjs.map +1 -0
  18. package/fesm2022/acorex-connectivity-mock-get-product-list.query-OM16ygmJ.mjs +246 -0
  19. package/fesm2022/acorex-connectivity-mock-get-product-list.query-OM16ygmJ.mjs.map +1 -0
  20. package/fesm2022/acorex-connectivity-mock-get-product-pdf-data.query-DoR3awXg.mjs +192 -0
  21. package/fesm2022/acorex-connectivity-mock-get-product-pdf-data.query-DoR3awXg.mjs.map +1 -0
  22. package/fesm2022/acorex-connectivity-mock-get-subscriptions-chart-data.query-Dq779mtQ.mjs +56 -0
  23. package/fesm2022/acorex-connectivity-mock-get-subscriptions-chart-data.query-Dq779mtQ.mjs.map +1 -0
  24. package/fesm2022/acorex-connectivity-mock-get-subscriptions-timeline.query-gNwKFN0F.mjs +246 -0
  25. package/fesm2022/acorex-connectivity-mock-get-subscriptions-timeline.query-gNwKFN0F.mjs.map +1 -0
  26. package/fesm2022/acorex-connectivity-mock-get-tenant-application-access.query-C3OxqcSp.mjs +258 -0
  27. package/fesm2022/acorex-connectivity-mock-get-tenant-application-access.query-C3OxqcSp.mjs.map +1 -0
  28. package/fesm2022/acorex-connectivity-mock-get-tenant-registration-chart-data.query-v8jIyUEH.mjs +56 -0
  29. package/fesm2022/acorex-connectivity-mock-get-tenant-registration-chart-data.query-v8jIyUEH.mjs.map +1 -0
  30. package/fesm2022/acorex-connectivity-mock-get-tenant-registration-timeline.query-Da6nKdpq.mjs +294 -0
  31. package/fesm2022/acorex-connectivity-mock-get-tenant-registration-timeline.query-Da6nKdpq.mjs.map +1 -0
  32. package/fesm2022/acorex-connectivity-mock-get-tenant-user-distribution.query-T0qvGjtD.mjs +212 -0
  33. package/fesm2022/acorex-connectivity-mock-get-tenant-user-distribution.query-T0qvGjtD.mjs.map +1 -0
  34. package/fesm2022/acorex-connectivity-mock-notify-signers.command-CmXMibLx.mjs +69 -0
  35. package/fesm2022/acorex-connectivity-mock-notify-signers.command-CmXMibLx.mjs.map +1 -0
  36. package/fesm2022/acorex-connectivity-mock-request-signature.command-B6VZ5KeW.mjs +72 -0
  37. package/fesm2022/acorex-connectivity-mock-request-signature.command-B6VZ5KeW.mjs.map +1 -0
  38. package/fesm2022/{acorex-connectivity-mock-sample.command-CkH5bmEs.mjs → acorex-connectivity-mock-sample.command-BJJ67aLM.mjs} +4 -4
  39. package/fesm2022/{acorex-connectivity-mock-sample.command-CkH5bmEs.mjs.map → acorex-connectivity-mock-sample.command-BJJ67aLM.mjs.map} +1 -1
  40. package/fesm2022/acorex-connectivity-mock-validate-all-signatures.command-CG80T32a.mjs +81 -0
  41. package/fesm2022/acorex-connectivity-mock-validate-all-signatures.command-CG80T32a.mjs.map +1 -0
  42. package/fesm2022/acorex-connectivity-mock.mjs +46365 -46644
  43. package/fesm2022/acorex-connectivity-mock.mjs.map +1 -1
  44. package/fesm2022/acorex-connectivity-utils.mjs +7 -7
  45. package/fesm2022/acorex-connectivity-utils.mjs.map +1 -1
  46. package/mock/index.d.ts +336 -324
  47. package/package.json +2 -2
  48. package/fesm2022/acorex-connectivity-api-execute.command-SGNBLcOi.mjs.map +0 -1
package/mock/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- import { AXPAppStartUpService, AXPQueryRequest, AXPPagedListResult, AXPModuleAccessControlService, AXPModuleAccessContext, AXPCategorizedEntityDto, AXPCategoryEntity, AXPExecuteCommand, AXPExecuteCommandResult, AXPActionMenuItem, AXPDataSourceDefinitionProvider, AXPDataSourceDefinition, AXPFileListItem, AXPDistributedEventListenerProvider } from '@acorex/platform/core';
1
+ import { AXPAppStartUpService, AXPQueryRequest, AXPPagedListResult, AXPCategorizedEntityDto, AXPCategoryEntity, AXPExecuteCommand, AXPExecuteCommandResult, AXPActionMenuItem, AXPDataSourceDefinitionProvider, AXPDataSourceDefinition, AXPFileListItem, AXPDistributedEventListenerProvider } from '@acorex/platform/core';
2
2
  import * as i0 from '@angular/core';
3
- import { Injector } from '@angular/core';
3
+ import { Injector, Type } from '@angular/core';
4
4
  import * as _acorex_platform_auth from '@acorex/platform/auth';
5
- import { AXPBaseCredentials, AXPAuthStrategy, AXPSignInResult, AXPSessionContext } from '@acorex/platform/auth';
5
+ import { AXPBaseCredentials, AXPAuthStrategy, AXPSignInResult, AXPSessionContext, AXPLoginChallengeProvider, AXPChallengeCheckResult, AXPLoginChallengeData, AXPLoginChallengeComponentBase } from '@acorex/platform/auth';
6
6
  import * as i1 from '@acorex/platform/runtime';
7
- import { AXPQuery, AXPCommand } from '@acorex/platform/runtime';
7
+ import { AXPQuery } from '@acorex/platform/runtime';
8
8
  import { Router } from '@angular/router';
9
9
  import { AXMAuthConfigs } from '@acorex/modules/auth';
10
10
  import { AXPEntityStorageService, AXPDataSeeder, AXPEntityStorageMiddleware } from '@acorex/platform/layout/entity';
@@ -16,12 +16,11 @@ import { AXPSpreadsheetData } from '@acorex/platform/layout/components';
16
16
  import * as _acorex_platform_common from '@acorex/platform/common';
17
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';
18
18
  import { AXMWorkflowManagementWorkflowDefinitionEntityModel } from '@acorex/modules/workflow-management';
19
+ import { AXPActivityCategory, AXPActivityDefinition, AXPWorkflowCategory, AXPWorkflowCategoryProvider, AXPWorkflowInstance, AXPWorkflowEngine, AXPStartWorkflowRequest, AXPStartWorkflowResponse, AXPResumeWorkflowRequest, AXPResumeWorkflowResponse, AXPGetWorkflowStateRequest, AXPWorkflowInstanceState, AXPWorkflowDefinition } from '@acorex/platform/workflow';
19
20
  import { AXPWorkflowTaskProvider, AXPTaskFilter, AXPTask, AXPExtraField, AXPTaskStatus } from '@acorex/modules/task-management';
20
21
  import { AXMCommonDashboardEntityModel } from '@acorex/modules/dashboard-management';
21
- import { AXPExecutionReportCommand, AXPLayoutExecutionContext, AXPExecutionReportCommandResult } from '@acorex/modules/report-management';
22
22
  import * as _acorex_modules_calendar_management from '@acorex/modules/calendar-management';
23
23
  import { AXMCalendarManagementCalendarEventTypeEntityModel } from '@acorex/modules/calendar-management';
24
- import { AXPWorkflowInstance, AXPWorkflowExecutionService, AXPStartWorkflowExecutionRequest, AXPStartWorkflowExecutionResponse, AXPResumeWorkflowExecutionRequest, AXPResumeWorkflowExecutionResponse, AXPGetWorkflowExecutionStateRequest, AXPWorkflowExecutionState, AXPGetWorkflowDefinitionRequest, AXPGetWorkflowDefinitionResponse, AXPWorkflowDefinition } from '@acorex/platform/workflow';
25
24
  import { AXPWidgetNode } from '@acorex/platform/layout/widget-core';
26
25
  import { AXPIdentifierRule, AXPClockProvider, AXPChecksumProvider, AXPPolicyProvider, AXPLookupProvider, AXPSequenceProvider, AXPIdentifierService, AXPIdentifierRequest, AXPIdentifierResult, AXPIdentifierPeekResult } from '@acorex/modules/identifier-management';
27
26
 
@@ -193,6 +192,12 @@ declare class AXCDataManagementMockModule {
193
192
  static ɵinj: i0.ɵɵInjectorDeclaration<AXCDataManagementMockModule>;
194
193
  }
195
194
 
195
+ declare class AXCWorkflowManagementMockModule {
196
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCWorkflowManagementMockModule, never>;
197
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXCWorkflowManagementMockModule, never, never, never>;
198
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXCWorkflowManagementMockModule>;
199
+ }
200
+
196
201
  declare class AXCNotificationManagementMockModule {
197
202
  static ɵfac: i0.ɵɵFactoryDeclaration<AXCNotificationManagementMockModule, never>;
198
203
  static ɵmod: i0.ɵɵNgModuleDeclaration<AXCNotificationManagementMockModule, never, never, never>;
@@ -247,6 +252,12 @@ declare class AXCMeasurementCoreMockModule {
247
252
  static ɵinj: i0.ɵɵInjectorDeclaration<AXCMeasurementCoreMockModule>;
248
253
  }
249
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
+
250
261
  declare class AXCProductCatalogMockModule {
251
262
  static ɵfac: i0.ɵɵFactoryDeclaration<AXCProductCatalogMockModule, never>;
252
263
  static ɵmod: i0.ɵɵNgModuleDeclaration<AXCProductCatalogMockModule, never, never, never>;
@@ -262,7 +273,7 @@ declare class AXCMiddlewaresModule {
262
273
  declare class AXCMockModule {
263
274
  constructor(appInitService: AXPAppStartUpService, injector: Injector);
264
275
  static ɵfac: i0.ɵɵFactoryDeclaration<AXCMockModule, never>;
265
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXCMockModule, never, [typeof _acorex_platform_auth.AXPAuthModule, typeof AXCCommonMockModule, typeof AXCIdentifierManagementMockModule, typeof AXCSecurityManagementMockModule, typeof AXCFormTemplateManagementMockModule, typeof AXCCustomerManagementMockModule, typeof AXCSupplierManagementMockModule, typeof AXCProcurementManagementMockModule, typeof AXCOrderManagementMockModule, typeof AXCSubscriptionManagementMockModule, typeof AXCContactManagementMockModule, typeof AXCLocationManagementMockModule, typeof AXCOrganizationManagementMockModule, typeof AXCHumanCapitalManagementMockModule, typeof AXCReportManagementMockModule, typeof AXCLocaleManagementMockModule, typeof AXCDashboardManagementMockModule, typeof AXCConversationMockModule, typeof AXCAuthMockModule, typeof AXCPlatformManagementMockModule, typeof AXCApplicationManagementMockModule, typeof AXCTenantManagementMockModule, typeof AXCLearningManagementMockModule, typeof AXCAssetManagementMockModule, typeof AXCProjectManagementMockModule, typeof AXCDocumentManagementMockModule, typeof AXCHelpDeskMockModule, typeof AXCCalendarManagementMockModule, typeof AXCDataManagementMockModule, typeof AXCNotificationManagementMockModule, typeof AXCTaskManagementMockModule, typeof AXCPersonManagementMockModule, typeof AXCContentManagementMockModule, typeof AXCMeetingManagementMockModule, typeof AXCSettingsManagementMockModule, typeof AXCAssessmentManagementMockModule, typeof AXCFinancialCoreMockModule, typeof AXCMeasurementCoreMockModule, typeof AXCProductCatalogMockModule, typeof AXCMiddlewaresModule], never>;
276
+ 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 AXCMiddlewaresModule], never>;
266
277
  static ɵinj: i0.ɵɵInjectorDeclaration<AXCMockModule>;
267
278
  }
268
279
 
@@ -310,6 +321,99 @@ declare class AXCGoogleStrategyMock extends AXPAuthStrategy {
310
321
  static ɵprov: i0.ɵɵInjectableDeclaration<AXCGoogleStrategyMock>;
311
322
  }
312
323
 
324
+ /**
325
+ * Mock implementation of AXPLoginChallengeProvider for testing
326
+ *
327
+ * This provider simulates a server-side captcha system:
328
+ * - Tracks failed login attempts
329
+ * - After 3 failed attempts, requires captcha
330
+ * - Generates mock captcha images client-side (for demo purposes)
331
+ *
332
+ * @example
333
+ * ```typescript
334
+ * // In your module providers:
335
+ * {
336
+ * provide: AXP_LOGIN_CHALLENGE_PROVIDER,
337
+ * useClass: AXCImageCaptchaChallengeProviderMock
338
+ * }
339
+ * ```
340
+ */
341
+ declare class AXCImageCaptchaChallengeProviderMock extends AXPLoginChallengeProvider {
342
+ readonly name = "image-captcha-mock";
343
+ /** Current captcha code that user needs to enter */
344
+ private currentCaptchaCode;
345
+ /** Current challenge ID */
346
+ private currentChallengeId;
347
+ /** Failed attempts tracker */
348
+ private attemptsTracker;
349
+ /**
350
+ * Checks if the login error indicates that a captcha is required
351
+ *
352
+ * In this mock implementation, we check:
353
+ * 1. If the error contains requiresCaptcha flag
354
+ * 2. If failed attempts threshold is reached
355
+ * 3. If error status is 429 (Too Many Requests)
356
+ */
357
+ checkResponse(error: unknown): AXPChallengeCheckResult | null;
358
+ /**
359
+ * Generates a new captcha challenge
360
+ *
361
+ * In this mock implementation:
362
+ * - Generates a random code
363
+ * - Creates a captcha image client-side
364
+ * - Returns the challenge data
365
+ *
366
+ * In a real implementation, this would call the server API
367
+ */
368
+ getChallenge(serverData?: Record<string, unknown>): Promise<AXPLoginChallengeData>;
369
+ /**
370
+ * Generates a fresh captcha, replacing the current one
371
+ */
372
+ refreshChallenge(): Promise<AXPLoginChallengeData>;
373
+ /**
374
+ * Returns the custom mock captcha component for rendering
375
+ */
376
+ getChallengeComponent(): Type<AXPLoginChallengeComponentBase>;
377
+ /**
378
+ * Validates the captcha response (for testing purposes)
379
+ * In a real implementation, validation happens on the server
380
+ */
381
+ validateCaptchaResponse(challengeId: string, response: string): boolean;
382
+ /**
383
+ * Resets the failed attempts counter (for testing)
384
+ */
385
+ resetAttempts(): void;
386
+ /**
387
+ * Gets current failed attempts count (for testing/debugging)
388
+ */
389
+ getFailedAttempts(): number;
390
+ /**
391
+ * Simulates network delay for realistic behavior
392
+ */
393
+ private simulateNetworkDelay;
394
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCImageCaptchaChallengeProviderMock, never>;
395
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXCImageCaptchaChallengeProviderMock>;
396
+ }
397
+
398
+ /**
399
+ * Mock CAPTCHA challenge component with custom styling
400
+ * Demonstrates how providers can create custom challenge UIs
401
+ */
402
+ declare class AXCMockCaptchaChallengeComponent extends AXPLoginChallengeComponentBase {
403
+ /** Local state for the response input */
404
+ protected response: i0.WritableSignal<string>;
405
+ /**
406
+ * Handles response input change
407
+ */
408
+ protected onResponseChange(value: string): void;
409
+ /**
410
+ * Handles refresh button click
411
+ */
412
+ protected onRefreshClick(): void;
413
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCMockCaptchaChallengeComponent, never>;
414
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXCMockCaptchaChallengeComponent, "axc-mock-captcha-challenge", never, {}, {}, never, never, true, never>;
415
+ }
416
+
313
417
  declare class AXCDexieEntityStorageService extends Dexie implements AXPEntityStorageService<string, any> {
314
418
  private sessionService;
315
419
  constructor();
@@ -365,17 +469,6 @@ declare class AXCDexieEntityStorageService extends Dexie implements AXPEntitySto
365
469
  static ɵprov: i0.ɵɵInjectableDeclaration<AXCDexieEntityStorageService>;
366
470
  }
367
471
 
368
- /**
369
- * Mock implementation of module access control service.
370
- * Checks if module is enabled in edition.modulesAndFeatures.modules.
371
- * This is the default behavior - modules are accessible if they're in the edition configuration.
372
- */
373
- declare class MockModuleAccessControlService implements AXPModuleAccessControlService {
374
- checkAccess(moduleName: string, context: AXPModuleAccessContext): boolean;
375
- static ɵfac: i0.ɵɵFactoryDeclaration<MockModuleAccessControlService, never>;
376
- static ɵprov: i0.ɵɵInjectableDeclaration<MockModuleAccessControlService>;
377
- }
378
-
379
472
  declare const APPLICATIONS: AXMApplicationManagementApplicationEntityModel[];
380
473
 
381
474
  declare class AXCApplicationDataSeeder implements AXPDataSeeder {
@@ -538,7 +631,7 @@ declare const assessmentCaseMock: {
538
631
  questionnaire: {
539
632
  id: string;
540
633
  title: string;
541
- type: "checklist" | "questionnaire" | "survey" | "test" | "evaluation";
634
+ type: "questionnaire" | "survey" | "checklist" | "test" | "evaluation";
542
635
  };
543
636
  title: string;
544
637
  description: string;
@@ -808,7 +901,7 @@ declare const TOKENS: {
808
901
  name: string;
809
902
  title: string;
810
903
  description: string;
811
- type: "Expression" | "String" | "Integer" | "Boolean";
904
+ type: "String" | "Integer" | "Boolean" | "Expression";
812
905
  expression: string;
813
906
  }[];
814
907
 
@@ -931,28 +1024,28 @@ interface AXCEmployeeMockDto {
931
1024
  }
932
1025
  declare const EMPLOYEES_MOCK: AXCEmployeeMockDto[];
933
1026
 
934
- type AXCEmployeeMock = (typeof EMPLOYEES_MOCK)[number];
1027
+ type AXCEmployeeMock$1 = (typeof EMPLOYEES_MOCK)[number];
935
1028
  interface AXCTeamMockDto {
936
1029
  id: string;
937
1030
  title: string;
938
1031
  description: string;
939
1032
  leaderId: string;
940
- leader: AXCEmployeeMock;
1033
+ leader: AXCEmployeeMock$1;
941
1034
  managerId: string;
942
- manager: AXCEmployeeMock;
1035
+ manager: AXCEmployeeMock$1;
943
1036
  memberIds: string[];
944
- members: AXCEmployeeMock[];
1037
+ members: AXCEmployeeMock$1[];
945
1038
  }
946
1039
  interface AXCTeamMockDto {
947
1040
  id: string;
948
1041
  title: string;
949
1042
  description: string;
950
1043
  leaderId: string;
951
- leader: AXCEmployeeMock;
1044
+ leader: AXCEmployeeMock$1;
952
1045
  managerId: string;
953
- manager: AXCEmployeeMock;
1046
+ manager: AXCEmployeeMock$1;
954
1047
  memberIds: string[];
955
- members: AXCEmployeeMock[];
1048
+ members: AXCEmployeeMock$1[];
956
1049
  }
957
1050
  declare const TEAMS_MOCK: AXCTeamMockDto[];
958
1051
 
@@ -963,6 +1056,41 @@ declare class AXMTeamDataSeeder implements AXPDataSeeder {
963
1056
  static ɵprov: i0.ɵɵInjectableDeclaration<AXMTeamDataSeeder>;
964
1057
  }
965
1058
 
1059
+ interface AXCTeamMemberRoleMockDto {
1060
+ id: string;
1061
+ title: string;
1062
+ name: 'leader' | 'member' | 'co-leader' | 'advisor';
1063
+ }
1064
+ declare const TEAM_MEMBER_ROLES_MOCK: AXCTeamMemberRoleMockDto[];
1065
+
1066
+ declare class AXMTeamMemberRoleDataSeeder implements AXPDataSeeder {
1067
+ private storageService;
1068
+ seed(): Promise<void>;
1069
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXMTeamMemberRoleDataSeeder, never>;
1070
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXMTeamMemberRoleDataSeeder>;
1071
+ }
1072
+
1073
+ type AXCEmployeeMock = (typeof EMPLOYEES_MOCK)[number];
1074
+ type AXCTeamMock = (typeof TEAMS_MOCK)[number];
1075
+ type AXCTeamMemberRoleMock = (typeof TEAM_MEMBER_ROLES_MOCK)[number];
1076
+ interface AXCTeamMemberMockDto {
1077
+ id: string;
1078
+ teamId: string;
1079
+ team: AXCTeamMock;
1080
+ employeeId: string;
1081
+ employee: AXCEmployeeMock;
1082
+ roleId: string;
1083
+ role: AXCTeamMemberRoleMock;
1084
+ }
1085
+ declare const TEAM_MEMBERS_MOCK: AXCTeamMemberMockDto[];
1086
+
1087
+ declare class AXMTeamMemberDataSeeder implements AXPDataSeeder {
1088
+ private storageService;
1089
+ seed(): Promise<void>;
1090
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXMTeamMemberDataSeeder, never>;
1091
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXMTeamMemberDataSeeder>;
1092
+ }
1093
+
966
1094
  interface PositionMockDto extends AXPCategorizedEntityDto {
967
1095
  id: string;
968
1096
  code: string;
@@ -1009,8 +1137,10 @@ interface JobDefinitionMockDto extends AXPCategorizedEntityDto {
1009
1137
  id: string;
1010
1138
  title: string;
1011
1139
  }[];
1012
- responsibilitiesId: string[];
1013
- responsibilities: {
1140
+ responsibilityLevelIds?: string[];
1141
+ responsibilities?: AXPSpreadsheetData;
1142
+ jobLevelIds?: string[];
1143
+ jobLevels?: {
1014
1144
  id: string;
1015
1145
  title: string;
1016
1146
  }[];
@@ -1030,7 +1160,7 @@ interface JobLevelMockDto {
1030
1160
  id: string;
1031
1161
  title: string;
1032
1162
  description?: string;
1033
- order: number;
1163
+ level: number;
1034
1164
  }
1035
1165
  declare const JOB_LEVELS_MOCK: JobLevelMockDto[];
1036
1166
 
@@ -1256,12 +1386,6 @@ interface TaskTemplate {
1256
1386
  }
1257
1387
  declare const TASK_TEMPLATES: TaskTemplate[];
1258
1388
 
1259
- declare class AXCWorkflowManagementMockModule {
1260
- static ɵfac: i0.ɵɵFactoryDeclaration<AXCWorkflowManagementMockModule, never>;
1261
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXCWorkflowManagementMockModule, never, never, never>;
1262
- static ɵinj: i0.ɵɵInjectorDeclaration<AXCWorkflowManagementMockModule>;
1263
- }
1264
-
1265
1389
  /**
1266
1390
  * Mock workflow definition entities for the entity list.
1267
1391
  */
@@ -1274,6 +1398,38 @@ declare class AXCWorkflowDefinitionDataSeeder implements AXPDataSeeder {
1274
1398
  static ɵprov: i0.ɵɵInjectableDeclaration<AXCWorkflowDefinitionDataSeeder>;
1275
1399
  }
1276
1400
 
1401
+ declare const ACTIVITY_CATEGORIES: AXPActivityCategory[];
1402
+
1403
+ declare class AXCActivityCategorySeeder implements AXPDataSeeder {
1404
+ private readonly entityService;
1405
+ seed(): Promise<void>;
1406
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCActivityCategorySeeder, never>;
1407
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXCActivityCategorySeeder>;
1408
+ }
1409
+
1410
+ declare const ACTIVITY_DEFINITIONS: AXPActivityDefinition[];
1411
+
1412
+ declare class AXCActivityDefinitionSeeder implements AXPDataSeeder {
1413
+ private readonly entityService;
1414
+ seed(): Promise<void>;
1415
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCActivityDefinitionSeeder, never>;
1416
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXCActivityDefinitionSeeder>;
1417
+ }
1418
+
1419
+ declare const WORKFLOW_CATEGORIES: AXPWorkflowCategory[];
1420
+
1421
+ /**
1422
+ * Mock Workflow Category Provider
1423
+ *
1424
+ * Provides workflow categories from mock data.
1425
+ */
1426
+ declare class AXCWorkflowCategoryProvider implements AXPWorkflowCategoryProvider {
1427
+ getList(parentId?: string): Promise<AXPWorkflowCategory[]>;
1428
+ getById(id: string): Promise<AXPWorkflowCategory | undefined>;
1429
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCWorkflowCategoryProvider, never>;
1430
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXCWorkflowCategoryProvider>;
1431
+ }
1432
+
1277
1433
  type extraFields$1 = {
1278
1434
  recievedDate: Date;
1279
1435
  };
@@ -1480,35 +1636,6 @@ declare class AXPDashboardDataSeeder implements AXPDataSeeder {
1480
1636
  static ɵprov: i0.ɵɵInjectableDeclaration<AXPDashboardDataSeeder>;
1481
1637
  }
1482
1638
 
1483
- declare class AXMReportCategoryDataSeeder implements AXPDataSeeder {
1484
- private storageService;
1485
- seed(): Promise<void>;
1486
- static ɵfac: i0.ɵɵFactoryDeclaration<AXMReportCategoryDataSeeder, never>;
1487
- static ɵprov: i0.ɵɵInjectableDeclaration<AXMReportCategoryDataSeeder>;
1488
- }
1489
-
1490
- declare class AXMReportDefinitionDataSeeder implements AXPDataSeeder {
1491
- private storageService;
1492
- seed(): Promise<void>;
1493
- static ɵfac: i0.ɵɵFactoryDeclaration<AXMReportDefinitionDataSeeder, never>;
1494
- static ɵprov: i0.ɵɵInjectableDeclaration<AXMReportDefinitionDataSeeder>;
1495
- }
1496
-
1497
- declare class AXMReportExecuteCommand implements AXPExecutionReportCommand {
1498
- private readonly queryService;
1499
- private readonly reportDefinitionService;
1500
- execute(context: AXPLayoutExecutionContext): Promise<AXPExecuteCommandResult<AXPExecutionReportCommandResult>>;
1501
- /**
1502
- * Extract filters from AXPFilterClause and convert to query filters
1503
- * Maps report parameter paths to actual entity field names
1504
- */
1505
- private extractFiltersFromParameters;
1506
- private normalizeTableResult;
1507
- private normalizeChartResult;
1508
- static ɵfac: i0.ɵɵFactoryDeclaration<AXMReportExecuteCommand, never>;
1509
- static ɵprov: i0.ɵɵInjectableDeclaration<AXMReportExecuteCommand>;
1510
- }
1511
-
1512
1639
  declare const calendarMock: ({
1513
1640
  id: string;
1514
1641
  name: string;
@@ -2083,14 +2210,35 @@ declare function normalizeAnyFileArrayForView(arr: any[], fileStorage: AXPFileSt
2083
2210
  declare function normalizeSnapshotFileFieldsForView(snapshot: any, fileStorage: AXPFileStorageService): Promise<any>;
2084
2211
 
2085
2212
  /**
2086
- * Dexie database for workflow instances.
2213
+ * Bookmark entity for IndexedDB storage.
2214
+ * Aligns with ERD: BOOKMARK table structure.
2215
+ */
2216
+ interface AXCBookmarkEntity {
2217
+ id: string;
2218
+ instanceId: string;
2219
+ activityId: string;
2220
+ type: string;
2221
+ hash: string;
2222
+ payloadJson: string;
2223
+ isConsumed: boolean;
2224
+ createdAt: string;
2225
+ }
2226
+ /**
2227
+ * Dexie database for workflow instances and bookmarks.
2228
+ * Aligns with ERD structure: WORKFLOW_INSTANCE + BOOKMARK tables.
2087
2229
  */
2088
2230
  declare class AXCWorkflowExecutionDB extends Dexie {
2089
2231
  /**
2090
2232
  * Table for workflow instances.
2091
2233
  * Uses id as primary key.
2234
+ * Aligns with WORKFLOW_INSTANCE table in ERD.
2092
2235
  */
2093
2236
  instances: Table<AXPWorkflowInstance, string>;
2237
+ /**
2238
+ * Table for workflow bookmarks.
2239
+ * Aligns with BOOKMARK table in ERD.
2240
+ */
2241
+ bookmarks: Table<AXCBookmarkEntity, string>;
2094
2242
  constructor();
2095
2243
  }
2096
2244
  /**
@@ -2099,75 +2247,117 @@ declare class AXCWorkflowExecutionDB extends Dexie {
2099
2247
  declare const axWorkflowExecutionDB: AXCWorkflowExecutionDB;
2100
2248
 
2101
2249
  /**
2102
- * Mock implementation of AXPWorkflowExecutionService.
2250
+ * Mock implementation of AXPWorkflowEngine.
2103
2251
  *
2104
- * Uses IndexedDB (via Dexie) to store workflow execution states.
2252
+ * Uses IndexedDB (via Dexie) to store workflow instance states.
2105
2253
  *
2106
2254
  * @example
2107
2255
  * ```typescript
2108
2256
  * // In module providers
2109
2257
  * {
2110
- * provide: AXPWorkflowExecutionService,
2111
- * useClass: AXCWorkflowExecutionService,
2258
+ * provide: AXP_WORKFLOW_ENGINE,
2259
+ * useClass: AXCWorkflowEngine,
2112
2260
  * }
2113
2261
  * ```
2114
2262
  */
2115
- declare class AXCWorkflowExecutionService implements AXPWorkflowExecutionService {
2263
+ declare class AXCWorkflowEngine implements AXPWorkflowEngine {
2116
2264
  private readonly db;
2117
- private readonly activityProviderService;
2118
2265
  private readonly commandService;
2119
2266
  private readonly entityStorageService;
2267
+ private readonly activityDefinitionService;
2268
+ private readonly workflowProviders;
2269
+ /**
2270
+ * Get workflow definition by name using workflow providers.
2271
+ * Falls back to entity storage query by name if providers fail.
2272
+ *
2273
+ * [AXCWorkflowRuntimeService] Uses workflow providers for consistency with Workflow Management UI.
2274
+ */
2275
+ private getDefinition;
2276
+ /**
2277
+ * Secure task token storage.
2278
+ * Key: token (UUID)
2279
+ * Value: { instanceId, activityId, expiresAt }
2280
+ */
2281
+ private taskTokens;
2282
+ /**
2283
+ * Token expiration time: 30 minutes
2284
+ */
2285
+ private readonly TOKEN_EXPIRATION_MS;
2286
+ /**
2287
+ * Generate secure, non-guessable task token (UUID).
2288
+ */
2289
+ private generateTaskToken;
2290
+ /**
2291
+ * Validate task token.
2292
+ * Returns true if token exists, not expired, and matches instanceId + activityId.
2293
+ */
2294
+ private validateTaskToken;
2120
2295
  /**
2121
- * Start a new workflow execution.
2296
+ * Remove task token after completion to prevent replay.
2297
+ */
2298
+ private removeTaskToken;
2299
+ /**
2300
+ * Cleanup expired tokens (lightweight).
2301
+ */
2302
+ private cleanupExpiredTokens;
2303
+ /**
2304
+ * Start a new workflow instance.
2122
2305
  * Creates a workflow instance and stores it in IndexedDB.
2123
2306
  */
2124
- startExecution(request: AXPStartWorkflowExecutionRequest): Promise<AXPStartWorkflowExecutionResponse>;
2307
+ start(request: AXPStartWorkflowRequest): Promise<AXPStartWorkflowResponse>;
2125
2308
  /**
2126
- * Find activity in Flowchart by ID.
2309
+ * Find activity in Graph by ID.
2127
2310
  */
2128
- private findActivityInFlowchart;
2311
+ private findActivityInGraph;
2129
2312
  /**
2130
- * Resume a suspended workflow execution.
2313
+ * Resume a suspended workflow instance.
2131
2314
  *
2132
2315
  * After frontend completes its task:
2133
- * 1. Validates taskToken
2134
- * 2. Finds next activity based on outcome
2135
- * 3. Executes ALL backend activities in sequence
2136
- * 4. Stops at first frontend activity and returns it as pendingTask
2316
+ * 1. Validates taskToken (secure, non-guessable)
2317
+ * 2. Verifies resumed activity matches currentStepId/bookmark
2318
+ * 3. Marks related bookmark as consumed
2319
+ * 4. Applies frontend outputs into workflow state
2320
+ * 5. Traverses to next activity based on outcomes
2321
+ * 6. Executes ALL backend activities until hitting frontend activity or completion
2322
+ * 7. Returns either pendingTask (with new secure token) or completed status
2137
2323
  */
2138
- resumeExecution(request: AXPResumeWorkflowExecutionRequest): Promise<AXPResumeWorkflowExecutionResponse>;
2324
+ resume(request: AXPResumeWorkflowRequest): Promise<AXPResumeWorkflowResponse>;
2139
2325
  /**
2140
2326
  * Get current workflow execution state.
2141
2327
  */
2142
- getExecutionState(request: AXPGetWorkflowExecutionStateRequest): Promise<AXPWorkflowExecutionState>;
2328
+ getState(request: AXPGetWorkflowStateRequest): Promise<AXPWorkflowInstanceState>;
2143
2329
  /**
2144
- * Get workflow definition by ID.
2145
- *
2146
- * In mock implementation, this retrieves workflow definition from localStorage.
2147
- * In production, this would make an HTTP call to backend API.
2148
- *
2149
- * @param request - Get workflow definition request
2150
- * @returns Workflow definition
2330
+ * Cache for activity definitions to avoid repeated queries.
2151
2331
  */
2152
- getWorkflowDefinition(request: AXPGetWorkflowDefinitionRequest): Promise<AXPGetWorkflowDefinitionResponse>;
2332
+ private activityDefinitionCache;
2153
2333
  /**
2154
- * Generate unique task token for task-based execution.
2155
- * Inspired by Temporal's task tokens for secure task completion.
2334
+ * Cache TTL: 5 minutes
2156
2335
  */
2157
- private generateTaskToken;
2336
+ private readonly CACHE_TTL_MS;
2158
2337
  /**
2159
- * Determine execution mode for an activity.
2338
+ * Determine execution mode for an activity (async).
2160
2339
  *
2161
2340
  * Priority (highest to lowest):
2162
2341
  * 1. Activity instance's executionMode (from AXPActivity in workflow definition)
2163
- * 2. ActivityDescriptor's executionMode (from ActivityProviderService)
2342
+ * 2. ActivityDefinition's executionMode (from ActivityDefinitionService)
2164
2343
  * 3. Default: 'frontend'
2165
2344
  *
2166
- * @param activityType - Activity type (e.g., 'workflow-activity:write-line')
2345
+ * @param activityType - Activity type (e.g., 'workflow-activity:show-toast')
2167
2346
  * @param activity - Activity from workflow definition (AXPActivity)
2168
- * @returns Execution mode: 'frontend', 'backend', or 'both'
2347
+ * @returns Promise of execution mode: 'frontend', 'backend', or 'both'
2169
2348
  */
2170
2349
  private determineExecutionMode;
2350
+ /**
2351
+ * Evaluate expressions in activity inputs.
2352
+ * Supports ${var} and ${path.to.value} syntax.
2353
+ * Handles nested objects and arrays.
2354
+ * Supports mixed strings: "Hello ${user.name}"
2355
+ *
2356
+ * @param inputs - Activity inputs (may contain expressions)
2357
+ * @param context - Context object with variables (workflow input, variables, output)
2358
+ * @returns Evaluated inputs with expressions replaced
2359
+ */
2360
+ private evaluateActivityInputs;
2171
2361
  /**
2172
2362
  * Create a task from a workflow activity.
2173
2363
  * Inspired by Temporal's Activity Task and Elsa's Bookmark pattern.
@@ -2187,6 +2377,8 @@ declare class AXCWorkflowExecutionService implements AXPWorkflowExecutionService
2187
2377
  *
2188
2378
  * Backend activities are registered as Commands and executed via CommandService.
2189
2379
  * This provides a unified execution channel for all activities.
2380
+ *
2381
+ * Supports expression evaluation in activity inputs before execution.
2190
2382
  */
2191
2383
  private executeBackendActivityLocally;
2192
2384
  /**
@@ -2199,13 +2391,51 @@ declare class AXCWorkflowExecutionService implements AXPWorkflowExecutionService
2199
2391
  */
2200
2392
  private executeHttpRequest;
2201
2393
  /**
2202
- * Convert workflow instance to execution state (for backward compatibility).
2394
+ * Create a bookmark for a workflow instance.
2395
+ * Aligns with ERD: BOOKMARK table structure.
2396
+ *
2397
+ * @param instanceId - Workflow instance ID
2398
+ * @param activityId - Activity ID where bookmark is created
2399
+ * @param type - Bookmark type (e.g., 'user-task', 'event', 'timer')
2400
+ * @param payload - Bookmark payload data
2401
+ */
2402
+ private createBookmark;
2403
+ /**
2404
+ * Consume (mark as consumed) a bookmark for a workflow instance.
2405
+ *
2406
+ * @param instanceId - Workflow instance ID
2407
+ * @param activityId - Activity ID of the bookmark to consume
2203
2408
  */
2204
- private instanceToExecutionState;
2409
+ private consumeBookmark;
2205
2410
  /**
2206
- * Update execution state in instance and save to IndexedDB.
2411
+ * Get active bookmarks for a workflow instance.
2412
+ *
2413
+ * @param instanceId - Workflow instance ID
2414
+ * @returns Array of active (non-consumed) bookmarks
2207
2415
  */
2208
- private updateInstanceFromExecutionState;
2416
+ private getActiveBookmarks;
2417
+ /**
2418
+ * Convert workflow instance to instance state.
2419
+ *
2420
+ * Aligns with ERD structure:
2421
+ * - WORKFLOW_INSTANCE: header fields (status, subStatus, timestamps)
2422
+ * - WORKFLOW_INSTANCE_STATE: heavy state (input, output, properties, stateJson)
2423
+ * - BOOKMARK: separate table (used to derive currentStepId)
2424
+ */
2425
+ private instanceToInstanceState;
2426
+ /**
2427
+ * Update instance state in instance and save to IndexedDB.
2428
+ *
2429
+ * Aligns with ERD structure:
2430
+ * - WORKFLOW_INSTANCE: header fields (status, subStatus, timestamps, correlationId)
2431
+ * - WORKFLOW_INSTANCE_STATE: heavy state (input, output, properties, stateJson)
2432
+ *
2433
+ * Handles status transitions correctly:
2434
+ * - running → suspended (when frontend activity encountered)
2435
+ * - suspended → running → completed (when workflow finishes)
2436
+ * - any → error (on errors)
2437
+ */
2438
+ private updateInstanceFromState;
2209
2439
  /**
2210
2440
  * Get workflow instance from IndexedDB.
2211
2441
  */
@@ -2214,8 +2444,8 @@ declare class AXCWorkflowExecutionService implements AXPWorkflowExecutionService
2214
2444
  * Update workflow instance in IndexedDB.
2215
2445
  */
2216
2446
  private updateInstance;
2217
- static ɵfac: i0.ɵɵFactoryDeclaration<AXCWorkflowExecutionService, never>;
2218
- static ɵprov: i0.ɵɵInjectableDeclaration<AXCWorkflowExecutionService>;
2447
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCWorkflowEngine, never>;
2448
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXCWorkflowEngine>;
2219
2449
  }
2220
2450
 
2221
2451
  /**
@@ -2231,224 +2461,6 @@ declare const workflowDefinitionIds: {
2231
2461
  dataProcessing: string;
2232
2462
  };
2233
2463
 
2234
- /**
2235
- * Input for CheckPermission activity.
2236
- */
2237
- interface CheckPermissionInput {
2238
- /**
2239
- * Permission key to check (e.g., "Users.Create")
2240
- */
2241
- permission: string;
2242
- /**
2243
- * User ID to check (optional, defaults to current user)
2244
- */
2245
- userId?: string;
2246
- }
2247
- /**
2248
- * Output for CheckPermission activity.
2249
- */
2250
- interface CheckPermissionOutput {
2251
- /**
2252
- * Whether user has the permission
2253
- */
2254
- hasPermission: boolean;
2255
- /**
2256
- * User ID that was checked
2257
- */
2258
- userId: string;
2259
- /**
2260
- * Permission that was checked
2261
- */
2262
- permission: string;
2263
- }
2264
- /**
2265
- * CheckPermission Activity (Backend)
2266
- *
2267
- * Checks if a user has specific permission.
2268
- * This is a mock implementation that always grants permission for demo purposes.
2269
- *
2270
- * In production, this would check against real permission system.
2271
- *
2272
- * Execution Mode: backend
2273
- * Activity Type: workflow-activity:check-permission
2274
- *
2275
- * Outcomes:
2276
- * - HasPermission: User has the permission
2277
- * - NoPermission: User does not have the permission
2278
- */
2279
- declare class CheckPermissionActivity implements AXPCommand<CheckPermissionInput, {
2280
- output: CheckPermissionOutput;
2281
- outcomes: Record<string, any>;
2282
- }> {
2283
- execute(input: CheckPermissionInput): Promise<AXPExecuteCommandResult<{
2284
- output: CheckPermissionOutput;
2285
- outcomes: Record<string, any>;
2286
- }>>;
2287
- static ɵfac: i0.ɵɵFactoryDeclaration<CheckPermissionActivity, never>;
2288
- static ɵprov: i0.ɵɵInjectableDeclaration<CheckPermissionActivity>;
2289
- }
2290
-
2291
- /**
2292
- * Input for ExecuteQuery activity.
2293
- */
2294
- interface ExecuteQueryInput {
2295
- /**
2296
- * Query key to execute (e.g., "User:CheckEmailExists")
2297
- */
2298
- queryKey: string;
2299
- /**
2300
- * Query parameters
2301
- */
2302
- parameters?: Record<string, any>;
2303
- }
2304
- /**
2305
- * Output for ExecuteQuery activity.
2306
- */
2307
- interface ExecuteQueryOutput {
2308
- /**
2309
- * Query result data
2310
- */
2311
- data: any;
2312
- /**
2313
- * Whether query executed successfully
2314
- */
2315
- success: boolean;
2316
- /**
2317
- * Error message if query failed
2318
- */
2319
- error?: string;
2320
- }
2321
- /**
2322
- * ExecuteQuery Activity (Backend)
2323
- *
2324
- * Executes a query operation.
2325
- * This is a mock implementation that simulates common queries.
2326
- *
2327
- * Execution Mode: backend
2328
- * Activity Type: workflow-activity:execute-query
2329
- *
2330
- * Outcomes:
2331
- * - Done: Query executed successfully
2332
- * - Valid: Data is valid (for validation queries)
2333
- * - Exists: Data exists (for existence checks)
2334
- * - NotFound: Data not found
2335
- * - Failed: Query execution failed
2336
- */
2337
- declare class ExecuteQueryActivity implements AXPCommand<ExecuteQueryInput, {
2338
- output: ExecuteQueryOutput;
2339
- outcomes: Record<string, any>;
2340
- }> {
2341
- private readonly storageService;
2342
- execute(input: ExecuteQueryInput): Promise<AXPExecuteCommandResult<{
2343
- output: ExecuteQueryOutput;
2344
- outcomes: Record<string, any>;
2345
- }>>;
2346
- /**
2347
- * Routes query to appropriate handler based on queryKey.
2348
- */
2349
- private routeQuery;
2350
- /**
2351
- * Checks if email already exists in database.
2352
- */
2353
- private checkEmailExists;
2354
- /**
2355
- * Validates data structure and content.
2356
- */
2357
- private validateData;
2358
- static ɵfac: i0.ɵɵFactoryDeclaration<ExecuteQueryActivity, never>;
2359
- static ɵprov: i0.ɵɵInjectableDeclaration<ExecuteQueryActivity>;
2360
- }
2361
-
2362
- /**
2363
- * Input for ExecuteCommand activity.
2364
- */
2365
- interface ExecuteCommandInput {
2366
- /**
2367
- * Command key to execute (e.g., "User:Create")
2368
- */
2369
- commandKey: string;
2370
- /**
2371
- * Command input data
2372
- */
2373
- input?: Record<string, any>;
2374
- }
2375
- /**
2376
- * Output for ExecuteCommand activity.
2377
- */
2378
- interface ExecuteCommandOutput {
2379
- /**
2380
- * Command result data
2381
- */
2382
- result: any;
2383
- /**
2384
- * Whether command executed successfully
2385
- */
2386
- success: boolean;
2387
- /**
2388
- * Error message if command failed
2389
- */
2390
- error?: string;
2391
- /**
2392
- * Created/Updated entity ID (if applicable)
2393
- */
2394
- entityId?: string;
2395
- }
2396
- /**
2397
- * ExecuteCommand Activity (Backend)
2398
- *
2399
- * Executes a command operation.
2400
- * This is a mock implementation that simulates common commands.
2401
- *
2402
- * Execution Mode: backend
2403
- * Activity Type: workflow-activity:execute-command
2404
- *
2405
- * Outcomes:
2406
- * - Done: Command executed successfully
2407
- * - Failed: Command execution failed
2408
- */
2409
- declare class ExecuteCommandActivity implements AXPCommand<ExecuteCommandInput, {
2410
- output: ExecuteCommandOutput;
2411
- outcomes: Record<string, any>;
2412
- }> {
2413
- private readonly storageService;
2414
- execute(input: ExecuteCommandInput): Promise<AXPExecuteCommandResult<{
2415
- output: ExecuteCommandOutput;
2416
- outcomes: Record<string, any>;
2417
- }>>;
2418
- /**
2419
- * Routes command to appropriate handler based on commandKey.
2420
- */
2421
- private routeCommand;
2422
- /**
2423
- * Creates a new user in the system.
2424
- */
2425
- private createUser;
2426
- /**
2427
- * Processes data according to business rules.
2428
- */
2429
- private processData;
2430
- static ɵfac: i0.ɵɵFactoryDeclaration<ExecuteCommandActivity, never>;
2431
- static ɵprov: i0.ɵɵInjectableDeclaration<ExecuteCommandActivity>;
2432
- }
2433
-
2434
- /**
2435
- * Provides all backend workflow activities as Commands.
2436
- *
2437
- * These activities are registered with the CommandBus and can be executed
2438
- * by the workflow execution service.
2439
- *
2440
- * Usage:
2441
- * ```typescript
2442
- * @NgModule({
2443
- * providers: [
2444
- * provideWorkflowActivities(),
2445
- * ]
2446
- * })
2447
- * export class AppModule {}
2448
- * ```
2449
- */
2450
- declare function provideWorkflowActivities(): i0.EnvironmentProviders;
2451
-
2452
2464
  declare const titleInterface: AXPWidgetNode;
2453
2465
  declare const descriptionInterface: AXPWidgetNode;
2454
2466
  declare const versionInterface: AXPWidgetNode;
@@ -2771,5 +2783,5 @@ declare function bypassAllFilters<T extends AXPQueryRequest>(request: T): T;
2771
2783
 
2772
2784
  declare const AXCMockEntityLogListener: AXPDistributedEventListenerProvider<any>;
2773
2785
 
2774
- export { APPLICATIONS, AXCAppTermDataSeeder, AXCAppVersionDataSeeder, AXCApplicationDataSeeder, AXCApplicationManagementMockModule, AXCAssessmentManagementMockModule, AXCAssetManagementMockModule, AXCAuthMockModule, AXCCalendarDataSeeder, AXCCalendarEventDataSeeder, AXCCalendarManagementMockModule, AXCCommonMockModule, AXCContactManagementMockModule, AXCContentManagementMockModule, AXCConversationMockModule, AXCCustomerManagementMockModule, AXCDashboardManagementMockModule, AXCDataManagementMockModule, AXCDexieEntityStorageService, AXCDocumentManagementMockModule, AXCEditionDataSeeder, AXCFileStorageService, AXCFinancialCoreMockModule, AXCFormTemplateManagementMockModule, AXCGoogleStrategyMock, AXCHelpDeskMockModule, AXCHumanCapitalManagementMockModule, AXCIdentifierManagementMockModule, AXCJsaSeeder, AXCLearningManagementMockModule, AXCLocaleManagementMockModule, AXCLocationManagementMockModule, AXCLockService, AXCMeasurementCoreMockModule, AXCMeetingManagementMockModule, AXCMetaDataDefinitionDataSeeder, AXCMetadataCategorySeeder, AXCMiddlewaresModule, AXCMockEntityLogListener, AXCMockModule, AXCNotificationManagementMockModule, AXCOrderManagementMockModule, AXCOrganizationManagementMockModule, AXCPersonManagementMockModule, AXCPlatformManagementMockModule, AXCProcurementManagementMockModule, AXCProductCatalogMockModule, AXCProjectManagementMockModule, AXCQueryCategoryMetadataInheritanceQuery, AXCReportManagementMockModule, AXCSecurityManagementMockModule, AXCSubscriptionManagementMockModule, AXCSupplierManagementMockModule, AXCTaskManagementMockModule, AXCTenantManagementMockModule, AXCTenantSeeder, AXCTokensDataSeeder, AXCUserPassStrategyMock, AXCVersionDB, AXCVersioningService, AXCWorkflowDefinitionDataSeeder, AXCWorkflowExecutionDB, AXCWorkflowExecutionService, AXCWorkflowManagementMockModule, AXMAiResponderService, AXMAssessmentCaseDataSeeder, AXMAssessmentSessionDataSeeder, AXMBusinessUnitDataSeeder, AXMCalendarEventTypeSeeder, AXMEmployeeDataSeeder, AXMEmploymentTypeDataSeeder, AXMFormDataSourcesProvider, AXMJobDefinitionDataSeeder, AXMJobLevelDataSeeder, AXMLeaveRequestDataSeeder, AXMMeetingDataSeeder, AXMMeetingFilesDataSeeder, AXMMeetingParticipantDataSeeder, AXMMeetingRoleTypeDataSeeder, AXMMeetingSessionDataSeeder, AXMMeetingTypeDataSeeder, AXMMeetingTypeFileTemplateDataSeeder, AXMPositionAssignmentDataSeeder, AXMPositionDataSeeder, AXMQuestionBankItemCategoryDataSeeder, AXMQuestionBankItemDataSeeder, AXMQuestionnaireCategoryDataSeeder, AXMQuestionnaireDataSeeder, AXMReportCategoryDataSeeder, AXMReportDefinitionDataSeeder, AXMReportExecuteCommand, AXMResponsibilityDataSeeder, AXMTagDataSeeder, AXMTeamDataSeeder, AXPDashboardDataSeeder, AXPIdentifierDB, AXPMessageDataSeeder, AXPMockChecksumProvider, AXPMockClockProvider, AXPMockIdentifierService, AXPMockLookupProvider, AXPMockPolicyProvider, AXPMockSequenceProvider, AXPRoomDataSeeder, AXPSecurityManagementRoleDataSeeder, AXPSecurityManagementUserDataSeeder, AXPTaskBoardPlatformManagementTaskProvider, AXPTaskBoardProjectManagementTaskProvider, AXVChangeType, BUSINESS_UNITS_MOCK, COSTMANAGER_ENTERPRISE, COSTMANAGER_PROFESSIONAL, COSTMANAGER_STANDARD, CRM_ENTERPRISE, CheckPermissionActivity, DASHBOARDS, EDITIONS, EMPLOYEES_MOCK, EMPLOYMENT_TYPES_MOCK, ExecuteCommandActivity, ExecuteQueryActivity, FINANCE_BASIC, FINANCE_ENTERPRISE, FINANCE_PRO, HR_ENTERPRISE, JOB_DEFINITIONS_CATEGORY_MOCK, JOB_DEFINITIONS_MOCK, JOB_LEVELS_MOCK, LASER_PLUMBING_TENANT_ID, LEAVE_REQUESTS_MOCK, MockModuleAccessControlService, ORDERING_BASIC, ORDERING_ENTERPRISE, ORDERING_STANDARD, OWNERSHIP_FILTER_BYPASS, PLATFORM_CONSOLE, PLATFORM_TENANT_ID, POSITIONS_CATEGORY_MOCK, POSITIONS_MOCK, POSITION_ASSIGNMENTS_MOCK, QUESTIONNAIRE_CATEGORY_MOCK, QUESTION_BANK_ITEM_CATEGORY_MOCK, RESPONSIBILITIES_CATEGORY_MOCK, RESPONSIBILITIES_MOCK, SAFETYMINDER_BASIC, SAFETYMINDER_ENTERPRISE, SAFETYMINDER_PROFESSIONAL, SHOP_BASIC, SHOP_ENTERPRISE, SHOP_PRO, TAGS_MOCK, TASKS, TASK_STATUSES, TASK_TEMPLATES, TASK_TYPES, TEAMS_MOCK, TIMEPLICITY_TENANT_ID, TOKENS, VISIBILITY_FILTER_BYPASS, assessmentCaseMock, assessmentSessionMock, auditLoggerMiddleware, avatarInterface, axVersionDB, axWorkflowExecutionDB, bypassAllFilters, bypassOwnershipFilter, bypassVisibilityFilter, calendarEventMock, calendarEventTypeMockData, calendarMock, checkboxInterface, childCountMiddleware, colorInterface, computeDiff, contactInterface, createAndSaveDashboardForUser, createDashboardForUser, createFileCastMiddleware, dateInterface, dateTimeInterface, descriptionInterface, emailInterface, fileUploaderInterface, findContactMethod, findEmployeeById, findPersonById, generateUserDashboard, groupOrderItemCalculatorMiddleware, historyLoggerMiddleware, identifierCommitMiddleware, imageInterface, lockGuardMiddleware, longTextAnswerInterface, lookupInterface, lookupResolverMiddleware, mapInterface, meetingFilesMock, meetingIds, meetingMock, meetingParticipantMock, meetingRoleTypeMock, meetingSessionMock, meetingTimeSlotMock, meetingTypeFileTemplateMock, meetingTypeMock, mergeDetailRelationMiddleware, metadataCategoryMocks, mockRoleDefinitions, mockUsers, multipleChoiceInterface, multipleSelectInterface, normalizeAnyFileArrayForView, normalizeSnapshotFileFieldsForView, numberInterface, participantIds, passwordInterface, phoneInterface, primaryMiddleware, provideWorkflowActivities, qrcodeInterface, questionBankItemMock, questionnaireMock, ratingInterface, richTextInterface, scaleInterface, selectInterface, selectionListInterface, signatureInterface, signatureLoaderMiddleware, tagInterface, tenantMocks, textAreaInterface, textInterface, timeDurationInterface, titleInterface, toUiRows, toggleInterface, urlInterface, versionInterface, visibilityFilterMiddleware, workflowDefinitionEntityMock, workflowDefinitionIds, workflowDefinitionMock, yesNoInterface };
2775
- export type { AXCBusinessUnitMockDto, AXCLeaveRequestMockDto, AXCPositionAssignmentMockDto, AXCTeamMockDto, AXMTag, AXPLogRow, AXPRuleRow, AXPSeqRow, AXPVersionChange, AXPVersionEntry, AXPVersionStream, CanonicalChange, CanonicalChangeOp, CategoryMetadataInheritanceGroupResult, CategoryMetadataInheritanceQueryParams, CategoryMetadataInheritanceResult, CheckPermissionInput, CheckPermissionOutput, ExecuteCommandInput, ExecuteCommandOutput, ExecuteQueryInput, ExecuteQueryOutput, JobDefinitionMockDto, JobLevelMockDto, MockUserPassCredentials, PersonMockData, PositionMockDto, QuestionBankItemMockDto, QuestionnaireMockDto, ResponsibilityMockDto, Task, TaskStatus, TaskTemplate, TaskType, UIDiffRow, VersionedFileInfo };
2786
+ 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 };
2787
+ 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 };