@voicenter-team/events-sdk 0.0.55 → 0.0.57

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -85,11 +85,11 @@ declare class AuthClass {
85
85
  lastLoginTimestamp: number | undefined;
86
86
  token: string | undefined;
87
87
  private storageKey;
88
- login(options: EventsSdkOptions): Promise<void>;
88
+ login(options: EventsSdkOptions): Promise<Partial<LoginSessionData> | undefined>;
89
89
  updateLastLoginTimestamp(): void;
90
90
  private checkLoginStatus;
91
91
  private userLoginFunction;
92
- private onLoginResponse;
92
+ onLoginResponse(loginSessionData: Partial<LoginSessionData>): void;
93
93
  handleTokenExpiry(): void;
94
94
  private externalLogin;
95
95
  private getSettings;
@@ -125,6 +125,12 @@ export declare type changeIsMutedListener = (value: boolean) => void
125
125
 
126
126
  export declare type changeMuteWhenJoinListener = (value: boolean) => void
127
127
 
128
+ declare enum ConnectionStatusEnum {
129
+ CONNECTED = 'connected',
130
+ DISCONNECTED = 'disconnected',
131
+ TRYING_TO_CONNECT = 'tryingToConnect',
132
+ }
133
+
128
134
  declare interface CurrentCallEnded extends CurrentCallUTCExtended {
129
135
  duration: number
130
136
  }
@@ -835,17 +841,10 @@ declare enum LoginType {
835
841
 
836
842
  declare type OnlineStatusEvent = {
837
843
  /**
838
- * if we do reconnect
839
- */
840
- doReconnect: boolean;
841
- /**
842
- * attemptToConnect
844
+ * which server sdk trying to connect
843
845
  */
844
846
  attemptToConnect?: string;
845
- /**
846
- * Is client side connected to socket server
847
- */
848
- isSocketConnected: boolean;
847
+ connectionStatus: ConnectionStatusEnum;
849
848
  };
850
849
 
851
850
  export declare type OnlineStatusEventSDK = EventTypeData<EventsEnum.ONLINE_STATUS_EVENT>