@experts_hub/shared 1.0.371 → 1.0.372

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.
@@ -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-details.entity';
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 { WalletDetail } from "./wallet-details.entity";
3
- export declare enum TransactionTypeEnum {
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 TransactionStatusEnum {
10
+ export declare enum StripeWalletTransactionStatusEnum {
11
11
  PENDING = "PENDING",
12
12
  SUCCESS = "SUCCESS",
13
13
  FAILED = "FAILED"
14
14
  }
15
- export declare class Transaction extends BaseEntity {
15
+ export declare class StripeWalletTransaction extends BaseEntity {
16
16
  walletId: number;
17
- walletDetail: WalletDetail;
17
+ stripeWallet: StripeWallet;
18
18
  amount: number;
19
19
  currency: string;
20
- type: TransactionTypeEnum;
21
- status: TransactionStatusEnum;
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 { Transaction } from "./transaction.entity";
4
- declare enum AccountTypeEnum {
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 WalletDetail extends BaseEntity {
8
+ export declare class StripeWallet extends BaseEntity {
9
9
  userId: number;
10
10
  user: User;
11
- name: string;
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: Transaction[];
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 { WalletDetail } from "./wallet-details.entity";
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
- walletDetail: WalletDetail;
114
+ stripeWallet: StripeWallet;
115
115
  }
package/dist/index.d.mts CHANGED
@@ -1379,44 +1379,42 @@ declare class FreelancerResume extends BaseEntity {
1379
1379
  processedResumeData: string;
1380
1380
  }
1381
1381
 
1382
- declare enum TransactionTypeEnum {
1382
+ declare enum StripeWalletTransactionTypeEnum {
1383
1383
  ADD_FUNDS = "ADD_FUNDS",
1384
1384
  TRANSFER = "TRANSFER",
1385
1385
  WITHDRAW = "WITHDRAW",
1386
1386
  INVOICE_PAYMENT = "INVOICE_PAYMENT",
1387
1387
  REFUND = "REFUND"
1388
1388
  }
1389
- declare enum TransactionStatusEnum {
1389
+ declare enum StripeWalletTransactionStatusEnum {
1390
1390
  PENDING = "PENDING",
1391
1391
  SUCCESS = "SUCCESS",
1392
1392
  FAILED = "FAILED"
1393
1393
  }
1394
- declare class Transaction extends BaseEntity {
1394
+ declare class StripeWalletTransaction extends BaseEntity {
1395
1395
  walletId: number;
1396
- walletDetail: WalletDetail;
1396
+ stripeWallet: StripeWallet;
1397
1397
  amount: number;
1398
1398
  currency: string;
1399
- type: TransactionTypeEnum;
1400
- status: TransactionStatusEnum;
1399
+ type: StripeWalletTransactionTypeEnum;
1400
+ status: StripeWalletTransactionStatusEnum;
1401
1401
  stripeReferenceId: string;
1402
1402
  description: string;
1403
1403
  }
1404
1404
 
1405
- declare enum AccountTypeEnum {
1405
+ declare enum StripeWalletAccountTypeEnum {
1406
1406
  BUSINESS = "BUSINESS",
1407
1407
  FREELANCER = "FREELANCER"
1408
1408
  }
1409
- declare class WalletDetail extends BaseEntity {
1409
+ declare class StripeWallet extends BaseEntity {
1410
1410
  userId: number;
1411
1411
  user: User;
1412
- name: string;
1413
- email: string;
1414
- accountType: AccountTypeEnum;
1412
+ accountType: StripeWalletAccountTypeEnum;
1415
1413
  stripeAccountId: string;
1416
1414
  stripeCustomerId: string;
1417
1415
  walletBalance: number;
1418
1416
  stripeMetadata: Record<string, any>;
1419
- transactions: Transaction[];
1417
+ transactions: StripeWalletTransaction[];
1420
1418
  }
1421
1419
 
1422
1420
  declare enum AccountType {
@@ -1501,7 +1499,7 @@ declare class User extends BaseEntity {
1501
1499
  adminUserRoles: AdminUserRole[];
1502
1500
  clientContracts: Contract[];
1503
1501
  freelancerContracts: Contract[];
1504
- walletDetail: WalletDetail;
1502
+ stripeWallet: StripeWallet;
1505
1503
  }
1506
1504
 
1507
1505
  declare enum RatingTypeEnum {
@@ -2499,23 +2497,4 @@ declare class ZoomMeetingLog extends BaseEntity {
2499
2497
  rawWebhookData: any;
2500
2498
  }
2501
2499
 
2502
- declare enum InvoiceStatusEnum {
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 };
2500
+ 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
@@ -1379,44 +1379,42 @@ declare class FreelancerResume extends BaseEntity {
1379
1379
  processedResumeData: string;
1380
1380
  }
1381
1381
 
1382
- declare enum TransactionTypeEnum {
1382
+ declare enum StripeWalletTransactionTypeEnum {
1383
1383
  ADD_FUNDS = "ADD_FUNDS",
1384
1384
  TRANSFER = "TRANSFER",
1385
1385
  WITHDRAW = "WITHDRAW",
1386
1386
  INVOICE_PAYMENT = "INVOICE_PAYMENT",
1387
1387
  REFUND = "REFUND"
1388
1388
  }
1389
- declare enum TransactionStatusEnum {
1389
+ declare enum StripeWalletTransactionStatusEnum {
1390
1390
  PENDING = "PENDING",
1391
1391
  SUCCESS = "SUCCESS",
1392
1392
  FAILED = "FAILED"
1393
1393
  }
1394
- declare class Transaction extends BaseEntity {
1394
+ declare class StripeWalletTransaction extends BaseEntity {
1395
1395
  walletId: number;
1396
- walletDetail: WalletDetail;
1396
+ stripeWallet: StripeWallet;
1397
1397
  amount: number;
1398
1398
  currency: string;
1399
- type: TransactionTypeEnum;
1400
- status: TransactionStatusEnum;
1399
+ type: StripeWalletTransactionTypeEnum;
1400
+ status: StripeWalletTransactionStatusEnum;
1401
1401
  stripeReferenceId: string;
1402
1402
  description: string;
1403
1403
  }
1404
1404
 
1405
- declare enum AccountTypeEnum {
1405
+ declare enum StripeWalletAccountTypeEnum {
1406
1406
  BUSINESS = "BUSINESS",
1407
1407
  FREELANCER = "FREELANCER"
1408
1408
  }
1409
- declare class WalletDetail extends BaseEntity {
1409
+ declare class StripeWallet extends BaseEntity {
1410
1410
  userId: number;
1411
1411
  user: User;
1412
- name: string;
1413
- email: string;
1414
- accountType: AccountTypeEnum;
1412
+ accountType: StripeWalletAccountTypeEnum;
1415
1413
  stripeAccountId: string;
1416
1414
  stripeCustomerId: string;
1417
1415
  walletBalance: number;
1418
1416
  stripeMetadata: Record<string, any>;
1419
- transactions: Transaction[];
1417
+ transactions: StripeWalletTransaction[];
1420
1418
  }
1421
1419
 
1422
1420
  declare enum AccountType {
@@ -1501,7 +1499,7 @@ declare class User extends BaseEntity {
1501
1499
  adminUserRoles: AdminUserRole[];
1502
1500
  clientContracts: Contract[];
1503
1501
  freelancerContracts: Contract[];
1504
- walletDetail: WalletDetail;
1502
+ stripeWallet: StripeWallet;
1505
1503
  }
1506
1504
 
1507
1505
  declare enum RatingTypeEnum {
@@ -2499,23 +2497,4 @@ declare class ZoomMeetingLog extends BaseEntity {
2499
2497
  rawWebhookData: any;
2500
2498
  }
2501
2499
 
2502
- declare enum InvoiceStatusEnum {
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 };
2500
+ 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);
@@ -4074,100 +4072,94 @@ FreelancerResume = __decorateClass([
4074
4072
  (0, import_typeorm46.Entity)("freelancer_resumes")
4075
4073
  ], FreelancerResume);
4076
4074
 
4077
- // src/entities/wallet-details.entity.ts
4075
+ // src/entities/stripe-wallet.entity.ts
4078
4076
  var import_typeorm48 = require("typeorm");
4079
4077
 
4080
- // src/entities/transaction.entity.ts
4078
+ // src/entities/stripe-wallet-transaction.entity.ts
4081
4079
  var import_typeorm47 = require("typeorm");
4082
- var TransactionTypeEnum = /* @__PURE__ */ ((TransactionTypeEnum2) => {
4083
- TransactionTypeEnum2["ADD_FUNDS"] = "ADD_FUNDS";
4084
- TransactionTypeEnum2["TRANSFER"] = "TRANSFER";
4085
- TransactionTypeEnum2["WITHDRAW"] = "WITHDRAW";
4086
- TransactionTypeEnum2["INVOICE_PAYMENT"] = "INVOICE_PAYMENT";
4087
- TransactionTypeEnum2["REFUND"] = "REFUND";
4088
- return TransactionTypeEnum2;
4089
- })(TransactionTypeEnum || {});
4090
- var TransactionStatusEnum = /* @__PURE__ */ ((TransactionStatusEnum2) => {
4091
- TransactionStatusEnum2["PENDING"] = "PENDING";
4092
- TransactionStatusEnum2["SUCCESS"] = "SUCCESS";
4093
- TransactionStatusEnum2["FAILED"] = "FAILED";
4094
- return TransactionStatusEnum2;
4095
- })(TransactionStatusEnum || {});
4096
- var Transaction = class extends BaseEntity {
4080
+ var StripeWalletTransactionTypeEnum = /* @__PURE__ */ ((StripeWalletTransactionTypeEnum2) => {
4081
+ StripeWalletTransactionTypeEnum2["ADD_FUNDS"] = "ADD_FUNDS";
4082
+ StripeWalletTransactionTypeEnum2["TRANSFER"] = "TRANSFER";
4083
+ StripeWalletTransactionTypeEnum2["WITHDRAW"] = "WITHDRAW";
4084
+ StripeWalletTransactionTypeEnum2["INVOICE_PAYMENT"] = "INVOICE_PAYMENT";
4085
+ StripeWalletTransactionTypeEnum2["REFUND"] = "REFUND";
4086
+ return StripeWalletTransactionTypeEnum2;
4087
+ })(StripeWalletTransactionTypeEnum || {});
4088
+ var StripeWalletTransactionStatusEnum = /* @__PURE__ */ ((StripeWalletTransactionStatusEnum2) => {
4089
+ StripeWalletTransactionStatusEnum2["PENDING"] = "PENDING";
4090
+ StripeWalletTransactionStatusEnum2["SUCCESS"] = "SUCCESS";
4091
+ StripeWalletTransactionStatusEnum2["FAILED"] = "FAILED";
4092
+ return StripeWalletTransactionStatusEnum2;
4093
+ })(StripeWalletTransactionStatusEnum || {});
4094
+ var StripeWalletTransaction = class extends BaseEntity {
4097
4095
  };
4098
4096
  __decorateClass([
4099
4097
  (0, import_typeorm47.Column)({ name: "wallet_id", type: "integer", nullable: true }),
4100
4098
  (0, import_typeorm47.Index)()
4101
- ], Transaction.prototype, "walletId", 2);
4099
+ ], StripeWalletTransaction.prototype, "walletId", 2);
4102
4100
  __decorateClass([
4103
- (0, import_typeorm47.ManyToOne)(() => WalletDetail, (walletDetail) => walletDetail.transactions),
4101
+ (0, import_typeorm47.ManyToOne)(() => StripeWallet, (stripeWallet) => stripeWallet.transactions),
4104
4102
  (0, import_typeorm47.JoinColumn)({ name: "wallet_id" })
4105
- ], Transaction.prototype, "walletDetail", 2);
4103
+ ], StripeWalletTransaction.prototype, "stripeWallet", 2);
4106
4104
  __decorateClass([
4107
4105
  (0, import_typeorm47.Column)({ name: "amount", type: "bigint", nullable: true })
4108
- ], Transaction.prototype, "amount", 2);
4106
+ ], StripeWalletTransaction.prototype, "amount", 2);
4109
4107
  __decorateClass([
4110
4108
  (0, import_typeorm47.Column)({ name: "currency", type: "varchar", nullable: true })
4111
- ], Transaction.prototype, "currency", 2);
4109
+ ], StripeWalletTransaction.prototype, "currency", 2);
4112
4110
  __decorateClass([
4113
- (0, import_typeorm47.Column)({ name: "type", type: "enum", enum: TransactionTypeEnum })
4114
- ], Transaction.prototype, "type", 2);
4111
+ (0, import_typeorm47.Column)({ name: "type", type: "enum", enum: StripeWalletTransactionTypeEnum })
4112
+ ], StripeWalletTransaction.prototype, "type", 2);
4115
4113
  __decorateClass([
4116
- (0, import_typeorm47.Column)({ name: "status", type: "enum", enum: TransactionStatusEnum, default: "PENDING" /* PENDING */ })
4117
- ], Transaction.prototype, "status", 2);
4114
+ (0, import_typeorm47.Column)({ name: "status", type: "enum", enum: StripeWalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
4115
+ ], StripeWalletTransaction.prototype, "status", 2);
4118
4116
  __decorateClass([
4119
4117
  (0, import_typeorm47.Column)({ name: "stripe_reference_id", type: "varchar", nullable: true })
4120
- ], Transaction.prototype, "stripeReferenceId", 2);
4118
+ ], StripeWalletTransaction.prototype, "stripeReferenceId", 2);
4121
4119
  __decorateClass([
4122
4120
  (0, import_typeorm47.Column)({ name: "description", type: "text", nullable: true })
4123
- ], Transaction.prototype, "description", 2);
4124
- Transaction = __decorateClass([
4125
- (0, import_typeorm47.Entity)("transactions")
4126
- ], Transaction);
4121
+ ], StripeWalletTransaction.prototype, "description", 2);
4122
+ StripeWalletTransaction = __decorateClass([
4123
+ (0, import_typeorm47.Entity)("stripe_wallet_transactions")
4124
+ ], StripeWalletTransaction);
4127
4125
 
4128
- // src/entities/wallet-details.entity.ts
4129
- var AccountTypeEnum = /* @__PURE__ */ ((AccountTypeEnum2) => {
4130
- AccountTypeEnum2["BUSINESS"] = "BUSINESS";
4131
- AccountTypeEnum2["FREELANCER"] = "FREELANCER";
4132
- return AccountTypeEnum2;
4133
- })(AccountTypeEnum || {});
4134
- var WalletDetail = class extends BaseEntity {
4126
+ // src/entities/stripe-wallet.entity.ts
4127
+ var StripeWalletAccountTypeEnum = /* @__PURE__ */ ((StripeWalletAccountTypeEnum2) => {
4128
+ StripeWalletAccountTypeEnum2["BUSINESS"] = "BUSINESS";
4129
+ StripeWalletAccountTypeEnum2["FREELANCER"] = "FREELANCER";
4130
+ return StripeWalletAccountTypeEnum2;
4131
+ })(StripeWalletAccountTypeEnum || {});
4132
+ var StripeWallet = class extends BaseEntity {
4135
4133
  };
4136
4134
  __decorateClass([
4137
4135
  (0, import_typeorm48.Column)({ name: "user_id", type: "integer", nullable: true }),
4138
4136
  (0, import_typeorm48.Index)()
4139
- ], WalletDetail.prototype, "userId", 2);
4137
+ ], StripeWallet.prototype, "userId", 2);
4140
4138
  __decorateClass([
4141
- (0, import_typeorm48.OneToOne)(() => User, (user) => user.walletDetail),
4139
+ (0, import_typeorm48.OneToOne)(() => User, (user) => user.stripeWallet),
4142
4140
  (0, import_typeorm48.JoinColumn)({ name: "user_id" })
4143
- ], WalletDetail.prototype, "user", 2);
4141
+ ], StripeWallet.prototype, "user", 2);
4144
4142
  __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);
4150
- __decorateClass([
4151
- (0, import_typeorm48.Column)({ name: "account_type", type: "enum", enum: AccountTypeEnum, nullable: true })
4152
- ], WalletDetail.prototype, "accountType", 2);
4143
+ (0, import_typeorm48.Column)({ name: "account_type", type: "enum", enum: StripeWalletAccountTypeEnum, nullable: true })
4144
+ ], StripeWallet.prototype, "accountType", 2);
4153
4145
  __decorateClass([
4154
4146
  (0, import_typeorm48.Column)({ name: "stripe_account_id", type: "varchar", nullable: true })
4155
- ], WalletDetail.prototype, "stripeAccountId", 2);
4147
+ ], StripeWallet.prototype, "stripeAccountId", 2);
4156
4148
  __decorateClass([
4157
4149
  (0, import_typeorm48.Column)({ name: "stripe_customer_id", type: "varchar", nullable: true })
4158
- ], WalletDetail.prototype, "stripeCustomerId", 2);
4150
+ ], StripeWallet.prototype, "stripeCustomerId", 2);
4159
4151
  __decorateClass([
4160
4152
  (0, import_typeorm48.Column)({ name: "wallet_balance", type: "bigint", default: 0 })
4161
- ], WalletDetail.prototype, "walletBalance", 2);
4153
+ ], StripeWallet.prototype, "walletBalance", 2);
4162
4154
  __decorateClass([
4163
4155
  (0, import_typeorm48.Column)({ name: "stripe_metadata", type: "jsonb", nullable: true })
4164
- ], WalletDetail.prototype, "stripeMetadata", 2);
4156
+ ], StripeWallet.prototype, "stripeMetadata", 2);
4165
4157
  __decorateClass([
4166
- (0, import_typeorm48.OneToMany)(() => Transaction, (transaction) => transaction.walletDetail)
4167
- ], WalletDetail.prototype, "transactions", 2);
4168
- WalletDetail = __decorateClass([
4169
- (0, import_typeorm48.Entity)("wallet_details")
4170
- ], WalletDetail);
4158
+ (0, import_typeorm48.OneToMany)(() => StripeWalletTransaction, (stripeWalletTransaction) => stripeWalletTransaction.stripeWallet)
4159
+ ], StripeWallet.prototype, "transactions", 2);
4160
+ StripeWallet = __decorateClass([
4161
+ (0, import_typeorm48.Entity)("stripe_wallets")
4162
+ ], StripeWallet);
4171
4163
 
