@@ -59,7 +59,7 @@ export interface IEnvironmentInfoCollector {
5959 getEnvironmentInfo ( context : EventPluginContext ) : IEnvironmentInfo ;
6060}
6161export interface IErrorParser {
62- parse ( context : EventPluginContext , exception : Error ) : void ;
62+ parse ( context : EventPluginContext , exception : Error ) : IError ;
6363}
6464export interface IModuleCollector {
6565 getModules ( context : EventPluginContext ) : IModule [ ] ;
@@ -102,7 +102,7 @@ export declare class SettingsManager {
102102 static checkVersion ( version : number , config : Configuration ) : void ;
103103 static updateSettings ( config : Configuration ) : void ;
104104}
105- export declare class InMemoryLastReferenceIdManager implements ILastReferenceIdManager {
105+ export declare class DefaultLastReferenceIdManager implements ILastReferenceIdManager {
106106 private _lastReferenceId ;
107107 getLast ( ) : string ;
108108 clearLast ( ) : void ;
@@ -183,13 +183,9 @@ export declare class Utils {
183183 static stringify ( data : any , exclusions ?: string [ ] ) : string ;
184184}
185185export declare class Configuration implements IConfigurationSettings {
186- private _apiKey ;
187- private _enabled ;
188- private _serverUrl ;
189- private _dataExclusions ;
190- private _plugins ;
191186 defaultTags : string [ ] ;
192187 defaultData : Object ;
188+ enabled : boolean ;
193189 environmentInfoCollector : IEnvironmentInfoCollector ;
194190 errorParser : IErrorParser ;
195191 lastReferenceIdManager : ILastReferenceIdManager ;
@@ -202,12 +198,15 @@ export declare class Configuration implements IConfigurationSettings {
202198 storage : IStorage < Object > ;
203199 queue : IEventQueue ;
204200 constructor ( configSettings ?: IConfigurationSettings ) ;
201+ private _apiKey ;
205202 apiKey : string ;
206203 isValid : boolean ;
204+ private _serverUrl ;
207205 serverUrl : string ;
208- enabled : boolean ;
206+ private _dataExclusions ;
209207 dataExclusions : string [ ] ;
210208 addDataExclusions ( ...exclusions : string [ ] ) : void ;
209+ private _plugins ;
211210 plugins : IEventPlugin [ ] ;
212211 addPlugin ( plugin : IEventPlugin ) : void ;
213212 addPlugin ( name : string , priority : number , pluginAction : ( context : EventPluginContext , next ?: ( ) => void ) => void ) : void ;
@@ -346,11 +345,6 @@ export declare class ErrorPlugin implements IEventPlugin {
346345 name : string ;
347346 run ( context : EventPluginContext , next ?: ( ) => void ) : void ;
348347}
349- export declare class DuplicateCheckerPlugin implements IEventPlugin {
350- priority : number ;
351- name : string ;
352- run ( context : EventPluginContext , next ?: ( ) => void ) : void ;
353- }
354348export declare class ModuleInfoPlugin implements IEventPlugin {
355349 priority : number ;
356350 name : string ;
@@ -395,11 +389,9 @@ export declare class SettingsResponse {
395389}
396390export declare class NodeEnvironmentInfoCollector implements IEnvironmentInfoCollector {
397391 getEnvironmentInfo ( context : EventPluginContext ) : IEnvironmentInfo ;
398- private getIpAddresses ( ) ;
399392}
400393export declare class NodeErrorParser implements IErrorParser {
401- parse ( context : EventPluginContext , exception : Error ) : void ;
402- private getStackFrames ( context , stackFrames ) ;
394+ parse ( context : EventPluginContext , exception : Error ) : IError ;
403395}
404396export declare class NodeRequestInfoCollector implements IRequestInfoCollector {
405397 getRequestInfo ( context : EventPluginContext ) : IRequestInfo ;
@@ -408,39 +400,29 @@ export interface IClientConfiguration {
408400 settings : Object ;
409401 version : number ;
410402}
411- export declare class SubmissionClientBase implements ISubmissionClient {
403+ export declare class DefaultSubmissionClient implements ISubmissionClient {
412404 configurationVersionHeader : string ;
413405 postEvents ( events : IEvent [ ] , config : Configuration , callback : ( response : SubmissionResponse ) => void ) : void ;
414406 postUserDescription ( referenceId : string , description : IUserDescription , config : Configuration , callback : ( response : SubmissionResponse ) => void ) : void ;
415407 getSettings ( config : Configuration , callback : ( response : SettingsResponse ) => void ) : void ;
416408 sendRequest ( config : Configuration , method : string , path : string , data : string , callback : ( status : number , message : string , data ?: string , headers ?: Object ) => void ) : void ;
417409}
418- export declare class NodeSubmissionClient extends SubmissionClientBase {
410+ export declare class NodeSubmissionClient extends DefaultSubmissionClient {
419411 constructor ( ) ;
420412 sendRequest ( config : Configuration , method : string , path : string , data : string , callback : ( status : number , message : string , data ?: string , headers ?: Object ) => void ) : void ;
421413}
422414export declare class NodeBootstrapper implements IBootstrapper {
423415 register ( ) : void ;
424- private getExitCodeReason ( code ) ;
425416}
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 ;
430419}
431- export declare class WebModuleCollector implements IModuleCollector {
420+ export declare class DefaultModuleCollector implements IModuleCollector {
432421 getModules ( context : EventPluginContext ) : IModule [ ] ;
433422}
434- export declare class WebRequestInfoCollector implements IRequestInfoCollector {
423+ export declare class DefaultRequestInfoCollector implements IRequestInfoCollector {
435424 getRequestInfo ( context : EventPluginContext ) : IRequestInfo ;
436425}
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 {
442427 register ( ) : void ;
443- private getDefaultsSettingsFromScriptTag ( ) ;
444- private processUnhandledException ( stackTrace , options ?) ;
445- private processJQueryAjaxError ( event , xhr , settings , error ) ;
446428}
0 commit comments