@experts_hub/shared 1.0.497 → 1.0.499

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.
@@ -1,6 +1,7 @@
1
1
  import { BaseEntity } from "./base.entity";
2
2
  import { Job } from "./job.entity";
3
3
  import { User } from "./user.entity";
4
+ import { EscrowWallet } from "./escrow-wallet.entity";
4
5
  export declare enum ContractStatusEnum {
5
6
  GENERATED = "GENERATED",
6
7
  DRAFTED = "DRAFTED",
@@ -43,4 +44,5 @@ export declare class Contract extends BaseEntity {
43
44
  isWorkContractSent: boolean;
44
45
  isEscrowDeposited: boolean;
45
46
  signaturePositions: any;
47
+ escrowWallet: EscrowWallet;
46
48
  }
@@ -0,0 +1,23 @@
1
+ import { BaseEntity } from "./base.entity";
2
+ import { EscrowWallet } from "./escrow-wallet.entity";
3
+ import { Invoice } from "./invoice.entity";
4
+ export declare enum EscrowWalletTransactionTypeEnum {
5
+ CR = "CR",
6
+ DR = "DR"
7
+ }
8
+ export declare enum EscrowWalletTransactionForEnum {
9
+ CONTRACT = "CONTRACT",
10
+ INVOICE = "INVOICE"
11
+ }
12
+ export declare class EscrowWalletTransaction extends BaseEntity {
13
+ escrowWalletId: number;
14
+ escrowWallet: EscrowWallet;
15
+ invoiceId?: number;
16
+ invoice?: Invoice;
17
+ amount: number;
18
+ escrowType: EscrowWalletTransactionTypeEnum;
19
+ description: string;
20
+ completedAt: Date;
21
+ escrowTransactionFor: EscrowWalletTransactionForEnum;
22
+ metaData: string;
23
+ }
@@ -0,0 +1,18 @@
1
+ import { BaseEntity } from "./base.entity";
2
+ import { User } from "./user.entity";
3
+ import { Job } from "./job.entity";
4
+ import { Contract } from "./contract.entity";
5
+ import { EscrowWalletTransaction } from "./escrow-wallet-transaction.entity";
6
+ export declare class EscrowWallet extends BaseEntity {
7
+ jobId: number;
8
+ job?: Job;
9
+ clientId: number;
10
+ client?: User;
11
+ freelancerId: number;
12
+ freelancer?: User;
13
+ contractId?: number;
14
+ contract?: Contract;
15
+ escrowBalance: string;
16
+ metadata: Record<string, any>;
17
+ escrowWalletTransactions: EscrowWalletTransaction[];
18
+ }
@@ -28,6 +28,7 @@ export declare class Interview extends BaseEntity {
28
28
  maximumAttemptsAllowed: string;
29
29
  startInterviewPrompt: string;
30
30
  endInterviewPrompt: string;
31
+ interviewTemplateId: string;
31
32
  status: InterviewStatusEnum;
32
33
  interviewSkills: InterviewSkill[];
33
34
  interviewQuestions: InterviewQuestion[];
@@ -2,6 +2,7 @@ import { BaseEntity } from "./base.entity";
2
2
  import { User } from "./user.entity";
3
3
  import { Job } from "./job.entity";
4
4
  import { TimesheetLine } from "./timesheet-line.entity";
5
+ import { EscrowWalletTransaction } from "./escrow-wallet-transaction.entity";
5
6
  export declare enum InvoiceTypeEnum {
6
7
  WEEKLY = "WEEKLY",
7
8
  MONTHLY = "MONTHLY"
@@ -41,4 +42,5 @@ export declare class Invoice extends BaseEntity {
41
42
  paymentStatus: InvoicePaymentStatusEnum;
42
43
  clientInvoiceUrl: string;
43
44
  freelancerInvoiceUrl: string;
45
+ escrowWalletTransaction?: EscrowWalletTransaction;
44
46
  }
@@ -14,6 +14,7 @@ import { ClientCandidatePreference } from "./client-candidate-preference.entity"
14
14
  import { Invoice } from "./invoice.entity";
15
15
  import { F2FInterview } from "./f2f-interview.entity";
16
16
  import { InterviewInvite } from "./interview-invite.entity";
17
+ import { EscrowWallet } from "./escrow-wallet.entity";
17
18
  export declare enum JobLocationEnum {
18
19
  ONSITE = "ONSITE",
19
20
  REMOTE = "REMOTE",
@@ -97,6 +98,7 @@ export declare class Job extends BaseEntity {
97
98
  f2fInterviews: F2FInterview[];
98
99
  recommendations: JobRecommendation[];
99
100
  contracts: Contract[];
101
+ escrowWallets: EscrowWallet[];
100
102
  timesheets: Timesheet[];
101
103
  timesheetLine: TimesheetLine[];
102
104
  invoice: Invoice[];
@@ -36,6 +36,7 @@ import { Invoice } from "./invoice.entity";
36
36
  import { Dispute } from "./dispute.entity";
37
37
  import { StripeTransaction } from "./stripe-transaction.entity";
38
38
  import { Wallet } from "./wallet.entity";
39
+ import { EscrowWallet } from "./escrow-wallet.entity";
39
40
  export declare enum AccountType {
40
41
  ADMIN = "ADMIN",
41
42
  SUB_ADMIN = "SUB_ADMIN",
@@ -117,7 +118,9 @@ export declare class User extends BaseEntity {
117
118
  receivedRatings: Rating[];
118
119
  adminUserRoles: AdminUserRole[];
119
120
  clientContracts: Contract[];
121
+ clientEscrowWallets: EscrowWallet[];
120
122
  freelancerContracts: Contract[];
123
+ freelancerEscrowWallets: EscrowWallet[];
121
124
  signatures: Signature;
122
125
  clientTimesheets: Timesheet[];
123
126
  freelancerTimesheets: Timesheet[];
package/dist/index.d.mts CHANGED
@@ -1094,6 +1094,7 @@ declare class Interview extends BaseEntity {
1094
1094
  maximumAttemptsAllowed: string;
1095
1095
  startInterviewPrompt: string;
1096
1096
  endInterviewPrompt: string;
1097
+ interviewTemplateId: string;
1097
1098
  status: InterviewStatusEnum;
1098
1099
  interviewSkills: InterviewSkill[];
1099
1100
  interviewQuestions: InterviewQuestion[];
@@ -1134,83 +1135,6 @@ declare class JobRecommendation {
1134
1135
  preference: ClientCandidatePreference[];
1135
1136
  }
1136
1137
 
1137
- declare enum ContractStatusEnum {
1138
- GENERATED = "GENERATED",
1139
- DRAFTED = "DRAFTED",
1140
- SENT = "SENT",
1141
- SIGNED = "SIGNED",
1142
- ACTIVE = "ACTIVE",
1143
- CANCELLED = "CANCELLED",
1144
- DISPUTED = "DISPUTED",
1145
- REJECTED = "REJECTED",
1146
- RENEWED = "RENEWED",
1147
- EXPIRED = "EXPIRED"
1148
- }
1149
- declare enum ContractTypeEnum {
1150
- NDA = "NDA",
1151
- WORK = "WORK"
1152
- }
1153
- declare class Contract extends BaseEntity {
1154
- contractUniqueId: string;
1155
- jobId: number;
1156
- job: Job;
1157
- clientId: number;
1158
- client: User;
1159
- freelancerId: number;
1160
- freelancer: User;
1161
- duration: number;
1162
- status: ContractStatusEnum;
1163
- type: ContractTypeEnum;
1164
- invoicingCycle: string;
1165
- escrowDepositeAmount: number;
1166
- startDate: Date;
1167
- endDate: Date;
1168
- originalDocumentUrl: string;
1169
- contractDocumentUrl: string;
1170
- clientSignedAt: Date;
1171
- freelancerViewed: boolean;
1172
- freelancerViewedAt: Date;
1173
- freelancerSignedAt: Date;
1174
- rejectedAt: Date;
1175
- rejectReason: string;
1176
- isWorkContractSent: boolean;
1177
- isEscrowDeposited: boolean;
1178
- signaturePositions: any;
1179
- }
1180
-
1181
- declare enum TimesheetStatusEnum {
1182
- DRAFT = "DRAFT",
1183
- SEND = "SEND",
1184
- SEND_BACK = "SEND_BACK",
1185
- APPROVED = "APPROVED",
1186
- REJECTED = "REJECTED",
1187
- PAID = "PAID"
1188
- }
1189
- declare class Timesheet extends BaseEntity {
1190
- jobId: number;
1191
- job: Job;
1192
- clientId: number;
1193
- client: User;
1194
- freelancerId: number;
1195
- freelancer: User;
1196
- startDate: Date;
1197
- endDate: Date;
1198
- startTime: string;
1199
- endTime: string;
1200
- workedHours: string;
1201
- taskId: number;
1202
- taskName: string;
1203
- description: string;
1204
- weekStartDate: Date;
1205
- weekEndDate: Date;
1206
- rejectedAt: Date;
1207
- submittedAt: Date;
1208
- resubmittedAt: Date;
1209
- approvedAt: Date;
1210
- status: TimesheetStatusEnum;
1211
- clientSendBackReason: string;
1212
- }
1213
-
1214
1138
  declare class TimesheetLogs extends BaseEntity {
1215
1139
  timesheetLineId: number;
1216
1140
  timesheetLine: TimesheetLine;
@@ -1254,6 +1178,35 @@ declare class TimesheetLineHistory extends BaseEntity {
1254
1178
  remarks: string;
1255
1179
  }
1256
1180
 
1181
+ declare enum TimesheetLineStatusEnum {
1182
+ DRAFT = "DRAFT",
1183
+ SEND = "SEND",
1184
+ SEND_BACK = "SEND_BACK",
1185
+ APPROVED = "APPROVED",
1186
+ REJECTED = "REJECTED",
1187
+ PAID = "PAID",
1188
+ MISSING = "MISSING",
1189
+ ACTIVE = "ACTIVE"
1190
+ }
1191
+ declare class TimesheetLine extends BaseEntity {
1192
+ jobId: number;
1193
+ job: Job;
1194
+ clientId: number;
1195
+ client: User;
1196
+ freelancerId: number;
1197
+ freelancer: User;
1198
+ timesheetLogs: TimesheetLogs[];
1199
+ timesheetLineHistory: TimesheetLineHistory[];
1200
+ uniqueId: string;
1201
+ weekStartDate: Date;
1202
+ weekEndDate: Date;
1203
+ status: TimesheetLineStatusEnum;
1204
+ weeklyHoursSum: string;
1205
+ isInvoiceGenrated: boolean;
1206
+ isInvoiceApproved: boolean;
1207
+ invoice: Invoice[];
1208
+ }
1209
+
1257
1210
  declare enum InvoiceTypeEnum {
1258
1211
  WEEKLY = "WEEKLY",
1259
1212
  MONTHLY = "MONTHLY"
@@ -1293,35 +1246,120 @@ declare class Invoice extends BaseEntity {
1293
1246
  paymentStatus: InvoicePaymentStatusEnum;
1294
1247
  clientInvoiceUrl: string;
1295
1248
  freelancerInvoiceUrl: string;
1249
+ escrowWalletTransaction?: EscrowWalletTransaction;
1296
1250
  }
1297
1251
 
1298
- declare enum TimesheetLineStatusEnum {
1252
+ declare enum EscrowWalletTransactionTypeEnum {
1253
+ CR = "CR",
1254
+ DR = "DR"
1255
+ }
1256
+ declare enum EscrowWalletTransactionForEnum {
1257
+ CONTRACT = "CONTRACT",
1258
+ INVOICE = "INVOICE"
1259
+ }
1260
+ declare class EscrowWalletTransaction extends BaseEntity {
1261
+ escrowWalletId: number;
1262
+ escrowWallet: EscrowWallet;
1263
+ invoiceId?: number;
1264
+ invoice?: Invoice;
1265
+ amount: number;
1266
+ escrowType: EscrowWalletTransactionTypeEnum;
1267
+ description: string;
1268
+ completedAt: Date;
1269
+ escrowTransactionFor: EscrowWalletTransactionForEnum;
1270
+ metaData: string;
1271
+ }
1272
+
1273
+ declare class EscrowWallet extends BaseEntity {
1274
+ jobId: number;
1275
+ job?: Job;
1276
+ clientId: number;
1277
+ client?: User;
1278
+ freelancerId: number;
1279
+ freelancer?: User;
1280
+ contractId?: number;
1281
+ contract?: Contract;
1282
+ escrowBalance: string;
1283
+ metadata: Record<string, any>;
1284
+ escrowWalletTransactions: EscrowWalletTransaction[];
1285
+ }
1286
+
1287
+ declare enum ContractStatusEnum {
1288
+ GENERATED = "GENERATED",
1289
+ DRAFTED = "DRAFTED",
1290
+ SENT = "SENT",
1291
+ SIGNED = "SIGNED",
1292
+ ACTIVE = "ACTIVE",
1293
+ CANCELLED = "CANCELLED",
1294
+ DISPUTED = "DISPUTED",
1295
+ REJECTED = "REJECTED",
1296
+ RENEWED = "RENEWED",
1297
+ EXPIRED = "EXPIRED"
1298
+ }
1299
+ declare enum ContractTypeEnum {
1300
+ NDA = "NDA",
1301
+ WORK = "WORK"
1302
+ }
1303
+ declare class Contract extends BaseEntity {
1304
+ contractUniqueId: string;
1305
+ jobId: number;
1306
+ job: Job;
1307
+ clientId: number;
1308
+ client: User;
1309
+ freelancerId: number;
1310
+ freelancer: User;
1311
+ duration: number;
1312
+ status: ContractStatusEnum;
1313
+ type: ContractTypeEnum;
1314
+ invoicingCycle: string;
1315
+ escrowDepositeAmount: number;
1316
+ startDate: Date;
1317
+ endDate: Date;
1318
+ originalDocumentUrl: string;
1319
+ contractDocumentUrl: string;
1320
+ clientSignedAt: Date;
1321
+ freelancerViewed: boolean;
1322
+ freelancerViewedAt: Date;
1323
+ freelancerSignedAt: Date;
1324
+ rejectedAt: Date;
1325
+ rejectReason: string;
1326
+ isWorkContractSent: boolean;
1327
+ isEscrowDeposited: boolean;
1328
+ signaturePositions: any;
1329
+ escrowWallet: EscrowWallet;
1330
+ }
1331
+
1332
+ declare enum TimesheetStatusEnum {
1299
1333
  DRAFT = "DRAFT",
1300
1334
  SEND = "SEND",
1301
1335
  SEND_BACK = "SEND_BACK",
1302
1336
  APPROVED = "APPROVED",
1303
1337
  REJECTED = "REJECTED",
1304
- PAID = "PAID",
1305
- MISSING = "MISSING",
1306
- ACTIVE = "ACTIVE"
1338
+ PAID = "PAID"
1307
1339
  }
1308
- declare class TimesheetLine extends BaseEntity {
1340
+ declare class Timesheet extends BaseEntity {
1309
1341
  jobId: number;
1310
1342
  job: Job;
1311
1343
  clientId: number;
1312
1344
  client: User;
1313
1345
  freelancerId: number;
1314
1346
  freelancer: User;
1315
- timesheetLogs: TimesheetLogs[];
1316
- timesheetLineHistory: TimesheetLineHistory[];
1317
- uniqueId: string;
1347
+ startDate: Date;
1348
+ endDate: Date;
1349
+ startTime: string;
1350
+ endTime: string;
1351
+ workedHours: string;
1352
+ taskId: number;
1353
+ taskName: string;
1354
+ description: string;
1318
1355
  weekStartDate: Date;
1319
1356
  weekEndDate: Date;
1320
- status: TimesheetLineStatusEnum;
1321
- weeklyHoursSum: string;
1322
- isInvoiceGenrated: boolean;
1323
- isInvoiceApproved: boolean;
1324
- invoice: Invoice[];
1357
+ rejectedAt: Date;
1358
+ submittedAt: Date;
1359
+ resubmittedAt: Date;
1360
+ approvedAt: Date;
1361
+ status: TimesheetStatusEnum;
1362
+ clientSendBackReason: string;
1325
1363
  }
1326
1364
 
1327
1365
  declare enum JobLocationEnum {
@@ -1407,6 +1445,7 @@ declare class Job extends BaseEntity {
1407
1445
  f2fInterviews: F2FInterview[];
1408
1446
  recommendations: JobRecommendation[];
1409
1447
  contracts: Contract[];
1448
+ escrowWallets: EscrowWallet[];
1410
1449
  timesheets: Timesheet[];
1411
1450
  timesheetLine: TimesheetLine[];
1412
1451
  invoice: Invoice[];
@@ -1878,7 +1917,9 @@ declare class User extends BaseEntity {
1878
1917
  receivedRatings: Rating[];
1879
1918
  adminUserRoles: AdminUserRole[];
1880
1919
  clientContracts: Contract[];
1920
+ clientEscrowWallets: EscrowWallet[];
1881
1921
  freelancerContracts: Contract[];
1922
+ freelancerEscrowWallets: EscrowWallet[];
1882
1923
  signatures: Signature;
1883
1924
  clientTimesheets: Timesheet[];
1884
1925
  freelancerTimesheets: Timesheet[];
package/dist/index.d.ts CHANGED
@@ -1094,6 +1094,7 @@ declare class Interview extends BaseEntity {
1094
1094
  maximumAttemptsAllowed: string;
1095
1095
  startInterviewPrompt: string;
1096
1096
  endInterviewPrompt: string;
1097
+ interviewTemplateId: string;
1097
1098
  status: InterviewStatusEnum;
1098
1099
  interviewSkills: InterviewSkill[];
1099
1100
  interviewQuestions: InterviewQuestion[];
@@ -1134,83 +1135,6 @@ declare class JobRecommendation {
1134
1135
  preference: ClientCandidatePreference[];
1135
1136
  }
1136
1137
 
1137
- declare enum ContractStatusEnum {
1138
- GENERATED = "GENERATED",
1139
- DRAFTED = "DRAFTED",
1140
- SENT = "SENT",
1141
- SIGNED = "SIGNED",
1142
- ACTIVE = "ACTIVE",
1143
- CANCELLED = "CANCELLED",
1144
- DISPUTED = "DISPUTED",
1145
- REJECTED = "REJECTED",
1146
- RENEWED = "RENEWED",
1147
- EXPIRED = "EXPIRED"
1148
- }
1149
- declare enum ContractTypeEnum {
1150
- NDA = "NDA",
1151
- WORK = "WORK"
1152
- }
1153
- declare class Contract extends BaseEntity {
1154
- contractUniqueId: string;
1155
- jobId: number;
1156
- job: Job;
1157
- clientId: number;
1158
- client: User;
1159
- freelancerId: number;
1160
- freelancer: User;
1161
- duration: number;
1162
- status: ContractStatusEnum;
1163
- type: ContractTypeEnum;
1164
- invoicingCycle: string;
1165
- escrowDepositeAmount: number;
1166
- startDate: Date;
1167
- endDate: Date;
1168
- originalDocumentUrl: string;
1169
- contractDocumentUrl: string;
1170
- clientSignedAt: Date;
1171
- freelancerViewed: boolean;
1172
- freelancerViewedAt: Date;
1173
- freelancerSignedAt: Date;
1174
- rejectedAt: Date;
1175
- rejectReason: string;
1176
- isWorkContractSent: boolean;
1177
- isEscrowDeposited: boolean;
1178
- signaturePositions: any;
1179
- }
1180
-
1181
- declare enum TimesheetStatusEnum {
1182
- DRAFT = "DRAFT",
1183
- SEND = "SEND",
1184
- SEND_BACK = "SEND_BACK",
1185
- APPROVED = "APPROVED",
1186
- REJECTED = "REJECTED",
1187
- PAID = "PAID"
1188
- }
1189
- declare class Timesheet extends BaseEntity {
1190
- jobId: number;
1191
- job: Job;
1192
- clientId: number;
1193
- client: User;
1194
- freelancerId: number;
1195
- freelancer: User;
1196
- startDate: Date;
1197
- endDate: Date;
1198
- startTime: string;
1199
- endTime: string;
1200
- workedHours: string;
1201
- taskId: number;
1202
- taskName: string;
1203
- description: string;
1204
- weekStartDate: Date;
1205
- weekEndDate: Date;
1206
- rejectedAt: Date;
1207
- submittedAt: Date;
1208
- resubmittedAt: Date;
1209
- approvedAt: Date;
1210
- status: TimesheetStatusEnum;
1211
- clientSendBackReason: string;
1212
- }
1213
-
1214
1138
  declare class TimesheetLogs extends BaseEntity {
1215
1139
  timesheetLineId: number;
1216
1140
  timesheetLine: TimesheetLine;
@@ -1254,6 +1178,35 @@ declare class TimesheetLineHistory extends BaseEntity {
1254
1178
  remarks: string;
1255
1179
  }
1256
1180
 
1181
+ declare enum TimesheetLineStatusEnum {
1182
+ DRAFT = "DRAFT",
1183
+ SEND = "SEND",
1184
+ SEND_BACK = "SEND_BACK",
1185
+ APPROVED = "APPROVED",
1186
+ REJECTED = "REJECTED",
1187
+ PAID = "PAID",
1188
+ MISSING = "MISSING",
1189
+ ACTIVE = "ACTIVE"
1190
+ }
1191
+ declare class TimesheetLine extends BaseEntity {
1192
+ jobId: number;
1193
+ job: Job;
1194
+ clientId: number;
1195
+ client: User;
1196
+ freelancerId: number;
1197
+ freelancer: User;
1198
+ timesheetLogs: TimesheetLogs[];
1199
+ timesheetLineHistory: TimesheetLineHistory[];
1200
+ uniqueId: string;
1201
+ weekStartDate: Date;
1202
+ weekEndDate: Date;
1203
+ status: TimesheetLineStatusEnum;
1204
+ weeklyHoursSum: string;
1205
+ isInvoiceGenrated: boolean;
1206
+ isInvoiceApproved: boolean;
1207
+ invoice: Invoice[];
1208
+ }
1209
+
1257
1210
  declare enum InvoiceTypeEnum {
1258
1211
  WEEKLY = "WEEKLY",
1259
1212
  MONTHLY = "MONTHLY"
@@ -1293,35 +1246,120 @@ declare class Invoice extends BaseEntity {
1293
1246
  paymentStatus: InvoicePaymentStatusEnum;
1294
1247
  clientInvoiceUrl: string;
1295
1248
  freelancerInvoiceUrl: string;
1249
+ escrowWalletTransaction?: EscrowWalletTransaction;
1296
1250
  }
1297
1251
 
1298
- declare enum TimesheetLineStatusEnum {
1252
+ declare enum EscrowWalletTransactionTypeEnum {
1253
+ CR = "CR",
1254
+ DR = "DR"
1255
+ }
1256
+ declare enum EscrowWalletTransactionForEnum {
1257
+ CONTRACT = "CONTRACT",
1258
+ INVOICE = "INVOICE"
1259
+ }
1260
+ declare class EscrowWalletTransaction extends BaseEntity {
1261
+ escrowWalletId: number;
1262
+ escrowWallet: EscrowWallet;
1263
+ invoiceId?: number;
1264
+ invoice?: Invoice;
1265
+ amount: number;
1266
+ escrowType: EscrowWalletTransactionTypeEnum;
1267
+ description: string;
1268
+ completedAt: Date;
1269
+ escrowTransactionFor: EscrowWalletTransactionForEnum;
1270
+ metaData: string;
1271
+ }
1272
+
1273
+ declare class EscrowWallet extends BaseEntity {
1274
+ jobId: number;
1275
+ job?: Job;
1276
+ clientId: number;
1277
+ client?: User;
1278
+ freelancerId: number;
1279
+ freelancer?: User;
1280
+ contractId?: number;
1281
+ contract?: Contract;
1282
+ escrowBalance: string;
1283
+ metadata: Record<string, any>;
1284
+ escrowWalletTransactions: EscrowWalletTransaction[];
1285
+ }
1286
+
1287
+ declare enum ContractStatusEnum {
1288
+ GENERATED = "GENERATED",
1289
+ DRAFTED = "DRAFTED",
1290
+ SENT = "SENT",
1291
+ SIGNED = "SIGNED",
1292
+ ACTIVE = "ACTIVE",
1293
+ CANCELLED = "CANCELLED",
1294
+ DISPUTED = "DISPUTED",
1295
+ REJECTED = "REJECTED",
1296
+ RENEWED = "RENEWED",
1297
+ EXPIRED = "EXPIRED"
1298
+ }
1299
+ declare enum ContractTypeEnum {
1300
+ NDA = "NDA",
1301
+ WORK = "WORK"
1302
+ }
1303
+ declare class Contract extends BaseEntity {
1304
+ contractUniqueId: string;
1305
+ jobId: number;
1306
+ job: Job;
1307
+ clientId: number;
1308
+ client: User;
1309
+ freelancerId: number;
1310
+ freelancer: User;
1311
+ duration: number;
1312
+ status: ContractStatusEnum;
1313
+ type: ContractTypeEnum;
1314
+ invoicingCycle: string;
1315
+ escrowDepositeAmount: number;
1316
+ startDate: Date;
1317
+ endDate: Date;
1318
+ originalDocumentUrl: string;
1319
+ contractDocumentUrl: string;
1320
+ clientSignedAt: Date;
1321
+ freelancerViewed: boolean;
1322
+ freelancerViewedAt: Date;
1323
+ freelancerSignedAt: Date;
1324
+ rejectedAt: Date;
1325
+ rejectReason: string;
1326
+ isWorkContractSent: boolean;
1327
+ isEscrowDeposited: boolean;
1328
+ signaturePositions: any;
1329
+ escrowWallet: EscrowWallet;
1330
+ }
1331
+
1332
+ declare enum TimesheetStatusEnum {
1299
1333
  DRAFT = "DRAFT",
1300
1334
  SEND = "SEND",
1301
1335
  SEND_BACK = "SEND_BACK",
1302
1336
  APPROVED = "APPROVED",
1303
1337
  REJECTED = "REJECTED",
1304
- PAID = "PAID",
1305
- MISSING = "MISSING",
1306
- ACTIVE = "ACTIVE"
1338
+ PAID = "PAID"
1307
1339
  }
1308
- declare class TimesheetLine extends BaseEntity {
1340
+ declare class Timesheet extends BaseEntity {
1309
1341
  jobId: number;
1310
1342
  job: Job;
1311
1343
  clientId: number;
1312
1344
  client: User;
1313
1345
  freelancerId: number;
1314
1346
  freelancer: User;
1315
- timesheetLogs: TimesheetLogs[];
1316
- timesheetLineHistory: TimesheetLineHistory[];
1317
- uniqueId: string;
1347
+ startDate: Date;
1348
+ endDate: Date;
1349
+ startTime: string;
1350
+ endTime: string;
1351
+ workedHours: string;
1352
+ taskId: number;
1353
+ taskName: string;
1354
+ description: string;
1318
1355
  weekStartDate: Date;
1319
1356
  weekEndDate: Date;
1320
- status: TimesheetLineStatusEnum;
1321
- weeklyHoursSum: string;
1322
- isInvoiceGenrated: boolean;
1323
- isInvoiceApproved: boolean;
1324
- invoice: Invoice[];
1357
+ rejectedAt: Date;
1358
+ submittedAt: Date;
1359
+ resubmittedAt: Date;
1360
+ approvedAt: Date;
1361
+ status: TimesheetStatusEnum;
1362
+ clientSendBackReason: string;
1325
1363
  }
1326
1364
 
1327
1365
  declare enum JobLocationEnum {
@@ -1407,6 +1445,7 @@ declare class Job extends BaseEntity {
1407
1445
  f2fInterviews: F2FInterview[];
1408
1446
  recommendations: JobRecommendation[];
1409
1447
  contracts: Contract[];
1448
+ escrowWallets: EscrowWallet[];
1410
1449
  timesheets: Timesheet[];
1411
1450
  timesheetLine: TimesheetLine[];
1412
1451
  invoice: Invoice[];
@@ -1878,7 +1917,9 @@ declare class User extends BaseEntity {
1878
1917
  receivedRatings: Rating[];
1879
1918
  adminUserRoles: AdminUserRole[];
1880
1919
  clientContracts: Contract[];
1920
+ clientEscrowWallets: EscrowWallet[];
1881
1921
  freelancerContracts: Contract[];
1922
+ freelancerEscrowWallets: EscrowWallet[];
1882
1923
  signatures: Signature;
1883
1924
  clientTimesheets: Timesheet[];
1884
1925
  freelancerTimesheets: Timesheet[];