@acorex/connectivity 20.6.0-next.0 → 20.6.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.
- package/api/index.d.ts +198 -2
- package/fesm2022/{acorex-connectivity-api-execute.command-DW9Lro_P.mjs → acorex-connectivity-api-execute.command-BwXw_Kn7.mjs} +4 -4
- package/fesm2022/acorex-connectivity-api-execute.command-BwXw_Kn7.mjs.map +1 -0
- package/fesm2022/acorex-connectivity-api.mjs +260 -117
- package/fesm2022/acorex-connectivity-api.mjs.map +1 -1
- package/fesm2022/{acorex-connectivity-mock-category-with-items.query-wkRIfmup.mjs → acorex-connectivity-mock-category-with-items.query-NY9J0cQ0.mjs} +4 -4
- package/fesm2022/acorex-connectivity-mock-category-with-items.query-NY9J0cQ0.mjs.map +1 -0
- package/fesm2022/{acorex-connectivity-mock-distribution-record.command-DBTeqLVz.mjs → acorex-connectivity-mock-distribution-record.command-B-Xviv6G.mjs} +4 -4
- package/fesm2022/acorex-connectivity-mock-distribution-record.command-B-Xviv6G.mjs.map +1 -0
- package/fesm2022/{acorex-connectivity-mock-sample.command-BghxC3n0.mjs → acorex-connectivity-mock-sample.command-BkxMgq1C.mjs} +4 -4
- package/fesm2022/acorex-connectivity-mock-sample.command-BkxMgq1C.mjs.map +1 -0
- package/fesm2022/acorex-connectivity-mock.mjs +5079 -938
- package/fesm2022/acorex-connectivity-mock.mjs.map +1 -1
- package/fesm2022/acorex-connectivity-utils.mjs +7 -7
- package/fesm2022/acorex-connectivity-utils.mjs.map +1 -1
- package/mock/index.d.ts +828 -48
- package/package.json +6 -6
- package/fesm2022/acorex-connectivity-api-execute.command-DW9Lro_P.mjs.map +0 -1
- package/fesm2022/acorex-connectivity-mock-category-with-items.query-wkRIfmup.mjs.map +0 -1
- package/fesm2022/acorex-connectivity-mock-distribution-record.command-DBTeqLVz.mjs.map +0 -1
- package/fesm2022/acorex-connectivity-mock-sample.command-BghxC3n0.mjs.map +0 -1
package/mock/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { Injector } from '@angular/core';
|
|
|
4
4
|
import * as _acorex_platform_auth from '@acorex/platform/auth';
|
|
5
5
|
import { AXPBaseCredentials, AXPAuthStrategy, AXPSignInResult, AXPSessionContext, AXPTenant, AXPApplication } from '@acorex/platform/auth';
|
|
6
6
|
import * as i1 from '@acorex/platform/runtime';
|
|
7
|
-
import { AXPQuery } from '@acorex/platform/runtime';
|
|
7
|
+
import { AXPQuery, AXPCommand } from '@acorex/platform/runtime';
|
|
8
8
|
import { Router } from '@angular/router';
|
|
9
9
|
import { AXMAuthConfigs } from '@acorex/modules/auth';
|
|
10
10
|
import { AXPEntityStorageService, AXPDataSeeder, AXPEntityStorageMiddleware } from '@acorex/platform/layout/entity';
|
|
@@ -12,13 +12,14 @@ import Dexie, { Table } from 'dexie';
|
|
|
12
12
|
import { AXMApplicationManagementApplicationEntityModel, AXMApplicationManagementEditionEntityModel, AXMApplicationManagementFeatureEntityModel, AXMApplicationManagementModuleEntityModel } from '@acorex/modules/application-management';
|
|
13
13
|
import * as _acorex_modules_report_management from '@acorex/modules/report-management';
|
|
14
14
|
import { AXPReportCategoryProvider, AXPReportCategory, AXPReportDefinitionProvider, AXPReportDefinition, AXPExecutionReportCommand, AXPLayoutExecutionContext, AXPExecutionReportCommandResult } from '@acorex/modules/report-management';
|
|
15
|
+
import { AXMWorkflowManagementWorkflowDefinitionEntityModel } from '@acorex/modules/workflow-management';
|
|
15
16
|
import { AXPWorkflowTaskProvider, AXPTaskFilter, AXPTask, AXPExtraField, AXPTaskStatus } from '@acorex/modules/task-management';
|
|
16
|
-
import { AXMTextTemplateManagementTemplateEntityModel } from '@acorex/modules/text-template-management';
|
|
17
17
|
import { AXMMetaDataDefinitionEntityModel } from '@acorex/modules/data-management';
|
|
18
18
|
import { AXMCommonDashboardEntityModel } from '@acorex/modules/dashboard-management';
|
|
19
19
|
import * as _acorex_modules_calendar_management from '@acorex/modules/calendar-management';
|
|
20
20
|
import { AXMCalendarManagementCalendarEventTypeEntityModel } from '@acorex/modules/calendar-management';
|
|
21
21
|
import { AXPLockService, AXPLockRequest, AXPLockInfo, AXPUnLockRequest, AXPLockGetInfoRequest, AXPFileStorageService, AXPFileStorageCreateRequest, AXPFileStorageInfo, AXPFileStorageUpdateRequest, AXPFileStorageFindRequest, AXPFileManyStorageInfo, CanonicalChange as CanonicalChange$1, AXPVersioningService, AXPVersionEntry as AXPVersionEntry$1, AXVChangeType as AXVChangeType$1 } from '@acorex/platform/common';
|
|
22
|
+
import { AXPWorkflowInstance, AXPWorkflowExecutionService, AXPStartWorkflowExecutionRequest, AXPStartWorkflowExecutionResponse, AXPResumeWorkflowExecutionRequest, AXPResumeWorkflowExecutionResponse, AXPGetWorkflowExecutionStateRequest, AXPWorkflowExecutionState, AXPGetWorkflowDefinitionRequest, AXPGetWorkflowDefinitionResponse, AXPWorkflowDefinition } from '@acorex/platform/workflow';
|
|
22
23
|
import { AXPIdentifierRule, AXPClockProvider, AXPChecksumProvider, AXPPolicyProvider, AXPLookupProvider, AXPSequenceProvider, AXPIdentifierService, AXPIdentifierRequest, AXPIdentifierResult, AXPIdentifierPeekResult } from '@acorex/modules/identifier-management';
|
|
23
24
|
|
|
24
25
|
declare class AXCCommonMockModule {
|
|
@@ -201,6 +202,12 @@ declare class AXCSettingsManagementMockModule {
|
|
|
201
202
|
static ɵinj: i0.ɵɵInjectorDeclaration<AXCSettingsManagementMockModule>;
|
|
202
203
|
}
|
|
203
204
|
|
|
205
|
+
declare class AXCAssessmentManagementMockModule {
|
|
206
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCAssessmentManagementMockModule, never>;
|
|
207
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXCAssessmentManagementMockModule, never, never, never>;
|
|
208
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AXCAssessmentManagementMockModule>;
|
|
209
|
+
}
|
|
210
|
+
|
|
204
211
|
declare class AXCMiddlewaresModule {
|
|
205
212
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXCMiddlewaresModule, never>;
|
|
206
213
|
static ɵmod: i0.ɵɵNgModuleDeclaration<AXCMiddlewaresModule, never, never, never>;
|
|
@@ -210,7 +217,7 @@ declare class AXCMiddlewaresModule {
|
|
|
210
217
|
declare class AXCMockModule {
|
|
211
218
|
constructor(appInitService: AXPAppStartUpService, injector: Injector);
|
|
212
219
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXCMockModule, 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>;
|
|
220
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXCMockModule, never, [typeof _acorex_platform_auth.AXPAuthModule, typeof AXCCommonMockModule, typeof AXCIdentifierManagementMockModule, typeof AXCSecurityManagementMockModule, typeof AXCFormTemplateManagementMockModule, typeof AXCCustomerManagementMockModule, typeof AXCContactManagementMockModule, typeof AXCLocationManagementMockModule, typeof AXCOrganizationManagementMockModule, typeof AXCHumanCapitalManagementMockModule, typeof AXCReportManagementMockModule, typeof AXCLocaleManagementMockModule, typeof AXCDashboardManagementMockModule, typeof AXCConversationMockModule, typeof AXCAuthMockModule, typeof AXCPlatformManagementMockModule, typeof AXCApplicationManagementMockModule, typeof 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 AXCAssessmentManagementMockModule, typeof AXCMiddlewaresModule], never>;
|
|
214
221
|
static ɵinj: i0.ɵɵInjectorDeclaration<AXCMockModule>;
|
|
215
222
|
}
|
|
216
223
|
|
|
@@ -349,6 +356,436 @@ declare class AXCModuleDataSeeder implements AXPDataSeeder {
|
|
|
349
356
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXCModuleDataSeeder>;
|
|
350
357
|
}
|
|
351
358
|
|
|
359
|
+
interface QuestionBankItemMockDto extends AXPCategorizedEntityDto {
|
|
360
|
+
id: string;
|
|
361
|
+
title: string;
|
|
362
|
+
description?: string;
|
|
363
|
+
widgetType?: string;
|
|
364
|
+
widgetOptions?: any;
|
|
365
|
+
scoringType?: 'none' | 'points' | 'weighted' | 'formula';
|
|
366
|
+
points?: number;
|
|
367
|
+
weight?: number;
|
|
368
|
+
correctAnswer?: any;
|
|
369
|
+
difficulty?: 'easy' | 'medium' | 'hard';
|
|
370
|
+
estimatedTime?: number;
|
|
371
|
+
categoryIds: string[];
|
|
372
|
+
categories: {
|
|
373
|
+
id: string;
|
|
374
|
+
title: string;
|
|
375
|
+
}[];
|
|
376
|
+
createdAt: Date;
|
|
377
|
+
updatedAt: Date;
|
|
378
|
+
}
|
|
379
|
+
declare const QUESTION_BANK_ITEM_CATEGORY_MOCK: AXPCategoryEntity<string>[];
|
|
380
|
+
declare const questionBankItemMock: QuestionBankItemMockDto[];
|
|
381
|
+
|
|
382
|
+
interface QuestionnaireMockDto extends AXPCategorizedEntityDto {
|
|
383
|
+
id: string;
|
|
384
|
+
title: string;
|
|
385
|
+
description?: string;
|
|
386
|
+
type: 'questionnaire' | 'survey' | 'checklist' | 'test' | 'evaluation';
|
|
387
|
+
sections: any[];
|
|
388
|
+
items: any[];
|
|
389
|
+
scoringType: 'none' | 'cumulative' | 'weighted' | 'formula';
|
|
390
|
+
passingScore?: number;
|
|
391
|
+
scoringFormula?: string;
|
|
392
|
+
evaluationRules?: string;
|
|
393
|
+
gradingScale?: string;
|
|
394
|
+
timeLimit?: number;
|
|
395
|
+
allowPause: boolean;
|
|
396
|
+
allowBackNavigation: boolean;
|
|
397
|
+
randomizeQuestions: boolean;
|
|
398
|
+
requireAllAnswers: boolean;
|
|
399
|
+
showProgressBar: boolean;
|
|
400
|
+
categoryIds: string[];
|
|
401
|
+
categories: {
|
|
402
|
+
id: string;
|
|
403
|
+
title: string;
|
|
404
|
+
}[];
|
|
405
|
+
createdAt: Date;
|
|
406
|
+
updatedAt: Date;
|
|
407
|
+
}
|
|
408
|
+
declare const QUESTIONNAIRE_CATEGORY_MOCK: AXPCategoryEntity<string>[];
|
|
409
|
+
declare const questionnaireMock: QuestionnaireMockDto[];
|
|
410
|
+
|
|
411
|
+
declare class AXMQuestionBankItemCategoryDataSeeder implements AXPDataSeeder {
|
|
412
|
+
private storage;
|
|
413
|
+
seed(): Promise<void>;
|
|
414
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXMQuestionBankItemCategoryDataSeeder, never>;
|
|
415
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXMQuestionBankItemCategoryDataSeeder>;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
declare class AXMQuestionnaireCategoryDataSeeder implements AXPDataSeeder {
|
|
419
|
+
private storage;
|
|
420
|
+
seed(): Promise<void>;
|
|
421
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXMQuestionnaireCategoryDataSeeder, never>;
|
|
422
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXMQuestionnaireCategoryDataSeeder>;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
declare class AXMQuestionBankItemDataSeeder implements AXPDataSeeder {
|
|
426
|
+
private storage;
|
|
427
|
+
seed(): Promise<void>;
|
|
428
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXMQuestionBankItemDataSeeder, never>;
|
|
429
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXMQuestionBankItemDataSeeder>;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
declare class AXMQuestionnaireDataSeeder implements AXPDataSeeder {
|
|
433
|
+
private storage;
|
|
434
|
+
seed(): Promise<void>;
|
|
435
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXMQuestionnaireDataSeeder, never>;
|
|
436
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXMQuestionnaireDataSeeder>;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
declare const publicationMock: ({
|
|
440
|
+
id: string;
|
|
441
|
+
questionnaireId: string;
|
|
442
|
+
questionnaire: {
|
|
443
|
+
id: string;
|
|
444
|
+
title: string;
|
|
445
|
+
type: "test" | "checklist" | "questionnaire" | "survey" | "evaluation";
|
|
446
|
+
};
|
|
447
|
+
title: string;
|
|
448
|
+
description: string;
|
|
449
|
+
mode: string;
|
|
450
|
+
assignedToUserIds: never[];
|
|
451
|
+
assignedToUsers: never[];
|
|
452
|
+
validFrom: Date;
|
|
453
|
+
validTo: Date;
|
|
454
|
+
timerMode: string;
|
|
455
|
+
timeLimit: number;
|
|
456
|
+
allowMultipleSubmissions: boolean;
|
|
457
|
+
showResults: string;
|
|
458
|
+
requireReview: boolean;
|
|
459
|
+
createdAt: Date;
|
|
460
|
+
updatedAt: Date;
|
|
461
|
+
accessCode?: undefined;
|
|
462
|
+
isActive?: undefined;
|
|
463
|
+
} | {
|
|
464
|
+
id: string;
|
|
465
|
+
questionnaireId: string;
|
|
466
|
+
questionnaire: {
|
|
467
|
+
id: string;
|
|
468
|
+
title: string;
|
|
469
|
+
type: "test" | "checklist" | "questionnaire" | "survey" | "evaluation";
|
|
470
|
+
};
|
|
471
|
+
title: string;
|
|
472
|
+
description: string;
|
|
473
|
+
mode: string;
|
|
474
|
+
accessCode: string;
|
|
475
|
+
validFrom: Date;
|
|
476
|
+
validTo: Date;
|
|
477
|
+
timerMode: string;
|
|
478
|
+
timeLimit: number;
|
|
479
|
+
allowMultipleSubmissions: boolean;
|
|
480
|
+
showResults: string;
|
|
481
|
+
requireReview: boolean;
|
|
482
|
+
isActive: boolean;
|
|
483
|
+
createdAt: Date;
|
|
484
|
+
updatedAt: Date;
|
|
485
|
+
assignedToUserIds?: undefined;
|
|
486
|
+
assignedToUsers?: undefined;
|
|
487
|
+
} | {
|
|
488
|
+
id: string;
|
|
489
|
+
questionnaireId: string;
|
|
490
|
+
questionnaire: {
|
|
491
|
+
id: string;
|
|
492
|
+
title: string;
|
|
493
|
+
type: "test" | "checklist" | "questionnaire" | "survey" | "evaluation";
|
|
494
|
+
};
|
|
495
|
+
title: string;
|
|
496
|
+
description: string;
|
|
497
|
+
mode: string;
|
|
498
|
+
assignedToUserIds: never[];
|
|
499
|
+
assignedToUsers: never[];
|
|
500
|
+
timerMode: string;
|
|
501
|
+
allowMultipleSubmissions: boolean;
|
|
502
|
+
showResults: string;
|
|
503
|
+
requireReview: boolean;
|
|
504
|
+
createdAt: Date;
|
|
505
|
+
updatedAt: Date;
|
|
506
|
+
validFrom?: undefined;
|
|
507
|
+
validTo?: undefined;
|
|
508
|
+
timeLimit?: undefined;
|
|
509
|
+
accessCode?: undefined;
|
|
510
|
+
isActive?: undefined;
|
|
511
|
+
})[];
|
|
512
|
+
|
|
513
|
+
declare class AXMPublicationDataSeeder implements AXPDataSeeder {
|
|
514
|
+
private storage;
|
|
515
|
+
seed(): Promise<void>;
|
|
516
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXMPublicationDataSeeder, never>;
|
|
517
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXMPublicationDataSeeder>;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
declare const responseSessionMock: ({
|
|
521
|
+
id: string;
|
|
522
|
+
publicationId: string;
|
|
523
|
+
publication: {
|
|
524
|
+
id: string;
|
|
525
|
+
title: string;
|
|
526
|
+
};
|
|
527
|
+
primaryResponderId: string;
|
|
528
|
+
primaryResponder: {
|
|
529
|
+
id: string;
|
|
530
|
+
displayName: string;
|
|
531
|
+
};
|
|
532
|
+
status: string;
|
|
533
|
+
startedAt: Date;
|
|
534
|
+
timeSpent: number;
|
|
535
|
+
currentSectionId: string;
|
|
536
|
+
currentItemIndex: number;
|
|
537
|
+
completionPercentage: number;
|
|
538
|
+
createdAt: Date;
|
|
539
|
+
updatedAt: Date;
|
|
540
|
+
completedAt?: undefined;
|
|
541
|
+
submittedAt?: undefined;
|
|
542
|
+
totalScore?: undefined;
|
|
543
|
+
maxScore?: undefined;
|
|
544
|
+
percentage?: undefined;
|
|
545
|
+
grade?: undefined;
|
|
546
|
+
passed?: undefined;
|
|
547
|
+
reviewedBy?: undefined;
|
|
548
|
+
reviewer?: undefined;
|
|
549
|
+
} | {
|
|
550
|
+
id: string;
|
|
551
|
+
publicationId: string;
|
|
552
|
+
publication: {
|
|
553
|
+
id: string;
|
|
554
|
+
title: string;
|
|
555
|
+
};
|
|
556
|
+
primaryResponderId: string;
|
|
557
|
+
primaryResponder: {
|
|
558
|
+
id: string;
|
|
559
|
+
displayName: string;
|
|
560
|
+
};
|
|
561
|
+
status: string;
|
|
562
|
+
startedAt: Date;
|
|
563
|
+
completedAt: Date;
|
|
564
|
+
submittedAt: Date;
|
|
565
|
+
timeSpent: number;
|
|
566
|
+
currentItemIndex: number;
|
|
567
|
+
completionPercentage: number;
|
|
568
|
+
totalScore: number;
|
|
569
|
+
maxScore: number;
|
|
570
|
+
percentage: number;
|
|
571
|
+
grade: string;
|
|
572
|
+
passed: boolean;
|
|
573
|
+
createdAt: Date;
|
|
574
|
+
updatedAt: Date;
|
|
575
|
+
currentSectionId?: undefined;
|
|
576
|
+
reviewedBy?: undefined;
|
|
577
|
+
reviewer?: undefined;
|
|
578
|
+
} | {
|
|
579
|
+
id: string;
|
|
580
|
+
publicationId: string;
|
|
581
|
+
publication: {
|
|
582
|
+
id: string;
|
|
583
|
+
title: string;
|
|
584
|
+
};
|
|
585
|
+
primaryResponderId: string;
|
|
586
|
+
primaryResponder: {
|
|
587
|
+
id: string;
|
|
588
|
+
displayName: string;
|
|
589
|
+
};
|
|
590
|
+
status: string;
|
|
591
|
+
startedAt: Date;
|
|
592
|
+
completedAt: Date;
|
|
593
|
+
submittedAt: Date;
|
|
594
|
+
timeSpent: number;
|
|
595
|
+
currentItemIndex: number;
|
|
596
|
+
completionPercentage: number;
|
|
597
|
+
totalScore: number;
|
|
598
|
+
maxScore: number;
|
|
599
|
+
percentage: number;
|
|
600
|
+
grade: string;
|
|
601
|
+
passed: boolean;
|
|
602
|
+
reviewedBy: string;
|
|
603
|
+
reviewer: {
|
|
604
|
+
id: string;
|
|
605
|
+
displayName: string;
|
|
606
|
+
};
|
|
607
|
+
createdAt: Date;
|
|
608
|
+
updatedAt: Date;
|
|
609
|
+
currentSectionId?: undefined;
|
|
610
|
+
})[];
|
|
611
|
+
|
|
612
|
+
declare class AXMResponseSessionDataSeeder implements AXPDataSeeder {
|
|
613
|
+
private storage;
|
|
614
|
+
seed(): Promise<void>;
|
|
615
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXMResponseSessionDataSeeder, never>;
|
|
616
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXMResponseSessionDataSeeder>;
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
declare const collaboratorMock: ({
|
|
620
|
+
id: string;
|
|
621
|
+
sessionId: string;
|
|
622
|
+
session: {
|
|
623
|
+
id: string;
|
|
624
|
+
publicationId: string;
|
|
625
|
+
};
|
|
626
|
+
userId: string;
|
|
627
|
+
user: {
|
|
628
|
+
id: string;
|
|
629
|
+
displayName: string;
|
|
630
|
+
};
|
|
631
|
+
role: string;
|
|
632
|
+
canRespond: boolean;
|
|
633
|
+
canOverride: boolean;
|
|
634
|
+
canReview: boolean;
|
|
635
|
+
canView: boolean;
|
|
636
|
+
joinedAt: Date;
|
|
637
|
+
lastActiveAt: Date;
|
|
638
|
+
createdAt: Date;
|
|
639
|
+
updatedAt: Date;
|
|
640
|
+
} | {
|
|
641
|
+
id: string;
|
|
642
|
+
sessionId: string;
|
|
643
|
+
session: {
|
|
644
|
+
id: string;
|
|
645
|
+
publicationId: string;
|
|
646
|
+
};
|
|
647
|
+
userId: string;
|
|
648
|
+
user: {
|
|
649
|
+
id: string;
|
|
650
|
+
displayName: string;
|
|
651
|
+
};
|
|
652
|
+
role: string;
|
|
653
|
+
canRespond: boolean;
|
|
654
|
+
canOverride: boolean;
|
|
655
|
+
canReview: boolean;
|
|
656
|
+
canView: boolean;
|
|
657
|
+
joinedAt: Date;
|
|
658
|
+
createdAt: Date;
|
|
659
|
+
updatedAt: Date;
|
|
660
|
+
lastActiveAt?: undefined;
|
|
661
|
+
})[];
|
|
662
|
+
|
|
663
|
+
declare class AXMCollaboratorDataSeeder implements AXPDataSeeder {
|
|
664
|
+
private storage;
|
|
665
|
+
seed(): Promise<void>;
|
|
666
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXMCollaboratorDataSeeder, never>;
|
|
667
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXMCollaboratorDataSeeder>;
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
declare const responseEntryMock: ({
|
|
671
|
+
id: string;
|
|
672
|
+
sessionId: string;
|
|
673
|
+
session: {
|
|
674
|
+
id: string;
|
|
675
|
+
publicationId: string;
|
|
676
|
+
};
|
|
677
|
+
questionnaireItemId: string;
|
|
678
|
+
responderId: string;
|
|
679
|
+
responder: {
|
|
680
|
+
id: string;
|
|
681
|
+
displayName: string;
|
|
682
|
+
};
|
|
683
|
+
responderRole: string;
|
|
684
|
+
answer: {
|
|
685
|
+
rating: number;
|
|
686
|
+
text?: undefined;
|
|
687
|
+
selectedOption?: undefined;
|
|
688
|
+
};
|
|
689
|
+
isOverridden: boolean;
|
|
690
|
+
score: number;
|
|
691
|
+
maxScore: number;
|
|
692
|
+
isCorrect: boolean;
|
|
693
|
+
answeredAt: Date;
|
|
694
|
+
timeSpent: number;
|
|
695
|
+
attemptCount: number;
|
|
696
|
+
skipped: boolean;
|
|
697
|
+
flaggedForReview: boolean;
|
|
698
|
+
createdAt: Date;
|
|
699
|
+
updatedAt: Date;
|
|
700
|
+
overriddenBy?: undefined;
|
|
701
|
+
overrider?: undefined;
|
|
702
|
+
overriddenAt?: undefined;
|
|
703
|
+
originalAnswer?: undefined;
|
|
704
|
+
overrideReason?: undefined;
|
|
705
|
+
} | {
|
|
706
|
+
id: string;
|
|
707
|
+
sessionId: string;
|
|
708
|
+
session: {
|
|
709
|
+
id: string;
|
|
710
|
+
publicationId: string;
|
|
711
|
+
};
|
|
712
|
+
questionnaireItemId: string;
|
|
713
|
+
responderId: string;
|
|
714
|
+
responder: {
|
|
715
|
+
id: string;
|
|
716
|
+
displayName: string;
|
|
717
|
+
};
|
|
718
|
+
responderRole: string;
|
|
719
|
+
answer: {
|
|
720
|
+
text: string;
|
|
721
|
+
rating?: undefined;
|
|
722
|
+
selectedOption?: undefined;
|
|
723
|
+
};
|
|
724
|
+
isOverridden: boolean;
|
|
725
|
+
overriddenBy: string;
|
|
726
|
+
overrider: {
|
|
727
|
+
id: string;
|
|
728
|
+
displayName: string;
|
|
729
|
+
};
|
|
730
|
+
overriddenAt: Date;
|
|
731
|
+
originalAnswer: {
|
|
732
|
+
text: string;
|
|
733
|
+
};
|
|
734
|
+
overrideReason: string;
|
|
735
|
+
score: number;
|
|
736
|
+
maxScore: number;
|
|
737
|
+
answeredAt: Date;
|
|
738
|
+
timeSpent: number;
|
|
739
|
+
attemptCount: number;
|
|
740
|
+
skipped: boolean;
|
|
741
|
+
flaggedForReview: boolean;
|
|
742
|
+
createdAt: Date;
|
|
743
|
+
updatedAt: Date;
|
|
744
|
+
isCorrect?: undefined;
|
|
745
|
+
} | {
|
|
746
|
+
id: string;
|
|
747
|
+
sessionId: string;
|
|
748
|
+
session: {
|
|
749
|
+
id: string;
|
|
750
|
+
publicationId: string;
|
|
751
|
+
};
|
|
752
|
+
questionnaireItemId: string;
|
|
753
|
+
responderId: string;
|
|
754
|
+
responder: {
|
|
755
|
+
id: string;
|
|
756
|
+
displayName: string;
|
|
757
|
+
};
|
|
758
|
+
responderRole: string;
|
|
759
|
+
answer: {
|
|
760
|
+
selectedOption: string;
|
|
761
|
+
rating?: undefined;
|
|
762
|
+
text?: undefined;
|
|
763
|
+
};
|
|
764
|
+
isOverridden: boolean;
|
|
765
|
+
score: number;
|
|
766
|
+
maxScore: number;
|
|
767
|
+
isCorrect: boolean;
|
|
768
|
+
answeredAt: Date;
|
|
769
|
+
timeSpent: number;
|
|
770
|
+
attemptCount: number;
|
|
771
|
+
skipped: boolean;
|
|
772
|
+
flaggedForReview: boolean;
|
|
773
|
+
createdAt: Date;
|
|
774
|
+
updatedAt: Date;
|
|
775
|
+
overriddenBy?: undefined;
|
|
776
|
+
overrider?: undefined;
|
|
777
|
+
overriddenAt?: undefined;
|
|
778
|
+
originalAnswer?: undefined;
|
|
779
|
+
overrideReason?: undefined;
|
|
780
|
+
})[];
|
|
781
|
+
|
|
782
|
+
declare class AXMResponseEntryDataSeeder implements AXPDataSeeder {
|
|
783
|
+
private storage;
|
|
784
|
+
seed(): Promise<void>;
|
|
785
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXMResponseEntryDataSeeder, never>;
|
|
786
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXMResponseEntryDataSeeder>;
|
|
787
|
+
}
|
|
788
|
+
|
|
352
789
|
declare class AXCAppVersionDataSeeder implements AXPDataSeeder {
|
|
353
790
|
private storageService;
|
|
354
791
|
private appVersionService;
|
|
@@ -921,6 +1358,18 @@ interface TaskTemplate {
|
|
|
921
1358
|
}
|
|
922
1359
|
declare const TASK_TEMPLATES: TaskTemplate[];
|
|
923
1360
|
|
|
1361
|
+
/**
|
|
1362
|
+
* Mock workflow definition entities for the entity list.
|
|
1363
|
+
*/
|
|
1364
|
+
declare const workflowDefinitionEntityMock: AXMWorkflowManagementWorkflowDefinitionEntityModel[];
|
|
1365
|
+
|
|
1366
|
+
declare class AXCWorkflowDefinitionDataSeeder implements AXPDataSeeder {
|
|
1367
|
+
private readonly storageService;
|
|
1368
|
+
seed(): Promise<void>;
|
|
1369
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCWorkflowDefinitionDataSeeder, never>;
|
|
1370
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXCWorkflowDefinitionDataSeeder>;
|
|
1371
|
+
}
|
|
1372
|
+
|
|
924
1373
|
type extraFields$1 = {
|
|
925
1374
|
recievedDate: Date;
|
|
926
1375
|
};
|
|
@@ -1025,33 +1474,6 @@ declare class AXPRoomDataSeeder implements AXPDataSeeder {
|
|
|
1025
1474
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXPRoomDataSeeder>;
|
|
1026
1475
|
}
|
|
1027
1476
|
|
|
1028
|
-
declare class AXCTextTemplateCategoryDataSeeder implements AXPDataSeeder {
|
|
1029
|
-
private storageService;
|
|
1030
|
-
seed(): Promise<void>;
|
|
1031
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXCTextTemplateCategoryDataSeeder, never>;
|
|
1032
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXCTextTemplateCategoryDataSeeder>;
|
|
1033
|
-
}
|
|
1034
|
-
|
|
1035
|
-
declare class AXCTextTemplateDataSeeder implements AXPDataSeeder {
|
|
1036
|
-
private storageService;
|
|
1037
|
-
seed(): Promise<void>;
|
|
1038
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXCTextTemplateDataSeeder, never>;
|
|
1039
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXCTextTemplateDataSeeder>;
|
|
1040
|
-
}
|
|
1041
|
-
|
|
1042
|
-
declare const TEXT_TEMPLATE_CATEGORY: {
|
|
1043
|
-
id: string;
|
|
1044
|
-
name: string;
|
|
1045
|
-
title: string;
|
|
1046
|
-
}[];
|
|
1047
|
-
declare const TEXT_TEMPLATES: AXMTextTemplateManagementTemplateEntityModel[];
|
|
1048
|
-
|
|
1049
|
-
declare class AXCTextTemplateManagementMockModule {
|
|
1050
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXCTextTemplateManagementMockModule, never>;
|
|
1051
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AXCTextTemplateManagementMockModule, never, never, never>;
|
|
1052
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<AXCTextTemplateManagementMockModule>;
|
|
1053
|
-
}
|
|
1054
|
-
|
|
1055
1477
|
declare class AXMFormDataSourcesProvider implements AXPDataSourceDefinitionProvider {
|
|
1056
1478
|
private yesNoOptions;
|
|
1057
1479
|
private yesNoNaOptions;
|
|
@@ -1613,19 +2035,6 @@ declare class AXMMeetingTypeFileTemplateDataSeeder implements AXPDataSeeder {
|
|
|
1613
2035
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXMMeetingTypeFileTemplateDataSeeder>;
|
|
1614
2036
|
}
|
|
1615
2037
|
|
|
1616
|
-
declare class AXCSchedulerJobDataSeeder implements AXPDataSeeder {
|
|
1617
|
-
private storageService;
|
|
1618
|
-
seed(): Promise<void>;
|
|
1619
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXCSchedulerJobDataSeeder, never>;
|
|
1620
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXCSchedulerJobDataSeeder>;
|
|
1621
|
-
}
|
|
1622
|
-
|
|
1623
|
-
declare class AXCSchedulerJobManagementMockModule {
|
|
1624
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXCSchedulerJobManagementMockModule, never>;
|
|
1625
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AXCSchedulerJobManagementMockModule, never, never, never>;
|
|
1626
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<AXCSchedulerJobManagementMockModule>;
|
|
1627
|
-
}
|
|
1628
|
-
|
|
1629
2038
|
declare class AXCLockService implements AXPLockService {
|
|
1630
2039
|
private className;
|
|
1631
2040
|
private db;
|
|
@@ -1741,7 +2150,7 @@ declare const axVersionDB: AXCVersionDB;
|
|
|
1741
2150
|
* Compute canonical JSON Patch-like changes with custom ops for file arrays.
|
|
1742
2151
|
*/
|
|
1743
2152
|
declare function computeDiff(prevSnapshot: unknown, nextSnapshot: unknown, basePath?: string): CanonicalChange$1[];
|
|
1744
|
-
declare class
|
|
2153
|
+
declare class AXCVersioningService implements AXPVersioningService {
|
|
1745
2154
|
private readonly db;
|
|
1746
2155
|
private readonly fileStorage;
|
|
1747
2156
|
upsertStream(entityType: string, entityId: string): Promise<string>;
|
|
@@ -1767,8 +2176,8 @@ declare class VersioningService implements AXPVersioningService {
|
|
|
1767
2176
|
oldValue?: unknown;
|
|
1768
2177
|
newValue?: unknown;
|
|
1769
2178
|
}>>;
|
|
1770
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
1771
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
2179
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCVersioningService, never>;
|
|
2180
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXCVersioningService>;
|
|
1772
2181
|
}
|
|
1773
2182
|
|
|
1774
2183
|
interface UIDiffRow {
|
|
@@ -1783,6 +2192,363 @@ declare function toUiRows(changes: CanonicalChange[]): UIDiffRow[];
|
|
|
1783
2192
|
declare function normalizeAnyFileArrayForView(arr: any[], fileStorage: AXPFileStorageService): Promise<AXPFileListItem[]>;
|
|
1784
2193
|
declare function normalizeSnapshotFileFieldsForView(snapshot: any, fileStorage: AXPFileStorageService): Promise<any>;
|
|
1785
2194
|
|
|
2195
|
+
/**
|
|
2196
|
+
* Dexie database for workflow instances.
|
|
2197
|
+
*/
|
|
2198
|
+
declare class AXCWorkflowExecutionDB extends Dexie {
|
|
2199
|
+
/**
|
|
2200
|
+
* Table for workflow instances.
|
|
2201
|
+
* Uses id as primary key.
|
|
2202
|
+
*/
|
|
2203
|
+
instances: Table<AXPWorkflowInstance, string>;
|
|
2204
|
+
constructor();
|
|
2205
|
+
}
|
|
2206
|
+
/**
|
|
2207
|
+
* Singleton instance of workflow execution database.
|
|
2208
|
+
*/
|
|
2209
|
+
declare const axWorkflowExecutionDB: AXCWorkflowExecutionDB;
|
|
2210
|
+
|
|
2211
|
+
/**
|
|
2212
|
+
* Mock implementation of AXPWorkflowExecutionService.
|
|
2213
|
+
*
|
|
2214
|
+
* Uses IndexedDB (via Dexie) to store workflow execution states.
|
|
2215
|
+
*
|
|
2216
|
+
* @example
|
|
2217
|
+
* ```typescript
|
|
2218
|
+
* // In module providers
|
|
2219
|
+
* {
|
|
2220
|
+
* provide: AXPWorkflowExecutionService,
|
|
2221
|
+
* useClass: AXCWorkflowExecutionService,
|
|
2222
|
+
* }
|
|
2223
|
+
* ```
|
|
2224
|
+
*/
|
|
2225
|
+
declare class AXCWorkflowExecutionService implements AXPWorkflowExecutionService {
|
|
2226
|
+
private readonly db;
|
|
2227
|
+
private readonly activityProviderService;
|
|
2228
|
+
private readonly commandService;
|
|
2229
|
+
/**
|
|
2230
|
+
* Start a new workflow execution.
|
|
2231
|
+
* Creates a workflow instance and stores it in IndexedDB.
|
|
2232
|
+
*/
|
|
2233
|
+
startExecution(request: AXPStartWorkflowExecutionRequest): Promise<AXPStartWorkflowExecutionResponse>;
|
|
2234
|
+
/**
|
|
2235
|
+
* Find activity in Flowchart by ID.
|
|
2236
|
+
*/
|
|
2237
|
+
private findActivityInFlowchart;
|
|
2238
|
+
/**
|
|
2239
|
+
* Resume a suspended workflow execution.
|
|
2240
|
+
*
|
|
2241
|
+
* After frontend completes its task:
|
|
2242
|
+
* 1. Validates taskToken
|
|
2243
|
+
* 2. Finds next activity based on outcome
|
|
2244
|
+
* 3. Executes ALL backend activities in sequence
|
|
2245
|
+
* 4. Stops at first frontend activity and returns it as pendingTask
|
|
2246
|
+
*/
|
|
2247
|
+
resumeExecution(request: AXPResumeWorkflowExecutionRequest): Promise<AXPResumeWorkflowExecutionResponse>;
|
|
2248
|
+
/**
|
|
2249
|
+
* Get current workflow execution state.
|
|
2250
|
+
*/
|
|
2251
|
+
getExecutionState(request: AXPGetWorkflowExecutionStateRequest): Promise<AXPWorkflowExecutionState>;
|
|
2252
|
+
/**
|
|
2253
|
+
* Get workflow definition by ID.
|
|
2254
|
+
*
|
|
2255
|
+
* In mock implementation, this retrieves workflow definition from localStorage.
|
|
2256
|
+
* In production, this would make an HTTP call to backend API.
|
|
2257
|
+
*
|
|
2258
|
+
* @param request - Get workflow definition request
|
|
2259
|
+
* @returns Workflow definition
|
|
2260
|
+
*/
|
|
2261
|
+
getWorkflowDefinition(request: AXPGetWorkflowDefinitionRequest): Promise<AXPGetWorkflowDefinitionResponse>;
|
|
2262
|
+
/**
|
|
2263
|
+
* Generate unique task token for task-based execution.
|
|
2264
|
+
* Inspired by Temporal's task tokens for secure task completion.
|
|
2265
|
+
*/
|
|
2266
|
+
private generateTaskToken;
|
|
2267
|
+
/**
|
|
2268
|
+
* Determine execution mode for an activity.
|
|
2269
|
+
*
|
|
2270
|
+
* Priority (highest to lowest):
|
|
2271
|
+
* 1. Activity instance's executionMode (from AXPActivity in workflow definition)
|
|
2272
|
+
* 2. ActivityDescriptor's executionMode (from ActivityProviderService)
|
|
2273
|
+
* 3. Default: 'frontend'
|
|
2274
|
+
*
|
|
2275
|
+
* @param activityType - Activity type (e.g., 'workflow-activity:write-line')
|
|
2276
|
+
* @param activity - Activity from workflow definition (AXPActivity)
|
|
2277
|
+
* @returns Execution mode: 'frontend', 'backend', or 'both'
|
|
2278
|
+
*/
|
|
2279
|
+
private determineExecutionMode;
|
|
2280
|
+
/**
|
|
2281
|
+
* Create a task from a workflow activity.
|
|
2282
|
+
* Inspired by Temporal's Activity Task and Elsa's Bookmark pattern.
|
|
2283
|
+
*/
|
|
2284
|
+
private createTaskFromActivity;
|
|
2285
|
+
/**
|
|
2286
|
+
* Execute backend activities locally using CommandBus.
|
|
2287
|
+
*
|
|
2288
|
+
* Backend activities are registered as Commands and executed via CommandService.
|
|
2289
|
+
* This provides a unified execution channel for all activities.
|
|
2290
|
+
*/
|
|
2291
|
+
private executeBackendActivityLocally;
|
|
2292
|
+
/**
|
|
2293
|
+
* Set variable activity - stores value in workflow state.
|
|
2294
|
+
*/
|
|
2295
|
+
private executeSetVariable;
|
|
2296
|
+
/**
|
|
2297
|
+
* Execute HTTP request - makes real HTTP call.
|
|
2298
|
+
* Supports different HTTP methods and handles timeouts.
|
|
2299
|
+
*/
|
|
2300
|
+
private executeHttpRequest;
|
|
2301
|
+
/**
|
|
2302
|
+
* Convert workflow instance to execution state (for backward compatibility).
|
|
2303
|
+
*/
|
|
2304
|
+
private instanceToExecutionState;
|
|
2305
|
+
/**
|
|
2306
|
+
* Update execution state in instance and save to IndexedDB.
|
|
2307
|
+
*/
|
|
2308
|
+
private updateInstanceFromExecutionState;
|
|
2309
|
+
/**
|
|
2310
|
+
* Get workflow instance from IndexedDB.
|
|
2311
|
+
*/
|
|
2312
|
+
private getInstance;
|
|
2313
|
+
/**
|
|
2314
|
+
* Update workflow instance in IndexedDB.
|
|
2315
|
+
*/
|
|
2316
|
+
private updateInstance;
|
|
2317
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCWorkflowExecutionService, never>;
|
|
2318
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXCWorkflowExecutionService>;
|
|
2319
|
+
}
|
|
2320
|
+
|
|
2321
|
+
/**
|
|
2322
|
+
* Mock workflow definitions for testing and demonstration.
|
|
2323
|
+
*/
|
|
2324
|
+
declare const workflowDefinitionMock: AXPWorkflowDefinition[];
|
|
2325
|
+
/**
|
|
2326
|
+
* Export definitionId list for easy access
|
|
2327
|
+
*/
|
|
2328
|
+
declare const workflowDefinitionIds: {
|
|
2329
|
+
createUser: string;
|
|
2330
|
+
welcome: string;
|
|
2331
|
+
dataProcessing: string;
|
|
2332
|
+
};
|
|
2333
|
+
|
|
2334
|
+
/**
|
|
2335
|
+
* Input for CheckPermission activity.
|
|
2336
|
+
*/
|
|
2337
|
+
interface CheckPermissionInput {
|
|
2338
|
+
/**
|
|
2339
|
+
* Permission key to check (e.g., "Users.Create")
|
|
2340
|
+
*/
|
|
2341
|
+
permission: string;
|
|
2342
|
+
/**
|
|
2343
|
+
* User ID to check (optional, defaults to current user)
|
|
2344
|
+
*/
|
|
2345
|
+
userId?: string;
|
|
2346
|
+
}
|
|
2347
|
+
/**
|
|
2348
|
+
* Output for CheckPermission activity.
|
|
2349
|
+
*/
|
|
2350
|
+
interface CheckPermissionOutput {
|
|
2351
|
+
/**
|
|
2352
|
+
* Whether user has the permission
|
|
2353
|
+
*/
|
|
2354
|
+
hasPermission: boolean;
|
|
2355
|
+
/**
|
|
2356
|
+
* User ID that was checked
|
|
2357
|
+
*/
|
|
2358
|
+
userId: string;
|
|
2359
|
+
/**
|
|
2360
|
+
* Permission that was checked
|
|
2361
|
+
*/
|
|
2362
|
+
permission: string;
|
|
2363
|
+
}
|
|
2364
|
+
/**
|
|
2365
|
+
* CheckPermission Activity (Backend)
|
|
2366
|
+
*
|
|
2367
|
+
* Checks if a user has specific permission.
|
|
2368
|
+
* This is a mock implementation that always grants permission for demo purposes.
|
|
2369
|
+
*
|
|
2370
|
+
* In production, this would check against real permission system.
|
|
2371
|
+
*
|
|
2372
|
+
* Execution Mode: backend
|
|
2373
|
+
* Activity Type: workflow-activity:check-permission
|
|
2374
|
+
*
|
|
2375
|
+
* Outcomes:
|
|
2376
|
+
* - HasPermission: User has the permission
|
|
2377
|
+
* - NoPermission: User does not have the permission
|
|
2378
|
+
*/
|
|
2379
|
+
declare class CheckPermissionActivity implements AXPCommand<CheckPermissionInput, {
|
|
2380
|
+
output: CheckPermissionOutput;
|
|
2381
|
+
outcomes: Record<string, any>;
|
|
2382
|
+
}> {
|
|
2383
|
+
execute(input: CheckPermissionInput): Promise<{
|
|
2384
|
+
output: CheckPermissionOutput;
|
|
2385
|
+
outcomes: Record<string, any>;
|
|
2386
|
+
}>;
|
|
2387
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CheckPermissionActivity, never>;
|
|
2388
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CheckPermissionActivity>;
|
|
2389
|
+
}
|
|
2390
|
+
|
|
2391
|
+
/**
|
|
2392
|
+
* Input for ExecuteQuery activity.
|
|
2393
|
+
*/
|
|
2394
|
+
interface ExecuteQueryInput {
|
|
2395
|
+
/**
|
|
2396
|
+
* Query key to execute (e.g., "User:CheckEmailExists")
|
|
2397
|
+
*/
|
|
2398
|
+
queryKey: string;
|
|
2399
|
+
/**
|
|
2400
|
+
* Query parameters
|
|
2401
|
+
*/
|
|
2402
|
+
parameters?: Record<string, any>;
|
|
2403
|
+
}
|
|
2404
|
+
/**
|
|
2405
|
+
* Output for ExecuteQuery activity.
|
|
2406
|
+
*/
|
|
2407
|
+
interface ExecuteQueryOutput {
|
|
2408
|
+
/**
|
|
2409
|
+
* Query result data
|
|
2410
|
+
*/
|
|
2411
|
+
data: any;
|
|
2412
|
+
/**
|
|
2413
|
+
* Whether query executed successfully
|
|
2414
|
+
*/
|
|
2415
|
+
success: boolean;
|
|
2416
|
+
/**
|
|
2417
|
+
* Error message if query failed
|
|
2418
|
+
*/
|
|
2419
|
+
error?: string;
|
|
2420
|
+
}
|
|
2421
|
+
/**
|
|
2422
|
+
* ExecuteQuery Activity (Backend)
|
|
2423
|
+
*
|
|
2424
|
+
* Executes a query operation.
|
|
2425
|
+
* This is a mock implementation that simulates common queries.
|
|
2426
|
+
*
|
|
2427
|
+
* Execution Mode: backend
|
|
2428
|
+
* Activity Type: workflow-activity:execute-query
|
|
2429
|
+
*
|
|
2430
|
+
* Outcomes:
|
|
2431
|
+
* - Done: Query executed successfully
|
|
2432
|
+
* - Valid: Data is valid (for validation queries)
|
|
2433
|
+
* - Exists: Data exists (for existence checks)
|
|
2434
|
+
* - NotFound: Data not found
|
|
2435
|
+
* - Failed: Query execution failed
|
|
2436
|
+
*/
|
|
2437
|
+
declare class ExecuteQueryActivity implements AXPCommand<ExecuteQueryInput, {
|
|
2438
|
+
output: ExecuteQueryOutput;
|
|
2439
|
+
outcomes: Record<string, any>;
|
|
2440
|
+
}> {
|
|
2441
|
+
private readonly storageService;
|
|
2442
|
+
execute(input: ExecuteQueryInput): Promise<{
|
|
2443
|
+
output: ExecuteQueryOutput;
|
|
2444
|
+
outcomes: Record<string, any>;
|
|
2445
|
+
}>;
|
|
2446
|
+
/**
|
|
2447
|
+
* Routes query to appropriate handler based on queryKey.
|
|
2448
|
+
*/
|
|
2449
|
+
private routeQuery;
|
|
2450
|
+
/**
|
|
2451
|
+
* Checks if email already exists in database.
|
|
2452
|
+
*/
|
|
2453
|
+
private checkEmailExists;
|
|
2454
|
+
/**
|
|
2455
|
+
* Validates data structure and content.
|
|
2456
|
+
*/
|
|
2457
|
+
private validateData;
|
|
2458
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ExecuteQueryActivity, never>;
|
|
2459
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ExecuteQueryActivity>;
|
|
2460
|
+
}
|
|
2461
|
+
|
|
2462
|
+
/**
|
|
2463
|
+
* Input for ExecuteCommand activity.
|
|
2464
|
+
*/
|
|
2465
|
+
interface ExecuteCommandInput {
|
|
2466
|
+
/**
|
|
2467
|
+
* Command key to execute (e.g., "User:Create")
|
|
2468
|
+
*/
|
|
2469
|
+
commandKey: string;
|
|
2470
|
+
/**
|
|
2471
|
+
* Command input data
|
|
2472
|
+
*/
|
|
2473
|
+
input?: Record<string, any>;
|
|
2474
|
+
}
|
|
2475
|
+
/**
|
|
2476
|
+
* Output for ExecuteCommand activity.
|
|
2477
|
+
*/
|
|
2478
|
+
interface ExecuteCommandOutput {
|
|
2479
|
+
/**
|
|
2480
|
+
* Command result data
|
|
2481
|
+
*/
|
|
2482
|
+
result: any;
|
|
2483
|
+
/**
|
|
2484
|
+
* Whether command executed successfully
|
|
2485
|
+
*/
|
|
2486
|
+
success: boolean;
|
|
2487
|
+
/**
|
|
2488
|
+
* Error message if command failed
|
|
2489
|
+
*/
|
|
2490
|
+
error?: string;
|
|
2491
|
+
/**
|
|
2492
|
+
* Created/Updated entity ID (if applicable)
|
|
2493
|
+
*/
|
|
2494
|
+
entityId?: string;
|
|
2495
|
+
}
|
|
2496
|
+
/**
|
|
2497
|
+
* ExecuteCommand Activity (Backend)
|
|
2498
|
+
*
|
|
2499
|
+
* Executes a command operation.
|
|
2500
|
+
* This is a mock implementation that simulates common commands.
|
|
2501
|
+
*
|
|
2502
|
+
* Execution Mode: backend
|
|
2503
|
+
* Activity Type: workflow-activity:execute-command
|
|
2504
|
+
*
|
|
2505
|
+
* Outcomes:
|
|
2506
|
+
* - Done: Command executed successfully
|
|
2507
|
+
* - Failed: Command execution failed
|
|
2508
|
+
*/
|
|
2509
|
+
declare class ExecuteCommandActivity implements AXPCommand<ExecuteCommandInput, {
|
|
2510
|
+
output: ExecuteCommandOutput;
|
|
2511
|
+
outcomes: Record<string, any>;
|
|
2512
|
+
}> {
|
|
2513
|
+
private readonly storageService;
|
|
2514
|
+
execute(input: ExecuteCommandInput): Promise<{
|
|
2515
|
+
output: ExecuteCommandOutput;
|
|
2516
|
+
outcomes: Record<string, any>;
|
|
2517
|
+
}>;
|
|
2518
|
+
/**
|
|
2519
|
+
* Routes command to appropriate handler based on commandKey.
|
|
2520
|
+
*/
|
|
2521
|
+
private routeCommand;
|
|
2522
|
+
/**
|
|
2523
|
+
* Creates a new user in the system.
|
|
2524
|
+
*/
|
|
2525
|
+
private createUser;
|
|
2526
|
+
/**
|
|
2527
|
+
* Processes data according to business rules.
|
|
2528
|
+
*/
|
|
2529
|
+
private processData;
|
|
2530
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ExecuteCommandActivity, never>;
|
|
2531
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ExecuteCommandActivity>;
|
|
2532
|
+
}
|
|
2533
|
+
|
|
2534
|
+
/**
|
|
2535
|
+
* Provides all backend workflow activities as Commands.
|
|
2536
|
+
*
|
|
2537
|
+
* These activities are registered with the CommandBus and can be executed
|
|
2538
|
+
* by the workflow execution service.
|
|
2539
|
+
*
|
|
2540
|
+
* Usage:
|
|
2541
|
+
* ```typescript
|
|
2542
|
+
* @NgModule({
|
|
2543
|
+
* providers: [
|
|
2544
|
+
* provideWorkflowActivities(),
|
|
2545
|
+
* ]
|
|
2546
|
+
* })
|
|
2547
|
+
* export class AppModule {}
|
|
2548
|
+
* ```
|
|
2549
|
+
*/
|
|
2550
|
+
declare function provideWorkflowActivities(): i0.EnvironmentProviders;
|
|
2551
|
+
|
|
1786
2552
|
declare class AXCLogReportCategoryProvider implements AXPReportCategoryProvider {
|
|
1787
2553
|
getList(parentId?: string): Promise<AXPReportCategory[]>;
|
|
1788
2554
|
getById(id: string): Promise<AXPReportCategory | undefined>;
|
|
@@ -1965,7 +2731,21 @@ declare const historyLoggerMiddleware: AXPEntityStorageMiddleware;
|
|
|
1965
2731
|
*/
|
|
1966
2732
|
declare const signatureLoaderMiddleware: AXPEntityStorageMiddleware;
|
|
1967
2733
|
|
|
2734
|
+
/**
|
|
2735
|
+
* Middleware that prevents editing or deleting locked records.
|
|
2736
|
+
*
|
|
2737
|
+
* Supports two types of locks:
|
|
2738
|
+
* 1. 'user' lock: Automatic lock when edit popup is opened.
|
|
2739
|
+
* - Only the user who locked it can edit
|
|
2740
|
+
* - Other users cannot edit
|
|
2741
|
+
*
|
|
2742
|
+
* 2. 'admin' lock: Manual lock by admin for a specific duration or permanently.
|
|
2743
|
+
* - Even the admin who locked it cannot edit
|
|
2744
|
+
* - All users are blocked until lock expires (if expireAt is set)
|
|
2745
|
+
*/
|
|
2746
|
+
declare const lockGuardMiddleware: AXPEntityStorageMiddleware;
|
|
2747
|
+
|
|
1968
2748
|
declare const AXCMockEntityLogListener: AXPDistributedEventListenerProvider<any>;
|
|
1969
2749
|
|
|
1970
|
-
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,
|
|
1971
|
-
export type { AXCBusinessUnitMockDto, AXCEmployeeSkillMockDto, AXCLeaveRequestMockDto, AXCPositionAssignmentMockDto, AXCSkillLevelMockDto, AXCTeamMockDto, AXMTag, AXPLogRow, AXPRuleRow, AXPSeqRow, AXPVersionChange, AXPVersionEntry, AXPVersionStream, CanonicalChange, CanonicalChangeOp, CategoryMetadataInheritanceQueryParams, CategoryMetadataInheritanceResult, MockUserPassCredentials, PartyMockData, PositionMockDto, ResponsibilityMockDto, RoleMockDto, SkillMockDto, Task, TaskStatus, TaskTemplate, TaskType, UIDiffRow, VersionedFileInfo };
|
|
2750
|
+
export { APPLICATIONS, AXCAppTermDataSeeder, AXCAppVersionDataSeeder, AXCApplicationDataSeeder, AXCApplicationManagementMockModule, AXCAssessmentManagementMockModule, 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, AXCSecurityManagementMockModule, AXCTaskManagementMockModule, AXCTrainingManagementMockModule, AXCUserPassStrategyMock, AXCVersionDB, AXCVersioningService, AXCWorkflowDefinitionDataSeeder, AXCWorkflowExecutionDB, AXCWorkflowExecutionService, AXCWorkflowManagementMockModule, AXC_LOG_REPORT_CATEGORY_PROVIDER, AXC_LOG_REPORT_DEFINITION_PROVIDER, AXMAiResponderService, AXMBusinessUnitDataSeeder, AXMCalendarEventTypeSeeder, AXMCollaboratorDataSeeder, AXMEmployeeDataSeeder, AXMEmployeeSkillDataSeeder, AXMEmployeeSkillsCategoryProvider, AXMEmployeeSkillsReportDefinitionProvider, AXMEmploymentTypeDataSeeder, AXMFormDataSourcesProvider, AXMIndustryDataSeeder, AXMLeaveRequestDataSeeder, AXMMeetingDataSeeder, AXMMeetingFilesDataSeeder, AXMMeetingParticipantDataSeeder, AXMMeetingRoleTypeDataSeeder, AXMMeetingSessionDataSeeder, AXMMeetingTypeDataSeeder, AXMMeetingTypeFileTemplateDataSeeder, AXMPositionAssignmentDataSeeder, AXMPositionDataSeeder, AXMPublicationDataSeeder, AXMQuestionBankItemCategoryDataSeeder, AXMQuestionBankItemDataSeeder, AXMQuestionnaireCategoryDataSeeder, AXMQuestionnaireDataSeeder, AXMReportCategoryDataSeeder, AXMReportDefinitionDataSeeder, AXMReportExecuteCommand, AXMReportMockDataService, AXMResponseEntryDataSeeder, AXMResponseSessionDataSeeder, AXMResponsibilityDataSeeder, AXMRoleDataSeeder, AXMSkillDataSeeder, AXMSkillLevelDataSeeder, AXMTagDataSeeder, 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, CheckPermissionActivity, DASHBOARDS, EDITIONS, EMPLOYEES_MOCK, EMPLOYEE_SKILLS_MOCK, EMPLOYMENT_TYPES_MOCK, ExecuteCommandActivity, ExecuteQueryActivity, FEATURES, GLOBAL_VARIABLES, LEAVE_REQUESTS_MOCK, MODULES, POSITIONS_CATEGORY_MOCK, POSITIONS_MOCK, POSITION_ASSIGNMENTS_MOCK, QUESTIONNAIRE_CATEGORY_MOCK, QUESTION_BANK_ITEM_CATEGORY_MOCK, RESPONSIBILITIES_CATEGORY_MOCK, RESPONSIBILITIES_MOCK, ROLES_CATEGORY_MOCK, ROLES_MOCK, SKILLS_CATEGORY_MOCK, SKILLS_MOCK, SKILL_LEVELS_MOCK, TAGS_MOCK, TASKS, TASK_STATUSES, TASK_TEMPLATES, TASK_TYPES, TEAMS_MOCK, applications, auditLoggerMiddleware, axVersionDB, axWorkflowExecutionDB, calendarEventMock, calendarEventTypeMockData, calendarMock, childCountMiddleware, collaboratorMock, computeDiff, createAndSaveDashboardForUser, createDashboardForUser, createFileCastMiddleware, findContactMethod, findEmployeeById, findPartyById, generateUserDashboard, historyLoggerMiddleware, identifierCommitMiddleware, lockGuardMiddleware, lookupResolverMiddleware, meetingFilesMock, meetingIds, meetingMock, meetingParticipantMock, meetingRoleTypeMock, meetingSessionMock, meetingTimeSlotMock, meetingTypeFileTemplateMock, meetingTypeMock, mergeDetailRelationMiddleware, mockRoleDefinitions, mockUsers, normalizeAnyFileArrayForView, normalizeSnapshotFileFieldsForView, participantIds, primaryMiddleware, provideWorkflowActivities, publicationMock, questionBankItemMock, questionnaireMock, responseEntryMock, responseSessionMock, signatureLoaderMiddleware, tenantsMock, toUiRows, workflowDefinitionEntityMock, workflowDefinitionIds, workflowDefinitionMock };
|
|
2751
|
+
export type { AXCBusinessUnitMockDto, AXCEmployeeSkillMockDto, AXCLeaveRequestMockDto, AXCPositionAssignmentMockDto, AXCSkillLevelMockDto, AXCTeamMockDto, AXMTag, AXPLogRow, AXPRuleRow, AXPSeqRow, AXPVersionChange, AXPVersionEntry, AXPVersionStream, CanonicalChange, CanonicalChangeOp, CategoryMetadataInheritanceQueryParams, CategoryMetadataInheritanceResult, CheckPermissionInput, CheckPermissionOutput, ExecuteCommandInput, ExecuteCommandOutput, ExecuteQueryInput, ExecuteQueryOutput, MockUserPassCredentials, PartyMockData, PositionMockDto, QuestionBankItemMockDto, QuestionnaireMockDto, ResponsibilityMockDto, RoleMockDto, SkillMockDto, Task, TaskStatus, TaskTemplate, TaskType, UIDiffRow, VersionedFileInfo };
|