mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-11 11:50:54 +08:00
Merge remote-tracking branch 'upstream/master'
Conflicts: sharepoint/SharePoint.d.ts
This commit is contained in:
Vendored
+31
-31
@@ -1210,7 +1210,7 @@ declare module SPClientTemplates {
|
||||
|
||||
export interface TemplateOverrides {
|
||||
View?: (renderContext: any) => string; // TODO: determine appropriate context type and purpose of this template
|
||||
Body?: (renderContext: any) => string; // TODO: determine appropriate context type and purpose of this template
|
||||
Body?: (renderContext: any) => string; // TODO: determine appropriate context type and purpose of this template
|
||||
/** Defines templates for rendering groups (aggregations). */
|
||||
Group?: GroupCallback;
|
||||
/** Defines templates for list items rendering. */
|
||||
@@ -1234,10 +1234,10 @@ declare module SPClientTemplates {
|
||||
/** �allbacks called after rendered html inserted into DOM. Can be function (ctx: RenderContext) => void or array of functions.*/
|
||||
OnPostRender?: any;
|
||||
|
||||
/** 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.
|
||||
@@ -2400,12 +2400,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. */
|
||||
@@ -5817,7 +5817,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. */
|
||||
@@ -5848,7 +5848,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.
|
||||
@@ -5863,10 +5863,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. */
|
||||
@@ -5977,7 +5977,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 {
|
||||
@@ -6014,8 +6014,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. */
|
||||
@@ -6032,7 +6032,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.
|
||||
@@ -6065,19 +6065,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;
|
||||
@@ -6117,9 +6117,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;
|
||||
@@ -6252,10 +6252,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;
|
||||
}
|
||||
@@ -7223,7 +7223,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; };
|
||||
@@ -7312,7 +7312,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.
|
||||
@@ -7382,11 +7382,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 */
|
||||
|
||||
Reference in New Issue
Block a user