c2-clinical 1.0.224 → 1.0.225

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.
@@ -105,6 +105,7 @@ export interface IFormUnit extends IDefault {
105
105
  modalConfig?: IModalConfig;
106
106
  uploadFileConfig: IUploadFileConfig;
107
107
  tips?: ITip[];
108
+ buttonConfig: IButtonConfig;
108
109
  groupConfig: IGroupConfig;
109
110
  tableConfig: {
110
111
  headerData: {
@@ -422,6 +423,10 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
422
423
  typeAnswer?: string | null | undefined;
423
424
  variantView?: string | null | undefined;
424
425
  formulaToAnswer?: string | null | undefined;
426
+ buttonConfig?: {
427
+ typeButtonAction?: string | null | undefined;
428
+ externalFlowCode?: string | null | undefined;
429
+ } | null | undefined;
425
430
  typeButtonAction?: string | null | undefined;
426
431
  externalFlowCode?: string | null | undefined;
427
432
  reference?: Types.ObjectId | null | undefined;
@@ -666,6 +671,10 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
666
671
  typeAnswer?: string | null | undefined;
667
672
  variantView?: string | null | undefined;
668
673
  formulaToAnswer?: string | null | undefined;
674
+ buttonConfig?: {
675
+ typeButtonAction?: string | null | undefined;
676
+ externalFlowCode?: string | null | undefined;
677
+ } | null | undefined;
669
678
  typeButtonAction?: string | null | undefined;
670
679
  externalFlowCode?: string | null | undefined;
671
680
  reference?: Types.ObjectId | null | undefined;
@@ -910,6 +919,10 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
910
919
  typeAnswer?: string | null | undefined;
911
920
  variantView?: string | null | undefined;
912
921
  formulaToAnswer?: string | null | undefined;
922
+ buttonConfig?: {
923
+ typeButtonAction?: string | null | undefined;
924
+ externalFlowCode?: string | null | undefined;
925
+ } | null | undefined;
913
926
  typeButtonAction?: string | null | undefined;
914
927
  externalFlowCode?: string | null | undefined;
915
928
  reference?: Types.ObjectId | null | undefined;
@@ -80,7 +80,9 @@ exports.FormUnitSchema = new mongoose_1.Schema({
80
80
  isDefault: { type: Boolean, default: false },
81
81
  category: { type: String, enum: enum_1.CategoryFormEnum, required: true },
82
82
  variantView: { type: String, enum: enum_1.VariantViewEnum },
83
+ //deprecated
83
84
  typeButtonAction: { type: String, enum: enum_1.TypeButtonAction },
85
+ //deprecated
84
86
  externalFlowCode: { type: String },
85
87
  measurementUnit: { type: String },
86
88
  options: { type: [exports.QuestionOptionSchema] },
@@ -102,6 +104,14 @@ exports.FormUnitSchema = new mongoose_1.Schema({
102
104
  labelFreeText: { type: String },
103
105
  //DADOS PARA GRAFICOS
104
106
  graphicData: { type: mongoose_1.Schema.Types.Mixed },
107
+ //DADOS PARA BUTTON
108
+ buttonConfig: {
109
+ type: {
110
+ typeButtonAction: { type: String, enum: enum_1.TypeButtonAction },
111
+ externalFlowCode: { type: String }
112
+ },
113
+ _id: false
114
+ },
105
115
  //DADOS PARA MODAL
106
116
  modalConfig: {
107
117
  type: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-clinical",
3
- "version": "1.0.224",
3
+ "version": "1.0.225",
4
4
  "description": "Biblioteca Typescript para API NodeJS",
5
5
  "repository": {
6
6
  "type": "git",