mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-10 11:40:16 +08:00
Merge branch 'master' into rename-repo-url
This commit is contained in:
@@ -27,7 +27,7 @@ function retrieveWebsite(resultpanel:HTMLElement) {
|
||||
}
|
||||
|
||||
function retrieveWebsiteProps(resultpanel: HTMLElement) {
|
||||
|
||||
|
||||
var clientContext = SP.ClientContext.get_current();
|
||||
var oWebsite = clientContext.get_web();
|
||||
|
||||
@@ -87,7 +87,7 @@ function readAllProps(resultpanel: HTMLElement) {
|
||||
function successHandler() {
|
||||
|
||||
var listEnumerator = collList.getEnumerator();
|
||||
|
||||
|
||||
var listInfo = "";
|
||||
while (listEnumerator.moveNext()) {
|
||||
var oList = listEnumerator.get_current();
|
||||
@@ -118,7 +118,7 @@ function readSpecificProps(resultpanel: HTMLElement) {
|
||||
);
|
||||
|
||||
function successHandler() {
|
||||
|
||||
|
||||
var listEnumerator = collList.getEnumerator();
|
||||
|
||||
var listInfo = "";
|
||||
@@ -156,7 +156,7 @@ function readColl(resultpanel: HTMLElement) {
|
||||
listInfo += "Title: " + oList.get_title() +
|
||||
" ID: " + oList.get_id().toString() + "<br/>";
|
||||
}
|
||||
|
||||
|
||||
resultpanel.innerHTML = listInfo;
|
||||
}
|
||||
|
||||
@@ -468,7 +468,7 @@ function createListItem(resultpanel: HTMLElement) {
|
||||
oListItem.set_item("Title", "My New Item!");
|
||||
oListItem.set_item("Body", "Hello World!");
|
||||
oListItem.update();
|
||||
|
||||
|
||||
clientContext.load(oListItem);
|
||||
clientContext.executeQueryAsync(
|
||||
successHandler,
|
||||
@@ -533,7 +533,7 @@ function deleteListItem(resultpanel: HTMLElement) {
|
||||
|
||||
|
||||
/** Lightweight client-side rendering template overrides.*/
|
||||
module CSR {
|
||||
namespace CSR {
|
||||
|
||||
export interface UpdatedValueCallback {
|
||||
(value: any, fieldSchema?: SPClientTemplates.FieldSchema_InForm): void;
|
||||
@@ -1090,7 +1090,7 @@ module CSR {
|
||||
|
||||
|
||||
ctx.executeQueryAsync((o, e) => {
|
||||
var selected = false;
|
||||
var selected = false;
|
||||
|
||||
while (_dropdownElt.options.length) {
|
||||
(_dropdownElt.options as any /* TODO remove `as any` */).remove(0);
|
||||
@@ -1166,7 +1166,7 @@ module CSR {
|
||||
|
||||
|
||||
if (dependencyFields) {
|
||||
dependencyFields.forEach(dependencyField => {
|
||||
dependencyFields.forEach(dependencyField => {
|
||||
if (!vm[dependencyField]) {
|
||||
vm[dependencyField] = ko.observable(CSR.getFieldValue(rCtx, dependencyField));
|
||||
}
|
||||
@@ -1175,7 +1175,7 @@ module CSR {
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (!vm.value) {
|
||||
vm.value = ko.observable<any>();
|
||||
@@ -1673,7 +1673,7 @@ module CSR {
|
||||
*/
|
||||
seachLookup(fieldName: string): ICSR;
|
||||
|
||||
/** Adds link to add new value to lookup list.
|
||||
/** Adds link to add new value to lookup list.
|
||||
@param fieldName Internal name of the field.
|
||||
@param prompt Text to display as a link to add new value.
|
||||
@param contentTypeID Default content type for new item.
|
||||
@@ -1741,7 +1741,7 @@ if (typeof SP == 'object' && SP && typeof SP.SOD == 'object' && SP.SOD) {
|
||||
|
||||
|
||||
|
||||
module spdevlab {
|
||||
namespace spdevlab {
|
||||
export module mQuery {
|
||||
export class DynamicTable {
|
||||
|
||||
@@ -1867,7 +1867,7 @@ module _ {
|
||||
}
|
||||
});
|
||||
|
||||
//Load the people picker
|
||||
//Load the people picker
|
||||
function loadPeoplePicker(peoplePickerElementId: string) {
|
||||
var schema: ISPClientPeoplePickerSchema = {
|
||||
PrincipalAccountType: "User",
|
||||
@@ -1978,7 +1978,7 @@ module _ {
|
||||
}
|
||||
|
||||
//taxonomy
|
||||
module SP {
|
||||
namespace SP {
|
||||
|
||||
// Class
|
||||
export class ClientContextPromise extends SP.ClientContext {
|
||||
@@ -2016,7 +2016,7 @@ module _ {
|
||||
var termStore: SP.Taxonomy.TermStore;
|
||||
var groups: SP.Taxonomy.TermGroupCollection;
|
||||
|
||||
// This code runs when the DOM is ready and creates a context object
|
||||
// This code runs when the DOM is ready and creates a context object
|
||||
// which is needed to use the SharePoint object model.
|
||||
// It also wires up the click handlers for the two HTML buttons in Default.aspx.
|
||||
$(document).ready(function () {
|
||||
@@ -2039,7 +2039,7 @@ module _ {
|
||||
}
|
||||
|
||||
// Runs when the executeQueryAsync method in the listGroups function has succeeded.
|
||||
// In this case, get and load the groups associated with the term store that we
|
||||
// In this case, get and load the groups associated with the term store that we
|
||||
// know we now have a reference to.
|
||||
function onListTaxonomySession() {
|
||||
groups = termStore.get_groups();
|
||||
@@ -2051,7 +2051,7 @@ module _ {
|
||||
// In this case, loop through all the groups and add a clickable div element to the report area
|
||||
// for each group.
|
||||
// NOTE: We clear the report area first to ensure we have a clean place to write to.
|
||||
// Also note how we create a click event handler for each div on-the-fly, and that we pass in the
|
||||
// Also note how we create a click event handler for each div on-the-fly, and that we pass in the
|
||||
// current group ID to that function. So when the user clicks one of these divs, we will know which
|
||||
// one was clicked.
|
||||
function onRetrieveGroups() {
|
||||
@@ -2100,9 +2100,9 @@ module _ {
|
||||
context.executeQueryPromise()
|
||||
.then(
|
||||
() => {
|
||||
// The group is now available becuase this is the
|
||||
// The group is now available becuase this is the
|
||||
// success callback. So now we'll load and populate the
|
||||
// term set collection. We have to do this before we can
|
||||
// term set collection. We have to do this before we can
|
||||
// iterate through the collection, so we can do this
|
||||
// with the following nested executeQueryAsync method call.
|
||||
termSets = currentGroup.get_termSets();
|
||||
@@ -2110,11 +2110,11 @@ module _ {
|
||||
return context.executeQueryPromise()
|
||||
})
|
||||
.then(() => {
|
||||
// The term sets are now available becuase this is the
|
||||
// The term sets are now available becuase this is the
|
||||
// success callback. So now we'll iterate through the collection
|
||||
// and create the clickable div. Also note how we create a
|
||||
// click event handler for each div on-the-fly, and that we pass in the
|
||||
// current group ID and term set ID to that function. So when the user
|
||||
// and create the clickable div. Also note how we create a
|
||||
// click event handler for each div on-the-fly, and that we pass in the
|
||||
// current group ID and term set ID to that function. So when the user
|
||||
// clicks one of these divs, we will know which
|
||||
// one was clicked by its term set ID, and to which group it belongs by its
|
||||
// group ID. We also pass in the event object, so that we can cancel the bubble
|
||||
@@ -2122,7 +2122,7 @@ module _ {
|
||||
// don't want the parent's event to fire.
|
||||
var termSetEnum = termSets.getEnumerator();
|
||||
while (termSetEnum.moveNext()) {
|
||||
(() => {
|
||||
(() => {
|
||||
var currentTermSet = termSetEnum.get_current();
|
||||
var termSetName = document.createElement("div");
|
||||
termSetName.appendChild(document.createTextNode(" + " + currentTermSet.get_name()));
|
||||
@@ -2170,9 +2170,9 @@ module _ {
|
||||
context
|
||||
.executeQueryPromise()
|
||||
.then(() => {
|
||||
// The group is now available becuase this is the
|
||||
// The group is now available becuase this is the
|
||||
// success callback. So now we'll load and populate the
|
||||
// term set collection. We have to do this before we can
|
||||
// term set collection. We have to do this before we can
|
||||
// iterate through the collection, so we can do this
|
||||
// with the following nested executeQueryAsync method call.
|
||||
termSets = currentGroup.get_termSets();
|
||||
@@ -2180,7 +2180,7 @@ module _ {
|
||||
return context.executeQueryPromise();
|
||||
})
|
||||
.then(() => {
|
||||
currentTermSet = termSets.getById(termSetID);
|
||||
currentTermSet = termSets.getById(termSetID);
|
||||
context.load(currentTermSet);
|
||||
return context.executeQueryPromise();
|
||||
})
|
||||
@@ -2189,7 +2189,7 @@ module _ {
|
||||
context.load(terms);
|
||||
return context.executeQueryPromise();
|
||||
})
|
||||
.then(() => {
|
||||
.then(() => {
|
||||
var termsEnum = terms.getEnumerator();
|
||||
while (termsEnum.moveNext()) {
|
||||
var currentTerm = termsEnum.get_current();
|
||||
@@ -2200,7 +2200,7 @@ module _ {
|
||||
parentDiv.appendChild(term);
|
||||
}
|
||||
})
|
||||
.fail(() => parentDiv.appendChild(document.createTextNode("An error occurred when trying to retrieve terms in this term set")));
|
||||
.fail(() => parentDiv.appendChild(document.createTextNode("An error occurred when trying to retrieve terms in this term set")));
|
||||
}
|
||||
|
||||
// Runs when the executeQueryAsync method in the onListTaxonomySession function has failed.
|
||||
@@ -2299,7 +2299,7 @@ function createPage(evt) {
|
||||
SP.SOD.execute('sp.js', 'SP.ClientConext', () => {
|
||||
SP.SOD.execute('sp.publishing.js', 'SP.Publishing', () => {
|
||||
var context = SP.ClientContext.get_current();
|
||||
|
||||
|
||||
|
||||
var hostUrl = decodeURIComponent(JSRequest.QueryString["SPHostUrl"]);
|
||||
var hostcontext = new SP.AppContextSite(context, hostUrl);
|
||||
@@ -2323,7 +2323,7 @@ function createPage(evt) {
|
||||
context.load(listItem);
|
||||
context.executeQueryAsync(
|
||||
|
||||
// Success callback after getting the actual list item that is
|
||||
// Success callback after getting the actual list item that is
|
||||
// represented by the Publishing Page.
|
||||
// We can now get its FieldValues, one of which is its FileLeafRef value.
|
||||
// We can then use that value to build the Url to the new page
|
||||
@@ -2334,7 +2334,7 @@ function createPage(evt) {
|
||||
link.innerText = "Go to new page!";
|
||||
},
|
||||
|
||||
// Failure callback after getting the actual list item that is
|
||||
// Failure callback after getting the actual list item that is
|
||||
// represented by the Publishing Page.
|
||||
function (sender, args) {
|
||||
alert('Failed to get new page: ' + args.get_message());
|
||||
@@ -2357,7 +2357,7 @@ function createPage(evt) {
|
||||
}
|
||||
|
||||
//likes
|
||||
module SampleReputation {
|
||||
namespace SampleReputation {
|
||||
|
||||
interface MyList extends SPClientTemplates.RenderContext_InView {
|
||||
listId: string;
|
||||
@@ -2453,13 +2453,13 @@ module SampleReputation {
|
||||
|
||||
|
||||
//code from https://github.com/gandjustas/SharePointAngularTS
|
||||
module App {
|
||||
namespace App {
|
||||
"use strict";
|
||||
var app = angular.module("app", []);
|
||||
}
|
||||
|
||||
// Install the angularjs.TypeScript.DefinitelyTyped NuGet package
|
||||
module App {
|
||||
namespace App {
|
||||
"use strict";
|
||||
|
||||
interface Iappcontroller {
|
||||
@@ -2494,13 +2494,13 @@ module App {
|
||||
|
||||
|
||||
|
||||
module App {
|
||||
namespace App {
|
||||
"use strict";
|
||||
|
||||
export interface ISharePoint {
|
||||
getLists: () => ng.IPromise<SP.List[]>;
|
||||
}
|
||||
|
||||
|
||||
class SharePointServcie implements ISharePoint {
|
||||
static $inject: string[] = ["$q"];
|
||||
|
||||
@@ -2535,7 +2535,7 @@ module App {
|
||||
|
||||
|
||||
// Install the angularjs.TypeScript.DefinitelyTyped NuGet package
|
||||
module App {
|
||||
namespace App {
|
||||
"use strict";
|
||||
|
||||
export interface ISpNotify {
|
||||
@@ -2543,7 +2543,7 @@ module App {
|
||||
show(msg: string, sticky?: boolean): string;
|
||||
remove(id: string):void;
|
||||
}
|
||||
|
||||
|
||||
class SpNotify implements ISpNotify {
|
||||
static $inject: string[] = [];
|
||||
|
||||
|
||||
Vendored
+83
-83
@@ -12,7 +12,7 @@ declare function ExecuteOrDelayUntilScriptLoaded(func: () => void, depScriptFile
|
||||
declare function ExecuteOrDelayUntilEventNotified(func: Function, eventName: string): boolean;
|
||||
declare var Strings:any;
|
||||
|
||||
declare module SP {
|
||||
declare namespace SP {
|
||||
export class SOD {
|
||||
static execute(fileName: string, functionName: string, ...args: any[]): void;
|
||||
static executeFunc(fileName: string, typeName: string, fn: () => void): void;
|
||||
@@ -326,7 +326,7 @@ interface ContextInfo extends SPClientTemplates.RenderContext {
|
||||
|
||||
declare function GetCurrentCtx(): ContextInfo;
|
||||
declare function SetFullScreenMode(fullscreen: boolean): void;
|
||||
declare module SP {
|
||||
declare namespace SP {
|
||||
export enum RequestExecutorErrors {
|
||||
requestAbortedOrTimedout,
|
||||
unexpectedResponse,
|
||||
@@ -799,7 +799,7 @@ declare class CalloutManager {
|
||||
}
|
||||
|
||||
|
||||
declare module SPClientTemplates {
|
||||
declare namespace SPClientTemplates {
|
||||
|
||||
export enum FileSystemObjectType {
|
||||
Invalid,
|
||||
@@ -1348,7 +1348,7 @@ declare module SPClientTemplates {
|
||||
|
||||
export interface Templates {
|
||||
View?: RenderCallback | string; // TODO: determine appropriate context type and purpose of this template
|
||||
Body?: RenderCallback | string; // TODO: determine appropriate context type and purpose of this template
|
||||
Body?: RenderCallback | string; // TODO: determine appropriate context type and purpose of this template
|
||||
/** Defines templates for rendering groups (aggregations). */
|
||||
Group?: GroupCallback | string;
|
||||
/** Defines templates for list items rendering. */
|
||||
@@ -1369,7 +1369,7 @@ declare module SPClientTemplates {
|
||||
|
||||
export interface TemplateOverrides {
|
||||
View?: RenderCallback | string; // TODO: determine appropriate context type and purpose of this template
|
||||
Body?: RenderCallback | string; // TODO: determine appropriate context type and purpose of this template
|
||||
Body?: RenderCallback | string; // TODO: determine appropriate context type and purpose of this template
|
||||
/** Defines templates for rendering groups (aggregations). */
|
||||
Group?: GroupCallback | string;
|
||||
/** Defines templates for list items rendering. */
|
||||
@@ -1393,10 +1393,10 @@ declare module SPClientTemplates {
|
||||
/** �allbacks called after rendered html inserted into DOM. Can be function (ctx: RenderContext) => void or array of functions.*/
|
||||
OnPostRender?: RenderCallback | RenderCallback[];
|
||||
|
||||
/** View style (SPView.StyleID) for which the templates should be applied.
|
||||
/** View style (SPView.StyleID) for which the templates should be applied.
|
||||
If not defined, the templates will be applied only to default view style. */
|
||||
ViewStyle?: number;
|
||||
/** List template type (SPList.BaseTemplate) for which the template should be applied.
|
||||
/** List template type (SPList.BaseTemplate) for which the template should be applied.
|
||||
If not defined, the templates will be applied to all lists. */
|
||||
ListTemplateType?: number;
|
||||
/** Base view ID (SPView.BaseViewID) for which the template should be applied.
|
||||
@@ -1500,8 +1500,8 @@ declare function GenerateIIDForListItem(renderCtx: SPClientTemplates.RenderConte
|
||||
declare function SPFormControl_AppendValidationErrorMessage(nodeId: string, errorResult: any): void;
|
||||
declare function CoreRender(template: any, context: any): string;
|
||||
|
||||
declare module SPClientForms {
|
||||
module ClientValidation {
|
||||
declare namespace SPClientForms {
|
||||
namespace ClientValidation {
|
||||
export class ValidationResult {
|
||||
constructor(hasErrors: boolean, errorMsg: string);
|
||||
}
|
||||
@@ -1592,7 +1592,7 @@ declare function SPFieldLookup_Edit(ctx: SPClientTemplates.RenderContext_FieldIn
|
||||
declare function SPFieldLookupMulti_Edit(ctx: SPClientTemplates.RenderContext_FieldInForm): string;
|
||||
declare function SPFieldAttachments_Default(ctx: SPClientTemplates.RenderContext_FieldInForm): string;
|
||||
|
||||
declare module SPAnimation {
|
||||
declare namespace SPAnimation {
|
||||
export enum Attribute {
|
||||
PositionX,
|
||||
PositionY,
|
||||
@@ -1646,7 +1646,7 @@ declare module SPAnimation {
|
||||
}
|
||||
}
|
||||
|
||||
declare module SPAnimationUtility {
|
||||
declare namespace 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;
|
||||
@@ -1679,7 +1679,7 @@ interface IEnumerable<T> {
|
||||
getEnumerator(): IEnumerator<T>;
|
||||
}
|
||||
|
||||
declare module SP {
|
||||
declare namespace SP {
|
||||
export class ScriptUtility {
|
||||
static isNullOrEmptyString(str: string): boolean;
|
||||
static isNullOrUndefined(obj: any): boolean;
|
||||
@@ -2640,12 +2640,12 @@ declare module SP {
|
||||
/** Specifies a Collaborative Application Markup Language (CAML) query on a list. */
|
||||
export class CamlQuery extends SP.ClientValueObject {
|
||||
constructor();
|
||||
/** This method creates a Collaborative Application Markup Language (CAML) string
|
||||
that can be used to recursively get all of the items in a list, including
|
||||
/** This method creates a Collaborative Application Markup Language (CAML) string
|
||||
that can be used to recursively get all of the items in a list, including
|
||||
the items in the subfolders. */
|
||||
static createAllItemsQuery(): SP.CamlQuery;
|
||||
/** This method creates a Collaborative Application Markup Language (CAML) string
|
||||
that can be used to recursively get all of the folders in a list, including
|
||||
/** This method creates a Collaborative Application Markup Language (CAML) string
|
||||
that can be used to recursively get all of the folders in a list, including
|
||||
the subfolders. */
|
||||
static createAllFoldersQuery(): SP.CamlQuery;
|
||||
/** Returns true if the query returns dates in Coordinated Universal Time (UTC) format. */
|
||||
@@ -3924,7 +3924,7 @@ declare module SP {
|
||||
choiceField,
|
||||
minMaxField,
|
||||
textField,
|
||||
}
|
||||
}
|
||||
/** Represents an item or row in a list. */
|
||||
export class ListItem extends SP.SecurableObject {
|
||||
get_fieldValues(): any;
|
||||
@@ -5123,8 +5123,8 @@ declare module SP {
|
||||
|
||||
|
||||
|
||||
declare module Microsoft.SharePoint.Client.Search {
|
||||
module Query {
|
||||
declare namespace Microsoft.SharePoint.Client.Search {
|
||||
namespace Query {
|
||||
|
||||
/**Contains information common to all types of search queries.*/
|
||||
export class Query extends SP.ClientObject {
|
||||
@@ -5567,7 +5567,7 @@ declare module Microsoft.SharePoint.Client.Search {
|
||||
}
|
||||
}
|
||||
|
||||
module WebControls {
|
||||
namespace WebControls {
|
||||
export class ControlMessage extends SP.ClientValueObject {
|
||||
get_code: () => number;
|
||||
|
||||
@@ -5601,7 +5601,7 @@ declare module Microsoft.SharePoint.Client.Search {
|
||||
}
|
||||
}
|
||||
|
||||
module Administration {
|
||||
namespace Administration {
|
||||
export class DocumentCrawlLog extends SP.ClientObject {
|
||||
constructor(context: SP.ClientContext, site: SP.Site);
|
||||
getCrawledUrls: (getCountOnly: boolean,
|
||||
@@ -5627,7 +5627,7 @@ declare module Microsoft.SharePoint.Client.Search {
|
||||
}
|
||||
}
|
||||
|
||||
module Portability {
|
||||
namespace Portability {
|
||||
export class SearchConfigurationPortability extends SP.ClientObject {
|
||||
constructor(context: SP.ClientContext);
|
||||
get_importWarnings: () => string;
|
||||
@@ -5645,7 +5645,7 @@ declare module Microsoft.SharePoint.Client.Search {
|
||||
}
|
||||
|
||||
/**Located in sp.search.apps.js*/
|
||||
module Analytics {
|
||||
namespace Analytics {
|
||||
export class AnalyticsItemData extends SP.ClientObject {
|
||||
get_lastProcessingTime: () => Date;
|
||||
|
||||
@@ -5677,7 +5677,7 @@ declare module Microsoft.SharePoint.Client.Search {
|
||||
}
|
||||
}
|
||||
|
||||
declare module SP {
|
||||
declare namespace SP {
|
||||
export module BusinessData {
|
||||
export class AppBdcCatalog extends SP.ClientObject {
|
||||
getEntity(namespace: string, name: string): SP.BusinessData.Entity;
|
||||
@@ -5866,7 +5866,7 @@ declare module SP {
|
||||
}
|
||||
}
|
||||
|
||||
declare module SP {
|
||||
declare namespace SP {
|
||||
export module Sharing {
|
||||
export class DocumentSharingManager {
|
||||
static getRoleDefinition(context: SP.ClientRuntimeContext, role: SP.Sharing.Role): SP.RoleDefinition;
|
||||
@@ -5903,7 +5903,7 @@ declare module SP {
|
||||
|
||||
}
|
||||
|
||||
declare module SP {
|
||||
declare namespace SP {
|
||||
|
||||
export module Social {
|
||||
/** Identifies an actor as a user, document, site, or tag. */
|
||||
@@ -6060,7 +6060,7 @@ declare module SP {
|
||||
|
||||
/** Contains information about an actor retrieved from server. An actor is a user, document, site, or tag. */
|
||||
export class SocialActor extends SP.ClientValueObject {
|
||||
/** The AccountName property returns the user account name.
|
||||
/** The AccountName property returns the user account name.
|
||||
This property is only available for social actors of type "user". */
|
||||
get_accountName(): string;
|
||||
/** Identifies whether the actor is a user, document, site, or tag. */
|
||||
@@ -6091,7 +6091,7 @@ declare module SP {
|
||||
get_personalSiteUri(): string;
|
||||
/** Represents the status of retrieving the actor */
|
||||
get_status(): SocialStatusCode;
|
||||
/** The StatusText property returns the most recent post of the user.
|
||||
/** The StatusText property returns the most recent post of the user.
|
||||
This property is only available for social actors of type "user". */
|
||||
get_statusText(): string;
|
||||
/** Returns the GUID of the tag.
|
||||
@@ -6106,10 +6106,10 @@ declare module SP {
|
||||
|
||||
/** Identifies an actor to the server. An actor can be a user, document, site, or tag. */
|
||||
export class SocialActorInfo extends SP.ClientValueObject {
|
||||
/** User account name.
|
||||
/** User account name.
|
||||
This property is only available for social actors of type "user". */
|
||||
get_accountName(): string;
|
||||
/** User account name.
|
||||
/** User account name.
|
||||
This property is only available for social actors of type "user". */
|
||||
set_accountName(value: string): string;
|
||||
/** Identifies whether the actor is a user, document, site, or tag. */
|
||||
@@ -6220,7 +6220,7 @@ declare module SP {
|
||||
}
|
||||
|
||||
/** Provides information about an overlay.
|
||||
An overlay is a substring in a post that represents a user, document, site, tag, or link.
|
||||
An overlay is a substring in a post that represents a user, document, site, tag, or link.
|
||||
The SocialPost class contains an array of SocialDataOverlay objects.
|
||||
Each of the SocialDataOverlay objects specifies a link or one or more actors. */
|
||||
export class SocialDataOverlay extends SP.ClientValueObject {
|
||||
@@ -6257,8 +6257,8 @@ declare module SP {
|
||||
The most recent post that was requested can be removed from the feed if the current user does not have access to it.
|
||||
Consequently, the feed does not always contain the post with the date specified in this property. */
|
||||
get_newestProcessed(): string;
|
||||
/** The OldestProcessed property returns the date-time of the oldest post that was requested.
|
||||
The oldest post that was requested can be removed from the feed if the current user does not have access to it.
|
||||
/** The OldestProcessed property returns the date-time of the oldest post that was requested.
|
||||
The oldest post that was requested can be removed from the feed if the current user does not have access to it.
|
||||
Consequently, the feed does not always contain the post with the date specified in this property */
|
||||
get_oldestProcessed(): string;
|
||||
/** Contains the social threads in the feed. */
|
||||
@@ -6275,7 +6275,7 @@ declare module SP {
|
||||
get_owner(): SocialActor;
|
||||
/** Specifies the URI of the personal site portal. */
|
||||
get_personalSitePortalUri(): string;
|
||||
/** Creates a post in the current user's newsfeed, in the specified user's feed, or in the specified thread.
|
||||
/** Creates a post in the current user's newsfeed, in the specified user's feed, or in the specified thread.
|
||||
This method returns a new or a modified thread.
|
||||
@param targetId Optional, specifies the target of the post.
|
||||
If this parameter is null, the post is created as a root post in the current user's feed.
|
||||
@@ -6308,19 +6308,19 @@ declare module SP {
|
||||
getFullThread(threadId: string): SocialThread;
|
||||
/** Returns a feed containing mention reference threads from the current user's personal feed. */
|
||||
getMentions(clearUnreadMentions: boolean, options: SocialFeedOptions): SocialFeed;
|
||||
/** Returns the server's count of unread mentions of the current user.
|
||||
The server maintains a count of unread mentions in posts, but does not track which mentions have been read.
|
||||
When a new mention is stored on the server, it increments the unread mention for the user specified by the mention.
|
||||
/** Returns the server's count of unread mentions of the current user.
|
||||
The server maintains a count of unread mentions in posts, but does not track which mentions have been read.
|
||||
When a new mention is stored on the server, it increments the unread mention for the user specified by the mention.
|
||||
The unread mention count is cleared by the GetMentions method. */
|
||||
getUnreadMentionCount(): SP.IntResult;
|
||||
/** Specifies that the current user likes the specified post.
|
||||
Returns a digest thread containing the specified post.
|
||||
/** Specifies that the current user likes the specified post.
|
||||
Returns a digest thread containing the specified post.
|
||||
A digest thread contains the root post and a selection of reply posts */
|
||||
likePost(postId: string): SocialThread;
|
||||
/** Specifies that the current user does not like the specified post.
|
||||
/** Specifies that the current user does not like the specified post.
|
||||
Returns a digest thread containing the specified post. */
|
||||
unlikePost(postId: string): SocialThread;
|
||||
/** Prevents any user from adding a new reply post to the specified thread.
|
||||
/** Prevents any user from adding a new reply post to the specified thread.
|
||||
Once a thread is locked, no new reply posts can be added until after the thread has been unlocked with the unlockThread method.
|
||||
This method returns a digest of the locked thread */
|
||||
lockThread(threadId: string): SocialThread;
|
||||
@@ -6360,9 +6360,9 @@ declare module SP {
|
||||
get_followedSitesUri(): string;
|
||||
/** Adds the specified actor to the current user's list of followed items.
|
||||
Returns one of the following values, wrapped into the SP.IntResult object:
|
||||
0 = ok,
|
||||
1 = alreadyFollowing,
|
||||
2 = limitReached,
|
||||
0 = ok,
|
||||
1 = alreadyFollowing,
|
||||
2 = limitReached,
|
||||
3 = internalError */
|
||||
follow(actor: SocialActorInfo): SP.IntResult;
|
||||
stopFollowing(actor: SocialActorInfo): SP.BooleanResult;
|
||||
@@ -6495,10 +6495,10 @@ declare module SP {
|
||||
get_text(): string;
|
||||
/** Specifies the text that is substituted for the placeholder */
|
||||
set_text(value: string): string;
|
||||
/** Specifies the URI of the document, site, or link.
|
||||
/** Specifies the URI of the document, site, or link.
|
||||
This property is only available if the ItemType property specifies that the item is a Document, Link, or Site. */
|
||||
get_uri(): string;
|
||||
/** Specifies the URI of the document, site, or link.
|
||||
/** Specifies the URI of the document, site, or link.
|
||||
This property is only available if the ItemType property specifies that the item is a Document, Link, or Site. */
|
||||
set_uri(value: string): string;
|
||||
}
|
||||
@@ -6546,8 +6546,8 @@ declare module SP {
|
||||
}
|
||||
|
||||
}
|
||||
declare module SP {
|
||||
module Taxonomy {
|
||||
declare namespace SP {
|
||||
namespace Taxonomy {
|
||||
export enum StringMatchOption {
|
||||
startsWith,
|
||||
exactMatch
|
||||
@@ -6956,7 +6956,7 @@ declare module SP {
|
||||
}
|
||||
}
|
||||
|
||||
declare module SP {
|
||||
declare namespace SP {
|
||||
export module DocumentSet {
|
||||
export class DocumentSet extends ClientObject {
|
||||
static create(context: ClientContext, parentFolder: Folder, name: string, ctid: ContentTypeId): StringResult;
|
||||
@@ -7003,7 +7003,7 @@ declare module SP {
|
||||
}
|
||||
|
||||
|
||||
declare module SP {
|
||||
declare namespace SP {
|
||||
export module UI {
|
||||
export module ApplicationPages {
|
||||
export class SelectorSelectionEventArgs extends Sys.EventArgs {
|
||||
@@ -7137,7 +7137,7 @@ declare module SP {
|
||||
}
|
||||
}
|
||||
|
||||
declare module SP {
|
||||
declare namespace SP {
|
||||
export module UI {
|
||||
export class PopoutMenu implements Sys.IDisposable {
|
||||
constructor(launcherId: string, menuId: string, iconId: string, launcherOpenCssClass: string, textDirection: string, closeIconUrl: string, isClustered: boolean, closeIconOffsetLeft: number, closeIconOffsetTop: number, closeIconHeight: number, closeIconWidth: number);
|
||||
@@ -7437,7 +7437,7 @@ declare module SP {
|
||||
}
|
||||
}
|
||||
|
||||
declare module SPNotifications {
|
||||
declare namespace SPNotifications {
|
||||
|
||||
export enum ContainerID {
|
||||
Basic,
|
||||
@@ -7457,7 +7457,7 @@ declare class SPStatusNotificationData {
|
||||
}
|
||||
declare function RefreshCommandUI():void;
|
||||
|
||||
declare module SP {
|
||||
declare namespace SP {
|
||||
export module UI {
|
||||
export module Controls {
|
||||
|
||||
@@ -7544,7 +7544,7 @@ declare module SP {
|
||||
}
|
||||
}
|
||||
|
||||
declare module SP {
|
||||
declare namespace SP {
|
||||
|
||||
export module UserProfiles {
|
||||
/** Specifies types of changes made in the user profile store. */
|
||||
@@ -7707,7 +7707,7 @@ declare module SP {
|
||||
/** Specifies the person's title. */
|
||||
get_title(): string;
|
||||
/** Represents all user profile properties including custom.
|
||||
The privacy settings affect which properties can be retrieved.
|
||||
The privacy settings affect which properties can be retrieved.
|
||||
Multiple values are delimited by the vertical bar "|".
|
||||
Null values are specified as empty strings. */
|
||||
get_userProfileProperties(): { [name: string]: string; };
|
||||
@@ -7796,7 +7796,7 @@ declare module SP {
|
||||
/** Updates the properties for followed item with specified URL.
|
||||
@param url URL that identifies the followed item.
|
||||
The url parameter can identify an existing document or site using the url property of the original item.
|
||||
The url parameter can also identify a document with the following format: http://host/site?listId=<listGuid>&itemId=<itemId>
|
||||
The url parameter can also identify a document with the following format: http://host/site?listId=<listGuid>&itemId=<itemId>
|
||||
@param data Application-defined data stored with the followed item. */
|
||||
updateData(url: string, data: FollowedItemData): void;
|
||||
/** Returns the refreshed item that is being pointed to in the Social list.
|
||||
@@ -7866,11 +7866,11 @@ declare module SP {
|
||||
/** Specifies the site identification (GUID) in the Content database for this item if this item is a site, or for its parent site if this item is not a site. */
|
||||
set_siteId(value: string): string;
|
||||
/** Specifies the subtype of this item.
|
||||
If the ItemType is Site, the Subtype specifies the web template identification.
|
||||
If the ItemType is Site, the Subtype specifies the web template identification.
|
||||
If the ItemType is Document, the Subtype has a value of 1. */
|
||||
get_subtype(): number;
|
||||
/** Specifies the subtype of this item.
|
||||
If the ItemType is Site, the Subtype specifies the web template identification.
|
||||
If the ItemType is Site, the Subtype specifies the web template identification.
|
||||
If the ItemType is Document, the Subtype has a value of 1. */
|
||||
set_subtype(value: number): number;
|
||||
/** Specifies the item of this item */
|
||||
@@ -7973,7 +7973,7 @@ declare module SP {
|
||||
|
||||
}
|
||||
|
||||
declare module SP {
|
||||
declare namespace SP {
|
||||
|
||||
export module Utilities {
|
||||
export class Utility {
|
||||
@@ -8153,7 +8153,7 @@ declare module SP {
|
||||
}
|
||||
}
|
||||
|
||||
declare module SP {
|
||||
declare namespace SP {
|
||||
export module WebParts {
|
||||
export class LimitedWebPartManager extends SP.ClientObject {
|
||||
get_hasPersonalizedParts(): boolean;
|
||||
@@ -8213,7 +8213,7 @@ declare module SP {
|
||||
}
|
||||
}
|
||||
|
||||
declare module SP {
|
||||
declare namespace SP {
|
||||
export module Workflow {
|
||||
export class WorkflowAssociation extends SP.ClientObject {
|
||||
get_allowManual(): boolean;
|
||||
@@ -8290,7 +8290,7 @@ declare module SP {
|
||||
}
|
||||
}
|
||||
|
||||
declare module SP.WorkflowServices {
|
||||
declare namespace SP.WorkflowServices {
|
||||
|
||||
export enum WorkflowStatus {
|
||||
notStarted,
|
||||
@@ -8611,7 +8611,7 @@ declare module SP.WorkflowServices {
|
||||
|
||||
|
||||
|
||||
declare module SP {
|
||||
declare namespace SP {
|
||||
export module Publishing {
|
||||
export class PublishingWeb extends ClientObject {
|
||||
static getPublishingWeb(context: ClientContext, web: Web): PublishingWeb;
|
||||
@@ -9011,7 +9011,7 @@ declare module SP {
|
||||
}
|
||||
}
|
||||
|
||||
declare module SP {
|
||||
declare namespace SP {
|
||||
export module CompliancePolicy {
|
||||
export enum SPContainerType {
|
||||
site,//: 0,
|
||||
@@ -9614,7 +9614,7 @@ declare class SPClientPeoplePickerProcessedUser {
|
||||
static HandleResolveProcessedUserKey(e: Event): void;
|
||||
}
|
||||
|
||||
declare module Microsoft {
|
||||
declare namespace Microsoft {
|
||||
export module Office {
|
||||
export module Server {
|
||||
export module ReputationModel {
|
||||
@@ -9629,7 +9629,7 @@ declare module Microsoft {
|
||||
}
|
||||
|
||||
/** Available only in SharePoint Online*/
|
||||
declare module Define {
|
||||
declare namespace Define {
|
||||
export function loadScript(url: string, successCallback: () => void, errCallback: () => void): void;
|
||||
/** Loads script from _layouts/15/[req].js */
|
||||
export function require(req: string, callback: Function): void;
|
||||
@@ -9639,13 +9639,13 @@ declare module Define {
|
||||
}
|
||||
|
||||
/** Available only in SharePoint Online*/
|
||||
declare module Verify {
|
||||
declare namespace Verify {
|
||||
export function ArgumentType(arg: string, expected: any): void;
|
||||
}
|
||||
|
||||
|
||||
/** Available only in SharePoint Online*/
|
||||
declare module BrowserStorage {
|
||||
declare namespace BrowserStorage {
|
||||
export var local: CachedStorage;
|
||||
export var session: CachedStorage;
|
||||
|
||||
@@ -9660,12 +9660,12 @@ declare module BrowserStorage {
|
||||
}
|
||||
|
||||
/** Available only in SharePoint Online*/
|
||||
declare module BrowserDetection {
|
||||
declare namespace BrowserDetection {
|
||||
export var browseris: Browseris;
|
||||
}
|
||||
|
||||
/** Available only in SharePoint Online*/
|
||||
declare module CSSUtil {
|
||||
declare namespace CSSUtil {
|
||||
export function HasClass(elem: HTMLElement, className: string): boolean;
|
||||
export function AddClass(elem: HTMLElement, className: string): void;
|
||||
export function RemoveClass(elem: HTMLElement, className: string): void;
|
||||
@@ -9680,7 +9680,7 @@ declare module CSSUtil {
|
||||
}
|
||||
|
||||
/** Available only in SharePoint Online*/
|
||||
declare module DOM {
|
||||
declare namespace DOM {
|
||||
export var rightToLeft: boolean;
|
||||
export function cancelDefault(evt: Event): void;
|
||||
export function AbsLeft(el: HTMLElement): number;
|
||||
@@ -9695,7 +9695,7 @@ declare module DOM {
|
||||
}
|
||||
|
||||
/** Available only in SharePoint Online*/
|
||||
declare module Encoding {
|
||||
declare namespace Encoding {
|
||||
export function EncodeScriptQuote(str: string): string;
|
||||
export function HtmlEncode(str: string): string;
|
||||
export function HtmlDecode(str: string): string;
|
||||
@@ -9706,7 +9706,7 @@ declare module Encoding {
|
||||
}
|
||||
|
||||
/** Available only in SharePoint Online*/
|
||||
declare module IE8Support {
|
||||
declare namespace IE8Support {
|
||||
export function arrayIndexOf<T>(array: T[], item: T, startIdx?: number): number;
|
||||
export function attachDOMContentLoaded(handler: Function): void;
|
||||
export function getComputedStyle(domObj: HTMLElement, camelStyleName: string, dashStyleName: string): string;
|
||||
@@ -9714,19 +9714,19 @@ declare module IE8Support {
|
||||
}
|
||||
|
||||
/** Available only in SharePoint Online*/
|
||||
declare module StringUtil {
|
||||
declare namespace StringUtil {
|
||||
export function BuildParam(stPattern: string, ...params: any[]): string;
|
||||
export function ApplyStringTemplate(str: string, ...params: any[]): string;
|
||||
}
|
||||
|
||||
/** Available only in SharePoint Online*/
|
||||
declare module TypeUtil {
|
||||
declare namespace TypeUtil {
|
||||
export function IsArray(value: any): boolean;
|
||||
export function IsNullOrUndefined(value: any): boolean;
|
||||
}
|
||||
|
||||
/** Available only in SharePoint Online*/
|
||||
declare module Nav {
|
||||
declare namespace Nav {
|
||||
export var ajaxNavigate: AjaxNavigate;
|
||||
export function convertRegularURLtoMDSURL(webUrl: string, fullPath: string): string;
|
||||
export function isMDSUrl(url: string): boolean;
|
||||
@@ -9751,7 +9751,7 @@ declare module Nav {
|
||||
}
|
||||
|
||||
/** Available only in SharePoint Online*/
|
||||
declare module URI_Encoding {
|
||||
declare namespace URI_Encoding {
|
||||
export function encodeURIComponent(str: string, bAsUrl?: boolean, bForFilterQuery?: boolean, bForCallback?: boolean): string;
|
||||
export function escapeUrlForCallback(str: string): string;
|
||||
}
|
||||
@@ -9762,7 +9762,7 @@ interface IListItem {
|
||||
}
|
||||
|
||||
/** Available only in SharePoint Online*/
|
||||
declare module ListModule {
|
||||
declare namespace ListModule {
|
||||
export module Util {
|
||||
export function createViewEditUrl(renderCtx: SPClientTemplates.RenderContext, listItem: IListItem, useEditFormUrl?: boolean, appendSource?: boolean): string;
|
||||
export function createItemPropertiesTitle(renderCtx: SPClientTemplates.RenderContext, listItem: IListItem): string;
|
||||
@@ -9777,14 +9777,14 @@ declare module ListModule {
|
||||
}
|
||||
|
||||
/** Available only in SharePoint Online*/
|
||||
declare module SPThemeUtils {
|
||||
declare namespace SPThemeUtils {
|
||||
export function ApplyCurrentTheme(): void;
|
||||
export function WithCurrentTheme(resultCallback: Function): void;
|
||||
export function UseClientSideTheming(): boolean;
|
||||
export function Suspend(): void;
|
||||
}
|
||||
|
||||
declare module SP {
|
||||
declare namespace SP {
|
||||
export module JsGrid {
|
||||
|
||||
export enum TextDirection {
|
||||
@@ -10760,7 +10760,7 @@ declare module SP {
|
||||
/** set widget control names for a particular cell
|
||||
widgets are basically in-cell buttons with associated popup controls, e.g. date selector or address book button
|
||||
standard widget ids are defined in the SP.JsGrid.WidgetControl.Type enumeration
|
||||
it is also possible to create your own widgets
|
||||
it is also possible to create your own widgets
|
||||
usually this function is not used, and instead, widget control names are determined via PropertyType
|
||||
*/
|
||||
fnGetWidgetControlNames: { (record: IRecord, fieldKey: string): string[] };
|
||||
@@ -11181,7 +11181,7 @@ declare module SP {
|
||||
/** Returns a copy of this set */
|
||||
Clone(): SP.Utilities.Set;
|
||||
/** Returns a set that contains all the items that exist only in one of the sets (this and other), but not in both */
|
||||
SymmetricDifference(otherSet: SP.Utilities.Set): SP.Utilities.Set;
|
||||
SymmetricDifference(otherSet: SP.Utilities.Set): SP.Utilities.Set;
|
||||
/** Returns a set that contains all the items that are in this set but not in the otherSet */
|
||||
Difference(otherSet: SP.Utilities.Set): SP.Utilities.Set;
|
||||
/** Returns a new set, that contains items from this set and otherSet */
|
||||
@@ -11198,7 +11198,7 @@ declare module SP {
|
||||
|
||||
|
||||
|
||||
declare module SP {
|
||||
declare namespace SP {
|
||||
export class GanttControl {
|
||||
static WaitForGanttCreation(callack: (control: GanttControl) => void): void;
|
||||
static Instances: GanttControl[];
|
||||
|
||||
Reference in New Issue
Block a user