pristine-member-nest-api-database 1.2.6 → 1.2.8
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.
|
@@ -68,6 +68,14 @@ const userSchema = new mongoose_1.Schema({
|
|
|
68
68
|
ref: "Branches", // Reference to the 'Branches' model
|
|
69
69
|
},
|
|
70
70
|
],
|
|
71
|
+
isVerified: {
|
|
72
|
+
type: Boolean,
|
|
73
|
+
default: false,
|
|
74
|
+
},
|
|
75
|
+
verifiedAt: {
|
|
76
|
+
type: Date,
|
|
77
|
+
default: null,
|
|
78
|
+
},
|
|
71
79
|
audit: [
|
|
72
80
|
{
|
|
73
81
|
userId: String,
|
|
@@ -4,7 +4,7 @@ import { FieldTypeEnum } from "./Editor.FieldTypeMaster.model";
|
|
|
4
4
|
|
|
5
5
|
// TEXT OR TEXT AREA
|
|
6
6
|
export interface TextFieldConfig {
|
|
7
|
-
|
|
7
|
+
pattern?: string | null; // regex pattern for validation
|
|
8
8
|
minLength?: number | null;
|
|
9
9
|
maxLength?: number | null;
|
|
10
10
|
}
|
|
@@ -73,6 +73,10 @@ export interface MatrixFieldConfig {
|
|
|
73
73
|
columns: MatrixColumn[];
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
+
export interface DateFieldConfig {
|
|
77
|
+
pastDateEnabled?: boolean;
|
|
78
|
+
futureDateEnabled?: boolean;
|
|
79
|
+
}
|
|
76
80
|
/* =========================
|
|
77
81
|
UNION CONFIG TYPE
|
|
78
82
|
========================= */
|
|
@@ -83,6 +87,7 @@ export type FieldConfig =
|
|
|
83
87
|
| OptionFieldConfig
|
|
84
88
|
| TableFieldConfig
|
|
85
89
|
| MatrixFieldConfig
|
|
90
|
+
| DateFieldConfig
|
|
86
91
|
| null;
|
|
87
92
|
|
|
88
93
|
interface EditorField extends Document {
|
package/models/User.model.ts
CHANGED
|
@@ -28,6 +28,8 @@ interface UserDocument extends Document {
|
|
|
28
28
|
contactNumber: string;
|
|
29
29
|
audit: Audit[];
|
|
30
30
|
linkMemberUser: mongoose.Types.ObjectId;
|
|
31
|
+
isVerified:Boolean,
|
|
32
|
+
verifiedAt: Date | null,
|
|
31
33
|
}
|
|
32
34
|
|
|
33
35
|
mongoose.set("strictPopulate", false);
|
|
@@ -74,6 +76,15 @@ const userSchema = new Schema<UserDocument>({
|
|
|
74
76
|
ref: "Branches", // Reference to the 'Branches' model
|
|
75
77
|
},
|
|
76
78
|
],
|
|
79
|
+
isVerified: {
|
|
80
|
+
type: Boolean,
|
|
81
|
+
default: false,
|
|
82
|
+
},
|
|
83
|
+
|
|
84
|
+
verifiedAt: {
|
|
85
|
+
type: Date,
|
|
86
|
+
default: null,
|
|
87
|
+
},
|
|
77
88
|
audit: [
|
|
78
89
|
{
|
|
79
90
|
userId: String,
|