c2-clinical 1.0.76 → 1.0.77

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.
@@ -0,0 +1,118 @@
1
+ import { Schema, Types } from "mongoose";
2
+ import { IAnswer } from "../Answer";
3
+ import { IForm } from "../form/Form";
4
+ export interface IAnamneseAnswer extends IAnswer {
5
+ form: Types.ObjectId | IForm;
6
+ }
7
+ export declare const AnamneseAnswerSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
8
+ timestamps: {
9
+ createdAt: string;
10
+ updatedAt: string;
11
+ };
12
+ }, {} & {
13
+ account: any;
14
+ reference: any;
15
+ form: any;
16
+ validations: Types.DocumentArray<{
17
+ type: string;
18
+ typeOutput: string;
19
+ formulaToMessage: string;
20
+ }, Types.Subdocument<Types.ObjectId, any, {
21
+ type: string;
22
+ typeOutput: string;
23
+ formulaToMessage: string;
24
+ }> & {
25
+ type: string;
26
+ typeOutput: string;
27
+ formulaToMessage: string;
28
+ }>;
29
+ requestGraphicData: Types.DocumentArray<{
30
+ method: string;
31
+ url: string;
32
+ body?: any;
33
+ dataset?: any;
34
+ }, Types.Subdocument<Types.ObjectId, any, {
35
+ method: string;
36
+ url: string;
37
+ body?: any;
38
+ dataset?: any;
39
+ }> & {
40
+ method: string;
41
+ url: string;
42
+ body?: any;
43
+ dataset?: any;
44
+ }>;
45
+ answer?: any;
46
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{} & {
47
+ account: any;
48
+ reference: any;
49
+ form: any;
50
+ validations: Types.DocumentArray<{
51
+ type: string;
52
+ typeOutput: string;
53
+ formulaToMessage: string;
54
+ }, Types.Subdocument<Types.ObjectId, any, {
55
+ type: string;
56
+ typeOutput: string;
57
+ formulaToMessage: string;
58
+ }> & {
59
+ type: string;
60
+ typeOutput: string;
61
+ formulaToMessage: string;
62
+ }>;
63
+ requestGraphicData: Types.DocumentArray<{
64
+ method: string;
65
+ url: string;
66
+ body?: any;
67
+ dataset?: any;
68
+ }, Types.Subdocument<Types.ObjectId, any, {
69
+ method: string;
70
+ url: string;
71
+ body?: any;
72
+ dataset?: any;
73
+ }> & {
74
+ method: string;
75
+ url: string;
76
+ body?: any;
77
+ dataset?: any;
78
+ }>;
79
+ answer?: any;
80
+ }>, {}> & import("mongoose").FlatRecord<{} & {
81
+ account: any;
82
+ reference: any;
83
+ form: any;
84
+ validations: Types.DocumentArray<{
85
+ type: string;
86
+ typeOutput: string;
87
+ formulaToMessage: string;
88
+ }, Types.Subdocument<Types.ObjectId, any, {
89
+ type: string;
90
+ typeOutput: string;
91
+ formulaToMessage: string;
92
+ }> & {
93
+ type: string;
94
+ typeOutput: string;
95
+ formulaToMessage: string;
96
+ }>;
97
+ requestGraphicData: Types.DocumentArray<{
98
+ method: string;
99
+ url: string;
100
+ body?: any;
101
+ dataset?: any;
102
+ }, Types.Subdocument<Types.ObjectId, any, {
103
+ method: string;
104
+ url: string;
105
+ body?: any;
106
+ dataset?: any;
107
+ }> & {
108
+ method: string;
109
+ url: string;
110
+ body?: any;
111
+ dataset?: any;
112
+ }>;
113
+ answer?: any;
114
+ }> & {
115
+ _id: Types.ObjectId;
116
+ } & {
117
+ __v: number;
118
+ }>;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AnamneseAnswerSchema = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ const FormUnit_1 = require("../form/FormUnit");
6
+ exports.AnamneseAnswerSchema = new mongoose_1.Schema({
7
+ account: { type: mongoose_1.Types.ObjectId, ref: "account", required: true },
8
+ form: { type: mongoose_1.Types.ObjectId, ref: "form", required: true },
9
+ reference: { type: mongoose_1.Types.ObjectId, ref: "form-unit", required: true },
10
+ answer: { type: mongoose_1.Schema.Types.Mixed },
11
+ validations: { type: [FormUnit_1.ValidationSchema] },
12
+ requestGraphicData: { type: [FormUnit_1.RequestGraphicDataSchema] }
13
+ }, {
14
+ timestamps: { createdAt: "createdAtDateTime", updatedAt: "updatedAtDateTime" }
15
+ });
16
+ exports.AnamneseAnswerSchema.index({ account: 1 }, { unique: true });
17
+ exports.AnamneseAnswerSchema.index({ account: 1, form: 1 }, { unique: false });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-clinical",
3
- "version": "1.0.76",
3
+ "version": "1.0.77",
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>",