c2-clinical 1.0.137 → 1.0.138

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.
@@ -40,20 +40,23 @@ export declare const AnthropometryAnswerSchema: Schema<any, import("mongoose").M
40
40
  isValid?: {} | null | undefined;
41
41
  };
42
42
  validations: Types.DocumentArray<{
43
- type: string;
44
43
  typeOutput: string;
45
- formulaToMessage: string;
44
+ type?: string | null | undefined;
46
45
  message?: string | null | undefined;
47
46
  }, Types.Subdocument<Types.ObjectId, any, {
48
- type: string;
49
47
  typeOutput: string;
50
- formulaToMessage: string;
48
+ type?: string | null | undefined;
51
49
  message?: string | null | undefined;
52
50
  }> & {
53
- type: string;
54
51
  typeOutput: string;
55
- formulaToMessage: string;
52
+ type?: string | null | undefined;
56
53
  message?: string | null | undefined;
54
+ }> | Types.DocumentArray<{
55
+ _id?: unknown;
56
+ }, Types.Subdocument<unknown, any, {
57
+ _id?: unknown;
58
+ }> & {
59
+ _id?: unknown;
57
60
  }>;
58
61
  requestGraphicData: Types.DocumentArray<{
59
62
  method: string;
@@ -110,20 +113,23 @@ export declare const AnthropometryAnswerSchema: Schema<any, import("mongoose").M
110
113
  isValid?: {} | null | undefined;
111
114
  };
112
115
  validations: Types.DocumentArray<{
113
- type: string;
114
116
  typeOutput: string;
115
- formulaToMessage: string;
117
+ type?: string | null | undefined;
116
118
  message?: string | null | undefined;
117
119
  }, Types.Subdocument<Types.ObjectId, any, {
118
- type: string;
119
120
  typeOutput: string;
120
- formulaToMessage: string;
121
+ type?: string | null | undefined;
121
122
  message?: string | null | undefined;
122
123
  }> & {
123
- type: string;
124
124
  typeOutput: string;
125
- formulaToMessage: string;
125
+ type?: string | null | undefined;
126
126
  message?: string | null | undefined;
127
+ }> | Types.DocumentArray<{
128
+ _id?: unknown;
129
+ }, Types.Subdocument<unknown, any, {
130
+ _id?: unknown;
131
+ }> & {
132
+ _id?: unknown;
127
133
  }>;
128
134
  requestGraphicData: Types.DocumentArray<{
129
135
  method: string;
@@ -180,20 +186,23 @@ export declare const AnthropometryAnswerSchema: Schema<any, import("mongoose").M
180
186
  isValid?: {} | null | undefined;
181
187
  };
182
188
  validations: Types.DocumentArray<{
183
- type: string;
184
189
  typeOutput: string;
185
- formulaToMessage: string;
190
+ type?: string | null | undefined;
186
191
  message?: string | null | undefined;
187
192
  }, Types.Subdocument<Types.ObjectId, any, {
188
- type: string;
189
193
  typeOutput: string;
190
- formulaToMessage: string;
194
+ type?: string | null | undefined;
191
195
  message?: string | null | undefined;
192
196
  }> & {
193
- type: string;
194
197
  typeOutput: string;
195
- formulaToMessage: string;
198
+ type?: string | null | undefined;
196
199
  message?: string | null | undefined;
200
+ }> | Types.DocumentArray<{
201
+ _id?: unknown;
202
+ }, Types.Subdocument<unknown, any, {
203
+ _id?: unknown;
204
+ }> & {
205
+ _id?: unknown;
197
206
  }>;
198
207
  requestGraphicData: Types.DocumentArray<{
199
208
  method: string;
@@ -3,13 +3,27 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AnthropometryAnswerSchema = void 0;
4
4
  const mongoose_1 = require("mongoose");
5
5
  const FormUnit_1 = require("../form/FormUnit");
6
+ const enum_1 = require("../enum");
6
7
  exports.AnthropometryAnswerSchema = new mongoose_1.Schema({
7
8
  account: { type: mongoose_1.Types.ObjectId, ref: "account", required: true },
8
9
  anthropometry: { type: mongoose_1.Types.ObjectId, ref: "anthropometry", required: true },
9
10
  form: { type: mongoose_1.Types.ObjectId, ref: "form", required: true },
10
11
  reference: { type: mongoose_1.Types.ObjectId, ref: "form-unit", required: true },
11
12
  answer: { type: mongoose_1.Schema.Types.Mixed },
12
- validations: { type: [FormUnit_1.ValidationSchema] },
13
+ validations: {
14
+ type: [
15
+ {
16
+ type: { type: String, enum: enum_1.TypeValidationEnum },
17
+ typeOutput: {
18
+ type: String,
19
+ enum: enum_1.TypeOutputValidationEnum,
20
+ default: enum_1.TypeOutputValidationEnum.TEXT
21
+ },
22
+ message: { type: String }
23
+ },
24
+ { _id: false }
25
+ ]
26
+ },
13
27
  requestGraphicData: { type: [FormUnit_1.RequestGraphicDataSchema] }
14
28
  }, {
15
29
  timestamps: { createdAt: "createdAtDateTime", updatedAt: "updatedAtDateTime" }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-clinical",
3
- "version": "1.0.137",
3
+ "version": "1.0.138",
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>",