digicust_types 1.6.180 → 1.7.2
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/common/frontend-fields.model.d.ts +1 -1
- package/lib/models/digicust/classification.model.d.ts +14 -0
- package/lib/models/digicust/classification.model.js +10 -0
- package/lib/models/digicust/customer.model.d.ts +1 -0
- package/lib/models/digicust/index.d.ts +1 -0
- package/lib/models/digicust/index.js +2 -0
- package/lib/models/digicust/line-item.model.js +2 -4
- package/lib/models/digicust/membership.model.d.ts +7 -0
- package/lib/{contracts/start-hs-classification.dto.js → models/digicust/membership.model.js} +0 -0
- package/lib/models/digicust/submission-case-model.d.ts +16 -2
- package/lib/models/digicust/submission-case-model.js +10 -0
- package/package.json +1 -1
- package/lib/contracts/start-hs-classification.dto.d.ts +0 -3
- package/lib/models/common/checkpoint.model.d.ts +0 -21
- package/lib/models/common/checkpoint.model.js +0 -8
- package/lib/models/common/country.model.d.ts +0 -4
- package/lib/models/common/country.model.js +0 -2
- package/lib/models/common/event.model.d.ts +0 -21
- package/lib/models/common/event.model.js +0 -8
- package/lib/models/common/super.d.ts +0 -7
- package/lib/models/common/super.js +0 -2
- package/lib/models/digicust/QueueWorkspaceModel.model.d.ts +0 -12
- package/lib/models/digicust/QueueWorkspaceModel.model.js +0 -2
- package/lib/models/digicust/notification.model.d.ts +0 -13
- package/lib/models/digicust/notification.model.js +0 -2
- package/lib/models/digicust/shipping-type.model.d.ts +0 -25
- package/lib/models/digicust/shipping-type.model.js +0 -21
|
@@ -0,0 +1,14 @@
|
|
|
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;
|
|
@@ -0,0 +1,10 @@
|
|
|
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;
|
|
@@ -59,3 +59,5 @@ __exportStar(require("./frontend-mapping.model"), exports);
|
|
|
59
59
|
__exportStar(require("./queue.model"), exports);
|
|
60
60
|
__exportStar(require("./masterdata"), exports);
|
|
61
61
|
__exportStar(require("./extractions"), exports);
|
|
62
|
+
// membership
|
|
63
|
+
__exportStar(require("./membership.model"), exports);
|
|
@@ -111,12 +111,10 @@ var condenseLineItem = function (lineItem) {
|
|
|
111
111
|
units: lineItem.units,
|
|
112
112
|
preferences: lineItem.preferences,
|
|
113
113
|
documents: lineItem.documents
|
|
114
|
-
? (_a = lineItem.documents) === null || _a === void 0 ? void 0 : _a.map(function (document) { return digicust_document_model_1.condenseDocument(document); })
|
|
115
|
-
: lineItem.documents,
|
|
114
|
+
? (_a = lineItem.documents) === null || _a === void 0 ? void 0 : _a.map(function (document) { return digicust_document_model_1.condenseDocument(document); }) : lineItem.documents,
|
|
116
115
|
adjustments: lineItem.adjustments,
|
|
117
116
|
containers: lineItem.containers
|
|
118
|
-
? (_b = lineItem.containers) === null || _b === void 0 ? void 0 : _b.map(function (container) { return common_1.condenseMeta(container); })
|
|
119
|
-
: lineItem.containers,
|
|
117
|
+
? (_b = lineItem.containers) === null || _b === void 0 ? void 0 : _b.map(function (container) { return common_1.condenseMeta(container); }) : lineItem.containers,
|
|
120
118
|
reference: lineItem.reference
|
|
121
119
|
? common_1.condenseMeta(lineItem.reference)
|
|
122
120
|
: lineItem.reference,
|
package/lib/{contracts/start-hs-classification.dto.js → models/digicust/membership.model.js}
RENAMED
|
File without changes
|
|
@@ -1,8 +1,22 @@
|
|
|
1
|
-
import { Meta } from "../common";
|
|
2
1
|
/**
|
|
3
2
|
* Information about the submission at a customs authority
|
|
4
3
|
*/
|
|
5
4
|
export interface CaseSubmissionModel {
|
|
6
|
-
|
|
5
|
+
id?: string;
|
|
7
6
|
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"
|
|
8
22
|
}
|
|
@@ -1,2 +1,12 @@
|
|
|
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 = {}));
|
package/package.json
CHANGED
|
@@ -1,21 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
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 = {}));
|
|
@@ -1,21 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
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 = {}));
|
|
@@ -1,13 +0,0 @@
|
|
|
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,25 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
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 = {}));
|