@experts_hub/shared 1.0.63 → 1.0.65
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-role.entity.d.ts +6 -0
- package/dist/entities/user.entity.d.ts +2 -0
- package/dist/index.d.mts +42 -28
- package/dist/index.d.ts +42 -28
- package/dist/index.js +114 -101
- package/dist/index.mjs +115 -103
- package/dist/modules/index.d.ts +1 -0
- package/dist/modules/job/index.d.ts +2 -0
- package/dist/modules/job/job.interface.d.ts +8 -0
- package/dist/modules/job/pattern/pattern.d.ts +3 -0
- package/package.json +1 -1
|
@@ -3,6 +3,7 @@ import { RefreshToken } from "./refresh-token.entity";
|
|
|
3
3
|
import { ResumeParserLog } from "./resume-parser-log.entity";
|
|
4
4
|
import { Otp } from "./otp.entity";
|
|
5
5
|
import { FreelancerProfile } from "./freelancer-profile.entity";
|
|
6
|
+
import { CompanyProfile } from "./company-profile.entity";
|
|
6
7
|
export declare enum AccountType {
|
|
7
8
|
ADMIN = "ADMIN",
|
|
8
9
|
SUB_ADMIN = "SUB_ADMIN",
|
|
@@ -37,4 +38,5 @@ export declare class User extends BaseEntity {
|
|
|
37
38
|
otps: Otp[];
|
|
38
39
|
resumeParserLogs: ResumeParserLog[];
|
|
39
40
|
freelancerProfile: FreelancerProfile;
|
|
41
|
+
companyProfile: CompanyProfile;
|
|
40
42
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -232,6 +232,19 @@ interface IFetchQuestionResponse {
|
|
|
232
232
|
data: any;
|
|
233
233
|
}
|
|
234
234
|
|
|
235
|
+
declare const JOB_PATTERN: {
|
|
236
|
+
fetchJobRoles: string;
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
interface IFetchJobRoleQuery {
|
|
240
|
+
}
|
|
241
|
+
interface IFetchJobRoleResponse {
|
|
242
|
+
statusCode: number;
|
|
243
|
+
status: boolean;
|
|
244
|
+
message: string;
|
|
245
|
+
data: any;
|
|
246
|
+
}
|
|
247
|
+
|
|
235
248
|
declare const UserTCPAdapter: () => MicroserviceOptions;
|
|
236
249
|
|
|
237
250
|
declare const JobTCPAdapter: () => MicroserviceOptions;
|
|
@@ -318,6 +331,33 @@ declare class FreelancerProfile extends BaseEntity {
|
|
|
318
331
|
portfolioLink: string;
|
|
319
332
|
}
|
|
320
333
|
|
|
334
|
+
declare enum KindOfHire {
|
|
335
|
+
FULLTIME = "FULLTIME",
|
|
336
|
+
SHORTTIME = "SHORTTIME",
|
|
337
|
+
BOTH = "BOTH"
|
|
338
|
+
}
|
|
339
|
+
declare enum ModeOfHire {
|
|
340
|
+
ONSITE = "ONSITE",
|
|
341
|
+
REMOTE = "REMOTE",
|
|
342
|
+
BOTH = "BOTH"
|
|
343
|
+
}
|
|
344
|
+
declare enum FromUsOn {
|
|
345
|
+
LINKEDIN = "LINKEDIN",
|
|
346
|
+
GOOGLE = "GOOGLE",
|
|
347
|
+
REFERRAL = "REFERRAL",
|
|
348
|
+
OTHER = "OTHER"
|
|
349
|
+
}
|
|
350
|
+
declare class CompanyProfile extends BaseEntity {
|
|
351
|
+
userId: number;
|
|
352
|
+
user: User;
|
|
353
|
+
companyName: string;
|
|
354
|
+
skills: string[];
|
|
355
|
+
requiredFreelancer: string;
|
|
356
|
+
kindOfHiring: KindOfHire;
|
|
357
|
+
modeOfHire: ModeOfHire;
|
|
358
|
+
foundUsOn: FromUsOn;
|
|
359
|
+
}
|
|
360
|
+
|
|
321
361
|
declare enum AccountType {
|
|
322
362
|
ADMIN = "ADMIN",
|
|
323
363
|
SUB_ADMIN = "SUB_ADMIN",
|
|
@@ -352,6 +392,7 @@ declare class User extends BaseEntity {
|
|
|
352
392
|
otps: Otp[];
|
|
353
393
|
resumeParserLogs: ResumeParserLog[];
|
|
354
394
|
freelancerProfile: FreelancerProfile;
|
|
395
|
+
companyProfile: CompanyProfile;
|
|
355
396
|
}
|
|
356
397
|
|
|
357
398
|
declare enum QuestionFor {
|
|
@@ -372,31 +413,4 @@ declare class Question extends BaseEntity {
|
|
|
372
413
|
isActive: boolean;
|
|
373
414
|
}
|
|
374
415
|
|
|
375
|
-
|
|
376
|
-
FULLTIME = "FULLTIME",
|
|
377
|
-
SHORTTIME = "SHORTTIME",
|
|
378
|
-
BOTH = "BOTH"
|
|
379
|
-
}
|
|
380
|
-
declare enum ModeOfHire {
|
|
381
|
-
ONSITE = "ONSITE",
|
|
382
|
-
REMOTE = "REMOTE",
|
|
383
|
-
BOTH = "BOTH"
|
|
384
|
-
}
|
|
385
|
-
declare enum FromUsOn {
|
|
386
|
-
LINKEDIN = "LINKEDIN",
|
|
387
|
-
GOOGLE = "GOOGLE",
|
|
388
|
-
REFERRAL = "REFERRAL",
|
|
389
|
-
OTHER = "OTHER"
|
|
390
|
-
}
|
|
391
|
-
declare class CompanyProfile extends BaseEntity {
|
|
392
|
-
userId: number;
|
|
393
|
-
user: User;
|
|
394
|
-
companyName: string;
|
|
395
|
-
skills: string[];
|
|
396
|
-
requiredFreelancer: string;
|
|
397
|
-
kindOfHiring: KindOfHire;
|
|
398
|
-
modeOfHire: ModeOfHire;
|
|
399
|
-
foundUsOn: FromUsOn;
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JobRMQAdapter, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NatureOfWork, ONBOARDING_PATTERN, OTP_PATTERN, Otp, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
|
416
|
+
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchJobRoleQuery, type IFetchJobRoleResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JOB_PATTERN, JobRMQAdapter, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NatureOfWork, ONBOARDING_PATTERN, OTP_PATTERN, Otp, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
package/dist/index.d.ts
CHANGED
|
@@ -232,6 +232,19 @@ interface IFetchQuestionResponse {
|
|
|
232
232
|
data: any;
|
|
233
233
|
}
|
|
234
234
|
|
|
235
|
+
declare const JOB_PATTERN: {
|
|
236
|
+
fetchJobRoles: string;
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
interface IFetchJobRoleQuery {
|
|
240
|
+
}
|
|
241
|
+
interface IFetchJobRoleResponse {
|
|
242
|
+
statusCode: number;
|
|
243
|
+
status: boolean;
|
|
244
|
+
message: string;
|
|
245
|
+
data: any;
|
|
246
|
+
}
|
|
247
|
+
|
|
235
248
|
declare const UserTCPAdapter: () => MicroserviceOptions;
|
|
236
249
|
|
|
237
250
|
declare const JobTCPAdapter: () => MicroserviceOptions;
|
|
@@ -318,6 +331,33 @@ declare class FreelancerProfile extends BaseEntity {
|
|
|
318
331
|
portfolioLink: string;
|
|
319
332
|
}
|
|
320
333
|
|
|
334
|
+
declare enum KindOfHire {
|
|
335
|
+
FULLTIME = "FULLTIME",
|
|
336
|
+
SHORTTIME = "SHORTTIME",
|
|
337
|
+
BOTH = "BOTH"
|
|
338
|
+
}
|
|
339
|
+
declare enum ModeOfHire {
|
|
340
|
+
ONSITE = "ONSITE",
|
|
341
|
+
REMOTE = "REMOTE",
|
|
342
|
+
BOTH = "BOTH"
|
|
343
|
+
}
|
|
344
|
+
declare enum FromUsOn {
|
|
345
|
+
LINKEDIN = "LINKEDIN",
|
|
346
|
+
GOOGLE = "GOOGLE",
|
|
347
|
+
REFERRAL = "REFERRAL",
|
|
348
|
+
OTHER = "OTHER"
|
|
349
|
+
}
|
|
350
|
+
declare class CompanyProfile extends BaseEntity {
|
|
351
|
+
userId: number;
|
|
352
|
+
user: User;
|
|
353
|
+
companyName: string;
|
|
354
|
+
skills: string[];
|
|
355
|
+
requiredFreelancer: string;
|
|
356
|
+
kindOfHiring: KindOfHire;
|
|
357
|
+
modeOfHire: ModeOfHire;
|
|
358
|
+
foundUsOn: FromUsOn;
|
|
359
|
+
}
|
|
360
|
+
|
|
321
361
|
declare enum AccountType {
|
|
322
362
|
ADMIN = "ADMIN",
|
|
323
363
|
SUB_ADMIN = "SUB_ADMIN",
|
|
@@ -352,6 +392,7 @@ declare class User extends BaseEntity {
|
|
|
352
392
|
otps: Otp[];
|
|
353
393
|
resumeParserLogs: ResumeParserLog[];
|
|
354
394
|
freelancerProfile: FreelancerProfile;
|
|
395
|
+
companyProfile: CompanyProfile;
|
|
355
396
|
}
|
|
356
397
|
|
|
357
398
|
declare enum QuestionFor {
|
|
@@ -372,31 +413,4 @@ declare class Question extends BaseEntity {
|
|
|
372
413
|
isActive: boolean;
|
|
373
414
|
}
|
|
374
415
|
|
|
375
|
-
|
|
376
|
-
FULLTIME = "FULLTIME",
|
|
377
|
-
SHORTTIME = "SHORTTIME",
|
|
378
|
-
BOTH = "BOTH"
|
|
379
|
-
}
|
|
380
|
-
declare enum ModeOfHire {
|
|
381
|
-
ONSITE = "ONSITE",
|
|
382
|
-
REMOTE = "REMOTE",
|
|
383
|
-
BOTH = "BOTH"
|
|
384
|
-
}
|
|
385
|
-
declare enum FromUsOn {
|
|
386
|
-
LINKEDIN = "LINKEDIN",
|
|
387
|
-
GOOGLE = "GOOGLE",
|
|
388
|
-
REFERRAL = "REFERRAL",
|
|
389
|
-
OTHER = "OTHER"
|
|
390
|
-
}
|
|
391
|
-
declare class CompanyProfile extends BaseEntity {
|
|
392
|
-
userId: number;
|
|
393
|
-
user: User;
|
|
394
|
-
companyName: string;
|
|
395
|
-
skills: string[];
|
|
396
|
-
requiredFreelancer: string;
|
|
397
|
-
kindOfHiring: KindOfHire;
|
|
398
|
-
modeOfHire: ModeOfHire;
|
|
399
|
-
foundUsOn: FromUsOn;
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JobRMQAdapter, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NatureOfWork, ONBOARDING_PATTERN, OTP_PATTERN, Otp, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
|
416
|
+
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchJobRoleQuery, type IFetchJobRoleResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JOB_PATTERN, JobRMQAdapter, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NatureOfWork, ONBOARDING_PATTERN, OTP_PATTERN, Otp, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
package/dist/index.js
CHANGED
|
@@ -43,6 +43,7 @@ __export(index_exports, {
|
|
|
43
43
|
FreelancerUploadResumeDto: () => FreelancerUploadResumeDto,
|
|
44
44
|
FreelancerWorkShowcaseDto: () => FreelancerWorkShowcaseDto,
|
|
45
45
|
FromUsOn: () => FromUsOn,
|
|
46
|
+
JOB_PATTERN: () => JOB_PATTERN,
|
|
46
47
|
JobRMQAdapter: () => JobRMQAdapter,
|
|
47
48
|
JobTCPAdapter: () => JobTCPAdapter,
|
|
48
49
|
KindOfHire: () => KindOfHire,
|
|
@@ -427,6 +428,11 @@ __decorateClass([
|
|
|
427
428
|
(0, import_class_validator15.IsBoolean)({ message: "Whether the question status active" })
|
|
428
429
|
], CreateQuestionDto.prototype, "isActive", 2);
|
|
429
430
|
|
|
431
|
+
// src/modules/job/pattern/pattern.ts
|
|
432
|
+
var JOB_PATTERN = {
|
|
433
|
+
fetchJobRoles: "fetch.jobs.roles"
|
|
434
|
+
};
|
|
435
|
+
|
|
430
436
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
431
437
|
var import_dotenv = require("dotenv");
|
|
432
438
|
var import_microservices = require("@nestjs/microservices");
|
|
@@ -609,7 +615,7 @@ __decorateClass([
|
|
|
609
615
|
], BaseEntity.prototype, "deletedAt", 2);
|
|
610
616
|
|
|
611
617
|
// src/entities/user.entity.ts
|
|
612
|
-
var
|
|
618
|
+
var import_typeorm7 = require("typeorm");
|
|
613
619
|
|
|
614
620
|
// src/entities/refresh-token.entity.ts
|
|
615
621
|
var import_typeorm2 = require("typeorm");
|
|
@@ -817,6 +823,75 @@ FreelancerProfile = __decorateClass([
|
|
|
817
823
|
(0, import_typeorm5.Entity)("freelancer_profiles")
|
|
818
824
|
], FreelancerProfile);
|
|
819
825
|
|
|
826
|
+
// src/entities/company-profile.entity.ts
|
|
827
|
+
var import_typeorm6 = require("typeorm");
|
|
828
|
+
var KindOfHire = /* @__PURE__ */ ((KindOfHire2) => {
|
|
829
|
+
KindOfHire2["FULLTIME"] = "FULLTIME";
|
|
830
|
+
KindOfHire2["SHORTTIME"] = "SHORTTIME";
|
|
831
|
+
KindOfHire2["BOTH"] = "BOTH";
|
|
832
|
+
return KindOfHire2;
|
|
833
|
+
})(KindOfHire || {});
|
|
834
|
+
var ModeOfHire = /* @__PURE__ */ ((ModeOfHire2) => {
|
|
835
|
+
ModeOfHire2["ONSITE"] = "ONSITE";
|
|
836
|
+
ModeOfHire2["REMOTE"] = "REMOTE";
|
|
837
|
+
ModeOfHire2["BOTH"] = "BOTH";
|
|
838
|
+
return ModeOfHire2;
|
|
839
|
+
})(ModeOfHire || {});
|
|
840
|
+
var FromUsOn = /* @__PURE__ */ ((FromUsOn2) => {
|
|
841
|
+
FromUsOn2["LINKEDIN"] = "LINKEDIN";
|
|
842
|
+
FromUsOn2["GOOGLE"] = "GOOGLE";
|
|
843
|
+
FromUsOn2["REFERRAL"] = "REFERRAL";
|
|
844
|
+
FromUsOn2["OTHER"] = "OTHER";
|
|
845
|
+
return FromUsOn2;
|
|
846
|
+
})(FromUsOn || {});
|
|
847
|
+
var CompanyProfile = class extends BaseEntity {
|
|
848
|
+
};
|
|
849
|
+
// individual index to find company profile by user
|
|
850
|
+
__decorateClass([
|
|
851
|
+
(0, import_typeorm6.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
852
|
+
(0, import_typeorm6.Index)()
|
|
853
|
+
], CompanyProfile.prototype, "userId", 2);
|
|
854
|
+
__decorateClass([
|
|
855
|
+
(0, import_typeorm6.ManyToOne)(() => User, (user) => user.otps),
|
|
856
|
+
(0, import_typeorm6.JoinColumn)({ name: "user_id" })
|
|
857
|
+
], CompanyProfile.prototype, "user", 2);
|
|
858
|
+
__decorateClass([
|
|
859
|
+
(0, import_typeorm6.Column)({ name: "company_name", type: "varchar", nullable: true })
|
|
860
|
+
], CompanyProfile.prototype, "companyName", 2);
|
|
861
|
+
__decorateClass([
|
|
862
|
+
(0, import_typeorm6.Column)({ name: "skills", type: "text", nullable: true })
|
|
863
|
+
], CompanyProfile.prototype, "skills", 2);
|
|
864
|
+
__decorateClass([
|
|
865
|
+
(0, import_typeorm6.Column)({ name: "required_freelancer", type: "varchar", nullable: true })
|
|
866
|
+
], CompanyProfile.prototype, "requiredFreelancer", 2);
|
|
867
|
+
__decorateClass([
|
|
868
|
+
(0, import_typeorm6.Column)({
|
|
869
|
+
name: "kind_of_hiring",
|
|
870
|
+
type: "enum",
|
|
871
|
+
enum: KindOfHire,
|
|
872
|
+
nullable: true
|
|
873
|
+
})
|
|
874
|
+
], CompanyProfile.prototype, "kindOfHiring", 2);
|
|
875
|
+
__decorateClass([
|
|
876
|
+
(0, import_typeorm6.Column)({
|
|
877
|
+
name: "mode_of_hire",
|
|
878
|
+
type: "enum",
|
|
879
|
+
enum: ModeOfHire,
|
|
880
|
+
nullable: true
|
|
881
|
+
})
|
|
882
|
+
], CompanyProfile.prototype, "modeOfHire", 2);
|
|
883
|
+
__decorateClass([
|
|
884
|
+
(0, import_typeorm6.Column)({
|
|
885
|
+
name: "found_us_on",
|
|
886
|
+
type: "enum",
|
|
887
|
+
enum: FromUsOn,
|
|
888
|
+
nullable: true
|
|
889
|
+
})
|
|
890
|
+
], CompanyProfile.prototype, "foundUsOn", 2);
|
|
891
|
+
CompanyProfile = __decorateClass([
|
|
892
|
+
(0, import_typeorm6.Entity)("company_profiles")
|
|
893
|
+
], CompanyProfile);
|
|
894
|
+
|
|
820
895
|
// src/entities/user.entity.ts
|
|
821
896
|
var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
822
897
|
AccountType2["ADMIN"] = "ADMIN";
|
|
@@ -835,40 +910,40 @@ var AccountStatus = /* @__PURE__ */ ((AccountStatus2) => {
|
|
|
835
910
|
var User = class extends BaseEntity {
|
|
836
911
|
};
|
|
837
912
|
__decorateClass([
|
|
838
|
-
(0,
|
|
913
|
+
(0, import_typeorm7.Column)({ name: "unique_id", type: "varchar", unique: true })
|
|
839
914
|
], User.prototype, "uniqueId", 2);
|
|
840
915
|
__decorateClass([
|
|
841
|
-
(0,
|
|
916
|
+
(0, import_typeorm7.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
842
917
|
], User.prototype, "username", 2);
|
|
843
918
|
__decorateClass([
|
|
844
|
-
(0,
|
|
919
|
+
(0, import_typeorm7.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
845
920
|
], User.prototype, "firstName", 2);
|
|
846
921
|
__decorateClass([
|
|
847
|
-
(0,
|
|
922
|
+
(0, import_typeorm7.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
848
923
|
], User.prototype, "lastName", 2);
|
|
849
924
|
__decorateClass([
|
|
850
|
-
(0,
|
|
925
|
+
(0, import_typeorm7.Column)({ name: "date_of_birth", type: "date", nullable: true })
|
|
851
926
|
], User.prototype, "dateOfBirth", 2);
|
|
852
927
|
__decorateClass([
|
|
853
|
-
(0,
|
|
928
|
+
(0, import_typeorm7.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
854
929
|
], User.prototype, "gender", 2);
|
|
855
930
|
__decorateClass([
|
|
856
|
-
(0,
|
|
931
|
+
(0, import_typeorm7.Column)({ name: "profile_picture_url", type: "text", nullable: true })
|
|
857
932
|
], User.prototype, "profilePictureUrl", 2);
|
|
858
933
|
__decorateClass([
|
|
859
|
-
(0,
|
|
934
|
+
(0, import_typeorm7.Column)({ name: "email", type: "varchar", unique: true })
|
|
860
935
|
], User.prototype, "email", 2);
|
|
861
936
|
__decorateClass([
|
|
862
|
-
(0,
|
|
937
|
+
(0, import_typeorm7.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
863
938
|
], User.prototype, "mobileCode", 2);
|
|
864
939
|
__decorateClass([
|
|
865
|
-
(0,
|
|
940
|
+
(0, import_typeorm7.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
866
941
|
], User.prototype, "mobile", 2);
|
|
867
942
|
__decorateClass([
|
|
868
|
-
(0,
|
|
943
|
+
(0, import_typeorm7.Column)({ name: "password", type: "varchar" })
|
|
869
944
|
], User.prototype, "password", 2);
|
|
870
945
|
__decorateClass([
|
|
871
|
-
(0,
|
|
946
|
+
(0, import_typeorm7.Column)({
|
|
872
947
|
name: "account_type",
|
|
873
948
|
type: "enum",
|
|
874
949
|
enum: AccountType,
|
|
@@ -876,7 +951,7 @@ __decorateClass([
|
|
|
876
951
|
})
|
|
877
952
|
], User.prototype, "accountType", 2);
|
|
878
953
|
__decorateClass([
|
|
879
|
-
(0,
|
|
954
|
+
(0, import_typeorm7.Column)({
|
|
880
955
|
name: "account_status",
|
|
881
956
|
type: "enum",
|
|
882
957
|
enum: AccountStatus,
|
|
@@ -884,42 +959,48 @@ __decorateClass([
|
|
|
884
959
|
})
|
|
885
960
|
], User.prototype, "accountStatus", 2);
|
|
886
961
|
__decorateClass([
|
|
887
|
-
(0,
|
|
962
|
+
(0, import_typeorm7.Column)({ name: "is_email_verified", type: "boolean", default: false })
|
|
888
963
|
], User.prototype, "isEmailVerified", 2);
|
|
889
964
|
__decorateClass([
|
|
890
|
-
(0,
|
|
965
|
+
(0, import_typeorm7.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
891
966
|
], User.prototype, "isMobileVerified", 2);
|
|
892
967
|
__decorateClass([
|
|
893
|
-
(0,
|
|
968
|
+
(0, import_typeorm7.Column)({
|
|
894
969
|
name: "last_login_at",
|
|
895
970
|
type: "timestamp with time zone",
|
|
896
971
|
nullable: true
|
|
897
972
|
})
|
|
898
973
|
], User.prototype, "lastLoginAt", 2);
|
|
899
974
|
__decorateClass([
|
|
900
|
-
(0,
|
|
975
|
+
(0, import_typeorm7.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
901
976
|
], User.prototype, "lastLoginIp", 2);
|
|
902
977
|
__decorateClass([
|
|
903
|
-
(0,
|
|
978
|
+
(0, import_typeorm7.OneToMany)(() => RefreshToken, (token) => token.user)
|
|
904
979
|
], User.prototype, "refreshTokens", 2);
|
|
905
980
|
__decorateClass([
|
|
906
|
-
(0,
|
|
981
|
+
(0, import_typeorm7.OneToMany)(() => Otp, (otp) => otp.user)
|
|
907
982
|
], User.prototype, "otps", 2);
|
|
908
983
|
__decorateClass([
|
|
909
|
-
(0,
|
|
984
|
+
(0, import_typeorm7.OneToMany)(() => ResumeParserLog, (resumeParser) => resumeParser.user)
|
|
910
985
|
], User.prototype, "resumeParserLogs", 2);
|
|
911
986
|
__decorateClass([
|
|
912
|
-
(0,
|
|
987
|
+
(0, import_typeorm7.OneToOne)(
|
|
913
988
|
() => FreelancerProfile,
|
|
914
989
|
(freelancerProfile) => freelancerProfile.user
|
|
915
990
|
)
|
|
916
991
|
], User.prototype, "freelancerProfile", 2);
|
|
992
|
+
__decorateClass([
|
|
993
|
+
(0, import_typeorm7.OneToOne)(
|
|
994
|
+
() => CompanyProfile,
|
|
995
|
+
(companyProfile) => companyProfile.user
|
|
996
|
+
)
|
|
997
|
+
], User.prototype, "companyProfile", 2);
|
|
917
998
|
User = __decorateClass([
|
|
918
|
-
(0,
|
|
999
|
+
(0, import_typeorm7.Entity)("users")
|
|
919
1000
|
], User);
|
|
920
1001
|
|
|
921
1002
|
// src/entities/question.entity.ts
|
|
922
|
-
var
|
|
1003
|
+
var import_typeorm8 = require("typeorm");
|
|
923
1004
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
924
1005
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
925
1006
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -928,16 +1009,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
928
1009
|
var Question = class extends BaseEntity {
|
|
929
1010
|
};
|
|
930
1011
|
__decorateClass([
|
|
931
|
-
(0,
|
|
1012
|
+
(0, import_typeorm8.Column)({ name: "question", type: "varchar" })
|
|
932
1013
|
], Question.prototype, "question", 2);
|
|
933
1014
|
__decorateClass([
|
|
934
|
-
(0,
|
|
1015
|
+
(0, import_typeorm8.Column)({ name: "hint", type: "varchar", nullable: true })
|
|
935
1016
|
], Question.prototype, "hint", 2);
|
|
936
1017
|
__decorateClass([
|
|
937
|
-
(0,
|
|
1018
|
+
(0, import_typeorm8.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
938
1019
|
], Question.prototype, "slug", 2);
|
|
939
1020
|
__decorateClass([
|
|
940
|
-
(0,
|
|
1021
|
+
(0, import_typeorm8.Column)({
|
|
941
1022
|
name: "question_for",
|
|
942
1023
|
type: "enum",
|
|
943
1024
|
enum: QuestionFor,
|
|
@@ -945,86 +1026,17 @@ __decorateClass([
|
|
|
945
1026
|
})
|
|
946
1027
|
], Question.prototype, "questionFor", 2);
|
|
947
1028
|
__decorateClass([
|
|
948
|
-
(0,
|
|
1029
|
+
(0, import_typeorm8.Column)({ name: "type", type: "varchar", nullable: true })
|
|
949
1030
|
], Question.prototype, "type", 2);
|
|
950
1031
|
__decorateClass([
|
|
951
|
-
(0,
|
|
1032
|
+
(0, import_typeorm8.Column)({ name: "options", type: "jsonb", nullable: true })
|
|
952
1033
|
], Question.prototype, "options", 2);
|
|
953
1034
|
__decorateClass([
|
|
954
|
-
(0,
|
|
1035
|
+
(0, import_typeorm8.Column)({ name: "is_active", type: "boolean", default: false })
|
|
955
1036
|
], Question.prototype, "isActive", 2);
|
|
956
1037
|
Question = __decorateClass([
|
|
957
|
-
(0,
|
|
1038
|
+
(0, import_typeorm8.Entity)("questions")
|
|
958
1039
|
], Question);
|
|
959
|
-
|
|
960
|
-
// src/entities/company-profile.entity.ts
|
|
961
|
-
var import_typeorm8 = require("typeorm");
|
|
962
|
-
var KindOfHire = /* @__PURE__ */ ((KindOfHire2) => {
|
|
963
|
-
KindOfHire2["FULLTIME"] = "FULLTIME";
|
|
964
|
-
KindOfHire2["SHORTTIME"] = "SHORTTIME";
|
|
965
|
-
KindOfHire2["BOTH"] = "BOTH";
|
|
966
|
-
return KindOfHire2;
|
|
967
|
-
})(KindOfHire || {});
|
|
968
|
-
var ModeOfHire = /* @__PURE__ */ ((ModeOfHire2) => {
|
|
969
|
-
ModeOfHire2["ONSITE"] = "ONSITE";
|
|
970
|
-
ModeOfHire2["REMOTE"] = "REMOTE";
|
|
971
|
-
ModeOfHire2["BOTH"] = "BOTH";
|
|
972
|
-
return ModeOfHire2;
|
|
973
|
-
})(ModeOfHire || {});
|
|
974
|
-
var FromUsOn = /* @__PURE__ */ ((FromUsOn2) => {
|
|
975
|
-
FromUsOn2["LINKEDIN"] = "LINKEDIN";
|
|
976
|
-
FromUsOn2["GOOGLE"] = "GOOGLE";
|
|
977
|
-
FromUsOn2["REFERRAL"] = "REFERRAL";
|
|
978
|
-
FromUsOn2["OTHER"] = "OTHER";
|
|
979
|
-
return FromUsOn2;
|
|
980
|
-
})(FromUsOn || {});
|
|
981
|
-
var CompanyProfile = class extends BaseEntity {
|
|
982
|
-
};
|
|
983
|
-
// individual index to find company profile by user
|
|
984
|
-
__decorateClass([
|
|
985
|
-
(0, import_typeorm8.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
986
|
-
(0, import_typeorm8.Index)()
|
|
987
|
-
], CompanyProfile.prototype, "userId", 2);
|
|
988
|
-
__decorateClass([
|
|
989
|
-
(0, import_typeorm8.ManyToOne)(() => User, (user) => user.otps),
|
|
990
|
-
(0, import_typeorm8.JoinColumn)({ name: "user_id" })
|
|
991
|
-
], CompanyProfile.prototype, "user", 2);
|
|
992
|
-
__decorateClass([
|
|
993
|
-
(0, import_typeorm8.Column)({ name: "company_name", type: "varchar", nullable: true })
|
|
994
|
-
], CompanyProfile.prototype, "companyName", 2);
|
|
995
|
-
__decorateClass([
|
|
996
|
-
(0, import_typeorm8.Column)({ name: "skills", type: "text", nullable: true })
|
|
997
|
-
], CompanyProfile.prototype, "skills", 2);
|
|
998
|
-
__decorateClass([
|
|
999
|
-
(0, import_typeorm8.Column)({ name: "required_freelancer", type: "varchar", nullable: true })
|
|
1000
|
-
], CompanyProfile.prototype, "requiredFreelancer", 2);
|
|
1001
|
-
__decorateClass([
|
|
1002
|
-
(0, import_typeorm8.Column)({
|
|
1003
|
-
name: "kind_of_hiring",
|
|
1004
|
-
type: "enum",
|
|
1005
|
-
enum: KindOfHire,
|
|
1006
|
-
nullable: true
|
|
1007
|
-
})
|
|
1008
|
-
], CompanyProfile.prototype, "kindOfHiring", 2);
|
|
1009
|
-
__decorateClass([
|
|
1010
|
-
(0, import_typeorm8.Column)({
|
|
1011
|
-
name: "mode_of_hire",
|
|
1012
|
-
type: "enum",
|
|
1013
|
-
enum: ModeOfHire,
|
|
1014
|
-
nullable: true
|
|
1015
|
-
})
|
|
1016
|
-
], CompanyProfile.prototype, "modeOfHire", 2);
|
|
1017
|
-
__decorateClass([
|
|
1018
|
-
(0, import_typeorm8.Column)({
|
|
1019
|
-
name: "found_us_on",
|
|
1020
|
-
type: "enum",
|
|
1021
|
-
enum: FromUsOn,
|
|
1022
|
-
nullable: true
|
|
1023
|
-
})
|
|
1024
|
-
], CompanyProfile.prototype, "foundUsOn", 2);
|
|
1025
|
-
CompanyProfile = __decorateClass([
|
|
1026
|
-
(0, import_typeorm8.Entity)("company_profiles")
|
|
1027
|
-
], CompanyProfile);
|
|
1028
1040
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1029
1041
|
0 && (module.exports = {
|
|
1030
1042
|
AUTHENTICATION_PATTERN,
|
|
@@ -1043,6 +1055,7 @@ CompanyProfile = __decorateClass([
|
|
|
1043
1055
|
FreelancerUploadResumeDto,
|
|
1044
1056
|
FreelancerWorkShowcaseDto,
|
|
1045
1057
|
FromUsOn,
|
|
1058
|
+
JOB_PATTERN,
|
|
1046
1059
|
JobRMQAdapter,
|
|
1047
1060
|
JobTCPAdapter,
|
|
1048
1061
|
KindOfHire,
|
package/dist/index.mjs
CHANGED
|
@@ -410,6 +410,11 @@ __decorateClass([
|
|
|
410
410
|
IsBoolean4({ message: "Whether the question status active" })
|
|
411
411
|
], CreateQuestionDto.prototype, "isActive", 2);
|
|
412
412
|
|
|
413
|
+
// src/modules/job/pattern/pattern.ts
|
|
414
|
+
var JOB_PATTERN = {
|
|
415
|
+
fetchJobRoles: "fetch.jobs.roles"
|
|
416
|
+
};
|
|
417
|
+
|
|
413
418
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
414
419
|
import { config } from "dotenv";
|
|
415
420
|
import { Transport } from "@nestjs/microservices";
|
|
@@ -599,7 +604,7 @@ __decorateClass([
|
|
|
599
604
|
], BaseEntity.prototype, "deletedAt", 2);
|
|
600
605
|
|
|
601
606
|
// src/entities/user.entity.ts
|
|
602
|
-
import { Entity as
|
|
607
|
+
import { Entity as Entity6, Column as Column7, OneToMany as OneToMany2, OneToOne } from "typeorm";
|
|
603
608
|
|
|
604
609
|
// src/entities/refresh-token.entity.ts
|
|
605
610
|
import {
|
|
@@ -836,6 +841,81 @@ FreelancerProfile = __decorateClass([
|
|
|
836
841
|
Entity4("freelancer_profiles")
|
|
837
842
|
], FreelancerProfile);
|
|
838
843
|
|
|
844
|
+
// src/entities/company-profile.entity.ts
|
|
845
|
+
import {
|
|
846
|
+
Entity as Entity5,
|
|
847
|
+
Column as Column6,
|
|
848
|
+
ManyToOne as ManyToOne5,
|
|
849
|
+
JoinColumn as JoinColumn5,
|
|
850
|
+
Index as Index3
|
|
851
|
+
} from "typeorm";
|
|
852
|
+
var KindOfHire = /* @__PURE__ */ ((KindOfHire2) => {
|
|
853
|
+
KindOfHire2["FULLTIME"] = "FULLTIME";
|
|
854
|
+
KindOfHire2["SHORTTIME"] = "SHORTTIME";
|
|
855
|
+
KindOfHire2["BOTH"] = "BOTH";
|
|
856
|
+
return KindOfHire2;
|
|
857
|
+
})(KindOfHire || {});
|
|
858
|
+
var ModeOfHire = /* @__PURE__ */ ((ModeOfHire2) => {
|
|
859
|
+
ModeOfHire2["ONSITE"] = "ONSITE";
|
|
860
|
+
ModeOfHire2["REMOTE"] = "REMOTE";
|
|
861
|
+
ModeOfHire2["BOTH"] = "BOTH";
|
|
862
|
+
return ModeOfHire2;
|
|
863
|
+
})(ModeOfHire || {});
|
|
864
|
+
var FromUsOn = /* @__PURE__ */ ((FromUsOn2) => {
|
|
865
|
+
FromUsOn2["LINKEDIN"] = "LINKEDIN";
|
|
866
|
+
FromUsOn2["GOOGLE"] = "GOOGLE";
|
|
867
|
+
FromUsOn2["REFERRAL"] = "REFERRAL";
|
|
868
|
+
FromUsOn2["OTHER"] = "OTHER";
|
|
869
|
+
return FromUsOn2;
|
|
870
|
+
})(FromUsOn || {});
|
|
871
|
+
var CompanyProfile = class extends BaseEntity {
|
|
872
|
+
};
|
|
873
|
+
// individual index to find company profile by user
|
|
874
|
+
__decorateClass([
|
|
875
|
+
Column6({ name: "user_id", type: "integer", nullable: true }),
|
|
876
|
+
Index3()
|
|
877
|
+
], CompanyProfile.prototype, "userId", 2);
|
|
878
|
+
__decorateClass([
|
|
879
|
+
ManyToOne5(() => User, (user) => user.otps),
|
|
880
|
+
JoinColumn5({ name: "user_id" })
|
|
881
|
+
], CompanyProfile.prototype, "user", 2);
|
|
882
|
+
__decorateClass([
|
|
883
|
+
Column6({ name: "company_name", type: "varchar", nullable: true })
|
|
884
|
+
], CompanyProfile.prototype, "companyName", 2);
|
|
885
|
+
__decorateClass([
|
|
886
|
+
Column6({ name: "skills", type: "text", nullable: true })
|
|
887
|
+
], CompanyProfile.prototype, "skills", 2);
|
|
888
|
+
__decorateClass([
|
|
889
|
+
Column6({ name: "required_freelancer", type: "varchar", nullable: true })
|
|
890
|
+
], CompanyProfile.prototype, "requiredFreelancer", 2);
|
|
891
|
+
__decorateClass([
|
|
892
|
+
Column6({
|
|
893
|
+
name: "kind_of_hiring",
|
|
894
|
+
type: "enum",
|
|
895
|
+
enum: KindOfHire,
|
|
896
|
+
nullable: true
|
|
897
|
+
})
|
|
898
|
+
], CompanyProfile.prototype, "kindOfHiring", 2);
|
|
899
|
+
__decorateClass([
|
|
900
|
+
Column6({
|
|
901
|
+
name: "mode_of_hire",
|
|
902
|
+
type: "enum",
|
|
903
|
+
enum: ModeOfHire,
|
|
904
|
+
nullable: true
|
|
905
|
+
})
|
|
906
|
+
], CompanyProfile.prototype, "modeOfHire", 2);
|
|
907
|
+
__decorateClass([
|
|
908
|
+
Column6({
|
|
909
|
+
name: "found_us_on",
|
|
910
|
+
type: "enum",
|
|
911
|
+
enum: FromUsOn,
|
|
912
|
+
nullable: true
|
|
913
|
+
})
|
|
914
|
+
], CompanyProfile.prototype, "foundUsOn", 2);
|
|
915
|
+
CompanyProfile = __decorateClass([
|
|
916
|
+
Entity5("company_profiles")
|
|
917
|
+
], CompanyProfile);
|
|
918
|
+
|
|
839
919
|
// src/entities/user.entity.ts
|
|
840
920
|
var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
841
921
|
AccountType2["ADMIN"] = "ADMIN";
|
|
@@ -854,40 +934,40 @@ var AccountStatus = /* @__PURE__ */ ((AccountStatus2) => {
|
|
|
854
934
|
var User = class extends BaseEntity {
|
|
855
935
|
};
|
|
856
936
|
__decorateClass([
|
|
857
|
-
|
|
937
|
+
Column7({ name: "unique_id", type: "varchar", unique: true })
|
|
858
938
|
], User.prototype, "uniqueId", 2);
|
|
859
939
|
__decorateClass([
|
|
860
|
-
|
|
940
|
+
Column7({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
861
941
|
], User.prototype, "username", 2);
|
|
862
942
|
__decorateClass([
|
|
863
|
-
|
|
943
|
+
Column7({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
864
944
|
], User.prototype, "firstName", 2);
|
|
865
945
|
__decorateClass([
|
|
866
|
-
|
|
946
|
+
Column7({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
867
947
|
], User.prototype, "lastName", 2);
|
|
868
948
|
__decorateClass([
|
|
869
|
-
|
|
949
|
+
Column7({ name: "date_of_birth", type: "date", nullable: true })
|
|
870
950
|
], User.prototype, "dateOfBirth", 2);
|
|
871
951
|
__decorateClass([
|
|
872
|
-
|
|
952
|
+
Column7({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
873
953
|
], User.prototype, "gender", 2);
|
|
874
954
|
__decorateClass([
|
|
875
|
-
|
|
955
|
+
Column7({ name: "profile_picture_url", type: "text", nullable: true })
|
|
876
956
|
], User.prototype, "profilePictureUrl", 2);
|
|
877
957
|
__decorateClass([
|
|
878
|
-
|
|
958
|
+
Column7({ name: "email", type: "varchar", unique: true })
|
|
879
959
|
], User.prototype, "email", 2);
|
|
880
960
|
__decorateClass([
|
|
881
|
-
|
|
961
|
+
Column7({ name: "mobile_code", type: "varchar", nullable: true })
|
|
882
962
|
], User.prototype, "mobileCode", 2);
|
|
883
963
|
__decorateClass([
|
|
884
|
-
|
|
964
|
+
Column7({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
885
965
|
], User.prototype, "mobile", 2);
|
|
886
966
|
__decorateClass([
|
|
887
|
-
|
|
967
|
+
Column7({ name: "password", type: "varchar" })
|
|
888
968
|
], User.prototype, "password", 2);
|
|
889
969
|
__decorateClass([
|
|
890
|
-
|
|
970
|
+
Column7({
|
|
891
971
|
name: "account_type",
|
|
892
972
|
type: "enum",
|
|
893
973
|
enum: AccountType,
|
|
@@ -895,7 +975,7 @@ __decorateClass([
|
|
|
895
975
|
})
|
|
896
976
|
], User.prototype, "accountType", 2);
|
|
897
977
|
__decorateClass([
|
|
898
|
-
|
|
978
|
+
Column7({
|
|
899
979
|
name: "account_status",
|
|
900
980
|
type: "enum",
|
|
901
981
|
enum: AccountStatus,
|
|
@@ -903,20 +983,20 @@ __decorateClass([
|
|
|
903
983
|
})
|
|
904
984
|
], User.prototype, "accountStatus", 2);
|
|
905
985
|
__decorateClass([
|
|
906
|
-
|
|
986
|
+
Column7({ name: "is_email_verified", type: "boolean", default: false })
|
|
907
987
|
], User.prototype, "isEmailVerified", 2);
|
|
908
988
|
__decorateClass([
|
|
909
|
-
|
|
989
|
+
Column7({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
910
990
|
], User.prototype, "isMobileVerified", 2);
|
|
911
991
|
__decorateClass([
|
|
912
|
-
|
|
992
|
+
Column7({
|
|
913
993
|
name: "last_login_at",
|
|
914
994
|
type: "timestamp with time zone",
|
|
915
995
|
nullable: true
|
|
916
996
|
})
|
|
917
997
|
], User.prototype, "lastLoginAt", 2);
|
|
918
998
|
__decorateClass([
|
|
919
|
-
|
|
999
|
+
Column7({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
920
1000
|
], User.prototype, "lastLoginIp", 2);
|
|
921
1001
|
__decorateClass([
|
|
922
1002
|
OneToMany2(() => RefreshToken, (token) => token.user)
|
|
@@ -933,12 +1013,18 @@ __decorateClass([
|
|
|
933
1013
|
(freelancerProfile) => freelancerProfile.user
|
|
934
1014
|
)
|
|
935
1015
|
], User.prototype, "freelancerProfile", 2);
|
|
1016
|
+
__decorateClass([
|
|
1017
|
+
OneToOne(
|
|
1018
|
+
() => CompanyProfile,
|
|
1019
|
+
(companyProfile) => companyProfile.user
|
|
1020
|
+
)
|
|
1021
|
+
], User.prototype, "companyProfile", 2);
|
|
936
1022
|
User = __decorateClass([
|
|
937
|
-
|
|
1023
|
+
Entity6("users")
|
|
938
1024
|
], User);
|
|
939
1025
|
|
|
940
1026
|
// src/entities/question.entity.ts
|
|
941
|
-
import { Entity as
|
|
1027
|
+
import { Entity as Entity7, Column as Column8 } from "typeorm";
|
|
942
1028
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
943
1029
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
944
1030
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -947,16 +1033,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
947
1033
|
var Question = class extends BaseEntity {
|
|
948
1034
|
};
|
|
949
1035
|
__decorateClass([
|
|
950
|
-
|
|
1036
|
+
Column8({ name: "question", type: "varchar" })
|
|
951
1037
|
], Question.prototype, "question", 2);
|
|
952
1038
|
__decorateClass([
|
|
953
|
-
|
|
1039
|
+
Column8({ name: "hint", type: "varchar", nullable: true })
|
|
954
1040
|
], Question.prototype, "hint", 2);
|
|
955
1041
|
__decorateClass([
|
|
956
|
-
|
|
1042
|
+
Column8({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
957
1043
|
], Question.prototype, "slug", 2);
|
|
958
1044
|
__decorateClass([
|
|
959
|
-
|
|
1045
|
+
Column8({
|
|
960
1046
|
name: "question_for",
|
|
961
1047
|
type: "enum",
|
|
962
1048
|
enum: QuestionFor,
|
|
@@ -964,92 +1050,17 @@ __decorateClass([
|
|
|
964
1050
|
})
|
|
965
1051
|
], Question.prototype, "questionFor", 2);
|
|
966
1052
|
__decorateClass([
|
|
967
|
-
|
|
1053
|
+
Column8({ name: "type", type: "varchar", nullable: true })
|
|
968
1054
|
], Question.prototype, "type", 2);
|
|
969
1055
|
__decorateClass([
|
|
970
|
-
|
|
1056
|
+
Column8({ name: "options", type: "jsonb", nullable: true })
|
|
971
1057
|
], Question.prototype, "options", 2);
|
|
972
1058
|
__decorateClass([
|
|
973
|
-
|
|
1059
|
+
Column8({ name: "is_active", type: "boolean", default: false })
|
|
974
1060
|
], Question.prototype, "isActive", 2);
|
|
975
1061
|
Question = __decorateClass([
|
|
976
|
-
|
|
1062
|
+
Entity7("questions")
|
|
977
1063
|
], Question);
|
|
978
|
-
|
|
979
|
-
// src/entities/company-profile.entity.ts
|
|
980
|
-
import {
|
|
981
|
-
Entity as Entity7,
|
|
982
|
-
Column as Column8,
|
|
983
|
-
ManyToOne as ManyToOne5,
|
|
984
|
-
JoinColumn as JoinColumn5,
|
|
985
|
-
Index as Index3
|
|
986
|
-
} from "typeorm";
|
|
987
|
-
var KindOfHire = /* @__PURE__ */ ((KindOfHire2) => {
|
|
988
|
-
KindOfHire2["FULLTIME"] = "FULLTIME";
|
|
989
|
-
KindOfHire2["SHORTTIME"] = "SHORTTIME";
|
|
990
|
-
KindOfHire2["BOTH"] = "BOTH";
|
|
991
|
-
return KindOfHire2;
|
|
992
|
-
})(KindOfHire || {});
|
|
993
|
-
var ModeOfHire = /* @__PURE__ */ ((ModeOfHire2) => {
|
|
994
|
-
ModeOfHire2["ONSITE"] = "ONSITE";
|
|
995
|
-
ModeOfHire2["REMOTE"] = "REMOTE";
|
|
996
|
-
ModeOfHire2["BOTH"] = "BOTH";
|
|
997
|
-
return ModeOfHire2;
|
|
998
|
-
})(ModeOfHire || {});
|
|
999
|
-
var FromUsOn = /* @__PURE__ */ ((FromUsOn2) => {
|
|
1000
|
-
FromUsOn2["LINKEDIN"] = "LINKEDIN";
|
|
1001
|
-
FromUsOn2["GOOGLE"] = "GOOGLE";
|
|
1002
|
-
FromUsOn2["REFERRAL"] = "REFERRAL";
|
|
1003
|
-
FromUsOn2["OTHER"] = "OTHER";
|
|
1004
|
-
return FromUsOn2;
|
|
1005
|
-
})(FromUsOn || {});
|
|
1006
|
-
var CompanyProfile = class extends BaseEntity {
|
|
1007
|
-
};
|
|
1008
|
-
// individual index to find company profile by user
|
|
1009
|
-
__decorateClass([
|
|
1010
|
-
Column8({ name: "user_id", type: "integer", nullable: true }),
|
|
1011
|
-
Index3()
|
|
1012
|
-
], CompanyProfile.prototype, "userId", 2);
|
|
1013
|
-
__decorateClass([
|
|
1014
|
-
ManyToOne5(() => User, (user) => user.otps),
|
|
1015
|
-
JoinColumn5({ name: "user_id" })
|
|
1016
|
-
], CompanyProfile.prototype, "user", 2);
|
|
1017
|
-
__decorateClass([
|
|
1018
|
-
Column8({ name: "company_name", type: "varchar", nullable: true })
|
|
1019
|
-
], CompanyProfile.prototype, "companyName", 2);
|
|
1020
|
-
__decorateClass([
|
|
1021
|
-
Column8({ name: "skills", type: "text", nullable: true })
|
|
1022
|
-
], CompanyProfile.prototype, "skills", 2);
|
|
1023
|
-
__decorateClass([
|
|
1024
|
-
Column8({ name: "required_freelancer", type: "varchar", nullable: true })
|
|
1025
|
-
], CompanyProfile.prototype, "requiredFreelancer", 2);
|
|
1026
|
-
__decorateClass([
|
|
1027
|
-
Column8({
|
|
1028
|
-
name: "kind_of_hiring",
|
|
1029
|
-
type: "enum",
|
|
1030
|
-
enum: KindOfHire,
|
|
1031
|
-
nullable: true
|
|
1032
|
-
})
|
|
1033
|
-
], CompanyProfile.prototype, "kindOfHiring", 2);
|
|
1034
|
-
__decorateClass([
|
|
1035
|
-
Column8({
|
|
1036
|
-
name: "mode_of_hire",
|
|
1037
|
-
type: "enum",
|
|
1038
|
-
enum: ModeOfHire,
|
|
1039
|
-
nullable: true
|
|
1040
|
-
})
|
|
1041
|
-
], CompanyProfile.prototype, "modeOfHire", 2);
|
|
1042
|
-
__decorateClass([
|
|
1043
|
-
Column8({
|
|
1044
|
-
name: "found_us_on",
|
|
1045
|
-
type: "enum",
|
|
1046
|
-
enum: FromUsOn,
|
|
1047
|
-
nullable: true
|
|
1048
|
-
})
|
|
1049
|
-
], CompanyProfile.prototype, "foundUsOn", 2);
|
|
1050
|
-
CompanyProfile = __decorateClass([
|
|
1051
|
-
Entity7("company_profiles")
|
|
1052
|
-
], CompanyProfile);
|
|
1053
1064
|
export {
|
|
1054
1065
|
AUTHENTICATION_PATTERN,
|
|
1055
1066
|
AccountStatus,
|
|
@@ -1067,6 +1078,7 @@ export {
|
|
|
1067
1078
|
FreelancerUploadResumeDto,
|
|
1068
1079
|
FreelancerWorkShowcaseDto,
|
|
1069
1080
|
FromUsOn,
|
|
1081
|
+
JOB_PATTERN,
|
|
1070
1082
|
JobRMQAdapter,
|
|
1071
1083
|
JobTCPAdapter,
|
|
1072
1084
|
KindOfHire,
|
package/dist/modules/index.d.ts
CHANGED