@culturefy/shared 1.0.32 → 1.0.34

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 (33) hide show
  1. package/build/cjs/enums/secretKeys.enum.js +1 -0
  2. package/build/cjs/enums/secretKeys.enum.js.map +1 -1
  3. package/build/cjs/middlewares/token-validation.js +15 -462
  4. package/build/cjs/middlewares/token-validation.js.map +1 -1
  5. package/build/cjs/models/user.model.js +272 -366
  6. package/build/cjs/models/user.model.js.map +1 -1
  7. package/build/cjs/service/user.service.js +89 -84
  8. package/build/cjs/service/user.service.js.map +1 -1
  9. package/build/esm/enums/secretKeys.enum.js +1 -0
  10. package/build/esm/enums/secretKeys.enum.js.map +1 -1
  11. package/build/esm/middlewares/token-validation.js +16 -463
  12. package/build/esm/middlewares/token-validation.js.map +1 -1
  13. package/build/esm/models/user.model.js +272 -366
  14. package/build/esm/models/user.model.js.map +1 -1
  15. package/build/esm/service/user.service.js +89 -85
  16. package/build/esm/service/user.service.js.map +1 -1
  17. package/build/src/enums/secretKeys.enum.d.ts +2 -1
  18. package/build/src/enums/secretKeys.enum.js +1 -0
  19. package/build/src/enums/secretKeys.enum.js.map +1 -1
  20. package/build/src/middlewares/token-validation.d.ts +1 -1
  21. package/build/src/middlewares/token-validation.js +16 -314
  22. package/build/src/middlewares/token-validation.js.map +1 -1
  23. package/build/src/models/user.model.d.ts +0 -5
  24. package/build/src/models/user.model.js +266 -263
  25. package/build/src/models/user.model.js.map +1 -1
  26. package/build/src/service/user.service.d.ts +0 -6
  27. package/build/src/service/user.service.js +1 -107
  28. package/build/src/service/user.service.js.map +1 -1
  29. package/package.json +1 -1
  30. package/src/enums/secretKeys.enum.ts +1 -0
  31. package/src/middlewares/token-validation.ts +19 -432
  32. package/src/models/user.model.ts +265 -265
  33. package/src/service/user.service.ts +79 -77
