@acorex/connectivity 21.0.0-next.5 → 21.0.0-next.7
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/fesm2022/acorex-connectivity-mock.mjs +2465 -1845
- package/fesm2022/acorex-connectivity-mock.mjs.map +1 -1
- package/mock/index.d.ts +47 -28
- package/package.json +2 -2
package/mock/index.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ import { AXPSpreadsheetData } from '@acorex/platform/layout/components';
|
|
|
16
16
|
import * as _acorex_platform_common from '@acorex/platform/common';
|
|
17
17
|
import { AXPLockService, AXPLockRequest, AXPLockInfo, AXPUnLockRequest, AXPLockGetInfoRequest, AXPFileStorageService, AXPFileStorageCreateRequest, AXPFileStorageInfo, AXPFileStorageUpdateRequest, AXPFileStorageFindRequest, AXPFileManyStorageInfo, CanonicalChange as CanonicalChange$1, AXPVersioningService, AXPVersionEntry as AXPVersionEntry$1, AXVChangeType as AXVChangeType$1 } from '@acorex/platform/common';
|
|
18
18
|
import { AXMWorkflowManagementWorkflowDefinitionEntityModel } from '@acorex/modules/workflow-management';
|
|
19
|
-
import { AXPActivityCategory, AXPActivityDefinition,
|
|
19
|
+
import { AXPActivityCategory, AXPActivityDefinition, AXPWorkflowCategory, AXPWorkflowCategoryProvider, AXPWorkflowProvider, AXPWorkflowDefinitionMetadata, AXPWorkflowInstance, AXPWorkflowEngine, AXPStartWorkflowRequest, AXPStartWorkflowResponse, AXPResumeWorkflowRequest, AXPResumeWorkflowResponse, AXPGetWorkflowStateRequest, AXPWorkflowInstanceState, AXPWorkflowDefinition } from '@acorex/platform/workflow';
|
|
20
20
|
import { AXPWorkflowTaskProvider, AXPTaskFilter, AXPTask, AXPExtraField, AXPTaskStatus } from '@acorex/modules/task-management';
|
|
21
21
|
import { AXMCommonDashboardEntityModel } from '@acorex/modules/dashboard-management';
|
|
22
22
|
import { AXPExecutionReportCommand, AXPLayoutExecutionContext, AXPExecutionReportCommandResult } from '@acorex/modules/report-management';
|
|
@@ -1289,6 +1289,35 @@ declare class AXCActivityDefinitionSeeder implements AXPDataSeeder {
|
|
|
1289
1289
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXCActivityDefinitionSeeder>;
|
|
1290
1290
|
}
|
|
1291
1291
|
|
|
1292
|
+
declare const WORKFLOW_CATEGORIES: AXPWorkflowCategory[];
|
|
1293
|
+
|
|
1294
|
+
/**
|
|
1295
|
+
* Mock Workflow Category Provider
|
|
1296
|
+
*
|
|
1297
|
+
* Provides workflow categories from mock data.
|
|
1298
|
+
*/
|
|
1299
|
+
declare class AXCWorkflowCategoryProvider implements AXPWorkflowCategoryProvider {
|
|
1300
|
+
getList(parentId?: string): Promise<AXPWorkflowCategory[]>;
|
|
1301
|
+
getById(id: string): Promise<AXPWorkflowCategory | undefined>;
|
|
1302
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCWorkflowCategoryProvider, never>;
|
|
1303
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXCWorkflowCategoryProvider>;
|
|
1304
|
+
}
|
|
1305
|
+
|
|
1306
|
+
/**
|
|
1307
|
+
* Mock Workflow Definition Provider
|
|
1308
|
+
*
|
|
1309
|
+
* Provides workflow definition metadata from mock data.
|
|
1310
|
+
* Converts workflow definitions to metadata format.
|
|
1311
|
+
*/
|
|
1312
|
+
declare class AXCWorkflowDefinitionMetadataProvider implements AXPWorkflowProvider {
|
|
1313
|
+
private metadataCache;
|
|
1314
|
+
private getMetadataCache;
|
|
1315
|
+
getList(categoryId: string): Promise<AXPWorkflowDefinitionMetadata[]>;
|
|
1316
|
+
getById(name: string): Promise<AXPWorkflowDefinitionMetadata | undefined>;
|
|
1317
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCWorkflowDefinitionMetadataProvider, never>;
|
|
1318
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXCWorkflowDefinitionMetadataProvider>;
|
|
1319
|
+
}
|
|
1320
|
+
|
|
1292
1321
|
type extraFields$1 = {
|
|
1293
1322
|
recievedDate: Date;
|
|
1294
1323
|
};
|
|
@@ -2100,34 +2129,34 @@ declare class AXCWorkflowExecutionDB extends Dexie {
|
|
|
2100
2129
|
declare const axWorkflowExecutionDB: AXCWorkflowExecutionDB;
|
|
2101
2130
|
|
|
2102
2131
|
/**
|
|
2103
|
-
* Mock implementation of
|
|
2132
|
+
* Mock implementation of AXPWorkflowEngine.
|
|
2104
2133
|
*
|
|
2105
|
-
* Uses IndexedDB (via Dexie) to store workflow
|
|
2134
|
+
* Uses IndexedDB (via Dexie) to store workflow instance states.
|
|
2106
2135
|
*
|
|
2107
2136
|
* @example
|
|
2108
2137
|
* ```typescript
|
|
2109
2138
|
* // In module providers
|
|
2110
2139
|
* {
|
|
2111
|
-
* provide:
|
|
2112
|
-
* useClass:
|
|
2140
|
+
* provide: AXP_WORKFLOW_ENGINE,
|
|
2141
|
+
* useClass: AXCWorkflowRuntimeService,
|
|
2113
2142
|
* }
|
|
2114
2143
|
* ```
|
|
2115
2144
|
*/
|
|
2116
|
-
declare class
|
|
2145
|
+
declare class AXCWorkflowRuntimeService implements AXPWorkflowEngine {
|
|
2117
2146
|
private readonly db;
|
|
2118
2147
|
private readonly commandService;
|
|
2119
2148
|
private readonly entityStorageService;
|
|
2120
2149
|
/**
|
|
2121
|
-
* Start a new workflow
|
|
2150
|
+
* Start a new workflow instance.
|
|
2122
2151
|
* Creates a workflow instance and stores it in IndexedDB.
|
|
2123
2152
|
*/
|
|
2124
|
-
|
|
2153
|
+
start(request: AXPStartWorkflowRequest): Promise<AXPStartWorkflowResponse>;
|
|
2125
2154
|
/**
|
|
2126
2155
|
* Find activity in Flowchart by ID.
|
|
2127
2156
|
*/
|
|
2128
2157
|
private findActivityInFlowchart;
|
|
2129
2158
|
/**
|
|
2130
|
-
* Resume a suspended workflow
|
|
2159
|
+
* Resume a suspended workflow instance.
|
|
2131
2160
|
*
|
|
2132
2161
|
* After frontend completes its task:
|
|
2133
2162
|
* 1. Validates taskToken
|
|
@@ -2135,21 +2164,11 @@ declare class AXCWorkflowExecutionService implements AXPWorkflowExecutionService
|
|
|
2135
2164
|
* 3. Executes ALL backend activities in sequence
|
|
2136
2165
|
* 4. Stops at first frontend activity and returns it as pendingTask
|
|
2137
2166
|
*/
|
|
2138
|
-
|
|
2167
|
+
resume(request: AXPResumeWorkflowRequest): Promise<AXPResumeWorkflowResponse>;
|
|
2139
2168
|
/**
|
|
2140
2169
|
* Get current workflow execution state.
|
|
2141
2170
|
*/
|
|
2142
|
-
|
|
2143
|
-
/**
|
|
2144
|
-
* Get workflow definition by ID.
|
|
2145
|
-
*
|
|
2146
|
-
* In mock implementation, this retrieves workflow definition from localStorage.
|
|
2147
|
-
* In production, this would make an HTTP call to backend API.
|
|
2148
|
-
*
|
|
2149
|
-
* @param request - Get workflow definition request
|
|
2150
|
-
* @returns Workflow definition
|
|
2151
|
-
*/
|
|
2152
|
-
getWorkflowDefinition(request: AXPGetWorkflowDefinitionRequest): Promise<AXPGetWorkflowDefinitionResponse>;
|
|
2171
|
+
getState(request: AXPGetWorkflowStateRequest): Promise<AXPWorkflowInstanceState>;
|
|
2153
2172
|
/**
|
|
2154
2173
|
* Generate unique task token for task-based execution.
|
|
2155
2174
|
* Inspired by Temporal's task tokens for secure task completion.
|
|
@@ -2199,13 +2218,13 @@ declare class AXCWorkflowExecutionService implements AXPWorkflowExecutionService
|
|
|
2199
2218
|
*/
|
|
2200
2219
|
private executeHttpRequest;
|
|
2201
2220
|
/**
|
|
2202
|
-
* Convert workflow instance to
|
|
2221
|
+
* Convert workflow instance to instance state.
|
|
2203
2222
|
*/
|
|
2204
|
-
private
|
|
2223
|
+
private instanceToInstanceState;
|
|
2205
2224
|
/**
|
|
2206
|
-
* Update
|
|
2225
|
+
* Update instance state in instance and save to IndexedDB.
|
|
2207
2226
|
*/
|
|
2208
|
-
private
|
|
2227
|
+
private updateInstanceFromState;
|
|
2209
2228
|
/**
|
|
2210
2229
|
* Get workflow instance from IndexedDB.
|
|
2211
2230
|
*/
|
|
@@ -2214,8 +2233,8 @@ declare class AXCWorkflowExecutionService implements AXPWorkflowExecutionService
|
|
|
2214
2233
|
* Update workflow instance in IndexedDB.
|
|
2215
2234
|
*/
|
|
2216
2235
|
private updateInstance;
|
|
2217
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
2218
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
2236
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCWorkflowRuntimeService, never>;
|
|
2237
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXCWorkflowRuntimeService>;
|
|
2219
2238
|
}
|
|
2220
2239
|
|
|
2221
2240
|
/**
|
|
@@ -2553,5 +2572,5 @@ declare function bypassAllFilters<T extends AXPQueryRequest>(request: T): T;
|
|
|
2553
2572
|
|
|
2554
2573
|
declare const AXCMockEntityLogListener: AXPDistributedEventListenerProvider<any>;
|
|
2555
2574
|
|
|
2556
|
-
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, AXCJsaSeeder, AXCLearningManagementMockModule, AXCLocaleManagementMockModule, AXCLocationManagementMockModule, AXCLockService, AXCMeasurementCoreMockModule, AXCMeetingManagementMockModule, AXCMetaDataDefinitionDataSeeder, AXCMetadataCategorySeeder, AXCMiddlewaresModule, AXCMockEntityLogListener, AXCMockModule, AXCNotificationManagementMockModule, AXCOrderManagementMockModule, AXCOrganizationManagementMockModule, AXCPersonManagementMockModule, AXCPlatformManagementMockModule, AXCProcurementManagementMockModule, AXCProductCatalogMockModule, AXCProjectManagementMockModule, AXCQueryCategoryMetadataInheritanceQuery, AXCReportManagementMockModule, AXCSecurityManagementMockModule, AXCSubscriptionManagementMockModule, AXCSupplierManagementMockModule, AXCTaskManagementMockModule, AXCTenantManagementMockModule, AXCTenantSeeder, AXCTokensDataSeeder, AXCUserPassStrategyMock, AXCVersionDB, AXCVersioningService, AXCWorkflowDefinitionDataSeeder,
|
|
2575
|
+
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, AXCJsaSeeder, AXCLearningManagementMockModule, AXCLocaleManagementMockModule, AXCLocationManagementMockModule, AXCLockService, AXCMeasurementCoreMockModule, AXCMeetingManagementMockModule, AXCMetaDataDefinitionDataSeeder, AXCMetadataCategorySeeder, AXCMiddlewaresModule, AXCMockEntityLogListener, AXCMockModule, AXCNotificationManagementMockModule, AXCOrderManagementMockModule, AXCOrganizationManagementMockModule, AXCPersonManagementMockModule, AXCPlatformManagementMockModule, AXCProcurementManagementMockModule, AXCProductCatalogMockModule, AXCProjectManagementMockModule, AXCQueryCategoryMetadataInheritanceQuery, AXCReportManagementMockModule, AXCSecurityManagementMockModule, AXCSubscriptionManagementMockModule, AXCSupplierManagementMockModule, AXCTaskManagementMockModule, AXCTenantManagementMockModule, AXCTenantSeeder, AXCTokensDataSeeder, AXCUserPassStrategyMock, AXCVersionDB, AXCVersioningService, AXCWorkflowCategoryProvider, AXCWorkflowDefinitionDataSeeder, AXCWorkflowDefinitionMetadataProvider, AXCWorkflowExecutionDB, AXCWorkflowManagementMockModule, AXCWorkflowRuntimeService, AXMAiResponderService, AXMAssessmentCaseDataSeeder, AXMAssessmentSessionDataSeeder, AXMBusinessUnitDataSeeder, AXMCalendarEventTypeSeeder, AXMEmployeeDataSeeder, AXMEmploymentTypeDataSeeder, AXMFormDataSourcesProvider, AXMJobDefinitionDataSeeder, AXMJobLevelDataSeeder, AXMLeaveRequestDataSeeder, AXMMeetingDataSeeder, AXMMeetingFilesDataSeeder, AXMMeetingParticipantDataSeeder, AXMMeetingRoleTypeDataSeeder, AXMMeetingSessionDataSeeder, AXMMeetingTypeDataSeeder, AXMMeetingTypeFileTemplateDataSeeder, AXMPositionAssignmentDataSeeder, AXMPositionDataSeeder, AXMQuestionBankItemCategoryDataSeeder, AXMQuestionBankItemDataSeeder, AXMQuestionnaireCategoryDataSeeder, AXMQuestionnaireDataSeeder, AXMReportExecuteCommand, AXMResponsibilityDataSeeder, AXMTagDataSeeder, AXMTeamDataSeeder, AXPDashboardDataSeeder, AXPIdentifierDB, AXPMessageDataSeeder, AXPMockChecksumProvider, AXPMockClockProvider, AXPMockIdentifierService, AXPMockLookupProvider, AXPMockPolicyProvider, AXPMockSequenceProvider, AXPRoomDataSeeder, AXPSecurityManagementRoleDataSeeder, AXPSecurityManagementUserDataSeeder, AXPTaskBoardPlatformManagementTaskProvider, AXPTaskBoardProjectManagementTaskProvider, AXVChangeType, BUSINESS_UNITS_MOCK, COSTMANAGER_ENTERPRISE, COSTMANAGER_PROFESSIONAL, COSTMANAGER_STANDARD, CRM_ENTERPRISE, 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, TIMEPLICITY_TENANT_ID, TOKENS, VISIBILITY_FILTER_BYPASS, WORKFLOW_CATEGORIES, assessmentCaseMock, assessmentSessionMock, auditLoggerMiddleware, avatarInterface, axVersionDB, axWorkflowExecutionDB, bypassAllFilters, bypassOwnershipFilter, bypassVisibilityFilter, calendarEventMock, calendarEventTypeMockData, calendarMock, checkboxInterface, childCountMiddleware, colorInterface, computeDiff, contactInterface, createAndSaveDashboardForUser, createDashboardForUser, createFileCastMiddleware, dateInterface, dateTimeInterface, descriptionInterface, emailInterface, fileUploaderInterface, findContactMethod, findEmployeeById, findPersonById, generateUserDashboard, groupOrderItemCalculatorMiddleware, historyLoggerMiddleware, identifierCommitMiddleware, imageInterface, lockGuardMiddleware, longTextAnswerInterface, lookupInterface, lookupResolverMiddleware, mapInterface, meetingFilesMock, meetingIds, meetingMock, meetingParticipantMock, meetingRoleTypeMock, meetingSessionMock, meetingTimeSlotMock, meetingTypeFileTemplateMock, meetingTypeMock, mergeDetailRelationMiddleware, metadataCategoryMocks, mockRoleDefinitions, mockUsers, multipleChoiceInterface, multipleSelectInterface, normalizeAnyFileArrayForView, normalizeSnapshotFileFieldsForView, numberInterface, participantIds, passwordInterface, phoneInterface, primaryMiddleware, qrcodeInterface, questionBankItemMock, questionnaireMock, ratingInterface, richTextInterface, scaleInterface, selectInterface, selectionListInterface, signatureInterface, signatureLoaderMiddleware, tagInterface, tenantMocks, textAreaInterface, textInterface, timeDurationInterface, titleInterface, toUiRows, toggleInterface, urlInterface, versionInterface, visibilityFilterMiddleware, workflowDefinitionEntityMock, workflowDefinitionIds, workflowDefinitionMock, yesNoInterface };
|
|
2557
2576
|
export type { AXCBusinessUnitMockDto, AXCLeaveRequestMockDto, AXCPositionAssignmentMockDto, 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 };
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acorex/connectivity",
|
|
3
|
-
"version": "21.0.0-next.
|
|
3
|
+
"version": "21.0.0-next.7",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@acorex/modules": "21.0.0-next.
|
|
5
|
+
"@acorex/modules": "21.0.0-next.7"
|
|
6
6
|
},
|
|
7
7
|
"sideEffects": false,
|
|
8
8
|
"module": "fesm2022/acorex-connectivity.mjs",
|