@experts_hub/shared 1.0.55 → 1.0.57
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/company-profile.entity.d.ts +19 -0
- package/dist/entities/freelancer-profile.entity.d.ts +6 -0
- package/dist/index.d.mts +25 -1
- package/dist/index.d.ts +25 -1
- package/dist/index.js +68 -0
- package/dist/index.mjs +67 -0
- package/dist/modules/onboarding/pattern/pattern.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
import { BaseEntity } from "./base.entity";
|
|
2
|
+
import { User } from './user.entity';
|
|
3
|
+
import { ModeOfWork } from "./freelancer-profile.entity";
|
|
4
|
+
export declare enum KindOfHire {
|
|
5
|
+
FULLTIME = "FULLTIME",
|
|
6
|
+
SHORTTIME = "SHORTTIME",
|
|
7
|
+
BOTH = "BOTH"
|
|
8
|
+
}
|
|
9
|
+
export declare enum FromWhere {
|
|
10
|
+
LINKEDIN = "LINKEDIN",
|
|
11
|
+
GOOGLE = "GOOGLE",
|
|
12
|
+
REFERRAL = "REFERRAL",
|
|
13
|
+
OTHER = "OTHER"
|
|
14
|
+
}
|
|
2
15
|
export declare class CompanyProfile extends BaseEntity {
|
|
3
16
|
userId: number;
|
|
17
|
+
user: User;
|
|
18
|
+
skills: string[];
|
|
19
|
+
howManyFreelancersNeed: string;
|
|
20
|
+
kindOfWork: KindOfHire;
|
|
21
|
+
modeOfWork: ModeOfWork;
|
|
22
|
+
fromWhere: FromWhere;
|
|
4
23
|
companyName: string;
|
|
5
24
|
}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { BaseEntity } from "./base.entity";
|
|
2
2
|
import { User } from "./user.entity";
|
|
3
|
+
export declare enum NatureOfWork {
|
|
4
|
+
FULLTIME = "FULLTIME",
|
|
5
|
+
PARTTIME = "PARTTIME",
|
|
6
|
+
BOTH = "BOTH"
|
|
7
|
+
}
|
|
3
8
|
export declare enum ModeOfWork {
|
|
4
9
|
ONSITE = "ONSITE",
|
|
5
10
|
REMOTE = "REMOTE",
|
|
@@ -11,6 +16,7 @@ export declare class FreelancerProfile extends BaseEntity {
|
|
|
11
16
|
resumeUrl: string;
|
|
12
17
|
resumeData: string;
|
|
13
18
|
isDeveloper: boolean;
|
|
19
|
+
natureOfWork: NatureOfWork;
|
|
14
20
|
currency: string;
|
|
15
21
|
expectedHourlyCompensation: number;
|
|
16
22
|
modeOfWork: ModeOfWork;
|
package/dist/index.d.mts
CHANGED
|
@@ -33,6 +33,7 @@ declare const ONBOARDING_PATTERN: {
|
|
|
33
33
|
handleFreelancerResumeUpload: string;
|
|
34
34
|
handleFreelancerDeveloperPreference: string;
|
|
35
35
|
handleFreelancerProfileQuestion: string;
|
|
36
|
+
handleClientProfileQuestion: string;
|
|
36
37
|
handleClientAccountCreation: string;
|
|
37
38
|
};
|
|
38
39
|
|
|
@@ -240,6 +241,11 @@ declare class Otp {
|
|
|
240
241
|
user: User;
|
|
241
242
|
}
|
|
242
243
|
|
|
244
|
+
declare enum NatureOfWork {
|
|
245
|
+
FULLTIME = "FULLTIME",
|
|
246
|
+
PARTTIME = "PARTTIME",
|
|
247
|
+
BOTH = "BOTH"
|
|
248
|
+
}
|
|
243
249
|
declare enum ModeOfWork {
|
|
244
250
|
ONSITE = "ONSITE",
|
|
245
251
|
REMOTE = "REMOTE",
|
|
@@ -251,6 +257,7 @@ declare class FreelancerProfile extends BaseEntity {
|
|
|
251
257
|
resumeUrl: string;
|
|
252
258
|
resumeData: string;
|
|
253
259
|
isDeveloper: boolean;
|
|
260
|
+
natureOfWork: NatureOfWork;
|
|
254
261
|
currency: string;
|
|
255
262
|
expectedHourlyCompensation: number;
|
|
256
263
|
modeOfWork: ModeOfWork;
|
|
@@ -317,9 +324,26 @@ declare class Question extends BaseEntity {
|
|
|
317
324
|
isActive: boolean;
|
|
318
325
|
}
|
|
319
326
|
|
|
327
|
+
declare enum KindOfHire {
|
|
328
|
+
FULLTIME = "FULLTIME",
|
|
329
|
+
SHORTTIME = "SHORTTIME",
|
|
330
|
+
BOTH = "BOTH"
|
|
331
|
+
}
|
|
332
|
+
declare enum FromWhere {
|
|
333
|
+
LINKEDIN = "LINKEDIN",
|
|
334
|
+
GOOGLE = "GOOGLE",
|
|
335
|
+
REFERRAL = "REFERRAL",
|
|
336
|
+
OTHER = "OTHER"
|
|
337
|
+
}
|
|
320
338
|
declare class CompanyProfile extends BaseEntity {
|
|
321
339
|
userId: number;
|
|
340
|
+
user: User;
|
|
341
|
+
skills: string[];
|
|
342
|
+
howManyFreelancersNeed: string;
|
|
343
|
+
kindOfWork: KindOfHire;
|
|
344
|
+
modeOfWork: ModeOfWork;
|
|
345
|
+
fromWhere: FromWhere;
|
|
322
346
|
companyName: string;
|
|
323
347
|
}
|
|
324
348
|
|
|
325
|
-
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, FreelancerProfile, 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, LoginDto, LogoutDto, ModeOfWork, ONBOARDING_PATTERN, OTP_PATTERN, Otp, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
|
349
|
+
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, FreelancerProfile, FromWhere, 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, 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
|
@@ -33,6 +33,7 @@ declare const ONBOARDING_PATTERN: {
|
|
|
33
33
|
handleFreelancerResumeUpload: string;
|
|
34
34
|
handleFreelancerDeveloperPreference: string;
|
|
35
35
|
handleFreelancerProfileQuestion: string;
|
|
36
|
+
handleClientProfileQuestion: string;
|
|
36
37
|
handleClientAccountCreation: string;
|
|
37
38
|
};
|
|
38
39
|
|
|
@@ -240,6 +241,11 @@ declare class Otp {
|
|
|
240
241
|
user: User;
|
|
241
242
|
}
|
|
242
243
|
|
|
244
|
+
declare enum NatureOfWork {
|
|
245
|
+
FULLTIME = "FULLTIME",
|
|
246
|
+
PARTTIME = "PARTTIME",
|
|
247
|
+
BOTH = "BOTH"
|
|
248
|
+
}
|
|
243
249
|
declare enum ModeOfWork {
|
|
244
250
|
ONSITE = "ONSITE",
|
|
245
251
|
REMOTE = "REMOTE",
|
|
@@ -251,6 +257,7 @@ declare class FreelancerProfile extends BaseEntity {
|
|
|
251
257
|
resumeUrl: string;
|
|
252
258
|
resumeData: string;
|
|
253
259
|
isDeveloper: boolean;
|
|
260
|
+
natureOfWork: NatureOfWork;
|
|
254
261
|
currency: string;
|
|
255
262
|
expectedHourlyCompensation: number;
|
|
256
263
|
modeOfWork: ModeOfWork;
|
|
@@ -317,9 +324,26 @@ declare class Question extends BaseEntity {
|
|
|
317
324
|
isActive: boolean;
|
|
318
325
|
}
|
|
319
326
|
|
|
327
|
+
declare enum KindOfHire {
|
|
328
|
+
FULLTIME = "FULLTIME",
|
|
329
|
+
SHORTTIME = "SHORTTIME",
|
|
330
|
+
BOTH = "BOTH"
|
|
331
|
+
}
|
|
332
|
+
declare enum FromWhere {
|
|
333
|
+
LINKEDIN = "LINKEDIN",
|
|
334
|
+
GOOGLE = "GOOGLE",
|
|
335
|
+
REFERRAL = "REFERRAL",
|
|
336
|
+
OTHER = "OTHER"
|
|
337
|
+
}
|
|
320
338
|
declare class CompanyProfile extends BaseEntity {
|
|
321
339
|
userId: number;
|
|
340
|
+
user: User;
|
|
341
|
+
skills: string[];
|
|
342
|
+
howManyFreelancersNeed: string;
|
|
343
|
+
kindOfWork: KindOfHire;
|
|
344
|
+
modeOfWork: ModeOfWork;
|
|
345
|
+
fromWhere: FromWhere;
|
|
322
346
|
companyName: string;
|
|
323
347
|
}
|
|
324
348
|
|
|
325
|
-
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, FreelancerProfile, 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, LoginDto, LogoutDto, ModeOfWork, ONBOARDING_PATTERN, OTP_PATTERN, Otp, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
|
349
|
+
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, FreelancerProfile, FromWhere, 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, 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
|
@@ -35,11 +35,14 @@ __export(index_exports, {
|
|
|
35
35
|
CreateQuestionDto: () => CreateQuestionDto,
|
|
36
36
|
CreateSubAdminDto: () => CreateSubAdminDto,
|
|
37
37
|
FreelancerProfile: () => FreelancerProfile,
|
|
38
|
+
FromWhere: () => FromWhere,
|
|
38
39
|
JobRMQAdapter: () => JobRMQAdapter,
|
|
39
40
|
JobTCPAdapter: () => JobTCPAdapter,
|
|
41
|
+
KindOfHire: () => KindOfHire,
|
|
40
42
|
LoginDto: () => LoginDto,
|
|
41
43
|
LogoutDto: () => LogoutDto,
|
|
42
44
|
ModeOfWork: () => ModeOfWork,
|
|
45
|
+
NatureOfWork: () => NatureOfWork,
|
|
43
46
|
ONBOARDING_PATTERN: () => ONBOARDING_PATTERN,
|
|
44
47
|
OTP_PATTERN: () => OTP_PATTERN,
|
|
45
48
|
Otp: () => Otp,
|
|
@@ -109,6 +112,7 @@ var ONBOARDING_PATTERN = {
|
|
|
109
112
|
handleFreelancerResumeUpload: "handle.freelancer.resume.upload",
|
|
110
113
|
handleFreelancerDeveloperPreference: "handle.freelancer.developer.preference",
|
|
111
114
|
handleFreelancerProfileQuestion: "handle.freelancer.profile.question",
|
|
115
|
+
handleClientProfileQuestion: "handle.client.profile.question",
|
|
112
116
|
handleClientAccountCreation: "handle.client.account.creation"
|
|
113
117
|
};
|
|
114
118
|
|
|
@@ -532,6 +536,12 @@ Otp = __decorateClass([
|
|
|
532
536
|
|
|
533
537
|
// src/entities/freelancer-profile.entity.ts
|
|
534
538
|
var import_typeorm5 = require("typeorm");
|
|
539
|
+
var NatureOfWork = /* @__PURE__ */ ((NatureOfWork2) => {
|
|
540
|
+
NatureOfWork2["FULLTIME"] = "FULLTIME";
|
|
541
|
+
NatureOfWork2["PARTTIME"] = "PARTTIME";
|
|
542
|
+
NatureOfWork2["BOTH"] = "BOTH";
|
|
543
|
+
return NatureOfWork2;
|
|
544
|
+
})(NatureOfWork || {});
|
|
535
545
|
var ModeOfWork = /* @__PURE__ */ ((ModeOfWork2) => {
|
|
536
546
|
ModeOfWork2["ONSITE"] = "ONSITE";
|
|
537
547
|
ModeOfWork2["REMOTE"] = "REMOTE";
|
|
@@ -558,6 +568,14 @@ __decorateClass([
|
|
|
558
568
|
__decorateClass([
|
|
559
569
|
(0, import_typeorm5.Column)({ name: "is_developer", type: "boolean", default: false })
|
|
560
570
|
], FreelancerProfile.prototype, "isDeveloper", 2);
|
|
571
|
+
__decorateClass([
|
|
572
|
+
(0, import_typeorm5.Column)({
|
|
573
|
+
name: "nature_of_work",
|
|
574
|
+
type: "enum",
|
|
575
|
+
enum: NatureOfWork,
|
|
576
|
+
nullable: true
|
|
577
|
+
})
|
|
578
|
+
], FreelancerProfile.prototype, "natureOfWork", 2);
|
|
561
579
|
__decorateClass([
|
|
562
580
|
(0, import_typeorm5.Column)({ name: "currency", type: "varchar", default: "USD" })
|
|
563
581
|
], FreelancerProfile.prototype, "currency", 2);
|
|
@@ -745,6 +763,19 @@ Question = __decorateClass([
|
|
|
745
763
|
|
|
746
764
|
// src/entities/company-profile.entity.ts
|
|
747
765
|
var import_typeorm8 = require("typeorm");
|
|
766
|
+
var KindOfHire = /* @__PURE__ */ ((KindOfHire2) => {
|
|
767
|
+
KindOfHire2["FULLTIME"] = "FULLTIME";
|
|
768
|
+
KindOfHire2["SHORTTIME"] = "SHORTTIME";
|
|
769
|
+
KindOfHire2["BOTH"] = "BOTH";
|
|
770
|
+
return KindOfHire2;
|
|
771
|
+
})(KindOfHire || {});
|
|
772
|
+
var FromWhere = /* @__PURE__ */ ((FromWhere2) => {
|
|
773
|
+
FromWhere2["LINKEDIN"] = "LINKEDIN";
|
|
774
|
+
FromWhere2["GOOGLE"] = "GOOGLE";
|
|
775
|
+
FromWhere2["REFERRAL"] = "REFERRAL";
|
|
776
|
+
FromWhere2["OTHER"] = "OTHER";
|
|
777
|
+
return FromWhere2;
|
|
778
|
+
})(FromWhere || {});
|
|
748
779
|
var CompanyProfile = class extends BaseEntity {
|
|
749
780
|
};
|
|
750
781
|
// individual index to find company profile by user
|
|
@@ -752,6 +783,40 @@ __decorateClass([
|
|
|
752
783
|
(0, import_typeorm8.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
753
784
|
(0, import_typeorm8.Index)()
|
|
754
785
|
], CompanyProfile.prototype, "userId", 2);
|
|
786
|
+
__decorateClass([
|
|
787
|
+
(0, import_typeorm8.ManyToOne)(() => User, (user) => user.otps),
|
|
788
|
+
(0, import_typeorm8.JoinColumn)({ name: "user_id" })
|
|
789
|
+
], CompanyProfile.prototype, "user", 2);
|
|
790
|
+
__decorateClass([
|
|
791
|
+
(0, import_typeorm8.Column)({ name: "skills", type: "text", nullable: true })
|
|
792
|
+
], CompanyProfile.prototype, "skills", 2);
|
|
793
|
+
__decorateClass([
|
|
794
|
+
(0, import_typeorm8.Column)({ name: "how_many_freelancers_need", type: "varchar", nullable: true })
|
|
795
|
+
], CompanyProfile.prototype, "howManyFreelancersNeed", 2);
|
|
796
|
+
__decorateClass([
|
|
797
|
+
(0, import_typeorm8.Column)({
|
|
798
|
+
name: "kind_of_work",
|
|
799
|
+
type: "enum",
|
|
800
|
+
enum: KindOfHire,
|
|
801
|
+
nullable: true
|
|
802
|
+
})
|
|
803
|
+
], CompanyProfile.prototype, "kindOfWork", 2);
|
|
804
|
+
__decorateClass([
|
|
805
|
+
(0, import_typeorm8.Column)({
|
|
806
|
+
name: "mode_of_work",
|
|
807
|
+
type: "enum",
|
|
808
|
+
enum: ModeOfWork,
|
|
809
|
+
nullable: true
|
|
810
|
+
})
|
|
811
|
+
], CompanyProfile.prototype, "modeOfWork", 2);
|
|
812
|
+
__decorateClass([
|
|
813
|
+
(0, import_typeorm8.Column)({
|
|
814
|
+
name: "from_where",
|
|
815
|
+
type: "enum",
|
|
816
|
+
enum: FromWhere,
|
|
817
|
+
nullable: true
|
|
818
|
+
})
|
|
819
|
+
], CompanyProfile.prototype, "fromWhere", 2);
|
|
755
820
|
__decorateClass([
|
|
756
821
|
(0, import_typeorm8.Column)({ name: "company_name", type: "varchar" })
|
|
757
822
|
], CompanyProfile.prototype, "companyName", 2);
|
|
@@ -768,11 +833,14 @@ CompanyProfile = __decorateClass([
|
|
|
768
833
|
CreateQuestionDto,
|
|
769
834
|
CreateSubAdminDto,
|
|
770
835
|
FreelancerProfile,
|
|
836
|
+
FromWhere,
|
|
771
837
|
JobRMQAdapter,
|
|
772
838
|
JobTCPAdapter,
|
|
839
|
+
KindOfHire,
|
|
773
840
|
LoginDto,
|
|
774
841
|
LogoutDto,
|
|
775
842
|
ModeOfWork,
|
|
843
|
+
NatureOfWork,
|
|
776
844
|
ONBOARDING_PATTERN,
|
|
777
845
|
OTP_PATTERN,
|
|
778
846
|
Otp,
|
package/dist/index.mjs
CHANGED
|
@@ -65,6 +65,7 @@ var ONBOARDING_PATTERN = {
|
|
|
65
65
|
handleFreelancerResumeUpload: "handle.freelancer.resume.upload",
|
|
66
66
|
handleFreelancerDeveloperPreference: "handle.freelancer.developer.preference",
|
|
67
67
|
handleFreelancerProfileQuestion: "handle.freelancer.profile.question",
|
|
68
|
+
handleClientProfileQuestion: "handle.client.profile.question",
|
|
68
69
|
handleClientAccountCreation: "handle.client.account.creation"
|
|
69
70
|
};
|
|
70
71
|
|
|
@@ -530,6 +531,12 @@ import {
|
|
|
530
531
|
ManyToOne as ManyToOne4,
|
|
531
532
|
JoinColumn as JoinColumn4
|
|
532
533
|
} from "typeorm";
|
|
534
|
+
var NatureOfWork = /* @__PURE__ */ ((NatureOfWork2) => {
|
|
535
|
+
NatureOfWork2["FULLTIME"] = "FULLTIME";
|
|
536
|
+
NatureOfWork2["PARTTIME"] = "PARTTIME";
|
|
537
|
+
NatureOfWork2["BOTH"] = "BOTH";
|
|
538
|
+
return NatureOfWork2;
|
|
539
|
+
})(NatureOfWork || {});
|
|
533
540
|
var ModeOfWork = /* @__PURE__ */ ((ModeOfWork2) => {
|
|
534
541
|
ModeOfWork2["ONSITE"] = "ONSITE";
|
|
535
542
|
ModeOfWork2["REMOTE"] = "REMOTE";
|
|
@@ -556,6 +563,14 @@ __decorateClass([
|
|
|
556
563
|
__decorateClass([
|
|
557
564
|
Column5({ name: "is_developer", type: "boolean", default: false })
|
|
558
565
|
], FreelancerProfile.prototype, "isDeveloper", 2);
|
|
566
|
+
__decorateClass([
|
|
567
|
+
Column5({
|
|
568
|
+
name: "nature_of_work",
|
|
569
|
+
type: "enum",
|
|
570
|
+
enum: NatureOfWork,
|
|
571
|
+
nullable: true
|
|
572
|
+
})
|
|
573
|
+
], FreelancerProfile.prototype, "natureOfWork", 2);
|
|
559
574
|
__decorateClass([
|
|
560
575
|
Column5({ name: "currency", type: "varchar", default: "USD" })
|
|
561
576
|
], FreelancerProfile.prototype, "currency", 2);
|
|
@@ -745,8 +760,23 @@ Question = __decorateClass([
|
|
|
745
760
|
import {
|
|
746
761
|
Entity as Entity7,
|
|
747
762
|
Column as Column8,
|
|
763
|
+
ManyToOne as ManyToOne5,
|
|
764
|
+
JoinColumn as JoinColumn5,
|
|
748
765
|
Index as Index3
|
|
749
766
|
} from "typeorm";
|
|
767
|
+
var KindOfHire = /* @__PURE__ */ ((KindOfHire2) => {
|
|
768
|
+
KindOfHire2["FULLTIME"] = "FULLTIME";
|
|
769
|
+
KindOfHire2["SHORTTIME"] = "SHORTTIME";
|
|
770
|
+
KindOfHire2["BOTH"] = "BOTH";
|
|
771
|
+
return KindOfHire2;
|
|
772
|
+
})(KindOfHire || {});
|
|
773
|
+
var FromWhere = /* @__PURE__ */ ((FromWhere2) => {
|
|
774
|
+
FromWhere2["LINKEDIN"] = "LINKEDIN";
|
|
775
|
+
FromWhere2["GOOGLE"] = "GOOGLE";
|
|
776
|
+
FromWhere2["REFERRAL"] = "REFERRAL";
|
|
777
|
+
FromWhere2["OTHER"] = "OTHER";
|
|
778
|
+
return FromWhere2;
|
|
779
|
+
})(FromWhere || {});
|
|
750
780
|
var CompanyProfile = class extends BaseEntity {
|
|
751
781
|
};
|
|
752
782
|
// individual index to find company profile by user
|
|
@@ -754,6 +784,40 @@ __decorateClass([
|
|
|
754
784
|
Column8({ name: "user_id", type: "integer", nullable: true }),
|
|
755
785
|
Index3()
|
|
756
786
|
], CompanyProfile.prototype, "userId", 2);
|
|
787
|
+
__decorateClass([
|
|
788
|
+
ManyToOne5(() => User, (user) => user.otps),
|
|
789
|
+
JoinColumn5({ name: "user_id" })
|
|
790
|
+
], CompanyProfile.prototype, "user", 2);
|
|
791
|
+
__decorateClass([
|
|
792
|
+
Column8({ name: "skills", type: "text", nullable: true })
|
|
793
|
+
], CompanyProfile.prototype, "skills", 2);
|
|
794
|
+
__decorateClass([
|
|
795
|
+
Column8({ name: "how_many_freelancers_need", type: "varchar", nullable: true })
|
|
796
|
+
], CompanyProfile.prototype, "howManyFreelancersNeed", 2);
|
|
797
|
+
__decorateClass([
|
|
798
|
+
Column8({
|
|
799
|
+
name: "kind_of_work",
|
|
800
|
+
type: "enum",
|
|
801
|
+
enum: KindOfHire,
|
|
802
|
+
nullable: true
|
|
803
|
+
})
|
|
804
|
+
], CompanyProfile.prototype, "kindOfWork", 2);
|
|
805
|
+
__decorateClass([
|
|
806
|
+
Column8({
|
|
807
|
+
name: "mode_of_work",
|
|
808
|
+
type: "enum",
|
|
809
|
+
enum: ModeOfWork,
|
|
810
|
+
nullable: true
|
|
811
|
+
})
|
|
812
|
+
], CompanyProfile.prototype, "modeOfWork", 2);
|
|
813
|
+
__decorateClass([
|
|
814
|
+
Column8({
|
|
815
|
+
name: "from_where",
|
|
816
|
+
type: "enum",
|
|
817
|
+
enum: FromWhere,
|
|
818
|
+
nullable: true
|
|
819
|
+
})
|
|
820
|
+
], CompanyProfile.prototype, "fromWhere", 2);
|
|
757
821
|
__decorateClass([
|
|
758
822
|
Column8({ name: "company_name", type: "varchar" })
|
|
759
823
|
], CompanyProfile.prototype, "companyName", 2);
|
|
@@ -769,11 +833,14 @@ export {
|
|
|
769
833
|
CreateQuestionDto,
|
|
770
834
|
CreateSubAdminDto,
|
|
771
835
|
FreelancerProfile,
|
|
836
|
+
FromWhere,
|
|
772
837
|
JobRMQAdapter,
|
|
773
838
|
JobTCPAdapter,
|
|
839
|
+
KindOfHire,
|
|
774
840
|
LoginDto,
|
|
775
841
|
LogoutDto,
|
|
776
842
|
ModeOfWork,
|
|
843
|
+
NatureOfWork,
|
|
777
844
|
ONBOARDING_PATTERN,
|
|
778
845
|
OTP_PATTERN,
|
|
779
846
|
Otp,
|