@wildix/xbees-connect 1.2.0-alpha.1 → 1.2.0-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-es/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/xbees-connect",
|
|
3
|
-
"version": "1.2.0-alpha.
|
|
3
|
+
"version": "1.2.0-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": "",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventType } from '../src/enums';
|
|
1
|
+
import { ClientEventType, EventType } from '../src/enums';
|
|
2
2
|
import { Callback } from './Callback';
|
|
3
3
|
import { Contact, ContactQuery } from './Contact';
|
|
4
4
|
import { RemoveEventListener } from './Listener';
|
|
@@ -53,25 +53,25 @@ export interface ConnectClient {
|
|
|
53
53
|
isActivationOnly: () => boolean;
|
|
54
54
|
/**
|
|
55
55
|
* Retrieves current x-bees context data */
|
|
56
|
-
getContext: () => Promise<ResponseMessage
|
|
56
|
+
getContext: () => Promise<ResponseMessage<ClientEventType.CONTEXT>>;
|
|
57
57
|
/**
|
|
58
58
|
* Retrieves current opened in x-bees contact data */
|
|
59
|
-
getCurrentContact: () => Promise<ResponseMessage
|
|
59
|
+
getCurrentContact: () => Promise<ResponseMessage<ClientEventType.CURRENT_CONTACT>>;
|
|
60
60
|
/**
|
|
61
61
|
* Retrieves current opened in x-bees conversation data or undefined if the conversation is temporary */
|
|
62
|
-
getCurrentConversation: () => Promise<ResponseMessage
|
|
62
|
+
getCurrentConversation: () => Promise<ResponseMessage<ClientEventType.CURRENT_CONVERSATION>>;
|
|
63
63
|
/**
|
|
64
64
|
* Sends notification to x-bees about contact data updated */
|
|
65
|
-
contactUpdated(query: ContactQuery, contact: Contact): Promise<ResponseMessage
|
|
65
|
+
contactUpdated(query: ContactQuery, contact: Contact): Promise<ResponseMessage<ClientEventType.CONTACT_CREATE_OR_UPDATE>>;
|
|
66
66
|
/**
|
|
67
67
|
* Sends notification to x-bees about contact match was updated */
|
|
68
|
-
contactMatchUpdated(query: ContactQuery, contact: Contact): Promise<ResponseMessage
|
|
68
|
+
contactMatchUpdated(query: ContactQuery, contact: Contact): Promise<ResponseMessage<ClientEventType.CONTACT_MATCH_UPDATE>>;
|
|
69
69
|
/**
|
|
70
70
|
* Retrieves current theme mode (light or dark) */
|
|
71
|
-
getThemeMode: () => Promise<ResponseMessage
|
|
71
|
+
getThemeMode: () => Promise<ResponseMessage<ClientEventType.THEME_MODE>>;
|
|
72
72
|
/**
|
|
73
73
|
* Retrieves current theme with mode (light or dark) and theme options like typography settings and palette */
|
|
74
|
-
getTheme: () => Promise<ResponseMessage
|
|
74
|
+
getTheme: () => Promise<ResponseMessage<ClientEventType.THEME>>;
|
|
75
75
|
/**
|
|
76
76
|
* Sends request to x-bees to start a call with the number */
|
|
77
77
|
startCall: (phoneNumber: string) => Promise<ResponseMessage>;
|
|
@@ -107,7 +107,7 @@ export interface ConnectClient {
|
|
|
107
107
|
onPbxTokenChange: (callback: Callback<EventType.PBX_TOKEN>) => RemoveEventListener;
|
|
108
108
|
/**
|
|
109
109
|
* Retrieves current x-bees token */
|
|
110
|
-
getXBeesToken: () => Promise<ResponseMessage
|
|
110
|
+
getXBeesToken: () => Promise<ResponseMessage<ClientEventType.TOKEN>>;
|
|
111
111
|
/**
|
|
112
112
|
* Starts listen for the events of searching contacts and handle autosuggestion with the provided callback */
|
|
113
113
|
onSuggestContacts: (callback: (query: string, resolve: SuggestContactsResolver, reject: Reject) => void) => RemoveEventListener;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/xbees-connect",
|
|
3
|
-
"version": "1.2.0-alpha.
|
|
3
|
+
"version": "1.2.0-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": "",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"engines": {
|
|
43
43
|
"node": ">=16"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "e18b94393f098d28bdcdf727173e765802584692"
|
|
46
46
|
}
|