digicust_types 1.7.166 → 1.7.170

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.
Files changed (33) hide show
  1. package/lib/models/common/company.model.d.ts +1 -0
  2. package/lib/models/digicust/aggregated-case-data.model.d.ts +4 -15
  3. package/lib/models/digicust/aggregated-case-data.model.js +2 -2
  4. package/lib/models/digicust/documents/export-declaration.model.d.ts +3 -8
  5. package/lib/models/digicust/documents/waybill.model.d.ts +3 -6
  6. package/lib/models/digicust/masterdata/stakeholder-match-result.d.ts +4 -4
  7. package/package.json +3 -3
  8. package/lib/contracts/start-hs-classification.dto.d.ts +0 -3
  9. package/lib/contracts/start-hs-classification.dto.js +0 -2
  10. package/lib/models/common/checkpoint.model.d.ts +0 -21
  11. package/lib/models/common/checkpoint.model.js +0 -8
  12. package/lib/models/common/country.model.d.ts +0 -4
  13. package/lib/models/common/country.model.js +0 -2
  14. package/lib/models/common/event.model.d.ts +0 -21
  15. package/lib/models/common/event.model.js +0 -8
  16. package/lib/models/common/super.d.ts +0 -7
  17. package/lib/models/common/super.js +0 -2
  18. package/lib/models/digicust/QueueWorkspaceModel.model.d.ts +0 -12
  19. package/lib/models/digicust/QueueWorkspaceModel.model.js +0 -2
  20. package/lib/models/digicust/activity.mode.d.ts +0 -18
  21. package/lib/models/digicust/activity.mode.js +0 -2
  22. package/lib/models/digicust/company.model.d.ts +0 -4
  23. package/lib/models/digicust/company.model.js +0 -2
  24. package/lib/models/digicust/incoterm.enum.d.ts +0 -17
  25. package/lib/models/digicust/incoterm.enum.js +0 -21
  26. package/lib/models/digicust/masterdata/stakeholder-type.enum.d.ts +0 -12
  27. package/lib/models/digicust/masterdata/stakeholder-type.enum.js +0 -16
  28. package/lib/models/digicust/notification.model.d.ts +0 -13
  29. package/lib/models/digicust/notification.model.js +0 -2
  30. package/lib/models/digicust/shipping-type.model.d.ts +0 -25
  31. package/lib/models/digicust/shipping-type.model.js +0 -21
  32. package/lib/models/digicust/submission-case-model.d.ts +0 -8
  33. package/lib/models/digicust/submission-case-model.js +0 -2
@@ -17,6 +17,7 @@ export interface CompanyModel extends Meta<string> {
17
17
  inputTaxDeduction?: Meta<boolean>;
18
18
  securityNumber?: Meta<string>;
19
19
  externalIdentifier?: Meta<string>;
20
+ clientIdentifier?: Meta<string>;
20
21
  stakeholderId?: string;
21
22
  matchingMetadata?: MatchingMetadataModel<StakeholderMatchInput, StakeholderMatchResult>;
22
23
  }
@@ -1,19 +1,6 @@
1
- import { Meta } from "../common/meta";
2
- import { AddressModel, CompanyModel, Currency, DateTimeModel, Money, Weight } from "../common";
3
- import { IncotermModel } from "./incoterm.model";
4
- import { LineItemModel } from "./line-item.model";
5
- import { CaseType } from "./case-type.enum";
6
- import { LoadType } from "./load-type.enum";
7
- import { Adjustment } from "./adjustment.model";
8
- import { Container } from "./container.model";
9
- import { Package } from "./package.model";
10
- import { Procedure } from "./procedure.model";
11
- import { MeanOfTransportation } from "./mean-of-transportation.model";
12
- import { CustomsOffice } from "./customsOffice.model";
13
- import { TypeOfBusiness } from "./";
1
+ import { Procedure, LoadType, Adjustment, Container, WaybillTypeModel, IncotermModel, CostIntersection, TradePreference, CustomsOffice, MeanOfTransportation, TypeOfBusiness, CaseType, LineItemModel, Package } from ".";
2
+ import { Meta, AddressModel, DateTimeModel, CompanyModel, Currency, WeightUnit, Weight, Money } from "..";
14
3
  import { TransitItemModel } from "./transit-item.model";
15
- import { CostIntersection } from "./cost-intersection.model";
16
- import { WaybillTypeModel } from "./documents";
17
4
  /**
18
5
  * Used to store aggregated information of a case
19
6
  */
