chore(api): regenerate UI types — Deployment.createdBy + logs instanceIds

- Fetched fresh openapi.json from local backend (Tasks 3-5 changes)
- Regenerated schema.d.ts via openapi-typescript
- Added createdBy: string | null to Deployment interface in apps.ts
- Added instanceIds?: string[] to UseInfiniteApplicationLogsArgs with sort/serialize/queryKey/URLSearchParams wiring

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-04-23 13:00:16 +02:00
parent ed0e616109
commit 07099357af
4 changed files with 14 additions and 4 deletions

View File

@@ -162,8 +162,9 @@ export function useStartupLogs(
export interface UseInfiniteApplicationLogsArgs {
application?: string;
agentId?: string;
sources?: string[]; // multi-select, server-side OR
levels?: string[]; // multi-select, server-side OR
sources?: string[]; // multi-select, server-side OR
levels?: string[]; // multi-select, server-side OR
instanceIds?: string[]; // multi-select instance_id filter, server-side OR (e.g. drawer scopes to one deployment's replicas)
exchangeId?: string;
sort?: 'asc' | 'desc';
isAtTop: boolean;
@@ -191,8 +192,10 @@ export function useInfiniteApplicationLogs(
const sortedSources = (args.sources ?? []).slice().sort();
const sortedLevels = (args.levels ?? []).slice().sort();
const sortedInstanceIds = (args.instanceIds ?? []).slice().sort();
const sourcesParam = sortedSources.join(',');
const levelsParam = sortedLevels.join(',');
const instanceIdsParam = sortedInstanceIds.join(',');
const pageSize = args.pageSize ?? 100;
const sort = args.sort ?? 'desc';
@@ -204,6 +207,7 @@ export function useInfiniteApplicationLogs(
args.agentId ?? '',
args.exchangeId ?? '',
sourcesParam,
instanceIdsParam,
levelsParam,
fromIso ?? '',
toIso ?? '',
@@ -220,6 +224,7 @@ export function useInfiniteApplicationLogs(
if (args.exchangeId) qp.set('exchangeId', args.exchangeId);
if (sourcesParam) qp.set('source', sourcesParam);
if (levelsParam) qp.set('level', levelsParam);
if (instanceIdsParam) qp.set('instanceIds', instanceIdsParam);
if (fromIso) qp.set('from', fromIso);
const effectiveTo = isLiveRange ? new Date().toISOString() : toIso;
if (effectiveTo) qp.set('to', effectiveTo);