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:
File diff suppressed because one or more lines are too long
@@ -47,6 +47,7 @@ export interface Deployment {
|
||||
containerConfig: Record<string, unknown>;
|
||||
sensitiveKeys: string[] | null;
|
||||
} | null;
|
||||
createdBy: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -164,6 +164,7 @@ export interface UseInfiniteApplicationLogsArgs {
|
||||
agentId?: string;
|
||||
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);
|
||||
|
||||
6
ui/src/api/schema.d.ts
vendored
6
ui/src/api/schema.d.ts
vendored
@@ -2745,6 +2745,7 @@ export interface components {
|
||||
stoppedAt?: string;
|
||||
/** Format: date-time */
|
||||
createdAt?: string;
|
||||
createdBy?: string;
|
||||
};
|
||||
DeploymentConfigSnapshot: {
|
||||
/** Format: uuid */
|
||||
@@ -2753,6 +2754,7 @@ export interface components {
|
||||
containerConfig?: {
|
||||
[key: string]: Record<string, never>;
|
||||
};
|
||||
sensitiveKeys?: string[];
|
||||
};
|
||||
PromoteRequest: {
|
||||
targetEnvironment?: string;
|
||||
@@ -3703,7 +3705,7 @@ export interface components {
|
||||
username?: string;
|
||||
action?: string;
|
||||
/** @enum {string} */
|
||||
category?: "INFRA" | "AUTH" | "USER_MGMT" | "CONFIG" | "RBAC" | "AGENT" | "OUTBOUND_CONNECTION_CHANGE" | "OUTBOUND_HTTP_TRUST_CHANGE" | "ALERT_RULE_CHANGE" | "ALERT_SILENCE_CHANGE";
|
||||
category?: "INFRA" | "AUTH" | "USER_MGMT" | "CONFIG" | "RBAC" | "AGENT" | "OUTBOUND_CONNECTION_CHANGE" | "OUTBOUND_HTTP_TRUST_CHANGE" | "ALERT_RULE_CHANGE" | "ALERT_SILENCE_CHANGE" | "DEPLOYMENT";
|
||||
target?: string;
|
||||
detail?: {
|
||||
[key: string]: Record<string, never>;
|
||||
@@ -3872,6 +3874,7 @@ export interface operations {
|
||||
parameters: {
|
||||
query: {
|
||||
env: components["schemas"]["Environment"];
|
||||
/** @description When to apply: 'live' (default) saves and pushes CONFIG_UPDATE to live agents immediately; 'staged' saves without pushing — the next successful deploy applies it. */
|
||||
apply?: string;
|
||||
};
|
||||
header?: never;
|
||||
@@ -7028,6 +7031,7 @@ export interface operations {
|
||||
exchangeId?: string;
|
||||
logger?: string;
|
||||
source?: string;
|
||||
instanceIds?: string;
|
||||
from?: string;
|
||||
to?: string;
|
||||
cursor?: string;
|
||||
|
||||
Reference in New Issue
Block a user