@@ -69,12 +69,12 @@ export interface IConfigurationSettings {
69
69
export declare class SettingsManager {
70
70
private static _configPath ;
71
71
private static _handlers ;
72
- private static changed ( config ) ;
73
72
static onChanged ( handler : ( config : Configuration ) => void ) : void ;
74
73
static applySavedServerSettings ( config : Configuration ) : void ;
75
- private static getSavedServerSettings ( config ) ;
76
74
static checkVersion ( version : number , config : Configuration ) : void ;
77
75
static updateSettings ( config : Configuration ) : void ;
76
+ private static changed ( config ) ;
77
+ private static getSavedServerSettings ( config ) ;
78
78
}
79
79
export declare class DefaultLastReferenceIdManager implements ILastReferenceIdManager {
80
80
private _lastReferenceId ;
@@ -129,13 +129,13 @@ export declare class DefaultEventQueue implements IEventQueue {
129
129
constructor ( config : Configuration ) ;
130
130
enqueue ( event : IEvent ) : void ;
131
131
process ( isAppExiting ?: boolean ) : void ;
132
- private processSubmissionResponse ( response , events ) ;
132
+ suspendProcessing ( durationInMinutes ?: number , discardFutureQueuedItems ?: boolean , clearQueue ?: boolean ) : void ;
133
+ private areQueuedItemsDiscarded ( ) ;
133
134
private ensureQueueTimer ( ) ;
135
+ private isQueueProcessingSuspended ( ) ;
134
136
private onProcessQueue ( ) ;
135
- suspendProcessing ( durationInMinutes ?: number , discardFutureQueuedItems ?: boolean , clearQueue ?: boolean ) : void ;
137
+ private processSubmissionResponse ( response , events ) ;
136
138
private removeEvents ( events ) ;
137
- private isQueueProcessingSuspended ( ) ;
138
- private areQueuedItemsDiscarded ( ) ;
139
139
}
140
140
export declare class InMemoryStorage < T > implements IStorage < T > {
141
141
private _items ;
@@ -166,6 +166,7 @@ export declare class Utils {
166
166
static stringify ( data : any , exclusions ?: string [ ] ) : string ;
167
167
}
168
168
export declare class Configuration implements IConfigurationSettings {
169
+ private static _defaultSettings ;
169
170
defaultTags : string [ ] ;
170
171
defaultData : Object ;
171
172
enabled : boolean ;
@@ -181,6 +182,7 @@ export declare class Configuration implements IConfigurationSettings {
181
182
settings : Object ;
182
183
storage : IStorage < Object > ;
183
184
queue : IEventQueue ;
185
+ private _plugins ;
184
186
constructor ( configSettings ?: IConfigurationSettings ) ;
185
187
private _apiKey ;
186
188
apiKey : string ;
@@ -190,7 +192,6 @@ export declare class Configuration implements IConfigurationSettings {
190
192
private _dataExclusions ;
191
193
dataExclusions : string [ ] ;
192
194
addDataExclusions ( ...exclusions : string [ ] ) : void ;
193
- private _plugins ;
194
195
plugins : IEventPlugin [ ] ;
195
196
addPlugin ( plugin : IEventPlugin ) : void ;
196
197
addPlugin ( name : string , priority : number , pluginAction : ( context : EventPluginContext , next ?: ( ) => void ) => void ) : void ;
@@ -203,14 +204,13 @@ export declare class Configuration implements IConfigurationSettings {
203
204
userAgent : string ;
204
205
useReferenceIds ( ) : void ;
205
206
useDebugLogger ( ) : void ;
206
- private static _defaultSettings ;
207
207
static defaults : IConfigurationSettings ;
208
208
}
209
209
export declare class EventBuilder {
210
- private _validIdentifierErrorMessage ;
211
210
target : IEvent ;
212
211
client : ExceptionlessClient ;
213
212
pluginContextData : ContextData ;
213
+ private _validIdentifierErrorMessage ;
214
214
constructor ( event : IEvent , client : ExceptionlessClient , pluginContextData ?: ContextData ) ;
215
215
setType ( type : string ) : EventBuilder ;
216
216
setSource ( source : string ) : EventBuilder ;
@@ -229,9 +229,6 @@ export declare class EventBuilder {
229
229
submit ( callback ?: ( context : EventPluginContext ) => void ) : void ;
230
230
private isValidIdentifier ( value ) ;
231
231
}
232
- export interface IError extends IInnerError {
233
- modules ?: IModule [ ] ;
234
- }
235
232
export interface IUserDescription {
236
233
email_address ?: string ;
237
234
description ?: string ;
@@ -259,6 +256,7 @@ export declare class SubmissionResponse {
259
256
constructor ( statusCode : number , message ?: string ) ;
260
257
}
261
258
export declare class ExceptionlessClient {
259
+ private static _instance ;
262
260
config : Configuration ;
263
261
constructor ( ) ;
264
262
constructor ( settings : IConfigurationSettings ) ;
@@ -285,40 +283,8 @@ export declare class ExceptionlessClient {
285
283
submitEvent ( event : IEvent , pluginContextData ?: ContextData , callback ?: ( context : EventPluginContext ) => void ) : void ;
286
284
updateUserEmailAndDescription ( referenceId : string , email : string , description : string , callback ?: ( response : SubmissionResponse ) => void ) : void ;
287
285
getLastReferenceId ( ) : string ;
288
- private static _instance ;
289
286
static default : ExceptionlessClient ;
290
287
}
291
- export interface IParameter {
292
- data ?: any ;
293
- generic_arguments ?: string [ ] ;
294
- name ?: string ;
295
- type ?: string ;
296
- type_namespace ?: string ;
297
- }
298
- export interface IMethod {
299
- data ?: any ;
300
- generic_arguments ?: string [ ] ;
301
- parameters ?: IParameter [ ] ;
302
- is_signature_target ?: boolean ;
303
- declaring_namespace ?: string ;
304
- declaring_type ?: string ;
305
- name ?: string ;
306
- module_id ?: number ;
307
- }
308
- export interface IStackFrame extends IMethod {
309
- file_name ?: string ;
310
- line_number ?: number ;
311
- column ?: number ;
312
- }
313
- export interface IInnerError {
314
- message ?: string ;
315
- type ?: string ;
316
- code ?: string ;
317
- data ?: any ;
318
- inner ?: IInnerError ;
319
- stack_trace ?: IStackFrame [ ] ;
320
- target_method ?: IMethod ;
321
- }
322
288
export interface IModule {
323
289
data ?: any ;
324
290
module_id ?: number ;
@@ -390,6 +356,40 @@ export declare class SubmissionMethodPlugin implements IEventPlugin {
390
356
name : string ;
391
357
run ( context : EventPluginContext , next ?: ( ) => void ) : void ;
392
358
}
359
+ export interface IParameter {
360
+ data ?: any ;
361
+ generic_arguments ?: string [ ] ;
362
+ name ?: string ;
363
+ type ?: string ;
364
+ type_namespace ?: string ;
365
+ }
366
+ export interface IMethod {
367
+ data ?: any ;
368
+ generic_arguments ?: string [ ] ;
369
+ parameters ?: IParameter [ ] ;
370
+ is_signature_target ?: boolean ;
371
+ declaring_namespace ?: string ;
372
+ declaring_type ?: string ;
373
+ name ?: string ;
374
+ module_id ?: number ;
375
+ }
376
+ export interface IStackFrame extends IMethod {
377
+ file_name ?: string ;
378
+ line_number ?: number ;
379
+ column ?: number ;
380
+ }
381
+ export interface IInnerError {
382
+ message ?: string ;
383
+ type ?: string ;
384
+ code ?: string ;
385
+ data ?: any ;
386
+ inner ?: IInnerError ;
387
+ stack_trace ?: IStackFrame [ ] ;
388
+ target_method ?: IMethod ;
389
+ }
390
+ export interface IError extends IInnerError {
391
+ modules ?: IModule [ ] ;
392
+ }
393
393
export interface IStorageItem < T > {
394
394
created : number ;
395
395
path : string ;
0 commit comments