@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.mjs
CHANGED
|
@@ -83,7 +83,8 @@ import {
|
|
|
83
83
|
|
|
84
84
|
// src/decorators/match.decorator.ts
|
|
85
85
|
import {
|
|
86
|
-
registerDecorator
|
|
86
|
+
registerDecorator,
|
|
87
|
+
ValidatorConstraint
|
|
87
88
|
} from "class-validator";
|
|
88
89
|
function Match(property, validationOptions) {
|
|
89
90
|
return function(object, propertyName) {
|
|
@@ -107,6 +108,35 @@ function Match(property, validationOptions) {
|
|
|
107
108
|
});
|
|
108
109
|
};
|
|
109
110
|
}
|
|
111
|
+
var IfscOrOtherFieldsConstraint = class {
|
|
112
|
+
validate(value, args) {
|
|
113
|
+
const [relatedFields] = args.constraints;
|
|
114
|
+
const dto = args.object;
|
|
115
|
+
if (!value) {
|
|
116
|
+
return relatedFields.some((field) => !!dto[field]);
|
|
117
|
+
}
|
|
118
|
+
return true;
|
|
119
|
+
}
|
|
120
|
+
defaultMessage(args) {
|
|
121
|
+
const [relatedFields] = args.constraints;
|
|
122
|
+
const fieldNames = relatedFields.join(", ");
|
|
123
|
+
return `IFSC Code is required .`;
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
IfscOrOtherFieldsConstraint = __decorateClass([
|
|
127
|
+
ValidatorConstraint({ async: false })
|
|
128
|
+
], IfscOrOtherFieldsConstraint);
|
|
129
|
+
function IfscOrOtherFields(relatedFields, validationOptions) {
|
|
130
|
+
return function(object, propertyName) {
|
|
131
|
+
registerDecorator({
|
|
132
|
+
target: object.constructor,
|
|
133
|
+
propertyName,
|
|
134
|
+
options: validationOptions,
|
|
135
|
+
constraints: [relatedFields],
|
|
136
|
+
validator: IfscOrOtherFieldsConstraint
|
|
137
|
+
});
|
|
138
|
+
};
|
|
139
|
+
}
|
|
110
140
|
|
|
111
141
|
// src/modules/onboarding/dto/freelancer-create-account.dto.ts
|
|
112
142
|
var FreelancerCreateAccountDto = class {
|
|
@@ -400,11 +430,11 @@ import {
|
|
|
400
430
|
|
|
401
431
|
// src/entities/company-profile.entity.ts
|
|
402
432
|
import {
|
|
403
|
-
Entity as
|
|
404
|
-
Column as
|
|
405
|
-
ManyToOne as
|
|
406
|
-
JoinColumn as
|
|
407
|
-
Index as
|
|
433
|
+
Entity as Entity10,
|
|
434
|
+
Column as Column11,
|
|
435
|
+
ManyToOne as ManyToOne8,
|
|
436
|
+
JoinColumn as JoinColumn8,
|
|
437
|
+
Index as Index6
|
|
408
438
|
} from "typeorm";
|
|
409
439
|
|
|
410
440
|
// src/entities/base.entity.ts
|
|
@@ -452,7 +482,7 @@ __decorateClass([
|
|
|
452
482
|
], BaseEntity.prototype, "deletedAt", 2);
|
|
453
483
|
|
|
454
484
|
// src/entities/user.entity.ts
|
|
455
|
-
import { Entity as
|
|
485
|
+
import { Entity as Entity9, Column as Column10, OneToMany as OneToMany5, OneToOne } from "typeorm";
|
|
456
486
|
|
|
457
487
|
// src/entities/refresh-token.entity.ts
|
|
458
488
|
import {
|
|
@@ -746,32 +776,32 @@ JobSkill = __decorateClass([
|
|
|
746
776
|
], JobSkill);
|
|
747
777
|
|
|
748
778
|
// src/entities/job-entity.ts
|
|
749
|
-
var
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
return
|
|
754
|
-
})(
|
|
755
|
-
var
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
return
|
|
760
|
-
})(
|
|
779
|
+
var JobLocationEnum = /* @__PURE__ */ ((JobLocationEnum2) => {
|
|
780
|
+
JobLocationEnum2["ONSITE"] = "ONSITE";
|
|
781
|
+
JobLocationEnum2["REMOTE"] = "REMOTE";
|
|
782
|
+
JobLocationEnum2["BOTH"] = "BOTH";
|
|
783
|
+
return JobLocationEnum2;
|
|
784
|
+
})(JobLocationEnum || {});
|
|
785
|
+
var TypeOfEmploymentEnum = /* @__PURE__ */ ((TypeOfEmploymentEnum2) => {
|
|
786
|
+
TypeOfEmploymentEnum2["FULLTIME"] = "FULLTIME";
|
|
787
|
+
TypeOfEmploymentEnum2["PARTTIME"] = "PARTTIME";
|
|
788
|
+
TypeOfEmploymentEnum2["BOTH"] = "BOTH";
|
|
789
|
+
return TypeOfEmploymentEnum2;
|
|
790
|
+
})(TypeOfEmploymentEnum || {});
|
|
761
791
|
var Step = /* @__PURE__ */ ((Step2) => {
|
|
762
792
|
Step2["BASIC_INFORMATION"] = "BASIC_INFORMATION";
|
|
763
793
|
Step2["ADDITIONAL_COMMENTS"] = "ADDITIONAL_COMMENTS";
|
|
764
794
|
Step2["JOB_DESCRIPTION"] = "JOB_DESCRIPTION";
|
|
765
795
|
return Step2;
|
|
766
796
|
})(Step || {});
|
|
767
|
-
var
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
return
|
|
774
|
-
})(
|
|
797
|
+
var JobStatusEnum = /* @__PURE__ */ ((JobStatusEnum2) => {
|
|
798
|
+
JobStatusEnum2["ACTIVE"] = "ACTIVE";
|
|
799
|
+
JobStatusEnum2["OPEN"] = "OPEN";
|
|
800
|
+
JobStatusEnum2["DRAFT"] = "DRAFT";
|
|
801
|
+
JobStatusEnum2["ONHOLD"] = "ONHOLD";
|
|
802
|
+
JobStatusEnum2["CLOSED"] = "CLOSED";
|
|
803
|
+
return JobStatusEnum2;
|
|
804
|
+
})(JobStatusEnum || {});
|
|
775
805
|
var Job = class extends BaseEntity {
|
|
776
806
|
};
|
|
777
807
|
__decorateClass([
|
|
@@ -799,7 +829,7 @@ __decorateClass([
|
|
|
799
829
|
Column8({
|
|
800
830
|
name: "location",
|
|
801
831
|
type: "enum",
|
|
802
|
-
enum:
|
|
832
|
+
enum: JobLocationEnum,
|
|
803
833
|
nullable: true
|
|
804
834
|
})
|
|
805
835
|
], Job.prototype, "location", 2);
|
|
@@ -807,7 +837,7 @@ __decorateClass([
|
|
|
807
837
|
Column8({
|
|
808
838
|
name: "type_of_employment",
|
|
809
839
|
type: "enum",
|
|
810
|
-
enum:
|
|
840
|
+
enum: TypeOfEmploymentEnum,
|
|
811
841
|
nullable: true
|
|
812
842
|
})
|
|
813
843
|
], Job.prototype, "typeOfEmployment", 2);
|
|
@@ -844,7 +874,7 @@ __decorateClass([
|
|
|
844
874
|
Column8({
|
|
845
875
|
name: "status",
|
|
846
876
|
type: "enum",
|
|
847
|
-
enum:
|
|
877
|
+
enum: JobStatusEnum,
|
|
848
878
|
default: "DRAFT" /* DRAFT */
|
|
849
879
|
})
|
|
850
880
|
], Job.prototype, "status", 2);
|
|
@@ -855,6 +885,88 @@ Job = __decorateClass([
|
|
|
855
885
|
Entity7("jobs")
|
|
856
886
|
], Job);
|
|
857
887
|
|
|
888
|
+
// src/entities/bank-details.entity.ts
|
|
889
|
+
import {
|
|
890
|
+
Entity as Entity8,
|
|
891
|
+
Column as Column9,
|
|
892
|
+
Index as Index5,
|
|
893
|
+
ManyToOne as ManyToOne7,
|
|
894
|
+
JoinColumn as JoinColumn7
|
|
895
|
+
} from "typeorm";
|
|
896
|
+
var BankAccountType = /* @__PURE__ */ ((BankAccountType2) => {
|
|
897
|
+
BankAccountType2["PRIMARY"] = "PRIMARY";
|
|
898
|
+
BankAccountType2["SECONDARY"] = "SECONDARY";
|
|
899
|
+
return BankAccountType2;
|
|
900
|
+
})(BankAccountType || {});
|
|
901
|
+
var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
902
|
+
BankAccountScope2["DOMESTIC"] = "domestic";
|
|
903
|
+
BankAccountScope2["INTERNATIONAL"] = "international";
|
|
904
|
+
return BankAccountScope2;
|
|
905
|
+
})(BankAccountScope || {});
|
|
906
|
+
var bankDetails = class extends BaseEntity {
|
|
907
|
+
};
|
|
908
|
+
// individual index to find bank details by user
|
|
909
|
+
__decorateClass([
|
|
910
|
+
Column9({ name: "user_id", type: "integer", nullable: true }),
|
|
911
|
+
Index5()
|
|
912
|
+
], bankDetails.prototype, "userId", 2);
|
|
913
|
+
__decorateClass([
|
|
914
|
+
ManyToOne7(() => User, (user) => user.bankDetails),
|
|
915
|
+
JoinColumn7({ name: "user_id" })
|
|
916
|
+
], bankDetails.prototype, "user", 2);
|
|
917
|
+
__decorateClass([
|
|
918
|
+
Column9({ name: "name", type: "varchar", nullable: true })
|
|
919
|
+
], bankDetails.prototype, "name", 2);
|
|
920
|
+
__decorateClass([
|
|
921
|
+
Column9({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
922
|
+
], bankDetails.prototype, "mobile", 2);
|
|
923
|
+
__decorateClass([
|
|
924
|
+
Column9({ name: "email", type: "varchar", unique: true })
|
|
925
|
+
], bankDetails.prototype, "email", 2);
|
|
926
|
+
__decorateClass([
|
|
927
|
+
Column9({ name: "address", type: "varchar", nullable: true })
|
|
928
|
+
], bankDetails.prototype, "address", 2);
|
|
929
|
+
__decorateClass([
|
|
930
|
+
Column9({ name: "account_number", type: "varchar", unique: true, nullable: true })
|
|
931
|
+
], bankDetails.prototype, "accountNumber", 2);
|
|
932
|
+
__decorateClass([
|
|
933
|
+
Column9({ name: "bank_name", type: "varchar", nullable: true })
|
|
934
|
+
], bankDetails.prototype, "bankName", 2);
|
|
935
|
+
__decorateClass([
|
|
936
|
+
Column9({ name: "ifsc_code", type: "varchar", nullable: true })
|
|
937
|
+
], bankDetails.prototype, "ifscCode", 2);
|
|
938
|
+
__decorateClass([
|
|
939
|
+
Column9({ name: "branch_name", type: "varchar", nullable: true })
|
|
940
|
+
], bankDetails.prototype, "branchName", 2);
|
|
941
|
+
__decorateClass([
|
|
942
|
+
Column9({ name: "routing_no", type: "varchar", nullable: true })
|
|
943
|
+
], bankDetails.prototype, "routingNo", 2);
|
|
944
|
+
__decorateClass([
|
|
945
|
+
Column9({ name: "aba_no", type: "varchar", nullable: true })
|
|
946
|
+
], bankDetails.prototype, "abaNumber", 2);
|
|
947
|
+
__decorateClass([
|
|
948
|
+
Column9({ name: "iban", type: "varchar", nullable: true })
|
|
949
|
+
], bankDetails.prototype, "iban", 2);
|
|
950
|
+
__decorateClass([
|
|
951
|
+
Column9({
|
|
952
|
+
name: "account_type",
|
|
953
|
+
type: "enum",
|
|
954
|
+
enum: BankAccountType,
|
|
955
|
+
default: "PRIMARY" /* PRIMARY */
|
|
956
|
+
})
|
|
957
|
+
], bankDetails.prototype, "accountType", 2);
|
|
958
|
+
__decorateClass([
|
|
959
|
+
Column9({
|
|
960
|
+
name: "account_scope",
|
|
961
|
+
type: "enum",
|
|
962
|
+
enum: BankAccountScope,
|
|
963
|
+
default: "domestic" /* DOMESTIC */
|
|
964
|
+
})
|
|
965
|
+
], bankDetails.prototype, "accountScope", 2);
|
|
966
|
+
bankDetails = __decorateClass([
|
|
967
|
+
Entity8("bank_details")
|
|
968
|
+
], bankDetails);
|
|
969
|
+
|
|
858
970
|
// src/entities/user.entity.ts
|
|
859
971
|
var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
860
972
|
AccountType2["ADMIN"] = "ADMIN";
|
|
@@ -873,40 +985,40 @@ var AccountStatus = /* @__PURE__ */ ((AccountStatus2) => {
|
|
|
873
985
|
var User = class extends BaseEntity {
|
|
874
986
|
};
|
|
875
987
|
__decorateClass([
|
|
876
|
-
|
|
988
|
+
Column10({ name: "unique_id", type: "varchar", unique: true })
|
|
877
989
|
], User.prototype, "uniqueId", 2);
|
|
878
990
|
__decorateClass([
|
|
879
|
-
|
|
991
|
+
Column10({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
880
992
|
], User.prototype, "username", 2);
|
|
881
993
|
__decorateClass([
|
|
882
|
-
|
|
994
|
+
Column10({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
883
995
|
], User.prototype, "firstName", 2);
|
|
884
996
|
__decorateClass([
|
|
885
|
-
|
|
997
|
+
Column10({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
886
998
|
], User.prototype, "lastName", 2);
|
|
887
999
|
__decorateClass([
|
|
888
|
-
|
|
1000
|
+
Column10({ name: "date_of_birth", type: "date", nullable: true })
|
|
889
1001
|
], User.prototype, "dateOfBirth", 2);
|
|
890
1002
|
__decorateClass([
|
|
891
|
-
|
|
1003
|
+
Column10({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
892
1004
|
], User.prototype, "gender", 2);
|
|
893
1005
|
__decorateClass([
|
|
894
|
-
|
|
1006
|
+
Column10({ name: "profile_picture_url", type: "text", nullable: true })
|
|
895
1007
|
], User.prototype, "profilePictureUrl", 2);
|
|
896
1008
|
__decorateClass([
|
|
897
|
-
|
|
1009
|
+
Column10({ name: "email", type: "varchar", unique: true })
|
|
898
1010
|
], User.prototype, "email", 2);
|
|
899
1011
|
__decorateClass([
|
|
900
|
-
|
|
1012
|
+
Column10({ name: "mobile_code", type: "varchar", nullable: true })
|
|
901
1013
|
], User.prototype, "mobileCode", 2);
|
|
902
1014
|
__decorateClass([
|
|
903
|
-
|
|
1015
|
+
Column10({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
904
1016
|
], User.prototype, "mobile", 2);
|
|
905
1017
|
__decorateClass([
|
|
906
|
-
|
|
1018
|
+
Column10({ name: "password", type: "varchar" })
|
|
907
1019
|
], User.prototype, "password", 2);
|
|
908
1020
|
__decorateClass([
|
|
909
|
-
|
|
1021
|
+
Column10({
|
|
910
1022
|
name: "account_type",
|
|
911
1023
|
type: "enum",
|
|
912
1024
|
enum: AccountType,
|
|
@@ -914,7 +1026,7 @@ __decorateClass([
|
|
|
914
1026
|
})
|
|
915
1027
|
], User.prototype, "accountType", 2);
|
|
916
1028
|
__decorateClass([
|
|
917
|
-
|
|
1029
|
+
Column10({
|
|
918
1030
|
name: "account_status",
|
|
919
1031
|
type: "enum",
|
|
920
1032
|
enum: AccountStatus,
|
|
@@ -922,29 +1034,29 @@ __decorateClass([
|
|
|
922
1034
|
})
|
|
923
1035
|
], User.prototype, "accountStatus", 2);
|
|
924
1036
|
__decorateClass([
|
|
925
|
-
|
|
1037
|
+
Column10({ name: "is_email_verified", type: "boolean", default: false })
|
|
926
1038
|
], User.prototype, "isEmailVerified", 2);
|
|
927
1039
|
__decorateClass([
|
|
928
|
-
|
|
1040
|
+
Column10({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
929
1041
|
], User.prototype, "isMobileVerified", 2);
|
|
930
1042
|
__decorateClass([
|
|
931
|
-
|
|
1043
|
+
Column10({
|
|
932
1044
|
name: "last_login_at",
|
|
933
1045
|
type: "timestamp with time zone",
|
|
934
1046
|
nullable: true
|
|
935
1047
|
})
|
|
936
1048
|
], User.prototype, "lastLoginAt", 2);
|
|
937
1049
|
__decorateClass([
|
|
938
|
-
|
|
1050
|
+
Column10({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
939
1051
|
], User.prototype, "lastLoginIp", 2);
|
|
940
1052
|
__decorateClass([
|
|
941
|
-
|
|
1053
|
+
OneToMany5(() => RefreshToken, (token) => token.user)
|
|
942
1054
|
], User.prototype, "refreshTokens", 2);
|
|
943
1055
|
__decorateClass([
|
|
944
|
-
|
|
1056
|
+
OneToMany5(() => Otp, (otp) => otp.user)
|
|
945
1057
|
], User.prototype, "otps", 2);
|
|
946
1058
|
__decorateClass([
|
|
947
|
-
|
|
1059
|
+
OneToMany5(() => ResumeParserLog, (resumeParser) => resumeParser.user)
|
|
948
1060
|
], User.prototype, "resumeParserLogs", 2);
|
|
949
1061
|
__decorateClass([
|
|
950
1062
|
OneToOne(
|
|
@@ -956,10 +1068,13 @@ __decorateClass([
|
|
|
956
1068
|
OneToOne(() => CompanyProfile, (companyProfile) => companyProfile.user)
|
|
957
1069
|
], User.prototype, "companyProfile", 2);
|
|
958
1070
|
__decorateClass([
|
|
959
|
-
|
|
1071
|
+
OneToMany5(() => Job, (job) => job.user)
|
|
960
1072
|
], User.prototype, "jobs", 2);
|
|
1073
|
+
__decorateClass([
|
|
1074
|
+
OneToMany5(() => bankDetails, (bankDetails2) => bankDetails2.user)
|
|
1075
|
+
], User.prototype, "bankDetails", 2);
|
|
961
1076
|
User = __decorateClass([
|
|
962
|
-
|
|
1077
|
+
Entity9("users")
|
|
963
1078
|
], User);
|
|
964
1079
|
|
|
965
1080
|
// src/entities/company-profile.entity.ts
|
|
@@ -986,42 +1101,42 @@ var CompanyProfile = class extends BaseEntity {
|
|
|
986
1101
|
};
|
|
987
1102
|
// individual index to find company profile by user
|
|
988
1103
|
__decorateClass([
|
|
989
|
-
|
|
990
|
-
|
|
1104
|
+
Column11({ name: "user_id", type: "integer", nullable: true }),
|
|
1105
|
+
Index6()
|
|
991
1106
|
], CompanyProfile.prototype, "userId", 2);
|
|
992
1107
|
__decorateClass([
|
|
993
|
-
|
|
994
|
-
|
|
1108
|
+
ManyToOne8(() => User, (user) => user.otps),
|
|
1109
|
+
JoinColumn8({ name: "user_id" })
|
|
995
1110
|
], CompanyProfile.prototype, "user", 2);
|
|
996
1111
|
__decorateClass([
|
|
997
|
-
|
|
1112
|
+
Column11({ name: "company_name", type: "varchar", nullable: true })
|
|
998
1113
|
], CompanyProfile.prototype, "companyName", 2);
|
|
999
1114
|
__decorateClass([
|
|
1000
|
-
|
|
1115
|
+
Column11({ name: "bio", type: "varchar", nullable: true })
|
|
1001
1116
|
], CompanyProfile.prototype, "bio", 2);
|
|
1002
1117
|
__decorateClass([
|
|
1003
|
-
|
|
1118
|
+
Column11({ name: "website", type: "varchar", nullable: true })
|
|
1004
1119
|
], CompanyProfile.prototype, "webSite", 2);
|
|
1005
1120
|
__decorateClass([
|
|
1006
|
-
|
|
1121
|
+
Column11({ name: "about_company", type: "varchar", nullable: true })
|
|
1007
1122
|
], CompanyProfile.prototype, "aboutCompany", 2);
|
|
1008
1123
|
__decorateClass([
|
|
1009
|
-
|
|
1124
|
+
Column11({ name: "is_service_aggrement_signed", type: "boolean", default: false })
|
|
1010
1125
|
], CompanyProfile.prototype, "isServiceAgreementSigned", 2);
|
|
1011
1126
|
__decorateClass([
|
|
1012
|
-
|
|
1127
|
+
Column11({ name: "company_address", type: "varchar", nullable: true })
|
|
1013
1128
|
], CompanyProfile.prototype, "companyAddress", 2);
|
|
1014
1129
|
__decorateClass([
|
|
1015
|
-
|
|
1130
|
+
Column11({ name: "phone_number", type: "varchar", nullable: true })
|
|
1016
1131
|
], CompanyProfile.prototype, "phoneNumber", 2);
|
|
1017
1132
|
__decorateClass([
|
|
1018
|
-
|
|
1133
|
+
Column11({ name: "skills", type: "text", nullable: true })
|
|
1019
1134
|
], CompanyProfile.prototype, "skills", 2);
|
|
1020
1135
|
__decorateClass([
|
|
1021
|
-
|
|
1136
|
+
Column11({ name: "required_freelancer", type: "varchar", nullable: true })
|
|
1022
1137
|
], CompanyProfile.prototype, "requiredFreelancer", 2);
|
|
1023
1138
|
__decorateClass([
|
|
1024
|
-
|
|
1139
|
+
Column11({
|
|
1025
1140
|
name: "kind_of_hiring",
|
|
1026
1141
|
type: "enum",
|
|
1027
1142
|
enum: KindOfHire,
|
|
@@ -1029,7 +1144,7 @@ __decorateClass([
|
|
|
1029
1144
|
})
|
|
1030
1145
|
], CompanyProfile.prototype, "kindOfHiring", 2);
|
|
1031
1146
|
__decorateClass([
|
|
1032
|
-
|
|
1147
|
+
Column11({
|
|
1033
1148
|
name: "mode_of_hire",
|
|
1034
1149
|
type: "enum",
|
|
1035
1150
|
enum: ModeOfHire,
|
|
@@ -1037,7 +1152,7 @@ __decorateClass([
|
|
|
1037
1152
|
})
|
|
1038
1153
|
], CompanyProfile.prototype, "modeOfHire", 2);
|
|
1039
1154
|
__decorateClass([
|
|
1040
|
-
|
|
1155
|
+
Column11({
|
|
1041
1156
|
name: "found_us_on",
|
|
1042
1157
|
type: "enum",
|
|
1043
1158
|
enum: FromUsOn,
|
|
@@ -1045,7 +1160,7 @@ __decorateClass([
|
|
|
1045
1160
|
})
|
|
1046
1161
|
], CompanyProfile.prototype, "foundUsOn", 2);
|
|
1047
1162
|
CompanyProfile = __decorateClass([
|
|
1048
|
-
|
|
1163
|
+
Entity10("company_profiles")
|
|
1049
1164
|
], CompanyProfile);
|
|
1050
1165
|
|
|
1051
1166
|
// src/modules/user/client-profile/dto/update-client-profile.dto.ts
|
|
@@ -1164,6 +1279,133 @@ var JOB_ROLE_PATTERN = {
|
|
|
1164
1279
|
fetchJobRolesForDropdown: "fetch.job.roles.for.dropdown"
|
|
1165
1280
|
};
|
|
1166
1281
|
|
|
1282
|
+
// src/modules/job/dto/job-basic-information.dto.ts
|
|
1283
|
+
import {
|
|
1284
|
+
IsString as IsString10,
|
|
1285
|
+
IsNotEmpty as IsNotEmpty15,
|
|
1286
|
+
IsArray as IsArray2,
|
|
1287
|
+
ArrayNotEmpty,
|
|
1288
|
+
IsNumber as IsNumber2,
|
|
1289
|
+
IsOptional as IsOptional6,
|
|
1290
|
+
IsEnum as IsEnum2,
|
|
1291
|
+
Min
|
|
1292
|
+
} from "class-validator";
|
|
1293
|
+
import { Type } from "class-transformer";
|
|
1294
|
+
var JobLocation = /* @__PURE__ */ ((JobLocation2) => {
|
|
1295
|
+
JobLocation2["ONSITE"] = "ONSITE";
|
|
1296
|
+
JobLocation2["REMOTE"] = "REMOTE";
|
|
1297
|
+
JobLocation2["BOTH"] = "BOTH";
|
|
1298
|
+
return JobLocation2;
|
|
1299
|
+
})(JobLocation || {});
|
|
1300
|
+
var EmploymentType = /* @__PURE__ */ ((EmploymentType2) => {
|
|
1301
|
+
EmploymentType2["FULLTIME"] = "FULLTIME";
|
|
1302
|
+
EmploymentType2["PARTTIME"] = "PARTTIME";
|
|
1303
|
+
EmploymentType2["BOTH"] = "BOTH";
|
|
1304
|
+
return EmploymentType2;
|
|
1305
|
+
})(EmploymentType || {});
|
|
1306
|
+
var JobBasicInformationDto = class {
|
|
1307
|
+
};
|
|
1308
|
+
__decorateClass([
|
|
1309
|
+
IsNotEmpty15({ message: "Please enter job role" }),
|
|
1310
|
+
IsString10({ message: "Job role must be a string" })
|
|
1311
|
+
], JobBasicInformationDto.prototype, "jobRole", 2);
|
|
1312
|
+
__decorateClass([
|
|
1313
|
+
IsOptional6(),
|
|
1314
|
+
IsString10({ message: "Note must be a string" })
|
|
1315
|
+
], JobBasicInformationDto.prototype, "note", 2);
|
|
1316
|
+
__decorateClass([
|
|
1317
|
+
IsArray2({ message: "Skills must be an array" }),
|
|
1318
|
+
ArrayNotEmpty({ message: "Please select at least one skill" }),
|
|
1319
|
+
IsNumber2({}, { each: true, message: "Each skill must be a number" }),
|
|
1320
|
+
Type(() => Number)
|
|
1321
|
+
], JobBasicInformationDto.prototype, "skills", 2);
|
|
1322
|
+
__decorateClass([
|
|
1323
|
+
IsNumber2({}, { message: "Openings must be a number" }),
|
|
1324
|
+
Min(1, { message: "There must be at least 1 opening" }),
|
|
1325
|
+
Type(() => Number)
|
|
1326
|
+
], JobBasicInformationDto.prototype, "openings", 2);
|
|
1327
|
+
__decorateClass([
|
|
1328
|
+
IsEnum2(JobLocation, {
|
|
1329
|
+
message: `Location must be one of: ${Object.values(JobLocation).join(
|
|
1330
|
+
", "
|
|
1331
|
+
)}`
|
|
1332
|
+
})
|
|
1333
|
+
], JobBasicInformationDto.prototype, "location", 2);
|
|
1334
|
+
__decorateClass([
|
|
1335
|
+
IsEnum2(EmploymentType, {
|
|
1336
|
+
message: `Type of employment must be one of: ${Object.values(
|
|
1337
|
+
EmploymentType
|
|
1338
|
+
).join(", ")}`
|
|
1339
|
+
})
|
|
1340
|
+
], JobBasicInformationDto.prototype, "typeOfEmployment", 2);
|
|
1341
|
+
__decorateClass([
|
|
1342
|
+
IsNumber2({}, { message: "Expected salary (from) must be a number" }),
|
|
1343
|
+
Min(0, { message: "Expected salary (from) cannot be negative" }),
|
|
1344
|
+
Type(() => Number)
|
|
1345
|
+
], JobBasicInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
1346
|
+
__decorateClass([
|
|
1347
|
+
IsNumber2({}, { message: "Expected salary (to) must be a number" }),
|
|
1348
|
+
Min(0, { message: "Expected salary (to) cannot be negative" }),
|
|
1349
|
+
Type(() => Number)
|
|
1350
|
+
], JobBasicInformationDto.prototype, "expectedSalaryTo", 2);
|
|
1351
|
+
__decorateClass([
|
|
1352
|
+
IsString10({ message: "Onboarding TAT must be a string" }),
|
|
1353
|
+
IsOptional6()
|
|
1354
|
+
], JobBasicInformationDto.prototype, "onboardingTat", 2);
|
|
1355
|
+
__decorateClass([
|
|
1356
|
+
IsString10({ message: "Candidate communication skills must be a string" }),
|
|
1357
|
+
IsOptional6()
|
|
1358
|
+
], JobBasicInformationDto.prototype, "candidateCommunicationSkills", 2);
|
|
1359
|
+
|
|
1360
|
+
// src/modules/job/dto/job-additional-comment.dto.ts
|
|
1361
|
+
import { IsOptional as IsOptional7, IsString as IsString11, MaxLength as MaxLength5 } from "class-validator";
|
|
1362
|
+
var JobAdditionalCommentDto = class {
|
|
1363
|
+
};
|
|
1364
|
+
__decorateClass([
|
|
1365
|
+
IsOptional7(),
|
|
1366
|
+
IsString11({ message: "Additional comment must be a string" }),
|
|
1367
|
+
MaxLength5(500, { message: "Additional comment must not exceed 500 characters" })
|
|
1368
|
+
], JobAdditionalCommentDto.prototype, "additionalComment", 2);
|
|
1369
|
+
|
|
1370
|
+
// src/modules/job/dto/job-description.dto.ts
|
|
1371
|
+
import { IsString as IsString12, IsNotEmpty as IsNotEmpty16, MaxLength as MaxLength6 } from "class-validator";
|
|
1372
|
+
var JobDescriptionDto = class {
|
|
1373
|
+
};
|
|
1374
|
+
__decorateClass([
|
|
1375
|
+
IsNotEmpty16({ message: "Please enter job description" }),
|
|
1376
|
+
IsString12({ message: "Description must be a string" }),
|
|
1377
|
+
MaxLength6(5e3, { message: "Description must not exceed 5000 characters" })
|
|
1378
|
+
], JobDescriptionDto.prototype, "description", 2);
|
|
1379
|
+
|
|
1380
|
+
// src/modules/job/dto/job-status.dto.ts
|
|
1381
|
+
import { IsEnum as IsEnum3, IsNotEmpty as IsNotEmpty17 } from "class-validator";
|
|
1382
|
+
var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
|
|
1383
|
+
JobStatus2["ACTIVE"] = "ACTIVE";
|
|
1384
|
+
JobStatus2["OPEN"] = "OPEN";
|
|
1385
|
+
JobStatus2["DRAFT"] = "DRAFT";
|
|
1386
|
+
JobStatus2["ONHOLD"] = "ONHOLD";
|
|
1387
|
+
JobStatus2["CLOSED"] = "CLOSED";
|
|
1388
|
+
return JobStatus2;
|
|
1389
|
+
})(JobStatus || {});
|
|
1390
|
+
var UpdateJobStatusDto = class {
|
|
1391
|
+
};
|
|
1392
|
+
__decorateClass([
|
|
1393
|
+
IsNotEmpty17({ message: "Please provide a job status" }),
|
|
1394
|
+
IsEnum3(JobStatus, {
|
|
1395
|
+
message: `Status must be one of: ${Object.values(JobStatus).join(", ")}`
|
|
1396
|
+
})
|
|
1397
|
+
], UpdateJobStatusDto.prototype, "status", 2);
|
|
1398
|
+
|
|
1399
|
+
// src/modules/job/dto/job-id-param.dto.ts
|
|
1400
|
+
import { IsUUID as IsUUID6 } from "class-validator";
|
|
1401
|
+
var JobIdParamDto = class {
|
|
1402
|
+
};
|
|
1403
|
+
__decorateClass([
|
|
1404
|
+
IsUUID6("4", {
|
|
1405
|
+
message: "Invalid job ID. It must be a valid UUID version 4."
|
|
1406
|
+
})
|
|
1407
|
+
], JobIdParamDto.prototype, "id", 2);
|
|
1408
|
+
|
|
1167
1409
|
// src/modules/user/freelancer-profile/pattern/pattern.ts
|
|
1168
1410
|
var PROFILE_PATTERN = {
|
|
1169
1411
|
fetchFreelancerProfile: "fetch.freelancer.profile",
|
|
@@ -1173,28 +1415,84 @@ var PROFILE_PATTERN = {
|
|
|
1173
1415
|
|
|
1174
1416
|
// src/modules/user/freelancer-profile/dto/freelancer-change-password.dto.ts
|
|
1175
1417
|
import {
|
|
1176
|
-
IsString as
|
|
1177
|
-
IsNotEmpty as
|
|
1178
|
-
MaxLength as
|
|
1418
|
+
IsString as IsString13,
|
|
1419
|
+
IsNotEmpty as IsNotEmpty18,
|
|
1420
|
+
MaxLength as MaxLength7,
|
|
1179
1421
|
MinLength as MinLength5,
|
|
1180
1422
|
Matches as Matches4
|
|
1181
1423
|
} from "class-validator";
|
|
1182
1424
|
var FreelancerChangePasswordDto = class {
|
|
1183
1425
|
};
|
|
1184
1426
|
__decorateClass([
|
|
1185
|
-
|
|
1186
|
-
|
|
1427
|
+
IsNotEmpty18({ message: "Please enter Old Password." }),
|
|
1428
|
+
IsString13()
|
|
1187
1429
|
], FreelancerChangePasswordDto.prototype, "oldPassword", 2);
|
|
1188
1430
|
__decorateClass([
|
|
1189
|
-
|
|
1190
|
-
|
|
1431
|
+
IsNotEmpty18({ message: "Please enter New Password." }),
|
|
1432
|
+
IsString13(),
|
|
1191
1433
|
MinLength5(6),
|
|
1192
|
-
|
|
1434
|
+
MaxLength7(32),
|
|
1193
1435
|
Matches4(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
1194
1436
|
message: "New Password must include letters, numbers and symbols."
|
|
1195
1437
|
})
|
|
1196
1438
|
], FreelancerChangePasswordDto.prototype, "newPassword", 2);
|
|
1197
1439
|
|
|
1440
|
+
// src/modules/bank/pattern/pattern.ts
|
|
1441
|
+
var BANK_PATTERN = {
|
|
1442
|
+
addFreelancerBankDetails: "add.freelancer.bankdetails"
|
|
1443
|
+
};
|
|
1444
|
+
|
|
1445
|
+
// src/modules/bank/dto/freelancer-bank-details.dto.ts
|
|
1446
|
+
import {
|
|
1447
|
+
IsNotEmpty as IsNotEmpty19,
|
|
1448
|
+
IsOptional as IsOptional8,
|
|
1449
|
+
ValidateIf
|
|
1450
|
+
} from "class-validator";
|
|
1451
|
+
var FreelancerBankDetailsDto = class {
|
|
1452
|
+
};
|
|
1453
|
+
__decorateClass([
|
|
1454
|
+
IsNotEmpty19({ message: "Please enter Account Holder Name." })
|
|
1455
|
+
], FreelancerBankDetailsDto.prototype, "name", 2);
|
|
1456
|
+
__decorateClass([
|
|
1457
|
+
IsNotEmpty19({ message: "Please enter Mobile Number." })
|
|
1458
|
+
], FreelancerBankDetailsDto.prototype, "mobile", 2);
|
|
1459
|
+
__decorateClass([
|
|
1460
|
+
IsNotEmpty19({ message: "Please enter Email." })
|
|
1461
|
+
], FreelancerBankDetailsDto.prototype, "email", 2);
|
|
1462
|
+
__decorateClass([
|
|
1463
|
+
IsOptional8()
|
|
1464
|
+
], FreelancerBankDetailsDto.prototype, "address", 2);
|
|
1465
|
+
__decorateClass([
|
|
1466
|
+
IsNotEmpty19({ message: "Please enter Account Number." })
|
|
1467
|
+
], FreelancerBankDetailsDto.prototype, "accountNumber", 2);
|
|
1468
|
+
__decorateClass([
|
|
1469
|
+
IsNotEmpty19({ message: "Please enter Bank Name." })
|
|
1470
|
+
], FreelancerBankDetailsDto.prototype, "bankName", 2);
|
|
1471
|
+
__decorateClass([
|
|
1472
|
+
IsNotEmpty19({ message: "Please enter Branch Name." })
|
|
1473
|
+
], FreelancerBankDetailsDto.prototype, "branchName", 2);
|
|
1474
|
+
__decorateClass([
|
|
1475
|
+
IsOptional8(),
|
|
1476
|
+
IfscOrOtherFields(["routingNo", "abaNumber", "iban"], {
|
|
1477
|
+
message: "IFSC Code is required ."
|
|
1478
|
+
})
|
|
1479
|
+
], FreelancerBankDetailsDto.prototype, "ifscCode", 2);
|
|
1480
|
+
__decorateClass([
|
|
1481
|
+
ValidateIf((dto) => !dto.ifscCode),
|
|
1482
|
+
IsNotEmpty19({ message: "Routing Number/Sort Code is required " })
|
|
1483
|
+
], FreelancerBankDetailsDto.prototype, "routingNo", 2);
|
|
1484
|
+
__decorateClass([
|
|
1485
|
+
ValidateIf((dto) => !dto.ifscCode),
|
|
1486
|
+
IsNotEmpty19({ message: "ABA Number is required " })
|
|
1487
|
+
], FreelancerBankDetailsDto.prototype, "abaNumber", 2);
|
|
1488
|
+
__decorateClass([
|
|
1489
|
+
ValidateIf((dto) => !dto.ifscCode),
|
|
1490
|
+
IsNotEmpty19({ message: "IBAN is required " })
|
|
1491
|
+
], FreelancerBankDetailsDto.prototype, "iban", 2);
|
|
1492
|
+
__decorateClass([
|
|
1493
|
+
IsOptional8()
|
|
1494
|
+
], FreelancerBankDetailsDto.prototype, "accountType", 2);
|
|
1495
|
+
|
|
1198
1496
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
1199
1497
|
import { config } from "dotenv";
|
|
1200
1498
|
import { Transport } from "@nestjs/microservices";
|
|
@@ -1340,7 +1638,7 @@ var JobRMQAdapter = (mode = "microservice") => {
|
|
|
1340
1638
|
};
|
|
1341
1639
|
|
|
1342
1640
|
// src/entities/question.entity.ts
|
|
1343
|
-
import { Entity as
|
|
1641
|
+
import { Entity as Entity11, Column as Column12 } from "typeorm";
|
|
1344
1642
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
1345
1643
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
1346
1644
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -1349,16 +1647,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
1349
1647
|
var Question = class extends BaseEntity {
|
|
1350
1648
|
};
|
|
1351
1649
|
__decorateClass([
|
|
1352
|
-
|
|
1650
|
+
Column12({ name: "question", type: "varchar" })
|
|
1353
1651
|
], Question.prototype, "question", 2);
|
|
1354
1652
|
__decorateClass([
|
|
1355
|
-
|
|
1653
|
+
Column12({ name: "hint", type: "varchar", nullable: true })
|
|
1356
1654
|
], Question.prototype, "hint", 2);
|
|
1357
1655
|
__decorateClass([
|
|
1358
|
-
|
|
1656
|
+
Column12({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
1359
1657
|
], Question.prototype, "slug", 2);
|
|
1360
1658
|
__decorateClass([
|
|
1361
|
-
|
|
1659
|
+
Column12({
|
|
1362
1660
|
name: "question_for",
|
|
1363
1661
|
type: "enum",
|
|
1364
1662
|
enum: QuestionFor,
|
|
@@ -1366,38 +1664,41 @@ __decorateClass([
|
|
|
1366
1664
|
})
|
|
1367
1665
|
], Question.prototype, "questionFor", 2);
|
|
1368
1666
|
__decorateClass([
|
|
1369
|
-
|
|
1667
|
+
Column12({ name: "type", type: "varchar", nullable: true })
|
|
1370
1668
|
], Question.prototype, "type", 2);
|
|
1371
1669
|
__decorateClass([
|
|
1372
|
-
|
|
1670
|
+
Column12({ name: "options", type: "jsonb", nullable: true })
|
|
1373
1671
|
], Question.prototype, "options", 2);
|
|
1374
1672
|
__decorateClass([
|
|
1375
|
-
|
|
1673
|
+
Column12({ name: "is_active", type: "boolean", default: false })
|
|
1376
1674
|
], Question.prototype, "isActive", 2);
|
|
1377
1675
|
Question = __decorateClass([
|
|
1378
|
-
|
|
1676
|
+
Entity11("questions")
|
|
1379
1677
|
], Question);
|
|
1380
1678
|
|
|
1381
1679
|
// src/entities/job-role.entity.ts
|
|
1382
|
-
import { Entity as
|
|
1680
|
+
import { Entity as Entity12, Column as Column13 } from "typeorm";
|
|
1383
1681
|
var JobRoles = class extends BaseEntity {
|
|
1384
1682
|
};
|
|
1385
1683
|
__decorateClass([
|
|
1386
|
-
|
|
1684
|
+
Column13({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
1387
1685
|
], JobRoles.prototype, "slug", 2);
|
|
1388
1686
|
__decorateClass([
|
|
1389
|
-
|
|
1687
|
+
Column13({ name: "name", type: "varchar", nullable: true })
|
|
1390
1688
|
], JobRoles.prototype, "name", 2);
|
|
1391
1689
|
__decorateClass([
|
|
1392
|
-
|
|
1690
|
+
Column13({ name: "is_active", type: "boolean", default: true })
|
|
1393
1691
|
], JobRoles.prototype, "isActive", 2);
|
|
1394
1692
|
JobRoles = __decorateClass([
|
|
1395
|
-
|
|
1693
|
+
Entity12("job_roles")
|
|
1396
1694
|
], JobRoles);
|
|
1397
1695
|
export {
|
|
1398
1696
|
AUTHENTICATION_PATTERN,
|
|
1399
1697
|
AccountStatus,
|
|
1400
1698
|
AccountType,
|
|
1699
|
+
BANK_PATTERN,
|
|
1700
|
+
BankAccountScope,
|
|
1701
|
+
BankAccountType,
|
|
1401
1702
|
BaseEntity,
|
|
1402
1703
|
CLIENT_PROFILE_PATTERN,
|
|
1403
1704
|
ClientChangePasswordDto,
|
|
@@ -1406,6 +1707,8 @@ export {
|
|
|
1406
1707
|
CompanyProfile,
|
|
1407
1708
|
CreateQuestionDto,
|
|
1408
1709
|
CreateSubAdminDto,
|
|
1710
|
+
EmploymentType,
|
|
1711
|
+
FreelancerBankDetailsDto,
|
|
1409
1712
|
FreelancerChangePasswordDto,
|
|
1410
1713
|
FreelancerCreateAccountDto,
|
|
1411
1714
|
FreelancerDevelopmentPreferenceDto,
|
|
@@ -1416,11 +1719,17 @@ export {
|
|
|
1416
1719
|
FromUsOn,
|
|
1417
1720
|
JOB_ROLE_PATTERN,
|
|
1418
1721
|
Job,
|
|
1722
|
+
JobAdditionalCommentDto,
|
|
1723
|
+
JobBasicInformationDto,
|
|
1724
|
+
JobDescriptionDto,
|
|
1725
|
+
JobIdParamDto,
|
|
1419
1726
|
JobLocation,
|
|
1727
|
+
JobLocationEnum,
|
|
1420
1728
|
JobRMQAdapter,
|
|
1421
1729
|
JobRoles,
|
|
1422
1730
|
JobSkill,
|
|
1423
1731
|
JobStatus,
|
|
1732
|
+
JobStatusEnum,
|
|
1424
1733
|
JobTCPAdapter,
|
|
1425
1734
|
KindOfHire,
|
|
1426
1735
|
LoginDto,
|
|
@@ -1442,11 +1751,13 @@ export {
|
|
|
1442
1751
|
SUBADMIN_PATTERN,
|
|
1443
1752
|
Skill,
|
|
1444
1753
|
Step,
|
|
1445
|
-
|
|
1754
|
+
TypeOfEmploymentEnum,
|
|
1446
1755
|
UpdateCompanyProfileDto,
|
|
1756
|
+
UpdateJobStatusDto,
|
|
1447
1757
|
UpdateSubAdminAccountStatusDto,
|
|
1448
1758
|
UpdateSubAdminDto,
|
|
1449
1759
|
User,
|
|
1450
1760
|
UserRMQAdapter,
|
|
1451
|
-
UserTCPAdapter
|
|
1761
|
+
UserTCPAdapter,
|
|
1762
|
+
bankDetails
|
|
1452
1763
|
};
|