Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pnp/sp

Package Overview
Dependencies
Maintainers
6
Versions
1072
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.7 to 1.0.0-beta.10

docs/navigation-service.md

0

docs/alias-parameters.md

@@ -0,0 +0,0 @@ # @pnp/sp - Aliased Parameters

@@ -0,0 +0,0 @@ # @pnp/sp/appcatalog

@@ -0,0 +0,0 @@ # @pnp/sp/attachments

@@ -0,0 +0,0 @@ # @pnp/sp/features

@@ -0,0 +0,0 @@ # @pnp/sp/fields

@@ -0,0 +0,0 @@ # @pnp/sp/files

@@ -12,2 +12,3 @@ # @pnp/sp

* [List Items](items.md)
* [Navigation Service](navigation-service.md)
* [Permissions](permissions.md)

@@ -14,0 +15,0 @@ * [Related Items](related-items.md)

@@ -0,0 +0,0 @@ # @pnp/sp/items

@@ -0,0 +0,0 @@ # @pnp/sp - permissions

@@ -0,0 +0,0 @@ # @pnp/sp/relateditems

@@ -0,0 +0,0 @@ # @pnp/sp/search

@@ -0,0 +0,0 @@ # @pnp/sp/sharing

@@ -0,0 +0,0 @@ # @pnp/sp/utilities

@@ -0,0 +0,0 @@ # @pnp/sp/views

@@ -0,0 +0,0 @@ # @pnp/sp/webs

10

package.json
{
"name": "@pnp/sp",
"version": "1.0.0-beta.7",
"description": "pnp - provides SharePoint query functionality",
"version": "1.0.0-beta.10",
"description": "pnp - provides a fluent api for working with SharePoint REST",
"main": "./dist/sp.es5.umd.js",

@@ -11,5 +11,5 @@ "typings": "./index",

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

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

@@ -5,2 +5,3 @@ export declare class SPBatchParseException extends Error {

export declare class SPODataIdException extends Error {
readonly data: any;
constructor(data: any, msg?: string);

@@ -7,0 +8,0 @@ }

import { TypedHash } from "@pnp/common";
import { SharePointQueryable, SharePointQueryableInstance, SharePointQueryableCollection } from "./sharepointqueryable";
import { MenuNodeCollection } from "./types";
/**

@@ -88,1 +89,27 @@ * Result from adding a navigation node

}
export interface INavigationService {
getMenuState(menuNodeKey?: string, depth?: number, mapProviderName?: string, customProperties?: string): Promise<MenuNodeCollection>;
getMenuNodeKey(currentUrl: string, mapProviderName?: string): Promise<string>;
}
/**
* Represents the top level navigation service
*/
export declare class NavigationService extends SharePointQueryable implements INavigationService {
constructor(path?: string);
/**
* The MenuState service operation returns a Menu-State (dump) of a SiteMapProvider on a site.
*
* @param menuNodeKey MenuNode.Key of the start node within the SiteMapProvider If no key is provided the SiteMapProvider.RootNode will be the root of the menu state.
* @param depth Depth of the dump. If no value is provided a dump with the depth of 10 is returned
* @param mapProviderName The name identifying the SiteMapProvider to be used
* @param customProperties comma seperated list of custom properties to be returned.
*/
getMenuState(menuNodeKey?: string, depth?: number, mapProviderName?: string, customProperties?: string): Promise<MenuNodeCollection>;
/**
* Tries to get a SiteMapNode.Key for a given URL within a site collection.
*
* @param currentUrl A url representing the SiteMapNode
* @param mapProviderName The name identifying the SiteMapProvider to be used
*/
getMenuNodeKey(currentUrl: string, mapProviderName?: string): Promise<string>;
}

@@ -7,2 +7,3 @@ import { SearchQuery, SearchResults, SearchQueryBuilder } from "./search";

import { UserProfileQuery } from "./userprofiles";
import { INavigationService } from "./navigation";
import { SPBatch } from "./batch";

@@ -66,2 +67,6 @@ import { UtilityMethods } from "./utilities";

/**
* Access to the site collection level navigation service
*/
readonly navigation: INavigationService;
/**
* Creates a new batch object for use with the SharePointQueryable.addToBatch method

@@ -68,0 +73,0 @@ *

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

export { Item, Items, ItemVersion, ItemVersions, ItemAddResult, ItemUpdateResult, ItemUpdateResultData, PagedItemCollection } from "./items";
export { NavigationNodeAddResult, NavigationNodeUpdateResult, NavigationNodes, NavigationNode } from "./navigation";
export { NavigationNodeAddResult, NavigationNodeUpdateResult, NavigationNodes, NavigationNode, NavigationService, INavigationService } from "./navigation";
export { List, Lists, ListAddResult, ListUpdateResult, ListEnsureResult } from "./lists";

@@ -17,0 +17,0 @@ export { RelatedItem, RelatedItemManger } from "./relateditems";

@@ -1254,1 +1254,22 @@ import { TypedHash } from "@pnp/common";

}
export interface MenuNode {
CustomProperties: any[];
FriendlyUrlSegment: string;
IsDeleted: boolean;
IsHidden: boolean;
Key: string;
Nodes: MenuNode[];
NodeType: number;
SimpleUrl: string;
Title: string;
}
export interface MenuNodeCollection {
FriendlyUrlPrefix: string;
Nodes: MenuNode[];
SimpleUrl: string;
SPSitePrefix: string;
SPWebPrefix: string;
StartingNodeKey: string;
StartingNodeTitle: string;
Version: Date;
}

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

import { AppCatalog } from "./appcatalog";
import { RegionalSettings } from "./regionalsettings";
/**

@@ -87,2 +88,6 @@ * Describes a collection of webs

/**
* Allows access to the web's all properties collection
*/
readonly allProperties: SharePointQueryableCollection;
/**
* Gets a collection of WebInfos for this web's subwebs

@@ -138,2 +143,7 @@ *

/**
* Gets regional settings
*
*/
readonly regionalSettings: RegionalSettings;
/**
* Gets the current user

@@ -140,0 +150,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

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