joye-backend-utility 3.0.21 → 4.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.
Files changed (89) hide show
  1. package/dist/config/index.d.ts +1 -1
  2. package/dist/config/index.js +2 -2
  3. package/dist/database.d.ts +21 -8
  4. package/dist/database.js +82 -23
  5. package/dist/index.d.ts +0 -1
  6. package/dist/index.js +2 -20
  7. package/dist/models/brew.model.d.ts +2 -2
  8. package/dist/models/brew.model.js +9 -6
  9. package/dist/models/databaseInfo.model.d.ts +2 -0
  10. package/dist/models/databaseInfo.model.js +24 -0
  11. package/dist/models/index.d.ts +11 -10
  12. package/dist/models/index.js +23 -21
  13. package/dist/models/masterAppSetting.model.d.ts +2 -2
  14. package/dist/models/masterAppSetting.model.js +1 -1
  15. package/dist/models/masterData.model.d.ts +2 -2
  16. package/dist/models/masterData.model.js +1 -1
  17. package/dist/models/masterEmotion.model.d.ts +2 -2
  18. package/dist/models/masterEmotion.model.js +1 -1
  19. package/dist/models/masterEmotionMessageMapping.model.d.ts +2 -2
  20. package/dist/models/masterEmotionMessageMapping.model.js +1 -1
  21. package/dist/models/masterEmotionMessageTypeThemeMapping.model.d.ts +2 -2
  22. package/dist/models/masterEmotionMessageTypeThemeMapping.model.js +1 -1
  23. package/dist/models/masterPodcast.model.d.ts +2 -2
  24. package/dist/models/masterPodcast.model.js +1 -1
  25. package/dist/models/masterPredictionEmotion .model.d.ts +2 -2
  26. package/dist/models/masterPredictionEmotion .model.js +1 -1
  27. package/dist/models/masterPredictionEmotionMessage.model.d.ts +2 -2
  28. package/dist/models/masterPredictionEmotionMessage.model.js +1 -1
  29. package/dist/models/masterPredictionEmotionMessageMapping.model.d.ts +2 -2
  30. package/dist/models/masterPredictionEmotionMessageMapping.model.js +1 -1
  31. package/dist/models/masterThemeData.model.d.ts +2 -2
  32. package/dist/models/masterThemeData.model.js +1 -1
  33. package/dist/models/masterThemeMessage.model.d.ts +2 -2
  34. package/dist/models/masterThemeMessage.model.js +1 -1
  35. package/dist/models/organization.model.d.ts +2 -2
  36. package/dist/models/organization.model.js +3 -3
  37. package/dist/models/user.model.d.ts +2 -2
  38. package/dist/models/user.model.js +3 -3
  39. package/dist/models/userLog.model.d.ts +2 -2
  40. package/dist/models/userLog.model.js +9 -6
  41. package/dist/models/userMeeting.model.d.ts +2 -2
  42. package/dist/models/userMeeting.model.js +9 -6
  43. package/dist/models/userMessages.model.d.ts +2 -2
  44. package/dist/models/userMessages.model.js +1 -1
  45. package/dist/models/userMessagesLog.model.d.ts +2 -2
  46. package/dist/models/userMessagesLog.model.js +3 -3
  47. package/dist/schema/brew.d.ts +2 -0
  48. package/dist/schema/brew.js +120 -0
  49. package/dist/schema/databaseInfo.d.ts +2 -0
  50. package/dist/schema/databaseInfo.js +24 -0
  51. package/dist/schema/index.d.ts +20 -0
  52. package/dist/schema/index.js +43 -0
  53. package/dist/schema/masterAppSetting.d.ts +2 -0
  54. package/dist/schema/masterAppSetting.js +24 -0
  55. package/dist/schema/masterData.d.ts +2 -0
  56. package/dist/schema/masterData.js +28 -0
  57. package/dist/schema/masterEmotion.d.ts +2 -0
  58. package/dist/schema/masterEmotion.js +114 -0
  59. package/dist/schema/masterEmotionMessageMapping.d.ts +2 -0
  60. package/dist/schema/masterEmotionMessageMapping.js +16 -0
  61. package/dist/schema/masterEmotionMessageTypeThemeMapping.d.ts +2 -0
  62. package/dist/schema/masterEmotionMessageTypeThemeMapping.js +23 -0
  63. package/dist/schema/masterPodcast.d.ts +2 -0
  64. package/dist/schema/masterPodcast.js +33 -0
  65. package/dist/schema/masterPredictionEmotion.d.ts +2 -0
  66. package/dist/schema/masterPredictionEmotion.js +27 -0
  67. package/dist/schema/masterPredictionEmotionMessage.d.ts +2 -0
  68. package/dist/schema/masterPredictionEmotionMessage.js +26 -0
  69. package/dist/schema/masterPredictionEmotionMessageMapping.d.ts +2 -0
  70. package/dist/schema/masterPredictionEmotionMessageMapping.js +16 -0
  71. package/dist/schema/masterThemeData.d.ts +2 -0
  72. package/dist/schema/masterThemeData.js +36 -0
  73. package/dist/schema/masterThemeMessage.d.ts +2 -0
  74. package/dist/schema/masterThemeMessage.js +13 -0
  75. package/dist/schema/organization.d.ts +2 -0
  76. package/dist/schema/organization.js +48 -0
  77. package/dist/schema/platform.d.ts +2 -0
  78. package/dist/schema/platform.js +24 -0
  79. package/dist/schema/user.d.ts +2 -0
  80. package/dist/schema/user.js +134 -0
  81. package/dist/schema/userLog.d.ts +2 -0
  82. package/dist/schema/userLog.js +22 -0
  83. package/dist/schema/userMeeting.d.ts +2 -0
  84. package/dist/schema/userMeeting.js +22 -0
  85. package/dist/schema/userMessages.d.ts +2 -0
  86. package/dist/schema/userMessages.js +24 -0
  87. package/dist/schema/userMessagesLog.d.ts +2 -0
  88. package/dist/schema/userMessagesLog.js +50 -0
  89. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
- /// <reference types="mongoose" />
2
- export declare const UserMeetingModel: import("mongoose").Model<import("mongoose").Document<any, any, any>, any, any>;
1
+ import { Schema } from 'mongoose';
2
+ export declare const UserMeetingModel: Schema<import("mongoose").Document<any, any, any>, import("mongoose").Model<import("mongoose").Document<any, any, any>, any, any>, undefined, {}>;
@@ -16,9 +16,12 @@ const UserMeetingSchema = new mongoose_1.Schema({
16
16
  required: false,
17
17
  },
18
18
  });
19
- UserMeetingSchema.index({ employeeId: 1, date: -1 }, {
20
- unique: true,
21
- });
22
- const userMeetingModel = (0, mongoose_1.model)('User_Meeting', UserMeetingSchema);
23
- userMeetingModel.syncIndexes();
24
- exports.UserMeetingModel = userMeetingModel;
19
+ // UserMeetingSchema.index(
20
+ // { employeeId: 1, date: -1 },
21
+ // {
22
+ // unique: true,
23
+ // },
24
+ // );
25
+ // const userMeetingModel = model('User_Meeting', UserMeetingSchema);
26
+ // userMeetingModel.syncIndexes();
27
+ exports.UserMeetingModel = UserMeetingSchema;
@@ -1,2 +1,2 @@
1
- /// <reference types="mongoose" />
2
- export declare const UserMessageModel: import("mongoose").Model<import("mongoose").Document<any, any, any>, any, any>;
1
+ import { Schema } from 'mongoose';
2
+ export declare const UserMessageModel: Schema<import("mongoose").Document<any, any, any>, import("mongoose").Model<import("mongoose").Document<any, any, any>, any, any>, undefined, {}>;
@@ -21,4 +21,4 @@ const UserMessageSchema = new mongoose_1.Schema({
21
21
  type: Boolean,
22
22
  },
23
23
  });
24
- exports.UserMessageModel = (0, mongoose_1.model)('User_Message', UserMessageSchema);
24
+ exports.UserMessageModel = UserMessageSchema;
@@ -1,2 +1,2 @@
1
- /// <reference types="mongoose" />
2
- export declare const UserMessageLogModel: import("mongoose").Model<import("mongoose").Document<any, any, any>, any, any>;
1
+ import { Schema } from 'mongoose';
2
+ export declare const UserMessageLogModel: Schema<import("mongoose").Document<any, any, any>, import("mongoose").Model<import("mongoose").Document<any, any, any>, any, any>, undefined, {}>;
@@ -47,6 +47,6 @@ const UserMessageLogSchema = new mongoose_1.Schema({
47
47
  },
48
48
  });
