digicust_types 1.7.213 → 1.7.214

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
  "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;
@@ -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,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,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.213",
3
+ "version": "1.7.214",
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",