@experts_hub/shared 1.0.435 → 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 +168 -135
- package/dist/index.mjs +127 -96
- 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,
|
|
@@ -1335,8 +1337,8 @@ __decorateClass([
|
|
|
1335
1337
|
], JobAdditionalCommentDto.prototype, "additionalComment", 2);
|
|
1336
1338
|
|
|
1337
1339
|
// src/modules/job/dto/job-description.dto.ts
|
|
1338
|
-
var import_types = require("class-transformer/types");
|
|
1339
1340
|
var import_class_validator35 = require("class-validator");
|
|
1341
|
+
var import_class_transformer3 = require("class-transformer");
|
|
1340
1342
|
var JobDescriptionDto = class {
|
|
1341
1343
|
constructor() {
|
|
1342
1344
|
this.isDraft = false;
|
|
@@ -1344,7 +1346,7 @@ var JobDescriptionDto = class {
|
|
|
1344
1346
|
};
|
|
1345
1347
|
__decorateClass([
|
|
1346
1348
|
(0, import_class_validator35.IsOptional)(),
|
|
1347
|
-
(0,
|
|
1349
|
+
(0, import_class_transformer3.Type)(() => Boolean)
|
|
1348
1350
|
], JobDescriptionDto.prototype, "isDraft", 2);
|
|
1349
1351
|
__decorateClass([
|
|
1350
1352
|
(0, import_class_validator35.IsNotEmpty)({ message: "Please enter job description" }),
|
|
@@ -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) => {
|
|
@@ -5295,7 +5326,7 @@ var FREELANCER_EXPERIENCE_PATTERN = {
|
|
|
5295
5326
|
|
|
5296
5327
|
// src/modules/user/freelancer-experience/dto/freelancer-experience.dto.ts
|
|
5297
5328
|
var import_class_validator46 = require("class-validator");
|
|
5298
|
-
var
|
|
5329
|
+
var import_class_transformer4 = require("class-transformer");
|
|
5299
5330
|
var ExperienceDto = class {
|
|
5300
5331
|
};
|
|
5301
5332
|
__decorateClass([
|
|
@@ -5323,7 +5354,7 @@ var FreelancerExperienceDto = class {
|
|
|
5323
5354
|
__decorateClass([
|
|
5324
5355
|
(0, import_class_validator46.ValidateNested)({ each: true }),
|
|
5325
5356
|
(0, import_class_validator46.ArrayMinSize)(1, { message: "At least one experience is required." }),
|
|
5326
|
-
(0,
|
|
5357
|
+
(0, import_class_transformer4.Type)(() => ExperienceDto)
|
|
5327
5358
|
], FreelancerExperienceDto.prototype, "experiences", 2);
|
|
5328
5359
|
|
|
5329
5360
|
// src/modules/company-member/pattern/pattern.ts
|
|
@@ -5386,7 +5417,7 @@ var FREELANCER_EDUCATION_PATTERN = {
|
|
|
5386
5417
|
|
|
5387
5418
|
// src/modules/user/freelancer-education/dto/freelancer-education.dto.ts
|
|
5388
5419
|
var import_class_validator50 = require("class-validator");
|
|
5389
|
-
var
|
|
5420
|
+
var import_class_transformer5 = require("class-transformer");
|
|
5390
5421
|
var EducationDto = class {
|
|
5391
5422
|
};
|
|
5392
5423
|
__decorateClass([
|
|
@@ -5410,7 +5441,7 @@ __decorateClass([
|
|
|
5410
5441
|
(0, import_class_validator50.IsArray)(),
|
|
5411
5442
|
(0, import_class_validator50.ArrayMinSize)(1, { message: "At least one education is required." }),
|
|
5412
5443
|
(0, import_class_validator50.ValidateNested)({ each: true }),
|
|
5413
|
-
(0,
|
|
5444
|
+
(0, import_class_transformer5.Type)(() => EducationDto)
|
|
5414
5445
|
], FreelancerEducationDto.prototype, "educations", 2);
|
|
5415
5446
|
|
|
5416
5447
|
// src/modules/user/freelancer-project/pattern/pattern.ts
|
|
@@ -5421,7 +5452,7 @@ var FREELANCER_PROJECT_PATTERN = {
|
|
|
5421
5452
|
|
|
5422
5453
|
// src/modules/user/freelancer-project/dto/freelancer-project.dto.ts
|
|
5423
5454
|
var import_class_validator51 = require("class-validator");
|
|
5424
|
-
var
|
|
5455
|
+
var import_class_transformer6 = require("class-transformer");
|
|
5425
5456
|
var ProjectDto = class {
|
|
5426
5457
|
};
|
|
5427
5458
|
__decorateClass([
|
|
@@ -5476,12 +5507,12 @@ __decorateClass([
|
|
|
5476
5507
|
(0, import_class_validator51.IsArray)(),
|
|
5477
5508
|
(0, import_class_validator51.ArrayMinSize)(1, { message: "At least one project is required." }),
|
|
5478
5509
|
(0, import_class_validator51.ValidateNested)({ each: true }),
|
|
5479
|
-
(0,
|
|
5510
|
+
(0, import_class_transformer6.Type)(() => ProjectDto)
|
|
5480
5511
|
], FreelancerProjectDto.prototype, "projects", 2);
|
|
5481
5512
|
__decorateClass([
|
|
5482
5513
|
(0, import_class_validator51.IsArray)(),
|
|
5483
5514
|
(0, import_class_validator51.ValidateNested)({ each: true }),
|
|
5484
|
-
(0,
|
|
5515
|
+
(0, import_class_transformer6.Type)(() => CaseStudyDto)
|
|
5485
5516
|
], FreelancerProjectDto.prototype, "casestudies", 2);
|
|
5486
5517
|
|
|
5487
5518
|
// src/modules/permission/pattern/pattern.ts
|
|
@@ -5497,7 +5528,7 @@ var FREELANCER_SKILL_PATTERN = {
|
|
|
5497
5528
|
|
|
5498
5529
|
// src/modules/user/freelancer-skill/dto/freelancer-skill.dto.ts
|
|
5499
5530
|
var import_class_validator52 = require("class-validator");
|
|
5500
|
-
var
|
|
5531
|
+
var import_class_transformer7 = require("class-transformer");
|
|
5501
5532
|
var FreelancerSkillDto = class {
|
|
5502
5533
|
constructor() {
|
|
5503
5534
|
this.coreSkills = [];
|
|
@@ -5508,19 +5539,19 @@ var FreelancerSkillDto = class {
|
|
|
5508
5539
|
__decorateClass([
|
|
5509
5540
|
(0, import_class_validator52.IsOptional)(),
|
|
5510
5541
|
(0, import_class_validator52.IsArray)(),
|
|
5511
|
-
(0,
|
|
5542
|
+
(0, import_class_transformer7.Type)(() => String),
|
|
5512
5543
|
(0, import_class_validator52.IsString)({ each: true })
|
|
5513
5544
|
], FreelancerSkillDto.prototype, "coreSkills", 2);
|
|
5514
5545
|
__decorateClass([
|
|
5515
5546
|
(0, import_class_validator52.IsOptional)(),
|
|
5516
5547
|
(0, import_class_validator52.IsArray)(),
|
|
5517
|
-
(0,
|
|
5548
|
+
(0, import_class_transformer7.Type)(() => String),
|
|
5518
5549
|
(0, import_class_validator52.IsString)({ each: true })
|
|
5519
5550
|
], FreelancerSkillDto.prototype, "tools", 2);
|
|
5520
5551
|
__decorateClass([
|
|
5521
5552
|
(0, import_class_validator52.IsOptional)(),
|
|
5522
5553
|
(0, import_class_validator52.IsArray)(),
|
|
5523
|
-
(0,
|
|
5554
|
+
(0, import_class_transformer7.Type)(() => String),
|
|
5524
5555
|
(0, import_class_validator52.IsString)({ each: true })
|
|
5525
5556
|
], FreelancerSkillDto.prototype, "frameworks", 2);
|
|
5526
5557
|
|
|
@@ -5538,7 +5569,7 @@ var ADMIN_FREELANCER_PATTERN = {
|
|
|
5538
5569
|
|
|
5539
5570
|
// src/modules/freelancer-admin/dto/create-freelancer.dto.ts
|
|
5540
5571
|
var import_class_validator53 = require("class-validator");
|
|
5541
|
-
var
|
|
5572
|
+
var import_class_transformer8 = require("class-transformer");
|
|
5542
5573
|
var NatureOfWorkEnum = /* @__PURE__ */ ((NatureOfWorkEnum3) => {
|
|
5543
5574
|
NatureOfWorkEnum3["FULLTIME"] = "FULLTIME";
|
|
5544
5575
|
NatureOfWorkEnum3["PARTTIME"] = "PARTTIME";
|
|
@@ -5580,7 +5611,7 @@ __decorateClass([
|
|
|
5580
5611
|
], CreateFreelancerDto.prototype, "confirmPassword", 2);
|
|
5581
5612
|
__decorateClass([
|
|
5582
5613
|
(0, import_class_validator53.IsBoolean)({ message: "Developer flag must be true or false" }),
|
|
5583
|
-
(0,
|
|
5614
|
+
(0, import_class_transformer8.Type)(() => Boolean)
|
|
5584
5615
|
], CreateFreelancerDto.prototype, "developer", 2);
|
|
5585
5616
|
__decorateClass([
|
|
5586
5617
|
(0, import_class_validator53.IsEnum)(NatureOfWorkEnum, {
|
|
@@ -5592,7 +5623,7 @@ __decorateClass([
|
|
|
5592
5623
|
__decorateClass([
|
|
5593
5624
|
(0, import_class_validator53.IsNumber)({}, { message: "Expected hourly compensation must be a number" }),
|
|
5594
5625
|
(0, import_class_validator53.Min)(0, { message: "Expected hourly compensation must be 0 or more" }),
|
|
5595
|
-
(0,
|
|
5626
|
+
(0, import_class_transformer8.Type)(() => Number)
|
|
5596
5627
|
], CreateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
5597
5628
|
__decorateClass([
|
|
5598
5629
|
(0, import_class_validator53.IsEnum)(ModeOfWorkEnum, {
|
|
@@ -5603,7 +5634,7 @@ __decorateClass([
|
|
|
5603
5634
|
], CreateFreelancerDto.prototype, "modeOfWork", 2);
|
|
5604
5635
|
__decorateClass([
|
|
5605
5636
|
(0, import_class_validator53.IsBoolean)({ message: "isImmediateJoiner must be true or false" }),
|
|
5606
|
-
(0,
|
|
5637
|
+
(0, import_class_transformer8.Type)(() => Boolean)
|
|
5607
5638
|
], CreateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
5608
5639
|
__decorateClass([
|
|
5609
5640
|
(0, import_class_validator53.ValidateIf)((o) => o.isImmediateJoiner === false),
|
|
@@ -5632,7 +5663,7 @@ __decorateClass([
|
|
|
5632
5663
|
|
|
5633
5664
|
// src/modules/freelancer-admin/dto/update-freelancer.dto.ts
|
|
5634
5665
|
var import_class_validator54 = require("class-validator");
|
|
5635
|
-
var
|
|
5666
|
+
var import_class_transformer9 = require("class-transformer");
|
|
5636
5667
|
var NatureOfWorkEnum2 = /* @__PURE__ */ ((NatureOfWorkEnum3) => {
|
|
5637
5668
|
NatureOfWorkEnum3["FULLTIME"] = "FULLTIME";
|
|
5638
5669
|
NatureOfWorkEnum3["PARTTIME"] = "PARTTIME";
|
|
@@ -5666,7 +5697,7 @@ __decorateClass([
|
|
|
5666
5697
|
], UpdateFreelancerDto.prototype, "mobile", 2);
|
|
5667
5698
|
__decorateClass([
|
|
5668
5699
|
(0, import_class_validator54.IsOptional)(),
|
|
5669
|
-
(0,
|
|
5700
|
+
(0, import_class_transformer9.Transform)(({ value }) => value === null || value === "" ? void 0 : value),
|
|
5670
5701
|
(0, import_class_validator54.MinLength)(6, { message: "Password must be at least 6 characters." }),
|
|
5671
5702
|
(0, import_class_validator54.MaxLength)(32, { message: "Password must not exceed 32 characters." }),
|
|
5672
5703
|
(0, import_class_validator54.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
@@ -5676,7 +5707,7 @@ __decorateClass([
|
|
|
5676
5707
|
__decorateClass([
|
|
5677
5708
|
(0, import_class_validator54.IsOptional)(),
|
|
5678
5709
|
(0, import_class_validator54.IsBoolean)({ message: "Developer flag must be true or false" }),
|
|
5679
|
-
(0,
|
|
5710
|
+
(0, import_class_transformer9.Type)(() => Boolean)
|
|
5680
5711
|
], UpdateFreelancerDto.prototype, "developer", 2);
|
|
5681
5712
|
__decorateClass([
|
|
5682
5713
|
(0, import_class_validator54.IsOptional)(),
|
|
@@ -5690,7 +5721,7 @@ __decorateClass([
|
|
|
5690
5721
|
(0, import_class_validator54.IsOptional)(),
|
|
5691
5722
|
(0, import_class_validator54.IsNumber)({}, { message: "Expected hourly compensation must be a number" }),
|
|
5692
5723
|
(0, import_class_validator54.Min)(0, { message: "Expected hourly compensation must be 0 or more" }),
|
|
5693
|
-
(0,
|
|
5724
|
+
(0, import_class_transformer9.Type)(() => Number)
|
|
5694
5725
|
], UpdateFreelancerDto.prototype, "expectedHourlyCompensation", 2);
|
|
5695
5726
|
__decorateClass([
|
|
5696
5727
|
(0, import_class_validator54.IsOptional)(),
|
|
@@ -5703,7 +5734,7 @@ __decorateClass([
|
|
|
5703
5734
|
__decorateClass([
|
|
5704
5735
|
(0, import_class_validator54.IsOptional)(),
|
|
5705
5736
|
(0, import_class_validator54.IsBoolean)({ message: "isImmediateJoiner must be true or false" }),
|
|
5706
|
-
(0,
|
|
5737
|
+
(0, import_class_transformer9.Type)(() => Boolean)
|
|
5707
5738
|
], UpdateFreelancerDto.prototype, "isImmediateJoiner", 2);
|
|
5708
5739
|
__decorateClass([
|
|
5709
5740
|
(0, import_class_validator54.ValidateIf)((o) => o.isImmediateJoiner === false),
|
|
@@ -5822,7 +5853,7 @@ __decorateClass([
|
|
|
5822
5853
|
], UpdateClientAccountStatusDto.prototype, "accountStatus", 2);
|
|
5823
5854
|
|
|
5824
5855
|
// src/modules/client-admin/dto/update-client.dto.ts
|
|
5825
|
-
var
|
|
5856
|
+
var import_class_transformer10 = require("class-transformer");
|
|
5826
5857
|
var import_class_validator57 = require("class-validator");
|
|
5827
5858
|
var UpdateClientHiringModeEnum = /* @__PURE__ */ ((UpdateClientHiringModeEnum2) => {
|
|
5828
5859
|
UpdateClientHiringModeEnum2["REMOTE"] = "REMOTE";
|
|
@@ -5852,7 +5883,7 @@ __decorateClass([
|
|
|
5852
5883
|
], UpdateClientDto.prototype, "email", 2);
|
|
5853
5884
|
__decorateClass([
|
|
5854
5885
|
(0, import_class_validator57.IsOptional)(),
|
|
5855
|
-
(0,
|
|
5886
|
+
(0, import_class_transformer10.Transform)(({ value }) => value === null || value === "" ? void 0 : value),
|
|
5856
5887
|
(0, import_class_validator57.MinLength)(6, { message: "Password must be at least 6 characters." }),
|
|
5857
5888
|
(0, import_class_validator57.MaxLength)(32, { message: "Password must not exceed 32 characters." }),
|
|
5858
5889
|
(0, import_class_validator57.Matches)(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
|
|
@@ -5986,7 +6017,7 @@ var ADMIN_JOB_PATTERN = {
|
|
|
5986
6017
|
};
|
|
5987
6018
|
|
|
5988
6019
|
// src/modules/job-admin/dto/admin-create-job-information.dto.ts
|
|
5989
|
-
var
|
|
6020
|
+
var import_class_transformer11 = require("class-transformer");
|
|
5990
6021
|
var import_class_validator61 = require("class-validator");
|
|
5991
6022
|
var JobLocationEnumDto = /* @__PURE__ */ ((JobLocationEnumDto2) => {
|
|
5992
6023
|
JobLocationEnumDto2["ONSITE"] = "ONSITE";
|
|
@@ -6046,11 +6077,11 @@ __decorateClass([
|
|
|
6046
6077
|
(0, import_class_validator61.IsNotEmpty)({ message: "Currency is required." })
|
|
6047
6078
|
], AdminCreateJobInformationDto.prototype, "currency", 2);
|
|
6048
6079
|
__decorateClass([
|
|
6049
|
-
(0,
|
|
6080
|
+
(0, import_class_transformer11.Type)(() => Number),
|
|
6050
6081
|
(0, import_class_validator61.IsNumber)({}, { message: "Expected salary from must be a number." })
|
|
6051
6082
|
], AdminCreateJobInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
6052
6083
|
__decorateClass([
|
|
6053
|
-
(0,
|
|
6084
|
+
(0, import_class_transformer11.Type)(() => Number),
|
|
6054
6085
|
(0, import_class_validator61.IsNumber)({}, { message: "Expected salary to must be a number." })
|
|
6055
6086
|
], AdminCreateJobInformationDto.prototype, "expectedSalaryTo", 2);
|
|
6056
6087
|
__decorateClass([
|
|
@@ -6083,7 +6114,7 @@ __decorateClass([
|
|
|
6083
6114
|
], AdminCreateJobInformationDto.prototype, "clientId", 2);
|
|
6084
6115
|
|
|
6085
6116
|
// src/modules/job-admin/dto/admin-update-job-information.dto.ts
|
|
6086
|
-
var
|
|
6117
|
+
var import_class_transformer12 = require("class-transformer");
|
|
6087
6118
|
var import_class_validator62 = require("class-validator");
|
|
6088
6119
|
var JobLocationEnums = /* @__PURE__ */ ((JobLocationEnums2) => {
|
|
6089
6120
|
JobLocationEnums2["ONSITE"] = "ONSITE";
|
|
@@ -6143,11 +6174,11 @@ __decorateClass([
|
|
|
6143
6174
|
(0, import_class_validator62.IsNotEmpty)({ message: "Currency is required." })
|
|
6144
6175
|
], AdminUpdateJobInformationDto.prototype, "currency", 2);
|
|
6145
6176
|
__decorateClass([
|
|
6146
|
-
(0,
|
|
6177
|
+
(0, import_class_transformer12.Type)(() => Number),
|
|
6147
6178
|
(0, import_class_validator62.IsNumber)({}, { message: "Expected salary from must be a number." })
|
|
6148
6179
|
], AdminUpdateJobInformationDto.prototype, "expectedSalaryFrom", 2);
|
|
6149
6180
|
__decorateClass([
|
|
6150
|
-
(0,
|
|
6181
|
+
(0, import_class_transformer12.Type)(() => Number),
|
|
6151
6182
|
(0, import_class_validator62.IsNumber)({}, { message: "Expected salary to must be a number." })
|
|
6152
6183
|
], AdminUpdateJobInformationDto.prototype, "expectedSalaryTo", 2);
|
|
6153
6184
|
__decorateClass([
|
|
@@ -6297,7 +6328,7 @@ var CALENDLY_PATTERN = {
|
|
|
6297
6328
|
|
|
6298
6329
|
// src/modules/interview/dto/interview-invite.dto.ts
|
|
6299
6330
|
var import_class_validator67 = require("class-validator");
|
|
6300
|
-
var
|
|
6331
|
+
var import_class_transformer13 = require("class-transformer");
|
|
6301
6332
|
var CandidateType = /* @__PURE__ */ ((CandidateType2) => {
|
|
6302
6333
|
CandidateType2["SHORTLISTED"] = "SHORTLISTED";
|
|
6303
6334
|
CandidateType2["APPLICATNTS"] = "APPLICATNTS";
|
|
@@ -6336,14 +6367,14 @@ __decorateClass([
|
|
|
6336
6367
|
(0, import_class_validator67.IsArray)({ message: "Existing candidates should be an array." }),
|
|
6337
6368
|
(0, import_class_validator67.ArrayNotEmpty)({ message: "Please select at least one candidate." }),
|
|
6338
6369
|
(0, import_class_validator67.ValidateNested)({ each: true }),
|
|
6339
|
-
(0,
|
|
6370
|
+
(0, import_class_transformer13.Type)(() => ExistingCandidateDto)
|
|
6340
6371
|
], CandidatesDto.prototype, "exixtingCandidates", 2);
|
|
6341
6372
|
__decorateClass([
|
|
6342
6373
|
(0, import_class_validator67.ValidateIf)((o) => o.newCandidates?.length > 0),
|
|
6343
6374
|
(0, import_class_validator67.IsArray)({ message: "New candidates should be an array." }),
|
|
6344
6375
|
(0, import_class_validator67.ArrayNotEmpty)({ message: "Please add at least one candidate." }),
|
|
6345
6376
|
(0, import_class_validator67.ValidateNested)({ each: true }),
|
|
6346
|
-
(0,
|
|
6377
|
+
(0, import_class_transformer13.Type)(() => NewCandidateDto)
|
|
6347
6378
|
], CandidatesDto.prototype, "newCandidates", 2);
|
|
6348
6379
|
var InterviewInviteDto = class {
|
|
6349
6380
|
};
|
|
@@ -6352,7 +6383,7 @@ __decorateClass([
|
|
|
6352
6383
|
], InterviewInviteDto.prototype, "jobId", 2);
|
|
6353
6384
|
__decorateClass([
|
|
6354
6385
|
(0, import_class_validator67.ValidateNested)({ each: true }),
|
|
6355
|
-
(0,
|
|
6386
|
+
(0, import_class_transformer13.Type)(() => CandidatesDto)
|
|
6356
6387
|
], InterviewInviteDto.prototype, "candidates", 2);
|
|
6357
6388
|
|
|
6358
6389
|
// src/modules/interview/dto/create-f2f-interview.dto.ts
|
|
@@ -6432,17 +6463,17 @@ var CONTRACT_PATTERN = {
|
|
|
6432
6463
|
|
|
6433
6464
|
// src/modules/contract/dto/sign-contract-for-client.dto.ts
|
|
6434
6465
|
var import_class_validator71 = require("class-validator");
|
|
6435
|
-
var
|
|
6466
|
+
var import_class_transformer14 = require("class-transformer");
|
|
6436
6467
|
var SignContractForClientDto = class {
|
|
6437
6468
|
};
|
|
6438
6469
|
__decorateClass([
|
|
6439
6470
|
(0, import_class_validator71.IsNotEmpty)({ message: "Job Id is required." }),
|
|
6440
|
-
(0,
|
|
6471
|
+
(0, import_class_transformer14.Type)(() => Number),
|
|
6441
6472
|
(0, import_class_validator71.IsNumber)({}, { message: "Job ID must be a number." })
|
|
6442
6473
|
], SignContractForClientDto.prototype, "jobId", 2);
|
|
6443
6474
|
__decorateClass([
|
|
6444
6475
|
(0, import_class_validator71.IsNotEmpty)({ message: "Freelancer ID is required." }),
|
|
6445
|
-
(0,
|
|
6476
|
+
(0, import_class_transformer14.Type)(() => Number),
|
|
6446
6477
|
(0, import_class_validator71.IsNumber)({}, { message: "Freelancer ID must be a number." })
|
|
6447
6478
|
], SignContractForClientDto.prototype, "freelancerId", 2);
|
|
6448
6479
|
__decorateClass([
|
|
@@ -6452,17 +6483,17 @@ __decorateClass([
|
|
|
6452
6483
|
|
|
6453
6484
|
// src/modules/contract/dto/sign-contract-for-freelancer.dto.ts
|
|
6454
6485
|
var import_class_validator72 = require("class-validator");
|
|
6455
|
-
var
|
|
6486
|
+
var import_class_transformer15 = require("class-transformer");
|
|
6456
6487
|
var SignContractForFreelancerDto = class {
|
|
6457
6488
|
};
|
|
6458
6489
|
__decorateClass([
|
|
6459
6490
|
(0, import_class_validator72.IsNotEmpty)({ message: "Job Id is required." }),
|
|
6460
|
-
(0,
|
|
6491
|
+
(0, import_class_transformer15.Type)(() => Number),
|
|
6461
6492
|
(0, import_class_validator72.IsNumber)({}, { message: "Job ID must be a number." })
|
|
6462
6493
|
], SignContractForFreelancerDto.prototype, "jobId", 2);
|
|
6463
6494
|
__decorateClass([
|
|
6464
6495
|
(0, import_class_validator72.IsNotEmpty)({ message: "Client ID is required." }),
|
|
6465
|
-
(0,
|
|
6496
|
+
(0, import_class_transformer15.Type)(() => Number),
|
|
6466
6497
|
(0, import_class_validator72.IsNumber)({}, { message: "Client ID must be a number." })
|
|
6467
6498
|
], SignContractForFreelancerDto.prototype, "clientId", 2);
|
|
6468
6499
|
__decorateClass([
|
|
@@ -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
|
@@ -1133,8 +1133,8 @@ __decorateClass([
|
|
|
1133
1133
|
], JobAdditionalCommentDto.prototype, "additionalComment", 2);
|
|
1134
1134
|
|
|
1135
1135
|
// src/modules/job/dto/job-description.dto.ts
|
|
1136
|
-
import { Type as Type2 } from "class-transformer/types";
|
|
1137
1136
|
import { IsString as IsString14, IsNotEmpty as IsNotEmpty30, MaxLength as MaxLength8, IsOptional as IsOptional14 } from "class-validator";
|
|
1137
|
+
import { Type as Type2 } from "class-transformer";
|
|
1138
1138
|
var JobDescriptionDto = class {
|
|
1139
1139
|
constructor() {
|
|
1140
1140
|
this.isDraft = false;
|
|
@@ -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,
|