@experts_hub/shared 1.0.94 → 1.0.96
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 +11 -3
- package/dist/index.d.ts +11 -3
- package/dist/index.js +39 -24
- package/dist/index.mjs +47 -35
- package/dist/modules/authentication/dto/login.dto.d.ts +6 -0
- package/dist/modules/bank/pattern/pattern.d.ts +2 -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 BankDetail 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 { BankDetail } 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
|
-
|
|
45
|
+
bankDetail: BankDetail[];
|
|
46
46
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -10,9 +10,15 @@ declare const AUTHENTICATION_PATTERN: {
|
|
|
10
10
|
revokeSession: string;
|
|
11
11
|
};
|
|
12
12
|
|
|
13
|
+
declare enum ScopeEnum {
|
|
14
|
+
ADMIN = "ADMIN",
|
|
15
|
+
CLIENT = "CLIENT",
|
|
16
|
+
FREELANCER = "FREELANCER"
|
|
17
|
+
}
|
|
13
18
|
declare class LoginDto {
|
|
14
19
|
email: string;
|
|
15
20
|
password: string;
|
|
21
|
+
scope: ScopeEnum;
|
|
16
22
|
}
|
|
17
23
|
|
|
18
24
|
declare class RefreshDto {
|
|
@@ -361,7 +367,7 @@ declare enum BankAccountScope {
|
|
|
361
367
|
DOMESTIC = "domestic",
|
|
362
368
|
INTERNATIONAL = "international"
|
|
363
369
|
}
|
|
364
|
-
declare class
|
|
370
|
+
declare class BankDetail extends BaseEntity {
|
|
365
371
|
userId: number;
|
|
366
372
|
user: User;
|
|
367
373
|
name: string;
|
|
@@ -415,7 +421,7 @@ declare class User extends BaseEntity {
|
|
|
415
421
|
freelancerProfile: FreelancerProfile;
|
|
416
422
|
companyProfile: CompanyProfile;
|
|
417
423
|
jobs: Job[];
|
|
418
|
-
|
|
424
|
+
bankDetail: BankDetail[];
|
|
419
425
|
}
|
|
420
426
|
|
|
421
427
|
declare enum KindOfHire {
|
|
@@ -630,6 +636,8 @@ declare class FreelancerChangePasswordDto {
|
|
|
630
636
|
|
|
631
637
|
declare const BANK_PATTERN: {
|
|
632
638
|
addFreelancerBankDetails: string;
|
|
639
|
+
fetchFreelancerBankDetails: string;
|
|
640
|
+
updateFreelancerBankDetails: string;
|
|
633
641
|
};
|
|
634
642
|
|
|
635
643
|
declare class FreelancerBankDetailsDto {
|
|
@@ -680,4 +688,4 @@ declare class JobRoles extends BaseEntity {
|
|
|
680
688
|
isActive: boolean;
|
|
681
689
|
}
|
|
682
690
|
|
|
683
|
-
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BANK_PATTERN, BankAccountScope, BankAccountType,
|
|
691
|
+
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BANK_PATTERN, BankAccountScope, BankAccountType, BankDetail, 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, OnboardingStepEnum, Otp, PROFILE_PATTERN, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, ScopeEnum, Skill, Step, TypeOfEmploymentEnum, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
package/dist/index.d.ts
CHANGED
|
@@ -10,9 +10,15 @@ declare const AUTHENTICATION_PATTERN: {
|
|
|
10
10
|
revokeSession: string;
|
|
11
11
|
};
|
|
12
12
|
|
|
13
|
+
declare enum ScopeEnum {
|
|
14
|
+
ADMIN = "ADMIN",
|
|
15
|
+
CLIENT = "CLIENT",
|
|
16
|
+
FREELANCER = "FREELANCER"
|
|
17
|
+
}
|
|
13
18
|
declare class LoginDto {
|
|
14
19
|
email: string;
|
|
15
20
|
password: string;
|
|
21
|
+
scope: ScopeEnum;
|
|
16
22
|
}
|
|
17
23
|
|
|
18
24
|
declare class RefreshDto {
|
|
@@ -361,7 +367,7 @@ declare enum BankAccountScope {
|
|
|
361
367
|
DOMESTIC = "domestic",
|
|
362
368
|
INTERNATIONAL = "international"
|
|
363
369
|
}
|
|
364
|
-
declare class
|
|
370
|
+
declare class BankDetail extends BaseEntity {
|
|
365
371
|
userId: number;
|
|
366
372
|
user: User;
|
|
367
373
|
name: string;
|
|
@@ -415,7 +421,7 @@ declare class User extends BaseEntity {
|
|
|
415
421
|
freelancerProfile: FreelancerProfile;
|
|
416
422
|
companyProfile: CompanyProfile;
|
|
417
423
|
jobs: Job[];
|
|
418
|
-
|
|
424
|
+
bankDetail: BankDetail[];
|
|
419
425
|
}
|
|
420
426
|
|
|
421
427
|
declare enum KindOfHire {
|
|
@@ -630,6 +636,8 @@ declare class FreelancerChangePasswordDto {
|
|
|
630
636
|
|
|
631
637
|
declare const BANK_PATTERN: {
|
|
632
638
|
addFreelancerBankDetails: string;
|
|
639
|
+
fetchFreelancerBankDetails: string;
|
|
640
|
+
updateFreelancerBankDetails: string;
|
|
633
641
|
};
|
|
634
642
|
|
|
635
643
|
declare class FreelancerBankDetailsDto {
|
|
@@ -680,4 +688,4 @@ declare class JobRoles extends BaseEntity {
|
|
|
680
688
|
isActive: boolean;
|
|
681
689
|
}
|
|
682
690
|
|
|
683
|
-
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BANK_PATTERN, BankAccountScope, BankAccountType,
|
|
691
|
+
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BANK_PATTERN, BankAccountScope, BankAccountType, BankDetail, 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, OnboardingStepEnum, Otp, PROFILE_PATTERN, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, ScopeEnum, Skill, Step, TypeOfEmploymentEnum, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
package/dist/index.js
CHANGED
|
@@ -33,7 +33,7 @@ __export(index_exports, {
|
|
|
33
33
|
BANK_PATTERN: () => BANK_PATTERN,
|
|
34
34
|
BankAccountScope: () => BankAccountScope,
|
|
35
35
|
BankAccountType: () => BankAccountType,
|
|
36
|
-
|
|
36
|
+
BankDetail: () => BankDetail,
|
|
37
37
|
BaseEntity: () => BaseEntity,
|
|
38
38
|
CLIENT_PROFILE_PATTERN: () => CLIENT_PROFILE_PATTERN,
|
|
39
39
|
ClientChangePasswordDto: () => ClientChangePasswordDto,
|
|
@@ -87,6 +87,7 @@ __export(index_exports, {
|
|
|
87
87
|
RefreshToken: () => RefreshToken,
|
|
88
88
|
ResumeParserLog: () => ResumeParserLog,
|
|
89
89
|
SUBADMIN_PATTERN: () => SUBADMIN_PATTERN,
|
|
90
|
+
ScopeEnum: () => ScopeEnum,
|
|
90
91
|
Skill: () => Skill,
|
|
91
92
|
Step: () => Step,
|
|
92
93
|
TypeOfEmploymentEnum: () => TypeOfEmploymentEnum,
|
|
@@ -112,6 +113,12 @@ var AUTHENTICATION_PATTERN = {
|
|
|
112
113
|
|
|
113
114
|
// src/modules/authentication/dto/login.dto.ts
|
|
114
115
|
var import_class_validator = require("class-validator");
|
|
116
|
+
var ScopeEnum = /* @__PURE__ */ ((ScopeEnum2) => {
|
|
117
|
+
ScopeEnum2["ADMIN"] = "ADMIN";
|
|
118
|
+
ScopeEnum2["CLIENT"] = "CLIENT";
|
|
119
|
+
ScopeEnum2["FREELANCER"] = "FREELANCER";
|
|
120
|
+
return ScopeEnum2;
|
|
121
|
+
})(ScopeEnum || {});
|
|
115
122
|
var LoginDto = class {
|
|
116
123
|
};
|
|
117
124
|
__decorateClass([
|
|
@@ -120,6 +127,11 @@ __decorateClass([
|
|
|
120
127
|
__decorateClass([
|
|
121
128
|
(0, import_class_validator.IsNotEmpty)({ message: "Please enter password." })
|
|
122
129
|
], LoginDto.prototype, "password", 2);
|
|
130
|
+
__decorateClass([
|
|
131
|
+
(0, import_class_validator.IsEnum)(ScopeEnum, {
|
|
132
|
+
message: `Scope must be one of: ${Object.values(ScopeEnum).join(", ")}`
|
|
133
|
+
})
|
|
134
|
+
], LoginDto.prototype, "scope", 2);
|
|
123
135
|
|
|
124
136
|
// src/modules/authentication/dto/refresh.dto.ts
|
|
125
137
|
var import_class_validator2 = require("class-validator");
|
|
@@ -899,50 +911,50 @@ var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
|
899
911
|
BankAccountScope2["INTERNATIONAL"] = "international";
|
|
900
912
|
return BankAccountScope2;
|
|
901
913
|
})(BankAccountScope || {});
|
|
902
|
-
var
|
|
914
|
+
var BankDetail = class extends BaseEntity {
|
|
903
915
|
};
|
|
904
916
|
// individual index to find bank details by user
|
|
905
917
|
__decorateClass([
|
|
906
918
|
(0, import_typeorm9.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
907
919
|
(0, import_typeorm9.Index)()
|
|
908
|
-
],
|
|
920
|
+
], BankDetail.prototype, "userId", 2);
|
|
909
921
|
__decorateClass([
|
|
910
|
-
(0, import_typeorm9.ManyToOne)(() => User, (user) => user.
|
|
922
|
+
(0, import_typeorm9.ManyToOne)(() => User, (user) => user.bankDetail),
|
|
911
923
|
(0, import_typeorm9.JoinColumn)({ name: "user_id" })
|
|
912
|
-
],
|
|
924
|
+
], BankDetail.prototype, "user", 2);
|
|
913
925
|
__decorateClass([
|
|
914
926
|
(0, import_typeorm9.Column)({ name: "name", type: "varchar", nullable: true })
|
|
915
|
-
],
|
|
927
|
+
], BankDetail.prototype, "name", 2);
|
|
916
928
|
__decorateClass([
|
|
917
929
|
(0, import_typeorm9.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
918
|
-
],
|
|
930
|
+
], BankDetail.prototype, "mobile", 2);
|
|
919
931
|
__decorateClass([
|
|
920
932
|
(0, import_typeorm9.Column)({ name: "email", type: "varchar", unique: true })
|
|
921
|
-
],
|
|
933
|
+
], BankDetail.prototype, "email", 2);
|
|
922
934
|
__decorateClass([
|
|
923
935
|
(0, import_typeorm9.Column)({ name: "address", type: "varchar", nullable: true })
|
|
924
|
-
],
|
|
936
|
+
], BankDetail.prototype, "address", 2);
|
|
925
937
|
__decorateClass([
|
|
926
938
|
(0, import_typeorm9.Column)({ name: "account_number", type: "varchar", unique: true, nullable: true })
|
|
927
|
-
],
|
|
939
|
+
], BankDetail.prototype, "accountNumber", 2);
|
|
928
940
|
__decorateClass([
|
|
929
941
|
(0, import_typeorm9.Column)({ name: "bank_name", type: "varchar", nullable: true })
|
|
930
|
-
],
|
|
942
|
+
], BankDetail.prototype, "bankName", 2);
|
|
931
943
|
__decorateClass([
|
|
932
944
|
(0, import_typeorm9.Column)({ name: "ifsc_code", type: "varchar", nullable: true })
|
|
933
|
-
],
|
|
945
|
+
], BankDetail.prototype, "ifscCode", 2);
|
|
934
946
|
__decorateClass([
|
|
935
947
|
(0, import_typeorm9.Column)({ name: "branch_name", type: "varchar", nullable: true })
|
|
936
|
-
],
|
|
948
|
+
], BankDetail.prototype, "branchName", 2);
|
|
937
949
|
__decorateClass([
|
|
938
950
|
(0, import_typeorm9.Column)({ name: "routing_no", type: "varchar", nullable: true })
|
|
939
|
-
],
|
|
951
|
+
], BankDetail.prototype, "routingNo", 2);
|
|
940
952
|
__decorateClass([
|
|
941
953
|
(0, import_typeorm9.Column)({ name: "aba_no", type: "varchar", nullable: true })
|
|
942
|
-
],
|
|
954
|
+
], BankDetail.prototype, "abaNumber", 2);
|
|
943
955
|
__decorateClass([
|
|
944
956
|
(0, import_typeorm9.Column)({ name: "iban", type: "varchar", nullable: true })
|
|
945
|
-
],
|
|
957
|
+
], BankDetail.prototype, "iban", 2);
|
|
946
958
|
__decorateClass([
|
|
947
959
|
(0, import_typeorm9.Column)({
|
|
948
960
|
name: "account_type",
|
|
@@ -950,7 +962,7 @@ __decorateClass([
|
|
|
950
962
|
enum: BankAccountType,
|
|
951
963
|
default: "PRIMARY" /* PRIMARY */
|
|
952
964
|
})
|
|
953
|
-
],
|
|
965
|
+
], BankDetail.prototype, "accountType", 2);
|
|
954
966
|
__decorateClass([
|
|
955
967
|
(0, import_typeorm9.Column)({
|
|
956
968
|
name: "account_scope",
|
|
@@ -958,10 +970,10 @@ __decorateClass([
|
|
|
958
970
|
enum: BankAccountScope,
|
|
959
971
|
default: "domestic" /* DOMESTIC */
|
|
960
972
|
})
|
|
961
|
-
],
|
|
962
|
-
|
|
973
|
+
], BankDetail.prototype, "accountScope", 2);
|
|
974
|
+
BankDetail = __decorateClass([
|
|
963
975
|
(0, import_typeorm9.Entity)("bank_details")
|
|
964
|
-
],
|
|
976
|
+
], BankDetail);
|
|
965
977
|
|
|
966
978
|
// src/entities/user.entity.ts
|
|
967
979
|
var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
@@ -1067,8 +1079,8 @@ __decorateClass([
|
|
|
1067
1079
|
(0, import_typeorm10.OneToMany)(() => Job, (job) => job.user)
|
|
1068
1080
|
], User.prototype, "jobs", 2);
|
|
1069
1081
|
__decorateClass([
|
|
1070
|
-
(0, import_typeorm10.OneToMany)(() =>
|
|
1071
|
-
], User.prototype, "
|
|
1082
|
+
(0, import_typeorm10.OneToMany)(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
1083
|
+
], User.prototype, "bankDetail", 2);
|
|
1072
1084
|
User = __decorateClass([
|
|
1073
1085
|
(0, import_typeorm10.Entity)("users")
|
|
1074
1086
|
], User);
|
|
@@ -1424,7 +1436,9 @@ __decorateClass([
|
|
|
1424
1436
|
|
|
1425
1437
|
// src/modules/bank/pattern/pattern.ts
|
|
1426
1438
|
var BANK_PATTERN = {
|
|
1427
|
-
addFreelancerBankDetails: "add.freelancer.bankdetails"
|
|
1439
|
+
addFreelancerBankDetails: "add.freelancer.bankdetails",
|
|
1440
|
+
fetchFreelancerBankDetails: "fetch.freelancer.bank.details",
|
|
1441
|
+
updateFreelancerBankDetails: "update.freelancer.bank.details"
|
|
1428
1442
|
};
|
|
1429
1443
|
|
|
1430
1444
|
// src/modules/bank/dto/freelancer-bank-details.dto.ts
|
|
@@ -1682,7 +1696,7 @@ JobRoles = __decorateClass([
|
|
|
1682
1696
|
BANK_PATTERN,
|
|
1683
1697
|
BankAccountScope,
|
|
1684
1698
|
BankAccountType,
|
|
1685
|
-
|
|
1699
|
+
BankDetail,
|
|
1686
1700
|
BaseEntity,
|
|
1687
1701
|
CLIENT_PROFILE_PATTERN,
|
|
1688
1702
|
ClientChangePasswordDto,
|
|
@@ -1736,6 +1750,7 @@ JobRoles = __decorateClass([
|
|
|
1736
1750
|
RefreshToken,
|
|
1737
1751
|
ResumeParserLog,
|
|
1738
1752
|
SUBADMIN_PATTERN,
|
|
1753
|
+
ScopeEnum,
|
|
1739
1754
|
Skill,
|
|
1740
1755
|
Step,
|
|
1741
1756
|
TypeOfEmploymentEnum,
|
package/dist/index.mjs
CHANGED
|
@@ -21,9 +21,13 @@ var AUTHENTICATION_PATTERN = {
|
|
|
21
21
|
};
|
|
22
22
|
|
|
23
23
|
// src/modules/authentication/dto/login.dto.ts
|
|
24
|
-
import {
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
import { IsEnum, IsNotEmpty } from "class-validator";
|
|
25
|
+
var ScopeEnum = /* @__PURE__ */ ((ScopeEnum2) => {
|
|
26
|
+
ScopeEnum2["ADMIN"] = "ADMIN";
|
|
27
|
+
ScopeEnum2["CLIENT"] = "CLIENT";
|
|
28
|
+
ScopeEnum2["FREELANCER"] = "FREELANCER";
|
|
29
|
+
return ScopeEnum2;
|
|
30
|
+
})(ScopeEnum || {});
|
|
27
31
|
var LoginDto = class {
|
|
28
32
|
};
|
|
29
33
|
__decorateClass([
|
|
@@ -32,6 +36,11 @@ __decorateClass([
|
|
|
32
36
|
__decorateClass([
|
|
33
37
|
IsNotEmpty({ message: "Please enter password." })
|
|
34
38
|
], LoginDto.prototype, "password", 2);
|
|
39
|
+
__decorateClass([
|
|
40
|
+
IsEnum(ScopeEnum, {
|
|
41
|
+
message: `Scope must be one of: ${Object.values(ScopeEnum).join(", ")}`
|
|
42
|
+
})
|
|
43
|
+
], LoginDto.prototype, "scope", 2);
|
|
35
44
|
|
|
36
45
|
// src/modules/authentication/dto/refresh.dto.ts
|
|
37
46
|
import {
|
|
@@ -410,7 +419,7 @@ var CLIENT_PROFILE_PATTERN = {
|
|
|
410
419
|
|
|
411
420
|
// src/modules/user/client-profile/dto/update-client-profile.dto.ts
|
|
412
421
|
import {
|
|
413
|
-
IsEnum,
|
|
422
|
+
IsEnum as IsEnum2,
|
|
414
423
|
IsOptional as IsOptional4,
|
|
415
424
|
IsString as IsString8,
|
|
416
425
|
IsArray,
|
|
@@ -911,50 +920,50 @@ var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
|
911
920
|
BankAccountScope2["INTERNATIONAL"] = "international";
|
|
912
921
|
return BankAccountScope2;
|
|
913
922
|
})(BankAccountScope || {});
|
|
914
|
-
var
|
|
923
|
+
var BankDetail = class extends BaseEntity {
|
|
915
924
|
};
|
|
916
925
|
// individual index to find bank details by user
|
|
917
926
|
__decorateClass([
|
|
918
927
|
Column9({ name: "user_id", type: "integer", nullable: true }),
|
|
919
928
|
Index5()
|
|
920
|
-
],
|
|
929
|
+
], BankDetail.prototype, "userId", 2);
|
|
921
930
|
__decorateClass([
|
|
922
|
-
ManyToOne7(() => User, (user) => user.
|
|
931
|
+
ManyToOne7(() => User, (user) => user.bankDetail),
|
|
923
932
|
JoinColumn7({ name: "user_id" })
|
|
924
|
-
],
|
|
933
|
+
], BankDetail.prototype, "user", 2);
|
|
925
934
|
__decorateClass([
|
|
926
935
|
Column9({ name: "name", type: "varchar", nullable: true })
|
|
927
|
-
],
|
|
936
|
+
], BankDetail.prototype, "name", 2);
|
|
928
937
|
__decorateClass([
|
|
929
938
|
Column9({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
930
|
-
],
|
|
939
|
+
], BankDetail.prototype, "mobile", 2);
|
|
931
940
|
__decorateClass([
|
|
932
941
|
Column9({ name: "email", type: "varchar", unique: true })
|
|
933
|
-
],
|
|
942
|
+
], BankDetail.prototype, "email", 2);
|
|
934
943
|
__decorateClass([
|
|
935
944
|
Column9({ name: "address", type: "varchar", nullable: true })
|
|
936
|
-
],
|
|
945
|
+
], BankDetail.prototype, "address", 2);
|
|
937
946
|
__decorateClass([
|
|
938
947
|
Column9({ name: "account_number", type: "varchar", unique: true, nullable: true })
|
|
939
|
-
],
|
|
948
|
+
], BankDetail.prototype, "accountNumber", 2);
|
|
940
949
|
__decorateClass([
|
|
941
950
|
Column9({ name: "bank_name", type: "varchar", nullable: true })
|
|
942
|
-
],
|
|
951
|
+
], BankDetail.prototype, "bankName", 2);
|
|
943
952
|
__decorateClass([
|
|
944
953
|
Column9({ name: "ifsc_code", type: "varchar", nullable: true })
|
|
945
|
-
],
|
|
954
|
+
], BankDetail.prototype, "ifscCode", 2);
|
|
946
955
|
__decorateClass([
|
|
947
956
|
Column9({ name: "branch_name", type: "varchar", nullable: true })
|
|
948
|
-
],
|
|
957
|
+
], BankDetail.prototype, "branchName", 2);
|
|
949
958
|
__decorateClass([
|
|
950
959
|
Column9({ name: "routing_no", type: "varchar", nullable: true })
|
|
951
|
-
],
|
|
960
|
+
], BankDetail.prototype, "routingNo", 2);
|
|
952
961
|
__decorateClass([
|
|
953
962
|
Column9({ name: "aba_no", type: "varchar", nullable: true })
|
|
954
|
-
],
|
|
963
|
+
], BankDetail.prototype, "abaNumber", 2);
|
|
955
964
|
__decorateClass([
|
|
956
965
|
Column9({ name: "iban", type: "varchar", nullable: true })
|
|
957
|
-
],
|
|
966
|
+
], BankDetail.prototype, "iban", 2);
|
|
958
967
|
__decorateClass([
|
|
959
968
|
Column9({
|
|
960
969
|
name: "account_type",
|
|
@@ -962,7 +971,7 @@ __decorateClass([
|
|
|
962
971
|
enum: BankAccountType,
|
|
963
972
|
default: "PRIMARY" /* PRIMARY */
|
|
964
973
|
})
|
|
965
|
-
],
|
|
974
|
+
], BankDetail.prototype, "accountType", 2);
|
|
966
975
|
__decorateClass([
|
|
967
976
|
Column9({
|
|
968
977
|
name: "account_scope",
|
|
@@ -970,10 +979,10 @@ __decorateClass([
|
|
|
970
979
|
enum: BankAccountScope,
|
|
971
980
|
default: "domestic" /* DOMESTIC */
|
|
972
981
|
})
|
|
973
|
-
],
|
|
974
|
-
|
|
982
|
+
], BankDetail.prototype, "accountScope", 2);
|
|
983
|
+
BankDetail = __decorateClass([
|
|
975
984
|
Entity8("bank_details")
|
|
976
|
-
],
|
|
985
|
+
], BankDetail);
|
|
977
986
|
|
|
978
987
|
// src/entities/user.entity.ts
|
|
979
988
|
var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
@@ -1079,8 +1088,8 @@ __decorateClass([
|
|
|
1079
1088
|
OneToMany5(() => Job, (job) => job.user)
|
|
1080
1089
|
], User.prototype, "jobs", 2);
|
|
1081
1090
|
__decorateClass([
|
|
1082
|
-
OneToMany5(() =>
|
|
1083
|
-
], User.prototype, "
|
|
1091
|
+
OneToMany5(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
1092
|
+
], User.prototype, "bankDetail", 2);
|
|
1084
1093
|
User = __decorateClass([
|
|
1085
1094
|
Entity9("users")
|
|
1086
1095
|
], User);
|
|
@@ -1211,19 +1220,19 @@ __decorateClass([
|
|
|
1211
1220
|
], UpdateCompanyProfileDto.prototype, "requiredFreelancer", 2);
|
|
1212
1221
|
__decorateClass([
|
|
1213
1222
|
IsOptional4(),
|
|
1214
|
-
|
|
1223
|
+
IsEnum2(KindOfHire, {
|
|
1215
1224
|
message: `Kind of hiring must be one of: ${Object.values(KindOfHire).join(", ")}`
|
|
1216
1225
|
})
|
|
1217
1226
|
], UpdateCompanyProfileDto.prototype, "kindOfHiring", 2);
|
|
1218
1227
|
__decorateClass([
|
|
1219
1228
|
IsOptional4(),
|
|
1220
|
-
|
|
1229
|
+
IsEnum2(ModeOfHire, {
|
|
1221
1230
|
message: `Mode of hire must be one of: ${Object.values(ModeOfHire).join(", ")}`
|
|
1222
1231
|
})
|
|
1223
1232
|
], UpdateCompanyProfileDto.prototype, "modeOfHire", 2);
|
|
1224
1233
|
__decorateClass([
|
|
1225
1234
|
IsOptional4(),
|
|
1226
|
-
|
|
1235
|
+
IsEnum2(FromUsOn, {
|
|
1227
1236
|
message: `Found us on must be one of: ${Object.values(FromUsOn).join(", ")}`
|
|
1228
1237
|
})
|
|
1229
1238
|
], UpdateCompanyProfileDto.prototype, "foundUsOn", 2);
|
|
@@ -1309,7 +1318,7 @@ import {
|
|
|
1309
1318
|
ArrayNotEmpty,
|
|
1310
1319
|
IsNumber as IsNumber2,
|
|
1311
1320
|
IsOptional as IsOptional6,
|
|
1312
|
-
IsEnum as
|
|
1321
|
+
IsEnum as IsEnum3,
|
|
1313
1322
|
Min
|
|
1314
1323
|
} from "class-validator";
|
|
1315
1324
|
import { Type } from "class-transformer";
|
|
@@ -1347,14 +1356,14 @@ __decorateClass([
|
|
|
1347
1356
|
Type(() => Number)
|
|
1348
1357
|
], JobBasicInformationDto.prototype, "openings", 2);
|
|
1349
1358
|
__decorateClass([
|
|
1350
|
-
|
|
1359
|
+
IsEnum3(JobLocation, {
|
|
1351
1360
|
message: `Location must be one of: ${Object.values(JobLocation).join(
|
|
1352
1361
|
", "
|
|
1353
1362
|
)}`
|
|
1354
1363
|
})
|
|
1355
1364
|
], JobBasicInformationDto.prototype, "location", 2);
|
|
1356
1365
|
__decorateClass([
|
|
1357
|
-
|
|
1366
|
+
IsEnum3(EmploymentType, {
|
|
1358
1367
|
message: `Type of employment must be one of: ${Object.values(
|
|
1359
1368
|
EmploymentType
|
|
1360
1369
|
).join(", ")}`
|
|
@@ -1400,7 +1409,7 @@ __decorateClass([
|
|
|
1400
1409
|
], JobDescriptionDto.prototype, "description", 2);
|
|
1401
1410
|
|
|
1402
1411
|
// src/modules/job/dto/job-status.dto.ts
|
|
1403
|
-
import { IsEnum as
|
|
1412
|
+
import { IsEnum as IsEnum4, IsNotEmpty as IsNotEmpty17 } from "class-validator";
|
|
1404
1413
|
var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
|
|
1405
1414
|
JobStatus2["ACTIVE"] = "ACTIVE";
|
|
1406
1415
|
JobStatus2["OPEN"] = "OPEN";
|
|
@@ -1413,7 +1422,7 @@ var JobStatusDto = class {
|
|
|
1413
1422
|
};
|
|
1414
1423
|
__decorateClass([
|
|
1415
1424
|
IsNotEmpty17({ message: "Please provide a job status" }),
|
|
1416
|
-
|
|
1425
|
+
IsEnum4(JobStatus, {
|
|
1417
1426
|
message: `Status must be one of: ${Object.values(JobStatus).join(", ")}`
|
|
1418
1427
|
})
|
|
1419
1428
|
], JobStatusDto.prototype, "status", 2);
|
|
@@ -1461,7 +1470,9 @@ __decorateClass([
|
|
|
1461
1470
|
|
|
1462
1471
|
// src/modules/bank/pattern/pattern.ts
|
|
1463
1472
|
var BANK_PATTERN = {
|
|
1464
|
-
addFreelancerBankDetails: "add.freelancer.bankdetails"
|
|
1473
|
+
addFreelancerBankDetails: "add.freelancer.bankdetails",
|
|
1474
|
+
fetchFreelancerBankDetails: "fetch.freelancer.bank.details",
|
|
1475
|
+
updateFreelancerBankDetails: "update.freelancer.bank.details"
|
|
1465
1476
|
};
|
|
1466
1477
|
|
|
1467
1478
|
// src/modules/bank/dto/freelancer-bank-details.dto.ts
|
|
@@ -1722,7 +1733,7 @@ export {
|
|
|
1722
1733
|
BANK_PATTERN,
|
|
1723
1734
|
BankAccountScope,
|
|
1724
1735
|
BankAccountType,
|
|
1725
|
-
|
|
1736
|
+
BankDetail,
|
|
1726
1737
|
BaseEntity,
|
|
1727
1738
|
CLIENT_PROFILE_PATTERN,
|
|
1728
1739
|
ClientChangePasswordDto,
|
|
@@ -1776,6 +1787,7 @@ export {
|
|
|
1776
1787
|
RefreshToken,
|
|
1777
1788
|
ResumeParserLog,
|
|
1778
1789
|
SUBADMIN_PATTERN,
|
|
1790
|
+
ScopeEnum,
|
|
1779
1791
|
Skill,
|
|
1780
1792
|
Step,
|
|
1781
1793
|
TypeOfEmploymentEnum,
|