Skip to content

Commit

Permalink
Updated the def and mapper for v2.
Browse files Browse the repository at this point in the history
  • Loading branch information
gunjandatta committed Dec 19, 2024
1 parent 3ac4b4a commit 3216862
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
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.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gd-sprest",
"version": "8.7.5",
"version": "8.7.6",
"description": "An easy way to develop against the SharePoint REST API.",
"author": "Gunjan Datta <[email protected]> (https://gunjandatta.github.io)",
"license": "MIT",
Expand All @@ -24,7 +24,7 @@
},
"homepage": "https://dattabase.com",
"dependencies": {
"gd-sprest-def": "1.8.5"
"gd-sprest-def": "1.8.6"
},
"devDependencies": {
"@babel/core": "^7.18.10",
Expand Down
4 changes: 4 additions & 0 deletions src/mapper/v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4079,6 +4079,10 @@ export const MapperV2: IMapper = {
requestType: RequestType.Get,
returnType: "driveItemVersions"
},
setSensitivityLabel: {
argNames: ["actionSource", "assignmentMethod", "id", "justificationText"],
requestType: RequestType.PostWithArgsInBody
},
restore: {
argNames: ["parentReference", "name"],
requestType: RequestType.PostWithArgsInBody,
Expand Down
2 changes: 1 addition & 1 deletion src/rest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { IREST } from "../@types";
* SharePoint REST Library
*/
export const $REST: IREST = {
__ver: 8.75,
__ver: 8.76,
AppContext: (siteUrl: string) => { return Lib.Site.getAppContext(siteUrl); },
Apps: Lib.Apps,
ContextInfo: Lib.ContextInfo,
Expand Down

0 comments on commit 3216862

Please sign in to comment.