import { PagedResultDto } from '../proxy' import { GlobalSearchInputDto, GlobalSearchResultDto } from '../proxy/global-search/models' import apiService from './api.service' export const getSystems = () => apiService.fetchData({ method: 'GET', url: '/api/app/global-search/systems', }) export const getSearch = (input: GlobalSearchInputDto) => apiService.fetchData, GlobalSearchInputDto>({ method: 'GET', url: '/api/app/global-search', params: { q: input.query, s: input.system, p: input.page, }, paramsSerializer: { indexes: null, }, })