@experts_hub/shared 1.0.191 → 1.0.194
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 +124 -2
- package/dist/index.d.ts +124 -2
- package/dist/index.js +185 -19
- package/dist/index.mjs +193 -16
- package/dist/modules/client-admin/dto/create-client.dto.d.ts +3 -2
- package/dist/modules/client-admin/dto/update-client.dto.d.ts +19 -5
- package/dist/modules/client-admin/index.d.ts +2 -0
- package/dist/modules/client-admin/pattern/pattern.d.ts +2 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1335,13 +1335,135 @@ declare const FREELANCER_ADMIN_PATTERNS: {
|
|
|
1335
1335
|
|
|
1336
1336
|
declare const CLIENT_ADMIN_PATTERNS: {
|
|
1337
1337
|
fetchAdminClients: string;
|
|
1338
|
-
|
|
1338
|
+
createAdminClients: string;
|
|
1339
|
+
updateAdminClient: string;
|
|
1339
1340
|
fetchAdminClientById: string;
|
|
1340
1341
|
deleteAdminClient: string;
|
|
1341
1342
|
exportAdminClients: string;
|
|
1342
1343
|
fetchClientCount: string;
|
|
1343
1344
|
};
|
|
1344
1345
|
|
|
1346
|
+
declare enum CreateClientHiringModeEnum {
|
|
1347
|
+
REMOTE = "REMOTE",
|
|
1348
|
+
ONSITE = "ONSITE",
|
|
1349
|
+
BOTH = "BOTH"
|
|
1350
|
+
}
|
|
1351
|
+
declare enum CreateClientHiringTypeEnum {
|
|
1352
|
+
PARTTIME = "PARTTIME",
|
|
1353
|
+
FULLTIME = "FULLTIME",
|
|
1354
|
+
BOTH = "BOTH"
|
|
1355
|
+
}
|
|
1356
|
+
declare class CreateClientDto {
|
|
1357
|
+
firstName: string;
|
|
1358
|
+
lastName: string;
|
|
1359
|
+
email: string;
|
|
1360
|
+
password: string;
|
|
1361
|
+
confirmPassword: string;
|
|
1362
|
+
companyName: string;
|
|
1363
|
+
skills: string[];
|
|
1364
|
+
requiredFreelancer: string;
|
|
1365
|
+
kindOfHiring: string;
|
|
1366
|
+
modeOfHire: string;
|
|
1367
|
+
foundUsOn: string;
|
|
1368
|
+
OTHER?: string;
|
|
1369
|
+
foundUsOnDetail?: string;
|
|
1370
|
+
}
|
|
1371
|
+
|
|
1372
|
+
declare class UpdateClientAccountStatusDto {
|
|
1373
|
+
accountStatus: string;
|
|
1374
|
+
}
|
|
1375
|
+
|
|
1376
|
+
declare enum UpdateClientHiringModeEnum {
|
|
1377
|
+
REMOTE = "REMOTE",
|
|
1378
|
+
ONSITE = "ONSITE",
|
|
1379
|
+
BOTH = "BOTH"
|
|
1380
|
+
}
|
|
1381
|
+
declare enum UpdateClientHiringTypeEnum {
|
|
1382
|
+
PARTTIME = "PARTTIME",
|
|
1383
|
+
FULLTIME = "FULLTIME",
|
|
1384
|
+
BOTH = "BOTH"
|
|
1385
|
+
}
|
|
1386
|
+
declare class UpdateClientDto {
|
|
1387
|
+
firstName: string;
|
|
1388
|
+
lastName: string;
|
|
1389
|
+
email: string;
|
|
1390
|
+
password: string;
|
|
1391
|
+
confirmPassword: string;
|
|
1392
|
+
companyName: string;
|
|
1393
|
+
skills: string[];
|
|
1394
|
+
requiredFreelancer: string;
|
|
1395
|
+
kindOfHiring: string;
|
|
1396
|
+
modeOfHire: string;
|
|
1397
|
+
foundUsOn: string;
|
|
1398
|
+
OTHER?: string;
|
|
1399
|
+
foundUsOnDetail?: string;
|
|
1400
|
+
}
|
|
1401
|
+
|
|
1402
|
+
interface IFetchClientsResponse {
|
|
1403
|
+
statusCode: number;
|
|
1404
|
+
status: boolean;
|
|
1405
|
+
message: string;
|
|
1406
|
+
data: any;
|
|
1407
|
+
}
|
|
1408
|
+
interface ICreateClientPayload {
|
|
1409
|
+
firstName: string;
|
|
1410
|
+
lastName: string;
|
|
1411
|
+
email: string;
|
|
1412
|
+
password: string;
|
|
1413
|
+
confirmPassword: string;
|
|
1414
|
+
companyName: string;
|
|
1415
|
+
skills: string[];
|
|
1416
|
+
requiredFreelancer: string;
|
|
1417
|
+
kindOfHiring: string;
|
|
1418
|
+
modeOfHire: string;
|
|
1419
|
+
foundUsOn: string;
|
|
1420
|
+
OTHER?: string;
|
|
1421
|
+
foundUsOnDetail?: string;
|
|
1422
|
+
}
|
|
1423
|
+
interface ICreateClientResponse {
|
|
1424
|
+
statusCode: number;
|
|
1425
|
+
status: boolean;
|
|
1426
|
+
message: string;
|
|
1427
|
+
}
|
|
1428
|
+
interface IUpdateClientPayload {
|
|
1429
|
+
firstName?: string;
|
|
1430
|
+
lastName?: string;
|
|
1431
|
+
email?: string;
|
|
1432
|
+
password?: string;
|
|
1433
|
+
confirmPassword?: string;
|
|
1434
|
+
companyName?: string;
|
|
1435
|
+
skills?: string[];
|
|
1436
|
+
requiredFreelancer?: string;
|
|
1437
|
+
kindOfHiring?: string;
|
|
1438
|
+
modeOfHire?: string;
|
|
1439
|
+
foundUsOn?: string;
|
|
1440
|
+
OTHER?: string;
|
|
1441
|
+
foundUsOnDetail?: string;
|
|
1442
|
+
}
|
|
1443
|
+
interface IUpdateClientResponse {
|
|
1444
|
+
statusCode: number;
|
|
1445
|
+
status: boolean;
|
|
1446
|
+
message: string;
|
|
1447
|
+
}
|
|
1448
|
+
interface IUpdateClientAccountStatusPayload {
|
|
1449
|
+
accountSatus: string;
|
|
1450
|
+
}
|
|
1451
|
+
interface IUpdateClientAccountStatusResponse {
|
|
1452
|
+
statusCode: number;
|
|
1453
|
+
status: boolean;
|
|
1454
|
+
message: string;
|
|
1455
|
+
}
|
|
1456
|
+
interface IDeleteClientResponse {
|
|
1457
|
+
statusCode: number;
|
|
1458
|
+
status: boolean;
|
|
1459
|
+
message: string;
|
|
1460
|
+
}
|
|
1461
|
+
interface IAttachPermissionsToClientResponse {
|
|
1462
|
+
statusCode: number;
|
|
1463
|
+
status: boolean;
|
|
1464
|
+
message: string;
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1345
1467
|
declare const FREELANCER_DECLARATION_PATTERN: {
|
|
1346
1468
|
fetchFreelancerDeclaration: string;
|
|
1347
1469
|
saveFreelancerDeclaration: string;
|
|
@@ -1445,4 +1567,4 @@ declare class Cms extends BaseEntity {
|
|
|
1445
1567
|
isActive: boolean;
|
|
1446
1568
|
}
|
|
1447
1569
|
|
|
1448
|
-
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 };
|
|
1570
|
+
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, CreateClientHiringModeEnum, CreateClientHiringTypeEnum, 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 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, UpdateClientHiringModeEnum, UpdateClientHiringTypeEnum, UpdateCmsDto, UpdateCompanyMemberDto, UpdateCompanyProfileDto, UpdateCompanyRoleDto, UpdateFreelancerProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter, VerifyGuestOtpDto, VerifyGuestOtpPurposeEnum };
|
package/dist/index.d.ts
CHANGED
|
@@ -1335,13 +1335,135 @@ declare const FREELANCER_ADMIN_PATTERNS: {
|
|
|
1335
1335
|
|
|
1336
1336
|
declare const CLIENT_ADMIN_PATTERNS: {
|
|
1337
1337
|
fetchAdminClients: string;
|
|
1338
|
-
|
|
1338
|
+
createAdminClients: string;
|
|
1339
|
+
updateAdminClient: string;
|
|
1339
1340
|
fetchAdminClientById: string;
|
|
1340
1341
|
deleteAdminClient: string;
|
|
1341
1342
|
exportAdminClients: string;
|
|
1342
1343
|
fetchClientCount: string;
|
|
1343
1344
|
};
|
|
1344
1345
|
|
|
1346
|
+
declare enum CreateClientHiringModeEnum {
|
|
1347
|
+
REMOTE = "REMOTE",
|
|
1348
|
+
ONSITE = "ONSITE",
|
|
1349
|
+
BOTH = "BOTH"
|
|
1350
|
+
}
|
|
1351
|
+
declare enum CreateClientHiringTypeEnum {
|
|
1352
|
+
PARTTIME = "PARTTIME",
|
|
1353
|
+
FULLTIME = "FULLTIME",
|
|
1354
|
+
BOTH = "BOTH"
|
|
1355
|
+
}
|
|
1356
|
+
declare class CreateClientDto {
|
|
1357
|
+
firstName: string;
|
|
1358
|
+
lastName: string;
|
|
1359
|
+
email: string;
|
|
1360
|
+
password: string;
|
|
1361
|
+
confirmPassword: string;
|
|
1362
|
+
companyName: string;
|
|
1363
|
+
skills: string[];
|
|
1364
|
+
requiredFreelancer: string;
|
|
1365
|
+
kindOfHiring: string;
|
|
1366
|
+
modeOfHire: string;
|
|
1367
|
+
foundUsOn: string;
|
|
1368
|
+
OTHER?: string;
|
|
1369
|
+
foundUsOnDetail?: string;
|
|
1370
|
+
}
|
|
1371
|
+
|
|
1372
|
+
declare class UpdateClientAccountStatusDto {
|
|
1373
|
+
accountStatus: string;
|
|
1374
|
+
}
|
|
1375
|
+
|
|
1376
|
+
declare enum UpdateClientHiringModeEnum {
|
|
1377
|
+
REMOTE = "REMOTE",
|
|
1378
|
+
ONSITE = "ONSITE",
|
|
1379
|
+
BOTH = "BOTH"
|
|
1380
|
+
}
|
|
1381
|
+
declare enum UpdateClientHiringTypeEnum {
|
|
1382
|
+
PARTTIME = "PARTTIME",
|
|
1383
|
+
FULLTIME = "FULLTIME",
|
|
1384
|
+
BOTH = "BOTH"
|
|
1385
|
+
}
|
|
1386
|
+
declare class UpdateClientDto {
|
|
1387
|
+
firstName: string;
|
|
1388
|
+
lastName: string;
|
|
1389
|
+
email: string;
|
|
1390
|
+
password: string;
|
|
1391
|
+
confirmPassword: string;
|
|
1392
|
+
companyName: string;
|
|
1393
|
+
skills: string[];
|
|
1394
|
+
requiredFreelancer: string;
|
|
1395
|
+
kindOfHiring: string;
|
|
1396
|
+
modeOfHire: string;
|
|
1397
|
+
foundUsOn: string;
|
|
1398
|
+
OTHER?: string;
|
|
1399
|
+
foundUsOnDetail?: string;
|
|
1400
|
+
}
|
|
1401
|
+
|
|
1402
|
+
interface IFetchClientsResponse {
|
|
1403
|
+
statusCode: number;
|
|
1404
|
+
status: boolean;
|
|
1405
|
+
message: string;
|
|
1406
|
+
data: any;
|
|
1407
|
+
}
|
|
1408
|
+
interface ICreateClientPayload {
|
|
1409
|
+
firstName: string;
|
|
1410
|
+
lastName: string;
|
|
1411
|
+
email: string;
|
|
1412
|
+
password: string;
|
|
1413
|
+
confirmPassword: string;
|
|
1414
|
+
companyName: string;
|
|
1415
|
+
skills: string[];
|
|
1416
|
+
requiredFreelancer: string;
|
|
1417
|
+
kindOfHiring: string;
|
|
1418
|
+
modeOfHire: string;
|
|
1419
|
+
foundUsOn: string;
|
|
1420
|
+
OTHER?: string;
|
|
1421
|
+
foundUsOnDetail?: string;
|
|
1422
|
+
}
|
|
1423
|
+
interface ICreateClientResponse {
|
|
1424
|
+
statusCode: number;
|
|
1425
|
+
status: boolean;
|
|
1426
|
+
message: string;
|
|
1427
|
+
}
|
|
1428
|
+
interface IUpdateClientPayload {
|
|
1429
|
+
firstName?: string;
|
|
1430
|
+
lastName?: string;
|
|
1431
|
+
email?: string;
|
|
1432
|
+
password?: string;
|
|
1433
|
+
confirmPassword?: string;
|
|
1434
|
+
companyName?: string;
|
|
1435
|
+
skills?: string[];
|
|
1436
|
+
requiredFreelancer?: string;
|
|
1437
|
+
kindOfHiring?: string;
|
|
1438
|
+
modeOfHire?: string;
|
|
1439
|
+
foundUsOn?: string;
|
|
1440
|
+
OTHER?: string;
|
|
1441
|
+
foundUsOnDetail?: string;
|
|
1442
|
+
}
|
|
1443
|
+
interface IUpdateClientResponse {
|
|
1444
|
+
statusCode: number;
|
|
1445
|
+
status: boolean;
|
|
1446
|
+
message: string;
|
|
1447
|
+
}
|
|
1448
|
+
interface IUpdateClientAccountStatusPayload {
|
|
1449
|
+
accountSatus: string;
|
|
1450
|
+
}
|
|
1451
|
+
interface IUpdateClientAccountStatusResponse {
|
|
1452
|
+
statusCode: number;
|
|
1453
|
+
status: boolean;
|
|
1454
|
+
message: string;
|
|
1455
|
+
}
|
|
1456
|
+
interface IDeleteClientResponse {
|
|
1457
|
+
statusCode: number;
|
|
1458
|
+
status: boolean;
|
|
1459
|
+
message: string;
|
|
1460
|
+
}
|
|
1461
|
+
interface IAttachPermissionsToClientResponse {
|
|
1462
|
+
statusCode: number;
|
|
1463
|
+
status: boolean;
|
|
1464
|
+
message: string;
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1345
1467
|
declare const FREELANCER_DECLARATION_PATTERN: {
|
|
1346
1468
|
fetchFreelancerDeclaration: string;
|
|
1347
1469
|
saveFreelancerDeclaration: string;
|
|
@@ -1445,4 +1567,4 @@ declare class Cms extends BaseEntity {
|
|
|
1445
1567
|
isActive: boolean;
|
|
1446
1568
|
}
|
|
1447
1569
|
|
|
1448
|
-
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 };
|
|
1570
|
+
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, CreateClientHiringModeEnum, CreateClientHiringTypeEnum, 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 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, UpdateClientHiringModeEnum, UpdateClientHiringTypeEnum, UpdateCmsDto, UpdateCompanyMemberDto, UpdateCompanyProfileDto, UpdateCompanyRoleDto, UpdateFreelancerProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter, VerifyGuestOtpDto, VerifyGuestOtpPurposeEnum };
|
package/dist/index.js
CHANGED
|
@@ -53,6 +53,9 @@ __export(index_exports, {
|
|
|
53
53
|
CompanyProfile: () => CompanyProfile,
|
|
54
54
|
CompanyRole: () => CompanyRole,
|
|
55
55
|
CompanyRolePermission: () => CompanyRolePermission,
|
|
56
|
+
CreateClientDto: () => CreateClientDto,
|
|
57
|
+
CreateClientHiringModeEnum: () => CreateClientHiringModeEnum,
|
|
58
|
+
CreateClientHiringTypeEnum: () => CreateClientHiringTypeEnum,
|
|
56
59
|
CreateCmsDto: () => CreateCmsDto,
|
|
57
60
|
CreateCompanyMemberDto: () => CreateCompanyMemberDto,
|
|
58
61
|
CreateCompanyRoleDto: () => CreateCompanyRoleDto,
|
|
@@ -165,6 +168,10 @@ __export(index_exports, {
|
|
|
165
168
|
ToggleCompanyMemberVisibilityDto: () => ToggleCompanyMemberVisibilityDto,
|
|
166
169
|
ToggleCompanyRoleVisibilityDto: () => ToggleCompanyRoleVisibilityDto,
|
|
167
170
|
TypeOfEmploymentEnum: () => TypeOfEmploymentEnum,
|
|
171
|
+
UpdateClientAccountStatusDto: () => UpdateClientAccountStatusDto,
|
|
172
|
+
UpdateClientDto: () => UpdateClientDto,
|
|
173
|
+
UpdateClientHiringModeEnum: () => UpdateClientHiringModeEnum,
|
|
174
|
+
UpdateClientHiringTypeEnum: () => UpdateClientHiringTypeEnum,
|
|
168
175
|
UpdateCmsDto: () => UpdateCmsDto,
|
|
169
176
|
UpdateCompanyMemberDto: () => UpdateCompanyMemberDto,
|
|
170
177
|
UpdateCompanyProfileDto: () => UpdateCompanyProfileDto,
|
|
@@ -3039,13 +3046,165 @@ var FREELANCER_ADMIN_PATTERNS = {
|
|
|
3039
3046
|
// src/modules/client-admin/pattern/pattern.ts
|
|
3040
3047
|
var CLIENT_ADMIN_PATTERNS = {
|
|
3041
3048
|
fetchAdminClients: "fetch.admin.clients",
|
|
3042
|
-
|
|
3049
|
+
createAdminClients: "create.admin.client",
|
|
3050
|
+
updateAdminClient: "update.admin.client",
|
|
3043
3051
|
fetchAdminClientById: "fetch.admin.client_by_id",
|
|
3044
3052
|
deleteAdminClient: "delete.admin.client",
|
|
3045
3053
|
exportAdminClients: "export.admin.clients",
|
|
3046
3054
|
fetchClientCount: "fetch.client.count"
|
|
3047
3055
|
};
|
|
3048
3056
|
|
|
3057
|
+
// src/modules/client-admin/dto/create-client.dto.ts
|
|
3058
|
+
var import_class_validator46 = require("class-validator");
|
|
3059
|
+
var CreateClientHiringModeEnum = /* @__PURE__ */ ((CreateClientHiringModeEnum2) => {
|
|
3060
|
+
CreateClientHiringModeEnum2["REMOTE"] = "REMOTE";
|
|
3061
|
+
CreateClientHiringModeEnum2["ONSITE"] = "ONSITE";
|
|
3062
|
+
CreateClientHiringModeEnum2["BOTH"] = "BOTH";
|
|
3063
|
+
return CreateClientHiringModeEnum2;
|
|
3064
|
+
})(CreateClientHiringModeEnum || {});
|
|
3065
|
+
var CreateClientHiringTypeEnum = /* @__PURE__ */ ((CreateClientHiringTypeEnum2) => {
|
|
3066
|
+
CreateClientHiringTypeEnum2["PARTTIME"] = "PARTTIME";
|
|
3067
|
+
CreateClientHiringTypeEnum2["FULLTIME"] = "FULLTIME";
|
|
3068
|
+
CreateClientHiringTypeEnum2["BOTH"] = "BOTH";
|
|
3069
|
+
return CreateClientHiringTypeEnum2;
|
|
3070
|
+
})(CreateClientHiringTypeEnum || {});
|
|
3071
|
+
var CreateClientDto = class {
|
|
3072
|
+
};
|
|
3073
|
+
__decorateClass([
|
|
3074
|
+
(0, import_class_validator46.IsNotEmpty)({ message: "Please enter first name." }),
|
|
3075
|
+
(0, import_class_validator46.IsString)()
|
|
3076
|
+
], CreateClientDto.prototype, "firstName", 2);
|
|
3077
|
+
__decorateClass([
|
|
3078
|
+
(0, import_class_validator46.IsNotEmpty)({ message: "Please enter last name." }),
|
|
3079
|
+
(0, import_class_validator46.IsString)()
|
|
3080
|
+
], CreateClientDto.prototype, "lastName", 2);
|
|
3081
|
+
__decorateClass([
|
|
3082
|
+
(0, import_class_validator46.IsNotEmpty)({ message: "Please enter email." }),
|
|
3083
|
+
(0, import_class_validator46.IsEmail)()
|
|
3084
|
+
], CreateClientDto.prototype, "email", 2);
|
|
3085
|
+
__decorateClass([
|
|
3086
|
+
(0, import_class_validator46.IsNotEmpty)({ message: "Please enter password." }),
|
|
3087
|
+
(0, import_class_validator46.MinLength)(6),
|
|
3088
|
+
(0, import_class_validator46.MaxLength)(32),
|
|
3089
|
+
(0, import_class_validator46.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
3090
|
+
message: "Password must include letters, numbers and symbols."
|
|
3091
|
+
})
|
|
3092
|
+
], CreateClientDto.prototype, "password", 2);
|
|
3093
|
+
__decorateClass([
|
|
3094
|
+
(0, import_class_validator46.IsNotEmpty)({ message: "Please enter confirm password." }),
|
|
3095
|
+
Match("confirmPassword", { message: "Passwords do not match" })
|
|
3096
|
+
], CreateClientDto.prototype, "confirmPassword", 2);
|
|
3097
|
+
__decorateClass([
|
|
3098
|
+
(0, import_class_validator46.IsNotEmpty)({ message: "Please enter company name." }),
|
|
3099
|
+
(0, import_class_validator46.IsString)()
|
|
3100
|
+
], CreateClientDto.prototype, "companyName", 2);
|
|
3101
|
+
__decorateClass([
|
|
3102
|
+
(0, import_class_validator46.IsArray)({ message: "Skills should be an array." }),
|
|
3103
|
+
(0, import_class_validator46.IsNotEmpty)({ message: "Please enter skills." })
|
|
3104
|
+
], CreateClientDto.prototype, "skills", 2);
|
|
3105
|
+
__decorateClass([
|
|
3106
|
+
(0, import_class_validator46.IsNotEmpty)({ message: "Please specify required freelancer count." }),
|
|
3107
|
+
(0, import_class_validator46.IsString)()
|
|
3108
|
+
], CreateClientDto.prototype, "requiredFreelancer", 2);
|
|
3109
|
+
__decorateClass([
|
|
3110
|
+
(0, import_class_validator46.IsNotEmpty)({ message: "Please specify the kind of hiring." }),
|
|
3111
|
+
(0, import_class_validator46.IsEnum)(CreateClientHiringTypeEnum)
|
|
3112
|
+
], CreateClientDto.prototype, "kindOfHiring", 2);
|
|
3113
|
+
__decorateClass([
|
|
3114
|
+
(0, import_class_validator46.IsNotEmpty)({ message: "Please specify the mode of hire." }),
|
|
3115
|
+
(0, import_class_validator46.IsEnum)(CreateClientHiringModeEnum)
|
|
3116
|
+
], CreateClientDto.prototype, "modeOfHire", 2);
|
|
3117
|
+
__decorateClass([
|
|
3118
|
+
(0, import_class_validator46.IsNotEmpty)({ message: "Please let us know how you found us." }),
|
|
3119
|
+
(0, import_class_validator46.IsString)()
|
|
3120
|
+
], CreateClientDto.prototype, "foundUsOn", 2);
|
|
3121
|
+
__decorateClass([
|
|
3122
|
+
(0, import_class_validator46.IsOptional)(),
|
|
3123
|
+
(0, import_class_validator46.IsString)()
|
|
3124
|
+
], CreateClientDto.prototype, "OTHER", 2);
|
|
3125
|
+
__decorateClass([
|
|
3126
|
+
(0, import_class_validator46.IsOptional)(),
|
|
3127
|
+
(0, import_class_validator46.IsString)()
|
|
3128
|
+
], CreateClientDto.prototype, "foundUsOnDetail", 2);
|
|
3129
|
+
|
|
3130
|
+
// src/modules/client-admin/dto/update-client-status.dto.ts
|
|
3131
|
+
var import_class_validator47 = require("class-validator");
|
|
3132
|
+
var UpdateClientAccountStatusDto = class {
|
|
3133
|
+
};
|
|
3134
|
+
__decorateClass([
|
|
3135
|
+
(0, import_class_validator47.IsNotEmpty)({ message: "Please enter account status." }),
|
|
3136
|
+
(0, import_class_validator47.IsString)()
|
|
3137
|
+
], UpdateClientAccountStatusDto.prototype, "accountStatus", 2);
|
|
3138
|
+
|
|
3139
|
+
// src/modules/client-admin/dto/update-client.dto.ts
|
|
3140
|
+
var import_class_validator48 = require("class-validator");
|
|
3141
|
+
var UpdateClientHiringModeEnum = /* @__PURE__ */ ((UpdateClientHiringModeEnum2) => {
|
|
3142
|
+
UpdateClientHiringModeEnum2["REMOTE"] = "REMOTE";
|
|
3143
|
+
UpdateClientHiringModeEnum2["ONSITE"] = "ONSITE";
|
|
3144
|
+
UpdateClientHiringModeEnum2["BOTH"] = "BOTH";
|
|
3145
|
+
return UpdateClientHiringModeEnum2;
|
|
3146
|
+
})(UpdateClientHiringModeEnum || {});
|
|
3147
|
+
var UpdateClientHiringTypeEnum = /* @__PURE__ */ ((UpdateClientHiringTypeEnum2) => {
|
|
3148
|
+
UpdateClientHiringTypeEnum2["PARTTIME"] = "PARTTIME";
|
|
3149
|
+
UpdateClientHiringTypeEnum2["FULLTIME"] = "FULLTIME";
|
|
3150
|
+
UpdateClientHiringTypeEnum2["BOTH"] = "BOTH";
|
|
3151
|
+
return UpdateClientHiringTypeEnum2;
|
|
3152
|
+
})(UpdateClientHiringTypeEnum || {});
|
|
3153
|
+
var UpdateClientDto = class {
|
|
3154
|
+
};
|
|
3155
|
+
__decorateClass([
|
|
3156
|
+
(0, import_class_validator48.IsNotEmpty)({ message: "Please enter first name." }),
|
|
3157
|
+
(0, import_class_validator48.IsString)()
|
|
3158
|
+
], UpdateClientDto.prototype, "firstName", 2);
|
|
3159
|
+
__decorateClass([
|
|
3160
|
+
(0, import_class_validator48.IsNotEmpty)({ message: "Please enter last name." }),
|
|
3161
|
+
(0, import_class_validator48.IsString)()
|
|
3162
|
+
], UpdateClientDto.prototype, "lastName", 2);
|
|
3163
|
+
__decorateClass([
|
|
3164
|
+
(0, import_class_validator48.IsNotEmpty)({ message: "Please enter email." }),
|
|
3165
|
+
(0, import_class_validator48.IsEmail)()
|
|
3166
|
+
], UpdateClientDto.prototype, "email", 2);
|
|
3167
|
+
__decorateClass([
|
|
3168
|
+
(0, import_class_validator48.IsNotEmpty)({ message: "Please enter the password." }),
|
|
3169
|
+
(0, import_class_validator48.MinLength)(6)
|
|
3170
|
+
], UpdateClientDto.prototype, "password", 2);
|
|
3171
|
+
__decorateClass([
|
|
3172
|
+
(0, import_class_validator48.IsNotEmpty)({ message: "Please confirm your password." }),
|
|
3173
|
+
(0, import_class_validator48.MinLength)(6)
|
|
3174
|
+
], UpdateClientDto.prototype, "confirmPassword", 2);
|
|
3175
|
+
__decorateClass([
|
|
3176
|
+
(0, import_class_validator48.IsNotEmpty)({ message: "Please enter company name." }),
|
|
3177
|
+
(0, import_class_validator48.IsString)()
|
|
3178
|
+
], UpdateClientDto.prototype, "companyName", 2);
|
|
3179
|
+
__decorateClass([
|
|
3180
|
+
(0, import_class_validator48.IsArray)({ message: "Skills should be an array." }),
|
|
3181
|
+
(0, import_class_validator48.IsNotEmpty)({ message: "Please enter skills." })
|
|
3182
|
+
], UpdateClientDto.prototype, "skills", 2);
|
|
3183
|
+
__decorateClass([
|
|
3184
|
+
(0, import_class_validator48.IsNotEmpty)({ message: "Please specify required freelancer count." }),
|
|
3185
|
+
(0, import_class_validator48.IsString)()
|
|
3186
|
+
], UpdateClientDto.prototype, "requiredFreelancer", 2);
|
|
3187
|
+
__decorateClass([
|
|
3188
|
+
(0, import_class_validator48.IsNotEmpty)({ message: "Please specify the kind of hiring." }),
|
|
3189
|
+
(0, import_class_validator48.IsEnum)(UpdateClientHiringTypeEnum)
|
|
3190
|
+
], UpdateClientDto.prototype, "kindOfHiring", 2);
|
|
3191
|
+
__decorateClass([
|
|
3192
|
+
(0, import_class_validator48.IsNotEmpty)({ message: "Please specify the mode of hire." }),
|
|
3193
|
+
(0, import_class_validator48.IsEnum)(UpdateClientHiringModeEnum)
|
|
3194
|
+
], UpdateClientDto.prototype, "modeOfHire", 2);
|
|
3195
|
+
__decorateClass([
|
|
3196
|
+
(0, import_class_validator48.IsNotEmpty)({ message: "Please let us know how you found us." }),
|
|
3197
|
+
(0, import_class_validator48.IsString)()
|
|
3198
|
+
], UpdateClientDto.prototype, "foundUsOn", 2);
|
|
3199
|
+
__decorateClass([
|
|
3200
|
+
(0, import_class_validator48.IsOptional)(),
|
|
3201
|
+
(0, import_class_validator48.IsString)()
|
|
3202
|
+
], UpdateClientDto.prototype, "OTHER", 2);
|
|
3203
|
+
__decorateClass([
|
|
3204
|
+
(0, import_class_validator48.IsOptional)(),
|
|
3205
|
+
(0, import_class_validator48.IsString)()
|
|
3206
|
+
], UpdateClientDto.prototype, "foundUsOnDetail", 2);
|
|
3207
|
+
|
|
3049
3208
|
// src/modules/user/freelancer-declaration/pattern/pattern.ts
|
|
3050
3209
|
var FREELANCER_DECLARATION_PATTERN = {
|
|
3051
3210
|
fetchFreelancerDeclaration: "fetch.freelancer.declaration",
|
|
@@ -3053,7 +3212,7 @@ var FREELANCER_DECLARATION_PATTERN = {
|
|
|
3053
3212
|
};
|
|
3054
3213
|
|
|
3055
3214
|
// src/modules/user/freelancer-declaration/dto/freelancer-declaration.dto.ts
|
|
3056
|
-
var
|
|
3215
|
+
var import_class_validator49 = require("class-validator");
|
|
3057
3216
|
var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
3058
3217
|
DocumentTypeEnum2["AADHAAR"] = "AADHAAR_CARD";
|
|
3059
3218
|
DocumentTypeEnum2["PASSPORT"] = "PASSPORT";
|
|
@@ -3064,16 +3223,16 @@ var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
|
3064
3223
|
var FreelancerDeclarationDto = class {
|
|
3065
3224
|
};
|
|
3066
3225
|
__decorateClass([
|
|
3067
|
-
(0,
|
|
3068
|
-
(0,
|
|
3226
|
+
(0, import_class_validator49.IsOptional)(),
|
|
3227
|
+
(0, import_class_validator49.IsString)({ message: "UUID must be a string" })
|
|
3069
3228
|
], FreelancerDeclarationDto.prototype, "uuid", 2);
|
|
3070
3229
|
__decorateClass([
|
|
3071
|
-
(0,
|
|
3230
|
+
(0, import_class_validator49.IsEnum)(DocumentTypeEnum, { message: "Document type must be one of AADHAAR_CARD, PASSPORT, DRIVING_LICENSE, PAN_CARD" })
|
|
3072
3231
|
], FreelancerDeclarationDto.prototype, "documentType", 2);
|
|
3073
3232
|
__decorateClass([
|
|
3074
|
-
(0,
|
|
3075
|
-
(0,
|
|
3076
|
-
(0,
|
|
3233
|
+
(0, import_class_validator49.IsNotEmpty)({ message: "Please accept the declaration " }),
|
|
3234
|
+
(0, import_class_validator49.IsString)(),
|
|
3235
|
+
(0, import_class_validator49.IsIn)([
|
|
3077
3236
|
"true"
|
|
3078
3237
|
])
|
|
3079
3238
|
], FreelancerDeclarationDto.prototype, "declarationAccepted", 2);
|
|
@@ -3088,36 +3247,36 @@ var CMS_PATTERNS = {
|
|
|
3088
3247
|
};
|
|
3089
3248
|
|
|
3090
3249
|
// src/modules/cms/dto/create-cms.dto.ts
|
|
3091
|
-
var
|
|
3250
|
+
var import_class_validator50 = require("class-validator");
|
|
3092
3251
|
var CreateCmsDto = class {
|
|
3093
3252
|
};
|
|
3094
3253
|
__decorateClass([
|
|
3095
|
-
(0,
|
|
3254
|
+
(0, import_class_validator50.IsNotEmpty)({ message: "Please enter name." })
|
|
3096
3255
|
], CreateCmsDto.prototype, "title", 2);
|
|
3097
3256
|
__decorateClass([
|
|
3098
|
-
(0,
|
|
3257
|
+
(0, import_class_validator50.IsOptional)()
|
|
3099
3258
|
], CreateCmsDto.prototype, "content", 2);
|
|
3100
3259
|
__decorateClass([
|
|
3101
|
-
(0,
|
|
3102
|
-
(0,
|
|
3260
|
+
(0, import_class_validator50.IsOptional)(),
|
|
3261
|
+
(0, import_class_validator50.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
3103
3262
|
], CreateCmsDto.prototype, "isActive", 2);
|
|
3104
3263
|
|
|
3105
3264
|
// src/modules/cms/dto/update-cms.dto.ts
|
|
3106
|
-
var
|
|
3265
|
+
var import_class_validator51 = require("class-validator");
|
|
3107
3266
|
var UpdateCmsDto = class {
|
|
3108
3267
|
};
|
|
3109
3268
|
__decorateClass([
|
|
3110
|
-
(0,
|
|
3269
|
+
(0, import_class_validator51.IsOptional)()
|
|
3111
3270
|
], UpdateCmsDto.prototype, "uuid", 2);
|
|
3112
3271
|
__decorateClass([
|
|
3113
|
-
(0,
|
|
3272
|
+
(0, import_class_validator51.IsNotEmpty)({ message: "Please enter name." })
|
|
3114
3273
|
], UpdateCmsDto.prototype, "title", 2);
|
|
3115
3274
|
__decorateClass([
|
|
3116
|
-
(0,
|
|
3275
|
+
(0, import_class_validator51.IsOptional)()
|
|
3117
3276
|
], UpdateCmsDto.prototype, "content", 2);
|
|
3118
3277
|
__decorateClass([
|
|
3119
|
-
(0,
|
|
3120
|
-
(0,
|
|
3278
|
+
(0, import_class_validator51.IsOptional)(),
|
|
3279
|
+
(0, import_class_validator51.IsBoolean)({ message: "Is active must be a boolean value" })
|
|
3121
3280
|
], UpdateCmsDto.prototype, "isActive", 2);
|
|
3122
3281
|
|
|
3123
3282
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
@@ -3482,6 +3641,9 @@ Cms = __decorateClass([
|
|
|
3482
3641
|
CompanyProfile,
|
|
3483
3642
|
CompanyRole,
|
|
3484
3643
|
CompanyRolePermission,
|
|
3644
|
+
CreateClientDto,
|
|
3645
|
+
CreateClientHiringModeEnum,
|
|
3646
|
+
CreateClientHiringTypeEnum,
|
|
3485
3647
|
CreateCmsDto,
|
|
3486
3648
|
CreateCompanyMemberDto,
|
|
3487
3649
|
CreateCompanyRoleDto,
|
|
@@ -3594,6 +3756,10 @@ Cms = __decorateClass([
|
|
|
3594
3756
|
ToggleCompanyMemberVisibilityDto,
|
|
3595
3757
|
ToggleCompanyRoleVisibilityDto,
|
|
3596
3758
|
TypeOfEmploymentEnum,
|
|
3759
|
+
UpdateClientAccountStatusDto,
|
|
3760
|
+
UpdateClientDto,
|
|
3761
|
+
UpdateClientHiringModeEnum,
|
|
3762
|
+
UpdateClientHiringTypeEnum,
|
|
3597
3763
|
UpdateCmsDto,
|
|
3598
3764
|
UpdateCompanyMemberDto,
|
|
3599
3765
|
UpdateCompanyProfileDto,
|
package/dist/index.mjs
CHANGED
|
@@ -3122,13 +3122,183 @@ 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
|
-
|
|
3125
|
+
createAdminClients: "create.admin.client",
|
|
3126
|
+
updateAdminClient: "update.admin.client",
|
|
3126
3127
|
fetchAdminClientById: "fetch.admin.client_by_id",
|
|
3127
3128
|
deleteAdminClient: "delete.admin.client",
|
|
3128
3129
|
exportAdminClients: "export.admin.clients",
|
|
3129
3130
|
fetchClientCount: "fetch.client.count"
|
|
3130
3131
|
};
|
|
3131
3132
|
|
|
3133
|
+
// src/modules/client-admin/dto/create-client.dto.ts
|
|
3134
|
+
import {
|
|
3135
|
+
IsNotEmpty as IsNotEmpty38,
|
|
3136
|
+
IsEmail as IsEmail11,
|
|
3137
|
+
IsOptional as IsOptional18,
|
|
3138
|
+
IsString as IsString26,
|
|
3139
|
+
IsArray as IsArray9,
|
|
3140
|
+
MinLength as MinLength12,
|
|
3141
|
+
MaxLength as MaxLength14,
|
|
3142
|
+
IsEnum as IsEnum13,
|
|
3143
|
+
Matches as Matches8
|
|
3144
|
+
} from "class-validator";
|
|
3145
|
+
var CreateClientHiringModeEnum = /* @__PURE__ */ ((CreateClientHiringModeEnum2) => {
|
|
3146
|
+
CreateClientHiringModeEnum2["REMOTE"] = "REMOTE";
|
|
3147
|
+
CreateClientHiringModeEnum2["ONSITE"] = "ONSITE";
|
|
3148
|
+
CreateClientHiringModeEnum2["BOTH"] = "BOTH";
|
|
3149
|
+
return CreateClientHiringModeEnum2;
|
|
3150
|
+
})(CreateClientHiringModeEnum || {});
|
|
3151
|
+
var CreateClientHiringTypeEnum = /* @__PURE__ */ ((CreateClientHiringTypeEnum2) => {
|
|
3152
|
+
CreateClientHiringTypeEnum2["PARTTIME"] = "PARTTIME";
|
|
3153
|
+
CreateClientHiringTypeEnum2["FULLTIME"] = "FULLTIME";
|
|
3154
|
+
CreateClientHiringTypeEnum2["BOTH"] = "BOTH";
|
|
3155
|
+
return CreateClientHiringTypeEnum2;
|
|
3156
|
+
})(CreateClientHiringTypeEnum || {});
|
|
3157
|
+
var CreateClientDto = class {
|
|
3158
|
+
};
|
|
3159
|
+
__decorateClass([
|
|
3160
|
+
IsNotEmpty38({ message: "Please enter first name." }),
|
|
3161
|
+
IsString26()
|
|
3162
|
+
], CreateClientDto.prototype, "firstName", 2);
|
|
3163
|
+
__decorateClass([
|
|
3164
|
+
IsNotEmpty38({ message: "Please enter last name." }),
|
|
3165
|
+
IsString26()
|
|
3166
|
+
], CreateClientDto.prototype, "lastName", 2);
|
|
3167
|
+
__decorateClass([
|
|
3168
|
+
IsNotEmpty38({ message: "Please enter email." }),
|
|
3169
|
+
IsEmail11()
|
|
3170
|
+
], CreateClientDto.prototype, "email", 2);
|
|
3171
|
+
__decorateClass([
|
|
3172
|
+
IsNotEmpty38({ message: "Please enter password." }),
|
|
3173
|
+
MinLength12(6),
|
|
3174
|
+
MaxLength14(32),
|
|
3175
|
+
Matches8(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
3176
|
+
message: "Password must include letters, numbers and symbols."
|
|
3177
|
+
})
|
|
3178
|
+
], CreateClientDto.prototype, "password", 2);
|
|
3179
|
+
__decorateClass([
|
|
3180
|
+
IsNotEmpty38({ message: "Please enter confirm password." }),
|
|
3181
|
+
Match("confirmPassword", { message: "Passwords do not match" })
|
|
3182
|
+
], CreateClientDto.prototype, "confirmPassword", 2);
|
|
3183
|
+
__decorateClass([
|
|
3184
|
+
IsNotEmpty38({ message: "Please enter company name." }),
|
|
3185
|
+
IsString26()
|
|
3186
|
+
], CreateClientDto.prototype, "companyName", 2);
|
|
3187
|
+
__decorateClass([
|
|
3188
|
+
IsArray9({ message: "Skills should be an array." }),
|
|
3189
|
+
IsNotEmpty38({ message: "Please enter skills." })
|
|
3190
|
+
], CreateClientDto.prototype, "skills", 2);
|
|
3191
|
+
__decorateClass([
|
|
3192
|
+
IsNotEmpty38({ message: "Please specify required freelancer count." }),
|
|
3193
|
+
IsString26()
|
|
3194
|
+
], CreateClientDto.prototype, "requiredFreelancer", 2);
|
|
3195
|
+
__decorateClass([
|
|
3196
|
+
IsNotEmpty38({ message: "Please specify the kind of hiring." }),
|
|
3197
|
+
IsEnum13(CreateClientHiringTypeEnum)
|
|
3198
|
+
], CreateClientDto.prototype, "kindOfHiring", 2);
|
|
3199
|
+
__decorateClass([
|
|
3200
|
+
IsNotEmpty38({ message: "Please specify the mode of hire." }),
|
|
3201
|
+
IsEnum13(CreateClientHiringModeEnum)
|
|
3202
|
+
], CreateClientDto.prototype, "modeOfHire", 2);
|
|
3203
|
+
__decorateClass([
|
|
3204
|
+
IsNotEmpty38({ message: "Please let us know how you found us." }),
|
|
3205
|
+
IsString26()
|
|
3206
|
+
], CreateClientDto.prototype, "foundUsOn", 2);
|
|
3207
|
+
__decorateClass([
|
|
3208
|
+
IsOptional18(),
|
|
3209
|
+
IsString26()
|
|
3210
|
+
], CreateClientDto.prototype, "OTHER", 2);
|
|
3211
|
+
__decorateClass([
|
|
3212
|
+
IsOptional18(),
|
|
3213
|
+
IsString26()
|
|
3214
|
+
], CreateClientDto.prototype, "foundUsOnDetail", 2);
|
|
3215
|
+
|
|
3216
|
+
// src/modules/client-admin/dto/update-client-status.dto.ts
|
|
3217
|
+
import { IsString as IsString27, IsNotEmpty as IsNotEmpty39 } from "class-validator";
|
|
3218
|
+
var UpdateClientAccountStatusDto = class {
|
|
3219
|
+
};
|
|
3220
|
+
__decorateClass([
|
|
3221
|
+
IsNotEmpty39({ message: "Please enter account status." }),
|
|
3222
|
+
IsString27()
|
|
3223
|
+
], UpdateClientAccountStatusDto.prototype, "accountStatus", 2);
|
|
3224
|
+
|
|
3225
|
+
// src/modules/client-admin/dto/update-client.dto.ts
|
|
3226
|
+
import {
|
|
3227
|
+
IsNotEmpty as IsNotEmpty40,
|
|
3228
|
+
IsEmail as IsEmail12,
|
|
3229
|
+
IsOptional as IsOptional19,
|
|
3230
|
+
IsString as IsString28,
|
|
3231
|
+
IsArray as IsArray10,
|
|
3232
|
+
MinLength as MinLength13,
|
|
3233
|
+
IsEnum as IsEnum14
|
|
3234
|
+
} from "class-validator";
|
|
3235
|
+
var UpdateClientHiringModeEnum = /* @__PURE__ */ ((UpdateClientHiringModeEnum2) => {
|
|
3236
|
+
UpdateClientHiringModeEnum2["REMOTE"] = "REMOTE";
|
|
3237
|
+
UpdateClientHiringModeEnum2["ONSITE"] = "ONSITE";
|
|
3238
|
+
UpdateClientHiringModeEnum2["BOTH"] = "BOTH";
|
|
3239
|
+
return UpdateClientHiringModeEnum2;
|
|
3240
|
+
})(UpdateClientHiringModeEnum || {});
|
|
3241
|
+
var UpdateClientHiringTypeEnum = /* @__PURE__ */ ((UpdateClientHiringTypeEnum2) => {
|
|
3242
|
+
UpdateClientHiringTypeEnum2["PARTTIME"] = "PARTTIME";
|
|
3243
|
+
UpdateClientHiringTypeEnum2["FULLTIME"] = "FULLTIME";
|
|
3244
|
+
UpdateClientHiringTypeEnum2["BOTH"] = "BOTH";
|
|
3245
|
+
return UpdateClientHiringTypeEnum2;
|
|
3246
|
+
})(UpdateClientHiringTypeEnum || {});
|
|
3247
|
+
var UpdateClientDto = class {
|
|
3248
|
+
};
|
|
3249
|
+
__decorateClass([
|
|
3250
|
+
IsNotEmpty40({ message: "Please enter first name." }),
|
|
3251
|
+
IsString28()
|
|
3252
|
+
], UpdateClientDto.prototype, "firstName", 2);
|
|
3253
|
+
__decorateClass([
|
|
3254
|
+
IsNotEmpty40({ message: "Please enter last name." }),
|
|
3255
|
+
IsString28()
|
|
3256
|
+
], UpdateClientDto.prototype, "lastName", 2);
|
|
3257
|
+
__decorateClass([
|
|
3258
|
+
IsNotEmpty40({ message: "Please enter email." }),
|
|
3259
|
+
IsEmail12()
|
|
3260
|
+
], UpdateClientDto.prototype, "email", 2);
|
|
3261
|
+
__decorateClass([
|
|
3262
|
+
IsNotEmpty40({ message: "Please enter the password." }),
|
|
3263
|
+
MinLength13(6)
|
|
3264
|
+
], UpdateClientDto.prototype, "password", 2);
|
|
3265
|
+
__decorateClass([
|
|
3266
|
+
IsNotEmpty40({ message: "Please confirm your password." }),
|
|
3267
|
+
MinLength13(6)
|
|
3268
|
+
], UpdateClientDto.prototype, "confirmPassword", 2);
|
|
3269
|
+
__decorateClass([
|
|
3270
|
+
IsNotEmpty40({ message: "Please enter company name." }),
|
|
3271
|
+
IsString28()
|
|
3272
|
+
], UpdateClientDto.prototype, "companyName", 2);
|
|
3273
|
+
__decorateClass([
|
|
3274
|
+
IsArray10({ message: "Skills should be an array." }),
|
|
3275
|
+
IsNotEmpty40({ message: "Please enter skills." })
|
|
3276
|
+
], UpdateClientDto.prototype, "skills", 2);
|
|
3277
|
+
__decorateClass([
|
|
3278
|
+
IsNotEmpty40({ message: "Please specify required freelancer count." }),
|
|
3279
|
+
IsString28()
|
|
3280
|
+
], UpdateClientDto.prototype, "requiredFreelancer", 2);
|
|
3281
|
+
__decorateClass([
|
|
3282
|
+
IsNotEmpty40({ message: "Please specify the kind of hiring." }),
|
|
3283
|
+
IsEnum14(UpdateClientHiringTypeEnum)
|
|
3284
|
+
], UpdateClientDto.prototype, "kindOfHiring", 2);
|
|
3285
|
+
__decorateClass([
|
|
3286
|
+
IsNotEmpty40({ message: "Please specify the mode of hire." }),
|
|
3287
|
+
IsEnum14(UpdateClientHiringModeEnum)
|
|
3288
|
+
], UpdateClientDto.prototype, "modeOfHire", 2);
|
|
3289
|
+
__decorateClass([
|
|
3290
|
+
IsNotEmpty40({ message: "Please let us know how you found us." }),
|
|
3291
|
+
IsString28()
|
|
3292
|
+
], UpdateClientDto.prototype, "foundUsOn", 2);
|
|
3293
|
+
__decorateClass([
|
|
3294
|
+
IsOptional19(),
|
|
3295
|
+
IsString28()
|
|
3296
|
+
], UpdateClientDto.prototype, "OTHER", 2);
|
|
3297
|
+
__decorateClass([
|
|
3298
|
+
IsOptional19(),
|
|
3299
|
+
IsString28()
|
|
3300
|
+
], UpdateClientDto.prototype, "foundUsOnDetail", 2);
|
|
3301
|
+
|
|
3132
3302
|
// src/modules/user/freelancer-declaration/pattern/pattern.ts
|
|
3133
3303
|
var FREELANCER_DECLARATION_PATTERN = {
|
|
3134
3304
|
fetchFreelancerDeclaration: "fetch.freelancer.declaration",
|
|
@@ -3136,7 +3306,7 @@ var FREELANCER_DECLARATION_PATTERN = {
|
|
|
3136
3306
|
};
|
|
3137
3307
|
|
|
3138
3308
|
// src/modules/user/freelancer-declaration/dto/freelancer-declaration.dto.ts
|
|
3139
|
-
import { IsOptional as
|
|
3309
|
+
import { IsOptional as IsOptional20, IsEnum as IsEnum15, IsString as IsString29, IsNotEmpty as IsNotEmpty41, IsIn as IsIn3 } from "class-validator";
|
|
3140
3310
|
var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
3141
3311
|
DocumentTypeEnum2["AADHAAR"] = "AADHAAR_CARD";
|
|
3142
3312
|
DocumentTypeEnum2["PASSPORT"] = "PASSPORT";
|
|
@@ -3147,15 +3317,15 @@ var DocumentTypeEnum = /* @__PURE__ */ ((DocumentTypeEnum2) => {
|
|
|
3147
3317
|
var FreelancerDeclarationDto = class {
|
|
3148
3318
|
};
|
|
3149
3319
|
__decorateClass([
|
|
3150
|
-
|
|
3151
|
-
|
|
3320
|
+
IsOptional20(),
|
|
3321
|
+
IsString29({ message: "UUID must be a string" })
|
|
3152
3322
|
], FreelancerDeclarationDto.prototype, "uuid", 2);
|
|
3153
3323
|
__decorateClass([
|
|
3154
|
-
|
|
3324
|
+
IsEnum15(DocumentTypeEnum, { message: "Document type must be one of AADHAAR_CARD, PASSPORT, DRIVING_LICENSE, PAN_CARD" })
|
|
3155
3325
|
], FreelancerDeclarationDto.prototype, "documentType", 2);
|
|
3156
3326
|
__decorateClass([
|
|
3157
|
-
|
|
3158
|
-
|
|
3327
|
+
IsNotEmpty41({ message: "Please accept the declaration " }),
|
|
3328
|
+
IsString29(),
|
|
3159
3329
|
IsIn3([
|
|
3160
3330
|
"true"
|
|
3161
3331
|
])
|
|
@@ -3171,35 +3341,35 @@ var CMS_PATTERNS = {
|
|
|
3171
3341
|
};
|
|
3172
3342
|
|
|
3173
3343
|
// src/modules/cms/dto/create-cms.dto.ts
|
|
3174
|
-
import { IsBoolean as IsBoolean12, IsNotEmpty as
|
|
3344
|
+
import { IsBoolean as IsBoolean12, IsNotEmpty as IsNotEmpty42, IsOptional as IsOptional21 } from "class-validator";
|
|
3175
3345
|
var CreateCmsDto = class {
|
|
3176
3346
|
};
|
|
3177
3347
|
__decorateClass([
|
|
3178
|
-
|
|
3348
|
+
IsNotEmpty42({ message: "Please enter name." })
|
|
3179
3349
|
], CreateCmsDto.prototype, "title", 2);
|
|
3180
3350
|
__decorateClass([
|
|
3181
|
-
|
|
3351
|
+
IsOptional21()
|
|
3182
3352
|
], CreateCmsDto.prototype, "content", 2);
|
|
3183
3353
|
__decorateClass([
|
|
3184
|
-
|
|
3354
|
+
IsOptional21(),
|
|
3185
3355
|
IsBoolean12({ message: "Is active must be a boolean value" })
|
|
3186
3356
|
], CreateCmsDto.prototype, "isActive", 2);
|
|
3187
3357
|
|
|
3188
3358
|
// src/modules/cms/dto/update-cms.dto.ts
|
|
3189
|
-
import { IsBoolean as IsBoolean13, IsNotEmpty as
|
|
3359
|
+
import { IsBoolean as IsBoolean13, IsNotEmpty as IsNotEmpty43, IsOptional as IsOptional22 } from "class-validator";
|
|
3190
3360
|
var UpdateCmsDto = class {
|
|
3191
3361
|
};
|
|
3192
3362
|
__decorateClass([
|
|
3193
|
-
|
|
3363
|
+
IsOptional22()
|
|
3194
3364
|
], UpdateCmsDto.prototype, "uuid", 2);
|
|
3195
3365
|
__decorateClass([
|
|
3196
|
-
|
|
3366
|
+
IsNotEmpty43({ message: "Please enter name." })
|
|
3197
3367
|
], UpdateCmsDto.prototype, "title", 2);
|
|
3198
3368
|
__decorateClass([
|
|
3199
|
-
|
|
3369
|
+
IsOptional22()
|
|
3200
3370
|
], UpdateCmsDto.prototype, "content", 2);
|
|
3201
3371
|
__decorateClass([
|
|
3202
|
-
|
|
3372
|
+
IsOptional22(),
|
|
3203
3373
|
IsBoolean13({ message: "Is active must be a boolean value" })
|
|
3204
3374
|
], UpdateCmsDto.prototype, "isActive", 2);
|
|
3205
3375
|
|
|
@@ -3564,6 +3734,9 @@ export {
|
|
|
3564
3734
|
CompanyProfile,
|
|
3565
3735
|
CompanyRole,
|
|
3566
3736
|
CompanyRolePermission,
|
|
3737
|
+
CreateClientDto,
|
|
3738
|
+
CreateClientHiringModeEnum,
|
|
3739
|
+
CreateClientHiringTypeEnum,
|
|
3567
3740
|
CreateCmsDto,
|
|
3568
3741
|
CreateCompanyMemberDto,
|
|
3569
3742
|
CreateCompanyRoleDto,
|
|
@@ -3676,6 +3849,10 @@ export {
|
|
|
3676
3849
|
ToggleCompanyMemberVisibilityDto,
|
|
3677
3850
|
ToggleCompanyRoleVisibilityDto,
|
|
3678
3851
|
TypeOfEmploymentEnum,
|
|
3852
|
+
UpdateClientAccountStatusDto,
|
|
3853
|
+
UpdateClientDto,
|
|
3854
|
+
UpdateClientHiringModeEnum,
|
|
3855
|
+
UpdateClientHiringTypeEnum,
|
|
3679
3856
|
UpdateCmsDto,
|
|
3680
3857
|
UpdateCompanyMemberDto,
|
|
3681
3858
|
UpdateCompanyProfileDto,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export declare enum
|
|
1
|
+
export declare enum CreateClientHiringModeEnum {
|
|
2
2
|
REMOTE = "REMOTE",
|
|
3
3
|
ONSITE = "ONSITE",
|
|
4
4
|
BOTH = "BOTH"
|
|
5
5
|
}
|
|
6
|
-
export declare enum
|
|
6
|
+
export declare enum CreateClientHiringTypeEnum {
|
|
7
7
|
PARTTIME = "PARTTIME",
|
|
8
8
|
FULLTIME = "FULLTIME",
|
|
9
9
|
BOTH = "BOTH"
|
|
@@ -12,6 +12,7 @@ export declare class CreateClientDto {
|
|
|
12
12
|
firstName: string;
|
|
13
13
|
lastName: string;
|
|
14
14
|
email: string;
|
|
15
|
+
password: string;
|
|
15
16
|
confirmPassword: string;
|
|
16
17
|
companyName: string;
|
|
17
18
|
skills: string[];
|
|
@@ -1,11 +1,25 @@
|
|
|
1
|
+
export declare enum UpdateClientHiringModeEnum {
|
|
2
|
+
REMOTE = "REMOTE",
|
|
3
|
+
ONSITE = "ONSITE",
|
|
4
|
+
BOTH = "BOTH"
|
|
5
|
+
}
|
|
6
|
+
export declare enum UpdateClientHiringTypeEnum {
|
|
7
|
+
PARTTIME = "PARTTIME",
|
|
8
|
+
FULLTIME = "FULLTIME",
|
|
9
|
+
BOTH = "BOTH"
|
|
10
|
+
}
|
|
1
11
|
export declare class UpdateClientDto {
|
|
2
|
-
uniqueId: string;
|
|
3
|
-
userName: string;
|
|
4
12
|
firstName: string;
|
|
5
13
|
lastName: string;
|
|
6
14
|
email: string;
|
|
7
|
-
mobile: string;
|
|
8
15
|
password: string;
|
|
9
|
-
|
|
10
|
-
|
|
16
|
+
confirmPassword: string;
|
|
17
|
+
companyName: string;
|
|
18
|
+
skills: string[];
|
|
19
|
+
requiredFreelancer: string;
|
|
20
|
+
kindOfHiring: string;
|
|
21
|
+
modeOfHire: string;
|
|
22
|
+
foundUsOn: string;
|
|
23
|
+
OTHER?: string;
|
|
24
|
+
foundUsOnDetail?: string;
|
|
11
25
|
}
|