gd-sprest-def
Advanced tools
Comparing version 0.2.6 to 0.2.7
@@ -214,3 +214,3 @@ import { IBaseExecution } from "../../../"; | ||
export interface SPWebServicePropMethods { | ||
ContentService(): IBaseExecution<Microsoft.SharePoint.Administration.SPWebService> & Microsoft.SharePoint.Administration.SPWebServiceCollections; | ||
ContentService(): IBaseQuery<Microsoft.SharePoint.Administration.SPWebService, Microsoft.SharePoint.Administration.SPWebServiceQuery> & Microsoft.SharePoint.Administration.SPWebServiceCollections; | ||
} | ||
@@ -217,0 +217,0 @@ |
@@ -201,4 +201,4 @@ import { IBaseExecution } from "../../"; | ||
export interface VideoItemPropMethods { | ||
Author(): IBaseExecution<SP.User> & SP.UserCollections & SP.UserMethods; | ||
Owner(): IBaseExecution<SP.User> & SP.UserCollections & SP.UserMethods; | ||
Author(): IBaseQuery<SP.User, SP.UserQuery> & SP.UserCollections & SP.UserMethods; | ||
Owner(): IBaseQuery<SP.User, SP.UserQuery> & SP.UserCollections & SP.UserMethods; | ||
} | ||
@@ -1158,3 +1158,3 @@ | ||
export interface SpotlightChannelPropMethods { | ||
Channel(): IBaseExecution<SP.Publishing.VideoChannel> & SP.Publishing.VideoChannelCollections & SP.Publishing.VideoChannelMethods; | ||
Channel(): IBaseQuery<SP.Publishing.VideoChannel, SP.Publishing.VideoChannelQuery> & SP.Publishing.VideoChannelCollections & SP.Publishing.VideoChannelMethods; | ||
} | ||
@@ -1372,3 +1372,3 @@ | ||
export interface SpotlightVideoPropMethods { | ||
Video(): IBaseExecution<SP.Publishing.VideoItem> & SP.Publishing.VideoItemCollections & SP.Publishing.VideoItemMethods; | ||
Video(): IBaseQuery<SP.Publishing.VideoItem, SP.Publishing.VideoItemQuery> & SP.Publishing.VideoItemCollections & SP.Publishing.VideoItemMethods; | ||
} | ||
@@ -1375,0 +1375,0 @@ |
@@ -512,3 +512,3 @@ import { IBaseExecution } from "../../"; | ||
FollowedContent(): IBaseExecution<SP.UserProfiles.FollowedContent> & SP.UserProfiles.FollowedContentCollections & SP.UserProfiles.FollowedContentMethods; | ||
PersonalSite(): IBaseExecution<SP.Site> & SP.SiteCollections & SP.SiteMethods; | ||
PersonalSite(): IBaseQuery<SP.Site, SP.SiteQuery> & SP.SiteCollections & SP.SiteMethods; | ||
} | ||
@@ -515,0 +515,0 @@ |
@@ -144,3 +144,3 @@ import { IBaseExecution } from "../../"; | ||
export interface ThemeManagerPropMethods { | ||
ContextThemeManager(): IBaseExecution<SP.Utilities.ThemeManager> & SP.Utilities.ThemeManagerCollections & SP.Utilities.ThemeManagerMethods; | ||
ContextThemeManager(): IBaseQuery<SP.Utilities.ThemeManager, SP.Utilities.ThemeManagerQuery> & SP.Utilities.ThemeManagerCollections & SP.Utilities.ThemeManagerMethods; | ||
} | ||
@@ -147,0 +147,0 @@ |
@@ -99,3 +99,3 @@ import { IBaseExecution } from "../../"; | ||
export interface WebPartDefinitionPropMethods { | ||
WebPart(): IBaseExecution<SP.WebParts.WebPart> & SP.WebParts.WebPartCollections; | ||
WebPart(): IBaseQuery<SP.WebParts.WebPart, SP.WebParts.WebPartQuery> & SP.WebParts.WebPartCollections; | ||
} | ||
@@ -102,0 +102,0 @@ |
@@ -204,3 +204,3 @@ import { IBaseExecution } from "../../"; | ||
export interface WorkflowInstanceServicePropMethods { | ||
Current(): IBaseExecution<SP.WorkflowServices.WorkflowInstanceService> & SP.WorkflowServices.WorkflowInstanceServiceCollections & SP.WorkflowServices.WorkflowInstanceServiceMethods; | ||
Current(): IBaseQuery<SP.WorkflowServices.WorkflowInstanceService, SP.WorkflowServices.WorkflowInstanceServiceQuery> & SP.WorkflowServices.WorkflowInstanceServiceCollections & SP.WorkflowServices.WorkflowInstanceServiceMethods; | ||
} | ||
@@ -266,3 +266,3 @@ | ||
export interface InteropServicePropMethods { | ||
Current(): IBaseExecution<SP.WorkflowServices.InteropService> & SP.WorkflowServices.InteropServiceCollections & SP.WorkflowServices.InteropServiceMethods; | ||
Current(): IBaseQuery<SP.WorkflowServices.InteropService, SP.WorkflowServices.InteropServiceQuery> & SP.WorkflowServices.InteropServiceCollections & SP.WorkflowServices.InteropServiceMethods; | ||
} | ||
@@ -329,3 +329,3 @@ | ||
export interface WorkflowServicesManagerPropMethods { | ||
Current(): IBaseExecution<SP.WorkflowServices.WorkflowServicesManager> & SP.WorkflowServices.WorkflowServicesManagerCollections & SP.WorkflowServices.WorkflowServicesManagerMethods; | ||
Current(): IBaseQuery<SP.WorkflowServices.WorkflowServicesManager, SP.WorkflowServices.WorkflowServicesManagerQuery> & SP.WorkflowServices.WorkflowServicesManagerCollections & SP.WorkflowServices.WorkflowServicesManagerMethods; | ||
} | ||
@@ -464,3 +464,3 @@ | ||
export interface WorkflowSubscriptionServicePropMethods { | ||
Current(): IBaseExecution<SP.WorkflowServices.WorkflowSubscriptionService> & SP.WorkflowServices.WorkflowSubscriptionServiceCollections & SP.WorkflowServices.WorkflowSubscriptionServiceMethods; | ||
Current(): IBaseQuery<SP.WorkflowServices.WorkflowSubscriptionService, SP.WorkflowServices.WorkflowSubscriptionServiceQuery> & SP.WorkflowServices.WorkflowSubscriptionServiceCollections & SP.WorkflowServices.WorkflowSubscriptionServiceMethods; | ||
} | ||
@@ -467,0 +467,0 @@ |
@@ -486,3 +486,3 @@ import { IBaseExecution } from "../../../"; | ||
PersistedProperties(): IBaseExecution<SP.WorkManagement.OM.PersistedProperties> & SP.WorkManagement.OM.PersistedPropertiesCollections; | ||
RefreshHistory(): IBaseExecution<SP.WorkManagement.OM.RefreshHistory> & SP.WorkManagement.OM.RefreshHistoryCollections; | ||
RefreshHistory(): IBaseQuery<SP.WorkManagement.OM.RefreshHistory, SP.WorkManagement.OM.RefreshHistoryQuery> & SP.WorkManagement.OM.RefreshHistoryCollections; | ||
UserSettings(): IBaseExecution<SP.WorkManagement.OM.UserSettings> & SP.WorkManagement.OM.UserSettingsCollections; | ||
@@ -489,0 +489,0 @@ } |
10
main.js
@@ -456,4 +456,12 @@ let fs = require("fs"); | ||
} else { | ||
// See if there is a query | ||
if (hasCollections[methodType]) { | ||
// Add the method | ||
props.push('\t' + collection + '(): ' + 'IBaseQuery<' + methodType + ', ' + methodType + 'Query> & ' + methodType + 'Collections' + (hasMethods[methodType] ? ' & ' + methodType + 'Methods' : '') + ';'); | ||
} else { | ||
// Add the method | ||
props.push('\t' + collection + '(): ' + 'IBaseExecution<' + methodType + '> & ' + methodType + 'Collections' + (hasMethods[methodType] ? ' & ' + methodType + 'Methods' : '') + ';'); | ||
} | ||
// Add the method | ||
props.push('\t' + collection + '(): ' + 'IBaseExecution<' + methodType + '> & ' + methodType + 'Collections' + (hasMethods[methodType] ? ' & ' + methodType + 'Methods' : '') + ';'); | ||
query.push('\t' + collection + ': ' + methodType + ' & ' + methodType + 'Collections;'); | ||
@@ -460,0 +468,0 @@ } |
{ | ||
"name": "gd-sprest-def", | ||
"version": "0.2.6", | ||
"version": "0.2.7", | ||
"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)", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3692765
33453