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.
@@ -1,5 +1,5 @@
1
1
  import { MeanOfTransportationMode, AddressModel, Meta } from "..";
2
- export interface CustomsOffice extends Meta<any> {
2
+ export interface CustomsOffice extends Meta<string> {
3
3
  code?: Meta<string>;
4
4
  officeType?: CustomsOfficeType;
5
5
  address?: AddressModel;
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,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;
@@ -0,0 +1,2 @@
1
+ export interface PreliminaryDocument {
2
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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
- "referenceNumber": t.opt("any"),
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
- referenceNumber?: Meta<string>;
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.249",
3
+ "version": "1.7.250",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",