c2-clinical 1.0.195 → 1.0.197
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/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/models/energy-expenditure/EnergyExpenditureAnswer.d.ts +296 -0
- package/dist/models/energy-expenditure/EnergyExpenditureAnswer.js +34 -0
- package/dist/models/energy-expenditure/EnergyExpenditureMetActivity.d.ts +2 -15
- package/dist/models/energy-expenditure/EnergyExpenditureMetActivity.js +2 -4
- package/dist/models/enum.d.ts +3 -1
- package/dist/models/enum.js +2 -0
- package/dist/models/form/FormUnit.d.ts +4 -0
- package/dist/models/form/FormUnit.js +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export * from "./models/anamnese/AnamneseAnswer";
|
|
|
15
15
|
export * from "./models/anthropometry/Anthropometry";
|
|
16
16
|
export * from "./models/anthropometry/AnthropometryAnswer";
|
|
17
17
|
export * from "./models/energy-expenditure/EnergyExpenditure";
|
|
18
|
-
export * from "./models/energy-expenditure/
|
|
18
|
+
export * from "./models/energy-expenditure/EnergyExpenditureAnswer";
|
|
19
19
|
export * from "./models/met-activity/MetActivity";
|
|
20
20
|
export * from "./models/form/Form";
|
|
21
21
|
export * from "./models/form/FormUnit";
|
package/dist/index.js
CHANGED
|
@@ -40,7 +40,7 @@ __exportStar(require("./models/anamnese/AnamneseAnswer"), exports);
|
|
|
40
40
|
__exportStar(require("./models/anthropometry/Anthropometry"), exports);
|
|
41
41
|
__exportStar(require("./models/anthropometry/AnthropometryAnswer"), exports);
|
|
42
42
|
__exportStar(require("./models/energy-expenditure/EnergyExpenditure"), exports);
|
|
43
|
-
__exportStar(require("./models/energy-expenditure/
|
|
43
|
+
__exportStar(require("./models/energy-expenditure/EnergyExpenditureAnswer"), exports);
|
|
44
44
|
__exportStar(require("./models/met-activity/MetActivity"), exports);
|
|
45
45
|
__exportStar(require("./models/form/Form"), exports);
|
|
46
46
|
__exportStar(require("./models/form/FormUnit"), exports);
|
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
import { Schema, Types } from "mongoose";
|
|
2
|
+
import { IAnswer } from "../Answer";
|
|
3
|
+
import { IForm } from "../form/Form";
|
|
4
|
+
import { IEnergyExpenditure } from "./EnergyExpenditure";
|
|
5
|
+
import { IPatient } from "../patient/Patient";
|
|
6
|
+
export interface IEnergyExpenditureAnswer extends IAnswer {
|
|
7
|
+
form: Types.ObjectId | IForm;
|
|
8
|
+
energyExpenditure: Types.ObjectId | IEnergyExpenditure;
|
|
9
|
+
patient: Types.ObjectId | IPatient;
|
|
10
|
+
referenceValue: any;
|
|
11
|
+
classificationLabel: any;
|
|
12
|
+
classificationColor: any;
|
|
13
|
+
}
|
|
14
|
+
export declare const EnergyExpenditureAnswerSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
15
|
+
timestamps: {
|
|
16
|
+
createdAt: string;
|
|
17
|
+
updatedAt: string;
|
|
18
|
+
};
|
|
19
|
+
}, {} & {
|
|
20
|
+
account: {
|
|
21
|
+
prototype?: Types.ObjectId | null | undefined;
|
|
22
|
+
cacheHexString?: unknown;
|
|
23
|
+
generate?: {} | null | undefined;
|
|
24
|
+
createFromTime?: {} | null | undefined;
|
|
25
|
+
createFromHexString?: {} | null | undefined;
|
|
26
|
+
createFromBase64?: {} | null | undefined;
|
|
27
|
+
isValid?: {} | null | undefined;
|
|
28
|
+
};
|
|
29
|
+
reference: {
|
|
30
|
+
prototype?: Types.ObjectId | null | undefined;
|
|
31
|
+
cacheHexString?: unknown;
|
|
32
|
+
generate?: {} | null | undefined;
|
|
33
|
+
createFromTime?: {} | null | undefined;
|
|
34
|
+
createFromHexString?: {} | null | undefined;
|
|
35
|
+
createFromBase64?: {} | null | undefined;
|
|
36
|
+
isValid?: {} | null | undefined;
|
|
37
|
+
};
|
|
38
|
+
form: {
|
|
39
|
+
prototype?: Types.ObjectId | null | undefined;
|
|
40
|
+
cacheHexString?: unknown;
|
|
41
|
+
generate?: {} | null | undefined;
|
|
42
|
+
createFromTime?: {} | null | undefined;
|
|
43
|
+
createFromHexString?: {} | null | undefined;
|
|
44
|
+
createFromBase64?: {} | null | undefined;
|
|
45
|
+
isValid?: {} | null | undefined;
|
|
46
|
+
};
|
|
47
|
+
validations: Types.DocumentArray<{
|
|
48
|
+
typeOutput: string;
|
|
49
|
+
type?: string | null | undefined;
|
|
50
|
+
message?: string | null | undefined;
|
|
51
|
+
}, Types.Subdocument<Types.ObjectId, any, {
|
|
52
|
+
typeOutput: string;
|
|
53
|
+
type?: string | null | undefined;
|
|
54
|
+
message?: string | null | undefined;
|
|
55
|
+
}> & {
|
|
56
|
+
typeOutput: string;
|
|
57
|
+
type?: string | null | undefined;
|
|
58
|
+
message?: string | null | undefined;
|
|
59
|
+
}> | Types.DocumentArray<{
|
|
60
|
+
_id?: unknown;
|
|
61
|
+
}, Types.Subdocument<unknown, any, {
|
|
62
|
+
_id?: unknown;
|
|
63
|
+
}> & {
|
|
64
|
+
_id?: unknown;
|
|
65
|
+
}>;
|
|
66
|
+
patient: {
|
|
67
|
+
prototype?: Types.ObjectId | null | undefined;
|
|
68
|
+
cacheHexString?: unknown;
|
|
69
|
+
generate?: {} | null | undefined;
|
|
70
|
+
createFromTime?: {} | null | undefined;
|
|
71
|
+
createFromHexString?: {} | null | undefined;
|
|
72
|
+
createFromBase64?: {} | null | undefined;
|
|
73
|
+
isValid?: {} | null | undefined;
|
|
74
|
+
};
|
|
75
|
+
requestGraphicData: Types.DocumentArray<{
|
|
76
|
+
method: string;
|
|
77
|
+
url: string;
|
|
78
|
+
codes: string[];
|
|
79
|
+
datasetsToAdd: any[];
|
|
80
|
+
body?: any;
|
|
81
|
+
dataset?: any;
|
|
82
|
+
}, Types.Subdocument<Types.ObjectId, any, {
|
|
83
|
+
method: string;
|
|
84
|
+
url: string;
|
|
85
|
+
codes: string[];
|
|
86
|
+
datasetsToAdd: any[];
|
|
87
|
+
body?: any;
|
|
88
|
+
dataset?: any;
|
|
89
|
+
}> & {
|
|
90
|
+
method: string;
|
|
91
|
+
url: string;
|
|
92
|
+
codes: string[];
|
|
93
|
+
datasetsToAdd: any[];
|
|
94
|
+
body?: any;
|
|
95
|
+
dataset?: any;
|
|
96
|
+
}>;
|
|
97
|
+
energyExpenditure: {
|
|
98
|
+
prototype?: Types.ObjectId | null | undefined;
|
|
99
|
+
cacheHexString?: unknown;
|
|
100
|
+
generate?: {} | null | undefined;
|
|
101
|
+
createFromTime?: {} | null | undefined;
|
|
102
|
+
createFromHexString?: {} | null | undefined;
|
|
103
|
+
createFromBase64?: {} | null | undefined;
|
|
104
|
+
isValid?: {} | null | undefined;
|
|
105
|
+
};
|
|
106
|
+
answer?: any;
|
|
107
|
+
referenceValue?: any;
|
|
108
|
+
classificationLabel?: any;
|
|
109
|
+
classificationColor?: any;
|
|
110
|
+
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{} & {
|
|
111
|
+
account: {
|
|
112
|
+
prototype?: Types.ObjectId | null | undefined;
|
|
113
|
+
cacheHexString?: unknown;
|
|
114
|
+
generate?: {} | null | undefined;
|
|
115
|
+
createFromTime?: {} | null | undefined;
|
|
116
|
+
createFromHexString?: {} | null | undefined;
|
|
117
|
+
createFromBase64?: {} | null | undefined;
|
|
118
|
+
isValid?: {} | null | undefined;
|
|
119
|
+
};
|
|
120
|
+
reference: {
|
|
121
|
+
prototype?: Types.ObjectId | null | undefined;
|
|
122
|
+
cacheHexString?: unknown;
|
|
123
|
+
generate?: {} | null | undefined;
|
|
124
|
+
createFromTime?: {} | null | undefined;
|
|
125
|
+
createFromHexString?: {} | null | undefined;
|
|
126
|
+
createFromBase64?: {} | null | undefined;
|
|
127
|
+
isValid?: {} | null | undefined;
|
|
128
|
+
};
|
|
129
|
+
form: {
|
|
130
|
+
prototype?: Types.ObjectId | null | undefined;
|
|
131
|
+
cacheHexString?: unknown;
|
|
132
|
+
generate?: {} | null | undefined;
|
|
133
|
+
createFromTime?: {} | null | undefined;
|
|
134
|
+
createFromHexString?: {} | null | undefined;
|
|
135
|
+
createFromBase64?: {} | null | undefined;
|
|
136
|
+
isValid?: {} | null | undefined;
|
|
137
|
+
};
|
|
138
|
+
validations: Types.DocumentArray<{
|
|
139
|
+
typeOutput: string;
|
|
140
|
+
type?: string | null | undefined;
|
|
141
|
+
message?: string | null | undefined;
|
|
142
|
+
}, Types.Subdocument<Types.ObjectId, any, {
|
|
143
|
+
typeOutput: string;
|
|
144
|
+
type?: string | null | undefined;
|
|
145
|
+
message?: string | null | undefined;
|
|
146
|
+
}> & {
|
|
147
|
+
typeOutput: string;
|
|
148
|
+
type?: string | null | undefined;
|
|
149
|
+
message?: string | null | undefined;
|
|
150
|
+
}> | Types.DocumentArray<{
|
|
151
|
+
_id?: unknown;
|
|
152
|
+
}, Types.Subdocument<unknown, any, {
|
|
153
|
+
_id?: unknown;
|
|
154
|
+
}> & {
|
|
155
|
+
_id?: unknown;
|
|
156
|
+
}>;
|
|
157
|
+
patient: {
|
|
158
|
+
prototype?: Types.ObjectId | null | undefined;
|
|
159
|
+
cacheHexString?: unknown;
|
|
160
|
+
generate?: {} | null | undefined;
|
|
161
|
+
createFromTime?: {} | null | undefined;
|
|
162
|
+
createFromHexString?: {} | null | undefined;
|
|
163
|
+
createFromBase64?: {} | null | undefined;
|
|
164
|
+
isValid?: {} | null | undefined;
|
|
165
|
+
};
|
|
166
|
+
requestGraphicData: Types.DocumentArray<{
|
|
167
|
+
method: string;
|
|
168
|
+
url: string;
|
|
169
|
+
codes: string[];
|
|
170
|
+
datasetsToAdd: any[];
|
|
171
|
+
body?: any;
|
|
172
|
+
dataset?: any;
|
|
173
|
+
}, Types.Subdocument<Types.ObjectId, any, {
|
|
174
|
+
method: string;
|
|
175
|
+
url: string;
|
|
176
|
+
codes: string[];
|
|
177
|
+
datasetsToAdd: any[];
|
|
178
|
+
body?: any;
|
|
179
|
+
dataset?: any;
|
|
180
|
+
}> & {
|
|
181
|
+
method: string;
|
|
182
|
+
url: string;
|
|
183
|
+
codes: string[];
|
|
184
|
+
datasetsToAdd: any[];
|
|
185
|
+
body?: any;
|
|
186
|
+
dataset?: any;
|
|
187
|
+
}>;
|
|
188
|
+
energyExpenditure: {
|
|
189
|
+
prototype?: Types.ObjectId | null | undefined;
|
|
190
|
+
cacheHexString?: unknown;
|
|
191
|
+
generate?: {} | null | undefined;
|
|
192
|
+
createFromTime?: {} | null | undefined;
|
|
193
|
+
createFromHexString?: {} | null | undefined;
|
|
194
|
+
createFromBase64?: {} | null | undefined;
|
|
195
|
+
isValid?: {} | null | undefined;
|
|
196
|
+
};
|
|
197
|
+
answer?: any;
|
|
198
|
+
referenceValue?: any;
|
|
199
|
+
classificationLabel?: any;
|
|
200
|
+
classificationColor?: any;
|
|
201
|
+
}>, {}> & import("mongoose").FlatRecord<{} & {
|
|
202
|
+
account: {
|
|
203
|
+
prototype?: Types.ObjectId | null | undefined;
|
|
204
|
+
cacheHexString?: unknown;
|
|
205
|
+
generate?: {} | null | undefined;
|
|
206
|
+
createFromTime?: {} | null | undefined;
|
|
207
|
+
createFromHexString?: {} | null | undefined;
|
|
208
|
+
createFromBase64?: {} | null | undefined;
|
|
209
|
+
isValid?: {} | null | undefined;
|
|
210
|
+
};
|
|
211
|
+
reference: {
|
|
212
|
+
prototype?: Types.ObjectId | null | undefined;
|
|
213
|
+
cacheHexString?: unknown;
|
|
214
|
+
generate?: {} | null | undefined;
|
|
215
|
+
createFromTime?: {} | null | undefined;
|
|
216
|
+
createFromHexString?: {} | null | undefined;
|
|
217
|
+
createFromBase64?: {} | null | undefined;
|
|
218
|
+
isValid?: {} | null | undefined;
|
|
219
|
+
};
|
|
220
|
+
form: {
|
|
221
|
+
prototype?: Types.ObjectId | null | undefined;
|
|
222
|
+
cacheHexString?: unknown;
|
|
223
|
+
generate?: {} | null | undefined;
|
|
224
|
+
createFromTime?: {} | null | undefined;
|
|
225
|
+
createFromHexString?: {} | null | undefined;
|
|
226
|
+
createFromBase64?: {} | null | undefined;
|
|
227
|
+
isValid?: {} | null | undefined;
|
|
228
|
+
};
|
|
229
|
+
validations: Types.DocumentArray<{
|
|
230
|
+
typeOutput: string;
|
|
231
|
+
type?: string | null | undefined;
|
|
232
|
+
message?: string | null | undefined;
|
|
233
|
+
}, Types.Subdocument<Types.ObjectId, any, {
|
|
234
|
+
typeOutput: string;
|
|
235
|
+
type?: string | null | undefined;
|
|
236
|
+
message?: string | null | undefined;
|
|
237
|
+
}> & {
|
|
238
|
+
typeOutput: string;
|
|
239
|
+
type?: string | null | undefined;
|
|
240
|
+
message?: string | null | undefined;
|
|
241
|
+
}> | Types.DocumentArray<{
|
|
242
|
+
_id?: unknown;
|
|
243
|
+
}, Types.Subdocument<unknown, any, {
|
|
244
|
+
_id?: unknown;
|
|
245
|
+
}> & {
|
|
246
|
+
_id?: unknown;
|
|
247
|
+
}>;
|
|
248
|
+
patient: {
|
|
249
|
+
prototype?: Types.ObjectId | null | undefined;
|
|
250
|
+
cacheHexString?: unknown;
|
|
251
|
+
generate?: {} | null | undefined;
|
|
252
|
+
createFromTime?: {} | null | undefined;
|
|
253
|
+
createFromHexString?: {} | null | undefined;
|
|
254
|
+
createFromBase64?: {} | null | undefined;
|
|
255
|
+
isValid?: {} | null | undefined;
|
|
256
|
+
};
|
|
257
|
+
requestGraphicData: Types.DocumentArray<{
|
|
258
|
+
method: string;
|
|
259
|
+
url: string;
|
|
260
|
+
codes: string[];
|
|
261
|
+
datasetsToAdd: any[];
|
|
262
|
+
body?: any;
|
|
263
|
+
dataset?: any;
|
|
264
|
+
}, Types.Subdocument<Types.ObjectId, any, {
|
|
265
|
+
method: string;
|
|
266
|
+
url: string;
|
|
267
|
+
codes: string[];
|
|
268
|
+
datasetsToAdd: any[];
|
|
269
|
+
body?: any;
|
|
270
|
+
dataset?: any;
|
|
271
|
+
}> & {
|
|
272
|
+
method: string;
|
|
273
|
+
url: string;
|
|
274
|
+
codes: string[];
|
|
275
|
+
datasetsToAdd: any[];
|
|
276
|
+
body?: any;
|
|
277
|
+
dataset?: any;
|
|
278
|
+
}>;
|
|
279
|
+
energyExpenditure: {
|
|
280
|
+
prototype?: Types.ObjectId | null | undefined;
|
|
281
|
+
cacheHexString?: unknown;
|
|
282
|
+
generate?: {} | null | undefined;
|
|
283
|
+
createFromTime?: {} | null | undefined;
|
|
284
|
+
createFromHexString?: {} | null | undefined;
|
|
285
|
+
createFromBase64?: {} | null | undefined;
|
|
286
|
+
isValid?: {} | null | undefined;
|
|
287
|
+
};
|
|
288
|
+
answer?: any;
|
|
289
|
+
referenceValue?: any;
|
|
290
|
+
classificationLabel?: any;
|
|
291
|
+
classificationColor?: any;
|
|
292
|
+
}> & {
|
|
293
|
+
_id: Types.ObjectId;
|
|
294
|
+
} & {
|
|
295
|
+
__v: number;
|
|
296
|
+
}>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EnergyExpenditureAnswerSchema = void 0;
|
|
4
|
+
const mongoose_1 = require("mongoose");
|
|
5
|
+
const FormUnit_1 = require("../form/FormUnit");
|
|
6
|
+
const enum_1 = require("../enum");
|
|
7
|
+
exports.EnergyExpenditureAnswerSchema = new mongoose_1.Schema({
|
|
8
|
+
account: { type: mongoose_1.Types.ObjectId, ref: "account", required: true },
|
|
9
|
+
energyExpenditure: { type: mongoose_1.Types.ObjectId, ref: "energy-expenditure", required: true },
|
|
10
|
+
patient: { type: mongoose_1.Types.ObjectId, ref: "patient", required: true },
|
|
11
|
+
form: { type: mongoose_1.Types.ObjectId, ref: "form", required: true },
|
|
12
|
+
reference: { type: mongoose_1.Types.ObjectId, ref: "form-unit", required: true },
|
|
13
|
+
answer: { type: mongoose_1.Schema.Types.Mixed },
|
|
14
|
+
referenceValue: { type: mongoose_1.Schema.Types.Mixed },
|
|
15
|
+
classificationLabel: { type: mongoose_1.Schema.Types.Mixed },
|
|
16
|
+
classificationColor: { type: mongoose_1.Schema.Types.Mixed },
|
|
17
|
+
validations: {
|
|
18
|
+
type: [
|
|
19
|
+
{
|
|
20
|
+
type: { type: String, enum: enum_1.TypeValidationEnum },
|
|
21
|
+
typeOutput: {
|
|
22
|
+
type: String,
|
|
23
|
+
enum: enum_1.TypeOutputValidationEnum,
|
|
24
|
+
default: enum_1.TypeOutputValidationEnum.TEXT
|
|
25
|
+
},
|
|
26
|
+
message: { type: String }
|
|
27
|
+
},
|
|
28
|
+
{ _id: false }
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
requestGraphicData: { type: [FormUnit_1.RequestGraphicDataSchema] }
|
|
32
|
+
}, {
|
|
33
|
+
timestamps: { createdAt: "createdAtDateTime", updatedAt: "updatedAtDateTime" }
|
|
34
|
+
});
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import { Schema, Types } from "mongoose";
|
|
2
|
-
import { IDefault } from "../Default";
|
|
3
2
|
import { IMetActivity } from "../met-activity/MetActivity";
|
|
4
|
-
|
|
5
|
-
import { IEnergyExpenditure } from "./EnergyExpenditure";
|
|
6
|
-
export interface IEnergyExpenditureMetActivity extends IDefault {
|
|
7
|
-
energyExpenditure: Types.ObjectId | IEnergyExpenditure;
|
|
8
|
-
patient: Types.ObjectId | IPatient;
|
|
3
|
+
export interface IEnergyExpenditureMetActivity {
|
|
9
4
|
met: Types.ObjectId | IMetActivity;
|
|
10
5
|
totalTime: string;
|
|
11
6
|
timeCoefficient: number;
|
|
@@ -15,27 +10,19 @@ export declare const EnergyExpenditureMetActivitySchema: Schema<any, import("mon
|
|
|
15
10
|
createdAt: string;
|
|
16
11
|
updatedAt: string;
|
|
17
12
|
};
|
|
13
|
+
_id: false;
|
|
18
14
|
}, {} & {
|
|
19
|
-
account: Types.ObjectId;
|
|
20
|
-
patient: Types.ObjectId;
|
|
21
15
|
met: Types.ObjectId;
|
|
22
16
|
totalTime: string;
|
|
23
17
|
timeCoefficient: number;
|
|
24
|
-
energyExpenditure?: Types.ObjectId | null | undefined;
|
|
25
18
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{} & {
|
|
26
|
-
account: Types.ObjectId;
|
|
27
|
-
patient: Types.ObjectId;
|
|
28
19
|
met: Types.ObjectId;
|
|
29
20
|
totalTime: string;
|
|
30
21
|
timeCoefficient: number;
|
|
31
|
-
energyExpenditure?: Types.ObjectId | null | undefined;
|
|
32
22
|
}>, {}> & import("mongoose").FlatRecord<{} & {
|
|
33
|
-
account: Types.ObjectId;
|
|
34
|
-
patient: Types.ObjectId;
|
|
35
23
|
met: Types.ObjectId;
|
|
36
24
|
totalTime: string;
|
|
37
25
|
timeCoefficient: number;
|
|
38
|
-
energyExpenditure?: Types.ObjectId | null | undefined;
|
|
39
26
|
}> & {
|
|
40
27
|
_id: Types.ObjectId;
|
|
41
28
|
} & {
|
|
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.EnergyExpenditureMetActivitySchema = void 0;
|
|
4
4
|
const mongoose_1 = require("mongoose");
|
|
5
5
|
exports.EnergyExpenditureMetActivitySchema = new mongoose_1.Schema({
|
|
6
|
-
account: { type: mongoose_1.Schema.Types.ObjectId, ref: "account", required: true },
|
|
7
|
-
energyExpenditure: { type: mongoose_1.Schema.Types.ObjectId, ref: "energy-expenditure" },
|
|
8
|
-
patient: { type: mongoose_1.Schema.Types.ObjectId, ref: "patient", required: true },
|
|
9
6
|
met: { type: mongoose_1.Schema.Types.ObjectId, ref: "met-activity", required: true },
|
|
10
7
|
totalTime: { type: String, default: "00:00" },
|
|
11
8
|
timeCoefficient: { type: Number, default: 0 }
|
|
@@ -13,5 +10,6 @@ exports.EnergyExpenditureMetActivitySchema = new mongoose_1.Schema({
|
|
|
13
10
|
timestamps: {
|
|
14
11
|
createdAt: "createdAtDateTime",
|
|
15
12
|
updatedAt: "updatedAtDateTime"
|
|
16
|
-
}
|
|
13
|
+
},
|
|
14
|
+
_id: false
|
|
17
15
|
});
|
package/dist/models/enum.d.ts
CHANGED
|
@@ -80,6 +80,7 @@ export declare enum TypeAnswerEnum {
|
|
|
80
80
|
RANGE_DATE = "RANGE_DATE",
|
|
81
81
|
RANGE_TIME = "RANGE_TIME",
|
|
82
82
|
BOOLEAN = "BOOLEAN",
|
|
83
|
+
LIST_OBJECT = "LIST_OBJECT",
|
|
83
84
|
DATE = "DATE",
|
|
84
85
|
UPLOAD_FILE = "UPLOAD_FILE"
|
|
85
86
|
}
|
|
@@ -102,7 +103,8 @@ export declare enum TypeUploadFileEnum {
|
|
|
102
103
|
export declare enum TypeButtonAction {
|
|
103
104
|
OPEN_MODAL = "OPEN_MODAL",
|
|
104
105
|
CANCEL_MODAL = "CANCEL_MODAL",
|
|
105
|
-
CONFIRM_MODAL = "CONFIRM_MODAL"
|
|
106
|
+
CONFIRM_MODAL = "CONFIRM_MODAL",
|
|
107
|
+
OPEN_MODAL_ANSWER_EXTERNAL_FLOW = "OPEN_MODAL_ANSWER_EXTERNAL_FLOW"
|
|
106
108
|
}
|
|
107
109
|
export declare enum TypeValidationEnum {
|
|
108
110
|
WARNING = "WARNING",
|
package/dist/models/enum.js
CHANGED
|
@@ -93,6 +93,7 @@ var TypeAnswerEnum;
|
|
|
93
93
|
TypeAnswerEnum["RANGE_DATE"] = "RANGE_DATE";
|
|
94
94
|
TypeAnswerEnum["RANGE_TIME"] = "RANGE_TIME";
|
|
95
95
|
TypeAnswerEnum["BOOLEAN"] = "BOOLEAN";
|
|
96
|
+
TypeAnswerEnum["LIST_OBJECT"] = "LIST_OBJECT";
|
|
96
97
|
TypeAnswerEnum["DATE"] = "DATE";
|
|
97
98
|
TypeAnswerEnum["UPLOAD_FILE"] = "UPLOAD_FILE";
|
|
98
99
|
})(TypeAnswerEnum || (exports.TypeAnswerEnum = TypeAnswerEnum = {}));
|
|
@@ -119,6 +120,7 @@ var TypeButtonAction;
|
|
|
119
120
|
TypeButtonAction["OPEN_MODAL"] = "OPEN_MODAL";
|
|
120
121
|
TypeButtonAction["CANCEL_MODAL"] = "CANCEL_MODAL";
|
|
121
122
|
TypeButtonAction["CONFIRM_MODAL"] = "CONFIRM_MODAL";
|
|
123
|
+
TypeButtonAction["OPEN_MODAL_ANSWER_EXTERNAL_FLOW"] = "OPEN_MODAL_ANSWER_EXTERNAL_FLOW";
|
|
122
124
|
})(TypeButtonAction || (exports.TypeButtonAction = TypeButtonAction = {}));
|
|
123
125
|
var TypeValidationEnum;
|
|
124
126
|
(function (TypeValidationEnum) {
|
|
@@ -67,6 +67,7 @@ export interface IFormUnit extends IDefault {
|
|
|
67
67
|
category: CategoryFormEnum;
|
|
68
68
|
typeButtonAction: TypeButtonAction;
|
|
69
69
|
variantView: VariantViewEnum;
|
|
70
|
+
externalFlowCode: string;
|
|
70
71
|
measurementUnit: string;
|
|
71
72
|
options: IQuestionOption[];
|
|
72
73
|
isDefault: boolean;
|
|
@@ -333,6 +334,7 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
333
334
|
defaultAnswer?: string | null | undefined;
|
|
334
335
|
variantView?: string | null | undefined;
|
|
335
336
|
typeButtonAction?: string | null | undefined;
|
|
337
|
+
externalFlowCode?: string | null | undefined;
|
|
336
338
|
measurementUnit?: string | null | undefined;
|
|
337
339
|
formulaToAnswer?: string | null | undefined;
|
|
338
340
|
formulaToReferenceValue?: string | null | undefined;
|
|
@@ -480,6 +482,7 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
480
482
|
defaultAnswer?: string | null | undefined;
|
|
481
483
|
variantView?: string | null | undefined;
|
|
482
484
|
typeButtonAction?: string | null | undefined;
|
|
485
|
+
externalFlowCode?: string | null | undefined;
|
|
483
486
|
measurementUnit?: string | null | undefined;
|
|
484
487
|
formulaToAnswer?: string | null | undefined;
|
|
485
488
|
formulaToReferenceValue?: string | null | undefined;
|
|
@@ -627,6 +630,7 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
627
630
|
defaultAnswer?: string | null | undefined;
|
|
628
631
|
variantView?: string | null | undefined;
|
|
629
632
|
typeButtonAction?: string | null | undefined;
|
|
633
|
+
externalFlowCode?: string | null | undefined;
|
|
630
634
|
measurementUnit?: string | null | undefined;
|
|
631
635
|
formulaToAnswer?: string | null | undefined;
|
|
632
636
|
formulaToReferenceValue?: string | null | undefined;
|
|
@@ -57,6 +57,7 @@ exports.FormUnitSchema = new mongoose_1.Schema({
|
|
|
57
57
|
category: { type: String, enum: enum_1.CategoryFormEnum, required: true },
|
|
58
58
|
variantView: { type: String, enum: enum_1.VariantViewEnum },
|
|
59
59
|
typeButtonAction: { type: String, enum: enum_1.TypeButtonAction },
|
|
60
|
+
externalFlowCode: { type: String },
|
|
60
61
|
measurementUnit: { type: String },
|
|
61
62
|
options: { type: [exports.QuestionOptionSchema] },
|
|
62
63
|
formulaToAnswer: { type: String },
|