@experts_hub/shared 1.0.436 → 1.0.437
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/invoice.entity.d.ts +16 -3
- package/dist/entities/timesheet-line.entity.d.ts +2 -0
- package/dist/index.d.mts +41 -28
- package/dist/index.d.ts +41 -28
- package/dist/index.js +128 -95
- package/dist/index.mjs +126 -95
- package/package.json +1 -1
|
@@ -1,16 +1,27 @@
|
|
|
1
1
|
import { BaseEntity } from "./base.entity";
|
|
2
2
|
import { User } from "./user.entity";
|
|
3
3
|
import { Job } from "./job.entity";
|
|
4
|
+
import { TimesheetLine } from "./timesheet-line.entity";
|
|
5
|
+
export declare enum InvoiceTypeEnum {
|
|
6
|
+
WEEKLY = "WEEKLY",
|
|
7
|
+
MONTHLY = "MONTHLY"
|
|
8
|
+
}
|
|
4
9
|
export declare enum InvoiceStatusEnum {
|
|
5
10
|
SUBMITTED = "SUBMITTED",
|
|
6
|
-
|
|
11
|
+
UNDER_REVIEW = "UNDER_REVIEW",
|
|
7
12
|
APPROVED = "APPROVED",
|
|
13
|
+
REJECTED = "REJECTED"
|
|
14
|
+
}
|
|
15
|
+
export declare enum InvoicePaymentStatusEnum {
|
|
16
|
+
PENDING = "PENDING",
|
|
8
17
|
OVERDUE = "OVERDUE",
|
|
9
|
-
|
|
18
|
+
INTRANSACTION = "INTRANSACTION",
|
|
10
19
|
PAID = "PAID",
|
|
11
|
-
|
|
20
|
+
REFUNDED = "REFUNDED"
|
|
12
21
|
}
|
|
13
22
|
export declare class Invoice extends BaseEntity {
|
|
23
|
+
timesheetLineId: number;
|
|
24
|
+
timesheetLine: TimesheetLine;
|
|
14
25
|
jobId: number;
|
|
15
26
|
job: Job;
|
|
16
27
|
clientId: number;
|
|
@@ -25,5 +36,7 @@ export declare class Invoice extends BaseEntity {
|
|
|
25
36
|
billingHours: string;
|
|
26
37
|
hourlyRate: string;
|
|
27
38
|
billingAmount: string;
|
|
39
|
+
invoiceType: InvoiceTypeEnum;
|
|
28
40
|
status: InvoiceStatusEnum;
|
|
41
|
+
paymentStatus: InvoicePaymentStatusEnum;
|
|
29
42
|
}
|
|
@@ -3,6 +3,7 @@ import { User } from "./user.entity";
|
|
|
3
3
|
import { Job } from "./job.entity";
|
|
4
4
|
import { TimesheetLogs } from "./timesheet-logs.entity";
|
|
5
5
|
import { TimesheetLineHistory } from "./timesheet-line-history.entity";
|
|
6
|
+
import { Invoice } from "./invoice.entity";
|
|
6
7
|
export declare enum TimesheetLineStatusEnum {
|
|
7
8
|
DRAFT = "DRAFT",
|
|
8
9
|
SEND = "SEND",
|
|
@@ -29,4 +30,5 @@ export declare class TimesheetLine extends BaseEntity {
|
|
|
29
30
|
weeklyHoursSum: string;
|
|
30
31
|
isInvoiceGenrated: boolean;
|
|
31
32
|
isInvoiceApproved: boolean;
|
|
33
|
+
invoice: Invoice[];
|
|
32
34
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -1188,6 +1188,45 @@ declare class TimesheetLineHistory extends BaseEntity {
|
|
|
1188
1188
|
remarks: string;
|
|
1189
1189
|
}
|
|
1190
1190
|
|
|
1191
|
+
declare enum InvoiceTypeEnum {
|
|
1192
|
+
WEEKLY = "WEEKLY",
|
|
1193
|
+
MONTHLY = "MONTHLY"
|
|
1194
|
+
}
|
|
1195
|
+
declare enum InvoiceStatusEnum {
|
|
1196
|
+
SUBMITTED = "SUBMITTED",
|
|
1197
|
+
UNDER_REVIEW = "UNDER_REVIEW",
|
|
1198
|
+
APPROVED = "APPROVED",
|
|
1199
|
+
REJECTED = "REJECTED"
|
|
1200
|
+
}
|
|
1201
|
+
declare enum InvoicePaymentStatusEnum {
|
|
1202
|
+
PENDING = "PENDING",
|
|
1203
|
+
OVERDUE = "OVERDUE",
|
|
1204
|
+
INTRANSACTION = "INTRANSACTION",
|
|
1205
|
+
PAID = "PAID",
|
|
1206
|
+
REFUNDED = "REFUNDED"
|
|
1207
|
+
}
|
|
1208
|
+
declare class Invoice extends BaseEntity {
|
|
1209
|
+
timesheetLineId: number;
|
|
1210
|
+
timesheetLine: TimesheetLine;
|
|
1211
|
+
jobId: number;
|
|
1212
|
+
job: Job;
|
|
1213
|
+
clientId: number;
|
|
1214
|
+
client: User;
|
|
1215
|
+
freelancerId: number;
|
|
1216
|
+
freelancer: User;
|
|
1217
|
+
invoiceUniqueId: string;
|
|
1218
|
+
issuedAt: Date;
|
|
1219
|
+
dueAt: Date;
|
|
1220
|
+
billingCycleFrom: Date;
|
|
1221
|
+
billingCycleTo: Date;
|
|
1222
|
+
billingHours: string;
|
|
1223
|
+
hourlyRate: string;
|
|
1224
|
+
billingAmount: string;
|
|
1225
|
+
invoiceType: InvoiceTypeEnum;
|
|
1226
|
+
status: InvoiceStatusEnum;
|
|
1227
|
+
paymentStatus: InvoicePaymentStatusEnum;
|
|
1228
|
+
}
|
|
1229
|
+
|
|
1191
1230
|
declare enum TimesheetLineStatusEnum {
|
|
1192
1231
|
DRAFT = "DRAFT",
|
|
1193
1232
|
SEND = "SEND",
|
|
@@ -1214,33 +1253,7 @@ declare class TimesheetLine extends BaseEntity {
|
|
|
1214
1253
|
weeklyHoursSum: string;
|
|
1215
1254
|
isInvoiceGenrated: boolean;
|
|
1216
1255
|
isInvoiceApproved: boolean;
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
declare enum InvoiceStatusEnum {
|
|
1220
|
-
SUBMITTED = "SUBMITTED",
|
|
1221
|
-
PENDING = "PENDING",
|
|
1222
|
-
APPROVED = "APPROVED",
|
|
1223
|
-
OVERDUE = "OVERDUE",
|
|
1224
|
-
REJECTED = "REJECTED",
|
|
1225
|
-
PAID = "PAID",
|
|
1226
|
-
INTRANSACTION = "INTRANSACTION"
|
|
1227
|
-
}
|
|
1228
|
-
declare class Invoice extends BaseEntity {
|
|
1229
|
-
jobId: number;
|
|
1230
|
-
job: Job;
|
|
1231
|
-
clientId: number;
|
|
1232
|
-
client: User;
|
|
1233
|
-
freelancerId: number;
|
|
1234
|
-
freelancer: User;
|
|
1235
|
-
invoiceUniqueId: string;
|
|
1236
|
-
issuedAt: Date;
|
|
1237
|
-
dueAt: Date;
|
|
1238
|
-
billingCycleFrom: Date;
|
|
1239
|
-
billingCycleTo: Date;
|
|
1240
|
-
billingHours: string;
|
|
1241
|
-
hourlyRate: string;
|
|
1242
|
-
billingAmount: string;
|
|
1243
|
-
status: InvoiceStatusEnum;
|
|
1256
|
+
invoice: Invoice[];
|
|
1244
1257
|
}
|
|
1245
1258
|
|
|
1246
1259
|
declare enum JobLocationEnum {
|
|
@@ -2814,4 +2827,4 @@ declare class StripeLog extends BaseEntity {
|
|
|
2814
2827
|
rawWebhookData: string;
|
|
2815
2828
|
}
|
|
2816
2829
|
|
|
2817
|
-
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, ClientCandidatePreference, ClientCandidatePreferenceEnum, ClientChangePasswordDto, ClientCreateAccountDto, ClientFreelancerRecommendation, ClientProfileQuestionDto, Cms, Commission, CommissionTypeEnum, CompanyMemberRole, CompanyOnboardingStepEnum, CompanyProfile, CompanyRole, CompanyRolePermission, CompanySkill, Contract, ContractRMQAdapter, ContractStatusEnum, ContractTCPAdapter, ContractTypeEnum, Country, CreateAdminRoleDto, CreateCheckoutSessionDto, CreateClientDto, CreateClientHiringModeEnum, CreateClientHiringTypeEnum, CreateCmsDto, CreateCompanyMemberDto, CreateCompanyRoleDto, CreateF2FInterviewDirectDto, CreateF2FInterviewDto, CreateF2FInterviewRescheduleRequestDto, CreateFreelancerDto, CreateFreelancerTimesheetDto, 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, STRIPE_PATTERN, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$3 as ScopeEnum, SelectedAnswerTypeEnum, SendGuestOtpDto, SendGuestOtpPurposeEnum, SendGuestOtpScopeEnum, SendLoginOtpDto, SendLoginOtpPurposeEnum, SendLoginOtpScopeEnum, SenseloafLog, SequenceGenerator, SetPasswordDto, SignContractForClientDto, SignContractForFreelancerDto, Signature, Skill, State, Step, StripeLog, StripeWallet, StripeWalletAccountTypeEnum, StripeWalletOnboardingStatusEnum, StripeWalletTransaction, StripeWalletTransactionStatusEnum, StripeWalletTransactionTypeEnum, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, TIMESHEET_CLIENT_PATTERN, TIMESHEET_FREELANCER_PATTERN, Timesheet, TimesheetLine, TimesheetLineHistory, TimesheetLineHistoryStatusEnum, TimesheetLineStatusEnum, TimesheetLogs, TimesheetStatusEnum, TimesheetSubmissionActionEnum, ToggleCompanyMemberVisibilityDto, ToggleCompanyRoleVisibilityDto, TypeOfEmploymentEnum, TypeOfEmploymentEnumDto, TypeOfEmploymentEnums, UpdateAdminRoleDto, UpdateClientAccountStatusDto, UpdateClientDto, UpdateClientHiringModeEnum, UpdateClientHiringTypeEnum, UpdateCmsDto, UpdateCompanyMemberDto, UpdateCompanyProfileDto, UpdateCompanyRoleDto, UpdateFreelancerDto, UpdateFreelancerProfileDto, UpdateFreelancerTimesheetDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter, VerifyGuestOtpDto, VerifyGuestOtpPurposeEnum, ZoomMeetingLog };
|
|
2830
|
+
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, ClientCandidatePreference, ClientCandidatePreferenceEnum, ClientChangePasswordDto, ClientCreateAccountDto, ClientFreelancerRecommendation, ClientProfileQuestionDto, Cms, Commission, CommissionTypeEnum, CompanyMemberRole, CompanyOnboardingStepEnum, CompanyProfile, CompanyRole, CompanyRolePermission, CompanySkill, Contract, ContractRMQAdapter, ContractStatusEnum, ContractTCPAdapter, ContractTypeEnum, Country, CreateAdminRoleDto, CreateCheckoutSessionDto, CreateClientDto, CreateClientHiringModeEnum, CreateClientHiringTypeEnum, CreateCmsDto, CreateCompanyMemberDto, CreateCompanyRoleDto, CreateF2FInterviewDirectDto, CreateF2FInterviewDto, CreateF2FInterviewRescheduleRequestDto, CreateFreelancerDto, CreateFreelancerTimesheetDto, 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, InvoicePaymentStatusEnum, InvoiceStatusEnum, InvoiceTypeEnum, 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, STRIPE_PATTERN, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$3 as ScopeEnum, SelectedAnswerTypeEnum, SendGuestOtpDto, SendGuestOtpPurposeEnum, SendGuestOtpScopeEnum, SendLoginOtpDto, SendLoginOtpPurposeEnum, SendLoginOtpScopeEnum, SenseloafLog, SequenceGenerator, SetPasswordDto, SignContractForClientDto, SignContractForFreelancerDto, Signature, Skill, State, Step, StripeLog, StripeWallet, StripeWalletAccountTypeEnum, StripeWalletOnboardingStatusEnum, StripeWalletTransaction, StripeWalletTransactionStatusEnum, StripeWalletTransactionTypeEnum, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, TIMESHEET_CLIENT_PATTERN, TIMESHEET_FREELANCER_PATTERN, Timesheet, TimesheetLine, TimesheetLineHistory, TimesheetLineHistoryStatusEnum, TimesheetLineStatusEnum, TimesheetLogs, TimesheetStatusEnum, TimesheetSubmissionActionEnum, ToggleCompanyMemberVisibilityDto, ToggleCompanyRoleVisibilityDto, TypeOfEmploymentEnum, TypeOfEmploymentEnumDto, TypeOfEmploymentEnums, UpdateAdminRoleDto, UpdateClientAccountStatusDto, UpdateClientDto, UpdateClientHiringModeEnum, UpdateClientHiringTypeEnum, UpdateCmsDto, UpdateCompanyMemberDto, UpdateCompanyProfileDto, UpdateCompanyRoleDto, UpdateFreelancerDto, UpdateFreelancerProfileDto, UpdateFreelancerTimesheetDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter, VerifyGuestOtpDto, VerifyGuestOtpPurposeEnum, ZoomMeetingLog };
|
package/dist/index.d.ts
CHANGED
|
@@ -1188,6 +1188,45 @@ declare class TimesheetLineHistory extends BaseEntity {
|
|
|
1188
1188
|
remarks: string;
|
|
1189
1189
|
}
|
|
1190
1190
|
|
|
1191
|
+
declare enum InvoiceTypeEnum {
|
|
1192
|
+
WEEKLY = "WEEKLY",
|
|
1193
|
+
MONTHLY = "MONTHLY"
|
|
1194
|
+
}
|
|
1195
|
+
declare enum InvoiceStatusEnum {
|
|
1196
|
+
SUBMITTED = "SUBMITTED",
|
|
1197
|
+
UNDER_REVIEW = "UNDER_REVIEW",
|
|
1198
|
+
APPROVED = "APPROVED",
|
|
1199
|
+
REJECTED = "REJECTED"
|
|
1200
|
+
}
|
|
1201
|
+
declare enum InvoicePaymentStatusEnum {
|
|
1202
|
+
PENDING = "PENDING",
|
|
1203
|
+
OVERDUE = "OVERDUE",
|
|
1204
|
+
INTRANSACTION = "INTRANSACTION",
|
|
1205
|
+
PAID = "PAID",
|
|
1206
|
+
REFUNDED = "REFUNDED"
|
|
1207
|
+
}
|
|
1208
|
+
declare class Invoice extends BaseEntity {
|
|
1209
|
+
timesheetLineId: number;
|
|
1210
|
+
timesheetLine: TimesheetLine;
|
|
1211
|
+
jobId: number;
|
|
1212
|
+
job: Job;
|
|
1213
|
+
clientId: number;
|
|
1214
|
+
client: User;
|
|
1215
|
+
freelancerId: number;
|
|
1216
|
+
freelancer: User;
|
|
1217
|
+
invoiceUniqueId: string;
|
|
1218
|
+
issuedAt: Date;
|
|
1219
|
+
dueAt: Date;
|
|
1220
|
+
billingCycleFrom: Date;
|
|
1221
|
+
billingCycleTo: Date;
|
|
1222
|
+
billingHours: string;
|
|
1223
|
+
hourlyRate: string;
|
|
1224
|
+
billingAmount: string;
|
|
1225
|
+
invoiceType: InvoiceTypeEnum;
|
|
1226
|
+
status: InvoiceStatusEnum;
|
|
1227
|
+
paymentStatus: InvoicePaymentStatusEnum;
|
|
1228
|
+
}
|
|
1229
|
+
|
|
1191
1230
|
declare enum TimesheetLineStatusEnum {
|
|
1192
1231
|
DRAFT = "DRAFT",
|
|
1193
1232
|
SEND = "SEND",
|
|
@@ -1214,33 +1253,7 @@ declare class TimesheetLine extends BaseEntity {
|
|
|
1214
1253
|
weeklyHoursSum: string;
|
|
1215
1254
|
isInvoiceGenrated: boolean;
|
|
1216
1255
|
isInvoiceApproved: boolean;
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
declare enum InvoiceStatusEnum {
|
|
1220
|
-
SUBMITTED = "SUBMITTED",
|
|
1221
|
-
PENDING = "PENDING",
|
|
1222
|
-
APPROVED = "APPROVED",
|
|
1223
|
-
OVERDUE = "OVERDUE",
|
|
1224
|
-
REJECTED = "REJECTED",
|
|
1225
|
-
PAID = "PAID",
|
|
1226
|
-
INTRANSACTION = "INTRANSACTION"
|
|
1227
|
-
}
|
|
1228
|
-
declare class Invoice extends BaseEntity {
|
|
1229
|
-
jobId: number;
|
|
1230
|
-
job: Job;
|
|
1231
|
-
clientId: number;
|
|
1232
|
-
client: User;
|
|
1233
|
-
freelancerId: number;
|
|
1234
|
-
freelancer: User;
|
|
1235
|
-
invoiceUniqueId: string;
|
|
1236
|
-
issuedAt: Date;
|
|
1237
|
-
dueAt: Date;
|
|
1238
|
-
billingCycleFrom: Date;
|
|
1239
|
-
billingCycleTo: Date;
|
|
1240
|
-
billingHours: string;
|
|
1241
|
-
hourlyRate: string;
|
|
1242
|
-
billingAmount: string;
|
|
1243
|
-
status: InvoiceStatusEnum;
|
|
1256
|
+
invoice: Invoice[];
|
|
1244
1257
|
}
|
|
1245
1258
|
|
|
1246
1259
|
declare enum JobLocationEnum {
|
|
@@ -2814,4 +2827,4 @@ declare class StripeLog extends BaseEntity {
|
|
|
2814
2827
|
rawWebhookData: string;
|
|
2815
2828
|
}
|
|
2816
2829
|
|
|
2817
|
-
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, ClientCandidatePreference, ClientCandidatePreferenceEnum, ClientChangePasswordDto, ClientCreateAccountDto, ClientFreelancerRecommendation, ClientProfileQuestionDto, Cms, Commission, CommissionTypeEnum, CompanyMemberRole, CompanyOnboardingStepEnum, CompanyProfile, CompanyRole, CompanyRolePermission, CompanySkill, Contract, ContractRMQAdapter, ContractStatusEnum, ContractTCPAdapter, ContractTypeEnum, Country, CreateAdminRoleDto, CreateCheckoutSessionDto, CreateClientDto, CreateClientHiringModeEnum, CreateClientHiringTypeEnum, CreateCmsDto, CreateCompanyMemberDto, CreateCompanyRoleDto, CreateF2FInterviewDirectDto, CreateF2FInterviewDto, CreateF2FInterviewRescheduleRequestDto, CreateFreelancerDto, CreateFreelancerTimesheetDto, 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, STRIPE_PATTERN, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$3 as ScopeEnum, SelectedAnswerTypeEnum, SendGuestOtpDto, SendGuestOtpPurposeEnum, SendGuestOtpScopeEnum, SendLoginOtpDto, SendLoginOtpPurposeEnum, SendLoginOtpScopeEnum, SenseloafLog, SequenceGenerator, SetPasswordDto, SignContractForClientDto, SignContractForFreelancerDto, Signature, Skill, State, Step, StripeLog, StripeWallet, StripeWalletAccountTypeEnum, StripeWalletOnboardingStatusEnum, StripeWalletTransaction, StripeWalletTransactionStatusEnum, StripeWalletTransactionTypeEnum, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, TIMESHEET_CLIENT_PATTERN, TIMESHEET_FREELANCER_PATTERN, Timesheet, TimesheetLine, TimesheetLineHistory, TimesheetLineHistoryStatusEnum, TimesheetLineStatusEnum, TimesheetLogs, TimesheetStatusEnum, TimesheetSubmissionActionEnum, ToggleCompanyMemberVisibilityDto, ToggleCompanyRoleVisibilityDto, TypeOfEmploymentEnum, TypeOfEmploymentEnumDto, TypeOfEmploymentEnums, UpdateAdminRoleDto, UpdateClientAccountStatusDto, UpdateClientDto, UpdateClientHiringModeEnum, UpdateClientHiringTypeEnum, UpdateCmsDto, UpdateCompanyMemberDto, UpdateCompanyProfileDto, UpdateCompanyRoleDto, UpdateFreelancerDto, UpdateFreelancerProfileDto, UpdateFreelancerTimesheetDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter, VerifyGuestOtpDto, VerifyGuestOtpPurposeEnum, ZoomMeetingLog };
|
|
2830
|
+
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, ClientCandidatePreference, ClientCandidatePreferenceEnum, ClientChangePasswordDto, ClientCreateAccountDto, ClientFreelancerRecommendation, ClientProfileQuestionDto, Cms, Commission, CommissionTypeEnum, CompanyMemberRole, CompanyOnboardingStepEnum, CompanyProfile, CompanyRole, CompanyRolePermission, CompanySkill, Contract, ContractRMQAdapter, ContractStatusEnum, ContractTCPAdapter, ContractTypeEnum, Country, CreateAdminRoleDto, CreateCheckoutSessionDto, CreateClientDto, CreateClientHiringModeEnum, CreateClientHiringTypeEnum, CreateCmsDto, CreateCompanyMemberDto, CreateCompanyRoleDto, CreateF2FInterviewDirectDto, CreateF2FInterviewDto, CreateF2FInterviewRescheduleRequestDto, CreateFreelancerDto, CreateFreelancerTimesheetDto, 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, InvoicePaymentStatusEnum, InvoiceStatusEnum, InvoiceTypeEnum, 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, STRIPE_PATTERN, SUBADMIN_PATTERN, SYSTEM_PREFERENCES_PATTERN, ScopeEnum$3 as ScopeEnum, SelectedAnswerTypeEnum, SendGuestOtpDto, SendGuestOtpPurposeEnum, SendGuestOtpScopeEnum, SendLoginOtpDto, SendLoginOtpPurposeEnum, SendLoginOtpScopeEnum, SenseloafLog, SequenceGenerator, SetPasswordDto, SignContractForClientDto, SignContractForFreelancerDto, Signature, Skill, State, Step, StripeLog, StripeWallet, StripeWalletAccountTypeEnum, StripeWalletOnboardingStatusEnum, StripeWalletTransaction, StripeWalletTransactionStatusEnum, StripeWalletTransactionTypeEnum, SystemPreference, SystemPreferenceDto, SystemPreferenceKey, TIMESHEET_CLIENT_PATTERN, TIMESHEET_FREELANCER_PATTERN, Timesheet, TimesheetLine, TimesheetLineHistory, TimesheetLineHistoryStatusEnum, TimesheetLineStatusEnum, TimesheetLogs, TimesheetStatusEnum, TimesheetSubmissionActionEnum, ToggleCompanyMemberVisibilityDto, ToggleCompanyRoleVisibilityDto, TypeOfEmploymentEnum, TypeOfEmploymentEnumDto, TypeOfEmploymentEnums, UpdateAdminRoleDto, UpdateClientAccountStatusDto, UpdateClientDto, UpdateClientHiringModeEnum, UpdateClientHiringTypeEnum, UpdateCmsDto, UpdateCompanyMemberDto, UpdateCompanyProfileDto, UpdateCompanyRoleDto, UpdateFreelancerDto, UpdateFreelancerProfileDto, UpdateFreelancerTimesheetDto, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter, VerifyGuestOtpDto, VerifyGuestOtpPurposeEnum, ZoomMeetingLog };
|
package/dist/index.js
CHANGED
|
@@ -168,7 +168,9 @@ __export(index_exports, {
|
|
|
168
168
|
InterviewSkill: () => InterviewSkill,
|
|
169
169
|
InterviewStatusEnum: () => InterviewStatusEnum,
|
|
170
170
|
Invoice: () => Invoice,
|
|
171
|
+
InvoicePaymentStatusEnum: () => InvoicePaymentStatusEnum,
|
|
171
172
|
InvoiceStatusEnum: () => InvoiceStatusEnum,
|
|
173
|
+
InvoiceTypeEnum: () => InvoiceTypeEnum,
|
|
172
174
|
JOB_PATTERN: () => JOB_PATTERN,
|
|
173
175
|
JOB_ROLE_PATTERN: () => JOB_ROLE_PATTERN,
|
|
174
176
|
Job: () => Job,
|
|
@@ -3331,7 +3333,7 @@ Timesheet = __decorateClass([
|
|
|
3331
3333
|
], Timesheet);
|
|
3332
3334
|
|
|
3333
3335
|
// src/entities/timesheet-line.entity.ts
|
|
3334
|
-
var
|
|
3336
|
+
var import_typeorm27 = require("typeorm");
|
|
3335
3337
|
|
|
3336
3338
|
// src/entities/timesheet-logs.entity.ts
|
|
3337
3339
|
var import_typeorm24 = require("typeorm");
|
|
@@ -3454,167 +3456,196 @@ TimesheetLineHistory = __decorateClass([
|
|
|
3454
3456
|
(0, import_typeorm25.Entity)("timesheet_line_histories")
|
|
3455
3457
|
], TimesheetLineHistory);
|
|
3456
3458
|
|
|
3457
|
-
// src/entities/
|
|
3458
|
-
var
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3459
|
+
// src/entities/invoice.entity.ts
|
|
3460
|
+
var import_typeorm26 = require("typeorm");
|
|
3461
|
+
var InvoiceTypeEnum = /* @__PURE__ */ ((InvoiceTypeEnum2) => {
|
|
3462
|
+
InvoiceTypeEnum2["WEEKLY"] = "WEEKLY";
|
|
3463
|
+
InvoiceTypeEnum2["MONTHLY"] = "MONTHLY";
|
|
3464
|
+
return InvoiceTypeEnum2;
|
|
3465
|
+
})(InvoiceTypeEnum || {});
|
|
3466
|
+
var InvoiceStatusEnum = /* @__PURE__ */ ((InvoiceStatusEnum2) => {
|
|
3467
|
+
InvoiceStatusEnum2["SUBMITTED"] = "SUBMITTED";
|
|
3468
|
+
InvoiceStatusEnum2["UNDER_REVIEW"] = "UNDER_REVIEW";
|
|
3469
|
+
InvoiceStatusEnum2["APPROVED"] = "APPROVED";
|
|
3470
|
+
InvoiceStatusEnum2["REJECTED"] = "REJECTED";
|
|
3471
|
+
return InvoiceStatusEnum2;
|
|
3472
|
+
})(InvoiceStatusEnum || {});
|
|
3473
|
+
var InvoicePaymentStatusEnum = /* @__PURE__ */ ((InvoicePaymentStatusEnum2) => {
|
|
3474
|
+
InvoicePaymentStatusEnum2["PENDING"] = "PENDING";
|
|
3475
|
+
InvoicePaymentStatusEnum2["OVERDUE"] = "OVERDUE";
|
|
3476
|
+
InvoicePaymentStatusEnum2["INTRANSACTION"] = "INTRANSACTION";
|
|
3477
|
+
InvoicePaymentStatusEnum2["PAID"] = "PAID";
|
|
3478
|
+
InvoicePaymentStatusEnum2["REFUNDED"] = "REFUNDED";
|
|
3479
|
+
return InvoicePaymentStatusEnum2;
|
|
3480
|
+
})(InvoicePaymentStatusEnum || {});
|
|
3481
|
+
var Invoice = class extends BaseEntity {
|
|
3470
3482
|
};
|
|
3483
|
+
__decorateClass([
|
|
3484
|
+
(0, import_typeorm26.Column)({ name: "timesheet_line_id", type: "integer", nullable: true }),
|
|
3485
|
+
(0, import_typeorm26.Index)()
|
|
3486
|
+
], Invoice.prototype, "timesheetLineId", 2);
|
|
3487
|
+
__decorateClass([
|
|
3488
|
+
(0, import_typeorm26.ManyToOne)(() => TimesheetLine, (timesheetLine) => timesheetLine.invoice),
|
|
3489
|
+
(0, import_typeorm26.JoinColumn)({ name: "timesheet_line_id" })
|
|
3490
|
+
], Invoice.prototype, "timesheetLine", 2);
|
|
3471
3491
|
__decorateClass([
|
|
3472
3492
|
(0, import_typeorm26.Column)({ name: "job_id", type: "integer", nullable: true }),
|
|
3473
3493
|
(0, import_typeorm26.Index)()
|
|
3474
|
-
],
|
|
3494
|
+
], Invoice.prototype, "jobId", 2);
|
|
3475
3495
|
__decorateClass([
|
|
3476
|
-
(0, import_typeorm26.ManyToOne)(() => Job, (job) => job.
|
|
3496
|
+
(0, import_typeorm26.ManyToOne)(() => Job, (job) => job.invoice),
|
|
3477
3497
|
(0, import_typeorm26.JoinColumn)({ name: "job_id" })
|
|
3478
|
-
],
|
|
3498
|
+
], Invoice.prototype, "job", 2);
|
|
3479
3499
|
__decorateClass([
|
|
3480
3500
|
(0, import_typeorm26.Column)({ name: "client_id", type: "integer", nullable: true }),
|
|
3481
3501
|
(0, import_typeorm26.Index)()
|
|
3482
|
-
],
|
|
3502
|
+
], Invoice.prototype, "clientId", 2);
|
|
3483
3503
|
__decorateClass([
|
|
3484
|
-
(0, import_typeorm26.ManyToOne)(() => User, (user) => user.
|
|
3504
|
+
(0, import_typeorm26.ManyToOne)(() => User, (user) => user.clientInvoice),
|
|
3485
3505
|
(0, import_typeorm26.JoinColumn)({ name: "client_id" })
|
|
3486
|
-
],
|
|
3506
|
+
], Invoice.prototype, "client", 2);
|
|
3487
3507
|
__decorateClass([
|
|
3488
3508
|
(0, import_typeorm26.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
3489
3509
|
(0, import_typeorm26.Index)()
|
|
3490
|
-
],
|
|
3510
|
+
], Invoice.prototype, "freelancerId", 2);
|
|
3491
3511
|
__decorateClass([
|
|
3492
|
-
(0, import_typeorm26.ManyToOne)(() => User, (user) => user.
|
|
3512
|
+
(0, import_typeorm26.ManyToOne)(() => User, (user) => user.freelancerInvoice),
|
|
3493
3513
|
(0, import_typeorm26.JoinColumn)({ name: "freelancer_id" })
|
|
3494
|
-
],
|
|
3514
|
+
], Invoice.prototype, "freelancer", 2);
|
|
3495
3515
|
__decorateClass([
|
|
3496
|
-
(0, import_typeorm26.
|
|
3497
|
-
],
|
|
3516
|
+
(0, import_typeorm26.Column)({ name: "invoice_unique_id", type: "varchar", nullable: true })
|
|
3517
|
+
], Invoice.prototype, "invoiceUniqueId", 2);
|
|
3498
3518
|
__decorateClass([
|
|
3499
|
-
(0, import_typeorm26.
|
|
3500
|
-
|
|
3519
|
+
(0, import_typeorm26.Column)({
|
|
3520
|
+
name: "issued_at",
|
|
3521
|
+
type: "date",
|
|
3522
|
+
nullable: true
|
|
3523
|
+
})
|
|
3524
|
+
], Invoice.prototype, "issuedAt", 2);
|
|
3501
3525
|
__decorateClass([
|
|
3502
|
-
(0, import_typeorm26.Column)({
|
|
3503
|
-
|
|
3526
|
+
(0, import_typeorm26.Column)({
|
|
3527
|
+
name: "due_at",
|
|
3528
|
+
type: "date",
|
|
3529
|
+
nullable: true
|
|
3530
|
+
})
|
|
3531
|
+
], Invoice.prototype, "dueAt", 2);
|
|
3504
3532
|
__decorateClass([
|
|
3505
3533
|
(0, import_typeorm26.Column)({
|
|
3506
|
-
name: "
|
|
3534
|
+
name: "billing_cycle_from",
|
|
3507
3535
|
type: "date",
|
|
3508
3536
|
nullable: true
|
|
3509
3537
|
})
|
|
3510
|
-
],
|
|
3538
|
+
], Invoice.prototype, "billingCycleFrom", 2);
|
|
3511
3539
|
__decorateClass([
|
|
3512
3540
|
(0, import_typeorm26.Column)({
|
|
3513
|
-
name: "
|
|
3541
|
+
name: "billing_cycle_to",
|
|
3514
3542
|
type: "date",
|
|
3515
3543
|
nullable: true
|
|
3516
3544
|
})
|
|
3517
|
-
],
|
|
3545
|
+
], Invoice.prototype, "billingCycleTo", 2);
|
|
3518
3546
|
__decorateClass([
|
|
3519
|
-
(0, import_typeorm26.Column)({ name: "
|
|
3520
|
-
],
|
|
3547
|
+
(0, import_typeorm26.Column)({ name: "billing_hours", type: "varchar", nullable: true })
|
|
3548
|
+
], Invoice.prototype, "billingHours", 2);
|
|
3521
3549
|
__decorateClass([
|
|
3522
|
-
(0, import_typeorm26.Column)({ name: "
|
|
3523
|
-
],
|
|
3550
|
+
(0, import_typeorm26.Column)({ name: "hourly_rate", type: "varchar", nullable: true })
|
|
3551
|
+
], Invoice.prototype, "hourlyRate", 2);
|
|
3524
3552
|
__decorateClass([
|
|
3525
|
-
(0, import_typeorm26.Column)({ name: "
|
|
3526
|
-
],
|
|
3553
|
+
(0, import_typeorm26.Column)({ name: "billing_amount", type: "varchar", nullable: true })
|
|
3554
|
+
], Invoice.prototype, "billingAmount", 2);
|
|
3527
3555
|
__decorateClass([
|
|
3528
|
-
(0, import_typeorm26.Column)({ name: "
|
|
3529
|
-
],
|
|
3530
|
-
|
|
3531
|
-
(0, import_typeorm26.
|
|
3532
|
-
],
|
|
3556
|
+
(0, import_typeorm26.Column)({ name: "invoice_type", type: "enum", enum: InvoiceTypeEnum, nullable: true })
|
|
3557
|
+
], Invoice.prototype, "invoiceType", 2);
|
|
3558
|
+
__decorateClass([
|
|
3559
|
+
(0, import_typeorm26.Column)({ name: "status", type: "enum", enum: InvoiceStatusEnum, nullable: true })
|
|
3560
|
+
], Invoice.prototype, "status", 2);
|
|
3561
|
+
__decorateClass([
|
|
3562
|
+
(0, import_typeorm26.Column)({ name: "payment_status", type: "enum", enum: InvoicePaymentStatusEnum, nullable: true })
|
|
3563
|
+
], Invoice.prototype, "paymentStatus", 2);
|
|
3564
|
+
Invoice = __decorateClass([
|
|
3565
|
+
(0, import_typeorm26.Entity)("invoices")
|
|
3566
|
+
], Invoice);
|
|
3533
3567
|
|
|
3534
|
-
// src/entities/
|
|
3535
|
-
var
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
return
|
|
3545
|
-
})(
|
|
3546
|
-
var
|
|
3568
|
+
// src/entities/timesheet-line.entity.ts
|
|
3569
|
+
var TimesheetLineStatusEnum = /* @__PURE__ */ ((TimesheetLineStatusEnum2) => {
|
|
3570
|
+
TimesheetLineStatusEnum2["DRAFT"] = "DRAFT";
|
|
3571
|
+
TimesheetLineStatusEnum2["SEND"] = "SEND";
|
|
3572
|
+
TimesheetLineStatusEnum2["SEND_BACK"] = "SEND_BACK";
|
|
3573
|
+
TimesheetLineStatusEnum2["APPROVED"] = "APPROVED";
|
|
3574
|
+
TimesheetLineStatusEnum2["REJECTED"] = "REJECTED";
|
|
3575
|
+
TimesheetLineStatusEnum2["PAID"] = "PAID";
|
|
3576
|
+
TimesheetLineStatusEnum2["MISSING"] = "MISSING";
|
|
3577
|
+
TimesheetLineStatusEnum2["ACTIVE"] = "ACTIVE";
|
|
3578
|
+
return TimesheetLineStatusEnum2;
|
|
3579
|
+
})(TimesheetLineStatusEnum || {});
|
|
3580
|
+
var TimesheetLine = class extends BaseEntity {
|
|
3547
3581
|
};
|
|
3548
3582
|
__decorateClass([
|
|
3549
3583
|
(0, import_typeorm27.Column)({ name: "job_id", type: "integer", nullable: true }),
|
|
3550
3584
|
(0, import_typeorm27.Index)()
|
|
3551
|
-
],
|
|
3585
|
+
], TimesheetLine.prototype, "jobId", 2);
|
|
3552
3586
|
__decorateClass([
|
|
3553
|
-
(0, import_typeorm27.ManyToOne)(() => Job, (job) => job.
|
|
3587
|
+
(0, import_typeorm27.ManyToOne)(() => Job, (job) => job.timesheetLine),
|
|
3554
3588
|
(0, import_typeorm27.JoinColumn)({ name: "job_id" })
|
|
3555
|
-
],
|
|
3589
|
+
], TimesheetLine.prototype, "job", 2);
|
|
3556
3590
|
__decorateClass([
|
|
3557
3591
|
(0, import_typeorm27.Column)({ name: "client_id", type: "integer", nullable: true }),
|
|
3558
3592
|
(0, import_typeorm27.Index)()
|
|
3559
|
-
],
|
|
3593
|
+
], TimesheetLine.prototype, "clientId", 2);
|
|
3560
3594
|
__decorateClass([
|
|
3561
|
-
(0, import_typeorm27.ManyToOne)(() => User, (user) => user.
|
|
3595
|
+
(0, import_typeorm27.ManyToOne)(() => User, (user) => user.clientTimesheetLine),
|
|
3562
3596
|
(0, import_typeorm27.JoinColumn)({ name: "client_id" })
|
|
3563
|
-
],
|
|
3597
|
+
], TimesheetLine.prototype, "client", 2);
|
|
3564
3598
|
__decorateClass([
|
|
3565
3599
|
(0, import_typeorm27.Column)({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
3566
3600
|
(0, import_typeorm27.Index)()
|
|
3567
|
-
],
|
|
3601
|
+
], TimesheetLine.prototype, "freelancerId", 2);
|
|
3568
3602
|
__decorateClass([
|
|
3569
|
-
(0, import_typeorm27.ManyToOne)(() => User, (user) => user.
|
|
3603
|
+
(0, import_typeorm27.ManyToOne)(() => User, (user) => user.freelancerTimesheetLine),
|
|
3570
3604
|
(0, import_typeorm27.JoinColumn)({ name: "freelancer_id" })
|
|
3571
|
-
],
|
|
3605
|
+
], TimesheetLine.prototype, "freelancer", 2);
|
|
3572
3606
|
__decorateClass([
|
|
3573
|
-
(0, import_typeorm27.
|
|
3574
|
-
],
|
|
3607
|
+
(0, import_typeorm27.OneToMany)(() => TimesheetLogs, (timesheetLogs) => timesheetLogs.timesheetLine)
|
|
3608
|
+
], TimesheetLine.prototype, "timesheetLogs", 2);
|
|
3575
3609
|
__decorateClass([
|
|
3576
|
-
(0, import_typeorm27.
|
|
3577
|
-
|
|
3578
|
-
type: "date",
|
|
3579
|
-
nullable: true
|
|
3580
|
-
})
|
|
3581
|
-
], Invoice.prototype, "issuedAt", 2);
|
|
3610
|
+
(0, import_typeorm27.OneToMany)(() => TimesheetLineHistory, (timesheetLineHistory) => timesheetLineHistory.timesheetLine)
|
|
3611
|
+
], TimesheetLine.prototype, "timesheetLineHistory", 2);
|
|
3582
3612
|
__decorateClass([
|
|
3583
|
-
(0, import_typeorm27.Column)({
|
|
3584
|
-
|
|
3585
|
-
type: "date",
|
|
3586
|
-
nullable: true
|
|
3587
|
-
})
|
|
3588
|
-
], Invoice.prototype, "dueAt", 2);
|
|
3613
|
+
(0, import_typeorm27.Column)({ name: "unique_id", type: "varchar", nullable: true })
|
|
3614
|
+
], TimesheetLine.prototype, "uniqueId", 2);
|
|
3589
3615
|
__decorateClass([
|
|
3590
3616
|
(0, import_typeorm27.Column)({
|
|
3591
|
-
name: "
|
|
3617
|
+
name: "week_start_date",
|
|
3592
3618
|
type: "date",
|
|
3593
3619
|
nullable: true
|
|
3594
3620
|
})
|
|
3595
|
-
],
|
|
3621
|
+
], TimesheetLine.prototype, "weekStartDate", 2);
|
|
3596
3622
|
__decorateClass([
|
|
3597
3623
|
(0, import_typeorm27.Column)({
|
|
3598
|
-
name: "
|
|
3624
|
+
name: "week_end_date",
|
|
3599
3625
|
type: "date",
|
|
3600
3626
|
nullable: true
|
|
3601
3627
|
})
|
|
3602
|
-
],
|
|
3628
|
+
], TimesheetLine.prototype, "weekEndDate", 2);
|
|
3603
3629
|
__decorateClass([
|
|
3604
|
-
(0, import_typeorm27.Column)({ name: "
|
|
3605
|
-
],
|
|
3630
|
+
(0, import_typeorm27.Column)({ name: "status", type: "enum", enum: TimesheetLineStatusEnum, nullable: true })
|
|
3631
|
+
], TimesheetLine.prototype, "status", 2);
|
|
3606
3632
|
__decorateClass([
|
|
3607
|
-
(0, import_typeorm27.Column)({ name: "
|
|
3608
|
-
],
|
|
3633
|
+
(0, import_typeorm27.Column)({ name: "weekly_hours_sum", type: "varchar", nullable: true })
|
|
3634
|
+
], TimesheetLine.prototype, "weeklyHoursSum", 2);
|
|
3609
3635
|
__decorateClass([
|
|
3610
|
-
(0, import_typeorm27.Column)({ name: "
|
|
3611
|
-
],
|
|
3636
|
+
(0, import_typeorm27.Column)({ name: "is_invoice_genrated", type: "boolean", default: false })
|
|
3637
|
+
], TimesheetLine.prototype, "isInvoiceGenrated", 2);
|
|
3612
3638
|
__decorateClass([
|
|
3613
|
-
(0, import_typeorm27.Column)({ name: "
|
|
3614
|
-
],
|
|
3615
|
-
|
|
3616
|
-
(0, import_typeorm27.
|
|
3617
|
-
|
|
3639
|
+
(0, import_typeorm27.Column)({ name: "is_invoice_approved", type: "boolean", default: false })
|
|
3640
|
+
], TimesheetLine.prototype, "isInvoiceApproved", 2);
|
|
3641
|
+
__decorateClass([
|
|
3642
|
+
(0, import_typeorm27.OneToMany)(() => Invoice, (invoice) => invoice.timesheetLine, {
|
|
3643
|
+
cascade: true
|
|
3644
|
+
})
|
|
3645
|
+
], TimesheetLine.prototype, "invoice", 2);
|
|
3646
|
+
TimesheetLine = __decorateClass([
|
|
3647
|
+
(0, import_typeorm27.Entity)("timesheet_lines")
|
|
3648
|
+
], TimesheetLine);
|
|
3618
3649
|
|
|
3619
3650
|
// src/entities/job.entity.ts
|
|
3620
3651
|
var JobLocationEnum = /* @__PURE__ */ ((JobLocationEnum2) => {
|
|
@@ -7577,7 +7608,9 @@ StripeLog = __decorateClass([
|
|
|
7577
7608
|
InterviewSkill,
|
|
7578
7609
|
InterviewStatusEnum,
|
|
7579
7610
|
Invoice,
|
|
7611
|
+
InvoicePaymentStatusEnum,
|
|
7580
7612
|
InvoiceStatusEnum,
|
|
7613
|
+
InvoiceTypeEnum,
|
|
7581
7614
|
JOB_PATTERN,
|
|
7582
7615
|
JOB_ROLE_PATTERN,
|
|
7583
7616
|
Job,
|
package/dist/index.mjs
CHANGED
|
@@ -3264,7 +3264,7 @@ Timesheet = __decorateClass([
|
|
|
3264
3264
|
], Timesheet);
|
|
3265
3265
|
|
|
3266
3266
|
// src/entities/timesheet-line.entity.ts
|
|
3267
|
-
import { Entity as
|
|
3267
|
+
import { Entity as Entity26, Column as Column27, Index as Index20, JoinColumn as JoinColumn25, OneToMany as OneToMany9, ManyToOne as ManyToOne25 } from "typeorm";
|
|
3268
3268
|
|
|
3269
3269
|
// src/entities/timesheet-logs.entity.ts
|
|
3270
3270
|
import { Entity as Entity23, Column as Column24, Index as Index17, ManyToOne as ManyToOne22, JoinColumn as JoinColumn22 } from "typeorm";
|
|
@@ -3387,167 +3387,196 @@ TimesheetLineHistory = __decorateClass([
|
|
|
3387
3387
|
Entity24("timesheet_line_histories")
|
|
3388
3388
|
], TimesheetLineHistory);
|
|
3389
3389
|
|
|
3390
|
-
// src/entities/
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3390
|
+
// src/entities/invoice.entity.ts
|
|
3391
|
+
import { Entity as Entity25, Column as Column26, Index as Index19, JoinColumn as JoinColumn24, ManyToOne as ManyToOne24 } from "typeorm";
|
|
3392
|
+
var InvoiceTypeEnum = /* @__PURE__ */ ((InvoiceTypeEnum2) => {
|
|
3393
|
+
InvoiceTypeEnum2["WEEKLY"] = "WEEKLY";
|
|
3394
|
+
InvoiceTypeEnum2["MONTHLY"] = "MONTHLY";
|
|
3395
|
+
return InvoiceTypeEnum2;
|
|
3396
|
+
})(InvoiceTypeEnum || {});
|
|
3397
|
+
var InvoiceStatusEnum = /* @__PURE__ */ ((InvoiceStatusEnum2) => {
|
|
3398
|
+
InvoiceStatusEnum2["SUBMITTED"] = "SUBMITTED";
|
|
3399
|
+
InvoiceStatusEnum2["UNDER_REVIEW"] = "UNDER_REVIEW";
|
|
3400
|
+
InvoiceStatusEnum2["APPROVED"] = "APPROVED";
|
|
3401
|
+
InvoiceStatusEnum2["REJECTED"] = "REJECTED";
|
|
3402
|
+
return InvoiceStatusEnum2;
|
|
3403
|
+
})(InvoiceStatusEnum || {});
|
|
3404
|
+
var InvoicePaymentStatusEnum = /* @__PURE__ */ ((InvoicePaymentStatusEnum2) => {
|
|
3405
|
+
InvoicePaymentStatusEnum2["PENDING"] = "PENDING";
|
|
3406
|
+
InvoicePaymentStatusEnum2["OVERDUE"] = "OVERDUE";
|
|
3407
|
+
InvoicePaymentStatusEnum2["INTRANSACTION"] = "INTRANSACTION";
|
|
3408
|
+
InvoicePaymentStatusEnum2["PAID"] = "PAID";
|
|
3409
|
+
InvoicePaymentStatusEnum2["REFUNDED"] = "REFUNDED";
|
|
3410
|
+
return InvoicePaymentStatusEnum2;
|
|
3411
|
+
})(InvoicePaymentStatusEnum || {});
|
|
3412
|
+
var Invoice = class extends BaseEntity {
|
|
3403
3413
|
};
|
|
3414
|
+
__decorateClass([
|
|
3415
|
+
Column26({ name: "timesheet_line_id", type: "integer", nullable: true }),
|
|
3416
|
+
Index19()
|
|
3417
|
+
], Invoice.prototype, "timesheetLineId", 2);
|
|
3418
|
+
__decorateClass([
|
|
3419
|
+
ManyToOne24(() => TimesheetLine, (timesheetLine) => timesheetLine.invoice),
|
|
3420
|
+
JoinColumn24({ name: "timesheet_line_id" })
|
|
3421
|
+
], Invoice.prototype, "timesheetLine", 2);
|
|
3404
3422
|
__decorateClass([
|
|
3405
3423
|
Column26({ name: "job_id", type: "integer", nullable: true }),
|
|
3406
3424
|
Index19()
|
|
3407
|
-
],
|
|
3425
|
+
], Invoice.prototype, "jobId", 2);
|
|
3408
3426
|
__decorateClass([
|
|
3409
|
-
ManyToOne24(() => Job, (job) => job.
|
|
3427
|
+
ManyToOne24(() => Job, (job) => job.invoice),
|
|
3410
3428
|
JoinColumn24({ name: "job_id" })
|
|
3411
|
-
],
|
|
3429
|
+
], Invoice.prototype, "job", 2);
|
|
3412
3430
|
__decorateClass([
|
|
3413
3431
|
Column26({ name: "client_id", type: "integer", nullable: true }),
|
|
3414
3432
|
Index19()
|
|
3415
|
-
],
|
|
3433
|
+
], Invoice.prototype, "clientId", 2);
|
|
3416
3434
|
__decorateClass([
|
|
3417
|
-
ManyToOne24(() => User, (user) => user.
|
|
3435
|
+
ManyToOne24(() => User, (user) => user.clientInvoice),
|
|
3418
3436
|
JoinColumn24({ name: "client_id" })
|
|
3419
|
-
],
|
|
3437
|
+
], Invoice.prototype, "client", 2);
|
|
3420
3438
|
__decorateClass([
|
|
3421
3439
|
Column26({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
3422
3440
|
Index19()
|
|
3423
|
-
],
|
|
3441
|
+
], Invoice.prototype, "freelancerId", 2);
|
|
3424
3442
|
__decorateClass([
|
|
3425
|
-
ManyToOne24(() => User, (user) => user.
|
|
3443
|
+
ManyToOne24(() => User, (user) => user.freelancerInvoice),
|
|
3426
3444
|
JoinColumn24({ name: "freelancer_id" })
|
|
3427
|
-
],
|
|
3445
|
+
], Invoice.prototype, "freelancer", 2);
|
|
3428
3446
|
__decorateClass([
|
|
3429
|
-
|
|
3430
|
-
],
|
|
3447
|
+
Column26({ name: "invoice_unique_id", type: "varchar", nullable: true })
|
|
3448
|
+
], Invoice.prototype, "invoiceUniqueId", 2);
|
|
3431
3449
|
__decorateClass([
|
|
3432
|
-
|
|
3433
|
-
|
|
3450
|
+
Column26({
|
|
3451
|
+
name: "issued_at",
|
|
3452
|
+
type: "date",
|
|
3453
|
+
nullable: true
|
|
3454
|
+
})
|
|
3455
|
+
], Invoice.prototype, "issuedAt", 2);
|
|
3434
3456
|
__decorateClass([
|
|
3435
|
-
Column26({
|
|
3436
|
-
|
|
3457
|
+
Column26({
|
|
3458
|
+
name: "due_at",
|
|
3459
|
+
type: "date",
|
|
3460
|
+
nullable: true
|
|
3461
|
+
})
|
|
3462
|
+
], Invoice.prototype, "dueAt", 2);
|
|
3437
3463
|
__decorateClass([
|
|
3438
3464
|
Column26({
|
|
3439
|
-
name: "
|
|
3465
|
+
name: "billing_cycle_from",
|
|
3440
3466
|
type: "date",
|
|
3441
3467
|
nullable: true
|
|
3442
3468
|
})
|
|
3443
|
-
],
|
|
3469
|
+
], Invoice.prototype, "billingCycleFrom", 2);
|
|
3444
3470
|
__decorateClass([
|
|
3445
3471
|
Column26({
|
|
3446
|
-
name: "
|
|
3472
|
+
name: "billing_cycle_to",
|
|
3447
3473
|
type: "date",
|
|
3448
3474
|
nullable: true
|
|
3449
3475
|
})
|
|
3450
|
-
],
|
|
3476
|
+
], Invoice.prototype, "billingCycleTo", 2);
|
|
3451
3477
|
__decorateClass([
|
|
3452
|
-
Column26({ name: "
|
|
3453
|
-
],
|
|
3478
|
+
Column26({ name: "billing_hours", type: "varchar", nullable: true })
|
|
3479
|
+
], Invoice.prototype, "billingHours", 2);
|
|
3454
3480
|
__decorateClass([
|
|
3455
|
-
Column26({ name: "
|
|
3456
|
-
],
|
|
3481
|
+
Column26({ name: "hourly_rate", type: "varchar", nullable: true })
|
|
3482
|
+
], Invoice.prototype, "hourlyRate", 2);
|
|
3457
3483
|
__decorateClass([
|
|
3458
|
-
Column26({ name: "
|
|
3459
|
-
],
|
|
3484
|
+
Column26({ name: "billing_amount", type: "varchar", nullable: true })
|
|
3485
|
+
], Invoice.prototype, "billingAmount", 2);
|
|
3460
3486
|
__decorateClass([
|
|
3461
|
-
Column26({ name: "
|
|
3462
|
-
],
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
],
|
|
3487
|
+
Column26({ name: "invoice_type", type: "enum", enum: InvoiceTypeEnum, nullable: true })
|
|
3488
|
+
], Invoice.prototype, "invoiceType", 2);
|
|
3489
|
+
__decorateClass([
|
|
3490
|
+
Column26({ name: "status", type: "enum", enum: InvoiceStatusEnum, nullable: true })
|
|
3491
|
+
], Invoice.prototype, "status", 2);
|
|
3492
|
+
__decorateClass([
|
|
3493
|
+
Column26({ name: "payment_status", type: "enum", enum: InvoicePaymentStatusEnum, nullable: true })
|
|
3494
|
+
], Invoice.prototype, "paymentStatus", 2);
|
|
3495
|
+
Invoice = __decorateClass([
|
|
3496
|
+
Entity25("invoices")
|
|
3497
|
+
], Invoice);
|
|
3466
3498
|
|
|
3467
|
-
// src/entities/
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
return
|
|
3478
|
-
})(
|
|
3479
|
-
var
|
|
3499
|
+
// src/entities/timesheet-line.entity.ts
|
|
3500
|
+
var TimesheetLineStatusEnum = /* @__PURE__ */ ((TimesheetLineStatusEnum2) => {
|
|
3501
|
+
TimesheetLineStatusEnum2["DRAFT"] = "DRAFT";
|
|
3502
|
+
TimesheetLineStatusEnum2["SEND"] = "SEND";
|
|
3503
|
+
TimesheetLineStatusEnum2["SEND_BACK"] = "SEND_BACK";
|
|
3504
|
+
TimesheetLineStatusEnum2["APPROVED"] = "APPROVED";
|
|
3505
|
+
TimesheetLineStatusEnum2["REJECTED"] = "REJECTED";
|
|
3506
|
+
TimesheetLineStatusEnum2["PAID"] = "PAID";
|
|
3507
|
+
TimesheetLineStatusEnum2["MISSING"] = "MISSING";
|
|
3508
|
+
TimesheetLineStatusEnum2["ACTIVE"] = "ACTIVE";
|
|
3509
|
+
return TimesheetLineStatusEnum2;
|
|
3510
|
+
})(TimesheetLineStatusEnum || {});
|
|
3511
|
+
var TimesheetLine = class extends BaseEntity {
|
|
3480
3512
|
};
|
|
3481
3513
|
__decorateClass([
|
|
3482
3514
|
Column27({ name: "job_id", type: "integer", nullable: true }),
|
|
3483
3515
|
Index20()
|
|
3484
|
-
],
|
|
3516
|
+
], TimesheetLine.prototype, "jobId", 2);
|
|
3485
3517
|
__decorateClass([
|
|
3486
|
-
ManyToOne25(() => Job, (job) => job.
|
|
3518
|
+
ManyToOne25(() => Job, (job) => job.timesheetLine),
|
|
3487
3519
|
JoinColumn25({ name: "job_id" })
|
|
3488
|
-
],
|
|
3520
|
+
], TimesheetLine.prototype, "job", 2);
|
|
3489
3521
|
__decorateClass([
|
|
3490
3522
|
Column27({ name: "client_id", type: "integer", nullable: true }),
|
|
3491
3523
|
Index20()
|
|
3492
|
-
],
|
|
3524
|
+
], TimesheetLine.prototype, "clientId", 2);
|
|
3493
3525
|
__decorateClass([
|
|
3494
|
-
ManyToOne25(() => User, (user) => user.
|
|
3526
|
+
ManyToOne25(() => User, (user) => user.clientTimesheetLine),
|
|
3495
3527
|
JoinColumn25({ name: "client_id" })
|
|
3496
|
-
],
|
|
3528
|
+
], TimesheetLine.prototype, "client", 2);
|
|
3497
3529
|
__decorateClass([
|
|
3498
3530
|
Column27({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
3499
3531
|
Index20()
|
|
3500
|
-
],
|
|
3532
|
+
], TimesheetLine.prototype, "freelancerId", 2);
|
|
3501
3533
|
__decorateClass([
|
|
3502
|
-
ManyToOne25(() => User, (user) => user.
|
|
3534
|
+
ManyToOne25(() => User, (user) => user.freelancerTimesheetLine),
|
|
3503
3535
|
JoinColumn25({ name: "freelancer_id" })
|
|
3504
|
-
],
|
|
3536
|
+
], TimesheetLine.prototype, "freelancer", 2);
|
|
3505
3537
|
__decorateClass([
|
|
3506
|
-
|
|
3507
|
-
],
|
|
3538
|
+
OneToMany9(() => TimesheetLogs, (timesheetLogs) => timesheetLogs.timesheetLine)
|
|
3539
|
+
], TimesheetLine.prototype, "timesheetLogs", 2);
|
|
3508
3540
|
__decorateClass([
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
type: "date",
|
|
3512
|
-
nullable: true
|
|
3513
|
-
})
|
|
3514
|
-
], Invoice.prototype, "issuedAt", 2);
|
|
3541
|
+
OneToMany9(() => TimesheetLineHistory, (timesheetLineHistory) => timesheetLineHistory.timesheetLine)
|
|
3542
|
+
], TimesheetLine.prototype, "timesheetLineHistory", 2);
|
|
3515
3543
|
__decorateClass([
|
|
3516
|
-
Column27({
|
|
3517
|
-
|
|
3518
|
-
type: "date",
|
|
3519
|
-
nullable: true
|
|
3520
|
-
})
|
|
3521
|
-
], Invoice.prototype, "dueAt", 2);
|
|
3544
|
+
Column27({ name: "unique_id", type: "varchar", nullable: true })
|
|
3545
|
+
], TimesheetLine.prototype, "uniqueId", 2);
|
|
3522
3546
|
__decorateClass([
|
|
3523
3547
|
Column27({
|
|
3524
|
-
name: "
|
|
3548
|
+
name: "week_start_date",
|
|
3525
3549
|
type: "date",
|
|
3526
3550
|
nullable: true
|
|
3527
3551
|
})
|
|
3528
|
-
],
|
|
3552
|
+
], TimesheetLine.prototype, "weekStartDate", 2);
|
|
3529
3553
|
__decorateClass([
|
|
3530
3554
|
Column27({
|
|
3531
|
-
name: "
|
|
3555
|
+
name: "week_end_date",
|
|
3532
3556
|
type: "date",
|
|
3533
3557
|
nullable: true
|
|
3534
3558
|
})
|
|
3535
|
-
],
|
|
3559
|
+
], TimesheetLine.prototype, "weekEndDate", 2);
|
|
3536
3560
|
__decorateClass([
|
|
3537
|
-
Column27({ name: "
|
|
3538
|
-
],
|
|
3561
|
+
Column27({ name: "status", type: "enum", enum: TimesheetLineStatusEnum, nullable: true })
|
|
3562
|
+
], TimesheetLine.prototype, "status", 2);
|
|
3539
3563
|
__decorateClass([
|
|
3540
|
-
Column27({ name: "
|
|
3541
|
-
],
|
|
3564
|
+
Column27({ name: "weekly_hours_sum", type: "varchar", nullable: true })
|
|
3565
|
+
], TimesheetLine.prototype, "weeklyHoursSum", 2);
|
|
3542
3566
|
__decorateClass([
|
|
3543
|
-
Column27({ name: "
|
|
3544
|
-
],
|
|
3567
|
+
Column27({ name: "is_invoice_genrated", type: "boolean", default: false })
|
|
3568
|
+
], TimesheetLine.prototype, "isInvoiceGenrated", 2);
|
|
3545
3569
|
__decorateClass([
|
|
3546
|
-
Column27({ name: "
|
|
3547
|
-
],
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3570
|
+
Column27({ name: "is_invoice_approved", type: "boolean", default: false })
|
|
3571
|
+
], TimesheetLine.prototype, "isInvoiceApproved", 2);
|
|
3572
|
+
__decorateClass([
|
|
3573
|
+
OneToMany9(() => Invoice, (invoice) => invoice.timesheetLine, {
|
|
3574
|
+
cascade: true
|
|
3575
|
+
})
|
|
3576
|
+
], TimesheetLine.prototype, "invoice", 2);
|
|
3577
|
+
TimesheetLine = __decorateClass([
|
|
3578
|
+
Entity26("timesheet_lines")
|
|
3579
|
+
], TimesheetLine);
|
|
3551
3580
|
|
|
3552
3581
|
// src/entities/job.entity.ts
|
|
3553
3582
|
var JobLocationEnum = /* @__PURE__ */ ((JobLocationEnum2) => {
|
|
@@ -7742,7 +7771,9 @@ export {
|
|
|
7742
7771
|
InterviewSkill,
|
|
7743
7772
|
InterviewStatusEnum,
|
|
7744
7773
|
Invoice,
|
|
7774
|
+
InvoicePaymentStatusEnum,
|
|
7745
7775
|
InvoiceStatusEnum,
|
|
7776
|
+
InvoiceTypeEnum,
|
|
7746
7777
|
JOB_PATTERN,
|
|
7747
7778
|
JOB_ROLE_PATTERN,
|
|
7748
7779
|
Job,
|