@microsoft/rayfin-client 1.34.0-alpha.1225 → 1.34.0-alpha.1270
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createConnectorsApi, type ConnectorConfig, type ConnectorsRuntime, type ConnectorsSchema } from '@microsoft/rayfin-connectors';
|
|
1
|
+
import { createConnectorsApi, type ConnectorConfig, type ConnectorsRuntime, type ConnectorsSchema, type HostEnvironment } from '@microsoft/rayfin-connectors';
|
|
2
2
|
import { type EntitySchema } from '@microsoft/rayfin-data';
|
|
3
3
|
import { type FunctionsSchema } from '@microsoft/rayfin-functions';
|
|
4
4
|
import RayfinClient, { RayfinClientConfig } from '../client.js';
|
|
@@ -20,6 +20,17 @@ export interface ConnectorsRayfinClientConfig<TConnectorsSchema extends Connecto
|
|
|
20
20
|
* connector declared in `TConnectorsSchema` must have a runtime config.
|
|
21
21
|
*/
|
|
22
22
|
connectors: Record<keyof TConnectorsSchema & string, ConnectorConfig>;
|
|
23
|
+
/**
|
|
24
|
+
* (Experimental) Hosting environment the connectors runtime runs in. Carried
|
|
25
|
+
* on every invocation context so a registered invoke middleware can branch
|
|
26
|
+
* on it (embedded-in-Fabric vs standalone vs cli). When omitted, the host is
|
|
27
|
+
* auto-detected (`detectHost()`) so callers wire up nothing — `cli` under
|
|
28
|
+
* Node, `embedded` inside a parent frame, otherwise `standalone`. Pass an
|
|
29
|
+
* explicit value only to override detection. The connectors layer only
|
|
30
|
+
* carries this value; confirming a specific Fabric host is the job of the
|
|
31
|
+
* connector-specific package.
|
|
32
|
+
*/
|
|
33
|
+
host?: HostEnvironment;
|
|
23
34
|
}
|
|
24
35
|
/**
|
|
25
36
|
* (Experimental) Rayfin client that surfaces the typed connectors runtime as
|
|
@@ -78,7 +78,7 @@ export class ConnectorsRayfinClient extends RayfinClient {
|
|
|
78
78
|
*/
|
|
79
79
|
constructor(config, connectorsRuntime) {
|
|
80
80
|
super(config);
|
|
81
|
-
this.connectors = createConnectorsApi(this.apiClient, config.connectors, connectorsRuntime);
|
|
81
|
+
this.connectors = createConnectorsApi(this.apiClient, config.connectors, connectorsRuntime, config.host);
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
export default ConnectorsRayfinClient;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/rayfin-client",
|
|
3
|
-
"version": "1.34.0-alpha.
|
|
3
|
+
"version": "1.34.0-alpha.1270",
|
|
4
4
|
"description": "Main client SDK for Rayfin services",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
"assets/docs"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@microsoft/rayfin-auth": "1.34.0-alpha.
|
|
25
|
-
"@microsoft/rayfin-connectors": "1.34.0-alpha.
|
|
26
|
-
"@microsoft/rayfin-
|
|
27
|
-
"@microsoft/rayfin-
|
|
28
|
-
"@microsoft/rayfin-
|
|
24
|
+
"@microsoft/rayfin-auth": "1.34.0-alpha.1270",
|
|
25
|
+
"@microsoft/rayfin-connectors": "1.34.0-alpha.1270",
|
|
26
|
+
"@microsoft/rayfin-data": "1.34.0-alpha.1270",
|
|
27
|
+
"@microsoft/rayfin-functions": "1.34.0-alpha.1270",
|
|
28
|
+
"@microsoft/rayfin-lib": "1.34.0-alpha.1270"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"typescript": "^5.8.3",
|