mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-03 08:57:28 -08:00
10991675fe
Co-authored-by: Shireen Missi <shireen@n8n.io>
42 lines
992 B
TypeScript
42 lines
992 B
TypeScript
export type FormTriggerInput = {
|
|
isSelect?: boolean;
|
|
isMultiSelect?: boolean;
|
|
isTextarea?: boolean;
|
|
isFileInput?: boolean;
|
|
isInput?: boolean;
|
|
label: string;
|
|
defaultValue?: string;
|
|
id: string;
|
|
errorId: string;
|
|
type?: 'text' | 'number' | 'date';
|
|
inputRequired: 'form-required' | '';
|
|
selectOptions?: string[];
|
|
multiSelectOptions?: Array<{ id: string; label: string }>;
|
|
acceptFileTypes?: string;
|
|
multipleFiles?: 'multiple' | '';
|
|
placeholder?: string;
|
|
};
|
|
|
|
export type FormTriggerData = {
|
|
testRun: boolean;
|
|
validForm: boolean;
|
|
formTitle: string;
|
|
formDescription?: string;
|
|
formSubmittedText?: string;
|
|
redirectUrl?: string;
|
|
n8nWebsiteLink: string;
|
|
formFields: FormTriggerInput[];
|
|
useResponseData?: boolean;
|
|
appendAttribution?: boolean;
|
|
buttonLabel?: string;
|
|
};
|
|
|
|
export type CompletionPageConfig = {
|
|
pageTitle?: string;
|
|
completionMessage?: string;
|
|
completionTitle?: string;
|
|
redirectUrl?: string;
|
|
};
|
|
|
|
export const FORM_TRIGGER_AUTHENTICATION_PROPERTY = 'authentication';
|