@voicenter-team/events-sdk 0.0.6 → 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,13 +32,13 @@ 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
43
  private getSettings;
44
44
  private refreshToken;
@@ -119,11 +119,6 @@ declare enum DoNotCallMeStatusCodeEnum {
119
119
  RESPONSE_FROM_API_INVALID = "RESPONSE_FROM_API_INVALID"
120
120
  }
121
121
 
122
- export declare enum Environment {
123
- BROWSER = "browser",
124
- CHROME_EXTENSION = "chrome-extension"
125
- }
126
-
127
122
  /**
128
123
  * Defines a registry of callback functions for each event type.
129
124
  * Each key is an event type name, and the value is a function that takes the specific event data type as an argument.
@@ -240,15 +235,13 @@ declare class EventsSdkClass {
240
235
  export default EventsSdkClass;
241
236
 
242
237
  declare interface EventsSdkOptions {
243
- url?: string;
244
- environment: Environment;
245
238
  fallbackServer: Server;
246
239
  refreshTokenUrl?: string;
247
240
  refreshToken?: string;
248
241
  servers?: string;
249
242
  token: string;
250
243
  tokenExpiry?: Date;
251
- loginType: LoginTypeNewStackEnum | LoginTypeOldStackEnum;
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;
@@ -273,7 +262,6 @@ declare interface EventsSdkOptions {
273
262
  email: string;
274
263
  password: string;
275
264
  username: string;
276
- newStack: boolean;
277
265
  }
278
266
 
279
267
  declare type EventTypeData<T extends EventsEnum_2> = EventDataMap[T]
@@ -426,14 +414,9 @@ declare interface LoginStatusEvent extends CommonEventProperties {
426
414
 
427
415
  declare type LoginSuccessEvent = CommonEventProperties
428
416
 
429
- declare enum LoginTypeNewStackEnum {
430
- USER = "2",
431
- TOKEN = "3"
432
- }
433
-
434
- declare enum LoginTypeOldStackEnum {
435
- USER = "user",
436
- TOKEN = "token"
417
+ declare enum LoginType {
418
+ USER = "User",
419
+ TOKEN = "Token"
437
420
  }
438
421
 
439
422
  declare interface OnlineStatusEvent {
@@ -496,8 +479,8 @@ declare interface Recording {
496
479
  declare interface Server {
497
480
  Priority: number;
498
481
  Domain: string;
499
- URLID?: number;
500
- Version?: string;
482
+ URLID: number;
483
+ Version: string;
501
484
  }
502
485
 
503
486
  declare enum ServerParameter {