digicust_types 1.7.89 → 1.7.90

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.
@@ -0,0 +1,3 @@
1
+ export interface StartHsClassificationDto {
2
+ caseId: string;
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ export interface Checkpoint {
2
+ id?: string;
3
+ customerId?: string;
4
+ context?: string;
5
+ type?: "webhook" | "email";
6
+ }
7
+ export declare enum CheckPointType {
8
+ webhook = "webhook",
9
+ mail = "email"
10
+ }
11
+ export interface WebhookCheckpoint extends Checkpoint {
12
+ type: "webhook";
13
+ url?: string;
14
+ method?: "GET" | "POST" | "PATCH" | "DELETE" | "PUT";
15
+ body?: any;
16
+ }
17
+ export interface EmailCheckpoint extends Checkpoint {
18
+ type: "email";
19
+ emailAddress?: string;
20
+ body?: any;
21
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CheckPointType = void 0;
4
+ var CheckPointType;
5
+ (function (CheckPointType) {
6
+ CheckPointType["webhook"] = "webhook";
7
+ CheckPointType["mail"] = "email";
8
+ })(CheckPointType = exports.CheckPointType || (exports.CheckPointType = {}));
@@ -0,0 +1,4 @@
1
+ import { FuzzyInput } from "./fuzzy-input";
2
+ export interface CountryModel extends FuzzyInput<string> {
3
+ isoCode?: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,6 @@
1
1
  import { DimensionsUnit } from "./dimensions-unit.enum";
2
2
  import { Meta } from "./meta";
3
- export interface Dimensions extends Meta<number> {
3
+ export interface Dimensions extends Meta<string> {
4
4
  unit?: DimensionsUnit;
5
5
  height?: number;
6
6
  width?: number;
@@ -0,0 +1,21 @@
1
+ export interface Event {
2
+ id?: string;
3
+ customerId?: string;
4
+ context?: string;
5
+ type?: "webhook" | "email";
6
+ }
7
+ export declare enum EventType {
8
+ webhook = "webhook",
9
+ mail = "email"
10
+ }
11
+ export interface WebhookEvent extends Event {
12
+ type: "webhook";
13
+ url?: string;
14
+ method?: "GET" | "POST" | "PATCH" | "DELETE" | "PUT";
15
+ body?: any;
16
+ }
17
+ export interface EmailEvent extends Event {
18
+ type: "email";
19
+ emailAddress?: string;
20
+ body?: any;
21
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EventType = void 0;
4
+ var EventType;
5
+ (function (EventType) {
6
+ EventType["webhook"] = "webhook";
7
+ EventType["mail"] = "email";
8
+ })(EventType = exports.EventType || (exports.EventType = {}));
@@ -0,0 +1,7 @@
1
+ export interface Super<T> {
2
+ value: T;
3
+ options?: T[];
4
+ lastChangedBy: String;
5
+ modifiedAt: Date;
6
+ source: String;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,18 @@
1
+ import { Money } from "../common";
2
+ /**
3
+ * Used to document usage of the service. Every activity can be tracked using this interface
4
+ */
5
+ export interface Activity {
6
+ id?: string;
7
+ customerId?: string;
8
+ projectId?: string;
9
+ userId?: string;
10
+ /** An identifier of this type of activity */
11
+ activityName?: string;
12
+ description?: string;
13
+ timestamp?: Date;
14
+ caseId?: string;
15
+ subscriptionId?: string;
16
+ paid?: boolean;
17
+ extraCosts?: Money;
18
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export interface CompanyModel {
2
+ name?: string;
3
+ apiKey: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +1,5 @@
1
1
  import { DigicustDocumentModel, IncotermModel, InvoiceType, LineItemModel, MeanOfTransportation, Package, TaxDetailsModel, TradePreference, TypeOfBusiness } from ".";
2
- import { AddressModel, CompanyModel, Currency, DateTimeModel, LanguageModel, Meta, Money, PackageType, Weight } from "..";
2
+ import { AddressModel, CompanyModel, Currency, DateTimeModel, Dimensions, LanguageModel, Meta, Money, PackageType, Weight } from "..";
3
3
  /**
4
4
  * Identifies an invoice
5
5
  */
@@ -32,7 +32,7 @@ export interface InvoiceModel extends DigicustDocumentModel {
32
32
  typeOfPackage?: PackageType;
33
33
  weight?: Weight;
34
34
  netWeight?: Weight;
35
- packageDimensions?: Meta<string>;
35
+ packageDimensions?: Dimensions;
36
36
  numberOfShipments?: Meta<number>;
37
37
  packages?: Package[];
38
38
  reGrossWeightWithUom?: Meta<string>;
@@ -1,5 +1,5 @@
1
1
  import { TradePreference, TypeOfBusinessType } from "..";
2
- import { CustomsTariffNumber, DateTimeModel, Money, Quantity, UOM, Weight, Workflow } from "../..";
2
+ import { CustomsTariffNumber, DateTimeModel, Dimensions, Money, Quantity, UOM, Weight, Workflow } from "../..";
3
3
  export interface ItemPrice {
4
4
  price?: Money;
5
5
  priceDate?: DateTimeModel;
@@ -49,11 +49,7 @@ export interface MaterialModel {
49
49
  starch?: Workflow<number>;
50
50
  saccharose?: Workflow<number>;
51
51
  };
52
- dimensions?: {
53
- width?: number;
54
- height?: number;
55
- length?: number;
56
- } & Workflow<any>;
52
+ dimensions?: Dimensions & Workflow<any>;
57
53
  meursingCode?: Workflow<string>[];
58
54
  documentTypeCodes?: DocumentTypeCode[];
59
55
  customsLaw?: {
@@ -1,8 +1,8 @@
1
- import { Meta, Weight } from "../common";
1
+ import { Dimensions, Meta, Weight } from "../common";
2
2
  export interface Package extends Meta<any> {
3
3
  weight?: Weight;
4
4
  netWeight?: Weight;
5
- dimensions?: Meta<string>;
5
+ dimensions?: Dimensions;
6
6
  type?: Meta<string>;
7
7
  marks?: Meta<string>;
8
8
  amount?: Meta<number>;
@@ -1,4 +1,4 @@
1
- import { CompanyModel, Currency, DateTimeModel, LanguageModel, Meta, Money, PackageType, Weight } from "../common";
1
+ import { CompanyModel, Currency, DateTimeModel, Dimensions, LanguageModel, Meta, Money, PackageType, Weight } from "../common";
2
2
  import { DigicustDocumentModel } from "./digicust-document.model";
3
3
  import { LineItemModel } from "./line-item.model";
4
4
  export interface PackingListModel extends DigicustDocumentModel {
@@ -17,7 +17,7 @@ export interface PackingListModel extends DigicustDocumentModel {
17
17
  totalGrossWeight?: Weight;
18
18
  totalNetWeight?: Weight;
19
19
  typeOfPackage?: PackageType;
20
- packageDimensions?: Meta<string>;
20
+ packageDimensions?: Dimensions;
21
21
  amountOfPackages?: Meta<Number>;
22
22
  totalExcludingCharges?: Money;
23
23
  insuranceCosts?: Money;
@@ -0,0 +1,25 @@
1
+ import { Meta } from "../common";
2
+ export interface ShippingType extends Meta<ShippingMode> {
3
+ /** unique identifier of the transportation mean */
4
+ code?: string;
5
+ name?: string;
6
+ type?: ShippingTypePlace;
7
+ /** ISO Code of nationality of the mean */
8
+ countryCode?: string;
9
+ }
10
+ export declare enum ShippingMode {
11
+ maritime = "Maritime",
12
+ rail = "Rail",
13
+ road = "Road",
14
+ air = "Air",
15
+ postal = "Postal",
16
+ fixedInstallations = "FixedInstallations",
17
+ inlandWaterway = "InlandWaterway",
18
+ unknown = "Unknown"
19
+ }
20
+ export declare enum ShippingTypePlace {
21
+ border = "Border",
22
+ arrival = "Arrival",
23
+ departure = "Departure",
24
+ inland = "Inland"
25
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ShippingTypePlace = exports.ShippingMode = void 0;
4
+ var ShippingMode;
5
+ (function (ShippingMode) {
6
+ ShippingMode["maritime"] = "Maritime";
7
+ ShippingMode["rail"] = "Rail";
8
+ ShippingMode["road"] = "Road";
9
+ ShippingMode["air"] = "Air";
10
+ ShippingMode["postal"] = "Postal";
11
+ ShippingMode["fixedInstallations"] = "FixedInstallations";
12
+ ShippingMode["inlandWaterway"] = "InlandWaterway";
13
+ ShippingMode["unknown"] = "Unknown";
14
+ })(ShippingMode = exports.ShippingMode || (exports.ShippingMode = {}));
15
+ var ShippingTypePlace;
16
+ (function (ShippingTypePlace) {
17
+ ShippingTypePlace["border"] = "Border";
18
+ ShippingTypePlace["arrival"] = "Arrival";
19
+ ShippingTypePlace["departure"] = "Departure";
20
+ ShippingTypePlace["inland"] = "Inland";
21
+ })(ShippingTypePlace = exports.ShippingTypePlace || (exports.ShippingTypePlace = {}));
@@ -0,0 +1,8 @@
1
+ import { Meta } from "../common";
2
+ /**
3
+ * Information about the submission at a customs authority
4
+ */
5
+ export interface CaseSubmissionModel {
6
+ mrnNumber?: Meta<string>;
7
+ accomplishedAt?: Date;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "digicust_types",
3
- "version": "1.7.89",
3
+ "version": "1.7.90",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",