digicust_types 1.6.180 → 1.7.2

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 (27) hide show
  1. package/lib/models/common/frontend-fields.model.d.ts +1 -1
  2. package/lib/models/digicust/classification.model.d.ts +14 -0
  3. package/lib/models/digicust/classification.model.js +10 -0
  4. package/lib/models/digicust/customer.model.d.ts +1 -0
  5. package/lib/models/digicust/index.d.ts +1 -0
  6. package/lib/models/digicust/index.js +2 -0
  7. package/lib/models/digicust/line-item.model.js +2 -4
  8. package/lib/models/digicust/membership.model.d.ts +7 -0
  9. package/lib/{contracts/start-hs-classification.dto.js → models/digicust/membership.model.js} +0 -0
  10. package/lib/models/digicust/submission-case-model.d.ts +16 -2
  11. package/lib/models/digicust/submission-case-model.js +10 -0
  12. package/package.json +1 -1
  13. package/lib/contracts/start-hs-classification.dto.d.ts +0 -3
  14. package/lib/models/common/checkpoint.model.d.ts +0 -21
  15. package/lib/models/common/checkpoint.model.js +0 -8
  16. package/lib/models/common/country.model.d.ts +0 -4
  17. package/lib/models/common/country.model.js +0 -2
  18. package/lib/models/common/event.model.d.ts +0 -21
  19. package/lib/models/common/event.model.js +0 -8
  20. package/lib/models/common/super.d.ts +0 -7
  21. package/lib/models/common/super.js +0 -2
  22. package/lib/models/digicust/QueueWorkspaceModel.model.d.ts +0 -12
  23. package/lib/models/digicust/QueueWorkspaceModel.model.js +0 -2
  24. package/lib/models/digicust/notification.model.d.ts +0 -13
  25. package/lib/models/digicust/notification.model.js +0 -2
  26. package/lib/models/digicust/shipping-type.model.d.ts +0 -25
  27. package/lib/models/digicust/shipping-type.model.js +0 -21
