pristine-member-nest-api-database 1.0.93 → 1.0.95

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.
@@ -79,6 +79,10 @@ const ApplicationSchemSchema = new mongoose_1.Schema({
79
79
  type: Boolean,
80
80
  default: false,
81
81
  },
82
+ maxLength: {
83
+ type: Number,
84
+ required: true,
85
+ },
82
86
  },
83
87
  ],
84
88
  },
@@ -595,7 +595,7 @@ const barcodeMembershipSchema = new mongoose_1.Schema({
595
595
  required: true,
596
596
  },
597
597
  remarks: String,
598
- requestedDate: { type: Date, default: Date.now },
598
+ requestedDate: { type: Date, default: null },
599
599
  isMembershipSynced: { type: Boolean, default: false },
600
600
  noOfSubscriptionMonths: Number,
601
601
  isIssued: Boolean,
@@ -665,8 +665,8 @@ const memberAssociationSchema = new mongoose_1.Schema({
665
665
  isEnrolmentCreatedInSAP: { type: Boolean, default: false },
666
666
  isEnrolmentSyncedWithSAP: { type: Boolean, default: false },
667
667
  enrolmentSyncedOn: Date,
668
- salesOrderDocEntry: String,
669
- salesOrderStatus: String,
668
+ salesOrderDocEntry: { type: String, default: null },
669
+ salesOrderStatus: { type: String, default: null },
670
670
  isActive: { type: Boolean, default: true },
671
671
  createdDate: { type: Date, default: Date.now },
672
672
  approverOneData: approverSchema,
@@ -10,4 +10,5 @@ export default interface IFieldApplication {
10
10
  fieldDescription: string;
11
11
  Active: boolean;
12
12
  Required: boolean;
13
+ maxLength: number;
13
14
  }
@@ -90,6 +90,10 @@ const ApplicationSchemSchema = new Schema<IApplicationDocument>({
90
90
  type: Boolean,
91
91
  default: false,
92
92
  },
93
+ maxLength: {
94
+ type: Number,
95
+ required: true,
96
+ },
93
97
  },
94
98
  ],
95
99
  },
@@ -618,11 +618,11 @@ type barcodeBranchMemberhipdetails = {
618
618
  membershipType: mongoose.Types.ObjectId;
619
619
  membershipStatus: mongoose.Types.ObjectId;
620
620
  remarks: String;
621
- requestedDate: Date;
621
+ requestedDate: Date | null;
622
622
  isMembershipSynced: boolean;
623
623
  noOfSubscriptionMonths: number;
624
624
  isIssued: boolean;
625
- electedDate: Date;
625
+ electedDate: Date | null;
626
626
  barcodeBranchMemberCode: string;
627
627
  barCode: number;
628
628
  validFrom: Date;
@@ -631,7 +631,7 @@ type barcodeBranchMemberhipdetails = {
631
631
  changeDate: Date;
632
632
  isTerminationRequested: boolean;
633
633
  isTerminationSynced: boolean;
634
- terminationDate: Date;
634
+ terminationDate: Date | null;
635
635
  terminationReason: string;
636
636
  };
637
637
 
@@ -640,7 +640,7 @@ type noneGs1MembershipDetails = {
640
640
  membershipStatus: mongoose.Types.ObjectId;
641
641
  membershipType: mongoose.Types.ObjectId;
642
642
  isTerminated: boolean;
643
- terminatedDate: Date;
643
+ terminatedDate: Date | null;
644
644
  reasonForTermination: string;
645
645
  isTerminationRequested: boolean;
646
646
  terminationRequestedDate: Date;
@@ -648,8 +648,8 @@ type noneGs1MembershipDetails = {
648
648
  terminationRequestRemarks: string;
649
649
  onOfSubscriptionMonths: number;
650
650
  isMembershipSynced: boolean;
651
- SyncOn: Date;
652
- electedDate: Date;
651
+ SyncOn: Date | null;
652
+ electedDate: Date | null;
653
653
  };
654
654
 
655
655
  interface MemberDocument extends Document {
@@ -696,14 +696,14 @@ interface MemberDocument extends Document {
696
696
  };
697
697
  isCreatedInSAP: boolean;
698
698
  isMemberSyncedWithSAP: boolean;
699
- memberSyncedOn: Date;
699
+ memberSyncedOn: Date | null;
700
700
  dynamicDetails: JSON;
701
701
  applicationStatus: string;
702
702
  isEnrolmentCreatedInSAP: boolean;
703
703
  isEnrolmentSyncedWithSAP: boolean;
704
- enrolmentSyncedOn: Date;
705
- salesOrderDocEntry: string;
706
- salesOrderStatus: string;
704
+ enrolmentSyncedOn: Date | null;
705
+ salesOrderDocEntry: string | null;
706
+ salesOrderStatus: string | null;
707
707
  isActive: boolean;
708
708
  createdDate: Date;
709
709
  approverOneData: {
@@ -747,7 +747,7 @@ const barcodeMembershipSchema = new Schema({
747
747
  required: true,
748
748
  },
749
749
  remarks: String,
750
- requestedDate: { type: Date, default: Date.now },
750
+ requestedDate: { type: Date, default: null },
751
751
  isMembershipSynced: { type: Boolean, default: false },
752
752
  noOfSubscriptionMonths: Number,
753
753
  isIssued: Boolean,
@@ -823,8 +823,8 @@ const memberAssociationSchema = new Schema({
823
823
  isEnrolmentCreatedInSAP: { type: Boolean, default: false },
824
824
  isEnrolmentSyncedWithSAP: { type: Boolean, default: false },
825
825
  enrolmentSyncedOn: Date,
826
- salesOrderDocEntry: String,
827
- salesOrderStatus: String,
826
+ salesOrderDocEntry: { type: String, default: null },
827
+ salesOrderStatus: { type: String, default: null },
828
828
  isActive: { type: Boolean, default: true },
829
829
  createdDate: { type: Date, default: Date.now },
830
830
  approverOneData: approverSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pristine-member-nest-api-database",
3
- "version": "1.0.93",
3
+ "version": "1.0.95",
4
4
  "description": "application verification database changes with gs1 branch. not tested. ",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {