joye-backend-utility 4.1.6 → 4.1.7
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
|
@@ -27,6 +27,7 @@ class database {
|
|
|
27
27
|
con.model('User_Message', schema_1.UserMessageSchema);
|
|
28
28
|
con.model('User_Message_Log', schema_1.UserMessageLogSchema);
|
|
29
29
|
con.model('Database_Info', schema_1.DatabaseInfoSchema);
|
|
30
|
+
con.model('Master_Video', schema_1.MasterVideoSchema);
|
|
30
31
|
};
|
|
31
32
|
this.connectToDatabase = () => {
|
|
32
33
|
const env = config_1.NODE_ENV || 'development';
|
package/dist/schema/index.d.ts
CHANGED
package/dist/schema/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
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;
|
|
3
|
+
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");
|
|
@@ -41,3 +41,5 @@ var user_1 = require("./user");
|
|
|
41
41
|
Object.defineProperty(exports, "UserSchema", { enumerable: true, get: function () { return user_1.UserSchema; } });
|
|
42
42
|
var databaseInfo_1 = require("./databaseInfo");
|
|
43
43
|
Object.defineProperty(exports, "DatabaseInfoSchema", { enumerable: true, get: function () { return databaseInfo_1.DatabaseInfoSchema; } });
|
|
44
|
+
var masterVideo_1 = require("./masterVideo");
|
|
45
|
+
Object.defineProperty(exports, "MasterVideoSchema", { enumerable: true, get: function () { return masterVideo_1.MasterVideoSchema; } });
|
|
@@ -36,5 +36,13 @@ const MasterThemeData = new mongoose_1.Schema({
|
|
|
36
36
|
type: Object,
|
|
37
37
|
required: false,
|
|
38
38
|
},
|
|
39
|
+
video: {
|
|
40
|
+
type: Array,
|
|
41
|
+
required: false,
|
|
42
|
+
},
|
|
43
|
+
tenantVideos: {
|
|
44
|
+
type: Object,
|
|
45
|
+
required: false,
|
|
46
|
+
},
|
|
39
47
|
});
|
|
40
48
|
exports.MasterThemeDataSchema = MasterThemeData;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MasterVideoSchema = void 0;
|
|
4
|
+
const mongoose_1 = require("mongoose");
|
|
5
|
+
const MasterVideo = 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
|
+
});
|
|
28
|
+
exports.MasterVideoSchema = MasterVideo;
|