import type {OpenDialogMetricColorsArgs} from 'ui/units/wizard/components/Dialogs/DialogMetricColors/DialogMetricColors';
import type {OpenDialogColorArgs} from '../../units/wizard/components/Dialogs/DialogColor/DialogColor';
import type {OpenDialogFieldInspectorArgs} from '../../units/wizard/components/Dialogs/DialogFieldInspector/DialogFieldInspector';
import type {OpenDialogShapesArgs} from '../../units/wizard/components/Dialogs/DialogShapes/DialogShapes';
import type {OpenDialogLineShapesArgs} from '../../units/wizard/components/Dialogs/DialogLineShapes/DialogLineShapes';
import type {OpenDialogFieldArgs} from '../../units/wizard/components/Dialogs/DialogField/DialogField';
import type {OpenDialogFilterArgs} from '../../index';
import type {OpenDialogPlaceholderArgs} from '../../units/wizard/components/Dialogs/DialogPlaceholder/DialogPlaceholder';
import type {OpenDialogPointsSizeArgs} from '../../units/wizard/components/Dialogs/DialogPointsSize';
import type {OpenDialogErrorWithTabsArgs} from '../../components/DialogErrorWithTabs/DialogErrorWithTabs';
import type {OpenDialogNeedResetArgs} from '../../components/OpenDialogNeedReset/OpenDialogNeedReset';
import type {OpenDialogChartSettingsArgs} from '../../units/wizard/components/Dialogs/Settings/Settings';
import type {
    OpenDialogCreateConnectionArgs,
    OpenDialogCreateConnectionInWbOrCollectionArgs,
} from '../../units/connections/components';
import type {OpenDialogConfirmArgs} from '../../components/DialogConfirm/DialogConfirm';
import type {OpenDialogWarningArgs} from '../../components/DialogWarning/DialogWarning';
import type {OpenDialogDatasetFieldInspectorArgs} from '../../units/datasets/components/dialogs/DatasetFieldInspector/DatasetFieldInspector';
import type {OpenDialogParameterArgs} from '../../components/DialogParameter/DialogParameter';
import type {OpenDialogMultidatasetArgs} from '../../units/wizard/components/Dialogs/DialogMultidataset';
import type {OpenDialogRelationsArgs} from '../../components/DialogRelations/DialogRelations';
import type {OpenDialogAliasesArgs} from '../../components/DialogRelations/components/DialogAliases/DialogAliases';
import type {OpenDialogColumnSettingsArgs} from '../../units/wizard/components/Dialogs/DialogColumnSettings/DialogColumnSettings';
import type {OpenDialogFieldEditorArgs} from '../../components/DialogFieldEditor/DialogFieldEditor';
import type {OpenDialogRenameEntryInNewWorkbookArgs} from '../../units/workbooks/components/RenameEntryDialog/RenameEntryDialog';
import type {OpenDialogDeleteEntryInNewWorkbookArgs} from '../../units/workbooks/components/DeleteEntryDialog/DeleteEntryDialog';
import type {OpenDialogSharedRelatedEntitiesArgs} from 'ui/components/DialogSharedRelatedEntities/DialogSharedRelatedEntities';
import type {OpenDialogDuplicateEntryInWorkbookArgs} from '../../units/workbooks/components/DuplicateEntryDialog/DuplicateEntryDialog';
import type {OpenDialogConnS3Sources} from '../../units/connections/components/dialogs';
import type {OpenDialogConnWithInputArgs} from '../../units/connections/components/custom-forms/components/DialogWithInput';
import type {OpenDialogConnConfirmArgs} from '../../units/connections/components/dialogs/Confirm';
import type {OpenDialogMoveCollectionsWorkbooksArgs} from '../../components/CollectionsStructure/MoveCollectionsWorkbooksDialog';
import type {OpenDialogMoveCollectionArgs} from '../../components/CollectionsStructure/MoveCollectionDialog';
import type {OpenDialogMoveWorkbookArgs} from '../../components/CollectionsStructure/MoveWorkbookDialog';
import type {OpenDialogCopyWorkbookArgs} from '../../components/CollectionsStructure/CopyWorkbookDialog';
import type {OpenDialogMigrateEntryToWorkbookArgs} from '../../components/CollectionsStructure/MigrateEntryToWorkbookDialog';
import type {OpenDialogEditWorkbookArgs} from '../../components/CollectionsStructure/EditWorkbookDialog';
import type {OpenDialogCreateWorkbookArgs} from '../../components/CollectionsStructure/CreateWorkbookDialog/CreateWorkbookDialog';
import type {OpenDialogEditCollectionArgs} from '../../components/CollectionsStructure/EditCollectionDialog';
import type {OpenDialogCreateCollectionArgs} from '../../components/CollectionsStructure/CreateCollectionDialog';
import type {OpenDialogCopyEntriesArgs} from '../../components/CollectionsStructure/CopyEntriesDialog';
import type {OpenDialogQLParameterArgs} from '../../components/DialogQLParameter/DialogQLParameter';
import type {OpenDialogSelectMigrationToWorkbookArgs} from '../../components/SelectMigrationToWorkbookDialog/SelectMigrationToWorkbookDialog';
import type {OpenDialogMigrateToWorkbookArgs} from '../../components/MigrateToWorkbookDialog/MigrateToWorkbookDialog';
import type {OpenDialogLabelSettingsArgs} from '../../units/wizard/components/Dialogs/DialogLabelSettings/DialogLabelSettings';
import type {OpenDialogCopyEntriesToWorkbookArgs} from '../../components/CopyEntriesToWorkbookDialog/CopyEntriesToWorkbookDialog';
import type {OpenDialogConnAddYadocArgs} from '../../units/connections/components/custom-forms/Yadocs/components/DialogAddDocument/DialogAddDocument';
import type {OpenDialogEditQueryArgs} from '../../units/dash/containers/Dialogs/DialogEditQuery/DialogEditQuery';
import type {OpenDialogDeleteCollectionArgs} from '../../components/CollectionsStructure/DeleteCollectionDialog';
import type {OpenDialogDeleteCollectionsWorkbooksArgs} from '../../components/CollectionsStructure/DeleteCollectionsWorkbooksDialog';
import type {OpenDialogDeleteWorkbookArgs} from '../../components/CollectionsStructure/DeleteWorkbookDialog';
import type {OpenDialogCreateEntryInWorkbookArgs} from '../../components/CollectionsStructure/CreateEntryInWorkbookDialog';
import type {OpenDialogIamAccessArgs} from '../../components/IamAccessDialog';
import type {OpenDialogTooltipSettingsArgs} from '../../units/wizard/components/Dialogs/DialogTooltipSettings/DialogTooltipSettings';
import type {OpenDialogChangeDatasetFieldsArgs} from '../../units/datasets/components/DatasetTable/components/BatchActionPanel/components/DialogChangeDatasetFields/DialogChangeDatasetFields';
import type {OpenDialogCollectionNoCreatePermissionArgs} from 'ui/components/CollectionsStructure/CollectionNoCreatePermissionDialog';
import type {OpenDialogReleaseVersionArgs} from 'ui/components/AsideHeaderAdapter/VersionDialog/VersionDialog';
import type {OpenDialogExportWorkbookArgs} from 'ui/components/CollectionsStructure/ExportWorkbookDialog/ExportWorkbookDialog';
import type {OpenDialogDefaultArgs} from 'ui/components/DialogDefault/DialogDefault';
import type {OpenDialogEntryDescriptionArgs} from 'ui/components/DialogEntryDescription/DialogEntryDescriptionWrapper';
import type {OpenDialogSharedEntryBindingArgs} from 'ui/components/DialogSharedEntryBindings/DialogSharedEntryBindings';
import type {OpenDialogSharedEntryUnbindArgs} from 'ui/components/DialogSharedEntryUnbind/DialogSharedEntryUnbind';
import type {OpenDialogSharedEntryPermissionsArgs} from 'ui/components/DialogSharedEntryPermissions/DialogSharedEntryPermissions';
import type {OpenDialogSelectSharedEntryArgs} from 'ui/components/DialogSelectSharedEntry/DialogSelectSharedEntry';
import type {OpenDialogAddSharedEntryFromLinkArgs} from 'ui/components/DialogAddSharedEntryFromLink/DialogAddSharedEntryFromLink';
import type {OpenDialogMoveSharedEntryArgs} from 'ui/components/CollectionsStructure/MoveSharedEntryDialog';
import type {OpenDialogEditSharedEntryArgs} from 'ui/components/CollectionsStructure/EditSharedEntryDialog';

