joye-backend-utility 8.0.4 → 8.0.5

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
@@ -56,6 +56,7 @@ class database {
56
56
  con.model('User_Analytic', schema_1.UserAnalyticSchema);
57
57
  con.model('AI_Prompts', schema_1.AIPromptsSchema);
58
58
  con.model('Page_View', schema_1.PageViewSchema);
59
+ con.model('Error_Log', schema_1.ErrorLogSchema);
59
60
  con.model('Master_Emotion_v2', schema_1.MasterEmotionsSchemaV2);
60
61
  con.model('Master_Super_Power_Data', schema_1.MasterSuperPowerDataSchema);
61
62
  con.model('Master_Super_Power_Rule', schema_1.MasterSuperPowerRuleSchema);
@@ -0,0 +1,2 @@
1
+ import { Schema } from 'mongoose';
2
+ export declare const ErrorLogSchema: Schema<import("mongoose").Document<any, any, any>, import("mongoose").Model<import("mongoose").Document<any, any, any>, any, any>, undefined, {}>;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ErrorLogSchema = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ const errorLog = new mongoose_1.Schema({
6
+ type: {
7
+ type: String,
8
+ required: true,
9
+ index: true,
10
+ },
11
+ platform: {
12
+ type: String,
13
+ required: true,
14
+ index: true,
15
+ },
16
+ details: {
17
+ type: mongoose_1.Schema.Types.Mixed,
18
+ required: true,
19
+ },
20
+ timestamp: {
21
+ type: Date,
22
+ default: Date.now,
23
+ index: true,
24
+ },
25
+ }, { collection: 'error_log' });
26
+ exports.ErrorLogSchema = errorLog;
@@ -47,6 +47,7 @@ export { AIResponsesTrackingSchema } from './ai_responses_tracking';
47
47
  export { UserAnalyticSchema } from './user_analytic';
48
48
  export { AIPromptsSchema } from './ai_prompts';
49
49
  export { PageViewSchema } from './pageView';
50
+ export { ErrorLogSchema } from './errorLog';
50
51
  export { MasterEmotionsSchemaV2 } from './masterEmotionV2';
51
52
  export { MasterSuperPowerDataSchema } from './masterSuperPowerData';
52
53
  export { MasterSuperPowerRuleSchema } from './masterSuperPowerRule';
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
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.MasterEmotionsMessageMappingSchemaV2 = exports.MasterEmotionsMessageMappingSchema = exports.MasterEmotionsSchema = exports.MasterDataSchema = exports.MasterAppSettingSchema = exports.BrewSchema = void 0;
4
- exports.UserSuperPowerDataSchema = exports.MasterSuperPowerRuleSchema = exports.MasterSuperPowerDataSchema = void 0;
3
+ exports.ErrorLogSchema = 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.MasterEmotionsMessageMappingSchemaV2 = exports.MasterEmotionsMessageMappingSchema = exports.MasterEmotionsSchema = exports.MasterDataSchema = exports.MasterAppSettingSchema = exports.BrewSchema = void 0;
4
+ exports.UserSuperPowerDataSchema = exports.MasterSuperPowerRuleSchema = exports.MasterSuperPowerDataSchema = exports.MasterEmotionsSchemaV2 = void 0;
5
5
  var brew_1 = require("./brew");
6
6
  Object.defineProperty(exports, "BrewSchema", { enumerable: true, get: function () { return brew_1.BrewSchema; } });
7
7
  var masterAppSetting_1 = require("./masterAppSetting");
@@ -100,6 +100,8 @@ var ai_prompts_1 = require("./ai_prompts");
100
100
  Object.defineProperty(exports, "AIPromptsSchema", { enumerable: true, get: function () { return ai_prompts_1.AIPromptsSchema; } });
101
101
  var pageView_1 = require("./pageView");
102
102
  Object.defineProperty(exports, "PageViewSchema", { enumerable: true, get: function () { return pageView_1.PageViewSchema; } });
103
+ var errorLog_1 = require("./errorLog");
104
+ Object.defineProperty(exports, "ErrorLogSchema", { enumerable: true, get: function () { return errorLog_1.ErrorLogSchema; } });
103
105
  var masterEmotionV2_1 = require("./masterEmotionV2");
104
106
  Object.defineProperty(exports, "MasterEmotionsSchemaV2", { enumerable: true, get: function () { return masterEmotionV2_1.MasterEmotionsSchemaV2; } });
105
107
  var masterSuperPowerData_1 = require("./masterSuperPowerData");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "joye-backend-utility",
3
- "version": "8.0.4",
3
+ "version": "8.0.5",
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",