Skip to content

Commit

Permalink
Add Logic for the Credentials View
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonStoltz committed Sep 16, 2020
1 parent 6c5258a commit b0fcf4a
Show file tree
Hide file tree
Showing 12 changed files with 1,455 additions and 57 deletions.
28 changes: 28 additions & 0 deletions x-pack/plugins/enterprise_search/common/types/app_search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,31 @@ export interface IConfiguredLimits {
maxEnginesPerMetaEngine: number;
};
}

export interface IApiToken {
access_all_engines?: boolean;
key?: string;
engines?: string[];
id?: number;
name: string;
read?: boolean;
type: string;
write?: boolean;
}

export interface IEngine {
name: string;
type: string;
language: string;
result_fields: object[];
}

export interface ICredentialsDetails {
lmAccount: {
id: string;
key: string;
};
apiUrl: string;
apiTokens: IApiToken[];
engines: IEngine[];
}
11 changes: 11 additions & 0 deletions x-pack/plugins/enterprise_search/common/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,14 @@ export interface IConfiguredLimits {
appSearch: IAppSearchConfiguredLimits;
workplaceSearch: IWorkplaceSearchConfiguredLimits;
}

export interface IMetaPage {
current: number;
size: number;
total_pages: number;
total_results: number;
}

export interface IMeta {
page: IMetaPage;
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export interface IAppActions {
}

export const AppLogic = kea<MakeLogicType<IAppValues, IAppActions>>({
path: ['enterprise_search', 'app_search', 'app'],
actions: {
initializeAppData: (props) => props,
},
Expand Down
Loading

0 comments on commit b0fcf4a

Please sign in to comment.