digicust_types 1.8.146 → 1.8.148

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.
@@ -44,6 +44,7 @@ export type TariffWSMessage = {
44
44
  message: string;
45
45
  customer_id: string;
46
46
  project_id: string;
47
+ language: "en" | "de";
47
48
  type?: TariffWSMessageType;
48
49
  number?: string;
49
50
  };
@@ -1,5 +1,5 @@
1
1
  import { CustomsTariffNumberNormalizationSettings, DigicustDocumentType, Event, Money, PackageType, ProcedureMode, Rule, StakeholderModel } from "..";
2
- import { AebSftpConfig, AsycudaSftpConfig, DakosySftpConfig, DbhSftpConfig, DhfSftpConfig, FormatSftpConfig, LdvSftpConfig, BEOConfig } from "./sftp-config.model";
2
+ import { Submission } from "./sftp-config.model";
3
3
  /**
4
4
  * Execution strategies are customer-configurable plans on how to process a specific case.
5
5
  */
@@ -261,7 +261,7 @@ export interface ExecutionStrategy {
261
261
  * @deprecated
262
262
  */
263
263
  isProcessWithDextor?: boolean;
264
- submission?: DakosySftpConfig | AebSftpConfig | DbhSftpConfig | BEOConfig | LdvSftpConfig | DhfSftpConfig | AsycudaSftpConfig | FormatSftpConfig;
264
+ submission?: Submission;
265
265
  events?: Event[];
266
266
  rules?: Rule[];
267
267
  automated?: boolean;
@@ -1,111 +1,97 @@
1
- export interface DakosySftpConfig {
1
+ export declare enum SubmissionVendor {
2
+ none = "none",
3
+ dakosy = "dakosy",
4
+ ldv = "ldv",
5
+ dhf = "dhf",
6
+ asycuda = "asycuda",
7
+ format = "format",
8
+ beo = "beo",
9
+ dbh = "dbh",
10
+ aeb = "aeb",
11
+ cargosoft = "cargosoft",
12
+ mercurio = "mercurio"
13
+ }
14
+ export interface Submission {
2
15
  active?: boolean;
3
- vendor?: "dakosy";
4
- config?: {
5
- "sftp-password"?: string;
6
- "sftp-login-name"?: string;
7
- "sftp-port"?: string;
8
- "sftp-dns-name"?: string;
9
- "sftp-inbound"?: string;
10
- "sftp-outbound"?: string;
11
- "partner-id"?: string;
12
- division?: string;
13
- noDocumentsOnHead?: boolean;
14
- packagesOnFirstLineItemOnly?: boolean;
15
- aggregateItems?: boolean;
16
- template?: string;
17
- ignoreDV1?: boolean;
18
- ignoreToAddress?: boolean;
19
- /** Anmelder ist Empfanger */
20
- enforceImportDeclarantIsRecipient?: boolean;
21
- };
16
+ vendor: SubmissionVendor;
17
+ config: DakosySftpConfig | AebSftpConfig | DbhSftpConfig | BEOConfig | LdvSftpConfig | DhfSftpConfig | AsycudaSftpConfig | FormatSftpConfig;
18
+ }
19
+ export interface DakosySftpConfig {
20
+ "sftp-password"?: string;
21
+ "sftp-login-name"?: string;
22
+ "sftp-port"?: string;
23
+ "sftp-dns-name"?: string;
24
+ "sftp-inbound"?: string;
25
+ "sftp-outbound"?: string;
26
+ "partner-id"?: string;
27
+ division?: string;
28
+ noDocumentsOnHead?: boolean;
29
+ packagesOnFirstLineItemOnly?: boolean;
30
+ aggregateItems?: boolean;
31
+ template?: string;
32
+ ignoreDV1?: boolean;
33
+ ignoreToAddress?: boolean;
34
+ /** Anmelder ist Empfanger */
35
+ enforceImportDeclarantIsRecipient?: boolean;
22
36
  }
23
37
  export interface LdvSftpConfig {
24
- active?: boolean;
25
- vendor?: "ldv";
26
- config?: {
27
- "sftp-password"?: string;
28
- "sftp-login-name"?: string;
29
- "sftp-port"?: string;
30
- "sftp-dns-name"?: string;
31
- "sftp-inbound"?: string;
32
- };
38
+ "sftp-password"?: string;
39
+ "sftp-login-name"?: string;
40
+ "sftp-port"?: string;
41
+ "sftp-dns-name"?: string;
42
+ "sftp-inbound"?: string;
33
43
  }
34
44
  export interface DhfSftpConfig {
35
- active?: boolean;
36
- vendor?: "dhf";
37
- config?: {
38
- "sftp-password"?: string;
39
- "sftp-login-name"?: string;
40
- "sftp-port"?: string;
41
- "sftp-dns-name"?: string;
42
- "sftp-inbound"?: string;
43
- };
45
+ "sftp-password"?: string;
46
+ "sftp-login-name"?: string;
47
+ "sftp-port"?: string;
48
+ "sftp-dns-name"?: string;
49
+ "sftp-inbound"?: string;
44
50
  }
45
51
  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
- };
52
+ "sftp-password"?: string;
53
+ "sftp-login-name"?: string;
54
+ "sftp-port"?: string;
55
+ "sftp-dns-name"?: string;
56
+ "sftp-inbound"?: string;
55
57
  }
