joye-backend-utility 8.1.6 → 8.1.8
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.
|
@@ -28,6 +28,18 @@ const MasterSuperPowerData = new mongoose_1.Schema({
|
|
|
28
28
|
type: String,
|
|
29
29
|
required: true,
|
|
30
30
|
},
|
|
31
|
+
oddMonth: {
|
|
32
|
+
type: [String],
|
|
33
|
+
required: false,
|
|
34
|
+
},
|
|
35
|
+
evenMonth: {
|
|
36
|
+
type: [String],
|
|
37
|
+
required: false,
|
|
38
|
+
},
|
|
39
|
+
weightage: {
|
|
40
|
+
type: String,
|
|
41
|
+
required: false,
|
|
42
|
+
},
|
|
31
43
|
});
|
|
32
44
|
MasterSuperPowerData.index({ key: 1, order: 1 });
|
|
33
45
|
exports.MasterSuperPowerDataSchema = MasterSuperPowerData;
|
|
@@ -44,6 +44,10 @@ const MasterSuperPowerRule = new mongoose_1.Schema({
|
|
|
44
44
|
type: [String],
|
|
45
45
|
required: false,
|
|
46
46
|
},
|
|
47
|
+
feature: {
|
|
48
|
+
type: String,
|
|
49
|
+
required: false,
|
|
50
|
+
},
|
|
47
51
|
});
|
|
48
52
|
MasterSuperPowerRule.index({ dimensionKey: 1, rule: 1 });
|
|
49
53
|
exports.MasterSuperPowerRuleSchema = MasterSuperPowerRule;
|
|
@@ -31,6 +31,10 @@ const MasterTrainingDays = new mongoose_1.Schema({
|
|
|
31
31
|
required: false,
|
|
32
32
|
default: '',
|
|
33
33
|
},
|
|
34
|
+
write: {
|
|
35
|
+
type: String,
|
|
36
|
+
required: false,
|
|
37
|
+
},
|
|
34
38
|
});
|
|
35
39
|
MasterTrainingDays.index({ trainingKey: 1, day: 1 });
|
|
36
40
|
exports.MasterTrainingDaysSchema = MasterTrainingDays;
|
|
@@ -35,6 +35,11 @@ const UserSuperPowerData = new mongoose_1.Schema({
|
|
|
35
35
|
required: true,
|
|
36
36
|
index: true,
|
|
37
37
|
},
|
|
38
|
+
feature: {
|
|
39
|
+
type: String,
|
|
40
|
+
default: null,
|
|
41
|
+
index: true,
|
|
42
|
+
},
|
|
38
43
|
resilienceIndex: {
|
|
39
44
|
type: Number,
|
|
40
45
|
required: true,
|
|
@@ -106,13 +111,19 @@ const UserSuperPowerData = new mongoose_1.Schema({
|
|
|
106
111
|
type: mongoose_1.Schema.Types.Mixed,
|
|
107
112
|
default: null,
|
|
108
113
|
},
|
|
114
|
+
feature: {
|
|
115
|
+
type: String,
|
|
116
|
+
default: null,
|
|
117
|
+
},
|
|
109
118
|
},
|
|
110
119
|
required: false,
|
|
111
120
|
default: () => ({
|
|
112
121
|
inputPayload: null,
|
|
122
|
+
feature: null,
|
|
113
123
|
}),
|
|
114
124
|
},
|
|
115
125
|
});
|
|
116
126
|
UserSuperPowerData.index({ employeeId: 1, dimensionKey: 1 });
|
|
127
|
+
UserSuperPowerData.index({ employeeId: 1, year: 1, month: 1, feature: 1 });
|
|
117
128
|
UserSuperPowerData.index({ date: -1 });
|
|
118
129
|
exports.UserSuperPowerDataSchema = UserSuperPowerData;
|