digicust_types 1.7.101 → 1.7.105
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/company.model.d.ts +2 -0
- package/lib/models/common/meta.d.ts +3 -6
- package/lib/models/common/meta.js +9 -7
- package/lib/models/digicust/case.model.d.ts +1 -0
- package/lib/models/digicust/digicust-document.model.d.ts +2 -0
- package/lib/models/digicust/errors.model.d.ts +5 -4
- package/lib/models/digicust/extractions/extraction.model.d.ts +2 -3
- package/lib/models/digicust/masterdata/index.d.ts +3 -0
- package/lib/models/digicust/masterdata/index.js +3 -0
- package/lib/models/digicust/masterdata/matching-metadata.model.d.ts +11 -0
- package/lib/{contracts/start-hs-classification.dto.js → models/digicust/masterdata/matching-metadata.model.js} +0 -0
- package/lib/models/digicust/masterdata/scoring-algorithm-type.enum.d.ts +5 -0
- package/lib/models/digicust/masterdata/scoring-algorithm-type.enum.js +9 -0
- package/lib/models/digicust/masterdata/stakeholder-matching-method.enum.d.ts +7 -0
- package/lib/models/digicust/masterdata/stakeholder-matching-method.enum.js +11 -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/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,7 @@
|
|
|
1
1
|
import { AddressModel } from "./address.model";
|
|
2
2
|
import { PersonModel } from "./person.model";
|
|
3
3
|
import { Meta } from "./meta";
|
|
4
|
+
import { MatchingMetadataModel, StakeholderMatchingMethod } from '../digicust/masterdata';
|
|
4
5
|
/**
|
|
5
6
|
* Identifies a company
|
|
6
7
|
*/
|
|
@@ -16,4 +17,5 @@ export interface CompanyModel extends Meta<string> {
|
|
|
16
17
|
inputTaxDeduction?: Meta<boolean>;
|
|
17
18
|
securityNumber?: Meta<string>;
|
|
18
19
|
stakeholderId?: string;
|
|
20
|
+
matchingMetadata?: MatchingMetadataModel<StakeholderMatchingMethod>;
|
|
19
21
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Bbox } from "./bbox.model";
|
|
2
|
-
import { Workflow } from
|
|
2
|
+
import { Workflow } from "./workflow";
|
|
3
3
|
/**
|
|
4
4
|
* Encapsulates typed und untyped workflow metadata for case properties
|
|
5
5
|
*/
|
|
@@ -21,11 +21,8 @@ export interface Meta<T> extends Workflow<T> {
|
|
|
21
21
|
reviewNeeded?: boolean;
|
|
22
22
|
display?: boolean;
|
|
23
23
|
required?: boolean;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
message?: string;
|
|
27
|
-
severity?: "error" | "warning" | "info";
|
|
28
|
-
}[];
|
|
24
|
+
/** could be validation errors */
|
|
25
|
+
errors?: Error[];
|
|
29
26
|
}
|
|
30
27
|
export declare const condenseMeta: <T>(meta: Meta<T>, valueOnly?: boolean | undefined) => {
|
|
31
28
|
value: T | undefined;
|
|
@@ -2,12 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.condenseMeta = void 0;
|
|
4
4
|
var condenseMeta = function (meta, valueOnly) {
|
|
5
|
-
return !valueOnly
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
return !valueOnly
|
|
6
|
+
? {
|
|
7
|
+
value: meta.value,
|
|
8
|
+
confidence: meta.confidence,
|
|
9
|
+
reviewNeeded: meta.reviewNeeded,
|
|
10
|
+
}
|
|
11
|
+
: {
|
|
12
|
+
value: meta.value,
|
|
13
|
+
};
|
|
12
14
|
};
|
|
13
15
|
exports.condenseMeta = condenseMeta;
|
|
@@ -33,6 +33,7 @@ export interface CaseModel {
|
|
|
33
33
|
* Each item could only exist in condensed form
|
|
34
34
|
*/
|
|
35
35
|
documents?: DigicustDocumentModel[];
|
|
36
|
+
/** Case level errors (property level errors are stored in property) */
|
|
36
37
|
errors?: Array<Error>;
|
|
37
38
|
/** Original, uploaded files */
|
|
38
39
|
uploadedFiles?: Array<UploadedFileModel>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ClassificationStatus, DigicustDocumentType, DocumentCode, DocumentStatus, SubDocumentStatus, UserDocumentStatus } from ".";
|
|
2
2
|
import { DateTimeModel, RossumImportStatus } from "..";
|
|
3
3
|
import { AnalyzerMetadataModel } from "./AnalyzerMetadataModel.model";
|
|
4
|
+
import { ProcessingModel } from "./extractions/extraction.model";
|
|
4
5
|
/**
|
|
5
6
|
* Base model for different types of documents (e.g. waybills, invoices, ...)
|
|
6
7
|
*/
|
|
@@ -18,6 +19,7 @@ export interface DigicustDocumentModel {
|
|
|
18
19
|
userDocumentStatus?: UserDocumentStatus;
|
|
19
20
|
subDocumentStatus?: SubDocumentStatus;
|
|
20
21
|
classificationStatus?: ClassificationStatus;
|
|
22
|
+
processing?: ProcessingModel;
|
|
21
23
|
receivedAt?: Date;
|
|
22
24
|
code?: string;
|
|
23
25
|
reference?: string;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export interface ValidationError extends Error {
|
|
2
2
|
type: "ValidationError";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
severity?: "error" | "warning" | "info";
|
|
4
|
+
field?: string;
|
|
5
|
+
expected?: any;
|
|
6
|
+
actual?: any;
|
|
7
|
+
reference?: string;
|
|
7
8
|
}
|
|
@@ -34,9 +34,9 @@ export interface Extraction {
|
|
|
34
34
|
queueId?: string;
|
|
35
35
|
isLoading?: boolean;
|
|
36
36
|
}
|
|
37
|
-
interface ProcessingModel {
|
|
37
|
+
export interface ProcessingModel {
|
|
38
38
|
status?: "done" | "inprocess" | "error";
|
|
39
|
-
percentage?:
|
|
39
|
+
percentage?: number;
|
|
40
40
|
date?: Date;
|
|
41
41
|
errorMessage?: string;
|
|
42
42
|
}
|
|
@@ -63,4 +63,3 @@ export interface ExtractionPage {
|
|
|
63
63
|
/** label of classification */
|
|
64
64
|
label?: string;
|
|
65
65
|
}
|
|
66
|
-
export {};
|
|
@@ -2,3 +2,6 @@ export * from "./material.model";
|
|
|
2
2
|
export * from "./stakeholder.model";
|
|
3
3
|
export * from "./stakeholder-role.enum";
|
|
4
4
|
export * from "./user-edited-properties.type";
|
|
5
|
+
export * from "./matching-metadata.model";
|
|
6
|
+
export * from "./scoring-algorithm-type.enum";
|
|
7
|
+
export * from "./stakeholder-matching-method.enum";
|
|
@@ -14,3 +14,6 @@ __exportStar(require("./material.model"), exports);
|
|
|
14
14
|
__exportStar(require("./stakeholder.model"), exports);
|
|
15
15
|
__exportStar(require("./stakeholder-role.enum"), exports);
|
|
16
16
|
__exportStar(require("./user-edited-properties.type"), exports);
|
|
17
|
+
__exportStar(require("./matching-metadata.model"), exports);
|
|
18
|
+
__exportStar(require("./scoring-algorithm-type.enum"), exports);
|
|
19
|
+
__exportStar(require("./stakeholder-matching-method.enum"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ScoringAlgorithmType } from './scoring-algorithm-type.enum';
|
|
2
|
+
export interface MatchingMetadataModel<T> {
|
|
3
|
+
method: T;
|
|
4
|
+
input: {
|
|
5
|
+
[key: string]: string;
|
|
6
|
+
};
|
|
7
|
+
scoringAlgorithm: ScoringAlgorithmType;
|
|
8
|
+
scoringResult: {
|
|
9
|
+
[key: string]: number;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ScoringAlgorithmType = void 0;
|
|
4
|
+
var ScoringAlgorithmType;
|
|
5
|
+
(function (ScoringAlgorithmType) {
|
|
6
|
+
ScoringAlgorithmType["Exact"] = "exact";
|
|
7
|
+
ScoringAlgorithmType["JaroWrinkler"] = "jaro-wrinkler";
|
|
8
|
+
ScoringAlgorithmType["CosineSimilarity"] = "cosine-similarity";
|
|
9
|
+
})(ScoringAlgorithmType = exports.ScoringAlgorithmType || (exports.ScoringAlgorithmType = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StakeholderMatchingMethod = void 0;
|
|
4
|
+
var StakeholderMatchingMethod;
|
|
5
|
+
(function (StakeholderMatchingMethod) {
|
|
6
|
+
StakeholderMatchingMethod[StakeholderMatchingMethod["Unknown"] = 0] = "Unknown";
|
|
7
|
+
StakeholderMatchingMethod[StakeholderMatchingMethod["EORI"] = 1] = "EORI";
|
|
8
|
+
StakeholderMatchingMethod[StakeholderMatchingMethod["VAT"] = 2] = "VAT";
|
|
9
|
+
StakeholderMatchingMethod[StakeholderMatchingMethod["NameAndCountry"] = 4] = "NameAndCountry";
|
|
10
|
+
StakeholderMatchingMethod[StakeholderMatchingMethod["FuzzyNameAndAddress"] = 8] = "FuzzyNameAndAddress";
|
|
11
|
+
})(StakeholderMatchingMethod = exports.StakeholderMatchingMethod || (exports.StakeholderMatchingMethod = {}));
|
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 = {}));
|