4172
4164
  // src/entities/user.entity.ts
4173
4165
  var AccountType = /* @__PURE__ */ ((AccountType2) => {
@@ -4445,8 +4437,8 @@ __decorateClass([
4445
4437
  (0, import_typeorm49.OneToMany)(() => Contract, (contract) => contract.freelancer)
4446
4438
  ], User.prototype, "freelancerContracts", 2);
4447
4439
  __decorateClass([
4448
- (0, import_typeorm49.OneToOne)(() => WalletDetail, (walletDetail) => walletDetail.user)
4449
- ], User.prototype, "walletDetail", 2);
4440
+ (0, import_typeorm49.OneToOne)(() => StripeWallet, (stripeWallet) => stripeWallet.user)
4441
+ ], User.prototype, "stripeWallet", 2);
4450
4442
  User = __decorateClass([
4451
4443
  (0, import_typeorm49.Entity)("users")
4452
4444
  ], User);
@@ -6441,55 +6433,6 @@ __decorateClass([
6441
6433
  ZoomMeetingLog = __decorateClass([
6442
6434
  (0, import_typeorm64.Entity)("zoom_meeting_logs")
6443
6435
  ], 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
6436
  // Annotate the CommonJS export names for ESM import in node:
6494
6437
  0 && (module.exports = {
6495
6438
  ADMIN_FREELANCER_PATTERN,
@@ -6625,8 +6568,6 @@ Invoice = __decorateClass([
6625
6568
  InterviewQuestion,
6626
6569
  InterviewSkill,
6627
6570
  InterviewStatusEnum,
6628
- Invoice,
6629
- InvoiceStatusEnum,
6630
6571
  JOB_PATTERN,
6631
6572
  JOB_ROLE_PATTERN,
6632
6573
  Job,
@@ -6705,14 +6646,15 @@ Invoice = __decorateClass([
6705
6646
  Skill,
6706
6647
  State,
6707
6648
  Step,
6649
+ StripeWallet,
6650
+ StripeWalletTransaction,
6651
+ StripeWalletTransactionStatusEnum,
6652
+ StripeWalletTransactionTypeEnum,
6708
6653
  SystemPreference,
6709
6654
  SystemPreferenceDto,
6710
6655
  SystemPreferenceKey,
6711
6656
  ToggleCompanyMemberVisibilityDto,
6712
6657
  ToggleCompanyRoleVisibilityDto,
6713
- Transaction,
6714
- TransactionStatusEnum,
6715
- TransactionTypeEnum,
6716
6658
  TypeOfEmploymentEnum,
6717
6659
  TypeOfEmploymentEnumDto,
6718
6660
  TypeOfEmploymentEnums,
@@ -6734,6 +6676,5 @@ Invoice = __decorateClass([
6734
6676
  UserTCPAdapter,
6735
6677
  VerifyGuestOtpDto,
6736
6678
  VerifyGuestOtpPurposeEnum,
6737
- WalletDetail,
6738
6679
  ZoomMeetingLog
6739
6680
  });
package/dist/index.mjs CHANGED
@@ -4119,100 +4119,94 @@ FreelancerResume = __decorateClass([
4119
4119
  Entity45("freelancer_resumes")
4120
4120
  ], FreelancerResume);
4121
4121
 
4122
- // src/entities/wallet-details.entity.ts
4122
+ // src/entities/stripe-wallet.entity.ts
4123
4123
  import { Entity as Entity47, Column as Column48, Index as Index40, JoinColumn as JoinColumn42, OneToOne as OneToOne2, OneToMany as OneToMany16 } from "typeorm";
4124
4124
 
4125
- // src/entities/transaction.entity.ts
4125
+ // src/entities/stripe-wallet-transaction.entity.ts
4126
4126
  import { Entity as Entity46, Column as Column47, Index as Index39, ManyToOne as ManyToOne41, JoinColumn as JoinColumn41 } from "typeorm";
4127
- var TransactionTypeEnum = /* @__PURE__ */ ((TransactionTypeEnum2) => {
4128
- TransactionTypeEnum2["ADD_FUNDS"] = "ADD_FUNDS";
4129
- TransactionTypeEnum2["TRANSFER"] = "TRANSFER";
4130
- TransactionTypeEnum2["WITHDRAW"] = "WITHDRAW";
4131
- TransactionTypeEnum2["INVOICE_PAYMENT"] = "INVOICE_PAYMENT";
4132
- TransactionTypeEnum2["REFUND"] = "REFUND";
4133
- return TransactionTypeEnum2;
4134
- })(TransactionTypeEnum || {});
4135
- var TransactionStatusEnum = /* @__PURE__ */ ((TransactionStatusEnum2) => {
4136
- TransactionStatusEnum2["PENDING"] = "PENDING";
4137
- TransactionStatusEnum2["SUCCESS"] = "SUCCESS";
4138
- TransactionStatusEnum2["FAILED"] = "FAILED";
4139
- return TransactionStatusEnum2;
4140
- })(TransactionStatusEnum || {});
4141
- var Transaction = class extends BaseEntity {
4127
+ var StripeWalletTransactionTypeEnum = /* @__PURE__ */ ((StripeWalletTransactionTypeEnum2) => {
4128
+ StripeWalletTransactionTypeEnum2["ADD_FUNDS"] = "ADD_FUNDS";
4129
+ StripeWalletTransactionTypeEnum2["TRANSFER"] = "TRANSFER";
4130
+ StripeWalletTransactionTypeEnum2["WITHDRAW"] = "WITHDRAW";
4131
+ StripeWalletTransactionTypeEnum2["INVOICE_PAYMENT"] = "INVOICE_PAYMENT";
4132
+ StripeWalletTransactionTypeEnum2["REFUND"] = "REFUND";
4133
+ return StripeWalletTransactionTypeEnum2;
4134
+ })(StripeWalletTransactionTypeEnum || {});
4135
+ var StripeWalletTransactionStatusEnum = /* @__PURE__ */ ((StripeWalletTransactionStatusEnum2) => {
4136
+ StripeWalletTransactionStatusEnum2["PENDING"] = "PENDING";
4137
+ StripeWalletTransactionStatusEnum2["SUCCESS"] = "SUCCESS";
4138
+ StripeWalletTransactionStatusEnum2["FAILED"] = "FAILED";
4139
+ return StripeWalletTransactionStatusEnum2;
4140
+ })(StripeWalletTransactionStatusEnum || {});
4141
+ var StripeWalletTransaction = class extends BaseEntity {
4142
4142
  };
4143
4143
  __decorateClass([
4144
4144
  Column47({ name: "wallet_id", type: "integer", nullable: true }),
4145
4145
  Index39()
4146
- ], Transaction.prototype, "walletId", 2);
4146
+ ], StripeWalletTransaction.prototype, "walletId", 2);
4147
4147
  __decorateClass([
4148
- ManyToOne41(() => WalletDetail, (walletDetail) => walletDetail.transactions),
4148
+ ManyToOne41(() => StripeWallet, (stripeWallet) => stripeWallet.transactions),
4149
4149
  JoinColumn41({ name: "wallet_id" })
4150
- ], Transaction.prototype, "walletDetail", 2);
4150
+ ], StripeWalletTransaction.prototype, "stripeWallet", 2);
4151
4151
  __decorateClass([
4152
4152
  Column47({ name: "amount", type: "bigint", nullable: true })
4153
- ], Transaction.prototype, "amount", 2);
4153
+ ], StripeWalletTransaction.prototype, "amount", 2);
4154
4154
  __decorateClass([
4155
4155
  Column47({ name: "currency", type: "varchar", nullable: true })
4156
- ], Transaction.prototype, "currency", 2);
4156
+ ], StripeWalletTransaction.prototype, "currency", 2);
4157
4157
  __decorateClass([
4158
- Column47({ name: "type", type: "enum", enum: TransactionTypeEnum })
4159
- ], Transaction.prototype, "type", 2);
4158
+ Column47({ name: "type", type: "enum", enum: StripeWalletTransactionTypeEnum })
4159
+ ], StripeWalletTransaction.prototype, "type", 2);
4160
4160
  __decorateClass([
4161
- Column47({ name: "status", type: "enum", enum: TransactionStatusEnum, default: "PENDING" /* PENDING */ })
4162
- ], Transaction.prototype, "status", 2);
4161
+ Column47({ name: "status", type: "enum", enum: StripeWalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
4162
+ ], StripeWalletTransaction.prototype, "status", 2);
4163
4163
  __decorateClass([
4164
4164
  Column47({ name: "stripe_reference_id", type: "varchar", nullable: true })
4165
- ], Transaction.prototype, "stripeReferenceId", 2);
4165
+ ], StripeWalletTransaction.prototype, "stripeReferenceId", 2);
4166
4166
  __decorateClass([
4167
4167
  Column47({ name: "description", type: "text", nullable: true })
4168
- ], Transaction.prototype, "description", 2);
4169
- Transaction = __decorateClass([
4170
- Entity46("transactions")
4171
- ], Transaction);
4168
+ ], StripeWalletTransaction.prototype, "description", 2);
4169
+ StripeWalletTransaction = __decorateClass([
4170
+ Entity46("stripe_wallet_transactions")
4171
+ ], StripeWalletTransaction);
4172
4172
 
