@experts_hub/shared 1.0.85 → 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 +47 -1
- package/dist/index.d.ts +47 -1
- package/dist/index.js +229 -59
- package/dist/index.mjs +237 -61
- 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/package.json +1 -1
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
import { ValidationOptions } from "class-validator";
|
|
1
|
+
import { ValidationArguments, ValidationOptions, ValidatorConstraintInterface } from "class-validator";
|
|
2
2
|
export declare function Match(property: string, validationOptions?: ValidationOptions): (object: any, propertyName: string) => void;
|
|
3
|
+
export declare class IfscOrOtherFieldsConstraint implements ValidatorConstraintInterface {
|
|
4
|
+
validate(value: any, args: ValidationArguments): any;
|
|
5
|
+
defaultMessage(args: ValidationArguments): string;
|
|
6
|
+
}
|
|
7
|
+
export declare function IfscOrOtherFields(relatedFields: string[], validationOptions?: ValidationOptions): (object: Object, propertyName: string) => void;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { BaseEntity } from "./base.entity";
|
|
2
|
+
import { User } from "./user.entity";
|
|
3
|
+
export declare enum BankAccountType {
|
|
4
|
+
PRIMARY = "PRIMARY",
|
|
5
|
+
SECONDARY = "SECONDARY"
|
|
6
|
+
}
|
|
7
|
+
export declare enum BankAccountScope {
|
|
8
|
+
DOMESTIC = "domestic",
|
|
9
|
+
INTERNATIONAL = "international"
|
|
10
|
+
}
|
|
11
|
+
export declare class bankDetails extends BaseEntity {
|
|
12
|
+
userId: number;
|
|
13
|
+
user: User;
|
|
14
|
+
name: string;
|
|
15
|
+
mobile: string;
|
|
16
|
+
email: string;
|
|
17
|
+
address: string;
|
|
18
|
+
accountNumber: string;
|
|
19
|
+
bankName: string;
|
|
20
|
+
ifscCode: string;
|
|
21
|
+
branchName: string;
|
|
22
|
+
routingNo: string;
|
|
23
|
+
abaNumber: string;
|
|
24
|
+
iban: string;
|
|
25
|
+
accountType: BankAccountType;
|
|
26
|
+
accountScope: BankAccountScope;
|
|
27
|
+
}
|
package/dist/entities/index.d.ts
CHANGED
|
@@ -5,6 +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 { bankDetails } from "./bank-details.entity";
|
|
8
9
|
export declare enum AccountType {
|
|
9
10
|
ADMIN = "ADMIN",
|
|
10
11
|
SUB_ADMIN = "SUB_ADMIN",
|
|
@@ -41,4 +42,5 @@ export declare class User extends BaseEntity {
|
|
|
41
42
|
freelancerProfile: FreelancerProfile;
|
|
42
43
|
companyProfile: CompanyProfile;
|
|
43
44
|
jobs: Job[];
|
|
45
|
+
bankDetails: bankDetails[];
|
|
44
46
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -346,6 +346,32 @@ declare class Job extends BaseEntity {
|
|
|
346
346
|
jobSkills: JobSkill[];
|
|
347
347
|
}
|
|
348
348
|
|
|
349
|
+
declare enum BankAccountType {
|
|
350
|
+
PRIMARY = "PRIMARY",
|
|
351
|
+
SECONDARY = "SECONDARY"
|
|
352
|
+
}
|
|
353
|
+
declare enum BankAccountScope {
|
|
354
|
+
DOMESTIC = "domestic",
|
|
355
|
+
INTERNATIONAL = "international"
|
|
356
|
+
}
|
|
357
|
+
declare class bankDetails extends BaseEntity {
|
|
358
|
+
userId: number;
|
|
359
|
+
user: User;
|
|
360
|
+
name: string;
|
|
361
|
+
mobile: string;
|
|
362
|
+
email: string;
|
|
363
|
+
address: string;
|
|
364
|
+
accountNumber: string;
|
|
365
|
+
bankName: string;
|
|
366
|
+
ifscCode: string;
|
|
367
|
+
branchName: string;
|
|
368
|
+
routingNo: string;
|
|
369
|
+
abaNumber: string;
|
|
370
|
+
iban: string;
|
|
371
|
+
accountType: BankAccountType;
|
|
372
|
+
accountScope: BankAccountScope;
|
|
373
|
+
}
|
|
374
|
+
|
|
349
375
|
declare enum AccountType {
|
|
350
376
|
ADMIN = "ADMIN",
|
|
351
377
|
SUB_ADMIN = "SUB_ADMIN",
|
|
@@ -382,6 +408,7 @@ declare class User extends BaseEntity {
|
|
|
382
408
|
freelancerProfile: FreelancerProfile;
|
|
383
409
|
companyProfile: CompanyProfile;
|
|
384
410
|
jobs: Job[];
|
|
411
|
+
bankDetails: bankDetails[];
|
|
385
412
|
}
|
|
386
413
|
|
|
387
414
|
declare enum KindOfHire {
|
|
@@ -534,6 +561,25 @@ declare class FreelancerChangePasswordDto {
|
|
|
534
561
|
newPassword: string;
|
|
535
562
|
}
|
|
536
563
|
|
|
564
|
+
declare const BANK_PATTERN: {
|
|
565
|
+
addFreelancerBankDetails: string;
|
|
566
|
+
};
|
|
567
|
+
|
|
568
|
+
declare class FreelancerBankDetailsDto {
|
|
569
|
+
name: string;
|
|
570
|
+
mobile: string;
|
|
571
|
+
email: string;
|
|
572
|
+
address: string;
|
|
573
|
+
accountNumber: string;
|
|
574
|
+
bankName: string;
|
|
575
|
+
branchName: string;
|
|
576
|
+
ifscCode: string;
|
|
577
|
+
routingNo: string;
|
|
578
|
+
abaNumber: string;
|
|
579
|
+
iban: string;
|
|
580
|
+
accountType: string;
|
|
581
|
+
}
|
|
582
|
+
|
|
537
583
|
declare const UserTCPAdapter: () => MicroserviceOptions;
|
|
538
584
|
|
|
539
585
|
declare const JobTCPAdapter: () => MicroserviceOptions;
|
|
@@ -566,4 +612,4 @@ declare class JobRoles extends BaseEntity {
|
|
|
566
612
|
isActive: boolean;
|
|
567
613
|
}
|
|
568
614
|
|
|
569
|
-
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, CLIENT_PROFILE_PATTERN, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, 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, JobLocation, JobRMQAdapter, JobRoles, JobSkill, JobStatus, 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, TypeOfEmployment, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
|
615
|
+
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BANK_PATTERN, BankAccountScope, BankAccountType, BaseEntity, CLIENT_PROFILE_PATTERN, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, 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, JobLocation, JobRMQAdapter, JobRoles, JobSkill, JobStatus, 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, TypeOfEmployment, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter, bankDetails };
|
package/dist/index.d.ts
CHANGED
|
@@ -346,6 +346,32 @@ declare class Job extends BaseEntity {
|
|
|
346
346
|
jobSkills: JobSkill[];
|
|
347
347
|
}
|
|
348
348
|
|
|
349
|
+
declare enum BankAccountType {
|
|
350
|
+
PRIMARY = "PRIMARY",
|
|
351
|
+
SECONDARY = "SECONDARY"
|
|
352
|
+
}
|
|
353
|
+
declare enum BankAccountScope {
|
|
354
|
+
DOMESTIC = "domestic",
|
|
355
|
+
INTERNATIONAL = "international"
|
|
356
|
+
}
|
|
357
|
+
declare class bankDetails extends BaseEntity {
|
|
358
|
+
userId: number;
|
|
359
|
+
user: User;
|
|
360
|
+
name: string;
|
|
361
|
+
mobile: string;
|
|
362
|
+
email: string;
|
|
363
|
+
address: string;
|
|
364
|
+
accountNumber: string;
|
|
365
|
+
bankName: string;
|
|
366
|
+
ifscCode: string;
|
|
367
|
+
branchName: string;
|
|
368
|
+
routingNo: string;
|
|
369
|
+
abaNumber: string;
|
|
370
|
+
iban: string;
|
|
371
|
+
accountType: BankAccountType;
|
|
372
|
+
accountScope: BankAccountScope;
|
|
373
|
+
}
|
|
374
|
+
|
|
349
375
|
declare enum AccountType {
|
|
350
376
|
ADMIN = "ADMIN",
|
|
351
377
|
SUB_ADMIN = "SUB_ADMIN",
|
|
@@ -382,6 +408,7 @@ declare class User extends BaseEntity {
|
|
|
382
408
|
freelancerProfile: FreelancerProfile;
|
|
383
409
|
companyProfile: CompanyProfile;
|
|
384
410
|
jobs: Job[];
|
|
411
|
+
bankDetails: bankDetails[];
|
|
385
412
|
}
|
|
386
413
|
|
|
387
414
|
declare enum KindOfHire {
|
|
@@ -534,6 +561,25 @@ declare class FreelancerChangePasswordDto {
|
|
|
534
561
|
newPassword: string;
|
|
535
562
|
}
|
|
536
563
|
|
|
564
|
+
declare const BANK_PATTERN: {
|
|
565
|
+
addFreelancerBankDetails: string;
|
|
566
|
+
};
|
|
567
|
+
|
|
568
|
+
declare class FreelancerBankDetailsDto {
|
|
569
|
+
name: string;
|
|
570
|
+
mobile: string;
|
|
571
|
+
email: string;
|
|
572
|
+
address: string;
|
|
573
|
+
accountNumber: string;
|
|
574
|
+
bankName: string;
|
|
575
|
+
branchName: string;
|
|
576
|
+
ifscCode: string;
|
|
577
|
+
routingNo: string;
|
|
578
|
+
abaNumber: string;
|
|
579
|
+
iban: string;
|
|
580
|
+
accountType: string;
|
|
581
|
+
}
|
|
582
|
+
|
|
537
583
|
declare const UserTCPAdapter: () => MicroserviceOptions;
|
|
538
584
|
|
|
539
585
|
declare const JobTCPAdapter: () => MicroserviceOptions;
|
|
@@ -566,4 +612,4 @@ declare class JobRoles extends BaseEntity {
|
|
|
566
612
|
isActive: boolean;
|
|
567
613
|
}
|
|
568
614
|
|
|
569
|
-
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, CLIENT_PROFILE_PATTERN, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, 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, JobLocation, JobRMQAdapter, JobRoles, JobSkill, JobStatus, 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, TypeOfEmployment, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
|
615
|
+
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BANK_PATTERN, BankAccountScope, BankAccountType, BaseEntity, CLIENT_PROFILE_PATTERN, ClientChangePasswordDto, ClientCreateAccountDto, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, 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, JobLocation, JobRMQAdapter, JobRoles, JobSkill, JobStatus, 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, TypeOfEmployment, UpdateCompanyProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter, bankDetails };
|
package/dist/index.js
CHANGED
|
@@ -30,6 +30,9 @@ __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,
|
|
35
38
|
ClientChangePasswordDto: () => ClientChangePasswordDto,
|
|
@@ -38,6 +41,7 @@ __export(index_exports, {
|
|
|
38
41
|
CompanyProfile: () => CompanyProfile,
|
|
39
42
|
CreateQuestionDto: () => CreateQuestionDto,
|
|
40
43
|
CreateSubAdminDto: () => CreateSubAdminDto,
|
|
44
|
+
FreelancerBankDetailsDto: () => FreelancerBankDetailsDto,
|
|
41
45
|
FreelancerChangePasswordDto: () => FreelancerChangePasswordDto,
|
|
42
46
|
FreelancerCreateAccountDto: () => FreelancerCreateAccountDto,
|
|
43
47
|
FreelancerDevelopmentPreferenceDto: () => FreelancerDevelopmentPreferenceDto,
|
|
@@ -80,7 +84,8 @@ __export(index_exports, {
|
|
|
80
84
|
UpdateSubAdminDto: () => UpdateSubAdminDto,
|
|
81
85
|
User: () => User,
|
|
82
86
|
UserRMQAdapter: () => UserRMQAdapter,
|
|
83
|
-
UserTCPAdapter: () => UserTCPAdapter
|
|
87
|
+
UserTCPAdapter: () => UserTCPAdapter,
|
|
88
|
+
bankDetails: () => bankDetails
|
|
84
89
|
});
|
|
85
90
|
module.exports = __toCommonJS(index_exports);
|
|
86
91
|
|
|
@@ -167,6 +172,35 @@ function Match(property, validationOptions) {
|
|
|
167
172
|
});
|
|
168
173
|
};
|
|
169
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
|
+
}
|
|
170
204
|
|
|
171
205
|
// src/modules/onboarding/dto/freelancer-create-account.dto.ts
|
|
172
206
|
var FreelancerCreateAccountDto = class {
|
|
@@ -428,7 +462,7 @@ var CLIENT_PROFILE_PATTERN = {
|
|
|
428
462
|
var import_class_validator15 = require("class-validator");
|
|
429
463
|
|
|
430
464
|
// src/entities/company-profile.entity.ts
|
|
431
|
-
var
|
|
465
|
+
var import_typeorm11 = require("typeorm");
|
|
432
466
|
|
|
433
467
|
// src/entities/base.entity.ts
|
|
434
468
|
var import_typeorm = require("typeorm");
|
|
@@ -468,7 +502,7 @@ __decorateClass([
|
|
|
468
502
|
], BaseEntity.prototype, "deletedAt", 2);
|
|
469
503
|
|
|
470
504
|
// src/entities/user.entity.ts
|
|
471
|
-
var
|
|
505
|
+
var import_typeorm10 = require("typeorm");
|
|
472
506
|
|
|
473
507
|
// src/entities/refresh-token.entity.ts
|
|
474
508
|
var import_typeorm2 = require("typeorm");
|
|
@@ -835,6 +869,82 @@ Job = __decorateClass([
|
|
|
835
869
|
(0, import_typeorm8.Entity)("jobs")
|
|
836
870
|
], Job);
|
|
837
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
|
+
|
|
838
948
|
// src/entities/user.entity.ts
|
|
839
949
|
var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
840
950
|
AccountType2["ADMIN"] = "ADMIN";
|
|
@@ -853,40 +963,40 @@ var AccountStatus = /* @__PURE__ */ ((AccountStatus2) => {
|
|
|
853
963
|
var User = class extends BaseEntity {
|
|
854
964
|
};
|
|
855
965
|
__decorateClass([
|
|
856
|
-
(0,
|
|
966
|
+
(0, import_typeorm10.Column)({ name: "unique_id", type: "varchar", unique: true })
|
|
857
967
|
], User.prototype, "uniqueId", 2);
|
|
858
968
|
__decorateClass([
|
|
859
|
-
(0,
|
|
969
|
+
(0, import_typeorm10.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
860
970
|
], User.prototype, "username", 2);
|
|
861
971
|
__decorateClass([
|
|
862
|
-
(0,
|
|
972
|
+
(0, import_typeorm10.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
863
973
|
], User.prototype, "firstName", 2);
|
|
864
974
|
__decorateClass([
|
|
865
|
-
(0,
|
|
975
|
+
(0, import_typeorm10.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
866
976
|
], User.prototype, "lastName", 2);
|
|
867
977
|
__decorateClass([
|
|
868
|
-
(0,
|
|
978
|
+
(0, import_typeorm10.Column)({ name: "date_of_birth", type: "date", nullable: true })
|
|
869
979
|
], User.prototype, "dateOfBirth", 2);
|
|
870
980
|
__decorateClass([
|
|
871
|
-
(0,
|
|
981
|
+
(0, import_typeorm10.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
872
982
|
], User.prototype, "gender", 2);
|
|
873
983
|
__decorateClass([
|
|
874
|
-
(0,
|
|
984
|
+
(0, import_typeorm10.Column)({ name: "profile_picture_url", type: "text", nullable: true })
|
|
875
985
|
], User.prototype, "profilePictureUrl", 2);
|
|
876
986
|
__decorateClass([
|
|
877
|
-
(0,
|
|
987
|
+
(0, import_typeorm10.Column)({ name: "email", type: "varchar", unique: true })
|
|
878
988
|
], User.prototype, "email", 2);
|
|
879
989
|
__decorateClass([
|
|
880
|
-
(0,
|
|
990
|
+
(0, import_typeorm10.Column)({ name: "mobile_code", type: "varchar", nullable: true })
|
|
881
991
|
], User.prototype, "mobileCode", 2);
|
|
882
992
|
__decorateClass([
|
|
883
|
-
(0,
|
|
993
|
+
(0, import_typeorm10.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
884
994
|
], User.prototype, "mobile", 2);
|
|
885
995
|
__decorateClass([
|
|
886
|
-
(0,
|
|
996
|
+
(0, import_typeorm10.Column)({ name: "password", type: "varchar" })
|
|
887
997
|
], User.prototype, "password", 2);
|
|
888
998
|
__decorateClass([
|
|
889
|
-
(0,
|
|
999
|
+
(0, import_typeorm10.Column)({
|
|
890
1000
|
name: "account_type",
|
|
891
1001
|
type: "enum",
|
|
892
1002
|
enum: AccountType,
|
|
@@ -894,7 +1004,7 @@ __decorateClass([
|
|
|
894
1004
|
})
|
|
895
1005
|
], User.prototype, "accountType", 2);
|
|
896
1006
|
__decorateClass([
|
|
897
|
-
(0,
|
|
1007
|
+
(0, import_typeorm10.Column)({
|
|
898
1008
|
name: "account_status",
|
|
899
1009
|
type: "enum",
|
|
900
1010
|
enum: AccountStatus,
|
|
@@ -902,44 +1012,47 @@ __decorateClass([
|
|
|
902
1012
|
})
|
|
903
1013
|
], User.prototype, "accountStatus", 2);
|
|
904
1014
|
__decorateClass([
|
|
905
|
-
(0,
|
|
1015
|
+
(0, import_typeorm10.Column)({ name: "is_email_verified", type: "boolean", default: false })
|
|
906
1016
|
], User.prototype, "isEmailVerified", 2);
|
|
907
1017
|
__decorateClass([
|
|
908
|
-
(0,
|
|
1018
|
+
(0, import_typeorm10.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
909
1019
|
], User.prototype, "isMobileVerified", 2);
|
|
910
1020
|
__decorateClass([
|
|
911
|
-
(0,
|
|
1021
|
+
(0, import_typeorm10.Column)({
|
|
912
1022
|
name: "last_login_at",
|
|
913
1023
|
type: "timestamp with time zone",
|
|
914
1024
|
nullable: true
|
|
915
1025
|
})
|
|
916
1026
|
], User.prototype, "lastLoginAt", 2);
|
|
917
1027
|
__decorateClass([
|
|
918
|
-
(0,
|
|
1028
|
+
(0, import_typeorm10.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
919
1029
|
], User.prototype, "lastLoginIp", 2);
|
|
920
1030
|
__decorateClass([
|
|
921
|
-
(0,
|
|
1031
|
+
(0, import_typeorm10.OneToMany)(() => RefreshToken, (token) => token.user)
|
|
922
1032
|
], User.prototype, "refreshTokens", 2);
|
|
923
1033
|
__decorateClass([
|
|
924
|
-
(0,
|
|
1034
|
+
(0, import_typeorm10.OneToMany)(() => Otp, (otp) => otp.user)
|
|
925
1035
|
], User.prototype, "otps", 2);
|
|
926
1036
|
__decorateClass([
|
|
927
|
-
(0,
|
|
1037
|
+
(0, import_typeorm10.OneToMany)(() => ResumeParserLog, (resumeParser) => resumeParser.user)
|
|
928
1038
|
], User.prototype, "resumeParserLogs", 2);
|
|
929
1039
|
__decorateClass([
|
|
930
|
-
(0,
|
|
1040
|
+
(0, import_typeorm10.OneToOne)(
|
|
931
1041
|
() => FreelancerProfile,
|
|
932
1042
|
(freelancerProfile) => freelancerProfile.user
|
|
933
1043
|
)
|
|
934
1044
|
], User.prototype, "freelancerProfile", 2);
|
|
935
1045
|
__decorateClass([
|
|
936
|
-
(0,
|
|
1046
|
+
(0, import_typeorm10.OneToOne)(() => CompanyProfile, (companyProfile) => companyProfile.user)
|
|
937
1047
|
], User.prototype, "companyProfile", 2);
|
|
938
1048
|
__decorateClass([
|
|
939
|
-
(0,
|
|
1049
|
+
(0, import_typeorm10.OneToMany)(() => Job, (job) => job.user)
|
|
940
1050
|
], User.prototype, "jobs", 2);
|
|
1051
|
+
__decorateClass([
|
|
1052
|
+
(0, import_typeorm10.OneToMany)(() => bankDetails, (bankDetails2) => bankDetails2.user)
|
|
1053
|
+
], User.prototype, "bankDetails", 2);
|
|
941
1054
|
User = __decorateClass([
|
|
942
|
-
(0,
|
|
1055
|
+
(0, import_typeorm10.Entity)("users")
|
|
943
1056
|
], User);
|
|
944
1057
|
|
|
945
1058
|
// src/entities/company-profile.entity.ts
|
|
@@ -966,42 +1079,42 @@ var CompanyProfile = class extends BaseEntity {
|
|
|
966
1079
|
};
|
|
967
1080
|
// individual index to find company profile by user
|
|
968
1081
|
__decorateClass([
|
|
969
|
-
(0,
|
|
970
|
-
(0,
|
|
1082
|
+
(0, import_typeorm11.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
1083
|
+
(0, import_typeorm11.Index)()
|
|
971
1084
|
], CompanyProfile.prototype, "userId", 2);
|
|
972
1085
|
__decorateClass([
|
|
973
|
-
(0,
|
|
974
|
-
(0,
|
|
1086
|
+
(0, import_typeorm11.ManyToOne)(() => User, (user) => user.otps),
|
|
1087
|
+
(0, import_typeorm11.JoinColumn)({ name: "user_id" })
|
|
975
1088
|
], CompanyProfile.prototype, "user", 2);
|
|
976
1089
|
__decorateClass([
|
|
977
|
-
(0,
|
|
1090
|
+
(0, import_typeorm11.Column)({ name: "company_name", type: "varchar", nullable: true })
|
|
978
1091
|
], CompanyProfile.prototype, "companyName", 2);
|
|
979
1092
|
__decorateClass([
|
|
980
|
-
(0,
|
|
1093
|
+
(0, import_typeorm11.Column)({ name: "bio", type: "varchar", nullable: true })
|
|
981
1094
|
], CompanyProfile.prototype, "bio", 2);
|
|
982
1095
|
__decorateClass([
|
|
983
|
-
(0,
|
|
1096
|
+
(0, import_typeorm11.Column)({ name: "website", type: "varchar", nullable: true })
|
|
984
1097
|
], CompanyProfile.prototype, "webSite", 2);
|
|
985
1098
|
__decorateClass([
|
|
986
|
-
(0,
|
|
1099
|
+
(0, import_typeorm11.Column)({ name: "about_company", type: "varchar", nullable: true })
|
|
987
1100
|
], CompanyProfile.prototype, "aboutCompany", 2);
|
|
988
1101
|
__decorateClass([
|
|
989
|
-
(0,
|
|
1102
|
+
(0, import_typeorm11.Column)({ name: "is_service_aggrement_signed", type: "boolean", default: false })
|
|
990
1103
|
], CompanyProfile.prototype, "isServiceAgreementSigned", 2);
|
|
991
1104
|
__decorateClass([
|
|
992
|
-
(0,
|
|
1105
|
+
(0, import_typeorm11.Column)({ name: "company_address", type: "varchar", nullable: true })
|
|
993
1106
|
], CompanyProfile.prototype, "companyAddress", 2);
|
|
994
1107
|
__decorateClass([
|
|
995
|
-
(0,
|
|
1108
|
+
(0, import_typeorm11.Column)({ name: "phone_number", type: "varchar", nullable: true })
|
|
996
1109
|
], CompanyProfile.prototype, "phoneNumber", 2);
|
|
997
1110
|
__decorateClass([
|
|
998
|
-
(0,
|
|
1111
|
+
(0, import_typeorm11.Column)({ name: "skills", type: "text", nullable: true })
|
|
999
1112
|
], CompanyProfile.prototype, "skills", 2);
|
|
1000
1113
|
__decorateClass([
|
|
1001
|
-
(0,
|
|
1114
|
+
(0, import_typeorm11.Column)({ name: "required_freelancer", type: "varchar", nullable: true })
|
|
1002
1115
|
], CompanyProfile.prototype, "requiredFreelancer", 2);
|
|
1003
1116
|
__decorateClass([
|
|
1004
|
-
(0,
|
|
1117
|
+
(0, import_typeorm11.Column)({
|
|
1005
1118
|
name: "kind_of_hiring",
|
|
1006
1119
|
type: "enum",
|
|
1007
1120
|
enum: KindOfHire,
|
|
@@ -1009,7 +1122,7 @@ __decorateClass([
|
|
|
1009
1122
|
})
|
|
1010
1123
|
], CompanyProfile.prototype, "kindOfHiring", 2);
|
|
1011
1124
|
__decorateClass([
|
|
1012
|
-
(0,
|
|
1125
|
+
(0, import_typeorm11.Column)({
|
|
1013
1126
|
name: "mode_of_hire",
|
|
1014
1127
|
type: "enum",
|
|
1015
1128
|
enum: ModeOfHire,
|
|
@@ -1017,7 +1130,7 @@ __decorateClass([
|
|
|
1017
1130
|
})
|
|
1018
1131
|
], CompanyProfile.prototype, "modeOfHire", 2);
|
|
1019
1132
|
__decorateClass([
|
|
1020
|
-
(0,
|
|
1133
|
+
(0, import_typeorm11.Column)({
|
|
1021
1134
|
name: "found_us_on",
|
|
1022
1135
|
type: "enum",
|
|
1023
1136
|
enum: FromUsOn,
|
|
@@ -1025,7 +1138,7 @@ __decorateClass([
|
|
|
1025
1138
|
})
|
|
1026
1139
|
], CompanyProfile.prototype, "foundUsOn", 2);
|
|
1027
1140
|
CompanyProfile = __decorateClass([
|
|
1028
|
-
(0,
|
|
1141
|
+
(0, import_typeorm11.Entity)("company_profiles")
|
|
1029
1142
|
], CompanyProfile);
|
|
1030
1143
|
|
|
1031
1144
|
// src/modules/user/client-profile/dto/update-client-profile.dto.ts
|
|
@@ -1159,6 +1272,58 @@ __decorateClass([
|
|
|
1159
1272
|
})
|
|
1160
1273
|
], FreelancerChangePasswordDto.prototype, "newPassword", 2);
|
|
1161
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
|
+
|
|
1162
1327
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
1163
1328
|
var import_dotenv = require("dotenv");
|
|
1164
1329
|
var import_microservices = require("@nestjs/microservices");
|
|
@@ -1304,7 +1469,7 @@ var JobRMQAdapter = (mode = "microservice") => {
|
|
|
1304
1469
|
};
|
|
1305
1470
|
|
|
1306
1471
|
// src/entities/question.entity.ts
|
|
1307
|
-
var
|
|
1472
|
+
var import_typeorm12 = require("typeorm");
|
|
1308
1473
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
1309
1474
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
1310
1475
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -1313,16 +1478,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
1313
1478
|
var Question = class extends BaseEntity {
|
|
1314
1479
|
};
|
|
1315
1480
|
__decorateClass([
|
|
1316
|
-
(0,
|
|
1481
|
+
(0, import_typeorm12.Column)({ name: "question", type: "varchar" })
|
|
1317
1482
|
], Question.prototype, "question", 2);
|
|
1318
1483
|
__decorateClass([
|
|
1319
|
-
(0,
|
|
1484
|
+
(0, import_typeorm12.Column)({ name: "hint", type: "varchar", nullable: true })
|
|
1320
1485
|
], Question.prototype, "hint", 2);
|
|
1321
1486
|
__decorateClass([
|
|
1322
|
-
(0,
|
|
1487
|
+
(0, import_typeorm12.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
1323
1488
|
], Question.prototype, "slug", 2);
|
|
1324
1489
|
__decorateClass([
|
|
1325
|
-
(0,
|
|
1490
|
+
(0, import_typeorm12.Column)({
|
|
1326
1491
|
name: "question_for",
|
|
1327
1492
|
type: "enum",
|
|
1328
1493
|
enum: QuestionFor,
|
|
@@ -1330,39 +1495,42 @@ __decorateClass([
|
|
|
1330
1495
|
})
|
|
1331
1496
|
], Question.prototype, "questionFor", 2);
|
|
1332
1497
|
__decorateClass([
|
|
1333
|
-
(0,
|
|
1498
|
+
(0, import_typeorm12.Column)({ name: "type", type: "varchar", nullable: true })
|
|
1334
1499
|
], Question.prototype, "type", 2);
|
|
1335
1500
|
__decorateClass([
|
|
1336
|
-
(0,
|
|
1501
|
+
(0, import_typeorm12.Column)({ name: "options", type: "jsonb", nullable: true })
|
|
1337
1502
|
], Question.prototype, "options", 2);
|
|
1338
1503
|
__decorateClass([
|
|
1339
|
-
(0,
|
|
1504
|
+
(0, import_typeorm12.Column)({ name: "is_active", type: "boolean", default: false })
|
|
1340
1505
|
], Question.prototype, "isActive", 2);
|
|
1341
1506
|
Question = __decorateClass([
|
|
1342
|
-
(0,
|
|
1507
|
+
(0, import_typeorm12.Entity)("questions")
|
|
1343
1508
|
], Question);
|
|
1344
1509
|
|
|
1345
1510
|
// src/entities/job-role.entity.ts
|
|
1346
|
-
var
|
|
1511
|
+
var import_typeorm13 = require("typeorm");
|
|
1347
1512
|
var JobRoles = class extends BaseEntity {
|
|
1348
1513
|
};
|
|
1349
1514
|
__decorateClass([
|
|
1350
|
-
(0,
|
|
1515
|
+
(0, import_typeorm13.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
1351
1516
|
], JobRoles.prototype, "slug", 2);
|
|
1352
1517
|
__decorateClass([
|
|
1353
|
-
(0,
|
|
1518
|
+
(0, import_typeorm13.Column)({ name: "name", type: "varchar", nullable: true })
|
|
1354
1519
|
], JobRoles.prototype, "name", 2);
|
|
1355
1520
|
__decorateClass([
|
|
1356
|
-
(0,
|
|
1521
|
+
(0, import_typeorm13.Column)({ name: "is_active", type: "boolean", default: true })
|
|
1357
1522
|
], JobRoles.prototype, "isActive", 2);
|
|
1358
1523
|
JobRoles = __decorateClass([
|
|
1359
|
-
(0,
|
|
1524
|
+
(0, import_typeorm13.Entity)("job_roles")
|
|
1360
1525
|
], JobRoles);
|
|
1361
1526
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1362
1527
|
0 && (module.exports = {
|
|
1363
1528
|
AUTHENTICATION_PATTERN,
|
|
1364
1529
|
AccountStatus,
|
|
1365
1530
|
AccountType,
|
|
1531
|
+
BANK_PATTERN,
|
|
1532
|
+
BankAccountScope,
|
|
1533
|
+
BankAccountType,
|
|
1366
1534
|
BaseEntity,
|
|
1367
1535
|
CLIENT_PROFILE_PATTERN,
|
|
1368
1536
|
ClientChangePasswordDto,
|
|
@@ -1371,6 +1539,7 @@ JobRoles = __decorateClass([
|
|
|
1371
1539
|
CompanyProfile,
|
|
1372
1540
|
CreateQuestionDto,
|
|
1373
1541
|
CreateSubAdminDto,
|
|
1542
|
+
FreelancerBankDetailsDto,
|
|
1374
1543
|
FreelancerChangePasswordDto,
|
|
1375
1544
|
FreelancerCreateAccountDto,
|
|
1376
1545
|
FreelancerDevelopmentPreferenceDto,
|
|
@@ -1413,5 +1582,6 @@ JobRoles = __decorateClass([
|
|
|
1413
1582
|
UpdateSubAdminDto,
|
|
1414
1583
|
User,
|
|
1415
1584
|
UserRMQAdapter,
|
|
1416
|
-
UserTCPAdapter
|
|
1585
|
+
UserTCPAdapter,
|
|
1586
|
+
bankDetails
|
|
1417
1587
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -83,7 +83,8 @@ import {
|
|
|
83
83
|
|
|
84
84
|
// src/decorators/match.decorator.ts
|
|
85
85
|
import {
|
|
86
|
-
registerDecorator
|
|
86
|
+
registerDecorator,
|
|
87
|
+
ValidatorConstraint
|
|
87
88
|
} from "class-validator";
|
|
88
89
|
function Match(property, validationOptions) {
|
|
89
90
|
return function(object, propertyName) {
|
|
@@ -107,6 +108,35 @@ function Match(property, validationOptions) {
|
|
|
107
108
|
});
|
|
108
109
|
};
|
|
109
110
|
}
|
|
111
|
+
var IfscOrOtherFieldsConstraint = class {
|
|
112
|
+
validate(value, args) {
|
|
113
|
+
const [relatedFields] = args.constraints;
|
|
114
|
+
const dto = args.object;
|
|
115
|
+
if (!value) {
|
|
116
|
+
return relatedFields.some((field) => !!dto[field]);
|
|
117
|
+
}
|
|
118
|
+
return true;
|
|
119
|
+
}
|
|
120
|
+
defaultMessage(args) {
|
|
121
|
+
const [relatedFields] = args.constraints;
|
|
122
|
+
const fieldNames = relatedFields.join(", ");
|
|
123
|
+
return `IFSC Code is required .`;
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
IfscOrOtherFieldsConstraint = __decorateClass([
|
|
127
|
+
ValidatorConstraint({ async: false })
|
|
128
|
+
], IfscOrOtherFieldsConstraint);
|
|
129
|
+
function IfscOrOtherFields(relatedFields, validationOptions) {
|
|
130
|
+
return function(object, propertyName) {
|
|
131
|
+
registerDecorator({
|
|
132
|
+
target: object.constructor,
|
|
133
|
+
propertyName,
|
|
134
|
+
options: validationOptions,
|
|
135
|
+
constraints: [relatedFields],
|
|
136
|
+
validator: IfscOrOtherFieldsConstraint
|
|
137
|
+
});
|
|
138
|
+
};
|
|
139
|
+
}
|
|
110
140
|
|
|
111
141
|
// src/modules/onboarding/dto/freelancer-create-account.dto.ts
|
|
112
142
|
var FreelancerCreateAccountDto = class {
|
|
@@ -400,11 +430,11 @@ import {
|
|
|
400
430
|
|
|
401
431
|
// src/entities/company-profile.entity.ts
|
|
402
432
|
import {
|
|
403
|
-
Entity as
|
|
404
|
-
Column as
|
|
405
|
-
ManyToOne as
|
|
406
|
-
JoinColumn as
|
|
407
|
-
Index as
|
|
433
|
+
Entity as Entity10,
|
|
434
|
+
Column as Column11,
|
|
435
|
+
ManyToOne as ManyToOne8,
|
|
436
|
+
JoinColumn as JoinColumn8,
|
|
437
|
+
Index as Index6
|
|
408
438
|
} from "typeorm";
|
|
409
439
|
|
|
410
440
|
// src/entities/base.entity.ts
|
|
@@ -452,7 +482,7 @@ __decorateClass([
|
|
|
452
482
|
], BaseEntity.prototype, "deletedAt", 2);
|
|
453
483
|
|
|
454
484
|
// src/entities/user.entity.ts
|
|
455
|
-
import { Entity as
|
|
485
|
+
import { Entity as Entity9, Column as Column10, OneToMany as OneToMany5, OneToOne } from "typeorm";
|
|
456
486
|
|
|
457
487
|
// src/entities/refresh-token.entity.ts
|
|
458
488
|
import {
|
|
@@ -855,6 +885,88 @@ Job = __decorateClass([
|
|
|
855
885
|
Entity7("jobs")
|
|
856
886
|
], Job);
|
|
857
887
|
|
|
888
|
+
// src/entities/bank-details.entity.ts
|
|
889
|
+
import {
|
|
890
|
+
Entity as Entity8,
|
|
891
|
+
Column as Column9,
|
|
892
|
+
Index as Index5,
|
|
893
|
+
ManyToOne as ManyToOne7,
|
|
894
|
+
JoinColumn as JoinColumn7
|
|
895
|
+
} from "typeorm";
|
|
896
|
+
var BankAccountType = /* @__PURE__ */ ((BankAccountType2) => {
|
|
897
|
+
BankAccountType2["PRIMARY"] = "PRIMARY";
|
|
898
|
+
BankAccountType2["SECONDARY"] = "SECONDARY";
|
|
899
|
+
return BankAccountType2;
|
|
900
|
+
})(BankAccountType || {});
|
|
901
|
+
var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
|
|
902
|
+
BankAccountScope2["DOMESTIC"] = "domestic";
|
|
903
|
+
BankAccountScope2["INTERNATIONAL"] = "international";
|
|
904
|
+
return BankAccountScope2;
|
|
905
|
+
})(BankAccountScope || {});
|
|
906
|
+
var bankDetails = class extends BaseEntity {
|
|
907
|
+
};
|
|
908
|
+
// individual index to find bank details by user
|
|
909
|
+
__decorateClass([
|
|
910
|
+
Column9({ name: "user_id", type: "integer", nullable: true }),
|
|
911
|
+
Index5()
|
|
912
|
+
], bankDetails.prototype, "userId", 2);
|
|
913
|
+
__decorateClass([
|
|
914
|
+
ManyToOne7(() => User, (user) => user.bankDetails),
|
|
915
|
+
JoinColumn7({ name: "user_id" })
|
|
916
|
+
], bankDetails.prototype, "user", 2);
|
|
917
|
+
__decorateClass([
|
|
918
|
+
Column9({ name: "name", type: "varchar", nullable: true })
|
|
919
|
+
], bankDetails.prototype, "name", 2);
|
|
920
|
+
__decorateClass([
|
|
921
|
+
Column9({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
922
|
+
], bankDetails.prototype, "mobile", 2);
|
|
923
|
+
__decorateClass([
|
|
924
|
+
Column9({ name: "email", type: "varchar", unique: true })
|
|
925
|
+
], bankDetails.prototype, "email", 2);
|
|
926
|
+
__decorateClass([
|
|
927
|
+
Column9({ name: "address", type: "varchar", nullable: true })
|
|
928
|
+
], bankDetails.prototype, "address", 2);
|
|
929
|
+
__decorateClass([
|
|
930
|
+
Column9({ name: "account_number", type: "varchar", unique: true, nullable: true })
|
|
931
|
+
], bankDetails.prototype, "accountNumber", 2);
|
|
932
|
+
__decorateClass([
|
|
933
|
+
Column9({ name: "bank_name", type: "varchar", nullable: true })
|
|
934
|
+
], bankDetails.prototype, "bankName", 2);
|
|
935
|
+
__decorateClass([
|
|
936
|
+
Column9({ name: "ifsc_code", type: "varchar", nullable: true })
|
|
937
|
+
], bankDetails.prototype, "ifscCode", 2);
|
|
938
|
+
__decorateClass([
|
|
939
|
+
Column9({ name: "branch_name", type: "varchar", nullable: true })
|
|
940
|
+
], bankDetails.prototype, "branchName", 2);
|
|
941
|
+
__decorateClass([
|
|
942
|
+
Column9({ name: "routing_no", type: "varchar", nullable: true })
|
|
943
|
+
], bankDetails.prototype, "routingNo", 2);
|
|
944
|
+
__decorateClass([
|
|
945
|
+
Column9({ name: "aba_no", type: "varchar", nullable: true })
|
|
946
|
+
], bankDetails.prototype, "abaNumber", 2);
|
|
947
|
+
__decorateClass([
|
|
948
|
+
Column9({ name: "iban", type: "varchar", nullable: true })
|
|
949
|
+
], bankDetails.prototype, "iban", 2);
|
|
950
|
+
__decorateClass([
|
|
951
|
+
Column9({
|
|
952
|
+
name: "account_type",
|
|
953
|
+
type: "enum",
|
|
954
|
+
enum: BankAccountType,
|
|
955
|
+
default: "PRIMARY" /* PRIMARY */
|
|
956
|
+
})
|
|
957
|
+
], bankDetails.prototype, "accountType", 2);
|
|
958
|
+
__decorateClass([
|
|
959
|
+
Column9({
|
|
960
|
+
name: "account_scope",
|
|
961
|
+
type: "enum",
|
|
962
|
+
enum: BankAccountScope,
|
|
963
|
+
default: "domestic" /* DOMESTIC */
|
|
964
|
+
})
|
|
965
|
+
], bankDetails.prototype, "accountScope", 2);
|
|
966
|
+
bankDetails = __decorateClass([
|
|
967
|
+
Entity8("bank_details")
|
|
968
|
+
], bankDetails);
|
|
969
|
+
|
|
858
970
|
// src/entities/user.entity.ts
|
|
859
971
|
var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
860
972
|
AccountType2["ADMIN"] = "ADMIN";
|
|
@@ -873,40 +985,40 @@ var AccountStatus = /* @__PURE__ */ ((AccountStatus2) => {
|
|
|
873
985
|
var User = class extends BaseEntity {
|
|
874
986
|
};
|
|
875
987
|
__decorateClass([
|
|
876
|
-
|
|
988
|
+
Column10({ name: "unique_id", type: "varchar", unique: true })
|
|
877
989
|
], User.prototype, "uniqueId", 2);
|
|
878
990
|
__decorateClass([
|
|
879
|
-
|
|
991
|
+
Column10({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
880
992
|
], User.prototype, "username", 2);
|
|
881
993
|
__decorateClass([
|
|
882
|
-
|
|
994
|
+
Column10({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
883
995
|
], User.prototype, "firstName", 2);
|
|
884
996
|
__decorateClass([
|
|
885
|
-
|
|
997
|
+
Column10({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
886
998
|
], User.prototype, "lastName", 2);
|
|
887
999
|
__decorateClass([
|
|
888
|
-
|
|
1000
|
+
Column10({ name: "date_of_birth", type: "date", nullable: true })
|
|
889
1001
|
], User.prototype, "dateOfBirth", 2);
|
|
890
1002
|
__decorateClass([
|
|
891
|
-
|
|
1003
|
+
Column10({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
892
1004
|
], User.prototype, "gender", 2);
|
|
893
1005
|
__decorateClass([
|
|
894
|
-
|
|
1006
|
+
Column10({ name: "profile_picture_url", type: "text", nullable: true })
|
|
895
1007
|
], User.prototype, "profilePictureUrl", 2);
|
|
896
1008
|
__decorateClass([
|
|
897
|
-
|
|
1009
|
+
Column10({ name: "email", type: "varchar", unique: true })
|
|
898
1010
|
], User.prototype, "email", 2);
|
|
899
1011
|
__decorateClass([
|
|
900
|
-
|
|
1012
|
+
Column10({ name: "mobile_code", type: "varchar", nullable: true })
|
|
901
1013
|
], User.prototype, "mobileCode", 2);
|
|
902
1014
|
__decorateClass([
|
|
903
|
-
|
|
1015
|
+
Column10({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
904
1016
|
], User.prototype, "mobile", 2);
|
|
905
1017
|
__decorateClass([
|
|
906
|
-
|
|
1018
|
+
Column10({ name: "password", type: "varchar" })
|
|
907
1019
|
], User.prototype, "password", 2);
|
|
908
1020
|
__decorateClass([
|
|
909
|
-
|
|
1021
|
+
Column10({
|
|
910
1022
|
name: "account_type",
|
|
911
1023
|
type: "enum",
|
|
912
1024
|
enum: AccountType,
|
|
@@ -914,7 +1026,7 @@ __decorateClass([
|
|
|
914
1026
|
})
|
|
915
1027
|
], User.prototype, "accountType", 2);
|
|
916
1028
|
__decorateClass([
|
|
917
|
-
|
|
1029
|
+
Column10({
|
|
918
1030
|
name: "account_status",
|
|
919
1031
|
type: "enum",
|
|
920
1032
|
enum: AccountStatus,
|
|
@@ -922,29 +1034,29 @@ __decorateClass([
|
|
|
922
1034
|
})
|
|
923
1035
|
], User.prototype, "accountStatus", 2);
|
|
924
1036
|
__decorateClass([
|
|
925
|
-
|
|
1037
|
+
Column10({ name: "is_email_verified", type: "boolean", default: false })
|
|
926
1038
|
], User.prototype, "isEmailVerified", 2);
|
|
927
1039
|
__decorateClass([
|
|
928
|
-
|
|
1040
|
+
Column10({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
929
1041
|
], User.prototype, "isMobileVerified", 2);
|
|
930
1042
|
__decorateClass([
|
|
931
|
-
|
|
1043
|
+
Column10({
|
|
932
1044
|
name: "last_login_at",
|
|
933
1045
|
type: "timestamp with time zone",
|
|
934
1046
|
nullable: true
|
|
935
1047
|
})
|
|
936
1048
|
], User.prototype, "lastLoginAt", 2);
|
|
937
1049
|
__decorateClass([
|
|
938
|
-
|
|
1050
|
+
Column10({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
939
1051
|
], User.prototype, "lastLoginIp", 2);
|
|
940
1052
|
__decorateClass([
|
|
941
|
-
|
|
1053
|
+
OneToMany5(() => RefreshToken, (token) => token.user)
|
|
942
1054
|
], User.prototype, "refreshTokens", 2);
|
|
943
1055
|
__decorateClass([
|
|
944
|
-
|
|
1056
|
+
OneToMany5(() => Otp, (otp) => otp.user)
|
|
945
1057
|
], User.prototype, "otps", 2);
|
|
946
1058
|
__decorateClass([
|
|
947
|
-
|
|
1059
|
+
OneToMany5(() => ResumeParserLog, (resumeParser) => resumeParser.user)
|
|
948
1060
|
], User.prototype, "resumeParserLogs", 2);
|
|
949
1061
|
__decorateClass([
|
|
950
1062
|
OneToOne(
|
|
@@ -956,10 +1068,13 @@ __decorateClass([
|
|
|
956
1068
|
OneToOne(() => CompanyProfile, (companyProfile) => companyProfile.user)
|
|
957
1069
|
], User.prototype, "companyProfile", 2);
|
|
958
1070
|
__decorateClass([
|
|
959
|
-
|
|
1071
|
+
OneToMany5(() => Job, (job) => job.user)
|
|
960
1072
|
], User.prototype, "jobs", 2);
|
|
1073
|
+
__decorateClass([
|
|
1074
|
+
OneToMany5(() => bankDetails, (bankDetails2) => bankDetails2.user)
|
|
1075
|
+
], User.prototype, "bankDetails", 2);
|
|
961
1076
|
User = __decorateClass([
|
|
962
|
-
|
|
1077
|
+
Entity9("users")
|
|
963
1078
|
], User);
|
|
964
1079
|
|
|
965
1080
|
// src/entities/company-profile.entity.ts
|
|
@@ -986,42 +1101,42 @@ var CompanyProfile = class extends BaseEntity {
|
|
|
986
1101
|
};
|
|
987
1102
|
// individual index to find company profile by user
|
|
988
1103
|
__decorateClass([
|
|
989
|
-
|
|
990
|
-
|
|
1104
|
+
Column11({ name: "user_id", type: "integer", nullable: true }),
|
|
1105
|
+
Index6()
|
|
991
1106
|
], CompanyProfile.prototype, "userId", 2);
|
|
992
1107
|
__decorateClass([
|
|
993
|
-
|
|
994
|
-
|
|
1108
|
+
ManyToOne8(() => User, (user) => user.otps),
|
|
1109
|
+
JoinColumn8({ name: "user_id" })
|
|
995
1110
|
], CompanyProfile.prototype, "user", 2);
|
|
996
1111
|
__decorateClass([
|
|
997
|
-
|
|
1112
|
+
Column11({ name: "company_name", type: "varchar", nullable: true })
|
|
998
1113
|
], CompanyProfile.prototype, "companyName", 2);
|
|
999
1114
|
__decorateClass([
|
|
1000
|
-
|
|
1115
|
+
Column11({ name: "bio", type: "varchar", nullable: true })
|
|
1001
1116
|
], CompanyProfile.prototype, "bio", 2);
|
|
1002
1117
|
__decorateClass([
|
|
1003
|
-
|
|
1118
|
+
Column11({ name: "website", type: "varchar", nullable: true })
|
|
1004
1119
|
], CompanyProfile.prototype, "webSite", 2);
|
|
1005
1120
|
__decorateClass([
|
|
1006
|
-
|
|
1121
|
+
Column11({ name: "about_company", type: "varchar", nullable: true })
|
|
1007
1122
|
], CompanyProfile.prototype, "aboutCompany", 2);
|
|
1008
1123
|
__decorateClass([
|
|
1009
|
-
|
|
1124
|
+
Column11({ name: "is_service_aggrement_signed", type: "boolean", default: false })
|
|
1010
1125
|
], CompanyProfile.prototype, "isServiceAgreementSigned", 2);
|
|
1011
1126
|
__decorateClass([
|
|
1012
|
-
|
|
1127
|
+
Column11({ name: "company_address", type: "varchar", nullable: true })
|
|
1013
1128
|
], CompanyProfile.prototype, "companyAddress", 2);
|
|
1014
1129
|
__decorateClass([
|
|
1015
|
-
|
|
1130
|
+
Column11({ name: "phone_number", type: "varchar", nullable: true })
|
|
1016
1131
|
], CompanyProfile.prototype, "phoneNumber", 2);
|
|
1017
1132
|
__decorateClass([
|
|
1018
|
-
|
|
1133
|
+
Column11({ name: "skills", type: "text", nullable: true })
|
|
1019
1134
|
], CompanyProfile.prototype, "skills", 2);
|
|
1020
1135
|
__decorateClass([
|
|
1021
|
-
|
|
1136
|
+
Column11({ name: "required_freelancer", type: "varchar", nullable: true })
|
|
1022
1137
|
], CompanyProfile.prototype, "requiredFreelancer", 2);
|
|
1023
1138
|
__decorateClass([
|
|
1024
|
-
|
|
1139
|
+
Column11({
|
|
1025
1140
|
name: "kind_of_hiring",
|
|
1026
1141
|
type: "enum",
|
|
1027
1142
|
enum: KindOfHire,
|
|
@@ -1029,7 +1144,7 @@ __decorateClass([
|
|
|
1029
1144
|
})
|
|
1030
1145
|
], CompanyProfile.prototype, "kindOfHiring", 2);
|
|
1031
1146
|
__decorateClass([
|
|
1032
|
-
|
|
1147
|
+
Column11({
|
|
1033
1148
|
name: "mode_of_hire",
|
|
1034
1149
|
type: "enum",
|
|
1035
1150
|
enum: ModeOfHire,
|
|
@@ -1037,7 +1152,7 @@ __decorateClass([
|
|
|
1037
1152
|
})
|
|
1038
1153
|
], CompanyProfile.prototype, "modeOfHire", 2);
|
|
1039
1154
|
__decorateClass([
|
|
1040
|
-
|
|
1155
|
+
Column11({
|
|
1041
1156
|
name: "found_us_on",
|
|
1042
1157
|
type: "enum",
|
|
1043
1158
|
enum: FromUsOn,
|
|
@@ -1045,7 +1160,7 @@ __decorateClass([
|
|
|
1045
1160
|
})
|
|
1046
1161
|
], CompanyProfile.prototype, "foundUsOn", 2);
|
|
1047
1162
|
CompanyProfile = __decorateClass([
|
|
1048
|
-
|
|
1163
|
+
Entity10("company_profiles")
|
|
1049
1164
|
], CompanyProfile);
|
|
1050
1165
|
|
|
1051
1166
|
// src/modules/user/client-profile/dto/update-client-profile.dto.ts
|
|
@@ -1195,6 +1310,62 @@ __decorateClass([
|
|
|
1195
1310
|
})
|
|
1196
1311
|
], FreelancerChangePasswordDto.prototype, "newPassword", 2);
|
|
1197
1312
|
|
|
1313
|
+
// src/modules/bank/pattern/pattern.ts
|
|
1314
|
+
var BANK_PATTERN = {
|
|
1315
|
+
addFreelancerBankDetails: "add.freelancer.bankdetails"
|
|
1316
|
+
};
|
|
1317
|
+
|
|
1318
|
+
// src/modules/bank/dto/freelancer-bank-details.dto.ts
|
|
1319
|
+
import {
|
|
1320
|
+
IsNotEmpty as IsNotEmpty16,
|
|
1321
|
+
IsOptional as IsOptional6,
|
|
1322
|
+
ValidateIf
|
|
1323
|
+
} from "class-validator";
|
|
1324
|
+
var FreelancerBankDetailsDto = class {
|
|
1325
|
+
};
|
|
1326
|
+
__decorateClass([
|
|
1327
|
+
IsNotEmpty16({ message: "Please enter Account Holder Name." })
|
|
1328
|
+
], FreelancerBankDetailsDto.prototype, "name", 2);
|
|
1329
|
+
__decorateClass([
|
|
1330
|
+
IsNotEmpty16({ message: "Please enter Mobile Number." })
|
|
1331
|
+
], FreelancerBankDetailsDto.prototype, "mobile", 2);
|
|
1332
|
+
__decorateClass([
|
|
1333
|
+
IsNotEmpty16({ message: "Please enter Email." })
|
|
1334
|
+
], FreelancerBankDetailsDto.prototype, "email", 2);
|
|
1335
|
+
__decorateClass([
|
|
1336
|
+
IsOptional6()
|
|
1337
|
+
], FreelancerBankDetailsDto.prototype, "address", 2);
|
|
1338
|
+
__decorateClass([
|
|
1339
|
+
IsNotEmpty16({ message: "Please enter Account Number." })
|
|
1340
|
+
], FreelancerBankDetailsDto.prototype, "accountNumber", 2);
|
|
1341
|
+
__decorateClass([
|
|
1342
|
+
IsNotEmpty16({ message: "Please enter Bank Name." })
|
|
1343
|
+
], FreelancerBankDetailsDto.prototype, "bankName", 2);
|
|
1344
|
+
__decorateClass([
|
|
1345
|
+
IsNotEmpty16({ message: "Please enter Branch Name." })
|
|
1346
|
+
], FreelancerBankDetailsDto.prototype, "branchName", 2);
|
|
1347
|
+
__decorateClass([
|
|
1348
|
+
IsOptional6(),
|
|
1349
|
+
IfscOrOtherFields(["routingNo", "abaNumber", "iban"], {
|
|
1350
|
+
message: "IFSC Code is required ."
|
|
1351
|
+
})
|
|
1352
|
+
], FreelancerBankDetailsDto.prototype, "ifscCode", 2);
|
|
1353
|
+
__decorateClass([
|
|
1354
|
+
ValidateIf((dto) => !dto.ifscCode),
|
|
1355
|
+
IsNotEmpty16({ message: "Routing Number/Sort Code is required " })
|
|
1356
|
+
], FreelancerBankDetailsDto.prototype, "routingNo", 2);
|
|
1357
|
+
__decorateClass([
|
|
1358
|
+
ValidateIf((dto) => !dto.ifscCode),
|
|
1359
|
+
IsNotEmpty16({ message: "ABA Number is required " })
|
|
1360
|
+
], FreelancerBankDetailsDto.prototype, "abaNumber", 2);
|
|
1361
|
+
__decorateClass([
|
|
1362
|
+
ValidateIf((dto) => !dto.ifscCode),
|
|
1363
|
+
IsNotEmpty16({ message: "IBAN is required " })
|
|
1364
|
+
], FreelancerBankDetailsDto.prototype, "iban", 2);
|
|
1365
|
+
__decorateClass([
|
|
1366
|
+
IsOptional6()
|
|
1367
|
+
], FreelancerBankDetailsDto.prototype, "accountType", 2);
|
|
1368
|
+
|
|
1198
1369
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
1199
1370
|
import { config } from "dotenv";
|
|
1200
1371
|
import { Transport } from "@nestjs/microservices";
|
|
@@ -1340,7 +1511,7 @@ var JobRMQAdapter = (mode = "microservice") => {
|
|
|
1340
1511
|
};
|
|
1341
1512
|
|
|
1342
1513
|
// src/entities/question.entity.ts
|
|
1343
|
-
import { Entity as
|
|
1514
|
+
import { Entity as Entity11, Column as Column12 } from "typeorm";
|
|
1344
1515
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
1345
1516
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
1346
1517
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -1349,16 +1520,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
1349
1520
|
var Question = class extends BaseEntity {
|
|
1350
1521
|
};
|
|
1351
1522
|
__decorateClass([
|
|
1352
|
-
|
|
1523
|
+
Column12({ name: "question", type: "varchar" })
|
|
1353
1524
|
], Question.prototype, "question", 2);
|
|
1354
1525
|
__decorateClass([
|
|
1355
|
-
|
|
1526
|
+
Column12({ name: "hint", type: "varchar", nullable: true })
|
|
1356
1527
|
], Question.prototype, "hint", 2);
|
|
1357
1528
|
__decorateClass([
|
|
1358
|
-
|
|
1529
|
+
Column12({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
1359
1530
|
], Question.prototype, "slug", 2);
|
|
1360
1531
|
__decorateClass([
|
|
1361
|
-
|
|
1532
|
+
Column12({
|
|
1362
1533
|
name: "question_for",
|
|
1363
1534
|
type: "enum",
|
|
1364
1535
|
enum: QuestionFor,
|
|
@@ -1366,38 +1537,41 @@ __decorateClass([
|
|
|
1366
1537
|
})
|
|
1367
1538
|
], Question.prototype, "questionFor", 2);
|
|
1368
1539
|
__decorateClass([
|
|
1369
|
-
|
|
1540
|
+
Column12({ name: "type", type: "varchar", nullable: true })
|
|
1370
1541
|
], Question.prototype, "type", 2);
|
|
1371
1542
|
__decorateClass([
|
|
1372
|
-
|
|
1543
|
+
Column12({ name: "options", type: "jsonb", nullable: true })
|
|
1373
1544
|
], Question.prototype, "options", 2);
|
|
1374
1545
|
__decorateClass([
|
|
1375
|
-
|
|
1546
|
+
Column12({ name: "is_active", type: "boolean", default: false })
|
|
1376
1547
|
], Question.prototype, "isActive", 2);
|
|
1377
1548
|
Question = __decorateClass([
|
|
1378
|
-
|
|
1549
|
+
Entity11("questions")
|
|
1379
1550
|
], Question);
|
|
1380
1551
|
|
|
1381
1552
|
// src/entities/job-role.entity.ts
|
|
1382
|
-
import { Entity as
|
|
1553
|
+
import { Entity as Entity12, Column as Column13 } from "typeorm";
|
|
1383
1554
|
var JobRoles = class extends BaseEntity {
|
|
1384
1555
|
};
|
|
1385
1556
|
__decorateClass([
|
|
1386
|
-
|
|
1557
|
+
Column13({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
1387
1558
|
], JobRoles.prototype, "slug", 2);
|
|
1388
1559
|
__decorateClass([
|
|
1389
|
-
|
|
1560
|
+
Column13({ name: "name", type: "varchar", nullable: true })
|
|
1390
1561
|
], JobRoles.prototype, "name", 2);
|
|
1391
1562
|
__decorateClass([
|
|
1392
|
-
|
|
1563
|
+
Column13({ name: "is_active", type: "boolean", default: true })
|
|
1393
1564
|
], JobRoles.prototype, "isActive", 2);
|
|
1394
1565
|
JobRoles = __decorateClass([
|
|
1395
|
-
|
|
1566
|
+
Entity12("job_roles")
|
|
1396
1567
|
], JobRoles);
|
|
1397
1568
|
export {
|
|
1398
1569
|
AUTHENTICATION_PATTERN,
|
|
1399
1570
|
AccountStatus,
|
|
1400
1571
|
AccountType,
|
|
1572
|
+
BANK_PATTERN,
|
|
1573
|
+
BankAccountScope,
|
|
1574
|
+
BankAccountType,
|
|
1401
1575
|
BaseEntity,
|
|
1402
1576
|
CLIENT_PROFILE_PATTERN,
|
|
1403
1577
|
ClientChangePasswordDto,
|
|
@@ -1406,6 +1580,7 @@ export {
|
|
|
1406
1580
|
CompanyProfile,
|
|
1407
1581
|
CreateQuestionDto,
|
|
1408
1582
|
CreateSubAdminDto,
|
|
1583
|
+
FreelancerBankDetailsDto,
|
|
1409
1584
|
FreelancerChangePasswordDto,
|
|
1410
1585
|
FreelancerCreateAccountDto,
|
|
1411
1586
|
FreelancerDevelopmentPreferenceDto,
|
|
@@ -1448,5 +1623,6 @@ export {
|
|
|
1448
1623
|
UpdateSubAdminDto,
|
|
1449
1624
|
User,
|
|
1450
1625
|
UserRMQAdapter,
|
|
1451
|
-
UserTCPAdapter
|
|
1626
|
+
UserTCPAdapter,
|
|
1627
|
+
bankDetails
|
|
1452
1628
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare class FreelancerBankDetailsDto {
|
|
2
|
+
name: string;
|
|
3
|
+
mobile: string;
|
|
4
|
+
email: string;
|
|
5
|
+
address: string;
|
|
6
|
+
accountNumber: string;
|
|
7
|
+
bankName: string;
|
|
8
|
+
branchName: string;
|
|
9
|
+
ifscCode: string;
|
|
10
|
+
routingNo: string;
|
|
11
|
+
abaNumber: string;
|
|
12
|
+
iban: string;
|
|
13
|
+
accountType: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './freelancer-bank-details.dto';
|
package/dist/modules/index.d.ts
CHANGED