@@ -70,7 +70,7 @@ export interface MultinetAxiosInstance extends AxiosInstance {
7070 createSession ( workspace : string , itemId : number , type : 'network' | 'table' , visApp : string , name : string ) : AxiosPromise < any > ;
7171 listSessions ( workspace : string , type : 'network' | 'table' ) : AxiosPromise < any > ;
7272 deleteSession ( workspace : string , sessionId : number , type : 'network' | 'table' ) : Promise < any > ;
73- updateSession ( workspace : string , sessionId : number , type : 'network' | 'table' , state : string ) : AxiosPromise < any > ;
73+ updateSession ( workspace : string , sessionId : number , type : 'network' | 'table' , state : object ) : AxiosPromise < any > ;
7474 renameSession ( workspace : string , sessionId : number , type : 'network' | 'table' , name : string ) : AxiosPromise < any > ;
7575 getSession ( workspace : string , sessionId : number , type : 'network' | 'table' ) : AxiosPromise < any > ;
7676}
@@ -252,7 +252,7 @@ export function multinetAxiosInstance(config: AxiosRequestConfig): MultinetAxios
252252 return this . delete ( `workspaces/${ workspace } /sessions/${ type } /${ sessionId } /` ) ;
253253 } ;
254254
255- Proto . updateSession = function ( workspace : string , sessionId : number , type : 'network' | 'table' , state : string ) : AxiosPromise < any > {
255+ Proto . updateSession = function ( workspace : string , sessionId : number , type : 'network' | 'table' , state : object ) : AxiosPromise < any > {
256256 return this . patch ( `workspaces/${ workspace } /sessions/${ type } /${ sessionId } /state/` , {
257257 state,
258258 } ) ;
0 commit comments