Skip to content

Commit

Permalink
fix apis
Browse files Browse the repository at this point in the history
  • Loading branch information
alexwizp committed Oct 13, 2021
1 parent b6371a1 commit f5c4d4e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/plugins/discover/public/saved_searches/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ export { useSavedSearchAliasMatchRedirect } from './saved_search_alias_match_red
export { SavedSearchURLConflictCallout } from './saved_search_url_conflict_callout';
export { saveSavedSearch, SaveSavedSearchOptions } from './save_saved_searches';
export { SAVED_SEARCH_TYPE } from './constants';
export type { SavedSearch } from './types';
export type { SavedSearch, SortOrder } from './types';
5 changes: 4 additions & 1 deletion src/plugins/discover/public/saved_searches/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,15 @@ export interface SavedSearchAttributes {
};
}

/** @internal **/
export type SortOrder = [string, string];

/** @public **/
export interface SavedSearch {
searchSource: ISearchSource;
id?: string;
title?: string;
sort?: Array<[string, string]>;
sort?: SortOrder[];
columns?: string[];
description?: string;
grid?: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ export default function ({ getService }: FtrProviderContext) {
path: '/app/discover#/view/960372e0-3224-11e8-a572-ffca06da1357',
uiCapabilitiesPath: 'discover.show',
},
namespaceType: 'single',
namespaceType: 'multiple-isolated',
hiddenType: false,
},
},
Expand Down Expand Up @@ -328,7 +328,7 @@ export default function ({ getService }: FtrProviderContext) {
path: '/app/discover#/view/960372e0-3224-11e8-a572-ffca06da1357',
uiCapabilitiesPath: 'discover.show',
},
namespaceType: 'single',
namespaceType: 'multiple-isolated',
hiddenType: false,
},
relationship: 'child',
Expand Down Expand Up @@ -371,7 +371,7 @@ export default function ({ getService }: FtrProviderContext) {
path: '/app/discover#/view/960372e0-3224-11e8-a572-ffca06da1357',
uiCapabilitiesPath: 'discover.show',
},
namespaceType: 'single',
namespaceType: 'multiple-isolated',
hiddenType: false,
},
},
Expand Down Expand Up @@ -411,7 +411,7 @@ export default function ({ getService }: FtrProviderContext) {
path: '/app/discover#/view/960372e0-3224-11e8-a572-ffca06da1357',
uiCapabilitiesPath: 'discover.show',
},
namespaceType: 'single',
namespaceType: 'multiple-isolated',
hiddenType: false,
},
relationship: 'parent',
Expand Down

0 comments on commit f5c4d4e

Please sign in to comment.