add mass update to detailed reporting page

This commit is contained in:
Gregor Vostrak
2024-10-02 21:35:38 +02:00
parent fcba96fbf6
commit a77b8a5ed2
15 changed files with 779 additions and 94 deletions

View File

@@ -170,7 +170,6 @@ const TimeEntryResource = z
billable: z.boolean(),
})
.passthrough();
const TimeEntryCollection = z.array(TimeEntryResource);
const TimeEntryStoreRequest = z
.object({
member_id: z.string().uuid(),
@@ -270,7 +269,6 @@ export const schemas = {
TaskUpdateRequest,
start,
TimeEntryResource,
TimeEntryCollection,
TimeEntryStoreRequest,
TimeEntryUpdateMultipleRequest,
TimeEntryUpdateRequest,
@@ -2147,6 +2145,11 @@ Users with the permission `time-entries:view:own` can only use this en
type: 'Query',
schema: z.number().int().gte(1).lte(500).optional(),
},
{
name: 'offset',
type: 'Query',
schema: z.number().int().gte(0).optional(),
},
{
name: 'only_full_dates',
type: 'Query',
@@ -2183,7 +2186,12 @@ Users with the permission `time-entries:view:own` can only use this en
schema: z.string().optional(),
},
],
response: z.object({ data: TimeEntryCollection }).passthrough(),
response: z
.object({
data: z.array(TimeEntryResource),
meta: z.object({ total: z.number().int() }).passthrough(),
})
.passthrough(),
errors: [
{
status: 401,