invokeApi support

Added support for invokeApi call, with its related InvokeApiOptions.
This commit is contained in:
JCKodel 2015-02-03 11:50:39 -02:00
parent 23b6edd28c
commit dfd94df9d7

View File

@ -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 }; };