pristine-member-nest-api-database 1.0.63 → 1.0.65
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 +2 -2
- package/dist/models/Editor.Category.Field.Mapping.js +57 -0
- package/dist/models/Editor.Container.Category.mapping.js +107 -0
- package/dist/models/Member.model.V1.js +33 -0
- package/dist/models/Member.model.js +141 -199
- package/index.ts +2 -2
- package/models/Editor.Application.model.ts +0 -41
- package/models/Editor.Category.Field.Mapping.ts +51 -0
- package/models/Editor.Container.Category.mapping.ts +107 -0
- package/models/Member.model.V1.ts +352 -0
- package/models/Member.model.ts +304 -0
- package/package.json +1 -1
- package/models/Editor.PureStatic.Category.Field.Mapping.ts +0 -35
package/dist/index.js
CHANGED
|
@@ -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,57 @@
|
|
|
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
|
+
isSystemDefined: {
|
|
41
|
+
type: Boolean,
|
|
42
|
+
default: true,
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
isSystemDefined: { type: Boolean, default: true },
|
|
47
|
+
isActive: { type: Boolean, default: true },
|
|
48
|
+
audit: [
|
|
49
|
+
{
|
|
50
|
+
userId: { type: String },
|
|
51
|
+
auditedOn: { type: Date, default: null },
|
|
52
|
+
actionType: { type: String },
|
|
53
|
+
},
|
|
54
|
+
],
|
|
55
|
+
});
|
|
56
|
+
const mongoCategoryFieldMappingSchema = mongoose_1.default.model("Editor.Category.Fields.Mapping", CategoryFieldMappingSchema);
|
|
57
|
+
exports.mongoCategoryFieldMappingSchema = mongoCategoryFieldMappingSchema;
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// import mongoose, { Document, Schema } from "mongoose";
|
|
3
|
+
// import { Audit } from "../interface/Audit.interface";
|
|
4
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.mongoEditorField = void 0;
|
|
29
|
+
// interface ContainerCategoryMapping extends Document {
|
|
30
|
+
// ContainerId: mongoose.Types.ObjectId;
|
|
31
|
+
// Categories: [
|
|
32
|
+
// {
|
|
33
|
+
// category: mongoose.Types.ObjectId;
|
|
34
|
+
// isSystemDefined: boolean;
|
|
35
|
+
// },
|
|
36
|
+
// ];
|
|
37
|
+
// isSystemDefined: boolean;
|
|
38
|
+
// isActive: boolean;
|
|
39
|
+
// audit: Audit[];
|
|
40
|
+
// }
|
|
41
|
+
// const ContainerCategoryMappingSchema = new Schema<ContainerCategoryMapping>({
|
|
42
|
+
// ContainerId: {
|
|
43
|
+
// type: Schema.Types.ObjectId,
|
|
44
|
+
// ref: "Editor.Container", // Reference to the ontainers
|
|
45
|
+
// required: false,
|
|
46
|
+
// default: null,
|
|
47
|
+
// },
|
|
48
|
+
// Categories: [
|
|
49
|
+
// {
|
|
50
|
+
// type: Schema.Types.ObjectId,
|
|
51
|
+
// ref: "Field.Categories", // Reference to the Categories
|
|
52
|
+
// required: false,
|
|
53
|
+
// default: null,
|
|
54
|
+
// },
|
|
55
|
+
// isSystemDefined: {
|
|
56
|
+
// type: Boolean, default: true
|
|
57
|
+
// }
|
|
58
|
+
// ],
|
|
59
|
+
// isSystemDefined: { type: Boolean, default: false },
|
|
60
|
+
// isActive: { type: Boolean, default: true },
|
|
61
|
+
// audit: [
|
|
62
|
+
// {
|
|
63
|
+
// userId: { type: String },
|
|
64
|
+
// auditedOn: { type: Date, default: null },
|
|
65
|
+
// actionType: { type: String },
|
|
66
|
+
// },
|
|
67
|
+
// ],
|
|
68
|
+
// });
|
|
69
|
+
// const mongoEditorField = mongoose.model<ContainerCategoryMapping>(
|
|
70
|
+
// "Editor.Container.Category.mapping",
|
|
71
|
+
// ContainerCategoryMappingSchema,
|
|
72
|
+
// );
|
|
73
|
+
// export { ContainerCategoryMapping, mongoEditorField };
|
|
74
|
+
const mongoose_1 = __importStar(require("mongoose"));
|
|
75
|
+
const ContainerCategoryMappingSchema = new mongoose_1.Schema({
|
|
76
|
+
ContainerId: {
|
|
77
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
78
|
+
ref: "Editor.Container",
|
|
79
|
+
required: false,
|
|
80
|
+
default: null,
|
|
81
|
+
},
|
|
82
|
+
Categories: [
|
|
83
|
+
{
|
|
84
|
+
category: {
|
|
85
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
86
|
+
ref: "Field.Categories",
|
|
87
|
+
required: false,
|
|
88
|
+
default: null,
|
|
89
|
+
},
|
|
90
|
+
isSystemDefined: {
|
|
91
|
+
type: Boolean,
|
|
92
|
+
default: true,
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
],
|
|
96
|
+
isSystemDefined: { type: Boolean, default: true },
|
|
97
|
+
isActive: { type: Boolean, default: true },
|
|
98
|
+
audit: [
|
|
99
|
+
{
|
|
100
|
+
userId: { type: String },
|
|
101
|
+
auditedOn: { type: Date, default: null },
|
|
102
|
+
actionType: { type: String },
|
|
103
|
+
},
|
|
104
|
+
],
|
|
105
|
+
});
|
|
106
|
+
const mongoEditorField = mongoose_1.default.model("Editor.Container.Category.mapping", ContainerCategoryMappingSchema);
|
|
107
|
+
exports.mongoEditorField = mongoEditorField;
|
|
@@ -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
|
+
});
|
|
@@ -26,226 +26,168 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
26
26
|
exports.mongoMember = void 0;
|
|
27
27
|
const mongoose_1 = __importStar(require("mongoose"));
|
|
28
28
|
mongoose_1.default.set("strictPopulate", false);
|
|
29
|
-
|
|
29
|
+
/* ------------------------------------------------ */
|
|
30
|
+
/* File Schema */
|
|
31
|
+
/* ------------------------------------------------ */
|
|
30
32
|
const fileSchema = new mongoose_1.Schema({
|
|
31
33
|
baseURL: { type: String },
|
|
32
34
|
fileName: { type: String },
|
|
33
35
|
fileExtension: { type: String },
|
|
34
36
|
});
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
37
|
+
/* ------------------------------------------------ */
|
|
38
|
+
/* Barcode Membership Schema */
|
|
39
|
+
/* ------------------------------------------------ */
|
|
40
|
+
const barcodeMembershipSchema = new mongoose_1.Schema({
|
|
41
|
+
isRegisteredMembership: { type: Boolean, required: true },
|
|
42
|
+
isMembershipRequested: { type: Boolean, default: true },
|
|
43
|
+
membershipType: {
|
|
44
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
45
|
+
ref: "Membership.Types",
|
|
46
|
+
required: true,
|
|
47
|
+
},
|
|
48
|
+
membershipStatus: {
|
|
49
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
50
|
+
ref: "Membership.Statuses",
|
|
51
|
+
required: true,
|
|
52
|
+
},
|
|
53
|
+
remarks: { type: String },
|
|
54
|
+
requestedDate: { type: Date, default: Date.now },
|
|
55
|
+
isMembershipSynced: { type: Boolean, default: false },
|
|
56
|
+
noOfSubscriptionMonths: { type: Number },
|
|
57
|
+
isIssued: { type: Boolean },
|
|
58
|
+
electedDate: { type: Date },
|
|
59
|
+
barcodeBranchMemberCode: { type: String },
|
|
60
|
+
barCode: { type: Number },
|
|
61
|
+
validFrom: { type: Date },
|
|
62
|
+
validTo: { type: Date },
|
|
63
|
+
countryCode: { type: Number },
|
|
64
|
+
changeDate: { type: Date },
|
|
65
|
+
isTerminationRequested: { type: Boolean, default: false },
|
|
66
|
+
isTerminationSynced: { type: Boolean, default: false },
|
|
67
|
+
terminationDate: { type: Date },
|
|
68
|
+
terminationReason: { type: String },
|
|
69
|
+
});
|
|
70
|
+
/* ------------------------------------------------ */
|
|
71
|
+
/* None GS1 Membership Schema */
|
|
72
|
+
/* ------------------------------------------------ */
|
|
73
|
+
const noneGs1MembershipSchema = new mongoose_1.Schema({
|
|
74
|
+
associationMemberCode: { type: String },
|
|
75
|
+
membershipStatus: {
|
|
76
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
77
|
+
ref: "Membership.Statuses",
|
|
60
78
|
},
|
|
61
|
-
|
|
62
|
-
typeOfOrganization: {
|
|
79
|
+
membershipType: {
|
|
63
80
|
type: mongoose_1.Schema.Types.ObjectId,
|
|
64
|
-
ref: "
|
|
81
|
+
ref: "Membership.Types",
|
|
65
82
|
},
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
83
|
+
isTerminated: { type: Boolean },
|
|
84
|
+
terminatedDate: { type: Date },
|
|
85
|
+
reasonForTermination: { type: String },
|
|
86
|
+
isTerminationRequested: { type: Boolean },
|
|
87
|
+
terminationRequestedDate: { type: Date },
|
|
88
|
+
terminationRequestedBy: { type: String },
|
|
89
|
+
terminationRequestRemarks: { type: String },
|
|
90
|
+
onOfSubscriptionMonths: { type: Number },
|
|
91
|
+
isMembershipSynced: { type: Boolean },
|
|
92
|
+
SyncOn: { type: Date },
|
|
93
|
+
electedDate: { type: Date },
|
|
94
|
+
});
|
|
95
|
+
/* ------------------------------------------------ */
|
|
96
|
+
/* Category Field Value */
|
|
97
|
+
/* ------------------------------------------------ */
|
|
98
|
+
const fieldValueSchema = new mongoose_1.Schema({
|
|
99
|
+
fieldId: {
|
|
100
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
101
|
+
ref: "Editor.Fields.Master",
|
|
69
102
|
},
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
103
|
+
value: { type: mongoose_1.Schema.Types.Mixed },
|
|
104
|
+
});
|
|
105
|
+
/* ------------------------------------------------ */
|
|
106
|
+
/* Category Schema */
|
|
107
|
+
/* ------------------------------------------------ */
|
|
108
|
+
const categorySchema = new mongoose_1.Schema({
|
|
109
|
+
categoryId: {
|
|
110
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
111
|
+
ref: "Field.Categories",
|
|
73
112
|
},
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
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: "" },
|
|
113
|
+
fieldValues: [fieldValueSchema],
|
|
114
|
+
});
|
|
115
|
+
/* ------------------------------------------------ */
|
|
116
|
+
/* Membership Data */
|
|
117
|
+
/* ------------------------------------------------ */
|
|
118
|
+
const membershipDataSchema = new mongoose_1.Schema({
|
|
119
|
+
fieldId: {
|
|
120
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
99
121
|
},
|
|
100
|
-
|
|
101
|
-
|
|
122
|
+
barcodeBranchMembership: [barcodeMembershipSchema],
|
|
123
|
+
noneGs1Membership: noneGs1MembershipSchema,
|
|
124
|
+
});
|
|
125
|
+
/* ------------------------------------------------ */
|
|
126
|
+
/* Approver Schema */
|
|
127
|
+
/* ------------------------------------------------ */
|
|
128
|
+
const approverSchema = new mongoose_1.Schema({
|
|
129
|
+
fieldId: { type: mongoose_1.Schema.Types.ObjectId },
|
|
130
|
+
remarks: { type: String },
|
|
131
|
+
userId: { type: String },
|
|
132
|
+
attachment: [fileSchema],
|
|
133
|
+
});
|
|
134
|
+
/* ------------------------------------------------ */
|
|
135
|
+
/* Member Association */
|
|
136
|
+
/* ------------------------------------------------ */
|
|
137
|
+
const memberAssociationSchema = new mongoose_1.Schema({
|
|
138
|
+
applicationId: {
|
|
139
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
140
|
+
},
|
|
141
|
+
branchId: {
|
|
142
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
143
|
+
ref: "Branches",
|
|
144
|
+
},
|
|
145
|
+
categoryData: [categorySchema],
|
|
146
|
+
membershipData: membershipDataSchema,
|
|
102
147
|
isCreatedInSAP: { type: Boolean, default: false },
|
|
103
148
|
isMemberSyncedWithSAP: { type: Boolean, default: false },
|
|
104
|
-
memberSyncedOn: { type: Date
|
|
105
|
-
|
|
106
|
-
|
|
149
|
+
memberSyncedOn: { type: Date },
|
|
150
|
+
dynamicDetails: { type: JSON, default: null },
|
|
151
|
+
applicationStatus: { type: String },
|
|
152
|
+
isEnrolmentCreatedInSAP: { type: Boolean, default: false },
|
|
153
|
+
isEnrolmentSyncedWithSAP: { type: Boolean, default: false },
|
|
154
|
+
enrolmentSyncedOn: { type: Date },
|
|
155
|
+
salesOrderDocEntry: { type: String },
|
|
156
|
+
salesOrderStatus: { type: String },
|
|
157
|
+
isActive: { type: Boolean, default: true },
|
|
158
|
+
createdDate: {
|
|
159
|
+
type: Date,
|
|
160
|
+
default: Date.now,
|
|
161
|
+
},
|
|
162
|
+
approverOneData: approverSchema,
|
|
163
|
+
approverTwoData: approverSchema,
|
|
164
|
+
});
|
|
165
|
+
/* ------------------------------------------------ */
|
|
166
|
+
/* Member Schema */
|
|
167
|
+
/* ------------------------------------------------ */
|
|
168
|
+
const memberSchema = new mongoose_1.Schema({
|
|
169
|
+
memberId: { type: Number },
|
|
170
|
+
memberCode: { type: String, default: "" },
|
|
171
|
+
memberName: { type: String },
|
|
172
|
+
isMemberOfMasterBranch: { type: Boolean, default: false },
|
|
173
|
+
pureStaticMemberLevelFieldValues: [
|
|
107
174
|
{
|
|
108
|
-
|
|
109
|
-
type: mongoose_1.Schema.Types.ObjectId,
|
|
110
|
-
ref: "Branches", // Reference to the 'Branches' model
|
|
111
|
-
},
|
|
112
|
-
associationMemberCode: { type: String, default: "" },
|
|
113
|
-
membershipStatus: {
|
|
175
|
+
fieldId: {
|
|
114
176
|
type: mongoose_1.Schema.Types.ObjectId,
|
|
115
|
-
ref: "
|
|
177
|
+
ref: "Editor.Fields.Master",
|
|
116
178
|
},
|
|
117
|
-
|
|
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: "" },
|
|
179
|
+
value: { type: String },
|
|
243
180
|
},
|
|
244
181
|
],
|
|
182
|
+
isCreatedInSAP: { type: Boolean, default: false },
|
|
183
|
+
isMemberSyncedWithSAP: { type: Boolean, default: false },
|
|
184
|
+
memberSyncedOn: { type: Date },
|
|
185
|
+
isActive: { type: Boolean },
|
|
186
|
+
memberAssociation: [memberAssociationSchema],
|
|
245
187
|
audit: [
|
|
246
188
|
{
|
|
247
189
|
userId: { type: String },
|
|
248
|
-
auditedOn: { type: Date
|
|
190
|
+
auditedOn: { type: Date },
|
|
249
191
|
actionType: { type: String },
|
|
250
192
|
},
|
|
251
193
|
],
|
package/index.ts
CHANGED
|
@@ -37,8 +37,8 @@ export * from "./models/Editor.FieldMaster.model";
|
|
|
37
37
|
export * from "./models/MainProductOrServices.model";
|
|
38
38
|
export * from "./models/Editor.BPCompany.Types";
|
|
39
39
|
|
|
40
|
-
export * from "./models/Editor.
|
|
41
|
-
export * from "./models/Editor.StaticVariable.Category.Field.Mapping";
|
|
40
|
+
export * from "./models/Editor.Category.Field.Mapping";
|
|
41
|
+
// export * from "./models/Editor.StaticVariable.Category.Field.Mapping";
|
|
42
42
|
|
|
43
43
|
export * from "./models/Editor.BPcompanyTpes.Branch.Field.Category.Mapping";
|
|
44
44
|
export * from "./models/Editor.SLIITO.Category.Field.Mapping";
|
|
@@ -20,48 +20,7 @@ interface IApplicationDocument extends Document {
|
|
|
20
20
|
IsMembershipRatesTableEnabled: boolean;
|
|
21
21
|
IsMembershipExtraDetailsEnabled: boolean;
|
|
22
22
|
OtherInfoEnabled: boolean;
|
|
23
|
-
|
|
24
23
|
// STATIC VARIBLE CONFIG ON BRANCH CONFIG LEVEL END HERE
|
|
25
24
|
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
|
-
};
|
|
66
25
|
audit: Audit[];
|
|
67
26
|
}
|