@acorex/connectivity 20.3.0-next.8 → 20.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (19) hide show
  1. package/api/index.d.ts +13 -7
  2. package/fesm2022/acorex-connectivity-api-execute.command-DW9Lro_P.mjs +86 -0
  3. package/fesm2022/acorex-connectivity-api-execute.command-DW9Lro_P.mjs.map +1 -0
  4. package/fesm2022/acorex-connectivity-api.mjs +350 -40
  5. package/fesm2022/acorex-connectivity-api.mjs.map +1 -1
  6. package/fesm2022/{acorex-connectivity-mock-category-with-items.query-DEY9R9q2.mjs → acorex-connectivity-mock-category-with-items.query-wkRIfmup.mjs} +4 -4
  7. package/fesm2022/{acorex-connectivity-mock-category-with-items.query-DEY9R9q2.mjs.map → acorex-connectivity-mock-category-with-items.query-wkRIfmup.mjs.map} +1 -1
  8. package/fesm2022/acorex-connectivity-mock-distribution-record.command-DBTeqLVz.mjs +49 -0
  9. package/fesm2022/acorex-connectivity-mock-distribution-record.command-DBTeqLVz.mjs.map +1 -0
  10. package/fesm2022/{acorex-connectivity-mock-sample.command-BtkzyYby.mjs → acorex-connectivity-mock-sample.command-BghxC3n0.mjs} +4 -4
  11. package/fesm2022/{acorex-connectivity-mock-sample.command-BtkzyYby.mjs.map → acorex-connectivity-mock-sample.command-BghxC3n0.mjs.map} +1 -1
  12. package/fesm2022/acorex-connectivity-mock.mjs +19321 -16659
  13. package/fesm2022/acorex-connectivity-mock.mjs.map +1 -1
  14. package/fesm2022/acorex-connectivity-utils.mjs +7 -7
  15. package/fesm2022/acorex-connectivity-utils.mjs.map +1 -1
  16. package/mock/index.d.ts +296 -95
  17. package/package.json +6 -6
  18. package/fesm2022/acorex-connectivity-mock-employee-structure.queries-CchlfSox.mjs +0 -66
  19. package/fesm2022/acorex-connectivity-mock-employee-structure.queries-CchlfSox.mjs.map +0 -1
package/mock/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { AXPAppStartUpService, AXPQueryRequest, AXPPagedListResult, AXPCategorizedEntityDto, AXPCategoryEntity, AXPExecuteCommand, AXPExecuteCommandResult, AXPActionMenuItem, AXPDataSourceDefinitionProvider, AXPDataSourceDefinition, 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
3
  import { Injector } from '@angular/core';
4
4
  import * as _acorex_platform_auth from '@acorex/platform/auth';
@@ -9,15 +9,16 @@ import { Router } from '@angular/router';
9
9
  import { AXMAuthConfigs } from '@acorex/modules/auth';
10
10
  import { AXPEntityStorageService, AXPDataSeeder, AXPEntityStorageMiddleware } from '@acorex/platform/layout/entity';
11
11
  import Dexie, { Table } from 'dexie';
12
+ import { AXMApplicationManagementApplicationEntityModel, AXMApplicationManagementEditionEntityModel, AXMApplicationManagementFeatureEntityModel, AXMApplicationManagementModuleEntityModel } from '@acorex/modules/application-management';
12
13
  import * as _acorex_modules_report_management from '@acorex/modules/report-management';
13
14
  import { AXPReportCategoryProvider, AXPReportCategory, AXPReportDefinitionProvider, AXPReportDefinition, AXPExecutionReportCommand, AXPLayoutExecutionContext, AXPExecutionReportCommandResult } from '@acorex/modules/report-management';
14
- import { AXPWorkflowTaskProvider, AXPTaskFilter, AXPTask, AXPExtraField, AXPTaskStatus } from '@acorex/platform/workflow';
15
+ import { AXPWorkflowTaskProvider, AXPTaskFilter, AXPTask, AXPExtraField, AXPTaskStatus } from '@acorex/modules/task-management';
15
16
  import { AXMTextTemplateManagementTemplateEntityModel } from '@acorex/modules/text-template-management';
16
17
  import { AXMMetaDataDefinitionEntityModel } from '@acorex/modules/data-management';
17
18
  import { AXMCommonDashboardEntityModel } from '@acorex/modules/dashboard-management';
18
19
  import * as _acorex_modules_calendar_management from '@acorex/modules/calendar-management';
19
20
  import { AXMCalendarManagementCalendarEventTypeEntityModel } from '@acorex/modules/calendar-management';
20
- import { AXPLockService, AXPLockRequest, AXPLockInfo, AXPUnLockRequest, AXPLockGetInfoRequest, AXPFileStorageService, AXPFileStorageCreateRequest, AXPFileStorageInfo, AXPFileStorageUpdateRequest, AXPFileStorageFindRequest, AXPFileManyStorageInfo } from '@acorex/platform/common';
21
+ import { AXPLockService, AXPLockRequest, AXPLockInfo, AXPUnLockRequest, AXPLockGetInfoRequest, AXPFileStorageService, AXPFileStorageCreateRequest, AXPFileStorageInfo, AXPFileStorageUpdateRequest, AXPFileStorageFindRequest, AXPFileManyStorageInfo, CanonicalChange as CanonicalChange$1, AXPVersioningService, AXPVersionEntry as AXPVersionEntry$1, AXVChangeType as AXVChangeType$1 } from '@acorex/platform/common';
21
22
  import { AXPIdentifierRule, AXPClockProvider, AXPChecksumProvider, AXPPolicyProvider, AXPLookupProvider, AXPSequenceProvider, AXPIdentifierService, AXPIdentifierRequest, AXPIdentifierResult, AXPIdentifierPeekResult } from '@acorex/modules/identifier-management';
22
23
 
23
24
  declare class AXCCommonMockModule {
@@ -110,6 +111,12 @@ declare class AXCPlatformManagementMockModule {
110
111
  static ɵinj: i0.ɵɵInjectorDeclaration<AXCPlatformManagementMockModule>;
111
112
  }
112
113
 
114
+ declare class AXCApplicationManagementMockModule {
115
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCApplicationManagementMockModule, never>;
116
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXCApplicationManagementMockModule, never, never, never>;
117
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXCApplicationManagementMockModule>;
118
+ }
119
+
113
120
  declare class AXCTrainingManagementMockModule {
114
121
  static ɵfac: i0.ɵɵFactoryDeclaration<AXCTrainingManagementMockModule, never>;
115
122
  static ɵmod: i0.ɵɵNgModuleDeclaration<AXCTrainingManagementMockModule, never, never, never>;
@@ -203,7 +210,7 @@ declare class AXCMiddlewaresModule {
203
210
  declare class AXCMockModule {
204
211
  constructor(appInitService: AXPAppStartUpService, injector: Injector);
205
212
  static ɵfac: i0.ɵɵFactoryDeclaration<AXCMockModule, never>;
206
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXCMockModule, never, [typeof _acorex_platform_auth.AXPAuthModule, typeof AXCCommonMockModule, typeof AXCIdentifierManagementMockModule, typeof AXCSecurityManagementMockModule, typeof AXCFormTemplateManagementMockModule, typeof AXCCustomerManagementMockModule, typeof AXCContactManagementMockModule, typeof AXCLocationManagementMockModule, typeof AXCOrganizationManagementMockModule, typeof AXCHumanCapitalManagementMockModule, typeof AXCReportManagementMockModule, typeof AXCLocaleManagementMockModule, typeof AXCDashboardManagementMockModule, typeof AXCConversationMockModule, typeof AXCAuthMockModule, typeof AXCPlatformManagementMockModule, typeof AXCTrainingManagementMockModule, typeof AXCProjectManagementMockModule, typeof AXCDocumentManagementMockModule, typeof AXCHelpDeskMockModule, typeof AXCLogManagementMockModule, typeof AXCCalendarManagementMockModule, typeof AXCDataManagementMockModule, typeof AXCWorkflowManagementMockModule, typeof AXCNotificationManagementMockModule, typeof AXCTaskManagementMockModule, typeof AXCPartyManagementMockModule, typeof AXCContentManagementMockModule, typeof AXCMeetingManagementMockModule, typeof AXCSettingsManagementMockModule, typeof AXCMiddlewaresModule], never>;
213
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXCMockModule, never, [typeof _acorex_platform_auth.AXPAuthModule, typeof AXCCommonMockModule, typeof AXCIdentifierManagementMockModule, typeof AXCSecurityManagementMockModule, typeof AXCFormTemplateManagementMockModule, typeof AXCCustomerManagementMockModule, typeof AXCContactManagementMockModule, typeof AXCLocationManagementMockModule, typeof AXCOrganizationManagementMockModule, typeof AXCHumanCapitalManagementMockModule, typeof AXCReportManagementMockModule, typeof AXCLocaleManagementMockModule, typeof AXCDashboardManagementMockModule, typeof AXCConversationMockModule, typeof AXCAuthMockModule, typeof AXCPlatformManagementMockModule, typeof AXCApplicationManagementMockModule, typeof AXCTrainingManagementMockModule, typeof AXCProjectManagementMockModule, typeof AXCDocumentManagementMockModule, typeof AXCHelpDeskMockModule, typeof AXCLogManagementMockModule, typeof AXCCalendarManagementMockModule, typeof AXCDataManagementMockModule, typeof AXCWorkflowManagementMockModule, typeof AXCNotificationManagementMockModule, typeof AXCTaskManagementMockModule, typeof AXCPartyManagementMockModule, typeof AXCContentManagementMockModule, typeof AXCMeetingManagementMockModule, typeof AXCSettingsManagementMockModule, typeof AXCMiddlewaresModule], never>;
207
214
  static ɵinj: i0.ɵɵInjectorDeclaration<AXCMockModule>;
208
215
  }
209
216
 
@@ -277,89 +284,69 @@ declare class AXCDexieEntityStorageService extends Dexie implements AXPEntitySto
277
284
  insertOne<T = any>(entityName: string, entity: T): Promise<string>;
278
285
  getAll<T = any>(entityName: string): Promise<T[]>;
279
286
  query<T = any>(entityName: string, request: AXPQueryRequest): Promise<AXPPagedListResult<T>>;
287
+ /**
288
+ * Check if the entity is a category entity (ends with 'Category')
289
+ */
290
+ private isCategoryEntity;
291
+ /**
292
+ * Calculate childCount for each category entity
293
+ */
294
+ private calculateChildCounts;
295
+ /**
296
+ * Get the count of direct children for a category
297
+ */
298
+ private getDirectChildCount;
299
+ /**
300
+ * Check if the filter is a category filter (contains operator on categoryIds field)
301
+ * Handles both simple filters and compound filters
302
+ */
303
+ private isCategoryFilter;
304
+ /**
305
+ * Apply recursive category filtering - finds entities that belong to the category or any of its children
306
+ */
307
+ private applyRecursiveCategoryFilter;
308
+ /**
309
+ * Recursively gets all child category IDs including the parent category itself
310
+ */
311
+ private getAllChildCategoryIds;
280
312
  static ɵfac: i0.ɵɵFactoryDeclaration<AXCDexieEntityStorageService, never>;
281
313
  static ɵprov: i0.ɵɵInjectableDeclaration<AXCDexieEntityStorageService>;
282
314
  }
283
315
 
284
- declare const APPLICATIONS: {
285
- id: string;
286
- name: string;
287
- title: string;
288
- isArchived: boolean;
289
- }[];
290
- declare const MODULES: {
291
- id: string;
292
- name: string;
293
- title: string;
294
- isArchived: boolean;
295
- }[];
296
- declare const APPLICATIONS_MODULES: {
297
- id: string;
298
- application: {
299
- id: string;
300
- name: string;
301
- title: string;
302
- isArchived: boolean;
303
- };
304
- module: {
305
- id: string;
306
- name: string;
307
- title: string;
308
- isArchived: boolean;
309
- };
310
- }[];
311
- declare const EDITIONS: {
312
- id: string;
313
- application: {
314
- id: string;
315
- name: string;
316
- title: string;
317
- isArchived: boolean;
318
- };
319
- name: string;
320
- title: string;
321
- isArchived: boolean;
322
- }[];
323
- declare const FEATURES: {
324
- id: string;
325
- moduleId: string;
326
- name: string;
327
- title: string;
328
- isArchived: boolean;
329
- }[];
330
- declare const ENTITIES: {
331
- id: string;
332
- moduleId: string;
333
- name: string;
334
- title: string;
335
- isArchived: boolean;
336
- }[];
337
- declare const PERMISSIONS: {
338
- id: string;
339
- moduleId: string;
340
- name: string;
341
- title: string;
342
- isArchived: boolean;
343
- }[];
344
- declare const PROPERTIES: {
345
- id: string;
346
- entityId: string;
347
- name: string;
348
- title: string;
349
- path: string;
350
- }[];
316
+ declare const APPLICATIONS: AXMApplicationManagementApplicationEntityModel[];
351
317
 
352
- declare class AXCApplicationTemplateDataSeeder implements AXPDataSeeder {
353
- private storageService;
318
+ declare class AXCApplicationDataSeeder implements AXPDataSeeder {
319
+ private readonly storageService;
354
320
  seed(): Promise<void>;
355
- static ɵfac: i0.ɵɵFactoryDeclaration<AXCApplicationTemplateDataSeeder, never>;
356
- static ɵprov: i0.ɵɵInjectableDeclaration<AXCApplicationTemplateDataSeeder>;
321
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCApplicationDataSeeder, never>;
322
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXCApplicationDataSeeder>;
357
323
  }
358
324
 
359
- declare class AXCApplicationManagementMockModule {
360
- static ɵfac: i0.ɵɵFactoryDeclaration<AXCApplicationManagementMockModule, never>;
361
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXCApplicationManagementMockModule, never, never, never>;
362
- static ɵinj: i0.ɵɵInjectorDeclaration<AXCApplicationManagementMockModule>;
325
+ declare const EDITIONS: AXMApplicationManagementEditionEntityModel[];
326
+
327
+ declare class AXCEditionDataSeeder implements AXPDataSeeder {
328
+ private readonly storageService;
329
+ seed(): Promise<void>;
330
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCEditionDataSeeder, never>;
331
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXCEditionDataSeeder>;
332
+ }
333
+
334
+ declare const FEATURES: AXMApplicationManagementFeatureEntityModel[];
335
+
336
+ declare class AXCFeatureDataSeeder implements AXPDataSeeder {
337
+ private readonly storageService;
338
+ seed(): Promise<void>;
339
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCFeatureDataSeeder, never>;
340
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXCFeatureDataSeeder>;
341
+ }
342
+
343
+ declare const MODULES: AXMApplicationManagementModuleEntityModel[];
344
+
345
+ declare class AXCModuleDataSeeder implements AXPDataSeeder {
346
+ private readonly storageService;
347
+ seed(): Promise<void>;
348
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCModuleDataSeeder, never>;
349
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXCModuleDataSeeder>;
363
350
  }
364
351
 
365
352
  declare class AXCAppVersionDataSeeder implements AXPDataSeeder {
@@ -493,6 +480,7 @@ interface AXCEmployeeMockDto {
493
480
  hireDate: Date;
494
481
  managerId: string | null;
495
482
  manager: AXCEmployeeMockDto | null;
483
+ imageId: string[];
496
484
  }
497
485
  declare const EMPLOYEES_MOCK: AXCEmployeeMockDto[];
498
486
 
@@ -539,7 +527,7 @@ interface PositionMockDto extends AXPCategorizedEntityDto {
539
527
  }[];
540
528
  isManager?: boolean;
541
529
  }
542
- declare const POSITIONS_CATEGORY_MOCK: AXPCategoryEntity[];
530
+ declare const POSITIONS_CATEGORY_MOCK: AXPCategoryEntity<string>[];
543
531
  declare const POSITIONS_MOCK: PositionMockDto[];
544
532
 
545
533
  declare class AXMPositionDataSeeder implements AXPDataSeeder {
@@ -569,7 +557,7 @@ interface RoleMockDto extends AXPCategorizedEntityDto {
569
557
  title: string;
570
558
  }[];
571
559
  }
572
- declare const ROLES_CATEGORY_MOCK: AXPCategoryEntity[];
560
+ declare const ROLES_CATEGORY_MOCK: AXPCategoryEntity<string>[];
573
561
  declare const ROLES_MOCK: RoleMockDto[];
574
562
 
575
563
  declare class AXMRoleDataSeeder implements AXPDataSeeder {
@@ -589,7 +577,7 @@ interface ResponsibilityMockDto extends AXPCategorizedEntityDto {
589
577
  title: string;
590
578
  }[];
591
579
  }
592
- declare const RESPONSIBILITIES_CATEGORY_MOCK: AXPCategoryEntity[];
580
+ declare const RESPONSIBILITIES_CATEGORY_MOCK: AXPCategoryEntity<string>[];
593
581
  declare const RESPONSIBILITIES_MOCK: ResponsibilityMockDto[];
594
582
 
595
583
  declare class AXMResponsibilityDataSeeder implements AXPDataSeeder {
@@ -638,7 +626,7 @@ interface SkillMockDto extends AXPCategorizedEntityDto {
638
626
  title: string;
639
627
  }[];
640
628
  }
641
- declare const SKILLS_CATEGORY_MOCK: AXPCategoryEntity[];
629
+ declare const SKILLS_CATEGORY_MOCK: AXPCategoryEntity<string>[];
642
630
  declare const SKILLS_MOCK: SkillMockDto[];
643
631
 
644
632
  declare class AXMSkillDataSeeder implements AXPDataSeeder {
@@ -764,6 +752,8 @@ declare class AXQEmployeeSkillsListQuery implements AXPQuery<ListInput, {
764
752
  items: any[];
765
753
  total: number;
766
754
  }> {
755
+ private employeeSkillService;
756
+ private skillLevelService;
767
757
  fetch(input: ListInput): Promise<{
768
758
  items: any[];
769
759
  total: number;
@@ -775,17 +765,25 @@ type StatsInput = {
775
765
  skillId?: string;
776
766
  levelId?: string;
777
767
  minYears?: number;
768
+ startDate?: Date | string;
769
+ endDate?: Date | string;
778
770
  };
779
771
  declare class AXQEmployeeSkillsStatsQuery implements AXPQuery<StatsInput, Record<string, number>> {
772
+ private employeeSkillService;
780
773
  fetch(input: StatsInput): Promise<Record<string, number>>;
781
774
  static ɵfac: i0.ɵɵFactoryDeclaration<AXQEmployeeSkillsStatsQuery, never>;
782
775
  static ɵprov: i0.ɵɵInjectableDeclaration<AXQEmployeeSkillsStatsQuery>;
783
776
  }
784
777
  type LevelsInput = {
785
778
  skillId?: string;
779
+ levelId?: string;
786
780
  minYears?: number;
781
+ startDate?: Date | string;
782
+ endDate?: Date | string;
787
783
  };
788
784
  declare class AXQEmployeeSkillsLevelsQuery implements AXPQuery<LevelsInput, Record<string, number>> {
785
+ private employeeSkillService;
786
+ private skillLevelService;
789
787
  fetch(input: LevelsInput): Promise<Record<string, number>>;
790
788
  static ɵfac: i0.ɵɵFactoryDeclaration<AXQEmployeeSkillsLevelsQuery, never>;
791
789
  static ɵprov: i0.ɵɵInjectableDeclaration<AXQEmployeeSkillsLevelsQuery>;
@@ -800,6 +798,7 @@ declare class AXQEmployeeSkillsTrendQuery implements AXPQuery<TrendInput, {
800
798
  month: string;
801
799
  value: number;
802
800
  }[]> {
801
+ private employeeSkillService;
803
802
  fetch(input: TrendInput): Promise<{
804
803
  month: string;
805
804
  value: number;
@@ -808,11 +807,14 @@ declare class AXQEmployeeSkillsTrendQuery implements AXPQuery<TrendInput, {
808
807
  static ɵprov: i0.ɵɵInjectableDeclaration<AXQEmployeeSkillsTrendQuery>;
809
808
  }
810
809
  declare class AXQEmployeeSkillsSkillPercentagesQuery implements AXPQuery<StatsInput, Record<string, number>> {
810
+ private employeeSkillService;
811
811
  fetch(input: StatsInput): Promise<Record<string, number>>;
812
812
  static ɵfac: i0.ɵɵFactoryDeclaration<AXQEmployeeSkillsSkillPercentagesQuery, never>;
813
813
  static ɵprov: i0.ɵɵInjectableDeclaration<AXQEmployeeSkillsSkillPercentagesQuery>;
814
814
  }
815
815
  declare class AXQEmployeeSkillsLevelPercentagesQuery implements AXPQuery<LevelsInput, Record<string, number>> {
816
+ private employeeSkillService;
817
+ private skillLevelService;
816
818
  fetch(input: LevelsInput): Promise<Record<string, number>>;
817
819
  static ɵfac: i0.ɵɵFactoryDeclaration<AXQEmployeeSkillsLevelPercentagesQuery, never>;
818
820
  static ɵprov: i0.ɵɵInjectableDeclaration<AXQEmployeeSkillsLevelPercentagesQuery>;
@@ -1203,8 +1205,12 @@ declare const calendarMock: ({
1203
1205
  isActive: boolean;
1204
1206
  order: number;
1205
1207
  notes: string;
1206
- createdAt: Date;
1207
- updatedAt: Date;
1208
+ created: {
1209
+ at: Date;
1210
+ };
1211
+ updated: {
1212
+ at: Date;
1213
+ };
1208
1214
  scope?: undefined;
1209
1215
  scopeEntityId?: undefined;
1210
1216
  } | {
@@ -1234,8 +1240,12 @@ declare const calendarMock: ({
1234
1240
  isActive: boolean;
1235
1241
  order: number;
1236
1242
  notes: string;
1237
- createdAt: Date;
1238
- updatedAt: Date;
1243
+ created: {
1244
+ at: Date;
1245
+ };
1246
+ updated: {
1247
+ at: Date;
1248
+ };
1239
1249
  } | {
1240
1250
  id: string;
1241
1251
  name: string;
@@ -1263,8 +1273,12 @@ declare const calendarMock: ({
1263
1273
  isActive: boolean;
1264
1274
  order: number;
1265
1275
  notes: string;
1266
- createdAt: Date;
1267
- updatedAt: Date;
1276
+ created: {
1277
+ at: Date;
1278
+ };
1279
+ updated: {
1280
+ at: Date;
1281
+ };
1268
1282
  })[];
1269
1283
 
1270
1284
  declare class AXCCalendarDataSeeder implements AXPDataSeeder {
@@ -1290,8 +1304,12 @@ declare const calendarEventMock: ({
1290
1304
  recurrenceRule: string;
1291
1305
  isActive: boolean;
1292
1306
  order: number;
1293
- createdAt: Date;
1294
- updatedAt: Date;
1307
+ created: {
1308
+ at: Date;
1309
+ };
1310
+ updated: {
1311
+ at: Date;
1312
+ };
1295
1313
  } | {
1296
1314
  id: string;
1297
1315
  calendarId: string;
@@ -1308,8 +1326,12 @@ declare const calendarEventMock: ({
1308
1326
  recurrenceRule: null;
1309
1327
  isActive: boolean;
1310
1328
  order: number;
1311
- createdAt: Date;
1312
- updatedAt: Date;
1329
+ created: {
1330
+ at: Date;
1331
+ };
1332
+ updated: {
1333
+ at: Date;
1334
+ };
1313
1335
  })[];
1314
1336
 
1315
1337
  declare class AXCCalendarEventDataSeeder implements AXPDataSeeder {
@@ -1642,6 +1664,131 @@ declare class AXCFileStorageService implements AXPFileStorageService {
1642
1664
  static ɵprov: i0.ɵɵInjectableDeclaration<AXCFileStorageService>;
1643
1665
  }
1644
1666
 
1667
+ interface AXPVersionStream {
1668
+ id: string;
1669
+ entityType: string;
1670
+ entityId: string;
1671
+ createdAt: string;
1672
+ }
1673
+ declare enum AXVChangeType {
1674
+ Create = "Create",
1675
+ Update = "Update",
1676
+ Delete = "Delete"
1677
+ }
1678
+ type CanonicalChangeOp = 'add' | 'remove' | 'replace' | 'rename' | 'metadata';
1679
+ interface CanonicalChange {
1680
+ path: string;
1681
+ op: CanonicalChangeOp;
1682
+ oldValue?: unknown;
1683
+ newValue?: unknown;
1684
+ meta?: Record<string, unknown>;
1685
+ }
1686
+ interface AXPVersionEntry {
1687
+ id: string;
1688
+ streamId: string;
1689
+ versionNumber: number;
1690
+ changeType: AXVChangeType;
1691
+ changedBy: string;
1692
+ changedAt: string;
1693
+ snapshotJson: unknown;
1694
+ patchFromPrevJson: CanonicalChange[];
1695
+ summary?: string;
1696
+ metadataJson?: unknown;
1697
+ }
1698
+ interface AXPVersionChange {
1699
+ id?: number;
1700
+ versionEntryId: string;
1701
+ path: string;
1702
+ op: CanonicalChangeOp;
1703
+ oldValue?: unknown;
1704
+ newValue?: unknown;
1705
+ }
1706
+ interface VersionedFileInfo {
1707
+ id: string;
1708
+ name: string;
1709
+ size: number;
1710
+ mime: string;
1711
+ hash: string;
1712
+ url?: string;
1713
+ thumbUrl?: string;
1714
+ }
1715
+ declare class AXCVersionDB extends Dexie {
1716
+ version_streams: Table<AXPVersionStream, string>;
1717
+ version_entries: Table<AXPVersionEntry, string>;
1718
+ version_changes: Table<AXPVersionChange, number>;
1719
+ constructor();
1720
+ }
1721
+ declare const axVersionDB: AXCVersionDB;
1722
+
1723
+ /**
1724
+ * Compute canonical JSON Patch-like changes with custom ops for file arrays.
1725
+ */
1726
+ declare function computeDiff(prevSnapshot: unknown, nextSnapshot: unknown, basePath?: string): CanonicalChange$1[];
1727
+ declare class VersioningService implements AXPVersioningService {
1728
+ private readonly db;
1729
+ private readonly fileStorage;
1730
+ upsertStream(entityType: string, entityId: string): Promise<string>;
1731
+ /** Gets stream id if it exists, otherwise returns null (does not create). */
1732
+ getStreamIdIfExists(entityType: string, entityId: string): Promise<string | null>;
1733
+ getCurrentVersion(streamId: string): Promise<number>;
1734
+ /** Lists version entries for a given stream, newest first. */
1735
+ listEntries(streamId: string, options?: {
1736
+ limit?: number;
1737
+ offset?: number;
1738
+ }): Promise<AXPVersionEntry$1[]>;
1739
+ createVersion(entityType: string, entityId: string, newSnapshot: unknown, changes?: CanonicalChange$1[], options?: {
1740
+ changeType?: AXVChangeType$1;
1741
+ changedBy?: string;
1742
+ summary?: string;
1743
+ metadata?: unknown;
1744
+ }): Promise<AXPVersionEntry$1>;
1745
+ getDiffForVersions(streamId: string, v1: number, v2: number): Promise<CanonicalChange$1[]>;
1746
+ getUiFriendlyDiff(streamId: string, v1: number, v2: number): Promise<Array<{
1747
+ badge: string;
1748
+ path: string;
1749
+ summary: string;
1750
+ oldValue?: unknown;
1751
+ newValue?: unknown;
1752
+ }>>;
1753
+ static ɵfac: i0.ɵɵFactoryDeclaration<VersioningService, never>;
1754
+ static ɵprov: i0.ɵɵInjectableDeclaration<VersioningService>;
1755
+ }
1756
+
1757
+ interface UIDiffRow {
1758
+ badge: 'Added' | 'Removed' | 'Replaced' | 'Renamed' | 'Metadata' | 'Updated';
1759
+ path: string;
1760
+ summary: string;
1761
+ oldValue?: unknown;
1762
+ newValue?: unknown;
1763
+ }
1764
+ declare function toUiRows(changes: CanonicalChange[]): UIDiffRow[];
1765
+
1766
+ declare function normalizeAnyFileArrayForView(arr: any[], fileStorage: AXPFileStorageService): Promise<AXPFileListItem[]>;
1767
+ declare function normalizeSnapshotFileFieldsForView(snapshot: any, fileStorage: AXPFileStorageService): Promise<any>;
1768
+
1769
+ declare class AXCLogReportCategoryProvider implements AXPReportCategoryProvider {
1770
+ getList(parentId?: string): Promise<AXPReportCategory[]>;
1771
+ getById(id: string): Promise<AXPReportCategory | undefined>;
1772
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCLogReportCategoryProvider, never>;
1773
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXCLogReportCategoryProvider>;
1774
+ }
1775
+ declare class AXCLogReportDefinitionProvider implements AXPReportDefinitionProvider {
1776
+ getList(categoryId: string): Promise<AXPReportDefinition[]>;
1777
+ getById(id: string): Promise<AXPReportDefinition | undefined>;
1778
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCLogReportDefinitionProvider, never>;
1779
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXCLogReportDefinitionProvider>;
1780
+ }
1781
+ declare const AXC_LOG_REPORT_CATEGORY_PROVIDER: {
1782
+ provide: i0.InjectionToken<_acorex_modules_report_management.AXPReportCategoryProviderToken[]>;
1783
+ useClass: typeof AXCLogReportCategoryProvider;
1784
+ multi: boolean;
1785
+ };
1786
+ declare const AXC_LOG_REPORT_DEFINITION_PROVIDER: {
1787
+ provide: i0.InjectionToken<_acorex_modules_report_management.AXPReportDefinitionProviderToken[]>;
1788
+ useClass: typeof AXCLogReportDefinitionProvider;
1789
+ multi: boolean;
1790
+ };
1791
+
1645
1792
  interface AXPRuleRow extends AXPIdentifierRule {
1646
1793
  }
1647
1794
  interface AXPSeqRow {
@@ -1723,6 +1870,8 @@ declare class AXPMockIdentifierService extends AXPIdentifierService {
1723
1870
 
1724
1871
  declare const auditLoggerMiddleware: AXPEntityStorageMiddleware;
1725
1872
 
1873
+ declare const childCountMiddleware: AXPEntityStorageMiddleware;
1874
+
1726
1875
  /**
1727
1876
  * File Cast Middleware - Handles file operations in entity storage
1728
1877
  *
@@ -1745,9 +1894,61 @@ declare const createFileCastMiddleware: AXPEntityStorageMiddleware;
1745
1894
 
1746
1895
  declare const identifierCommitMiddleware: AXPEntityStorageMiddleware;
1747
1896
 
1897
+ /**
1898
+ * Lookup Resolver Middleware
1899
+ *
1900
+ * This middleware resolves lookup field IDs to full objects based on entity property definitions or naming conventions.
1901
+ *
1902
+ * Behavior:
1903
+ * - Runs on 'create' and 'update' operations
1904
+ * - Finds fields ending with 'Id' or 'Ids' (case sensitive)
1905
+ * - Resolves IDs to full objects from corresponding entity
1906
+ * - Replaces ID values with constructed objects
1907
+ *
1908
+ * Resolution Strategy (in order):
1909
+ * 1. Check entity property definition for LookupBox with entity option
1910
+ * 2. If property contains dot (X.assignId -> X.assign)
1911
+ * 3. Use current module name (ModuleName.assign)
1912
+ * 4. Try name variants with common modules
1913
+ *
1914
+ * Naming Convention:
1915
+ * - testId -> creates 'test' object with full record
1916
+ * - testIds -> creates 'testList' array with full records
1917
+ * - documentId -> creates 'document' object with full record
1918
+ * - categoryIds -> creates 'categoryList' array with full records
1919
+ *
1920
+ * Example:
1921
+ * Input: { stageId: "123" } with lookup to CustomerManagement.opportunityStage
1922
+ * Result: { stage: { id: "123", title: "Stage Title", ... } }
1923
+ */
1924
+ declare const lookupResolverMiddleware: AXPEntityStorageMiddleware;
1925
+
1748
1926
  declare const mergeDetailRelationMiddleware: AXPEntityStorageMiddleware;
1749
1927
 
1928
+ declare const primaryMiddleware: AXPEntityStorageMiddleware;
1929
+
1930
+ declare const historyLoggerMiddleware: AXPEntityStorageMiddleware;
1931
+
1932
+ /**
1933
+ * Signature Loader Middleware
1934
+ *
1935
+ * This middleware loads digital signatures for entities by attempting to query
1936
+ * the corresponding signature table ({EntityName}Signature).
1937
+ *
1938
+ * Behavior:
1939
+ * - Only runs on 'getOne' operation (entity details)
1940
+ * - Attempts to query signature table without checking plugin existence
1941
+ * - If signature table exists and has data, attaches signatures to result
1942
+ * - If table doesn't exist or query fails, silently continues
1943
+ *
1944
+ * Example:
1945
+ * Entity: "ContentManagement.Promotion"
1946
+ * Signature table: "ContentManagement.PromotionSignature"
1947
+ * Result: ctx.result.signatures = [{ id, signed, meta, ... }]
1948
+ */
1949
+ declare const signatureLoaderMiddleware: AXPEntityStorageMiddleware;
1950
+
1750
1951
  declare const AXCMockEntityLogListener: AXPDistributedEventListenerProvider<any>;
1751
1952
 
1752
- export { APPLICATIONS, APPLICATIONS_MODULES, AXCAppTermDataSeeder, AXCAppVersionDataSeeder, AXCApplicationManagementMockModule, AXCApplicationTemplateDataSeeder, AXCAuthMockModule, AXCCalendarDataSeeder, AXCCalendarEventDataSeeder, AXCCalendarManagementMockModule, AXCCommonMockModule, AXCContactManagementMockModule, AXCContentManagementMockModule, AXCConversationMockModule, AXCCustomerManagementMockModule, AXCDashboardManagementMockModule, AXCDataManagementMockModule, AXCDexieEntityStorageService, AXCDocumentManagementMockModule, AXCFileStorageService, AXCFormTemplateManagementMockModule, AXCGlobalVariablesDataSeeder, AXCGoogleStrategyMock, AXCHelpDeskMockModule, AXCHumanCapitalManagementMockModule, AXCIdentifierManagementMockModule, AXCJsaSeeder, AXCLocaleManagementMockModule, AXCLocationManagementMockModule, AXCLockService, AXCLogManagementMockModule, AXCMeetingManagementMockModule, AXCMetaDataDefinitionDataSeeder, AXCMiddlewaresModule, AXCMockEntityLogListener, AXCMockModule, AXCNotificationManagementMockModule, AXCOrganizationManagementMockModule, AXCPartyManagementMockModule, AXCPlatformManagementMockModule, AXCProjectManagementMockModule, AXCQueryCategoryMetadataInheritanceQuery, AXCReportManagementMockModule, AXCSchedulerJobDataSeeder, AXCSchedulerJobManagementMockModule, AXCSecurityManagementMockModule, AXCTaskManagementMockModule, AXCTextTemplateCategoryDataSeeder, AXCTextTemplateDataSeeder, AXCTextTemplateManagementMockModule, AXCTrainingManagementMockModule, AXCUserPassStrategyMock, AXCWorkflowManagementMockModule, AXMAiResponderService, AXMBusinessUnitDataSeeder, AXMCalendarEventTypeSeeder, AXMEmployeeDataSeeder, AXMEmployeeSkillDataSeeder, AXMEmployeeSkillsCategoryProvider, AXMEmployeeSkillsReportDefinitionProvider, AXMEmploymentTypeDataSeeder, AXMFormDataSourcesProvider, AXMIndustryDataSeeder, AXMLeaveRequestDataSeeder, AXMMeetingDataSeeder, AXMMeetingFilesDataSeeder, AXMMeetingParticipantDataSeeder, AXMMeetingRoleTypeDataSeeder, AXMMeetingSessionDataSeeder, AXMMeetingTypeDataSeeder, AXMMeetingTypeFileTemplateDataSeeder, AXMPositionAssignmentDataSeeder, AXMPositionDataSeeder, AXMReportCategoryDataSeeder, AXMReportDefinitionDataSeeder, AXMReportExecuteCommand, AXMReportMockDataService, AXMResponsibilityDataSeeder, AXMRoleDataSeeder, AXMSkillDataSeeder, AXMSkillLevelDataSeeder, AXMTeamDataSeeder, AXM_EMPLOYEE_SKILLS_CATEGORY_PROVIDER, AXM_EMPLOYEE_SKILLS_DEFINITION_PROVIDER, AXPDashboardDataSeeder, AXPIdentifierDB, AXPMessageDataSeeder, AXPMockChecksumProvider, AXPMockClockProvider, AXPMockIdentifierService, AXPMockLookupProvider, AXPMockPolicyProvider, AXPMockSequenceProvider, AXPRoomDataSeeder, AXPSecurityManagementRoleDataSeeder, AXPSecurityManagementUserDataSeeder, AXPTaskBoardPlatformManagementTaskProvider, AXPTaskBoardProjectManagementTaskProvider, AXQEmployeeSkillsLevelPercentagesQuery, AXQEmployeeSkillsLevelsQuery, AXQEmployeeSkillsListQuery, AXQEmployeeSkillsSkillPercentagesQuery, AXQEmployeeSkillsStatsQuery, AXQEmployeeSkillsTrendQuery, BUSINESS_UNITS_MOCK, DASHBOARDS, EDITIONS, EMPLOYEES_MOCK, EMPLOYEE_SKILLS_MOCK, EMPLOYMENT_TYPES_MOCK, ENTITIES, FEATURES, GLOBAL_VARIABLES, LEAVE_REQUESTS_MOCK, MODULES, PERMISSIONS, POSITIONS_CATEGORY_MOCK, POSITIONS_MOCK, POSITION_ASSIGNMENTS_MOCK, PROPERTIES, RESPONSIBILITIES_CATEGORY_MOCK, RESPONSIBILITIES_MOCK, ROLES_CATEGORY_MOCK, ROLES_MOCK, SKILLS_CATEGORY_MOCK, SKILLS_MOCK, SKILL_LEVELS_MOCK, TASKS, TASK_STATUSES, TASK_TEMPLATES, TASK_TYPES, TEAMS_MOCK, TEXT_TEMPLATES, TEXT_TEMPLATE_CATEGORY, applications, auditLoggerMiddleware, calendarEventMock, calendarEventTypeMockData, calendarMock, createAndSaveDashboardForUser, createDashboardForUser, createFileCastMiddleware, findContactMethod, findEmployeeById, findPartyById, generateUserDashboard, identifierCommitMiddleware, meetingFilesMock, meetingIds, meetingMock, meetingParticipantMock, meetingRoleTypeMock, meetingSessionMock, meetingTimeSlotMock, meetingTypeFileTemplateMock, meetingTypeMock, mergeDetailRelationMiddleware, mockRoleDefinitions, mockUsers, participantIds, tenantsMock };
1753
- export type { AXCBusinessUnitMockDto, AXCEmployeeSkillMockDto, AXCLeaveRequestMockDto, AXCPositionAssignmentMockDto, AXCSkillLevelMockDto, AXCTeamMockDto, AXPLogRow, AXPRuleRow, AXPSeqRow, CategoryMetadataInheritanceQueryParams, CategoryMetadataInheritanceResult, MockUserPassCredentials, PartyMockData, PositionMockDto, ResponsibilityMockDto, RoleMockDto, SkillMockDto, Task, TaskStatus, TaskTemplate, TaskType };
1953
+ export { APPLICATIONS, AXCAppTermDataSeeder, AXCAppVersionDataSeeder, AXCApplicationDataSeeder, AXCApplicationManagementMockModule, AXCAuthMockModule, AXCCalendarDataSeeder, AXCCalendarEventDataSeeder, AXCCalendarManagementMockModule, AXCCommonMockModule, AXCContactManagementMockModule, AXCContentManagementMockModule, AXCConversationMockModule, AXCCustomerManagementMockModule, AXCDashboardManagementMockModule, AXCDataManagementMockModule, AXCDexieEntityStorageService, AXCDocumentManagementMockModule, AXCEditionDataSeeder, AXCFeatureDataSeeder, AXCFileStorageService, AXCFormTemplateManagementMockModule, AXCGlobalVariablesDataSeeder, AXCGoogleStrategyMock, AXCHelpDeskMockModule, AXCHumanCapitalManagementMockModule, AXCIdentifierManagementMockModule, AXCJsaSeeder, AXCLocaleManagementMockModule, AXCLocationManagementMockModule, AXCLockService, AXCLogManagementMockModule, AXCLogReportCategoryProvider, AXCLogReportDefinitionProvider, AXCMeetingManagementMockModule, AXCMetaDataDefinitionDataSeeder, AXCMiddlewaresModule, AXCMockEntityLogListener, AXCMockModule, AXCModuleDataSeeder, AXCNotificationManagementMockModule, AXCOrganizationManagementMockModule, AXCPartyManagementMockModule, AXCPlatformManagementMockModule, AXCProjectManagementMockModule, AXCQueryCategoryMetadataInheritanceQuery, AXCReportManagementMockModule, AXCSchedulerJobDataSeeder, AXCSchedulerJobManagementMockModule, AXCSecurityManagementMockModule, AXCTaskManagementMockModule, AXCTextTemplateCategoryDataSeeder, AXCTextTemplateDataSeeder, AXCTextTemplateManagementMockModule, AXCTrainingManagementMockModule, AXCUserPassStrategyMock, AXCVersionDB, AXCWorkflowManagementMockModule, AXC_LOG_REPORT_CATEGORY_PROVIDER, AXC_LOG_REPORT_DEFINITION_PROVIDER, AXMAiResponderService, AXMBusinessUnitDataSeeder, AXMCalendarEventTypeSeeder, AXMEmployeeDataSeeder, AXMEmployeeSkillDataSeeder, AXMEmployeeSkillsCategoryProvider, AXMEmployeeSkillsReportDefinitionProvider, AXMEmploymentTypeDataSeeder, AXMFormDataSourcesProvider, AXMIndustryDataSeeder, AXMLeaveRequestDataSeeder, AXMMeetingDataSeeder, AXMMeetingFilesDataSeeder, AXMMeetingParticipantDataSeeder, AXMMeetingRoleTypeDataSeeder, AXMMeetingSessionDataSeeder, AXMMeetingTypeDataSeeder, AXMMeetingTypeFileTemplateDataSeeder, AXMPositionAssignmentDataSeeder, AXMPositionDataSeeder, AXMReportCategoryDataSeeder, AXMReportDefinitionDataSeeder, AXMReportExecuteCommand, AXMReportMockDataService, AXMResponsibilityDataSeeder, AXMRoleDataSeeder, AXMSkillDataSeeder, AXMSkillLevelDataSeeder, AXMTeamDataSeeder, AXM_EMPLOYEE_SKILLS_CATEGORY_PROVIDER, AXM_EMPLOYEE_SKILLS_DEFINITION_PROVIDER, AXPDashboardDataSeeder, AXPIdentifierDB, AXPMessageDataSeeder, AXPMockChecksumProvider, AXPMockClockProvider, AXPMockIdentifierService, AXPMockLookupProvider, AXPMockPolicyProvider, AXPMockSequenceProvider, AXPRoomDataSeeder, AXPSecurityManagementRoleDataSeeder, AXPSecurityManagementUserDataSeeder, AXPTaskBoardPlatformManagementTaskProvider, AXPTaskBoardProjectManagementTaskProvider, AXQEmployeeSkillsLevelPercentagesQuery, AXQEmployeeSkillsLevelsQuery, AXQEmployeeSkillsListQuery, AXQEmployeeSkillsSkillPercentagesQuery, AXQEmployeeSkillsStatsQuery, AXQEmployeeSkillsTrendQuery, AXVChangeType, BUSINESS_UNITS_MOCK, DASHBOARDS, EDITIONS, EMPLOYEES_MOCK, EMPLOYEE_SKILLS_MOCK, EMPLOYMENT_TYPES_MOCK, FEATURES, GLOBAL_VARIABLES, LEAVE_REQUESTS_MOCK, MODULES, POSITIONS_CATEGORY_MOCK, POSITIONS_MOCK, POSITION_ASSIGNMENTS_MOCK, RESPONSIBILITIES_CATEGORY_MOCK, RESPONSIBILITIES_MOCK, ROLES_CATEGORY_MOCK, ROLES_MOCK, SKILLS_CATEGORY_MOCK, SKILLS_MOCK, SKILL_LEVELS_MOCK, TASKS, TASK_STATUSES, TASK_TEMPLATES, TASK_TYPES, TEAMS_MOCK, TEXT_TEMPLATES, TEXT_TEMPLATE_CATEGORY, VersioningService, applications, auditLoggerMiddleware, axVersionDB, calendarEventMock, calendarEventTypeMockData, calendarMock, childCountMiddleware, computeDiff, createAndSaveDashboardForUser, createDashboardForUser, createFileCastMiddleware, findContactMethod, findEmployeeById, findPartyById, generateUserDashboard, historyLoggerMiddleware, identifierCommitMiddleware, lookupResolverMiddleware, meetingFilesMock, meetingIds, meetingMock, meetingParticipantMock, meetingRoleTypeMock, meetingSessionMock, meetingTimeSlotMock, meetingTypeFileTemplateMock, meetingTypeMock, mergeDetailRelationMiddleware, mockRoleDefinitions, mockUsers, normalizeAnyFileArrayForView, normalizeSnapshotFileFieldsForView, participantIds, primaryMiddleware, signatureLoaderMiddleware, tenantsMock, toUiRows };
1954
+ export type { AXCBusinessUnitMockDto, AXCEmployeeSkillMockDto, AXCLeaveRequestMockDto, AXCPositionAssignmentMockDto, AXCSkillLevelMockDto, AXCTeamMockDto, AXPLogRow, AXPRuleRow, AXPSeqRow, AXPVersionChange, AXPVersionEntry, AXPVersionStream, CanonicalChange, CanonicalChangeOp, CategoryMetadataInheritanceQueryParams, CategoryMetadataInheritanceResult, MockUserPassCredentials, PartyMockData, PositionMockDto, ResponsibilityMockDto, RoleMockDto, SkillMockDto, Task, TaskStatus, TaskTemplate, TaskType, UIDiffRow, VersionedFileInfo };
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@acorex/connectivity",
3
- "version": "20.3.0-next.8",
3
+ "version": "20.4.0",
4
4
  "peerDependencies": {
5
- "@acorex/modules": ">=20.0.0"
5
+ "@acorex/modules": "20.4.0"
6
6
  },
7
7
  "sideEffects": false,
8
8
  "module": "fesm2022/acorex-connectivity.mjs",
@@ -15,6 +15,10 @@
15
15
  "types": "./index.d.ts",
16
16
  "default": "./fesm2022/acorex-connectivity.mjs"
17
17
  },
18
+ "./api": {
19
+ "types": "./api/index.d.ts",
20
+ "default": "./fesm2022/acorex-connectivity-api.mjs"
21
+ },
18
22
  "./mock": {
19
23
  "types": "./mock/index.d.ts",
20
24
  "default": "./fesm2022/acorex-connectivity-mock.mjs"
@@ -22,10 +26,6 @@
22
26
  "./utils": {
23
27
  "types": "./utils/index.d.ts",
24
28
  "default": "./fesm2022/acorex-connectivity-utils.mjs"
25
- },
26
- "./api": {
27
- "types": "./api/index.d.ts",
28
- "default": "./fesm2022/acorex-connectivity-api.mjs"
29
29
  }
30
30
  },
31
31
  "dependencies": {