@@ -51,11 +38,13 @@ export interface AggregatedCaseDataModel {
51
38
  currency?: Meta<Currency>;
52
39
  waybillType?: WaybillTypeModel;
53
40
  waybillNumber?: Meta<string>;
41
+ weightUnit?: WeightUnit;
54
42
  weight?: Weight;
55
43
  netWeight?: Weight;
56
44
  incoterm?: IncotermModel;
57
45
  placeIncoterm?: AddressModel;
58
46
  costIntersection?: CostIntersection;
47
+ tradePreference?: TradePreference;
59
48
  customsOffices?: CustomsOffice[];
60
49
  meansOfTransportation?: MeanOfTransportation[];
61
50
  typeofBusiness?: TypeOfBusiness;
@@ -12,12 +12,12 @@ var __assign = (this && this.__assign) || function () {
12
12
  };
13
13
  Object.defineProperty(exports, "__esModule", { value: true });
14
14
  exports.condenseAggregated = void 0;
15
- var line_item_model_1 = require("./line-item.model");
15
+ var _1 = require(".");
16
16
  var transit_item_model_1 = require("./transit-item.model");
17
17
  var condenseAggregated = function (aggregated) {
18
18
  var _a, _b;
19
19
  return aggregated
20
- ? __assign(__assign({}, aggregated), { items: (_a = aggregated.items) === null || _a === void 0 ? void 0 : _a.map(function (item) { return (0, line_item_model_1.condenseLineItem)(item); }), transitItems: (_b = aggregated.transitItems) === null || _b === void 0 ? void 0 : _b.map(function (item) {
20
+ ? __assign(__assign({}, aggregated), { items: (_a = aggregated.items) === null || _a === void 0 ? void 0 : _a.map(function (item) { return (0, _1.condenseLineItem)(item); }), transitItems: (_b = aggregated.transitItems) === null || _b === void 0 ? void 0 : _b.map(function (item) {
21
21
  return (0, transit_item_model_1.condenseTransitLineItem)(item);
22
22
  }) })
23
23
  : null;
@@ -1,10 +1,6 @@
1
- import { AddressModel, CompanyModel, Meta, Weight } from "../../common";
2
- import { CustomsOffice } from "../customsOffice.model";
3
- import { LineItemModel } from "../line-item.model";
4
- import { MeanOfTransportation } from "../mean-of-transportation.model";
5
- import { Package } from "../package.model";
6
- import { DigicustDocumentModel } from "./digicust-document.model";
7
- import { LineItemContainingDocument } from './line-item-containing-document';
1
+ import { DigicustDocumentModel, LineItemContainingDocument } from ".";
2
+ import { CustomsOffice, MeanOfTransportation, Package } from "..";
3
+ import { CompanyModel, AddressModel, Meta, Weight } from "../..";
8
4
  /**
9
5
  * Identifies an Export Declaration
10
6
  */
@@ -28,5 +24,4 @@ export interface ExportDeclaration extends DigicustDocumentModel, LineItemContai
28
24
  totalGrossWeight?: Weight;
29
25
  packages?: Package[];
30
26
  numPackages?: Meta<number>;
31
- items?: LineItemModel[];
32
27
  }
@@ -1,9 +1,6 @@
1
- import { AddressModel, CompanyModel, Currency, DateTimeModel, Money, Weight } from "../../common";
2
- import { DigicustDocumentModel } from "./";
3
- import { Meta } from "../../common/meta";
4
- import { IncotermModel } from "../incoterm.model";
5
- import { Package } from "../package.model";
6
- import { WaybillTypeModel } from "./waybill-type.model";
1
+ import { DigicustDocumentModel, WaybillTypeModel } from ".";
2
+ import { IncotermModel, Package } from "..";
3
+ import { CompanyModel, Meta, DateTimeModel, Weight, Money, AddressModel, Currency } from "../..";
7
4
  /**
8
5
  * Identifies a waybill document
9
6
  */
@@ -1,6 +1,6 @@
1
1
  export interface StakeholderMatchResult {
2
- matchesEORI: boolean;
3
- matchesVAT: boolean;
4
- matchesName: boolean;
5
- matchesCountry: boolean;
2
+ matchesEORI?: boolean;
3
+ matchesVAT?: boolean;
4
+ matchesName?: boolean;
5
+ matchesCountry?: boolean;
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "digicust_types",
3
- "version": "1.7.166",
3
+ "version": "1.7.170",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -24,8 +24,8 @@
24
24
  },
25
25
  "homepage": "https://github.com/Digicust0406/types#readme",
26
26
  "dependencies": {
27
- "@types/node": "^14.18.5",
28
- "typedoc": "^0.22.10"
27
+ "@types/node": "^14.18.9",
28
+ "typedoc": "^0.22.11"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@typescript-eslint/eslint-plugin": "^4.33.0",
@@ -1,3 +0,0 @@
1
- export interface StartHsClassificationDto {
2
- caseId: string;
3
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,21 +0,0 @@
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
- }
@@ -1,8 +0,0 @@
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 = {}));
@@ -1,4 +0,0 @@
1
- import { FuzzyInput } from "./fuzzy-input";
2
- export interface CountryModel extends FuzzyInput<string> {
3
- isoCode?: string;
4
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,21 +0,0 @@
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
- }
@@ -1,8 +0,0 @@
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 = {}));
@@ -1,7 +0,0 @@
1
- export interface Super<T> {
2
- value: T;
3
- options?: T[];
4
- lastChangedBy: String;
5
- modifiedAt: Date;
6
- source: String;
7
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,12 +0,0 @@
1
- export interface WorkspaceQueues {
2
- QueueId?: string;
3
- name?: string;
4
- QueueDocumentType?: string;
5
- active?: boolean;
6
- }
7
- export interface QueueWorkspaceModel {
8
- id?: string;
9
- name?: string;
10
- active?: boolean;
11
- queues?: WorkspaceQueues[];
12
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,18 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +0,0 @@
1
- export interface CompanyModel {
2
- name?: string;
3
- apiKey: string;
4
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,17 +0,0 @@
1
- /**
2
- * Incoterms give information on transport conditions in international trade
3
- */
4
- export declare enum Incoterm {
5
- EXW = "EXW",
6
- FAS = "FAS",
7
- FCA = "FCA",
8
- FOB = "FOB",
9
- CFR = "CFR",
10
- CIF = "CIF",
11
- CIP = "CIP",
12
- CPT = "CPT",
13
- DAP = "DAP",
14
- DPU = "DPU",
15
- DAT = "DAT",
16
- DDP = "DDP"
17
- }
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Incoterm = void 0;
4
- /**
5
- * Incoterms give information on transport conditions in international trade
6
- */
7
- var Incoterm;
8
- (function (Incoterm) {
9
- Incoterm["EXW"] = "EXW";
10
- Incoterm["FAS"] = "FAS";
11
- Incoterm["FCA"] = "FCA";
12
- Incoterm["FOB"] = "FOB";
13
- Incoterm["CFR"] = "CFR";
14
- Incoterm["CIF"] = "CIF";
15
- Incoterm["CIP"] = "CIP";
16
- Incoterm["CPT"] = "CPT";
17
- Incoterm["DAP"] = "DAP";
18
- Incoterm["DPU"] = "DPU";
19
- Incoterm["DAT"] = "DAT";
20
- Incoterm["DDP"] = "DDP";
21
- })(Incoterm = exports.Incoterm || (exports.Incoterm = {}));
@@ -1,12 +0,0 @@
1
- export declare enum StakeholderType {
2
- Shipper = "shipper",
3
- Recipient = "recipient",
4
- Consignee = "consignee",
5
- Importer = "importer",
6
- Declarant = "declarant",
7
- Agent = "agent",
8
- Broker = "broker",
9
- Buyer = "buyer",
10
- Carrier = "carrier",
11
- Warehouse = "warehouse"
12
- }
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.StakeholderType = void 0;
4
- var StakeholderType;
5
- (function (StakeholderType) {
6
- StakeholderType["Shipper"] = "shipper";
7
- StakeholderType["Recipient"] = "recipient";
8
- StakeholderType["Consignee"] = "consignee";
9
- StakeholderType["Importer"] = "importer";
10
- StakeholderType["Declarant"] = "declarant";
11
- StakeholderType["Agent"] = "agent";
12
- StakeholderType["Broker"] = "broker";
13
- StakeholderType["Buyer"] = "buyer";
14
- StakeholderType["Carrier"] = "carrier";
15
- StakeholderType["Warehouse"] = "warehouse";
16
- })(StakeholderType = exports.StakeholderType || (exports.StakeholderType = {}));
@@ -1,13 +0,0 @@
1
- /**
2
- * Information about a notification Model
3
- */
4
- export interface NotificationsModel {
5
- id?: string;
6
- title?: string;
7
- status?: string;
8
- message?: string;
9
- link?: string;
10
- consumer?: string;
11
- addresseeType?: "customer" | "project" | "user";
12
- addresseeId?: string;
13
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,25 +0,0 @@
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
- }
@@ -1,21 +0,0 @@
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 = {}));
@@ -1,8 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });