digicust_types 1.7.249 → 1.7.250
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/customs/customsOffice.model.d.ts +1 -1
- package/lib/models/digicust/documents/atlas-document-number.model.d-ti.ts +19 -0
- package/lib/models/digicust/documents/atlas-document-number.model.d.ts +10 -0
- package/lib/models/digicust/documents/atlas-document-number.model.js +2 -0
- package/lib/models/digicust/documents/preliminary-documents/atb.model.d-ti.ts +17 -0
- package/lib/models/digicust/documents/preliminary-documents/atb.model.d.ts +11 -0
- package/lib/models/digicust/documents/preliminary-documents/atb.model.js +2 -0
- package/lib/models/digicust/documents/preliminary-documents/index.d-ti.ts +11 -0
- package/lib/models/digicust/documents/preliminary-documents/index.d.ts +0 -0
- package/lib/models/digicust/documents/preliminary-documents/index.js +1 -0
- package/lib/models/digicust/documents/preliminary-documents/preliminary-document.model.d-ti.ts +13 -0
- package/lib/models/digicust/documents/preliminary-documents/preliminary-document.model.d.ts +2 -0
- package/lib/models/digicust/documents/preliminary-documents/preliminary-document.model.js +2 -0
- package/lib/models/digicust/documents/waybill.model.d-ti.ts +2 -6
- package/lib/models/digicust/documents/waybill.model.d.ts +3 -7
- package/package.json +1 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This module was automatically generated by `ts-interface-builder`
|
|
3
|
+
*/
|
|
4
|
+
import * as t from "ts-interface-checker";
|
|
5
|
+
// tslint:disable:object-literal-key-quotes
|
|
6
|
+
|
|
7
|
+
export const AtlasDocumentNumber = t.iface(["Meta"], {
|
|
8
|
+
"identifier": t.opt("string"),
|
|
9
|
+
"identifierNumber": t.opt("string"),
|
|
10
|
+
"serialNumber": t.opt("string"),
|
|
11
|
+
"month": t.opt("number"),
|
|
12
|
+
"year": t.opt("number"),
|
|
13
|
+
"customsOffice": t.opt("CustomsOffice"),
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
const exportedTypeSuite: t.ITypeSuite = {
|
|
17
|
+
AtlasDocumentNumber,
|
|
18
|
+
};
|
|
19
|
+
export default exportedTypeSuite;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CustomsOffice } from "../customs";
|
|
2
|
+
import { Meta } from "../meta";
|
|
3
|
+
export interface AtlasDocumentNumber extends Meta<string> {
|
|
4
|
+
identifier?: string;
|
|
5
|
+
identifierNumber?: string;
|
|
6
|
+
serialNumber?: string;
|
|
7
|
+
month?: number;
|
|
8
|
+
year?: number;
|
|
9
|
+
customsOffice?: CustomsOffice;
|
|
10
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This module was automatically generated by `ts-interface-builder`
|
|
3
|
+
*/
|
|
4
|
+
import * as t from "ts-interface-checker";
|
|
5
|
+
// tslint:disable:object-literal-key-quotes
|
|
6
|
+
|
|
7
|
+
export const ATB = t.iface(["PreliminaryDocument"], {
|
|
8
|
+
"ATBNumber": t.opt("AtlasDocumentNumber"),
|
|
9
|
+
"customsOffice": t.opt("CustomsOffice"),
|
|
10
|
+
"licensePlate": t.opt("any"),
|
|
11
|
+
"freightCosts": t.opt("Money"),
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
const exportedTypeSuite: t.ITypeSuite = {
|
|
15
|
+
ATB,
|
|
16
|
+
};
|
|
17
|
+
export default exportedTypeSuite;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CustomsOffice } from "../../customs";
|
|
2
|
+
import { Money } from "../../measures";
|
|
3
|
+
import { Meta } from "../../meta";
|
|
4
|
+
import { AtlasDocumentNumber } from "../atlas-document-number.model";
|
|
5
|
+
import { PreliminaryDocument } from "./preliminary-document.model";
|
|
6
|
+
export interface ATB extends PreliminaryDocument {
|
|
7
|
+
ATBNumber?: AtlasDocumentNumber;
|
|
8
|
+
customsOffice?: CustomsOffice;
|
|
9
|
+
licensePlate?: Meta<string>;
|
|
10
|
+
freightCosts?: Money;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This module was automatically generated by `ts-interface-builder`
|
|
3
|
+
*/
|
|
4
|
+
import * as t from "ts-interface-checker";
|
|
5
|
+
// tslint:disable:object-literal-key-quotes
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
const exportedTypeSuite: t.ITypeSuite = {
|
|
10
|
+
};
|
|
11
|
+
export default exportedTypeSuite;
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
package/lib/models/digicust/documents/preliminary-documents/preliminary-document.model.d-ti.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This module was automatically generated by `ts-interface-builder`
|
|
3
|
+
*/
|
|
4
|
+
import * as t from "ts-interface-checker";
|
|
5
|
+
// tslint:disable:object-literal-key-quotes
|
|
6
|
+
|
|
7
|
+
export const PreliminaryDocument = t.iface([], {
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
const exportedTypeSuite: t.ITypeSuite = {
|
|
11
|
+
PreliminaryDocument,
|
|
12
|
+
};
|
|
13
|
+
export default exportedTypeSuite;
|
|
@@ -6,25 +6,21 @@ import * as t from "ts-interface-checker";
|
|
|
6
6
|
|
|
7
7
|
export const WaybillModel = t.iface(["DigicustDocumentModel"], {
|
|
8
8
|
"shipper": t.opt("CompanyModel"),
|
|
9
|
-
"recipient": t.opt("CompanyModel"),
|
|
10
9
|
"consignee": t.opt("CompanyModel"),
|
|
11
|
-
"applicant": t.opt("CompanyModel"),
|
|
12
10
|
"waybillNumber": t.opt("any"),
|
|
11
|
+
"referenceNumber": t.opt("any"),
|
|
13
12
|
"issueDate": t.opt("DateTimeModel"),
|
|
14
13
|
"waybillType": t.opt("WaybillTypeModel"),
|
|
15
|
-
"
|
|
14
|
+
"documentCode": t.opt("DocumentCode"),
|
|
16
15
|
"weightUnit": t.opt("any"),
|
|
17
16
|
"weight": t.opt("Weight"),
|
|
18
17
|
"netWeight": t.opt("Weight"),
|
|
19
18
|
"totalValue": t.opt("Money"),
|
|
20
19
|
"totalValueExcludingCharges": t.opt("Money"),
|
|
21
|
-
"customsValue": t.opt("Money"),
|
|
22
20
|
"shippingCost": t.opt("Money"),
|
|
23
21
|
"otherPayments": t.opt("Money"),
|
|
24
|
-
"shippingDate": t.opt("DateTimeModel"),
|
|
25
22
|
"incoterm": t.opt("IncotermModel"),
|
|
26
23
|
"placeIncoterm": t.opt("AddressModel"),
|
|
27
|
-
"invoiceNumber": t.opt("any"),
|
|
28
24
|
"goodsDescription": t.opt("any"),
|
|
29
25
|
"currency": t.opt("any"),
|
|
30
26
|
"numPackagesShipped": t.opt("any"),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DigicustDocumentModel, WaybillTypeModel } from ".";
|
|
1
|
+
import { DigicustDocumentModel, DocumentCode, WaybillTypeModel } from ".";
|
|
2
2
|
import { IncotermModel, Package } from "..";
|
|
3
3
|
import { CompanyModel, Meta, DateTimeModel, Weight, Money, AddressModel, Currency, WeightUnit } from "../..";
|
|
4
4
|
/**
|
|
@@ -6,25 +6,21 @@ import { CompanyModel, Meta, DateTimeModel, Weight, Money, AddressModel, Currenc
|
|
|
6
6
|
*/
|
|
7
7
|
export interface WaybillModel extends DigicustDocumentModel {
|
|
8
8
|
shipper?: CompanyModel;
|
|
9
|
-
recipient?: CompanyModel;
|
|
10
9
|
consignee?: CompanyModel;
|
|
11
|
-
applicant?: CompanyModel;
|
|
12
10
|
waybillNumber?: Meta<string>;
|
|
11
|
+
referenceNumber?: Meta<string[]>;
|
|
13
12
|
issueDate?: DateTimeModel;
|
|
14
13
|
waybillType?: WaybillTypeModel;
|
|
15
|
-
|
|
14
|
+
documentCode?: DocumentCode;
|
|
16
15
|
weightUnit?: Meta<WeightUnit>;
|
|
17
16
|
weight?: Weight;
|
|
18
17
|
netWeight?: Weight;
|
|
19
18
|
totalValue?: Money;
|
|
20
19
|
totalValueExcludingCharges?: Money;
|
|
21
|
-
customsValue?: Money;
|
|
22
20
|
shippingCost?: Money;
|
|
23
21
|
otherPayments?: Money;
|
|
24
|
-
shippingDate?: DateTimeModel;
|
|
25
22
|
incoterm?: IncotermModel;
|
|
26
23
|
placeIncoterm?: AddressModel;
|
|
27
|
-
invoiceNumber?: Meta<string>;
|
|
28
24
|
goodsDescription?: Meta<string>;
|
|
29
25
|
currency?: Meta<Currency>;
|
|
30
26
|
numPackagesShipped?: Meta<number>;
|