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