refactor(editor): Move settings api to @n8n/rest-api-client (no-changelog) (#16186)

This commit is contained in:
Alex Grozav
2025-06-11 09:57:59 +02:00
committed by GitHub
parent 5015290dbe
commit 2a3fa5088e
15 changed files with 70 additions and 62 deletions

View File

@@ -1,6 +1,7 @@
<script setup lang="ts">
import { computed, ref } from 'vue';
import type { IN8nPromptResponse, ModalKey } from '@/Interface';
import type { N8nPromptResponse } from '@n8n/rest-api-client/api/prompts';
import type { ModalKey } from '@/Interface';
import { VALID_EMAIL_REGEX } from '@/constants';
import Modal from '@/components/Modal.vue';
import { useSettingsStore } from '@/stores/settings.store';
@@ -55,7 +56,7 @@ const closeDialog = () => {
const send = async () => {
if (isEmailValid.value) {
const response = (await settingsStore.submitContactInfo(email.value)) as IN8nPromptResponse;
const response = (await settingsStore.submitContactInfo(email.value)) as N8nPromptResponse;
if (response.updated) {
telemetry.track('User closed email modal', {