c2-clinical 1.0.18 → 1.0.19

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;
@@ -70,6 +69,7 @@ export declare const PatientSchema: Schema<any, import("mongoose").Model<any, an
70
69
  }>;
71
70
  tags: string[];
72
71
  sendEmailAsWelcome: any;
72
+ email?: string | null | undefined;
73
73
  genre?: string | null | undefined;
74
74
  socialId?: string | null | undefined;
75
75
  appConfig?: {
@@ -78,7 +78,6 @@ export declare const PatientSchema: Schema<any, import("mongoose").Model<any, an
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;
@@ -104,6 +103,7 @@ export declare const PatientSchema: Schema<any, import("mongoose").Model<any, an
104
103
  }>;
105
104
  tags: string[];
106
105
  sendEmailAsWelcome: any;
106
+ email?: string | null | undefined;
107
107
  genre?: string | null | undefined;
108
108
  socialId?: string | null | undefined;
109
109
  appConfig?: {
@@ -112,7 +112,6 @@ export declare const PatientSchema: Schema<any, import("mongoose").Model<any, an
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;
@@ -138,6 +137,7 @@ export declare const PatientSchema: Schema<any, import("mongoose").Model<any, an
138
137
  }>;
139
138
  tags: string[];
140
139
  sendEmailAsWelcome: any;
140
+ email?: string | null | undefined;
141
141
  genre?: string | null | undefined;
142
142
  socialId?: string | null | undefined;
143
143
  appConfig?: {
@@ -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 },
19
+ phones: { type: [Phone_1.PhoneSchema] },
20
20
  socialId: { type: String },
21
- email: { 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.19",
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>",