@voicenter-team/events-sdk 0.0.5 → 0.0.7

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.
@@ -32,14 +32,15 @@ declare class AuthClass {
32
32
  private delay;
33
33
  lastLoginTimestamp: number | undefined;
34
34
  token: string | undefined;
35
+ private storageKey;
35
36
  login(options: EventsSdkOptions): Promise<void>;
36
37
  updateLastLoginTimestamp(): void;
37
38
  private checkLoginStatus;
38
- private onLoginResponse;
39
39
  private userLoginFunction;
40
+ private onLoginResponse;
40
41
  handleTokenExpiry(): void;
41
- private getExternalLoginUrl;
42
42
  private externalLogin;
43
+ private getSettings;
43
44
  private refreshToken;
44
45
  }
45
46
 
@@ -118,11 +119,6 @@ declare enum DoNotCallMeStatusCodeEnum {
118
119
  RESPONSE_FROM_API_INVALID = "RESPONSE_FROM_API_INVALID"
119
120
  }
120
121
 
121
- export declare enum Environment {
122
- BROWSER = "browser",
123
- CHROME_EXTENSION = "chrome-extension"
124
- }
125
-
126
122
  /**
127
123
  * Defines a registry of callback functions for each event type.
128
124
  * Each key is an event type name, and the value is a function that takes the specific event data type as an argument.
@@ -239,16 +235,13 @@ declare class EventsSdkClass {
239
235
  export default EventsSdkClass;
240
236
 
241
237
  declare interface EventsSdkOptions {
242
- url?: string;
243
- environment?: string;
244
238
  fallbackServer: Server;
245
- loginUrl: string;
246
239
  refreshTokenUrl?: string;
247
240
  refreshToken?: string;
248
241
  servers?: string;
249
242
  token: string;
250
243
  tokenExpiry?: Date;
251
- loginType: string;
244
+ loginType: LoginType;
252
245
  forceNew?: boolean;
253
246
  reconnectionDelay: number;
254
247
  reconnectionDelayMax?: number;
@@ -259,10 +252,6 @@ declare interface EventsSdkOptions {
259
252
  protocol: string;
260
253
  transports?: string[];
261
254
  upgrade?: boolean;
262
- store?: string;
263
- extensionsModuleName?: string;
264
- queuesModuleName?: string;
265
- dialersModuleName?: string;
266
255
  serverFetchStrategy?: string;
267
256
  serverType?: number;
268
257
  useLogger?: boolean;
@@ -425,6 +414,11 @@ declare interface LoginStatusEvent extends CommonEventProperties {
425
414
 
426
415
  declare type LoginSuccessEvent = CommonEventProperties
427
416
 
417
+ declare enum LoginType {
418
+ USER = "User",
419
+ TOKEN = "Token"
420
+ }
421
+
428
422
  declare interface OnlineStatusEvent {
429
423
  isSocketConnected: boolean
430
424
  }
@@ -485,6 +479,8 @@ declare interface Recording {
485
479
  declare interface Server {
486
480
  Priority: number;
487
481
  Domain: string;
482
+ URLID: number;
483
+ Version: string;
488
484
  }
489
485
 
490
486
  declare enum ServerParameter {