import { JotFormBaseAction } from '../jotform-base.action.js'; import { ActionParam, ActionResultSimple, RunActionParams } from '@memberjunction/actions-base'; /** * Action to create a new JotForm programmatically * * Security: API credentials are retrieved securely from Company Integrations * instead of being passed as parameters. * * @example * ```typescript * await runAction({ * ActionName: 'Create JotForm', * Params: [{ * Name: 'CompanyID', * Value: 'your-company-id' * }, { * Name: 'Title', * Value: 'Customer Feedback Form' * }, { * Name: 'Questions', * Value: [{ * type: 'control_text', * text: 'What is your name?', * name: 'name', * required: 'Yes' * }, { * type: 'control_email', * text: 'What is your email address?', * name: 'email', * required: 'Yes' * }] * }, { * Name: 'Properties', * Value: { * thankYouURL: 'https://example.com/thank-you', * requiresPassword: false * } * }] * }); * ``` */ export declare class CreateJotFormAction extends JotFormBaseAction { get Description(): string; protected InternalRunAction(params: RunActionParams): Promise; /** * Build questions object in JotForm API format * JotForm uses numeric keys for questions (1, 2, 3, etc.) */ private buildQuestionsObject; /** * Extract additional question properties (required, validation, options, etc.) */ private extractQuestionProperties; /** * Flatten nested form data into JotForm API parameter format * JotForm API expects: properties[title]=value, questions[1][type]=value, etc. */ private flattenFormData; get Params(): ActionParam[]; } //# sourceMappingURL=create-form.action.d.ts.map