Skip to content
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 = '[email protected]';
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,16 @@ export enum FeatureIds {
GlobalAccessPermissions = 'GlobalAccessPermissions',
DocumentLevelPermissions = 'DocumentLevelPermissions',
}

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

export type AnyType = string | number | boolean | object | undefined | null;

export interface GenericObject {
[key: string]: AnyType | AnyType[];
}
Loading