From bb35e676d3bdcf4af4a0aee5d981eeab62605b1e Mon Sep 17 00:00:00 2001 From: Blu-J Date: Tue, 30 May 2023 16:41:11 -0600 Subject: [PATCH] feat: Add in the effects --- lib/types.ts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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