pristine-member-nest-api-database 1.2.4 → 1.2.6

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: {
@@ -663,6 +664,14 @@ const approverSchema = new mongoose_1.Schema({
663
664
  userId: String,
664
665
  attachment: [fileSchema],
665
666
  });
667
+ // ------------------ Manager Data ------------------
668
+ const managerDataSchema = new mongoose_1.Schema({
669
+ remarks: String,
670
+ userId: String,
671
+ attachment: [fileSchema],
672
+ invoiceDiscountPercentage: mongoose_1.Schema.Types.Mixed,
673
+ categoryData: [categorySchema],
674
+ });
666
675
  // ------------------ Member Association ------------------
667
676
  const memberAssociationSchema = new mongoose_1.Schema({
668
677
  applicationId: mongoose_1.Schema.Types.ObjectId,
@@ -681,8 +690,10 @@ const memberAssociationSchema = new mongoose_1.Schema({
681
690
  salesOrderStatus: { type: String, default: null },
682
691
  isActive: { type: Boolean, default: true },
683
692
  createdDate: { type: Date, default: Date.now },
693
+ linkedMemberId: { type: mongoose_1.Schema.Types.ObjectId, default: null },
684
694
  approverOneData: approverSchema,
685
695
  approverTwoData: approverSchema,
696
+ managerData: managerDataSchema,
686
697
  });
687
698
  // ------------------ Member ------------------
688
699
  const memberSchema = new mongoose_1.Schema({
@@ -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;
@@ -706,6 +707,7 @@ interface MemberDocument extends Document {
706
707
  salesOrderStatus: string | null;
707
708
  isActive: boolean;
708
709
  createdDate: Date;
710
+ linkedMemberId: mongoose.Types.ObjectId | null;
709
711
  approverOneData: {
710
712
  fieldId: mongoose.Types.ObjectId;
711
713
  remarks: string;
@@ -718,6 +720,23 @@ interface MemberDocument extends Document {
718
720
  userId: string;
719
721
  attachment: IFile[];
720
722
  };
723
+ managerData: {
724
+ remarks: string;
725
+ userId: string;
726
+ attachment: IFile[];
727
+ invoiceDiscountPercentage?: string | number | any;
728
+ categoryData?: [
729
+ {
730
+ categoryId: mongoose.Types.ObjectId;
731
+ fieldValues: [
732
+ {
733
+ fieldId: mongoose.Types.ObjectId;
734
+ value: string | number | any;
735
+ },
736
+ ];
737
+ },
738
+ ];
739
+ };
721
740
  },
722
741
  ];
723
742
  audit: Audit[];
@@ -734,6 +753,7 @@ const fileSchema = new Schema<IFile>({
734
753
 
735
754
  // ------------------ Barcode Membership ------------------
736
755
  const barcodeMembershipSchema = new Schema({
756
+ lineNo:{type:Number},
737
757
  isRegisteredMembership: { type: Boolean, required: true },
738
758
  isMembershipRequested: { type: Boolean, default: true },
739
759
  membershipType: {
@@ -821,6 +841,15 @@ const approverSchema = new Schema({
821
841
  attachment: [fileSchema],
822
842
  });
823
843
 
844
+ // ------------------ Manager Data ------------------
845
+ const managerDataSchema = new Schema({
846
+ remarks: String,
847
+ userId: String,
848
+ attachment: [fileSchema],
849
+ invoiceDiscountPercentage: Schema.Types.Mixed,
850
+ categoryData: [categorySchema],
851
+ });
852
+
824
853
  // ------------------ Member Association ------------------
825
854
  const memberAssociationSchema = new Schema({
826
855
  applicationId: Schema.Types.ObjectId,
@@ -839,8 +868,10 @@ const memberAssociationSchema = new Schema({
839
868
  salesOrderStatus: { type: String, default: null },
840
869
  isActive: { type: Boolean, default: true },
841
870
  createdDate: { type: Date, default: Date.now },
871
+ linkedMemberId: { type: Schema.Types.ObjectId, default: null },
842
872
  approverOneData: approverSchema,
843
873
  approverTwoData: approverSchema,
874
+ managerData: managerDataSchema,
844
875
  });
845
876
 
846
877
  // ------------------ Member ------------------
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pristine-member-nest-api-database",
3
- "version": "1.2.4",
3
+ "version": "1.2.6",
4
4
  "description": "application verification database changes with gs1 branch. not tested. ",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {