@acorex/connectivity 20.7.13 → 20.7.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/mock/index.d.ts CHANGED
@@ -15,13 +15,15 @@ import { AXMSecurityManagementRolesEntityModel, AXMSecurityManagementUsersEntity
15
15
  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
+ import { AXMPersonCorePersonIdentifierTypeEntityModel, AXMPersonCorePersonRelationshipTypeEntityModel } from '@acorex/modules/person-core';
19
+ import { AXPWorkflowDefinition, AXPActivityCategory, AXPActivityDefinition, AXPWorkflowCategory, AXPWorkflowInstance, AXPWorkflowEngine, AXPStartWorkflowRequest, AXPStartWorkflowResponse, AXPResumeWorkflowRequest, AXPResumeWorkflowResponse, AXPGetWorkflowStateRequest, AXPWorkflowInstanceState, AXPFrontActivityCompleteRequest, AXPFrontActivityCompleteResponse } from '@acorex/platform/workflow';
18
20
  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';
20
21
  import { AXPWorkflowTaskProvider, AXPTaskFilter, AXPTask, AXPExtraField, AXPTaskStatus } from '@acorex/modules/task-management';
22
+ import { AXMMetaDataDefinitionEntityModel, AXMMetaDataSelectorValue, AXMDataManagementEquipmentEntityModel } from '@acorex/modules/data-management';
23
+ import { AXPWidgetNode } from '@acorex/platform/layout/widget-core';
21
24
  import { AXMCommonDashboardEntityModel } from '@acorex/modules/dashboard-management';
22
25
  import * as _acorex_modules_calendar_management from '@acorex/modules/calendar-management';
23
26
  import { AXMCalendarManagementCalendarEventTypeEntityModel } from '@acorex/modules/calendar-management';
24
- import { AXPWidgetNode } from '@acorex/platform/layout/widget-core';
25
27
  import { AXPIdentifierRule, AXPClockProvider, AXPChecksumProvider, AXPPolicyProvider, AXPLookupProvider, AXPSequenceProvider, AXPIdentifierService, AXPIdentifierRequest, AXPIdentifierResult, AXPIdentifierPeekResult } from '@acorex/modules/identifier-management';
26
28
 
27
29
  declare class AXCCommonMockModule {
@@ -90,6 +92,12 @@ declare class AXCLocationManagementMockModule {
90
92
  static ɵinj: i0.ɵɵInjectorDeclaration<AXCLocationManagementMockModule>;
91
93
  }
92
94
 
95
+ declare class AXCContactCoreMockModule {
96
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCContactCoreMockModule, never>;
97
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXCContactCoreMockModule, never, never, never>;
98
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXCContactCoreMockModule>;
99
+ }
100
+
93
101
  declare class AXCOrganizationManagementMockModule {
94
102
  static ɵfac: i0.ɵɵFactoryDeclaration<AXCOrganizationManagementMockModule, never>;
95
103
  static ɵmod: i0.ɵɵNgModuleDeclaration<AXCOrganizationManagementMockModule, never, never, never>;
@@ -210,6 +218,18 @@ declare class AXCTaskManagementMockModule {
210
218
  static ɵinj: i0.ɵɵInjectorDeclaration<AXCTaskManagementMockModule>;
211
219
  }
212
220
 
221
+ declare class AXCPersonCoreMockModule {
222
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCPersonCoreMockModule, never>;
223
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXCPersonCoreMockModule, never, never, never>;
224
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXCPersonCoreMockModule>;
225
+ }
226
+
227
+ declare class AXCHealthCoreMockModule {
228
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCHealthCoreMockModule, never>;
229
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXCHealthCoreMockModule, never, never, never>;
230
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXCHealthCoreMockModule>;
231
+ }
232
+
213
233
  declare class AXCPersonManagementMockModule {
214
234
  static ɵfac: i0.ɵɵFactoryDeclaration<AXCPersonManagementMockModule, never>;
215
235
  static ɵmod: i0.ɵɵNgModuleDeclaration<AXCPersonManagementMockModule, never, never, never>;
@@ -279,7 +299,7 @@ declare class AXCMiddlewaresModule {
279
299
  declare class AXCMockModule {
280
300
  constructor(appInitService: AXPAppStartUpService, injector: Injector);
281
301
  static ɵfac: i0.ɵɵFactoryDeclaration<AXCMockModule, never>;
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>;
302
+ 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 AXCContactCoreMockModule, 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 AXCPersonCoreMockModule, typeof AXCHealthCoreMockModule, typeof AXCPersonManagementMockModule, typeof AXCContentManagementMockModule, typeof AXCMeetingManagementMockModule, typeof AXCSettingsManagementMockModule, typeof AXCAssessmentManagementMockModule, typeof AXCFinancialCoreMockModule, typeof AXCMeasurementCoreMockModule, typeof AXCBusinessCoreMockModule, typeof AXCProductCatalogMockModule, typeof AXCReservationManagementMockModule, typeof AXCMiddlewaresModule], never>;
283
303
  static ɵinj: i0.ɵɵInjectorDeclaration<AXCMockModule>;
284
304
  }
285
305
 
@@ -451,7 +471,8 @@ declare class AXCDexieEntityStorageService extends Dexie implements AXPEntitySto
451
471
  */
452
472
  private isCategoryEntity;
453
473
  /**
454
- * Calculate childrenCount for each category entity
474
+ * Calculate childrenCount for each category entity.
475
+ * Uses stored childrenCount when present; computes only when missing or invalid.
455
476
  */
456
477
  private calculateChildrenCounts;
457
478
  /**
@@ -553,6 +574,11 @@ interface QuestionnaireMockDto extends AXPCategorizedEntityDto {
553
574
  title: string;
554
575
  description?: string;
555
576
  type: 'questionnaire' | 'survey' | 'checklist' | 'test' | 'evaluation';
577
+ preEnabled?: boolean;
578
+ preContent?: string | Record<string, string>;
579
+ postReviewEnabled?: boolean;
580
+ postSummaryEnabled?: boolean;
581
+ postSummaryContent?: string | Record<string, string>;
556
582
  structure?: {
557
583
  sections: Array<{
558
584
  id: string;
@@ -1298,6 +1324,12 @@ declare class AXMLeaveRequestDataSeeder implements AXPDataSeeder {
1298
1324
  static ɵprov: i0.ɵɵInjectableDeclaration<AXMLeaveRequestDataSeeder>;
1299
1325
  }
1300
1326
 
1327
+ type PersonIdentifierTypeMockDto = AXMPersonCorePersonIdentifierTypeEntityModel;
1328
+ declare const personIdentifierTypeMock: PersonIdentifierTypeMockDto[];
1329
+
1330
+ type PersonRelationshipTypeMockDto = AXMPersonCorePersonRelationshipTypeEntityModel;
1331
+ declare const personRelationshipTypeMock: PersonRelationshipTypeMockDto[];
1332
+
1301
1333
  interface PersonMockData {
1302
1334
  id: string;
1303
1335
  firstName: string;
@@ -1391,10 +1423,16 @@ interface TaskTemplate {
1391
1423
  declare const TASK_TEMPLATES: TaskTemplate[];
1392
1424
 
1393
1425
  /**
1394
- * Mock workflow definition entities for the entity list.
1426
+ * Mock workflow definitions for testing and demonstration.
1427
+ * Used by workflow-definition provider and entity list.
1395
1428
  */
1429
+ declare const workflowDefinitionMock: AXPWorkflowDefinition[];
1430
+ declare const workflowDefinitionIds: {
1431
+ createLeaveRequest: string;
1432
+ };
1396
1433
  /**
1397
- * Mock workflow definition entities for the entity list.
1434
+ * Mock workflow definition entities for the entity list and seeder.
1435
+ * Attach Staff category directly to entity (similar to other mocks that bind category in data).
1398
1436
  */
1399
1437
  declare const workflowDefinitionEntityMock: AXMWorkflowManagementWorkflowDefinitionEntityModel[];
1400
1438
 
@@ -1405,6 +1443,14 @@ declare class AXCWorkflowDefinitionDataSeeder implements AXPDataSeeder {
1405
1443
  static ɵprov: i0.ɵɵInjectableDeclaration<AXCWorkflowDefinitionDataSeeder>;
1406
1444
  }
1407
1445
 
1446
+ /**
1447
+ * Activity categories with stable IDs (same pattern as metadata-category).
1448
+ * Uses childrenCount & itemsCount for performance:
1449
+ * - childrenCount: Direct child categories (for lazy loading)
1450
+ * - itemsCount: Direct activities in this category
1451
+ */
1452
+ declare const activityCategoryMocks: AXPActivityCategory[];
1453
+ /** @deprecated Use activityCategoryMocks. Kept for backward compatibility (seeder, etc.). */
1408
1454
  declare const ACTIVITY_CATEGORIES: AXPActivityCategory[];
1409
1455
 
1410
1456
  declare class AXCActivityCategorySeeder implements AXPDataSeeder {
@@ -1423,18 +1469,21 @@ declare class AXCActivityDefinitionSeeder implements AXPDataSeeder {
1423
1469
  static ɵprov: i0.ɵɵInjectableDeclaration<AXCActivityDefinitionSeeder>;
1424
1470
  }
1425
1471
 
1472
+ /**
1473
+ * Single workflow category for company: Staff.
1474
+ * Workflow provider maps this category to Leave Request workflow.
1475
+ */
1426
1476
  declare const WORKFLOW_CATEGORIES: AXPWorkflowCategory[];
1427
1477
 
1428
1478
  /**
1429
- * Mock Workflow Category Provider
1430
- *
1431
- * Provides workflow categories from mock data.
1479
+ * Seeds workflow categories into entity storage.
1480
+ * Module’s AXMWorkflowCategoryProvider reads from this key (same pattern as report categories).
1432
1481
  */
1433
- declare class AXCWorkflowCategoryProvider implements AXPWorkflowCategoryProvider {
1434
- getList(parentId?: string): Promise<AXPWorkflowCategory[]>;
1435
- getById(id: string): Promise<AXPWorkflowCategory | undefined>;
1436
- static ɵfac: i0.ɵɵFactoryDeclaration<AXCWorkflowCategoryProvider, never>;
1437
- static ɵprov: i0.ɵɵInjectableDeclaration<AXCWorkflowCategoryProvider>;
1482
+ declare class AXCWorkflowCategorySeeder implements AXPDataSeeder {
1483
+ private readonly storageService;
1484
+ seed(): Promise<void>;
1485
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCWorkflowCategorySeeder, never>;
1486
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXCWorkflowCategorySeeder>;
1438
1487
  }
1439
1488
 
1440
1489
  type extraFields$1 = {
@@ -1610,6 +1659,59 @@ declare class AXCMetadataCategorySeeder implements AXPDataSeeder {
1610
1659
  static ɵprov: i0.ɵɵInjectableDeclaration<AXCMetadataCategorySeeder>;
1611
1660
  }
1612
1661
 
1662
+ interface MetadataElectricityMockDto extends AXMMetaDataDefinitionEntityModel, AXPCategorizedEntityDto {
1663
+ id: string;
1664
+ name: string;
1665
+ title: string;
1666
+ defaultValue: string;
1667
+ interface: AXPWidgetNode;
1668
+ }
1669
+ /** Single category for all electricity metadata (تجهیزات) */
1670
+ declare const EQUIPMENT_CATEGORY_ID = "equipment";
1671
+ declare const metadataElectricityCategoryMocks: AXPCategoryEntity<string>[];
1672
+ declare const METADATA_ELECTRICITY_MOCK: MetadataElectricityMockDto[];
1673
+
1674
+ declare class AXCMetaDataDefinitionElectricityDataSeeder implements AXPDataSeeder {
1675
+ private storageService;
1676
+ seed(): Promise<void>;
1677
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCMetaDataDefinitionElectricityDataSeeder, never>;
1678
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXCMetaDataDefinitionElectricityDataSeeder>;
1679
+ }
1680
+
1681
+ declare class AXCMetadataElectricityCategorySeeder implements AXPDataSeeder {
1682
+ private readonly storageService;
1683
+ seed(): Promise<void>;
1684
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCMetadataElectricityCategorySeeder, never>;
1685
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXCMetadataElectricityCategorySeeder>;
1686
+ }
1687
+
1688
+ /**
1689
+ * Equipment categories built from equipment-type-meta-data-list.json.
1690
+ * Each entry has typeCode, categoryId, and metaDataList (groups with fields).
1691
+ */
1692
+ type EquipmentCategoryMockDto = AXPCategoryEntity & {
1693
+ icon?: string;
1694
+ color?: string;
1695
+ metaDataList?: AXMMetaDataSelectorValue;
1696
+ };
1697
+ declare const equipmentCategoryMocks: EquipmentCategoryMockDto[];
1698
+
1699
+ declare class AXCEquipmentCategorySeeder implements AXPDataSeeder {
1700
+ private readonly storageService;
1701
+ seed(): Promise<void>;
1702
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCEquipmentCategorySeeder, never>;
1703
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXCEquipmentCategorySeeder>;
1704
+ }
1705
+
1706
+ declare const equipmentMocks: AXMDataManagementEquipmentEntityModel[];
1707
+
1708
+ declare class AXCEquipmentSeeder implements AXPDataSeeder {
1709
+ private readonly storageService;
1710
+ seed(): Promise<void>;
1711
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCEquipmentSeeder, never>;
1712
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXCEquipmentSeeder>;
1713
+ }
1714
+
1613
1715
  interface AXMTag {
1614
1716
  id: string;
1615
1717
  title: string;
@@ -2336,6 +2438,8 @@ declare class AXCWorkflowEngine implements AXPWorkflowEngine {
2336
2438
  private readonly entityStorageService;
2337
2439
  private readonly activityDefinitionService;
2338
2440
  private readonly workflowProviders;
2441
+ private readonly expressionScopeService;
2442
+ private readonly expressionEvaluator;
2339
2443
  /**
2340
2444
  * Get workflow definition by name using workflow providers.
2341
2445
  * Falls back to entity storage query by name if providers fail.
@@ -2379,6 +2483,25 @@ declare class AXCWorkflowEngine implements AXPWorkflowEngine {
2379
2483
  * Find activity in Graph by ID.
2380
2484
  */
2381
2485
  private findActivityInGraph;
2486
+ /**
2487
+ * Default outcome used when the requested outcome is not in the allowed list (standard scenario).
2488
+ */
2489
+ private static readonly DEFAULT_UNMATCHED_OUTCOME;
2490
+ /**
2491
+ * Resolve allowed outcomes for the current activity from the workflow definition.
2492
+ * - For human-task: parse activity instance inputs.actions (prefix/suffix) and use action names as outcomes.
2493
+ * - Otherwise: use activity definition outcomes or ['Done'].
2494
+ */
2495
+ private getActivityAllowedOutcomes;
2496
+ /**
2497
+ * Normalize outcome: if it is in the allowed list, return as-is; otherwise use standard fallback and log.
2498
+ */
2499
+ private normalizeOutcome;
2500
+ /**
2501
+ * Ensure value is a plain object for use as scope.outputs.
2502
+ * Each step overwrites outputs; the next activity's input sees this as outputs.id, outputs.xxx, etc.
2503
+ */
2504
+ private ensureOutputsForScope;
2382
2505
  /**
2383
2506
  * Resume a suspended workflow instance.
2384
2507
  *
@@ -2417,20 +2540,10 @@ declare class AXCWorkflowEngine implements AXPWorkflowEngine {
2417
2540
  * @returns Promise of execution mode: 'frontend', 'backend', or 'both'
2418
2541
  */
2419
2542
  private determineExecutionMode;
2420
- /**
2421
- * Evaluate expressions in activity inputs.
2422
- * Supports ${var} and ${path.to.value} syntax.
2423
- * Handles nested objects and arrays.
2424
- * Supports mixed strings: "Hello ${user.name}"
2425
- *
2426
- * @param inputs - Activity inputs (may contain expressions)
2427
- * @param context - Context object with variables (workflow input, variables, output)
2428
- * @returns Evaluated inputs with expressions replaced
2429
- */
2430
- private evaluateActivityInputs;
2431
2543
  /**
2432
2544
  * Create a task from a workflow activity.
2433
2545
  * Inspired by Temporal's Activity Task and Elsa's Bookmark pattern.
2546
+ * Uses same expression scope (inputs, variables, outputs, context.eval) as backend execution.
2434
2547
  */
2435
2548
  private createTaskFromActivity;
2436
2549
  /**
@@ -2446,11 +2559,16 @@ declare class AXCWorkflowEngine implements AXPWorkflowEngine {
2446
2559
  * Execute backend activities locally using CommandBus.
2447
2560
  *
2448
2561
  * Backend activities are registered as Commands and executed via CommandService.
2449
- * This provides a unified execution channel for all activities.
2450
- *
2451
- * Supports expression evaluation in activity inputs before execution.
2562
+ * Uses WorkflowExpressionScopeService + AXPExpressionEvaluatorService for expression
2563
+ * evaluation (inputs, variables, outputs, context.eval) so backend activities get the
2564
+ * same expression handling as the platform ActivityExecutor.
2452
2565
  */
2453
2566
  private executeBackendActivityLocally;
2567
+ /**
2568
+ * Build variable updates from activity output using activity's outputToVariables (BPMN-style: activity → variable).
2569
+ * For each entry in activity.outputToVariables, sets variables[variableName] = output[outputPath].
2570
+ */
2571
+ private getVariableUpdatesFromOutput;
2454
2572
  /**
2455
2573
  * Set variable activity - stores value in workflow state.
2456
2574
  */
@@ -2471,23 +2589,6 @@ declare class AXCWorkflowEngine implements AXPWorkflowEngine {
2471
2589
  * @returns Bookmark ID
2472
2590
  */
2473
2591
  private createBookmark;
2474
- /**
2475
- * Create a work item from a bookmark (only for human-task activities).
2476
- *
2477
- * @param instanceId - Workflow instance ID
2478
- * @param activityId - Activity ID
2479
- * @param bookmarkId - Bookmark ID
2480
- * @param activityDef - Activity definition (optional, for title)
2481
- */
2482
- private createWorkItemFromBookmark;
2483
- /**
2484
- * Update work items entity reference after entity is created.
2485
- */
2486
- private updateWorkItemsEntityRef;
2487
- /**
2488
- * Update work item assignee from entity data (e.g., employee.manager.userId for leave requests).
2489
- */
2490
- private updateWorkItemAssigneeFromEntity;
2491
2592
  /**
2492
2593
  * Consume (mark as consumed) a bookmark for a workflow instance.
2493
2594
  *
@@ -2553,19 +2654,6 @@ declare class AXCWorkflowEngine implements AXPWorkflowEngine {
2553
2654
  static ɵprov: i0.ɵɵInjectableDeclaration<AXCWorkflowEngine>;
2554
2655
  }
2555
2656
 
2556
- /**
2557
- * Mock workflow definitions for testing and demonstration.
2558
- */
2559
- declare const workflowDefinitionMock: AXPWorkflowDefinition[];
2560
- /**
2561
- * Export definitionId list for easy access
2562
- */
2563
- declare const workflowDefinitionIds: {
2564
- createUser: string;
2565
- welcome: string;
2566
- dataProcessing: string;
2567
- };
2568
-
2569
2657
  declare const titleInterface: AXPWidgetNode;
2570
2658
  declare const descriptionInterface: AXPWidgetNode;
2571
2659
  declare const versionInterface: AXPWidgetNode;
@@ -2693,6 +2781,18 @@ declare class AXPMockIdentifierService extends AXPIdentifierService {
2693
2781
  */
2694
2782
  declare const auditLoggerMiddleware: AXPEntityStorageMiddleware;
2695
2783
 
2784
+ /**
2785
+ * Category Resolver Middleware
2786
+ *
2787
+ * - On create/update: resolves categoryIds to full category objects with ancestor chain
2788
+ * and persists categories: [{id, parentId, title}, ...] on the record.
2789
+ * - On getOne/query/getAll: enriches records that have categoryIds but no categories
2790
+ * (e.g. seeded data) so the column can display full paths.
2791
+ *
2792
+ * Real API can return the same shape via JOIN; mock enriches at write and read time.
2793
+ */
2794
+ declare const categoryResolverMiddleware: AXPEntityStorageMiddleware;
2795
+
2696
2796
  declare const childCountMiddleware: AXPEntityStorageMiddleware;
2697
2797
 
2698
2798
  /**
@@ -2888,5 +2988,5 @@ declare function bypassAllFilters<T extends AXPQueryRequest>(request: T): T;
2888
2988
 
2889
2989
  declare const AXCMockEntityLogListener: AXPDistributedEventListenerProvider<any>;
2890
2990
 
2891
- 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, 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 };
2892
- 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 };
2991
+ export { ACTIVITY_CATEGORIES, ACTIVITY_DEFINITIONS, APPLICATIONS, AXCActivityCategorySeeder, AXCActivityDefinitionSeeder, AXCAppTermDataSeeder, AXCAppVersionDataSeeder, AXCApplicationDataSeeder, AXCApplicationManagementMockModule, AXCAssessmentManagementMockModule, AXCAssetManagementMockModule, AXCAuthMockModule, AXCCalendarDataSeeder, AXCCalendarEventDataSeeder, AXCCalendarManagementMockModule, AXCCommonMockModule, AXCContactCoreMockModule, AXCContactManagementMockModule, AXCContentManagementMockModule, AXCConversationMockModule, AXCCustomerManagementMockModule, AXCDashboardManagementMockModule, AXCDataManagementMockModule, AXCDexieEntityStorageService, AXCDocumentManagementMockModule, AXCEditionDataSeeder, AXCEquipmentCategorySeeder, AXCEquipmentSeeder, AXCFileStorageService, AXCFinancialCoreMockModule, AXCFormTemplateManagementMockModule, AXCGoogleStrategyMock, AXCHealthCoreMockModule, AXCHelpDeskMockModule, AXCHumanCapitalManagementMockModule, AXCIdentifierManagementMockModule, AXCImageCaptchaChallengeProviderMock, AXCJsaSeeder, AXCLearningManagementMockModule, AXCLocaleManagementMockModule, AXCLocationManagementMockModule, AXCLockService, AXCMeasurementCoreMockModule, AXCMeetingManagementMockModule, AXCMetaDataDefinitionDataSeeder, AXCMetaDataDefinitionElectricityDataSeeder, AXCMetadataCategorySeeder, AXCMetadataElectricityCategorySeeder, AXCMiddlewaresModule, AXCMockCaptchaChallengeComponent, AXCMockEntityLogListener, AXCMockModule, AXCNotificationManagementMockModule, AXCOrderManagementMockModule, AXCOrganizationManagementMockModule, AXCPersonCoreMockModule, AXCPersonManagementMockModule, AXCPlatformManagementMockModule, AXCProcurementManagementMockModule, AXCProductCatalogMockModule, AXCProjectManagementMockModule, AXCQueryCategoryMetadataInheritanceQuery, AXCReportManagementMockModule, AXCSecurityManagementMockModule, AXCSubscriptionManagementMockModule, AXCSupplierManagementMockModule, AXCTaskManagementMockModule, AXCTenantManagementMockModule, AXCTenantSeeder, AXCTokensDataSeeder, AXCUserPassStrategyMock, AXCVersionDB, AXCVersioningService, AXCWorkflowCategorySeeder, 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, EQUIPMENT_CATEGORY_ID, 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, METADATA_ELECTRICITY_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, activityCategoryMocks, assessmentCaseMock, assessmentSessionMock, auditLoggerMiddleware, avatarInterface, axVersionDB, axWorkflowExecutionDB, bypassAllFilters, bypassOwnershipFilter, bypassVisibilityFilter, calendarEventMock, calendarEventTypeMockData, calendarMock, categoryResolverMiddleware, checkboxInterface, childCountMiddleware, colorInterface, computeDiff, contactInterface, createAndSaveDashboardForUser, createDashboardForUser, createFileCastMiddleware, dateInterface, dateTimeInterface, descriptionInterface, emailInterface, equipmentCategoryMocks, equipmentMocks, fileUploaderInterface, findEmployeeById, findPersonById, generateUserDashboard, groupOrderItemCalculatorMiddleware, historyLoggerMiddleware, identifierCommitMiddleware, imageInterface, lockGuardMiddleware, longTextAnswerInterface, lookupInterface, lookupResolverMiddleware, mapInterface, meetingFilesMock, meetingIds, meetingMock, meetingParticipantMock, meetingRoleTypeMock, meetingSessionMock, meetingTimeSlotMock, meetingTypeFileTemplateMock, meetingTypeMock, mergeDetailRelationMiddleware, metadataCategoryMocks, metadataElectricityCategoryMocks, mockRoleDefinitions, mockUsers, multipleChoiceInterface, multipleSelectInterface, normalizeAnyFileArrayForView, normalizeSnapshotFileFieldsForView, numberInterface, participantIds, passwordInterface, personIdentifierTypeMock, personRelationshipTypeMock, 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 };
2992
+ export type { AXCBookmarkEntity, AXCBusinessUnitMockDto, AXCLeaveRequestMockDto, AXCPositionAssignmentMockDto, AXCTeamMemberMockDto, AXCTeamMemberRoleMockDto, AXCTeamMockDto, AXMTag, AXPLogRow, AXPRuleRow, AXPSeqRow, AXPVersionChange, AXPVersionEntry, AXPVersionStream, CanonicalChange, CanonicalChangeOp, CategoryMetadataInheritanceGroupResult, CategoryMetadataInheritanceQueryParams, CategoryMetadataInheritanceResult, JobDefinitionMockDto, JobLevelMockDto, MetadataElectricityMockDto, MockUserPassCredentials, PersonMockData, PositionMockDto, QuestionBankItemMockDto, QuestionnaireMockDto, ResponsibilityMockDto, Task, TaskStatus, TaskTemplate, TaskType, UIDiffRow, VersionedFileInfo };
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@acorex/connectivity",
3
- "version": "20.7.13",
3
+ "version": "20.7.15",
4
4
  "peerDependencies": {
5
- "@acorex/modules": "20.7.13"
5
+ "@acorex/modules": "20.7.15"
6
6
  },
7
7
  "sideEffects": false,
8
8
  "module": "fesm2022/acorex-connectivity.mjs",