@culturefy/shared 1.0.28 → 1.0.29

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 (106) hide show
  1. package/build/cjs/dto/index.js +8 -0
  2. package/build/cjs/dto/index.js.map +1 -1
  3. package/build/cjs/index.js +6 -0
  4. package/build/cjs/index.js.map +1 -1
  5. package/build/cjs/interfaces/index.js +16 -0
  6. package/build/cjs/interfaces/index.js.map +1 -0
  7. package/build/cjs/interfaces/keycloak.js +2 -0
  8. package/build/cjs/interfaces/keycloak.js.map +1 -0
  9. package/build/cjs/interfaces/user.js +2 -0
  10. package/build/cjs/interfaces/user.js.map +1 -0
  11. package/build/cjs/middlewares/index.js +10 -0
  12. package/build/cjs/middlewares/index.js.map +1 -0
  13. package/build/cjs/middlewares/token-validation.js +485 -0
  14. package/build/cjs/middlewares/token-validation.js.map +1 -0
  15. package/build/cjs/models/user.model.js +507 -0
  16. package/build/cjs/models/user.model.js.map +1 -0
  17. package/build/cjs/service/keycloak.service.js +1003 -0
  18. package/build/cjs/service/keycloak.service.js.map +1 -0
  19. package/build/cjs/service/user.service.js +95 -0
  20. package/build/cjs/service/user.service.js.map +1 -0
  21. package/build/cjs/utils/index.js +6 -0
  22. package/build/cjs/utils/index.js.map +1 -1
  23. package/build/cjs/utils/jwt.js +14 -0
  24. package/build/cjs/utils/jwt.js.map +1 -0
  25. package/build/cjs/utils/response.js +19 -0
  26. package/build/cjs/utils/response.js.map +1 -1
  27. package/build/esm/dto/index.js +1 -1
  28. package/build/esm/dto/index.js.map +1 -1
  29. package/build/esm/index.js +1 -0
  30. package/build/esm/index.js.map +1 -1
  31. package/build/esm/interfaces/index.js +3 -0
  32. package/build/esm/interfaces/index.js.map +1 -0
  33. package/build/esm/interfaces/keycloak.js +2 -0
  34. package/build/esm/interfaces/keycloak.js.map +1 -0
  35. package/build/esm/interfaces/user.js +2 -0
  36. package/build/esm/interfaces/user.js.map +1 -0
  37. package/build/esm/middlewares/index.js +2 -0
  38. package/build/esm/middlewares/index.js.map +1 -0
  39. package/build/esm/middlewares/token-validation.js +481 -0
  40. package/build/esm/middlewares/token-validation.js.map +1 -0
  41. package/build/esm/models/user.model.js +497 -0
  42. package/build/esm/models/user.model.js.map +1 -0
  43. package/build/esm/service/keycloak.service.js +996 -0
  44. package/build/esm/service/keycloak.service.js.map +1 -0
  45. package/build/esm/service/user.service.js +91 -0
  46. package/build/esm/service/user.service.js.map +1 -0
  47. package/build/esm/utils/index.js +1 -0
  48. package/build/esm/utils/index.js.map +1 -1
  49. package/build/esm/utils/jwt.js +10 -0
  50. package/build/esm/utils/jwt.js.map +1 -0
  51. package/build/esm/utils/response.js +18 -0
  52. package/build/esm/utils/response.js.map +1 -1
  53. package/build/package.json +13 -2
  54. package/build/src/dto/index.d.ts +1 -0
  55. package/build/src/dto/index.js +3 -0
  56. package/build/src/dto/index.js.map +1 -1
  57. package/build/src/index.d.ts +1 -0
  58. package/build/src/index.js +1 -0
  59. package/build/src/index.js.map +1 -1
  60. package/build/src/interfaces/index.d.ts +2 -0
  61. package/build/src/interfaces/index.js +6 -0
  62. package/build/src/interfaces/index.js.map +1 -0
  63. package/build/src/interfaces/keycloak.d.ts +151 -0
  64. package/build/src/interfaces/keycloak.js +3 -0
  65. package/build/src/interfaces/keycloak.js.map +1 -0
  66. package/build/src/interfaces/user.d.ts +5 -0
  67. package/build/src/interfaces/user.js +3 -0
  68. package/build/src/interfaces/user.js.map +1 -0
  69. package/build/src/middlewares/index.d.ts +1 -0
  70. package/build/src/middlewares/index.js +5 -0
  71. package/build/src/middlewares/index.js.map +1 -0
  72. package/build/src/middlewares/token-validation.d.ts +17 -0
  73. package/build/src/middlewares/token-validation.js +329 -0
  74. package/build/src/middlewares/token-validation.js.map +1 -0
  75. package/build/src/models/user.model.d.ts +193 -0
  76. package/build/src/models/user.model.js +401 -0
  77. package/build/src/models/user.model.js.map +1 -0
  78. package/build/src/service/keycloak.service.d.ts +88 -0
  79. package/build/src/service/keycloak.service.js +1059 -0
  80. package/build/src/service/keycloak.service.js.map +1 -0
  81. package/build/src/service/user.service.d.ts +11 -0
  82. package/build/src/service/user.service.js +118 -0
  83. package/build/src/service/user.service.js.map +1 -0
  84. package/build/src/utils/index.d.ts +1 -0
  85. package/build/src/utils/index.js +1 -0
  86. package/build/src/utils/index.js.map +1 -1
  87. package/build/src/utils/jwt.d.ts +1 -0
  88. package/build/src/utils/jwt.js +14 -0
  89. package/build/src/utils/jwt.js.map +1 -0
  90. package/build/src/utils/response.d.ts +1 -0
  91. package/build/src/utils/response.js +19 -0
  92. package/build/src/utils/response.js.map +1 -1
  93. package/package.json +13 -2
  94. package/src/dto/index.ts +1 -0
  95. package/src/index.ts +2 -1
  96. package/src/interfaces/index.ts +2 -0
  97. package/src/interfaces/keycloak.ts +161 -0
  98. package/src/interfaces/user.ts +5 -0
  99. package/src/middlewares/index.ts +1 -0
  100. package/src/middlewares/token-validation.ts +456 -0
  101. package/src/models/user.model.ts +488 -0
  102. package/src/service/keycloak.service.ts +1104 -0
  103. package/src/service/user.service.ts +99 -0
  104. package/src/utils/index.ts +2 -1
  105. package/src/utils/jwt.ts +10 -0
  106. package/src/utils/response.ts +19 -0
