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

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