@unblu/floating-js-api 7.43.1 → 8.0.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.
- package/README.md +1 -1
- package/dist/lib/index.d.ts +30 -25
- package/dist/lib/index.js +6 -16
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/shared/conversation.d.ts +1 -64
- package/dist/lib/shared/conversation.js +1 -76
- package/dist/lib/shared/conversation.js.map +1 -1
- package/dist/lib/shared/internal/module/base-general-module.d.ts +7 -3
- package/dist/lib/shared/internal/module/base-general-module.js +8 -0
- package/dist/lib/shared/internal/module/base-general-module.js.map +1 -1
- package/dist/lib/shared/internal/module/conversation-module.d.ts +0 -15
- package/dist/lib/shared/internal/module/conversation-module.js +0 -15
- package/dist/lib/shared/internal/module/conversation-module.js.map +1 -1
- package/dist/lib/shared/internal/{unblu-api-factory.d.ts → unblu-floating-api.d.ts} +7 -1
- package/dist/lib/shared/internal/unblu-floating-api.js +2 -0
- package/dist/lib/shared/internal/unblu-floating-api.js.map +1 -0
- package/dist/lib/shared/internal/unblu-util.d.ts +2 -2
- package/dist/lib/shared/internal/unblu-util.js +2 -2
- package/dist/lib/shared/internal/unblu-util.js.map +1 -1
- package/dist/lib/shared/model/conversation-info.d.ts +18 -14
- package/dist/lib/shared/model/conversation-participant.d.ts +15 -0
- package/dist/lib/shared/model/conversation-participant.js +2 -0
- package/dist/lib/shared/model/conversation-participant.js.map +1 -0
- package/dist/lib/shared/model/conversation-participation-type.d.ts +18 -0
- package/dist/lib/shared/model/conversation-participation-type.js +20 -0
- package/dist/lib/shared/model/conversation-participation-type.js.map +1 -0
- package/dist/lib/shared/model/conversation-recipient-type.d.ts +11 -3
- package/dist/lib/shared/model/conversation-recipient-type.js +10 -2
- package/dist/lib/shared/model/conversation-recipient-type.js.map +1 -1
- package/dist/lib/shared/model/conversation-recipient.d.ts +6 -2
- package/dist/lib/shared/model/new-conversation-interceptor-result.d.ts +2 -2
- package/dist/lib/shared/model/new-conversation-recipient-type.d.ts +10 -0
- package/dist/lib/shared/model/new-conversation-recipient-type.js +12 -0
- package/dist/lib/shared/model/new-conversation-recipient-type.js.map +1 -0
- package/dist/lib/shared/model/new-conversation-recipient.d.ts +14 -0
- package/dist/lib/shared/model/new-conversation-recipient.js +2 -0
- package/dist/lib/shared/model/new-conversation-recipient.js.map +1 -0
- package/dist/lib/shared/model/person-info.d.ts +1 -0
- package/dist/lib/shared/new-conversation-interceptor.d.ts +8 -8
- package/dist/lib/shared/unblu-api-error.d.ts +3 -3
- package/dist/lib/shared/unblu-api-error.js +3 -3
- package/dist/lib/unblu-api.d.ts +17 -5
- package/dist/lib/unblu-api.js +23 -3
- package/dist/lib/unblu-api.js.map +1 -1
- package/dist/lib/unblu-static-api.d.ts +20 -20
- package/dist/lib/unblu-static-api.js +29 -31
- package/dist/lib/unblu-static-api.js.map +1 -1
- package/package.json +1 -1
- package/dist/lib/shared/internal/unblu-api-factory.js +0 -2
- package/dist/lib/shared/internal/unblu-api-factory.js.map +0 -1
- package/dist/lib/shared/model/invitation-status.d.ts +0 -14
- package/dist/lib/shared/model/invitation-status.js +0 -16
- package/dist/lib/shared/model/invitation-status.js.map +0 -1
- package/dist/lib/shared/model/invitation.d.ts +0 -24
- package/dist/lib/shared/model/invitation.js +0 -2
- package/dist/lib/shared/model/invitation.js.map +0 -1
|
@@ -2,7 +2,7 @@ import { UnbluApi } from './unblu-api';
|
|
|
2
2
|
import { Listener } from './shared/internal/util/event-emitter';
|
|
3
3
|
import { ApiState } from "./shared/api-state";
|
|
4
4
|
import { Configuration } from "./shared/model/configuration";
|
|
5
|
-
import {
|
|
5
|
+
import { UnbluFloatingApiFactory } from "./shared/internal/unblu-floating-api";
|
|
6
6
|
export { Configuration };
|
|
7
7
|
export type ReadyListener = (api: UnbluApi) => void;
|
|
8
8
|
export type ErrorListener = (e: Error) => void;
|
|
@@ -10,19 +10,19 @@ export type DeinitializingListener = () => void;
|
|
|
10
10
|
export type DeinitializedListener = () => void;
|
|
11
11
|
export type StateListener = (state: ApiState) => void;
|
|
12
12
|
/**
|
|
13
|
-
* #### The central entry point that allows to configure an initialize the Unblu
|
|
14
|
-
* The
|
|
13
|
+
* #### The central entry point that allows to configure an initialize the Unblu Floating JS API.
|
|
14
|
+
* The Unblu Floating JS API is an optional add-on to the Unblu Floating UI.
|
|
15
|
+
* The UnbluStaticApi works without actually loading the rest of Unblu.
|
|
15
16
|
* It can do some general checks and load Unblu or connect the API to a loaded version of Unblu.
|
|
16
|
-
* The JS API is an optional add-on to the Unblu visitor site integration.
|
|
17
17
|
*
|
|
18
18
|
* Depending on how Unblu is integrated into the local website the API has to be initialized differently.
|
|
19
19
|
*
|
|
20
20
|
* **a.) API-only integration**
|
|
21
|
-
* If no unblu-snippet is loaded into the page, Unblu can be fully initialized with the API.
|
|
21
|
+
* If no unblu-snippet is loaded into the page, the Unblu Floating UI can be fully initialized with the API.
|
|
22
22
|
* In this case, both the `configure` and the `initialize` methods have to be called.
|
|
23
23
|
* Example:
|
|
24
24
|
* ```ts
|
|
25
|
-
* const api = await unblu.api
|
|
25
|
+
* const api = await unblu.floating.api
|
|
26
26
|
* // configure the unblu server
|
|
27
27
|
* .configure({
|
|
28
28
|
* apiKey: "<your-api-key>",
|
|
@@ -31,7 +31,7 @@ export type StateListener = (state: ApiState) => void;
|
|
|
31
31
|
* // initialize the api.
|
|
32
32
|
* .initialize();
|
|
33
33
|
* ```
|
|
34
|
-
* This implementation will load the Unblu snippet and initialize both Unblu and the JS API.
|
|
34
|
+
* This implementation will load the Unblu snippet and initialize both the Unblu Floating UI and the JS API.
|
|
35
35
|
*
|
|
36
36
|
* **b.) Snippet and JS API integration**
|
|
37
37
|
* If the Unblu snippet is already present in the local website, Unblu doesn't have to be loaded
|
|
@@ -39,16 +39,11 @@ export type StateListener = (state: ApiState) => void;
|
|
|
39
39
|
* Example:
|
|
40
40
|
* ```ts
|
|
41
41
|
* // directly initialize the api without configuring.
|
|
42
|
-
* const api = await unblu.api.initialize();
|
|
42
|
+
* const api = await unblu.floating.api.initialize();
|
|
43
43
|
*
|
|
44
44
|
* ```
|
|
45
45
|
*/
|
|
46
|
-
export declare class UnbluStaticApi implements
|
|
47
|
-
private state;
|
|
48
|
-
private error;
|
|
49
|
-
private eventEmitter;
|
|
50
|
-
private configuration;
|
|
51
|
-
private initializedApi;
|
|
46
|
+
export declare class UnbluStaticApi implements UnbluFloatingApiFactory {
|
|
52
47
|
/**
|
|
53
48
|
* Event emitted as soon as the API is initialized.
|
|
54
49
|
*
|
|
@@ -57,11 +52,11 @@ export declare class UnbluStaticApi implements UnbluApiFactory {
|
|
|
57
52
|
*
|
|
58
53
|
* In most cases however, it is better to use
|
|
59
54
|
* ```ts
|
|
60
|
-
* unblu.api.initialize().then(api => { //use api here });
|
|
55
|
+
* unblu.floating.api.initialize().then(api => { //use api here });
|
|
61
56
|
* ```
|
|
62
57
|
* or
|
|
63
58
|
* ```ts
|
|
64
|
-
* let api = await unblu.api.initialize();
|
|
59
|
+
* let api = await unblu.floating.api.initialize();
|
|
65
60
|
* // use api here
|
|
66
61
|
* ```
|
|
67
62
|
*
|
|
@@ -79,12 +74,12 @@ export declare class UnbluStaticApi implements UnbluApiFactory {
|
|
|
79
74
|
*
|
|
80
75
|
* In most cases however, it is better to use
|
|
81
76
|
* ```ts
|
|
82
|
-
* unblu.api.initialize().catch(error=> { //handle error here });
|
|
77
|
+
* unblu.floating.api.initialize().catch(error=> { //handle error here });
|
|
83
78
|
* ```
|
|
84
79
|
* or
|
|
85
80
|
* ```ts
|
|
86
81
|
* try{
|
|
87
|
-
* let api = await unblu.api.initialize();
|
|
82
|
+
* let api = await unblu.floating.api.initialize();
|
|
88
83
|
* }catch(e){
|
|
89
84
|
* // handle error here
|
|
90
85
|
* }
|
|
@@ -120,10 +115,16 @@ export declare class UnbluStaticApi implements UnbluApiFactory {
|
|
|
120
115
|
* @see {@link on} for listener registration
|
|
121
116
|
*/
|
|
122
117
|
static readonly STATE: 'state';
|
|
118
|
+
private state;
|
|
119
|
+
private error;
|
|
120
|
+
private eventEmitter;
|
|
121
|
+
private configuration;
|
|
122
|
+
private initializedApi;
|
|
123
123
|
/**
|
|
124
124
|
* @hidden
|
|
125
125
|
*/
|
|
126
126
|
constructor();
|
|
127
|
+
private static injectUnblu;
|
|
127
128
|
/**
|
|
128
129
|
* Registers an event listener for the given event.
|
|
129
130
|
*
|
|
@@ -210,7 +211,7 @@ export declare class UnbluStaticApi implements UnbluApiFactory {
|
|
|
210
211
|
* If it is called afterwards an {@link UnbluApiError} will be thrown.
|
|
211
212
|
*
|
|
212
213
|
* @param config The configuration to be set.
|
|
213
|
-
* @return an instance of `this` allowing chaining like `unblu.api.configure({...}).initialize();`
|
|
214
|
+
* @return an instance of `this` allowing chaining like `unblu.floating.api.configure({...}).initialize();`
|
|
214
215
|
* @see {@link isConfigurationNeeded} to check if configuration is needed or not.
|
|
215
216
|
*/
|
|
216
217
|
configure(config: Configuration): UnbluStaticApi;
|
|
@@ -230,7 +231,6 @@ export declare class UnbluStaticApi implements UnbluApiFactory {
|
|
|
230
231
|
*/
|
|
231
232
|
initialize(): Promise<UnbluApi>;
|
|
232
233
|
private initializeApi;
|
|
233
|
-
private static injectUnblu;
|
|
234
234
|
private handleError;
|
|
235
235
|
private onDeinitializing;
|
|
236
236
|
private onDeinitialized;
|
|
@@ -6,19 +6,19 @@ import { ApiBridge } from './shared/internal/api-bridge';
|
|
|
6
6
|
import { InternalApi } from './internal/internal-api';
|
|
7
7
|
import { ApiState } from "./shared/api-state";
|
|
8
8
|
/**
|
|
9
|
-
* #### The central entry point that allows to configure an initialize the Unblu
|
|
10
|
-
* The
|
|
9
|
+
* #### The central entry point that allows to configure an initialize the Unblu Floating JS API.
|
|
10
|
+
* The Unblu Floating JS API is an optional add-on to the Unblu Floating UI.
|
|
11
|
+
* The UnbluStaticApi works without actually loading the rest of Unblu.
|
|
11
12
|
* It can do some general checks and load Unblu or connect the API to a loaded version of Unblu.
|
|
12
|
-
* The JS API is an optional add-on to the Unblu visitor site integration.
|
|
13
13
|
*
|
|
14
14
|
* Depending on how Unblu is integrated into the local website the API has to be initialized differently.
|
|
15
15
|
*
|
|
16
16
|
* **a.) API-only integration**
|
|
17
|
-
* If no unblu-snippet is loaded into the page, Unblu can be fully initialized with the API.
|
|
17
|
+
* If no unblu-snippet is loaded into the page, the Unblu Floating UI can be fully initialized with the API.
|
|
18
18
|
* In this case, both the `configure` and the `initialize` methods have to be called.
|
|
19
19
|
* Example:
|
|
20
20
|
* ```ts
|
|
21
|
-
* const api = await unblu.api
|
|
21
|
+
* const api = await unblu.floating.api
|
|
22
22
|
* // configure the unblu server
|
|
23
23
|
* .configure({
|
|
24
24
|
* apiKey: "<your-api-key>",
|
|
@@ -27,7 +27,7 @@ import { ApiState } from "./shared/api-state";
|
|
|
27
27
|
* // initialize the api.
|
|
28
28
|
* .initialize();
|
|
29
29
|
* ```
|
|
30
|
-
* This implementation will load the Unblu snippet and initialize both Unblu and the JS API.
|
|
30
|
+
* This implementation will load the Unblu snippet and initialize both the Unblu Floating UI and the JS API.
|
|
31
31
|
*
|
|
32
32
|
* **b.) Snippet and JS API integration**
|
|
33
33
|
* If the Unblu snippet is already present in the local website, Unblu doesn't have to be loaded
|
|
@@ -35,7 +35,7 @@ import { ApiState } from "./shared/api-state";
|
|
|
35
35
|
* Example:
|
|
36
36
|
* ```ts
|
|
37
37
|
* // directly initialize the api without configuring.
|
|
38
|
-
* const api = await unblu.api.initialize();
|
|
38
|
+
* const api = await unblu.floating.api.initialize();
|
|
39
39
|
*
|
|
40
40
|
* ```
|
|
41
41
|
*/
|
|
@@ -48,19 +48,29 @@ export class UnbluStaticApi {
|
|
|
48
48
|
this.eventEmitter = new EventEmitter();
|
|
49
49
|
// store the error
|
|
50
50
|
this.eventEmitter.on(UnbluStaticApi.ERROR, e => this.error = e);
|
|
51
|
-
// install globally if needed so the embedded API
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
else {
|
|
57
|
-
unblu.api = this;
|
|
51
|
+
// install globally if needed so the embedded API has a reference it can use to de-init
|
|
52
|
+
// this is the case if the lib is included as ES-Module and not a static script import
|
|
53
|
+
const unblu = UnbluUtil.getOrCreateUnbluObject();
|
|
54
|
+
if (!unblu.floating) {
|
|
55
|
+
unblu.floating = { api: this };
|
|
58
56
|
}
|
|
59
57
|
if (UnbluUtil.isUnbluLoaded(IntegrationType.floating)) {
|
|
60
58
|
// Auto init if snippet is already loaded.
|
|
61
59
|
this.initializeApi().catch(e => console.warn('Error during auto initialization', e));
|
|
62
60
|
}
|
|
63
61
|
}
|
|
62
|
+
static async injectUnblu(config) {
|
|
63
|
+
const serverUrl = config.serverUrl || '';
|
|
64
|
+
const apiKey = config.apiKey || '';
|
|
65
|
+
const unbluPath = config.entryPath || '/unblu';
|
|
66
|
+
let unbluUrl = `${serverUrl}${unbluPath}/visitor.js?x-unblu-apikey=${apiKey}`;
|
|
67
|
+
try {
|
|
68
|
+
await UnbluUtil.loadScript(unbluUrl, config.initTimeout);
|
|
69
|
+
}
|
|
70
|
+
catch (e) {
|
|
71
|
+
throw new UnbluApiError(UnbluErrorType.ERROR_LOADING_UNBLU, 'Error loading unblu snippet: ' + e + ' check the configuration: ' + config);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
64
74
|
on(event, listener) {
|
|
65
75
|
if (event == UnbluStaticApi.READY && this.state == ApiState.INITIALIZED)
|
|
66
76
|
listener(this.initializedApi);
|
|
@@ -122,7 +132,7 @@ export class UnbluStaticApi {
|
|
|
122
132
|
* If it is called afterwards an {@link UnbluApiError} will be thrown.
|
|
123
133
|
*
|
|
124
134
|
* @param config The configuration to be set.
|
|
125
|
-
* @return an instance of `this` allowing chaining like `unblu.api.configure({...}).initialize();`
|
|
135
|
+
* @return an instance of `this` allowing chaining like `unblu.floating.api.configure({...}).initialize();`
|
|
126
136
|
* @see {@link isConfigurationNeeded} to check if configuration is needed or not.
|
|
127
137
|
*/
|
|
128
138
|
configure(config) {
|
|
@@ -208,18 +218,6 @@ export class UnbluStaticApi {
|
|
|
208
218
|
this.eventEmitter.emit(UnbluStaticApi.STATE, this.state);
|
|
209
219
|
return this.initializedApi;
|
|
210
220
|
}
|
|
211
|
-
static async injectUnblu(config) {
|
|
212
|
-
const serverUrl = config.serverUrl || '';
|
|
213
|
-
const apiKey = config.apiKey || '';
|
|
214
|
-
const unbluPath = config.entryPath || '/unblu';
|
|
215
|
-
let unbluUrl = `${serverUrl}${unbluPath}/visitor.js?x-unblu-apikey=${apiKey}`;
|
|
216
|
-
try {
|
|
217
|
-
await UnbluUtil.loadScript(unbluUrl, config.initTimeout);
|
|
218
|
-
}
|
|
219
|
-
catch (e) {
|
|
220
|
-
throw new UnbluApiError(UnbluErrorType.ERROR_LOADING_UNBLU, 'Error loading unblu snippet: ' + e + ' check the configuration: ' + config);
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
221
|
handleError(error) {
|
|
224
222
|
this.state = ApiState.ERROR;
|
|
225
223
|
this.eventEmitter.emit(UnbluStaticApi.ERROR, error);
|
|
@@ -252,11 +250,11 @@ export class UnbluStaticApi {
|
|
|
252
250
|
*
|
|
253
251
|
* In most cases however, it is better to use
|
|
254
252
|
* ```ts
|
|
255
|
-
* unblu.api.initialize().then(api => { //use api here });
|
|
253
|
+
* unblu.floating.api.initialize().then(api => { //use api here });
|
|
256
254
|
* ```
|
|
257
255
|
* or
|
|
258
256
|
* ```ts
|
|
259
|
-
* let api = await unblu.api.initialize();
|
|
257
|
+
* let api = await unblu.floating.api.initialize();
|
|
260
258
|
* // use api here
|
|
261
259
|
* ```
|
|
262
260
|
*
|
|
@@ -274,12 +272,12 @@ UnbluStaticApi.READY = 'ready';
|
|
|
274
272
|
*
|
|
275
273
|
* In most cases however, it is better to use
|
|
276
274
|
* ```ts
|
|
277
|
-
* unblu.api.initialize().catch(error=> { //handle error here });
|
|
275
|
+
* unblu.floating.api.initialize().catch(error=> { //handle error here });
|
|
278
276
|
* ```
|
|
279
277
|
* or
|
|
280
278
|
* ```ts
|
|
281
279
|
* try{
|
|
282
|
-
* let api = await unblu.api.initialize();
|
|
280
|
+
* let api = await unblu.floating.api.initialize();
|
|
283
281
|
* }catch(e){
|
|
284
282
|
* // handle error here
|
|
285
283
|
* }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unblu-static-api.js","sourceRoot":"","sources":["../../src/unblu-static-api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAC;AACrC,OAAO,EAAC,YAAY,EAAW,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EAAC,eAAe,EAAE,SAAS,EAAC,MAAM,8BAA8B,CAAC;AACxE,OAAO,EAAC,aAAa,EAAE,cAAc,EAAC,MAAM,0BAA0B,CAAC;AACvE,OAAO,EAAC,SAAS,EAAC,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAC,WAAW,EAAC,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAC,QAAQ,EAAC,MAAM,oBAAoB,CAAC;AAa5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAM,OAAO,cAAc;
|
|
1
|
+
{"version":3,"file":"unblu-static-api.js","sourceRoot":"","sources":["../../src/unblu-static-api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAC;AACrC,OAAO,EAAC,YAAY,EAAW,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EAAC,eAAe,EAAE,SAAS,EAAC,MAAM,8BAA8B,CAAC;AACxE,OAAO,EAAC,aAAa,EAAE,cAAc,EAAC,MAAM,0BAA0B,CAAC;AACvE,OAAO,EAAC,SAAS,EAAC,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAC,WAAW,EAAC,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAC,QAAQ,EAAC,MAAM,oBAAoB,CAAC;AAa5C;;;;;;;;;;;;;;;;;;;;;;;;;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KAAK,CAAC;IAChB,CAAC;IAEO,gBAAgB;QACpB,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC;QAC3B,IAAI,CAAC,KAAK,GAAG,QAAQ,CAAC,cAAc,CAAC;QACrC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;QACtD,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;IAC7D,CAAC;IAEO,eAAe;QACnB,IAAI,CAAC,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC;QACpC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC;QACrD,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;QACzD,IAAI,IAAI,CAAC,aAAa,CAAC,SAAS,EAAE;YAC9B,SAAS,CAAC,eAAe,EAAE,CAAA;SAC9B;IACL,CAAC;;AAjVD;;;;;;;;;;;;;;;;;;;;GAoBG;AACoB,oBAAK,GAAY,OAAO,AAAnB,CAAoB;AAChD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACoB,oBAAK,GAAY,OAAO,AAAnB,CAAoB;AAChD;;;;;;;GAOG;AACoB,6BAAc,GAAqB,gBAAgB,AAArC,CAAsC;AAC3E;;;;;;;GAOG;AACoB,4BAAa,GAAoB,eAAe,AAAnC,CAAoC;AACxE;;;;;GAKG;AACoB,oBAAK,GAAY,OAAO,AAAnB,CAAoB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unblu/floating-js-api",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.1",
|
|
4
4
|
"description": "Unblu Floating JavaScript API allowing to control the Unblu Floating UI",
|
|
5
5
|
"homepage": "https://www.unblu.com/en/docs/latest/reference/unblu-floating-js-api/",
|
|
6
6
|
"author": "David Eberlein",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unblu-api-factory.js","sourceRoot":"","sources":["../../../../src/shared/internal/unblu-api-factory.ts"],"names":[],"mappings":""}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export var InvitationStatus;
|
|
2
|
-
(function (InvitationStatus) {
|
|
3
|
-
/**
|
|
4
|
-
* Invitation is open however it may have expired.
|
|
5
|
-
*/
|
|
6
|
-
InvitationStatus["OPEN"] = "OPEN";
|
|
7
|
-
/**
|
|
8
|
-
* Invitation is redeemed.
|
|
9
|
-
*/
|
|
10
|
-
InvitationStatus["REDEEMED"] = "REDEEMED";
|
|
11
|
-
/**
|
|
12
|
-
* Invitation is revoked.
|
|
13
|
-
*/
|
|
14
|
-
InvitationStatus["REVOKED"] = "REVOKED";
|
|
15
|
-
})(InvitationStatus || (InvitationStatus = {}));
|
|
16
|
-
//# sourceMappingURL=invitation-status.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"invitation-status.js","sourceRoot":"","sources":["../../../../src/shared/model/invitation-status.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,gBAaX;AAbD,WAAY,gBAAgB;IACxB;;OAEG;IACH,iCAAa,CAAA;IACb;;OAEG;IACH,yCAAqB,CAAA;IACrB;;OAEG;IACH,uCAAmB,CAAA;AACvB,CAAC,EAbW,gBAAgB,KAAhB,gBAAgB,QAa3B"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { InvitationStatus } from "./invitation-status";
|
|
2
|
-
/**
|
|
3
|
-
* An Invitation belongs to a conversation. A Conversation can have multiple invitations.
|
|
4
|
-
* The invitation has different metadata like the status or the token. This information could
|
|
5
|
-
* be further used for example to join a conversation with the provided PIN (token).
|
|
6
|
-
*/
|
|
7
|
-
export interface Invitation {
|
|
8
|
-
/**
|
|
9
|
-
* The Id of the invitation.
|
|
10
|
-
*/
|
|
11
|
-
id: string;
|
|
12
|
-
/**
|
|
13
|
-
* Status of the the Invitation.
|
|
14
|
-
*/
|
|
15
|
-
status: InvitationStatus;
|
|
16
|
-
/**
|
|
17
|
-
* Token for the invitation, the PIN Number.
|
|
18
|
-
*/
|
|
19
|
-
token: string;
|
|
20
|
-
/**
|
|
21
|
-
* Expiration timestamp in milliseconds of the invitation elapsed since January 1, 1970 00:00:00 UTC.
|
|
22
|
-
*/
|
|
23
|
-
expirationTimestamp: number;
|
|
24
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"invitation.js","sourceRoot":"","sources":["../../../../src/shared/model/invitation.ts"],"names":[],"mappings":""}
|