@experts_hub/shared 1.0.79 → 1.0.81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities/index.d.ts +1 -0
- package/dist/entities/job-entity.d.ts +2 -0
- package/dist/entities/job-skill.entity.d.ts +9 -0
- package/dist/entities/skill.entity.d.ts +8 -0
- package/dist/index.d.mts +16 -1
- package/dist/index.d.ts +16 -1
- package/dist/index.js +124 -71
- package/dist/index.mjs +126 -74
- package/package.json +1 -1
package/dist/entities/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BaseEntity } from "./base.entity";
|
|
2
2
|
import { User } from "./user.entity";
|
|
3
|
+
import { JobSkill } from "./job-skill.entity";
|
|
3
4
|
export declare enum JobLocation {
|
|
4
5
|
ONSITE = "ONSITE",
|
|
5
6
|
REMOTE = "REMOTE",
|
|
@@ -29,4 +30,5 @@ export declare class Job extends BaseEntity {
|
|
|
29
30
|
additionalComment: string;
|
|
30
31
|
description: string;
|
|
31
32
|
status: JobStatus;
|
|
33
|
+
jobSkills: JobSkill[];
|
|
32
34
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -288,6 +288,20 @@ declare class FreelancerProfile extends BaseEntity {
|
|
|
288
288
|
portfolioLink: string;
|
|
289
289
|
}
|
|
290
290
|
|
|
291
|
+
declare class Skill extends BaseEntity {
|
|
292
|
+
name: string;
|
|
293
|
+
slug: string;
|
|
294
|
+
isActive: boolean;
|
|
295
|
+
jobSkills: JobSkill[];
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
declare class JobSkill extends BaseEntity {
|
|
299
|
+
jobId: number;
|
|
300
|
+
job: Job;
|
|
301
|
+
skillId: number;
|
|
302
|
+
skill: Skill;
|
|
303
|
+
}
|
|
304
|
+
|
|
291
305
|
declare enum JobLocation {
|
|
292
306
|
ONSITE = "ONSITE",
|
|
293
307
|
REMOTE = "REMOTE",
|
|
@@ -317,6 +331,7 @@ declare class Job extends BaseEntity {
|
|
|
317
331
|
additionalComment: string;
|
|
318
332
|
description: string;
|
|
319
333
|
status: JobStatus;
|
|
334
|
+
jobSkills: JobSkill[];
|
|
320
335
|
}
|
|
321
336
|
|
|
322
337
|
declare enum AccountType {
|
|
@@ -524,4 +539,4 @@ declare class JobRoles extends BaseEntity {
|
|
|
524
539
|
isActive: boolean;
|
|
525
540
|
}
|
|
526
541
|
|
|
527
|
-
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, CLIENT_PROFILE_PATTERN, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JOB_ROLE_PATTERN, Job, JobLocation, JobRMQAdapter, JobRoles, JobStatus, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NatureOfWork, ONBOARDING_PATTERN, OTP_PATTERN, Otp, PROFILE_PATTERN, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, TypeOfEmployment, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
|
542
|
+
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, CLIENT_PROFILE_PATTERN, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JOB_ROLE_PATTERN, Job, JobLocation, JobRMQAdapter, JobRoles, JobStatus, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NatureOfWork, ONBOARDING_PATTERN, OTP_PATTERN, Otp, PROFILE_PATTERN, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, Skill, TypeOfEmployment, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
package/dist/index.d.ts
CHANGED
|
@@ -288,6 +288,20 @@ declare class FreelancerProfile extends BaseEntity {
|
|
|
288
288
|
portfolioLink: string;
|
|
289
289
|
}
|
|
290
290
|
|
|
291
|
+
declare class Skill extends BaseEntity {
|
|
292
|
+
name: string;
|
|
293
|
+
slug: string;
|
|
294
|
+
isActive: boolean;
|
|
295
|
+
jobSkills: JobSkill[];
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
declare class JobSkill extends BaseEntity {
|
|
299
|
+
jobId: number;
|
|
300
|
+
job: Job;
|
|
301
|
+
skillId: number;
|
|
302
|
+
skill: Skill;
|
|
303
|
+
}
|
|
304
|
+
|
|
291
305
|
declare enum JobLocation {
|
|
292
306
|
ONSITE = "ONSITE",
|
|
293
307
|
REMOTE = "REMOTE",
|
|
@@ -317,6 +331,7 @@ declare class Job extends BaseEntity {
|
|
|
317
331
|
additionalComment: string;
|
|
318
332
|
description: string;
|
|
319
333
|
status: JobStatus;
|
|
334
|
+
jobSkills: JobSkill[];
|
|
320
335
|
}
|
|
321
336
|
|
|
322
337
|
declare enum AccountType {
|
|
@@ -524,4 +539,4 @@ declare class JobRoles extends BaseEntity {
|
|
|
524
539
|
isActive: boolean;
|
|
525
540
|
}
|
|
526
541
|
|
|
527
|
-
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, CLIENT_PROFILE_PATTERN, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JOB_ROLE_PATTERN, Job, JobLocation, JobRMQAdapter, JobRoles, JobStatus, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NatureOfWork, ONBOARDING_PATTERN, OTP_PATTERN, Otp, PROFILE_PATTERN, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, TypeOfEmployment, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
|
542
|
+
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, CLIENT_PROFILE_PATTERN, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JOB_ROLE_PATTERN, Job, JobLocation, JobRMQAdapter, JobRoles, JobStatus, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NatureOfWork, ONBOARDING_PATTERN, OTP_PATTERN, Otp, PROFILE_PATTERN, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, Skill, TypeOfEmployment, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
package/dist/index.js
CHANGED
|
@@ -70,6 +70,7 @@ __export(index_exports, {
|
|
|
70
70
|
RefreshToken: () => RefreshToken,
|
|
71
71
|
ResumeParserLog: () => ResumeParserLog,
|
|
72
72
|
SUBADMIN_PATTERN: () => SUBADMIN_PATTERN,
|
|
73
|
+
Skill: () => Skill,
|
|
73
74
|
TypeOfEmployment: () => TypeOfEmployment,
|
|
74
75
|
UpdateCompanyProfileDto: () => UpdateCompanyProfileDto,
|
|
75
76
|
UpdateSubAdminAccountStatusDto: () => UpdateSubAdminAccountStatusDto,
|
|
@@ -423,7 +424,7 @@ var CLIENT_PROFILE_PATTERN = {
|
|
|
423
424
|
var import_class_validator15 = require("class-validator");
|
|
424
425
|
|
|
425
426
|
// src/entities/company-profile.entity.ts
|
|
426
|
-
var
|
|
427
|
+
var import_typeorm10 = require("typeorm");
|
|
427
428
|
|
|
428
429
|
// src/entities/base.entity.ts
|
|
429
430
|
var import_typeorm = require("typeorm");
|
|
@@ -463,7 +464,7 @@ __decorateClass([
|
|
|
463
464
|
], BaseEntity.prototype, "deletedAt", 2);
|
|
464
465
|
|
|
465
466
|
// src/entities/user.entity.ts
|
|
466
|
-
var
|
|
467
|
+
var import_typeorm9 = require("typeorm");
|
|
467
468
|
|
|
468
469
|
// src/entities/refresh-token.entity.ts
|
|
469
470
|
var import_typeorm2 = require("typeorm");
|
|
@@ -672,7 +673,55 @@ FreelancerProfile = __decorateClass([
|
|
|
672
673
|
], FreelancerProfile);
|
|
673
674
|
|
|
674
675
|
// src/entities/job-entity.ts
|
|
676
|
+
var import_typeorm8 = require("typeorm");
|
|
677
|
+
|
|
678
|
+
// src/entities/job-skill.entity.ts
|
|
679
|
+
var import_typeorm7 = require("typeorm");
|
|
680
|
+
|
|
681
|
+
// src/entities/skill.entity.ts
|
|
675
682
|
var import_typeorm6 = require("typeorm");
|
|
683
|
+
var Skill = class extends BaseEntity {
|
|
684
|
+
};
|
|
685
|
+
__decorateClass([
|
|
686
|
+
(0, import_typeorm6.Column)({ name: "name", type: "varchar", nullable: true })
|
|
687
|
+
], Skill.prototype, "name", 2);
|
|
688
|
+
__decorateClass([
|
|
689
|
+
(0, import_typeorm6.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
690
|
+
], Skill.prototype, "slug", 2);
|
|
691
|
+
__decorateClass([
|
|
692
|
+
(0, import_typeorm6.Column)({ name: "is_active", type: "boolean", default: false })
|
|
693
|
+
], Skill.prototype, "isActive", 2);
|
|
694
|
+
__decorateClass([
|
|
695
|
+
(0, import_typeorm6.OneToMany)(() => JobSkill, (jobSkill) => jobSkill.skill)
|
|
696
|
+
], Skill.prototype, "jobSkills", 2);
|
|
697
|
+
Skill = __decorateClass([
|
|
698
|
+
(0, import_typeorm6.Entity)("skills")
|
|
699
|
+
], Skill);
|
|
700
|
+
|
|
701
|
+
// src/entities/job-skill.entity.ts
|
|
702
|
+
var JobSkill = class extends BaseEntity {
|
|
703
|
+
};
|
|
704
|
+
__decorateClass([
|
|
705
|
+
(0, import_typeorm7.Column)({ name: "job_id", type: "integer" }),
|
|
706
|
+
(0, import_typeorm7.Index)()
|
|
707
|
+
], JobSkill.prototype, "jobId", 2);
|
|
708
|
+
__decorateClass([
|
|
709
|
+
(0, import_typeorm7.ManyToOne)(() => Job, (job) => job.jobSkills, { onDelete: "CASCADE" }),
|
|
710
|
+
(0, import_typeorm7.JoinColumn)({ name: "job_id" })
|
|
711
|
+
], JobSkill.prototype, "job", 2);
|
|
712
|
+
__decorateClass([
|
|
713
|
+
(0, import_typeorm7.Column)({ name: "skill_id", type: "integer" }),
|
|
714
|
+
(0, import_typeorm7.Index)()
|
|
715
|
+
], JobSkill.prototype, "skillId", 2);
|
|
716
|
+
__decorateClass([
|
|
717
|
+
(0, import_typeorm7.ManyToOne)(() => Skill, (skill) => skill.jobSkills, { onDelete: "CASCADE" }),
|
|
718
|
+
(0, import_typeorm7.JoinColumn)({ name: "skill_id" })
|
|
719
|
+
], JobSkill.prototype, "skill", 2);
|
|
720
|
+
JobSkill = __decorateClass([
|
|
721
|
+
(0, import_typeorm7.Entity)("job_skills")
|
|
722
|
+
], JobSkill);
|
|
723
|
+
|
|
724
|
+
// src/entities/job-entity.ts
|
|
676
725
|
var JobLocation = /* @__PURE__ */ ((JobLocation2) => {
|
|
677
726
|
JobLocation2["ONSITE"] = "ONSITE";
|
|
678
727
|
JobLocation2["REMOTE"] = "REMOTE";
|
|
@@ -696,28 +745,28 @@ var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
|
|
|
696
745
|
var Job = class extends BaseEntity {
|
|
697
746
|
};
|
|
698
747
|
__decorateClass([
|
|
699
|
-
(0,
|
|
748
|
+
(0, import_typeorm8.Column)({ name: "job_id", type: "varchar", unique: true, nullable: true })
|
|
700
749
|
], Job.prototype, "jobId", 2);
|
|
701
750
|
// individual index to find jobs by user
|
|
702
751
|
__decorateClass([
|
|
703
|
-
(0,
|
|
704
|
-
(0,
|
|
752
|
+
(0, import_typeorm8.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
753
|
+
(0, import_typeorm8.Index)()
|
|
705
754
|
], Job.prototype, "userId", 2);
|
|
706
755
|
__decorateClass([
|
|
707
|
-
(0,
|
|
708
|
-
(0,
|
|
756
|
+
(0, import_typeorm8.ManyToOne)(() => User, (user) => user.jobs),
|
|
757
|
+
(0, import_typeorm8.JoinColumn)({ name: "user_id" })
|
|
709
758
|
], Job.prototype, "user", 2);
|
|
710
759
|
__decorateClass([
|
|
711
|
-
(0,
|
|
760
|
+
(0, import_typeorm8.Column)({ name: "job_role", type: "varchar", nullable: true })
|
|
712
761
|
], Job.prototype, "jobRole", 2);
|
|
713
762
|
__decorateClass([
|
|
714
|
-
(0,
|
|
763
|
+
(0, import_typeorm8.Column)({ name: "note", type: "varchar", nullable: true })
|
|
715
764
|
], Job.prototype, "note", 2);
|
|
716
765
|
__decorateClass([
|
|
717
|
-
(0,
|
|
766
|
+
(0, import_typeorm8.Column)({ name: "openings", type: "integer", default: 0 })
|
|
718
767
|
], Job.prototype, "openings", 2);
|
|
719
768
|
__decorateClass([
|
|
720
|
-
(0,
|
|
769
|
+
(0, import_typeorm8.Column)({
|
|
721
770
|
name: "location",
|
|
722
771
|
type: "enum",
|
|
723
772
|
enum: JobLocation,
|
|
@@ -725,7 +774,7 @@ __decorateClass([
|
|
|
725
774
|
})
|
|
726
775
|
], Job.prototype, "location", 2);
|
|
727
776
|
__decorateClass([
|
|
728
|
-
(0,
|
|
777
|
+
(0, import_typeorm8.Column)({
|
|
729
778
|
name: "type_of_employment",
|
|
730
779
|
type: "enum",
|
|
731
780
|
enum: TypeOfEmployment,
|
|
@@ -733,21 +782,24 @@ __decorateClass([
|
|
|
733
782
|
})
|
|
734
783
|
], Job.prototype, "typeOfEmployment", 2);
|
|
735
784
|
__decorateClass([
|
|
736
|
-
(0,
|
|
785
|
+
(0, import_typeorm8.Column)({ name: "additional_comment", type: "varchar", nullable: true })
|
|
737
786
|
], Job.prototype, "additionalComment", 2);
|
|
738
787
|
__decorateClass([
|
|
739
|
-
(0,
|
|
788
|
+
(0, import_typeorm8.Column)({ name: "description", type: "varchar", nullable: true })
|
|
740
789
|
], Job.prototype, "description", 2);
|
|
741
790
|
__decorateClass([
|
|
742
|
-
(0,
|
|
791
|
+
(0, import_typeorm8.Column)({
|
|
743
792
|
name: "status",
|
|
744
793
|
type: "enum",
|
|
745
794
|
enum: JobStatus,
|
|
746
795
|
default: "DRAFT" /* DRAFT */
|
|
747
796
|
})
|
|
748
797
|
], Job.prototype, "status", 2);
|
|
798
|
+
__decorateClass([
|
|
799
|
+
(0, import_typeorm8.OneToMany)(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
|
|
800
|
+
], Job.prototype, "jobSkills", 2);
|
|
749
801
|
Job = __decorateClass([
|
|
750
|
-
(0,
|
|
802
|
+
(0, import_typeorm8.Entity)("jobs")
|
|
751
803
|
], Job);
|
|
752
804
|
|
|
753
805
|
// src/entities/user.entity.ts
|
|
@@ -768,40 +820,40 @@ var AccountStatus = /* @__PURE__ */ ((AccountStatus2) => {
|
|
|
768
820
|
var User = class extends BaseEntity {
|
|
769
821
|
};
|
|
770
822
|
__decorateClass([
|
|
771
|
-
(0,
|
|
823
|
+
(0, import_typeorm9.Column)({ name: "unique_id", type: "varchar", unique: true })
|
|
772
824
|
], User.prototype, "uniqueId", 2);
|
|
773
825
|
__decorateClass([
|
|
774
|
-
(0,
|
|
826
|
+
(0, import_typeorm9.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
775
827
|
], User.prototype, "username", 2);
|
|
776
828
|
__decorateClass([
|
|
777
|
-
(0,
|
|
829
|
+
(0, import_typeorm9.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
778
830
|
], User.prototype, "firstName", 2);
|
|
779
831
|
__decorateClass([
|
|
780
|
-
(0,
|
|
832
|
+
(0, import_typeorm9.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
781
833
|
], User.prototype, "lastName", 2);
|
|
782
834
|
__decorateClass([
|
|
783
|
-
(0,
|
|
835
|
+
(0, import_typeorm9.Column)({ name: "date_of_birth", type: "date", nullable: true })
|
|
784
836
|
], User.prototype, "dateOfBirth", 2);
|
|
785
837
|
__decorateClass([
|
|
786
|
-
(0,
|
|
838
|
+
(0, import_typeorm9.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
787
839
|
], User.prototype, "gender", 2);
|
|
788
840
|
__decorateClass([
|
|
789
|
-
(0,
|
|
841
|
+
(0, import_typeorm9.Column)({ name: "profile_picture_url", type: "text", nullable: true })
|
|
790
842
|
], User.prototype, "profilePictureUrl", 2);
|
|
791
843
|
__decorateClass([
|
|
792
|
-
(0,
|
|
844
|
+
(0, import_typeorm9.Column)({ name: "email", type: "varchar", unique: true })
|
|
793
845
|
], User.prototype, "email", 2);
|
|
794
846
|
__decorateClass([
|
|
795
|
-
(0,
|
|
847
|
+
(0, import_typeorm9.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
796
848
|
], User.prototype, "mobileCode", 2);
|
|
797
849
|
__decorateClass([
|
|
798
|
-
(0,
|
|
850
|
+
(0, import_typeorm9.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
799
851
|
], User.prototype, "mobile", 2);
|
|
800
852
|
__decorateClass([
|
|
801
|
-
(0,
|
|
853
|
+
(0, import_typeorm9.Column)({ name: "password", type: "varchar" })
|
|
802
854
|
], User.prototype, "password", 2);
|
|
803
855
|
__decorateClass([
|
|
804
|
-
(0,
|
|
856
|
+
(0, import_typeorm9.Column)({
|
|
805
857
|
name: "account_type",
|
|
806
858
|
type: "enum",
|
|
807
859
|
enum: AccountType,
|
|
@@ -809,7 +861,7 @@ __decorateClass([
|
|
|
809
861
|
})
|
|
810
862
|
], User.prototype, "accountType", 2);
|
|
811
863
|
__decorateClass([
|
|
812
|
-
(0,
|
|
864
|
+
(0, import_typeorm9.Column)({
|
|
813
865
|
name: "account_status",
|
|
814
866
|
type: "enum",
|
|
815
867
|
enum: AccountStatus,
|
|
@@ -817,44 +869,44 @@ __decorateClass([
|
|
|
817
869
|
})
|
|
818
870
|
], User.prototype, "accountStatus", 2);
|
|
819
871
|
__decorateClass([
|
|
820
|
-
(0,
|
|
872
|
+
(0, import_typeorm9.Column)({ name: "is_email_verified", type: "boolean", default: false })
|
|
821
873
|
], User.prototype, "isEmailVerified", 2);
|
|
822
874
|
__decorateClass([
|
|
823
|
-
(0,
|
|
875
|
+
(0, import_typeorm9.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
824
876
|
], User.prototype, "isMobileVerified", 2);
|
|
825
877
|
__decorateClass([
|
|
826
|
-
(0,
|
|
878
|
+
(0, import_typeorm9.Column)({
|
|
827
879
|
name: "last_login_at",
|
|
828
880
|
type: "timestamp with time zone",
|
|
829
881
|
nullable: true
|
|
830
882
|
})
|
|
831
883
|
], User.prototype, "lastLoginAt", 2);
|
|
832
884
|
__decorateClass([
|
|
833
|
-
(0,
|
|
885
|
+
(0, import_typeorm9.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
834
886
|
], User.prototype, "lastLoginIp", 2);
|
|
835
887
|
__decorateClass([
|
|
836
|
-
(0,
|
|
888
|
+
(0, import_typeorm9.OneToMany)(() => RefreshToken, (token) => token.user)
|
|
837
889
|
], User.prototype, "refreshTokens", 2);
|
|
838
890
|
__decorateClass([
|
|
839
|
-
(0,
|
|
891
|
+
(0, import_typeorm9.OneToMany)(() => Otp, (otp) => otp.user)
|
|
840
892
|
], User.prototype, "otps", 2);
|
|
841
893
|
__decorateClass([
|
|
842
|
-
(0,
|
|
894
|
+
(0, import_typeorm9.OneToMany)(() => ResumeParserLog, (resumeParser) => resumeParser.user)
|
|
843
895
|
], User.prototype, "resumeParserLogs", 2);
|
|
844
896
|
__decorateClass([
|
|
845
|
-
(0,
|
|
897
|
+
(0, import_typeorm9.OneToOne)(
|
|
846
898
|
() => FreelancerProfile,
|
|
847
899
|
(freelancerProfile) => freelancerProfile.user
|
|
848
900
|
)
|
|
849
901
|
], User.prototype, "freelancerProfile", 2);
|
|
850
902
|
__decorateClass([
|
|
851
|
-
(0,
|
|
903
|
+
(0, import_typeorm9.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
|
|
852
904
|
], User.prototype, "companyProfile", 2);
|
|
853
905
|
__decorateClass([
|
|
854
|
-
(0,
|
|
906
|
+
(0, import_typeorm9.OneToMany)(() => Job, (job) => job.user)
|
|
855
907
|
], User.prototype, "jobs", 2);
|
|
856
908
|
User = __decorateClass([
|
|
857
|
-
(0,
|
|
909
|
+
(0, import_typeorm9.Entity)("users")
|
|
858
910
|
], User);
|
|
859
911
|
|
|
860
912
|
// src/entities/company-profile.entity.ts
|
|
@@ -881,42 +933,42 @@ var CompanyProfile = class extends BaseEntity {
|
|
|
881
933
|
};
|
|
882
934
|
// individual index to find company profile by user
|
|
883
935
|
__decorateClass([
|
|
884
|
-
(0,
|
|
885
|
-
(0,
|
|
936
|
+
(0, import_typeorm10.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
937
|
+
(0, import_typeorm10.Index)()
|
|
886
938
|
], CompanyProfile.prototype, "userId", 2);
|
|
887
939
|
__decorateClass([
|
|
888
|
-
(0,
|
|
889
|
-
(0,
|
|
940
|
+
(0, import_typeorm10.ManyToOne)(() => User, (user) => user.otps),
|
|
941
|
+
(0, import_typeorm10.JoinColumn)({ name: "user_id" })
|
|
890
942
|
], CompanyProfile.prototype, "user", 2);
|
|
891
943
|
__decorateClass([
|
|
892
|
-
(0,
|
|
944
|
+
(0, import_typeorm10.Column)({ name: "company_name", type: "varchar", nullable: true })
|
|
893
945
|
], CompanyProfile.prototype, "companyName", 2);
|
|
894
946
|
__decorateClass([
|
|
895
|
-
(0,
|
|
947
|
+
(0, import_typeorm10.Column)({ name: "bio", type: "varchar", nullable: true })
|
|
896
948
|
], CompanyProfile.prototype, "bio", 2);
|
|
897
949
|
__decorateClass([
|
|
898
|
-
(0,
|
|
950
|
+
(0, import_typeorm10.Column)({ name: "website", type: "varchar", nullable: true })
|
|
899
951
|
], CompanyProfile.prototype, "webSite", 2);
|
|
900
952
|
__decorateClass([
|
|
901
|
-
(0,
|
|
953
|
+
(0, import_typeorm10.Column)({ name: "about_company", type: "varchar", nullable: true })
|
|
902
954
|
], CompanyProfile.prototype, "aboutCompany", 2);
|
|
903
955
|
__decorateClass([
|
|
904
|
-
(0,
|
|
956
|
+
(0, import_typeorm10.Column)({ name: "is_service_aggrement_signed", type: "boolean", default: false })
|
|
905
957
|
], CompanyProfile.prototype, "isServiceAgreementSigned", 2);
|
|
906
958
|
__decorateClass([
|
|
907
|
-
(0,
|
|
959
|
+
(0, import_typeorm10.Column)({ name: "company_address", type: "varchar", nullable: true })
|
|
908
960
|
], CompanyProfile.prototype, "companyAddress", 2);
|
|
909
961
|
__decorateClass([
|
|
910
|
-
(0,
|
|
962
|
+
(0, import_typeorm10.Column)({ name: "phone_number", type: "varchar", nullable: true })
|
|
911
963
|
], CompanyProfile.prototype, "phoneNumber", 2);
|
|
912
964
|
__decorateClass([
|
|
913
|
-
(0,
|
|
965
|
+
(0, import_typeorm10.Column)({ name: "skills", type: "text", nullable: true })
|
|
914
966
|
], CompanyProfile.prototype, "skills", 2);
|
|
915
967
|
__decorateClass([
|
|
916
|
-
(0,
|
|
968
|
+
(0, import_typeorm10.Column)({ name: "required_freelancer", type: "varchar", nullable: true })
|
|
917
969
|
], CompanyProfile.prototype, "requiredFreelancer", 2);
|
|
918
970
|
__decorateClass([
|
|
919
|
-
(0,
|
|
971
|
+
(0, import_typeorm10.Column)({
|
|
920
972
|
name: "kind_of_hiring",
|
|
921
973
|
type: "enum",
|
|
922
974
|
enum: KindOfHire,
|
|
@@ -924,7 +976,7 @@ __decorateClass([
|
|
|
924
976
|
})
|
|
925
977
|
], CompanyProfile.prototype, "kindOfHiring", 2);
|
|
926
978
|
__decorateClass([
|
|
927
|
-
(0,
|
|
979
|
+
(0, import_typeorm10.Column)({
|
|
928
980
|
name: "mode_of_hire",
|
|
929
981
|
type: "enum",
|
|
930
982
|
enum: ModeOfHire,
|
|
@@ -932,7 +984,7 @@ __decorateClass([
|
|
|
932
984
|
})
|
|
933
985
|
], CompanyProfile.prototype, "modeOfHire", 2);
|
|
934
986
|
__decorateClass([
|
|
935
|
-
(0,
|
|
987
|
+
(0, import_typeorm10.Column)({
|
|
936
988
|
name: "found_us_on",
|
|
937
989
|
type: "enum",
|
|
938
990
|
enum: FromUsOn,
|
|
@@ -940,7 +992,7 @@ __decorateClass([
|
|
|
940
992
|
})
|
|
941
993
|
], CompanyProfile.prototype, "foundUsOn", 2);
|
|
942
994
|
CompanyProfile = __decorateClass([
|
|
943
|
-
(0,
|
|
995
|
+
(0, import_typeorm10.Entity)("company_profiles")
|
|
944
996
|
], CompanyProfile);
|
|
945
997
|
|
|
946
998
|
// src/modules/user/client-profile/dto/update-client-profile.dto.ts
|
|
@@ -1200,7 +1252,7 @@ var JobRMQAdapter = (mode = "microservice") => {
|
|
|
1200
1252
|
};
|
|
1201
1253
|
|
|
1202
1254
|
// src/entities/question.entity.ts
|
|
1203
|
-
var
|
|
1255
|
+
var import_typeorm11 = require("typeorm");
|
|
1204
1256
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
1205
1257
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
1206
1258
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -1209,16 +1261,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
1209
1261
|
var Question = class extends BaseEntity {
|
|
1210
1262
|
};
|
|
1211
1263
|
__decorateClass([
|
|
1212
|
-
(0,
|
|
1264
|
+
(0, import_typeorm11.Column)({ name: "question", type: "varchar" })
|
|
1213
1265
|
], Question.prototype, "question", 2);
|
|
1214
1266
|
__decorateClass([
|
|
1215
|
-
(0,
|
|
1267
|
+
(0, import_typeorm11.Column)({ name: "hint", type: "varchar", nullable: true })
|
|
1216
1268
|
], Question.prototype, "hint", 2);
|
|
1217
1269
|
__decorateClass([
|
|
1218
|
-
(0,
|
|
1270
|
+
(0, import_typeorm11.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
1219
1271
|
], Question.prototype, "slug", 2);
|
|
1220
1272
|
__decorateClass([
|
|
1221
|
-
(0,
|
|
1273
|
+
(0, import_typeorm11.Column)({
|
|
1222
1274
|
name: "question_for",
|
|
1223
1275
|
type: "enum",
|
|
1224
1276
|
enum: QuestionFor,
|
|
@@ -1226,33 +1278,33 @@ __decorateClass([
|
|
|
1226
1278
|
})
|
|
1227
1279
|
], Question.prototype, "questionFor", 2);
|
|
1228
1280
|
__decorateClass([
|
|
1229
|
-
(0,
|
|
1281
|
+
(0, import_typeorm11.Column)({ name: "type", type: "varchar", nullable: true })
|
|
1230
1282
|
], Question.prototype, "type", 2);
|
|
1231
1283
|
__decorateClass([
|
|
1232
|
-
(0,
|
|
1284
|
+
(0, import_typeorm11.Column)({ name: "options", type: "jsonb", nullable: true })
|
|
1233
1285
|
], Question.prototype, "options", 2);
|
|
1234
1286
|
__decorateClass([
|
|
1235
|
-
(0,
|
|
1287
|
+
(0, import_typeorm11.Column)({ name: "is_active", type: "boolean", default: false })
|
|
1236
1288
|
], Question.prototype, "isActive", 2);
|
|
1237
1289
|
Question = __decorateClass([
|
|
1238
|
-
(0,
|
|
1290
|
+
(0, import_typeorm11.Entity)("questions")
|
|
1239
1291
|
], Question);
|
|
1240
1292
|
|
|
1241
1293
|
// src/entities/job-role.entity.ts
|
|
1242
|
-
var
|
|
1294
|
+
var import_typeorm12 = require("typeorm");
|
|
1243
1295
|
var JobRoles = class extends BaseEntity {
|
|
1244
1296
|
};
|
|
1245
1297
|
__decorateClass([
|
|
1246
|
-
(0,
|
|
1298
|
+
(0, import_typeorm12.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
1247
1299
|
], JobRoles.prototype, "slug", 2);
|
|
1248
1300
|
__decorateClass([
|
|
1249
|
-
(0,
|
|
1301
|
+
(0, import_typeorm12.Column)({ name: "name", type: "varchar", nullable: true })
|
|
1250
1302
|
], JobRoles.prototype, "name", 2);
|
|
1251
1303
|
__decorateClass([
|
|
1252
|
-
(0,
|
|
1304
|
+
(0, import_typeorm12.Column)({ name: "is_active", type: "boolean", default: true })
|
|
1253
1305
|
], JobRoles.prototype, "isActive", 2);
|
|
1254
1306
|
JobRoles = __decorateClass([
|
|
1255
|
-
(0,
|
|
1307
|
+
(0, import_typeorm12.Entity)("job_roles")
|
|
1256
1308
|
], JobRoles);
|
|
1257
1309
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1258
1310
|
0 && (module.exports = {
|
|
@@ -1299,6 +1351,7 @@ JobRoles = __decorateClass([
|
|
|
1299
1351
|
RefreshToken,
|
|
1300
1352
|
ResumeParserLog,
|
|
1301
1353
|
SUBADMIN_PATTERN,
|
|
1354
|
+
Skill,
|
|
1302
1355
|
TypeOfEmployment,
|
|
1303
1356
|
UpdateCompanyProfileDto,
|
|
1304
1357
|
UpdateSubAdminAccountStatusDto,
|
package/dist/index.mjs
CHANGED
|
@@ -399,11 +399,11 @@ import {
|
|
|
399
399
|
|
|
400
400
|
// src/entities/company-profile.entity.ts
|
|
401
401
|
import {
|
|
402
|
-
Entity as
|
|
403
|
-
Column as
|
|
404
|
-
ManyToOne as
|
|
405
|
-
JoinColumn as
|
|
406
|
-
Index as
|
|
402
|
+
Entity as Entity9,
|
|
403
|
+
Column as Column10,
|
|
404
|
+
ManyToOne as ManyToOne7,
|
|
405
|
+
JoinColumn as JoinColumn7,
|
|
406
|
+
Index as Index5
|
|
407
407
|
} from "typeorm";
|
|
408
408
|
|
|
409
409
|
// src/entities/base.entity.ts
|
|
@@ -451,7 +451,7 @@ __decorateClass([
|
|
|
451
451
|
], BaseEntity.prototype, "deletedAt", 2);
|
|
452
452
|
|
|
453
453
|
// src/entities/user.entity.ts
|
|
454
|
-
import { Entity as
|
|
454
|
+
import { Entity as Entity8, Column as Column9, OneToMany as OneToMany4, OneToOne } from "typeorm";
|
|
455
455
|
|
|
456
456
|
// src/entities/refresh-token.entity.ts
|
|
457
457
|
import {
|
|
@@ -689,7 +689,55 @@ FreelancerProfile = __decorateClass([
|
|
|
689
689
|
], FreelancerProfile);
|
|
690
690
|
|
|
691
691
|
// src/entities/job-entity.ts
|
|
692
|
-
import { Entity as
|
|
692
|
+
import { Entity as Entity7, Column as Column8, Index as Index4, ManyToOne as ManyToOne6, JoinColumn as JoinColumn6, OneToMany as OneToMany3 } from "typeorm";
|
|
693
|
+
|
|
694
|
+
// src/entities/job-skill.entity.ts
|
|
695
|
+
import { Entity as Entity6, Column as Column7, Index as Index3, ManyToOne as ManyToOne5, JoinColumn as JoinColumn5 } from "typeorm";
|
|
696
|
+
|
|
697
|
+
// src/entities/skill.entity.ts
|
|
698
|
+
import { Entity as Entity5, Column as Column6, OneToMany as OneToMany2 } from "typeorm";
|
|
699
|
+
var Skill = class extends BaseEntity {
|
|
700
|
+
};
|
|
701
|
+
__decorateClass([
|
|
702
|
+
Column6({ name: "name", type: "varchar", nullable: true })
|
|
703
|
+
], Skill.prototype, "name", 2);
|
|
704
|
+
__decorateClass([
|
|
705
|
+
Column6({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
706
|
+
], Skill.prototype, "slug", 2);
|
|
707
|
+
__decorateClass([
|
|
708
|
+
Column6({ name: "is_active", type: "boolean", default: false })
|
|
709
|
+
], Skill.prototype, "isActive", 2);
|
|
710
|
+
__decorateClass([
|
|
711
|
+
OneToMany2(() => JobSkill, (jobSkill) => jobSkill.skill)
|
|
712
|
+
], Skill.prototype, "jobSkills", 2);
|
|
713
|
+
Skill = __decorateClass([
|
|
714
|
+
Entity5("skills")
|
|
715
|
+
], Skill);
|
|
716
|
+
|
|
717
|
+
// src/entities/job-skill.entity.ts
|
|
718
|
+
var JobSkill = class extends BaseEntity {
|
|
719
|
+
};
|
|
720
|
+
__decorateClass([
|
|
721
|
+
Column7({ name: "job_id", type: "integer" }),
|
|
722
|
+
Index3()
|
|
723
|
+
], JobSkill.prototype, "jobId", 2);
|
|
724
|
+
__decorateClass([
|
|
725
|
+
ManyToOne5(() => Job, (job) => job.jobSkills, { onDelete: "CASCADE" }),
|
|
726
|
+
JoinColumn5({ name: "job_id" })
|
|
727
|
+
], JobSkill.prototype, "job", 2);
|
|
728
|
+
__decorateClass([
|
|
729
|
+
Column7({ name: "skill_id", type: "integer" }),
|
|
730
|
+
Index3()
|
|
731
|
+
], JobSkill.prototype, "skillId", 2);
|
|
732
|
+
__decorateClass([
|
|
733
|
+
ManyToOne5(() => Skill, (skill) => skill.jobSkills, { onDelete: "CASCADE" }),
|
|
734
|
+
JoinColumn5({ name: "skill_id" })
|
|
735
|
+
], JobSkill.prototype, "skill", 2);
|
|
736
|
+
JobSkill = __decorateClass([
|
|
737
|
+
Entity6("job_skills")
|
|
738
|
+
], JobSkill);
|
|
739
|
+
|
|
740
|
+
// src/entities/job-entity.ts
|
|
693
741
|
var JobLocation = /* @__PURE__ */ ((JobLocation2) => {
|
|
694
742
|
JobLocation2["ONSITE"] = "ONSITE";
|
|
695
743
|
JobLocation2["REMOTE"] = "REMOTE";
|
|
@@ -713,28 +761,28 @@ var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
|
|
|
713
761
|
var Job = class extends BaseEntity {
|
|
714
762
|
};
|
|
715
763
|
__decorateClass([
|
|
716
|
-
|
|
764
|
+
Column8({ name: "job_id", type: "varchar", unique: true, nullable: true })
|
|
717
765
|
], Job.prototype, "jobId", 2);
|
|
718
766
|
// individual index to find jobs by user
|
|
719
767
|
__decorateClass([
|
|
720
|
-
|
|
721
|
-
|
|
768
|
+
Column8({ name: "user_id", type: "integer", nullable: true }),
|
|
769
|
+
Index4()
|
|
722
770
|
], Job.prototype, "userId", 2);
|
|
723
771
|
__decorateClass([
|
|
724
|
-
|
|
725
|
-
|
|
772
|
+
ManyToOne6(() => User, (user) => user.jobs),
|
|
773
|
+
JoinColumn6({ name: "user_id" })
|
|
726
774
|
], Job.prototype, "user", 2);
|
|
727
775
|
__decorateClass([
|
|
728
|
-
|
|
776
|
+
Column8({ name: "job_role", type: "varchar", nullable: true })
|
|
729
777
|
], Job.prototype, "jobRole", 2);
|
|
730
778
|
__decorateClass([
|
|
731
|
-
|
|
779
|
+
Column8({ name: "note", type: "varchar", nullable: true })
|
|
732
780
|
], Job.prototype, "note", 2);
|
|
733
781
|
__decorateClass([
|
|
734
|
-
|
|
782
|
+
Column8({ name: "openings", type: "integer", default: 0 })
|
|
735
783
|
], Job.prototype, "openings", 2);
|
|
736
784
|
__decorateClass([
|
|
737
|
-
|
|
785
|
+
Column8({
|
|
738
786
|
name: "location",
|
|
739
787
|
type: "enum",
|
|
740
788
|
enum: JobLocation,
|
|
@@ -742,7 +790,7 @@ __decorateClass([
|
|
|
742
790
|
})
|
|
743
791
|
], Job.prototype, "location", 2);
|
|
744
792
|
__decorateClass([
|
|
745
|
-
|
|
793
|
+
Column8({
|
|
746
794
|
name: "type_of_employment",
|
|
747
795
|
type: "enum",
|
|
748
796
|
enum: TypeOfEmployment,
|
|
@@ -750,21 +798,24 @@ __decorateClass([
|
|
|
750
798
|
})
|
|
751
799
|
], Job.prototype, "typeOfEmployment", 2);
|
|
752
800
|
__decorateClass([
|
|
753
|
-
|
|
801
|
+
Column8({ name: "additional_comment", type: "varchar", nullable: true })
|
|
754
802
|
], Job.prototype, "additionalComment", 2);
|
|
755
803
|
__decorateClass([
|
|
756
|
-
|
|
804
|
+
Column8({ name: "description", type: "varchar", nullable: true })
|
|
757
805
|
], Job.prototype, "description", 2);
|
|
758
806
|
__decorateClass([
|
|
759
|
-
|
|
807
|
+
Column8({
|
|
760
808
|
name: "status",
|
|
761
809
|
type: "enum",
|
|
762
810
|
enum: JobStatus,
|
|
763
811
|
default: "DRAFT" /* DRAFT */
|
|
764
812
|
})
|
|
765
813
|
], Job.prototype, "status", 2);
|
|
814
|
+
__decorateClass([
|
|
815
|
+
OneToMany3(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
|
|
816
|
+
], Job.prototype, "jobSkills", 2);
|
|
766
817
|
Job = __decorateClass([
|
|
767
|
-
|
|
818
|
+
Entity7("jobs")
|
|
768
819
|
], Job);
|
|
769
820
|
|
|
770
821
|
// src/entities/user.entity.ts
|
|
@@ -785,40 +836,40 @@ var AccountStatus = /* @__PURE__ */ ((AccountStatus2) => {
|
|
|
785
836
|
var User = class extends BaseEntity {
|
|
786
837
|
};
|
|
787
838
|
__decorateClass([
|
|
788
|
-
|
|
839
|
+
Column9({ name: "unique_id", type: "varchar", unique: true })
|
|
789
840
|
], User.prototype, "uniqueId", 2);
|
|
790
841
|
__decorateClass([
|
|
791
|
-
|
|
842
|
+
Column9({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
792
843
|
], User.prototype, "username", 2);
|
|
793
844
|
__decorateClass([
|
|
794
|
-
|
|
845
|
+
Column9({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
795
846
|
], User.prototype, "firstName", 2);
|
|
796
847
|
__decorateClass([
|
|
797
|
-
|
|
848
|
+
Column9({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
798
849
|
], User.prototype, "lastName", 2);
|
|
799
850
|
__decorateClass([
|
|
800
|
-
|
|
851
|
+
Column9({ name: "date_of_birth", type: "date", nullable: true })
|
|
801
852
|
], User.prototype, "dateOfBirth", 2);
|
|
802
853
|
__decorateClass([
|
|
803
|
-
|
|
854
|
+
Column9({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
804
855
|
], User.prototype, "gender", 2);
|
|
805
856
|
__decorateClass([
|
|
806
|
-
|
|
857
|
+
Column9({ name: "profile_picture_url", type: "text", nullable: true })
|
|
807
858
|
], User.prototype, "profilePictureUrl", 2);
|
|
808
859
|
__decorateClass([
|
|
809
|
-
|
|
860
|
+
Column9({ name: "email", type: "varchar", unique: true })
|
|
810
861
|
], User.prototype, "email", 2);
|
|
811
862
|
__decorateClass([
|
|
812
|
-
|
|
863
|
+
Column9({ name: "mobile_code", type: "varchar", nullable: true })
|
|
813
864
|
], User.prototype, "mobileCode", 2);
|
|
814
865
|
__decorateClass([
|
|
815
|
-
|
|
866
|
+
Column9({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
816
867
|
], User.prototype, "mobile", 2);
|
|
817
868
|
__decorateClass([
|
|
818
|
-
|
|
869
|
+
Column9({ name: "password", type: "varchar" })
|
|
819
870
|
], User.prototype, "password", 2);
|
|
820
871
|
__decorateClass([
|
|
821
|
-
|
|
872
|
+
Column9({
|
|
822
873
|
name: "account_type",
|
|
823
874
|
type: "enum",
|
|
824
875
|
enum: AccountType,
|
|
@@ -826,7 +877,7 @@ __decorateClass([
|
|
|
826
877
|
})
|
|
827
878
|
], User.prototype, "accountType", 2);
|
|
828
879
|
__decorateClass([
|
|
829
|
-
|
|
880
|
+
Column9({
|
|
830
881
|
name: "account_status",
|
|
831
882
|
type: "enum",
|
|
832
883
|
enum: AccountStatus,
|
|
@@ -834,29 +885,29 @@ __decorateClass([
|
|
|
834
885
|
})
|
|
835
886
|
], User.prototype, "accountStatus", 2);
|
|
836
887
|
__decorateClass([
|
|
837
|
-
|
|
888
|
+
Column9({ name: "is_email_verified", type: "boolean", default: false })
|
|
838
889
|
], User.prototype, "isEmailVerified", 2);
|
|
839
890
|
__decorateClass([
|
|
840
|
-
|
|
891
|
+
Column9({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
841
892
|
], User.prototype, "isMobileVerified", 2);
|
|
842
893
|
__decorateClass([
|
|
843
|
-
|
|
894
|
+
Column9({
|
|
844
895
|
name: "last_login_at",
|
|
845
896
|
type: "timestamp with time zone",
|
|
846
897
|
nullable: true
|
|
847
898
|
})
|
|
848
899
|
], User.prototype, "lastLoginAt", 2);
|
|
849
900
|
__decorateClass([
|
|
850
|
-
|
|
901
|
+
Column9({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
851
902
|
], User.prototype, "lastLoginIp", 2);
|
|
852
903
|
__decorateClass([
|
|
853
|
-
|
|
904
|
+
OneToMany4(() => RefreshToken, (token) => token.user)
|
|
854
905
|
], User.prototype, "refreshTokens", 2);
|
|
855
906
|
__decorateClass([
|
|
856
|
-
|
|
907
|
+
OneToMany4(() => Otp, (otp) => otp.user)
|
|
857
908
|
], User.prototype, "otps", 2);
|
|
858
909
|
__decorateClass([
|
|
859
|
-
|
|
910
|
+
OneToMany4(() => ResumeParserLog, (resumeParser) => resumeParser.user)
|
|
860
911
|
], User.prototype, "resumeParserLogs", 2);
|
|
861
912
|
__decorateClass([
|
|
862
913
|
OneToOne(
|
|
@@ -868,10 +919,10 @@ __decorateClass([
|
|
|
868
919
|
OneToOne(() => CompanyProfile, (companyProfile) => companyProfile.user)
|
|
869
920
|
], User.prototype, "companyProfile", 2);
|
|
870
921
|
__decorateClass([
|
|
871
|
-
|
|
922
|
+
OneToMany4(() => Job, (job) => job.user)
|
|
872
923
|
], User.prototype, "jobs", 2);
|
|
873
924
|
User = __decorateClass([
|
|
874
|
-
|
|
925
|
+
Entity8("users")
|
|
875
926
|
], User);
|
|
876
927
|
|
|
877
928
|
// src/entities/company-profile.entity.ts
|
|
@@ -898,42 +949,42 @@ var CompanyProfile = class extends BaseEntity {
|
|
|
898
949
|
};
|
|
899
950
|
// individual index to find company profile by user
|
|
900
951
|
__decorateClass([
|
|
901
|
-
|
|
902
|
-
|
|
952
|
+
Column10({ name: "user_id", type: "integer", nullable: true }),
|
|
953
|
+
Index5()
|
|
903
954
|
], CompanyProfile.prototype, "userId", 2);
|
|
904
955
|
__decorateClass([
|
|
905
|
-
|
|
906
|
-
|
|
956
|
+
ManyToOne7(() => User, (user) => user.otps),
|
|
957
|
+
JoinColumn7({ name: "user_id" })
|
|
907
958
|
], CompanyProfile.prototype, "user", 2);
|
|
908
959
|
__decorateClass([
|
|
909
|
-
|
|
960
|
+
Column10({ name: "company_name", type: "varchar", nullable: true })
|
|
910
961
|
], CompanyProfile.prototype, "companyName", 2);
|
|
911
962
|
__decorateClass([
|
|
912
|
-
|
|
963
|
+
Column10({ name: "bio", type: "varchar", nullable: true })
|
|
913
964
|
], CompanyProfile.prototype, "bio", 2);
|
|
914
965
|
__decorateClass([
|
|
915
|
-
|
|
966
|
+
Column10({ name: "website", type: "varchar", nullable: true })
|
|
916
967
|
], CompanyProfile.prototype, "webSite", 2);
|
|
917
968
|
__decorateClass([
|
|
918
|
-
|
|
969
|
+
Column10({ name: "about_company", type: "varchar", nullable: true })
|
|
919
970
|
], CompanyProfile.prototype, "aboutCompany", 2);
|
|
920
971
|
__decorateClass([
|
|
921
|
-
|
|
972
|
+
Column10({ name: "is_service_aggrement_signed", type: "boolean", default: false })
|
|
922
973
|
], CompanyProfile.prototype, "isServiceAgreementSigned", 2);
|
|
923
974
|
__decorateClass([
|
|
924
|
-
|
|
975
|
+
Column10({ name: "company_address", type: "varchar", nullable: true })
|
|
925
976
|
], CompanyProfile.prototype, "companyAddress", 2);
|
|
926
977
|
__decorateClass([
|
|
927
|
-
|
|
978
|
+
Column10({ name: "phone_number", type: "varchar", nullable: true })
|
|
928
979
|
], CompanyProfile.prototype, "phoneNumber", 2);
|
|
929
980
|
__decorateClass([
|
|
930
|
-
|
|
981
|
+
Column10({ name: "skills", type: "text", nullable: true })
|
|
931
982
|
], CompanyProfile.prototype, "skills", 2);
|
|
932
983
|
__decorateClass([
|
|
933
|
-
|
|
984
|
+
Column10({ name: "required_freelancer", type: "varchar", nullable: true })
|
|
934
985
|
], CompanyProfile.prototype, "requiredFreelancer", 2);
|
|
935
986
|
__decorateClass([
|
|
936
|
-
|
|
987
|
+
Column10({
|
|
937
988
|
name: "kind_of_hiring",
|
|
938
989
|
type: "enum",
|
|
939
990
|
enum: KindOfHire,
|
|
@@ -941,7 +992,7 @@ __decorateClass([
|
|
|
941
992
|
})
|
|
942
993
|
], CompanyProfile.prototype, "kindOfHiring", 2);
|
|
943
994
|
__decorateClass([
|
|
944
|
-
|
|
995
|
+
Column10({
|
|
945
996
|
name: "mode_of_hire",
|
|
946
997
|
type: "enum",
|
|
947
998
|
enum: ModeOfHire,
|
|
@@ -949,7 +1000,7 @@ __decorateClass([
|
|
|
949
1000
|
})
|
|
950
1001
|
], CompanyProfile.prototype, "modeOfHire", 2);
|
|
951
1002
|
__decorateClass([
|
|
952
|
-
|
|
1003
|
+
Column10({
|
|
953
1004
|
name: "found_us_on",
|
|
954
1005
|
type: "enum",
|
|
955
1006
|
enum: FromUsOn,
|
|
@@ -957,7 +1008,7 @@ __decorateClass([
|
|
|
957
1008
|
})
|
|
958
1009
|
], CompanyProfile.prototype, "foundUsOn", 2);
|
|
959
1010
|
CompanyProfile = __decorateClass([
|
|
960
|
-
|
|
1011
|
+
Entity9("company_profiles")
|
|
961
1012
|
], CompanyProfile);
|
|
962
1013
|
|
|
963
1014
|
// src/modules/user/client-profile/dto/update-client-profile.dto.ts
|
|
@@ -1227,7 +1278,7 @@ var JobRMQAdapter = (mode = "microservice") => {
|
|
|
1227
1278
|
};
|
|
1228
1279
|
|
|
1229
1280
|
// src/entities/question.entity.ts
|
|
1230
|
-
import { Entity as
|
|
1281
|
+
import { Entity as Entity10, Column as Column11 } from "typeorm";
|
|
1231
1282
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
1232
1283
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
1233
1284
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -1236,16 +1287,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
1236
1287
|
var Question = class extends BaseEntity {
|
|
1237
1288
|
};
|
|
1238
1289
|
__decorateClass([
|
|
1239
|
-
|
|
1290
|
+
Column11({ name: "question", type: "varchar" })
|
|
1240
1291
|
], Question.prototype, "question", 2);
|
|
1241
1292
|
__decorateClass([
|
|
1242
|
-
|
|
1293
|
+
Column11({ name: "hint", type: "varchar", nullable: true })
|
|
1243
1294
|
], Question.prototype, "hint", 2);
|
|
1244
1295
|
__decorateClass([
|
|
1245
|
-
|
|
1296
|
+
Column11({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
1246
1297
|
], Question.prototype, "slug", 2);
|
|
1247
1298
|
__decorateClass([
|
|
1248
|
-
|
|
1299
|
+
Column11({
|
|
1249
1300
|
name: "question_for",
|
|
1250
1301
|
type: "enum",
|
|
1251
1302
|
enum: QuestionFor,
|
|
@@ -1253,33 +1304,33 @@ __decorateClass([
|
|
|
1253
1304
|
})
|
|
1254
1305
|
], Question.prototype, "questionFor", 2);
|
|
1255
1306
|
__decorateClass([
|
|
1256
|
-
|
|
1307
|
+
Column11({ name: "type", type: "varchar", nullable: true })
|
|
1257
1308
|
], Question.prototype, "type", 2);
|
|
1258
1309
|
__decorateClass([
|
|
1259
|
-
|
|
1310
|
+
Column11({ name: "options", type: "jsonb", nullable: true })
|
|
1260
1311
|
], Question.prototype, "options", 2);
|
|
1261
1312
|
__decorateClass([
|
|
1262
|
-
|
|
1313
|
+
Column11({ name: "is_active", type: "boolean", default: false })
|
|
1263
1314
|
], Question.prototype, "isActive", 2);
|
|
1264
1315
|
Question = __decorateClass([
|
|
1265
|
-
|
|
1316
|
+
Entity10("questions")
|
|
1266
1317
|
], Question);
|
|
1267
1318
|
|
|
1268
1319
|
// src/entities/job-role.entity.ts
|
|
1269
|
-
import { Entity as
|
|
1320
|
+
import { Entity as Entity11, Column as Column12 } from "typeorm";
|
|
1270
1321
|
var JobRoles = class extends BaseEntity {
|
|
1271
1322
|
};
|
|
1272
1323
|
__decorateClass([
|
|
1273
|
-
|
|
1324
|
+
Column12({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
1274
1325
|
], JobRoles.prototype, "slug", 2);
|
|
1275
1326
|
__decorateClass([
|
|
1276
|
-
|
|
1327
|
+
Column12({ name: "name", type: "varchar", nullable: true })
|
|
1277
1328
|
], JobRoles.prototype, "name", 2);
|
|
1278
1329
|
__decorateClass([
|
|
1279
|
-
|
|
1330
|
+
Column12({ name: "is_active", type: "boolean", default: true })
|
|
1280
1331
|
], JobRoles.prototype, "isActive", 2);
|
|
1281
1332
|
JobRoles = __decorateClass([
|
|
1282
|
-
|
|
1333
|
+
Entity11("job_roles")
|
|
1283
1334
|
], JobRoles);
|
|
1284
1335
|
export {
|
|
1285
1336
|
AUTHENTICATION_PATTERN,
|
|
@@ -1325,6 +1376,7 @@ export {
|
|
|
1325
1376
|
RefreshToken,
|
|
1326
1377
|
ResumeParserLog,
|
|
1327
1378
|
SUBADMIN_PATTERN,
|
|
1379
|
+
Skill,
|
|
1328
1380
|
TypeOfEmployment,
|
|
1329
1381
|
UpdateCompanyProfileDto,
|
|
1330
1382
|
UpdateSubAdminAccountStatusDto,
|