Allow bulk records for manual trigger (#14725)
https://github.com/user-attachments/assets/d6c565eb-9a29-4830-9396-5f979c8caa7b - Added a new component for manual trigger (mostly duplicated from previous one). Will remove the old one once all data are migrated - Updated schema output so the current item of the iterator can be typed Todo left: - migrate old triggers - add an util to search iterator output. Today current item fields will be displayed as not found - set new manual triggers for workflow runs
This commit is contained in:
+10
-1
@@ -1,3 +1,9 @@
|
||||
import {
|
||||
type BulkRecordsAvailability,
|
||||
type GlobalAvailability,
|
||||
type SingleRecordAvailability,
|
||||
} from 'twenty-shared/workflow';
|
||||
|
||||
import { type OutputSchema } from 'src/modules/workflow/workflow-builder/workflow-schema/types/output-schema.type';
|
||||
|
||||
export enum WorkflowTriggerType {
|
||||
@@ -8,7 +14,6 @@ export enum WorkflowTriggerType {
|
||||
}
|
||||
|
||||
type BaseWorkflowTriggerSettings = {
|
||||
input?: object;
|
||||
outputSchema: OutputSchema;
|
||||
};
|
||||
|
||||
@@ -35,6 +40,10 @@ export type WorkflowManualTrigger = BaseTrigger & {
|
||||
settings: BaseWorkflowTriggerSettings & {
|
||||
objectType?: string;
|
||||
icon?: string;
|
||||
availability?:
|
||||
| GlobalAvailability
|
||||
| SingleRecordAvailability
|
||||
| BulkRecordsAvailability;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user