joye-backend-utility 5.0.26 → 5.0.28
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 +1 -0
- package/dist/schema/index.d.ts +1 -0
- package/dist/schema/index.js +3 -1
- package/dist/schema/organization.js +10 -0
- package/dist/schema/organizationUserAttrPermission.d.ts +2 -0
- package/dist/schema/organizationUserAttrPermission.js +19 -0
- package/dist/schema/user.js +10 -0
- package/package.json +1 -1
package/dist/database.js
CHANGED
|
@@ -37,6 +37,7 @@ class database {
|
|
|
37
37
|
con.model('User_Feedback', schema_1.UserFeedbackSchema);
|
|
38
38
|
con.model('User_Video', schema_1.UserVideoSchema);
|
|
39
39
|
con.model('Timezone', schema_1.TimezoneSchema);
|
|
40
|
+
con.model('Organization_User_Attr_Permission', schema_1.OrganizationUserAttrPermissionSchema);
|
|
40
41
|
};
|
|
41
42
|
this.connectToDatabase = () => {
|
|
42
43
|
const env = config_1.NODE_ENV || 'development';
|
package/dist/schema/index.d.ts
CHANGED
|
@@ -28,3 +28,4 @@ export { UserReminderSchema } from '../schema/userReminder';
|
|
|
28
28
|
export { UserFeedbackSchema } from '../schema/userFeedback';
|
|
29
29
|
export { UserVideoSchema } from '../schema/userVideo';
|
|
30
30
|
export { TimezoneSchema } from './timezones';
|
|
31
|
+
export { OrganizationUserAttrPermissionSchema } from './organizationUserAttrPermission';
|
package/dist/schema/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
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.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");
|
|
@@ -61,3 +61,5 @@ var userVideo_1 = require("../schema/userVideo");
|
|
|
61
61
|
Object.defineProperty(exports, "UserVideoSchema", { enumerable: true, get: function () { return userVideo_1.UserVideoSchema; } });
|
|
62
62
|
var timezones_1 = require("./timezones");
|
|
63
63
|
Object.defineProperty(exports, "TimezoneSchema", { enumerable: true, get: function () { return timezones_1.TimezoneSchema; } });
|
|
64
|
+
var organizationUserAttrPermission_1 = require("./organizationUserAttrPermission");
|
|
65
|
+
Object.defineProperty(exports, "OrganizationUserAttrPermissionSchema", { enumerable: true, get: function () { return organizationUserAttrPermission_1.OrganizationUserAttrPermissionSchema; } });
|
|
@@ -20,6 +20,16 @@ const Organization = new mongoose_1.Schema({
|
|
|
20
20
|
required: true,
|
|
21
21
|
index: true,
|
|
22
22
|
},
|
|
23
|
+
tenantName: {
|
|
24
|
+
type: String,
|
|
25
|
+
required: false,
|
|
26
|
+
index: true,
|
|
27
|
+
},
|
|
28
|
+
customConsent: {
|
|
29
|
+
type: String,
|
|
30
|
+
required: false,
|
|
31
|
+
index: true,
|
|
32
|
+
},
|
|
23
33
|
emergency: {
|
|
24
34
|
type: Object,
|
|
25
35
|
helpline: {
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OrganizationUserAttrPermissionSchema = void 0;
|
|
4
|
+
const mongoose_1 = require("mongoose");
|
|
5
|
+
const OrganizationUserAttrPermission = new mongoose_1.Schema({
|
|
6
|
+
tId: {
|
|
7
|
+
type: String,
|
|
8
|
+
required: true,
|
|
9
|
+
},
|
|
10
|
+
tenantName: {
|
|
11
|
+
type: String,
|
|
12
|
+
required: false,
|
|
13
|
+
},
|
|
14
|
+
userAttributes: {
|
|
15
|
+
type: Array,
|
|
16
|
+
required: false,
|
|
17
|
+
},
|
|
18
|
+
});
|
|
19
|
+
exports.OrganizationUserAttrPermissionSchema = OrganizationUserAttrPermission;
|
package/dist/schema/user.js
CHANGED
|
@@ -72,6 +72,16 @@ const User = new mongoose_1.Schema({
|
|
|
72
72
|
type: String,
|
|
73
73
|
required: false,
|
|
74
74
|
},
|
|
75
|
+
// Optional user attributes start
|
|
76
|
+
department: {
|
|
77
|
+
type: String,
|
|
78
|
+
required: false,
|
|
79
|
+
},
|
|
80
|
+
birthday: {
|
|
81
|
+
type: String,
|
|
82
|
+
required: false,
|
|
83
|
+
},
|
|
84
|
+
// Optional user attributes end
|
|
75
85
|
notificationDate: {
|
|
76
86
|
type: String,
|
|
77
87
|
required: false,
|