joye-backend-utility 6.0.4 → 7.0.0

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 CHANGED
@@ -55,6 +55,7 @@ class database {
55
55
  con.model('User_Analytic', schema_1.UserAnalyticSchema);
56
56
  con.model('AI_Prompts', schema_1.AIPromptsSchema);
57
57
  con.model('Page_View', schema_1.PageViewSchema);
58
+ con.model('Master_Emotion_v2', schema_1.MasterEmotionsSchemaV2);
58
59
  };
59
60
  this.connectToDatabase = () => {
60
61
  const env = config_1.NODE_ENV || 'development';
@@ -46,3 +46,4 @@ export { AIResponsesTrackingSchema } from './ai_responses_tracking';
46
46
  export { UserAnalyticSchema } from './user_analytic';
47
47
  export { AIPromptsSchema } from './ai_prompts';
48
48
  export { PageViewSchema } from './pageView';
49
+ export { MasterEmotionsSchemaV2 } from './masterEmotionV2';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PageViewSchema = exports.AIPromptsSchema = exports.UserAnalyticSchema = exports.AIResponsesTrackingSchema = exports.UserProfileSchema = exports.UserChatSessionSchema = exports.FeatureFeedbackSchema = exports.UserWeekActivitySchema = exports.UserTrainingRemindersSchema = exports.UserTrainingDailyDataSchema = exports.MasterTrainingDaysSchema = 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.MasterEmotionsSchemaV2 = exports.PageViewSchema = exports.AIPromptsSchema = exports.UserAnalyticSchema = exports.AIResponsesTrackingSchema = exports.UserProfileSchema = exports.UserChatSessionSchema = exports.FeatureFeedbackSchema = exports.UserWeekActivitySchema = exports.UserTrainingRemindersSchema = exports.UserTrainingDailyDataSchema = exports.MasterTrainingDaysSchema = 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");
@@ -97,3 +97,5 @@ var ai_prompts_1 = require("./ai_prompts");
97
97
  Object.defineProperty(exports, "AIPromptsSchema", { enumerable: true, get: function () { return ai_prompts_1.AIPromptsSchema; } });
98
98
  var pageView_1 = require("./pageView");
99
99
  Object.defineProperty(exports, "PageViewSchema", { enumerable: true, get: function () { return pageView_1.PageViewSchema; } });
100
+ var masterEmotionV2_1 = require("./masterEmotionV2");
101
+ Object.defineProperty(exports, "MasterEmotionsSchemaV2", { enumerable: true, get: function () { return masterEmotionV2_1.MasterEmotionsSchemaV2; } });
@@ -0,0 +1,2 @@
1
+ import { Schema } from 'mongoose';
2
+ export declare const MasterEmotionsSchemaV2: Schema<import("mongoose").Document<any, any, any>, import("mongoose").Model<import("mongoose").Document<any, any, any>, any, any>, undefined, {}>;
@@ -0,0 +1,166 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MasterEmotionsSchemaV2 = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ const MasterEmotions = new mongoose_1.Schema({
6
+ key: {
7
+ type: String,
8
+ required: true,
9
+ index: true,
10
+ },
11
+ name: {
12
+ type: String,
13
+ required: true,
14
+ },
15
+ emotionCategory: {
16
+ type: String,
17
+ required: true,
18
+ },
19
+ sequence: {
20
+ type: Number,
21
+ required: true,
22
+ },
23
+ type: {
24
+ type: String,
25
+ required: true,
26
+ },
27
+ weight: {
28
+ type: String,
29
+ required: true,
30
+ },
31
+ color: {
32
+ type: String,
33
+ required: false,
34
+ },
35
+ sColor: {
36
+ type: String,
37
+ required: false,
38
+ },
39
+ cColor: {
40
+ type: String,
41
+ required: false,
42
+ },
43
+ startColor: {
44
+ type: String,
45
+ required: false,
46
+ },
47
+ stopColor: {
48
+ type: String,
49
+ required: false,
50
+ },
51
+ active: {
52
+ type: Boolean,
53
+ required: false,
54
+ },
55
+ value: {
56
+ type: Number,
57
+ required: false,
58
+ },
59
+ pieValue: {
60
+ type: Number,
61
+ required: false,
62
+ },
63
+ questions: { type: Array, required: false },
64
+ cardQuestions: { type: Array, required: false },
65
+ suggestionData: {
66
+ type: Object,
67
+ pie: {
68
+ type: Array,
69
+ },
70
+ prePieMessage: {
71
+ type: Array,
72
+ },
73
+ pieTitle: {
74
+ type: Array,
75
+ },
76
+ dos: {
77
+ type: Array,
78
+ },
79
+ donts: {
80
+ type: Array,
81
+ },
82
+ hg: {
83
+ type: Array,
84
+ },
85
+ required: false,
86
+ },
87
+ appreciationData: {
88
+ type: Object,
89
+ pie: {
90
+ type: Array,
91
+ },
92
+ prePieMessage: {
93
+ type: Array,
94
+ },
95
+ pieTitle: {
96
+ type: Array,
97
+ },
98
+ dos: {
99
+ type: Array,
100
+ },
101
+ donts: {
102
+ type: Array,
103
+ },
104
+ hg: {
105
+ type: Array,
106
+ },
107
+ required: false,
108
+ },
109
+ mayBeData: {
110
+ type: Object,
111
+ pie: {
112
+ type: Array,
113
+ },
114
+ prePieMessage: {
115
+ type: Array,
116
+ },
117
+ pieTitle: {
118
+ type: Array,
119
+ },
120
+ dos: {
121
+ type: Array,
122
+ },
123
+ donts: {
124
+ type: Array,
125
+ },
126
+ hg: {
127
+ type: Array,
128
+ },
129
+ required: false,
130
+ },
131
+ voice: {
132
+ type: Object,
133
+ suggestionData: {
134
+ type: Object,
135
+ pie: {
136
+ type: Array,
137
+ },
138
+ prePieMessage: {
139
+ type: Array,
140
+ },
141
+ },
142
+ appreciationData: {
143
+ type: Object,
144
+ pie: {
145
+ type: Array,
146
+ },
147
+ prePieMessage: {
148
+ type: Array,
149
+ },
150
+ required: false,
151
+ },
152
+ },
153
+ pie: { type: Array, required: false },
154
+ dailyChart: { type: Array, required: false },
155
+ prePieMessage: { type: Array, required: false },
156
+ suggestionEmotionColor: {
157
+ type: String,
158
+ required: false,
159
+ },
160
+ appreciationEmotionColor: {
161
+ type: String,
162
+ required: false,
163
+ },
164
+ podcasts: { type: Array, required: false },
165
+ });
166
+ exports.MasterEmotionsSchemaV2 = MasterEmotions;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "joye-backend-utility",
3
- "version": "6.0.4",
3
+ "version": "7.0.0",
4
4
  "description": "Joye backend utility for db functions and common functions",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",