digicust_types 1.8.319 → 1.8.321
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/models/digicust/case/case.model.d.ts +4 -0
- package/lib/models/digicust/case/stats-case.model.d.ts +12 -0
- package/lib/models/digicust/documents/{document-code-source-context.d.ts → document-code-derivation.d.ts} +7 -1
- package/lib/models/digicust/documents/document-code-derivation.js +2 -0
- package/lib/models/digicust/documents/document-code.model.d.ts +2 -2
- package/lib/models/digicust/documents/index.d.ts +1 -1
- package/lib/models/digicust/documents/index.js +1 -1
- package/lib/models/digicust/execution-strategy/condition.d.ts +7 -0
- package/lib/models/digicust/execution-strategy/condition.js +2 -0
- 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 +2 -7
- package/package.json +1 -1
- /package/lib/models/digicust/{documents/document-code-source-context.js → case/stats-case.model.js} +0 -0
@@ -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
|
-
|
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
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { DigicustDocumentType,
|
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?:
|
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-
|
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-
|
33
|
+
__exportStar(require("./document-code-derivation"), exports);
|
@@ -1,14 +1,9 @@
|
|
1
1
|
import { UserInput } from "../documents";
|
2
|
-
import {
|
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
/package/lib/models/digicust/{documents/document-code-source-context.js → case/stats-case.model.js}
RENAMED
File without changes
|