@culturefy/shared 1.0.28 → 1.0.30

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