export type OpenDialogArgs<T = unknown> =
    | OpenDialogReleaseVersionArgs
    | OpenDialogMetricColorsArgs
    | OpenDialogColorArgs
    | OpenDialogFieldInspectorArgs
    | OpenDialogShapesArgs
    | OpenDialogLineShapesArgs
    | OpenDialogFieldArgs
    | OpenDialogFilterArgs
    | OpenDialogQLParameterArgs
    | OpenDialogPlaceholderArgs
    | OpenDialogPointsSizeArgs
    | OpenDialogErrorWithTabsArgs
    | OpenDialogNeedResetArgs
    | OpenDialogChartSettingsArgs
    | OpenDialogCreateConnectionArgs
    | OpenDialogCreateConnectionInWbOrCollectionArgs
    | OpenDialogWarningArgs
    | OpenDialogConfirmArgs
    | OpenDialogDatasetFieldInspectorArgs
    | OpenDialogParameterArgs
    | OpenDialogRelationsArgs
    | OpenDialogAliasesArgs
    | OpenDialogMultidatasetArgs
    | OpenDialogColumnSettingsArgs
    | OpenDialogFieldEditorArgs<T>
    | OpenDialogRenameEntryInNewWorkbookArgs
    | OpenDialogDeleteEntryInNewWorkbookArgs
    | OpenDialogDuplicateEntryInWorkbookArgs
    | OpenDialogConnAddYadocArgs<T>
    | OpenDialogConnWithInputArgs<T>
    | OpenDialogConnConfirmArgs
    | OpenDialogConnS3Sources
    | OpenDialogMoveCollectionsWorkbooksArgs
    | OpenDialogMoveCollectionArgs
    | OpenDialogMoveSharedEntryArgs
    | OpenDialogEditSharedEntryArgs
    | OpenDialogMoveWorkbookArgs
    | OpenDialogCopyWorkbookArgs
    | OpenDialogLabelSettingsArgs
    | OpenDialogEditWorkbookArgs
    | OpenDialogEditCollectionArgs
    | OpenDialogCreateCollectionArgs
    | OpenDialogCreateWorkbookArgs
    | OpenDialogMigrateToWorkbookArgs
    | OpenDialogSelectMigrationToWorkbookArgs
    | OpenDialogMigrateEntryToWorkbookArgs
    | OpenDialogCopyEntriesToWorkbookArgs
    | OpenDialogCopyEntriesArgs
    | OpenDialogEditQueryArgs
    | OpenDialogDeleteCollectionArgs
    | OpenDialogDeleteCollectionsWorkbooksArgs
    | OpenDialogDeleteWorkbookArgs
    | OpenDialogIamAccessArgs
    | OpenDialogCreateEntryInWorkbookArgs
    | OpenDialogTooltipSettingsArgs
    | OpenDialogChangeDatasetFieldsArgs
    | OpenDialogCollectionNoCreatePermissionArgs
    | OpenDialogExportWorkbookArgs
    | OpenDialogDefaultArgs
    | OpenDialogSharedEntryBindingArgs
    | OpenDialogSharedEntryUnbindArgs
    | OpenDialogSharedEntryPermissionsArgs
    | OpenDialogSelectSharedEntryArgs
    | OpenDialogSharedRelatedEntitiesArgs
    | OpenDialogAddSharedEntryFromLinkArgs
    | OpenDialogEntryDescriptionArgs;
