@@ -20,7 +20,7 @@ export declare class ConsoleLog implements ILog {
20
20
info ( message : string ) : void ;
21
21
warn ( message : string ) : void ;
22
22
error ( message : string ) : void ;
23
- private log ( level , message ) ;
23
+ private log ;
24
24
}
25
25
export declare class NullLog implements ILog {
26
26
trace ( message : string ) : void ;
@@ -52,7 +52,7 @@ export declare class EventPluginContext {
52
52
event : IEvent ;
53
53
contextData : ContextData ;
54
54
constructor ( client : ExceptionlessClient , event : IEvent , contextData ?: ContextData ) ;
55
- readonly log : ILog ;
55
+ get log ( ) : ILog ;
56
56
}
57
57
export declare class EventPluginManager {
58
58
static run ( context : EventPluginContext , callback : ( context ?: EventPluginContext ) => void ) : void ;
@@ -75,13 +75,13 @@ export declare class DefaultEventQueue implements IEventQueue {
75
75
process ( isAppExiting ?: boolean ) : void ;
76
76
suspendProcessing ( durationInMinutes ?: number , discardFutureQueuedItems ?: boolean , clearQueue ?: boolean ) : void ;
77
77
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 ;
85
85
}
86
86
export interface IEventQueue {
87
87
enqueue ( event : IEvent ) : void ;
@@ -96,7 +96,7 @@ export interface IErrorParser {
96
96
parse ( context : EventPluginContext , exception : Error ) : IError ;
97
97
}
98
98
export interface IModuleCollector {
99
- getModules ( context : EventPluginContext ) : IModule [ ] ;
99
+ getModules ( ) : IModule [ ] ;
100
100
}
101
101
export interface IRequestInfoCollector {
102
102
getRequestInfo ( context : EventPluginContext ) : IRequestInfo ;
@@ -116,8 +116,8 @@ export declare class DefaultSubmissionClient implements ISubmissionClient {
116
116
postUserDescription ( referenceId : string , description : IUserDescription , config : Configuration , callback : ( response : SubmissionResponse ) => void ) : void ;
117
117
getSettings ( config : Configuration , version : number , callback : ( response : SettingsResponse ) => void ) : void ;
118
118
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 ;
121
121
}
122
122
export interface ISubmissionAdapter {
123
123
sendRequest ( request : SubmissionRequest , callback ?: SubmissionCallback , isAppExiting ?: boolean ) : void ;
@@ -131,14 +131,14 @@ export interface ISubmissionClient {
131
131
export declare class Utils {
132
132
static addRange < T > ( target : T [ ] , ...values : T [ ] ) : T [ ] ;
133
133
static getHashCode ( source : string ) : number ;
134
- static getCookies ( cookies : string , exclusions ?: string [ ] ) : object ;
134
+ static getCookies ( cookies : string , exclusions ?: string [ ] ) : Record < string , string > ;
135
135
static guid ( ) : string ;
136
- static merge ( defaultValues : Object , values : Object ) : object ;
136
+ static merge < T > ( defaultValues : T , values : T ) : T ;
137
137
static parseVersion ( source : string ) : string ;
138
- static parseQueryString ( query : string , exclusions ?: string [ ] ) : object ;
138
+ static parseQueryString ( query : string , exclusions ?: string [ ] ) : Record < string , string > ;
139
139
static randomNumber ( ) : number ;
140
140
static isMatch ( input : string , patterns : string [ ] , ignoreCase ?: boolean ) : boolean ;
141
- static isEmpty ( input : object ) : boolean ;
141
+ static isEmpty ( input : Record < string , unknown > ) : boolean ;
142
142
static startsWith ( input : string , prefix : string ) : boolean ;
143
143
static endsWith ( input : string , suffix : string ) : boolean ;
144
144
static stringify ( data : any , exclusions ?: string [ ] , maxDepth ?: number ) : string ;
@@ -171,8 +171,8 @@ export declare class SettingsManager {
171
171
static getVersion ( config : Configuration ) : number ;
172
172
static checkVersion ( version : number , config : Configuration ) : void ;
173
173
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 ;
176
176
}
177
177
export interface IEvent {
178
178
type ?: string ;
@@ -228,15 +228,15 @@ export declare class ExceptionlessClient {
228
228
submitEvent ( event : IEvent , pluginContextData ?: ContextData , callback ?: ( context : EventPluginContext ) => void ) : void ;
229
229
updateUserEmailAndDescription ( referenceId : string , email : string , description : string , callback ?: ( response : SubmissionResponse ) => void ) : void ;
230
230
getLastReferenceId ( ) : string ;
231
- private updateSettingsTimer ( initialDelay ? ) ;
232
- static readonly default : ExceptionlessClient ;
231
+ private updateSettingsTimer ;
232
+ static get default ( ) : ExceptionlessClient ;
233
233
}
234
234
export declare class ContextData {
235
235
setException ( exception : Error ) : void ;
236
- readonly hasException : boolean ;
236
+ get hasException ( ) : boolean ;
237
237
getException ( ) : Error ;
238
238
markAsUnhandledError ( ) : void ;
239
- readonly isUnhandledError : boolean ;
239
+ get isUnhandledError ( ) : boolean ;
240
240
setSubmissionMethod ( method : string ) : void ;
241
241
getSubmissionMethod ( ) : string ;
242
242
}
@@ -325,7 +325,7 @@ export interface IStorage {
325
325
remove ( timestamp : number ) : void ;
326
326
clear ( ) : void ;
327
327
}
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 ;
329
329
export interface SubmissionRequest {
330
330
apiKey : string ;
331
331
userAgent : string ;
@@ -336,7 +336,7 @@ export interface SubmissionRequest {
336
336
export declare class Configuration implements IConfigurationSettings {
337
337
private static _defaultSettings ;
338
338
defaultTags : string [ ] ;
339
- defaultData : object ;
339
+ defaultData : Record < string , unknown > ;
340
340
enabled : boolean ;
341
341
environmentInfoCollector : IEnvironmentInfoCollector ;
342
342
errorParser : IErrorParser ;
@@ -347,7 +347,7 @@ export declare class Configuration implements IConfigurationSettings {
347
347
submissionBatchSize : number ;
348
348
submissionAdapter : ISubmissionAdapter ;
349
349
submissionClient : ISubmissionClient ;
350
- settings : object ;
350
+ settings : Record < string , string > ;
351
351
storage : IStorageProvider ;
352
352
queue : IEventQueue ;
353
353
private _apiKey ;
@@ -367,39 +367,51 @@ export declare class Configuration implements IConfigurationSettings {
367
367
private _plugins ;
368
368
private _handlers ;
369
369
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 [ ] ;
377
382
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 [ ] ;
386
398
addUserAgentBotPatterns ( ...userAgentBotPatterns : string [ ] ) : void ;
387
- readonly plugins : IEventPlugin [ ] ;
399
+ get plugins ( ) : IEventPlugin [ ] ;
388
400
addPlugin ( plugin : IEventPlugin ) : void ;
389
401
addPlugin ( name : string , priority : number , pluginAction : ( context : EventPluginContext , next ?: ( ) => void ) => void ) : void ;
390
402
removePlugin ( plugin : IEventPlugin ) : void ;
391
403
setVersion ( version : string ) : void ;
392
404
setUserIdentity ( userInfo : IUserInfo ) : void ;
393
405
setUserIdentity ( identity : string ) : void ;
394
406
setUserIdentity ( identity : string , name : string ) : void ;
395
- readonly userAgent : string ;
407
+ get userAgent ( ) : string ;
396
408
useSessions ( sendHeartbeats ?: boolean , heartbeatInterval ?: number ) : void ;
397
409
useReferenceIds ( ) : void ;
398
410
useLocalStorage ( ) : void ;
399
411
useDebugLogger ( ) : void ;
400
412
onChanged ( handler : ( config : Configuration ) => void ) : void ;
401
- private changed ( ) ;
402
- static readonly defaults : IConfigurationSettings ;
413
+ private changed ;
414
+ static get defaults ( ) : IConfigurationSettings ;
403
415
}
404
416
export interface IUserDescription {
405
417
email_address ?: string ;
@@ -430,15 +442,15 @@ export declare class EventBuilder {
430
442
setUserIdentity ( identity : string ) : EventBuilder ;
431
443
setUserIdentity ( identity : string , name : string ) : EventBuilder ;
432
444
setUserDescription ( emailAddress : string , description : string ) : EventBuilder ;
433
- setManualStackingInfo ( signatureData : any , title ?: string ) : this ;
445
+ setManualStackingInfo ( signatureData : any , title ?: string ) : EventBuilder ;
434
446
setManualStackingKey ( manualStackingKey : string , title ?: string ) : EventBuilder ;
435
447
setValue ( value : number ) : EventBuilder ;
436
448
addTags ( ...tags : string [ ] ) : EventBuilder ;
437
449
setProperty ( name : string , value : any , maxDepth ?: number , excludedPropertyNames ?: string [ ] ) : EventBuilder ;
438
450
markAsCritical ( critical : boolean ) : EventBuilder ;
439
- addRequestInfo ( request : object ) : EventBuilder ;
451
+ addRequestInfo ( request : IRequestInfo ) : EventBuilder ;
440
452
submit ( callback ?: ( context : EventPluginContext ) => void ) : void ;
441
- private isValidIdentifier ( value ) ;
453
+ private isValidIdentifier ;
442
454
}
443
455
export interface IManualStackingInfo {
444
456
title ?: string ;
@@ -473,6 +485,9 @@ export declare class EventExclusionPlugin implements IEventPlugin {
473
485
priority : number ;
474
486
name : string ;
475
487
run ( context : EventPluginContext , next ?: ( ) => void ) : void ;
488
+ getLogLevel ( level : string ) : number ;
489
+ getMinLogLevel ( configSettings : Record < string , string > , source : any ) : number ;
490
+ private getTypeAndSourceSetting ;
476
491
}
477
492
export declare class ModuleInfoPlugin implements IEventPlugin {
478
493
priority : number ;
@@ -500,15 +515,15 @@ export declare class InMemoryStorage implements IStorage {
500
515
clear ( ) : void ;
501
516
}
502
517
export interface IClientConfiguration {
503
- settings : object ;
518
+ settings : Record < string , string > ;
504
519
version : number ;
505
520
}
506
521
export declare abstract class KeyValueStorageBase implements IStorage {
507
522
private maxItems ;
508
523
private items ;
509
524
private lastTimestamp ;
510
- constructor ( maxItems : any ) ;
511
- save ( value : any , single ?: boolean ) : number ;
525
+ constructor ( maxItems : number ) ;
526
+ save ( value : any ) : number ;
512
527
get ( limit ?: number ) : IStorageItem [ ] ;
513
528
remove ( timestamp : number ) : void ;
514
529
clear ( ) : void ;
@@ -518,9 +533,9 @@ export declare abstract class KeyValueStorageBase implements IStorage {
518
533
protected abstract delete ( key : string ) : any ;
519
534
protected abstract getKey ( timestamp : number ) : string ;
520
535
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 ;
524
539
}
525
540
export declare class BrowserStorage extends KeyValueStorageBase {
526
541
private prefix ;
@@ -537,7 +552,7 @@ export declare class DefaultErrorParser implements IErrorParser {
537
552
parse ( context : EventPluginContext , exception : Error ) : IError ;
538
553
}
539
554
export declare class DefaultModuleCollector implements IModuleCollector {
540
- getModules ( context : EventPluginContext ) : IModule [ ] ;
555
+ getModules ( ) : IModule [ ] ;
541
556
}
542
557
export declare class DefaultRequestInfoCollector implements IRequestInfoCollector {
543
558
getRequestInfo ( context : EventPluginContext ) : IRequestInfo ;
0 commit comments