feat: project override on runSavedFlow
Some checks failed
Security / Security check (push) Failing after 2s
Some checks failed
Security / Security check (push) Failing after 2s
Empty keeps the saved flow's own project:, then general (resolved hub-side) — the wire field existed, the wrapper now exposes it. Signed-off-by: flemming-it <stefan.a.flemming@googlemail.com>
This commit is contained in:
parent
dd909b58f4
commit
f67e430b09
1 changed files with 6 additions and 1 deletions
|
|
@ -766,8 +766,13 @@ class HubClient {
|
|||
Map<String, String> textInputs = const {},
|
||||
Map<String, Uint8List> fileInputs = const {},
|
||||
Map<String, String> fileMimeTypes = const {},
|
||||
String project = '',
|
||||
}) async {
|
||||
final req = pb.RunSavedFlowRequest()..name = name;
|
||||
// Project override for this run; empty keeps the saved flow's
|
||||
// own `project:`, then `general` (resolved hub-side).
|
||||
final req = pb.RunSavedFlowRequest()
|
||||
..name = name
|
||||
..project = project;
|
||||
for (final entry in textInputs.entries) {
|
||||
req.inputs[entry.key] = pb_common.Payload()..text = entry.value;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue