digicust_types 1.8.148 → 1.8.149

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.
@@ -1,5 +1,5 @@
1
1
  import { CustomsTariffNumberNormalizationSettings, DigicustDocumentType, Event, Money, PackageType, ProcedureMode, Rule, StakeholderModel } from "..";
2
- import { Submission } from "./sftp-config.model";
2
+ import { AebSftpConfig, AsycudaSftpConfig, DakosySftpConfig, DbhSftpConfig, DhfSftpConfig, FormatSftpConfig, LdvSftpConfig, BEOConfig } from "./sftp-config.model";
3
3
  /**
4
4
  * Execution strategies are customer-configurable plans on how to process a specific case.
5
5
  */
@@ -90,7 +90,7 @@ export interface ExecutionStrategy {
90
90
  foreignFreightCostRate?: number;
91
91
  freightCostCalculation?: {
92
92
  active?: boolean;
93
- strategy?: "default" | "austriaWeightDependent" | "packageDependent";
93
+ strategy?: "default" | "austriaWeightDependent" | "packageDependent" | "distanceDependent";
94
94
  /** if strategy = packageDependent */
95
95
  packagePrice?: Money;
96
96
  priority?: "fallback" | "override";
@@ -261,7 +261,7 @@ export interface ExecutionStrategy {
261
261
  * @deprecated
262
262
  */
263
263
  isProcessWithDextor?: boolean;
264
- submission?: Submission;
264
+ submission?: DakosySftpConfig | AebSftpConfig | DbhSftpConfig | BEOConfig | LdvSftpConfig | DhfSftpConfig | AsycudaSftpConfig | FormatSftpConfig;
265
265
  events?: Event[];
266
266
  rules?: Rule[];
267
267
  automated?: boolean;
@@ -1,97 +1,111 @@
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 {
15
- active?: boolean;
16
- vendor: SubmissionVendor;
17
- config: DakosySftpConfig | AebSftpConfig | DbhSftpConfig | BEOConfig | LdvSftpConfig | DhfSftpConfig | AsycudaSftpConfig | FormatSftpConfig;
18
- }
19
1
  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;
2
+ 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
+ };
36
22
  }
37
23
  export interface LdvSftpConfig {
38
- "sftp-password"?: string;
39
- "sftp-login-name"?: string;
40
- "sftp-port"?: string;
41
- "sftp-dns-name"?: string;
42
- "sftp-inbound"?: string;
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
+ };
43
33
  }
44
34
  export interface DhfSftpConfig {
45
- "sftp-password"?: string;
46
- "sftp-login-name"?: string;
47
- "sftp-port"?: string;
48
- "sftp-dns-name"?: string;
49
- "sftp-inbound"?: string;
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
+ };
50
44
  }
51
45
  export interface AsycudaSftpConfig {
52
- "sftp-password"?: string;
53
- "sftp-login-name"?: string;
54
- "sftp-port"?: string;
55
- "sftp-dns-name"?: string;
56
- "sftp-inbound"?: string;
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
+ };
57
55
  }
58
56
  export interface FormatSftpConfig {
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;
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
+ };
66
68
  }
67
69
  export interface BEOConfig {
68
- token?: string;
69
- /** Kundennummer */
70
- "customer-code"?: string;
71
- /** mandantId */
72
- "client-code"?: string;
73
- username?: string;
74
- password?: string;
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
+ };
75
81
  }
76
82
  export interface DbhSftpConfig {
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;
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
+ };
87
97
  }
88
98
  export interface AebSftpConfig {
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;
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
+ };
97
111
  }
@@ -1,17 +1,2 @@
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,6 +1,6 @@
1
1
  {
2
2
  "name": "digicust_types",
3
- "version": "1.8.148",
3
+ "version": "1.8.149",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",