digicust_types 1.8.184 → 1.8.185

Sign up to get free protection for your applications and to get access to all the features.
@@ -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;
@@ -79,6 +80,7 @@ export type TariffWSMessage = {
79
80
  message: string;
80
81
  customer_id: string;
81
82
  project_id: string;
83
+ tariff_system: TariffSystem;
82
84
  language: "en" | "de";
83
85
  type?: TariffWSMessageType;
84
86
  number?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "digicust_types",
3
- "version": "1.8.184",
3
+ "version": "1.8.185",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",