digicust_types 1.8.327 → 1.8.328
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.
- package/lib/models/digicust/documents/document-code-source-context.d.ts +18 -0
- package/lib/models/digicust/documents/document-types/customs-service-instructions.model.d.ts +45 -3
- package/lib/models/digicust/multerfile.model.d.ts +0 -1
- package/package.json +49 -49
- package/lib/models/digicust/case/stats-case.model.d.ts +0 -12
- /package/lib/models/digicust/{case/stats-case.model.js → documents/document-code-source-context.js} +0 -0
@@ -0,0 +1,18 @@
|
|
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
|
+
}
|
package/lib/models/digicust/documents/document-types/customs-service-instructions.model.d.ts
CHANGED
@@ -1,10 +1,21 @@
|
|
1
1
|
import { CustomsOffice, CustomsTariffNumber } from "../../customs";
|
2
|
-
import { DateTimeModel, Money, Weight } from "../../measures";
|
3
|
-
import { MeanOfTransportation, Package } from "../../transportation";
|
2
|
+
import { AddressModel, DateTimeModel, Money, Weight } from "../../measures";
|
3
|
+
import { IncotermModel, MeanOfTransportation, Package } from "../../transportation";
|
4
4
|
import { DigicustDocumentModel } from "./digicust-document.model";
|
5
5
|
import { LineItemContainingDocument } from "../line-item-containing-document";
|
6
|
+
import { CompanyModel } from "../../company";
|
7
|
+
import { Meta } from "../../meta";
|
8
|
+
interface LoadingPlanStop {
|
9
|
+
stopNumber: number;
|
10
|
+
type: "loading" | "unloading";
|
11
|
+
/** Full address for the stop */
|
12
|
+
location: AddressModel;
|
13
|
+
/** Short code reference if applicable */
|
14
|
+
locationCode?: Meta<string>;
|
15
|
+
notes?: Meta<string>;
|
16
|
+
}
|
6
17
|
/**
|
7
|
-
* Identifies
|
18
|
+
* Identifies a customs service instruction document (Speditionsauftrag).
|
8
19
|
*/
|
9
20
|
export interface CustomsServiceInstructions extends DigicustDocumentModel, LineItemContainingDocument {
|
10
21
|
issueDate?: DateTimeModel;
|
@@ -15,4 +26,35 @@ export interface CustomsServiceInstructions extends DigicustDocumentModel, LineI
|
|
15
26
|
packages?: Package[];
|
16
27
|
statisticalValue?: Money;
|
17
28
|
generalCustomsTariffNumber?: CustomsTariffNumber;
|
29
|
+
/**
|
30
|
+
* Structured loading/unloading plan
|
31
|
+
* German: Be- und Entladeplan
|
32
|
+
* Used when multiple stops with full addresses are needed.
|
33
|
+
*/
|
34
|
+
loadingPlan?: {
|
35
|
+
numberOfLoadingStops: number;
|
36
|
+
numberOfUnloadingStops: number;
|
37
|
+
stops: LoadingPlanStop[];
|
38
|
+
};
|
39
|
+
/**
|
40
|
+
* Transport disclaimer flags
|
41
|
+
* German: SLVS-Verzichtskunde
|
42
|
+
*/
|
43
|
+
slvsWaiver?: Meta<boolean>;
|
44
|
+
/**
|
45
|
+
* NEW: Departure and arrival information
|
46
|
+
*/
|
47
|
+
departureDate?: DateTimeModel;
|
48
|
+
arrivalDate?: DateTimeModel;
|
49
|
+
originLocation?: Meta<string>;
|
50
|
+
forwardingNumber?: Meta<string>;
|
51
|
+
shipper?: CompanyModel;
|
52
|
+
recipient?: CompanyModel;
|
53
|
+
forwarder?: CompanyModel;
|
54
|
+
referenceNumber?: Meta<string>;
|
55
|
+
customerNumber?: Meta<string>;
|
56
|
+
orderNumber?: Meta<string>;
|
57
|
+
incoterm?: IncotermModel;
|
58
|
+
placeIncoterm?: AddressModel;
|
18
59
|
}
|
60
|
+
export {};
|
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 && git push",
|
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.328",
|
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 && git push",
|
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,12 +0,0 @@
|
|
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
|
-
}
|
/package/lib/models/digicust/{case/stats-case.model.js → documents/document-code-source-context.js}
RENAMED
File without changes
|