c2-clinical 1.0.89 → 1.0.91
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/models/enum.d.ts
CHANGED
package/dist/models/enum.js
CHANGED
|
@@ -68,6 +68,7 @@ var TypeFormUnitEnum;
|
|
|
68
68
|
TypeFormUnitEnum["GRAPHIC"] = "GRAPHIC";
|
|
69
69
|
TypeFormUnitEnum["SEPARATOR"] = "SEPARATOR";
|
|
70
70
|
TypeFormUnitEnum["MESSAGE"] = "MESSAGE";
|
|
71
|
+
TypeFormUnitEnum["TABLE"] = "TABLE";
|
|
71
72
|
})(TypeFormUnitEnum || (exports.TypeFormUnitEnum = TypeFormUnitEnum = {}));
|
|
72
73
|
/**
|
|
73
74
|
* Utilizado para FormUnitTypeEnum = QUESTION
|
|
@@ -72,6 +72,12 @@ export interface IFormUnit extends IDefault {
|
|
|
72
72
|
uploadFileConfig: IUploadFileConfig;
|
|
73
73
|
tips?: ITip[];
|
|
74
74
|
groupConfig: IGroupConfig;
|
|
75
|
+
tableConfig: {
|
|
76
|
+
headerData: {
|
|
77
|
+
headerText: string;
|
|
78
|
+
fieldName: string;
|
|
79
|
+
}[];
|
|
80
|
+
};
|
|
75
81
|
}
|
|
76
82
|
export interface IQuestionOption {
|
|
77
83
|
sequence: number;
|
|
@@ -285,6 +291,7 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
285
291
|
graphicData?: any;
|
|
286
292
|
modalConfig?: any;
|
|
287
293
|
groupConfig?: any;
|
|
294
|
+
tableConfig?: any;
|
|
288
295
|
uploadFileConfig?: any;
|
|
289
296
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{} & {
|
|
290
297
|
type: string;
|
|
@@ -398,6 +405,7 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
398
405
|
graphicData?: any;
|
|
399
406
|
modalConfig?: any;
|
|
400
407
|
groupConfig?: any;
|
|
408
|
+
tableConfig?: any;
|
|
401
409
|
uploadFileConfig?: any;
|
|
402
410
|
}>, {}> & import("mongoose").FlatRecord<{} & {
|
|
403
411
|
type: string;
|
|
@@ -511,6 +519,7 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
511
519
|
graphicData?: any;
|
|
512
520
|
modalConfig?: any;
|
|
513
521
|
groupConfig?: any;
|
|
522
|
+
tableConfig?: any;
|
|
514
523
|
uploadFileConfig?: any;
|
|
515
524
|
}> & {
|
|
516
525
|
_id: Types.ObjectId;
|
|
@@ -84,12 +84,29 @@ exports.FormUnitSchema = new mongoose_1.Schema({
|
|
|
84
84
|
},
|
|
85
85
|
_id: false
|
|
86
86
|
},
|
|
87
|
+
//DADOS PARA TABLE
|
|
88
|
+
tableConfig: {
|
|
89
|
+
type: {
|
|
90
|
+
headerData: {
|
|
91
|
+
type: [
|
|
92
|
+
{
|
|
93
|
+
type: {
|
|
94
|
+
headerText: { type: String, required: true },
|
|
95
|
+
fieldName: { type: String, required: true }
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
]
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
_id: false
|
|
102
|
+
},
|
|
87
103
|
//DADOS PARA UPLOAD FILE
|
|
88
104
|
uploadFileConfig: {
|
|
89
105
|
type: {
|
|
90
|
-
typeFile: { type:
|
|
106
|
+
typeFile: { type: String, default: enum_1.TypeUploadFileEnum.OTHER, required: true },
|
|
91
107
|
acceptablesExtensions: { type: [String] },
|
|
92
|
-
thumbExample: { type: String }
|
|
108
|
+
thumbExample: { type: String },
|
|
109
|
+
maxSizeInBytes: { type: Number, default: 8192 }
|
|
93
110
|
},
|
|
94
111
|
_id: false
|
|
95
112
|
},
|
package/package.json
CHANGED