Skip to content

Commit

Permalink
Updated the intellisense to reflect the REST API for 11/18/2019.
Browse files Browse the repository at this point in the history
  • Loading branch information
gunjandatta committed Nov 19, 2019
1 parent b62c4ee commit 3ef9e16
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 12 deletions.
10 changes: 5 additions & 5 deletions build/mapper/def.js
Original file line number Diff line number Diff line change
Expand Up @@ -2894,7 +2894,7 @@ exports.Mapper = {
},
deleteWithParameters: {
argNames: ["parameters"],
requestType: utils_1.RequestType.Delete
requestType: utils_1.RequestType.PostWithArgsInBody
},
deny: {
argNames: ["comment"],
Expand Down Expand Up @@ -3103,7 +3103,7 @@ exports.Mapper = {
},
deleteWithParameters: {
argNames: ["parameters"],
requestType: utils_1.RequestType.Delete
requestType: utils_1.RequestType.PostWithArgsInBody
},
getChanges: {
argNames: ["query"],
Expand Down Expand Up @@ -3506,7 +3506,7 @@ exports.Mapper = {
},
deleteWithParameters: {
argNames: ["parameters"],
requestType: utils_1.RequestType.Delete
requestType: utils_1.RequestType.PostWithArgsInBody
},
getChanges: {
argNames: ["query"],
Expand Down Expand Up @@ -5834,7 +5834,7 @@ exports.Mapper = {
},
deleteWithParameters: {
argNames: ["parameters"],
requestType: utils_1.RequestType.Delete
requestType: utils_1.RequestType.PostWithArgsInBody
},
getChanges: {
argNames: ["query"],
Expand Down Expand Up @@ -5865,7 +5865,7 @@ exports.Mapper = {
},
recycleWithParameters: {
argNames: ["parameters"],
requestType: utils_1.RequestType.Post
requestType: utils_1.RequestType.PostWithArgsInBody
},
resetRoleInheritance: {},
setCommentsDisabled: {
Expand Down
10 changes: 10 additions & 0 deletions dist/gd-sprest.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3625,6 +3625,16 @@ declare module 'gd-sprest/sptypes/sptypes' {
Synchronization: number
};

/**
* Field Index Status
*/
export type IFieldIndexStatus = {
None: number,
Indexed: number,
Enabling: number,
Disabling: number
}

/**
* Field Note Types
*/
Expand Down
2 changes: 1 addition & 1 deletion dist/gd-sprest.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/gd-sprest.min.js

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions src/mapper/def.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4144,7 +4144,7 @@ export const Mapper: IMapper = {

deleteWithParameters: {
argNames: ["parameters"],
requestType: RequestType.Delete
requestType: RequestType.PostWithArgsInBody
},

deny: {
Expand Down Expand Up @@ -4410,7 +4410,7 @@ export const Mapper: IMapper = {

deleteWithParameters: {
argNames: ["parameters"],
requestType: RequestType.Delete
requestType: RequestType.PostWithArgsInBody
},

getChanges: {
Expand Down Expand Up @@ -4929,7 +4929,7 @@ export const Mapper: IMapper = {

deleteWithParameters: {
argNames: ["parameters"],
requestType: RequestType.Delete
requestType: RequestType.PostWithArgsInBody
},

getChanges: {
Expand Down Expand Up @@ -8257,7 +8257,7 @@ export const Mapper: IMapper = {

deleteWithParameters: {
argNames: ["parameters"],
requestType: RequestType.Delete
requestType: RequestType.PostWithArgsInBody
},

getChanges: {
Expand Down Expand Up @@ -8299,7 +8299,7 @@ export const Mapper: IMapper = {

recycleWithParameters: {
argNames: ["parameters"],
requestType: RequestType.Post
requestType: RequestType.PostWithArgsInBody
},

resetRoleInheritance: {
Expand Down
4 changes: 4 additions & 0 deletions test/test_basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -410,18 +410,22 @@ function testFile() {

// Copy the file
file = subFolder.Files().add("test.aspx", true, buffer).executeAndWait();
file2 = subFolder.Files().add("test2.aspx", true, buffer).executeAndWait();

// Test
assert(file, "copy file", "Exists", true);
assert(file2, "copy file", "Exists", true);

// Log
writeToLog("Delete the file", LogType.SubHeader);

// Delete the file
file = file.delete().executeAndWait();
file2 = file2.deleteWithParameters({ BypassSharedLock: true, ETagMatch: "*"}).executeAndWait();

// Test
assert(file.d, "delete file", "DeleteObject", null);
assert(file2.d, "delete file", "DeleteObject", null);

// Log
writeToLog("Delete the folder", LogType.SubHeader);
Expand Down

0 comments on commit 3ef9e16

Please sign in to comment.