4173
- // src/entities/wallet-details.entity.ts
4174
- var AccountTypeEnum = /* @__PURE__ */ ((AccountTypeEnum2) => {
4175
- AccountTypeEnum2["BUSINESS"] = "BUSINESS";
4176
- AccountTypeEnum2["FREELANCER"] = "FREELANCER";
4177
- return AccountTypeEnum2;
4178
- })(AccountTypeEnum || {});
4179
- var WalletDetail = class extends BaseEntity {
4173
+ // src/entities/stripe-wallet.entity.ts
4174
+ var StripeWalletAccountTypeEnum = /* @__PURE__ */ ((StripeWalletAccountTypeEnum2) => {
4175
+ StripeWalletAccountTypeEnum2["BUSINESS"] = "BUSINESS";
4176
+ StripeWalletAccountTypeEnum2["FREELANCER"] = "FREELANCER";
4177
+ return StripeWalletAccountTypeEnum2;
4178
+ })(StripeWalletAccountTypeEnum || {});
4179
+ var StripeWallet = class extends BaseEntity {
4180
4180
  };
4181
4181
  __decorateClass([
4182
4182
  Column48({ name: "user_id", type: "integer", nullable: true }),
4183
4183
  Index40()
4184
- ], WalletDetail.prototype, "userId", 2);
4184
+ ], StripeWallet.prototype, "userId", 2);
4185
4185
  __decorateClass([
4186
- OneToOne2(() => User, (user) => user.walletDetail),
4186
+ OneToOne2(() => User, (user) => user.stripeWallet),
4187
4187
  JoinColumn42({ name: "user_id" })
4188
- ], WalletDetail.prototype, "user", 2);
4188
+ ], StripeWallet.prototype, "user", 2);
4189
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);
4195
- __decorateClass([
4196
- Column48({ name: "account_type", type: "enum", enum: AccountTypeEnum, nullable: true })
4197
- ], WalletDetail.prototype, "accountType", 2);
4190
+ Column48({ name: "account_type", type: "enum", enum: StripeWalletAccountTypeEnum, nullable: true })
4191
+ ], StripeWallet.prototype, "accountType", 2);
4198
4192
  __decorateClass([
4199
4193
  Column48({ name: "stripe_account_id", type: "varchar", nullable: true })
4200
- ], WalletDetail.prototype, "stripeAccountId", 2);
4194
+ ], StripeWallet.prototype, "stripeAccountId", 2);
4201
4195
  __decorateClass([
4202
4196
  Column48({ name: "stripe_customer_id", type: "varchar", nullable: true })
4203
- ], WalletDetail.prototype, "stripeCustomerId", 2);
4197
+ ], StripeWallet.prototype, "stripeCustomerId", 2);
4204
4198
  __decorateClass([
4205
4199
  Column48({ name: "wallet_balance", type: "bigint", default: 0 })
4206
- ], WalletDetail.prototype, "walletBalance", 2);
4200
+ ], StripeWallet.prototype, "walletBalance", 2);
4207
4201
  __decorateClass([
4208
4202
  Column48({ name: "stripe_metadata", type: "jsonb", nullable: true })
4209
- ], WalletDetail.prototype, "stripeMetadata", 2);
4203
+ ], StripeWallet.prototype, "stripeMetadata", 2);
4210
4204
  __decorateClass([
4211
- OneToMany16(() => Transaction, (transaction) => transaction.walletDetail)
4212
- ], WalletDetail.prototype, "transactions", 2);
4213
- WalletDetail = __decorateClass([
4214
- Entity47("wallet_details")
4215
- ], WalletDetail);
4205
+ OneToMany16(() => StripeWalletTransaction, (stripeWalletTransaction) => stripeWalletTransaction.stripeWallet)
4206
+ ], StripeWallet.prototype, "transactions", 2);
4207
+ StripeWallet = __decorateClass([
4208
+ Entity47("stripe_wallets")
4209
+ ], StripeWallet);
4216
4210
 
