@experts_hub/shared 1.0.85 → 1.0.88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/decorators/match.decorator.d.ts +6 -1
- package/dist/entities/bank-details.entity.d.ts +27 -0
- package/dist/entities/index.d.ts +1 -0
- package/dist/entities/job-entity.d.ts +6 -6
- package/dist/entities/user.entity.d.ts +2 -0
- package/dist/index.d.mts +99 -7
- package/dist/index.d.ts +99 -7
- package/dist/index.js +396 -92
- package/dist/index.mjs +404 -93
- package/dist/modules/bank/dto/freelancer-bank-details.dto.d.ts +14 -0
- package/dist/modules/bank/dto/index.d.ts +1 -0
- package/dist/modules/bank/index.d.ts +2 -0
- package/dist/modules/bank/pattern/pattern.d.ts +3 -0
- package/dist/modules/index.d.ts +1 -0
- package/dist/modules/job/dto/index.d.ts +5 -0
- package/dist/modules/job/dto/job-additional-comment.dto.d.ts +3 -0
- package/dist/modules/job/dto/job-basic-information.dto.d.ts +22 -0
- package/dist/modules/job/dto/job-description.dto.d.ts +3 -0
- package/dist/modules/job/dto/job-id-param.dto.d.ts +3 -0
- package/dist/modules/job/dto/job-status.dto.d.ts +10 -0
- package/dist/modules/job/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -30,6 +30,9 @@ __export(index_exports, {
|
|
|
30
30
|
AUTHENTICATION_PATTERN: () => AUTHENTICATION_PATTERN,
|
|
31
31
|
AccountStatus: () => AccountStatus,
|
|
32
32
|
AccountType: () => AccountType,
|
|
33
|
+
BANK_PATTERN: () => BANK_PATTERN,
|
|
34
|
+
BankAccountScope: () => BankAccountScope,
|
|
35
|
+
BankAccountType: () => BankAccountType,
|
|
33
36
|
BaseEntity: () => BaseEntity,
|
|
34
37
|
CLIENT_PROFILE_PATTERN: () => CLIENT_PROFILE_PATTERN,
|
|
35
38
|
ClientChangePasswordDto: () => ClientChangePasswordDto,
|
|
@@ -38,6 +41,8 @@ __export(index_exports, {
|
|
|
38
41
|
CompanyProfile: () => CompanyProfile,
|
|
39
42
|
CreateQuestionDto: () => CreateQuestionDto,
|
|
40
43
|
CreateSubAdminDto: () => CreateSubAdminDto,
|
|
44
|
+
EmploymentType: () => EmploymentType,
|
|
45
|
+
FreelancerBankDetailsDto: () => FreelancerBankDetailsDto,
|
|
41
46
|
FreelancerChangePasswordDto: () => FreelancerChangePasswordDto,
|
|
42
47
|
FreelancerCreateAccountDto: () => FreelancerCreateAccountDto,
|
|
43
48
|
FreelancerDevelopmentPreferenceDto: () => FreelancerDevelopmentPreferenceDto,
|
|
@@ -48,11 +53,17 @@ __export(index_exports, {
|
|
|
48
53
|
FromUsOn: () => FromUsOn,
|
|
49
54
|
JOB_ROLE_PATTERN: () => JOB_ROLE_PATTERN,
|
|
50
55
|
Job: () => Job,
|
|
56
|
+
JobAdditionalCommentDto: () => JobAdditionalCommentDto,
|
|
57
|
+
JobBasicInformationDto: () => JobBasicInformationDto,
|
|
58
|
+
JobDescriptionDto: () => JobDescriptionDto,
|
|
59
|
+
JobIdParamDto: () => JobIdParamDto,
|
|
51
60
|
JobLocation: () => JobLocation,
|
|
61
|
+
JobLocationEnum: () => JobLocationEnum,
|
|
52
62
|
JobRMQAdapter: () => JobRMQAdapter,
|
|
53
63
|
JobRoles: () => JobRoles,
|
|
54
64
|
JobSkill: () => JobSkill,
|
|
55
65
|
JobStatus: () => JobStatus,
|
|
66
|
+
JobStatusEnum: () => JobStatusEnum,
|
|
56
67
|
JobTCPAdapter: () => JobTCPAdapter,
|
|
57
68
|
KindOfHire: () => KindOfHire,
|
|
58
69
|
LoginDto: () => LoginDto,
|
|
@@ -74,13 +85,15 @@ __export(index_exports, {
|
|
|
74
85
|
SUBADMIN_PATTERN: () => SUBADMIN_PATTERN,
|
|
75
86
|
Skill: () => Skill,
|
|
76
87
|
Step: () => Step,
|
|
77
|
-
|
|
88
|
+
TypeOfEmploymentEnum: () => TypeOfEmploymentEnum,
|
|
78
89
|
UpdateCompanyProfileDto: () => UpdateCompanyProfileDto,
|
|
90
|
+
UpdateJobStatusDto: () => UpdateJobStatusDto,
|
|
79
91
|
UpdateSubAdminAccountStatusDto: () => UpdateSubAdminAccountStatusDto,
|
|
80
92
|
UpdateSubAdminDto: () => UpdateSubAdminDto,
|
|
81
93
|
User: () => User,
|
|
82
94
|
UserRMQAdapter: () => UserRMQAdapter,
|
|
83
|
-
UserTCPAdapter: () => UserTCPAdapter
|
|
95
|
+
UserTCPAdapter: () => UserTCPAdapter,
|
|
96
|
+
bankDetails: () => bankDetails
|
|
84
97
|
});
|
|
85
98
|
module.exports = __toCommonJS(index_exports);
|
|
86
99
|
|
|
@@ -167,6 +180,35 @@ function Match(property, validationOptions) {
|
|
|
167
180
|
});
|
|
168
181
|
};
|
|
169
182
|
}
|
|
183
|
+
var IfscOrOtherFieldsConstraint = class {
|
|
184
|
+
validate(value, args) {
|
|
185
|
+
const [relatedFields] = args.constraints;
|
|
186
|
+
const dto = args.object;
|
|
187
|
+
if (!value) {
|
|
188
|
+
return relatedFields.some((field) => !!dto[field]);
|
|
189
|
+
}
|
|
190
|
+
return true;
|
|
191
|
+
}
|
|
192
|
+
defaultMessage(args) {
|
|
193
|
+
const [relatedFields] = args.constraints;
|
|
194
|
+
const fieldNames = relatedFields.join(", ");
|
|
195
|
+
return `IFSC Code is required .`;
|
|
196
|
+
}
|
|
197
|
+
};
|
|
198
|
+
IfscOrOtherFieldsConstraint = __decorateClass([
|
|
199
|
+
(0, import_class_validator4.ValidatorConstraint)({ async: false })
|
|
200
|
+
], IfscOrOtherFieldsConstraint);
|
|
201
|
+
function IfscOrOtherFields(relatedFields, validationOptions) {
|
|
202
|
+
return function(object, propertyName) {
|
|
203
|
+
(0, import_class_validator4.registerDecorator)({
|
|
204
|
+
target: object.constructor,
|
|
205
|
+
propertyName,
|
|
206
|
+
options: validationOptions,
|
|
207
|
+
constraints: [relatedFields],
|
|
208
|
+
validator: IfscOrOtherFieldsConstraint
|
|
209
|
+
});
|
|
210
|
+
};
|
|
211
|
+
}
|
|
170
212
|
|
|
171
213
|
// src/modules/onboarding/dto/freelancer-create-account.dto.ts
|
|
172
214
|
var FreelancerCreateAccountDto = class {
|
|
@@ -428,7 +470,7 @@ var CLIENT_PROFILE_PATTERN = {
|
|
|
428
470
|
var import_class_validator15 = require("class-validator");
|
|
429
471
|
|
|
430
472
|
// src/entities/company-profile.entity.ts
|
|
431
|
-
var
|
|
473
|
+
var import_typeorm11 = require("typeorm");
|
|
432
474
|
|
|
433
475
|
// src/entities/base.entity.ts
|
|
434
476
|
var import_typeorm = require("typeorm");
|
|
@@ -468,7 +510,7 @@ __decorateClass([
|
|
|
468
510
|
], BaseEntity.prototype, "deletedAt", 2);
|
|
469
511
|
|
|
470
512
|
// src/entities/user.entity.ts
|
|
471
|
-
var
|
|
513
|
+
var import_typeorm10 = require("typeorm");
|
|
472
514
|
|
|
473
515
|
// src/entities/refresh-token.entity.ts
|
|
474
516
|
var import_typeorm2 = require("typeorm");
|
|
@@ -726,32 +768,32 @@ JobSkill = __decorateClass([
|
|
|
726
768
|
], JobSkill);
|
|
727
769
|
|
|
728
770
|
// src/entities/job-entity.ts
|
|
729
|
-
var
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
return
|
|
734
|
-
})(
|
|
735
|
-
var
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
return
|
|
740
|
-
})(
|
|
771
|
+
var JobLocationEnum = /* @__PURE__ */ ((JobLocationEnum2) => {
|
|
772
|
+
JobLocationEnum2["ONSITE"] = "ONSITE";
|
|
773
|
+
JobLocationEnum2["REMOTE"] = "REMOTE";
|
|
774
|
+
JobLocationEnum2["BOTH"] = "BOTH";
|
|
775
|
+
return JobLocationEnum2;
|
|
776
|
+
})(JobLocationEnum || {});
|
|
777
|
+
var TypeOfEmploymentEnum = /* @__PURE__ */ ((TypeOfEmploymentEnum2) => {
|
|
778
|
+
TypeOfEmploymentEnum2["FULLTIME"] = "FULLTIME";
|
|
779
|
+
TypeOfEmploymentEnum2["PARTTIME"] = "PARTTIME";
|
|
780
|
+
TypeOfEmploymentEnum2["BOTH"] = "BOTH";
|
|
781
|
+
return TypeOfEmploymentEnum2;
|
|
782
|
+
})(TypeOfEmploymentEnum || {});
|
|
741
783
|
var Step = /* @__PURE__ */ ((Step2) => {
|
|
742
784
|
Step2["BASIC_INFORMATION"] = "BASIC_INFORMATION";
|
|
743
785
|
Step2["ADDITIONAL_COMMENTS"] = "ADDITIONAL_COMMENTS";
|
|
744
786
|
Step2["JOB_DESCRIPTION"] = "JOB_DESCRIPTION";
|
|
745
787
|
return Step2;
|
|
746
788
|
})(Step || {});
|
|
747
|
-
var
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
return
|
|
754
|
-
})(
|
|
789
|
+
var JobStatusEnum = /* @__PURE__ */ ((JobStatusEnum2) => {
|
|
790
|
+
JobStatusEnum2["ACTIVE"] = "ACTIVE";
|
|
791
|
+
JobStatusEnum2["OPEN"] = "OPEN";
|
|
792
|
+
JobStatusEnum2["DRAFT"] = "DRAFT";
|
|
793
|
+
JobStatusEnum2["ONHOLD"] = "ONHOLD";
|
|
794
|
+
JobStatusEnum2["CLOSED"] = "CLOSED";
|
|
795
|
+
return JobStatusEnum2;
|
|
796
|
+
})(JobStatusEnum || {});
|
|
755
797
|
var Job = class extends BaseEntity {
|
|
756
798
|
};
|
|
757
799
|
__decorateClass([
|
|
@@ -779,7 +821,7 @@ __decorateClass([
|
|
|
779
821
|
(0, import_typeorm8.Column)({
|
|
780
822
|
name: "location",
|
|
781
823
|
type: "enum",
|
|
782
|
-
enum:
|
|
824
|
+
enum: JobLocationEnum,
|
|
783
825
|
nullable: true
|
|
784
826
|
})
|
|
785
827
|
], Job.prototype, "location", 2);
|
|
@@ -787,7 +829,7 @@ __decorateClass([
|
|
|
787
829
|
(0, import_typeorm8.Column)({
|
|
788
830
|
name: "type_of_employment",
|
|
789
831
|
type: "enum",
|
|
790
|
-
enum:
|
|
832
|
+
enum: TypeOfEmploymentEnum,
|
|
791
833
|
nullable: true
|
|
792
834
|
})
|
|
793
835
|
], Job.prototype, "typeOfEmployment", 2);
|
|
@@ -824,7 +866,7 @@ __decorateClass([
|
|
|
824
866
|
(0, import_typeorm8.Column)({
|
|
825
867
|
name: "status",
|
|
826
868
|
type: "enum",
|
|
827
|
-
enum:
|
|
869
|
+
enum: JobStatusEnum,
|
|
828
870
|
default: "DRAFT" /* DRAFT */
|
|
829
871
|
})
|
|
830
872
|
], Job.prototype, "status", 2);
|
|
@@ -835,6 +877,82 @@ Job = __decorateClass([
|
|
|
835
877
|
(0, import_typeorm8.Entity)("jobs")
|
|
836
878
|
], Job);
|
|
837
879
|
|
|
880
|
+
// src/entities/bank-details.entity.ts
|
|
881
|
+
var import_typeorm9 = require("typeorm");
|
|
882
|
+
var BankAccountType = /* @__PURE__ */ ((BankAccountType2) => {
|
|
883
|
+
BankAccountType2["PRIMARY"] = "PRIMARY";
|
|
884
|
+
BankAccountType2["SECONDARY"] = "SECONDARY";
|
|
885
|
+
return BankAccountType2;
|
|
886
|
+
})(BankAccountType || {});
|
|
887
|
+
var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
888
|
+
BankAccountScope2["DOMESTIC"] = "domestic";
|
|
889
|
+
BankAccountScope2["INTERNATIONAL"] = "international";
|
|
890
|
+
return BankAccountScope2;
|
|
891
|
+
})(BankAccountScope || {});
|
|
892
|
+
var bankDetails = class extends BaseEntity {
|
|
893
|
+
};
|
|
894
|
+
// individual index to find bank details by user
|
|
895
|
+
__decorateClass([
|
|
896
|
+
(0, import_typeorm9.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
897
|
+
(0, import_typeorm9.Index)()
|
|
898
|
+
], bankDetails.prototype, "userId", 2);
|
|
899
|
+
__decorateClass([
|
|
900
|
+
(0, import_typeorm9.ManyToOne)(() => User, (user) => user.bankDetails),
|
|
901
|
+
(0, import_typeorm9.JoinColumn)({ name: "user_id" })
|
|
902
|
+
], bankDetails.prototype, "user", 2);
|
|
903
|
+
__decorateClass([
|
|
904
|
+
(0, import_typeorm9.Column)({ name: "name", type: "varchar", nullable: true })
|
|
905
|
+
], bankDetails.prototype, "name", 2);
|
|
906
|
+
__decorateClass([
|
|
907
|
+
(0, import_typeorm9.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
908
|
+
], bankDetails.prototype, "mobile", 2);
|
|
909
|
+
__decorateClass([
|
|
910
|
+
(0, import_typeorm9.Column)({ name: "email", type: "varchar", unique: true })
|
|
911
|
+
], bankDetails.prototype, "email", 2);
|
|
912
|
+
__decorateClass([
|
|
913
|
+
(0, import_typeorm9.Column)({ name: "address", type: "varchar", nullable: true })
|
|
914
|
+
], bankDetails.prototype, "address", 2);
|
|
915
|
+
__decorateClass([
|
|
916
|
+
(0, import_typeorm9.Column)({ name: "account_number", type: "varchar", unique: true, nullable: true })
|
|
917
|
+
], bankDetails.prototype, "accountNumber", 2);
|
|
918
|
+
__decorateClass([
|
|
919
|
+
(0, import_typeorm9.Column)({ name: "bank_name", type: "varchar", nullable: true })
|
|
920
|
+
], bankDetails.prototype, "bankName", 2);
|
|
921
|
+
__decorateClass([
|
|
922
|
+
(0, import_typeorm9.Column)({ name: "ifsc_code", type: "varchar", nullable: true })
|
|
923
|
+
], bankDetails.prototype, "ifscCode", 2);
|
|
924
|
+
__decorateClass([
|
|
925
|
+
(0, import_typeorm9.Column)({ name: "branch_name", type: "varchar", nullable: true })
|
|
926
|
+
], bankDetails.prototype, "branchName", 2);
|
|
927
|
+
__decorateClass([
|
|
928
|
+
(0, import_typeorm9.Column)({ name: "routing_no", type: "varchar", nullable: true })
|
|
929
|
+
], bankDetails.prototype, "routingNo", 2);
|
|
930
|
+
__decorateClass([
|
|
931
|
+
(0, import_typeorm9.Column)({ name: "aba_no", type: "varchar", nullable: true })
|
|
932
|
+
], bankDetails.prototype, "abaNumber", 2);
|
|
933
|
+
__decorateClass([
|
|
934
|
+
(0, import_typeorm9.Column)({ name: "iban", type: "varchar", nullable: true })
|
|
935
|
+
], bankDetails.prototype, "iban", 2);
|
|
936
|
+
__decorateClass([
|
|
937
|
+
(0, import_typeorm9.Column)({
|
|
938
|
+
name: "account_type",
|
|
939
|
+
type: "enum",
|
|
940
|
+
enum: BankAccountType,
|
|
941
|
+
default: "PRIMARY" /* PRIMARY */
|
|
942
|
+
})
|
|
943
|
+
], bankDetails.prototype, "accountType", 2);
|
|
944
|
+
__decorateClass([
|
|
945
|
+
(0, import_typeorm9.Column)({
|
|
946
|
+
name: "account_scope",
|
|
947
|
+
type: "enum",
|
|
948
|
+
enum: BankAccountScope,
|
|
949
|
+
default: "domestic" /* DOMESTIC */
|
|
950
|
+
})
|
|
951
|
+
], bankDetails.prototype, "accountScope", 2);
|
|
952
|
+
bankDetails = __decorateClass([
|
|
953
|
+
(0, import_typeorm9.Entity)("bank_details")
|
|
954
|
+
], bankDetails);
|
|
955
|
+
|
|
838
956
|
// src/entities/user.entity.ts
|
|
839
957
|
var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
840
958
|
AccountType2["ADMIN"] = "ADMIN";
|
|
@@ -853,40 +971,40 @@ var AccountStatus = /* @__PURE__ */ ((AccountStatus2) => {
|
|
|
853
971
|
var User = class extends BaseEntity {
|
|
854
972
|
};
|
|
855
973
|
__decorateClass([
|
|
856
|
-
(0,
|
|
974
|
+
(0, import_typeorm10.Column)({ name: "unique_id", type: "varchar", unique: true })
|
|
857
975
|
], User.prototype, "uniqueId", 2);
|
|
858
976
|
__decorateClass([
|
|
859
|
-
(0,
|
|
977
|
+
(0, import_typeorm10.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
860
978
|
], User.prototype, "username", 2);
|
|
861
979
|
__decorateClass([
|
|
862
|
-
(0,
|
|
980
|
+
(0, import_typeorm10.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
863
981
|
], User.prototype, "firstName", 2);
|
|
864
982
|
__decorateClass([
|
|
865
|
-
(0,
|
|
983
|
+
(0, import_typeorm10.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
866
984
|
], User.prototype, "lastName", 2);
|
|
867
985
|
__decorateClass([
|
|
868
|
-
(0,
|
|
986
|
+
(0, import_typeorm10.Column)({ name: "date_of_birth", type: "date", nullable: true })
|
|
869
987
|
], User.prototype, "dateOfBirth", 2);
|
|
870
988
|
__decorateClass([
|
|
871
|
-
(0,
|
|
989
|
+
(0, import_typeorm10.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
872
990
|
], User.prototype, "gender", 2);
|
|
873
991
|
__decorateClass([
|
|
874
|
-
(0,
|
|
992
|
+
(0, import_typeorm10.Column)({ name: "profile_picture_url", type: "text", nullable: true })
|
|
875
993
|
], User.prototype, "profilePictureUrl", 2);
|
|
876
994
|
__decorateClass([
|
|
877
|
-
(0,
|
|
995
|
+
(0, import_typeorm10.Column)({ name: "email", type: "varchar", unique: true })
|
|
878
996
|
], User.prototype, "email", 2);
|
|
879
997
|
__decorateClass([
|
|
880
|
-
(0,
|
|
998
|
+
(0, import_typeorm10.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
881
999
|
], User.prototype, "mobileCode", 2);
|
|
882
1000
|
__decorateClass([
|
|
883
|
-
(0,
|
|
1001
|
+
(0, import_typeorm10.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
884
1002
|
], User.prototype, "mobile", 2);
|
|
885
1003
|
__decorateClass([
|
|
886
|
-
(0,
|
|
1004
|
+
(0, import_typeorm10.Column)({ name: "password", type: "varchar" })
|
|
887
1005
|
], User.prototype, "password", 2);
|
|
888
1006
|
__decorateClass([
|
|
889
|
-
(0,
|
|
1007
|
+
(0, import_typeorm10.Column)({
|
|
890
1008
|
name: "account_type",
|
|
891
1009
|
type: "enum",
|
|
892
1010
|
enum: AccountType,
|
|
@@ -894,7 +1012,7 @@ __decorateClass([
|
|
|
894
1012
|
})
|
|
895
1013
|
], User.prototype, "accountType", 2);
|
|
896
1014
|
__decorateClass([
|
|
897
|
-
(0,
|
|
1015
|
+
(0, import_typeorm10.Column)({
|
|
898
1016
|
name: "account_status",
|
|
899
1017
|
type: "enum",
|
|
900
1018
|
enum: AccountStatus,
|
|
@@ -902,44 +1020,47 @@ __decorateClass([
|
|
|
902
1020
|
})
|
|
903
1021
|
], User.prototype, "accountStatus", 2);
|
|
904
1022
|
__decorateClass([
|
|
905
|
-
(0,
|
|
1023
|
+
(0, import_typeorm10.Column)({ name: "is_email_verified", type: "boolean", default: false })
|
|
906
1024
|
], User.prototype, "isEmailVerified", 2);
|
|
907
1025
|
__decorateClass([
|
|
908
|
-
(0,
|
|
1026
|
+
(0, import_typeorm10.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
909
1027
|
], User.prototype, "isMobileVerified", 2);
|
|
910
1028
|
__decorateClass([
|
|
911
|
-
(0,
|
|
1029
|
+
(0, import_typeorm10.Column)({
|
|
912
1030
|
name: "last_login_at",
|
|
913
1031
|
type: "timestamp with time zone",
|
|
914
1032
|
nullable: true
|
|
915
1033
|
})
|
|
916
1034
|
], User.prototype, "lastLoginAt", 2);
|
|
917
1035
|
__decorateClass([
|
|
918
|
-
(0,
|
|
1036
|
+
(0, import_typeorm10.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
919
1037
|
], User.prototype, "lastLoginIp", 2);
|
|
920
1038
|
__decorateClass([
|
|
921
|
-
(0,
|
|
1039
|
+
(0, import_typeorm10.OneToMany)(() => RefreshToken, (token) => token.user)
|
|
922
1040
|
], User.prototype, "refreshTokens", 2);
|
|
923
1041
|
__decorateClass([
|
|
924
|
-
(0,
|
|
1042
|
+
(0, import_typeorm10.OneToMany)(() => Otp, (otp) => otp.user)
|
|
925
1043
|
], User.prototype, "otps", 2);
|
|
926
1044
|
__decorateClass([
|
|
927
|
-
(0,
|
|
1045
|
+
(0, import_typeorm10.OneToMany)(() => ResumeParserLog, (resumeParser) => resumeParser.user)
|
|
928
1046
|
], User.prototype, "resumeParserLogs", 2);
|
|
929
1047
|
__decorateClass([
|
|
930
|
-
(0,
|
|
1048
|
+
(0, import_typeorm10.OneToOne)(
|
|
931
1049
|
() => FreelancerProfile,
|
|
932
1050
|
(freelancerProfile) => freelancerProfile.user
|
|
933
1051
|
)
|
|
934
1052
|
], User.prototype, "freelancerProfile", 2);
|
|
935
1053
|
__decorateClass([
|
|
936
|
-
(0,
|
|
1054
|
+
(0, import_typeorm10.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
|
|
937
1055
|
], User.prototype, "companyProfile", 2);
|
|
938
1056
|
__decorateClass([
|
|
939
|
-
(0,
|
|
1057
|
+
(0, import_typeorm10.OneToMany)(() => Job, (job) => job.user)
|
|
940
1058
|
], User.prototype, "jobs", 2);
|
|
1059
|
+
__decorateClass([
|
|
1060
|
+
(0, import_typeorm10.OneToMany)(() => bankDetails, (bankDetails2) => bankDetails2.user)
|
|
1061
|
+
], User.prototype, "bankDetails", 2);
|
|
941
1062
|
User = __decorateClass([
|
|
942
|
-
(0,
|
|
1063
|
+
(0, import_typeorm10.Entity)("users")
|
|
943
1064
|
], User);
|
|
944
1065
|
|
|
945
1066
|
// src/entities/company-profile.entity.ts
|
|
@@ -966,42 +1087,42 @@ var CompanyProfile = class extends BaseEntity {
|
|
|
966
1087
|
};
|
|
967
1088
|
// individual index to find company profile by user
|
|
968
1089
|
__decorateClass([
|
|
969
|
-
(0,
|
|
970
|
-
(0,
|
|
1090
|
+
(0, import_typeorm11.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
1091
|
+
(0, import_typeorm11.Index)()
|
|
971
1092
|
], CompanyProfile.prototype, "userId", 2);
|
|
972
1093
|
__decorateClass([
|
|
973
|
-
(0,
|
|
974
|
-
(0,
|
|
1094
|
+
(0, import_typeorm11.ManyToOne)(() => User, (user) => user.otps),
|
|
1095
|
+
(0, import_typeorm11.JoinColumn)({ name: "user_id" })
|
|
975
1096
|
], CompanyProfile.prototype, "user", 2);
|
|
976
1097
|
__decorateClass([
|
|
977
|
-
(0,
|
|
1098
|
+
(0, import_typeorm11.Column)({ name: "company_name", type: "varchar", nullable: true })
|
|
978
1099
|
], CompanyProfile.prototype, "companyName", 2);
|
|
979
1100
|
__decorateClass([
|
|
980
|
-
(0,
|
|
1101
|
+
(0, import_typeorm11.Column)({ name: "bio", type: "varchar", nullable: true })
|
|
981
1102
|
], CompanyProfile.prototype, "bio", 2);
|
|
982
1103
|
__decorateClass([
|
|
983
|
-
(0,
|
|
1104
|
+
(0, import_typeorm11.Column)({ name: "website", type: "varchar", nullable: true })
|
|
984
1105
|
], CompanyProfile.prototype, "webSite", 2);
|
|
985
1106
|
__decorateClass([
|
|
986
|
-
(0,
|
|
1107
|
+
(0, import_typeorm11.Column)({ name: "about_company", type: "varchar", nullable: true })
|
|
987
1108
|
], CompanyProfile.prototype, "aboutCompany", 2);
|
|
988
1109
|
__decorateClass([
|
|
989
|
-
(0,
|
|
1110
|
+
(0, import_typeorm11.Column)({ name: "is_service_aggrement_signed", type: "boolean", default: false })
|
|
990
1111
|
], CompanyProfile.prototype, "isServiceAgreementSigned", 2);
|
|
991
1112
|
__decorateClass([
|
|
992
|
-
(0,
|
|
1113
|
+
(0, import_typeorm11.Column)({ name: "company_address", type: "varchar", nullable: true })
|
|
993
1114
|
], CompanyProfile.prototype, "companyAddress", 2);
|
|
994
1115
|
__decorateClass([
|
|
995
|
-
(0,
|
|
1116
|
+
(0, import_typeorm11.Column)({ name: "phone_number", type: "varchar", nullable: true })
|
|
996
1117
|
], CompanyProfile.prototype, "phoneNumber", 2);
|
|
997
1118
|
__decorateClass([
|
|
998
|
-
(0,
|
|
1119
|
+
(0, import_typeorm11.Column)({ name: "skills", type: "text", nullable: true })
|
|
999
1120
|
], CompanyProfile.prototype, "skills", 2);
|
|
1000
1121
|
__decorateClass([
|
|
1001
|
-
(0,
|
|
1122
|
+
(0, import_typeorm11.Column)({ name: "required_freelancer", type: "varchar", nullable: true })
|
|
1002
1123
|
], CompanyProfile.prototype, "requiredFreelancer", 2);
|
|
1003
1124
|
__decorateClass([
|
|
1004
|
-
(0,
|
|
1125
|
+
(0, import_typeorm11.Column)({
|
|
1005
1126
|
name: "kind_of_hiring",
|
|
1006
1127
|
type: "enum",
|
|
1007
1128
|
enum: KindOfHire,
|
|
@@ -1009,7 +1130,7 @@ __decorateClass([
|
|
|
1009
1130
|
})
|
|
1010
1131
|
], CompanyProfile.prototype, "kindOfHiring", 2);
|
|
1011
1132
|
__decorateClass([
|
|
1012
|
-
(0,
|
|
1133
|
+
(0, import_typeorm11.Column)({
|
|
1013
1134
|
name: "mode_of_hire",
|
|
1014
1135
|
type: "enum",
|
|
1015
1136
|
enum: ModeOfHire,
|
|
@@ -1017,7 +1138,7 @@ __decorateClass([
|
|
|
1017
1138
|
})
|
|
1018
1139
|
], CompanyProfile.prototype, "modeOfHire", 2);
|
|
1019
1140
|
__decorateClass([
|
|
1020
|
-
(0,
|
|
1141
|
+
(0, import_typeorm11.Column)({
|
|
1021
1142
|
name: "found_us_on",
|
|
1022
1143
|
type: "enum",
|
|
1023
1144
|
enum: FromUsOn,
|
|
@@ -1025,7 +1146,7 @@ __decorateClass([
|
|
|
1025
1146
|
})
|
|
1026
1147
|
], CompanyProfile.prototype, "foundUsOn", 2);
|
|
1027
1148
|
CompanyProfile = __decorateClass([
|
|
1028
|
-
(0,
|
|
1149
|
+
(0, import_typeorm11.Entity)("company_profiles")
|
|
1029
1150
|
], CompanyProfile);
|
|
1030
1151
|
|
|
1031
1152
|
// src/modules/user/client-profile/dto/update-client-profile.dto.ts
|
|
@@ -1134,6 +1255,124 @@ var JOB_ROLE_PATTERN = {
|
|
|
1134
1255
|
fetchJobRolesForDropdown: "fetch.job.roles.for.dropdown"
|
|
1135
1256
|
};
|
|
1136
1257
|
|
|
1258
|
+
// src/modules/job/dto/job-basic-information.dto.ts
|
|
1259
|
+
var import_class_validator18 = require("class-validator");
|
|
1260
|
+
var import_class_transformer = require("class-transformer");
|
|
1261
|
+
var JobLocation = /* @__PURE__ */ ((JobLocation2) => {
|
|
1262
|
+
JobLocation2["ONSITE"] = "ONSITE";
|
|
1263
|
+
JobLocation2["REMOTE"] = "REMOTE";
|
|
1264
|
+
JobLocation2["BOTH"] = "BOTH";
|
|
1265
|
+
return JobLocation2;
|
|
1266
|
+
})(JobLocation || {});
|
|
1267
|
+
var EmploymentType = /* @__PURE__ */ ((EmploymentType2) => {
|
|
1268
|
+
EmploymentType2["FULLTIME"] = "FULLTIME";
|
|
1269
|
+
EmploymentType2["PARTTIME"] = "PARTTIME";
|
|
1270
|
+
EmploymentType2["BOTH"] = "BOTH";
|
|
1271
|
+
return EmploymentType2;
|
|
1272
|
+
})(EmploymentType || {});
|
|
1273
|
+
var JobBasicInformationDto = class {
|
|
1274
|
+
};
|
|
1275
|
+
__decorateClass([
|
|
1276
|
+
(0, import_class_validator18.IsNotEmpty)({ message: "Please enter job role" }),
|
|
1277
|
+
(0, import_class_validator18.IsString)({ message: "Job role must be a string" })
|
|
1278
|
+
], JobBasicInformationDto.prototype, "jobRole", 2);
|
|
1279
|
+
__decorateClass([
|
|
1280
|
+
(0, import_class_validator18.IsOptional)(),
|
|
1281
|
+
(0, import_class_validator18.IsString)({ message: "Note must be a string" })
|
|
1282
|
+
], JobBasicInformationDto.prototype, "note", 2);
|
|
1283
|
+
__decorateClass([
|
|
1284
|
+
(0, import_class_validator18.IsArray)({ message: "Skills must be an array" }),
|
|
1285
|
+
(0, import_class_validator18.ArrayNotEmpty)({ message: "Please select at least one skill" }),
|
|
1286
|
+
(0, import_class_validator18.IsNumber)({}, { each: true, message: "Each skill must be a number" }),
|
|
1287
|
+
(0, import_class_transformer.Type)(() => Number)
|
|
1288
|
+
], JobBasicInformationDto.prototype, "skills", 2);
|
|
1289
|
+
__decorateClass([
|
|
1290
|
+
(0, import_class_validator18.IsNumber)({}, { message: "Openings must be a number" }),
|
|
1291
|
+
(0, import_class_validator18.Min)(1, { message: "There must be at least 1 opening" }),
|
|
1292
|
+
(0, import_class_transformer.Type)(() => Number)
|
|
1293
|
+
], JobBasicInformationDto.prototype, "openings", 2);
|
|
1294
|
+
__decorateClass([
|
|
1295
|
+
(0, import_class_validator18.IsEnum)(JobLocation, {
|
|
1296
|
+
message: `Location must be one of: ${Object.values(JobLocation).join(
|
|
1297
|
+
", "
|
|
1298
|
+
)}`
|
|
1299
|
+
})
|
|
1300
|
+
], JobBasicInformationDto.prototype, "location", 2);
|
|
1301
|
+
__decorateClass([
|
|
1302
|
+
(0, import_class_validator18.IsEnum)(EmploymentType, {
|
|
1303
|
+
message: `Type of employment must be one of: ${Object.values(
|
|
1304
|
+
EmploymentType
|
|
1305
|
+
).join(", ")}`
|
|
1306
|
+
})
|
|
1307
|
+
], JobBasicInformationDto.prototype, "typeOfEmployment", 2);
|
|
1308
|
+
__decorateClass([
|
|
1309
|
+
(0, import_class_validator18.IsNumber)({}, { message: "Expected salary (from) must be a number" }),
|
|
1310
|
+
(0, import_class_validator18.Min)(0, { message: "Expected salary (from) cannot be negative" }),
|
|
1311
|
+
(0, import_class_transformer.Type)(() => Number)
|
|
1312
|
+
], JobBasicInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
1313
|
+
__decorateClass([
|
|
1314
|
+
(0, import_class_validator18.IsNumber)({}, { message: "Expected salary (to) must be a number" }),
|
|
1315
|
+
(0, import_class_validator18.Min)(0, { message: "Expected salary (to) cannot be negative" }),
|
|
1316
|
+
(0, import_class_transformer.Type)(() => Number)
|
|
1317
|
+
], JobBasicInformationDto.prototype, "expectedSalaryTo", 2);
|
|
1318
|
+
__decorateClass([
|
|
1319
|
+
(0, import_class_validator18.IsString)({ message: "Onboarding TAT must be a string" }),
|
|
1320
|
+
(0, import_class_validator18.IsOptional)()
|
|
1321
|
+
], JobBasicInformationDto.prototype, "onboardingTat", 2);
|
|
1322
|
+
__decorateClass([
|
|
1323
|
+
(0, import_class_validator18.IsString)({ message: "Candidate communication skills must be a string" }),
|
|
1324
|
+
(0, import_class_validator18.IsOptional)()
|
|
1325
|
+
], JobBasicInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
1326
|
+
|
|
1327
|
+
// src/modules/job/dto/job-additional-comment.dto.ts
|
|
1328
|
+
var import_class_validator19 = require("class-validator");
|
|
1329
|
+
var JobAdditionalCommentDto = class {
|
|
1330
|
+
};
|
|
1331
|
+
__decorateClass([
|
|
1332
|
+
(0, import_class_validator19.IsOptional)(),
|
|
1333
|
+
(0, import_class_validator19.IsString)({ message: "Additional comment must be a string" }),
|
|
1334
|
+
(0, import_class_validator19.MaxLength)(500, { message: "Additional comment must not exceed 500 characters" })
|
|
1335
|
+
], JobAdditionalCommentDto.prototype, "additionalComment", 2);
|
|
1336
|
+
|
|
1337
|
+
// src/modules/job/dto/job-description.dto.ts
|
|
1338
|
+
var import_class_validator20 = require("class-validator");
|
|
1339
|
+
var JobDescriptionDto = class {
|
|
1340
|
+
};
|
|
1341
|
+
__decorateClass([
|
|
1342
|
+
(0, import_class_validator20.IsNotEmpty)({ message: "Please enter job description" }),
|
|
1343
|
+
(0, import_class_validator20.IsString)({ message: "Description must be a string" }),
|
|
1344
|
+
(0, import_class_validator20.MaxLength)(5e3, { message: "Description must not exceed 5000 characters" })
|
|
1345
|
+
], JobDescriptionDto.prototype, "description", 2);
|
|
1346
|
+
|
|
1347
|
+
// src/modules/job/dto/job-status.dto.ts
|
|
1348
|
+
var import_class_validator21 = require("class-validator");
|
|
1349
|
+
var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
|
|
1350
|
+
JobStatus2["ACTIVE"] = "ACTIVE";
|
|
1351
|
+
JobStatus2["OPEN"] = "OPEN";
|
|
1352
|
+
JobStatus2["DRAFT"] = "DRAFT";
|
|
1353
|
+
JobStatus2["ONHOLD"] = "ONHOLD";
|
|
1354
|
+
JobStatus2["CLOSED"] = "CLOSED";
|
|
1355
|
+
return JobStatus2;
|
|
1356
|
+
})(JobStatus || {});
|
|
1357
|
+
var UpdateJobStatusDto = class {
|
|
1358
|
+
};
|
|
1359
|
+
__decorateClass([
|
|
1360
|
+
(0, import_class_validator21.IsNotEmpty)({ message: "Please provide a job status" }),
|
|
1361
|
+
(0, import_class_validator21.IsEnum)(JobStatus, {
|
|
1362
|
+
message: `Status must be one of: ${Object.values(JobStatus).join(", ")}`
|
|
1363
|
+
})
|
|
1364
|
+
], UpdateJobStatusDto.prototype, "status", 2);
|
|
1365
|
+
|
|
1366
|
+
// src/modules/job/dto/job-id-param.dto.ts
|
|
1367
|
+
var import_class_validator22 = require("class-validator");
|
|
1368
|
+
var JobIdParamDto = class {
|
|
1369
|
+
};
|
|
1370
|
+
__decorateClass([
|
|
1371
|
+
(0, import_class_validator22.IsUUID)("4", {
|
|
1372
|
+
message: "Invalid job ID. It must be a valid UUID version 4."
|
|
1373
|
+
})
|
|
1374
|
+
], JobIdParamDto.prototype, "id", 2);
|
|
1375
|
+
|
|
1137
1376
|
// src/modules/user/freelancer-profile/pattern/pattern.ts
|
|
1138
1377
|
var PROFILE_PATTERN = {
|
|
1139
1378
|
fetchFreelancerProfile: "fetch.freelancer.profile",
|
|
@@ -1142,23 +1381,75 @@ var PROFILE_PATTERN = {
|
|
|
1142
1381
|
};
|
|
1143
1382
|
|
|
1144
1383
|
// src/modules/user/freelancer-profile/dto/freelancer-change-password.dto.ts
|
|
1145
|
-
var
|
|
1384
|
+
var import_class_validator23 = require("class-validator");
|
|
1146
1385
|
var FreelancerChangePasswordDto = class {
|
|
1147
1386
|
};
|
|
1148
1387
|
__decorateClass([
|
|
1149
|
-
(0,
|
|
1150
|
-
(0,
|
|
1388
|
+
(0, import_class_validator23.IsNotEmpty)({ message: "Please enter Old Password." }),
|
|
1389
|
+
(0, import_class_validator23.IsString)()
|
|
1151
1390
|
], FreelancerChangePasswordDto.prototype, "oldPassword", 2);
|
|
1152
1391
|
__decorateClass([
|
|
1153
|
-
(0,
|
|
1154
|
-
(0,
|
|
1155
|
-
(0,
|
|
1156
|
-
(0,
|
|
1157
|
-
(0,
|
|
1392
|
+
(0, import_class_validator23.IsNotEmpty)({ message: "Please enter New Password." }),
|
|
1393
|
+
(0, import_class_validator23.IsString)(),
|
|
1394
|
+
(0, import_class_validator23.MinLength)(6),
|
|
1395
|
+
(0, import_class_validator23.MaxLength)(32),
|
|
1396
|
+
(0, import_class_validator23.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
1158
1397
|
message: "New Password must include letters, numbers and symbols."
|
|
1159
1398
|
})
|
|
1160
1399
|
], FreelancerChangePasswordDto.prototype, "newPassword", 2);
|
|
1161
1400
|
|
|
1401
|
+
// src/modules/bank/pattern/pattern.ts
|
|
1402
|
+
var BANK_PATTERN = {
|
|
1403
|
+
addFreelancerBankDetails: "add.freelancer.bankdetails"
|
|
1404
|
+
};
|
|
1405
|
+
|
|
1406
|
+
// src/modules/bank/dto/freelancer-bank-details.dto.ts
|
|
1407
|
+
var import_class_validator24 = require("class-validator");
|
|
1408
|
+
var FreelancerBankDetailsDto = class {
|
|
1409
|
+
};
|
|
1410
|
+
__decorateClass([
|
|
1411
|
+
(0, import_class_validator24.IsNotEmpty)({ message: "Please enter Account Holder Name." })
|
|
1412
|
+
], FreelancerBankDetailsDto.prototype, "name", 2);
|
|
1413
|
+
__decorateClass([
|
|
1414
|
+
(0, import_class_validator24.IsNotEmpty)({ message: "Please enter Mobile Number." })
|
|
1415
|
+
], FreelancerBankDetailsDto.prototype, "mobile", 2);
|
|
1416
|
+
__decorateClass([
|
|
1417
|
+
(0, import_class_validator24.IsNotEmpty)({ message: "Please enter Email." })
|
|
1418
|
+
], FreelancerBankDetailsDto.prototype, "email", 2);
|
|
1419
|
+
__decorateClass([
|
|
1420
|
+
(0, import_class_validator24.IsOptional)()
|
|
1421
|
+
], FreelancerBankDetailsDto.prototype, "address", 2);
|
|
1422
|
+
__decorateClass([
|
|
1423
|
+
(0, import_class_validator24.IsNotEmpty)({ message: "Please enter Account Number." })
|
|
1424
|
+
], FreelancerBankDetailsDto.prototype, "accountNumber", 2);
|
|
1425
|
+
__decorateClass([
|
|
1426
|
+
(0, import_class_validator24.IsNotEmpty)({ message: "Please enter Bank Name." })
|
|
1427
|
+
], FreelancerBankDetailsDto.prototype, "bankName", 2);
|
|
1428
|
+
__decorateClass([
|
|
1429
|
+
(0, import_class_validator24.IsNotEmpty)({ message: "Please enter Branch Name." })
|
|
1430
|
+
], FreelancerBankDetailsDto.prototype, "branchName", 2);
|
|
1431
|
+
__decorateClass([
|
|
1432
|
+
(0, import_class_validator24.IsOptional)(),
|
|
1433
|
+
IfscOrOtherFields(["routingNo", "abaNumber", "iban"], {
|
|
1434
|
+
message: "IFSC Code is required ."
|
|
1435
|
+
})
|
|
1436
|
+
], FreelancerBankDetailsDto.prototype, "ifscCode", 2);
|
|
1437
|
+
__decorateClass([
|
|
1438
|
+
(0, import_class_validator24.ValidateIf)((dto) => !dto.ifscCode),
|
|
1439
|
+
(0, import_class_validator24.IsNotEmpty)({ message: "Routing Number/Sort Code is required " })
|
|
1440
|
+
], FreelancerBankDetailsDto.prototype, "routingNo", 2);
|
|
1441
|
+
__decorateClass([
|
|
1442
|
+
(0, import_class_validator24.ValidateIf)((dto) => !dto.ifscCode),
|
|
1443
|
+
(0, import_class_validator24.IsNotEmpty)({ message: "ABA Number is required " })
|
|
1444
|
+
], FreelancerBankDetailsDto.prototype, "abaNumber", 2);
|
|
1445
|
+
__decorateClass([
|
|
1446
|
+
(0, import_class_validator24.ValidateIf)((dto) => !dto.ifscCode),
|
|
1447
|
+
(0, import_class_validator24.IsNotEmpty)({ message: "IBAN is required " })
|
|
1448
|
+
], FreelancerBankDetailsDto.prototype, "iban", 2);
|
|
1449
|
+
__decorateClass([
|
|
1450
|
+
(0, import_class_validator24.IsOptional)()
|
|
1451
|
+
], FreelancerBankDetailsDto.prototype, "accountType", 2);
|
|
1452
|
+
|
|
1162
1453
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
1163
1454
|
var import_dotenv = require("dotenv");
|
|
1164
1455
|
var import_microservices = require("@nestjs/microservices");
|
|
@@ -1304,7 +1595,7 @@ var JobRMQAdapter = (mode = "microservice") => {
|
|
|
1304
1595
|
};
|
|
1305
1596
|
|
|
1306
1597
|
// src/entities/question.entity.ts
|
|
1307
|
-
var
|
|
1598
|
+
var import_typeorm12 = require("typeorm");
|
|
1308
1599
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
1309
1600
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
1310
1601
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -1313,16 +1604,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
1313
1604
|
var Question = class extends BaseEntity {
|
|
1314
1605
|
};
|
|
1315
1606
|
__decorateClass([
|
|
1316
|
-
(0,
|
|
1607
|
+
(0, import_typeorm12.Column)({ name: "question", type: "varchar" })
|
|
1317
1608
|
], Question.prototype, "question", 2);
|
|
1318
1609
|
__decorateClass([
|
|
1319
|
-
(0,
|
|
1610
|
+
(0, import_typeorm12.Column)({ name: "hint", type: "varchar", nullable: true })
|
|
1320
1611
|
], Question.prototype, "hint", 2);
|
|
1321
1612
|
__decorateClass([
|
|
1322
|
-
(0,
|
|
1613
|
+
(0, import_typeorm12.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
1323
1614
|
], Question.prototype, "slug", 2);
|
|
1324
1615
|
__decorateClass([
|
|
1325
|
-
(0,
|
|
1616
|
+
(0, import_typeorm12.Column)({
|
|
1326
1617
|
name: "question_for",
|
|
1327
1618
|
type: "enum",
|
|
1328
1619
|
enum: QuestionFor,
|
|
@@ -1330,39 +1621,42 @@ __decorateClass([
|
|
|
1330
1621
|
})
|
|
1331
1622
|
], Question.prototype, "questionFor", 2);
|
|
1332
1623
|
__decorateClass([
|
|
1333
|
-
(0,
|
|
1624
|
+
(0, import_typeorm12.Column)({ name: "type", type: "varchar", nullable: true })
|
|
1334
1625
|
], Question.prototype, "type", 2);
|
|
1335
1626
|
__decorateClass([
|
|
1336
|
-
(0,
|
|
1627
|
+
(0, import_typeorm12.Column)({ name: "options", type: "jsonb", nullable: true })
|
|
1337
1628
|
], Question.prototype, "options", 2);
|
|
1338
1629
|
__decorateClass([
|
|
1339
|
-
(0,
|
|
1630
|
+
(0, import_typeorm12.Column)({ name: "is_active", type: "boolean", default: false })
|
|
1340
1631
|
], Question.prototype, "isActive", 2);
|
|
1341
1632
|
Question = __decorateClass([
|
|
1342
|
-
(0,
|
|
1633
|
+
(0, import_typeorm12.Entity)("questions")
|
|
1343
1634
|
], Question);
|
|
1344
1635
|
|
|
1345
1636
|
// src/entities/job-role.entity.ts
|
|
1346
|
-
var
|
|
1637
|
+
var import_typeorm13 = require("typeorm");
|
|
1347
1638
|
var JobRoles = class extends BaseEntity {
|
|
1348
1639
|
};
|
|
1349
1640
|
__decorateClass([
|
|
1350
|
-
(0,
|
|
1641
|
+
(0, import_typeorm13.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
1351
1642
|
], JobRoles.prototype, "slug", 2);
|
|
1352
1643
|
__decorateClass([
|
|
1353
|
-
(0,
|
|
1644
|
+
(0, import_typeorm13.Column)({ name: "name", type: "varchar", nullable: true })
|
|
1354
1645
|
], JobRoles.prototype, "name", 2);
|
|
1355
1646
|
__decorateClass([
|
|
1356
|
-
(0,
|
|
1647
|
+
(0, import_typeorm13.Column)({ name: "is_active", type: "boolean", default: true })
|
|
1357
1648
|
], JobRoles.prototype, "isActive", 2);
|
|
1358
1649
|
JobRoles = __decorateClass([
|
|
1359
|
-
(0,
|
|
1650
|
+
(0, import_typeorm13.Entity)("job_roles")
|
|
1360
1651
|
], JobRoles);
|
|
1361
1652
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1362
1653
|
0 && (module.exports = {
|
|
1363
1654
|
AUTHENTICATION_PATTERN,
|
|
1364
1655
|
AccountStatus,
|
|
1365
1656
|
AccountType,
|
|
1657
|
+
BANK_PATTERN,
|
|
1658
|
+
BankAccountScope,
|
|
1659
|
+
BankAccountType,
|
|
1366
1660
|
BaseEntity,
|
|
1367
1661
|
CLIENT_PROFILE_PATTERN,
|
|
1368
1662
|
ClientChangePasswordDto,
|
|
@@ -1371,6 +1665,8 @@ JobRoles = __decorateClass([
|
|
|
1371
1665
|
CompanyProfile,
|
|
1372
1666
|
CreateQuestionDto,
|
|
1373
1667
|
CreateSubAdminDto,
|
|
1668
|
+
EmploymentType,
|
|
1669
|
+
FreelancerBankDetailsDto,
|
|
1374
1670
|
FreelancerChangePasswordDto,
|
|
1375
1671
|
FreelancerCreateAccountDto,
|
|
1376
1672
|
FreelancerDevelopmentPreferenceDto,
|
|
@@ -1381,11 +1677,17 @@ JobRoles = __decorateClass([
|
|
|
1381
1677
|
FromUsOn,
|
|
1382
1678
|
JOB_ROLE_PATTERN,
|
|
1383
1679
|
Job,
|
|
1680
|
+
JobAdditionalCommentDto,
|
|
1681
|
+
JobBasicInformationDto,
|
|
1682
|
+
JobDescriptionDto,
|
|
1683
|
+
JobIdParamDto,
|
|
1384
1684
|
JobLocation,
|
|
1685
|
+
JobLocationEnum,
|
|
1385
1686
|
JobRMQAdapter,
|
|
1386
1687
|
JobRoles,
|
|
1387
1688
|
JobSkill,
|
|
1388
1689
|
JobStatus,
|
|
1690
|
+
JobStatusEnum,
|
|
1389
1691
|
JobTCPAdapter,
|
|
1390
1692
|
KindOfHire,
|
|
1391
1693
|
LoginDto,
|
|
@@ -1407,11 +1709,13 @@ JobRoles = __decorateClass([
|
|
|
1407
1709
|
SUBADMIN_PATTERN,
|
|
1408
1710
|
Skill,
|
|
1409
1711
|
Step,
|
|
1410
|
-
|
|
1712
|
+
TypeOfEmploymentEnum,
|
|
1411
1713
|
UpdateCompanyProfileDto,
|
|
1714
|
+
UpdateJobStatusDto,
|
|
1412
1715
|
UpdateSubAdminAccountStatusDto,
|
|
1413
1716
|
UpdateSubAdminDto,
|
|
1414
1717
|
User,
|
|
1415
1718
|
UserRMQAdapter,
|
|
1416
|
-
UserTCPAdapter
|
|
1719
|
+
UserTCPAdapter,
|
|
1720
|
+
bankDetails
|
|
1417
1721
|
});
|