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.
@@ -55,7 +55,8 @@ export declare enum TypeFormUnitEnum {
55
55
  MODAL = "MODAL",
56
56
  GRAPHIC = "GRAPHIC",
57
57
  SEPARATOR = "SEPARATOR",
58
- MESSAGE = "MESSAGE"
58
+ MESSAGE = "MESSAGE",
59
+ TABLE = "TABLE"
59
60
  }
60
61
  /**
61
62
  * Utilizado para FormUnitTypeEnum = QUESTION
@@ -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: enum_1.TypeUploadFileEnum, default: enum_1.TypeUploadFileEnum.OTHER, required: true },
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-clinical",
3
- "version": "1.0.89",
3
+ "version": "1.0.91",
4
4
  "description": "Biblioteca Typescript para API NodeJS",
5
5
  "repository": "https://github.com/cabralsilva/c2-clinical.git",
6
6
  "author": "Daniel Cabral <cabralconsultoriaemsoftware@gmail.com>",