@dotbep/core 0.2.17 → 0.2.18
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/dist/index.d.ts +7 -18
- package/dist/index.js +801 -809
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -880,7 +880,6 @@ export declare class Effects extends Entity<FlowEffect> {
|
|
|
880
880
|
|
|
881
881
|
export declare class Engine {
|
|
882
882
|
private readonly getBep;
|
|
883
|
-
private readonly getHistoricalBep?;
|
|
884
883
|
private _runtime;
|
|
885
884
|
private storage;
|
|
886
885
|
private skipRaci;
|
|
@@ -910,7 +909,7 @@ export declare class Engine {
|
|
|
910
909
|
onEffectFailed(listener: EffectFailedListener): Engine;
|
|
911
910
|
onAutomationFailed(listener: AutomationFailedListener): Engine;
|
|
912
911
|
};
|
|
913
|
-
constructor(getBep: () => BEP
|
|
912
|
+
constructor(getBep: () => BEP);
|
|
914
913
|
/**
|
|
915
914
|
* Configures the engine with a runtime and storage backend.
|
|
916
915
|
* Must be called before any operations (workflows.create, workflows.emit, etc.).
|
|
@@ -927,7 +926,6 @@ export declare class Engine {
|
|
|
927
926
|
private _getStatus;
|
|
928
927
|
private _resolveContext;
|
|
929
928
|
private _assertInit;
|
|
930
|
-
private _resolveBep;
|
|
931
929
|
private _fire;
|
|
932
930
|
private _executeAutomationNode;
|
|
933
931
|
private _executeEffect;
|
|
@@ -1651,9 +1649,7 @@ export declare interface InstanceFilter {
|
|
|
1651
1649
|
status?: InstanceStatus;
|
|
1652
1650
|
/** Member.email — returns instances where this actor has a pending RACI action. */
|
|
1653
1651
|
pendingActionFor?: string;
|
|
1654
|
-
/** ref
|
|
1655
|
-
trackedAssetTypeId?: string;
|
|
1656
|
-
/** ID of the asset in the external system. */
|
|
1652
|
+
/** ref internal asset id (e.g. Deliverable.id) — only matches source: 'internal' instances. */
|
|
1657
1653
|
trackedAssetId?: string;
|
|
1658
1654
|
}
|
|
1659
1655
|
|
|
@@ -2502,21 +2498,14 @@ export declare interface WorkflowInstance {
|
|
|
2502
2498
|
id: string;
|
|
2503
2499
|
/** ref Workflow.id */
|
|
2504
2500
|
workflowId: string;
|
|
2505
|
-
/** BEP version at the time this instance was created — used to load the correct workflow definition. */
|
|
2506
|
-
bepVersion: string;
|
|
2507
2501
|
/** The asset this instance is tracking. */
|
|
2508
2502
|
trackedAsset: {
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
/**
|
|
2512
|
-
* Namespace that identifies where the asset lives.
|
|
2513
|
-
* Format: "bep:<entityName>" for BEP-internal entities (e.g. "bep:deliverables"),
|
|
2514
|
-
* or "external:<softwareId>" for assets in external systems (e.g. "external:software-acc").
|
|
2515
|
-
* The softwareId must match a Software.id declared in the BEP (which cannot contain colons).
|
|
2516
|
-
*/
|
|
2517
|
-
source: string;
|
|
2518
|
-
/** ID of the asset — ref to the entity within the source. */
|
|
2503
|
+
source: 'internal';
|
|
2504
|
+
type: 'deliverable';
|
|
2519
2505
|
id: string;
|
|
2506
|
+
} | {
|
|
2507
|
+
source: 'external';
|
|
2508
|
+
url: string;
|
|
2520
2509
|
label: string;
|
|
2521
2510
|
};
|
|
2522
2511
|
/** Key of the current FlowNode. Not a decision node — engine auto-traverses those. */
|