digicust_types 1.7.165 → 1.7.166
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/common/workflow.d.ts +4 -0
- package/lib/models/digicust/documents/export-declaration.model.d.ts +2 -1
- package/lib/models/digicust/documents/index.d.ts +1 -0
- package/lib/models/digicust/documents/index.js +1 -0
- package/lib/models/digicust/documents/invoice.model.d.ts +3 -4
- package/lib/models/digicust/documents/line-item-containing-document.d.ts +6 -0
- package/lib/models/digicust/documents/line-item-containing-document.js +2 -0
- package/package.json +1 -1
|
@@ -8,6 +8,10 @@ export interface Workflow<T> {
|
|
|
8
8
|
* Needs to be a string, even if value is of a different type.
|
|
9
9
|
*/
|
|
10
10
|
searchValue?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Normalized searchValue terms (expanded search value)
|
|
13
|
+
*/
|
|
14
|
+
searchValueTerms?: string[];
|
|
11
15
|
/**
|
|
12
16
|
* Encoded user (username, userId, etc.)
|
|
13
17
|
*/
|
|
@@ -4,10 +4,11 @@ import { LineItemModel } from "../line-item.model";
|
|
|
4
4
|
import { MeanOfTransportation } from "../mean-of-transportation.model";
|
|
5
5
|
import { Package } from "../package.model";
|
|
6
6
|
import { DigicustDocumentModel } from "./digicust-document.model";
|
|
7
|
+
import { LineItemContainingDocument } from './line-item-containing-document';
|
|
7
8
|
/**
|
|
8
9
|
* Identifies an Export Declaration
|
|
9
10
|
*/
|
|
10
|
-
export interface ExportDeclaration extends DigicustDocumentModel {
|
|
11
|
+
export interface ExportDeclaration extends DigicustDocumentModel, LineItemContainingDocument {
|
|
11
12
|
shipper?: CompanyModel;
|
|
12
13
|
recipient?: CompanyModel;
|
|
13
14
|
applicant?: CompanyModel;
|
|
@@ -25,3 +25,4 @@ __exportStar(require("./digicust-document.model"), exports);
|
|
|
25
25
|
__exportStar(require("./digicust-document-type.enum"), exports);
|
|
26
26
|
__exportStar(require("./document-status.enum"), exports);
|
|
27
27
|
__exportStar(require("./document-code.model"), exports);
|
|
28
|
+
__exportStar(require("./line-item-containing-document"), exports);
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { DigicustDocumentModel, IncotermModel, InvoiceType,
|
|
1
|
+
import { DigicustDocumentModel, IncotermModel, InvoiceType, MeanOfTransportation, Package, TaxDetailsModel, TradePreference, TypeOfBusiness } from "../";
|
|
2
2
|
import { AddressModel, CompanyModel, Currency, DateTimeModel, Dimensions, LanguageModel, Meta, Money, PackageType, Weight, WeightUnit } from "../../";
|
|
3
|
+
import { LineItemContainingDocument } from './line-item-containing-document';
|
|
3
4
|
/**
|
|
4
5
|
* Identifies an invoice
|
|
5
6
|
*/
|
|
6
|
-
export interface InvoiceModel extends DigicustDocumentModel {
|
|
7
|
+
export interface InvoiceModel extends DigicustDocumentModel, LineItemContainingDocument {
|
|
7
8
|
createdAt?: Date;
|
|
8
9
|
invoiceNumber?: Meta<string>;
|
|
9
10
|
waybillNumber?: Meta<string>;
|
|
@@ -53,8 +54,6 @@ export interface InvoiceModel extends DigicustDocumentModel {
|
|
|
53
54
|
paymentIBAN?: Meta<string>;
|
|
54
55
|
paymentBIC?: Meta<string>;
|
|
55
56
|
dueDate?: DateTimeModel;
|
|
56
|
-
items?: LineItemModel[];
|
|
57
|
-
itemIds?: string[];
|
|
58
57
|
shipper?: CompanyModel;
|
|
59
58
|
recipient?: CompanyModel;
|
|
60
59
|
consignee?: CompanyModel;
|