@@ -59,7 +59,7 @@ export interface IEnvironmentInfoCollector {
59
59
getEnvironmentInfo ( context : EventPluginContext ) : IEnvironmentInfo ;
60
60
}
61
61
export interface IErrorParser {
62
- parse ( context : EventPluginContext , exception : Error ) : void ;
62
+ parse ( context : EventPluginContext , exception : Error ) : IError ;
63
63
}
64
64
export interface IModuleCollector {
65
65
getModules ( context : EventPluginContext ) : IModule [ ] ;
@@ -102,7 +102,7 @@ export declare class SettingsManager {
102
102
static checkVersion ( version : number , config : Configuration ) : void ;
103
103
static updateSettings ( config : Configuration ) : void ;
104
104
}
105
- export declare class InMemoryLastReferenceIdManager implements ILastReferenceIdManager {
105
+ export declare class DefaultLastReferenceIdManager implements ILastReferenceIdManager {
106
106
private _lastReferenceId ;
107
107
getLast ( ) : string ;
108
108
clearLast ( ) : void ;
@@ -183,13 +183,9 @@ export declare class Utils {
183
183
static stringify ( data : any , exclusions ?: string [ ] ) : string ;
184
184
}
185
185
export declare class Configuration implements IConfigurationSettings {
186
- private _apiKey ;
187
- private _enabled ;
188
- private _serverUrl ;
189
- private _dataExclusions ;
190
- private _plugins ;
191
186
defaultTags : string [ ] ;
192
187
defaultData : Object ;
188
+ enabled : boolean ;
193
189
environmentInfoCollector : IEnvironmentInfoCollector ;
194
190
errorParser : IErrorParser ;
195
191
lastReferenceIdManager : ILastReferenceIdManager ;
@@ -202,12 +198,15 @@ export declare class Configuration implements IConfigurationSettings {
202
198
storage : IStorage < Object > ;
203
199
queue : IEventQueue ;
204
200
constructor ( configSettings ?: IConfigurationSettings ) ;
201
+ private _apiKey ;
205
202
apiKey : string ;
206
203
isValid : boolean ;
204
+ private _serverUrl ;
207
205
serverUrl : string ;
208
- enabled : boolean ;
206
+ private _dataExclusions ;
209
207
dataExclusions : string [ ] ;
210
208
addDataExclusions ( ...exclusions : string [ ] ) : void ;
209
+ private _plugins ;
211
210
plugins : IEventPlugin [ ] ;
212
211
addPlugin ( plugin : IEventPlugin ) : void ;
213
212
addPlugin ( name : string , priority : number , pluginAction : ( context : EventPluginContext , next ?: ( ) => void ) => void ) : void ;
@@ -346,11 +345,6 @@ export declare class ErrorPlugin implements IEventPlugin {
346
345
name : string ;
347
346
run ( context : EventPluginContext , next ?: ( ) => void ) : void ;
348
347
}
349
- export declare class DuplicateCheckerPlugin implements IEventPlugin {
350
- priority : number ;
351
- name : string ;
352
- run ( context : EventPluginContext , next ?: ( ) => void ) : void ;
353
- }
354
348
export declare class ModuleInfoPlugin implements IEventPlugin {
355
349
priority : number ;
356
350
name : string ;
@@ -395,11 +389,9 @@ export declare class SettingsResponse {
395
389
}
396
390
export declare class NodeEnvironmentInfoCollector implements IEnvironmentInfoCollector {
397
391
getEnvironmentInfo ( context : EventPluginContext ) : IEnvironmentInfo ;
398
- private getIpAddresses ( ) ;
399
392
}
400
393
export declare class NodeErrorParser implements IErrorParser {
401
- parse ( context : EventPluginContext , exception : Error ) : void ;
402
- private getStackFrames ( context , stackFrames ) ;
394
+ parse ( context : EventPluginContext , exception : Error ) : IError ;
403
395
}
404
396
export declare class NodeRequestInfoCollector implements IRequestInfoCollector {
405
397
getRequestInfo ( context : EventPluginContext ) : IRequestInfo ;
@@ -408,39 +400,29 @@ export interface IClientConfiguration {
408
400
settings : Object ;
409
401
version : number ;
410
402
}
411
- export declare class SubmissionClientBase implements ISubmissionClient {
403
+ export declare class DefaultSubmissionClient implements ISubmissionClient {
412
404
configurationVersionHeader : string ;
413
405
postEvents ( events : IEvent [ ] , config : Configuration , callback : ( response : SubmissionResponse ) => void ) : void ;
414
406
postUserDescription ( referenceId : string , description : IUserDescription , config : Configuration , callback : ( response : SubmissionResponse ) => void ) : void ;
415
407
getSettings ( config : Configuration , callback : ( response : SettingsResponse ) => void ) : void ;
416
408
sendRequest ( config : Configuration , method : string , path : string , data : string , callback : ( status : number , message : string , data ?: string , headers ?: Object ) => void ) : void ;
417
409
}
418
- export declare class NodeSubmissionClient extends SubmissionClientBase {
410
+ export declare class NodeSubmissionClient extends DefaultSubmissionClient {
419
411
constructor ( ) ;
420
412
sendRequest ( config : Configuration , method : string , path : string , data : string , callback : ( status : number , message : string , data ?: string , headers ?: Object ) => void ) : void ;
421
413
}
422
414
export declare class NodeBootstrapper implements IBootstrapper {
423
415
register ( ) : void ;
424
- private getExitCodeReason ( code ) ;
425
416
}
426
- export declare class WebErrorParser implements IErrorParser {
427
- parse ( context : EventPluginContext , exception : Error ) : void ;
428
- private getStackFrames ( context , stackFrames ) ;
429
- private getParameters ( parameters ) ;
417
+ export declare class DefaultErrorParser implements IErrorParser {
418
+ parse ( context : EventPluginContext , exception : Error ) : IError ;
430
419
}
431
- export declare class WebModuleCollector implements IModuleCollector {
420
+ export declare class DefaultModuleCollector implements IModuleCollector {
432
421
getModules ( context : EventPluginContext ) : IModule [ ] ;
433
422
}
434
- export declare class WebRequestInfoCollector implements IRequestInfoCollector {
423
+ export declare class DefaultRequestInfoCollector implements IRequestInfoCollector {
435
424
getRequestInfo ( context : EventPluginContext ) : IRequestInfo ;
436
425
}
437
- export declare class DefaultSubmissionClient extends SubmissionClientBase {
438
- private createRequest ( config , method , url ) ;
439
- sendRequest ( config : Configuration , method : string , path : string , data : string , callback : ( status : number , message : string , data ?: string , headers ?: Object ) => void ) : void ;
440
- }
441
- export declare class WindowBootstrapper implements IBootstrapper {
426
+ export declare class DefaultBootstrapper implements IBootstrapper {
442
427
register ( ) : void ;
443
- private getDefaultsSettingsFromScriptTag ( ) ;
444
- private processUnhandledException ( stackTrace , options ?) ;
445
- private processJQueryAjaxError ( event , xhr , settings , error ) ;
446
428
}
0 commit comments