digicust_types 1.7.249 → 1.7.252
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/index.d.ts +2 -0
- package/lib/models/digicust/documents/index.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 +2 -0
- package/lib/models/digicust/documents/preliminary-documents/index.js +18 -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 +3 -2
|
@@ -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
|
+
}
|
|
@@ -11,3 +11,5 @@ export * from "./digicust-document-type.enum";
|
|
|
11
11
|
export * from "./document-status.enum";
|
|
12
12
|
export * from "./document-code.model";
|
|
13
13
|
export * from "./line-item-containing-document";
|
|
14
|
+
export * from "./atlas-document-number.model";
|
|
15
|
+
export * from "./preliminary-documents";
|
|
@@ -32,3 +32,5 @@ __exportStar(require("./digicust-document-type.enum"), exports);
|
|
|
32
32
|
__exportStar(require("./document-status.enum"), exports);
|
|
33
33
|
__exportStar(require("./document-code.model"), exports);
|
|
34
34
|
__exportStar(require("./line-item-containing-document"), exports);
|
|
35
|
+
__exportStar(require("./atlas-document-number.model"), exports);
|
|
36
|
+
__exportStar(require("./preliminary-documents"), exports);
|
|
@@ -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;
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./atb.model"), exports);
|
|
18
|
+
__exportStar(require("./preliminary-document.model"), exports);
|
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>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "digicust_types",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.252",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
"lib/**/*"
|
|
9
9
|
],
|
|
10
10
|
"scripts": {
|
|
11
|
-
"build": "tsc && `npm bin`/run-for-every-file --src ./lib/ --file '**/*.d.ts' --run \"`npm bin`/ts-interface-builder -i -g -c {{src-file}}\"",
|
|
11
|
+
"build-with-runtime-interfaces": "tsc && `npm bin`/run-for-every-file --src ./lib/ --file '**/*.d.ts' --run \"`npm bin`/ts-interface-builder -i -g -c {{src-file}}\"",
|
|
12
|
+
"build": "tsc",
|
|
12
13
|
"build-deploy": "npm version patch && npm run build && npm publish",
|
|
13
14
|
"deploy-docs": "npm i && npx typedoc src/index.ts",
|
|
14
15
|
"lint-fix": "eslint --fix --ext .ts ."
|