@wildix/xbees-connect 1.2.31-alpha.0 → 1.2.31-alpha.2
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/package.json +1 -1
- package/dist-cjs/src/Client.js +5 -0
- package/dist-cjs/src/enums/index.js +7 -1
- package/dist-es/package.json +1 -1
- package/dist-es/src/Client.js +5 -0
- package/dist-es/src/enums/index.js +6 -0
- package/dist-types/src/Client.d.ts +1 -0
- package/dist-types/src/enums/index.d.ts +7 -2
- package/dist-types/types/Client.d.ts +3 -0
- package/package.json +2 -2
package/dist-cjs/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/xbees-connect",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.31-alpha.2",
|
|
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": "",
|
package/dist-cjs/src/Client.js
CHANGED
|
@@ -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
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UrlParams = exports.ClientEventType = exports.EventType = void 0;
|
|
3
|
+
exports.StartPage = 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,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) {
|
|
@@ -58,4 +59,9 @@ var UrlParams;
|
|
|
58
59
|
UrlParams["EXTENSION"] = "e";
|
|
59
60
|
UrlParams["REFERRER"] = "r";
|
|
60
61
|
UrlParams["AUTHORIZE"] = "a";
|
|
62
|
+
UrlParams["START_PAGE"] = "sp";
|
|
61
63
|
})(UrlParams || (exports.UrlParams = UrlParams = {}));
|
|
64
|
+
var StartPage;
|
|
65
|
+
(function (StartPage) {
|
|
66
|
+
StartPage["CREATE_CONTACT"] = "createContact";
|
|
67
|
+
})(StartPage || (exports.StartPage = StartPage = {}));
|
package/dist-es/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/xbees-connect",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.31-alpha.2",
|
|
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": "",
|
package/dist-es/src/Client.js
CHANGED
|
@@ -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) {
|
|
@@ -55,4 +56,9 @@ export var UrlParams;
|
|
|
55
56
|
UrlParams["EXTENSION"] = "e";
|
|
56
57
|
UrlParams["REFERRER"] = "r";
|
|
57
58
|
UrlParams["AUTHORIZE"] = "a";
|
|
59
|
+
UrlParams["START_PAGE"] = "sp";
|
|
58
60
|
})(UrlParams || (UrlParams = {}));
|
|
61
|
+
export var StartPage;
|
|
62
|
+
(function (StartPage) {
|
|
63
|
+
StartPage["CREATE_CONTACT"] = "createContact";
|
|
64
|
+
})(StartPage || (StartPage = {}));
|
|
@@ -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",
|
|
@@ -51,5 +52,9 @@ export declare enum UrlParams {
|
|
|
51
52
|
USER = "u",
|
|
52
53
|
EXTENSION = "e",
|
|
53
54
|
REFERRER = "r",
|
|
54
|
-
AUTHORIZE = "a"
|
|
55
|
+
AUTHORIZE = "a",
|
|
56
|
+
START_PAGE = "sp"
|
|
57
|
+
}
|
|
58
|
+
export declare enum StartPage {
|
|
59
|
+
CREATE_CONTACT = "createContact"
|
|
55
60
|
}
|
|
@@ -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.31-alpha.
|
|
3
|
+
"version": "1.2.31-alpha.2",
|
|
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": "
|
|
48
|
+
"gitHead": "825c55c5b470dc367d65272e33ed1a80223f1702"
|
|
49
49
|
}
|