Socket
Socket
Sign inDemoInstall

@pnp/sp

Package Overview
Dependencies
Maintainers
6
Versions
1035
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnp/sp - npm Package Compare versions

Comparing version 1.0.0-beta.5 to 1.0.0-beta.6

src/appcatalog.d.ts

8

package.json
{
"name": "@pnp/sp",
"version": "1.0.0-beta.5",
"version": "1.0.0-beta.6",
"description": "pnp - provides SharePoint query functionality",

@@ -11,5 +11,5 @@ "main": "./dist/sp.es5.umd.js",

"peerDependencies": {
"@pnp/common": "1.0.0-beta.5",
"@pnp/logging": "1.0.0-beta.5",
"@pnp/odata": "1.0.0-beta.5"
"@pnp/common": "1.0.0-beta.6",
"@pnp/logging": "1.0.0-beta.6",
"@pnp/odata": "1.0.0-beta.6"
},

@@ -16,0 +16,0 @@ "author": {

@@ -0,0 +0,0 @@ ![SharePoint Patterns and Practices](https://devofficecdn.azureedge.net/media/Default/PnP/sppnp.png)

@@ -31,3 +31,3 @@ import { SharePointQueryable, SharePointQueryableInstance, SharePointQueryableCollection } from "./sharepointqueryable";

/**
* Adds mjultiple new attachment to the collection. Not supported for batching.
* Adds multiple new attachment to the collection. Not supported for batching.
*

@@ -37,2 +37,8 @@ * @files name The collection of files to add

addMultiple(files: AttachmentFileInfo[]): Promise<void>;
/**
* Delete multiple attachments from the collection. Not supported for batching.
*
* @files name The collection of files to delete
*/
deleteMultiple(...files: string[]): Promise<void>;
}

@@ -74,2 +80,3 @@ /**

delete(eTag?: string): Promise<void>;
private getParsed<T>(parser);
}

@@ -76,0 +83,0 @@ export interface AttachmentFileAddResult {

@@ -1,3 +0,2 @@

import { LibraryConfiguration, TypedHash } from "@pnp/common";
import { HttpClientImpl } from "../net/httpclient";
import { LibraryConfiguration, TypedHash, HttpClientImpl } from "@pnp/common";
export interface SPConfigurationPart {

@@ -4,0 +3,0 @@ sp?: {

@@ -264,2 +264,8 @@ import { SharePointQueryable, SharePointQueryableCollection, SharePointQueryableInstance } from "./sharepointqueryable";

/**
* Recycles the specified version of the file.
*
* @param versionId The ID of the file version to delete.
*/
recycleByID(versionId: number): Promise<void>;
/**
* Deletes the file version object with the specified version label.

@@ -271,2 +277,8 @@ *

/**
* Recycles the file version object with the specified version label.
*
* @param label The version label of the file version to delete, for example: 1.2
*/
recycleByLabel(label: string): Promise<void>;
/**
* Creates a new file version from the file specified by the version label.

@@ -273,0 +285,0 @@ *

@@ -27,2 +27,8 @@ import { SharePointQueryable, SharePointQueryableCollection, SharePointQueryableInstance } from "./sharepointqueryable";

/**
* Gets BCS Item by string id
*
* @param stringId The string id of the BCS item to retrieve
*/
getItemByStringId(stringId: string): Item;
/**
* Skips the specified number of items (https://msdn.microsoft.com/en-us/library/office/fp142385.aspx#sectionSection6)

@@ -103,2 +109,6 @@ *

/**
* Gets the collection of versions associated with this item
*/
readonly versions: ItemVersions;
/**
* Updates this list intance with the supplied properties

@@ -154,2 +164,32 @@ *

/**
* Describes a collection of Version objects
*
*/
export declare class ItemVersions extends SharePointQueryableCollection {
/**
* Creates a new instance of the File class
*
* @param baseUrl The url or SharePointQueryable which forms the parent of this fields collection
*/
constructor(baseUrl: string | SharePointQueryable, path?: string);
/**
* Gets a version by id
*
* @param versionId The id of the version to retrieve
*/
getById(versionId: number): ItemVersion;
}
/**
* Describes a single Version instance
*
*/
export declare class ItemVersion extends SharePointQueryableInstance {
/**
* Delete a specific version of a file.
*
* @param eTag Value used in the IF-Match header, by default "*"
*/
delete(): Promise<void>;
}
/**
* Provides paging functionality for list items

@@ -156,0 +196,0 @@ */

@@ -1,2 +0,2 @@

import { HttpClient } from "./httpclient";
import { SPHttpClient } from "./sphttpclient";
import { Dictionary } from "@pnp/common";

@@ -10,5 +10,5 @@ export declare class CachedDigest {

private _digests;
constructor(_httpClient: HttpClient, _digests?: Dictionary<CachedDigest>);
constructor(_httpClient: SPHttpClient, _digests?: Dictionary<CachedDigest>);
getDigest(webUrl: string): Promise<string>;
clear(): void;
}

@@ -5,2 +5,3 @@ export { spExtractODataId, spODataEntity, spODataEntityArray } from "./odata";

export { FileFolderShared, SharePointQueryableShareable, SharePointQueryableShareableFile, SharePointQueryableShareableFolder, SharePointQueryableShareableItem, SharePointQueryableShareableWeb } from "./sharepointqueryableshareable";
export { AppCatalog, AppAddResult, App } from "./appcatalog";
export { AttachmentFileAddResult, AttachmentFileInfo } from "./attachmentfiles";

@@ -12,4 +13,4 @@ export { SPConfiguration, SPConfigurationPart } from "./config/splibconfig";

export { FolderAddResult, Folder, Folders } from "./folders";
export { HttpClient, HttpClientImpl } from "./net/httpclient";
export { Item, Items, ItemAddResult, ItemUpdateResult, ItemUpdateResultData, PagedItemCollection } from "./items";
export { SPHttpClient } from "./net/sphttpclient";
export { Item, Items, ItemVersion, ItemVersions, ItemAddResult, ItemUpdateResult, ItemUpdateResultData, PagedItemCollection } from "./items";
export { NavigationNodeAddResult, NavigationNodeUpdateResult, NavigationNodes, NavigationNode } from "./navigation";

@@ -16,0 +17,0 @@ export { List, Lists, ListAddResult, ListUpdateResult, ListEnsureResult } from "./lists";

@@ -46,9 +46,2 @@ import { SharePointQueryable } from "./sharepointqueryable";

createWikiPage(info: WikiPageCreationInformation): Promise<CreateWikiPageResult>;
/**
* Clones this SharePointQueryable into a new SharePointQueryable instance of T
* @param factory Constructor used to create the new instance
* @param additionalPath Any additional path to include in the clone
* @param includeBatch If true this instance's batch will be added to the cloned instance
*/
protected create(methodName: string, includeBatch: boolean): UtilityMethod;
}

@@ -55,0 +48,0 @@ export interface CreateWikiPageResult {

@@ -18,2 +18,3 @@ import { TypedHash } from "@pnp/common";

import { RelatedItemManger } from "./relateditems";
import { AppCatalog } from "./appcatalog";
/**

@@ -131,2 +132,7 @@ * Describes a collection of webs

/**
* Gets site user info list
*
*/
readonly siteUserInfoList: List;
/**
* Gets the current user

@@ -269,2 +275,14 @@ */

mapToIcon(filename: string, size?: number, progId?: string): Promise<string>;
/**
* Returns the tenant property corresponding to the specified key in the app catalog site
*
* @param key
*/
getStorageEntity(key: string): Promise<string>;
/**
* Gets the app catalog for this web
*
* @param url Optional url or web containing the app catalog (default: current web)
*/
getAppCatalog(url?: string | Web): AppCatalog;
}

@@ -271,0 +289,0 @@ /**

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

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc