@experts_hub/shared 1.0.300 → 1.0.302

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.
package/dist/index.d.mts CHANGED
@@ -16,6 +16,7 @@ declare const AUTHENTICATION_PATTERN: {
16
16
 
17
17
  declare enum ScopeEnum$3 {
18
18
  ADMIN = "ADMIN",
19
+ SUB_ADMIN = "SUB_ADMIN",
19
20
  CLIENT = "CLIENT",
20
21
  FREELANCER = "FREELANCER"
21
22
  }
package/dist/index.d.ts CHANGED
@@ -16,6 +16,7 @@ declare const AUTHENTICATION_PATTERN: {
16
16
 
17
17
  declare enum ScopeEnum$3 {
18
18
  ADMIN = "ADMIN",
19
+ SUB_ADMIN = "SUB_ADMIN",
19
20
  CLIENT = "CLIENT",
20
21
  FREELANCER = "FREELANCER"
21
22
  }
package/dist/index.js CHANGED
@@ -256,6 +256,7 @@ var AUTHENTICATION_PATTERN = {
256
256
  var import_class_validator = require("class-validator");
257
257
  var ScopeEnum = /* @__PURE__ */ ((ScopeEnum5) => {
258
258
  ScopeEnum5["ADMIN"] = "ADMIN";
259
+ ScopeEnum5["SUB_ADMIN"] = "SUB_ADMIN";
259
260
  ScopeEnum5["CLIENT"] = "CLIENT";
260
261
  ScopeEnum5["FREELANCER"] = "FREELANCER";
261
262
  return ScopeEnum5;
@@ -968,7 +969,7 @@ __decorateClass([
968
969
  })
969
970
  ], UpdateCompanyProfileDto.prototype, "companyName", 2);
970
971
  __decorateClass([
971
- (0, import_class_validator28.IsNotEmpty)({ message: "Please enter company website url." }),
972
+ (0, import_class_validator28.IsOptional)(),
972
973
  (0, import_class_validator28.IsUrl)({}, { message: "Invalid website URL format" })
973
974
  ], UpdateCompanyProfileDto.prototype, "webSite", 2);
974
975
  __decorateClass([
package/dist/index.mjs CHANGED
@@ -28,6 +28,7 @@ var AUTHENTICATION_PATTERN = {
28
28
  import { IsEnum, IsNotEmpty } from "class-validator";
29
29
  var ScopeEnum = /* @__PURE__ */ ((ScopeEnum5) => {
30
30
  ScopeEnum5["ADMIN"] = "ADMIN";
31
+ ScopeEnum5["SUB_ADMIN"] = "SUB_ADMIN";
31
32
  ScopeEnum5["CLIENT"] = "CLIENT";
32
33
  ScopeEnum5["FREELANCER"] = "FREELANCER";
33
34
  return ScopeEnum5;
@@ -794,7 +795,8 @@ import {
794
795
  IsNotEmpty as IsNotEmpty24,
795
796
  IsEmail as IsEmail4,
796
797
  Length as Length2,
797
- IsUrl as IsUrl2
798
+ IsUrl as IsUrl2,
799
+ IsOptional as IsOptional4
798
800
  } from "class-validator";
799
801
  var UpdateCompanyProfileDto = class {
800
802
  };
@@ -806,7 +808,7 @@ __decorateClass([
806
808
  })
807
809
  ], UpdateCompanyProfileDto.prototype, "companyName", 2);
808
810
  __decorateClass([
809
- IsNotEmpty24({ message: "Please enter company website url." }),
811
+ IsOptional4(),
810
812
  IsUrl2({}, { message: "Invalid website URL format" })
811
813
  ], UpdateCompanyProfileDto.prototype, "webSite", 2);
812
814
  __decorateClass([
@@ -866,7 +868,7 @@ var ASSESSMENT_QUESTION_PATTERN = {
866
868
  // src/modules/question/dto/create-question.dto.ts
867
869
  import {
868
870
  IsNotEmpty as IsNotEmpty26,
869
- IsOptional as IsOptional4,
871
+ IsOptional as IsOptional5,
870
872
  IsBoolean as IsBoolean2
871
873
  } from "class-validator";
872
874
  var CreateQuestionDto = class {
@@ -884,7 +886,7 @@ __decorateClass([
884
886
  IsNotEmpty26({ message: "Please enter options." })
885
887
  ], CreateQuestionDto.prototype, "options", 2);
886
888
  __decorateClass([
887
- IsOptional4(),
889
+ IsOptional5(),
888
890
  IsBoolean2({ message: "Whether the question status active" })
889
891
  ], CreateQuestionDto.prototype, "isActive", 2);
890
892
 
@@ -920,7 +922,7 @@ import {
920
922
  IsArray,
921
923
  ArrayNotEmpty,
922
924
  IsNumber,
923
- IsOptional as IsOptional5,
925
+ IsOptional as IsOptional6,
924
926
  IsEnum as IsEnum8,
925
927
  Min,
926
928
  ValidateIf as ValidateIf2
@@ -944,7 +946,7 @@ var JobBasicInformationDto = class {
944
946
  }
945
947
  };
946
948
  __decorateClass([
947
- IsOptional5(),
949
+ IsOptional6(),
948
950
  Type(() => Boolean)
949
951
  ], JobBasicInformationDto.prototype, "isDraft", 2);
950
952
  __decorateClass([
@@ -952,7 +954,7 @@ __decorateClass([
952
954
  IsString11({ message: "Job role must be a string" })
953
955
  ], JobBasicInformationDto.prototype, "jobRole", 2);
954
956
  __decorateClass([
955
- IsOptional5(),
957
+ IsOptional6(),
956
958
  IsString11({ message: "Note must be a string" })
957
959
  ], JobBasicInformationDto.prototype, "note", 2);
958
960
  __decorateClass([
@@ -1028,12 +1030,12 @@ __decorateClass([
1028
1030
  __decorateClass([
1029
1031
  ValidateIf2((o) => !o.isDraft),
1030
1032
  IsString11({ message: "Onboarding TAT must be a string" }),
1031
- IsOptional5()
1033
+ IsOptional6()
1032
1034
  ], JobBasicInformationDto.prototype, "onboardingTat", 2);
1033
1035
  __decorateClass([
1034
1036
  ValidateIf2((o) => !o.isDraft),
1035
1037
  IsString11({ message: "Candidate communication skills must be a string" }),
1036
- IsOptional5()
1038
+ IsOptional6()
1037
1039
  ], JobBasicInformationDto.prototype, "candidateCommunicationSkills", 2);
1038
1040
  __decorateClass([
1039
1041
  ValidateIf2((o) => !o.isDraft),
@@ -1052,11 +1054,11 @@ __decorateClass([
1052
1054
  ], JobBasicInformationDto.prototype, "businessIndustry", 2);
1053
1055
 
1054
1056
  // src/modules/job/dto/job-additional-comment.dto.ts
1055
- import { IsOptional as IsOptional6, IsString as IsString12, MaxLength as MaxLength5 } from "class-validator";
1057
+ import { IsOptional as IsOptional7, IsString as IsString12, MaxLength as MaxLength5 } from "class-validator";
1056
1058
  var JobAdditionalCommentDto = class {
1057
1059
  };
1058
1060
  __decorateClass([
1059
- IsOptional6(),
1061
+ IsOptional7(),
1060
1062
  IsString12({ message: "Additional comment must be a string" }),
1061
1063
  MaxLength5(500, { message: "Additional comment must not exceed 500 characters" })
1062
1064
  ], JobAdditionalCommentDto.prototype, "additionalComment", 2);
@@ -1138,7 +1140,7 @@ __decorateClass([
1138
1140
 
1139
1141
  // src/modules/user/freelancer-profile/dto/update-freelancer-profile.dto.ts
1140
1142
  import {
1141
- IsOptional as IsOptional7,
1143
+ IsOptional as IsOptional8,
1142
1144
  IsString as IsString15,
1143
1145
  IsEmail as IsEmail5,
1144
1146
  IsNumber as IsNumber2,
@@ -1188,7 +1190,7 @@ __decorateClass([
1188
1190
  IsString15({ message: "Please enter valid mobile number." })
1189
1191
  ], UpdateFreelancerProfileDto.prototype, "mobile", 2);
1190
1192
  __decorateClass([
1191
- IsOptional7(),
1193
+ IsOptional8(),
1192
1194
  IsNumber2()
1193
1195
  ], UpdateFreelancerProfileDto.prototype, "countryId", 2);
1194
1196
  __decorateClass([
@@ -1216,35 +1218,35 @@ __decorateClass([
1216
1218
  })
1217
1219
  ], UpdateFreelancerProfileDto.prototype, "modeOfWork", 2);
1218
1220
  __decorateClass([
1219
- IsOptional7(),
1221
+ IsOptional8(),
1220
1222
  IsString15()
1221
1223
  ], UpdateFreelancerProfileDto.prototype, "portfolioLink", 2);
1222
1224
  __decorateClass([
1223
- IsOptional7(),
1225
+ IsOptional8(),
1224
1226
  IsString15()
1225
1227
  ], UpdateFreelancerProfileDto.prototype, "address", 2);
1226
1228
  __decorateClass([
1227
- IsOptional7(),
1229
+ IsOptional8(),
1228
1230
  IsString15()
1229
1231
  ], UpdateFreelancerProfileDto.prototype, "about", 2);
1230
1232
  __decorateClass([
1231
- IsOptional7(),
1233
+ IsOptional8(),
1232
1234
  IsString15()
1233
1235
  ], UpdateFreelancerProfileDto.prototype, "linkedinProfileLink", 2);
1234
1236
  __decorateClass([
1235
- IsOptional7(),
1237
+ IsOptional8(),
1236
1238
  IsString15()
1237
1239
  ], UpdateFreelancerProfileDto.prototype, "kaggleProfileLink", 2);
1238
1240
  __decorateClass([
1239
- IsOptional7(),
1241
+ IsOptional8(),
1240
1242
  IsString15()
1241
1243
  ], UpdateFreelancerProfileDto.prototype, "githubProfileLink", 2);
1242
1244
  __decorateClass([
1243
- IsOptional7(),
1245
+ IsOptional8(),
1244
1246
  IsString15()
1245
1247
  ], UpdateFreelancerProfileDto.prototype, "stackOverflowProfileLink", 2);
1246
1248
  __decorateClass([
1247
- IsOptional7(),
1249
+ IsOptional8(),
1248
1250
  IsString15()
1249
1251
  ], UpdateFreelancerProfileDto.prototype, "resumeUrl", 2);
1250
1252
 
@@ -1259,7 +1261,7 @@ var BANK_PATTERN = {
1259
1261
  import {
1260
1262
  IsEnum as IsEnum11,
1261
1263
  IsNotEmpty as IsNotEmpty32,
1262
- IsOptional as IsOptional8,
1264
+ IsOptional as IsOptional9,
1263
1265
  ValidateIf as ValidateIf3
1264
1266
  } from "class-validator";
1265
1267
  var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
@@ -1279,7 +1281,7 @@ __decorateClass([
1279
1281
  IsNotEmpty32({ message: "Please enter Email." })
1280
1282
  ], FreelancerBankDetailsDto.prototype, "email", 2);
1281
1283
  __decorateClass([
1282
- IsOptional8()
1284
+ IsOptional9()
1283
1285
  ], FreelancerBankDetailsDto.prototype, "address", 2);
1284
1286
  __decorateClass([
1285
1287
  IsNotEmpty32({ message: "Please enter Account Number." })
@@ -1307,7 +1309,7 @@ __decorateClass([
1307
1309
  IsNotEmpty32({ message: "IBAN is required for INTERNATIONAL accounts." })
1308
1310
  ], FreelancerBankDetailsDto.prototype, "iban", 2);
1309
1311
  __decorateClass([
1310
- IsOptional8()
1312
+ IsOptional9()
1311
1313
  ], FreelancerBankDetailsDto.prototype, "accountType", 2);
1312
1314
  __decorateClass([
1313
1315
  IsEnum11(BankAccountScope, {
@@ -1369,7 +1371,7 @@ import {
1369
1371
  IsEnum as IsEnum13,
1370
1372
  IsInt,
1371
1373
  IsNotEmpty as IsNotEmpty33,
1372
- IsOptional as IsOptional9,
1374
+ IsOptional as IsOptional10,
1373
1375
  IsString as IsString16,
1374
1376
  Max,
1375
1377
  Min as Min2
@@ -3779,7 +3781,7 @@ __decorateClass([
3779
3781
  Max(5, { message: "Rating must be at most 5" })
3780
3782
  ], CreateRatingDto.prototype, "rating", 2);
3781
3783
  __decorateClass([
3782
- IsOptional9(),
3784
+ IsOptional10(),
3783
3785
  IsString16({ message: "Review must be a string" })
3784
3786
  ], CreateRatingDto.prototype, "review", 2);
3785
3787
 
@@ -3796,7 +3798,7 @@ var COMPANY_ROLES_PATTERNS = {
3796
3798
  };
3797
3799
 
3798
3800
  // src/modules/company-role/dto/create-company-role.dto.ts
3799
- import { ArrayNotEmpty as ArrayNotEmpty2, IsArray as IsArray2, IsBoolean as IsBoolean4, IsInt as IsInt2, IsNotEmpty as IsNotEmpty34, IsOptional as IsOptional10 } from "class-validator";
3801
+ import { ArrayNotEmpty as ArrayNotEmpty2, IsArray as IsArray2, IsBoolean as IsBoolean4, IsInt as IsInt2, IsNotEmpty as IsNotEmpty34, IsOptional as IsOptional11 } from "class-validator";
3800
3802
  var CreateCompanyRoleDto = class {
3801
3803
  };
3802
3804
  __decorateClass([
@@ -3814,12 +3816,12 @@ __decorateClass([
3814
3816
  IsInt2({ each: true, message: "Each permission ID must be an integer." })
3815
3817
  ], CreateCompanyRoleDto.prototype, "permissionIds", 2);
3816
3818
  __decorateClass([
3817
- IsOptional10(),
3819
+ IsOptional11(),
3818
3820
  IsBoolean4({ message: "Is active must be a boolean value" })
3819
3821
  ], CreateCompanyRoleDto.prototype, "isActive", 2);
3820
3822
 
3821
3823
  // src/modules/company-role/dto/update-company-role.dto.ts
3822
- import { ArrayNotEmpty as ArrayNotEmpty3, IsArray as IsArray3, IsBoolean as IsBoolean5, IsInt as IsInt3, IsNotEmpty as IsNotEmpty35, IsOptional as IsOptional11 } from "class-validator";
3824
+ import { ArrayNotEmpty as ArrayNotEmpty3, IsArray as IsArray3, IsBoolean as IsBoolean5, IsInt as IsInt3, IsNotEmpty as IsNotEmpty35, IsOptional as IsOptional12 } from "class-validator";
3823
3825
  var UpdateCompanyRoleDto = class {
3824
3826
  };
3825
3827
  __decorateClass([
@@ -3837,7 +3839,7 @@ __decorateClass([
3837
3839
  IsInt3({ each: true, message: "Each permission ID must be an integer." })
3838
3840
  ], UpdateCompanyRoleDto.prototype, "permissionIds", 2);
3839
3841
  __decorateClass([
3840
- IsOptional11(),
3842
+ IsOptional12(),
3841
3843
  IsBoolean5({ message: "Is active must be a boolean value" })
3842
3844
  ], UpdateCompanyRoleDto.prototype, "isActive", 2);
3843
3845
 
@@ -3859,7 +3861,7 @@ var FREELANCER_EXPERIENCE_PATTERN = {
3859
3861
  import {
3860
3862
  ArrayMinSize,
3861
3863
  IsNotEmpty as IsNotEmpty36,
3862
- IsOptional as IsOptional12,
3864
+ IsOptional as IsOptional13,
3863
3865
  IsString as IsString19,
3864
3866
  MaxLength as MaxLength9,
3865
3867
  ValidateNested
@@ -3868,7 +3870,7 @@ import { Type as Type2 } from "class-transformer";
3868
3870
  var ExperienceDto = class {
3869
3871
  };
3870
3872
  __decorateClass([
3871
- IsOptional12()
3873
+ IsOptional13()
3872
3874
  ], ExperienceDto.prototype, "uuid", 2);
3873
3875
  __decorateClass([
3874
3876
  IsNotEmpty36(),
@@ -3883,7 +3885,7 @@ __decorateClass([
3883
3885
  IsString19()
3884
3886
  ], ExperienceDto.prototype, "jobDuration", 2);
3885
3887
  __decorateClass([
3886
- IsOptional12(),
3888
+ IsOptional13(),
3887
3889
  IsString19(),
3888
3890
  MaxLength9(5e3, { message: "Description must not exceed 5000 characters" })
3889
3891
  ], ExperienceDto.prototype, "description", 2);
@@ -3954,12 +3956,12 @@ var FREELANCER_EDUCATION_PATTERN = {
3954
3956
  };
3955
3957
 
3956
3958
  // src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
3957
- import { IsArray as IsArray6, ValidateNested as ValidateNested2, IsString as IsString22, IsNotEmpty as IsNotEmpty39, IsOptional as IsOptional15, ArrayMinSize as ArrayMinSize2 } from "class-validator";
3959
+ import { IsArray as IsArray6, ValidateNested as ValidateNested2, IsString as IsString22, IsNotEmpty as IsNotEmpty39, IsOptional as IsOptional16, ArrayMinSize as ArrayMinSize2 } from "class-validator";
3958
3960
  import { Type as Type3 } from "class-transformer";
3959
3961
  var EducationDto = class {
3960
3962
  };
3961
3963
  __decorateClass([
3962
- IsOptional15()
3964
+ IsOptional16()
3963
3965
  ], EducationDto.prototype, "uuid", 2);
3964
3966
  __decorateClass([
3965
3967
  IsString22(),
@@ -3989,12 +3991,12 @@ var FREELANCER_PROJECT_PATTERN = {
3989
3991
  };
3990
3992
 
3991
3993
  // src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
3992
- import { IsArray as IsArray7, ValidateNested as ValidateNested3, IsString as IsString23, IsNotEmpty as IsNotEmpty40, IsOptional as IsOptional16, IsDateString, MaxLength as MaxLength11, ArrayMinSize as ArrayMinSize3 } from "class-validator";
3994
+ import { IsArray as IsArray7, ValidateNested as ValidateNested3, IsString as IsString23, IsNotEmpty as IsNotEmpty40, IsOptional as IsOptional17, IsDateString, MaxLength as MaxLength11, ArrayMinSize as ArrayMinSize3 } from "class-validator";
3993
3995
  import { Type as Type4 } from "class-transformer";
3994
3996
  var ProjectDto = class {
3995
3997
  };
3996
3998
  __decorateClass([
3997
- IsOptional16()
3999
+ IsOptional17()
3998
4000
  ], ProjectDto.prototype, "uuid", 2);
3999
4001
  __decorateClass([
4000
4002
  IsString23(),
@@ -4009,33 +4011,33 @@ __decorateClass([
4009
4011
  IsNotEmpty40({ message: "Please Enter End Date " })
4010
4012
  ], ProjectDto.prototype, "endDate", 2);
4011
4013
  __decorateClass([
4012
- IsOptional16(),
4014
+ IsOptional17(),
4013
4015
  IsString23()
4014
4016
  ], ProjectDto.prototype, "clientName", 2);
4015
4017
  __decorateClass([
4016
- IsOptional16(),
4018
+ IsOptional17(),
4017
4019
  IsString23()
4018
4020
  ], ProjectDto.prototype, "gitLink", 2);
4019
4021
  __decorateClass([
4020
- IsOptional16(),
4022
+ IsOptional17(),
4021
4023
  IsString23(),
4022
4024
  MaxLength11(5e3, { message: "Description must not exceed 5000 characters" })
4023
4025
  ], ProjectDto.prototype, "description", 2);
4024
4026
  var CaseStudyDto = class {
4025
4027
  };
4026
4028
  __decorateClass([
4027
- IsOptional16()
4029
+ IsOptional17()
4028
4030
  ], CaseStudyDto.prototype, "uuid", 2);
4029
4031
  __decorateClass([
4030
4032
  IsString23(),
4031
4033
  IsNotEmpty40({ message: "Please Enter Project Name " })
4032
4034
  ], CaseStudyDto.prototype, "projectName", 2);
4033
4035
  __decorateClass([
4034
- IsOptional16(),
4036
+ IsOptional17(),
4035
4037
  IsString23()
4036
4038
  ], CaseStudyDto.prototype, "caseStudyLink", 2);
4037
4039
  __decorateClass([
4038
- IsOptional16(),
4040
+ IsOptional17(),
4039
4041
  IsString23(),
4040
4042
  MaxLength11(5e3, { message: "Description must not exceed 5000 characters" })
4041
4043
  ], CaseStudyDto.prototype, "description", 2);
@@ -4065,7 +4067,7 @@ var FREELANCER_SKILL_PATTERN = {
4065
4067
  };
4066
4068
 
4067
4069
  // src/modules/user/freelancer-skill/dto/freelancer-skill.dto.ts
4068
- import { IsArray as IsArray8, IsString as IsString24, IsOptional as IsOptional17 } from "class-validator";
4070
+ import { IsArray as IsArray8, IsString as IsString24, IsOptional as IsOptional18 } from "class-validator";
4069
4071
  import { Type as Type5 } from "class-transformer";
4070
4072
  var FreelancerSkillDto = class {
4071
4073
  constructor() {
@@ -4075,19 +4077,19 @@ var FreelancerSkillDto = class {
4075
4077
  }
4076
4078
  };
4077
4079
  __decorateClass([
4078
- IsOptional17(),
4080
+ IsOptional18(),
4079
4081
  IsArray8(),
4080
4082
  Type5(() => String),
4081
4083
  IsString24({ each: true })
4082
4084
  ], FreelancerSkillDto.prototype, "coreSkills", 2);
4083
4085
  __decorateClass([
4084
- IsOptional17(),
4086
+ IsOptional18(),
4085
4087
  IsArray8(),
4086
4088
  Type5(() => String),
4087
4089
  IsString24({ each: true })
4088
4090
  ], FreelancerSkillDto.prototype, "tools", 2);
4089
4091
  __decorateClass([
4090
- IsOptional17(),
4092
+ IsOptional18(),
4091
4093
  IsArray8(),
4092
4094
  Type5(() => String),
4093
4095
  IsString24({ each: true })
@@ -4110,7 +4112,7 @@ import {
4110
4112
  IsString as IsString25,
4111
4113
  IsEmail as IsEmail10,
4112
4114
  IsBoolean as IsBoolean10,
4113
- IsOptional as IsOptional18,
4115
+ IsOptional as IsOptional19,
4114
4116
  IsEnum as IsEnum14,
4115
4117
  IsNumber as IsNumber3,
4116
4118
  IsUrl as IsUrl3,
@@ -4193,23 +4195,23 @@ __decorateClass([
4193
4195
  IsNotEmpty42({ message: "Please enter availability to join." })
4194
4196
  ], CreateFreelancerDto.prototype, "availabilityToJoin", 2);
4195
4197
  __decorateClass([
4196
- IsOptional18(),
4198
+ IsOptional19(),
4197
4199
  IsUrl3({}, { message: "LinkedIn profile link must be a valid URL" })
4198
4200
  ], CreateFreelancerDto.prototype, "linkedinProfileLink", 2);
4199
4201
  __decorateClass([
4200
- IsOptional18(),
4202
+ IsOptional19(),
4201
4203
  IsString25({ message: "Kaggle profile link must be a string" })
4202
4204
  ], CreateFreelancerDto.prototype, "kaggleProfileLink", 2);
4203
4205
  __decorateClass([
4204
- IsOptional18(),
4206
+ IsOptional19(),
4205
4207
  IsUrl3({}, { message: "GitHub profile link must be a valid URL" })
4206
4208
  ], CreateFreelancerDto.prototype, "githubProfileLink", 2);
4207
4209
  __decorateClass([
4208
- IsOptional18(),
4210
+ IsOptional19(),
4209
4211
  IsUrl3({}, { message: "StackOverflow profile link must be a valid URL" })
4210
4212
  ], CreateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
4211
4213
  __decorateClass([
4212
- IsOptional18(),
4214
+ IsOptional19(),
4213
4215
  IsUrl3({}, { message: "Portfolio link must be a valid URL" })
4214
4216
  ], CreateFreelancerDto.prototype, "portfolioLink", 2);
4215
4217
 
@@ -4218,7 +4220,7 @@ import {
4218
4220
  IsString as IsString26,
4219
4221
  IsEmail as IsEmail11,
4220
4222
  IsBoolean as IsBoolean11,
4221
- IsOptional as IsOptional19,
4223
+ IsOptional as IsOptional20,
4222
4224
  IsEnum as IsEnum15,
4223
4225
  IsNumber as IsNumber4,
4224
4226
  IsUrl as IsUrl4,
@@ -4245,24 +4247,24 @@ var ModeOfWorkEnum2 = /* @__PURE__ */ ((ModeOfWorkEnum3) => {
4245
4247
  var UpdateFreelancerDto = class {
4246
4248
  };
4247
4249
  __decorateClass([
4248
- IsOptional19(),
4250
+ IsOptional20(),
4249
4251
  IsString26({ message: "Full name must be a string" }),
4250
4252
  MaxLength14(100, { message: "Full name must not exceed 100 characters" })
4251
4253
  ], UpdateFreelancerDto.prototype, "fullName", 2);
4252
4254
  __decorateClass([
4253
- IsOptional19(),
4255
+ IsOptional20(),
4254
4256
  IsEmail11({}, { message: "Invalid email address" })
4255
4257
  ], UpdateFreelancerDto.prototype, "email", 2);
4256
4258
  __decorateClass([
4257
- IsOptional19(),
4259
+ IsOptional20(),
4258
4260
  IsString26({ message: "Mobile code must be a string (e.g., +1)" })
4259
4261
  ], UpdateFreelancerDto.prototype, "mobileCode", 2);
4260
4262
  __decorateClass([
4261
- IsOptional19(),
4263
+ IsOptional20(),
4262
4264
  IsString26({ message: "Mobile must be a string (e.g., 1243253534)" })
4263
4265
  ], UpdateFreelancerDto.prototype, "mobile", 2);
4264
4266
  __decorateClass([
4265
- IsOptional19(),
4267
+ IsOptional20(),
4266
4268
  MinLength12(6, { message: "Password must be at least 6 characters." }),
4267
4269
  MaxLength14(32, { message: "Password must not exceed 32 characters." }),
4268
4270
  Matches9(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
@@ -4270,12 +4272,12 @@ __decorateClass([
4270
4272
  })
4271
4273
  ], UpdateFreelancerDto.prototype, "password", 2);
4272
4274
  __decorateClass([
4273
- IsOptional19(),
4275
+ IsOptional20(),
4274
4276
  IsBoolean11({ message: "Developer flag must be true or false" }),
4275
4277
  Type7(() => Boolean)
4276
4278
  ], UpdateFreelancerDto.prototype, "developer", 2);
4277
4279
  __decorateClass([
4278
- IsOptional19(),
4280
+ IsOptional20(),
4279
4281
  IsEnum15(NatureOfWorkEnum2, {
4280
4282
  message: `Nature of work must be one of: ${Object.values(
4281
4283
  NatureOfWorkEnum2
@@ -4283,13 +4285,13 @@ __decorateClass([
4283
4285
  })
4284
4286
  ], UpdateFreelancerDto.prototype, "natureOfWork", 2);
4285
4287
  __decorateClass([
4286
- IsOptional19(),
4288
+ IsOptional20(),
4287
4289
  IsNumber4({}, { message: "Expected hourly compensation must be a number" }),
4288
4290
  Min4(0, { message: "Expected hourly compensation must be 0 or more" }),
4289
4291
  Type7(() => Number)
4290
4292
  ], UpdateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
4291
4293
  __decorateClass([
4292
- IsOptional19(),
4294
+ IsOptional20(),
4293
4295
  IsEnum15(ModeOfWorkEnum2, {
4294
4296
  message: `Mode of work must be one of: ${Object.values(ModeOfWorkEnum2).join(
4295
4297
  ", "
@@ -4297,7 +4299,7 @@ __decorateClass([
4297
4299
  })
4298
4300
  ], UpdateFreelancerDto.prototype, "modeOfWork", 2);
4299
4301
  __decorateClass([
4300
- IsOptional19(),
4302
+ IsOptional20(),
4301
4303
  IsBoolean11({ message: "isImmediateJoiner must be true or false" }),
4302
4304
  Type7(() => Boolean)
4303
4305
  ], UpdateFreelancerDto.prototype, "isImmediateJoiner", 2);
@@ -4306,23 +4308,23 @@ __decorateClass([
4306
4308
  IsNotEmpty43({ message: "Please enter availability to join." })
4307
4309
  ], UpdateFreelancerDto.prototype, "availabilityToJoin", 2);
4308
4310
  __decorateClass([
4309
- IsOptional19(),
4311
+ IsOptional20(),
4310
4312
  IsUrl4({}, { message: "LinkedIn profile link must be a valid URL" })
4311
4313
  ], UpdateFreelancerDto.prototype, "linkedinProfileLink", 2);
4312
4314
  __decorateClass([
4313
- IsOptional19(),
4315
+ IsOptional20(),
4314
4316
  IsString26({ message: "Kaggle profile link must be a string" })
4315
4317
  ], UpdateFreelancerDto.prototype, "kaggleProfileLink", 2);
4316
4318
  __decorateClass([
4317
- IsOptional19(),
4319
+ IsOptional20(),
4318
4320
  IsUrl4({}, { message: "GitHub profile link must be a valid URL" })
4319
4321
  ], UpdateFreelancerDto.prototype, "githubProfileLink", 2);
4320
4322
  __decorateClass([
4321
- IsOptional19(),
4323
+ IsOptional20(),
4322
4324
  IsUrl4({}, { message: "StackOverflow profile link must be a valid URL" })
4323
4325
  ], UpdateFreelancerDto.prototype, "stackOverflowProfileLink", 2);
4324
4326
  __decorateClass([
4325
- IsOptional19(),
4327
+ IsOptional20(),
4326
4328
  IsUrl4({}, { message: "Portfolio link must be a valid URL" })
4327
4329
  ], UpdateFreelancerDto.prototype, "portfolioLink", 2);
4328
4330
 
@@ -4343,7 +4345,7 @@ var CLIENT_ADMIN_PATTERNS = {
4343
4345
  import {
4344
4346
  IsNotEmpty as IsNotEmpty44,
4345
4347
  IsEmail as IsEmail12,
4346
- IsOptional as IsOptional20,
4348
+ IsOptional as IsOptional21,
4347
4349
  IsString as IsString27,
4348
4350
  IsArray as IsArray9,
4349
4351
  MinLength as MinLength13,
@@ -4414,7 +4416,7 @@ __decorateClass([
4414
4416
  IsString27()
4415
4417
  ], CreateClientDto.prototype, "foundUsOn", 2);
4416
4418
  __decorateClass([
4417
- IsOptional20(),
4419
+ IsOptional21(),
4418
4420
  IsString27()
4419
4421
  ], CreateClientDto.prototype, "foundUsOnDetail", 2);
4420
4422
 
@@ -4431,7 +4433,7 @@ __decorateClass([
4431
4433
  import {
4432
4434
  IsNotEmpty as IsNotEmpty46,
4433
4435
  IsEmail as IsEmail13,
4434
- IsOptional as IsOptional21,
4436
+ IsOptional as IsOptional22,
4435
4437
  IsString as IsString29,
4436
4438
  IsArray as IsArray10,
4437
4439
  MinLength as MinLength14,
@@ -4466,7 +4468,7 @@ __decorateClass([
4466
4468
  IsEmail13()
4467
4469
  ], UpdateClientDto.prototype, "email", 2);
4468
4470
  __decorateClass([
4469
- IsOptional21(),
4471
+ IsOptional22(),
4470
4472
  MinLength14(6, { message: "Password must be at least 6 characters." }),
4471
4473
  MaxLength16(32, { message: "Password must not exceed 32 characters." }),
4472
4474
  Matches11(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
@@ -4498,7 +4500,7 @@ __decorateClass([
4498
4500
  IsString29()
4499
4501
  ], UpdateClientDto.prototype, "foundUsOn", 2);
4500
4502
  __decorateClass([
4501
- IsOptional21(),
4503
+ IsOptional22(),
4502
4504
  IsString29()
4503
4505
  ], UpdateClientDto.prototype, "foundUsOnDetail", 2);
4504
4506
 
@@ -4509,7 +4511,7 @@ var FREELANCER_DECLARATION_PATTERN = {
4509
4511
  };
4510
4512
 
4511
4513
  // src/modules/user/freelancer-declaration/dto/freelancer-declaration.dto.ts
4512
- import { IsOptional as IsOptional22, IsEnum as IsEnum18, IsString as IsString30, IsNotEmpty as IsNotEmpty47, IsIn as IsIn3 } from "class-validator";
4514
+ import { IsOptional as IsOptional23, IsEnum as IsEnum18, IsString as IsString30, IsNotEmpty as IsNotEmpty47, IsIn as IsIn3 } from "class-validator";
4513
4515
  var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
4514
4516
  DocumentTypeEnum2["AADHAAR"] = "AADHAAR_CARD";
4515
4517
  DocumentTypeEnum2["PASSPORT"] = "PASSPORT";
@@ -4520,7 +4522,7 @@ var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
4520
4522
  var FreelancerDeclarationDto = class {
4521
4523
  };
4522
4524
  __decorateClass([
4523
- IsOptional22(),
4525
+ IsOptional23(),
4524
4526
  IsString30({ message: "UUID must be a string" })
4525
4527
  ], FreelancerDeclarationDto.prototype, "uuid", 2);
4526
4528
  __decorateClass([
@@ -4544,35 +4546,35 @@ var CMS_PATTERNS = {
4544
4546
  };
4545
4547
 
4546
4548
  // src/modules/cms/dto/create-cms.dto.ts
4547
- import { IsBoolean as IsBoolean12, IsNotEmpty as IsNotEmpty48, IsOptional as IsOptional23 } from "class-validator";
4549
+ import { IsBoolean as IsBoolean12, IsNotEmpty as IsNotEmpty48, IsOptional as IsOptional24 } from "class-validator";
4548
4550
  var CreateCmsDto = class {
4549
4551
  };
4550
4552
  __decorateClass([
4551
4553
  IsNotEmpty48({ message: "Please enter name." })
4552
4554
  ], CreateCmsDto.prototype, "title", 2);
4553
4555
  __decorateClass([
4554
- IsOptional23()
4556
+ IsOptional24()
4555
4557
  ], CreateCmsDto.prototype, "content", 2);
4556
4558
  __decorateClass([
4557
- IsOptional23(),
4559
+ IsOptional24(),
4558
4560
  IsBoolean12({ message: "Is active must be a boolean value" })
4559
4561
  ], CreateCmsDto.prototype, "isActive", 2);
4560
4562
 
4561
4563
  // src/modules/cms/dto/update-cms.dto.ts
4562
- import { IsBoolean as IsBoolean13, IsNotEmpty as IsNotEmpty49, IsOptional as IsOptional24 } from "class-validator";
4564
+ import { IsBoolean as IsBoolean13, IsNotEmpty as IsNotEmpty49, IsOptional as IsOptional25 } from "class-validator";
4563
4565
  var UpdateCmsDto = class {
4564
4566
  };
4565
4567
  __decorateClass([
4566
- IsOptional24()
4568
+ IsOptional25()
4567
4569
  ], UpdateCmsDto.prototype, "uuid", 2);
4568
4570
  __decorateClass([
4569
4571
  IsNotEmpty49({ message: "Please enter name." })
4570
4572
  ], UpdateCmsDto.prototype, "title", 2);
4571
4573
  __decorateClass([
4572
- IsOptional24()
4574
+ IsOptional25()
4573
4575
  ], UpdateCmsDto.prototype, "content", 2);
4574
4576
  __decorateClass([
4575
- IsOptional24(),
4577
+ IsOptional25(),
4576
4578
  IsBoolean13({ message: "Is active must be a boolean value" })
4577
4579
  ], UpdateCmsDto.prototype, "isActive", 2);
4578
4580
 
@@ -4605,7 +4607,7 @@ import {
4605
4607
  IsString as IsString31,
4606
4608
  IsEnum as IsEnum19,
4607
4609
  IsInt as IsInt6,
4608
- IsOptional as IsOptional25,
4610
+ IsOptional as IsOptional26,
4609
4611
  IsArray as IsArray11,
4610
4612
  IsDateString as IsDateString4,
4611
4613
  IsNotEmpty as IsNotEmpty50,
@@ -4632,7 +4634,7 @@ __decorateClass([
4632
4634
  IsNotEmpty50({ message: "Job role is required." })
4633
4635
  ], AdminCreateJobInformationDto.prototype, "jobRole", 2);
4634
4636
  __decorateClass([
4635
- IsOptional25(),
4637
+ IsOptional26(),
4636
4638
  IsString31({ message: "Note must be a string." })
4637
4639
  ], AdminCreateJobInformationDto.prototype, "note", 2);
4638
4640
  __decorateClass([
@@ -4682,7 +4684,7 @@ __decorateClass([
4682
4684
  IsDateString4({ strict: true }, { message: "End date must be in YYYY-MM-DD format." })
4683
4685
  ], AdminCreateJobInformationDto.prototype, "tentativeEndDate", 2);
4684
4686
  __decorateClass([
4685
- IsOptional25(),
4687
+ IsOptional26(),
4686
4688
  IsString31({ message: "Additional comment must be a string." })
4687
4689
  ], AdminCreateJobInformationDto.prototype, "additionalComment", 2);
4688
4690
  __decorateClass([
@@ -4704,7 +4706,7 @@ import {
4704
4706
  IsString as IsString32,
4705
4707
  IsEnum as IsEnum20,
4706
4708
  IsInt as IsInt7,
4707
- IsOptional as IsOptional26,
4709
+ IsOptional as IsOptional27,
4708
4710
  IsArray as IsArray12,
4709
4711
  IsDateString as IsDateString5,
4710
4712
  IsNotEmpty as IsNotEmpty51,
@@ -4731,7 +4733,7 @@ __decorateClass([
4731
4733
  IsNotEmpty51({ message: "Job role is required." })
4732
4734
  ], AdminUpdateJobInformationDto.prototype, "jobRole", 2);
4733
4735
  __decorateClass([
4734
- IsOptional26(),
4736
+ IsOptional27(),
4735
4737
  IsString32({ message: "Note must be a string." })
4736
4738
  ], AdminUpdateJobInformationDto.prototype, "note", 2);
4737
4739
  __decorateClass([
@@ -4781,7 +4783,7 @@ __decorateClass([
4781
4783
  IsDateString5({ strict: true }, { message: "End date must be in YYYY-MM-DD format." })
4782
4784
  ], AdminUpdateJobInformationDto.prototype, "tentativeEndDate", 2);
4783
4785
  __decorateClass([
4784
- IsOptional26(),
4786
+ IsOptional27(),
4785
4787
  IsString32({ message: "Additional comment must be a string." })
4786
4788
  ], AdminUpdateJobInformationDto.prototype, "additionalComment", 2);
4787
4789
  __decorateClass([
@@ -4804,7 +4806,7 @@ var LEAD_PATTERN = {
4804
4806
  };
4805
4807
 
4806
4808
  // src/modules/lead/dto/create-lead.dto.ts
4807
- import { IsString as IsString33, IsEmail as IsEmail14, IsOptional as IsOptional27, IsEnum as IsEnum21 } from "class-validator";
4809
+ import { IsString as IsString33, IsEmail as IsEmail14, IsOptional as IsOptional28, IsEnum as IsEnum21 } from "class-validator";
4808
4810
  var CategoryEmumDto = /* @__PURE__ */ ((CategoryEmumDto2) => {
4809
4811
  CategoryEmumDto2["BUSINESS"] = "BUSINESS";
4810
4812
  CategoryEmumDto2["FREELANCER"] = "FREELANCER";
@@ -4825,7 +4827,7 @@ __decorateClass([
4825
4827
  IsString33({ message: "Mobile must be a string (e.g., 1243253534)" })
4826
4828
  ], CreateLeadDto.prototype, "mobile", 2);
4827
4829
  __decorateClass([
4828
- IsOptional27(),
4830
+ IsOptional28(),
4829
4831
  IsString33({ message: "Description must be a string" })
4830
4832
  ], CreateLeadDto.prototype, "description", 2);
4831
4833
  __decorateClass([
@@ -4849,7 +4851,7 @@ var ADMIN_ROLE_PATTERN = {
4849
4851
  };
4850
4852
 
4851
4853
  // src/modules/admin-role/dto/create-admin-role.dto.ts
4852
- import { IsNotEmpty as IsNotEmpty52, IsOptional as IsOptional28, IsString as IsString34 } from "class-validator";
4854
+ import { IsNotEmpty as IsNotEmpty52, IsOptional as IsOptional29, IsString as IsString34 } from "class-validator";
4853
4855
  var CreateAdminRoleDto = class {
4854
4856
  };
4855
4857
  __decorateClass([
@@ -4857,12 +4859,12 @@ __decorateClass([
4857
4859
  IsString34({ message: "Role name must be a string." })
4858
4860
  ], CreateAdminRoleDto.prototype, "roleName", 2);
4859
4861
  __decorateClass([
4860
- IsOptional28(),
4862
+ IsOptional29(),
4861
4863
  IsString34({ message: "Role description must be a string." })
4862
4864
  ], CreateAdminRoleDto.prototype, "roleDescription", 2);
4863
4865
 
4864
4866
  // src/modules/admin-role/dto/update-admin-role.dto.ts
4865
- import { IsBoolean as IsBoolean15, IsNotEmpty as IsNotEmpty53, IsOptional as IsOptional29, IsString as IsString35 } from "class-validator";
4867
+ import { IsBoolean as IsBoolean15, IsNotEmpty as IsNotEmpty53, IsOptional as IsOptional30, IsString as IsString35 } from "class-validator";
4866
4868
  var UpdateAdminRoleDto = class {
4867
4869
  };
4868
4870
  __decorateClass([
@@ -4870,11 +4872,11 @@ __decorateClass([
4870
4872
  IsString35({ message: "Role name must be a string." })
4871
4873
  ], UpdateAdminRoleDto.prototype, "roleName", 2);
4872
4874
  __decorateClass([
4873
- IsOptional29(),
4875
+ IsOptional30(),
4874
4876
  IsString35({ message: "Role description must be a string." })
4875
4877
  ], UpdateAdminRoleDto.prototype, "roleDescription", 2);
4876
4878
  __decorateClass([
4877
- IsOptional29(),
4879
+ IsOptional30(),
4878
4880
  IsBoolean15({ message: "Is active must be a boolean value." })
4879
4881
  ], UpdateAdminRoleDto.prototype, "isActive", 2);
4880
4882
 
@@ -1,5 +1,6 @@
1
1
  export declare enum ScopeEnum {
2
2
  ADMIN = "ADMIN",
3
+ SUB_ADMIN = "SUB_ADMIN",
3
4
  CLIENT = "CLIENT",
4
5
  FREELANCER = "FREELANCER"
5
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.300",
3
+ "version": "1.0.302",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",