@@ -46,7 +46,7 @@ export interface ISubmissionAdapter {
46
46
export interface ISubmissionClient {
47
47
postEvents ( events : IEvent [ ] , config : Configuration , callback : ( response : SubmissionResponse ) => void , isAppExiting ?: boolean ) : void ;
48
48
postUserDescription ( referenceId : string , description : IUserDescription , config : Configuration , callback : ( response : SubmissionResponse ) => void ) : void ;
49
- getSettings ( config : Configuration , callback : ( response : SettingsResponse ) => void ) : void ;
49
+ getSettings ( config : Configuration , version : number , callback : ( response : SettingsResponse ) => void ) : void ;
50
50
sendHeartbeat ( sessionIdOrUserId : string , closeSession : boolean , config : Configuration ) : void ;
51
51
}
52
52
export interface IConfigurationSettings {
@@ -69,8 +69,9 @@ export declare class SettingsManager {
69
69
private static _handlers ;
70
70
static onChanged ( handler : ( config : Configuration ) => void ) : void ;
71
71
static applySavedServerSettings ( config : Configuration ) : void ;
72
+ static getVersion ( config : Configuration ) : number ;
72
73
static checkVersion ( version : number , config : Configuration ) : void ;
73
- static updateSettings ( config : Configuration ) : void ;
74
+ static updateSettings ( config : Configuration , version ?: number ) : void ;
74
75
private static changed ( config ) ;
75
76
private static getSavedServerSettings ( config ) ;
76
77
}
@@ -152,7 +153,7 @@ export declare class DefaultSubmissionClient implements ISubmissionClient {
152
153
configurationVersionHeader : string ;
153
154
postEvents ( events : IEvent [ ] , config : Configuration , callback : ( response : SubmissionResponse ) => void , isAppExiting ?: boolean ) : void ;
154
155
postUserDescription ( referenceId : string , description : IUserDescription , config : Configuration , callback : ( response : SubmissionResponse ) => void ) : void ;
155
- getSettings ( config : Configuration , callback : ( response : SettingsResponse ) => void ) : void ;
156
+ getSettings ( config : Configuration , version : number , callback : ( response : SettingsResponse ) => void ) : void ;
156
157
sendHeartbeat ( sessionIdOrUserId : string , closeSession : boolean , config : Configuration ) : void ;
157
158
private createRequest ( config , method , url , data ?) ;
158
159
private createSubmissionCallback ( config , callback ) ;
@@ -198,6 +199,8 @@ export declare class Configuration implements IConfigurationSettings {
198
199
serverUrl : string ;
199
200
private _heartbeatServerUrl ;
200
201
heartbeatServerUrl : string ;
202
+ private _updateSettingsWhenIdleInterval ;
203
+ updateSettingsWhenIdleInterval : number ;
201
204
private _dataExclusions ;
202
205
private _userAgentBotPatterns ;
203
206
dataExclusions : string [ ] ;
@@ -275,6 +278,8 @@ export declare class SubmissionResponse {
275
278
export declare class ExceptionlessClient {
276
279
private static _instance ;
277
280
config : Configuration ;
281
+ private _intervalId ;
282
+ private _timeoutId ;
278
283
constructor ( ) ;
279
284
constructor ( settings : IConfigurationSettings ) ;
280
285
constructor ( apiKey : string , serverUrl ?: string ) ;
@@ -378,14 +383,6 @@ export interface IInnerError {
378
383
stack_trace ?: IStackFrame [ ] ;
379
384
target_method ?: IMethod ;
380
385
}
381
- export declare class SettingsResponse {
382
- success : boolean ;
383
- settings : any ;
384
- settingsVersion : number ;
385
- message : string ;
386
- exception : any ;
387
- constructor ( success : boolean , settings : any , settingsVersion ?: number , exception ?: any , message ?: string ) ;
388
- }
389
386
export declare class ConfigurationDefaultsPlugin implements IEventPlugin {
390
387
priority : number ;
391
388
name : string ;
@@ -429,14 +426,13 @@ export declare class EventExclusionPlugin implements IEventPlugin {
429
426
name : string ;
430
427
run ( context : EventPluginContext , next ?: ( ) => void ) : void ;
431
428
}
432
- export declare class UpdateConfigurationSettingsWhileIdlePlugin implements IEventPlugin {
433
- priority : number ;
434
- name : string ;
435
- private _config ;
436
- private _interval ;
437
- private _intervalId ;
438
- constructor ( config : Configuration , interval ?: number ) ;
439
- run ( context : EventPluginContext , next ?: ( ) => void ) : void ;
429
+ export declare class SettingsResponse {
430
+ success : boolean ;
431
+ settings : any ;
432
+ settingsVersion : number ;
433
+ message : string ;
434
+ exception : any ;
435
+ constructor ( success : boolean , settings : any , settingsVersion ?: number , exception ?: any , message ?: string ) ;
440
436
}
441
437
export interface IError extends IInnerError {
442
438
modules ?: IModule [ ] ;
0 commit comments