@openfin/cloud-interop-core-api 0.0.1-alpha.fba3468 → 0.0.1-alpha.fe96ffc
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/index.cjs +6 -3
- package/dist/index.mjs +6 -3
- package/dist/interfaces.d.ts +2 -7
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -88,9 +88,6 @@ class CloudInteropAPI {
|
|
|
88
88
|
payload: Buffer.from(JSON.stringify(this.#sessionDetails)),
|
|
89
89
|
qos: 0,
|
|
90
90
|
retain: false,
|
|
91
|
-
properties: {
|
|
92
|
-
willDelayInterval: 10,
|
|
93
|
-
},
|
|
94
91
|
},
|
|
95
92
|
username: this.#sessionDetails.token,
|
|
96
93
|
};
|
|
@@ -259,6 +256,12 @@ class CloudInteropAPI {
|
|
|
259
256
|
if (!parameters) {
|
|
260
257
|
throw new Error('Connect parameters must be provided');
|
|
261
258
|
}
|
|
259
|
+
if (!parameters.sourceId) {
|
|
260
|
+
throw new Error('sourceId must be provided');
|
|
261
|
+
}
|
|
262
|
+
if (!parameters.platformId) {
|
|
263
|
+
throw new Error('platformId must be provided');
|
|
264
|
+
}
|
|
262
265
|
if (parameters.authenticationType === 'jwt' &&
|
|
263
266
|
(!parameters.jwtAuthenticationParameters?.jwtRequestCallback || !parameters.jwtAuthenticationParameters?.authenticationId)) {
|
|
264
267
|
throw new Error('jwtAuthenticationParameters must be provided when using jwt authentication');
|
package/dist/index.mjs
CHANGED
|
@@ -3852,9 +3852,6 @@ class CloudInteropAPI {
|
|
|
3852
3852
|
payload: Buffer.from(JSON.stringify(this.#sessionDetails)),
|
|
3853
3853
|
qos: 0,
|
|
3854
3854
|
retain: false,
|
|
3855
|
-
properties: {
|
|
3856
|
-
willDelayInterval: 10,
|
|
3857
|
-
},
|
|
3858
3855
|
},
|
|
3859
3856
|
username: this.#sessionDetails.token,
|
|
3860
3857
|
};
|
|
@@ -4023,6 +4020,12 @@ class CloudInteropAPI {
|
|
|
4023
4020
|
if (!parameters) {
|
|
4024
4021
|
throw new Error('Connect parameters must be provided');
|
|
4025
4022
|
}
|
|
4023
|
+
if (!parameters.sourceId) {
|
|
4024
|
+
throw new Error('sourceId must be provided');
|
|
4025
|
+
}
|
|
4026
|
+
if (!parameters.platformId) {
|
|
4027
|
+
throw new Error('platformId must be provided');
|
|
4028
|
+
}
|
|
4026
4029
|
if (parameters.authenticationType === 'jwt' &&
|
|
4027
4030
|
(!parameters.jwtAuthenticationParameters?.jwtRequestCallback || !parameters.jwtAuthenticationParameters?.authenticationId)) {
|
|
4028
4031
|
throw new Error('jwtAuthenticationParameters must be provided when using jwt authentication');
|
package/dist/interfaces.d.ts
CHANGED
|
@@ -9,22 +9,17 @@ export type CloudInteropLogger = (level: LogLevel, message: string) => void;
|
|
|
9
9
|
export type ConnectParameters = {
|
|
10
10
|
/**
|
|
11
11
|
* ID for a group of shared applications.
|
|
12
|
+
* This acts as a namespace for the interop messages that allows separation of messages between different groups of applications for the same user
|
|
12
13
|
*/
|
|
13
14
|
platformId: string;
|
|
14
15
|
/**
|
|
15
16
|
* An identifier for the source environment e.g. a hostname, a browser name etc.
|
|
16
17
|
*/
|
|
17
|
-
sourceId
|
|
18
|
+
sourceId: string;
|
|
18
19
|
/**
|
|
19
20
|
* A display name for the source environment e.g. Andys Mobile
|
|
20
21
|
*/
|
|
21
22
|
sourceDisplayName?: string;
|
|
22
|
-
/**
|
|
23
|
-
* Specifies an optional extra divider to use that allows separation of interop messages for the
|
|
24
|
-
* same user
|
|
25
|
-
* defaults to "default"
|
|
26
|
-
*/
|
|
27
|
-
realm?: string;
|
|
28
23
|
/**
|
|
29
24
|
* The maximum number of times to retry connecting to the cloud interop service when the connection is dropped
|
|
30
25
|
* defaults to 30
|