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.
@@ -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
- uploadedFiles?: UploadedFileModel[];
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?: string;
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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ export declare enum ScoringAlgorithmType {
2
+ Exact = "exact",
3
+ JaroWrinkler = "jaro-wrinkler",
4
+ CosineSimilarity = "cosine-similarity"
5
+ }
@@ -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,7 @@
1
+ export declare enum StakeholderMatchingMethod {
2
+ Unknown = 0,
3
+ EORI = 1,
4
+ VAT = 2,
5
+ NameAndCountry = 4,
6
+ FuzzyNameAndAddress = 8
7
+ }
@@ -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 = {}));
@@ -13,6 +13,7 @@ export interface StakeholderModel {
13
13
  email?: Workflow<string>;
14
14
  EORI?: Workflow<string>;
15
15
  VAT?: Workflow<string>;
16
+ externalIdentifier?: Workflow<string>;
16
17
  inputTaxDeduction?: Workflow<boolean>;
17
18
  meta?: {
18
19
  version?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "digicust_types",
3
- "version": "1.7.103",
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.33",
28
- "typedoc": "^0.22.9"
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.4.4"
35
+ "typescript": "^4.5.2"
36
36
  }
37
37
  }