@experts_hub/shared 1.0.371 → 1.0.373
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/contract.entity.d.ts +2 -0
- package/dist/entities/index.d.ts +2 -3
- package/dist/entities/invoices.entity.d.ts +0 -20
- package/dist/entities/{transaction.entity.d.ts → stripe-wallet-transaction.entity.d.ts} +7 -7
- package/dist/entities/{wallet-details.entity.d.ts → stripe-wallet.entity.d.ts} +5 -7
- package/dist/entities/user.entity.d.ts +2 -2
- package/dist/index.d.mts +14 -33
- package/dist/index.d.ts +14 -33
- package/dist/index.js +68 -121
- package/dist/index.mjs +64 -115
- package/package.json +1 -1
package/dist/entities/index.d.ts
CHANGED
|
@@ -60,6 +60,5 @@ export * from './f2f-interview-schedule.entity';
|
|
|
60
60
|
export * from './f2f-interview-reschedule-request.entity';
|
|
61
61
|
export * from './zoom-meeting-log.entity';
|
|
62
62
|
export * from './contract.entity';
|
|
63
|
-
export * from './wallet
|
|
64
|
-
export * from './transaction.entity';
|
|
65
|
-
export * from './invoices.entity';
|
|
63
|
+
export * from './stripe-wallet.entity';
|
|
64
|
+
export * from './stripe-wallet-transaction.entity';
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { BaseEntity } from "./base.entity";
|
|
2
|
-
import { WalletDetail } from "./wallet-details.entity";
|
|
3
|
-
export declare enum InvoiceStatusEnum {
|
|
4
|
-
PENDING = "PENDING",
|
|
5
|
-
PAID = "PAID",
|
|
6
|
-
FAILED = "FAILED",
|
|
7
|
-
CANCELED = "CANCELED"
|
|
8
|
-
}
|
|
9
|
-
export declare class Invoice extends BaseEntity {
|
|
10
|
-
clientWalletId: number;
|
|
11
|
-
clientWallet: WalletDetail;
|
|
12
|
-
freelancerWalletId: number;
|
|
13
|
-
freelancerWallet: WalletDetail;
|
|
14
|
-
amount: number;
|
|
15
|
-
currency: string;
|
|
16
|
-
status: InvoiceStatusEnum;
|
|
17
|
-
stripeInvoiceId: string;
|
|
18
|
-
stripeInvoicePdf: string;
|
|
19
|
-
description: string;
|
|
20
|
-
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { BaseEntity } from "./base.entity";
|
|
2
|
-
import {
|
|
3
|
-
export declare enum
|
|
2
|
+
import { StripeWallet } from "./stripe-wallet.entity";
|
|
3
|
+
export declare enum StripeWalletTransactionTypeEnum {
|
|
4
4
|
ADD_FUNDS = "ADD_FUNDS",
|
|
5
5
|
TRANSFER = "TRANSFER",
|
|
6
6
|
WITHDRAW = "WITHDRAW",
|
|
7
7
|
INVOICE_PAYMENT = "INVOICE_PAYMENT",
|
|
8
8
|
REFUND = "REFUND"
|
|
9
9
|
}
|
|
10
|
-
export declare enum
|
|
10
|
+
export declare enum StripeWalletTransactionStatusEnum {
|
|
11
11
|
PENDING = "PENDING",
|
|
12
12
|
SUCCESS = "SUCCESS",
|
|
13
13
|
FAILED = "FAILED"
|
|
14
14
|
}
|
|
15
|
-
export declare class
|
|
15
|
+
export declare class StripeWalletTransaction extends BaseEntity {
|
|
16
16
|
walletId: number;
|
|
17
|
-
|
|
17
|
+
stripeWallet: StripeWallet;
|
|
18
18
|
amount: number;
|
|
19
19
|
currency: string;
|
|
20
|
-
type:
|
|
21
|
-
status:
|
|
20
|
+
type: StripeWalletTransactionTypeEnum;
|
|
21
|
+
status: StripeWalletTransactionStatusEnum;
|
|
22
22
|
stripeReferenceId: string;
|
|
23
23
|
description: string;
|
|
24
24
|
}
|
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
import { BaseEntity } from "./base.entity";
|
|
2
2
|
import { User } from "./user.entity";
|
|
3
|
-
import {
|
|
4
|
-
declare enum
|
|
3
|
+
import { StripeWalletTransaction } from "./stripe-wallet-transaction.entity";
|
|
4
|
+
declare enum StripeWalletAccountTypeEnum {
|
|
5
5
|
BUSINESS = "BUSINESS",
|
|
6
6
|
FREELANCER = "FREELANCER"
|
|
7
7
|
}
|
|
8
|
-
export declare class
|
|
8
|
+
export declare class StripeWallet extends BaseEntity {
|
|
9
9
|
userId: number;
|
|
10
10
|
user: User;
|
|
11
|
-
|
|
12
|
-
email: string;
|
|
13
|
-
accountType: AccountTypeEnum;
|
|
11
|
+
accountType: StripeWalletAccountTypeEnum;
|
|
14
12
|
stripeAccountId: string;
|
|
15
13
|
stripeCustomerId: string;
|
|
16
14
|
walletBalance: number;
|
|
17
15
|
stripeMetadata: Record<string, any>;
|
|
18
|
-
transactions:
|
|
16
|
+
transactions: StripeWalletTransaction[];
|
|
19
17
|
}
|
|
20
18
|
export {};
|
|
@@ -28,7 +28,7 @@ import { AiInterview } from "./ai-interview.entity";
|
|
|
28
28
|
import { F2FInterview } from "./f2f-interview.entity";
|
|
29
29
|
import { F2fInterviewRescheduleRequest } from "./f2f-interview-reschedule-request.entity";
|
|
30
30
|
import { Contract } from "./contract.entity";
|
|
31
|
-
import {
|
|
31
|
+
import { StripeWallet } from "./stripe-wallet.entity";
|
|
32
32
|
export declare enum AccountType {
|
|
33
33
|
ADMIN = "ADMIN",
|
|
34
34
|
SUB_ADMIN = "SUB_ADMIN",
|
|
@@ -111,5 +111,5 @@ export declare class User extends BaseEntity {
|
|
|
111
111
|
adminUserRoles: AdminUserRole[];
|
|
112
112
|
clientContracts: Contract[];
|
|
113
113
|
freelancerContracts: Contract[];
|
|
114
|
-
|
|
114
|
+
stripeWallet: StripeWallet;
|
|
115
115
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -1064,6 +1064,8 @@ declare class Contract extends BaseEntity {
|
|
|
1064
1064
|
freelancerSignedAt: Date;
|
|
1065
1065
|
rejectedAt: Date;
|
|
1066
1066
|
rejectReason: string;
|
|
1067
|
+
isWorkContractSent: boolean;
|
|
1068
|
+
isEscrowDeposited: boolean;
|
|
1067
1069
|
}
|
|
1068
1070
|
|
|
1069
1071
|
declare enum JobLocationEnum {
|
|
@@ -1379,44 +1381,42 @@ declare class FreelancerResume extends BaseEntity {
|
|
|
1379
1381
|
processedResumeData: string;
|
|
1380
1382
|
}
|
|
1381
1383
|
|
|
1382
|
-
declare enum
|
|
1384
|
+
declare enum StripeWalletTransactionTypeEnum {
|
|
1383
1385
|
ADD_FUNDS = "ADD_FUNDS",
|
|
1384
1386
|
TRANSFER = "TRANSFER",
|
|
1385
1387
|
WITHDRAW = "WITHDRAW",
|
|
1386
1388
|
INVOICE_PAYMENT = "INVOICE_PAYMENT",
|
|
1387
1389
|
REFUND = "REFUND"
|
|
1388
1390
|
}
|
|
1389
|
-
declare enum
|
|
1391
|
+
declare enum StripeWalletTransactionStatusEnum {
|
|
1390
1392
|
PENDING = "PENDING",
|
|
1391
1393
|
SUCCESS = "SUCCESS",
|
|
1392
1394
|
FAILED = "FAILED"
|
|
1393
1395
|
}
|
|
1394
|
-
declare class
|
|
1396
|
+
declare class StripeWalletTransaction extends BaseEntity {
|
|
1395
1397
|
walletId: number;
|
|
1396
|
-
|
|
1398
|
+
stripeWallet: StripeWallet;
|
|
1397
1399
|
amount: number;
|
|
1398
1400
|
currency: string;
|
|
1399
|
-
type:
|
|
1400
|
-
status:
|
|
1401
|
+
type: StripeWalletTransactionTypeEnum;
|
|
1402
|
+
status: StripeWalletTransactionStatusEnum;
|
|
1401
1403
|
stripeReferenceId: string;
|
|
1402
1404
|
description: string;
|
|
1403
1405
|
}
|
|
1404
1406
|
|
|
1405
|
-
declare enum
|
|
1407
|
+
declare enum StripeWalletAccountTypeEnum {
|
|
1406
1408
|
BUSINESS = "BUSINESS",
|
|
1407
1409
|
FREELANCER = "FREELANCER"
|
|
1408
1410
|
}
|
|
1409
|
-
declare class
|
|
1411
|
+
declare class StripeWallet extends BaseEntity {
|
|
1410
1412
|
userId: number;
|
|
1411
1413
|
user: User;
|
|
1412
|
-
|
|
1413
|
-
email: string;
|
|
1414
|
-
accountType: AccountTypeEnum;
|
|
1414
|
+
accountType: StripeWalletAccountTypeEnum;
|
|
1415
1415
|
stripeAccountId: string;
|
|
1416
1416
|
stripeCustomerId: string;
|
|
1417
1417
|
walletBalance: number;
|
|
1418
1418
|
stripeMetadata: Record<string, any>;
|
|
1419
|
-
transactions:
|
|
1419
|
+
transactions: StripeWalletTransaction[];
|
|
1420
1420
|
}
|
|
1421
1421
|
|
|
1422
1422
|
declare enum AccountType {
|
|
@@ -1501,7 +1501,7 @@ declare class User extends BaseEntity {
|
|
|
1501
1501
|
adminUserRoles: AdminUserRole[];
|
|
1502
1502
|
clientContracts: Contract[];
|
|
1503
1503
|
freelancerContracts: Contract[];
|
|
1504
|
-
|
|
1504
|
+
stripeWallet: StripeWallet;
|
|
1505
1505
|
}
|
|
1506
1506
|
|
|
1507
1507
|
declare enum RatingTypeEnum {
|
|
@@ -2499,23 +2499,4 @@ declare class ZoomMeetingLog extends BaseEntity {
|
|
|
2499
2499
|
rawWebhookData: any;
|
|
2500
2500
|
}
|
|
2501
2501
|
|
|
2502
|
-
|
|
2503
|
-
PENDING = "PENDING",
|
|
2504
|
-
PAID = "PAID",
|
|
2505
|
-
FAILED = "FAILED",
|
|
2506
|
-
CANCELED = "CANCELED"
|
|
2507
|
-
}
|
|
2508
|
-
declare class Invoice extends BaseEntity {
|
|
2509
|
-
clientWalletId: number;
|
|
2510
|
-
clientWallet: WalletDetail;
|
|
2511
|
-
freelancerWalletId: number;
|
|
2512
|
-
freelancerWallet: WalletDetail;
|
|
2513
|
-
amount: number;
|
|
2514
|
-
currency: string;
|
|
2515
|
-
status: InvoiceStatusEnum;
|
|
2516
|
-
stripeInvoiceId: string;
|
|
2517
|
-
stripeInvoicePdf: string;
|
|
2518
|
-
description: string;
|
|
2519
|
-
}
|
|
2520
|
-
|
|
2521
|
-
export { ADMIN_FREELANCER_PATTERN, ADMIN_JOB_PATTERN, ADMIN_PERMISSION_PATTERN, ADMIN_ROLE_PATTERN, ASSESSMENT_QUESTION_PATTERN, AUTHENTICATION_PATTERN, AccountStatus, AccountType, AdminCreateJobInformationDto, AdminPermission, AdminRole, AdminRolePermission, AdminUpdateJobInformationDto, AdminUserRole, AiAssessmentStatusEnum, AiInterview, AiInterviewStatusEnum, AnswerTypeEnum, ApplicationStatusEnum, AssessmentAnswer, AssessmentStatusEnum, AssessmetQuestion, AssessmetQuestionOption, AttachPermissionsToRoleDto, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CALENDLY_PATTERN, CITY_PATTERN, CLIENT_ADMIN_PATTERNS, CLIENT_PROFILE_PATTERN, CMS_PATTERNS, COMPANY_MEMBERS_PATTERNS, COMPANY_ROLES_PATTERNS, CONTRACT_PATTERN, COUNTRY_PATTERN, CalendlyMeetingLog, CandidateType, CaseStudyDto, CategoryEmum, CategoryEmumDto, City, ClientChangePasswordDto, ClientCreateAccountDto, ClientFreelancerRecommendation, ClientProfileQuestionDto, Cms, Commission, CommissionTypeEnum, CompanyMemberRole, CompanyOnboardingStepEnum, CompanyProfile, CompanyRole, CompanyRolePermission, CompanySkill, Contract, ContractStatusEnum, ContractTypeEnum, Country, CreateAdminRoleDto, CreateClientDto, CreateClientHiringModeEnum, CreateClientHiringTypeEnum, CreateCmsDto, CreateCompanyMemberDto, CreateCompanyRoleDto, CreateF2FInterviewDto, CreateF2FInterviewRescheduleRequestDto, CreateFreelancerDto, CreateLeadDto, CreateQuestionDto, CreateRatingDto, CreateSubAdminDto, DocumentType, DocumentTypeEnum, DurationTypeEnum, EducationDto, EmploymentType, ExperienceDto, F2FInterview, F2FInterviewSchedule, F2F_INTERVIEW_PATTERN, F2fInterviewRescheduleRequest, F2fInterviewRescheduleRequestStatusEnum, F2fInterviewScheduleStatusEnum, F2fInterviewStatusEnum, FREELANCER_DECLARATION_PATTERN, FREELANCER_EDUCATION_PATTERN, FREELANCER_EXPERIENCE_PATTERN, FREELANCER_PROJECT_PATTERN, FREELANCER_SKILL_PATTERN, Feature, ForgotPasswordDto, FreelancerAssessment, FreelancerBankDetailsDto, FreelancerCaptureAiAssessmentStatusDto, FreelancerCaseStudy, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDeclaration, FreelancerDeclarationDto, FreelancerDevelopmentPreferenceDto, FreelancerEducation, FreelancerEducationDto, FreelancerExperience, FreelancerExperienceDto, FreelancerFramework, FreelancerInitiateAiAssessmentDto, FreelancerInitiateMcqAssessmentDto, FreelancerParseResumeDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerProject, FreelancerProjectDto, FreelancerResume, FreelancerSkill, FreelancerSkillDto, FreelancerSkipAiAssessmentDto, FreelancerTool, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAddRatingPayload, type IAttachPermissionsToClientResponse, type IAttachPermissionsToCompanyMemberResponse, type IAttachPermissionsToCompanyRoleResponse, type IAttachPermissionsToFreelancerResponse, type IAttachPermissionsToSubAdminResponse, type ICreateClientPayload, type ICreateClientResponse, type ICreateCompanyMemberPayload, type ICreateCompanyMemberResponse, type ICreateCompanyRolePayload, type ICreateCompanyRoleResponse, type ICreateFreelancerPayload, type ICreateFreelancerResponse, type ICreateRatingResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteClientResponse, type IDeleteCompanyMemberResponse, type IDeleteCompanyRoleResponse, type IDeleteFreelancerResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchClientsResponse, type IFetchCmsQuery, type IFetchCompanyMemberByIdQuery, type IFetchCompanyMemberByIdResponse, type IFetchCompanyMemberQuery, type IFetchCompanyMembersResponse, type IFetchCompanyRoleByIdQuery, type IFetchCompanyRoleByIdResponse, type IFetchCompanyRoleQuery, type IFetchCompanyRolesResponse, type IFetchFreelancersResponse, type IFetchPlanResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchRatingResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, INTERVIEW_INVITE_PATTERN, type IToggleCompanyMemberVisibilityPayload, type IToggleCompanyMemberVisibilityResponse, type IToggleCompanyRoleVisibilityPayload, type IToggleCompanyRoleVisibilityResponse, type IUpdateClientAccountStatusPayload, type IUpdateClientAccountStatusResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateClientResponse, type IUpdateCompanyMemberPayload, type IUpdateCompanyMemberResponse, type IUpdateCompanyRolePayload, type IUpdateCompanyRoleResponse, type IUpdateFreelancerPayload, type IUpdateFreelancerResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, Interview, InterviewInvite, InterviewInviteDto, InterviewInviteStatusEnum, InterviewQuestion, InterviewSkill, InterviewStatusEnum, Invoice, InvoiceStatusEnum, JOB_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobApplication, JobBasicInformationDto, JobDescriptionDto, JobFreelancerRecommendation, JobFreelancerRecommendationV2, JobIdParamDto, JobLocation, JobLocationEnum, JobLocationEnumDto, JobLocationEnums, JobRMQAdapter, JobRecommendation, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LEAD_PATTERN, Lead, LoginDto, LoginViaOtpDto, LoginViaOtpScopeEnum, LogoutDto, McqStatusEnum, ModeOfHire, ModeOfWork, ModeOfWorkDto, NOTIFICATION_PATTERN, NatureOfWork, NatureOfWorkDto, NotificationRMQAdapter, NotificationTCPAdapter, ONBOARDING_PATTERN, ONBOARDING_QUESTION_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PERMISSION_PATTERN, PLAN_PATTERN, PROFILE_PATTERN, Permission, Plan, ProjectDto, Provider, Question, QuestionFor, QuestionForEnum, RATING_PATTERN, RESUME_PARSER_PATTERN, Rating, RatingTypeEnum, RefreshDto, RefreshToken, ResetPasswordDto, ResetPasswordTokenValidationDto, STATE_PATTERN, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$3 as ScopeEnum, SelectedAnswerTypeEnum, SendGuestOtpDto, SendGuestOtpPurposeEnum, SendGuestOtpScopeEnum, SendLoginOtpDto, SendLoginOtpPurposeEnum, SendLoginOtpScopeEnum, SenseloafLog, SequenceGenerator, SetPasswordDto, Skill, State, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, ToggleCompanyMemberVisibilityDto, ToggleCompanyRoleVisibilityDto, Transaction, TransactionStatusEnum, TransactionTypeEnum, TypeOfEmploymentEnum, TypeOfEmploymentEnumDto, TypeOfEmploymentEnums, UpdateAdminRoleDto, UpdateClientAccountStatusDto, UpdateClientDto, UpdateClientHiringModeEnum, UpdateClientHiringTypeEnum, UpdateCmsDto, UpdateCompanyMemberDto, UpdateCompanyProfileDto, UpdateCompanyRoleDto, UpdateFreelancerDto, UpdateFreelancerProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter, VerifyGuestOtpDto, VerifyGuestOtpPurposeEnum, WalletDetail, ZoomMeetingLog };
|
|
2502
|
+
export { ADMIN_FREELANCER_PATTERN, ADMIN_JOB_PATTERN, ADMIN_PERMISSION_PATTERN, ADMIN_ROLE_PATTERN, ASSESSMENT_QUESTION_PATTERN, AUTHENTICATION_PATTERN, AccountStatus, AccountType, AdminCreateJobInformationDto, AdminPermission, AdminRole, AdminRolePermission, AdminUpdateJobInformationDto, AdminUserRole, AiAssessmentStatusEnum, AiInterview, AiInterviewStatusEnum, AnswerTypeEnum, ApplicationStatusEnum, AssessmentAnswer, AssessmentStatusEnum, AssessmetQuestion, AssessmetQuestionOption, AttachPermissionsToRoleDto, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CALENDLY_PATTERN, CITY_PATTERN, CLIENT_ADMIN_PATTERNS, CLIENT_PROFILE_PATTERN, CMS_PATTERNS, COMPANY_MEMBERS_PATTERNS, COMPANY_ROLES_PATTERNS, CONTRACT_PATTERN, COUNTRY_PATTERN, CalendlyMeetingLog, CandidateType, CaseStudyDto, CategoryEmum, CategoryEmumDto, City, ClientChangePasswordDto, ClientCreateAccountDto, ClientFreelancerRecommendation, ClientProfileQuestionDto, Cms, Commission, CommissionTypeEnum, CompanyMemberRole, CompanyOnboardingStepEnum, CompanyProfile, CompanyRole, CompanyRolePermission, CompanySkill, Contract, ContractStatusEnum, ContractTypeEnum, Country, CreateAdminRoleDto, CreateClientDto, CreateClientHiringModeEnum, CreateClientHiringTypeEnum, CreateCmsDto, CreateCompanyMemberDto, CreateCompanyRoleDto, CreateF2FInterviewDto, CreateF2FInterviewRescheduleRequestDto, CreateFreelancerDto, CreateLeadDto, CreateQuestionDto, CreateRatingDto, CreateSubAdminDto, DocumentType, DocumentTypeEnum, DurationTypeEnum, EducationDto, EmploymentType, ExperienceDto, F2FInterview, F2FInterviewSchedule, F2F_INTERVIEW_PATTERN, F2fInterviewRescheduleRequest, F2fInterviewRescheduleRequestStatusEnum, F2fInterviewScheduleStatusEnum, F2fInterviewStatusEnum, FREELANCER_DECLARATION_PATTERN, FREELANCER_EDUCATION_PATTERN, FREELANCER_EXPERIENCE_PATTERN, FREELANCER_PROJECT_PATTERN, FREELANCER_SKILL_PATTERN, Feature, ForgotPasswordDto, FreelancerAssessment, FreelancerBankDetailsDto, FreelancerCaptureAiAssessmentStatusDto, FreelancerCaseStudy, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDeclaration, FreelancerDeclarationDto, FreelancerDevelopmentPreferenceDto, FreelancerEducation, FreelancerEducationDto, FreelancerExperience, FreelancerExperienceDto, FreelancerFramework, FreelancerInitiateAiAssessmentDto, FreelancerInitiateMcqAssessmentDto, FreelancerParseResumeDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerProject, FreelancerProjectDto, FreelancerResume, FreelancerSkill, FreelancerSkillDto, FreelancerSkipAiAssessmentDto, FreelancerTool, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAddRatingPayload, type IAttachPermissionsToClientResponse, type IAttachPermissionsToCompanyMemberResponse, type IAttachPermissionsToCompanyRoleResponse, type IAttachPermissionsToFreelancerResponse, type IAttachPermissionsToSubAdminResponse, type ICreateClientPayload, type ICreateClientResponse, type ICreateCompanyMemberPayload, type ICreateCompanyMemberResponse, type ICreateCompanyRolePayload, type ICreateCompanyRoleResponse, type ICreateFreelancerPayload, type ICreateFreelancerResponse, type ICreateRatingResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteClientResponse, type IDeleteCompanyMemberResponse, type IDeleteCompanyRoleResponse, type IDeleteFreelancerResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchClientsResponse, type IFetchCmsQuery, type IFetchCompanyMemberByIdQuery, type IFetchCompanyMemberByIdResponse, type IFetchCompanyMemberQuery, type IFetchCompanyMembersResponse, type IFetchCompanyRoleByIdQuery, type IFetchCompanyRoleByIdResponse, type IFetchCompanyRoleQuery, type IFetchCompanyRolesResponse, type IFetchFreelancersResponse, type IFetchPlanResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchRatingResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, INTERVIEW_INVITE_PATTERN, type IToggleCompanyMemberVisibilityPayload, type IToggleCompanyMemberVisibilityResponse, type IToggleCompanyRoleVisibilityPayload, type IToggleCompanyRoleVisibilityResponse, type IUpdateClientAccountStatusPayload, type IUpdateClientAccountStatusResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateClientResponse, type IUpdateCompanyMemberPayload, type IUpdateCompanyMemberResponse, type IUpdateCompanyRolePayload, type IUpdateCompanyRoleResponse, type IUpdateFreelancerPayload, type IUpdateFreelancerResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, Interview, InterviewInvite, InterviewInviteDto, InterviewInviteStatusEnum, InterviewQuestion, InterviewSkill, InterviewStatusEnum, JOB_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobApplication, JobBasicInformationDto, JobDescriptionDto, JobFreelancerRecommendation, JobFreelancerRecommendationV2, JobIdParamDto, JobLocation, JobLocationEnum, JobLocationEnumDto, JobLocationEnums, JobRMQAdapter, JobRecommendation, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LEAD_PATTERN, Lead, LoginDto, LoginViaOtpDto, LoginViaOtpScopeEnum, LogoutDto, McqStatusEnum, ModeOfHire, ModeOfWork, ModeOfWorkDto, NOTIFICATION_PATTERN, NatureOfWork, NatureOfWorkDto, NotificationRMQAdapter, NotificationTCPAdapter, ONBOARDING_PATTERN, ONBOARDING_QUESTION_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PERMISSION_PATTERN, PLAN_PATTERN, PROFILE_PATTERN, Permission, Plan, ProjectDto, Provider, Question, QuestionFor, QuestionForEnum, RATING_PATTERN, RESUME_PARSER_PATTERN, Rating, RatingTypeEnum, RefreshDto, RefreshToken, ResetPasswordDto, ResetPasswordTokenValidationDto, STATE_PATTERN, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$3 as ScopeEnum, SelectedAnswerTypeEnum, SendGuestOtpDto, SendGuestOtpPurposeEnum, SendGuestOtpScopeEnum, SendLoginOtpDto, SendLoginOtpPurposeEnum, SendLoginOtpScopeEnum, SenseloafLog, SequenceGenerator, SetPasswordDto, Skill, State, Step, StripeWallet, StripeWalletTransaction, StripeWalletTransactionStatusEnum, StripeWalletTransactionTypeEnum, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, ToggleCompanyMemberVisibilityDto, ToggleCompanyRoleVisibilityDto, TypeOfEmploymentEnum, TypeOfEmploymentEnumDto, TypeOfEmploymentEnums, UpdateAdminRoleDto, UpdateClientAccountStatusDto, UpdateClientDto, UpdateClientHiringModeEnum, UpdateClientHiringTypeEnum, UpdateCmsDto, UpdateCompanyMemberDto, UpdateCompanyProfileDto, UpdateCompanyRoleDto, UpdateFreelancerDto, UpdateFreelancerProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter, VerifyGuestOtpDto, VerifyGuestOtpPurposeEnum, ZoomMeetingLog };
|
package/dist/index.d.ts
CHANGED
|
@@ -1064,6 +1064,8 @@ declare class Contract extends BaseEntity {
|
|
|
1064
1064
|
freelancerSignedAt: Date;
|
|
1065
1065
|
rejectedAt: Date;
|
|
1066
1066
|
rejectReason: string;
|
|
1067
|
+
isWorkContractSent: boolean;
|
|
1068
|
+
isEscrowDeposited: boolean;
|
|
1067
1069
|
}
|
|
1068
1070
|
|
|
1069
1071
|
declare enum JobLocationEnum {
|
|
@@ -1379,44 +1381,42 @@ declare class FreelancerResume extends BaseEntity {
|
|
|
1379
1381
|
processedResumeData: string;
|
|
1380
1382
|
}
|
|
1381
1383
|
|
|
1382
|
-
declare enum
|
|
1384
|
+
declare enum StripeWalletTransactionTypeEnum {
|
|
1383
1385
|
ADD_FUNDS = "ADD_FUNDS",
|
|
1384
1386
|
TRANSFER = "TRANSFER",
|
|
1385
1387
|
WITHDRAW = "WITHDRAW",
|
|
1386
1388
|
INVOICE_PAYMENT = "INVOICE_PAYMENT",
|
|
1387
1389
|
REFUND = "REFUND"
|
|
1388
1390
|
}
|
|
1389
|
-
declare enum
|
|
1391
|
+
declare enum StripeWalletTransactionStatusEnum {
|
|
1390
1392
|
PENDING = "PENDING",
|
|
1391
1393
|
SUCCESS = "SUCCESS",
|
|
1392
1394
|
FAILED = "FAILED"
|
|
1393
1395
|
}
|
|
1394
|
-
declare class
|
|
1396
|
+
declare class StripeWalletTransaction extends BaseEntity {
|
|
1395
1397
|
walletId: number;
|
|
1396
|
-
|
|
1398
|
+
stripeWallet: StripeWallet;
|
|
1397
1399
|
amount: number;
|
|
1398
1400
|
currency: string;
|
|
1399
|
-
type:
|
|
1400
|
-
status:
|
|
1401
|
+
type: StripeWalletTransactionTypeEnum;
|
|
1402
|
+
status: StripeWalletTransactionStatusEnum;
|
|
1401
1403
|
stripeReferenceId: string;
|
|
1402
1404
|
description: string;
|
|
1403
1405
|
}
|
|
1404
1406
|
|
|
1405
|
-
declare enum
|
|
1407
|
+
declare enum StripeWalletAccountTypeEnum {
|
|
1406
1408
|
BUSINESS = "BUSINESS",
|
|
1407
1409
|
FREELANCER = "FREELANCER"
|
|
1408
1410
|
}
|
|
1409
|
-
declare class
|
|
1411
|
+
declare class StripeWallet extends BaseEntity {
|
|
1410
1412
|
userId: number;
|
|
1411
1413
|
user: User;
|
|
1412
|
-
|
|
1413
|
-
email: string;
|
|
1414
|
-
accountType: AccountTypeEnum;
|
|
1414
|
+
accountType: StripeWalletAccountTypeEnum;
|
|
1415
1415
|
stripeAccountId: string;
|
|
1416
1416
|
stripeCustomerId: string;
|
|
1417
1417
|
walletBalance: number;
|
|
1418
1418
|
stripeMetadata: Record<string, any>;
|
|
1419
|
-
transactions:
|
|
1419
|
+
transactions: StripeWalletTransaction[];
|
|
1420
1420
|
}
|
|
1421
1421
|
|
|
1422
1422
|
declare enum AccountType {
|
|
@@ -1501,7 +1501,7 @@ declare class User extends BaseEntity {
|
|
|
1501
1501
|
adminUserRoles: AdminUserRole[];
|
|
1502
1502
|
clientContracts: Contract[];
|
|
1503
1503
|
freelancerContracts: Contract[];
|
|
1504
|
-
|
|
1504
|
+
stripeWallet: StripeWallet;
|
|
1505
1505
|
}
|
|
1506
1506
|
|
|
1507
1507
|
declare enum RatingTypeEnum {
|
|
@@ -2499,23 +2499,4 @@ declare class ZoomMeetingLog extends BaseEntity {
|
|
|
2499
2499
|
rawWebhookData: any;
|
|
2500
2500
|
}
|
|
2501
2501
|
|
|
2502
|
-
|
|
2503
|
-
PENDING = "PENDING",
|
|
2504
|
-
PAID = "PAID",
|
|
2505
|
-
FAILED = "FAILED",
|
|
2506
|
-
CANCELED = "CANCELED"
|
|
2507
|
-
}
|
|
2508
|
-
declare class Invoice extends BaseEntity {
|
|
2509
|
-
clientWalletId: number;
|
|
2510
|
-
clientWallet: WalletDetail;
|
|
2511
|
-
freelancerWalletId: number;
|
|
2512
|
-
freelancerWallet: WalletDetail;
|
|
2513
|
-
amount: number;
|
|
2514
|
-
currency: string;
|
|
2515
|
-
status: InvoiceStatusEnum;
|
|
2516
|
-
stripeInvoiceId: string;
|
|
2517
|
-
stripeInvoicePdf: string;
|
|
2518
|
-
description: string;
|
|
2519
|
-
}
|
|
2520
|
-
|
|
2521
|
-
export { ADMIN_FREELANCER_PATTERN, ADMIN_JOB_PATTERN, ADMIN_PERMISSION_PATTERN, ADMIN_ROLE_PATTERN, ASSESSMENT_QUESTION_PATTERN, AUTHENTICATION_PATTERN, AccountStatus, AccountType, AdminCreateJobInformationDto, AdminPermission, AdminRole, AdminRolePermission, AdminUpdateJobInformationDto, AdminUserRole, AiAssessmentStatusEnum, AiInterview, AiInterviewStatusEnum, AnswerTypeEnum, ApplicationStatusEnum, AssessmentAnswer, AssessmentStatusEnum, AssessmetQuestion, AssessmetQuestionOption, AttachPermissionsToRoleDto, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CALENDLY_PATTERN, CITY_PATTERN, CLIENT_ADMIN_PATTERNS, CLIENT_PROFILE_PATTERN, CMS_PATTERNS, COMPANY_MEMBERS_PATTERNS, COMPANY_ROLES_PATTERNS, CONTRACT_PATTERN, COUNTRY_PATTERN, CalendlyMeetingLog, CandidateType, CaseStudyDto, CategoryEmum, CategoryEmumDto, City, ClientChangePasswordDto, ClientCreateAccountDto, ClientFreelancerRecommendation, ClientProfileQuestionDto, Cms, Commission, CommissionTypeEnum, CompanyMemberRole, CompanyOnboardingStepEnum, CompanyProfile, CompanyRole, CompanyRolePermission, CompanySkill, Contract, ContractStatusEnum, ContractTypeEnum, Country, CreateAdminRoleDto, CreateClientDto, CreateClientHiringModeEnum, CreateClientHiringTypeEnum, CreateCmsDto, CreateCompanyMemberDto, CreateCompanyRoleDto, CreateF2FInterviewDto, CreateF2FInterviewRescheduleRequestDto, CreateFreelancerDto, CreateLeadDto, CreateQuestionDto, CreateRatingDto, CreateSubAdminDto, DocumentType, DocumentTypeEnum, DurationTypeEnum, EducationDto, EmploymentType, ExperienceDto, F2FInterview, F2FInterviewSchedule, F2F_INTERVIEW_PATTERN, F2fInterviewRescheduleRequest, F2fInterviewRescheduleRequestStatusEnum, F2fInterviewScheduleStatusEnum, F2fInterviewStatusEnum, FREELANCER_DECLARATION_PATTERN, FREELANCER_EDUCATION_PATTERN, FREELANCER_EXPERIENCE_PATTERN, FREELANCER_PROJECT_PATTERN, FREELANCER_SKILL_PATTERN, Feature, ForgotPasswordDto, FreelancerAssessment, FreelancerBankDetailsDto, FreelancerCaptureAiAssessmentStatusDto, FreelancerCaseStudy, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDeclaration, FreelancerDeclarationDto, FreelancerDevelopmentPreferenceDto, FreelancerEducation, FreelancerEducationDto, FreelancerExperience, FreelancerExperienceDto, FreelancerFramework, FreelancerInitiateAiAssessmentDto, FreelancerInitiateMcqAssessmentDto, FreelancerParseResumeDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerProject, FreelancerProjectDto, FreelancerResume, FreelancerSkill, FreelancerSkillDto, FreelancerSkipAiAssessmentDto, FreelancerTool, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAddRatingPayload, type IAttachPermissionsToClientResponse, type IAttachPermissionsToCompanyMemberResponse, type IAttachPermissionsToCompanyRoleResponse, type IAttachPermissionsToFreelancerResponse, type IAttachPermissionsToSubAdminResponse, type ICreateClientPayload, type ICreateClientResponse, type ICreateCompanyMemberPayload, type ICreateCompanyMemberResponse, type ICreateCompanyRolePayload, type ICreateCompanyRoleResponse, type ICreateFreelancerPayload, type ICreateFreelancerResponse, type ICreateRatingResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteClientResponse, type IDeleteCompanyMemberResponse, type IDeleteCompanyRoleResponse, type IDeleteFreelancerResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchClientsResponse, type IFetchCmsQuery, type IFetchCompanyMemberByIdQuery, type IFetchCompanyMemberByIdResponse, type IFetchCompanyMemberQuery, type IFetchCompanyMembersResponse, type IFetchCompanyRoleByIdQuery, type IFetchCompanyRoleByIdResponse, type IFetchCompanyRoleQuery, type IFetchCompanyRolesResponse, type IFetchFreelancersResponse, type IFetchPlanResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchRatingResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, INTERVIEW_INVITE_PATTERN, type IToggleCompanyMemberVisibilityPayload, type IToggleCompanyMemberVisibilityResponse, type IToggleCompanyRoleVisibilityPayload, type IToggleCompanyRoleVisibilityResponse, type IUpdateClientAccountStatusPayload, type IUpdateClientAccountStatusResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateClientResponse, type IUpdateCompanyMemberPayload, type IUpdateCompanyMemberResponse, type IUpdateCompanyRolePayload, type IUpdateCompanyRoleResponse, type IUpdateFreelancerPayload, type IUpdateFreelancerResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, Interview, InterviewInvite, InterviewInviteDto, InterviewInviteStatusEnum, InterviewQuestion, InterviewSkill, InterviewStatusEnum, Invoice, InvoiceStatusEnum, JOB_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobApplication, JobBasicInformationDto, JobDescriptionDto, JobFreelancerRecommendation, JobFreelancerRecommendationV2, JobIdParamDto, JobLocation, JobLocationEnum, JobLocationEnumDto, JobLocationEnums, JobRMQAdapter, JobRecommendation, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LEAD_PATTERN, Lead, LoginDto, LoginViaOtpDto, LoginViaOtpScopeEnum, LogoutDto, McqStatusEnum, ModeOfHire, ModeOfWork, ModeOfWorkDto, NOTIFICATION_PATTERN, NatureOfWork, NatureOfWorkDto, NotificationRMQAdapter, NotificationTCPAdapter, ONBOARDING_PATTERN, ONBOARDING_QUESTION_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PERMISSION_PATTERN, PLAN_PATTERN, PROFILE_PATTERN, Permission, Plan, ProjectDto, Provider, Question, QuestionFor, QuestionForEnum, RATING_PATTERN, RESUME_PARSER_PATTERN, Rating, RatingTypeEnum, RefreshDto, RefreshToken, ResetPasswordDto, ResetPasswordTokenValidationDto, STATE_PATTERN, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$3 as ScopeEnum, SelectedAnswerTypeEnum, SendGuestOtpDto, SendGuestOtpPurposeEnum, SendGuestOtpScopeEnum, SendLoginOtpDto, SendLoginOtpPurposeEnum, SendLoginOtpScopeEnum, SenseloafLog, SequenceGenerator, SetPasswordDto, Skill, State, Step, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, ToggleCompanyMemberVisibilityDto, ToggleCompanyRoleVisibilityDto, Transaction, TransactionStatusEnum, TransactionTypeEnum, TypeOfEmploymentEnum, TypeOfEmploymentEnumDto, TypeOfEmploymentEnums, UpdateAdminRoleDto, UpdateClientAccountStatusDto, UpdateClientDto, UpdateClientHiringModeEnum, UpdateClientHiringTypeEnum, UpdateCmsDto, UpdateCompanyMemberDto, UpdateCompanyProfileDto, UpdateCompanyRoleDto, UpdateFreelancerDto, UpdateFreelancerProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter, VerifyGuestOtpDto, VerifyGuestOtpPurposeEnum, WalletDetail, ZoomMeetingLog };
|
|
2502
|
+
export { ADMIN_FREELANCER_PATTERN, ADMIN_JOB_PATTERN, ADMIN_PERMISSION_PATTERN, ADMIN_ROLE_PATTERN, ASSESSMENT_QUESTION_PATTERN, AUTHENTICATION_PATTERN, AccountStatus, AccountType, AdminCreateJobInformationDto, AdminPermission, AdminRole, AdminRolePermission, AdminUpdateJobInformationDto, AdminUserRole, AiAssessmentStatusEnum, AiInterview, AiInterviewStatusEnum, AnswerTypeEnum, ApplicationStatusEnum, AssessmentAnswer, AssessmentStatusEnum, AssessmetQuestion, AssessmetQuestionOption, AttachPermissionsToRoleDto, BANK_PATTERN, BankAccountScope, BankAccountScopeEnum, BankAccountTypeEnum, BankDetail, BaseEntity, CALENDLY_PATTERN, CITY_PATTERN, CLIENT_ADMIN_PATTERNS, CLIENT_PROFILE_PATTERN, CMS_PATTERNS, COMPANY_MEMBERS_PATTERNS, COMPANY_ROLES_PATTERNS, CONTRACT_PATTERN, COUNTRY_PATTERN, CalendlyMeetingLog, CandidateType, CaseStudyDto, CategoryEmum, CategoryEmumDto, City, ClientChangePasswordDto, ClientCreateAccountDto, ClientFreelancerRecommendation, ClientProfileQuestionDto, Cms, Commission, CommissionTypeEnum, CompanyMemberRole, CompanyOnboardingStepEnum, CompanyProfile, CompanyRole, CompanyRolePermission, CompanySkill, Contract, ContractStatusEnum, ContractTypeEnum, Country, CreateAdminRoleDto, CreateClientDto, CreateClientHiringModeEnum, CreateClientHiringTypeEnum, CreateCmsDto, CreateCompanyMemberDto, CreateCompanyRoleDto, CreateF2FInterviewDto, CreateF2FInterviewRescheduleRequestDto, CreateFreelancerDto, CreateLeadDto, CreateQuestionDto, CreateRatingDto, CreateSubAdminDto, DocumentType, DocumentTypeEnum, DurationTypeEnum, EducationDto, EmploymentType, ExperienceDto, F2FInterview, F2FInterviewSchedule, F2F_INTERVIEW_PATTERN, F2fInterviewRescheduleRequest, F2fInterviewRescheduleRequestStatusEnum, F2fInterviewScheduleStatusEnum, F2fInterviewStatusEnum, FREELANCER_DECLARATION_PATTERN, FREELANCER_EDUCATION_PATTERN, FREELANCER_EXPERIENCE_PATTERN, FREELANCER_PROJECT_PATTERN, FREELANCER_SKILL_PATTERN, Feature, ForgotPasswordDto, FreelancerAssessment, FreelancerBankDetailsDto, FreelancerCaptureAiAssessmentStatusDto, FreelancerCaseStudy, FreelancerChangePasswordDto, FreelancerCreateAccountDto, FreelancerDeclaration, FreelancerDeclarationDto, FreelancerDevelopmentPreferenceDto, FreelancerEducation, FreelancerEducationDto, FreelancerExperience, FreelancerExperienceDto, FreelancerFramework, FreelancerInitiateAiAssessmentDto, FreelancerInitiateMcqAssessmentDto, FreelancerParseResumeDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerProject, FreelancerProjectDto, FreelancerResume, FreelancerSkill, FreelancerSkillDto, FreelancerSkipAiAssessmentDto, FreelancerTool, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAddRatingPayload, type IAttachPermissionsToClientResponse, type IAttachPermissionsToCompanyMemberResponse, type IAttachPermissionsToCompanyRoleResponse, type IAttachPermissionsToFreelancerResponse, type IAttachPermissionsToSubAdminResponse, type ICreateClientPayload, type ICreateClientResponse, type ICreateCompanyMemberPayload, type ICreateCompanyMemberResponse, type ICreateCompanyRolePayload, type ICreateCompanyRoleResponse, type ICreateFreelancerPayload, type ICreateFreelancerResponse, type ICreateRatingResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteClientResponse, type IDeleteCompanyMemberResponse, type IDeleteCompanyRoleResponse, type IDeleteFreelancerResponse, type IDeleteSubAdminResponse, type IFetchClientProfileQuery, type IFetchClientProfileResponse, type IFetchClientsResponse, type IFetchCmsQuery, type IFetchCompanyMemberByIdQuery, type IFetchCompanyMemberByIdResponse, type IFetchCompanyMemberQuery, type IFetchCompanyMembersResponse, type IFetchCompanyRoleByIdQuery, type IFetchCompanyRoleByIdResponse, type IFetchCompanyRoleQuery, type IFetchCompanyRolesResponse, type IFetchFreelancersResponse, type IFetchPlanResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchRatingResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, INTERVIEW_INVITE_PATTERN, type IToggleCompanyMemberVisibilityPayload, type IToggleCompanyMemberVisibilityResponse, type IToggleCompanyRoleVisibilityPayload, type IToggleCompanyRoleVisibilityResponse, type IUpdateClientAccountStatusPayload, type IUpdateClientAccountStatusResponse, type IUpdateClientLogoPayload, type IUpdateClientLogoResponse, type IUpdateClientPasswordPayload, type IUpdateClientPayload, type IUpdateClientProfilePayload, type IUpdateClientProfileResponse, type IUpdateClientResponse, type IUpdateCompanyMemberPayload, type IUpdateCompanyMemberResponse, type IUpdateCompanyRolePayload, type IUpdateCompanyRoleResponse, type IUpdateFreelancerPayload, type IUpdateFreelancerResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, Interview, InterviewInvite, InterviewInviteDto, InterviewInviteStatusEnum, InterviewQuestion, InterviewSkill, InterviewStatusEnum, JOB_PATTERN, JOB_ROLE_PATTERN, Job, JobAdditionalCommentDto, JobApplication, JobBasicInformationDto, JobDescriptionDto, JobFreelancerRecommendation, JobFreelancerRecommendationV2, JobIdParamDto, JobLocation, JobLocationEnum, JobLocationEnumDto, JobLocationEnums, JobRMQAdapter, JobRecommendation, JobRoles, JobSkill, JobStatus, JobStatusDto, JobStatusEnum, JobTCPAdapter, KindOfHire, LEAD_PATTERN, Lead, LoginDto, LoginViaOtpDto, LoginViaOtpScopeEnum, LogoutDto, McqStatusEnum, ModeOfHire, ModeOfWork, ModeOfWorkDto, NOTIFICATION_PATTERN, NatureOfWork, NatureOfWorkDto, NotificationRMQAdapter, NotificationTCPAdapter, ONBOARDING_PATTERN, ONBOARDING_QUESTION_PATTERN, OTP_PATTERN, OnboardingStepEnum, Otp, PERMISSION_PATTERN, PLAN_PATTERN, PROFILE_PATTERN, Permission, Plan, ProjectDto, Provider, Question, QuestionFor, QuestionForEnum, RATING_PATTERN, RESUME_PARSER_PATTERN, Rating, RatingTypeEnum, RefreshDto, RefreshToken, ResetPasswordDto, ResetPasswordTokenValidationDto, STATE_PATTERN, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$3 as ScopeEnum, SelectedAnswerTypeEnum, SendGuestOtpDto, SendGuestOtpPurposeEnum, SendGuestOtpScopeEnum, SendLoginOtpDto, SendLoginOtpPurposeEnum, SendLoginOtpScopeEnum, SenseloafLog, SequenceGenerator, SetPasswordDto, Skill, State, Step, StripeWallet, StripeWalletTransaction, StripeWalletTransactionStatusEnum, StripeWalletTransactionTypeEnum, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, ToggleCompanyMemberVisibilityDto, ToggleCompanyRoleVisibilityDto, TypeOfEmploymentEnum, TypeOfEmploymentEnumDto, TypeOfEmploymentEnums, UpdateAdminRoleDto, UpdateClientAccountStatusDto, UpdateClientDto, UpdateClientHiringModeEnum, UpdateClientHiringTypeEnum, UpdateCmsDto, UpdateCompanyMemberDto, UpdateCompanyProfileDto, UpdateCompanyRoleDto, UpdateFreelancerDto, UpdateFreelancerProfileDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter, VerifyGuestOtpDto, VerifyGuestOtpPurposeEnum, ZoomMeetingLog };
|
package/dist/index.js
CHANGED
|
@@ -160,8 +160,6 @@ __export(index_exports, {
|
|
|
160
160
|
InterviewQuestion: () => InterviewQuestion,
|
|
161
161
|
InterviewSkill: () => InterviewSkill,
|
|
162
162
|
InterviewStatusEnum: () => InterviewStatusEnum,
|
|
163
|
-
Invoice: () => Invoice,
|
|
164
|
-
InvoiceStatusEnum: () => InvoiceStatusEnum,
|
|
165
163
|
JOB_PATTERN: () => JOB_PATTERN,
|
|
166
164
|
JOB_ROLE_PATTERN: () => JOB_ROLE_PATTERN,
|
|
167
165
|
Job: () => Job,
|
|
@@ -240,14 +238,15 @@ __export(index_exports, {
|
|
|
240
238
|
Skill: () => Skill,
|
|
241
239
|
State: () => State,
|
|
242
240
|
Step: () => Step,
|
|
241
|
+
StripeWallet: () => StripeWallet,
|
|
242
|
+
StripeWalletTransaction: () => StripeWalletTransaction,
|
|
243
|
+
StripeWalletTransactionStatusEnum: () => StripeWalletTransactionStatusEnum,
|
|
244
|
+
StripeWalletTransactionTypeEnum: () => StripeWalletTransactionTypeEnum,
|
|
243
245
|
SystemPreference: () => SystemPreference,
|
|
244
246
|
SystemPreferenceDto: () => SystemPreferenceDto,
|
|
245
247
|
SystemPreferenceKey: () => SystemPreferenceKey,
|
|
246
248
|
ToggleCompanyMemberVisibilityDto: () => ToggleCompanyMemberVisibilityDto,
|
|
247
249
|
ToggleCompanyRoleVisibilityDto: () => ToggleCompanyRoleVisibilityDto,
|
|
248
|
-
Transaction: () => Transaction,
|
|
249
|
-
TransactionStatusEnum: () => TransactionStatusEnum,
|
|
250
|
-
TransactionTypeEnum: () => TransactionTypeEnum,
|
|
251
250
|
TypeOfEmploymentEnum: () => TypeOfEmploymentEnum,
|
|
252
251
|
TypeOfEmploymentEnumDto: () => TypeOfEmploymentEnumDto,
|
|
253
252
|
TypeOfEmploymentEnums: () => TypeOfEmploymentEnums,
|
|
@@ -269,7 +268,6 @@ __export(index_exports, {
|
|
|
269
268
|
UserTCPAdapter: () => UserTCPAdapter,
|
|
270
269
|
VerifyGuestOtpDto: () => VerifyGuestOtpDto,
|
|
271
270
|
VerifyGuestOtpPurposeEnum: () => VerifyGuestOtpPurposeEnum,
|
|
272
|
-
WalletDetail: () => WalletDetail,
|
|
273
271
|
ZoomMeetingLog: () => ZoomMeetingLog
|
|
274
272
|
});
|
|
275
273
|
module.exports = __toCommonJS(index_exports);
|
|
@@ -3055,6 +3053,12 @@ __decorateClass([
|
|
|
3055
3053
|
__decorateClass([
|
|
3056
3054
|
(0, import_typeorm21.Column)({ name: "reject_reason", type: "varchar", nullable: true })
|
|
3057
3055
|
], Contract.prototype, "rejectReason", 2);
|
|
3056
|
+
__decorateClass([
|
|
3057
|
+
(0, import_typeorm21.Column)({ name: "is_work_contract_sent", type: "boolean", default: false })
|
|
3058
|
+
], Contract.prototype, "isWorkContractSent", 2);
|
|
3059
|
+
__decorateClass([
|
|
3060
|
+
(0, import_typeorm21.Column)({ name: "is_escrow_deposited", type: "boolean", default: false })
|
|
3061
|
+
], Contract.prototype, "isEscrowDeposited", 2);
|
|
3058
3062
|
Contract = __decorateClass([
|
|
3059
3063
|
(0, import_typeorm21.Entity)("contracts")
|
|
3060
3064
|
], Contract);
|
|
@@ -4074,100 +4078,94 @@ FreelancerResume = __decorateClass([
|
|
|
4074
4078
|
(0, import_typeorm46.Entity)("freelancer_resumes")
|
|
4075
4079
|
], FreelancerResume);
|
|
4076
4080
|
|
|
4077
|
-
// src/entities/wallet
|
|
4081
|
+
// src/entities/stripe-wallet.entity.ts
|
|
4078
4082
|
var import_typeorm48 = require("typeorm");
|
|
4079
4083
|
|
|
4080
|
-
// src/entities/transaction.entity.ts
|
|
4084
|
+
// src/entities/stripe-wallet-transaction.entity.ts
|
|
4081
4085
|
var import_typeorm47 = require("typeorm");
|
|
4082
|
-
var
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
return
|
|
4089
|
-
})(
|
|
4090
|
-
var
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
|
|
4094
|
-
return
|
|
4095
|
-
})(
|
|
4096
|
-
var
|
|
4086
|
+
var StripeWalletTransactionTypeEnum = /* @__PURE__ */ ((StripeWalletTransactionTypeEnum2) => {
|
|
4087
|
+
StripeWalletTransactionTypeEnum2["ADD_FUNDS"] = "ADD_FUNDS";
|
|
4088
|
+
StripeWalletTransactionTypeEnum2["TRANSFER"] = "TRANSFER";
|
|
4089
|
+
StripeWalletTransactionTypeEnum2["WITHDRAW"] = "WITHDRAW";
|
|
4090
|
+
StripeWalletTransactionTypeEnum2["INVOICE_PAYMENT"] = "INVOICE_PAYMENT";
|
|
4091
|
+
StripeWalletTransactionTypeEnum2["REFUND"] = "REFUND";
|
|
4092
|
+
return StripeWalletTransactionTypeEnum2;
|
|
4093
|
+
})(StripeWalletTransactionTypeEnum || {});
|
|
4094
|
+
var StripeWalletTransactionStatusEnum = /* @__PURE__ */ ((StripeWalletTransactionStatusEnum2) => {
|
|
4095
|
+
StripeWalletTransactionStatusEnum2["PENDING"] = "PENDING";
|
|
4096
|
+
StripeWalletTransactionStatusEnum2["SUCCESS"] = "SUCCESS";
|
|
4097
|
+
StripeWalletTransactionStatusEnum2["FAILED"] = "FAILED";
|
|
4098
|
+
return StripeWalletTransactionStatusEnum2;
|
|
4099
|
+
})(StripeWalletTransactionStatusEnum || {});
|
|
4100
|
+
var StripeWalletTransaction = class extends BaseEntity {
|
|
4097
4101
|
};
|
|
4098
4102
|
__decorateClass([
|
|
4099
4103
|
(0, import_typeorm47.Column)({ name: "wallet_id", type: "integer", nullable: true }),
|
|
4100
4104
|
(0, import_typeorm47.Index)()
|
|
4101
|
-
],
|
|
4105
|
+
], StripeWalletTransaction.prototype, "walletId", 2);
|
|
4102
4106
|
__decorateClass([
|
|
4103
|
-
(0, import_typeorm47.ManyToOne)(() =>
|
|
4107
|
+
(0, import_typeorm47.ManyToOne)(() => StripeWallet, (stripeWallet) => stripeWallet.transactions),
|
|
4104
4108
|
(0, import_typeorm47.JoinColumn)({ name: "wallet_id" })
|
|
4105
|
-
],
|
|
4109
|
+
], StripeWalletTransaction.prototype, "stripeWallet", 2);
|
|
4106
4110
|
__decorateClass([
|
|
4107
4111
|
(0, import_typeorm47.Column)({ name: "amount", type: "bigint", nullable: true })
|
|
4108
|
-
],
|
|
4112
|
+
], StripeWalletTransaction.prototype, "amount", 2);
|
|
4109
4113
|
__decorateClass([
|
|
4110
4114
|
(0, import_typeorm47.Column)({ name: "currency", type: "varchar", nullable: true })
|
|
4111
|
-
],
|
|
4115
|
+
], StripeWalletTransaction.prototype, "currency", 2);
|
|
4112
4116
|
__decorateClass([
|
|
4113
|
-
(0, import_typeorm47.Column)({ name: "type", type: "enum", enum:
|
|
4114
|
-
],
|
|
4117
|
+
(0, import_typeorm47.Column)({ name: "type", type: "enum", enum: StripeWalletTransactionTypeEnum })
|
|
4118
|
+
], StripeWalletTransaction.prototype, "type", 2);
|
|
4115
4119
|
__decorateClass([
|
|
4116
|
-
(0, import_typeorm47.Column)({ name: "status", type: "enum", enum:
|
|
4117
|
-
],
|
|
4120
|
+
(0, import_typeorm47.Column)({ name: "status", type: "enum", enum: StripeWalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
|
|
4121
|
+
], StripeWalletTransaction.prototype, "status", 2);
|
|
4118
4122
|
__decorateClass([
|
|
4119
4123
|
(0, import_typeorm47.Column)({ name: "stripe_reference_id", type: "varchar", nullable: true })
|
|
4120
|
-
],
|
|
4124
|
+
], StripeWalletTransaction.prototype, "stripeReferenceId", 2);
|
|
4121
4125
|
__decorateClass([
|
|
4122
4126
|
(0, import_typeorm47.Column)({ name: "description", type: "text", nullable: true })
|
|
4123
|
-
],
|
|
4124
|
-
|
|
4125
|
-
(0, import_typeorm47.Entity)("
|
|
4126
|
-
],
|
|
4127
|
+
], StripeWalletTransaction.prototype, "description", 2);
|
|
4128
|
+
StripeWalletTransaction = __decorateClass([
|
|
4129
|
+
(0, import_typeorm47.Entity)("stripe_wallet_transactions")
|
|
4130
|
+
], StripeWalletTransaction);
|
|
4127
4131
|
|
|
4128
|
-
// src/entities/wallet
|
|
4129
|
-
var
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
return
|
|
4133
|
-
})(
|
|
4134
|
-
var
|
|
4132
|
+
// src/entities/stripe-wallet.entity.ts
|
|
4133
|
+
var StripeWalletAccountTypeEnum = /* @__PURE__ */ ((StripeWalletAccountTypeEnum2) => {
|
|
4134
|
+
StripeWalletAccountTypeEnum2["BUSINESS"] = "BUSINESS";
|
|
4135
|
+
StripeWalletAccountTypeEnum2["FREELANCER"] = "FREELANCER";
|
|
4136
|
+
return StripeWalletAccountTypeEnum2;
|
|
4137
|
+
})(StripeWalletAccountTypeEnum || {});
|
|
4138
|
+
var StripeWallet = class extends BaseEntity {
|
|
4135
4139
|
};
|
|
4136
4140
|
__decorateClass([
|
|
4137
4141
|
(0, import_typeorm48.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
4138
4142
|
(0, import_typeorm48.Index)()
|
|
4139
|
-
],
|
|
4143
|
+
], StripeWallet.prototype, "userId", 2);
|
|
4140
4144
|
__decorateClass([
|
|
4141
|
-
(0, import_typeorm48.OneToOne)(() => User, (user) => user.
|
|
4145
|
+
(0, import_typeorm48.OneToOne)(() => User, (user) => user.stripeWallet),
|
|
4142
4146
|
(0, import_typeorm48.JoinColumn)({ name: "user_id" })
|
|
4143
|
-
],
|
|
4144
|
-
__decorateClass([
|
|
4145
|
-
(0, import_typeorm48.Column)({ name: "name", type: "varchar", nullable: true })
|
|
4146
|
-
], WalletDetail.prototype, "name", 2);
|
|
4147
|
-
__decorateClass([
|
|
4148
|
-
(0, import_typeorm48.Column)({ name: "email", type: "varchar", nullable: true })
|
|
4149
|
-
], WalletDetail.prototype, "email", 2);
|
|
4147
|
+
], StripeWallet.prototype, "user", 2);
|
|
4150
4148
|
__decorateClass([
|
|
4151
|
-
(0, import_typeorm48.Column)({ name: "account_type", type: "enum", enum:
|
|
4152
|
-
],
|
|
4149
|
+
(0, import_typeorm48.Column)({ name: "account_type", type: "enum", enum: StripeWalletAccountTypeEnum, nullable: true })
|
|
4150
|
+
], StripeWallet.prototype, "accountType", 2);
|
|
4153
4151
|
__decorateClass([
|
|
4154
4152
|
(0, import_typeorm48.Column)({ name: "stripe_account_id", type: "varchar", nullable: true })
|
|
4155
|
-
],
|
|
4153
|
+
], StripeWallet.prototype, "stripeAccountId", 2);
|
|
4156
4154
|
__decorateClass([
|
|
4157
4155
|
(0, import_typeorm48.Column)({ name: "stripe_customer_id", type: "varchar", nullable: true })
|
|
4158
|
-
],
|
|
4156
|
+
], StripeWallet.prototype, "stripeCustomerId", 2);
|
|
4159
4157
|
__decorateClass([
|
|
4160
4158
|
(0, import_typeorm48.Column)({ name: "wallet_balance", type: "bigint", default: 0 })
|
|
4161
|
-
],
|
|
4159
|
+
], StripeWallet.prototype, "walletBalance", 2);
|
|
4162
4160
|
__decorateClass([
|
|
4163
4161
|
(0, import_typeorm48.Column)({ name: "stripe_metadata", type: "jsonb", nullable: true })
|
|
4164
|
-
],
|
|
4162
|
+
], StripeWallet.prototype, "stripeMetadata", 2);
|
|
4165
4163
|
__decorateClass([
|
|
4166
|
-
(0, import_typeorm48.OneToMany)(() =>
|
|
4167
|
-
],
|
|
4168
|
-
|
|
4169
|
-
(0, import_typeorm48.Entity)("
|
|
4170
|
-
],
|
|
4164
|
+
(0, import_typeorm48.OneToMany)(() => StripeWalletTransaction, (stripeWalletTransaction) => stripeWalletTransaction.stripeWallet)
|
|
4165
|
+
], StripeWallet.prototype, "transactions", 2);
|
|
4166
|
+
StripeWallet = __decorateClass([
|
|
4167
|
+
(0, import_typeorm48.Entity)("stripe_wallets")
|
|
4168
|
+
], StripeWallet);
|
|
4171
4169
|
|
|
4172
4170
|
// src/entities/user.entity.ts
|
|
4173
4171
|
var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
@@ -4445,8 +4443,8 @@ __decorateClass([
|
|
|
4445
4443
|
(0, import_typeorm49.OneToMany)(() => Contract, (contract) => contract.freelancer)
|
|
4446
4444
|
], User.prototype, "freelancerContracts", 2);
|
|
4447
4445
|
__decorateClass([
|
|
4448
|
-
(0, import_typeorm49.OneToOne)(() =>
|
|
4449
|
-
], User.prototype, "
|
|
4446
|
+
(0, import_typeorm49.OneToOne)(() => StripeWallet, (stripeWallet) => stripeWallet.user)
|
|
4447
|
+
], User.prototype, "stripeWallet", 2);
|
|
4450
4448
|
User = __decorateClass([
|
|
4451
4449
|
(0, import_typeorm49.Entity)("users")
|
|
4452
4450
|
], User);
|
|
@@ -6441,55 +6439,6 @@ __decorateClass([
|
|
|
6441
6439
|
ZoomMeetingLog = __decorateClass([
|
|
6442
6440
|
(0, import_typeorm64.Entity)("zoom_meeting_logs")
|
|
6443
6441
|
], ZoomMeetingLog);
|
|
6444
|
-
|
|
6445
|
-
// src/entities/invoices.entity.ts
|
|
6446
|
-
var import_typeorm65 = require("typeorm");
|
|
6447
|
-
var InvoiceStatusEnum = /* @__PURE__ */ ((InvoiceStatusEnum2) => {
|
|
6448
|
-
InvoiceStatusEnum2["PENDING"] = "PENDING";
|
|
6449
|
-
InvoiceStatusEnum2["PAID"] = "PAID";
|
|
6450
|
-
InvoiceStatusEnum2["FAILED"] = "FAILED";
|
|
6451
|
-
InvoiceStatusEnum2["CANCELED"] = "CANCELED";
|
|
6452
|
-
return InvoiceStatusEnum2;
|
|
6453
|
-
})(InvoiceStatusEnum || {});
|
|
6454
|
-
var Invoice = class extends BaseEntity {
|
|
6455
|
-
};
|
|
6456
|
-
__decorateClass([
|
|
6457
|
-
(0, import_typeorm65.Column)({ name: "client_wallet_id", type: "integer", nullable: true }),
|
|
6458
|
-
(0, import_typeorm65.Index)()
|
|
6459
|
-
], Invoice.prototype, "clientWalletId", 2);
|
|
6460
|
-
__decorateClass([
|
|
6461
|
-
(0, import_typeorm65.ManyToOne)(() => WalletDetail),
|
|
6462
|
-
(0, import_typeorm65.JoinColumn)({ name: "client_wallet_id" })
|
|
6463
|
-
], Invoice.prototype, "clientWallet", 2);
|
|
6464
|
-
__decorateClass([
|
|
6465
|
-
(0, import_typeorm65.Column)({ name: "freelancer_wallet_id", type: "integer", nullable: true }),
|
|
6466
|
-
(0, import_typeorm65.Index)()
|
|
6467
|
-
], Invoice.prototype, "freelancerWalletId", 2);
|
|
6468
|
-
__decorateClass([
|
|
6469
|
-
(0, import_typeorm65.ManyToOne)(() => WalletDetail),
|
|
6470
|
-
(0, import_typeorm65.JoinColumn)({ name: "freelancer_wallet_id" })
|
|
6471
|
-
], Invoice.prototype, "freelancerWallet", 2);
|
|
6472
|
-
__decorateClass([
|
|
6473
|
-
(0, import_typeorm65.Column)({ name: "amount", type: "bigint", nullable: false })
|
|
6474
|
-
], Invoice.prototype, "amount", 2);
|
|
6475
|
-
__decorateClass([
|
|
6476
|
-
(0, import_typeorm65.Column)({ name: "currency", type: "varchar", default: "usd" })
|
|
6477
|
-
], Invoice.prototype, "currency", 2);
|
|
6478
|
-
__decorateClass([
|
|
6479
|
-
(0, import_typeorm65.Column)({ name: "status", type: "enum", enum: InvoiceStatusEnum, default: "PENDING" /* PENDING */ })
|
|
6480
|
-
], Invoice.prototype, "status", 2);
|
|
6481
|
-
__decorateClass([
|
|
6482
|
-
(0, import_typeorm65.Column)({ name: "stripe_invoice_id", type: "varchar", nullable: true })
|
|
6483
|
-
], Invoice.prototype, "stripeInvoiceId", 2);
|
|
6484
|
-
__decorateClass([
|
|
6485
|
-
(0, import_typeorm65.Column)({ name: "stripe_invoice_pdf", type: "varchar", nullable: true })
|
|
6486
|
-
], Invoice.prototype, "stripeInvoicePdf", 2);
|
|
6487
|
-
__decorateClass([
|
|
6488
|
-
(0, import_typeorm65.Column)({ name: "description", type: "text", nullable: true })
|
|
6489
|
-
], Invoice.prototype, "description", 2);
|
|
6490
|
-
Invoice = __decorateClass([
|
|
6491
|
-
(0, import_typeorm65.Entity)("invoices")
|
|
6492
|
-
], Invoice);
|
|
6493
6442
|
// Annotate the CommonJS export names for ESM import in node:
|
|
6494
6443
|
0 && (module.exports = {
|
|
6495
6444
|
ADMIN_FREELANCER_PATTERN,
|
|
@@ -6625,8 +6574,6 @@ Invoice = __decorateClass([
|
|
|
6625
6574
|
InterviewQuestion,
|
|
6626
6575
|
InterviewSkill,
|
|
6627
6576
|
InterviewStatusEnum,
|
|
6628
|
-
Invoice,
|
|
6629
|
-
InvoiceStatusEnum,
|
|
6630
6577
|
JOB_PATTERN,
|
|
6631
6578
|
JOB_ROLE_PATTERN,
|
|
6632
6579
|
Job,
|
|
@@ -6705,14 +6652,15 @@ Invoice = __decorateClass([
|
|
|
6705
6652
|
Skill,
|
|
6706
6653
|
State,
|
|
6707
6654
|
Step,
|
|
6655
|
+
StripeWallet,
|
|
6656
|
+
StripeWalletTransaction,
|
|
6657
|
+
StripeWalletTransactionStatusEnum,
|
|
6658
|
+
StripeWalletTransactionTypeEnum,
|
|
6708
6659
|
SystemPreference,
|
|
6709
6660
|
SystemPreferenceDto,
|
|
6710
6661
|
SystemPreferenceKey,
|
|
6711
6662
|
ToggleCompanyMemberVisibilityDto,
|
|
6712
6663
|
ToggleCompanyRoleVisibilityDto,
|
|
6713
|
-
Transaction,
|
|
6714
|
-
TransactionStatusEnum,
|
|
6715
|
-
TransactionTypeEnum,
|
|
6716
6664
|
TypeOfEmploymentEnum,
|
|
6717
6665
|
TypeOfEmploymentEnumDto,
|
|
6718
6666
|
TypeOfEmploymentEnums,
|
|
@@ -6734,6 +6682,5 @@ Invoice = __decorateClass([
|
|
|
6734
6682
|
UserTCPAdapter,
|
|
6735
6683
|
VerifyGuestOtpDto,
|
|
6736
6684
|
VerifyGuestOtpPurposeEnum,
|
|
6737
|
-
WalletDetail,
|
|
6738
6685
|
ZoomMeetingLog
|
|
6739
6686
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -3002,6 +3002,12 @@ __decorateClass([
|
|
|
3002
3002
|
__decorateClass([
|
|
3003
3003
|
Column21({ name: "reject_reason", type: "varchar", nullable: true })
|
|
3004
3004
|
], Contract.prototype, "rejectReason", 2);
|
|
3005
|
+
__decorateClass([
|
|
3006
|
+
Column21({ name: "is_work_contract_sent", type: "boolean", default: false })
|
|
3007
|
+
], Contract.prototype, "isWorkContractSent", 2);
|
|
3008
|
+
__decorateClass([
|
|
3009
|
+
Column21({ name: "is_escrow_deposited", type: "boolean", default: false })
|
|
3010
|
+
], Contract.prototype, "isEscrowDeposited", 2);
|
|
3005
3011
|
Contract = __decorateClass([
|
|
3006
3012
|
Entity20("contracts")
|
|
3007
3013
|
], Contract);
|
|
@@ -4119,100 +4125,94 @@ FreelancerResume = __decorateClass([
|
|
|
4119
4125
|
Entity45("freelancer_resumes")
|
|
4120
4126
|
], FreelancerResume);
|
|
4121
4127
|
|
|
4122
|
-
// src/entities/wallet
|
|
4128
|
+
// src/entities/stripe-wallet.entity.ts
|
|
4123
4129
|
import { Entity as Entity47, Column as Column48, Index as Index40, JoinColumn as JoinColumn42, OneToOne as OneToOne2, OneToMany as OneToMany16 } from "typeorm";
|
|
4124
4130
|
|
|
4125
|
-
// src/entities/transaction.entity.ts
|
|
4131
|
+
// src/entities/stripe-wallet-transaction.entity.ts
|
|
4126
4132
|
import { Entity as Entity46, Column as Column47, Index as Index39, ManyToOne as ManyToOne41, JoinColumn as JoinColumn41 } from "typeorm";
|
|
4127
|
-
var
|
|
4128
|
-
|
|
4129
|
-
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
return
|
|
4134
|
-
})(
|
|
4135
|
-
var
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
return
|
|
4140
|
-
})(
|
|
4141
|
-
var
|
|
4133
|
+
var StripeWalletTransactionTypeEnum = /* @__PURE__ */ ((StripeWalletTransactionTypeEnum2) => {
|
|
4134
|
+
StripeWalletTransactionTypeEnum2["ADD_FUNDS"] = "ADD_FUNDS";
|
|
4135
|
+
StripeWalletTransactionTypeEnum2["TRANSFER"] = "TRANSFER";
|
|
4136
|
+
StripeWalletTransactionTypeEnum2["WITHDRAW"] = "WITHDRAW";
|
|
4137
|
+
StripeWalletTransactionTypeEnum2["INVOICE_PAYMENT"] = "INVOICE_PAYMENT";
|
|
4138
|
+
StripeWalletTransactionTypeEnum2["REFUND"] = "REFUND";
|
|
4139
|
+
return StripeWalletTransactionTypeEnum2;
|
|
4140
|
+
})(StripeWalletTransactionTypeEnum || {});
|
|
4141
|
+
var StripeWalletTransactionStatusEnum = /* @__PURE__ */ ((StripeWalletTransactionStatusEnum2) => {
|
|
4142
|
+
StripeWalletTransactionStatusEnum2["PENDING"] = "PENDING";
|
|
4143
|
+
StripeWalletTransactionStatusEnum2["SUCCESS"] = "SUCCESS";
|
|
4144
|
+
StripeWalletTransactionStatusEnum2["FAILED"] = "FAILED";
|
|
4145
|
+
return StripeWalletTransactionStatusEnum2;
|
|
4146
|
+
})(StripeWalletTransactionStatusEnum || {});
|
|
4147
|
+
var StripeWalletTransaction = class extends BaseEntity {
|
|
4142
4148
|
};
|
|
4143
4149
|
__decorateClass([
|
|
4144
4150
|
Column47({ name: "wallet_id", type: "integer", nullable: true }),
|
|
4145
4151
|
Index39()
|
|
4146
|
-
],
|
|
4152
|
+
], StripeWalletTransaction.prototype, "walletId", 2);
|
|
4147
4153
|
__decorateClass([
|
|
4148
|
-
ManyToOne41(() =>
|
|
4154
|
+
ManyToOne41(() => StripeWallet, (stripeWallet) => stripeWallet.transactions),
|
|
4149
4155
|
JoinColumn41({ name: "wallet_id" })
|
|
4150
|
-
],
|
|
4156
|
+
], StripeWalletTransaction.prototype, "stripeWallet", 2);
|
|
4151
4157
|
__decorateClass([
|
|
4152
4158
|
Column47({ name: "amount", type: "bigint", nullable: true })
|
|
4153
|
-
],
|
|
4159
|
+
], StripeWalletTransaction.prototype, "amount", 2);
|
|
4154
4160
|
__decorateClass([
|
|
4155
4161
|
Column47({ name: "currency", type: "varchar", nullable: true })
|
|
4156
|
-
],
|
|
4162
|
+
], StripeWalletTransaction.prototype, "currency", 2);
|
|
4157
4163
|
__decorateClass([
|
|
4158
|
-
Column47({ name: "type", type: "enum", enum:
|
|
4159
|
-
],
|
|
4164
|
+
Column47({ name: "type", type: "enum", enum: StripeWalletTransactionTypeEnum })
|
|
4165
|
+
], StripeWalletTransaction.prototype, "type", 2);
|
|
4160
4166
|
__decorateClass([
|
|
4161
|
-
Column47({ name: "status", type: "enum", enum:
|
|
4162
|
-
],
|
|
4167
|
+
Column47({ name: "status", type: "enum", enum: StripeWalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
|
|
4168
|
+
], StripeWalletTransaction.prototype, "status", 2);
|
|
4163
4169
|
__decorateClass([
|
|
4164
4170
|
Column47({ name: "stripe_reference_id", type: "varchar", nullable: true })
|
|
4165
|
-
],
|
|
4171
|
+
], StripeWalletTransaction.prototype, "stripeReferenceId", 2);
|
|
4166
4172
|
__decorateClass([
|
|
4167
4173
|
Column47({ name: "description", type: "text", nullable: true })
|
|
4168
|
-
],
|
|
4169
|
-
|
|
4170
|
-
Entity46("
|
|
4171
|
-
],
|
|
4174
|
+
], StripeWalletTransaction.prototype, "description", 2);
|
|
4175
|
+
StripeWalletTransaction = __decorateClass([
|
|
4176
|
+
Entity46("stripe_wallet_transactions")
|
|
4177
|
+
], StripeWalletTransaction);
|
|
4172
4178
|
|
|
4173
|
-
// src/entities/wallet
|
|
4174
|
-
var
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
return
|
|
4178
|
-
})(
|
|
4179
|
-
var
|
|
4179
|
+
// src/entities/stripe-wallet.entity.ts
|
|
4180
|
+
var StripeWalletAccountTypeEnum = /* @__PURE__ */ ((StripeWalletAccountTypeEnum2) => {
|
|
4181
|
+
StripeWalletAccountTypeEnum2["BUSINESS"] = "BUSINESS";
|
|
4182
|
+
StripeWalletAccountTypeEnum2["FREELANCER"] = "FREELANCER";
|
|
4183
|
+
return StripeWalletAccountTypeEnum2;
|
|
4184
|
+
})(StripeWalletAccountTypeEnum || {});
|
|
4185
|
+
var StripeWallet = class extends BaseEntity {
|
|
4180
4186
|
};
|
|
4181
4187
|
__decorateClass([
|
|
4182
4188
|
Column48({ name: "user_id", type: "integer", nullable: true }),
|
|
4183
4189
|
Index40()
|
|
4184
|
-
],
|
|
4190
|
+
], StripeWallet.prototype, "userId", 2);
|
|
4185
4191
|
__decorateClass([
|
|
4186
|
-
OneToOne2(() => User, (user) => user.
|
|
4192
|
+
OneToOne2(() => User, (user) => user.stripeWallet),
|
|
4187
4193
|
JoinColumn42({ name: "user_id" })
|
|
4188
|
-
],
|
|
4189
|
-
__decorateClass([
|
|
4190
|
-
Column48({ name: "name", type: "varchar", nullable: true })
|
|
4191
|
-
], WalletDetail.prototype, "name", 2);
|
|
4192
|
-
__decorateClass([
|
|
4193
|
-
Column48({ name: "email", type: "varchar", nullable: true })
|
|
4194
|
-
], WalletDetail.prototype, "email", 2);
|
|
4194
|
+
], StripeWallet.prototype, "user", 2);
|
|
4195
4195
|
__decorateClass([
|
|
4196
|
-
Column48({ name: "account_type", type: "enum", enum:
|
|
4197
|
-
],
|
|
4196
|
+
Column48({ name: "account_type", type: "enum", enum: StripeWalletAccountTypeEnum, nullable: true })
|
|
4197
|
+
], StripeWallet.prototype, "accountType", 2);
|
|
4198
4198
|
__decorateClass([
|
|
4199
4199
|
Column48({ name: "stripe_account_id", type: "varchar", nullable: true })
|
|
4200
|
-
],
|
|
4200
|
+
], StripeWallet.prototype, "stripeAccountId", 2);
|
|
4201
4201
|
__decorateClass([
|
|
4202
4202
|
Column48({ name: "stripe_customer_id", type: "varchar", nullable: true })
|
|
4203
|
-
],
|
|
4203
|
+
], StripeWallet.prototype, "stripeCustomerId", 2);
|
|
4204
4204
|
__decorateClass([
|
|
4205
4205
|
Column48({ name: "wallet_balance", type: "bigint", default: 0 })
|
|
4206
|
-
],
|
|
4206
|
+
], StripeWallet.prototype, "walletBalance", 2);
|
|
4207
4207
|
__decorateClass([
|
|
4208
4208
|
Column48({ name: "stripe_metadata", type: "jsonb", nullable: true })
|
|
4209
|
-
],
|
|
4209
|
+
], StripeWallet.prototype, "stripeMetadata", 2);
|
|
4210
4210
|
__decorateClass([
|
|
4211
|
-
OneToMany16(() =>
|
|
4212
|
-
],
|
|
4213
|
-
|
|
4214
|
-
Entity47("
|
|
4215
|
-
],
|
|
4211
|
+
OneToMany16(() => StripeWalletTransaction, (stripeWalletTransaction) => stripeWalletTransaction.stripeWallet)
|
|
4212
|
+
], StripeWallet.prototype, "transactions", 2);
|
|
4213
|
+
StripeWallet = __decorateClass([
|
|
4214
|
+
Entity47("stripe_wallets")
|
|
4215
|
+
], StripeWallet);
|
|
4216
4216
|
|
|
4217
4217
|
// src/entities/user.entity.ts
|
|
4218
4218
|
var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
@@ -4490,8 +4490,8 @@ __decorateClass([
|
|
|
4490
4490
|
OneToMany17(() => Contract, (contract) => contract.freelancer)
|
|
4491
4491
|
], User.prototype, "freelancerContracts", 2);
|
|
4492
4492
|
__decorateClass([
|
|
4493
|
-
OneToOne3(() =>
|
|
4494
|
-
], User.prototype, "
|
|
4493
|
+
OneToOne3(() => StripeWallet, (stripeWallet) => stripeWallet.user)
|
|
4494
|
+
], User.prototype, "stripeWallet", 2);
|
|
4495
4495
|
User = __decorateClass([
|
|
4496
4496
|
Entity48("users")
|
|
4497
4497
|
], User);
|
|
@@ -6592,55 +6592,6 @@ __decorateClass([
|
|
|
6592
6592
|
ZoomMeetingLog = __decorateClass([
|
|
6593
6593
|
Entity60("zoom_meeting_logs")
|
|
6594
6594
|
], ZoomMeetingLog);
|
|
6595
|
-
|
|
6596
|
-
// src/entities/invoices.entity.ts
|
|
6597
|
-
import { Entity as Entity61, Column as Column62, Index as Index45, ManyToOne as ManyToOne44, JoinColumn as JoinColumn45 } from "typeorm";
|
|
6598
|
-
var InvoiceStatusEnum = /* @__PURE__ */ ((InvoiceStatusEnum2) => {
|
|
6599
|
-
InvoiceStatusEnum2["PENDING"] = "PENDING";
|
|
6600
|
-
InvoiceStatusEnum2["PAID"] = "PAID";
|
|
6601
|
-
InvoiceStatusEnum2["FAILED"] = "FAILED";
|
|
6602
|
-
InvoiceStatusEnum2["CANCELED"] = "CANCELED";
|
|
6603
|
-
return InvoiceStatusEnum2;
|
|
6604
|
-
})(InvoiceStatusEnum || {});
|
|
6605
|
-
var Invoice = class extends BaseEntity {
|
|
6606
|
-
};
|
|
6607
|
-
__decorateClass([
|
|
6608
|
-
Column62({ name: "client_wallet_id", type: "integer", nullable: true }),
|
|
6609
|
-
Index45()
|
|
6610
|
-
], Invoice.prototype, "clientWalletId", 2);
|
|
6611
|
-
__decorateClass([
|
|
6612
|
-
ManyToOne44(() => WalletDetail),
|
|
6613
|
-
JoinColumn45({ name: "client_wallet_id" })
|
|
6614
|
-
], Invoice.prototype, "clientWallet", 2);
|
|
6615
|
-
__decorateClass([
|
|
6616
|
-
Column62({ name: "freelancer_wallet_id", type: "integer", nullable: true }),
|
|
6617
|
-
Index45()
|
|
6618
|
-
], Invoice.prototype, "freelancerWalletId", 2);
|
|
6619
|
-
__decorateClass([
|
|
6620
|
-
ManyToOne44(() => WalletDetail),
|
|
6621
|
-
JoinColumn45({ name: "freelancer_wallet_id" })
|
|
6622
|
-
], Invoice.prototype, "freelancerWallet", 2);
|
|
6623
|
-
__decorateClass([
|
|
6624
|
-
Column62({ name: "amount", type: "bigint", nullable: false })
|
|
6625
|
-
], Invoice.prototype, "amount", 2);
|
|
6626
|
-
__decorateClass([
|
|
6627
|
-
Column62({ name: "currency", type: "varchar", default: "usd" })
|
|
6628
|
-
], Invoice.prototype, "currency", 2);
|
|
6629
|
-
__decorateClass([
|
|
6630
|
-
Column62({ name: "status", type: "enum", enum: InvoiceStatusEnum, default: "PENDING" /* PENDING */ })
|
|
6631
|
-
], Invoice.prototype, "status", 2);
|
|
6632
|
-
__decorateClass([
|
|
6633
|
-
Column62({ name: "stripe_invoice_id", type: "varchar", nullable: true })
|
|
6634
|
-
], Invoice.prototype, "stripeInvoiceId", 2);
|
|
6635
|
-
__decorateClass([
|
|
6636
|
-
Column62({ name: "stripe_invoice_pdf", type: "varchar", nullable: true })
|
|
6637
|
-
], Invoice.prototype, "stripeInvoicePdf", 2);
|
|
6638
|
-
__decorateClass([
|
|
6639
|
-
Column62({ name: "description", type: "text", nullable: true })
|
|
6640
|
-
], Invoice.prototype, "description", 2);
|
|
6641
|
-
Invoice = __decorateClass([
|
|
6642
|
-
Entity61("invoices")
|
|
6643
|
-
], Invoice);
|
|
6644
6595
|
export {
|
|
6645
6596
|
ADMIN_FREELANCER_PATTERN,
|
|
6646
6597
|
ADMIN_JOB_PATTERN,
|
|
@@ -6775,8 +6726,6 @@ export {
|
|
|
6775
6726
|
InterviewQuestion,
|
|
6776
6727
|
InterviewSkill,
|
|
6777
6728
|
InterviewStatusEnum,
|
|
6778
|
-
Invoice,
|
|
6779
|
-
InvoiceStatusEnum,
|
|
6780
6729
|
JOB_PATTERN,
|
|
6781
6730
|
JOB_ROLE_PATTERN,
|
|
6782
6731
|
Job,
|
|
@@ -6855,14 +6804,15 @@ export {
|
|
|
6855
6804
|
Skill,
|
|
6856
6805
|
State,
|
|
6857
6806
|
Step,
|
|
6807
|
+
StripeWallet,
|
|
6808
|
+
StripeWalletTransaction,
|
|
6809
|
+
StripeWalletTransactionStatusEnum,
|
|
6810
|
+
StripeWalletTransactionTypeEnum,
|
|
6858
6811
|
SystemPreference,
|
|
6859
6812
|
SystemPreferenceDto,
|
|
6860
6813
|
SystemPreferenceKey,
|
|
6861
6814
|
ToggleCompanyMemberVisibilityDto,
|
|
6862
6815
|
ToggleCompanyRoleVisibilityDto,
|
|
6863
|
-
Transaction,
|
|
6864
|
-
TransactionStatusEnum,
|
|
6865
|
-
TransactionTypeEnum,
|
|
6866
6816
|
TypeOfEmploymentEnum,
|
|
6867
6817
|
TypeOfEmploymentEnumDto,
|
|
6868
6818
|
TypeOfEmploymentEnums,
|
|
@@ -6884,6 +6834,5 @@ export {
|
|
|
6884
6834
|
UserTCPAdapter,
|
|
6885
6835
|
VerifyGuestOtpDto,
|
|
6886
6836
|
VerifyGuestOtpPurposeEnum,
|
|
6887
|
-
WalletDetail,
|
|
6888
6837
|
ZoomMeetingLog
|
|
6889
6838
|
};
|