digicust_types 1.7.212 → 1.7.215

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.
Files changed (29) hide show
  1. package/lib/helpers/cleanObject.js +1 -0
  2. package/lib/models/common/classification-code.model.d.ts +1 -1
  3. package/lib/models/common/customs-tariff-number.model.d.ts +1 -1
  4. package/lib/models/common/meta.js +9 -11
  5. package/lib/models/digicust/aggregated-case-data.model.js +2 -2
  6. package/lib/models/digicust/case.model.d.ts +1 -0
  7. package/lib/models/digicust/case.model.js +2 -2
  8. package/lib/models/digicust/documents/digicust-document.model.d.ts +1 -0
  9. package/lib/models/digicust/documents/digicust-document.model.js +1 -0
  10. package/lib/models/digicust/documents/invoice-language.enum.d.ts +2 -1
  11. package/lib/models/digicust/documents/invoice-language.enum.js +1 -0
  12. package/lib/models/digicust/documents/invoice.model.d.ts +3 -3
  13. package/lib/models/digicust/documents/line-item-containing-document.d.ts +1 -1
  14. package/lib/models/digicust/execution-strategy.model.d.ts +9 -2
  15. package/lib/models/digicust/execution-strategy.model.js +9 -11
  16. package/lib/models/digicust/extractions/extraction-grid.model.d.ts +1 -1
  17. package/lib/models/digicust/extractions/extraction.model.d.ts +1 -1
  18. package/lib/models/digicust/frontend-big-section.model.d.ts +1 -1
  19. package/lib/models/digicust/line-item.model.d.ts +1 -1
  20. package/lib/models/digicust/load-type.enum.d.ts +4 -4
  21. package/lib/models/digicust/load-type.enum.js +4 -4
  22. package/lib/models/digicust/masterdata/matching-metadata.model.d.ts +1 -1
  23. package/lib/models/digicust/masterdata/pseudo-stakeholder.d.ts +1 -1
  24. package/lib/models/digicust/masterdata/stakeholder-match-input.d.ts +1 -1
  25. package/lib/models/digicust/masterdata/string-scoring-details.d.ts +1 -1
  26. package/lib/models/digicust/operationType.enum.js +1 -0
  27. package/lib/models/digicust/transit-item.model.d.ts +1 -3
  28. package/lib/models/rossum/index.d.ts +12 -12
  29. package/package.json +5 -2
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.cleanObject = void 0;
4
+ /* eslint-disable no-param-reassign */
4
5
  /**
5
6
  * Recursively loops through object and deletes properties with no value (null, undefined, "")
6
7
  *
@@ -1,4 +1,4 @@
1
- import { Meta } from "../common";
1
+ import { Meta } from ".";
2
2
  export interface ClassificationCode extends Meta<string> {
3
3
  type: string;
4
4
  additionalCodes: string[];
@@ -1,4 +1,4 @@
1
- import { HsCodeModel, Meta, ClassificationCode } from "../common";
1
+ import { HsCodeModel, Meta, ClassificationCode } from ".";
2
2
  export interface CustomsTariffNumber extends Meta<string> {
3
3
  hsCode?: Meta<string>;
4
4
  additionalCodes?: Meta<string>[];
@@ -1,15 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.condenseMeta = void 0;
4
- var condenseMeta = function (meta, valueOnly) {
5
- return !valueOnly
6
- ? {
7
- value: meta.value,
8
- confidence: meta.confidence,
9
- reviewNeeded: meta.reviewNeeded,
10
- }
11
- : {
12
- value: meta.value,
13
- };
14
- };
4
+ var condenseMeta = function (meta, valueOnly) { return (!valueOnly
5
+ ? {
6
+ value: meta.value,
7
+ confidence: meta.confidence,
8
+ reviewNeeded: meta.reviewNeeded,
9
+ }
10
+ : {
11
+ value: meta.value,
12
+ }); };
15
13
  exports.condenseMeta = condenseMeta;
@@ -16,10 +16,10 @@ var _1 = require(".");
16
16
  var transit_item_model_1 = require("./transit-item.model");
17
17
  var condenseAggregated = function (aggregated) {
18
18
  var _a, _b;
19
- return aggregated
19
+ return (aggregated
20
20
  ? __assign(__assign({}, aggregated), { items: (_a = aggregated.items) === null || _a === void 0 ? void 0 : _a.map(function (item) { return (0, _1.condenseLineItem)(item); }), transitItems: (_b = aggregated.transitItems) === null || _b === void 0 ? void 0 : _b.map(function (item) {
21
21
  return (0, transit_item_model_1.condenseTransitLineItem)(item);
22
22
  }) })
23
- : null;
23
+ : null);
24
24
  };
25
25
  exports.condenseAggregated = condenseAggregated;
@@ -22,6 +22,7 @@ export interface CaseModel {
22
22
  sentAt?: Date;
23
23
  automatic?: boolean;
24
24
  isProcessWithDextor?: boolean;
25
+ isPseudonymized?: boolean;
25
26
  mrnNumber?: Meta<string>;
26
27
  accomplishedAt?: Date;
27
28
  reference?: string;
@@ -15,10 +15,10 @@ exports.condenseCaseModel = void 0;
15
15
  var _1 = require(".");
16
16
  var condenseCaseModel = function (caseModel) {
17
17
  var _a;
18
- return caseModel
18
+ return (caseModel
19
19
  ? __assign(__assign({}, caseModel), { documents: (_a = caseModel.documents) === null || _a === void 0 ? void 0 : _a.map(function (document) {
20
20
  return (0, _1.condenseDocument)(document);
21
21
  }), executionStrategy: (0, _1.condenseExecutionStrategy)(caseModel.executionStrategy), aggregated: (0, _1.condenseAggregated)(caseModel.aggregated) })
22
- : null;
22
+ : null);
23
23
  };
24
24
  exports.condenseCaseModel = condenseCaseModel;
@@ -20,6 +20,7 @@ export interface DigicustDocumentModel {
20
20
  userDocumentStatus?: UserDocumentStatus;
21
21
  subDocumentStatus?: SubDocumentStatus;
22
22
  classificationStatus?: ClassificationStatus;
23
+ isPseudonymized?: boolean;
23
24
  processing?: ProcessingModel;
24
25
  receivedAt?: Date;
25
26
  code?: string;
@@ -14,6 +14,7 @@ var condenseDocument = function (document) {
14
14
  userDocumentStatus: document.UserDocumentStatus,
15
15
  subDocumentStatus: document.SubDocumentStatus,
16
16
  classificationStatus: document.classificationStatus,
17
+ processing: document.processing,
17
18
  code: document.code,
18
19
  reference: document.reference,
19
20
  issueDate: document.issueDate,
@@ -8,5 +8,6 @@ export declare enum InvoiceLanguage {
8
8
  FR = "french",
9
9
  SP = "spanish",
10
10
  SK = "slowakian",
11
- HU = "hungarian"
11
+ HU = "hungarian",
12
+ IT = "italian"
12
13
  }
@@ -13,4 +13,5 @@ var InvoiceLanguage;
13
13
  InvoiceLanguage["SP"] = "spanish";
14
14
  InvoiceLanguage["SK"] = "slowakian";
15
15
  InvoiceLanguage["HU"] = "hungarian";
16
+ InvoiceLanguage["IT"] = "italian";
16
17
  })(InvoiceLanguage = exports.InvoiceLanguage || (exports.InvoiceLanguage = {}));
@@ -1,7 +1,7 @@
1
- import { DigicustDocumentModel, IncotermModel, InvoiceType, MeanOfTransportation, Package, TaxDetailsModel, TradePreference, TypeOfBusiness } from "../";
2
- import { AddressModel, CompanyModel, Currency, DateTimeModel, Dimensions, LanguageModel, Meta, Money, PackageType, Weight, WeightUnit } from "../../";
1
+ import { DigicustDocumentModel, IncotermModel, InvoiceType, MeanOfTransportation, Package, TaxDetailsModel, TradePreference, TypeOfBusiness } from "..";
2
+ import { AddressModel, CompanyModel, Currency, DateTimeModel, Dimensions, LanguageModel, Meta, Money, PackageType, Weight, WeightUnit } from "../..";
3
3
  import { InvoiceLanguage } from "./invoice-language.enum";
4
- import { LineItemContainingDocument } from './line-item-containing-document';
4
+ import { LineItemContainingDocument } from "./line-item-containing-document";
5
5
  /**
6
6
  * Identifies an invoice
7
7
  */
@@ -1,4 +1,4 @@
1
- import { LineItemModel } from '../line-item.model';
1
+ import { LineItemModel } from "../line-item.model";
2
2
  export interface LineItemContainingDocument {
3
3
  id?: string;
4
4
  items?: LineItemModel[];
@@ -1,4 +1,4 @@
1
- import { DigicustDocumentType } from "./";
1
+ import { DigicustDocumentType } from ".";
2
2
  import { Event } from "./event.model";
3
3
  import { ProcedureMode } from "./procedure.model";
4
4
  /**
@@ -33,7 +33,8 @@ export interface ExecutionStrategy {
33
33
  queueId: string;
34
34
  }[];
35
35
  classification?: {
36
- /** Defines whether a classification shall be assumed correct if a specific confidence level is reached */
36
+ /** Defines whether a classification shall be assumed correct
37
+ * if a specific confidence level is reached */
37
38
  automateOnMinConfidence?: boolean;
38
39
  /** Value between 1 (very confident) to 0 (no confidence) */
39
40
  automateMinConfidence?: number;
@@ -68,6 +69,12 @@ export interface ExecutionStrategy {
68
69
  dataIntegration?: {
69
70
  active?: boolean;
70
71
  };
72
+ pseudonymization?: {
73
+ active?: boolean;
74
+ interval?: number;
75
+ time?: number;
76
+ lastPseudonymized?: Date;
77
+ };
71
78
  isProcessWithDextor: boolean;
72
79
  submission?: {
73
80
  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
- return strategy
6
- ? {
7
- id: strategy.id,
8
- alias: strategy.alias,
9
- customerId: strategy.customerId,
10
- subscriptionId: strategy.subscriptionId,
11
- isCondensed: true,
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;
@@ -1,5 +1,5 @@
1
1
  import { Bbox } from "../../common/bbox.model";
2
- import { ExtractionField } from "./";
2
+ import { ExtractionField } from ".";
3
3
  export interface ExtractionGrid {
4
4
  id?: string;
5
5
  label?: string;
@@ -1,5 +1,5 @@
1
1
  import { Bbox } from "../../common/bbox.model";
2
- import { ExtractionGrid } from "./";
2
+ import { ExtractionGrid } from ".";
3
3
  /**
4
4
  * Output of the data extraction
5
5
  */
@@ -1,4 +1,4 @@
1
- import { DigicustDocumentType } from "./";
1
+ import { DigicustDocumentType } from ".";
2
2
  import { FrontendSmallSection } from "./frontend-small-section.mode";
3
3
  export interface FrontendBigSection {
4
4
  title: String;
@@ -65,7 +65,7 @@ export interface LineItemModel {
65
65
  documents?: DigicustDocumentModel[];
66
66
  adjustments?: Adjustment[];
67
67
  containers?: Container[];
68
- /** export declaration **/
68
+ /** export declaration * */
69
69
  shipper: CompanyModel;
70
70
  exportingCountry: AddressModel;
71
71
  destinationCountry: AddressModel;
@@ -1,14 +1,14 @@
1
1
  export declare enum LoadType {
2
2
  /** Courier Express and Parcel */
3
3
  CEP = "CEP",
4
- /** Full Container Load */
4
+ /** Full Container Load */
5
5
  FCL = "FCL",
6
- /** Less-Than-Container Load */
6
+ /** Less-Than-Container Load */
7
7
  LCL = "LCL",
8
8
  /** Full Truck Load */
9
9
  FTL = "FTL",
10
- /** Less-Than-Truck Load */
10
+ /** Less-Than-Truck Load */
11
11
  LTL = "LTL",
12
- /** Bulk Cargo */
12
+ /** Bulk Cargo */
13
13
  Bulk = "Bulk"
14
14
  }
@@ -6,14 +6,14 @@ var LoadType;
6
6
  (function (LoadType) {
7
7
  /** Courier Express and Parcel */
8
8
  LoadType["CEP"] = "CEP";
9
- /** Full Container Load */
9
+ /** Full Container Load */
10
10
  LoadType["FCL"] = "FCL";
11
- /** Less-Than-Container Load */
11
+ /** Less-Than-Container Load */
12
12
  LoadType["LCL"] = "LCL";
13
13
  /** Full Truck Load */
14
14
  LoadType["FTL"] = "FTL";
15
- /** Less-Than-Truck Load */
15
+ /** Less-Than-Truck Load */
16
16
  LoadType["LTL"] = "LTL";
17
- /** Bulk Cargo */
17
+ /** Bulk Cargo */
18
18
  LoadType["Bulk"] = "Bulk";
19
19
  })(LoadType = exports.LoadType || (exports.LoadType = {}));
@@ -1,4 +1,4 @@
1
- import { StringScoringDetails } from './string-scoring-details';
1
+ import { StringScoringDetails } from "./string-scoring-details";
2
2
  export interface MatchingMetadataModel<T, S> {
3
3
  input: T;
4
4
  usedMatcher: string;
@@ -1,5 +1,5 @@
1
1
  export interface PseudoStakeholderModel {
2
2
  id?: string;
3
- hash?: string;
3
+ hash?: number;
4
4
  pseudoValue?: string;
5
5
  }
@@ -1,4 +1,4 @@
1
- import { AddressModel } from '../../common';
1
+ import { AddressModel } from "../../common";
2
2
  export interface StakeholderMatchInput {
3
3
  name?: string;
4
4
  EORI?: string;
@@ -1,4 +1,4 @@
1
- import { StringScoringAlgorithmType } from './string-scoring-algorithm-type.enum';
1
+ import { StringScoringAlgorithmType } from "./string-scoring-algorithm-type.enum";
2
2
  export interface StringScoringDetails {
3
3
  [key: string]: {
4
4
  scoringAlgorithm: StringScoringAlgorithmType;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.operationType = void 0;
4
+ // TODO eslint error
4
5
  var operationType;
5
6
  (function (operationType) {
6
7
  operationType["clearanceHomeUse"] = "ClearanceHomeUse";
@@ -1,6 +1,4 @@
1
- import { AddressModel, Money, Weight } from "../common";
2
- import { Meta } from "../common";
3
- import { CustomsTariffNumber } from "../common";
1
+ import { AddressModel, Money, Weight, Meta, CustomsTariffNumber } from "../common";
4
2
  import { Container } from "./container.model";
5
3
  import { Procedure } from "./procedure.model";
6
4
  import { DigicustDocumentModel } from "./documents/digicust-document.model";
@@ -1,12 +1,12 @@
1
- export * from './rossum-annotation-changed-event.dto';
2
- export * from './rossum-annotation-data.model';
3
- export * from './rossum-document-data.model';
4
- export * from './rossum-embedded-response.model';
5
- export * from './rossum-import-status.enum';
6
- export * from './rossum-login-response.model';
7
- export * from './rossum-paginated-annotations.model';
8
- export * from './rossum-paginated-documents.model';
9
- export * from './rossum-pagination.model';
10
- export * from './rossum-result-content.dto';
11
- export * from './rossum-result-node.dto';
12
- export * from './rossum-start-analyze.dto';
1
+ export * from "./rossum-annotation-changed-event.dto";
2
+ export * from "./rossum-annotation-data.model";
3
+ export * from "./rossum-document-data.model";
4
+ export * from "./rossum-embedded-response.model";
5
+ export * from "./rossum-import-status.enum";
6
+ export * from "./rossum-login-response.model";
7
+ export * from "./rossum-paginated-annotations.model";
8
+ export * from "./rossum-paginated-documents.model";
9
+ export * from "./rossum-pagination.model";
10
+ export * from "./rossum-result-content.dto";
11
+ export * from "./rossum-result-node.dto";
12
+ export * from "./rossum-start-analyze.dto";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "digicust_types",
3
- "version": "1.7.212",
3
+ "version": "1.7.215",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -10,7 +10,8 @@
10
10
  "scripts": {
11
11
  "build": "tsc",
12
12
  "build-deploy": "npm version patch && tsc && npm publish",
13
- "deploy-docs": "npm i && npx typedoc src/index.ts"
13
+ "deploy-docs": "npm i && npx typedoc src/index.ts",
14
+ "lint-fix": "eslint --fix --ext .ts ."
14
15
  },
15
16
  "repository": {
16
17
  "type": "git",
@@ -32,6 +33,8 @@
32
33
  "eslint": "^7.23.0",
33
34
  "eslint-config-airbnb-typescript": "^12.3.1",
34
35
  "eslint-plugin-import": "^2.25.4",
36
+ "eslint-plugin-jsx-a11y": "^6.5.1",
37
+ "eslint-plugin-react": "^7.29.4",
35
38
  "typescript": "^4.6.2"
36
39
  }
37
40
  }