@budibase/types 3.10.6 → 3.10.7
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/dist/api/web/app/automation.d.ts +3 -2
- package/dist/api/web/app/query.d.ts +1 -1
- package/dist/documents/app/automation/StepInputsOutputs.d.ts +2 -1
- package/dist/documents/app/automation/automation.d.ts +5 -3
- package/dist/index.js +5 -5
- package/dist/index.js.map +2 -2
- package/package.json +2 -2
|
@@ -42,7 +42,7 @@ export interface ClearAutomationLogResponse {
|
|
|
42
42
|
message: string;
|
|
43
43
|
}
|
|
44
44
|
export interface TriggerAutomationRequest {
|
|
45
|
-
fields
|
|
45
|
+
fields?: Record<string, any>;
|
|
46
46
|
timestamp?: number;
|
|
47
47
|
timeout: number;
|
|
48
48
|
}
|
|
@@ -50,7 +50,8 @@ export type TriggerAutomationResponse = Record<string, any> | undefined;
|
|
|
50
50
|
export interface TestAutomationRequest {
|
|
51
51
|
id?: string;
|
|
52
52
|
revision?: string;
|
|
53
|
-
|
|
53
|
+
timeout?: number;
|
|
54
|
+
fields?: Record<string, any>;
|
|
54
55
|
row?: Row;
|
|
55
56
|
oldRow?: Row;
|
|
56
57
|
}
|
|
@@ -32,7 +32,7 @@ export interface PreviewQueryResponse {
|
|
|
32
32
|
extra: any;
|
|
33
33
|
}
|
|
34
34
|
export interface ExecuteQueryRequest {
|
|
35
|
-
parameters?: Record<string, string>;
|
|
35
|
+
parameters?: Record<string, string | number | null>;
|
|
36
36
|
pagination?: any;
|
|
37
37
|
}
|
|
38
38
|
export type ExecuteV1QueryResponse = Record<string, any>[];
|
|
@@ -171,10 +171,11 @@ export type TriggerAutomationStepInputs = {
|
|
|
171
171
|
automation: {
|
|
172
172
|
automationId: string;
|
|
173
173
|
};
|
|
174
|
-
timeout
|
|
174
|
+
timeout?: number;
|
|
175
175
|
};
|
|
176
176
|
export type TriggerAutomationStepOutputs = BaseAutomationOutputs & {
|
|
177
177
|
value?: AutomationResults["steps"];
|
|
178
|
+
status: AutomationResults["status"];
|
|
178
179
|
};
|
|
179
180
|
export type UpdateRowStepInputs = {
|
|
180
181
|
meta: Record<string, any>;
|
|
@@ -152,10 +152,12 @@ export declare enum AutomationStatus {
|
|
|
152
152
|
ERROR = "error",
|
|
153
153
|
STOPPED = "stopped",
|
|
154
154
|
STOPPED_ERROR = "stopped_error",
|
|
155
|
-
NO_CONDITION_MET = "No branch condition met"
|
|
155
|
+
NO_CONDITION_MET = "No branch condition met",
|
|
156
|
+
TIMED_OUT = "timed_out"
|
|
156
157
|
}
|
|
157
158
|
export declare enum AutomationStoppedReason {
|
|
158
|
-
TRIGGER_FILTER_NOT_MET = "Automation did not run. Filter conditions in trigger were not met."
|
|
159
|
+
TRIGGER_FILTER_NOT_MET = "Automation did not run. Filter conditions in trigger were not met.",
|
|
160
|
+
TIMED_OUT = "Automation timed out."
|
|
159
161
|
}
|
|
160
162
|
export interface AutomationStepResultOutputs {
|
|
161
163
|
success: boolean;
|
|
@@ -180,7 +182,7 @@ export interface AutomationTriggerResult {
|
|
|
180
182
|
}
|
|
181
183
|
export interface AutomationResults {
|
|
182
184
|
automationId?: string;
|
|
183
|
-
status
|
|
185
|
+
status: AutomationStatus;
|
|
184
186
|
trigger: AutomationTriggerResult;
|
|
185
187
|
steps: [AutomationTriggerResult, ...AutomationStepResult[]];
|
|
186
188
|
}
|