digicust_types 1.8.319 → 1.8.320
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/models/digicust/documents/document-code-derivation.d.ts +18 -0
- package/lib/models/digicust/documents/document-code-derivation.js +2 -0
- package/lib/models/digicust/documents/document-code-source-context.d.ts +6 -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
@@ -0,0 +1,18 @@
|
|
1
|
+
import { DocumentCodeSource } from "./document-code-source.enum";
|
2
|
+
import { Condition } from "../execution-strategy/condition";
|
3
|
+
export interface DocumentCodeDerivation {
|
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?: Condition[];
|
15
|
+
};
|
16
|
+
computationParams?: any;
|
17
|
+
materialId?: string;
|
18
|
+
}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { DocumentCodeSource } from "./document-code-source.enum";
|
2
|
+
import { ConditionModel } from "../execution-strategy/condition.model";
|
2
3
|
export interface DocumentCodeSourceContext {
|
3
4
|
source: DocumentCodeSource;
|
4
5
|
taricQueryParams?: {
|
@@ -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?: ConditionModel[];
|
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
|
}
|