@acorex/connectivity 20.6.0-next.1 → 20.6.0-next.3
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 +1954 -468
- package/fesm2022/acorex-connectivity-mock.mjs.map +1 -1
- package/mock/index.d.ts +306 -61
- package/package.json +2 -2
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
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
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
|
-
import {
|
|
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 {
|
|
@@ -1357,6 +1358,18 @@ interface TaskTemplate {
|
|
|
1357
1358
|
}
|
|
1358
1359
|
declare const TASK_TEMPLATES: TaskTemplate[];
|
|
1359
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
|
+
|
|
1360
1373
|
type extraFields$1 = {
|
|
1361
1374
|
recievedDate: Date;
|
|
1362
1375
|
};
|
|
@@ -2137,7 +2150,7 @@ declare const axVersionDB: AXCVersionDB;
|
|
|
2137
2150
|
* Compute canonical JSON Patch-like changes with custom ops for file arrays.
|
|
2138
2151
|
*/
|
|
2139
2152
|
declare function computeDiff(prevSnapshot: unknown, nextSnapshot: unknown, basePath?: string): CanonicalChange$1[];
|
|
2140
|
-
declare class
|
|
2153
|
+
declare class AXCVersioningService implements AXPVersioningService {
|
|
2141
2154
|
private readonly db;
|
|
2142
2155
|
private readonly fileStorage;
|
|
2143
2156
|
upsertStream(entityType: string, entityId: string): Promise<string>;
|
|
@@ -2163,8 +2176,8 @@ declare class VersioningService implements AXPVersioningService {
|
|
|
2163
2176
|
oldValue?: unknown;
|
|
2164
2177
|
newValue?: unknown;
|
|
2165
2178
|
}>>;
|
|
2166
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
2167
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
2179
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCVersioningService, never>;
|
|
2180
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXCVersioningService>;
|
|
2168
2181
|
}
|
|
2169
2182
|
|
|
2170
2183
|
interface UIDiffRow {
|
|
@@ -2180,24 +2193,14 @@ declare function normalizeAnyFileArrayForView(arr: any[], fileStorage: AXPFileSt
|
|
|
2180
2193
|
declare function normalizeSnapshotFileFieldsForView(snapshot: any, fileStorage: AXPFileStorageService): Promise<any>;
|
|
2181
2194
|
|
|
2182
2195
|
/**
|
|
2183
|
-
*
|
|
2184
|
-
* Uses executionId as primary key.
|
|
2185
|
-
* Date objects are stored as ISO strings and converted back when retrieved.
|
|
2186
|
-
*/
|
|
2187
|
-
interface AXCWorkflowExecutionStateStorage extends Omit<AXPWorkflowExecutionState, 'lastUpdated'> {
|
|
2188
|
-
/**
|
|
2189
|
-
* Last update timestamp stored as ISO string (IndexedDB compatibility).
|
|
2190
|
-
*/
|
|
2191
|
-
lastUpdated: string;
|
|
2192
|
-
}
|
|
2193
|
-
/**
|
|
2194
|
-
* Dexie database for workflow execution states.
|
|
2196
|
+
* Dexie database for workflow instances.
|
|
2195
2197
|
*/
|
|
2196
2198
|
declare class AXCWorkflowExecutionDB extends Dexie {
|
|
2197
2199
|
/**
|
|
2198
|
-
* Table for workflow
|
|
2200
|
+
* Table for workflow instances.
|
|
2201
|
+
* Uses id as primary key.
|
|
2199
2202
|
*/
|
|
2200
|
-
|
|
2203
|
+
instances: Table<AXPWorkflowInstance, string>;
|
|
2201
2204
|
constructor();
|
|
2202
2205
|
}
|
|
2203
2206
|
/**
|
|
@@ -2222,24 +2225,24 @@ declare const axWorkflowExecutionDB: AXCWorkflowExecutionDB;
|
|
|
2222
2225
|
declare class AXCWorkflowExecutionService implements AXPWorkflowExecutionService {
|
|
2223
2226
|
private readonly db;
|
|
2224
2227
|
private readonly activityProviderService;
|
|
2228
|
+
private readonly commandService;
|
|
2225
2229
|
/**
|
|
2226
2230
|
* Start a new workflow execution.
|
|
2231
|
+
* Creates a workflow instance and stores it in IndexedDB.
|
|
2227
2232
|
*/
|
|
2228
2233
|
startExecution(request: AXPStartWorkflowExecutionRequest): Promise<AXPStartWorkflowExecutionResponse>;
|
|
2229
2234
|
/**
|
|
2230
|
-
*
|
|
2231
|
-
*
|
|
2232
|
-
* In mock implementation, this simulates backend activity execution.
|
|
2233
|
-
* For real backend activities (execute-command, execute-query, set-variable),
|
|
2234
|
-
* you would typically make an HTTP call. In mock, we just update state.
|
|
2235
|
-
*/
|
|
2236
|
-
executeBackendActivity(request: AXPExecuteBackendActivityRequest): Promise<AXPExecuteBackendActivityResponse>;
|
|
2237
|
-
/**
|
|
2238
|
-
* Find activity in workflow tree recursively.
|
|
2235
|
+
* Find activity in Flowchart by ID.
|
|
2239
2236
|
*/
|
|
2240
|
-
private
|
|
2237
|
+
private findActivityInFlowchart;
|
|
2241
2238
|
/**
|
|
2242
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
|
|
2243
2246
|
*/
|
|
2244
2247
|
resumeExecution(request: AXPResumeWorkflowExecutionRequest): Promise<AXPResumeWorkflowExecutionResponse>;
|
|
2245
2248
|
/**
|
|
@@ -2256,45 +2259,34 @@ declare class AXCWorkflowExecutionService implements AXPWorkflowExecutionService
|
|
|
2256
2259
|
* @returns Workflow definition
|
|
2257
2260
|
*/
|
|
2258
2261
|
getWorkflowDefinition(request: AXPGetWorkflowDefinitionRequest): Promise<AXPGetWorkflowDefinitionResponse>;
|
|
2259
|
-
/**
|
|
2260
|
-
* Convert Elsa Workflow Definition v3.0.0 to AXPWorkflowEngine format
|
|
2261
|
-
* https://elsaworkflows.io/schemas/workflow-definition/v3.0.0/schema.json
|
|
2262
|
-
*/
|
|
2263
|
-
private convertElsaToWorkflowEngine;
|
|
2264
|
-
/**
|
|
2265
|
-
* Extract all activities from root activity recursively
|
|
2266
|
-
*/
|
|
2267
|
-
private extractActivities;
|
|
2268
|
-
/**
|
|
2269
|
-
* Execute current step from execution state.
|
|
2270
|
-
*
|
|
2271
|
-
* Backend handles everything: gets state, workflow definition, finds step, determines nextStep.
|
|
2272
|
-
*/
|
|
2273
|
-
executeCurrentStep(request: AXPExecuteCurrentStepRequest): Promise<AXPExecuteCurrentStepResponse>;
|
|
2274
2262
|
/**
|
|
2275
2263
|
* Generate unique task token for task-based execution.
|
|
2276
2264
|
* Inspired by Temporal's task tokens for secure task completion.
|
|
2277
2265
|
*/
|
|
2278
2266
|
private generateTaskToken;
|
|
2279
2267
|
/**
|
|
2280
|
-
* Determine execution mode for an activity
|
|
2268
|
+
* Determine execution mode for an activity.
|
|
2281
2269
|
*
|
|
2282
|
-
*
|
|
2283
|
-
*
|
|
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'
|
|
2284
2274
|
*
|
|
2285
2275
|
* @param activityType - Activity type (e.g., 'workflow-activity:write-line')
|
|
2286
|
-
* @param
|
|
2276
|
+
* @param activity - Activity from workflow definition (AXPActivity)
|
|
2287
2277
|
* @returns Execution mode: 'frontend', 'backend', or 'both'
|
|
2288
2278
|
*/
|
|
2289
2279
|
private determineExecutionMode;
|
|
2290
2280
|
/**
|
|
2291
|
-
* Create a task from a workflow
|
|
2281
|
+
* Create a task from a workflow activity.
|
|
2292
2282
|
* Inspired by Temporal's Activity Task and Elsa's Bookmark pattern.
|
|
2293
2283
|
*/
|
|
2294
|
-
private
|
|
2284
|
+
private createTaskFromActivity;
|
|
2295
2285
|
/**
|
|
2296
|
-
* Execute backend activities locally
|
|
2297
|
-
*
|
|
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.
|
|
2298
2290
|
*/
|
|
2299
2291
|
private executeBackendActivityLocally;
|
|
2300
2292
|
/**
|
|
@@ -2302,22 +2294,261 @@ declare class AXCWorkflowExecutionService implements AXPWorkflowExecutionService
|
|
|
2302
2294
|
*/
|
|
2303
2295
|
private executeSetVariable;
|
|
2304
2296
|
/**
|
|
2305
|
-
* Execute
|
|
2297
|
+
* Execute HTTP request - makes real HTTP call.
|
|
2298
|
+
* Supports different HTTP methods and handles timeouts.
|
|
2306
2299
|
*/
|
|
2307
|
-
private
|
|
2300
|
+
private executeHttpRequest;
|
|
2308
2301
|
/**
|
|
2309
|
-
*
|
|
2302
|
+
* Convert workflow instance to execution state (for backward compatibility).
|
|
2310
2303
|
*/
|
|
2311
|
-
private
|
|
2304
|
+
private instanceToExecutionState;
|
|
2312
2305
|
/**
|
|
2313
|
-
*
|
|
2314
|
-
* Supports different HTTP methods and handles timeouts.
|
|
2306
|
+
* Update execution state in instance and save to IndexedDB.
|
|
2315
2307
|
*/
|
|
2316
|
-
private
|
|
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
2317
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXCWorkflowExecutionService, never>;
|
|
2318
2318
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXCWorkflowExecutionService>;
|
|
2319
2319
|
}
|
|
2320
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
|
+
|
|
2321
2552
|
declare class AXCLogReportCategoryProvider implements AXPReportCategoryProvider {
|
|
2322
2553
|
getList(parentId?: string): Promise<AXPReportCategory[]>;
|
|
2323
2554
|
getById(id: string): Promise<AXPReportCategory | undefined>;
|
|
@@ -2500,7 +2731,21 @@ declare const historyLoggerMiddleware: AXPEntityStorageMiddleware;
|
|
|
2500
2731
|
*/
|
|
2501
2732
|
declare const signatureLoaderMiddleware: AXPEntityStorageMiddleware;
|
|
2502
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
|
+
|
|
2503
2748
|
declare const AXCMockEntityLogListener: AXPDistributedEventListenerProvider<any>;
|
|
2504
2749
|
|
|
2505
|
-
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, 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, 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, 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,
|
|
2506
|
-
export type { AXCBusinessUnitMockDto, AXCEmployeeSkillMockDto, AXCLeaveRequestMockDto, AXCPositionAssignmentMockDto, AXCSkillLevelMockDto, AXCTeamMockDto,
|
|
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 };
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acorex/connectivity",
|
|
3
|
-
"version": "20.6.0-next.
|
|
3
|
+
"version": "20.6.0-next.3",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@acorex/modules": "20.6.0-next.
|
|
5
|
+
"@acorex/modules": "20.6.0-next.3"
|
|
6
6
|
},
|
|
7
7
|
"sideEffects": false,
|
|
8
8
|
"module": "fesm2022/acorex-connectivity.mjs",
|