mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Merge pull request #1147 from gandjustas/master
Added generic type parameters
This commit is contained in:
Vendored
+121
-123
@@ -28,8 +28,8 @@ declare module Sys {
|
||||
module UI {
|
||||
export class Control { }
|
||||
export class DomEvent {
|
||||
static addHandler(element: HTMLElement, eventName: string, handler: (e: Event) => void );
|
||||
static removeHandler(element: HTMLElement, eventName: string, handler: (e: Event) => void );
|
||||
static addHandler(element: HTMLElement, eventName: string, handler: (e: Event) => void);
|
||||
static removeHandler(element: HTMLElement, eventName: string, handler: (e: Event) => void);
|
||||
}
|
||||
}
|
||||
module Net {
|
||||
@@ -52,8 +52,8 @@ declare module Sys {
|
||||
invoke(): void;
|
||||
completed(args: Sys.EventArgs): void;
|
||||
|
||||
add_completed(handler: (executor: WebRequestExecutor, args: Sys.EventArgs) => void ): void;
|
||||
remove_completed(handler: (executor: WebRequestExecutor, args: Sys.EventArgs) => void ): void;
|
||||
add_completed(handler: (executor: WebRequestExecutor, args: Sys.EventArgs) => void): void;
|
||||
remove_completed(handler: (executor: WebRequestExecutor, args: Sys.EventArgs) => void): void;
|
||||
}
|
||||
|
||||
export class WebRequestExecutor {
|
||||
@@ -84,11 +84,11 @@ declare module Sys {
|
||||
static get_defaultTimeout(): number;
|
||||
static set_defaultTimeout(value: number): void;
|
||||
|
||||
static executeRequest(request: WebRequest):void;
|
||||
static add_completedRequest(handler: (executor: WebRequestExecutor, args: Sys.EventArgs) => void ): void;
|
||||
static remove_completedRequest(handler: (executor: WebRequestExecutor, args: Sys.EventArgs) => void ): void;
|
||||
static add_invokingRequest(handler: (executor: WebRequestExecutor, args: NetworkRequestEventArgs) => void ): void;
|
||||
static remove_invokingRequest(handler: (executor: WebRequestExecutor, args: NetworkRequestEventArgs ) => void ): void;
|
||||
static executeRequest(request: WebRequest): void;
|
||||
static add_completedRequest(handler: (executor: WebRequestExecutor, args: Sys.EventArgs) => void): void;
|
||||
static remove_completedRequest(handler: (executor: WebRequestExecutor, args: Sys.EventArgs) => void): void;
|
||||
static add_invokingRequest(handler: (executor: WebRequestExecutor, args: NetworkRequestEventArgs) => void): void;
|
||||
static remove_invokingRequest(handler: (executor: WebRequestExecutor, args: NetworkRequestEventArgs) => void): void;
|
||||
}
|
||||
|
||||
export class WebServiceProxy {
|
||||
@@ -97,8 +97,8 @@ declare module Sys {
|
||||
methodName: string,
|
||||
useGet?: boolean,
|
||||
params?: any,
|
||||
onSuccess?: (result: string, eventArgs: EventArgs) => void ,
|
||||
onFailure?: (error: WebServiceError) => void ,
|
||||
onSuccess?: (result: string, eventArgs: EventArgs) => void,
|
||||
onFailure?: (error: WebServiceError) => void,
|
||||
userContext?: any,
|
||||
timeout?: number,
|
||||
enableJsonp?: boolean,
|
||||
@@ -121,20 +121,20 @@ declare module Sys {
|
||||
}
|
||||
|
||||
declare var $get: { (id: string): HTMLElement; };
|
||||
declare var $addHandler: { (element: HTMLElement, eventName: string, handler: (e: Event) => void ): void; };
|
||||
declare var $removeHandler: { (element: HTMLElement, eventName: string, handler: (e: Event) => void ): void; };
|
||||
declare var $addHandler: { (element: HTMLElement, eventName: string, handler: (e: Event) => void): void; };
|
||||
declare var $removeHandler: { (element: HTMLElement, eventName: string, handler: (e: Event) => void): void; };
|
||||
|
||||
declare module SP {
|
||||
export class SOD {
|
||||
static execute(fileName: string, functionName: string, ...args: any[]): void;
|
||||
static executeFunc(fileName: string, typeName: string, fn: () => void ): void;
|
||||
static executeFunc(fileName: string, typeName: string, fn: () => void): void;
|
||||
static executeOrDelayUntilEventNotified(func: Function, eventName: string): boolean;
|
||||
static executeOrDelayUntilScriptLoaded(func: () => void , depScriptFileName: string): boolean;
|
||||
static executeOrDelayUntilScriptLoaded(func: () => void, depScriptFileName: string): boolean;
|
||||
static notifyScriptLoadedAndExecuteWaitingJobs(scriptFileName: string): void;
|
||||
static notifyEventAndExecuteWaitingJobs(eventName: string, args?: any[]): void;
|
||||
static registerSod(fileName: string, url: string): void;
|
||||
static registerSodDep(fileName: string, dependentFileName: string): void;
|
||||
static loadMultiple(keys: string[], fn: () => void , bSync?: boolean): void;
|
||||
static loadMultiple(keys: string[], fn: () => void, bSync?: boolean): void;
|
||||
static delayUntilEventNotified(func: Function, eventName: string): void;
|
||||
|
||||
static get_prefetch(): boolean;
|
||||
@@ -148,7 +148,7 @@ declare module SP {
|
||||
}
|
||||
|
||||
/** Register function to rerun on partial update in MDS-enabled site.*/
|
||||
declare function RegisterModuleInit(scriptFileName: string, initFunc: () => void ): void;
|
||||
declare function RegisterModuleInit(scriptFileName: string, initFunc: () => void): void;
|
||||
|
||||
/** Provides access to url and query string parts.*/
|
||||
declare class JSRequest {
|
||||
@@ -216,8 +216,8 @@ declare module SP {
|
||||
set_formDigestHandlingEnabled(value: boolean): void;
|
||||
get_iFrameSourceUrl(): string;
|
||||
set_iFrameSourceUrl(value: string): void;
|
||||
executeAsync(requestInfo:RequestInfo): void;
|
||||
attemptLogin(returnUrl:string, success: (response: ResponseInfo) => void , error?: (response: ResponseInfo, error: RequestExecutorErrors, statusText: string) => void): void;
|
||||
executeAsync(requestInfo: RequestInfo): void;
|
||||
attemptLogin(returnUrl: string, success: (response: ResponseInfo) => void, error?: (response: ResponseInfo, error: RequestExecutorErrors, statusText: string) => void): void;
|
||||
}
|
||||
|
||||
export interface RequestInfo {
|
||||
@@ -257,8 +257,7 @@ declare module SP {
|
||||
createWebRequestExecutor(): ProxyWebRequestExecutor;
|
||||
}
|
||||
}
|
||||
interface MQuery
|
||||
{
|
||||
interface MQuery {
|
||||
(selector: string, context?: any): MQueryResultSetElements;
|
||||
(element: HTMLElement): MQueryResultSetElements;
|
||||
(object: MQueryResultSetElements): MQueryResultSetElements;
|
||||
@@ -292,7 +291,7 @@ interface MQuery
|
||||
isObject(obj: any): boolean;
|
||||
isEmptyObject(obj: any): boolean;
|
||||
|
||||
ready(callback: () => void ): void;
|
||||
ready(callback: () => void): void;
|
||||
contains(container: HTMLElement, contained: HTMLElement): boolean;
|
||||
|
||||
proxy(fn: (...args: any[]) => any, context: any, ...args: any[]): Function;
|
||||
@@ -330,21 +329,21 @@ interface MQuery
|
||||
data(element: HTMLElement, key: string): any;
|
||||
data(element: HTMLElement): any;
|
||||
|
||||
removeData(element: HTMLElement, name?: string): MQueryResultSet<any>;
|
||||
removeData(element: HTMLElement, name?: string): MQueryResultSetElements;
|
||||
hasData(element: HTMLElement): boolean;
|
||||
}
|
||||
|
||||
interface MQueryResultSetElements extends MQueryResultSet<HTMLElement>{
|
||||
interface MQueryResultSetElements extends MQueryResultSet<HTMLElement> {
|
||||
append(node: HTMLElement): MQueryResultSetElements;
|
||||
append(mQuerySet: MQueryResultSetElements): MQueryResultSetElements;
|
||||
append(html: string): MQueryResultSetElements;
|
||||
|
||||
bind(eventType: string, handler: (eventObject: MQueryEvent) => any): MQueryResultSetElements;
|
||||
unbind(eventType: string, handler: (eventObject: MQueryEvent) => any): MQueryResultSetElements;
|
||||
trigger(eventType: string): MQueryResultSet<any>;
|
||||
trigger(eventType: string): MQueryResultSetElements;
|
||||
one(eventType: string, handler: (eventObject: MQueryEvent) => any): MQueryResultSetElements;
|
||||
|
||||
detach(): MQueryResultSet<any>;
|
||||
detach(): MQueryResultSetElements;
|
||||
|
||||
find(selector: string): MQueryResultSetElements;
|
||||
closest(selector: string, context?: any): MQueryResultSetElements;
|
||||
@@ -550,12 +549,12 @@ declare class CalloutAction {
|
||||
render(): void;
|
||||
isEnabled(): boolean;
|
||||
isVisible(): boolean;
|
||||
set (options: CalloutActionOptions): void;
|
||||
set(options: CalloutActionOptions): void;
|
||||
}
|
||||
|
||||
declare class Callout {
|
||||
/** Sets options for the callout. Not all options can be changed for the callout after its creation. */
|
||||
set (options: CalloutOptions);
|
||||
set(options: CalloutOptions);
|
||||
/** Adds event handler to the callout.
|
||||
@param eventName one of the following: "opened", "opening", "closing", "closed" */
|
||||
addEventCallback(eventName: string, callback: (callout: Callout) => void);
|
||||
@@ -755,9 +754,8 @@ declare module SPClientTemplates {
|
||||
/** Returns string representation of a number that represents the current value for the "List Throttle Limit" web application setting.
|
||||
Only appears if Throttled property is true, i.e. the target lookup list is throttled. */
|
||||
MaxQueryResult: string;
|
||||
/** List of choices for this field.
|
||||
For a lookup field, contains array of possible values pulled from the target lookup list. */
|
||||
Choices: string[];
|
||||
/** List of choices for this field. */
|
||||
Choices: { LookupId: number; LookupValue: string; }[];
|
||||
/** Number of choices. Appears only for Lookup field. */
|
||||
ChoiceCount: number;
|
||||
|
||||
@@ -1321,13 +1319,13 @@ declare module SPClientTemplates {
|
||||
EnableVesioning: boolean;
|
||||
Id: string;
|
||||
};
|
||||
registerInitCallback(fieldname: string, callback: () => void ): void;
|
||||
registerFocusCallback(fieldname: string, callback: () => void ): void;
|
||||
registerValidationErrorCallback(fieldname: string, callback: (error: any) => void ): void;
|
||||
registerInitCallback(fieldname: string, callback: () => void): void;
|
||||
registerFocusCallback(fieldname: string, callback: () => void): void;
|
||||
registerValidationErrorCallback(fieldname: string, callback: (error: any) => void): void;
|
||||
registerGetValueCallback(fieldname: string, callback: () => any): void;
|
||||
updateControlValue(fieldname: string, value: any): void;
|
||||
registerClientValidator(fieldname: string, validator: SPClientForms.ClientValidation.ValidatorSet): void;
|
||||
registerHasValueChangedCallback(fieldname: string, callback: (eventArg?: any) => void );
|
||||
registerHasValueChangedCallback(fieldname: string, callback: (eventArg?: any) => void);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1406,23 +1404,23 @@ declare module SPAnimation {
|
||||
GetDataIndex(attributeId: Attribute): number
|
||||
}
|
||||
|
||||
export class Object{
|
||||
constructor(animationID: ID, delay: number, element: HTMLElement, finalState: State, finishFunc?: (data: any) => void , data?: any);
|
||||
constructor(animationID: ID, delay: number, element: HTMLElement[], finalState: State, finishFunc?: (data: any) => void , data?: any);
|
||||
export class Object {
|
||||
constructor(animationID: ID, delay: number, element: HTMLElement, finalState: State, finishFunc?: (data: any) => void, data?: any);
|
||||
constructor(animationID: ID, delay: number, element: HTMLElement[], finalState: State, finishFunc?: (data: any) => void, data?: any);
|
||||
RunAnimation(): void;
|
||||
}
|
||||
}
|
||||
|
||||
declare module SPAnimationUtility{
|
||||
declare module SPAnimationUtility {
|
||||
export class BasicAnimator {
|
||||
static FadeIn(element: HTMLElement, finishFunc?: (data: any) => void , data?: any): void;
|
||||
static FadeOut (element: HTMLElement, finishFunc?: (data: any) => void , data?: any): void;
|
||||
static Move(element: HTMLElement, posX:number, posY:number, finishFunc?: (data: any) => void , data?: any): void;
|
||||
static StrikeThrough(element: HTMLElement, strikeThroughWidth: number, finishFunc?: (data: any) => void , data?: any): void;
|
||||
static Resize(element: HTMLElement, newHeight: number, newWidth: number, finishFunc?: (data: any) => void , data?: any): void;
|
||||
static CommonResize(element: HTMLElement, newHeight: number, newWidth: number, finishFunc: (data: any) => void , data: any, animationId:SPAnimation.ID): void;
|
||||
static QuickResize(element: HTMLElement, newHeight: number, newWidth: number, finishFunc?: (data: any) => void , data?: any): void;
|
||||
static ResizeContainerAndFillContent(element: HTMLElement, newHeight: number, newWidth: number, finishFunc: () => void , fAddToEnd: boolean): void;
|
||||
static FadeIn(element: HTMLElement, finishFunc?: (data: any) => void, data?: any): void;
|
||||
static FadeOut(element: HTMLElement, finishFunc?: (data: any) => void, data?: any): void;
|
||||
static Move(element: HTMLElement, posX: number, posY: number, finishFunc?: (data: any) => void, data?: any): void;
|
||||
static StrikeThrough(element: HTMLElement, strikeThroughWidth: number, finishFunc?: (data: any) => void, data?: any): void;
|
||||
static Resize(element: HTMLElement, newHeight: number, newWidth: number, finishFunc?: (data: any) => void, data?: any): void;
|
||||
static CommonResize(element: HTMLElement, newHeight: number, newWidth: number, finishFunc: (data: any) => void, data: any, animationId: SPAnimation.ID): void;
|
||||
static QuickResize(element: HTMLElement, newHeight: number, newWidth: number, finishFunc?: (data: any) => void, data?: any): void;
|
||||
static ResizeContainerAndFillContent(element: HTMLElement, newHeight: number, newWidth: number, finishFunc: () => void, fAddToEnd: boolean): void;
|
||||
static GetWindowScrollPosition(): { x: number; y: number; };
|
||||
static GetLeftOffset(element: HTMLElement): number;
|
||||
static GetTopOffset(element: HTMLElement): number;
|
||||
@@ -1669,13 +1667,13 @@ declare module SP {
|
||||
get_expectedContentType(): string;
|
||||
set_expectedContentType(value: string): void;
|
||||
post(body: string): void;
|
||||
get (): void;
|
||||
static doPost(url: string, body: string, expectedContentType: string, succeededHandler: (sender: any, args: SP.PageRequestSucceededEventArgs) => void , failedHandler: (sender: any, args: SP.PageRequestFailedEventArgs) => void ): void;
|
||||
static doGet(url: string, expectedContentType: string, succeededHandler: (sender: any, args: SP.PageRequestSucceededEventArgs) => void , failedHandler: (sender: any, args: SP.PageRequestFailedEventArgs) => void ): void;
|
||||
add_succeeded(value: (sender: any, args: SP.PageRequestSucceededEventArgs) => void ): void;
|
||||
remove_succeeded(value: (sender: any, args: SP.PageRequestSucceededEventArgs) => void ): void;
|
||||
add_failed(value: (sender: any, args: SP.PageRequestFailedEventArgs) => void ): void;
|
||||
remove_failed(value: (sender: any, args: SP.PageRequestFailedEventArgs) => void ): void;
|
||||
get(): void;
|
||||
static doPost(url: string, body: string, expectedContentType: string, succeededHandler: (sender: any, args: SP.PageRequestSucceededEventArgs) => void, failedHandler: (sender: any, args: SP.PageRequestFailedEventArgs) => void): void;
|
||||
static doGet(url: string, expectedContentType: string, succeededHandler: (sender: any, args: SP.PageRequestSucceededEventArgs) => void, failedHandler: (sender: any, args: SP.PageRequestFailedEventArgs) => void): void;
|
||||
add_succeeded(value: (sender: any, args: SP.PageRequestSucceededEventArgs) => void): void;
|
||||
remove_succeeded(value: (sender: any, args: SP.PageRequestSucceededEventArgs) => void): void;
|
||||
add_failed(value: (sender: any, args: SP.PageRequestFailedEventArgs) => void): void;
|
||||
remove_failed(value: (sender: any, args: SP.PageRequestFailedEventArgs) => void): void;
|
||||
constructor();
|
||||
}
|
||||
export class ResResources {
|
||||
@@ -1929,10 +1927,10 @@ declare module SP {
|
||||
export class ClientRequest {
|
||||
static get_nextSequenceId(): number;
|
||||
get_webRequest(): Sys.Net.WebRequest;
|
||||
add_requestSucceeded(value: (sender: any, args: SP.ClientRequestSucceededEventArgs) => void ): void;
|
||||
remove_requestSucceeded(value: (sender: any, args: SP.ClientRequestSucceededEventArgs) => void ): void;
|
||||
add_requestFailed(value: (sender: any, args: SP.ClientRequestFailedEventArgs) => void ): void;
|
||||
remove_requestFailed(value: (sender: any, args: SP.ClientRequestFailedEventArgs) => void ): void;
|
||||
add_requestSucceeded(value: (sender: any, args: SP.ClientRequestSucceededEventArgs) => void): void;
|
||||
remove_requestSucceeded(value: (sender: any, args: SP.ClientRequestSucceededEventArgs) => void): void;
|
||||
add_requestFailed(value: (sender: any, args: SP.ClientRequestFailedEventArgs) => void): void;
|
||||
remove_requestFailed(value: (sender: any, args: SP.ClientRequestFailedEventArgs) => void): void;
|
||||
get_navigateWhenServerRedirect(): boolean;
|
||||
set_navigateWhenServerRedirect(value: boolean): void;
|
||||
}
|
||||
@@ -1967,18 +1965,18 @@ declare module SP {
|
||||
set_webRequestExecutorFactory(value: SP.IWebRequestExecutorFactory): void;
|
||||
get_pendingRequest(): SP.ClientRequest;
|
||||
get_hasPendingRequest(): boolean;
|
||||
add_executingWebRequest(value: (sender: any, args: SP.WebRequestEventArgs) => void ): void;
|
||||
remove_executingWebRequest(value: (sender: any, args: SP.WebRequestEventArgs) => void ): void;
|
||||
add_requestSucceeded(value: (sender: any, args: SP.ClientRequestSucceededEventArgs) => void ): void;
|
||||
remove_requestSucceeded(value: (sender: any, args: SP.ClientRequestSucceededEventArgs) => void ): void;
|
||||
add_requestFailed(value: (sender: any, args: SP.ClientRequestFailedEventArgs) => void ): void;
|
||||
remove_requestFailed(value: (sender: any, args: SP.ClientRequestFailedEventArgs) => void ): void;
|
||||
add_beginningRequest(value: (sender: any, args: SP.ClientRequestEventArgs) => void ): void;
|
||||
remove_beginningRequest(value: (sender: any, args: SP.ClientRequestEventArgs) => void ): void;
|
||||
add_executingWebRequest(value: (sender: any, args: SP.WebRequestEventArgs) => void): void;
|
||||
remove_executingWebRequest(value: (sender: any, args: SP.WebRequestEventArgs) => void): void;
|
||||
add_requestSucceeded(value: (sender: any, args: SP.ClientRequestSucceededEventArgs) => void): void;
|
||||
remove_requestSucceeded(value: (sender: any, args: SP.ClientRequestSucceededEventArgs) => void): void;
|
||||
add_requestFailed(value: (sender: any, args: SP.ClientRequestFailedEventArgs) => void): void;
|
||||
remove_requestFailed(value: (sender: any, args: SP.ClientRequestFailedEventArgs) => void): void;
|
||||
add_beginningRequest(value: (sender: any, args: SP.ClientRequestEventArgs) => void): void;
|
||||
remove_beginningRequest(value: (sender: any, args: SP.ClientRequestEventArgs) => void): void;
|
||||
get_requestTimeout(): number;
|
||||
set_requestTimeout(value: number): void;
|
||||
executeQueryAsync(succeededCallback: (sender: any, args: SP.ClientRequestSucceededEventArgs) => void , failedCallback: (sender: any, args: SP.ClientRequestFailedEventArgs) => void ): void;
|
||||
executeQueryAsync(succeededCallback: (sender: any, args: SP.ClientRequestSucceededEventArgs) => void ): void;
|
||||
executeQueryAsync(succeededCallback: (sender: any, args: SP.ClientRequestSucceededEventArgs) => void, failedCallback: (sender: any, args: SP.ClientRequestFailedEventArgs) => void): void;
|
||||
executeQueryAsync(succeededCallback: (sender: any, args: SP.ClientRequestSucceededEventArgs) => void): void;
|
||||
executeQueryAsync(): void;
|
||||
get_staticObjects(): any;
|
||||
castTo(obj: SP.ClientObject, type: any): SP.ClientObject;
|
||||
@@ -2249,8 +2247,8 @@ declare module SP {
|
||||
get_versionString(): string;
|
||||
}
|
||||
export class AppCatalog {
|
||||
static getAppInstances(context: SP.ClientRuntimeContext, web: SP.Web): SP.ClientObjectList<any>;
|
||||
static getDeveloperSiteAppInstancesByIds(context: SP.ClientRuntimeContext, site: SP.Site, appInstanceIds: SP.Guid[]): SP.ClientObjectList<any>;
|
||||
static getAppInstances(context: SP.ClientRuntimeContext, web: SP.Web): SP.ClientObjectList<SP.AppInstance>;
|
||||
static getDeveloperSiteAppInstancesByIds(context: SP.ClientRuntimeContext, site: SP.Site, appInstanceIds: SP.Guid[]): SP.ClientObjectList<SP.AppInstance>;
|
||||
static isAppSideloadingEnabled(context: SP.ClientRuntimeContext): SP.BooleanResult;
|
||||
}
|
||||
export class AppContextSite extends SP.ClientObject {
|
||||
@@ -2271,7 +2269,7 @@ declare module SP {
|
||||
get_status(): SP.AppInstanceStatus;
|
||||
get_title(): string;
|
||||
get_webId(): SP.Guid;
|
||||
getErrorDetails(): SP.ClientObjectList<any>;
|
||||
getErrorDetails(): SP.ClientObjectList<SP.AppInstanceErrorDetails>;
|
||||
uninstall(): SP.GuidResult;
|
||||
upgrade(appPackageStream: any[]): void;
|
||||
cancelAllJobs(): SP.BooleanResult;
|
||||
@@ -2357,7 +2355,7 @@ declare module SP {
|
||||
constructor();
|
||||
}
|
||||
export class BasePermissions extends SP.ClientValueObject {
|
||||
set (perm: SP.PermissionKind): void;
|
||||
set(perm: SP.PermissionKind): void;
|
||||
clear(perm: SP.PermissionKind): void;
|
||||
clearAll(): void;
|
||||
has(perm: SP.PermissionKind): boolean;
|
||||
@@ -3921,7 +3919,7 @@ declare module SP {
|
||||
get_isSharedWithMany(): boolean;
|
||||
get_isSharedWithSecurityGroup(): boolean;
|
||||
get_pendingAccessRequestsLink(): string;
|
||||
getSharedWithUsers(): SP.ClientObjectList<any>;
|
||||
getSharedWithUsers(): SP.ClientObjectList<SP.ObjectSharingInformationUser>;
|
||||
static getListItemSharingInformation(context: SP.ClientRuntimeContext, listID: SP.Guid, itemID: number, excludeCurrentUser: boolean, excludeSiteAdmin: boolean, excludeSecurityGroups: boolean, retrieveAnonymousLinks: boolean, retrieveUserInfoDetails: boolean, checkForAccessRequests: boolean): SP.ObjectSharingInformation;
|
||||
static getWebSharingInformation(context: SP.ClientRuntimeContext, excludeCurrentUser: boolean, excludeSiteAdmin: boolean, excludeSecurityGroups: boolean, retrieveAnonymousLinks: boolean, retrieveUserInfoDetails: boolean, checkForAccessRequests: boolean): SP.ObjectSharingInformation;
|
||||
static getObjectSharingInformation(context: SP.ClientRuntimeContext, securableObject: SP.SecurableObject, excludeCurrentUser: boolean, excludeSiteAdmin: boolean, excludeSecurityGroups: boolean, retrieveAnonymousLinks: boolean, retrieveUserInfoDetails: boolean, checkForAccessRequests: boolean, retrievePermissionLevels: boolean): SP.ObjectSharingInformation;
|
||||
@@ -4120,7 +4118,7 @@ declare module SP {
|
||||
get_value(): string;
|
||||
static newObject(context: SP.ClientRuntimeContext): SP.RequestVariable;
|
||||
append(value: string): void;
|
||||
set (value: string): void;
|
||||
set(value: string): void;
|
||||
}
|
||||
export class RoleAssignment extends SP.ClientObject {
|
||||
get_member(): SP.Principal;
|
||||
@@ -4193,7 +4191,7 @@ declare module SP {
|
||||
editor,
|
||||
}
|
||||
export class ServerSettings {
|
||||
static getAlternateUrls(context: SP.ClientRuntimeContext): SP.ClientObjectList<any>;
|
||||
static getAlternateUrls(context: SP.ClientRuntimeContext): SP.ClientObjectList<SP.AlternateUrl>;
|
||||
static getGlobalInstalledLanguages(context: SP.ClientRuntimeContext, compatibilityLevel: number): SP.Language[];
|
||||
}
|
||||
export class Site extends SP.ClientObject {
|
||||
@@ -4644,7 +4642,7 @@ declare module SP {
|
||||
getAppBdcCatalog(): SP.BusinessData.AppBdcCatalog;
|
||||
getSubwebsForCurrentUser(query: SP.SubwebQuery): SP.WebCollection;
|
||||
getAppInstanceById(appInstanceId: SP.Guid): SP.AppInstance;
|
||||
getAppInstancesByProductId(productId: SP.Guid): SP.ClientObjectList<any>;
|
||||
getAppInstancesByProductId(productId: SP.Guid): SP.ClientObjectList<SP.AppInstance>;
|
||||
loadAndInstallAppInSpecifiedLocale(appPackageStream: any[], installationLocaleLCID: number): SP.AppInstance;
|
||||
loadApp(appPackageStream: any[], installationLocaleLCID: number): SP.AppInstance;
|
||||
loadAndInstallApp(appPackageStream: any[]): SP.AppInstance;
|
||||
@@ -4813,8 +4811,8 @@ declare module SP {
|
||||
set_moreColorsPicker(value: SP.Application.UI.MoreColorsPicker): void;
|
||||
}
|
||||
export class ThemeWebPage extends Sys.UI.Control {
|
||||
add_themeDisplayUpdated(value: (sender: any, e: Sys.EventArgs) => void ): void;
|
||||
remove_themeDisplayUpdated(value: (sender: any, e: Sys.EventArgs) => void ): void;
|
||||
add_themeDisplayUpdated(value: (sender: any, e: Sys.EventArgs) => void): void;
|
||||
remove_themeDisplayUpdated(value: (sender: any, e: Sys.EventArgs) => void): void;
|
||||
constructor(e: HTMLElement);
|
||||
initialize(): void;
|
||||
dispose(): void;
|
||||
@@ -5000,11 +4998,11 @@ declare module Microsoft.SharePoint.Client.Search {
|
||||
|
||||
|
||||
getQuerySuggestionsWithResults: (iNumberOfQuerySuggestions: number,
|
||||
iNumberOfResultSuggestions: number,
|
||||
fPreQuerySuggestions: boolean,
|
||||
fHitHighlighting: boolean,
|
||||
fCapitalizeFirstLetters: boolean,
|
||||
fPrefixMatchAllTerms: boolean) => QuerySuggestionResults;
|
||||
iNumberOfResultSuggestions: number,
|
||||
fPreQuerySuggestions: boolean,
|
||||
fHitHighlighting: boolean,
|
||||
fCapitalizeFirstLetters: boolean,
|
||||
fPrefixMatchAllTerms: boolean) => QuerySuggestionResults;
|
||||
|
||||
|
||||
}
|
||||
@@ -5050,15 +5048,15 @@ declare module Microsoft.SharePoint.Client.Search {
|
||||
executeQuery: (query: Query) => SP.JsonObjectResult;
|
||||
executeQueries: (queryIds: string[], queries: Query[], handleExceptions: boolean) => SP.JsonObjectResult;
|
||||
recordPageClick: (
|
||||
pageInfo: string,
|
||||
clickType: string,
|
||||
blockType: number,
|
||||
clickedResultId: string,
|
||||
subResultIndex: number,
|
||||
immediacySourceId: string,
|
||||
immediacyQueryString: string,
|
||||
immediacyTitle: string,
|
||||
immediacyUrl: string) => void;
|
||||
pageInfo: string,
|
||||
clickType: string,
|
||||
blockType: number,
|
||||
clickedResultId: string,
|
||||
subResultIndex: number,
|
||||
immediacySourceId: string,
|
||||
immediacyQueryString: string,
|
||||
immediacyTitle: string,
|
||||
immediacyUrl: string) => void;
|
||||
exportPopularQueries: (web: SP.Web, sourceId: SP.Guid) => SP.JsonObjectResult;
|
||||
}
|
||||
|
||||
@@ -5364,14 +5362,14 @@ declare module Microsoft.SharePoint.Client.Search {
|
||||
export class DocumentCrawlLog extends SP.ClientObject {
|
||||
constructor(context: SP.ClientContext, site: SP.Site);
|
||||
getCrawledUrls: (getCountOnly: boolean,
|
||||
maxRows: { High: number; Low: number; },
|
||||
queryString: string,
|
||||
isLike: boolean,
|
||||
contentSourceID: number,
|
||||
errorLevel: number,
|
||||
errorID: number,
|
||||
startDateTime: Date,
|
||||
endDateTime: Date) => SP.JsonObjectResult;
|
||||
maxRows: { High: number; Low: number; },
|
||||
queryString: string,
|
||||
isLike: boolean,
|
||||
contentSourceID: number,
|
||||
errorLevel: number,
|
||||
errorID: number,
|
||||
startDateTime: Date,
|
||||
endDateTime: Date) => SP.JsonObjectResult;
|
||||
}
|
||||
|
||||
export class SearchObjectOwner extends SP.ClientObject {
|
||||
@@ -6105,7 +6103,7 @@ declare module SP {
|
||||
set_newerThan(value: string): string;
|
||||
get_olderThan(): string;
|
||||
set_olderThan(value: string): string;
|
||||
get_sortOrder():SocialFeedSortOrder;
|
||||
get_sortOrder(): SocialFeedSortOrder;
|
||||
set_sortOrder(value: SocialFeedSortOrder): SocialFeedSortOrder;
|
||||
}
|
||||
|
||||
@@ -6727,7 +6725,7 @@ declare module SP {
|
||||
get_selectedEntities(): any;
|
||||
set_selectedEntities(value: any): void;
|
||||
get_callback(): (sender: any, e: Sys.EventArgs) => void;
|
||||
set_callback(value: (sender: any, e: Sys.EventArgs) => void ): void;
|
||||
set_callback(value: (sender: any, e: Sys.EventArgs) => void): void;
|
||||
get_scopeKey(): string;
|
||||
get_componentType(): SP.UI.ApplicationPages.SelectorType;
|
||||
revertTo(ent: SP.UI.ApplicationPages.ResolveEntity): void;
|
||||
@@ -6745,7 +6743,7 @@ declare module SP {
|
||||
static instance(): SP.UI.ApplicationPages.CalendarSelector;
|
||||
registerSelector(selector: SP.UI.ApplicationPages.ISelectorComponent): void;
|
||||
getSelector(type: SP.UI.ApplicationPages.SelectorType, scopeKey: string): SP.UI.ApplicationPages.ISelectorComponent;
|
||||
addHandler(scopeKey: string, people: boolean, resource: boolean, handler: (sender: any, selection: SP.UI.ApplicationPages.SelectorSelectionEventArgs) => void ): void;
|
||||
addHandler(scopeKey: string, people: boolean, resource: boolean, handler: (sender: any, selection: SP.UI.ApplicationPages.SelectorSelectionEventArgs) => void): void;
|
||||
revertTo(scopeKey: string, ent: SP.UI.ApplicationPages.ResolveEntity): void;
|
||||
removeEntity(scopeKey: string, ent: SP.UI.ApplicationPages.ResolveEntity): void;
|
||||
constructor();
|
||||
@@ -6757,7 +6755,7 @@ declare module SP {
|
||||
get_selectedEntities(): any;
|
||||
set_selectedEntities(value: any): void;
|
||||
get_callback(): (sender: any, e: Sys.EventArgs) => void;
|
||||
set_callback(value: (sender: any, e: Sys.EventArgs) => void ): void;
|
||||
set_callback(value: (sender: any, e: Sys.EventArgs) => void): void;
|
||||
revertTo(ent: SP.UI.ApplicationPages.ResolveEntity): void;
|
||||
removeEntity(ent: SP.UI.ApplicationPages.ResolveEntity): void;
|
||||
setEntity(ent: SP.UI.ApplicationPages.ResolveEntity): void;
|
||||
@@ -6889,8 +6887,8 @@ declare module SP {
|
||||
OnNotificationCountChanged,
|
||||
}
|
||||
export class SPNotification {
|
||||
constructor(containerId: SP.UI.ContainerID, strHtml: string, bSticky: boolean, strTooltip: string, onclickHandler: () => void , extraData: any);
|
||||
constructor(containerId: SP.UI.ContainerID, strHtml: string, bSticky: boolean, strTooltip: string, onclickHandler: () => void );
|
||||
constructor(containerId: SP.UI.ContainerID, strHtml: string, bSticky: boolean, strTooltip: string, onclickHandler: () => void, extraData: any);
|
||||
constructor(containerId: SP.UI.ContainerID, strHtml: string, bSticky: boolean, strTooltip: string, onclickHandler: () => void);
|
||||
constructor(containerId: SP.UI.ContainerID, strHtml: string, bSticky: boolean, strTooltip: string);
|
||||
constructor(containerId: SP.UI.ContainerID, strHtml: string, bSticky: boolean);
|
||||
constructor(containerId: SP.UI.ContainerID, strHtml: string);
|
||||
@@ -6915,8 +6913,8 @@ declare module SP {
|
||||
constructor();
|
||||
}
|
||||
export class Workspace {
|
||||
static add_resized(handler: () => void ): void;
|
||||
static remove_resized(handler: () => void ): void;
|
||||
static add_resized(handler: () => void): void;
|
||||
static remove_resized(handler: () => void): void;
|
||||
}
|
||||
export class Menu {
|
||||
static create(id: string): SP.UI.Menu;
|
||||
@@ -7134,7 +7132,7 @@ declare module SP {
|
||||
/** Gets suggestions for who the current user might want to follow.
|
||||
Note: The recommended API to use for this task is SocialFollowingManager.getSuggestions.
|
||||
Returns list of PersonProperties objects */
|
||||
getMySuggestions(): SP.ClientObjectList<any>;
|
||||
getMySuggestions(): SP.ClientObjectList<PersonProperties>;
|
||||
/** Removes the specified user from the user's list of suggested people to follow. */
|
||||
hideSuggestion(accountName: string): void;
|
||||
follow(accountName: string): void;
|
||||
@@ -7146,10 +7144,10 @@ declare module SP {
|
||||
@param tagId GUID of the tag to stop following. */
|
||||
stopFollowingTag(tagId: string): void;
|
||||
amIFollowing(accountName: string): SP.BooleanResult;
|
||||
getPeopleFollowedByMe(): SP.ClientObjectList<any>;
|
||||
getPeopleFollowedBy(accountName: string): SP.ClientObjectList<any>;
|
||||
getMyFollowers(): SP.ClientObjectList<any>;
|
||||
getFollowersFor(accountName: string): SP.ClientObjectList<any>;
|
||||
getPeopleFollowedByMe(): SP.ClientObjectList<PersonProperties>;
|
||||
getPeopleFollowedBy(accountName: string): SP.ClientObjectList<PersonProperties>;
|
||||
getMyFollowers(): SP.ClientObjectList<PersonProperties>;
|
||||
getFollowersFor(accountName: string): SP.ClientObjectList<PersonProperties>;
|
||||
amIFollowedBy(accountName: string): SP.BooleanResult;
|
||||
/** Uploads and sets the user profile picture.
|
||||
Pictures in bmp, jpg and png formats and up to 5,000,000 bytes are supported.
|
||||
@@ -7502,7 +7500,7 @@ declare module SP {
|
||||
static getLayoutsPageUrl(pageName: string): string;
|
||||
static getImageUrl(imageName: string): string;
|
||||
static createWikiPageInContextWeb(context: SP.ClientRuntimeContext, parameters: SP.Utilities.WikiPageCreationInformation): SP.File;
|
||||
static localizeWebPartGallery(context: SP.ClientRuntimeContext, items: SP.ListItemCollection): SP.ClientObjectList<any>;
|
||||
static localizeWebPartGallery(context: SP.ClientRuntimeContext, items: SP.ListItemCollection): SP.ClientObjectList<SP.ListItem>;
|
||||
static getAppLicenseInformation(context: SP.ClientRuntimeContext, productId: SP.Guid): SP.AppLicenseCollection;
|
||||
static importAppLicense(context: SP.ClientRuntimeContext, licenseTokenToImport: string, contentMarket: string, billingMarket: string, appName: string, iconUrl: string, providerName: string, appSubtype: number): void;
|
||||
static getAppLicenseDeploymentId(context: SP.ClientRuntimeContext): SP.GuidResult;
|
||||
@@ -8116,12 +8114,12 @@ declare module SP.WorkflowServices {
|
||||
|
||||
}
|
||||
|
||||
declare class SPClientAutoFill{
|
||||
static MenuOptionType : {
|
||||
declare class SPClientAutoFill {
|
||||
static MenuOptionType: {
|
||||
Option: number;
|
||||
Footer: number;
|
||||
Separator: number;
|
||||
Loading:number;
|
||||
Loading: number;
|
||||
}
|
||||
|
||||
static KeyProperty: string; //= 'AutoFillKey';
|
||||
@@ -8134,7 +8132,7 @@ declare class SPClientAutoFill{
|
||||
static GetAutoFillObjFromContainer(elmChild: HTMLElement): SPClientAutoFill;
|
||||
static GetAutoFillMenuItemFromOption(elmChild: HTMLElement): HTMLElement;
|
||||
|
||||
constructor(elmTextId: string, elmContainerId: string, fnPopulateAutoFill: (targetElement: HTMLInputElement) => void );
|
||||
constructor(elmTextId: string, elmContainerId: string, fnPopulateAutoFill: (targetElement: HTMLInputElement) => void);
|
||||
public TextElementId: string;
|
||||
public AutoFillContainerId: string;
|
||||
public AutoFillMenuId: string;
|
||||
@@ -8145,16 +8143,16 @@ declare class SPClientAutoFill{
|
||||
public AutoFillCallbackTimeoutID: string;
|
||||
public FuncOnAutoFillClose: (elmTextId: string, ojData: ISPClientAutoFillData) => void;
|
||||
public FuncPopulateAutoFill: (targetElement: HTMLElement) => void;
|
||||
public AllOptionData: { [key:string]: ISPClientAutoFillData };
|
||||
public AllOptionData: { [key: string]: ISPClientAutoFillData };
|
||||
|
||||
PopulateAutoFill(jsonObjSuggestions: ISPClientAutoFillData[], fnOnAutoFillCloseFuncName: (elmTextId: string, objData:ISPClientAutoFillData) => void ): void;
|
||||
PopulateAutoFill(jsonObjSuggestions: ISPClientAutoFillData[], fnOnAutoFillCloseFuncName: (elmTextId: string, objData: ISPClientAutoFillData) => void): void;
|
||||
IsAutoFillOpen(): boolean;
|
||||
SetAutoFillHeight(): void;
|
||||
SelectAutoFillOption(elemOption:HTMLElement): void;
|
||||
FocusAutoFill() :void;
|
||||
SelectAutoFillOption(elemOption: HTMLElement): void;
|
||||
FocusAutoFill(): void;
|
||||
BlurAutoFill(): void;
|
||||
CloseAutoFill(ojData: ISPClientAutoFillData): void;
|
||||
UpdateAutoFillMenuFocus(bMoveNextLink:boolean): void;
|
||||
UpdateAutoFillMenuFocus(bMoveNextLink: boolean): void;
|
||||
UpdateAutoFillPosition(): void;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user