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.
- package/lib/helpers/cleanObject.js +1 -0
- package/lib/models/common/classification-code.model.d.ts +1 -1
- package/lib/models/common/customs-tariff-number.model.d.ts +1 -1
- package/lib/models/common/meta.js +9 -11
- package/lib/models/digicust/aggregated-case-data.model.js +2 -2
- package/lib/models/digicust/case.model.d.ts +1 -0
- package/lib/models/digicust/case.model.js +2 -2
- package/lib/models/digicust/documents/digicust-document.model.d.ts +1 -0
- package/lib/models/digicust/documents/digicust-document.model.js +1 -0
- package/lib/models/digicust/documents/invoice-language.enum.d.ts +2 -1
- package/lib/models/digicust/documents/invoice-language.enum.js +1 -0
- package/lib/models/digicust/documents/invoice.model.d.ts +3 -3
- package/lib/models/digicust/documents/line-item-containing-document.d.ts +1 -1
- package/lib/models/digicust/execution-strategy.model.d.ts +9 -2
- package/lib/models/digicust/execution-strategy.model.js +9 -11
- package/lib/models/digicust/extractions/extraction-grid.model.d.ts +1 -1
- package/lib/models/digicust/extractions/extraction.model.d.ts +1 -1
- package/lib/models/digicust/frontend-big-section.model.d.ts +1 -1
- package/lib/models/digicust/line-item.model.d.ts +1 -1
- package/lib/models/digicust/load-type.enum.d.ts +4 -4
- package/lib/models/digicust/load-type.enum.js +4 -4
- package/lib/models/digicust/masterdata/matching-metadata.model.d.ts +1 -1
- package/lib/models/digicust/masterdata/pseudo-stakeholder.d.ts +1 -1
- package/lib/models/digicust/masterdata/stakeholder-match-input.d.ts +1 -1
- package/lib/models/digicust/masterdata/string-scoring-details.d.ts +1 -1
- package/lib/models/digicust/operationType.enum.js +1 -0
- package/lib/models/digicust/transit-item.model.d.ts +1 -3
- package/lib/models/rossum/index.d.ts +12 -12
- package/package.json +5 -2
|
@@ -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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
:
|
|
12
|
-
|
|
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;
|
|
@@ -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,
|
|
@@ -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
|
|
4
|
+
import { LineItemContainingDocument } from "./line-item-containing-document";
|
|
5
5
|
/**
|
|
6
6
|
* Identifies an invoice
|
|
7
7
|
*/
|
|
@@ -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
|
|
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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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;
|
|
@@ -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 { StringScoringAlgorithmType } from
|
|
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,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
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
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.
|
|
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
|
}
|