digicust_types 1.7.245 → 1.7.248
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/address.model.d.ts +0 -1
- package/lib/models/common/quantity.model.d.ts +0 -2
- package/lib/models/digicust/case/aggregated-case-data.model.d.ts +1 -0
- package/lib/models/digicust/documents/waybill.model.d.ts +3 -7
- package/lib/models/digicust/execution-strategy/execution-strategy.model.d.ts +3 -0
- package/lib/models/digicust/execution-strategy.model.d.ts +0 -2
- package/lib/models/digicust/execution-strategy.model.js +9 -11
- package/package.json +1 -1
- package/lib/contracts/start-hs-classification.dto.d.ts +0 -3
- package/lib/contracts/start-hs-classification.dto.js +0 -2
- 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/activity.mode.d.ts +0 -18
- package/lib/models/digicust/activity.mode.js +0 -2
- package/lib/models/digicust/company.model.d.ts +0 -4
- package/lib/models/digicust/company.model.js +0 -2
- package/lib/models/digicust/incoterm.enum.d.ts +0 -17
- package/lib/models/digicust/incoterm.enum.js +0 -21
- package/lib/models/digicust/masterdata/stakeholder-type.enum.d.ts +0 -12
- package/lib/models/digicust/masterdata/stakeholder-type.enum.js +0 -16
- 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
- package/lib/models/digicust/submission-case-model.d.ts +0 -8
- package/lib/models/digicust/submission-case-model.js +0 -2
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Meta } from "./meta";
|
|
2
2
|
import { UnitOfMeasurement } from "./unit-of-measurement";
|
|
3
|
-
import { WeightUnit } from "./weight-unit.enum";
|
|
4
3
|
/**
|
|
5
4
|
* Identifies a quantity of something (e.g. 5 kg)
|
|
6
5
|
*/
|
|
@@ -8,7 +7,6 @@ export interface Quantity extends Meta<any> {
|
|
|
8
7
|
amount?: number;
|
|
9
8
|
/** Unit of measurement */
|
|
10
9
|
uom?: UnitOfMeasurement;
|
|
11
|
-
weightUnit?: WeightUnit;
|
|
12
10
|
}
|
|
13
11
|
export declare const condenseQuantity: (meta: Quantity) => {
|
|
14
12
|
amount: number | undefined;
|
|
@@ -72,5 +72,6 @@ export interface AggregatedCaseDataModel {
|
|
|
72
72
|
totalCustomsValue?: Money;
|
|
73
73
|
totalDiscount?: Money;
|
|
74
74
|
totalInsuranceCosts?: Money;
|
|
75
|
+
statisticalValue?: Money;
|
|
75
76
|
}
|
|
76
77
|
export declare const condenseAggregated: (aggregated?: AggregatedCaseDataModel | undefined) => AggregatedCaseDataModel | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DigicustDocumentModel, WaybillTypeModel } from ".";
|
|
1
|
+
import { DigicustDocumentModel, DocumentCode, WaybillTypeModel } from ".";
|
|
2
2
|
import { IncotermModel, Package } from "..";
|
|
3
3
|
import { CompanyModel, Meta, DateTimeModel, Weight, Money, AddressModel, Currency, WeightUnit } from "../..";
|
|
4
4
|
/**
|
|
@@ -6,25 +6,21 @@ import { CompanyModel, Meta, DateTimeModel, Weight, Money, AddressModel, Currenc
|
|
|
6
6
|
*/
|
|
7
7
|
export interface WaybillModel extends DigicustDocumentModel {
|
|
8
8
|
shipper?: CompanyModel;
|
|
9
|
-
recipient?: CompanyModel;
|
|
10
9
|
consignee?: CompanyModel;
|
|
11
|
-
applicant?: CompanyModel;
|
|
12
10
|
waybillNumber?: Meta<string>;
|
|
11
|
+
referenceNumber?: Meta<string[]>;
|
|
13
12
|
issueDate?: DateTimeModel;
|
|
14
13
|
waybillType?: WaybillTypeModel;
|
|
15
|
-
|
|
14
|
+
documentCode?: DocumentCode;
|
|
16
15
|
weightUnit?: Meta<WeightUnit>;
|
|
17
16
|
weight?: Weight;
|
|
18
17
|
netWeight?: Weight;
|
|
19
18
|
totalValue?: Money;
|
|
20
19
|
totalValueExcludingCharges?: Money;
|
|
21
|
-
customsValue?: Money;
|
|
22
20
|
shippingCost?: Money;
|
|
23
21
|
otherPayments?: Money;
|
|
24
|
-
shippingDate?: DateTimeModel;
|
|
25
22
|
incoterm?: IncotermModel;
|
|
26
23
|
placeIncoterm?: AddressModel;
|
|
27
|
-
invoiceNumber?: Meta<string>;
|
|
28
24
|
goodsDescription?: Meta<string>;
|
|
29
25
|
currency?: Meta<Currency>;
|
|
30
26
|
numPackagesShipped?: Meta<number>;
|
|
@@ -52,6 +52,9 @@ export interface ExecutionStrategy {
|
|
|
52
52
|
/** Determines how to deal with additional costs like shipping costs, packing, ... */
|
|
53
53
|
additionalCostsStrategy?: "addToFirstItem" | "splitToAllItems";
|
|
54
54
|
allowDateInOrderNumber?: boolean;
|
|
55
|
+
/** Determines whether or not data from incoming emails are extracted and normalized.
|
|
56
|
+
* @default false */
|
|
57
|
+
normalizeEmailDocuments?: boolean;
|
|
55
58
|
customsTariffNumberNormalizationSettings?: CustomsTariffNumberNormalizationSettings;
|
|
56
59
|
};
|
|
57
60
|
dataValidation?: {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { DigicustDocumentType } from ".";
|
|
2
2
|
import { Event } from "./event.model";
|
|
3
3
|
import { ProcedureMode } from "./procedure.model";
|
|
4
|
-
import { CustomsTariffNumberNormalizationSettings } from "./settings";
|
|
5
4
|
/**
|
|
6
5
|
* Execution strategies are customer-configurable plans on how to process a specific case.
|
|
7
6
|
*/
|
|
@@ -55,7 +54,6 @@ export interface ExecutionStrategy {
|
|
|
55
54
|
/** Determines how to deal with additional costs like shipping costs, packing, ... */
|
|
56
55
|
additionalCostsStrategy?: "addToFirstItem" | "splitToAllItems";
|
|
57
56
|
allowDateInOrderNumber?: boolean;
|
|
58
|
-
customsTariffNumberNormalizationSettings?: CustomsTariffNumberNormalizationSettings;
|
|
59
57
|
};
|
|
60
58
|
dataValidation?: {
|
|
61
59
|
active?: boolean;
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.condenseExecutionStrategy = void 0;
|
|
4
|
-
var condenseExecutionStrategy = function (strategy) {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
: null;
|
|
14
|
-
};
|
|
4
|
+
var condenseExecutionStrategy = function (strategy) { return (strategy
|
|
5
|
+
? {
|
|
6
|
+
id: strategy.id,
|
|
7
|
+
alias: strategy.alias,
|
|
8
|
+
customerId: strategy.customerId,
|
|
9
|
+
subscriptionId: strategy.subscriptionId,
|
|
10
|
+
isCondensed: true,
|
|
11
|
+
}
|
|
12
|
+
: null); };
|
|
15
13
|
exports.condenseExecutionStrategy = condenseExecutionStrategy;
|
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,18 +0,0 @@
|
|
|
1
|
-
import { Money } from "../common";
|
|
2
|
-
/**
|
|
3
|
-
* Used to document usage of the service. Every activity can be tracked using this interface
|
|
4
|
-
*/
|
|
5
|
-
export interface Activity {
|
|
6
|
-
id?: string;
|
|
7
|
-
customerId?: string;
|
|
8
|
-
projectId?: string;
|
|
9
|
-
userId?: string;
|
|
10
|
-
/** An identifier of this type of activity */
|
|
11
|
-
activityName?: string;
|
|
12
|
-
description?: string;
|
|
13
|
-
timestamp?: Date;
|
|
14
|
-
caseId?: string;
|
|
15
|
-
subscriptionId?: string;
|
|
16
|
-
paid?: boolean;
|
|
17
|
-
extraCosts?: Money;
|
|
18
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Incoterms give information on transport conditions in international trade
|
|
3
|
-
*/
|
|
4
|
-
export declare enum Incoterm {
|
|
5
|
-
EXW = "EXW",
|
|
6
|
-
FAS = "FAS",
|
|
7
|
-
FCA = "FCA",
|
|
8
|
-
FOB = "FOB",
|
|
9
|
-
CFR = "CFR",
|
|
10
|
-
CIF = "CIF",
|
|
11
|
-
CIP = "CIP",
|
|
12
|
-
CPT = "CPT",
|
|
13
|
-
DAP = "DAP",
|
|
14
|
-
DPU = "DPU",
|
|
15
|
-
DAT = "DAT",
|
|
16
|
-
DDP = "DDP"
|
|
17
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Incoterm = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Incoterms give information on transport conditions in international trade
|
|
6
|
-
*/
|
|
7
|
-
var Incoterm;
|
|
8
|
-
(function (Incoterm) {
|
|
9
|
-
Incoterm["EXW"] = "EXW";
|
|
10
|
-
Incoterm["FAS"] = "FAS";
|
|
11
|
-
Incoterm["FCA"] = "FCA";
|
|
12
|
-
Incoterm["FOB"] = "FOB";
|
|
13
|
-
Incoterm["CFR"] = "CFR";
|
|
14
|
-
Incoterm["CIF"] = "CIF";
|
|
15
|
-
Incoterm["CIP"] = "CIP";
|
|
16
|
-
Incoterm["CPT"] = "CPT";
|
|
17
|
-
Incoterm["DAP"] = "DAP";
|
|
18
|
-
Incoterm["DPU"] = "DPU";
|
|
19
|
-
Incoterm["DAT"] = "DAT";
|
|
20
|
-
Incoterm["DDP"] = "DDP";
|
|
21
|
-
})(Incoterm = exports.Incoterm || (exports.Incoterm = {}));
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare enum StakeholderType {
|
|
2
|
-
Shipper = "shipper",
|
|
3
|
-
Recipient = "recipient",
|
|
4
|
-
Consignee = "consignee",
|
|
5
|
-
Importer = "importer",
|
|
6
|
-
Declarant = "declarant",
|
|
7
|
-
Agent = "agent",
|
|
8
|
-
Broker = "broker",
|
|
9
|
-
Buyer = "buyer",
|
|
10
|
-
Carrier = "carrier",
|
|
11
|
-
Warehouse = "warehouse"
|
|
12
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StakeholderType = void 0;
|
|
4
|
-
var StakeholderType;
|
|
5
|
-
(function (StakeholderType) {
|
|
6
|
-
StakeholderType["Shipper"] = "shipper";
|
|
7
|
-
StakeholderType["Recipient"] = "recipient";
|
|
8
|
-
StakeholderType["Consignee"] = "consignee";
|
|
9
|
-
StakeholderType["Importer"] = "importer";
|
|
10
|
-
StakeholderType["Declarant"] = "declarant";
|
|
11
|
-
StakeholderType["Agent"] = "agent";
|
|
12
|
-
StakeholderType["Broker"] = "broker";
|
|
13
|
-
StakeholderType["Buyer"] = "buyer";
|
|
14
|
-
StakeholderType["Carrier"] = "carrier";
|
|
15
|
-
StakeholderType["Warehouse"] = "warehouse";
|
|
16
|
-
})(StakeholderType = exports.StakeholderType || (exports.StakeholderType = {}));
|
|
@@ -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 = {}));
|