feat(ui): organize migrations files

This commit is contained in:
psychedelicious 2023-11-27 01:07:21 +11:00
parent 8d99113bef
commit 0d9a546d74
4 changed files with 8 additions and 8 deletions

View File

@ -1,4 +1,4 @@
import { FieldType, StatefulFieldType } from '../../field';
import { FieldType, StatefulFieldType } from '../field';
import { FieldTypeV1 } from './workflowV1';
/**

View File

@ -1,11 +1,11 @@
import { t } from 'i18next';
import { forEach, isString } from 'lodash-es';
import { z } from 'zod';
import { WorkflowVersionError } from '../error';
import { zSemVer } from '../semver';
import { WorkflowV2, zWorkflowV2 } from '../workflow';
import { FIELD_TYPE_V1_TO_FIELD_TYPE_V2_MAPPING } from './v1/fieldTypeMap';
import { WorkflowV1, zWorkflowV1 } from './v1/workflowV1';
import { t } from 'i18next';
import { WorkflowVersionError } from '../../types/error';
import { zSemVer } from '../../types/semver';
import { FIELD_TYPE_V1_TO_FIELD_TYPE_V2_MAPPING } from '../../types/v1/fieldTypeMap';
import { WorkflowV1, zWorkflowV1 } from '../../types/v1/workflowV1';
import { WorkflowV2, zWorkflowV2 } from '../../types/workflow';
/**
* Helper schema to extract the version from a workflow.

View File

@ -4,7 +4,7 @@ import { keyBy } from 'lodash-es';
import { JsonObject } from 'type-fest';
import { getNeedsUpdate } from '../node/nodeUpdate';
import { InvocationTemplate } from '../../types/invocation';
import { parseAndMigrateWorkflow } from '../../types/migration/migrations';
import { parseAndMigrateWorkflow } from './migrations';
import { WorkflowV2, isWorkflowInvocationNode } from '../../types/workflow';
type WorkflowWarning = {