digicust_types 1.8.319 → 1.8.321

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.
@@ -42,6 +42,10 @@ export interface CaseModel {
42
42
  /** Case Type */
43
43
  procedureMode?: ProcedureMode;
44
44
  totalItemsLength?: number;
45
+ statistics?: {
46
+ /** gives information of this being the # case of today. Basically counts previously cases of customer and project today and adds +1 */
47
+ dailyCaseCount?: number;
48
+ };
45
49
  /**
46
50
  * Customs documents (e.g. invoices, waybills, ...)
47
51
  * Each item could only exist in condensed form
@@ -0,0 +1,12 @@
1
+ import { Meta } from "..";
2
+ /**
3
+ * Statistics about a case
4
+ */
5
+ export interface StatsCaseModel {
6
+ fillOutRatio?: Meta<number>;
7
+ difficulty?: Meta<number>;
8
+ accuracy?: Meta<number>;
9
+ completeness?: Meta<number>;
10
+ correctness?: Meta<number>;
11
+ overallConfidence?: Meta<number>;
12
+ }
@@ -1,5 +1,6 @@
1
1
  import { DocumentCodeSource } from "./document-code-source.enum";
2
- export interface DocumentCodeSourceContext {
2
+ import { Condition } from "../execution-strategy";
3
+ export interface DocumentCodeDerivation {
3
4
  source: DocumentCodeSource;
4
5
  taricQueryParams?: {
5
6
  itemId?: string;
@@ -7,6 +8,11 @@ export interface DocumentCodeSourceContext {
7
8
  procedureMode?: string;
8
9
  certificateType?: string;
9
10
  };
11
+ ruleMetadata?: {
12
+ name?: string;
13
+ id?: string;
14
+ conditions?: Condition[];
15
+ };
10
16
  computationParams?: any;
11
17
  materialId?: string;
12
18
  }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,4 @@
1
- import { DigicustDocumentType, DocumentCodeSourceContext } from ".";
1
+ import { DigicustDocumentType, DocumentCodeDerivation } from ".";
2
2
  import { Meta } from "..";
3
3
  /**
4
4
  * Coding of documents
@@ -21,5 +21,5 @@ export interface DocumentCode extends Meta<DigicustDocumentType> {
21
21
  NC_43000?: string;
22
22
  NC_44000?: string;
23
23
  DE_I0903?: string;
24
- derivedFrom?: DocumentCodeSourceContext;
24
+ derivedFrom?: DocumentCodeDerivation;
25
25
  }
@@ -14,4 +14,4 @@ export * from "./tariff-classification-input";
14
14
  export * from "./waybill-type.model";
15
15
  export * from "./document-code.model";
16
16
  export * from "./document-code-source.enum";
17
- export * from "./document-code-source-context";
17
+ export * from "./document-code-derivation";
@@ -30,4 +30,4 @@ __exportStar(require("./tariff-classification-input"), exports);
30
30
  __exportStar(require("./waybill-type.model"), exports);
31
31
  __exportStar(require("./document-code.model"), exports);
32
32
  __exportStar(require("./document-code-source.enum"), exports);
33
- __exportStar(require("./document-code-source-context"), exports);
33
+ __exportStar(require("./document-code-derivation"), exports);
@@ -0,0 +1,7 @@
1
+ import { FilterCondition } from "../frontend";
2
+ export interface Condition {
3
+ /** Path or JSONata expression */
4
+ field?: string;
5
+ operator?: FilterCondition;
6
+ value?: string;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,3 +2,4 @@ export * from "./execution-strategy.model";
2
2
  export * from "./rule";
3
3
  export * from "./sftp-config.model";
4
4
  export * from "./ruleCatalogItem";
5
+ export * from "./condition";
@@ -18,3 +18,4 @@ __exportStar(require("./execution-strategy.model"), exports);
18
18
  __exportStar(require("./rule"), exports);
19
19
  __exportStar(require("./sftp-config.model"), exports);
20
20
  __exportStar(require("./ruleCatalogItem"), exports);
21
+ __exportStar(require("./condition"), exports);
@@ -1,14 +1,9 @@
1
1
  import { UserInput } from "../documents";
2
- import { FilterCondition } from "../frontend";
2
+ import { Condition } from "./condition";
3
3
  export interface Rule {
4
4
  id?: string;
5
5
  name?: string;
6
- conditions?: {
7
- /** Path or JSONata expression */
8
- field?: string;
9
- operator?: FilterCondition;
10
- value?: string;
11
- }[];
6
+ conditions?: Condition[];
12
7
  /** User input with replaced fields (according to its priority) */
13
8
  userInput?: UserInput;
14
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "digicust_types",
3
- "version": "1.8.319",
3
+ "version": "1.8.321",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",