1212
1313import { ConversionStep } from "../models/ConversionStep"
1414import { UnitCategory } from "../models/UnitCategory"
15+ import { VariableCombinationOperationEnum , VariableFillingTypeEnum } from "./GlobalVariable"
1516
1617export class Unit {
1718 /**
@@ -23,54 +24,88 @@ export class Unit {
2324 */
2425 "advanced" ?: number
2526 /**
26- * Unit category
27+ * Unit category name
2728 */
28- "category " : UnitCategoryEnum
29+ "categoryName " : string
2930 /**
30- * Ex: 6
31+ * Unit category ID
3132 */
32- "categoryId" ? : number
33+ "unitCategoryId" : number
3334 /**
34- * Ex: Miscellany
35+ * How measurements should be combined
3536 */
36- "categoryName" ?: string
37+ combinationOperation ?: VariableCombinationOperationEnum | null
3738 /**
3839 * Conversion steps list
3940 */
4041 "conversionSteps" : Array < ConversionStep >
4142 /**
42- * Ex: 29
43+ * How missing values should be handled
4344 */
44- "id" ?: number
45+ "fillingType" : VariableFillingTypeEnum
4546 /**
46- * Ex: https://static.quantimo.do/img/medical/png/pill.png
47+ * Value to use when filling missing data
4748 */
48- "image" ?: string
49+ "fillingValue" : number | null
4950 /**
50- * Ex: 0
51+ * Hint text for input
5152 */
52- "manualTracking " ?: number
53+ "hint " ?: string | null
5354 /**
54- * The maximum allowed value for measurements. While you can record a value above this maximum, it will be excluded from the correlation analysis.
55+ * Unit ID
5556 */
56- "maximumAllowedValue" ? : number
57+ "id" : number
5758 /**
58- * Ex: 4
59+ * Icon image URL
5960 */
60- "maximumValue" : number
61+ "image" ?: string
6162 /**
62- * The minimum allowed value for measurements. While you can record a value below this minimum, it will be excluded from the correlation analysis.
63+ * Whether unit can be tracked manually
6364 */
64- "minimumAllowedValue" ? : number
65+ "manualTracking" : number
6566 /**
66- * Ex: 0
67+ * Maximum allowed value
6768 */
68- "minimumValue" ?: number
69+ "maximumValue" : number | null
70+ /**
71+ * Minimum allowed value
72+ */
73+ "minimumValue" : number | null
6974 /**
7075 * Unit name
7176 */
7277 "name" : string
73- "unitCategory" : UnitCategory
78+ /**
79+ * Measurement scale type
80+ */
81+ "scale" ?: "ratio" | "interval" | "ordinal"
82+ /**
83+ * Unit suffix
84+ */
85+ "suffix" ?: string | null
86+ /**
87+ * Alternative names for the unit
88+ */
89+ "synonyms" ?: string [ ]
90+ /**
91+ * Font Awesome icon name
92+ */
93+ "fontAwesome" ?: string | null
94+ /**
95+ * Input type for form fields
96+ */
97+ "inputType" ?: string | null
98+ /**
99+ * Maximum daily value allowed
100+ */
101+ "maximumDailyValue" ?: number | null
102+ /**
103+ * Default value
104+ */
105+ "defaultValue" ?: number | null
106+
107+ "add" ?: number | null
108+ "multiply" ?: number | null
74109
75110 static readonly discriminator : string | undefined = undefined
76111
@@ -93,29 +128,41 @@ export class Unit {
93128 format : "" ,
94129 } ,
95130 {
96- name : "category " ,
97- baseName : "category " ,
98- type : "UnitCategoryEnum " ,
131+ name : "categoryName " ,
132+ baseName : "categoryName " ,
133+ type : "string " ,
99134 format : "" ,
100135 } ,
101136 {
102- name : "categoryId " ,
103- baseName : "categoryId " ,
137+ name : "unitCategoryId " ,
138+ baseName : "unitCategoryId " ,
104139 type : "number" ,
105140 format : "" ,
106141 } ,
107- {
108- name : "categoryName" ,
109- baseName : "categoryName" ,
110- type : "string" ,
111- format : "" ,
112- } ,
113142 {
114143 name : "conversionSteps" ,
115144 baseName : "conversionSteps" ,
116145 type : "Array<ConversionStep>" ,
117146 format : "" ,
118147 } ,
148+ {
149+ name : "fillingType" ,
150+ baseName : "fillingType" ,
151+ type : "VariableFillingTypeEnum" ,
152+ format : "" ,
153+ } ,
154+ {
155+ name : "fillingValue" ,
156+ baseName : "fillingValue" ,
157+ type : "number" ,
158+ format : "" ,
159+ } ,
160+ {
161+ name : "hint" ,
162+ baseName : "hint" ,
163+ type : "string" ,
164+ format : "" ,
165+ } ,
119166 {
120167 name : "id" ,
121168 baseName : "id" ,
@@ -134,24 +181,12 @@ export class Unit {
134181 type : "number" ,
135182 format : "" ,
136183 } ,
137- {
138- name : "maximumAllowedValue" ,
139- baseName : "maximumAllowedValue" ,
140- type : "number" ,
141- format : "double" ,
142- } ,
143184 {
144185 name : "maximumValue" ,
145186 baseName : "maximumValue" ,
146187 type : "number" ,
147188 format : "" ,
148189 } ,
149- {
150- name : "minimumAllowedValue" ,
151- baseName : "minimumAllowedValue" ,
152- type : "number" ,
153- format : "double" ,
154- } ,
155190 {
156191 name : "minimumValue" ,
157192 baseName : "minimumValue" ,
@@ -165,9 +200,45 @@ export class Unit {
165200 format : "" ,
166201 } ,
167202 {
168- name : "unitCategory" ,
169- baseName : "unitCategory" ,
170- type : "UnitCategory" ,
203+ name : "scale" ,
204+ baseName : "scale" ,
205+ type : "string" ,
206+ format : "" ,
207+ } ,
208+ {
209+ name : "suffix" ,
210+ baseName : "suffix" ,
211+ type : "string" ,
212+ format : "" ,
213+ } ,
214+ {
215+ name : "synonyms" ,
216+ baseName : "synonyms" ,
217+ type : "Array<string>" ,
218+ format : "" ,
219+ } ,
220+ {
221+ name : "fontAwesome" ,
222+ baseName : "fontAwesome" ,
223+ type : "string" ,
224+ format : "" ,
225+ } ,
226+ {
227+ name : "inputType" ,
228+ baseName : "inputType" ,
229+ type : "string" ,
230+ format : "" ,
231+ } ,
232+ {
233+ name : "maximumDailyValue" ,
234+ baseName : "maximumDailyValue" ,
235+ type : "number" ,
236+ format : "" ,
237+ } ,
238+ {
239+ name : "defaultValue" ,
240+ baseName : "defaultValue" ,
241+ type : "number" ,
171242 format : "" ,
172243 } ,
173244 ]
0 commit comments