digicust_types 1.7.28 → 1.7.32
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/contracts/start-hs-classification.dto.d.ts +3 -0
- package/lib/contracts/start-hs-classification.dto.js +2 -0
- package/lib/models/common/checkpoint.model.d.ts +21 -0
- package/lib/models/common/checkpoint.model.js +8 -0
- package/lib/models/common/country.model.d.ts +4 -0
- package/lib/models/common/country.model.js +2 -0
- package/lib/models/common/event.model.d.ts +21 -0
- package/lib/models/common/event.model.js +8 -0
- package/lib/models/common/super.d.ts +7 -0
- package/lib/models/common/super.js +2 -0
- package/lib/models/digicust/QueueWorkspaceModel.model.d.ts +12 -0
- package/lib/models/digicust/QueueWorkspaceModel.model.js +2 -0
- package/lib/models/digicust/case.model.d.ts +3 -2
- package/lib/models/digicust/execution-strategy.model.d.ts +14 -0
- package/lib/models/digicust/line-item.model.js +4 -2
- package/lib/models/digicust/mean-of-transportation.model.d.ts +1 -0
- package/lib/models/digicust/module.model.d.ts +16 -3
- package/lib/models/digicust/module.model.js +13 -4
- package/lib/models/digicust/notification.model.d.ts +13 -0
- package/lib/models/digicust/notification.model.js +2 -0
- package/lib/models/digicust/project.model.d.ts +2 -5
- package/lib/models/digicust/shipping-type.model.d.ts +25 -0
- package/lib/models/digicust/shipping-type.model.js +21 -0
- package/lib/models/digicust/submission-case-model.d.ts +2 -16
- package/lib/models/digicust/submission-case-model.js +0 -10
- package/lib/models/digicust/transit-item.model.js +4 -2
- package/lib/models/digicust/type-of-business.model.d.ts +2 -0
- package/package.json +1 -1
- package/lib/.DS_Store +0 -0
- package/lib/models/digicust/classification.model.d.ts +0 -14
- package/lib/models/digicust/classification.model.js +0 -10
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface Checkpoint {
|
|
2
|
+
id?: string;
|
|
3
|
+
customerId?: string;
|
|
4
|
+
context?: string;
|
|
5
|
+
type?: "webhook" | "email";
|
|
6
|
+
}
|
|
7
|
+
export declare enum CheckPointType {
|
|
8
|
+
webhook = "webhook",
|
|
9
|
+
mail = "email"
|
|
10
|
+
}
|
|
11
|
+
export interface WebhookCheckpoint extends Checkpoint {
|
|
12
|
+
type: "webhook";
|
|
13
|
+
url?: string;
|
|
14
|
+
method?: "GET" | "POST" | "PATCH" | "DELETE" | "PUT";
|
|
15
|
+
body?: any;
|
|
16
|
+
}
|
|
17
|
+
export interface EmailCheckpoint extends Checkpoint {
|
|
18
|
+
type: "email";
|
|
19
|
+
emailAddress?: string;
|
|
20
|
+
body?: any;
|
|
21
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CheckPointType = void 0;
|
|
4
|
+
var CheckPointType;
|
|
5
|
+
(function (CheckPointType) {
|
|
6
|
+
CheckPointType["webhook"] = "webhook";
|
|
7
|
+
CheckPointType["mail"] = "email";
|
|
8
|
+
})(CheckPointType = exports.CheckPointType || (exports.CheckPointType = {}));
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface Event {
|
|
2
|
+
id?: string;
|
|
3
|
+
customerId?: string;
|
|
4
|
+
context?: string;
|
|
5
|
+
type?: "webhook" | "email";
|
|
6
|
+
}
|
|
7
|
+
export declare enum EventType {
|
|
8
|
+
webhook = "webhook",
|
|
9
|
+
mail = "email"
|
|
10
|
+
}
|
|
11
|
+
export interface WebhookEvent extends Event {
|
|
12
|
+
type: "webhook";
|
|
13
|
+
url?: string;
|
|
14
|
+
method?: "GET" | "POST" | "PATCH" | "DELETE" | "PUT";
|
|
15
|
+
body?: any;
|
|
16
|
+
}
|
|
17
|
+
export interface EmailEvent extends Event {
|
|
18
|
+
type: "email";
|
|
19
|
+
emailAddress?: string;
|
|
20
|
+
body?: any;
|
|
21
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EventType = void 0;
|
|
4
|
+
var EventType;
|
|
5
|
+
(function (EventType) {
|
|
6
|
+
EventType["webhook"] = "webhook";
|
|
7
|
+
EventType["mail"] = "email";
|
|
8
|
+
})(EventType = exports.EventType || (exports.EventType = {}));
|
|
@@ -6,6 +6,7 @@ import { Meta } from "../common/meta";
|
|
|
6
6
|
import { UserModel } from "./user.model";
|
|
7
7
|
import { StatsCaseModel } from "./stats-case.model";
|
|
8
8
|
import { ExecutionStrategy } from "./execution-strategy.model";
|
|
9
|
+
import { ModuleCategory, ModuleType } from ".";
|
|
9
10
|
/**
|
|
10
11
|
* Model used for any kind of customs case.
|
|
11
12
|
*/
|
|
@@ -14,8 +15,8 @@ export interface CaseModel {
|
|
|
14
15
|
customerId?: string;
|
|
15
16
|
projectId?: string;
|
|
16
17
|
moduleId?: string;
|
|
17
|
-
module?:
|
|
18
|
-
moduleCategory?:
|
|
18
|
+
module?: ModuleType;
|
|
19
|
+
moduleCategory?: ModuleCategory;
|
|
19
20
|
/** custom flags */
|
|
20
21
|
flags?: {
|
|
21
22
|
[key: string]: string;
|
|
@@ -41,12 +41,26 @@ export interface ExecutionStrategy {
|
|
|
41
41
|
active?: boolean;
|
|
42
42
|
research?: boolean;
|
|
43
43
|
};
|
|
44
|
+
/** @deprecated */
|
|
44
45
|
dakosySubmission?: {
|
|
45
46
|
active?: boolean;
|
|
46
47
|
};
|
|
47
48
|
dataIntegration?: {
|
|
48
49
|
active?: boolean;
|
|
49
50
|
};
|
|
51
|
+
submission?: {
|
|
52
|
+
active?: boolean;
|
|
53
|
+
vendor?: "dakosy";
|
|
54
|
+
config?: {
|
|
55
|
+
"sftp-password"?: string;
|
|
56
|
+
"sftp-login-name"?: string;
|
|
57
|
+
"sftp-port"?: string;
|
|
58
|
+
"sftp-dns-name"?: string;
|
|
59
|
+
"sftp-inbound"?: string;
|
|
60
|
+
"sftp-outbound"?: string;
|
|
61
|
+
"partner-id"?: string;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
50
64
|
events: Event[];
|
|
51
65
|
automated?: boolean;
|
|
52
66
|
}
|
|
@@ -113,10 +113,12 @@ var condenseLineItem = function (lineItem) {
|
|
|
113
113
|
? common_1.condenseMeta(lineItem.preferenceState)
|
|
114
114
|
: lineItem.preferenceState,
|
|
115
115
|
documents: lineItem.documents
|
|
116
|
-
? (_a = lineItem.documents) === null || _a === void 0 ? void 0 : _a.map(function (document) { return digicust_document_model_1.condenseDocument(document); })
|
|
116
|
+
? (_a = lineItem.documents) === null || _a === void 0 ? void 0 : _a.map(function (document) { return digicust_document_model_1.condenseDocument(document); })
|
|
117
|
+
: lineItem.documents,
|
|
117
118
|
adjustments: lineItem.adjustments,
|
|
118
119
|
containers: lineItem.containers
|
|
119
|
-
? (_b = lineItem.containers) === null || _b === void 0 ? void 0 : _b.map(function (container) { return common_1.condenseMeta(container); })
|
|
120
|
+
? (_b = lineItem.containers) === null || _b === void 0 ? void 0 : _b.map(function (container) { return common_1.condenseMeta(container); })
|
|
121
|
+
: lineItem.containers,
|
|
120
122
|
reference: lineItem.reference
|
|
121
123
|
? common_1.condenseMeta(lineItem.reference)
|
|
122
124
|
: lineItem.reference,
|
|
@@ -49,9 +49,9 @@ export interface ModuleModel {
|
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
51
|
export declare enum ModuleCategory {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
declaration = "Declaration",
|
|
53
|
+
preDeclaration = "Pre Declaration",
|
|
54
|
+
simplifiedProcedure = "Simplified Procedure",
|
|
55
55
|
writeupProcedure = "Writeup Procedure"
|
|
56
56
|
}
|
|
57
57
|
export declare enum ModuleType {
|
|
@@ -60,3 +60,16 @@ export declare enum ModuleType {
|
|
|
60
60
|
warehouseProcedure = "Warehouse Procedure",
|
|
61
61
|
transitProcedure = "Transit Procedure"
|
|
62
62
|
}
|
|
63
|
+
export interface DataModulesModel {
|
|
64
|
+
id?: string;
|
|
65
|
+
type?: DataModuleType;
|
|
66
|
+
active?: boolean;
|
|
67
|
+
}
|
|
68
|
+
export declare enum DataModuleType {
|
|
69
|
+
dexter = "dexter",
|
|
70
|
+
dataClassifier = "Data Classifier",
|
|
71
|
+
statistics = "Statistics",
|
|
72
|
+
productClassification = "Product Classification",
|
|
73
|
+
masterData = "Master Data",
|
|
74
|
+
stakeholderData = "Stakeholder Data"
|
|
75
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ModuleType = exports.ModuleCategory = void 0;
|
|
3
|
+
exports.DataModuleType = exports.ModuleType = exports.ModuleCategory = void 0;
|
|
4
4
|
var ModuleCategory;
|
|
5
5
|
(function (ModuleCategory) {
|
|
6
|
-
ModuleCategory["
|
|
7
|
-
ModuleCategory["
|
|
8
|
-
ModuleCategory["
|
|
6
|
+
ModuleCategory["declaration"] = "Declaration";
|
|
7
|
+
ModuleCategory["preDeclaration"] = "Pre Declaration";
|
|
8
|
+
ModuleCategory["simplifiedProcedure"] = "Simplified Procedure";
|
|
9
9
|
ModuleCategory["writeupProcedure"] = "Writeup Procedure";
|
|
10
10
|
})(ModuleCategory = exports.ModuleCategory || (exports.ModuleCategory = {}));
|
|
11
11
|
var ModuleType;
|
|
@@ -15,3 +15,12 @@ var ModuleType;
|
|
|
15
15
|
ModuleType["warehouseProcedure"] = "Warehouse Procedure";
|
|
16
16
|
ModuleType["transitProcedure"] = "Transit Procedure";
|
|
17
17
|
})(ModuleType = exports.ModuleType || (exports.ModuleType = {}));
|
|
18
|
+
var DataModuleType;
|
|
19
|
+
(function (DataModuleType) {
|
|
20
|
+
DataModuleType["dexter"] = "dexter";
|
|
21
|
+
DataModuleType["dataClassifier"] = "Data Classifier";
|
|
22
|
+
DataModuleType["statistics"] = "Statistics";
|
|
23
|
+
DataModuleType["productClassification"] = "Product Classification";
|
|
24
|
+
DataModuleType["masterData"] = "Master Data";
|
|
25
|
+
DataModuleType["stakeholderData"] = "Stakeholder Data";
|
|
26
|
+
})(DataModuleType = exports.DataModuleType || (exports.DataModuleType = {}));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Information about a notification Model
|
|
3
|
+
*/
|
|
4
|
+
export interface NotificationsModel {
|
|
5
|
+
id?: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
status?: string;
|
|
8
|
+
message?: string;
|
|
9
|
+
link?: string;
|
|
10
|
+
consumer?: string;
|
|
11
|
+
addresseeType?: "customer" | "project" | "user";
|
|
12
|
+
addresseeId?: string;
|
|
13
|
+
}
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
import { ModuleModel } from "
|
|
2
|
-
import { QueueWorkspaceModel } from "./queue.model";
|
|
1
|
+
import { DataModulesModel, ModuleModel, QueueWorkspaceModel } from ".";
|
|
3
2
|
/**
|
|
4
3
|
* Project Model provides all the data related to a project and customer
|
|
5
4
|
*/
|
|
6
5
|
export interface ProjectModel {
|
|
7
6
|
id?: string;
|
|
8
7
|
customerId?: string;
|
|
9
|
-
/**
|
|
10
|
-
* deprecated
|
|
11
|
-
*/
|
|
12
8
|
projectId?: string;
|
|
9
|
+
dataModules?: DataModulesModel[];
|
|
13
10
|
modules?: ModuleModel[];
|
|
14
11
|
workspaces?: QueueWorkspaceModel[];
|
|
15
12
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Meta } from "../common";
|
|
2
|
+
export interface ShippingType extends Meta<ShippingMode> {
|
|
3
|
+
/** unique identifier of the transportation mean */
|
|
4
|
+
code?: string;
|
|
5
|
+
name?: string;
|
|
6
|
+
type?: ShippingTypePlace;
|
|
7
|
+
/** ISO Code of nationality of the mean */
|
|
8
|
+
countryCode?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare enum ShippingMode {
|
|
11
|
+
maritime = "Maritime",
|
|
12
|
+
rail = "Rail",
|
|
13
|
+
road = "Road",
|
|
14
|
+
air = "Air",
|
|
15
|
+
postal = "Postal",
|
|
16
|
+
fixedInstallations = "FixedInstallations",
|
|
17
|
+
inlandWaterway = "InlandWaterway",
|
|
18
|
+
unknown = "Unknown"
|
|
19
|
+
}
|
|
20
|
+
export declare enum ShippingTypePlace {
|
|
21
|
+
border = "Border",
|
|
22
|
+
arrival = "Arrival",
|
|
23
|
+
departure = "Departure",
|
|
24
|
+
inland = "Inland"
|
|
25
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ShippingTypePlace = exports.ShippingMode = void 0;
|
|
4
|
+
var ShippingMode;
|
|
5
|
+
(function (ShippingMode) {
|
|
6
|
+
ShippingMode["maritime"] = "Maritime";
|
|
7
|
+
ShippingMode["rail"] = "Rail";
|
|
8
|
+
ShippingMode["road"] = "Road";
|
|
9
|
+
ShippingMode["air"] = "Air";
|
|
10
|
+
ShippingMode["postal"] = "Postal";
|
|
11
|
+
ShippingMode["fixedInstallations"] = "FixedInstallations";
|
|
12
|
+
ShippingMode["inlandWaterway"] = "InlandWaterway";
|
|
13
|
+
ShippingMode["unknown"] = "Unknown";
|
|
14
|
+
})(ShippingMode = exports.ShippingMode || (exports.ShippingMode = {}));
|
|
15
|
+
var ShippingTypePlace;
|
|
16
|
+
(function (ShippingTypePlace) {
|
|
17
|
+
ShippingTypePlace["border"] = "Border";
|
|
18
|
+
ShippingTypePlace["arrival"] = "Arrival";
|
|
19
|
+
ShippingTypePlace["departure"] = "Departure";
|
|
20
|
+
ShippingTypePlace["inland"] = "Inland";
|
|
21
|
+
})(ShippingTypePlace = exports.ShippingTypePlace || (exports.ShippingTypePlace = {}));
|
|
@@ -1,22 +1,8 @@
|
|
|
1
|
+
import { Meta } from "../common";
|
|
1
2
|
/**
|
|
2
3
|
* Information about the submission at a customs authority
|
|
3
4
|
*/
|
|
4
5
|
export interface CaseSubmissionModel {
|
|
5
|
-
|
|
6
|
+
mrnNumber?: Meta<string>;
|
|
6
7
|
accomplishedAt?: Date;
|
|
7
|
-
procedure?: CaseSubmissionProcedure;
|
|
8
|
-
/** Service that is responsible for this submission */
|
|
9
|
-
service?: string;
|
|
10
|
-
transactions?: {
|
|
11
|
-
dateTime?: Date;
|
|
12
|
-
/** Specifies which type of transaction it is (e.g. 'QuittungEingangsverarbeitung') */
|
|
13
|
-
transactionType?: string;
|
|
14
|
-
content?: any;
|
|
15
|
-
}[];
|
|
16
|
-
}
|
|
17
|
-
export declare enum CaseSubmissionProcedure {
|
|
18
|
-
VersandanmeldungNCTSDE = "VersandanmeldungNCTSDE",
|
|
19
|
-
EingangsanzeigeNCTSDE = "EingangsanzeigeNCTSDE",
|
|
20
|
-
FreierVerkehrAbfertigung = "FreierVerkehrAbfertigung",
|
|
21
|
-
ErgaenzendeAnmeldungFVAVUV = "ErgaenzendeAnmeldungFVAVUV"
|
|
22
8
|
}
|
|
@@ -1,12 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CaseSubmissionProcedure = void 0;
|
|
4
|
-
var CaseSubmissionProcedure;
|
|
5
|
-
(function (CaseSubmissionProcedure) {
|
|
6
|
-
// NCTS DE
|
|
7
|
-
CaseSubmissionProcedure["VersandanmeldungNCTSDE"] = "VersandanmeldungNCTSDE";
|
|
8
|
-
CaseSubmissionProcedure["EingangsanzeigeNCTSDE"] = "EingangsanzeigeNCTSDE";
|
|
9
|
-
// Freier Verkehr
|
|
10
|
-
CaseSubmissionProcedure["FreierVerkehrAbfertigung"] = "FreierVerkehrAbfertigung";
|
|
11
|
-
CaseSubmissionProcedure["ErgaenzendeAnmeldungFVAVUV"] = "ErgaenzendeAnmeldungFVAVUV";
|
|
12
|
-
})(CaseSubmissionProcedure = exports.CaseSubmissionProcedure || (exports.CaseSubmissionProcedure = {}));
|
|
@@ -42,9 +42,11 @@ var condenseTransitLineItem = function (transitItem) {
|
|
|
42
42
|
? common_1.condenseMeta(transitItem.procedure)
|
|
43
43
|
: transitItem.procedure,
|
|
44
44
|
preliminaryDocuments: transitItem.preliminaryDocuments
|
|
45
|
-
? (_a = transitItem.preliminaryDocuments) === null || _a === void 0 ? void 0 : _a.map(function (document) { return digicust_document_model_1.condenseDocument(document); })
|
|
45
|
+
? (_a = transitItem.preliminaryDocuments) === null || _a === void 0 ? void 0 : _a.map(function (document) { return digicust_document_model_1.condenseDocument(document); })
|
|
46
|
+
: transitItem.preliminaryDocuments,
|
|
46
47
|
containers: transitItem.containers
|
|
47
|
-
? (_b = transitItem.containers) === null || _b === void 0 ? void 0 : _b.map(function (container) { return common_1.condenseMeta(container); })
|
|
48
|
+
? (_b = transitItem.containers) === null || _b === void 0 ? void 0 : _b.map(function (container) { return common_1.condenseMeta(container); })
|
|
49
|
+
: transitItem.containers,
|
|
48
50
|
reference: transitItem.reference
|
|
49
51
|
? common_1.condenseMeta(transitItem.reference)
|
|
50
52
|
: transitItem.reference,
|
package/package.json
CHANGED
package/lib/.DS_Store
DELETED
|
Binary file
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Meta } from "../common";
|
|
2
|
-
export interface Classification extends Meta<string> {
|
|
3
|
-
value?: string;
|
|
4
|
-
tariffNumberType?: "HS" | "NC" | "HTS" | "TARIC";
|
|
5
|
-
additionalCodes?: {
|
|
6
|
-
type: "AdditionalCode1" | "AdditionalCode2" | "AdditionalCode3" | "QuotaCode";
|
|
7
|
-
value?: string;
|
|
8
|
-
}[];
|
|
9
|
-
supplementaryUnits?: {
|
|
10
|
-
number?: string;
|
|
11
|
-
typeCode?: string;
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
export declare const condenseClassification: (classification: Classification) => Classification;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.condenseClassification = void 0;
|
|
4
|
-
var condenseClassification = function (classification) {
|
|
5
|
-
return {
|
|
6
|
-
value: classification.value,
|
|
7
|
-
tariffNumberType: classification.tariffNumberType,
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
exports.condenseClassification = condenseClassification;
|