c2-clinical 1.0.18 → 1.0.20

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.
@@ -44,7 +44,6 @@ export declare const PatientSchema: Schema<any, import("mongoose").Model<any, an
44
44
  updatedAt: string;
45
45
  };
46
46
  }, {} & {
47
- email: string;
48
47
  account: any;
49
48
  active: any;
50
49
  fullName: string;
@@ -68,17 +67,17 @@ export declare const PatientSchema: Schema<any, import("mongoose").Model<any, an
68
67
  number?: string | null | undefined;
69
68
  description?: string | null | undefined;
70
69
  }>;
70
+ socialId: string;
71
71
  tags: string[];
72
72
  sendEmailAsWelcome: any;
73
+ email?: string | null | undefined;
73
74
  genre?: string | null | undefined;
74
- socialId?: string | null | undefined;
75
75
  appConfig?: {
76
76
  accessEnable?: any;
77
77
  accessCode?: string | null | undefined;
78
78
  accessExpireDate?: NativeDate | null | undefined;
79
79
  } | null | undefined;
80
80
  }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{} & {
81
- email: string;
82
81
  account: any;
83
82
  active: any;
84
83
  fullName: string;
@@ -102,17 +101,17 @@ export declare const PatientSchema: Schema<any, import("mongoose").Model<any, an
102
101
  number?: string | null | undefined;
103
102
  description?: string | null | undefined;
104
103
  }>;
104
+ socialId: string;
105
105
  tags: string[];
106
106
  sendEmailAsWelcome: any;
107
+ email?: string | null | undefined;
107
108
  genre?: string | null | undefined;
108
- socialId?: string | null | undefined;
109
109
  appConfig?: {
110
110
  accessEnable?: any;
111
111
  accessCode?: string | null | undefined;
112
112
  accessExpireDate?: NativeDate | null | undefined;
113
113
  } | null | undefined;
114
114
  }>, {}> & import("mongoose").FlatRecord<{} & {
115
- email: string;
116
115
  account: any;
117
116
  active: any;
118
117
  fullName: string;
@@ -136,10 +135,11 @@ export declare const PatientSchema: Schema<any, import("mongoose").Model<any, an
136
135
  number?: string | null | undefined;
137
136
  description?: string | null | undefined;
138
137
  }>;
138
+ socialId: string;
139
139
  tags: string[];
140
140
  sendEmailAsWelcome: any;
141
+ email?: string | null | undefined;
141
142
  genre?: string | null | undefined;
142
- socialId?: string | null | undefined;
143
143
  appConfig?: {
144
144
  accessEnable?: any;
145
145
  accessCode?: string | null | undefined;
@@ -13,15 +13,15 @@ exports.PatientAppConfigSchema = new mongoose_1.Schema({
13
13
  });
14
14
  exports.PatientSchema = new mongoose_1.Schema({
15
15
  account: { type: mongoose_1.Schema.Types.ObjectId, ref: "account", required: true },
16
- genre: { type: String, enum: enum_1.GenreEnum, require: true },
16
+ genre: { type: String, enum: enum_1.GenreEnum },
17
17
  fullName: { type: String, required: true },
18
18
  bornDate: { type: Date, required: true },
19
- phones: { type: [Phone_1.PhoneSchema], required: true },
20
- socialId: { type: String },
21
- email: { type: String, required: true },
19
+ phones: { type: [Phone_1.PhoneSchema] },
20
+ socialId: { type: String, required: true },
21
+ email: { type: String },
22
22
  tags: { type: [String] },
23
23
  active: { type: Boolean, default: true },
24
- sendEmailAsWelcome: { type: Boolean, required: true, default: false },
24
+ sendEmailAsWelcome: { type: Boolean, default: false },
25
25
  appConfig: { type: exports.PatientAppConfigSchema }
26
26
  }, {
27
27
  timestamps: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-clinical",
3
- "version": "1.0.18",
3
+ "version": "1.0.20",
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>",