Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Workplace Search] Migrate SourceLogic from ent-search #83593

Merged
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import { CURRENT_MAJOR_VERSION } from '../../../common/version';

export const SETUP_GUIDE_PATH = '/setup_guide';

export const NOT_FOUND_PATH = '/404';

export const LEAVE_FEEDBACK_EMAIL = 'support@elastic.co';
export const LEAVE_FEEDBACK_URL = `mailto:${LEAVE_FEEDBACK_EMAIL}?Subject=Elastic%20Workplace%20Search%20Feedback`;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,17 @@ export * from '../../../common/types/workplace_search';

export type SpacerSizeTypes = 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl';

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

export interface Meta {
page: MetaPage;
}

export interface Group {
id: string;
name: string;
Expand Down Expand Up @@ -89,6 +100,30 @@ export interface ContentSourceDetails extends ContentSource {
boost: number;
}

interface DescriptionList {
title: string;
description: string;
}

export interface ContentSourceFullData extends ContentSourceDetails {
activities: object[];
details: DescriptionList[];
summary: object[];
groups: object[];
custom: boolean;
accessToken: string;
key: string;
urlField: string;
titleField: string;
licenseSupportsPermissions: boolean;
serviceTypeSupportsPermissions: boolean;
indexPermissions: boolean;
hasPermissions: boolean;
urlFieldIsLinkable: boolean;
createdAt: string;
serviceName: string;
}

export interface ContentSourceStatus {
id: string;
name: string;
Expand Down Expand Up @@ -121,3 +156,10 @@ export enum FeatureIds {
GlobalAccessPermissions = 'GlobalAccessPermissions',
DocumentLevelPermissions = 'DocumentLevelPermissions',
}

export interface CustomSource {
accessToken: string;
key: string;
name: string;
id: string;
}
Loading