@unblu/floating-js-api 7.37.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/LICENSE.md +184 -0
- package/README.md +26 -0
- package/dist/lib/index.d.ts +93 -0
- package/dist/lib/index.js +49 -0
- package/dist/lib/index.js.map +1 -0
- package/dist/lib/internal/internal-api.d.ts +18 -0
- package/dist/lib/internal/internal-api.js +20 -0
- package/dist/lib/internal/internal-api.js.map +1 -0
- package/dist/lib/internal/module/general-lazy-module.d.ts +17 -0
- package/dist/lib/internal/module/general-lazy-module.js +16 -0
- package/dist/lib/internal/module/general-lazy-module.js.map +1 -0
- package/dist/lib/internal/module/general-module.d.ts +31 -0
- package/dist/lib/internal/module/general-module.js +37 -0
- package/dist/lib/internal/module/general-module.js.map +1 -0
- package/dist/lib/internal/module/meta-module.d.ts +17 -0
- package/dist/lib/internal/module/meta-module.js +19 -0
- package/dist/lib/internal/module/meta-module.js.map +1 -0
- package/dist/lib/model/individualui_component.d.ts +29 -0
- package/dist/lib/model/individualui_component.js +2 -0
- package/dist/lib/model/individualui_component.js.map +1 -0
- package/dist/lib/model/individualui_state.d.ts +14 -0
- package/dist/lib/model/individualui_state.js +2 -0
- package/dist/lib/model/individualui_state.js.map +1 -0
- package/dist/lib/shared/api-state.d.ts +8 -0
- package/dist/lib/shared/api-state.js +10 -0
- package/dist/lib/shared/api-state.js.map +1 -0
- package/dist/lib/shared/conversation.d.ts +320 -0
- package/dist/lib/shared/conversation.js +384 -0
- package/dist/lib/shared/conversation.js.map +1 -0
- package/dist/lib/shared/internal/api-bridge.d.ts +36 -0
- package/dist/lib/shared/internal/api-bridge.js +97 -0
- package/dist/lib/shared/internal/api-bridge.js.map +1 -0
- package/dist/lib/shared/internal/event.d.ts +6 -0
- package/dist/lib/shared/internal/event.js +2 -0
- package/dist/lib/shared/internal/event.js.map +1 -0
- package/dist/lib/shared/internal/initialized-unblu-api.d.ts +6 -0
- package/dist/lib/shared/internal/initialized-unblu-api.js +2 -0
- package/dist/lib/shared/internal/initialized-unblu-api.js.map +1 -0
- package/dist/lib/shared/internal/initialized-unblu-element.d.ts +6 -0
- package/dist/lib/shared/internal/initialized-unblu-element.js +2 -0
- package/dist/lib/shared/internal/initialized-unblu-element.js.map +1 -0
- package/dist/lib/shared/internal/java-error-codes.d.ts +5 -0
- package/dist/lib/shared/internal/java-error-codes.js +6 -0
- package/dist/lib/shared/internal/java-error-codes.js.map +1 -0
- package/dist/lib/shared/internal/module/agent-availability-module.d.ts +14 -0
- package/dist/lib/shared/internal/module/agent-availability-module.js +13 -0
- package/dist/lib/shared/internal/module/agent-availability-module.js.map +1 -0
- package/dist/lib/shared/internal/module/base-general-module.d.ts +31 -0
- package/dist/lib/shared/internal/module/base-general-module.js +46 -0
- package/dist/lib/shared/internal/module/base-general-module.js.map +1 -0
- package/dist/lib/shared/internal/module/conversation-module.d.ts +57 -0
- package/dist/lib/shared/internal/module/conversation-module.js +49 -0
- package/dist/lib/shared/internal/module/conversation-module.js.map +1 -0
- package/dist/lib/shared/internal/module/module.d.ts +10 -0
- package/dist/lib/shared/internal/module/module.js +16 -0
- package/dist/lib/shared/internal/module/module.js.map +1 -0
- package/dist/lib/shared/internal/unblu-api-factory.d.ts +9 -0
- package/dist/lib/shared/internal/unblu-api-factory.js +2 -0
- package/dist/lib/shared/internal/unblu-api-factory.js.map +1 -0
- package/dist/lib/shared/internal/unblu-util.d.ts +63 -0
- package/dist/lib/shared/internal/unblu-util.js +220 -0
- package/dist/lib/shared/internal/unblu-util.js.map +1 -0
- package/dist/lib/shared/internal/util/event-emitter.d.ts +44 -0
- package/dist/lib/shared/internal/util/event-emitter.js +85 -0
- package/dist/lib/shared/internal/util/event-emitter.js.map +1 -0
- package/dist/lib/shared/model/agent-availability-state.d.ts +18 -0
- package/dist/lib/shared/model/agent-availability-state.js +20 -0
- package/dist/lib/shared/model/agent-availability-state.js.map +1 -0
- package/dist/lib/shared/model/call-state.d.ts +26 -0
- package/dist/lib/shared/model/call-state.js +28 -0
- package/dist/lib/shared/model/call-state.js.map +1 -0
- package/dist/lib/shared/model/configuration.d.ts +46 -0
- package/dist/lib/shared/model/configuration.js +2 -0
- package/dist/lib/shared/model/configuration.js.map +1 -0
- package/dist/lib/shared/model/connection-state.d.ts +27 -0
- package/dist/lib/shared/model/connection-state.js +29 -0
- package/dist/lib/shared/model/connection-state.js.map +1 -0
- package/dist/lib/shared/model/conversation-info.d.ts +34 -0
- package/dist/lib/shared/model/conversation-info.js +2 -0
- package/dist/lib/shared/model/conversation-info.js.map +1 -0
- package/dist/lib/shared/model/conversation-message-info.d.ts +14 -0
- package/dist/lib/shared/model/conversation-message-info.js +2 -0
- package/dist/lib/shared/model/conversation-message-info.js.map +1 -0
- package/dist/lib/shared/model/conversation-recipient-type.d.ts +10 -0
- package/dist/lib/shared/model/conversation-recipient-type.js +12 -0
- package/dist/lib/shared/model/conversation-recipient-type.js.map +1 -0
- package/dist/lib/shared/model/conversation-recipient.d.ts +14 -0
- package/dist/lib/shared/model/conversation-recipient.js +2 -0
- package/dist/lib/shared/model/conversation-recipient.js.map +1 -0
- package/dist/lib/shared/model/conversation-state.d.ts +37 -0
- package/dist/lib/shared/model/conversation-state.js +39 -0
- package/dist/lib/shared/model/conversation-state.js.map +1 -0
- package/dist/lib/shared/model/conversation-type.d.ts +43 -0
- package/dist/lib/shared/model/conversation-type.js +45 -0
- package/dist/lib/shared/model/conversation-type.js.map +1 -0
- package/dist/lib/shared/model/customaction/custom-action-invocation.d.ts +27 -0
- package/dist/lib/shared/model/customaction/custom-action-invocation.js +2 -0
- package/dist/lib/shared/model/customaction/custom-action-invocation.js.map +1 -0
- package/dist/lib/shared/model/customaction/custom-conversation-action-invocation.d.ts +6 -0
- package/dist/lib/shared/model/customaction/custom-conversation-action-invocation.js +2 -0
- package/dist/lib/shared/model/customaction/custom-conversation-action-invocation.js.map +1 -0
- package/dist/lib/shared/model/customaction/custom-message-action-invocation.d.ts +16 -0
- package/dist/lib/shared/model/customaction/custom-message-action-invocation.js +2 -0
- package/dist/lib/shared/model/customaction/custom-message-action-invocation.js.map +1 -0
- package/dist/lib/shared/model/customaction/custom-person-action-invocation.d.ts +11 -0
- package/dist/lib/shared/model/customaction/custom-person-action-invocation.js +2 -0
- package/dist/lib/shared/model/customaction/custom-person-action-invocation.js.map +1 -0
- package/dist/lib/shared/model/invitation-status.d.ts +14 -0
- package/dist/lib/shared/model/invitation-status.js +16 -0
- package/dist/lib/shared/model/invitation-status.js.map +1 -0
- package/dist/lib/shared/model/invitation.d.ts +24 -0
- package/dist/lib/shared/model/invitation.js +2 -0
- package/dist/lib/shared/model/invitation.js.map +1 -0
- package/dist/lib/shared/model/new-conversation-interceptor-result.d.ts +14 -0
- package/dist/lib/shared/model/new-conversation-interceptor-result.js +2 -0
- package/dist/lib/shared/model/new-conversation-interceptor-result.js.map +1 -0
- package/dist/lib/shared/model/person-info.d.ts +4 -0
- package/dist/lib/shared/model/person-info.js +2 -0
- package/dist/lib/shared/model/person-info.js.map +1 -0
- package/dist/lib/shared/new-conversation-interceptor.d.ts +24 -0
- package/dist/lib/shared/new-conversation-interceptor.js +2 -0
- package/dist/lib/shared/new-conversation-interceptor.js.map +1 -0
- package/dist/lib/shared/unblu-api-error.d.ts +117 -0
- package/dist/lib/shared/unblu-api-error.js +122 -0
- package/dist/lib/shared/unblu-api-error.js.map +1 -0
- package/dist/lib/unblu-api-ui.d.ts +137 -0
- package/dist/lib/unblu-api-ui.js +199 -0
- package/dist/lib/unblu-api-ui.js.map +1 -0
- package/dist/lib/unblu-api.d.ts +363 -0
- package/dist/lib/unblu-api.js +433 -0
- package/dist/lib/unblu-api.js.map +1 -0
- package/dist/lib/unblu-static-api.d.ts +237 -0
- package/dist/lib/unblu-static-api.js +318 -0
- package/dist/lib/unblu-static-api.js.map +1 -0
- package/package.json +23 -0
package/LICENSE.md
ADDED
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
Unblu Javascript API License Agreement
|
|
2
|
+
|
|
3
|
+
IMPORTANT NOTICE - PLEASE READ AND AGREE BEFORE DOWNLOADING, INSTALLING,
|
|
4
|
+
COPYING OR USING
|
|
5
|
+
|
|
6
|
+
This Agreement is between you, or the company or other legal entity that you
|
|
7
|
+
represent and warrant you have the legal authority to bind, (each, "You" or
|
|
8
|
+
"Your") and Unblu Inc. and its subsidiaries (collectively, "Unblu") regarding
|
|
9
|
+
Your use of the Unblu Javascript API (“JS-API”). By downloading,
|
|
10
|
+
installing, copying or using the JS-API, You agree to be bound by the terms of
|
|
11
|
+
this Agreement also on behalf of your employer or company you represent. If You
|
|
12
|
+
do not agree to the terms of this Agreement, or do not have legal authority, do
|
|
13
|
+
not download, install, copy or use the JS-API.
|
|
14
|
+
|
|
15
|
+
1. Definitions
|
|
16
|
+
1.1. "Copyleft Open Source Software" means any software that is subject to a
|
|
17
|
+
license which requires that (i) it must be distributed in source code form;
|
|
18
|
+
(ii) it must be licensed under the same open source license terms; and (iii)
|
|
19
|
+
its derivative works must be licensed under the same open source license terms.
|
|
20
|
+
Examples of this type of license are the GNU General Public License or the
|
|
21
|
+
Mozilla Public License.
|
|
22
|
+
1.2. "Derivative Work" means a derivative work, or any modification,
|
|
23
|
+
adjustment, linked code or alteration of the Source Code.
|
|
24
|
+
1.3. "Executable Code" means computer programming code in binary form
|
|
25
|
+
suitable for machine execution by a processor
|
|
26
|
+
1.4. “High Risk Activities” means activities where the use or failure of the
|
|
27
|
+
Services would reasonably be expected to result in death, serious personal
|
|
28
|
+
injury, or severe environmental or property damage (such as the creation or
|
|
29
|
+
operation of weaponry).
|
|
30
|
+
1.5. “JS-API” means Javascript API made available to You by Unblu
|
|
31
|
+
under this Agreement for web development. The JS-API may include Third Party
|
|
32
|
+
Software.
|
|
33
|
+
1.6. "Source Code" means the software portion of the JS-API provided in a
|
|
34
|
+
programming language.
|
|
35
|
+
1.7. "Third Party Software" means the files (if any) belonging to a third
|
|
36
|
+
party and subject to third party license terms, including open Copyleft Open
|
|
37
|
+
Source licenses. A list of third party software is accessible within the package.json
|
|
38
|
+
file distributed together with the JS-API.
|
|
39
|
+
1.8. "Your Product" means one or more applications, products or projects
|
|
40
|
+
developed by or for You using the JS-API.
|
|
41
|
+
1.9. “Unblu Platform” means the Unblu services to which the JS-API applies,
|
|
42
|
+
whether accessible on the Unblu Cloud Platform or provided by Unblu as an
|
|
43
|
+
on-premises license.
|
|
44
|
+
|
|
45
|
+
2. Ownership. Title to the JS-API and all copies remain with Unblu or its
|
|
46
|
+
suppliers. The JS-API is protected by Intellectual property rights, including
|
|
47
|
+
without limitation, United States copyright laws and international treaty
|
|
48
|
+
provisions. You will not remove any copyright or other proprietary notices from
|
|
49
|
+
the JS-API. Except as expressly provided herein, no license or right is granted to
|
|
50
|
+
You directly or by implication, inducement, estoppel or otherwise;
|
|
51
|
+
specifically, Unblu does not grant any express or implied right to You under
|
|
52
|
+
Unblu patents, copyrights, trademarks, or trade secrets.
|
|
53
|
+
|
|
54
|
+
3. License Grant
|
|
55
|
+
3.1. Subject to the terms and conditions of this Agreement, Unblu grants You
|
|
56
|
+
a non-exclusive, worldwide, non-assignable, non-sublicensable, limited right
|
|
57
|
+
and license under Unblu’s copyrights, to:
|
|
58
|
+
3.1.1. use the JS-API solely for Your personal or business use to develop
|
|
59
|
+
Your Product, in accordance with the documentation included as part of the JS-API;
|
|
60
|
+
3.1.2. reproduce internally a reasonable number of copies of the JS-API for
|
|
61
|
+
Your personal or business use
|
|
62
|
+
3.2. It is your sole responsibility to obtain any application Third Party
|
|
63
|
+
license.
|
|
64
|
+
3.3. Unless otherwise authorized by Unblu in writing, you may only
|
|
65
|
+
distribute the JS-API for use with Chrome, Edge, Firefox and Safari
|
|
66
|
+
|
|
67
|
+
4. License Restrictions
|
|
68
|
+
4.1. Except as expressly provided in this Agreement, You are prohibited
|
|
69
|
+
from:
|
|
70
|
+
4.1.1. using the JS-API in any way without an express written license
|
|
71
|
+
agreement or authorized access rights to the Unblu Platform.
|
|
72
|
+
4.1.2. modifying, adapting, or translating the JS-API in whole or in part;
|
|
73
|
+
4.1.3. reversing engineer, or disassembling the JS-API, or otherwise
|
|
74
|
+
attempting to derive the source code for the software;
|
|
75
|
+
4.1.4. sharing, publishing, renting or leasing the JS-API to any third
|
|
76
|
+
party;
|
|
77
|
+
4.1.5. assigning this Agreement or transfering the JS-API;
|
|
78
|
+
4.1.6. removing, or modifying any notices of Unblu or its suppliers in
|
|
79
|
+
the JS-API;
|
|
80
|
+
4.2. The JS-API shall not be used in High Risk Activities. You indemnify and
|
|
81
|
+
hold Unblu harmless from any claims from any third party based on your use of
|
|
82
|
+
the JS-API for or in relation to High Risk Activities.
|
|
83
|
+
|
|
84
|
+
5. Data Privacy.
|
|
85
|
+
If you use the JS-API in relation to processing personal information within the
|
|
86
|
+
meaning of the EU General Data Protection Regulations, the Swiss Data Privacy
|
|
87
|
+
Laws or other applicable data privacy laws, , you shall comply with all
|
|
88
|
+
applicable data protection and data privacy laws and regulations. You agree to
|
|
89
|
+
indemnify and keep Unblu harmless from any claims from any third party,
|
|
90
|
+
including any government fees, related to your lack of compliance with the
|
|
91
|
+
obligations under this Section 5.
|
|
92
|
+
|
|
93
|
+
6. Disclaimer
|
|
94
|
+
6.1. Unblu disclaims all warranties of any kind and the terms and remedies
|
|
95
|
+
provided in this Agreement are instead of any other warranty or condition,
|
|
96
|
+
express, implied or statutory, including those regarding merchantability,
|
|
97
|
+
fitness for any particular purpose, non-infringement or any warranty arising
|
|
98
|
+
out of any course of dealing, usage of trade, proposal, specification or
|
|
99
|
+
sample. Unblu does not assume (and does not authorize any person to assume on
|
|
100
|
+
its behalf) any liability.
|
|
101
|
+
6.2. Unblu may make changes to the JS-API, or to items referenced therein, at
|
|
102
|
+
any time without notice, but is not obligated to support, update or provide
|
|
103
|
+
training for the JS-API under the terms of this Agreement. Unblu offers free
|
|
104
|
+
community and paid priority support options.
|
|
105
|
+
|
|
106
|
+
7. Limitation of Liability
|
|
107
|
+
7.1. UNBLU SHALL NOT BE HELD LIABLE FOR ANY LOSSES OR DAMAGES (WHETHER SUCH
|
|
108
|
+
LOSSES OR DAMAGES WERE FORESEEN, FORESEEABLE, KNOWN OR OTHERWISE), SUCH AS FOR
|
|
109
|
+
EXAMPLE: LOSS OF REVENUE; LOSS OF ACTUAL OR ANTICIPATED PROFITS; LOSS OF
|
|
110
|
+
ANTICIPATED SAVINGS; LOSS OF BUSINESS; LOSS OF GOODWILL; LOSS OF REPUTATION;
|
|
111
|
+
LOSS OF, DAMAGE TO, OR CORRUPTION OF DATA; OR (XI) ANY INDIRECT, INCIDENTAL,
|
|
112
|
+
SPECIAL OR CONSEQUENTIAL LOSS.
|
|
113
|
+
7.2. IN CONSIDERATION OF THE FREE OF CHARGE LICENSE GRANT, UNBLU'S TOTAL
|
|
114
|
+
CUMULATIVE LIABILITY TO YOU INCLUDING FOR DIRECT DAMAGES FOR CLAIMS RELATING TO
|
|
115
|
+
THIS AGREEMENT, AND WHETHER FOR BREACH OF CONTRACT, NEGLIGENCE, OR FOR ANY
|
|
116
|
+
OTHER REASON, IS EXCLUDED IN SO FAR AS THIS IS ACCEPTABLE UNDER THE APPLICABLE
|
|
117
|
+
LAWS. IN THE EVENT THAT THE APPLICABLE LAW DOES NOT ALLOW TO EXCLUDE SUCH
|
|
118
|
+
LIABILITY, YOU AGREE THAT UNBLU TOTAL, CUMULATIVE LIABILITY WILL NOT EXCEED CHF
|
|
119
|
+
TWO HUNDRED (200)
|
|
120
|
+
7.3. YOU ACKNOWLEDGE THAT THE LIMITATIONS OF LIABILITY PROVIDED IN THIS
|
|
121
|
+
SECTION 7 ARE AN ESSENTIAL PART OF THIS AGREEMENT.
|
|
122
|
+
|
|
123
|
+
8. Feedback. Should you provide Unblu with comments, modifications,
|
|
124
|
+
corrections, enhancements or other input ("Feedback") related to the JS-API, Unblu
|
|
125
|
+
will be free to use, disclose, reproduce, license or otherwise distribute or
|
|
126
|
+
exploit the Feedback in its sole discretion without any obligations or
|
|
127
|
+
restrictions of any kind, including without limitation, intellectual property
|
|
128
|
+
rights or licensing obligations. If You wish to provide Unblu with information
|
|
129
|
+
that You intend to be treated as confidential information, Unblu requires that
|
|
130
|
+
such confidential information be provided pursuant to a non-disclosure
|
|
131
|
+
agreement ("NDA"); please contact Your Unblu representative to ensure the
|
|
132
|
+
proper NDA is in place.
|
|
133
|
+
|
|
134
|
+
9. Confidentiality. Information provided by Unblu to You may include
|
|
135
|
+
information marked as confidential. You must treat such information as
|
|
136
|
+
confidential under the terms of the applicable NDA between Unblu and You. If
|
|
137
|
+
You have not entered into an NDA with Unblu, You must not disclose, distribute
|
|
138
|
+
or make use of any information marked as confidential, except as expressly
|
|
139
|
+
authorized in writing by Unblu. Unblu retains all rights in and to its
|
|
140
|
+
confidential information specifications, designs, engineering details,
|
|
141
|
+
discoveries, inventions, patents, copyrights, trademarks, trade secrets, and
|
|
142
|
+
other proprietary rights relating to the JS-API. Any breach by You of the
|
|
143
|
+
confidentiality obligations provided for in this section 9 will cause
|
|
144
|
+
irreparable injury to Unblu for which money damages may be inadequate to
|
|
145
|
+
compensate Unblu for losses arising from such a breach. Unblu may obtain
|
|
146
|
+
equitable relief, including injunctive relief, if You breach or threaten to
|
|
147
|
+
breach Your confidentiality obligations.
|
|
148
|
+
|
|
149
|
+
10. Termination This Agreement becomes effective on the date You accept this
|
|
150
|
+
Agreement and will continue until terminated as provided for in this Agreement.
|
|
151
|
+
Unblu will terminate this Agreement without notice if You are in breach of any
|
|
152
|
+
of its terms and conditions. Upon termination, You shall promptly destroy the
|
|
153
|
+
JS-API and all copies.
|
|
154
|
+
|
|
155
|
+
11. In the event of termination of this Agreement, sections 2, 4, 5, 6, 7, 8,
|
|
156
|
+
9, 10 (with respect to these survival provisions in the last sentence),
|
|
157
|
+
12,13,14,15 will survive expiration or termination of this Agreement.
|
|
158
|
+
|
|
159
|
+
12. Export Controls. You acknowledge that the JS-API and all related technical
|
|
160
|
+
information are subject to export controls and you agree to comply with all
|
|
161
|
+
laws and regulations of the United States and other applicable governments
|
|
162
|
+
governing export, re-export, import, transfer, distribution, and use of the
|
|
163
|
+
JS-API.
|
|
164
|
+
|
|
165
|
+
13. Applicable law and jurisdiction. All disputes arising out of or related to
|
|
166
|
+
this Agreement, whether based on contract, tort, or any other legal or
|
|
167
|
+
equitable theory, will in all respects be governed by, and construed and
|
|
168
|
+
interpreted under, the laws of Switzerland. The parties agree that the United
|
|
169
|
+
Nations Convention on Contracts for the International Sale of Goods (1980) will
|
|
170
|
+
not apply to this Agreement. This Agreement is exclusively subject to the
|
|
171
|
+
jurisdictions of the courts of Basel, Switzerland.
|
|
172
|
+
|
|
173
|
+
14. Entire Agreement. This Agreement contains the complete and only agreement
|
|
174
|
+
and understanding between the parties concerning the subject matter of this
|
|
175
|
+
Agreement, and supersedes all prior understanding or agreements between the
|
|
176
|
+
parties on the same subject matter. No other terms, whether in a purchase order
|
|
177
|
+
or other documents apply and any modification shall be signed by an authorized
|
|
178
|
+
representative of Unblu.
|
|
179
|
+
|
|
180
|
+
15. Severability. If any part of this Agreement is made invalid or
|
|
181
|
+
unenforceable by a court under the applicable law, it shall be interpreted to
|
|
182
|
+
extent necessary to make it valid and enforceable, or if it cannot be made
|
|
183
|
+
valid and enforceable it can be deleted or modified by the court preserving the
|
|
184
|
+
remainder of this Agreement which will continue to be valid and enforceable.
|
package/README.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Unblu Floating JS API
|
|
2
|
+
The Floating JS API is an optional add-on to the Unblu Floating UI site integration.
|
|
3
|
+
It allows JavaScript access to the local Floating Unblu UI integration.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
In your project execute the following command which will install the `floating-js-api` and add it to the `package.json` file as a dependency.
|
|
7
|
+
```bash
|
|
8
|
+
npm install --save @unblu/floating-js-api
|
|
9
|
+
```
|
|
10
|
+
The `floating-js-api`'s version is synchronized with the Unblu Collaboration Server version.
|
|
11
|
+
To guarantee compatibility between the two, use the latest JS library version that is either equal to or smaller than the Collaboration Server version you are using.
|
|
12
|
+
|
|
13
|
+
Once installed you can use it like so:
|
|
14
|
+
|
|
15
|
+
```js
|
|
16
|
+
import unblu from "floating-js-api";
|
|
17
|
+
|
|
18
|
+
const api = await unblu.api.initialize();
|
|
19
|
+
// use the floating API
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Documentation
|
|
23
|
+
See [Unblu Floating JS API Documentation](https://www.unblu.com/en/docs/latest/reference/unblu-floating-js-api/) for the full documentation of the API.
|
|
24
|
+
|
|
25
|
+
## Examples
|
|
26
|
+
For an examples how you can integrate Unblu into your website or webapp see [Unblu Visitor JS API Examples on GitHub](https://github.com/unblu/visitor-js-api-examples)
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { AgentAvailabilityChangeListener, AgentAvailableChangeListener, ConversationChangeListener, ConversationsChangeListener, NotificationCountChangeListener, PersonChangeListener, PersonActivityListener, UnbluApi } from './unblu-api';
|
|
2
|
+
import { CallStateListener, ConnectionStateListener, Conversation, ConversationStateListener, InvitationsListener, CustomActionInvocationListener } from './shared/conversation';
|
|
3
|
+
import { NewConversationInterceptor } from "./shared/new-conversation-interceptor";
|
|
4
|
+
import { NewConversationInterceptorResult } from "./shared/model/new-conversation-interceptor-result";
|
|
5
|
+
import { ApiState } from "./shared/api-state";
|
|
6
|
+
import { Configuration, ErrorListener, ReadyListener, UnbluStaticApi } from './unblu-static-api';
|
|
7
|
+
import { CallState } from './shared/model/call-state';
|
|
8
|
+
import { ConnectionState } from './shared/model/connection-state';
|
|
9
|
+
import { ConversationType } from './shared/model/conversation-type';
|
|
10
|
+
import { ConversationRecipient } from "./shared/model/conversation-recipient";
|
|
11
|
+
import { ConversationRecipientType } from "./shared/model/conversation-recipient-type";
|
|
12
|
+
import { AgentAvailabilityState } from './shared/model/agent-availability-state';
|
|
13
|
+
import { ConversationState } from './shared/model/conversation-state';
|
|
14
|
+
import { UnbluApiError, UnbluErrorType } from './shared/unblu-api-error';
|
|
15
|
+
import { IndividualUiState } from "./model/individualui_state";
|
|
16
|
+
import { ActiveIndividualUiView } from "./model/individualui_component";
|
|
17
|
+
import { InvitationStatus } from "./shared/model/invitation-status";
|
|
18
|
+
import { UiActiveIndividualUiViewChangeListener, UiStateChangeListener, UnbluUiApi } from "./unblu-api-ui";
|
|
19
|
+
import { ConversationInfo } from "./shared/model/conversation-info";
|
|
20
|
+
import { Invitation } from "./shared/model/invitation";
|
|
21
|
+
import { PersonInfo } from "./shared/model/person-info";
|
|
22
|
+
import { CustomActionInvocation } from "./shared/model/customaction/custom-action-invocation";
|
|
23
|
+
export { AgentAvailabilityState };
|
|
24
|
+
export { ApiState, UnbluStaticApi, Configuration, ErrorListener, ReadyListener };
|
|
25
|
+
export { CallState };
|
|
26
|
+
export { ConnectionState };
|
|
27
|
+
export { ConversationState };
|
|
28
|
+
export { ConversationType };
|
|
29
|
+
export { IndividualUiState };
|
|
30
|
+
export { ActiveIndividualUiView };
|
|
31
|
+
export { InvitationStatus };
|
|
32
|
+
export { UnbluErrorType };
|
|
33
|
+
export { Conversation, CallStateListener, ConnectionStateListener, ConversationStateListener, InvitationsListener, CustomActionInvocationListener };
|
|
34
|
+
export { UnbluApi, AgentAvailableChangeListener, AgentAvailabilityChangeListener, ConversationChangeListener, ConversationsChangeListener, NewConversationInterceptor, NewConversationInterceptorResult, ConversationRecipient, ConversationRecipientType, NotificationCountChangeListener, PersonChangeListener, PersonActivityListener };
|
|
35
|
+
export { UnbluApiError };
|
|
36
|
+
export { UnbluUiApi, UiActiveIndividualUiViewChangeListener, UiStateChangeListener };
|
|
37
|
+
export { ConversationInfo };
|
|
38
|
+
export { Invitation };
|
|
39
|
+
export { PersonInfo };
|
|
40
|
+
export { CustomActionInvocation };
|
|
41
|
+
/**
|
|
42
|
+
* The main unblu namespace which gives access to the Unblu API.
|
|
43
|
+
*
|
|
44
|
+
* Access:
|
|
45
|
+
* ```javascript
|
|
46
|
+
* window.unblu.api
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
* **Note:** all fields inside the unblu namespace except for the {@link api} are not public and may change without any notice.
|
|
50
|
+
*/
|
|
51
|
+
export interface Unblu {
|
|
52
|
+
/**
|
|
53
|
+
* Access to the Unblu API.
|
|
54
|
+
*
|
|
55
|
+
* This field will be available as soon as the Unblu API has been loaded.
|
|
56
|
+
*/
|
|
57
|
+
api?: UnbluStaticApi;
|
|
58
|
+
AgentAvailabilityState?: typeof AgentAvailabilityState;
|
|
59
|
+
CallState?: typeof CallState;
|
|
60
|
+
ConnectionState?: typeof ConnectionState;
|
|
61
|
+
ConversationState?: typeof ConversationState;
|
|
62
|
+
ConversationType?: typeof ConversationType;
|
|
63
|
+
UnbluErrorType?: typeof UnbluErrorType;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Global window scope definition of the unblu namespace on the window.
|
|
67
|
+
* Access:
|
|
68
|
+
* ```javascript
|
|
69
|
+
* window.unblu.api
|
|
70
|
+
* ```
|
|
71
|
+
* @noInheritDoc
|
|
72
|
+
*/
|
|
73
|
+
export declare interface Globals extends Window {
|
|
74
|
+
/**
|
|
75
|
+
* The main unblu namespace
|
|
76
|
+
*/
|
|
77
|
+
unblu: Unblu;
|
|
78
|
+
}
|
|
79
|
+
declare const _default: {
|
|
80
|
+
/**
|
|
81
|
+
* Access to the Unblu API.
|
|
82
|
+
*
|
|
83
|
+
* This field will be available as soon as the Unblu API has been loaded.
|
|
84
|
+
*/
|
|
85
|
+
api: UnbluStaticApi;
|
|
86
|
+
AgentAvailabilityState: typeof AgentAvailabilityState;
|
|
87
|
+
CallState: typeof CallState;
|
|
88
|
+
ConnectionState: typeof ConnectionState;
|
|
89
|
+
ConversationState: typeof ConversationState;
|
|
90
|
+
ConversationType: typeof ConversationType;
|
|
91
|
+
UnbluErrorType: typeof UnbluErrorType;
|
|
92
|
+
};
|
|
93
|
+
export default _default;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { UnbluApi } from './unblu-api';
|
|
2
|
+
import { Conversation } from './shared/conversation';
|
|
3
|
+
import { ApiState } from "./shared/api-state";
|
|
4
|
+
import { UnbluStaticApi } from './unblu-static-api';
|
|
5
|
+
import { UnbluUtil } from './shared/internal/unblu-util';
|
|
6
|
+
import { CallState } from './shared/model/call-state';
|
|
7
|
+
import { ConnectionState } from './shared/model/connection-state';
|
|
8
|
+
import { ConversationType } from './shared/model/conversation-type';
|
|
9
|
+
import { ConversationRecipientType } from "./shared/model/conversation-recipient-type";
|
|
10
|
+
import { AgentAvailabilityState } from './shared/model/agent-availability-state';
|
|
11
|
+
import { ConversationState } from './shared/model/conversation-state';
|
|
12
|
+
import { UnbluApiError, UnbluErrorType } from './shared/unblu-api-error';
|
|
13
|
+
import { InvitationStatus } from "./shared/model/invitation-status";
|
|
14
|
+
import { UnbluUiApi } from "./unblu-api-ui";
|
|
15
|
+
export { AgentAvailabilityState };
|
|
16
|
+
export { ApiState, UnbluStaticApi };
|
|
17
|
+
export { CallState };
|
|
18
|
+
export { ConnectionState };
|
|
19
|
+
export { ConversationState };
|
|
20
|
+
export { ConversationType };
|
|
21
|
+
export { InvitationStatus };
|
|
22
|
+
export { UnbluErrorType };
|
|
23
|
+
export { Conversation };
|
|
24
|
+
export { UnbluApi, ConversationRecipientType };
|
|
25
|
+
export { UnbluApiError };
|
|
26
|
+
export { UnbluUiApi };
|
|
27
|
+
// TODO: remove in v8
|
|
28
|
+
const unblu = (UnbluUtil.getUnbluObject() || UnbluUtil.createUnbluObject());
|
|
29
|
+
unblu.AgentAvailabilityState = AgentAvailabilityState;
|
|
30
|
+
unblu.CallState = CallState;
|
|
31
|
+
unblu.ConnectionState = ConnectionState;
|
|
32
|
+
unblu.ConversationState = ConversationState;
|
|
33
|
+
unblu.ConversationType = ConversationType;
|
|
34
|
+
unblu.UnbluErrorType = UnbluErrorType;
|
|
35
|
+
export default {
|
|
36
|
+
/**
|
|
37
|
+
* Access to the Unblu API.
|
|
38
|
+
*
|
|
39
|
+
* This field will be available as soon as the Unblu API has been loaded.
|
|
40
|
+
*/
|
|
41
|
+
api: new UnbluStaticApi(),
|
|
42
|
+
AgentAvailabilityState: AgentAvailabilityState,
|
|
43
|
+
CallState: CallState,
|
|
44
|
+
ConnectionState: ConnectionState,
|
|
45
|
+
ConversationState: ConversationState,
|
|
46
|
+
ConversationType: ConversationType,
|
|
47
|
+
UnbluErrorType: UnbluErrorType
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAQH,QAAQ,EACX,MAAM,aAAa,CAAA;AACpB,OAAO,EAGH,YAAY,EAIf,MAAM,uBAAuB,CAAA;AAG9B,OAAO,EAAC,QAAQ,EAAC,MAAM,oBAAoB,CAAA;AAC3C,OAAO,EAA8C,cAAc,EAAC,MAAM,oBAAoB,CAAA;AAC9F,OAAO,EAAC,SAAS,EAAC,MAAM,8BAA8B,CAAA;AACtD,OAAO,EAAC,SAAS,EAAC,MAAM,2BAA2B,CAAA;AACnD,OAAO,EAAC,eAAe,EAAC,MAAM,iCAAiC,CAAA;AAC/D,OAAO,EAAC,gBAAgB,EAAC,MAAM,kCAAkC,CAAA;AAEjE,OAAO,EAAC,yBAAyB,EAAC,MAAM,4CAA4C,CAAA;AACpF,OAAO,EAAC,sBAAsB,EAAC,MAAM,yCAAyC,CAAA;AAC9E,OAAO,EAAC,iBAAiB,EAAC,MAAM,mCAAmC,CAAA;AACnE,OAAO,EAAC,aAAa,EAAE,cAAc,EAAC,MAAM,0BAA0B,CAAA;AAGtE,OAAO,EAAC,gBAAgB,EAAC,MAAM,kCAAkC,CAAA;AACjE,OAAO,EAA+D,UAAU,EAAC,MAAM,gBAAgB,CAAA;AAMvG,OAAO,EAAC,sBAAsB,EAAC,CAAA;AAC/B,OAAO,EAAC,QAAQ,EAAE,cAAc,EAA8C,CAAA;AAC9E,OAAO,EAAC,SAAS,EAAC,CAAA;AAClB,OAAO,EAAC,eAAe,EAAC,CAAA;AACxB,OAAO,EAAC,iBAAiB,EAAC,CAAA;AAC1B,OAAO,EAAC,gBAAgB,EAAC,CAAA;AAGzB,OAAO,EAAC,gBAAgB,EAAC,CAAA;AACzB,OAAO,EAAC,cAAc,EAAC,CAAA;AACvB,OAAO,EAAC,YAAY,EAA6H,CAAA;AACjJ,OAAO,EACH,QAAQ,EAQR,yBAAyB,EAI5B,CAAA;AACD,OAAO,EAAC,aAAa,EAAC,CAAA;AACtB,OAAO,EAAC,UAAU,EAAgE,CAAA;AAqDlF,qBAAqB;AACrB,MAAM,KAAK,GAAG,CAAC,SAAS,CAAC,cAAc,EAAE,IAAI,SAAS,CAAC,iBAAiB,EAAE,CAAU,CAAA;AACpF,KAAK,CAAC,sBAAsB,GAAG,sBAAsB,CAAA;AACrD,KAAK,CAAC,SAAS,GAAG,SAAS,CAAA;AAC3B,KAAK,CAAC,eAAe,GAAG,eAAe,CAAA;AACvC,KAAK,CAAC,iBAAiB,GAAG,iBAAiB,CAAA;AAC3C,KAAK,CAAC,gBAAgB,GAAG,gBAAgB,CAAA;AACzC,KAAK,CAAC,cAAc,GAAG,cAAc,CAAA;AAErC,eAAe;IACX;;;;OAIG;IACH,GAAG,EAAE,IAAI,cAAc,EAAE;IAEzB,sBAAsB,EAAE,sBAAsB;IAE9C,SAAS,EAAE,SAAS;IAEpB,eAAe,EAAE,eAAe;IAEhC,iBAAiB,EAAE,iBAAiB;IAEpC,gBAAgB,EAAE,gBAAgB;IAElC,cAAc,EAAE,cAAc;CACjC,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ApiBridge } from '../shared/internal/api-bridge';
|
|
2
|
+
import { MetaModule } from './module/meta-module';
|
|
3
|
+
import { GeneralLazyModule } from './module/general-lazy-module';
|
|
4
|
+
import { ConversationModule } from '../shared/internal/module/conversation-module';
|
|
5
|
+
import { AgentAvailabilityModule } from '../shared/internal/module/agent-availability-module';
|
|
6
|
+
import { GeneralModule } from "./module/general-module";
|
|
7
|
+
import { Configuration } from "../unblu-static-api";
|
|
8
|
+
export declare class InternalApi {
|
|
9
|
+
private readonly bridge;
|
|
10
|
+
readonly configuration: Configuration;
|
|
11
|
+
readonly meta: MetaModule;
|
|
12
|
+
readonly general: GeneralModule;
|
|
13
|
+
readonly generalLazy: GeneralLazyModule;
|
|
14
|
+
readonly conversation: ConversationModule;
|
|
15
|
+
readonly agentAvailability: AgentAvailabilityModule;
|
|
16
|
+
constructor(bridge: ApiBridge, configuration: Configuration);
|
|
17
|
+
checkCompatibility(): void;
|
|
18
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { MetaModule } from './module/meta-module';
|
|
2
|
+
import { GeneralLazyModule } from './module/general-lazy-module';
|
|
3
|
+
import { ConversationModule } from '../shared/internal/module/conversation-module';
|
|
4
|
+
import { AgentAvailabilityModule } from '../shared/internal/module/agent-availability-module';
|
|
5
|
+
import { GeneralModule } from "./module/general-module";
|
|
6
|
+
export class InternalApi {
|
|
7
|
+
constructor(bridge, configuration) {
|
|
8
|
+
this.bridge = bridge;
|
|
9
|
+
this.configuration = configuration;
|
|
10
|
+
this.meta = new MetaModule(bridge);
|
|
11
|
+
this.general = new GeneralModule(bridge);
|
|
12
|
+
this.generalLazy = new GeneralLazyModule(bridge);
|
|
13
|
+
this.conversation = new ConversationModule(bridge);
|
|
14
|
+
this.agentAvailability = new AgentAvailabilityModule(bridge);
|
|
15
|
+
}
|
|
16
|
+
checkCompatibility() {
|
|
17
|
+
this.bridge.checkCompatibility();
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=internal-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internal-api.js","sourceRoot":"","sources":["../../../src/internal/internal-api.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAC,iBAAiB,EAAC,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAC,kBAAkB,EAAC,MAAM,+CAA+C,CAAC;AACjF,OAAO,EAAC,uBAAuB,EAAC,MAAM,qDAAqD,CAAC;AAC5F,OAAO,EAAC,aAAa,EAAC,MAAM,yBAAyB,CAAC;AAGtD,MAAM,OAAO,WAAW;IAOpB,YAA6B,MAAiB,EAAkB,aAA4B;QAA/D,WAAM,GAAN,MAAM,CAAW;QAAkB,kBAAa,GAAb,aAAa,CAAe;QACxF,IAAI,CAAC,IAAI,GAAG,IAAI,UAAU,CAAC,MAAM,CAAC,CAAC;QACnC,IAAI,CAAC,OAAO,GAAG,IAAI,aAAa,CAAC,MAAM,CAAC,CAAC;QACzC,IAAI,CAAC,WAAW,GAAG,IAAI,iBAAiB,CAAC,MAAM,CAAC,CAAC;QACjD,IAAI,CAAC,YAAY,GAAG,IAAI,kBAAkB,CAAC,MAAM,CAAC,CAAC;QACnD,IAAI,CAAC,iBAAiB,GAAG,IAAI,uBAAuB,CAAC,MAAM,CAAC,CAAC;IACjE,CAAC;IAEM,kBAAkB;QACrB,IAAI,CAAC,MAAM,CAAC,kBAAkB,EAAE,CAAC;IACrC,CAAC;CACJ"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { InternalModule } from '../../shared/internal/module/module';
|
|
2
|
+
import { ApiBridge } from '../../shared/internal/api-bridge';
|
|
3
|
+
import { PersonInfo } from '../../shared/model/person-info';
|
|
4
|
+
import { NewConversationInterceptor } from "../../shared/new-conversation-interceptor";
|
|
5
|
+
export type GeneralLazyEventType = '';
|
|
6
|
+
declare const enum GeneralLazyFunction {
|
|
7
|
+
getNotificationCount = "getNotificationCount",
|
|
8
|
+
getPersonInfo = "getPersonInfo",
|
|
9
|
+
setNewConversationInterceptor = "setNewConversationInterceptor"
|
|
10
|
+
}
|
|
11
|
+
export declare class GeneralLazyModule extends InternalModule<GeneralLazyFunction, GeneralLazyEventType> {
|
|
12
|
+
constructor(bridge: ApiBridge);
|
|
13
|
+
getNotificationCount(): Promise<number>;
|
|
14
|
+
getPersonInfo(): Promise<PersonInfo>;
|
|
15
|
+
setNewConversationInterceptor(callback: NewConversationInterceptor): Promise<void>;
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { InternalModule } from '../../shared/internal/module/module';
|
|
2
|
+
export class GeneralLazyModule extends InternalModule {
|
|
3
|
+
constructor(bridge) {
|
|
4
|
+
super(bridge, 'generallazy');
|
|
5
|
+
}
|
|
6
|
+
getNotificationCount() {
|
|
7
|
+
return this.callApiFunction("getNotificationCount" /* GeneralLazyFunction.getNotificationCount */, []);
|
|
8
|
+
}
|
|
9
|
+
getPersonInfo() {
|
|
10
|
+
return this.callApiFunction("getPersonInfo" /* GeneralLazyFunction.getPersonInfo */, []);
|
|
11
|
+
}
|
|
12
|
+
setNewConversationInterceptor(callback) {
|
|
13
|
+
return this.callApiFunction("setNewConversationInterceptor" /* GeneralLazyFunction.setNewConversationInterceptor */, [callback]);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=general-lazy-module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"general-lazy-module.js","sourceRoot":"","sources":["../../../../src/internal/module/general-lazy-module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,qCAAqC,CAAC;AAcnE,MAAM,OAAO,iBAAkB,SAAQ,cAAyD;IAC5F,YAAY,MAAiB;QACzB,KAAK,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;IACjC,CAAC;IAEM,oBAAoB;QACvB,OAAO,IAAI,CAAC,eAAe,wEAA2C,EAAE,CAAC,CAAC;IAC9E,CAAC;IAEM,aAAa;QAChB,OAAO,IAAI,CAAC,eAAe,0DAAoC,EAAE,CAAC,CAAC;IACvE,CAAC;IAEM,6BAA6B,CAAC,QAAoC;QACrE,OAAO,IAAI,CAAC,eAAe,0FAAoD,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC/F,CAAC;CACJ"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { IndividualUiState } from "../../model/individualui_state";
|
|
2
|
+
import { BaseGeneralEventType, BaseGeneralFunction, BaseGeneralModule } from "../../shared/internal/module/base-general-module";
|
|
3
|
+
import { ActiveIndividualUiView } from "../../model/individualui_component";
|
|
4
|
+
export type GeneralEventType = BaseGeneralEventType | 'uiStateChange' | 'uiActiveIndividualUiViewChange';
|
|
5
|
+
declare const enum GeneralFunction {
|
|
6
|
+
toggleIndividualUi = "toggleIndividualUi",
|
|
7
|
+
popoutIndividualUi = "popoutIndividualUi",
|
|
8
|
+
popinIndividualUi = "popinIndividualUi",
|
|
9
|
+
maximizeIndividualUi = "maximizeIndividualUi",
|
|
10
|
+
minimizeIndividualUi = "minimizeIndividualUi",
|
|
11
|
+
openIndividualUi = "openIndividualUi",
|
|
12
|
+
openPinEntryUi = "openPinEntryUi",
|
|
13
|
+
openOverviewUi = "openOverviewUi",
|
|
14
|
+
collapseIndividualUi = "collapseIndividualUi",
|
|
15
|
+
getIndividualUiState = "getIndividualUiState",
|
|
16
|
+
getActiveIndividualUiView = "getActiveIndividualUiView"
|
|
17
|
+
}
|
|
18
|
+
export declare class GeneralModule extends BaseGeneralModule<GeneralFunction | BaseGeneralFunction, GeneralEventType> {
|
|
19
|
+
toggleIndividualUi(): Promise<void>;
|
|
20
|
+
openPinEntryUi(): Promise<void>;
|
|
21
|
+
openOverviewUi(): Promise<void>;
|
|
22
|
+
popoutIndividualUi(): Promise<void>;
|
|
23
|
+
popinIndividualUi(): Promise<void>;
|
|
24
|
+
maximizeIndividualUi(): Promise<void>;
|
|
25
|
+
minimizeIndividualUi(): Promise<void>;
|
|
26
|
+
openIndividualUi(): Promise<void>;
|
|
27
|
+
collapseIndividualUi(): Promise<void>;
|
|
28
|
+
getIndividualUiState(): Promise<IndividualUiState>;
|
|
29
|
+
getActiveIndividualUiView(): Promise<ActiveIndividualUiView>;
|
|
30
|
+
}
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { BaseGeneralModule } from "../../shared/internal/module/base-general-module";
|
|
2
|
+
export class GeneralModule extends BaseGeneralModule {
|
|
3
|
+
toggleIndividualUi() {
|
|
4
|
+
return this.callApiFunction("toggleIndividualUi" /* GeneralFunction.toggleIndividualUi */, []);
|
|
5
|
+
}
|
|
6
|
+
openPinEntryUi() {
|
|
7
|
+
return this.callApiFunction("openPinEntryUi" /* GeneralFunction.openPinEntryUi */, []);
|
|
8
|
+
}
|
|
9
|
+
openOverviewUi() {
|
|
10
|
+
return this.callApiFunction("openOverviewUi" /* GeneralFunction.openOverviewUi */, []);
|
|
11
|
+
}
|
|
12
|
+
popoutIndividualUi() {
|
|
13
|
+
return this.callApiFunction("popoutIndividualUi" /* GeneralFunction.popoutIndividualUi */, []);
|
|
14
|
+
}
|
|
15
|
+
popinIndividualUi() {
|
|
16
|
+
return this.callApiFunction("popinIndividualUi" /* GeneralFunction.popinIndividualUi */, []);
|
|
17
|
+
}
|
|
18
|
+
maximizeIndividualUi() {
|
|
19
|
+
return this.callApiFunction("maximizeIndividualUi" /* GeneralFunction.maximizeIndividualUi */, []);
|
|
20
|
+
}
|
|
21
|
+
minimizeIndividualUi() {
|
|
22
|
+
return this.callApiFunction("minimizeIndividualUi" /* GeneralFunction.minimizeIndividualUi */, []);
|
|
23
|
+
}
|
|
24
|
+
openIndividualUi() {
|
|
25
|
+
return this.callApiFunction("openIndividualUi" /* GeneralFunction.openIndividualUi */, []);
|
|
26
|
+
}
|
|
27
|
+
collapseIndividualUi() {
|
|
28
|
+
return this.callApiFunction("collapseIndividualUi" /* GeneralFunction.collapseIndividualUi */, []);
|
|
29
|
+
}
|
|
30
|
+
getIndividualUiState() {
|
|
31
|
+
return this.callApiFunction("getIndividualUiState" /* GeneralFunction.getIndividualUiState */, []);
|
|
32
|
+
}
|
|
33
|
+
getActiveIndividualUiView() {
|
|
34
|
+
return this.callApiFunction("getActiveIndividualUiView" /* GeneralFunction.getActiveIndividualUiView */, []);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=general-module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"general-module.js","sourceRoot":"","sources":["../../../../src/internal/module/general-module.ts"],"names":[],"mappings":"AACA,OAAO,EAGH,iBAAiB,EACpB,MAAM,kDAAkD,CAAC;AAsB1D,MAAM,OAAO,aAAc,SAAQ,iBAA0E;IAElG,kBAAkB;QACrB,OAAO,IAAI,CAAC,eAAe,gEAAqC,EAAE,CAAC,CAAC;IACxE,CAAC;IAEM,cAAc;QACjB,OAAO,IAAI,CAAC,eAAe,wDAAiC,EAAE,CAAC,CAAC;IACpE,CAAC;IAEM,cAAc;QACjB,OAAO,IAAI,CAAC,eAAe,wDAAiC,EAAE,CAAC,CAAC;IACpE,CAAC;IAEM,kBAAkB;QACrB,OAAO,IAAI,CAAC,eAAe,gEAAqC,EAAE,CAAC,CAAC;IACxE,CAAC;IAEM,iBAAiB;QACpB,OAAO,IAAI,CAAC,eAAe,8DAAoC,EAAE,CAAC,CAAC;IACvE,CAAC;IAEM,oBAAoB;QACvB,OAAO,IAAI,CAAC,eAAe,oEAAuC,EAAE,CAAC,CAAC;IAC1E,CAAC;IAEM,oBAAoB;QACvB,OAAO,IAAI,CAAC,eAAe,oEAAuC,EAAE,CAAC,CAAC;IAC1E,CAAC;IAEM,gBAAgB;QACnB,OAAO,IAAI,CAAC,eAAe,4DAAmC,EAAE,CAAC,CAAC;IACtE,CAAC;IAEM,oBAAoB;QACvB,OAAO,IAAI,CAAC,eAAe,oEAAuC,EAAE,CAAC,CAAC;IAC1E,CAAC;IAEM,oBAAoB;QACvB,OAAO,IAAI,CAAC,eAAe,oEAAuC,EAAE,CAAC,CAAC;IAC1E,CAAC;IAEM,yBAAyB;QAC5B,OAAO,IAAI,CAAC,eAAe,8EAA4C,EAAE,CAAC,CAAC;IAC/E,CAAC;CACJ"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { InternalModule } from '../../shared/internal/module/module';
|
|
2
|
+
import { ApiBridge } from '../../shared/internal/api-bridge';
|
|
3
|
+
export type MetaEventType = 'upgraded' | 'deinitializing' | 'deinitialized';
|
|
4
|
+
declare const enum MetaFunction {
|
|
5
|
+
isUpgraded = "isUpgraded",
|
|
6
|
+
upgrade = "upgrade",
|
|
7
|
+
waitUntilInitialized = "waitUntilInitialized",
|
|
8
|
+
deinitialize = "deinitialize"
|
|
9
|
+
}
|
|
10
|
+
export declare class MetaModule extends InternalModule<MetaFunction, MetaEventType> {
|
|
11
|
+
constructor(bridge: ApiBridge);
|
|
12
|
+
isUpgraded(): Promise<boolean>;
|
|
13
|
+
upgrade(openUi?: boolean): Promise<boolean>;
|
|
14
|
+
waitUntilInitialized(): Promise<void>;
|
|
15
|
+
deinitialize(): Promise<boolean>;
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { InternalModule } from '../../shared/internal/module/module';
|
|
2
|
+
export class MetaModule extends InternalModule {
|
|
3
|
+
constructor(bridge) {
|
|
4
|
+
super(bridge, 'meta');
|
|
5
|
+
}
|
|
6
|
+
isUpgraded() {
|
|
7
|
+
return this.callApiFunction("isUpgraded" /* MetaFunction.isUpgraded */, []);
|
|
8
|
+
}
|
|
9
|
+
upgrade(openUi) {
|
|
10
|
+
return this.callApiFunction("upgrade" /* MetaFunction.upgrade */, [openUi]);
|
|
11
|
+
}
|
|
12
|
+
waitUntilInitialized() {
|
|
13
|
+
return this.callApiFunction("waitUntilInitialized" /* MetaFunction.waitUntilInitialized */, []);
|
|
14
|
+
}
|
|
15
|
+
deinitialize() {
|
|
16
|
+
return this.callApiFunction("deinitialize" /* MetaFunction.deinitialize */, []);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=meta-module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meta-module.js","sourceRoot":"","sources":["../../../../src/internal/module/meta-module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,qCAAqC,CAAA;AAgBlE,MAAM,OAAO,UAAW,SAAQ,cAA2C;IACvE,YAAY,MAAiB;QACzB,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACzB,CAAC;IAEM,UAAU;QACb,OAAO,IAAI,CAAC,eAAe,6CAA0B,EAAE,CAAC,CAAA;IAC5D,CAAC;IAEM,OAAO,CAAC,MAAgB;QAC3B,OAAO,IAAI,CAAC,eAAe,uCAAuB,CAAC,MAAM,CAAC,CAAC,CAAA;IAC/D,CAAC;IAEM,oBAAoB;QACvB,OAAO,IAAI,CAAC,eAAe,iEAAoC,EAAE,CAAC,CAAA;IACtE,CAAC;IAEM,YAAY;QACf,OAAO,IAAI,CAAC,eAAe,iDAA4B,EAAE,CAAC,CAAA;IAC9D,CAAC;CACJ"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export declare const enum ActiveIndividualUiView {
|
|
2
|
+
/**
|
|
3
|
+
* The individual UI is showing the overview.
|
|
4
|
+
*/
|
|
5
|
+
OVERVIEW = "OVERVIEW",
|
|
6
|
+
/**
|
|
7
|
+
* The individual UI is showing the pin entry screen.
|
|
8
|
+
*/
|
|
9
|
+
PIN_ENTRY = "PIN_ENTRY",
|
|
10
|
+
/**
|
|
11
|
+
* The individual UI is showing messages in a conversation.
|
|
12
|
+
*/
|
|
13
|
+
CONVERSATION_MESSAGING = "CONVERSATION_MESSAGING",
|
|
14
|
+
/**
|
|
15
|
+
* The individual UI is showing the shared media view.
|
|
16
|
+
*/
|
|
17
|
+
CONVERSATION_SHARED_MEDIA = "CONVERSATION_SHARED_MEDIA",
|
|
18
|
+
/**
|
|
19
|
+
* The individual UI is showing messages in a conversation.
|
|
20
|
+
*/
|
|
21
|
+
CONVERSATION_CALL = "CONVERSATION_CALL",
|
|
22
|
+
/**
|
|
23
|
+
* The Floating Visitor UI hasn't fully initialized or active view is unknown.
|
|
24
|
+
*
|
|
25
|
+
* NOTE: You shouldn't rely on this option for specific views. New views added to the Unblu individual UI will show
|
|
26
|
+
* as {@link UNKNOWN} at first but may be added to the enum as a specific view at some point in the future.
|
|
27
|
+
*/
|
|
28
|
+
UNKNOWN = "UNKNOWN"
|
|
29
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"individualui_component.js","sourceRoot":"","sources":["../../../src/model/individualui_component.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const enum IndividualUiState {
|
|
2
|
+
/**
|
|
3
|
+
* The individual ui is open.
|
|
4
|
+
*/
|
|
5
|
+
OPEN = "OPEN",
|
|
6
|
+
/**
|
|
7
|
+
* The individual ui is collapsed.
|
|
8
|
+
*/
|
|
9
|
+
COLLAPSED = "COLLAPSED",
|
|
10
|
+
/**
|
|
11
|
+
* The individual ui is popped out.
|
|
12
|
+
*/
|
|
13
|
+
POPPED_OUT = "POPPED_OUT"
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"individualui_state.js","sourceRoot":"","sources":["../../../src/model/individualui_state.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export var ApiState;
|
|
2
|
+
(function (ApiState) {
|
|
3
|
+
ApiState["INITIAL"] = "INITIAL";
|
|
4
|
+
ApiState["INITIALIZING"] = "INITIALIZING";
|
|
5
|
+
ApiState["INITIALIZED"] = "INITIALIZED";
|
|
6
|
+
ApiState["ERROR"] = "ERROR";
|
|
7
|
+
ApiState["DEINITIALIZING"] = "DEINITIALIZING";
|
|
8
|
+
ApiState["DEINITIALIZED"] = "DEINITIALIZED";
|
|
9
|
+
})(ApiState || (ApiState = {}));
|
|
10
|
+
//# sourceMappingURL=api-state.js.map
|