@legalplace/tagextractor 3.0.6 → 3.0.7

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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [3.0.7](https://git.legalplace.eu/legalplace/tagextractor/compare/@legalplace/tagextractor@3.0.6...@legalplace/tagextractor@3.0.7) (2023-12-04)
7
+
8
+ **Note:** Version bump only for package @legalplace/tagextractor
9
+
10
+
11
+
12
+
13
+
6
14
  ## [3.0.6](https://git.legalplace.eu/legalplace/tagextractor/compare/@legalplace/tagextractor@3.0.5...@legalplace/tagextractor@3.0.6) (2023-12-04)
7
15
 
8
16
 
@@ -27,7 +27,7 @@ class TagExtractor {
27
27
  }
28
28
  extractFromOptions() {
29
29
  Object.keys(this.references.options).forEach((id) => {
30
- const { tags, label, grantLevel } = this.references.options[id].meta;
30
+ const { tags, label } = this.references.options[id].meta;
31
31
  if (Array.isArray(tags) && tags.length > 0 && this.inputs.options[id]) {
32
32
  this.inputs.options[id].forEach((v, index) => {
33
33
  tags.forEach((tag) => {
@@ -40,7 +40,6 @@ class TagExtractor {
40
40
  condition: this.getOptionCondition(parseInt(id, 10), index),
41
41
  visible: this.isOptionDisplayed(parseInt(id, 10), index),
42
42
  value: this.inputs.options[id][index],
43
- ...(grantLevel && { grantLevel }),
44
43
  });
45
44
  });
46
45
  });
@@ -49,7 +48,7 @@ class TagExtractor {
49
48
  }
50
49
  extractFromVariables() {
51
50
  Object.keys(this.references.variables).forEach((id) => {
52
- const { tags, label, grantLevel } = this.references.variables[id];
51
+ const { tags, label } = this.references.variables[id];
53
52
  if (Array.isArray(tags) && tags.length > 0 && this.inputs.variables[id]) {
54
53
  this.inputs.variables[id].forEach((v, index) => {
55
54
  tags.forEach((tag) => {
@@ -62,7 +61,6 @@ class TagExtractor {
62
61
  condition: this.getVariableCondition(parseInt(id, 10), index) !== false,
63
62
  visible: this.isVariableDisplayed(parseInt(id, 10), index),
64
63
  value: this.inputs.variables[id][index],
65
- ...(grantLevel && { grantLevel }),
66
64
  });
67
65
  });
68
66
  });
@@ -1,4 +1,3 @@
1
- import type { ROLE } from "@legalplace/typeorm-constants";
2
1
  interface TagsType {
3
2
  options: Record<string, OptionTagType[]>;
4
3
  variables: Record<string, VariableTagType[]>;
@@ -10,7 +9,6 @@ export interface OptionTagType {
10
9
  condition: boolean;
11
10
  visible: boolean;
12
11
  value: boolean;
13
- grantLevel?: ROLE;
14
12
  }
15
13
  export interface VariableTagType {
16
14
  id: number;
@@ -19,6 +17,5 @@ export interface VariableTagType {
19
17
  condition: boolean;
20
18
  visible: boolean;
21
19
  value: string | number;
22
- grantLevel?: ROLE;
23
20
  }
24
21
  export default TagsType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legalplace/tagextractor",
3
- "version": "3.0.6",
3
+ "version": "3.0.7",
4
4
  "description": "TagExtractor",
5
5
  "main": "dist/index.js",
6
6
  "repository": "https://git.legalplace.eu/legalplace/tagextractor",
@@ -21,8 +21,7 @@
21
21
  "@legalplace/lplogic": "2.1.6",
22
22
  "@legalplace/models-v3-types": "^5.1.21",
23
23
  "@legalplace/ovc-converter": "^2.0.5",
24
- "@legalplace/referencesparser": "^3.0.5",
25
- "@legalplace/typeorm-constants": "^3.19.0"
24
+ "@legalplace/referencesparser": "^3.0.5"
26
25
  },
27
26
  "devDependencies": {
28
27
  "@legalplace/eslint-config": "^2.2.0",
@@ -42,5 +41,5 @@
42
41
  "ts-node": "^10.4.0"
43
42
  },
44
43
  "prettier": "@legalplace/prettier-config",
45
- "gitHead": "148099e4a0390d09828c74090c3cd0105ea641dd"
44
+ "gitHead": "c4cac322ceaf1d3e88e6facf7ef160ecd0cecc1e"
46
45
  }
@@ -65,7 +65,7 @@ class TagExtractor {
65
65
  */
66
66
  private extractFromOptions() {
67
67
  Object.keys(this.references.options).forEach((id) => {
68
- const { tags, label, grantLevel } = this.references.options[id].meta;
68
+ const { tags, label } = this.references.options[id].meta;
69
69
 
70
70
  if (Array.isArray(tags) && tags.length > 0 && this.inputs.options[id]) {
71
71
  this.inputs.options[id].forEach((v, index) => {
@@ -79,7 +79,6 @@ class TagExtractor {
79
79
  condition: this.getOptionCondition(parseInt(id, 10), index),
80
80
  visible: this.isOptionDisplayed(parseInt(id, 10), index),
81
81
  value: this.inputs.options[id][index],
82
- ...(grantLevel && { grantLevel }),
83
82
  });
84
83
  });
85
84
  });
@@ -92,7 +91,7 @@ class TagExtractor {
92
91
  */
93
92
  private extractFromVariables() {
94
93
  Object.keys(this.references.variables).forEach((id) => {
95
- const { tags, label, grantLevel } = this.references.variables[id];
94
+ const { tags, label } = this.references.variables[id];
96
95
 
97
96
  if (Array.isArray(tags) && tags.length > 0 && this.inputs.variables[id]) {
98
97
  this.inputs.variables[id].forEach((v, index) => {
@@ -107,7 +106,6 @@ class TagExtractor {
107
106
  this.getVariableCondition(parseInt(id, 10), index) !== false,
108
107
  visible: this.isVariableDisplayed(parseInt(id, 10), index),
109
108
  value: this.inputs.variables[id][index],
110
- ...(grantLevel && { grantLevel }),
111
109
  });
112
110
  });
113
111
  });
@@ -1,5 +1,3 @@
1
- import type { ROLE } from "@legalplace/typeorm-constants";
2
-
3
1
  interface TagsType {
4
2
  options: Record<string, OptionTagType[]>;
5
3
  variables: Record<string, VariableTagType[]>;
@@ -12,7 +10,6 @@ export interface OptionTagType {
12
10
  condition: boolean;
13
11
  visible: boolean;
14
12
  value: boolean;
15
- grantLevel?: ROLE;
16
13
  }
17
14
 
18
15
  export interface VariableTagType {
@@ -22,7 +19,6 @@ export interface VariableTagType {
22
19
  condition: boolean;
23
20
  visible: boolean;
24
21
  value: string | number;
25
- grantLevel?: ROLE;
26
22
  }
27
23
 
28
24
  export default TagsType;