c2-clinical 1.0.54 → 1.0.55

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.
@@ -48,6 +48,7 @@ export declare enum OwnerEnum {
48
48
  export declare enum TypeFormUnitEnum {
49
49
  GROUP = "GROUP",
50
50
  QUESTION = "QUESTION",
51
+ BUTTON = "BUTTON",
51
52
  GRAPHIC = "GRAPHIC",
52
53
  SEPARATOR = "SEPARATOR",
53
54
  MESSAGE = "MESSAGE"
@@ -76,6 +77,17 @@ export declare enum TypeAnswerEnum {
76
77
  BOOLEAN = "BOOLEAN",
77
78
  DATE = "DATE"
78
79
  }
80
+ export declare enum TypeChoiceView {
81
+ CHECKBOX = "CHECKBOX",
82
+ RADIO_BUTTON = "RADIO_BUTTON",
83
+ COMBO_BOX = "COMBO_BOX",
84
+ BUTTON = "BUTTON",
85
+ LIST = "LIST"
86
+ }
87
+ export declare enum TypeButtonAction {
88
+ REDIRECT = "REDIRECT",
89
+ OPEN_MODAL_WITH_CHILD = "OPEN_MODAL_WITH_CHILD"
90
+ }
79
91
  export declare enum TypeValidationEnum {
80
92
  TIP = "TIP",
81
93
  WARNING = "WARNING",
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TypeMessageEnum = exports.TypeOutputValidationEnum = exports.TypeValidationEnum = exports.TypeAnswerEnum = exports.TypeFormUnitEnum = exports.OwnerEnum = exports.TypeFormEnum = exports.CategoryFormEnum = exports.MetTargetConditionEnum = exports.StatusQPCEnum = exports.GenreEnum = exports.ChannelNotificationEnum = exports.QAStatusEnum = void 0;
3
+ exports.TypeMessageEnum = exports.TypeOutputValidationEnum = exports.TypeValidationEnum = exports.TypeButtonAction = exports.TypeChoiceView = exports.TypeAnswerEnum = exports.TypeFormUnitEnum = exports.OwnerEnum = exports.TypeFormEnum = exports.CategoryFormEnum = exports.MetTargetConditionEnum = exports.StatusQPCEnum = exports.GenreEnum = exports.ChannelNotificationEnum = exports.QAStatusEnum = void 0;
4
4
  var QAStatusEnum;
5
5
  (function (QAStatusEnum) {
6
6
  QAStatusEnum["ANSWERED"] = "ANSWERED";
@@ -60,6 +60,7 @@ var TypeFormUnitEnum;
60
60
  (function (TypeFormUnitEnum) {
61
61
  TypeFormUnitEnum["GROUP"] = "GROUP";
62
62
  TypeFormUnitEnum["QUESTION"] = "QUESTION";
63
+ TypeFormUnitEnum["BUTTON"] = "BUTTON";
63
64
  TypeFormUnitEnum["GRAPHIC"] = "GRAPHIC";
64
65
  TypeFormUnitEnum["SEPARATOR"] = "SEPARATOR";
65
66
  TypeFormUnitEnum["MESSAGE"] = "MESSAGE";
@@ -89,6 +90,19 @@ var TypeAnswerEnum;
89
90
  TypeAnswerEnum["BOOLEAN"] = "BOOLEAN";
90
91
  TypeAnswerEnum["DATE"] = "DATE";
91
92
  })(TypeAnswerEnum || (exports.TypeAnswerEnum = TypeAnswerEnum = {}));
93
+ var TypeChoiceView;
94
+ (function (TypeChoiceView) {
95
+ TypeChoiceView["CHECKBOX"] = "CHECKBOX";
96
+ TypeChoiceView["RADIO_BUTTON"] = "RADIO_BUTTON";
97
+ TypeChoiceView["COMBO_BOX"] = "COMBO_BOX";
98
+ TypeChoiceView["BUTTON"] = "BUTTON";
99
+ TypeChoiceView["LIST"] = "LIST";
100
+ })(TypeChoiceView || (exports.TypeChoiceView = TypeChoiceView = {}));
101
+ var TypeButtonAction;
102
+ (function (TypeButtonAction) {
103
+ TypeButtonAction["REDIRECT"] = "REDIRECT";
104
+ TypeButtonAction["OPEN_MODAL_WITH_CHILD"] = "OPEN_MODAL_WITH_CHILD";
105
+ })(TypeButtonAction || (exports.TypeButtonAction = TypeButtonAction = {}));
92
106
  var TypeValidationEnum;
93
107
  (function (TypeValidationEnum) {
94
108
  TypeValidationEnum["TIP"] = "TIP";
@@ -1,6 +1,6 @@
1
1
  import { Schema, Types } from "mongoose";
2
2
  import { IDefault } from "../Default";
3
- import { CategoryFormEnum, TypeAnswerEnum, TypeFormUnitEnum, TypeOutputValidationEnum, TypeValidationEnum } from "../enum";
3
+ import { CategoryFormEnum, TypeAnswerEnum, TypeButtonAction, TypeChoiceView, TypeFormUnitEnum, TypeOutputValidationEnum, TypeValidationEnum } from "../enum";
4
4
  import { IForm } from "./Form";
5
5
  /**
6
6
  * Utilizado para FormUnitTypeEnum = GRAPHIC
@@ -30,6 +30,8 @@ export interface IFormUnit extends IDefault {
30
30
  typeAnswer: TypeAnswerEnum;
31
31
  defaultAnswer: string;
32
32
  category: CategoryFormEnum;
33
+ typeChoiceView: TypeChoiceView;
34
+ typeButtonAction: TypeButtonAction;
33
35
  measurementUnit: string;
34
36
  options: IQuestionOption[];
35
37
  formulaToAnswer: string;
@@ -223,6 +225,8 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
223
225
  column?: number | null | undefined;
224
226
  typeAnswer?: string | null | undefined;
225
227
  defaultAnswer?: string | null | undefined;
228
+ typeChoiceView?: string | null | undefined;
229
+ typeButtonAction?: string | null | undefined;
226
230
  measurementUnit?: string | null | undefined;
227
231
  formulaToAnswer?: string | null | undefined;
228
232
  graphicData?: any;
@@ -306,6 +310,8 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
306
310
  column?: number | null | undefined;
307
311
  typeAnswer?: string | null | undefined;
308
312
  defaultAnswer?: string | null | undefined;
313
+ typeChoiceView?: string | null | undefined;
314
+ typeButtonAction?: string | null | undefined;
309
315
  measurementUnit?: string | null | undefined;
310
316
  formulaToAnswer?: string | null | undefined;
311
317
  graphicData?: any;
@@ -389,6 +395,8 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
389
395
  column?: number | null | undefined;
390
396
  typeAnswer?: string | null | undefined;
391
397
  defaultAnswer?: string | null | undefined;
398
+ typeChoiceView?: string | null | undefined;
399
+ typeButtonAction?: string | null | undefined;
392
400
  measurementUnit?: string | null | undefined;
393
401
  formulaToAnswer?: string | null | undefined;
394
402
  graphicData?: any;
@@ -49,6 +49,8 @@ exports.FormUnitSchema = new mongoose_1.Schema({
49
49
  typeAnswer: { type: String, enum: enum_1.TypeAnswerEnum },
50
50
  defaultAnswer: { type: String },
51
51
  category: { type: String, enum: enum_1.CategoryFormEnum, required: true },
52
+ typeChoiceView: { type: String, enum: enum_1.TypeChoiceView },
53
+ typeButtonAction: { type: String, enum: enum_1.TypeButtonAction },
52
54
  measurementUnit: { type: String },
53
55
  options: { type: [exports.QuestionOptionSchema] },
54
56
  formulaToAnswer: { type: String },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-clinical",
3
- "version": "1.0.54",
3
+ "version": "1.0.55",
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>",