@experts_hub/shared 1.0.97 → 1.0.100
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 +6 -6
- package/dist/entities/user.entity.d.ts +2 -2
- package/dist/index.d.mts +14 -10
- package/dist/index.d.ts +14 -10
- package/dist/index.js +35 -24
- package/dist/index.mjs +34 -23
- package/dist/modules/bank/dto/freelancer-bank-details.dto.d.ts +5 -1
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { BaseEntity } from "./base.entity";
|
|
2
2
|
import { User } from "./user.entity";
|
|
3
|
-
export declare enum
|
|
3
|
+
export declare enum BankAccountTypeEnum {
|
|
4
4
|
PRIMARY = "PRIMARY",
|
|
5
5
|
SECONDARY = "SECONDARY"
|
|
6
6
|
}
|
|
7
|
-
export declare enum
|
|
8
|
-
DOMESTIC = "
|
|
9
|
-
INTERNATIONAL = "
|
|
7
|
+
export declare enum BankAccountScopeEnum {
|
|
8
|
+
DOMESTIC = "DOMESTIC",
|
|
9
|
+
INTERNATIONAL = "INTERNATIONAL"
|
|
10
10
|
}
|
|
11
11
|
export declare class BankDetail extends BaseEntity {
|
|
12
12
|
userId: number;
|
|
@@ -22,6 +22,6 @@ export declare class BankDetail extends BaseEntity {
|
|
|
22
22
|
routingNo: string;
|
|
23
23
|
abaNumber: string;
|
|
24
24
|
iban: string;
|
|
25
|
-
accountType:
|
|
26
|
-
accountScope:
|
|
25
|
+
accountType: BankAccountTypeEnum;
|
|
26
|
+
accountScope: BankAccountScopeEnum;
|
|
27
27
|
}
|
|
@@ -36,8 +36,8 @@ export declare class User extends BaseEntity {
|
|
|
36
36
|
isMobileVerified: boolean;
|
|
37
37
|
lastLoginAt: Date;
|
|
38
38
|
lastLoginIp: string;
|
|
39
|
-
resetToken: string;
|
|
40
|
-
resetTokenExpireAt: Date;
|
|
39
|
+
resetToken: string | null;
|
|
40
|
+
resetTokenExpireAt: Date | null;
|
|
41
41
|
refreshTokens: RefreshToken[];
|
|
42
42
|
otps: Otp[];
|
|
43
43
|
resumeParserLogs: ResumeParserLog[];
|
package/dist/index.d.mts
CHANGED
|
@@ -359,13 +359,13 @@ declare class Job extends BaseEntity {
|
|
|
359
359
|
jobSkills: JobSkill[];
|
|
360
360
|
}
|
|
361
361
|
|
|
362
|
-
declare enum
|
|
362
|
+
declare enum BankAccountTypeEnum {
|
|
363
363
|
PRIMARY = "PRIMARY",
|
|
364
364
|
SECONDARY = "SECONDARY"
|
|
365
365
|
}
|
|
366
|
-
declare enum
|
|
367
|
-
DOMESTIC = "
|
|
368
|
-
INTERNATIONAL = "
|
|
366
|
+
declare enum BankAccountScopeEnum {
|
|
367
|
+
DOMESTIC = "DOMESTIC",
|
|
368
|
+
INTERNATIONAL = "INTERNATIONAL"
|
|
369
369
|
}
|
|
370
370
|
declare class BankDetail extends BaseEntity {
|
|
371
371
|
userId: number;
|
|
@@ -381,8 +381,8 @@ declare class BankDetail extends BaseEntity {
|
|
|
381
381
|
routingNo: string;
|
|
382
382
|
abaNumber: string;
|
|
383
383
|
iban: string;
|
|
384
|
-
accountType:
|
|
385
|
-
accountScope:
|
|
384
|
+
accountType: BankAccountTypeEnum;
|
|
385
|
+
accountScope: BankAccountScopeEnum;
|
|
386
386
|
}
|
|
387
387
|
|
|
388
388
|
declare enum AccountType {
|
|
@@ -415,8 +415,8 @@ declare class User extends BaseEntity {
|
|
|
415
415
|
isMobileVerified: boolean;
|
|
416
416
|
lastLoginAt: Date;
|
|
417
417
|
lastLoginIp: string;
|
|
418
|
-
resetToken: string;
|
|
419
|
-
resetTokenExpireAt: Date;
|
|
418
|
+
resetToken: string | null;
|
|
419
|
+
resetTokenExpireAt: Date | null;
|
|
420
420
|
refreshTokens: RefreshToken[];
|
|
421
421
|
otps: Otp[];
|
|
422
422
|
resumeParserLogs: ResumeParserLog[];
|
|
@@ -642,6 +642,10 @@ declare const BANK_PATTERN: {
|
|
|
642
642
|
updateFreelancerBankDetails: string;
|
|
643
643
|
};
|
|
644
644
|
|
|
645
|
+
declare enum BankAccountScope {
|
|
646
|
+
DOMESTIC = "DOMESTIC",
|
|
647
|
+
INTERNATIONAL = "INTERNATIONAL"
|
|
648
|
+
}
|
|
645
649
|
declare class FreelancerBankDetailsDto {
|
|
646
650
|
name: string;
|
|
647
651
|
mobile: string;
|
|
@@ -655,7 +659,7 @@ declare class FreelancerBankDetailsDto {
|
|
|
655
659
|
abaNumber: string;
|
|
656
660
|
iban: string;
|
|
657
661
|
accountType: string;
|
|
658
|
-
accountScope:
|
|
662
|
+
accountScope: BankAccountScope;
|
|
659
663
|
}
|
|
660
664
|
|
|
661
665
|
declare const UserTCPAdapter: () => MicroserviceOptions;
|
|
@@ -690,4 +694,4 @@ declare class JobRoles extends BaseEntity {
|
|
|
690
694
|
isActive: boolean;
|
|
691
695
|
}
|
|
692
696
|
|
|
693
|
-
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BANK_PATTERN, BankAccountScope,
|
|
697
|
+
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, 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
|
@@ -359,13 +359,13 @@ declare class Job extends BaseEntity {
|
|
|
359
359
|
jobSkills: JobSkill[];
|
|
360
360
|
}
|
|
361
361
|
|
|
362
|
-
declare enum
|
|
362
|
+
declare enum BankAccountTypeEnum {
|
|
363
363
|
PRIMARY = "PRIMARY",
|
|
364
364
|
SECONDARY = "SECONDARY"
|
|
365
365
|
}
|
|
366
|
-
declare enum
|
|
367
|
-
DOMESTIC = "
|
|
368
|
-
INTERNATIONAL = "
|
|
366
|
+
declare enum BankAccountScopeEnum {
|
|
367
|
+
DOMESTIC = "DOMESTIC",
|
|
368
|
+
INTERNATIONAL = "INTERNATIONAL"
|
|
369
369
|
}
|
|
370
370
|
declare class BankDetail extends BaseEntity {
|
|
371
371
|
userId: number;
|
|
@@ -381,8 +381,8 @@ declare class BankDetail extends BaseEntity {
|
|
|
381
381
|
routingNo: string;
|
|
382
382
|
abaNumber: string;
|
|
383
383
|
iban: string;
|
|
384
|
-
accountType:
|
|
385
|
-
accountScope:
|
|
384
|
+
accountType: BankAccountTypeEnum;
|
|
385
|
+
accountScope: BankAccountScopeEnum;
|
|
386
386
|
}
|
|
387
387
|
|
|
388
388
|
declare enum AccountType {
|
|
@@ -415,8 +415,8 @@ declare class User extends BaseEntity {
|
|
|
415
415
|
isMobileVerified: boolean;
|
|
416
416
|
lastLoginAt: Date;
|
|
417
417
|
lastLoginIp: string;
|
|
418
|
-
resetToken: string;
|
|
419
|
-
resetTokenExpireAt: Date;
|
|
418
|
+
resetToken: string | null;
|
|
419
|
+
resetTokenExpireAt: Date | null;
|
|
420
420
|
refreshTokens: RefreshToken[];
|
|
421
421
|
otps: Otp[];
|
|
422
422
|
resumeParserLogs: ResumeParserLog[];
|
|
@@ -642,6 +642,10 @@ declare const BANK_PATTERN: {
|
|
|
642
642
|
updateFreelancerBankDetails: string;
|
|
643
643
|
};
|
|
644
644
|
|
|
645
|
+
declare enum BankAccountScope {
|
|
646
|
+
DOMESTIC = "DOMESTIC",
|
|
647
|
+
INTERNATIONAL = "INTERNATIONAL"
|
|
648
|
+
}
|
|
645
649
|
declare class FreelancerBankDetailsDto {
|
|
646
650
|
name: string;
|
|
647
651
|
mobile: string;
|
|
@@ -655,7 +659,7 @@ declare class FreelancerBankDetailsDto {
|
|
|
655
659
|
abaNumber: string;
|
|
656
660
|
iban: string;
|
|
657
661
|
accountType: string;
|
|
658
|
-
accountScope:
|
|
662
|
+
accountScope: BankAccountScope;
|
|
659
663
|
}
|
|
660
664
|
|
|
661
665
|
declare const UserTCPAdapter: () => MicroserviceOptions;
|
|
@@ -690,4 +694,4 @@ declare class JobRoles extends BaseEntity {
|
|
|
690
694
|
isActive: boolean;
|
|
691
695
|
}
|
|
692
696
|
|
|
693
|
-
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BANK_PATTERN, BankAccountScope,
|
|
697
|
+
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, 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
|
@@ -32,7 +32,8 @@ __export(index_exports, {
|
|
|
32
32
|
AccountType: () => AccountType,
|
|
33
33
|
BANK_PATTERN: () => BANK_PATTERN,
|
|
34
34
|
BankAccountScope: () => BankAccountScope,
|
|
35
|
-
|
|
35
|
+
BankAccountScopeEnum: () => BankAccountScopeEnum,
|
|
36
|
+
BankAccountTypeEnum: () => BankAccountTypeEnum,
|
|
36
37
|
BankDetail: () => BankDetail,
|
|
37
38
|
BaseEntity: () => BaseEntity,
|
|
38
39
|
CLIENT_PROFILE_PATTERN: () => CLIENT_PROFILE_PATTERN,
|
|
@@ -901,16 +902,16 @@ Job = __decorateClass([
|
|
|
901
902
|
|
|
902
903
|
// src/entities/bank-details.entity.ts
|
|
903
904
|
var import_typeorm9 = require("typeorm");
|
|
904
|
-
var
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
return
|
|
908
|
-
})(
|
|
909
|
-
var
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
return
|
|
913
|
-
})(
|
|
905
|
+
var BankAccountTypeEnum = /* @__PURE__ */ ((BankAccountTypeEnum2) => {
|
|
906
|
+
BankAccountTypeEnum2["PRIMARY"] = "PRIMARY";
|
|
907
|
+
BankAccountTypeEnum2["SECONDARY"] = "SECONDARY";
|
|
908
|
+
return BankAccountTypeEnum2;
|
|
909
|
+
})(BankAccountTypeEnum || {});
|
|
910
|
+
var BankAccountScopeEnum = /* @__PURE__ */ ((BankAccountScopeEnum2) => {
|
|
911
|
+
BankAccountScopeEnum2["DOMESTIC"] = "DOMESTIC";
|
|
912
|
+
BankAccountScopeEnum2["INTERNATIONAL"] = "INTERNATIONAL";
|
|
913
|
+
return BankAccountScopeEnum2;
|
|
914
|
+
})(BankAccountScopeEnum || {});
|
|
914
915
|
var BankDetail = class extends BaseEntity {
|
|
915
916
|
};
|
|
916
917
|
// individual index to find bank details by user
|
|
@@ -959,7 +960,7 @@ __decorateClass([
|
|
|
959
960
|
(0, import_typeorm9.Column)({
|
|
960
961
|
name: "account_type",
|
|
961
962
|
type: "enum",
|
|
962
|
-
enum:
|
|
963
|
+
enum: BankAccountTypeEnum,
|
|
963
964
|
default: "PRIMARY" /* PRIMARY */
|
|
964
965
|
})
|
|
965
966
|
], BankDetail.prototype, "accountType", 2);
|
|
@@ -967,8 +968,8 @@ __decorateClass([
|
|
|
967
968
|
(0, import_typeorm9.Column)({
|
|
968
969
|
name: "account_scope",
|
|
969
970
|
type: "enum",
|
|
970
|
-
enum:
|
|
971
|
-
default: "
|
|
971
|
+
enum: BankAccountScopeEnum,
|
|
972
|
+
default: "DOMESTIC" /* DOMESTIC */
|
|
972
973
|
})
|
|
973
974
|
], BankDetail.prototype, "accountScope", 2);
|
|
974
975
|
BankDetail = __decorateClass([
|
|
@@ -1449,6 +1450,11 @@ var BANK_PATTERN = {
|
|
|
1449
1450
|
|
|
1450
1451
|
// src/modules/bank/dto/freelancer-bank-details.dto.ts
|
|
1451
1452
|
var import_class_validator24 = require("class-validator");
|
|
1453
|
+
var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
1454
|
+
BankAccountScope2["DOMESTIC"] = "DOMESTIC";
|
|
1455
|
+
BankAccountScope2["INTERNATIONAL"] = "INTERNATIONAL";
|
|
1456
|
+
return BankAccountScope2;
|
|
1457
|
+
})(BankAccountScope || {});
|
|
1452
1458
|
var FreelancerBankDetailsDto = class {
|
|
1453
1459
|
};
|
|
1454
1460
|
__decorateClass([
|
|
@@ -1473,26 +1479,30 @@ __decorateClass([
|
|
|
1473
1479
|
(0, import_class_validator24.IsNotEmpty)({ message: "Please enter Branch Name." })
|
|
1474
1480
|
], FreelancerBankDetailsDto.prototype, "branchName", 2);
|
|
1475
1481
|
__decorateClass([
|
|
1476
|
-
(0, import_class_validator24.ValidateIf)((dto) => dto.accountScope === "
|
|
1477
|
-
(0, import_class_validator24.IsNotEmpty)({ message: "IFSC Code is required for
|
|
1482
|
+
(0, import_class_validator24.ValidateIf)((dto) => dto.accountScope === "DOMESTIC"),
|
|
1483
|
+
(0, import_class_validator24.IsNotEmpty)({ message: "IFSC Code is required for DOMESTIC accounts." })
|
|
1478
1484
|
], FreelancerBankDetailsDto.prototype, "ifscCode", 2);
|
|
1479
1485
|
__decorateClass([
|
|
1480
|
-
(0, import_class_validator24.ValidateIf)((dto) => dto.accountScope === "
|
|
1481
|
-
(0, import_class_validator24.IsNotEmpty)({ message: "Routing Number/Sort Code is required for
|
|
1486
|
+
(0, import_class_validator24.ValidateIf)((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1487
|
+
(0, import_class_validator24.IsNotEmpty)({ message: "Routing Number/Sort Code is required for INTERNATIONAL accounts." })
|
|
1482
1488
|
], FreelancerBankDetailsDto.prototype, "routingNo", 2);
|
|
1483
1489
|
__decorateClass([
|
|
1484
|
-
(0, import_class_validator24.ValidateIf)((dto) => dto.accountScope === "
|
|
1485
|
-
(0, import_class_validator24.IsNotEmpty)({ message: "ABA Number is required for
|
|
1490
|
+
(0, import_class_validator24.ValidateIf)((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1491
|
+
(0, import_class_validator24.IsNotEmpty)({ message: "ABA Number is required for INTERNATIONAL accounts." })
|
|
1486
1492
|
], FreelancerBankDetailsDto.prototype, "abaNumber", 2);
|
|
1487
1493
|
__decorateClass([
|
|
1488
|
-
(0, import_class_validator24.ValidateIf)((dto) => dto.accountScope === "
|
|
1489
|
-
(0, import_class_validator24.IsNotEmpty)({ message: "IBAN is required for
|
|
1494
|
+
(0, import_class_validator24.ValidateIf)((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1495
|
+
(0, import_class_validator24.IsNotEmpty)({ message: "IBAN is required for INTERNATIONAL accounts." })
|
|
1490
1496
|
], FreelancerBankDetailsDto.prototype, "iban", 2);
|
|
1491
1497
|
__decorateClass([
|
|
1492
1498
|
(0, import_class_validator24.IsOptional)()
|
|
1493
1499
|
], FreelancerBankDetailsDto.prototype, "accountType", 2);
|
|
1494
1500
|
__decorateClass([
|
|
1495
|
-
(0, import_class_validator24.
|
|
1501
|
+
(0, import_class_validator24.IsEnum)(BankAccountScope, {
|
|
1502
|
+
message: `Type of Account Scope must be one of: ${Object.values(
|
|
1503
|
+
BankAccountScope
|
|
1504
|
+
).join(", ")}`
|
|
1505
|
+
})
|
|
1496
1506
|
], FreelancerBankDetailsDto.prototype, "accountScope", 2);
|
|
1497
1507
|
|
|
1498
1508
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
@@ -1701,7 +1711,8 @@ JobRoles = __decorateClass([
|
|
|
1701
1711
|
AccountType,
|
|
1702
1712
|
BANK_PATTERN,
|
|
1703
1713
|
BankAccountScope,
|
|
1704
|
-
|
|
1714
|
+
BankAccountScopeEnum,
|
|
1715
|
+
BankAccountTypeEnum,
|
|
1705
1716
|
BankDetail,
|
|
1706
1717
|
BaseEntity,
|
|
1707
1718
|
CLIENT_PROFILE_PATTERN,
|
package/dist/index.mjs
CHANGED
|
@@ -910,16 +910,16 @@ import {
|
|
|
910
910
|
ManyToOne as ManyToOne7,
|
|
911
911
|
JoinColumn as JoinColumn7
|
|
912
912
|
} from "typeorm";
|
|
913
|
-
var
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
return
|
|
917
|
-
})(
|
|
918
|
-
var
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
return
|
|
922
|
-
})(
|
|
913
|
+
var BankAccountTypeEnum = /* @__PURE__ */ ((BankAccountTypeEnum2) => {
|
|
914
|
+
BankAccountTypeEnum2["PRIMARY"] = "PRIMARY";
|
|
915
|
+
BankAccountTypeEnum2["SECONDARY"] = "SECONDARY";
|
|
916
|
+
return BankAccountTypeEnum2;
|
|
917
|
+
})(BankAccountTypeEnum || {});
|
|
918
|
+
var BankAccountScopeEnum = /* @__PURE__ */ ((BankAccountScopeEnum2) => {
|
|
919
|
+
BankAccountScopeEnum2["DOMESTIC"] = "DOMESTIC";
|
|
920
|
+
BankAccountScopeEnum2["INTERNATIONAL"] = "INTERNATIONAL";
|
|
921
|
+
return BankAccountScopeEnum2;
|
|
922
|
+
})(BankAccountScopeEnum || {});
|
|
923
923
|
var BankDetail = class extends BaseEntity {
|
|
924
924
|
};
|
|
925
925
|
// individual index to find bank details by user
|
|
@@ -968,7 +968,7 @@ __decorateClass([
|
|
|
968
968
|
Column9({
|
|
969
969
|
name: "account_type",
|
|
970
970
|
type: "enum",
|
|
971
|
-
enum:
|
|
971
|
+
enum: BankAccountTypeEnum,
|
|
972
972
|
default: "PRIMARY" /* PRIMARY */
|
|
973
973
|
})
|
|
974
974
|
], BankDetail.prototype, "accountType", 2);
|
|
@@ -976,8 +976,8 @@ __decorateClass([
|
|
|
976
976
|
Column9({
|
|
977
977
|
name: "account_scope",
|
|
978
978
|
type: "enum",
|
|
979
|
-
enum:
|
|
980
|
-
default: "
|
|
979
|
+
enum: BankAccountScopeEnum,
|
|
980
|
+
default: "DOMESTIC" /* DOMESTIC */
|
|
981
981
|
})
|
|
982
982
|
], BankDetail.prototype, "accountScope", 2);
|
|
983
983
|
BankDetail = __decorateClass([
|
|
@@ -1483,10 +1483,16 @@ var BANK_PATTERN = {
|
|
|
1483
1483
|
|
|
1484
1484
|
// src/modules/bank/dto/freelancer-bank-details.dto.ts
|
|
1485
1485
|
import {
|
|
1486
|
+
IsEnum as IsEnum5,
|
|
1486
1487
|
IsNotEmpty as IsNotEmpty19,
|
|
1487
1488
|
IsOptional as IsOptional8,
|
|
1488
1489
|
ValidateIf
|
|
1489
1490
|
} from "class-validator";
|
|
1491
|
+
var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
1492
|
+
BankAccountScope2["DOMESTIC"] = "DOMESTIC";
|
|
1493
|
+
BankAccountScope2["INTERNATIONAL"] = "INTERNATIONAL";
|
|
1494
|
+
return BankAccountScope2;
|
|
1495
|
+
})(BankAccountScope || {});
|
|
1490
1496
|
var FreelancerBankDetailsDto = class {
|
|
1491
1497
|
};
|
|
1492
1498
|
__decorateClass([
|
|
@@ -1511,26 +1517,30 @@ __decorateClass([
|
|
|
1511
1517
|
IsNotEmpty19({ message: "Please enter Branch Name." })
|
|
1512
1518
|
], FreelancerBankDetailsDto.prototype, "branchName", 2);
|
|
1513
1519
|
__decorateClass([
|
|
1514
|
-
ValidateIf((dto) => dto.accountScope === "
|
|
1515
|
-
IsNotEmpty19({ message: "IFSC Code is required for
|
|
1520
|
+
ValidateIf((dto) => dto.accountScope === "DOMESTIC"),
|
|
1521
|
+
IsNotEmpty19({ message: "IFSC Code is required for DOMESTIC accounts." })
|
|
1516
1522
|
], FreelancerBankDetailsDto.prototype, "ifscCode", 2);
|
|
1517
1523
|
__decorateClass([
|
|
1518
|
-
ValidateIf((dto) => dto.accountScope === "
|
|
1519
|
-
IsNotEmpty19({ message: "Routing Number/Sort Code is required for
|
|
1524
|
+
ValidateIf((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1525
|
+
IsNotEmpty19({ message: "Routing Number/Sort Code is required for INTERNATIONAL accounts." })
|
|
1520
1526
|
], FreelancerBankDetailsDto.prototype, "routingNo", 2);
|
|
1521
1527
|
__decorateClass([
|
|
1522
|
-
ValidateIf((dto) => dto.accountScope === "
|
|
1523
|
-
IsNotEmpty19({ message: "ABA Number is required for
|
|
1528
|
+
ValidateIf((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1529
|
+
IsNotEmpty19({ message: "ABA Number is required for INTERNATIONAL accounts." })
|
|
1524
1530
|
], FreelancerBankDetailsDto.prototype, "abaNumber", 2);
|
|
1525
1531
|
__decorateClass([
|
|
1526
|
-
ValidateIf((dto) => dto.accountScope === "
|
|
1527
|
-
IsNotEmpty19({ message: "IBAN is required for
|
|
1532
|
+
ValidateIf((dto) => dto.accountScope === "INTERNATIONAL"),
|
|
1533
|
+
IsNotEmpty19({ message: "IBAN is required for INTERNATIONAL accounts." })
|
|
1528
1534
|
], FreelancerBankDetailsDto.prototype, "iban", 2);
|
|
1529
1535
|
__decorateClass([
|
|
1530
1536
|
IsOptional8()
|
|
1531
1537
|
], FreelancerBankDetailsDto.prototype, "accountType", 2);
|
|
1532
1538
|
__decorateClass([
|
|
1533
|
-
|
|
1539
|
+
IsEnum5(BankAccountScope, {
|
|
1540
|
+
message: `Type of Account Scope must be one of: ${Object.values(
|
|
1541
|
+
BankAccountScope
|
|
1542
|
+
).join(", ")}`
|
|
1543
|
+
})
|
|
1534
1544
|
], FreelancerBankDetailsDto.prototype, "accountScope", 2);
|
|
1535
1545
|
|
|
1536
1546
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
@@ -1738,7 +1748,8 @@ export {
|
|
|
1738
1748
|
AccountType,
|
|
1739
1749
|
BANK_PATTERN,
|
|
1740
1750
|
BankAccountScope,
|
|
1741
|
-
|
|
1751
|
+
BankAccountScopeEnum,
|
|
1752
|
+
BankAccountTypeEnum,
|
|
1742
1753
|
BankDetail,
|
|
1743
1754
|
BaseEntity,
|
|
1744
1755
|
CLIENT_PROFILE_PATTERN,
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
export declare enum BankAccountScope {
|
|
2
|
+
DOMESTIC = "DOMESTIC",
|
|
3
|
+
INTERNATIONAL = "INTERNATIONAL"
|
|
4
|
+
}
|
|
1
5
|
export declare class FreelancerBankDetailsDto {
|
|
2
6
|
name: string;
|
|
3
7
|
mobile: string;
|
|
@@ -11,5 +15,5 @@ export declare class FreelancerBankDetailsDto {
|
|
|
11
15
|
abaNumber: string;
|
|
12
16
|
iban: string;
|
|
13
17
|
accountType: string;
|
|
14
|
-
accountScope:
|
|
18
|
+
accountScope: BankAccountScope;
|
|
15
19
|
}
|