c2-clinical 1.0.55 → 1.0.57

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.
@@ -49,6 +49,7 @@ export declare enum TypeFormUnitEnum {
49
49
  GROUP = "GROUP",
50
50
  QUESTION = "QUESTION",
51
51
  BUTTON = "BUTTON",
52
+ MODAL = "MODAL",
52
53
  GRAPHIC = "GRAPHIC",
53
54
  SEPARATOR = "SEPARATOR",
54
55
  MESSAGE = "MESSAGE"
@@ -77,16 +78,15 @@ export declare enum TypeAnswerEnum {
77
78
  BOOLEAN = "BOOLEAN",
78
79
  DATE = "DATE"
79
80
  }
80
- export declare enum TypeChoiceView {
81
+ export declare enum VariantViewEnum {
81
82
  CHECKBOX = "CHECKBOX",
82
83
  RADIO_BUTTON = "RADIO_BUTTON",
83
- COMBO_BOX = "COMBO_BOX",
84
+ SELECT = "SELECT",
84
85
  BUTTON = "BUTTON",
85
86
  LIST = "LIST"
86
87
  }
87
88
  export declare enum TypeButtonAction {
88
- REDIRECT = "REDIRECT",
89
- OPEN_MODAL_WITH_CHILD = "OPEN_MODAL_WITH_CHILD"
89
+ OPEN_MODAL = "OPEN_MODAL"
90
90
  }
91
91
  export declare enum TypeValidationEnum {
92
92
  TIP = "TIP",
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
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;
3
+ exports.TypeMessageEnum = exports.TypeOutputValidationEnum = exports.TypeValidationEnum = exports.TypeButtonAction = exports.VariantViewEnum = 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";
@@ -61,6 +61,7 @@ var TypeFormUnitEnum;
61
61
  TypeFormUnitEnum["GROUP"] = "GROUP";
62
62
  TypeFormUnitEnum["QUESTION"] = "QUESTION";
63
63
  TypeFormUnitEnum["BUTTON"] = "BUTTON";
64
+ TypeFormUnitEnum["MODAL"] = "MODAL";
64
65
  TypeFormUnitEnum["GRAPHIC"] = "GRAPHIC";
65
66
  TypeFormUnitEnum["SEPARATOR"] = "SEPARATOR";
66
67
  TypeFormUnitEnum["MESSAGE"] = "MESSAGE";
@@ -90,18 +91,17 @@ var TypeAnswerEnum;
90
91
  TypeAnswerEnum["BOOLEAN"] = "BOOLEAN";
91
92
  TypeAnswerEnum["DATE"] = "DATE";
92
93
  })(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 = {}));
94
+ var VariantViewEnum;
95
+ (function (VariantViewEnum) {
96
+ VariantViewEnum["CHECKBOX"] = "CHECKBOX";
97
+ VariantViewEnum["RADIO_BUTTON"] = "RADIO_BUTTON";
98
+ VariantViewEnum["SELECT"] = "SELECT";
99
+ VariantViewEnum["BUTTON"] = "BUTTON";
100
+ VariantViewEnum["LIST"] = "LIST";
101
+ })(VariantViewEnum || (exports.VariantViewEnum = VariantViewEnum = {}));
101
102
  var TypeButtonAction;
102
103
  (function (TypeButtonAction) {
103
- TypeButtonAction["REDIRECT"] = "REDIRECT";
104
- TypeButtonAction["OPEN_MODAL_WITH_CHILD"] = "OPEN_MODAL_WITH_CHILD";
104
+ TypeButtonAction["OPEN_MODAL"] = "OPEN_MODAL";
105
105
  })(TypeButtonAction || (exports.TypeButtonAction = TypeButtonAction = {}));
106
106
  var TypeValidationEnum;
107
107
  (function (TypeValidationEnum) {
@@ -1,6 +1,6 @@
1
1
  import { Schema, Types } from "mongoose";
2
2
  import { IDefault } from "../Default";
3
- import { CategoryFormEnum, TypeAnswerEnum, TypeButtonAction, TypeChoiceView, TypeFormUnitEnum, TypeOutputValidationEnum, TypeValidationEnum } from "../enum";
3
+ import { CategoryFormEnum, TypeAnswerEnum, TypeButtonAction, VariantViewEnum, TypeFormUnitEnum, TypeOutputValidationEnum, TypeValidationEnum } from "../enum";
4
4
  import { IForm } from "./Form";
5
5
  /**
6
6
  * Utilizado para FormUnitTypeEnum = GRAPHIC
@@ -30,7 +30,7 @@ export interface IFormUnit extends IDefault {
30
30
  typeAnswer: TypeAnswerEnum;
31
31
  defaultAnswer: string;
32
32
  category: CategoryFormEnum;
33
- typeChoiceView: TypeChoiceView;
33
+ typeChoiceView: VariantViewEnum;
34
34
  typeButtonAction: TypeButtonAction;
35
35
  measurementUnit: string;
36
36
  options: IQuestionOption[];
@@ -225,7 +225,7 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
225
225
  column?: number | null | undefined;
226
226
  typeAnswer?: string | null | undefined;
227
227
  defaultAnswer?: string | null | undefined;
228
- typeChoiceView?: string | null | undefined;
228
+ variantView?: string | null | undefined;
229
229
  typeButtonAction?: string | null | undefined;
230
230
  measurementUnit?: string | null | undefined;
231
231
  formulaToAnswer?: string | null | undefined;
@@ -310,7 +310,7 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
310
310
  column?: number | null | undefined;
311
311
  typeAnswer?: string | null | undefined;
312
312
  defaultAnswer?: string | null | undefined;
313
- typeChoiceView?: string | null | undefined;
313
+ variantView?: string | null | undefined;
314
314
  typeButtonAction?: string | null | undefined;
315
315
  measurementUnit?: string | null | undefined;
316
316
  formulaToAnswer?: string | null | undefined;
@@ -395,7 +395,7 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
395
395
  column?: number | null | undefined;
396
396
  typeAnswer?: string | null | undefined;
397
397
  defaultAnswer?: string | null | undefined;
398
- typeChoiceView?: string | null | undefined;
398
+ variantView?: string | null | undefined;
399
399
  typeButtonAction?: string | null | undefined;
400
400
  measurementUnit?: string | null | undefined;
401
401
  formulaToAnswer?: string | null | undefined;
@@ -49,7 +49,7 @@ 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 },
52
+ variantView: { type: String, enum: enum_1.VariantViewEnum },
53
53
  typeButtonAction: { type: String, enum: enum_1.TypeButtonAction },
54
54
  measurementUnit: { type: String },
55
55
  options: { type: [exports.QuestionOptionSchema] },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-clinical",
3
- "version": "1.0.55",
3
+ "version": "1.0.57",
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>",