@experts_hub/shared 1.0.84 → 1.0.86
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/user.entity.d.ts +2 -0
- package/dist/index.d.mts +66 -5
- package/dist/index.d.ts +66 -5
- package/dist/index.js +266 -75
- package/dist/index.mjs +281 -79
- 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/user/client-profile/client-profile.interface.d.ts +9 -0
- package/dist/modules/user/client-profile/dto/client-change-password.dto.d.ts +4 -0
- package/dist/modules/user/client-profile/dto/index.d.ts +1 -0
- package/dist/modules/user/client-profile/pattern/pattern.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -30,13 +30,18 @@ __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,
|
|
38
|
+
ClientChangePasswordDto: () => ClientChangePasswordDto,
|
|
35
39
|
ClientCreateAccountDto: () => ClientCreateAccountDto,
|
|
36
40
|
ClientProfileQuestionDto: () => ClientProfileQuestionDto,
|
|
37
41
|
CompanyProfile: () => CompanyProfile,
|
|
38
42
|
CreateQuestionDto: () => CreateQuestionDto,
|
|
39
43
|
CreateSubAdminDto: () => CreateSubAdminDto,
|
|
44
|
+
FreelancerBankDetailsDto: () => FreelancerBankDetailsDto,
|
|
40
45
|
FreelancerChangePasswordDto: () => FreelancerChangePasswordDto,
|
|
41
46
|
FreelancerCreateAccountDto: () => FreelancerCreateAccountDto,
|
|
42
47
|
FreelancerDevelopmentPreferenceDto: () => FreelancerDevelopmentPreferenceDto,
|
|
@@ -79,7 +84,8 @@ __export(index_exports, {
|
|
|
79
84
|
UpdateSubAdminDto: () => UpdateSubAdminDto,
|
|
80
85
|
User: () => User,
|
|
81
86
|
UserRMQAdapter: () => UserRMQAdapter,
|
|
82
|
-
UserTCPAdapter: () => UserTCPAdapter
|
|
87
|
+
UserTCPAdapter: () => UserTCPAdapter,
|
|
88
|
+
bankDetails: () => bankDetails
|
|
83
89
|
});
|
|
84
90
|
module.exports = __toCommonJS(index_exports);
|
|
85
91
|
|
|
@@ -166,6 +172,35 @@ function Match(property, validationOptions) {
|
|
|
166
172
|
});
|
|
167
173
|
};
|
|
168
174
|
}
|
|
175
|
+
var IfscOrOtherFieldsConstraint = class {
|
|
176
|
+
validate(value, args) {
|
|
177
|
+
const [relatedFields] = args.constraints;
|
|
178
|
+
const dto = args.object;
|
|
179
|
+
if (!value) {
|
|
180
|
+
return relatedFields.some((field) => !!dto[field]);
|
|
181
|
+
}
|
|
182
|
+
return true;
|
|
183
|
+
}
|
|
184
|
+
defaultMessage(args) {
|
|
185
|
+
const [relatedFields] = args.constraints;
|
|
186
|
+
const fieldNames = relatedFields.join(", ");
|
|
187
|
+
return `IFSC Code is required .`;
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
IfscOrOtherFieldsConstraint = __decorateClass([
|
|
191
|
+
(0, import_class_validator4.ValidatorConstraint)({ async: false })
|
|
192
|
+
], IfscOrOtherFieldsConstraint);
|
|
193
|
+
function IfscOrOtherFields(relatedFields, validationOptions) {
|
|
194
|
+
return function(object, propertyName) {
|
|
195
|
+
(0, import_class_validator4.registerDecorator)({
|
|
196
|
+
target: object.constructor,
|
|
197
|
+
propertyName,
|
|
198
|
+
options: validationOptions,
|
|
199
|
+
constraints: [relatedFields],
|
|
200
|
+
validator: IfscOrOtherFieldsConstraint
|
|
201
|
+
});
|
|
202
|
+
};
|
|
203
|
+
}
|
|
169
204
|
|
|
170
205
|
// src/modules/onboarding/dto/freelancer-create-account.dto.ts
|
|
171
206
|
var FreelancerCreateAccountDto = class {
|
|
@@ -419,14 +454,15 @@ __decorateClass([
|
|
|
419
454
|
var CLIENT_PROFILE_PATTERN = {
|
|
420
455
|
fetchClientProfile: "fetch.client.profile",
|
|
421
456
|
updateClientProfile: "update.client.profile",
|
|
422
|
-
updateClientLogo: "update.client.logo"
|
|
457
|
+
updateClientLogo: "update.client.logo",
|
|
458
|
+
changeClientPassword: "change.client.password"
|
|
423
459
|
};
|
|
424
460
|
|
|
425
461
|
// src/modules/user/client-profile/dto/update-client-profile.dto.ts
|
|
426
462
|
var import_class_validator15 = require("class-validator");
|
|
427
463
|
|
|
428
464
|
// src/entities/company-profile.entity.ts
|
|
429
|
-
var
|
|
465
|
+
var import_typeorm11 = require("typeorm");
|
|
430
466
|
|
|
431
467
|
// src/entities/base.entity.ts
|
|
432
468
|
var import_typeorm = require("typeorm");
|
|
@@ -466,7 +502,7 @@ __decorateClass([
|
|
|
466
502
|
], BaseEntity.prototype, "deletedAt", 2);
|
|
467
503
|
|
|
468
504
|
// src/entities/user.entity.ts
|
|
469
|
-
var
|
|
505
|
+
var import_typeorm10 = require("typeorm");
|
|
470
506
|
|
|
471
507
|
// src/entities/refresh-token.entity.ts
|
|
472
508
|
var import_typeorm2 = require("typeorm");
|
|
@@ -833,6 +869,82 @@ Job = __decorateClass([
|
|
|
833
869
|
(0, import_typeorm8.Entity)("jobs")
|
|
834
870
|
], Job);
|
|
835
871
|
|
|
872
|
+
// src/entities/bank-details.entity.ts
|
|
873
|
+
var import_typeorm9 = require("typeorm");
|
|
874
|
+
var BankAccountType = /* @__PURE__ */ ((BankAccountType2) => {
|
|
875
|
+
BankAccountType2["PRIMARY"] = "PRIMARY";
|
|
876
|
+
BankAccountType2["SECONDARY"] = "SECONDARY";
|
|
877
|
+
return BankAccountType2;
|
|
878
|
+
})(BankAccountType || {});
|
|
879
|
+
var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
880
|
+
BankAccountScope2["DOMESTIC"] = "domestic";
|
|
881
|
+
BankAccountScope2["INTERNATIONAL"] = "international";
|
|
882
|
+
return BankAccountScope2;
|
|
883
|
+
})(BankAccountScope || {});
|
|
884
|
+
var bankDetails = class extends BaseEntity {
|
|
885
|
+
};
|
|
886
|
+
// individual index to find bank details by user
|
|
887
|
+
__decorateClass([
|
|
888
|
+
(0, import_typeorm9.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
889
|
+
(0, import_typeorm9.Index)()
|
|
890
|
+
], bankDetails.prototype, "userId", 2);
|
|
891
|
+
__decorateClass([
|
|
892
|
+
(0, import_typeorm9.ManyToOne)(() => User, (user) => user.bankDetails),
|
|
893
|
+
(0, import_typeorm9.JoinColumn)({ name: "user_id" })
|
|
894
|
+
], bankDetails.prototype, "user", 2);
|
|
895
|
+
__decorateClass([
|
|
896
|
+
(0, import_typeorm9.Column)({ name: "name", type: "varchar", nullable: true })
|
|
897
|
+
], bankDetails.prototype, "name", 2);
|
|
898
|
+
__decorateClass([
|
|
899
|
+
(0, import_typeorm9.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
900
|
+
], bankDetails.prototype, "mobile", 2);
|
|
901
|
+
__decorateClass([
|
|
902
|
+
(0, import_typeorm9.Column)({ name: "email", type: "varchar", unique: true })
|
|
903
|
+
], bankDetails.prototype, "email", 2);
|
|
904
|
+
__decorateClass([
|
|
905
|
+
(0, import_typeorm9.Column)({ name: "address", type: "varchar", nullable: true })
|
|
906
|
+
], bankDetails.prototype, "address", 2);
|
|
907
|
+
__decorateClass([
|
|
908
|
+
(0, import_typeorm9.Column)({ name: "account_number", type: "varchar", unique: true, nullable: true })
|
|
909
|
+
], bankDetails.prototype, "accountNumber", 2);
|
|
910
|
+
__decorateClass([
|
|
911
|
+
(0, import_typeorm9.Column)({ name: "bank_name", type: "varchar", nullable: true })
|
|
912
|
+
], bankDetails.prototype, "bankName", 2);
|
|
913
|
+
__decorateClass([
|
|
914
|
+
(0, import_typeorm9.Column)({ name: "ifsc_code", type: "varchar", nullable: true })
|
|
915
|
+
], bankDetails.prototype, "ifscCode", 2);
|
|
916
|
+
__decorateClass([
|
|
917
|
+
(0, import_typeorm9.Column)({ name: "branch_name", type: "varchar", nullable: true })
|
|
918
|
+
], bankDetails.prototype, "branchName", 2);
|
|
919
|
+
__decorateClass([
|
|
920
|
+
(0, import_typeorm9.Column)({ name: "routing_no", type: "varchar", nullable: true })
|
|
921
|
+
], bankDetails.prototype, "routingNo", 2);
|
|
922
|
+
__decorateClass([
|
|
923
|
+
(0, import_typeorm9.Column)({ name: "aba_no", type: "varchar", nullable: true })
|
|
924
|
+
], bankDetails.prototype, "abaNumber", 2);
|
|
925
|
+
__decorateClass([
|
|
926
|
+
(0, import_typeorm9.Column)({ name: "iban", type: "varchar", nullable: true })
|
|
927
|
+
], bankDetails.prototype, "iban", 2);
|
|
928
|
+
__decorateClass([
|
|
929
|
+
(0, import_typeorm9.Column)({
|
|
930
|
+
name: "account_type",
|
|
931
|
+
type: "enum",
|
|
932
|
+
enum: BankAccountType,
|
|
933
|
+
default: "PRIMARY" /* PRIMARY */
|
|
934
|
+
})
|
|
935
|
+
], bankDetails.prototype, "accountType", 2);
|
|
936
|
+
__decorateClass([
|
|
937
|
+
(0, import_typeorm9.Column)({
|
|
938
|
+
name: "account_scope",
|
|
939
|
+
type: "enum",
|
|
940
|
+
enum: BankAccountScope,
|
|
941
|
+
default: "domestic" /* DOMESTIC */
|
|
942
|
+
})
|
|
943
|
+
], bankDetails.prototype, "accountScope", 2);
|
|
944
|
+
bankDetails = __decorateClass([
|
|
945
|
+
(0, import_typeorm9.Entity)("bank_details")
|
|
946
|
+
], bankDetails);
|
|
947
|
+
|
|
836
948
|
// src/entities/user.entity.ts
|
|
837
949
|
var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
838
950
|
AccountType2["ADMIN"] = "ADMIN";
|
|
@@ -851,40 +963,40 @@ var AccountStatus = /* @__PURE__ */ ((AccountStatus2) => {
|
|
|
851
963
|
var User = class extends BaseEntity {
|
|
852
964
|
};
|
|
853
965
|
__decorateClass([
|
|
854
|
-
(0,
|
|
966
|
+
(0, import_typeorm10.Column)({ name: "unique_id", type: "varchar", unique: true })
|
|
855
967
|
], User.prototype, "uniqueId", 2);
|
|
856
968
|
__decorateClass([
|
|
857
|
-
(0,
|
|
969
|
+
(0, import_typeorm10.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
858
970
|
], User.prototype, "username", 2);
|
|
859
971
|
__decorateClass([
|
|
860
|
-
(0,
|
|
972
|
+
(0, import_typeorm10.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
861
973
|
], User.prototype, "firstName", 2);
|
|
862
974
|
__decorateClass([
|
|
863
|
-
(0,
|
|
975
|
+
(0, import_typeorm10.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
864
976
|
], User.prototype, "lastName", 2);
|
|
865
977
|
__decorateClass([
|
|
866
|
-
(0,
|
|
978
|
+
(0, import_typeorm10.Column)({ name: "date_of_birth", type: "date", nullable: true })
|
|
867
979
|
], User.prototype, "dateOfBirth", 2);
|
|
868
980
|
__decorateClass([
|
|
869
|
-
(0,
|
|
981
|
+
(0, import_typeorm10.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
870
982
|
], User.prototype, "gender", 2);
|
|
871
983
|
__decorateClass([
|
|
872
|
-
(0,
|
|
984
|
+
(0, import_typeorm10.Column)({ name: "profile_picture_url", type: "text", nullable: true })
|
|
873
985
|
], User.prototype, "profilePictureUrl", 2);
|
|
874
986
|
__decorateClass([
|
|
875
|
-
(0,
|
|
987
|
+
(0, import_typeorm10.Column)({ name: "email", type: "varchar", unique: true })
|
|
876
988
|
], User.prototype, "email", 2);
|
|
877
989
|
__decorateClass([
|
|
878
|
-
(0,
|
|
990
|
+
(0, import_typeorm10.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
879
991
|
], User.prototype, "mobileCode", 2);
|
|
880
992
|
__decorateClass([
|
|
881
|
-
(0,
|
|
993
|
+
(0, import_typeorm10.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
882
994
|
], User.prototype, "mobile", 2);
|
|
883
995
|
__decorateClass([
|
|
884
|
-
(0,
|
|
996
|
+
(0, import_typeorm10.Column)({ name: "password", type: "varchar" })
|
|
885
997
|
], User.prototype, "password", 2);
|
|
886
998
|
__decorateClass([
|
|
887
|
-
(0,
|
|
999
|
+
(0, import_typeorm10.Column)({
|
|
888
1000
|
name: "account_type",
|
|
889
1001
|
type: "enum",
|
|
890
1002
|
enum: AccountType,
|
|
@@ -892,7 +1004,7 @@ __decorateClass([
|
|
|
892
1004
|
})
|
|
893
1005
|
], User.prototype, "accountType", 2);
|
|
894
1006
|
__decorateClass([
|
|
895
|
-
(0,
|
|
1007
|
+
(0, import_typeorm10.Column)({
|
|
896
1008
|
name: "account_status",
|
|
897
1009
|
type: "enum",
|
|
898
1010
|
enum: AccountStatus,
|
|
@@ -900,44 +1012,47 @@ __decorateClass([
|
|
|
900
1012
|
})
|
|
901
1013
|
], User.prototype, "accountStatus", 2);
|
|
902
1014
|
__decorateClass([
|
|
903
|
-
(0,
|
|
1015
|
+
(0, import_typeorm10.Column)({ name: "is_email_verified", type: "boolean", default: false })
|
|
904
1016
|
], User.prototype, "isEmailVerified", 2);
|
|
905
1017
|
__decorateClass([
|
|
906
|
-
(0,
|
|
1018
|
+
(0, import_typeorm10.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
907
1019
|
], User.prototype, "isMobileVerified", 2);
|
|
908
1020
|
__decorateClass([
|
|
909
|
-
(0,
|
|
1021
|
+
(0, import_typeorm10.Column)({
|
|
910
1022
|
name: "last_login_at",
|
|
911
1023
|
type: "timestamp with time zone",
|
|
912
1024
|
nullable: true
|
|
913
1025
|
})
|
|
914
1026
|
], User.prototype, "lastLoginAt", 2);
|
|
915
1027
|
__decorateClass([
|
|
916
|
-
(0,
|
|
1028
|
+
(0, import_typeorm10.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
917
1029
|
], User.prototype, "lastLoginIp", 2);
|
|
918
1030
|
__decorateClass([
|
|
919
|
-
(0,
|
|
1031
|
+
(0, import_typeorm10.OneToMany)(() => RefreshToken, (token) => token.user)
|
|
920
1032
|
], User.prototype, "refreshTokens", 2);
|
|
921
1033
|
__decorateClass([
|
|
922
|
-
(0,
|
|
1034
|
+
(0, import_typeorm10.OneToMany)(() => Otp, (otp) => otp.user)
|
|
923
1035
|
], User.prototype, "otps", 2);
|
|
924
1036
|
__decorateClass([
|
|
925
|
-
(0,
|
|
1037
|
+
(0, import_typeorm10.OneToMany)(() => ResumeParserLog, (resumeParser) => resumeParser.user)
|
|
926
1038
|
], User.prototype, "resumeParserLogs", 2);
|
|
927
1039
|
__decorateClass([
|
|
928
|
-
(0,
|
|
1040
|
+
(0, import_typeorm10.OneToOne)(
|
|
929
1041
|
() => FreelancerProfile,
|
|
930
1042
|
(freelancerProfile) => freelancerProfile.user
|
|
931
1043
|
)
|
|
932
1044
|
], User.prototype, "freelancerProfile", 2);
|
|
933
1045
|
__decorateClass([
|
|
934
|
-
(0,
|
|
1046
|
+
(0, import_typeorm10.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
|
|
935
1047
|
], User.prototype, "companyProfile", 2);
|
|
936
1048
|
__decorateClass([
|
|
937
|
-
(0,
|
|
1049
|
+
(0, import_typeorm10.OneToMany)(() => Job, (job) => job.user)
|
|
938
1050
|
], User.prototype, "jobs", 2);
|
|
1051
|
+
__decorateClass([
|
|
1052
|
+
(0, import_typeorm10.OneToMany)(() => bankDetails, (bankDetails2) => bankDetails2.user)
|
|
1053
|
+
], User.prototype, "bankDetails", 2);
|
|
939
1054
|
User = __decorateClass([
|
|
940
|
-
(0,
|
|
1055
|
+
(0, import_typeorm10.Entity)("users")
|
|
941
1056
|
], User);
|
|
942
1057
|
|
|
943
1058
|
// src/entities/company-profile.entity.ts
|
|
@@ -964,42 +1079,42 @@ var CompanyProfile = class extends BaseEntity {
|
|
|
964
1079
|
};
|
|
965
1080
|
// individual index to find company profile by user
|
|
966
1081
|
__decorateClass([
|
|
967
|
-
(0,
|
|
968
|
-
(0,
|
|
1082
|
+
(0, import_typeorm11.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
1083
|
+
(0, import_typeorm11.Index)()
|
|
969
1084
|
], CompanyProfile.prototype, "userId", 2);
|
|
970
1085
|
__decorateClass([
|
|
971
|
-
(0,
|
|
972
|
-
(0,
|
|
1086
|
+
(0, import_typeorm11.ManyToOne)(() => User, (user) => user.otps),
|
|
1087
|
+
(0, import_typeorm11.JoinColumn)({ name: "user_id" })
|
|
973
1088
|
], CompanyProfile.prototype, "user", 2);
|
|
974
1089
|
__decorateClass([
|
|
975
|
-
(0,
|
|
1090
|
+
(0, import_typeorm11.Column)({ name: "company_name", type: "varchar", nullable: true })
|
|
976
1091
|
], CompanyProfile.prototype, "companyName", 2);
|
|
977
1092
|
__decorateClass([
|
|
978
|
-
(0,
|
|
1093
|
+
(0, import_typeorm11.Column)({ name: "bio", type: "varchar", nullable: true })
|
|
979
1094
|
], CompanyProfile.prototype, "bio", 2);
|
|
980
1095
|
__decorateClass([
|
|
981
|
-
(0,
|
|
1096
|
+
(0, import_typeorm11.Column)({ name: "website", type: "varchar", nullable: true })
|
|
982
1097
|
], CompanyProfile.prototype, "webSite", 2);
|
|
983
1098
|
__decorateClass([
|
|
984
|
-
(0,
|
|
1099
|
+
(0, import_typeorm11.Column)({ name: "about_company", type: "varchar", nullable: true })
|
|
985
1100
|
], CompanyProfile.prototype, "aboutCompany", 2);
|
|
986
1101
|
__decorateClass([
|
|
987
|
-
(0,
|
|
1102
|
+
(0, import_typeorm11.Column)({ name: "is_service_aggrement_signed", type: "boolean", default: false })
|
|
988
1103
|
], CompanyProfile.prototype, "isServiceAgreementSigned", 2);
|
|
989
1104
|
__decorateClass([
|
|
990
|
-
(0,
|
|
1105
|
+
(0, import_typeorm11.Column)({ name: "company_address", type: "varchar", nullable: true })
|
|
991
1106
|
], CompanyProfile.prototype, "companyAddress", 2);
|
|
992
1107
|
__decorateClass([
|
|
993
|
-
(0,
|
|
1108
|
+
(0, import_typeorm11.Column)({ name: "phone_number", type: "varchar", nullable: true })
|
|
994
1109
|
], CompanyProfile.prototype, "phoneNumber", 2);
|
|
995
1110
|
__decorateClass([
|
|
996
|
-
(0,
|
|
1111
|
+
(0, import_typeorm11.Column)({ name: "skills", type: "text", nullable: true })
|
|
997
1112
|
], CompanyProfile.prototype, "skills", 2);
|
|
998
1113
|
__decorateClass([
|
|
999
|
-
(0,
|
|
1114
|
+
(0, import_typeorm11.Column)({ name: "required_freelancer", type: "varchar", nullable: true })
|
|
1000
1115
|
], CompanyProfile.prototype, "requiredFreelancer", 2);
|
|
1001
1116
|
__decorateClass([
|
|
1002
|
-
(0,
|
|
1117
|
+
(0, import_typeorm11.Column)({
|
|
1003
1118
|
name: "kind_of_hiring",
|
|
1004
1119
|
type: "enum",
|
|
1005
1120
|
enum: KindOfHire,
|
|
@@ -1007,7 +1122,7 @@ __decorateClass([
|
|
|
1007
1122
|
})
|
|
1008
1123
|
], CompanyProfile.prototype, "kindOfHiring", 2);
|
|
1009
1124
|
__decorateClass([
|
|
1010
|
-
(0,
|
|
1125
|
+
(0, import_typeorm11.Column)({
|
|
1011
1126
|
name: "mode_of_hire",
|
|
1012
1127
|
type: "enum",
|
|
1013
1128
|
enum: ModeOfHire,
|
|
@@ -1015,7 +1130,7 @@ __decorateClass([
|
|
|
1015
1130
|
})
|
|
1016
1131
|
], CompanyProfile.prototype, "modeOfHire", 2);
|
|
1017
1132
|
__decorateClass([
|
|
1018
|
-
(0,
|
|
1133
|
+
(0, import_typeorm11.Column)({
|
|
1019
1134
|
name: "found_us_on",
|
|
1020
1135
|
type: "enum",
|
|
1021
1136
|
enum: FromUsOn,
|
|
@@ -1023,7 +1138,7 @@ __decorateClass([
|
|
|
1023
1138
|
})
|
|
1024
1139
|
], CompanyProfile.prototype, "foundUsOn", 2);
|
|
1025
1140
|
CompanyProfile = __decorateClass([
|
|
1026
|
-
(0,
|
|
1141
|
+
(0, import_typeorm11.Entity)("company_profiles")
|
|
1027
1142
|
], CompanyProfile);
|
|
1028
1143
|
|
|
1029
1144
|
// src/modules/user/client-profile/dto/update-client-profile.dto.ts
|
|
@@ -1083,30 +1198,48 @@ __decorateClass([
|
|
|
1083
1198
|
})
|
|
1084
1199
|
], UpdateCompanyProfileDto.prototype, "foundUsOn", 2);
|
|
1085
1200
|
|
|
1201
|
+
// src/modules/user/client-profile/dto/client-change-password.dto.ts
|
|
1202
|
+
var import_class_validator16 = require("class-validator");
|
|
1203
|
+
var ClientChangePasswordDto = class {
|
|
1204
|
+
};
|
|
1205
|
+
__decorateClass([
|
|
1206
|
+
(0, import_class_validator16.IsNotEmpty)({ message: "Please enter Old Password." }),
|
|
1207
|
+
(0, import_class_validator16.IsString)()
|
|
1208
|
+
], ClientChangePasswordDto.prototype, "oldPassword", 2);
|
|
1209
|
+
__decorateClass([
|
|
1210
|
+
(0, import_class_validator16.IsNotEmpty)({ message: "Please enter New Password." }),
|
|
1211
|
+
(0, import_class_validator16.IsString)(),
|
|
1212
|
+
(0, import_class_validator16.MinLength)(6),
|
|
1213
|
+
(0, import_class_validator16.MaxLength)(32),
|
|
1214
|
+
(0, import_class_validator16.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
1215
|
+
message: "New Password must include letters, numbers and symbols."
|
|
1216
|
+
})
|
|
1217
|
+
], ClientChangePasswordDto.prototype, "newPassword", 2);
|
|
1218
|
+
|
|
1086
1219
|
// src/modules/question/pattern/pattern.ts
|
|
1087
1220
|
var QUESTION_PATTERN = {
|
|
1088
1221
|
fetchQuestions: "fetch.questions"
|
|
1089
1222
|
};
|
|
1090
1223
|
|
|
1091
1224
|
// src/modules/question/dto/create-question.dto.ts
|
|
1092
|
-
var
|
|
1225
|
+
var import_class_validator17 = require("class-validator");
|
|
1093
1226
|
var CreateQuestionDto = class {
|
|
1094
1227
|
};
|
|
1095
1228
|
__decorateClass([
|
|
1096
|
-
(0,
|
|
1229
|
+
(0, import_class_validator17.IsNotEmpty)({ message: "Please enter unique id." })
|
|
1097
1230
|
], CreateQuestionDto.prototype, "questionId", 2);
|
|
1098
1231
|
__decorateClass([
|
|
1099
|
-
(0,
|
|
1232
|
+
(0, import_class_validator17.IsNotEmpty)({ message: "Please enter question." })
|
|
1100
1233
|
], CreateQuestionDto.prototype, "question", 2);
|
|
1101
1234
|
__decorateClass([
|
|
1102
|
-
(0,
|
|
1235
|
+
(0, import_class_validator17.IsNotEmpty)({ message: "Please enter for whom the question is." })
|
|
1103
1236
|
], CreateQuestionDto.prototype, "questionFor", 2);
|
|
1104
1237
|
__decorateClass([
|
|
1105
|
-
(0,
|
|
1238
|
+
(0, import_class_validator17.IsNotEmpty)({ message: "Please enter options." })
|
|
1106
1239
|
], CreateQuestionDto.prototype, "options", 2);
|
|
1107
1240
|
__decorateClass([
|
|
1108
|
-
(0,
|
|
1109
|
-
(0,
|
|
1241
|
+
(0, import_class_validator17.IsOptional)(),
|
|
1242
|
+
(0, import_class_validator17.IsBoolean)({ message: "Whether the question status active" })
|
|
1110
1243
|
], CreateQuestionDto.prototype, "isActive", 2);
|
|
1111
1244
|
|
|
1112
1245
|
// src/modules/job/pattern/pattern.ts
|
|
@@ -1122,23 +1255,75 @@ var PROFILE_PATTERN = {
|
|
|
1122
1255
|
};
|
|
1123
1256
|
|
|
1124
1257
|
// src/modules/user/freelancer-profile/dto/freelancer-change-password.dto.ts
|
|
1125
|
-
var
|
|
1258
|
+
var import_class_validator18 = require("class-validator");
|
|
1126
1259
|
var FreelancerChangePasswordDto = class {
|
|
1127
1260
|
};
|
|
1128
1261
|
__decorateClass([
|
|
1129
|
-
(0,
|
|
1130
|
-
(0,
|
|
1262
|
+
(0, import_class_validator18.IsNotEmpty)({ message: "Please enter Old Password." }),
|
|
1263
|
+
(0, import_class_validator18.IsString)()
|
|
1131
1264
|
], FreelancerChangePasswordDto.prototype, "oldPassword", 2);
|
|
1132
1265
|
__decorateClass([
|
|
1133
|
-
(0,
|
|
1134
|
-
(0,
|
|
1135
|
-
(0,
|
|
1136
|
-
(0,
|
|
1137
|
-
(0,
|
|
1266
|
+
(0, import_class_validator18.IsNotEmpty)({ message: "Please enter New Password." }),
|
|
1267
|
+
(0, import_class_validator18.IsString)(),
|
|
1268
|
+
(0, import_class_validator18.MinLength)(6),
|
|
1269
|
+
(0, import_class_validator18.MaxLength)(32),
|
|
1270
|
+
(0, import_class_validator18.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
1138
1271
|
message: "New Password must include letters, numbers and symbols."
|
|
1139
1272
|
})
|
|
1140
1273
|
], FreelancerChangePasswordDto.prototype, "newPassword", 2);
|
|
1141
1274
|
|
|
1275
|
+
// src/modules/bank/pattern/pattern.ts
|
|
1276
|
+
var BANK_PATTERN = {
|
|
1277
|
+
addFreelancerBankDetails: "add.freelancer.bankdetails"
|
|
1278
|
+
};
|
|
1279
|
+
|
|
1280
|
+
// src/modules/bank/dto/freelancer-bank-details.dto.ts
|
|
1281
|
+
var import_class_validator19 = require("class-validator");
|
|
1282
|
+
var FreelancerBankDetailsDto = class {
|
|
1283
|
+
};
|
|
1284
|
+
__decorateClass([
|
|
1285
|
+
(0, import_class_validator19.IsNotEmpty)({ message: "Please enter Account Holder Name." })
|
|
1286
|
+
], FreelancerBankDetailsDto.prototype, "name", 2);
|
|
1287
|
+
__decorateClass([
|
|
1288
|
+
(0, import_class_validator19.IsNotEmpty)({ message: "Please enter Mobile Number." })
|
|
1289
|
+
], FreelancerBankDetailsDto.prototype, "mobile", 2);
|
|
1290
|
+
__decorateClass([
|
|
1291
|
+
(0, import_class_validator19.IsNotEmpty)({ message: "Please enter Email." })
|
|
1292
|
+
], FreelancerBankDetailsDto.prototype, "email", 2);
|
|
1293
|
+
__decorateClass([
|
|
1294
|
+
(0, import_class_validator19.IsOptional)()
|
|
1295
|
+
], FreelancerBankDetailsDto.prototype, "address", 2);
|
|
1296
|
+
__decorateClass([
|
|
1297
|
+
(0, import_class_validator19.IsNotEmpty)({ message: "Please enter Account Number." })
|
|
1298
|
+
], FreelancerBankDetailsDto.prototype, "accountNumber", 2);
|
|
1299
|
+
__decorateClass([
|
|
1300
|
+
(0, import_class_validator19.IsNotEmpty)({ message: "Please enter Bank Name." })
|
|
1301
|
+
], FreelancerBankDetailsDto.prototype, "bankName", 2);
|
|
1302
|
+
__decorateClass([
|
|
1303
|
+
(0, import_class_validator19.IsNotEmpty)({ message: "Please enter Branch Name." })
|
|
1304
|
+
], FreelancerBankDetailsDto.prototype, "branchName", 2);
|
|
1305
|
+
__decorateClass([
|
|
1306
|
+
(0, import_class_validator19.IsOptional)(),
|
|
1307
|
+
IfscOrOtherFields(["routingNo", "abaNumber", "iban"], {
|
|
1308
|
+
message: "IFSC Code is required ."
|
|
1309
|
+
})
|
|
1310
|
+
], FreelancerBankDetailsDto.prototype, "ifscCode", 2);
|
|
1311
|
+
__decorateClass([
|
|
1312
|
+
(0, import_class_validator19.ValidateIf)((dto) => !dto.ifscCode),
|
|
1313
|
+
(0, import_class_validator19.IsNotEmpty)({ message: "Routing Number/Sort Code is required " })
|
|
1314
|
+
], FreelancerBankDetailsDto.prototype, "routingNo", 2);
|
|
1315
|
+
__decorateClass([
|
|
1316
|
+
(0, import_class_validator19.ValidateIf)((dto) => !dto.ifscCode),
|
|
1317
|
+
(0, import_class_validator19.IsNotEmpty)({ message: "ABA Number is required " })
|
|
1318
|
+
], FreelancerBankDetailsDto.prototype, "abaNumber", 2);
|
|
1319
|
+
__decorateClass([
|
|
1320
|
+
(0, import_class_validator19.ValidateIf)((dto) => !dto.ifscCode),
|
|
1321
|
+
(0, import_class_validator19.IsNotEmpty)({ message: "IBAN is required " })
|
|
1322
|
+
], FreelancerBankDetailsDto.prototype, "iban", 2);
|
|
1323
|
+
__decorateClass([
|
|
1324
|
+
(0, import_class_validator19.IsOptional)()
|
|
1325
|
+
], FreelancerBankDetailsDto.prototype, "accountType", 2);
|
|
1326
|
+
|
|
1142
1327
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
1143
1328
|
var import_dotenv = require("dotenv");
|
|
1144
1329
|
var import_microservices = require("@nestjs/microservices");
|
|
@@ -1284,7 +1469,7 @@ var JobRMQAdapter = (mode = "microservice") => {
|
|
|
1284
1469
|
};
|
|
1285
1470
|
|
|
1286
1471
|
// src/entities/question.entity.ts
|
|
1287
|
-
var
|
|
1472
|
+
var import_typeorm12 = require("typeorm");
|
|
1288
1473
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
1289
1474
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
1290
1475
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -1293,16 +1478,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
1293
1478
|
var Question = class extends BaseEntity {
|
|
1294
1479
|
};
|
|
1295
1480
|
__decorateClass([
|
|
1296
|
-
(0,
|
|
1481
|
+
(0, import_typeorm12.Column)({ name: "question", type: "varchar" })
|
|
1297
1482
|
], Question.prototype, "question", 2);
|
|
1298
1483
|
__decorateClass([
|
|
1299
|
-
(0,
|
|
1484
|
+
(0, import_typeorm12.Column)({ name: "hint", type: "varchar", nullable: true })
|
|
1300
1485
|
], Question.prototype, "hint", 2);
|
|
1301
1486
|
__decorateClass([
|
|
1302
|
-
(0,
|
|
1487
|
+
(0, import_typeorm12.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
1303
1488
|
], Question.prototype, "slug", 2);
|
|
1304
1489
|
__decorateClass([
|
|
1305
|
-
(0,
|
|
1490
|
+
(0, import_typeorm12.Column)({
|
|
1306
1491
|
name: "question_for",
|
|
1307
1492
|
type: "enum",
|
|
1308
1493
|
enum: QuestionFor,
|
|
@@ -1310,46 +1495,51 @@ __decorateClass([
|
|
|
1310
1495
|
})
|
|
1311
1496
|
], Question.prototype, "questionFor", 2);
|
|
1312
1497
|
__decorateClass([
|
|
1313
|
-
(0,
|
|
1498
|
+
(0, import_typeorm12.Column)({ name: "type", type: "varchar", nullable: true })
|
|
1314
1499
|
], Question.prototype, "type", 2);
|
|
1315
1500
|
__decorateClass([
|
|
1316
|
-
(0,
|
|
1501
|
+
(0, import_typeorm12.Column)({ name: "options", type: "jsonb", nullable: true })
|
|
1317
1502
|
], Question.prototype, "options", 2);
|
|
1318
1503
|
__decorateClass([
|
|
1319
|
-
(0,
|
|
1504
|
+
(0, import_typeorm12.Column)({ name: "is_active", type: "boolean", default: false })
|
|
1320
1505
|
], Question.prototype, "isActive", 2);
|
|
1321
1506
|
Question = __decorateClass([
|
|
1322
|
-
(0,
|
|
1507
|
+
(0, import_typeorm12.Entity)("questions")
|
|
1323
1508
|
], Question);
|
|
1324
1509
|
|
|
1325
1510
|
// src/entities/job-role.entity.ts
|
|
1326
|
-
var
|
|
1511
|
+
var import_typeorm13 = require("typeorm");
|
|
1327
1512
|
var JobRoles = class extends BaseEntity {
|
|
1328
1513
|
};
|
|
1329
1514
|
__decorateClass([
|
|
1330
|
-
(0,
|
|
1515
|
+
(0, import_typeorm13.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
1331
1516
|
], JobRoles.prototype, "slug", 2);
|
|
1332
1517
|
__decorateClass([
|
|
1333
|
-
(0,
|
|
1518
|
+
(0, import_typeorm13.Column)({ name: "name", type: "varchar", nullable: true })
|
|
1334
1519
|
], JobRoles.prototype, "name", 2);
|
|
1335
1520
|
__decorateClass([
|
|
1336
|
-
(0,
|
|
1521
|
+
(0, import_typeorm13.Column)({ name: "is_active", type: "boolean", default: true })
|
|
1337
1522
|
], JobRoles.prototype, "isActive", 2);
|
|
1338
1523
|
JobRoles = __decorateClass([
|
|
1339
|
-
(0,
|
|
1524
|
+
(0, import_typeorm13.Entity)("job_roles")
|
|
1340
1525
|
], JobRoles);
|
|
1341
1526
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1342
1527
|
0 && (module.exports = {
|
|
1343
1528
|
AUTHENTICATION_PATTERN,
|
|
1344
1529
|
AccountStatus,
|
|
1345
1530
|
AccountType,
|
|
1531
|
+
BANK_PATTERN,
|
|
1532
|
+
BankAccountScope,
|
|
1533
|
+
BankAccountType,
|
|
1346
1534
|
BaseEntity,
|
|
1347
1535
|
CLIENT_PROFILE_PATTERN,
|
|
1536
|
+
ClientChangePasswordDto,
|
|
1348
1537
|
ClientCreateAccountDto,
|
|
1349
1538
|
ClientProfileQuestionDto,
|
|
1350
1539
|
CompanyProfile,
|
|
1351
1540
|
CreateQuestionDto,
|
|
1352
1541
|
CreateSubAdminDto,
|
|
1542
|
+
FreelancerBankDetailsDto,
|
|
1353
1543
|
FreelancerChangePasswordDto,
|
|
1354
1544
|
FreelancerCreateAccountDto,
|
|
1355
1545
|
FreelancerDevelopmentPreferenceDto,
|
|
@@ -1392,5 +1582,6 @@ JobRoles = __decorateClass([
|
|
|
1392
1582
|
UpdateSubAdminDto,
|
|
1393
1583
|
User,
|
|
1394
1584
|
UserRMQAdapter,
|
|
1395
|
-
UserTCPAdapter
|
|
1585
|
+
UserTCPAdapter,
|
|
1586
|
+
bankDetails
|
|
1396
1587
|
});
|