@experts_hub/shared 1.0.101 → 1.0.103

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.
@@ -0,0 +1,6 @@
1
+ import { BaseEntity } from "./base.entity";
2
+ import { Plan } from './plan.entity';
3
+ export declare class Feature extends BaseEntity {
4
+ name: string;
5
+ plans: Plan[];
6
+ }
@@ -0,0 +1,10 @@
1
+ import { BaseEntity } from "./base.entity";
2
+ import { Feature } from './feature.entity';
3
+ export declare class Plan extends BaseEntity {
4
+ name: string;
5
+ description: string;
6
+ price: number;
7
+ billingPeriod: string;
8
+ isCurrent: boolean;
9
+ features: Feature[];
10
+ }
@@ -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;
@@ -662,6 +672,17 @@ declare class FreelancerBankDetailsDto {
662
672
  accountScope: BankAccountScope;
663
673
  }
664
674
 
675
+ declare const PLAN_PATTERN: {
676
+ fetchPlans: string;
677
+ };
678
+
679
+ interface IFetchPlanResponse {
680
+ statusCode: number;
681
+ status: boolean;
682
+ message: string;
683
+ data: any;
684
+ }
685
+
665
686
  declare const UserTCPAdapter: () => MicroserviceOptions;
666
687
 
667
688
  declare const JobTCPAdapter: () => MicroserviceOptions;
@@ -698,4 +719,4 @@ declare class JobRoles extends BaseEntity {
698
719
  isActive: boolean;
699
720
  }
700
721
 
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 };
722
+ 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 IFetchPlanResponse, 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, PLAN_PATTERN, 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;
@@ -662,6 +672,17 @@ declare class FreelancerBankDetailsDto {
662
672
  accountScope: BankAccountScope;
663
673
  }
664
674
 
675
+ declare const PLAN_PATTERN: {
676
+ fetchPlans: string;
677
+ };
678
+
679
+ interface IFetchPlanResponse {
680
+ statusCode: number;
681
+ status: boolean;
682
+ message: string;
683
+ data: any;
684
+ }
685
+
665
686
  declare const UserTCPAdapter: () => MicroserviceOptions;
666
687
 
667
688
  declare const JobTCPAdapter: () => MicroserviceOptions;
@@ -698,4 +719,4 @@ declare class JobRoles extends BaseEntity {
698
719
  isActive: boolean;
699
720
  }
700
721
 
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 };
722
+ 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 IFetchPlanResponse, 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, PLAN_PATTERN, 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
@@ -81,7 +81,9 @@ __export(index_exports, {
81
81
  OTP_PATTERN: () => OTP_PATTERN,
82
82
  OnboardingStepEnum: () => OnboardingStepEnum,
83
83
  Otp: () => Otp,
84
+ PLAN_PATTERN: () => PLAN_PATTERN,
84
85
  PROFILE_PATTERN: () => PROFILE_PATTERN,
86
+ Provider: () => Provider,
85
87
  QUESTION_PATTERN: () => QUESTION_PATTERN,
86
88
  Question: () => Question,
87
89
  QuestionFor: () => QuestionFor,
@@ -993,6 +995,12 @@ var AccountStatus = /* @__PURE__ */ ((AccountStatus2) => {
993
995
  AccountStatus2["BLOCKED"] = "BLOCKED";
994
996
  return AccountStatus2;
995
997
  })(AccountStatus || {});
998
+ var Provider = /* @__PURE__ */ ((Provider2) => {
999
+ Provider2["LINKEDIN"] = "LINKEDIN";
1000
+ Provider2["GOOGLE"] = "GOOGLE";
1001
+ Provider2["GITLABS"] = "GITLABS";
1002
+ return Provider2;
1003
+ })(Provider || {});
996
1004
  var User = class extends BaseEntity {
997
1005
  };
998
1006
  __decorateClass([
@@ -1069,6 +1077,27 @@ __decorateClass([
1069
1077
  __decorateClass([
1070
1078
  (0, import_typeorm10.OneToMany)(() => RefreshToken, (token) => token.user)
1071
1079
  ], User.prototype, "refreshTokens", 2);
1080
+ __decorateClass([
1081
+ (0, import_typeorm10.Column)({
1082
+ name: "provider",
1083
+ type: "enum",
1084
+ enum: Provider,
1085
+ default: null,
1086
+ nullable: true
1087
+ })
1088
+ ], User.prototype, "provider", 2);
1089
+ __decorateClass([
1090
+ (0, import_typeorm10.Column)({ name: "provider_token", type: "varchar", nullable: true })
1091
+ ], User.prototype, "providerToken", 2);
1092
+ __decorateClass([
1093
+ (0, import_typeorm10.Column)({ name: "linkedin_id", type: "varchar", nullable: true })
1094
+ ], User.prototype, "linkedInId", 2);
1095
+ __decorateClass([
1096
+ (0, import_typeorm10.Column)({ name: "google_id", type: "varchar", nullable: true })
1097
+ ], User.prototype, "googleId", 2);
1098
+ __decorateClass([
1099
+ (0, import_typeorm10.Column)({ name: "gitlabs_id", type: "varchar", nullable: true })
1100
+ ], User.prototype, "gitLabsId", 2);
1072
1101
  __decorateClass([
1073
1102
  (0, import_typeorm10.OneToMany)(() => Otp, (otp) => otp.user)
1074
1103
  ], User.prototype, "otps", 2);
@@ -1507,6 +1536,11 @@ __decorateClass([
1507
1536
  })
1508
1537
  ], FreelancerBankDetailsDto.prototype, "accountScope", 2);
1509
1538
 
1539
+ // src/modules/plan/pattern/pattern.ts
1540
+ var PLAN_PATTERN = {
1541
+ fetchPlans: "fetch.plans"
1542
+ };
1543
+
1510
1544
  // src/adapters/tcp/user.tcp.adapter.ts
1511
1545
  var import_dotenv = require("dotenv");
1512
1546
  var import_microservices = require("@nestjs/microservices");
@@ -1834,7 +1868,9 @@ JobRoles = __decorateClass([
1834
1868
  OTP_PATTERN,
1835
1869
  OnboardingStepEnum,
1836
1870
  Otp,
1871
+ PLAN_PATTERN,
1837
1872
  PROFILE_PATTERN,
1873
+ Provider,
1838
1874
  QUESTION_PATTERN,
1839
1875
  Question,
1840
1876
  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);
@@ -1543,6 +1570,11 @@ __decorateClass([
1543
1570
  })
1544
1571
  ], FreelancerBankDetailsDto.prototype, "accountScope", 2);
1545
1572
 
1573
+ // src/modules/plan/pattern/pattern.ts
1574
+ var PLAN_PATTERN = {
1575
+ fetchPlans: "fetch.plans"
1576
+ };
1577
+
1546
1578
  // src/adapters/tcp/user.tcp.adapter.ts
1547
1579
  import { config } from "dotenv";
1548
1580
  import { Transport } from "@nestjs/microservices";
@@ -1869,7 +1901,9 @@ export {
1869
1901
  OTP_PATTERN,
1870
1902
  OnboardingStepEnum,
1871
1903
  Otp,
1904
+ PLAN_PATTERN,
1872
1905
  PROFILE_PATTERN,
1906
+ Provider,
1873
1907
  QUESTION_PATTERN,
1874
1908
  Question,
1875
1909
  QuestionFor,
@@ -8,3 +8,4 @@ export * from './question';
8
8
  export * from './job';
9
9
  export * from './user/freelancer-profile';
10
10
  export * from './bank';
11
+ export * from './plan';
@@ -0,0 +1,2 @@
1
+ export * from './pattern/pattern';
2
+ export * from './plan.interface';
@@ -0,0 +1,3 @@
1
+ export declare const PLAN_PATTERN: {
2
+ fetchPlans: string;
3
+ };
@@ -0,0 +1,6 @@
1
+ export interface IFetchPlanResponse {
2
+ statusCode: number;
3
+ status: boolean;
4
+ message: string;
5
+ data: any;
6
+ }
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.103",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",