pristine-member-nest-api-database 1.0.62 → 1.0.64
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 +3 -3
- package/dist/models/Editor.Category.Field.Mapping.js +52 -0
- package/dist/models/Editor.Container.Category.mapping.js +52 -0
- 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/Member.model.V1.js +33 -0
- package/dist/models/Member.model.js +141 -199
- package/dist/models/MemberNEW.model.js +254 -0
- package/index.ts +3 -3
- package/models/Editor.Application.model.ts +7 -34
- package/models/Editor.Category.Field.Mapping.ts +47 -0
- package/models/Editor.Container.Category.mapping.ts +41 -0
- package/models/Editor.FieldMaster.model.ts +8 -2
- package/models/Editor.FieldTypeMaster.model.ts +2 -0
- package/models/Member-old.model.ts +384 -0
- package/models/Member.model.V1.ts +352 -0
- package/models/Member.model.ts +218 -298
- package/package.json +1 -1
- package/models/Editor.PureStatic.Category.Field.Mapping.ts +0 -35
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,8 +50,8 @@ __exportStar(require("./models/Editor.FieldTypeMaster.model"), exports);
|
|
|
50
50
|
__exportStar(require("./models/Editor.FieldMaster.model"), exports);
|
|
51
51
|
__exportStar(require("./models/MainProductOrServices.model"), exports);
|
|
52
52
|
__exportStar(require("./models/Editor.BPCompany.Types"), exports);
|
|
53
|
-
__exportStar(require("./models/Editor.
|
|
54
|
-
|
|
53
|
+
__exportStar(require("./models/Editor.Category.Field.Mapping"), exports);
|
|
54
|
+
// export * from "./models/Editor.StaticVariable.Category.Field.Mapping";
|
|
55
55
|
__exportStar(require("./models/Editor.BPcompanyTpes.Branch.Field.Category.Mapping"), exports);
|
|
56
56
|
__exportStar(require("./models/Editor.SLIITO.Category.Field.Mapping"), exports);
|
|
57
57
|
__exportStar(require("./models/Editor.Application.model"), exports);
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
//Editor.PureStaticFieldsMapping.ts
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
20
|
+
if (mod && mod.__esModule) return mod;
|
|
21
|
+
var result = {};
|
|
22
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
23
|
+
__setModuleDefault(result, mod);
|
|
24
|
+
return result;
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.mongoCategoryFieldMappingSchema = void 0;
|
|
28
|
+
const mongoose_1 = __importStar(require("mongoose"));
|
|
29
|
+
const CategoryFieldMappingSchema = new mongoose_1.Schema({
|
|
30
|
+
categoryId: {
|
|
31
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
32
|
+
ref: "Field.Categories",
|
|
33
|
+
},
|
|
34
|
+
fields: [
|
|
35
|
+
{
|
|
36
|
+
field: {
|
|
37
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
38
|
+
ref: "Editor.Fields.Master",
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
isActive: { type: Boolean, default: true },
|
|
43
|
+
audit: [
|
|
44
|
+
{
|
|
45
|
+
userId: { type: String },
|
|
46
|
+
auditedOn: { type: Date, default: null },
|
|
47
|
+
actionType: { type: String },
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
});
|
|
51
|
+
const mongoCategoryFieldMappingSchema = mongoose_1.default.model("Editor.Category.Fields.Mapping", CategoryFieldMappingSchema);
|
|
52
|
+
exports.mongoCategoryFieldMappingSchema = mongoCategoryFieldMappingSchema;
|
|
@@ -0,0 +1,52 @@
|
|
|
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.mongoEditorField = void 0;
|
|
27
|
+
const mongoose_1 = __importStar(require("mongoose"));
|
|
28
|
+
const ContainerCategoryMappingSchema = new mongoose_1.Schema({
|
|
29
|
+
ContainerId: {
|
|
30
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
31
|
+
ref: "Editor.Container", // Reference to the ontainers
|
|
32
|
+
required: false,
|
|
33
|
+
default: null,
|
|
34
|
+
},
|
|
35
|
+
CategoryId: {
|
|
36
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
37
|
+
ref: "Field.Categories", // Reference to the Categories
|
|
38
|
+
required: false,
|
|
39
|
+
default: null,
|
|
40
|
+
},
|
|
41
|
+
isSystemDefined: { type: Boolean, default: false },
|
|
42
|
+
isActive: { type: Boolean, default: true },
|
|
43
|
+
audit: [
|
|
44
|
+
{
|
|
45
|
+
userId: { type: String },
|
|
46
|
+
auditedOn: { type: Date, default: null },
|
|
47
|
+
actionType: { type: String },
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
});
|
|
51
|
+
const mongoEditorField = mongoose_1.default.model("Editor.Container.Category.mapping", ContainerCategoryMappingSchema);
|
|
52
|
+
exports.mongoEditorField = mongoEditorField;
|
|
@@ -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,33 @@
|
|
|
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
|
+
const mongoose_1 = __importStar(require("mongoose"));
|
|
27
|
+
mongoose_1.default.set("strictPopulate", false);
|
|
28
|
+
// File schema
|
|
29
|
+
const fileSchema = new mongoose_1.Schema({
|
|
30
|
+
baseURL: { type: String },
|
|
31
|
+
fileName: { type: String },
|
|
32
|
+
fileExtension: { type: String },
|
|
33
|
+
});
|