@openfin/cloud-interop-core-api 0.0.1-alpha.c03466b → 0.0.1-alpha.c8c60ad

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 CHANGED
@@ -256,6 +256,12 @@ class CloudInteropAPI {
256
256
  if (!parameters) {
257
257
  throw new Error('Connect parameters must be provided');
258
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
+ }
259
265
  if (parameters.authenticationType === 'jwt' &&
260
266
  (!parameters.jwtAuthenticationParameters?.jwtRequestCallback || !parameters.jwtAuthenticationParameters?.authenticationId)) {
261
267
  throw new Error('jwtAuthenticationParameters must be provided when using jwt authentication');
package/dist/index.mjs CHANGED
@@ -4020,6 +4020,12 @@ class CloudInteropAPI {
4020
4020
  if (!parameters) {
4021
4021
  throw new Error('Connect parameters must be provided');
4022
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
+ }
4023
4029
  if (parameters.authenticationType === 'jwt' &&
4024
4030
  (!parameters.jwtAuthenticationParameters?.jwtRequestCallback || !parameters.jwtAuthenticationParameters?.authenticationId)) {
4025
4031
  throw new Error('jwtAuthenticationParameters must be provided when using jwt authentication');
@@ -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?: string;
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/cloud-interop-core-api",
3
- "version": "0.0.1-alpha.c03466b",
3
+ "version": "0.0.1-alpha.c8c60ad",
4
4
  "type": "module",
5
5
  "description": "",
6
6
  "files": [