@@ -0,0 +1,507 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.UserYoutubeAuthTokensDTO = exports.UserModel = exports.UserEmailAuthTokensDTO = exports.User = exports.USER_TYPE = exports.USER_DOCUMENT_NAME = exports.USER_COLLECTION_NAME = exports.ThirdPartyAccounts_Enums = exports.SocialLinksDTO = exports.RewardDTO = exports.MentorshipDTO = void 0;
5
+ var _dto = require("../dto");
6
+ var _mongoose = require("mongoose");
7
+ const USER_DOCUMENT_NAME = exports.USER_DOCUMENT_NAME = 'User';
8
+ const USER_COLLECTION_NAME = exports.USER_COLLECTION_NAME = 'users';
9
+ let USER_TYPE = exports.USER_TYPE = /*#__PURE__*/function (USER_TYPE) {
10
+ USER_TYPE["USER"] = "USER";
11
+ USER_TYPE["ADMIN"] = "ADMIN";
12
+ USER_TYPE["SUPER_ADMIN"] = "SUPER_ADMIN";
13
+ return USER_TYPE;
14
+ }({});
15
+ class SocialLinksDTO {
16
+ constructor() {
17
+ this.facebook = '';
18
+ this.linkedin = '';
19
+ this.instagram = '';
20
+ this.twitter = '';
21
+ }
22
+ }
23
+ exports.SocialLinksDTO = SocialLinksDTO;
24
+ class MentorshipDTO {
25
+ constructor() {
26
+ this.isOpenToMentorship = false;
27
+ this.isLookingForMentorship = false;
28
+ }
29
+ }
30
+ exports.MentorshipDTO = MentorshipDTO;
31
+ let ThirdPartyAccounts_Enums = exports.ThirdPartyAccounts_Enums = /*#__PURE__*/function (ThirdPartyAccounts_Enums) {
32
+ ThirdPartyAccounts_Enums["GOOGLE"] = "GOOGLE";
33
+ ThirdPartyAccounts_Enums["MICROSOFT"] = "MICROSOFT";
34
+ return ThirdPartyAccounts_Enums;
35
+ }({});
36
+ class UserEmailAuthTokensDTO {
37
+ constructor() {
38
+ this.refresh_token = '';
39
+ this.access_token = '';
40
+ this.accountType = ThirdPartyAccounts_Enums.GOOGLE;
41
+ this.email = '';
42
+ this.token_expiry = 0;
43
+ }
44
+ }
45
+ exports.UserEmailAuthTokensDTO = UserEmailAuthTokensDTO;
46
+ class UserYoutubeAuthTokensDTO {
47
+ constructor() {
48
+ this.refresh_token = '';
49
+ this.access_token = '';
50
+ this.email = '';
51
+ this.token_expiry = 0;
52
+ }
53
+ }
54
+ exports.UserYoutubeAuthTokensDTO = UserYoutubeAuthTokensDTO;
55
+ class RewardDTO {
56
+ constructor() {
57
+ this.points = 0;
58
+ this.pointsToSend = 0;
59
+ this.pointsToReedem = 0;
60
+ this.amount = 0;
61
+ }
62
+ }
63
+ exports.RewardDTO = RewardDTO;
64
+ class User {
65
+ constructor() {
66
+ this._id = new _mongoose.Schema.Types.ObjectId('');
67
+ this.userId = new _mongoose.Schema.Types.ObjectId('');
68
+ this.id = new _mongoose.Schema.Types.ObjectId('');
69
+ this.fcm_token = [];
70
+ this.google_id = '';
71
+ this.cultureGroup = [];
72
+ this.facebook_id = '';
73
+ this.stripe_customerId = '';
74
+ this.email = '';
75
+ // employeeId?: number | null = null;
76
+ this.employeeId = '';
77
+ this.password = '';
78
+ this.profilePicUrl = '';
79
+ this.role = void 0;
80
+ this.roleId = new _mongoose.Schema.Types.ObjectId('');
81
+ this.verified = true;
82
+ this.status = true;
83
+ this.createdAt = new Date();
84
+ this.updatedAt = new Date();
85
+ this.type = USER_TYPE.USER;
86
+ this.firstName = '';
87
+ this.lastName = '';
88
+ this.dateOfBirth = null;
89
+ this.phoneNumber = '';
90
+ this.location = new _dto.LocationDTO();
91
+ this.socialLinks = new SocialLinksDTO();
92
+ this.business = new _mongoose.Schema.Types.ObjectId('');
93
+ this.businessId = new _mongoose.Schema.Types.ObjectId('');
94
+ this.bio = '';
95
+ this.gender = '';
96
+ this.skills = [];
97
+ this.reward = new RewardDTO();
98
+ this.profileviews = 0;
99
+ this.website = '';
100
+ this.lifeExperience = [];
101
+ this.position = '';
102
+ this.isMentor = false;
103
+ this.permissions = [];
104
+ this.businessQuestionsAnswered = true;
105
+ this.following = [];
106
+ this.invitationHash = '';
107
+ this.invitationHashExpiryDate = new Date();
108
+ this.isinvitationHashExpired = false;
109
+ this.coverPicUrl = '';
110
+ this.isDeleted = false;
111
+ this.isActive = false;
112
+ this.departmentId = undefined;
113
+ this.mentorship = new MentorshipDTO();
114
+ this.ethnicity = '';
115
+ // race?: string = ''
116
+ this.personOfColor = '';
117
+ this.tenure = 0;
118
+ this.satisfactionLevel = 1;
119
+ this.satisfactionLevelDate = new Date();
120
+ this.performanceLevel = 1;
121
+ this.performanceLevelDate = new Date();
122
+ this.salary = 0;
123
+ this.hireDate = new Date();
124
+ this.jobLevel = void 0;
125
+ this.supervisorId = new _mongoose.Schema.Types.ObjectId('');
126
+ this.enpsRating = 0;
127
+ this.disability = 'no';
128
+ this.diverse = false;
129
+ this.women = false;
130
+ this.poc = false;
131
+ this.isMfaVerified = false;
132
+ this.mfaVerificationType = "none";
133
+ this.verificationOtp = {
134
+ otp: '',
135
+ expiresAt: new Date()
136
+ };
137
+ this.thirdPartyAuthTokens = new UserEmailAuthTokensDTO();
138
+ this.youtubeAuthTokens = new UserYoutubeAuthTokensDTO();
139
+ }
140
+ }
141
+ exports.User = User;
142
+ const otpSchema = new _mongoose.Schema({
143
+ otp: {
144
+ type: String,
145
+ required: true
146
+ },
147
+ expiresAt: {
148
+ type: Date,
149
+ required: true
150
+ }
151
+ });
152
+ const schema = new _mongoose.Schema({
153
+ email: {
154
+ type: _mongoose.Schema.Types.String,
155
+ required: false,
156
+ // unique: true,
157
+ trim: true
158
+ // select: false,
159
+ },
160
+ userId: {
161
+ type: _mongoose.Schema.Types.ObjectId,
162
+ required: false
163
+ },
164
+ employeeId: {
165
+ type: _mongoose.Schema.Types.String,
166
+ required: false
167
+ },
168
+ password: {
169
+ type: _mongoose.Schema.Types.String,
170
+ required: false,
171
+ select: false
172
+ },
173
+ profileviews: {
174
+ type: _mongoose.Schema.Types.Number,
175
+ required: false,
176
+ default: 0
177
+ },
178
+ profilePicUrl: {
179
+ type: _mongoose.Schema.Types.String,
180
+ required: false,
181
+ trim: true
182
+ },
183
+ cultureGroup: [{
184
+ type: _mongoose.Schema.Types.ObjectId,
185
+ required: false,
186
+ ref: 'Cultur'
187
+ }],
188
+ firstName: {
189
+ type: _mongoose.Schema.Types.String,
190
+ required: false,
191
+ trim: true
192
+ },
193
+ lastName: {
194
+ type: _mongoose.Schema.Types.String,
195
+ required: false,
196
+ trim: true
197
+ },
198
+ dateOfBirth: {
199
+ type: _mongoose.Schema.Types.Date,
200
+ required: false
201
+ },
202
+ phoneNumber: {
203
+ type: _mongoose.Schema.Types.String,
204
+ required: false
205
+ },
206
+ location: {
207
+ type: _mongoose.Schema.Types.Mixed,
208
+ required: false
209
+ },
210
+ role: {
211
+ type: _mongoose.Schema.Types.ObjectId,
212
+ required: false
213
+ },
214
+ roleId: {
215
+ type: _mongoose.Schema.Types.ObjectId,
216
+ required: false
217
+ },
218
+ business: {
219
+ type: _mongoose.Schema.Types.ObjectId,
220
+ ref: 'Businesses',
221
+ required: false
222
+ },
223
+ following: {
224
+ type: [_mongoose.Schema.Types.ObjectId],
225
+ ref: USER_DOCUMENT_NAME,
226
+ required: false,
227
+ default: []
228
+ },
229
+ businessId: {
230
+ type: _mongoose.Schema.Types.ObjectId,
231
+ ref: 'Businesses',
232
+ required: false
233
+ // strictPopulate: false,
234
+ },
235
+ fcm_token: {
236
+ type: _mongoose.Schema.Types.Array,
237
+ required: false
238
+ },
239
+ bio: {
240
+ type: _mongoose.Schema.Types.String,
241
+ required: false
242
+ },
243
+ gender: {
244
+ type: _mongoose.Schema.Types.String,
245
+ required: false
246
+ },
247
+ skills: [{
248
+ type: _mongoose.Schema.Types.ObjectId,
249
+ required: false,
250
+ ref: 'userSkills'
251
+ }],
252
+ website: {
253
+ type: _mongoose.Schema.Types.String,
254
+ required: false
255
+ },
256
+ socialLinks: {
257
+ facebook: {
258
+ type: _mongoose.Schema.Types.String,
259
+ required: false
260
+ },
261
+ linkedin: {
262
+ type: _mongoose.Schema.Types.String,
263
+ required: false
264
+ },
265
+ instagram: {
266
+ type: _mongoose.Schema.Types.String,
267
+ required: false
268
+ },
269
+ twitter: {
270
+ type: _mongoose.Schema.Types.String,
271
+ required: false
272
+ }
273
+ },
274
+ lifeExperience: [{
275
+ type: _mongoose.Schema.Types.ObjectId,
276
+ required: false,
277
+ ref: 'Life'
278
+ }],
279
+ position: {
280
+ type: _mongoose.Schema.Types.String,
281
+ required: false
282
+ },
283
+ isMentor: {
284
+ type: _mongoose.Schema.Types.Boolean,
285
+ required: false
286
+ },
287
+ permissions: [{
288
+ type: _mongoose.Schema.Types.Mixed,
289
+ required: false
290
+ }],
291
+ businessQuestionsAnswered: {
292
+ type: _mongoose.Schema.Types.Boolean,
293
+ required: false,
294
+ default: true
295
+ },
296
+ type: {
297
+ type: _mongoose.Schema.Types.String,
298
+ required: false
299
+ // enum: [USER_TYPE.ADMIN, USER_TYPE.SUPER_ADMIN, USER_TYPE.USER]
300
+ },
301
+ reward: {
302
+ points: {
303
+ type: _mongoose.Schema.Types.Number,
304
+ default: 0,
305
+ min: 0
306
+ },
307
+ pointsToSend: {
308
+ type: _mongoose.Schema.Types.Number,
309
+ default: 0,
310
+ min: 0
311
+ },
312
+ pointsToReedem: {
313
+ type: _mongoose.Schema.Types.Number,
314
+ default: 0,
315
+ min: 0
316
+ },
317
+ amount: {
318
+ type: _mongoose.Schema.Types.Number,
319
+ default: 0,
320
+ min: 0
321
+ }
322
+ },
323
+ verified: {
324
+ type: _mongoose.Schema.Types.Boolean,
325
+ default: false
326
+ },
327
+ blocked_transactions: {
328
+ type: _mongoose.Schema.Types.Boolean,
329
+ default: false
330
+ },
331
+ status: {
332
+ type: _mongoose.Schema.Types.Boolean,
333
+ default: true
334
+ },
335
+ createdAt: {
336
+ type: Date,
337
+ required: false,
338
+ select: false
339
+ },
340
+ updatedAt: {
341
+ type: Date,
342
+ required: false,
343
+ select: false
344
+ },
345
+ invitationHash: {
346
+ type: _mongoose.Schema.Types.String,
347
+ required: false
348
+ },
349
+ invitationHashExpiryDate: {
350
+ type: _mongoose.Schema.Types.Date,
351
+ required: false
352
+ },
353
+ isinvitationHashExpired: {
354
+ type: _mongoose.Schema.Types.Boolean,
355
+ default: false
356
+ },
357
+ coverPicUrl: {
358
+ type: _mongoose.Schema.Types.String,
359
+ required: false
360
+ },
361
+ isDeleted: {
362
+ type: _mongoose.Schema.Types.Boolean,
363
+ default: false
364
+ },
365
+ isActive: {
366
+ type: _mongoose.Schema.Types.Boolean,
367
+ default: false
368
+ },
369
+ departmentId: {
370
+ type: _mongoose.Schema.Types.ObjectId,
371
+ required: false
372
+ },
373
+ mentorship: {
374
+ isOpenToMentorship: {
375
+ type: _mongoose.Schema.Types.Boolean,
376
+ default: false
377
+ },
378
+ isLookingForMentorship: {
379
+ type: _mongoose.Schema.Types.Boolean,
380
+ default: false
381
+ }
382
+ },
383
+ ethnicity: {
384
+ type: _mongoose.Schema.Types.String,
385
+ required: false
386
+ },
387
+ personOfColor: {
388
+ type: _mongoose.Schema.Types.String,
389
+ required: false
390
+ },
391
+ tenure: {
392
+ type: _mongoose.Schema.Types.Number,
393
+ required: false
394
+ },
395
+ satisfactionLevel: {
396
+ type: _mongoose.Schema.Types.Number,
397
+ required: false
398
+ },
399
+ satisfactionLevelDate: {
400
+ type: _mongoose.Schema.Types.Date,
401
+ required: false
402
+ },
403
+ performanceLevel: {
404
+ type: _mongoose.Schema.Types.Number,
405
+ required: false
406
+ },
407
+ performanceLevelDate: {
408
+ type: _mongoose.Schema.Types.Date,
409
+ required: false
410
+ },
411
+ salary: {
412
+ type: _mongoose.Schema.Types.Number,
413
+ required: false
414
+ },
415
+ hireDate: {
416
+ type: _mongoose.Schema.Types.Date,
417
+ required: false
418
+ },
419
+ jobLevel: {
420
+ type: _mongoose.Schema.Types.String,
421
+ required: false,
422
+ default: ''
423
+ },
424
+ supervisorId: {
425
+ type: _mongoose.Schema.Types.ObjectId,
426
+ required: false
427
+ },
428
+ enpsRating: {
429
+ type: _mongoose.Schema.Types.Number,
430
+ required: false
431
+ },
432
+ disability: {
433
+ type: _mongoose.Schema.Types.String,
434
+ required: false,
435
+ default: 'no'
436
+ },
437
+ diverse: {
438
+ type: _mongoose.Schema.Types.Boolean,
439
+ required: false
440
+ // default: false
441
+ },
442
+ women: {
443
+ type: _mongoose.Schema.Types.Boolean,
444
+ required: false
445
+ // default: false
446
+ },
447
+ poc: {
448
+ type: _mongoose.Schema.Types.Boolean,
449
+ required: false
450
+ // default: false
451
+ },
452
+ isMfaVerified: {
453
+ type: _mongoose.Schema.Types.Boolean,
454
+ default: false,
455
+ required: false
456
+ // default: false
457
+ },
458
+ mfaVerificationType: {
459
+ type: _mongoose.Schema.Types.String,
460
+ default: 'none',
461
+ required: false
462
+ // default: false
463
+ },
464
+ verificationOtp: {
465
+ type: otpSchema,
466
+ default: null,
467
+ required: false
468
+ // default: false
469
+ },
470
+ thirdPartyAuthTokens: {
471
+ access_token: {
472
+ type: _mongoose.Schema.Types.String
473
+ },
474
+ refresh_token: {
475
+ type: _mongoose.Schema.Types.String
476
+ },
477
+ accountType: {
478
+ type: _mongoose.Schema.Types.String
479
+ },
480
+ email: {
481
+ type: _mongoose.Schema.Types.String
482
+ },
483
+ token_expiry: {
484
+ type: _mongoose.Schema.Types.Number
485
+ }
486
+ },
487
+ youtubeAuthTokens: {
488
+ access_token: {
489
+ type: _mongoose.Schema.Types.String
490
+ },
491
+ refresh_token: {
492
+ type: _mongoose.Schema.Types.String
493
+ },
494
+ email: {
495
+ type: _mongoose.Schema.Types.String
496
+ },
497
+ token_expiry: {
498
+ type: _mongoose.Schema.Types.Number
499
+ }
500
+ }
501
+ }, {
502
+ versionKey: false,
503
+ timestamps: true,
504
+ collection: USER_COLLECTION_NAME
505
+ });
506
+ const UserModel = exports.UserModel = (0, _mongoose.model)(USER_DOCUMENT_NAME, schema, USER_COLLECTION_NAME);
507
+ //# sourceMappingURL=user.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.model.js","names":["_dto","require","_mongoose","USER_DOCUMENT_NAME","exports","USER_COLLECTION_NAME","USER_TYPE","SocialLinksDTO","constructor","facebook","linkedin","instagram","twitter","MentorshipDTO","isOpenToMentorship","isLookingForMentorship","ThirdPartyAccounts_Enums","UserEmailAuthTokensDTO","refresh_token","access_token","accountType","GOOGLE","email","token_expiry","UserYoutubeAuthTokensDTO","RewardDTO","points","pointsToSend","pointsToReedem","amount","User","_id","Schema","Types","ObjectId","userId","id","fcm_token","google_id","cultureGroup","facebook_id","stripe_customerId","employeeId","password","profilePicUrl","role","roleId","verified","status","createdAt","Date","updatedAt","type","USER","firstName","lastName","dateOfBirth","phoneNumber","location","LocationDTO","socialLinks","business","businessId","bio","gender","skills","reward","profileviews","website","lifeExperience","position","isMentor","permissions","businessQuestionsAnswered","following","invitationHash","invitationHashExpiryDate","isinvitationHashExpired","coverPicUrl","isDeleted","isActive","departmentId","undefined","mentorship","ethnicity","personOfColor","tenure","satisfactionLevel","satisfactionLevelDate","performanceLevel","performanceLevelDate","salary","hireDate","jobLevel","supervisorId","enpsRating","disability","diverse","women","poc","isMfaVerified","mfaVerificationType","verificationOtp","otp","expiresAt","thirdPartyAuthTokens","youtubeAuthTokens","otpSchema","String","required","schema","trim","select","Number","default","ref","Mixed","Array","Boolean","min","blocked_transactions","versionKey","timestamps","collection","UserModel","model"],"sources":["../../../src/models/user.model.ts"],"sourcesContent":["import { LocationDTO } from '../dto';\nimport { model, Schema } from 'mongoose';\n\nexport const USER_DOCUMENT_NAME = 'User';\nexport const USER_COLLECTION_NAME = 'users';\n\nexport enum USER_TYPE {\n USER = \"USER\",\n ADMIN = \"ADMIN\",\n SUPER_ADMIN = \"SUPER_ADMIN\",\n}\n\nexport class SocialLinksDTO {\n facebook: string | null = ''\n linkedin: string | null = ''\n instagram: string | null = ''\n twitter: string | null = ''\n}\n\nexport interface ISocialLinks {\n facebook: string | null,\n linkedin: string | null,\n instagram: string | null,\n twitter: string | null,\n}\n\n\nexport class MentorshipDTO {\n isOpenToMentorship: boolean = false\n isLookingForMentorship: boolean = false\n}\n\nexport enum ThirdPartyAccounts_Enums {\n GOOGLE = \"GOOGLE\",\n MICROSOFT = \"MICROSOFT\",\n}\n\nexport class UserEmailAuthTokensDTO {\n refresh_token: string = ''\n access_token: string = ''\n accountType: ThirdPartyAccounts_Enums.GOOGLE | ThirdPartyAccounts_Enums.MICROSOFT = ThirdPartyAccounts_Enums.GOOGLE\n email: string = ''\n token_expiry: number = 0\n}\n\nexport class UserYoutubeAuthTokensDTO {\n refresh_token: string = ''\n access_token: string = ''\n email: string = ''\n token_expiry: number = 0\n}\n\nexport class RewardDTO {\n points: number | null = 0;\n pointsToSend: number | null = 0;\n pointsToReedem: number | null = 0;\n amount: number | null = 0;\n}\n\nexport class User implements IUser {\n _id: Schema.Types.ObjectId = new Schema.Types.ObjectId('');\n userId?: Schema.Types.ObjectId = new Schema.Types.ObjectId('');\n id: Schema.Types.ObjectId = new Schema.Types.ObjectId('');\n fcm_token: Array<any> = [];\n google_id?: string | undefined = '';\n cultureGroup?: Array<Schema.Types.ObjectId> = [];\n facebook_id?: string | undefined = '';\n stripe_customerId: string | null = '';\n email?: string | undefined = '';\n // employeeId?: number | null = null;\n employeeId?: string = '';\n password?: string | null | undefined = '';\n profilePicUrl?: string | undefined = '';\n role?: Schema.Types.ObjectId | undefined;\n roleId?: Schema.Types.ObjectId | null = new Schema.Types.ObjectId('');\n verified?: boolean | undefined = true;\n status?: boolean | undefined = true;\n createdAt: Date = new Date();\n updatedAt?: Date | undefined = new Date();\n type?: USER_TYPE.ADMIN | USER_TYPE.SUPER_ADMIN | USER_TYPE.USER = USER_TYPE.USER\n firstName?: string = '';\n lastName?: string = '';\n dateOfBirth?: Date | null = null;\n phoneNumber?: string = '';\n location?: LocationDTO = new LocationDTO()\n socialLinks?: SocialLinksDTO = new SocialLinksDTO()\n business?: Schema.Types.ObjectId = new Schema.Types.ObjectId('');\n businessId?: Schema.Types.ObjectId = new Schema.Types.ObjectId('');\n bio?: string = '';\n gender?: string = '';\n skills?: Array<Schema.Types.ObjectId> = [];\n reward?: RewardDTO = new RewardDTO();\n profileviews?: number = 0;\n website?: string = '';\n lifeExperience?: Array<Schema.Types.ObjectId> = [];\n position?: string = '';\n isMentor?: boolean = false;\n permissions?: string[] | undefined = [];\n\n businessQuestionsAnswered?: boolean = true;\n following?: Schema.Types.ObjectId[] = [];\n\n invitationHash?: string = ''\n invitationHashExpiryDate?: Date = new Date()\n isinvitationHashExpired?: boolean = false\n coverPicUrl?: string = ''\n isDeleted?: boolean = false\n isActive?: boolean = false\n departmentId?: Schema.Types.ObjectId | undefined = undefined;\n mentorship?: MentorshipDTO = new MentorshipDTO()\n ethnicity?: string = ''\n // race?: string = ''\n personOfColor?: string = ''\n tenure?: Number = 0\n satisfactionLevel?: Number = 1\n satisfactionLevelDate?: Date = new Date()\n performanceLevel?: Number = 1\n performanceLevelDate?: Date = new Date()\n salary?: Number = 0\n hireDate?: Date = new Date();\n jobLevel?: ''\n supervisorId?: Schema.Types.ObjectId | undefined = new Schema.Types.ObjectId('')\n enpsRating?: number = 0\n disability?: 'yes' | 'no' = 'no'\n diverse?: boolean = false\n women?: boolean = false\n poc?: boolean = false\n isMfaVerified?: boolean = false\n mfaVerificationType?: string = \"none\"\n verificationOtp?: {\n otp: string;\n expiresAt: Date;\n } = {\n otp: '',\n expiresAt: new Date(),\n }\n\n thirdPartyAuthTokens?: UserEmailAuthTokensDTO = new UserEmailAuthTokensDTO()\n youtubeAuthTokens?: UserYoutubeAuthTokensDTO = new UserYoutubeAuthTokensDTO()\n\n\n}\n\nexport default interface IUser {\n _id: Schema.Types.ObjectId,\n userId?: Schema.Types.ObjectId;\n email?: string;\n // employeeId?: number | null;\n employeeId?: string;\n profileviews?: number;\n password?: string | null;\n profilePicUrl?: string;\n role?: Schema.Types.ObjectId;\n fcm_token?: Array<any>;\n roleId?: Schema.Types.ObjectId | null;\n verified?: boolean;\n blocked_transactions?: boolean;\n status?: boolean;\n createdAt: Date;\n updatedAt?: Date;\n cultureGroup?: Array<Schema.Types.ObjectId>;\n type?: USER_TYPE.ADMIN | USER_TYPE.SUPER_ADMIN | USER_TYPE.USER\n\n firstName?: string,\n lastName?: string,\n dateOfBirth?: Date | null,\n\n phoneNumber?: string,\n location?: LocationDTO,\n reward?: RewardDTO,\n business?: Schema.Types.ObjectId,\n bio?: string,\n gender?: string,\n skills?: Array<Schema.Types.ObjectId>,\n website?: string,\n socialLinks?: ISocialLinks\n lifeExperience?: Array<Schema.Types.ObjectId>,\n businessId?: Schema.Types.ObjectId,\n position?: string,\n isMentor?: boolean,\n permissions?: string[],\n\n businessQuestionsAnswered?: boolean,\n following?: Schema.Types.ObjectId[],\n\n invitationHash?: string\n invitationHashExpiryDate?: Date\n isinvitationHashExpired?: boolean\n coverPicUrl?: string\n isDeleted?: boolean\n isActive?: boolean\n\n departmentId?: Schema.Types.ObjectId | undefined\n mentorship?: MentorshipDTO\n ethnicity?: string\n // race?: string\n personOfColor?: string\n tenure?: Number\n satisfactionLevel?: Number\n satisfactionLevelDate?: Date\n performanceLevel?: Number\n performanceLevelDate?: Date\n salary?: Number\n hireDate?: Date\n jobLevel?: ''\n supervisorId?: Schema.Types.ObjectId | undefined\n enpsRating?: number\n disability?: 'yes' | 'no'\n diverse?: boolean\n women?: boolean\n poc?: boolean\n isMfaVerified?: boolean\n mfaVerificationType?: string\n verificationOtp?: Object\n thirdPartyAuthTokens?: UserEmailAuthTokensDTO\n youtubeAuthTokens?: UserYoutubeAuthTokensDTO\n}\n\nconst otpSchema = new Schema({\n otp: { type: String, required: true },\n expiresAt: { type: Date, required: true }\n});\n\nconst schema = new Schema<IUser>(\n {\n email: {\n type: Schema.Types.String,\n required: false,\n // unique: true,\n trim: true,\n // select: false,\n },\n userId: {\n type: Schema.Types.ObjectId,\n required: false,\n },\n employeeId: {\n type: Schema.Types.String,\n required: false,\n },\n password: {\n type: Schema.Types.String,\n required: false,\n select: false,\n },\n profileviews: {\n type: Schema.Types.Number,\n required: false,\n default: 0,\n },\n profilePicUrl: {\n type: Schema.Types.String,\n required: false,\n trim: true,\n },\n cultureGroup: [{ type: Schema.Types.ObjectId, required: false, ref: 'Cultur' }],\n firstName: {\n type: Schema.Types.String,\n required: false,\n trim: true,\n },\n lastName: {\n type: Schema.Types.String,\n required: false,\n trim: true,\n },\n dateOfBirth: {\n type: Schema.Types.Date,\n required: false,\n },\n phoneNumber: {\n type: Schema.Types.String,\n required: false,\n },\n location: {\n type: Schema.Types.Mixed,\n required: false,\n },\n role: {\n type: Schema.Types.ObjectId,\n required: false,\n },\n roleId: {\n type: Schema.Types.ObjectId,\n required: false,\n },\n business: {\n type: Schema.Types.ObjectId,\n ref: 'Businesses',\n required: false,\n },\n following: {\n type: [Schema.Types.ObjectId],\n ref: USER_DOCUMENT_NAME,\n required: false,\n default: []\n },\n businessId: {\n type: Schema.Types.ObjectId,\n ref: 'Businesses',\n required: false,\n // strictPopulate: false,\n },\n fcm_token: { type: Schema.Types.Array, required: false },\n bio: { type: Schema.Types.String, required: false },\n gender: { type: Schema.Types.String, required: false },\n skills: [{ type: Schema.Types.ObjectId, required: false, ref: 'userSkills' }],\n website: { type: Schema.Types.String, required: false },\n socialLinks: {\n facebook: { type: Schema.Types.String, required: false },\n linkedin: { type: Schema.Types.String, required: false },\n instagram: { type: Schema.Types.String, required: false },\n twitter: { type: Schema.Types.String, required: false },\n },\n lifeExperience: [{ type: Schema.Types.ObjectId, required: false, ref: 'Life' }],\n\n position: { type: Schema.Types.String, required: false },\n isMentor: { type: Schema.Types.Boolean, required: false },\n\n permissions: [{ type: Schema.Types.Mixed, required: false }],\n businessQuestionsAnswered: {\n type: Schema.Types.Boolean,\n required: false,\n default: true\n },\n\n type: {\n type: Schema.Types.String,\n required: false,\n // enum: [USER_TYPE.ADMIN, USER_TYPE.SUPER_ADMIN, USER_TYPE.USER]\n },\n reward: {\n points: { type: Schema.Types.Number, default: 0, min: 0 },\n pointsToSend: { type: Schema.Types.Number, default: 0, min: 0 },\n pointsToReedem: { type: Schema.Types.Number, default: 0, min: 0 },\n amount: { type: Schema.Types.Number, default: 0, min: 0 },\n },\n verified: {\n type: Schema.Types.Boolean,\n default: false,\n },\n blocked_transactions: {\n type: Schema.Types.Boolean,\n default: false,\n },\n status: {\n type: Schema.Types.Boolean,\n default: true,\n },\n createdAt: {\n type: Date,\n required: false,\n select: false,\n },\n updatedAt: {\n type: Date,\n required: false,\n select: false,\n },\n invitationHash: { type: Schema.Types.String, required: false },\n invitationHashExpiryDate: { type: Schema.Types.Date, required: false },\n isinvitationHashExpired: { type: Schema.Types.Boolean, default: false },\n coverPicUrl: { type: Schema.Types.String, required: false },\n isDeleted: {\n type: Schema.Types.Boolean,\n default: false,\n },\n isActive: {\n type: Schema.Types.Boolean,\n default: false,\n },\n departmentId: {\n type: Schema.Types.ObjectId,\n required: false,\n },\n mentorship: {\n isOpenToMentorship: { type: Schema.Types.Boolean, default: false },\n isLookingForMentorship: { type: Schema.Types.Boolean, default: false }\n },\n ethnicity: {\n type: Schema.Types.String,\n required: false,\n },\n personOfColor: {\n type: Schema.Types.String,\n required: false,\n },\n tenure: {\n type: Schema.Types.Number,\n required: false,\n },\n satisfactionLevel: {\n type: Schema.Types.Number,\n required: false,\n },\n satisfactionLevelDate: {\n type: Schema.Types.Date,\n required: false,\n },\n performanceLevel: {\n type: Schema.Types.Number,\n required: false,\n },\n performanceLevelDate: {\n type: Schema.Types.Date,\n required: false,\n },\n salary: {\n type: Schema.Types.Number,\n required: false,\n },\n hireDate: {\n type: Schema.Types.Date,\n required: false,\n },\n jobLevel: {\n type: Schema.Types.String,\n required: false,\n default: ''\n },\n supervisorId: {\n type: Schema.Types.ObjectId,\n required: false,\n },\n enpsRating: {\n type: Schema.Types.Number,\n required: false,\n },\n disability: {\n type: Schema.Types.String,\n required: false,\n default: 'no'\n },\n diverse: {\n type: Schema.Types.Boolean,\n required: false,\n // default: false\n },\n women: {\n type: Schema.Types.Boolean,\n required: false,\n // default: false\n },\n poc: {\n type: Schema.Types.Boolean,\n required: false,\n // default: false\n },\n isMfaVerified: {\n type: Schema.Types.Boolean,\n default: false,\n required: false,\n // default: false\n },\n mfaVerificationType: {\n type: Schema.Types.String,\n default: 'none',\n required: false,\n // default: false\n },\n verificationOtp: {\n type: otpSchema,\n default: null,\n required: false,\n // default: false\n },\n thirdPartyAuthTokens: {\n access_token: { type: Schema.Types.String },\n refresh_token: { type: Schema.Types.String },\n accountType: { type: Schema.Types.String },\n email: { type: Schema.Types.String },\n token_expiry: { type: Schema.Types.Number }\n },\n youtubeAuthTokens: {\n access_token: { type: Schema.Types.String },\n refresh_token: { type: Schema.Types.String },\n email: { type: Schema.Types.String },\n token_expiry: { type: Schema.Types.Number }\n }\n },\n {\n versionKey: false,\n timestamps: true,\n collection: USER_COLLECTION_NAME\n },\n);\n\nexport const UserModel = model<IUser>(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