mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor(editor): Move workflowHistory api to @n8n/rest-api-client (no-changelog) (#16183)
This commit is contained in:
@@ -6,7 +6,7 @@ import userEvent from '@testing-library/user-event';
|
||||
import type { UserAction } from '@n8n/design-system';
|
||||
import { createComponentRenderer } from '@/__tests__/render';
|
||||
import WorkflowHistoryContent from '@/components/WorkflowHistory/WorkflowHistoryContent.vue';
|
||||
import type { WorkflowHistoryActionTypes } from '@/types/workflowHistory';
|
||||
import type { WorkflowHistoryActionTypes } from '@n8n/rest-api-client/api/workflowHistory';
|
||||
import { workflowVersionDataFactory } from '@/stores/__tests__/utils/workflowHistoryTestUtils';
|
||||
import type { IWorkflowDb } from '@/Interface';
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ import type {
|
||||
WorkflowVersion,
|
||||
WorkflowHistoryActionTypes,
|
||||
WorkflowVersionId,
|
||||
} from '@/types/workflowHistory';
|
||||
} from '@n8n/rest-api-client/api/workflowHistory';
|
||||
import WorkflowPreview from '@/components/WorkflowPreview.vue';
|
||||
import WorkflowHistoryListItem from '@/components/WorkflowHistory/WorkflowHistoryListItem.vue';
|
||||
import { useI18n } from '@n8n/i18n';
|
||||
|
||||
@@ -5,7 +5,7 @@ import { faker } from '@faker-js/faker';
|
||||
import type { UserAction } from '@n8n/design-system';
|
||||
import { createComponentRenderer } from '@/__tests__/render';
|
||||
import WorkflowHistoryList from '@/components/WorkflowHistory/WorkflowHistoryList.vue';
|
||||
import type { WorkflowHistoryActionTypes } from '@/types/workflowHistory';
|
||||
import type { WorkflowHistoryActionTypes } from '@n8n/rest-api-client/api/workflowHistory';
|
||||
import { workflowHistoryDataFactory } from '@/stores/__tests__/utils/workflowHistoryTestUtils';
|
||||
|
||||
vi.stubGlobal(
|
||||
|
||||
@@ -7,7 +7,7 @@ import type {
|
||||
WorkflowVersionId,
|
||||
WorkflowHistoryActionTypes,
|
||||
WorkflowHistoryRequestParams,
|
||||
} from '@/types/workflowHistory';
|
||||
} from '@n8n/rest-api-client/api/workflowHistory';
|
||||
import WorkflowHistoryListItem from '@/components/WorkflowHistory/WorkflowHistoryListItem.vue';
|
||||
|
||||
const props = defineProps<{
|
||||
|
||||
@@ -3,7 +3,7 @@ import userEvent from '@testing-library/user-event';
|
||||
import type { UserAction } from '@n8n/design-system';
|
||||
import { createComponentRenderer } from '@/__tests__/render';
|
||||
import WorkflowHistoryListItem from '@/components/WorkflowHistory/WorkflowHistoryListItem.vue';
|
||||
import type { WorkflowHistoryActionTypes } from '@/types/workflowHistory';
|
||||
import type { WorkflowHistoryActionTypes } from '@n8n/rest-api-client/api/workflowHistory';
|
||||
import { workflowHistoryDataFactory } from '@/stores/__tests__/utils/workflowHistoryTestUtils';
|
||||
|
||||
const actionTypes: WorkflowHistoryActionTypes = ['restore', 'clone', 'open', 'download'];
|
||||
|
||||
@@ -6,7 +6,7 @@ import type {
|
||||
WorkflowHistory,
|
||||
WorkflowVersionId,
|
||||
WorkflowHistoryActionTypes,
|
||||
} from '@/types/workflowHistory';
|
||||
} from '@n8n/rest-api-client/api/workflowHistory';
|
||||
import { useI18n } from '@n8n/i18n';
|
||||
|
||||
const props = defineProps<{
|
||||
|
||||
Reference in New Issue
Block a user