1818
1919 let isEnabled : boolean ;
2020
21+ let ignoreFeatureCheckForHostUsers : boolean ;
22+
2123 let tenantIdCookieName : string ;
2224
2325 function setTenantIdCookie ( tenantId ?: number ) : void ;
5557 isDefault : boolean ;
5658
5759 isDisabled : boolean ;
60+
61+ isRightToLeft : boolean ;
5862
5963 }
6064
7478
7579 let defaultSourceName : string ;
7680
77- let values : { [ key : string ] : string } ;
81+ let values : { [ key : string ] : { [ key : string ] : string } } ;
7882
7983 let abpWeb : ( key : string ) => string ;
8084
8185 function localize ( key : string , sourceName : string ) : string ;
8286
83- function getSource ( sourceName : string ) : ( key : string ) => string ;
87+ function getSource ( sourceName : string ) : ( ... key : string [ ] ) => string ;
8488
8589 function isCurrentCulture ( name : string ) : boolean ;
8690 }
109113 function getToken ( ) : string ;
110114
111115 function clearToken ( ) : void ;
116+
117+ let refreshTokenCookieName : string ;
118+
119+ /**
120+ * Saves refreshToken token.
121+ * @param refreshToken The token to be saved.
122+ * @param expireDate Optional expire date. If not specified, token will be deleted at end of the session.
123+ */
124+ function setRefreshToken ( refreshToken : string , expireDate ?: Date ) : void ;
125+
126+ function getRefreshToken ( ) : string ;
127+
128+ function clearRefreshToken ( ) : void ;
112129 }
113130
114131 namespace features {
200217 READ
201218 }
202219
203- //TODO: We can extend this interface to define built-in notification types, like ILocalizableMessageNotificationData
220+ //TODO: We can extend this interface to define built-in notification types, like ILocalizableMessageNotificationData
204221 interface INotificationData {
205222
206223 type : string ;
293310
294311 //TODO: these methods return jQuery.Promise instead of any. fix it.
295312
296- function info ( message : string , title ?: string ) : any ;
297-
298- function success ( message : string , title ?: string ) : any ;
299-
300- function warn ( message : string , title ?: string ) : any ;
313+ function info ( message : string , title ?: string , options ?: any ) : any ;
301314
302- function error ( message : string , title ?: string ) : any ;
315+ function success ( message : string , title ?: string , options ?: any ) : any ;
303316
304- function confirm ( message : string , callback ?: ( result : boolean ) => void ) : any ;
317+ function warn ( message : string , title ?: string , options ?: any ) : any ;
305318
306- function confirm ( message : string , title ?: string , callback ?: ( result : boolean ) => void ) : any ;
319+ function error ( message : string , title ?: string , options ?: any ) : any ;
307320
321+ function confirm ( message : string , title ?: string , callback ?: ( isConfirmed : boolean , isCancelled ?: boolean ) => void , options ?: any ) : any ;
308322 }
309323
310324 namespace ui {
359373 * This is a simple implementation created to be used by ABP.
360374 * Please use a complete cookie library if you need.
361375 * @param {string } key
362- * @param {string } value
376+ * @param {string } value
363377 * @param {Date } expireDate (optional). If not specified the cookie will expire at the end of session.
364378 * @param {string } path (optional)
379+ * @param {string } domain (optional)
380+ * @param {any } attributes (optional)
365381 */
366- function setCookieValue ( key : string , value : string , expireDate ?: Date , path ?: string ) : void ;
382+ function setCookieValue ( key : string , value : string , expireDate ?: Date , path ?: string , domain ?: string , attributes ?: any ) : void ;
367383
368384 /**
369385 * Gets a cookie with given key.
452468
453469 }
454470
455- }
471+ }
0 commit comments