Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 1.3.{build}
version: 1.4.{build}

install:
- ps: Install-Product node 5
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "exceptionless",
"version": "1.3.2",
"version": "1.4.0",
"description": "JavaScript client for Exceptionless",
"license": "Apache-2.0",
"main": "dist/exceptionless.js",
Expand Down
25 changes: 14 additions & 11 deletions dist/exceptionless.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,18 @@ export interface IStorageProvider {
settings: IStorage;
}
export interface ISubmissionAdapter {
sendRequest(request: SubmissionRequest, callback: SubmissionCallback, isAppExiting?: boolean): void;
sendRequest(request: SubmissionRequest, callback?: SubmissionCallback, isAppExiting?: boolean): void;
}
export interface ISubmissionClient {
postEvents(events: IEvent[], config: Configuration, callback: (response: SubmissionResponse) => void, isAppExiting?: boolean): void;
postUserDescription(referenceId: string, description: IUserDescription, config: Configuration, callback: (response: SubmissionResponse) => void): void;
getSettings(config: Configuration, callback: (response: SettingsResponse) => void): void;
sendHeartbeat(sessionIdOrUserId: string, closeSession: boolean, config: Configuration): void;
}
export interface IConfigurationSettings {
apiKey?: string;
serverUrl?: string;
heartbeatServerUrl?: string;
environmentInfoCollector?: IEnvironmentInfoCollector;
errorParser?: IErrorParser;
lastReferenceIdManager?: ILastReferenceIdManager;
Expand Down Expand Up @@ -114,8 +116,9 @@ export declare class EventPluginManager {
export declare class HeartbeatPlugin implements IEventPlugin {
priority: number;
name: string;
private _heartbeatInterval;
private _heartbeatIntervalId;
private _lastUser;
constructor(heartbeatInterval?: number);
run(context: EventPluginContext, next?: () => void): void;
}
export declare class ReferenceIdPlugin implements IEventPlugin {
Expand Down Expand Up @@ -150,7 +153,8 @@ export declare class DefaultSubmissionClient implements ISubmissionClient {
postEvents(events: IEvent[], config: Configuration, callback: (response: SubmissionResponse) => void, isAppExiting?: boolean): void;
postUserDescription(referenceId: string, description: IUserDescription, config: Configuration, callback: (response: SubmissionResponse) => void): void;
getSettings(config: Configuration, callback: (response: SettingsResponse) => void): void;
private createRequest(config, method, path, data?);
sendHeartbeat(sessionIdOrUserId: string, closeSession: boolean, config: Configuration): void;
private createRequest(config, method, url, data?);
private createSubmissionCallback(config, callback);
}
export declare class Utils {
Expand Down Expand Up @@ -190,6 +194,8 @@ export declare class Configuration implements IConfigurationSettings {
isValid: boolean;
private _serverUrl;
serverUrl: string;
private _heartbeatServerUrl;
heartbeatServerUrl: string;
private _dataExclusions;
private _userAgentBotPatterns;
dataExclusions: string[];
Expand All @@ -206,7 +212,7 @@ export declare class Configuration implements IConfigurationSettings {
setUserIdentity(identity: string): void;
setUserIdentity(identity: string, name: string): void;
userAgent: string;
useSessions(sendHeartbeats?: boolean): void;
useSessions(sendHeartbeats?: boolean, heartbeatInterval?: number): void;
useReferenceIds(): void;
useLocalStorage(): void;
useDebugLogger(): void;
Expand Down Expand Up @@ -286,10 +292,8 @@ export declare class ExceptionlessClient {
submitNotFound(resource: string, callback?: (context: EventPluginContext) => void): void;
createSessionStart(): EventBuilder;
submitSessionStart(callback?: (context: EventPluginContext) => void): void;
createSessionEnd(): EventBuilder;
submitSessionEnd(callback?: (context: EventPluginContext) => void): void;
createSessionHeartbeat(): EventBuilder;
submitSessionHeartbeat(callback?: (context: EventPluginContext) => void): void;
submitSessionEnd(sessionIdOrUserId: string): void;
submitSessionHeartbeat(sessionIdOrUserId: string): void;
createEvent(pluginContextData?: ContextData): EventBuilder;
submitEvent(event: IEvent, pluginContextData?: ContextData, callback?: (context: EventPluginContext) => void): void;
updateUserEmailAndDescription(referenceId: string, email: string, description: string, callback?: (response: SubmissionResponse) => void): void;
Expand Down Expand Up @@ -427,11 +431,10 @@ export interface SubmissionCallback {
(status: number, message: string, data?: string, headers?: Object): void;
}
export interface SubmissionRequest {
serverUrl: string;
apiKey: string;
userAgent: string;
method: string;
path: string;
url: string;
data: string;
}
export declare class SettingsResponse {
Expand Down Expand Up @@ -496,7 +499,7 @@ export declare class DefaultRequestInfoCollector implements IRequestInfoCollecto
getRequestInfo(context: EventPluginContext): IRequestInfo;
}
export declare class DefaultSubmissionAdapter implements ISubmissionAdapter {
sendRequest(request: SubmissionRequest, callback: SubmissionCallback, isAppExiting?: boolean): void;
sendRequest(request: SubmissionRequest, callback?: SubmissionCallback, isAppExiting?: boolean): void;
}
export declare class BrowserStorageProvider implements IStorageProvider {
queue: IStorage;
Expand Down
Loading