|
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; |
|
109 | 111 | function getToken(): string; |
110 | 112 |
|
111 | 113 | function clearToken(): void; |
| 114 | + |
| 115 | + let refreshTokenCookieName: string; |
| 116 | + |
| 117 | + /** |
| 118 | + * Saves refreshToken token. |
| 119 | + * @param refreshToken The token to be saved. |
| 120 | + * @param expireDate Optional expire date. If not specified, token will be deleted at end of the session. |
| 121 | + */ |
| 122 | + function setRefreshToken(refreshToken: string, expireDate?: Date): void; |
| 123 | + |
| 124 | + function getRefreshToken(): string; |
| 125 | + |
| 126 | + function clearRefreshToken(): void; |
112 | 127 | } |
113 | 128 |
|
114 | 129 | namespace features { |
|
293 | 308 |
|
294 | 309 | //TODO: these methods return jQuery.Promise instead of any. fix it. |
295 | 310 |
|
296 | | - function info(message: string, title?: string): any; |
297 | | - |
298 | | - function success(message: string, title?: string): any; |
| 311 | + function info(message: string, title?: string, options?: any): any; |
299 | 312 |
|
300 | | - function warn(message: string, title?: string): any; |
| 313 | + function success(message: string, title?: string, options?: any): any; |
301 | 314 |
|
302 | | - function error(message: string, title?: string): any; |
| 315 | + function warn(message: string, title?: string, options?: any): any; |
303 | 316 |
|
304 | | - function confirm(message: string, callback?: (result: boolean) => void): any; |
| 317 | + function error(message: string, title?: string, options?: any): any; |
305 | 318 |
|
306 | | - function confirm(message: string, title?: string, callback?: (result: boolean) => void): any; |
| 319 | + function confirm(message: string, title?: string, callback?: (result: boolean) => void, options?: any): any; |
307 | 320 |
|
308 | 321 | } |
309 | 322 |
|
|
0 commit comments