digicust_types 1.7.129 → 1.7.130

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 (29) hide show
  1. package/lib/contracts/start-hs-classification.dto.d.ts +3 -0
  2. package/lib/contracts/start-hs-classification.dto.js +2 -0
  3. package/lib/models/common/checkpoint.model.d.ts +21 -0
  4. package/lib/models/common/checkpoint.model.js +8 -0
  5. package/lib/models/common/country.model.d.ts +4 -0
  6. package/lib/models/common/country.model.js +2 -0
  7. package/lib/models/common/event.model.d.ts +21 -0
  8. package/lib/models/common/event.model.js +8 -0
  9. package/lib/models/common/super.d.ts +7 -0
  10. package/lib/models/common/super.js +2 -0
  11. package/lib/models/digicust/QueueWorkspaceModel.model.d.ts +12 -0
  12. package/lib/models/digicust/QueueWorkspaceModel.model.js +2 -0
  13. package/lib/models/digicust/activity.mode.d.ts +18 -0
  14. package/lib/models/digicust/activity.mode.js +2 -0
  15. package/lib/models/digicust/company.model.d.ts +4 -0
  16. package/lib/models/digicust/company.model.js +2 -0
  17. package/lib/models/digicust/event.model.d.ts +1 -0
  18. package/lib/models/digicust/incoterm.enum.d.ts +17 -0
  19. package/lib/models/digicust/incoterm.enum.js +21 -0
  20. package/lib/models/digicust/masterdata/material.model.d.ts +4 -3
  21. package/lib/models/digicust/masterdata/stakeholder-type.enum.d.ts +12 -0
  22. package/lib/models/digicust/masterdata/stakeholder-type.enum.js +16 -0
  23. package/lib/models/digicust/notification.model.d.ts +13 -0
  24. package/lib/models/digicust/notification.model.js +2 -0
  25. package/lib/models/digicust/shipping-type.model.d.ts +25 -0
  26. package/lib/models/digicust/shipping-type.model.js +21 -0
  27. package/lib/models/digicust/submission-case-model.d.ts +8 -0
  28. package/lib/models/digicust/submission-case-model.js +2 -0
  29. package/package.json +2 -2
@@ -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 });
@@ -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,12 @@
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
+ }
@@ -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 });
@@ -29,6 +29,7 @@ export interface SFTPEvent extends Event {
29
29
  "sftp-port": string;
30
30
  "sftp-dns-name": string;
31
31
  "sftp-path": string;
32
+ "remote-path-sep": string;
32
33
  }
33
34
  export interface EmailEvent extends Event {
34
35
  type: EventType.mail;
@@ -0,0 +1,17 @@
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
+ }
@@ -0,0 +1,21 @@
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 = {}));
@@ -51,11 +51,12 @@ export interface MaterialModel {
51
51
  buyerOrderNumber?: Workflow<string>;
52
52
  dimensions?: Dimensions & Workflow<any>;
53
53
  meursing?: Meursing[];
54
- documentTypeCodes?: ({
54
+ documentTypeCodes?: Workflow<{
55
+ code?: string;
55
56
  description?: string;
56
57
  reference?: string;
57
- type?: "Import" | "Export" | "Any";
58
- } & Workflow<string>)[];
58
+ type?: "import" | "export" | "any";
59
+ }>[];
59
60
  customsLaw?: {
60
61
  customsTariffNumber?: CustomsTariffNumber & Workflow<any>;
61
62
  procedure?: Workflow<string>;
@@ -0,0 +1,12 @@
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
+ }
@@ -0,0 +1,16 @@
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 = {}));
@@ -0,0 +1,13 @@
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
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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.129",
3
+ "version": "1.7.130",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "homepage": "https://github.com/Digicust0406/types#readme",
26
26
  "dependencies": {
27
- "@types/node": "^14.18.3",
27
+ "@types/node": "^14.18.2",
28
28
  "typedoc": "^0.22.10"
29
29
  },
30
30
  "devDependencies": {