@@ -4,7 +4,7 @@ export interface FrontendFields {
4
4
  path?: String;
5
5
  value?: String;
6
6
  label?: String;
7
- reviewNeeded?: Boolean;
7
+ reviewNeeded?: Array<Boolean>;
8
8
  type: FieldType;
9
9
  format?: String;
10
10
  prefix?: FieldPrefix;
@@ -0,0 +1,14 @@
1
+ import { Meta } from "../common";
2
+ export interface Classification extends Meta<string> {
3
+ value?: string;
4
+ tariffNumberType?: "HS" | "NC" | "HTS" | "TARIC";
5
+ additionalCodes?: {
6
+ type: "AdditionalCode1" | "AdditionalCode2" | "AdditionalCode3" | "QuotaCode";
7
+ value?: string;
8
+ }[];
9
+ supplementaryUnits?: {
10
+ number?: string;
11
+ typeCode?: string;
12
+ };
13
+ }
14
+ export declare const condenseClassification: (classification: Classification) => Classification;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.condenseClassification = void 0;
4
+ var condenseClassification = function (classification) {
5
+ return {
6
+ value: classification.value,
7
+ tariffNumberType: classification.tariffNumberType,
8
+ };
9
+ };
10
+ exports.condenseClassification = condenseClassification;
@@ -6,6 +6,7 @@ export interface CustomerModel {
6
6
  id?: string;
7
7
  name?: string;
8
8
  modules?: ModuleModel[];
9
+ membershipId?: string;
9
10
  companyAddress?: string;
10
11
  country?: string;
11
12
  city?: string;
@@ -40,3 +40,4 @@ export * from "./frontend-mapping.model";
40
40
  export * from "./queue.model";
41
41
  export * from "./masterdata";
42
42
  export * from "./extractions";
43
+ export * from "./membership.model";
@@ -59,3 +59,5 @@ __exportStar(require("./frontend-mapping.model"), exports);
59
59
  __exportStar(require("./queue.model"), exports);
60
60
  __exportStar(require("./masterdata"), exports);
61
61
  __exportStar(require("./extractions"), exports);
62
+ // membership
63
+ __exportStar(require("./membership.model"), exports);
@@ -111,12 +111,10 @@ var condenseLineItem = function (lineItem) {
111
111
  units: lineItem.units,
112
112
  preferences: lineItem.preferences,
113
113
  documents: lineItem.documents
114
- ? (_a = lineItem.documents) === null || _a === void 0 ? void 0 : _a.map(function (document) { return digicust_document_model_1.condenseDocument(document); })
115
- : lineItem.documents,
114
+ ? (_a = lineItem.documents) === null || _a === void 0 ? void 0 : _a.map(function (document) { return digicust_document_model_1.condenseDocument(document); }) : lineItem.documents,
116
115
  adjustments: lineItem.adjustments,
117
116
  containers: lineItem.containers
118
- ? (_b = lineItem.containers) === null || _b === void 0 ? void 0 : _b.map(function (container) { return common_1.condenseMeta(container); })
119
- : lineItem.containers,
117
+ ? (_b = lineItem.containers) === null || _b === void 0 ? void 0 : _b.map(function (container) { return common_1.condenseMeta(container); }) : lineItem.containers,
120
118
  reference: lineItem.reference
121
119
  ? common_1.condenseMeta(lineItem.reference)
122
120
  : lineItem.reference,
@@ -0,0 +1,7 @@
1
+ export interface MembershipModel {
2
+ id?: string;
3
+ userId?: string;
4
+ customerId?: string;
5
+ projectId?: string;
6
+ role?: "owner" | "member";
7
+ }
@@ -1,8 +1,22 @@
1
- import { Meta } from "../common";
2
1
  /**
3
2
  * Information about the submission at a customs authority
4
3
  */
5
4
  export interface CaseSubmissionModel {
6
- mrnNumber?: Meta<string>;
5
+ id?: string;
7
6
  accomplishedAt?: Date;
7
+ procedure?: CaseSubmissionProcedure;
8
+ /** Service that is responsible for this submission */
9
+ service?: string;
10
+ transactions?: {
11
+ dateTime?: Date;
12
+ /** Specifies which type of transaction it is (e.g. 'QuittungEingangsverarbeitung') */
13
+ transactionType?: string;
14
+ content?: any;
15
+ }[];
16
+ }
17
+ export declare enum CaseSubmissionProcedure {
18
+ VersandanmeldungNCTSDE = "VersandanmeldungNCTSDE",
19
+ EingangsanzeigeNCTSDE = "EingangsanzeigeNCTSDE",
20
+ FreierVerkehrAbfertigung = "FreierVerkehrAbfertigung",
21
+ ErgaenzendeAnmeldungFVAVUV = "ErgaenzendeAnmeldungFVAVUV"
8
22
  }
@@ -1,2 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CaseSubmissionProcedure = void 0;
4
+ var CaseSubmissionProcedure;
5
+ (function (CaseSubmissionProcedure) {
6
+ // NCTS DE
7
+ CaseSubmissionProcedure["VersandanmeldungNCTSDE"] = "VersandanmeldungNCTSDE";
8
+ CaseSubmissionProcedure["EingangsanzeigeNCTSDE"] = "EingangsanzeigeNCTSDE";
9
+ // Freier Verkehr
10
+ CaseSubmissionProcedure["FreierVerkehrAbfertigung"] = "FreierVerkehrAbfertigung";
11
+ CaseSubmissionProcedure["ErgaenzendeAnmeldungFVAVUV"] = "ErgaenzendeAnmeldungFVAVUV";
12
+ })(CaseSubmissionProcedure = exports.CaseSubmissionProcedure || (exports.CaseSubmissionProcedure = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "digicust_types",
3
- "version": "1.6.180",
3
+ "version": "1.7.2",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -1,3 +0,0 @@
1
- export interface StartHsClassificationDto {
2
- caseId: string;
3
- }
@@ -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,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 = {}));