@experts_hub/shared 1.0.56 → 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/index.d.mts +19 -1
- package/dist/index.d.ts +19 -1
- package/dist/index.js +52 -0
- package/dist/index.mjs +52 -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
|
}
|
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
|
|
|
@@ -323,9 +324,26 @@ declare class Question extends BaseEntity {
|
|
|
323
324
|
isActive: boolean;
|
|
324
325
|
}
|
|
325
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
|
+
}
|
|
326
338
|
declare class CompanyProfile extends BaseEntity {
|
|
327
339
|
userId: number;
|
|
340
|
+
user: User;
|
|
341
|
+
skills: string[];
|
|
342
|
+
howManyFreelancersNeed: string;
|
|
343
|
+
kindOfWork: KindOfHire;
|
|
344
|
+
modeOfWork: ModeOfWork;
|
|
345
|
+
fromWhere: FromWhere;
|
|
328
346
|
companyName: string;
|
|
329
347
|
}
|
|
330
348
|
|
|
331
|
-
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, NatureOfWork, 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
|
|
|
@@ -323,9 +324,26 @@ declare class Question extends BaseEntity {
|
|
|
323
324
|
isActive: boolean;
|
|
324
325
|
}
|
|
325
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
|
+
}
|
|
326
338
|
declare class CompanyProfile extends BaseEntity {
|
|
327
339
|
userId: number;
|
|
340
|
+
user: User;
|
|
341
|
+
skills: string[];
|
|
342
|
+
howManyFreelancersNeed: string;
|
|
343
|
+
kindOfWork: KindOfHire;
|
|
344
|
+
modeOfWork: ModeOfWork;
|
|
345
|
+
fromWhere: FromWhere;
|
|
328
346
|
companyName: string;
|
|
329
347
|
}
|
|
330
348
|
|
|
331
|
-
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, NatureOfWork, 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,8 +35,10 @@ __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,
|
|
@@ -110,6 +112,7 @@ var ONBOARDING_PATTERN = {
|
|
|
110
112
|
handleFreelancerResumeUpload: "handle.freelancer.resume.upload",
|
|
111
113
|
handleFreelancerDeveloperPreference: "handle.freelancer.developer.preference",
|
|
112
114
|
handleFreelancerProfileQuestion: "handle.freelancer.profile.question",
|
|
115
|
+
handleClientProfileQuestion: "handle.client.profile.question",
|
|
113
116
|
handleClientAccountCreation: "handle.client.account.creation"
|
|
114
117
|
};
|
|
115
118
|
|
|
@@ -760,6 +763,19 @@ Question = __decorateClass([
|
|
|
760
763
|
|
|
761
764
|
// src/entities/company-profile.entity.ts
|
|
762
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 || {});
|
|
763
779
|
var CompanyProfile = class extends BaseEntity {
|
|
764
780
|
};
|
|
765
781
|
// individual index to find company profile by user
|
|
@@ -767,6 +783,40 @@ __decorateClass([
|
|
|
767
783
|
(0, import_typeorm8.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
768
784
|
(0, import_typeorm8.Index)()
|
|
769
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);
|
|
770
820
|
__decorateClass([
|
|
771
821
|
(0, import_typeorm8.Column)({ name: "company_name", type: "varchar" })
|
|
772
822
|
], CompanyProfile.prototype, "companyName", 2);
|
|
@@ -783,8 +833,10 @@ CompanyProfile = __decorateClass([
|
|
|
783
833
|
CreateQuestionDto,
|
|
784
834
|
CreateSubAdminDto,
|
|
785
835
|
FreelancerProfile,
|
|
836
|
+
FromWhere,
|
|
786
837
|
JobRMQAdapter,
|
|
787
838
|
JobTCPAdapter,
|
|
839
|
+
KindOfHire,
|
|
788
840
|
LoginDto,
|
|
789
841
|
LogoutDto,
|
|
790
842
|
ModeOfWork,
|
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
|
|
|
@@ -759,8 +760,23 @@ Question = __decorateClass([
|
|
|
759
760
|
import {
|
|
760
761
|
Entity as Entity7,
|
|
761
762
|
Column as Column8,
|
|
763
|
+
ManyToOne as ManyToOne5,
|
|
764
|
+
JoinColumn as JoinColumn5,
|
|
762
765
|
Index as Index3
|
|
763
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 || {});
|
|
764
780
|
var CompanyProfile = class extends BaseEntity {
|
|
765
781
|
};
|
|
766
782
|
// individual index to find company profile by user
|
|
@@ -768,6 +784,40 @@ __decorateClass([
|
|
|
768
784
|
Column8({ name: "user_id", type: "integer", nullable: true }),
|
|
769
785
|
Index3()
|
|
770
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);
|
|
771
821
|
__decorateClass([
|
|
772
822
|
Column8({ name: "company_name", type: "varchar" })
|
|
773
823
|
], CompanyProfile.prototype, "companyName", 2);
|
|
@@ -783,8 +833,10 @@ export {
|
|
|
783
833
|
CreateQuestionDto,
|
|
784
834
|
CreateSubAdminDto,
|
|
785
835
|
FreelancerProfile,
|
|
836
|
+
FromWhere,
|
|
786
837
|
JobRMQAdapter,
|
|
787
838
|
JobTCPAdapter,
|
|
839
|
+
KindOfHire,
|
|
788
840
|
LoginDto,
|
|
789
841
|
LogoutDto,
|
|
790
842
|
ModeOfWork,
|