@wildix/xbees-connect 1.2.31-alpha.4 → 1.2.31-alpha.6

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.
package/dist-cjs/index.js CHANGED
@@ -14,14 +14,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.UrlParams = exports.StartPage = exports.ClientEventType = exports.EventType = void 0;
17
+ exports.UrlParams = exports.ClientEventType = exports.EventType = void 0;
18
18
  const Client_1 = require("./src/Client");
19
19
  var enums_1 = require("./src/enums");
20
20
  Object.defineProperty(exports, "EventType", { enumerable: true, get: function () { return enums_1.EventType; } });
21
21
  var enums_2 = require("./src/enums");
22
22
  Object.defineProperty(exports, "ClientEventType", { enumerable: true, get: function () { return enums_2.ClientEventType; } });
23
23
  var enums_3 = require("./src/enums");
24
- Object.defineProperty(exports, "StartPage", { enumerable: true, get: function () { return enums_3.StartPage; } });
25
24
  Object.defineProperty(exports, "UrlParams", { enumerable: true, get: function () { return enums_3.UrlParams; } });
26
25
  __exportStar(require("./types"), exports);
27
26
  exports.default = Client_1.Client;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wildix/xbees-connect",
3
- "version": "1.2.31-alpha.4",
3
+ "version": "1.2.31-alpha",
4
4
  "description": "This library provides easy communication between x-bees and integrated web applications",
5
5
  "author": "dimitri.chernykh <dimitri.chernykh@wildix.com>",
6
6
  "homepage": "",
@@ -49,7 +49,6 @@ class Client {
49
49
  isParentReactNativeWebView;
50
50
  iframeId;
51
51
  variant = null;
52
- startPage = null;
53
52
  localStorageManager = LocalStorageManager_1.default.getInstance();
54
53
  constructor() {
55
54
  const params = (0, getUrlSearchParamsMap_1.getUrlSearchParamsMap)();
@@ -58,7 +57,6 @@ class Client {
58
57
  this.userEmail = params.get(enums_1.UrlParams.USER);
59
58
  this.referrer = params.get(enums_1.UrlParams.REFERRER);
60
59
  this.needAuthorize = params.has(enums_1.UrlParams.AUTHORIZE);
61
- this.startPage = params.get(enums_1.UrlParams.START_PAGE);
62
60
  // @ts-expect-error window.ReactNativeWebView will be provided by ReactNative WebView
63
61
  this.isParentReactNativeWebView = !!window.ReactNativeWebView;
64
62
  this.worker = this.isParentReactNativeWebView ? new PostMessageControllerNative_1.default() : new PostMessageControllerWeb_1.default();
@@ -178,9 +176,6 @@ class Client {
178
176
  getReferrer() {
179
177
  return this.referrer;
180
178
  }
181
- getStartPage() {
182
- return this.startPage;
183
- }
184
179
  isVisible() {
185
180
  return this.visible;
186
181
  }
@@ -371,11 +366,6 @@ class Client {
371
366
  }
372
367
  });
373
368
  }
374
- createContactIsSupported() {
375
- return this.sendAsync({
376
- type: enums_1.ClientEventType.CREATE_CONTACT_IS_SUPPORTED,
377
- });
378
- }
379
369
  onThemeChange(callback) {
380
370
  return this.addEventListener(enums_1.EventType.USE_THEME, callback);
381
371
  }
@@ -437,5 +427,11 @@ class Client {
437
427
  payload: { key },
438
428
  });
439
429
  }
430
+ sendDropdownVisibilityEvent(dropdownVisibilityStatus) {
431
+ void this.sendAsync({
432
+ type: enums_1.ClientEventType.DROPDOWN_VISIBILITY,
433
+ payload: { dropdownVisibilityStatus },
434
+ });
435
+ }
440
436
  }
441
437
  exports.Client = Client;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.StartPage = exports.UrlParams = exports.ClientEventType = exports.EventType = void 0;
3
+ exports.UrlParams = exports.ClientEventType = exports.EventType = void 0;
4
4
  var EventType;
