@legalplace/tagextractor 3.0.4 → 3.0.6

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,25 @@
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.6](https://git.legalplace.eu/legalplace/tagextractor/compare/@legalplace/tagextractor@3.0.5...@legalplace/tagextractor@3.0.6) (2023-12-04)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * add index FK signature request contract data ([6de95dd](https://git.legalplace.eu/legalplace/tagextractor/commits/6de95dd7426840fb25e05fdfcdf5badf861ace60)), closes [api#10082](https://git.legalplace.eu/api/issues/10082)
12
+
13
+
14
+
15
+
16
+
17
+ ## [3.0.5](https://git.legalplace.eu/legalplace/tagextractor/compare/@legalplace/tagextractor@3.0.4...@legalplace/tagextractor@3.0.5) (2023-11-27)
18
+
19
+ **Note:** Version bump only for package @legalplace/tagextractor
20
+
21
+
22
+
23
+
24
+
6
25
  ## [3.0.4](https://git.legalplace.eu/legalplace/tagextractor/compare/@legalplace/tagextractor@3.0.3...@legalplace/tagextractor@3.0.4) (2023-11-07)
7
26
 
8
27
  **Note:** Version bump only for package @legalplace/tagextractor
@@ -27,7 +27,7 @@ class TagExtractor {
27
27
  }
28
28
  extractFromOptions() {
29
29
  Object.keys(this.references.options).forEach((id) => {
30
- const { tags, label } = this.references.options[id].meta;
30
+ const { tags, label, grantLevel } = 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,6 +40,7 @@ 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 }),
43
44
  });
44
45
  });
45
46
  });
@@ -48,7 +49,7 @@ class TagExtractor {
48
49
  }
49
50
  extractFromVariables() {
50
51
  Object.keys(this.references.variables).forEach((id) => {
51
- const { tags, label } = this.references.variables[id];
52
+ const { tags, label, grantLevel } = this.references.variables[id];
52
53
  if (Array.isArray(tags) && tags.length > 0 && this.inputs.variables[id]) {
53
54
  this.inputs.variables[id].forEach((v, index) => {
54
55
  tags.forEach((tag) => {
@@ -61,6 +62,7 @@ class TagExtractor {
61
62
  condition: this.getVariableCondition(parseInt(id, 10), index) !== false,
62
63
  visible: this.isVariableDisplayed(parseInt(id, 10), index),
63
64
  value: this.inputs.variables[id][index],
65
+ ...(grantLevel && { grantLevel }),
64
66
  });
65
67
  });
66
68
  });
@@ -1,3 +1,4 @@
1
+ import type { ROLE } from "@legalplace/typeorm-constants";
1
2
  interface TagsType {
2
3
  options: Record<string, OptionTagType[]>;
3
4
  variables: Record<string, VariableTagType[]>;
@@ -9,6 +10,7 @@ export interface OptionTagType {
9
10
  condition: boolean;
10
11
  visible: boolean;
11
12
  value: boolean;
13
+ grantLevel?: ROLE;
12
14
  }
13
15
  export interface VariableTagType {
14
16
  id: number;
@@ -17,5 +19,6 @@ export interface VariableTagType {
17
19
  condition: boolean;
18
20
  visible: boolean;
19
21
  value: string | number;
22
+ grantLevel?: ROLE;
20
23
  }
21
24
  export default TagsType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legalplace/tagextractor",
3
- "version": "3.0.4",
3
+ "version": "3.0.6",
4
4
  "description": "TagExtractor",
5
5
  "main": "dist/index.js",
6
6
  "repository": "https://git.legalplace.eu/legalplace/tagextractor",
@@ -17,16 +17,17 @@
17
17
  "test:coverage": "jest test --coverage --watchAll=false "
18
18
  },
19
19
  "dependencies": {
20
- "@legalplace/conditions-runner": "^2.0.4",
20
+ "@legalplace/conditions-runner": "^2.0.5",
21
21
  "@legalplace/lplogic": "2.1.6",
22
- "@legalplace/models-v3-types": "^5.1.18",
23
- "@legalplace/ovc-converter": "^2.0.4",
24
- "@legalplace/referencesparser": "^3.0.4"
22
+ "@legalplace/models-v3-types": "^5.1.21",
23
+ "@legalplace/ovc-converter": "^2.0.5",
24
+ "@legalplace/referencesparser": "^3.0.5",
25
+ "@legalplace/typeorm-constants": "^3.19.0"
25
26
  },
26
27
  "devDependencies": {
27
28
  "@legalplace/eslint-config": "^2.2.0",
28
29
  "@legalplace/prettier-config": "^2.1.3",
29
- "@legalplace/types": "^2.1.0",
30
+ "@legalplace/types": "^2.2.0",
30
31
  "@swc-node/jest": "^1.4.3",
31
32
  "@types/jest": "27.4.0",
32
33
  "@typescript-eslint/eslint-plugin": "^5.8.0",
@@ -41,5 +42,5 @@
41
42
  "ts-node": "^10.4.0"
42
43
  },
43
44
  "prettier": "@legalplace/prettier-config",
44
- "gitHead": "095bb47bf79e380b4a909dbb702b70f4c7485528"
45
+ "gitHead": "148099e4a0390d09828c74090c3cd0105ea641dd"
45
46
  }
@@ -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 } = this.references.options[id].meta;
68
+ const { tags, label, grantLevel } = 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,6 +79,7 @@ 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 }),
82
83
  });
83
84
  });
84
85
  });
@@ -91,7 +92,7 @@ class TagExtractor {
91
92
  */
92
93
  private extractFromVariables() {
93
94
  Object.keys(this.references.variables).forEach((id) => {
94
- const { tags, label } = this.references.variables[id];
95
+ const { tags, label, grantLevel } = this.references.variables[id];
95
96
 
96
97
  if (Array.isArray(tags) && tags.length > 0 && this.inputs.variables[id]) {
97
98
  this.inputs.variables[id].forEach((v, index) => {
@@ -106,6 +107,7 @@ class TagExtractor {
106
107
  this.getVariableCondition(parseInt(id, 10), index) !== false,
107
108
  visible: this.isVariableDisplayed(parseInt(id, 10), index),
108
109
  value: this.inputs.variables[id][index],
110
+ ...(grantLevel && { grantLevel }),
109
111
  });
110
112
  });
111
113
  });
@@ -1,3 +1,5 @@
1
+ import type { ROLE } from "@legalplace/typeorm-constants";
2
+
1
3
  interface TagsType {
2
4
  options: Record<string, OptionTagType[]>;
3
5
  variables: Record<string, VariableTagType[]>;
@@ -10,6 +12,7 @@ export interface OptionTagType {
10
12
  condition: boolean;
11
13
  visible: boolean;
12
14
  value: boolean;
15
+ grantLevel?: ROLE;
13
16
  }
14
17
 
15
18
  export interface VariableTagType {
@@ -19,6 +22,7 @@ export interface VariableTagType {
19
22
  condition: boolean;
20
23
  visible: boolean;
21
24
  value: string | number;
25
+ grantLevel?: ROLE;
22
26
  }
23
27
 
24
28
  export default TagsType;