digicust_types 1.8.184 → 1.8.186

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;
@@ -20,6 +20,10 @@ export interface WebhookEvent extends Event {
20
20
  /** mapping in JSONATA format (https://www.npmjs.com/package/jsonata) */
21
21
  bodyMapping?: string;
22
22
  contentType?: string;
23
+ basicAuth?: {
24
+ username?: string;
25
+ password?: string;
26
+ };
23
27
  }
24
28
  export interface SFTPEvent extends Event {
25
29
  type: EventType.sftp;
package/package.json CHANGED
@@ -1,49 +1,49 @@
1
- {
2
- "name": "digicust_types",
3
- "version": "1.8.184",
4
- "description": "",
5
- "main": "lib/index.js",
6
- "types": "lib/index.d.ts",
7
- "files": [
8
- "lib/**/*"
9
- ],
10
- "scripts": {
11
- "build-with-runtime-interfaces": "tsc && `npm bin`/run-for-every-file --src ./lib/ --file '**/*.d.ts' --run \"`npm bin`/ts-interface-builder -i -g -c {{src-file}}\"",
12
- "build": "tsc",
13
- "build-deploy": "git pull && npm version patch && npm run build && npm publish",
14
- "deploy-docs": "npm i && npx typedoc src/index.ts",
15
- "lint.fix": "eslint --fix --ext .ts .",
16
- "prettier.fix": "prettier --write .",
17
- "prepare": "husky install",
18
- "lint-staged": "lint-staged"
19
- },
20
- "repository": {
21
- "type": "git",
22
- "url": "git+https://github.com/Digicust0406/types.git"
23
- },
24
- "keywords": [],
25
- "author": "Thomas Übellacker",
26
- "license": "Proprietary",
27
- "bugs": {
28
- "url": "https://github.com/Digicust0406/types/issues"
29
- },
30
- "homepage": "https://github.com/Digicust0406/types#readme",
31
- "dependencies": {
32
- "typedoc": "^0.25.4"
33
- },
34
- "devDependencies": {
35
- "@types/node": "^20.10.2",
36
- "@typescript-eslint/eslint-plugin": "^6.13.1",
37
- "@typescript-eslint/parser": "^6.13.1",
38
- "eslint": "^8.55.0",
39
- "eslint-config-airbnb-typescript": "^17.1.0",
40
- "eslint-config-prettier": "^9.1.0",
41
- "eslint-plugin-import": "^2.29.0",
42
- "eslint-plugin-node": "^11.1.0",
43
- "eslint-plugin-prettier": "^5.0.1",
44
- "husky": "^8.0.3",
45
- "lint-staged": "^15.1.0",
46
- "prettier": "^3.1.0",
47
- "typescript": "^5.3.2"
48
- }
49
- }
1
+ {
2
+ "name": "digicust_types",
3
+ "version": "1.8.186",
4
+ "description": "",
5
+ "main": "lib/index.js",
6
+ "types": "lib/index.d.ts",
7
+ "files": [
8
+ "lib/**/*"
9
+ ],
10
+ "scripts": {
11
+ "build-with-runtime-interfaces": "tsc && `npm bin`/run-for-every-file --src ./lib/ --file '**/*.d.ts' --run \"`npm bin`/ts-interface-builder -i -g -c {{src-file}}\"",
12
+ "build": "tsc",
13
+ "build-deploy": "git pull && npm version patch && npm run build && npm publish",
14
+ "deploy-docs": "npm i && npx typedoc src/index.ts",
15
+ "lint.fix": "eslint --fix --ext .ts .",
16
+ "prettier.fix": "prettier --write .",
17
+ "prepare": "husky install",
18
+ "lint-staged": "lint-staged"
19
+ },
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "git+https://github.com/Digicust0406/types.git"
23
+ },
24
+ "keywords": [],
25
+ "author": "Thomas Übellacker",
26
+ "license": "Proprietary",
27
+ "bugs": {
28
+ "url": "https://github.com/Digicust0406/types/issues"
29
+ },
30
+ "homepage": "https://github.com/Digicust0406/types#readme",
31
+ "dependencies": {
32
+ "typedoc": "^0.25.4"
33
+ },
34
+ "devDependencies": {
35
+ "@types/node": "^20.10.2",
36
+ "@typescript-eslint/eslint-plugin": "^6.13.1",
37
+ "@typescript-eslint/parser": "^6.13.1",
38
+ "eslint": "^8.55.0",
39
+ "eslint-config-airbnb-typescript": "^17.1.0",
40
+ "eslint-config-prettier": "^9.1.0",
41
+ "eslint-plugin-import": "^2.29.0",
42
+ "eslint-plugin-node": "^11.1.0",
43
+ "eslint-plugin-prettier": "^5.0.1",
44
+ "husky": "^8.0.3",
45
+ "lint-staged": "^15.1.0",
46
+ "prettier": "^3.1.0",
47
+ "typescript": "^5.3.2"
48
+ }
49
+ }