diff --git a/lib/types.ts b/lib/types.ts index 73f9a22..0973753 100644 --- a/lib/types.ts +++ b/lib/types.ts @@ -193,6 +193,18 @@ export type NetworkInterface = { ui?: boolean } +export type ExposeServicePaths = Array<{ + /** Sets the value for the wrapper at the path, it will override, using the [JsonPath](https://jsonpath.com/) */ + path: Path & EnsureStorePath +}> + +export type ExposeUiPaths = Array<{ + /** Sets the value for the wrapper at the path, it will override, using the [JsonPath](https://jsonpath.com/) */ + path: Path & EnsureStorePath + + /** This will be the title for the value field that is returned */ + title: string +}> /** Used to reach out from the pure js runtime */ export type Effects = { runCommand( @@ -328,6 +340,13 @@ export type Effects = { */ exportNetworkInterface(options: NetworkInterface): Promise + exposeForDependents( + options: ExposeServicePaths, + ): Promise + + exposeUi( + options: ExposeUiPaths, + ): Promise /** * There are times that we want to see the addresses that where exported * @param options.addressId If we want to filter the address id