@@ -1 +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":["// @ts-nocheck \n\nimport { 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;;AAEA,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,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CAAC6B,KAAK,CAAC0E;IAAO,CAAC;IAC1CpF,KAAK,EAAE;MAAE6B,IAAI,EAAEhD,MAAM,CAAC6B,KAAK,CAAC0E;IAAO,CAAC;IACpCnF,YAAY,EAAE;MAAE4B,IAAI,EAAEhD,MAAM,CAAC6B,KAAK,CAAC+E;IAAO;EAC9C,CAAC;EACDP,iBAAiB,EAAE;IACfrF,YAAY,EAAE;MAAEgC,IAAI,EAAEhD,MAAM,CAAC6B,KAAK,CAAC0E;IAAO,CAAC;IAC3CxF,aAAa,EAAE;MAAEiC,IAAI,EAAEhD,MAAM,CAAC6B,KAAK,CAAC0E;IAAO,CAAC;IAC5CpF,KAAK,EAAE;MAAE6B,IAAI,EAAEhD,MAAM,CAAC6B,KAAK,CAAC0E;IAAO,CAAC;IACpCnF,YAAY,EAAE;MAAE4B,IAAI,EAAEhD,MAAM,CAAC6B,KAAK,CAAC+E;IAAO;EAC9C;AACJ,CAAC,EACD;EACIQ,UAAU,EAAE,KAAK;EACjBC,UAAU,EAAE,IAAI;EAChBC,UAAU,EAAEpH;AAChB,CACJ,CAAC;AAED,OAAO,MAAMqH,SAAS,GAAGxH,KAAK,CAAQE,kBAAkB,EAAEwG,MAAM,EAAEvG,oBAAoB,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"user.model.js","names":["LocationDTO","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"],"sources":["../../../src/models/user.model.ts"],"sourcesContent":["// @ts-nocheck \n\nimport { 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\n// const otpSchema = new Schema({\n// otp: { type: String, required: true },\n// expiresAt: { type: Date, required: true }\n// });\n\n// const 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\n// export const UserModel = model<IUser>(USER_DOCUMENT_NAME, schema, USER_COLLECTION_NAME);"],"mappings":"AAAA;;AAEA,SAASA,WAAW,QAAQ,QAAQ;AACpC,SAAgBC,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,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A;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA","ignoreList":[]}
@@ -1,91 +1,95 @@
1
- var _class;
2
- function _applyDecoratedDescriptor(i, e, r, n, l) { var a = {}; return Object.keys(n).forEach(function (i) { a[i] = n[i]; }), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, ("value" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { return n(i, e, r) || r; }, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer ? (Object.defineProperty(i, e, a), null) : a; }
3
- import { Types } from "mongoose";
4
- import { UserModel } from "../models/user.model";
5
- import { Initializers, WithDb } from "@culturefy/shared";
6
- export let UserService = (_class = class UserService extends Initializers {
1
+ import { Initializers } from "@culturefy/shared";
2
+ export class UserService extends Initializers {
3
+ // private readonly schema = UserModel.schema;
7
4
  constructor(context, dbUrl) {
8
5
  super(context, dbUrl);
9
- this.schema = UserModel.schema;
10
6
  }
11
- getModel() {
12
- const connection = this.getConnection();
13
- if (!connection) {
14
- throw new Error('Database connection not established');
15
- }
16
- return connection.model(UserModel.modelName, this.schema);
17
- }
18
- async getUserById(userId) {
19
- try {
20
- let model = this.getModel();
21
- this.context.log("UserId:", JSON.stringify(userId));
22
7
 
23
- // Handle both string and SchemaObjectId inputs
24
- let objectId;
25
- if (typeof userId === 'string') {
26
- objectId = new Types.ObjectId(userId);
27
- } else {
28
- // If it's already a SchemaObjectId, extract the string value
29
- const userIdString = userId.path || userId.toString();
30
- objectId = new Types.ObjectId(userIdString);
31
- }
32
- this.context.log("ObjectId:", JSON.stringify(objectId));
33
- const user = await model.findById(objectId);
34
- this.context.log("User:", JSON.stringify(user));
35
- return user;
36
- } catch (error) {
37
- this.context.error("Error in getUserById", error);
38
- throw error;
39
- }
40
- }
41
- async getUserByBusinessId(businessId, email) {
42
- try {
43
- let model = this.getModel();
44
- this.context.log("BusinessId:", JSON.stringify(businessId));
45
- this.context.log("Email:", JSON.stringify(email));
46
- if (!businessId) return null;
47
- if (!email) return null;
48
- businessId = businessId.toLowerCase();
49
- businessId = businessId.trim();
50
- email = email.toLowerCase();
51
- email = email.trim();
8
+ // private getModel() {
9
+ // const connection = (this as any).getConnection();
10
+ // if (!connection) {
11
+ // throw new Error('Database connection not established');
12
+ // }
13
+ // return connection.model(UserModel.modelName, this.schema);
14
+ // }
52
15
 
53
- // Handle both string and SchemaObjectId inputs
54
- let objectId;
55
- if (typeof businessId === 'string') {
56
- objectId = new Types.ObjectId(businessId);
57
- } else {
58
- // If it's already a SchemaObjectId, extract the string value
59
- const businessIdString = businessId.path || businessId.toString();
60
- objectId = new Types.ObjectId(businessIdString);
61
- }
62
- this.context.log("ObjectId:", JSON.stringify(objectId));
63
- const user = await model.findOne({
64
- businessId: objectId,
65
- email: email
66
- });
67
- this.context.log("User:", JSON.stringify(user));
68
- return user;
69
- } catch (error) {
70
- this.context.error("Error in getUserByBusinessId", error);
71
- throw error;
72
- }
73
- }
74
- async getUserByEmail(email) {
75
- try {
76
- let model = this.getModel();
77
- this.context.log("Email:", JSON.stringify(email));
78
- email = email.toLowerCase();
79
- email = email.trim();
80
- const user = await model.findOne({
81
- email: email
82
- });
83
- this.context.log("User:", JSON.stringify(user));
84
- return user;
85
- } catch (error) {
86
- this.context.error("Error in getUserByEmail", error);
87
- throw error;
88
- }
89
- }
90
- }, _applyDecoratedDescriptor(_class.prototype, "getUserById", [WithDb], Object.getOwnPropertyDescriptor(_class.prototype, "getUserById"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "getUserByBusinessId", [WithDb], Object.getOwnPropertyDescriptor(_class.prototype, "getUserByBusinessId"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "getUserByEmail", [WithDb], Object.getOwnPropertyDescriptor(_class.prototype, "getUserByEmail"), _class.prototype), _class);
16
+ // @WithDb
17
+ // async getUserById(userId: string): Promise<IUser | null> {
18
+ // try {
19
+ // let model = this.getModel();
20
+ // this.context.log("UserId:", JSON.stringify(userId));
21
+
22
+ // // Handle both string and SchemaObjectId inputs
23
+ // let objectId: Types.ObjectId;
24
+ // if (typeof userId === 'string') {
25
+ // objectId = new Types.ObjectId(userId);
26
+ // } else {
27
+ // // If it's already a SchemaObjectId, extract the string value
28
+ // const userIdString = (userId as any).path || (userId as any).toString();
29
+ // objectId = new Types.ObjectId(userIdString);
30
+ // }
31
+
32
+ // this.context.log("ObjectId:", JSON.stringify(objectId));
33
+ // const user = await model.findById(objectId);
34
+ // this.context.log("User:", JSON.stringify(user));
35
+ // return user;
36
+ // } catch (error) {
37
+ // this.context.error("Error in getUserById", error);
38
+ // throw error;
39
+ // }
40
+ // }
41
+
42
+ // @WithDb
43
+ // async getUserByBusinessId(businessId: string, email: string): Promise<IUser | null> {
44
+ // try {
45
+ // let model = this.getModel();
46
+ // this.context.log("BusinessId:", JSON.stringify(businessId));
47
+ // this.context.log("Email:", JSON.stringify(email));
48
+
49
+ // if(!businessId) return null;
50
+ // if(!email) return null;
51
+
52
+ // businessId = businessId.toLowerCase();
53
+ // businessId = businessId.trim();
54
+
55
+ // email = email.toLowerCase();
56
+ // email = email.trim();
57
+
58
+ // // Handle both string and SchemaObjectId inputs
59
+ // let objectId: Types.ObjectId;
60
+ // if (typeof businessId === 'string') {
61
+ // objectId = new Types.ObjectId(businessId);
62
+ // } else {
63
+ // // If it's already a SchemaObjectId, extract the string value
64
+ // const businessIdString = (businessId as any).path || (businessId as any).toString();
65
+ // objectId = new Types.ObjectId(businessIdString);
66
+ // }
67
+
68
+ // this.context.log("ObjectId:", JSON.stringify(objectId));
69
+ // const user = await model.findOne({ businessId: objectId, email: email });
70
+ // this.context.log("User:", JSON.stringify(user));
71
+ // return user;
72
+ // } catch (error) {
73
+ // this.context.error("Error in getUserByBusinessId", error);
74
+ // throw error;
75
+ // }
76
+ // }
77
+
78
+ // @WithDb
79
+ // async getUserByEmail(email: string) {
80
+ // try {
81
+ // let model = this.getModel();
82
+ // this.context.log("Email:", JSON.stringify(email));
83
+
84
+ // email = email.toLowerCase();
85
+ // email = email.trim();
86
+ // const user = await model.findOne({ email: email });
87
+ // this.context.log("User:", JSON.stringify(user));
88
+ // return user;
89
+ // } catch (error) {
90
+ // this.context.error("Error in getUserByEmail", error);
91
+ // throw error;
92
+ // }
93
+ // }
94
+ }
91
95
  //# sourceMappingURL=user.service.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"user.service.js","names":["Types","UserModel","Initializers","WithDb","UserService","_class","constructor","context","dbUrl","schema","getModel","connection","getConnection","Error","model","modelName","getUserById","userId","log","JSON","stringify","objectId","ObjectId","userIdString","path","toString","user","findById","error","getUserByBusinessId","businessId","email","toLowerCase","trim","businessIdString","findOne","getUserByEmail","_applyDecoratedDescriptor","prototype","Object","getOwnPropertyDescriptor"],"sources":["../../../src/service/user.service.ts"],"sourcesContent":["import { Types } from \"mongoose\";\nimport { InvocationContext } from \"@azure/functions\";\nimport IUser, { UserModel } from \"../models/user.model\";\nimport { Initializers, WithDb } from \"@culturefy/shared\";\n\nexport class UserService extends Initializers {\n\n private readonly schema = UserModel.schema;\n constructor(context: InvocationContext, dbUrl:string) {\n super(context, dbUrl);\n }\n\n private getModel() {\n const connection = (this as any).getConnection();\n if (!connection) {\n throw new Error('Database connection not established');\n }\n return connection.model(UserModel.modelName, this.schema);\n }\n\n @WithDb\n async getUserById(userId: string): Promise<IUser | null> {\n try {\n let model = this.getModel();\n this.context.log(\"UserId:\", JSON.stringify(userId));\n \n // Handle both string and SchemaObjectId inputs\n let objectId: Types.ObjectId;\n if (typeof userId === 'string') {\n objectId = new Types.ObjectId(userId);\n } else {\n // If it's already a SchemaObjectId, extract the string value\n const userIdString = (userId as any).path || (userId as any).toString();\n objectId = new Types.ObjectId(userIdString);\n }\n \n this.context.log(\"ObjectId:\", JSON.stringify(objectId));\n const user = await model.findById(objectId);\n this.context.log(\"User:\", JSON.stringify(user));\n return user;\n } catch (error) {\n this.context.error(\"Error in getUserById\", error);\n throw error;\n }\n }\n\n @WithDb\n async getUserByBusinessId(businessId: string, email: string): Promise<IUser | null> {\n try {\n let model = this.getModel();\n this.context.log(\"BusinessId:\", JSON.stringify(businessId));\n this.context.log(\"Email:\", JSON.stringify(email));\n\n if(!businessId) return null;\n if(!email) return null;\n\n businessId = businessId.toLowerCase();\n businessId = businessId.trim();\n\n email = email.toLowerCase();\n email = email.trim();\n\n // Handle both string and SchemaObjectId inputs\n let objectId: Types.ObjectId;\n if (typeof businessId === 'string') {\n objectId = new Types.ObjectId(businessId);\n } else {\n // If it's already a SchemaObjectId, extract the string value\n const businessIdString = (businessId as any).path || (businessId as any).toString();\n objectId = new Types.ObjectId(businessIdString);\n }\n \n this.context.log(\"ObjectId:\", JSON.stringify(objectId));\n const user = await model.findOne({ businessId: objectId, email: email });\n this.context.log(\"User:\", JSON.stringify(user));\n return user;\n } catch (error) {\n this.context.error(\"Error in getUserByBusinessId\", error);\n throw error;\n }\n }\n\n @WithDb\n async getUserByEmail(email: string) {\n try {\n let model = this.getModel();\n this.context.log(\"Email:\", JSON.stringify(email));\n\n email = email.toLowerCase();\n email = email.trim();\n const user = await model.findOne({ email: email });\n this.context.log(\"User:\", JSON.stringify(user));\n return user;\n } catch (error) {\n this.context.error(\"Error in getUserByEmail\", error);\n throw error;\n }\n }\n}\n"],"mappings":";;AAAA,SAASA,KAAK,QAAQ,UAAU;AAEhC,SAAgBC,SAAS,QAAQ,sBAAsB;AACvD,SAASC,YAAY,EAAEC,MAAM,QAAQ,mBAAmB;AAExD,WAAaC,WAAW,IAAAC,MAAA,GAAjB,MAAMD,WAAW,SAASF,YAAY,CAAC;EAG1CI,WAAWA,CAACC,OAA0B,EAAEC,KAAY,EAAE;IAClD,KAAK,CAACD,OAAO,EAAEC,KAAK,CAAC;IAAC,KAFTC,MAAM,GAAGR,SAAS,CAACQ,MAAM;EAG1C;EAEQC,QAAQA,CAAA,EAAG;IACjB,MAAMC,UAAU,GAAI,IAAI,CAASC,aAAa,CAAC,CAAC;IAChD,IAAI,CAACD,UAAU,EAAE;MACf,MAAM,IAAIE,KAAK,CAAC,qCAAqC,CAAC;IACxD;IACA,OAAOF,UAAU,CAACG,KAAK,CAACb,SAAS,CAACc,SAAS,EAAE,IAAI,CAACN,MAAM,CAAC;EAC3D;EAEA,MACMO,WAAWA,CAACC,MAAc,EAAyB;IACrD,IAAI;MACA,IAAIH,KAAK,GAAG,IAAI,CAACJ,QAA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AAI,CAACC,SAAS,CAACW,KAAK,CAAC,CAAC;MAEjDA,KAAK,GAAGA,KAAK,CAACC,WAAW,CAAC,CAAC;MAC3BD,KAAK,GAAGA,KAAK,CAACE,IAAI,CAAC,CAAC;MACpB,MAAMP,IAAI,GAAG,MAAMZ,KAAK,CAACqB,OAAO,CAAC;QAAEJ,KAAK,EAAEA;MAAM,CAAC,CAAC;MAClD,IAAI,CAACxB,OAAO,CAACW,GAAG,CAAC,OAAO,EAAEC,IAAI,CAACC,SAAS,CAACM,IAAI,CAAC,CAAC;MAC/C,OAAOA,IAAI;IACf,CAAC,CAAC,OAAOE,KAAK,EAAE;MACZ,IAAI,CAACrB,OAAO,CAACqB,KAAK,CAAC,yBAAyB,EAAEA,KAAK,CAAC;MACpD,MAAMA,KAAK;IACf;EACJ;AACJ,CAAC,EAAAS,yBAAA,CAAAhC,MAAA,CAAAiC,SAAA,kBA9EInC,MAAM,GAAAoC,MAAA,CAAAC,wBAAA,CAAAnC,MAAA,CAAAiC,SAAA,kBAAAjC,MAAA,CAAAiC,SAAA,GAAAD,yBAAA,CAAAhC,MAAA,CAAAiC,SAAA,0BA0BNnC,MAAM,GAAAoC,MAAA,CAAAC,wBAAA,CAAAnC,MAAA,CAAAiC,SAAA,0BAAAjC,MAAA,CAAAiC,SAAA,GAAAD,yBAAA,CAAAhC,MAAA,CAAAiC,SAAA,qBAoCNnC,MAAM,GAAAoC,MAAA,CAAAC,wBAAA,CAAAnC,MAAA,CAAAiC,SAAA,qBAAAjC,MAAA,CAAAiC,SAAA,GAAAjC,MAAA","ignoreList":[]}
1
+ {"version":3,"file":"user.service.js","names":["Initializers","UserService","constructor","context","dbUrl"],"sources":["../../../src/service/user.service.ts"],"sourcesContent":["import { Types } from \"mongoose\";\nimport { InvocationContext } from \"@azure/functions\";\nimport IUser\n// { UserModel }\n from \"../models/user.model\";\nimport { Initializers, WithDb } from \"@culturefy/shared\";\n\nexport class UserService extends Initializers {\n\n // private readonly schema = UserModel.schema;\n constructor(context: InvocationContext, dbUrl:string) {\n super(context, dbUrl);\n }\n\n // private getModel() {\n // const connection = (this as any).getConnection();\n // if (!connection) {\n // throw new Error('Database connection not established');\n // }\n // return connection.model(UserModel.modelName, this.schema);\n // }\n\n // @WithDb\n // async getUserById(userId: string): Promise<IUser | null> {\n // try {\n // let model = this.getModel();\n // this.context.log(\"UserId:\", JSON.stringify(userId));\n \n // // Handle both string and SchemaObjectId inputs\n // let objectId: Types.ObjectId;\n // if (typeof userId === 'string') {\n // objectId = new Types.ObjectId(userId);\n // } else {\n // // If it's already a SchemaObjectId, extract the string value\n // const userIdString = (userId as any).path || (userId as any).toString();\n // objectId = new Types.ObjectId(userIdString);\n // }\n \n // this.context.log(\"ObjectId:\", JSON.stringify(objectId));\n // const user = await model.findById(objectId);\n // this.context.log(\"User:\", JSON.stringify(user));\n // return user;\n // } catch (error) {\n // this.context.error(\"Error in getUserById\", error);\n // throw error;\n // }\n // }\n\n // @WithDb\n // async getUserByBusinessId(businessId: string, email: string): Promise<IUser | null> {\n // try {\n // let model = this.getModel();\n // this.context.log(\"BusinessId:\", JSON.stringify(businessId));\n // this.context.log(\"Email:\", JSON.stringify(email));\n\n // if(!businessId) return null;\n // if(!email) return null;\n\n // businessId = businessId.toLowerCase();\n // businessId = businessId.trim();\n\n // email = email.toLowerCase();\n // email = email.trim();\n\n // // Handle both string and SchemaObjectId inputs\n // let objectId: Types.ObjectId;\n // if (typeof businessId === 'string') {\n // objectId = new Types.ObjectId(businessId);\n // } else {\n // // If it's already a SchemaObjectId, extract the string value\n // const businessIdString = (businessId as any).path || (businessId as any).toString();\n // objectId = new Types.ObjectId(businessIdString);\n // }\n \n // this.context.log(\"ObjectId:\", JSON.stringify(objectId));\n // const user = await model.findOne({ businessId: objectId, email: email });\n // this.context.log(\"User:\", JSON.stringify(user));\n // return user;\n // } catch (error) {\n // this.context.error(\"Error in getUserByBusinessId\", error);\n // throw error;\n // }\n // }\n\n // @WithDb\n // async getUserByEmail(email: string) {\n // try {\n // let model = this.getModel();\n // this.context.log(\"Email:\", JSON.stringify(email));\n\n // email = email.toLowerCase();\n // email = email.trim();\n // const user = await model.findOne({ email: email });\n // this.context.log(\"User:\", JSON.stringify(user));\n // return user;\n // } catch (error) {\n // this.context.error(\"Error in getUserByEmail\", error);\n // throw error;\n // }\n // }\n}\n"],"mappings":"AAKA,SAASA,YAAY,QAAgB,mBAAmB;AAExD,OAAO,MAAMC,WAAW,SAASD,YAAY,CAAC;EAE1C;EACAE,WAAWA,CAACC,OAA0B,EAAEC,KAAY,EAAE;IAClD,KAAK,CAACD,OAAO,EAAEC,KAAK,CAAC;EACzB;;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;;EAEA;EACA;EACA;EACA;EACA;;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;EAEA;EACA;EACA;EACA;EACA;EACA;;EAEA;EACA;;EAEA;EACA;;EAEA;EACA;;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;EAEA;EACA;EACA;EACA;EACA;;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AACJ","ignoreList":[]}
@@ -24,5 +24,6 @@ export declare enum AzureSecretKeysEnum {
24
24
  FIREBASE_SERVICE_ACCOUNTS_VARIABLE = "firebase_service_accounts_variable",
25
25
  HMS_ACCESS_KEY = "MEETING-HMS-ACCESS-KEY-APP-SECRET",
26
26
  MEETING_ROOM_APP_SECRET = "MEETING-ROOM-APP-SECRET",
27
- BASE_DB_CLUSTER_CONNECTING_STRING_CHAT = "BASE-DB-CLUSTER-CONNECTING-STRING-CHAT"
27
+ BASE_DB_CLUSTER_CONNECTING_STRING_CHAT = "BASE-DB-CLUSTER-CONNECTING-STRING-CHAT",
28
+ AUTH_SERVICE_AUTHENTICATION_URL = "AUTH-SERVICE-AUTHENTICATION-URL"
28
29
  }
@@ -30,5 +30,6 @@ var AzureSecretKeysEnum;
30
30
  AzureSecretKeysEnum["HMS_ACCESS_KEY"] = "MEETING-HMS-ACCESS-KEY-APP-SECRET";
31
31
  AzureSecretKeysEnum["MEETING_ROOM_APP_SECRET"] = "MEETING-ROOM-APP-SECRET";
32
32
  AzureSecretKeysEnum["BASE_DB_CLUSTER_CONNECTING_STRING_CHAT"] = "BASE-DB-CLUSTER-CONNECTING-STRING-CHAT";
33
+ AzureSecretKeysEnum["AUTH_SERVICE_AUTHENTICATION_URL"] = "AUTH-SERVICE-AUTHENTICATION-URL";
33
34
  })(AzureSecretKeysEnum || (exports.AzureSecretKeysEnum = AzureSecretKeysEnum = {}));
34
35
  //# sourceMappingURL=secretKeys.enum.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"secretKeys.enum.js","sourceRoot":"","sources":["../../../src/enums/secretKeys.enum.ts"],"names":[],"mappings":";;;AAAA,uBAAuB;AACvB,IAAY,mBA2BX;AA3BD,WAAY,mBAAmB;IAC7B,oFAA6D,CAAA;IAC7D,4EAAqD,CAAA;IACrD,8DAAuC,CAAA;IACvC,8FAAuE,CAAA;IACvE,0FAAmE,CAAA;IACnE,sFAA+D,CAAA;IAC/D,8DAAuC,CAAA;IACvC,8EAAuD,CAAA;IACvD,8EAAuD,CAAA;IACvD,gGAAyE,CAAA;IACzE,oFAA6D,CAAA;IAC7D,8EAAuD,CAAA;IACvD,oFAA6D,CAAA;IAC7D,oFAA8D,CAAA;IAC9D,oFAA6D,CAAA;IAC7D,qFAA8D,CAAA;IAC9D,sGAA+E,CAAA;IAC/E,oGAA6E,CAAA;IAC7E,oGAA6E,CAAA;IAC7E,8DAAuC,CAAA;IACvC,gHAAyF,CAAA;IACzF,8GAAuF,CAAA;IACvF,gGAAyE,CAAA;IACzE,2EAAkD,CAAA;IAClD,0EAAiD,CAAA;IACjD,wGAAiF,CAAA;AACnF,CAAC,EA3BW,mBAAmB,mCAAnB,mBAAmB,QA2B9B"}
1
+ {"version":3,"file":"secretKeys.enum.js","sourceRoot":"","sources":["../../../src/enums/secretKeys.enum.ts"],"names":[],"mappings":";;;AAAA,uBAAuB;AACvB,IAAY,mBA4BX;AA5BD,WAAY,mBAAmB;IAC7B,oFAA6D,CAAA;IAC7D,4EAAqD,CAAA;IACrD,8DAAuC,CAAA;IACvC,8FAAuE,CAAA;IACvE,0FAAmE,CAAA;IACnE,sFAA+D,CAAA;IAC/D,8DAAuC,CAAA;IACvC,8EAAuD,CAAA;IACvD,8EAAuD,CAAA;IACvD,gGAAyE,CAAA;IACzE,oFAA6D,CAAA;IAC7D,8EAAuD,CAAA;IACvD,oFAA6D,CAAA;IAC7D,oFAA8D,CAAA;IAC9D,oFAA6D,CAAA;IAC7D,qFAA8D,CAAA;IAC9D,sGAA+E,CAAA;IAC/E,oGAA6E,CAAA;IAC7E,oGAA6E,CAAA;IAC7E,8DAAuC,CAAA;IACvC,gHAAyF,CAAA;IACzF,8GAAuF,CAAA;IACvF,gGAAyE,CAAA;IACzE,2EAAkD,CAAA;IAClD,0EAAiD,CAAA;IACjD,wGAAiF,CAAA;IACjF,0FAAmE,CAAA;AACrE,CAAC,EA5BW,mBAAmB,mCAAnB,mBAAmB,QA4B9B"}
@@ -13,5 +13,5 @@ interface TokenValidationResult {
13
13
  user: IUser;
14
14
  };
15
15
  }
16
- export declare function tokenValidation(request: HttpRequest, domain: string, context: InvocationContext): Promise<TokenValidationResult>;
16
+ export declare function tokenValidation(request: HttpRequest, context: InvocationContext): Promise<TokenValidationResult>;
17
17
  export {};