Comparing version 1.0.5-0 to 1.0.5-1
@@ -115,1 +115,2 @@ # @pnp/sp | ||
* [Webs](webs.md) | ||
* [Comments and Likes](comments-likes.md) |
{ | ||
"name": "@pnp/sp", | ||
"version": "1.0.5-0", | ||
"version": "1.0.5-1", | ||
"description": "pnp - provides a fluent api for working with SharePoint REST", | ||
@@ -11,5 +11,5 @@ "main": "./dist/sp.es5.umd.js", | ||
"peerDependencies": { | ||
"@pnp/common": "1.0.5-0", | ||
"@pnp/logging": "1.0.5-0", | ||
"@pnp/odata": "1.0.5-0" | ||
"@pnp/common": "1.0.5-1", | ||
"@pnp/logging": "1.0.5-1", | ||
"@pnp/odata": "1.0.5-1" | ||
}, | ||
@@ -16,0 +16,0 @@ "author": { |
@@ -7,4 +7,5 @@ import { SharePointQueryable, SharePointQueryableCollection, SharePointQueryableInstance } from "./sharepointqueryable"; | ||
import { TypedHash } from "@pnp/common"; | ||
import { ListItemFormUpdateValue } from "./types"; | ||
import { ListItemFormUpdateValue, LikeData } from "./types"; | ||
import { AttachmentFiles } from "./attachmentfiles"; | ||
import { Comments } from "./comments"; | ||
/** | ||
@@ -81,2 +82,6 @@ * Describes a collection of Item objects | ||
/** | ||
* Gets the collection of comments associated with this list item | ||
*/ | ||
readonly comments: Comments; | ||
/** | ||
* Gets the effective base permissions for the item | ||
@@ -129,2 +134,14 @@ * | ||
/** | ||
* Gets the collection of people who have liked this item | ||
*/ | ||
getLikedBy(): Promise<LikeData[]>; | ||
/** | ||
* Likes this item as the current user | ||
*/ | ||
like(): Promise<void>; | ||
/** | ||
* Unlikes this item as the current user | ||
*/ | ||
unlike(): Promise<void>; | ||
/** | ||
* Delete this item | ||
@@ -131,0 +148,0 @@ * |
@@ -5,3 +5,3 @@ import { SharePointQueryableConstructor } from "./sharepointqueryable"; | ||
export declare function spGetEntityUrl(entity: any): string; | ||
export declare function spODataEntity<T>(factory: SharePointQueryableConstructor<T>): ODataParser<T>; | ||
export declare function spODataEntityArray<T>(factory: SharePointQueryableConstructor<T>): ODataParser<T[]>; | ||
export declare function spODataEntity<T, DataType = any>(factory: SharePointQueryableConstructor<T>): ODataParser<T & DataType>; | ||
export declare function spODataEntityArray<T, DataType = any>(factory: SharePointQueryableConstructor<T>): ODataParser<(T & DataType)[]>; |
@@ -8,2 +8,3 @@ export { spExtractODataId, spODataEntity, spODataEntityArray } from "./odata"; | ||
export * from "./clientsidepages"; | ||
export * from "./comments"; | ||
export { ContentType, ContentTypes, ContentTypeAddResult, FieldLink, FieldLinks } from "./contenttypes"; | ||
@@ -10,0 +11,0 @@ export { SPConfiguration, SPConfigurationPart } from "./config/splibconfig"; |
@@ -1488,1 +1488,8 @@ import { TypedHash } from "@pnp/common"; | ||
} | ||
export interface LikeData { | ||
name: string; | ||
loginName: string; | ||
id: number; | ||
email: string; | ||
creationDate: string; | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6517140
79
45996