@wildix/xbees-connect 1.2.30 → 1.2.31-alpha.1

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wildix/xbees-connect",
3
- "version": "1.2.29",
3
+ "version": "1.2.31-alpha.0",
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": "",
@@ -366,6 +366,11 @@ class Client {
366
366
  }
367
367
  });
368
368
  }
369
+ createContactIsSupported() {
370
+ return this.sendAsync({
371
+ type: enums_1.ClientEventType.CREATE_CONTACT_IS_SUPPORTED,
372
+ });
373
+ }
369
374
  onThemeChange(callback) {
370
375
  return this.addEventListener(enums_1.EventType.USE_THEME, callback);
371
376
  }
@@ -48,6 +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
52
  })(ClientEventType || (exports.ClientEventType = ClientEventType = {}));
52
53
  var UrlParams;
53
54
  (function (UrlParams) {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wildix/xbees-connect",
3
- "version": "1.2.29",
3
+ "version": "1.2.31-alpha.0",
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": "",
@@ -360,6 +360,11 @@ export class Client {
360
360
  }
361
361
  });
362
362
  }
363
+ createContactIsSupported() {
364
+ return this.sendAsync({
365
+ type: ClientEventType.CREATE_CONTACT_IS_SUPPORTED,
366
+ });
367
+ }
363
368
  onThemeChange(callback) {
364
369
  return this.addEventListener(EventType.USE_THEME, callback);
365
370
  }
@@ -45,6 +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
49
  })(ClientEventType || (ClientEventType = {}));
49
50
  export var UrlParams;
50
51
  (function (UrlParams) {
@@ -76,6 +76,7 @@ export declare class Client implements ConnectClient {
76
76
  onSuggestContacts(callback: (query: string, resolve: SuggestContactsResolver, reject: Reject) => void): RemoveEventListener;
77
77
  onLookupAndMatchContact(callback: (query: ContactQuery, resolve: LookupAndMatchContactsResolver, reject: Reject) => void): RemoveEventListener;
78
78
  onLookupAndMatchBatchContacts(callback: (query: ContactQuery[], returnResults: LookupAndMatchBatchContactsResolver) => void): RemoveEventListener;
79
+ createContactIsSupported(): Promise<ResponseMessage>;
79
80
  onThemeChange(callback: Callback<EventType.USE_THEME>): RemoveEventListener;
80
81
  getFromStorage<Type>(key: string): Type | null;
81
82
  saveToStorage<SavingType>(key: string, value: SavingType): void;
@@ -42,7 +42,8 @@ export declare enum ClientEventType {
42
42
  SAVE_TO_STORAGE = "xBeesSaveToStorage",
43
43
  GET_FROM_STORAGE = "xBeesRequestFromStorage",
44
44
  REMOVE_FROM_STORAGE = "xBeesRemoveFromStorage",
45
- AVAILABLE_CONTACT_DATA = "xBeesAvailableContactData"
45
+ AVAILABLE_CONTACT_DATA = "xBeesAvailableContactData",
46
+ CREATE_CONTACT_IS_SUPPORTED = "xBeesCreateContactIsSupported"
46
47
  }
47
48
  export declare enum UrlParams {
48
49
  TOKEN = "t",
@@ -135,6 +135,9 @@ export interface ConnectClient {
135
135
  /**
136
136
  * Starts listen for the events of searching batch contacts info and handle match with the provided callback */
137
137
  onLookupAndMatchBatchContacts: (callback: (queries: ContactQuery[], returnResults: LookupAndMatchBatchContactsResolver) => void) => RemoveEventListener;
138
+ /**
139
+ * Send event for indicate if create contact functionality is supported */
140
+ createContactIsSupported: () => Promise<ResponseMessage>;
138
141
  /**
139
142
  * Starts listen for the events of starting the call and handle with the provided callback */
140
143
  onCallStarted: (callback: Callback<EventType.ADD_CALL>) => RemoveEventListener;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wildix/xbees-connect",
3
- "version": "1.2.30",
3
+ "version": "1.2.31-alpha.1",
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": "1703d08bf2881bb71437334fb474a7b0897da54d"
48
+ "gitHead": "077adcb1a88cbafafc9a9104c9dcda3178dbf262"
49
49
  }