@experts_hub/shared 1.0.86 → 1.0.88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities/job-entity.d.ts +6 -6
- package/dist/index.d.mts +53 -7
- package/dist/index.d.ts +53 -7
- package/dist/index.js +183 -49
- package/dist/index.mjs +181 -46
- package/dist/modules/job/dto/index.d.ts +5 -0
- package/dist/modules/job/dto/job-additional-comment.dto.d.ts +3 -0
- package/dist/modules/job/dto/job-basic-information.dto.d.ts +22 -0
- package/dist/modules/job/dto/job-description.dto.d.ts +3 -0
- package/dist/modules/job/dto/job-id-param.dto.d.ts +3 -0
- package/dist/modules/job/dto/job-status.dto.d.ts +10 -0
- package/dist/modules/job/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { BaseEntity } from "./base.entity";
|
|
2
2
|
import { User } from "./user.entity";
|
|
3
3
|
import { JobSkill } from "./job-skill.entity";
|
|
4
|
-
export declare enum
|
|
4
|
+
export declare enum JobLocationEnum {
|
|
5
5
|
ONSITE = "ONSITE",
|
|
6
6
|
REMOTE = "REMOTE",
|
|
7
7
|
BOTH = "BOTH"
|
|
8
8
|
}
|
|
9
|
-
export declare enum
|
|
9
|
+
export declare enum TypeOfEmploymentEnum {
|
|
10
10
|
FULLTIME = "FULLTIME",
|
|
11
11
|
PARTTIME = "PARTTIME",
|
|
12
12
|
BOTH = "BOTH"
|
|
@@ -16,7 +16,7 @@ export declare enum Step {
|
|
|
16
16
|
ADDITIONAL_COMMENTS = "ADDITIONAL_COMMENTS",
|
|
17
17
|
JOB_DESCRIPTION = "JOB_DESCRIPTION"
|
|
18
18
|
}
|
|
19
|
-
export declare enum
|
|
19
|
+
export declare enum JobStatusEnum {
|
|
20
20
|
ACTIVE = "ACTIVE",
|
|
21
21
|
OPEN = "OPEN",
|
|
22
22
|
DRAFT = "DRAFT",
|
|
@@ -30,8 +30,8 @@ export declare class Job extends BaseEntity {
|
|
|
30
30
|
jobRole: string;
|
|
31
31
|
note: string;
|
|
32
32
|
openings: number;
|
|
33
|
-
location:
|
|
34
|
-
typeOfEmployment:
|
|
33
|
+
location: JobLocationEnum;
|
|
34
|
+
typeOfEmployment: TypeOfEmploymentEnum;
|
|
35
35
|
currency: string;
|
|
36
36
|
expectedSalaryFrom: number;
|
|
37
37
|
expectedSalaryTo: number;
|
|
@@ -40,6 +40,6 @@ export declare class Job extends BaseEntity {
|
|
|
40
40
|
onboardingTat: string;
|
|
41
41
|
candidateCommunicationSkills: string;
|
|
42
42
|
stepCompleted: Step;
|
|
43
|
-
status:
|
|
43
|
+
status: JobStatusEnum;
|
|
44
44
|
jobSkills: JobSkill[];
|
|
45
45
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -303,12 +303,12 @@ declare class JobSkill extends BaseEntity {
|
|
|
303
303
|
skill: Skill;
|
|
304
304
|
}
|
|
305
305
|
|
|
306
|
-
declare enum
|
|
306
|
+
declare enum JobLocationEnum {
|
|
307
307
|
ONSITE = "ONSITE",
|
|
308
308
|
REMOTE = "REMOTE",
|
|
309
309
|
BOTH = "BOTH"
|
|
310
310
|
}
|
|
311
|
-
declare enum
|
|
311
|
+
declare enum TypeOfEmploymentEnum {
|
|
312
312
|
FULLTIME = "FULLTIME",
|
|
313
313
|
PARTTIME = "PARTTIME",
|
|
314
314
|
BOTH = "BOTH"
|
|
@@ -318,7 +318,7 @@ declare enum Step {
|
|
|
318
318
|
ADDITIONAL_COMMENTS = "ADDITIONAL_COMMENTS",
|
|
319
319
|
JOB_DESCRIPTION = "JOB_DESCRIPTION"
|
|
320
320
|
}
|
|
321
|
-
declare enum
|
|
321
|
+
declare enum JobStatusEnum {
|
|
322
322
|
ACTIVE = "ACTIVE",
|
|
323
323
|
OPEN = "OPEN",
|
|
324
324
|
DRAFT = "DRAFT",
|
|
@@ -332,8 +332,8 @@ declare class Job extends BaseEntity {
|
|
|
332
332
|
jobRole: string;
|
|
333
333
|
note: string;
|
|
334
334
|
openings: number;
|
|
335
|
-
location:
|
|
336
|
-
typeOfEmployment:
|
|
335
|
+
location: JobLocationEnum;
|
|
336
|
+
typeOfEmployment: TypeOfEmploymentEnum;
|
|
337
337
|
currency: string;
|
|
338
338
|
expectedSalaryFrom: number;
|
|
339
339
|
expectedSalaryTo: number;
|
|
@@ -342,7 +342,7 @@ declare class Job extends BaseEntity {
|
|
|
342
342
|
onboardingTat: string;
|
|
343
343
|
candidateCommunicationSkills: string;
|
|
344
344
|
stepCompleted: Step;
|
|
345
|
-
status:
|
|
345
|
+
status: JobStatusEnum;
|
|
346
346
|
jobSkills: JobSkill[];
|
|
347
347
|
}
|
|
348
348
|
|
|
@@ -550,6 +550,52 @@ declare const JOB_ROLE_PATTERN: {
|
|
|
550
550
|
fetchJobRolesForDropdown: string;
|
|
551
551
|
};
|
|
552
552
|
|
|
553
|
+
declare enum JobLocation {
|
|
554
|
+
ONSITE = "ONSITE",
|
|
555
|
+
REMOTE = "REMOTE",
|
|
556
|
+
BOTH = "BOTH"
|
|
557
|
+
}
|
|
558
|
+
declare enum EmploymentType {
|
|
559
|
+
FULLTIME = "FULLTIME",
|
|
560
|
+
PARTTIME = "PARTTIME",
|
|
561
|
+
BOTH = "BOTH"
|
|
562
|
+
}
|
|
563
|
+
declare class JobBasicInformationDto {
|
|
564
|
+
jobRole: string;
|
|
565
|
+
note?: string;
|
|
566
|
+
skills: number[];
|
|
567
|
+
openings: number;
|
|
568
|
+
location: JobLocation;
|
|
569
|
+
typeOfEmployment: EmploymentType;
|
|
570
|
+
expectedSalaryFrom: number;
|
|
571
|
+
expectedSalaryTo: number;
|
|
572
|
+
onboardingTat?: string;
|
|
573
|
+
candidateCommunicationSkills?: string;
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
declare class JobAdditionalCommentDto {
|
|
577
|
+
additionalComment?: string;
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
declare class JobDescriptionDto {
|
|
581
|
+
description: string;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
declare enum JobStatus {
|
|
585
|
+
ACTIVE = "ACTIVE",
|
|
586
|
+
OPEN = "OPEN",
|
|
587
|
+
DRAFT = "DRAFT",
|
|
588
|
+
ONHOLD = "ONHOLD",
|
|
589
|
+
CLOSED = "CLOSED"
|
|
590
|
+
}
|
|
591
|
+
declare class UpdateJobStatusDto {
|
|
592
|
+
status: JobStatus;
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
declare class JobIdParamDto {
|
|
596
|
+
id: string;
|
|
597
|
+
}
|
|
598
|
+
|
|
553
599
|
declare const PROFILE_PATTERN: {
|
|
554
600
|
fetchFreelancerProfile: string;
|
|
555
601
|
changeFreelancerPassword: string;
|
|
@@ -612,4 +658,4 @@ declare class JobRoles extends BaseEntity {
|
|
|
612
658
|
isActive: boolean;
|
|
613
659
|
}
|
|
614
660
|
|
|
615
|
-
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BANK_PATTERN, BankAccountScope, BankAccountType, BaseEntity, CLIENT_PROFILE_PATTERN, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, FreelancerBankDetailsDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JOB_ROLE_PATTERN, Job, JobLocation, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NatureOfWork, ONBOARDING_PATTERN, OTP_PATTERN, Otp, PROFILE_PATTERN, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, Skill, Step,
|
|
661
|
+
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BANK_PATTERN, BankAccountScope, BankAccountType, BaseEntity, CLIENT_PROFILE_PATTERN, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, EmploymentType, FreelancerBankDetailsDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobBasicInformationDto, JobDescriptionDto, JobIdParamDto, JobLocation, JobLocationEnum, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobStatusEnum, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NatureOfWork, ONBOARDING_PATTERN, OTP_PATTERN, Otp, PROFILE_PATTERN, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, Skill, Step, TypeOfEmploymentEnum, UpdateCompanyProfileDto, UpdateJobStatusDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter, bankDetails };
|
package/dist/index.d.ts
CHANGED
|
@@ -303,12 +303,12 @@ declare class JobSkill extends BaseEntity {
|
|
|
303
303
|
skill: Skill;
|
|
304
304
|
}
|
|
305
305
|
|
|
306
|
-
declare enum
|
|
306
|
+
declare enum JobLocationEnum {
|
|
307
307
|
ONSITE = "ONSITE",
|
|
308
308
|
REMOTE = "REMOTE",
|
|
309
309
|
BOTH = "BOTH"
|
|
310
310
|
}
|
|
311
|
-
declare enum
|
|
311
|
+
declare enum TypeOfEmploymentEnum {
|
|
312
312
|
FULLTIME = "FULLTIME",
|
|
313
313
|
PARTTIME = "PARTTIME",
|
|
314
314
|
BOTH = "BOTH"
|
|
@@ -318,7 +318,7 @@ declare enum Step {
|
|
|
318
318
|
ADDITIONAL_COMMENTS = "ADDITIONAL_COMMENTS",
|
|
319
319
|
JOB_DESCRIPTION = "JOB_DESCRIPTION"
|
|
320
320
|
}
|
|
321
|
-
declare enum
|
|
321
|
+
declare enum JobStatusEnum {
|
|
322
322
|
ACTIVE = "ACTIVE",
|
|
323
323
|
OPEN = "OPEN",
|
|
324
324
|
DRAFT = "DRAFT",
|
|
@@ -332,8 +332,8 @@ declare class Job extends BaseEntity {
|
|
|
332
332
|
jobRole: string;
|
|
333
333
|
note: string;
|
|
334
334
|
openings: number;
|
|
335
|
-
location:
|
|
336
|
-
typeOfEmployment:
|
|
335
|
+
location: JobLocationEnum;
|
|
336
|
+
typeOfEmployment: TypeOfEmploymentEnum;
|
|
337
337
|
currency: string;
|
|
338
338
|
expectedSalaryFrom: number;
|
|
339
339
|
expectedSalaryTo: number;
|
|
@@ -342,7 +342,7 @@ declare class Job extends BaseEntity {
|
|
|
342
342
|
onboardingTat: string;
|
|
343
343
|
candidateCommunicationSkills: string;
|
|
344
344
|
stepCompleted: Step;
|
|
345
|
-
status:
|
|
345
|
+
status: JobStatusEnum;
|
|
346
346
|
jobSkills: JobSkill[];
|
|
347
347
|
}
|
|
348
348
|
|
|
@@ -550,6 +550,52 @@ declare const JOB_ROLE_PATTERN: {
|
|
|
550
550
|
fetchJobRolesForDropdown: string;
|
|
551
551
|
};
|
|
552
552
|
|
|
553
|
+
declare enum JobLocation {
|
|
554
|
+
ONSITE = "ONSITE",
|
|
555
|
+
REMOTE = "REMOTE",
|
|
556
|
+
BOTH = "BOTH"
|
|
557
|
+
}
|
|
558
|
+
declare enum EmploymentType {
|
|
559
|
+
FULLTIME = "FULLTIME",
|
|
560
|
+
PARTTIME = "PARTTIME",
|
|
561
|
+
BOTH = "BOTH"
|
|
562
|
+
}
|
|
563
|
+
declare class JobBasicInformationDto {
|
|
564
|
+
jobRole: string;
|
|
565
|
+
note?: string;
|
|
566
|
+
skills: number[];
|
|
567
|
+
openings: number;
|
|
568
|
+
location: JobLocation;
|
|
569
|
+
typeOfEmployment: EmploymentType;
|
|
570
|
+
expectedSalaryFrom: number;
|
|
571
|
+
expectedSalaryTo: number;
|
|
572
|
+
onboardingTat?: string;
|
|
573
|
+
candidateCommunicationSkills?: string;
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
declare class JobAdditionalCommentDto {
|
|
577
|
+
additionalComment?: string;
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
declare class JobDescriptionDto {
|
|
581
|
+
description: string;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
declare enum JobStatus {
|
|
585
|
+
ACTIVE = "ACTIVE",
|
|
586
|
+
OPEN = "OPEN",
|
|
587
|
+
DRAFT = "DRAFT",
|
|
588
|
+
ONHOLD = "ONHOLD",
|
|
589
|
+
CLOSED = "CLOSED"
|
|
590
|
+
}
|
|
591
|
+
declare class UpdateJobStatusDto {
|
|
592
|
+
status: JobStatus;
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
declare class JobIdParamDto {
|
|
596
|
+
id: string;
|
|
597
|
+
}
|
|
598
|
+
|
|
553
599
|
declare const PROFILE_PATTERN: {
|
|
554
600
|
fetchFreelancerProfile: string;
|
|
555
601
|
changeFreelancerPassword: string;
|
|
@@ -612,4 +658,4 @@ declare class JobRoles extends BaseEntity {
|
|
|
612
658
|
isActive: boolean;
|
|
613
659
|
}
|
|
614
660
|
|
|
615
|
-
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BANK_PATTERN, BankAccountScope, BankAccountType, BaseEntity, CLIENT_PROFILE_PATTERN, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, FreelancerBankDetailsDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JOB_ROLE_PATTERN, Job, JobLocation, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NatureOfWork, ONBOARDING_PATTERN, OTP_PATTERN, Otp, PROFILE_PATTERN, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, Skill, Step,
|
|
661
|
+
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BANK_PATTERN, BankAccountScope, BankAccountType, BaseEntity, CLIENT_PROFILE_PATTERN, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, EmploymentType, FreelancerBankDetailsDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobBasicInformationDto, JobDescriptionDto, JobIdParamDto, JobLocation, JobLocationEnum, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobStatusEnum, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NatureOfWork, ONBOARDING_PATTERN, OTP_PATTERN, Otp, PROFILE_PATTERN, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, Skill, Step, TypeOfEmploymentEnum, UpdateCompanyProfileDto, UpdateJobStatusDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter, bankDetails };
|
package/dist/index.js
CHANGED
|
@@ -41,6 +41,7 @@ __export(index_exports, {
|
|
|
41
41
|
CompanyProfile: () => CompanyProfile,
|
|
42
42
|
CreateQuestionDto: () => CreateQuestionDto,
|
|
43
43
|
CreateSubAdminDto: () => CreateSubAdminDto,
|
|
44
|
+
EmploymentType: () => EmploymentType,
|
|
44
45
|
FreelancerBankDetailsDto: () => FreelancerBankDetailsDto,
|
|
45
46
|
FreelancerChangePasswordDto: () => FreelancerChangePasswordDto,
|
|
46
47
|
FreelancerCreateAccountDto: () => FreelancerCreateAccountDto,
|
|
@@ -52,11 +53,17 @@ __export(index_exports, {
|
|
|
52
53
|
FromUsOn: () => FromUsOn,
|
|
53
54
|
JOB_ROLE_PATTERN: () => JOB_ROLE_PATTERN,
|
|
54
55
|
Job: () => Job,
|
|
56
|
+
JobAdditionalCommentDto: () => JobAdditionalCommentDto,
|
|
57
|
+
JobBasicInformationDto: () => JobBasicInformationDto,
|
|
58
|
+
JobDescriptionDto: () => JobDescriptionDto,
|
|
59
|
+
JobIdParamDto: () => JobIdParamDto,
|
|
55
60
|
JobLocation: () => JobLocation,
|
|
61
|
+
JobLocationEnum: () => JobLocationEnum,
|
|
56
62
|
JobRMQAdapter: () => JobRMQAdapter,
|
|
57
63
|
JobRoles: () => JobRoles,
|
|
58
64
|
JobSkill: () => JobSkill,
|
|
59
65
|
JobStatus: () => JobStatus,
|
|
66
|
+
JobStatusEnum: () => JobStatusEnum,
|
|
60
67
|
JobTCPAdapter: () => JobTCPAdapter,
|
|
61
68
|
KindOfHire: () => KindOfHire,
|
|
62
69
|
LoginDto: () => LoginDto,
|
|
@@ -78,8 +85,9 @@ __export(index_exports, {
|
|
|
78
85
|
SUBADMIN_PATTERN: () => SUBADMIN_PATTERN,
|
|
79
86
|
Skill: () => Skill,
|
|
80
87
|
Step: () => Step,
|
|
81
|
-
|
|
88
|
+
TypeOfEmploymentEnum: () => TypeOfEmploymentEnum,
|
|
82
89
|
UpdateCompanyProfileDto: () => UpdateCompanyProfileDto,
|
|
90
|
+
UpdateJobStatusDto: () => UpdateJobStatusDto,
|
|
83
91
|
UpdateSubAdminAccountStatusDto: () => UpdateSubAdminAccountStatusDto,
|
|
84
92
|
UpdateSubAdminDto: () => UpdateSubAdminDto,
|
|
85
93
|
User: () => User,
|
|
@@ -760,32 +768,32 @@ JobSkill = __decorateClass([
|
|
|
760
768
|
], JobSkill);
|
|
761
769
|
|
|
762
770
|
// src/entities/job-entity.ts
|
|
763
|
-
var
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
return
|
|
768
|
-
})(
|
|
769
|
-
var
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
return
|
|
774
|
-
})(
|
|
771
|
+
var JobLocationEnum = /* @__PURE__ */ ((JobLocationEnum2) => {
|
|
772
|
+
JobLocationEnum2["ONSITE"] = "ONSITE";
|
|
773
|
+
JobLocationEnum2["REMOTE"] = "REMOTE";
|
|
774
|
+
JobLocationEnum2["BOTH"] = "BOTH";
|
|
775
|
+
return JobLocationEnum2;
|
|
776
|
+
})(JobLocationEnum || {});
|
|
777
|
+
var TypeOfEmploymentEnum = /* @__PURE__ */ ((TypeOfEmploymentEnum2) => {
|
|
778
|
+
TypeOfEmploymentEnum2["FULLTIME"] = "FULLTIME";
|
|
779
|
+
TypeOfEmploymentEnum2["PARTTIME"] = "PARTTIME";
|
|
780
|
+
TypeOfEmploymentEnum2["BOTH"] = "BOTH";
|
|
781
|
+
return TypeOfEmploymentEnum2;
|
|
782
|
+
})(TypeOfEmploymentEnum || {});
|
|
775
783
|
var Step = /* @__PURE__ */ ((Step2) => {
|
|
776
784
|
Step2["BASIC_INFORMATION"] = "BASIC_INFORMATION";
|
|
777
785
|
Step2["ADDITIONAL_COMMENTS"] = "ADDITIONAL_COMMENTS";
|
|
778
786
|
Step2["JOB_DESCRIPTION"] = "JOB_DESCRIPTION";
|
|
779
787
|
return Step2;
|
|
780
788
|
})(Step || {});
|
|
781
|
-
var
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
return
|
|
788
|
-
})(
|
|
789
|
+
var JobStatusEnum = /* @__PURE__ */ ((JobStatusEnum2) => {
|
|
790
|
+
JobStatusEnum2["ACTIVE"] = "ACTIVE";
|
|
791
|
+
JobStatusEnum2["OPEN"] = "OPEN";
|
|
792
|
+
JobStatusEnum2["DRAFT"] = "DRAFT";
|
|
793
|
+
JobStatusEnum2["ONHOLD"] = "ONHOLD";
|
|
794
|
+
JobStatusEnum2["CLOSED"] = "CLOSED";
|
|
795
|
+
return JobStatusEnum2;
|
|
796
|
+
})(JobStatusEnum || {});
|
|
789
797
|
var Job = class extends BaseEntity {
|
|
790
798
|
};
|
|
791
799
|
__decorateClass([
|
|
@@ -813,7 +821,7 @@ __decorateClass([
|
|
|
813
821
|
(0, import_typeorm8.Column)({
|
|
814
822
|
name: "location",
|
|
815
823
|
type: "enum",
|
|
816
|
-
enum:
|
|
824
|
+
enum: JobLocationEnum,
|
|
817
825
|
nullable: true
|
|
818
826
|
})
|
|
819
827
|
], Job.prototype, "location", 2);
|
|
@@ -821,7 +829,7 @@ __decorateClass([
|
|
|
821
829
|
(0, import_typeorm8.Column)({
|
|
822
830
|
name: "type_of_employment",
|
|
823
831
|
type: "enum",
|
|
824
|
-
enum:
|
|
832
|
+
enum: TypeOfEmploymentEnum,
|
|
825
833
|
nullable: true
|
|
826
834
|
})
|
|
827
835
|
], Job.prototype, "typeOfEmployment", 2);
|
|
@@ -858,7 +866,7 @@ __decorateClass([
|
|
|
858
866
|
(0, import_typeorm8.Column)({
|
|
859
867
|
name: "status",
|
|
860
868
|
type: "enum",
|
|
861
|
-
enum:
|
|
869
|
+
enum: JobStatusEnum,
|
|
862
870
|
default: "DRAFT" /* DRAFT */
|
|
863
871
|
})
|
|
864
872
|
], Job.prototype, "status", 2);
|
|
@@ -1247,6 +1255,124 @@ var JOB_ROLE_PATTERN = {
|
|
|
1247
1255
|
fetchJobRolesForDropdown: "fetch.job.roles.for.dropdown"
|
|
1248
1256
|
};
|
|
1249
1257
|
|
|
1258
|
+
// src/modules/job/dto/job-basic-information.dto.ts
|
|
1259
|
+
var import_class_validator18 = require("class-validator");
|
|
1260
|
+
var import_class_transformer = require("class-transformer");
|
|
1261
|
+
var JobLocation = /* @__PURE__ */ ((JobLocation2) => {
|
|
1262
|
+
JobLocation2["ONSITE"] = "ONSITE";
|
|
1263
|
+
JobLocation2["REMOTE"] = "REMOTE";
|
|
1264
|
+
JobLocation2["BOTH"] = "BOTH";
|
|
1265
|
+
return JobLocation2;
|
|
1266
|
+
})(JobLocation || {});
|
|
1267
|
+
var EmploymentType = /* @__PURE__ */ ((EmploymentType2) => {
|
|
1268
|
+
EmploymentType2["FULLTIME"] = "FULLTIME";
|
|
1269
|
+
EmploymentType2["PARTTIME"] = "PARTTIME";
|
|
1270
|
+
EmploymentType2["BOTH"] = "BOTH";
|
|
1271
|
+
return EmploymentType2;
|
|
1272
|
+
})(EmploymentType || {});
|
|
1273
|
+
var JobBasicInformationDto = class {
|
|
1274
|
+
};
|
|
1275
|
+
__decorateClass([
|
|
1276
|
+
(0, import_class_validator18.IsNotEmpty)({ message: "Please enter job role" }),
|
|
1277
|
+
(0, import_class_validator18.IsString)({ message: "Job role must be a string" })
|
|
1278
|
+
], JobBasicInformationDto.prototype, "jobRole", 2);
|
|
1279
|
+
__decorateClass([
|
|
1280
|
+
(0, import_class_validator18.IsOptional)(),
|
|
1281
|
+
(0, import_class_validator18.IsString)({ message: "Note must be a string" })
|
|
1282
|
+
], JobBasicInformationDto.prototype, "note", 2);
|
|
1283
|
+
__decorateClass([
|
|
1284
|
+
(0, import_class_validator18.IsArray)({ message: "Skills must be an array" }),
|
|
1285
|
+
(0, import_class_validator18.ArrayNotEmpty)({ message: "Please select at least one skill" }),
|
|
1286
|
+
(0, import_class_validator18.IsNumber)({}, { each: true, message: "Each skill must be a number" }),
|
|
1287
|
+
(0, import_class_transformer.Type)(() => Number)
|
|
1288
|
+
], JobBasicInformationDto.prototype, "skills", 2);
|
|
1289
|
+
__decorateClass([
|
|
1290
|
+
(0, import_class_validator18.IsNumber)({}, { message: "Openings must be a number" }),
|
|
1291
|
+
(0, import_class_validator18.Min)(1, { message: "There must be at least 1 opening" }),
|
|
1292
|
+
(0, import_class_transformer.Type)(() => Number)
|
|
1293
|
+
], JobBasicInformationDto.prototype, "openings", 2);
|
|
1294
|
+
__decorateClass([
|
|
1295
|
+
(0, import_class_validator18.IsEnum)(JobLocation, {
|
|
1296
|
+
message: `Location must be one of: ${Object.values(JobLocation).join(
|
|
1297
|
+
", "
|
|
1298
|
+
)}`
|
|
1299
|
+
})
|
|
1300
|
+
], JobBasicInformationDto.prototype, "location", 2);
|
|
1301
|
+
__decorateClass([
|
|
1302
|
+
(0, import_class_validator18.IsEnum)(EmploymentType, {
|
|
1303
|
+
message: `Type of employment must be one of: ${Object.values(
|
|
1304
|
+
EmploymentType
|
|
1305
|
+
).join(", ")}`
|
|
1306
|
+
})
|
|
1307
|
+
], JobBasicInformationDto.prototype, "typeOfEmployment", 2);
|
|
1308
|
+
__decorateClass([
|
|
1309
|
+
(0, import_class_validator18.IsNumber)({}, { message: "Expected salary (from) must be a number" }),
|
|
1310
|
+
(0, import_class_validator18.Min)(0, { message: "Expected salary (from) cannot be negative" }),
|
|
1311
|
+
(0, import_class_transformer.Type)(() => Number)
|
|
1312
|
+
], JobBasicInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
1313
|
+
__decorateClass([
|
|
1314
|
+
(0, import_class_validator18.IsNumber)({}, { message: "Expected salary (to) must be a number" }),
|
|
1315
|
+
(0, import_class_validator18.Min)(0, { message: "Expected salary (to) cannot be negative" }),
|
|
1316
|
+
(0, import_class_transformer.Type)(() => Number)
|
|
1317
|
+
], JobBasicInformationDto.prototype, "expectedSalaryTo", 2);
|
|
1318
|
+
__decorateClass([
|
|
1319
|
+
(0, import_class_validator18.IsString)({ message: "Onboarding TAT must be a string" }),
|
|
1320
|
+
(0, import_class_validator18.IsOptional)()
|
|
1321
|
+
], JobBasicInformationDto.prototype, "onboardingTat", 2);
|
|
1322
|
+
__decorateClass([
|
|
1323
|
+
(0, import_class_validator18.IsString)({ message: "Candidate communication skills must be a string" }),
|
|
1324
|
+
(0, import_class_validator18.IsOptional)()
|
|
1325
|
+
], JobBasicInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
1326
|
+
|
|
1327
|
+
// src/modules/job/dto/job-additional-comment.dto.ts
|
|
1328
|
+
var import_class_validator19 = require("class-validator");
|
|
1329
|
+
var JobAdditionalCommentDto = class {
|
|
1330
|
+
};
|
|
1331
|
+
__decorateClass([
|
|
1332
|
+
(0, import_class_validator19.IsOptional)(),
|
|
1333
|
+
(0, import_class_validator19.IsString)({ message: "Additional comment must be a string" }),
|
|
1334
|
+
(0, import_class_validator19.MaxLength)(500, { message: "Additional comment must not exceed 500 characters" })
|
|
1335
|
+
], JobAdditionalCommentDto.prototype, "additionalComment", 2);
|
|
1336
|
+
|
|
1337
|
+
// src/modules/job/dto/job-description.dto.ts
|
|
1338
|
+
var import_class_validator20 = require("class-validator");
|
|
1339
|
+
var JobDescriptionDto = class {
|
|
1340
|
+
};
|
|
1341
|
+
__decorateClass([
|
|
1342
|
+
(0, import_class_validator20.IsNotEmpty)({ message: "Please enter job description" }),
|
|
1343
|
+
(0, import_class_validator20.IsString)({ message: "Description must be a string" }),
|
|
1344
|
+
(0, import_class_validator20.MaxLength)(5e3, { message: "Description must not exceed 5000 characters" })
|
|
1345
|
+
], JobDescriptionDto.prototype, "description", 2);
|
|
1346
|
+
|
|
1347
|
+
// src/modules/job/dto/job-status.dto.ts
|
|
1348
|
+
var import_class_validator21 = require("class-validator");
|
|
1349
|
+
var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
|
|
1350
|
+
JobStatus2["ACTIVE"] = "ACTIVE";
|
|
1351
|
+
JobStatus2["OPEN"] = "OPEN";
|
|
1352
|
+
JobStatus2["DRAFT"] = "DRAFT";
|
|
1353
|
+
JobStatus2["ONHOLD"] = "ONHOLD";
|
|
1354
|
+
JobStatus2["CLOSED"] = "CLOSED";
|
|
1355
|
+
return JobStatus2;
|
|
1356
|
+
})(JobStatus || {});
|
|
1357
|
+
var UpdateJobStatusDto = class {
|
|
1358
|
+
};
|
|
1359
|
+
__decorateClass([
|
|
1360
|
+
(0, import_class_validator21.IsNotEmpty)({ message: "Please provide a job status" }),
|
|
1361
|
+
(0, import_class_validator21.IsEnum)(JobStatus, {
|
|
1362
|
+
message: `Status must be one of: ${Object.values(JobStatus).join(", ")}`
|
|
1363
|
+
})
|
|
1364
|
+
], UpdateJobStatusDto.prototype, "status", 2);
|
|
1365
|
+
|
|
1366
|
+
// src/modules/job/dto/job-id-param.dto.ts
|
|
1367
|
+
var import_class_validator22 = require("class-validator");
|
|
1368
|
+
var JobIdParamDto = class {
|
|
1369
|
+
};
|
|
1370
|
+
__decorateClass([
|
|
1371
|
+
(0, import_class_validator22.IsUUID)("4", {
|
|
1372
|
+
message: "Invalid job ID. It must be a valid UUID version 4."
|
|
1373
|
+
})
|
|
1374
|
+
], JobIdParamDto.prototype, "id", 2);
|
|
1375
|
+
|
|
1250
1376
|
// src/modules/user/freelancer-profile/pattern/pattern.ts
|
|
1251
1377
|
var PROFILE_PATTERN = {
|
|
1252
1378
|
fetchFreelancerProfile: "fetch.freelancer.profile",
|
|
@@ -1255,19 +1381,19 @@ var PROFILE_PATTERN = {
|
|
|
1255
1381
|
};
|
|
1256
1382
|
|
|
1257
1383
|
// src/modules/user/freelancer-profile/dto/freelancer-change-password.dto.ts
|
|
1258
|
-
var
|
|
1384
|
+
var import_class_validator23 = require("class-validator");
|
|
1259
1385
|
var FreelancerChangePasswordDto = class {
|
|
1260
1386
|
};
|
|
1261
1387
|
__decorateClass([
|
|
1262
|
-
(0,
|
|
1263
|
-
(0,
|
|
1388
|
+
(0, import_class_validator23.IsNotEmpty)({ message: "Please enter Old Password." }),
|
|
1389
|
+
(0, import_class_validator23.IsString)()
|
|
1264
1390
|
], FreelancerChangePasswordDto.prototype, "oldPassword", 2);
|
|
1265
1391
|
__decorateClass([
|
|
1266
|
-
(0,
|
|
1267
|
-
(0,
|
|
1268
|
-
(0,
|
|
1269
|
-
(0,
|
|
1270
|
-
(0,
|
|
1392
|
+
(0, import_class_validator23.IsNotEmpty)({ message: "Please enter New Password." }),
|
|
1393
|
+
(0, import_class_validator23.IsString)(),
|
|
1394
|
+
(0, import_class_validator23.MinLength)(6),
|
|
1395
|
+
(0, import_class_validator23.MaxLength)(32),
|
|
1396
|
+
(0, import_class_validator23.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
1271
1397
|
message: "New Password must include letters, numbers and symbols."
|
|
1272
1398
|
})
|
|
1273
1399
|
], FreelancerChangePasswordDto.prototype, "newPassword", 2);
|
|
@@ -1278,50 +1404,50 @@ var BANK_PATTERN = {
|
|
|
1278
1404
|
};
|
|
1279
1405
|
|
|
1280
1406
|
// src/modules/bank/dto/freelancer-bank-details.dto.ts
|
|
1281
|
-
var
|
|
1407
|
+
var import_class_validator24 = require("class-validator");
|
|
1282
1408
|
var FreelancerBankDetailsDto = class {
|
|
1283
1409
|
};
|
|
1284
1410
|
__decorateClass([
|
|
1285
|
-
(0,
|
|
1411
|
+
(0, import_class_validator24.IsNotEmpty)({ message: "Please enter Account Holder Name." })
|
|
1286
1412
|
], FreelancerBankDetailsDto.prototype, "name", 2);
|
|
1287
1413
|
__decorateClass([
|
|
1288
|
-
(0,
|
|
1414
|
+
(0, import_class_validator24.IsNotEmpty)({ message: "Please enter Mobile Number." })
|
|
1289
1415
|
], FreelancerBankDetailsDto.prototype, "mobile", 2);
|
|
1290
1416
|
__decorateClass([
|
|
1291
|
-
(0,
|
|
1417
|
+
(0, import_class_validator24.IsNotEmpty)({ message: "Please enter Email." })
|
|
1292
1418
|
], FreelancerBankDetailsDto.prototype, "email", 2);
|
|
1293
1419
|
__decorateClass([
|
|
1294
|
-
(0,
|
|
1420
|
+
(0, import_class_validator24.IsOptional)()
|
|
1295
1421
|
], FreelancerBankDetailsDto.prototype, "address", 2);
|
|
1296
1422
|
__decorateClass([
|
|
1297
|
-
(0,
|
|
1423
|
+
(0, import_class_validator24.IsNotEmpty)({ message: "Please enter Account Number." })
|
|
1298
1424
|
], FreelancerBankDetailsDto.prototype, "accountNumber", 2);
|
|
1299
1425
|
__decorateClass([
|
|
1300
|
-
(0,
|
|
1426
|
+
(0, import_class_validator24.IsNotEmpty)({ message: "Please enter Bank Name." })
|
|
1301
1427
|
], FreelancerBankDetailsDto.prototype, "bankName", 2);
|
|
1302
1428
|
__decorateClass([
|
|
1303
|
-
(0,
|
|
1429
|
+
(0, import_class_validator24.IsNotEmpty)({ message: "Please enter Branch Name." })
|
|
1304
1430
|
], FreelancerBankDetailsDto.prototype, "branchName", 2);
|
|
1305
1431
|
__decorateClass([
|
|
1306
|
-
(0,
|
|
1432
|
+
(0, import_class_validator24.IsOptional)(),
|
|
1307
1433
|
IfscOrOtherFields(["routingNo", "abaNumber", "iban"], {
|
|
1308
1434
|
message: "IFSC Code is required ."
|
|
1309
1435
|
})
|
|
1310
1436
|
], FreelancerBankDetailsDto.prototype, "ifscCode", 2);
|
|
1311
1437
|
__decorateClass([
|
|
1312
|
-
(0,
|
|
1313
|
-
(0,
|
|
1438
|
+
(0, import_class_validator24.ValidateIf)((dto) => !dto.ifscCode),
|
|
1439
|
+
(0, import_class_validator24.IsNotEmpty)({ message: "Routing Number/Sort Code is required " })
|
|
1314
1440
|
], FreelancerBankDetailsDto.prototype, "routingNo", 2);
|
|
1315
1441
|
__decorateClass([
|
|
1316
|
-
(0,
|
|
1317
|
-
(0,
|
|
1442
|
+
(0, import_class_validator24.ValidateIf)((dto) => !dto.ifscCode),
|
|
1443
|
+
(0, import_class_validator24.IsNotEmpty)({ message: "ABA Number is required " })
|
|
1318
1444
|
], FreelancerBankDetailsDto.prototype, "abaNumber", 2);
|
|
1319
1445
|
__decorateClass([
|
|
1320
|
-
(0,
|
|
1321
|
-
(0,
|
|
1446
|
+
(0, import_class_validator24.ValidateIf)((dto) => !dto.ifscCode),
|
|
1447
|
+
(0, import_class_validator24.IsNotEmpty)({ message: "IBAN is required " })
|
|
1322
1448
|
], FreelancerBankDetailsDto.prototype, "iban", 2);
|
|
1323
1449
|
__decorateClass([
|
|
1324
|
-
(0,
|
|
1450
|
+
(0, import_class_validator24.IsOptional)()
|
|
1325
1451
|
], FreelancerBankDetailsDto.prototype, "accountType", 2);
|
|
1326
1452
|
|
|
1327
1453
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
@@ -1539,6 +1665,7 @@ JobRoles = __decorateClass([
|
|
|
1539
1665
|
CompanyProfile,
|
|
1540
1666
|
CreateQuestionDto,
|
|
1541
1667
|
CreateSubAdminDto,
|
|
1668
|
+
EmploymentType,
|
|
1542
1669
|
FreelancerBankDetailsDto,
|
|
1543
1670
|
FreelancerChangePasswordDto,
|
|
1544
1671
|
FreelancerCreateAccountDto,
|
|
@@ -1550,11 +1677,17 @@ JobRoles = __decorateClass([
|
|
|
1550
1677
|
FromUsOn,
|
|
1551
1678
|
JOB_ROLE_PATTERN,
|
|
1552
1679
|
Job,
|
|
1680
|
+
JobAdditionalCommentDto,
|
|
1681
|
+
JobBasicInformationDto,
|
|
1682
|
+
JobDescriptionDto,
|
|
1683
|
+
JobIdParamDto,
|
|
1553
1684
|
JobLocation,
|
|
1685
|
+
JobLocationEnum,
|
|
1554
1686
|
JobRMQAdapter,
|
|
1555
1687
|
JobRoles,
|
|
1556
1688
|
JobSkill,
|
|
1557
1689
|
JobStatus,
|
|
1690
|
+
JobStatusEnum,
|
|
1558
1691
|
JobTCPAdapter,
|
|
1559
1692
|
KindOfHire,
|
|
1560
1693
|
LoginDto,
|
|
@@ -1576,8 +1709,9 @@ JobRoles = __decorateClass([
|
|
|
1576
1709
|
SUBADMIN_PATTERN,
|
|
1577
1710
|
Skill,
|
|
1578
1711
|
Step,
|
|
1579
|
-
|
|
1712
|
+
TypeOfEmploymentEnum,
|
|
1580
1713
|
UpdateCompanyProfileDto,
|
|
1714
|
+
UpdateJobStatusDto,
|
|
1581
1715
|
UpdateSubAdminAccountStatusDto,
|
|
1582
1716
|
UpdateSubAdminDto,
|
|
1583
1717
|
User,
|
package/dist/index.mjs
CHANGED
|
@@ -776,32 +776,32 @@ JobSkill = __decorateClass([
|
|
|
776
776
|
], JobSkill);
|
|
777
777
|
|
|
778
778
|
// src/entities/job-entity.ts
|
|
779
|
-
var
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
return
|
|
784
|
-
})(
|
|
785
|
-
var
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
return
|
|
790
|
-
})(
|
|
779
|
+
var JobLocationEnum = /* @__PURE__ */ ((JobLocationEnum2) => {
|
|
780
|
+
JobLocationEnum2["ONSITE"] = "ONSITE";
|
|
781
|
+
JobLocationEnum2["REMOTE"] = "REMOTE";
|
|
782
|
+
JobLocationEnum2["BOTH"] = "BOTH";
|
|
783
|
+
return JobLocationEnum2;
|
|
784
|
+
})(JobLocationEnum || {});
|
|
785
|
+
var TypeOfEmploymentEnum = /* @__PURE__ */ ((TypeOfEmploymentEnum2) => {
|
|
786
|
+
TypeOfEmploymentEnum2["FULLTIME"] = "FULLTIME";
|
|
787
|
+
TypeOfEmploymentEnum2["PARTTIME"] = "PARTTIME";
|
|
788
|
+
TypeOfEmploymentEnum2["BOTH"] = "BOTH";
|
|
789
|
+
return TypeOfEmploymentEnum2;
|
|
790
|
+
})(TypeOfEmploymentEnum || {});
|
|
791
791
|
var Step = /* @__PURE__ */ ((Step2) => {
|
|
792
792
|
Step2["BASIC_INFORMATION"] = "BASIC_INFORMATION";
|
|
793
793
|
Step2["ADDITIONAL_COMMENTS"] = "ADDITIONAL_COMMENTS";
|
|
794
794
|
Step2["JOB_DESCRIPTION"] = "JOB_DESCRIPTION";
|
|
795
795
|
return Step2;
|
|
796
796
|
})(Step || {});
|
|
797
|
-
var
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
return
|
|
804
|
-
})(
|
|
797
|
+
var JobStatusEnum = /* @__PURE__ */ ((JobStatusEnum2) => {
|
|
798
|
+
JobStatusEnum2["ACTIVE"] = "ACTIVE";
|
|
799
|
+
JobStatusEnum2["OPEN"] = "OPEN";
|
|
800
|
+
JobStatusEnum2["DRAFT"] = "DRAFT";
|
|
801
|
+
JobStatusEnum2["ONHOLD"] = "ONHOLD";
|
|
802
|
+
JobStatusEnum2["CLOSED"] = "CLOSED";
|
|
803
|
+
return JobStatusEnum2;
|
|
804
|
+
})(JobStatusEnum || {});
|
|
805
805
|
var Job = class extends BaseEntity {
|
|
806
806
|
};
|
|
807
807
|
__decorateClass([
|
|
@@ -829,7 +829,7 @@ __decorateClass([
|
|
|
829
829
|
Column8({
|
|
830
830
|
name: "location",
|
|
831
831
|
type: "enum",
|
|
832
|
-
enum:
|
|
832
|
+
enum: JobLocationEnum,
|
|
833
833
|
nullable: true
|
|
834
834
|
})
|
|
835
835
|
], Job.prototype, "location", 2);
|
|
@@ -837,7 +837,7 @@ __decorateClass([
|
|
|
837
837
|
Column8({
|
|
838
838
|
name: "type_of_employment",
|
|
839
839
|
type: "enum",
|
|
840
|
-
enum:
|
|
840
|
+
enum: TypeOfEmploymentEnum,
|
|
841
841
|
nullable: true
|
|
842
842
|
})
|
|
843
843
|
], Job.prototype, "typeOfEmployment", 2);
|
|
@@ -874,7 +874,7 @@ __decorateClass([
|
|
|
874
874
|
Column8({
|
|
875
875
|
name: "status",
|
|
876
876
|
type: "enum",
|
|
877
|
-
enum:
|
|
877
|
+
enum: JobStatusEnum,
|
|
878
878
|
default: "DRAFT" /* DRAFT */
|
|
879
879
|
})
|
|
880
880
|
], Job.prototype, "status", 2);
|
|
@@ -1279,6 +1279,133 @@ var JOB_ROLE_PATTERN = {
|
|
|
1279
1279
|
fetchJobRolesForDropdown: "fetch.job.roles.for.dropdown"
|
|
1280
1280
|
};
|
|
1281
1281
|
|
|
1282
|
+
// src/modules/job/dto/job-basic-information.dto.ts
|
|
1283
|
+
import {
|
|
1284
|
+
IsString as IsString10,
|
|
1285
|
+
IsNotEmpty as IsNotEmpty15,
|
|
1286
|
+
IsArray as IsArray2,
|
|
1287
|
+
ArrayNotEmpty,
|
|
1288
|
+
IsNumber as IsNumber2,
|
|
1289
|
+
IsOptional as IsOptional6,
|
|
1290
|
+
IsEnum as IsEnum2,
|
|
1291
|
+
Min
|
|
1292
|
+
} from "class-validator";
|
|
1293
|
+
import { Type } from "class-transformer";
|
|
1294
|
+
var JobLocation = /* @__PURE__ */ ((JobLocation2) => {
|
|
1295
|
+
JobLocation2["ONSITE"] = "ONSITE";
|
|
1296
|
+
JobLocation2["REMOTE"] = "REMOTE";
|
|
1297
|
+
JobLocation2["BOTH"] = "BOTH";
|
|
1298
|
+
return JobLocation2;
|
|
1299
|
+
})(JobLocation || {});
|
|
1300
|
+
var EmploymentType = /* @__PURE__ */ ((EmploymentType2) => {
|
|
1301
|
+
EmploymentType2["FULLTIME"] = "FULLTIME";
|
|
1302
|
+
EmploymentType2["PARTTIME"] = "PARTTIME";
|
|
1303
|
+
EmploymentType2["BOTH"] = "BOTH";
|
|
1304
|
+
return EmploymentType2;
|
|
1305
|
+
})(EmploymentType || {});
|
|
1306
|
+
var JobBasicInformationDto = class {
|
|
1307
|
+
};
|
|
1308
|
+
__decorateClass([
|
|
1309
|
+
IsNotEmpty15({ message: "Please enter job role" }),
|
|
1310
|
+
IsString10({ message: "Job role must be a string" })
|
|
1311
|
+
], JobBasicInformationDto.prototype, "jobRole", 2);
|
|
1312
|
+
__decorateClass([
|
|
1313
|
+
IsOptional6(),
|
|
1314
|
+
IsString10({ message: "Note must be a string" })
|
|
1315
|
+
], JobBasicInformationDto.prototype, "note", 2);
|
|
1316
|
+
__decorateClass([
|
|
1317
|
+
IsArray2({ message: "Skills must be an array" }),
|
|
1318
|
+
ArrayNotEmpty({ message: "Please select at least one skill" }),
|
|
1319
|
+
IsNumber2({}, { each: true, message: "Each skill must be a number" }),
|
|
1320
|
+
Type(() => Number)
|
|
1321
|
+
], JobBasicInformationDto.prototype, "skills", 2);
|
|
1322
|
+
__decorateClass([
|
|
1323
|
+
IsNumber2({}, { message: "Openings must be a number" }),
|
|
1324
|
+
Min(1, { message: "There must be at least 1 opening" }),
|
|
1325
|
+
Type(() => Number)
|
|
1326
|
+
], JobBasicInformationDto.prototype, "openings", 2);
|
|
1327
|
+
__decorateClass([
|
|
1328
|
+
IsEnum2(JobLocation, {
|
|
1329
|
+
message: `Location must be one of: ${Object.values(JobLocation).join(
|
|
1330
|
+
", "
|
|
1331
|
+
)}`
|
|
1332
|
+
})
|
|
1333
|
+
], JobBasicInformationDto.prototype, "location", 2);
|
|
1334
|
+
__decorateClass([
|
|
1335
|
+
IsEnum2(EmploymentType, {
|
|
1336
|
+
message: `Type of employment must be one of: ${Object.values(
|
|
1337
|
+
EmploymentType
|
|
1338
|
+
).join(", ")}`
|
|
1339
|
+
})
|
|
1340
|
+
], JobBasicInformationDto.prototype, "typeOfEmployment", 2);
|
|
1341
|
+
__decorateClass([
|
|
1342
|
+
IsNumber2({}, { message: "Expected salary (from) must be a number" }),
|
|
1343
|
+
Min(0, { message: "Expected salary (from) cannot be negative" }),
|
|
1344
|
+
Type(() => Number)
|
|
1345
|
+
], JobBasicInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
1346
|
+
__decorateClass([
|
|
1347
|
+
IsNumber2({}, { message: "Expected salary (to) must be a number" }),
|
|
1348
|
+
Min(0, { message: "Expected salary (to) cannot be negative" }),
|
|
1349
|
+
Type(() => Number)
|
|
1350
|
+
], JobBasicInformationDto.prototype, "expectedSalaryTo", 2);
|
|
1351
|
+
__decorateClass([
|
|
1352
|
+
IsString10({ message: "Onboarding TAT must be a string" }),
|
|
1353
|
+
IsOptional6()
|
|
1354
|
+
], JobBasicInformationDto.prototype, "onboardingTat", 2);
|
|
1355
|
+
__decorateClass([
|
|
1356
|
+
IsString10({ message: "Candidate communication skills must be a string" }),
|
|
1357
|
+
IsOptional6()
|
|
1358
|
+
], JobBasicInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
1359
|
+
|
|
1360
|
+
// src/modules/job/dto/job-additional-comment.dto.ts
|
|
1361
|
+
import { IsOptional as IsOptional7, IsString as IsString11, MaxLength as MaxLength5 } from "class-validator";
|
|
1362
|
+
var JobAdditionalCommentDto = class {
|
|
1363
|
+
};
|
|
1364
|
+
__decorateClass([
|
|
1365
|
+
IsOptional7(),
|
|
1366
|
+
IsString11({ message: "Additional comment must be a string" }),
|
|
1367
|
+
MaxLength5(500, { message: "Additional comment must not exceed 500 characters" })
|
|
1368
|
+
], JobAdditionalCommentDto.prototype, "additionalComment", 2);
|
|
1369
|
+
|
|
1370
|
+
// src/modules/job/dto/job-description.dto.ts
|
|
1371
|
+
import { IsString as IsString12, IsNotEmpty as IsNotEmpty16, MaxLength as MaxLength6 } from "class-validator";
|
|
1372
|
+
var JobDescriptionDto = class {
|
|
1373
|
+
};
|
|
1374
|
+
__decorateClass([
|
|
1375
|
+
IsNotEmpty16({ message: "Please enter job description" }),
|
|
1376
|
+
IsString12({ message: "Description must be a string" }),
|
|
1377
|
+
MaxLength6(5e3, { message: "Description must not exceed 5000 characters" })
|
|
1378
|
+
], JobDescriptionDto.prototype, "description", 2);
|
|
1379
|
+
|
|
1380
|
+
// src/modules/job/dto/job-status.dto.ts
|
|
1381
|
+
import { IsEnum as IsEnum3, IsNotEmpty as IsNotEmpty17 } from "class-validator";
|
|
1382
|
+
var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
|
|
1383
|
+
JobStatus2["ACTIVE"] = "ACTIVE";
|
|
1384
|
+
JobStatus2["OPEN"] = "OPEN";
|
|
1385
|
+
JobStatus2["DRAFT"] = "DRAFT";
|
|
1386
|
+
JobStatus2["ONHOLD"] = "ONHOLD";
|
|
1387
|
+
JobStatus2["CLOSED"] = "CLOSED";
|
|
1388
|
+
return JobStatus2;
|
|
1389
|
+
})(JobStatus || {});
|
|
1390
|
+
var UpdateJobStatusDto = class {
|
|
1391
|
+
};
|
|
1392
|
+
__decorateClass([
|
|
1393
|
+
IsNotEmpty17({ message: "Please provide a job status" }),
|
|
1394
|
+
IsEnum3(JobStatus, {
|
|
1395
|
+
message: `Status must be one of: ${Object.values(JobStatus).join(", ")}`
|
|
1396
|
+
})
|
|
1397
|
+
], UpdateJobStatusDto.prototype, "status", 2);
|
|
1398
|
+
|
|
1399
|
+
// src/modules/job/dto/job-id-param.dto.ts
|
|
1400
|
+
import { IsUUID as IsUUID6 } from "class-validator";
|
|
1401
|
+
var JobIdParamDto = class {
|
|
1402
|
+
};
|
|
1403
|
+
__decorateClass([
|
|
1404
|
+
IsUUID6("4", {
|
|
1405
|
+
message: "Invalid job ID. It must be a valid UUID version 4."
|
|
1406
|
+
})
|
|
1407
|
+
], JobIdParamDto.prototype, "id", 2);
|
|
1408
|
+
|
|
1282
1409
|
// src/modules/user/freelancer-profile/pattern/pattern.ts
|
|
1283
1410
|
var PROFILE_PATTERN = {
|
|
1284
1411
|
fetchFreelancerProfile: "fetch.freelancer.profile",
|
|
@@ -1288,23 +1415,23 @@ var PROFILE_PATTERN = {
|
|
|
1288
1415
|
|
|
1289
1416
|
// src/modules/user/freelancer-profile/dto/freelancer-change-password.dto.ts
|
|
1290
1417
|
import {
|
|
1291
|
-
IsString as
|
|
1292
|
-
IsNotEmpty as
|
|
1293
|
-
MaxLength as
|
|
1418
|
+
IsString as IsString13,
|
|
1419
|
+
IsNotEmpty as IsNotEmpty18,
|
|
1420
|
+
MaxLength as MaxLength7,
|
|
1294
1421
|
MinLength as MinLength5,
|
|
1295
1422
|
Matches as Matches4
|
|
1296
1423
|
} from "class-validator";
|
|
1297
1424
|
var FreelancerChangePasswordDto = class {
|
|
1298
1425
|
};
|
|
1299
1426
|
__decorateClass([
|
|
1300
|
-
|
|
1301
|
-
|
|
1427
|
+
IsNotEmpty18({ message: "Please enter Old Password." }),
|
|
1428
|
+
IsString13()
|
|
1302
1429
|
], FreelancerChangePasswordDto.prototype, "oldPassword", 2);
|
|
1303
1430
|
__decorateClass([
|
|
1304
|
-
|
|
1305
|
-
|
|
1431
|
+
IsNotEmpty18({ message: "Please enter New Password." }),
|
|
1432
|
+
IsString13(),
|
|
1306
1433
|
MinLength5(6),
|
|
1307
|
-
|
|
1434
|
+
MaxLength7(32),
|
|
1308
1435
|
Matches4(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
1309
1436
|
message: "New Password must include letters, numbers and symbols."
|
|
1310
1437
|
})
|
|
@@ -1317,53 +1444,53 @@ var BANK_PATTERN = {
|
|
|
1317
1444
|
|
|
1318
1445
|
// src/modules/bank/dto/freelancer-bank-details.dto.ts
|
|
1319
1446
|
import {
|
|
1320
|
-
IsNotEmpty as
|
|
1321
|
-
IsOptional as
|
|
1447
|
+
IsNotEmpty as IsNotEmpty19,
|
|
1448
|
+
IsOptional as IsOptional8,
|
|
1322
1449
|
ValidateIf
|
|
1323
1450
|
} from "class-validator";
|
|
1324
1451
|
var FreelancerBankDetailsDto = class {
|
|
1325
1452
|
};
|
|
1326
1453
|
__decorateClass([
|
|
1327
|
-
|
|
1454
|
+
IsNotEmpty19({ message: "Please enter Account Holder Name." })
|
|
1328
1455
|
], FreelancerBankDetailsDto.prototype, "name", 2);
|
|
1329
1456
|
__decorateClass([
|
|
1330
|
-
|
|
1457
|
+
IsNotEmpty19({ message: "Please enter Mobile Number." })
|
|
1331
1458
|
], FreelancerBankDetailsDto.prototype, "mobile", 2);
|
|
1332
1459
|
__decorateClass([
|
|
1333
|
-
|
|
1460
|
+
IsNotEmpty19({ message: "Please enter Email." })
|
|
1334
1461
|
], FreelancerBankDetailsDto.prototype, "email", 2);
|
|
1335
1462
|
__decorateClass([
|
|
1336
|
-
|
|
1463
|
+
IsOptional8()
|
|
1337
1464
|
], FreelancerBankDetailsDto.prototype, "address", 2);
|
|
1338
1465
|
__decorateClass([
|
|
1339
|
-
|
|
1466
|
+
IsNotEmpty19({ message: "Please enter Account Number." })
|
|
1340
1467
|
], FreelancerBankDetailsDto.prototype, "accountNumber", 2);
|
|
1341
1468
|
__decorateClass([
|
|
1342
|
-
|
|
1469
|
+
IsNotEmpty19({ message: "Please enter Bank Name." })
|
|
1343
1470
|
], FreelancerBankDetailsDto.prototype, "bankName", 2);
|
|
1344
1471
|
__decorateClass([
|
|
1345
|
-
|
|
1472
|
+
IsNotEmpty19({ message: "Please enter Branch Name." })
|
|
1346
1473
|
], FreelancerBankDetailsDto.prototype, "branchName", 2);
|
|
1347
1474
|
__decorateClass([
|
|
1348
|
-
|
|
1475
|
+
IsOptional8(),
|
|
1349
1476
|
IfscOrOtherFields(["routingNo", "abaNumber", "iban"], {
|
|
1350
1477
|
message: "IFSC Code is required ."
|
|
1351
1478
|
})
|
|
1352
1479
|
], FreelancerBankDetailsDto.prototype, "ifscCode", 2);
|
|
1353
1480
|
__decorateClass([
|
|
1354
1481
|
ValidateIf((dto) => !dto.ifscCode),
|
|
1355
|
-
|
|
1482
|
+
IsNotEmpty19({ message: "Routing Number/Sort Code is required " })
|
|
1356
1483
|
], FreelancerBankDetailsDto.prototype, "routingNo", 2);
|
|
1357
1484
|
__decorateClass([
|
|
1358
1485
|
ValidateIf((dto) => !dto.ifscCode),
|
|
1359
|
-
|
|
1486
|
+
IsNotEmpty19({ message: "ABA Number is required " })
|
|
1360
1487
|
], FreelancerBankDetailsDto.prototype, "abaNumber", 2);
|
|
1361
1488
|
__decorateClass([
|
|
1362
1489
|
ValidateIf((dto) => !dto.ifscCode),
|
|
1363
|
-
|
|
1490
|
+
IsNotEmpty19({ message: "IBAN is required " })
|
|
1364
1491
|
], FreelancerBankDetailsDto.prototype, "iban", 2);
|
|
1365
1492
|
__decorateClass([
|
|
1366
|
-
|
|
1493
|
+
IsOptional8()
|
|
1367
1494
|
], FreelancerBankDetailsDto.prototype, "accountType", 2);
|
|
1368
1495
|
|
|
1369
1496
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
@@ -1580,6 +1707,7 @@ export {
|
|
|
1580
1707
|
CompanyProfile,
|
|
1581
1708
|
CreateQuestionDto,
|
|
1582
1709
|
CreateSubAdminDto,
|
|
1710
|
+
EmploymentType,
|
|
1583
1711
|
FreelancerBankDetailsDto,
|
|
1584
1712
|
FreelancerChangePasswordDto,
|
|
1585
1713
|
FreelancerCreateAccountDto,
|
|
@@ -1591,11 +1719,17 @@ export {
|
|
|
1591
1719
|
FromUsOn,
|
|
1592
1720
|
JOB_ROLE_PATTERN,
|
|
1593
1721
|
Job,
|
|
1722
|
+
JobAdditionalCommentDto,
|
|
1723
|
+
JobBasicInformationDto,
|
|
1724
|
+
JobDescriptionDto,
|
|
1725
|
+
JobIdParamDto,
|
|
1594
1726
|
JobLocation,
|
|
1727
|
+
JobLocationEnum,
|
|
1595
1728
|
JobRMQAdapter,
|
|
1596
1729
|
JobRoles,
|
|
1597
1730
|
JobSkill,
|
|
1598
1731
|
JobStatus,
|
|
1732
|
+
JobStatusEnum,
|
|
1599
1733
|
JobTCPAdapter,
|
|
1600
1734
|
KindOfHire,
|
|
1601
1735
|
LoginDto,
|
|
@@ -1617,8 +1751,9 @@ export {
|
|
|
1617
1751
|
SUBADMIN_PATTERN,
|
|
1618
1752
|
Skill,
|
|
1619
1753
|
Step,
|
|
1620
|
-
|
|
1754
|
+
TypeOfEmploymentEnum,
|
|
1621
1755
|
UpdateCompanyProfileDto,
|
|
1756
|
+
UpdateJobStatusDto,
|
|
1622
1757
|
UpdateSubAdminAccountStatusDto,
|
|
1623
1758
|
UpdateSubAdminDto,
|
|
1624
1759
|
User,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare enum JobLocation {
|
|
2
|
+
ONSITE = "ONSITE",
|
|
3
|
+
REMOTE = "REMOTE",
|
|
4
|
+
BOTH = "BOTH"
|
|
5
|
+
}
|
|
6
|
+
export declare enum EmploymentType {
|
|
7
|
+
FULLTIME = "FULLTIME",
|
|
8
|
+
PARTTIME = "PARTTIME",
|
|
9
|
+
BOTH = "BOTH"
|
|
10
|
+
}
|
|
11
|
+
export declare class JobBasicInformationDto {
|
|
12
|
+
jobRole: string;
|
|
13
|
+
note?: string;
|
|
14
|
+
skills: number[];
|
|
15
|
+
openings: number;
|
|
16
|
+
location: JobLocation;
|
|
17
|
+
typeOfEmployment: EmploymentType;
|
|
18
|
+
expectedSalaryFrom: number;
|
|
19
|
+
expectedSalaryTo: number;
|
|
20
|
+
onboardingTat?: string;
|
|
21
|
+
candidateCommunicationSkills?: string;
|
|
22
|
+
}
|