@deepintel-ltd/buildlink-api-contracts 0.2.29 → 0.2.31
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/README.md +1 -1
- package/contracts/auth.d.ts +86 -86
- package/contracts/auth.d.ts.map +1 -1
- package/contracts/auth.js +1 -1
- package/contracts/auth.js.map +1 -1
- package/contracts/boq.d.ts +18 -18
- package/contracts/budget.d.ts +1969 -173
- package/contracts/budget.d.ts.map +1 -1
- package/contracts/budget.js +36 -1
- package/contracts/budget.js.map +1 -1
- package/contracts/communication.d.ts +560 -0
- package/contracts/communication.d.ts.map +1 -1
- package/contracts/contractor-ledger.d.ts +508 -12
- package/contracts/contractor-ledger.d.ts.map +1 -1
- package/contracts/contractor-ledger.js +29 -1
- package/contracts/contractor-ledger.js.map +1 -1
- package/contracts/daily-logs.d.ts +1362 -74
- package/contracts/daily-logs.d.ts.map +1 -1
- package/contracts/deficiencies.d.ts +4516 -436
- package/contracts/deficiencies.d.ts.map +1 -1
- package/contracts/deficiencies.js +99 -1
- package/contracts/deficiencies.js.map +1 -1
- package/contracts/directory.d.ts +48 -48
- package/contracts/documents.d.ts +149 -149
- package/contracts/drawings.d.ts +246 -246
- package/contracts/hub.d.ts +18 -18
- package/contracts/index.d.ts +3 -2
- package/contracts/index.d.ts.map +1 -1
- package/contracts/index.js +2 -2
- package/contracts/index.js.map +1 -1
- package/contracts/maps.d.ts +42 -42
- package/contracts/packages.d.ts +24 -24
- package/contracts/projects.d.ts +610 -50
- package/contracts/projects.d.ts.map +1 -1
- package/contracts/proof.d.ts +694 -0
- package/contracts/proof.d.ts.map +1 -1
- package/contracts/proof.js +41 -1
- package/contracts/proof.js.map +1 -1
- package/contracts/qaqc.d.ts +577 -0
- package/contracts/qaqc.d.ts.map +1 -1
- package/contracts/qaqc.js +15 -1
- package/contracts/qaqc.js.map +1 -1
- package/contracts/rbac.d.ts +22 -22
- package/contracts/rbac.d.ts.map +1 -1
- package/contracts/rbac.js +1 -1
- package/contracts/rbac.js.map +1 -1
- package/contracts/resources.d.ts +60 -60
- package/contracts/rfi-submittal.d.ts +128 -128
- package/contracts/safety.d.ts +2156 -162
- package/contracts/safety.d.ts.map +1 -1
- package/contracts/safety.js +44 -1
- package/contracts/safety.js.map +1 -1
- package/contracts/schedule.d.ts +84 -84
- package/contracts/specifications.d.ts +156 -156
- package/contracts/tasks.d.ts +2312 -229
- package/contracts/tasks.d.ts.map +1 -1
- package/contracts/tasks.js +55 -1
- package/contracts/tasks.js.map +1 -1
- package/contracts/timecards.d.ts +32 -32
- package/contracts/valuations.d.ts +64 -64
- package/package.json +1 -1
- package/schemas/auth.d.ts +36 -36
- package/schemas/boq.d.ts +6 -6
- package/schemas/budget.d.ts +168 -4
- package/schemas/budget.d.ts.map +1 -1
- package/schemas/budget.js +31 -1
- package/schemas/budget.js.map +1 -1
- package/schemas/common.d.ts +37 -0
- package/schemas/common.d.ts.map +1 -1
- package/schemas/common.js +37 -0
- package/schemas/common.js.map +1 -1
- package/schemas/common.person-summary.spec.d.ts +2 -0
- package/schemas/common.person-summary.spec.d.ts.map +1 -0
- package/schemas/common.person-summary.spec.js +33 -0
- package/schemas/common.person-summary.spec.js.map +1 -0
- package/schemas/communication.d.ts +94 -0
- package/schemas/communication.d.ts.map +1 -1
- package/schemas/communication.js +3 -1
- package/schemas/communication.js.map +1 -1
- package/schemas/contractor-ledger.d.ts +77 -6
- package/schemas/contractor-ledger.d.ts.map +1 -1
- package/schemas/contractor-ledger.js +13 -0
- package/schemas/contractor-ledger.js.map +1 -1
- package/schemas/daily-logs.d.ts +232 -22
- package/schemas/daily-logs.d.ts.map +1 -1
- package/schemas/daily-logs.js +7 -1
- package/schemas/daily-logs.js.map +1 -1
- package/schemas/deficiencies.d.ts +793 -100
- package/schemas/deficiencies.d.ts.map +1 -1
- package/schemas/deficiencies.js +79 -6
- package/schemas/deficiencies.js.map +1 -1
- package/schemas/directory.d.ts +20 -20
- package/schemas/documents.d.ts +3 -3
- package/schemas/drawings.d.ts +74 -74
- package/schemas/hub.d.ts +6 -6
- package/schemas/maps.d.ts +6 -6
- package/schemas/packages.d.ts +6 -6
- package/schemas/projects.d.ts +8 -8
- package/schemas/proof.d.ts +20 -0
- package/schemas/proof.d.ts.map +1 -1
- package/schemas/proof.js +7 -0
- package/schemas/proof.js.map +1 -1
- package/schemas/qaqc.d.ts +87 -0
- package/schemas/qaqc.d.ts.map +1 -1
- package/schemas/qaqc.js +25 -1
- package/schemas/qaqc.js.map +1 -1
- package/schemas/resources.d.ts +18 -18
- package/schemas/rfi.d.ts +52 -52
- package/schemas/safety.d.ts +491 -0
- package/schemas/safety.d.ts.map +1 -1
- package/schemas/safety.js +54 -1
- package/schemas/safety.js.map +1 -1
- package/schemas/schedule.d.ts +68 -68
- package/schemas/specifications.d.ts +134 -134
- package/schemas/submittal.d.ts +52 -52
- package/schemas/tasks.d.ts +111 -23
- package/schemas/tasks.d.ts.map +1 -1
- package/schemas/tasks.js +11 -2
- package/schemas/tasks.js.map +1 -1
- package/schemas/timecards.d.ts +6 -6
- package/schemas/valuations.d.ts +12 -12
package/schemas/tasks.d.ts
CHANGED
|
@@ -19,8 +19,52 @@ export declare const TaskSchema: z.ZodObject<{
|
|
|
19
19
|
actualHours: z.ZodOptional<z.ZodNumber>;
|
|
20
20
|
progress: z.ZodDefault<z.ZodNumber>;
|
|
21
21
|
assignedTo: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
22
|
+
assignees: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
23
|
+
id: z.ZodString;
|
|
24
|
+
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
email: z.ZodOptional<z.ZodString>;
|
|
27
|
+
name: z.ZodOptional<z.ZodString>;
|
|
28
|
+
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
}, "strip", z.ZodTypeAny, {
|
|
30
|
+
id: string;
|
|
31
|
+
firstName?: string | null | undefined;
|
|
32
|
+
lastName?: string | null | undefined;
|
|
33
|
+
email?: string | undefined;
|
|
34
|
+
name?: string | undefined;
|
|
35
|
+
avatar?: string | null | undefined;
|
|
36
|
+
}, {
|
|
37
|
+
id: string;
|
|
38
|
+
firstName?: string | null | undefined;
|
|
39
|
+
lastName?: string | null | undefined;
|
|
40
|
+
email?: string | undefined;
|
|
41
|
+
name?: string | undefined;
|
|
42
|
+
avatar?: string | null | undefined;
|
|
43
|
+
}>, "many">>;
|
|
22
44
|
dependencies: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
23
45
|
createdBy: z.ZodString;
|
|
46
|
+
creator: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
47
|
+
id: z.ZodString;
|
|
48
|
+
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
|
+
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
|
+
email: z.ZodOptional<z.ZodString>;
|
|
51
|
+
name: z.ZodOptional<z.ZodString>;
|
|
52
|
+
avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
|
+
}, "strip", z.ZodTypeAny, {
|
|
54
|
+
id: string;
|
|
55
|
+
firstName?: string | null | undefined;
|
|
56
|
+
lastName?: string | null | undefined;
|
|
57
|
+
email?: string | undefined;
|
|
58
|
+
name?: string | undefined;
|
|
59
|
+
avatar?: string | null | undefined;
|
|
60
|
+
}, {
|
|
61
|
+
id: string;
|
|
62
|
+
firstName?: string | null | undefined;
|
|
63
|
+
lastName?: string | null | undefined;
|
|
64
|
+
email?: string | undefined;
|
|
65
|
+
name?: string | undefined;
|
|
66
|
+
avatar?: string | null | undefined;
|
|
67
|
+
}>>>;
|
|
24
68
|
completedAt: z.ZodOptional<z.ZodString>;
|
|
25
69
|
documents: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
26
70
|
id: z.ZodString;
|
|
@@ -49,9 +93,9 @@ export declare const TaskSchema: z.ZodObject<{
|
|
|
49
93
|
type: "DRAWING" | "SPECIFICATION" | "CONTRACT" | "RFI" | "SUBMITTAL" | "TRANSMITTAL" | "PHOTO" | "REPORT" | "INVOICE" | "PURCHASE_ORDER" | "PERMIT" | "INSPECTION_REPORT" | "CHANGE_ORDER" | "MEETING_MINUTES" | "OTHER";
|
|
50
94
|
title: string;
|
|
51
95
|
projectId: string;
|
|
96
|
+
fileUrl: string;
|
|
52
97
|
tags: string[];
|
|
53
98
|
version: string;
|
|
54
|
-
fileUrl: string;
|
|
55
99
|
fileName: string;
|
|
56
100
|
isConfidential: boolean;
|
|
57
101
|
uploadedById: string;
|
|
@@ -101,9 +145,9 @@ export declare const TaskSchema: z.ZodObject<{
|
|
|
101
145
|
type: "DRAWING" | "SPECIFICATION" | "CONTRACT" | "RFI" | "SUBMITTAL" | "TRANSMITTAL" | "PHOTO" | "REPORT" | "INVOICE" | "PURCHASE_ORDER" | "PERMIT" | "INSPECTION_REPORT" | "CHANGE_ORDER" | "MEETING_MINUTES" | "OTHER";
|
|
102
146
|
title: string;
|
|
103
147
|
projectId: string;
|
|
148
|
+
fileUrl: string;
|
|
104
149
|
tags: string[];
|
|
105
150
|
version: string;
|
|
106
|
-
fileUrl: string;
|
|
107
151
|
fileName: string;
|
|
108
152
|
isConfidential: boolean;
|
|
109
153
|
uploadedById: string;
|
|
@@ -130,6 +174,22 @@ export declare const TaskSchema: z.ZodObject<{
|
|
|
130
174
|
estimatedHours?: number | undefined;
|
|
131
175
|
actualHours?: number | undefined;
|
|
132
176
|
completedAt?: string | undefined;
|
|
177
|
+
assignees?: {
|
|
178
|
+
id: string;
|
|
179
|
+
firstName?: string | null | undefined;
|
|
180
|
+
lastName?: string | null | undefined;
|
|
181
|
+
email?: string | undefined;
|
|
182
|
+
name?: string | undefined;
|
|
183
|
+
avatar?: string | null | undefined;
|
|
184
|
+
}[] | undefined;
|
|
185
|
+
creator?: {
|
|
186
|
+
id: string;
|
|
187
|
+
firstName?: string | null | undefined;
|
|
188
|
+
lastName?: string | null | undefined;
|
|
189
|
+
email?: string | undefined;
|
|
190
|
+
name?: string | undefined;
|
|
191
|
+
avatar?: string | null | undefined;
|
|
192
|
+
} | null | undefined;
|
|
133
193
|
}, {
|
|
134
194
|
id: string;
|
|
135
195
|
createdAt: string;
|
|
@@ -173,7 +233,23 @@ export declare const TaskSchema: z.ZodObject<{
|
|
|
173
233
|
assignedTo?: string[] | undefined;
|
|
174
234
|
progress?: number | undefined;
|
|
175
235
|
completedAt?: string | undefined;
|
|
236
|
+
assignees?: {
|
|
237
|
+
id: string;
|
|
238
|
+
firstName?: string | null | undefined;
|
|
239
|
+
lastName?: string | null | undefined;
|
|
240
|
+
email?: string | undefined;
|
|
241
|
+
name?: string | undefined;
|
|
242
|
+
avatar?: string | null | undefined;
|
|
243
|
+
}[] | undefined;
|
|
176
244
|
dependencies?: string[] | undefined;
|
|
245
|
+
creator?: {
|
|
246
|
+
id: string;
|
|
247
|
+
firstName?: string | null | undefined;
|
|
248
|
+
lastName?: string | null | undefined;
|
|
249
|
+
email?: string | undefined;
|
|
250
|
+
name?: string | undefined;
|
|
251
|
+
avatar?: string | null | undefined;
|
|
252
|
+
} | null | undefined;
|
|
177
253
|
}>;
|
|
178
254
|
export declare const TaskAssignmentSchema: z.ZodObject<{
|
|
179
255
|
taskId: z.ZodString;
|
|
@@ -219,8 +295,8 @@ export declare const MilestoneSchema: z.ZodObject<{
|
|
|
219
295
|
isActive: boolean;
|
|
220
296
|
isDeleted: boolean;
|
|
221
297
|
status: "IN_PROGRESS" | "PLANNED" | "COMPLETED" | "DELAYED";
|
|
222
|
-
projectId: string;
|
|
223
298
|
name: string;
|
|
299
|
+
projectId: string;
|
|
224
300
|
targetDate: string;
|
|
225
301
|
updatedBy?: string | undefined;
|
|
226
302
|
description?: string | undefined;
|
|
@@ -232,8 +308,8 @@ export declare const MilestoneSchema: z.ZodObject<{
|
|
|
232
308
|
createdBy: string;
|
|
233
309
|
companyId: string;
|
|
234
310
|
status: "IN_PROGRESS" | "PLANNED" | "COMPLETED" | "DELAYED";
|
|
235
|
-
projectId: string;
|
|
236
311
|
name: string;
|
|
312
|
+
projectId: string;
|
|
237
313
|
targetDate: string;
|
|
238
314
|
updatedBy?: string | undefined;
|
|
239
315
|
isActive?: boolean | undefined;
|
|
@@ -255,12 +331,12 @@ export declare const TaskScheduleItemSchema: z.ZodObject<{
|
|
|
255
331
|
email: z.ZodString;
|
|
256
332
|
}, "strip", z.ZodTypeAny, {
|
|
257
333
|
id: string;
|
|
258
|
-
name: string;
|
|
259
334
|
email: string;
|
|
335
|
+
name: string;
|
|
260
336
|
}, {
|
|
261
337
|
id: string;
|
|
262
|
-
name: string;
|
|
263
338
|
email: string;
|
|
339
|
+
name: string;
|
|
264
340
|
}>, "many">;
|
|
265
341
|
status: z.ZodString;
|
|
266
342
|
priority: z.ZodOptional<z.ZodString>;
|
|
@@ -270,12 +346,12 @@ export declare const TaskScheduleItemSchema: z.ZodObject<{
|
|
|
270
346
|
status: string;
|
|
271
347
|
title: string;
|
|
272
348
|
progress: number;
|
|
273
|
-
dependencies: string[];
|
|
274
349
|
assignees: {
|
|
275
350
|
id: string;
|
|
276
|
-
name: string;
|
|
277
351
|
email: string;
|
|
352
|
+
name: string;
|
|
278
353
|
}[];
|
|
354
|
+
dependencies: string[];
|
|
279
355
|
priority?: string | undefined;
|
|
280
356
|
startDate?: string | undefined;
|
|
281
357
|
endDate?: string | undefined;
|
|
@@ -285,12 +361,12 @@ export declare const TaskScheduleItemSchema: z.ZodObject<{
|
|
|
285
361
|
status: string;
|
|
286
362
|
title: string;
|
|
287
363
|
progress: number;
|
|
288
|
-
dependencies: string[];
|
|
289
364
|
assignees: {
|
|
290
365
|
id: string;
|
|
291
|
-
name: string;
|
|
292
366
|
email: string;
|
|
367
|
+
name: string;
|
|
293
368
|
}[];
|
|
369
|
+
dependencies: string[];
|
|
294
370
|
priority?: string | undefined;
|
|
295
371
|
startDate?: string | undefined;
|
|
296
372
|
endDate?: string | undefined;
|
|
@@ -312,12 +388,12 @@ export declare const ProjectScheduleSchema: z.ZodObject<{
|
|
|
312
388
|
email: z.ZodString;
|
|
313
389
|
}, "strip", z.ZodTypeAny, {
|
|
314
390
|
id: string;
|
|
315
|
-
name: string;
|
|
316
391
|
email: string;
|
|
392
|
+
name: string;
|
|
317
393
|
}, {
|
|
318
394
|
id: string;
|
|
319
|
-
name: string;
|
|
320
395
|
email: string;
|
|
396
|
+
name: string;
|
|
321
397
|
}>, "many">;
|
|
322
398
|
status: z.ZodString;
|
|
323
399
|
priority: z.ZodOptional<z.ZodString>;
|
|
@@ -327,12 +403,12 @@ export declare const ProjectScheduleSchema: z.ZodObject<{
|
|
|
327
403
|
status: string;
|
|
328
404
|
title: string;
|
|
329
405
|
progress: number;
|
|
330
|
-
dependencies: string[];
|
|
331
406
|
assignees: {
|
|
332
407
|
id: string;
|
|
333
|
-
name: string;
|
|
334
408
|
email: string;
|
|
409
|
+
name: string;
|
|
335
410
|
}[];
|
|
411
|
+
dependencies: string[];
|
|
336
412
|
priority?: string | undefined;
|
|
337
413
|
startDate?: string | undefined;
|
|
338
414
|
endDate?: string | undefined;
|
|
@@ -342,12 +418,12 @@ export declare const ProjectScheduleSchema: z.ZodObject<{
|
|
|
342
418
|
status: string;
|
|
343
419
|
title: string;
|
|
344
420
|
progress: number;
|
|
345
|
-
dependencies: string[];
|
|
346
421
|
assignees: {
|
|
347
422
|
id: string;
|
|
348
|
-
name: string;
|
|
349
423
|
email: string;
|
|
424
|
+
name: string;
|
|
350
425
|
}[];
|
|
426
|
+
dependencies: string[];
|
|
351
427
|
priority?: string | undefined;
|
|
352
428
|
startDate?: string | undefined;
|
|
353
429
|
endDate?: string | undefined;
|
|
@@ -364,12 +440,12 @@ export declare const ProjectScheduleSchema: z.ZodObject<{
|
|
|
364
440
|
status: string;
|
|
365
441
|
title: string;
|
|
366
442
|
progress: number;
|
|
367
|
-
dependencies: string[];
|
|
368
443
|
assignees: {
|
|
369
444
|
id: string;
|
|
370
|
-
name: string;
|
|
371
445
|
email: string;
|
|
446
|
+
name: string;
|
|
372
447
|
}[];
|
|
448
|
+
dependencies: string[];
|
|
373
449
|
priority?: string | undefined;
|
|
374
450
|
startDate?: string | undefined;
|
|
375
451
|
endDate?: string | undefined;
|
|
@@ -386,12 +462,12 @@ export declare const ProjectScheduleSchema: z.ZodObject<{
|
|
|
386
462
|
status: string;
|
|
387
463
|
title: string;
|
|
388
464
|
progress: number;
|
|
389
|
-
dependencies: string[];
|
|
390
465
|
assignees: {
|
|
391
466
|
id: string;
|
|
392
|
-
name: string;
|
|
393
467
|
email: string;
|
|
468
|
+
name: string;
|
|
394
469
|
}[];
|
|
470
|
+
dependencies: string[];
|
|
395
471
|
priority?: string | undefined;
|
|
396
472
|
startDate?: string | undefined;
|
|
397
473
|
endDate?: string | undefined;
|
|
@@ -400,6 +476,7 @@ export declare const ProjectScheduleSchema: z.ZodObject<{
|
|
|
400
476
|
startDate: string;
|
|
401
477
|
endDate: string;
|
|
402
478
|
}>;
|
|
479
|
+
export declare const TimeEntryStatusSchema: z.ZodEnum<["RUNNING", "COMPLETED"]>;
|
|
403
480
|
export declare const TimeEntrySchema: z.ZodObject<{
|
|
404
481
|
id: z.ZodString;
|
|
405
482
|
createdAt: z.ZodString;
|
|
@@ -413,9 +490,13 @@ export declare const TimeEntrySchema: z.ZodObject<{
|
|
|
413
490
|
taskId: z.ZodString;
|
|
414
491
|
userId: z.ZodString;
|
|
415
492
|
date: z.ZodString;
|
|
416
|
-
|
|
493
|
+
/** Null while a timer is RUNNING */
|
|
494
|
+
hours: z.ZodNullable<z.ZodNumber>;
|
|
417
495
|
description: z.ZodOptional<z.ZodString>;
|
|
418
496
|
billable: z.ZodDefault<z.ZodBoolean>;
|
|
497
|
+
status: z.ZodDefault<z.ZodEnum<["RUNNING", "COMPLETED"]>>;
|
|
498
|
+
startTime: z.ZodOptional<z.ZodString>;
|
|
499
|
+
endTime: z.ZodOptional<z.ZodString>;
|
|
419
500
|
}, "strip", z.ZodTypeAny, {
|
|
420
501
|
id: string;
|
|
421
502
|
createdAt: string;
|
|
@@ -424,13 +505,16 @@ export declare const TimeEntrySchema: z.ZodObject<{
|
|
|
424
505
|
companyId: string;
|
|
425
506
|
isActive: boolean;
|
|
426
507
|
isDeleted: boolean;
|
|
508
|
+
status: "COMPLETED" | "RUNNING";
|
|
427
509
|
date: string;
|
|
428
510
|
userId: string;
|
|
429
511
|
taskId: string;
|
|
430
|
-
hours: number;
|
|
512
|
+
hours: number | null;
|
|
431
513
|
billable: boolean;
|
|
432
514
|
updatedBy?: string | undefined;
|
|
433
515
|
description?: string | undefined;
|
|
516
|
+
startTime?: string | undefined;
|
|
517
|
+
endTime?: string | undefined;
|
|
434
518
|
}, {
|
|
435
519
|
id: string;
|
|
436
520
|
createdAt: string;
|
|
@@ -440,11 +524,14 @@ export declare const TimeEntrySchema: z.ZodObject<{
|
|
|
440
524
|
date: string;
|
|
441
525
|
userId: string;
|
|
442
526
|
taskId: string;
|
|
443
|
-
hours: number;
|
|
527
|
+
hours: number | null;
|
|
444
528
|
updatedBy?: string | undefined;
|
|
445
529
|
isActive?: boolean | undefined;
|
|
446
530
|
isDeleted?: boolean | undefined;
|
|
531
|
+
status?: "COMPLETED" | "RUNNING" | undefined;
|
|
447
532
|
description?: string | undefined;
|
|
533
|
+
startTime?: string | undefined;
|
|
534
|
+
endTime?: string | undefined;
|
|
448
535
|
billable?: boolean | undefined;
|
|
449
536
|
}>;
|
|
450
537
|
export declare const CreateTaskRequestSchema: z.ZodObject<{
|
|
@@ -601,6 +688,7 @@ export type Milestone = z.infer<typeof MilestoneSchema>;
|
|
|
601
688
|
export type TaskScheduleItem = z.infer<typeof TaskScheduleItemSchema>;
|
|
602
689
|
export type ProjectSchedule = z.infer<typeof ProjectScheduleSchema>;
|
|
603
690
|
export type TimeEntry = z.infer<typeof TimeEntrySchema>;
|
|
691
|
+
export type TimeEntryStatus = z.infer<typeof TimeEntryStatusSchema>;
|
|
604
692
|
export type CreateTaskRequest = z.infer<typeof CreateTaskRequestSchema>;
|
|
605
693
|
export type UpdateTaskRequest = z.infer<typeof UpdateTaskRequestSchema>;
|
|
606
694
|
export type CreateMilestoneRequest = z.infer<typeof CreateMilestoneRequestSchema>;
|
package/schemas/tasks.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tasks.d.ts","sourceRoot":"","sources":["../../../src/schemas/tasks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"tasks.d.ts","sourceRoot":"","sources":["../../../src/schemas/tasks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoBrB,CAAC;AAGH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;EAM/B,CAAC;AAGH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQ1B,CAAC;AAGH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBjC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAClF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAClF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAClF,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
package/schemas/tasks.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { BaseEntitySchema, PrioritySchema, TaskStatusSchema } from './common';
|
|
2
|
+
import { BaseEntitySchema, PersonSummarySchema, PrioritySchema, TaskStatusSchema } from './common';
|
|
3
3
|
import { DocumentSchema } from './documents';
|
|
4
4
|
// Task Entity
|
|
5
5
|
export const TaskSchema = BaseEntitySchema.extend({
|
|
@@ -14,8 +14,12 @@ export const TaskSchema = BaseEntitySchema.extend({
|
|
|
14
14
|
actualHours: z.number().nonnegative().optional(),
|
|
15
15
|
progress: z.number().min(0).max(100).default(0),
|
|
16
16
|
assignedTo: z.array(z.string().uuid()).default([]),
|
|
17
|
+
/** Nested assignee summaries for UI display (additive; keep assignedTo ids for filters). */
|
|
18
|
+
assignees: z.array(PersonSummarySchema).optional(),
|
|
17
19
|
dependencies: z.array(z.string().uuid()).default([]),
|
|
18
20
|
createdBy: z.string().uuid(),
|
|
21
|
+
/** Nested creator summary for UI display (additive; keep createdBy id). */
|
|
22
|
+
creator: PersonSummarySchema.nullable().optional(),
|
|
19
23
|
completedAt: z.string().datetime().optional(),
|
|
20
24
|
documents: z.array(DocumentSchema).default([]),
|
|
21
25
|
});
|
|
@@ -63,13 +67,18 @@ export const ProjectScheduleSchema = z.object({
|
|
|
63
67
|
lastUpdated: z.string().datetime(),
|
|
64
68
|
});
|
|
65
69
|
// Time Tracking
|
|
70
|
+
export const TimeEntryStatusSchema = z.enum(['RUNNING', 'COMPLETED']);
|
|
66
71
|
export const TimeEntrySchema = BaseEntitySchema.extend({
|
|
67
72
|
taskId: z.string().uuid(),
|
|
68
73
|
userId: z.string().uuid(),
|
|
69
74
|
date: z.string().datetime(),
|
|
70
|
-
|
|
75
|
+
/** Null while a timer is RUNNING */
|
|
76
|
+
hours: z.number().nonnegative().nullable(),
|
|
71
77
|
description: z.string().max(500).optional(),
|
|
72
78
|
billable: z.boolean().default(true),
|
|
79
|
+
status: TimeEntryStatusSchema.default('COMPLETED'),
|
|
80
|
+
startTime: z.string().datetime().optional(),
|
|
81
|
+
endTime: z.string().datetime().optional(),
|
|
73
82
|
});
|
|
74
83
|
// Request Schemas
|
|
75
84
|
export const CreateTaskRequestSchema = z.object({
|
package/schemas/tasks.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tasks.js","sourceRoot":"","sources":["../../../src/schemas/tasks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"tasks.js","sourceRoot":"","sources":["../../../src/schemas/tasks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AACnG,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C,cAAc;AACd,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,MAAM,CAAC;IAChD,SAAS,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EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC7C,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC3C,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC9B,CAAC,CAAC"}
|
package/schemas/timecards.d.ts
CHANGED
|
@@ -145,8 +145,8 @@ export declare const TimecardSchema: z.ZodObject<{
|
|
|
145
145
|
regularHours: number;
|
|
146
146
|
approvedBy?: string | undefined;
|
|
147
147
|
approvedAt?: string | undefined;
|
|
148
|
-
submittedAt?: string | undefined;
|
|
149
148
|
rejectionReason?: string | undefined;
|
|
149
|
+
submittedAt?: string | undefined;
|
|
150
150
|
}, {
|
|
151
151
|
id: string;
|
|
152
152
|
createdAt: string;
|
|
@@ -178,8 +178,8 @@ export declare const TimecardSchema: z.ZodObject<{
|
|
|
178
178
|
status?: "SUBMITTED" | "APPROVED" | "REJECTED" | "PAID" | "DRAFT" | undefined;
|
|
179
179
|
approvedBy?: string | undefined;
|
|
180
180
|
approvedAt?: string | undefined;
|
|
181
|
-
submittedAt?: string | undefined;
|
|
182
181
|
rejectionReason?: string | undefined;
|
|
182
|
+
submittedAt?: string | undefined;
|
|
183
183
|
}>;
|
|
184
184
|
export declare const CreateTimecardEntryRequestSchema: z.ZodObject<{
|
|
185
185
|
date: z.ZodString;
|
|
@@ -403,8 +403,8 @@ export declare const TimecardResourceSchema: z.ZodObject<{
|
|
|
403
403
|
regularHours: number;
|
|
404
404
|
approvedBy?: string | undefined;
|
|
405
405
|
approvedAt?: string | undefined;
|
|
406
|
-
submittedAt?: string | undefined;
|
|
407
406
|
rejectionReason?: string | undefined;
|
|
407
|
+
submittedAt?: string | undefined;
|
|
408
408
|
}, {
|
|
409
409
|
id: string;
|
|
410
410
|
createdAt: string;
|
|
@@ -436,8 +436,8 @@ export declare const TimecardResourceSchema: z.ZodObject<{
|
|
|
436
436
|
status?: "SUBMITTED" | "APPROVED" | "REJECTED" | "PAID" | "DRAFT" | undefined;
|
|
437
437
|
approvedBy?: string | undefined;
|
|
438
438
|
approvedAt?: string | undefined;
|
|
439
|
-
submittedAt?: string | undefined;
|
|
440
439
|
rejectionReason?: string | undefined;
|
|
440
|
+
submittedAt?: string | undefined;
|
|
441
441
|
}>;
|
|
442
442
|
}, "strip", z.ZodTypeAny, {
|
|
443
443
|
id: string;
|
|
@@ -473,8 +473,8 @@ export declare const TimecardResourceSchema: z.ZodObject<{
|
|
|
473
473
|
regularHours: number;
|
|
474
474
|
approvedBy?: string | undefined;
|
|
475
475
|
approvedAt?: string | undefined;
|
|
476
|
-
submittedAt?: string | undefined;
|
|
477
476
|
rejectionReason?: string | undefined;
|
|
477
|
+
submittedAt?: string | undefined;
|
|
478
478
|
};
|
|
479
479
|
}, {
|
|
480
480
|
id: string;
|
|
@@ -510,8 +510,8 @@ export declare const TimecardResourceSchema: z.ZodObject<{
|
|
|
510
510
|
status?: "SUBMITTED" | "APPROVED" | "REJECTED" | "PAID" | "DRAFT" | undefined;
|
|
511
511
|
approvedBy?: string | undefined;
|
|
512
512
|
approvedAt?: string | undefined;
|
|
513
|
-
submittedAt?: string | undefined;
|
|
514
513
|
rejectionReason?: string | undefined;
|
|
514
|
+
submittedAt?: string | undefined;
|
|
515
515
|
};
|
|
516
516
|
}>;
|
|
517
517
|
export declare const TimecardEntryResourceSchema: z.ZodObject<{
|
package/schemas/valuations.d.ts
CHANGED
|
@@ -100,18 +100,18 @@ export declare const ValuationEventSchema: z.ZodObject<{
|
|
|
100
100
|
}, "strip", z.ZodTypeAny, {
|
|
101
101
|
id: string;
|
|
102
102
|
createdAt: string;
|
|
103
|
-
certificateId: string;
|
|
104
103
|
fromStatus: string;
|
|
105
104
|
toStatus: string;
|
|
106
105
|
actorId: string;
|
|
106
|
+
certificateId: string;
|
|
107
107
|
reason?: string | null | undefined;
|
|
108
108
|
}, {
|
|
109
109
|
id: string;
|
|
110
110
|
createdAt: string;
|
|
111
|
-
certificateId: string;
|
|
112
111
|
fromStatus: string;
|
|
113
112
|
toStatus: string;
|
|
114
113
|
actorId: string;
|
|
114
|
+
certificateId: string;
|
|
115
115
|
reason?: string | null | undefined;
|
|
116
116
|
}>;
|
|
117
117
|
export declare const ValuationCertificateSchema: z.ZodObject<{
|
|
@@ -238,18 +238,18 @@ export declare const ValuationCertificateSchema: z.ZodObject<{
|
|
|
238
238
|
}, "strip", z.ZodTypeAny, {
|
|
239
239
|
id: string;
|
|
240
240
|
createdAt: string;
|
|
241
|
-
certificateId: string;
|
|
242
241
|
fromStatus: string;
|
|
243
242
|
toStatus: string;
|
|
244
243
|
actorId: string;
|
|
244
|
+
certificateId: string;
|
|
245
245
|
reason?: string | null | undefined;
|
|
246
246
|
}, {
|
|
247
247
|
id: string;
|
|
248
248
|
createdAt: string;
|
|
249
|
-
certificateId: string;
|
|
250
249
|
fromStatus: string;
|
|
251
250
|
toStatus: string;
|
|
252
251
|
actorId: string;
|
|
252
|
+
certificateId: string;
|
|
253
253
|
reason?: string | null | undefined;
|
|
254
254
|
}>, "many">>;
|
|
255
255
|
createdAt: z.ZodString;
|
|
@@ -302,10 +302,10 @@ export declare const ValuationCertificateSchema: z.ZodObject<{
|
|
|
302
302
|
events?: {
|
|
303
303
|
id: string;
|
|
304
304
|
createdAt: string;
|
|
305
|
-
certificateId: string;
|
|
306
305
|
fromStatus: string;
|
|
307
306
|
toStatus: string;
|
|
308
307
|
actorId: string;
|
|
308
|
+
certificateId: string;
|
|
309
309
|
reason?: string | null | undefined;
|
|
310
310
|
}[] | undefined;
|
|
311
311
|
releasedById?: string | null | undefined;
|
|
@@ -363,10 +363,10 @@ export declare const ValuationCertificateSchema: z.ZodObject<{
|
|
|
363
363
|
events?: {
|
|
364
364
|
id: string;
|
|
365
365
|
createdAt: string;
|
|
366
|
-
certificateId: string;
|
|
367
366
|
fromStatus: string;
|
|
368
367
|
toStatus: string;
|
|
369
368
|
actorId: string;
|
|
369
|
+
certificateId: string;
|
|
370
370
|
reason?: string | null | undefined;
|
|
371
371
|
}[] | undefined;
|
|
372
372
|
releasedById?: string | null | undefined;
|
|
@@ -806,18 +806,18 @@ export declare const ValuationCertificateResourceSchema: z.ZodObject<{
|
|
|
806
806
|
}, "strip", z.ZodTypeAny, {
|
|
807
807
|
id: string;
|
|
808
808
|
createdAt: string;
|
|
809
|
-
certificateId: string;
|
|
810
809
|
fromStatus: string;
|
|
811
810
|
toStatus: string;
|
|
812
811
|
actorId: string;
|
|
812
|
+
certificateId: string;
|
|
813
813
|
reason?: string | null | undefined;
|
|
814
814
|
}, {
|
|
815
815
|
id: string;
|
|
816
816
|
createdAt: string;
|
|
817
|
-
certificateId: string;
|
|
818
817
|
fromStatus: string;
|
|
819
818
|
toStatus: string;
|
|
820
819
|
actorId: string;
|
|
820
|
+
certificateId: string;
|
|
821
821
|
reason?: string | null | undefined;
|
|
822
822
|
}>, "many">>;
|
|
823
823
|
createdAt: z.ZodString;
|
|
@@ -869,10 +869,10 @@ export declare const ValuationCertificateResourceSchema: z.ZodObject<{
|
|
|
869
869
|
events?: {
|
|
870
870
|
id: string;
|
|
871
871
|
createdAt: string;
|
|
872
|
-
certificateId: string;
|
|
873
872
|
fromStatus: string;
|
|
874
873
|
toStatus: string;
|
|
875
874
|
actorId: string;
|
|
875
|
+
certificateId: string;
|
|
876
876
|
reason?: string | null | undefined;
|
|
877
877
|
}[] | undefined;
|
|
878
878
|
releasedById?: string | null | undefined;
|
|
@@ -929,10 +929,10 @@ export declare const ValuationCertificateResourceSchema: z.ZodObject<{
|
|
|
929
929
|
events?: {
|
|
930
930
|
id: string;
|
|
931
931
|
createdAt: string;
|
|
932
|
-
certificateId: string;
|
|
933
932
|
fromStatus: string;
|
|
934
933
|
toStatus: string;
|
|
935
934
|
actorId: string;
|
|
935
|
+
certificateId: string;
|
|
936
936
|
reason?: string | null | undefined;
|
|
937
937
|
}[] | undefined;
|
|
938
938
|
releasedById?: string | null | undefined;
|
|
@@ -993,10 +993,10 @@ export declare const ValuationCertificateResourceSchema: z.ZodObject<{
|
|
|
993
993
|
events?: {
|
|
994
994
|
id: string;
|
|
995
995
|
createdAt: string;
|
|
996
|
-
certificateId: string;
|
|
997
996
|
fromStatus: string;
|
|
998
997
|
toStatus: string;
|
|
999
998
|
actorId: string;
|
|
999
|
+
certificateId: string;
|
|
1000
1000
|
reason?: string | null | undefined;
|
|
1001
1001
|
}[] | undefined;
|
|
1002
1002
|
releasedById?: string | null | undefined;
|
|
@@ -1057,10 +1057,10 @@ export declare const ValuationCertificateResourceSchema: z.ZodObject<{
|
|
|
1057
1057
|
events?: {
|
|
1058
1058
|
id: string;
|
|
1059
1059
|
createdAt: string;
|
|
1060
|
-
certificateId: string;
|
|
1061
1060
|
fromStatus: string;
|
|
1062
1061
|
toStatus: string;
|
|
1063
1062
|
actorId: string;
|
|
1063
|
+
certificateId: string;
|
|
1064
1064
|
reason?: string | null | undefined;
|
|
1065
1065
|
}[] | undefined;
|
|
1066
1066
|
releasedById?: string | null | undefined;
|