4217
4211
  // src/entities/user.entity.ts
4218
4212
  var AccountType = /* @__PURE__ */ ((AccountType2) => {
@@ -4490,8 +4484,8 @@ __decorateClass([
4490
4484
  OneToMany17(() => Contract, (contract) => contract.freelancer)
4491
4485
  ], User.prototype, "freelancerContracts", 2);
4492
4486
  __decorateClass([
4493
- OneToOne3(() => WalletDetail, (walletDetail) => walletDetail.user)
4494
- ], User.prototype, "walletDetail", 2);
4487
+ OneToOne3(() => StripeWallet, (stripeWallet) => stripeWallet.user)
4488
+ ], User.prototype, "stripeWallet", 2);
4495
4489
  User = __decorateClass([
4496
4490
  Entity48("users")
4497
4491
  ], User);
@@ -6592,55 +6586,6 @@ __decorateClass([
6592
6586
  ZoomMeetingLog = __decorateClass([
6593
6587
  Entity60("zoom_meeting_logs")
6594
6588
  ], 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
6589
  export {
6645
6590
  ADMIN_FREELANCER_PATTERN,
6646
6591
  ADMIN_JOB_PATTERN,
@@ -6775,8 +6720,6 @@ export {
6775
6720
  InterviewQuestion,
6776
6721
  InterviewSkill,
6777
6722
  InterviewStatusEnum,
6778
- Invoice,
6779
- InvoiceStatusEnum,
6780
6723
  JOB_PATTERN,
6781
6724
  JOB_ROLE_PATTERN,
6782
6725
  Job,
@@ -6855,14 +6798,15 @@ export {
6855
6798
  Skill,
6856
6799
  State,
6857
6800
  Step,
6801
+ StripeWallet,
6802
+ StripeWalletTransaction,
6803
+ StripeWalletTransactionStatusEnum,
6804
+ StripeWalletTransactionTypeEnum,
6858
6805
  SystemPreference,
6859
6806
  SystemPreferenceDto,
6860
6807
  SystemPreferenceKey,
6861
6808
  ToggleCompanyMemberVisibilityDto,
6862
6809
  ToggleCompanyRoleVisibilityDto,
6863
- Transaction,
6864
- TransactionStatusEnum,
6865
- TransactionTypeEnum,
6866
6810
  TypeOfEmploymentEnum,
6867
6811
  TypeOfEmploymentEnumDto,
6868
6812
  TypeOfEmploymentEnums,
@@ -6884,6 +6828,5 @@ export {
6884
6828
  UserTCPAdapter,
6885
6829
  VerifyGuestOtpDto,
6886
6830
  VerifyGuestOtpPurposeEnum,
6887
- WalletDetail,
6888
6831
  ZoomMeetingLog
6889
6832
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.371",
3
+ "version": "1.0.372",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",