digicust_types 1.7.386 → 1.7.388
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/lib/models/digicust/execution-strategy/execution-strategy.model.d.ts +2 -1
- package/lib/models/digicust/execution-strategy/index.d.ts +1 -0
- package/lib/models/digicust/execution-strategy/index.js +1 -0
- package/lib/models/digicust/execution-strategy/rule.d.ts +13 -0
- package/lib/models/digicust/execution-strategy/rule.js +2 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DigicustDocumentType, Event, ProcedureMode, CustomsTariffNumberNormalizationSettings } from "..";
|
|
1
|
+
import { DigicustDocumentType, Event, ProcedureMode, CustomsTariffNumberNormalizationSettings, Rule } from "..";
|
|
2
2
|
/**
|
|
3
3
|
* Execution strategies are customer-configurable plans on how to process a specific case.
|
|
4
4
|
*/
|
|
@@ -118,6 +118,7 @@ export interface ExecutionStrategy {
|
|
|
118
118
|
};
|
|
119
119
|
};
|
|
120
120
|
events: Event[];
|
|
121
|
+
rules: Rule[];
|
|
121
122
|
automated?: boolean;
|
|
122
123
|
}
|
|
123
124
|
export declare const condenseExecutionStrategy: (strategy?: ExecutionStrategy) => ExecutionStrategy | null;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { UserInput } from "../documents";
|
|
2
|
+
import { FilterCondition } from "../frontend";
|
|
3
|
+
export interface Rule {
|
|
4
|
+
name?: string;
|
|
5
|
+
conditions?: {
|
|
6
|
+
/** Path or JSONata expression */
|
|
7
|
+
field?: string;
|
|
8
|
+
operator?: FilterCondition;
|
|
9
|
+
value?: string;
|
|
10
|
+
}[];
|
|
11
|
+
/** User input with replaced fields (according to its priority) */
|
|
12
|
+
userInput?: UserInput;
|
|
13
|
+
}
|