@omnia/foundation
Version:
Provide omnia foundation typings and tooling work on client side for omnia extension.
111 lines (110 loc) • 3.31 kB
TypeScript
import { Enums } from '../extensibility';
import { IRequestDictionary } from './IRequestDictionary';
export declare module Shared {
interface IApiOperationResult<T> {
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<IMessage>;
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<ITreePickerNode>;
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<T>(disableErrorHandling?: boolean): IAjaxInstance;
doUpdate<T>(body?: any, disableErrorHandling?: boolean): IAjaxInstance;
doPost<T>(body?: any, disableErrorHandling?: boolean): IAjaxInstance;
doDelete<T>(disableErrorHandling?: boolean): IAjaxInstance;
}
interface IAjaxInstance {
subscribe: (success?: (value: any) => void, error?: (error: any) => void) => void;
unsubscribe: () => void;
}
}