gd-sprest-def 2.0.5 → 2.0.7

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/base.d.ts CHANGED
@@ -158,6 +158,7 @@ export interface IMethodInfo {
158
158
  replaceEndpointFl?: boolean;
159
159
  requestMethod?: string;
160
160
  requestType?: number;
161
+ returnProp?: string;
161
162
  returnType?: string;
162
163
  }
163
164
 
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
package/lib/base.d.ts CHANGED
@@ -158,6 +158,7 @@ export interface IMethodInfo {
158
158
  replaceEndpointFl?: boolean;
159
159
  requestMethod?: string;
160
160
  requestType?: number;
161
+ returnProp?: string;
161
162
  returnType?: string;
162
163
  }
163
164
 
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.5",
3
+ "version": "2.0.7",
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",