module-package-comp 1.2.3 → 1.2.4

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.
@@ -66,7 +66,7 @@ export interface Component {
66
66
  attributes: Attribute[];
67
67
  conditions: Condition[][];
68
68
  settings?: SettingsComponent;
69
- filter?: DataJSON;
69
+ filter?: PrescriptionFilterType;
70
70
  createdAt?: DateTime;
71
71
  updatedAt?: DateTime;
72
72
  }
@@ -92,3 +92,14 @@ export interface DataResult {
92
92
  lastPage: number;
93
93
  data: Data[];
94
94
  }
95
+ export type PrescriptionFilterType = {
96
+ protocol: string | null;
97
+ cure: string | null;
98
+ molecule: string | null;
99
+ dose: Filter | null;
100
+ validation: Filter | null;
101
+ };
102
+ export type Filter = {
103
+ op: ConditionEnum | "";
104
+ value: string;
105
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "module-package-comp",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/util/type.ts CHANGED
@@ -78,7 +78,7 @@ export interface Component {
78
78
  attributes: Attribute[];
79
79
  conditions: Condition[][];
80
80
  settings?: SettingsComponent;
81
- filter?: DataJSON;
81
+ filter?: PrescriptionFilterType;
82
82
  createdAt?: DateTime;
83
83
  updatedAt?: DateTime;
84
84
  }
@@ -107,3 +107,16 @@ export interface DataResult {
107
107
  lastPage: number;
108
108
  data: Data[];
109
109
  }
110
+
111
+ export type PrescriptionFilterType = {
112
+ protocol: string | null;
113
+ cure: string | null;
114
+ molecule: string | null;
115
+ dose: Filter | null;
116
+ validation: Filter | null;
117
+ };
118
+
119
+ export type Filter = {
120
+ op: ConditionEnum | "";
121
+ value: string;
122
+ };