joye-backend-utility 5.1.10 → 5.1.12
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/config/index.d.ts +2 -2
- package/dist/config/index.js +8 -8
- package/dist/database.d.ts +26 -26
- package/dist/database.js +142 -141
- package/dist/dateTime.d.ts +11 -11
- package/dist/dateTime.js +82 -82
- package/dist/index.d.ts +6 -6
- package/dist/index.js +26 -26
- package/dist/jwt.d.ts +3 -3
- package/dist/jwt.js +40 -40
- package/dist/redisClient.d.ts +6 -6
- package/dist/redisClient.js +34 -34
- package/dist/schema/brew.d.ts +2 -2
- package/dist/schema/brew.js +160 -160
- package/dist/schema/databaseInfo.d.ts +2 -2
- package/dist/schema/databaseInfo.js +35 -35
- package/dist/schema/index.d.ts +38 -37
- package/dist/schema/index.js +79 -77
- package/dist/schema/masterAppSetting.d.ts +2 -2
- package/dist/schema/masterAppSetting.js +24 -24
- package/dist/schema/masterBlessingsData.d.ts +2 -2
- package/dist/schema/masterBlessingsData.js +41 -41
- package/dist/schema/masterData.d.ts +2 -2
- package/dist/schema/masterData.js +28 -28
- package/dist/schema/masterEmotion.d.ts +2 -2
- package/dist/schema/masterEmotion.js +115 -115
- package/dist/schema/masterEmotionMessageMapping.d.ts +2 -2
- package/dist/schema/masterEmotionMessageMapping.js +16 -16
- package/dist/schema/masterEmotionMessageTypeThemeMapping.d.ts +2 -2
- package/dist/schema/masterEmotionMessageTypeThemeMapping.js +23 -23
- package/dist/schema/masterLinkCard.d.ts +2 -2
- package/dist/schema/masterLinkCard.js +28 -28
- package/dist/schema/masterPodcast.d.ts +2 -2
- package/dist/schema/masterPodcast.js +37 -37
- package/dist/schema/masterPredictionEmotion.d.ts +2 -2
- package/dist/schema/masterPredictionEmotion.js +27 -27
- package/dist/schema/masterPredictionEmotionMessage.d.ts +2 -2
- package/dist/schema/masterPredictionEmotionMessage.js +26 -26
- package/dist/schema/masterPredictionEmotionMessageMapping.d.ts +2 -2
- package/dist/schema/masterPredictionEmotionMessageMapping.js +16 -16
- package/dist/schema/masterSuggestionsMessage.model.d.ts +2 -2
- package/dist/schema/masterSuggestionsMessage.model.js +31 -31
- package/dist/schema/masterSuggestionsParameter.model.d.ts +2 -2
- package/dist/schema/masterSuggestionsParameter.model.js +23 -23
- package/dist/schema/masterThemeData.d.ts +2 -2
- package/dist/schema/masterThemeData.js +48 -48
- package/dist/schema/masterThemeMessage.d.ts +2 -2
- package/dist/schema/masterThemeMessage.js +13 -13
- package/dist/schema/masterTraining.d.ts +2 -2
- package/dist/schema/masterTraining.js +29 -29
- package/dist/schema/masterTrainingWeek.d.ts +2 -2
- package/dist/schema/masterTrainingWeek.js +32 -32
- package/dist/schema/masterVideo.d.ts +2 -2
- package/dist/schema/masterVideo.js +33 -33
- package/dist/schema/organization.d.ts +2 -2
- package/dist/schema/organization.js +79 -79
- package/dist/schema/organizationUserAttrPermission.d.ts +2 -2
- package/dist/schema/organizationUserAttrPermission.js +59 -59
- package/dist/schema/platform.d.ts +2 -2
- package/dist/schema/platform.js +28 -28
- package/dist/schema/timezones.d.ts +2 -2
- package/dist/schema/timezones.js +26 -26
- package/dist/schema/user.d.ts +2 -2
- package/dist/schema/user.js +202 -202
- package/dist/schema/userFeedback.d.ts +2 -2
- package/dist/schema/userFeedback.js +24 -24
- package/dist/schema/userGoal.d.ts +2 -2
- package/dist/schema/userGoal.js +38 -38
- package/dist/schema/userJoyLevelQa.d.ts +2 -2
- package/dist/schema/userJoyLevelQa.js +49 -49
- package/dist/schema/userLog.d.ts +2 -2
- package/dist/schema/userLog.js +22 -22
- package/dist/schema/userMeeting.d.ts +2 -2
- package/dist/schema/userMeeting.js +22 -22
- package/dist/schema/userMessages.d.ts +2 -2
- package/dist/schema/userMessages.js +24 -24
- package/dist/schema/userMessagesLog.d.ts +2 -2
- package/dist/schema/userMessagesLog.js +69 -69
- package/dist/schema/userRecommendation.d.ts +2 -2
- package/dist/schema/userRecommendation.js +24 -24
- package/dist/schema/userReminder.d.ts +2 -2
- package/dist/schema/userReminder.js +61 -61
- package/dist/schema/userTrainingData.d.ts +2 -2
- package/dist/schema/userTrainingData.js +41 -37
- package/dist/schema/userTrainingWeekData.d.ts +2 -2
- package/dist/schema/userTrainingWeekData.js +40 -36
- package/dist/schema/userVideo.d.ts +2 -2
- package/dist/schema/userVideo.js +50 -50
- package/dist/schema/userWeekActivity.d.ts +2 -0
- package/dist/schema/userWeekActivity.js +90 -0
- package/dist/util.d.ts +2 -2
- package/dist/util.js +13 -13
- package/package.json +1 -1
package/dist/schema/user.js
CHANGED
|
@@ -1,202 +1,202 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UserSchema = void 0;
|
|
4
|
-
const mongoose_1 = require("mongoose");
|
|
5
|
-
const User = new mongoose_1.Schema({
|
|
6
|
-
organizationId: {
|
|
7
|
-
type: String,
|
|
8
|
-
required: true,
|
|
9
|
-
index: true,
|
|
10
|
-
},
|
|
11
|
-
employeeId: {
|
|
12
|
-
type: String,
|
|
13
|
-
required: true,
|
|
14
|
-
index: true,
|
|
15
|
-
},
|
|
16
|
-
postPieScreen: {
|
|
17
|
-
type: String,
|
|
18
|
-
required: false,
|
|
19
|
-
},
|
|
20
|
-
happinessCounterLifetime: {
|
|
21
|
-
type: Object,
|
|
22
|
-
yesCount: {
|
|
23
|
-
type: Number,
|
|
24
|
-
},
|
|
25
|
-
noCount: {
|
|
26
|
-
type: Number,
|
|
27
|
-
},
|
|
28
|
-
required: false,
|
|
29
|
-
},
|
|
30
|
-
delegatedAccessToken: {
|
|
31
|
-
type: String,
|
|
32
|
-
required: false,
|
|
33
|
-
},
|
|
34
|
-
email: {
|
|
35
|
-
type: String,
|
|
36
|
-
required: false,
|
|
37
|
-
},
|
|
38
|
-
displayName: {
|
|
39
|
-
type: String,
|
|
40
|
-
required: false,
|
|
41
|
-
},
|
|
42
|
-
preferredLanguage: {
|
|
43
|
-
type: String,
|
|
44
|
-
required: false,
|
|
45
|
-
},
|
|
46
|
-
// Optional user attributes start
|
|
47
|
-
department: {
|
|
48
|
-
type: String,
|
|
49
|
-
required: false,
|
|
50
|
-
},
|
|
51
|
-
officeLocation: {
|
|
52
|
-
type: String,
|
|
53
|
-
required: false,
|
|
54
|
-
},
|
|
55
|
-
// Optional user attributes end
|
|
56
|
-
notificationDate: {
|
|
57
|
-
type: String,
|
|
58
|
-
required: false,
|
|
59
|
-
},
|
|
60
|
-
notificationCount: {
|
|
61
|
-
type: Number,
|
|
62
|
-
required: false,
|
|
63
|
-
},
|
|
64
|
-
timeNotificationCount: {
|
|
65
|
-
type: Number,
|
|
66
|
-
required: false,
|
|
67
|
-
},
|
|
68
|
-
createdAt: {
|
|
69
|
-
type: Number,
|
|
70
|
-
required: false,
|
|
71
|
-
},
|
|
72
|
-
botDetails: {
|
|
73
|
-
type: Object,
|
|
74
|
-
index: true,
|
|
75
|
-
},
|
|
76
|
-
uniqueCode: {
|
|
77
|
-
type: String,
|
|
78
|
-
required: false,
|
|
79
|
-
},
|
|
80
|
-
accessToken: {
|
|
81
|
-
type: String,
|
|
82
|
-
required: false,
|
|
83
|
-
},
|
|
84
|
-
refreshToken: {
|
|
85
|
-
type: String,
|
|
86
|
-
required: false,
|
|
87
|
-
},
|
|
88
|
-
jId: {
|
|
89
|
-
type: String,
|
|
90
|
-
required: false,
|
|
91
|
-
},
|
|
92
|
-
cardPodcastClickCount: {
|
|
93
|
-
type: Number,
|
|
94
|
-
required: false,
|
|
95
|
-
},
|
|
96
|
-
currentStreak: {
|
|
97
|
-
type: Number,
|
|
98
|
-
required: false,
|
|
99
|
-
},
|
|
100
|
-
maxStreak: {
|
|
101
|
-
type: Number,
|
|
102
|
-
required: false,
|
|
103
|
-
},
|
|
104
|
-
createTimestamp: {
|
|
105
|
-
type: Number,
|
|
106
|
-
required: false,
|
|
107
|
-
},
|
|
108
|
-
lastRecommendationCategory: {
|
|
109
|
-
type: String,
|
|
110
|
-
required: false,
|
|
111
|
-
},
|
|
112
|
-
consentVia: {
|
|
113
|
-
type: String,
|
|
114
|
-
required: false,
|
|
115
|
-
},
|
|
116
|
-
loginTime: {
|
|
117
|
-
type: Number,
|
|
118
|
-
required: false,
|
|
119
|
-
},
|
|
120
|
-
lastRecommendationDate: {
|
|
121
|
-
type: String,
|
|
122
|
-
required: false,
|
|
123
|
-
},
|
|
124
|
-
appreciationDate: {
|
|
125
|
-
type: String,
|
|
126
|
-
required: false,
|
|
127
|
-
},
|
|
128
|
-
consent: {
|
|
129
|
-
type: Boolean,
|
|
130
|
-
required: false,
|
|
131
|
-
},
|
|
132
|
-
preferredTimezone: {
|
|
133
|
-
type: String,
|
|
134
|
-
required: false,
|
|
135
|
-
},
|
|
136
|
-
confirmOrgTimezone: {
|
|
137
|
-
type: Boolean,
|
|
138
|
-
required: false,
|
|
139
|
-
default: false,
|
|
140
|
-
},
|
|
141
|
-
consentTime: {
|
|
142
|
-
type: Number,
|
|
143
|
-
required: false,
|
|
144
|
-
},
|
|
145
|
-
badgeNumber: {
|
|
146
|
-
type: Number,
|
|
147
|
-
default: 0,
|
|
148
|
-
required: false,
|
|
149
|
-
},
|
|
150
|
-
chatBlocked: {
|
|
151
|
-
type: Boolean,
|
|
152
|
-
default: false,
|
|
153
|
-
required: false,
|
|
154
|
-
},
|
|
155
|
-
blockDate: {
|
|
156
|
-
type: Number,
|
|
157
|
-
default: 0,
|
|
158
|
-
required: false,
|
|
159
|
-
},
|
|
160
|
-
blockEndDate: {
|
|
161
|
-
type: Number,
|
|
162
|
-
default: 0,
|
|
163
|
-
required: false,
|
|
164
|
-
},
|
|
165
|
-
lastStreakWeek: {
|
|
166
|
-
type: Number,
|
|
167
|
-
required: false,
|
|
168
|
-
},
|
|
169
|
-
lastModeWeek: {
|
|
170
|
-
type: Number,
|
|
171
|
-
required: false,
|
|
172
|
-
},
|
|
173
|
-
lastCardCycle: {
|
|
174
|
-
// TO identify what was the last cycle
|
|
175
|
-
// Value in 1, 2, 3
|
|
176
|
-
// 1: Mon Wed
|
|
177
|
-
// 2: Tue Thu
|
|
178
|
-
// 3: Wed Fri
|
|
179
|
-
required: false,
|
|
180
|
-
type: Number,
|
|
181
|
-
},
|
|
182
|
-
notificationMode: {
|
|
183
|
-
// Value in Dynamic (default), ZenFlow, LightEasy
|
|
184
|
-
required: false,
|
|
185
|
-
type: String,
|
|
186
|
-
},
|
|
187
|
-
autoNotificationMode: {
|
|
188
|
-
// Value in Dynamic (default), ZenFlow, LightEasy
|
|
189
|
-
required: false,
|
|
190
|
-
type: String,
|
|
191
|
-
},
|
|
192
|
-
});
|
|
193
|
-
User.index({ botDetails: 1, preferredTimezone: -1 }, {
|
|
194
|
-
unique: false,
|
|
195
|
-
});
|
|
196
|
-
User.index({ organizationId: 1, botDetails: -1 }, {
|
|
197
|
-
unique: false,
|
|
198
|
-
});
|
|
199
|
-
User.index({ botDetails: 1, organizationId: -1, preferredTimezone: -1 }, {
|
|
200
|
-
unique: false,
|
|
201
|
-
});
|
|
202
|
-
exports.UserSchema = User;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserSchema = void 0;
|
|
4
|
+
const mongoose_1 = require("mongoose");
|
|
5
|
+
const User = new mongoose_1.Schema({
|
|
6
|
+
organizationId: {
|
|
7
|
+
type: String,
|
|
8
|
+
required: true,
|
|
9
|
+
index: true,
|
|
10
|
+
},
|
|
11
|
+
employeeId: {
|
|
12
|
+
type: String,
|
|
13
|
+
required: true,
|
|
14
|
+
index: true,
|
|
15
|
+
},
|
|
16
|
+
postPieScreen: {
|
|
17
|
+
type: String,
|
|
18
|
+
required: false,
|
|
19
|
+
},
|
|
20
|
+
happinessCounterLifetime: {
|
|
21
|
+
type: Object,
|
|
22
|
+
yesCount: {
|
|
23
|
+
type: Number,
|
|
24
|
+
},
|
|
25
|
+
noCount: {
|
|
26
|
+
type: Number,
|
|
27
|
+
},
|
|
28
|
+
required: false,
|
|
29
|
+
},
|
|
30
|
+
delegatedAccessToken: {
|
|
31
|
+
type: String,
|
|
32
|
+
required: false,
|
|
33
|
+
},
|
|
34
|
+
email: {
|
|
35
|
+
type: String,
|
|
36
|
+
required: false,
|
|
37
|
+
},
|
|
38
|
+
displayName: {
|
|
39
|
+
type: String,
|
|
40
|
+
required: false,
|
|
41
|
+
},
|
|
42
|
+
preferredLanguage: {
|
|
43
|
+
type: String,
|
|
44
|
+
required: false,
|
|
45
|
+
},
|
|
46
|
+
// Optional user attributes start
|
|
47
|
+
department: {
|
|
48
|
+
type: String,
|
|
49
|
+
required: false,
|
|
50
|
+
},
|
|
51
|
+
officeLocation: {
|
|
52
|
+
type: String,
|
|
53
|
+
required: false,
|
|
54
|
+
},
|
|
55
|
+
// Optional user attributes end
|
|
56
|
+
notificationDate: {
|
|
57
|
+
type: String,
|
|
58
|
+
required: false,
|
|
59
|
+
},
|
|
60
|
+
notificationCount: {
|
|
61
|
+
type: Number,
|
|
62
|
+
required: false,
|
|
63
|
+
},
|
|
64
|
+
timeNotificationCount: {
|
|
65
|
+
type: Number,
|
|
66
|
+
required: false,
|
|
67
|
+
},
|
|
68
|
+
createdAt: {
|
|
69
|
+
type: Number,
|
|
70
|
+
required: false,
|
|
71
|
+
},
|
|
72
|
+
botDetails: {
|
|
73
|
+
type: Object,
|
|
74
|
+
index: true,
|
|
75
|
+
},
|
|
76
|
+
uniqueCode: {
|
|
77
|
+
type: String,
|
|
78
|
+
required: false,
|
|
79
|
+
},
|
|
80
|
+
accessToken: {
|
|
81
|
+
type: String,
|
|
82
|
+
required: false,
|
|
83
|
+
},
|
|
84
|
+
refreshToken: {
|
|
85
|
+
type: String,
|
|
86
|
+
required: false,
|
|
87
|
+
},
|
|
88
|
+
jId: {
|
|
89
|
+
type: String,
|
|
90
|
+
required: false,
|
|
91
|
+
},
|
|
92
|
+
cardPodcastClickCount: {
|
|
93
|
+
type: Number,
|
|
94
|
+
required: false,
|
|
95
|
+
},
|
|
96
|
+
currentStreak: {
|
|
97
|
+
type: Number,
|
|
98
|
+
required: false,
|
|
99
|
+
},
|
|
100
|
+
maxStreak: {
|
|
101
|
+
type: Number,
|
|
102
|
+
required: false,
|
|
103
|
+
},
|
|
104
|
+
createTimestamp: {
|
|
105
|
+
type: Number,
|
|
106
|
+
required: false,
|
|
107
|
+
},
|
|
108
|
+
lastRecommendationCategory: {
|
|
109
|
+
type: String,
|
|
110
|
+
required: false,
|
|
111
|
+
},
|
|
112
|
+
consentVia: {
|
|
113
|
+
type: String,
|
|
114
|
+
required: false,
|
|
115
|
+
},
|
|
116
|
+
loginTime: {
|
|
117
|
+
type: Number,
|
|
118
|
+
required: false,
|
|
119
|
+
},
|
|
120
|
+
lastRecommendationDate: {
|
|
121
|
+
type: String,
|
|
122
|
+
required: false,
|
|
123
|
+
},
|
|
124
|
+
appreciationDate: {
|
|
125
|
+
type: String,
|
|
126
|
+
required: false,
|
|
127
|
+
},
|
|
128
|
+
consent: {
|
|
129
|
+
type: Boolean,
|
|
130
|
+
required: false,
|
|
131
|
+
},
|
|
132
|
+
preferredTimezone: {
|
|
133
|
+
type: String,
|
|
134
|
+
required: false,
|
|
135
|
+
},
|
|
136
|
+
confirmOrgTimezone: {
|
|
137
|
+
type: Boolean,
|
|
138
|
+
required: false,
|
|
139
|
+
default: false,
|
|
140
|
+
},
|
|
141
|
+
consentTime: {
|
|
142
|
+
type: Number,
|
|
143
|
+
required: false,
|
|
144
|
+
},
|
|
145
|
+
badgeNumber: {
|
|
146
|
+
type: Number,
|
|
147
|
+
default: 0,
|
|
148
|
+
required: false,
|
|
149
|
+
},
|
|
150
|
+
chatBlocked: {
|
|
151
|
+
type: Boolean,
|
|
152
|
+
default: false,
|
|
153
|
+
required: false,
|
|
154
|
+
},
|
|
155
|
+
blockDate: {
|
|
156
|
+
type: Number,
|
|
157
|
+
default: 0,
|
|
158
|
+
required: false,
|
|
159
|
+
},
|
|
160
|
+
blockEndDate: {
|
|
161
|
+
type: Number,
|
|
162
|
+
default: 0,
|
|
163
|
+
required: false,
|
|
164
|
+
},
|
|
165
|
+
lastStreakWeek: {
|
|
166
|
+
type: Number,
|
|
167
|
+
required: false,
|
|
168
|
+
},
|
|
169
|
+
lastModeWeek: {
|
|
170
|
+
type: Number,
|
|
171
|
+
required: false,
|
|
172
|
+
},
|
|
173
|
+
lastCardCycle: {
|
|
174
|
+
// TO identify what was the last cycle
|
|
175
|
+
// Value in 1, 2, 3
|
|
176
|
+
// 1: Mon Wed
|
|
177
|
+
// 2: Tue Thu
|
|
178
|
+
// 3: Wed Fri
|
|
179
|
+
required: false,
|
|
180
|
+
type: Number,
|
|
181
|
+
},
|
|
182
|
+
notificationMode: {
|
|
183
|
+
// Value in Dynamic (default), ZenFlow, LightEasy
|
|
184
|
+
required: false,
|
|
185
|
+
type: String,
|
|
186
|
+
},
|
|
187
|
+
autoNotificationMode: {
|
|
188
|
+
// Value in Dynamic (default), ZenFlow, LightEasy
|
|
189
|
+
required: false,
|
|
190
|
+
type: String,
|
|
191
|
+
},
|
|
192
|
+
});
|
|
193
|
+
User.index({ botDetails: 1, preferredTimezone: -1 }, {
|
|
194
|
+
unique: false,
|
|
195
|
+
});
|
|
196
|
+
User.index({ organizationId: 1, botDetails: -1 }, {
|
|
197
|
+
unique: false,
|
|
198
|
+
});
|
|
199
|
+
User.index({ botDetails: 1, organizationId: -1, preferredTimezone: -1 }, {
|
|
200
|
+
unique: false,
|
|
201
|
+
});
|
|
202
|
+
exports.UserSchema = User;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Schema } from 'mongoose';
|
|
2
|
-
export declare const UserFeedbackSchema: Schema<import("mongoose").Document<any, any, any>, import("mongoose").Model<import("mongoose").Document<any, any, any>, any, any>, undefined, {}>;
|
|
1
|
+
import { Schema } from 'mongoose';
|
|
2
|
+
export declare const UserFeedbackSchema: Schema<import("mongoose").Document<any, any, any>, import("mongoose").Model<import("mongoose").Document<any, any, any>, any, any>, undefined, {}>;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UserFeedbackSchema = void 0;
|
|
4
|
-
const mongoose_1 = require("mongoose");
|
|
5
|
-
const UserFeedback = new mongoose_1.Schema({
|
|
6
|
-
employeeId: {
|
|
7
|
-
type: String,
|
|
8
|
-
required: true,
|
|
9
|
-
index: true,
|
|
10
|
-
},
|
|
11
|
-
feedbackTime: {
|
|
12
|
-
type: Number,
|
|
13
|
-
required: true,
|
|
14
|
-
},
|
|
15
|
-
date: {
|
|
16
|
-
type: String,
|
|
17
|
-
required: true,
|
|
18
|
-
},
|
|
19
|
-
details: {
|
|
20
|
-
type: Object,
|
|
21
|
-
required: true,
|
|
22
|
-
},
|
|
23
|
-
});
|
|
24
|
-
exports.UserFeedbackSchema = UserFeedback;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserFeedbackSchema = void 0;
|
|
4
|
+
const mongoose_1 = require("mongoose");
|
|
5
|
+
const UserFeedback = new mongoose_1.Schema({
|
|
6
|
+
employeeId: {
|
|
7
|
+
type: String,
|
|
8
|
+
required: true,
|
|
9
|
+
index: true,
|
|
10
|
+
},
|
|
11
|
+
feedbackTime: {
|
|
12
|
+
type: Number,
|
|
13
|
+
required: true,
|
|
14
|
+
},
|
|
15
|
+
date: {
|
|
16
|
+
type: String,
|
|
17
|
+
required: true,
|
|
18
|
+
},
|
|
19
|
+
details: {
|
|
20
|
+
type: Object,
|
|
21
|
+
required: true,
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
exports.UserFeedbackSchema = UserFeedback;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Schema } from 'mongoose';
|
|
2
|
-
export declare const userGoalSchema: Schema<import("mongoose").Document<any, any, any>, import("mongoose").Model<import("mongoose").Document<any, any, any>, any, any>, undefined, {}>;
|
|
1
|
+
import { Schema } from 'mongoose';
|
|
2
|
+
export declare const userGoalSchema: Schema<import("mongoose").Document<any, any, any>, import("mongoose").Model<import("mongoose").Document<any, any, any>, any, any>, undefined, {}>;
|
package/dist/schema/userGoal.js
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.userGoalSchema = void 0;
|
|
4
|
-
const mongoose_1 = require("mongoose");
|
|
5
|
-
const userGoal = new mongoose_1.Schema({
|
|
6
|
-
employeeId: {
|
|
7
|
-
type: String,
|
|
8
|
-
required: true,
|
|
9
|
-
},
|
|
10
|
-
date: {
|
|
11
|
-
type: String,
|
|
12
|
-
required: true,
|
|
13
|
-
},
|
|
14
|
-
goalType: {
|
|
15
|
-
type: String,
|
|
16
|
-
required: true,
|
|
17
|
-
},
|
|
18
|
-
goal: {
|
|
19
|
-
type: Array,
|
|
20
|
-
required: true,
|
|
21
|
-
},
|
|
22
|
-
status: {
|
|
23
|
-
type: String,
|
|
24
|
-
required: true,
|
|
25
|
-
},
|
|
26
|
-
weekNumber: {
|
|
27
|
-
type: Number,
|
|
28
|
-
required: true,
|
|
29
|
-
},
|
|
30
|
-
time: {
|
|
31
|
-
type: Number,
|
|
32
|
-
required: true,
|
|
33
|
-
},
|
|
34
|
-
});
|
|
35
|
-
userGoal.index({ employeeId: 1, date: -1 }, {
|
|
36
|
-
unique: false,
|
|
37
|
-
});
|
|
38
|
-
exports.userGoalSchema = userGoal;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.userGoalSchema = void 0;
|
|
4
|
+
const mongoose_1 = require("mongoose");
|
|
5
|
+
const userGoal = new mongoose_1.Schema({
|
|
6
|
+
employeeId: {
|
|
7
|
+
type: String,
|
|
8
|
+
required: true,
|
|
9
|
+
},
|
|
10
|
+
date: {
|
|
11
|
+
type: String,
|
|
12
|
+
required: true,
|
|
13
|
+
},
|
|
14
|
+
goalType: {
|
|
15
|
+
type: String,
|
|
16
|
+
required: true,
|
|
17
|
+
},
|
|
18
|
+
goal: {
|
|
19
|
+
type: Array,
|
|
20
|
+
required: true,
|
|
21
|
+
},
|
|
22
|
+
status: {
|
|
23
|
+
type: String,
|
|
24
|
+
required: true,
|
|
25
|
+
},
|
|
26
|
+
weekNumber: {
|
|
27
|
+
type: Number,
|
|
28
|
+
required: true,
|
|
29
|
+
},
|
|
30
|
+
time: {
|
|
31
|
+
type: Number,
|
|
32
|
+
required: true,
|
|
33
|
+
},
|
|
34
|
+
});
|
|
35
|
+
userGoal.index({ employeeId: 1, date: -1 }, {
|
|
36
|
+
unique: false,
|
|
37
|
+
});
|
|
38
|
+
exports.userGoalSchema = userGoal;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Schema } from 'mongoose';
|
|
2
|
-
export declare const userJoyLevelQaSchema: Schema<import("mongoose").Document<any, any, any>, import("mongoose").Model<import("mongoose").Document<any, any, any>, any, any>, undefined, {}>;
|
|
1
|
+
import { Schema } from 'mongoose';
|
|
2
|
+
export declare const userJoyLevelQaSchema: Schema<import("mongoose").Document<any, any, any>, import("mongoose").Model<import("mongoose").Document<any, any, any>, any, any>, undefined, {}>;
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.userJoyLevelQaSchema = void 0;
|
|
4
|
-
const mongoose_1 = require("mongoose");
|
|
5
|
-
const userJoyLevelQa = new mongoose_1.Schema({
|
|
6
|
-
employeeId: {
|
|
7
|
-
type: String,
|
|
8
|
-
required: true,
|
|
9
|
-
index: true,
|
|
10
|
-
},
|
|
11
|
-
date: {
|
|
12
|
-
type: String,
|
|
13
|
-
required: true,
|
|
14
|
-
},
|
|
15
|
-
masterEmotionKey: {
|
|
16
|
-
type: String,
|
|
17
|
-
required: true,
|
|
18
|
-
},
|
|
19
|
-
question: {
|
|
20
|
-
// If value is "Brew" then it will be treated as entry from brews table
|
|
21
|
-
type: String,
|
|
22
|
-
required: true,
|
|
23
|
-
},
|
|
24
|
-
answer: {
|
|
25
|
-
// If value is "Brew" then it will be treated as entry from brews table
|
|
26
|
-
type: String,
|
|
27
|
-
required: true,
|
|
28
|
-
},
|
|
29
|
-
yes: {
|
|
30
|
-
type: Number,
|
|
31
|
-
required: false,
|
|
32
|
-
},
|
|
33
|
-
no: {
|
|
34
|
-
type: Number,
|
|
35
|
-
required: false,
|
|
36
|
-
},
|
|
37
|
-
maybe: {
|
|
38
|
-
type: Number,
|
|
39
|
-
required: false,
|
|
40
|
-
},
|
|
41
|
-
time: {
|
|
42
|
-
type: Number,
|
|
43
|
-
required: true,
|
|
44
|
-
},
|
|
45
|
-
});
|
|
46
|
-
userJoyLevelQa.index({ employeeId: 1, date: -1 }, {
|
|
47
|
-
unique: false,
|
|
48
|
-
});
|
|
49
|
-
exports.userJoyLevelQaSchema = userJoyLevelQa;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.userJoyLevelQaSchema = void 0;
|
|
4
|
+
const mongoose_1 = require("mongoose");
|
|
5
|
+
const userJoyLevelQa = new mongoose_1.Schema({
|
|
6
|
+
employeeId: {
|
|
7
|
+
type: String,
|
|
8
|
+
required: true,
|
|
9
|
+
index: true,
|
|
10
|
+
},
|
|
11
|
+
date: {
|
|
12
|
+
type: String,
|
|
13
|
+
required: true,
|
|
14
|
+
},
|
|
15
|
+
masterEmotionKey: {
|
|
16
|
+
type: String,
|
|
17
|
+
required: true,
|
|
18
|
+
},
|
|
19
|
+
question: {
|
|
20
|
+
// If value is "Brew" then it will be treated as entry from brews table
|
|
21
|
+
type: String,
|
|
22
|
+
required: true,
|
|
23
|
+
},
|
|
24
|
+
answer: {
|
|
25
|
+
// If value is "Brew" then it will be treated as entry from brews table
|
|
26
|
+
type: String,
|
|
27
|
+
required: true,
|
|
28
|
+
},
|
|
29
|
+
yes: {
|
|
30
|
+
type: Number,
|
|
31
|
+
required: false,
|
|
32
|
+
},
|
|
33
|
+
no: {
|
|
34
|
+
type: Number,
|
|
35
|
+
required: false,
|
|
36
|
+
},
|
|
37
|
+
maybe: {
|
|
38
|
+
type: Number,
|
|
39
|
+
required: false,
|
|
40
|
+
},
|
|
41
|
+
time: {
|
|
42
|
+
type: Number,
|
|
43
|
+
required: true,
|
|
44
|
+
},
|
|
45
|
+
});
|
|
46
|
+
userJoyLevelQa.index({ employeeId: 1, date: -1 }, {
|
|
47
|
+
unique: false,
|
|
48
|
+
});
|
|
49
|
+
exports.userJoyLevelQaSchema = userJoyLevelQa;
|
package/dist/schema/userLog.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Schema } from 'mongoose';
|
|
2
|
-
export declare const UserLogSchema: Schema<import("mongoose").Document<any, any, any>, import("mongoose").Model<import("mongoose").Document<any, any, any>, any, any>, undefined, {}>;
|
|
1
|
+
import { Schema } from 'mongoose';
|
|
2
|
+
export declare const UserLogSchema: Schema<import("mongoose").Document<any, any, any>, import("mongoose").Model<import("mongoose").Document<any, any, any>, any, any>, undefined, {}>;
|