gd-sprest-def
Advanced tools
Comparing version 1.3.4 to 1.3.5
@@ -161,3 +161,3 @@ import { IBaseExecution } from "../../base"; | ||
**********************************************/ | ||
export interface listItem { | ||
export interface listItem extends oneDrive.baseItem { | ||
contentType: ComplexTypes.contentTypeFacet; | ||
@@ -191,3 +191,3 @@ sharepointIds: ComplexTypes.sharepointIds; | ||
**********************************************/ | ||
export interface listItemVersion { | ||
export interface listItemVersion extends oneDrive.baseItemVersion { | ||
@@ -199,3 +199,3 @@ fields: () => IBaseExecution<fieldValueSet>; | ||
**********************************************/ | ||
export interface driveItemVersion { | ||
export interface driveItemVersion extends oneDrive.baseItemVersion { | ||
size: number; | ||
@@ -298,3 +298,3 @@ streams: () => IBaseExecution<stream[]>; | ||
**********************************************/ | ||
export interface list { | ||
export interface list extends oneDrive.baseItem { | ||
displayName: string; | ||
@@ -329,3 +329,3 @@ list: ComplexTypes.listInfo; | ||
**********************************************/ | ||
export interface site { | ||
export interface site extends oneDrive.baseItem { | ||
root: ComplexTypes.root; | ||
@@ -332,0 +332,0 @@ sharepointIds: ComplexTypes.sharepointIds; |
12
main.js
@@ -375,4 +375,12 @@ let fs = require("fs"); | ||
let name = entityType.$.Name; | ||
let returnType = entityType.BaseType; | ||
let returnType = entityType.$.BaseType; | ||
// See if the return type exists | ||
if (returnType) { | ||
// Update the return type | ||
let values = returnType.split("."); | ||
values.length > 0 ? values.slice(0, 1) : null; | ||
returnType = values.join("."); | ||
} | ||
// Parse the properties | ||
@@ -1125,3 +1133,3 @@ let props = []; | ||
if(propName == "Cells") { | ||
if (propName == "Cells") { | ||
console.log(propName); | ||
@@ -1128,0 +1136,0 @@ console.log(type); |
{ | ||
"name": "gd-sprest-def", | ||
"version": "1.3.4", | ||
"version": "1.3.5", | ||
"description": "TypeScript definition files generated from the $metadata REST endpoint in SharePoint.", | ||
@@ -5,0 +5,0 @@ "author": "Gunjan Datta <me@dattabase.com> (https://gunjandatta.github.io)", |
6080604
66424