/** * Mirrors the wapi model from @pepperi-addons/ngx-lib so React consumers get the * same canonical types without taking a direct dependency on the Angular library. */ export declare enum FIELD_TYPE { 'Default' = 0, 'TextBox' = 1, 'LimitedLengthTextBox' = 2, 'TextArea' = 3, 'TextHeader' = 4, 'Date' = 5, 'DateAndTime' = 6, 'NumberInteger' = 7, 'NumberReal' = 8, 'Currency' = 9, 'Boolean' = 10, 'ComboBox' = 11, 'MultiTickBox' = 12, 'Separator' = 13, 'Address' = 14, 'Percentage' = 15, 'EmptyComboBox' = 16, 'InternalLink' = 17, 'Email' = 18, 'LimitedDate' = 19, 'Image' = 20, 'MultiTickBoxToComboBox' = 21, 'EmptyMultiTickBox' = 22, 'Totals' = 23, 'Attachment' = 24, 'Signature' = 25, 'Link' = 26, 'ImageURL' = 27, 'NumberIntegerQuantitySelector' = 28, 'NumberRealQuantitySelector' = 29, 'NumberIntegerForMatrix' = 30, 'NumberRealForMatrix' = 31, 'Images' = 32, 'Indicators' = 33, 'CalculatedReal' = 34, 'CalculatedInt' = 35, 'CalculatedString' = 36, 'CalculatedDate' = 37, 'CalculatedBool' = 38, 'MapDataDropDown' = 39, 'MapDataReal' = 40, 'MapDataString' = 41, 'MapDataInt' = 42, 'Sum' = 43, 'Phone' = 44, 'UrlForApi' = 45, 'ManyToManyUrlForApi' = 46, 'ReferenceType' = 47, 'GuidReferenceType' = 48, 'Button' = 49, 'InternalPage' = 50, 'Duration' = 51, 'ListOfObjects' = 52, 'Package' = 53, 'RelatedObjectsCards' = 54, 'BooleanText' = 55, 'RichTextHTML' = 56 } export declare enum X_ALIGNMENT_TYPE { None = 0, Left = 1, Right = 2, Center = 3 } export declare enum Y_ALIGNMENT_TYPE { None = 0, Top = 1, Bottom = 2, Center = 3 } export interface KeyValuePair { Key: string; Value: T; } export interface FieldLayout { X: number; Width: number; XAlignment: X_ALIGNMENT_TYPE; Y: Y_ALIGNMENT_TYPE; Height: number; YAlignment: Y_ALIGNMENT_TYPE; LineNumber: number; } export interface UIControlField { Title: string; MandatoryField?: boolean; Mandatory?: boolean; ReadOnlyField?: boolean; ReadOnly?: boolean; FieldConditions?: any; CustomField?: any; ApiName: string; FieldType: FIELD_TYPE; OptionalValues?: Array>; MinValue?: number; MaxValue?: number; MaxCharacters?: number; MaxFieldCharacters?: number; MaxLines?: number; Layout?: FieldLayout; ColumnWidth?: number; ColumnWidthType?: number; FieldName?: string; DefaultValue?: string; Hidden?: boolean; ObjectTypeReference?: any; ParentField?: string; WrntyFieldName?: string; Editor?: any; } export interface UIControl { ObjectID?: any; Type?: string; DisplayName?: string; ControlFields: Array; Columns?: number; } export interface ObjectsDataRowCell { Accessory?: string; AdditionalValue?: string; ApiName: string; BackgroundColor?: string; Enabled?: boolean; FieldType?: FIELD_TYPE; FormattedValue?: any; GroupFields?: Array; Highlighted?: boolean; NotificationInfo?: string; OptionalValues?: Array>; ReferenceObjectInternalType?: string; ReferenceObjectSubType?: string; ReferenceObjectType?: string; TextColor?: string; UiPageKey?: string; UIPageInfo?: any; Value: any; Visible?: boolean; DigitsNumberAfterDecimalPoint?: number; } export interface ObjectsDataRow { AdditionalData?: any; BackgroundColor?: string; ExtraInfo?: Array>; Fields: Array; IsEditable?: boolean; IsSelected?: boolean; IsSelectableForActions?: boolean; MainAction?: string; Profile?: any; Type?: number; UID?: any; Key?: string; } export interface ObjectSingleData { Data: ObjectsDataRow; ErrorCode?: string; ErrorMessage?: string; IsEditable?: boolean; Success?: boolean; Type?: string; UIControl: UIControl; } export interface ObjectsData { DateFilter?: string; ErrorCode?: string; ErrorMessage?: string; Rows: Array; SearchCode?: string; SecSmartSearchList?: any[]; SmartSearchList?: Array; Success?: boolean; TotalRows?: number; UIControl: UIControl; } export interface SmartSearchValues { ApiName: string; ComparisonType: string; Value: string; ValueRange: { Start: string; End: string; }; Values: Array; } export interface SmartSearchResponse { ApiName: string; FieldType: any; Title: string; Values: Array>; SmartSearchData: SmartSearchValues; }