import { Enums } from '../extensibility'; import { IRequestDictionary } from './IRequestDictionary'; export declare module Shared { interface IApiOperationResult { data: T; errorMessage: string; isSuccess: boolean; status: number; } interface ITimeZone { id: string; displayName: string; } interface IUserInfo { loginName?: string; displayName?: string; userId: number; photoUrl: string; } interface IPortalWeb { serverRelativeUrl?: string; title?: string; url?: string; relativeUrl?: string; editorGroup?: string; isInRecycleBin?: boolean; recycleBinItemId?: string; deletedStatus?: string; } interface IPortalWebpart { id: string; title: string; } interface ITransactionLog { messages: Array; transactionCompleted: boolean; logType: Enums.QueueMessageLogType; } interface IMessage { message: string; logType: Enums.QueueMessageLogType; } interface ILanguage { lcid: number; displayName: string; name: string; } interface IPageLayout { title: string; displayName: string; isDefault: boolean; } interface IPage { title?: string; name?: string; url?: string; parentTermId?: string; ownerNavigationTerm?: string; pageLayout?: string; webUrl?: string; } interface ILookupValue { id: any; title: string; } interface IIcon { iconType: Enums.IconType; fontValue?: string; customValue?: string; backgroundColor?: string; } interface IPaging { total?: number; maxSize?: number; currentPage?: number; } interface IPagingTypeModel { kind: Enums.PagingType; displayName: string; } interface ISortableOptions { containment?: string; update?: (event, ui, placeHolderElement, item) => void; } interface ITreePickerNode { title: string; hoverText: string; isExpanded: boolean; isSelected: boolean; children: Array; parent: ITreePickerNode; domainObj: any; isDisabled: boolean; } interface IAjaxRequest { addQueryString(key?: string, value?: string): IAjaxRequest; addQueryStrings(parameters?: IRequestDictionary): IAjaxRequest; addHeader(key?: string, value?: string): IAjaxRequest; addHeaders(parameters?: IRequestDictionary): IAjaxRequest; cache(isCache?: boolean): IAjaxRequest; doGet(disableErrorHandling?: boolean): IAjaxInstance; doUpdate(body?: any, disableErrorHandling?: boolean): IAjaxInstance; doPost(body?: any, disableErrorHandling?: boolean): IAjaxInstance; doDelete(disableErrorHandling?: boolean): IAjaxInstance; } interface IAjaxInstance { subscribe: (success?: (value: any) => void, error?: (error: any) => void) => void; unsubscribe: () => void; } }