mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-20 00:23:03 +00:00
refactor: use the SCMap more consistently
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
import {SCAbstractRoute, SCRouteHttpVerbs} from '../../../Route';
|
||||
import {SCMap} from '../../../types/Map';
|
||||
import {
|
||||
SCInternalServerErrorResponse,
|
||||
SCMethodNotAllowedErrorResponse,
|
||||
@@ -33,9 +34,7 @@ import {SCSearchQuery} from './SearchRequest';
|
||||
*
|
||||
* @validatable
|
||||
*/
|
||||
export interface SCMultiSearchRequest {
|
||||
[k: string]: SCSearchQuery;
|
||||
}
|
||||
export type SCMultiSearchRequest = SCMap<SCSearchQuery>;
|
||||
|
||||
/**
|
||||
* Route for submission of multiple search requests at once
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2018 StApps
|
||||
* Copyright (C) 2018-2019 StApps
|
||||
* This program is free software: you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the Free
|
||||
* Software Foundation, version 3.
|
||||
@@ -12,6 +12,7 @@
|
||||
* You should have received a copy of the GNU General Public License along with
|
||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
import {SCMap} from '../../../types/Map';
|
||||
import {SCSearchResult} from './SearchResponse';
|
||||
|
||||
/**
|
||||
@@ -21,6 +22,4 @@ import {SCSearchResult} from './SearchResponse';
|
||||
*
|
||||
* @validatable
|
||||
*/
|
||||
export interface SCMultiSearchResponse {
|
||||
[k: string]: SCSearchResult;
|
||||
}
|
||||
export type SCMultiSearchResponse = SCMap<SCSearchResult>;
|
||||
|
||||
Reference in New Issue
Block a user