49
49
  // UserMessageLogSchema.index({ employeeId: 1, activityId: -1 });
50
- const userMessageLogModel = (0, mongoose_1.model)('User_Message_Log', UserMessageLogSchema);
51
- // userMessageLogModel.syncIndexes();
52
- exports.UserMessageLogModel = userMessageLogModel;
50
+ // const userMessageLogModel = model('User_Message_Log', UserMessageLogSchema);
51
+ // // userMessageLogModel.syncIndexes();
52
+ exports.UserMessageLogModel = UserMessageLogSchema;
@@ -0,0 +1,2 @@
1
+ import { Schema } from 'mongoose';
2
+ export declare const BrewSchema: Schema<import("mongoose").Document<any, any, any>, import("mongoose").Model<import("mongoose").Document<any, any, any>, any, any>, undefined, {}>;
@@ -0,0 +1,120 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BrewSchema = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ const Brew = new mongoose_1.Schema({
6
+ userId: {
7
+ type: mongoose_1.Types.ObjectId,
8
+ required: true,
9
+ },
10
+ date: {
11
+ type: String,
12
+ required: true,
13
+ },
14
+ emotionData: {
15
+ type: Object,
16
+ required: false,
17
+ },
18
+ pieData: {
19
+ type: Object,
20
+ required: false,
21
+ },
22
+ total: {
23
+ type: Number,
24
+ required: false,
25
+ },
26
+ dayTotal: {
27
+ type: Number,
28
+ required: false,
29
+ },
30
+ average: {
31
+ type: Number,
32
+ required: false,
33
+ },
34
+ dominanteMotion: {
35
+ type: String,
36
+ required: false,
37
+ },
38
+ type: {
39
+ type: String,
40
+ required: false,
41
+ },
42
+ theme: {
43
+ type: Number,
44
+ required: false,
45
+ },
46
+ isSkip: {
47
+ type: Boolean,
48
+ required: false,
49
+ },
50
+ journalText: {
51
+ type: String,
52
+ required: false,
53
+ },
54
+ fellingBetter: {
55
+ type: Boolean,
56
+ required: false,
57
+ },
58
+ todaysFeeling: {
59
+ type: String,
60
+ required: false,
61
+ },
62
+ journalCheck: {
63
+ type: String,
64
+ required: false,
65
+ },
66
+ count: {
67
+ type: Number,
68
+ required: false,
69
+ },
70
+ currentAverage: {
71
+ type: Number,
72
+ required: false,
73
+ },
74
+ congratulationQuestion: {
75
+ type: String,
76
+ required: false,
77
+ },
78
+ journalQuestion: {
79
+ type: String,
80
+ required: false,
81
+ },
82
+ visualJournalQuestion: {
83
+ type: String,
84
+ required: false,
85
+ },
86
+ podcastKey: {
87
+ type: String,
88
+ required: false,
89
+ },
90
+ journalCount: {
91
+ type: Number,
92
+ required: false,
93
+ },
94
+ happinessCounter: {
95
+ type: Object,
96
+ yesCount: {
97
+ type: Number,
98
+ },
99
+ noCount: {
100
+ type: Number,
101
+ },
102
+ required: false,
103
+ },
104
+ stressBustersStartCount: {
105
+ type: Number,
106
+ required: false,
107
+ },
108
+ stressBustersEndCount: {
109
+ type: Number,
110
+ required: false,
111
+ },
112
+ creationDate: {
113
+ type: String,
114
+ required: true,
115
+ },
116
+ });
117
+ Brew.index({ userId: 1, date: -1 }, {
118
+ unique: false,
119
+ });
120
+ exports.BrewSchema = Brew;
@@ -0,0 +1,2 @@
1
+ import { Schema } from 'mongoose';
2
+ export declare const DatabaseInfoSchema: Schema<import("mongoose").Document<any, any, any>, import("mongoose").Model<import("mongoose").Document<any, any, any>, any, any>, undefined, {}>;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DatabaseInfoSchema = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ const DatabaseInfo = new mongoose_1.Schema({
6
+ key: {
7
+ type: String,
8
+ required: true,
9
+ index: true,
10
+ },
11
+ platformKey: {
12
+ type: String,
13
+ required: true,
14
+ },
15
+ tId: {
16
+ type: String,
17
+ required: false,
18
+ },
19
+ uri: {
20
+ type: String,
21
+ required: true,
22
+ },
23
+ });
24
+ exports.DatabaseInfoSchema = DatabaseInfo;
@@ -0,0 +1,20 @@
1
+ export { BrewSchema } from './brew';
2
+ export { MasterAppSettingSchema } from './masterAppSetting';
3
+ export { MasterDataSchema } from './masterData';
4
+ export { MasterEmotionsSchema } from './masterEmotion';
5
+ export { MasterEmotionsMessageMappingSchema } from './masterEmotionMessageMapping';
6
+ export { MasterEmotionMessageTypeThemeMappingSchema } from './masterEmotionMessageTypeThemeMapping';
7
+ export { MasterPodcastSchema } from './masterPodcast';
8
+ export { MasterPredictionEmotionSchema } from './masterPredictionEmotion';
9
+ export { MasterPredictionEmotionMessageSchema } from './masterPredictionEmotionMessage';
10
+ export { MasterPredictionEmotionsMessageMappingSchema } from './masterPredictionEmotionMessageMapping';
11
+ export { MasterThemeDataSchema } from './masterThemeData';
12
+ export { MasterThemeMessageSchema } from './masterThemeMessage';
13
+ export { OrganizationSchema } from './organization';
14
+ export { PlatformSchema } from './platform';
15
+ export { UserLogSchema } from './userLog';
16
+ export { UserMeetingSchema } from './userMeeting';
17
+ export { UserMessageSchema } from './userMessages';
18
+ export { UserMessageLogSchema } from './userMessagesLog';
19
+ export { UserSchema } from './user';
20
+ export { DatabaseInfoSchema } from './databaseInfo';
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ 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
+ var brew_1 = require("./brew");
5
+ Object.defineProperty(exports, "BrewSchema", { enumerable: true, get: function () { return brew_1.BrewSchema; } });
6
+ var masterAppSetting_1 = require("./masterAppSetting");
7
+ Object.defineProperty(exports, "MasterAppSettingSchema", { enumerable: true, get: function () { return masterAppSetting_1.MasterAppSettingSchema; } });
8
+ var masterData_1 = require("./masterData");
9
+ Object.defineProperty(exports, "MasterDataSchema", { enumerable: true, get: function () { return masterData_1.MasterDataSchema; } });
10
+ var masterEmotion_1 = require("./masterEmotion");
11
+ Object.defineProperty(exports, "MasterEmotionsSchema", { enumerable: true, get: function () { return masterEmotion_1.MasterEmotionsSchema; } });
12
+ var masterEmotionMessageMapping_1 = require("./masterEmotionMessageMapping");
13
+ Object.defineProperty(exports, "MasterEmotionsMessageMappingSchema", { enumerable: true, get: function () { return masterEmotionMessageMapping_1.MasterEmotionsMessageMappingSchema; } });
14
+ var masterEmotionMessageTypeThemeMapping_1 = require("./masterEmotionMessageTypeThemeMapping");
15
+ Object.defineProperty(exports, "MasterEmotionMessageTypeThemeMappingSchema", { enumerable: true, get: function () { return masterEmotionMessageTypeThemeMapping_1.MasterEmotionMessageTypeThemeMappingSchema; } });
16
+ var masterPodcast_1 = require("./masterPodcast");
17
+ Object.defineProperty(exports, "MasterPodcastSchema", { enumerable: true, get: function () { return masterPodcast_1.MasterPodcastSchema; } });
18
+ var masterPredictionEmotion_1 = require("./masterPredictionEmotion");
19
+ Object.defineProperty(exports, "MasterPredictionEmotionSchema", { enumerable: true, get: function () { return masterPredictionEmotion_1.MasterPredictionEmotionSchema; } });
20
+ var masterPredictionEmotionMessage_1 = require("./masterPredictionEmotionMessage");
21
+ Object.defineProperty(exports, "MasterPredictionEmotionMessageSchema", { enumerable: true, get: function () { return masterPredictionEmotionMessage_1.MasterPredictionEmotionMessageSchema; } });
22
+ var masterPredictionEmotionMessageMapping_1 = require("./masterPredictionEmotionMessageMapping");
23
+ Object.defineProperty(exports, "MasterPredictionEmotionsMessageMappingSchema", { enumerable: true, get: function () { return masterPredictionEmotionMessageMapping_1.MasterPredictionEmotionsMessageMappingSchema; } });
24
+ var masterThemeData_1 = require("./masterThemeData");
25
+ Object.defineProperty(exports, "MasterThemeDataSchema", { enumerable: true, get: function () { return masterThemeData_1.MasterThemeDataSchema; } });
26
+ var masterThemeMessage_1 = require("./masterThemeMessage");
27
+ Object.defineProperty(exports, "MasterThemeMessageSchema", { enumerable: true, get: function () { return masterThemeMessage_1.MasterThemeMessageSchema; } });
28
+ var organization_1 = require("./organization");
29
+ Object.defineProperty(exports, "OrganizationSchema", { enumerable: true, get: function () { return organization_1.OrganizationSchema; } });
30
+ var platform_1 = require("./platform");
31
+ Object.defineProperty(exports, "PlatformSchema", { enumerable: true, get: function () { return platform_1.PlatformSchema; } });
32
+ var userLog_1 = require("./userLog");
33
+ Object.defineProperty(exports, "UserLogSchema", { enumerable: true, get: function () { return userLog_1.UserLogSchema; } });
34
+ var userMeeting_1 = require("./userMeeting");
35
+ Object.defineProperty(exports, "UserMeetingSchema", { enumerable: true, get: function () { return userMeeting_1.UserMeetingSchema; } });
36
+ var userMessages_1 = require("./userMessages");
37
+ Object.defineProperty(exports, "UserMessageSchema", { enumerable: true, get: function () { return userMessages_1.UserMessageSchema; } });
38
+ var userMessagesLog_1 = require("./userMessagesLog");
39
+ Object.defineProperty(exports, "UserMessageLogSchema", { enumerable: true, get: function () { return userMessagesLog_1.UserMessageLogSchema; } });
40
+ var user_1 = require("./user");
41
+ Object.defineProperty(exports, "UserSchema", { enumerable: true, get: function () { return user_1.UserSchema; } });
42
+ var databaseInfo_1 = require("./databaseInfo");
43
+ Object.defineProperty(exports, "DatabaseInfoSchema", { enumerable: true, get: function () { return databaseInfo_1.DatabaseInfoSchema; } });
@@ -0,0 +1,2 @@
1
+ import { Schema } from 'mongoose';
2
+ export declare const MasterAppSettingSchema: Schema<import("mongoose").Document<any, any, any>, import("mongoose").Model<import("mongoose").Document<any, any, any>, any, any>, undefined, {}>;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MasterAppSettingSchema = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ const MasterAppSetting = 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
+ description: {
16
+ type: String,
17
+ required: false,
18
+ },
19
+ value: {
20
+ type: String,
21
+ required: false,
22
+ },
23
+ });
24
+ exports.MasterAppSettingSchema = MasterAppSetting;
@@ -0,0 +1,2 @@
1
+ import { Schema } from 'mongoose';
2
+ export declare const MasterDataSchema: Schema<import("mongoose").Document<any, any, any>, import("mongoose").Model<import("mongoose").Document<any, any, any>, any, any>, undefined, {}>;
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MasterDataSchema = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ const MasterData = new mongoose_1.Schema({
6
+ key: {
7
+ type: String,
8
+ required: true,
9
+ index: true,
10
+ },
11
+ dataType: {
12
+ type: String,
13
+ required: false,
14
+ },
15
+ valueArray: {
16
+ type: Array,
17
+ required: false,
18
+ },
19
+ valueJson: {
20
+ type: 'object',
21
+ required: false,
22
+ },
23
+ valueJsonArray: {
24
+ type: Array,
25
+ required: false,
26
+ },
27
+ });
28
+ exports.MasterDataSchema = MasterData;
@@ -0,0 +1,2 @@
1
+ import { Schema } from 'mongoose';
2
+ export declare const MasterEmotionsSchema: Schema<import("mongoose").Document<any, any, any>, import("mongoose").Model<import("mongoose").Document<any, any, any>, any, any>, undefined, {}>;
@@ -0,0 +1,114 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MasterEmotionsSchema = 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
+ type: {
20
+ type: String,
21
+ required: true,
22
+ },
23
+ weight: {
24
+ type: String,
25
+ required: true,
26
+ },
27
+ color: {
28
+ type: String,
29
+ required: false,
30
+ },
31
+ sColor: {
32
+ type: String,
33
+ required: false,
34
+ },
35
+ cColor: {
36
+ type: String,
37
+ required: false,
38
+ },
39
+ startColor: {
40
+ type: String,
41
+ required: false,
42
+ },
43
+ stopColor: {
44
+ type: String,
45
+ required: false,
46
+ },
47
+ active: {
48
+ type: Boolean,
49
+ required: false,
50
+ },
51
+ value: {
52
+ type: Number,
53
+ required: false,
54
+ },
55
+ pieValue: {
56
+ type: Number,
57
+ required: false,
58
+ },
59
+ questions: { type: Array, required: false },
60
+ suggestionData: {
61
+ type: Object,
62
+ pie: {
63
+ type: Array,
64
+ },
65
+ prePieMessage: {
66
+ type: Array,
67
+ },
68
+ required: false,
69
+ },
70
+ appreciationData: {
71
+ type: Object,
72
+ pie: {
73
+ type: Array,
74
+ },
75
+ prePieMessage: {
76
+ type: Array,
77
+ },
78
+ required: false,
79
+ },
80
+ voice: {
81
+ type: Object,
82
+ suggestionData: {
83
+ type: Object,
84
+ pie: {
85
+ type: Array,
86
+ },
87
+ prePieMessage: {
88
+ type: Array,
89
+ },
90
+ },
91
+ appreciationData: {
92
+ type: Object,
93
+ pie: {
94
+ type: Array,
95
+ },
96
+ prePieMessage: {
97
+ type: Array,
98
+ },
99
+ required: false,
100
+ },
101
+ },
102
+ pie: { type: Array, required: false },
103
+ dailyChart: { type: Array, required: false },
104
+ prePieMessage: { type: Array, required: false },
105
+ suggestionEmotionColor: {
106
+ type: String,
107
+ required: false,
108
+ },
109
+ appreciationEmotionColor: {
110
+ type: String,
111
+ required: false,
112
+ },
113
+ });
114
+ exports.MasterEmotionsSchema = MasterEmotions;
@@ -0,0 +1,2 @@
1
+ import { Schema } from 'mongoose';
2
+ export declare const MasterEmotionsMessageMappingSchema: Schema<import("mongoose").Document<any, any, any>, import("mongoose").Model<import("mongoose").Document<any, any, any>, any, any>, undefined, {}>;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MasterEmotionsMessageMappingSchema = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ const MasterEmotionsMessageMapping = new mongoose_1.Schema({
6
+ masterEmotionKey: {
7
+ type: String,
8
+ required: true,
9
+ },
10
+ type: {
11
+ type: String,
12
+ required: true,
13
+ },
14
+ mapping: { type: Array, required: false },
15
+ });
16
+ exports.MasterEmotionsMessageMappingSchema = MasterEmotionsMessageMapping;
@@ -0,0 +1,2 @@
1
+ import { Schema } from 'mongoose';
2
+ export declare const MasterEmotionMessageTypeThemeMappingSchema: Schema<import("mongoose").Document<any, any, any>, import("mongoose").Model<import("mongoose").Document<any, any, any>, any, any>, undefined, {}>;
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MasterEmotionMessageTypeThemeMappingSchema = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ const MasterEmotionMessageTypeThemeMapping = new mongoose_1.Schema({
6
+ masterEmotionKey: {
7
+ type: String,
8
+ required: true,
9
+ },
10
+ messageType: {
11
+ type: String,
12
+ required: true,
13
+ },
14
+ detail: {
15
+ type: String,
16
+ required: false,
17
+ },
18
+ themes: {
19
+ type: Array,
20
+ required: false,
21
+ },
22
+ });
23
+ exports.MasterEmotionMessageTypeThemeMappingSchema = MasterEmotionMessageTypeThemeMapping;
@@ -0,0 +1,2 @@
1
+ import { Schema } from 'mongoose';
2
+ export declare const MasterPodcastSchema: Schema<import("mongoose").Document<any, any, any>, import("mongoose").Model<import("mongoose").Document<any, any, any>, any, any>, undefined, {}>;
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MasterPodcastSchema = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ const MasterPodcast = new mongoose_1.Schema({
6
+ key: {
7
+ type: String,
8
+ required: true,
9
+ index: true,
10
+ },
11
+ file: {
12
+ type: String,
13
+ required: false,
14
+ },
15
+ title: {
16
+ type: String,
17
+ required: false,
18
+ },
19
+ url: {
20
+ type: String,
21
+ required: false,
22
+ },
23
+ duration: {
24
+ type: String,
25
+ required: false,
26
+ },
27
+ morningPodcast: {
28
+ type: Boolean,
29
+ default: false,
30
+ required: false,
31
+ },
32
+ });
33
+ exports.MasterPodcastSchema = MasterPodcast;
@@ -0,0 +1,2 @@
1
+ import { Schema } from 'mongoose';
2
+ export declare const MasterPredictionEmotionSchema: Schema<import("mongoose").Document<any, any, any>, import("mongoose").Model<import("mongoose").Document<any, any, any>, any, any>, undefined, {}>;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MasterPredictionEmotionSchema = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ const MasterPredictionEmotion = new mongoose_1.Schema({
6
+ key: {
7
+ type: String,
8
+ required: true,
9
+ },
10
+ name: {
11
+ type: String,
12
+ required: true,
13
+ },
14
+ emotionCategory: {
15
+ type: String,
16
+ required: true,
17
+ },
18
+ themes: {
19
+ type: Array,
20
+ required: false,
21
+ },
22
+ inverse: {
23
+ type: Boolean,
24
+ required: true,
25
+ },
26
+ });
27
+ exports.MasterPredictionEmotionSchema = MasterPredictionEmotion;
@@ -0,0 +1,2 @@
1
+ import { Schema } from 'mongoose';
2
+ export declare const MasterPredictionEmotionMessageSchema: 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.MasterPredictionEmotionMessageSchema = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ const MasterPredictionEmotionMessage = new mongoose_1.Schema({
6
+ masterPredictionEmotionKey: {
7
+ type: String,
8
+ required: true,
9
+ index: true,
10
+ },
11
+ messages: {
12
+ type: Array,
13
+ items: {
14
+ type: 'object',
15
+ properties: {
16
+ message: {
17
+ type: String,
18
+ },
19
+ theme: {
20
+ type: String,
21
+ },
22
+ },
23
+ },
24
+ },
25
+ });
26
+ exports.MasterPredictionEmotionMessageSchema = MasterPredictionEmotionMessage;
@@ -0,0 +1,2 @@
1
+ import { Schema } from 'mongoose';
2
+ export declare const MasterPredictionEmotionsMessageMappingSchema: Schema<import("mongoose").Document<any, any, any>, import("mongoose").Model<import("mongoose").Document<any, any, any>, any, any>, undefined, {}>;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MasterPredictionEmotionsMessageMappingSchema = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ const MasterPredictionEmotionsMessageMapping = new mongoose_1.Schema({
6
+ masterEmotionKey: {
7
+ type: String,
8
+ required: true,
9
+ },
10
+ type: {
11
+ type: String,
12
+ required: true,
13
+ },
14
+ mapping: { type: Array, required: false },
15
+ });
16
+ exports.MasterPredictionEmotionsMessageMappingSchema = MasterPredictionEmotionsMessageMapping;
@@ -0,0 +1,2 @@
1
+ import { Schema } from 'mongoose';
2
+ export declare const MasterThemeDataSchema: Schema<import("mongoose").Document<any, any, any>, import("mongoose").Model<import("mongoose").Document<any, any, any>, any, any>, undefined, {}>;