56
58
  export interface FormatSftpConfig {
57
- active?: boolean;
58
- vendor?: "format";
59
- config?: {
60
- "sftp-password"?: string;
61
- "sftp-login-name"?: string;
62
- "sftp-port"?: string;
63
- "sftp-dns-name"?: string;
64
- "sftp-inbound"?: string;
65
- /** Mandantennummer */
66
- "client-code"?: string;
67
- };
59
+ "sftp-password"?: string;
60
+ "sftp-login-name"?: string;
61
+ "sftp-port"?: string;
62
+ "sftp-dns-name"?: string;
63
+ "sftp-inbound"?: string;
64
+ /** Mandantennummer */
65
+ "client-code"?: string;
68
66
  }
69
67
  export interface BEOConfig {
70
- active?: boolean;
71
- vendor?: "beo";
72
- config?: {
73
- token?: string;
74
- /** Kundennummer */
75
- "customer-code"?: string;
76
- /** mandantId */
77
- "client-code"?: string;
78
- username?: string;
79
- password?: string;
80
- };
68
+ token?: string;
69
+ /** Kundennummer */
70
+ "customer-code"?: string;
71
+ /** mandantId */
72
+ "client-code"?: string;
73
+ username?: string;
74
+ password?: string;
81
75
  }
82
76
  export interface DbhSftpConfig {
83
- active?: boolean;
84
- vendor?: "dbh";
85
- config?: {
86
- "client-code"?: string;
87
- "user-name"?: string;
88
- password?: string;
89
- endpoint?: string;
90
- template?: string;
91
- aggregateItems?: boolean;
92
- duplicateBTIsInAdditionalInformationField?: boolean;
93
- aggregateFreightAndGoodsInvoices?: boolean;
94
- addStatisticalValue?: boolean;
95
- hideItemInvoiceValue?: boolean;
96
- };
77
+ "client-code"?: string;
78
+ "user-name"?: string;
79
+ password?: string;
80
+ endpoint?: string;
81
+ template?: string;
82
+ aggregateItems?: boolean;
83
+ duplicateBTIsInAdditionalInformationField?: boolean;
84
+ aggregateFreightAndGoodsInvoices?: boolean;
85
+ addStatisticalValue?: boolean;
86
+ hideItemInvoiceValue?: boolean;
97
87
  }
98
88
  export interface AebSftpConfig {
99
- active?: boolean;
100
- vendor?: "aeb";
101
- config?: {
102
- "client-name"?: string;
103
- "user-name"?: string;
104
- password?: string;
105
- endpoint?: string;
106
- "client-system-id"?: string;
107
- "client-ident-code"?: string;
108
- profile?: string;
109
- organizationalUnit?: string;
110
- };
89
+ "client-name"?: string;
90
+ "user-name"?: string;
91
+ password?: string;
92
+ endpoint?: string;
93
+ "client-system-id"?: string;
94
+ "client-ident-code"?: string;
95
+ profile?: string;
96
+ organizationalUnit?: string;
111
97
  }
@@ -1,2 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SubmissionVendor = void 0;
4
+ var SubmissionVendor;
5
+ (function (SubmissionVendor) {
6
+ SubmissionVendor["none"] = "none";
7
+ SubmissionVendor["dakosy"] = "dakosy";
8
+ SubmissionVendor["ldv"] = "ldv";
9
+ SubmissionVendor["dhf"] = "dhf";
10
+ SubmissionVendor["asycuda"] = "asycuda";
11
+ SubmissionVendor["format"] = "format";
12
+ SubmissionVendor["beo"] = "beo";
13
+ SubmissionVendor["dbh"] = "dbh";
14
+ SubmissionVendor["aeb"] = "aeb";
15
+ SubmissionVendor["cargosoft"] = "cargosoft";
16
+ SubmissionVendor["mercurio"] = "mercurio";
17
+ })(SubmissionVendor || (exports.SubmissionVendor = SubmissionVendor = {}));
package/package.json CHANGED
@@ -1,49 +1,49 @@
1
- {
2
- "name": "digicust_types",
3
- "version": "1.8.146",
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.148",
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
+ }