@experts_hub/shared 1.0.73 → 1.0.75
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 +12 -6
- package/dist/index.d.ts +12 -6
- package/dist/index.js +76 -55
- package/dist/index.mjs +71 -45
- package/dist/modules/onboarding/dto/freelancer-change-password.dto.d.ts +4 -0
- package/dist/modules/onboarding/dto/index.d.ts +1 -0
- package/dist/modules/user/client-profile/client-profile.interface.d.ts +3 -2
- package/dist/modules/user/client-profile/dto/update-client-profile.dto.d.ts +3 -3
- package/package.json +1 -1
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
|
};
|
|
@@ -388,11 +393,11 @@ declare class CompanyProfile extends BaseEntity {
|
|
|
388
393
|
}
|
|
389
394
|
|
|
390
395
|
declare class UpdateCompanyProfileDto {
|
|
391
|
-
userId?: number;
|
|
392
396
|
companyName?: string;
|
|
393
397
|
bio?: string;
|
|
394
|
-
|
|
395
|
-
|
|
398
|
+
webSite?: string;
|
|
399
|
+
aboutCompany?: string;
|
|
400
|
+
isServiceAgreementSigned?: boolean;
|
|
396
401
|
skills?: string[];
|
|
397
402
|
requiredFreelancer?: string;
|
|
398
403
|
kindOfHiring?: KindOfHire;
|
|
@@ -423,8 +428,9 @@ interface IUpdateClientProfilePayload {
|
|
|
423
428
|
userId?: number;
|
|
424
429
|
companyName?: string;
|
|
425
430
|
bio?: string;
|
|
426
|
-
|
|
427
|
-
|
|
431
|
+
webSite?: string;
|
|
432
|
+
isServiceAgreementSigned?: boolean;
|
|
433
|
+
aboutCompany: string;
|
|
428
434
|
skills?: string[];
|
|
429
435
|
requiredFreelancer?: string;
|
|
430
436
|
kindOfHiring?: string;
|
|
@@ -510,4 +516,4 @@ declare class JobRoles extends BaseEntity {
|
|
|
510
516
|
isActive: boolean;
|
|
511
517
|
}
|
|
512
518
|
|
|
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 };
|
|
519
|
+
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
|
};
|
|
@@ -388,11 +393,11 @@ declare class CompanyProfile extends BaseEntity {
|
|
|
388
393
|
}
|
|
389
394
|
|
|
390
395
|
declare class UpdateCompanyProfileDto {
|
|
391
|
-
userId?: number;
|
|
392
396
|
companyName?: string;
|
|
393
397
|
bio?: string;
|
|
394
|
-
|
|
395
|
-
|
|
398
|
+
webSite?: string;
|
|
399
|
+
aboutCompany?: string;
|
|
400
|
+
isServiceAgreementSigned?: boolean;
|
|
396
401
|
skills?: string[];
|
|
397
402
|
requiredFreelancer?: string;
|
|
398
403
|
kindOfHiring?: KindOfHire;
|
|
@@ -423,8 +428,9 @@ interface IUpdateClientProfilePayload {
|
|
|
423
428
|
userId?: number;
|
|
424
429
|
companyName?: string;
|
|
425
430
|
bio?: string;
|
|
426
|
-
|
|
427
|
-
|
|
431
|
+
webSite?: string;
|
|
432
|
+
isServiceAgreementSigned?: boolean;
|
|
433
|
+
aboutCompany: string;
|
|
428
434
|
skills?: string[];
|
|
429
435
|
requiredFreelancer?: string;
|
|
430
436
|
kindOfHiring?: string;
|
|
@@ -510,4 +516,4 @@ declare class JobRoles extends BaseEntity {
|
|
|
510
516
|
isActive: boolean;
|
|
511
517
|
}
|
|
512
518
|
|
|
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 };
|
|
519
|
+
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");
|
|
@@ -939,57 +958,58 @@ CompanyProfile = __decorateClass([
|
|
|
939
958
|
var UpdateCompanyProfileDto = class {
|
|
940
959
|
};
|
|
941
960
|
__decorateClass([
|
|
942
|
-
(0,
|
|
943
|
-
], UpdateCompanyProfileDto.prototype, "userId", 2);
|
|
944
|
-
__decorateClass([
|
|
945
|
-
(0, import_class_validator15.IsString)({ message: "Company name must be a string." })
|
|
961
|
+
(0, import_class_validator16.IsString)({ message: "Company name must be a string." })
|
|
946
962
|
], UpdateCompanyProfileDto.prototype, "companyName", 2);
|
|
947
963
|
__decorateClass([
|
|
948
|
-
(0,
|
|
949
|
-
(0,
|
|
964
|
+
(0, import_class_validator16.IsOptional)(),
|
|
965
|
+
(0, import_class_validator16.IsString)({ message: "Company bio must be a string." })
|
|
950
966
|
], UpdateCompanyProfileDto.prototype, "bio", 2);
|
|
951
967
|
__decorateClass([
|
|
952
|
-
(0,
|
|
953
|
-
(0,
|
|
954
|
-
], UpdateCompanyProfileDto.prototype, "
|
|
968
|
+
(0, import_class_validator16.IsOptional)(),
|
|
969
|
+
(0, import_class_validator16.IsString)({ message: "Company website url must be a string." })
|
|
970
|
+
], UpdateCompanyProfileDto.prototype, "webSite", 2);
|
|
955
971
|
__decorateClass([
|
|
956
|
-
(0,
|
|
957
|
-
|
|
972
|
+
(0, import_class_validator16.IsOptional)(),
|
|
973
|
+
(0, import_class_validator16.IsString)({ message: "About company must be a string." })
|
|
974
|
+
], UpdateCompanyProfileDto.prototype, "aboutCompany", 2);
|
|
958
975
|
__decorateClass([
|
|
959
|
-
(0,
|
|
960
|
-
|
|
961
|
-
|
|
976
|
+
(0, import_class_validator16.IsBoolean)({ message: "Service agreement must be boolean" })
|
|
977
|
+
], UpdateCompanyProfileDto.prototype, "isServiceAgreementSigned", 2);
|
|
978
|
+
__decorateClass([
|
|
979
|
+
(0, import_class_validator16.IsOptional)(),
|
|
980
|
+
(0, import_class_validator16.IsArray)({ message: "Skills must be an array of strings." }),
|
|
981
|
+
(0, import_class_validator16.IsString)({ each: true, message: "Each skill must be a string." })
|
|
962
982
|
], UpdateCompanyProfileDto.prototype, "skills", 2);
|
|
963
983
|
__decorateClass([
|
|
964
|
-
(0,
|
|
965
|
-
(0,
|
|
984
|
+
(0, import_class_validator16.IsOptional)(),
|
|
985
|
+
(0, import_class_validator16.IsString)({ message: "Required freelancer must be a string." })
|
|
966
986
|
], UpdateCompanyProfileDto.prototype, "requiredFreelancer", 2);
|
|
967
987
|
__decorateClass([
|
|
968
|
-
(0,
|
|
969
|
-
(0,
|
|
988
|
+
(0, import_class_validator16.IsOptional)(),
|
|
989
|
+
(0, import_class_validator16.IsEnum)(KindOfHire, {
|
|
970
990
|
message: `Kind of hiring must be one of: ${Object.values(KindOfHire).join(", ")}`
|
|
971
991
|
})
|
|
972
992
|
], UpdateCompanyProfileDto.prototype, "kindOfHiring", 2);
|
|
973
993
|
__decorateClass([
|
|
974
|
-
(0,
|
|
975
|
-
(0,
|
|
994
|
+
(0, import_class_validator16.IsOptional)(),
|
|
995
|
+
(0, import_class_validator16.IsEnum)(ModeOfHire, {
|
|
976
996
|
message: `Mode of hire must be one of: ${Object.values(ModeOfHire).join(", ")}`
|
|
977
997
|
})
|
|
978
998
|
], UpdateCompanyProfileDto.prototype, "modeOfHire", 2);
|
|
979
999
|
__decorateClass([
|
|
980
|
-
(0,
|
|
981
|
-
(0,
|
|
1000
|
+
(0, import_class_validator16.IsOptional)(),
|
|
1001
|
+
(0, import_class_validator16.IsEnum)(FromUsOn, {
|
|
982
1002
|
message: `Found us on must be one of: ${Object.values(FromUsOn).join(", ")}`
|
|
983
1003
|
})
|
|
984
1004
|
], UpdateCompanyProfileDto.prototype, "foundUsOn", 2);
|
|
985
1005
|
|
|
986
1006
|
// src/modules/user/client-profile/dto/update-client-logo.dto.ts
|
|
987
|
-
var
|
|
1007
|
+
var import_class_validator17 = require("class-validator");
|
|
988
1008
|
var UpdateCompanyLogoDto = class {
|
|
989
1009
|
};
|
|
990
1010
|
__decorateClass([
|
|
991
|
-
(0,
|
|
992
|
-
(0,
|
|
1011
|
+
(0, import_class_validator17.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
1012
|
+
(0, import_class_validator17.IsUUID)()
|
|
993
1013
|
], UpdateCompanyLogoDto.prototype, "uuid", 2);
|
|
994
1014
|
|
|
995
1015
|
// src/modules/question/pattern/pattern.ts
|
|
@@ -998,24 +1018,24 @@ var QUESTION_PATTERN = {
|
|
|
998
1018
|
};
|
|
999
1019
|
|
|
1000
1020
|
// src/modules/question/dto/create-question.dto.ts
|
|
1001
|
-
var
|
|
1021
|
+
var import_class_validator18 = require("class-validator");
|
|
1002
1022
|
var CreateQuestionDto = class {
|
|
1003
1023
|
};
|
|
1004
1024
|
__decorateClass([
|
|
1005
|
-
(0,
|
|
1025
|
+
(0, import_class_validator18.IsNotEmpty)({ message: "Please enter unique id." })
|
|
1006
1026
|
], CreateQuestionDto.prototype, "questionId", 2);
|
|
1007
1027
|
__decorateClass([
|
|
1008
|
-
(0,
|
|
1028
|
+
(0, import_class_validator18.IsNotEmpty)({ message: "Please enter question." })
|
|
1009
1029
|
], CreateQuestionDto.prototype, "question", 2);
|
|
1010
1030
|
__decorateClass([
|
|
1011
|
-
(0,
|
|
1031
|
+
(0, import_class_validator18.IsNotEmpty)({ message: "Please enter for whom the question is." })
|
|
1012
1032
|
], CreateQuestionDto.prototype, "questionFor", 2);
|
|
1013
1033
|
__decorateClass([
|
|
1014
|
-
(0,
|
|
1034
|
+
(0, import_class_validator18.IsNotEmpty)({ message: "Please enter options." })
|
|
1015
1035
|
], CreateQuestionDto.prototype, "options", 2);
|
|
1016
1036
|
__decorateClass([
|
|
1017
|
-
(0,
|
|
1018
|
-
(0,
|
|
1037
|
+
(0, import_class_validator18.IsOptional)(),
|
|
1038
|
+
(0, import_class_validator18.IsBoolean)({ message: "Whether the question status active" })
|
|
1019
1039
|
], CreateQuestionDto.prototype, "isActive", 2);
|
|
1020
1040
|
|
|
1021
1041
|
// src/modules/job/pattern/pattern.ts
|
|
@@ -1234,6 +1254,7 @@ JobRoles = __decorateClass([
|
|
|
1234
1254
|
CompanyProfile,
|
|
1235
1255
|
CreateQuestionDto,
|
|
1236
1256
|
CreateSubAdminDto,
|
|
1257
|
+
FreelancerChangePasswordDto,
|
|
1237
1258
|
FreelancerCreateAccountDto,
|
|
1238
1259
|
FreelancerDevelopmentPreferenceDto,
|
|
1239
1260
|
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,9 +415,9 @@ var CLIENT_PROFILE_PATTERN = {
|
|
|
391
415
|
import {
|
|
392
416
|
IsEnum,
|
|
393
417
|
IsOptional as IsOptional4,
|
|
394
|
-
IsString as
|
|
395
|
-
|
|
396
|
-
|
|
418
|
+
IsString as IsString9,
|
|
419
|
+
IsArray,
|
|
420
|
+
IsBoolean as IsBoolean4
|
|
397
421
|
} from "class-validator";
|
|
398
422
|
|
|
399
423
|
// src/entities/company-profile.entity.ts
|
|
@@ -957,30 +981,31 @@ CompanyProfile = __decorateClass([
|
|
|
957
981
|
var UpdateCompanyProfileDto = class {
|
|
958
982
|
};
|
|
959
983
|
__decorateClass([
|
|
960
|
-
|
|
961
|
-
], UpdateCompanyProfileDto.prototype, "userId", 2);
|
|
962
|
-
__decorateClass([
|
|
963
|
-
IsString8({ message: "Company name must be a string." })
|
|
984
|
+
IsString9({ message: "Company name must be a string." })
|
|
964
985
|
], UpdateCompanyProfileDto.prototype, "companyName", 2);
|
|
965
986
|
__decorateClass([
|
|
966
987
|
IsOptional4(),
|
|
967
|
-
|
|
988
|
+
IsString9({ message: "Company bio must be a string." })
|
|
968
989
|
], UpdateCompanyProfileDto.prototype, "bio", 2);
|
|
969
990
|
__decorateClass([
|
|
970
991
|
IsOptional4(),
|
|
971
|
-
|
|
972
|
-
], UpdateCompanyProfileDto.prototype, "
|
|
992
|
+
IsString9({ message: "Company website url must be a string." })
|
|
993
|
+
], UpdateCompanyProfileDto.prototype, "webSite", 2);
|
|
973
994
|
__decorateClass([
|
|
974
|
-
|
|
975
|
-
|
|
995
|
+
IsOptional4(),
|
|
996
|
+
IsString9({ message: "About company must be a string." })
|
|
997
|
+
], UpdateCompanyProfileDto.prototype, "aboutCompany", 2);
|
|
998
|
+
__decorateClass([
|
|
999
|
+
IsBoolean4({ message: "Service agreement must be boolean" })
|
|
1000
|
+
], UpdateCompanyProfileDto.prototype, "isServiceAgreementSigned", 2);
|
|
976
1001
|
__decorateClass([
|
|
977
1002
|
IsOptional4(),
|
|
978
1003
|
IsArray({ message: "Skills must be an array of strings." }),
|
|
979
|
-
|
|
1004
|
+
IsString9({ each: true, message: "Each skill must be a string." })
|
|
980
1005
|
], UpdateCompanyProfileDto.prototype, "skills", 2);
|
|
981
1006
|
__decorateClass([
|
|
982
1007
|
IsOptional4(),
|
|
983
|
-
|
|
1008
|
+
IsString9({ message: "Required freelancer must be a string." })
|
|
984
1009
|
], UpdateCompanyProfileDto.prototype, "requiredFreelancer", 2);
|
|
985
1010
|
__decorateClass([
|
|
986
1011
|
IsOptional4(),
|
|
@@ -1002,11 +1027,11 @@ __decorateClass([
|
|
|
1002
1027
|
], UpdateCompanyProfileDto.prototype, "foundUsOn", 2);
|
|
1003
1028
|
|
|
1004
1029
|
// src/modules/user/client-profile/dto/update-client-logo.dto.ts
|
|
1005
|
-
import { IsNotEmpty as
|
|
1030
|
+
import { IsNotEmpty as IsNotEmpty14, IsUUID as IsUUID6 } from "class-validator";
|
|
1006
1031
|
var UpdateCompanyLogoDto = class {
|
|
1007
1032
|
};
|
|
1008
1033
|
__decorateClass([
|
|
1009
|
-
|
|
1034
|
+
IsNotEmpty14({ message: "Please enter uuid." }),
|
|
1010
1035
|
IsUUID6()
|
|
1011
1036
|
], UpdateCompanyLogoDto.prototype, "uuid", 2);
|
|
1012
1037
|
|
|
@@ -1017,27 +1042,27 @@ var QUESTION_PATTERN = {
|
|
|
1017
1042
|
|
|
1018
1043
|
// src/modules/question/dto/create-question.dto.ts
|
|
1019
1044
|
import {
|
|
1020
|
-
IsNotEmpty as
|
|
1045
|
+
IsNotEmpty as IsNotEmpty15,
|
|
1021
1046
|
IsOptional as IsOptional5,
|
|
1022
|
-
IsBoolean as
|
|
1047
|
+
IsBoolean as IsBoolean5
|
|
1023
1048
|
} from "class-validator";
|
|
1024
1049
|
var CreateQuestionDto = class {
|
|
1025
1050
|
};
|
|
1026
1051
|
__decorateClass([
|
|
1027
|
-
|
|
1052
|
+
IsNotEmpty15({ message: "Please enter unique id." })
|
|
1028
1053
|
], CreateQuestionDto.prototype, "questionId", 2);
|
|
1029
1054
|
__decorateClass([
|
|
1030
|
-
|
|
1055
|
+
IsNotEmpty15({ message: "Please enter question." })
|
|
1031
1056
|
], CreateQuestionDto.prototype, "question", 2);
|
|
1032
1057
|
__decorateClass([
|
|
1033
|
-
|
|
1058
|
+
IsNotEmpty15({ message: "Please enter for whom the question is." })
|
|
1034
1059
|
], CreateQuestionDto.prototype, "questionFor", 2);
|
|
1035
1060
|
__decorateClass([
|
|
1036
|
-
|
|
1061
|
+
IsNotEmpty15({ message: "Please enter options." })
|
|
1037
1062
|
], CreateQuestionDto.prototype, "options", 2);
|
|
1038
1063
|
__decorateClass([
|
|
1039
1064
|
IsOptional5(),
|
|
1040
|
-
|
|
1065
|
+
IsBoolean5({ message: "Whether the question status active" })
|
|
1041
1066
|
], CreateQuestionDto.prototype, "isActive", 2);
|
|
1042
1067
|
|
|
1043
1068
|
// src/modules/job/pattern/pattern.ts
|
|
@@ -1255,6 +1280,7 @@ export {
|
|
|
1255
1280
|
CompanyProfile,
|
|
1256
1281
|
CreateQuestionDto,
|
|
1257
1282
|
CreateSubAdminDto,
|
|
1283
|
+
FreelancerChangePasswordDto,
|
|
1258
1284
|
FreelancerCreateAccountDto,
|
|
1259
1285
|
FreelancerDevelopmentPreferenceDto,
|
|
1260
1286
|
FreelancerProfile,
|
|
@@ -17,8 +17,9 @@ export interface IUpdateClientProfilePayload {
|
|
|
17
17
|
userId?: number;
|
|
18
18
|
companyName?: string;
|
|
19
19
|
bio?: string;
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
webSite?: string;
|
|
21
|
+
isServiceAgreementSigned?: boolean;
|
|
22
|
+
aboutCompany: string;
|
|
22
23
|
skills?: string[];
|
|
23
24
|
requiredFreelancer?: string;
|
|
24
25
|
kindOfHiring?: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { KindOfHire, ModeOfHire, FromUsOn } from '../../../../entities/company-profile.entity';
|
|
2
2
|
export declare class UpdateCompanyProfileDto {
|
|
3
|
-
userId?: number;
|
|
4
3
|
companyName?: string;
|
|
5
4
|
bio?: string;
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
webSite?: string;
|
|
6
|
+
aboutCompany?: string;
|
|
7
|
+
isServiceAgreementSigned?: boolean;
|
|
8
8
|
skills?: string[];
|
|
9
9
|
requiredFreelancer?: string;
|
|
10
10
|
kindOfHiring?: KindOfHire;
|