5
5
  (function (EventType) {
6
6
  EventType["GET_CONTACTS_AUTO_SUGGEST"] = "xBeesGetContactsAutoSuggest";
@@ -48,7 +48,7 @@ var ClientEventType;
48
48
  ClientEventType["GET_FROM_STORAGE"] = "xBeesRequestFromStorage";
49
49
  ClientEventType["REMOVE_FROM_STORAGE"] = "xBeesRemoveFromStorage";
50
50
  ClientEventType["AVAILABLE_CONTACT_DATA"] = "xBeesAvailableContactData";
51
- ClientEventType["CREATE_CONTACT_IS_SUPPORTED"] = "xBeesCreateContactIsSupported";
51
+ ClientEventType["DROPDOWN_VISIBILITY"] = "xBeesDropdownVisibility";
52
52
  })(ClientEventType || (exports.ClientEventType = ClientEventType = {}));
53
53
  var UrlParams;
54
54
  (function (UrlParams) {
@@ -59,9 +59,4 @@ var UrlParams;
59
59
  UrlParams["EXTENSION"] = "e";
60
60
  UrlParams["REFERRER"] = "r";
61
61
  UrlParams["AUTHORIZE"] = "a";
62
- UrlParams["START_PAGE"] = "sp";
63
62
  })(UrlParams || (exports.UrlParams = UrlParams = {}));
64
- var StartPage;
65
- (function (StartPage) {
66
- StartPage["CREATE_CONTACT"] = "createContact";
67
- })(StartPage || (exports.StartPage = StartPage = {}));
@@ -17,7 +17,6 @@ class ClientParams {
17
17
  iframeId;
18
18
  variant = null;
19
19
  userExtension = null;
20
- startPage = null;
21
20
  constructor() {
22
21
  const params = (0, getUrlSearchParamsMap_1.getUrlSearchParamsMap)();
23
22
  this.iframeId = params.get(enums_1.UrlParams.ID);
@@ -27,7 +26,6 @@ class ClientParams {
27
26
  this.userToken = params.get(enums_1.UrlParams.TOKEN);
28
27
  this.referrer = params.get(enums_1.UrlParams.REFERRER);
29
28
  this.needAuthorize = params.has(enums_1.UrlParams.AUTHORIZE);
30
- this.startPage = params.get(enums_1.UrlParams.START_PAGE);
31
29
  }
32
30
  toString() {
33
31
  const { userToken, ...props } = this;
package/dist-es/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Client } from './src/Client';
2
2
  export { EventType } from './src/enums';
3
3
  export { ClientEventType } from './src/enums';
4
- export { StartPage, UrlParams } from './src/enums';
4
+ export { UrlParams } from './src/enums';
5
5
  export * from './types';
6
6
  export default Client;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wildix/xbees-connect",
3
- "version": "1.2.31-alpha.4",
3
+ "version": "1.2.31-alpha",
4
4
  "description": "This library provides easy communication between x-bees and integrated web applications",
5
5
  "author": "dimitri.chernykh <dimitri.chernykh@wildix.com>",
6
6
  "homepage": "",
@@ -43,7 +43,6 @@ export class Client {
43
43
  isParentReactNativeWebView;
44
44
  iframeId;
45
45
  variant = null;
46
- startPage = null;
47
46
  localStorageManager = LocalStorageManager.getInstance();
48
47
  constructor() {
49
48
  const params = getUrlSearchParamsMap();
@@ -52,7 +51,6 @@ export class Client {
52
51
  this.userEmail = params.get(UrlParams.USER);
53
52
  this.referrer = params.get(UrlParams.REFERRER);
54
53
  this.needAuthorize = params.has(UrlParams.AUTHORIZE);
55
- this.startPage = params.get(UrlParams.START_PAGE);
56
54
  // @ts-expect-error window.ReactNativeWebView will be provided by ReactNative WebView
57
55
  this.isParentReactNativeWebView = !!window.ReactNativeWebView;
58
56
  this.worker = this.isParentReactNativeWebView ? new PostMessageControllerNative() : new PostMessageControllerWeb();
@@ -172,9 +170,6 @@ export class Client {
172
170
  getReferrer() {
173
171
  return this.referrer;
174
172
  }
175
- getStartPage() {
176
- return this.startPage;
177
- }
178
173
  isVisible() {
179
174
  return this.visible;
180
175
  }
@@ -365,11 +360,6 @@ export class Client {
365
360
  }
366
361
  });
367
362
  }
368
- createContactIsSupported() {
369
- return this.sendAsync({
370
- type: ClientEventType.CREATE_CONTACT_IS_SUPPORTED,
371
- });
372
- }
373
363
  onThemeChange(callback) {
374
364
  return this.addEventListener(EventType.USE_THEME, callback);
375
365
  }
@@ -431,4 +421,10 @@ export class Client {
431
421
  payload: { key },
432
422
  });
433
423
  }
424
+ sendDropdownVisibilityEvent(dropdownVisibilityStatus) {
425
+ void this.sendAsync({
426
+ type: ClientEventType.DROPDOWN_VISIBILITY,
427
+ payload: { dropdownVisibilityStatus },
428
+ });
429
+ }
434
430
  }
