pristine-member-nest-api-database 1.0.61 → 1.0.63
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.
- package/dist/index.js +1 -1
- package/dist/models/Editor.FieldMaster.model.js +5 -0
- package/dist/models/Editor.FieldTypeMaster.model.js +2 -0
- package/dist/models/Member-old.model.js +254 -0
- package/dist/models/MemberNEW.model.js +254 -0
- package/index.ts +1 -1
- package/models/Editor.Application.model.ts +48 -34
- package/models/Editor.FieldMaster.model.ts +8 -2
- package/models/Editor.FieldTypeMaster.model.ts +2 -0
- package/package.json +1 -1
- /package/models/{Member.model.ts → Member-old.model.ts} +0 -0
package/dist/index.js
CHANGED
|
@@ -29,7 +29,7 @@ __exportStar(require("./models/Item.ir.model"), exports);
|
|
|
29
29
|
__exportStar(require("./models/ItemGroup.ir.model"), exports);
|
|
30
30
|
__exportStar(require("./models/ItemRequest.ir.model"), exports);
|
|
31
31
|
__exportStar(require("./models/MeetingRoom.ir.model"), exports);
|
|
32
|
-
__exportStar(require("./models/Member.model"), exports);
|
|
32
|
+
__exportStar(require("./models/Member-old.model"), exports);
|
|
33
33
|
__exportStar(require("./models/MembershipStatus.model"), exports);
|
|
34
34
|
__exportStar(require("./models/MembershipType.model"), exports);
|
|
35
35
|
__exportStar(require("./models/NatureOfBusiness.model"), exports);
|
|
@@ -50,6 +50,11 @@ const fieldSchema = new mongoose_1.Schema({
|
|
|
50
50
|
actionType: { type: String },
|
|
51
51
|
},
|
|
52
52
|
],
|
|
53
|
+
IsMemberLevelData: {
|
|
54
|
+
type: Boolean,
|
|
55
|
+
default: false,
|
|
56
|
+
required: true,
|
|
57
|
+
},
|
|
53
58
|
});
|
|
54
59
|
const mongoEditorField = mongoose_1.default.model("Editor.Fields.Master", fieldSchema);
|
|
55
60
|
exports.mongoEditorField = mongoEditorField;
|
|
@@ -31,11 +31,13 @@ const mongoose_1 = __importStar(require("mongoose"));
|
|
|
31
31
|
var FieldTypeEnum;
|
|
32
32
|
(function (FieldTypeEnum) {
|
|
33
33
|
FieldTypeEnum["TEXT"] = "TEXT";
|
|
34
|
+
FieldTypeEnum["TEXTAREA"] = "TEXTAREA";
|
|
34
35
|
FieldTypeEnum["WHOLENUMBER"] = "WHOLENUMBER";
|
|
35
36
|
FieldTypeEnum["DECIMALNUMBER"] = "DECIMALNUMBER";
|
|
36
37
|
FieldTypeEnum["EMAIL"] = "EMAIL";
|
|
37
38
|
FieldTypeEnum["DATE"] = "DATE";
|
|
38
39
|
FieldTypeEnum["CHECKBOX"] = "CHECKBOX";
|
|
40
|
+
FieldTypeEnum["RADIO"] = "RADIO";
|
|
39
41
|
FieldTypeEnum["DROPDOWN"] = "DROPDOWN";
|
|
40
42
|
FieldTypeEnum["MULTISELECT"] = "MULTISELECT";
|
|
41
43
|
FieldTypeEnum["SINGLECOUNTRYFLAG"] = "SINGLECOUNTRYFLAG";
|
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.mongoMember = void 0;
|
|
27
|
+
const mongoose_1 = __importStar(require("mongoose"));
|
|
28
|
+
mongoose_1.default.set("strictPopulate", false);
|
|
29
|
+
// File schema
|
|
30
|
+
const fileSchema = new mongoose_1.Schema({
|
|
31
|
+
baseURL: { type: String },
|
|
32
|
+
fileName: { type: String },
|
|
33
|
+
fileExtension: { type: String },
|
|
34
|
+
});
|
|
35
|
+
const memberSchema = new mongoose_1.Schema({
|
|
36
|
+
memberId: { type: Number },
|
|
37
|
+
memberCode: { type: String, default: "" },
|
|
38
|
+
memberName: { type: String },
|
|
39
|
+
isMemberOfMasterBranch: { type: Boolean, default: false },
|
|
40
|
+
taxIdentificationNo: { type: String },
|
|
41
|
+
vatNo: { type: String },
|
|
42
|
+
vatAttachment: fileSchema,
|
|
43
|
+
svatNo: { type: String },
|
|
44
|
+
svatAttachment: fileSchema,
|
|
45
|
+
brNo: { type: String, default: "" },
|
|
46
|
+
brAttachment: fileSchema,
|
|
47
|
+
nicNo: { type: String, default: "" },
|
|
48
|
+
nicAttachment: fileSchema,
|
|
49
|
+
webSite: { type: String, default: "" },
|
|
50
|
+
generalTelNo: { type: String },
|
|
51
|
+
generalEmail: { type: String },
|
|
52
|
+
isTaxRegistered: { type: Boolean, default: false },
|
|
53
|
+
conglomerateAddress: {
|
|
54
|
+
addressLine1: { type: String },
|
|
55
|
+
addressLine2: { type: String, default: "" },
|
|
56
|
+
addressLine3: { type: String, default: "" },
|
|
57
|
+
block: { type: String, default: "" },
|
|
58
|
+
city: { type: String },
|
|
59
|
+
country: { type: String },
|
|
60
|
+
},
|
|
61
|
+
otherAttachment: [fileSchema],
|
|
62
|
+
typeOfOrganization: {
|
|
63
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
64
|
+
ref: "OrganizationType.Master",
|
|
65
|
+
},
|
|
66
|
+
natureOfBusiness: {
|
|
67
|
+
type: [mongoose_1.Schema.Types.ObjectId],
|
|
68
|
+
ref: "NatureOfBusiness.Master",
|
|
69
|
+
},
|
|
70
|
+
mainProductsOrServices: {
|
|
71
|
+
type: [mongoose_1.Schema.Types.ObjectId],
|
|
72
|
+
ref: "Products.ServicesMaster",
|
|
73
|
+
},
|
|
74
|
+
countryOfExportsOrImports: { type: [String], default: [] },
|
|
75
|
+
noOfExecutiveEmployees: { type: Number, default: 0 },
|
|
76
|
+
noOfNoneOfExecutiveEmployees: { type: Number, default: 0 },
|
|
77
|
+
keyExecutivesDetails: {
|
|
78
|
+
chairmanName: { type: String, default: "" },
|
|
79
|
+
chairmanEmail: { type: String, default: "" },
|
|
80
|
+
chairmanphone: { type: String, default: "" },
|
|
81
|
+
managingDirectorName: { type: String, default: "" },
|
|
82
|
+
managingDirectorEmail: { type: String, default: "" },
|
|
83
|
+
managingDirectorPhone: { type: String, default: "" },
|
|
84
|
+
ceoName: { type: String, default: "" },
|
|
85
|
+
ceoEmail: { type: String, default: "" },
|
|
86
|
+
ceoPhone: { type: String, default: "" },
|
|
87
|
+
headOfHrName: { type: String, default: "" },
|
|
88
|
+
headofHrEmail: { type: String, default: "" },
|
|
89
|
+
headofHrPhone: { type: String, default: "" },
|
|
90
|
+
headOfMarketingName: { type: String, default: "" },
|
|
91
|
+
headOfMarketingEmail: { type: String, default: "" },
|
|
92
|
+
headOfMarketingPhone: { type: String, default: "" },
|
|
93
|
+
cfoName: { type: String, default: "" },
|
|
94
|
+
cfoEmail: { type: String, default: "" },
|
|
95
|
+
cfoPhone: { type: String, default: "" },
|
|
96
|
+
countryManagerName: { type: String, default: "" },
|
|
97
|
+
countryManagerEmail: { type: String, default: "" },
|
|
98
|
+
countryManagerPhone: { type: String, default: "" },
|
|
99
|
+
},
|
|
100
|
+
isMemberContactSynced: { type: Boolean, default: false },
|
|
101
|
+
memberContactSyncedOn: { type: Date, default: null },
|
|
102
|
+
isCreatedInSAP: { type: Boolean, default: false },
|
|
103
|
+
isMemberSyncedWithSAP: { type: Boolean, default: false },
|
|
104
|
+
memberSyncedOn: { type: Date, default: null },
|
|
105
|
+
isActive: { type: Boolean },
|
|
106
|
+
memberAssociation: [
|
|
107
|
+
{
|
|
108
|
+
branch: {
|
|
109
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
110
|
+
ref: "Branches", // Reference to the 'Branches' model
|
|
111
|
+
},
|
|
112
|
+
associationMemberCode: { type: String, default: "" },
|
|
113
|
+
membershipStatus: {
|
|
114
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
115
|
+
ref: "Membership.Statuses", // Reference to the 'Membership.Statuses' model
|
|
116
|
+
},
|
|
117
|
+
membershipType: {
|
|
118
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
119
|
+
ref: "Membership.Types", // Reference to the 'Membership.Types' model
|
|
120
|
+
},
|
|
121
|
+
electedDate: { type: Date, default: null },
|
|
122
|
+
contactInfo: {
|
|
123
|
+
bpShortCode: { type: String, default: "" },
|
|
124
|
+
firstName: { type: String },
|
|
125
|
+
lastName: { type: String },
|
|
126
|
+
contactTelNo1: { type: String },
|
|
127
|
+
contactEmail1: { type: String },
|
|
128
|
+
contactDesignation: { type: String },
|
|
129
|
+
contactAddress: { type: String },
|
|
130
|
+
contactAddress2: { type: String },
|
|
131
|
+
city: { type: String },
|
|
132
|
+
isSAPSynced: { type: Boolean, default: false },
|
|
133
|
+
lastSyncedOn: { type: Date, default: null },
|
|
134
|
+
},
|
|
135
|
+
isTerminated: { type: Boolean, default: false },
|
|
136
|
+
terminatedDate: { type: Date, default: null },
|
|
137
|
+
reasonForTermination: { type: String, default: "" },
|
|
138
|
+
barcodeAssociation: {
|
|
139
|
+
type: [
|
|
140
|
+
{
|
|
141
|
+
isRegisteredMembership: {
|
|
142
|
+
type: Boolean,
|
|
143
|
+
required: true,
|
|
144
|
+
},
|
|
145
|
+
isMembershipRequested: {
|
|
146
|
+
type: Boolean,
|
|
147
|
+
default: true,
|
|
148
|
+
},
|
|
149
|
+
membershipType: {
|
|
150
|
+
type: mongoose_1.default.Types.ObjectId,
|
|
151
|
+
ref: "Membership.Types",
|
|
152
|
+
required: true,
|
|
153
|
+
},
|
|
154
|
+
membershipStatus: {
|
|
155
|
+
type: mongoose_1.default.Types.ObjectId,
|
|
156
|
+
ref: "Membership.Statuses",
|
|
157
|
+
required: true,
|
|
158
|
+
},
|
|
159
|
+
remarks: {
|
|
160
|
+
type: String,
|
|
161
|
+
},
|
|
162
|
+
requestedDate: {
|
|
163
|
+
type: Date,
|
|
164
|
+
default: Date.now,
|
|
165
|
+
},
|
|
166
|
+
isMembershipSynced: {
|
|
167
|
+
type: Boolean,
|
|
168
|
+
default: false,
|
|
169
|
+
},
|
|
170
|
+
noOfSubscriptionMonths: {
|
|
171
|
+
type: Number,
|
|
172
|
+
},
|
|
173
|
+
isIssued: {
|
|
174
|
+
type: Boolean,
|
|
175
|
+
},
|
|
176
|
+
electedDate: {
|
|
177
|
+
type: Date,
|
|
178
|
+
},
|
|
179
|
+
barcodeBranchMemberCode: {
|
|
180
|
+
type: String,
|
|
181
|
+
},
|
|
182
|
+
barCode: {
|
|
183
|
+
type: Number,
|
|
184
|
+
},
|
|
185
|
+
validFrom: {
|
|
186
|
+
type: Date,
|
|
187
|
+
},
|
|
188
|
+
validTo: {
|
|
189
|
+
type: Date,
|
|
190
|
+
},
|
|
191
|
+
countryCode: {
|
|
192
|
+
type: Number,
|
|
193
|
+
},
|
|
194
|
+
changeDate: {
|
|
195
|
+
type: Date,
|
|
196
|
+
},
|
|
197
|
+
isTerminationRequested: {
|
|
198
|
+
type: Boolean,
|
|
199
|
+
default: false,
|
|
200
|
+
},
|
|
201
|
+
isTerminationSynced: {
|
|
202
|
+
type: Boolean,
|
|
203
|
+
default: false,
|
|
204
|
+
},
|
|
205
|
+
terminationRequestedDate: {
|
|
206
|
+
type: Date,
|
|
207
|
+
},
|
|
208
|
+
terminationDate: {
|
|
209
|
+
type: Date,
|
|
210
|
+
},
|
|
211
|
+
terminationReason: {
|
|
212
|
+
type: String,
|
|
213
|
+
},
|
|
214
|
+
},
|
|
215
|
+
],
|
|
216
|
+
},
|
|
217
|
+
dynamicDetails: { type: JSON, default: null },
|
|
218
|
+
isTerminationRequested: { type: Boolean, default: false },
|
|
219
|
+
terminationRequestedDate: { type: Date, default: null },
|
|
220
|
+
terminationRequestedBy: { type: String, default: "" },
|
|
221
|
+
terminationRequestRemarks: { type: String, default: "" },
|
|
222
|
+
onOfSubscriptionMonths: { type: Number, default: 0 },
|
|
223
|
+
applicationStatus: { type: String, default: "PENDING" },
|
|
224
|
+
reviewedBy: {
|
|
225
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
226
|
+
ref: "Users", // Reference to the 'Users' model
|
|
227
|
+
default: null,
|
|
228
|
+
},
|
|
229
|
+
reviewedOn: { type: Date, default: null },
|
|
230
|
+
isEnrolmentCreatedInSAP: { type: Boolean, default: false },
|
|
231
|
+
isEnrolmentSyncedWithSAP: { type: Boolean, default: false },
|
|
232
|
+
enrolmentSyncedOn: { type: Date, default: null },
|
|
233
|
+
isActive: { type: Boolean, default: true },
|
|
234
|
+
createdDate: {
|
|
235
|
+
type: mongoose_1.Schema.Types.Date,
|
|
236
|
+
required: false,
|
|
237
|
+
default: Date.now,
|
|
238
|
+
},
|
|
239
|
+
salesOrderDocEntry: { type: String, default: "" },
|
|
240
|
+
salesOrderStatus: { type: String, default: "" },
|
|
241
|
+
approveRemarks: { type: String, default: "" },
|
|
242
|
+
rejectRemarks: { type: String, default: "" },
|
|
243
|
+
},
|
|
244
|
+
],
|
|
245
|
+
audit: [
|
|
246
|
+
{
|
|
247
|
+
userId: { type: String },
|
|
248
|
+
auditedOn: { type: Date, default: null },
|
|
249
|
+
actionType: { type: String },
|
|
250
|
+
},
|
|
251
|
+
],
|
|
252
|
+
});
|
|
253
|
+
const mongoMember = mongoose_1.default.model("Members", memberSchema);
|
|
254
|
+
exports.mongoMember = mongoMember;
|
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.mongoMember = void 0;
|
|
27
|
+
const mongoose_1 = __importStar(require("mongoose"));
|
|
28
|
+
mongoose_1.default.set("strictPopulate", false);
|
|
29
|
+
// File schema
|
|
30
|
+
const fileSchema = new mongoose_1.Schema({
|
|
31
|
+
baseURL: { type: String },
|
|
32
|
+
fileName: { type: String },
|
|
33
|
+
fileExtension: { type: String },
|
|
34
|
+
});
|
|
35
|
+
const memberSchema = new mongoose_1.Schema({
|
|
36
|
+
memberId: { type: Number },
|
|
37
|
+
memberCode: { type: String, default: "" },
|
|
38
|
+
memberName: { type: String },
|
|
39
|
+
isMemberOfMasterBranch: { type: Boolean, default: false },
|
|
40
|
+
taxIdentificationNo: { type: String },
|
|
41
|
+
vatNo: { type: String },
|
|
42
|
+
vatAttachment: fileSchema,
|
|
43
|
+
svatNo: { type: String },
|
|
44
|
+
svatAttachment: fileSchema,
|
|
45
|
+
brNo: { type: String, default: "" },
|
|
46
|
+
brAttachment: fileSchema,
|
|
47
|
+
nicNo: { type: String, default: "" },
|
|
48
|
+
nicAttachment: fileSchema,
|
|
49
|
+
webSite: { type: String, default: "" },
|
|
50
|
+
generalTelNo: { type: String },
|
|
51
|
+
generalEmail: { type: String },
|
|
52
|
+
isTaxRegistered: { type: Boolean, default: false },
|
|
53
|
+
conglomerateAddress: {
|
|
54
|
+
addressLine1: { type: String },
|
|
55
|
+
addressLine2: { type: String, default: "" },
|
|
56
|
+
addressLine3: { type: String, default: "" },
|
|
57
|
+
block: { type: String, default: "" },
|
|
58
|
+
city: { type: String },
|
|
59
|
+
country: { type: String },
|
|
60
|
+
},
|
|
61
|
+
otherAttachment: [fileSchema],
|
|
62
|
+
typeOfOrganization: {
|
|
63
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
64
|
+
ref: "OrganizationType.Master",
|
|
65
|
+
},
|
|
66
|
+
natureOfBusiness: {
|
|
67
|
+
type: [mongoose_1.Schema.Types.ObjectId],
|
|
68
|
+
ref: "NatureOfBusiness.Master",
|
|
69
|
+
},
|
|
70
|
+
mainProductsOrServices: {
|
|
71
|
+
type: [mongoose_1.Schema.Types.ObjectId],
|
|
72
|
+
ref: "Products.ServicesMaster",
|
|
73
|
+
},
|
|
74
|
+
countryOfExportsOrImports: { type: [String], default: [] },
|
|
75
|
+
noOfExecutiveEmployees: { type: Number, default: 0 },
|
|
76
|
+
noOfNoneOfExecutiveEmployees: { type: Number, default: 0 },
|
|
77
|
+
keyExecutivesDetails: {
|
|
78
|
+
chairmanName: { type: String, default: "" },
|
|
79
|
+
chairmanEmail: { type: String, default: "" },
|
|
80
|
+
chairmanphone: { type: String, default: "" },
|
|
81
|
+
managingDirectorName: { type: String, default: "" },
|
|
82
|
+
managingDirectorEmail: { type: String, default: "" },
|
|
83
|
+
managingDirectorPhone: { type: String, default: "" },
|
|
84
|
+
ceoName: { type: String, default: "" },
|
|
85
|
+
ceoEmail: { type: String, default: "" },
|
|
86
|
+
ceoPhone: { type: String, default: "" },
|
|
87
|
+
headOfHrName: { type: String, default: "" },
|
|
88
|
+
headofHrEmail: { type: String, default: "" },
|
|
89
|
+
headofHrPhone: { type: String, default: "" },
|
|
90
|
+
headOfMarketingName: { type: String, default: "" },
|
|
91
|
+
headOfMarketingEmail: { type: String, default: "" },
|
|
92
|
+
headOfMarketingPhone: { type: String, default: "" },
|
|
93
|
+
cfoName: { type: String, default: "" },
|
|
94
|
+
cfoEmail: { type: String, default: "" },
|
|
95
|
+
cfoPhone: { type: String, default: "" },
|
|
96
|
+
countryManagerName: { type: String, default: "" },
|
|
97
|
+
countryManagerEmail: { type: String, default: "" },
|
|
98
|
+
countryManagerPhone: { type: String, default: "" },
|
|
99
|
+
},
|
|
100
|
+
isMemberContactSynced: { type: Boolean, default: false },
|
|
101
|
+
memberContactSyncedOn: { type: Date, default: null },
|
|
102
|
+
isCreatedInSAP: { type: Boolean, default: false },
|
|
103
|
+
isMemberSyncedWithSAP: { type: Boolean, default: false },
|
|
104
|
+
memberSyncedOn: { type: Date, default: null },
|
|
105
|
+
isActive: { type: Boolean },
|
|
106
|
+
memberAssociation: [
|
|
107
|
+
{
|
|
108
|
+
branch: {
|
|
109
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
110
|
+
ref: "Branches", // Reference to the 'Branches' model
|
|
111
|
+
},
|
|
112
|
+
associationMemberCode: { type: String, default: "" },
|
|
113
|
+
membershipStatus: {
|
|
114
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
115
|
+
ref: "Membership.Statuses", // Reference to the 'Membership.Statuses' model
|
|
116
|
+
},
|
|
117
|
+
membershipType: {
|
|
118
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
119
|
+
ref: "Membership.Types", // Reference to the 'Membership.Types' model
|
|
120
|
+
},
|
|
121
|
+
electedDate: { type: Date, default: null },
|
|
122
|
+
contactInfo: {
|
|
123
|
+
bpShortCode: { type: String, default: "" },
|
|
124
|
+
firstName: { type: String },
|
|
125
|
+
lastName: { type: String },
|
|
126
|
+
contactTelNo1: { type: String },
|
|
127
|
+
contactEmail1: { type: String },
|
|
128
|
+
contactDesignation: { type: String },
|
|
129
|
+
contactAddress: { type: String },
|
|
130
|
+
contactAddress2: { type: String },
|
|
131
|
+
city: { type: String },
|
|
132
|
+
isSAPSynced: { type: Boolean, default: false },
|
|
133
|
+
lastSyncedOn: { type: Date, default: null },
|
|
134
|
+
},
|
|
135
|
+
isTerminated: { type: Boolean, default: false },
|
|
136
|
+
terminatedDate: { type: Date, default: null },
|
|
137
|
+
reasonForTermination: { type: String, default: "" },
|
|
138
|
+
barcodeAssociation: {
|
|
139
|
+
type: [
|
|
140
|
+
{
|
|
141
|
+
isRegisteredMembership: {
|
|
142
|
+
type: Boolean,
|
|
143
|
+
required: true,
|
|
144
|
+
},
|
|
145
|
+
isMembershipRequested: {
|
|
146
|
+
type: Boolean,
|
|
147
|
+
default: true,
|
|
148
|
+
},
|
|
149
|
+
membershipType: {
|
|
150
|
+
type: mongoose_1.default.Types.ObjectId,
|
|
151
|
+
ref: "Membership.Types",
|
|
152
|
+
required: true,
|
|
153
|
+
},
|
|
154
|
+
membershipStatus: {
|
|
155
|
+
type: mongoose_1.default.Types.ObjectId,
|
|
156
|
+
ref: "Membership.Statuses",
|
|
157
|
+
required: true,
|
|
158
|
+
},
|
|
159
|
+
remarks: {
|
|
160
|
+
type: String,
|
|
161
|
+
},
|
|
162
|
+
requestedDate: {
|
|
163
|
+
type: Date,
|
|
164
|
+
default: Date.now,
|
|
165
|
+
},
|
|
166
|
+
isMembershipSynced: {
|
|
167
|
+
type: Boolean,
|
|
168
|
+
default: false,
|
|
169
|
+
},
|
|
170
|
+
noOfSubscriptionMonths: {
|
|
171
|
+
type: Number,
|
|
172
|
+
},
|
|
173
|
+
isIssued: {
|
|
174
|
+
type: Boolean,
|
|
175
|
+
},
|
|
176
|
+
electedDate: {
|
|
177
|
+
type: Date,
|
|
178
|
+
},
|
|
179
|
+
barcodeBranchMemberCode: {
|
|
180
|
+
type: String,
|
|
181
|
+
},
|
|
182
|
+
barCode: {
|
|
183
|
+
type: Number,
|
|
184
|
+
},
|
|
185
|
+
validFrom: {
|
|
186
|
+
type: Date,
|
|
187
|
+
},
|
|
188
|
+
validTo: {
|
|
189
|
+
type: Date,
|
|
190
|
+
},
|
|
191
|
+
countryCode: {
|
|
192
|
+
type: Number,
|
|
193
|
+
},
|
|
194
|
+
changeDate: {
|
|
195
|
+
type: Date,
|
|
196
|
+
},
|
|
197
|
+
isTerminationRequested: {
|
|
198
|
+
type: Boolean,
|
|
199
|
+
default: false,
|
|
200
|
+
},
|
|
201
|
+
isTerminationSynced: {
|
|
202
|
+
type: Boolean,
|
|
203
|
+
default: false,
|
|
204
|
+
},
|
|
205
|
+
terminationRequestedDate: {
|
|
206
|
+
type: Date,
|
|
207
|
+
},
|
|
208
|
+
terminationDate: {
|
|
209
|
+
type: Date,
|
|
210
|
+
},
|
|
211
|
+
terminationReason: {
|
|
212
|
+
type: String,
|
|
213
|
+
},
|
|
214
|
+
},
|
|
215
|
+
],
|
|
216
|
+
},
|
|
217
|
+
dynamicDetails: { type: JSON, default: null },
|
|
218
|
+
isTerminationRequested: { type: Boolean, default: false },
|
|
219
|
+
terminationRequestedDate: { type: Date, default: null },
|
|
220
|
+
terminationRequestedBy: { type: String, default: "" },
|
|
221
|
+
terminationRequestRemarks: { type: String, default: "" },
|
|
222
|
+
onOfSubscriptionMonths: { type: Number, default: 0 },
|
|
223
|
+
applicationStatus: { type: String, default: "PENDING" },
|
|
224
|
+
reviewedBy: {
|
|
225
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
226
|
+
ref: "Users", // Reference to the 'Users' model
|
|
227
|
+
default: null,
|
|
228
|
+
},
|
|
229
|
+
reviewedOn: { type: Date, default: null },
|
|
230
|
+
isEnrolmentCreatedInSAP: { type: Boolean, default: false },
|
|
231
|
+
isEnrolmentSyncedWithSAP: { type: Boolean, default: false },
|
|
232
|
+
enrolmentSyncedOn: { type: Date, default: null },
|
|
233
|
+
isActive: { type: Boolean, default: true },
|
|
234
|
+
createdDate: {
|
|
235
|
+
type: mongoose_1.Schema.Types.Date,
|
|
236
|
+
required: false,
|
|
237
|
+
default: Date.now,
|
|
238
|
+
},
|
|
239
|
+
salesOrderDocEntry: { type: String, default: "" },
|
|
240
|
+
salesOrderStatus: { type: String, default: "" },
|
|
241
|
+
approveRemarks: { type: String, default: "" },
|
|
242
|
+
rejectRemarks: { type: String, default: "" },
|
|
243
|
+
},
|
|
244
|
+
],
|
|
245
|
+
audit: [
|
|
246
|
+
{
|
|
247
|
+
userId: { type: String },
|
|
248
|
+
auditedOn: { type: Date, default: null },
|
|
249
|
+
actionType: { type: String },
|
|
250
|
+
},
|
|
251
|
+
],
|
|
252
|
+
});
|
|
253
|
+
const mongoMember = mongoose_1.default.model("Members", memberSchema);
|
|
254
|
+
exports.mongoMember = mongoMember;
|
package/index.ts
CHANGED
|
@@ -13,7 +13,7 @@ export * from "./models/Item.ir.model";
|
|
|
13
13
|
export * from "./models/ItemGroup.ir.model";
|
|
14
14
|
export * from "./models/ItemRequest.ir.model";
|
|
15
15
|
export * from "./models/MeetingRoom.ir.model";
|
|
16
|
-
export * from "./models/Member.model";
|
|
16
|
+
export * from "./models/Member-old.model";
|
|
17
17
|
export * from "./models/MembershipStatus.model";
|
|
18
18
|
export * from "./models/MembershipType.model";
|
|
19
19
|
export * from "./models/NatureOfBusiness.model";
|
|
@@ -11,43 +11,57 @@ interface IApplicationDocument extends Document {
|
|
|
11
11
|
applicationName: string;
|
|
12
12
|
applicationDescription: string;
|
|
13
13
|
categories: IApplicationCategory[];
|
|
14
|
-
|
|
14
|
+
|
|
15
|
+
// STATIC VARIBLE CONFIG ON BRANCH CONFIG LEVEL
|
|
16
|
+
SLITOptionEnabled: boolean;
|
|
15
17
|
organizationApplicationEnabled: boolean;
|
|
16
18
|
approverOneEnabled: boolean;
|
|
17
19
|
approverTwoEnabled: boolean;
|
|
18
|
-
|
|
19
|
-
IsMembershipTableEnabled: boolean;
|
|
20
|
+
IsMembershipRatesTableEnabled: boolean;
|
|
20
21
|
IsMembershipExtraDetailsEnabled: boolean;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
//
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
//
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
22
|
+
OtherInfoEnabled: boolean;
|
|
23
|
+
|
|
24
|
+
// STATIC VARIBLE CONFIG ON BRANCH CONFIG LEVEL END HERE
|
|
25
|
+
createdDate: Schema.Types.Date;
|
|
26
|
+
|
|
27
|
+
// member branch Level Configs
|
|
28
|
+
BranchManagerData: {
|
|
29
|
+
attachment: [
|
|
30
|
+
{
|
|
31
|
+
fileName: string;
|
|
32
|
+
fileType: string;
|
|
33
|
+
fileSize: number;
|
|
34
|
+
fileUrl: string;
|
|
35
|
+
},
|
|
36
|
+
];
|
|
37
|
+
remarks: string;
|
|
38
|
+
electedDate: Date;
|
|
39
|
+
InvoiceDiscount: number;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
approverOneData: {
|
|
43
|
+
remarks: string;
|
|
44
|
+
userId: string;
|
|
45
|
+
attachment: [
|
|
46
|
+
{
|
|
47
|
+
fileName: string;
|
|
48
|
+
fileType: string;
|
|
49
|
+
fileSize: number;
|
|
50
|
+
fileUrl: string;
|
|
51
|
+
},
|
|
52
|
+
];
|
|
53
|
+
};
|
|
54
|
+
approverTwoData: {
|
|
55
|
+
remarks: string;
|
|
56
|
+
userId: string;
|
|
57
|
+
attachment: [
|
|
58
|
+
{
|
|
59
|
+
fileName: string;
|
|
60
|
+
fileType: string;
|
|
61
|
+
fileSize: number;
|
|
62
|
+
fileUrl: string;
|
|
63
|
+
},
|
|
64
|
+
];
|
|
65
|
+
};
|
|
52
66
|
audit: Audit[];
|
|
53
67
|
}
|
|
@@ -2,7 +2,7 @@ import mongoose, { Document, Schema } from "mongoose";
|
|
|
2
2
|
import { Audit } from "../interface/Audit.interface";
|
|
3
3
|
import { FieldTypeEnum } from "./Editor.FieldTypeMaster.model";
|
|
4
4
|
|
|
5
|
-
// TEXT
|
|
5
|
+
// TEXT OR TEXT AREA
|
|
6
6
|
export interface TextFieldConfig {
|
|
7
7
|
pattern?: string | null; // regex pattern for validation
|
|
8
8
|
minLength?: number | null;
|
|
@@ -24,7 +24,7 @@ export interface WholeNumberFieldConfig {
|
|
|
24
24
|
maxLength?: number | null;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
// OPTIONS (checkbox / dropdown)
|
|
27
|
+
// OPTIONS (checkbox / dropdown / Radio)
|
|
28
28
|
export interface OptionConfig {
|
|
29
29
|
value: string;
|
|
30
30
|
label: string;
|
|
@@ -97,6 +97,7 @@ interface EditorField extends Document {
|
|
|
97
97
|
fieldConfig: FieldConfig;
|
|
98
98
|
isActive: boolean;
|
|
99
99
|
audit: Audit[];
|
|
100
|
+
IsMemberLevelData: boolean;
|
|
100
101
|
}
|
|
101
102
|
|
|
102
103
|
const fieldSchema = new Schema<EditorField>({
|
|
@@ -124,6 +125,11 @@ const fieldSchema = new Schema<EditorField>({
|
|
|
124
125
|
actionType: { type: String },
|
|
125
126
|
},
|
|
126
127
|
],
|
|
128
|
+
IsMemberLevelData: {
|
|
129
|
+
type: Boolean,
|
|
130
|
+
default: false,
|
|
131
|
+
required: true,
|
|
132
|
+
},
|
|
127
133
|
});
|
|
128
134
|
|
|
129
135
|
const mongoEditorField = mongoose.model<EditorField>(
|
|
@@ -6,11 +6,13 @@ import { Audit } from "../interface/Audit.interface";
|
|
|
6
6
|
========================= */
|
|
7
7
|
export enum FieldTypeEnum {
|
|
8
8
|
TEXT = "TEXT",
|
|
9
|
+
TEXTAREA = "TEXTAREA",
|
|
9
10
|
WHOLENUMBER = "WHOLENUMBER",
|
|
10
11
|
DECIMALNUMBER = "DECIMALNUMBER",
|
|
11
12
|
EMAIL = "EMAIL",
|
|
12
13
|
DATE = "DATE",
|
|
13
14
|
CHECKBOX = "CHECKBOX",
|
|
15
|
+
RADIO = "RADIO",
|
|
14
16
|
DROPDOWN = "DROPDOWN",
|
|
15
17
|
MULTISELECT = "MULTISELECT",
|
|
16
18
|
SINGLECOUNTRYFLAG = "SINGLECOUNTRYFLAG",
|
package/package.json
CHANGED
|
File without changes
|