renamed SearchResponse to ServiceItem in frontend

This commit is contained in:
2026-06-30 04:55:08 +02:00
parent 3086b7e2ca
commit baa0582d50
3 changed files with 29 additions and 22 deletions
+17 -16
View File
@@ -1,25 +1,26 @@
import type { ServiceType } from "./connection";
export interface SearchRequest {
appUrl: string
serviceType: ServiceType
username: string
query: string | null
appUrl: string;
serviceType: ServiceType;
username: string;
query: string | null;
aiSearch: boolean;
}
export interface SearchResponse {
id: string
title: string
description: string | null
extraData: Record<string, unknown>
export interface ServiceItem {
id: string;
title: string;
description: string | null;
extraData: Record<string, unknown>;
}
export interface PagedSearchResponse<T> {
content: T[]
page: number
pageSize: number
totalElements: number
first: boolean
last: boolean
sort: string
content: T[];
page: number;
pageSize: number;
totalElements: number;
first: boolean;
last: boolean;
sort: string;
}