c2-clinical 1.0.53 → 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.
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/models/enum.d.ts +12 -0
- package/dist/models/enum.js +15 -1
- package/dist/models/form/FormUnit.d.ts +9 -1
- package/dist/models/form/FormUnit.js +2 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import OnAnswerQuestionsFlow from "./flow/on-answer/OnAnswerQuestionsFlow";
|
|
|
5
5
|
export * from "./models/enum";
|
|
6
6
|
export * from "./models/Answer";
|
|
7
7
|
export * from "./models/antrophometric/Antrophometric";
|
|
8
|
+
export * from "./models/antrophometric/AntrophometricAnswer";
|
|
8
9
|
export * from "./models/Default";
|
|
9
10
|
export * from "./models/File";
|
|
10
11
|
export * from "./models/form/Form";
|
package/dist/index.js
CHANGED
|
@@ -27,6 +27,7 @@ exports.OnAnswerQuestionsFlow = OnAnswerQuestionsFlow_1.default;
|
|
|
27
27
|
__exportStar(require("./models/enum"), exports);
|
|
28
28
|
__exportStar(require("./models/Answer"), exports);
|
|
29
29
|
__exportStar(require("./models/antrophometric/Antrophometric"), exports);
|
|
30
|
+
__exportStar(require("./models/antrophometric/AntrophometricAnswer"), exports);
|
|
30
31
|
__exportStar(require("./models/Default"), exports);
|
|
31
32
|
__exportStar(require("./models/File"), exports);
|
|
32
33
|
__exportStar(require("./models/form/Form"), exports);
|
package/dist/models/enum.d.ts
CHANGED
|
@@ -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",
|
package/dist/models/enum.js
CHANGED
|
@@ -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