@kemu-io/edge-runtime 1.7.0 → 1.7.2
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/package.json +1 -1
- package/runner.d.ts +3 -1
- package/runner.js +4 -4
package/package.json
CHANGED
package/runner.d.ts
CHANGED
|
@@ -72,11 +72,11 @@ export type Data = {
|
|
|
72
72
|
timestamp: number;
|
|
73
73
|
};
|
|
74
74
|
export type PartialData = Omit<Data, "timestamp">;
|
|
75
|
+
export type GlobalVariableControlType = "number" | "slider" | "text" | "multilineText" | "dropdown" | "image" | "binaryFile" | "checkbox" | "multiSelect" | "anything" | "button" | "group";
|
|
75
76
|
export type ExecutionContext = {
|
|
76
77
|
currentPath: string[];
|
|
77
78
|
eventId: number;
|
|
78
79
|
};
|
|
79
|
-
export type GlobalVariableControlType = "number" | "slider" | "text" | "multilineText" | "dropdown" | "image" | "binaryFile" | "checkbox" | "multiSelect" | "anything";
|
|
80
80
|
export type GlobalVariable<T = any> = {
|
|
81
81
|
name: string;
|
|
82
82
|
controlType: GlobalVariableControlType;
|
|
@@ -88,6 +88,8 @@ export type GlobalVariable<T = any> = {
|
|
|
88
88
|
/** help text in plain text or markdown format */
|
|
89
89
|
helpText?: string;
|
|
90
90
|
order?: number;
|
|
91
|
+
/** name of the group this variable belongs to, null if ungrouped */
|
|
92
|
+
group?: string | null;
|
|
91
93
|
};
|
|
92
94
|
/**
|
|
93
95
|
* Handler function type for edge function callbacks
|