18
18
19
19
let isEnabled : boolean ;
20
20
21
+ let ignoreFeatureCheckForHostUsers : boolean ;
22
+
21
23
let tenantIdCookieName : string ;
22
24
23
25
function setTenantIdCookie ( tenantId ?: number ) : void ;
55
57
isDefault : boolean ;
56
58
57
59
isDisabled : boolean ;
60
+
61
+ isRightToLeft : boolean ;
58
62
59
63
}
60
64
74
78
75
79
let defaultSourceName : string ;
76
80
77
- let values : { [ key : string ] : string } ;
81
+ let values : { [ key : string ] : { [ key : string ] : string } } ;
78
82
79
83
let abpWeb : ( key : string ) => string ;
80
84
81
85
function localize ( key : string , sourceName : string ) : string ;
82
86
83
- function getSource ( sourceName : string ) : ( key : string ) => string ;
87
+ function getSource ( sourceName : string ) : ( ... key : string [ ] ) => string ;
84
88
85
89
function isCurrentCulture ( name : string ) : boolean ;
86
90
}
109
113
function getToken ( ) : string ;
110
114
111
115
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 ;
112
129
}
113
130
114
131
namespace features {
200
217
READ
201
218
}
202
219
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
204
221
interface INotificationData {
205
222
206
223
type : string ;
293
310
294
311
//TODO: these methods return jQuery.Promise instead of any. fix it.
295
312
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 ;
301
314
302
- function error ( message : string , title ?: string ) : any ;
315
+ function success ( message : string , title ?: string , options ?: any ) : any ;
303
316
304
- function confirm ( message : string , callback ?: ( result : boolean ) => void ) : any ;
317
+ function warn ( message : string , title ?: string , options ?: any ) : any ;
305
318
306
- function confirm ( message : string , title ?: string , callback ?: ( result : boolean ) => void ) : any ;
319
+ function error ( message : string , title ?: string , options ?: any ) : any ;
307
320
321
+ function confirm ( message : string , title ?: string , callback ?: ( isConfirmed : boolean , isCancelled ?: boolean ) => void , options ?: any ) : any ;
308
322
}
309
323
310
324
namespace ui {
359
373
* This is a simple implementation created to be used by ABP.
360
374
* Please use a complete cookie library if you need.
361
375
* @param {string } key
362
- * @param {string } value
376
+ * @param {string } value
363
377
* @param {Date } expireDate (optional). If not specified the cookie will expire at the end of session.
364
378
* @param {string } path (optional)
379
+ * @param {string } domain (optional)
380
+ * @param {any } attributes (optional)
365
381
*/
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 ;
367
383
368
384
/**
369
385
* Gets a cookie with given key.
452
468
453
469
}
454
470
455
- }
471
+ }
0 commit comments