digicust_types 1.7.259 → 1.7.262

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,4 +1,4 @@
1
- import { Procedure, LoadType, Adjustment, Container, WaybillTypeModel, IncotermModel, CostIntersection, TradePreference, CustomsOffice, MeanOfTransportation, TypeOfBusiness, CaseType, LineItemModel, Package, Meta, AddressModel, DateTimeModel, CompanyModel, Currency, WeightUnit, Weight, Money, TransitItemModel, ConstellationOfParticipantsModel } from "..";
1
+ import { Procedure, LoadType, Adjustment, Container, WaybillTypeModel, IncotermModel, CostIntersection, TradePreference, CustomsOffice, MeanOfTransportation, TypeOfBusiness, CaseType, LineItemModel, Package, Meta, AddressModel, DateTimeModel, CompanyModel, Currency, WeightUnit, Weight, Money, TransitItemModel, ConstellationOfParticipantsModel, PortsModel } from "..";
2
2
  /**
3
3
  * Used to store aggregated information of a case
4
4
  */
@@ -38,7 +38,6 @@ export interface AggregatedCaseDataModel {
38
38
  currency?: Meta<Currency>;
39
39
  waybillType?: WaybillTypeModel;
40
40
  waybillNumber?: Meta<string>;
41
- trailerNumber?: Meta<string>;
42
41
  weightUnit?: Meta<WeightUnit>;
43
42
  weight?: Weight;
44
43
  netWeight?: Weight;
@@ -49,8 +48,7 @@ export interface AggregatedCaseDataModel {
49
48
  customsOffices?: CustomsOffice[];
50
49
  meansOfTransportation?: MeanOfTransportation[];
51
50
  typeofBusiness?: TypeOfBusiness;
52
- portOfExport?: Meta<string>;
53
- portOfImport?: Meta<string>;
51
+ ports?: PortsModel;
54
52
  /** case flow (import, export, ...) */
55
53
  caseType?: Meta<CaseType>;
56
54
  items?: LineItemModel[];
@@ -2,11 +2,11 @@ import { DigicustDocumentModel, IncotermModel, InvoiceType, MeanOfTransportation
2
2
  import { AddressModel, CompanyModel, Currency, DateTimeModel, Dimensions, LanguageModel, Meta, Money, PackageType, Weight, WeightUnit } from "../..";
3
3
  import { InvoiceLanguage } from "./invoice-language.enum";
4
4
  import { LineItemContainingDocument } from "./line-item-containing-document";
5
- export interface DistributionSection {
6
- deliveryNote?: Meta<string[]>;
7
- buyerOrderNumber?: Meta<string[]>;
8
- hsCode?: Meta<string[]>;
9
- orderNumber?: Meta<string[]>;
5
+ export interface Distributions {
6
+ deliveryNote?: Meta<string>[];
7
+ buyerOrderNumber?: Meta<string>[];
8
+ hsCode?: Meta<string>[];
9
+ orderNumber?: Meta<string>[];
10
10
  }
11
11
  /**
12
12
  * Identifies an invoice
@@ -23,8 +23,7 @@ export interface InvoiceModel extends DigicustDocumentModel, LineItemContainingD
23
23
  referenceNumber?: Meta<string>;
24
24
  deliveryNote?: Meta<string>;
25
25
  packingList?: Meta<string>;
26
- trailerNumber?: Meta<string>;
27
- distribution?: DistributionSection;
26
+ distributions?: Distributions;
28
27
  meansOfTransportation?: MeanOfTransportation[];
29
28
  typeOfBusiness?: TypeOfBusiness;
30
29
  portOfExport?: Meta<string>;
@@ -5,3 +5,4 @@ export * from "./load-type.enum";
5
5
  export * from "./mean-of-transportation.model";
6
6
  export * from "./package-type.model";
7
7
  export * from "./package.model";
8
+ export * from "./port.model";
@@ -21,3 +21,4 @@ __exportStar(require("./load-type.enum"), exports);
21
21
  __exportStar(require("./mean-of-transportation.model"), exports);
22
22
  __exportStar(require("./package-type.model"), exports);
23
23
  __exportStar(require("./package.model"), exports);
24
+ __exportStar(require("./port.model"), exports);
@@ -15,6 +15,7 @@ export interface MeanOfTransportation extends Meta<MeanOfTransportationMode> {
15
15
  type?: MeanOfTransportationType;
16
16
  /** ISO Code of nationality of the mean */
17
17
  countryCode?: string;
18
+ trailerNumber?: string;
18
19
  }
19
20
  export declare enum MeanOfTransportationMode {
20
21
  maritime = "Maritime",
@@ -0,0 +1,9 @@
1
+ import { Meta } from "..";
2
+ export declare enum PortType {
3
+ Import = "Import",
4
+ Export = "Export"
5
+ }
6
+ export declare type PortsModel = {
7
+ type?: PortType;
8
+ port?: Meta<string>;
9
+ };
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PortType = void 0;
4
+ var PortType;
5
+ (function (PortType) {
6
+ PortType["Import"] = "Import";
7
+ PortType["Export"] = "Export";
8
+ })(PortType = exports.PortType || (exports.PortType = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "digicust_types",
3
- "version": "1.7.259",
3
+ "version": "1.7.262",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",