@@ -45,7 +45,7 @@ export var ClientEventType;
45
45
  ClientEventType["GET_FROM_STORAGE"] = "xBeesRequestFromStorage";
46
46
  ClientEventType["REMOVE_FROM_STORAGE"] = "xBeesRemoveFromStorage";
47
47
  ClientEventType["AVAILABLE_CONTACT_DATA"] = "xBeesAvailableContactData";
48
- ClientEventType["CREATE_CONTACT_IS_SUPPORTED"] = "xBeesCreateContactIsSupported";
48
+ ClientEventType["DROPDOWN_VISIBILITY"] = "xBeesDropdownVisibility";
49
49
  })(ClientEventType || (ClientEventType = {}));
50
50
  export var UrlParams;
51
51
  (function (UrlParams) {
@@ -56,9 +56,4 @@ export var UrlParams;
56
56
  UrlParams["EXTENSION"] = "e";
57
57
  UrlParams["REFERRER"] = "r";
58
58
  UrlParams["AUTHORIZE"] = "a";
59
- UrlParams["START_PAGE"] = "sp";
60
59
  })(UrlParams || (UrlParams = {}));
61
- export var StartPage;
62
- (function (StartPage) {
63
- StartPage["CREATE_CONTACT"] = "createContact";
64
- })(StartPage || (StartPage = {}));
@@ -15,7 +15,6 @@ export default class ClientParams {
15
15
  iframeId;
16
16
  variant = null;
17
17
  userExtension = null;
18
- startPage = null;
19
18
  constructor() {
20
19
  const params = getUrlSearchParamsMap();
21
20
  this.iframeId = params.get(UrlParams.ID);
@@ -25,7 +24,6 @@ export default class ClientParams {
25
24
  this.userToken = params.get(UrlParams.TOKEN);
26
25
  this.referrer = params.get(UrlParams.REFERRER);
27
26
  this.needAuthorize = params.has(UrlParams.AUTHORIZE);
28
- this.startPage = params.get(UrlParams.START_PAGE);
29
27
  }
30
28
  toString() {
31
29
  const { userToken, ...props } = this;
@@ -1,6 +1,6 @@
1
1
  import { Client } from './src/Client';
2
2
  export { EventType } from './src/enums';
3
3
  export { ClientEventType } from './src/enums';
4
- export { StartPage, UrlParams } from './src/enums';
4
+ export { UrlParams } from './src/enums';
5
5
  export * from './types';
6
6
  export default Client;
@@ -1,7 +1,7 @@
1
1
  import { Callback, ConnectClient, Contact, ContactQuery, IPayloadViewPort, LookupAndMatchContactsResolver, Message, Reject, RemoveEventListener, ResponseMessage, StorageEventCallback, SuggestContactsResolver, SupportedPlatformVariant, ToastSeverity, XBeesUser } from '../types';
2
2
  import { ReadyExtendedProps } from '../types/Event';
3
3
  import { LookupAndMatchBatchContactsResolver } from '../types/Resolver';
4
- import { ClientEventType, EventType, StartPage } from './enums';
4
+ import { ClientEventType, EventType } from './enums';
5
5
  import TechnicalSupport from './helpers/TechnicalSupport';
6
6
  /**
7
7
  * Client provides functionality of communication between xBees and integrated web applications via iFrame or ReactNative WebView
@@ -25,7 +25,6 @@ export declare class Client implements ConnectClient {
25
25
  private readonly isParentReactNativeWebView;
26
26
  private readonly iframeId;
27
27
  private readonly variant;
28
- private readonly startPage;
29
28
  private readonly localStorageManager;
30
29
  constructor();
31
30
  private sendAsync;
@@ -45,7 +44,6 @@ export declare class Client implements ConnectClient {
45
44
  getPbxDomain(): string;
46
45
  getUserExtension(): string | null;
47
46
  getReferrer(): string;
48
- getStartPage(): StartPage | null;
49
47
  isVisible(): boolean;
50
48
  getBackToAppUrl(): string;
51
49
  isDataOnly(): boolean;
@@ -78,7 +76,6 @@ export declare class Client implements ConnectClient {
78
76
  onSuggestContacts(callback: (query: string, resolve: SuggestContactsResolver, reject: Reject) => void): RemoveEventListener;
79
77
  onLookupAndMatchContact(callback: (query: ContactQuery, resolve: LookupAndMatchContactsResolver, reject: Reject) => void): RemoveEventListener;
80
78
  onLookupAndMatchBatchContacts(callback: (query: ContactQuery[], returnResults: LookupAndMatchBatchContactsResolver) => void): RemoveEventListener;
81
- createContactIsSupported(): Promise<ResponseMessage>;
82
79
  onThemeChange(callback: Callback<EventType.USE_THEME>): RemoveEventListener;
83
80
  getFromStorage<Type>(key: string): Type | null;
84
81
  saveToStorage<SavingType>(key: string, value: SavingType): void;
@@ -92,4 +89,5 @@ export declare class Client implements ConnectClient {
92
89
  saveInXbeesStorage<SavingType>(key: string, value: SavingType): void;
93
90
  getFromXbeesStorage(key: string): Promise<ResponseMessage<ClientEventType.GET_FROM_STORAGE>>;
94
91
  removeFromXbeesStorage(key: string): void;
92
+ sendDropdownVisibilityEvent(dropdownVisibilityStatus: boolean): void;
95
93
  }
@@ -43,7 +43,7 @@ export declare enum ClientEventType {
43
43
  GET_FROM_STORAGE = "xBeesRequestFromStorage",
44
44
  REMOVE_FROM_STORAGE = "xBeesRemoveFromStorage",
45
45
  AVAILABLE_CONTACT_DATA = "xBeesAvailableContactData",
46
- CREATE_CONTACT_IS_SUPPORTED = "xBeesCreateContactIsSupported"
46
+ DROPDOWN_VISIBILITY = "xBeesDropdownVisibility"
47
47
  }
48
48
  export declare enum UrlParams {
49
49
  TOKEN = "t",
@@ -52,9 +52,5 @@ export declare enum UrlParams {
52
52
  USER = "u",
53
53
  EXTENSION = "e",
54
54
  REFERRER = "r",
55
- AUTHORIZE = "a",
56
- START_PAGE = "sp"
57
- }
58
- export declare enum StartPage {
59
- CREATE_CONTACT = "createContact"
55
+ AUTHORIZE = "a"
60
56
  }
@@ -1,5 +1,4 @@
1
1
  import { WorkVariants } from '../../types';
2
- import { StartPage } from '../enums';
3
2
  export default class ClientParams {
4
3
  private static instance;
5
4
  static getInstance(): ClientParams;
@@ -10,7 +9,6 @@ export default class ClientParams {
10
9
  readonly iframeId: string;
11
10
  readonly variant: WorkVariants | null;
12
11
  readonly userExtension: string | null;
13
- readonly startPage: StartPage | null;
14
12
  constructor();
15
13
  toString(): string;
16
14
  }
@@ -1,4 +1,4 @@
1
- import { ClientEventType, EventType, StartPage } from '../src/enums';
1
+ import { ClientEventType, EventType } from '../src/enums';
2
2
  import TechnicalSupport from '../src/helpers/TechnicalSupport';
3
3
  import { Callback } from './Callback';
4
4
  import { Contact, ContactQuery } from './Contact';
@@ -36,9 +36,6 @@ export interface ConnectClient {
36
36
  /**
37
37
  * Retrieves url to get back to x-bees app integration */
38
38
  getBackToAppUrl: () => string;
39
- /**
40
- * Retrieves start page from url */
41
- getStartPage: () => StartPage | null;
42
39
  /**
43
40
  * Retrieves the version of xBeesConnect */
44
41
  version: () => string;
@@ -138,9 +135,6 @@ export interface ConnectClient {
138
135
  /**
139
136
  * Starts listen for the events of searching batch contacts info and handle match with the provided callback */
140
137
  onLookupAndMatchBatchContacts: (callback: (queries: ContactQuery[], returnResults: LookupAndMatchBatchContactsResolver) => void) => RemoveEventListener;
141
- /**
142
- * Send event for indicate if create contact functionality is supported */
143
- createContactIsSupported: () => Promise<ResponseMessage>;
144
138
  /**
145
139
  * Starts listen for the events of starting the call and handle with the provided callback */
146
140
  onCallStarted: (callback: Callback<EventType.ADD_CALL>) => RemoveEventListener;
@@ -189,4 +183,8 @@ export interface ConnectClient {
189
183
  /**
190
184
  * Remove data from x-bees storage */
191
185
  removeFromXbeesStorage: (key: string) => void;
186
+ /**
187
+ * Send to xbees dropdown status when it is actioned for change Webview nestedScrollEnabled (Android)
188
+ */
189
+ sendDropdownVisibilityEvent: (dropdownVisibilityStatus: boolean) => void;
192
190
  }
@@ -2,10 +2,10 @@ import { ClientEventType, EventType } from '../src/enums';
2
2
  import { AvailableContactData } from './AvailableContactData';
3
3
  import { ContactQuery } from './Contact';
4
4
  import { Message, MessageType } from './Message';
5
- import { IPayloadAutoSuggestResult, IPayloadBatchContactsMatchResult, IPayloadBatchContactsMatchResultError, IPayloadCallStart, IPayloadCallStartedInfo, IPayloadContactMatchResult, IPayloadContactMatchResultNotFound, IPayloadContactResult, IPayloadContextResult, IPayloadConversationResult, IPayloadGetFromStorage, IPayloadSaveToStorage, IPayloadSendAnalytics, IPayloadTechSupport, IPayloadThemeChange, IPayloadToast, IPayloadVersion, IPayloadViewPort } from './Payload';
5
+ import { IPayloadAutoSuggestResult, IPayloadBatchContactsMatchResult, IPayloadBatchContactsMatchResultError, IPayloadCallStart, IPayloadCallStartedInfo, IPayloadContactMatchResult, IPayloadContactMatchResultNotFound, IPayloadContactResult, IPayloadContextResult, IPayloadConversationResult, IPayloadDropdownVisibility, IPayloadGetFromStorage, IPayloadSaveToStorage, IPayloadSendAnalytics, IPayloadTechSupport, IPayloadThemeChange, IPayloadToast, IPayloadVersion, IPayloadViewPort } from './Payload';
6
6
  import { SupportedPlatformVariant } from './Platform';
7
7
  import { XBeesUser } from './XBeesUser';
8
- export type EventPayload<T extends MessageType> = T extends EventType.GET_CONTACTS_AUTO_SUGGEST ? string : T extends ClientEventType.CONTACTS_AUTO_SUGGEST ? IPayloadAutoSuggestResult : T extends ClientEventType.CONTACT_LOOKUP_AND_MATCH | ClientEventType.CONTACT_CREATE_OR_UPDATE | ClientEventType.CONTACT_MATCH_UPDATE ? IPayloadContactMatchResult : T extends ClientEventType.CONTACT_LOOKUP_AND_MATCH_NOT_FOUND ? IPayloadContactMatchResultNotFound : T extends ClientEventType.LOOKUP_AND_MATCH_BATCH_ERROR ? IPayloadBatchContactsMatchResultError : T extends ClientEventType.CONTEXT ? IPayloadContextResult : T extends ClientEventType.CURRENT_CONTACT ? IPayloadContactResult : T extends ClientEventType.CURRENT_CONVERSATION ? IPayloadConversationResult : T extends EventType.ADD_CALL ? IPayloadCallStartedInfo : T extends ClientEventType.START_CALL ? IPayloadCallStart : T extends ClientEventType.READY ? IPayloadVersion : T extends ClientEventType.VIEW_PORT ? IPayloadViewPort : T extends ClientEventType.THEME ? IPayloadThemeChange : T extends EventType.USE_THEME ? IPayloadThemeChange : T extends ClientEventType.TOAST ? IPayloadToast : T extends ClientEventType.SEND_ANALYTICS ? IPayloadSendAnalytics : T extends ClientEventType.SEND_TECHNICAL_SUPPORT_INFORMATION ? IPayloadTechSupport : T extends EventType.PBX_TOKEN ? string : T extends ClientEventType.TOKEN ? string : T extends ClientEventType.TO_CLIPBOARD ? string : T extends EventType.GET_LOOK_UP_AND_MATCH ? ContactQuery : T extends EventType.GET_LOOK_UP_AND_MATCH_BATCH ? ContactQuery[] : T extends EventType.VISIBILITY ? boolean : T extends ClientEventType.USER ? XBeesUser : T extends ClientEventType.SAVE_TO_STORAGE ? IPayloadSaveToStorage : T extends ClientEventType.GET_FROM_STORAGE ? IPayloadGetFromStorage : T extends ClientEventType.REMOVE_FROM_STORAGE ? IPayloadGetFromStorage : T extends ClientEventType.AVAILABLE_CONTACT_DATA ? AvailableContactData | null : T extends ClientEventType.LOOK_UP_AND_MATCH_BATCH_CONTACTS ? IPayloadBatchContactsMatchResult : never;
8
+ export type EventPayload<T extends MessageType> = T extends EventType.GET_CONTACTS_AUTO_SUGGEST ? string : T extends ClientEventType.CONTACTS_AUTO_SUGGEST ? IPayloadAutoSuggestResult : T extends ClientEventType.CONTACT_LOOKUP_AND_MATCH | ClientEventType.CONTACT_CREATE_OR_UPDATE | ClientEventType.CONTACT_MATCH_UPDATE ? IPayloadContactMatchResult : T extends ClientEventType.CONTACT_LOOKUP_AND_MATCH_NOT_FOUND ? IPayloadContactMatchResultNotFound : T extends ClientEventType.LOOKUP_AND_MATCH_BATCH_ERROR ? IPayloadBatchContactsMatchResultError : T extends ClientEventType.CONTEXT ? IPayloadContextResult : T extends ClientEventType.CURRENT_CONTACT ? IPayloadContactResult : T extends ClientEventType.CURRENT_CONVERSATION ? IPayloadConversationResult : T extends EventType.ADD_CALL ? IPayloadCallStartedInfo : T extends ClientEventType.START_CALL ? IPayloadCallStart : T extends ClientEventType.READY ? IPayloadVersion : T extends ClientEventType.VIEW_PORT ? IPayloadViewPort : T extends ClientEventType.THEME ? IPayloadThemeChange : T extends EventType.USE_THEME ? IPayloadThemeChange : T extends ClientEventType.TOAST ? IPayloadToast : T extends ClientEventType.SEND_ANALYTICS ? IPayloadSendAnalytics : T extends ClientEventType.SEND_TECHNICAL_SUPPORT_INFORMATION ? IPayloadTechSupport : T extends EventType.PBX_TOKEN ? string : T extends ClientEventType.TOKEN ? string : T extends ClientEventType.TO_CLIPBOARD ? string : T extends EventType.GET_LOOK_UP_AND_MATCH ? ContactQuery : T extends EventType.GET_LOOK_UP_AND_MATCH_BATCH ? ContactQuery[] : T extends EventType.VISIBILITY ? boolean : T extends ClientEventType.USER ? XBeesUser : T extends ClientEventType.SAVE_TO_STORAGE ? IPayloadSaveToStorage : T extends ClientEventType.GET_FROM_STORAGE ? IPayloadGetFromStorage : T extends ClientEventType.REMOVE_FROM_STORAGE ? IPayloadGetFromStorage : T extends ClientEventType.AVAILABLE_CONTACT_DATA ? AvailableContactData | null : T extends ClientEventType.LOOK_UP_AND_MATCH_BATCH_CONTACTS ? IPayloadBatchContactsMatchResult : T extends ClientEventType.DROPDOWN_VISIBILITY ? IPayloadDropdownVisibility : never;
9
9
  export type EventPayloadMap = {
10
10
  [EventType.GET_CONTACTS_AUTO_SUGGEST]: string;
11
11
  [EventType.GET_LOOK_UP_AND_MATCH]: ContactQuery;
@@ -74,4 +74,7 @@ export interface IPayloadTechSupport {
74
74
  message: string;
75
75
  data?: JSONObject | JSONArray;
76
76
  }
77
+ export interface IPayloadDropdownVisibility {
78
+ dropdownVisibilityStatus: boolean;
79
+ }
77
80
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wildix/xbees-connect",
3
- "version": "1.2.31-alpha.4",
3
+ "version": "1.2.31-alpha.6",
4
4
  "description": "This library provides easy communication between x-bees and integrated web applications",
5
5
  "author": "dimitri.chernykh <dimitri.chernykh@wildix.com>",
6
6
  "homepage": "",
@@ -45,5 +45,5 @@
45
45
  "engines": {
46
46
  "node": ">=16"
47
47
  },
48
- "gitHead": "1094be80cdaec56a2b2e377c21537f58d998cc2c"
48
+ "gitHead": "a5b0bd9fa9f26d94d5bda1032e38dbf66dc1e6c8"
49
49
  }