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.
@@ -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;
@@ -1 +1,2 @@
1
1
  export * from "./execution-strategy.model";
2
+ export * from "./rule";
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./execution-strategy.model"), exports);
18
+ __exportStar(require("./rule"), exports);
@@ -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
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "digicust_types",
3
- "version": "1.7.386",
3
+ "version": "1.7.388",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",