gd-sprest-def 1.3.4 → 1.3.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/lib/Microsoft/Graph/entityTypes.d.ts +5 -5
- package/main.js +9 -2
- package/package.json +1 -1
|
@@ -158,7 +158,7 @@ export interface featureStatus {
|
|
|
158
158
|
/*********************************************
|
|
159
159
|
* listItem
|
|
160
160
|
**********************************************/
|
|
161
|
-
export interface listItem
|
|
161
|
+
export interface listItem extends baseItem {
|
|
162
162
|
contentType: ComplexTypes.contentTypeFacet;
|
|
163
163
|
sharepointIds: ComplexTypes.sharepointIds;
|
|
164
164
|
activities: () => IBaseExecution<activityEntity[]>;
|
|
@@ -187,14 +187,14 @@ export interface baseItemVersion {
|
|
|
187
187
|
/*********************************************
|
|
188
188
|
* listItemVersion
|
|
189
189
|
**********************************************/
|
|
190
|
-
export interface listItemVersion
|
|
190
|
+
export interface listItemVersion extends baseItemVersion {
|
|
191
191
|
|
|
192
192
|
fields: () => IBaseExecution<fieldValueSet>;
|
|
193
193
|
}
|
|
194
194
|
/*********************************************
|
|
195
195
|
* driveItemVersion
|
|
196
196
|
**********************************************/
|
|
197
|
-
export interface driveItemVersion
|
|
197
|
+
export interface driveItemVersion extends baseItemVersion {
|
|
198
198
|
size: number;
|
|
199
199
|
streams: () => IBaseExecution<stream[]>;
|
|
200
200
|
}
|
|
@@ -292,7 +292,7 @@ export interface driveAppAction {
|
|
|
292
292
|
/*********************************************
|
|
293
293
|
* list
|
|
294
294
|
**********************************************/
|
|
295
|
-
export interface list
|
|
295
|
+
export interface list extends baseItem {
|
|
296
296
|
displayName: string;
|
|
297
297
|
list: ComplexTypes.listInfo;
|
|
298
298
|
sharepointIds: ComplexTypes.sharepointIds;
|
|
@@ -322,7 +322,7 @@ export interface baseItem {
|
|
|
322
322
|
/*********************************************
|
|
323
323
|
* site
|
|
324
324
|
**********************************************/
|
|
325
|
-
export interface site
|
|
325
|
+
export interface site extends baseItem {
|
|
326
326
|
root: ComplexTypes.root;
|
|
327
327
|
sharepointIds: ComplexTypes.sharepointIds;
|
|
328
328
|
siteCollection: ComplexTypes.siteCollection;
|
package/main.js
CHANGED
|
@@ -372,7 +372,14 @@ function processGraph(schemas) {
|
|
|
372
372
|
// Parse the values
|
|
373
373
|
for (let entityType of value) {
|
|
374
374
|
let name = entityType.$.Name;
|
|
375
|
-
let returnType = entityType
|
|
375
|
+
let returnType = entityType.$.BaseType;
|
|
376
|
+
|
|
377
|
+
// See if the return type exists
|
|
378
|
+
if (returnType) {
|
|
379
|
+
// Update the return type
|
|
380
|
+
let values = returnType.split(".");
|
|
381
|
+
returnType = values[1];
|
|
382
|
+
}
|
|
376
383
|
|
|
377
384
|
// Parse the properties
|
|
378
385
|
let props = [];
|
|
@@ -1121,7 +1128,7 @@ function processREST(schemas) {
|
|
|
1121
1128
|
// Update the references
|
|
1122
1129
|
updateReferences(fileImports, dirName, type);
|
|
1123
1130
|
|
|
1124
|
-
if(propName == "Cells") {
|
|
1131
|
+
if (propName == "Cells") {
|
|
1125
1132
|
console.log(propName);
|
|
1126
1133
|
console.log(type);
|
|
1127
1134
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gd-sprest-def",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.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",
|