@experts_hub/shared 1.0.90 → 1.0.92
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities/bank-details.entity.d.ts +1 -1
- package/dist/entities/user.entity.d.ts +2 -2
- package/dist/index.d.mts +17 -3
- package/dist/index.d.ts +17 -3
- package/dist/index.js +47 -44
- package/dist/index.mjs +44 -42
- package/dist/modules/job/pattern/pattern.d.ts +14 -0
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@ export declare enum BankAccountScope {
|
|
|
8
8
|
DOMESTIC = "domestic",
|
|
9
9
|
INTERNATIONAL = "international"
|
|
10
10
|
}
|
|
11
|
-
export declare class
|
|
11
|
+
export declare class BankDetails extends BaseEntity {
|
|
12
12
|
userId: number;
|
|
13
13
|
user: User;
|
|
14
14
|
name: string;
|
|
@@ -5,7 +5,7 @@ import { Otp } from "./otp.entity";
|
|
|
5
5
|
import { FreelancerProfile } from "./freelancer-profile.entity";
|
|
6
6
|
import { CompanyProfile } from "./company-profile.entity";
|
|
7
7
|
import { Job } from "./job-entity";
|
|
8
|
-
import {
|
|
8
|
+
import { BankDetails } from "./bank-details.entity";
|
|
9
9
|
export declare enum AccountType {
|
|
10
10
|
ADMIN = "ADMIN",
|
|
11
11
|
SUB_ADMIN = "SUB_ADMIN",
|
|
@@ -42,5 +42,5 @@ export declare class User extends BaseEntity {
|
|
|
42
42
|
freelancerProfile: FreelancerProfile;
|
|
43
43
|
companyProfile: CompanyProfile;
|
|
44
44
|
jobs: Job[];
|
|
45
|
-
bankDetails:
|
|
45
|
+
bankDetails: BankDetails[];
|
|
46
46
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -354,7 +354,7 @@ declare enum BankAccountScope {
|
|
|
354
354
|
DOMESTIC = "domestic",
|
|
355
355
|
INTERNATIONAL = "international"
|
|
356
356
|
}
|
|
357
|
-
declare class
|
|
357
|
+
declare class BankDetails extends BaseEntity {
|
|
358
358
|
userId: number;
|
|
359
359
|
user: User;
|
|
360
360
|
name: string;
|
|
@@ -408,7 +408,7 @@ declare class User extends BaseEntity {
|
|
|
408
408
|
freelancerProfile: FreelancerProfile;
|
|
409
409
|
companyProfile: CompanyProfile;
|
|
410
410
|
jobs: Job[];
|
|
411
|
-
bankDetails:
|
|
411
|
+
bankDetails: BankDetails[];
|
|
412
412
|
}
|
|
413
413
|
|
|
414
414
|
declare enum KindOfHire {
|
|
@@ -549,6 +549,20 @@ interface IFetchQuestionResponse {
|
|
|
549
549
|
declare const JOB_ROLE_PATTERN: {
|
|
550
550
|
fetchJobRolesForDropdown: string;
|
|
551
551
|
};
|
|
552
|
+
declare const JOB_PATTERN: {
|
|
553
|
+
fetchJobs: string;
|
|
554
|
+
fetchJobCountAsPerStatus: string;
|
|
555
|
+
fetchJobsDropdown: string;
|
|
556
|
+
fetchJobDetail: string;
|
|
557
|
+
fetchJobBasicInformation: string;
|
|
558
|
+
createJobBasicInformation: string;
|
|
559
|
+
updateJobBasicInformation: string;
|
|
560
|
+
fetchJobAdditionalComments: string;
|
|
561
|
+
updateJobAdditionalComments: string;
|
|
562
|
+
fetchJobDescription: string;
|
|
563
|
+
updateJobDescription: string;
|
|
564
|
+
updateJobStatus: string;
|
|
565
|
+
};
|
|
552
566
|
|
|
553
567
|
declare enum JobLocation {
|
|
554
568
|
ONSITE = "ONSITE",
|
|
@@ -659,4 +673,4 @@ declare class JobRoles extends BaseEntity {
|
|
|
659
673
|
isActive: boolean;
|
|
660
674
|
}
|
|
661
675
|
|
|
662
|
-
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BANK_PATTERN, BankAccountScope, BankAccountType, BaseEntity, CLIENT_PROFILE_PATTERN, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, EmploymentType, FreelancerBankDetailsDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobBasicInformationDto, JobDescriptionDto, JobIdParamDto, JobLocation, JobLocationEnum, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NatureOfWork, ONBOARDING_PATTERN, OTP_PATTERN, Otp, PROFILE_PATTERN, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, Skill, Step, TypeOfEmploymentEnum, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter
|
|
676
|
+
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BANK_PATTERN, BankAccountScope, BankAccountType, BankDetails, BaseEntity, CLIENT_PROFILE_PATTERN, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, EmploymentType, FreelancerBankDetailsDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JOB_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobBasicInformationDto, JobDescriptionDto, JobIdParamDto, JobLocation, JobLocationEnum, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NatureOfWork, ONBOARDING_PATTERN, OTP_PATTERN, Otp, PROFILE_PATTERN, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, Skill, Step, TypeOfEmploymentEnum, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
package/dist/index.d.ts
CHANGED
|
@@ -354,7 +354,7 @@ declare enum BankAccountScope {
|
|
|
354
354
|
DOMESTIC = "domestic",
|
|
355
355
|
INTERNATIONAL = "international"
|
|
356
356
|
}
|
|
357
|
-
declare class
|
|
357
|
+
declare class BankDetails extends BaseEntity {
|
|
358
358
|
userId: number;
|
|
359
359
|
user: User;
|
|
360
360
|
name: string;
|
|
@@ -408,7 +408,7 @@ declare class User extends BaseEntity {
|
|
|
408
408
|
freelancerProfile: FreelancerProfile;
|
|
409
409
|
companyProfile: CompanyProfile;
|
|
410
410
|
jobs: Job[];
|
|
411
|
-
bankDetails:
|
|
411
|
+
bankDetails: BankDetails[];
|
|
412
412
|
}
|
|
413
413
|
|
|
414
414
|
declare enum KindOfHire {
|
|
@@ -549,6 +549,20 @@ interface IFetchQuestionResponse {
|
|
|
549
549
|
declare const JOB_ROLE_PATTERN: {
|
|
550
550
|
fetchJobRolesForDropdown: string;
|
|
551
551
|
};
|
|
552
|
+
declare const JOB_PATTERN: {
|
|
553
|
+
fetchJobs: string;
|
|
554
|
+
fetchJobCountAsPerStatus: string;
|
|
555
|
+
fetchJobsDropdown: string;
|
|
556
|
+
fetchJobDetail: string;
|
|
557
|
+
fetchJobBasicInformation: string;
|
|
558
|
+
createJobBasicInformation: string;
|
|
559
|
+
updateJobBasicInformation: string;
|
|
560
|
+
fetchJobAdditionalComments: string;
|
|
561
|
+
updateJobAdditionalComments: string;
|
|
562
|
+
fetchJobDescription: string;
|
|
563
|
+
updateJobDescription: string;
|
|
564
|
+
updateJobStatus: string;
|
|
565
|
+
};
|
|
552
566
|
|
|
553
567
|
declare enum JobLocation {
|
|
554
568
|
ONSITE = "ONSITE",
|
|
@@ -659,4 +673,4 @@ declare class JobRoles extends BaseEntity {
|
|
|
659
673
|
isActive: boolean;
|
|
660
674
|
}
|
|
661
675
|
|
|
662
|
-
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BANK_PATTERN, BankAccountScope, BankAccountType, BaseEntity, CLIENT_PROFILE_PATTERN, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, EmploymentType, FreelancerBankDetailsDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobBasicInformationDto, JobDescriptionDto, JobIdParamDto, JobLocation, JobLocationEnum, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NatureOfWork, ONBOARDING_PATTERN, OTP_PATTERN, Otp, PROFILE_PATTERN, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, Skill, Step, TypeOfEmploymentEnum, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter
|
|
676
|
+
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BANK_PATTERN, BankAccountScope, BankAccountType, BankDetails, BaseEntity, CLIENT_PROFILE_PATTERN, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, EmploymentType, FreelancerBankDetailsDto, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JOB_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobBasicInformationDto, JobDescriptionDto, JobIdParamDto, JobLocation, JobLocationEnum, JobRMQAdapter, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NatureOfWork, ONBOARDING_PATTERN, OTP_PATTERN, Otp, PROFILE_PATTERN, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, Skill, Step, TypeOfEmploymentEnum, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
package/dist/index.js
CHANGED
|
@@ -33,6 +33,7 @@ __export(index_exports, {
|
|
|
33
33
|
BANK_PATTERN: () => BANK_PATTERN,
|
|
34
34
|
BankAccountScope: () => BankAccountScope,
|
|
35
35
|
BankAccountType: () => BankAccountType,
|
|
36
|
+
BankDetails: () => BankDetails,
|
|
36
37
|
BaseEntity: () => BaseEntity,
|
|
37
38
|
CLIENT_PROFILE_PATTERN: () => CLIENT_PROFILE_PATTERN,
|
|
38
39
|
ClientChangePasswordDto: () => ClientChangePasswordDto,
|
|
@@ -51,6 +52,7 @@ __export(index_exports, {
|
|
|
51
52
|
FreelancerUploadResumeDto: () => FreelancerUploadResumeDto,
|
|
52
53
|
FreelancerWorkShowcaseDto: () => FreelancerWorkShowcaseDto,
|
|
53
54
|
FromUsOn: () => FromUsOn,
|
|
55
|
+
JOB_PATTERN: () => JOB_PATTERN,
|
|
54
56
|
JOB_ROLE_PATTERN: () => JOB_ROLE_PATTERN,
|
|
55
57
|
Job: () => Job,
|
|
56
58
|
JobAdditionalCommentDto: () => JobAdditionalCommentDto,
|
|
@@ -92,8 +94,7 @@ __export(index_exports, {
|
|
|
92
94
|
UpdateSubAdminDto: () => UpdateSubAdminDto,
|
|
93
95
|
User: () => User,
|
|
94
96
|
UserRMQAdapter: () => UserRMQAdapter,
|
|
95
|
-
UserTCPAdapter: () => UserTCPAdapter
|
|
96
|
-
bankDetails: () => bankDetails
|
|
97
|
+
UserTCPAdapter: () => UserTCPAdapter
|
|
97
98
|
});
|
|
98
99
|
module.exports = __toCommonJS(index_exports);
|
|
99
100
|
|
|
@@ -198,17 +199,6 @@ var IfscOrOtherFieldsConstraint = class {
|
|
|
198
199
|
IfscOrOtherFieldsConstraint = __decorateClass([
|
|
199
200
|
(0, import_class_validator4.ValidatorConstraint)({ async: false })
|
|
200
201
|
], 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
|
-
}
|
|
212
202
|
|
|
213
203
|
// src/modules/onboarding/dto/freelancer-create-account.dto.ts
|
|
214
204
|
var FreelancerCreateAccountDto = class {
|
|
@@ -889,50 +879,50 @@ var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
|
889
879
|
BankAccountScope2["INTERNATIONAL"] = "international";
|
|
890
880
|
return BankAccountScope2;
|
|
891
881
|
})(BankAccountScope || {});
|
|
892
|
-
var
|
|
882
|
+
var BankDetails = class extends BaseEntity {
|
|
893
883
|
};
|
|
894
884
|
// individual index to find bank details by user
|
|
895
885
|
__decorateClass([
|
|
896
886
|
(0, import_typeorm9.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
897
887
|
(0, import_typeorm9.Index)()
|
|
898
|
-
],
|
|
888
|
+
], BankDetails.prototype, "userId", 2);
|
|
899
889
|
__decorateClass([
|
|
900
890
|
(0, import_typeorm9.ManyToOne)(() => User, (user) => user.bankDetails),
|
|
901
891
|
(0, import_typeorm9.JoinColumn)({ name: "user_id" })
|
|
902
|
-
],
|
|
892
|
+
], BankDetails.prototype, "user", 2);
|
|
903
893
|
__decorateClass([
|
|
904
894
|
(0, import_typeorm9.Column)({ name: "name", type: "varchar", nullable: true })
|
|
905
|
-
],
|
|
895
|
+
], BankDetails.prototype, "name", 2);
|
|
906
896
|
__decorateClass([
|
|
907
897
|
(0, import_typeorm9.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
908
|
-
],
|
|
898
|
+
], BankDetails.prototype, "mobile", 2);
|
|
909
899
|
__decorateClass([
|
|
910
900
|
(0, import_typeorm9.Column)({ name: "email", type: "varchar", unique: true })
|
|
911
|
-
],
|
|
901
|
+
], BankDetails.prototype, "email", 2);
|
|
912
902
|
__decorateClass([
|
|
913
903
|
(0, import_typeorm9.Column)({ name: "address", type: "varchar", nullable: true })
|
|
914
|
-
],
|
|
904
|
+
], BankDetails.prototype, "address", 2);
|
|
915
905
|
__decorateClass([
|
|
916
906
|
(0, import_typeorm9.Column)({ name: "account_number", type: "varchar", unique: true, nullable: true })
|
|
917
|
-
],
|
|
907
|
+
], BankDetails.prototype, "accountNumber", 2);
|
|
918
908
|
__decorateClass([
|
|
919
909
|
(0, import_typeorm9.Column)({ name: "bank_name", type: "varchar", nullable: true })
|
|
920
|
-
],
|
|
910
|
+
], BankDetails.prototype, "bankName", 2);
|
|
921
911
|
__decorateClass([
|
|
922
912
|
(0, import_typeorm9.Column)({ name: "ifsc_code", type: "varchar", nullable: true })
|
|
923
|
-
],
|
|
913
|
+
], BankDetails.prototype, "ifscCode", 2);
|
|
924
914
|
__decorateClass([
|
|
925
915
|
(0, import_typeorm9.Column)({ name: "branch_name", type: "varchar", nullable: true })
|
|
926
|
-
],
|
|
916
|
+
], BankDetails.prototype, "branchName", 2);
|
|
927
917
|
__decorateClass([
|
|
928
918
|
(0, import_typeorm9.Column)({ name: "routing_no", type: "varchar", nullable: true })
|
|
929
|
-
],
|
|
919
|
+
], BankDetails.prototype, "routingNo", 2);
|
|
930
920
|
__decorateClass([
|
|
931
921
|
(0, import_typeorm9.Column)({ name: "aba_no", type: "varchar", nullable: true })
|
|
932
|
-
],
|
|
922
|
+
], BankDetails.prototype, "abaNumber", 2);
|
|
933
923
|
__decorateClass([
|
|
934
924
|
(0, import_typeorm9.Column)({ name: "iban", type: "varchar", nullable: true })
|
|
935
|
-
],
|
|
925
|
+
], BankDetails.prototype, "iban", 2);
|
|
936
926
|
__decorateClass([
|
|
937
927
|
(0, import_typeorm9.Column)({
|
|
938
928
|
name: "account_type",
|
|
@@ -940,7 +930,7 @@ __decorateClass([
|
|
|
940
930
|
enum: BankAccountType,
|
|
941
931
|
default: "PRIMARY" /* PRIMARY */
|
|
942
932
|
})
|
|
943
|
-
],
|
|
933
|
+
], BankDetails.prototype, "accountType", 2);
|
|
944
934
|
__decorateClass([
|
|
945
935
|
(0, import_typeorm9.Column)({
|
|
946
936
|
name: "account_scope",
|
|
@@ -948,10 +938,10 @@ __decorateClass([
|
|
|
948
938
|
enum: BankAccountScope,
|
|
949
939
|
default: "domestic" /* DOMESTIC */
|
|
950
940
|
})
|
|
951
|
-
],
|
|
952
|
-
|
|
941
|
+
], BankDetails.prototype, "accountScope", 2);
|
|
942
|
+
BankDetails = __decorateClass([
|
|
953
943
|
(0, import_typeorm9.Entity)("bank_details")
|
|
954
|
-
],
|
|
944
|
+
], BankDetails);
|
|
955
945
|
|
|
956
946
|
// src/entities/user.entity.ts
|
|
957
947
|
var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
@@ -1057,7 +1047,7 @@ __decorateClass([
|
|
|
1057
1047
|
(0, import_typeorm10.OneToMany)(() => Job, (job) => job.user)
|
|
1058
1048
|
], User.prototype, "jobs", 2);
|
|
1059
1049
|
__decorateClass([
|
|
1060
|
-
(0, import_typeorm10.OneToMany)(() =>
|
|
1050
|
+
(0, import_typeorm10.OneToMany)(() => BankDetails, (bankDetails) => bankDetails.user)
|
|
1061
1051
|
], User.prototype, "bankDetails", 2);
|
|
1062
1052
|
User = __decorateClass([
|
|
1063
1053
|
(0, import_typeorm10.Entity)("users")
|
|
@@ -1254,6 +1244,20 @@ __decorateClass([
|
|
|
1254
1244
|
var JOB_ROLE_PATTERN = {
|
|
1255
1245
|
fetchJobRolesForDropdown: "fetch.job.roles.for.dropdown"
|
|
1256
1246
|
};
|
|
1247
|
+
var JOB_PATTERN = {
|
|
1248
|
+
fetchJobs: "fetch.jobs",
|
|
1249
|
+
fetchJobCountAsPerStatus: "fetch.job.count.as.per.status",
|
|
1250
|
+
fetchJobsDropdown: "fetch.jobs.dropdown",
|
|
1251
|
+
fetchJobDetail: "fetch.job.details",
|
|
1252
|
+
fetchJobBasicInformation: "fetch.job.basic.information",
|
|
1253
|
+
createJobBasicInformation: "create.job.basic.information",
|
|
1254
|
+
updateJobBasicInformation: "update.job.basic.information",
|
|
1255
|
+
fetchJobAdditionalComments: "fetch.job.additional.comments",
|
|
1256
|
+
updateJobAdditionalComments: "update.job.additional.comments",
|
|
1257
|
+
fetchJobDescription: "fetch.job.description",
|
|
1258
|
+
updateJobDescription: "update.job.description",
|
|
1259
|
+
updateJobStatus: "update.job.status"
|
|
1260
|
+
};
|
|
1257
1261
|
|
|
1258
1262
|
// src/modules/job/dto/job-basic-information.dto.ts
|
|
1259
1263
|
var import_class_validator18 = require("class-validator");
|
|
@@ -1429,22 +1433,20 @@ __decorateClass([
|
|
|
1429
1433
|
(0, import_class_validator24.IsNotEmpty)({ message: "Please enter Branch Name." })
|
|
1430
1434
|
], FreelancerBankDetailsDto.prototype, "branchName", 2);
|
|
1431
1435
|
__decorateClass([
|
|
1432
|
-
(0, import_class_validator24.
|
|
1433
|
-
|
|
1434
|
-
message: "IFSC Code is required ."
|
|
1435
|
-
})
|
|
1436
|
+
(0, import_class_validator24.ValidateIf)((dto) => dto.accountScope === "domestic"),
|
|
1437
|
+
(0, import_class_validator24.IsNotEmpty)({ message: "IFSC Code is required for domestic accounts." })
|
|
1436
1438
|
], FreelancerBankDetailsDto.prototype, "ifscCode", 2);
|
|
1437
1439
|
__decorateClass([
|
|
1438
|
-
(0, import_class_validator24.ValidateIf)((dto) =>
|
|
1439
|
-
(0, import_class_validator24.IsNotEmpty)({ message: "Routing Number/Sort Code is required " })
|
|
1440
|
+
(0, import_class_validator24.ValidateIf)((dto) => dto.accountScope === "international"),
|
|
1441
|
+
(0, import_class_validator24.IsNotEmpty)({ message: "Routing Number/Sort Code is required for international accounts." })
|
|
1440
1442
|
], FreelancerBankDetailsDto.prototype, "routingNo", 2);
|
|
1441
1443
|
__decorateClass([
|
|
1442
|
-
(0, import_class_validator24.ValidateIf)((dto) =>
|
|
1443
|
-
(0, import_class_validator24.IsNotEmpty)({ message: "ABA Number is required " })
|
|
1444
|
+
(0, import_class_validator24.ValidateIf)((dto) => dto.accountScope === "international"),
|
|
1445
|
+
(0, import_class_validator24.IsNotEmpty)({ message: "ABA Number is required for international accounts." })
|
|
1444
1446
|
], FreelancerBankDetailsDto.prototype, "abaNumber", 2);
|
|
1445
1447
|
__decorateClass([
|
|
1446
|
-
(0, import_class_validator24.ValidateIf)((dto) =>
|
|
1447
|
-
(0, import_class_validator24.IsNotEmpty)({ message: "IBAN is required " })
|
|
1448
|
+
(0, import_class_validator24.ValidateIf)((dto) => dto.accountScope === "international"),
|
|
1449
|
+
(0, import_class_validator24.IsNotEmpty)({ message: "IBAN is required for international accounts." })
|
|
1448
1450
|
], FreelancerBankDetailsDto.prototype, "iban", 2);
|
|
1449
1451
|
__decorateClass([
|
|
1450
1452
|
(0, import_class_validator24.IsOptional)()
|
|
@@ -1660,6 +1662,7 @@ JobRoles = __decorateClass([
|
|
|
1660
1662
|
BANK_PATTERN,
|
|
1661
1663
|
BankAccountScope,
|
|
1662
1664
|
BankAccountType,
|
|
1665
|
+
BankDetails,
|
|
1663
1666
|
BaseEntity,
|
|
1664
1667
|
CLIENT_PROFILE_PATTERN,
|
|
1665
1668
|
ClientChangePasswordDto,
|
|
@@ -1678,6 +1681,7 @@ JobRoles = __decorateClass([
|
|
|
1678
1681
|
FreelancerUploadResumeDto,
|
|
1679
1682
|
FreelancerWorkShowcaseDto,
|
|
1680
1683
|
FromUsOn,
|
|
1684
|
+
JOB_PATTERN,
|
|
1681
1685
|
JOB_ROLE_PATTERN,
|
|
1682
1686
|
Job,
|
|
1683
1687
|
JobAdditionalCommentDto,
|
|
@@ -1719,6 +1723,5 @@ JobRoles = __decorateClass([
|
|
|
1719
1723
|
UpdateSubAdminDto,
|
|
1720
1724
|
User,
|
|
1721
1725
|
UserRMQAdapter,
|
|
1722
|
-
UserTCPAdapter
|
|
1723
|
-
bankDetails
|
|
1726
|
+
UserTCPAdapter
|
|
1724
1727
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -126,17 +126,6 @@ var IfscOrOtherFieldsConstraint = class {
|
|
|
126
126
|
IfscOrOtherFieldsConstraint = __decorateClass([
|
|
127
127
|
ValidatorConstraint({ async: false })
|
|
128
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
|
-
}
|
|
140
129
|
|
|
141
130
|
// src/modules/onboarding/dto/freelancer-create-account.dto.ts
|
|
142
131
|
var FreelancerCreateAccountDto = class {
|
|
@@ -903,50 +892,50 @@ var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
|
903
892
|
BankAccountScope2["INTERNATIONAL"] = "international";
|
|
904
893
|
return BankAccountScope2;
|
|
905
894
|
})(BankAccountScope || {});
|
|
906
|
-
var
|
|
895
|
+
var BankDetails = class extends BaseEntity {
|
|
907
896
|
};
|
|
908
897
|
// individual index to find bank details by user
|
|
909
898
|
__decorateClass([
|
|
910
899
|
Column9({ name: "user_id", type: "integer", nullable: true }),
|
|
911
900
|
Index5()
|
|
912
|
-
],
|
|
901
|
+
], BankDetails.prototype, "userId", 2);
|
|
913
902
|
__decorateClass([
|
|
914
903
|
ManyToOne7(() => User, (user) => user.bankDetails),
|
|
915
904
|
JoinColumn7({ name: "user_id" })
|
|
916
|
-
],
|
|
905
|
+
], BankDetails.prototype, "user", 2);
|
|
917
906
|
__decorateClass([
|
|
918
907
|
Column9({ name: "name", type: "varchar", nullable: true })
|
|
919
|
-
],
|
|
908
|
+
], BankDetails.prototype, "name", 2);
|
|
920
909
|
__decorateClass([
|
|
921
910
|
Column9({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
922
|
-
],
|
|
911
|
+
], BankDetails.prototype, "mobile", 2);
|
|
923
912
|
__decorateClass([
|
|
924
913
|
Column9({ name: "email", type: "varchar", unique: true })
|
|
925
|
-
],
|
|
914
|
+
], BankDetails.prototype, "email", 2);
|
|
926
915
|
__decorateClass([
|
|
927
916
|
Column9({ name: "address", type: "varchar", nullable: true })
|
|
928
|
-
],
|
|
917
|
+
], BankDetails.prototype, "address", 2);
|
|
929
918
|
__decorateClass([
|
|
930
919
|
Column9({ name: "account_number", type: "varchar", unique: true, nullable: true })
|
|
931
|
-
],
|
|
920
|
+
], BankDetails.prototype, "accountNumber", 2);
|
|
932
921
|
__decorateClass([
|
|
933
922
|
Column9({ name: "bank_name", type: "varchar", nullable: true })
|
|
934
|
-
],
|
|
923
|
+
], BankDetails.prototype, "bankName", 2);
|
|
935
924
|
__decorateClass([
|
|
936
925
|
Column9({ name: "ifsc_code", type: "varchar", nullable: true })
|
|
937
|
-
],
|
|
926
|
+
], BankDetails.prototype, "ifscCode", 2);
|
|
938
927
|
__decorateClass([
|
|
939
928
|
Column9({ name: "branch_name", type: "varchar", nullable: true })
|
|
940
|
-
],
|
|
929
|
+
], BankDetails.prototype, "branchName", 2);
|
|
941
930
|
__decorateClass([
|
|
942
931
|
Column9({ name: "routing_no", type: "varchar", nullable: true })
|
|
943
|
-
],
|
|
932
|
+
], BankDetails.prototype, "routingNo", 2);
|
|
944
933
|
__decorateClass([
|
|
945
934
|
Column9({ name: "aba_no", type: "varchar", nullable: true })
|
|
946
|
-
],
|
|
935
|
+
], BankDetails.prototype, "abaNumber", 2);
|
|
947
936
|
__decorateClass([
|
|
948
937
|
Column9({ name: "iban", type: "varchar", nullable: true })
|
|
949
|
-
],
|
|
938
|
+
], BankDetails.prototype, "iban", 2);
|
|
950
939
|
__decorateClass([
|
|
951
940
|
Column9({
|
|
952
941
|
name: "account_type",
|
|
@@ -954,7 +943,7 @@ __decorateClass([
|
|
|
954
943
|
enum: BankAccountType,
|
|
955
944
|
default: "PRIMARY" /* PRIMARY */
|
|
956
945
|
})
|
|
957
|
-
],
|
|
946
|
+
], BankDetails.prototype, "accountType", 2);
|
|
958
947
|
__decorateClass([
|
|
959
948
|
Column9({
|
|
960
949
|
name: "account_scope",
|
|
@@ -962,10 +951,10 @@ __decorateClass([
|
|
|
962
951
|
enum: BankAccountScope,
|
|
963
952
|
default: "domestic" /* DOMESTIC */
|
|
964
953
|
})
|
|
965
|
-
],
|
|
966
|
-
|
|
954
|
+
], BankDetails.prototype, "accountScope", 2);
|
|
955
|
+
BankDetails = __decorateClass([
|
|
967
956
|
Entity8("bank_details")
|
|
968
|
-
],
|
|
957
|
+
], BankDetails);
|
|
969
958
|
|
|
970
959
|
// src/entities/user.entity.ts
|
|
971
960
|
var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
@@ -1071,7 +1060,7 @@ __decorateClass([
|
|
|
1071
1060
|
OneToMany5(() => Job, (job) => job.user)
|
|
1072
1061
|
], User.prototype, "jobs", 2);
|
|
1073
1062
|
__decorateClass([
|
|
1074
|
-
OneToMany5(() =>
|
|
1063
|
+
OneToMany5(() => BankDetails, (bankDetails) => bankDetails.user)
|
|
1075
1064
|
], User.prototype, "bankDetails", 2);
|
|
1076
1065
|
User = __decorateClass([
|
|
1077
1066
|
Entity9("users")
|
|
@@ -1278,6 +1267,20 @@ __decorateClass([
|
|
|
1278
1267
|
var JOB_ROLE_PATTERN = {
|
|
1279
1268
|
fetchJobRolesForDropdown: "fetch.job.roles.for.dropdown"
|
|
1280
1269
|
};
|
|
1270
|
+
var JOB_PATTERN = {
|
|
1271
|
+
fetchJobs: "fetch.jobs",
|
|
1272
|
+
fetchJobCountAsPerStatus: "fetch.job.count.as.per.status",
|
|
1273
|
+
fetchJobsDropdown: "fetch.jobs.dropdown",
|
|
1274
|
+
fetchJobDetail: "fetch.job.details",
|
|
1275
|
+
fetchJobBasicInformation: "fetch.job.basic.information",
|
|
1276
|
+
createJobBasicInformation: "create.job.basic.information",
|
|
1277
|
+
updateJobBasicInformation: "update.job.basic.information",
|
|
1278
|
+
fetchJobAdditionalComments: "fetch.job.additional.comments",
|
|
1279
|
+
updateJobAdditionalComments: "update.job.additional.comments",
|
|
1280
|
+
fetchJobDescription: "fetch.job.description",
|
|
1281
|
+
updateJobDescription: "update.job.description",
|
|
1282
|
+
updateJobStatus: "update.job.status"
|
|
1283
|
+
};
|
|
1281
1284
|
|
|
1282
1285
|
// src/modules/job/dto/job-basic-information.dto.ts
|
|
1283
1286
|
import {
|
|
@@ -1472,22 +1475,20 @@ __decorateClass([
|
|
|
1472
1475
|
IsNotEmpty19({ message: "Please enter Branch Name." })
|
|
1473
1476
|
], FreelancerBankDetailsDto.prototype, "branchName", 2);
|
|
1474
1477
|
__decorateClass([
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
message: "IFSC Code is required ."
|
|
1478
|
-
})
|
|
1478
|
+
ValidateIf((dto) => dto.accountScope === "domestic"),
|
|
1479
|
+
IsNotEmpty19({ message: "IFSC Code is required for domestic accounts." })
|
|
1479
1480
|
], FreelancerBankDetailsDto.prototype, "ifscCode", 2);
|
|
1480
1481
|
__decorateClass([
|
|
1481
|
-
ValidateIf((dto) =>
|
|
1482
|
-
IsNotEmpty19({ message: "Routing Number/Sort Code is required " })
|
|
1482
|
+
ValidateIf((dto) => dto.accountScope === "international"),
|
|
1483
|
+
IsNotEmpty19({ message: "Routing Number/Sort Code is required for international accounts." })
|
|
1483
1484
|
], FreelancerBankDetailsDto.prototype, "routingNo", 2);
|
|
1484
1485
|
__decorateClass([
|
|
1485
|
-
ValidateIf((dto) =>
|
|
1486
|
-
IsNotEmpty19({ message: "ABA Number is required " })
|
|
1486
|
+
ValidateIf((dto) => dto.accountScope === "international"),
|
|
1487
|
+
IsNotEmpty19({ message: "ABA Number is required for international accounts." })
|
|
1487
1488
|
], FreelancerBankDetailsDto.prototype, "abaNumber", 2);
|
|
1488
1489
|
__decorateClass([
|
|
1489
|
-
ValidateIf((dto) =>
|
|
1490
|
-
IsNotEmpty19({ message: "IBAN is required " })
|
|
1490
|
+
ValidateIf((dto) => dto.accountScope === "international"),
|
|
1491
|
+
IsNotEmpty19({ message: "IBAN is required for international accounts." })
|
|
1491
1492
|
], FreelancerBankDetailsDto.prototype, "iban", 2);
|
|
1492
1493
|
__decorateClass([
|
|
1493
1494
|
IsOptional8()
|
|
@@ -1702,6 +1703,7 @@ export {
|
|
|
1702
1703
|
BANK_PATTERN,
|
|
1703
1704
|
BankAccountScope,
|
|
1704
1705
|
BankAccountType,
|
|
1706
|
+
BankDetails,
|
|
1705
1707
|
BaseEntity,
|
|
1706
1708
|
CLIENT_PROFILE_PATTERN,
|
|
1707
1709
|
ClientChangePasswordDto,
|
|
@@ -1720,6 +1722,7 @@ export {
|
|
|
1720
1722
|
FreelancerUploadResumeDto,
|
|
1721
1723
|
FreelancerWorkShowcaseDto,
|
|
1722
1724
|
FromUsOn,
|
|
1725
|
+
JOB_PATTERN,
|
|
1723
1726
|
JOB_ROLE_PATTERN,
|
|
1724
1727
|
Job,
|
|
1725
1728
|
JobAdditionalCommentDto,
|
|
@@ -1761,6 +1764,5 @@ export {
|
|
|
1761
1764
|
UpdateSubAdminDto,
|
|
1762
1765
|
User,
|
|
1763
1766
|
UserRMQAdapter,
|
|
1764
|
-
UserTCPAdapter
|
|
1765
|
-
bankDetails
|
|
1767
|
+
UserTCPAdapter
|
|
1766
1768
|
};
|
|
@@ -1,3 +1,17 @@
|
|
|
1
1
|
export declare const JOB_ROLE_PATTERN: {
|
|
2
2
|
fetchJobRolesForDropdown: string;
|
|
3
3
|
};
|
|
4
|
+
export declare const JOB_PATTERN: {
|
|
5
|
+
fetchJobs: string;
|
|
6
|
+
fetchJobCountAsPerStatus: string;
|
|
7
|
+
fetchJobsDropdown: string;
|
|
8
|
+
fetchJobDetail: string;
|
|
9
|
+
fetchJobBasicInformation: string;
|
|
10
|
+
createJobBasicInformation: string;
|
|
11
|
+
updateJobBasicInformation: string;
|
|
12
|
+
fetchJobAdditionalComments: string;
|
|
13
|
+
updateJobAdditionalComments: string;
|
|
14
|
+
fetchJobDescription: string;
|
|
15
|
+
updateJobDescription: string;
|
|
16
|
+
updateJobStatus: string;
|
|
17
|
+
};
|