From dfd94df9d7634ca8f5ed2e137a69a7948ee14495 Mon Sep 17 00:00:00 2001 From: JCKodel Date: Tue, 3 Feb 2015 11:50:39 -0200 Subject: [PATCH] invokeApi support Added support for invokeApi call, with its related InvokeApiOptions. --- .../AzureMobileServicesClient.d.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/azure-mobile-services-client/AzureMobileServicesClient.d.ts b/azure-mobile-services-client/AzureMobileServicesClient.d.ts index 2aec111143..107cb242b8 100644 --- a/azure-mobile-services-client/AzureMobileServicesClient.d.ts +++ b/azure-mobile-services-client/AzureMobileServicesClient.d.ts @@ -19,8 +19,17 @@ declare module Microsoft.WindowsAzure { logout(): void; getTable(tableName: string): MobileServiceTable; withFilter(serviceFilter: (request: any, next: (request: any, callback: (error:any, response: any) => void ) => void, callback: (error: any, response: any) => void ) => void ) : MobileServiceClient; + invokeApi(apiName: string, options?:InvokeApiOptions): asyncPromise; } + interface InvokeApiOptions + { + method?: string; + body?: any; + headers?: Object; + parameters?: Object; + } + // User object based on Microsoft Azure documentation: http://msdn.microsoft.com/en-us/library/windowsazure/jj554220.aspx interface User { getIdentities(): any;// { [providerName: string]: { userId: string, accessToken: string, accessTokenSecret?: string }; };