gd-sprest-def 2.0.4 → 2.0.6

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
@@ -428,7 +428,7 @@ module.exports = {
428
428
  // Sensitivity Label Collection
429
429
  "SP.SensitivityLabelCollection": [
430
430
  {
431
- name: "getSensitivityLabelAsStream",
431
+ name: "getSensitivityLabelsAsStream",
432
432
  returnType: "any",
433
433
  params: [
434
434
  { $: { Name: "expand", Type: "string" } },
package/customV2.js CHANGED
@@ -52,28 +52,40 @@ module.exports = {
52
52
  argNames: [{ name: "values", type: "{ [key: string]: any }" }]
53
53
  }
54
54
  ],
55
- permission: [
55
+ listCollection: [
56
+ {
57
+ name: "add",
58
+ argNames: [{ name: "values", type: "{ [key: string]: any }" }]
59
+ }
60
+ ],
61
+ listItem: [
56
62
  {
57
63
  name: "delete"
58
64
  },
59
65
  {
60
66
  name: "update",
61
- argNames: [{ name: "values", type: "{ roles: string[], grantedToIdentities?: [{ application: { id: string, displayName?: string } }] }" }]
67
+ argNames: [{ name: "values", type: "{ [key: string]: any }" }]
62
68
  }
63
69
  ],
64
- permissionCollection: [
70
+ listItemCollection: [
65
71
  {
66
72
  name: "add",
67
- argNames: [{ name: "values", type: "{ roles: string[], grantedToIdentities: [{ application: { id: string, displayName?: string } }] }" }]
73
+ argNames: [{ name: "fields", type: "{ [key: string]: any }" }]
68
74
  }
69
75
  ],
70
- listItem: [
76
+ permission: [
71
77
  {
72
78
  name: "delete"
73
79
  },
74
80
  {
75
81
  name: "update",
76
- argNames: [{ name: "values", type: "{ [key: string]: any }" }]
82
+ argNames: [{ name: "values", type: "{ roles: string[], grantedToIdentities?: [{ application: { id: string, displayName?: string } }] }" }]
83
+ }
84
+ ],
85
+ permissionCollection: [
86
+ {
87
+ name: "add",
88
+ argNames: [{ name: "values", type: "{ roles: string[], grantedToIdentities: [{ application: { id: string, displayName?: string } }] }" }]
77
89
  }
78
90
  ]
79
91
  }
@@ -9929,7 +9929,7 @@ export interface listOData extends baseItemOData {
9929
9929
  update(values: { [key: string]: any }): IBaseExecution<void>;
9930
9930
  }
9931
9931
  export interface listCollection extends IBaseCollection<list, listOData & listProps> {
9932
- add(values?: any): IBaseExecution<list>;
9932
+ add(values: { [key: string]: any }):IBaseExecution<void>
9933
9933
  }
9934
9934
  /*********************************************
9935
9935
  * listItem
@@ -9966,7 +9966,7 @@ export interface listItemOData extends baseItemOData {
9966
9966
  getActivitiesByInterval(startDateTime, endDateTime, interval): itemActivityStat[];
9967
9967
  }
9968
9968
  export interface listItemCollection extends IBaseCollection<listItem, listItemOData & listItemProps> {
9969
- add(values?: any): IBaseExecution<listItem>;
9969
+ add(fields: { [key: string]: any }):IBaseExecution<void>
9970
9970
  }
9971
9971
  /*********************************************
9972
9972
  * listItemVersion
@@ -6694,7 +6694,7 @@ export interface SensitivityLabelCollectionOData extends Base.IBaseResult, Sensi
6694
6694
  * SensitivityLabelCollectionMethods
6695
6695
  **********************************************/
6696
6696
  export interface SensitivityLabelCollectionMethods {
6697
- getSensitivityLabelAsStream(expand?: string, filter?: string): Base.IBaseExecution<any>;
6697
+ getSensitivityLabelsAsStream(expand?: string, filter?: string): Base.IBaseExecution<any>;
6698
6698
  }
6699
6699
 
6700
6700
  /*********************************************
package/lib/mapper.d.ts CHANGED
@@ -10024,7 +10024,7 @@ export interface IMapper {
10024
10024
 
10025
10025
  "SP.SensitivityLabelCollection": {
10026
10026
  properties?: Array<string>;
10027
- getSensitivityLabelAsStream: IMapperMethod & {
10027
+ getSensitivityLabelsAsStream: IMapperMethod & {
10028
10028
  argNames: [ "expand", "filter" ],
10029
10029
  },
10030
10030
 
package/lib/mapper.ts CHANGED
@@ -9725,7 +9725,7 @@ export const Mapper: IMapper = {
9725
9725
  },
9726
9726
 
9727
9727
  "SP.SensitivityLabelCollection": {
9728
- getSensitivityLabelAsStream: {
9728
+ getSensitivityLabelsAsStream: {
9729
9729
  argNames: [ "expand", "filter" ],
9730
9730
  },
9731
9731
 
package/lib/mapperv2.d.ts CHANGED
@@ -3860,6 +3860,7 @@ export interface IMapper {
3860
3860
  lists: {
3861
3861
  properties?: Array<string>;
3862
3862
  query: IMapperMethod & { argNames: ["oData"] }
3863
+ add: IMapperMethod & { argNames: ["values"] }
3863
3864
  },
3864
3865
  listItem: {
3865
3866
  properties?: Array<string>;
@@ -3883,6 +3884,7 @@ export interface IMapper {
3883
3884
  listItems: {
3884
3885
  properties?: Array<string>;
3885
3886
  query: IMapperMethod & { argNames: ["oData"] }
3887
+ add: IMapperMethod & { argNames: ["fields"] }
3886
3888
  },
3887
3889
  listItemVersion: {
3888
3890
  properties?: Array<string>;
package/lib/mapperv2.ts CHANGED
@@ -6370,6 +6370,7 @@ export const Mapper: IMapper = {
6370
6370
  },
6371
6371
  lists: {
6372
6372
  query: { argNames: ["oData"], requestType: RequestType.OData },
6373
+ add: { argNames: ["values"], requestType: RequestType.PostBodyNoArgs },
6373
6374
  },
6374
6375
  listItem: {
6375
6376
  properties: [
@@ -6411,6 +6412,7 @@ export const Mapper: IMapper = {
6411
6412
  },
6412
6413
  listItems: {
6413
6414
  query: { argNames: ["oData"], requestType: RequestType.OData },
6415
+ add: { argNames: ["fields"], requestType: RequestType.PostBodyNoArgs },
6414
6416
  },
6415
6417
  listItemVersion: {
6416
6418
  properties: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gd-sprest-def",
3
- "version": "2.0.4",
3
+ "version": "2.0.6",
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",