joye-backend-utility 5.1.24 → 5.1.26
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 +2 -0
- package/dist/schema/featureFeedback.js +0 -1
- package/dist/schema/index.d.ts +2 -0
- package/dist/schema/index.js +5 -1
- package/dist/schema/userChatSession.d.ts +2 -0
- package/dist/schema/userChatSession.js +40 -0
- package/dist/schema/userProfile.d.ts +2 -0
- package/dist/schema/userProfile.js +71 -0
- package/package.json +1 -1
package/dist/database.js
CHANGED
|
@@ -46,6 +46,8 @@ class database {
|
|
|
46
46
|
con.model('Master_Training_Week', schema_1.MasterTrainingWeekSchema);
|
|
47
47
|
con.model('User_Week_Activity', schema_1.UserWeekActivitySchema);
|
|
48
48
|
con.model('Feature_Feedback', schema_1.FeatureFeedbackSchema);
|
|
49
|
+
con.model('User_Chat_session', schema_1.UserChatSessionSchema);
|
|
50
|
+
con.model('User_Profile', schema_1.UserProfileSchema);
|
|
49
51
|
};
|
|
50
52
|
this.connectToDatabase = () => {
|
|
51
53
|
const env = config_1.NODE_ENV || 'development';
|
package/dist/schema/index.d.ts
CHANGED
|
@@ -37,3 +37,5 @@ export { UserTrainingDataSchema } from './userTrainingData';
|
|
|
37
37
|
export { UserTrainingWeekDataSchema } from './userTrainingWeekData';
|
|
38
38
|
export { UserWeekActivitySchema } from './userWeekActivity';
|
|
39
39
|
export { FeatureFeedbackSchema } from './featureFeedback';
|
|
40
|
+
export { UserChatSessionSchema } from './userChatSession';
|
|
41
|
+
export { UserProfileSchema } from './userProfile';
|
package/dist/schema/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FeatureFeedbackSchema = exports.UserWeekActivitySchema = exports.UserTrainingWeekDataSchema = exports.UserTrainingDataSchema = exports.MasterTrainingWeekSchema = exports.MasterTrainingSchema = 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;
|
|
3
|
+
exports.UserProfileSchema = exports.UserChatSessionSchema = exports.FeatureFeedbackSchema = exports.UserWeekActivitySchema = exports.UserTrainingWeekDataSchema = exports.UserTrainingDataSchema = exports.MasterTrainingWeekSchema = exports.MasterTrainingSchema = 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");
|
|
@@ -79,3 +79,7 @@ var userWeekActivity_1 = require("./userWeekActivity");
|
|
|
79
79
|
Object.defineProperty(exports, "UserWeekActivitySchema", { enumerable: true, get: function () { return userWeekActivity_1.UserWeekActivitySchema; } });
|
|
80
80
|
var featureFeedback_1 = require("./featureFeedback");
|
|
81
81
|
Object.defineProperty(exports, "FeatureFeedbackSchema", { enumerable: true, get: function () { return featureFeedback_1.FeatureFeedbackSchema; } });
|
|
82
|
+
var userChatSession_1 = require("./userChatSession");
|
|
83
|
+
Object.defineProperty(exports, "UserChatSessionSchema", { enumerable: true, get: function () { return userChatSession_1.UserChatSessionSchema; } });
|
|
84
|
+
var userProfile_1 = require("./userProfile");
|
|
85
|
+
Object.defineProperty(exports, "UserProfileSchema", { enumerable: true, get: function () { return userProfile_1.UserProfileSchema; } });
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserChatSessionSchema = void 0;
|
|
4
|
+
const mongoose_1 = require("mongoose");
|
|
5
|
+
const UserChatSession = new mongoose_1.Schema({
|
|
6
|
+
employeeId: {
|
|
7
|
+
type: String,
|
|
8
|
+
required: true,
|
|
9
|
+
index: true,
|
|
10
|
+
},
|
|
11
|
+
date: {
|
|
12
|
+
type: String,
|
|
13
|
+
required: true,
|
|
14
|
+
},
|
|
15
|
+
type: {
|
|
16
|
+
type: String,
|
|
17
|
+
required: true,
|
|
18
|
+
},
|
|
19
|
+
sessionName: {
|
|
20
|
+
type: String,
|
|
21
|
+
required: true,
|
|
22
|
+
index: true,
|
|
23
|
+
},
|
|
24
|
+
startTime: {
|
|
25
|
+
type: String,
|
|
26
|
+
required: false,
|
|
27
|
+
},
|
|
28
|
+
endTime: {
|
|
29
|
+
type: String,
|
|
30
|
+
required: false,
|
|
31
|
+
},
|
|
32
|
+
updatedAt: {
|
|
33
|
+
type: Number,
|
|
34
|
+
required: false,
|
|
35
|
+
},
|
|
36
|
+
});
|
|
37
|
+
UserChatSession.index({ employeeId: 1, date: -1 }, {
|
|
38
|
+
unique: false,
|
|
39
|
+
});
|
|
40
|
+
exports.UserChatSessionSchema = UserChatSession;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserProfileSchema = void 0;
|
|
4
|
+
const mongoose_1 = require("mongoose");
|
|
5
|
+
const UserProfile = new mongoose_1.Schema({
|
|
6
|
+
employeeId: {
|
|
7
|
+
type: String,
|
|
8
|
+
required: true,
|
|
9
|
+
index: true,
|
|
10
|
+
},
|
|
11
|
+
date: {
|
|
12
|
+
type: String,
|
|
13
|
+
required: true,
|
|
14
|
+
index: true,
|
|
15
|
+
},
|
|
16
|
+
type: {
|
|
17
|
+
type: String,
|
|
18
|
+
required: true,
|
|
19
|
+
},
|
|
20
|
+
creationTimestamp: {
|
|
21
|
+
type: Number,
|
|
22
|
+
required: true,
|
|
23
|
+
},
|
|
24
|
+
coachingStyle: {
|
|
25
|
+
type: String,
|
|
26
|
+
required: false,
|
|
27
|
+
},
|
|
28
|
+
communicationStyle: {
|
|
29
|
+
type: String,
|
|
30
|
+
required: false,
|
|
31
|
+
},
|
|
32
|
+
actionPreference: {
|
|
33
|
+
type: String,
|
|
34
|
+
required: false,
|
|
35
|
+
},
|
|
36
|
+
mainChallenges: {
|
|
37
|
+
type: String,
|
|
38
|
+
required: false,
|
|
39
|
+
},
|
|
40
|
+
successMethods: {
|
|
41
|
+
type: String,
|
|
42
|
+
required: false,
|
|
43
|
+
},
|
|
44
|
+
lifeContext: {
|
|
45
|
+
type: String,
|
|
46
|
+
required: false,
|
|
47
|
+
},
|
|
48
|
+
setbackResponse: {
|
|
49
|
+
type: String,
|
|
50
|
+
required: false,
|
|
51
|
+
},
|
|
52
|
+
experienceLevel: {
|
|
53
|
+
type: String,
|
|
54
|
+
required: false,
|
|
55
|
+
},
|
|
56
|
+
hobbies: {
|
|
57
|
+
type: String,
|
|
58
|
+
required: false,
|
|
59
|
+
},
|
|
60
|
+
updatedAt: {
|
|
61
|
+
type: Number,
|
|
62
|
+
required: false,
|
|
63
|
+
},
|
|
64
|
+
});
|
|
65
|
+
UserProfile.index({ employeeId: 1, date: -1 }, {
|
|
66
|
+
unique: false,
|
|
67
|
+
});
|
|
68
|
+
UserProfile.index({ employeeId: 1, date: -1, type: -1 }, {
|
|
69
|
+
unique: false,
|
|
70
|
+
});
|
|
71
|
+
exports.UserProfileSchema = UserProfile;
|