digicust_types 1.8.384 → 1.8.386

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
  export * from "./execution-strategy.model";
2
2
  export * from "./rule";
3
3
  export * from "./sftp-config.model";
4
+ export * from "./resolved-rule";
4
5
  export * from "./ruleCatalogItem";
5
6
  export * from "./condition";
@@ -17,5 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./execution-strategy.model"), exports);
18
18
  __exportStar(require("./rule"), exports);
19
19
  __exportStar(require("./sftp-config.model"), exports);
20
+ __exportStar(require("./resolved-rule"), exports);
20
21
  __exportStar(require("./ruleCatalogItem"), exports);
21
22
  __exportStar(require("./condition"), exports);
@@ -0,0 +1,8 @@
1
+ import { UserInput } from "../documents";
2
+ import { Condition } from "./condition";
3
+ export interface ResolvedRule {
4
+ userInput: UserInput;
5
+ ruleName: string;
6
+ ruleId: string;
7
+ conditions?: Condition[];
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -83,12 +83,22 @@ export interface MaterialModel {
83
83
  grossWeight?: Weight & Workflow<number>;
84
84
  dimensions?: Dimensions & Workflow<any>;
85
85
  /**
86
- * Stakeholder reference, owning shipper entity.
87
- * Each materialNumber can only be uniquely matched to the same shipper
88
- * there might be more than one materialNumber for different recipients!
86
+ * Use shippers instead.
87
+ * @deprecated
89
88
  */
90
89
  shipper?: string;
90
+ /**
91
+ * Use shippers instead.
92
+ * @deprecated
93
+ */
91
94
  shipperId?: string;
95
+ /**
96
+ * Used for matching by shipper stakeholder
97
+ */
98
+ shippers?: {
99
+ id: string;
100
+ name: string;
101
+ }[];
92
102
  /**
93
103
  * Used for matching item.countryOfOrigin / aggregated.fromAddress (fallback), only for import cases
94
104
  */
@@ -149,10 +159,6 @@ export interface MaterialModel {
149
159
  * Owning obligater, if any. Used for matching by tariff number.
150
160
  */
151
161
  obligaterId?: string;
152
- /**
153
- * Different materialNumbers might be applied for different recipients.
154
- * The recipientId refers to a stakeholder.
155
- */
156
162
  recipients?: {
157
163
  id: string;
158
164
  name: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  /**
3
2
  * Information about an uploaded file. Used by multer package.
4
3
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "digicust_types",
3
- "version": "1.8.384",
3
+ "version": "1.8.386",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -1,18 +0,0 @@
1
- import { DocumentCodeSource } from "./document-code-source.enum";
2
- import { ConditionModel } from "../execution-strategy/condition.model";
3
- export interface DocumentCodeSourceContext {
4
- source: DocumentCodeSource;
5
- taricQueryParams?: {
6
- itemId?: string;
7
- countryCode?: string;
8
- procedureMode?: string;
9
- certificateType?: string;
10
- };
11
- ruleMetadata?: {
12
- name?: string;
13
- id?: string;
14
- conditions?: ConditionModel[];
15
- };
16
- computationParams?: any;
17
- materialId?: string;
18
- }