/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2026 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ /** * Represents a form field configuration used by the SmartPaste component to identify and populate form inputs. */ export interface SmartPasteFormField { /** * The unique identifier for the form field (e.g., field name or id). */ field: string; /** * A description of the field that helps the AI understand what data to extract. */ description: string | null; /** * The type of the field which determines how the value should be processed. * * The available options are: * - `string` - Text-based input fields * - `boolean` - Checkbox or toggle fields * - `number` - Numeric input fields * - `fixed-choices` - Fields with predefined options (e.g., dropdowns, radio buttons) * - `kendo-input` - KendoReact input components */ type: 'string' | 'boolean' | 'number' | 'fixed-choices' | 'kendo-input'; /** * An optional array of allowed values for fields with predefined options (e.g., dropdowns, radio buttons). */ allowedValues?: string[]; }