joye-backend-utility 5.0.48 → 5.0.50
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/database.js +1 -0
- package/dist/schema/index.d.ts +1 -0
- package/dist/schema/index.js +3 -1
- package/dist/schema/masterSuggestionsMessage.model.js +8 -0
- package/dist/schema/userGoal.js +9 -1
- package/dist/schema/userJoyLevelQa.d.ts +2 -0
- package/dist/schema/userJoyLevelQa.js +38 -0
- package/package.json +1 -1
package/dist/database.js
CHANGED
|
@@ -39,6 +39,7 @@ class database {
|
|
|
39
39
|
con.model('Timezone', schema_1.TimezoneSchema);
|
|
40
40
|
con.model('Organization_User_Attr_Permission', schema_1.OrganizationUserAttrPermissionSchema);
|
|
41
41
|
con.model('User_Goal', schema_1.userGoalSchema);
|
|
42
|
+
con.model('User_Joy_Level_Qa', schema_1.userJoyLevelQaSchema);
|
|
42
43
|
};
|
|
43
44
|
this.connectToDatabase = () => {
|
|
44
45
|
const env = config_1.NODE_ENV || 'development';
|
package/dist/schema/index.d.ts
CHANGED
|
@@ -30,3 +30,4 @@ export { UserVideoSchema } from '../schema/userVideo';
|
|
|
30
30
|
export { TimezoneSchema } from './timezones';
|
|
31
31
|
export { OrganizationUserAttrPermissionSchema } from './organizationUserAttrPermission';
|
|
32
32
|
export { userGoalSchema } from './userGoal';
|
|
33
|
+
export { userJoyLevelQaSchema } from './userJoyLevelQa';
|
package/dist/schema/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.userGoalSchema = exports.OrganizationUserAttrPermissionSchema = exports.TimezoneSchema = exports.UserVideoSchema = exports.UserFeedbackSchema = exports.UserReminderSchema = exports.MasterLinkCardSchema = exports.UserRecommendationSchema = exports.MasterSuggestionsParameterSchema = exports.MasterSuggestionsMessageSchema = exports.MasterBlessingsDataSchema = exports.MasterVideoSchema = exports.DatabaseInfoSchema = exports.UserSchema = exports.UserMessageLogSchema = exports.UserMessageSchema = exports.UserMeetingSchema = exports.UserLogSchema = exports.PlatformSchema = exports.OrganizationSchema = exports.MasterThemeMessageSchema = exports.MasterThemeDataSchema = exports.MasterPredictionEmotionsMessageMappingSchema = exports.MasterPredictionEmotionMessageSchema = exports.MasterPredictionEmotionSchema = exports.MasterPodcastSchema = exports.MasterEmotionMessageTypeThemeMappingSchema = exports.MasterEmotionsMessageMappingSchema = exports.MasterEmotionsSchema = exports.MasterDataSchema = exports.MasterAppSettingSchema = exports.BrewSchema = void 0;
|
|
3
|
+
exports.userJoyLevelQaSchema = exports.userGoalSchema = exports.OrganizationUserAttrPermissionSchema = exports.TimezoneSchema = exports.UserVideoSchema = exports.UserFeedbackSchema = exports.UserReminderSchema = exports.MasterLinkCardSchema = exports.UserRecommendationSchema = exports.MasterSuggestionsParameterSchema = exports.MasterSuggestionsMessageSchema = exports.MasterBlessingsDataSchema = exports.MasterVideoSchema = exports.DatabaseInfoSchema = exports.UserSchema = exports.UserMessageLogSchema = exports.UserMessageSchema = exports.UserMeetingSchema = exports.UserLogSchema = exports.PlatformSchema = exports.OrganizationSchema = exports.MasterThemeMessageSchema = exports.MasterThemeDataSchema = exports.MasterPredictionEmotionsMessageMappingSchema = exports.MasterPredictionEmotionMessageSchema = exports.MasterPredictionEmotionSchema = exports.MasterPodcastSchema = exports.MasterEmotionMessageTypeThemeMappingSchema = exports.MasterEmotionsMessageMappingSchema = exports.MasterEmotionsSchema = exports.MasterDataSchema = exports.MasterAppSettingSchema = exports.BrewSchema = void 0;
|
|
4
4
|
var brew_1 = require("./brew");
|
|
5
5
|
Object.defineProperty(exports, "BrewSchema", { enumerable: true, get: function () { return brew_1.BrewSchema; } });
|
|
6
6
|
var masterAppSetting_1 = require("./masterAppSetting");
|
|
@@ -65,3 +65,5 @@ var organizationUserAttrPermission_1 = require("./organizationUserAttrPermission
|
|
|
65
65
|
Object.defineProperty(exports, "OrganizationUserAttrPermissionSchema", { enumerable: true, get: function () { return organizationUserAttrPermission_1.OrganizationUserAttrPermissionSchema; } });
|
|
66
66
|
var userGoal_1 = require("./userGoal");
|
|
67
67
|
Object.defineProperty(exports, "userGoalSchema", { enumerable: true, get: function () { return userGoal_1.userGoalSchema; } });
|
|
68
|
+
var userJoyLevelQa_1 = require("./userJoyLevelQa");
|
|
69
|
+
Object.defineProperty(exports, "userJoyLevelQaSchema", { enumerable: true, get: function () { return userJoyLevelQa_1.userJoyLevelQaSchema; } });
|
|
@@ -19,5 +19,13 @@ const MasterSuggestionsMessage = new mongoose_1.Schema({
|
|
|
19
19
|
type: Array,
|
|
20
20
|
required: false,
|
|
21
21
|
},
|
|
22
|
+
weekSuggestions: {
|
|
23
|
+
type: Array,
|
|
24
|
+
required: false,
|
|
25
|
+
},
|
|
26
|
+
weekendSuggestions: {
|
|
27
|
+
type: Array,
|
|
28
|
+
required: false,
|
|
29
|
+
},
|
|
22
30
|
});
|
|
23
31
|
exports.MasterSuggestionsMessageSchema = MasterSuggestionsMessage;
|
package/dist/schema/userGoal.js
CHANGED
|
@@ -16,13 +16,21 @@ const userGoal = new mongoose_1.Schema({
|
|
|
16
16
|
required: true,
|
|
17
17
|
},
|
|
18
18
|
goal: {
|
|
19
|
-
type:
|
|
19
|
+
type: Array,
|
|
20
20
|
required: true,
|
|
21
21
|
},
|
|
22
22
|
status: {
|
|
23
23
|
type: String,
|
|
24
24
|
required: true,
|
|
25
25
|
},
|
|
26
|
+
weekMessages: {
|
|
27
|
+
type: String,
|
|
28
|
+
required: false,
|
|
29
|
+
},
|
|
30
|
+
weekendMessages: {
|
|
31
|
+
type: String,
|
|
32
|
+
required: false,
|
|
33
|
+
},
|
|
26
34
|
weekNumber: {
|
|
27
35
|
type: Number,
|
|
28
36
|
required: true,
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.userJoyLevelQaSchema = void 0;
|
|
4
|
+
const mongoose_1 = require("mongoose");
|
|
5
|
+
const userJoyLevelQa = new mongoose_1.Schema({
|
|
6
|
+
employeeId: {
|
|
7
|
+
type: String,
|
|
8
|
+
required: true,
|
|
9
|
+
},
|
|
10
|
+
masterEmotionKey: {
|
|
11
|
+
type: String,
|
|
12
|
+
required: true,
|
|
13
|
+
},
|
|
14
|
+
question: {
|
|
15
|
+
type: String,
|
|
16
|
+
required: true,
|
|
17
|
+
},
|
|
18
|
+
yes: {
|
|
19
|
+
type: Number,
|
|
20
|
+
required: false,
|
|
21
|
+
},
|
|
22
|
+
no: {
|
|
23
|
+
type: Number,
|
|
24
|
+
required: false,
|
|
25
|
+
},
|
|
26
|
+
maybe: {
|
|
27
|
+
type: Number,
|
|
28
|
+
required: false,
|
|
29
|
+
},
|
|
30
|
+
time: {
|
|
31
|
+
type: Number,
|
|
32
|
+
required: true,
|
|
33
|
+
},
|
|
34
|
+
});
|
|
35
|
+
userJoyLevelQa.index({ employeeId: 1 }, {
|
|
36
|
+
unique: false,
|
|
37
|
+
});
|
|
38
|
+
exports.userJoyLevelQaSchema = userJoyLevelQa;
|