import { SelectCommandTypeEnum } from '@/proxy/form/models' import { ListFormWorkflowCriteriaDto, SubFormDto, WidgetEditDto, WorkflowDto, } from '@/proxy/form/models' import { ListViewLayoutType } from '@/views/admin/listForm/edit/types' export interface ListFormWizardColumnItemDto { dataField: string editorType: string editorOptions: string editorScript: string colSpan: number isRequired: boolean dbSourceType: number } export interface ListFormWizardColumnGroupDto { caption: string colCount: number items: ListFormWizardColumnItemDto[] } export interface ListFormWizardDto { wizardName: string listFormCode: string menuCode: string isTenant: boolean isBranch: boolean isOrganizationUnit: boolean allowAdding: boolean allowUpdating: boolean allowDeleting: boolean confirmDelete: boolean allowDetail: boolean defaultLayout: ListViewLayoutType grid: boolean pivot: boolean tree: boolean chart: boolean gantt: boolean scheduler: boolean languageTextMenuEn: string languageTextMenuTr: string languageTextTitleEn: string languageTextTitleTr: string languageTextDescEn: string languageTextDescTr: string languageTextMenuParentEn: string languageTextMenuParentTr: string permissionGroupName: string menuParentCode: string menuIcon: string dataSourceCode: string dataSourceConnectionString: string selectCommandType: SelectCommandTypeEnum selectCommand: string keyFieldName: string keyFieldDbSourceType: number // Tree options (required when defaultLayout = 'tree') treeKeyExpr?: string treeParentIdExpr?: string treeAutoExpandAll?: boolean // Gantt options (required when defaultLayout = 'gantt') ganttKeyExpr?: string ganttParentIdExpr?: string ganttAutoExpandAll?: boolean ganttTitleExpr?: string ganttStartExpr?: string ganttEndExpr?: string ganttProgressExpr?: string // Scheduler options (required when defaultLayout = 'scheduler') schedulerTextExpr?: string schedulerStartDateExpr?: string schedulerEndDateExpr?: string groups?: ListFormWizardColumnGroupDto[] subForms?: SubFormDto[] widgets?: WidgetEditDto[] workflow?: WorkflowDto workflowCriteria?: ListFormWorkflowCriteriaDto[] } export interface WizardFileInfoDto { fileName: string wizardName: string listFormCode: string defaultLayout: string menuIcon: string createdAt: string hasInsertedRecords: boolean } export interface WizardInsertedRecordsDto { languageKeys: string[] permissionGroupNames: string[] permissionNames: string[] menuCodes: string[] dataSourceCodes: string[] } export interface WizardSeedFileItemDto { dataField: string editorType: string editorOptions: string editorScript: string colSpan: number isRequired: boolean dbSourceType: number turkishCaption?: string englishCaption?: string captionName?: string lookupDataSourceType?: number valueExpr?: string displayExpr?: string lookupQuery?: string } export interface WizardSeedFileGroupDto { caption: string colCount: number items: WizardSeedFileItemDto[] } export interface WizardSeedFileWizardDto extends Omit { groups?: WizardSeedFileGroupDto[] } export interface WizardSeedFileDto { wizard: WizardSeedFileWizardDto isDeletedField: boolean isCreatedField: boolean insertedRecords: WizardInsertedRecordsDto }