pristine-member-nest-api-database 1.2.5 → 1.2.7

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.
@@ -582,6 +582,7 @@ const fileSchema = new mongoose_1.Schema({
582
582
  });
583
583
  // ------------------ Barcode Membership ------------------
584
584
  const barcodeMembershipSchema = new mongoose_1.Schema({
585
+ lineNo: { type: Number },
585
586
  isRegisteredMembership: { type: Boolean, required: true },
586
587
  isMembershipRequested: { type: Boolean, default: true },
587
588
  membershipType: {
@@ -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,
@@ -613,6 +613,7 @@ import { Audit } from "../interface/Audit.interface";
613
613
  import IFile from "../interface/IFile.interface";
614
614
 
615
615
  type barcodeBranchMemberhipdetails = {
616
+ lineNo: number;
616
617
  isRegisteredMembership: boolean;
617
618
  isMembershipRequested: boolean;
618
619
  membershipType: mongoose.Types.ObjectId;
@@ -752,6 +753,7 @@ const fileSchema = new Schema<IFile>({
752
753
 
753
754
  // ------------------ Barcode Membership ------------------
754
755
  const barcodeMembershipSchema = new Schema({
756
+ lineNo:{type:Number},
755
757
  isRegisteredMembership: { type: Boolean, required: true },
756
758
  isMembershipRequested: { type: Boolean, default: true },
757
759
  membershipType: {
@@ -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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pristine-member-nest-api-database",
3
- "version": "1.2.5",
3
+ "version": "1.2.7",
4
4
  "description": "application verification database changes with gs1 branch. not tested. ",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {