@experts_hub/shared 1.0.72 → 1.0.74
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/entities/company-profile.entity.d.ts +1 -1
- package/dist/index.d.mts +7 -2
- package/dist/index.d.ts +7 -2
- package/dist/index.js +75 -55
- package/dist/index.mjs +64 -39
- package/dist/modules/onboarding/dto/freelancer-change-password.dto.d.ts +4 -0
- package/dist/modules/onboarding/dto/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -23,7 +23,7 @@ export declare class CompanyProfile extends BaseEntity {
|
|
|
23
23
|
bio: string;
|
|
24
24
|
webSite: string;
|
|
25
25
|
aboutCompany: string;
|
|
26
|
-
|
|
26
|
+
isServiceAgreementSigned: boolean;
|
|
27
27
|
skills: string[];
|
|
28
28
|
requiredFreelancer: string;
|
|
29
29
|
kindOfHiring: KindOfHire;
|
package/dist/index.d.mts
CHANGED
|
@@ -85,6 +85,11 @@ declare class ClientCreateAccountDto {
|
|
|
85
85
|
confirmPassword: string;
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
+
declare class FreelancerChangePasswordDto {
|
|
89
|
+
oldPassword: string;
|
|
90
|
+
newPassword: string;
|
|
91
|
+
}
|
|
92
|
+
|
|
88
93
|
declare const RESUME_PARSER_PATTERN: {
|
|
89
94
|
handleResumeParsing: string;
|
|
90
95
|
};
|
|
@@ -379,7 +384,7 @@ declare class CompanyProfile extends BaseEntity {
|
|
|
379
384
|
bio: string;
|
|
380
385
|
webSite: string;
|
|
381
386
|
aboutCompany: string;
|
|
382
|
-
|
|
387
|
+
isServiceAgreementSigned: boolean;
|
|
383
388
|
skills: string[];
|
|
384
389
|
requiredFreelancer: string;
|
|
385
390
|
kindOfHiring: KindOfHire;
|
|
@@ -510,4 +515,4 @@ declare class JobRoles extends BaseEntity {
|
|
|
510
515
|
isActive: boolean;
|
|
511
516
|
}
|
|
512
517
|
|
|
513
|
-
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, CLIENT_PROFILE_PATTERN, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, 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 IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JOB_ROLE_PATTERN, Job, JobLocation, JobRMQAdapter, JobRoles, JobStatus, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NatureOfWork, ONBOARDING_PATTERN, OTP_PATTERN, Otp, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, TypeOfEmployment, UpdateCompanyLogoDto, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
|
518
|
+
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, CLIENT_PROFILE_PATTERN, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, 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 IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JOB_ROLE_PATTERN, Job, JobLocation, JobRMQAdapter, JobRoles, JobStatus, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NatureOfWork, ONBOARDING_PATTERN, OTP_PATTERN, Otp, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, TypeOfEmployment, UpdateCompanyLogoDto, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
package/dist/index.d.ts
CHANGED
|
@@ -85,6 +85,11 @@ declare class ClientCreateAccountDto {
|
|
|
85
85
|
confirmPassword: string;
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
+
declare class FreelancerChangePasswordDto {
|
|
89
|
+
oldPassword: string;
|
|
90
|
+
newPassword: string;
|
|
91
|
+
}
|
|
92
|
+
|
|
88
93
|
declare const RESUME_PARSER_PATTERN: {
|
|
89
94
|
handleResumeParsing: string;
|
|
90
95
|
};
|
|
@@ -379,7 +384,7 @@ declare class CompanyProfile extends BaseEntity {
|
|
|
379
384
|
bio: string;
|
|
380
385
|
webSite: string;
|
|
381
386
|
aboutCompany: string;
|
|
382
|
-
|
|
387
|
+
isServiceAgreementSigned: boolean;
|
|
383
388
|
skills: string[];
|
|
384
389
|
requiredFreelancer: string;
|
|
385
390
|
kindOfHiring: KindOfHire;
|
|
@@ -510,4 +515,4 @@ declare class JobRoles extends BaseEntity {
|
|
|
510
515
|
isActive: boolean;
|
|
511
516
|
}
|
|
512
517
|
|
|
513
|
-
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, CLIENT_PROFILE_PATTERN, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, 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 IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JOB_ROLE_PATTERN, Job, JobLocation, JobRMQAdapter, JobRoles, JobStatus, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NatureOfWork, ONBOARDING_PATTERN, OTP_PATTERN, Otp, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, TypeOfEmployment, UpdateCompanyLogoDto, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
|
518
|
+
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, CLIENT_PROFILE_PATTERN, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, 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 IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JOB_ROLE_PATTERN, Job, JobLocation, JobRMQAdapter, JobRoles, JobStatus, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NatureOfWork, ONBOARDING_PATTERN, OTP_PATTERN, Otp, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, TypeOfEmployment, UpdateCompanyLogoDto, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
package/dist/index.js
CHANGED
|
@@ -37,6 +37,7 @@ __export(index_exports, {
|
|
|
37
37
|
CompanyProfile: () => CompanyProfile,
|
|
38
38
|
CreateQuestionDto: () => CreateQuestionDto,
|
|
39
39
|
CreateSubAdminDto: () => CreateSubAdminDto,
|
|
40
|
+
FreelancerChangePasswordDto: () => FreelancerChangePasswordDto,
|
|
40
41
|
FreelancerCreateAccountDto: () => FreelancerCreateAccountDto,
|
|
41
42
|
FreelancerDevelopmentPreferenceDto: () => FreelancerDevelopmentPreferenceDto,
|
|
42
43
|
FreelancerProfile: () => FreelancerProfile,
|
|
@@ -321,6 +322,24 @@ __decorateClass([
|
|
|
321
322
|
Match("password", { message: "Passwords do not match" })
|
|
322
323
|
], ClientCreateAccountDto.prototype, "confirmPassword", 2);
|
|
323
324
|
|
|
325
|
+
// src/modules/onboarding/dto/freelancer-change-password.dto.ts
|
|
326
|
+
var import_class_validator12 = require("class-validator");
|
|
327
|
+
var FreelancerChangePasswordDto = class {
|
|
328
|
+
};
|
|
329
|
+
__decorateClass([
|
|
330
|
+
(0, import_class_validator12.IsNotEmpty)({ message: "Please enter Old Password." }),
|
|
331
|
+
(0, import_class_validator12.IsString)()
|
|
332
|
+
], FreelancerChangePasswordDto.prototype, "oldPassword", 2);
|
|
333
|
+
__decorateClass([
|
|
334
|
+
(0, import_class_validator12.IsNotEmpty)({ message: "Please enter New Password." }),
|
|
335
|
+
(0, import_class_validator12.IsString)(),
|
|
336
|
+
(0, import_class_validator12.MinLength)(6),
|
|
337
|
+
(0, import_class_validator12.MaxLength)(32),
|
|
338
|
+
(0, import_class_validator12.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
339
|
+
message: "New Password must include letters, numbers and symbols."
|
|
340
|
+
})
|
|
341
|
+
], FreelancerChangePasswordDto.prototype, "newPassword", 2);
|
|
342
|
+
|
|
324
343
|
// src/modules/resume-parser/pattern/pattern.ts
|
|
325
344
|
var RESUME_PARSER_PATTERN = {
|
|
326
345
|
handleResumeParsing: "handle.resume.parsing"
|
|
@@ -339,75 +358,75 @@ var SUBADMIN_PATTERN = {
|
|
|
339
358
|
};
|
|
340
359
|
|
|
341
360
|
// src/modules/user/subadmin/dto/create-subadmin.dto.ts
|
|
342
|
-
var
|
|
361
|
+
var import_class_validator13 = require("class-validator");
|
|
343
362
|
var CreateSubAdminDto = class {
|
|
344
363
|
};
|
|
345
364
|
__decorateClass([
|
|
346
|
-
(0,
|
|
365
|
+
(0, import_class_validator13.IsNotEmpty)({ message: "Please enter unique id." })
|
|
347
366
|
], CreateSubAdminDto.prototype, "uniqueId", 2);
|
|
348
367
|
__decorateClass([
|
|
349
|
-
(0,
|
|
368
|
+
(0, import_class_validator13.IsNotEmpty)({ message: "Please enter username." })
|
|
350
369
|
], CreateSubAdminDto.prototype, "userName", 2);
|
|
351
370
|
__decorateClass([
|
|
352
|
-
(0,
|
|
371
|
+
(0, import_class_validator13.IsNotEmpty)({ message: "Please enter first name." })
|
|
353
372
|
], CreateSubAdminDto.prototype, "firstName", 2);
|
|
354
373
|
__decorateClass([
|
|
355
|
-
(0,
|
|
374
|
+
(0, import_class_validator13.IsNotEmpty)({ message: "Please enter last name." })
|
|
356
375
|
], CreateSubAdminDto.prototype, "lastName", 2);
|
|
357
376
|
__decorateClass([
|
|
358
|
-
(0,
|
|
377
|
+
(0, import_class_validator13.IsNotEmpty)({ message: "Please enter email." })
|
|
359
378
|
], CreateSubAdminDto.prototype, "email", 2);
|
|
360
379
|
__decorateClass([
|
|
361
|
-
(0,
|
|
380
|
+
(0, import_class_validator13.IsNotEmpty)({ message: "Please enter mobile number." })
|
|
362
381
|
], CreateSubAdminDto.prototype, "mobile", 2);
|
|
363
382
|
__decorateClass([
|
|
364
|
-
(0,
|
|
383
|
+
(0, import_class_validator13.IsNotEmpty)({ message: "Please enter the password." })
|
|
365
384
|
], CreateSubAdminDto.prototype, "password", 2);
|
|
366
385
|
__decorateClass([
|
|
367
|
-
(0,
|
|
386
|
+
(0, import_class_validator13.IsNotEmpty)({ message: "Please enter account type." })
|
|
368
387
|
], CreateSubAdminDto.prototype, "accountType", 2);
|
|
369
388
|
__decorateClass([
|
|
370
|
-
(0,
|
|
389
|
+
(0, import_class_validator13.IsNotEmpty)({ message: "Please enter account status." })
|
|
371
390
|
], CreateSubAdminDto.prototype, "accountStatus", 2);
|
|
372
391
|
|
|
373
392
|
// src/modules/user/subadmin/dto/update-subadmin-status.dto.ts
|
|
374
|
-
var
|
|
393
|
+
var import_class_validator14 = require("class-validator");
|
|
375
394
|
var UpdateSubAdminAccountStatusDto = class {
|
|
376
395
|
};
|
|
377
396
|
__decorateClass([
|
|
378
|
-
(0,
|
|
397
|
+
(0, import_class_validator14.IsString)()
|
|
379
398
|
], UpdateSubAdminAccountStatusDto.prototype, "accountStatus", 2);
|
|
380
399
|
|
|
381
400
|
// src/modules/user/subadmin/dto/update-subadmin.dto.ts
|
|
382
|
-
var
|
|
401
|
+
var import_class_validator15 = require("class-validator");
|
|
383
402
|
var UpdateSubAdminDto = class {
|
|
384
403
|
};
|
|
385
404
|
__decorateClass([
|
|
386
|
-
(0,
|
|
405
|
+
(0, import_class_validator15.IsNotEmpty)({ message: "Please enter unique id." })
|
|
387
406
|
], UpdateSubAdminDto.prototype, "uniqueId", 2);
|
|
388
407
|
__decorateClass([
|
|
389
|
-
(0,
|
|
408
|
+
(0, import_class_validator15.IsNotEmpty)({ message: "Please enter username." })
|
|
390
409
|
], UpdateSubAdminDto.prototype, "userName", 2);
|
|
391
410
|
__decorateClass([
|
|
392
|
-
(0,
|
|
411
|
+
(0, import_class_validator15.IsNotEmpty)({ message: "Please enter first name." })
|
|
393
412
|
], UpdateSubAdminDto.prototype, "firstName", 2);
|
|
394
413
|
__decorateClass([
|
|
395
|
-
(0,
|
|
414
|
+
(0, import_class_validator15.IsNotEmpty)({ message: "Please enter last name." })
|
|
396
415
|
], UpdateSubAdminDto.prototype, "lastName", 2);
|
|
397
416
|
__decorateClass([
|
|
398
|
-
(0,
|
|
417
|
+
(0, import_class_validator15.IsNotEmpty)({ message: "Please enter email." })
|
|
399
418
|
], UpdateSubAdminDto.prototype, "email", 2);
|
|
400
419
|
__decorateClass([
|
|
401
|
-
(0,
|
|
420
|
+
(0, import_class_validator15.IsNotEmpty)({ message: "Please enter mobile number." })
|
|
402
421
|
], UpdateSubAdminDto.prototype, "mobile", 2);
|
|
403
422
|
__decorateClass([
|
|
404
|
-
(0,
|
|
423
|
+
(0, import_class_validator15.IsNotEmpty)({ message: "Please enter the password." })
|
|
405
424
|
], UpdateSubAdminDto.prototype, "password", 2);
|
|
406
425
|
__decorateClass([
|
|
407
|
-
(0,
|
|
426
|
+
(0, import_class_validator15.IsNotEmpty)({ message: "Please enter account type." })
|
|
408
427
|
], UpdateSubAdminDto.prototype, "accountType", 2);
|
|
409
428
|
__decorateClass([
|
|
410
|
-
(0,
|
|
429
|
+
(0, import_class_validator15.IsNotEmpty)({ message: "Please enter account status." })
|
|
411
430
|
], UpdateSubAdminDto.prototype, "accountStatus", 2);
|
|
412
431
|
|
|
413
432
|
// src/modules/user/client-profile/pattern/pattern.ts
|
|
@@ -418,7 +437,7 @@ var CLIENT_PROFILE_PATTERN = {
|
|
|
418
437
|
};
|
|
419
438
|
|
|
420
439
|
// src/modules/user/client-profile/dto/update-client-profile.dto.ts
|
|
421
|
-
var
|
|
440
|
+
var import_class_validator16 = require("class-validator");
|
|
422
441
|
|
|
423
442
|
// src/entities/company-profile.entity.ts
|
|
424
443
|
var import_typeorm8 = require("typeorm");
|
|
@@ -893,14 +912,14 @@ __decorateClass([
|
|
|
893
912
|
(0, import_typeorm8.Column)({ name: "bio", type: "varchar", nullable: true })
|
|
894
913
|
], CompanyProfile.prototype, "bio", 2);
|
|
895
914
|
__decorateClass([
|
|
896
|
-
(0, import_typeorm8.Column)({ name: "website", type: "varchar" })
|
|
915
|
+
(0, import_typeorm8.Column)({ name: "website", type: "varchar", nullable: true })
|
|
897
916
|
], CompanyProfile.prototype, "webSite", 2);
|
|
898
917
|
__decorateClass([
|
|
899
|
-
(0, import_typeorm8.Column)({ name: "about_company", type: "varchar" })
|
|
918
|
+
(0, import_typeorm8.Column)({ name: "about_company", type: "varchar", nullable: true })
|
|
900
919
|
], CompanyProfile.prototype, "aboutCompany", 2);
|
|
901
920
|
__decorateClass([
|
|
902
|
-
(0, import_typeorm8.Column)({ name: "
|
|
903
|
-
], CompanyProfile.prototype, "
|
|
921
|
+
(0, import_typeorm8.Column)({ name: "is_service_aggrement_signed", type: "boolean", default: false })
|
|
922
|
+
], CompanyProfile.prototype, "isServiceAgreementSigned", 2);
|
|
904
923
|
__decorateClass([
|
|
905
924
|
(0, import_typeorm8.Column)({ name: "skills", type: "text", nullable: true })
|
|
906
925
|
], CompanyProfile.prototype, "skills", 2);
|
|
@@ -939,57 +958,57 @@ CompanyProfile = __decorateClass([
|
|
|
939
958
|
var UpdateCompanyProfileDto = class {
|
|
940
959
|
};
|
|
941
960
|
__decorateClass([
|
|
942
|
-
(0,
|
|
961
|
+
(0, import_class_validator16.IsNumber)({}, { message: "User ID must be a number." })
|
|
943
962
|
], UpdateCompanyProfileDto.prototype, "userId", 2);
|
|
944
963
|
__decorateClass([
|
|
945
|
-
(0,
|
|
964
|
+
(0, import_class_validator16.IsString)({ message: "Company name must be a string." })
|
|
946
965
|
], UpdateCompanyProfileDto.prototype, "companyName", 2);
|
|
947
966
|
__decorateClass([
|
|
948
|
-
(0,
|
|
949
|
-
(0,
|
|
967
|
+
(0, import_class_validator16.IsOptional)(),
|
|
968
|
+
(0, import_class_validator16.IsString)({ message: "Company bio must be a string." })
|
|
950
969
|
], UpdateCompanyProfileDto.prototype, "bio", 2);
|
|
951
970
|
__decorateClass([
|
|
952
|
-
(0,
|
|
953
|
-
(0,
|
|
971
|
+
(0, import_class_validator16.IsOptional)(),
|
|
972
|
+
(0, import_class_validator16.IsNumber)({}, { message: "Rating must be a numeric value." })
|
|
954
973
|
], UpdateCompanyProfileDto.prototype, "rating", 2);
|
|
955
974
|
__decorateClass([
|
|
956
|
-
(0,
|
|
975
|
+
(0, import_class_validator16.IsString)({ message: "Agreement must be a string (e.g., a file URL or path)." })
|
|
957
976
|
], UpdateCompanyProfileDto.prototype, "agreement", 2);
|
|
958
977
|
__decorateClass([
|
|
959
|
-
(0,
|
|
960
|
-
(0,
|
|
961
|
-
(0,
|
|
978
|
+
(0, import_class_validator16.IsOptional)(),
|
|
979
|
+
(0, import_class_validator16.IsArray)({ message: "Skills must be an array of strings." }),
|
|
980
|
+
(0, import_class_validator16.IsString)({ each: true, message: "Each skill must be a string." })
|
|
962
981
|
], UpdateCompanyProfileDto.prototype, "skills", 2);
|
|
963
982
|
__decorateClass([
|
|
964
|
-
(0,
|
|
965
|
-
(0,
|
|
983
|
+
(0, import_class_validator16.IsOptional)(),
|
|
984
|
+
(0, import_class_validator16.IsString)({ message: "Required freelancer must be a string." })
|
|
966
985
|
], UpdateCompanyProfileDto.prototype, "requiredFreelancer", 2);
|
|
967
986
|
__decorateClass([
|
|
968
|
-
(0,
|
|
969
|
-
(0,
|
|
987
|
+
(0, import_class_validator16.IsOptional)(),
|
|
988
|
+
(0, import_class_validator16.IsEnum)(KindOfHire, {
|
|
970
989
|
message: `Kind of hiring must be one of: ${Object.values(KindOfHire).join(", ")}`
|
|
971
990
|
})
|
|
972
991
|
], UpdateCompanyProfileDto.prototype, "kindOfHiring", 2);
|
|
973
992
|
__decorateClass([
|
|
974
|
-
(0,
|
|
975
|
-
(0,
|
|
993
|
+
(0, import_class_validator16.IsOptional)(),
|
|
994
|
+
(0, import_class_validator16.IsEnum)(ModeOfHire, {
|
|
976
995
|
message: `Mode of hire must be one of: ${Object.values(ModeOfHire).join(", ")}`
|
|
977
996
|
})
|
|
978
997
|
], UpdateCompanyProfileDto.prototype, "modeOfHire", 2);
|
|
979
998
|
__decorateClass([
|
|
980
|
-
(0,
|
|
981
|
-
(0,
|
|
999
|
+
(0, import_class_validator16.IsOptional)(),
|
|
1000
|
+
(0, import_class_validator16.IsEnum)(FromUsOn, {
|
|
982
1001
|
message: `Found us on must be one of: ${Object.values(FromUsOn).join(", ")}`
|
|
983
1002
|
})
|
|
984
1003
|
], UpdateCompanyProfileDto.prototype, "foundUsOn", 2);
|
|
985
1004
|
|
|
986
1005
|
// src/modules/user/client-profile/dto/update-client-logo.dto.ts
|
|
987
|
-
var
|
|
1006
|
+
var import_class_validator17 = require("class-validator");
|
|
988
1007
|
var UpdateCompanyLogoDto = class {
|
|
989
1008
|
};
|
|
990
1009
|
__decorateClass([
|
|
991
|
-
(0,
|
|
992
|
-
(0,
|
|
1010
|
+
(0, import_class_validator17.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
1011
|
+
(0, import_class_validator17.IsUUID)()
|
|
993
1012
|
], UpdateCompanyLogoDto.prototype, "uuid", 2);
|
|
994
1013
|
|
|
995
1014
|
// src/modules/question/pattern/pattern.ts
|
|
@@ -998,24 +1017,24 @@ var QUESTION_PATTERN = {
|
|
|
998
1017
|
};
|
|
999
1018
|
|
|
1000
1019
|
// src/modules/question/dto/create-question.dto.ts
|
|
1001
|
-
var
|
|
1020
|
+
var import_class_validator18 = require("class-validator");
|
|
1002
1021
|
var CreateQuestionDto = class {
|
|
1003
1022
|
};
|
|
1004
1023
|
__decorateClass([
|
|
1005
|
-
(0,
|
|
1024
|
+
(0, import_class_validator18.IsNotEmpty)({ message: "Please enter unique id." })
|
|
1006
1025
|
], CreateQuestionDto.prototype, "questionId", 2);
|
|
1007
1026
|
__decorateClass([
|
|
1008
|
-
(0,
|
|
1027
|
+
(0, import_class_validator18.IsNotEmpty)({ message: "Please enter question." })
|
|
1009
1028
|
], CreateQuestionDto.prototype, "question", 2);
|
|
1010
1029
|
__decorateClass([
|
|
1011
|
-
(0,
|
|
1030
|
+
(0, import_class_validator18.IsNotEmpty)({ message: "Please enter for whom the question is." })
|
|
1012
1031
|
], CreateQuestionDto.prototype, "questionFor", 2);
|
|
1013
1032
|
__decorateClass([
|
|
1014
|
-
(0,
|
|
1033
|
+
(0, import_class_validator18.IsNotEmpty)({ message: "Please enter options." })
|
|
1015
1034
|
], CreateQuestionDto.prototype, "options", 2);
|
|
1016
1035
|
__decorateClass([
|
|
1017
|
-
(0,
|
|
1018
|
-
(0,
|
|
1036
|
+
(0, import_class_validator18.IsOptional)(),
|
|
1037
|
+
(0, import_class_validator18.IsBoolean)({ message: "Whether the question status active" })
|
|
1019
1038
|
], CreateQuestionDto.prototype, "isActive", 2);
|
|
1020
1039
|
|
|
1021
1040
|
// src/modules/job/pattern/pattern.ts
|
|
@@ -1234,6 +1253,7 @@ JobRoles = __decorateClass([
|
|
|
1234
1253
|
CompanyProfile,
|
|
1235
1254
|
CreateQuestionDto,
|
|
1236
1255
|
CreateSubAdminDto,
|
|
1256
|
+
FreelancerChangePasswordDto,
|
|
1237
1257
|
FreelancerCreateAccountDto,
|
|
1238
1258
|
FreelancerDevelopmentPreferenceDto,
|
|
1239
1259
|
FreelancerProfile,
|
package/dist/index.mjs
CHANGED
|
@@ -289,6 +289,30 @@ __decorateClass([
|
|
|
289
289
|
Match("password", { message: "Passwords do not match" })
|
|
290
290
|
], ClientCreateAccountDto.prototype, "confirmPassword", 2);
|
|
291
291
|
|
|
292
|
+
// src/modules/onboarding/dto/freelancer-change-password.dto.ts
|
|
293
|
+
import {
|
|
294
|
+
IsString as IsString6,
|
|
295
|
+
IsNotEmpty as IsNotEmpty11,
|
|
296
|
+
MaxLength as MaxLength3,
|
|
297
|
+
MinLength as MinLength3,
|
|
298
|
+
Matches as Matches3
|
|
299
|
+
} from "class-validator";
|
|
300
|
+
var FreelancerChangePasswordDto = class {
|
|
301
|
+
};
|
|
302
|
+
__decorateClass([
|
|
303
|
+
IsNotEmpty11({ message: "Please enter Old Password." }),
|
|
304
|
+
IsString6()
|
|
305
|
+
], FreelancerChangePasswordDto.prototype, "oldPassword", 2);
|
|
306
|
+
__decorateClass([
|
|
307
|
+
IsNotEmpty11({ message: "Please enter New Password." }),
|
|
308
|
+
IsString6(),
|
|
309
|
+
MinLength3(6),
|
|
310
|
+
MaxLength3(32),
|
|
311
|
+
Matches3(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
312
|
+
message: "New Password must include letters, numbers and symbols."
|
|
313
|
+
})
|
|
314
|
+
], FreelancerChangePasswordDto.prototype, "newPassword", 2);
|
|
315
|
+
|
|
292
316
|
// src/modules/resume-parser/pattern/pattern.ts
|
|
293
317
|
var RESUME_PARSER_PATTERN = {
|
|
294
318
|
handleResumeParsing: "handle.resume.parsing"
|
|
@@ -308,76 +332,76 @@ var SUBADMIN_PATTERN = {
|
|
|
308
332
|
|
|
309
333
|
// src/modules/user/subadmin/dto/create-subadmin.dto.ts
|
|
310
334
|
import {
|
|
311
|
-
IsNotEmpty as
|
|
335
|
+
IsNotEmpty as IsNotEmpty12
|
|
312
336
|
} from "class-validator";
|
|
313
337
|
var CreateSubAdminDto = class {
|
|
314
338
|
};
|
|
315
339
|
__decorateClass([
|
|
316
|
-
|
|
340
|
+
IsNotEmpty12({ message: "Please enter unique id." })
|
|
317
341
|
], CreateSubAdminDto.prototype, "uniqueId", 2);
|
|
318
342
|
__decorateClass([
|
|
319
|
-
|
|
343
|
+
IsNotEmpty12({ message: "Please enter username." })
|
|
320
344
|
], CreateSubAdminDto.prototype, "userName", 2);
|
|
321
345
|
__decorateClass([
|
|
322
|
-
|
|
346
|
+
IsNotEmpty12({ message: "Please enter first name." })
|
|
323
347
|
], CreateSubAdminDto.prototype, "firstName", 2);
|
|
324
348
|
__decorateClass([
|
|
325
|
-
|
|
349
|
+
IsNotEmpty12({ message: "Please enter last name." })
|
|
326
350
|
], CreateSubAdminDto.prototype, "lastName", 2);
|
|
327
351
|
__decorateClass([
|
|
328
|
-
|
|
352
|
+
IsNotEmpty12({ message: "Please enter email." })
|
|
329
353
|
], CreateSubAdminDto.prototype, "email", 2);
|
|
330
354
|
__decorateClass([
|
|
331
|
-
|
|
355
|
+
IsNotEmpty12({ message: "Please enter mobile number." })
|
|
332
356
|
], CreateSubAdminDto.prototype, "mobile", 2);
|
|
333
357
|
__decorateClass([
|
|
334
|
-
|
|
358
|
+
IsNotEmpty12({ message: "Please enter the password." })
|
|
335
359
|
], CreateSubAdminDto.prototype, "password", 2);
|
|
336
360
|
__decorateClass([
|
|
337
|
-
|
|
361
|
+
IsNotEmpty12({ message: "Please enter account type." })
|
|
338
362
|
], CreateSubAdminDto.prototype, "accountType", 2);
|
|
339
363
|
__decorateClass([
|
|
340
|
-
|
|
364
|
+
IsNotEmpty12({ message: "Please enter account status." })
|
|
341
365
|
], CreateSubAdminDto.prototype, "accountStatus", 2);
|
|
342
366
|
|
|
343
367
|
// src/modules/user/subadmin/dto/update-subadmin-status.dto.ts
|
|
344
|
-
import { IsString as
|
|
368
|
+
import { IsString as IsString7 } from "class-validator";
|
|
345
369
|
var UpdateSubAdminAccountStatusDto = class {
|
|
346
370
|
};
|
|
347
371
|
__decorateClass([
|
|
348
|
-
|
|
372
|
+
IsString7()
|
|
349
373
|
], UpdateSubAdminAccountStatusDto.prototype, "accountStatus", 2);
|
|
350
374
|
|
|
351
375
|
// src/modules/user/subadmin/dto/update-subadmin.dto.ts
|
|
352
|
-
import { IsNotEmpty as
|
|
376
|
+
import { IsNotEmpty as IsNotEmpty13 } from "class-validator";
|
|
353
377
|
var UpdateSubAdminDto = class {
|
|
354
378
|
};
|
|
355
379
|
__decorateClass([
|
|
356
|
-
|
|
380
|
+
IsNotEmpty13({ message: "Please enter unique id." })
|
|
357
381
|
], UpdateSubAdminDto.prototype, "uniqueId", 2);
|
|
358
382
|
__decorateClass([
|
|
359
|
-
|
|
383
|
+
IsNotEmpty13({ message: "Please enter username." })
|
|
360
384
|
], UpdateSubAdminDto.prototype, "userName", 2);
|
|
361
385
|
__decorateClass([
|
|
362
|
-
|
|
386
|
+
IsNotEmpty13({ message: "Please enter first name." })
|
|
363
387
|
], UpdateSubAdminDto.prototype, "firstName", 2);
|
|
364
388
|
__decorateClass([
|
|
365
|
-
|
|
389
|
+
IsNotEmpty13({ message: "Please enter last name." })
|
|
366
390
|
], UpdateSubAdminDto.prototype, "lastName", 2);
|
|
367
391
|
__decorateClass([
|
|
368
|
-
|
|
392
|
+
IsNotEmpty13({ message: "Please enter email." })
|
|
369
393
|
], UpdateSubAdminDto.prototype, "email", 2);
|
|
370
394
|
__decorateClass([
|
|
371
|
-
|
|
395
|
+
IsNotEmpty13({ message: "Please enter mobile number." })
|
|
372
396
|
], UpdateSubAdminDto.prototype, "mobile", 2);
|
|
373
397
|
__decorateClass([
|
|
374
|
-
|
|
398
|
+
IsNotEmpty13({ message: "Please enter the password." })
|
|
375
399
|
], UpdateSubAdminDto.prototype, "password", 2);
|
|
376
400
|
__decorateClass([
|
|
377
|
-
|
|
401
|
+
IsNotEmpty13({ message: "Please enter account type." })
|
|
378
402
|
], UpdateSubAdminDto.prototype, "accountType", 2);
|
|
379
403
|
__decorateClass([
|
|
380
|
-
|
|
404
|
+
IsNotEmpty13({ message: "Please enter account status." })
|
|
381
405
|
], UpdateSubAdminDto.prototype, "accountStatus", 2);
|
|
382
406
|
|
|
383
407
|
// src/modules/user/client-profile/pattern/pattern.ts
|
|
@@ -391,7 +415,7 @@ var CLIENT_PROFILE_PATTERN = {
|
|
|
391
415
|
import {
|
|
392
416
|
IsEnum,
|
|
393
417
|
IsOptional as IsOptional4,
|
|
394
|
-
IsString as
|
|
418
|
+
IsString as IsString9,
|
|
395
419
|
IsNumber,
|
|
396
420
|
IsArray
|
|
397
421
|
} from "class-validator";
|
|
@@ -911,14 +935,14 @@ __decorateClass([
|
|
|
911
935
|
Column8({ name: "bio", type: "varchar", nullable: true })
|
|
912
936
|
], CompanyProfile.prototype, "bio", 2);
|
|
913
937
|
__decorateClass([
|
|
914
|
-
Column8({ name: "website", type: "varchar" })
|
|
938
|
+
Column8({ name: "website", type: "varchar", nullable: true })
|
|
915
939
|
], CompanyProfile.prototype, "webSite", 2);
|
|
916
940
|
__decorateClass([
|
|
917
|
-
Column8({ name: "about_company", type: "varchar" })
|
|
941
|
+
Column8({ name: "about_company", type: "varchar", nullable: true })
|
|
918
942
|
], CompanyProfile.prototype, "aboutCompany", 2);
|
|
919
943
|
__decorateClass([
|
|
920
|
-
Column8({ name: "
|
|
921
|
-
], CompanyProfile.prototype, "
|
|
944
|
+
Column8({ name: "is_service_aggrement_signed", type: "boolean", default: false })
|
|
945
|
+
], CompanyProfile.prototype, "isServiceAgreementSigned", 2);
|
|
922
946
|
__decorateClass([
|
|
923
947
|
Column8({ name: "skills", type: "text", nullable: true })
|
|
924
948
|
], CompanyProfile.prototype, "skills", 2);
|
|
@@ -960,27 +984,27 @@ __decorateClass([
|
|
|
960
984
|
IsNumber({}, { message: "User ID must be a number." })
|
|
961
985
|
], UpdateCompanyProfileDto.prototype, "userId", 2);
|
|
962
986
|
__decorateClass([
|
|
963
|
-
|
|
987
|
+
IsString9({ message: "Company name must be a string." })
|
|
964
988
|
], UpdateCompanyProfileDto.prototype, "companyName", 2);
|
|
965
989
|
__decorateClass([
|
|
966
990
|
IsOptional4(),
|
|
967
|
-
|
|
991
|
+
IsString9({ message: "Company bio must be a string." })
|
|
968
992
|
], UpdateCompanyProfileDto.prototype, "bio", 2);
|
|
969
993
|
__decorateClass([
|
|
970
994
|
IsOptional4(),
|
|
971
995
|
IsNumber({}, { message: "Rating must be a numeric value." })
|
|
972
996
|
], UpdateCompanyProfileDto.prototype, "rating", 2);
|
|
973
997
|
__decorateClass([
|
|
974
|
-
|
|
998
|
+
IsString9({ message: "Agreement must be a string (e.g., a file URL or path)." })
|
|
975
999
|
], UpdateCompanyProfileDto.prototype, "agreement", 2);
|
|
976
1000
|
__decorateClass([
|
|
977
1001
|
IsOptional4(),
|
|
978
1002
|
IsArray({ message: "Skills must be an array of strings." }),
|
|
979
|
-
|
|
1003
|
+
IsString9({ each: true, message: "Each skill must be a string." })
|
|
980
1004
|
], UpdateCompanyProfileDto.prototype, "skills", 2);
|
|
981
1005
|
__decorateClass([
|
|
982
1006
|
IsOptional4(),
|
|
983
|
-
|
|
1007
|
+
IsString9({ message: "Required freelancer must be a string." })
|
|
984
1008
|
], UpdateCompanyProfileDto.prototype, "requiredFreelancer", 2);
|
|
985
1009
|
__decorateClass([
|
|
986
1010
|
IsOptional4(),
|
|
@@ -1002,11 +1026,11 @@ __decorateClass([
|
|
|
1002
1026
|
], UpdateCompanyProfileDto.prototype, "foundUsOn", 2);
|
|
1003
1027
|
|
|
1004
1028
|
// src/modules/user/client-profile/dto/update-client-logo.dto.ts
|
|
1005
|
-
import { IsNotEmpty as
|
|
1029
|
+
import { IsNotEmpty as IsNotEmpty14, IsUUID as IsUUID6 } from "class-validator";
|
|
1006
1030
|
var UpdateCompanyLogoDto = class {
|
|
1007
1031
|
};
|
|
1008
1032
|
__decorateClass([
|
|
1009
|
-
|
|
1033
|
+
IsNotEmpty14({ message: "Please enter uuid." }),
|
|
1010
1034
|
IsUUID6()
|
|
1011
1035
|
], UpdateCompanyLogoDto.prototype, "uuid", 2);
|
|
1012
1036
|
|
|
@@ -1017,23 +1041,23 @@ var QUESTION_PATTERN = {
|
|
|
1017
1041
|
|
|
1018
1042
|
// src/modules/question/dto/create-question.dto.ts
|
|
1019
1043
|
import {
|
|
1020
|
-
IsNotEmpty as
|
|
1044
|
+
IsNotEmpty as IsNotEmpty15,
|
|
1021
1045
|
IsOptional as IsOptional5,
|
|
1022
1046
|
IsBoolean as IsBoolean4
|
|
1023
1047
|
} from "class-validator";
|
|
1024
1048
|
var CreateQuestionDto = class {
|
|
1025
1049
|
};
|
|
1026
1050
|
__decorateClass([
|
|
1027
|
-
|
|
1051
|
+
IsNotEmpty15({ message: "Please enter unique id." })
|
|
1028
1052
|
], CreateQuestionDto.prototype, "questionId", 2);
|
|
1029
1053
|
__decorateClass([
|
|
1030
|
-
|
|
1054
|
+
IsNotEmpty15({ message: "Please enter question." })
|
|
1031
1055
|
], CreateQuestionDto.prototype, "question", 2);
|
|
1032
1056
|
__decorateClass([
|
|
1033
|
-
|
|
1057
|
+
IsNotEmpty15({ message: "Please enter for whom the question is." })
|
|
1034
1058
|
], CreateQuestionDto.prototype, "questionFor", 2);
|
|
1035
1059
|
__decorateClass([
|
|
1036
|
-
|
|
1060
|
+
IsNotEmpty15({ message: "Please enter options." })
|
|
1037
1061
|
], CreateQuestionDto.prototype, "options", 2);
|
|
1038
1062
|
__decorateClass([
|
|
1039
1063
|
IsOptional5(),
|
|
@@ -1255,6 +1279,7 @@ export {
|
|
|
1255
1279
|
CompanyProfile,
|
|
1256
1280
|
CreateQuestionDto,
|
|
1257
1281
|
CreateSubAdminDto,
|
|
1282
|
+
FreelancerChangePasswordDto,
|
|
1258
1283
|
FreelancerCreateAccountDto,
|
|
1259
1284
|
FreelancerDevelopmentPreferenceDto,
|
|
1260
1285
|
FreelancerProfile,
|