@experts_hub/shared 1.0.498 → 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.
- package/dist/entities/contract.entity.d.ts +2 -0
- package/dist/entities/escrow-wallet-transaction.entity.d.ts +23 -0
- package/dist/entities/escrow-wallet.entity.d.ts +18 -0
- package/dist/entities/invoice.entity.d.ts +2 -0
- package/dist/entities/job.entity.d.ts +2 -0
- package/dist/entities/user.entity.d.ts +3 -0
- package/dist/index.d.mts +130 -90
- package/dist/index.d.ts +130 -90
- package/dist/index.js +1154 -1029
- package/dist/index.mjs +1180 -1055
- package/package.json +1 -1
|
@@ -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
|
+
}
|
|
@@ -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
|
@@ -1135,83 +1135,6 @@ declare class JobRecommendation {
|
|
|
1135
1135
|
preference: ClientCandidatePreference[];
|
|
1136
1136
|
}
|
|
1137
1137
|
|
|
1138
|
-
declare enum ContractStatusEnum {
|
|
1139
|
-
GENERATED = "GENERATED",
|
|
1140
|
-
DRAFTED = "DRAFTED",
|
|
1141
|
-
SENT = "SENT",
|
|
1142
|
-
SIGNED = "SIGNED",
|
|
1143
|
-
ACTIVE = "ACTIVE",
|
|
1144
|
-
CANCELLED = "CANCELLED",
|
|
1145
|
-
DISPUTED = "DISPUTED",
|
|
1146
|
-
REJECTED = "REJECTED",
|
|
1147
|
-
RENEWED = "RENEWED",
|
|
1148
|
-
EXPIRED = "EXPIRED"
|
|
1149
|
-
}
|
|
1150
|
-
declare enum ContractTypeEnum {
|
|
1151
|
-
NDA = "NDA",
|
|
1152
|
-
WORK = "WORK"
|
|
1153
|
-
}
|
|
1154
|
-
declare class Contract extends BaseEntity {
|
|
1155
|
-
contractUniqueId: string;
|
|
1156
|
-
jobId: number;
|
|
1157
|
-
job: Job;
|
|
1158
|
-
clientId: number;
|
|
1159
|
-
client: User;
|
|
1160
|
-
freelancerId: number;
|
|
1161
|
-
freelancer: User;
|
|
1162
|
-
duration: number;
|
|
1163
|
-
status: ContractStatusEnum;
|
|
1164
|
-
type: ContractTypeEnum;
|
|
1165
|
-
invoicingCycle: string;
|
|
1166
|
-
escrowDepositeAmount: number;
|
|
1167
|
-
startDate: Date;
|
|
1168
|
-
endDate: Date;
|
|
1169
|
-
originalDocumentUrl: string;
|
|
1170
|
-
contractDocumentUrl: string;
|
|
1171
|
-
clientSignedAt: Date;
|
|
1172
|
-
freelancerViewed: boolean;
|
|
1173
|
-
freelancerViewedAt: Date;
|
|
1174
|
-
freelancerSignedAt: Date;
|
|
1175
|
-
rejectedAt: Date;
|
|
1176
|
-
rejectReason: string;
|
|
1177
|
-
isWorkContractSent: boolean;
|
|
1178
|
-
isEscrowDeposited: boolean;
|
|
1179
|
-
signaturePositions: any;
|
|
1180
|
-
}
|
|
1181
|
-
|
|
1182
|
-
declare enum TimesheetStatusEnum {
|
|
1183
|
-
DRAFT = "DRAFT",
|
|
1184
|
-
SEND = "SEND",
|
|
1185
|
-
SEND_BACK = "SEND_BACK",
|
|
1186
|
-
APPROVED = "APPROVED",
|
|
1187
|
-
REJECTED = "REJECTED",
|
|
1188
|
-
PAID = "PAID"
|
|
1189
|
-
}
|
|
1190
|
-
declare class Timesheet extends BaseEntity {
|
|
1191
|
-
jobId: number;
|
|
1192
|
-
job: Job;
|
|
1193
|
-
clientId: number;
|
|
1194
|
-
client: User;
|
|
1195
|
-
freelancerId: number;
|
|
1196
|
-
freelancer: User;
|
|
1197
|
-
startDate: Date;
|
|
1198
|
-
endDate: Date;
|
|
1199
|
-
startTime: string;
|
|
1200
|
-
endTime: string;
|
|
1201
|
-
workedHours: string;
|
|
1202
|
-
taskId: number;
|
|
1203
|
-
taskName: string;
|
|
1204
|
-
description: string;
|
|
1205
|
-
weekStartDate: Date;
|
|
1206
|
-
weekEndDate: Date;
|
|
1207
|
-
rejectedAt: Date;
|
|
1208
|
-
submittedAt: Date;
|
|
1209
|
-
resubmittedAt: Date;
|
|
1210
|
-
approvedAt: Date;
|
|
1211
|
-
status: TimesheetStatusEnum;
|
|
1212
|
-
clientSendBackReason: string;
|
|
1213
|
-
}
|
|
1214
|
-
|
|
1215
1138
|
declare class TimesheetLogs extends BaseEntity {
|
|
1216
1139
|
timesheetLineId: number;
|
|
1217
1140
|
timesheetLine: TimesheetLine;
|
|
@@ -1255,6 +1178,35 @@ declare class TimesheetLineHistory extends BaseEntity {
|
|
|
1255
1178
|
remarks: string;
|
|
1256
1179
|
}
|
|
1257
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
|
+
|
|
1258
1210
|
declare enum InvoiceTypeEnum {
|
|
1259
1211
|
WEEKLY = "WEEKLY",
|
|
1260
1212
|
MONTHLY = "MONTHLY"
|
|
@@ -1294,35 +1246,120 @@ declare class Invoice extends BaseEntity {
|
|
|
1294
1246
|
paymentStatus: InvoicePaymentStatusEnum;
|
|
1295
1247
|
clientInvoiceUrl: string;
|
|
1296
1248
|
freelancerInvoiceUrl: string;
|
|
1249
|
+
escrowWalletTransaction?: EscrowWalletTransaction;
|
|
1297
1250
|
}
|
|
1298
1251
|
|
|
1299
|
-
declare enum
|
|
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 {
|
|
1300
1333
|
DRAFT = "DRAFT",
|
|
1301
1334
|
SEND = "SEND",
|
|
1302
1335
|
SEND_BACK = "SEND_BACK",
|
|
1303
1336
|
APPROVED = "APPROVED",
|
|
1304
1337
|
REJECTED = "REJECTED",
|
|
1305
|
-
PAID = "PAID"
|
|
1306
|
-
MISSING = "MISSING",
|
|
1307
|
-
ACTIVE = "ACTIVE"
|
|
1338
|
+
PAID = "PAID"
|
|
1308
1339
|
}
|
|
1309
|
-
declare class
|
|
1340
|
+
declare class Timesheet extends BaseEntity {
|
|
1310
1341
|
jobId: number;
|
|
1311
1342
|
job: Job;
|
|
1312
1343
|
clientId: number;
|
|
1313
1344
|
client: User;
|
|
1314
1345
|
freelancerId: number;
|
|
1315
1346
|
freelancer: User;
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1347
|
+
startDate: Date;
|
|
1348
|
+
endDate: Date;
|
|
1349
|
+
startTime: string;
|
|
1350
|
+
endTime: string;
|
|
1351
|
+
workedHours: string;
|
|
1352
|
+
taskId: number;
|
|
1353
|
+
taskName: string;
|
|
1354
|
+
description: string;
|
|
1319
1355
|
weekStartDate: Date;
|
|
1320
1356
|
weekEndDate: Date;
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1357
|
+
rejectedAt: Date;
|
|
1358
|
+
submittedAt: Date;
|
|
1359
|
+
resubmittedAt: Date;
|
|
1360
|
+
approvedAt: Date;
|
|
1361
|
+
status: TimesheetStatusEnum;
|
|
1362
|
+
clientSendBackReason: string;
|
|
1326
1363
|
}
|
|
1327
1364
|
|
|
1328
1365
|
declare enum JobLocationEnum {
|
|
@@ -1408,6 +1445,7 @@ declare class Job extends BaseEntity {
|
|
|
1408
1445
|
f2fInterviews: F2FInterview[];
|
|
1409
1446
|
recommendations: JobRecommendation[];
|
|
1410
1447
|
contracts: Contract[];
|
|
1448
|
+
escrowWallets: EscrowWallet[];
|
|
1411
1449
|
timesheets: Timesheet[];
|
|
1412
1450
|
timesheetLine: TimesheetLine[];
|
|
1413
1451
|
invoice: Invoice[];
|
|
@@ -1879,7 +1917,9 @@ declare class User extends BaseEntity {
|
|
|
1879
1917
|
receivedRatings: Rating[];
|
|
1880
1918
|
adminUserRoles: AdminUserRole[];
|
|
1881
1919
|
clientContracts: Contract[];
|
|
1920
|
+
clientEscrowWallets: EscrowWallet[];
|
|
1882
1921
|
freelancerContracts: Contract[];
|
|
1922
|
+
freelancerEscrowWallets: EscrowWallet[];
|
|
1883
1923
|
signatures: Signature;
|
|
1884
1924
|
clientTimesheets: Timesheet[];
|
|
1885
1925
|
freelancerTimesheets: Timesheet[];
|
package/dist/index.d.ts
CHANGED
|
@@ -1135,83 +1135,6 @@ declare class JobRecommendation {
|
|
|
1135
1135
|
preference: ClientCandidatePreference[];
|
|
1136
1136
|
}
|
|
1137
1137
|
|
|
1138
|
-
declare enum ContractStatusEnum {
|
|
1139
|
-
GENERATED = "GENERATED",
|
|
1140
|
-
DRAFTED = "DRAFTED",
|
|
1141
|
-
SENT = "SENT",
|
|
1142
|
-
SIGNED = "SIGNED",
|
|
1143
|
-
ACTIVE = "ACTIVE",
|
|
1144
|
-
CANCELLED = "CANCELLED",
|
|
1145
|
-
DISPUTED = "DISPUTED",
|
|
1146
|
-
REJECTED = "REJECTED",
|
|
1147
|
-
RENEWED = "RENEWED",
|
|
1148
|
-
EXPIRED = "EXPIRED"
|
|
1149
|
-
}
|
|
1150
|
-
declare enum ContractTypeEnum {
|
|
1151
|
-
NDA = "NDA",
|
|
1152
|
-
WORK = "WORK"
|
|
1153
|
-
}
|
|
1154
|
-
declare class Contract extends BaseEntity {
|
|
1155
|
-
contractUniqueId: string;
|
|
1156
|
-
jobId: number;
|
|
1157
|
-
job: Job;
|
|
1158
|
-
clientId: number;
|
|
1159
|
-
client: User;
|
|
1160
|
-
freelancerId: number;
|
|
1161
|
-
freelancer: User;
|
|
1162
|
-
duration: number;
|
|
1163
|
-
status: ContractStatusEnum;
|
|
1164
|
-
type: ContractTypeEnum;
|
|
1165
|
-
invoicingCycle: string;
|
|
1166
|
-
escrowDepositeAmount: number;
|
|
1167
|
-
startDate: Date;
|
|
1168
|
-
endDate: Date;
|
|
1169
|
-
originalDocumentUrl: string;
|
|
1170
|
-
contractDocumentUrl: string;
|
|
1171
|
-
clientSignedAt: Date;
|
|
1172
|
-
freelancerViewed: boolean;
|
|
1173
|
-
freelancerViewedAt: Date;
|
|
1174
|
-
freelancerSignedAt: Date;
|
|
1175
|
-
rejectedAt: Date;
|
|
1176
|
-
rejectReason: string;
|
|
1177
|
-
isWorkContractSent: boolean;
|
|
1178
|
-
isEscrowDeposited: boolean;
|
|
1179
|
-
signaturePositions: any;
|
|
1180
|
-
}
|
|
1181
|
-
|
|
1182
|
-
declare enum TimesheetStatusEnum {
|
|
1183
|
-
DRAFT = "DRAFT",
|
|
1184
|
-
SEND = "SEND",
|
|
1185
|
-
SEND_BACK = "SEND_BACK",
|
|
1186
|
-
APPROVED = "APPROVED",
|
|
1187
|
-
REJECTED = "REJECTED",
|
|
1188
|
-
PAID = "PAID"
|
|
1189
|
-
}
|
|
1190
|
-
declare class Timesheet extends BaseEntity {
|
|
1191
|
-
jobId: number;
|
|
1192
|
-
job: Job;
|
|
1193
|
-
clientId: number;
|
|
1194
|
-
client: User;
|
|
1195
|
-
freelancerId: number;
|
|
1196
|
-
freelancer: User;
|
|
1197
|
-
startDate: Date;
|
|
1198
|
-
endDate: Date;
|
|
1199
|
-
startTime: string;
|
|
1200
|
-
endTime: string;
|
|
1201
|
-
workedHours: string;
|
|
1202
|
-
taskId: number;
|
|
1203
|
-
taskName: string;
|
|
1204
|
-
description: string;
|
|
1205
|
-
weekStartDate: Date;
|
|
1206
|
-
weekEndDate: Date;
|
|
1207
|
-
rejectedAt: Date;
|
|
1208
|
-
submittedAt: Date;
|
|
1209
|
-
resubmittedAt: Date;
|
|
1210
|
-
approvedAt: Date;
|
|
1211
|
-
status: TimesheetStatusEnum;
|
|
1212
|
-
clientSendBackReason: string;
|
|
1213
|
-
}
|
|
1214
|
-
|
|
1215
1138
|
declare class TimesheetLogs extends BaseEntity {
|
|
1216
1139
|
timesheetLineId: number;
|
|
1217
1140
|
timesheetLine: TimesheetLine;
|
|
@@ -1255,6 +1178,35 @@ declare class TimesheetLineHistory extends BaseEntity {
|
|
|
1255
1178
|
remarks: string;
|
|
1256
1179
|
}
|
|
1257
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
|
+
|
|
1258
1210
|
declare enum InvoiceTypeEnum {
|
|
1259
1211
|
WEEKLY = "WEEKLY",
|
|
1260
1212
|
MONTHLY = "MONTHLY"
|
|
@@ -1294,35 +1246,120 @@ declare class Invoice extends BaseEntity {
|
|
|
1294
1246
|
paymentStatus: InvoicePaymentStatusEnum;
|
|
1295
1247
|
clientInvoiceUrl: string;
|
|
1296
1248
|
freelancerInvoiceUrl: string;
|
|
1249
|
+
escrowWalletTransaction?: EscrowWalletTransaction;
|
|
1297
1250
|
}
|
|
1298
1251
|
|
|
1299
|
-
declare enum
|
|
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 {
|
|
1300
1333
|
DRAFT = "DRAFT",
|
|
1301
1334
|
SEND = "SEND",
|
|
1302
1335
|
SEND_BACK = "SEND_BACK",
|
|
1303
1336
|
APPROVED = "APPROVED",
|
|
1304
1337
|
REJECTED = "REJECTED",
|
|
1305
|
-
PAID = "PAID"
|
|
1306
|
-
MISSING = "MISSING",
|
|
1307
|
-
ACTIVE = "ACTIVE"
|
|
1338
|
+
PAID = "PAID"
|
|
1308
1339
|
}
|
|
1309
|
-
declare class
|
|
1340
|
+
declare class Timesheet extends BaseEntity {
|
|
1310
1341
|
jobId: number;
|
|
1311
1342
|
job: Job;
|
|
1312
1343
|
clientId: number;
|
|
1313
1344
|
client: User;
|
|
1314
1345
|
freelancerId: number;
|
|
1315
1346
|
freelancer: User;
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1347
|
+
startDate: Date;
|
|
1348
|
+
endDate: Date;
|
|
1349
|
+
startTime: string;
|
|
1350
|
+
endTime: string;
|
|
1351
|
+
workedHours: string;
|
|
1352
|
+
taskId: number;
|
|
1353
|
+
taskName: string;
|
|
1354
|
+
description: string;
|
|
1319
1355
|
weekStartDate: Date;
|
|
1320
1356
|
weekEndDate: Date;
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1357
|
+
rejectedAt: Date;
|
|
1358
|
+
submittedAt: Date;
|
|
1359
|
+
resubmittedAt: Date;
|
|
1360
|
+
approvedAt: Date;
|
|
1361
|
+
status: TimesheetStatusEnum;
|
|
1362
|
+
clientSendBackReason: string;
|
|
1326
1363
|
}
|
|
1327
1364
|
|
|
1328
1365
|
declare enum JobLocationEnum {
|
|
@@ -1408,6 +1445,7 @@ declare class Job extends BaseEntity {
|
|
|
1408
1445
|
f2fInterviews: F2FInterview[];
|
|
1409
1446
|
recommendations: JobRecommendation[];
|
|
1410
1447
|
contracts: Contract[];
|
|
1448
|
+
escrowWallets: EscrowWallet[];
|
|
1411
1449
|
timesheets: Timesheet[];
|
|
1412
1450
|
timesheetLine: TimesheetLine[];
|
|
1413
1451
|
invoice: Invoice[];
|
|
@@ -1879,7 +1917,9 @@ declare class User extends BaseEntity {
|
|
|
1879
1917
|
receivedRatings: Rating[];
|
|
1880
1918
|
adminUserRoles: AdminUserRole[];
|
|
1881
1919
|
clientContracts: Contract[];
|
|
1920
|
+
clientEscrowWallets: EscrowWallet[];
|
|
1882
1921
|
freelancerContracts: Contract[];
|
|
1922
|
+
freelancerEscrowWallets: EscrowWallet[];
|
|
1883
1923
|
signatures: Signature;
|
|
1884
1924
|
clientTimesheets: Timesheet[];
|
|
1885
1925
|
freelancerTimesheets: Timesheet[];
|