@experts_hub/shared 1.0.101 → 1.0.102

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.
@@ -18,6 +18,11 @@ export declare enum AccountStatus {
18
18
  SUSPENDED = "SUSPENDED",
19
19
  BLOCKED = "BLOCKED"
20
20
  }
21
+ export declare enum Provider {
22
+ LINKEDIN = "LINKEDIN",
23
+ GOOGLE = "GOOGLE",
24
+ GITLABS = "GITLABS"
25
+ }
21
26
  export declare class User extends BaseEntity {
22
27
  uniqueId: string;
23
28
  username: string;
@@ -39,6 +44,11 @@ export declare class User extends BaseEntity {
39
44
  resetToken: string | null;
40
45
  resetTokenExpireAt: Date | null;
41
46
  refreshTokens: RefreshToken[];
47
+ provider: Provider;
48
+ providerToken: string;
49
+ linkedInId: string;
50
+ googleId: string;
51
+ gitLabsId: string;
42
52
  otps: Otp[];
43
53
  resumeParserLogs: ResumeParserLog[];
44
54
  freelancerProfile: FreelancerProfile;
package/dist/index.d.mts CHANGED
@@ -397,6 +397,11 @@ declare enum AccountStatus {
397
397
  SUSPENDED = "SUSPENDED",
398
398
  BLOCKED = "BLOCKED"
399
399
  }
400
+ declare enum Provider {
401
+ LINKEDIN = "LINKEDIN",
402
+ GOOGLE = "GOOGLE",
403
+ GITLABS = "GITLABS"
404
+ }
400
405
  declare class User extends BaseEntity {
401
406
  uniqueId: string;
402
407
  username: string;
@@ -418,6 +423,11 @@ declare class User extends BaseEntity {
418
423
  resetToken: string | null;
419
424
  resetTokenExpireAt: Date | null;
420
425
  refreshTokens: RefreshToken[];
426
+ provider: Provider;
427
+ providerToken: string;
428
+ linkedInId: string;
429
+ googleId: string;
430
+ gitLabsId: string;
421
431
  otps: Otp[];
422
432
  resumeParserLogs: ResumeParserLog[];
423
433
  freelancerProfile: FreelancerProfile;
@@ -698,4 +708,4 @@ declare class JobRoles extends BaseEntity {
698
708
  isActive: boolean;
699
709
  }
700
710
 
701
- export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_PROFILE_PATTERN, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, EmploymentType, FreelancerBankDetailsDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JOB_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobBasicInformationDto, JobDescriptionDto, JobIdParamDto, JobLocation, JobLocationEnum, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NatureOfWork, NotificationRMQAdapter, NotificationTCPAdapter, ONBOARDING_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PROFILE_PATTERN, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, ScopeEnum, Skill, Step, TypeOfEmploymentEnum, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
711
+ export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_PROFILE_PATTERN, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, EmploymentType, FreelancerBankDetailsDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JOB_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobBasicInformationDto, JobDescriptionDto, JobIdParamDto, JobLocation, JobLocationEnum, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NatureOfWork, NotificationRMQAdapter, NotificationTCPAdapter, ONBOARDING_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PROFILE_PATTERN, Provider, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, ScopeEnum, Skill, Step, TypeOfEmploymentEnum, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
package/dist/index.d.ts CHANGED
@@ -397,6 +397,11 @@ declare enum AccountStatus {
397
397
  SUSPENDED = "SUSPENDED",
398
398
  BLOCKED = "BLOCKED"
399
399
  }
400
+ declare enum Provider {
401
+ LINKEDIN = "LINKEDIN",
402
+ GOOGLE = "GOOGLE",
403
+ GITLABS = "GITLABS"
404
+ }
400
405
  declare class User extends BaseEntity {
401
406
  uniqueId: string;
402
407
  username: string;
@@ -418,6 +423,11 @@ declare class User extends BaseEntity {
418
423
  resetToken: string | null;
419
424
  resetTokenExpireAt: Date | null;
420
425
  refreshTokens: RefreshToken[];
426
+ provider: Provider;
427
+ providerToken: string;
428
+ linkedInId: string;
429
+ googleId: string;
430
+ gitLabsId: string;
421
431
  otps: Otp[];
422
432
  resumeParserLogs: ResumeParserLog[];
423
433
  freelancerProfile: FreelancerProfile;
@@ -698,4 +708,4 @@ declare class JobRoles extends BaseEntity {
698
708
  isActive: boolean;
699
709
  }
700
710
 
701
- export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_PROFILE_PATTERN, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, EmploymentType, FreelancerBankDetailsDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JOB_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobBasicInformationDto, JobDescriptionDto, JobIdParamDto, JobLocation, JobLocationEnum, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NatureOfWork, NotificationRMQAdapter, NotificationTCPAdapter, ONBOARDING_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PROFILE_PATTERN, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, ScopeEnum, Skill, Step, TypeOfEmploymentEnum, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
711
+ export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_PROFILE_PATTERN, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, EmploymentType, FreelancerBankDetailsDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JOB_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobBasicInformationDto, JobDescriptionDto, JobIdParamDto, JobLocation, JobLocationEnum, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NatureOfWork, NotificationRMQAdapter, NotificationTCPAdapter, ONBOARDING_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PROFILE_PATTERN, Provider, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, ScopeEnum, Skill, Step, TypeOfEmploymentEnum, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
package/dist/index.js CHANGED
@@ -82,6 +82,7 @@ __export(index_exports, {
82
82
  OnboardingStepEnum: () => OnboardingStepEnum,
83
83
  Otp: () => Otp,
84
84
  PROFILE_PATTERN: () => PROFILE_PATTERN,
85
+ Provider: () => Provider,
85
86
  QUESTION_PATTERN: () => QUESTION_PATTERN,
86
87
  Question: () => Question,
87
88
  QuestionFor: () => QuestionFor,
@@ -993,6 +994,12 @@ var AccountStatus = /* @__PURE__ */ ((AccountStatus2) => {
993
994
  AccountStatus2["BLOCKED"] = "BLOCKED";
994
995
  return AccountStatus2;
995
996
  })(AccountStatus || {});
997
+ var Provider = /* @__PURE__ */ ((Provider2) => {
998
+ Provider2["LINKEDIN"] = "LINKEDIN";
999
+ Provider2["GOOGLE"] = "GOOGLE";
1000
+ Provider2["GITLABS"] = "GITLABS";
1001
+ return Provider2;
1002
+ })(Provider || {});
996
1003
  var User = class extends BaseEntity {
997
1004
  };
998
1005
  __decorateClass([
@@ -1069,6 +1076,27 @@ __decorateClass([
1069
1076
  __decorateClass([
1070
1077
  (0, import_typeorm10.OneToMany)(() => RefreshToken, (token) => token.user)
1071
1078
  ], User.prototype, "refreshTokens", 2);
1079
+ __decorateClass([
1080
+ (0, import_typeorm10.Column)({
1081
+ name: "provider",
1082
+ type: "enum",
1083
+ enum: Provider,
1084
+ default: null,
1085
+ nullable: true
1086
+ })
1087
+ ], User.prototype, "provider", 2);
1088
+ __decorateClass([
1089
+ (0, import_typeorm10.Column)({ name: "provider_token", type: "varchar", nullable: true })
1090
+ ], User.prototype, "providerToken", 2);
1091
+ __decorateClass([
1092
+ (0, import_typeorm10.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
1093
+ ], User.prototype, "linkedInId", 2);
1094
+ __decorateClass([
1095
+ (0, import_typeorm10.Column)({ name: "google_id", type: "varchar", nullable: true })
1096
+ ], User.prototype, "googleId", 2);
1097
+ __decorateClass([
1098
+ (0, import_typeorm10.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
1099
+ ], User.prototype, "gitLabsId", 2);
1072
1100
  __decorateClass([
1073
1101
  (0, import_typeorm10.OneToMany)(() => Otp, (otp) => otp.user)
1074
1102
  ], User.prototype, "otps", 2);
@@ -1835,6 +1863,7 @@ JobRoles = __decorateClass([
1835
1863
  OnboardingStepEnum,
1836
1864
  Otp,
1837
1865
  PROFILE_PATTERN,
1866
+ Provider,
1838
1867
  QUESTION_PATTERN,
1839
1868
  Question,
1840
1869
  QuestionFor,
package/dist/index.mjs CHANGED
@@ -999,6 +999,12 @@ var AccountStatus = /* @__PURE__ */ ((AccountStatus2) => {
999
999
  AccountStatus2["BLOCKED"] = "BLOCKED";
1000
1000
  return AccountStatus2;
1001
1001
  })(AccountStatus || {});
1002
+ var Provider = /* @__PURE__ */ ((Provider2) => {
1003
+ Provider2["LINKEDIN"] = "LINKEDIN";
1004
+ Provider2["GOOGLE"] = "GOOGLE";
1005
+ Provider2["GITLABS"] = "GITLABS";
1006
+ return Provider2;
1007
+ })(Provider || {});
1002
1008
  var User = class extends BaseEntity {
1003
1009
  };
1004
1010
  __decorateClass([
@@ -1075,6 +1081,27 @@ __decorateClass([
1075
1081
  __decorateClass([
1076
1082
  OneToMany5(() => RefreshToken, (token) => token.user)
1077
1083
  ], User.prototype, "refreshTokens", 2);
1084
+ __decorateClass([
1085
+ Column10({
1086
+ name: "provider",
1087
+ type: "enum",
1088
+ enum: Provider,
1089
+ default: null,
1090
+ nullable: true
1091
+ })
1092
+ ], User.prototype, "provider", 2);
1093
+ __decorateClass([
1094
+ Column10({ name: "provider_token", type: "varchar", nullable: true })
1095
+ ], User.prototype, "providerToken", 2);
1096
+ __decorateClass([
1097
+ Column10({ name: "linkedin_id", type: "varchar", nullable: true })
1098
+ ], User.prototype, "linkedInId", 2);
1099
+ __decorateClass([
1100
+ Column10({ name: "google_id", type: "varchar", nullable: true })
1101
+ ], User.prototype, "googleId", 2);
1102
+ __decorateClass([
1103
+ Column10({ name: "gitlabs_id", type: "varchar", nullable: true })
1104
+ ], User.prototype, "gitLabsId", 2);
1078
1105
  __decorateClass([
1079
1106
  OneToMany5(() => Otp, (otp) => otp.user)
1080
1107
  ], User.prototype, "otps", 2);
@@ -1870,6 +1897,7 @@ export {
1870
1897
  OnboardingStepEnum,
1871
1898
  Otp,
1872
1899
  PROFILE_PATTERN,
1900
+ Provider,
1873
1901
  QUESTION_PATTERN,
1874
1902
  Question,
1875
1903
  QuestionFor,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.101",
3
+ "version": "1.0.102",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",