digicust_types 1.8.183 → 1.8.185

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.
@@ -34,6 +34,10 @@ export interface BulkUploadFileStatistics {
34
34
  }[];
35
35
  };
36
36
  }
37
+ export declare enum TariffSystem {
38
+ DE = "DE",// DE for Germany and Austria
39
+ XK = "XK"
40
+ }
37
41
  /**
38
42
  * Project Model provides all the data related to a project and customer
39
43
  */
@@ -45,7 +49,7 @@ export interface ProjectModel {
45
49
  modules?: ModuleModel[];
46
50
  workspaces?: QueueWorkspaceModel[];
47
51
  customsSystem?: CustomsSystem;
48
- tariffNumberTreeSystem?: "DE" | "XK";
52
+ tariffNumberTreeSystem?: TariffSystem;
49
53
  mappings?: Mapping[];
50
54
  rules?: Rule[];
51
55
  masterData?: {
@@ -1,8 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CustomsSystem = void 0;
3
+ exports.TariffSystem = exports.CustomsSystem = void 0;
4
4
  var CustomsSystem;
5
5
  (function (CustomsSystem) {
6
6
  CustomsSystem["atlas"] = "atlas";
7
7
  CustomsSystem["eZoll"] = "eZoll";
8
8
  })(CustomsSystem || (exports.CustomsSystem = CustomsSystem = {}));
9
+ var TariffSystem;
10
+ (function (TariffSystem) {
11
+ TariffSystem["DE"] = "DE";
12
+ TariffSystem["XK"] = "XK";
13
+ })(TariffSystem || (exports.TariffSystem = TariffSystem = {}));
@@ -1,3 +1,4 @@
1
+ import { TariffSystem } from "../../customer";
1
2
  export interface TariffNumberSuggestion {
2
3
  tariffNumber: string;
3
4
  reason: string;
@@ -12,7 +13,7 @@ export interface TariffClassifyV2Payload {
12
13
  details?: string;
13
14
  description?: string;
14
15
  level?: string;
15
- tariff_system?: string;
16
+ tariff_system: TariffSystem;
16
17
  }
17
18
  export interface TariffClassifyV2Result {
18
19
  tariff_code: string;
@@ -26,9 +27,10 @@ export interface TariffClassifyV2Result {
26
27
  }[];
27
28
  process_time: number;
28
29
  }
29
- export interface BTISuggestion {
30
+ export interface BTISuggestionResponse {
30
31
  Sprache: string;
31
32
  "Nomenklatur-Code": string;
33
+ Warenbeschreibung: string;
32
34
  "VZTA-Nummer": string;
33
35
  "Nationale Stichworte": string;
34
36
  "Datum der Erteilung": string;
@@ -41,7 +43,23 @@ export interface BTISuggestion {
41
43
  _id: string;
42
44
  _collection_name: string;
43
45
  score: number;
44
- Warenbeschreibung: string;
46
+ }
47
+ export interface BTISuggestion {
48
+ language: string;
49
+ nomenclatureCode: string;
50
+ descriptionOfGoods: string;
51
+ vztaNumber: string;
52
+ nationalKeywords: string;
53
+ dateOfIssuance: string;
54
+ nameAndAddress: string;
55
+ reasonForClassification: string;
56
+ issuingCountry: string;
57
+ placeOfIssuance: string;
58
+ validUntil: string;
59
+ validFrom: string;
60
+ _id: string;
61
+ _collectionName: string;
62
+ score: number;
45
63
  }
46
64
  /** Tariff chat web socket types */
47
65
  export declare enum TariffWSMessageSender {
@@ -62,6 +80,7 @@ export type TariffWSMessage = {
62
80
  message: string;
63
81
  customer_id: string;
64
82
  project_id: string;
83
+ tariff_system: TariffSystem;
65
84
  language: "en" | "de";
66
85
  type?: TariffWSMessageType;
67
86
  number?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "digicust_types",
3
- "version": "1.8.183",
3
+ "version": "1.8.185",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",