@@ -20,7 +20,7 @@ export declare class ConsoleLog implements ILog {
2020 info ( message : string ) : void ;
2121 warn ( message : string ) : void ;
2222 error ( message : string ) : void ;
23- private log ( level , message ) ;
23+ private log ;
2424}
2525export declare class NullLog implements ILog {
2626 trace ( message : string ) : void ;
@@ -52,7 +52,7 @@ export declare class EventPluginContext {
5252 event : IEvent ;
5353 contextData : ContextData ;
5454 constructor ( client : ExceptionlessClient , event : IEvent , contextData ?: ContextData ) ;
55- readonly log : ILog ;
55+ get log ( ) : ILog ;
5656}
5757export declare class EventPluginManager {
5858 static run ( context : EventPluginContext , callback : ( context ?: EventPluginContext ) => void ) : void ;
@@ -75,13 +75,13 @@ export declare class DefaultEventQueue implements IEventQueue {
7575 process ( isAppExiting ?: boolean ) : void ;
7676 suspendProcessing ( durationInMinutes ?: number , discardFutureQueuedItems ?: boolean , clearQueue ?: boolean ) : void ;
7777 onEventsPosted ( handler : ( events : IEvent [ ] , response : SubmissionResponse ) => void ) : void ;
78- private eventsPosted ( events , response ) ;
79- private areQueuedItemsDiscarded ( ) ;
80- private ensureQueueTimer ( ) ;
81- private isQueueProcessingSuspended ( ) ;
82- private onProcessQueue ( ) ;
83- private processSubmissionResponse ( response , events ) ;
84- private removeEvents ( events ) ;
78+ private eventsPosted ;
79+ private areQueuedItemsDiscarded ;
80+ private ensureQueueTimer ;
81+ private isQueueProcessingSuspended ;
82+ private onProcessQueue ;
83+ private processSubmissionResponse ;
84+ private removeEvents ;
8585}
8686export interface IEventQueue {
8787 enqueue ( event : IEvent ) : void ;
@@ -96,7 +96,7 @@ export interface IErrorParser {
9696 parse ( context : EventPluginContext , exception : Error ) : IError ;
9797}
9898export interface IModuleCollector {
99- getModules ( context : EventPluginContext ) : IModule [ ] ;
99+ getModules ( ) : IModule [ ] ;
100100}
101101export interface IRequestInfoCollector {
102102 getRequestInfo ( context : EventPluginContext ) : IRequestInfo ;
@@ -116,8 +116,8 @@ export declare class DefaultSubmissionClient implements ISubmissionClient {
116116 postUserDescription ( referenceId : string , description : IUserDescription , config : Configuration , callback : ( response : SubmissionResponse ) => void ) : void ;
117117 getSettings ( config : Configuration , version : number , callback : ( response : SettingsResponse ) => void ) : void ;
118118 sendHeartbeat ( sessionIdOrUserId : string , closeSession : boolean , config : Configuration ) : void ;
119- private createRequest ( config , method , url , data ? ) ;
120- private createSubmissionCallback ( config , callback ) ;
119+ private createRequest ;
120+ private createSubmissionCallback ;
121121}
122122export interface ISubmissionAdapter {
123123 sendRequest ( request : SubmissionRequest , callback ?: SubmissionCallback , isAppExiting ?: boolean ) : void ;
@@ -131,14 +131,14 @@ export interface ISubmissionClient {
131131export declare class Utils {
132132 static addRange < T > ( target : T [ ] , ...values : T [ ] ) : T [ ] ;
133133 static getHashCode ( source : string ) : number ;
134- static getCookies ( cookies : string , exclusions ?: string [ ] ) : object ;
134+ static getCookies ( cookies : string , exclusions ?: string [ ] ) : Record < string , string > ;
135135 static guid ( ) : string ;
136- static merge ( defaultValues : Object , values : Object ) : object ;
136+ static merge < T > ( defaultValues : T , values : T ) : T ;
137137 static parseVersion ( source : string ) : string ;
138- static parseQueryString ( query : string , exclusions ?: string [ ] ) : object ;
138+ static parseQueryString ( query : string , exclusions ?: string [ ] ) : Record < string , string > ;
139139 static randomNumber ( ) : number ;
140140 static isMatch ( input : string , patterns : string [ ] , ignoreCase ?: boolean ) : boolean ;
141- static isEmpty ( input : object ) : boolean ;
141+ static isEmpty ( input : Record < string , unknown > ) : boolean ;
142142 static startsWith ( input : string , prefix : string ) : boolean ;
143143 static endsWith ( input : string , suffix : string ) : boolean ;
144144 static stringify ( data : any , exclusions ?: string [ ] , maxDepth ?: number ) : string ;
@@ -171,8 +171,8 @@ export declare class SettingsManager {
171171 static getVersion ( config : Configuration ) : number ;
172172 static checkVersion ( version : number , config : Configuration ) : void ;
173173 static updateSettings ( config : Configuration , version ?: number ) : void ;
174- private static changed ( config ) ;
175- private static getSavedServerSettings ( config ) ;
174+ private static changed ;
175+ private static getSavedServerSettings ;
176176}
177177export interface IEvent {
178178 type ?: string ;
@@ -228,15 +228,15 @@ export declare class ExceptionlessClient {
228228 submitEvent ( event : IEvent , pluginContextData ?: ContextData , callback ?: ( context : EventPluginContext ) => void ) : void ;
229229 updateUserEmailAndDescription ( referenceId : string , email : string , description : string , callback ?: ( response : SubmissionResponse ) => void ) : void ;
230230 getLastReferenceId ( ) : string ;
231- private updateSettingsTimer ( initialDelay ? ) ;
232- static readonly default : ExceptionlessClient ;
231+ private updateSettingsTimer ;
232+ static get default ( ) : ExceptionlessClient ;
233233}
234234export declare class ContextData {
235235 setException ( exception : Error ) : void ;
236- readonly hasException : boolean ;
236+ get hasException ( ) : boolean ;
237237 getException ( ) : Error ;
238238 markAsUnhandledError ( ) : void ;
239- readonly isUnhandledError : boolean ;
239+ get isUnhandledError ( ) : boolean ;
240240 setSubmissionMethod ( method : string ) : void ;
241241 getSubmissionMethod ( ) : string ;
242242}
@@ -325,7 +325,7 @@ export interface IStorage {
325325 remove ( timestamp : number ) : void ;
326326 clear ( ) : void ;
327327}
328- export declare type SubmissionCallback = ( status : number , message : string , data ?: string , headers ?: object ) => void ;
328+ export declare type SubmissionCallback = ( status : number , message : string , data ?: string , headers ?: any ) => void ;
329329export interface SubmissionRequest {
330330 apiKey : string ;
331331 userAgent : string ;
@@ -336,7 +336,7 @@ export interface SubmissionRequest {
336336export declare class Configuration implements IConfigurationSettings {
337337 private static _defaultSettings ;
338338 defaultTags : string [ ] ;
339- defaultData : object ;
339+ defaultData : Record < string , unknown > ;
340340 enabled : boolean ;
341341 environmentInfoCollector : IEnvironmentInfoCollector ;
342342 errorParser : IErrorParser ;
@@ -347,7 +347,7 @@ export declare class Configuration implements IConfigurationSettings {
347347 submissionBatchSize : number ;
348348 submissionAdapter : ISubmissionAdapter ;
349349 submissionClient : ISubmissionClient ;
350- settings : object ;
350+ settings : Record < string , string > ;
351351 storage : IStorageProvider ;
352352 queue : IEventQueue ;
353353 private _apiKey ;
@@ -367,39 +367,51 @@ export declare class Configuration implements IConfigurationSettings {
367367 private _plugins ;
368368 private _handlers ;
369369 constructor ( configSettings ?: IConfigurationSettings ) ;
370- apiKey : string ;
371- readonly isValid : boolean ;
372- serverUrl : string ;
373- configServerUrl : string ;
374- heartbeatServerUrl : string ;
375- updateSettingsWhenIdleInterval : number ;
376- readonly dataExclusions : string [ ] ;
370+ get apiKey ( ) : string ;
371+ set apiKey ( value : string ) ;
372+ get isValid ( ) : boolean ;
373+ get serverUrl ( ) : string ;
374+ set serverUrl ( value : string ) ;
375+ get configServerUrl ( ) : string ;
376+ set configServerUrl ( value : string ) ;
377+ get heartbeatServerUrl ( ) : string ;
378+ set heartbeatServerUrl ( value : string ) ;
379+ get updateSettingsWhenIdleInterval ( ) : number ;
380+ set updateSettingsWhenIdleInterval ( value : number ) ;
381+ get dataExclusions ( ) : string [ ] ;
377382 addDataExclusions ( ...exclusions : string [ ] ) : void ;
378- includePrivateInformation : boolean ;
379- includeUserName : boolean ;
380- includeMachineName : boolean ;
381- includeIpAddress : boolean ;
382- includeCookies : boolean ;
383- includePostData : boolean ;
384- includeQueryString : boolean ;
385- readonly userAgentBotPatterns : string [ ] ;
383+ get includePrivateInformation ( ) : boolean ;
384+ set includePrivateInformation ( value : boolean ) ;
385+ get includeUserName ( ) : boolean ;
386+ set includeUserName ( value : boolean ) ;
387+ get includeMachineName ( ) : boolean ;
388+ set includeMachineName ( value : boolean ) ;
389+ get includeIpAddress ( ) : boolean ;
390+ set includeIpAddress ( value : boolean ) ;
391+ get includeCookies ( ) : boolean ;
392+ set includeCookies ( value : boolean ) ;
393+ get includePostData ( ) : boolean ;
394+ set includePostData ( value : boolean ) ;
395+ get includeQueryString ( ) : boolean ;
396+ set includeQueryString ( value : boolean ) ;
397+ get userAgentBotPatterns ( ) : string [ ] ;
386398 addUserAgentBotPatterns ( ...userAgentBotPatterns : string [ ] ) : void ;
387- readonly plugins : IEventPlugin [ ] ;
399+ get plugins ( ) : IEventPlugin [ ] ;
388400 addPlugin ( plugin : IEventPlugin ) : void ;
389401 addPlugin ( name : string , priority : number , pluginAction : ( context : EventPluginContext , next ?: ( ) => void ) => void ) : void ;
390402 removePlugin ( plugin : IEventPlugin ) : void ;
391403 setVersion ( version : string ) : void ;
392404 setUserIdentity ( userInfo : IUserInfo ) : void ;
393405 setUserIdentity ( identity : string ) : void ;
394406 setUserIdentity ( identity : string , name : string ) : void ;
395- readonly userAgent : string ;
407+ get userAgent ( ) : string ;
396408 useSessions ( sendHeartbeats ?: boolean , heartbeatInterval ?: number ) : void ;
397409 useReferenceIds ( ) : void ;
398410 useLocalStorage ( ) : void ;
399411 useDebugLogger ( ) : void ;
400412 onChanged ( handler : ( config : Configuration ) => void ) : void ;
401- private changed ( ) ;
402- static readonly defaults : IConfigurationSettings ;
413+ private changed ;
414+ static get defaults ( ) : IConfigurationSettings ;
403415}
404416export interface IUserDescription {
405417 email_address ?: string ;
@@ -430,15 +442,15 @@ export declare class EventBuilder {
430442 setUserIdentity ( identity : string ) : EventBuilder ;
431443 setUserIdentity ( identity : string , name : string ) : EventBuilder ;
432444 setUserDescription ( emailAddress : string , description : string ) : EventBuilder ;
433- setManualStackingInfo ( signatureData : any , title ?: string ) : this ;
445+ setManualStackingInfo ( signatureData : any , title ?: string ) : EventBuilder ;
434446 setManualStackingKey ( manualStackingKey : string , title ?: string ) : EventBuilder ;
435447 setValue ( value : number ) : EventBuilder ;
436448 addTags ( ...tags : string [ ] ) : EventBuilder ;
437449 setProperty ( name : string , value : any , maxDepth ?: number , excludedPropertyNames ?: string [ ] ) : EventBuilder ;
438450 markAsCritical ( critical : boolean ) : EventBuilder ;
439- addRequestInfo ( request : object ) : EventBuilder ;
451+ addRequestInfo ( request : IRequestInfo ) : EventBuilder ;
440452 submit ( callback ?: ( context : EventPluginContext ) => void ) : void ;
441- private isValidIdentifier ( value ) ;
453+ private isValidIdentifier ;
442454}
443455export interface IManualStackingInfo {
444456 title ?: string ;
@@ -473,6 +485,9 @@ export declare class EventExclusionPlugin implements IEventPlugin {
473485 priority : number ;
474486 name : string ;
475487 run ( context : EventPluginContext , next ?: ( ) => void ) : void ;
488+ getLogLevel ( level : string ) : number ;
489+ getMinLogLevel ( configSettings : Record < string , string > , source : any ) : number ;
490+ private getTypeAndSourceSetting ;
476491}
477492export declare class ModuleInfoPlugin implements IEventPlugin {
478493 priority : number ;
@@ -500,15 +515,15 @@ export declare class InMemoryStorage implements IStorage {
500515 clear ( ) : void ;
501516}
502517export interface IClientConfiguration {
503- settings : object ;
518+ settings : Record < string , string > ;
504519 version : number ;
505520}
506521export declare abstract class KeyValueStorageBase implements IStorage {
507522 private maxItems ;
508523 private items ;
509524 private lastTimestamp ;
510- constructor ( maxItems : any ) ;
511- save ( value : any , single ?: boolean ) : number ;
525+ constructor ( maxItems : number ) ;
526+ save ( value : any ) : number ;
512527 get ( limit ?: number ) : IStorageItem [ ] ;
513528 remove ( timestamp : number ) : void ;
514529 clear ( ) : void ;
@@ -518,9 +533,9 @@ export declare abstract class KeyValueStorageBase implements IStorage {
518533 protected abstract delete ( key : string ) : any ;
519534 protected abstract getKey ( timestamp : number ) : string ;
520535 protected abstract getTimestamp ( key : string ) : number ;
521- private ensureIndex ( ) ;
522- private safeDelete ( key ) ;
523- private createIndex ( ) ;
536+ private ensureIndex ;
537+ private safeDelete ;
538+ private createIndex ;
524539}
525540export declare class BrowserStorage extends KeyValueStorageBase {
526541 private prefix ;
@@ -537,7 +552,7 @@ export declare class DefaultErrorParser implements IErrorParser {
537552 parse ( context : EventPluginContext , exception : Error ) : IError ;
538553}
539554export declare class DefaultModuleCollector implements IModuleCollector {
540- getModules ( context : EventPluginContext ) : IModule [ ] ;
555+ getModules ( ) : IModule [ ] ;
541556}
542557export declare class DefaultRequestInfoCollector implements IRequestInfoCollector {
543558 getRequestInfo ( context : EventPluginContext ) : IRequestInfo ;
0 commit comments