digicust_types 1.8.95 → 1.8.97
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
|
|
1
1
|
import { CustomsTariffNumberNormalizationSettings, DigicustDocumentType, Event, Money, PackageType, ProcedureMode, Rule, StakeholderModel } from "..";
|
2
|
-
import { AebSftpConfig, DakosySftpConfig, DbhSftpConfig, DhfSftpConfig, LdvSftpConfig } from "./sftp-config.model";
|
2
|
+
import { AebSftpConfig, AsycudaSftpConfig, DakosySftpConfig, DbhSftpConfig, DhfSftpConfig, LdvSftpConfig } from "./sftp-config.model";
|
3
3
|
/**
|
4
4
|
* Execution strategies are customer-configurable plans on how to process a specific case.
|
5
5
|
*/
|
@@ -100,6 +100,27 @@ export interface ExecutionStrategy {
|
|
100
100
|
documentCodeEnrichment?: {
|
101
101
|
addNegativeCodings?: boolean;
|
102
102
|
};
|
103
|
+
/**
|
104
|
+
* Custom formattings for the resulting description of line items.
|
105
|
+
* Possible variables are:
|
106
|
+
* - {line-item-description} - The normalized line-item-description from the document. Should always contain a value.
|
107
|
+
* - {line-item-description-short} - The GPT shortened line-item-description. Shortening is only applied if the line-item-description contains more than 4 words, otherwise it will be the original line-item-description
|
108
|
+
* - {material-description} - The material-description from the matched material masterdata (either by material-nr or tariff-nr). Empty if no material is matched, or matching is disabled.
|
109
|
+
* - {enriched-description} - Contains the material-description if it is not empty, or the line-item-description as a fallback value.
|
110
|
+
* - {enriched-description-short} - Contains the material-description if it is not empty, or the shortened-line-item-description as a fallback value.
|
111
|
+
* - {tariff-number-description} - The description of the matched tariff number. If no tariff number is matched or matching is disabled this will be empty.
|
112
|
+
*
|
113
|
+
* All these variables can be combined with an optional separator to include after the variable. This separator will only be printed if the variable is not empty.
|
114
|
+
* Format: {variable}[separator]
|
115
|
+
*
|
116
|
+
* Examples:
|
117
|
+
* {tariff-number-description}[ - ]{enriched-description}
|
118
|
+
* {tariff-number-description}[ - ]{enriched-description-short}
|
119
|
+
* {tariff-number-description}[ - ]{line-item-description}
|
120
|
+
* {material-description}[ - ]{line-item-description}
|
121
|
+
* {enriched-description-short}
|
122
|
+
*/
|
123
|
+
descriptionFormatString?: string;
|
103
124
|
lineItemGrossWeightStrategy?: "default" | "forceToFirstLineItem";
|
104
125
|
};
|
105
126
|
dataValidation?: {
|
@@ -136,7 +157,7 @@ export interface ExecutionStrategy {
|
|
136
157
|
time?: number;
|
137
158
|
};
|
138
159
|
isProcessWithDextor: boolean;
|
139
|
-
submission?: DakosySftpConfig | AebSftpConfig | DbhSftpConfig | LdvSftpConfig | DhfSftpConfig;
|
160
|
+
submission?: DakosySftpConfig | AebSftpConfig | DbhSftpConfig | LdvSftpConfig | DhfSftpConfig | AsycudaSftpConfig;
|
140
161
|
events: Event[];
|
141
162
|
rules: Rule[];
|
142
163
|
automated?: boolean;
|
@@ -42,6 +42,17 @@ export interface DhfSftpConfig {
|
|
42
42
|
"sftp-inbound"?: string;
|
43
43
|
};
|
44
44
|
}
|
45
|
+
export interface AsycudaSftpConfig {
|
46
|
+
active?: boolean;
|
47
|
+
vendor?: "asycuda";
|
48
|
+
config?: {
|
49
|
+
"sftp-password"?: string;
|
50
|
+
"sftp-login-name"?: string;
|
51
|
+
"sftp-port"?: string;
|
52
|
+
"sftp-dns-name"?: string;
|
53
|
+
"sftp-inbound"?: string;
|
54
|
+
};
|
55
|
+
}
|
45
56
|
export interface DbhSftpConfig {
|
46
57
|
active?: boolean;
|
47
58
|
vendor?: "dbh";
|
@@ -22,6 +22,11 @@ export interface CustomsTariffNumberNormalizationSettings {
|
|
22
22
|
itemDescriptionSource?: "description" | "altDescription";
|
23
23
|
hideOriginalItemDescription?: boolean;
|
24
24
|
preferMasterDataDescription?: boolean;
|
25
|
+
/**
|
26
|
+
* Specifies the maximum length of the combined item description (prefix + tariff number description + suffix).
|
27
|
+
* If not set, defaults to 238 characters.
|
28
|
+
*/
|
29
|
+
combinedMaxDescriptionLength?: number;
|
25
30
|
/**
|
26
31
|
* Specifies whether to combine the original item description with the tariff number description.
|
27
32
|
* Only applicable if useAsItemDescription is true.
|
package/package.json
CHANGED
@@ -1,49 +1,49 @@
|
|
1
|
-
{
|
2
|
-
"name": "digicust_types",
|
3
|
-
"version": "1.8.
|
4
|
-
"description": "",
|
5
|
-
"main": "lib/index.js",
|
6
|
-
"types": "lib/index.d.ts",
|
7
|
-
"files": [
|
8
|
-
"lib/**/*"
|
9
|
-
],
|
10
|
-
"scripts": {
|
11
|
-
"build-with-runtime-interfaces": "tsc && `npm bin`/run-for-every-file --src ./lib/ --file '**/*.d.ts' --run \"`npm bin`/ts-interface-builder -i -g -c {{src-file}}\"",
|
12
|
-
"build": "tsc",
|
13
|
-
"build-deploy": "git pull && npm version patch && npm run build && npm publish",
|
14
|
-
"deploy-docs": "npm i && npx typedoc src/index.ts",
|
15
|
-
"lint.fix": "eslint --fix --ext .ts .",
|
16
|
-
"prettier.fix": "prettier --write .",
|
17
|
-
"prepare": "husky install",
|
18
|
-
"lint-staged": "lint-staged"
|
19
|
-
},
|
20
|
-
"repository": {
|
21
|
-
"type": "git",
|
22
|
-
"url": "git+https://github.com/Digicust0406/types.git"
|
23
|
-
},
|
24
|
-
"keywords": [],
|
25
|
-
"author": "Thomas Übellacker",
|
26
|
-
"license": "Proprietary",
|
27
|
-
"bugs": {
|
28
|
-
"url": "https://github.com/Digicust0406/types/issues"
|
29
|
-
},
|
30
|
-
"homepage": "https://github.com/Digicust0406/types#readme",
|
31
|
-
"dependencies": {
|
32
|
-
"typedoc": "^0.25.4"
|
33
|
-
},
|
34
|
-
"devDependencies": {
|
35
|
-
"@types/node": "^20.10.2",
|
36
|
-
"@typescript-eslint/eslint-plugin": "^6.13.1",
|
37
|
-
"@typescript-eslint/parser": "^6.13.1",
|
38
|
-
"eslint": "^8.55.0",
|
39
|
-
"eslint-config-airbnb-typescript": "^17.1.0",
|
40
|
-
"eslint-config-prettier": "^9.1.0",
|
41
|
-
"eslint-plugin-import": "^2.29.0",
|
42
|
-
"eslint-plugin-node": "^11.1.0",
|
43
|
-
"eslint-plugin-prettier": "^5.0.1",
|
44
|
-
"husky": "^8.0.3",
|
45
|
-
"lint-staged": "^15.1.0",
|
46
|
-
"prettier": "^3.1.0",
|
47
|
-
"typescript": "^5.3.2"
|
48
|
-
}
|
49
|
-
}
|
1
|
+
{
|
2
|
+
"name": "digicust_types",
|
3
|
+
"version": "1.8.97",
|
4
|
+
"description": "",
|
5
|
+
"main": "lib/index.js",
|
6
|
+
"types": "lib/index.d.ts",
|
7
|
+
"files": [
|
8
|
+
"lib/**/*"
|
9
|
+
],
|
10
|
+
"scripts": {
|
11
|
+
"build-with-runtime-interfaces": "tsc && `npm bin`/run-for-every-file --src ./lib/ --file '**/*.d.ts' --run \"`npm bin`/ts-interface-builder -i -g -c {{src-file}}\"",
|
12
|
+
"build": "tsc",
|
13
|
+
"build-deploy": "git pull && npm version patch && npm run build && npm publish",
|
14
|
+
"deploy-docs": "npm i && npx typedoc src/index.ts",
|
15
|
+
"lint.fix": "eslint --fix --ext .ts .",
|
16
|
+
"prettier.fix": "prettier --write .",
|
17
|
+
"prepare": "husky install",
|
18
|
+
"lint-staged": "lint-staged"
|
19
|
+
},
|
20
|
+
"repository": {
|
21
|
+
"type": "git",
|
22
|
+
"url": "git+https://github.com/Digicust0406/types.git"
|
23
|
+
},
|
24
|
+
"keywords": [],
|
25
|
+
"author": "Thomas Übellacker",
|
26
|
+
"license": "Proprietary",
|
27
|
+
"bugs": {
|
28
|
+
"url": "https://github.com/Digicust0406/types/issues"
|
29
|
+
},
|
30
|
+
"homepage": "https://github.com/Digicust0406/types#readme",
|
31
|
+
"dependencies": {
|
32
|
+
"typedoc": "^0.25.4"
|
33
|
+
},
|
34
|
+
"devDependencies": {
|
35
|
+
"@types/node": "^20.10.2",
|
36
|
+
"@typescript-eslint/eslint-plugin": "^6.13.1",
|
37
|
+
"@typescript-eslint/parser": "^6.13.1",
|
38
|
+
"eslint": "^8.55.0",
|
39
|
+
"eslint-config-airbnb-typescript": "^17.1.0",
|
40
|
+
"eslint-config-prettier": "^9.1.0",
|
41
|
+
"eslint-plugin-import": "^2.29.0",
|
42
|
+
"eslint-plugin-node": "^11.1.0",
|
43
|
+
"eslint-plugin-prettier": "^5.0.1",
|
44
|
+
"husky": "^8.0.3",
|
45
|
+
"lint-staged": "^15.1.0",
|
46
|
+
"prettier": "^3.1.0",
|
47
|
+
"typescript": "^5.3.2"
|
48
|
+
}
|
49
|
+
}
|