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

gd-sprest

Package Overview
Dependencies
Maintainers
1
Versions
841
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gd-sprest - npm Package Compare versions

Comparing version 0.6.1 to 0.6.2

src/types/requestType.ts

2

gulpfile.js

@@ -12,3 +12,3 @@ var gulp = require("gulp");

// Bundle and minify the js files
return gulp.src(["js/*.js", "js/lib/*.js"])
return gulp.src(["js/*.js", "js/types/*.js", "js/utils/*.js", "js/lib/*.js"])
.pipe(concat("sprest.js"))

@@ -15,0 +15,0 @@ .pipe(gulp.dest("dist"))

{
"name": "gd-sprest",
"version": "0.6.1",
"version": "0.6.2",
"description": "An easy way to develop against the SharePoint REST API.",
"author": "Gunjan Datta <me@dattabase.com> (https://github.com/gunjandatta/sprest)",
"license": "https://github.com/gunjandatta/sprest/blob/master/LICENSE",
"types": "tsd/sprest.d.ts",
"keywords": [

@@ -8,0 +9,0 @@ "sharepoint", "rest", "api"

@@ -9,5 +9,8 @@ // Type definitions for base.js

/***********************************************************************/
interface IBaseType {
interface IBaseSettings {
/** True to execute the request to the server, false to construct the object only. */
executeRequestFl?:boolean;
settings?:ITargetInfoType;
/** The target information settings. */
settings?:Utils.ITargetInfoSettings;
}

@@ -19,16 +22,31 @@

interface IBase {
/***********************************************************************/
// Public Properties
/***********************************************************************/
asyncFl:boolean;
parent:any;
/******************************************************************
* Properties
*****************************************************************/
/** True to execute the request asynchronously, synchronously otherwise. */
asyncFl: boolean;
/** True, if the object exists, false otherwise. */
existsFl?: boolean;
/** The parent object, which created this object. */
parent: any;
/** The response of the request. */
response:any;
requestType:RequestType;
/***********************************************************************/
// Public Methods
/***********************************************************************/
done(callback:() => void);
execute(settings:ITargetInfoType):any;
/** The request type. */
requestType:Types.RequestType;
/******************************************************************
* Methods
*****************************************************************/
/** Method executed after the asynchronous request completes. */
done(callback:(...args) => void);
/** Method to execute the request. */
execute();
}
}

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

/// <reference path="base.d.ts" />
module $REST {

@@ -18,3 +19,3 @@ /*********************************************************************************************************************************/

/*********************************************************************************************************************************/
constructor(params:IBaseType) {
constructor(params:IBaseSettings) {
// Default the properties

@@ -40,3 +41,3 @@ this.targetInfo = params.settings;

// The request type
public requestType:RequestType;
public requestType:Types.RequestType;

@@ -68,6 +69,6 @@ // Method to return the xml http request's response

// Create a promise
this.promise = new Promise(this.targetInfo.callback);
this.promise = new Utils.Promise(this.targetInfo.callback);
// Create the request
this.request = new Request(new TargetInfo(this.targetInfo), () => {
this.request = new Utils.Request(new Utils.TargetInfo(this.targetInfo), () => {
// Update the data object

@@ -79,3 +80,3 @@ this.updateDataObject();

// Create the request
this.request = new Request(new TargetInfo(this.targetInfo));
this.request = new Utils.Request(new Utils.TargetInfo(this.targetInfo));

@@ -88,3 +89,3 @@ // Update the data object

// Method to get the input parameters for an asynchronous request
public static getAsyncInputParmeters(...args):IBaseType {
public static getAsyncInputParmeters(...args):IBaseSettings {
// Get the input parameters

@@ -101,5 +102,5 @@ let params = Base.getInputParmeters.apply(null, args);

// Method to get the input parameters
public static getInputParmeters(...args):IBaseType {
public static getInputParmeters(...args):IBaseSettings {
let settings = null;
let params:IBaseType = {
let params:IBaseSettings = {
executeRequestFl: null,

@@ -164,9 +165,9 @@ settings: null

// The promise
private promise:Promise;
private promise:Utils.Promise;
// The request
protected request:Request;
protected request:Utils.Request;
// The base settings
protected targetInfo:ITargetInfoType;
protected targetInfo:Utils.ITargetInfoSettings;

@@ -265,4 +266,4 @@ /*********************************************************************************************************************************/

// Method to execute a method
protected executeMethod(methodName:string, methodConfig:IMethodInfoType, args?:any) {
let targetInfo:ITargetInfoType = null;
protected executeMethod(methodName:string, methodConfig:Utils.IMethodInfoSettings, args?:any) {
let targetInfo:Utils.ITargetInfoSettings = null;

@@ -295,6 +296,6 @@ // See if the metadata is defined for this object

// Get the method information
var methodInfo = new MethodInfo(methodName, methodConfig, args);
var methodInfo = new Utils.MethodInfo(methodName, methodConfig, args);
// Update the target information
targetInfo.bufferFl = methodConfig.requestType == RequestType.GetBuffer;
targetInfo.bufferFl = methodConfig.requestType == Types.RequestType.GetBuffer;
targetInfo.data = methodInfo.body;

@@ -450,3 +451,3 @@ targetInfo.method = methodInfo.requestMethod;

// Return if we are expecting a buffer
if(this.requestType == RequestType.GetBuffer) {
if(this.requestType == Types.RequestType.GetBuffer) {
// Set the exists flag

@@ -505,3 +506,3 @@ this["existsFl"] = this.request.response != null;

// Method to update the metadata uri
private updateMetadataUri(metadata:any, targetInfo:ITargetInfoType) {
private updateMetadataUri(metadata:any, targetInfo:Utils.ITargetInfoSettings) {
// See if this is a field

@@ -508,0 +509,0 @@ if(/^SP.Field/.test(metadata.type) || /^SP\..*Field$/.test(metadata.type)) {

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

/// <reference path="../base.d.ts" />
module $REST {

@@ -24,3 +23,3 @@ /*********************************************************************************************************************************/

argNames: ["name"],
requestType: RequestType.PostWithArgs
requestType: Types.RequestType.PostWithArgs
},

@@ -31,3 +30,3 @@

argNames: ["oData"],
requestType: RequestType.OData
requestType: Types.RequestType.OData
}

@@ -34,0 +33,0 @@ };

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

/// <reference path="../base.d.ts" />
module $REST {

@@ -54,3 +53,3 @@ /*********************************************************************************************************************************/

metadataType: "SP.FieldLink",
requestType: RequestType.PostWithArgsInBody
requestType: Types.RequestType.PostWithArgsInBody
},

@@ -60,3 +59,3 @@

delete: {
requestType: RequestType.Delete
requestType: Types.RequestType.Delete
},

@@ -68,3 +67,3 @@

name: "fields?$filter=InternalName eq '[[name]]'",
requestType: RequestType.GetReplace
requestType: Types.RequestType.GetReplace
},

@@ -76,3 +75,3 @@

name: "fields?$filter=StaticName eq '[[name]]'",
requestType: RequestType.GetReplace
requestType: Types.RequestType.GetReplace
},

@@ -84,3 +83,3 @@

name: "fields?$filter=Title eq '[[title]]'",
requestType: RequestType.GetReplace
requestType: Types.RequestType.GetReplace
},

@@ -92,3 +91,3 @@

name: "fields?$filter=Name eq '[[name]]'",
requestType: RequestType.GetReplace
requestType: Types.RequestType.GetReplace
},

@@ -101,5 +100,5 @@

requestMethod: "MERGE",
requestType: RequestType.PostWithArgsInBody
requestType: Types.RequestType.PostWithArgsInBody
}
};
}

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

/// <reference path="../base.d.ts" />
module $REST {

@@ -49,3 +48,3 @@ /*********************************************************************************************************************************/

metadataType: "SP.ContentType",
requestType: RequestType.PostWithArgsInBody
requestType: Types.RequestType.PostWithArgsInBody
},

@@ -56,3 +55,3 @@

argNames: ["contentTypeId"],
requestType: RequestType.PostWithArgsInBody
requestType: Types.RequestType.PostWithArgsInBody
},

@@ -63,3 +62,3 @@

argNames: ["id"],
requestType: RequestType.GetWithArgsValueOnly
requestType: Types.RequestType.GetWithArgsValueOnly
},

@@ -71,3 +70,3 @@

name: "?$filter=Name eq '[[name]]'",
requestType: RequestType.GetReplace
requestType: Types.RequestType.GetReplace
},

@@ -78,5 +77,5 @@

argNames: ["oData"],
requestType: RequestType.OData
requestType: Types.RequestType.OData
}
};
}

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

/// <reference path="../base.d.ts" />
module $REST {

@@ -44,3 +43,3 @@ /*********************************************************************************************************************************/

metadataType: "SP.Utilities.EmailProperties",
requestType: RequestType.PostWithArgsInBody
requestType: Types.RequestType.PostWithArgsInBody
}, [properties]);

@@ -47,0 +46,0 @@ }

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

/// <reference path="../base.d.ts" />
module $REST {

@@ -47,3 +46,3 @@ /*********************************************************************************************************************************/

delete: {
requestType: RequestType.Delete
requestType: Types.RequestType.Delete
},

@@ -56,5 +55,5 @@

requestMethod: "MERGE",
requestType: RequestType.PostWithArgsInBody
requestType: Types.RequestType.PostWithArgsInBody
}
};
}

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

/// <reference path="../base.d.ts" />
module $REST {

@@ -49,3 +48,3 @@ /*********************************************************************************************************************************/

name: "",
requestType: RequestType.PostWithArgsInBody
requestType: Types.RequestType.PostWithArgsInBody
},

@@ -56,3 +55,3 @@

argNames: ["id"],
requestType: RequestType.GetWithArgsValueOnly
requestType: Types.RequestType.GetWithArgsValueOnly
},

@@ -63,5 +62,5 @@

argNames: ["oData"],
requestType: RequestType.OData
requestType: Types.RequestType.OData
}
};
}

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

/// <reference path="../base.d.ts" />
module $REST {

@@ -47,3 +46,3 @@ /*********************************************************************************************************************************/

delete: {
requestType: RequestType.Delete
requestType: Types.RequestType.Delete
},

@@ -54,3 +53,3 @@

argNames: ["showInForm"],
requestType: RequestType.PostWithArgsValueOnly
requestType: Types.RequestType.PostWithArgsValueOnly
},

@@ -61,3 +60,3 @@

argNames: ["showInForm"],
requestType: RequestType.PostWithArgsValueOnly
requestType: Types.RequestType.PostWithArgsValueOnly
},

@@ -68,3 +67,3 @@

argNames: ["showInForm"],
requestType: RequestType.PostWithArgsValueOnly
requestType: Types.RequestType.PostWithArgsValueOnly
},

@@ -77,5 +76,5 @@

requestMethod: "MERGE",
requestType: RequestType.PostWithArgsInBody
requestType: Types.RequestType.PostWithArgsInBody
}
};
}

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

/// <reference path="../base.d.ts" />
module $REST {

@@ -21,3 +20,3 @@ /*********************************************************************************************************************************/

metadataType: "SP.FieldLink",
requestType: RequestType.PostWithArgsInBody
requestType: Types.RequestType.PostWithArgsInBody
},

@@ -28,3 +27,3 @@

argNames: ["id"],
requestType: RequestType.GetWithArgsValueOnly
requestType: Types.RequestType.GetWithArgsValueOnly
},

@@ -36,3 +35,3 @@

name: "fields?$filter=Name eq '[[name]]'",
requestType: RequestType.GetReplace
requestType: Types.RequestType.GetReplace
},

@@ -43,5 +42,5 @@

argNames: ["oData"],
requestType: RequestType.OData
requestType: Types.RequestType.OData
}
};
}

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

/// <reference path="../base.d.ts" />
module $REST {

@@ -49,3 +48,3 @@ /*********************************************************************************************************************************/

metadataType: "SP.FieldCreationInformation",
requestType: RequestType.PostWithArgsInBody
requestType: Types.RequestType.PostWithArgsInBody
},

@@ -56,3 +55,3 @@

argNames: ["displayname", "primarylookupfieldid", "showfield"],
requestType: RequestType.PostWithArgs
requestType: Types.RequestType.PostWithArgs
},

@@ -64,3 +63,3 @@

argNames: ["schemaXml"],
requestType: RequestType.PostWithArgsInBody,
requestType: Types.RequestType.PostWithArgsInBody,
data: {

@@ -78,3 +77,3 @@ parameters: {

argNames: ["id"],
requestType: RequestType.PostWithArgsValueOnly
requestType: Types.RequestType.PostWithArgsValueOnly
},

@@ -85,3 +84,3 @@

argNames: ["internalNameOrTitle"],
requestType: RequestType.PostWithArgsValueOnly
requestType: Types.RequestType.PostWithArgsValueOnly
},

@@ -92,3 +91,3 @@

argNames: ["title"],
requestType: RequestType.PostWithArgsValueOnly
requestType: Types.RequestType.PostWithArgsValueOnly
},

@@ -99,5 +98,5 @@

argNames: ["oData"],
requestType: RequestType.OData
requestType: Types.RequestType.OData
}
};
}

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

/// <reference path="../base.d.ts" />
module $REST {

@@ -86,3 +85,3 @@ /*********************************************************************************************************************************/

argNames: ["comment"],
requestType: RequestType.PostWithArgs
requestType: Types.RequestType.PostWithArgs
},

@@ -96,3 +95,3 @@

name: "cancelupload(guid'[[uploadId]]')",
requestType: RequestType.PostReplace
requestType: Types.RequestType.PostReplace
},

@@ -104,3 +103,3 @@

argNames: ["comment", "checkInType"],
requestType: RequestType.PostWithArgs
requestType: Types.RequestType.PostWithArgs
},

@@ -110,3 +109,3 @@

checkout: {
requestType: RequestType.Post
requestType: Types.RequestType.Post
},

@@ -117,3 +116,3 @@

name: "$value",
requestType: RequestType.GetBuffer
requestType: Types.RequestType.GetBuffer
},

@@ -127,3 +126,3 @@

name: "cancelupload(uploadId=guid'[[uploadId]]', fileOffset=[[fileOffset]])",
requestType: RequestType.PostReplace
requestType: Types.RequestType.PostReplace
},

@@ -134,3 +133,3 @@

argNames: ["strNewUrl", "bOverWrite"],
requestType: RequestType.PostWithArgs
requestType: Types.RequestType.PostWithArgs
},

@@ -140,3 +139,3 @@

delete: {
requestType: RequestType.Delete
requestType: Types.RequestType.Delete
},

@@ -148,3 +147,3 @@

argNames: ["comment"],
requestType: RequestType.PostWithArgs
requestType: Types.RequestType.PostWithArgs
},

@@ -158,3 +157,3 @@

name: "cancelupload(uploadId=guid'[[uploadId]]', fileOffset=[[fileOffset]])",
requestType: RequestType.PostReplace
requestType: Types.RequestType.PostReplace
},

@@ -168,3 +167,3 @@

name: "getLimitedWebPartManager(scope=[[scope]])",
requestType: RequestType.GetReplace
requestType: Types.RequestType.GetReplace
},

@@ -177,3 +176,3 @@

name: "moveTo(newUrl='[[newUrl]]', flags=[[flags]])",
requestType: RequestType.PostReplace
requestType: Types.RequestType.PostReplace
},

@@ -183,3 +182,3 @@

openBinaryStream: {
requestType: RequestType.GetBuffer
requestType: Types.RequestType.GetBuffer
},

@@ -190,3 +189,3 @@

argNames: ["comment"],
requestType: RequestType.PostWithArgs
requestType: Types.RequestType.PostWithArgs
},

@@ -196,3 +195,3 @@

recycle: {
requestType: RequestType.Get
requestType: Types.RequestType.Get
},

@@ -202,3 +201,3 @@

saveBinaryStream: {
requestType: RequestType.PostWithArgsInBody
requestType: Types.RequestType.PostWithArgsInBody
},

@@ -212,3 +211,3 @@

name: "startupload(uploadId=guid'[[uploadId]]')",
requestType: RequestType.PostReplace
requestType: Types.RequestType.PostReplace
},

@@ -218,3 +217,3 @@

undoCheckOut: {
requestType: RequestType.Post
requestType: Types.RequestType.Post
},

@@ -225,3 +224,3 @@

argNames: ["comment"],
requestType: RequestType.PostWithArgs
requestType: Types.RequestType.PostWithArgs
},

@@ -234,5 +233,5 @@

requestMethod: "MERGE",
requestType: RequestType.PostWithArgsInBody
requestType: Types.RequestType.PostWithArgsInBody
}
};
}

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

/// <reference path="../base.d.ts" />
module $REST {

@@ -48,3 +47,3 @@ /*********************************************************************************************************************************/

argNames: ["overwrite", "url"],
requestType: RequestType.PostWithArgs
requestType: Types.RequestType.PostWithArgs
},

@@ -56,3 +55,3 @@

argNames: ["urlOfFile", "templateFileType"],
requestType: RequestType.PostWithArgs
requestType: Types.RequestType.PostWithArgs
},

@@ -64,3 +63,3 @@

name: "?$filter=Name eq '[[name]]'",
requestType: RequestType.GetReplace
requestType: Types.RequestType.GetReplace
},

@@ -71,3 +70,3 @@

argNames: ["serverRelativeUrl"],
requestType: RequestType.GetWithArgsValueOnly
requestType: Types.RequestType.GetWithArgsValueOnly
},

@@ -78,5 +77,5 @@

argNames: ["oData"],
requestType: RequestType.OData
requestType: Types.RequestType.OData
}
};
}

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

/// <reference path="../base.d.ts" />
module $REST {

@@ -19,5 +18,5 @@ /*********************************************************************************************************************************/

delete: {
requestType: RequestType.Delete
requestType: Types.RequestType.Delete
}
};
}

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

/// <reference path="../base.d.ts" />
module $REST {

@@ -19,3 +18,3 @@ /*********************************************************************************************************************************/

delete: {
requestType: RequestType.Delete
requestType: Types.RequestType.Delete
},

@@ -26,5 +25,5 @@

argNames: ["oData"],
requestType: RequestType.OData
requestType: Types.RequestType.OData
}
};
}

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

/// <reference path="../base.d.ts" />
module $REST {

@@ -92,3 +91,3 @@ /*********************************************************************************************************************************/

name: "files/add",
requestType: RequestType.PostWithArgs
requestType: Types.RequestType.PostWithArgs
},

@@ -101,3 +100,3 @@

name: "files/addtemplatefile",
requestType: RequestType.PostWithArgs
requestType: Types.RequestType.PostWithArgs
},

@@ -109,3 +108,3 @@

name: "folders/add",
requestType: RequestType.PostWithArgs
requestType: Types.RequestType.PostWithArgs
},

@@ -115,3 +114,3 @@

delete: {
requestType: RequestType.Delete
requestType: Types.RequestType.Delete
},

@@ -123,3 +122,3 @@

name: "files?$filter=Name eq '[[name]]'",
requestType: RequestType.GetReplace
requestType: Types.RequestType.GetReplace
},

@@ -131,3 +130,3 @@

name: "folders?$filter=Name eq '[[name]]'",
requestType: RequestType.GetReplace
requestType: Types.RequestType.GetReplace
},

@@ -138,3 +137,3 @@

argNames: ["serverRelativeUrl"],
requestType: RequestType.GetWithArgsValueOnly
requestType: Types.RequestType.GetWithArgsValueOnly
},

@@ -144,3 +143,3 @@

recycle: {
requestType: RequestType.Post
requestType: Types.RequestType.Post
},

@@ -153,5 +152,5 @@

requestMethod: "MERGE",
requestType: RequestType.PostWithArgsInBody
requestType: Types.RequestType.PostWithArgsInBody
}
};
}

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

/// <reference path="../base.d.ts" />
module $REST {

@@ -48,3 +47,3 @@ /*********************************************************************************************************************************/

argNames: ["url"],
requestType: RequestType.PostWithArgs
requestType: Types.RequestType.PostWithArgs
},

@@ -55,3 +54,3 @@

argNames: ["serverRelativeUrl"],
requestType: RequestType.GetWithArgsValueOnly
requestType: Types.RequestType.GetWithArgsValueOnly
},

@@ -62,5 +61,5 @@

argNames: ["oData"],
requestType: RequestType.OData
requestType: Types.RequestType.OData
}
};
}

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

/// <reference path="../base.d.ts" />
module $REST {

@@ -21,5 +20,5 @@ /*********************************************************************************************************************************/

name: "users?$filter=Id eq [[userId]]",
requestType: RequestType.GetReplace
requestType: Types.RequestType.GetReplace
}
};
}

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

/// <reference path="../base.d.ts" />
module $REST {

@@ -48,3 +47,3 @@ /*********************************************************************************************************************************/

metadataType: function(obj) { return obj.Parent && obj.Parent["ListItemEntityTypeFullName"] ? obj.Parent["ListItemEntityTypeFullName"] : "SP.ListItem" },
requestType: RequestType.PostWithArgsInBody
requestType: Types.RequestType.PostWithArgsInBody
},

@@ -55,3 +54,3 @@

argNames: ["id"],
requestType: RequestType.GetWithArgsValueOnly
requestType: Types.RequestType.GetWithArgsValueOnly
},

@@ -62,5 +61,5 @@

argNames: ["oData"],
requestType: RequestType.OData
requestType: Types.RequestType.OData
}
};
}

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

/// <reference path="../base.d.ts" />
module $REST {

@@ -21,5 +20,5 @@ /*********************************************************************************************************************************/

name: "webparts?expand=WebPart",
requestType: RequestType.GetReplace
requestType: Types.RequestType.GetReplace
}
};
}

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

/// <reference path="../base.d.ts" />
module $REST {

@@ -63,3 +62,3 @@ /*********************************************************************************************************************************/

name: "contenttypes/addAvailableContentType",
requestType: RequestType.PostWithArgsInBody
requestType: Types.RequestType.PostWithArgsInBody
},

@@ -72,3 +71,3 @@

name: "contenttypes/add",
requestType: RequestType.PostWithArgsInBody
requestType: Types.RequestType.PostWithArgsInBody
},

@@ -80,3 +79,3 @@

name: "eventreceivers",
requestType: RequestType.PostWithArgsInBody
requestType: Types.RequestType.PostWithArgsInBody
},

@@ -89,3 +88,3 @@

name: "fields/add",
requestType: RequestType.PostWithArgsInBody
requestType: Types.RequestType.PostWithArgsInBody
},

@@ -98,3 +97,3 @@

name: "fields/createFieldAsXml",
requestType: RequestType.PostWithArgsInBody,
requestType: Types.RequestType.PostWithArgsInBody,
data: {

@@ -113,3 +112,3 @@ parameters: {

name: "fields/addDependentLookupField",
requestType: RequestType.PostWithArgs
requestType: Types.RequestType.PostWithArgs
},

@@ -121,3 +120,3 @@

name: "items",
requestType: RequestType.PostWithArgsInBody
requestType: Types.RequestType.PostWithArgsInBody
},

@@ -129,3 +128,3 @@

name: "roleassignments/addroleassignment",
requestType: RequestType.PostWithArgs
requestType: Types.RequestType.PostWithArgs
},

@@ -137,3 +136,3 @@

name: "folders/add",
requestType: RequestType.PostWithArgs
requestType: Types.RequestType.PostWithArgs
},

@@ -145,3 +144,3 @@

name: "views",
requestType: RequestType.PostWithArgsInBody
requestType: Types.RequestType.PostWithArgsInBody
},

@@ -152,3 +151,3 @@

argNames: ["copyroleassignments", "clearsubscopes"],
requestType: RequestType.PostWithArgs
requestType: Types.RequestType.PostWithArgs
},

@@ -158,3 +157,3 @@

delete: {
requestType: RequestType.Delete
requestType: Types.RequestType.Delete
},

@@ -166,3 +165,3 @@

metadataType: "SP.ChangeQuery",
requestType: RequestType.PostWithArgsInBody
requestType: Types.RequestType.PostWithArgsInBody
},

@@ -174,3 +173,3 @@

name: "contenttypes?$filter=Name eq '[[name]]'",
requestType: RequestType.GetReplace
requestType: Types.RequestType.GetReplace
},

@@ -182,3 +181,3 @@

name: "contenttypes/getById([[id]])",
requestType: RequestType.GetReplace
requestType: Types.RequestType.GetReplace
},

@@ -189,3 +188,3 @@

name: "forms?$filter=FormType eq 4",
requestType: RequestType.GetReplace
requestType: Types.RequestType.GetReplace
},

@@ -196,3 +195,3 @@

name: "forms?$filter=FormType eq 6",
requestType: RequestType.GetReplace
requestType: Types.RequestType.GetReplace
},

@@ -203,3 +202,3 @@

name: "forms?$filter=FormType eq 8",
requestType: RequestType.GetReplace
requestType: Types.RequestType.GetReplace
},

@@ -211,3 +210,3 @@

name: "forms?$filter=FormType eq [[formType]]",
requestType: RequestType.GetReplace
requestType: Types.RequestType.GetReplace
},

@@ -219,3 +218,3 @@

name: "fields/getById",
requestType: RequestType.PostWithArgsValueOnly
requestType: Types.RequestType.PostWithArgsValueOnly
},

@@ -227,3 +226,3 @@

name: "fields/getByInternalNameOrTitle",
requestType: RequestType.PostWithArgsValueOnly
requestType: Types.RequestType.PostWithArgsValueOnly
},

@@ -235,3 +234,3 @@

name: "fields/getByTitle",
requestType: RequestType.PostWithArgsValueOnly
requestType: Types.RequestType.PostWithArgsValueOnly
},

@@ -243,3 +242,3 @@

name: "folders/getbyurl",
requestType: RequestType.GetWithArgsValueOnly
requestType: Types.RequestType.GetWithArgsValueOnly
},

@@ -250,3 +249,3 @@

argNames: ["id"],
requestType: RequestType.GetWithArgsValueOnly
requestType: Types.RequestType.GetWithArgsValueOnly
},

@@ -258,3 +257,3 @@

name: "items?$filter Title eq '[[title]]'",
requestType: RequestType.GetReplace
requestType: Types.RequestType.GetReplace
},

@@ -265,3 +264,3 @@

argNames: ["viewXml"],
requestType: RequestType.PostWithArgsInBody,
requestType: Types.RequestType.PostWithArgsInBody,
data: {

@@ -279,3 +278,3 @@ query: {

name: "items?$filter=[[filter]]",
requestType: RequestType.GetWithArgsValueOnly
requestType: Types.RequestType.GetWithArgsValueOnly
},

@@ -287,3 +286,3 @@

name: "getItems",
requestType: RequestType.PostWithArgsInBody,
requestType: Types.RequestType.PostWithArgsInBody,
data: {

@@ -301,3 +300,3 @@ query: {

metadataType: "SP.ChangeLogItemQuery",
requestType: RequestType.PostWithArgsInBody
requestType: Types.RequestType.PostWithArgsInBody
},

@@ -307,3 +306,3 @@

getRelatedFields: {
requestType: RequestType.Get
requestType: Types.RequestType.Get
},

@@ -315,3 +314,3 @@

name: "getUserEffectivePermissions(@user)?@user='[[loginName]]'",
requestType: RequestType.GetReplace
requestType: Types.RequestType.GetReplace
},

@@ -323,3 +322,3 @@

name: "getView",
requestType: RequestType.GetWithArgsValueOnly
requestType: Types.RequestType.GetWithArgsValueOnly
},

@@ -331,3 +330,3 @@

name: "views?$filter=Title eq '[[title]]'",
requestType: RequestType.GetReplace
requestType: Types.RequestType.GetReplace
},

@@ -337,3 +336,3 @@

recycle: {
requestType: RequestType.Post
requestType: Types.RequestType.Post
},

@@ -345,3 +344,3 @@

name: "renderListData(@v)?@v='<View>[[viewXml]]</View>'",
requestType: RequestType.PostReplace
requestType: Types.RequestType.PostReplace
},

@@ -353,3 +352,3 @@

argNames: ["itemid", "formid", "mode"],
requestType: RequestType.PostWithArgs
requestType: Types.RequestType.PostWithArgs
},

@@ -359,3 +358,3 @@

reserveListItemId: {
requestType: RequestType.Post
requestType: Types.RequestType.Post
},

@@ -365,3 +364,3 @@

resetRoleInheritance: {
requestType: RequestType.Post
requestType: Types.RequestType.Post
},

@@ -374,5 +373,5 @@

requestMethod: "MERGE",
requestType: RequestType.PostWithArgsInBody
requestType: Types.RequestType.PostWithArgsInBody
}
};
}

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

/// <reference path="../base.d.ts" />
module $REST {

@@ -62,3 +61,3 @@ /*********************************************************************************************************************************/

name: "attachmentfiles/add",
requestType: RequestType.PostWithArgs
requestType: Types.RequestType.PostWithArgs
},

@@ -72,3 +71,3 @@

argNames: ["copyroleassignments", "clearsubscopes"],
requestType: RequestType.PostWithArgs
requestType: Types.RequestType.PostWithArgs
},

@@ -78,3 +77,3 @@

delete: {
requestType: RequestType.Delete
requestType: Types.RequestType.Delete
},

@@ -86,3 +85,3 @@

name: "getUserEffectivePermissions(@user)?@user='[[loginName]]'",
requestType: RequestType.GetReplace
requestType: Types.RequestType.GetReplace
},

@@ -92,3 +91,3 @@

recycle: {
requestType: RequestType.Post
requestType: Types.RequestType.Post
},

@@ -98,3 +97,3 @@

resetRoleInheritance: {
requestType: RequestType.Post
requestType: Types.RequestType.Post
},

@@ -107,3 +106,3 @@

requestMethod: "MERGE",
requestType: RequestType.PostWithArgsInBody
requestType: Types.RequestType.PostWithArgsInBody
},

@@ -114,5 +113,5 @@

argNames: ["formValues", "bNewDocumentUpdate"],
requestType: RequestType.PostWithArgsInBody
requestType: Types.RequestType.PostWithArgsInBody
}
};
}

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

/// <reference path="../base.d.ts" />
module $REST {

@@ -48,3 +47,3 @@ /*********************************************************************************************************************************/

metadataType: "SP.List",
requestType: RequestType.PostWithArgs
requestType: Types.RequestType.PostWithArgs
},

@@ -54,3 +53,3 @@

ensureSiteAssetsLibrary: {
requestType: RequestType.Post
requestType: Types.RequestType.Post
},

@@ -60,3 +59,3 @@

ensureSitePagesLibrary: {
requestType: RequestType.Post
requestType: Types.RequestType.Post
},

@@ -67,3 +66,3 @@

argNames: ["id"],
requestType: RequestType.GetWithArgsValueOnly
requestType: Types.RequestType.GetWithArgsValueOnly
},

@@ -74,3 +73,3 @@

argNames: ["title"],
requestType: RequestType.GetWithArgsValueOnly
requestType: Types.RequestType.GetWithArgsValueOnly
},

@@ -81,5 +80,5 @@

argNames: ["oData"],
requestType: RequestType.OData
requestType: Types.RequestType.OData
}
};
}

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

/// <reference path="../base.d.ts" />
module $REST {

@@ -7,9 +6,9 @@ /*********************************************************************************************************************************/

Library.peoplemanager = {};
Library.peoplemanager[RequestType.Get] = [
Library.peoplemanager[Types.RequestType.Get] = [
"amlFollowedBy", "amlFollowing", "getFollowedTags", "getFollowersFor", "getMyFollowers", "getMyProperties", "getMySuggestions",
"getPeopleFollowedBy", "getPeopleFollowedByMe", "getPropertiesFor", "getUserProfilePropertyFor"
];
Library.peoplemanager[RequestType.GetAppendMethodToEndPoint] = ["getTrendingTags", "isFollowing"];
Library.peoplemanager[RequestType.Post] = ["follow", "followTag", "hideSuggestion", "stopFollowing", "stopFollowingTag"];
Library.peoplemanager[RequestType.PostDataInBody] = ["setMyProfilePicture"];
Library.peoplemanager[Types.RequestType.GetAppendMethodToEndPoint] = ["getTrendingTags", "isFollowing"];
Library.peoplemanager[Types.RequestType.Post] = ["follow", "followTag", "hideSuggestion", "stopFollowing", "stopFollowingTag"];
Library.peoplemanager[Types.RequestType.PostDataInBody] = ["setMyProfilePicture"];
}

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

/// <reference path="../base.d.ts" />
module $REST {

@@ -16,5 +15,5 @@ /*********************************************************************************************************************************/

Library.profileloader = {
//Library.[RequestType.Post] = ["getOwnerUserProfile", "getUserProfile"];
//Library.profileloader[RequestType.PostDataInBody] = ["createPersonalSiteEnqueueBulk"];
//Library.[Types.RequestType.Post] = ["getOwnerUserProfile", "getUserProfile"];
//Library.profileloader[Types.RequestType.PostDataInBody] = ["createPersonalSiteEnqueueBulk"];
};
}

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

/// <reference path="../base.d.ts" />
module $REST {

@@ -19,5 +18,5 @@ /*********************************************************************************************************************************/

delete: {
requestType: RequestType.Delete
requestType: Types.RequestType.Delete
}
};
}

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

/// <reference path="../base.d.ts" />
module $REST {

@@ -48,3 +47,3 @@ /*********************************************************************************************************************************/

argNames: ["principalId", "roleDefId"],
requestType: RequestType.PostWithArgs
requestType: Types.RequestType.PostWithArgs
},

@@ -55,3 +54,3 @@

argNames: ["principalId"],
requestType: RequestType.GetWithArgsValueOnly
requestType: Types.RequestType.GetWithArgsValueOnly
},

@@ -62,3 +61,3 @@

argNames: ["oData"],
requestType: RequestType.OData
requestType: Types.RequestType.OData
},

@@ -69,5 +68,5 @@

argNames: ["principalId", "roleDefId"],
requestType: RequestType.PostWithArgs
requestType: Types.RequestType.PostWithArgs
}
};
}

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

/// <reference path="../base.d.ts" />
module $REST {

@@ -19,5 +18,5 @@ /*********************************************************************************************************************************/

delete: {
requestType: RequestType.Delete
requestType: Types.RequestType.Delete
}
};
}

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

/// <reference path="../base.d.ts" />
module $REST {

@@ -48,3 +47,3 @@ /*********************************************************************************************************************************/

argNames: ["roleDefId"],
requestType: RequestType.GetWithArgsValueOnly
requestType: Types.RequestType.GetWithArgsValueOnly
},

@@ -55,3 +54,3 @@

argNames: ["name"],
requestType: RequestType.GetWithArgsValueOnly
requestType: Types.RequestType.GetWithArgsValueOnly
},

@@ -62,3 +61,3 @@

argNames: ["roleType"],
requestType: RequestType.GetWithArgsValueOnly
requestType: Types.RequestType.GetWithArgsValueOnly
},

@@ -69,5 +68,5 @@

argNames: ["oData"],
requestType: RequestType.OData
requestType: Types.RequestType.OData
}
};
}

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

/// <reference path="../base.d.ts" />
module $REST {

@@ -3,0 +2,0 @@ /*********************************************************************************************************************************/

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

/// <reference path="../base.d.ts" />
module $REST {

@@ -58,3 +57,3 @@ /*********************************************************************************************************************************/

name: "usercustomactions",
requestType: RequestType.PostWithArgsInBody
requestType: Types.RequestType.PostWithArgsInBody
},

@@ -65,3 +64,3 @@

argNames: ["upgrade", "sendemail"],
requestType: RequestType.PostWithArgs
requestType: Types.RequestType.PostWithArgs
},

@@ -71,3 +70,3 @@

extendUpgradeReminderDate: {
requestType: RequestType.Post
requestType: Types.RequestType.Post
},

@@ -78,3 +77,3 @@

argNames: ["typeCatalog"],
requestType: RequestType.PostWithArgsValueOnly
requestType: Types.RequestType.PostWithArgsValueOnly
},

@@ -86,3 +85,3 @@

metadataType: "SP.ChangeQuery",
requestType: RequestType.PostWithArgsInBody
requestType: Types.RequestType.PostWithArgsInBody
},

@@ -94,3 +93,3 @@

name: "usercustomactions?$filter=Name eq '[[title]]' or Title eq '[[title]]'",
requestType: RequestType.GetReplace
requestType: Types.RequestType.GetReplace
},

@@ -101,3 +100,3 @@

argNames: ["web"],
requestType: RequestType.PostWithArgs
requestType: Types.RequestType.PostWithArgs
},

@@ -108,3 +107,3 @@

argNames: ["LCID", "overrideCompatLevel"],
requestType: RequestType.PostWithArgs
requestType: Types.RequestType.PostWithArgs
},

@@ -114,3 +113,3 @@

invalidate: {
requestType: RequestType.Post
requestType: Types.RequestType.Post
},

@@ -121,3 +120,3 @@

argNames: ["versionUpgrade", "recursive"],
requestType: RequestType.PostWithArgs
requestType: Types.RequestType.PostWithArgs
},

@@ -128,3 +127,3 @@

argNames: ["strUrl"],
requestType: RequestType.PostWithArgsValueOnly
requestType: Types.RequestType.PostWithArgsValueOnly
},

@@ -135,3 +134,3 @@

argNames: ["gWebId"],
requestType: RequestType.PostWithArgsValueOnly
requestType: Types.RequestType.PostWithArgsValueOnly
},

@@ -142,3 +141,3 @@

argNames: ["ruleId", "bRepair", "bRunAlways"],
requestType: RequestType.PostWithArgs
requestType: Types.RequestType.PostWithArgs
},

@@ -149,3 +148,3 @@

argNames: ["versionUpgrade", "queueOnly", "sendEmail"],
requestType: RequestType.PostWithArgs
requestType: Types.RequestType.PostWithArgs
},

@@ -158,3 +157,3 @@

requestMethod: "MERGE",
requestType: RequestType.PostWithArgsInBody
requestType: Types.RequestType.PostWithArgsInBody
},

@@ -165,5 +164,5 @@

argNames: ["requireUseRemoteAPIs"],
requestType: RequestType.PostWithArgs
requestType: Types.RequestType.PostWithArgs
}
};
}

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

/// <reference path="../base.d.ts" />
module $REST {

@@ -48,3 +47,3 @@ /*********************************************************************************************************************************/

argNames: ["id"],
requestType: RequestType.GetWithArgsValueOnly
requestType: Types.RequestType.GetWithArgsValueOnly
},

@@ -55,3 +54,3 @@

argNames: ["name"],
requestType: RequestType.GetWithArgsValueOnly
requestType: Types.RequestType.GetWithArgsValueOnly
},

@@ -62,3 +61,3 @@

argNames: ["oData"],
requestType: RequestType.OData
requestType: Types.RequestType.OData
},

@@ -69,3 +68,3 @@

argNames: ["id"],
requestType: RequestType.PostWithArgsValueOnly
requestType: Types.RequestType.PostWithArgsValueOnly
},

@@ -76,5 +75,5 @@

argNames: ["name"],
requestType: RequestType.PostWithArgsValueOnly
requestType: Types.RequestType.PostWithArgsValueOnly
},
}
}

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

/// <reference path="../base.d.ts" />
module $REST {

@@ -7,3 +6,3 @@ /*********************************************************************************************************************************/

Library.socialrestactor = {};
Library.socialrestactor[RequestType.Custom] = [
Library.socialrestactor[Types.RequestType.Custom] = [
{ name: "createPost", "function": function (data) { data = { restCreationData: { __metadata: { type: "SP.Social.SocialRestPostCreationData" }, ID: null, creationData: data } }; data.restCreationData.creationData.__metadata = { type: "SP.Social.SocialPostCreationData" }; return this.executePost("feed/post", null, data, true); } },

@@ -10,0 +9,0 @@ { name: "getFeed", "function": function () { return this.executeGet("feed"); } },

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

/// <reference path="../base.d.ts" />
module $REST {

@@ -7,3 +6,3 @@ /*********************************************************************************************************************************/

Library.socialrestfeedmanager = {};
Library.socialrestfeedmanager[RequestType.Custom] = [
Library.socialrestfeedmanager[Types.RequestType.Custom] = [
{ name: "createPost", "function": function (data) { data = { restCreationData: { __metadata: { type: "SP.Social.SocialRestPostCreationData" }, ID: null, creationData: data } }; data.restCreationData.creationData.__metadata = { type: "SP.Social.SocialPostCreationData" }; return this.executePost("my/feed/post", null, data, true); } },

@@ -10,0 +9,0 @@ { name: "deletePost", "function": function (id) { return this.executePost("post/delete", null, { ID: id }, true); } },

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

/// <reference path="../base.d.ts" />
module $REST {

@@ -7,3 +6,3 @@ /*********************************************************************************************************************************/

Library.socialrestthread = {};
Library.socialrestthread[RequestType.Custom] = [
Library.socialrestthread[Types.RequestType.Custom] = [
{ name: "delete", "function": function (id) { return this.executePost("delete", null, { ID: id || this.ID }, true); } },

@@ -10,0 +9,0 @@ { name: "like", "function": function (id) { return this.executePost("like", null, { ID: id || this.ID }, true); } },

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

/// <reference path="../base.d.ts" />
module $REST {

@@ -47,5 +46,5 @@ /*********************************************************************************************************************************/

delete: {
requestType: RequestType.Delete
requestType: Types.RequestType.Delete
}
}
}

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

/// <reference path="../base.d.ts" />
module $REST {

@@ -19,5 +18,5 @@ /*********************************************************************************************************************************/

delete: {
requestType: RequestType.Delete
requestType: Types.RequestType.Delete
}
}
}

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

/// <reference path="../base.d.ts" />
module $REST {

@@ -49,3 +48,3 @@ /*********************************************************************************************************************************/

name: "",
requestType: RequestType.PostWithArgsInBody
requestType: Types.RequestType.PostWithArgsInBody
},

@@ -55,3 +54,3 @@

clear: {
requestType: RequestType.Post
requestType: Types.RequestType.Post
},

@@ -62,3 +61,3 @@

argNames: ["id"],
requestType: RequestType.GetWithArgsValueOnly
requestType: Types.RequestType.GetWithArgsValueOnly
},

@@ -70,3 +69,3 @@

name: "?filter=Name eq '[[name]]'",
requestType: RequestType.PostReplace
requestType: Types.RequestType.PostReplace
},

@@ -78,3 +77,3 @@

name: "?filter=Title eq '[[title]]'",
requestType: RequestType.PostReplace
requestType: Types.RequestType.PostReplace
},

@@ -85,5 +84,5 @@

argNames: ["oData"],
requestType: RequestType.OData
requestType: Types.RequestType.OData
}
};
}

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

/// <reference path="../base.d.ts" />
module $REST {

@@ -7,6 +6,6 @@ /*********************************************************************************************************************************/

Library.userprofile = {};
Library.userprofile[RequestType.Post] = ["createPersonalSiteEnque", "shareAllSocialData"];
Library.userprofile[RequestType.Custom] = [
Library.userprofile[Types.RequestType.Post] = ["createPersonalSiteEnque", "shareAllSocialData"];
Library.userprofile[Types.RequestType.Custom] = [
{ name: "getOneDriveUrl", "function": function () { return this.FollowPersonalSiteUrl + "_layouts/15/onedrive.aspx" } }
];
}

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

/// <reference path="../base.d.ts" />
module $REST {

@@ -48,3 +47,3 @@ /*********************************************************************************************************************************/

argNames: ["email"],
requestType: RequestType.GetWithArgsValueOnly
requestType: Types.RequestType.GetWithArgsValueOnly
},

@@ -55,3 +54,3 @@

argNames: ["id"],
requestType: RequestType.GetWithArgsValueOnly
requestType: Types.RequestType.GetWithArgsValueOnly
},

@@ -62,3 +61,3 @@

argNames: ["loginName"],
requestType: RequestType.GetWithArgsInQS
requestType: Types.RequestType.GetWithArgsInQS
},

@@ -69,3 +68,3 @@

argNames: ["oData"],
requestType: RequestType.OData
requestType: Types.RequestType.OData
},

@@ -76,3 +75,3 @@

argNames: ["id"],
requestType: RequestType.PostWithArgsValueOnly
requestType: Types.RequestType.PostWithArgsValueOnly
},

@@ -83,5 +82,5 @@

argNames: ["loginName"],
requestType: RequestType.PostWithArgsValueOnly
requestType: Types.RequestType.PostWithArgsValueOnly
}
}
}

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

/// <reference path="../base.d.ts" />
module $REST {

@@ -20,3 +19,3 @@ /*********************************************************************************************************************************/

argNames: ["id"],
requestType: RequestType.GetWithArgsValueOnly
requestType: Types.RequestType.GetWithArgsValueOnly
},

@@ -26,3 +25,3 @@

deleteAll: {
requestType: RequestType.Post
requestType: Types.RequestType.Post
},

@@ -33,3 +32,3 @@

argNames: ["id"],
requestType: RequestType.PostWithArgsValueOnly
requestType: Types.RequestType.PostWithArgsValueOnly
},

@@ -40,3 +39,3 @@

argNames: ["label"],
requestType: RequestType.PostWithArgsValueOnly
requestType: Types.RequestType.PostWithArgsValueOnly
},

@@ -47,5 +46,5 @@

argNames: ["label"],
requestType: RequestType.PostWithArgsValueOnly
requestType: Types.RequestType.PostWithArgsValueOnly
}
}
}

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

/// <reference path="../base.d.ts" />
module $REST {

@@ -47,3 +46,3 @@ /*********************************************************************************************************************************/

delete: {
requestType: RequestType.Delete
requestType: Types.RequestType.Delete
},

@@ -53,3 +52,3 @@

renderAsHtml: {
requestType: RequestType.Get
requestType: Types.RequestType.Get
},

@@ -62,5 +61,5 @@

requestMethod: "MERGE",
requestType: RequestType.PostWithArgsInBody
requestType: Types.RequestType.PostWithArgsInBody
}
};
}

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

/// <reference path="../base.d.ts" />
module $REST {

@@ -20,3 +19,3 @@ /*********************************************************************************************************************************/

argNames: ["fieldName"],
requestType: RequestType.PostWithArgsValueOnly
requestType: Types.RequestType.PostWithArgsValueOnly
},

@@ -27,3 +26,3 @@

argNames: ["field", "index"],
requestType: RequestType.PostWithArgsInBody
requestType: Types.RequestType.PostWithArgsInBody
},

@@ -34,3 +33,3 @@

argNames: ["oData"],
requestType: RequestType.OData
requestType: Types.RequestType.OData
},

@@ -40,3 +39,3 @@

removeAllViewFields: {
requestType: RequestType.Post
requestType: Types.RequestType.Post
},

@@ -47,5 +46,5 @@

argNames: ["fieldName"],
requestType: RequestType.GetWithArgsValueOnly
requestType: Types.RequestType.GetWithArgsValueOnly
}
};
}

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

/// <reference path="../base.d.ts" />
module $REST {

@@ -48,3 +47,3 @@ /*********************************************************************************************************************************/

metadataType: "SP.View",
requestType: RequestType.PostWithArgs
requestType: Types.RequestType.PostWithArgs
},

@@ -55,3 +54,3 @@

argNames: ["id"],
requestType: RequestType.GetWithArgsValueOnly
requestType: Types.RequestType.GetWithArgsValueOnly
},

@@ -62,3 +61,3 @@

argNames: ["title"],
requestType: RequestType.GetWithArgsValueOnly
requestType: Types.RequestType.GetWithArgsValueOnly
},

@@ -69,5 +68,5 @@

argNames: ["oData"],
requestType: RequestType.OData
requestType: Types.RequestType.OData
}
};
}

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

/// <reference path="../base.d.ts" />
module $REST {

@@ -73,3 +72,3 @@ /*********************************************************************************************************************************/

name: "contenttypes",
requestType: RequestType.PostWithArgsInBody
requestType: Types.RequestType.PostWithArgsInBody
},

@@ -81,3 +80,3 @@

name: "usercustomactions",
requestType: RequestType.PostWithArgsInBody
requestType: Types.RequestType.PostWithArgsInBody
},

@@ -89,3 +88,3 @@

name: "contenttypes/addAvailableContentType",
requestType: RequestType.PostWithArgsInBody
requestType: Types.RequestType.PostWithArgsInBody
},

@@ -97,3 +96,3 @@

name: "fields/add",
requestType: RequestType.PostWithArgsInBody
requestType: Types.RequestType.PostWithArgsInBody
},

@@ -106,3 +105,3 @@

name: "fields/createFieldAsXml",
requestType: RequestType.PostWithArgsInBody,
requestType: Types.RequestType.PostWithArgsInBody,
data: {

@@ -121,3 +120,3 @@ parameters: {

name: "rootfolder/files/add",
requestType: RequestType.PostWithArgs
requestType: Types.RequestType.PostWithArgs
},

@@ -129,3 +128,3 @@

name: "lists",
requestType: RequestType.PostWithArgsInBody
requestType: Types.RequestType.PostWithArgsInBody
},

@@ -137,3 +136,3 @@

name: "roledefinitions",
requestType: RequestType.PostWithArgsInBody
requestType: Types.RequestType.PostWithArgsInBody
},

@@ -146,3 +145,3 @@

name: "sitegroups",
requestType: RequestType.PostWithArgsInBody,
requestType: Types.RequestType.PostWithArgsInBody,
},

@@ -154,3 +153,3 @@

name: "rootfolder/folders/add",
requestType: RequestType.PostWithArgsValueOnly
requestType: Types.RequestType.PostWithArgsValueOnly
},

@@ -161,3 +160,3 @@

argNames: ["colorpaletteurl", "fontschemeurl", "backgroundimageurl", "sharegenerated"],
requestType: RequestType.PostWithArgs
requestType: Types.RequestType.PostWithArgs
},

@@ -168,3 +167,3 @@

argName: ["name"],
requestType: RequestType.PostWithArgsInQS
requestType: Types.RequestType.PostWithArgsInQS
},

@@ -175,3 +174,3 @@

argNames: ["copyroleassignments", "clearsubscopes"],
requestType: RequestType.PostWithArgs
requestType: Types.RequestType.PostWithArgs
},

@@ -181,3 +180,3 @@

delete: {
requestType: RequestType.Delete
requestType: Types.RequestType.Delete
},

@@ -188,3 +187,3 @@

argNames: ["id"],
requestType: RequestType.GetWithArgsValueOnly
requestType: Types.RequestType.GetWithArgsValueOnly
},

@@ -195,3 +194,3 @@

argNames: ["High", "Low"],
requestType: RequestType.GetWithArgsInQS
requestType: Types.RequestType.GetWithArgsInQS
},

@@ -202,3 +201,3 @@

argNames: ["logonName"],
requestType: RequestType.PostWithArgsInBody
requestType: Types.RequestType.PostWithArgsInBody
},

@@ -208,3 +207,3 @@

executeRemoteLOB: {
requestType: RequestType.PostWithArgsInBody
requestType: Types.RequestType.PostWithArgsInBody
},

@@ -214,3 +213,3 @@

getAppBdcCatalog: {
requestType: RequestType.Post
requestType: Types.RequestType.Post
},

@@ -221,3 +220,3 @@

argNames: ["id"],
requestType: RequestType.PostWithArgsValueOnly
requestType: Types.RequestType.PostWithArgsValueOnly
},

@@ -228,3 +227,3 @@

argNames: ["id"],
requestType: RequestType.GetWithArgsValueOnly
requestType: Types.RequestType.GetWithArgsValueOnly
},

@@ -235,3 +234,3 @@

argNames: ["id"],
requestType: RequestType.GetWithArgsValueOnly
requestType: Types.RequestType.GetWithArgsValueOnly
},

@@ -242,3 +241,3 @@

argNames: ["lcid", "doincludecrosslanguage"],
requestType: RequestType.GetWithArgs
requestType: Types.RequestType.GetWithArgs
},

@@ -249,3 +248,3 @@

argNames: ["galleryType"],
requestType: RequestType.GetWithArgsValueOnly
requestType: Types.RequestType.GetWithArgsValueOnly
},

@@ -257,3 +256,3 @@

metadataType: "SP.ChangeQuery",
requestType: RequestType.PostWithArgsInBody
requestType: Types.RequestType.PostWithArgsInBody
},

@@ -265,3 +264,3 @@

replaceEndpointFl: true,
requestType: RequestType.Post
requestType: Types.RequestType.Post
},

@@ -273,3 +272,3 @@

name: "usercustomactions?$filter=Name eq '[[title]]' or Title eq '[[title]]'",
requestType: RequestType.GetReplace
requestType: Types.RequestType.GetReplace
},

@@ -279,3 +278,3 @@

getCustomListTemplates: {
requestType: RequestType.Get
requestType: Types.RequestType.Get
},

@@ -287,3 +286,3 @@

name: "sp.web.getDocumentLibraries",
requestType: RequestType.GetWithArgsInQS
requestType: Types.RequestType.GetWithArgsInQS
},

@@ -294,3 +293,3 @@

argNames: ["namespace", "name"],
requestType: RequestType.PostWithArgs
requestType: Types.RequestType.PostWithArgs
},

@@ -302,3 +301,3 @@

name: "fields?$filter=Title eq '[[title]]' or InternalName eq '[[title]]' or StaticName eq '[[title]]'",
requestType: RequestType.GetReplace
requestType: Types.RequestType.GetReplace
},

@@ -310,3 +309,3 @@

name: "fields/getById",
requestType: RequestType.GetWithArgsValueOnly
requestType: Types.RequestType.GetWithArgsValueOnly
},

@@ -318,3 +317,3 @@

name: "fields?$filter=InternalName eq '[[name]]'",
requestType: RequestType.GetReplace
requestType: Types.RequestType.GetReplace
},

@@ -326,3 +325,3 @@

name: "fields?$filter=StaticName eq '[[name]]'",
requestType: RequestType.GetReplace
requestType: Types.RequestType.GetReplace
},

@@ -334,3 +333,3 @@

name: "fields?$filter=Title eq '[[title]]'",
requestType: RequestType.GetReplace
requestType: Types.RequestType.GetReplace
},

@@ -342,3 +341,3 @@

name: "rootfolder/files?$filter=Name eq '[[name]]'",
requestType: RequestType.GetReplace
requestType: Types.RequestType.GetReplace
},

@@ -349,3 +348,3 @@

argNames: ["url"],
requestType: RequestType.GetWithArgsValueOnly
requestType: Types.RequestType.GetWithArgsValueOnly
},

@@ -356,3 +355,3 @@

argNames: ["url"],
requestType: RequestType.GetWithArgsValueOnly
requestType: Types.RequestType.GetWithArgsValueOnly
},

@@ -363,3 +362,3 @@

argNames: ["url"],
requestType: RequestType.GetWithArgsValueOnly
requestType: Types.RequestType.GetWithArgsValueOnly
},

@@ -371,3 +370,3 @@

name: "lists/getById",
requestType: RequestType.GetWithArgsValueOnly
requestType: Types.RequestType.GetWithArgsValueOnly
},

@@ -379,3 +378,3 @@

name: "lists/getByTitle",
requestType: RequestType.GetWithArgsValueOnly
requestType: Types.RequestType.GetWithArgsValueOnly
},

@@ -386,3 +385,3 @@

argNames: ["id"],
requestType: RequestType.GetWithArgsValueOnly
requestType: Types.RequestType.GetWithArgsValueOnly
},

@@ -393,3 +392,3 @@

argNames: ["args"],
requestType: RequestType.GetWithArgsValueOnly
requestType: Types.RequestType.GetWithArgsValueOnly
},

@@ -400,3 +399,3 @@

argNames: ["loginName"],
requestType: RequestType.GetWithArgsInQS
requestType: Types.RequestType.GetWithArgsInQS
},

@@ -408,3 +407,3 @@

name: "rootfolder/folders?$filter=Name eq '[[name]]'",
requestType: RequestType.GetReplace
requestType: Types.RequestType.GetReplace
},

@@ -416,3 +415,3 @@

name: "sitegroups/getById",
requestType: RequestType.GetWithArgsValueOnly
requestType: Types.RequestType.GetWithArgsValueOnly
},

@@ -424,3 +423,3 @@

name: "sitegroups/getByName",
requestType: RequestType.GetWithArgsValueOnly
requestType: Types.RequestType.GetWithArgsValueOnly
},

@@ -431,3 +430,3 @@

argNames: ["nwebtemplatefilter", "nconfigurationfilter"],
requestType: RequestType.GetWithArgs
requestType: Types.RequestType.GetWithArgs
},

@@ -439,3 +438,3 @@

name: "siteusers/getByEmail",
requestType: RequestType.GetWithArgsValueOnly
requestType: Types.RequestType.GetWithArgsValueOnly
},

@@ -446,3 +445,3 @@

argNames: ["id"],
requestType: RequestType.GetWithArgsValueOnly
requestType: Types.RequestType.GetWithArgsValueOnly
},

@@ -454,3 +453,3 @@

name: "siteusers/getByLoginName",
requestType: RequestType.GetWithArgsValueOnly
requestType: Types.RequestType.GetWithArgsValueOnly
},

@@ -462,3 +461,3 @@

name: "getUserEffectivePermissions(@user)?@user='[[loginName]]'",
requestType: RequestType.GetReplace
requestType: Types.RequestType.GetReplace
},

@@ -469,3 +468,3 @@

name: "sp.web.getWebUrlFromPageUrl",
requestType: RequestType.GetWithArgsInQS
requestType: Types.RequestType.GetWithArgsInQS
},

@@ -475,3 +474,3 @@

loadAndInstallApp: {
requestType: RequestType.PostWithArgsInBody
requestType: Types.RequestType.PostWithArgsInBody
},

@@ -482,3 +481,3 @@

argNames: ["appPackageStream", "installationLocaleLCID"],
requestType: RequestType.PostWithArgsInBody
requestType: Types.RequestType.PostWithArgsInBody
},

@@ -489,3 +488,3 @@

argNames: ["appPackageStream", "installationLocaleLCID"],
requestType: RequestType.PostWithArgsInBody
requestType: Types.RequestType.PostWithArgsInBody
},

@@ -496,3 +495,3 @@

argNames: ["filename", "progid", "size"],
requestType: RequestType.GetWithArgs
requestType: Types.RequestType.GetWithArgs
},

@@ -502,3 +501,3 @@

processExternalNotification: {
requestType: RequestType.PostWithArgsInBody
requestType: Types.RequestType.PostWithArgsInBody
},

@@ -509,3 +508,3 @@

argNames: ["deviceappinstanceid", "servicetoken"],
requestType: RequestType.PostWithArgs
requestType: Types.RequestType.PostWithArgs
},

@@ -515,3 +514,3 @@

resetRoleInheritance: {
requestType: RequestType.Post
requestType: Types.RequestType.Post
},

@@ -521,3 +520,3 @@

unregisterPushNotificationSubscriber: {
requestType: RequestType.PostWithArgsValueOnly
requestType: Types.RequestType.PostWithArgsValueOnly
},

@@ -530,5 +529,5 @@

requestMethod: "MERGE",
requestType: RequestType.PostWithArgsInBody
requestType: Types.RequestType.PostWithArgsInBody
}
};
}

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

/// <reference path="../base.d.ts" />
module $REST {

@@ -20,3 +19,3 @@ /*********************************************************************************************************************************/

metadataType: "SP.WebCreationInformation",
requestType: RequestType.PostWithArgsInBody
requestType: Types.RequestType.PostWithArgsInBody
},

@@ -27,5 +26,5 @@

argNames: ["oData"],
requestType: RequestType.OData
requestType: Types.RequestType.OData
}
};
}
/// <reference path="../tsd/sprest.d.ts" />
(new $REST.Lists(false).query({
Select: ["Title", "ID"],
Filter: ["Title eq 'Dev'"],
Top: 3
}));
var log = document.querySelector("#log");

@@ -10,0 +4,0 @@ var LogType = {

@@ -10,8 +10,2 @@ // TypeScript configuration file

"src/base.ts",
"src/dependencies.ts",
"src/methodInfo.ts",
"src/oData.ts",
"src/promise.ts",
"src/request.ts",
"src/targetInfo.ts",
"src/lib/attachmentFiles.ts",

@@ -21,3 +15,2 @@ "src/lib/contentType.ts",

"src/lib/email.ts",
"src/lib/enumerators.ts",
"src/lib/eventReceiver.ts",

@@ -62,4 +55,12 @@ "src/lib/eventReceivers.ts",

"src/lib/web.ts",
"src/lib/webs.ts"
"src/lib/webs.ts",
"src/types/requestType.ts",
"src/types/sp.ts",
"src/utils/dependencies.ts",
"src/utils/methodInfo.ts",
"src/utils/oData.ts",
"src/utils/promise.ts",
"src/utils/request.ts",
"src/utils/targetInfo.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

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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