@experts_hub/shared 1.0.78 → 1.0.80
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/index.d.ts +1 -0
- package/dist/entities/skill.entity.d.ts +6 -0
- package/dist/index.d.mts +17 -6
- package/dist/index.d.ts +17 -6
- package/dist/index.js +103 -76
- package/dist/index.mjs +90 -65
- package/dist/modules/index.d.ts +1 -0
- package/dist/modules/onboarding/dto/index.d.ts +0 -1
- package/dist/modules/profile/dto/index.d.ts +1 -0
- package/dist/modules/profile/index.d.ts +2 -0
- package/dist/modules/profile/pattern/pattern.d.ts +4 -0
- package/package.json +1 -1
- /package/dist/modules/{onboarding → profile}/dto/freelancer-change-password.dto.d.ts +0 -0
package/dist/entities/index.d.ts
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -86,11 +86,6 @@ declare class ClientCreateAccountDto {
|
|
|
86
86
|
confirmPassword: string;
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
declare class FreelancerChangePasswordDto {
|
|
90
|
-
oldPassword: string;
|
|
91
|
-
newPassword: string;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
89
|
declare const RESUME_PARSER_PATTERN: {
|
|
95
90
|
handleResumeParsing: string;
|
|
96
91
|
};
|
|
@@ -487,6 +482,16 @@ declare const JOB_ROLE_PATTERN: {
|
|
|
487
482
|
fetchJobRolesForDropdown: string;
|
|
488
483
|
};
|
|
489
484
|
|
|
485
|
+
declare const PROFILE_PATTERN: {
|
|
486
|
+
fetchFreelancerProfile: string;
|
|
487
|
+
changeFreelancerPassword: string;
|
|
488
|
+
};
|
|
489
|
+
|
|
490
|
+
declare class FreelancerChangePasswordDto {
|
|
491
|
+
oldPassword: string;
|
|
492
|
+
newPassword: string;
|
|
493
|
+
}
|
|
494
|
+
|
|
490
495
|
declare const UserTCPAdapter: () => MicroserviceOptions;
|
|
491
496
|
|
|
492
497
|
declare const JobTCPAdapter: () => MicroserviceOptions;
|
|
@@ -513,10 +518,16 @@ declare class Question extends BaseEntity {
|
|
|
513
518
|
isActive: boolean;
|
|
514
519
|
}
|
|
515
520
|
|
|
521
|
+
declare class Skill extends BaseEntity {
|
|
522
|
+
name: string;
|
|
523
|
+
slug: string;
|
|
524
|
+
isActive: boolean;
|
|
525
|
+
}
|
|
526
|
+
|
|
516
527
|
declare class JobRoles extends BaseEntity {
|
|
517
528
|
slug: string;
|
|
518
529
|
name: string;
|
|
519
530
|
isActive: boolean;
|
|
520
531
|
}
|
|
521
532
|
|
|
522
|
-
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, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
|
533
|
+
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, PROFILE_PATTERN, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, Skill, TypeOfEmployment, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
package/dist/index.d.ts
CHANGED
|
@@ -86,11 +86,6 @@ declare class ClientCreateAccountDto {
|
|
|
86
86
|
confirmPassword: string;
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
declare class FreelancerChangePasswordDto {
|
|
90
|
-
oldPassword: string;
|
|
91
|
-
newPassword: string;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
89
|
declare const RESUME_PARSER_PATTERN: {
|
|
95
90
|
handleResumeParsing: string;
|
|
96
91
|
};
|
|
@@ -487,6 +482,16 @@ declare const JOB_ROLE_PATTERN: {
|
|
|
487
482
|
fetchJobRolesForDropdown: string;
|
|
488
483
|
};
|
|
489
484
|
|
|
485
|
+
declare const PROFILE_PATTERN: {
|
|
486
|
+
fetchFreelancerProfile: string;
|
|
487
|
+
changeFreelancerPassword: string;
|
|
488
|
+
};
|
|
489
|
+
|
|
490
|
+
declare class FreelancerChangePasswordDto {
|
|
491
|
+
oldPassword: string;
|
|
492
|
+
newPassword: string;
|
|
493
|
+
}
|
|
494
|
+
|
|
490
495
|
declare const UserTCPAdapter: () => MicroserviceOptions;
|
|
491
496
|
|
|
492
497
|
declare const JobTCPAdapter: () => MicroserviceOptions;
|
|
@@ -513,10 +518,16 @@ declare class Question extends BaseEntity {
|
|
|
513
518
|
isActive: boolean;
|
|
514
519
|
}
|
|
515
520
|
|
|
521
|
+
declare class Skill extends BaseEntity {
|
|
522
|
+
name: string;
|
|
523
|
+
slug: string;
|
|
524
|
+
isActive: boolean;
|
|
525
|
+
}
|
|
526
|
+
|
|
516
527
|
declare class JobRoles extends BaseEntity {
|
|
517
528
|
slug: string;
|
|
518
529
|
name: string;
|
|
519
530
|
isActive: boolean;
|
|
520
531
|
}
|
|
521
532
|
|
|
522
|
-
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, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
|
533
|
+
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, PROFILE_PATTERN, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, Skill, TypeOfEmployment, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
package/dist/index.js
CHANGED
|
@@ -61,6 +61,7 @@ __export(index_exports, {
|
|
|
61
61
|
ONBOARDING_PATTERN: () => ONBOARDING_PATTERN,
|
|
62
62
|
OTP_PATTERN: () => OTP_PATTERN,
|
|
63
63
|
Otp: () => Otp,
|
|
64
|
+
PROFILE_PATTERN: () => PROFILE_PATTERN,
|
|
64
65
|
QUESTION_PATTERN: () => QUESTION_PATTERN,
|
|
65
66
|
Question: () => Question,
|
|
66
67
|
QuestionFor: () => QuestionFor,
|
|
@@ -69,6 +70,7 @@ __export(index_exports, {
|
|
|
69
70
|
RefreshToken: () => RefreshToken,
|
|
70
71
|
ResumeParserLog: () => ResumeParserLog,
|
|
71
72
|
SUBADMIN_PATTERN: () => SUBADMIN_PATTERN,
|
|
73
|
+
Skill: () => Skill,
|
|
72
74
|
TypeOfEmployment: () => TypeOfEmployment,
|
|
73
75
|
UpdateCompanyProfileDto: () => UpdateCompanyProfileDto,
|
|
74
76
|
UpdateSubAdminAccountStatusDto: () => UpdateSubAdminAccountStatusDto,
|
|
@@ -322,24 +324,6 @@ __decorateClass([
|
|
|
322
324
|
Match("password", { message: "Passwords do not match" })
|
|
323
325
|
], ClientCreateAccountDto.prototype, "confirmPassword", 2);
|
|
324
326
|
|
|
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
|
-
|
|
343
327
|
// src/modules/resume-parser/pattern/pattern.ts
|
|
344
328
|
var RESUME_PARSER_PATTERN = {
|
|
345
329
|
handleResumeParsing: "handle.resume.parsing"
|
|
@@ -358,75 +342,75 @@ var SUBADMIN_PATTERN = {
|
|
|
358
342
|
};
|
|
359
343
|
|
|
360
344
|
// src/modules/user/subadmin/dto/create-subadmin.dto.ts
|
|
361
|
-
var
|
|
345
|
+
var import_class_validator12 = require("class-validator");
|
|
362
346
|
var CreateSubAdminDto = class {
|
|
363
347
|
};
|
|
364
348
|
__decorateClass([
|
|
365
|
-
(0,
|
|
349
|
+
(0, import_class_validator12.IsNotEmpty)({ message: "Please enter unique id." })
|
|
366
350
|
], CreateSubAdminDto.prototype, "uniqueId", 2);
|
|
367
351
|
__decorateClass([
|
|
368
|
-
(0,
|
|
352
|
+
(0, import_class_validator12.IsNotEmpty)({ message: "Please enter username." })
|
|
369
353
|
], CreateSubAdminDto.prototype, "userName", 2);
|
|
370
354
|
__decorateClass([
|
|
371
|
-
(0,
|
|
355
|
+
(0, import_class_validator12.IsNotEmpty)({ message: "Please enter first name." })
|
|
372
356
|
], CreateSubAdminDto.prototype, "firstName", 2);
|
|
373
357
|
__decorateClass([
|
|
374
|
-
(0,
|
|
358
|
+
(0, import_class_validator12.IsNotEmpty)({ message: "Please enter last name." })
|
|
375
359
|
], CreateSubAdminDto.prototype, "lastName", 2);
|
|
376
360
|
__decorateClass([
|
|
377
|
-
(0,
|
|
361
|
+
(0, import_class_validator12.IsNotEmpty)({ message: "Please enter email." })
|
|
378
362
|
], CreateSubAdminDto.prototype, "email", 2);
|
|
379
363
|
__decorateClass([
|
|
380
|
-
(0,
|
|
364
|
+
(0, import_class_validator12.IsNotEmpty)({ message: "Please enter mobile number." })
|
|
381
365
|
], CreateSubAdminDto.prototype, "mobile", 2);
|
|
382
366
|
__decorateClass([
|
|
383
|
-
(0,
|
|
367
|
+
(0, import_class_validator12.IsNotEmpty)({ message: "Please enter the password." })
|
|
384
368
|
], CreateSubAdminDto.prototype, "password", 2);
|
|
385
369
|
__decorateClass([
|
|
386
|
-
(0,
|
|
370
|
+
(0, import_class_validator12.IsNotEmpty)({ message: "Please enter account type." })
|
|
387
371
|
], CreateSubAdminDto.prototype, "accountType", 2);
|
|
388
372
|
__decorateClass([
|
|
389
|
-
(0,
|
|
373
|
+
(0, import_class_validator12.IsNotEmpty)({ message: "Please enter account status." })
|
|
390
374
|
], CreateSubAdminDto.prototype, "accountStatus", 2);
|
|
391
375
|
|
|
392
376
|
// src/modules/user/subadmin/dto/update-subadmin-status.dto.ts
|
|
393
|
-
var
|
|
377
|
+
var import_class_validator13 = require("class-validator");
|
|
394
378
|
var UpdateSubAdminAccountStatusDto = class {
|
|
395
379
|
};
|
|
396
380
|
__decorateClass([
|
|
397
|
-
(0,
|
|
381
|
+
(0, import_class_validator13.IsString)()
|
|
398
382
|
], UpdateSubAdminAccountStatusDto.prototype, "accountStatus", 2);
|
|
399
383
|
|
|
400
384
|
// src/modules/user/subadmin/dto/update-subadmin.dto.ts
|
|
401
|
-
var
|
|
385
|
+
var import_class_validator14 = require("class-validator");
|
|
402
386
|
var UpdateSubAdminDto = class {
|
|
403
387
|
};
|
|
404
388
|
__decorateClass([
|
|
405
|
-
(0,
|
|
389
|
+
(0, import_class_validator14.IsNotEmpty)({ message: "Please enter unique id." })
|
|
406
390
|
], UpdateSubAdminDto.prototype, "uniqueId", 2);
|
|
407
391
|
__decorateClass([
|
|
408
|
-
(0,
|
|
392
|
+
(0, import_class_validator14.IsNotEmpty)({ message: "Please enter username." })
|
|
409
393
|
], UpdateSubAdminDto.prototype, "userName", 2);
|
|
410
394
|
__decorateClass([
|
|
411
|
-
(0,
|
|
395
|
+
(0, import_class_validator14.IsNotEmpty)({ message: "Please enter first name." })
|
|
412
396
|
], UpdateSubAdminDto.prototype, "firstName", 2);
|
|
413
397
|
__decorateClass([
|
|
414
|
-
(0,
|
|
398
|
+
(0, import_class_validator14.IsNotEmpty)({ message: "Please enter last name." })
|
|
415
399
|
], UpdateSubAdminDto.prototype, "lastName", 2);
|
|
416
400
|
__decorateClass([
|
|
417
|
-
(0,
|
|
401
|
+
(0, import_class_validator14.IsNotEmpty)({ message: "Please enter email." })
|
|
418
402
|
], UpdateSubAdminDto.prototype, "email", 2);
|
|
419
403
|
__decorateClass([
|
|
420
|
-
(0,
|
|
404
|
+
(0, import_class_validator14.IsNotEmpty)({ message: "Please enter mobile number." })
|
|
421
405
|
], UpdateSubAdminDto.prototype, "mobile", 2);
|
|
422
406
|
__decorateClass([
|
|
423
|
-
(0,
|
|
407
|
+
(0, import_class_validator14.IsNotEmpty)({ message: "Please enter the password." })
|
|
424
408
|
], UpdateSubAdminDto.prototype, "password", 2);
|
|
425
409
|
__decorateClass([
|
|
426
|
-
(0,
|
|
410
|
+
(0, import_class_validator14.IsNotEmpty)({ message: "Please enter account type." })
|
|
427
411
|
], UpdateSubAdminDto.prototype, "accountType", 2);
|
|
428
412
|
__decorateClass([
|
|
429
|
-
(0,
|
|
413
|
+
(0, import_class_validator14.IsNotEmpty)({ message: "Please enter account status." })
|
|
430
414
|
], UpdateSubAdminDto.prototype, "accountStatus", 2);
|
|
431
415
|
|
|
432
416
|
// src/modules/user/client-profile/pattern/pattern.ts
|
|
@@ -437,7 +421,7 @@ var CLIENT_PROFILE_PATTERN = {
|
|
|
437
421
|
};
|
|
438
422
|
|
|
439
423
|
// src/modules/user/client-profile/dto/update-client-profile.dto.ts
|
|
440
|
-
var
|
|
424
|
+
var import_class_validator15 = require("class-validator");
|
|
441
425
|
|
|
442
426
|
// src/entities/company-profile.entity.ts
|
|
443
427
|
var import_typeorm8 = require("typeorm");
|
|
@@ -964,55 +948,55 @@ CompanyProfile = __decorateClass([
|
|
|
964
948
|
var UpdateCompanyProfileDto = class {
|
|
965
949
|
};
|
|
966
950
|
__decorateClass([
|
|
967
|
-
(0,
|
|
951
|
+
(0, import_class_validator15.IsString)({ message: "Company name must be a string." })
|
|
968
952
|
], UpdateCompanyProfileDto.prototype, "companyName", 2);
|
|
969
953
|
__decorateClass([
|
|
970
|
-
(0,
|
|
971
|
-
(0,
|
|
954
|
+
(0, import_class_validator15.IsOptional)(),
|
|
955
|
+
(0, import_class_validator15.IsString)({ message: "Company bio must be a string." })
|
|
972
956
|
], UpdateCompanyProfileDto.prototype, "bio", 2);
|
|
973
957
|
__decorateClass([
|
|
974
|
-
(0,
|
|
975
|
-
(0,
|
|
958
|
+
(0, import_class_validator15.IsOptional)(),
|
|
959
|
+
(0, import_class_validator15.IsString)({ message: "Company website url must be a string." })
|
|
976
960
|
], UpdateCompanyProfileDto.prototype, "webSite", 2);
|
|
977
961
|
__decorateClass([
|
|
978
|
-
(0,
|
|
979
|
-
(0,
|
|
962
|
+
(0, import_class_validator15.IsOptional)(),
|
|
963
|
+
(0, import_class_validator15.IsString)({ message: "About company must be a string." })
|
|
980
964
|
], UpdateCompanyProfileDto.prototype, "aboutCompany", 2);
|
|
981
965
|
__decorateClass([
|
|
982
|
-
(0,
|
|
966
|
+
(0, import_class_validator15.IsBoolean)({ message: "Service agreement must be boolean" })
|
|
983
967
|
], UpdateCompanyProfileDto.prototype, "isServiceAgreementSigned", 2);
|
|
984
968
|
__decorateClass([
|
|
985
|
-
(0,
|
|
986
|
-
(0,
|
|
969
|
+
(0, import_class_validator15.IsOptional)(),
|
|
970
|
+
(0, import_class_validator15.IsString)({ message: "Company address must be a string." })
|
|
987
971
|
], UpdateCompanyProfileDto.prototype, "companyAddress", 2);
|
|
988
972
|
__decorateClass([
|
|
989
|
-
(0,
|
|
990
|
-
(0,
|
|
973
|
+
(0, import_class_validator15.IsOptional)(),
|
|
974
|
+
(0, import_class_validator15.IsString)({ message: "Phone number must be a string." })
|
|
991
975
|
], UpdateCompanyProfileDto.prototype, "phoneNumber", 2);
|
|
992
976
|
__decorateClass([
|
|
993
|
-
(0,
|
|
994
|
-
(0,
|
|
995
|
-
(0,
|
|
977
|
+
(0, import_class_validator15.IsOptional)(),
|
|
978
|
+
(0, import_class_validator15.IsArray)({ message: "Skills must be an array of strings." }),
|
|
979
|
+
(0, import_class_validator15.IsString)({ each: true, message: "Each skill must be a string." })
|
|
996
980
|
], UpdateCompanyProfileDto.prototype, "skills", 2);
|
|
997
981
|
__decorateClass([
|
|
998
|
-
(0,
|
|
999
|
-
(0,
|
|
982
|
+
(0, import_class_validator15.IsOptional)(),
|
|
983
|
+
(0, import_class_validator15.IsString)({ message: "Required freelancer must be a string." })
|
|
1000
984
|
], UpdateCompanyProfileDto.prototype, "requiredFreelancer", 2);
|
|
1001
985
|
__decorateClass([
|
|
1002
|
-
(0,
|
|
1003
|
-
(0,
|
|
986
|
+
(0, import_class_validator15.IsOptional)(),
|
|
987
|
+
(0, import_class_validator15.IsEnum)(KindOfHire, {
|
|
1004
988
|
message: `Kind of hiring must be one of: ${Object.values(KindOfHire).join(", ")}`
|
|
1005
989
|
})
|
|
1006
990
|
], UpdateCompanyProfileDto.prototype, "kindOfHiring", 2);
|
|
1007
991
|
__decorateClass([
|
|
1008
|
-
(0,
|
|
1009
|
-
(0,
|
|
992
|
+
(0, import_class_validator15.IsOptional)(),
|
|
993
|
+
(0, import_class_validator15.IsEnum)(ModeOfHire, {
|
|
1010
994
|
message: `Mode of hire must be one of: ${Object.values(ModeOfHire).join(", ")}`
|
|
1011
995
|
})
|
|
1012
996
|
], UpdateCompanyProfileDto.prototype, "modeOfHire", 2);
|
|
1013
997
|
__decorateClass([
|
|
1014
|
-
(0,
|
|
1015
|
-
(0,
|
|
998
|
+
(0, import_class_validator15.IsOptional)(),
|
|
999
|
+
(0, import_class_validator15.IsEnum)(FromUsOn, {
|
|
1016
1000
|
message: `Found us on must be one of: ${Object.values(FromUsOn).join(", ")}`
|
|
1017
1001
|
})
|
|
1018
1002
|
], UpdateCompanyProfileDto.prototype, "foundUsOn", 2);
|
|
@@ -1023,24 +1007,24 @@ var QUESTION_PATTERN = {
|
|
|
1023
1007
|
};
|
|
1024
1008
|
|
|
1025
1009
|
// src/modules/question/dto/create-question.dto.ts
|
|
1026
|
-
var
|
|
1010
|
+
var import_class_validator16 = require("class-validator");
|
|
1027
1011
|
var CreateQuestionDto = class {
|
|
1028
1012
|
};
|
|
1029
1013
|
__decorateClass([
|
|
1030
|
-
(0,
|
|
1014
|
+
(0, import_class_validator16.IsNotEmpty)({ message: "Please enter unique id." })
|
|
1031
1015
|
], CreateQuestionDto.prototype, "questionId", 2);
|
|
1032
1016
|
__decorateClass([
|
|
1033
|
-
(0,
|
|
1017
|
+
(0, import_class_validator16.IsNotEmpty)({ message: "Please enter question." })
|
|
1034
1018
|
], CreateQuestionDto.prototype, "question", 2);
|
|
1035
1019
|
__decorateClass([
|
|
1036
|
-
(0,
|
|
1020
|
+
(0, import_class_validator16.IsNotEmpty)({ message: "Please enter for whom the question is." })
|
|
1037
1021
|
], CreateQuestionDto.prototype, "questionFor", 2);
|
|
1038
1022
|
__decorateClass([
|
|
1039
|
-
(0,
|
|
1023
|
+
(0, import_class_validator16.IsNotEmpty)({ message: "Please enter options." })
|
|
1040
1024
|
], CreateQuestionDto.prototype, "options", 2);
|
|
1041
1025
|
__decorateClass([
|
|
1042
|
-
(0,
|
|
1043
|
-
(0,
|
|
1026
|
+
(0, import_class_validator16.IsOptional)(),
|
|
1027
|
+
(0, import_class_validator16.IsBoolean)({ message: "Whether the question status active" })
|
|
1044
1028
|
], CreateQuestionDto.prototype, "isActive", 2);
|
|
1045
1029
|
|
|
1046
1030
|
// src/modules/job/pattern/pattern.ts
|
|
@@ -1048,6 +1032,30 @@ var JOB_ROLE_PATTERN = {
|
|
|
1048
1032
|
fetchJobRolesForDropdown: "fetch.job.roles.for.dropdown"
|
|
1049
1033
|
};
|
|
1050
1034
|
|
|
1035
|
+
// src/modules/profile/pattern/pattern.ts
|
|
1036
|
+
var PROFILE_PATTERN = {
|
|
1037
|
+
fetchFreelancerProfile: "fetch.freelancer.profile",
|
|
1038
|
+
changeFreelancerPassword: "change.freelancer.password"
|
|
1039
|
+
};
|
|
1040
|
+
|
|
1041
|
+
// src/modules/profile/dto/freelancer-change-password.dto.ts
|
|
1042
|
+
var import_class_validator17 = require("class-validator");
|
|
1043
|
+
var FreelancerChangePasswordDto = class {
|
|
1044
|
+
};
|
|
1045
|
+
__decorateClass([
|
|
1046
|
+
(0, import_class_validator17.IsNotEmpty)({ message: "Please enter Old Password." }),
|
|
1047
|
+
(0, import_class_validator17.IsString)()
|
|
1048
|
+
], FreelancerChangePasswordDto.prototype, "oldPassword", 2);
|
|
1049
|
+
__decorateClass([
|
|
1050
|
+
(0, import_class_validator17.IsNotEmpty)({ message: "Please enter New Password." }),
|
|
1051
|
+
(0, import_class_validator17.IsString)(),
|
|
1052
|
+
(0, import_class_validator17.MinLength)(6),
|
|
1053
|
+
(0, import_class_validator17.MaxLength)(32),
|
|
1054
|
+
(0, import_class_validator17.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
1055
|
+
message: "New Password must include letters, numbers and symbols."
|
|
1056
|
+
})
|
|
1057
|
+
], FreelancerChangePasswordDto.prototype, "newPassword", 2);
|
|
1058
|
+
|
|
1051
1059
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
1052
1060
|
var import_dotenv = require("dotenv");
|
|
1053
1061
|
var import_microservices = require("@nestjs/microservices");
|
|
@@ -1231,21 +1239,38 @@ Question = __decorateClass([
|
|
|
1231
1239
|
(0, import_typeorm9.Entity)("questions")
|
|
1232
1240
|
], Question);
|
|
1233
1241
|
|
|
1234
|
-
// src/entities/
|
|
1242
|
+
// src/entities/skill.entity.ts
|
|
1235
1243
|
var import_typeorm10 = require("typeorm");
|
|
1236
|
-
var
|
|
1244
|
+
var Skill = class extends BaseEntity {
|
|
1237
1245
|
};
|
|
1246
|
+
__decorateClass([
|
|
1247
|
+
(0, import_typeorm10.Column)({ name: "name", type: "varchar", nullable: true })
|
|
1248
|
+
], Skill.prototype, "name", 2);
|
|
1238
1249
|
__decorateClass([
|
|
1239
1250
|
(0, import_typeorm10.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
1251
|
+
], Skill.prototype, "slug", 2);
|
|
1252
|
+
__decorateClass([
|
|
1253
|
+
(0, import_typeorm10.Column)({ name: "is_active", type: "boolean", default: false })
|
|
1254
|
+
], Skill.prototype, "isActive", 2);
|
|
1255
|
+
Skill = __decorateClass([
|
|
1256
|
+
(0, import_typeorm10.Entity)("skills")
|
|
1257
|
+
], Skill);
|
|
1258
|
+
|
|
1259
|
+
// src/entities/job-role.entity.ts
|
|
1260
|
+
var import_typeorm11 = require("typeorm");
|
|
1261
|
+
var JobRoles = class extends BaseEntity {
|
|
1262
|
+
};
|
|
1263
|
+
__decorateClass([
|
|
1264
|
+
(0, import_typeorm11.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
1240
1265
|
], JobRoles.prototype, "slug", 2);
|
|
1241
1266
|
__decorateClass([
|
|
1242
|
-
(0,
|
|
1267
|
+
(0, import_typeorm11.Column)({ name: "name", type: "varchar", nullable: true })
|
|
1243
1268
|
], JobRoles.prototype, "name", 2);
|
|
1244
1269
|
__decorateClass([
|
|
1245
|
-
(0,
|
|
1270
|
+
(0, import_typeorm11.Column)({ name: "is_active", type: "boolean", default: true })
|
|
1246
1271
|
], JobRoles.prototype, "isActive", 2);
|
|
1247
1272
|
JobRoles = __decorateClass([
|
|
1248
|
-
(0,
|
|
1273
|
+
(0, import_typeorm11.Entity)("job_roles")
|
|
1249
1274
|
], JobRoles);
|
|
1250
1275
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1251
1276
|
0 && (module.exports = {
|
|
@@ -1283,6 +1308,7 @@ JobRoles = __decorateClass([
|
|
|
1283
1308
|
ONBOARDING_PATTERN,
|
|
1284
1309
|
OTP_PATTERN,
|
|
1285
1310
|
Otp,
|
|
1311
|
+
PROFILE_PATTERN,
|
|
1286
1312
|
QUESTION_PATTERN,
|
|
1287
1313
|
Question,
|
|
1288
1314
|
QuestionFor,
|
|
@@ -1291,6 +1317,7 @@ JobRoles = __decorateClass([
|
|
|
1291
1317
|
RefreshToken,
|
|
1292
1318
|
ResumeParserLog,
|
|
1293
1319
|
SUBADMIN_PATTERN,
|
|
1320
|
+
Skill,
|
|
1294
1321
|
TypeOfEmployment,
|
|
1295
1322
|
UpdateCompanyProfileDto,
|
|
1296
1323
|
UpdateSubAdminAccountStatusDto,
|
package/dist/index.mjs
CHANGED
|
@@ -290,30 +290,6 @@ __decorateClass([
|
|
|
290
290
|
Match("password", { message: "Passwords do not match" })
|
|
291
291
|
], ClientCreateAccountDto.prototype, "confirmPassword", 2);
|
|
292
292
|
|
|
293
|
-
// src/modules/onboarding/dto/freelancer-change-password.dto.ts
|
|
294
|
-
import {
|
|
295
|
-
IsString as IsString6,
|
|
296
|
-
IsNotEmpty as IsNotEmpty11,
|
|
297
|
-
MaxLength as MaxLength3,
|
|
298
|
-
MinLength as MinLength3,
|
|
299
|
-
Matches as Matches3
|
|
300
|
-
} from "class-validator";
|
|
301
|
-
var FreelancerChangePasswordDto = class {
|
|
302
|
-
};
|
|
303
|
-
__decorateClass([
|
|
304
|
-
IsNotEmpty11({ message: "Please enter Old Password." }),
|
|
305
|
-
IsString6()
|
|
306
|
-
], FreelancerChangePasswordDto.prototype, "oldPassword", 2);
|
|
307
|
-
__decorateClass([
|
|
308
|
-
IsNotEmpty11({ message: "Please enter New Password." }),
|
|
309
|
-
IsString6(),
|
|
310
|
-
MinLength3(6),
|
|
311
|
-
MaxLength3(32),
|
|
312
|
-
Matches3(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
313
|
-
message: "New Password must include letters, numbers and symbols."
|
|
314
|
-
})
|
|
315
|
-
], FreelancerChangePasswordDto.prototype, "newPassword", 2);
|
|
316
|
-
|
|
317
293
|
// src/modules/resume-parser/pattern/pattern.ts
|
|
318
294
|
var RESUME_PARSER_PATTERN = {
|
|
319
295
|
handleResumeParsing: "handle.resume.parsing"
|
|
@@ -333,76 +309,76 @@ var SUBADMIN_PATTERN = {
|
|
|
333
309
|
|
|
334
310
|
// src/modules/user/subadmin/dto/create-subadmin.dto.ts
|
|
335
311
|
import {
|
|
336
|
-
IsNotEmpty as
|
|
312
|
+
IsNotEmpty as IsNotEmpty11
|
|
337
313
|
} from "class-validator";
|
|
338
314
|
var CreateSubAdminDto = class {
|
|
339
315
|
};
|
|
340
316
|
__decorateClass([
|
|
341
|
-
|
|
317
|
+
IsNotEmpty11({ message: "Please enter unique id." })
|
|
342
318
|
], CreateSubAdminDto.prototype, "uniqueId", 2);
|
|
343
319
|
__decorateClass([
|
|
344
|
-
|
|
320
|
+
IsNotEmpty11({ message: "Please enter username." })
|
|
345
321
|
], CreateSubAdminDto.prototype, "userName", 2);
|
|
346
322
|
__decorateClass([
|
|
347
|
-
|
|
323
|
+
IsNotEmpty11({ message: "Please enter first name." })
|
|
348
324
|
], CreateSubAdminDto.prototype, "firstName", 2);
|
|
349
325
|
__decorateClass([
|
|
350
|
-
|
|
326
|
+
IsNotEmpty11({ message: "Please enter last name." })
|
|
351
327
|
], CreateSubAdminDto.prototype, "lastName", 2);
|
|
352
328
|
__decorateClass([
|
|
353
|
-
|
|
329
|
+
IsNotEmpty11({ message: "Please enter email." })
|
|
354
330
|
], CreateSubAdminDto.prototype, "email", 2);
|
|
355
331
|
__decorateClass([
|
|
356
|
-
|
|
332
|
+
IsNotEmpty11({ message: "Please enter mobile number." })
|
|
357
333
|
], CreateSubAdminDto.prototype, "mobile", 2);
|
|
358
334
|
__decorateClass([
|
|
359
|
-
|
|
335
|
+
IsNotEmpty11({ message: "Please enter the password." })
|
|
360
336
|
], CreateSubAdminDto.prototype, "password", 2);
|
|
361
337
|
__decorateClass([
|
|
362
|
-
|
|
338
|
+
IsNotEmpty11({ message: "Please enter account type." })
|
|
363
339
|
], CreateSubAdminDto.prototype, "accountType", 2);
|
|
364
340
|
__decorateClass([
|
|
365
|
-
|
|
341
|
+
IsNotEmpty11({ message: "Please enter account status." })
|
|
366
342
|
], CreateSubAdminDto.prototype, "accountStatus", 2);
|
|
367
343
|
|
|
368
344
|
// src/modules/user/subadmin/dto/update-subadmin-status.dto.ts
|
|
369
|
-
import { IsString as
|
|
345
|
+
import { IsString as IsString6 } from "class-validator";
|
|
370
346
|
var UpdateSubAdminAccountStatusDto = class {
|
|
371
347
|
};
|
|
372
348
|
__decorateClass([
|
|
373
|
-
|
|
349
|
+
IsString6()
|
|
374
350
|
], UpdateSubAdminAccountStatusDto.prototype, "accountStatus", 2);
|
|
375
351
|
|
|
376
352
|
// src/modules/user/subadmin/dto/update-subadmin.dto.ts
|
|
377
|
-
import { IsNotEmpty as
|
|
353
|
+
import { IsNotEmpty as IsNotEmpty12 } from "class-validator";
|
|
378
354
|
var UpdateSubAdminDto = class {
|
|
379
355
|
};
|
|
380
356
|
__decorateClass([
|
|
381
|
-
|
|
357
|
+
IsNotEmpty12({ message: "Please enter unique id." })
|
|
382
358
|
], UpdateSubAdminDto.prototype, "uniqueId", 2);
|
|
383
359
|
__decorateClass([
|
|
384
|
-
|
|
360
|
+
IsNotEmpty12({ message: "Please enter username." })
|
|
385
361
|
], UpdateSubAdminDto.prototype, "userName", 2);
|
|
386
362
|
__decorateClass([
|
|
387
|
-
|
|
363
|
+
IsNotEmpty12({ message: "Please enter first name." })
|
|
388
364
|
], UpdateSubAdminDto.prototype, "firstName", 2);
|
|
389
365
|
__decorateClass([
|
|
390
|
-
|
|
366
|
+
IsNotEmpty12({ message: "Please enter last name." })
|
|
391
367
|
], UpdateSubAdminDto.prototype, "lastName", 2);
|
|
392
368
|
__decorateClass([
|
|
393
|
-
|
|
369
|
+
IsNotEmpty12({ message: "Please enter email." })
|
|
394
370
|
], UpdateSubAdminDto.prototype, "email", 2);
|
|
395
371
|
__decorateClass([
|
|
396
|
-
|
|
372
|
+
IsNotEmpty12({ message: "Please enter mobile number." })
|
|
397
373
|
], UpdateSubAdminDto.prototype, "mobile", 2);
|
|
398
374
|
__decorateClass([
|
|
399
|
-
|
|
375
|
+
IsNotEmpty12({ message: "Please enter the password." })
|
|
400
376
|
], UpdateSubAdminDto.prototype, "password", 2);
|
|
401
377
|
__decorateClass([
|
|
402
|
-
|
|
378
|
+
IsNotEmpty12({ message: "Please enter account type." })
|
|
403
379
|
], UpdateSubAdminDto.prototype, "accountType", 2);
|
|
404
380
|
__decorateClass([
|
|
405
|
-
|
|
381
|
+
IsNotEmpty12({ message: "Please enter account status." })
|
|
406
382
|
], UpdateSubAdminDto.prototype, "accountStatus", 2);
|
|
407
383
|
|
|
408
384
|
// src/modules/user/client-profile/pattern/pattern.ts
|
|
@@ -416,7 +392,7 @@ var CLIENT_PROFILE_PATTERN = {
|
|
|
416
392
|
import {
|
|
417
393
|
IsEnum,
|
|
418
394
|
IsOptional as IsOptional4,
|
|
419
|
-
IsString as
|
|
395
|
+
IsString as IsString8,
|
|
420
396
|
IsArray,
|
|
421
397
|
IsBoolean as IsBoolean4
|
|
422
398
|
} from "class-validator";
|
|
@@ -988,39 +964,39 @@ CompanyProfile = __decorateClass([
|
|
|
988
964
|
var UpdateCompanyProfileDto = class {
|
|
989
965
|
};
|
|
990
966
|
__decorateClass([
|
|
991
|
-
|
|
967
|
+
IsString8({ message: "Company name must be a string." })
|
|
992
968
|
], UpdateCompanyProfileDto.prototype, "companyName", 2);
|
|
993
969
|
__decorateClass([
|
|
994
970
|
IsOptional4(),
|
|
995
|
-
|
|
971
|
+
IsString8({ message: "Company bio must be a string." })
|
|
996
972
|
], UpdateCompanyProfileDto.prototype, "bio", 2);
|
|
997
973
|
__decorateClass([
|
|
998
974
|
IsOptional4(),
|
|
999
|
-
|
|
975
|
+
IsString8({ message: "Company website url must be a string." })
|
|
1000
976
|
], UpdateCompanyProfileDto.prototype, "webSite", 2);
|
|
1001
977
|
__decorateClass([
|
|
1002
978
|
IsOptional4(),
|
|
1003
|
-
|
|
979
|
+
IsString8({ message: "About company must be a string." })
|
|
1004
980
|
], UpdateCompanyProfileDto.prototype, "aboutCompany", 2);
|
|
1005
981
|
__decorateClass([
|
|
1006
982
|
IsBoolean4({ message: "Service agreement must be boolean" })
|
|
1007
983
|
], UpdateCompanyProfileDto.prototype, "isServiceAgreementSigned", 2);
|
|
1008
984
|
__decorateClass([
|
|
1009
985
|
IsOptional4(),
|
|
1010
|
-
|
|
986
|
+
IsString8({ message: "Company address must be a string." })
|
|
1011
987
|
], UpdateCompanyProfileDto.prototype, "companyAddress", 2);
|
|
1012
988
|
__decorateClass([
|
|
1013
989
|
IsOptional4(),
|
|
1014
|
-
|
|
990
|
+
IsString8({ message: "Phone number must be a string." })
|
|
1015
991
|
], UpdateCompanyProfileDto.prototype, "phoneNumber", 2);
|
|
1016
992
|
__decorateClass([
|
|
1017
993
|
IsOptional4(),
|
|
1018
994
|
IsArray({ message: "Skills must be an array of strings." }),
|
|
1019
|
-
|
|
995
|
+
IsString8({ each: true, message: "Each skill must be a string." })
|
|
1020
996
|
], UpdateCompanyProfileDto.prototype, "skills", 2);
|
|
1021
997
|
__decorateClass([
|
|
1022
998
|
IsOptional4(),
|
|
1023
|
-
|
|
999
|
+
IsString8({ message: "Required freelancer must be a string." })
|
|
1024
1000
|
], UpdateCompanyProfileDto.prototype, "requiredFreelancer", 2);
|
|
1025
1001
|
__decorateClass([
|
|
1026
1002
|
IsOptional4(),
|
|
@@ -1048,23 +1024,23 @@ var QUESTION_PATTERN = {
|
|
|
1048
1024
|
|
|
1049
1025
|
// src/modules/question/dto/create-question.dto.ts
|
|
1050
1026
|
import {
|
|
1051
|
-
IsNotEmpty as
|
|
1027
|
+
IsNotEmpty as IsNotEmpty13,
|
|
1052
1028
|
IsOptional as IsOptional5,
|
|
1053
1029
|
IsBoolean as IsBoolean5
|
|
1054
1030
|
} from "class-validator";
|
|
1055
1031
|
var CreateQuestionDto = class {
|
|
1056
1032
|
};
|
|
1057
1033
|
__decorateClass([
|
|
1058
|
-
|
|
1034
|
+
IsNotEmpty13({ message: "Please enter unique id." })
|
|
1059
1035
|
], CreateQuestionDto.prototype, "questionId", 2);
|
|
1060
1036
|
__decorateClass([
|
|
1061
|
-
|
|
1037
|
+
IsNotEmpty13({ message: "Please enter question." })
|
|
1062
1038
|
], CreateQuestionDto.prototype, "question", 2);
|
|
1063
1039
|
__decorateClass([
|
|
1064
|
-
|
|
1040
|
+
IsNotEmpty13({ message: "Please enter for whom the question is." })
|
|
1065
1041
|
], CreateQuestionDto.prototype, "questionFor", 2);
|
|
1066
1042
|
__decorateClass([
|
|
1067
|
-
|
|
1043
|
+
IsNotEmpty13({ message: "Please enter options." })
|
|
1068
1044
|
], CreateQuestionDto.prototype, "options", 2);
|
|
1069
1045
|
__decorateClass([
|
|
1070
1046
|
IsOptional5(),
|
|
@@ -1076,6 +1052,36 @@ var JOB_ROLE_PATTERN = {
|
|
|
1076
1052
|
fetchJobRolesForDropdown: "fetch.job.roles.for.dropdown"
|
|
1077
1053
|
};
|
|
1078
1054
|
|
|
1055
|
+
// src/modules/profile/pattern/pattern.ts
|
|
1056
|
+
var PROFILE_PATTERN = {
|
|
1057
|
+
fetchFreelancerProfile: "fetch.freelancer.profile",
|
|
1058
|
+
changeFreelancerPassword: "change.freelancer.password"
|
|
1059
|
+
};
|
|
1060
|
+
|
|
1061
|
+
// src/modules/profile/dto/freelancer-change-password.dto.ts
|
|
1062
|
+
import {
|
|
1063
|
+
IsString as IsString9,
|
|
1064
|
+
IsNotEmpty as IsNotEmpty14,
|
|
1065
|
+
MaxLength as MaxLength4,
|
|
1066
|
+
MinLength as MinLength4,
|
|
1067
|
+
Matches as Matches3
|
|
1068
|
+
} from "class-validator";
|
|
1069
|
+
var FreelancerChangePasswordDto = class {
|
|
1070
|
+
};
|
|
1071
|
+
__decorateClass([
|
|
1072
|
+
IsNotEmpty14({ message: "Please enter Old Password." }),
|
|
1073
|
+
IsString9()
|
|
1074
|
+
], FreelancerChangePasswordDto.prototype, "oldPassword", 2);
|
|
1075
|
+
__decorateClass([
|
|
1076
|
+
IsNotEmpty14({ message: "Please enter New Password." }),
|
|
1077
|
+
IsString9(),
|
|
1078
|
+
MinLength4(6),
|
|
1079
|
+
MaxLength4(32),
|
|
1080
|
+
Matches3(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
1081
|
+
message: "New Password must include letters, numbers and symbols."
|
|
1082
|
+
})
|
|
1083
|
+
], FreelancerChangePasswordDto.prototype, "newPassword", 2);
|
|
1084
|
+
|
|
1079
1085
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
1080
1086
|
import { config } from "dotenv";
|
|
1081
1087
|
import { Transport } from "@nestjs/microservices";
|
|
@@ -1259,21 +1265,38 @@ Question = __decorateClass([
|
|
|
1259
1265
|
Entity8("questions")
|
|
1260
1266
|
], Question);
|
|
1261
1267
|
|
|
1262
|
-
// src/entities/
|
|
1268
|
+
// src/entities/skill.entity.ts
|
|
1263
1269
|
import { Entity as Entity9, Column as Column10 } from "typeorm";
|
|
1264
|
-
var
|
|
1270
|
+
var Skill = class extends BaseEntity {
|
|
1265
1271
|
};
|
|
1272
|
+
__decorateClass([
|
|
1273
|
+
Column10({ name: "name", type: "varchar", nullable: true })
|
|
1274
|
+
], Skill.prototype, "name", 2);
|
|
1266
1275
|
__decorateClass([
|
|
1267
1276
|
Column10({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
1277
|
+
], Skill.prototype, "slug", 2);
|
|
1278
|
+
__decorateClass([
|
|
1279
|
+
Column10({ name: "is_active", type: "boolean", default: false })
|
|
1280
|
+
], Skill.prototype, "isActive", 2);
|
|
1281
|
+
Skill = __decorateClass([
|
|
1282
|
+
Entity9("skills")
|
|
1283
|
+
], Skill);
|
|
1284
|
+
|
|
1285
|
+
// src/entities/job-role.entity.ts
|
|
1286
|
+
import { Entity as Entity10, Column as Column11 } from "typeorm";
|
|
1287
|
+
var JobRoles = class extends BaseEntity {
|
|
1288
|
+
};
|
|
1289
|
+
__decorateClass([
|
|
1290
|
+
Column11({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
1268
1291
|
], JobRoles.prototype, "slug", 2);
|
|
1269
1292
|
__decorateClass([
|
|
1270
|
-
|
|
1293
|
+
Column11({ name: "name", type: "varchar", nullable: true })
|
|
1271
1294
|
], JobRoles.prototype, "name", 2);
|
|
1272
1295
|
__decorateClass([
|
|
1273
|
-
|
|
1296
|
+
Column11({ name: "is_active", type: "boolean", default: true })
|
|
1274
1297
|
], JobRoles.prototype, "isActive", 2);
|
|
1275
1298
|
JobRoles = __decorateClass([
|
|
1276
|
-
|
|
1299
|
+
Entity10("job_roles")
|
|
1277
1300
|
], JobRoles);
|
|
1278
1301
|
export {
|
|
1279
1302
|
AUTHENTICATION_PATTERN,
|
|
@@ -1310,6 +1333,7 @@ export {
|
|
|
1310
1333
|
ONBOARDING_PATTERN,
|
|
1311
1334
|
OTP_PATTERN,
|
|
1312
1335
|
Otp,
|
|
1336
|
+
PROFILE_PATTERN,
|
|
1313
1337
|
QUESTION_PATTERN,
|
|
1314
1338
|
Question,
|
|
1315
1339
|
QuestionFor,
|
|
@@ -1318,6 +1342,7 @@ export {
|
|
|
1318
1342
|
RefreshToken,
|
|
1319
1343
|
ResumeParserLog,
|
|
1320
1344
|
SUBADMIN_PATTERN,
|
|
1345
|
+
Skill,
|
|
1321
1346
|
TypeOfEmployment,
|
|
1322
1347
|
UpdateCompanyProfileDto,
|
|
1323
1348
|
UpdateSubAdminAccountStatusDto,
|
package/dist/modules/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './freelancer-change-password.dto';
|
package/package.json
CHANGED
|
File without changes
|