digicust_types 1.7.103 → 1.7.107
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/digicust/extractions/extraction.model.d.ts +3 -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/models/digicust/masterdata/matching-metadata.model.js +2 -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/lib/models/digicust/masterdata/stakeholder.model.d.ts +1 -0
- package/package.json +4 -4
|
@@ -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,6 +1,5 @@
|
|
|
1
1
|
import { Bbox } from "../../common/bbox.model";
|
|
2
2
|
import { ExtractionGrid } from "./";
|
|
3
|
-
import { UploadedFileModel } from "../uploaded-file.model";
|
|
4
3
|
/**
|
|
5
4
|
* Output of the data extraction
|
|
6
5
|
*/
|
|
@@ -14,7 +13,8 @@ export interface Extraction {
|
|
|
14
13
|
groups?: ExtractionGroup[];
|
|
15
14
|
grids?: ExtractionGrid[];
|
|
16
15
|
errors?: Array<Error>;
|
|
17
|
-
|
|
16
|
+
originalFileName?: string;
|
|
17
|
+
fileName?: string;
|
|
18
18
|
documentType?: string;
|
|
19
19
|
documentStatus?: string;
|
|
20
20
|
userDocumentStatus?: string;
|
|
@@ -36,7 +36,7 @@ export interface Extraction {
|
|
|
36
36
|
}
|
|
37
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
|
}
|
|
@@ -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
|
+
}
|
|
@@ -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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "digicust_types",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.107",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -24,14 +24,14 @@
|
|
|
24
24
|
},
|
|
25
25
|
"homepage": "https://github.com/Digicust0406/types#readme",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@types/node": "^14.17.
|
|
28
|
-
"typedoc": "^0.22.
|
|
27
|
+
"@types/node": "^14.17.34",
|
|
28
|
+
"typedoc": "^0.22.10"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@typescript-eslint/eslint-plugin": "^4.33.0",
|
|
32
32
|
"eslint": "^7.23.0",
|
|
33
33
|
"eslint-config-airbnb-typescript": "^12.3.1",
|
|
34
34
|
"eslint-plugin-import": "^2.25.3",
|
|
35
|
-
"typescript": "^4.
|
|
35
|
+
"typescript": "^4.5.2"
|
|
36
36
|
}
|
|
37
37
|
}
|