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