c2-clinical 1.0.90 → 1.0.92

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
@@ -56,6 +56,8 @@ export interface IFormUnit extends IDefault {
56
56
  measurementUnit: string;
57
57
  options: IQuestionOption[];
58
58
  formulaToAnswer: string;
59
+ formulaToReferenceValue: string;
60
+ formulaToClassificatino: string;
59
61
  formulaToEnable: string;
60
62
  validations: IValidationQuestion[];
61
63
  active: boolean;
@@ -72,6 +74,12 @@ export interface IFormUnit extends IDefault {
72
74
  uploadFileConfig: IUploadFileConfig;
73
75
  tips?: ITip[];
74
76
  groupConfig: IGroupConfig;
77
+ tableConfig: {
78
+ headerData: {
79
+ headerText: string;
80
+ fieldName: string;
81
+ }[];
82
+ };
75
83
  }
76
84
  export interface IQuestionOption {
77
85
  sequence: number;
@@ -280,11 +288,14 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
280
288
  typeButtonAction?: string | null | undefined;
281
289
  measurementUnit?: string | null | undefined;
282
290
  formulaToAnswer?: string | null | undefined;
291
+ formulaToReferenceValue?: string | null | undefined;
292
+ formulaToClassificatino?: string | null | undefined;
283
293
  codeEnableFreeText?: string | null | undefined;
284
294
  labelFreeText?: string | null | undefined;
285
295
  graphicData?: any;
286
296
  modalConfig?: any;
287
297
  groupConfig?: any;
298
+ tableConfig?: any;
288
299
  uploadFileConfig?: any;
289
300
  }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{} & {
290
301
  type: string;
@@ -393,11 +404,14 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
393
404
  typeButtonAction?: string | null | undefined;
394
405
  measurementUnit?: string | null | undefined;
395
406
  formulaToAnswer?: string | null | undefined;
407
+ formulaToReferenceValue?: string | null | undefined;
408
+ formulaToClassificatino?: string | null | undefined;
396
409
  codeEnableFreeText?: string | null | undefined;
397
410
  labelFreeText?: string | null | undefined;
398
411
  graphicData?: any;
399
412
  modalConfig?: any;
400
413
  groupConfig?: any;
414
+ tableConfig?: any;
401
415
  uploadFileConfig?: any;
402
416
  }>, {}> & import("mongoose").FlatRecord<{} & {
403
417
  type: string;
@@ -506,11 +520,14 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
506
520
  typeButtonAction?: string | null | undefined;
507
521
  measurementUnit?: string | null | undefined;
508
522
  formulaToAnswer?: string | null | undefined;
523
+ formulaToReferenceValue?: string | null | undefined;
524
+ formulaToClassificatino?: string | null | undefined;
509
525
  codeEnableFreeText?: string | null | undefined;
510
526
  labelFreeText?: string | null | undefined;
511
527
  graphicData?: any;
512
528
  modalConfig?: any;
513
529
  groupConfig?: any;
530
+ tableConfig?: any;
514
531
  uploadFileConfig?: any;
515
532
  }> & {
516
533
  _id: Types.ObjectId;
@@ -54,6 +54,8 @@ exports.FormUnitSchema = new mongoose_1.Schema({
54
54
  measurementUnit: { type: String },
55
55
  options: { type: [exports.QuestionOptionSchema] },
56
56
  formulaToAnswer: { type: String },
57
+ formulaToReferenceValue: { type: String },
58
+ formulaToClassificatino: { type: String },
57
59
  formulaToEnable: { type: String, default: "true" },
58
60
  validations: { type: [exports.ValidationSchema] },
59
61
  active: { type: Boolean, required: true, default: true }, //perguntas que nao serão consideradas ao realizar qualquer operacao
@@ -84,12 +86,29 @@ exports.FormUnitSchema = new mongoose_1.Schema({
84
86
  },
85
87
  _id: false
86
88
  },
89
+ //DADOS PARA TABLE
90
+ tableConfig: {
91
+ type: {
92
+ headerData: {
93
+ type: [
94
+ {
95
+ type: {
96
+ headerText: { type: String, required: true },
97
+ fieldName: { type: String, required: true }
98
+ }
99
+ }
100
+ ]
101
+ }
102
+ },
103
+ _id: false
104
+ },
87
105
  //DADOS PARA UPLOAD FILE
88
106
  uploadFileConfig: {
89
107
  type: {
90
108
  typeFile: { type: String, default: enum_1.TypeUploadFileEnum.OTHER, required: true },
91
109
  acceptablesExtensions: { type: [String] },
92
- thumbExample: { type: String }
110
+ thumbExample: { type: String },
111
+ maxSizeInBytes: { type: Number, default: 8192 }
93
112
  },
94
113
  _id: false
95
114
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-clinical",
3
- "version": "1.0.90",
3
+ "version": "1.0.92",
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>",