digicust_types 1.7.151 → 1.7.155

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.
@@ -21,11 +21,13 @@ export interface AggregatedCaseDataModel {
21
21
  procedure?: Procedure;
22
22
  /** commercial reference number, usually assigned by the trader */
23
23
  referenceNumber?: Meta<string>;
24
+ mrnNumber?: Meta<string>;
24
25
  /** Load Type, e.g. full container load */
25
26
  loadType?: Meta<LoadType>;
26
27
  countryOfOrigin?: AddressModel;
27
28
  fromAddress?: AddressModel;
28
29
  toAddress?: AddressModel;
30
+ transitCountries?: AddressModel[];
29
31
  arrivalDate?: DateTimeModel;
30
32
  departureDate?: DateTimeModel;
31
33
  issueDate?: DateTimeModel;
@@ -3,5 +3,5 @@ export * from "./stakeholder.model";
3
3
  export * from "./stakeholder-role.enum";
4
4
  export * from "./user-edited-properties.type";
5
5
  export * from "./matching-metadata.model";
6
- export * from "./scoring-algorithm-type.enum";
6
+ export * from "./string-scoring-algorithm-type.enum";
7
7
  export * from "./stakeholder-matching-method.enum";
@@ -15,5 +15,5 @@ __exportStar(require("./stakeholder.model"), exports);
15
15
  __exportStar(require("./stakeholder-role.enum"), exports);
16
16
  __exportStar(require("./user-edited-properties.type"), exports);
17
17
  __exportStar(require("./matching-metadata.model"), exports);
18
- __exportStar(require("./scoring-algorithm-type.enum"), exports);
18
+ __exportStar(require("./string-scoring-algorithm-type.enum"), exports);
19
19
  __exportStar(require("./stakeholder-matching-method.enum"), exports);
@@ -1,11 +1,16 @@
1
- import { ScoringAlgorithmType } from './scoring-algorithm-type.enum';
1
+ import { StringScoringAlgorithmType } from './string-scoring-algorithm-type.enum';
2
2
  export interface MatchingMetadataModel<T> {
3
- method: T;
4
3
  input: {
5
4
  [key: string]: string;
6
5
  };
7
- scoringAlgorithm: ScoringAlgorithmType;
8
- scoringResult: {
9
- [key: string]: number;
6
+ scoringAlgorithm: string;
7
+ matchScore: number;
8
+ matchedMethodFlags: T;
9
+ detailMatches?: {
10
+ [key: string]: {
11
+ scoringAlgorithm: StringScoringAlgorithmType;
12
+ matchScore: number;
13
+ matchValue: string;
14
+ };
10
15
  };
11
16
  }
@@ -1,3 +1,4 @@
1
+ import { MaterialCreationType } from ".";
1
2
  import { AddressModel, Workflow } from "../../common";
2
3
  import { PersonModel } from "../../common/person.model";
3
4
  import { StakeholderRole } from "./stakeholder-role.enum";
@@ -5,6 +6,7 @@ export interface StakeholderModel {
5
6
  id?: string;
6
7
  customerId?: string;
7
8
  projectId?: string;
9
+ creationType?: MaterialCreationType;
8
10
  roles?: StakeholderRole[];
9
11
  address?: AddressModel & Workflow<any>;
10
12
  name?: Workflow<string>;
@@ -0,0 +1,5 @@
1
+ export declare enum StringScoringAlgorithmType {
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.StringScoringAlgorithmType = void 0;
4
+ var StringScoringAlgorithmType;
5
+ (function (StringScoringAlgorithmType) {
6
+ StringScoringAlgorithmType["Exact"] = "exact";
7
+ StringScoringAlgorithmType["JaroWrinkler"] = "jaro-wrinkler";
8
+ StringScoringAlgorithmType["CosineSimilarity"] = "cosine-similarity";
9
+ })(StringScoringAlgorithmType = exports.StringScoringAlgorithmType || (exports.StringScoringAlgorithmType = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "digicust_types",
3
- "version": "1.7.151",
3
+ "version": "1.7.155",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",