digicust_types 1.7.135 → 1.7.139
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/contracts/start-data-extraction.dto.d.ts +1 -1
- package/lib/contracts/start-document-merger.dto.d.ts +1 -1
- package/lib/models/digicust/aggregated-case-data.model.d.ts +1 -1
- package/lib/models/digicust/customsOffice.model.d.ts +3 -1
- package/lib/models/digicust/documents/custom-document.model.d.ts +8 -0
- package/lib/models/digicust/documents/custom-document.model.js +2 -0
- package/lib/models/digicust/documents/digicust-document-type.enum.d.ts +15 -0
- package/lib/models/digicust/documents/digicust-document-type.enum.js +19 -0
- package/lib/models/digicust/documents/digicust-document.model.d.ts +45 -0
- package/lib/models/digicust/documents/digicust-document.model.js +38 -0
- package/lib/models/digicust/documents/document-code.model.d.ts +12 -0
- package/lib/models/digicust/documents/document-code.model.js +2 -0
- package/lib/models/digicust/documents/document-status.enum.d.ts +38 -0
- package/lib/models/digicust/documents/document-status.enum.js +45 -0
- package/lib/models/digicust/documents/export-declaration.model.d.ts +28 -0
- package/lib/models/digicust/documents/export-declaration.model.js +2 -0
- package/lib/models/digicust/documents/index.d.ts +11 -0
- package/lib/models/digicust/documents/index.js +27 -0
- package/lib/models/digicust/documents/invoice-type.model.d.ts +9 -0
- package/lib/models/digicust/documents/invoice-type.model.js +2 -0
- package/lib/models/digicust/documents/invoice.model.d.ts +62 -0
- package/lib/models/digicust/documents/invoice.model.js +2 -0
- package/lib/models/digicust/documents/packing-list.model.d.ts +33 -0
- package/lib/models/digicust/documents/packing-list.model.js +2 -0
- package/lib/models/digicust/documents/waybill-type.model.d.ts +15 -0
- package/lib/models/digicust/documents/waybill-type.model.js +11 -0
- package/lib/models/digicust/documents/waybill.model.d.ts +33 -0
- package/lib/models/digicust/documents/waybill.model.js +2 -0
- package/lib/models/digicust/execution-strategy.model.d.ts +1 -1
- package/lib/models/digicust/frontend-big-section.model.d.ts +1 -1
- package/lib/models/digicust/index.d.ts +1 -9
- package/lib/models/digicust/index.js +2 -10
- package/lib/models/digicust/line-item.model.d.ts +4 -1
- package/lib/models/digicust/transit-item.model.d.ts +2 -2
- package/lib/models/digicust/transit-item.model.js +5 -3
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ExecutionStrategy } from "../models";
|
|
2
|
-
import { DigicustDocumentType } from "../models/digicust/digicust-document-type.enum";
|
|
2
|
+
import { DigicustDocumentType } from "../models/digicust/documents/digicust-document-type.enum";
|
|
3
3
|
export interface StartDataExtractionDto {
|
|
4
4
|
caseId: string;
|
|
5
5
|
customerId: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ExecutionStrategy, UploadedFileModel } from "../models";
|
|
2
|
-
import { DigicustDocumentType } from "../models/digicust/digicust-document-type.enum";
|
|
2
|
+
import { DigicustDocumentType } from "../models/digicust/documents/digicust-document-type.enum";
|
|
3
3
|
export interface StartDocumentMerger extends UploadedFileModel {
|
|
4
4
|
caseId: string;
|
|
5
5
|
customerId: string;
|
|
@@ -13,7 +13,7 @@ import { CustomsOffice } from "./customsOffice.model";
|
|
|
13
13
|
import { TypeOfBusiness } from "./";
|
|
14
14
|
import { TransitItemModel } from "./transit-item.model";
|
|
15
15
|
import { CostIntersection } from "./cost-intersection.model";
|
|
16
|
-
import { WaybillTypeModel } from "./
|
|
16
|
+
import { WaybillTypeModel } from "./documents";
|
|
17
17
|
/**
|
|
18
18
|
* Used to store aggregated information of a case
|
|
19
19
|
*/
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { Meta } from "../common";
|
|
1
|
+
import { AddressModel, Meta } from "../common";
|
|
2
2
|
export interface CustomsOffice extends Meta<any> {
|
|
3
3
|
code?: string;
|
|
4
4
|
officeType?: CustomsOfficeType;
|
|
5
|
+
address?: AddressModel;
|
|
6
|
+
name?: string;
|
|
5
7
|
}
|
|
6
8
|
export declare enum CustomsOfficeType {
|
|
7
9
|
entry = "Entry",
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DigicustDocumentType } from "./digicust-document-type.enum";
|
|
2
|
+
import { DigicustDocumentModel } from "./digicust-document.model";
|
|
3
|
+
/**
|
|
4
|
+
* Identifies a user-specified case document
|
|
5
|
+
*/
|
|
6
|
+
export interface CustomDocumentModel extends DigicustDocumentModel {
|
|
7
|
+
documentType: DigicustDocumentType.CustomDocument;
|
|
8
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Identifies different document types
|
|
3
|
+
*/
|
|
4
|
+
export declare enum DigicustDocumentType {
|
|
5
|
+
Invoice = "invoice",
|
|
6
|
+
Waybill = "waybill",
|
|
7
|
+
PackingList = "packingList",
|
|
8
|
+
TaxInvoice = "taxInvoice",
|
|
9
|
+
CustomDocument = "customDocument",
|
|
10
|
+
ItemListing = "itemListing",
|
|
11
|
+
CostOverview = "costOverview",
|
|
12
|
+
DeclarationOfOrigin = "declarationOfOrigin",
|
|
13
|
+
PreferentialProofOfOrigin = "preferentialProofOfOrigin",
|
|
14
|
+
ProofOfDirectTransport = "proofOfDirectTransport"
|
|
15
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
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 = {}));
|
|
@@ -0,0 +1,45 @@
|
|
|
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;
|
|
@@ -0,0 +1,38 @@
|
|
|
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;
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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 = {}));
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { AddressModel, CompanyModel, Meta, Weight } from "../../common";
|
|
2
|
+
import { CustomsOffice } from "../customsOffice.model";
|
|
3
|
+
import { LineItemModel } from "../line-item.model";
|
|
4
|
+
import { MeanOfTransportation } from "../mean-of-transportation.model";
|
|
5
|
+
import { Package } from "../package.model";
|
|
6
|
+
import { DigicustDocumentModel } from "./digicust-document.model";
|
|
7
|
+
/**
|
|
8
|
+
* Identifies an Export Declaration
|
|
9
|
+
*/
|
|
10
|
+
export interface ExportDeclaration extends DigicustDocumentModel {
|
|
11
|
+
shipper?: CompanyModel;
|
|
12
|
+
recipient?: CompanyModel;
|
|
13
|
+
applicant?: CompanyModel;
|
|
14
|
+
exportCustomsOffice?: CustomsOffice;
|
|
15
|
+
exitCustomsOffice?: CustomsOffice;
|
|
16
|
+
exportingCountry?: AddressModel;
|
|
17
|
+
destinationCountry?: AddressModel;
|
|
18
|
+
transitCountry?: AddressModel;
|
|
19
|
+
mrnNumber?: Meta<string>;
|
|
20
|
+
declarationType?: Meta<string>;
|
|
21
|
+
referenceNumber?: Meta<string>;
|
|
22
|
+
meansOfTransportation?: MeanOfTransportation[];
|
|
23
|
+
customsSealNumber?: Meta<string>;
|
|
24
|
+
goodsLocation?: AddressModel;
|
|
25
|
+
totalGrossWeight?: Weight;
|
|
26
|
+
packages?: Package[];
|
|
27
|
+
items?: LineItemModel[];
|
|
28
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from "./invoice-type.model";
|
|
2
|
+
export * from "./invoice.model";
|
|
3
|
+
export * from "./packing-list.model";
|
|
4
|
+
export * from "./waybill-type.model";
|
|
5
|
+
export * from "./waybill.model";
|
|
6
|
+
export * from "./export-declaration.model";
|
|
7
|
+
export * from "./custom-document.model";
|
|
8
|
+
export * from "./digicust-document.model";
|
|
9
|
+
export * from "./digicust-document-type.enum";
|
|
10
|
+
export * from "./document-status.enum";
|
|
11
|
+
export * from "./document-code.model";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
// Invoice
|
|
14
|
+
__exportStar(require("./invoice-type.model"), exports);
|
|
15
|
+
__exportStar(require("./invoice.model"), exports);
|
|
16
|
+
// Packing List
|
|
17
|
+
__exportStar(require("./packing-list.model"), exports);
|
|
18
|
+
// Waybill
|
|
19
|
+
__exportStar(require("./waybill-type.model"), exports);
|
|
20
|
+
__exportStar(require("./waybill.model"), exports);
|
|
21
|
+
// customs declarations
|
|
22
|
+
__exportStar(require("./export-declaration.model"), exports);
|
|
23
|
+
__exportStar(require("./custom-document.model"), exports);
|
|
24
|
+
__exportStar(require("./digicust-document.model"), exports);
|
|
25
|
+
__exportStar(require("./digicust-document-type.enum"), exports);
|
|
26
|
+
__exportStar(require("./document-status.enum"), exports);
|
|
27
|
+
__exportStar(require("./document-code.model"), exports);
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { DigicustDocumentModel, IncotermModel, InvoiceType, LineItemModel, MeanOfTransportation, Package, TaxDetailsModel, TradePreference, TypeOfBusiness } from "../";
|
|
2
|
+
import { AddressModel, CompanyModel, Currency, DateTimeModel, Dimensions, LanguageModel, Meta, Money, PackageType, Weight, WeightUnit } from "../../";
|
|
3
|
+
/**
|
|
4
|
+
* Identifies an invoice
|
|
5
|
+
*/
|
|
6
|
+
export interface InvoiceModel extends DigicustDocumentModel {
|
|
7
|
+
createdAt?: Date;
|
|
8
|
+
invoiceNumber?: Meta<string>;
|
|
9
|
+
waybillNumber?: Meta<string>;
|
|
10
|
+
invoiceType?: InvoiceType;
|
|
11
|
+
language?: LanguageModel;
|
|
12
|
+
invoiceDate?: DateTimeModel;
|
|
13
|
+
sellerOrderNumber?: Meta<string>;
|
|
14
|
+
buyerOrderNumber?: Meta<string>;
|
|
15
|
+
referenceNumber?: Meta<string>;
|
|
16
|
+
deliveryNote?: Meta<string>;
|
|
17
|
+
packingList?: Meta<string>;
|
|
18
|
+
meansOfTransportation?: MeanOfTransportation[];
|
|
19
|
+
typeOfBusiness?: TypeOfBusiness;
|
|
20
|
+
incoterm?: IncotermModel;
|
|
21
|
+
placeIncoterm?: AddressModel;
|
|
22
|
+
countryOfOrigin?: AddressModel;
|
|
23
|
+
generalHsCode?: Meta<string>;
|
|
24
|
+
generalGoodsDescription?: Meta<string>;
|
|
25
|
+
CAS?: Meta<string>;
|
|
26
|
+
dualUseApprovalNumber?: Meta<string>;
|
|
27
|
+
substanceCharacteristics?: Meta<string>;
|
|
28
|
+
intendedApplication?: Meta<string>;
|
|
29
|
+
tradePreference?: TradePreference;
|
|
30
|
+
preferenceInformation?: Meta<string>;
|
|
31
|
+
typeOfPackage?: PackageType;
|
|
32
|
+
weight?: Weight;
|
|
33
|
+
netWeight?: Weight;
|
|
34
|
+
weightUnit?: Meta<WeightUnit>;
|
|
35
|
+
packageDimensions?: Dimensions;
|
|
36
|
+
numberOfShipments?: Meta<number>;
|
|
37
|
+
packages?: Package[];
|
|
38
|
+
totalValueExcludingCharges?: Money;
|
|
39
|
+
totalValueWithoutTax?: Money;
|
|
40
|
+
totalTax?: Money;
|
|
41
|
+
licenseFee?: Money;
|
|
42
|
+
otherPayments?: Money;
|
|
43
|
+
shippingCost?: Money;
|
|
44
|
+
packagingCosts?: Money;
|
|
45
|
+
totalValue?: Money;
|
|
46
|
+
customsValue?: Money;
|
|
47
|
+
discount?: Money;
|
|
48
|
+
insuranceCosts?: Money;
|
|
49
|
+
currency?: Meta<Currency>;
|
|
50
|
+
taxDetails?: Array<TaxDetailsModel>;
|
|
51
|
+
paymentAccountNumber?: Meta<string>;
|
|
52
|
+
paymentBankCode?: Meta<string>;
|
|
53
|
+
paymentIBAN?: Meta<string>;
|
|
54
|
+
paymentBIC?: Meta<string>;
|
|
55
|
+
dueDate?: DateTimeModel;
|
|
56
|
+
items?: LineItemModel[];
|
|
57
|
+
itemIds?: string[];
|
|
58
|
+
shipper?: CompanyModel;
|
|
59
|
+
recipient?: CompanyModel;
|
|
60
|
+
consignee?: CompanyModel;
|
|
61
|
+
beneficiary?: CompanyModel;
|
|
62
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { CompanyModel, Currency, DateTimeModel, Dimensions, LanguageModel, Meta, Money, PackageType, Weight } from "../../common";
|
|
2
|
+
import { DigicustDocumentModel } from "./digicust-document.model";
|
|
3
|
+
import { LineItemModel } from "../line-item.model";
|
|
4
|
+
export interface PackingListModel extends DigicustDocumentModel {
|
|
5
|
+
shipper?: CompanyModel;
|
|
6
|
+
invoiceRecipient?: CompanyModel;
|
|
7
|
+
consignee?: CompanyModel;
|
|
8
|
+
language?: LanguageModel;
|
|
9
|
+
packingListNumber?: Meta<string>;
|
|
10
|
+
issueDate?: DateTimeModel;
|
|
11
|
+
invoiceNumber?: Meta<string>;
|
|
12
|
+
sellerOrderNumber?: Meta<string>;
|
|
13
|
+
buyerOrderNumber?: Meta<string>;
|
|
14
|
+
referenceNumber?: Meta<string>;
|
|
15
|
+
waybillNumber?: Meta<string>;
|
|
16
|
+
deliveryNote?: Meta<string>;
|
|
17
|
+
totalGrossWeight?: Weight;
|
|
18
|
+
totalNetWeight?: Weight;
|
|
19
|
+
typeOfPackage?: PackageType;
|
|
20
|
+
packageDimensions?: Dimensions;
|
|
21
|
+
amountOfPackages?: Meta<Number>;
|
|
22
|
+
totalExcludingCharges?: Money;
|
|
23
|
+
insuranceCosts?: Money;
|
|
24
|
+
packagingCosts?: Money;
|
|
25
|
+
discount?: Money;
|
|
26
|
+
licenseFee?: Money;
|
|
27
|
+
otherPayments?: Money;
|
|
28
|
+
shippingCosts?: Money;
|
|
29
|
+
totalValue?: Money;
|
|
30
|
+
customsValue?: Money;
|
|
31
|
+
currency?: Meta<Currency>;
|
|
32
|
+
items?: LineItemModel[];
|
|
33
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Meta } from "../..";
|
|
2
|
+
export interface WaybillTypeModel extends Meta<WaybillType> {
|
|
3
|
+
NC_24000?: string;
|
|
4
|
+
Dokumentenarten?: string;
|
|
5
|
+
DE_I0200?: string;
|
|
6
|
+
/** Bescheinigungsbereich */
|
|
7
|
+
DE_I0200_Bereich?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare enum WaybillType {
|
|
10
|
+
airWaybill = "airWaybill",
|
|
11
|
+
seaWaybill = "seaWaybill",
|
|
12
|
+
railWaybill = "railWaybill",
|
|
13
|
+
roadWaybill = "roadWaybill",
|
|
14
|
+
inlandShippingWaybill = "inlandShippingWaybill"
|
|
15
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WaybillType = void 0;
|
|
4
|
+
var WaybillType;
|
|
5
|
+
(function (WaybillType) {
|
|
6
|
+
WaybillType["airWaybill"] = "airWaybill";
|
|
7
|
+
WaybillType["seaWaybill"] = "seaWaybill";
|
|
8
|
+
WaybillType["railWaybill"] = "railWaybill";
|
|
9
|
+
WaybillType["roadWaybill"] = "roadWaybill";
|
|
10
|
+
WaybillType["inlandShippingWaybill"] = "inlandShippingWaybill";
|
|
11
|
+
})(WaybillType = exports.WaybillType || (exports.WaybillType = {}));
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { AddressModel, CompanyModel, Currency, DateTimeModel, Money, Weight } from "../../common";
|
|
2
|
+
import { DigicustDocumentModel } from "./";
|
|
3
|
+
import { Meta } from "../../common/meta";
|
|
4
|
+
import { IncotermModel } from "../incoterm.model";
|
|
5
|
+
import { Package } from "../package.model";
|
|
6
|
+
import { WaybillTypeModel } from "./waybill-type.model";
|
|
7
|
+
/**
|
|
8
|
+
* Identifies a waybill document
|
|
9
|
+
*/
|
|
10
|
+
export interface WaybillModel extends DigicustDocumentModel {
|
|
11
|
+
shipper?: CompanyModel;
|
|
12
|
+
recipient?: CompanyModel;
|
|
13
|
+
consignee?: CompanyModel;
|
|
14
|
+
applicant?: CompanyModel;
|
|
15
|
+
waybillNumber?: Meta<string>;
|
|
16
|
+
issueDate?: DateTimeModel;
|
|
17
|
+
waybillType?: WaybillTypeModel;
|
|
18
|
+
referenceNumber?: Meta<string>;
|
|
19
|
+
weight?: Weight;
|
|
20
|
+
totalValue?: Money;
|
|
21
|
+
totalValueExcludingCharges?: Money;
|
|
22
|
+
customsValue?: Money;
|
|
23
|
+
shippingCost?: Money;
|
|
24
|
+
otherPayments?: Money;
|
|
25
|
+
shippingDate?: DateTimeModel;
|
|
26
|
+
incoterm?: IncotermModel;
|
|
27
|
+
placeIncoterm?: AddressModel;
|
|
28
|
+
invoiceNumber?: Meta<string>;
|
|
29
|
+
goodsDescription?: Meta<string>;
|
|
30
|
+
currency?: Meta<Currency>;
|
|
31
|
+
numPackagesShipped?: Meta<number>;
|
|
32
|
+
packages?: Package[];
|
|
33
|
+
}
|
|
@@ -7,13 +7,6 @@ export * from "./procedure.model";
|
|
|
7
7
|
export * from "./project.model";
|
|
8
8
|
export * from "./case-submission-transaction";
|
|
9
9
|
export * from "./operationType.enum";
|
|
10
|
-
export * from "./digicust-document.model";
|
|
11
|
-
export * from "./digicust-document-type.enum";
|
|
12
|
-
export * from "./document-status.enum";
|
|
13
|
-
export * from "./invoice.model";
|
|
14
|
-
export * from "./waybill.model";
|
|
15
|
-
export * from "./packingList.model";
|
|
16
|
-
export * from "./document-code.model";
|
|
17
10
|
export * from "./line-item.model";
|
|
18
11
|
export * from "./tax-details.model";
|
|
19
12
|
export * from "./uploaded-file.model";
|
|
@@ -30,8 +23,6 @@ export * from "./type-of-business.enum";
|
|
|
30
23
|
export * from "./type-of-business.model";
|
|
31
24
|
export * from "./cost-intersection.model";
|
|
32
25
|
export * from "./preference-state.model";
|
|
33
|
-
export * from "./invoice-type.model";
|
|
34
|
-
export * from "./waybill-type.model";
|
|
35
26
|
export * from "./customer.model";
|
|
36
27
|
export * from "./user.model";
|
|
37
28
|
export * from "./activity.model";
|
|
@@ -47,3 +38,4 @@ export * from "./queue.model";
|
|
|
47
38
|
export * from "./masterdata";
|
|
48
39
|
export * from "./extractions";
|
|
49
40
|
export * from "./membership.model";
|
|
41
|
+
export * from "./documents";
|
|
@@ -21,14 +21,6 @@ __exportStar(require("./project.model"), exports);
|
|
|
21
21
|
// Case Submission
|
|
22
22
|
__exportStar(require("./case-submission-transaction"), exports); // statistics about the case
|
|
23
23
|
__exportStar(require("./operationType.enum"), exports); // statistics about the case
|
|
24
|
-
// Customs Documents
|
|
25
|
-
__exportStar(require("./digicust-document.model"), exports); // base model for customs documents (eg. waybills, invoices, ...)
|
|
26
|
-
__exportStar(require("./digicust-document-type.enum"), exports); // document types
|
|
27
|
-
__exportStar(require("./document-status.enum"), exports); // provides information about the status of the case
|
|
28
|
-
__exportStar(require("./invoice.model"), exports); // invoice document model -> inherits from digicust-document.model
|
|
29
|
-
__exportStar(require("./waybill.model"), exports); // waybill document model -> inherits from digicust-document.model
|
|
30
|
-
__exportStar(require("./packingList.model"), exports);
|
|
31
|
-
__exportStar(require("./document-code.model"), exports);
|
|
32
24
|
__exportStar(require("./line-item.model"), exports); // line items of customs documents
|
|
33
25
|
__exportStar(require("./tax-details.model"), exports); // Information about VAT on a document
|
|
34
26
|
__exportStar(require("./uploaded-file.model"), exports); // Uploaded files of customs documents
|
|
@@ -45,8 +37,6 @@ __exportStar(require("./type-of-business.enum"), exports);
|
|
|
45
37
|
__exportStar(require("./type-of-business.model"), exports);
|
|
46
38
|
__exportStar(require("./cost-intersection.model"), exports); // cost intersection
|
|
47
39
|
__exportStar(require("./preference-state.model"), exports); // preferential origin
|
|
48
|
-
__exportStar(require("./invoice-type.model"), exports); // either proforma or tax invoice
|
|
49
|
-
__exportStar(require("./waybill-type.model"), exports); // waybill types
|
|
50
40
|
// Digicust Customers and Users
|
|
51
41
|
__exportStar(require("./customer.model"), exports); // Customer information
|
|
52
42
|
__exportStar(require("./user.model"), exports); // User information
|
|
@@ -67,3 +57,5 @@ __exportStar(require("./masterdata"), exports);
|
|
|
67
57
|
__exportStar(require("./extractions"), exports);
|
|
68
58
|
// membership
|
|
69
59
|
__exportStar(require("./membership.model"), exports);
|
|
60
|
+
// documents
|
|
61
|
+
__exportStar(require("./documents"), exports);
|
|
@@ -25,6 +25,7 @@ export interface LineItemModel {
|
|
|
25
25
|
serialNumber?: Meta<string>;
|
|
26
26
|
orderNumber?: Meta<string>;
|
|
27
27
|
description?: Meta<string>;
|
|
28
|
+
documentDescription?: Meta<string>;
|
|
28
29
|
quantity?: Quantity;
|
|
29
30
|
orderedQuantity?: Quantity;
|
|
30
31
|
unitOfMeasurement?: Meta<UOM>;
|
|
@@ -36,13 +37,15 @@ export interface LineItemModel {
|
|
|
36
37
|
amountUnit?: Meta<number>;
|
|
37
38
|
discount?: Money;
|
|
38
39
|
discountUnit?: Meta<Currency>;
|
|
39
|
-
currency
|
|
40
|
+
currency?: Meta<Currency>;
|
|
40
41
|
netWeight?: Weight;
|
|
41
42
|
totalNetWeight?: Weight;
|
|
42
43
|
grossWeight?: Weight;
|
|
43
44
|
totalGrossWeight?: Weight;
|
|
44
45
|
weightUnit?: Meta<WeightUnit>;
|
|
45
46
|
itemSize?: Meta<string>;
|
|
47
|
+
itemSpecialUnitMeasure?: Meta<number>;
|
|
48
|
+
itemSpecialUnit?: Meta<string>;
|
|
46
49
|
buyerArticleNumber?: Meta<string>;
|
|
47
50
|
buyerOrderNumber?: Meta<string>;
|
|
48
51
|
/** Textual Material Description */
|
|
@@ -3,10 +3,10 @@ import { Meta } from "../common";
|
|
|
3
3
|
import { CustomsTariffNumber } from "../common";
|
|
4
4
|
import { Container } from "./container.model";
|
|
5
5
|
import { Procedure } from "./procedure.model";
|
|
6
|
-
import { DigicustDocumentModel } from "./digicust-document.model";
|
|
6
|
+
import { DigicustDocumentModel } from "./documents/digicust-document.model";
|
|
7
7
|
/**
|
|
8
8
|
* Identifies transit items (specific products) listed on a document
|
|
9
|
-
*/
|
|
9
|
+
*/
|
|
10
10
|
export interface TransitItemModel {
|
|
11
11
|
id?: string;
|
|
12
12
|
documentId?: string;
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.condenseTransitLineItem = void 0;
|
|
4
4
|
var common_1 = require("../common");
|
|
5
5
|
var cleanObject_1 = require("../../helpers/cleanObject");
|
|
6
|
-
var digicust_document_model_1 = require("./digicust-document.model");
|
|
6
|
+
var digicust_document_model_1 = require("./documents/digicust-document.model");
|
|
7
7
|
var condenseTransitLineItem = function (transitItem) {
|
|
8
8
|
var _a, _b;
|
|
9
9
|
if (transitItem) {
|
|
@@ -42,7 +42,9 @@ var condenseTransitLineItem = function (transitItem) {
|
|
|
42
42
|
? (0, common_1.condenseMeta)(transitItem.procedure)
|
|
43
43
|
: transitItem.procedure,
|
|
44
44
|
preliminaryDocuments: transitItem.preliminaryDocuments
|
|
45
|
-
? (_a = transitItem.preliminaryDocuments) === null || _a === void 0 ? void 0 : _a.map(function (document) {
|
|
45
|
+
? (_a = transitItem.preliminaryDocuments) === null || _a === void 0 ? void 0 : _a.map(function (document) {
|
|
46
|
+
return (0, digicust_document_model_1.condenseDocument)(document);
|
|
47
|
+
})
|
|
46
48
|
: transitItem.preliminaryDocuments,
|
|
47
49
|
containers: transitItem.containers
|
|
48
50
|
? (_b = transitItem.containers) === null || _b === void 0 ? void 0 : _b.map(function (container) { return (0, common_1.condenseMeta)(container); })
|
|
@@ -55,7 +57,7 @@ var condenseTransitLineItem = function (transitItem) {
|
|
|
55
57
|
: transitItem.shipperCountry,
|
|
56
58
|
destinationCountry: transitItem.destinationCountry
|
|
57
59
|
? (0, common_1.condenseMeta)(transitItem.destinationCountry)
|
|
58
|
-
: transitItem.destinationCountry
|
|
60
|
+
: transitItem.destinationCountry,
|
|
59
61
|
};
|
|
60
62
|
(0, cleanObject_1.cleanObject)(condensedTransitLineItem);
|
|
61
63
|
return condensedTransitLineItem;
|