@experts_hub/shared 1.0.190 → 1.0.192
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 +110 -1
- package/dist/index.d.ts +110 -1
- package/dist/index.js +143 -18
- package/dist/index.mjs +147 -17
- package/dist/modules/client-admin/index.d.ts +2 -0
- package/dist/modules/client-admin/pattern/pattern.d.ts +3 -0
- package/package.json +1 -1
- package/dist/modules/user/client-admin/index.d.ts +0 -3
- package/dist/modules/user/client-admin/pattern/pattern.d.ts +0 -7
- /package/dist/modules/{user/client-admin → client-admin}/client-admin.interface.d.ts +0 -0
- /package/dist/modules/{user/client-admin → client-admin}/dto/create-client.dto.d.ts +0 -0
- /package/dist/modules/{user/client-admin → client-admin}/dto/index.d.ts +0 -0
- /package/dist/modules/{user/client-admin → client-admin}/dto/update-client-status.dto.d.ts +0 -0
- /package/dist/modules/{user/client-admin → client-admin}/dto/update-client.dto.d.ts +0 -0
package/dist/index.d.mts
CHANGED
|
@@ -1335,10 +1335,119 @@ declare const FREELANCER_ADMIN_PATTERNS: {
|
|
|
1335
1335
|
|
|
1336
1336
|
declare const CLIENT_ADMIN_PATTERNS: {
|
|
1337
1337
|
fetchAdminClients: string;
|
|
1338
|
+
updateAdminClients: string;
|
|
1339
|
+
fetchAdminClientById: string;
|
|
1340
|
+
deleteAdminClient: string;
|
|
1338
1341
|
exportAdminClients: string;
|
|
1339
1342
|
fetchClientCount: string;
|
|
1340
1343
|
};
|
|
1341
1344
|
|
|
1345
|
+
declare enum HiringMode {
|
|
1346
|
+
REMOTE = "REMOTE",
|
|
1347
|
+
ONSITE = "ONSITE",
|
|
1348
|
+
BOTH = "BOTH"
|
|
1349
|
+
}
|
|
1350
|
+
declare enum HiringType {
|
|
1351
|
+
PARTTIME = "PARTTIME",
|
|
1352
|
+
FULLTIME = "FULLTIME",
|
|
1353
|
+
BOTH = "BOTH"
|
|
1354
|
+
}
|
|
1355
|
+
declare class CreateClientDto {
|
|
1356
|
+
firstName: string;
|
|
1357
|
+
lastName: string;
|
|
1358
|
+
email: string;
|
|
1359
|
+
confirmPassword: string;
|
|
1360
|
+
companyName: string;
|
|
1361
|
+
skills: string[];
|
|
1362
|
+
requiredFreelancer: string;
|
|
1363
|
+
kindOfHiring: string;
|
|
1364
|
+
modeOfHire: string;
|
|
1365
|
+
foundUsOn: string;
|
|
1366
|
+
OTHER?: string;
|
|
1367
|
+
foundUsOnDetail?: string;
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1370
|
+
declare class UpdateClientAccountStatusDto {
|
|
1371
|
+
accountStatus: string;
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1374
|
+
declare class UpdateClientDto {
|
|
1375
|
+
uniqueId: string;
|
|
1376
|
+
userName: string;
|
|
1377
|
+
firstName: string;
|
|
1378
|
+
lastName: string;
|
|
1379
|
+
email: string;
|
|
1380
|
+
mobile: string;
|
|
1381
|
+
password: string;
|
|
1382
|
+
accountType: string;
|
|
1383
|
+
accountStatus: string;
|
|
1384
|
+
}
|
|
1385
|
+
|
|
1386
|
+
interface IFetchClientsResponse {
|
|
1387
|
+
statusCode: number;
|
|
1388
|
+
status: boolean;
|
|
1389
|
+
message: string;
|
|
1390
|
+
data: any;
|
|
1391
|
+
}
|
|
1392
|
+
interface ICreateClientPayload {
|
|
1393
|
+
firstName: string;
|
|
1394
|
+
lastName: string;
|
|
1395
|
+
email: string;
|
|
1396
|
+
password: string;
|
|
1397
|
+
confirmPassword: string;
|
|
1398
|
+
companyName: string;
|
|
1399
|
+
skills: string[];
|
|
1400
|
+
requiredFreelancer: string;
|
|
1401
|
+
kindOfHiring: string;
|
|
1402
|
+
modeOfHire: string;
|
|
1403
|
+
foundUsOn: string;
|
|
1404
|
+
OTHER?: string;
|
|
1405
|
+
foundUsOnDetail?: string;
|
|
1406
|
+
}
|
|
1407
|
+
interface ICreateClientResponse {
|
|
1408
|
+
statusCode: number;
|
|
1409
|
+
status: boolean;
|
|
1410
|
+
message: string;
|
|
1411
|
+
}
|
|
1412
|
+
interface IUpdateClientPayload {
|
|
1413
|
+
firstName?: string;
|
|
1414
|
+
lastName?: string;
|
|
1415
|
+
email?: string;
|
|
1416
|
+
password?: string;
|
|
1417
|
+
confirmPassword?: string;
|
|
1418
|
+
companyName?: string;
|
|
1419
|
+
skills?: string[];
|
|
1420
|
+
requiredFreelancer?: string;
|
|
1421
|
+
kindOfHiring?: string;
|
|
1422
|
+
modeOfHire?: string;
|
|
1423
|
+
foundUsOn?: string;
|
|
1424
|
+
OTHER?: string;
|
|
1425
|
+
foundUsOnDetail?: string;
|
|
1426
|
+
}
|
|
1427
|
+
interface IUpdateClientResponse {
|
|
1428
|
+
statusCode: number;
|
|
1429
|
+
status: boolean;
|
|
1430
|
+
message: string;
|
|
1431
|
+
}
|
|
1432
|
+
interface IUpdateClientAccountStatusPayload {
|
|
1433
|
+
accountSatus: string;
|
|
1434
|
+
}
|
|
1435
|
+
interface IUpdateClientAccountStatusResponse {
|
|
1436
|
+
statusCode: number;
|
|
1437
|
+
status: boolean;
|
|
1438
|
+
message: string;
|
|
1439
|
+
}
|
|
1440
|
+
interface IDeleteClientResponse {
|
|
1441
|
+
statusCode: number;
|
|
1442
|
+
status: boolean;
|
|
1443
|
+
message: string;
|
|
1444
|
+
}
|
|
1445
|
+
interface IAttachPermissionsToClientResponse {
|
|
1446
|
+
statusCode: number;
|
|
1447
|
+
status: boolean;
|
|
1448
|
+
message: string;
|
|
1449
|
+
}
|
|
1450
|
+
|
|
1342
1451
|
declare const FREELANCER_DECLARATION_PATTERN: {
|
|
1343
1452
|
fetchFreelancerDeclaration: string;
|
|
1344
1453
|
saveFreelancerDeclaration: string;
|
|
@@ -1442,4 +1551,4 @@ declare class Cms extends BaseEntity {
|
|
|
1442
1551
|
isActive: boolean;
|
|
1443
1552
|
}
|
|
1444
1553
|
|
|
1445
|
-
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, ApplicationStatusEnum, AssessmentStatusEnum, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_ADMIN_PATTERNS, CLIENT_PROFILE_PATTERN, CMS_PATTERNS, COMPANY_MEMBERS_PATTERNS, COMPANY_ROLES_PATTERNS, CaseStudyDto, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, Cms, CompanyMemberRole, CompanyOnboardingStepEnum, CompanyProfile, CompanyRole, CompanyRolePermission, CreateCmsDto, CreateCompanyMemberDto, CreateCompanyRoleDto, CreateQuestionDto, CreateRatingDto, CreateSubAdminDto, DocumentType, DocumentTypeEnum, DurationTypeEnum, EducationDto, EmploymentType, ExperienceDto, FREELANCER_ADMIN_PATTERNS, FREELANCER_DECLARATION_PATTERN, FREELANCER_EDUCATION_PATTERN, FREELANCER_EXPERIENCE_PATTERN, FREELANCER_PROJECT_PATTERN, FREELANCER_SKILL_PATTERN, Feature, ForgotPasswordDto, FreelancerAssessment, FreelancerBankDetailsDto, FreelancerCaptureAiAssessmentStatusDto, FreelancerCaseStudy, FreelancerChangePasswordDto, FreelancerCoreSkill, FreelancerCreateAccountDto, FreelancerDeclaration, FreelancerDeclarationDto, FreelancerDevelopmentPreferenceDto, FreelancerEducation, FreelancerEducationDto, FreelancerExperience, FreelancerExperienceDto, FreelancerFramework, FreelancerInitiateAiAssessmentDto, FreelancerParseResumeDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerProject, FreelancerProjectDto, FreelancerSkillDto, FreelancerTool, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAddRatingPayload, type IAttachPermissionsToCompanyMemberResponse, type IAttachPermissionsToCompanyRoleResponse, type IAttachPermissionsToSubAdminResponse, type ICreateCompanyMemberPayload, type ICreateCompanyMemberResponse, type ICreateCompanyRolePayload, type ICreateCompanyRoleResponse, type ICreateRatingResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteCompanyMemberResponse, type IDeleteCompanyRoleResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchCmsQuery, type IFetchCompanyMemberByIdQuery, type IFetchCompanyMemberByIdResponse, type IFetchCompanyMemberQuery, type IFetchCompanyMembersResponse, type IFetchCompanyRoleByIdQuery, type IFetchCompanyRoleByIdResponse, type IFetchCompanyRoleQuery, type IFetchCompanyRolesResponse, type IFetchPlanResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchRatingResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IToggleCompanyMemberVisibilityPayload, type IToggleCompanyMemberVisibilityResponse, type IToggleCompanyRoleVisibilityPayload, type IToggleCompanyRoleVisibilityResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateCompanyMemberPayload, type IUpdateCompanyMemberResponse, type IUpdateCompanyRolePayload, type IUpdateCompanyRoleResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, Interview, InterviewSkill, InterviewStatusEnum, JOB_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobApplication, JobBasicInformationDto, JobDescriptionDto, JobIdParamDto, JobLocation, JobLocationEnum, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NOTIFICATION_PATTERN, NatureOfWork, NatureOfWorkDto, NotificationRMQAdapter, NotificationTCPAdapter, ONBOARDING_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PERMISSION_PATTERN, PLAN_PATTERN, PROFILE_PATTERN, Permission, Plan, ProjectDto, Provider, QUESTION_PATTERN, Question, QuestionFor, RATING_PATTERN, RESUME_PARSER_PATTERN, Rating, RatingTypeEnum, RefreshDto, RefreshToken, ResetPasswordDto, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$2 as ScopeEnum, SendGuestOtpDto, SendGuestOtpPurposeEnum, SenseloafLog, SetPasswordDto, Skill, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, ToggleCompanyMemberVisibilityDto, ToggleCompanyRoleVisibilityDto, TypeOfEmploymentEnum, UpdateCmsDto, UpdateCompanyMemberDto, UpdateCompanyProfileDto, UpdateCompanyRoleDto, UpdateFreelancerProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter, VerifyGuestOtpDto, VerifyGuestOtpPurposeEnum };
|
|
1554
|
+
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, ApplicationStatusEnum, AssessmentStatusEnum, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_ADMIN_PATTERNS, CLIENT_PROFILE_PATTERN, CMS_PATTERNS, COMPANY_MEMBERS_PATTERNS, COMPANY_ROLES_PATTERNS, CaseStudyDto, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, Cms, CompanyMemberRole, CompanyOnboardingStepEnum, CompanyProfile, CompanyRole, CompanyRolePermission, CreateClientDto, CreateCmsDto, CreateCompanyMemberDto, CreateCompanyRoleDto, CreateQuestionDto, CreateRatingDto, CreateSubAdminDto, DocumentType, DocumentTypeEnum, DurationTypeEnum, EducationDto, EmploymentType, ExperienceDto, FREELANCER_ADMIN_PATTERNS, FREELANCER_DECLARATION_PATTERN, FREELANCER_EDUCATION_PATTERN, FREELANCER_EXPERIENCE_PATTERN, FREELANCER_PROJECT_PATTERN, FREELANCER_SKILL_PATTERN, Feature, ForgotPasswordDto, FreelancerAssessment, FreelancerBankDetailsDto, FreelancerCaptureAiAssessmentStatusDto, FreelancerCaseStudy, FreelancerChangePasswordDto, FreelancerCoreSkill, FreelancerCreateAccountDto, FreelancerDeclaration, FreelancerDeclarationDto, FreelancerDevelopmentPreferenceDto, FreelancerEducation, FreelancerEducationDto, FreelancerExperience, FreelancerExperienceDto, FreelancerFramework, FreelancerInitiateAiAssessmentDto, FreelancerParseResumeDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerProject, FreelancerProjectDto, FreelancerSkillDto, FreelancerTool, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, HiringMode, HiringType, type IAddRatingPayload, type IAttachPermissionsToClientResponse, type IAttachPermissionsToCompanyMemberResponse, type IAttachPermissionsToCompanyRoleResponse, type IAttachPermissionsToSubAdminResponse, type ICreateClientPayload, type ICreateClientResponse, type ICreateCompanyMemberPayload, type ICreateCompanyMemberResponse, type ICreateCompanyRolePayload, type ICreateCompanyRoleResponse, type ICreateRatingResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteClientResponse, type IDeleteCompanyMemberResponse, type IDeleteCompanyRoleResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchClientsResponse, type IFetchCmsQuery, type IFetchCompanyMemberByIdQuery, type IFetchCompanyMemberByIdResponse, type IFetchCompanyMemberQuery, type IFetchCompanyMembersResponse, type IFetchCompanyRoleByIdQuery, type IFetchCompanyRoleByIdResponse, type IFetchCompanyRoleQuery, type IFetchCompanyRolesResponse, type IFetchPlanResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchRatingResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IToggleCompanyMemberVisibilityPayload, type IToggleCompanyMemberVisibilityResponse, type IToggleCompanyRoleVisibilityPayload, type IToggleCompanyRoleVisibilityResponse, type IUpdateClientAccountStatusPayload, type IUpdateClientAccountStatusResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateClientResponse, type IUpdateCompanyMemberPayload, type IUpdateCompanyMemberResponse, type IUpdateCompanyRolePayload, type IUpdateCompanyRoleResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, Interview, InterviewSkill, InterviewStatusEnum, JOB_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobApplication, JobBasicInformationDto, JobDescriptionDto, JobIdParamDto, JobLocation, JobLocationEnum, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NOTIFICATION_PATTERN, NatureOfWork, NatureOfWorkDto, NotificationRMQAdapter, NotificationTCPAdapter, ONBOARDING_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PERMISSION_PATTERN, PLAN_PATTERN, PROFILE_PATTERN, Permission, Plan, ProjectDto, Provider, QUESTION_PATTERN, Question, QuestionFor, RATING_PATTERN, RESUME_PARSER_PATTERN, Rating, RatingTypeEnum, RefreshDto, RefreshToken, ResetPasswordDto, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$2 as ScopeEnum, SendGuestOtpDto, SendGuestOtpPurposeEnum, SenseloafLog, SetPasswordDto, Skill, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, ToggleCompanyMemberVisibilityDto, ToggleCompanyRoleVisibilityDto, TypeOfEmploymentEnum, UpdateClientAccountStatusDto, UpdateClientDto, UpdateCmsDto, UpdateCompanyMemberDto, UpdateCompanyProfileDto, UpdateCompanyRoleDto, UpdateFreelancerProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter, VerifyGuestOtpDto, VerifyGuestOtpPurposeEnum };
|
package/dist/index.d.ts
CHANGED
|
@@ -1335,10 +1335,119 @@ declare const FREELANCER_ADMIN_PATTERNS: {
|
|
|
1335
1335
|
|
|
1336
1336
|
declare const CLIENT_ADMIN_PATTERNS: {
|
|
1337
1337
|
fetchAdminClients: string;
|
|
1338
|
+
updateAdminClients: string;
|
|
1339
|
+
fetchAdminClientById: string;
|
|
1340
|
+
deleteAdminClient: string;
|
|
1338
1341
|
exportAdminClients: string;
|
|
1339
1342
|
fetchClientCount: string;
|
|
1340
1343
|
};
|
|
1341
1344
|
|
|
1345
|
+
declare enum HiringMode {
|
|
1346
|
+
REMOTE = "REMOTE",
|
|
1347
|
+
ONSITE = "ONSITE",
|
|
1348
|
+
BOTH = "BOTH"
|
|
1349
|
+
}
|
|
1350
|
+
declare enum HiringType {
|
|
1351
|
+
PARTTIME = "PARTTIME",
|
|
1352
|
+
FULLTIME = "FULLTIME",
|
|
1353
|
+
BOTH = "BOTH"
|
|
1354
|
+
}
|
|
1355
|
+
declare class CreateClientDto {
|
|
1356
|
+
firstName: string;
|
|
1357
|
+
lastName: string;
|
|
1358
|
+
email: string;
|
|
1359
|
+
confirmPassword: string;
|
|
1360
|
+
companyName: string;
|
|
1361
|
+
skills: string[];
|
|
1362
|
+
requiredFreelancer: string;
|
|
1363
|
+
kindOfHiring: string;
|
|
1364
|
+
modeOfHire: string;
|
|
1365
|
+
foundUsOn: string;
|
|
1366
|
+
OTHER?: string;
|
|
1367
|
+
foundUsOnDetail?: string;
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1370
|
+
declare class UpdateClientAccountStatusDto {
|
|
1371
|
+
accountStatus: string;
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1374
|
+
declare class UpdateClientDto {
|
|
1375
|
+
uniqueId: string;
|
|
1376
|
+
userName: string;
|
|
1377
|
+
firstName: string;
|
|
1378
|
+
lastName: string;
|
|
1379
|
+
email: string;
|
|
1380
|
+
mobile: string;
|
|
1381
|
+
password: string;
|
|
1382
|
+
accountType: string;
|
|
1383
|
+
accountStatus: string;
|
|
1384
|
+
}
|
|
1385
|
+
|
|
1386
|
+
interface IFetchClientsResponse {
|
|
1387
|
+
statusCode: number;
|
|
1388
|
+
status: boolean;
|
|
1389
|
+
message: string;
|
|
1390
|
+
data: any;
|
|
1391
|
+
}
|
|
1392
|
+
interface ICreateClientPayload {
|
|
1393
|
+
firstName: string;
|
|
1394
|
+
lastName: string;
|
|
1395
|
+
email: string;
|
|
1396
|
+
password: string;
|
|
1397
|
+
confirmPassword: string;
|
|
1398
|
+
companyName: string;
|
|
1399
|
+
skills: string[];
|
|
1400
|
+
requiredFreelancer: string;
|
|
1401
|
+
kindOfHiring: string;
|
|
1402
|
+
modeOfHire: string;
|
|
1403
|
+
foundUsOn: string;
|
|
1404
|
+
OTHER?: string;
|
|
1405
|
+
foundUsOnDetail?: string;
|
|
1406
|
+
}
|
|
1407
|
+
interface ICreateClientResponse {
|
|
1408
|
+
statusCode: number;
|
|
1409
|
+
status: boolean;
|
|
1410
|
+
message: string;
|
|
1411
|
+
}
|
|
1412
|
+
interface IUpdateClientPayload {
|
|
1413
|
+
firstName?: string;
|
|
1414
|
+
lastName?: string;
|
|
1415
|
+
email?: string;
|
|
1416
|
+
password?: string;
|
|
1417
|
+
confirmPassword?: string;
|
|
1418
|
+
companyName?: string;
|
|
1419
|
+
skills?: string[];
|
|
1420
|
+
requiredFreelancer?: string;
|
|
1421
|
+
kindOfHiring?: string;
|
|
1422
|
+
modeOfHire?: string;
|
|
1423
|
+
foundUsOn?: string;
|
|
1424
|
+
OTHER?: string;
|
|
1425
|
+
foundUsOnDetail?: string;
|
|
1426
|
+
}
|
|
1427
|
+
interface IUpdateClientResponse {
|
|
1428
|
+
statusCode: number;
|
|
1429
|
+
status: boolean;
|
|
1430
|
+
message: string;
|
|
1431
|
+
}
|
|
1432
|
+
interface IUpdateClientAccountStatusPayload {
|
|
1433
|
+
accountSatus: string;
|
|
1434
|
+
}
|
|
1435
|
+
interface IUpdateClientAccountStatusResponse {
|
|
1436
|
+
statusCode: number;
|
|
1437
|
+
status: boolean;
|
|
1438
|
+
message: string;
|
|
1439
|
+
}
|
|
1440
|
+
interface IDeleteClientResponse {
|
|
1441
|
+
statusCode: number;
|
|
1442
|
+
status: boolean;
|
|
1443
|
+
message: string;
|
|
1444
|
+
}
|
|
1445
|
+
interface IAttachPermissionsToClientResponse {
|
|
1446
|
+
statusCode: number;
|
|
1447
|
+
status: boolean;
|
|
1448
|
+
message: string;
|
|
1449
|
+
}
|
|
1450
|
+
|
|
1342
1451
|
declare const FREELANCER_DECLARATION_PATTERN: {
|
|
1343
1452
|
fetchFreelancerDeclaration: string;
|
|
1344
1453
|
saveFreelancerDeclaration: string;
|
|
@@ -1442,4 +1551,4 @@ declare class Cms extends BaseEntity {
|
|
|
1442
1551
|
isActive: boolean;
|
|
1443
1552
|
}
|
|
1444
1553
|
|
|
1445
|
-
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, ApplicationStatusEnum, AssessmentStatusEnum, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_ADMIN_PATTERNS, CLIENT_PROFILE_PATTERN, CMS_PATTERNS, COMPANY_MEMBERS_PATTERNS, COMPANY_ROLES_PATTERNS, CaseStudyDto, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, Cms, CompanyMemberRole, CompanyOnboardingStepEnum, CompanyProfile, CompanyRole, CompanyRolePermission, CreateCmsDto, CreateCompanyMemberDto, CreateCompanyRoleDto, CreateQuestionDto, CreateRatingDto, CreateSubAdminDto, DocumentType, DocumentTypeEnum, DurationTypeEnum, EducationDto, EmploymentType, ExperienceDto, FREELANCER_ADMIN_PATTERNS, FREELANCER_DECLARATION_PATTERN, FREELANCER_EDUCATION_PATTERN, FREELANCER_EXPERIENCE_PATTERN, FREELANCER_PROJECT_PATTERN, FREELANCER_SKILL_PATTERN, Feature, ForgotPasswordDto, FreelancerAssessment, FreelancerBankDetailsDto, FreelancerCaptureAiAssessmentStatusDto, FreelancerCaseStudy, FreelancerChangePasswordDto, FreelancerCoreSkill, FreelancerCreateAccountDto, FreelancerDeclaration, FreelancerDeclarationDto, FreelancerDevelopmentPreferenceDto, FreelancerEducation, FreelancerEducationDto, FreelancerExperience, FreelancerExperienceDto, FreelancerFramework, FreelancerInitiateAiAssessmentDto, FreelancerParseResumeDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerProject, FreelancerProjectDto, FreelancerSkillDto, FreelancerTool, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAddRatingPayload, type IAttachPermissionsToCompanyMemberResponse, type IAttachPermissionsToCompanyRoleResponse, type IAttachPermissionsToSubAdminResponse, type ICreateCompanyMemberPayload, type ICreateCompanyMemberResponse, type ICreateCompanyRolePayload, type ICreateCompanyRoleResponse, type ICreateRatingResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteCompanyMemberResponse, type IDeleteCompanyRoleResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchCmsQuery, type IFetchCompanyMemberByIdQuery, type IFetchCompanyMemberByIdResponse, type IFetchCompanyMemberQuery, type IFetchCompanyMembersResponse, type IFetchCompanyRoleByIdQuery, type IFetchCompanyRoleByIdResponse, type IFetchCompanyRoleQuery, type IFetchCompanyRolesResponse, type IFetchPlanResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchRatingResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IToggleCompanyMemberVisibilityPayload, type IToggleCompanyMemberVisibilityResponse, type IToggleCompanyRoleVisibilityPayload, type IToggleCompanyRoleVisibilityResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateCompanyMemberPayload, type IUpdateCompanyMemberResponse, type IUpdateCompanyRolePayload, type IUpdateCompanyRoleResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, Interview, InterviewSkill, InterviewStatusEnum, JOB_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobApplication, JobBasicInformationDto, JobDescriptionDto, JobIdParamDto, JobLocation, JobLocationEnum, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NOTIFICATION_PATTERN, NatureOfWork, NatureOfWorkDto, NotificationRMQAdapter, NotificationTCPAdapter, ONBOARDING_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PERMISSION_PATTERN, PLAN_PATTERN, PROFILE_PATTERN, Permission, Plan, ProjectDto, Provider, QUESTION_PATTERN, Question, QuestionFor, RATING_PATTERN, RESUME_PARSER_PATTERN, Rating, RatingTypeEnum, RefreshDto, RefreshToken, ResetPasswordDto, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$2 as ScopeEnum, SendGuestOtpDto, SendGuestOtpPurposeEnum, SenseloafLog, SetPasswordDto, Skill, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, ToggleCompanyMemberVisibilityDto, ToggleCompanyRoleVisibilityDto, TypeOfEmploymentEnum, UpdateCmsDto, UpdateCompanyMemberDto, UpdateCompanyProfileDto, UpdateCompanyRoleDto, UpdateFreelancerProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter, VerifyGuestOtpDto, VerifyGuestOtpPurposeEnum };
|
|
1554
|
+
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, ApplicationStatusEnum, AssessmentStatusEnum, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CLIENT_ADMIN_PATTERNS, CLIENT_PROFILE_PATTERN, CMS_PATTERNS, COMPANY_MEMBERS_PATTERNS, COMPANY_ROLES_PATTERNS, CaseStudyDto, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, Cms, CompanyMemberRole, CompanyOnboardingStepEnum, CompanyProfile, CompanyRole, CompanyRolePermission, CreateClientDto, CreateCmsDto, CreateCompanyMemberDto, CreateCompanyRoleDto, CreateQuestionDto, CreateRatingDto, CreateSubAdminDto, DocumentType, DocumentTypeEnum, DurationTypeEnum, EducationDto, EmploymentType, ExperienceDto, FREELANCER_ADMIN_PATTERNS, FREELANCER_DECLARATION_PATTERN, FREELANCER_EDUCATION_PATTERN, FREELANCER_EXPERIENCE_PATTERN, FREELANCER_PROJECT_PATTERN, FREELANCER_SKILL_PATTERN, Feature, ForgotPasswordDto, FreelancerAssessment, FreelancerBankDetailsDto, FreelancerCaptureAiAssessmentStatusDto, FreelancerCaseStudy, FreelancerChangePasswordDto, FreelancerCoreSkill, FreelancerCreateAccountDto, FreelancerDeclaration, FreelancerDeclarationDto, FreelancerDevelopmentPreferenceDto, FreelancerEducation, FreelancerEducationDto, FreelancerExperience, FreelancerExperienceDto, FreelancerFramework, FreelancerInitiateAiAssessmentDto, FreelancerParseResumeDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerProject, FreelancerProjectDto, FreelancerSkillDto, FreelancerTool, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, HiringMode, HiringType, type IAddRatingPayload, type IAttachPermissionsToClientResponse, type IAttachPermissionsToCompanyMemberResponse, type IAttachPermissionsToCompanyRoleResponse, type IAttachPermissionsToSubAdminResponse, type ICreateClientPayload, type ICreateClientResponse, type ICreateCompanyMemberPayload, type ICreateCompanyMemberResponse, type ICreateCompanyRolePayload, type ICreateCompanyRoleResponse, type ICreateRatingResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteClientResponse, type IDeleteCompanyMemberResponse, type IDeleteCompanyRoleResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchClientsResponse, type IFetchCmsQuery, type IFetchCompanyMemberByIdQuery, type IFetchCompanyMemberByIdResponse, type IFetchCompanyMemberQuery, type IFetchCompanyMembersResponse, type IFetchCompanyRoleByIdQuery, type IFetchCompanyRoleByIdResponse, type IFetchCompanyRoleQuery, type IFetchCompanyRolesResponse, type IFetchPlanResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchRatingResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IToggleCompanyMemberVisibilityPayload, type IToggleCompanyMemberVisibilityResponse, type IToggleCompanyRoleVisibilityPayload, type IToggleCompanyRoleVisibilityResponse, type IUpdateClientAccountStatusPayload, type IUpdateClientAccountStatusResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateClientResponse, type IUpdateCompanyMemberPayload, type IUpdateCompanyMemberResponse, type IUpdateCompanyRolePayload, type IUpdateCompanyRoleResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, Interview, InterviewSkill, InterviewStatusEnum, JOB_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobApplication, JobBasicInformationDto, JobDescriptionDto, JobIdParamDto, JobLocation, JobLocationEnum, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NOTIFICATION_PATTERN, NatureOfWork, NatureOfWorkDto, NotificationRMQAdapter, NotificationTCPAdapter, ONBOARDING_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PERMISSION_PATTERN, PLAN_PATTERN, PROFILE_PATTERN, Permission, Plan, ProjectDto, Provider, QUESTION_PATTERN, Question, QuestionFor, RATING_PATTERN, RESUME_PARSER_PATTERN, Rating, RatingTypeEnum, RefreshDto, RefreshToken, ResetPasswordDto, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$2 as ScopeEnum, SendGuestOtpDto, SendGuestOtpPurposeEnum, SenseloafLog, SetPasswordDto, Skill, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, ToggleCompanyMemberVisibilityDto, ToggleCompanyRoleVisibilityDto, TypeOfEmploymentEnum, UpdateClientAccountStatusDto, UpdateClientDto, UpdateCmsDto, UpdateCompanyMemberDto, UpdateCompanyProfileDto, UpdateCompanyRoleDto, UpdateFreelancerProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter, VerifyGuestOtpDto, VerifyGuestOtpPurposeEnum };
|
package/dist/index.js
CHANGED
|
@@ -53,6 +53,7 @@ __export(index_exports, {
|
|
|
53
53
|
CompanyProfile: () => CompanyProfile,
|
|
54
54
|
CompanyRole: () => CompanyRole,
|
|
55
55
|
CompanyRolePermission: () => CompanyRolePermission,
|
|
56
|
+
CreateClientDto: () => CreateClientDto,
|
|
56
57
|
CreateCmsDto: () => CreateCmsDto,
|
|
57
58
|
CreateCompanyMemberDto: () => CreateCompanyMemberDto,
|
|
58
59
|
CreateCompanyRoleDto: () => CreateCompanyRoleDto,
|
|
@@ -99,6 +100,8 @@ __export(index_exports, {
|
|
|
99
100
|
FreelancerUploadResumeDto: () => FreelancerUploadResumeDto,
|
|
100
101
|
FreelancerWorkShowcaseDto: () => FreelancerWorkShowcaseDto,
|
|
101
102
|
FromUsOn: () => FromUsOn,
|
|
103
|
+
HiringMode: () => HiringMode,
|
|
104
|
+
HiringType: () => HiringType,
|
|
102
105
|
Interview: () => Interview,
|
|
103
106
|
InterviewSkill: () => InterviewSkill,
|
|
104
107
|
InterviewStatusEnum: () => InterviewStatusEnum,
|
|
@@ -165,6 +168,8 @@ __export(index_exports, {
|
|
|
165
168
|
ToggleCompanyMemberVisibilityDto: () => ToggleCompanyMemberVisibilityDto,
|
|
166
169
|
ToggleCompanyRoleVisibilityDto: () => ToggleCompanyRoleVisibilityDto,
|
|
167
170
|
TypeOfEmploymentEnum: () => TypeOfEmploymentEnum,
|
|
171
|
+
UpdateClientAccountStatusDto: () => UpdateClientAccountStatusDto,
|
|
172
|
+
UpdateClientDto: () => UpdateClientDto,
|
|
168
173
|
UpdateCmsDto: () => UpdateCmsDto,
|
|
169
174
|
UpdateCompanyMemberDto: () => UpdateCompanyMemberDto,
|
|
170
175
|
UpdateCompanyProfileDto: () => UpdateCompanyProfileDto,
|
|
@@ -3039,10 +3044,125 @@ var FREELANCER_ADMIN_PATTERNS = {
|
|
|
3039
3044
|
// src/modules/client-admin/pattern/pattern.ts
|
|
3040
3045
|
var CLIENT_ADMIN_PATTERNS = {
|
|
3041
3046
|
fetchAdminClients: "fetch.admin.clients",
|
|
3047
|
+
updateAdminClients: "update.admin.clients",
|
|
3048
|
+
fetchAdminClientById: "fetch.admin.client_by_id",
|
|
3049
|
+
deleteAdminClient: "delete.admin.client",
|
|
3042
3050
|
exportAdminClients: "export.admin.clients",
|
|
3043
3051
|
fetchClientCount: "fetch.client.count"
|
|
3044
3052
|
};
|
|
3045
3053
|
|
|
3054
|
+
// src/modules/client-admin/dto/create-client.dto.ts
|
|
3055
|
+
var import_class_validator46 = require("class-validator");
|
|
3056
|
+
var HiringMode = /* @__PURE__ */ ((HiringMode2) => {
|
|
3057
|
+
HiringMode2["REMOTE"] = "REMOTE";
|
|
3058
|
+
HiringMode2["ONSITE"] = "ONSITE";
|
|
3059
|
+
HiringMode2["BOTH"] = "BOTH";
|
|
3060
|
+
return HiringMode2;
|
|
3061
|
+
})(HiringMode || {});
|
|
3062
|
+
var HiringType = /* @__PURE__ */ ((HiringType2) => {
|
|
3063
|
+
HiringType2["PARTTIME"] = "PARTTIME";
|
|
3064
|
+
HiringType2["FULLTIME"] = "FULLTIME";
|
|
3065
|
+
HiringType2["BOTH"] = "BOTH";
|
|
3066
|
+
return HiringType2;
|
|
3067
|
+
})(HiringType || {});
|
|
3068
|
+
var CreateClientDto = class {
|
|
3069
|
+
};
|
|
3070
|
+
__decorateClass([
|
|
3071
|
+
(0, import_class_validator46.IsNotEmpty)({ message: "Please enter first name." }),
|
|
3072
|
+
(0, import_class_validator46.IsString)()
|
|
3073
|
+
], CreateClientDto.prototype, "firstName", 2);
|
|
3074
|
+
__decorateClass([
|
|
3075
|
+
(0, import_class_validator46.IsNotEmpty)({ message: "Please enter last name." }),
|
|
3076
|
+
(0, import_class_validator46.IsString)()
|
|
3077
|
+
], CreateClientDto.prototype, "lastName", 2);
|
|
3078
|
+
__decorateClass([
|
|
3079
|
+
(0, import_class_validator46.IsNotEmpty)({ message: "Please enter email." }),
|
|
3080
|
+
(0, import_class_validator46.IsEmail)()
|
|
3081
|
+
], CreateClientDto.prototype, "email", 2);
|
|
3082
|
+
__decorateClass([
|
|
3083
|
+
(0, import_class_validator46.IsNotEmpty)({ message: "Please enter password." }),
|
|
3084
|
+
(0, import_class_validator46.MinLength)(6),
|
|
3085
|
+
(0, import_class_validator46.MaxLength)(32),
|
|
3086
|
+
(0, import_class_validator46.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
3087
|
+
message: "Password must include letters, numbers and symbols."
|
|
3088
|
+
}),
|
|
3089
|
+
(0, import_class_validator46.IsNotEmpty)({ message: "Please enter confirm password." }),
|
|
3090
|
+
Match("newPassword", { message: "Passwords do not match" })
|
|
3091
|
+
], CreateClientDto.prototype, "confirmPassword", 2);
|
|
3092
|
+
__decorateClass([
|
|
3093
|
+
(0, import_class_validator46.IsNotEmpty)({ message: "Please enter company name." }),
|
|
3094
|
+
(0, import_class_validator46.IsString)()
|
|
3095
|
+
], CreateClientDto.prototype, "companyName", 2);
|
|
3096
|
+
__decorateClass([
|
|
3097
|
+
(0, import_class_validator46.IsArray)({ message: "Skills should be an array." }),
|
|
3098
|
+
(0, import_class_validator46.IsNotEmpty)({ message: "Please enter skills." })
|
|
3099
|
+
], CreateClientDto.prototype, "skills", 2);
|
|
3100
|
+
__decorateClass([
|
|
3101
|
+
(0, import_class_validator46.IsNotEmpty)({ message: "Please specify required freelancer count." }),
|
|
3102
|
+
(0, import_class_validator46.IsString)()
|
|
3103
|
+
], CreateClientDto.prototype, "requiredFreelancer", 2);
|
|
3104
|
+
__decorateClass([
|
|
3105
|
+
(0, import_class_validator46.IsNotEmpty)({ message: "Please specify the kind of hiring." }),
|
|
3106
|
+
(0, import_class_validator46.IsEnum)(HiringType)
|
|
3107
|
+
], CreateClientDto.prototype, "kindOfHiring", 2);
|
|
3108
|
+
__decorateClass([
|
|
3109
|
+
(0, import_class_validator46.IsNotEmpty)({ message: "Please specify the mode of hire." }),
|
|
3110
|
+
(0, import_class_validator46.IsEnum)(HiringMode)
|
|
3111
|
+
], CreateClientDto.prototype, "modeOfHire", 2);
|
|
3112
|
+
__decorateClass([
|
|
3113
|
+
(0, import_class_validator46.IsNotEmpty)({ message: "Please let us know how you found us." }),
|
|
3114
|
+
(0, import_class_validator46.IsString)()
|
|
3115
|
+
], CreateClientDto.prototype, "foundUsOn", 2);
|
|
3116
|
+
__decorateClass([
|
|
3117
|
+
(0, import_class_validator46.IsOptional)(),
|
|
3118
|
+
(0, import_class_validator46.IsString)()
|
|
3119
|
+
], CreateClientDto.prototype, "OTHER", 2);
|
|
3120
|
+
__decorateClass([
|
|
3121
|
+
(0, import_class_validator46.IsOptional)(),
|
|
3122
|
+
(0, import_class_validator46.IsString)()
|
|
3123
|
+
], CreateClientDto.prototype, "foundUsOnDetail", 2);
|
|
3124
|
+
|
|
3125
|
+
// src/modules/client-admin/dto/update-client-status.dto.ts
|
|
3126
|
+
var import_class_validator47 = require("class-validator");
|
|
3127
|
+
var UpdateClientAccountStatusDto = class {
|
|
3128
|
+
};
|
|
3129
|
+
__decorateClass([
|
|
3130
|
+
(0, import_class_validator47.IsNotEmpty)({ message: "Please enter account status." }),
|
|
3131
|
+
(0, import_class_validator47.IsString)()
|
|
3132
|
+
], UpdateClientAccountStatusDto.prototype, "accountStatus", 2);
|
|
3133
|
+
|
|
3134
|
+
// src/modules/client-admin/dto/update-client.dto.ts
|
|
3135
|
+
var import_class_validator48 = require("class-validator");
|
|
3136
|
+
var UpdateClientDto = class {
|
|
3137
|
+
};
|
|
3138
|
+
__decorateClass([
|
|
3139
|
+
(0, import_class_validator48.IsNotEmpty)({ message: "Please enter unique id." })
|
|
3140
|
+
], UpdateClientDto.prototype, "uniqueId", 2);
|
|
3141
|
+
__decorateClass([
|
|
3142
|
+
(0, import_class_validator48.IsNotEmpty)({ message: "Please enter username." })
|
|
3143
|
+
], UpdateClientDto.prototype, "userName", 2);
|
|
3144
|
+
__decorateClass([
|
|
3145
|
+
(0, import_class_validator48.IsNotEmpty)({ message: "Please enter first name." })
|
|
3146
|
+
], UpdateClientDto.prototype, "firstName", 2);
|
|
3147
|
+
__decorateClass([
|
|
3148
|
+
(0, import_class_validator48.IsNotEmpty)({ message: "Please enter last name." })
|
|
3149
|
+
], UpdateClientDto.prototype, "lastName", 2);
|
|
3150
|
+
__decorateClass([
|
|
3151
|
+
(0, import_class_validator48.IsNotEmpty)({ message: "Please enter email." })
|
|
3152
|
+
], UpdateClientDto.prototype, "email", 2);
|
|
3153
|
+
__decorateClass([
|
|
3154
|
+
(0, import_class_validator48.IsNotEmpty)({ message: "Please enter mobile number." })
|
|
3155
|
+
], UpdateClientDto.prototype, "mobile", 2);
|
|
3156
|
+
__decorateClass([
|
|
3157
|
+
(0, import_class_validator48.IsNotEmpty)({ message: "Please enter the password." })
|
|
3158
|
+
], UpdateClientDto.prototype, "password", 2);
|
|
3159
|
+
__decorateClass([
|
|
3160
|
+
(0, import_class_validator48.IsNotEmpty)({ message: "Please enter account type." })
|
|
3161
|
+
], UpdateClientDto.prototype, "accountType", 2);
|
|
3162
|
+
__decorateClass([
|
|
3163
|
+
(0, import_class_validator48.IsNotEmpty)({ message: "Please enter account status." })
|
|
3164
|
+
], UpdateClientDto.prototype, "accountStatus", 2);
|
|
3165
|
+
|
|
3046
3166
|
// src/modules/user/freelancer-declaration/pattern/pattern.ts
|
|
3047
3167
|
var FREELANCER_DECLARATION_PATTERN = {
|
|
3048
3168
|
fetchFreelancerDeclaration: "fetch.freelancer.declaration",
|
|
@@ -3050,7 +3170,7 @@ var FREELANCER_DECLARATION_PATTERN = {
|
|
|
3050
3170
|
};
|
|
3051
3171
|
|
|
3052
3172
|
// src/modules/user/freelancer-declaration/dto/freelancer-declaration.dto.ts
|
|
3053
|
-
var
|
|
3173
|
+
var import_class_validator49 = require("class-validator");
|
|
3054
3174
|
var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
3055
3175
|
DocumentTypeEnum2["AADHAAR"] = "AADHAAR_CARD";
|
|
3056
3176
|
DocumentTypeEnum2["PASSPORT"] = "PASSPORT";
|
|
@@ -3061,16 +3181,16 @@ var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
|
3061
3181
|
var FreelancerDeclarationDto = class {
|
|
3062
3182
|
};
|
|
3063
3183
|
__decorateClass([
|
|
3064
|
-
(0,
|
|
3065
|
-
(0,
|
|
3184
|
+
(0, import_class_validator49.IsOptional)(),
|
|
3185
|
+
(0, import_class_validator49.IsString)({ message: "UUID must be a string" })
|
|
3066
3186
|
], FreelancerDeclarationDto.prototype, "uuid", 2);
|
|
3067
3187
|
__decorateClass([
|
|
3068
|
-
(0,
|
|
3188
|
+
(0, import_class_validator49.IsEnum)(DocumentTypeEnum, { message: "Document type must be one of AADHAAR_CARD, PASSPORT, DRIVING_LICENSE, PAN_CARD" })
|
|
3069
3189
|
], FreelancerDeclarationDto.prototype, "documentType", 2);
|
|
3070
3190
|
__decorateClass([
|
|
3071
|
-
(0,
|
|
3072
|
-
(0,
|
|
3073
|
-
(0,
|
|
3191
|
+
(0, import_class_validator49.IsNotEmpty)({ message: "Please accept the declaration " }),
|
|
3192
|
+
(0, import_class_validator49.IsString)(),
|
|
3193
|
+
(0, import_class_validator49.IsIn)([
|
|
3074
3194
|
"true"
|
|
3075
3195
|
])
|
|
3076
3196
|
], FreelancerDeclarationDto.prototype, "declarationAccepted", 2);
|
|
@@ -3085,36 +3205,36 @@ var CMS_PATTERNS = {
|
|
|
3085
3205
|
};
|
|
3086
3206
|
|
|
3087
3207
|
// src/modules/cms/dto/create-cms.dto.ts
|
|
3088
|
-
var
|
|
3208
|
+
var import_class_validator50 = require("class-validator");
|
|
3089
3209
|
var CreateCmsDto = class {
|
|
3090
3210
|
};
|
|
3091
3211
|
__decorateClass([
|
|
3092
|
-
(0,
|
|
3212
|
+
(0, import_class_validator50.IsNotEmpty)({ message: "Please enter name." })
|
|
3093
3213
|
], CreateCmsDto.prototype, "title", 2);
|
|
3094
3214
|
__decorateClass([
|
|
3095
|
-
(0,
|
|
3215
|
+
(0, import_class_validator50.IsOptional)()
|
|
3096
3216
|
], CreateCmsDto.prototype, "content", 2);
|
|
3097
3217
|
__decorateClass([
|
|
3098
|
-
(0,
|
|
3099
|
-
(0,
|
|
3218
|
+
(0, import_class_validator50.IsOptional)(),
|
|
3219
|
+
(0, import_class_validator50.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
3100
3220
|
], CreateCmsDto.prototype, "isActive", 2);
|
|
3101
3221
|
|
|
3102
3222
|
// src/modules/cms/dto/update-cms.dto.ts
|
|
3103
|
-
var
|
|
3223
|
+
var import_class_validator51 = require("class-validator");
|
|
3104
3224
|
var UpdateCmsDto = class {
|
|
3105
3225
|
};
|
|
3106
3226
|
__decorateClass([
|
|
3107
|
-
(0,
|
|
3227
|
+
(0, import_class_validator51.IsOptional)()
|
|
3108
3228
|
], UpdateCmsDto.prototype, "uuid", 2);
|
|
3109
3229
|
__decorateClass([
|
|
3110
|
-
(0,
|
|
3230
|
+
(0, import_class_validator51.IsNotEmpty)({ message: "Please enter name." })
|
|
3111
3231
|
], UpdateCmsDto.prototype, "title", 2);
|
|
3112
3232
|
__decorateClass([
|
|
3113
|
-
(0,
|
|
3233
|
+
(0, import_class_validator51.IsOptional)()
|
|
3114
3234
|
], UpdateCmsDto.prototype, "content", 2);
|
|
3115
3235
|
__decorateClass([
|
|
3116
|
-
(0,
|
|
3117
|
-
(0,
|
|
3236
|
+
(0, import_class_validator51.IsOptional)(),
|
|
3237
|
+
(0, import_class_validator51.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
3118
3238
|
], UpdateCmsDto.prototype, "isActive", 2);
|
|
3119
3239
|
|
|
3120
3240
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
@@ -3479,6 +3599,7 @@ Cms = __decorateClass([
|
|
|
3479
3599
|
CompanyProfile,
|
|
3480
3600
|
CompanyRole,
|
|
3481
3601
|
CompanyRolePermission,
|
|
3602
|
+
CreateClientDto,
|
|
3482
3603
|
CreateCmsDto,
|
|
3483
3604
|
CreateCompanyMemberDto,
|
|
3484
3605
|
CreateCompanyRoleDto,
|
|
@@ -3525,6 +3646,8 @@ Cms = __decorateClass([
|
|
|
3525
3646
|
FreelancerUploadResumeDto,
|
|
3526
3647
|
FreelancerWorkShowcaseDto,
|
|
3527
3648
|
FromUsOn,
|
|
3649
|
+
HiringMode,
|
|
3650
|
+
HiringType,
|
|
3528
3651
|
Interview,
|
|
3529
3652
|
InterviewSkill,
|
|
3530
3653
|
InterviewStatusEnum,
|
|
@@ -3591,6 +3714,8 @@ Cms = __decorateClass([
|
|
|
3591
3714
|
ToggleCompanyMemberVisibilityDto,
|
|
3592
3715
|
ToggleCompanyRoleVisibilityDto,
|
|
3593
3716
|
TypeOfEmploymentEnum,
|
|
3717
|
+
UpdateClientAccountStatusDto,
|
|
3718
|
+
UpdateClientDto,
|
|
3594
3719
|
UpdateCmsDto,
|
|
3595
3720
|
UpdateCompanyMemberDto,
|
|
3596
3721
|
UpdateCompanyProfileDto,
|
package/dist/index.mjs
CHANGED
|
@@ -3122,10 +3122,135 @@ var FREELANCER_ADMIN_PATTERNS = {
|
|
|
3122
3122
|
// src/modules/client-admin/pattern/pattern.ts
|
|
3123
3123
|
var CLIENT_ADMIN_PATTERNS = {
|
|
3124
3124
|
fetchAdminClients: "fetch.admin.clients",
|
|
3125
|
+
updateAdminClients: "update.admin.clients",
|
|
3126
|
+
fetchAdminClientById: "fetch.admin.client_by_id",
|
|
3127
|
+
deleteAdminClient: "delete.admin.client",
|
|
3125
3128
|
exportAdminClients: "export.admin.clients",
|
|
3126
3129
|
fetchClientCount: "fetch.client.count"
|
|
3127
3130
|
};
|
|
3128
3131
|
|
|
3132
|
+
// src/modules/client-admin/dto/create-client.dto.ts
|
|
3133
|
+
import {
|
|
3134
|
+
IsNotEmpty as IsNotEmpty38,
|
|
3135
|
+
IsEmail as IsEmail11,
|
|
3136
|
+
IsOptional as IsOptional18,
|
|
3137
|
+
IsString as IsString26,
|
|
3138
|
+
IsArray as IsArray9,
|
|
3139
|
+
MinLength as MinLength12,
|
|
3140
|
+
MaxLength as MaxLength14,
|
|
3141
|
+
IsEnum as IsEnum13,
|
|
3142
|
+
Matches as Matches8
|
|
3143
|
+
} from "class-validator";
|
|
3144
|
+
var HiringMode = /* @__PURE__ */ ((HiringMode2) => {
|
|
3145
|
+
HiringMode2["REMOTE"] = "REMOTE";
|
|
3146
|
+
HiringMode2["ONSITE"] = "ONSITE";
|
|
3147
|
+
HiringMode2["BOTH"] = "BOTH";
|
|
3148
|
+
return HiringMode2;
|
|
3149
|
+
})(HiringMode || {});
|
|
3150
|
+
var HiringType = /* @__PURE__ */ ((HiringType2) => {
|
|
3151
|
+
HiringType2["PARTTIME"] = "PARTTIME";
|
|
3152
|
+
HiringType2["FULLTIME"] = "FULLTIME";
|
|
3153
|
+
HiringType2["BOTH"] = "BOTH";
|
|
3154
|
+
return HiringType2;
|
|
3155
|
+
})(HiringType || {});
|
|
3156
|
+
var CreateClientDto = class {
|
|
3157
|
+
};
|
|
3158
|
+
__decorateClass([
|
|
3159
|
+
IsNotEmpty38({ message: "Please enter first name." }),
|
|
3160
|
+
IsString26()
|
|
3161
|
+
], CreateClientDto.prototype, "firstName", 2);
|
|
3162
|
+
__decorateClass([
|
|
3163
|
+
IsNotEmpty38({ message: "Please enter last name." }),
|
|
3164
|
+
IsString26()
|
|
3165
|
+
], CreateClientDto.prototype, "lastName", 2);
|
|
3166
|
+
__decorateClass([
|
|
3167
|
+
IsNotEmpty38({ message: "Please enter email." }),
|
|
3168
|
+
IsEmail11()
|
|
3169
|
+
], CreateClientDto.prototype, "email", 2);
|
|
3170
|
+
__decorateClass([
|
|
3171
|
+
IsNotEmpty38({ message: "Please enter password." }),
|
|
3172
|
+
MinLength12(6),
|
|
3173
|
+
MaxLength14(32),
|
|
3174
|
+
Matches8(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
3175
|
+
message: "Password must include letters, numbers and symbols."
|
|
3176
|
+
}),
|
|
3177
|
+
IsNotEmpty38({ message: "Please enter confirm password." }),
|
|
3178
|
+
Match("newPassword", { message: "Passwords do not match" })
|
|
3179
|
+
], CreateClientDto.prototype, "confirmPassword", 2);
|
|
3180
|
+
__decorateClass([
|
|
3181
|
+
IsNotEmpty38({ message: "Please enter company name." }),
|
|
3182
|
+
IsString26()
|
|
3183
|
+
], CreateClientDto.prototype, "companyName", 2);
|
|
3184
|
+
__decorateClass([
|
|
3185
|
+
IsArray9({ message: "Skills should be an array." }),
|
|
3186
|
+
IsNotEmpty38({ message: "Please enter skills." })
|
|
3187
|
+
], CreateClientDto.prototype, "skills", 2);
|
|
3188
|
+
__decorateClass([
|
|
3189
|
+
IsNotEmpty38({ message: "Please specify required freelancer count." }),
|
|
3190
|
+
IsString26()
|
|
3191
|
+
], CreateClientDto.prototype, "requiredFreelancer", 2);
|
|
3192
|
+
__decorateClass([
|
|
3193
|
+
IsNotEmpty38({ message: "Please specify the kind of hiring." }),
|
|
3194
|
+
IsEnum13(HiringType)
|
|
3195
|
+
], CreateClientDto.prototype, "kindOfHiring", 2);
|
|
3196
|
+
__decorateClass([
|
|
3197
|
+
IsNotEmpty38({ message: "Please specify the mode of hire." }),
|
|
3198
|
+
IsEnum13(HiringMode)
|
|
3199
|
+
], CreateClientDto.prototype, "modeOfHire", 2);
|
|
3200
|
+
__decorateClass([
|
|
3201
|
+
IsNotEmpty38({ message: "Please let us know how you found us." }),
|
|
3202
|
+
IsString26()
|
|
3203
|
+
], CreateClientDto.prototype, "foundUsOn", 2);
|
|
3204
|
+
__decorateClass([
|
|
3205
|
+
IsOptional18(),
|
|
3206
|
+
IsString26()
|
|
3207
|
+
], CreateClientDto.prototype, "OTHER", 2);
|
|
3208
|
+
__decorateClass([
|
|
3209
|
+
IsOptional18(),
|
|
3210
|
+
IsString26()
|
|
3211
|
+
], CreateClientDto.prototype, "foundUsOnDetail", 2);
|
|
3212
|
+
|
|
3213
|
+
// src/modules/client-admin/dto/update-client-status.dto.ts
|
|
3214
|
+
import { IsString as IsString27, IsNotEmpty as IsNotEmpty39 } from "class-validator";
|
|
3215
|
+
var UpdateClientAccountStatusDto = class {
|
|
3216
|
+
};
|
|
3217
|
+
__decorateClass([
|
|
3218
|
+
IsNotEmpty39({ message: "Please enter account status." }),
|
|
3219
|
+
IsString27()
|
|
3220
|
+
], UpdateClientAccountStatusDto.prototype, "accountStatus", 2);
|
|
3221
|
+
|
|
3222
|
+
// src/modules/client-admin/dto/update-client.dto.ts
|
|
3223
|
+
import { IsNotEmpty as IsNotEmpty40 } from "class-validator";
|
|
3224
|
+
var UpdateClientDto = class {
|
|
3225
|
+
};
|
|
3226
|
+
__decorateClass([
|
|
3227
|
+
IsNotEmpty40({ message: "Please enter unique id." })
|
|
3228
|
+
], UpdateClientDto.prototype, "uniqueId", 2);
|
|
3229
|
+
__decorateClass([
|
|
3230
|
+
IsNotEmpty40({ message: "Please enter username." })
|
|
3231
|
+
], UpdateClientDto.prototype, "userName", 2);
|
|
3232
|
+
__decorateClass([
|
|
3233
|
+
IsNotEmpty40({ message: "Please enter first name." })
|
|
3234
|
+
], UpdateClientDto.prototype, "firstName", 2);
|
|
3235
|
+
__decorateClass([
|
|
3236
|
+
IsNotEmpty40({ message: "Please enter last name." })
|
|
3237
|
+
], UpdateClientDto.prototype, "lastName", 2);
|
|
3238
|
+
__decorateClass([
|
|
3239
|
+
IsNotEmpty40({ message: "Please enter email." })
|
|
3240
|
+
], UpdateClientDto.prototype, "email", 2);
|
|
3241
|
+
__decorateClass([
|
|
3242
|
+
IsNotEmpty40({ message: "Please enter mobile number." })
|
|
3243
|
+
], UpdateClientDto.prototype, "mobile", 2);
|
|
3244
|
+
__decorateClass([
|
|
3245
|
+
IsNotEmpty40({ message: "Please enter the password." })
|
|
3246
|
+
], UpdateClientDto.prototype, "password", 2);
|
|
3247
|
+
__decorateClass([
|
|
3248
|
+
IsNotEmpty40({ message: "Please enter account type." })
|
|
3249
|
+
], UpdateClientDto.prototype, "accountType", 2);
|
|
3250
|
+
__decorateClass([
|
|
3251
|
+
IsNotEmpty40({ message: "Please enter account status." })
|
|
3252
|
+
], UpdateClientDto.prototype, "accountStatus", 2);
|
|
3253
|
+
|
|
3129
3254
|
// src/modules/user/freelancer-declaration/pattern/pattern.ts
|
|
3130
3255
|
var FREELANCER_DECLARATION_PATTERN = {
|
|
3131
3256
|
fetchFreelancerDeclaration: "fetch.freelancer.declaration",
|
|
@@ -3133,7 +3258,7 @@ var FREELANCER_DECLARATION_PATTERN = {
|
|
|
3133
3258
|
};
|
|
3134
3259
|
|
|
3135
3260
|
// src/modules/user/freelancer-declaration/dto/freelancer-declaration.dto.ts
|
|
3136
|
-
import { IsOptional as
|
|
3261
|
+
import { IsOptional as IsOptional20, IsEnum as IsEnum14, IsString as IsString29, IsNotEmpty as IsNotEmpty41, IsIn as IsIn3 } from "class-validator";
|
|
3137
3262
|
var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
3138
3263
|
DocumentTypeEnum2["AADHAAR"] = "AADHAAR_CARD";
|
|
3139
3264
|
DocumentTypeEnum2["PASSPORT"] = "PASSPORT";
|
|
@@ -3144,15 +3269,15 @@ var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
|
3144
3269
|
var FreelancerDeclarationDto = class {
|
|
3145
3270
|
};
|
|
3146
3271
|
__decorateClass([
|
|
3147
|
-
|
|
3148
|
-
|
|
3272
|
+
IsOptional20(),
|
|
3273
|
+
IsString29({ message: "UUID must be a string" })
|
|
3149
3274
|
], FreelancerDeclarationDto.prototype, "uuid", 2);
|
|
3150
3275
|
__decorateClass([
|
|
3151
|
-
|
|
3276
|
+
IsEnum14(DocumentTypeEnum, { message: "Document type must be one of AADHAAR_CARD, PASSPORT, DRIVING_LICENSE, PAN_CARD" })
|
|
3152
3277
|
], FreelancerDeclarationDto.prototype, "documentType", 2);
|
|
3153
3278
|
__decorateClass([
|
|
3154
|
-
|
|
3155
|
-
|
|
3279
|
+
IsNotEmpty41({ message: "Please accept the declaration " }),
|
|
3280
|
+
IsString29(),
|
|
3156
3281
|
IsIn3([
|
|
3157
3282
|
"true"
|
|
3158
3283
|
])
|
|
@@ -3168,36 +3293,36 @@ var CMS_PATTERNS = {
|
|
|
3168
3293
|
};
|
|
3169
3294
|
|
|
3170
3295
|
// src/modules/cms/dto/create-cms.dto.ts
|
|
3171
|
-
import { IsBoolean as
|
|
3296
|
+
import { IsBoolean as IsBoolean13, IsNotEmpty as IsNotEmpty42, IsOptional as IsOptional21 } from "class-validator";
|
|
3172
3297
|
var CreateCmsDto = class {
|
|
3173
3298
|
};
|
|
3174
3299
|
__decorateClass([
|
|
3175
|
-
|
|
3300
|
+
IsNotEmpty42({ message: "Please enter name." })
|
|
3176
3301
|
], CreateCmsDto.prototype, "title", 2);
|
|
3177
3302
|
__decorateClass([
|
|
3178
|
-
|
|
3303
|
+
IsOptional21()
|
|
3179
3304
|
], CreateCmsDto.prototype, "content", 2);
|
|
3180
3305
|
__decorateClass([
|
|
3181
|
-
|
|
3182
|
-
|
|
3306
|
+
IsOptional21(),
|
|
3307
|
+
IsBoolean13({ message: "Is active must be a boolean value" })
|
|
3183
3308
|
], CreateCmsDto.prototype, "isActive", 2);
|
|
3184
3309
|
|
|
3185
3310
|
// src/modules/cms/dto/update-cms.dto.ts
|
|
3186
|
-
import { IsBoolean as
|
|
3311
|
+
import { IsBoolean as IsBoolean14, IsNotEmpty as IsNotEmpty43, IsOptional as IsOptional22 } from "class-validator";
|
|
3187
3312
|
var UpdateCmsDto = class {
|
|
3188
3313
|
};
|
|
3189
3314
|
__decorateClass([
|
|
3190
|
-
|
|
3315
|
+
IsOptional22()
|
|
3191
3316
|
], UpdateCmsDto.prototype, "uuid", 2);
|
|
3192
3317
|
__decorateClass([
|
|
3193
|
-
|
|
3318
|
+
IsNotEmpty43({ message: "Please enter name." })
|
|
3194
3319
|
], UpdateCmsDto.prototype, "title", 2);
|
|
3195
3320
|
__decorateClass([
|
|
3196
|
-
|
|
3321
|
+
IsOptional22()
|
|
3197
3322
|
], UpdateCmsDto.prototype, "content", 2);
|
|
3198
3323
|
__decorateClass([
|
|
3199
|
-
|
|
3200
|
-
|
|
3324
|
+
IsOptional22(),
|
|
3325
|
+
IsBoolean14({ message: "Is active must be a boolean value" })
|
|
3201
3326
|
], UpdateCmsDto.prototype, "isActive", 2);
|
|
3202
3327
|
|
|
3203
3328
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
@@ -3561,6 +3686,7 @@ export {
|
|
|
3561
3686
|
CompanyProfile,
|
|
3562
3687
|
CompanyRole,
|
|
3563
3688
|
CompanyRolePermission,
|
|
3689
|
+
CreateClientDto,
|
|
3564
3690
|
CreateCmsDto,
|
|
3565
3691
|
CreateCompanyMemberDto,
|
|
3566
3692
|
CreateCompanyRoleDto,
|
|
@@ -3607,6 +3733,8 @@ export {
|
|
|
3607
3733
|
FreelancerUploadResumeDto,
|
|
3608
3734
|
FreelancerWorkShowcaseDto,
|
|
3609
3735
|
FromUsOn,
|
|
3736
|
+
HiringMode,
|
|
3737
|
+
HiringType,
|
|
3610
3738
|
Interview,
|
|
3611
3739
|
InterviewSkill,
|
|
3612
3740
|
InterviewStatusEnum,
|
|
@@ -3673,6 +3801,8 @@ export {
|
|
|
3673
3801
|
ToggleCompanyMemberVisibilityDto,
|
|
3674
3802
|
ToggleCompanyRoleVisibilityDto,
|
|
3675
3803
|
TypeOfEmploymentEnum,
|
|
3804
|
+
UpdateClientAccountStatusDto,
|
|
3805
|
+
UpdateClientDto,
|
|
3676
3806
|
UpdateCmsDto,
|
|
3677
3807
|
UpdateCompanyMemberDto,
|
|
3678
3808
|
UpdateCompanyProfileDto,
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|