mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-15 09:04:07 -08:00
35 lines
801 B
TypeScript
35 lines
801 B
TypeScript
export type FormField = {
|
|
fieldLabel: string;
|
|
fieldType: string;
|
|
requiredField: boolean;
|
|
fieldOptions?: { values: Array<{ option: string }> };
|
|
multiselect?: boolean;
|
|
};
|
|
|
|
export type FormTriggerInput = {
|
|
isSelect?: boolean;
|
|
isMultiSelect?: boolean;
|
|
isTextarea?: boolean;
|
|
isInput?: boolean;
|
|
labbel: string;
|
|
id: string;
|
|
errorId: string;
|
|
type?: 'text' | 'number' | 'date';
|
|
inputRequired: 'form-required' | '';
|
|
selectOptions?: string[];
|
|
multiSelectOptions?: Array<{ id: string; label: string }>;
|
|
};
|
|
|
|
export type FormTriggerData = {
|
|
testRun: boolean;
|
|
validForm: boolean;
|
|
formTitle: string;
|
|
formDescription?: string;
|
|
formSubmittedText?: string;
|
|
redirectUrl?: string;
|
|
n8nWebsiteLink: string;
|
|
formFields: FormTriggerInput[];
|
|
useResponseData?: boolean;
|
|
appendAttribution?: boolean;
|
|
};
|