digicust_types 1.7.281 → 1.7.282
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/models/digicust/documents/digicust-document-type.enum.d.ts +2 -1
- package/lib/models/digicust/documents/digicust-document-type.enum.js +1 -0
- package/lib/models/digicust/documents/index.d.ts +1 -0
- package/lib/models/digicust/documents/index.js +1 -0
- package/lib/models/digicust/documents/tariff-classification-input.d.ts +16 -0
- package/lib/models/{common/bbox.model.js → digicust/documents/tariff-classification-input.js} +0 -0
- package/package.json +1 -1
- package/lib/models/common/address.model.d.ts +0 -22
- package/lib/models/common/address.model.js +0 -13
- package/lib/models/common/bbox.model.d.ts +0 -22
- package/lib/models/common/classification-code.model.d.ts +0 -5
- package/lib/models/common/classification-code.model.js +0 -2
- package/lib/models/common/company.model.d.ts +0 -30
- package/lib/models/common/company.model.js +0 -2
- package/lib/models/common/currency.enum.d.ts +0 -181
- package/lib/models/common/currency.enum.js +0 -185
- package/lib/models/common/customs-tariff-number.model.d.ts +0 -25
- package/lib/models/common/customs-tariff-number.model.js +0 -21
- package/lib/models/common/date.model.d.ts +0 -5
- package/lib/models/common/date.model.js +0 -2
- package/lib/models/common/dialog-window.model.d.ts +0 -6
- package/lib/models/common/dialog-window.model.js +0 -2
- package/lib/models/common/dimensions-unit.enum.d.ts +0 -7
- package/lib/models/common/dimensions-unit.enum.js +0 -11
- package/lib/models/common/dimensions.model.d.ts +0 -8
- package/lib/models/common/dimensions.model.js +0 -2
- package/lib/models/common/extra-styles.model.d.ts +0 -4
- package/lib/models/common/extra-styles.model.js +0 -2
- package/lib/models/common/field-type.enum.d.ts +0 -10
- package/lib/models/common/field-type.enum.js +0 -14
- package/lib/models/common/filter.enum.d.ts +0 -8
- package/lib/models/common/filter.enum.js +0 -12
- package/lib/models/common/frontend-fields.model.d.ts +0 -11
- package/lib/models/common/frontend-fields.model.js +0 -2
- package/lib/models/common/fuzzy-input.d.ts +0 -4
- package/lib/models/common/fuzzy-input.js +0 -2
- package/lib/models/common/hs-classification-interaction.d.ts +0 -30
- package/lib/models/common/hs-classification-interaction.js +0 -2
- package/lib/models/common/hs-classification-response.d.ts +0 -31
- package/lib/models/common/hs-classification-response.js +0 -2
- package/lib/models/common/hs-code.model.d.ts +0 -11
- package/lib/models/common/hs-code.model.js +0 -2
- package/lib/models/common/index.d.ts +0 -29
- package/lib/models/common/index.js +0 -49
- package/lib/models/common/language.model.d.ts +0 -4
- package/lib/models/common/language.model.js +0 -2
- package/lib/models/common/meta.d.ts +0 -35
- package/lib/models/common/meta.js +0 -13
- package/lib/models/common/money.model.d.ts +0 -11
- package/lib/models/common/money.model.js +0 -16
- package/lib/models/common/multerfile.model.d.ts +0 -12
- package/lib/models/common/multerfile.model.js +0 -2
- package/lib/models/common/package-type.model.d.ts +0 -10
- package/lib/models/common/package-type.model.js +0 -2
- package/lib/models/common/periods.enum.d.ts +0 -5
- package/lib/models/common/periods.enum.js +0 -9
- package/lib/models/common/person.model.d.ts +0 -12
- package/lib/models/common/person.model.js +0 -2
- package/lib/models/common/prefix.enum.d.ts +0 -5
- package/lib/models/common/prefix.enum.js +0 -10
- package/lib/models/common/quantity.model.d.ts +0 -16
- package/lib/models/common/quantity.model.js +0 -10
- package/lib/models/common/section-type.enum.d.ts +0 -12
- package/lib/models/common/section-type.enum.js +0 -16
- package/lib/models/common/sort.enum.d.ts +0 -4
- package/lib/models/common/sort.enum.js +0 -8
- package/lib/models/common/subscription-price.model.d.ts +0 -9
- package/lib/models/common/subscription-price.model.js +0 -2
- package/lib/models/common/unit-of-measurement.d.ts +0 -10
- package/lib/models/common/unit-of-measurement.js +0 -2
- package/lib/models/common/uom.enum.d.ts +0 -39
- package/lib/models/common/uom.enum.js +0 -44
- package/lib/models/common/weight-unit.enum.d.ts +0 -10
- package/lib/models/common/weight-unit.enum.js +0 -14
- package/lib/models/common/weight.model.d.ts +0 -7
- package/lib/models/common/weight.model.js +0 -15
- package/lib/models/common/workflow.d.ts +0 -23
- package/lib/models/common/workflow.js +0 -2
- package/lib/models/digicust/AnalyzerMetadataModel.model.d.ts +0 -13
- package/lib/models/digicust/AnalyzerMetadataModel.model.js +0 -2
- package/lib/models/digicust/activity.model.d.ts +0 -16
- package/lib/models/digicust/activity.model.js +0 -2
- package/lib/models/digicust/adjustment.model.d.ts +0 -7
- package/lib/models/digicust/adjustment.model.js +0 -2
- package/lib/models/digicust/aggregated-case-data.model.d.ts +0 -76
- package/lib/models/digicust/aggregated-case-data.model.js +0 -25
- package/lib/models/digicust/case-status.enum.d.ts +0 -22
- package/lib/models/digicust/case-status.enum.js +0 -26
- package/lib/models/digicust/case-submission-transaction.d.ts +0 -29
- package/lib/models/digicust/case-submission-transaction.js +0 -19
- package/lib/models/digicust/case-type.enum.d.ts +0 -8
- package/lib/models/digicust/case-type.enum.js +0 -12
- package/lib/models/digicust/case.model.d.ts +0 -52
- package/lib/models/digicust/case.model.js +0 -24
- package/lib/models/digicust/consignment-size.enum.d.ts +0 -4
- package/lib/models/digicust/consignment-size.enum.js +0 -8
- package/lib/models/digicust/container.model.d.ts +0 -7
- package/lib/models/digicust/container.model.js +0 -2
- package/lib/models/digicust/context.model.d.ts +0 -9
- package/lib/models/digicust/context.model.js +0 -2
- package/lib/models/digicust/cost-intersection.model.d.ts +0 -20
- package/lib/models/digicust/cost-intersection.model.js +0 -16
- package/lib/models/digicust/custom-document.model.d.ts +0 -8
- package/lib/models/digicust/custom-document.model.js +0 -2
- package/lib/models/digicust/customer.model.d.ts +0 -55
- package/lib/models/digicust/customer.model.js +0 -2
- package/lib/models/digicust/customsOffice.model.d.ts +0 -19
- package/lib/models/digicust/customsOffice.model.js +0 -12
- package/lib/models/digicust/declaration.model.d.ts +0 -4
- package/lib/models/digicust/declaration.model.js +0 -2
- package/lib/models/digicust/deferment-account.model.d.ts +0 -15
- package/lib/models/digicust/deferment-account.model.js +0 -2
- package/lib/models/digicust/digicust-document-type.enum.d.ts +0 -15
- package/lib/models/digicust/digicust-document-type.enum.js +0 -19
- package/lib/models/digicust/digicust-document.model.d.ts +0 -45
- package/lib/models/digicust/digicust-document.model.js +0 -38
- package/lib/models/digicust/document-code.model.d.ts +0 -12
- package/lib/models/digicust/document-code.model.js +0 -2
- package/lib/models/digicust/document-status.enum.d.ts +0 -38
- package/lib/models/digicust/document-status.enum.js +0 -45
- package/lib/models/digicust/documents/invoice-language.enum.d.ts +0 -13
- package/lib/models/digicust/documents/invoice-language.enum.js +0 -17
- package/lib/models/digicust/eori.model.d.ts +0 -8
- package/lib/models/digicust/eori.model.js +0 -2
- package/lib/models/digicust/event.model.d.ts +0 -64
- package/lib/models/digicust/event.model.js +0 -10
- package/lib/models/digicust/execution-strategy.model.d.ts +0 -105
- package/lib/models/digicust/execution-strategy.model.js +0 -13
- package/lib/models/digicust/extractions/extraction-grid.model.d.ts +0 -22
- package/lib/models/digicust/extractions/extraction-grid.model.js +0 -2
- package/lib/models/digicust/extractions/extraction.model.d.ts +0 -65
- package/lib/models/digicust/extractions/extraction.model.js +0 -2
- package/lib/models/digicust/extractions/index.d.ts +0 -2
- package/lib/models/digicust/extractions/index.js +0 -18
- package/lib/models/digicust/frontend-big-section.model.d.ts +0 -13
- package/lib/models/digicust/frontend-big-section.model.js +0 -2
- package/lib/models/digicust/frontend-group.model.d.ts +0 -6
- package/lib/models/digicust/frontend-group.model.js +0 -2
- package/lib/models/digicust/frontend-mapping.model.d.ts +0 -4
- package/lib/models/digicust/frontend-mapping.model.js +0 -2
- package/lib/models/digicust/frontend-small-section.mode.d.ts +0 -13
- package/lib/models/digicust/frontend-small-section.mode.js +0 -2
- package/lib/models/digicust/hs-code-mapping.d.ts +0 -26
- package/lib/models/digicust/hs-code-mapping.js +0 -2
- package/lib/models/digicust/incoterm.model.d.ts +0 -25
- package/lib/models/digicust/incoterm.model.js +0 -21
- package/lib/models/digicust/invoice-type.model.d.ts +0 -9
- package/lib/models/digicust/invoice-type.model.js +0 -2
- package/lib/models/digicust/invoice.model.d.ts +0 -62
- package/lib/models/digicust/invoice.model.js +0 -2
- package/lib/models/digicust/line-item.model.d.ts +0 -82
- package/lib/models/digicust/line-item.model.js +0 -17
- package/lib/models/digicust/load-type.enum.d.ts +0 -14
- package/lib/models/digicust/load-type.enum.js +0 -19
- package/lib/models/digicust/masterdata/scoring-algorithm-type.enum.d.ts +0 -5
- package/lib/models/digicust/masterdata/scoring-algorithm-type.enum.js +0 -9
- package/lib/models/digicust/masterdata/stakeholder-matching-method.enum.d.ts +0 -7
- package/lib/models/digicust/masterdata/stakeholder-matching-method.enum.js +0 -11
- package/lib/models/digicust/mean-of-transportation.model.d.ts +0 -30
- package/lib/models/digicust/mean-of-transportation.model.js +0 -21
- package/lib/models/digicust/membership.model.d.ts +0 -7
- package/lib/models/digicust/membership.model.js +0 -2
- package/lib/models/digicust/module.model.d.ts +0 -49
- package/lib/models/digicust/module.model.js +0 -27
- package/lib/models/digicust/notifications.model.d.ts +0 -13
- package/lib/models/digicust/notifications.model.js +0 -2
- package/lib/models/digicust/operationType.enum.d.ts +0 -15
- package/lib/models/digicust/operationType.enum.js +0 -20
- package/lib/models/digicust/package.model.d.ts +0 -17
- package/lib/models/digicust/package.model.js +0 -2
- package/lib/models/digicust/packingList.model.d.ts +0 -33
- package/lib/models/digicust/packingList.model.js +0 -2
- package/lib/models/digicust/preference-state.model.d.ts +0 -23
- package/lib/models/digicust/preference-state.model.js +0 -2
- package/lib/models/digicust/procedure.model.d.ts +0 -17
- package/lib/models/digicust/procedure.model.js +0 -10
- package/lib/models/digicust/project.model.d.ts +0 -30
- package/lib/models/digicust/project.model.js +0 -8
- package/lib/models/digicust/queue-fields.model.d.ts +0 -15
- package/lib/models/digicust/queue-fields.model.js +0 -2
- package/lib/models/digicust/queue.model.d.ts +0 -18
- package/lib/models/digicust/queue.model.js +0 -2
- package/lib/models/digicust/report.model.d.ts +0 -5
- package/lib/models/digicust/report.model.js +0 -2
- package/lib/models/digicust/special-measure.model.d.ts +0 -7
- package/lib/models/digicust/special-measure.model.js +0 -2
- package/lib/models/digicust/stats-case.model.d.ts +0 -12
- package/lib/models/digicust/stats-case.model.js +0 -2
- package/lib/models/digicust/subscription-info.model.d.ts +0 -13
- package/lib/models/digicust/subscription-info.model.js +0 -2
- package/lib/models/digicust/subscription.model.d.ts +0 -11
- package/lib/models/digicust/subscription.model.js +0 -2
- package/lib/models/digicust/tax-details.model.d.ts +0 -10
- package/lib/models/digicust/tax-details.model.js +0 -2
- package/lib/models/digicust/transit-item.model.d.ts +0 -28
- package/lib/models/digicust/transit-item.model.js +0 -67
- package/lib/models/digicust/type-of-business.enum.d.ts +0 -44
- package/lib/models/digicust/type-of-business.enum.js +0 -48
- package/lib/models/digicust/type-of-business.model.d.ts +0 -11
- package/lib/models/digicust/type-of-business.model.js +0 -2
- package/lib/models/digicust/uploaded-file.model.d.ts +0 -10
- package/lib/models/digicust/uploaded-file.model.js +0 -2
- package/lib/models/digicust/user.model.d.ts +0 -18
- package/lib/models/digicust/user.model.js +0 -2
- package/lib/models/digicust/waybill-type.model.d.ts +0 -15
- package/lib/models/digicust/waybill-type.model.js +0 -11
- package/lib/models/digicust/waybill.model.d.ts +0 -33
- package/lib/models/digicust/waybill.model.js +0 -2
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DigicustDocumentType = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Identifies different document types
|
|
6
|
-
*/
|
|
7
|
-
var DigicustDocumentType;
|
|
8
|
-
(function (DigicustDocumentType) {
|
|
9
|
-
DigicustDocumentType["Invoice"] = "invoice";
|
|
10
|
-
DigicustDocumentType["Waybill"] = "waybill";
|
|
11
|
-
DigicustDocumentType["PackingList"] = "packingList";
|
|
12
|
-
DigicustDocumentType["TaxInvoice"] = "taxInvoice";
|
|
13
|
-
DigicustDocumentType["CustomDocument"] = "customDocument";
|
|
14
|
-
DigicustDocumentType["ItemListing"] = "itemListing";
|
|
15
|
-
DigicustDocumentType["CostOverview"] = "costOverview";
|
|
16
|
-
DigicustDocumentType["DeclarationOfOrigin"] = "declarationOfOrigin";
|
|
17
|
-
DigicustDocumentType["PreferentialProofOfOrigin"] = "preferentialProofOfOrigin";
|
|
18
|
-
DigicustDocumentType["ProofOfDirectTransport"] = "proofOfDirectTransport";
|
|
19
|
-
})(DigicustDocumentType = exports.DigicustDocumentType || (exports.DigicustDocumentType = {}));
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { ClassificationStatus, DigicustDocumentType, DocumentCode, DocumentStatus, SubDocumentStatus, UserDocumentStatus } from ".";
|
|
2
|
-
import { DateTimeModel, RossumImportStatus } from "..";
|
|
3
|
-
import { AnalyzerMetadataModel } from "./AnalyzerMetadataModel.model";
|
|
4
|
-
import { ProcessingModel } from "./extractions/extraction.model";
|
|
5
|
-
/**
|
|
6
|
-
* Base model for different types of documents (e.g. waybills, invoices, ...)
|
|
7
|
-
*/
|
|
8
|
-
export interface DigicustDocumentModel {
|
|
9
|
-
id?: string;
|
|
10
|
-
queueId?: string;
|
|
11
|
-
caseId?: string;
|
|
12
|
-
projectId?: string;
|
|
13
|
-
customerId?: string;
|
|
14
|
-
extractId?: string;
|
|
15
|
-
fileName?: string;
|
|
16
|
-
documentType?: DigicustDocumentType;
|
|
17
|
-
documentCode?: DocumentCode;
|
|
18
|
-
documentStatus?: DocumentStatus;
|
|
19
|
-
userDocumentStatus?: UserDocumentStatus;
|
|
20
|
-
subDocumentStatus?: SubDocumentStatus;
|
|
21
|
-
classificationStatus?: ClassificationStatus;
|
|
22
|
-
processing?: ProcessingModel;
|
|
23
|
-
receivedAt?: Date;
|
|
24
|
-
code?: string;
|
|
25
|
-
reference?: string;
|
|
26
|
-
issueDate?: DateTimeModel;
|
|
27
|
-
isCondensed?: boolean;
|
|
28
|
-
[customField: string]: any;
|
|
29
|
-
analyzerMetadata?: AnalyzerMetadataModel;
|
|
30
|
-
modifiedBy?: {
|
|
31
|
-
id?: String;
|
|
32
|
-
displayName?: String;
|
|
33
|
-
date?: Date;
|
|
34
|
-
};
|
|
35
|
-
/**
|
|
36
|
-
* @deprecated
|
|
37
|
-
*/
|
|
38
|
-
rossumMetadata?: {
|
|
39
|
-
importStatus?: RossumImportStatus;
|
|
40
|
-
annotationId?: string;
|
|
41
|
-
queueId?: number;
|
|
42
|
-
exportOnConfirmed?: boolean;
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
export declare const condenseDocument: (document?: DigicustDocumentModel | undefined) => DigicustDocumentModel | null;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.condenseDocument = void 0;
|
|
4
|
-
var _1 = require(".");
|
|
5
|
-
var condenseDocument = function (document) {
|
|
6
|
-
var doc = document
|
|
7
|
-
? {
|
|
8
|
-
id: document.id,
|
|
9
|
-
caseId: document.caseId,
|
|
10
|
-
queueId: document.queueId,
|
|
11
|
-
fileName: document.fileName,
|
|
12
|
-
documentType: document.documentType,
|
|
13
|
-
documentStatus: document.documentStatus,
|
|
14
|
-
userDocumentStatus: document.UserDocumentStatus,
|
|
15
|
-
subDocumentStatus: document.SubDocumentStatus,
|
|
16
|
-
classificationStatus: document.classificationStatus,
|
|
17
|
-
code: document.code,
|
|
18
|
-
reference: document.reference,
|
|
19
|
-
issueDate: document.issueDate,
|
|
20
|
-
analyzerMetadata: document.analyzerMetadata,
|
|
21
|
-
isCondensed: true,
|
|
22
|
-
}
|
|
23
|
-
: null;
|
|
24
|
-
if ((doc === null || doc === void 0 ? void 0 : doc.documentType) === _1.DigicustDocumentType.Invoice) {
|
|
25
|
-
var invoice = doc;
|
|
26
|
-
if (invoice.items) {
|
|
27
|
-
invoice.items = invoice.items.map(function (item) {
|
|
28
|
-
var lineItem = (0, _1.condenseLineItem)(item);
|
|
29
|
-
if (!lineItem) {
|
|
30
|
-
return {};
|
|
31
|
-
}
|
|
32
|
-
return lineItem;
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
return doc;
|
|
37
|
-
};
|
|
38
|
-
exports.condenseDocument = condenseDocument;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Meta } from "../common";
|
|
2
|
-
import { DigicustDocumentType } from "./digicust-document-type.enum";
|
|
3
|
-
/**
|
|
4
|
-
* Coding of documents
|
|
5
|
-
*/
|
|
6
|
-
export interface DocumentCode extends Meta<DigicustDocumentType> {
|
|
7
|
-
NC_24000?: string;
|
|
8
|
-
Dokumentenarten?: string;
|
|
9
|
-
DE_I0200?: string;
|
|
10
|
-
/** Bescheinigungsbereich */
|
|
11
|
-
DE_I0200_Bereich?: string;
|
|
12
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Document Status for case document divided based on the usage
|
|
3
|
-
*/
|
|
4
|
-
export declare enum DocumentStatus {
|
|
5
|
-
Initial = "initial",
|
|
6
|
-
Processing = "processing",
|
|
7
|
-
UserClassifying = "user-classifying",
|
|
8
|
-
Extracting = "extracting",
|
|
9
|
-
UserExtracting = "user-extracting",
|
|
10
|
-
Error = "error",
|
|
11
|
-
Finished = "finished",
|
|
12
|
-
Review = "review"
|
|
13
|
-
}
|
|
14
|
-
export declare enum UserDocumentStatus {
|
|
15
|
-
Aborted = "aborted",
|
|
16
|
-
Postponed = "postponed",
|
|
17
|
-
Confirmed = "confirmed",
|
|
18
|
-
Deleted = "deleted",
|
|
19
|
-
Rejected = "rejected",
|
|
20
|
-
Exported = "exported",
|
|
21
|
-
Testing = "testing",
|
|
22
|
-
Validate = "validate"
|
|
23
|
-
}
|
|
24
|
-
export declare enum SubDocumentStatus {
|
|
25
|
-
manual = "manual",
|
|
26
|
-
inProgress = "In Progress",
|
|
27
|
-
completed = "completed",
|
|
28
|
-
failed = "failed"
|
|
29
|
-
}
|
|
30
|
-
export declare enum ClassificationStatus {
|
|
31
|
-
Edit = "edit",
|
|
32
|
-
OnHold = "onhold",
|
|
33
|
-
Edited = "edited",
|
|
34
|
-
Refused = "refused",
|
|
35
|
-
Finished = "finished",
|
|
36
|
-
Erased = "erased",
|
|
37
|
-
OtherDocs = "otherdocs"
|
|
38
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ClassificationStatus = exports.SubDocumentStatus = exports.UserDocumentStatus = exports.DocumentStatus = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Document Status for case document divided based on the usage
|
|
6
|
-
*/
|
|
7
|
-
var DocumentStatus;
|
|
8
|
-
(function (DocumentStatus) {
|
|
9
|
-
DocumentStatus["Initial"] = "initial";
|
|
10
|
-
DocumentStatus["Processing"] = "processing";
|
|
11
|
-
DocumentStatus["UserClassifying"] = "user-classifying";
|
|
12
|
-
DocumentStatus["Extracting"] = "extracting";
|
|
13
|
-
DocumentStatus["UserExtracting"] = "user-extracting";
|
|
14
|
-
DocumentStatus["Error"] = "error";
|
|
15
|
-
DocumentStatus["Finished"] = "finished";
|
|
16
|
-
DocumentStatus["Review"] = "review";
|
|
17
|
-
})(DocumentStatus = exports.DocumentStatus || (exports.DocumentStatus = {}));
|
|
18
|
-
var UserDocumentStatus;
|
|
19
|
-
(function (UserDocumentStatus) {
|
|
20
|
-
UserDocumentStatus["Aborted"] = "aborted";
|
|
21
|
-
UserDocumentStatus["Postponed"] = "postponed";
|
|
22
|
-
UserDocumentStatus["Confirmed"] = "confirmed";
|
|
23
|
-
UserDocumentStatus["Deleted"] = "deleted";
|
|
24
|
-
UserDocumentStatus["Rejected"] = "rejected";
|
|
25
|
-
UserDocumentStatus["Exported"] = "exported";
|
|
26
|
-
UserDocumentStatus["Testing"] = "testing";
|
|
27
|
-
UserDocumentStatus["Validate"] = "validate";
|
|
28
|
-
})(UserDocumentStatus = exports.UserDocumentStatus || (exports.UserDocumentStatus = {}));
|
|
29
|
-
var SubDocumentStatus;
|
|
30
|
-
(function (SubDocumentStatus) {
|
|
31
|
-
SubDocumentStatus["manual"] = "manual";
|
|
32
|
-
SubDocumentStatus["inProgress"] = "In Progress";
|
|
33
|
-
SubDocumentStatus["completed"] = "completed";
|
|
34
|
-
SubDocumentStatus["failed"] = "failed";
|
|
35
|
-
})(SubDocumentStatus = exports.SubDocumentStatus || (exports.SubDocumentStatus = {}));
|
|
36
|
-
var ClassificationStatus;
|
|
37
|
-
(function (ClassificationStatus) {
|
|
38
|
-
ClassificationStatus["Edit"] = "edit";
|
|
39
|
-
ClassificationStatus["OnHold"] = "onhold";
|
|
40
|
-
ClassificationStatus["Edited"] = "edited";
|
|
41
|
-
ClassificationStatus["Refused"] = "refused";
|
|
42
|
-
ClassificationStatus["Finished"] = "finished";
|
|
43
|
-
ClassificationStatus["Erased"] = "erased";
|
|
44
|
-
ClassificationStatus["OtherDocs"] = "otherdocs";
|
|
45
|
-
})(ClassificationStatus = exports.ClassificationStatus || (exports.ClassificationStatus = {}));
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.InvoiceLanguage = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Invoice Languages Enum
|
|
6
|
-
*/
|
|
7
|
-
var InvoiceLanguage;
|
|
8
|
-
(function (InvoiceLanguage) {
|
|
9
|
-
InvoiceLanguage["EN"] = "eng";
|
|
10
|
-
InvoiceLanguage["DE"] = "deu";
|
|
11
|
-
InvoiceLanguage["TR"] = "t\u00FCrk";
|
|
12
|
-
InvoiceLanguage["FR"] = "french";
|
|
13
|
-
InvoiceLanguage["SP"] = "spanish";
|
|
14
|
-
InvoiceLanguage["SK"] = "slowakian";
|
|
15
|
-
InvoiceLanguage["HU"] = "hungarian";
|
|
16
|
-
InvoiceLanguage["IT"] = "italian";
|
|
17
|
-
})(InvoiceLanguage = exports.InvoiceLanguage || (exports.InvoiceLanguage = {}));
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Base model of an event (e.g. webhook or email)
|
|
3
|
-
*/
|
|
4
|
-
export interface Event {
|
|
5
|
-
checkpoint?: string;
|
|
6
|
-
suppressMultipleExecutions?: boolean;
|
|
7
|
-
type?: EventType;
|
|
8
|
-
}
|
|
9
|
-
export declare enum EventType {
|
|
10
|
-
webhook = "webhook",
|
|
11
|
-
mail = "email",
|
|
12
|
-
sftp = "sftp",
|
|
13
|
-
mountedSFTP = "mountedSFTP"
|
|
14
|
-
}
|
|
15
|
-
export interface WebhookEvent extends Event {
|
|
16
|
-
type: EventType.webhook;
|
|
17
|
-
url?: string;
|
|
18
|
-
method?: "get" | "post" | "patch" | "delete" | "put";
|
|
19
|
-
body?: any;
|
|
20
|
-
/** mapping in JSONATA format (https://www.npmjs.com/package/jsonata) */
|
|
21
|
-
bodyMapping?: string;
|
|
22
|
-
contentType?: string;
|
|
23
|
-
}
|
|
24
|
-
export interface SFTPEvent extends Event {
|
|
25
|
-
type: EventType.sftp;
|
|
26
|
-
/** How to map the data */
|
|
27
|
-
caseFileMapping: CaseFileMapping;
|
|
28
|
-
"sftp-password": string;
|
|
29
|
-
"sftp-login-name": string;
|
|
30
|
-
"sftp-port": string;
|
|
31
|
-
"sftp-dns-name": string;
|
|
32
|
-
"sftp-path": string;
|
|
33
|
-
}
|
|
34
|
-
export interface EmailEvent extends Event {
|
|
35
|
-
type: EventType.mail;
|
|
36
|
-
emailAddress?: string;
|
|
37
|
-
title?: string;
|
|
38
|
-
/** mapping in JSONATA format (https://www.npmjs.com/package/jsonata) */
|
|
39
|
-
titleMapping?: string;
|
|
40
|
-
body?: any;
|
|
41
|
-
/** mapping in JSONATA format (https://www.npmjs.com/package/jsonata) */
|
|
42
|
-
bodyMapping?: string;
|
|
43
|
-
attachDocuments?: {
|
|
44
|
-
active?: boolean;
|
|
45
|
-
/** mapping in JSONATA format (https://www.npmjs.com/package/jsonata) */
|
|
46
|
-
fileNameMapping?: string;
|
|
47
|
-
};
|
|
48
|
-
attachCase?: {
|
|
49
|
-
active?: boolean;
|
|
50
|
-
} & CaseFileMapping;
|
|
51
|
-
}
|
|
52
|
-
export interface CaseFileMapping {
|
|
53
|
-
format?: "JSON" | "CSV" | "XML" | "TXT";
|
|
54
|
-
/** mapping in JSONATA format (https://www.npmjs.com/package/jsonata) */
|
|
55
|
-
fileNameMapping?: string;
|
|
56
|
-
/** mapping in JSONATA format (https://www.npmjs.com/package/jsonata) */
|
|
57
|
-
mapping?: string;
|
|
58
|
-
/** Delimiter for CSV mapping */
|
|
59
|
-
csvSeparator?: string;
|
|
60
|
-
/** Include headers in CSV */
|
|
61
|
-
includeHeaders?: boolean;
|
|
62
|
-
/** Remove non-latin symbols */
|
|
63
|
-
removeAccents?: boolean;
|
|
64
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EventType = void 0;
|
|
4
|
-
var EventType;
|
|
5
|
-
(function (EventType) {
|
|
6
|
-
EventType["webhook"] = "webhook";
|
|
7
|
-
EventType["mail"] = "email";
|
|
8
|
-
EventType["sftp"] = "sftp";
|
|
9
|
-
EventType["mountedSFTP"] = "mountedSFTP";
|
|
10
|
-
})(EventType = exports.EventType || (exports.EventType = {}));
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { DigicustDocumentType } from ".";
|
|
2
|
-
import { Event } from "./event.model";
|
|
3
|
-
import { ProcedureMode } from "./procedure.model";
|
|
4
|
-
/**
|
|
5
|
-
* Execution strategies are customer-configurable plans on how to process a specific case.
|
|
6
|
-
*/
|
|
7
|
-
export interface ExecutionStrategy {
|
|
8
|
-
id?: string;
|
|
9
|
-
alias?: string;
|
|
10
|
-
moduleId?: string;
|
|
11
|
-
customerId?: string;
|
|
12
|
-
projectId?: string;
|
|
13
|
-
isCondensed?: boolean;
|
|
14
|
-
subscriptionId?: string;
|
|
15
|
-
procedureCode?: string;
|
|
16
|
-
importViaSFTP?: {
|
|
17
|
-
active?: boolean;
|
|
18
|
-
"sftp-password"?: string;
|
|
19
|
-
"sftp-login-name"?: string;
|
|
20
|
-
"sftp-port"?: string;
|
|
21
|
-
"sftp-dns-name"?: string;
|
|
22
|
-
"sftp-inbound"?: string;
|
|
23
|
-
"sftp-outbound"?: string;
|
|
24
|
-
};
|
|
25
|
-
whitelistedImportEmails?: string[];
|
|
26
|
-
defaultClassification?: DigicustDocumentType;
|
|
27
|
-
defaultProcedureMode?: ProcedureMode;
|
|
28
|
-
dataExtraction?: {
|
|
29
|
-
active?: boolean;
|
|
30
|
-
exportOnConfirmedStrategy?: boolean;
|
|
31
|
-
queueMapping?: {
|
|
32
|
-
documentType: DigicustDocumentType;
|
|
33
|
-
queueId: string;
|
|
34
|
-
}[];
|
|
35
|
-
classification?: {
|
|
36
|
-
/** Defines whether a classification shall be assumed correct
|
|
37
|
-
* if a specific confidence level is reached */
|
|
38
|
-
automateOnMinConfidence?: boolean;
|
|
39
|
-
/** Value between 1 (very confident) to 0 (no confidence) */
|
|
40
|
-
automateMinConfidence?: number;
|
|
41
|
-
};
|
|
42
|
-
/**
|
|
43
|
-
* @deprecated
|
|
44
|
-
*/
|
|
45
|
-
rossumExportOnConfirmed?: boolean;
|
|
46
|
-
/** for rossum */
|
|
47
|
-
overrideQueues?: {
|
|
48
|
-
documentType: string;
|
|
49
|
-
queue: number;
|
|
50
|
-
}[];
|
|
51
|
-
};
|
|
52
|
-
dataNormalization?: {
|
|
53
|
-
active?: boolean;
|
|
54
|
-
/** Determines how to deal with additional costs like shipping costs, packing, ... */
|
|
55
|
-
additionalCostsStrategy?: "addToFirstItem" | "splitToAllItems";
|
|
56
|
-
allowDateInOrderNumber?: boolean;
|
|
57
|
-
};
|
|
58
|
-
dataValidation?: {
|
|
59
|
-
active?: boolean;
|
|
60
|
-
};
|
|
61
|
-
hsClassification?: {
|
|
62
|
-
active?: boolean;
|
|
63
|
-
research?: boolean;
|
|
64
|
-
};
|
|
65
|
-
/** @deprecated */
|
|
66
|
-
dakosySubmission?: {
|
|
67
|
-
active?: boolean;
|
|
68
|
-
};
|
|
69
|
-
dataIntegration?: {
|
|
70
|
-
active?: boolean;
|
|
71
|
-
};
|
|
72
|
-
pseudonymization?: {
|
|
73
|
-
active?: boolean;
|
|
74
|
-
interval?: number;
|
|
75
|
-
time?: number;
|
|
76
|
-
};
|
|
77
|
-
isProcessWithDextor: boolean;
|
|
78
|
-
submission?: {
|
|
79
|
-
active?: boolean;
|
|
80
|
-
vendor?: "dakosy";
|
|
81
|
-
config?: {
|
|
82
|
-
"sftp-password"?: string;
|
|
83
|
-
"sftp-login-name"?: string;
|
|
84
|
-
"sftp-port"?: string;
|
|
85
|
-
"sftp-dns-name"?: string;
|
|
86
|
-
"sftp-inbound"?: string;
|
|
87
|
-
"sftp-outbound"?: string;
|
|
88
|
-
"partner-id"?: string;
|
|
89
|
-
};
|
|
90
|
-
} | {
|
|
91
|
-
active?: boolean;
|
|
92
|
-
vendor?: "aeb";
|
|
93
|
-
config?: {
|
|
94
|
-
"client-name"?: string;
|
|
95
|
-
"user-name"?: string;
|
|
96
|
-
password?: string;
|
|
97
|
-
endpoint?: string;
|
|
98
|
-
"client-system-id"?: string;
|
|
99
|
-
"client-ident-code"?: string;
|
|
100
|
-
};
|
|
101
|
-
};
|
|
102
|
-
events: Event[];
|
|
103
|
-
automated?: boolean;
|
|
104
|
-
}
|
|
105
|
-
export declare const condenseExecutionStrategy: (strategy?: ExecutionStrategy | undefined) => ExecutionStrategy | null;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.condenseExecutionStrategy = void 0;
|
|
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); };
|
|
13
|
-
exports.condenseExecutionStrategy = condenseExecutionStrategy;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Bbox } from "../../common/bbox.model";
|
|
2
|
-
import { ExtractionField } from ".";
|
|
3
|
-
export interface ExtractionGrid {
|
|
4
|
-
id?: string;
|
|
5
|
-
label?: string;
|
|
6
|
-
bbox?: Bbox;
|
|
7
|
-
pageId?: string;
|
|
8
|
-
columns?: ExtractionGridColumn[];
|
|
9
|
-
items?: ExtractionGridItem[];
|
|
10
|
-
/** Groups multiple grids that belong together */
|
|
11
|
-
gridGroupId?: string;
|
|
12
|
-
}
|
|
13
|
-
export interface ExtractionGridItem {
|
|
14
|
-
id?: string;
|
|
15
|
-
fields?: ExtractionField[];
|
|
16
|
-
bbox?: Bbox;
|
|
17
|
-
}
|
|
18
|
-
export interface ExtractionGridColumn {
|
|
19
|
-
id?: string;
|
|
20
|
-
label?: string;
|
|
21
|
-
bbox?: Bbox;
|
|
22
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { Bbox } from "../../common/bbox.model";
|
|
2
|
-
import { ExtractionGrid } from ".";
|
|
3
|
-
/**
|
|
4
|
-
* Output of the data extraction
|
|
5
|
-
*/
|
|
6
|
-
export interface Extraction {
|
|
7
|
-
id?: string;
|
|
8
|
-
customerId?: string;
|
|
9
|
-
projectId?: string;
|
|
10
|
-
caseId?: string;
|
|
11
|
-
documentId?: string;
|
|
12
|
-
pages?: ExtractionPage[];
|
|
13
|
-
groups?: ExtractionGroup[];
|
|
14
|
-
grids?: ExtractionGrid[];
|
|
15
|
-
errors?: Array<Error>;
|
|
16
|
-
originalFileName?: string;
|
|
17
|
-
fileName?: string;
|
|
18
|
-
documentType?: string;
|
|
19
|
-
documentStatus?: string;
|
|
20
|
-
userDocumentStatus?: string;
|
|
21
|
-
subDocumentStatus?: string;
|
|
22
|
-
receivedAt?: string;
|
|
23
|
-
code?: string;
|
|
24
|
-
reference?: string;
|
|
25
|
-
issueDate?: string;
|
|
26
|
-
isCondensed?: boolean;
|
|
27
|
-
processing?: ProcessingModel;
|
|
28
|
-
analyzerMetadata?: {
|
|
29
|
-
importStatus?: string;
|
|
30
|
-
annotationId?: string;
|
|
31
|
-
queueId?: string;
|
|
32
|
-
exportOnConfirmed?: boolean;
|
|
33
|
-
};
|
|
34
|
-
queueId?: string;
|
|
35
|
-
isLoading?: boolean;
|
|
36
|
-
}
|
|
37
|
-
export interface ProcessingModel {
|
|
38
|
-
status?: "done" | "inprocess" | "error";
|
|
39
|
-
percentage?: number;
|
|
40
|
-
date?: Date;
|
|
41
|
-
errorMessage?: string;
|
|
42
|
-
}
|
|
43
|
-
export interface ExtractionGroup {
|
|
44
|
-
id?: string;
|
|
45
|
-
label?: string;
|
|
46
|
-
fields?: ExtractionField[];
|
|
47
|
-
}
|
|
48
|
-
export interface ExtractionField {
|
|
49
|
-
id?: string;
|
|
50
|
-
label?: string;
|
|
51
|
-
confidence?: number;
|
|
52
|
-
value?: string;
|
|
53
|
-
bbox?: Bbox;
|
|
54
|
-
pageId?: string;
|
|
55
|
-
name?: string;
|
|
56
|
-
active?: boolean;
|
|
57
|
-
dataType?: string;
|
|
58
|
-
}
|
|
59
|
-
export interface ExtractionPage {
|
|
60
|
-
id?: string;
|
|
61
|
-
width?: number;
|
|
62
|
-
height?: number;
|
|
63
|
-
/** label of classification */
|
|
64
|
-
label?: string;
|
|
65
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./extraction.model"), exports);
|
|
18
|
-
__exportStar(require("./extraction-grid.model"), exports);
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { DigicustDocumentType } from ".";
|
|
2
|
-
import { FrontendSmallSection } from "./frontend-small-section.mode";
|
|
3
|
-
export interface FrontendBigSection {
|
|
4
|
-
title: String;
|
|
5
|
-
icon: String;
|
|
6
|
-
documentType?: DigicustDocumentType;
|
|
7
|
-
subInfo: Array<{
|
|
8
|
-
title: String;
|
|
9
|
-
boxes: Array<String>;
|
|
10
|
-
}>;
|
|
11
|
-
sections: Array<FrontendSmallSection>;
|
|
12
|
-
pagination: Boolean;
|
|
13
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { DialogWindow } from "../common/dialog-window.model";
|
|
2
|
-
import { ExtraStyles } from "../common/extra-styles.model";
|
|
3
|
-
import { FrontendFields } from "../common/frontend-fields.model";
|
|
4
|
-
import { SectionType } from "../common/section-type.enum";
|
|
5
|
-
import { FrontendGroup } from "./frontend-group.model";
|
|
6
|
-
export interface FrontendSmallSection {
|
|
7
|
-
title: String;
|
|
8
|
-
groups: Array<FrontendGroup>;
|
|
9
|
-
sectionType: SectionType;
|
|
10
|
-
items?: Array<Array<FrontendFields>>;
|
|
11
|
-
extraStyles?: ExtraStyles;
|
|
12
|
-
dialogWindow?: DialogWindow;
|
|
13
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Maps an HS code according to a predefined pattern
|
|
3
|
-
*/
|
|
4
|
-
export interface HSCodeMapping {
|
|
5
|
-
id?: string;
|
|
6
|
-
customerId?: string;
|
|
7
|
-
projectId?: string;
|
|
8
|
-
conditions: {
|
|
9
|
-
materialNumber?: string;
|
|
10
|
-
buyerArticleNumber?: string;
|
|
11
|
-
CAS?: string;
|
|
12
|
-
description?: string;
|
|
13
|
-
hsCode?: string;
|
|
14
|
-
countryOfOrigin?: string;
|
|
15
|
-
shipperVAT?: string;
|
|
16
|
-
shipperEORI?: string;
|
|
17
|
-
shipperName?: string;
|
|
18
|
-
code?: string;
|
|
19
|
-
};
|
|
20
|
-
mapTo: {
|
|
21
|
-
hsCode?: string;
|
|
22
|
-
description?: string;
|
|
23
|
-
};
|
|
24
|
-
source?: string;
|
|
25
|
-
createdAt?: Date;
|
|
26
|
-
}
|