gd-sprest
Advanced tools
Comparing version 0.4.3 to 0.4.4
{ | ||
"name": "gd-sprest", | ||
"version": "0.4.3", | ||
"version": "0.4.4", | ||
"description": "An easy way to develop against the SharePoint REST API.", | ||
@@ -5,0 +5,0 @@ "author": "Gunjan Datta <me@dattabase.com> (https://github.com/gunjandatta/sprest)", |
@@ -19,4 +19,4 @@ /// <reference path="../base.d.ts" /> | ||
* Adds the attachment that is represented by the specified file name and byte array to the list item. | ||
@param name - The name of the file to add. | ||
@param contents - The file contents as an array buffer. | ||
* @param name - The name of the file to add. | ||
* @param contents - The file contents as an array buffer. | ||
**/ | ||
@@ -23,0 +23,0 @@ add: { |
@@ -36,3 +36,3 @@ /// <reference path="../base.d.ts" /> | ||
addFieldLink: { | ||
name: "fieldlinks", | ||
name: "fieldlink", | ||
metadataType: "SP.FieldLink", | ||
@@ -39,0 +39,0 @@ requestType: RequestType.PostWithArgsInBody |
@@ -24,2 +24,3 @@ /// <reference path="../base.d.ts" /> | ||
// Gets a field link by it's id. | ||
getById: { | ||
@@ -26,0 +27,0 @@ argNames: ["id"], |
@@ -220,2 +220,7 @@ /// <reference path="../base.d.ts" /> | ||
// Moves the file to the Recycle Bin and returns the identifier of the new Recycle Bin item. | ||
recycle: { | ||
requestType: RequestType.Get | ||
}, | ||
// Saves the file as a stream. | ||
@@ -235,7 +240,2 @@ saveBinaryStream: { | ||
// Moves the file to the Recycle Bin and returns the identifier of the new Recycle Bin item. | ||
recycle: { | ||
requestType: RequestType.Get | ||
}, | ||
// Reverts an existing checkout for the file. | ||
@@ -242,0 +242,0 @@ undoCheckOut: { |
/// <reference path="../base.d.ts" /> | ||
module $REST { | ||
/*********************************************************************************************************************************/ | ||
// Attachment Files | ||
// File Version | ||
// The SPFileVersion object. | ||
@@ -6,0 +6,0 @@ /*********************************************************************************************************************************/ |
@@ -17,4 +17,4 @@ /// <reference path="../base.d.ts" /> | ||
Library.group = { | ||
// Deletes the object | ||
containsUser: { | ||
// Gets the user by the specified user id. | ||
getUserById: { | ||
argNames: ["userId"], | ||
@@ -21,0 +21,0 @@ name: "users?$filter=Id eq [[userId]]", |
@@ -57,3 +57,3 @@ /// <reference path="../base.d.ts" /> | ||
add: { | ||
metadataType: "SP.ListItem", | ||
metadataType: function(obj) { return obj.Parent && obj.Parent["ListItemEntityTypeFullName"] ? obj.Parent["ListItemEntityTypeFullName"] : "SP.ListItem" }, | ||
requestType: RequestType.PostWithArgsInBody | ||
@@ -60,0 +60,0 @@ }, |
@@ -17,3 +17,3 @@ /// <reference path="../base.d.ts" /> | ||
Library.limitedwebpartmanager = { | ||
// Gets an item by its id. | ||
// Gets a webpart by its id. | ||
get_WebParts: { | ||
@@ -20,0 +20,0 @@ argNames: ["id"], |
@@ -206,3 +206,3 @@ /// <reference path="../base.d.ts" /> | ||
// Adds an item to the list item collection. | ||
// Adds a view to the list view collection. | ||
addView: { | ||
@@ -225,8 +225,2 @@ metadataType: "SP.View", | ||
// Returns the list item with the specified list item identifier. | ||
getById: { | ||
argNames: ["id"], | ||
requestType: RequestType.GetWithArgsValueOnly | ||
}, | ||
// Returns the collection of changes from the change log that have occurred within the list, based on the specified query. | ||
@@ -299,3 +293,3 @@ getChanges: { | ||
// Get the file at the specified URL. | ||
// Get the folder at the specified URL. | ||
getSubFolder: { | ||
@@ -302,0 +296,0 @@ argNames: ["serverRelativeUrl"], |
@@ -45,2 +45,3 @@ /// <reference path="../base.d.ts" /> | ||
Library.lists = { | ||
// Adds a list to the list collection. | ||
add: { | ||
@@ -47,0 +48,0 @@ metadataType: "SP.List", |
@@ -47,3 +47,3 @@ /// <reference path="../base.d.ts" /> | ||
addRoleAssignment: { | ||
argNames: ["principalid", "roledefid"], | ||
argNames: ["principalId", "roleDefId"], | ||
requestType: RequestType.PostWithArgs | ||
@@ -54,3 +54,3 @@ }, | ||
getByPrincipalId: { | ||
argNames: ["id"], | ||
argNames: ["principalId"], | ||
requestType: RequestType.GetWithArgsValueOnly | ||
@@ -61,3 +61,3 @@ }, | ||
removeRoleAssignment: { | ||
argNames: ["principalid", "roledefid"], | ||
argNames: ["principalId", "roleDefId"], | ||
requestType: RequestType.PostWithArgs | ||
@@ -64,0 +64,0 @@ } |
@@ -47,3 +47,3 @@ /// <reference path="../base.d.ts" /> | ||
getById: { | ||
argNames: ["id"], | ||
argNames: ["roleDefId"], | ||
requestType: RequestType.GetWithArgsValueOnly | ||
@@ -50,0 +50,0 @@ }, |
@@ -65,3 +65,3 @@ /// <reference path="../base.d.ts" /> | ||
removeByLoginName: { | ||
argNames: ["loginName"], | ||
argNames: ["name"], | ||
requestType: RequestType.PostWithArgsValueOnly | ||
@@ -68,0 +68,0 @@ }, |
@@ -271,2 +271,3 @@ /// <reference path="../base.d.ts" /> | ||
addExistingContentType: { | ||
argNames: ["contentTypeId"], | ||
name: "contenttypes/addAvailableContentType", | ||
@@ -329,2 +330,3 @@ requestType: RequestType.PostWithArgsInBody | ||
addSubFolder: { | ||
argNames: ["url"], | ||
name: "rootfolder/folders/add", | ||
@@ -342,2 +344,3 @@ requestType: RequestType.PostWithArgsValueOnly | ||
applyWebTemplate: { | ||
argName: ["name"], | ||
requestType: RequestType.PostWithArgsInQS | ||
@@ -359,2 +362,3 @@ }, | ||
doesPushNotificationSubscriberExist: { | ||
argNames: ["id"], | ||
requestType: RequestType.GetWithArgsValueOnly | ||
@@ -642,3 +646,2 @@ }, | ||
resetRoleInheritance: { | ||
argNames: [], | ||
requestType: RequestType.Post | ||
@@ -645,0 +648,0 @@ }, |
@@ -16,4 +16,2 @@ // TypeScript configuration file | ||
"src/lib/attachmentFiles.ts", | ||
"src/lib/contentTypes.ts", | ||
"src/lib/attachmentFiles.ts", | ||
"src/lib/contentType.ts", | ||
@@ -27,2 +25,3 @@ "src/lib/contentTypes.ts", | ||
"src/lib/fileVersion.ts", | ||
"src/lib/fileVersions.ts", | ||
"src/lib/folder.ts", | ||
@@ -48,2 +47,3 @@ "src/lib/folders.ts", | ||
"src/lib/socialRestThread.ts", | ||
"src/lib/user.ts", | ||
"src/lib/userCustomAction.ts", | ||
@@ -50,0 +50,0 @@ "src/lib/userCustomActions.ts", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
966926
71
15396