gd-sprest-def 1.5.0 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/custom.js CHANGED
@@ -551,6 +551,14 @@ module.exports = {
551
551
  returnType: "Base.IBaseExecution<{ GetUserEffectivePermissions: SP.BasePermissions }>",
552
552
  params: [{ $: { Name: "userName", Type: "string" } }]
553
553
  },
554
+ {
555
+ name: "setProperty",
556
+ returnType: "Base.IBaseExecution<{ Property: SP.PropertyValue }>",
557
+ params: [
558
+ { $: { Name: "key", Type: "string" } },
559
+ { $: { Name: "value", Type: "string" } }
560
+ ]
561
+ },
554
562
  {
555
563
  name: "update",
556
564
  returnType: "any",
@@ -3450,6 +3450,7 @@ export interface WebMethods {
3450
3450
  uploadImage(listTitle?: string, imageName?: string, contentStream?: any, listId?: string, itemId?: number, fieldId?: string, overwrite?: boolean): Base.IBaseExecution<SP.SPImageItem>;
3451
3451
  doesUserHavePermissions(high?: number, low?: number): Base.IBaseExecution<boolean>;
3452
3452
  getUserEffectivePermissions(userName?: string): Base.IBaseExecution<{ GetUserEffectivePermissions: SP.BasePermissions }>;
3453
+ setProperty(key?: string, value?: string): Base.IBaseExecution<Base.IBaseExecution<{ Property: SP.PropertyValue }>>;
3453
3454
  update(properties?: any): Base.IBaseExecution<any>;
3454
3455
  }
3455
3456
 
package/lib/mapper.d.ts CHANGED
@@ -10520,6 +10520,10 @@ export interface IMapper {
10520
10520
  argNames: [ "title", "source" ],
10521
10521
  },
10522
10522
 
10523
+ setProperty: IMapperMethod & {
10524
+ argNames: [ "key", "value" ],
10525
+ },
10526
+
10523
10527
  setStorageEntity: IMapperMethod & {
10524
10528
  argNames: [ "key", "value", "description", "comments" ],
10525
10529
  },
package/lib/mapper.ts CHANGED
@@ -10198,6 +10198,10 @@ export const Mapper: IMapper = {
10198
10198
  argNames: [ "title", "source" ],
10199
10199
  },
10200
10200
 
10201
+ setProperty: {
10202
+ argNames: [ "key", "value" ],
10203
+ },
10204
+
10201
10205
  setStorageEntity: {
10202
10206
  argNames: [ "key", "value", "description", "comments" ],
10203
10207
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gd-sprest-def",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "TypeScript definition files generated from the $metadata REST endpoint in SharePoint.",
5
5
  "author": "Gunjan Datta <me@dattabase.com> (https://gunjandatta.github.io)",
6
6
  "license": "MIT",