pristine-member-nest-api-database 1.0.36 → 1.0.37

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.
@@ -135,6 +135,10 @@ const memberSchema = new mongoose_1.Schema({
135
135
  barcodeAssociation: {
136
136
  type: [
137
137
  {
138
+ isRegisteredMembership: {
139
+ type: Boolean,
140
+ required: true,
141
+ },
138
142
  isMembershipRequested: {
139
143
  type: Boolean,
140
144
  default: true,
@@ -151,7 +155,6 @@ const memberSchema = new mongoose_1.Schema({
151
155
  },
152
156
  remarks: {
153
157
  type: String,
154
- required: true,
155
158
  },
156
159
  requestedDate: {
157
160
  type: Date,
@@ -161,6 +164,9 @@ const memberSchema = new mongoose_1.Schema({
161
164
  type: Boolean,
162
165
  default: false,
163
166
  },
167
+ noOfSubscriptionMonths: {
168
+ type: Number,
169
+ },
164
170
  isIssued: {
165
171
  type: Boolean,
166
172
  },
@@ -47,12 +47,14 @@ type MemberContactInfo = {
47
47
  };
48
48
 
49
49
  type barcodeBranch = {
50
+ isRegisteredMembership: boolean; //field is used to check whether membership is created on first time registering
50
51
  isMembershipRequested: boolean; //means membership request is waiting for approval
51
52
  membershipType: mongoose.Types.ObjectId;
52
53
  membershipStatus: mongoose.Types.ObjectId;
53
54
  remarks: String;
54
55
  requestedDate: Date;
55
56
  isMembershipSynced: boolean; //used to check whether SAP sync done or not
57
+ noOfSubscriptionMonths: number;
56
58
  isIssued: boolean; //means subscription is issued or not
57
59
  electedDate: Date;
58
60
  barcodeBranchMemberCode: string;
@@ -233,6 +235,10 @@ const memberSchema = new Schema<MemberDocument>({
233
235
  barcodeAssociation: {
234
236
  type: [
235
237
  {
238
+ isRegisteredMembership: {
239
+ type: Boolean,
240
+ required: true,
241
+ },
236
242
  isMembershipRequested: {
237
243
  type: Boolean,
238
244
  default: true,
@@ -249,7 +255,6 @@ const memberSchema = new Schema<MemberDocument>({
249
255
  },
250
256
  remarks: {
251
257
  type: String,
252
- required: true,
253
258
  },
254
259
  requestedDate: {
255
260
  type: Date,
@@ -259,6 +264,9 @@ const memberSchema = new Schema<MemberDocument>({
259
264
  type: Boolean,
260
265
  default: false,
261
266
  },
267
+ noOfSubscriptionMonths: {
268
+ type: Number,
269
+ },
262
270
  isIssued: {
263
271
  type: Boolean,
264
272
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pristine-member-nest-api-database",
3
- "version": "1.0.36",
3
+ "version": "1.0.37",
4
4
  "description": "Member nest API database",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {